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

3395 lines
2.1 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

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

!(function(){var Tu=Math.pow;var gd=(xn,Yt,x)=>new Promise((ge,de)=>{var Q=W=>{try{ie(x.next(W))}catch(B){de(B)}},Oe=W=>{try{ie(x.throw(W))}catch(B){de(B)}},ie=W=>W.done?ge(W.value):Promise.resolve(W.value).then(Q,Oe);ie((x=x.apply(xn,Yt)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[3247],{89489:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return f}});var ge=x(72308),de=x(59301),Q={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"},Oe=Q,ie=x(7657),W=function(h,$){return de.createElement(ie.Z,(0,ge.Z)({},h,{ref:$,icon:Oe}))},B=de.forwardRef(W),f=B},59477:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return f}});var ge=x(72308),de=x(59301),Q={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"},Oe=Q,ie=x(7657),W=function(h,$){return de.createElement(ie.Z,(0,ge.Z)({},h,{ref:$,icon:Oe}))},B=de.forwardRef(W),f=B},40001:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return f}});var ge=x(72308),de=x(59301),Q={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"},Oe=Q,ie=x(7657),W=function(h,$){return de.createElement(ie.Z,(0,ge.Z)({},h,{ref:$,icon:Oe}))},B=de.forwardRef(W),f=B},49198:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return f}});var ge=x(72308),de=x(59301),Q={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"},Oe=Q,ie=x(7657),W=function(h,$){return de.createElement(ie.Z,(0,ge.Z)({},h,{ref:$,icon:Oe}))},B=de.forwardRef(W),f=B},84105:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return f}});var ge=x(72308),de=x(59301),Q={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"},Oe=Q,ie=x(7657),W=function(h,$){return de.createElement(ie.Z,(0,ge.Z)({},h,{ref:$,icon:Oe}))},B=de.forwardRef(W),f=B},18785:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return f}});var ge=x(72308),de=x(59301),Q={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"},Oe=Q,ie=x(7657),W=function(h,$){return de.createElement(ie.Z,(0,ge.Z)({},h,{ref:$,icon:Oe}))},B=de.forwardRef(W),f=B},73331:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return f}});var ge=x(72308),de=x(59301),Q={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"},Oe=Q,ie=x(7657),W=function(h,$){return de.createElement(ie.Z,(0,ge.Z)({},h,{ref:$,icon:Oe}))},B=de.forwardRef(W),f=B},15277:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return f}});var ge=x(72308),de=x(59301),Q={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"},Oe=Q,ie=x(7657),W=function(h,$){return de.createElement(ie.Z,(0,ge.Z)({},h,{ref:$,icon:Oe}))},B=de.forwardRef(W),f=B},52671:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return f}});var ge=x(72308),de=x(59301),Q={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"},Oe=Q,ie=x(7657),W=function(h,$){return de.createElement(ie.Z,(0,ge.Z)({},h,{ref:$,icon:Oe}))},B=de.forwardRef(W),f=B},8657:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return f}});var ge=x(72308),de=x(59301),Q={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"},Oe=Q,ie=x(7657),W=function(h,$){return de.createElement(ie.Z,(0,ge.Z)({},h,{ref:$,icon:Oe}))},B=de.forwardRef(W),f=B},56082:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return f}});var ge=x(72308),de=x(59301),Q={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"},Oe=Q,ie=x(7657),W=function(h,$){return de.createElement(ie.Z,(0,ge.Z)({},h,{ref:$,icon:Oe}))},B=de.forwardRef(W),f=B},33853:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return f}});var ge=x(72308),de=x(59301),Q={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"},Oe=Q,ie=x(7657),W=function(h,$){return de.createElement(ie.Z,(0,ge.Z)({},h,{ref:$,icon:Oe}))},B=de.forwardRef(W),f=B},15075:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return f}});var ge=x(72308),de=x(59301),Q={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"},Oe=Q,ie=x(7657),W=function(h,$){return de.createElement(ie.Z,(0,ge.Z)({},h,{ref:$,icon:Oe}))},B=de.forwardRef(W),f=B},62772:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return f}});var ge=x(72308),de=x(59301),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},Oe=Q,ie=x(7657),W=function(h,$){return de.createElement(ie.Z,(0,ge.Z)({},h,{ref:$,icon:Oe}))},B=de.forwardRef(W),f=B},43531:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return f}});var ge=x(72308),de=x(59301),Q={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"},Oe=Q,ie=x(7657),W=function(h,$){return de.createElement(ie.Z,(0,ge.Z)({},h,{ref:$,icon:Oe}))},B=de.forwardRef(W),f=B},38819:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return f}});var ge=x(72308),de=x(59301),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Oe=Q,ie=x(7657),W=function(h,$){return de.createElement(ie.Z,(0,ge.Z)({},h,{ref:$,icon:Oe}))},B=de.forwardRef(W),f=B},47472:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return f}});var ge=x(72308),de=x(59301),Q={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"},Oe=Q,ie=x(7657),W=function(h,$){return de.createElement(ie.Z,(0,ge.Z)({},h,{ref:$,icon:Oe}))},B=de.forwardRef(W),f=B},87395:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return f}});var ge=x(72308),de=x(59301),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Oe=Q,ie=x(7657),W=function(h,$){return de.createElement(ie.Z,(0,ge.Z)({},h,{ref:$,icon:Oe}))},B=de.forwardRef(W),f=B},88010:function(xn,Yt){"use strict";Yt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},42678:function(xn,Yt,x){"use strict";var ge=x(59301),de=Object.defineProperty,Q=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,W=(E,h,$)=>h in E?de(E,h,{enumerable:!0,configurable:!0,writable:!0,value:$}):E[h]=$,B=(E,h)=>{for(var $ in h||(h={}))Oe.call(h,$)&&W(E,$,h[$]);if(Q)for(var $ of Q(h))ie.call(h,$)&&W(E,$,h[$]);return E};const f=E=>React.createElement("svg",B({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},E),React.createElement("title",null,"\u7F16\u7EC4 18"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("circle",{fill:"#FCB041",cx:7,cy:7,r:7}),React.createElement("path",{d:"M7.531 9.638a.616.616 0 1 1-1.231 0v-.02a.616.616 0 1 1 1.231 0v.02Zm0-2.25a.616.616 0 1 1-1.231 0V4.117a.616.616 0 1 1 1.231 0v3.273Z",fill:"#FFF",fillRule:"nonzero"})));Yt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},6021:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return N}});var ge=x(3113),de=x(59301),Q=Object.defineProperty,Oe=Object.defineProperties,ie=Object.getOwnPropertyDescriptors,W=Object.getOwnPropertySymbols,B=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,E=(R,I,J)=>I in R?Q(R,I,{enumerable:!0,configurable:!0,writable:!0,value:J}):R[I]=J,h=(R,I)=>{for(var J in I||(I={}))B.call(I,J)&&E(R,J,I[J]);if(W)for(var J of W(I))f.call(I,J)&&E(R,J,I[J]);return R},$=(R,I)=>Oe(R,ie(I)),S=(R,I)=>{var J={};for(var K in R)B.call(R,K)&&I.indexOf(K)<0&&(J[K]=R[K]);if(R!=null&&W)for(var K of W(R))I.indexOf(K)<0&&f.call(R,K)&&(J[K]=R[K]);return J},_=(R,I,J)=>new Promise((K,se)=>{var te=j=>{try{V(J.next(j))}catch(le){se(le)}},G=j=>{try{V(J.throw(j))}catch(le){se(le)}},V=j=>j.done?K(j.value):Promise.resolve(j.value).then(te,G);V((J=J.apply(R,I)).next())});const N=R=>{var I=R,{children:J}=I,K=S(I,["children"]);const[se,te]=(0,de.useState)(!1);return de.createElement(ge.ZP,$(h({},K),{loading:se,onClick:G=>_(void 0,null,function*(){try{te(!0),yield K.onClick(G),te(!1)}catch(V){console.error(V),te(!1)}})}),J)}},59879:function(xn,Yt,x){"use strict";var ge=x(59301),de=x(88010),Q=x(48136),Oe=x(41588),ie=x(43418),W=x(59301);const B=(0,ge.forwardRef)(({callback:f,width:E,onChange:h,disabled:$,readOnly:S,type:_="",value:N="",style:R={}},I)=>{const J=(0,ge.useRef)(),K=(0,ge.useRef)(),[se,te]=(0,ge.useState)(0),[G,V]=(0,ge.useState)(0),[j,le]=(0,ge.useState)(!1),he=()=>{var q=document.createElement("div");q.innerHTML=J.current.getValue();var ce=q.innerText;return f&&f(ce),ce};(0,ge.useImperativeHandle)(I,()=>({getData:he}));const Ne=q=>{q.preventDefault();const ce=q.clientX-se,D=q.clientY-G;document.body.onmousemove=ot=>{let ke=ot.clientX-ce,Ce=ot.clientY-D;const Qe=document.getElementsByClassName("markdown-popup-form")[0],ve=window.innerWidth-Qe.offsetWidth,Pe=window.innerHeight-Qe.offsetHeight;ke=Math.max(0,Math.min(ke,ve)),Ce=Math.max(0,Math.min(Ce,Pe)),Be(ot.clientX,ot.clientY,ce,D)&&(te(ke),V(Ce))},document.body.onmouseup=function(){document.body.onmousemove=null}},Be=(q,ce,D,ot)=>{const ke=document.body.clientHeight,Ce=document.body.clientWidth;return q<20&&D>q||q>Ce-20&&D<q||ce<20&&ot>ce||ce>ke-20&&ot<ce?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,ge.useEffect)(()=>{j&&setTimeout(()=>{const q=document.getElementsByClassName("markdown-popup-form")[0],ce=window.innerWidth/2-q.offsetWidth/2,D=window.innerHeight/2-q.offsetHeight/2;te(ce),V(D)},0)},[j]);const je=()=>{$||S||le(!0)};return W.createElement("div",{style:R},W.createElement("div",{style:{width:E||"100%",position:"relative"},className:`${de.Z.mathFillWrap} ${$||S?"cursorDefault":""}`,onClick:()=>je()},W.createElement("math-field",{disabled:$,locale:"zh_cn",class:`${de.Z.mathField} ${_}`,readOnly:S,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:J,style:{width:"100%",fontSize:N?18:14},value:N||""})),W.createElement(ie.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:se,top:G},title:W.createElement("div",{style:{cursor:"move"},onMouseDown:Ne},"\u8F93\u5165\u516C\u5F0F"),open:j,onOk:()=>{const q=K.current.getData();J.current.setValue(q),h(q),le(!1)},onCancel:()=>{le(!1)},destroyOnClose:!0,className:"markdown-popup-form"},W.createElement(Oe.Z,{value:N,ref:K,onChange:h,showSaveButton:!1})))});Yt.Z=B},41588:function(xn,Yt,x){"use strict";var ge=x(59301),de=x(95237),Q=x(43604),Oe=x(99313),ie=x(3113),W=x(85149),B=x(88010),f=x(48136),E=x(59301);const h=(0,ge.forwardRef)(({callback:$,showSaveButton:S,value:_=""},N)=>{const R=(0,ge.useRef)(),I=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],J=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],K=G=>{R.current.setValue(R.current.getValue()+" "+G.value+" ")},se=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:E.createElement(de.Z,{className:B.Z.lists,gutter:[10,10]},I.map((G,V)=>E.createElement(Q.Z,{flex:"110px",className:B.Z.item},E.createElement("div",null,E.createElement(W.Z,{value:`$$${G.value}$$`}),G.name),E.createElement("div",{className:B.Z.children},G.children.map((j,le)=>E.createElement("div",{key:le},E.createElement("h1",null,j.name),E.createElement(de.Z,{gutter:[10,10]},j.data.map((he,Ne)=>E.createElement(Q.Z,{key:Ne,onClick:()=>K(he),className:B.Z.diamond},E.createElement(W.Z,{value:"`$$"+he.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:E.createElement(de.Z,{className:B.Z.lists,gutter:[10,10]},J.map((G,V)=>E.createElement(Q.Z,{flex:"110px",className:B.Z.item},E.createElement("div",null,E.createElement(W.Z,{value:"`$$"+G.value+"$$`"}),G.name),E.createElement("div",{className:B.Z.children},G.children.map((j,le)=>E.createElement("div",{key:le},j.name&&E.createElement("h1",null,j.name),E.createElement(de.Z,{gutter:[10,10]},j.data.map((he,Ne)=>E.createElement(Q.Z,{key:Ne,onClick:()=>K(he),className:B.Z.diamond},E.createElement(W.Z,{value:"`$$"+he.value+"$$`"}))))))))))}],te=()=>{var G=document.createElement("div");G.innerHTML=R.current.getValue();var V=G.innerText;return $&&$(V),V};return(0,ge.useImperativeHandle)(N,()=>({getData:te})),E.createElement("div",{className:B.Z.mathWrap},E.createElement(Oe.default,{defaultActiveKey:"1",items:se}),E.createElement("math-field",{locale:"zh_cn",className:B.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:R,style:{width:800,marginTop:30,fontSize:18}},_||""),S&&E.createElement("div",{className:B.Z.button},E.createElement(ie.ZP,{size:"large",onClick:te,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Yt.Z=h},82438:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return f}});var ge=x(59301),de={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},Q=x(43418),Oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",ie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",W=(E,h,$)=>new Promise((S,_)=>{var N=J=>{try{I($.next(J))}catch(K){_(K)}},R=J=>{try{I($.throw(J))}catch(K){_(K)}},I=J=>J.done?S(J.value):Promise.resolve(J.value).then(N,R);I(($=$.apply(E,h)).next())}),f=({type:E,resdata:h,onok:$,oktext:S,okloading:_})=>{const[N,R]=(0,ge.useState)(!1),{can_copy_list:I,can_copy_num:J,challenge_type:K,course_data_list:se,no_copy_list:te,no_copy_num:G,no_use_list:V,no_use_num:j,repeat_shixun_num:le,student_count:he,total_num:Ne,use_num:Be}=h;let je=J>0||E==="exercise";(0,ge.useEffect)(()=>{(h==null?void 0:h.student_count)>0&&R(!0)},[h]),console.log("---11",_),(0,ge.useEffect)(()=>{_||R(!1)},[_]);const q=()=>{if(E==="exercise"&&K===1)return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:de.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ge.createElement("span",{className:de.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ge.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(E==="exercise"&&K===2)return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:de.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ge.createElement("span",{className:de.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ge.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(E==="shixun"&&K===1)return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:de.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",ge.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(E==="shixun"&&K===2)return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:de.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ge.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(E==="subject"&&K===1)return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:de.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ge.createElement("span",{className:de.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ge.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(E==="subject"&&K===2)return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",ge.createElement("span",{className:de.orangeColor},he)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",ge.createElement("span",{className:de.orangeColor},Be)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ge.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(E==="exercisepush")return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:de.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",ge.createElement("span",{className:de.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",ge.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(E==="shixunpush"&&K===1)return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:de.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ge.createElement("span",{className:de.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ge.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(E==="shixunpush"&&K===2)return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:de.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",ge.createElement("span",{className:de.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ge.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},ce=()=>{if(E==="exercise"||E==="subject"||E==="exercisepush"||E==="shixunpush")return ge.createElement("div",{style:{marginTop:20}},G>0&&ge.createElement("div",null,ge.createElement("span",{className:de.flex},ge.createElement("img",{src:ie,style:{width:14}}),ge.createElement("span",{className:de.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ge.createElement("div",{className:de.statusbody},E==="exercise"&&ge.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ge.createElement("span",{className:de.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(E==="subject"||E==="exercisepush")&&ge.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",je&&ge.createElement("span",{className:de.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),E==="shixunpush"&&ge.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",je&&ge.createElement("span",{className:de.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),ge.createElement("div",null,te==null?void 0:te.map((D,ot)=>ge.createElement("a",{href:`/shixuns/${D.identifier}/challenges`,target:"_blank"},"\u300A",D==null?void 0:D.name,"\u300B",ot+1!==G&&"\u3001"))))),J>0&&ge.createElement("div",{style:{marginTop:20}},ge.createElement("span",{className:de.flex},ge.createElement("img",{src:Oe,style:{width:14}}),ge.createElement("span",{className:de.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ge.createElement("div",{className:de.statusbody},E==="exercise"&&ge.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(E==="subject"||E==="exercisepush")&&ge.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),E==="shixunpush"&&ge.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),ge.createElement("div",null,I==null?void 0:I.map((D,ot)=>ge.createElement("a",{href:`/shixuns/${D.identifier}/challenges`,target:"_blank"},"\u300A",D==null?void 0:D.name,"\u300B",ot+1!==J&&"\u3001"))))));if(E==="shixun")return ge.createElement("div",{style:{marginTop:20}},J>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return ge.createElement(Q.default,{open:N,onCancel:()=>{R(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!je&&"none"}},zIndex:1003,confirmLoading:_,okText:je?S:"\u6211\u77E5\u9053\u4E86",onOk:()=>W(void 0,null,function*(){je?yield $([...I,...V]):R(!1)})},ge.createElement("div",{style:{maxHeight:600,overflow:"auto"}},q(),ce()))}},78734:function(xn,Yt,x){"use strict";x.d(Yt,{B:function(){return E},F:function(){return f}});var ge=x(44164),de=x.n(ge),Q=x(86129),Oe=x.n(Q),ie=(h,$,S)=>new Promise((_,N)=>{var R=K=>{try{J(S.next(K))}catch(se){N(se)}},I=K=>{try{J(S.throw(K))}catch(se){N(se)}},J=K=>K.done?_(K.value):Promise.resolve(K.value).then(R,I);J((S=S.apply(h,$)).next())});const W=()=>{document.body.scrollIntoView()},B=()=>{document.querySelectorAll("canvas").forEach(h=>{(!h.clientWidth||!h.clientHeight)&&h.remove()})},f=(h,$)=>ie(void 0,null,function*(){W(),B();const S={margin:[0,1,0,0],image:{type:"png",quality:.95},html2canvas:{letterRendering:!0,useCORS:!0,allowTaint:!1,width:810},jsPDF:{unit:"in",format:"letter",orientation:"portrait"}};let _=de()();for(let R=0;R<h.length;R++)yield _.set(S).from(h[R]).toContainer().toCanvas().toPdf().get("pdf").then(I=>ie(void 0,null,function*(){R<h.length-1&&(yield I.addPage())}));const N=new(Oe());N.file(`${$}.pdf`,_.output("blob"),{base64:!1}),N.generateAsync({type:"blob"}).then(function(R){const I=document.createElement("a");I.href=window.URL.createObjectURL(R),I.download=`${$}.zip`,document.body.appendChild(I);const J=new MouseEvent("click");I.dispatchEvent(J),document.body.removeChild(I)})}),E=(h,$)=>ie(void 0,null,function*(){W(),B();const S={margin:[0,0],html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}};let _=de()();for(let N=0;N<h.length;N++)yield _.set(S).from(h[N]).toContainer().toCanvas().toPdf().get("pdf").then(R=>ie(void 0,null,function*(){N<h.length-1&&(yield R.addPage())}));_.save(`${$}.pdf`)})},66415:function(xn,Yt,x){"use strict";x.r(Yt),x.d(Yt,{default:function(){return nt}});var ge=x(59301),de=x(89070),Q=x(92832),Oe=x(8591),ie=x(1710),W=x(6848),B=x(95237),f=x(43604),E=x(5112),h=x(28103),$=x(71418),S=x(66104),_=x(3113),N=x(38854),R=x(43418),I={flex_box_center:"flex_box_center___maKAy",flex_space_between:"flex_space_between___vD_VZ",flex_box_vertical_center:"flex_box_vertical_center___kwkiV",flex_box_center_end:"flex_box_center_end___BdkbU",flex_box_column:"flex_box_column___meEQB",bg:"bg___vBzoO",wrap:"wrap___rrSkg",programTitle:"programTitle___kPWjL",btnWrapper:"btnWrapper___F_tyj",btn:"btn___ToWSe",titleForExport:"titleForExport___lhBnq",flexRow:"flexRow___cvXQo",flexColumn:"flexColumn___cTDFf",flexJustifyBetween:"flexJustifyBetween___vy_7r",relative:"relative____B_F8",questionNumber:"questionNumber___V4g28",score:"score___dNKpj",selectTopicButton:"selectTopicButton___NO9DO",line:"line___j553x",dragTip:"dragTip___AaESI",typeActive:"typeActive___dLHVW",mouseTypeActive:"mouseTypeActive___N_Yv8",typeName:"typeName___bdcw3",typeNumber:"typeNumber___B6Fic",typeAction:"typeAction___O3dpz",setScore:"setScore___GA5cK",delete:"delete___O2OvN",modal:"modal___0ENtb",table:"table___ZRr4b",glassSeal:"glassSeal___C7Vpa",export_type_modal:"export_type_modal___ldAtg",export_type_modal_con:"export_type_modal_con___Y9iST",type_item:"type_item___cWirW",img_warp:"img_warp___G7xtB",img_warp_active:"img_warp_active___rw33a",divname:"divname___RLHHc"},J=x(91106),K=x(78734),se=x(80401),te=x(14165),G=x(78297),V=x(955),j=x(94941),le=x(85149),he=x(24334),Ne=x(10977),Be=x(59879),je=x(6021),q=x(99064),ce=x(59301),D=Object.defineProperty,ot=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Qe=(ut,Pt,Ht)=>Pt in ut?D(ut,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):ut[Pt]=Ht,ve=(ut,Pt)=>{for(var Ht in Pt||(Pt={}))ke.call(Pt,Ht)&&Qe(ut,Ht,Pt[Ht]);if(ot)for(var Ht of ot(Pt))Ce.call(Pt,Ht)&&Qe(ut,Ht,Pt[Ht]);return ut},Pe=(ut,Pt,Ht)=>new Promise((Ut,cr)=>{var or=L=>{try{hr(Ht.next(L))}catch(it){cr(it)}},Cr=L=>{try{hr(Ht.throw(L))}catch(it){cr(it)}},hr=L=>L.done?Ut(L.value):Promise.resolve(L.value).then(or,Cr);hr((Ht=Ht.apply(ut,Pt)).next())});const{TextArea:fe}=Q.default,ye={0:"\u5355\u9009\u9898",1:"\u591A\u9009\u9898",2:"\u5224\u65AD\u9898",3:"\u586B\u7A7A\u9898",4:"\u7B80\u7B54\u9898"},at=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"],rt=({newExercisePaper:ut,isExportBlank:Pt=!1,paperlibrary:Ht,user:Ut,globalSetting:cr,loading:or,dispatch:Cr})=>{var hr,L,it,k,p,d,w,Y,Ee,H,ne,Ge,xe;const we=(0,de.useLocation)(),qe=(0,de.useParams)(),[Et]=(0,de.useSearchParams)(),[pe,dt]=(0,ge.useState)(),At=(0,ge.useRef)(),[Me,De]=(0,ge.useState)(),[gt,jt]=(0,ge.useState)(),[Tt,ir]=(0,ge.useState)([]),[Fr,Pr]=(0,ge.useState)(!1),[Hr,Rr]=(0,ge.useState)(""),[sr,lr]=(0,ge.useState)(!1),[$r,ln]=(0,ge.useState)(!1),En=Et.get("isIntelligentAssistant");(0,ge.useEffect)(()=>(Cr({type:"globalSetting/footerToggle",payload:!1}),()=>{Cr({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,ge.useEffect)(()=>{At.current=qe==null?void 0:qe.id,dt(Et.get("defaultActiveKey")||"0"),Ir(),In(),cn()},[qe==null?void 0:qe.id]),(0,ge.useEffect)(()=>{var me;if((me=ut.exerciseExportHeadData)!=null&&me.title){const Ue=ut.exerciseExportHeadData;De(ve({},Ue||{}));const{table:Le}=Ue||{};let lt,$t;(Le!=null&&Le.total_singles_scores||Le!=null&&Le.total_doubles_scores||Le!=null&&Le.total_nulls_scores||Le!=null&&Le.total_judges_scores||Le!=null&&Le.total_pros_scores||Le!=null&&Le.total_shixuns_scores||Le!=null&&Le.total_mains_scores||Le!=null&&Le.total_combination_scores||Le!=null&&Le.total_bpros_scores)&&(lt=Number(Le==null?void 0:Le.total_singles_scores)+Number(Le==null?void 0:Le.total_doubles_scores)+Number(Le==null?void 0:Le.total_nulls_scores)+Number(Le==null?void 0:Le.total_judges_scores)+Number(Le==null?void 0:Le.total_pros_scores)+Number(Le==null?void 0:Le.total_shixuns_scores)+Number(Le==null?void 0:Le.total_mains_scores)+Number(Le==null?void 0:Le.total_combination_scores)+Number(Le==null?void 0:Le.total_bpros_scores)),(Le!=null&&Le.singles_scores||Le!=null&&Le.doubles_scores||Le!=null&&Le.nulls_scores||Le!=null&&Le.judges_scores||Le!=null&&Le.pros_scores||Le!=null&&Le.bpros_scores||Le!=null&&Le.shixuns_scores||Le!=null&&Le.mains_scores||Le!=null&&Le.combination_scores)&&($t=Number(Le==null?void 0:Le.singles_scores)+Number(Le==null?void 0:Le.doubles_scores)+Number(Le==null?void 0:Le.nulls_scores)+Number(Le==null?void 0:Le.judges_scores)+Number(Le==null?void 0:Le.pros_scores)+Number(Le==null?void 0:Le.bpros_scores)+Number(Le==null?void 0:Le.shixuns_scores)+Number(Le==null?void 0:Le.mains_scores)+Number(Le==null?void 0:Le.combination_scores));const Qt=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:Le==null?void 0:Le.total_singles_scores,doubles_score:Le==null?void 0:Le.total_doubles_scores,nulls_score:Le==null?void 0:Le.total_nulls_scores,judges_score:Le==null?void 0:Le.total_judges_scores,pros_score:Le==null?void 0:Le.total_pros_scores,bpros_score:Le==null?void 0:Le.total_bpros_scores,shixuns_score:Le==null?void 0:Le.total_shixuns_scores,mains_score:Le==null?void 0:Le.total_mains_scores,combinations_score:Le==null?void 0:Le.total_combination_scores,total_score:lt},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:Le==null?void 0:Le.singles_scores,doubles_score:Le==null?void 0:Le.doubles_scores,nulls_score:Le==null?void 0:Le.nulls_scores,judges_score:Le==null?void 0:Le.judges_scores,pros_score:Le==null?void 0:Le.pros_scores,bpros_score:Le==null?void 0:Le.bpros_scores,shixuns_score:Le==null?void 0:Le.shixuns_scores,mains_score:Le==null?void 0:Le.mains_scores,combinations_score:Le==null?void 0:Le.combination_scores,total_score:$t},{key:"3",name:"\u8BC4\u5377\u4EBA"}],Br=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:Le==null?void 0:Le.total_singles_scores,doubles_score:Le==null?void 0:Le.total_doubles_scores,nulls_score:Le==null?void 0:Le.total_nulls_scores,judges_score:Le==null?void 0:Le.total_judges_scores,pros_score:Le==null?void 0:Le.total_pros_scores,bpros_score:Le==null?void 0:Le.total_bpros_scores,shixuns_score:Le==null?void 0:Le.total_shixuns_scores,mains_score:Le==null?void 0:Le.total_mains_scores,combinations_score:Le==null?void 0:Le.combination_scores,total_score:lt},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}];jt([...Pt?Br:Qt])}},[ut.exerciseExportHeadData]);const cn=()=>Pe(void 0,null,function*(){var me;const Ue=yield(0,se.cV)({id:qe.id});Ue.status==0&&ir(Ue.data),yield In(),Et.get("exportPDF")&&((me=Ht.paperData)!=null&&me.questionList)&&(Oe.ZP.info("\u6B63\u5728\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377pdf"),(0,K.F)($n.current.children,"\u5BFC\u51FA\u8BD5\u5377"))}),In=()=>Pe(void 0,null,function*(){const me=yield(0,se.Dq)(qe.id);De(me||{});const{table:Ue}=me||{};let Le,lt;(Ue!=null&&Ue.total_singles_scores||Ue!=null&&Ue.total_doubles_scores||Ue!=null&&Ue.total_nulls_scores||Ue!=null&&Ue.total_judges_scores||Ue!=null&&Ue.total_pros_scores||Ue!=null&&Ue.total_shixuns_scores||Ue!=null&&Ue.total_mains_scores||Ue!=null&&Ue.total_combination_scores||Ue!=null&&Ue.total_bpros_scores)&&(Le=Number(Ue==null?void 0:Ue.total_singles_scores)+Number(Ue==null?void 0:Ue.total_doubles_scores)+Number(Ue==null?void 0:Ue.total_nulls_scores)+Number(Ue==null?void 0:Ue.total_judges_scores)+Number(Ue==null?void 0:Ue.total_pros_scores)+Number(Ue==null?void 0:Ue.total_shixuns_scores)+Number(Ue==null?void 0:Ue.total_mains_scores)+Number(Ue==null?void 0:Ue.total_combination_scores)+Number(Ue==null?void 0:Ue.total_bpros_scores)),(Ue!=null&&Ue.singles_scores||Ue!=null&&Ue.doubles_scores||Ue!=null&&Ue.nulls_scores||Ue!=null&&Ue.judges_scores||Ue!=null&&Ue.pros_scores||Ue!=null&&Ue.bpros_scores||Ue!=null&&Ue.shixuns_scores||Ue!=null&&Ue.mains_scores||Ue!=null&&Ue.combinations_score)&&(lt=Number(Ue==null?void 0:Ue.singles_scores)+Number(Ue==null?void 0:Ue.doubles_scores)+Number(Ue==null?void 0:Ue.nulls_scores)+Number(Ue==null?void 0:Ue.judges_scores)+Number(Ue==null?void 0:Ue.pros_scores)+Number(Ue==null?void 0:Ue.bpros_scores)+Number(Ue==null?void 0:Ue.shixuns_scores)+Number(Ue==null?void 0:Ue.mains_scores)+Number(Ue==null?void 0:Ue.combinations_score));const $t=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:Ue==null?void 0:Ue.total_singles_scores,doubles_score:Ue==null?void 0:Ue.total_doubles_scores,nulls_score:Ue==null?void 0:Ue.total_nulls_scores,judges_score:Ue==null?void 0:Ue.total_judges_scores,pros_score:Ue==null?void 0:Ue.total_pros_scores,bpros_score:Ue==null?void 0:Ue.total_bpros_scores,shixuns_score:Ue==null?void 0:Ue.total_shixuns_scores,combinations_score:Ue==null?void 0:Ue.total_combination_scores,mains_score:Ue==null?void 0:Ue.total_mains_scores,total_score:Le},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:Ue==null?void 0:Ue.singles_scores,doubles_score:Ue==null?void 0:Ue.doubles_scores,nulls_score:Ue==null?void 0:Ue.nulls_scores,judges_score:Ue==null?void 0:Ue.judges_scores,pros_score:Ue==null?void 0:Ue.pros_scores,bpros_score:Ue==null?void 0:Ue.bpros_scores,shixuns_score:Ue==null?void 0:Ue.shixuns_scores,mains_score:Ue==null?void 0:Ue.mains_scores,combinations_score:Ue==null?void 0:Ue.combination_scores,total_score:lt},{key:"3",name:"\u8BC4\u5377\u4EBA"}];return jt(Pt?[{key:"1",name:"\u5E94\u5F97\u5206"},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}]:$t),me}),bi=[{width:"9%",title:"\u9898\u578B",align:"center",dataIndex:"name",render:me=>ce.createElement("a",null,me)},{width:"9%",title:((hr=Tt.find(me=>me.value==te.fw[0].nameType))==null?void 0:hr.name)||te.fw[0].name,align:"center",dataIndex:"singles_score",render:me=>ce.createElement("a",null,me==="0.0"?0:me)},{width:"9%",title:((L=Tt.find(me=>me.value==te.fw[1].nameType))==null?void 0:L.name)||te.fw[1].name,align:"center",dataIndex:"doubles_score",render:me=>ce.createElement("a",null,me==="0.0"?0:me)},{width:"9%",title:((it=Tt.find(me=>me.value==te.fw[3].nameType))==null?void 0:it.name)||te.fw[3].name,align:"center",dataIndex:"nulls_score",render:me=>ce.createElement("a",null,me==="0.0"?0:me)},{width:"9%",title:((k=Tt.find(me=>me.value==te.fw[2].nameType))==null?void 0:k.name)||te.fw[2].name,align:"center",dataIndex:"judges_score",render:me=>ce.createElement("a",null,me==="0.0"?0:me)},{width:"9%",title:((p=Tt.find(me=>me.value==te.fw[6].nameType))==null?void 0:p.name)||te.fw[6].name,align:"center",dataIndex:"pros_score",render:me=>ce.createElement("a",null,me==="0.0"?0:me)},{width:"9%",title:((d=Tt.find(me=>me.value==te.fw[5].nameType))==null?void 0:d.name)||te.fw[5].name,align:"center",dataIndex:"shixuns_score",render:me=>ce.createElement("a",null,me==="0.0"?0:me)},{width:"9%",title:((w=Tt.find(me=>me.value==te.fw[4].nameType))==null?void 0:w.name)||te.fw[4].name,align:"center",dataIndex:"mains_score",render:me=>ce.createElement("a",null,me==="0.0"?0:me)},{width:"9%",title:((Y=Tt.find(me=>me.value==te.fw[7].nameType))==null?void 0:Y.name)||te.fw[7].name,align:"center",dataIndex:"combinations_score",render:me=>ce.createElement("a",null,me==="0.0"?0:me)},{width:"10%",title:((Ee=Tt.find(me=>me.value==te.fw[8].nameType))==null?void 0:Ee.name)||te.fw[8].name,align:"center",dataIndex:"bpros_score",render:me=>ce.createElement("a",null,me==="0.0"?0:me)},{width:"9%",title:"\u603B\u5206",align:"center",dataIndex:"total_score",render:me=>ce.createElement("a",null,me==="0.0"?0:me?parseFloat(me).toFixed(1):"")}],Ir=me=>{Cr({type:"paperlibrary/getPaperData",payload:ve({id:At.current},me)})},qn=(me,Ue)=>Pe(void 0,null,function*(){if(!me.destination||!me.source)return;const Le=Ue.questions[me.source.index].id,lt=me.destination.index+1;(yield Cr({type:"paperlibrary/adjustPosition",payload:{id:At.current,itemId:Le,position:lt}})).status!==-1&&Ir()}),wi=()=>{Cr({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-SendToClass",params:{id:At.current}}})},$n=(0,ge.useRef)(),[Ni,gi]=(0,ge.useState)(!0),Qi=()=>Pe(void 0,null,function*(){gi(!1),Rr(""),Pr(!0)}),ba=()=>Pe(void 0,null,function*(){gi(!0),Rr(""),Pr(!0)}),$i=()=>Pe(void 0,null,function*(){var me;lr(!0);const Ue=yield(0,j.Mb)({categoryId:At.current});lr(!1),Ue!=null&&Ue.exercise_id&&(0,V.xg)(`/classrooms/coursesId/exercise/${Ue.exercise_id}/${(me=Ut.userInfo)==null?void 0:me.login}/initate_answer`)}),ri=(me,Ue,Le)=>{var lt,$t,Qt,Br,pr,Kr,Wr,en,Vr,jr,Yr,mn,tn,Dn,Qn,ui,On,on,Kt,Zt,qt;return ce.createElement(ce.Fragment,null,!Le&&ce.createElement("div",{style:{display:"flex"},className:I.programTitle},ce.createElement("span",{style:{flexShrink:0},className:"font18"},Ue+1,"."),ce.createElement(le.Z,{style:{maxWidth:1100},value:me.name||(me==null?void 0:me.shixun_name)}),ce.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",(me==null?void 0:me.question_type)===7?`\u5171${me==null?void 0:me.sub_count}\u5C0F\u9898`:""," ",me.score,"\u5206\uFF09")),(me==null?void 0:me.question_type)===8&&ce.createElement(le.Z,{showProgramFill:!0,disabledFill:!0,value:he.Base64.decode(((lt=me==null?void 0:me.program_attr)==null?void 0:lt.code)||"")}),(me==null?void 0:me.question_type)===5&&ce.createElement("div",null,($t=me==null?void 0:me.examination_bank_shixun_challenges)==null?void 0:$t.map((er,Xt)=>ce.createElement("div",null,ce.createElement("div",{key:Xt,style:{background:"#F0F7FD",color:"#3061D0",fontSize:18,padding:10,marginBottom:10}},ce.createElement("i",{className:"iconfont icon-renwuguanka1",style:{marginRight:5}}),"\u7B2C",Xt+1,"\u5173 ",ce.createElement("span",{className:"ml10"},er.challenge_name))))),(me==null?void 0:me.question_type)===6&&ce.createElement("div",null,ce.createElement("div",{style:{fontWeight:600,marginTop:4}},"\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00\uFF1A",(Br=(Qt=me==null?void 0:me.program_attr)==null?void 0:Qt.languages)==null?void 0:Br.join("/")),((Kr=(pr=Ht==null?void 0:Ht.paperData)==null?void 0:pr.exam)==null?void 0:Kr.show_hack_sets)&&ce.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},ce.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},ce.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),ce.createElement(ie.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(er,Xt,Ur)=>Ur+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(er,Xt,Ur)=>ce.createElement(W.Z,{title:ce.createElement("pre",null,er)},ce.createElement("div",{className:I.divname},er))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(er,Xt,Ur)=>ce.createElement(W.Z,{title:ce.createElement("pre",null,er)}," ",ce.createElement("div",{className:I.divname},er))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:(Wr=me==null?void 0:me.program_attr)==null?void 0:Wr.hack_sets})),((Vr=(en=Ht==null?void 0:Ht.paperData)==null?void 0:en.exam)==null?void 0:Vr.show_hack_description)&&ce.createElement("div",null,ce.createElement(le.Z,{className:I.content,value:((jr=me==null?void 0:me.program_attr)==null?void 0:jr.description)||"- -"}))),me.question_type===Ne.c.Single&&ce.createElement(ce.Fragment,null,(Yr=me.choices)==null?void 0:Yr.map(function(er,Xt){return ce.createElement(B.Z,{key:Xt},ce.createElement(f.Z,{flex:"1"},ce.createElement("div",{style:{display:"flex"}},ce.createElement("div",{style:{lineHeight:"24px",flexShrink:0}},at[Xt]),ce.createElement(le.Z,{value:er.choice_text||""}))))})),me.question_type===Ne.c.Multiple&&ce.createElement(ce.Fragment,null,(mn=me.choices)==null?void 0:mn.map(function(er,Xt){return ce.createElement(B.Z,{key:Xt},ce.createElement(f.Z,{flex:"1"},ce.createElement("div",{style:{display:"flex"}},ce.createElement("div",{style:{lineHeight:"24px",flexShrink:0}},at[Xt]),ce.createElement(le.Z,{value:er.choice_text||""}))))})),me.question_type===Ne.c.Judge&&ce.createElement("div",{className:I.flexRow},(tn=me.choices)==null?void 0:tn.map(function(er,Xt){return ce.createElement(B.Z,{key:Xt},ce.createElement(f.Z,{flex:"25px"},ce.createElement("div",{style:{width:25,overflow:"hidden"}},ce.createElement(E.ZP,{disabled:!0,style:{width:25,marginLeft:Xt===1&&10}}))),ce.createElement(f.Z,{flex:"1",style:{marginLeft:Xt===1&&10}},er.choice_text))})),me.question_type===Ne.c.Combine&&ce.createElement(ce.Fragment,null,(Dn=me.sub_questions)==null?void 0:Dn.map(function(er,Xt){return ce.createElement("div",{style:{marginLeft:10}},ce.createElement("div",{style:{display:"flex"},className:I.programTitle},ce.createElement("span",{style:{flexShrink:0},className:"font18"},Ue+1,".",Xt+1),ce.createElement(le.Z,{value:er.name||(er==null?void 0:er.shixun_name)}),ce.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",er.score,"\u5206\uFF09")),ri(er,Xt,!0))})),Ni&&ce.createElement("div",{style:{marginTop:10}},(me==null?void 0:me.question_type)<3&&(me==null?void 0:me.standard_answer_show)&&ce.createElement("span",{className:"font16 "},"\u6B63\u786E\u7B54\u6848\uFF1A",me==null?void 0:me.standard_answer_show),!!((Qn=me==null?void 0:me.standard_answer)!=null&&Qn.length)&&Ni&&(me==null?void 0:me.question_type)===3&&ce.createElement("div",null,(ui=me==null?void 0:me.standard_answer)==null?void 0:ui.map((er,Xt)=>ce.createElement("div",null,ce.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",Xt+1,"\uFF09:"),ce.createElement("div",null,er.answer_text.map(function(Ur,Mr){return ce.createElement(f.Z,{span:24,key:Mr},(er==null?void 0:er.model)===1?ce.createElement(fe,{autoSize:!0,disabled:!0,value:Ur}):ce.createElement(Be.Z,{value:Ur,disabled:!0}))}))))),!!((On=me==null?void 0:me.standard_answer)!=null&&On.length)&&Ni&&(me==null?void 0:me.question_type)===8&&ce.createElement("div",null,(on=me==null?void 0:me.standard_answer)==null?void 0:on.map((er,Xt)=>ce.createElement("div",null,ce.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",Xt+1,"\uFF09:"),ce.createElement("div",null,ce.createElement(fe,{autoSize:!0,disabled:!0,value:(er==null?void 0:er.answer_text)||""}))))),!!((Kt=me==null?void 0:me.answer_texts)!=null&&Kt.length)&&(me==null?void 0:me.question_type)===4&&ce.createElement("div",null,ce.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A"),ce.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},ce.createElement(le.Z,{value:(Zt=me==null?void 0:me.answer_texts)==null?void 0:Zt[0]}))),(me==null?void 0:me.question_type)===6&&ce.createElement("div",null,ce.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A",!(me!=null&&me.answer_text)&&"\u6682\u65E0"),(me==null?void 0:me.answer_text)&&ce.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},ce.createElement(le.Z,{value:me==null?void 0:me.answer_text}))),(me==null?void 0:me.question_type)<=4&&((me==null?void 0:me.standard_answer_show)||((qt=me==null?void 0:me.standard_answer)==null?void 0:qt.length)>0)&&ce.createElement(B.Z,{style:{marginTop:14}},ce.createElement("span",{className:"font16 "},"\u89E3\u6790\uFF1A"),ce.createElement(le.Z,{className:I.renderHtml,value:(me==null?void 0:me.analysis)||"\u6682\u65E0\u89E3\u6790"}))),!Le&&ce.createElement(h.Z,null))},xi=(0,ge.useCallback)(()=>{var me,Ue;return ce.createElement("div",null,ce.createElement("div",{className:I.titleForExport},(Ue=(me=Ht.paperData)==null?void 0:me.exam)==null?void 0:Ue.name),ce.createElement("div",{style:{textAlign:"center",fontSize:"15px"}},"\u5171:\u3010",Me==null?void 0:Me.large_counts,"\u5927\u9898\u3011\u3010",Me==null?void 0:Me.total_count,"\u5C0F\u9898\u3011\u3010 \u6EE1\u5206",Me==null?void 0:Me.score,"\u5206\u3011 \u8003\u8BD5\u65F6\u95F4\uFF1A\u3010",(Me==null?void 0:Me.time)>-1?`${Me==null?void 0:Me.time}\u5206\u949F`:"\u4E0D\u9650","\u3011"),!!(Me!=null&&Me.exercise_description)&&ce.createElement("pre",{style:{fontSize:14,marginBottom:30,marginTop:20,textAlign:"left",color:"#3A3A3A"}},ce.createElement("b",null,"\u8BD5\u5377\u987B\u77E5\uFF1A"),Me==null?void 0:Me.exercise_description),ce.createElement(ie.default,{style:{margin:"20px auto"},className:I.table,columns:bi,dataSource:[...gt||[]],bordered:!0,pagination:!1}))},[Ht.paperData]),Ti=()=>Pe(void 0,null,function*(){const me=yield(0,q.ZP)("/api/intelligent_imports/save_recognize_papers.json",{method:"post",body:{examination_bank_id:qe==null?void 0:qe.id}});(me==null?void 0:me.status)===0&&de.history.replace("/paperlibrary")});return ce.createElement("section",{className:I.bg},ce.createElement($.Z,{spinning:or["paperlibrary/getPaperData"]},ce.createElement(B.Z,{className:"pt20",justify:"space-between"},ce.createElement(S.Z,{separator:">"},ce.createElement(S.Z.Item,{href:"/paperlibrary"},"\u8BD5\u5377\u5E93"),ce.createElement(S.Z.Item,{href:`/paperlibrary?defaultActiveKey=${pe}`},pe==="1"?"\u516C\u5F00":pe==="2"?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684"),ce.createElement(S.Z.Item,null,"\u8BD5\u5377\u8BE6\u60C5")),ce.createElement("div",{className:I.btnWrapper},!En&&ce.createElement(_.ZP,{onClick:wi,className:I.btn,icon:ce.createElement("i",{className:"iconfont icon-fasongtongzhi font14"})},"\u53D1\u9001\u81F3\u8BFE\u5802"),ce.createElement(_.ZP,{onClick:()=>de.history.push(`/paperlibrary/add/${At.current}?type=2${En?"&isIntelligentAssistant=true":""}`),className:I.btn,icon:ce.createElement("i",{className:"iconfont icon-bianji10 font14"})},"\u7F16\u8F91\u8BD5\u5377"),ce.createElement(_.ZP,{loading:sr,onClick:$i,className:I.btn,icon:ce.createElement("i",{className:"iconfont icon-monikaoshi2 font14"})},"\u6A21\u62DF\u8003\u8BD5"),!En&&ce.createElement(N.Z,{menu:{items:[{key:"1",label:ce.createElement("div",{onClick:ba},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377+\u7B54\u6848")},{key:"2",label:ce.createElement("div",{onClick:Qi},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377")}]}},ce.createElement(_.ZP,{type:"primary",icon:ce.createElement("i",{className:"iconfont icon-daochu1 font14"})},"\u5BFC\u51FA")),En&&ce.createElement(je.Z,{onClick:Ti,type:"primary",icon:ce.createElement("i",{className:"iconfont icon-baocun1 font14"})},"\u4FDD\u5B58\u8BD5\u5377"))),ce.createElement("div",{className:`${I.wrap} pt20 pb20`,ref:$n,id:"paperDomRef"},!((ne=(H=Ht.paperData)==null?void 0:H.questionList)!=null&&ne.length)&&xi(),(xe=(Ge=Ht.paperData)==null?void 0:Ge.questionList)==null?void 0:xe.map((me,Ue)=>{var Le;return ce.createElement(ce.Fragment,null,(Le=me.questions)==null?void 0:Le.map((lt,$t)=>{const Qt=Math.floor($t/10);return $t%10===0?ce.createElement("div",{className:"abc",key:`group-${Qt}`},Ue===0&&$t===0&&xi(),$t===0&&ce.createElement("div",null,ce.createElement("span",{className:"font16 c-light-primary"},me.number,"\u3001",me.name),ce.createElement("span",{className:"c-grey-999"},"\uFF08\u5171",me.questions_count,"\u9898\uFF0C",(me==null?void 0:me.question_type)===7?`\u5305\u542B${me==null?void 0:me.sub_count}\u5C0F\u9898\uFF1B`:"","\u5171",me.questions_score,"\u5206\uFF09")),me.questions.slice($t,$t+10).map((Br,pr)=>ce.createElement("div",{key:Br.id},ri(Br,$t+pr)))):null}))}))),ce.createElement(J.Z,null),ce.createElement(R.default,{width:450,title:"\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u683C\u5F0F",open:Fr,onCancel:()=>{if($r){Oe.ZP.info("\u5BFC\u51FA\u4E2D\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3");return}Pr(!1)},okButtonProps:{loading:$r},onOk:()=>Pe(void 0,null,function*(){var me,Ue;if(ln(!0),Hr==""){ln(!1),Oe.ZP.info("\u8BF7\u9009\u62E9\u4E00\u79CD\u5BFC\u51FA\u683C\u5F0F");return}else Hr=="pdf"?yield(0,K.F)($n.current.children,(Ue=(me=Ht.paperData)==null?void 0:me.exam)==null?void 0:Ue.name):Hr=="word"&&(0,G.ON)({id:At.current,middle_export:1,export_type:Ni?1:0});ln(!1),Pr(!1)})},ce.createElement("div",{className:I.export_type_modal},ce.createElement("div",{className:I.export_type_modal_con},ce.createElement("div",{className:I.type_item},ce.createElement("div",{className:`${I.img_warp} ${Hr=="pdf"?I.img_warp_active:""}`,onClick:()=>Rr("pdf")},ce.createElement("img",{src:x(45614),width:70,height:70})),"pdf\u683C\u5F0F"),ce.createElement("div",{className:I.type_item},ce.createElement("div",{className:`${I.img_warp} ${Hr=="word"?I.img_warp_active:""}`,onClick:()=>Rr("word")},ce.createElement("img",{src:x(38347),width:70,height:70})),"word\u683C\u5F0F")))))};var nt=(0,de.connect)(({paperlibrary:ut,user:Pt,loading:Ht,globalSetting:Ut,newExercisePaper:cr})=>({paperlibrary:ut,user:Pt,globalSetting:Ut,loading:Ht.effects,newExercisePaper:cr}))(rt)},91106:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return fe}});var ge=x(59301),de=x(89070),Q=x(92832),Oe=x(8591),ie=x(43418),W=x(5871),B=x(61621),f=x(1710),E=x(3113),h=x(42678),$=Object.defineProperty,S=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,R=(ye,at,rt)=>at in ye?$(ye,at,{enumerable:!0,configurable:!0,writable:!0,value:rt}):ye[at]=rt,I=(ye,at)=>{for(var rt in at||(at={}))_.call(at,rt)&&R(ye,rt,at[rt]);if(S)for(var rt of S(at))N.call(at,rt)&&R(ye,rt,at[rt]);return ye};const J=ye=>React.createElement("svg",I({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},ye),React.createElement("title",null,"\u9009\u62E9\u5907\u4EFD 2"),React.createElement("path",{d:"M6.74 0a6.74 6.74 0 1 0 0 13.48A6.74 6.74 0 0 0 6.74 0Zm3.636 5.017L5.817 9.576c-.09.09-.246.08-.348-.023l-.306-.305L3.12 7.204a.263.263 0 0 1 0-.372l.557-.557a.262.262 0 0 1 .372 0l1.605 1.606 3.794-3.793c.09-.09.246-.08.348.022l.557.557c.103.103.113.259.023.349Z",fill:"#68C79F",fillRule:"nonzero"}));var K="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzQgMGE2Ljc0IDYuNzQgMCAxIDAgMCAxMy40OEE2Ljc0IDYuNzQgMCAwIDAgNi43NCAwWm0zLjYzNiA1LjAxN0w1LjgxNyA5LjU3NmMtLjA5LjA5LS4yNDYuMDgtLjM0OC0uMDIzbC0uMzA2LS4zMDVMMy4xMiA3LjIwNGEuMjYzLjI2MyAwIDAgMSAwLS4zNzJsLjU1Ny0uNTU3YS4yNjIuMjYyIDAgMCAxIC4zNzIgMGwxLjYwNSAxLjYwNiAzLjc5NC0zLjc5M2MuMDktLjA5LjI0Ni0uMDguMzQ4LjAyMmwuNTU3LjU1N2MuMTAzLjEwMy4xMTMuMjU5LjAyMy4zNDlaIiBmaWxsPSIjNjhDNzlGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",se={flex_box_center:"flex_box_center___LsrKL",flex_space_between:"flex_space_between___sZBht",flex_box_vertical_center:"flex_box_vertical_center___QNt7D",flex_box_center_end:"flex_box_center_end___S9zs3",flex_box_column:"flex_box_column___Y5tcm",title:"title___t4qlt",tip:"tip___MtKbx",radioWrap:"radioWrap___fp3kY",row:"row___IoDN5",radio:"radio___vuEDI",colorFF0000:"colorFF0000____5DYm",pagination:"pagination___bvqCI",modalColumn:"modalColumn___szBPb",modalRow:"modalRow___mtd9M",sup:"sup___JDuYL",search:"search___wNY_F",bottom:"bottom___HvFhF",yes:"yes___xmznh",no:"no___vEJlu"},te=x(955),G={sendToClass:"sendToClass___le_BX"},V="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL0AAACeCAYAAABn7wuoAAAgAElEQVR4Xu19CXQcx3nmV90zwOAGCBAgeN8ST0k8JFkWLVGyfMqJN7EVO4eP2Ov1Rkle7mSz2fVq3yZ2Nptdx95sNo6zvvISW5aP+PmQLVuSL52ULIo6KJHiJZ7gAeLGzHTVv++vrmrU9MwAM8CAuKbf4+Ngpru6u+qrv/7j+/8SqB5zugeIyD/ZjzXLm3FOCDEwp1/mCj28uEL3qd5mGnqAiLyLw9md54a9jZs7/O8LIc5Nw23mXZNV0M/RISWiGgA7+jNYN5qVorPB/6kQ4ugcfZ0r+thV0F/R7q7MzYiokQEvgZX7zwDXdAM+MAjgG0IIVZm7zN9WqqCfY2PLEj4AdgtgDSSwr0diV7fPbyF94EtV0E88oFXQT9xHs+aMV4nqlgPXAFgrAe/ikEQqCTTURKD/ihAiM2seeJY+SBX0s3Rg4o/FRiuA10iW8OZ4+ozEtk4fSY15kA88K4Q4MNlXOnWJVi5bJE5M9vq5cl0V9HNkpIhoSwa41gf0mEkAPf1AZwPgh6AHBTiZTIqHy30lVpmePY01K1qxYVGD+Ga518+186ugnwMjRkRLJXADgAb7uKf6w0/Lms0MABAEOJdKiQfKeSUi4hZ2Hrggu9c0QzbW+I8IIV4tp425dm4V9LN8xIiIgX6TBLrcRz0zFP7VnRr7lgjnksnSQU9ErWwUBxKdvaNStKd8qvHxvBDimVneLVN6vCrop9R903sxEfH4XCuBzTBqjVZtpMTFIaAtFenzkJAg4FKt7z8khBiZ6MkM4K8XwOIz/RBZKbGy2Yfy8VIS2CeEoInamKu/V0E/zsgRUR2ADgDJ+GlPngPWN48EfefqetasEaPTAQAiWiaBm+P3H8pIHL4IXNPpa92eNXx2zpOUwyqbfaSxsfHseM9DRE0S2AOgTQKCJxC31N7gs7+/B8ATQojL0/FOs6HNKugLjAIRtbG6HARoFQLdAGrtaRZkPzsDbGhHti5JJ4loWKWTp5qacB6ojIQ03prbjFozNk4SGJIS/aNsxLIFGwKe0U9AOq38J9rqxPFi4CKiRBbY4QEbePWQEjjbL7Gk2bcG8agPPCaEODkbADodz1AFvdOr995L/jvfiV0AVkipgR71Twj2Mal65DKwvAlgFzn/lpR+OvAxBB/P1EOTv8YumcTIEdFGCeyEDrZGt9YfnusBruoEPCPnlQyfgYCsHAn2tbamXil0S6MubZbAdttuVgIvXZTY2hndhl2fjwohjkzisefEJVXQm2EiopYjfdhVI7Cku6EQ2I04BTAwGoKsmY1IAzhntCnh+T2DWbzQXoczk4mQElEyAF4noFcZO9fMlAP2nZLYsSz33lIBkiB9z9/XkhKHioB+tQRe607mi6Oh7qbfxbyi7+NxIQq3MSdQPcFDVkHPEpJYuOE2KdH10kVgbStswCfSmd1+PGq03VVNIfjdw/7tSYxmoE6219c8Vi5QiKhdAm/S4HRuwB+HshJDGaAjFd5b/zNsGymhMsp/almzeCl+T55IGeCtPsC8neh45KTEDd1al48O38fzAJ6Zr8ZsFfTav01vBrCIQcagOtELrG/34fn5GkoWQL82/ELpaM/IOZOlbggh6h+k04eODzx9x65FfaWCf5TobQmJlrHz2TcTHi9fBLoboOkH+jvFOk2I/gygSOSDnid1ALCnZm2uFwh4sUdiU6cFfXgfj/yTiQR+NJlVqtR3nMnzFjzoiahbSu3JYKquPs4MSbCe3NnMevPYwd9lFHC4F7iqPSbhrbTlr6XGoj56R3XQqK+52X9mWf3EQR8t5SXuAJAImwrhbo1VtiW6GsKViH+x+jwbpAEgs5ngqXWLUy+7T0dE6zPATj/mheL3bGbujp/rBRLw+2t9fFsIEcwkOKfr3gsa9MZDch2Aq6W04f0Q8KzmrG8PwWUBx4PAoD/RD6xpdeSwC3gDRIN9rYpwA6laDI8m/KfWjuNZ0e1naLfngY1YYdcLe/+hLHR7TTXhM+npwBNRArwCKYlglPx9WzvFYft0RJSS0JPIWTnC6168yL55XjVCL5CeXOHkCRprfCavcbMFj48QebcC3mLAaxnC1ZSVa+D5dTLIEOD1JShxYHk7zn35y6C77pqaUV9p8C900LdJib0A6q0r0nYwqwxHLwJr2g23xRisL/QA6zsA3y4BDuDdyaE1Dgn0Z4EaD0jV+JQNZCbh+c8ua8LLKBD8YUpAEOA1QsjFWoqbh+F2+O+Tl0NwL28wurwBu8xq1QbZLDIqnX3ymtV1UTJJmmizD+yIgGP0JG7z8qgMDVir0I8Z5bKhxr+vEOiP9lJr0kdnguQOBXGDBJJE8EiBifwCnkdKKShF/PgKwj+qCN9OeDizbpEoWcWrNNDd9hY06I+co65USt7BQZm4Scojdob5LQroNgYrG4z7e4AdS8b0aatrs4S00t1+0EAdArqMZ4SvJ4ERqvF/vL5JcBAo5yCi1VIyk1L6dgJZY5Wfo2ckXGk6jD7PwB1VRtLzBJAY8cl/dMdKcZobZuMVwJ3ScnYcw4O9Nv2ZUNJHKpLVowiyuS4X9ERU3zOE10qpNsHzNktSgp9J8b/QXRquFOaDAkHDXv8mZEDyBUh6cMuSmhdn2kBe0KDvG6UNFwflDRdGgKs6QonsWXWGVY0scLIfaGuA1n17hkJ1p9lo/wUB74B/VALHL4feIE1yD9FBWemfOzaAJ97yHaQRhGbD0n6Ib/0GNrYnJdMOclyhWpVRwPkhoCnFz+iTLyXVJqH4HnolkMCwQl+y0f/hje1C09GIaJOhMVilPZqYzMXvzQJr7YQ2oM1mtR0j2xpC0PPEOd6X3Vbr+XeAsFIKJBjMDPbolRjojCQKX9ECXp8yZtTzA10KAvnT3mW19++dQXthwYKeAzUDAW5MCrmOAcNuSNaX17cBDYZ0ELoIgQujYSCK1Z3u5jF3ph7TAhLeZnGMZoHDF8IJZdUdI7npiy9AfuaAv0UQOPprD+F7ObZzfDHQf3sCtKoZfXfvlkfWt2BEe28ApLPU87o1iQdYkrJkBrBbAity3Z5hBJcN7GZe4HjK8WrhGMUEyK4G/77zQC0Nql9RCtslIcHnWukdSXgKbZzuRkDw70bc299DST82ISQpKch7IDjtf3PXruI2Q8EXr9CXCxr0owFu84TUASAGKKsPLMQZEG0poLUu1N2Z58KenKFRoN3owMXUGVf6sypyshdY3jYGegbcwYtIfewxcZXw0Lyug8YiYYwNoy5I0l4fZBmB7JZh9UUBAUt1BqkStKoFPX94PR3yAQpBS+duXZvU1GIiWiGBGxFGlo2ED5+OJ8kLF4HN7Y6f33icuB2SkDUZ/4eZRPZNwvO3KwHmIEWADyK1BQgION4LrNJTN1RpigHeqkGkqEd56t5dS2onnfAyFfwvZNB7aYm3CEjth4l0aAWwyjAigRMchPKA7jpg/zlgZRuwpi2U7qNZ9unDi4xNxyrQE8IYsYmkr9qTkjQjzcyI+4+LtodPe1tuWCFFqsZxi7J6wH5343tPs4EqWYJrI1VPzHQApNljo38T6jevpyfb6pBhICuis2/6fOLh5S1I/ug92NaYAqs3jqCXYSCLQMf7obYylc5MAmssawM6QF0yKdZ6QFtgyERanXFVGqO/H+sDljQQksawdyfEmLoT3seuEvqzoN4aP/HxrZ1iXHLcVMBd7NpZDXrjUuSgEbvbvHQaorZWd3362DGcnwq7kdtOS7yVIFssKhw7L5SMRh8dzYS6PfNsmuvgfWq/33VmALUjAWoX1au8PrQTgcG5vhl9b9tAZyK6ggTuPyG6LijauKQpNixlgJ5Bng3YXpBn3rHFP5yWoKzyj9/9HXhtKWy+tlstTQpPT0r7PFbHTnpKrWzC0M5u9N+0nHSBqAxHtljdUaIt6WONMsavBWohMA9ngd4RoLM+tF7tfcKVRrs+9XFhOFw5jSYVnUhER+El/nnXsiubojjrQG+Bns1ivRDwhdCAZ3hYJyFdHJHZ+gRdTCWQzhCl65PJ51hgleMVYD/zfwjwBlJSy7s8wJtRdNWV/WeR+Nuf+atf6cOSq5dI0VoPtOTQ0vJB3JIU5966nHSwyErTE8Oi9eUR2mpT/6KrJgH6pmQw+IFrEz8LCOroqP/If/8hbl69SO5ptaE2Vo8cD4tWPUiDkhbX0dCmxRh4/3ZxXAhk4aE2JcQWCDToBcHMGAteVze33i3PI3TUhyuU68Gx158ZDB0EWi30cg1gPTc8/GR3t//FKxkImz2gJxKXgOZmqQlRnMLGcsdhOY7Bkmu9sK+cDU7ua80uzNJ5yo48+1RTU18pngE2ZEdHcTM8ucoFfPTZ9b+zOiMh/vgHYs2+897Sd10nBdMAvAl6j5uohzh3Sye9bAHPAL+URd3BAXFVmihX1k8C9Gvb5Mk3r/GPZgjy7570v/ZSH96xcbHcw9wcK3EZkFptMYC3XJ0QqIJ2d6n0u7fh5OJ6b6kSYANY2xH2iFySkfQOdff+NFCbMP0QuSqNk0oBDHjuok5uMRLzuSsCgz2g9EdvXF5/xajMswL0nJjc34+VZwO5c12Ln5OwEQ8a8UAcvhzyT+qM7HdAS8qj434i8Yqh97orbp6KN5CmLQKSI7LRYVWaaLk2jT98UjT+0YPe1jdulMnVRhcupjO6YElBnHtteyjpI/1fAafTqu3EiFgfkBhL+CsD9IECNdeIy2/bSC8IggoUgr/7gf+vxwTesbFT3lwq6Nlg5m785S0Cb1jnAN1dHRxAh+oOgVWbVweAda2h1HHVKD7n1CC0ns+Adw1bewc3LUsIcXj3Mv+vJurPSv0+W0C/UUpcc6Iftc11QKvjMgxfdAzW7EFhQ5MjifkhpfBMj13W0j/dXIcnx+O1XximZSlf7i0m3d07f+eIaPnzR7D9XTsIjRFLZ/xhYCDUKtGzu51eTnrh6m8nFd+zLy0ahoBUQikOETUqeIP1KW9IR1jZmDX/97NLxXhXWI8PsgrC87KLG2mo3tOnioRHJzZ1Jxr/7EG1ZzigtkUlSnoGPR/bOoC7dwP1voh08bg6QybyxCAeJWjgt3BfOPo7A/7MAFCTDFUa159fCPB8rVRIJ8n/6K7V4kylgD1eOzMOeiJaLCVuZ4KVTmi4LLGm2dcswnxNO/Sn83ku98W+oAavw3AcDvzTL2bx9B1Fwt8DA9SpauTreZ7YJd8li0WTQQLfOCJa/n4/tt+5hVCXlzxYvIsvDNDIsqT38u5l1B9RgI1+z1cxrSApVHutl2wdzarhzgbqCUinwWrpOaKAIXalGoKZDkaZwBn3Q0eTaFzVjMUrmtD16EnP/+C34G3ukmgJVb9QCo+j3ljQ+wL4y9uBRakQElZ6R6PAgGeXqXnVVy4Bq02EwervfJ+e4fCEzsYxwLu9E0l4szqEN2MPq3zwNatq7533oHd57PZlOTzOQaLuBqmjo/awLsULTOtlL4pTBcCC3Z0m7DZkj8ugxKWr2/39HfXiVLxDLxG1iLS8xSM0a523QKDJeB9x/xHR8qkD2P62TYTaMkDP+acnLoiLH9hCBxNJKOvFsaF/fqakJ9oF0JYFVEsSPb6gQQYQC3j2jnDSSquhMTPQ2V0pPJVY1+53rG/DqoSHGnZr/sFDwJNs77QTakV5oOf+/R+3Ae31womshj3GEj7H904hHWNbp0NBiOvwcW9ODPk5HqXwtyfSh/3P7d07/czOGZX0o0QbEkyGkmOJ1yz5OH1tjWb/hb1hAc/r+Eu9Y0GVHBBbCe/Qeo/0h6vC+lZ/hCR+1tWCo66Hhz1F/cPYKT15lQV8NHGMRLXS/tuHRcunny8f9CwgT18W9NSravB9W+iljnovA1Z1nPZrINoHA7Q2snEML12flKcDQLGPntW5y5kwUMZSnp+zpsav2dOtNtXVgJ2FHq9+f/kocPASsGERobFW+9rLkvTcx391G7CoLoSEy50pxK852QcsbTHBNBVGrT2PV4p8CZ9TVsFRhdzxU6QOEiU/u2eV6J1uaT9joNcJylns9DxsyHUXhtTeAyZi6BAAdXDm3CgQZSzFPCyupOfPXBuG/c9MHRCEtJT+CysX4QUX+JfStBUK27NSRtR5SxmIAlYAHjg6OdDbAeRE7seO67oy2ZSvonqTDAhfIBEE8Nnw478DBebnhh5DY1DadvjL1lqvzveUz79dGg394NxPazsosnMmA/q/3AssqhcmiBST7kb48CTOmAAZT1I+BrPAYBporwOEgygX7JaIZoUYvwfHMZJ6orOfTpwPyPvcLSumP01xxkD/s15qXeHjlqZ67YPP0981C9AFuPHaMCtQ03odwOuOLKCasPTh05gsxkdAGCH4T6xvH0vmuHSJWiiF1wdK1rnS17ZpDU8G/WdeLF/S50ozo19bIBtkW3Bbw5EDQZaOwGDRfna7kpm/dbDI8cFzl+jz+Lswqlq2pP/oXjY+Q+ZYIeluVZK+ESDhAfVsNyjg2ACwpD60O6LJ6b54zLvDz8nGLgestOtX2xBqSPn02detqH12Pkv6zpd6OblBCnY/shPA6vDcuTxwzFBkwGr93WQsMSHMHm7gKK6W2LQ+DvPzJLFGZCAxnB0dfGj7qtZoGT3ZT3cSydbIG2RUJNfT8v2jouVzUwS9i4hIpw1C6a6BbydBmOQdfsefHf96ZJSac/UEscZqRUCfO8GsZLbPy5Oxl/3zXgjyE30h2cwUkdWvmKfOmHfg8bo4HPKJeJK41yiiASXV525ZN/18nBmT9FyfMSPlbaxzM7itR0QXJDWgZ3WGjVHmvDCtl/3yTZr6FB5x6a4ngdGVuV1Wb5g3Y9UVLQH1lf45RXjkmiVCF8f7+mFasbZR7lEKHrMqUzrpw3hMTHvfPyFa/mmeg/4vbgkNZg1cRzqHzMmxfufEGJbOPD58cFSa1Zo42Jkn1JcJg1eaNsFFfJpC3V9z8e046uwTOksi8dlbVk//biozCfp1GSlfY8HLHclemxEmVrFLsi0EP4N9SIaf2X/fUDcG9rh0t6DnzrS5rNyOPs9Kb809l1Ced3TX0gTXd1H79lGyYz1+bmBY1vFz2Kwo1lUHRsIV6JnzouWbR6em3sx2Sf9f97D3xuXFmwkQC/ExIY5dk+wxWsJSnukF5uX4t0vDoQ+fjVqeF9yf2kgvEJW1fnwBdVB489yQTafTm+D7O6P+tP5n88XlEYCToNkIHR0JO29jRz7gGcwW/JHhabKJOGuJVSetLjnWMntFNA1E+fuvX4UX2Mw93U9XjwRyp1LQCZ2ayhtWGNBLxcOvipYvH14AoGeh4gj2iD/vSHtWvZ5ml2VHKKTYdhoNOMrGjMsxm4tBzhx7vXKY6935YwGvTxB4/NwT/ueuRD7tjEn6NNEmJeXOogxH00kMQJb2/I8DUpGxZEBs3SCR39sYfDaKWVMzRvSKmI5WhwaGvKz/yI1rxbmT/dQ+NCpvIMIiblqv3DZn1ID+i/Mc9PfsYZflGHdmTKHJjaxyBhdHXG0GmR4qR7dxge2qRq46Y9vWSVeeUALeD163Stzn3nO6Ps8Y6EeJ1lNG3hipKHH/jeuO5CDNUKj2cGjb6vyuIauls71GAof7wwRqe7B0t4c1lFmkCc9/Nb0cP70VkC/1YpvMyK1ZEVXM03x2PhaCpP/IHqCNbaaYOuO6TQcyoerCzMqIcFfE9z4R4O0KQAIZTwafuGVdqmBltkqDf8ZAPzw8vEz5NVyJIDrikdV4wIiN2pQfurpyIqhGulsmI4/ZEc5YMhsWRJPDQb1dISSHwFWw77a1tS/v2/dUQnRvfRNEQnPsxwxf4EeTVG86kgFaE5SXA6hxZfQI672xEjNyVzqZVK57UnsrjcuSaQE5nHfjxjwxKHBqOFEyDYGb+083Gwqw6ad4jIDVmnODobHLjodC0j1e3zvi3sQmUkRD1qoNnbttdfI/VxrcxdqbMdAPDg52IZnieiz6sIB3A1V53hlDLWBpxBxtlxHpAn4kE1YJaOBz7ADa+ziJyvYa4SO9/5T/zd+7SYw81TO6HunEje51/PnHr4qWr5Sp3nTXBtjbMoqOZG74bTKDG8PMuE0w0F4Z8PGVY7V4/nKyJO6NC3o7IeP3vMyFq2AmRsz3bh9oIumeE7Cyol7R529bn/zpZPplMtfMGOgHiBaLjHy9ccwUDDZFUHFC9hy04kwmdm26BC6bHM3XHO0F2OneYNxvUcUiuyLYCWDC+uwqP3DJf+mPrsdTzwPJwdPBrZ4Sne51D58QLV8v03vza9396ErGZd9khmly13zxaA2+erQuEg6F+PSWcGZBz6uomxYYCSUCDl4Arl485t2JP5WbDlhMf3evCTls1EeU+PM71l25mjgzBnreAHgoHbxWktCFjSLNIx5ZdTKOrLF6kqmrHsDZQVYFiXz07J83mf5sbOlVxJXuMYajVmOkVoeG13f4T7xlgzj5kxO01IO8ngiN2lYA8MgkQP/r3f1YNIOg//qJGnzxlTrthdL9VCCJxAX9n9005qd3JTeDk9UadkEmdbHBXLU/mtYx37sL8DglIZwUahQQ971+bfLHk5vWk7tqJkHv9WVxnZByU45+HokWE1RyCGcWwKyPc5WBDrOzXpSVxAQt9vdLoE2HeHP564UYjvZaLuy0uJmOPnsm8fh/uRXy8ZPYFsgxo/Ynp0TLN8qU9FfXpfHmjlHm1lzx4+SQwKcP1eH5S6WrNy7oXZCy4do3Cixm49XxybtgtxMhslXMGxdSZ8bUJjUqyHvG8/x/2TtNu7kU6vgZGI6xx7iYTm8R8K9RnJ1pVQ5HEo/nneFAFhu2bKwy1dh6WVjv5N+4ZIfDrY8KIkWeG+uLN/9zdLGuFqq3d+j+D97UcumhhyhB6+RbVYAmXmEePS1avnm8fD99ylM6ZD+2lOV+1Cl7lltuy3+YF48oB9agNUaq5bUTq2dKs5VDmzjcjURL9N6Mh9HAC+kMJfDp+fo/vSmU5ny4hibTuTlxpsZIeXcViKtC1nDNM2hNo3nuTIISRJeGgssf+/mrF+sk9ek+ZhT0fX20KCPkzcrTObHRYQEc9727xip/5gpdWabdmoHiDue8TE5g4MMGliIVyKpOzkYKmnc/BHQauoJSdOZXr0n+gK+/9xAtzozKmxs8NDx1QbR8dxKgLziATgIFE8NmC/eGQa91enOwWmMrHnCQMAfs9hyDYjfQlAd4N2Ekzs0xE11BHPbgfe6N6/PLHVZ6Eswo6PllLozQ7VLK7oIMx5jvPQ5enhynDGA51M3JFVywiUEf6fhGArp2A18XSXxTodjWs1Ee0qj3f/ie9aLnnfeS/4tXYVNtjdz20HGx6NGe8iX9XAL9n9zkuCwNUI/2hdXdLDVjIu9MfJWwtW/cfohctHbCaK8lm170pbdsSP6w0iCPtzfjoO8ZpQ0DA3J3woenWZYOILUBGvOX61XAMXZZwnBiCZPSWC9n2gEfOS5HY6za7y0tgdtnI4+jt8zp4YvI80llsocbdyb33cX7RhGJb7yc3fX4GX/3907gmnIzp+Ya6NuiemjApZGQV1PvfKffx0rn8XzvBv32lBzpb6jSnGfL9k5EFRc0eDaR+I/vn2b9fsZBz2Qv6pbvqE/At+5IphJzppAbIIo4Nq5qYhDF/A9mVOr6KlZNcc7T88RmVFn3p9FzOZ1P1640XHC9CpA/SCk8dvfWsPrWRz5C3qs34I0HLqi3z2fQv3cbsJn5TUzDCMIEFVZ3tMfGkcoa9w7gxzdWw0Gy0n04HZZNZBuB1Sfm5CccFA7W+b9z14qJ98Gdymow46Dn+jMnh7BNZeR2ZjWyjs0Sn1PkuGDqIKfHcaIxVw7m2pIxukL/SFhAlBOo1zcBDWbDAivVNXHM9lAM8DxunIPKUV5uWE8sPsf3iSSe+c3rBe+9pI+lH6erli1SvzefQf9bO0KKMOvvA2mu1gAsMw4BI+BDQV8E8Po3R3+3RjVnSDHvnmkLujR4WIRWj2V8wgwvBNBzRx3ppVVCyRsDQtLlw7PU5cgqqx/skWG6sBbIhqJqA1JcvpqJaL28AZnx3WvQu6qRLXxqQMwTgVMJmc+jQW9rOho7goTfe3kY373HJCov+9+0cWmz+v35DPrf3x32Ma+yA1mgLRmm802kzrhgZy8YMy45UaTeD1MCua2mZCjV2dNmVaS8FULQqeF04mN3bRVROuVUJHqxa2dc0vODnSVqGLiAXVJI3r81AqALXFfS5JTSMCKdL7tsuPc6WusAXn820sllTzJdYcjQFazw4kHntkhABr7/7T/ZFUYKFwLo//jGUJXpGQz1bC7UxGoOAzgqKuukMkZiWoSAZmCzIBo2FZaba8cESrQ4mA95gA8Lgdx351WJH1RqA+pZDXp+uINnaU0AeUMgkIgM1Zj+HufnRLq6Y9hyXi13vKYgOPQFnXJnzjO1k/QkcWvRW8NZ+7w9rsVCR//kpuQjCwn0LXXAsV5gGdebN9lQVmWxRDgXTNxX/D1LT86btRGXeJBqPP89nyuEOE0I7vu5DTU6v2E6JLxtc1ZIevswB85l75BSdLl1HyMJ7/BmctyRjhrDIGfAs6Gkc2NNw1HWlLEH+G+O2nIFMQa9ngTWUDMbl4VLtn8pUPjRPXvF4EKQ9H/Ikt4LM6JaHH+9HZ+4dHZZlnxOzu9uFYfi0j1iapprsz7oS3deNb20hFkF+ud6BpdkgxTnzeoYpl0S42xKq/YUiq7yb0xFYAOVPTnWPWm0oChfVnttDLnK+v/5Rz0BzApB5GezKrP/o3trD04W9FzfiYGU19Gmyq9+Rycia5PAGQQ66dvEGXTk1vJn+BlNpJWU0hsjsLS1NGP+uy/tQaryIrK/f0PYDqs2vIOhe0zkoYn73l1hlTchTMPupInaJxqWQfqzv7C1cf90SftZBXr25Dx1GtcpJTfrTnOIYhH/3TAj+Xf7nd08OPrObKyg/e/O/lDWO8OGlZ5V8biAVU4H024AAB1FSURBVIecWIGAfyxxHk98ugeryzVkV9ZmcWfHcLjsl3jEXN/hVQW/HGuw0M+nhwU+f6gOL5ZBLf7t3eGK16XrFscSvc3teELFD5eyECV8O6W73fOjYsjmopxrdUK6IAHVo1Twj7+4ue54id1W1mmzCvT85I+82rfIFw2vCXgvJlelccBuA08RXcFKZ2eS2KAT4zppUgbt5sfs5qzjyWBAbyW72x5/1iqPQIZG/Qe/eByLygX9B7v70TqDLMuvHK/Bl4+UzrL84LUAB6dYyheS7PH5Fwf7RNLdrmoWoXnqUq4r9KmLQ/5n/t007Es160DPHfLYq7QhyMjdKgHP6u8uX15LdKd8n/XO2MlgqbT8vVZjbO0bLluhgBEGPQex7M583KDdk9WZQFY1UuQ//NUjqC8b9Mv60epPq002roT7MoP+ldL59D+/Htipd+DKB30x/d0arDmrTUzKa8eA02ghMlpOknhIwpNeyv8/v7Be8IYbFT1mJej5DR88nr1dSaGHwC12OpHvPfLYOK5PZgna0iGs6zczN8foRpbVYFUk/bfDdgzLj/jD3z2KFxa3qN8tx0/P6s3r20bQ6FNUFaCio1fAQLTS9sywwFeO1eHx86VTi397pykBYh7SBaoFdR6dwNW+Ys9jr7ETpiDY3eUjtpsJCTokKPGJSvvtZy3ov7ufGgZ9eXt97RgDMwJ8PLLquCLtKmA5PPy3raXD19vgiF0VooitLRLl8H24DQ5esRP1e0f9Z7ua1W+XA3q+N+fIdiXl2A7jZpBzVAM3iunuzscGqmO82s+6CacamgWndemmFfD8ZR89I+XlyP7O7jGWpRtZjUt+ff+Yd6YQoO1zFlo5bBuREHABbycd0SAR/cu7t9Xsq6SwmLWg55e8d//oVUMycV3fCBIccOJk5MhXbxJErApiJbY1Vvl7u2Exf8d1dPgcdmXaw1WDtAcnlmBuy2InPNDxQR/9Ur2uXNAXHKxZSi22oC8G+Dzfe2wCx4R2jo4UN1gjv72ZPIVSDvTEBr717q2JbywY0POLfvOF9NZA+NuDAB7v7K0TvjmcbXzuHPaOpLajCvF32k9vWJQs4a2k5w52I7P6s2nHTh5WqXhbTes5OTXiN/cHal6zLBn0TTFGZVHf+3iAj3lm3MlgvTt8ClMU9HahKsbjNwjn5BrPE68MjQ5/5td3NJ2vFPBntaTXyyKR+OrL2V0UeFdZfz1LHKYQaEls6MG2Q2yU1k4EK9j5bzZ+2V3JtSotuHkQGPRuQEx7eYzPnieOLmM3JFr61fzm07PLUu+WaEFnP0SJHlbvCP/P877EvizmneG+5UKuvHIzAJnC4G5aZyS8lTiZNKmPv29b6pUFA3p+0W8fotrBEezIQK6BMh4do7646owGtolY2cBVVOTJeGdYenMklivmWrCbBUELdcvX1+2Ybud2ewZEyxDmN+h/a6ehdMfSBV3fe96E4CBa7MtCYGcBxd9zZltDLfT2QGFd+jEo5xq8So+HEOy6T/71r2yuXN36WS/pbZd8/rtnGxJdXddlSK5SwtSb5A1/LbXA5oEaBI/ne9crBFOWObfWCi/Hfam3nNeVR8dWgPPDomVkAYCeuTeROuJMfKvmlSrd+VLmzjNdnIu3Mk2ZJbrdyCEeUOO/WZ2x+qT7exCov37vtSm9Q2MljjkDen7Zz/yMWqGCG7OeaOdCq9aVGXczWsBHjM2Y753bYvWIO5a5+7odW6zVqEuR+mOuvTAiWtLe/Jf0DPo833sB12iO792hVLC3i/eXZTHO1GIWLmyDJZ1S3i6g49J9DPZm8inFDoaFC3ruhk88Rs11SWzOKKzJkvR11NRJFLHqibVBNXjZWDIiwtX5uWiUPdyJY1Uil6h2aUS0BPMc9HfvdHR6xyUZl+7M+7GUY7Z52EXKSSesrvCkYYBrgVLAJRMBPpZswlfkSf+QvZlNiOT/etc2sbB0+viS9olvH6oN2pduI6q9OqILu+mBdhIYQ9e6NbmdOF+HM67skeP+dOvZc4ZVRrSoBQD6yHvj+M1DAluYeM9esPpEmCiSJqCWK8nZ2vNOVpWjqYypS1aV5P9NDMIlFkXBrJyVRZwSmcw//NquhortMTun1BsX/FyXZl8dNpOSW7IBfCvBIx3fqeoV9+ho/7wNaFnvj5su6BiwVlXqHxEtKjk59Savkx2XnvZX2wiwkX6at2624OF3DoKx7Xg0m9KplcPb2esmuCaOsSh10sck9pz68LUhpZjLfpwdCiPTnBTOu4/rJHoK7U4GuivFC4I1Jrajc3LcmeG3OeqOC3h+T0EPHLn0yNfv2bs3spenqtfPWdCHL07iv/0UK4VMb83IBO/DOrb9jlFrzFe5O5EY41efbyKwLtksohhbyaSAvhHRImrLA32Np7CtPotmn3f4jg1VXE+ObzVvni0Ci4MOHZmNuLxO5QdtDYYAPTLo4cAlH+dHEyUXe3rHxnCbzJziVHxfVlfG8b3n8WZciR777BqrLuBzkkysAS0wrFTw5V+/rl4n8lTqmOOgD7vhL56mxYOD2C4zUnN1LHdGMyVtpzvJIVpqme/1OeYkd5Xgn9k/r9vjiG7Gb0nWqrI2T97bNoydTVFaeqXGrKR2OGj3mVdSePB0bcmg//c7YhstTEQUK7Ddp324HOmt5ZP1608g3Z3JroiOjST7Pnn31s7Bkl66xJPmBej5Xd95L9Ws7MA2mZVrAgWd92ON2ci4ddyaGufORIhWiQLn8LkM+lSZoP+3y/rRMoMsy++cTOILh+p15NPSLOwWnRpbjgrFUPzwDqDFRPMm8r3b6w2ec3SU8bwzhYzVeBv6HAEpZPCF9+6of7RELJd82rwBvX3jD9xPi1ICO1UgF2cJXuS+tIMcSxSxkjyiMjgMy9Btycq+juS2pOrKk/S3tQ1jxwxJevawfO5QCt85WbqkZ9Azl16DroA6Y4RwTgkQPjnOq7Hn6WaK+N5tJli0MsRmgwAOHHn55U/dc9fWildGmHeg50780APUkkhjaRq4JitlwiaFx33vOd4aM1JjdoGfQ00YzKKlvkzQs06/oymNZbUxlqWrA8R1+7hhFweg1XdNGxFWnHbYUH/iQhIHen2cHipdp/+QAX0hwMeNVX378QDvqDMlS3fzTgTqlZI+/cGdqcMli+8yTpyXoLfv/56vUrsS2KY8uSRQSLjlRax6kxPYMiqPlu6QJlElTC9n0DeWCXr7HFGtHhfsDj04qivjUImtXZKzY7hTgVhfY4xWm1drpSd7d1in13ZtGVWLP8jqjanp78w1i+9Iwkd++9gEtJPF2NN6VsQBb7PhokadSc7nevCyStBX37898ZAQ01MVYV6D3mLsXV+j1UGAdYpkV+CoPBrj1hizSeHacA2B7kNqgzcjfeb0TBr0eUJollKLOV2Qa9XE5mbp6kypxmqR1YonE5H6xgevS32rDMFd9qkLAvTcK++8l+rSEm0K8iYF1LC+HyWeaz2fIT7m8rSeHC65ls34GFRoaWksT6cvOhpzAPSF1JlC2+u4VYm5/zwj2+O+92Krgz2Pu8TzvO++b5v/Dd7Qumwkl3HBggF91CcfIe9Nq7Eymwg2gBLtGZJ6qwGW5kZNHQO/MXpraiRGRv2WxnkO+g9wcKrWBLtiPsdCxqrur6j6mdKJOl1OHfu8mpcxF6ftb9LUevWtU1+rfeCee6YX8HzPhQd6g36uPX8ui7UygyUKWKFY8jvFoGyurR2YYAFIegY9l+Zz8V5Qups+ZHLZYJrVQKXVeaYM20ht3DsT0ZPNtWMSXlwCgu994Nq6h8oQ1lM6dcGC3pH8ic2dSDWmsC1DWOMpCMn/HANL8/QDtHQ0l6/eFFynjdjUBp9xiPNnvX2OQ0nQP7Ev3TFarW/dNVrZWNXUBHseX8Y0BDZ0jas2yrW1W/hYe8Z5lvduB5odQ1b3kfO7FQCca9AzADSmmC4cRptzuGWuR6qI/s6kS07lralJ3vdrm3AW02S0FpodVdCbXtn8EapJrcDKIINu8rGECLWhNyE8RgO0tE0C9L3DwMnL+V0f15mtRHXrRlqQRSF6S1Vwi6i6SeIuwA1gXYlrk7lD3/lYyW37LK9dBtgdGR28m5PH1B6uW89JOKwKbWhTWGSKQ9k2Xf09z10ZJobwa76YUeo7H77uyuwS7o5AFfQxPN76ECUuH8NyZNE6KrEuQbKOkT8U+JOS9M+dAU5cFuhuitcLKL5Cx0ETqQKOYu1OmoiLY1cn139uVo440KPanXZymBlmVwQ74fTPMWlvVRUWCNs6FW5fM6YnFwO8A/4hgB6HyjxYybzXcvSdKuiL9haJ5f8TqcYa1GcFtrPqs6RZ3VBONQQOEn3voMC6DsLVXSUOi+vZcepX8tW2fqXr67Z1LF0prlUgq1ZYFcewLvW+sY7KpFUsW3bEUYf0/Zw2rNqlv7KTioCuBuANG1TuBgvufrJjr817xp5P1iT+cfkmnN8rRMVYkyX2bHRaFfQl9thkCrhydbWHDgm84WoCbylU0jHHQH/DUoWrO82bFfLOKMXlKZ8iofa9ek39/num2R1ZSh9XQR/1Eglexr8MeIsfhsCtQNNTEAMp1NZ0oP7/PoFNBy+rXy5V0rPSev9BgeYa4Ka1lJPtP+7AzCHQMzfttSsVVrZEar/+QB5vsAAJIV71FB4PBi/v+8DNV2aP2Croi/TAvtNUn0qjWdahjgIkUauX+MXCR5cPLCeFpZwUxJfzxgTsznzmLPy/fUYlSwI9AS/1AE+eEPilayncwqbUYw6BnvX5a7ui3ZA0e1iA+kiI0wmo+2v92qOVLslXajeOd968l/S8M+Db78Y6X2GVJNR6CXhE6ABhuSewSBE4/3/Cfnj2PPDJpxVKAT1vKX//CwLbugmbTUHUkgdrjoCea9a8ca3SuwRq6Q46J4S/PxuMHmp5peH5u+7SXt9ZeUw42LPyqWMPxQWhDgM150/Ca66FrwjbILBDEVKCAS3QpgitZkO7Sb1zqaDnVLtvPS/Q0QjsWUNI2O1QSu3IOQB6DmHvWaHUsmZkhEfDmSz+xRM1F070ocduTFfq687EeZMCwEw8qHtPIvKePYcOobBC+kglPLSSwg0QWKSljoAnlI6wVuz9DpwHPjGBpGef/A8PC13fZc960hW8yj5mOeh5X9nbVgPLmqi/rT7xnWQNXri+E+eme5+osvtxnAsqBopKPlShtlhNeeeHsBwCm5FAIwHdAsyc1OrJtB/7zwN/s0/hzi2Fwcy7nvzkkNBJ1Xs3EtqdgE1ZDzeLQc+R1/dsE9jU4emgnRDoV8BRkjibSKI3Abx09WJxuqz3nYGTZy3onyOq6T8Jv6kOq32FN5BCF0dJ4WmQl6s0TLlreUfyjz8B7FgtdfjdHuy35iKkX3tG6MoBe9YR2hpyw/Jl3XwWgp4tVK5M9t7tAiubC2ygxb5/gUAAI8LHCBFOEeHr/Wn0vWY5smIGffKF+n5WgZ6Bjou4hiSSno9bBLCC6MoDvFBHcXDmgeMKB/sJazvCMzgwdLoXePyYQHcLsHMFhdv6TOWYZaDnTdduXg7cvEKghSvflnEIgUBJ8K7r+8nHpdZ2HFshxEgZTUzLqbMC9Af76aogjet8oBkC2xXvHD7LjkxW6dLdT/cAFyTvpE145BWBVy4Ca9qBmydjtBacXWMsR3dHQT71SkdkVzQBNywT2NHtTdk4EgLMQDomgHMDCo/MpB0wI6A/dIhqR5vR6nvYJQRu9jw0EulqcDPyPOPNLwZeWqqwHIgpssRl7E6lCSd0QSSBpE+5JeymMmENU5KbiNLuLPPS/mb5NIY0ps8zFdksrcDuAsgsTh3vN1lNzMbUNARDkokyx5zvmEz2xjXA5g6BZCLU3yt1EEHx5nUgjArgvnQChw+exNCV9OdfUZAdGaQuCrCNFNYpT6sxV1w3L2vwuD6O2afV4EZfblmPzCe3XJQIoI6yX4hhaH+OiFlxMpdBu5NRFKpS7oPHGtZ5sEVerNj3+n0K/LgoBXTUA7Xl7ANaVqfmniwE0orwjO/hlcDHc5uaxcUpNFfSpdMOeiLyj13GikDh9R6wjASWOIzdkh5ypk5iCe9m/Fvpq7ES5YOOleWzv4czI3xqpxBZDjc9zrnMoRo7YMy5PtYRxTYwm2x/8VK7tNkrnTIx2RsVuI4LtZLAWQGcHkzjS1/9O4xMVxbVtIH+0EVqTiSxNEjj3b6PDg4MmVKIFeyq6WsqoDAbyJXkLpAdgT6243eB3TlyMoYKbDWp54czA/LS8uJVxHJmVvgUrsCOPhdoc7ze8gWwvNlDYtoQUdpYaSqDQOB5eNQHHvebcXqpEMOlXV3aWRV/xVeJ6rK92CU8bIHCNXNFqrvdJZ11P0fNsFRbB/FxtcYF8HjX5tRuNO0VvdZBdh7Ai+zMnaO5jKP+cNOss3MiSHPN1A3W0mBX4lkCXFT6WXg4sLYZ+ypVEqRioH/uOappXIOtvsTtirAchFRFLaAS+2nKp2lLb0x6umpIHuDMljLFpG00dwqk3OW160youK6dd19Xiheg8xZ8/viEdTqKffAdjV7utp9T7sjKNSCAQVJ4mQL8aFU7DgshplQgdMqgZ9966wB2gnADgA1ESMxFsAvezMpKXKumOEDJqcxrzssBbt4mA0b1cMHm6Pk56hH/EZPGVrWKVwQ2p0aIMs6Y8G/XznAwZ1W0+D35HkkPWNrgIaFrQszeQ+fUEpTv4cVsGt+/cAyHd+2aHPinBPqjg7SkRuJWz8MeyWCfowfXatG72xXwpEQqSgFPR2R82kng6DN5vzniN0dyx9q1rsQ8aV1AUhdUkWKzIq5+xVelznreVKGSTsnpB4EncAEKz8tmfG0ywa5Jgf4sUYMYwmsBvB4Ezv6cW73mjIvwlJ6tLkgLufLcoXQ3F84xPJ1GXCzHPTCu7m7b1e04W1fGVSNXSru2Qs6cKWBz5N3buWFbDdBWPzeHTkt+hR7eavhiM57ZKkTJhV7LBv25y7TOq8HbFWHj9M/p6b1DguMkZszz0rYLAChP+roqhNNA3IDNUUEclObp9TZglDPD8nfqyPPwxNSj8ewF64JNJoCuet5OZ26C3naRx94eD494KTy8SIgTpSCmZNCzv/1iFjuFxBsBLKskbbeUB630OVygaLzhLqDN6EeIMiOcejXxZ4sHiyIVI9ZosdUlOs1Rt+xK4E68uK5uNZsc9SkWT9DP6gEchKrP23Kk0r18Zdpj4BPhWKDwra4GPDeRl6ck0BNR6vIofgmEXSQwVUrVlemJce6i6y2KiXWyOHgKNRlJVefkCMzFpHoBozcCcIF24quQpRXkqEbmD130ydWF3NXIfGZvTWvd3JbweWMhOI0C2VGFLyypw9PjMTsnBH0/UQel8W4ibCklrW7GET3uA4QG64QvbdrIU3msKDW/x1eDSK0pJNFjYI7aLuJDz6lL41Af8oDusjKddy9Ujo8N39oEwIkgfs5+l7N71Mp6Og5sCTyANH7cXITSMO74E1HdQAa/BcK6sm48K08usNnZZJ+zgO6jDcaCsySfF+MarfEaj8VUFP19gVUgUnfMb8WMZv6eB5sBXzvH9fiJho3CnVMPZmrx+cVCDMTPLwr6gQFajCTe7XnYPNf1d+2SnKinpvC7q5vHmV9xEBZyi+YsIPFCSQ6Yc7SWAn59dwLlVQwGkEoATWVy4qfQLTN9KfkChzJD+H+traLXfZiCoO/pocb6NnzIF9jI29HP9NNP7f4haqYT9PHniwRy3AMU4+bEA1KR1B5HqltgxwNj7rXxVYH/Zlf8AgJ8JB88YF8qia8JwdWRw6MgoAcH6XY/hbumBrbZcvXMzFrXmMzThopQB3JckUV0/ajQq+nevJLY9vtYoI2T1evmWBCqEggihQAC/1yfFD8tCvpRoo0I8GEINFTipjPXRjGn48w9Uamenhx1pwiIo3MKxBNy4gQAahJAne/lb+A8c11xZe9MGKYEPlknxJE8SU9EazIKv0rA8iv7VBW+20Qh1QrfbjLNFXMrRmpKIUqxMxsKeY6KBaUaaz1dqW0BH+QBLyU9fJJdmVFXcC0ZKfF2CLxhLrsm9X52Rbwos3XQi61JxVaGOPltPLWIVRpODlnwB6cp+vimD3w76o6REVpVU4M/IMzl4NPsU2lKBlsRHd59o5y57K4ERWIAnIup0/6qoNfDQMCr6RH8gyvpP6wUrp27Uj7MdJpvR54a47xkwZXAXMCxJ07wFlfUbzX7e9/z8GkNeiJaBuB3wCU45uih1PwEfd5wxGZ2TozAOTkpvMpVaJijmCjy2BkL+jcB+LmZqBw21f5ksC+0o9CK5kaDmWoxb2kGFRhswexJ3lsYwN4KtDcvm8iZVhPOsQlPqFgfFeMGiaqUH7ePGfStAN4HYFPFRqPa0LT1QDzaG94od6J585VMVqFeZdCvAHA3c5Eq1Ga1mWoPzOoeYNBvAPB7V5ieMqs7pfpw87sHGPTrAfwuMHcTu+f3EFXfrtI9wKBnysFvAGivdOPV9qo9MBt7gEHfCOBXAVw3Gx+w+kzVHqh0DzDomWr+i7qcR/Wo9sAC6AEbnLodwC9U9foFMOLVVwypSETEez7/KQD22VePag/M5x7ocQln7wdwfdV1OZ/Hu/puAP7eBT1L+Y8AmOxmkNUerfbAbO+B5wB83gU9f7bEsyuZRz3bO6r6fPOjB9IAviCEeDInvYCIeGucXwZw1fx4z+pbVHtA9wBz854F8KmcdEHbOUTEQSrm1ndWO6zaA/OkB84D+Gshwvo3BRPJiIgzqN4DzPWKCPNkyKqvMZUeeBXAPwkhjtlGioGeNy++E8CtXBhrKnesXlvtgRnsgX4A/yCEeNl9hqIpwya5hEHPGVVV4M/gyFVvPakeuADgH4WpdVMS6LX2T1z9GG8GcEs1cDWpjq9eNDM9wCrNl4QQhwrdfsLiEETE9ei5TDfTFKrG7cwMYvWupfUAe2lYpfkbIcSpYpdMCHrHq8PBqw8BWD0XE8hL67PqWXO4B9gPz8GnfxVCnBvvPUoGvVF3mKPD5DTW9WvncAdVH31+9QAD/isAnhBCjEz0amWB3gCfqycwT4d3A2cvT9ltTPRQ1d+rPVBiD7A6wxswMOB/NNFeU7bNSQOWiLYDuAPA2iolucQhqp5WyR5gwO8D8GAhD03F1Jt4Q0TUAehSgP+mCvxKjme1rQl64CyAn/C/UtSZeFuTlvSOgcttcMrh2wDsMizNKbdbHfZqD8R6gIv7DAHYD+BeVmtKVWcqDnq3QSLiDdluNNJ/ztbFrMJt1vXARQCPAnhGCME++CkdFZfIvCOhYWnuNOCvGrtTGqIFezFL9mEATwI4AOCFyUr2aZX0MamfMFWQ345wZ5Ouqt6/YAFczovz3tC83f3PjHQfFkJEG7WX01Cxcysu6QvdiIgY8Ozt4Wpq26opiZUYunnXRtbo60eNgTo6XW94RUDvGL2s53Oiyg6Tj8sUB14RruhzTFdnVtstqwesj53BzTv/cTT1nBBisKxWJnHyjIDN1NrhiC5zeq4GsMZMBp4A1WN+9wAHk1iac2LHY+azEkJcsRrnMwL6mO7Pz8Cg5+rJrAbt4V0g5/e4L8i3Yw8Mp+ydBMD89vOVMkzL7c0ZB30B47fJgJ6rrrEBzBOA97StJquXO7ozcz6rLSy1me3I/z8D4IcAmBPDRikbqjN6zCrQFzGClwJg9ycDf6X5x27Q6jG7eoB1c07JY0nOevmPr4R+PpkumPWgd4xglvQ8AbpN1JftAa7aUM3qmszIV+aaAQAvsQ/dSPLTQgimCMzqY86APt6LRMTSnhmfrP6wK5TpzlzJgScHTwT+N2ffbxahhtUVDhIxfZfVFZbk7G3hLedZVQlmg8pSTn/NO1AQEVdoYzoEJ7uwN4gnBq8IbCjPu/ctZ7BLPNcGhw4bkDPQn+eAkRCCPS9z/pj3IDB5vpzmyAkwfPBKsNFQJJglyivFvO+HAkhlCc7Sm7OM2HXI6XXWCL0shODE6nl5/H+Nzk1bCdOMdwAAAABJRU5ErkJggg==",j="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL0AAACeCAYAAABn7wuoAAAgAElEQVR4Xu29C5hdR3Um+tfe5/T7qW6p1Xq/ZcmSbOthG2NhZAM2ARJuAh5ICCSBZJg4yeQxyZDc3CG+38yQTGAmCZnhJiEXDJkAxgbCxWDHYJuXjW3ZSJYty9b7rW6p1er3eeyqdb9Vu2p3nd3ndJ/TD/Xp1tn+/On0OXvX3rvqr1Xr8a9VApVjTvcAEfln+rF6WRO6hBADc/plrtLDi6t0n8ptZqAHiMjrGc7u6Br2Nmxu978rhOiagdvMuyYroJ+jQ0pEVQC292ewNpWVYlG9/2MhxPE5+jpX9bEroL+q3T09NyOiBga8BFbsPw/c0An4wCCAbwoh1PTcZf62UgH9HBtblvABsEsAqyGBvd0SOzt9fgvpA1+pgH7iAa2AfuI+KpszThPVLgNuALBGAl7PkERNEqivikD/sBAiUzYPXKYPUgF9mQ5M/LHYaAXwBskS3hwvnpfYushHUmMe5AMvCSEOTPaVzl6mFUsXiFOTvX6uXFcB/RwZKSK6PgPc6AN6zCSA7n5gUT3gh6AHBTiTTIqnSn0lVpleOofVy1uwfkG9+Fap18+18yugnwMjRkRLJHALgHr7uGf7w09Lm8wMABAE6KqpEY+X8kpExC3sOHBJdq5ugmyo8p8WQpwupY25dm4F9GU+YkTEQL9NAh3uo54fCv/qrBn9lghdyWTxoCeiFjaKA4lFvSkp2mp8qvLxihBiX5l3y5QerwL6KXXfzF5MRDw+N0pgM4xao1UbKdEzBLTWRPo8JCQIuFzt+08KIUYmejID+JsFsPB8P0RWSqxo8qF8vJYE9gohaKI25urvFdCPM3JEVAugHUAyftrzXcC6ppGgr6u2e/VqkZoJABDRUgncHr//UEbiSA9wwyJf6/as4bNznqQcVtns0w0NDRfGex4iapTAbgCtEhA8gbiltnqf/f3dAJ4TQlyZiXcqhzYroM8zCkTUyupyEKBFCHQCqLanWZD99Dywvg3Z2iSdIaJhlU6ebWzERWB6JKTx1txp1JrRcZLAkJToT7ERyxZsCHhGPwHptPKfa60VJwuBi4gSWWC7B6zn1UNK4EK/xOIm3xrEKR/4iRDiTDkAdCaeoQJ6p1cffJD8974XOwEsl1IDPeqfEOyjUvXYFWBZI8Aucv4tKf104GMIPvbVQZO/Ri+ZxMgR0QYJ7IAOtka31h9e7gY2LgI8I+eVDJ+BgKwcCfa2tNQczXdLoy5tlsA2225WAq/1SGxZFN2GXZ/PCCGOTeKx58QlFdCbYSKi5mN92FklsLizPh/YjTgFMJAKQdbERqQBnDPalPD87sEsDrbV4vxkIqRElAyANwnoVcbONTPlgL1nJbYvzb23VIAkSN/z9zbXiMMFQL9KAm90J3NPKtTd9LuYV/R9PCtE/jbmBKoneMgK6FlCEgs33CklOl7rAda0wAZ8Ip3Z7cfjRttd2RiC3z3s355EKgN1pq2u6ielAoWI2iRwjwancwP+OJSVGMoA7TXhvfX/hm0jJVRG+S8sbRKvxe/JEykDvMMHmLcTHU+fkbilU+vy0eH7eAXAvvlqzFZAr/3b9HYACxhkDKpTvcC6Nh+eP1ZDyQLo14ZfKB3tGTlnstQNIUT9g3Tu8MmBF9+6c0FfseBPEb0rIdE8ej77ZsLj9R6gsx6afqC/U6zThOjPAIrEWNDzpA4A9tSsyfUCAa92S2xaZEEf3scj/0wigR9MZpUq9h1n87xrHvRE1Cml9mQwVVcf54ckWE9e1MR68+jB32UUcKQX2NgWk/BW2vLXUmNRH70pHTTqa2ry9y2tmzjoo6W8xFsBJMKmQrhbY5VtiY76cCXiX6w+zwZpAMhsJnhh7cKa192nI6J1GWCHH/NC8Xs2MXfHz/UCCfj91T6+LYQIZhOcM3Xvaxr0xkNyE4DrpLTh/RDwrOasawvBZQHHg8CgP9UPrG5x5LALeANEg32tinADNdUYTiX8F9aM41nR7Wdol+eBjVhh1wt7/6EsdHuNVeEz6enAE1ECvAIpiSBF/t4ti8QR+3REVCOhJ5GzcoTXvdrDvnleNUIvkJ5c4eQJGqp8Jq9xs3mPjxN5bwa8hYDXPITrKCtXw/NrZZAhwOtLUOLAsjZ0ffWroHvvnZpRP93gv9ZB3yol9gCos65I28GsMhzvAVa3GW6LMVgPdgPr2gHfLgEO4N3JoTUOCfRngSoPqKnyKRvITMLzX1raiNeRJ/jDlIAgwBuEkAu1FDcPw+3w32euhOBeVm90eQN2mdWqDbJZZFQ6+/wNq2qjZJI00WYf2B4Bx+hJ3OaVlAwNWKvQjxrlsr7Kfygf6I/3UkvSx6IEye0K4hYJJIngkQIT+QU8j5RSUIr48RWEf1wRvp3wcH7tAlG0ijfdQHfbu6ZBf6yLOmpq5Fs5KBM3SXnEzjO/RQGdxmBlg3F/N7B98ag+bXVtlpBWutsPGqhDQIfxjPD1JDBCVf4P1zUKDgLlHES0SkpmUkrfTiBrrPJzdI+EK0270ecZuCllJD1PAIkRn/xntq8Q57hhNl4BvFNazo5jeLDXpj8TSvpIRbJ6FEE21eaCnojquofwRinVJnjeZklK8DMp/j90l4YrhfmgQNCw178JGZA8CElPXL+46tXZNpCvadD3pWh9z6C85dIIsLE9lMieVWdY1cgCZ/qB1npo3bd7KFR3moz2nxfwDvhTEjh5JfQGaZJ7iA7KSr/rxACe+5nvII0gNBuW9EM88pvY0JaUTDvIcYVqVUYBF4eAxhp+Rp98Kak6CcX30CuBBIYV+pIN/vdvbROajkZEmwyNwSrt0cRkLn5vFlhjJ7QBbTar7RjZWh+CnifOyb7s1mrPfysIK6RAgsHMYI9eiYHOSKLwFS3g9SmjRj0/0OUgkD/uXVr96J5ZtBeuWdBzoGYgwK1JIdcyYNgNyfryulag3pAOQhchcCkVBqJY3elsGnVn6jHNI+FtFkcqCxy5FE4oq+4YyU1fPgj5uQP+9YLA0V97CN/LsZ3ji4H+2xOglU3ou2+XPLauGSPaewMgnaXuN61OPM6SlCUzgF0SWJ7r9gwjuGxgN/ECx1OOVwvHKCZAdtT7D10EqmlQ/ZJS2CYJCT7XSu9IwlNo43Q2AIJ/N+Le/h5K+tEJIUlJQd7jwTn/Wzt3FrYZ8r74NH15TYM+FeBOT0gdAGKAsvrAQpwB0VoDtNSGujvzXNiTM5QC2owOXEidcaU/qyJneoFlraOgZ8Ad6kHNn/9EbBQemta202gkjLFh1AVJ2uuDLCOQ3TKsviggYKnOIFWCVjaj+w9vpsM+QCFoqevNa5KaWkxEyyVwK8LIspHw4dPxJDnYA2xuc/z8xuPE7ZCErMr4388ksvcIz9+mBJiDFAE+iNQWICDgZC+wUk/dUKUpBHirBpGibuWpB3curp50wstU8H8tg95LS/yMgNR+mEiHVgCrDCMSOMVBKA/orAX2dwErWoHVraF0T2XZpw8vMjYdq0BPCGPEJpK+aktK0ow0MyMePSlanzrnXX/Lcilqqhy3KKsH7Hc3vvc0G6iSJbg2UvXETAdAmj02+jehfutmer61FhkGsiK6cM8XEk8ta0byBx/E1oYasHrjCHoZBrIIdLIfagtT6cwksMayNqAD1CaTYo0HtAaGTKTVGVelMfr7iT5gcT0haQx7d0KMqjvhfewqoT8L6q3yE3+1ZZEYlxw3FXAXurasQW9cihw0Ynebl05DVFfrrk+fOIGLU2E3cttpiXcQZLNFhWPnhZLR6KOpTKjbM8+mqRbe3+/3O84PoHokQPWCOjWmD+1EYHCua0Lfu9bT+YiuIIFHT4mOS4o2LG6MDUsJoGeQZwO2F+T591zvH0lLUFb5J+/7DrzWGmy+sVMtSQpPT0r7PFbHTnpKrWjE0I5O9N+2jHSBqAxHtljdUaI16WO1MsavBWo+MA9ngd4RYFFdaL3a+4QrjXZ96uPScLhyGk0qOpGIjsNL/PPOpVc3RbHsQG+Bns1inRDwhdCAZ3hYJyH1jMhsXYJ6ahJIZ4jSdcnkyyywSvEKsJ/5jwO8jZTU8m4M4M0ouurK/gtI/M+f+quO9mHxdYulaKkDmnNoaWNB3JwUXe9YRjpYZKXpqWHR8voIbbGpf9FVkwB9YzIY/PCNiZ8GBHU85T/9376P21ctkLtbbKiN1SPHw6JVD9KgpIW1NLRpIQZ+dZs4KQSy8FBdI8T1EKjXC4KZMRa8rm5uvVueR2ivC1co14Njrz8/GDoItFro5RrAem54+NGuTv/LVzMQVj6gJxKXgaYmqQlRnMLGcsdhOY7Ckmu9sK+cDU7ua80uzNJFyo689EJjY18xngE2ZFMp3A5PrnQBH312/e+szkiI//g9sXrvRW/J+26SgmkA3gS9x03UQXTdsYhet4BngF/OovbQgNiYJsqV9ZMA/ZpWeebtq/3jGYL8zPP+11/rw3s2LJS7mZtjJS4DUqstBvCWqxMCVdCuDpV+/1acWVjnLVECbABrO8IekUsykt6h7t6fBqoTph8iV6VxUimAAc9dtIhbjMR87orAYA8o/Ylbl9VdNSpzWYCeE5P7+7HiQiB3rG32cxI24kEjHogjV0L+Sa2R/Q5oSXl00k8kjhp6r7vijlHxBtJ0vYDkiGx0WJUmWq5N40+dEQ1/9IS35e4NMrnK6MKFdEYXLDUQXW9sCyV9pP8r4FxatZ4aEesCEqMJfyWAPlCgpipx5V0b6KAgqEAh+Mz3/H85IfCeDYvk7cWCng1m7sZfvF7gbWsdoLurgwPoUN0hsGpzegBY2xJKHVeN4nPODkLr+Qx417C1d3DTsoQQR3Yt9f9yov6crt/LBfQbpMQNp/pR3VQLtDguw/BFR2HNHhQ2NDmSODakFJ7pscta+ueaavH8eLz2S8O0tMaXewpJd/fO3zkmmv/L09j2vu2EhoilM/4wMBCqleje1UavJ71w9beTiu/Zlxb1Q0BNQikOETUoeIN1Nd6QjrCyMWv+7WeXivGusB4fZBWE52UXNtBQnadPFQmPTm3qTDT86RNq93BArQuKlPQMej62tgP37QLqfBHp4nF1hkzkiUGcImjgN3NfOPo7A/78AFCVDFUa15+fD/B8rVRIJ8n/xM5V4vx0AXu8dmYd9ES0UErcxQQrndBwRWJ1k69ZhGM17dCfzue53Bf7ghq8DsNxOPDPvZrFi28tEP4eGKBFqkq+heeJXfJdslg0GSTwzWOi+e/2Y9s7ryfUjkkeLNzFlwZoZGnSe33XUuqPKMBGv+ermFaQFKqt2ku2pLJqeFE9dQek02C19BxRwBC7Ug3BTAejTOCM+6G9UTSsbMLC5Y3oeOaM53/kEXibOySaQ9UvlMLjqDcW9L4A/uIuYEFNCAkrvaNRYMCzy9S86tHLwCoTYbD6O9+nezg8YVHDKODd3okkvFkdwpuxh1U+8YaV1Q/Oe9C7PHb7shwe5yBRZ73U0VF7WJfiJab1shfFqQJgwe5OE3YbssdlUOLydW3+/vY6cTbeoZeJmkVa3uERmrTOmyfQZLyPePSYaP77A9j2rk2E6hJAz/mnpy6Jng9fT4cSSSjrxbGhf36mpCfaBNCaBVRzEt2+oEEGEAt49o5w0kqLoTEz0NldKTyVWNvmt69rxcqEhyp2a/6HJ4Hn2d5pI1SL0kDP/fvJO4G2OuFEVsMeYwmf43unkI6xdZFDQYjr8HFvTgz5OR6l8Lfn0kf8B/bsmXlm56xK+hTR+gSToeRo4jVLPk5fW63Zf2FvWMDzOv5a72hQJQfEVsI7tN5j/eGqsK7FHyGJn3Y047jr4WFPUf8wdkhPbrSAjyaOkahW2n/7iGj+7Culg54F5Lkrgl44rQZ/5Xp6rb3Oy4BVHaf9Koi2wQAtDWwcw0vXJeW5AFDso2d17komDJSxlOfnrKryq3Z3qk21VWBnocer3188Axy6DKxfQGio1r72kiQ99/Ff3gksqA0h4XJn8vFrzvQBS5pNME2FUWvP45VirITPKavgqELu+ClSh4iSn9+9UvTOtLSfNdDrBOUsdnge1ue6C0Nq7wETMXQIgDo405UCooylmIfFlfT8mWvDsP+ZqQOCkJbSP7hiAQ66wL+cpi1Q2JaVMqLOW8pAFLAC8PjxyYHeDiAncv/kpK4rk63xVVRvkgHhCySCAD4bfvx3oMD83NBjaAxK2w5/2VLt1fqe8vm3y6nQD879tKadIjtnMqD/iz3Agjphgkgx6W6ED0/ijAmQ8STlYzALDKaBtlpAOIhywW6JaFaI8XtwHCOpJzr76cTFgLwH7lg+82mKswb6n/ZSy3IfdzTWaR/8GP1dswBdgBuvDbMCNa3XAbzuyDyqCUsfPo3JYnwEhBGC/9y6ttFkjsuXqZlq8JZAyVpX+to2reHJoP/cq6VL+lxpZvRrC2SDbAtuazhyIMjSERgs2s9uVzLztw4WOT547hJ9Hn8XRlVLlvSf2MPGZ8gcyyfdrUrSNwIkPKCO7QYFnBgAFteFdkc0Od0Xj3l3+DnZ2OWAlXb9ahtCDSmfPv+m5dUvzWdJv+i1Xk5ukILdj+wEsDo8dy4PHDMUGbBafzcZS0wIs4cbOIqrJTatj8P8PEmsERlIDGdTg09uW9kSLaNn+umdRLIl8gYZFcn1tHz3uGh+YIqgdxER6bRBKN018O0kCJO8w+/4s+Nfj4xSc66eINZYnRbQ504wK5nt8/Jk7GX/vBeC/FRfSDYzRWT1K45RZ8w78Hj1DId8Ip4k7jWKaEBJ9cAda2eejzNrkp7rM2akvJN1bga39YjogqQG9KzOsDHKnBem9bJfvlFTn8IjLt31JDC6MrfL6g3zZqy6oiWgvtLvUoSnb1gsdHG8bxyh5Wsa5G6l4DGrskYnfRiPiWnvu6dE8z/Nc9D/1ztCg1kD15HOIXNytN85MYalM48PHxyVZrUmDnbmCfVlwuCVpk1wEZ/GUPfXXHw7jjr7hC6QSHz+jlUzv5vKbIJ+bUbKN1jwckey12aEiVXskmwNwc9gH5LhZ/bf19eOgj0u3S3ouTNtLiu3o8+z0ltzzyWU5x3fuSTB9V3U3r2UbF+Hnx0YlrX8HDYrinXVgZFwBdp3UTR/6/jU1Jtyl/T/92723ri8eDMBYiE+JsSxa5I9RotZyjO9wLwc/3Z5OPThs1HL84L7UxvpeaKy1o8voA4Jb54bsul0ehN8f0fUn9b/bL64MgJwEjQboamRsPM2tI8FPIPZgj8yPE02EWctseqk1SXHWmaviKaBKH//zStxkM3cc/103UggdygFndCpqbxhhQG9VDx1WjR/9cg1AHoWKo5gj/jzjrRn1etFdlm2h0KKbadUwFE2ZlyO2lwMcubY65XDXO/OHwt4fYLAs13P+Q9cjXzaWZP0aaJNSsodBRmOppMYgCzt+X8OSEXGkgGxdYNEfm9j8NkoZlXVKNErYjpaHRoY8rL+07euEV1n+qltKCVvIcICblqv3DZn1ID+y/Mc9PfvZpflKHdmVKHJjaxyBhdHXG0GmR4qR7dxge2qRq46Y9vWSVeeUALe9960Ujzk3nOmPs8a6FNE6ygjb41UlLj/xnVHcpBmKFR7OLRtdX7XkNXS2V4jgSP9YQK1PVi628MayizShOefTi/Dj98MyNd6sVVm5JasiCrmaT47H9eCpP/4bqCVbaaYOuO6TQcyoerCzMqIcFfA9z4R4O0KQAIZTwZ/c8famryV2aYb/LMG+uHh4aXKr+JKBNERj6zGA0Zs1Nb4oasrJ4JqpLtlMvKYHeOMJbNhQTQ5HNTbFUJyCFwFe+9cU/363r0vJETnlnsgEppjP2r4Aj+YpHrTngzQkqAxOYAaV0aPsN4bKzEjd6WTSeW6J7W30rgsmRaQw3k3bsxTgwJnhxNF0xC4uf/rdkMBNv0UjxGwWtM1GBq77HjIJ93j9b0j7k1sIkU0ZK3aUNedq5L/abrBXai9WQP94OBgB5I1XI9FHxbwbqBqjHfGUAtYGjFH22VEuoAfyYRVAur5HDuA9j5OorK9RvhI7z/rf+v3bxMjL3Sn1iGduNW9jj//8LRofrhE9aazOsCe5hTak7nht8kMbgwz4zbBQDs64OPhE9V45UqyKO6NC3o7IeP3vMKFq2AmRsz3bh9oIumeE7Cyol7RF+5cl/zxZPplMtfMGugHiBaKjHyLcczkDTZFUHFC9hy04kwmdm26BC6bHM3XHO8F2Oleb9xvUcUiuyLYCWDC+uwqP3DZf+2PbsYLrwDJwXPBmz0lFrnXPXVKNH+jRO/NL3f2oyMZl32TGabJXfPl41X42vHaSDjk49NbwpkFPa+iblpgJJQIOHQJuG7hqHcn/lRuOmAh/d29JuSwUR9R4r+8de3Vq4kza6DnDYCH0sEbJQld2CjSPOKRVSfjyBqrZ5i66gGcHWRVkMhHz/55k+nPxpZeRVzpHmM4ajVGanVoeF27/9zPrBdnfnSKlniQNxOhQdsKAJ6eBOh/rbMfC2YR9N84VYUvH63VXijdT3mSSFzQ/+lto356V3IzOFmtYRdkUhcbzFX7o2kd8727AI9TEsJJoVKAeOgta5I/nNy0ntxVswl6ry+Lm4SUm3L080i0mKCSQzizAGZ9nKsMtJud9aKsJCZosb9fAq06xJvLX8/HcLTXcmGnhU10/KXziWf/7M2Qz57B1kCOGrU/Oiuav1mipL+uNo23t6eYW3PVjzNDAp89XItXLhev3rigd0HKhmtfCljIxqvjk3fBbidCZKuYN86nzoyqTSolyNvnef6X9szQbi75On4WhmP0MXrS6esF/BsUZ2dalcORxON5ZziQxYYtG6tMNbZeFtY7+Tcu2eFw66OCSJHnxvrizb8cXaythurtHXr0I7c1X37ySUrQWvkOFaCRV5hnzonmb50s3U9f4ykdsh9dynI/6pQ9yy235T/Mi0eUA2vQGiPV8tqJ1TOl2cqhTRzuRqIlem/GQyrwQjpDEXx6vv5PbgulOR+uocl0bk6cqTJS3l0F4qqQNVzHGLSm0THuTIISRJeHgit//nPXLdRJ6jN9zCro+/poQUbI25Wnc2KjwwI47nt3jVX+zBW6sky7NQPFHc55mZzAwIcNLEUqkFWdnI0UNO9+CFhk6ApK0fkP3JD8Hl//4GFamEnJ2+s91L9wSTQ/NgnQ5x1AJ4GCiWHlwr1h0Gud3hys1tiKBxwkzAG7Pceg2A00jQG8mzAS5+aYia4gjnjwHrh73dhyh9M9CWYV9Pwyl0boLillZ16GY8z3HgcvT46zBrAc6ubkCi7YxKCPdHwjAV27ga+LJL6pUGzr2SgPadT53//gOtH93gfJ/4WN2FRdJbc+eVIseKa7dEk/l0D/sdscl6UB6vG+sLqbpWZM5J2JrxK29o3bD5GL1k4Y7bVk04u+8jPrk9+fbpDH25t10HenaP3AgNyV8OFplqUDSG2AxvzlehVwjF2WMJxYwqQ01suZdsBHjsvRGKv2e0tL4PbZyOPoLXN6+CLyfFKZ7JGGHcm99/K+UUTim69ndz573t/1r6dwQ6mZU3MN9K1RPTTg8kjIq6lzvtPvY6XzeL53g357So70N1RpzrNleyeiigsavJBI/J+/OsP6/ayDnsle1CnfU5eAb92RTCXmTCE3QBRxbFzVxCCK+R/MqNT1Vaya4pyn54nNqLLuT6Pncjqfrl1puOB6FSB/kGrwk/u2hNW3Pv5x8k7fgrsPXFLvns+g/9BWYDPzm5iGEYQJKqzuaI+NI5U17h3Aj2+shoNkpftwOiybyDYCq0/MyU84KBys9X/33uUT74M7ldVg1kHP9WfODGGryshtzGpkHZslPqfIccHUQU6P40RjrhzMtSVjdIX+kbCAKCdQr2sE6s2GBVaqa+KY7aEY4HncOAeVo7zcsJ5YfI7vE0ns+62bBe+9pI8lf0Ubly5Qvz+fQf/b20OKMOvvA2mu1gAsNQ4BI+BDQV8A8Po3R3+3RjVnSDHvnmkLujR4WIRWj2V8wgxfC6DnjjrWSyuFkrcGhKTLh2epy5FVVj/YI8N0YS2QDUXVBqS4fDUT0Xp5AzLju9egd1UjW/jUgJgnAqcSMp9Hg97WdDR2BAm/98owHrvfJCov/VvasKRJ/cF8Bv0f7Ar7mFfZgSzQmgzT+SZSZ1ywsxeMGZecKFLnhymB3FZjMpTq7GmzKtKYFULQ2eF04s/v3SKidMqpSPRC1866pOcHu0BUP3AJO6WQvH9rBEAXuK6kySmlYUQ6X3bFcO91tNYBvP5spJPLnmS6wpChK1jhxYPObZGADHz/2x/bGUYKrwXQ/8dbQ1WmezDUs7lQE6s5DOCoqKyTyhiJaRECmoHNgmjYVFhuqh4VKNHiYD6MAXxYCOShd25MfG+6NqAua9Dzwx26QKsDyFsCgURkqMb09zg/J9LVHcOW82q54zUFwaEv6JQ7c56pnaQniVuL3hrO2uftcS0WOv6x25JPX0ugb64FTvQCS7nevMmGsiqLJcK5YOK+4u9ZenLerI24xINU4/nv+VwhxDlC8NDPrq/S+Q0zIeFtm2Uh6e3DHOjKvlVK0eHWfYwkvMObyXFHOmoMg5wBz4aSzo01DUdZU8Ye4L85assVxBj0ehJYQ81sXBYu2f7lQOEH9+8Rg9eCpP9DlvRemBHV7Pjr7fjEpbPLsuRzcn53qzgUlu4RU9Ncm/VBX3nnxpmlJZQV6F/uHlycDWo4b1bHMO2SGGdTWrUnX3SVf2MqAhuo7Mmx7kmjBUX5stprY8hV1v/PP+oJYFYIIj+bVZn9n9hTfWiyoOf6TgykMR1tqvzqd3QisjYJnEGgk75NnEFHbi1/hp/RRFpJKb0xAktbSzPmv/vSHqQqLSL7B7eE7bBqwzsYusdEHpq4790VVmMmhGnYnTRR+0TDMkh//ue3NOyfKWlfVqBnT84L53CTUnKz7jSHKBbx3w0zkn+339nNg6PvzMYK2v/u7A9lvTNsWGw6QYsAACAASURBVOlZFY8LWHXIiRUI+CcSF/HcZ7uxqlRDdkV1Fu9sHw6X/SKPmOs7vCrvl6MN5vv53LDAFw7X4tUSqMW/sytc8Tp03eJYore5HU+o+OFSFqKEb6d0t3t+VAzZXJRzrU5IFySgupUK/vEXNteeLLLbSjqtrEDPT/706b4Fvqh/Q8B7MbkqjQN2G3iK6ApWOjuTxAadGNdJkzJoNz9mN2ctTwYDeivZ3fb4s1Z5BDKU8p/48kksKBX0H+nsR8sssiwfPlmFrx4rnmX5kRsBDk6xlM8n2ePzLw72iaS7XdUsQseoS7mu0Bd6hvzP/dsZ2Jeq7EDPHfKT07Q+yMhdKgHP6u8uX15LdKd8n/XO2MlgqbT8vVZjbO0bLluhgBEGPQex7M583KDdk9WZQFY1UuQ/9bVjqCsZ9Ev70eLPqE02roT7KoP+aPF8+p9bB+zQO3CNBX0h/d0arDmrTUzKa8eA02g+MlpOknhIwpNejf+/fn6d4A03pvUoS9DzGz5xMnuXkkIPgVvsdCLfe+SxcVyfzBK0pUNY129ibo7RjSyrwapI+m+H7RiWH/GHHzuOgwub1e+V4qdn9eYtrSNo8CmqCjCto5fHQLTS9vywwMMnavHsxeKpxb+zw5QAMQ/pAtWCegydwNW+Ys9jr7ETJi/Y3eUjtpsJCTosKPE30+23L1vQP7af6gd9eVdd9SgDMwJ8PLLquCLtKmA5PPy3raXD19vgiF0VooitLRLl8H24DQ5esRP1X4/7L3U0qd8pBfR8b86R7UjK0R3GzSDnqAZuFNPdnY8NVMd4tZ91E041NAtO69JNK+CVKz66R0rLkf3dXaMsSzeyGpf8+v4x70w+QNvnzLdy2DYiIeAC3k46okEi+tL7t1btnU5hUbag55d8cH9q45BM3NQ3ggQHnDgZOfLVmwQRq4JYiW2NVf7ebljM33EdHT6HXZn2cNUg7cGJJZjbstgJD3Ry0Ee/VG8qFfR5B6tMqcUW9IUAP8b3HpvAMaGdoyPFDdbIb28mT76UAz2xgUfevyXxzWsG9Pyi3zqY3hIIf1sQwOOdvXXCN4ezjc+dw96R1HZUIf5O++kNi5IlvJX03MFuZFZ/Nu3YycMqFW+raT0nZ0f8pv5AzWuWJYO+McaoLOh7Hw/wMc+MOxmsd4dPYYqC3i5UxXj8BuGcXON54uhQavhzv7a98eJ0Ab+sJb1eFonE117P7qTA22j99SxxmEKgJbGhB9sOsVFaOxGsYOe/2fhldyXXqrTg5kFg0LsBMe3lMT57nji6jN2QaO5X85tPzy5LvVuiBZ39ECV6WL0j/HeM9yX2ZSHvDPctF3LllZsByBQGd9M6I+GtxMmkSf3Vr2ytOXrNgJ5f9NuHqXpwBNszkKuhjEfHqC+uOqOBbSJWNnAVFXky3hmW3hyJ5Yq5FuxmQdBC3fL1dTum27nd7gHRPIT5Dfrf3mEo3bF0Qdf3PmZCcBAt9mU+sLOA4u85s62+Gnp7oLAu/SiUcw1epcdDCHbdJz/1S5unr2592Ut62yVfeOxCfaKj46YMyZVKgP+rEQIfALydQUBfGsrQ993I6ni+d71CMGWZc2ut8HLcl3rLeV15dHQFuDgsmkeuAdAz9yZSR5yJb9W8YqU7X8rceaaLc/FWpimzRLcbOcQDavw3qzNWn3R/DwL1qQ/dWKN3aJyOY86Anl/2cz+lFqjgVj/p3ez7+E1S6AhdjGJf74j6VGTUOpFVvi5SXxyPA6tHfD5z97VL1BZrNepSpP4Y1efSiGhOe/Nf0jPox/je87hGc3zvDqWCvV28vyyLcaYWs3BhGyzplPJ2AR2X7qOwN5NPKXYwXLugf/BB8sU2/BlIfUwSEtrLoGmvYn/XgPokd5NVT6zU1+BlY8mICFfn56JR9nD981Ylcolql0dEczDPQX/fDkendwREXLoz78dSjtnmYRcpJ52wusKThgGuBUoel0wE+FiyCV8xRvqH7M1sQiT/x/u2imtLp2dgPnJsZKVS1V/MStrNy6AkgmKWBhcPVWL/6V71yXy+d9bN7QqgJ4VBuQ1GccaVPXLcn249e86wyohmdQ2APvLeOH7zkMAWJt6zF6wuESaKpAmo5kpytva8k1XlaCqj6pJVJflfE4NwiUVRMCtnZRFnRSbzD7+8s37a9pidE+rNY6fofUGgPqMkWvSyahiGen+l8PNIQDgnlRjIKlxMBXR6KIXXe9J0Nu571+qOkygeeX/cdEHHgLW2Qf+IaFbJyak3YzrZcelpf7WdmEb6ad662YKHnzcIRrfj0WxKp1YOb2dv+8Ruba+TPiax59RHbwwpxVz248JQGJnmpHDefVwn0VNodzLQXSmeF6wxsR2dk+PODL/NUXdcwPN7Cnr82OWnv3H/nj2RvTxVvb6sQf+ji9SYGVF/G0j6YKjKiBDkGugEhVDS689G6vPv4UqgwXE5FYhnu4foyZ5BOp8jya2v3kRgXbJZRDG2kkkBfSOiWVSXBvoqT2FrXRZNPu/wHRuquJ4c32reoCECi4MOHZmNuLxO5QdtDYYAPTbo4cBlHxdTiaKLPb1nQ7hNZk5xKr4vqyvj+N7H8GZciR777BqrLuBzkkysAS0wrFTw1V+7qU4n8kzXUbag/9EZulWS+t9SYY2WZKYOo3LUGq3iKBFKOvd3ngy2bmM4CWgkEPvO9tOD3YN0Rkst04OaTWn0Ij0pnApr7J/nQ0d0M35zslqVtHnyntZh7GiM0tKna8yKaoeDdp87WoMnzlUXDfp/tz220cJERLE82326qmLO55g6U1C6O5NdEZ0YSfZ9+r4tiwaLeukiTypL0P/kAv17qdQnlQqNVQY3WSkfgdtIfCv5zb82CcMaubF/1ZW0eOzgJfXVkQBZLdEtMU2je7T2pZ0AlsDGoK8pEfS/vrQfzbPIsvzOmSS+eLhORz4tzUL3p5WkjgrFX310O9BsonkT+d41NmOqSF7Ax9SZfMYqX+faAPocASlk8MUPba97pkgsF31a2YF+30XakJHqkCSIUFqPqi72Mw8ad1II8Dy/GxUnHGD393CipCXOvNyN/35hkHRo243GugzL0G3Jyr6O5DbX1JYm6e9sHcb2WZL0rN49cLgG3zlTvKRn0DOXXoMujzpj1ZHJqjNx6R6nOLioFcCBY6+//vf337tl2isjlB3oD/TQ8rRUR6WiJEt3x1gN9ffo/1w93hZCjXT+nMkwygq0K0Gg0H+oB395rIdOxCkJoXT3cybDYBbNdSWCnnX67Y1pLK2OsSxdkRjX7eOGXRyAVkrH9WanHTbUn7uUxIFeH+eGitfpf8OAPh/g48aqvn0eZqSdGK53pmjpbt6JQL1S0mc/sqPmSNHiu4QTyw70/Ow/vRD8nPK8z0tFLaEkN0asIhCveznS25Hk1gtiVKC4azOaMIZNGSgM7uvCfz5xmc7mqjMhnS1MVAnTyxn0DSWC3o5DVKsntv5benBUV8ahEtsVx6oj1psTpVA6teYjlc6AkL07rNNru7aEqsUfYfXG1PR35prFd646E6Hb8b4Y0W3saT0r4oC32XBRo84k53M9eFkl6Gu/ui3xpBAzUxWhLEHPHfJiL62kLP2TVHR7CNaYmmK8N6M6fP7fRw1axy5wvD9ZiZ4nTuBPrwzRoC0NImUIdB9SG7wZ6TOnZ9KgHyOEypRazOmCXKsmNjdzKpoVK92dORHiO4/+n+OZMhoVkfrmR26qeaQEwV3yqWULen6TB4n8Nd3qTwj4T2zUjqouedScmIE75tw8BrA9ZyCD/d845IXBLbdIFOfXMvAzPgYVmpsbStPpC47GHAB9PnUm3/Y6blVi7j/PyPaC+nsB9Yy7xPO8x35lq/9N3tC6ZCSXcEFZg96+xwsX6FYF9b8VsGbUJx9K9jA4xT77UAXK69rM8enn8/oQjvT6f/fUCfwoR80xE6CqSmIk5Tc3zHPQf5iDU9Um2JWD2txNGlx8hTQQDvgpnajT4dSxH1PzMubitKtB6FtQj5z9evXj998/s4Dne84J0PODHrpIjYNK/a1U9MGxQSn6sQz83+QdeDkyHhCalJILSPirSal1ksQtiuh6vRt43NvDfv5w4PoeOuj94eUMRqJCrmZ0efyDa0DSM+i5NJ+L97zS3fQLk8sG06wGKm37MmXYRmptnR5XV4rNI/0TQVwGgn/98I21T5YgrKd06pwBvX3L5y/S+0iqz0hCi6UjkBCPvmmp9/bxeuLhE9QpMrgnUPRrKrITQqlvjcZTfeLh/++Q+LrkyeEYWJqnH6C5val09SbvOu0afMYhrlcq5pw7lAT9ExvdjtHqGrTcjKUk6H/teXwZ0xD43Yw+HeXaOn56266VuB/aBjQ5hqxBZaiTOwKAqRvdA0BDDdOFw2hzDresCP2dSZecyltVlXzolzfhAmbIaM2HiVkD/aPH5b+/Z7X/15OZsi+eG1kZ+NVfVIp2h4Er79HbJwC9e5+vvkq3KaK/kMRG8qgBnFXiygP7xXv7UmglQnXoTQiPVIDm1kmAvncYOHNl7FvGdWYrUfVEdjZE1pPBgshSFdwiqm6SuAvwUIzqa6P8VDOhQirAaLv2Wd64FLA7MprLRx/c2YiB69ZzEg6rQutbFRaY4lC2zcj/XkCdEeHi+mpGqe989Kars0u4OwKzBvrHjst9Qnj3v22V+PpkgM8041VvUn9EJN4rhfjkbYvFP5fUDpF48BB+XSr1PyShzrozA6Jf/9sX/e8ii5aUxNoEyVpG/lDgT0rSv3weOHVFoLMxXi+g8NPGQWNBacEaZTK5IHdWjxwPSwGgR1FZOzmMOLcrgivdo0liH9lJ5t66SOGu1aN6ciHAOyveEEDPQmWemM6811LGftZA//hJ+RmlcC8lvFvuWS5mJAhRTEd8+SBtIVKPKMIKvacqiUc/uI1VJRLL/jtqGqpQlxXYliGsXtykbimlGgIHif71kMDadsJ1HcU8Te7GxG79Sr7a1q90fd22jqUtyRH55a2XxKo4hnWp39FRmeyqErl2nRUgmhi23IhVc+zqQUBHPfC29WE0Ix/gHbDznrEXk1WJf1y2CRf3CDFtrMkiezY6bdZA/8TJ4IOS8ADBe1X54vZ7lrNBMzvHlw7REij1pFLYoAhZj7yOX9omet2nmUwBV66u9uRhgbddR+AthYo6XHemU7S1XEF/yxKF6xaZN8unzijF5SlfIKH2nr6hbv/9M+yOLKaPZw30jx2hRckqdU4SuP7XC0kl3rJntcij/RbzGlM/50sHaDk8xS7LFT68D3RsxlcaX4AYqEF1VTvq/p/nsOnQFfWLxUp6VpcePSTQVAXctoZysv3Hfdo5BHrmpr1xhcKK5vCNIjXM4w0WICHEaU/h2WDwyt4P33519ogtBgmzBnp+uKfOqCeUoj16aRXiFV+Kd9y1Rky6Ui2XCykmdL33HNXVpNEka1FLAZKo1q6EhX0Z3NY1qP5zbUK8srJZ6K0deWMCRfD2XYD/P/epZFGgJ+C1buD5UwL/5kYKt7Ap9phDoGd9/saOaDckTbcRoD4S4lwC6tFqv/r4dJfkK7YbxztvVkH/gzPyo4roMzYBRBF6yPM+cvcK8Y1SX+4f9tHHFNGfKaKHU8K77/duClcN3hnw3fdhra+wUhKqvQQ8IrSDsMwTWKAInP8f9UPPMG3sy2DzmpZcA/uli8CnX1QoBvS8pfyjBwW2dhI2m4KoRb/PHAE916y5e43SuwTyQaAuIfz92SB1uPlo/Sv33qu9vmV5zCro91+g+v5AnVaE1iiySoLF69elEn/89jXitWJ6jSX8516i70hFd2sSF+HCyhbv850NuMStQaBVEVrMhnYTvvOFYdq5uE7k1E8sFvScavfIKwLtDcDu1YSE3Q6lmBcJ0TPqEy9TnZ532Ny9XKmlTcgIj4YzWXzJE1WXTvWh225MV+zrzsZ5EwJgph/q6XP0XyWpP7b0ApswovMbSPyLVOJzqhZPvGuJGLbPQkTeS11oFwrLpY+ahIeWAxfVp0Yy2BgxKYVQbTVi38YFeCFK2pnCyxy4CPzNBJKeffLfPyJ0fZfd60hX8Cr5KHPQ876yd64CljZSf2td4jvJKhy8eRG6ZnqfqJL7cZwLZh30e89Re5rU6yzt82U7mUmQlkRPC4i9PuFKbZU3XO2hNeFhuRBIegJ09ArdOZShpTaYY9uq9kX3xgX0RGO11z+Vjtt/EfjrvQrvvD4/mHnXkx8dFjqpes8GQpsTsCnpvmUMeo68fnCrwKZ2TwfthEC/Ao6TxIVEEr0J4LXrFopzJb3vLJw866Dnd372vPwtSfg0S3up81tHOfQ5tOIYX75ASmAUtre/cw748ibvx6uaMOkqWbwj+V89B2xfJXX43R48ybgI6df3CV05YPdaQmt9bli+pHEtQ9CzysWVyT60TWBFU54NtNhBLxAIYET4GCHCWSJ8oz+NvjcsQ1bMok8+X9+XBeiJyH+um56UknZHtIBQv9G5sVH2VJxXH6uCMJZ3bxLHTXWEphpxdMtC8cMqLyp/UzQemSbw+EmFQ/2ENe3hZRwYOtcLPHtCoLMZ2LGcwm19pnKUGeh507XblwG3Lxdo5sq3JRxCIFASvOv6fvJxuaUNJ5YLMVJCEzNyalmA/lA/bcymcM+wUp+QCrV51RzOmnJLgMQSwkcpxSZyWeB3z8PgdW3eEwvrcKGUHs1klS7d/WI3cEnyTtqEp48KHO0BVrcBt0/GaM33AGUE+uWNwC1LBbZ3elOm4woB9qadEEDXgMLTs2kHzAroDx+m6lQTWnwPO4XA7Z6HBiIkJaFjMFDvsPmxY2jAmi/v5saOTQp3wW8nT5gsYs4NPSK0tFE8t6ldTLhtI7eXlkpzxjWnhcnfCjibJpzSBZEEkj7llrArZTbFzzVMSf5aUwTMB83zt79ZPo0tfcLnmYpsllZgdwGkwFQVNtY8szE1DcFwBizD1P2OyWR3rwY2twskE6H+Pl0HDwNvXgdCSgAPpRM4cugMhq6mP/+qgv7YIHVQgK2ksFZ5uIF0qYHcIyB0DgXqbqmoKvTfO8kirvSOwJ+bJphTDMqoRvGVw3JYdi3xHmyp0RIo/8HJEWafVj7BZSvy38wn11FIB4RRQwUYhvb3iKfiEsXsj8619rwcokqMr6z5NoVfoeDruVx5e9KCGqC9DqguZR/QKcwIIZBWhH2+h6OBj5c3NYmeKTRX1KUzDnrW109cwfJA4S0esJQEFjuM3bwPGQCtA1li7nuj5czH9fWcdMACtXDGO4d3r7tlqfflxioMFeoplvAuY9FKXw0w1w/qgDQCn8Mpj74bkzg9euccqrGDYMMPy/uI3CfuZCxqxMc5iQuvLmnyiqdMTPWGzvVcqJUELgjg3GAaX/naZzAyU1lUMwb6wz3UlEhiSZDG+30f7RwYMqUQi+oqRagalHRbShKTwJwKCGPr2ISGrjVa8//OK4Y06YSeJ1LrWsSTSxtwutDDBBRmA7mS3IrTnHotBnUR78RpMOdaM2PGXGtL9JnrotUkj9SPAB4T6+6f8QlW7KTwBbCsyUNixhBR1LCHVAaBwPPwjA886zfh3BIxGqMprpXxz5r2VzxNVJvtxU7h4Xoo3DCRVJ/oJVKKOgcD3JyV1KHVUZvplKf+TY4O75b5c9Sc2qQ4e12reKohWVjCS2fdzwGzpevGAJkDZOeP8a7NqQ5g2rOS264oOYCN3ztO8411ZM68GEf94ctYZ+dEkKaqqRusE41nSb8LcFHpl+DhwJom7C2GV1VM+9MG+pdfpqqG1djiS9ylCMtAqJlOCygj0TGQpU2pLK0KiKpC/jjXwMlTHsTNgzWuTwhPLqoVe9cuwPjGq7b0HMZgXHJbgPK/ZksZ9/yca2PiP1Jh8uzXZFcRa4i6gzdGkjsTy6YXxgd7zMqTZ9LYa9gH397g5W77WQx6rtI5AhgkhdcpwA9WtuGIEGJKBUKnDPqXiapaBrADhFsArCdCYjrBnqdfvaEMOkYULc5ILMgoNEqJmiyhTkpK5PP4+J64srZJPNFSi0uFxonLwFovhes1sSDOKWUXU0X0OY40zZH8LtgcPd9ZLMKPMWlsVat4Cb0c6W8mp6vS5MvPsmpW/J58btIDltR7SDChpowPnVNLUL6HV7NpfPfSCRzZuXNy4J8S6I8P0uIqiTd7HnbzziCz2WfH+9XbR7JYrlUgx7BtrBKvrm0Wz3je6H5g8efkWi16d7s8npRIYsb0aFeijznH9bW7EySfihJr17oSx6w241ybz8ZwAR6fCO4tF9XxpgrT6ZSceRR4Apeg8IpswtcnE+yaFOgvENWLIbwRwFtA4OzPWe81Bv1wgOW65J8mViLVWe/9YFEtTow3DMJTerbmqB55AJ6jbuSR6jnSNOaujHtgXN3dtuv643NUnBhi9aR2JlLOo+axOcbc27lhaxXQWjfrQzepWaIlv0I3bzXc04R9W4QoutBryaDvukJrvSq8WxE2TOppZ+iik/10z1CWVjCgqn1xdnmjeKomUdhY5cdI8PQwYz5GLcgDoDHS13mXgkaorSIwRp8Zuw+rXWlyiOixCZRT3cDty0LqlfPQdmJqtSYBdNTxdjpzE/T21T329nh42qvBUwuEOFUMvIoGPfvbe7LYISTuBsBsxqKvLeZBpnpO1xBtuZLGTU3V2N9ZL16aqD0uUDTecBcS9hEgnXo18XvFg0VxGyGO/7jx6uroFrN2JRijVsUeNN+qEk1oe64HcBCqbsyWIxP1Wnn+zsAnwolA4ZGOerw8kZenKOASUc2VFP4NCDtJYKqUqlnvOV1vUUysk+V4TfJZiLEKAGPA7DQQd2u6KkoEZFd3KeBB4nP1fHM9OE6P6qJPeVYVd7Kwt6aldm5L+DEgEpyqiGxK4YuLa/HieMzOCUHfT9ROabyfCNfPpTKA+WdWaLBO+NKOzjymnTx++DjG4uH9fN6TqJkCPvScujROWQ57r3zXu5M0Xzk+Vo2qEwAngvg5+13OuhyavgfgwJbA40jjh00FKA3jjj8R1Q5k8NsgrJ2+p5qtlvJsdjbZR8mj+2i1osBqED/dNVrdwk0uoPOtMoXqSrqTqpDRzN/zYDPgq+e4Hj/RsFG4c+qhTDW+sFCIgfj5BUE/MEALkcT7PQ+by01/n+il479rl2SpF5Vwvuv5iTO/4iDM5xbN0VbiPB7TeD63ZI5kN/pL9Cx5VKuaBNBYIie+hG4ot1PJFzicGcL/29KSW8MoL+i7u6mhrhW/4Qts4Eq/5fY2pT1POPozCfr480R4i3uAYpHYeEDK1bsLVgvOw+i0K0wh9YbbZVf8NQT4SOP0gL01SXxdiNFiYnkBPThId/k1uLc0cJXr2bMza11jcow2lId27Ep7fX4BXT8q9Gq6e0xJbPt9LNDGyeq1cywINR2IIoUAAv9clxQ/tu2NAX2KaAMCfBQC9dNx09lro5DTcfaeKJ9XJZ86kqPuFABxdE6eeELcM1SVAGp9b+wGzrPXFVf3zoRhSuDTtUIc4xvngJ6IVmcUPkDAsqv7VNN8t3zZEdN8i6k2V8itGKk4eaK6+p55qBL2mjF6v0F/Q7WnK7Vdwwd5wGtJD59mV2bUFVxLRkq8GwJvm8uuSb2fXQEvSrkOeqE1qdDKECe/2fPyqUWs0nByyDV/MDvFx7d84NtRd4yM0MqqKvwHwlwOPpWfSlM02Aro8GM8NLZBdyVwTuKPdhJwLqZO+6uA3i6Sp9Mj+AdX0n9UKdw4d6V8mOk03474NHZjAXlXAnMBx544wVtcVb9V+fe+5+GzGvREtBTA7wJw9oYr/xdwn1Cp+Qn6MaMQm9k5MQLn5KTwpq9Cw9yCwkRPm7GgvwfAz+r9gufYwWC/1o58K5q7AjDVYt7SDKZhsAWzJwG8F8CeaWhvXjaRM60mnGMTnjBtfZRXnePs+4qUH7ePGfQtAH4FwKZpG41KQzPWA/Fob3ij3InmzVcy2TT1KoN+OYD7mIs0TW1Wmqn0QFn3AIN+PYDfv8r0lLLulMrDze8eYNCvA/B7OnuuclR64BroAQY9Uw5+E0DbNfC+lVes9AAY9A0APgDgpkp/VHrgWugBBj1TzX9Bl/OoHJUeuAZ6wAan7gLw8xW9/hoY8corhlQkIuI9n/8EAPvsK0elB+ZzD3S7hLNfBXBzxXU5n8e78m4A/s4FPUv5jwOY7GaQlR6t9EC598DLAL7ggp4/W+LZ1cyjLveOqjzf/OiBNIAvCiGej6cL8tY4vwhg4/x4z8pbVHpA9wBz87jU49/npAvaziEiDlIxt35RpcMqPTBPeuAigE8JEda/yZtIRkScQfVBYK5XRJgnQ1Z5jan0AO8r9k9CiKhkeyHQJwG8E8CbATibwk/l3pVrKz1w1XugH8A/CCFed+9cMGXYJJcw6DmjqgL8qz5elRtOsQd4q6V/FKbWTVGg19o/70sPvB3AHZXA1RSHoHL51ewBVmm+IoQ4nO+mExaHICKuR89lupmmUDFur+bQVe5Vag+wl4ZVmr8WQpwtdPGEoHe8Ohy8+g0Aq+ZiAnmpvVc5f871APvhOfj0L0KIrvGevmjQG3WHOTpMTmNdv3rOdUvlgedrDzDgHwbwnBBiZKKXLAn0BvhcPYF5OrwbOHt5Sm5jooeq/F7pgSJ7gNUZ3oCBAf+Difaasm1OGrBEtA3AWwGsqVCSixyiymnT2QMM+L0AnsjnoZk29SbeEBG1A7oU4P9RAf50jmelrQl64AKAH/H/xagz8bYmLekdA5fb4JTDdwHYaViaU263MuyVHoj1ABf3GQKwH8CDrNYUq85MO+jdBomIN2S71Uj/OVsXswK3suuBHgDPANgnhGAf/JSOaZfIvCOhYWnuMOCvGLtTGqJr9mKW7MMAngdwAMDByUr2GZX0ManPdXRY2r8b4c4mHRW9/5oFcCkvzntD83b3PzXSfVgIEW3UXkpDhc6ddkmf70ZEyZkHzQAAAcRJREFUxIBnbw9XU9taSUmcjqGbd21kjb5+3BioqZl6w6sCesfoZcnPiSrbTT4uUxx4RbiqzzFTnVlpt6QesD52Bjfv/MfR1C4hxGBJrUzi5FkBm6m1wxFd5vRcB2C1mQyV0oKTGMQ5dgkHk1iac2LHT8xnJYS4ajXOZwX0Md2fn4FBz9WTWQ3ajTm979Ucg+DVe1z2wHDK3hkAzG+/OF2GaamvMOugz2P8NhrQc9U1NoBZBeI9bSvJ6qWO7uycz2oLS21mO/K/+wB8HwBzYtgoZUN1Vo+yAn0BI3gJAHZ/MvBXmP/ZDVo5yqsHWDfnlDyW5KyX//Bq6OeT6YKyB71jBLOk5wnQaaK+bA9w1YZKVtdkRn56rhkA8Br70I0kPyeEYIpAWR9zBvTxXiQilvbM+GT1h12hTHfmSg48OXgi8P9z9v3KCDWsrnCQiOm7rK6wJGdvC285z6pKUA4qSyn9Ne9AQURcoY3pEJzswt4gnhi8IrChPO/et5TBLvJcGxw6YkDOQH+FA0ZCCPa8zPlj3oPA5PlymiMnwPDBK8EGQ5FgliivFPO+H/IglSU4S2/OMmLXIafXWSP0ihCCE6vn5fH/AynvqKbJosiLAAAAAElFTkSuQmCC",he=({createState:ye,refreshLoading:at,onRefresh:rt=()=>{},onCreate:nt=()=>{}})=>ge.createElement("div",{className:G.sendToClass},ye?ge.createElement(ge.Fragment,null,ge.createElement("img",{src:V,alt:"\u7A7A"}),ge.createElement("div",null,"\u60A8\u8FD8\u6CA1\u6709\u521B\u5EFA\u6559\u5B66\u8BFE\u5802\uFF0C\u65E0\u6CD5\u5C06\u8BD5\u5377\u53D1\u9001\u81F3\u6559\u5B66\u8BFE\u5802\u3002"),ge.createElement(E.ZP,{onClick:nt,type:"primary",ghost:!0},"\u7ACB\u5373\u521B\u5EFA")):ge.createElement(ge.Fragment,null,ge.createElement("img",{src:j,alt:"\u7A7A"}),ge.createElement("div",null,"\u5DF2\u521B\u5EFA\u6559\u5B66\u8BFE\u5802\uFF1F\u8BF7\u5237\u65B0\u5217\u8868"),ge.createElement(E.ZP,{loading:at,onClick:rt,type:"primary",ghost:!0},"\u7ACB\u5373\u5237\u65B0"))),Ne=x(49692),Be=x(6021),je=x(89392),q=x(82438),ce=x(59301),D=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Ce=(ye,at)=>{var rt={};for(var nt in ye)ot.call(ye,nt)&&at.indexOf(nt)<0&&(rt[nt]=ye[nt]);if(ye!=null&&D)for(var nt of D(ye))at.indexOf(nt)<0&&ke.call(ye,nt)&&(rt[nt]=ye[nt]);return rt},Qe=(ye,at,rt)=>new Promise((nt,ut)=>{var Pt=cr=>{try{Ut(rt.next(cr))}catch(or){ut(or)}},Ht=cr=>{try{Ut(rt.throw(cr))}catch(or){ut(or)}},Ut=cr=>cr.done?nt(cr.value):Promise.resolve(cr.value).then(Pt,Ht);Ut((rt=rt.apply(ye,at)).next())});const ve=Q.default.Search,Pe=ye=>{var at=ye,{paperlibrary:rt,globalSetting:nt,loading:ut,dispatch:Pt}=at,Ht=Ce(at,["paperlibrary","globalSetting","loading","dispatch"]),Ut,cr,or;const[Cr,hr]=(0,ge.useState)(""),[L,it]=(0,ge.useState)([]),[k,p]=(0,ge.useState)([]),[d,w]=(0,ge.useState)(!1),[Y,Ee]=(0,ge.useState)(!0),[H,ne]=(0,ge.useState)(!0),[Ge,xe]=(0,ge.useState)(!0),[we,qe]=(0,ge.useState)(!1),[Et,pe]=(0,ge.useState)(!1),dt=(or=(cr=(Ut=rt.actionTabs)==null?void 0:Ut.params)==null?void 0:cr.data)==null?void 0:or.is_random,[At,Me]=(0,ge.useState)(!1),[De,gt]=(0,ge.useState)({});(0,ge.useEffect)(()=>{Tt()},[]);const jt=()=>{p([]),hr(""),Tt(!0),Pt({type:"paperlibrary/setActionTabs",payload:{}})},Tt=sr=>Qe(void 0,null,function*(){ne(!0);const lr=yield Pt({type:"paperlibrary/getCourseList",payload:{search:sr?"":Cr}});lr&&(it((lr==null?void 0:lr.courses)||[]),Ee(!0),qe(!1)),ne(!1),xe(!1)}),ir=sr=>{const lr=parseInt(sr);return(0,je.isNaN)(lr)?"":lr},Fr=()=>Qe(void 0,null,function*(){var sr,lr,$r,ln,En,cn,In;if(!k.length){Oe.ZP.info("\u60A8\u9700\u8981\u9009\u62E9\u8BFE\u5802\uFF0C\u624D\u80FD\u53D1\u9001"),w(!0);return}const bi=yield Pt({type:"paperlibrary/postExistCourse",payload:{course_id:dt?k==null?void 0:k[0]:k,examination_bank_ids:((lr=(sr=rt.actionTabs)==null?void 0:sr.params)==null?void 0:lr.examination_bank_ids)||((ln=($r=rt.actionTabs)==null?void 0:$r.params)==null?void 0:ln.id)}}),Ir=()=>Qe(void 0,null,function*(){var qn,wi,$n,Ni,gi,Qi;pe(!0);let ba=yield(0,Ne.Tr)({id:(wi=(qn=rt.actionTabs)==null?void 0:qn.params)==null?void 0:wi.id,course_id:dt?k==null?void 0:k[0]:k,type:(Ni=($n=rt.actionTabs)==null?void 0:$n.params)!=null&&Ni.isBatch?"batch_examination_bank":"examination_bank",examination_bank_ids:(Qi=(gi=rt.actionTabs)==null?void 0:gi.params)==null?void 0:Qi.examination_bank_ids});pe(!1),(ba==null?void 0:ba.student_count)===0?yield Pr([]):gt(ba),yield new Promise($i=>setTimeout(()=>$i(),1e3))});if(bi.status==0&&((En=bi.data)==null?void 0:En.count)>0){ie.default.confirm({icon:null,title:"\u63D0\u793A",centered:!0,width:596,content:ce.createElement("div",{style:{userSelect:"none"}},"\u5F53\u524D\u6559\u5B66\u8BFE\u5802\u4E2D\u5DF2\u5B58\u5728\u8BD5\u5377",(In=(cn=bi.data)==null?void 0:cn.list)==null?void 0:In.map((qn,wi)=>{var $n;return ce.createElement(ce.Fragment,null,ce.createElement("span",{style:{color:"#FA6400"}},"\u300A",qn==null?void 0:qn.name,"\u300B"),wi!==(($n=bi.data)==null?void 0:$n.count)-1&&ce.createElement("span",null,"\u3001"))}),"\uFF0C\u8BF7\u786E\u5B9A\u662F\u5426\u9700\u8981\u91CD\u590D\u53D1\u9001\uFF1F"),onOk:()=>Qe(void 0,null,function*(){yield Ir()})}),yield new Promise(qn=>setTimeout(()=>qn(),1e3));return}yield Ir()}),Pr=sr=>Qe(void 0,null,function*(){var lr,$r,ln,En,cn,In;if(!dt){Me(!0);const wi=yield Pt({type:($r=(lr=rt.actionTabs)==null?void 0:lr.params)!=null&&$r.isBatch?"paperlibrary/postBatchSendToCourse":"paperlibrary/sendToClass",payload:{course_id:dt?k==null?void 0:k[0]:k,id:(En=(ln=rt.actionTabs)==null?void 0:ln.params)==null?void 0:En.id,examination_bank_ids:(In=(cn=rt.actionTabs)==null?void 0:cn.params)==null?void 0:In.examination_bank_ids,shixuns_info:sr.map($n=>({shixun_id:$n.id,is_copy:$n.is_copy,is_use:$n.is_use,course_id:$n.course_id}))}});Me(!1),wi&&wi.status===0&&(Pt({type:"paperlibrary/setActionTabs",payload:{}}),p([]),ie.default.confirm({title:"\u63D0\u793A",okText:"\u7ACB\u5373\u524D\u5F80",cancelText:"\u7A0D\u540E\u518D\u8BF4",width:480,centered:!0,closable:!0,onOk:()=>{window.location.href=`${wi.data[0].first_category_url}`},content:ce.createElement("p",null,"\u8BD5\u5377\u53D1\u9001\u6210\u529F\uFF01\u76EE\u524D\u5904\u4E8E\u672A\u53D1\u5E03\u72B6\u6001\uFF0C\u662F\u5426\u524D\u5F80\u6559\u5B66\u8BFE\u5802\u8FDB\u884C\u53D1\u5E03\uFF1F")}),Oe.ZP.success("\u53D1\u9001\u6210\u529F"));return}Me(!0),setTimeout(()=>{Me(!1)},500);const bi=L.find(wi=>wi.course_id===(k==null?void 0:k[0]));let Ir=1,qn=ie.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,maskClosable:!1,keyboard:!1,cancelButtonProps:{disabled:!1},title:"\u914D\u7F6E\u51FA\u5377\u6570\u91CF",content:ce.createElement("div",{className:se.modalColumn},ce.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},ce.createElement("img",{style:{marginRight:5},src:h.Z}),"\u968F\u673A\u7EC4\u5377\u7C7B\u578B\u7684\u8BD5\u5377\u6309\u7167\u51FA\u5377\u6570\u91CF\u5BF9\u6307\u5B9A\u8BFE\u5802\u751F\u6210\u4E0D\u91CD\u590D\u7684\u8BD5\u5377\u3002"),ce.createElement("div",{style:{paddingLeft:18}},"\u8BFE\u5802\u540D\u79F0: ",bi==null?void 0:bi.course_name),ce.createElement("div",{style:{paddingLeft:9},className:se.modalRow},ce.createElement("sup",{className:se.sup},"*"),ce.createElement("span",{style:{flexShrink:0}},"\u968F\u673A\u51FA\u5377\u6570\u91CF\uFF1A"),ce.createElement(W.Z,{parser:ir,style:{width:120},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u6570\u91CF",min:1,defaultValue:Ir,onChange:wi=>{Ir=wi;const $n=document.getElementById("model_error");Ir<1||Ir>50?$n.style.display="block":$n.style.display="none"}})),ce.createElement("div",{style:{display:"none",marginLeft:115},id:"model_error",className:"c-red"},"\u8BF7\u8F93\u51651-50\u4E4B\u95F4\u7684\u6574\u6570")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onCancel:jt,onOk:()=>Qe(void 0,null,function*(){var wi,$n;if(Ir<1||Ir>50){const gi=document.getElementById("model_error");return gi.style.display="block",Promise.reject()}qn.update({cancelButtonProps:{disabled:!0}});const Ni=yield Pt({type:"paperlibrary/sendToClass",payload:{course_id:k==null?void 0:k[0],id:($n=(wi=rt.actionTabs)==null?void 0:wi.params)==null?void 0:$n.id,num:Ir,shixuns_info:sr.map(gi=>({shixun_id:gi.id,is_copy:gi.is_copy,is_use:gi.is_use}))}});qn.update({cancelButtonProps:{disabled:!1}}),Ni&&Ni.status===0&&(ie.default.destroyAll(),ie.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,title:"\u63D0\u793A",content:ce.createElement("div",{className:se.modalColumn},ce.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},ce.createElement("img",{style:{marginRight:5},src:K}),"\u751F\u6210\u8BD5\u5377\u6210\u529F\uFF0C\u524D\u5F80\u8BFE\u5802\u53BB\u67E5\u770B\u5427\uFF01")),okText:"\u524D\u5F80\u8BFE\u5802",cancelText:"\u8FD4\u56DE\u8BD5\u5377\u5E93",onCancel:()=>{jt()},onOk:()=>{jt(),setTimeout(()=>{var gi,Qi;const ba=(Qi=(gi=Ni==null?void 0:Ni.first_category_url)==null?void 0:gi.split("/"))==null?void 0:Qi[2];(0,te.xg)(`/classrooms/${ba}/exercise`)},1e3)}}))})})}),Hr=()=>Qe(void 0,null,function*(){qe(!0),yield Tt()}),Rr=[{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"course_name",ellipsis:!0},{title:"\u5206\u73ED\u6570\u91CF",dataIndex:"course_group_count",width:90,ellipsis:!0},{title:"\u5B66\u5458\u4EBA\u6570",dataIndex:"course_member_count",width:90,ellipsis:!0}];return ce.createElement("div",null,ce.createElement(ie.default,{centered:!0,keyboard:!1,closable:!1,open:rt.actionTabs.key==="Paperlibrary-SendToClass",title:"\u53D1\u9001\u81F3\u8BFE\u5802",maskClosable:!1,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:ut["paperlibrary/sendToClass"]||Et||!!ut["paperlibrary/postExistCourse"],width:752,footer:!1,onOk:Fr,destroyOnClose:!0,onCancel:jt},ce.createElement("div",{className:se.wrap},ce.createElement("div",{className:"mb10"},ce.createElement(ve,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:Cr,className:se.search,onChange:sr=>{hr(sr.target.value),sr.target.value||Tt(!0)},onSearch:sr=>{hr(sr),Tt(),p([])}})),ce.createElement(B.Z,{loading:Ge},L.length?ce.createElement("div",{className:se.radioWrap},ce.createElement(f.default,{bordered:!1,scroll:(L==null?void 0:L.length)<=7?{}:{y:350},loading:H,rowKey:"course_id",pagination:!1,dataSource:L,columns:Rr,onRow:sr=>({onClick:lr=>{if(dt)p([sr==null?void 0:sr.course_id]);else{if(!dt&&!k.includes(sr.course_id)&&k.length>0)return;k!=null&&k.includes(sr==null?void 0:sr.course_id)?p(k==null?void 0:k.filter($r=>$r!==(sr==null?void 0:sr.course_id))):p([...k,sr==null?void 0:sr.course_id])}}}),rowSelection:{type:"radio",hideSelectAll:!0,selectedRowKeys:k,onChange:sr=>{p(sr),w(!1)}}})):!Cr&&!H&&ce.createElement(he,{createState:Y,refreshLoading:we,onRefresh:Hr,onCreate:()=>{Ee(!1),(0,te.xg)("/classrooms/new")}})),d&&ce.createElement("div",{className:se.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u8BFE\u5802"),ce.createElement("div",{className:se.bottom,style:{display:"flex",alignItems:"center"}},ce.createElement("div",{style:{flex:1}},ce.createElement("div",{className:se.title},ce.createElement("img",{src:h.Z,style:{objectFit:"contain"}}),"\u9009\u62E9\u7684\u8BD5\u5377\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802\u5E76\u4E3A\u73ED\u7EA7\u5B66\u5458\u751F\u6210\u8003\u8BD5\u8BD5\u5377")),ce.createElement("div",null,ce.createElement(E.ZP,{onClick:jt,className:se.no,style:{marginRight:20}},"\u53D6\u6D88"),ce.createElement(Be.Z,{onClick:Fr,className:se.yes},"\u786E\u8BA4"))))),ce.createElement(q.Z,{resdata:De,type:"exercise",okloading:At,oktext:(De==null?void 0:De.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:sr=>{Pr(sr)}}))};var fe=(0,de.connect)(({paperlibrary:ye,loading:at,globalSetting:rt})=>({paperlibrary:ye,globalSetting:rt,loading:at.effects}))(Pe)},10977:function(xn,Yt,x){"use strict";x.d(Yt,{c:function(){return de}});var ge=(Q=>(Q.FirstPage="firstPage",Q.PrevPage="prevPage",Q.NextPage="nextPage",Q))(ge||{}),de=(Q=>(Q[Q.Single=0]="Single",Q[Q.Multiple=1]="Multiple",Q[Q.Judge=2]="Judge",Q[Q.Fill=3]="Fill",Q[Q.Subjective=4]="Subjective",Q[Q.Shixun=5]="Shixun",Q[Q.Program=6]="Program",Q[Q.Combine=7]="Combine",Q))(de||{})},78297:function(xn,Yt,x){"use strict";x.d(Yt,{AD:function(){return ot},D9:function(){return fe},Hp:function(){return j},IM:function(){return at},Iy:function(){return le},KM:function(){return hr},MJ:function(){return he},Ne:function(){return ye},ON:function(){return Ht},Uj:function(){return or},VY:function(){return ut},YO:function(){return cr},YX:function(){return Ut},Zn:function(){return R},_g:function(){return te},_k:function(){return ve},c6:function(){return ce},cr:function(){return I},eV:function(){return D},fi:function(){return J},gh:function(){return je},hS:function(){return rt},iA:function(){return K},j6:function(){return G},je:function(){return Qe},jj:function(){return V},kS:function(){return Pt},o6:function(){return q},pO:function(){return Cr},rQ:function(){return ke},sA:function(){return Be},xm:function(){return Pe},xo:function(){return nt},y8:function(){return Ce},yd:function(){return se}});var ge=x(92365),de=x(89070),Q=x(955),Oe=x(8591),ie=x(3294),W=Object.defineProperty,B=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,h=(L,it,k)=>it in L?W(L,it,{enumerable:!0,configurable:!0,writable:!0,value:k}):L[it]=k,$=(L,it)=>{for(var k in it||(it={}))f.call(it,k)&&h(L,k,it[k]);if(B)for(var k of B(it))E.call(it,k)&&h(L,k,it[k]);return L},S=(L,it,k)=>new Promise((p,d)=>{var w=H=>{try{Ee(k.next(H))}catch(ne){d(ne)}},Y=H=>{try{Ee(k.throw(H))}catch(ne){d(ne)}},Ee=H=>H.done?p(H.value):Promise.resolve(H.value).then(w,Y);Ee((k=k.apply(L,it)).next())});const _=()=>{(0,de.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},N=()=>{(0,de.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},R=L=>S(void 0,null,function*(){_(),(yield(0,ge.YR)($({},L))).status===0&&(yield(0,Q.QH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/courses/${L.coursesId}/export_couser_info.json`,query:L}))),N()}),I=L=>S(void 0,null,function*(){const it=yield(0,ge.yS)($({},L));if(it.status===0)Oe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),de.history.push(`/classrooms/${L.coursesId}/exportlist/course_member_act_score`);else{if(it.status===-2)return it;it.status===-3&&((0,de.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),de.history.push(`/classrooms/${L.coursesId}/exportlist/course_member_act_score`))}}),J=L=>S(void 0,null,function*(){const it=yield(0,ge.W0)($({},L));if(it.status===0)Oe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),de.history.push(`/classrooms/${L.coursesId}/exportlist/course_total_score`);else{if(it.status===-4)return it;it.status===-3&&((0,de.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),de.history.push(`/classrooms/${L.coursesId}/exportlist/course_total_score`))}}),K=L=>S(void 0,null,function*(){const it=yield(0,ge.Nl)($({},L));if(it.status===0)Oe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),de.history.push(`/classrooms/${L.coursesId}/exportlist/course_total_exercise_and_other`);else{if(it.status===-4)return it;it.status===-3&&((0,de.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),de.history.push(`/classrooms/${L.coursesId}/exportlist/course_total_exercise_and_other`))}}),se=L=>S(void 0,null,function*(){const it=yield(0,ge.IU)($({},L));if(it.status===0)Oe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),de.history.push(`/classrooms/${L.coursesId}/exportlist/export_star_user`);else{if(it.status===-4)return it;it.status===-3&&((0,de.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),de.history.push(`/classrooms/${L.coursesId}/exportlist/export_star_user`))}}),te=L=>S(void 0,null,function*(){const it=yield(0,ge.td)($({},L));if(it.status===0)Oe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),de.history.push(`/classrooms/${L.coursesId}/exportlist/course_total_exercise_and_other`);else{if(it.status===-2)return it;if(it.status===-3)(0,de.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),de.history.push(`/classrooms/${L.coursesId}/exportlist/course_total_exercise_and_other`);else if(it.status===-4)return it}}),G=L=>S(void 0,null,function*(){const it=yield(0,ge.QX)($({},L));if(it.status===0)Oe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),de.history.push(`/classrooms/${L.coursesId}/exportlist/course_total_homework`);else{if(it.status===-4)return it;it.status===-3&&((0,de.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),de.history.push(`/classrooms/${L.coursesId}/exportlist/course_total_homework`))}}),V=(L,it)=>S(void 0,null,function*(){const k=yield(0,ge.o_)($({},L));k.status===0?(Oe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),de.history.push(`/classrooms/${L.coursesId}/exportlist/${it}`)):k.status===-3&&((0,de.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),de.history.push(`/classrooms/${L.coursesId}/exportlist/${it}`))}),j=(L,it)=>S(void 0,null,function*(){const k=yield(0,ge.ZL)($({},L));k.status===0?(Oe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),de.history.push(`/classrooms/${L.coursesId}/exportlist/${it}`)):k.status===-3&&((0,de.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),de.history.push(`/classrooms/${L.coursesId}/exportlist/${it}`))}),le=(L,it)=>S(void 0,null,function*(){const k=yield(0,ge.aP)($({},L));k.status===0?(Oe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),de.history.push(`/classrooms/${L.coursesId}/exportlist/${it}`)):k.status===-3&&((0,de.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),de.history.push(`/classrooms/${L.coursesId}/exportlist/${it}`))}),he=(L,it)=>S(void 0,null,function*(){const k=yield(0,ge.vV)($({},L));k.status===0?(Oe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),de.history.push(`/classrooms/${L.coursesId}/exportlist/${it}`)):k.status===-3&&((0,de.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),de.history.push(`/classrooms/${L.coursesId}/exportlist/${it}`))}),Ne=L=>S(void 0,null,function*(){_(),(yield exportCourseWorkListAppendix($({},L))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${L.categoryId}/works_list.zip`,query:L}))),N()}),Be=L=>S(void 0,null,function*(){_(),yield(0,Q.QH)("",ie.Z.API_SERVER+`/api/polls/${L.categoryId}/commit_result.xlsx`),N()}),je=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/courses/${L.coursesId}/attendances/export_xlsx_data.xlsx`,query:L}))}),q=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/courses/${L.coursesId}/video_study_statics.xlsx`,query:L}))}),ce=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/courses/${L.coursesId}/export_video_study.xlsx`,query:L}))}),D=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/courses/${L.coursesId}/export_course_students_info.xlsx`,query:L}))}),ot=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+"/api/school_manages/students.xlsx",query:L}))}),ke=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+"/api/item_banks/export.xlsx",query:L}))}),Ce=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:L}))}),Qe=L=>S(void 0,null,function*(){const it=yield(0,ge.Uy)($({},L));it.status===0?(Oe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),de.history.push(`/classrooms/${L.coursesId}/exportlist/exercise_score,export_exercise_users`)):it.status===-3&&((0,de.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),de.history.push(`/classrooms/${L.coursesId}/exportlist/exercise_score,export_exercise_users`))}),ve=L=>S(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/export_records/${L.id}.xlsx`,query:L}))}),Pe=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:L}))}),fe=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/courses/${L==null?void 0:L.coursesId}/${L.menuKey}_statistic.xlsx?${L.checkedList.map(it=>`course_group_id[]=${it}`).join("&")}`,query:L}))}),ye=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/ec_years/${L==null?void 0:L.ec_year_id}/ec_training_objectives.xlsx`,query:L}))}),at=L=>S(void 0,null,function*(){yield(0,Q.FH)(L==null?void 0:L.name,(0,Q.NY)({url:ie.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:L}))}),rt=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/ec_years/${L==null?void 0:L.ec_year_id}/ec_courses.xlsx`,query:L}))}),nt=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/ec_years/${L==null?void 0:L.ec_year_id}/ec_graduation_requirements.xlsx`,query:L}))}),ut=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:L}))}),Pt=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:L}))}),Ht=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/examination_banks/${L.id}.json`,query:L}))}),Ut=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/exercises/${L.categoryId}.json`,query:L}))}),cr=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/polls/${L==null?void 0:L.id}/commit_result.json`,query:L}))}),or=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+"/api/paths/get_task_pass.json",query:L}))}),Cr=(L,it)=>S(void 0,null,function*(){yield(0,Q.FH)(it||"",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/exercises/${L==null?void 0:L.exercise_id}/consult_exercise.json`,query:L}))}),hr=L=>S(void 0,null,function*(){yield(0,Q.FH)("",(0,Q.NY)({url:ie.Z.API_SERVER+`/api/competitions/${L==null?void 0:L.identifier}/competition_commit_records/member_works.xlsx`,query:L}))})},50371:function(xn,Yt){"use strict";function x(){const ge=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let de=1;de<arguments.length;de++){const Q=de<0||arguments.length<=de?void 0:arguments[de];Q&&Object.keys(Q).forEach(Oe=>{const ie=Q[Oe];ie!==void 0&&(ge[Oe]=ie)})}return ge}Yt.Z=x},13845:function(xn,Yt,x){"use strict";x.d(Yt,{F:function(){return ge},Z:function(){return de}});function ge(Q){return Q!=null&&Q===Q.window}function de(Q,Oe){var ie,W;if(typeof window=="undefined")return 0;const B=Oe?"scrollTop":"scrollLeft";let f=0;return ge(Q)?f=Q[Oe?"pageYOffset":"pageXOffset"]:Q instanceof Document?f=Q.documentElement[B]:(Q instanceof HTMLElement||Q)&&(f=Q[B]),Q&&!ge(Q)&&typeof f!="number"&&(f=(W=((ie=Q.ownerDocument)!==null&&ie!==void 0?ie:Q).documentElement)===null||W===void 0?void 0:W[B]),f}},56762:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return de}});var ge=x(59301);function de(){const[,Q]=ge.useReducer(Oe=>Oe+1,0);return Q}},68031:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return Oe}});var ge=x(16089);function de(ie,W,B,f){const E=B-W;return ie/=f/2,ie<1?E/2*ie*ie*ie+W:E/2*((ie-=2)*ie*ie+2)+W}var Q=x(13845);function Oe(ie){let W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:B=()=>window,callback:f,duration:E=450}=W,h=B(),$=(0,Q.Z)(h,!0),S=Date.now(),_=()=>{const R=Date.now()-S,I=de(R>E?E:R,$,ie,E);(0,Q.F)(h)?h.scrollTo(window.pageXOffset,I):h instanceof Document||h.constructor.name==="HTMLDocument"?h.documentElement.scrollTop=I:h.scrollTop=I,R<E?(0,ge.Z)(_):typeof f=="function"&&f()};(0,ge.Z)(_)}},19080:function(xn,Yt,x){"use strict";x.d(Yt,{F:function(){return ie},Z:function(){return Oe}});var ge=x(92310),de=x.n(ge);const Q=null;function Oe(W,B,f){return de()({[`${W}-status-success`]:B==="success",[`${W}-status-warning`]:B==="warning",[`${W}-status-error`]:B==="error",[`${W}-status-validating`]:B==="validating",[`${W}-has-feedback`]:f})}const ie=(W,B)=>B||W},66104:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return ot}});var ge=x(92310),de=x.n(ge),Q=x(11592),Oe=x(26112),ie=x(59301),W=x(92343),B=x(36355),f=x(84105),E=x(91857);const h=ke=>{let{children:Ce}=ke;const{getPrefixCls:Qe}=ie.useContext(B.E_),ve=Qe("breadcrumb");return ie.createElement("li",{className:`${ve}-separator`,"aria-hidden":"true"},Ce===""?Ce:Ce||"/")};h.__ANT_BREADCRUMB_SEPARATOR=!0;var $=h,S=function(ke,Ce){var Qe={};for(var ve in ke)Object.prototype.hasOwnProperty.call(ke,ve)&&Ce.indexOf(ve)<0&&(Qe[ve]=ke[ve]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,ve=Object.getOwnPropertySymbols(ke);Pe<ve.length;Pe++)Ce.indexOf(ve[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ke,ve[Pe])&&(Qe[ve[Pe]]=ke[ve[Pe]]);return Qe};function _(ke,Ce){if(ke.title===void 0||ke.title===null)return null;const Qe=Object.keys(Ce).join("|");return typeof ke.title=="object"?ke.title:String(ke.title).replace(new RegExp(`:(${Qe})`,"g"),(ve,Pe)=>Ce[Pe]||ve)}function N(ke,Ce,Qe,ve){if(Qe==null)return null;const{className:Pe,onClick:fe}=Ce,ye=S(Ce,["className","onClick"]),at=Object.assign(Object.assign({},(0,Oe.Z)(ye,{data:!0,aria:!0})),{onClick:fe});return ve!==void 0?ie.createElement("a",Object.assign({},at,{className:de()(`${ke}-link`,Pe),href:ve}),Qe):ie.createElement("span",Object.assign({},at,{className:de()(`${ke}-link`,Pe)}),Qe)}function R(ke,Ce){return(ve,Pe,fe,ye,at)=>{if(Ce)return Ce(ve,Pe,fe,ye);const rt=_(ve,Pe);return N(ke,ve,rt,at)}}var I=function(ke,Ce){var Qe={};for(var ve in ke)Object.prototype.hasOwnProperty.call(ke,ve)&&Ce.indexOf(ve)<0&&(Qe[ve]=ke[ve]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,ve=Object.getOwnPropertySymbols(ke);Pe<ve.length;Pe++)Ce.indexOf(ve[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ke,ve[Pe])&&(Qe[ve[Pe]]=ke[ve[Pe]]);return Qe};const J=ke=>{const{prefixCls:Ce,separator:Qe="/",children:ve,menu:Pe,overlay:fe,dropdownProps:ye,href:at}=ke,nt=(ut=>{if(Pe||fe){const Pt=Object.assign({},ye);if(Pe){const Ht=Pe||{},{items:Ut}=Ht,cr=I(Ht,["items"]);Pt.menu=Object.assign(Object.assign({},cr),{items:Ut==null?void 0:Ut.map((or,Cr)=>{var{key:hr,title:L,label:it,path:k}=or,p=I(or,["key","title","label","path"]);let d=it!=null?it:L;return k&&(d=ie.createElement("a",{href:`${at}${k}`},d)),Object.assign(Object.assign({},p),{key:hr!=null?hr:Cr,label:d})})})}else fe&&(Pt.overlay=fe);return ie.createElement(E.Z,Object.assign({placement:"bottom"},Pt),ie.createElement("span",{className:`${Ce}-overlay-link`},ut,ie.createElement(f.Z,null)))}return ut})(ve);return nt!=null?ie.createElement(ie.Fragment,null,ie.createElement("li",null,nt),Qe&&ie.createElement($,null,Qe)):null},K=ke=>{const{prefixCls:Ce,children:Qe,href:ve}=ke,Pe=I(ke,["prefixCls","children","href"]),{getPrefixCls:fe}=ie.useContext(B.E_),ye=fe("breadcrumb",Ce);return ie.createElement(J,Object.assign({},Pe,{prefixCls:ye}),N(ye,Pe,Qe,ve))};K.__ANT_BREADCRUMB_ITEM=!0;var se=K,te=x(17313),G=x(83116),V=x(37613);const j=ke=>{const{componentCls:Ce,iconCls:Qe}=ke;return{[Ce]:Object.assign(Object.assign({},(0,te.Wf)(ke)),{color:ke.itemColor,fontSize:ke.fontSize,[Qe]:{fontSize:ke.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:ke.linkColor,transition:`color ${ke.motionDurationMid}`,padding:`0 ${ke.paddingXXS}px`,borderRadius:ke.borderRadiusSM,height:ke.lineHeight*ke.fontSize,display:"inline-block",marginInline:-ke.marginXXS,"&:hover":{color:ke.linkHoverColor,backgroundColor:ke.colorBgTextHover}},(0,te.Qy)(ke)),"li:last-child":{color:ke.lastItemColor},[`${Ce}-separator`]:{marginInline:ke.separatorMargin,color:ke.separatorColor},[`${Ce}-link`]:{[`
> ${Qe} + span,
> ${Qe} + a
`]:{marginInlineStart:ke.marginXXS}},[`${Ce}-overlay-link`]:{borderRadius:ke.borderRadiusSM,height:ke.lineHeight*ke.fontSize,display:"inline-block",padding:`0 ${ke.paddingXXS}px`,marginInline:-ke.marginXXS,[`> ${Qe}`]:{marginInlineStart:ke.marginXXS,fontSize:ke.fontSizeIcon},"&:hover":{color:ke.linkHoverColor,backgroundColor:ke.colorBgTextHover,a:{color:ke.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${ke.componentCls}-rtl`]:{direction:"rtl"}})}};var le=(0,G.Z)("Breadcrumb",ke=>{const Ce=(0,V.TS)(ke,{});return[j(Ce)]},ke=>({itemColor:ke.colorTextDescription,lastItemColor:ke.colorText,iconFontSize:ke.fontSize,linkColor:ke.colorTextDescription,linkHoverColor:ke.colorText,separatorColor:ke.colorTextDescription,separatorMargin:ke.marginXS})),he=function(ke,Ce){var Qe={};for(var ve in ke)Object.prototype.hasOwnProperty.call(ke,ve)&&Ce.indexOf(ve)<0&&(Qe[ve]=ke[ve]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,ve=Object.getOwnPropertySymbols(ke);Pe<ve.length;Pe++)Ce.indexOf(ve[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ke,ve[Pe])&&(Qe[ve[Pe]]=ke[ve[Pe]]);return Qe};function Ne(ke){const{breadcrumbName:Ce,children:Qe}=ke,ve=he(ke,["breadcrumbName","children"]),Pe=Object.assign({title:Ce},ve);return Qe&&(Pe.menu={items:Qe.map(fe=>{var{breadcrumbName:ye}=fe,at=he(fe,["breadcrumbName"]);return Object.assign(Object.assign({},at),{title:ye})})}),Pe}function Be(ke,Ce){return(0,ie.useMemo)(()=>ke||(Ce?Ce.map(Ne):null),[ke,Ce])}var je=function(ke,Ce){var Qe={};for(var ve in ke)Object.prototype.hasOwnProperty.call(ke,ve)&&Ce.indexOf(ve)<0&&(Qe[ve]=ke[ve]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,ve=Object.getOwnPropertySymbols(ke);Pe<ve.length;Pe++)Ce.indexOf(ve[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ke,ve[Pe])&&(Qe[ve[Pe]]=ke[ve[Pe]]);return Qe};const q=(ke,Ce)=>{if(Ce===void 0)return Ce;let Qe=(Ce||"").replace(/^\//,"");return Object.keys(ke).forEach(ve=>{Qe=Qe.replace(`:${ve}`,ke[ve])}),Qe},ce=ke=>{const{prefixCls:Ce,separator:Qe="/",style:ve,className:Pe,rootClassName:fe,routes:ye,items:at,children:rt,itemRender:nt,params:ut={}}=ke,Pt=je(ke,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Ht,direction:Ut,breadcrumb:cr}=ie.useContext(B.E_);let or;const Cr=Ht("breadcrumb",Ce),[hr,L]=le(Cr),it=Be(at,ye),k=R(Cr,nt);if(it&&it.length>0){const w=[],Y=at||ye;or=it.map((Ee,H)=>{const{path:ne,key:Ge,type:xe,menu:we,overlay:qe,onClick:Et,className:pe,separator:dt,dropdownProps:At}=Ee,Me=q(ut,ne);Me!==void 0&&w.push(Me);const De=Ge!=null?Ge:H;if(xe==="separator")return ie.createElement($,{key:De},dt);const gt={},jt=H===it.length-1;we?gt.menu=we:qe&&(gt.overlay=qe);let{href:Tt}=Ee;return w.length&&Me!==void 0&&(Tt=`#/${w.join("/")}`),ie.createElement(J,Object.assign({key:De},gt,(0,Oe.Z)(Ee,{data:!0,aria:!0}),{className:pe,dropdownProps:At,href:Tt,separator:jt?"":Qe,onClick:Et,prefixCls:Cr}),k(Ee,ut,Y,w,Tt))})}else if(rt){const w=(0,Q.Z)(rt).length;or=(0,Q.Z)(rt).map((Y,Ee)=>{if(!Y)return Y;const H=Ee===w-1;return(0,W.Tm)(Y,{separator:H?"":Qe,key:Ee})})}const p=de()(Cr,cr==null?void 0:cr.className,{[`${Cr}-rtl`]:Ut==="rtl"},Pe,fe,L),d=Object.assign(Object.assign({},cr==null?void 0:cr.style),ve);return hr(ie.createElement("nav",Object.assign({className:p,style:d},Pt),ie.createElement("ol",null,or)))};ce.Item=se,ce.Separator=$;var D=ce,ot=D},24905:function(xn,Yt,x){"use strict";x.d(Yt,{default:function(){return le}});var ge=x(92310),de=x.n(ge),Q=x(5630),Oe=x(59301),ie=x(36355),W=x(1684),B=x(32441),E=Oe.createContext(null),h=x(98447),$=x(14088),S=x(4572),_=function(he,Ne){var Be={};for(var je in he)Object.prototype.hasOwnProperty.call(he,je)&&Ne.indexOf(je)<0&&(Be[je]=he[je]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,je=Object.getOwnPropertySymbols(he);q<je.length;q++)Ne.indexOf(je[q])<0&&Object.prototype.propertyIsEnumerable.call(he,je[q])&&(Be[je[q]]=he[je[q]]);return Be};const N=(he,Ne)=>{var Be;const{prefixCls:je,className:q,rootClassName:ce,children:D,indeterminate:ot=!1,style:ke,onMouseEnter:Ce,onMouseLeave:Qe,skipGroup:ve=!1,disabled:Pe}=he,fe=_(he,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:ye,direction:at,checkbox:rt}=Oe.useContext(ie.E_),nt=Oe.useContext(E),{isFormItemInput:ut}=Oe.useContext(B.aM),Pt=Oe.useContext(W.Z),Ht=(Be=(nt==null?void 0:nt.disabled)||Pe)!==null&&Be!==void 0?Be:Pt,Ut=Oe.useRef(fe.value);Oe.useEffect(()=>{nt==null||nt.registerValue(fe.value)},[]),Oe.useEffect(()=>{if(!ve)return fe.value!==Ut.current&&(nt==null||nt.cancelValue(Ut.current),nt==null||nt.registerValue(fe.value),Ut.current=fe.value),()=>nt==null?void 0:nt.cancelValue(fe.value)},[fe.value]);const cr=ye("checkbox",je),[or,Cr]=(0,h.ZP)(cr),hr=Object.assign({},fe);nt&&!ve&&(hr.onChange=function(){fe.onChange&&fe.onChange.apply(fe,arguments),nt.toggleOption&&nt.toggleOption({label:D,value:fe.value})},hr.name=nt.name,hr.checked=nt.value.includes(fe.value));const L=de()(`${cr}-wrapper`,{[`${cr}-rtl`]:at==="rtl",[`${cr}-wrapper-checked`]:hr.checked,[`${cr}-wrapper-disabled`]:Ht,[`${cr}-wrapper-in-form-item`]:ut},rt==null?void 0:rt.className,q,ce,Cr),it=de()({[`${cr}-indeterminate`]:ot},S.A,Cr),k=ot?"mixed":void 0;return or(Oe.createElement($.Z,{component:"Checkbox",disabled:Ht},Oe.createElement("label",{className:L,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),ke),onMouseEnter:Ce,onMouseLeave:Qe},Oe.createElement(Q.Z,Object.assign({"aria-checked":k},hr,{prefixCls:cr,className:it,disabled:Ht,ref:Ne})),D!==void 0&&Oe.createElement("span",null,D))))};var I=Oe.forwardRef(N),J=x(80702),K=x(2738),se=function(he,Ne){var Be={};for(var je in he)Object.prototype.hasOwnProperty.call(he,je)&&Ne.indexOf(je)<0&&(Be[je]=he[je]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,je=Object.getOwnPropertySymbols(he);q<je.length;q++)Ne.indexOf(je[q])<0&&Object.prototype.propertyIsEnumerable.call(he,je[q])&&(Be[je[q]]=he[je[q]]);return Be};const te=(he,Ne)=>{const{defaultValue:Be,children:je,options:q=[],prefixCls:ce,className:D,rootClassName:ot,style:ke,onChange:Ce}=he,Qe=se(he,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ve,direction:Pe}=Oe.useContext(ie.E_),[fe,ye]=Oe.useState(Qe.value||Be||[]),[at,rt]=Oe.useState([]);Oe.useEffect(()=>{"value"in Qe&&ye(Qe.value||[])},[Qe.value]);const nt=Oe.useMemo(()=>q.map(p=>typeof p=="string"||typeof p=="number"?{label:p,value:p}:p),[q]),ut=p=>{rt(d=>d.filter(w=>w!==p))},Pt=p=>{rt(d=>[].concat((0,J.Z)(d),[p]))},Ht=p=>{const d=fe.indexOf(p.value),w=(0,J.Z)(fe);d===-1?w.push(p.value):w.splice(d,1),"value"in Qe||ye(w),Ce==null||Ce(w.filter(Y=>at.includes(Y)).sort((Y,Ee)=>{const H=nt.findIndex(Ge=>Ge.value===Y),ne=nt.findIndex(Ge=>Ge.value===Ee);return H-ne}))},Ut=ve("checkbox",ce),cr=`${Ut}-group`,[or,Cr]=(0,h.ZP)(Ut),hr=(0,K.Z)(Qe,["value","disabled"]),L=q.length?nt.map(p=>Oe.createElement(I,{prefixCls:Ut,key:p.value.toString(),disabled:"disabled"in p?p.disabled:Qe.disabled,value:p.value,checked:fe.includes(p.value),onChange:p.onChange,className:`${cr}-item`,style:p.style,title:p.title},p.label)):je,it={toggleOption:Ht,value:fe,disabled:Qe.disabled,name:Qe.name,registerValue:Pt,cancelValue:ut},k=de()(cr,{[`${cr}-rtl`]:Pe==="rtl"},D,ot,Cr);return or(Oe.createElement("div",Object.assign({className:k,style:ke},hr,{ref:Ne}),Oe.createElement(E.Provider,{value:it},L)))},G=Oe.forwardRef(te);var V=Oe.memo(G);const j=I;j.Group=V,j.__ANT_CHECKBOX=!0;var le=j},98447:function(xn,Yt,x){"use strict";x.d(Yt,{C2:function(){return ie}});var ge=x(17313),de=x(37613),Q=x(83116);const Oe=W=>{const{checkboxCls:B}=W,f=`${B}-wrapper`;return[{[`${B}-group`]:Object.assign(Object.assign({},(0,ge.Wf)(W)),{display:"inline-flex",flexWrap:"wrap",columnGap:W.marginXS,[`> ${W.antCls}-row`]:{flex:1}}),[f]:Object.assign(Object.assign({},(0,ge.Wf)(W)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${f}`]:{marginInlineStart:0},[`&${f}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[B]:Object.assign(Object.assign({},(0,ge.Wf)(W)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:W.borderRadiusSM,alignSelf:"center",[`${B}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${B}-inner`]:Object.assign({},(0,ge.oN)(W))},[`${B}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:W.checkboxSize,height:W.checkboxSize,direction:"ltr",backgroundColor:W.colorBgContainer,border:`${W.lineWidth}px ${W.lineType} ${W.colorBorder}`,borderRadius:W.borderRadiusSM,borderCollapse:"separate",transition:`all ${W.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:W.checkboxSize/14*5,height:W.checkboxSize/14*8,border:`${W.lineWidthBold}px solid ${W.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${W.motionDurationFast} ${W.motionEaseInBack}, opacity ${W.motionDurationFast}`}},"& + span":{paddingInlineStart:W.paddingXS,paddingInlineEnd:W.paddingXS}})},{[`
${f}:not(${f}-disabled),
${B}:not(${B}-disabled)
`]:{[`&:hover ${B}-inner`]:{borderColor:W.colorPrimary}},[`${f}:not(${f}-disabled)`]:{[`&:hover ${B}-checked:not(${B}-disabled) ${B}-inner`]:{backgroundColor:W.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${B}-checked:not(${B}-disabled):after`]:{borderColor:W.colorPrimaryHover}}},{[`${B}-checked`]:{[`${B}-inner`]:{backgroundColor:W.colorPrimary,borderColor:W.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${W.motionDurationMid} ${W.motionEaseOutBack} ${W.motionDurationFast}`}}},[`
${f}-checked:not(${f}-disabled),
${B}-checked:not(${B}-disabled)
`]:{[`&:hover ${B}-inner`]:{backgroundColor:W.colorPrimaryHover,borderColor:"transparent"}}},{[B]:{"&-indeterminate":{[`${B}-inner`]:{backgroundColor:W.colorBgContainer,borderColor:W.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:W.fontSizeLG/2,height:W.fontSizeLG/2,backgroundColor:W.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${f}-disabled`]:{cursor:"not-allowed"},[`${B}-disabled`]:{[`&, ${B}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${B}-inner`]:{background:W.colorBgContainerDisabled,borderColor:W.colorBorder,"&:after":{borderColor:W.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:W.colorTextDisabled},[`&${B}-indeterminate ${B}-inner::after`]:{background:W.colorTextDisabled}}}]};function ie(W,B){const f=(0,de.TS)(B,{checkboxCls:`.${W}`,checkboxSize:B.controlInteractiveSize});return[Oe(f)]}Yt.ZP=(0,Q.Z)("Checkbox",(W,B)=>{let{prefixCls:f}=B;return[ie(f,W)]})},93891:function(xn,Yt,x){"use strict";var ge=x(59301),de=x(36355),Q=x(64165);const Oe=ie=>{const{componentName:W}=ie,{getPrefixCls:B}=(0,ge.useContext)(de.E_),f=B("empty");switch(W){case"Table":case"List":return ge.createElement(Q.Z,{image:Q.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ge.createElement(Q.Z,{image:Q.Z.PRESENTED_IMAGE_SIMPLE,className:`${f}-small`});default:return ge.createElement(Q.Z,null)}};Yt.Z=Oe},28103:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return S}});var ge=x(92310),de=x.n(ge),Q=x(59301),Oe=x(36355),ie=x(17313),W=x(83116),B=x(37613);const f=_=>{const{componentCls:N,sizePaddingEdgeHorizontal:R,colorSplit:I,lineWidth:J,textPaddingInline:K,orientationMargin:se,verticalMarginInline:te}=_;return{[N]:Object.assign(Object.assign({},(0,ie.Wf)(_)),{borderBlockStart:`${J}px solid ${I}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:te,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${J}px solid ${I}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${_.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${N}-with-text`]:{display:"flex",alignItems:"center",margin:`${_.dividerHorizontalWithTextGutterMargin}px 0`,color:_.colorTextHeading,fontWeight:500,fontSize:_.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${I}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${J}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${N}-with-text-left`]:{"&::before":{width:`${se*100}%`},"&::after":{width:`${100-se*100}%`}},[`&-horizontal${N}-with-text-right`]:{"&::before":{width:`${100-se*100}%`},"&::after":{width:`${se*100}%`}},[`${N}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:K},"&-dashed":{background:"none",borderColor:I,borderStyle:"dashed",borderWidth:`${J}px 0 0`},[`&-horizontal${N}-with-text${N}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${N}-dashed`]:{borderInlineStartWidth:J,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${N}-with-text`]:{color:_.colorText,fontWeight:"normal",fontSize:_.fontSize},[`&-horizontal${N}-with-text-left${N}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${N}-inner-text`]:{paddingInlineStart:R}},[`&-horizontal${N}-with-text-right${N}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${N}-inner-text`]:{paddingInlineEnd:R}}})}};var E=(0,W.Z)("Divider",_=>{const N=(0,B.TS)(_,{dividerHorizontalWithTextGutterMargin:_.margin,dividerHorizontalGutterMargin:_.marginLG,sizePaddingEdgeHorizontal:0});return[f(N)]},_=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:_.marginXS})),h=function(_,N){var R={};for(var I in _)Object.prototype.hasOwnProperty.call(_,I)&&N.indexOf(I)<0&&(R[I]=_[I]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,I=Object.getOwnPropertySymbols(_);J<I.length;J++)N.indexOf(I[J])<0&&Object.prototype.propertyIsEnumerable.call(_,I[J])&&(R[I[J]]=_[I[J]]);return R},S=_=>{const{getPrefixCls:N,direction:R,divider:I}=Q.useContext(Oe.E_),{prefixCls:J,type:K="horizontal",orientation:se="center",orientationMargin:te,className:G,rootClassName:V,children:j,dashed:le,plain:he,style:Ne}=_,Be=h(_,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),je=N("divider",J),[q,ce]=E(je),D=se.length>0?`-${se}`:se,ot=!!j,ke=se==="left"&&te!=null,Ce=se==="right"&&te!=null,Qe=de()(je,I==null?void 0:I.className,ce,`${je}-${K}`,{[`${je}-with-text`]:ot,[`${je}-with-text${D}`]:ot,[`${je}-dashed`]:!!le,[`${je}-plain`]:!!he,[`${je}-rtl`]:R==="rtl",[`${je}-no-default-orientation-margin-left`]:ke,[`${je}-no-default-orientation-margin-right`]:Ce},G,V),ve=Q.useMemo(()=>typeof te=="number"?te:/^\d+$/.test(te)?Number(te):te,[te]),Pe=Object.assign(Object.assign({},ke&&{marginLeft:ve}),Ce&&{marginRight:ve});return q(Q.createElement("div",Object.assign({className:Qe,style:Object.assign(Object.assign({},I==null?void 0:I.style),Ne)},Be,{role:"separator"}),j&&K!=="vertical"&&Q.createElement("span",{className:`${je}-inner-text`,style:Pe},j)))}},91857:function(xn,Yt,x){"use strict";var ge=x(59301),de=x(38819),Q=x(92310),Oe=x.n(Q),ie=x(31561),W=x(70425),B=x(18929),f=x(2738),E=x(79676),h=x(53487),$=x(92343),S=x(36355),_=x(20834),N=x(40875),R=x(88088),I=x(47211);const J=null,K=V=>{const{menu:j,arrow:le,prefixCls:he,children:Ne,trigger:Be,disabled:je,dropdownRender:q,getPopupContainer:ce,overlayClassName:D,rootClassName:ot,open:ke,onOpenChange:Ce,visible:Qe,onVisibleChange:ve,mouseEnterDelay:Pe=.15,mouseLeaveDelay:fe=.1,autoAdjustOverflow:ye=!0,placement:at="",overlay:rt,transitionName:nt}=V,{getPopupContainer:ut,getPrefixCls:Pt,direction:Ht}=ge.useContext(S.E_),Ut=ge.useMemo(()=>{const we=Pt();return nt!==void 0?nt:at.includes("top")?`${we}-slide-down`:`${we}-slide-up`},[Pt,at,nt]),cr=ge.useMemo(()=>at?at.includes("Center")?at.slice(0,at.indexOf("Center")):at:Ht==="rtl"?"bottomRight":"bottomLeft",[at,Ht]),or=Pt("dropdown",he),[Cr,hr]=(0,I.Z)(or),[,L]=(0,R.Z)(),it=ge.Children.only(Ne),k=(0,$.Tm)(it,{className:Oe()(`${or}-trigger`,{[`${or}-rtl`]:Ht==="rtl"},it.props.className),disabled:je}),p=je?[]:Be;let d;p&&p.includes("contextMenu")&&(d=!0);const[w,Y]=(0,B.Z)(!1,{value:ke!=null?ke:Qe}),Ee=(0,W.useEvent)(we=>{Ce==null||Ce(we),ve==null||ve(we),Y(we)}),H=Oe()(D,ot,hr,{[`${or}-rtl`]:Ht==="rtl"}),ne=(0,E.Z)({arrowPointAtCenter:typeof le=="object"&&le.pointAtCenter,autoAdjustOverflow:ye,offset:L.marginXXS,arrowWidth:le?L.sizePopupArrow:0,borderRadius:L.borderRadius}),Ge=ge.useCallback(()=>{Y(!1)},[]),xe=()=>{let we;return j!=null&&j.items?we=ge.createElement(_.default,Object.assign({},j)):typeof rt=="function"?we=rt():we=rt,q&&(we=q(we)),we=ge.Children.only(typeof we=="string"?ge.createElement("span",null,we):we),ge.createElement(N.J,{prefixCls:`${or}-menu`,expandIcon:ge.createElement("span",{className:`${or}-menu-submenu-arrow`},ge.createElement(de.Z,{className:`${or}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ge,validator:qe=>{let{mode:Et}=qe}},we)};return Cr(ge.createElement(ie.Z,Object.assign({alignPoint:d},(0,f.Z)(V,["rootClassName"]),{mouseEnterDelay:Pe,mouseLeaveDelay:fe,visible:w,builtinPlacements:ne,arrow:!!le,overlayClassName:H,prefixCls:or,getPopupContainer:ce||ut,transitionName:Ut,trigger:p,overlay:xe,placement:cr,onVisibleChange:Ee}),k))};function se(V){return Object.assign(Object.assign({},V),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const te=(0,h.Z)(K,"dropdown",V=>V,se),G=V=>ge.createElement(te,Object.assign({},V),ge.createElement("span",null));K._InternalPanelDoNotUseOrYouWillBeFired=G,Yt.Z=K},38854:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return R}});var ge=x(91857),de=x(92310),Q=x.n(de),Oe=x(59301),ie=x(18785),W=x(3113),B=x(36355),f=x(81327),E=x(33234),h=x(47211),$=function(I,J){var K={};for(var se in I)Object.prototype.hasOwnProperty.call(I,se)&&J.indexOf(se)<0&&(K[se]=I[se]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,se=Object.getOwnPropertySymbols(I);te<se.length;te++)J.indexOf(se[te])<0&&Object.prototype.propertyIsEnumerable.call(I,se[te])&&(K[se[te]]=I[se[te]]);return K};const S=I=>{const{getPopupContainer:J,getPrefixCls:K,direction:se}=Oe.useContext(B.E_),{prefixCls:te,type:G="default",danger:V,disabled:j,loading:le,onClick:he,htmlType:Ne,children:Be,className:je,menu:q,arrow:ce,autoFocus:D,overlay:ot,trigger:ke,align:Ce,open:Qe,onOpenChange:ve,placement:Pe,getPopupContainer:fe,href:ye,icon:at=Oe.createElement(ie.Z,null),title:rt,buttonsRender:nt=xe=>xe,mouseEnterDelay:ut,mouseLeaveDelay:Pt,overlayClassName:Ht,overlayStyle:Ut,destroyPopupOnHide:cr,dropdownRender:or}=I,Cr=$(I,["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"]),hr=K("dropdown",te),L=`${hr}-button`,[it,k]=(0,h.Z)(hr),p={menu:q,arrow:ce,autoFocus:D,align:Ce,disabled:j,trigger:j?[]:ke,onOpenChange:ve,getPopupContainer:fe||J,mouseEnterDelay:ut,mouseLeaveDelay:Pt,overlayClassName:Ht,overlayStyle:Ut,destroyPopupOnHide:cr,dropdownRender:or},{compactSize:d,compactItemClassnames:w}=(0,E.ri)(hr,se),Y=Q()(L,w,je,k);"overlay"in I&&(p.overlay=ot),"open"in I&&(p.open=Qe),"placement"in I?p.placement=Pe:p.placement=se==="rtl"?"bottomLeft":"bottomRight";const Ee=Oe.createElement(W.ZP,{type:G,danger:V,disabled:j,loading:le,onClick:he,htmlType:Ne,href:ye,title:rt},Be),H=Oe.createElement(W.ZP,{type:G,danger:V,icon:at}),[ne,Ge]=nt([Ee,H]);return it(Oe.createElement(f.Z.Compact,Object.assign({className:Y,size:d,block:!0},Cr),ne,Oe.createElement(ge.Z,Object.assign({},p),Ge)))};S.__ANT_BUTTON=!0;var _=S;const N=ge.Z;N.Button=_;var R=N},47211:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return $}});var ge=x(17313),de=x(13826),Q=x(92899),Oe=x(29878),ie=x(19447),W=x(83116),B=x(37613),E=S=>{const{componentCls:_,menuCls:N,colorError:R,colorTextLightSolid:I}=S,J=`${N}-item`;return{[`${_}, ${_}-menu-submenu`]:{[`${N} ${J}`]:{[`&${J}-danger:not(${J}-disabled)`]:{color:R,"&:hover":{color:I,backgroundColor:R}}}}}};const h=S=>{const{componentCls:_,menuCls:N,zIndexPopup:R,dropdownArrowDistance:I,sizePopupArrow:J,antCls:K,iconCls:se,motionDurationMid:te,dropdownPaddingVertical:G,fontSize:V,dropdownEdgeChildPadding:j,colorTextDisabled:le,fontSizeIcon:he,controlPaddingHorizontal:Ne,colorBgElevated:Be}=S;return[{[_]:Object.assign(Object.assign({},(0,ge.Wf)(S)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:R,display:"block","&::before":{position:"absolute",insetBlock:-I+J/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${K}-btn`]:{[`& > ${se}-down, & > ${K}-btn-icon > ${se}-down`]:{fontSize:he}},[`${_}-wrap`]:{position:"relative",[`${K}-btn > ${se}-down`]:{fontSize:he},[`${se}-down::before`]:{transition:`transform ${te}`}},[`${_}-wrap-open`]:{[`${se}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${K}-slide-down-enter${K}-slide-down-enter-active${_}-placement-bottomLeft,
&${K}-slide-down-appear${K}-slide-down-appear-active${_}-placement-bottomLeft,
&${K}-slide-down-enter${K}-slide-down-enter-active${_}-placement-bottom,
&${K}-slide-down-appear${K}-slide-down-appear-active${_}-placement-bottom,
&${K}-slide-down-enter${K}-slide-down-enter-active${_}-placement-bottomRight,
&${K}-slide-down-appear${K}-slide-down-appear-active${_}-placement-bottomRight`]:{animationName:de.fJ},[`&${K}-slide-up-enter${K}-slide-up-enter-active${_}-placement-topLeft,
&${K}-slide-up-appear${K}-slide-up-appear-active${_}-placement-topLeft,
&${K}-slide-up-enter${K}-slide-up-enter-active${_}-placement-top,
&${K}-slide-up-appear${K}-slide-up-appear-active${_}-placement-top,
&${K}-slide-up-enter${K}-slide-up-enter-active${_}-placement-topRight,
&${K}-slide-up-appear${K}-slide-up-appear-active${_}-placement-topRight`]:{animationName:de.Qt},[`&${K}-slide-down-leave${K}-slide-down-leave-active${_}-placement-bottomLeft,
&${K}-slide-down-leave${K}-slide-down-leave-active${_}-placement-bottom,
&${K}-slide-down-leave${K}-slide-down-leave-active${_}-placement-bottomRight`]:{animationName:de.Uw},[`&${K}-slide-up-leave${K}-slide-up-leave-active${_}-placement-topLeft,
&${K}-slide-up-leave${K}-slide-up-leave-active${_}-placement-top,
&${K}-slide-up-leave${K}-slide-up-leave-active${_}-placement-topRight`]:{animationName:de.ly}})},(0,ie.ZP)(S,{colorBg:Be,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${_} ${N}`]:{position:"relative",margin:0},[`${N}-submenu-popup`]:{position:"absolute",zIndex:R,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${_}, ${_}-menu-submenu`]:{[N]:Object.assign(Object.assign({padding:j,listStyleType:"none",backgroundColor:Be,backgroundClip:"padding-box",borderRadius:S.borderRadiusLG,outline:"none",boxShadow:S.boxShadowSecondary},(0,ge.Qy)(S)),{[`${N}-item-group-title`]:{padding:`${G}px ${Ne}px`,color:S.colorTextDescription,transition:`all ${te}`},[`${N}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${N}-item-icon`]:{minWidth:V,marginInlineEnd:S.marginXS,fontSize:S.fontSizeSM},[`${N}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${te}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${N}-item, ${N}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${G}px ${Ne}px`,color:S.colorText,fontWeight:"normal",fontSize:V,lineHeight:S.lineHeight,cursor:"pointer",transition:`all ${te}`,borderRadius:S.borderRadiusSM,"&:hover, &-active":{backgroundColor:S.controlItemBgHover}},(0,ge.Qy)(S)),{"&-selected":{color:S.colorPrimary,backgroundColor:S.controlItemBgActive,"&:hover, &-active":{backgroundColor:S.controlItemBgActiveHover}},"&-disabled":{color:le,cursor:"not-allowed","&:hover":{color:le,backgroundColor:Be,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${S.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:S.colorSplit},[`${_}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:S.paddingXS,[`${_}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:S.colorTextDescription,fontSize:he,fontStyle:"normal"}}}),[`${N}-item-group-list`]:{margin:`0 ${S.marginXS}px`,padding:0,listStyle:"none"},[`${N}-submenu-title`]:{paddingInlineEnd:Ne+S.fontSizeSM},[`${N}-submenu-vertical`]:{position:"relative"},[`${N}-submenu${N}-submenu-disabled ${_}-menu-submenu-title`]:{[`&, ${_}-menu-submenu-arrow-icon`]:{color:le,backgroundColor:Be,cursor:"not-allowed"}},[`${N}-submenu-selected ${_}-menu-submenu-title`]:{color:S.colorPrimary}})}},[(0,de.oN)(S,"slide-up"),(0,de.oN)(S,"slide-down"),(0,Q.Fm)(S,"move-up"),(0,Q.Fm)(S,"move-down"),(0,Oe._y)(S,"zoom-big")]]};var $=(0,W.Z)("Dropdown",(S,_)=>{let{rootPrefixCls:N}=_;const{marginXXS:R,sizePopupArrow:I,controlHeight:J,fontSize:K,lineHeight:se,paddingXXS:te,componentCls:G,borderRadiusLG:V}=S,j=(J-K*se)/2,{dropdownArrowOffset:le}=(0,ie.fS)({contentRadius:V}),he=(0,B.TS)(S,{menuCls:`${G}-menu`,rootPrefixCls:N,dropdownArrowDistance:I/2+R,dropdownArrowOffset:le,dropdownPaddingVertical:j,dropdownEdgeChildPadding:te});return[h(he),E(he)]},S=>({zIndexPopup:S.zIndexPopupBase+50}))},64165:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return te}});var ge=x(92310),de=x.n(ge),Q=x(59301),Oe=x(36355),ie=x(9763),W=x(64993),B=x(88088),E=()=>{const[,G]=(0,B.Z)(),j=new W.C(G.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Q.createElement("svg",{style:j,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Q.createElement("g",{fill:"none",fillRule:"evenodd"},Q.createElement("g",{transform:"translate(24 31.67)"},Q.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Q.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"}),Q.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)"}),Q.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"}),Q.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"})),Q.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"}),Q.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Q.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Q.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},$=()=>{const[,G]=(0,B.Z)(),{colorFill:V,colorFillTertiary:j,colorFillQuaternary:le,colorBgContainer:he}=G,{borderColor:Ne,shadowColor:Be,contentColor:je}=(0,Q.useMemo)(()=>({borderColor:new W.C(V).onBackground(he).toHexShortString(),shadowColor:new W.C(j).onBackground(he).toHexShortString(),contentColor:new W.C(le).onBackground(he).toHexShortString()}),[V,j,le,he]);return Q.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Q.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Q.createElement("ellipse",{fill:Be,cx:"32",cy:"33",rx:"32",ry:"7"}),Q.createElement("g",{fillRule:"nonzero",stroke:Ne},Q.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"}),Q.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:je}))))},S=x(83116),_=x(37613);const N=G=>{const{componentCls:V,margin:j,marginXS:le,marginXL:he,fontSize:Ne,lineHeight:Be}=G;return{[V]:{marginInline:le,fontSize:Ne,lineHeight:Be,textAlign:"center",[`${V}-image`]:{height:G.emptyImgHeight,marginBottom:le,opacity:G.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${V}-description`]:{color:G.colorText},[`${V}-footer`]:{marginTop:j},"&-normal":{marginBlock:he,color:G.colorTextDisabled,[`${V}-description`]:{color:G.colorTextDisabled},[`${V}-image`]:{height:G.emptyImgHeightMD}},"&-small":{marginBlock:le,color:G.colorTextDisabled,[`${V}-image`]:{height:G.emptyImgHeightSM}}}}};var R=(0,S.Z)("Empty",G=>{const{componentCls:V,controlHeightLG:j}=G,le=(0,_.TS)(G,{emptyImgCls:`${V}-img`,emptyImgHeight:j*2.5,emptyImgHeightMD:j,emptyImgHeightSM:j*.875});return[N(le)]}),I=function(G,V){var j={};for(var le in G)Object.prototype.hasOwnProperty.call(G,le)&&V.indexOf(le)<0&&(j[le]=G[le]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,le=Object.getOwnPropertySymbols(G);he<le.length;he++)V.indexOf(le[he])<0&&Object.prototype.propertyIsEnumerable.call(G,le[he])&&(j[le[he]]=G[le[he]]);return j};const J=Q.createElement(E,null),K=Q.createElement($,null),se=G=>{var{className:V,rootClassName:j,prefixCls:le,image:he=J,description:Ne,children:Be,imageStyle:je,style:q}=G,ce=I(G,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:D,direction:ot,empty:ke}=Q.useContext(Oe.E_),Ce=D("empty",le),[Qe,ve]=R(Ce),[Pe]=(0,ie.Z)("Empty"),fe=typeof Ne!="undefined"?Ne:Pe==null?void 0:Pe.description,ye=typeof fe=="string"?fe:"empty";let at=null;return typeof he=="string"?at=Q.createElement("img",{alt:ye,src:he}):at=he,Qe(Q.createElement("div",Object.assign({className:de()(ve,Ce,ke==null?void 0:ke.className,{[`${Ce}-normal`]:he===K,[`${Ce}-rtl`]:ot==="rtl"},V,j),style:Object.assign(Object.assign({},ke==null?void 0:ke.style),q)},ce),Q.createElement("div",{className:`${Ce}-image`,style:je},at),fe&&Q.createElement("div",{className:`${Ce}-description`},fe),Be&&Q.createElement("div",{className:`${Ce}-footer`},Be)))};se.PRESENTED_IMAGE_DEFAULT=J,se.PRESENTED_IMAGE_SIMPLE=K;var te=se},8628:function(xn,Yt,x){"use strict";var ge=x(59301),de=x(34280),Q=x(56762),Oe=x(69507);function ie(){let W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const B=(0,ge.useRef)({}),f=(0,Q.Z)(),E=(0,Oe.ZP)();return(0,de.Z)(()=>{const h=E.subscribe($=>{B.current=$,W&&f()});return()=>E.unsubscribe(h)},[]),B.current}Yt.Z=ie},5871:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return At}});var ge=x(84105),de=x(87395),Q=x(92310),Oe=x.n(Q),ie=x(72308),W=x(49618),B=x(62853),f=x(52487),E=x(74416),h=x(96949),$=x(55090);function S(){return typeof BigInt=="function"}function _(Me){return!Me&&Me!==0&&!Number.isNaN(Me)||!String(Me).trim()}function N(Me){var De=Me.trim(),gt=De.startsWith("-");gt&&(De=De.slice(1)),De=De.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),De.startsWith(".")&&(De="0".concat(De));var jt=De||"0",Tt=jt.split("."),ir=Tt[0]||"0",Fr=Tt[1]||"0";ir==="0"&&Fr==="0"&&(gt=!1);var Pr=gt?"-":"";return{negative:gt,negativeStr:Pr,trimStr:jt,integerStr:ir,decimalStr:Fr,fullStr:"".concat(Pr).concat(jt)}}function R(Me){var De=String(Me);return!Number.isNaN(Number(De))&&De.includes("e")}function I(Me){var De=String(Me);if(R(Me)){var gt=Number(De.slice(De.indexOf("e-")+2)),jt=De.match(/\.(\d+)/);return jt!=null&&jt[1]&&(gt+=jt[1].length),gt}return De.includes(".")&&K(De)?De.length-De.indexOf(".")-1:0}function J(Me){var De=String(Me);if(R(Me)){if(Me>Number.MAX_SAFE_INTEGER)return String(S()?BigInt(Me).toString():Number.MAX_SAFE_INTEGER);if(Me<Number.MIN_SAFE_INTEGER)return String(S()?BigInt(Me).toString():Number.MIN_SAFE_INTEGER);De=Me.toFixed(I(De))}return N(De).fullStr}function K(Me){return typeof Me=="number"?!Number.isNaN(Me):Me?/^\s*-?\d+(\.\d+)?\s*$/.test(Me)||/^\s*-?\d+\.\s*$/.test(Me)||/^\s*-?\.\d+\s*$/.test(Me):!1}var se=function(){function Me(De){if((0,h.Z)(this,Me),(0,W.Z)(this,"origin",""),(0,W.Z)(this,"negative",void 0),(0,W.Z)(this,"integer",void 0),(0,W.Z)(this,"decimal",void 0),(0,W.Z)(this,"decimalLen",void 0),(0,W.Z)(this,"empty",void 0),(0,W.Z)(this,"nan",void 0),_(De)){this.empty=!0;return}if(this.origin=String(De),De==="-"||Number.isNaN(De)){this.nan=!0;return}var gt=De;if(R(gt)&&(gt=Number(gt)),gt=typeof gt=="string"?gt:J(gt),K(gt)){var jt=N(gt);this.negative=jt.negative;var Tt=jt.trimStr.split(".");this.integer=BigInt(Tt[0]);var ir=Tt[1]||"0";this.decimal=BigInt(ir),this.decimalLen=ir.length}else this.nan=!0}return(0,$.Z)(Me,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(gt){var jt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(gt,"0"));return BigInt(jt)}},{key:"negate",value:function(){var gt=new Me(this.toString());return gt.negative=!gt.negative,gt}},{key:"cal",value:function(gt,jt,Tt){var ir=Math.max(this.getDecimalStr().length,gt.getDecimalStr().length),Fr=this.alignDecimal(ir),Pr=gt.alignDecimal(ir),Hr=jt(Fr,Pr).toString(),Rr=Tt(ir),sr=N(Hr),lr=sr.negativeStr,$r=sr.trimStr,ln="".concat(lr).concat($r.padStart(Rr+1,"0"));return new Me("".concat(ln.slice(0,-Rr),".").concat(ln.slice(-Rr)))}},{key:"add",value:function(gt){if(this.isInvalidate())return new Me(gt);var jt=new Me(gt);return jt.isInvalidate()?this:this.cal(jt,function(Tt,ir){return Tt+ir},function(Tt){return Tt})}},{key:"multi",value:function(gt){var jt=new Me(gt);return this.isInvalidate()||jt.isInvalidate()?new Me(NaN):this.cal(jt,function(Tt,ir){return Tt*ir},function(Tt){return Tt*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(gt){return this.toString()===(gt==null?void 0:gt.toString())}},{key:"lessEquals",value:function(gt){return this.add(gt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return gt?this.isInvalidate()?"":N("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Me}(),te=function(){function Me(De){if((0,h.Z)(this,Me),(0,W.Z)(this,"origin",""),(0,W.Z)(this,"number",void 0),(0,W.Z)(this,"empty",void 0),_(De)){this.empty=!0;return}this.origin=String(De),this.number=Number(De)}return(0,$.Z)(Me,[{key:"negate",value:function(){return new Me(-this.toNumber())}},{key:"add",value:function(gt){if(this.isInvalidate())return new Me(gt);var jt=Number(gt);if(Number.isNaN(jt))return this;var Tt=this.number+jt;if(Tt>Number.MAX_SAFE_INTEGER)return new Me(Number.MAX_SAFE_INTEGER);if(Tt<Number.MIN_SAFE_INTEGER)return new Me(Number.MIN_SAFE_INTEGER);var ir=Math.max(I(this.number),I(jt));return new Me(Tt.toFixed(ir))}},{key:"multi",value:function(gt){var jt=Number(gt);if(this.isInvalidate()||Number.isNaN(jt))return new Me(NaN);var Tt=this.number*jt;if(Tt>Number.MAX_SAFE_INTEGER)return new Me(Number.MAX_SAFE_INTEGER);if(Tt<Number.MIN_SAFE_INTEGER)return new Me(Number.MIN_SAFE_INTEGER);var ir=Math.max(I(this.number),I(jt));return new Me(Tt.toFixed(ir))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(gt){return this.toNumber()===(gt==null?void 0:gt.toNumber())}},{key:"lessEquals",value:function(gt){return this.add(gt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return gt?this.isInvalidate()?"":J(this.number):this.origin}}]),Me}();function G(Me){return S()?new se(Me):new te(Me)}function V(Me,De,gt){var jt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Me==="")return"";var Tt=N(Me),ir=Tt.negativeStr,Fr=Tt.integerStr,Pr=Tt.decimalStr,Hr="".concat(De).concat(Pr),Rr="".concat(ir).concat(Fr);if(gt>=0){var sr=Number(Pr[gt]);if(sr>=5&&!jt){var lr=G(Me).add("".concat(ir,"0.").concat("0".repeat(gt)).concat(10-sr));return V(lr.toString(),De,gt,jt)}return gt===0?Rr:"".concat(Rr).concat(De).concat(Pr.padEnd(gt,"0").slice(0,gt))}return Hr===".0"?Rr:"".concat(Rr).concat(Hr)}var j=G,le=x(93681),he=x(34280),Ne=x(8654),Be=x(59301),je=x(48736);function q(Me,De){var gt=(0,Be.useRef)(null);function jt(){try{var ir=Me.selectionStart,Fr=Me.selectionEnd,Pr=Me.value,Hr=Pr.substring(0,ir),Rr=Pr.substring(Fr);gt.current={start:ir,end:Fr,value:Pr,beforeTxt:Hr,afterTxt:Rr}}catch(sr){}}function Tt(){if(Me&&gt.current&&De)try{var ir=Me.value,Fr=gt.current,Pr=Fr.beforeTxt,Hr=Fr.afterTxt,Rr=Fr.start,sr=ir.length;if(ir.endsWith(Hr))sr=ir.length-gt.current.afterTxt.length;else if(ir.startsWith(Pr))sr=Pr.length;else{var lr=Pr[Rr-1],$r=ir.indexOf(lr,Rr-1);$r!==-1&&(sr=$r+1)}Me.setSelectionRange(sr,sr)}catch(ln){(0,je.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(ln.message))}}return[jt,Tt]}var ce=x(49658),D=function(){var De=(0,Be.useState)(!1),gt=(0,f.Z)(De,2),jt=gt[0],Tt=gt[1];return(0,he.Z)(function(){Tt((0,ce.Z)())},[]),jt},ot=D,ke=x(16089),Ce=200,Qe=600;function ve(Me){var De=Me.prefixCls,gt=Me.upNode,jt=Me.downNode,Tt=Me.upDisabled,ir=Me.downDisabled,Fr=Me.onStep,Pr=Be.useRef(),Hr=Be.useRef([]),Rr=Be.useRef();Rr.current=Fr;var sr=function(){clearTimeout(Pr.current)},lr=function(qn,wi){qn.preventDefault(),sr(),Rr.current(wi);function $n(){Rr.current(wi),Pr.current=setTimeout($n,Ce)}Pr.current=setTimeout($n,Qe)};Be.useEffect(function(){return function(){sr(),Hr.current.forEach(function(Ir){return ke.Z.cancel(Ir)})}},[]);var $r=ot();if($r)return null;var ln="".concat(De,"-handler"),En=Oe()(ln,"".concat(ln,"-up"),(0,W.Z)({},"".concat(ln,"-up-disabled"),Tt)),cn=Oe()(ln,"".concat(ln,"-down"),(0,W.Z)({},"".concat(ln,"-down-disabled"),ir)),In=function(){return Hr.current.push((0,ke.Z)(sr))},bi={unselectable:"on",role:"button",onMouseUp:In,onMouseLeave:In};return Be.createElement("div",{className:"".concat(ln,"-wrap")},Be.createElement("span",(0,ie.Z)({},bi,{onMouseDown:function(qn){lr(qn,!0)},"aria-label":"Increase Value","aria-disabled":Tt,className:En}),gt||Be.createElement("span",{unselectable:"on",className:"".concat(De,"-handler-up-inner")})),Be.createElement("span",(0,ie.Z)({},bi,{onMouseDown:function(qn){lr(qn,!1)},"aria-label":"Decrease Value","aria-disabled":ir,className:cn}),jt||Be.createElement("span",{unselectable:"on",className:"".concat(De,"-handler-down-inner")})))}function Pe(Me){var De=typeof Me=="number"?J(Me):N(Me).fullStr,gt=De.includes(".");return gt?N(De.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Me+"0"}var fe=x(5643),ye=function(){var Me=(0,Be.useRef)(0),De=function(){ke.Z.cancel(Me.current)};return(0,Be.useEffect)(function(){return De},[]),function(gt){De(),Me.current=(0,ke.Z)(function(){gt()})}},at=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],rt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],nt=function(De,gt){return De||gt.isEmpty()?gt.toString():gt.toNumber()},ut=function(De){var gt=j(De);return gt.isInvalidate()?null:gt},Pt=Be.forwardRef(function(Me,De){var gt,jt=Me.prefixCls,Tt=jt===void 0?"rc-input-number":jt,ir=Me.className,Fr=Me.style,Pr=Me.min,Hr=Me.max,Rr=Me.step,sr=Rr===void 0?1:Rr,lr=Me.defaultValue,$r=Me.value,ln=Me.disabled,En=Me.readOnly,cn=Me.upHandler,In=Me.downHandler,bi=Me.keyboard,Ir=Me.controls,qn=Ir===void 0?!0:Ir,wi=Me.classNames,$n=Me.stringMode,Ni=Me.parser,gi=Me.formatter,Qi=Me.precision,ba=Me.decimalSeparator,$i=Me.onChange,ri=Me.onInput,xi=Me.onPressEnter,Ti=Me.onStep,me=(0,E.Z)(Me,at),Ue="".concat(Tt,"-input"),Le=Be.useRef(null),lt=Be.useState(!1),$t=(0,f.Z)(lt,2),Qt=$t[0],Br=$t[1],pr=Be.useRef(!1),Kr=Be.useRef(!1),Wr=Be.useRef(!1),en=Be.useState(function(){return j($r!=null?$r:lr)}),Vr=(0,f.Z)(en,2),jr=Vr[0],Yr=Vr[1];function mn(An){$r===void 0&&Yr(An)}var tn=Be.useCallback(function(An,rn){if(!rn)return Qi>=0?Qi:Math.max(I(An),I(sr))},[Qi,sr]),Dn=Be.useCallback(function(An){var rn=String(An);if(Ni)return Ni(rn);var Tn=rn;return ba&&(Tn=Tn.replace(ba,".")),Tn.replace(/[^\w.-]+/g,"")},[Ni,ba]),Qn=Be.useRef(""),ui=Be.useCallback(function(An,rn){if(gi)return gi(An,{userTyping:rn,input:String(Qn.current)});var Tn=typeof An=="number"?J(An):An;if(!rn){var wn=tn(Tn,rn);if(K(Tn)&&(ba||wn>=0)){var jn=ba||".";Tn=V(Tn,jn,wn)}}return Tn},[gi,tn,ba]),On=Be.useState(function(){var An=lr!=null?lr:$r;return jr.isInvalidate()&&["string","number"].includes((0,B.Z)(An))?Number.isNaN(An)?"":An:ui(jr.toString(),!1)}),on=(0,f.Z)(On,2),Kt=on[0],Zt=on[1];Qn.current=Kt;function qt(An,rn){Zt(ui(An.isInvalidate()?An.toString(!1):An.toString(!rn),rn))}var er=Be.useMemo(function(){return ut(Hr)},[Hr,Qi]),Xt=Be.useMemo(function(){return ut(Pr)},[Pr,Qi]),Ur=Be.useMemo(function(){return!er||!jr||jr.isInvalidate()?!1:er.lessEquals(jr)},[er,jr]),Mr=Be.useMemo(function(){return!Xt||!jr||jr.isInvalidate()?!1:jr.lessEquals(Xt)},[Xt,jr]),Gr=q(Le.current,Qt),Mn=(0,f.Z)(Gr,2),Pn=Mn[0],si=Mn[1],ei=function(rn){return er&&!rn.lessEquals(er)?er:Xt&&!Xt.lessEquals(rn)?Xt:null},Ci=function(rn){return!ei(rn)},Yn=function(rn,Tn){var wn=rn,jn=Ci(wn)||wn.isEmpty();if(!wn.isEmpty()&&!Tn&&(wn=ei(wn)||wn,jn=!0),!En&&!ln&&jn){var ci=wn.toString(),Bi=tn(ci,Tn);return Bi>=0&&(wn=j(V(ci,".",Bi)),Ci(wn)||(wn=j(V(ci,".",Bi,!0)))),wn.equals(jr)||(mn(wn),$i==null||$i(wn.isEmpty()?null:nt($n,wn)),$r===void 0&&qt(wn,Tn)),wn}return jr},Hn=ye(),an=function An(rn){if(Pn(),Qn.current=rn,Zt(rn),!Kr.current){var Tn=Dn(rn),wn=j(Tn);wn.isNaN()||Yn(wn,!0)}ri==null||ri(rn),Hn(function(){var jn=rn;Ni||(jn=rn.replace(/。/g,".")),jn!==rn&&An(jn)})},pi=function(){Kr.current=!0},Ln=function(){Kr.current=!1,an(Le.current.value)},ni=function(rn){an(rn.target.value)},vi=function(rn){var Tn;if(!(rn&&Ur||!rn&&Mr)){pr.current=!1;var wn=j(Wr.current?Pe(sr):sr);rn||(wn=wn.negate());var jn=(jr||j(0)).add(wn.toString()),ci=Yn(jn,!1);Ti==null||Ti(nt($n,ci),{offset:Wr.current?Pe(sr):sr,type:rn?"up":"down"}),(Tn=Le.current)===null||Tn===void 0||Tn.focus()}},Mi=function(rn){var Tn=j(Dn(Kt)),wn=Tn;Tn.isNaN()?wn=Yn(jr,rn):wn=Yn(Tn,rn),$r!==void 0?qt(jr,!1):wn.isNaN()||qt(wn,!1)},Jn=function(){pr.current=!0},_i=function(rn){var Tn=rn.key,wn=rn.shiftKey;pr.current=!0,Wr.current=wn,Tn==="Enter"&&(Kr.current||(pr.current=!1),Mi(!1),xi==null||xi(rn)),bi!==!1&&!Kr.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Tn)&&(vi(Tn==="Up"||Tn==="ArrowUp"),rn.preventDefault())},ra=function(){pr.current=!1,Wr.current=!1},ai=function(){Mi(!1),Br(!1),pr.current=!1};return(0,he.o)(function(){jr.isInvalidate()||qt(jr,!1)},[Qi]),(0,he.o)(function(){var An=j($r);Yr(An);var rn=j(Dn(Kt));(!An.equals(rn)||!pr.current||gi)&&qt(An,pr.current)},[$r]),(0,he.o)(function(){gi&&si()},[Kt]),Be.createElement("div",{className:Oe()(Tt,wi==null?void 0:wi.input,ir,(gt={},(0,W.Z)(gt,"".concat(Tt,"-focused"),Qt),(0,W.Z)(gt,"".concat(Tt,"-disabled"),ln),(0,W.Z)(gt,"".concat(Tt,"-readonly"),En),(0,W.Z)(gt,"".concat(Tt,"-not-a-number"),jr.isNaN()),(0,W.Z)(gt,"".concat(Tt,"-out-of-range"),!jr.isInvalidate()&&!Ci(jr)),gt)),style:Fr,onFocus:function(){Br(!0)},onBlur:ai,onKeyDown:_i,onKeyUp:ra,onCompositionStart:pi,onCompositionEnd:Ln,onBeforeInput:Jn},qn&&Be.createElement(ve,{prefixCls:Tt,upNode:cn,downNode:In,upDisabled:Ur,downDisabled:Mr,onStep:vi}),Be.createElement("div",{className:"".concat(Ue,"-wrap")},Be.createElement("input",(0,ie.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Pr,"aria-valuemax":Hr,"aria-valuenow":jr.isInvalidate()?null:jr.toString(),step:sr},me,{ref:(0,Ne.sQ)(Le,De),className:Ue,value:Kt,onChange:ni,disabled:ln,readOnly:En}))))}),Ht=Be.forwardRef(function(Me,De){var gt=Me.disabled,jt=Me.style,Tt=Me.prefixCls,ir=Me.value,Fr=Me.prefix,Pr=Me.suffix,Hr=Me.addonBefore,Rr=Me.addonAfter,sr=Me.classes,lr=Me.className,$r=Me.classNames,ln=(0,E.Z)(Me,rt),En=Be.useRef(null),cn=function(bi){En.current&&(0,fe.nH)(En.current,bi)};return Be.createElement(le.BaseInput,{inputElement:Be.createElement(Pt,(0,ie.Z)({prefixCls:Tt,disabled:gt,classNames:$r,ref:(0,Ne.sQ)(En,De)},ln)),className:lr,triggerFocus:cn,prefixCls:Tt,value:ir,disabled:gt,style:jt,prefix:Fr,suffix:Pr,addonAfter:Rr,addonBefore:Hr,classes:sr,classNames:$r,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});Ht.displayName="InputNumber";var Ut=Ht,cr=Ut,or=x(19080),Cr=x(36355),hr=x(92736),L=x(1684),it=x(19716),k=x(32441),p=x(33234),d=x(9937),w=x(17313),Y=x(74207),Ee=x(83116),H=x(37613);const ne=(Me,De)=>{let{componentCls:gt,borderRadiusSM:jt,borderRadiusLG:Tt}=Me;const ir=De==="lg"?Tt:jt;return{[`&-${De}`]:{[`${gt}-handler-wrap`]:{borderStartEndRadius:ir,borderEndEndRadius:ir},[`${gt}-handler-up`]:{borderStartEndRadius:ir},[`${gt}-handler-down`]:{borderEndEndRadius:ir}}}},Ge=Me=>{const{componentCls:De,lineWidth:gt,lineType:jt,colorBorder:Tt,borderRadius:ir,fontSizeLG:Fr,controlHeightLG:Pr,controlHeightSM:Hr,colorError:Rr,paddingInlineSM:sr,colorTextDescription:lr,motionDurationMid:$r,handleHoverColor:ln,paddingInline:En,paddingBlock:cn,handleBg:In,handleActiveBg:bi,colorTextDisabled:Ir,borderRadiusSM:qn,borderRadiusLG:wi,controlWidth:$n,handleVisible:Ni,handleBorderColor:gi}=Me;return[{[De]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,w.Wf)(Me)),(0,d.ik)(Me)),(0,d.bi)(Me,De)),{display:"inline-block",width:$n,margin:0,padding:0,border:`${gt}px ${jt} ${Tt}`,borderRadius:ir,"&-rtl":{direction:"rtl",[`${De}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Fr,borderRadius:wi,[`input${De}-input`]:{height:Pr-2*gt}},"&-sm":{padding:0,borderRadius:qn,[`input${De}-input`]:{height:Hr-2*gt,padding:`0 ${sr}px`}},"&:hover":Object.assign({},(0,d.pU)(Me)),"&-focused":Object.assign({},(0,d.M1)(Me)),"&-out-of-range":{[`${De}-input-wrap`]:{input:{color:Rr}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,w.Wf)(Me)),(0,d.s7)(Me)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${De}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${De}-group-addon`]:{borderRadius:wi,fontSize:Me.fontSizeLG}},"&-sm":{[`${De}-group-addon`]:{borderRadius:qn}},[`${De}-wrapper-disabled > ${De}-group-addon`]:Object.assign({},(0,d.Xy)(Me))}}),[`&-disabled ${De}-input`]:{cursor:"not-allowed"},[De]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,w.Wf)(Me)),{width:"100%",padding:`${cn}px ${En}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:ir,outline:0,transition:`all ${$r} linear`,appearance:"textfield",fontSize:"inherit"}),(0,d.nz)(Me.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[De]:Object.assign(Object.assign(Object.assign({[`&:hover ${De}-handler-wrap, &-focused ${De}-handler-wrap`]:{opacity:1},[`${De}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Me.handleWidth,height:"100%",background:In,borderStartStartRadius:0,borderStartEndRadius:ir,borderEndEndRadius:ir,borderEndStartRadius:0,opacity:Ni===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${$r} linear ${$r}`,[`${De}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${De}-handler-up-inner,
${De}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:Me.handleFontSize}}},[`${De}-handler`]:{height:"50%",overflow:"hidden",color:lr,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${gt}px ${jt} ${gi}`,transition:`all ${$r} linear`,"&:active":{background:bi},"&:hover":{height:"60%",[`
${De}-handler-up-inner,
${De}-handler-down-inner
`]:{color:ln}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,w.Ro)()),{color:lr,transition:`all ${$r} linear`,userSelect:"none"})},[`${De}-handler-up`]:{borderStartEndRadius:ir},[`${De}-handler-down`]:{borderBlockStart:`${gt}px ${jt} ${gi}`,borderEndEndRadius:ir}},ne(Me,"lg")),ne(Me,"sm")),{"&-disabled, &-readonly":{[`${De}-handler-wrap`]:{display:"none"},[`${De}-input`]:{color:"inherit"}},[`
${De}-handler-up-disabled,
${De}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${De}-handler-up-disabled:hover &-handler-up-inner,
${De}-handler-down-disabled:hover &-handler-down-inner
`]:{color:Ir}})},{[`${De}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${De}-handler-down`]:{borderBlockStartWidth:0}}}]},xe=Me=>{const{componentCls:De,paddingBlock:gt,paddingInline:jt,inputAffixPadding:Tt,controlWidth:ir,borderRadiusLG:Fr,borderRadiusSM:Pr}=Me;return{[`${De}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,d.ik)(Me)),(0,d.bi)(Me,`${De}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:ir,padding:0,paddingInlineStart:jt,"&-lg":{borderRadius:Fr},"&-sm":{borderRadius:Pr},[`&:not(${De}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,d.pU)(Me)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${De}-disabled`]:{background:"transparent"},[`> div${De}`]:{width:"100%",border:"none",outline:"none",[`&${De}-focused`]:{boxShadow:"none !important"}},[`input${De}-input`]:{padding:`${gt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${De}-handler-wrap`]:{zIndex:2},[De]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Tt},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:jt,marginInlineStart:Tt}}})}};var we=(0,Ee.Z)("InputNumber",Me=>{const De=(0,H.TS)(Me,(0,d.e5)(Me));return[Ge(De),xe(De),(0,Y.c)(De)]},Me=>Object.assign(Object.assign({},(0,d.TM)(Me)),{controlWidth:90,handleWidth:Me.controlHeightSM-Me.lineWidth*2,handleFontSize:Me.fontSize/2,handleVisible:"auto",handleActiveBg:Me.colorFillAlter,handleBg:Me.colorBgContainer,handleHoverColor:Me.colorPrimary,handleBorderColor:Me.colorBorder})),qe=function(Me,De){var gt={};for(var jt in Me)Object.prototype.hasOwnProperty.call(Me,jt)&&De.indexOf(jt)<0&&(gt[jt]=Me[jt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,jt=Object.getOwnPropertySymbols(Me);Tt<jt.length;Tt++)De.indexOf(jt[Tt])<0&&Object.prototype.propertyIsEnumerable.call(Me,jt[Tt])&&(gt[jt[Tt]]=Me[jt[Tt]]);return gt};const Et=Be.forwardRef((Me,De)=>{const{getPrefixCls:gt,direction:jt}=Be.useContext(Cr.E_),Tt=Be.useRef(null);Be.useImperativeHandle(De,()=>Tt.current);const{className:ir,rootClassName:Fr,size:Pr,disabled:Hr,prefixCls:Rr,addonBefore:sr,addonAfter:lr,prefix:$r,bordered:ln=!0,readOnly:En,status:cn,controls:In}=Me,bi=qe(Me,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Ir=gt("input-number",Rr),[qn,wi]=we(Ir),{compactSize:$n,compactItemClassnames:Ni}=(0,p.ri)(Ir,jt);let gi=Be.createElement(de.Z,{className:`${Ir}-handler-up-inner`}),Qi=Be.createElement(ge.Z,{className:`${Ir}-handler-down-inner`});const ba=typeof In=="boolean"?In:void 0;typeof In=="object"&&(gi=typeof In.upIcon=="undefined"?gi:Be.createElement("span",{className:`${Ir}-handler-up-inner`},In.upIcon),Qi=typeof In.downIcon=="undefined"?Qi:Be.createElement("span",{className:`${Ir}-handler-down-inner`},In.downIcon));const{hasFeedback:$i,status:ri,isFormItemInput:xi,feedbackIcon:Ti}=Be.useContext(k.aM),me=(0,or.F)(ri,cn),Ue=(0,it.Z)(pr=>{var Kr;return(Kr=Pr!=null?Pr:$n)!==null&&Kr!==void 0?Kr:pr}),Le=Be.useContext(L.Z),lt=Hr!=null?Hr:Le,$t=Oe()({[`${Ir}-lg`]:Ue==="large",[`${Ir}-sm`]:Ue==="small",[`${Ir}-rtl`]:jt==="rtl",[`${Ir}-borderless`]:!ln,[`${Ir}-in-form-item`]:xi},(0,or.Z)(Ir,me),Ni,wi),Qt=`${Ir}-group`,Br=Be.createElement(cr,Object.assign({ref:Tt,disabled:lt,className:Oe()(ir,Fr),upHandler:gi,downHandler:Qi,prefixCls:Ir,readOnly:En,controls:ba,prefix:$r,suffix:$i&&Ti,addonAfter:lr&&Be.createElement(p.BR,null,Be.createElement(k.Ux,{override:!0,status:!0},lr)),addonBefore:sr&&Be.createElement(p.BR,null,Be.createElement(k.Ux,{override:!0,status:!0},sr)),classNames:{input:$t},classes:{affixWrapper:Oe()((0,or.Z)(`${Ir}-affix-wrapper`,me,$i),{[`${Ir}-affix-wrapper-sm`]:Ue==="small",[`${Ir}-affix-wrapper-lg`]:Ue==="large",[`${Ir}-affix-wrapper-rtl`]:jt==="rtl",[`${Ir}-affix-wrapper-borderless`]:!ln},wi),wrapper:Oe()({[`${Qt}-rtl`]:jt==="rtl",[`${Ir}-wrapper-disabled`]:lt},wi),group:Oe()({[`${Ir}-group-wrapper-sm`]:Ue==="small",[`${Ir}-group-wrapper-lg`]:Ue==="large",[`${Ir}-group-wrapper-rtl`]:jt==="rtl"},(0,or.Z)(`${Ir}-group-wrapper`,me,$i),wi)}},bi));return qn(Br)}),pe=Et,dt=Me=>Be.createElement(hr.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Be.createElement(Et,Object.assign({},Me)));pe._InternalPanelDoNotUseOrYouWillBeFired=dt;var At=pe},9432:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return se},n:function(){return J}});var ge=x(19248),de=x(92310),Q=x.n(de),Oe=x(93681),ie=x(8654),W=x(59301),B=x(19080),f=x(36355),E=x(1684),h=x(19716),$=x(32441),S=x(33234),_=x(59412),N=x(9937);function R(te){return!!(te.prefix||te.suffix||te.allowClear)}var I=function(te,G){var V={};for(var j in te)Object.prototype.hasOwnProperty.call(te,j)&&G.indexOf(j)<0&&(V[j]=te[j]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,j=Object.getOwnPropertySymbols(te);le<j.length;le++)G.indexOf(j[le])<0&&Object.prototype.propertyIsEnumerable.call(te,j[le])&&(V[j[le]]=te[j[le]]);return V};function J(te,G){if(!te)return;te.focus(G);const{cursor:V}=G||{};if(V){const j=te.value.length;switch(V){case"start":te.setSelectionRange(0,0);break;case"end":te.setSelectionRange(j,j);break;default:te.setSelectionRange(0,j);break}}}var se=(0,W.forwardRef)((te,G)=>{var V;const{prefixCls:j,bordered:le=!0,status:he,size:Ne,disabled:Be,onBlur:je,onFocus:q,suffix:ce,allowClear:D,addonAfter:ot,addonBefore:ke,className:Ce,style:Qe,styles:ve,rootClassName:Pe,onChange:fe,classNames:ye}=te,at=I(te,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:rt,direction:nt,input:ut}=W.useContext(f.E_),Pt=rt("input",j),Ht=(0,W.useRef)(null),[Ut,cr]=(0,N.ZP)(Pt),{compactSize:or,compactItemClassnames:Cr}=(0,S.ri)(Pt,nt),hr=(0,h.Z)(Et=>{var pe;return(pe=Ne!=null?Ne:or)!==null&&pe!==void 0?pe:Et}),L=W.useContext(E.Z),it=Be!=null?Be:L,{status:k,hasFeedback:p,feedbackIcon:d}=(0,W.useContext)($.aM),w=(0,B.F)(k,he),Y=R(te)||!!p,Ee=(0,W.useRef)(Y);(0,W.useEffect)(()=>{var Et;Y&&Ee.current,Ee.current=Y},[Y]);const H=(0,_.Z)(Ht,!0),ne=Et=>{H(),je==null||je(Et)},Ge=Et=>{H(),q==null||q(Et)},xe=Et=>{H(),fe==null||fe(Et)},we=(p||ce)&&W.createElement(W.Fragment,null,ce,p&&d);let qe;return typeof D=="object"&&(D!=null&&D.clearIcon)?qe=D:D&&(qe={clearIcon:W.createElement(ge.Z,null)}),Ut(W.createElement(Oe.default,Object.assign({ref:(0,ie.sQ)(G,Ht),prefixCls:Pt,autoComplete:ut==null?void 0:ut.autoComplete},at,{disabled:it,onBlur:ne,onFocus:Ge,style:Object.assign(Object.assign({},ut==null?void 0:ut.style),Qe),styles:Object.assign(Object.assign({},ut==null?void 0:ut.styles),ve),suffix:we,allowClear:qe,className:Q()(Ce,Pe,Cr,ut==null?void 0:ut.className),onChange:xe,addonAfter:ot&&W.createElement(S.BR,null,W.createElement($.Ux,{override:!0,status:!0},ot)),addonBefore:ke&&W.createElement(S.BR,null,W.createElement($.Ux,{override:!0,status:!0},ke)),classNames:Object.assign(Object.assign(Object.assign({},ye),ut==null?void 0:ut.classNames),{input:Q()({[`${Pt}-sm`]:hr==="small",[`${Pt}-lg`]:hr==="large",[`${Pt}-rtl`]:nt==="rtl",[`${Pt}-borderless`]:!le},!Y&&(0,B.Z)(Pt,w),ye==null?void 0:ye.input,(V=ut==null?void 0:ut.classNames)===null||V===void 0?void 0:V.input,cr)}),classes:{affixWrapper:Q()({[`${Pt}-affix-wrapper-sm`]:hr==="small",[`${Pt}-affix-wrapper-lg`]:hr==="large",[`${Pt}-affix-wrapper-rtl`]:nt==="rtl",[`${Pt}-affix-wrapper-borderless`]:!le},(0,B.Z)(`${Pt}-affix-wrapper`,w,p),cr),wrapper:Q()({[`${Pt}-group-rtl`]:nt==="rtl"},cr),group:Q()({[`${Pt}-group-wrapper-sm`]:hr==="small",[`${Pt}-group-wrapper-lg`]:hr==="large",[`${Pt}-group-wrapper-rtl`]:nt==="rtl",[`${Pt}-group-wrapper-disabled`]:it},(0,B.Z)(`${Pt}-group-wrapper`,w,p),cr)}})))})},1643:function(xn,Yt,x){"use strict";var ge=x(19248),de=x(92310),Q=x.n(de),Oe=x(9296),ie=x(59301),W=x(19080),B=x(36355),f=x(1684),E=x(19716),h=x(32441),$=x(9432),S=x(9937),_=function(R,I){var J={};for(var K in R)Object.prototype.hasOwnProperty.call(R,K)&&I.indexOf(K)<0&&(J[K]=R[K]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,K=Object.getOwnPropertySymbols(R);se<K.length;se++)I.indexOf(K[se])<0&&Object.prototype.propertyIsEnumerable.call(R,K[se])&&(J[K[se]]=R[K[se]]);return J};const N=(0,ie.forwardRef)((R,I)=>{const{prefixCls:J,bordered:K=!0,size:se,disabled:te,status:G,allowClear:V,showCount:j,classNames:le,rootClassName:he,className:Ne}=R,Be=_(R,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:je,direction:q}=ie.useContext(B.E_),ce=(0,E.Z)(se),D=ie.useContext(f.Z),ot=te!=null?te:D,{status:ke,hasFeedback:Ce,feedbackIcon:Qe}=ie.useContext(h.aM),ve=(0,W.F)(ke,G),Pe=ie.useRef(null);ie.useImperativeHandle(I,()=>{var nt;return{resizableTextArea:(nt=Pe.current)===null||nt===void 0?void 0:nt.resizableTextArea,focus:ut=>{var Pt,Ht;(0,$.n)((Ht=(Pt=Pe.current)===null||Pt===void 0?void 0:Pt.resizableTextArea)===null||Ht===void 0?void 0:Ht.textArea,ut)},blur:()=>{var ut;return(ut=Pe.current)===null||ut===void 0?void 0:ut.blur()}}});const fe=je("input",J);let ye;typeof V=="object"&&(V!=null&&V.clearIcon)?ye=V:V&&(ye={clearIcon:ie.createElement(ge.Z,null)});const[at,rt]=(0,S.ZP)(fe);return at(ie.createElement(Oe.default,Object.assign({},Be,{disabled:ot,allowClear:ye,className:Q()(Ne,he),classes:{affixWrapper:Q()(`${fe}-textarea-affix-wrapper`,{[`${fe}-affix-wrapper-rtl`]:q==="rtl",[`${fe}-affix-wrapper-borderless`]:!K,[`${fe}-affix-wrapper-sm`]:ce==="small",[`${fe}-affix-wrapper-lg`]:ce==="large",[`${fe}-textarea-show-count`]:j},(0,W.Z)(`${fe}-affix-wrapper`,ve),rt)},classNames:Object.assign(Object.assign({},le),{textarea:Q()({[`${fe}-borderless`]:!K,[`${fe}-sm`]:ce==="small",[`${fe}-lg`]:ce==="large"},(0,W.Z)(fe,ve),rt,le==null?void 0:le.textarea)}),prefixCls:fe,suffix:Ce&&ie.createElement("span",{className:`${fe}-textarea-suffix`},Qe),showCount:j,ref:Pe})))});Yt.Z=N},59412:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return de}});var ge=x(59301);function de(Q,Oe){const ie=(0,ge.useRef)([]),W=()=>{ie.current.push(setTimeout(()=>{var B,f,E,h;!((B=Q.current)===null||B===void 0)&&B.input&&((f=Q.current)===null||f===void 0?void 0:f.input.getAttribute("type"))==="password"&&(!((E=Q.current)===null||E===void 0)&&E.input.hasAttribute("value"))&&((h=Q.current)===null||h===void 0||h.input.removeAttribute("value"))}))};return(0,ge.useEffect)(()=>(Oe&&W(),()=>ie.current.forEach(B=>{B&&clearTimeout(B)})),[]),W}},92832:function(xn,Yt,x){"use strict";x.d(Yt,{default:function(){return ce}});var ge=x(92310),de=x.n(ge),Q=x(59301),Oe=x(36355),ie=x(32441),W=x(9937),f=D=>{const{getPrefixCls:ot,direction:ke}=(0,Q.useContext)(Oe.E_),{prefixCls:Ce,className:Qe}=D,ve=ot("input-group",Ce),Pe=ot("input"),[fe,ye]=(0,W.ZP)(Pe),at=de()(ve,{[`${ve}-lg`]:D.size==="large",[`${ve}-sm`]:D.size==="small",[`${ve}-compact`]:D.compact,[`${ve}-rtl`]:ke==="rtl"},ye,Qe),rt=(0,Q.useContext)(ie.aM),nt=(0,Q.useMemo)(()=>Object.assign(Object.assign({},rt),{isFormItemInput:!1}),[rt]);return fe(Q.createElement("span",{className:at,style:D.style,onMouseEnter:D.onMouseEnter,onMouseLeave:D.onMouseLeave,onFocus:D.onFocus,onBlur:D.onBlur},Q.createElement(ie.aM.Provider,{value:nt},D.children)))},E=x(9432),h=x(73331),$=x(15277),S=x(2738),_=x(8654),N=x(59412),R=function(D,ot){var ke={};for(var Ce in D)Object.prototype.hasOwnProperty.call(D,Ce)&&ot.indexOf(Ce)<0&&(ke[Ce]=D[Ce]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Ce=Object.getOwnPropertySymbols(D);Qe<Ce.length;Qe++)ot.indexOf(Ce[Qe])<0&&Object.prototype.propertyIsEnumerable.call(D,Ce[Qe])&&(ke[Ce[Qe]]=D[Ce[Qe]]);return ke};const I=D=>D?Q.createElement($.Z,null):Q.createElement(h.Z,null),J={click:"onClick",hover:"onMouseOver"};var se=Q.forwardRef((D,ot)=>{const{visibilityToggle:ke=!0}=D,Ce=typeof ke=="object"&&ke.visible!==void 0,[Qe,ve]=(0,Q.useState)(()=>Ce?ke.visible:!1),Pe=(0,Q.useRef)(null);Q.useEffect(()=>{Ce&&ve(ke.visible)},[Ce,ke]);const fe=(0,N.Z)(Pe),ye=()=>{const{disabled:it}=D;it||(Qe&&fe(),ve(k=>{var p;const d=!k;return typeof ke=="object"&&((p=ke.onVisibleChange)===null||p===void 0||p.call(ke,d)),d}))},at=it=>{const{action:k="click",iconRender:p=I}=D,d=J[k]||"",w=p(Qe),Y={[d]:ye,className:`${it}-icon`,key:"passwordIcon",onMouseDown:Ee=>{Ee.preventDefault()},onMouseUp:Ee=>{Ee.preventDefault()}};return Q.cloneElement(Q.isValidElement(w)?w:Q.createElement("span",null,w),Y)},{className:rt,prefixCls:nt,inputPrefixCls:ut,size:Pt}=D,Ht=R(D,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Ut}=Q.useContext(Oe.E_),cr=Ut("input",ut),or=Ut("input-password",nt),Cr=ke&&at(or),hr=de()(or,rt,{[`${or}-${Pt}`]:!!Pt}),L=Object.assign(Object.assign({},(0,S.Z)(Ht,["suffix","iconRender","visibilityToggle"])),{type:Qe?"text":"password",className:hr,prefixCls:cr,suffix:Cr});return Pt&&(L.size=Pt),Q.createElement(E.Z,Object.assign({ref:(0,_.sQ)(ot,Pe)},L))}),te=x(47472),G=x(92343),V=x(3113),j=x(19716),le=x(33234),he=function(D,ot){var ke={};for(var Ce in D)Object.prototype.hasOwnProperty.call(D,Ce)&&ot.indexOf(Ce)<0&&(ke[Ce]=D[Ce]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Ce=Object.getOwnPropertySymbols(D);Qe<Ce.length;Qe++)ot.indexOf(Ce[Qe])<0&&Object.prototype.propertyIsEnumerable.call(D,Ce[Qe])&&(ke[Ce[Qe]]=D[Ce[Qe]]);return ke},Be=Q.forwardRef((D,ot)=>{const{prefixCls:ke,inputPrefixCls:Ce,className:Qe,size:ve,suffix:Pe,enterButton:fe=!1,addonAfter:ye,loading:at,disabled:rt,onSearch:nt,onChange:ut,onCompositionStart:Pt,onCompositionEnd:Ht}=D,Ut=he(D,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:cr,direction:or}=Q.useContext(Oe.E_),Cr=Q.useRef(!1),hr=cr("input-search",ke),L=cr("input",Ce),{compactSize:it}=(0,le.ri)(hr,or),k=(0,j.Z)(dt=>{var At;return(At=ve!=null?ve:it)!==null&&At!==void 0?At:dt}),p=Q.useRef(null),d=dt=>{dt&&dt.target&&dt.type==="click"&&nt&&nt(dt.target.value,dt,{source:"clear"}),ut&&ut(dt)},w=dt=>{var At;document.activeElement===((At=p.current)===null||At===void 0?void 0:At.input)&&dt.preventDefault()},Y=dt=>{var At,Me;nt&&nt((Me=(At=p.current)===null||At===void 0?void 0:At.input)===null||Me===void 0?void 0:Me.value,dt,{source:"input"})},Ee=dt=>{Cr.current||at||Y(dt)},H=typeof fe=="boolean"?Q.createElement(te.Z,null):null,ne=`${hr}-button`;let Ge;const xe=fe||{},we=xe.type&&xe.type.__ANT_BUTTON===!0;we||xe.type==="button"?Ge=(0,G.Tm)(xe,Object.assign({onMouseDown:w,onClick:dt=>{var At,Me;(Me=(At=xe==null?void 0:xe.props)===null||At===void 0?void 0:At.onClick)===null||Me===void 0||Me.call(At,dt),Y(dt)},key:"enterButton"},we?{className:ne,size:k}:{})):Ge=Q.createElement(V.ZP,{className:ne,type:fe?"primary":void 0,size:k,disabled:rt,key:"enterButton",onMouseDown:w,onClick:Y,loading:at,icon:H},fe),ye&&(Ge=[Ge,(0,G.Tm)(ye,{key:"addonAfter"})]);const qe=de()(hr,{[`${hr}-rtl`]:or==="rtl",[`${hr}-${k}`]:!!k,[`${hr}-with-button`]:!!fe},Qe),Et=dt=>{Cr.current=!0,Pt==null||Pt(dt)},pe=dt=>{Cr.current=!1,Ht==null||Ht(dt)};return Q.createElement(E.Z,Object.assign({ref:(0,_.sQ)(p,ot),onPressEnter:Ee},Ut,{size:k,onCompositionStart:Et,onCompositionEnd:pe,prefixCls:L,addonAfter:Ge,suffix:Pe,onChange:d,className:qe,disabled:rt}))}),je=x(1643);const q=E.Z;q.Group=f,q.Search=Be,q.TextArea=je.Z,q.Password=se;var ce=q},9937:function(xn,Yt,x){"use strict";x.d(Yt,{M1:function(){return B},TM:function(){return G},Xy:function(){return f},bi:function(){return $},e5:function(){return te},ik:function(){return S},nz:function(){return ie},pU:function(){return W},s7:function(){return _},x0:function(){return h}});var ge=x(17313),de=x(74207),Q=x(37613),Oe=x(83116);const ie=V=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:V,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),W=V=>({borderColor:V.hoverBorderColor}),B=V=>({borderColor:V.activeBorderColor,boxShadow:V.activeShadow,outline:0}),f=V=>({color:V.colorTextDisabled,backgroundColor:V.colorBgContainerDisabled,borderColor:V.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},W((0,Q.TS)(V,{hoverBorderColor:V.colorBorder})))}),E=V=>{const{paddingBlockLG:j,fontSizeLG:le,lineHeightLG:he,borderRadiusLG:Ne,paddingInlineLG:Be}=V;return{padding:`${j}px ${Be}px`,fontSize:le,lineHeight:he,borderRadius:Ne}},h=V=>({padding:`${V.paddingBlockSM}px ${V.paddingInlineSM}px`,borderRadius:V.borderRadiusSM}),$=(V,j)=>{const{componentCls:le,colorError:he,colorWarning:Ne,errorActiveShadow:Be,warningActiveShadow:je,colorErrorBorderHover:q,colorWarningBorderHover:ce}=V;return{[`&-status-error:not(${j}-disabled):not(${j}-borderless)${j}`]:{borderColor:he,"&:hover":{borderColor:q},"&:focus, &-focused":Object.assign({},B((0,Q.TS)(V,{activeBorderColor:he,activeShadow:Be}))),[`${le}-prefix, ${le}-suffix`]:{color:he}},[`&-status-warning:not(${j}-disabled):not(${j}-borderless)${j}`]:{borderColor:Ne,"&:hover":{borderColor:ce},"&:focus, &-focused":Object.assign({},B((0,Q.TS)(V,{activeBorderColor:Ne,activeShadow:je}))),[`${le}-prefix, ${le}-suffix`]:{color:Ne}}}},S=V=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${V.paddingBlock}px ${V.paddingInline}px`,color:V.colorText,fontSize:V.fontSize,lineHeight:V.lineHeight,backgroundColor:V.colorBgContainer,backgroundImage:"none",borderWidth:V.lineWidth,borderStyle:V.lineType,borderColor:V.colorBorder,borderRadius:V.borderRadius,transition:`all ${V.motionDurationMid}`},ie(V.colorTextPlaceholder)),{"&:hover":Object.assign({},W(V)),"&:focus, &-focused":Object.assign({},B(V)),"&-disabled, &[disabled]":Object.assign({},f(V)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:V.controlHeight,lineHeight:V.lineHeight,verticalAlign:"bottom",transition:`all ${V.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},E(V)),"&-sm":Object.assign({},h(V)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),_=V=>{const{componentCls:j,antCls:le}=V;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:V.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${j}, &-lg > ${j}-group-addon`]:Object.assign({},E(V)),[`&-sm ${j}, &-sm > ${j}-group-addon`]:Object.assign({},h(V)),[`&-lg ${le}-select-single ${le}-select-selector`]:{height:V.controlHeightLG},[`&-sm ${le}-select-single ${le}-select-selector`]:{height:V.controlHeightSM},[`> ${j}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${j}-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 ${V.paddingInline}px`,color:V.colorText,fontWeight:"normal",fontSize:V.fontSize,textAlign:"center",backgroundColor:V.colorFillAlter,border:`${V.lineWidth}px ${V.lineType} ${V.colorBorder}`,borderRadius:V.borderRadius,transition:`all ${V.motionDurationSlow}`,lineHeight:1,[`${le}-select`]:{margin:`-${V.paddingBlock+1}px -${V.paddingInline}px`,[`&${le}-select-single:not(${le}-select-customize-input)`]:{[`${le}-select-selector`]:{backgroundColor:"inherit",border:`${V.lineWidth}px ${V.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${le}-select-selector`]:{color:V.colorPrimary}}},[`${le}-cascader-picker`]:{margin:`-9px -${V.paddingInline}px`,backgroundColor:"transparent",[`${le}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${j}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${j}-search-with-button &`]:{zIndex:0}}},[`> ${j}:first-child, ${j}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${le}-select ${le}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${j}-affix-wrapper`]:{[`&:not(:first-child) ${j}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${j}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${j}:last-child, ${j}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${le}-select ${le}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${j}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${j}-search &`]:{borderStartStartRadius:V.borderRadius,borderEndStartRadius:V.borderRadius}},[`&:not(:first-child), ${j}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${j}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,ge.dF)()),{[`${j}-group-addon, ${j}-group-wrap, > ${j}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:V.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${j}-affix-wrapper,
& > ${j}-number-affix-wrapper,
& > ${le}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-V.lineWidth,borderInlineEndWidth:V.lineWidth},[`${j}`]:{float:"none"},[`& > ${le}-select > ${le}-select-selector,
& > ${le}-select-auto-complete ${j},
& > ${le}-cascader-picker ${j},
& > ${j}-group-wrapper ${j}`]:{borderInlineEndWidth:V.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${le}-select-focused`]:{zIndex:1},[`& > ${le}-select > ${le}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${le}-select:first-child > ${le}-select-selector,
& > ${le}-select-auto-complete:first-child ${j},
& > ${le}-cascader-picker:first-child ${j}`]:{borderStartStartRadius:V.borderRadius,borderEndStartRadius:V.borderRadius},[`& > *:last-child,
& > ${le}-select:last-child > ${le}-select-selector,
& > ${le}-cascader-picker:last-child ${j},
& > ${le}-cascader-picker-focused:last-child ${j}`]:{borderInlineEndWidth:V.lineWidth,borderStartEndRadius:V.borderRadius,borderEndEndRadius:V.borderRadius},[`& > ${le}-select-auto-complete ${j}`]:{verticalAlign:"top"},[`${j}-group-wrapper + ${j}-group-wrapper`]:{marginInlineStart:-V.lineWidth,[`${j}-affix-wrapper`]:{borderRadius:0}},[`${j}-group-wrapper:not(:last-child)`]:{[`&${j}-search > ${j}-group`]:{[`& > ${j}-group-addon > ${j}-search-button`]:{borderRadius:0},[`& > ${j}`]:{borderStartStartRadius:V.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:V.borderRadius}}}})}},N=V=>{const{componentCls:j,controlHeightSM:le,lineWidth:he}=V,Be=(le-he*2-16)/2;return{[j]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ge.Wf)(V)),S(V)),$(V,j)),{'&[type="color"]':{height:V.controlHeight,[`&${j}-lg`]:{height:V.controlHeightLG},[`&${j}-sm`]:{height:le,paddingTop:Be,paddingBottom:Be}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},R=V=>{const{componentCls:j}=V;return{[`${j}-clear-icon`]:{margin:0,color:V.colorTextQuaternary,fontSize:V.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${V.motionDurationSlow}`,"&:hover":{color:V.colorTextTertiary},"&:active":{color:V.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${V.inputAffixPadding}px`}}}},I=V=>{const{componentCls:j,inputAffixPadding:le,colorTextDescription:he,motionDurationSlow:Ne,colorIcon:Be,colorIconHover:je,iconCls:q}=V;return{[`${j}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},S(V)),{display:"inline-flex",[`&:not(${j}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},W(V)),{zIndex:1,[`${j}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${j}[disabled]`]:{background:"transparent"}},[`> input${j}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${j}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:V.paddingXS}},"&-show-count-suffix":{color:he},"&-show-count-has-suffix":{marginInlineEnd:V.paddingXXS},"&-prefix":{marginInlineEnd:le},"&-suffix":{marginInlineStart:le}}}),R(V)),{[`${q}${j}-password-icon`]:{color:Be,cursor:"pointer",transition:`all ${Ne}`,"&:hover":{color:je}}}),$(V,`${j}-affix-wrapper`))}},J=V=>{const{componentCls:j,colorError:le,colorWarning:he,borderRadiusLG:Ne,borderRadiusSM:Be}=V;return{[`${j}-group`]:Object.assign(Object.assign(Object.assign({},(0,ge.Wf)(V)),_(V)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${j}-group-addon`]:{borderRadius:Ne,fontSize:V.fontSizeLG}},"&-sm":{[`${j}-group-addon`]:{borderRadius:Be}},"&-status-error":{[`${j}-group-addon`]:{color:le,borderColor:le}},"&-status-warning":{[`${j}-group-addon`]:{color:he,borderColor:he}},"&-disabled":{[`${j}-group-addon`]:Object.assign({},f(V))},[`&:not(${j}-compact-first-item):not(${j}-compact-last-item)${j}-compact-item`]:{[`${j}, ${j}-group-addon`]:{borderRadius:0}},[`&:not(${j}-compact-last-item)${j}-compact-first-item`]:{[`${j}, ${j}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${j}-compact-first-item)${j}-compact-last-item`]:{[`${j}, ${j}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},K=V=>{const{componentCls:j,antCls:le}=V,he=`${j}-search`;return{[he]:{[`${j}`]:{"&:hover, &:focus":{borderColor:V.colorPrimaryHover,[`+ ${j}-group-addon ${he}-button:not(${le}-btn-primary)`]:{borderInlineStartColor:V.colorPrimaryHover}}},[`${j}-affix-wrapper`]:{borderRadius:0},[`${j}-lg`]:{lineHeight:V.lineHeightLG-2e-4},[`> ${j}-group`]:{[`> ${j}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${he}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:V.borderRadius,borderEndEndRadius:V.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${he}-button:not(${le}-btn-primary)`]:{color:V.colorTextDescription,"&:hover":{color:V.colorPrimaryHover},"&:active":{color:V.colorPrimaryActive},[`&${le}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${he}-button`]:{height:V.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${he}-button`]:{height:V.controlHeightLG},[`&-small ${he}-button`]:{height:V.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${j}-compact-item`]:{[`&:not(${j}-compact-last-item)`]:{[`${j}-group-addon`]:{[`${j}-search-button`]:{marginInlineEnd:-V.lineWidth,borderRadius:0}}},[`&:not(${j}-compact-first-item)`]:{[`${j},${j}-affix-wrapper`]:{borderRadius:0}},[`> ${j}-group-addon ${j}-search-button,
> ${j},
${j}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${j}-affix-wrapper-focused`]:{zIndex:2}}}}},se=V=>{const{componentCls:j,paddingLG:le}=V,he=`${j}-textarea`;return{[he]:{position:"relative","&-show-count":{[`> ${j}`]:{height:"100%"},[`${j}-data-count`]:{position:"absolute",bottom:-V.fontSize*V.lineHeight,insetInlineEnd:0,color:V.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${j}`]:{paddingInlineEnd:le}},[`&-affix-wrapper${he}-has-feedback`]:{[`${j}`]:{paddingInlineEnd:le}},[`&-affix-wrapper${j}-affix-wrapper`]:{padding:0,[`> textarea${j}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${j}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${j}-clear-icon`]:{position:"absolute",insetInlineEnd:V.paddingXS,insetBlockStart:V.paddingXS},[`${he}-suffix`]:{position:"absolute",top:0,insetInlineEnd:V.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function te(V){return(0,Q.TS)(V,{inputAffixPadding:V.paddingXXS})}const G=V=>{const{controlHeight:j,fontSize:le,lineHeight:he,lineWidth:Ne,controlHeightSM:Be,controlHeightLG:je,fontSizeLG:q,lineHeightLG:ce,paddingSM:D,controlPaddingHorizontalSM:ot,controlPaddingHorizontal:ke,colorFillAlter:Ce,colorPrimaryHover:Qe,controlOutlineWidth:ve,controlOutline:Pe,colorErrorOutline:fe,colorWarningOutline:ye}=V;return{paddingBlock:Math.max(Math.round((j-le*he)/2*10)/10-Ne,3),paddingBlockSM:Math.max(Math.round((Be-le*he)/2*10)/10-Ne,0),paddingBlockLG:Math.ceil((je-q*ce)/2*10)/10-Ne,paddingInline:D-Ne,paddingInlineSM:ot-Ne,paddingInlineLG:ke-Ne,addonBg:Ce,activeBorderColor:Qe,hoverBorderColor:Qe,activeShadow:`0 0 0 ${ve}px ${Pe}`,errorActiveShadow:`0 0 0 ${ve}px ${fe}`,warningActiveShadow:`0 0 0 ${ve}px ${ye}`}};Yt.ZP=(0,Oe.Z)("Input",V=>{const j=(0,Q.TS)(V,te(V));return[N(j),se(j),I(j),J(j),K(j),(0,de.c)(j)]},G)},45818:function(xn,Yt,x){"use strict";x.d(Yt,{D:function(){return te},Z:function(){return j}});var ge=x(72308),de=x(59301),Q={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"},Oe=Q,ie=x(7657),W=function(he,Ne){return de.createElement(ie.Z,(0,ge.Z)({},he,{ref:Ne,icon:Oe}))},B=de.forwardRef(W),f=B,E=x(33853),h=x(38819),$=x(92310),S=x.n($),_=x(2738),R=le=>!isNaN(parseFloat(le))&&isFinite(le),I=x(36355),J=x(84966),K=function(le,he){var Ne={};for(var Be in le)Object.prototype.hasOwnProperty.call(le,Be)&&he.indexOf(Be)<0&&(Ne[Be]=le[Be]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Be=Object.getOwnPropertySymbols(le);je<Be.length;je++)he.indexOf(Be[je])<0&&Object.prototype.propertyIsEnumerable.call(le,Be[je])&&(Ne[Be[je]]=le[Be[je]]);return Ne};const se={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},te=de.createContext({}),G=(()=>{let le=0;return function(){let he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return le+=1,`${he}${le}`}})();var j=de.forwardRef((le,he)=>{const{prefixCls:Ne,className:Be,trigger:je,children:q,defaultCollapsed:ce=!1,theme:D="dark",style:ot={},collapsible:ke=!1,reverseArrow:Ce=!1,width:Qe=200,collapsedWidth:ve=80,zeroWidthTriggerStyle:Pe,breakpoint:fe,onCollapse:ye,onBreakpoint:at}=le,rt=K(le,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:nt}=(0,de.useContext)(J.Gs),[ut,Pt]=(0,de.useState)("collapsed"in le?le.collapsed:ce),[Ht,Ut]=(0,de.useState)(!1);(0,de.useEffect)(()=>{"collapsed"in le&&Pt(le.collapsed)},[le.collapsed]);const cr=(k,p)=>{"collapsed"in le||Pt(k),ye==null||ye(k,p)},or=(0,de.useRef)();or.current=k=>{Ut(k.matches),at==null||at(k.matches),ut!==k.matches&&cr(k.matches,"responsive")},(0,de.useEffect)(()=>{function k(d){return or.current(d)}let p;if(typeof window!="undefined"){const{matchMedia:d}=window;if(d&&fe&&fe in se){p=d(`(max-width: ${se[fe]})`);try{p.addEventListener("change",k)}catch(w){p.addListener(k)}k(p)}}return()=>{try{p==null||p.removeEventListener("change",k)}catch(d){p==null||p.removeListener(k)}}},[fe]),(0,de.useEffect)(()=>{const k=G("ant-sider-");return nt.addSider(k),()=>nt.removeSider(k)},[]);const Cr=()=>{cr(!ut,"clickTrigger")},{getPrefixCls:hr}=(0,de.useContext)(I.E_),L=()=>{const k=hr("layout-sider",Ne),p=(0,_.Z)(rt,["collapsed"]),d=ut?ve:Qe,w=R(d)?`${d}px`:String(d),Y=parseFloat(String(ve||0))===0?de.createElement("span",{onClick:Cr,className:S()(`${k}-zero-width-trigger`,`${k}-zero-width-trigger-${Ce?"right":"left"}`),style:Pe},je||de.createElement(f,null)):null,ne={expanded:Ce?de.createElement(h.Z,null):de.createElement(E.Z,null),collapsed:Ce?de.createElement(E.Z,null):de.createElement(h.Z,null)}[ut?"collapsed":"expanded"],Ge=je!==null?Y||de.createElement("div",{className:`${k}-trigger`,onClick:Cr,style:{width:w}},je||ne):null,xe=Object.assign(Object.assign({},ot),{flex:`0 0 ${w}`,maxWidth:w,minWidth:w,width:w}),we=S()(k,`${k}-${D}`,{[`${k}-collapsed`]:!!ut,[`${k}-has-trigger`]:ke&&je!==null&&!Y,[`${k}-below`]:!!Ht,[`${k}-zero-width`]:parseFloat(w)===0},Be);return de.createElement("aside",Object.assign({className:we},p,{style:xe,ref:he}),de.createElement("div",{className:`${k}-children`},q),ke||Ht&&Y?Ge:null)},it=de.useMemo(()=>({siderCollapsed:ut}),[ut]);return de.createElement(te.Provider,{value:it},L())})},84966:function(xn,Yt,x){"use strict";x.d(Yt,{VY:function(){return te},$_:function(){return se},h4:function(){return K},Gs:function(){return _},ZP:function(){return G}});var ge=x(80702),de=x(92310),Q=x.n(de),Oe=x(2738),ie=x(59301),W=x(36355),B=x(83116),E=V=>{const{componentCls:j,bodyBg:le,lightSiderBg:he,lightTriggerBg:Ne,lightTriggerColor:Be}=V;return{[`${j}-sider-light`]:{background:he,[`${j}-sider-trigger`]:{color:Be,background:Ne},[`${j}-sider-zero-width-trigger`]:{color:Be,background:Ne,border:`1px solid ${le}`,borderInlineStart:0}}}};const h=V=>{const{antCls:j,componentCls:le,colorText:he,triggerColor:Ne,footerBg:Be,triggerBg:je,headerHeight:q,headerPadding:ce,headerColor:D,footerPadding:ot,triggerHeight:ke,zeroTriggerHeight:Ce,zeroTriggerWidth:Qe,motionDurationMid:ve,motionDurationSlow:Pe,fontSize:fe,borderRadius:ye,bodyBg:at,headerBg:rt,siderBg:nt}=V;return{[le]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:at,"&, *":{boxSizing:"border-box"},[`&${le}-has-sider`]:{flexDirection:"row",[`> ${le}, > ${le}-content`]:{width:0}},[`${le}-header, &${le}-footer`]:{flex:"0 0 auto"},[`${le}-sider`]:{position:"relative",minWidth:0,background:nt,transition:`all ${ve}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${j}-menu${j}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:ke},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:ke,color:Ne,lineHeight:`${ke}px`,textAlign:"center",background:je,cursor:"pointer",transition:`all ${ve}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:q,insetInlineEnd:-Qe,zIndex:1,width:Qe,height:Ce,color:Ne,fontSize:V.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:nt,borderStartStartRadius:0,borderStartEndRadius:ye,borderEndEndRadius:ye,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Pe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Pe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Qe,borderStartStartRadius:ye,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:ye}}}}},E(V)),{"&-rtl":{direction:"rtl"}}),[`${le}-header`]:{height:q,padding:ce,color:D,lineHeight:`${q}px`,background:rt,[`${j}-menu`]:{lineHeight:"inherit"}},[`${le}-footer`]:{padding:ot,color:he,fontSize:fe,background:Be},[`${le}-content`]:{flex:"auto",minHeight:0}}};var $=(0,B.Z)("Layout",V=>[h(V)],V=>{const{colorBgLayout:j,controlHeight:le,controlHeightLG:he,colorText:Ne,controlHeightSM:Be,marginXXS:je,colorTextLightSolid:q,colorBgContainer:ce}=V,D=he*1.25;return{colorBgHeader:"#001529",colorBgBody:j,colorBgTrigger:"#002140",bodyBg:j,headerBg:"#001529",headerHeight:le*2,headerPadding:`0 ${D}px`,headerColor:Ne,footerPadding:`${Be}px ${D}px`,footerBg:j,siderBg:"#001529",triggerHeight:he+je*2,triggerBg:"#002140",triggerColor:q,zeroTriggerWidth:he,zeroTriggerHeight:he,lightSiderBg:ce,lightTriggerBg:ce,lightTriggerColor:Ne}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),S=function(V,j){var le={};for(var he in V)Object.prototype.hasOwnProperty.call(V,he)&&j.indexOf(he)<0&&(le[he]=V[he]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,he=Object.getOwnPropertySymbols(V);Ne<he.length;Ne++)j.indexOf(he[Ne])<0&&Object.prototype.propertyIsEnumerable.call(V,he[Ne])&&(le[he[Ne]]=V[he[Ne]]);return le};const _=ie.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function N(V){let{suffixCls:j,tagName:le,displayName:he}=V;return Ne=>ie.forwardRef((je,q)=>ie.createElement(Ne,Object.assign({ref:q,suffixCls:j,tagName:le},je)))}const R=ie.forwardRef((V,j)=>{const{prefixCls:le,suffixCls:he,className:Ne,tagName:Be}=V,je=S(V,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:q}=ie.useContext(W.E_),ce=q("layout",le),[D,ot]=$(ce),ke=he?`${ce}-${he}`:ce;return D(ie.createElement(Be,Object.assign({className:Q()(le||ke,Ne,ot),ref:j},je)))}),I=ie.forwardRef((V,j)=>{const{direction:le}=ie.useContext(W.E_),[he,Ne]=ie.useState([]),{prefixCls:Be,className:je,rootClassName:q,children:ce,hasSider:D,tagName:ot,style:ke}=V,Ce=S(V,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Qe=(0,Oe.Z)(Ce,["suffixCls"]),{getPrefixCls:ve,layout:Pe}=ie.useContext(W.E_),fe=ve("layout",Be),[ye,at]=$(fe),rt=Q()(fe,{[`${fe}-has-sider`]:typeof D=="boolean"?D:he.length>0,[`${fe}-rtl`]:le==="rtl"},Pe==null?void 0:Pe.className,je,q,at),nt=ie.useMemo(()=>({siderHook:{addSider:ut=>{Ne(Pt=>[].concat((0,ge.Z)(Pt),[ut]))},removeSider:ut=>{Ne(Pt=>Pt.filter(Ht=>Ht!==ut))}}}),[]);return ye(ie.createElement(_.Provider,{value:nt},ie.createElement(ot,Object.assign({ref:j,className:rt,style:Object.assign(Object.assign({},Pe==null?void 0:Pe.style),ke)},Qe),ce)))}),J=N({tagName:"div",displayName:"Layout"})(I),K=N({suffixCls:"header",tagName:"header",displayName:"Header"})(R),se=N({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(R),te=N({suffixCls:"content",tagName:"main",displayName:"Content"})(R);var G=J},40875:function(xn,Yt,x){"use strict";x.d(Yt,{J:function(){return W}});var ge=x(59301),de=x(33234),Q=x(70425),Oe=function(B,f){var E={};for(var h in B)Object.prototype.hasOwnProperty.call(B,h)&&f.indexOf(h)<0&&(E[h]=B[h]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,h=Object.getOwnPropertySymbols(B);$<h.length;$++)f.indexOf(h[$])<0&&Object.prototype.propertyIsEnumerable.call(B,h[$])&&(E[h[$]]=B[h[$]]);return E};const ie=ge.createContext(null),W=ge.forwardRef((B,f)=>{const{children:E}=B,h=Oe(B,["children"]),$=ge.useContext(ie),S=ge.useMemo(()=>Object.assign(Object.assign({},$),h),[$,h.prefixCls,h.mode,h.selectable]);return ge.createElement(ie.Provider,{value:S},ge.createElement(de.BR,null,(0,Q.supportNodeRef)(E)?ge.cloneElement(E,{ref:f}):E))});Yt.Z=ie},20834:function(xn,Yt,x){"use strict";x.d(Yt,{default:function(){return it}});var ge=x(15285),de=x(59301),Q=x(45818),Oe=x(92310),ie=x.n(Oe),W=x(36355),B=function(k,p){var d={};for(var w in k)Object.prototype.hasOwnProperty.call(k,w)&&p.indexOf(w)<0&&(d[w]=k[w]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,w=Object.getOwnPropertySymbols(k);Y<w.length;Y++)p.indexOf(w[Y])<0&&Object.prototype.propertyIsEnumerable.call(k,w[Y])&&(d[w[Y]]=k[w[Y]]);return d},E=k=>{const{prefixCls:p,className:d,dashed:w}=k,Y=B(k,["prefixCls","className","dashed"]),{getPrefixCls:Ee}=de.useContext(W.E_),H=Ee("menu",p),ne=ie()({[`${H}-item-divider-dashed`]:!!w},d);return de.createElement(ge.iz,Object.assign({className:ne},Y))},h=x(11592),$=x(2738),S=x(6848),_=x(92343),R=(0,de.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),J=k=>{var p;const{className:d,children:w,icon:Y,title:Ee,danger:H}=k,{prefixCls:ne,firstLevel:Ge,direction:xe,disableMenuItemTitleTooltip:we,inlineCollapsed:qe}=de.useContext(R),Et=gt=>{const jt=de.createElement("span",{className:`${ne}-title-content`},w);return(!Y||(0,_.l$)(w)&&w.type==="span")&&w&&gt&&Ge&&typeof w=="string"?de.createElement("div",{className:`${ne}-inline-collapsed-noicon`},w.charAt(0)):jt},{siderCollapsed:pe}=de.useContext(Q.D);let dt=Ee;typeof Ee=="undefined"?dt=Ge?w:"":Ee===!1&&(dt="");const At={title:dt};!pe&&!qe&&(At.title=null,At.open=!1);const Me=(0,h.Z)(w).length;let De=de.createElement(ge.ck,Object.assign({},(0,$.Z)(k,["title","icon","danger"]),{className:ie()({[`${ne}-item-danger`]:H,[`${ne}-item-only-child`]:(Y?Me+1:Me)===1},d),title:typeof Ee=="string"?Ee:void 0}),(0,_.Tm)(Y,{className:ie()((0,_.l$)(Y)?(p=Y.props)===null||p===void 0?void 0:p.className:"",`${ne}-item-icon`)}),Et(qe));return we||(De=de.createElement(S.Z,Object.assign({},At,{placement:xe==="rtl"?"left":"right",overlayClassName:`${ne}-inline-collapsed-tooltip`}),De)),De},se=k=>{var p;const{popupClassName:d,icon:w,title:Y,theme:Ee}=k,H=de.useContext(R),{prefixCls:ne,inlineCollapsed:Ge,theme:xe}=H,we=(0,ge.Xl)();let qe;if(!w)qe=Ge&&!we.length&&Y&&typeof Y=="string"?de.createElement("div",{className:`${ne}-inline-collapsed-noicon`},Y.charAt(0)):de.createElement("span",{className:`${ne}-title-content`},Y);else{const pe=(0,_.l$)(Y)&&Y.type==="span";qe=de.createElement(de.Fragment,null,(0,_.Tm)(w,{className:ie()((0,_.l$)(w)?(p=w.props)===null||p===void 0?void 0:p.className:"",`${ne}-item-icon`)}),pe?Y:de.createElement("span",{className:`${ne}-title-content`},Y))}const Et=de.useMemo(()=>Object.assign(Object.assign({},H),{firstLevel:!1}),[H]);return de.createElement(R.Provider,{value:Et},de.createElement(ge.Wd,Object.assign({},(0,$.Z)(k,["icon"]),{title:qe,popupClassName:ie()(ne,d,`${ne}-${Ee||xe}`)})))},te=x(18785),G=x(70425),V=x(62892),j=x(40875),le=function(k,p){var d={};for(var w in k)Object.prototype.hasOwnProperty.call(k,w)&&p.indexOf(w)<0&&(d[w]=k[w]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,w=Object.getOwnPropertySymbols(k);Y<w.length;Y++)p.indexOf(w[Y])<0&&Object.prototype.propertyIsEnumerable.call(k,w[Y])&&(d[w[Y]]=k[w[Y]]);return d};function he(k){return(k||[]).map((p,d)=>{if(p&&typeof p=="object"){const w=p,{label:Y,children:Ee,key:H,type:ne}=w,Ge=le(w,["label","children","key","type"]),xe=H!=null?H:`tmp-${d}`;return Ee||ne==="group"?ne==="group"?de.createElement(ge.BW,Object.assign({key:xe},Ge,{title:Y}),he(Ee)):de.createElement(se,Object.assign({key:xe},Ge,{title:Y}),he(Ee)):ne==="divider"?de.createElement(E,Object.assign({key:xe},Ge)):de.createElement(J,Object.assign({key:xe},Ge),Y)}return null}).filter(p=>p)}function Ne(k){return de.useMemo(()=>k&&he(k),[k])}var Be=x(64993),je=x(17313),q=x(8378),ce=x(13826),D=x(29878),ot=x(83116),ke=x(37613),Qe=k=>{const{componentCls:p,motionDurationSlow:d,horizontalLineHeight:w,colorSplit:Y,lineWidth:Ee,lineType:H,itemPaddingInline:ne}=k;return{[`${p}-horizontal`]:{lineHeight:w,border:0,borderBottom:`${Ee}px ${H} ${Y}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${p}-item, ${p}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ne},[`> ${p}-item:hover,
> ${p}-item-active,
> ${p}-submenu ${p}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${p}-item, ${p}-submenu-title`]:{transition:[`border-color ${d}`,`background ${d}`].join(",")},[`${p}-submenu-arrow`]:{display:"none"}}}},Pe=k=>{let{componentCls:p,menuArrowOffset:d}=k;return{[`${p}-rtl`]:{direction:"rtl"},[`${p}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${p}-rtl${p}-vertical,
${p}-submenu-rtl ${p}-vertical`]:{[`${p}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${d})`},"&::after":{transform:`rotate(45deg) translateY(${d})`}}}}};const fe=k=>Object.assign({},(0,je.oN)(k));var at=(k,p)=>{const{componentCls:d,itemColor:w,itemSelectedColor:Y,groupTitleColor:Ee,itemBg:H,subMenuItemBg:ne,itemSelectedBg:Ge,activeBarHeight:xe,activeBarWidth:we,activeBarBorderWidth:qe,motionDurationSlow:Et,motionEaseInOut:pe,motionEaseOut:dt,itemPaddingInline:At,motionDurationMid:Me,itemHoverColor:De,lineType:gt,colorSplit:jt,itemDisabledColor:Tt,dangerItemColor:ir,dangerItemHoverColor:Fr,dangerItemSelectedColor:Pr,dangerItemActiveBg:Hr,dangerItemSelectedBg:Rr,itemHoverBg:sr,itemActiveBg:lr,menuSubMenuBg:$r,horizontalItemSelectedColor:ln,horizontalItemSelectedBg:En,horizontalItemBorderRadius:cn,horizontalItemHoverBg:In,popupBg:bi}=k;return{[`${d}-${p}, ${d}-${p} > ${d}`]:{color:w,background:H,[`&${d}-root:focus-visible`]:Object.assign({},fe(k)),[`${d}-item-group-title`]:{color:Ee},[`${d}-submenu-selected`]:{[`> ${d}-submenu-title`]:{color:Y}},[`${d}-item-disabled, ${d}-submenu-disabled`]:{color:`${Tt} !important`},[`${d}-item:not(${d}-item-selected):not(${d}-submenu-selected)`]:{[`&:hover, > ${d}-submenu-title:hover`]:{color:De}},[`&:not(${d}-horizontal)`]:{[`${d}-item:not(${d}-item-selected)`]:{"&:hover":{backgroundColor:sr},"&:active":{backgroundColor:lr}},[`${d}-submenu-title`]:{"&:hover":{backgroundColor:sr},"&:active":{backgroundColor:lr}}},[`${d}-item-danger`]:{color:ir,[`&${d}-item:hover`]:{[`&:not(${d}-item-selected):not(${d}-submenu-selected)`]:{color:Fr}},[`&${d}-item:active`]:{background:Hr}},[`${d}-item a`]:{"&, &:hover":{color:"inherit"}},[`${d}-item-selected`]:{color:Y,[`&${d}-item-danger`]:{color:Pr},"a, a:hover":{color:"inherit"}},[`& ${d}-item-selected`]:{backgroundColor:Ge,[`&${d}-item-danger`]:{backgroundColor:Rr}},[`${d}-item, ${d}-submenu-title`]:{[`&:not(${d}-item-disabled):focus-visible`]:Object.assign({},fe(k))},[`&${d}-submenu > ${d}`]:{backgroundColor:$r},[`&${d}-popup > ${d}`]:{backgroundColor:bi},[`&${d}-horizontal`]:Object.assign(Object.assign({},p==="dark"?{borderBottom:0}:{}),{[`> ${d}-item, > ${d}-submenu`]:{top:qe,marginTop:-qe,marginBottom:0,borderRadius:cn,"&::after":{position:"absolute",insetInline:At,bottom:0,borderBottom:`${xe}px solid transparent`,transition:`border-color ${Et} ${pe}`,content:'""'},"&:hover, &-active, &-open":{background:In,"&::after":{borderBottomWidth:xe,borderBottomColor:ln}},"&-selected":{color:ln,backgroundColor:En,"&:hover":{backgroundColor:En},"&::after":{borderBottomWidth:xe,borderBottomColor:ln}}}}),[`&${d}-root`]:{[`&${d}-inline, &${d}-vertical`]:{borderInlineEnd:`${qe}px ${gt} ${jt}`}},[`&${d}-inline`]:{[`${d}-sub${d}-inline`]:{background:ne},[`${d}-item, ${d}-submenu-title`]:qe&&we?{width:`calc(100% + ${qe}px)`}:{},[`${d}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${we}px solid ${Y}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Me} ${dt}`,`opacity ${Me} ${dt}`].join(","),content:'""'},[`&${d}-item-danger`]:{"&::after":{borderInlineEndColor:Pr}}},[`${d}-selected, ${d}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Me} ${pe}`,`opacity ${Me} ${pe}`].join(",")}}}}}};const rt=k=>{const{componentCls:p,itemHeight:d,itemMarginInline:w,padding:Y,menuArrowSize:Ee,marginXS:H,itemMarginBlock:ne}=k,Ge=Y+Ee+H;return{[`${p}-item`]:{position:"relative",overflow:"hidden"},[`${p}-item, ${p}-submenu-title`]:{height:d,lineHeight:`${d}px`,paddingInline:Y,overflow:"hidden",textOverflow:"ellipsis",marginInline:w,marginBlock:ne,width:`calc(100% - ${w*2}px)`},[`> ${p}-item,
> ${p}-submenu > ${p}-submenu-title`]:{height:d,lineHeight:`${d}px`},[`${p}-item-group-list ${p}-submenu-title,
${p}-submenu-title`]:{paddingInlineEnd:Ge}}};var ut=k=>{const{componentCls:p,iconCls:d,itemHeight:w,colorTextLightSolid:Y,dropdownWidth:Ee,controlHeightLG:H,motionDurationMid:ne,motionEaseOut:Ge,paddingXL:xe,itemMarginInline:we,fontSizeLG:qe,motionDurationSlow:Et,paddingXS:pe,boxShadowSecondary:dt,collapsedWidth:At,collapsedIconSize:Me}=k,De={height:w,lineHeight:`${w}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[p]:{"&-inline, &-vertical":Object.assign({[`&${p}-root`]:{boxShadow:"none"}},rt(k))},[`${p}-submenu-popup`]:{[`${p}-vertical`]:Object.assign(Object.assign({},rt(k)),{boxShadow:dt})}},{[`${p}-submenu-popup ${p}-vertical${p}-sub`]:{minWidth:Ee,maxHeight:`calc(100vh - ${H*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${p}-inline`]:{width:"100%",[`&${p}-root`]:{[`${p}-item, ${p}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Et}`,`background ${Et}`,`padding ${ne} ${Ge}`].join(","),[`> ${p}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${p}-sub${p}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${p}-submenu > ${p}-submenu-title`]:De,[`& ${p}-item-group-title`]:{paddingInlineStart:xe}},[`${p}-item`]:De}},{[`${p}-inline-collapsed`]:{width:At,[`&${p}-root`]:{[`${p}-item, ${p}-submenu ${p}-submenu-title`]:{[`> ${p}-inline-collapsed-noicon`]:{fontSize:qe,textAlign:"center"}}},[`> ${p}-item,
> ${p}-item-group > ${p}-item-group-list > ${p}-item,
> ${p}-item-group > ${p}-item-group-list > ${p}-submenu > ${p}-submenu-title,
> ${p}-submenu > ${p}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${qe/2}px - ${we}px)`,textOverflow:"clip",[`
${p}-submenu-arrow,
${p}-submenu-expand-icon
`]:{opacity:0},[`${p}-item-icon, ${d}`]:{margin:0,fontSize:Me,lineHeight:`${w}px`,"+ span":{display:"inline-block",opacity:0}}},[`${p}-item-icon, ${d}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${p}-item-icon, ${d}`]:{display:"none"},"a, a:hover":{color:Y}},[`${p}-item-group-title`]:Object.assign(Object.assign({},je.vS),{paddingInline:pe})}}]};const Pt=k=>{const{componentCls:p,motionDurationSlow:d,motionDurationMid:w,motionEaseInOut:Y,motionEaseOut:Ee,iconCls:H,iconSize:ne,iconMarginInlineEnd:Ge}=k;return{[`${p}-item, ${p}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${d}`,`background ${d}`,`padding ${d} ${Y}`].join(","),[`${p}-item-icon, ${H}`]:{minWidth:ne,fontSize:ne,transition:[`font-size ${w} ${Ee}`,`margin ${d} ${Y}`,`color ${d}`].join(","),"+ span":{marginInlineStart:Ge,opacity:1,transition:[`opacity ${d} ${Y}`,`margin ${d}`,`color ${d}`].join(",")}},[`${p}-item-icon`]:Object.assign({},(0,je.Ro)()),[`&${p}-item-only-child`]:{[`> ${H}, > ${p}-item-icon`]:{marginInlineEnd:0}}},[`${p}-item-disabled, ${p}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${p}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ht=k=>{const{componentCls:p,motionDurationSlow:d,motionEaseInOut:w,borderRadius:Y,menuArrowSize:Ee,menuArrowOffset:H}=k;return{[`${p}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:k.margin,width:Ee,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${d} ${w}, opacity ${d}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ee*.6,height:Ee*.15,backgroundColor:"currentcolor",borderRadius:Y,transition:[`background ${d} ${w}`,`transform ${d} ${w}`,`top ${d} ${w}`,`color ${d} ${w}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${H})`},"&::after":{transform:`rotate(-45deg) translateY(${H})`}}}}},Ut=k=>{const{antCls:p,componentCls:d,fontSize:w,motionDurationSlow:Y,motionDurationMid:Ee,motionEaseInOut:H,paddingXS:ne,padding:Ge,colorSplit:xe,lineWidth:we,zIndexPopup:qe,borderRadiusLG:Et,subMenuItemBorderRadius:pe,menuArrowSize:dt,menuArrowOffset:At,lineType:Me,menuPanelMaskInset:De,groupTitleLineHeight:gt,groupTitleFontSize:jt}=k;return[{"":{[`${d}`]:Object.assign(Object.assign({},(0,je.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,je.Wf)(k)),(0,je.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:w,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Y} 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:k.itemBorderRadius},[`${d}-item-group-title`]:{padding:`${ne}px ${Ge}px`,fontSize:jt,lineHeight:gt,transition:`all ${Y}`},[`&-horizontal ${d}-submenu`]:{transition:[`border-color ${Y} ${H}`,`background ${Y} ${H}`].join(",")},[`${d}-submenu, ${d}-submenu-inline`]:{transition:[`border-color ${Y} ${H}`,`background ${Y} ${H}`,`padding ${Ee} ${H}`].join(",")},[`${d}-submenu ${d}-sub`]:{cursor:"initial",transition:[`background ${Y} ${H}`,`padding ${Y} ${H}`].join(",")},[`${d}-title-content`]:{transition:`color ${Y}`},[`${d}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${d}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:xe,borderStyle:Me,borderWidth:0,borderTopWidth:we,marginBlock:we,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Pt(k)),{[`${d}-item-group`]:{[`${d}-item-group-list`]:{margin:0,padding:0,[`${d}-item, ${d}-submenu-title`]:{paddingInline:`${w*2}px ${Ge}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:qe,borderRadius:Et,boxShadow:"none",transformOrigin:"0 0",[`&${d}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${De}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:De},"\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:k.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:k.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:k.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:k.paddingXS},[`> ${d}`]:Object.assign(Object.assign(Object.assign({borderRadius:Et},Pt(k)),Ht(k)),{[`${d}-item, ${d}-submenu > ${d}-submenu-title`]:{borderRadius:pe},[`${d}-submenu-title::after`]:{transition:`transform ${Y} ${H}`}})}}),Ht(k)),{[`&-inline-collapsed ${d}-submenu-arrow,
&-inline ${d}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${At})`},"&::after":{transform:`rotate(45deg) translateX(-${At})`}},[`${d}-submenu-open${d}-submenu-inline > ${d}-submenu-title > ${d}-submenu-arrow`]:{transform:`translateY(-${dt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${At})`},"&::before":{transform:`rotate(45deg) translateX(${At})`}}})},{[`${p}-layout-header`]:{[d]:{lineHeight:"inherit"}}}]};var cr=(k,p)=>(0,ot.Z)("Menu",w=>{if(p===!1)return[];const{colorBgElevated:Y,colorPrimary:Ee,colorTextLightSolid:H,controlHeightLG:ne,fontSize:Ge,darkItemColor:xe,darkDangerItemColor:we,darkItemBg:qe,darkSubMenuItemBg:Et,darkItemSelectedColor:pe,darkItemSelectedBg:dt,darkDangerItemSelectedBg:At,darkItemHoverBg:Me,darkGroupTitleColor:De,darkItemHoverColor:gt,darkItemDisabledColor:jt,darkDangerItemHoverColor:Tt,darkDangerItemSelectedColor:ir,darkDangerItemActiveBg:Fr}=w,Pr=Ge/7*5,Hr=(0,ke.TS)(w,{menuArrowSize:Pr,menuHorizontalHeight:ne*1.15,menuArrowOffset:`${Pr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Y}),Rr=(0,ke.TS)(Hr,{itemColor:xe,itemHoverColor:gt,groupTitleColor:De,itemSelectedColor:pe,itemBg:qe,popupBg:qe,subMenuItemBg:Et,itemActiveBg:"transparent",itemSelectedBg:dt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Me,itemDisabledColor:jt,dangerItemColor:we,dangerItemHoverColor:Tt,dangerItemSelectedColor:ir,dangerItemActiveBg:Fr,dangerItemSelectedBg:At,menuSubMenuBg:Et,horizontalItemSelectedColor:H,horizontalItemSelectedBg:Ee});return[Ut(Hr),Qe(Hr),ut(Hr),at(Hr,"light"),at(Rr,"dark"),Pe(Hr),(0,q.Z)(Hr),(0,ce.oN)(Hr,"slide-up"),(0,ce.oN)(Hr,"slide-down"),(0,D._y)(Hr,"zoom-big")]},w=>{const{colorPrimary:Y,colorError:Ee,colorTextDisabled:H,colorErrorBg:ne,colorText:Ge,colorTextDescription:xe,colorBgContainer:we,colorFillAlter:qe,colorFillContent:Et,lineWidth:pe,lineWidthBold:dt,controlItemBgActive:At,colorBgTextHover:Me,controlHeightLG:De,lineHeight:gt,colorBgElevated:jt,marginXXS:Tt,padding:ir,fontSize:Fr,controlHeightSM:Pr,fontSizeLG:Hr,colorTextLightSolid:Rr,colorErrorHover:sr}=w,lr=new Be.C(Rr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:w.zIndexPopupBase+50,radiusItem:w.borderRadiusLG,itemBorderRadius:w.borderRadiusLG,radiusSubMenuItem:w.borderRadiusSM,subMenuItemBorderRadius:w.borderRadiusSM,colorItemText:Ge,itemColor:Ge,colorItemTextHover:Ge,itemHoverColor:Ge,colorItemTextHoverHorizontal:Y,horizontalItemHoverColor:Y,colorGroupTitle:xe,groupTitleColor:xe,colorItemTextSelected:Y,itemSelectedColor:Y,colorItemTextSelectedHorizontal:Y,horizontalItemSelectedColor:Y,colorItemBg:we,itemBg:we,colorItemBgHover:Me,itemHoverBg:Me,colorItemBgActive:Et,itemActiveBg:At,colorSubItemBg:qe,subMenuItemBg:qe,colorItemBgSelected:At,itemSelectedBg:At,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:dt,activeBarHeight:dt,colorActiveBarBorderSize:pe,activeBarBorderWidth:pe,colorItemTextDisabled:H,itemDisabledColor:H,colorDangerItemText:Ee,dangerItemColor:Ee,colorDangerItemTextHover:Ee,dangerItemHoverColor:Ee,colorDangerItemTextSelected:Ee,dangerItemSelectedColor:Ee,colorDangerItemBgActive:ne,dangerItemActiveBg:ne,colorDangerItemBgSelected:ne,dangerItemSelectedBg:ne,itemMarginInline:w.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:De,groupTitleLineHeight:gt,collapsedWidth:De*2,popupBg:jt,itemMarginBlock:Tt,itemPaddingInline:ir,horizontalLineHeight:`${De*1.15}px`,iconSize:Fr,iconMarginInlineEnd:Pr-Fr,collapsedIconSize:Hr,groupTitleFontSize:Fr,darkItemDisabledColor:new Be.C(Rr).setAlpha(.25).toRgbString(),darkItemColor:lr,darkDangerItemColor:Ee,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Rr,darkItemSelectedBg:Y,darkDangerItemSelectedBg:Ee,darkItemHoverBg:"transparent",darkGroupTitleColor:lr,darkItemHoverColor:Rr,darkDangerItemHoverColor:sr,darkDangerItemSelectedColor:Rr,darkDangerItemActiveBg:Ee}},{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"]]})(k),or=function(k,p){var d={};for(var w in k)Object.prototype.hasOwnProperty.call(k,w)&&p.indexOf(w)<0&&(d[w]=k[w]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,w=Object.getOwnPropertySymbols(k);Y<w.length;Y++)p.indexOf(w[Y])<0&&Object.prototype.propertyIsEnumerable.call(k,w[Y])&&(d[w[Y]]=k[w[Y]]);return d},hr=(0,de.forwardRef)((k,p)=>{var d,w;const Y=de.useContext(j.Z),Ee=Y||{},{getPrefixCls:H,getPopupContainer:ne,direction:Ge,menu:xe}=de.useContext(W.E_),we=H(),{prefixCls:qe,className:Et,style:pe,theme:dt="light",expandIcon:At,_internalDisableMenuItemTitleTooltip:Me,inlineCollapsed:De,siderCollapsed:gt,items:jt,children:Tt,rootClassName:ir,mode:Fr,selectable:Pr,onClick:Hr,overflowedIndicatorPopupClassName:Rr}=k,sr=or(k,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),lr=(0,$.Z)(sr,["collapsedWidth"]),$r=Ne(jt)||Tt;(d=Ee.validator)===null||d===void 0||d.call(Ee,{mode:Fr});const ln=(0,G.useEvent)(function(){var Qi;Hr==null||Hr.apply(void 0,arguments),(Qi=Ee.onClick)===null||Qi===void 0||Qi.call(Ee)}),En=Ee.mode||Fr,cn=Pr!=null?Pr:Ee.selectable,In=de.useMemo(()=>gt!==void 0?gt:De,[De,gt]),bi={horizontal:{motionName:`${we}-slide-up`},inline:(0,V.Z)(we),other:{motionName:`${we}-zoom-big`}},Ir=H("menu",qe||Ee.prefixCls),[qn,wi]=cr(Ir,!Y),$n=ie()(`${Ir}-${dt}`,xe==null?void 0:xe.className,Et);let Ni;if(typeof At=="function")Ni=At;else if(At===null||At===!1)Ni=null;else if(Ee.expandIcon===null||Ee.expandIcon===!1)Ni=null;else{const Qi=At!=null?At:Ee.expandIcon;Ni=(0,_.Tm)(Qi,{className:ie()(`${Ir}-submenu-expand-icon`,(0,_.l$)(Qi)?(w=Qi.props)===null||w===void 0?void 0:w.className:"")})}const gi=de.useMemo(()=>({prefixCls:Ir,inlineCollapsed:In||!1,direction:Ge,firstLevel:!0,theme:dt,mode:En,disableMenuItemTitleTooltip:Me}),[Ir,In,Ge,Me,dt]);return qn(de.createElement(j.Z.Provider,{value:null},de.createElement(R.Provider,{value:gi},de.createElement(ge.ZP,Object.assign({getPopupContainer:ne,overflowedIndicator:de.createElement(te.Z,null),overflowedIndicatorPopupClassName:ie()(Ir,`${Ir}-${dt}`,Rr),mode:En,selectable:cn,onClick:ln},lr,{inlineCollapsed:In,style:Object.assign(Object.assign({},xe==null?void 0:xe.style),pe),className:$n,prefixCls:Ir,direction:Ge,defaultMotions:bi,expandIcon:Ni,ref:p,rootClassName:ie()(ir,wi)}),$r))))});const L=(0,de.forwardRef)((k,p)=>{const d=(0,de.useRef)(null),w=de.useContext(Q.D);return(0,de.useImperativeHandle)(p,()=>({menu:d.current,focus:Y=>{var Ee;(Ee=d.current)===null||Ee===void 0||Ee.focus(Y)}})),de.createElement(hr,Object.assign({ref:d},k,w))});L.Item=J,L.SubMenu=se,L.Divider=E,L.ItemGroup=ge.BW;var it=L},58421:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return Ee}});var ge=x(72308),de=x(59301),Q={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"},Oe=Q,ie=x(7657),W=function(ne,Ge){return de.createElement(ie.Z,(0,ge.Z)({},ne,{ref:Ge,icon:Oe}))},B=de.forwardRef(W),f=B,E=x(49198),h=x(33853),$=x(38819),S=x(92310),_=x.n(S),N=x(49618),R=x(77321),I=x(96949),J=x(55090),K=x(77205),se=x(38793),te=x(26112),G={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},V=G,j=x(91735),le=function(H){(0,K.Z)(Ge,H);var ne=(0,se.Z)(Ge);function Ge(){var xe;(0,I.Z)(this,Ge);for(var we=arguments.length,qe=new Array(we),Et=0;Et<we;Et++)qe[Et]=arguments[Et];return xe=ne.call.apply(ne,[this].concat(qe)),xe.state={goInputText:""},xe.getValidValue=function(){var pe=xe.state.goInputText;return!pe||Number.isNaN(pe)?void 0:Number(pe)},xe.buildOptionText=function(pe){return"".concat(pe," ").concat(xe.props.locale.items_per_page)},xe.changeSize=function(pe){xe.props.changeSize(Number(pe))},xe.handleChange=function(pe){xe.setState({goInputText:pe.target.value})},xe.handleBlur=function(pe){var dt=xe.props,At=dt.goButton,Me=dt.quickGo,De=dt.rootPrefixCls,gt=xe.state.goInputText;At||gt===""||(xe.setState({goInputText:""}),!(pe.relatedTarget&&(pe.relatedTarget.className.indexOf("".concat(De,"-item-link"))>=0||pe.relatedTarget.className.indexOf("".concat(De,"-item"))>=0))&&Me(xe.getValidValue()))},xe.go=function(pe){var dt=xe.state.goInputText;dt!==""&&(pe.keyCode===V.ENTER||pe.type==="click")&&(xe.setState({goInputText:""}),xe.props.quickGo(xe.getValidValue()))},xe}return(0,J.Z)(Ge,[{key:"getPageSizeOptions",value:function(){var we=this.props,qe=we.pageSize,Et=we.pageSizeOptions;return Et.some(function(pe){return pe.toString()===qe.toString()})?Et:Et.concat([qe.toString()]).sort(function(pe,dt){var At=Number.isNaN(Number(pe))?0:Number(pe),Me=Number.isNaN(Number(dt))?0:Number(dt);return At-Me})}},{key:"render",value:function(){var we=this,qe=this.props,Et=qe.pageSize,pe=qe.locale,dt=qe.rootPrefixCls,At=qe.changeSize,Me=qe.quickGo,De=qe.goButton,gt=qe.selectComponentClass,jt=qe.buildOptionText,Tt=qe.selectPrefixCls,ir=qe.disabled,Fr=this.state.goInputText,Pr="".concat(dt,"-options"),Hr=gt,Rr=null,sr=null,lr=null;if(!At&&!Me)return null;var $r=this.getPageSizeOptions();if(At&&Hr){var ln=$r.map(function(En,cn){return de.createElement(Hr.Option,{key:cn,value:En.toString()},(jt||we.buildOptionText)(En))});Rr=de.createElement(Hr,{disabled:ir,prefixCls:Tt,showSearch:!1,className:"".concat(Pr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Et||$r[0]).toString(),onChange:this.changeSize,getPopupContainer:function(cn){return cn.parentNode},"aria-label":pe.page_size,defaultOpen:!1},ln)}return Me&&(De&&(lr=typeof De=="boolean"?de.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:ir,className:"".concat(Pr,"-quick-jumper-button")},pe.jump_to_confirm):de.createElement("span",{onClick:this.go,onKeyUp:this.go},De)),sr=de.createElement("div",{className:"".concat(Pr,"-quick-jumper")},pe.jump_to,de.createElement("input",{disabled:ir,type:"text",value:Fr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":pe.page}),pe.page,lr)),de.createElement("li",{className:"".concat(Pr)},Rr,sr)}}]),Ge}(de.Component);le.defaultProps={pageSizeOptions:["10","20","50","100"]};var he=le,Ne=function(ne){var Ge,xe=ne.rootPrefixCls,we=ne.page,qe=ne.active,Et=ne.className,pe=ne.showTitle,dt=ne.onClick,At=ne.onKeyPress,Me=ne.itemRender,De="".concat(xe,"-item"),gt=_()(De,"".concat(De,"-").concat(we),(Ge={},(0,N.Z)(Ge,"".concat(De,"-active"),qe),(0,N.Z)(Ge,"".concat(De,"-disabled"),!we),(0,N.Z)(Ge,ne.className,Et),Ge)),jt=function(){dt(we)},Tt=function(Pr){At(Pr,dt,we)},ir=Me(we,"page",de.createElement("a",{rel:"nofollow"},we));return ir?de.createElement("li",{title:pe?we.toString():null,className:gt,onClick:jt,onKeyPress:Tt,tabIndex:0},ir):null},Be=Ne;function je(){}function q(H){var ne=Number(H);return typeof ne=="number"&&!Number.isNaN(ne)&&isFinite(ne)&&Math.floor(ne)===ne}var ce=function(ne,Ge,xe){return xe};function D(H,ne,Ge){var xe=typeof H=="undefined"?ne.pageSize:H;return Math.floor((Ge.total-1)/xe)+1}var ot=function(H){(0,K.Z)(Ge,H);var ne=(0,se.Z)(Ge);function Ge(xe){var we;(0,I.Z)(this,Ge),we=ne.call(this,xe),we.paginationNode=de.createRef(),we.getJumpPrevPage=function(){return Math.max(1,we.state.current-(we.props.showLessItems?3:5))},we.getJumpNextPage=function(){return Math.min(D(void 0,we.state,we.props),we.state.current+(we.props.showLessItems?3:5))},we.getItemIcon=function(At,Me){var De=we.props.prefixCls,gt=At||de.createElement("button",{type:"button","aria-label":Me,className:"".concat(De,"-item-link")});return typeof At=="function"&&(gt=de.createElement(At,(0,R.Z)({},we.props))),gt},we.isValid=function(At){var Me=we.props.total;return q(At)&&At!==we.state.current&&q(Me)&&Me>0},we.shouldDisplayQuickJumper=function(){var At=we.props,Me=At.showQuickJumper,De=At.total,gt=we.state.pageSize;return De<=gt?!1:Me},we.handleKeyDown=function(At){(At.keyCode===V.ARROW_UP||At.keyCode===V.ARROW_DOWN)&&At.preventDefault()},we.handleKeyUp=function(At){var Me=we.getValidValue(At),De=we.state.currentInputValue;Me!==De&&we.setState({currentInputValue:Me}),At.keyCode===V.ENTER?we.handleChange(Me):At.keyCode===V.ARROW_UP?we.handleChange(Me-1):At.keyCode===V.ARROW_DOWN&&we.handleChange(Me+1)},we.handleBlur=function(At){var Me=we.getValidValue(At);we.handleChange(Me)},we.changePageSize=function(At){var Me=we.state.current,De=D(At,we.state,we.props);Me=Me>De?De:Me,De===0&&(Me=we.state.current),typeof At=="number"&&("pageSize"in we.props||we.setState({pageSize:At}),"current"in we.props||we.setState({current:Me,currentInputValue:Me})),we.props.onShowSizeChange(Me,At),"onChange"in we.props&&we.props.onChange&&we.props.onChange(Me,At)},we.handleChange=function(At){var Me=we.props,De=Me.disabled,gt=Me.onChange,jt=we.state,Tt=jt.pageSize,ir=jt.current,Fr=jt.currentInputValue;if(we.isValid(At)&&!De){var Pr=D(void 0,we.state,we.props),Hr=At;return At>Pr?Hr=Pr:At<1&&(Hr=1),"current"in we.props||we.setState({current:Hr}),Hr!==Fr&&we.setState({currentInputValue:Hr}),gt(Hr,Tt),Hr}return ir},we.prev=function(){we.hasPrev()&&we.handleChange(we.state.current-1)},we.next=function(){we.hasNext()&&we.handleChange(we.state.current+1)},we.jumpPrev=function(){we.handleChange(we.getJumpPrevPage())},we.jumpNext=function(){we.handleChange(we.getJumpNextPage())},we.hasPrev=function(){return we.state.current>1},we.hasNext=function(){return we.state.current<D(void 0,we.state,we.props)},we.runIfEnter=function(At,Me){if(At.key==="Enter"||At.charCode===13){for(var De=arguments.length,gt=new Array(De>2?De-2:0),jt=2;jt<De;jt++)gt[jt-2]=arguments[jt];Me.apply(void 0,gt)}},we.runIfEnterPrev=function(At){we.runIfEnter(At,we.prev)},we.runIfEnterNext=function(At){we.runIfEnter(At,we.next)},we.runIfEnterJumpPrev=function(At){we.runIfEnter(At,we.jumpPrev)},we.runIfEnterJumpNext=function(At){we.runIfEnter(At,we.jumpNext)},we.handleGoTO=function(At){(At.keyCode===V.ENTER||At.type==="click")&&we.handleChange(we.state.currentInputValue)},we.renderPrev=function(At){var Me=we.props,De=Me.prevIcon,gt=Me.itemRender,jt=gt(At,"prev",we.getItemIcon(De,"prev page")),Tt=!we.hasPrev();return(0,de.isValidElement)(jt)?(0,de.cloneElement)(jt,{disabled:Tt}):jt},we.renderNext=function(At){var Me=we.props,De=Me.nextIcon,gt=Me.itemRender,jt=gt(At,"next",we.getItemIcon(De,"next page")),Tt=!we.hasNext();return(0,de.isValidElement)(jt)?(0,de.cloneElement)(jt,{disabled:Tt}):jt};var qe=xe.onChange!==je,Et="current"in xe;Et&&!qe&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var pe=xe.defaultCurrent;"current"in xe&&(pe=xe.current);var dt=xe.defaultPageSize;return"pageSize"in xe&&(dt=xe.pageSize),pe=Math.min(pe,D(dt,void 0,xe)),we.state={current:pe,currentInputValue:pe,pageSize:dt},we}return(0,J.Z)(Ge,[{key:"componentDidUpdate",value:function(we,qe){var Et=this.props.prefixCls;if(qe.current!==this.state.current&&this.paginationNode.current){var pe=this.paginationNode.current.querySelector(".".concat(Et,"-item-").concat(qe.current));if(pe&&document.activeElement===pe){var dt;pe==null||(dt=pe.blur)===null||dt===void 0||dt.call(pe)}}}},{key:"getValidValue",value:function(we){var qe=we.target.value,Et=D(void 0,this.state,this.props),pe=this.state.currentInputValue,dt;return qe===""?dt=qe:Number.isNaN(Number(qe))?dt=pe:qe>=Et?dt=Et:dt=Number(qe),dt}},{key:"getShowSizeChanger",value:function(){var we=this.props,qe=we.showSizeChanger,Et=we.total,pe=we.totalBoundaryShowSizeChanger;return typeof qe!="undefined"?qe:Et>pe}},{key:"render",value:function(){var we=this.props,qe=we.prefixCls,Et=we.className,pe=we.style,dt=we.disabled,At=we.hideOnSinglePage,Me=we.total,De=we.locale,gt=we.showQuickJumper,jt=we.showLessItems,Tt=we.showTitle,ir=we.showTotal,Fr=we.simple,Pr=we.itemRender,Hr=we.showPrevNextJumpers,Rr=we.jumpPrevIcon,sr=we.jumpNextIcon,lr=we.selectComponentClass,$r=we.selectPrefixCls,ln=we.pageSizeOptions,En=this.state,cn=En.current,In=En.pageSize,bi=En.currentInputValue;if(At===!0&&Me<=In)return null;var Ir=D(void 0,this.state,this.props),qn=[],wi=null,$n=null,Ni=null,gi=null,Qi=null,ba=gt&&gt.goButton,$i=jt?1:2,ri=cn-1>0?cn-1:0,xi=cn+1<Ir?cn+1:Ir,Ti=(0,te.Z)(this.props,{aria:!0,data:!0}),me=ir&&de.createElement("li",{className:"".concat(qe,"-total-text")},ir(Me,[Me===0?0:(cn-1)*In+1,cn*In>Me?Me:cn*In]));if(Fr){ba&&(typeof ba=="boolean"?Qi=de.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},De.jump_to_confirm):Qi=de.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ba),Qi=de.createElement("li",{title:Tt?"".concat(De.jump_to).concat(cn,"/").concat(Ir):null,className:"".concat(qe,"-simple-pager")},Qi));var Ue=this.renderPrev(ri);return de.createElement("ul",(0,ge.Z)({className:_()(qe,"".concat(qe,"-simple"),(0,N.Z)({},"".concat(qe,"-disabled"),dt),Et),style:pe,ref:this.paginationNode},Ti),me,Ue?de.createElement("li",{title:Tt?De.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:_()("".concat(qe,"-prev"),(0,N.Z)({},"".concat(qe,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Ue):null,de.createElement("li",{title:Tt?"".concat(cn,"/").concat(Ir):null,className:"".concat(qe,"-simple-pager")},de.createElement("input",{type:"text",value:bi,disabled:dt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),de.createElement("span",{className:"".concat(qe,"-slash")},"/"),Ir),de.createElement("li",{title:Tt?De.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:_()("".concat(qe,"-next"),(0,N.Z)({},"".concat(qe,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(xi)),Qi)}if(Ir<=3+$i*2){var Le={locale:De,rootPrefixCls:qe,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Tt,itemRender:Pr};Ir||qn.push(de.createElement(Be,(0,ge.Z)({},Le,{key:"noPager",page:1,className:"".concat(qe,"-item-disabled")})));for(var lt=1;lt<=Ir;lt+=1){var $t=cn===lt;qn.push(de.createElement(Be,(0,ge.Z)({},Le,{key:lt,page:lt,active:$t})))}}else{var Qt=jt?De.prev_3:De.prev_5,Br=jt?De.next_3:De.next_5,pr=Pr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Rr,"prev page")),Kr=Pr(this.getJumpNextPage(),"jump-next",this.getItemIcon(sr,"next page"));Hr&&(wi=pr?de.createElement("li",{title:Tt?Qt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:_()("".concat(qe,"-jump-prev"),(0,N.Z)({},"".concat(qe,"-jump-prev-custom-icon"),!!Rr))},pr):null,$n=Kr?de.createElement("li",{title:Tt?Br:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:_()("".concat(qe,"-jump-next"),(0,N.Z)({},"".concat(qe,"-jump-next-custom-icon"),!!sr))},Kr):null),gi=de.createElement(Be,{locale:De,last:!0,rootPrefixCls:qe,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Ir,page:Ir,active:!1,showTitle:Tt,itemRender:Pr}),Ni=de.createElement(Be,{locale:De,rootPrefixCls:qe,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Tt,itemRender:Pr});var Wr=Math.max(1,cn-$i),en=Math.min(cn+$i,Ir);cn-1<=$i&&(en=1+$i*2),Ir-cn<=$i&&(Wr=Ir-$i*2);for(var Vr=Wr;Vr<=en;Vr+=1){var jr=cn===Vr;qn.push(de.createElement(Be,{locale:De,rootPrefixCls:qe,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Vr,page:Vr,active:jr,showTitle:Tt,itemRender:Pr}))}cn-1>=$i*2&&cn!==3&&(qn[0]=(0,de.cloneElement)(qn[0],{className:"".concat(qe,"-item-after-jump-prev")}),qn.unshift(wi)),Ir-cn>=$i*2&&cn!==Ir-2&&(qn[qn.length-1]=(0,de.cloneElement)(qn[qn.length-1],{className:"".concat(qe,"-item-before-jump-next")}),qn.push($n)),Wr!==1&&qn.unshift(Ni),en!==Ir&&qn.push(gi)}var Yr=!this.hasPrev()||!Ir,mn=!this.hasNext()||!Ir,tn=this.renderPrev(ri),Dn=this.renderNext(xi);return de.createElement("ul",(0,ge.Z)({className:_()(qe,Et,(0,N.Z)({},"".concat(qe,"-disabled"),dt)),style:pe,ref:this.paginationNode},Ti),me,tn?de.createElement("li",{title:Tt?De.prev_page:null,onClick:this.prev,tabIndex:Yr?null:0,onKeyPress:this.runIfEnterPrev,className:_()("".concat(qe,"-prev"),(0,N.Z)({},"".concat(qe,"-disabled"),Yr)),"aria-disabled":Yr},tn):null,qn,Dn?de.createElement("li",{title:Tt?De.next_page:null,onClick:this.next,tabIndex:mn?null:0,onKeyPress:this.runIfEnterNext,className:_()("".concat(qe,"-next"),(0,N.Z)({},"".concat(qe,"-disabled"),mn)),"aria-disabled":mn},Dn):null,de.createElement(he,{disabled:dt,locale:De,rootPrefixCls:qe,selectComponentClass:lr,selectPrefixCls:$r,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:cn,pageSize:In,pageSizeOptions:ln,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ba}))}}],[{key:"getDerivedStateFromProps",value:function(we,qe){var Et={};if("current"in we&&(Et.current=we.current,we.current!==qe.current&&(Et.currentInputValue=Et.current)),"pageSize"in we&&we.pageSize!==qe.pageSize){var pe=qe.current,dt=D(we.pageSize,qe,we);pe=pe>dt?dt:pe,"current"in we||(Et.current=pe,Et.currentInputValue=pe),Et.pageSize=we.pageSize}return Et}}]),Ge}(de.Component);ot.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:je,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:je,locale:j.Z,style:{},itemRender:ce,totalBoundaryShowSizeChanger:50};var ke=ot,Ce=x(22075),Qe=x(36355),ve=x(19716),Pe=x(8628),fe=x(9763),ye=x(57809);const at=H=>de.createElement(ye.default,Object.assign({},H,{showSearch:!0,size:"small"})),rt=H=>de.createElement(ye.default,Object.assign({},H,{showSearch:!0,size:"middle"}));at.Option=ye.default.Option,rt.Option=ye.default.Option;var nt=x(9937),ut=x(17313),Pt=x(83116),Ht=x(37613);const Ut=H=>{const{componentCls:ne}=H;return{[`${ne}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${ne}-item-link`]:{color:H.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${ne}-item-link`]:{color:H.colorTextDisabled,cursor:"not-allowed"}}},[`&${ne}-disabled`]:{cursor:"not-allowed",[`${ne}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:H.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:H.colorBorder,backgroundColor:H.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:H.itemActiveBgDisabled},a:{color:H.itemActiveColorDisabled}}},[`${ne}-item-link`]:{color:H.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${ne}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${ne}-simple-pager`]:{color:H.colorTextDisabled},[`${ne}-jump-prev, ${ne}-jump-next`]:{[`${ne}-item-link-icon`]:{opacity:0},[`${ne}-item-ellipsis`]:{opacity:1}}},[`&${ne}-simple`]:{[`${ne}-prev, ${ne}-next`]:{[`&${ne}-disabled ${ne}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},cr=H=>{const{componentCls:ne}=H;return{[`&${ne}-mini ${ne}-total-text, &${ne}-mini ${ne}-simple-pager`]:{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`},[`&${ne}-mini ${ne}-item`]:{minWidth:H.itemSizeSM,height:H.itemSizeSM,margin:0,lineHeight:`${H.itemSizeSM-2}px`},[`&${ne}-mini:not(${ne}-disabled) ${ne}-item:not(${ne}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:H.colorBgTextHover},"&:active":{backgroundColor:H.colorBgTextActive}},[`&${ne}-mini ${ne}-prev, &${ne}-mini ${ne}-next`]:{minWidth:H.itemSizeSM,height:H.itemSizeSM,margin:0,lineHeight:`${H.itemSizeSM}px`},[`&${ne}-mini:not(${ne}-disabled)`]:{[`${ne}-prev, ${ne}-next`]:{[`&:hover ${ne}-item-link`]:{backgroundColor:H.colorBgTextHover},[`&:active ${ne}-item-link`]:{backgroundColor:H.colorBgTextActive},[`&${ne}-disabled:hover ${ne}-item-link`]:{backgroundColor:"transparent"}}},[`
&${ne}-mini ${ne}-prev ${ne}-item-link,
&${ne}-mini ${ne}-next ${ne}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`}},[`&${ne}-mini ${ne}-jump-prev, &${ne}-mini ${ne}-jump-next`]:{height:H.itemSizeSM,marginInlineEnd:0,lineHeight:`${H.itemSizeSM}px`},[`&${ne}-mini ${ne}-options`]:{marginInlineStart:H.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:H.miniOptionsSizeChangerTop},"&-quick-jumper":{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,nt.x0)(H)),{width:H.paginationMiniQuickJumperInputWidth,height:H.controlHeightSM})}}}},or=H=>{const{componentCls:ne}=H;return{[`
&${ne}-simple ${ne}-prev,
&${ne}-simple ${ne}-next
`]:{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`,verticalAlign:"top",[`${ne}-item-link`]:{height:H.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:H.colorBgTextHover},"&:active":{backgroundColor:H.colorBgTextActive},"&::after":{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`}}},[`&${ne}-simple ${ne}-simple-pager`]:{display:"inline-block",height:H.itemSizeSM,marginInlineEnd:H.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:H.marginXS,padding:`0 ${H.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:H.itemInputBg,border:`${H.lineWidth}px ${H.lineType} ${H.colorBorder}`,borderRadius:H.borderRadius,outline:"none",transition:`border-color ${H.motionDurationMid}`,color:"inherit","&:hover":{borderColor:H.colorPrimary},"&:focus":{borderColor:H.colorPrimaryHover,boxShadow:`${H.inputOutlineOffset}px 0 ${H.controlOutlineWidth}px ${H.controlOutline}`},"&[disabled]":{color:H.colorTextDisabled,backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,cursor:"not-allowed"}}}}},Cr=H=>{const{componentCls:ne}=H;return{[`${ne}-jump-prev, ${ne}-jump-next`]:{outline:0,[`${ne}-item-container`]:{position:"relative",[`${ne}-item-link-icon`]:{color:H.colorPrimary,fontSize:H.fontSizeSM,opacity:0,transition:`all ${H.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${ne}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:H.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:H.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:H.paginationEllipsisTextIndent,opacity:1,transition:`all ${H.motionDurationMid}`}},"&:hover":{[`${ne}-item-link-icon`]:{opacity:1},[`${ne}-item-ellipsis`]:{opacity:0}}},[`
${ne}-prev,
${ne}-jump-prev,
${ne}-jump-next
`]:{marginInlineEnd:H.marginXS},[`
${ne}-prev,
${ne}-next,
${ne}-jump-prev,
${ne}-jump-next
`]:{display:"inline-block",minWidth:H.itemSize,height:H.itemSize,color:H.colorText,fontFamily:H.fontFamily,lineHeight:`${H.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:H.borderRadius,cursor:"pointer",transition:`all ${H.motionDurationMid}`},[`${ne}-prev, ${ne}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:H.colorText,cursor:"pointer",userSelect:"none"},[`${ne}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:H.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${H.lineWidth}px ${H.lineType} transparent`,borderRadius:H.borderRadius,outline:"none",transition:`all ${H.motionDurationMid}`},[`&:hover ${ne}-item-link`]:{backgroundColor:H.colorBgTextHover},[`&:active ${ne}-item-link`]:{backgroundColor:H.colorBgTextActive},[`&${ne}-disabled:hover`]:{[`${ne}-item-link`]:{backgroundColor:"transparent"}}},[`${ne}-slash`]:{marginInlineEnd:H.paginationSlashMarginInlineEnd,marginInlineStart:H.paginationSlashMarginInlineStart},[`${ne}-options`]:{display:"inline-block",marginInlineStart:H.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:H.controlHeight,marginInlineStart:H.marginXS,lineHeight:`${H.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,nt.ik)(H)),{width:H.controlHeightLG*1.25,height:H.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:H.marginXS,marginInlineEnd:H.marginXS})}}}},hr=H=>{const{componentCls:ne}=H;return{[`${ne}-item`]:{display:"inline-block",minWidth:H.itemSize,height:H.itemSize,marginInlineEnd:H.marginXS,fontFamily:H.fontFamily,lineHeight:`${H.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${H.lineWidth}px ${H.lineType} transparent`,borderRadius:H.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${H.paginationItemPaddingInline}px`,color:H.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${ne}-item-active)`]:{"&:hover":{transition:`all ${H.motionDurationMid}`,backgroundColor:H.colorBgTextHover},"&:active":{backgroundColor:H.colorBgTextActive}},"&-active":{fontWeight:H.fontWeightStrong,backgroundColor:H.itemActiveBg,borderColor:H.colorPrimary,a:{color:H.colorPrimary},"&:hover":{borderColor:H.colorPrimaryHover},"&:hover a":{color:H.colorPrimaryHover}}}}},L=H=>{const{componentCls:ne}=H;return{[ne]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ut.Wf)(H)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${ne}-total-text`]:{display:"inline-block",height:H.itemSize,marginInlineEnd:H.marginXS,lineHeight:`${H.itemSize-2}px`,verticalAlign:"middle"}}),hr(H)),Cr(H)),or(H)),cr(H)),Ut(H)),{[`@media only screen and (max-width: ${H.screenLG}px)`]:{[`${ne}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${H.screenSM}px)`]:{[`${ne}-options`]:{display:"none"}}}),[`&${H.componentCls}-rtl`]:{direction:"rtl"}}},it=H=>{const{componentCls:ne}=H;return{[`${ne}${ne}-disabled:not(${ne}-mini)`]:{"&, &:hover":{[`${ne}-item-link`]:{borderColor:H.colorBorder}},"&:focus-visible":{[`${ne}-item-link`]:{borderColor:H.colorBorder}},[`${ne}-item, ${ne}-item-link`]:{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,[`&:hover:not(${ne}-item-active)`]:{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,a:{color:H.colorTextDisabled}},[`&${ne}-item-active`]:{backgroundColor:H.itemActiveBgDisabled}},[`${ne}-prev, ${ne}-next`]:{"&:hover button":{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,color:H.colorTextDisabled},[`${ne}-item-link`]:{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder}}},[`${ne}:not(${ne}-mini)`]:{[`${ne}-prev, ${ne}-next`]:{"&:hover button":{borderColor:H.colorPrimaryHover,backgroundColor:H.itemBg},[`${ne}-item-link`]:{backgroundColor:H.itemLinkBg,borderColor:H.colorBorder},[`&:hover ${ne}-item-link`]:{borderColor:H.colorPrimary,backgroundColor:H.itemBg,color:H.colorPrimary},[`&${ne}-disabled`]:{[`${ne}-item-link`]:{borderColor:H.colorBorder,color:H.colorTextDisabled}}},[`${ne}-item`]:{backgroundColor:H.itemBg,border:`${H.lineWidth}px ${H.lineType} ${H.colorBorder}`,[`&:hover:not(${ne}-item-active)`]:{borderColor:H.colorPrimary,backgroundColor:H.itemBg,a:{color:H.colorPrimary}},"&-active":{borderColor:H.colorPrimary}}}}},k=H=>{const{componentCls:ne}=H;return{[`${ne}:not(${ne}-disabled)`]:{[`${ne}-item`]:Object.assign({},(0,ut.Qy)(H)),[`${ne}-jump-prev, ${ne}-jump-next`]:{"&:focus-visible":Object.assign({[`${ne}-item-link-icon`]:{opacity:1},[`${ne}-item-ellipsis`]:{opacity:0}},(0,ut.oN)(H))},[`${ne}-prev, ${ne}-next`]:{[`&:focus-visible ${ne}-item-link`]:Object.assign({},(0,ut.oN)(H))}}}};var p=(0,Pt.Z)("Pagination",H=>{const ne=(0,Ht.TS)(H,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:H.marginXXS/2,paginationMiniQuickJumperInputWidth:H.controlHeightLG*1.1,paginationItemPaddingInline:H.marginXXS*1.5,paginationEllipsisLetterSpacing:H.marginXXS/2,paginationSlashMarginInlineStart:H.marginXXS,paginationSlashMarginInlineEnd:H.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,nt.e5)(H),(0,nt.TM)(H));return[L(ne),k(ne),H.wireframe&&it(ne)]},H=>({itemBg:H.colorBgContainer,itemSize:H.controlHeight,itemSizeSM:H.controlHeightSM,itemActiveBg:H.colorBgContainer,itemLinkBg:H.colorBgContainer,itemActiveColorDisabled:H.colorTextDisabled,itemActiveBgDisabled:H.controlItemBgActiveDisabled,itemInputBg:H.colorBgContainer,miniOptionsSizeChangerTop:0})),d=function(H,ne){var Ge={};for(var xe in H)Object.prototype.hasOwnProperty.call(H,xe)&&ne.indexOf(xe)<0&&(Ge[xe]=H[xe]);if(H!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,xe=Object.getOwnPropertySymbols(H);we<xe.length;we++)ne.indexOf(xe[we])<0&&Object.prototype.propertyIsEnumerable.call(H,xe[we])&&(Ge[xe[we]]=H[xe[we]]);return Ge},Y=H=>{const{prefixCls:ne,selectPrefixCls:Ge,className:xe,rootClassName:we,style:qe,size:Et,locale:pe,selectComponentClass:dt,responsive:At,showSizeChanger:Me}=H,De=d(H,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:gt}=(0,Pe.Z)(At),{getPrefixCls:jt,direction:Tt,pagination:ir={}}=de.useContext(Qe.E_),Fr=jt("pagination",ne),[Pr,Hr]=p(Fr),Rr=Me!=null?Me:ir.showSizeChanger,sr=de.useMemo(()=>{const Ir=de.createElement("span",{className:`${Fr}-item-ellipsis`},"\u2022\u2022\u2022"),qn=de.createElement("button",{className:`${Fr}-item-link`,type:"button",tabIndex:-1},Tt==="rtl"?de.createElement($.Z,null):de.createElement(h.Z,null)),wi=de.createElement("button",{className:`${Fr}-item-link`,type:"button",tabIndex:-1},Tt==="rtl"?de.createElement(h.Z,null):de.createElement($.Z,null)),$n=de.createElement("a",{className:`${Fr}-item-link`},de.createElement("div",{className:`${Fr}-item-container`},Tt==="rtl"?de.createElement(E.Z,{className:`${Fr}-item-link-icon`}):de.createElement(f,{className:`${Fr}-item-link-icon`}),Ir)),Ni=de.createElement("a",{className:`${Fr}-item-link`},de.createElement("div",{className:`${Fr}-item-container`},Tt==="rtl"?de.createElement(f,{className:`${Fr}-item-link-icon`}):de.createElement(E.Z,{className:`${Fr}-item-link-icon`}),Ir));return{prevIcon:qn,nextIcon:wi,jumpPrevIcon:$n,jumpNextIcon:Ni}},[Tt,Fr]),[lr]=(0,fe.Z)("Pagination",Ce.Z),$r=Object.assign(Object.assign({},lr),pe),ln=(0,ve.Z)(Et),En=ln==="small"||!!(gt&&!ln&&At),cn=jt("select",Ge),In=_()({[`${Fr}-mini`]:En,[`${Fr}-rtl`]:Tt==="rtl"},ir==null?void 0:ir.className,xe,we,Hr),bi=Object.assign(Object.assign({},ir==null?void 0:ir.style),qe);return Pr(de.createElement(ke,Object.assign({},sr,De,{style:bi,prefixCls:Fr,selectPrefixCls:cn,className:In,selectComponentClass:dt||(En?at:rt),locale:$r,showSizeChanger:Rr})))},Ee=Y},5112:function(xn,Yt,x){"use strict";x.d(Yt,{ZP:function(){return Pe}});var ge=x(92310),de=x.n(ge),Q=x(18929),Oe=x(26112),ie=x(59301),W=x(36355),B=x(19716);const f=ie.createContext(null),E=f.Provider;var h=f;const $=ie.createContext(null),S=$.Provider;var _=x(5630),N=x(8654),R=x(1684),I=x(32441),J=x(17313),K=x(83116),se=x(37613);const te=fe=>{const{componentCls:ye,antCls:at}=fe,rt=`${ye}-group`;return{[rt]:Object.assign(Object.assign({},(0,J.Wf)(fe)),{display:"inline-block",fontSize:0,[`&${rt}-rtl`]:{direction:"rtl"},[`${at}-badge ${at}-badge-count`]:{zIndex:1},[`> ${at}-badge:not(:first-child) > ${at}-button-wrapper`]:{borderInlineStart:"none"}})}},G=fe=>{const{componentCls:ye,wrapperMarginInlineEnd:at,colorPrimary:rt,radioSize:nt,motionDurationSlow:ut,motionDurationMid:Pt,motionEaseInOutCirc:Ht,colorBgContainer:Ut,colorBorder:cr,lineWidth:or,dotSize:Cr,colorBgContainerDisabled:hr,colorTextDisabled:L,paddingXS:it,dotColorDisabled:k,lineType:p,radioDotDisabledSize:d,wireframe:w,colorWhite:Y}=fe,Ee=`${ye}-inner`;return{[`${ye}-wrapper`]:Object.assign(Object.assign({},(0,J.Wf)(fe)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:at,cursor:"pointer",[`&${ye}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:fe.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${ye}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${or}px ${p} ${rt}`,borderRadius:"50%",visibility:"hidden",content:'""'},[ye]:Object.assign(Object.assign({},(0,J.Wf)(fe)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${ye}-wrapper:hover &,
&:hover ${Ee}`]:{borderColor:rt},[`${ye}-input:focus-visible + ${Ee}`]:Object.assign({},(0,J.oN)(fe)),[`${ye}:hover::after, ${ye}-wrapper:hover &::after`]:{visibility:"visible"},[`${ye}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:nt,height:nt,marginBlockStart:nt/-2,marginInlineStart:nt/-2,backgroundColor:w?rt:Y,borderBlockStart:0,borderInlineStart:0,borderRadius:nt,transform:"scale(0)",opacity:0,transition:`all ${ut} ${Ht}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:nt,height:nt,backgroundColor:Ut,borderColor:cr,borderStyle:"solid",borderWidth:or,borderRadius:"50%",transition:`all ${Pt}`},[`${ye}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${ye}-checked`]:{[Ee]:{borderColor:rt,backgroundColor:w?Ut:rt,"&::after":{transform:`scale(${Cr/nt})`,opacity:1,transition:`all ${ut} ${Ht}`}}},[`${ye}-disabled`]:{cursor:"not-allowed",[Ee]:{backgroundColor:hr,borderColor:cr,cursor:"not-allowed","&::after":{backgroundColor:k}},[`${ye}-input`]:{cursor:"not-allowed"},[`${ye}-disabled + span`]:{color:L,cursor:"not-allowed"},[`&${ye}-checked`]:{[Ee]:{"&::after":{transform:`scale(${d/nt})`}}}},[`span${ye} + *`]:{paddingInlineStart:it,paddingInlineEnd:it}})}},V=fe=>{const{buttonColor:ye,controlHeight:at,componentCls:rt,lineWidth:nt,lineType:ut,colorBorder:Pt,motionDurationSlow:Ht,motionDurationMid:Ut,buttonPaddingInline:cr,fontSize:or,buttonBg:Cr,fontSizeLG:hr,controlHeightLG:L,controlHeightSM:it,paddingXS:k,borderRadius:p,borderRadiusSM:d,borderRadiusLG:w,buttonCheckedBg:Y,buttonSolidCheckedColor:Ee,colorTextDisabled:H,colorBgContainerDisabled:ne,buttonCheckedBgDisabled:Ge,buttonCheckedColorDisabled:xe,colorPrimary:we,colorPrimaryHover:qe,colorPrimaryActive:Et,buttonSolidCheckedBg:pe,buttonSolidCheckedHoverBg:dt,buttonSolidCheckedActiveBg:At}=fe;return{[`${rt}-button-wrapper`]:{position:"relative",display:"inline-block",height:at,margin:0,paddingInline:cr,paddingBlock:0,color:ye,fontSize:or,lineHeight:`${at-nt*2}px`,background:Cr,border:`${nt}px ${ut} ${Pt}`,borderBlockStartWidth:nt+.02,borderInlineStartWidth:0,borderInlineEndWidth:nt,cursor:"pointer",transition:[`color ${Ut}`,`background ${Ut}`,`box-shadow ${Ut}`].join(","),a:{color:ye},[`> ${rt}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-nt,insetInlineStart:-nt,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:nt,paddingInline:0,backgroundColor:Pt,transition:`background-color ${Ht}`,content:'""'}},"&:first-child":{borderInlineStart:`${nt}px ${ut} ${Pt}`,borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p},"&:first-child:last-child":{borderRadius:p},[`${rt}-group-large &`]:{height:L,fontSize:hr,lineHeight:`${L-nt*2}px`,"&:first-child":{borderStartStartRadius:w,borderEndStartRadius:w},"&:last-child":{borderStartEndRadius:w,borderEndEndRadius:w}},[`${rt}-group-small &`]:{height:it,paddingInline:k-nt,paddingBlock:0,lineHeight:`${it-nt*2}px`,"&:first-child":{borderStartStartRadius:d,borderEndStartRadius:d},"&:last-child":{borderStartEndRadius:d,borderEndEndRadius:d}},"&:hover":{position:"relative",color:we},"&:has(:focus-visible)":Object.assign({},(0,J.oN)(fe)),[`${rt}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${rt}-button-wrapper-disabled)`]:{zIndex:1,color:we,background:Y,borderColor:we,"&::before":{backgroundColor:we},"&:first-child":{borderColor:we},"&:hover":{color:qe,borderColor:qe,"&::before":{backgroundColor:qe}},"&:active":{color:Et,borderColor:Et,"&::before":{backgroundColor:Et}}},[`${rt}-group-solid &-checked:not(${rt}-button-wrapper-disabled)`]:{color:Ee,background:pe,borderColor:pe,"&:hover":{color:Ee,background:dt,borderColor:dt},"&:active":{color:Ee,background:At,borderColor:At}},"&-disabled":{color:H,backgroundColor:ne,borderColor:Pt,cursor:"not-allowed","&:first-child, &:hover":{color:H,backgroundColor:ne,borderColor:Pt}},[`&-disabled${rt}-button-wrapper-checked`]:{color:xe,backgroundColor:Ge,borderColor:Pt,boxShadow:"none"}}}},j=fe=>fe-4*2;var le=(0,K.Z)("Radio",fe=>{const{controlOutline:ye,controlOutlineWidth:at,radioSize:rt}=fe,nt=`0 0 0 ${at}px ${ye}`,ut=nt,Pt=j(rt),Ht=(0,se.TS)(fe,{radioDotDisabledSize:Pt,radioFocusShadow:nt,radioButtonFocusShadow:ut});return[te(Ht),G(Ht),V(Ht)]},fe=>{const{wireframe:ye,padding:at,marginXS:rt,lineWidth:nt,fontSizeLG:ut,colorText:Pt,colorBgContainer:Ht,colorTextDisabled:Ut,controlItemBgActiveDisabled:cr,colorTextLightSolid:or,colorPrimary:Cr,colorPrimaryHover:hr,colorPrimaryActive:L}=fe,it=4,k=ut,p=ye?j(k):k-(it+nt)*2;return{radioSize:k,dotSize:p,dotColorDisabled:Ut,buttonSolidCheckedColor:or,buttonSolidCheckedBg:Cr,buttonSolidCheckedHoverBg:hr,buttonSolidCheckedActiveBg:L,buttonBg:Ht,buttonCheckedBg:Ht,buttonColor:Pt,buttonCheckedBgDisabled:cr,buttonCheckedColorDisabled:Ut,buttonPaddingInline:at-nt,wrapperMarginInlineEnd:rt}}),he=x(14088),Ne=x(4572),Be=function(fe,ye){var at={};for(var rt in fe)Object.prototype.hasOwnProperty.call(fe,rt)&&ye.indexOf(rt)<0&&(at[rt]=fe[rt]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,rt=Object.getOwnPropertySymbols(fe);nt<rt.length;nt++)ye.indexOf(rt[nt])<0&&Object.prototype.propertyIsEnumerable.call(fe,rt[nt])&&(at[rt[nt]]=fe[rt[nt]]);return at};const je=(fe,ye)=>{var at,rt;const nt=ie.useContext(h),ut=ie.useContext($),{getPrefixCls:Pt,direction:Ht,radio:Ut}=ie.useContext(W.E_),cr=ie.useRef(null),or=(0,N.sQ)(ye,cr),{isFormItemInput:Cr}=ie.useContext(I.aM),hr=Et=>{var pe,dt;(pe=fe.onChange)===null||pe===void 0||pe.call(fe,Et),(dt=nt==null?void 0:nt.onChange)===null||dt===void 0||dt.call(nt,Et)},{prefixCls:L,className:it,rootClassName:k,children:p,style:d}=fe,w=Be(fe,["prefixCls","className","rootClassName","children","style"]),Y=Pt("radio",L),Ee=((nt==null?void 0:nt.optionType)||ut)==="button",H=Ee?`${Y}-button`:Y,[ne,Ge]=le(Y),xe=Object.assign({},w),we=ie.useContext(R.Z);nt&&(xe.name=nt.name,xe.onChange=hr,xe.checked=fe.value===nt.value,xe.disabled=(at=xe.disabled)!==null&&at!==void 0?at:nt.disabled),xe.disabled=(rt=xe.disabled)!==null&&rt!==void 0?rt:we;const qe=de()(`${H}-wrapper`,{[`${H}-wrapper-checked`]:xe.checked,[`${H}-wrapper-disabled`]:xe.disabled,[`${H}-wrapper-rtl`]:Ht==="rtl",[`${H}-wrapper-in-form-item`]:Cr},Ut==null?void 0:Ut.className,it,k,Ge);return ne(ie.createElement(he.Z,{component:"Radio",disabled:xe.disabled},ie.createElement("label",{className:qe,style:Object.assign(Object.assign({},Ut==null?void 0:Ut.style),d),onMouseEnter:fe.onMouseEnter,onMouseLeave:fe.onMouseLeave},ie.createElement(_.Z,Object.assign({},xe,{className:de()(xe.className,!Ee&&Ne.A),type:"radio",prefixCls:H,ref:or})),p!==void 0?ie.createElement("span",null,p):null)))};var ce=ie.forwardRef(je);const D=ie.forwardRef((fe,ye)=>{const{getPrefixCls:at,direction:rt}=ie.useContext(W.E_),[nt,ut]=(0,Q.Z)(fe.defaultValue,{value:fe.value}),Pt=pe=>{const dt=nt,At=pe.target.value;"value"in fe||ut(At);const{onChange:Me}=fe;Me&&At!==dt&&Me(pe)},{prefixCls:Ht,className:Ut,rootClassName:cr,options:or,buttonStyle:Cr="outline",disabled:hr,children:L,size:it,style:k,id:p,onMouseEnter:d,onMouseLeave:w,onFocus:Y,onBlur:Ee}=fe,H=at("radio",Ht),ne=`${H}-group`,[Ge,xe]=le(H);let we=L;or&&or.length>0&&(we=or.map(pe=>typeof pe=="string"||typeof pe=="number"?ie.createElement(ce,{key:pe.toString(),prefixCls:H,disabled:hr,value:pe,checked:nt===pe},pe):ie.createElement(ce,{key:`radio-group-value-options-${pe.value}`,prefixCls:H,disabled:pe.disabled||hr,value:pe.value,checked:nt===pe.value,title:pe.title,style:pe.style},pe.label)));const qe=(0,B.Z)(it),Et=de()(ne,`${ne}-${Cr}`,{[`${ne}-${qe}`]:qe,[`${ne}-rtl`]:rt==="rtl"},Ut,cr,xe);return Ge(ie.createElement("div",Object.assign({},(0,Oe.Z)(fe,{aria:!0,data:!0}),{className:Et,style:k,onMouseEnter:d,onMouseLeave:w,onFocus:Y,onBlur:Ee,id:p,ref:ye}),ie.createElement(E,{value:{onChange:Pt,value:nt,disabled:fe.disabled,name:fe.name,optionType:fe.optionType}},we)))});var ot=ie.memo(D),ke=function(fe,ye){var at={};for(var rt in fe)Object.prototype.hasOwnProperty.call(fe,rt)&&ye.indexOf(rt)<0&&(at[rt]=fe[rt]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,rt=Object.getOwnPropertySymbols(fe);nt<rt.length;nt++)ye.indexOf(rt[nt])<0&&Object.prototype.propertyIsEnumerable.call(fe,rt[nt])&&(at[rt[nt]]=fe[rt[nt]]);return at};const Ce=(fe,ye)=>{const{getPrefixCls:at}=ie.useContext(W.E_),{prefixCls:rt}=fe,nt=ke(fe,["prefixCls"]),ut=at("radio",rt);return ie.createElement(S,{value:"button"},ie.createElement(ce,Object.assign({prefixCls:ut},nt,{type:"radio",ref:ye})))};var Qe=ie.forwardRef(Ce);const ve=ce;ve.Button=Qe,ve.Group=ot,ve.__ANT_RADIO=!0;var Pe=ve},57809:function(xn,Yt,x){"use strict";var ge=x(92310),de=x.n(ge),Q=x(77861),Oe=x(2738),ie=x(59301),W=x(53487),B=x(62892),f=x(19080),E=x(36355),h=x(1684),$=x(93891),S=x(19716),_=x(32441),N=x(33234),R=x(14154),I=x(58582),J=x(84443),K=x(66339),se=function(le,he){var Ne={};for(var Be in le)Object.prototype.hasOwnProperty.call(le,Be)&&he.indexOf(Be)<0&&(Ne[Be]=le[Be]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Be=Object.getOwnPropertySymbols(le);je<Be.length;je++)he.indexOf(Be[je])<0&&Object.prototype.propertyIsEnumerable.call(le,Be[je])&&(Ne[Be[je]]=le[Be[je]]);return Ne};const te="SECRET_COMBOBOX_MODE_DO_NOT_USE",G=(le,he)=>{var Ne,{prefixCls:Be,bordered:je=!0,className:q,rootClassName:ce,getPopupContainer:D,popupClassName:ot,dropdownClassName:ke,listHeight:Ce=256,placement:Qe,listItemHeight:ve=24,size:Pe,disabled:fe,notFoundContent:ye,status:at,builtinPlacements:rt,dropdownMatchSelectWidth:nt,popupMatchSelectWidth:ut,direction:Pt,style:Ht,allowClear:Ut}=le,cr=se(le,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:or,getPrefixCls:Cr,renderEmpty:hr,direction:L,virtual:it,popupMatchSelectWidth:k,popupOverflow:p,select:d}=ie.useContext(E.E_),w=Cr("select",Be),Y=Cr(),Ee=Pt!=null?Pt:L,{compactSize:H,compactItemClassnames:ne}=(0,N.ri)(w,Ee),[Ge,xe]=(0,R.Z)(w),we=ie.useMemo(()=>{const{mode:bi}=cr;if(bi!=="combobox")return bi===te?"combobox":bi},[cr.mode]),qe=we==="multiple"||we==="tags",Et=(0,J.Z)(cr.suffixIcon,cr.showArrow),pe=(Ne=ut!=null?ut:nt)!==null&&Ne!==void 0?Ne:k,{status:dt,hasFeedback:At,isFormItemInput:Me,feedbackIcon:De}=ie.useContext(_.aM),gt=(0,f.F)(dt,at);let jt;ye!==void 0?jt=ye:we==="combobox"?jt=null:jt=(hr==null?void 0:hr("Select"))||ie.createElement($.Z,{componentName:"Select"});const{suffixIcon:Tt,itemIcon:ir,removeIcon:Fr,clearIcon:Pr}=(0,K.Z)(Object.assign(Object.assign({},cr),{multiple:qe,hasFeedback:At,feedbackIcon:De,showSuffixIcon:Et,prefixCls:w,showArrow:cr.showArrow,componentName:"Select"})),Hr=Ut===!0?{clearIcon:Pr}:Ut,Rr=(0,Oe.Z)(cr,["suffixIcon","itemIcon"]),sr=de()(ot||ke,{[`${w}-dropdown-${Ee}`]:Ee==="rtl"},ce,xe),lr=(0,S.Z)(bi=>{var Ir;return(Ir=Pe!=null?Pe:H)!==null&&Ir!==void 0?Ir:bi}),$r=ie.useContext(h.Z),ln=fe!=null?fe:$r,En=de()({[`${w}-lg`]:lr==="large",[`${w}-sm`]:lr==="small",[`${w}-rtl`]:Ee==="rtl",[`${w}-borderless`]:!je,[`${w}-in-form-item`]:Me},(0,f.Z)(w,gt,At),ne,d==null?void 0:d.className,q,ce,xe),cn=ie.useMemo(()=>Qe!==void 0?Qe:Ee==="rtl"?"bottomRight":"bottomLeft",[Qe,Ee]),In=(0,I.Z)(rt,p);return Ge(ie.createElement(Q.ZP,Object.assign({ref:he,virtual:it,showSearch:d==null?void 0:d.showSearch},Rr,{style:Object.assign(Object.assign({},d==null?void 0:d.style),Ht),dropdownMatchSelectWidth:pe,builtinPlacements:In,transitionName:(0,B.m)(Y,"slide-up",cr.transitionName),listHeight:Ce,listItemHeight:ve,mode:we,prefixCls:w,placement:cn,direction:Ee,suffixIcon:Tt,menuItemSelectedIcon:ir,removeIcon:Fr,allowClear:Hr,notFoundContent:jt,className:En,getPopupContainer:D||or,dropdownClassName:sr,disabled:ln})))},V=ie.forwardRef(G),j=(0,W.Z)(V);V.SECRET_COMBOBOX_MODE_DO_NOT_USE=te,V.Option=Q.Wx,V.OptGroup=Q.Xo,V._InternalPanelDoNotUseOrYouWillBeFired=j,Yt.default=V},14154:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return V}});var ge=x(17313),de=x(74207),Q=x(37613),Oe=x(83116),ie=x(13826),W=x(92899);const B=j=>{const{optionHeight:le,optionFontSize:he,optionLineHeight:Ne,optionPadding:Be}=j;return{position:"relative",display:"block",minHeight:le,padding:Be,color:j.colorText,fontWeight:"normal",fontSize:he,lineHeight:Ne,boxSizing:"border-box"}};var E=j=>{const{antCls:le,componentCls:he}=j,Ne=`${he}-item`,Be=`&${le}-slide-up-enter${le}-slide-up-enter-active`,je=`&${le}-slide-up-appear${le}-slide-up-appear-active`,q=`&${le}-slide-up-leave${le}-slide-up-leave-active`,ce=`${he}-dropdown-placement-`;return[{[`${he}-dropdown`]:Object.assign(Object.assign({},(0,ge.Wf)(j)),{position:"absolute",top:-9999,zIndex:j.zIndexPopup,boxSizing:"border-box",padding:j.paddingXXS,overflow:"hidden",fontSize:j.fontSize,fontVariant:"initial",backgroundColor:j.colorBgElevated,borderRadius:j.borderRadiusLG,outline:"none",boxShadow:j.boxShadowSecondary,[`
${Be}${ce}bottomLeft,
${je}${ce}bottomLeft
`]:{animationName:ie.fJ},[`
${Be}${ce}topLeft,
${je}${ce}topLeft,
${Be}${ce}topRight,
${je}${ce}topRight
`]:{animationName:ie.Qt},[`${q}${ce}bottomLeft`]:{animationName:ie.Uw},[`
${q}${ce}topLeft,
${q}${ce}topRight
`]:{animationName:ie.ly},"&-hidden":{display:"none"},[`${Ne}`]:Object.assign(Object.assign({},B(j)),{cursor:"pointer",transition:`background ${j.motionDurationSlow} ease`,borderRadius:j.borderRadiusSM,"&-group":{color:j.colorTextDescription,fontSize:j.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ge.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Ne}-option-disabled)`]:{backgroundColor:j.optionActiveBg},[`&-selected:not(${Ne}-option-disabled)`]:{color:j.optionSelectedColor,fontWeight:j.optionSelectedFontWeight,backgroundColor:j.optionSelectedBg,[`${Ne}-option-state`]:{color:j.colorPrimary}},"&-disabled":{[`&${Ne}-option-selected`]:{backgroundColor:j.colorBgContainerDisabled},color:j.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:j.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,ie.oN)(j,"slide-up"),(0,ie.oN)(j,"slide-down"),(0,W.Fm)(j,"move-up"),(0,W.Fm)(j,"move-down")]};const h=2,$=j=>{let{controlHeightSM:le,controlHeight:he,lineWidth:Ne}=j;const Be=(he-le)/2-Ne,je=Math.ceil(Be/2);return[Be,je]};function S(j,le){const{componentCls:he,iconCls:Ne}=j,Be=`${he}-selection-overflow`,je=j.multipleSelectItemHeight,[q]=$(j),ce=le?`${he}-${le}`:"";return{[`${he}-multiple${ce}`]:{fontSize:j.fontSize,[Be]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${he}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${q-h}px ${h*2}px`,borderRadius:j.borderRadius,[`${he}-show-search&`]:{cursor:"text"},[`${he}-disabled&`]:{background:j.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${h}px 0`,lineHeight:`${je}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${he}-show-arrow ${he}-selector,
&${he}-allow-clear ${he}-selector
`]:{paddingInlineEnd:j.fontSizeIcon+j.controlPaddingHorizontal},[`${he}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:je,marginTop:h,marginBottom:h,lineHeight:`${je-j.lineWidth*2}px`,background:j.multipleItemBg,border:`${j.lineWidth}px ${j.lineType} ${j.multipleItemBorderColor}`,borderRadius:j.borderRadiusSM,cursor:"default",transition:`font-size ${j.motionDurationSlow}, line-height ${j.motionDurationSlow}, height ${j.motionDurationSlow}`,userSelect:"none",marginInlineEnd:h*2,paddingInlineStart:j.paddingXS,paddingInlineEnd:j.paddingXS/2,[`${he}-disabled&`]:{color:j.multipleItemColorDisabled,borderColor:j.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:j.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ge.Ro)()),{display:"inline-flex",alignItems:"center",color:j.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ne}`]:{verticalAlign:"-0.2em"},"&:hover":{color:j.colorIconHover}})},[`${Be}-item + ${Be}-item`]:{[`${he}-selection-search`]:{marginInlineStart:0}},[`${he}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:j.inputPaddingHorizontalBase-q,"\n &-input,\n &-mirror\n ":{height:je,fontFamily:j.fontFamily,lineHeight:`${je}px`,transition:`all ${j.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${he}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:j.inputPaddingHorizontalBase,insetInlineEnd:j.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${j.motionDurationSlow}`}}}}var N=j=>{const{componentCls:le}=j,he=(0,Q.TS)(j,{controlHeight:j.controlHeightSM,multipleSelectItemHeight:j.controlHeightXS,borderRadius:j.borderRadiusSM,borderRadiusSM:j.borderRadiusXS}),Ne=(0,Q.TS)(j,{fontSize:j.fontSizeLG,controlHeight:j.controlHeightLG,multipleSelectItemHeight:j.multipleItemHeightLG,borderRadius:j.borderRadiusLG,borderRadiusSM:j.borderRadius}),[,Be]=$(j);return[S(j),S(he,"sm"),{[`${le}-multiple${le}-sm`]:{[`${le}-selection-placeholder`]:{insetInline:j.controlPaddingHorizontalSM-j.lineWidth},[`${le}-selection-search`]:{marginInlineStart:Be}}},S(Ne,"lg")]};function R(j,le){const{componentCls:he,inputPaddingHorizontalBase:Ne,borderRadius:Be}=j,je=j.controlHeight-j.lineWidth*2,q=Math.ceil(j.fontSize*1.25),ce=le?`${he}-${le}`:"";return{[`${he}-single${ce}`]:{fontSize:j.fontSize,[`${he}-selector`]:Object.assign(Object.assign({},(0,ge.Wf)(j)),{display:"flex",borderRadius:Be,[`${he}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Ne,insetInlineEnd:Ne,bottom:0,"&-input":{width:"100%"}},[`
${he}-selection-item,
${he}-selection-placeholder
`]:{padding:0,lineHeight:`${je}px`,transition:`all ${j.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${je}px`}},[`${he}-selection-item`]:{position:"relative",userSelect:"none"},[`${he}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${he}-selection-item:after`,`${he}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${he}-show-arrow ${he}-selection-item,
&${he}-show-arrow ${he}-selection-placeholder
`]:{paddingInlineEnd:q},[`&${he}-open ${he}-selection-item`]:{color:j.colorTextPlaceholder},[`&:not(${he}-customize-input)`]:{[`${he}-selector`]:{width:"100%",height:j.controlHeight,padding:`0 ${Ne}px`,[`${he}-selection-search-input`]:{height:je},"&:after":{lineHeight:`${je}px`}}},[`&${he}-customize-input`]:{[`${he}-selector`]:{"&:after":{display:"none"},[`${he}-selection-search`]:{position:"static",width:"100%"},[`${he}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Ne}px`,"&:after":{display:"none"}}}}}}}function I(j){const{componentCls:le}=j,he=j.controlPaddingHorizontalSM-j.lineWidth;return[R(j),R((0,Q.TS)(j,{controlHeight:j.controlHeightSM,borderRadius:j.borderRadiusSM}),"sm"),{[`${le}-single${le}-sm`]:{[`&:not(${le}-customize-input)`]:{[`${le}-selection-search`]:{insetInlineStart:he,insetInlineEnd:he},[`${le}-selector`]:{padding:`0 ${he}px`},[`&${le}-show-arrow ${le}-selection-search`]:{insetInlineEnd:he+j.fontSize*1.5},[`
&${le}-show-arrow ${le}-selection-item,
&${le}-show-arrow ${le}-selection-placeholder
`]:{paddingInlineEnd:j.fontSize*1.5}}}},R((0,Q.TS)(j,{controlHeight:j.singleItemHeightLG,fontSize:j.fontSizeLG,borderRadius:j.borderRadiusLG}),"lg")]}const J=j=>{const{componentCls:le,selectorBg:he}=j;return{position:"relative",backgroundColor:he,border:`${j.lineWidth}px ${j.lineType} ${j.colorBorder}`,transition:`all ${j.motionDurationMid} ${j.motionEaseInOut}`,input:{cursor:"pointer"},[`${le}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${le}-disabled&`]:{color:j.colorTextDisabled,background:j.colorBgContainerDisabled,cursor:"not-allowed",[`${le}-multiple&`]:{background:j.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},K=function(j,le){let he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Ne,borderHoverColor:Be,outlineColor:je,antCls:q}=le,ce=he?{[`${Ne}-selector`]:{borderColor:Be}}:{};return{[j]:{[`&:not(${Ne}-disabled):not(${Ne}-customize-input):not(${q}-pagination-size-changer)`]:Object.assign(Object.assign({},ce),{[`${Ne}-focused& ${Ne}-selector`]:{borderColor:Be,boxShadow:`0 0 0 ${le.controlOutlineWidth}px ${je}`,outline:0},[`&:hover ${Ne}-selector`]:{borderColor:Be}})}}},se=j=>{const{componentCls:le}=j;return{[`${le}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},te=j=>{const{componentCls:le,inputPaddingHorizontalBase:he,iconCls:Ne}=j;return{[le]:Object.assign(Object.assign({},(0,ge.Wf)(j)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${le}-customize-input) ${le}-selector`]:Object.assign(Object.assign({},J(j)),se(j)),[`${le}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},ge.vS),[`${le}-selection-placeholder`]:Object.assign(Object.assign({},ge.vS),{flex:1,color:j.colorTextPlaceholder,pointerEvents:"none"}),[`${le}-arrow`]:Object.assign(Object.assign({},(0,ge.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:he,height:j.fontSizeIcon,marginTop:-j.fontSizeIcon/2,color:j.colorTextQuaternary,fontSize:j.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Ne]:{verticalAlign:"top",transition:`transform ${j.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${le}-suffix)`]:{pointerEvents:"auto"}},[`${le}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${le}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:he,zIndex:1,display:"inline-block",width:j.fontSizeIcon,height:j.fontSizeIcon,marginTop:-j.fontSizeIcon/2,color:j.colorTextQuaternary,fontSize:j.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:j.clearBg,cursor:"pointer",opacity:0,transition:`color ${j.motionDurationMid} ease, opacity ${j.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:j.colorTextTertiary}},"&:hover":{[`${le}-clear`]:{opacity:1}}}),[`${le}-has-feedback`]:{[`${le}-clear`]:{insetInlineEnd:he+j.fontSize+j.paddingXS}}}},G=j=>{const{componentCls:le}=j;return[{[le]:{[`&-borderless ${le}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${le}-in-form-item`]:{width:"100%"}}},te(j),I(j),N(j),E(j),{[`${le}-rtl`]:{direction:"rtl"}},K(le,(0,Q.TS)(j,{borderHoverColor:j.colorPrimaryHover,outlineColor:j.controlOutline})),K(`${le}-status-error`,(0,Q.TS)(j,{borderHoverColor:j.colorErrorHover,outlineColor:j.colorErrorOutline}),!0),K(`${le}-status-warning`,(0,Q.TS)(j,{borderHoverColor:j.colorWarningHover,outlineColor:j.colorWarningOutline}),!0),(0,de.c)(j,{borderElCls:`${le}-selector`,focusElCls:`${le}-focused`})]};var V=(0,Oe.Z)("Select",(j,le)=>{let{rootPrefixCls:he}=le;const Ne=(0,Q.TS)(j,{rootPrefixCls:he,inputPaddingHorizontalBase:j.paddingSM-1,multipleSelectItemHeight:j.multipleItemHeight});return[G(Ne)]},j=>{const{fontSize:le,lineHeight:he,controlHeight:Ne,controlPaddingHorizontal:Be,zIndexPopupBase:je,colorText:q,fontWeightStrong:ce,controlItemBgActive:D,controlItemBgHover:ot,colorBgContainer:ke,colorFillSecondary:Ce,controlHeightLG:Qe,controlHeightSM:ve,colorBgContainerDisabled:Pe,colorTextDisabled:fe}=j;return{zIndexPopup:je+50,optionSelectedColor:q,optionSelectedFontWeight:ce,optionSelectedBg:D,optionActiveBg:ot,optionPadding:`${(Ne-le*he)/2}px ${Be}px`,optionFontSize:le,optionLineHeight:he,optionHeight:Ne,selectorBg:ke,clearBg:ke,singleItemHeightLG:Qe,multipleItemBg:Ce,multipleItemBorderColor:"transparent",multipleItemHeight:ve,multipleItemHeightLG:Ne,multipleSelectorBgDisabled:Pe,multipleItemColorDisabled:fe,multipleItemBorderColorDisabled:"transparent"}})},58582:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return de}});const ge=Q=>{const ie={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Q==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},ie),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},ie),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},ie),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},ie),{points:["br","tr"],offset:[0,-4]})}};function de(Q,Oe){return Q||ge(Oe)}},84443:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return ge}});function ge(de,Q){return Q!==void 0?Q:de!==null}},66339:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return f}});var ge=x(40001),de=x(19248),Q=x(99267),Oe=x(84105),ie=x(58617),W=x(47472),B=x(59301);function f(E){let{suffixIcon:h,clearIcon:$,menuItemSelectedIcon:S,removeIcon:_,loading:N,multiple:R,hasFeedback:I,prefixCls:J,showSuffixIcon:K,feedbackIcon:se,showArrow:te,componentName:G}=E;const V=$!=null?$:B.createElement(de.Z,null),j=Be=>h===null&&!I&&!te?null:B.createElement(B.Fragment,null,K!==!1&&Be,I&&se);let le=null;if(h!==void 0)le=j(h);else if(N)le=j(B.createElement(ie.Z,{spin:!0}));else{const Be=`${J}-suffix`;le=je=>{let{open:q,showSearch:ce}=je;return j(q&&ce?B.createElement(W.Z,{className:Be}):B.createElement(Oe.Z,{className:Be}))}}let he=null;S!==void 0?he=S:R?he=B.createElement(ge.Z,null):he=null;let Ne=null;return _!==void 0?Ne=_:Ne=B.createElement(Q.Z,null),{clearIcon:V,suffixIcon:le,itemIcon:he,removeIcon:Ne}}},61621:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return p}});var ge=x(92310),de=x.n(ge),Q=x(59301),Oe=x(36355),ie=x(2738),B=d=>{const{prefixCls:w,className:Y,style:Ee,size:H,shape:ne}=d,Ge=de()({[`${w}-lg`]:H==="large",[`${w}-sm`]:H==="small"}),xe=de()({[`${w}-circle`]:ne==="circle",[`${w}-square`]:ne==="square",[`${w}-round`]:ne==="round"}),we=Q.useMemo(()=>typeof H=="number"?{width:H,height:H,lineHeight:`${H}px`}:{},[H]);return Q.createElement("span",{className:de()(w,Ge,xe,Y),style:Object.assign(Object.assign({},we),Ee)})},f=x(93083),E=x(83116),h=x(37613);const $=new f.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),S=d=>({height:d,lineHeight:`${d}px`}),_=d=>Object.assign({width:d},S(d)),N=d=>({background:d.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:$,animationDuration:d.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),R=d=>Object.assign({width:d*5,minWidth:d*5},S(d)),I=d=>{const{skeletonAvatarCls:w,gradientFromColor:Y,controlHeight:Ee,controlHeightLG:H,controlHeightSM:ne}=d;return{[`${w}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Y},_(Ee)),[`${w}${w}-circle`]:{borderRadius:"50%"},[`${w}${w}-lg`]:Object.assign({},_(H)),[`${w}${w}-sm`]:Object.assign({},_(ne))}},J=d=>{const{controlHeight:w,borderRadiusSM:Y,skeletonInputCls:Ee,controlHeightLG:H,controlHeightSM:ne,gradientFromColor:Ge}=d;return{[`${Ee}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ge,borderRadius:Y},R(w)),[`${Ee}-lg`]:Object.assign({},R(H)),[`${Ee}-sm`]:Object.assign({},R(ne))}},K=d=>Object.assign({width:d},S(d)),se=d=>{const{skeletonImageCls:w,imageSizeBase:Y,gradientFromColor:Ee,borderRadiusSM:H}=d;return{[`${w}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Ee,borderRadius:H},K(Y*2)),{[`${w}-path`]:{fill:"#bfbfbf"},[`${w}-svg`]:Object.assign(Object.assign({},K(Y)),{maxWidth:Y*4,maxHeight:Y*4}),[`${w}-svg${w}-svg-circle`]:{borderRadius:"50%"}}),[`${w}${w}-circle`]:{borderRadius:"50%"}}},te=(d,w,Y)=>{const{skeletonButtonCls:Ee}=d;return{[`${Y}${Ee}-circle`]:{width:w,minWidth:w,borderRadius:"50%"},[`${Y}${Ee}-round`]:{borderRadius:w}}},G=d=>Object.assign({width:d*2,minWidth:d*2},S(d)),V=d=>{const{borderRadiusSM:w,skeletonButtonCls:Y,controlHeight:Ee,controlHeightLG:H,controlHeightSM:ne,gradientFromColor:Ge}=d;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Y}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ge,borderRadius:w,width:Ee*2,minWidth:Ee*2},G(Ee))},te(d,Ee,Y)),{[`${Y}-lg`]:Object.assign({},G(H))}),te(d,H,`${Y}-lg`)),{[`${Y}-sm`]:Object.assign({},G(ne))}),te(d,ne,`${Y}-sm`))},j=d=>{const{componentCls:w,skeletonAvatarCls:Y,skeletonTitleCls:Ee,skeletonParagraphCls:H,skeletonButtonCls:ne,skeletonInputCls:Ge,skeletonImageCls:xe,controlHeight:we,controlHeightLG:qe,controlHeightSM:Et,gradientFromColor:pe,padding:dt,marginSM:At,borderRadius:Me,titleHeight:De,blockRadius:gt,paragraphLiHeight:jt,controlHeightXS:Tt,paragraphMarginTop:ir}=d;return{[`${w}`]:{display:"table",width:"100%",[`${w}-header`]:{display:"table-cell",paddingInlineEnd:dt,verticalAlign:"top",[`${Y}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:pe},_(we)),[`${Y}-circle`]:{borderRadius:"50%"},[`${Y}-lg`]:Object.assign({},_(qe)),[`${Y}-sm`]:Object.assign({},_(Et))},[`${w}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Ee}`]:{width:"100%",height:De,background:pe,borderRadius:gt,[`+ ${H}`]:{marginBlockStart:Et}},[`${H}`]:{padding:0,"> li":{width:"100%",height:jt,listStyle:"none",background:pe,borderRadius:gt,"+ li":{marginBlockStart:Tt}}},[`${H}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${w}-content`]:{[`${Ee}, ${H} > li`]:{borderRadius:Me}}},[`${w}-with-avatar ${w}-content`]:{[`${Ee}`]:{marginBlockStart:At,[`+ ${H}`]:{marginBlockStart:ir}}},[`${w}${w}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},V(d)),I(d)),J(d)),se(d)),[`${w}${w}-block`]:{width:"100%",[`${ne}`]:{width:"100%"},[`${Ge}`]:{width:"100%"}},[`${w}${w}-active`]:{[`
${Ee},
${H} > li,
${Y},
${ne},
${Ge},
${xe}
`]:Object.assign({},N(d))}}};var le=(0,E.Z)("Skeleton",d=>{const{componentCls:w}=d,Y=(0,h.TS)(d,{skeletonAvatarCls:`${w}-avatar`,skeletonTitleCls:`${w}-title`,skeletonParagraphCls:`${w}-paragraph`,skeletonButtonCls:`${w}-button`,skeletonInputCls:`${w}-input`,skeletonImageCls:`${w}-image`,imageSizeBase:d.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${d.gradientFromColor} 25%, ${d.gradientToColor} 37%, ${d.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[j(Y)]},d=>{const{colorFillContent:w,colorFill:Y}=d,Ee=w,H=Y;return{color:Ee,colorGradientEnd:H,gradientFromColor:Ee,gradientToColor:H,titleHeight:d.controlHeight/2,blockRadius:d.borderRadiusSM,paragraphMarginTop:d.marginLG+d.marginXXS,paragraphLiHeight:d.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Ne=d=>{const{prefixCls:w,className:Y,rootClassName:Ee,active:H,shape:ne="circle",size:Ge="default"}=d,{getPrefixCls:xe}=Q.useContext(Oe.E_),we=xe("skeleton",w),[qe,Et]=le(we),pe=(0,ie.Z)(d,["prefixCls","className"]),dt=de()(we,`${we}-element`,{[`${we}-active`]:H},Y,Ee,Et);return qe(Q.createElement("div",{className:dt},Q.createElement(B,Object.assign({prefixCls:`${we}-avatar`,shape:ne,size:Ge},pe))))},je=d=>{const{prefixCls:w,className:Y,rootClassName:Ee,active:H,block:ne=!1,size:Ge="default"}=d,{getPrefixCls:xe}=Q.useContext(Oe.E_),we=xe("skeleton",w),[qe,Et]=le(we),pe=(0,ie.Z)(d,["prefixCls"]),dt=de()(we,`${we}-element`,{[`${we}-active`]:H,[`${we}-block`]:ne},Y,Ee,Et);return qe(Q.createElement("div",{className:dt},Q.createElement(B,Object.assign({prefixCls:`${we}-button`,size:Ge},pe))))};const q="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var D=d=>{const{prefixCls:w,className:Y,rootClassName:Ee,style:H,active:ne}=d,{getPrefixCls:Ge}=Q.useContext(Oe.E_),xe=Ge("skeleton",w),[we,qe]=le(xe),Et=de()(xe,`${xe}-element`,{[`${xe}-active`]:ne},Y,Ee,qe);return we(Q.createElement("div",{className:Et},Q.createElement("div",{className:de()(`${xe}-image`,Y),style:H},Q.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${xe}-image-svg`},Q.createElement("path",{d:q,className:`${xe}-image-path`})))))},ke=d=>{const{prefixCls:w,className:Y,rootClassName:Ee,active:H,block:ne,size:Ge="default"}=d,{getPrefixCls:xe}=Q.useContext(Oe.E_),we=xe("skeleton",w),[qe,Et]=le(we),pe=(0,ie.Z)(d,["prefixCls"]),dt=de()(we,`${we}-element`,{[`${we}-active`]:H,[`${we}-block`]:ne},Y,Ee,Et);return qe(Q.createElement("div",{className:dt},Q.createElement(B,Object.assign({prefixCls:`${we}-input`,size:Ge},pe))))},Ce=x(72308),Qe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},ve=Qe,Pe=x(7657),fe=function(w,Y){return Q.createElement(Pe.Z,(0,Ce.Z)({},w,{ref:Y,icon:ve}))},ye=Q.forwardRef(fe),at=ye,nt=d=>{const{prefixCls:w,className:Y,rootClassName:Ee,style:H,active:ne,children:Ge}=d,{getPrefixCls:xe}=Q.useContext(Oe.E_),we=xe("skeleton",w),[qe,Et]=le(we),pe=de()(we,`${we}-element`,{[`${we}-active`]:ne},Et,Y,Ee),dt=Ge!=null?Ge:Q.createElement(at,null);return qe(Q.createElement("div",{className:pe},Q.createElement("div",{className:de()(`${we}-image`,Y),style:H},dt)))},ut=x(80702),Ht=d=>{const w=xe=>{const{width:we,rows:qe=2}=d;if(Array.isArray(we))return we[xe];if(qe-1===xe)return we},{prefixCls:Y,className:Ee,style:H,rows:ne}=d,Ge=(0,ut.Z)(Array(ne)).map((xe,we)=>Q.createElement("li",{key:we,style:{width:w(we)}}));return Q.createElement("ul",{className:de()(Y,Ee),style:H},Ge)},cr=d=>{let{prefixCls:w,className:Y,width:Ee,style:H}=d;return Q.createElement("h3",{className:de()(w,Y),style:Object.assign({width:Ee},H)})};function or(d){return d&&typeof d=="object"?d:{}}function Cr(d,w){return d&&!w?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function hr(d,w){return!d&&w?{width:"38%"}:d&&w?{width:"50%"}:{}}function L(d,w){const Y={};return(!d||!w)&&(Y.width="61%"),!d&&w?Y.rows=3:Y.rows=2,Y}const it=d=>{const{prefixCls:w,loading:Y,className:Ee,rootClassName:H,style:ne,children:Ge,avatar:xe=!1,title:we=!0,paragraph:qe=!0,active:Et,round:pe}=d,{getPrefixCls:dt,direction:At,skeleton:Me}=Q.useContext(Oe.E_),De=dt("skeleton",w),[gt,jt]=le(De);if(Y||!("loading"in d)){const Tt=!!xe,ir=!!we,Fr=!!qe;let Pr;if(Tt){const sr=Object.assign(Object.assign({prefixCls:`${De}-avatar`},Cr(ir,Fr)),or(xe));Pr=Q.createElement("div",{className:`${De}-header`},Q.createElement(B,Object.assign({},sr)))}let Hr;if(ir||Fr){let sr;if(ir){const $r=Object.assign(Object.assign({prefixCls:`${De}-title`},hr(Tt,Fr)),or(we));sr=Q.createElement(cr,Object.assign({},$r))}let lr;if(Fr){const $r=Object.assign(Object.assign({prefixCls:`${De}-paragraph`},L(Tt,ir)),or(qe));lr=Q.createElement(Ht,Object.assign({},$r))}Hr=Q.createElement("div",{className:`${De}-content`},sr,lr)}const Rr=de()(De,{[`${De}-with-avatar`]:Tt,[`${De}-active`]:Et,[`${De}-rtl`]:At==="rtl",[`${De}-round`]:pe},Me==null?void 0:Me.className,Ee,H,jt);return gt(Q.createElement("div",{className:Rr,style:Object.assign(Object.assign({},Me==null?void 0:Me.style),ne)},Pr,Hr))}return typeof Ge!="undefined"?Ge:null};it.Button=je,it.Avatar=Ne,it.Input=ke,it.Image=D,it.Node=nt;var k=it,p=k},81327:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return J}});var ge=x(59301),de=x(92310),Q=x.n(de),Oe=x(11592),ie=x(36355),W=x(33234);const B=ge.createContext({latestIndex:0}),f=B.Provider;var h=K=>{let{className:se,index:te,children:G,split:V,style:j}=K;const{latestIndex:le}=ge.useContext(B);return G==null?null:ge.createElement(ge.Fragment,null,ge.createElement("div",{className:se,style:j},G),te<le&&V&&ge.createElement("span",{className:`${se}-split`},V))},$=x(2856);function S(K){return["small","middle","large"].includes(K)}function _(K){return K?typeof K=="number"&&!Number.isNaN(K):!1}var N=function(K,se){var te={};for(var G in K)Object.prototype.hasOwnProperty.call(K,G)&&se.indexOf(G)<0&&(te[G]=K[G]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var V=0,G=Object.getOwnPropertySymbols(K);V<G.length;V++)se.indexOf(G[V])<0&&Object.prototype.propertyIsEnumerable.call(K,G[V])&&(te[G[V]]=K[G[V]]);return te};const I=ge.forwardRef((K,se)=>{var te,G;const{getPrefixCls:V,space:j,direction:le}=ge.useContext(ie.E_),{size:he=(j==null?void 0:j.size)||"small",align:Ne,className:Be,rootClassName:je,children:q,direction:ce="horizontal",prefixCls:D,split:ot,style:ke,wrap:Ce=!1,classNames:Qe,styles:ve}=K,Pe=N(K,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[fe,ye]=Array.isArray(he)?he:[he,he],at=S(ye),rt=S(fe),nt=_(ye),ut=_(fe),Pt=(0,Oe.Z)(q,{keepEmpty:!0}),Ht=Ne===void 0&&ce==="horizontal"?"center":Ne,Ut=V("space",D),[cr,or]=(0,$.Z)(Ut),Cr=Q()(Ut,j==null?void 0:j.className,or,`${Ut}-${ce}`,{[`${Ut}-rtl`]:le==="rtl",[`${Ut}-align-${Ht}`]:Ht,[`${Ut}-gap-row-${ye}`]:at,[`${Ut}-gap-col-${fe}`]:rt},Be,je),hr=Q()(`${Ut}-item`,(te=Qe==null?void 0:Qe.item)!==null&&te!==void 0?te:(G=j==null?void 0:j.classNames)===null||G===void 0?void 0:G.item);let L=0;const it=Pt.map((d,w)=>{var Y,Ee;d!=null&&(L=w);const H=d&&d.key||`${hr}-${w}`;return ge.createElement(h,{className:hr,key:H,index:w,split:ot,style:(Y=ve==null?void 0:ve.item)!==null&&Y!==void 0?Y:(Ee=j==null?void 0:j.styles)===null||Ee===void 0?void 0:Ee.item},d)}),k=ge.useMemo(()=>({latestIndex:L}),[L]);if(Pt.length===0)return null;const p={};return Ce&&(p.flexWrap="wrap"),!rt&&ut&&(p.columnGap=fe),!at&&nt&&(p.rowGap=ye),cr(ge.createElement("div",Object.assign({ref:se,className:Cr,style:Object.assign(Object.assign(Object.assign({},p),j==null?void 0:j.style),ke)},Pe),ge.createElement(f,{value:k},it)))});I.Compact=W.ZP;var J=I},8378:function(xn,Yt){"use strict";const x=ge=>({[ge.componentCls]:{[`${ge.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${ge.motionDurationMid} ${ge.motionEaseInOut},
opacity ${ge.motionDurationMid} ${ge.motionEaseInOut} !important`}},[`${ge.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${ge.motionDurationMid} ${ge.motionEaseInOut},
opacity ${ge.motionDurationMid} ${ge.motionEaseInOut} !important`}}});Yt.Z=x},92899:function(xn,Yt,x){"use strict";x.d(Yt,{Fm:function(){return S}});var ge=x(93083),de=x(95406);const Q=new ge.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Oe=new ge.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ie=new ge.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),W=new ge.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),B=new ge.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),f=new ge.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),E=new ge.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),h=new ge.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),$={"move-up":{inKeyframes:E,outKeyframes:h},"move-down":{inKeyframes:Q,outKeyframes:Oe},"move-left":{inKeyframes:ie,outKeyframes:W},"move-right":{inKeyframes:B,outKeyframes:f}},S=(_,N)=>{const{antCls:R}=_,I=`${R}-${N}`,{inKeyframes:J,outKeyframes:K}=$[N];return[(0,de.R)(I,J,K,_.motionDurationMid),{[`
${I}-enter,
${I}-appear
`]:{opacity:0,animationTimingFunction:_.motionEaseOutCirc},[`${I}-leave`]:{animationTimingFunction:_.motionEaseInOutCirc}}]}},13826:function(xn,Yt,x){"use strict";x.d(Yt,{Qt:function(){return ie},Uw:function(){return Oe},fJ:function(){return Q},ly:function(){return W},oN:function(){return S}});var ge=x(93083),de=x(95406);const Q=new ge.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Oe=new ge.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ie=new ge.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),W=new ge.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),B=new ge.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),f=new ge.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),E=new ge.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),h=new ge.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),$={"slide-up":{inKeyframes:Q,outKeyframes:Oe},"slide-down":{inKeyframes:ie,outKeyframes:W},"slide-left":{inKeyframes:B,outKeyframes:f},"slide-right":{inKeyframes:E,outKeyframes:h}},S=(_,N)=>{const{antCls:R}=_,I=`${R}-${N}`,{inKeyframes:J,outKeyframes:K}=$[N];return[(0,de.R)(I,J,K,_.motionDurationMid),{[`
${I}-enter,
${I}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:_.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${I}-leave`]:{animationTimingFunction:_.motionEaseInQuint}}]}},15969:function(xn,Yt,x){"use strict";x.d(Yt,{N:function(){return ge}});const ge=de=>({color:de.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${de.motionDurationSlow}`,"&:focus, &:hover":{color:de.colorLinkHover},"&:active":{color:de.colorLinkActive}})},1710:function(xn,Yt,x){"use strict";x.d(Yt,{default:function(){return rr}});var ge={},de="rc-table-internal-hook",Q=x(52487),Oe=x(6089),ie=x(34280),W=x(13697),B=x(59301),f=x(4676);function E(U){var ee=B.createContext(void 0),Se=function(He){var Xe=He.value,ht=He.children,St=B.useRef(Xe);St.current=Xe;var Ae=B.useState(function(){return{getValue:function(){return St.current},listeners:new Set}}),Re=(0,Q.Z)(Ae,1),Ye=Re[0];return(0,ie.Z)(function(){(0,f.unstable_batchedUpdates)(function(){Ye.listeners.forEach(function(et){et(Xe)})})},[Xe]),B.createElement(ee.Provider,{value:Ye},ht)};return{Context:ee,Provider:Se,defaultValue:U}}function h(U,ee){var Se=(0,Oe.Z)(typeof ee=="function"?ee:function(et){if(ee===void 0)return et;if(!Array.isArray(ee))return et[ee];var bt={};return ee.forEach(function(_t){bt[_t]=et[_t]}),bt}),Te=B.useContext(U==null?void 0:U.Context),He=Te||{},Xe=He.listeners,ht=He.getValue,St=B.useRef();St.current=Se(Te?ht():U==null?void 0:U.defaultValue);var Ae=B.useState({}),Re=(0,Q.Z)(Ae,2),Ye=Re[1];return(0,ie.Z)(function(){if(!Te)return;function et(bt){var _t=Se(bt);(0,W.Z)(St.current,_t,!0)||Ye({})}return Xe.add(et),function(){Xe.delete(et)}},[Te]),St.current}var $=x(72308),S=x(8654);function _(){var U=B.createContext(null);function ee(){return B.useContext(U)}function Se(He,Xe){var ht=(0,S.Yr)(He),St=function(Re,Ye){var et=ht?{ref:Ye}:{},bt=B.useRef(0),_t=B.useRef(Re),It=ee();return It!==null?B.createElement(He,(0,$.Z)({},Re,et)):((!Xe||Xe(_t.current,Re))&&(bt.current+=1),_t.current=Re,B.createElement(U.Provider,{value:bt.current},B.createElement(He,(0,$.Z)({},Re,et))))};return ht?B.forwardRef(St):St}function Te(He,Xe){var ht=(0,S.Yr)(He),St=function(Re,Ye){var et=ht?{ref:Ye}:{};return ee(),B.createElement(He,(0,$.Z)({},Re,et))};return ht?B.memo(B.forwardRef(St),Xe):B.memo(St,Xe)}return{makeImmutable:Se,responseImmutable:Te,useImmutableMark:ee}}var N=_(),R=N.makeImmutable,I=N.responseImmutable,J=N.useImmutableMark,K=_(),se=K.makeImmutable,te=K.responseImmutable,G=K.useImmutableMark,V=E(),j=V;function le(U,ee){var Se=B.useRef(0);Se.current+=1;var Te=B.useRef(U),He=[];Object.keys(U||{}).map(function(ht){var St;(U==null?void 0:U[ht])!==((St=Te.current)===null||St===void 0?void 0:St[ht])&&He.push(ht)}),Te.current=U;var Xe=B.useRef([]);return He.length&&(Xe.current=He),B.useDebugValue(Se.current),B.useDebugValue(Xe.current.join(", ")),ee&&console.log("".concat(ee,":"),Se.current,Xe.current),Se.current}var he=null,Ne=B.memo(function(){var U=le();return B.createElement("h1",null,"Render Times: ",U)});Ne.displayName="RenderBlock";var Be=x(62853),je=x(77321),q=x(49618),ce=x(92310),D=x.n(ce),ot=x(80547),ke=x(97938),Ce=x(48736),Qe=B.createContext({renderWithProps:!1}),ve=Qe,Pe="RC_TABLE_KEY";function fe(U){return U==null?[]:Array.isArray(U)?U:[U]}function ye(U){var ee=[],Se={};return U.forEach(function(Te){for(var He=Te||{},Xe=He.key,ht=He.dataIndex,St=Xe||fe(ht).join("-")||Pe;Se[St];)St="".concat(St,"_next");Se[St]=!0,ee.push(St)}),ee}function at(U){return U!=null}function rt(U){return U&&(0,Be.Z)(U)==="object"&&!Array.isArray(U)&&!B.isValidElement(U)}function nt(U,ee,Se,Te,He,Xe){var ht=B.useContext(ve),St=G(),Ae=(0,ot.Z)(function(){if(at(Te))return[Te];var Re=ee==null||ee===""?[]:Array.isArray(ee)?ee:[ee],Ye=(0,ke.Z)(U,Re),et=Ye,bt=void 0;if(He){var _t=He(Ye,U,Se);rt(_t)?(et=_t.children,bt=_t.props,ht.renderWithProps=!0):et=_t}return[et,bt]},[St,U,Te,ee,He,Se],function(Re,Ye){if(Xe){var et=(0,Q.Z)(Re,2),bt=et[1],_t=(0,Q.Z)(Ye,2),It=_t[1];return Xe(It,bt)}return ht.renderWithProps?!0:!(0,W.Z)(Re,Ye,!0)});return Ae}function ut(U,ee,Se,Te){var He=U+ee-1;return U<=Te&&He>=Se}function Pt(U,ee){return h(j,function(Se){var Te=ut(U,ee||1,Se.hoverStartRow,Se.hoverEndRow);return[Te,Se.onHover]})}var Ht=function(ee){var Se=ee.ellipsis,Te=ee.rowType,He=ee.children,Xe,ht=Se===!0?{showTitle:!0}:Se;return ht&&(ht.showTitle||Te==="header")&&(typeof He=="string"||typeof He=="number"?Xe=He.toString():B.isValidElement(He)&&typeof He.props.children=="string"&&(Xe=He.props.children)),Xe};function Ut(U){var ee,Se,Te,He,Xe,ht,St,Ae,Re=U.component,Ye=U.children,et=U.ellipsis,bt=U.scope,_t=U.prefixCls,It=U.className,Rt=U.align,ur=U.record,fr=U.render,gr=U.dataIndex,Sr=U.renderIndex,dn=U.shouldCellUpdate,Ar=U.index,yt=U.rowType,_n=U.colSpan,gn=U.rowSpan,vr=U.fixLeft,Nr=U.fixRight,Or=U.firstFixLeft,br=U.lastFixLeft,Zr=U.firstFixRight,Cn=U.lastFixRight,Xn=U.appendNode,Vn=U.additionalProps,Nn=Vn===void 0?{}:Vn,di=U.isSticky,zn="".concat(_t,"-cell"),Li=h(j,["supportSticky","allColumnsFixedLeft"]),vn=Li.supportSticky,Fa=Li.allColumnsFixedLeft,ji=nt(ur,gr,Sr,Ye,fr,dn),Ri=(0,Q.Z)(ji,2),ia=Ri[0],Hi=Ri[1],Ka={},Gi=typeof vr=="number"&&vn,As=typeof Nr=="number"&&vn;Gi&&(Ka.position="sticky",Ka.left=vr),As&&(Ka.position="sticky",Ka.right=Nr);var Bn=(ee=(Se=(Te=Hi==null?void 0:Hi.colSpan)!==null&&Te!==void 0?Te:Nn.colSpan)!==null&&Se!==void 0?Se:_n)!==null&&ee!==void 0?ee:1,fi=(He=(Xe=(ht=Hi==null?void 0:Hi.rowSpan)!==null&&ht!==void 0?ht:Nn.rowSpan)!==null&&Xe!==void 0?Xe:gn)!==null&&He!==void 0?He:1,mi=Pt(Ar,fi),Zn=(0,Q.Z)(mi,2),oi=Zn[0],kn=Zn[1],Ki=function(bn){var no;ur&&kn(Ar,Ar+fi-1),Nn==null||(no=Nn.onMouseEnter)===null||no===void 0||no.call(Nn,bn)},Xi=function(bn){var no;ur&&kn(-1,-1),Nn==null||(no=Nn.onMouseLeave)===null||no===void 0||no.call(Nn,bn)};if(Bn===0||fi===0)return null;var qi=(St=Nn.title)!==null&&St!==void 0?St:Ht({rowType:yt,ellipsis:et,children:ia}),Mo=D()(zn,It,(Ae={},(0,q.Z)(Ae,"".concat(zn,"-fix-left"),Gi&&vn),(0,q.Z)(Ae,"".concat(zn,"-fix-left-first"),Or&&vn),(0,q.Z)(Ae,"".concat(zn,"-fix-left-last"),br&&vn),(0,q.Z)(Ae,"".concat(zn,"-fix-left-all"),br&&Fa&&vn),(0,q.Z)(Ae,"".concat(zn,"-fix-right"),As&&vn),(0,q.Z)(Ae,"".concat(zn,"-fix-right-first"),Zr&&vn),(0,q.Z)(Ae,"".concat(zn,"-fix-right-last"),Cn&&vn),(0,q.Z)(Ae,"".concat(zn,"-ellipsis"),et),(0,q.Z)(Ae,"".concat(zn,"-with-append"),Xn),(0,q.Z)(Ae,"".concat(zn,"-fix-sticky"),(Gi||As)&&di&&vn),(0,q.Z)(Ae,"".concat(zn,"-row-hover"),!Hi&&oi),Ae),Nn.className,Hi==null?void 0:Hi.className),ki={};Rt&&(ki.textAlign=Rt);var ns=(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)({},Ka),Nn.style),ki),Hi==null?void 0:Hi.style),ro=ia;return(0,Be.Z)(ro)==="object"&&!Array.isArray(ro)&&!B.isValidElement(ro)&&(ro=null),et&&(br||Zr)&&(ro=B.createElement("span",{className:"".concat(zn,"-content")},ro)),B.createElement(Re,(0,$.Z)({},Hi,Nn,{className:Mo,style:ns,title:qi,scope:bt,onMouseEnter:Ki,onMouseLeave:Xi,colSpan:Bn!==1?Bn:null,rowSpan:fi!==1?fi:null}),Xn,ro)}var cr=B.memo(Ut);function or(U,ee,Se,Te,He,Xe){var ht=Se[U]||{},St=Se[ee]||{},Ae,Re;ht.fixed==="left"?Ae=Te.left[He==="rtl"?ee:U]:St.fixed==="right"&&(Re=Te.right[He==="rtl"?U:ee]);var Ye=!1,et=!1,bt=!1,_t=!1,It=Se[ee+1],Rt=Se[U-1],ur=!(Xe!=null&&Xe.children);if(He==="rtl"){if(Ae!==void 0){var fr=Rt&&Rt.fixed==="left";_t=!fr&&ur}else if(Re!==void 0){var gr=It&&It.fixed==="right";bt=!gr&&ur}}else if(Ae!==void 0){var Sr=It&&It.fixed==="left";Ye=!Sr&&ur}else if(Re!==void 0){var dn=Rt&&Rt.fixed==="right";et=!dn&&ur}return{fixLeft:Ae,fixRight:Re,lastFixLeft:Ye,firstFixRight:et,lastFixRight:bt,firstFixLeft:_t,isSticky:Te.isSticky}}var Cr=B.createContext({}),hr=Cr;function L(U){var ee=U.className,Se=U.index,Te=U.children,He=U.colSpan,Xe=He===void 0?1:He,ht=U.rowSpan,St=U.align,Ae=h(j,["prefixCls","direction"]),Re=Ae.prefixCls,Ye=Ae.direction,et=B.useContext(hr),bt=et.scrollColumnIndex,_t=et.stickyOffsets,It=et.flattenColumns,Rt=et.columns,ur=Se+Xe-1,fr=ur+1===bt?Xe+1:Xe,gr=or(Se,Se+fr-1,It,_t,Ye,Rt==null?void 0:Rt[Se]);return B.createElement(cr,(0,$.Z)({className:ee,index:Se,component:"td",prefixCls:Re,record:null,dataIndex:null,align:St,colSpan:fr,rowSpan:ht,render:function(){return Te}},gr))}var it=x(74416),k=["children"];function p(U){var ee=U.children,Se=(0,it.Z)(U,k);return B.createElement("tr",Se,ee)}function d(U){var ee=U.children;return ee}d.Row=p,d.Cell=L;var w=d;function Y(U){var ee=U.children,Se=U.stickyOffsets,Te=U.flattenColumns,He=U.columns,Xe=h(j,"prefixCls"),ht=Te.length-1,St=Te[ht],Ae=B.useMemo(function(){return{stickyOffsets:Se,flattenColumns:Te,scrollColumnIndex:St!=null&&St.scrollbar?ht:null,columns:He}},[St,Te,ht,Se,He]);return B.createElement(hr.Provider,{value:Ae},B.createElement("tfoot",{className:"".concat(Xe,"-summary")},ee))}var Ee=te(Y),H=w,ne=x(70425),Ge=x(29301),xe=x(29194),we=x(24514),qe=x(75152),Et=x(26112);function pe(U,ee,Se,Te,He,Xe,ht){U.push({record:ee,indent:Se,index:ht});var St=Xe(ee),Ae=He==null?void 0:He.has(St);if(ee&&Array.isArray(ee[Te])&&Ae)for(var Re=0;Re<ee[Te].length;Re+=1)pe(U,ee[Te][Re],Se+1,Te,He,Xe,Re)}function dt(U,ee,Se,Te){var He=B.useMemo(function(){if(Se!=null&&Se.size){for(var Xe=[],ht=0;ht<(U==null?void 0:U.length);ht+=1){var St=U[ht];pe(Xe,St,0,ee,Se,Te,ht)}return Xe}return U==null?void 0:U.map(function(Ae,Re){return{record:Ae,indent:0,index:Re}})},[U,ee,Se,Te]);return He}function At(U){var ee=U.prefixCls,Se=U.children,Te=U.component,He=U.cellComponent,Xe=U.className,ht=U.expanded,St=U.colSpan,Ae=U.isEmpty,Re=h(j,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Ye=Re.scrollbarSize,et=Re.fixHeader,bt=Re.fixColumn,_t=Re.componentWidth,It=Re.horizonScroll,Rt=Se;return(Ae?It&&_t:bt)&&(Rt=B.createElement("div",{style:{width:_t-(et?Ye:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ee,"-expanded-row-fixed")},Rt)),B.createElement(Te,{className:Xe,style:{display:ht?null:"none"}},B.createElement(cr,{component:He,prefixCls:ee,colSpan:St},Rt))}var Me=At;function De(U,ee,Se,Te){var He=h(j,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Xe=He.flattenColumns,ht=He.expandableType,St=He.expandedKeys,Ae=He.childrenColumnName,Re=He.onTriggerExpand,Ye=He.rowExpandable,et=He.onRow,bt=He.expandRowByClick,_t=He.rowClassName,It=ht==="nest",Rt=ht==="row"&&(!Ye||Ye(U)),ur=Rt||It,fr=St&&St.has(ee),gr=Ae&&U&&U[Ae],Sr=(0,ne.useEvent)(Re),dn=et==null?void 0:et(U,Se),Ar=dn==null?void 0:dn.onClick,yt=function(Nr){bt&&ur&&Re(U,Nr);for(var Or=arguments.length,br=new Array(Or>1?Or-1:0),Zr=1;Zr<Or;Zr++)br[Zr-1]=arguments[Zr];Ar==null||Ar.apply(void 0,[Nr].concat(br))},_n;typeof _t=="string"?_n=_t:typeof _t=="function"&&(_n=_t(U,Se,Te));var gn=ye(Xe);return(0,je.Z)((0,je.Z)({},He),{},{columnsKey:gn,nestExpandable:It,expanded:fr,hasNestChildren:gr,record:U,onTriggerExpand:Sr,rowSupportExpand:Rt,expandable:ur,rowProps:(0,je.Z)((0,je.Z)({},dn),{},{className:D()(_n,dn==null?void 0:dn.className),onClick:yt})})}function gt(U,ee,Se,Te,He){var Xe=U.record,ht=U.prefixCls,St=U.columnsKey,Ae=U.fixedInfoList,Re=U.expandIconColumnIndex,Ye=U.nestExpandable,et=U.indentSize,bt=U.expandIcon,_t=U.expanded,It=U.hasNestChildren,Rt=U.onTriggerExpand,ur=St[Se],fr=Ae[Se],gr;Se===(Re||0)&&Ye&&(gr=B.createElement(B.Fragment,null,B.createElement("span",{style:{paddingLeft:"".concat(et*Te,"px")},className:"".concat(ht,"-row-indent indent-level-").concat(Te)}),bt({prefixCls:ht,expanded:_t,expandable:It,record:Xe,onExpand:Rt})));var Sr;return ee.onCell&&(Sr=ee.onCell(Xe,He)),{key:ur,fixedInfo:fr,appendCellNode:gr,additionalCellProps:Sr||{}}}function jt(U){var ee=U.className,Se=U.style,Te=U.record,He=U.index,Xe=U.renderIndex,ht=U.rowKey,St=U.indent,Ae=St===void 0?0:St,Re=U.rowComponent,Ye=U.cellComponent,et=U.scopeCellComponent,bt=De(Te,ht,He,Ae),_t=bt.prefixCls,It=bt.flattenColumns,Rt=bt.expandedRowClassName,ur=bt.expandedRowRender,fr=bt.rowProps,gr=bt.expanded,Sr=bt.rowSupportExpand,dn=B.useState(!1),Ar=(0,Q.Z)(dn,2),yt=Ar[0],_n=Ar[1];B.useEffect(function(){gr&&_n(!0)},[gr]);var gn=B.createElement(Re,(0,$.Z)({},fr,{"data-row-key":ht,className:D()(ee,"".concat(_t,"-row"),"".concat(_t,"-row-level-").concat(Ae),fr==null?void 0:fr.className),style:(0,je.Z)((0,je.Z)({},Se),fr==null?void 0:fr.style)}),It.map(function(br,Zr){var Cn=br.render,Xn=br.dataIndex,Vn=br.className,Nn=gt(bt,br,Zr,Ae,He),di=Nn.key,zn=Nn.fixedInfo,Li=Nn.appendCellNode,vn=Nn.additionalCellProps;return B.createElement(cr,(0,$.Z)({className:Vn,ellipsis:br.ellipsis,align:br.align,scope:br.rowScope,component:br.rowScope?et:Ye,prefixCls:_t,key:di,record:Te,index:He,renderIndex:Xe,dataIndex:Xn,render:Cn,shouldCellUpdate:br.shouldCellUpdate},zn,{appendNode:Li,additionalProps:vn}))})),vr;if(Sr&&(yt||gr)){var Nr=ur(Te,He,Ae+1,gr),Or=Rt&&Rt(Te,He,Ae);vr=B.createElement(Me,{expanded:gr,className:D()("".concat(_t,"-expanded-row"),"".concat(_t,"-expanded-row-level-").concat(Ae+1),Or),prefixCls:_t,component:Re,cellComponent:Ye,colSpan:It.length,isEmpty:!1},Nr)}return B.createElement(B.Fragment,null,gn,vr)}jt.displayName="BodyRow";var Tt=te(jt);function ir(U){var ee=U.columnKey,Se=U.onColumnResize,Te=B.useRef();return B.useEffect(function(){Te.current&&Se(ee,Te.current.offsetWidth)},[]),B.createElement(Ge.Z,{data:ee},B.createElement("td",{ref:Te,style:{padding:0,border:0,height:0}},B.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Fr(U){var ee=U.prefixCls,Se=U.columnsKey,Te=U.onColumnResize;return B.createElement("tr",{"aria-hidden":"true",className:"".concat(ee,"-measure-row"),style:{height:0,fontSize:0}},B.createElement(Ge.Z.Collection,{onBatchResize:function(Xe){Xe.forEach(function(ht){var St=ht.data,Ae=ht.size;Te(St,Ae.offsetWidth)})}},Se.map(function(He){return B.createElement(ir,{key:He,columnKey:He,onColumnResize:Te})})))}function Pr(U){var ee=U.data,Se=U.measureColumnWidth,Te=h(j,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),He=Te.prefixCls,Xe=Te.getComponent,ht=Te.onColumnResize,St=Te.flattenColumns,Ae=Te.getRowKey,Re=Te.expandedKeys,Ye=Te.childrenColumnName,et=Te.emptyNode,bt=dt(ee,Ye,Re,Ae),_t=B.useRef({renderWithProps:!1}),It=Xe(["body","wrapper"],"tbody"),Rt=Xe(["body","row"],"tr"),ur=Xe(["body","cell"],"td"),fr=Xe(["body","cell"],"th"),gr;ee.length?gr=bt.map(function(dn,Ar){var yt=dn.record,_n=dn.indent,gn=dn.index,vr=Ae(yt,Ar);return B.createElement(Tt,{key:vr,rowKey:vr,record:yt,index:Ar,renderIndex:gn,rowComponent:Rt,cellComponent:ur,scopeCellComponent:fr,getRowKey:Ae,indent:_n})}):gr=B.createElement(Me,{expanded:!0,className:"".concat(He,"-placeholder"),prefixCls:He,component:Rt,cellComponent:ur,colSpan:St.length,isEmpty:!0},et);var Sr=ye(St);return B.createElement(ve.Provider,{value:_t.current},B.createElement(It,{className:"".concat(He,"-tbody")},Se&&B.createElement(Fr,{prefixCls:He,columnsKey:Sr,onColumnResize:ht}),gr))}Pr.displayName="Body";var Hr=te(Pr),Rr=["expandable"],sr="RC_TABLE_INTERNAL_COL_DEFINE";function lr(U){var ee=U.expandable,Se=(0,it.Z)(U,Rr),Te;return"expandable"in U?Te=(0,je.Z)((0,je.Z)({},Se),ee):Te=Se,Te.showExpandColumn===!1&&(Te.expandIconColumnIndex=-1),Te}var $r=["columnType"];function ln(U){for(var ee=U.colWidths,Se=U.columns,Te=U.columCount,He=[],Xe=Te||Se.length,ht=!1,St=Xe-1;St>=0;St-=1){var Ae=ee[St],Re=Se&&Se[St],Ye=Re&&Re[sr];if(Ae||Ye||ht){var et=Ye||{},bt=et.columnType,_t=(0,it.Z)(et,$r);He.unshift(B.createElement("col",(0,$.Z)({key:St,style:{width:Ae}},_t))),ht=!0}}return B.createElement("colgroup",null,He)}var En=ln,cn=x(80702),In=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function bi(U,ee){return(0,B.useMemo)(function(){for(var Se=[],Te=0;Te<ee;Te+=1){var He=U[Te];if(He!==void 0)Se[Te]=He;else return null}return Se},[U.join("_"),ee])}var Ir=B.forwardRef(function(U,ee){var Se=U.className,Te=U.noData,He=U.columns,Xe=U.flattenColumns,ht=U.colWidths,St=U.columCount,Ae=U.stickyOffsets,Re=U.direction,Ye=U.fixHeader,et=U.stickyTopOffset,bt=U.stickyBottomOffset,_t=U.stickyClassName,It=U.onScroll,Rt=U.maxContentScroll,ur=U.children,fr=(0,it.Z)(U,In),gr=h(j,["prefixCls","scrollbarSize","isSticky"]),Sr=gr.prefixCls,dn=gr.scrollbarSize,Ar=gr.isSticky,yt=Ar&&!Ye?0:dn,_n=B.useRef(null),gn=B.useCallback(function(Vn){(0,S.mH)(ee,Vn),(0,S.mH)(_n,Vn)},[]);B.useEffect(function(){var Vn;function Nn(di){var zn=di,Li=zn.currentTarget,vn=zn.deltaX;vn&&(It({currentTarget:Li,scrollLeft:Li.scrollLeft+vn}),di.preventDefault())}return(Vn=_n.current)===null||Vn===void 0||Vn.addEventListener("wheel",Nn),function(){var di;(di=_n.current)===null||di===void 0||di.removeEventListener("wheel",Nn)}},[]);var vr=B.useMemo(function(){return Xe.every(function(Vn){return Vn.width})},[Xe]),Nr=Xe[Xe.length-1],Or={fixed:Nr?Nr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Sr,"-cell-scrollbar")}}},br=(0,B.useMemo)(function(){return yt?[].concat((0,cn.Z)(He),[Or]):He},[yt,He]),Zr=(0,B.useMemo)(function(){return yt?[].concat((0,cn.Z)(Xe),[Or]):Xe},[yt,Xe]),Cn=(0,B.useMemo)(function(){var Vn=Ae.right,Nn=Ae.left;return(0,je.Z)((0,je.Z)({},Ae),{},{left:Re==="rtl"?[].concat((0,cn.Z)(Nn.map(function(di){return di+yt})),[0]):Nn,right:Re==="rtl"?Vn:[].concat((0,cn.Z)(Vn.map(function(di){return di+yt})),[0]),isSticky:Ar})},[yt,Ae,Ar]),Xn=bi(ht,St);return B.createElement("div",{style:(0,je.Z)({overflow:"hidden"},Ar?{top:et,bottom:bt}:{}),ref:gn,className:D()(Se,(0,q.Z)({},_t,!!_t))},B.createElement("table",{style:{tableLayout:"fixed",visibility:Te||Xn?null:"hidden"}},(!Te||!Rt||vr)&&B.createElement(En,{colWidths:Xn?[].concat((0,cn.Z)(Xn),[yt]):[],columCount:St+1,columns:Zr}),ur((0,je.Z)((0,je.Z)({},fr),{},{stickyOffsets:Cn,columns:br,flattenColumns:Zr}))))});Ir.displayName="FixedHolder";var qn=B.memo(Ir);function wi(U){var ee=U.cells,Se=U.stickyOffsets,Te=U.flattenColumns,He=U.rowComponent,Xe=U.cellComponent,ht=U.tdCellComponent,St=U.onHeaderRow,Ae=U.index,Re=h(j,["prefixCls","direction"]),Ye=Re.prefixCls,et=Re.direction,bt;St&&(bt=St(ee.map(function(It){return It.column}),Ae));var _t=ye(ee.map(function(It){return It.column}));return B.createElement(He,bt,ee.map(function(It,Rt){var ur=It.column,fr=or(It.colStart,It.colEnd,Te,Se,et,ur),gr;return ur&&ur.onHeaderCell&&(gr=It.column.onHeaderCell(ur)),B.createElement(cr,(0,$.Z)({},It,{scope:ur.title?It.colSpan>1?"colgroup":"col":null,ellipsis:ur.ellipsis,align:ur.align,component:ur.title?Xe:ht,prefixCls:Ye,key:_t[Rt]},fr,{additionalProps:gr,rowType:"header"}))}))}wi.displayName="HeaderRow";var $n=wi;function Ni(U){var ee=[];function Se(ht,St){var Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ee[Ae]=ee[Ae]||[];var Re=St,Ye=ht.filter(Boolean).map(function(et){var bt={key:et.key,className:et.className||"",children:et.title,column:et,colStart:Re},_t=1,It=et.children;return It&&It.length>0&&(_t=Se(It,Re,Ae+1).reduce(function(Rt,ur){return Rt+ur},0),bt.hasSubColumns=!0),"colSpan"in et&&(_t=et.colSpan),"rowSpan"in et&&(bt.rowSpan=et.rowSpan),bt.colSpan=_t,bt.colEnd=bt.colStart+_t-1,ee[Ae].push(bt),Re+=_t,_t});return Ye}Se(U,0);for(var Te=ee.length,He=function(St){ee[St].forEach(function(Ae){!("rowSpan"in Ae)&&!Ae.hasSubColumns&&(Ae.rowSpan=Te-St)})},Xe=0;Xe<Te;Xe+=1)He(Xe);return ee}function gi(U){var ee=U.stickyOffsets,Se=U.columns,Te=U.flattenColumns,He=U.onHeaderRow,Xe=h(j,["prefixCls","getComponent"]),ht=Xe.prefixCls,St=Xe.getComponent,Ae=B.useMemo(function(){return Ni(Se)},[Se]),Re=St(["header","wrapper"],"thead"),Ye=St(["header","row"],"tr"),et=St(["header","cell"],"th"),bt=St(["header","cell"],"td");return B.createElement(Re,{className:"".concat(ht,"-thead")},Ae.map(function(_t,It){var Rt=B.createElement($n,{key:It,flattenColumns:Te,cells:_t,stickyOffsets:ee,rowComponent:Ye,cellComponent:et,tdCellComponent:bt,onHeaderRow:He,index:It});return Rt}))}var Qi=te(gi),ba=x(11592);function $i(U){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof ee=="number"?ee:ee.endsWith("%")?U*parseFloat(ee)/100:null}function ri(U,ee){return B.useMemo(function(){if(ee&&ee>0){var Se=0,Te=0;U.forEach(function(Re){var Ye=$i(ee,Re.width);Ye?Se+=Ye:Te+=1});var He=ee-Se,Xe=Te,ht=He/Te,St=0,Ae=U.map(function(Re){var Ye=(0,je.Z)({},Re),et=$i(ee,Ye.width);if(et)Ye.width=et;else{var bt=Math.floor(ht);Ye.width=Xe===1?He:bt,He-=bt,Xe-=1}return St+=Ye.width,Ye});return[Ae,St]}return[U,ee]},[U,ee])}var xi=["children"],Ti=["fixed"];function me(U){return(0,ba.Z)(U).filter(function(ee){return B.isValidElement(ee)}).map(function(ee){var Se=ee.key,Te=ee.props,He=Te.children,Xe=(0,it.Z)(Te,xi),ht=(0,je.Z)({key:Se},Xe);return He&&(ht.children=me(He)),ht})}function Ue(U){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return U.filter(function(Se){return Se&&(0,Be.Z)(Se)==="object"}).reduce(function(Se,Te,He){var Xe=Te.fixed,ht=Xe===!0?"left":Xe,St="".concat(ee,"-").concat(He),Ae=Te.children;return Ae&&Ae.length>0?[].concat((0,cn.Z)(Se),(0,cn.Z)(Ue(Ae,St).map(function(Re){return(0,je.Z)({fixed:ht},Re)}))):[].concat((0,cn.Z)(Se),[(0,je.Z)((0,je.Z)({key:St},Te),{},{fixed:ht})])},[])}function Le(U){for(var ee=!0,Se=0;Se<U.length;Se+=1){var Te=U[Se];if(ee&&Te.fixed!=="left")ee=!1;else if(!ee&&Te.fixed==="left"){warning(!1,"Index ".concat(Se-1," of `columns` missing `fixed='left'` prop."));break}}for(var He=!0,Xe=U.length-1;Xe>=0;Xe-=1){var ht=U[Xe];if(He&&ht.fixed!=="right")He=!1;else if(!He&&ht.fixed==="right"){warning(!1,"Index ".concat(Xe+1," of `columns` missing `fixed='right'` prop."));break}}}function lt(U){return U.map(function(ee){var Se=ee.fixed,Te=(0,it.Z)(ee,Ti),He=Se;return Se==="left"?He="right":Se==="right"&&(He="left"),(0,je.Z)({fixed:He},Te)})}function $t(U,ee){var Se=U.prefixCls,Te=U.columns,He=U.children,Xe=U.expandable,ht=U.expandedKeys,St=U.columnTitle,Ae=U.getRowKey,Re=U.onTriggerExpand,Ye=U.expandIcon,et=U.rowExpandable,bt=U.expandIconColumnIndex,_t=U.direction,It=U.expandRowByClick,Rt=U.columnWidth,ur=U.fixed,fr=U.scrollWidth,gr=B.useMemo(function(){return Te||me(He)},[Te,He]),Sr=B.useMemo(function(){if(Xe){var Nr,Or=gr.slice();if(!Or.includes(ge)){var br=bt||0;br>=0&&Or.splice(br,0,ge)}var Zr=Or.indexOf(ge);Or=Or.filter(function(Nn,di){return Nn!==ge||di===Zr});var Cn=gr[Zr],Xn;(ur==="left"||ur)&&!bt?Xn="left":(ur==="right"||ur)&&bt===gr.length?Xn="right":Xn=Cn?Cn.fixed:null;var Vn=(Nr={},(0,q.Z)(Nr,sr,{className:"".concat(Se,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,q.Z)(Nr,"title",St),(0,q.Z)(Nr,"fixed",Xn),(0,q.Z)(Nr,"className","".concat(Se,"-row-expand-icon-cell")),(0,q.Z)(Nr,"width",Rt),(0,q.Z)(Nr,"render",function(di,zn,Li){var vn=Ae(zn,Li),Fa=ht.has(vn),ji=et?et(zn):!0,Ri=Ye({prefixCls:Se,expanded:Fa,expandable:ji,record:zn,onExpand:Re});return It?B.createElement("span",{onClick:function(Hi){return Hi.stopPropagation()}},Ri):Ri}),Nr);return Or.map(function(Nn){return Nn===ge?Vn:Nn})}return gr.filter(function(Nn){return Nn!==ge})},[Xe,gr,Ae,ht,Ye,_t]),dn=B.useMemo(function(){var Nr=Sr;return ee&&(Nr=ee(Nr)),Nr.length||(Nr=[{render:function(){return null}}]),Nr},[ee,Sr,_t]),Ar=B.useMemo(function(){return _t==="rtl"?lt(Ue(dn)):Ue(dn)},[dn,_t,fr]),yt=ri(Ar,fr),_n=(0,Q.Z)(yt,2),gn=_n[0],vr=_n[1];return[dn,gn,vr]}var Qt=$t;function Br(U){var ee,Se=U.prefixCls,Te=U.record,He=U.onExpand,Xe=U.expanded,ht=U.expandable,St="".concat(Se,"-row-expand-icon");if(!ht)return B.createElement("span",{className:D()(St,"".concat(Se,"-row-spaced"))});var Ae=function(Ye){He(Te,Ye),Ye.stopPropagation()};return B.createElement("span",{className:D()(St,(ee={},(0,q.Z)(ee,"".concat(Se,"-row-expanded"),Xe),(0,q.Z)(ee,"".concat(Se,"-row-collapsed"),!Xe),ee)),onClick:Ae})}function pr(U,ee,Se){var Te=[];function He(Xe){(Xe||[]).forEach(function(ht,St){Te.push(ee(ht,St)),He(ht[Se])})}return He(U),Te}function Kr(U,ee,Se){var Te=lr(U),He=Te.expandIcon,Xe=Te.expandedRowKeys,ht=Te.defaultExpandedRowKeys,St=Te.defaultExpandAllRows,Ae=Te.expandedRowRender,Re=Te.onExpand,Ye=Te.onExpandedRowsChange,et=Te.childrenColumnName,bt=He||Br,_t=et||"children",It=B.useMemo(function(){return Ae?"row":U.expandable&&U.internalHooks===de&&U.expandable.__PARENT_RENDER_ICON__||ee.some(function(Ar){return Ar&&(0,Be.Z)(Ar)==="object"&&Ar[_t]})?"nest":!1},[!!Ae,ee]),Rt=B.useState(function(){return ht||(St?pr(ee,Se,_t):[])}),ur=(0,Q.Z)(Rt,2),fr=ur[0],gr=ur[1],Sr=B.useMemo(function(){return new Set(Xe||fr||[])},[Xe,fr]),dn=B.useCallback(function(Ar){var yt=Se(Ar,ee.indexOf(Ar)),_n,gn=Sr.has(yt);gn?(Sr.delete(yt),_n=(0,cn.Z)(Sr)):_n=[].concat((0,cn.Z)(Sr),[yt]),gr(_n),Re&&Re(!gn,Ar),Ye&&Ye(_n)},[Se,Sr,ee,Re,Ye]);return[Te,It,Sr,bt,_t,dn]}function Wr(U,ee,Se,Te){var He=U.map(function(Xe,ht){return or(ht,ht,U,ee,Se,Te==null?void 0:Te[ht])});return(0,ot.Z)(function(){return He},[He],function(Xe,ht){return!(0,W.Z)(Xe,ht)})}function en(U){var ee=(0,B.useRef)(U),Se=(0,B.useState)({}),Te=(0,Q.Z)(Se,2),He=Te[1],Xe=(0,B.useRef)(null),ht=(0,B.useRef)([]);function St(Ae){ht.current.push(Ae);var Re=Promise.resolve();Xe.current=Re,Re.then(function(){if(Xe.current===Re){var Ye=ht.current,et=ee.current;ht.current=[],Ye.forEach(function(bt){ee.current=bt(ee.current)}),Xe.current=null,et!==ee.current&&He({})}})}return(0,B.useEffect)(function(){return function(){Xe.current=null}},[]),[ee.current,St]}function Vr(U){var ee=(0,B.useRef)(U||null),Se=(0,B.useRef)();function Te(){window.clearTimeout(Se.current)}function He(ht){ee.current=ht,Te(),Se.current=window.setTimeout(function(){ee.current=null,Se.current=void 0},100)}function Xe(){return ee.current}return(0,B.useEffect)(function(){return Te},[]),[He,Xe]}function jr(){var U=B.useState(-1),ee=(0,Q.Z)(U,2),Se=ee[0],Te=ee[1],He=B.useState(-1),Xe=(0,Q.Z)(He,2),ht=Xe[0],St=Xe[1],Ae=B.useCallback(function(Re,Ye){Te(Re),St(Ye)},[]);return[Se,ht,Ae]}var Yr=x(47273),mn=(0,Yr.Z)()?window:null;function tn(U,ee){var Se=(0,Be.Z)(U)==="object"?U:{},Te=Se.offsetHeader,He=Te===void 0?0:Te,Xe=Se.offsetSummary,ht=Xe===void 0?0:Xe,St=Se.offsetScroll,Ae=St===void 0?0:St,Re=Se.getContainer,Ye=Re===void 0?function(){return mn}:Re,et=Ye()||mn;return B.useMemo(function(){var bt=!!U;return{isSticky:bt,stickyClassName:bt?"".concat(ee,"-sticky-holder"):"",offsetHeader:He,offsetSummary:ht,offsetScroll:Ae,container:et}},[Ae,He,ht,ee,et])}function Dn(U,ee,Se){var Te=(0,B.useMemo)(function(){for(var He=[],Xe=[],ht=0,St=0,Ae=0;Ae<ee;Ae+=1)if(Se==="rtl"){Xe[Ae]=St,St+=U[Ae]||0;var Re=ee-Ae-1;He[Re]=ht,ht+=U[Re]||0}else{He[Ae]=ht,ht+=U[Ae]||0;var Ye=ee-Ae-1;Xe[Ye]=St,St+=U[Ye]||0}return{left:He,right:Xe}},[U,ee,Se]);return Te}var Qn=Dn;function ui(U){var ee=U.className,Se=U.children;return B.createElement("div",{className:ee},Se)}var On=ui,on=x(8224),Kt=x(55468),Zt=function(ee,Se){var Te,He,Xe=ee.scrollBodyRef,ht=ee.onScroll,St=ee.offsetScroll,Ae=ee.container,Re=h(j,"prefixCls"),Ye=((Te=Xe.current)===null||Te===void 0?void 0:Te.scrollWidth)||0,et=((He=Xe.current)===null||He===void 0?void 0:He.clientWidth)||0,bt=Ye&&et*(et/Ye),_t=B.useRef(),It=en({scrollLeft:0,isHiddenScrollBar:!1}),Rt=(0,Q.Z)(It,2),ur=Rt[0],fr=Rt[1],gr=B.useRef({delta:0,x:0}),Sr=B.useState(!1),dn=(0,Q.Z)(Sr,2),Ar=dn[0],yt=dn[1],_n=function(){yt(!1)},gn=function(Zr){Zr.persist(),gr.current.delta=Zr.pageX-ur.scrollLeft,gr.current.x=0,yt(!0),Zr.preventDefault()},vr=function(Zr){var Cn,Xn=Zr||((Cn=window)===null||Cn===void 0?void 0:Cn.event),Vn=Xn.buttons;if(!Ar||Vn===0){Ar&&yt(!1);return}var Nn=gr.current.x+Zr.pageX-gr.current.x-gr.current.delta;Nn<=0&&(Nn=0),Nn+bt>=et&&(Nn=et-bt),ht({scrollLeft:Nn/et*(Ye+2)}),gr.current.x=Zr.pageX},Nr=function(){if(Xe.current){var Zr=(0,Kt.os)(Xe.current).top,Cn=Zr+Xe.current.offsetHeight,Xn=Ae===window?document.documentElement.scrollTop+window.innerHeight:(0,Kt.os)(Ae).top+Ae.clientHeight;Cn-(0,qe.Z)()<=Xn||Zr>=Xn-St?fr(function(Vn){return(0,je.Z)((0,je.Z)({},Vn),{},{isHiddenScrollBar:!0})}):fr(function(Vn){return(0,je.Z)((0,je.Z)({},Vn),{},{isHiddenScrollBar:!1})})}},Or=function(Zr){fr(function(Cn){return(0,je.Z)((0,je.Z)({},Cn),{},{scrollLeft:Zr/Ye*et||0})})};return B.useImperativeHandle(Se,function(){return{setScrollLeft:Or}}),B.useEffect(function(){var br=(0,on.Z)(document.body,"mouseup",_n,!1),Zr=(0,on.Z)(document.body,"mousemove",vr,!1);return Nr(),function(){br.remove(),Zr.remove()}},[bt,Ar]),B.useEffect(function(){var br=(0,on.Z)(Ae,"scroll",Nr,!1),Zr=(0,on.Z)(window,"resize",Nr,!1);return function(){br.remove(),Zr.remove()}},[Ae]),B.useEffect(function(){ur.isHiddenScrollBar||fr(function(br){var Zr=Xe.current;return Zr?(0,je.Z)((0,je.Z)({},br),{},{scrollLeft:Zr.scrollLeft/Zr.scrollWidth*Zr.clientWidth}):br})},[ur.isHiddenScrollBar]),Ye<=et||!bt||ur.isHiddenScrollBar?null:B.createElement("div",{style:{height:(0,qe.Z)(),width:et,bottom:St},className:"".concat(Re,"-sticky-scroll")},B.createElement("div",{onMouseDown:gn,ref:_t,className:D()("".concat(Re,"-sticky-scroll-bar"),(0,q.Z)({},"".concat(Re,"-sticky-scroll-bar-active"),Ar)),style:{width:"".concat(bt,"px"),transform:"translate3d(".concat(ur.scrollLeft,"px, 0, 0)")}}))},qt=B.forwardRef(Zt);function er(U){return null}var Xt=er;function Ur(U){return null}var Mr=Ur,Gr="rc-table",Mn=[],Pn={};function si(){return"No Data"}function ei(U){var ee,Se=(0,je.Z)({rowKey:"key",prefixCls:Gr,emptyText:si},U),Te=Se.prefixCls,He=Se.className,Xe=Se.rowClassName,ht=Se.style,St=Se.data,Ae=Se.rowKey,Re=Se.scroll,Ye=Se.tableLayout,et=Se.direction,bt=Se.title,_t=Se.footer,It=Se.summary,Rt=Se.caption,ur=Se.id,fr=Se.showHeader,gr=Se.components,Sr=Se.emptyText,dn=Se.onRow,Ar=Se.onHeaderRow,yt=Se.internalHooks,_n=Se.transformColumns,gn=Se.internalRefs,vr=Se.tailor,Nr=Se.sticky,Or=St||Mn,br=!!Or.length,Zr=yt===de,Cn=B.useCallback(function(va,Sa){return(0,ke.Z)(gr,va)||Sa},[gr]),Xn=B.useMemo(function(){return typeof Ae=="function"?Ae:function(va){var Sa=va&&va[Ae];return Sa}},[Ae]),Vn=Cn(["body"]),Nn=jr(),di=(0,Q.Z)(Nn,3),zn=di[0],Li=di[1],vn=di[2],Fa=Kr(Se,Or,Xn),ji=(0,Q.Z)(Fa,6),Ri=ji[0],ia=ji[1],Hi=ji[2],Ka=ji[3],Gi=ji[4],As=ji[5],Bn=Re==null?void 0:Re.x,fi=B.useState(0),mi=(0,Q.Z)(fi,2),Zn=mi[0],oi=mi[1],kn=Qt((0,je.Z)((0,je.Z)((0,je.Z)({},Se),Ri),{},{expandable:!!Ri.expandedRowRender,columnTitle:Ri.columnTitle,expandedKeys:Hi,getRowKey:Xn,onTriggerExpand:As,expandIcon:Ka,expandIconColumnIndex:Ri.expandIconColumnIndex,direction:et,scrollWidth:Zr&&vr&&typeof Bn=="number"?Bn:null}),Zr?_n:null),Ki=(0,Q.Z)(kn,3),Xi=Ki[0],qi=Ki[1],Mo=Ki[2],ki=Mo!=null?Mo:Bn,ns=B.useMemo(function(){return{columns:Xi,flattenColumns:qi}},[Xi,qi]),ro=B.useRef(),Qo=B.useRef(),bn=B.useRef(),no=B.useRef(),Cs=B.useRef(),ga=B.useState(!1),qr=(0,Q.Z)(ga,2),fa=qr[0],so=qr[1],Va=B.useState(!1),Ii=(0,Q.Z)(Va,2),bo=Ii[0],Ko=Ii[1],Bs=en(new Map),gs=(0,Q.Z)(Bs,2),is=gs[0],us=gs[1],bl=ye(qi),as=bl.map(function(va){return is.get(va)}),$s=B.useMemo(function(){return as},[as.join("_")]),ds=Qn($s,qi.length,et),Lo=Re&&at(Re.y),wo=Re&&at(ki)||!!Ri.fixed,qs=wo&&qi.some(function(va){var Sa=va.fixed;return Sa}),Nl=B.useRef(),zl=tn(Nr,Te),wl=zl.isSticky,BA=zl.offsetHeader,Xc=zl.offsetSummary,Ca=zl.offsetScroll,ea=zl.stickyClassName,vs=zl.container,go=B.useMemo(function(){return It==null?void 0:It(Or)},[It,Or]),fs=(Lo||wl)&&B.isValidElement(go)&&go.type===w&&go.props.fixed,Ss,Es,_s;Lo&&(Es={overflowY:"scroll",maxHeight:Re.y}),wo&&(Ss={overflowX:"auto"},Lo||(Es={overflowY:"hidden"}),_s={width:ki===!0?"auto":ki,minWidth:"100%"});var Dc=B.useCallback(function(va,Sa){(0,xe.Z)(ro.current)&&us(function(Zs){if(Zs.get(va)!==Sa){var Wl=new Map(Zs);return Wl.set(va,Sa),Wl}return Zs})},[]),ll=Vr(null),gc=(0,Q.Z)(ll,2),Ba=gc[0],So=gc[1];function xl(va,Sa){Sa&&(typeof Sa=="function"?Sa(va):Sa.scrollLeft!==va&&(Sa.scrollLeft=va,Sa.scrollLeft!==va&&setTimeout(function(){Sa.scrollLeft=va},0)))}var rc=(0,Oe.Z)(function(va){var Sa=va.currentTarget,Zs=va.scrollLeft,Wl=et==="rtl",Ol=typeof Zs=="number"?Zs:Sa.scrollLeft,VA=Sa||Pn;if(!So()||So()===VA){var os;Ba(VA),xl(Ol,Qo.current),xl(Ol,bn.current),xl(Ol,Cs.current),xl(Ol,(os=Nl.current)===null||os===void 0?void 0:os.setScrollLeft)}var ys=Sa||Qo.current;if(ys){var ac=ys.scrollWidth,FA=ys.clientWidth;if(ac===FA){so(!1),Ko(!1);return}Wl?(so(-Ol<ac-FA),Ko(-Ol>0)):(so(Ol>0),Ko(Ol<ac-FA))}}),Ns=function(){wo&&bn.current?rc({currentTarget:bn.current}):(so(!1),Ko(!1))},HA=function(Sa){var Zs=Sa.width;Zs!==Zn&&(Ns(),oi(ro.current?ro.current.offsetWidth:Zs))},Cl=B.useRef(!1);B.useEffect(function(){Cl.current&&Ns()},[wo,St,Xi.length]),B.useEffect(function(){Cl.current=!0},[]);var jA=B.useState(0),zA=(0,Q.Z)(jA,2),Jc=zA[0],$l=zA[1],vc=B.useState(!0),nc=(0,Q.Z)(vc,2),fn=nc[0],Fs=nc[1];B.useEffect(function(){(!vr||!Zr)&&(bn.current instanceof Element?$l((0,qe.o)(bn.current).width):$l((0,qe.o)(no.current).width)),Fs((0,we.G)("position","sticky"))},[]),B.useEffect(function(){Zr&&gn&&(gn.body.current=bn.current)});var SA=B.useCallback(function(va){return B.createElement(B.Fragment,null,B.createElement(Qi,va),fs==="top"&&B.createElement(Ee,va,go))},[fs,go]),AA=B.useCallback(function(va){return B.createElement(Ee,va,go)},[go]),sa=Cn(["table"],"table"),EA=B.useMemo(function(){return Ye||(qs?ki==="max-content"?"auto":"fixed":Lo||wl||qi.some(function(va){var Sa=va.ellipsis;return Sa})?"fixed":"auto")},[Lo,qs,qi,Ye,wl]),$A,Zl={colWidths:$s,columCount:qi.length,stickyOffsets:ds,onHeaderRow:Ar,fixHeader:Lo,scroll:Re},Xo=B.useMemo(function(){return br?null:typeof Sr=="function"?Sr():Sr},[br,Sr]),ZA=B.createElement(Hr,{data:Or,measureColumnWidth:Lo||wo||wl}),Pc=B.createElement(En,{colWidths:qi.map(function(va){var Sa=va.width;return Sa}),columns:qi}),yc=Rt!=null?B.createElement("caption",{className:"".concat(Te,"-caption")},Rt):void 0,_A=(0,Et.Z)(Se,{data:!0}),Vl=(0,Et.Z)(Se,{aria:!0});if(Lo||wl){var ic;typeof Vn=="function"?(ic=Vn(Or,{scrollbarSize:Jc,ref:bn,onScroll:rc}),Zl.colWidths=qi.map(function(va,Sa){var Zs=va.width,Wl=Sa===qi.length-1?Zs-Jc:Zs;return typeof Wl=="number"&&!Number.isNaN(Wl)?Wl:0})):ic=B.createElement("div",{style:(0,je.Z)((0,je.Z)({},Ss),Es),onScroll:rc,ref:bn,className:D()("".concat(Te,"-body"))},B.createElement(sa,(0,$.Z)({style:(0,je.Z)((0,je.Z)({},_s),{},{tableLayout:EA})},Vl),yc,Pc,ZA,!fs&&go&&B.createElement(Ee,{stickyOffsets:ds,flattenColumns:qi,columns:Xi},go)));var lo=(0,je.Z)((0,je.Z)((0,je.Z)({noData:!Or.length,maxContentScroll:wo&&ki==="max-content"},Zl),ns),{},{direction:et,stickyClassName:ea,onScroll:rc});$A=B.createElement(B.Fragment,null,fr!==!1&&B.createElement(qn,(0,$.Z)({},lo,{stickyTopOffset:BA,className:"".concat(Te,"-header"),ref:Qo}),SA),ic,fs&&fs!=="top"&&B.createElement(qn,(0,$.Z)({},lo,{stickyBottomOffset:Xc,className:"".concat(Te,"-summary"),ref:Cs}),AA),wl&&B.createElement(qt,{ref:Nl,offsetScroll:Ca,scrollBodyRef:bn,onScroll:rc,container:vs}))}else $A=B.createElement("div",{style:(0,je.Z)((0,je.Z)({},Ss),Es),className:D()("".concat(Te,"-content")),onScroll:rc,ref:bn},B.createElement(sa,(0,$.Z)({style:(0,je.Z)((0,je.Z)({},_s),{},{tableLayout:EA})},Vl),yc,Pc,fr!==!1&&B.createElement(Qi,(0,$.Z)({},Zl,ns)),ZA,go&&B.createElement(Ee,{stickyOffsets:ds,flattenColumns:qi,columns:Xi},go)));var Os=B.createElement("div",(0,$.Z)({className:D()(Te,He,(ee={},(0,q.Z)(ee,"".concat(Te,"-rtl"),et==="rtl"),(0,q.Z)(ee,"".concat(Te,"-ping-left"),fa),(0,q.Z)(ee,"".concat(Te,"-ping-right"),bo),(0,q.Z)(ee,"".concat(Te,"-layout-fixed"),Ye==="fixed"),(0,q.Z)(ee,"".concat(Te,"-fixed-header"),Lo),(0,q.Z)(ee,"".concat(Te,"-fixed-column"),qs),(0,q.Z)(ee,"".concat(Te,"-scroll-horizontal"),wo),(0,q.Z)(ee,"".concat(Te,"-has-fix-left"),qi[0]&&qi[0].fixed),(0,q.Z)(ee,"".concat(Te,"-has-fix-right"),qi[qi.length-1]&&qi[qi.length-1].fixed==="right"),ee)),style:ht,id:ur,ref:ro},_A),bt&&B.createElement(On,{className:"".concat(Te,"-title")},bt(Or)),B.createElement("div",{ref:no,className:"".concat(Te,"-container")},$A),_t&&B.createElement(On,{className:"".concat(Te,"-footer")},_t(Or)));wo&&(Os=B.createElement(Ge.Z,{onResize:HA},Os));var ts=Wr(qi,ds,et,Xi),bc=B.useMemo(function(){return{scrollX:ki,prefixCls:Te,getComponent:Cn,scrollbarSize:Jc,direction:et,fixedInfoList:ts,isSticky:wl,supportSticky:fn,componentWidth:Zn,fixHeader:Lo,fixColumn:qs,horizonScroll:wo,tableLayout:EA,rowClassName:Xe,expandedRowClassName:Ri.expandedRowClassName,expandIcon:Ka,expandableType:ia,expandRowByClick:Ri.expandRowByClick,expandedRowRender:Ri.expandedRowRender,onTriggerExpand:As,expandIconColumnIndex:Ri.expandIconColumnIndex,indentSize:Ri.indentSize,allColumnsFixedLeft:qi.every(function(va){return va.fixed==="left"}),emptyNode:Xo,columns:Xi,flattenColumns:qi,onColumnResize:Dc,hoverStartRow:zn,hoverEndRow:Li,onHover:vn,rowExpandable:Ri.rowExpandable,onRow:dn,getRowKey:Xn,expandedKeys:Hi,childrenColumnName:Gi}},[ki,Te,Cn,Jc,et,ts,wl,fn,Zn,Lo,qs,wo,EA,Xe,Ri.expandedRowClassName,Ka,ia,Ri.expandRowByClick,Ri.expandedRowRender,As,Ri.expandIconColumnIndex,Ri.indentSize,Xo,Xi,qi,Dc,zn,Li,vn,Ri.rowExpandable,dn,Xn,Hi,Gi]);return B.createElement(j.Provider,{value:bc},Os)}function Ci(U){return se(ei,U)}var Yn=Ci();Yn.EXPAND_COLUMN=ge,Yn.INTERNAL_HOOKS=de,Yn.Column=Xt,Yn.ColumnGroup=Mr,Yn.Summary=H;var Hn=Yn,an=x(45680),pi=E(null),Ln=E(null);function ni(U,ee,Se){var Te=ee||1;return Se[U+Te]-(Se[U]||0)}function vi(U){var ee=U.rowInfo,Se=U.column,Te=U.colIndex,He=U.indent,Xe=U.index,ht=U.renderIndex,St=U.record,Ae=U.style,Re=U.className,Ye=U.inverse,et=U.getHeight,bt=Se.render,_t=Se.dataIndex,It=Se.className,Rt=Se.width,ur=h(Ln,["columnsOffset"]),fr=ur.columnsOffset,gr=gt(ee,Se,Te,He,Xe),Sr=gr.key,dn=gr.fixedInfo,Ar=gr.appendCellNode,yt=gr.additionalCellProps,_n=yt.style,gn=yt.colSpan,vr=gn===void 0?1:gn,Nr=yt.rowSpan,Or=Nr===void 0?1:Nr,br=Te-1,Zr=ni(br,vr,fr),Cn=vr>1?Rt-Zr:0,Xn=(0,je.Z)((0,je.Z)((0,je.Z)({},_n),Ae),{},{flex:"0 0 ".concat(Zr,"px"),width:"".concat(Zr,"px"),marginRight:Cn,pointerEvents:"auto"}),Vn=B.useMemo(function(){return Ye?Or<=1:vr===0||Or===0||Or>1},[Or,vr,Ye]);Vn?Xn.visibility="hidden":Ye&&(Xn.height=et==null?void 0:et(Or));var Nn=Vn?function(){return null}:bt,di={};return(Or===0||vr===0)&&(di.rowSpan=1,di.colSpan=1),B.createElement(cr,(0,$.Z)({className:D()(It,Re),ellipsis:Se.ellipsis,align:Se.align,scope:Se.rowScope,component:"div",prefixCls:ee.prefixCls,key:Sr,record:St,index:Xe,renderIndex:ht,dataIndex:_t,render:Nn,shouldCellUpdate:Se.shouldCellUpdate},dn,{appendNode:Ar,additionalProps:(0,je.Z)((0,je.Z)({},yt),{},{style:Xn},di)}))}var Mi=vi,Jn=["data","index","className","rowKey","style","extra","getHeight"],_i=B.forwardRef(function(U,ee){var Se=U.data,Te=U.index,He=U.className,Xe=U.rowKey,ht=U.style,St=U.extra,Ae=U.getHeight,Re=(0,it.Z)(U,Jn),Ye=Se.record,et=Se.indent,bt=Se.index,_t=h(j,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),It=_t.scrollX,Rt=_t.flattenColumns,ur=_t.prefixCls,fr=_t.fixColumn,gr=_t.componentWidth,Sr=De(Ye,Xe,Te,et),dn=Sr.rowSupportExpand,Ar=Sr.expanded,yt=Sr.rowProps,_n=Sr.expandedRowRender,gn=Sr.expandedRowClassName,vr;if(dn&&Ar){var Nr=_n(Ye,Te,et+1,Ar),Or=gn==null?void 0:gn(Ye,Te,et),br={};fr&&(br={style:(0,q.Z)({},"--virtual-width","".concat(gr,"px"))});var Zr="".concat(ur,"-expanded-row-cell");vr=B.createElement("div",{className:D()("".concat(ur,"-expanded-row"),"".concat(ur,"-expanded-row-level-").concat(et+1),Or)},B.createElement(cr,{component:"div",prefixCls:ur,className:D()(Zr,(0,q.Z)({},"".concat(Zr,"-fixed"),fr)),additionalProps:br},Nr))}var Cn=(0,je.Z)((0,je.Z)({},ht),{},{width:It});St&&(Cn.position="absolute",Cn.pointerEvents="none");var Xn=B.createElement("div",(0,$.Z)({},yt,Re,{ref:dn?null:ee,className:D()(He,"".concat(ur,"-row"),yt==null?void 0:yt.className,(0,q.Z)({},"".concat(ur,"-row-extra"),St)),style:(0,je.Z)((0,je.Z)({},Cn),yt==null?void 0:yt.style)}),Rt.map(function(Vn,Nn){return B.createElement(Mi,{key:Nn,rowInfo:Sr,column:Vn,colIndex:Nn,indent:et,index:Te,renderIndex:bt,record:Ye,inverse:St,getHeight:Ae})}));return dn?B.createElement("div",{ref:ee},Xn,vr):Xn}),ra=te(_i),ai=ra,An=B.forwardRef(function(U,ee){var Se=U.data,Te=U.onScroll,He=h(j,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Xe=He.flattenColumns,ht=He.onColumnResize,St=He.getRowKey,Ae=He.expandedKeys,Re=He.prefixCls,Ye=He.childrenColumnName,et=He.emptyNode,bt=He.scrollX,_t=h(pi),It=_t.scrollY,Rt=_t.listItemHeight,ur=B.useRef(),fr=dt(Se,Ye,Ae,St),gr=B.useMemo(function(){var vr=0;return Xe.map(function(Nr){var Or=Nr.width,br=Nr.key;return vr+=Or,[br,Or,vr]})},[Xe]),Sr=B.useMemo(function(){return gr.map(function(vr){return vr[2]})},[gr]);B.useEffect(function(){gr.forEach(function(vr){var Nr=(0,Q.Z)(vr,2),Or=Nr[0],br=Nr[1];ht(Or,br)})},[gr]),B.useImperativeHandle(ee,function(){var vr={};return Object.defineProperty(vr,"scrollLeft",{get:function(){var Or;return((Or=ur.current)===null||Or===void 0?void 0:Or.getScrollInfo().x)||0},set:function(Or){var br;(br=ur.current)===null||br===void 0||br.scrollTo({left:Or})}}),vr});var dn=function(Nr,Or){var br,Zr=(br=fr[Or])===null||br===void 0?void 0:br.record,Cn=Nr.onCell;if(Cn){var Xn,Vn=Cn(Zr,Or);return(Xn=Vn==null?void 0:Vn.rowSpan)!==null&&Xn!==void 0?Xn:1}return 1},Ar=function(Nr){var Or=Nr.start,br=Nr.end,Zr=Nr.getSize,Cn=Nr.offsetY;if(br<0)return null;for(var Xn=Xe.filter(function(Bn){return dn(Bn,Or)===0}),Vn=Or,Nn=function(fi){if(Xn=Xn.filter(function(mi){return dn(mi,fi)===0}),!Xn.length)return Vn=fi,"break"},di=Or;di>=0;di-=1){var zn=Nn(di);if(zn==="break")break}for(var Li=Xe.filter(function(Bn){return dn(Bn,br)!==1}),vn=br,Fa=function(fi){if(Li=Li.filter(function(mi){return dn(mi,fi)!==1}),!Li.length)return vn=Math.max(fi-1,br),"break"},ji=br;ji<fr.length;ji+=1){var Ri=Fa(ji);if(Ri==="break")break}for(var ia=[],Hi=function(fi){var mi=fr[fi];if(!mi)return"continue";Xe.some(function(Zn){return dn(Zn,fi)>1})&&ia.push(fi)},Ka=Vn;Ka<=vn;Ka+=1)var Gi=Hi(Ka);var As=ia.map(function(Bn){var fi=fr[Bn],mi=St(fi.record,Bn),Zn=function(Ki){var Xi=Bn+Ki-1,qi=St(fr[Xi].record,Xi),Mo=Zr(mi,qi);return Mo.bottom-Mo.top},oi=Zr(mi);return B.createElement(ai,{key:Bn,data:fi,rowKey:mi,index:Bn,style:{top:-Cn+oi.top},extra:!0,getHeight:Zn})});return As},yt=B.useMemo(function(){return{columnsOffset:Sr}},[Sr]),_n="".concat(Re,"-tbody"),gn;return fr.length?gn=B.createElement(an.Z,{fullHeight:!1,ref:ur,className:D()(_n,"".concat(_n,"-virtual")),height:It,itemHeight:Rt||24,data:fr,itemKey:function(Nr){return St(Nr.record)},scrollWidth:bt,onVirtualScroll:function(Nr){var Or=Nr.x;Te({scrollLeft:Or})},extraRender:Ar},function(vr,Nr,Or){var br=St(vr.record,Nr);return B.createElement(ai,(0,$.Z)({data:vr,rowKey:br,index:Nr},Or))}):gn=B.createElement("div",{className:D()("".concat(Re,"-placeholder"))},B.createElement(cr,{component:"div",prefixCls:Re},et)),B.createElement(Ln.Provider,{value:yt},gn)}),rn=te(An),Tn=rn,wn=function(ee,Se){var Te=Se.ref,He=Se.onScroll;return B.createElement(Tn,{ref:Te,data:ee,onScroll:He})},jn=100;function ci(U){var ee=U.columns,Se=U.scroll,Te=U.prefixCls,He=Te===void 0?Gr:Te,Xe=U.className,ht=U.listItemHeight,St=Se||{},Ae=St.x,Re=St.y;typeof Ae!="number"&&(Ae=((ee||[]).length+1)*jn),typeof Re!="number"&&(Re=500);var Ye=B.useMemo(function(){return{scrollY:Re,listItemHeight:ht}},[Re,ht]);return B.createElement(pi.Provider,{value:Ye},B.createElement(Hn,(0,$.Z)({},U,{className:D()(Xe,"".concat(He,"-virtual")),scroll:(0,je.Z)((0,je.Z)({},Se),{},{x:Ae}),components:{body:wn},columns:ee,internalHooks:de,tailor:!0})))}function Bi(U){return se(ci,U)}var Aa=Bi(),Yi=null;function ao(U){return null}var ti=ao;function Un(U){return null}var Fi=Un,Ei=x(2738),ha=x(68031),No=x(36355),na=x(93891),Ji=x(19716),ja=x(8628),La=x(31724),eo=x(58421),vo=x(71418),wa=x(88088);function Ai(U){return function(Se){let{prefixCls:Te,onExpand:He,record:Xe,expanded:ht,expandable:St}=Se;const Ae=`${Te}-row-expand-icon`;return B.createElement("button",{type:"button",onClick:Re=>{He(Xe,Re),Re.stopPropagation()},className:D()(Ae,{[`${Ae}-spaced`]:!St,[`${Ae}-expanded`]:St&&ht,[`${Ae}-collapsed`]:St&&!ht}),"aria-label":ht?U.collapse:U.expand,"aria-expanded":ht})}}var ua=Ai;function Do(U,ee){return"key"in U&&U.key!==void 0&&U.key!==null?U.key:U.dataIndex?Array.isArray(U.dataIndex)?U.dataIndex.join("."):U.dataIndex:ee}function uo(U,ee){return ee?`${ee}-${U}`:`${U}`}function Xa(U,ee){return typeof U=="function"?U(ee):U}function Pi(U,ee){const Se=Xa(U,ee);return Object.prototype.toString.call(Se)==="[object Object]"?"":Se}var Po={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"},fo=Po,il=x(7657),$o=function(ee,Se){return B.createElement(il.Z,(0,$.Z)({},ee,{ref:Se,icon:fo}))},Hs=B.forwardRef($o),Zo=Hs,vl=x(56762);function za(U){const ee=B.useRef(U),Se=(0,vl.Z)();return[()=>ee.current,Te=>{ee.current=Te,Se()}]}var Qa=x(3113),_a=x(24905),js=x(38854),yi=x(64165),Vi=x(20834),Oi=x(40875),Wi=x(5112),da=x(17574),ka=x(47472),Vo=x(92832);function _o(U){let{value:ee,onChange:Se,filterSearch:Te,tablePrefixCls:He,locale:Xe}=U;return Te?B.createElement("div",{className:`${He}-filter-dropdown-search`},B.createElement(Vo.default,{prefix:B.createElement(ka.Z,null),placeholder:Xe.filterSearchPlaceholder,onChange:Se,value:ee,htmlSize:1,className:`${He}-filter-dropdown-search-input`})):null}var Bo=_o,$a=x(10228);const xa=U=>{const{keyCode:ee}=U;ee===$a.Z.ENTER&&U.stopPropagation()};var Oa=B.forwardRef((U,ee)=>B.createElement("div",{className:U.className,onClick:Se=>Se.stopPropagation(),onKeyDown:xa,ref:ee},U.children));function Ja(U){let ee=[];return(U||[]).forEach(Se=>{let{value:Te,children:He}=Se;ee.push(Te),He&&(ee=[].concat((0,cn.Z)(ee),(0,cn.Z)(Ja(He))))}),ee}function oo(U){return U.some(ee=>{let{children:Se}=ee;return Se})}function Ua(U,ee){return typeof ee=="string"||typeof ee=="number"?ee==null?void 0:ee.toString().toLowerCase().includes(U.trim().toLowerCase()):!1}function Da(U){let{filters:ee,prefixCls:Se,filteredKeys:Te,filterMultiple:He,searchValue:Xe,filterSearch:ht}=U;return ee.map((St,Ae)=>{const Re=String(St.value);if(St.children)return{key:Re||Ae,label:St.text,popupClassName:`${Se}-dropdown-submenu`,children:Da({filters:St.children,prefixCls:Se,filteredKeys:Te,filterMultiple:He,searchValue:Xe,filterSearch:ht})};const Ye=He?_a.default:Wi.ZP,et={key:St.value!==void 0?Re:Ae,label:B.createElement(B.Fragment,null,B.createElement(Ye,{checked:Te.includes(Re)}),B.createElement("span",null,St.text))};return Xe.trim()?typeof ht=="function"?ht(Xe,St)?et:null:Ua(Xe,St.text)?et:null:et})}function Fo(U){var ee,Se;const{tablePrefixCls:Te,prefixCls:He,column:Xe,dropdownPrefixCls:ht,columnKey:St,filterMultiple:Ae,filterMode:Re="menu",filterSearch:Ye=!1,filterState:et,triggerFilter:bt,locale:_t,children:It,getPopupContainer:Rt}=U,{filterDropdownOpen:ur,onFilterDropdownOpenChange:fr,filterResetToDefaultFilteredValue:gr,defaultFilteredValue:Sr,filterDropdownVisible:dn,onFilterDropdownVisibleChange:Ar}=Xe,[yt,_n]=B.useState(!1),gn=!!(et&&(!((ee=et.filteredKeys)===null||ee===void 0)&&ee.length||et.forceFiltered)),vr=kn=>{_n(kn),fr==null||fr(kn),Ar==null||Ar(kn)},Nr=(Se=ur!=null?ur:dn)!==null&&Se!==void 0?Se:yt,Or=et==null?void 0:et.filteredKeys,[br,Zr]=za(Or||[]),Cn=kn=>{let{selectedKeys:Ki}=kn;Zr(Ki)},Xn=(kn,Ki)=>{let{node:Xi,checked:qi}=Ki;Cn(Ae?{selectedKeys:kn}:{selectedKeys:qi&&Xi.key?[Xi.key]:[]})};B.useEffect(()=>{yt&&Cn({selectedKeys:Or||[]})},[Or]);const[Vn,Nn]=B.useState([]),di=kn=>{Nn(kn)},[zn,Li]=B.useState(""),vn=kn=>{const{value:Ki}=kn.target;Li(Ki)};B.useEffect(()=>{yt||Li("")},[yt]);const Fa=kn=>{const Ki=kn&&kn.length?kn:null;if(Ki===null&&(!et||!et.filteredKeys)||(0,W.Z)(Ki,et==null?void 0:et.filteredKeys,!0))return null;bt({column:Xe,key:St,filteredKeys:Ki})},ji=()=>{vr(!1),Fa(br())},Ri=function(){let{confirm:kn,closeDropdown:Ki}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};kn&&Fa([]),Ki&&vr(!1),Li(""),Zr(gr?(Sr||[]).map(Xi=>String(Xi)):[])},ia=function(){let{closeDropdown:kn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};kn&&vr(!1),Fa(br())},Hi=kn=>{kn&&Or!==void 0&&Zr(Or||[]),vr(kn),!kn&&!Xe.filterDropdown&&ji()},Ka=D()({[`${ht}-menu-without-submenu`]:!oo(Xe.filters||[])}),Gi=kn=>{if(kn.target.checked){const Ki=Ja(Xe==null?void 0:Xe.filters).map(Xi=>String(Xi));Zr(Ki)}else Zr([])},As=kn=>{let{filters:Ki}=kn;return(Ki||[]).map((Xi,qi)=>{const Mo=String(Xi.value),ki={title:Xi.text,key:Xi.value!==void 0?Mo:qi};return Xi.children&&(ki.children=As({filters:Xi.children})),ki})},Bn=kn=>{var Ki;return Object.assign(Object.assign({},kn),{text:kn.title,value:kn.key,children:((Ki=kn.children)===null||Ki===void 0?void 0:Ki.map(Xi=>Bn(Xi)))||[]})};let fi;if(typeof Xe.filterDropdown=="function")fi=Xe.filterDropdown({prefixCls:`${ht}-custom`,setSelectedKeys:kn=>Cn({selectedKeys:kn}),selectedKeys:br(),confirm:ia,clearFilters:Ri,filters:Xe.filters,visible:Nr,close:()=>{vr(!1)}});else if(Xe.filterDropdown)fi=Xe.filterDropdown;else{const kn=br()||[],Ki=()=>(Xe.filters||[]).length===0?B.createElement(yi.Z,{image:yi.Z.PRESENTED_IMAGE_SIMPLE,description:_t.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Re==="tree"?B.createElement(B.Fragment,null,B.createElement(Bo,{filterSearch:Ye,value:zn,onChange:vn,tablePrefixCls:Te,locale:_t}),B.createElement("div",{className:`${Te}-filter-dropdown-tree`},Ae?B.createElement(_a.default,{checked:kn.length===Ja(Xe.filters).length,indeterminate:kn.length>0&&kn.length<Ja(Xe.filters).length,className:`${Te}-filter-dropdown-checkall`,onChange:Gi},_t.filterCheckall):null,B.createElement(da.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Ae,checkStrictly:!Ae,className:`${ht}-menu`,onCheck:Xn,checkedKeys:kn,selectedKeys:kn,showIcon:!1,treeData:As({filters:Xe.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:zn.trim()?qi=>typeof Ye=="function"?Ye(zn,Bn(qi)):Ua(zn,qi.title):void 0}))):B.createElement(B.Fragment,null,B.createElement(Bo,{filterSearch:Ye,value:zn,onChange:vn,tablePrefixCls:Te,locale:_t}),B.createElement(Vi.default,{selectable:!0,multiple:Ae,prefixCls:`${ht}-menu`,className:Ka,onSelect:Cn,onDeselect:Cn,selectedKeys:kn,getPopupContainer:Rt,openKeys:Vn,onOpenChange:di,items:Da({filters:Xe.filters||[],filterSearch:Ye,prefixCls:He,filteredKeys:br(),filterMultiple:Ae,searchValue:zn})})),Xi=()=>gr?(0,W.Z)((Sr||[]).map(qi=>String(qi)),kn,!0):kn.length===0;fi=B.createElement(B.Fragment,null,Ki(),B.createElement("div",{className:`${He}-dropdown-btns`},B.createElement(Qa.ZP,{type:"link",size:"small",disabled:Xi(),onClick:()=>Ri()},_t.filterReset),B.createElement(Qa.ZP,{type:"primary",size:"small",onClick:ji},_t.filterConfirm)))}Xe.filterDropdown&&(fi=B.createElement(Oi.J,{selectable:void 0},fi));const mi=()=>B.createElement(Oa,{className:`${He}-dropdown`},fi);let Zn;typeof Xe.filterIcon=="function"?Zn=Xe.filterIcon(gn):Xe.filterIcon?Zn=Xe.filterIcon:Zn=B.createElement(Zo,null);const{direction:oi}=B.useContext(No.E_);return B.createElement("div",{className:`${He}-column`},B.createElement("span",{className:`${Te}-column-title`},It),B.createElement(js.Z,{dropdownRender:mi,trigger:["click"],open:Nr,onOpenChange:Hi,getPopupContainer:Rt,placement:oi==="rtl"?"bottomLeft":"bottomRight"},B.createElement("span",{role:"button",tabIndex:-1,className:D()(`${He}-trigger`,{active:gn}),onClick:kn=>{kn.stopPropagation()}},Zn)))}var Ll=Fo;function cs(U,ee,Se){let Te=[];return(U||[]).forEach((He,Xe)=>{var ht;const St=uo(Xe,Se);if(He.filters||"filterDropdown"in He||"onFilter"in He)if("filteredValue"in He){let Ae=He.filteredValue;"filterDropdown"in He||(Ae=(ht=Ae==null?void 0:Ae.map(String))!==null&&ht!==void 0?ht:Ae),Te.push({column:He,key:Do(He,St),filteredKeys:Ae,forceFiltered:He.filtered})}else Te.push({column:He,key:Do(He,St),filteredKeys:ee&&He.defaultFilteredValue?He.defaultFilteredValue:void 0,forceFiltered:He.filtered});"children"in He&&(Te=[].concat((0,cn.Z)(Te),(0,cn.Z)(cs(He.children,ee,St))))}),Te}function dl(U,ee,Se,Te,He,Xe,ht,St){return Se.map((Ae,Re)=>{const Ye=uo(Re,St),{filterMultiple:et=!0,filterMode:bt,filterSearch:_t}=Ae;let It=Ae;if(It.filters||It.filterDropdown){const Rt=Do(It,Ye),ur=Te.find(fr=>{let{key:gr}=fr;return Rt===gr});It=Object.assign(Object.assign({},It),{title:fr=>B.createElement(Ll,{tablePrefixCls:U,prefixCls:`${U}-filter`,dropdownPrefixCls:ee,column:It,columnKey:Rt,filterState:ur,filterMultiple:et,filterMode:bt,filterSearch:_t,triggerFilter:Xe,locale:He,getPopupContainer:ht},Xa(Ae.title,fr))})}return"children"in It&&(It=Object.assign(Object.assign({},It),{children:dl(U,ee,It.children,Te,He,Xe,ht,Ye)})),It})}function Oo(U){const ee={};return U.forEach(Se=>{let{key:Te,filteredKeys:He,column:Xe}=Se;const{filters:ht,filterDropdown:St}=Xe;if(St)ee[Te]=He||null;else if(Array.isArray(He)){const Ae=Ja(ht);ee[Te]=Ae.filter(Re=>He.includes(String(Re)))}else ee[Te]=null}),ee}function ks(U,ee){return ee.reduce((Se,Te)=>{const{column:{onFilter:He,filters:Xe},filteredKeys:ht}=Te;return He&&ht&&ht.length?Se.filter(St=>ht.some(Ae=>{const Re=Ja(Xe),Ye=Re.findIndex(bt=>String(bt)===String(Ae)),et=Ye!==-1?Re[Ye]:Ae;return He(et,St)})):Se},U)}const Io=U=>U.flatMap(ee=>"children"in ee?[ee].concat((0,cn.Z)(Io(ee.children||[]))):[ee]);function Kn(U){let{prefixCls:ee,dropdownPrefixCls:Se,mergedColumns:Te,onFilterChange:He,getPopupContainer:Xe,locale:ht}=U;const St=B.useMemo(()=>Io(Te||[]),[Te]),[Ae,Re]=B.useState(()=>cs(St,!0)),Ye=B.useMemo(()=>{const It=cs(St,!1);if(It.length===0)return It;let Rt=!0,ur=!0;if(It.forEach(fr=>{let{filteredKeys:gr}=fr;gr!==void 0?Rt=!1:ur=!1}),Rt){const fr=(St||[]).map((gr,Sr)=>Do(gr,uo(Sr)));return Ae.filter(gr=>{let{key:Sr}=gr;return fr.includes(Sr)}).map(gr=>{const Sr=St[fr.findIndex(dn=>dn===gr.key)];return Object.assign(Object.assign({},gr),{column:Object.assign(Object.assign({},gr.column),Sr),forceFiltered:Sr.filtered})})}return It},[St,Ae]),et=B.useMemo(()=>Oo(Ye),[Ye]),bt=It=>{const Rt=Ye.filter(ur=>{let{key:fr}=ur;return fr!==It.key});Rt.push(It),Re(Rt),He(Oo(Rt),Rt)};return[It=>dl(ee,Se,It,Ye,ht,bt,Xe),Ye,et]}var kl=Kn;function To(U,ee,Se){const Te=B.useRef({});function He(Xe){if(!Te.current||Te.current.data!==U||Te.current.childrenColumnName!==ee||Te.current.getRowKey!==Se){let St=function(Ae){Ae.forEach((Re,Ye)=>{const et=Se(Re,Ye);ht.set(et,Re),Re&&typeof Re=="object"&&ee in Re&&St(Re[ee]||[])})};const ht=new Map;St(U),Te.current={data:U,childrenColumnName:ee,kvMap:ht,getRowKey:Se}}return Te.current.kvMap.get(Xe)}return[He]}var Hl=x(50371),zs=function(U,ee){var Se={};for(var Te in U)Object.prototype.hasOwnProperty.call(U,Te)&&ee.indexOf(Te)<0&&(Se[Te]=U[Te]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Te=Object.getOwnPropertySymbols(U);He<Te.length;He++)ee.indexOf(Te[He])<0&&Object.prototype.propertyIsEnumerable.call(U,Te[He])&&(Se[Te[He]]=U[Te[He]]);return Se};const ms=10;function Pa(U,ee){const Se={current:U.current,pageSize:U.pageSize};return Object.keys(ee&&typeof ee=="object"?ee:{}).forEach(He=>{const Xe=U[He];typeof Xe!="function"&&(Se[He]=Xe)}),Se}function Uo(U,ee,Se){const Te=Se&&typeof Se=="object"?Se:{},{total:He=0}=Te,Xe=zs(Te,["total"]),[ht,St]=(0,B.useState)(()=>({current:"defaultCurrent"in Xe?Xe.defaultCurrent:1,pageSize:"defaultPageSize"in Xe?Xe.defaultPageSize:ms})),Ae=(0,Hl.Z)(ht,Xe,{total:He>0?He:U}),Re=Math.ceil((He||U)/Ae.pageSize);Ae.current>Re&&(Ae.current=Re||1);const Ye=(bt,_t)=>{St({current:bt!=null?bt:1,pageSize:_t||Ae.pageSize})},et=(bt,_t)=>{var It;Se&&((It=Se.onChange)===null||It===void 0||It.call(Se,bt,_t)),Ye(bt,_t),ee(bt,_t||(Ae==null?void 0:Ae.pageSize))};return Se===!1?[{},()=>{}]:[Object.assign(Object.assign({},Ae),{onChange:et}),Ye]}var jl=Uo,tc=x(84105),fl=x(35654),ma=x(90782),oa=x(71430),ho=x(18929);const Za={},to="SELECT_ALL",Ro="SELECT_INVERT",Ya="SELECT_NONE",Wo=[],Ds=(U,ee)=>{let Se=[];return(ee||[]).forEach(Te=>{Se.push(Te),Te&&typeof Te=="object"&&U in Te&&(Se=[].concat((0,cn.Z)(Se),(0,cn.Z)(Ds(U,Te[U]))))}),Se};var Xs=(U,ee)=>{const{preserveSelectedRowKeys:Se,selectedRowKeys:Te,defaultSelectedRowKeys:He,getCheckboxProps:Xe,onChange:ht,onSelect:St,onSelectAll:Ae,onSelectInvert:Re,onSelectNone:Ye,onSelectMultiple:et,columnWidth:bt,type:_t,selections:It,fixed:Rt,renderCell:ur,hideSelectAll:fr,checkStrictly:gr=!0}=ee||{},{prefixCls:Sr,data:dn,pageData:Ar,getRecordByKey:yt,getRowKey:_n,expandType:gn,childrenColumnName:vr,locale:Nr,getPopupContainer:Or}=U,[br,Zr]=(0,ho.Z)(Te||He||Wo,{value:Te}),Cn=B.useRef(new Map),Xn=(0,B.useCallback)(Bn=>{if(Se){const fi=new Map;Bn.forEach(mi=>{let Zn=yt(mi);!Zn&&Cn.current.has(mi)&&(Zn=Cn.current.get(mi)),fi.set(mi,Zn)}),Cn.current=fi}},[yt,Se]);B.useEffect(()=>{Xn(br)},[br]);const{keyEntities:Vn}=(0,B.useMemo)(()=>{if(gr)return{keyEntities:null};let Bn=dn;if(Se){const fi=new Set(dn.map((Zn,oi)=>_n(Zn,oi))),mi=Array.from(Cn.current).reduce((Zn,oi)=>{let[kn,Ki]=oi;return fi.has(kn)?Zn:Zn.concat(Ki)},[]);Bn=[].concat((0,cn.Z)(Bn),(0,cn.Z)(mi))}return(0,oa.I8)(Bn,{externalGetKey:_n,childrenPropName:vr})},[dn,_n,gr,vr,Se]),Nn=(0,B.useMemo)(()=>Ds(vr,Ar),[vr,Ar]),di=(0,B.useMemo)(()=>{const Bn=new Map;return Nn.forEach((fi,mi)=>{const Zn=_n(fi,mi),oi=(Xe?Xe(fi):null)||{};Bn.set(Zn,oi)}),Bn},[Nn,_n,Xe]),zn=(0,B.useCallback)(Bn=>{var fi;return!!(!((fi=di.get(_n(Bn)))===null||fi===void 0)&&fi.disabled)},[di,_n]),[Li,vn]=(0,B.useMemo)(()=>{if(gr)return[br||[],[]];const{checkedKeys:Bn,halfCheckedKeys:fi}=(0,ma.S)(br,!0,Vn,zn);return[Bn||[],fi]},[br,gr,Vn,zn]),Fa=(0,B.useMemo)(()=>{const Bn=_t==="radio"?Li.slice(0,1):Li;return new Set(Bn)},[Li,_t]),ji=(0,B.useMemo)(()=>_t==="radio"?new Set:new Set(vn),[vn,_t]),[Ri,ia]=(0,B.useState)(null);B.useEffect(()=>{ee||Zr(Wo)},[!!ee]);const Hi=(0,B.useCallback)((Bn,fi)=>{let mi,Zn;Xn(Bn),Se?(mi=Bn,Zn=Bn.map(oi=>Cn.current.get(oi))):(mi=[],Zn=[],Bn.forEach(oi=>{const kn=yt(oi);kn!==void 0&&(mi.push(oi),Zn.push(kn))})),Zr(mi),ht==null||ht(mi,Zn,{type:fi})},[Zr,yt,ht,Se]),Ka=(0,B.useCallback)((Bn,fi,mi,Zn)=>{if(St){const oi=mi.map(kn=>yt(kn));St(yt(Bn),fi,oi,Zn)}Hi(mi,"single")},[St,yt,Hi]),Gi=(0,B.useMemo)(()=>!It||fr?null:(It===!0?[to,Ro,Ya]:It).map(fi=>fi===to?{key:"all",text:Nr.selectionAll,onSelect(){Hi(dn.map((mi,Zn)=>_n(mi,Zn)).filter(mi=>{const Zn=di.get(mi);return!(Zn!=null&&Zn.disabled)||Fa.has(mi)}),"all")}}:fi===Ro?{key:"invert",text:Nr.selectInvert,onSelect(){const mi=new Set(Fa);Ar.forEach((oi,kn)=>{const Ki=_n(oi,kn),Xi=di.get(Ki);Xi!=null&&Xi.disabled||(mi.has(Ki)?mi.delete(Ki):mi.add(Ki))});const Zn=Array.from(mi);Re&&Re(Zn),Hi(Zn,"invert")}}:fi===Ya?{key:"none",text:Nr.selectNone,onSelect(){Ye==null||Ye(),Hi(Array.from(Fa).filter(mi=>{const Zn=di.get(mi);return Zn==null?void 0:Zn.disabled}),"none")}}:fi).map(fi=>Object.assign(Object.assign({},fi),{onSelect:function(){for(var mi,Zn,oi=arguments.length,kn=new Array(oi),Ki=0;Ki<oi;Ki++)kn[Ki]=arguments[Ki];(Zn=fi.onSelect)===null||Zn===void 0||(mi=Zn).call.apply(mi,[fi].concat(kn)),ia(null)}})),[It,Fa,Ar,_n,Re,Hi]);return[(0,B.useCallback)(Bn=>{var fi;if(!ee)return Bn.filter(ga=>ga!==Za);let mi=(0,cn.Z)(Bn);const Zn=new Set(Fa),oi=Nn.map(_n).filter(ga=>!di.get(ga).disabled),kn=oi.every(ga=>Zn.has(ga)),Ki=oi.some(ga=>Zn.has(ga)),Xi=()=>{const ga=[];kn?oi.forEach(fa=>{Zn.delete(fa),ga.push(fa)}):oi.forEach(fa=>{Zn.has(fa)||(Zn.add(fa),ga.push(fa))});const qr=Array.from(Zn);Ae==null||Ae(!kn,qr.map(fa=>yt(fa)),ga.map(fa=>yt(fa))),Hi(qr,"all"),ia(null)};let qi;if(_t!=="radio"){let ga;if(Gi){const Ii={getPopupContainer:Or,items:Gi.map((bo,Ko)=>{const{key:Bs,text:gs,onSelect:is}=bo;return{key:Bs!=null?Bs:Ko,onClick:()=>{is==null||is(oi)},label:gs}})};ga=B.createElement("div",{className:`${Sr}-selection-extra`},B.createElement(js.Z,{menu:Ii,getPopupContainer:Or},B.createElement("span",null,B.createElement(tc.Z,null))))}const qr=Nn.map((Ii,bo)=>{const Ko=_n(Ii,bo),Bs=di.get(Ko)||{};return Object.assign({checked:Zn.has(Ko)},Bs)}).filter(Ii=>{let{disabled:bo}=Ii;return bo}),fa=!!qr.length&&qr.length===Nn.length,so=fa&&qr.every(Ii=>{let{checked:bo}=Ii;return bo}),Va=fa&&qr.some(Ii=>{let{checked:bo}=Ii;return bo});qi=!fr&&B.createElement("div",{className:`${Sr}-selection`},B.createElement(_a.default,{checked:fa?so:!!Nn.length&&kn,indeterminate:fa?!so&&Va:!kn&&Ki,onChange:Xi,disabled:Nn.length===0||fa,"aria-label":ga?"Custom selection":"Select all",skipGroup:!0}),ga)}let Mo;_t==="radio"?Mo=(ga,qr,fa)=>{const so=_n(qr,fa),Va=Zn.has(so);return{node:B.createElement(Wi.ZP,Object.assign({},di.get(so),{checked:Va,onClick:Ii=>Ii.stopPropagation(),onChange:Ii=>{Zn.has(so)||Ka(so,!0,[so],Ii.nativeEvent)}})),checked:Va}}:Mo=(ga,qr,fa)=>{var so;const Va=_n(qr,fa),Ii=Zn.has(Va),bo=ji.has(Va),Ko=di.get(Va);let Bs;return gn==="nest"?Bs=bo:Bs=(so=Ko==null?void 0:Ko.indeterminate)!==null&&so!==void 0?so:bo,{node:B.createElement(_a.default,Object.assign({},Ko,{indeterminate:Bs,checked:Ii,skipGroup:!0,onClick:gs=>gs.stopPropagation(),onChange:gs=>{let{nativeEvent:is}=gs;const{shiftKey:us}=is;let bl=-1,as=-1;if(us&&gr){const $s=new Set([Ri,Va]);oi.some((ds,Lo)=>{if($s.has(ds))if(bl===-1)bl=Lo;else return as=Lo,!0;return!1})}if(as!==-1&&bl!==as&&gr){const $s=oi.slice(bl,as+1),ds=[];Ii?$s.forEach(wo=>{Zn.has(wo)&&(ds.push(wo),Zn.delete(wo))}):$s.forEach(wo=>{Zn.has(wo)||(ds.push(wo),Zn.add(wo))});const Lo=Array.from(Zn);et==null||et(!Ii,Lo.map(wo=>yt(wo)),ds.map(wo=>yt(wo))),Hi(Lo,"multiple")}else{const $s=Li;if(gr){const ds=Ii?(0,fl._5)($s,Va):(0,fl.L0)($s,Va);Ka(Va,!Ii,ds,is)}else{const ds=(0,ma.S)([].concat((0,cn.Z)($s),[Va]),!0,Vn,zn),{checkedKeys:Lo,halfCheckedKeys:wo}=ds;let qs=Lo;if(Ii){const Nl=new Set(Lo);Nl.delete(Va),qs=(0,ma.S)(Array.from(Nl),{checked:!1,halfCheckedKeys:wo},Vn,zn).checkedKeys}Ka(Va,!Ii,qs,is)}}ia(Ii?null:Va)}})),checked:Ii}};const ki=(ga,qr,fa)=>{const{node:so,checked:Va}=Mo(ga,qr,fa);return ur?ur(Va,qr,fa,so):so};if(!mi.includes(Za))if(mi.findIndex(ga=>{var qr;return((qr=ga[sr])===null||qr===void 0?void 0:qr.columnType)==="EXPAND_COLUMN"})===0){const[ga,...qr]=mi;mi=[ga,Za].concat((0,cn.Z)(qr))}else mi=[Za].concat((0,cn.Z)(mi));const ns=mi.indexOf(Za);mi=mi.filter((ga,qr)=>ga!==Za||qr===ns);const ro=mi[ns-1],Qo=mi[ns+1];let bn=Rt;bn===void 0&&((Qo==null?void 0:Qo.fixed)!==void 0?bn=Qo.fixed:(ro==null?void 0:ro.fixed)!==void 0&&(bn=ro.fixed)),bn&&ro&&((fi=ro[sr])===null||fi===void 0?void 0:fi.columnType)==="EXPAND_COLUMN"&&ro.fixed===void 0&&(ro.fixed=bn);const no=D()(`${Sr}-selection-col`,{[`${Sr}-selection-col-with-dropdown`]:It&&_t==="checkbox"}),Cs={fixed:bn,width:bt,className:`${Sr}-selection-column`,title:ee.columnTitle||qi,render:ki,onCell:ee.onCell,[sr]:{className:no}};return mi.map(ga=>ga===Za?Cs:ga)},[_n,Nn,ee,Li,Fa,ji,bt,Gi,gn,Ri,di,et,Ka,zn]),Fa]},al=x(89489),Wc=x(59477),Dl=x(6848);const Js="ascend",lA="descend";function cA(U){return typeof U.sorter=="object"&&typeof U.sorter.multiple=="number"?U.sorter.multiple:!1}function hc(U){return typeof U=="function"?U:U&&typeof U=="object"&&U.compare?U.compare:!1}function wA(U,ee){return ee?U[U.indexOf(ee)+1]:U[0]}function Pl(U,ee,Se){let Te=[];function He(Xe,ht){Te.push({column:Xe,key:Do(Xe,ht),multiplePriority:cA(Xe),sortOrder:Xe.sortOrder})}return(U||[]).forEach((Xe,ht)=>{const St=uo(ht,Se);Xe.children?("sortOrder"in Xe&&He(Xe,St),Te=[].concat((0,cn.Z)(Te),(0,cn.Z)(Pl(Xe.children,ee,St)))):Xe.sorter&&("sortOrder"in Xe?He(Xe,St):ee&&Xe.defaultSortOrder&&Te.push({column:Xe,key:Do(Xe,St),multiplePriority:cA(Xe),sortOrder:Xe.defaultSortOrder}))}),Te}function Ys(U,ee,Se,Te,He,Xe,ht,St){return(ee||[]).map((Ae,Re)=>{const Ye=uo(Re,St);let et=Ae;if(et.sorter){const bt=et.sortDirections||He,_t=et.showSorterTooltip===void 0?ht:et.showSorterTooltip,It=Do(et,Ye),Rt=Se.find(gn=>{let{key:vr}=gn;return vr===It}),ur=Rt?Rt.sortOrder:null,fr=wA(bt,ur);let gr;if(Ae.sortIcon)gr=Ae.sortIcon({sortOrder:ur});else{const gn=bt.includes(Js)&&B.createElement(Wc.Z,{className:D()(`${U}-column-sorter-up`,{active:ur===Js})}),vr=bt.includes(lA)&&B.createElement(al.Z,{className:D()(`${U}-column-sorter-down`,{active:ur===lA})});gr=B.createElement("span",{className:D()(`${U}-column-sorter`,{[`${U}-column-sorter-full`]:!!(gn&&vr)})},B.createElement("span",{className:`${U}-column-sorter-inner`,"aria-hidden":"true"},gn,vr))}const{cancelSort:Sr,triggerAsc:dn,triggerDesc:Ar}=Xe||{};let yt=Sr;fr===lA?yt=Ar:fr===Js&&(yt=dn);const _n=typeof _t=="object"?_t:{title:yt};et=Object.assign(Object.assign({},et),{className:D()(et.className,{[`${U}-column-sort`]:ur}),title:gn=>{const vr=B.createElement("div",{className:`${U}-column-sorters`},B.createElement("span",{className:`${U}-column-title`},Xa(Ae.title,gn)),gr);return _t?B.createElement(Dl.Z,Object.assign({},_n),vr):vr},onHeaderCell:gn=>{const vr=Ae.onHeaderCell&&Ae.onHeaderCell(gn)||{},Nr=vr.onClick,Or=vr.onKeyDown;vr.onClick=Cn=>{Te({column:Ae,key:It,sortOrder:fr,multiplePriority:cA(Ae)}),Nr==null||Nr(Cn)},vr.onKeyDown=Cn=>{Cn.keyCode===$a.Z.ENTER&&(Te({column:Ae,key:It,sortOrder:fr,multiplePriority:cA(Ae)}),Or==null||Or(Cn))};const br=Pi(Ae.title,{}),Zr=br==null?void 0:br.toString();return ur?vr["aria-sort"]=ur==="ascend"?"ascending":"descending":vr["aria-label"]=Zr||"",vr.className=D()(vr.className,`${U}-column-has-sorters`),vr.tabIndex=0,Ae.ellipsis&&(vr.title=(br!=null?br:"").toString()),vr}})}return"children"in et&&(et=Object.assign(Object.assign({},et),{children:Ys(U,et.children,Se,Te,He,Xe,ht,Ye)})),et})}function ol(U){const{column:ee,sortOrder:Se}=U;return{column:ee,order:Se,field:ee.dataIndex,columnKey:ee.key}}function sl(U){const ee=U.filter(Se=>{let{sortOrder:Te}=Se;return Te}).map(ol);return ee.length===0&&U.length?Object.assign(Object.assign({},ol(U[U.length-1])),{column:void 0}):ee.length<=1?ee[0]||{}:ee}function Ta(U,ee,Se){const Te=ee.slice().sort((ht,St)=>St.multiplePriority-ht.multiplePriority),He=U.slice(),Xe=Te.filter(ht=>{let{column:{sorter:St},sortOrder:Ae}=ht;return hc(St)&&Ae});return Xe.length?He.sort((ht,St)=>{for(let Ae=0;Ae<Xe.length;Ae+=1){const Re=Xe[Ae],{column:{sorter:Ye},sortOrder:et}=Re,bt=hc(Ye);if(bt&&et){const _t=bt(ht,St,et);if(_t!==0)return et===Js?_t:-_t}}return 0}).map(ht=>{const St=ht[Se];return St?Object.assign(Object.assign({},ht),{[Se]:Ta(St,ee,Se)}):ht}):He}function po(U){let{prefixCls:ee,mergedColumns:Se,onSorterChange:Te,sortDirections:He,tableLocale:Xe,showSorterTooltip:ht}=U;const[St,Ae]=B.useState(Pl(Se,!0)),Re=B.useMemo(()=>{let It=!0;const Rt=Pl(Se,!1);if(!Rt.length)return St;const ur=[];function fr(Sr){It?ur.push(Sr):ur.push(Object.assign(Object.assign({},Sr),{sortOrder:null}))}let gr=null;return Rt.forEach(Sr=>{gr===null?(fr(Sr),Sr.sortOrder&&(Sr.multiplePriority===!1?It=!1:gr=!0)):(gr&&Sr.multiplePriority!==!1||(It=!1),fr(Sr))}),ur},[Se,St]),Ye=B.useMemo(()=>{const It=Re.map(Rt=>{let{column:ur,sortOrder:fr}=Rt;return{column:ur,order:fr}});return{sortColumns:It,sortColumn:It[0]&&It[0].column,sortOrder:It[0]&&It[0].order}},[Re]);function et(It){let Rt;It.multiplePriority===!1||!Re.length||Re[0].multiplePriority===!1?Rt=[It]:Rt=[].concat((0,cn.Z)(Re.filter(ur=>{let{key:fr}=ur;return fr!==It.key})),[It]),Ae(Rt),Te(sl(Rt),Rt)}return[It=>Ys(ee,It,Re,et,He,Xe,ht),Re,Ye,()=>sl(Re)]}function mo(U,ee){return U.map(Se=>{const Te=Object.assign({},Se);return Te.title=Xa(Se.title,ee),"children"in Te&&(Te.children=mo(Te.children,ee)),Te})}function Go(U){return[B.useCallback(Se=>mo(Se,U),[U])]}var Ps=Ci((U,ee)=>{const{_renderTimes:Se}=U,{_renderTimes:Te}=ee;return Se!==Te}),kc=Bi((U,ee)=>{const{_renderTimes:Se}=U,{_renderTimes:Te}=ee;return Se!==Te}),yl=x(64993),Gc=x(17313),xA=x(83116),CA=x(37613),mc=U=>{const{componentCls:ee}=U,Se=`${U.lineWidth}px ${U.lineType} ${U.tableBorderColor}`,Te=(He,Xe,ht)=>({[`&${ee}-${He}`]:{[`> ${ee}-container`]:{[`> ${ee}-content, > ${ee}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${ee}-expanded-row-fixed`]:{margin:`-${Xe}px -${ht+U.lineWidth}px`}}}}}});return{[`${ee}-wrapper`]:{[`${ee}${ee}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${ee}-title`]:{border:Se,borderBottom:0},[`> ${ee}-container`]:{borderInlineStart:Se,borderTop:Se,[`
> ${ee}-content,
> ${ee}-header,
> ${ee}-body,
> ${ee}-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:Se},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Se},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${ee}-cell-fix-right-first::after`]:{borderInlineEnd:Se}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${ee}-expanded-row-fixed`]:{margin:`-${U.tablePaddingVertical}px -${U.tablePaddingHorizontal+U.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:U.lineWidth,bottom:0,borderInlineEnd:Se,content:'""'}}}}}},[`&${ee}-scroll-horizontal`]:{[`> ${ee}-container > ${ee}-body`]:{"> table > tbody":{[`
> tr${ee}-expanded-row,
> tr${ee}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Te("middle",U.tablePaddingVerticalMiddle,U.tablePaddingHorizontalMiddle)),Te("small",U.tablePaddingVerticalSmall,U.tablePaddingHorizontalSmall)),{[`> ${ee}-footer`]:{border:Se,borderTop:0}}),[`${ee}-cell`]:{[`${ee}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${U.lineWidth}px 0 ${U.lineWidth}px ${U.tableHeaderBg}`}},[`${ee}-bordered ${ee}-cell-scrollbar`]:{borderInlineEnd:Se}}}},KA=U=>{const{componentCls:ee}=U;return{[`${ee}-wrapper`]:{[`${ee}-cell-ellipsis`]:Object.assign(Object.assign({},Gc.vS),{wordBreak:"keep-all",[`
&${ee}-cell-fix-left-last,
&${ee}-cell-fix-right-first
`]:{overflow:"visible",[`${ee}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${ee}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},td=U=>{const{componentCls:ee}=U;return{[`${ee}-wrapper`]:{[`${ee}-tbody > tr${ee}-placeholder`]:{textAlign:"center",color:U.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:U.colorBgContainer}}}}},lu=x(15969),Ru=U=>{const{componentCls:ee,antCls:Se,controlInteractiveSize:Te,motionDurationSlow:He,lineWidth:Xe,paddingXS:ht,lineType:St,tableBorderColor:Ae,tableExpandIconBg:Re,tableExpandColumnWidth:Ye,borderRadius:et,fontSize:bt,fontSizeSM:_t,lineHeight:It,tablePaddingVertical:Rt,tablePaddingHorizontal:ur,tableExpandedRowBg:fr,paddingXXS:gr}=U,Sr=Te/2-Xe,dn=Sr*2+Xe*3,Ar=`${Xe}px ${St} ${Ae}`,yt=gr-Xe;return{[`${ee}-wrapper`]:{[`${ee}-expand-icon-col`]:{width:Ye},[`${ee}-row-expand-icon-cell`]:{textAlign:"center",[`${ee}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${ee}-row-indent`]:{height:1,float:"left"},[`${ee}-row-expand-icon`]:Object.assign(Object.assign({},(0,lu.N)(U)),{position:"relative",float:"left",boxSizing:"border-box",width:dn,height:dn,padding:0,color:"inherit",lineHeight:`${dn}px`,background:Re,border:Ar,borderRadius:et,transform:`scale(${Te/dn})`,transition:`all ${He}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${He} ease-out`,content:'""'},"&::before":{top:Sr,insetInlineEnd:yt,insetInlineStart:yt,height:Xe},"&::after":{top:yt,bottom:yt,insetInlineStart:Sr,width:Xe,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"}}),[`${ee}-row-indent + ${ee}-row-expand-icon`]:{marginTop:(bt*It-Xe*3)/2-Math.ceil((_t*1.4-Xe*3)/2),marginInlineEnd:ht},[`tr${ee}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:fr}},[`${Se}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${ee}-expanded-row-fixed`]:{position:"relative",margin:`-${Rt}px -${ur}px`,padding:`${Rt}px ${ur}px`}}}},c=U=>{const{componentCls:ee,antCls:Se,iconCls:Te,tableFilterDropdownWidth:He,tableFilterDropdownSearchWidth:Xe,paddingXXS:ht,paddingXS:St,colorText:Ae,lineWidth:Re,lineType:Ye,tableBorderColor:et,tableHeaderIconColor:bt,fontSizeSM:_t,tablePaddingHorizontal:It,borderRadius:Rt,motionDurationSlow:ur,colorTextDescription:fr,colorPrimary:gr,tableHeaderFilterActiveBg:Sr,colorTextDisabled:dn,tableFilterDropdownBg:Ar,tableFilterDropdownHeight:yt,controlItemBgHover:_n,controlItemBgActive:gn,boxShadowSecondary:vr,filterDropdownMenuBg:Nr}=U,Or=`${Se}-dropdown`,br=`${ee}-filter-dropdown`,Zr=`${Se}-tree`,Cn=`${Re}px ${Ye} ${et}`;return[{[`${ee}-wrapper`]:{[`${ee}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${ee}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-ht,marginInline:`${ht}px ${-It/2}px`,padding:`0 ${ht}px`,color:bt,fontSize:_t,borderRadius:Rt,cursor:"pointer",transition:`all ${ur}`,"&:hover":{color:fr,background:Sr},"&.active":{color:gr}}}},{[`${Se}-dropdown`]:{[br]:Object.assign(Object.assign({},(0,Gc.Wf)(U)),{minWidth:He,backgroundColor:Ar,borderRadius:Rt,boxShadow:vr,overflow:"hidden",[`${Or}-menu`]:{maxHeight:yt,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Nr,"&:empty::after":{display:"block",padding:`${St}px 0`,color:dn,fontSize:_t,textAlign:"center",content:'"Not Found"'}},[`${br}-tree`]:{paddingBlock:`${St}px 0`,paddingInline:St,[Zr]:{padding:0},[`${Zr}-treenode ${Zr}-node-content-wrapper:hover`]:{backgroundColor:_n},[`${Zr}-treenode-checkbox-checked ${Zr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:gn}}},[`${br}-search`]:{padding:St,borderBottom:Cn,"&-input":{input:{minWidth:Xe},[Te]:{color:dn}}},[`${br}-checkall`]:{width:"100%",marginBottom:ht,marginInlineStart:ht},[`${br}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${St-Re}px ${St}px`,overflow:"hidden",borderTop:Cn}})}},{[`${Se}-dropdown ${br}, ${br}-submenu`]:{[`${Se}-checkbox-wrapper + span`]:{paddingInlineStart:St,color:Ae},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},l=U=>{const{componentCls:ee,lineWidth:Se,colorSplit:Te,motionDurationSlow:He,zIndexTableFixed:Xe,tableBg:ht,zIndexTableSticky:St}=U,Ae=Te;return{[`${ee}-wrapper`]:{[`
${ee}-cell-fix-left,
${ee}-cell-fix-right
`]:{position:"sticky !important",zIndex:Xe,background:ht},[`
${ee}-cell-fix-left-first::after,
${ee}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Se,width:30,transform:"translateX(100%)",transition:`box-shadow ${He}`,content:'""',pointerEvents:"none"},[`${ee}-cell-fix-left-all::after`]:{display:"none"},[`
${ee}-cell-fix-right-first::after,
${ee}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-Se,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${He}`,content:'""',pointerEvents:"none"},[`${ee}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:St+1,width:30,transition:`box-shadow ${He}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${ee}-ping-left`]:{[`&:not(${ee}-has-fix-left) ${ee}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Ae}`}},[`
${ee}-cell-fix-left-first::after,
${ee}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${Ae}`},[`${ee}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${ee}-ping-right`]:{[`&:not(${ee}-has-fix-right) ${ee}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Ae}`}},[`
${ee}-cell-fix-right-first::after,
${ee}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${Ae}`}}}}},F=U=>{const{componentCls:ee,antCls:Se}=U;return{[`${ee}-wrapper`]:{[`${ee}-pagination${Se}-pagination`]:{margin:`${U.margin}px 0`},[`${ee}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:U.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},T=U=>{const{componentCls:ee,tableRadius:Se}=U;return{[`${ee}-wrapper`]:{[ee]:{[`${ee}-title, ${ee}-header`]:{borderRadius:`${Se}px ${Se}px 0 0`},[`${ee}-title + ${ee}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${ee}-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:Se,borderStartEndRadius:Se,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Se},"> *:last-child":{borderStartEndRadius:Se}}},"&-footer":{borderRadius:`0 0 ${Se}px ${Se}px`}}}}},ae=U=>{const{componentCls:ee}=U;return{[`${ee}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${ee}-pagination-left`]:{justifyContent:"flex-end"},[`${ee}-pagination-right`]:{justifyContent:"flex-start"},[`${ee}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${ee}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${ee}-row-indent`]:{float:"right"}}}}},$e=U=>{const{componentCls:ee,antCls:Se,iconCls:Te,fontSizeIcon:He,padding:Xe,paddingXS:ht,tableHeaderIconColor:St,tableHeaderIconColorHover:Ae,tableSelectionColumnWidth:Re}=U;return{[`${ee}-wrapper`]:{[`${ee}-selection-col`]:{width:Re,[`&${ee}-selection-col-with-dropdown`]:{width:Re+He+Xe/4}},[`${ee}-bordered ${ee}-selection-col`]:{width:Re+ht*2,[`&${ee}-selection-col-with-dropdown`]:{width:Re+He+Xe/4+ht*2}},[`
table tr th${ee}-selection-column,
table tr td${ee}-selection-column
`]:{paddingInlineEnd:U.paddingXS,paddingInlineStart:U.paddingXS,textAlign:"center",[`${Se}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${ee}-selection-column${ee}-cell-fix-left`]:{zIndex:U.zIndexTableFixed+1},[`table tr th${ee}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${ee}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${ee}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${U.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${U.tablePaddingHorizontal/4}px`,[Te]:{color:St,fontSize:He,verticalAlign:"baseline","&:hover":{color:Ae}}}}}},st=U=>{const{componentCls:ee}=U,Se=(Te,He,Xe,ht)=>({[`${ee}${ee}-${Te}`]:{fontSize:ht,[`
${ee}-title,
${ee}-footer,
${ee}-cell,
${ee}-thead > tr > th,
${ee}-tbody > tr > th,
${ee}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${He}px ${Xe}px`},[`${ee}-filter-trigger`]:{marginInlineEnd:`-${Xe/2}px`},[`${ee}-expanded-row-fixed`]:{margin:`-${He}px -${Xe}px`},[`${ee}-tbody`]:{[`${ee}-wrapper:only-child ${ee}`]:{marginBlock:`-${He}px`,marginInline:`${U.tableExpandColumnWidth-Xe}px -${Xe}px`}},[`${ee}-selection-column`]:{paddingInlineStart:`${Xe/4}px`}}});return{[`${ee}-wrapper`]:Object.assign(Object.assign({},Se("middle",U.tablePaddingVerticalMiddle,U.tablePaddingHorizontalMiddle,U.tableFontSizeMiddle)),Se("small",U.tablePaddingVerticalSmall,U.tablePaddingHorizontalSmall,U.tableFontSizeSmall))}},Lt=U=>{const{componentCls:ee,marginXXS:Se,fontSizeIcon:Te,tableHeaderIconColor:He,tableHeaderIconColorHover:Xe}=U;return{[`${ee}-wrapper`]:{[`${ee}-thead th${ee}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${U.motionDurationSlow}`,"&:hover":{background:U.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:U.colorPrimary},[`
&${ee}-cell-fix-left:hover,
&${ee}-cell-fix-right:hover
`]:{background:U.tableFixedHeaderSortActiveBg}},[`${ee}-thead th${ee}-column-sort`]:{background:U.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${ee}-column-sort`]:{background:U.tableBodySortBg},[`${ee}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${ee}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${ee}-column-sorter`]:{marginInlineStart:Se,color:He,fontSize:0,transition:`color ${U.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Te,"&.active":{color:U.colorPrimary}},[`${ee}-column-sorter-up + ${ee}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${ee}-column-sorters:hover ${ee}-column-sorter`]:{color:Xe}}}},kt=U=>{const{componentCls:ee,opacityLoading:Se,tableScrollThumbBg:Te,tableScrollThumbBgHover:He,tableScrollThumbSize:Xe,tableScrollBg:ht,zIndexTableSticky:St,stickyScrollBarBorderRadius:Ae}=U,Re=`${U.lineWidth}px ${U.lineType} ${U.tableBorderColor}`;return{[`${ee}-wrapper`]:{[`${ee}-sticky`]:{"&-holder":{position:"sticky",zIndex:St,background:U.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Xe}px !important`,zIndex:St,display:"flex",alignItems:"center",background:ht,borderTop:Re,opacity:Se,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Xe,backgroundColor:Te,borderRadius:Ae,transition:`all ${U.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:He}}}}}}},Dt=U=>{const{componentCls:ee,lineWidth:Se,tableBorderColor:Te}=U,He=`${Se}px ${U.lineType} ${Te}`;return{[`${ee}-wrapper`]:{[`${ee}-summary`]:{position:"relative",zIndex:U.zIndexTableFixed,background:U.tableBg,"> tr":{"> th, > td":{borderBottom:He}}},[`div${ee}-summary`]:{boxShadow:`0 -${Se}px 0 ${Te}`}}}},wr=U=>{const{componentCls:ee}=U,Se=`${U.lineWidth}px ${U.lineType} ${U.tableBorderColor}`,Te=`${ee}-expanded-row-cell`;return{[`${ee}-wrapper`]:{[`${ee}-tbody-virtual`]:{[`${ee}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${ee}-cell`]:{borderBottom:Se},[`${ee}-expanded-row`]:{[`${Te}${Te}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${U.lineWidth}px)`,borderInlineEnd:"none"}}},[`${ee}-bordered`]:{[`${ee}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Se,position:"absolute"},[`${ee}-cell`]:{borderInlineEnd:Se,[`&${ee}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-U.lineWidth,borderInlineStart:Se}}}}}}};const Qr=U=>{const{componentCls:ee,fontWeightStrong:Se,tablePaddingVertical:Te,tablePaddingHorizontal:He,lineWidth:Xe,lineType:ht,tableBorderColor:St,tableFontSize:Ae,tableBg:Re,tableRadius:Ye,tableHeaderTextColor:et,motionDurationMid:bt,tableHeaderBg:_t,tableHeaderCellSplitColor:It,tableRowHoverBg:Rt,tableSelectedRowBg:ur,tableSelectedRowHoverBg:fr,tableFooterTextColor:gr,tableFooterBg:Sr,paddingContentVerticalLG:dn}=U,Ar=`${Xe}px ${ht} ${St}`;return{[`${ee}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Gc.dF)()),{[ee]:Object.assign(Object.assign({},(0,Gc.Wf)(U)),{fontSize:Ae,background:Re,borderRadius:`${Ye}px ${Ye}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Ye}px ${Ye}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${ee}-cell,
${ee}-thead > tr > th,
${ee}-tbody > tr > th,
${ee}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${dn}px ${He}px`,overflowWrap:"break-word"},[`${ee}-title`]:{padding:`${Te}px ${He}px`},[`${ee}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:et,fontWeight:Se,textAlign:"start",background:_t,borderBottom:Ar,transition:`background ${bt} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${ee}-selection-column):not(${ee}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:It,transform:"translateY(-50%)",transition:`background-color ${bt}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${ee}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${bt}, border-color ${bt}`,borderBottom:Ar,[`
> ${ee}-wrapper:only-child,
> ${ee}-expanded-row-fixed > ${ee}-wrapper:only-child
`]:{[ee]:{marginBlock:`-${Te}px`,marginInline:`${U.tableExpandColumnWidth-He}px -${He}px`,[`${ee}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:et,fontWeight:Se,textAlign:"start",background:_t,borderBottom:Ar,transition:`background ${bt} ease`},[`
&${ee}-row:hover > th,
&${ee}-row:hover > td,
> th${ee}-cell-row-hover,
> td${ee}-cell-row-hover
`]:{background:Rt},[`&${ee}-row-selected`]:{"> th, > td":{background:ur},"&:hover > th, &:hover > td":{background:fr}}}},[`${ee}-footer`]:{padding:`${Te}px ${He}px`,color:gr,background:Sr}})}};var hn=(0,xA.Z)("Table",U=>{const{colorTextHeading:ee,colorSplit:Se,colorIcon:Te,colorIconHover:He,opacityLoading:Xe,colorBgContainer:ht,controlInteractiveSize:St,headerBg:Ae,headerColor:Re,headerSortActiveBg:Ye,headerSortHoverBg:et,bodySortBg:bt,rowHoverBg:_t,rowSelectedBg:It,rowSelectedHoverBg:Rt,rowExpandedBg:ur,cellPaddingBlock:fr,cellPaddingInline:gr,cellPaddingBlockMD:Sr,cellPaddingInlineMD:dn,cellPaddingBlockSM:Ar,cellPaddingInlineSM:yt,borderColor:_n,footerBg:gn,footerColor:vr,headerBorderRadius:Nr,cellFontSize:Or,cellFontSizeMD:br,cellFontSizeSM:Zr,headerSplitColor:Cn,fixedHeaderSortActiveBg:Xn,headerFilterHoverBg:Vn,filterDropdownBg:Nn,expandIconBg:di,selectionColumnWidth:zn,stickyScrollBarBg:Li}=U,vn=new yl.C(Te),Fa=new yl.C(He),ji=2,Ri=(0,CA.TS)(U,{tableFontSize:Or,tableBg:ht,tableRadius:Nr,tablePaddingVertical:fr,tablePaddingHorizontal:gr,tablePaddingVerticalMiddle:Sr,tablePaddingHorizontalMiddle:dn,tablePaddingVerticalSmall:Ar,tablePaddingHorizontalSmall:yt,tableBorderColor:_n,tableHeaderTextColor:Re,tableHeaderBg:Ae,tableFooterTextColor:vr,tableFooterBg:gn,tableHeaderCellSplitColor:Cn,tableHeaderSortBg:Ye,tableHeaderSortHoverBg:et,tableHeaderIconColor:vn.clone().setAlpha(vn.getAlpha()*Xe).toRgbString(),tableHeaderIconColorHover:Fa.clone().setAlpha(Fa.getAlpha()*Xe).toRgbString(),tableBodySortBg:bt,tableFixedHeaderSortActiveBg:Xn,tableHeaderFilterActiveBg:Vn,tableFilterDropdownBg:Nn,tableRowHoverBg:_t,tableSelectedRowBg:It,tableSelectedRowHoverBg:Rt,zIndexTableFixed:ji,zIndexTableSticky:ji+1,tableFontSizeMiddle:br,tableFontSizeSmall:Zr,tableSelectionColumnWidth:zn,tableExpandIconBg:di,tableExpandColumnWidth:St+2*U.padding,tableExpandedRowBg:ur,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Li,tableScrollThumbBgHover:ee,tableScrollBg:Se});return[Qr(Ri),F(Ri),Dt(Ri),Lt(Ri),c(Ri),mc(Ri),T(Ri),Ru(Ri),Dt(Ri),td(Ri),$e(Ri),l(Ri),kt(Ri),KA(Ri),st(Ri),ae(Ri),wr(Ri)]},U=>{const{colorFillAlter:ee,colorBgContainer:Se,colorTextHeading:Te,colorFillSecondary:He,colorFillContent:Xe,controlItemBgActive:ht,controlItemBgActiveHover:St,padding:Ae,paddingSM:Re,paddingXS:Ye,colorBorderSecondary:et,borderRadiusLG:bt,fontSize:_t,controlHeight:It,colorTextPlaceholder:Rt}=U,ur=new yl.C(He).onBackground(Se).toHexShortString(),fr=new yl.C(Xe).onBackground(Se).toHexShortString(),gr=new yl.C(ee).onBackground(Se).toHexShortString();return{headerBg:gr,headerColor:Te,headerSortActiveBg:ur,headerSortHoverBg:fr,bodySortBg:gr,rowHoverBg:gr,rowSelectedBg:ht,rowSelectedHoverBg:St,rowExpandedBg:ee,cellPaddingBlock:Ae,cellPaddingInline:Ae,cellPaddingBlockMD:Re,cellPaddingInlineMD:Ye,cellPaddingBlockSM:Ye,cellPaddingInlineSM:Ye,borderColor:et,headerBorderRadius:bt,footerBg:gr,footerColor:Te,cellFontSize:_t,cellFontSizeMD:_t,cellFontSizeSM:_t,headerSplitColor:et,fixedHeaderSortActiveBg:ur,headerFilterHoverBg:Xe,filterDropdownMenuBg:Se,filterDropdownBg:Se,expandIconBg:Se,selectionColumnWidth:It,stickyScrollBarBg:Rt,stickyScrollBarBorderRadius:100}});const _r=[],Vt=(U,ee)=>{const{prefixCls:Se,className:Te,rootClassName:He,style:Xe,size:ht,bordered:St,dropdownPrefixCls:Ae,dataSource:Re,pagination:Ye,rowSelection:et,rowKey:bt="key",rowClassName:_t,columns:It,children:Rt,childrenColumnName:ur,onChange:fr,getPopupContainer:gr,loading:Sr,expandIcon:dn,expandable:Ar,expandedRowRender:yt,expandIconColumnIndex:_n,indentSize:gn,scroll:vr,sortDirections:Nr,locale:Or,showSorterTooltip:br=!0,virtual:Zr}=U,Cn=B.useMemo(()=>It||me(Rt),[It,Rt]),Xn=B.useMemo(()=>Cn.some(Ca=>Ca.responsive),[Cn]),Vn=(0,ja.Z)(Xn),Nn=B.useMemo(()=>{const Ca=new Set(Object.keys(Vn).filter(ea=>Vn[ea]));return Cn.filter(ea=>!ea.responsive||ea.responsive.some(vs=>Ca.has(vs)))},[Cn,Vn]),di=(0,Ei.Z)(U,["className","style","columns"]),{locale:zn=La.Z,direction:Li,table:vn,renderEmpty:Fa,getPrefixCls:ji,getPopupContainer:Ri}=B.useContext(No.E_),ia=(0,Ji.Z)(ht),Hi=Object.assign(Object.assign({},zn.Table),Or),Ka=Re||_r,Gi=ji("table",Se),As=ji("dropdown",Ae),Bn=Object.assign({childrenColumnName:ur,expandIconColumnIndex:_n},Ar),{childrenColumnName:fi="children"}=Bn,mi=B.useMemo(()=>Ka.some(Ca=>Ca==null?void 0:Ca[fi])?"nest":yt||Ar&&Ar.expandedRowRender?"row":null,[Ka]),Zn={body:B.useRef()},oi=B.useMemo(()=>typeof bt=="function"?bt:Ca=>Ca==null?void 0:Ca[bt],[bt]),[kn]=To(Ka,fi,oi),Ki={},Xi=function(Ca,ea){let vs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var go,fs,Ss;const Es=Object.assign(Object.assign({},Ki),Ca);vs&&((go=Ki.resetPagination)===null||go===void 0||go.call(Ki),!((fs=Es.pagination)===null||fs===void 0)&&fs.current&&(Es.pagination.current=1),Ye&&Ye.onChange&&Ye.onChange(1,(Ss=Es.pagination)===null||Ss===void 0?void 0:Ss.pageSize)),vr&&vr.scrollToFirstRowOnChange!==!1&&Zn.body.current&&(0,ha.Z)(0,{getContainer:()=>Zn.body.current}),fr==null||fr(Es.pagination,Es.filters,Es.sorter,{currentDataSource:ks(Ta(Ka,Es.sorterStates,fi),Es.filterStates),action:ea})},qi=(Ca,ea)=>{Xi({sorter:Ca,sorterStates:ea},"sort",!1)},[Mo,ki,ns,ro]=po({prefixCls:Gi,mergedColumns:Nn,onSorterChange:qi,sortDirections:Nr||["ascend","descend"],tableLocale:Hi,showSorterTooltip:br}),Qo=B.useMemo(()=>Ta(Ka,ki,fi),[Ka,ki]);Ki.sorter=ro(),Ki.sorterStates=ki;const bn=(Ca,ea)=>{Xi({filters:Ca,filterStates:ea},"filter",!0)},[no,Cs,ga]=kl({prefixCls:Gi,locale:Hi,dropdownPrefixCls:As,mergedColumns:Nn,onFilterChange:bn,getPopupContainer:gr||Ri}),qr=ks(Qo,Cs);Ki.filters=ga,Ki.filterStates=Cs;const fa=B.useMemo(()=>{const Ca={};return Object.keys(ga).forEach(ea=>{ga[ea]!==null&&(Ca[ea]=ga[ea])}),Object.assign(Object.assign({},ns),{filters:Ca})},[ns,ga]),[so]=Go(fa),Va=(Ca,ea)=>{Xi({pagination:Object.assign(Object.assign({},Ki.pagination),{current:Ca,pageSize:ea})},"paginate")},[Ii,bo]=jl(qr.length,Va,Ye);Ki.pagination=Ye===!1?{}:Pa(Ii,Ye),Ki.resetPagination=bo;const Ko=B.useMemo(()=>{if(Ye===!1||!Ii.pageSize)return qr;const{current:Ca=1,total:ea,pageSize:vs=ms}=Ii;return qr.length<ea?qr.length>vs?qr.slice((Ca-1)*vs,Ca*vs):qr:qr.slice((Ca-1)*vs,Ca*vs)},[!!Ye,qr,Ii&&Ii.current,Ii&&Ii.pageSize,Ii&&Ii.total]),[Bs,gs]=Xs({prefixCls:Gi,data:qr,pageData:Ko,getRowKey:oi,getRecordByKey:kn,expandType:mi,childrenColumnName:fi,locale:Hi,getPopupContainer:gr||Ri},et),is=(Ca,ea,vs)=>{let go;return typeof _t=="function"?go=D()(_t(Ca,ea,vs)):go=D()(_t),D()({[`${Gi}-row-selected`]:gs.has(oi(Ca,ea))},go)};Bn.__PARENT_RENDER_ICON__=Bn.expandIcon,Bn.expandIcon=Bn.expandIcon||dn||ua(Hi),mi==="nest"&&Bn.expandIconColumnIndex===void 0?Bn.expandIconColumnIndex=et?1:0:Bn.expandIconColumnIndex>0&&et&&(Bn.expandIconColumnIndex-=1),typeof Bn.indentSize!="number"&&(Bn.indentSize=typeof gn=="number"?gn:15);const us=B.useCallback(Ca=>so(Bs(no(Mo(Ca)))),[Mo,no,Bs]);let bl,as;if(Ye!==!1&&(Ii!=null&&Ii.total)){let Ca;Ii.size?Ca=Ii.size:Ca=ia==="small"||ia==="middle"?"small":void 0;const ea=fs=>B.createElement(eo.Z,Object.assign({},Ii,{className:D()(`${Gi}-pagination ${Gi}-pagination-${fs}`,Ii.className),size:Ca})),vs=Li==="rtl"?"left":"right",{position:go}=Ii;if(go!==null&&Array.isArray(go)){const fs=go.find(_s=>_s.includes("top")),Ss=go.find(_s=>_s.includes("bottom")),Es=go.every(_s=>`${_s}`=="none");!fs&&!Ss&&!Es&&(as=ea(vs)),fs&&(bl=ea(fs.toLowerCase().replace("top",""))),Ss&&(as=ea(Ss.toLowerCase().replace("bottom","")))}else as=ea(vs)}let $s;typeof Sr=="boolean"?$s={spinning:Sr}:typeof Sr=="object"&&($s=Object.assign({spinning:!0},Sr));const[ds,Lo]=hn(Gi),[,wo]=(0,wa.Z)(),qs=D()(`${Gi}-wrapper`,vn==null?void 0:vn.className,{[`${Gi}-wrapper-rtl`]:Li==="rtl"},Te,He,Lo),Nl=Object.assign(Object.assign({},vn==null?void 0:vn.style),Xe),zl=Or&&Or.emptyText||(Fa==null?void 0:Fa("Table"))||B.createElement(na.Z,{componentName:"Table"}),wl=Zr?kc:Ps,BA={},Xc=B.useMemo(()=>{const{fontSize:Ca,lineHeight:ea,padding:vs,paddingXS:go,paddingSM:fs}=wo,Ss=Math.floor(Ca*ea);switch(ia){case"large":return vs*2+Ss;case"small":return go*2+Ss;default:return fs*2+Ss}},[wo,ia]);return Zr&&(BA.listItemHeight=Xc),ds(B.createElement("div",{ref:ee,className:qs,style:Nl},B.createElement(vo.Z,Object.assign({spinning:!1},$s),bl,B.createElement(wl,Object.assign({},BA,di,{columns:Nn,direction:Li,expandable:Bn,prefixCls:Gi,className:D()({[`${Gi}-middle`]:ia==="middle",[`${Gi}-small`]:ia==="small",[`${Gi}-bordered`]:St,[`${Gi}-empty`]:Ka.length===0}),data:Ko,rowKey:oi,rowClassName:is,emptyText:zl,internalHooks:de,internalRefs:Zn,transformColumns:us})),as)))};var Lr=B.forwardRef(Vt);const Jr=(U,ee)=>{const Se=B.useRef(0);return Se.current+=1,B.createElement(Lr,Object.assign({},U,{ref:ee,_renderTimes:Se.current}))},vt=B.forwardRef(Jr);vt.SELECTION_COLUMN=Za,vt.EXPAND_COLUMN=ge,vt.SELECTION_ALL=to,vt.SELECTION_INVERT=Ro,vt.SELECTION_NONE=Ya,vt.Column=ti,vt.ColumnGroup=Fi,vt.Summary=H;var Ct=vt,rr=Ct},99313:function(xn,Yt,x){"use strict";x.d(Yt,{default:function(){return Ti}});var ge=x(99267),de=x(18785),Q=x(62772),Oe=x(92310),ie=x.n(Oe),W=x(72308),B=x(49618),f=x(77321),E=x(52487),h=x(62853),$=x(74416),S=x(59301),_=x(49658),N=x(18929),R=x(77900),I=(0,S.createContext)(null),J=S.forwardRef(function(me,Ue){var Le=me.prefixCls,lt=me.className,$t=me.style,Qt=me.id,Br=me.active,pr=me.tabKey,Kr=me.children;return S.createElement("div",{id:Qt&&"".concat(Qt,"-panel-").concat(pr),role:"tabpanel",tabIndex:Br?0:-1,"aria-labelledby":Qt&&"".concat(Qt,"-tab-").concat(pr),"aria-hidden":!Br,style:$t,className:ie()(Le,Br&&"".concat(Le,"-active"),lt),ref:Ue},Kr)}),K=J,se=["key","forceRender","style","className"];function te(me){var Ue=me.id,Le=me.activeKey,lt=me.animated,$t=me.tabPosition,Qt=me.destroyInactiveTabPane,Br=S.useContext(I),pr=Br.prefixCls,Kr=Br.tabs,Wr=lt.tabPane,en="".concat(pr,"-tabpane");return S.createElement("div",{className:ie()("".concat(pr,"-content-holder"))},S.createElement("div",{className:ie()("".concat(pr,"-content"),"".concat(pr,"-content-").concat($t),(0,B.Z)({},"".concat(pr,"-content-animated"),Wr))},Kr.map(function(Vr){var jr=Vr.key,Yr=Vr.forceRender,mn=Vr.style,tn=Vr.className,Dn=(0,$.Z)(Vr,se),Qn=jr===Le;return S.createElement(R.default,(0,W.Z)({key:jr,visible:Qn,forceRender:Yr,removeOnLeave:!!Qt,leavedClassName:"".concat(en,"-hidden")},lt.tabPaneMotion),function(ui,On){var on=ui.style,Kt=ui.className;return S.createElement(K,(0,W.Z)({},Dn,{prefixCls:en,id:Ue,tabKey:jr,animated:Wr,active:Qn,style:(0,f.Z)((0,f.Z)({},mn),on),className:ie()(tn,Kt),ref:On}))})})))}var G=x(80702),V=x(29301),j=x(6089),le=x(8654),he={width:0,height:0,left:0,top:0};function Ne(me,Ue,Le){return(0,S.useMemo)(function(){for(var lt,$t=new Map,Qt=Ue.get((lt=me[0])===null||lt===void 0?void 0:lt.key)||he,Br=Qt.left+Qt.width,pr=0;pr<me.length;pr+=1){var Kr=me[pr].key,Wr=Ue.get(Kr);if(!Wr){var en;Wr=Ue.get((en=me[pr-1])===null||en===void 0?void 0:en.key)||he}var Vr=$t.get(Kr)||(0,f.Z)({},Wr);Vr.right=Br-Vr.left-Vr.width,$t.set(Kr,Vr)}return $t},[me.map(function(lt){return lt.key}).join("_"),Ue,Le])}function Be(me,Ue){var Le=S.useRef(me),lt=S.useState({}),$t=(0,E.Z)(lt,2),Qt=$t[1];function Br(pr){var Kr=typeof pr=="function"?pr(Le.current):pr;Kr!==Le.current&&Ue(Kr,Le.current),Le.current=Kr,Qt({})}return[Le.current,Br]}var je=.1,q=.01,ce=20,D=Math.pow(.995,ce);function ot(me,Ue){var Le=(0,S.useState)(),lt=(0,E.Z)(Le,2),$t=lt[0],Qt=lt[1],Br=(0,S.useState)(0),pr=(0,E.Z)(Br,2),Kr=pr[0],Wr=pr[1],en=(0,S.useState)(0),Vr=(0,E.Z)(en,2),jr=Vr[0],Yr=Vr[1],mn=(0,S.useState)(),tn=(0,E.Z)(mn,2),Dn=tn[0],Qn=tn[1],ui=(0,S.useRef)();function On(Xt){var Ur=Xt.touches[0],Mr=Ur.screenX,Gr=Ur.screenY;Qt({x:Mr,y:Gr}),window.clearInterval(ui.current)}function on(Xt){if($t){Xt.preventDefault();var Ur=Xt.touches[0],Mr=Ur.screenX,Gr=Ur.screenY;Qt({x:Mr,y:Gr});var Mn=Mr-$t.x,Pn=Gr-$t.y;Ue(Mn,Pn);var si=Date.now();Wr(si),Yr(si-Kr),Qn({x:Mn,y:Pn})}}function Kt(){if($t&&(Qt(null),Qn(null),Dn)){var Xt=Dn.x/jr,Ur=Dn.y/jr,Mr=Math.abs(Xt),Gr=Math.abs(Ur);if(Math.max(Mr,Gr)<je)return;var Mn=Xt,Pn=Ur;ui.current=window.setInterval(function(){if(Math.abs(Mn)<q&&Math.abs(Pn)<q){window.clearInterval(ui.current);return}Mn*=D,Pn*=D,Ue(Mn*ce,Pn*ce)},ce)}}var Zt=(0,S.useRef)();function qt(Xt){var Ur=Xt.deltaX,Mr=Xt.deltaY,Gr=0,Mn=Math.abs(Ur),Pn=Math.abs(Mr);Mn===Pn?Gr=Zt.current==="x"?Ur:Mr:Mn>Pn?(Gr=Ur,Zt.current="x"):(Gr=Mr,Zt.current="y"),Ue(-Gr,-Gr)&&Xt.preventDefault()}var er=(0,S.useRef)(null);er.current={onTouchStart:On,onTouchMove:on,onTouchEnd:Kt,onWheel:qt},S.useEffect(function(){function Xt(Mn){er.current.onTouchStart(Mn)}function Ur(Mn){er.current.onTouchMove(Mn)}function Mr(Mn){er.current.onTouchEnd(Mn)}function Gr(Mn){er.current.onWheel(Mn)}return document.addEventListener("touchmove",Ur,{passive:!1}),document.addEventListener("touchend",Mr,{passive:!1}),me.current.addEventListener("touchstart",Xt,{passive:!1}),me.current.addEventListener("wheel",Gr),function(){document.removeEventListener("touchmove",Ur),document.removeEventListener("touchend",Mr)}},[])}var ke=x(34280);function Ce(me){var Ue=(0,S.useState)(0),Le=(0,E.Z)(Ue,2),lt=Le[0],$t=Le[1],Qt=(0,S.useRef)(0),Br=(0,S.useRef)();return Br.current=me,(0,ke.o)(function(){var pr;(pr=Br.current)===null||pr===void 0||pr.call(Br)},[lt]),function(){Qt.current===lt&&(Qt.current+=1,$t(Qt.current))}}function Qe(me){var Ue=(0,S.useRef)([]),Le=(0,S.useState)({}),lt=(0,E.Z)(Le,2),$t=lt[1],Qt=(0,S.useRef)(typeof me=="function"?me():me),Br=Ce(function(){var Kr=Qt.current;Ue.current.forEach(function(Wr){Kr=Wr(Kr)}),Ue.current=[],Qt.current=Kr,$t({})});function pr(Kr){Ue.current.push(Kr),Br()}return[Qt.current,pr]}var ve={width:0,height:0,left:0,top:0,right:0};function Pe(me,Ue,Le,lt,$t,Qt,Br){var pr=Br.tabs,Kr=Br.tabPosition,Wr=Br.rtl,en,Vr,jr;return["top","bottom"].includes(Kr)?(en="width",Vr=Wr?"right":"left",jr=Math.abs(Le)):(en="height",Vr="top",jr=-Le),(0,S.useMemo)(function(){if(!pr.length)return[0,0];for(var Yr=pr.length,mn=Yr,tn=0;tn<Yr;tn+=1){var Dn=me.get(pr[tn].key)||ve;if(Dn[Vr]+Dn[en]>jr+Ue){mn=tn-1;break}}for(var Qn=0,ui=Yr-1;ui>=0;ui-=1){var On=me.get(pr[ui].key)||ve;if(On[Vr]<jr){Qn=ui+1;break}}return Qn>=mn?[0,0]:[Qn,mn]},[me,Ue,lt,$t,Qt,jr,Kr,pr.map(function(Yr){return Yr.key}).join("_"),Wr])}function fe(me){var Ue;return me instanceof Map?(Ue={},me.forEach(function(Le,lt){Ue[lt]=Le})):Ue=me,JSON.stringify(Ue)}var ye="TABS_DQ";function at(me){return String(me).replace(/"/g,ye)}function rt(me,Ue,Le,lt){return!(!Le||lt||me===!1||me===void 0&&(Ue===!1||Ue===null))}function nt(me,Ue){var Le=me.prefixCls,lt=me.editable,$t=me.locale,Qt=me.style;return!lt||lt.showAdd===!1?null:S.createElement("button",{ref:Ue,type:"button",className:"".concat(Le,"-nav-add"),style:Qt,"aria-label":($t==null?void 0:$t.addAriaLabel)||"Add tab",onClick:function(pr){lt.onEdit("add",{event:pr})}},lt.addIcon||"+")}var ut=S.forwardRef(nt),Pt=S.forwardRef(function(me,Ue){var Le=me.position,lt=me.prefixCls,$t=me.extra;if(!$t)return null;var Qt,Br={};return(0,h.Z)($t)==="object"&&!S.isValidElement($t)?Br=$t:Br.right=$t,Le==="right"&&(Qt=Br.right),Le==="left"&&(Qt=Br.left),Qt?S.createElement("div",{className:"".concat(lt,"-extra-content"),ref:Ue},Qt):null}),Ht=Pt,Ut=x(31561),cr=x(15285),or=x(10228);function Cr(me,Ue){var Le=me.prefixCls,lt=me.id,$t=me.tabs,Qt=me.locale,Br=me.mobile,pr=me.moreIcon,Kr=pr===void 0?"More":pr,Wr=me.moreTransitionName,en=me.style,Vr=me.className,jr=me.editable,Yr=me.tabBarGutter,mn=me.rtl,tn=me.removeAriaLabel,Dn=me.onTabClick,Qn=me.getPopupContainer,ui=me.popupClassName,On=(0,S.useState)(!1),on=(0,E.Z)(On,2),Kt=on[0],Zt=on[1],qt=(0,S.useState)(null),er=(0,E.Z)(qt,2),Xt=er[0],Ur=er[1],Mr="".concat(lt,"-more-popup"),Gr="".concat(Le,"-dropdown"),Mn=Xt!==null?"".concat(Mr,"-").concat(Xt):null,Pn=Qt==null?void 0:Qt.dropdownAriaLabel;function si(Ln,ni){Ln.preventDefault(),Ln.stopPropagation(),jr.onEdit("remove",{key:ni,event:Ln})}var ei=S.createElement(cr.ZP,{onClick:function(ni){var vi=ni.key,Mi=ni.domEvent;Dn(vi,Mi),Zt(!1)},prefixCls:"".concat(Gr,"-menu"),id:Mr,tabIndex:-1,role:"listbox","aria-activedescendant":Mn,selectedKeys:[Xt],"aria-label":Pn!==void 0?Pn:"expanded dropdown"},$t.map(function(Ln){var ni=Ln.closable,vi=Ln.disabled,Mi=Ln.closeIcon,Jn=Ln.key,_i=Ln.label,ra=rt(ni,Mi,jr,vi);return S.createElement(cr.sN,{key:Jn,id:"".concat(Mr,"-").concat(Jn),role:"option","aria-controls":lt&&"".concat(lt,"-panel-").concat(Jn),disabled:vi},S.createElement("span",null,_i),ra&&S.createElement("button",{type:"button","aria-label":tn||"remove",tabIndex:0,className:"".concat(Gr,"-menu-item-remove"),onClick:function(An){An.stopPropagation(),si(An,Jn)}},Mi||jr.removeIcon||"\xD7"))}));function Ci(Ln){for(var ni=$t.filter(function(ra){return!ra.disabled}),vi=ni.findIndex(function(ra){return ra.key===Xt})||0,Mi=ni.length,Jn=0;Jn<Mi;Jn+=1){vi=(vi+Ln+Mi)%Mi;var _i=ni[vi];if(!_i.disabled){Ur(_i.key);return}}}function Yn(Ln){var ni=Ln.which;if(!Kt){[or.Z.DOWN,or.Z.SPACE,or.Z.ENTER].includes(ni)&&(Zt(!0),Ln.preventDefault());return}switch(ni){case or.Z.UP:Ci(-1),Ln.preventDefault();break;case or.Z.DOWN:Ci(1),Ln.preventDefault();break;case or.Z.ESC:Zt(!1);break;case or.Z.SPACE:case or.Z.ENTER:Xt!==null&&Dn(Xt,Ln);break}}(0,S.useEffect)(function(){var Ln=document.getElementById(Mn);Ln&&Ln.scrollIntoView&&Ln.scrollIntoView(!1)},[Xt]),(0,S.useEffect)(function(){Kt||Ur(null)},[Kt]);var Hn=(0,B.Z)({},mn?"marginRight":"marginLeft",Yr);$t.length||(Hn.visibility="hidden",Hn.order=1);var an=ie()((0,B.Z)({},"".concat(Gr,"-rtl"),mn)),pi=Br?null:S.createElement(Ut.Z,{prefixCls:Gr,overlay:ei,trigger:["hover"],visible:$t.length?Kt:!1,transitionName:Wr,onVisibleChange:Zt,overlayClassName:ie()(an,ui),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Qn},S.createElement("button",{type:"button",className:"".concat(Le,"-nav-more"),style:Hn,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Mr,id:"".concat(lt,"-more"),"aria-expanded":Kt,onKeyDown:Yn},Kr));return S.createElement("div",{className:ie()("".concat(Le,"-nav-operations"),Vr),style:en,ref:Ue},pi,S.createElement(ut,{prefixCls:Le,locale:Qt,editable:jr}))}var hr=S.memo(S.forwardRef(Cr),function(me,Ue){return Ue.tabMoving});function L(me){var Ue,Le=me.prefixCls,lt=me.id,$t=me.active,Qt=me.tab,Br=Qt.key,pr=Qt.label,Kr=Qt.disabled,Wr=Qt.closeIcon,en=me.closable,Vr=me.renderWrapper,jr=me.removeAriaLabel,Yr=me.editable,mn=me.onClick,tn=me.onFocus,Dn=me.style,Qn="".concat(Le,"-tab"),ui=rt(en,Wr,Yr,Kr);function On(Zt){Kr||mn(Zt)}function on(Zt){Zt.preventDefault(),Zt.stopPropagation(),Yr.onEdit("remove",{key:Br,event:Zt})}var Kt=S.createElement("div",{key:Br,"data-node-key":at(Br),className:ie()(Qn,(Ue={},(0,B.Z)(Ue,"".concat(Qn,"-with-remove"),ui),(0,B.Z)(Ue,"".concat(Qn,"-active"),$t),(0,B.Z)(Ue,"".concat(Qn,"-disabled"),Kr),Ue)),style:Dn,onClick:On},S.createElement("div",{role:"tab","aria-selected":$t,id:lt&&"".concat(lt,"-tab-").concat(Br),className:"".concat(Qn,"-btn"),"aria-controls":lt&&"".concat(lt,"-panel-").concat(Br),"aria-disabled":Kr,tabIndex:Kr?null:0,onClick:function(qt){qt.stopPropagation(),On(qt)},onKeyDown:function(qt){[or.Z.SPACE,or.Z.ENTER].includes(qt.which)&&(qt.preventDefault(),On(qt))},onFocus:tn},pr),ui&&S.createElement("button",{type:"button","aria-label":jr||"remove",tabIndex:0,className:"".concat(Qn,"-remove"),onClick:function(qt){qt.stopPropagation(),on(qt)}},Wr||Yr.removeIcon||"\xD7"));return Vr?Vr(Kt):Kt}var it=L,k=x(16089),p=function(Ue){var Le=Ue.activeTabOffset,lt=Ue.horizontal,$t=Ue.rtl,Qt=Ue.indicatorSize,Br=(0,S.useState)(),pr=(0,E.Z)(Br,2),Kr=pr[0],Wr=pr[1],en=(0,S.useRef)(),Vr=function(mn){return typeof Qt=="function"?Qt(mn):typeof Qt=="number"?Qt:mn};function jr(){k.Z.cancel(en.current)}return(0,S.useEffect)(function(){var Yr={};return Le&&(lt?($t?(Yr.right=Le.right+Le.width/2,Yr.transform="translateX(50%)"):(Yr.left=Le.left+Le.width/2,Yr.transform="translateX(-50%)"),Yr.width=Vr(Le.width)):(Yr.top=Le.top+Le.height/2,Yr.transform="translateY(-50%)",Yr.height=Vr(Le.height))),jr(),en.current=(0,k.Z)(function(){Wr(Yr)}),jr},[Le,lt,$t,Qt]),{style:Kr}},d=p,w=function(Ue){var Le=Ue.current||{},lt=Le.offsetWidth,$t=lt===void 0?0:lt,Qt=Le.offsetHeight,Br=Qt===void 0?0:Qt;return[$t,Br]},Y=function(Ue,Le){return Ue[Le?0:1]};function Ee(me,Ue){var Le,lt=S.useContext(I),$t=lt.prefixCls,Qt=lt.tabs,Br=me.className,pr=me.style,Kr=me.id,Wr=me.animated,en=me.activeKey,Vr=me.rtl,jr=me.extra,Yr=me.editable,mn=me.locale,tn=me.tabPosition,Dn=me.tabBarGutter,Qn=me.children,ui=me.onTabClick,On=me.onTabScroll,on=me.indicatorSize,Kt=(0,S.useRef)(),Zt=(0,S.useRef)(),qt=(0,S.useRef)(),er=(0,S.useRef)(),Xt=(0,S.useRef)(),Ur=(0,S.useRef)(),Mr=(0,S.useRef)(),Gr=tn==="top"||tn==="bottom",Mn=Be(0,function(xa,pa){Gr&&On&&On({direction:xa>pa?"left":"right"})}),Pn=(0,E.Z)(Mn,2),si=Pn[0],ei=Pn[1],Ci=Be(0,function(xa,pa){!Gr&&On&&On({direction:xa>pa?"top":"bottom"})}),Yn=(0,E.Z)(Ci,2),Hn=Yn[0],an=Yn[1],pi=(0,S.useState)([0,0]),Ln=(0,E.Z)(pi,2),ni=Ln[0],vi=Ln[1],Mi=(0,S.useState)([0,0]),Jn=(0,E.Z)(Mi,2),_i=Jn[0],ra=Jn[1],ai=(0,S.useState)([0,0]),An=(0,E.Z)(ai,2),rn=An[0],Tn=An[1],wn=(0,S.useState)([0,0]),jn=(0,E.Z)(wn,2),ci=jn[0],Bi=jn[1],Aa=Qe(new Map),Yi=(0,E.Z)(Aa,2),ao=Yi[0],ti=Yi[1],Un=Ne(Qt,ao,_i[0]),Fi=Y(ni,Gr),Ei=Y(_i,Gr),ha=Y(rn,Gr),No=Y(ci,Gr),na=Fi<Ei+ha,Ji=na?Fi-No:Fi-ha,ja="".concat($t,"-nav-operations-hidden"),La=0,eo=0;Gr&&Vr?(La=0,eo=Math.max(0,Ei-Ji)):(La=Math.min(0,Ji-Ei),eo=0);function vo(xa){return xa<La?La:xa>eo?eo:xa}var wa=(0,S.useRef)(),Ai=(0,S.useState)(),ua=(0,E.Z)(Ai,2),Do=ua[0],uo=ua[1];function Xa(){uo(Date.now())}function Pi(){window.clearTimeout(wa.current)}ot(er,function(xa,pa){function Oa(Ja,oo){Ja(function(Ua){var Da=vo(Ua+oo);return Da})}return na?(Gr?Oa(ei,xa):Oa(an,pa),Pi(),Xa(),!0):!1}),(0,S.useEffect)(function(){return Pi(),Do&&(wa.current=window.setTimeout(function(){uo(0)},100)),Pi},[Do]);var Po=Pe(Un,Ji,Gr?si:Hn,Ei,ha,No,(0,f.Z)((0,f.Z)({},me),{},{tabs:Qt})),fo=(0,E.Z)(Po,2),il=fo[0],$o=fo[1],Hs=(0,j.Z)(function(){var xa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:en,pa=Un.get(xa)||{width:0,height:0,left:0,right:0,top:0};if(Gr){var Oa=si;Vr?pa.right<si?Oa=pa.right:pa.right+pa.width>si+Ji&&(Oa=pa.right+pa.width-Ji):pa.left<-si?Oa=-pa.left:pa.left+pa.width>-si+Ji&&(Oa=-(pa.left+pa.width-Ji)),an(0),ei(vo(Oa))}else{var Ja=Hn;pa.top<-Hn?Ja=-pa.top:pa.top+pa.height>-Hn+Ji&&(Ja=-(pa.top+pa.height-Ji)),ei(0),an(vo(Ja))}}),Zo={};tn==="top"||tn==="bottom"?Zo[Vr?"marginRight":"marginLeft"]=Dn:Zo.marginTop=Dn;var vl=Qt.map(function(xa,pa){var Oa=xa.key;return S.createElement(it,{id:Kr,prefixCls:$t,key:Oa,tab:xa,style:pa===0?void 0:Zo,closable:xa.closable,editable:Yr,active:Oa===en,renderWrapper:Qn,removeAriaLabel:mn==null?void 0:mn.removeAriaLabel,onClick:function(oo){ui(Oa,oo)},onFocus:function(){Hs(Oa),Xa(),er.current&&(Vr||(er.current.scrollLeft=0),er.current.scrollTop=0)}})}),za=function(){return ti(function(){var pa=new Map;return Qt.forEach(function(Oa){var Ja,oo=Oa.key,Ua=(Ja=Xt.current)===null||Ja===void 0?void 0:Ja.querySelector('[data-node-key="'.concat(at(oo),'"]'));Ua&&pa.set(oo,{width:Ua.offsetWidth,height:Ua.offsetHeight,left:Ua.offsetLeft,top:Ua.offsetTop})}),pa})};(0,S.useEffect)(function(){za()},[Qt.map(function(xa){return xa.key}).join("_")]);var Qa=Ce(function(){var xa=w(Kt),pa=w(Zt),Oa=w(qt);vi([xa[0]-pa[0]-Oa[0],xa[1]-pa[1]-Oa[1]]);var Ja=w(Mr);Tn(Ja);var oo=w(Ur);Bi(oo);var Ua=w(Xt);ra([Ua[0]-Ja[0],Ua[1]-Ja[1]]),za()}),_a=Qt.slice(0,il),js=Qt.slice($o+1),yi=[].concat((0,G.Z)(_a),(0,G.Z)(js)),Vi=Un.get(en),Oi=d({activeTabOffset:Vi,horizontal:Gr,rtl:Vr,indicatorSize:on}),Wi=Oi.style;(0,S.useEffect)(function(){Hs()},[en,La,eo,fe(Vi),fe(Un),Gr]),(0,S.useEffect)(function(){Qa()},[Vr]);var da=!!yi.length,ka="".concat($t,"-nav-wrap"),Vo,_o,Bo,$a;return Gr?Vr?(_o=si>0,Vo=si!==eo):(Vo=si<0,_o=si!==La):(Bo=Hn<0,$a=Hn!==La),S.createElement(V.Z,{onResize:Qa},S.createElement("div",{ref:(0,le.x1)(Ue,Kt),role:"tablist",className:ie()("".concat($t,"-nav"),Br),style:pr,onKeyDown:function(){Xa()}},S.createElement(Ht,{ref:Zt,position:"left",extra:jr,prefixCls:$t}),S.createElement(V.Z,{onResize:Qa},S.createElement("div",{className:ie()(ka,(Le={},(0,B.Z)(Le,"".concat(ka,"-ping-left"),Vo),(0,B.Z)(Le,"".concat(ka,"-ping-right"),_o),(0,B.Z)(Le,"".concat(ka,"-ping-top"),Bo),(0,B.Z)(Le,"".concat(ka,"-ping-bottom"),$a),Le)),ref:er},S.createElement(V.Z,{onResize:Qa},S.createElement("div",{ref:Xt,className:"".concat($t,"-nav-list"),style:{transform:"translate(".concat(si,"px, ").concat(Hn,"px)"),transition:Do?"none":void 0}},vl,S.createElement(ut,{ref:Mr,prefixCls:$t,locale:mn,editable:Yr,style:(0,f.Z)((0,f.Z)({},vl.length===0?void 0:Zo),{},{visibility:da?"hidden":null})}),S.createElement("div",{className:ie()("".concat($t,"-ink-bar"),(0,B.Z)({},"".concat($t,"-ink-bar-animated"),Wr.inkBar)),style:Wi}))))),S.createElement(hr,(0,W.Z)({},me,{removeAriaLabel:mn==null?void 0:mn.removeAriaLabel,ref:Ur,prefixCls:$t,tabs:yi,className:!da&&ja,tabMoving:!!Do})),S.createElement(Ht,{ref:qt,position:"right",extra:jr,prefixCls:$t})))}var H=S.forwardRef(Ee),ne=["renderTabBar"],Ge=["label","key"];function xe(me){var Ue=me.renderTabBar,Le=(0,$.Z)(me,ne),lt=S.useContext(I),$t=lt.tabs;if(Ue){var Qt=(0,f.Z)((0,f.Z)({},Le),{},{panes:$t.map(function(Br){var pr=Br.label,Kr=Br.key,Wr=(0,$.Z)(Br,Ge);return S.createElement(K,(0,W.Z)({tab:pr,key:Kr,tabKey:Kr},Wr))})});return Ue(Qt,H)}return S.createElement(H,Le)}var we=x(48736);function qe(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Ue;return me===!1?Ue={inkBar:!1,tabPane:!1}:me===!0?Ue={inkBar:!0,tabPane:!1}:Ue=(0,f.Z)({inkBar:!0},(0,h.Z)(me)==="object"?me:{}),Ue.tabPaneMotion&&Ue.tabPane===void 0&&(Ue.tabPane=!0),!Ue.tabPaneMotion&&Ue.tabPane&&(Ue.tabPane=!1),Ue}var Et=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],pe=0;function dt(me,Ue){var Le,lt=me.id,$t=me.prefixCls,Qt=$t===void 0?"rc-tabs":$t,Br=me.className,pr=me.items,Kr=me.direction,Wr=me.activeKey,en=me.defaultActiveKey,Vr=me.editable,jr=me.animated,Yr=me.tabPosition,mn=Yr===void 0?"top":Yr,tn=me.tabBarGutter,Dn=me.tabBarStyle,Qn=me.tabBarExtraContent,ui=me.locale,On=me.moreIcon,on=me.moreTransitionName,Kt=me.destroyInactiveTabPane,Zt=me.renderTabBar,qt=me.onChange,er=me.onTabClick,Xt=me.onTabScroll,Ur=me.getPopupContainer,Mr=me.popupClassName,Gr=me.indicatorSize,Mn=(0,$.Z)(me,Et),Pn=S.useMemo(function(){return(pr||[]).filter(function(Bi){return Bi&&(0,h.Z)(Bi)==="object"&&"key"in Bi})},[pr]),si=Kr==="rtl",ei=qe(jr),Ci=(0,S.useState)(!1),Yn=(0,E.Z)(Ci,2),Hn=Yn[0],an=Yn[1];(0,S.useEffect)(function(){an((0,_.Z)())},[]);var pi=(0,N.Z)(function(){var Bi;return(Bi=Pn[0])===null||Bi===void 0?void 0:Bi.key},{value:Wr,defaultValue:en}),Ln=(0,E.Z)(pi,2),ni=Ln[0],vi=Ln[1],Mi=(0,S.useState)(function(){return Pn.findIndex(function(Bi){return Bi.key===ni})}),Jn=(0,E.Z)(Mi,2),_i=Jn[0],ra=Jn[1];(0,S.useEffect)(function(){var Bi=Pn.findIndex(function(Yi){return Yi.key===ni});if(Bi===-1){var Aa;Bi=Math.max(0,Math.min(_i,Pn.length-1)),vi((Aa=Pn[Bi])===null||Aa===void 0?void 0:Aa.key)}ra(Bi)},[Pn.map(function(Bi){return Bi.key}).join("_"),ni,_i]);var ai=(0,N.Z)(null,{value:lt}),An=(0,E.Z)(ai,2),rn=An[0],Tn=An[1];(0,S.useEffect)(function(){lt||(Tn("rc-tabs-".concat(pe)),pe+=1)},[]);function wn(Bi,Aa){er==null||er(Bi,Aa);var Yi=Bi!==ni;vi(Bi),Yi&&(qt==null||qt(Bi))}var jn={id:rn,activeKey:ni,animated:ei,tabPosition:mn,rtl:si,mobile:Hn},ci=(0,f.Z)((0,f.Z)({},jn),{},{editable:Vr,locale:ui,moreIcon:On,moreTransitionName:on,tabBarGutter:tn,onTabClick:wn,onTabScroll:Xt,extra:Qn,style:Dn,panes:null,getPopupContainer:Ur,popupClassName:Mr,indicatorSize:Gr});return S.createElement(I.Provider,{value:{tabs:Pn,prefixCls:Qt}},S.createElement("div",(0,W.Z)({ref:Ue,id:lt,className:ie()(Qt,"".concat(Qt,"-").concat(mn),(Le={},(0,B.Z)(Le,"".concat(Qt,"-mobile"),Hn),(0,B.Z)(Le,"".concat(Qt,"-editable"),Vr),(0,B.Z)(Le,"".concat(Qt,"-rtl"),si),Le),Br)},Mn),S.createElement(xe,(0,W.Z)({},ci,{renderTabBar:Zt})),S.createElement(te,(0,W.Z)({destroyInactiveTabPane:Kt},jn,{animated:ei}))))}var At=S.forwardRef(dt),Me=At,De=Me,gt=x(36355),jt=x(19716),ir=()=>null,Fr=x(62892);const Pr={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Hr(me){let Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Le;return Ue===!1?Le={inkBar:!1,tabPane:!1}:Ue===!0?Le={inkBar:!0,tabPane:!0}:Le=Object.assign({inkBar:!0},typeof Ue=="object"?Ue:{}),Le.tabPane&&(Le.tabPaneMotion=Object.assign(Object.assign({},Pr),{motionName:(0,Fr.m)(me,"switch")})),Le}var Rr=x(11592),sr=function(me,Ue){var Le={};for(var lt in me)Object.prototype.hasOwnProperty.call(me,lt)&&Ue.indexOf(lt)<0&&(Le[lt]=me[lt]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,lt=Object.getOwnPropertySymbols(me);$t<lt.length;$t++)Ue.indexOf(lt[$t])<0&&Object.prototype.propertyIsEnumerable.call(me,lt[$t])&&(Le[lt[$t]]=me[lt[$t]]);return Le};function lr(me){return me.filter(Ue=>Ue)}function $r(me,Ue){if(me)return me;const Le=(0,Rr.Z)(Ue).map(lt=>{if(S.isValidElement(lt)){const{key:$t,props:Qt}=lt,Br=Qt||{},{tab:pr}=Br,Kr=sr(Br,["tab"]);return Object.assign(Object.assign({key:String($t)},Kr),{label:pr})}return null});return lr(Le)}var ln=x(17313),En=x(83116),cn=x(37613),In=x(13826),Ir=me=>{const{componentCls:Ue,motionDurationSlow:Le}=me;return[{[Ue]:{[`${Ue}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Le}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Le}`}}}}},[(0,In.oN)(me,"slide-up"),(0,In.oN)(me,"slide-down")]]};const qn=me=>{const{componentCls:Ue,tabsCardPadding:Le,cardBg:lt,cardGutter:$t,colorBorderSecondary:Qt,itemSelectedColor:Br}=me;return{[`${Ue}-card`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab`]:{margin:0,padding:Le,background:lt,border:`${me.lineWidth}px ${me.lineType} ${Qt}`,transition:`all ${me.motionDurationSlow} ${me.motionEaseInOut}`},[`${Ue}-tab-active`]:{color:Br,background:me.colorBgContainer},[`${Ue}-ink-bar`]:{visibility:"hidden"}},[`&${Ue}-top, &${Ue}-bottom`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab + ${Ue}-tab`]:{marginLeft:{_skip_check_:!0,value:`${$t}px`}}}},[`&${Ue}-top`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab`]:{borderRadius:`${me.borderRadiusLG}px ${me.borderRadiusLG}px 0 0`},[`${Ue}-tab-active`]:{borderBottomColor:me.colorBgContainer}}},[`&${Ue}-bottom`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab`]:{borderRadius:`0 0 ${me.borderRadiusLG}px ${me.borderRadiusLG}px`},[`${Ue}-tab-active`]:{borderTopColor:me.colorBgContainer}}},[`&${Ue}-left, &${Ue}-right`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab + ${Ue}-tab`]:{marginTop:`${$t}px`}}},[`&${Ue}-left`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab`]:{borderRadius:{_skip_check_:!0,value:`${me.borderRadiusLG}px 0 0 ${me.borderRadiusLG}px`}},[`${Ue}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:me.colorBgContainer}}}},[`&${Ue}-right`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${me.borderRadiusLG}px ${me.borderRadiusLG}px 0`}},[`${Ue}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:me.colorBgContainer}}}}}}},wi=me=>{const{componentCls:Ue,itemHoverColor:Le,dropdownEdgeChildVerticalPadding:lt}=me;return{[`${Ue}-dropdown`]:Object.assign(Object.assign({},(0,ln.Wf)(me)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:me.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Ue}-dropdown-menu`]:{maxHeight:me.tabsDropdownHeight,margin:0,padding:`${lt}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:me.colorBgContainer,backgroundClip:"padding-box",borderRadius:me.borderRadiusLG,outline:"none",boxShadow:me.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ln.vS),{display:"flex",alignItems:"center",minWidth:me.tabsDropdownWidth,margin:0,padding:`${me.paddingXXS}px ${me.paddingSM}px`,color:me.colorText,fontWeight:"normal",fontSize:me.fontSize,lineHeight:me.lineHeight,cursor:"pointer",transition:`all ${me.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:me.marginSM},color:me.colorTextDescription,fontSize:me.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Le}},"&:hover":{background:me.controlItemBgHover},"&-disabled":{"&, &:hover":{color:me.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},$n=me=>{const{componentCls:Ue,margin:Le,colorBorderSecondary:lt,horizontalMargin:$t,verticalItemPadding:Qt,verticalItemMargin:Br}=me;return{[`${Ue}-top, ${Ue}-bottom`]:{flexDirection:"column",[`> ${Ue}-nav, > div > ${Ue}-nav`]:{margin:$t,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${me.lineWidth}px ${me.lineType} ${lt}`,content:"''"},[`${Ue}-ink-bar`]:{height:me.lineWidthBold,"&-animated":{transition:`width ${me.motionDurationSlow}, left ${me.motionDurationSlow},
right ${me.motionDurationSlow}`}},[`${Ue}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:me.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:me.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:me.boxShadowTabsOverflowRight},[`&${Ue}-nav-wrap-ping-left::before`]:{opacity:1},[`&${Ue}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${Ue}-top`]:{[`> ${Ue}-nav,
> div > ${Ue}-nav`]:{"&::before":{bottom:0},[`${Ue}-ink-bar`]:{bottom:0}}},[`${Ue}-bottom`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{order:1,marginTop:`${Le}px`,marginBottom:0,"&::before":{top:0},[`${Ue}-ink-bar`]:{top:0}},[`> ${Ue}-content-holder, > div > ${Ue}-content-holder`]:{order:0}},[`${Ue}-left, ${Ue}-right`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{flexDirection:"column",minWidth:me.controlHeight*1.25,[`${Ue}-tab`]:{padding:Qt,textAlign:"center"},[`${Ue}-tab + ${Ue}-tab`]:{margin:Br},[`${Ue}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:me.controlHeight},"&::before":{top:0,boxShadow:me.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:me.boxShadowTabsOverflowBottom},[`&${Ue}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Ue}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Ue}-ink-bar`]:{width:me.lineWidthBold,"&-animated":{transition:`height ${me.motionDurationSlow}, top ${me.motionDurationSlow}`}},[`${Ue}-nav-list, ${Ue}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${Ue}-left`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${Ue}-content-holder, > div > ${Ue}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${me.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`},[`> ${Ue}-content > ${Ue}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:me.paddingLG}}}},[`${Ue}-right`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{order:1,[`${Ue}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${Ue}-content-holder, > div > ${Ue}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-me.lineWidth},borderRight:{_skip_check_:!0,value:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`},[`> ${Ue}-content > ${Ue}-tabpane`]:{paddingRight:{_skip_check_:!0,value:me.paddingLG}}}}}},Ni=me=>{const{componentCls:Ue,cardPaddingSM:Le,cardPaddingLG:lt,horizontalItemPaddingSM:$t,horizontalItemPaddingLG:Qt}=me;return{[Ue]:{"&-small":{[`> ${Ue}-nav`]:{[`${Ue}-tab`]:{padding:$t,fontSize:me.titleFontSizeSM}}},"&-large":{[`> ${Ue}-nav`]:{[`${Ue}-tab`]:{padding:Qt,fontSize:me.titleFontSizeLG}}}},[`${Ue}-card`]:{[`&${Ue}-small`]:{[`> ${Ue}-nav`]:{[`${Ue}-tab`]:{padding:Le}},[`&${Ue}-bottom`]:{[`> ${Ue}-nav ${Ue}-tab`]:{borderRadius:`0 0 ${me.borderRadius}px ${me.borderRadius}px`}},[`&${Ue}-top`]:{[`> ${Ue}-nav ${Ue}-tab`]:{borderRadius:`${me.borderRadius}px ${me.borderRadius}px 0 0`}},[`&${Ue}-right`]:{[`> ${Ue}-nav ${Ue}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${me.borderRadius}px ${me.borderRadius}px 0`}}},[`&${Ue}-left`]:{[`> ${Ue}-nav ${Ue}-tab`]:{borderRadius:{_skip_check_:!0,value:`${me.borderRadius}px 0 0 ${me.borderRadius}px`}}}},[`&${Ue}-large`]:{[`> ${Ue}-nav`]:{[`${Ue}-tab`]:{padding:lt}}}}}},gi=me=>{const{componentCls:Ue,itemActiveColor:Le,itemHoverColor:lt,iconCls:$t,tabsHorizontalItemMargin:Qt,horizontalItemPadding:Br,itemSelectedColor:pr,itemColor:Kr}=me,Wr=`${Ue}-tab`;return{[Wr]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Br,fontSize:me.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:Kr,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Le}},(0,ln.Qy)(me)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-me.marginXXS},marginLeft:{_skip_check_:!0,value:me.marginXS},color:me.colorTextDescription,fontSize:me.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${me.motionDurationSlow}`,"&:hover":{color:me.colorTextHeading}},"&:hover":{color:lt},[`&${Wr}-active ${Wr}-btn`]:{color:pr,textShadow:me.tabsActiveTextShadow},[`&${Wr}-disabled`]:{color:me.colorTextDisabled,cursor:"not-allowed"},[`&${Wr}-disabled ${Wr}-btn, &${Wr}-disabled ${Ue}-remove`]:{"&:focus, &:active":{color:me.colorTextDisabled}},[`& ${Wr}-remove ${$t}`]:{margin:0},[$t]:{marginRight:{_skip_check_:!0,value:me.marginSM}}},[`${Wr} + ${Wr}`]:{margin:{_skip_check_:!0,value:Qt}}}},Qi=me=>{const{componentCls:Ue,tabsHorizontalItemMarginRTL:Le,iconCls:lt,cardGutter:$t}=me;return{[`${Ue}-rtl`]:{direction:"rtl",[`${Ue}-nav`]:{[`${Ue}-tab`]:{margin:{_skip_check_:!0,value:Le},[`${Ue}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[lt]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${me.marginSM}px`}},[`${Ue}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${me.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${me.marginXXS}px`},[lt]:{margin:0}}}},[`&${Ue}-left`]:{[`> ${Ue}-nav`]:{order:1},[`> ${Ue}-content-holder`]:{order:0}},[`&${Ue}-right`]:{[`> ${Ue}-nav`]:{order:0},[`> ${Ue}-content-holder`]:{order:1}},[`&${Ue}-card${Ue}-top, &${Ue}-card${Ue}-bottom`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-tab + ${Ue}-tab`]:{marginRight:{_skip_check_:!0,value:$t},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Ue}-dropdown-rtl`]:{direction:"rtl"},[`${Ue}-menu-item`]:{[`${Ue}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},ba=me=>{const{componentCls:Ue,tabsCardPadding:Le,cardHeight:lt,cardGutter:$t,itemHoverColor:Qt,itemActiveColor:Br,colorBorderSecondary:pr}=me;return{[Ue]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ln.Wf)(me)),{display:"flex",[`> ${Ue}-nav, > div > ${Ue}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${Ue}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${me.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Ue}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${me.motionDurationSlow}`},[`${Ue}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Ue}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Ue}-nav-more`]:{position:"relative",padding:Le,background:"transparent",border:0,color:me.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:me.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${Ue}-nav-add`]:Object.assign({minWidth:lt,marginLeft:{_skip_check_:!0,value:$t},padding:`0 ${me.paddingXS}px`,background:"transparent",border:`${me.lineWidth}px ${me.lineType} ${pr}`,borderRadius:`${me.borderRadiusLG}px ${me.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:me.colorText,transition:`all ${me.motionDurationSlow} ${me.motionEaseInOut}`,"&:hover":{color:Qt},"&:active, &:focus:not(:focus-visible)":{color:Br}},(0,ln.Qy)(me))},[`${Ue}-extra-content`]:{flex:"none"},[`${Ue}-ink-bar`]:{position:"absolute",background:me.inkBarColor,pointerEvents:"none"}}),gi(me)),{[`${Ue}-content`]:{position:"relative",width:"100%"},[`${Ue}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${Ue}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${Ue}-centered`]:{[`> ${Ue}-nav, > div > ${Ue}-nav`]:{[`${Ue}-nav-wrap`]:{[`&:not([class*='${Ue}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var $i=(0,En.Z)("Tabs",me=>{const Ue=(0,cn.TS)(me,{tabsCardPadding:me.cardPadding||`${(me.cardHeight-Math.round(me.fontSize*me.lineHeight))/2-me.lineWidth}px ${me.padding}px`,dropdownEdgeChildVerticalPadding:me.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${me.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${me.horizontalItemGutter}px`});return[Ni(Ue),Qi(Ue),$n(Ue),wi(Ue),qn(Ue),ba(Ue),Ir(Ue)]},me=>{const Ue=me.controlHeightLG;return{zIndexPopup:me.zIndexPopupBase+50,cardBg:me.colorFillAlter,cardHeight:Ue,cardPadding:"",cardPaddingSM:`${me.paddingXXS*1.5}px ${me.padding}px`,cardPaddingLG:`${me.paddingXS}px ${me.padding}px ${me.paddingXXS*1.5}px`,titleFontSize:me.fontSize,titleFontSizeLG:me.fontSizeLG,titleFontSizeSM:me.fontSize,inkBarColor:me.colorPrimary,horizontalMargin:`0 0 ${me.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${me.paddingSM}px 0`,horizontalItemPaddingSM:`${me.paddingXS}px 0`,horizontalItemPaddingLG:`${me.padding}px 0`,verticalItemPadding:`${me.paddingXS}px ${me.paddingLG}px`,verticalItemMargin:`${me.margin}px 0 0 0`,itemColor:me.colorText,itemSelectedColor:me.colorPrimary,itemHoverColor:me.colorPrimaryHover,itemActiveColor:me.colorPrimaryActive,cardGutter:me.marginXXS/2}}),ri=function(me,Ue){var Le={};for(var lt in me)Object.prototype.hasOwnProperty.call(me,lt)&&Ue.indexOf(lt)<0&&(Le[lt]=me[lt]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,lt=Object.getOwnPropertySymbols(me);$t<lt.length;$t++)Ue.indexOf(lt[$t])<0&&Object.prototype.propertyIsEnumerable.call(me,lt[$t])&&(Le[lt[$t]]=me[lt[$t]]);return Le};const xi=me=>{const{type:Ue,className:Le,rootClassName:lt,size:$t,onEdit:Qt,hideAdd:Br,centered:pr,addIcon:Kr,popupClassName:Wr,children:en,items:Vr,animated:jr,style:Yr,indicatorSize:mn}=me,tn=ri(me,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:Dn,moreIcon:Qn=S.createElement(de.Z,null)}=tn,{direction:ui,tabs:On,getPrefixCls:on,getPopupContainer:Kt}=S.useContext(gt.E_),Zt=on("tabs",Dn),[qt,er]=$i(Zt);let Xt;Ue==="editable-card"&&(Xt={onEdit:(si,ei)=>{let{key:Ci,event:Yn}=ei;Qt==null||Qt(si==="add"?Yn:Ci,si)},removeIcon:S.createElement(ge.Z,null),addIcon:Kr||S.createElement(Q.Z,null),showAdd:Br!==!0});const Ur=on(),Mr=$r(Vr,en),Gr=Hr(Zt,jr),Mn=(0,jt.Z)($t),Pn=Object.assign(Object.assign({},On==null?void 0:On.style),Yr);return qt(S.createElement(De,Object.assign({direction:ui,getPopupContainer:Kt,moreTransitionName:`${Ur}-slide-up`},tn,{items:Mr,className:ie()({[`${Zt}-${Mn}`]:Mn,[`${Zt}-card`]:["card","editable-card"].includes(Ue),[`${Zt}-editable-card`]:Ue==="editable-card",[`${Zt}-centered`]:pr},On==null?void 0:On.className,Le,lt,er),popupClassName:ie()(Wr,er),style:Pn,editable:Xt,moreIcon:Qn,prefixCls:Zt,animated:Gr,indicatorSize:mn!=null?mn:On==null?void 0:On.indicatorSize})))};xi.TabPane=ir;var Ti=xi},17574:function(xn,Yt,x){"use strict";x.d(Yt,{default:function(){return Pe}});var ge=x(54844),de=x(80702),Q=x(52671),Oe=x(8657),ie=x(72308),W=x(59301),B={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"},f=B,E=x(7657),h=function(ye,at){return W.createElement(E.Z,(0,ie.Z)({},ye,{ref:at,icon:f}))},$=W.forwardRef(h),S=$,_=x(92310),N=x.n(_),R=x(35654),I=x(71430),J=x(36355),K=x(56082),se=x(62892),te=x(20648);const G=4;function V(fe){const{dropPosition:ye,dropLevelOffset:at,prefixCls:rt,indent:nt,direction:ut="ltr"}=fe,Pt=ut==="ltr"?"left":"right",Ht=ut==="ltr"?"right":"left",Ut={[Pt]:-at*nt+G,[Ht]:0};switch(ye){case-1:Ut.top=-3;break;case 1:Ut.bottom=-3;break;default:Ut.bottom=-3,Ut[Pt]=nt+G;break}return W.createElement("div",{style:Ut,className:`${rt}-drop-indicator`})}var j=x(71997),he=W.forwardRef((fe,ye)=>{const{getPrefixCls:at,direction:rt,virtual:nt,tree:ut}=W.useContext(J.E_),{prefixCls:Pt,className:Ht,showIcon:Ut=!1,showLine:cr,switcherIcon:or,blockNode:Cr=!1,children:hr,checkable:L=!1,selectable:it=!0,draggable:k,motion:p,style:d}=fe,w=at("tree",Pt),Y=at(),Ee=p!=null?p:Object.assign(Object.assign({},(0,se.Z)(Y)),{motionAppear:!1}),H=Object.assign(Object.assign({},fe),{checkable:L,selectable:it,showIcon:Ut,motion:Ee,blockNode:Cr,showLine:!!cr,dropIndicatorRender:V}),[ne,Ge]=(0,te.ZP)(w),xe=W.useMemo(()=>{if(!k)return!1;let qe={};switch(typeof k){case"function":qe.nodeDraggable=k;break;case"object":qe=Object.assign({},k);break;default:break}return qe.icon!==!1&&(qe.icon=qe.icon||W.createElement(K.Z,null)),qe},[k]),we=qe=>W.createElement(j.Z,{prefixCls:w,switcherIcon:or,treeNodeProps:qe,showLine:cr});return ne(W.createElement(ge.Z,Object.assign({itemHeight:20,ref:ye,virtual:nt},H,{style:Object.assign(Object.assign({},ut==null?void 0:ut.style),d),prefixCls:w,className:N()({[`${w}-icon-hide`]:!Ut,[`${w}-block-node`]:Cr,[`${w}-unselectable`]:!it,[`${w}-rtl`]:rt==="rtl"},ut==null?void 0:ut.className,Ht,Ge),direction:rt,checkable:L&&W.createElement("span",{className:`${w}-checkbox-inner`}),selectable:it,switcherIcon:we,draggable:xe}),hr))}),Ne;(function(fe){fe[fe.None=0]="None",fe[fe.Start=1]="Start",fe[fe.End=2]="End"})(Ne||(Ne={}));function Be(fe,ye){function at(rt){const{key:nt,children:ut}=rt;ye(nt,rt)!==!1&&Be(ut||[],ye)}fe.forEach(at)}function je(fe){let{treeData:ye,expandedKeys:at,startKey:rt,endKey:nt}=fe;const ut=[];let Pt=Ne.None;if(rt&&rt===nt)return[rt];if(!rt||!nt)return[];function Ht(Ut){return Ut===rt||Ut===nt}return Be(ye,Ut=>{if(Pt===Ne.End)return!1;if(Ht(Ut)){if(ut.push(Ut),Pt===Ne.None)Pt=Ne.Start;else if(Pt===Ne.Start)return Pt=Ne.End,!1}else Pt===Ne.Start&&ut.push(Ut);return at.includes(Ut)}),ut}function q(fe,ye){const at=(0,de.Z)(ye),rt=[];return Be(fe,(nt,ut)=>{const Pt=at.indexOf(nt);return Pt!==-1&&(rt.push(ut),at.splice(Pt,1)),!!at.length}),rt}var ce=function(fe,ye){var at={};for(var rt in fe)Object.prototype.hasOwnProperty.call(fe,rt)&&ye.indexOf(rt)<0&&(at[rt]=fe[rt]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,rt=Object.getOwnPropertySymbols(fe);nt<rt.length;nt++)ye.indexOf(rt[nt])<0&&Object.prototype.propertyIsEnumerable.call(fe,rt[nt])&&(at[rt[nt]]=fe[rt[nt]]);return at};function D(fe){const{isLeaf:ye,expanded:at}=fe;return ye?W.createElement(Q.Z,null):at?W.createElement(Oe.Z,null):W.createElement(S,null)}function ot(fe){let{treeData:ye,children:at}=fe;return ye||(0,I.zn)(at)}const ke=(fe,ye)=>{var{defaultExpandAll:at,defaultExpandParent:rt,defaultExpandedKeys:nt}=fe,ut=ce(fe,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Pt=W.useRef(),Ht=W.useRef(),Ut=()=>{const{keyEntities:xe}=(0,I.I8)(ot(ut));let we;return at?we=Object.keys(xe):rt?we=(0,R.r7)(ut.expandedKeys||nt||[],xe):we=ut.expandedKeys||nt,we},[cr,or]=W.useState(ut.selectedKeys||ut.defaultSelectedKeys||[]),[Cr,hr]=W.useState(()=>Ut());W.useEffect(()=>{"selectedKeys"in ut&&or(ut.selectedKeys)},[ut.selectedKeys]),W.useEffect(()=>{"expandedKeys"in ut&&hr(ut.expandedKeys)},[ut.expandedKeys]);const L=(xe,we)=>{var qe;return"expandedKeys"in ut||hr(xe),(qe=ut.onExpand)===null||qe===void 0?void 0:qe.call(ut,xe,we)},it=(xe,we)=>{var qe;const{multiple:Et}=ut,{node:pe,nativeEvent:dt}=we,{key:At=""}=pe,Me=ot(ut),De=Object.assign(Object.assign({},we),{selected:!0}),gt=(dt==null?void 0:dt.ctrlKey)||(dt==null?void 0:dt.metaKey),jt=dt==null?void 0:dt.shiftKey;let Tt;Et&&gt?(Tt=xe,Pt.current=At,Ht.current=Tt,De.selectedNodes=q(Me,Tt)):Et&&jt?(Tt=Array.from(new Set([].concat((0,de.Z)(Ht.current||[]),(0,de.Z)(je({treeData:Me,expandedKeys:Cr,startKey:At,endKey:Pt.current}))))),De.selectedNodes=q(Me,Tt)):(Tt=[At],Pt.current=At,Ht.current=Tt,De.selectedNodes=q(Me,Tt)),(qe=ut.onSelect)===null||qe===void 0||qe.call(ut,Tt,De),"selectedKeys"in ut||or(Tt)},{getPrefixCls:k,direction:p}=W.useContext(J.E_),{prefixCls:d,className:w,showIcon:Y=!0,expandAction:Ee="click"}=ut,H=ce(ut,["prefixCls","className","showIcon","expandAction"]),ne=k("tree",d),Ge=N()(`${ne}-directory`,{[`${ne}-directory-rtl`]:p==="rtl"},w);return W.createElement(he,Object.assign({icon:D,ref:ye,blockNode:!0},H,{showIcon:Y,expandAction:Ee,prefixCls:ne,className:Ge,expandedKeys:Cr,selectedKeys:cr,onSelect:it,onExpand:L}))};var Qe=W.forwardRef(ke);const ve=he;ve.DirectoryTree=Qe,ve.TreeNode=ge.O;var Pe=ve},20648:function(xn,Yt,x){"use strict";x.d(Yt,{TM:function(){return _},Yk:function(){return S}});var ge=x(93083),de=x(98447),Q=x(17313),Oe=x(8378),ie=x(37613),W=x(83116);const B=new ge.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),f=(N,R)=>({[`.${N}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${R.motionDurationSlow}`}}}),E=(N,R)=>({[`.${N}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:R.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${R.lineWidthBold}px solid ${R.colorPrimary}`,borderRadius:"50%",content:'""'}}}),h=(N,R)=>{const{treeCls:I,treeNodeCls:J,treeNodePadding:K,titleHeight:se,nodeSelectedBg:te,nodeHoverBg:G}=R,V=R.paddingXS;return{[I]:Object.assign(Object.assign({},(0,Q.Wf)(R)),{background:R.colorBgContainer,borderRadius:R.borderRadius,transition:`background-color ${R.motionDurationSlow}`,[`&${I}-rtl`]:{[`${I}-switcher`]:{"&_close":{[`${I}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${I}-active-focused)`]:Object.assign({},(0,Q.oN)(R)),[`${I}-list-holder-inner`]:{alignItems:"flex-start"},[`&${I}-block-node`]:{[`${I}-list-holder-inner`]:{alignItems:"stretch",[`${I}-node-content-wrapper`]:{flex:"auto"},[`${J}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:K,insetInlineStart:0,border:`1px solid ${R.colorPrimary}`,opacity:0,animationName:B,animationDuration:R.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${J}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${K}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${I}-node-content-wrapper`]:{color:R.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${I}-node-content-wrapper`]:Object.assign({},(0,Q.oN)(R)),[`&:not(${J}-disabled).filter-node ${I}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${I}-draggable-icon`]:{flexShrink:0,width:se,lineHeight:`${se}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${R.motionDurationSlow}`,[`${J}:hover &`]:{opacity:.45}},[`&${J}-disabled`]:{[`${I}-draggable-icon`]:{visibility:"hidden"}}}},[`${I}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:se}},[`${I}-draggable-icon`]:{visibility:"hidden"},[`${I}-switcher`]:Object.assign(Object.assign({},f(N,R)),{position:"relative",flex:"none",alignSelf:"stretch",width:se,margin:0,lineHeight:`${se}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${I}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:R.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:se/2,bottom:-K,marginInlineStart:-1,borderInlineEnd:`1px solid ${R.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:se/2*.8,height:se/2,borderBottom:`1px solid ${R.colorBorder}`,content:'""'}}}),[`${I}-checkbox`]:{top:"initial",marginInlineEnd:V},[`${I}-node-content-wrapper, ${I}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:se,margin:0,padding:`0 ${R.paddingXS/2}px`,color:"inherit",lineHeight:`${se}px`,background:"transparent",borderRadius:R.borderRadius,cursor:"pointer",transition:`all ${R.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:G},[`&${I}-node-selected`]:{backgroundColor:te},[`${I}-iconEle`]:{display:"inline-block",width:se,height:se,lineHeight:`${se}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${I}-unselectable ${I}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${I}-node-content-wrapper`]:Object.assign({lineHeight:`${se}px`,userSelect:"none"},E(N,R)),[`${J}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${R.colorPrimary}`}},"&-show-line":{[`${I}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:se/2,bottom:-K,borderInlineEnd:`1px solid ${R.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${I}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${J}-leaf-last`]:{[`${I}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${se/2}px !important`}}}}})}},$=N=>{const{treeCls:R,treeNodeCls:I,treeNodePadding:J,directoryNodeSelectedBg:K,directoryNodeSelectedColor:se}=N;return{[`${R}${R}-directory`]:{[I]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:J,insetInlineStart:0,transition:`background-color ${N.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:N.controlItemBgHover}},"> *":{zIndex:1},[`${R}-switcher`]:{transition:`color ${N.motionDurationMid}`},[`${R}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${R}-node-selected`]:{color:se,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:K},[`${R}-switcher`]:{color:se},[`${R}-node-content-wrapper`]:{color:se,background:"transparent"}}}}}},S=(N,R)=>{const I=`.${N}`,J=`${I}-treenode`,K=R.paddingXS/2,se=(0,ie.TS)(R,{treeCls:I,treeNodeCls:J,treeNodePadding:K});return[h(N,se),$(se)]},_=N=>{const{controlHeightSM:R}=N;return{titleHeight:R,nodeHoverBg:N.controlItemBgHover,nodeSelectedBg:N.controlItemBgActive}};Yt.ZP=(0,W.Z)("Tree",(N,R)=>{let{prefixCls:I}=R;return[{[N.componentCls]:(0,de.C2)(`${I}-checkbox`,N)},S(I,N),(0,Oe.Z)(N)]},N=>{const{colorTextLightSolid:R,colorPrimary:I}=N;return Object.assign(Object.assign({},_(N)),{directoryNodeSelectedColor:R,directoryNodeSelectedBg:I})})},71997:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return J}});var ge=x(72308),de=x(59301),Q={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"},Oe=Q,ie=x(7657),W=function(se,te){return de.createElement(ie.Z,(0,ge.Z)({},se,{ref:te,icon:Oe}))},B=de.forwardRef(W),f=B,E=x(52671),h=x(58617),$=x(15075),S=x(43531),_=x(92310),N=x.n(_),R=x(92343),J=K=>{const{prefixCls:se,switcherIcon:te,treeNodeProps:G,showLine:V}=K,{isLeaf:j,expanded:le,loading:he}=G;if(he)return de.createElement(h.Z,{className:`${se}-switcher-loading-icon`});let Ne;if(V&&typeof V=="object"&&(Ne=V.showLeafIcon),j){if(!V)return null;if(typeof Ne!="boolean"&&Ne){const q=typeof Ne=="function"?Ne(G):Ne,ce=`${se}-switcher-line-custom-icon`;return(0,R.l$)(q)?(0,R.Tm)(q,{className:N()(q.props.className||"",ce)}):q}return Ne?de.createElement(E.Z,{className:`${se}-switcher-line-icon`}):de.createElement("span",{className:`${se}-switcher-leaf-line`})}const Be=`${se}-switcher-icon`,je=typeof te=="function"?te(G):te;return(0,R.l$)(je)?(0,R.Tm)(je,{className:N()(je.props.className||"",Be)}):je!==void 0?je:V?le?de.createElement($.Z,{className:`${se}-switcher-line-icon`}):de.createElement(S.Z,{className:`${se}-switcher-line-icon`}):de.createElement(f,{className:Be})}},86251:function(xn,Yt){"use strict";Yt.byteLength=B,Yt.toByteArray=E,Yt.fromByteArray=S;for(var x=[],ge=[],de=typeof Uint8Array!="undefined"?Uint8Array:Array,Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Oe=0,ie=Q.length;Oe<ie;++Oe)x[Oe]=Q[Oe],ge[Q.charCodeAt(Oe)]=Oe;ge[45]=62,ge[95]=63;function W(_){var N=_.length;if(N%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var R=_.indexOf("=");R===-1&&(R=N);var I=R===N?0:4-R%4;return[R,I]}function B(_){var N=W(_),R=N[0],I=N[1];return(R+I)*3/4-I}function f(_,N,R){return(N+R)*3/4-R}function E(_){var N,R=W(_),I=R[0],J=R[1],K=new de(f(_,I,J)),se=0,te=J>0?I-4:I,G;for(G=0;G<te;G+=4)N=ge[_.charCodeAt(G)]<<18|ge[_.charCodeAt(G+1)]<<12|ge[_.charCodeAt(G+2)]<<6|ge[_.charCodeAt(G+3)],K[se++]=N>>16&255,K[se++]=N>>8&255,K[se++]=N&255;return J===2&&(N=ge[_.charCodeAt(G)]<<2|ge[_.charCodeAt(G+1)]>>4,K[se++]=N&255),J===1&&(N=ge[_.charCodeAt(G)]<<10|ge[_.charCodeAt(G+1)]<<4|ge[_.charCodeAt(G+2)]>>2,K[se++]=N>>8&255,K[se++]=N&255),K}function h(_){return x[_>>18&63]+x[_>>12&63]+x[_>>6&63]+x[_&63]}function $(_,N,R){for(var I,J=[],K=N;K<R;K+=3)I=(_[K]<<16&16711680)+(_[K+1]<<8&65280)+(_[K+2]&255),J.push(h(I));return J.join("")}function S(_){for(var N,R=_.length,I=R%3,J=[],K=16383,se=0,te=R-I;se<te;se+=K)J.push($(_,se,se+K>te?te:se+K));return I===1?(N=_[R-1],J.push(x[N>>2]+x[N<<4&63]+"==")):I===2&&(N=(_[R-2]<<8)+_[R-1],J.push(x[N>>10]+x[N>>4&63]+x[N<<2&63]+"=")),J.join("")}},19208:function(xn,Yt,x){"use strict";var ge;var de=x(86251),Q=x(67467),Oe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Yt.lW=f,ge=se,Yt.h2=50;var ie=2147483647;ge=ie,f.TYPED_ARRAY_SUPPORT=W(),!f.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function W(){try{var k=new Uint8Array(1),p={foo:function(){return 42}};return Object.setPrototypeOf(p,Uint8Array.prototype),Object.setPrototypeOf(k,p),k.foo()===42}catch(d){return!1}}Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}});function B(k){if(k>ie)throw new RangeError('The value "'+k+'" is invalid for option "size"');var p=new Uint8Array(k);return Object.setPrototypeOf(p,f.prototype),p}function f(k,p,d){if(typeof k=="number"){if(typeof p=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(k)}return E(k,p,d)}f.poolSize=8192;function E(k,p,d){if(typeof k=="string")return _(k,p);if(ArrayBuffer.isView(k))return R(k);if(k==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof k);if(hr(k,ArrayBuffer)||k&&hr(k.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(hr(k,SharedArrayBuffer)||k&&hr(k.buffer,SharedArrayBuffer)))return I(k,p,d);if(typeof k=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var w=k.valueOf&&k.valueOf();if(w!=null&&w!==k)return f.from(w,p,d);var Y=J(k);if(Y)return Y;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof k[Symbol.toPrimitive]=="function")return f.from(k[Symbol.toPrimitive]("string"),p,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof k)}f.from=function(k,p,d){return E(k,p,d)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array);function h(k){if(typeof k!="number")throw new TypeError('"size" argument must be of type number');if(k<0)throw new RangeError('The value "'+k+'" is invalid for option "size"')}function $(k,p,d){return h(k),k<=0?B(k):p!==void 0?typeof d=="string"?B(k).fill(p,d):B(k).fill(p):B(k)}f.alloc=function(k,p,d){return $(k,p,d)};function S(k){return h(k),B(k<0?0:K(k)|0)}f.allocUnsafe=function(k){return S(k)},f.allocUnsafeSlow=function(k){return S(k)};function _(k,p){if((typeof p!="string"||p==="")&&(p="utf8"),!f.isEncoding(p))throw new TypeError("Unknown encoding: "+p);var d=te(k,p)|0,w=B(d),Y=w.write(k,p);return Y!==d&&(w=w.slice(0,Y)),w}function N(k){for(var p=k.length<0?0:K(k.length)|0,d=B(p),w=0;w<p;w+=1)d[w]=k[w]&255;return d}function R(k){if(hr(k,Uint8Array)){var p=new Uint8Array(k);return I(p.buffer,p.byteOffset,p.byteLength)}return N(k)}function I(k,p,d){if(p<0||k.byteLength<p)throw new RangeError('"offset" is outside of buffer bounds');if(k.byteLength<p+(d||0))throw new RangeError('"length" is outside of buffer bounds');var w;return p===void 0&&d===void 0?w=new Uint8Array(k):d===void 0?w=new Uint8Array(k,p):w=new Uint8Array(k,p,d),Object.setPrototypeOf(w,f.prototype),w}function J(k){if(f.isBuffer(k)){var p=K(k.length)|0,d=B(p);return d.length===0||k.copy(d,0,0,p),d}if(k.length!==void 0)return typeof k.length!="number"||L(k.length)?B(0):N(k);if(k.type==="Buffer"&&Array.isArray(k.data))return N(k.data)}function K(k){if(k>=ie)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ie.toString(16)+" bytes");return k|0}function se(k){return+k!=k&&(k=0),f.alloc(+k)}f.isBuffer=function(p){return p!=null&&p._isBuffer===!0&&p!==f.prototype},f.compare=function(p,d){if(hr(p,Uint8Array)&&(p=f.from(p,p.offset,p.byteLength)),hr(d,Uint8Array)&&(d=f.from(d,d.offset,d.byteLength)),!f.isBuffer(p)||!f.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(p===d)return 0;for(var w=p.length,Y=d.length,Ee=0,H=Math.min(w,Y);Ee<H;++Ee)if(p[Ee]!==d[Ee]){w=p[Ee],Y=d[Ee];break}return w<Y?-1:Y<w?1:0},f.isEncoding=function(p){switch(String(p).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(p,d){if(!Array.isArray(p))throw new TypeError('"list" argument must be an Array of Buffers');if(p.length===0)return f.alloc(0);var w;if(d===void 0)for(d=0,w=0;w<p.length;++w)d+=p[w].length;var Y=f.allocUnsafe(d),Ee=0;for(w=0;w<p.length;++w){var H=p[w];if(hr(H,Uint8Array))Ee+H.length>Y.length?f.from(H).copy(Y,Ee):Uint8Array.prototype.set.call(Y,H,Ee);else if(f.isBuffer(H))H.copy(Y,Ee);else throw new TypeError('"list" argument must be an Array of Buffers');Ee+=H.length}return Y};function te(k,p){if(f.isBuffer(k))return k.length;if(ArrayBuffer.isView(k)||hr(k,ArrayBuffer))return k.byteLength;if(typeof k!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof k);var d=k.length,w=arguments.length>2&&arguments[2]===!0;if(!w&&d===0)return 0;for(var Y=!1;;)switch(p){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return Ht(k).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return or(k).length;default:if(Y)return w?-1:Ht(k).length;p=(""+p).toLowerCase(),Y=!0}}f.byteLength=te;function G(k,p,d){var w=!1;if((p===void 0||p<0)&&(p=0),p>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,p>>>=0,d<=p))return"";for(k||(k="utf8");;)switch(k){case"hex":return ve(this,p,d);case"utf8":case"utf-8":return D(this,p,d);case"ascii":return Ce(this,p,d);case"latin1":case"binary":return Qe(this,p,d);case"base64":return ce(this,p,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pe(this,p,d);default:if(w)throw new TypeError("Unknown encoding: "+k);k=(k+"").toLowerCase(),w=!0}}f.prototype._isBuffer=!0;function V(k,p,d){var w=k[p];k[p]=k[d],k[d]=w}f.prototype.swap16=function(){var p=this.length;if(p%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var d=0;d<p;d+=2)V(this,d,d+1);return this},f.prototype.swap32=function(){var p=this.length;if(p%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var d=0;d<p;d+=4)V(this,d,d+3),V(this,d+1,d+2);return this},f.prototype.swap64=function(){var p=this.length;if(p%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var d=0;d<p;d+=8)V(this,d,d+7),V(this,d+1,d+6),V(this,d+2,d+5),V(this,d+3,d+4);return this},f.prototype.toString=function(){var p=this.length;return p===0?"":arguments.length===0?D(this,0,p):G.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(p){if(!f.isBuffer(p))throw new TypeError("Argument must be a Buffer");return this===p?!0:f.compare(this,p)===0},f.prototype.inspect=function(){var p="",d=Yt.h2;return p=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(p+=" ... "),"<Buffer "+p+">"},Oe&&(f.prototype[Oe]=f.prototype.inspect),f.prototype.compare=function(p,d,w,Y,Ee){if(hr(p,Uint8Array)&&(p=f.from(p,p.offset,p.byteLength)),!f.isBuffer(p))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof p);if(d===void 0&&(d=0),w===void 0&&(w=p?p.length:0),Y===void 0&&(Y=0),Ee===void 0&&(Ee=this.length),d<0||w>p.length||Y<0||Ee>this.length)throw new RangeError("out of range index");if(Y>=Ee&&d>=w)return 0;if(Y>=Ee)return-1;if(d>=w)return 1;if(d>>>=0,w>>>=0,Y>>>=0,Ee>>>=0,this===p)return 0;for(var H=Ee-Y,ne=w-d,Ge=Math.min(H,ne),xe=this.slice(Y,Ee),we=p.slice(d,w),qe=0;qe<Ge;++qe)if(xe[qe]!==we[qe]){H=xe[qe],ne=we[qe];break}return H<ne?-1:ne<H?1:0};function j(k,p,d,w,Y){if(k.length===0)return-1;if(typeof d=="string"?(w=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,L(d)&&(d=Y?0:k.length-1),d<0&&(d=k.length+d),d>=k.length){if(Y)return-1;d=k.length-1}else if(d<0)if(Y)d=0;else return-1;if(typeof p=="string"&&(p=f.from(p,w)),f.isBuffer(p))return p.length===0?-1:le(k,p,d,w,Y);if(typeof p=="number")return p=p&255,typeof Uint8Array.prototype.indexOf=="function"?Y?Uint8Array.prototype.indexOf.call(k,p,d):Uint8Array.prototype.lastIndexOf.call(k,p,d):le(k,[p],d,w,Y);throw new TypeError("val must be string, number or Buffer")}function le(k,p,d,w,Y){var Ee=1,H=k.length,ne=p.length;if(w!==void 0&&(w=String(w).toLowerCase(),w==="ucs2"||w==="ucs-2"||w==="utf16le"||w==="utf-16le")){if(k.length<2||p.length<2)return-1;Ee=2,H/=2,ne/=2,d/=2}function Ge(pe,dt){return Ee===1?pe[dt]:pe.readUInt16BE(dt*Ee)}var xe;if(Y){var we=-1;for(xe=d;xe<H;xe++)if(Ge(k,xe)===Ge(p,we===-1?0:xe-we)){if(we===-1&&(we=xe),xe-we+1===ne)return we*Ee}else we!==-1&&(xe-=xe-we),we=-1}else for(d+ne>H&&(d=H-ne),xe=d;xe>=0;xe--){for(var qe=!0,Et=0;Et<ne;Et++)if(Ge(k,xe+Et)!==Ge(p,Et)){qe=!1;break}if(qe)return xe}return-1}f.prototype.includes=function(p,d,w){return this.indexOf(p,d,w)!==-1},f.prototype.indexOf=function(p,d,w){return j(this,p,d,w,!0)},f.prototype.lastIndexOf=function(p,d,w){return j(this,p,d,w,!1)};function he(k,p,d,w){d=Number(d)||0;var Y=k.length-d;w?(w=Number(w),w>Y&&(w=Y)):w=Y;var Ee=p.length;w>Ee/2&&(w=Ee/2);for(var H=0;H<w;++H){var ne=parseInt(p.substr(H*2,2),16);if(L(ne))return H;k[d+H]=ne}return H}function Ne(k,p,d,w){return Cr(Ht(p,k.length-d),k,d,w)}function Be(k,p,d,w){return Cr(Ut(p),k,d,w)}function je(k,p,d,w){return Cr(or(p),k,d,w)}function q(k,p,d,w){return Cr(cr(p,k.length-d),k,d,w)}f.prototype.write=function(p,d,w,Y){if(d===void 0)Y="utf8",w=this.length,d=0;else if(w===void 0&&typeof d=="string")Y=d,w=this.length,d=0;else if(isFinite(d))d=d>>>0,isFinite(w)?(w=w>>>0,Y===void 0&&(Y="utf8")):(Y=w,w=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ee=this.length-d;if((w===void 0||w>Ee)&&(w=Ee),p.length>0&&(w<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");Y||(Y="utf8");for(var H=!1;;)switch(Y){case"hex":return he(this,p,d,w);case"utf8":case"utf-8":return Ne(this,p,d,w);case"ascii":case"latin1":case"binary":return Be(this,p,d,w);case"base64":return je(this,p,d,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,p,d,w);default:if(H)throw new TypeError("Unknown encoding: "+Y);Y=(""+Y).toLowerCase(),H=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ce(k,p,d){return p===0&&d===k.length?de.fromByteArray(k):de.fromByteArray(k.slice(p,d))}function D(k,p,d){d=Math.min(k.length,d);for(var w=[],Y=p;Y<d;){var Ee=k[Y],H=null,ne=Ee>239?4:Ee>223?3:Ee>191?2:1;if(Y+ne<=d){var Ge,xe,we,qe;switch(ne){case 1:Ee<128&&(H=Ee);break;case 2:Ge=k[Y+1],(Ge&192)===128&&(qe=(Ee&31)<<6|Ge&63,qe>127&&(H=qe));break;case 3:Ge=k[Y+1],xe=k[Y+2],(Ge&192)===128&&(xe&192)===128&&(qe=(Ee&15)<<12|(Ge&63)<<6|xe&63,qe>2047&&(qe<55296||qe>57343)&&(H=qe));break;case 4:Ge=k[Y+1],xe=k[Y+2],we=k[Y+3],(Ge&192)===128&&(xe&192)===128&&(we&192)===128&&(qe=(Ee&15)<<18|(Ge&63)<<12|(xe&63)<<6|we&63,qe>65535&&qe<1114112&&(H=qe))}}H===null?(H=65533,ne=1):H>65535&&(H-=65536,w.push(H>>>10&1023|55296),H=56320|H&1023),w.push(H),Y+=ne}return ke(w)}var ot=4096;function ke(k){var p=k.length;if(p<=ot)return String.fromCharCode.apply(String,k);for(var d="",w=0;w<p;)d+=String.fromCharCode.apply(String,k.slice(w,w+=ot));return d}function Ce(k,p,d){var w="";d=Math.min(k.length,d);for(var Y=p;Y<d;++Y)w+=String.fromCharCode(k[Y]&127);return w}function Qe(k,p,d){var w="";d=Math.min(k.length,d);for(var Y=p;Y<d;++Y)w+=String.fromCharCode(k[Y]);return w}function ve(k,p,d){var w=k.length;(!p||p<0)&&(p=0),(!d||d<0||d>w)&&(d=w);for(var Y="",Ee=p;Ee<d;++Ee)Y+=it[k[Ee]];return Y}function Pe(k,p,d){for(var w=k.slice(p,d),Y="",Ee=0;Ee<w.length-1;Ee+=2)Y+=String.fromCharCode(w[Ee]+w[Ee+1]*256);return Y}f.prototype.slice=function(p,d){var w=this.length;p=~~p,d=d===void 0?w:~~d,p<0?(p+=w,p<0&&(p=0)):p>w&&(p=w),d<0?(d+=w,d<0&&(d=0)):d>w&&(d=w),d<p&&(d=p);var Y=this.subarray(p,d);return Object.setPrototypeOf(Y,f.prototype),Y};function fe(k,p,d){if(k%1!==0||k<0)throw new RangeError("offset is not uint");if(k+p>d)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUintLE=f.prototype.readUIntLE=function(p,d,w){p=p>>>0,d=d>>>0,w||fe(p,d,this.length);for(var Y=this[p],Ee=1,H=0;++H<d&&(Ee*=256);)Y+=this[p+H]*Ee;return Y},f.prototype.readUintBE=f.prototype.readUIntBE=function(p,d,w){p=p>>>0,d=d>>>0,w||fe(p,d,this.length);for(var Y=this[p+--d],Ee=1;d>0&&(Ee*=256);)Y+=this[p+--d]*Ee;return Y},f.prototype.readUint8=f.prototype.readUInt8=function(p,d){return p=p>>>0,d||fe(p,1,this.length),this[p]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(p,d){return p=p>>>0,d||fe(p,2,this.length),this[p]|this[p+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(p,d){return p=p>>>0,d||fe(p,2,this.length),this[p]<<8|this[p+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(p,d){return p=p>>>0,d||fe(p,4,this.length),(this[p]|this[p+1]<<8|this[p+2]<<16)+this[p+3]*16777216},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(p,d){return p=p>>>0,d||fe(p,4,this.length),this[p]*16777216+(this[p+1]<<16|this[p+2]<<8|this[p+3])},f.prototype.readIntLE=function(p,d,w){p=p>>>0,d=d>>>0,w||fe(p,d,this.length);for(var Y=this[p],Ee=1,H=0;++H<d&&(Ee*=256);)Y+=this[p+H]*Ee;return Ee*=128,Y>=Ee&&(Y-=Math.pow(2,8*d)),Y},f.prototype.readIntBE=function(p,d,w){p=p>>>0,d=d>>>0,w||fe(p,d,this.length);for(var Y=d,Ee=1,H=this[p+--Y];Y>0&&(Ee*=256);)H+=this[p+--Y]*Ee;return Ee*=128,H>=Ee&&(H-=Math.pow(2,8*d)),H},f.prototype.readInt8=function(p,d){return p=p>>>0,d||fe(p,1,this.length),this[p]&128?(255-this[p]+1)*-1:this[p]},f.prototype.readInt16LE=function(p,d){p=p>>>0,d||fe(p,2,this.length);var w=this[p]|this[p+1]<<8;return w&32768?w|4294901760:w},f.prototype.readInt16BE=function(p,d){p=p>>>0,d||fe(p,2,this.length);var w=this[p+1]|this[p]<<8;return w&32768?w|4294901760:w},f.prototype.readInt32LE=function(p,d){return p=p>>>0,d||fe(p,4,this.length),this[p]|this[p+1]<<8|this[p+2]<<16|this[p+3]<<24},f.prototype.readInt32BE=function(p,d){return p=p>>>0,d||fe(p,4,this.length),this[p]<<24|this[p+1]<<16|this[p+2]<<8|this[p+3]},f.prototype.readFloatLE=function(p,d){return p=p>>>0,d||fe(p,4,this.length),Q.read(this,p,!0,23,4)},f.prototype.readFloatBE=function(p,d){return p=p>>>0,d||fe(p,4,this.length),Q.read(this,p,!1,23,4)},f.prototype.readDoubleLE=function(p,d){return p=p>>>0,d||fe(p,8,this.length),Q.read(this,p,!0,52,8)},f.prototype.readDoubleBE=function(p,d){return p=p>>>0,d||fe(p,8,this.length),Q.read(this,p,!1,52,8)};function ye(k,p,d,w,Y,Ee){if(!f.isBuffer(k))throw new TypeError('"buffer" argument must be a Buffer instance');if(p>Y||p<Ee)throw new RangeError('"value" argument is out of bounds');if(d+w>k.length)throw new RangeError("Index out of range")}f.prototype.writeUintLE=f.prototype.writeUIntLE=function(p,d,w,Y){if(p=+p,d=d>>>0,w=w>>>0,!Y){var Ee=Math.pow(2,8*w)-1;ye(this,p,d,w,Ee,0)}var H=1,ne=0;for(this[d]=p&255;++ne<w&&(H*=256);)this[d+ne]=p/H&255;return d+w},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(p,d,w,Y){if(p=+p,d=d>>>0,w=w>>>0,!Y){var Ee=Math.pow(2,8*w)-1;ye(this,p,d,w,Ee,0)}var H=w-1,ne=1;for(this[d+H]=p&255;--H>=0&&(ne*=256);)this[d+H]=p/ne&255;return d+w},f.prototype.writeUint8=f.prototype.writeUInt8=function(p,d,w){return p=+p,d=d>>>0,w||ye(this,p,d,1,255,0),this[d]=p&255,d+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(p,d,w){return p=+p,d=d>>>0,w||ye(this,p,d,2,65535,0),this[d]=p&255,this[d+1]=p>>>8,d+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(p,d,w){return p=+p,d=d>>>0,w||ye(this,p,d,2,65535,0),this[d]=p>>>8,this[d+1]=p&255,d+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(p,d,w){return p=+p,d=d>>>0,w||ye(this,p,d,4,4294967295,0),this[d+3]=p>>>24,this[d+2]=p>>>16,this[d+1]=p>>>8,this[d]=p&255,d+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(p,d,w){return p=+p,d=d>>>0,w||ye(this,p,d,4,4294967295,0),this[d]=p>>>24,this[d+1]=p>>>16,this[d+2]=p>>>8,this[d+3]=p&255,d+4},f.prototype.writeIntLE=function(p,d,w,Y){if(p=+p,d=d>>>0,!Y){var Ee=Math.pow(2,8*w-1);ye(this,p,d,w,Ee-1,-Ee)}var H=0,ne=1,Ge=0;for(this[d]=p&255;++H<w&&(ne*=256);)p<0&&Ge===0&&this[d+H-1]!==0&&(Ge=1),this[d+H]=(p/ne>>0)-Ge&255;return d+w},f.prototype.writeIntBE=function(p,d,w,Y){if(p=+p,d=d>>>0,!Y){var Ee=Math.pow(2,8*w-1);ye(this,p,d,w,Ee-1,-Ee)}var H=w-1,ne=1,Ge=0;for(this[d+H]=p&255;--H>=0&&(ne*=256);)p<0&&Ge===0&&this[d+H+1]!==0&&(Ge=1),this[d+H]=(p/ne>>0)-Ge&255;return d+w},f.prototype.writeInt8=function(p,d,w){return p=+p,d=d>>>0,w||ye(this,p,d,1,127,-128),p<0&&(p=255+p+1),this[d]=p&255,d+1},f.prototype.writeInt16LE=function(p,d,w){return p=+p,d=d>>>0,w||ye(this,p,d,2,32767,-32768),this[d]=p&255,this[d+1]=p>>>8,d+2},f.prototype.writeInt16BE=function(p,d,w){return p=+p,d=d>>>0,w||ye(this,p,d,2,32767,-32768),this[d]=p>>>8,this[d+1]=p&255,d+2},f.prototype.writeInt32LE=function(p,d,w){return p=+p,d=d>>>0,w||ye(this,p,d,4,2147483647,-2147483648),this[d]=p&255,this[d+1]=p>>>8,this[d+2]=p>>>16,this[d+3]=p>>>24,d+4},f.prototype.writeInt32BE=function(p,d,w){return p=+p,d=d>>>0,w||ye(this,p,d,4,2147483647,-2147483648),p<0&&(p=4294967295+p+1),this[d]=p>>>24,this[d+1]=p>>>16,this[d+2]=p>>>8,this[d+3]=p&255,d+4};function at(k,p,d,w,Y,Ee){if(d+w>k.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function rt(k,p,d,w,Y){return p=+p,d=d>>>0,Y||at(k,p,d,4,34028234663852886e22,-34028234663852886e22),Q.write(k,p,d,w,23,4),d+4}f.prototype.writeFloatLE=function(p,d,w){return rt(this,p,d,!0,w)},f.prototype.writeFloatBE=function(p,d,w){return rt(this,p,d,!1,w)};function nt(k,p,d,w,Y){return p=+p,d=d>>>0,Y||at(k,p,d,8,17976931348623157e292,-17976931348623157e292),Q.write(k,p,d,w,52,8),d+8}f.prototype.writeDoubleLE=function(p,d,w){return nt(this,p,d,!0,w)},f.prototype.writeDoubleBE=function(p,d,w){return nt(this,p,d,!1,w)},f.prototype.copy=function(p,d,w,Y){if(!f.isBuffer(p))throw new TypeError("argument should be a Buffer");if(w||(w=0),!Y&&Y!==0&&(Y=this.length),d>=p.length&&(d=p.length),d||(d=0),Y>0&&Y<w&&(Y=w),Y===w||p.length===0||this.length===0)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(w<0||w>=this.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("sourceEnd out of bounds");Y>this.length&&(Y=this.length),p.length-d<Y-w&&(Y=p.length-d+w);var Ee=Y-w;return this===p&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(d,w,Y):Uint8Array.prototype.set.call(p,this.subarray(w,Y),d),Ee},f.prototype.fill=function(p,d,w,Y){if(typeof p=="string"){if(typeof d=="string"?(Y=d,d=0,w=this.length):typeof w=="string"&&(Y=w,w=this.length),Y!==void 0&&typeof Y!="string")throw new TypeError("encoding must be a string");if(typeof Y=="string"&&!f.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);if(p.length===1){var Ee=p.charCodeAt(0);(Y==="utf8"&&Ee<128||Y==="latin1")&&(p=Ee)}}else typeof p=="number"?p=p&255:typeof p=="boolean"&&(p=Number(p));if(d<0||this.length<d||this.length<w)throw new RangeError("Out of range index");if(w<=d)return this;d=d>>>0,w=w===void 0?this.length:w>>>0,p||(p=0);var H;if(typeof p=="number")for(H=d;H<w;++H)this[H]=p;else{var ne=f.isBuffer(p)?p:f.from(p,Y),Ge=ne.length;if(Ge===0)throw new TypeError('The value "'+p+'" is invalid for argument "value"');for(H=0;H<w-d;++H)this[H+d]=ne[H%Ge]}return this};var ut=/[^+/0-9A-Za-z-_]/g;function Pt(k){if(k=k.split("=")[0],k=k.trim().replace(ut,""),k.length<2)return"";for(;k.length%4!==0;)k=k+"=";return k}function Ht(k,p){p=p||1/0;for(var d,w=k.length,Y=null,Ee=[],H=0;H<w;++H){if(d=k.charCodeAt(H),d>55295&&d<57344){if(!Y){if(d>56319){(p-=3)>-1&&Ee.push(239,191,189);continue}else if(H+1===w){(p-=3)>-1&&Ee.push(239,191,189);continue}Y=d;continue}if(d<56320){(p-=3)>-1&&Ee.push(239,191,189),Y=d;continue}d=(Y-55296<<10|d-56320)+65536}else Y&&(p-=3)>-1&&Ee.push(239,191,189);if(Y=null,d<128){if((p-=1)<0)break;Ee.push(d)}else if(d<2048){if((p-=2)<0)break;Ee.push(d>>6|192,d&63|128)}else if(d<65536){if((p-=3)<0)break;Ee.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((p-=4)<0)break;Ee.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return Ee}function Ut(k){for(var p=[],d=0;d<k.length;++d)p.push(k.charCodeAt(d)&255);return p}function cr(k,p){for(var d,w,Y,Ee=[],H=0;H<k.length&&!((p-=2)<0);++H)d=k.charCodeAt(H),w=d>>8,Y=d%256,Ee.push(Y),Ee.push(w);return Ee}function or(k){return de.toByteArray(Pt(k))}function Cr(k,p,d,w){for(var Y=0;Y<w&&!(Y+d>=p.length||Y>=k.length);++Y)p[Y+d]=k[Y];return Y}function hr(k,p){return k instanceof p||k!=null&&k.constructor!=null&&k.constructor.name!=null&&k.constructor.name===p.name}function L(k){return k!==k}var it=function(){for(var k="0123456789abcdef",p=new Array(256),d=0;d<16;++d)for(var w=d*16,Y=0;Y<16;++Y)p[w+Y]=k[d]+k[Y];return p}()},64270:function(xn){(function(Yt,x){xn.exports=x()})(this,function(){"use strict";var Yt=function(m,u){return Yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,v){y.__proto__=v}||function(y,v){for(var re in v)Object.prototype.hasOwnProperty.call(v,re)&&(y[re]=v[re])},Yt(m,u)};function x(m,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");Yt(m,u);function y(){this.constructor=m}m.prototype=u===null?Object.create(u):(y.prototype=u.prototype,new y)}var ge=function(){return ge=Object.assign||function(u){for(var y,v=1,re=arguments.length;v<re;v++){y=arguments[v];for(var Fe in y)Object.prototype.hasOwnProperty.call(y,Fe)&&(u[Fe]=y[Fe])}return u},ge.apply(this,arguments)};function de(m,u,y,v){function re(Fe){return Fe instanceof y?Fe:new y(function(tt){tt(Fe)})}return new(y||(y=Promise))(function(Fe,tt){function xt(mr){try{nr(v.next(mr))}catch(a){tt(a)}}function Bt(mr){try{nr(v.throw(mr))}catch(a){tt(a)}}function nr(mr){mr.done?Fe(mr.value):re(mr.value).then(xt,Bt)}nr((v=v.apply(m,u||[])).next())})}function Q(m,u){var y={label:0,sent:function(){if(Fe[0]&1)throw Fe[1];return Fe[1]},trys:[],ops:[]},v,re,Fe,tt;return tt={next:xt(0),throw:xt(1),return:xt(2)},typeof Symbol=="function"&&(tt[Symbol.iterator]=function(){return this}),tt;function xt(nr){return function(mr){return Bt([nr,mr])}}function Bt(nr){if(v)throw new TypeError("Generator is already executing.");for(;y;)try{if(v=1,re&&(Fe=nr[0]&2?re.return:nr[0]?re.throw||((Fe=re.return)&&Fe.call(re),0):re.next)&&!(Fe=Fe.call(re,nr[1])).done)return Fe;switch(re=0,Fe&&(nr=[nr[0]&2,Fe.value]),nr[0]){case 0:case 1:Fe=nr;break;case 4:return y.label++,{value:nr[1],done:!1};case 5:y.label++,re=nr[1],nr=[0];continue;case 7:nr=y.ops.pop(),y.trys.pop();continue;default:if(Fe=y.trys,!(Fe=Fe.length>0&&Fe[Fe.length-1])&&(nr[0]===6||nr[0]===2)){y=0;continue}if(nr[0]===3&&(!Fe||nr[1]>Fe[0]&&nr[1]<Fe[3])){y.label=nr[1];break}if(nr[0]===6&&y.label<Fe[1]){y.label=Fe[1],Fe=nr;break}if(Fe&&y.label<Fe[2]){y.label=Fe[2],y.ops.push(nr);break}Fe[2]&&y.ops.pop(),y.trys.pop();continue}nr=u.call(m,y)}catch(mr){nr=[6,mr],re=0}finally{v=Fe=0}if(nr[0]&5)throw nr[1];return{value:nr[0]?nr[1]:void 0,done:!0}}}function Oe(m,u,y){if(y||arguments.length===2)for(var v=0,re=u.length,Fe;v<re;v++)(Fe||!(v in u))&&(Fe||(Fe=Array.prototype.slice.call(u,0,v)),Fe[v]=u[v]);return m.concat(Fe||u)}for(var ie=function(){function m(u,y,v,re){this.left=u,this.top=y,this.width=v,this.height=re}return m.prototype.add=function(u,y,v,re){return new m(this.left+u,this.top+y,this.width+v,this.height+re)},m.fromClientRect=function(u,y){return new m(y.left+u.windowBounds.left,y.top+u.windowBounds.top,y.width,y.height)},m.fromDOMRectList=function(u,y){var v=Array.from(y).find(function(re){return re.width!==0});return v?new m(v.left+u.windowBounds.left,v.top+u.windowBounds.top,v.width,v.height):m.EMPTY},m.EMPTY=new m(0,0,0,0),m}(),W=function(m,u){return ie.fromClientRect(m,u.getBoundingClientRect())},B=function(m){var u=m.body,y=m.documentElement;if(!u||!y)throw new Error("Unable to get document size");var v=Math.max(Math.max(u.scrollWidth,y.scrollWidth),Math.max(u.offsetWidth,y.offsetWidth),Math.max(u.clientWidth,y.clientWidth)),re=Math.max(Math.max(u.scrollHeight,y.scrollHeight),Math.max(u.offsetHeight,y.offsetHeight),Math.max(u.clientHeight,y.clientHeight));return new ie(0,0,v,re)},f=function(m){for(var u=[],y=0,v=m.length;y<v;){var re=m.charCodeAt(y++);if(re>=55296&&re<=56319&&y<v){var Fe=m.charCodeAt(y++);(Fe&64512)===56320?u.push(((re&1023)<<10)+(Fe&1023)+65536):(u.push(re),y--)}else u.push(re)}return u},E=function(){for(var m=[],u=0;u<arguments.length;u++)m[u]=arguments[u];if(String.fromCodePoint)return String.fromCodePoint.apply(String,m);var y=m.length;if(!y)return"";for(var v=[],re=-1,Fe="";++re<y;){var tt=m[re];tt<=65535?v.push(tt):(tt-=65536,v.push((tt>>10)+55296,tt%1024+56320)),(re+1===y||v.length>16384)&&(Fe+=String.fromCharCode.apply(String,v),v.length=0)}return Fe},h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),S=0;S<h.length;S++)$[h.charCodeAt(S)]=S;for(var _="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),R=0;R<_.length;R++)N[_.charCodeAt(R)]=R;for(var I=function(m){var u=m.length*.75,y=m.length,v,re=0,Fe,tt,xt,Bt;m[m.length-1]==="="&&(u--,m[m.length-2]==="="&&u--);var nr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(u):new Array(u),mr=Array.isArray(nr)?nr:new Uint8Array(nr);for(v=0;v<y;v+=4)Fe=N[m.charCodeAt(v)],tt=N[m.charCodeAt(v+1)],xt=N[m.charCodeAt(v+2)],Bt=N[m.charCodeAt(v+3)],mr[re++]=Fe<<2|tt>>4,mr[re++]=(tt&15)<<4|xt>>2,mr[re++]=(xt&3)<<6|Bt&63;return nr},J=function(m){for(var u=m.length,y=[],v=0;v<u;v+=2)y.push(m[v+1]<<8|m[v]);return y},K=function(m){for(var u=m.length,y=[],v=0;v<u;v+=4)y.push(m[v+3]<<24|m[v+2]<<16|m[v+1]<<8|m[v]);return y},se=5,te=11,G=2,V=te-se,j=65536>>se,le=1<<se,he=le-1,Ne=1024>>se,Be=j+Ne,je=Be,q=32,ce=je+q,D=65536>>te,ot=1<<V,ke=ot-1,Ce=function(m,u,y){return m.slice?m.slice(u,y):new Uint16Array(Array.prototype.slice.call(m,u,y))},Qe=function(m,u,y){return m.slice?m.slice(u,y):new Uint32Array(Array.prototype.slice.call(m,u,y))},ve=function(m,u){var y=I(m),v=Array.isArray(y)?K(y):new Uint32Array(y),re=Array.isArray(y)?J(y):new Uint16Array(y),Fe=24,tt=Ce(re,Fe/2,v[4]/2),xt=v[5]===2?Ce(re,(Fe+v[4])/2):Qe(v,Math.ceil((Fe+v[4])/4));return new Pe(v[0],v[1],v[2],v[3],tt,xt)},Pe=function(){function m(u,y,v,re,Fe,tt){this.initialValue=u,this.errorValue=y,this.highStart=v,this.highValueIndex=re,this.index=Fe,this.data=tt}return m.prototype.get=function(u){var y;if(u>=0){if(u<55296||u>56319&&u<=65535)return y=this.index[u>>se],y=(y<<G)+(u&he),this.data[y];if(u<=65535)return y=this.index[j+(u-55296>>se)],y=(y<<G)+(u&he),this.data[y];if(u<this.highStart)return y=ce-D+(u>>te),y=this.index[y],y+=u>>se&ke,y=this.index[y],y=(y<<G)+(u&he),this.data[y];if(u<=1114111)return this.data[this.highValueIndex]}return this.errorValue},m}(),fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ye=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),at=0;at<fe.length;at++)ye[fe.charCodeAt(at)]=at;var rt="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",nt=50,ut=1,Pt=2,Ht=3,Ut=4,cr=5,or=7,Cr=8,hr=9,L=10,it=11,k=12,p=13,d=14,w=15,Y=16,Ee=17,H=18,ne=19,Ge=20,xe=21,we=22,qe=23,Et=24,pe=25,dt=26,At=27,Me=28,De=29,gt=30,jt=31,Tt=32,ir=33,Fr=34,Pr=35,Hr=36,Rr=37,sr=38,lr=39,$r=40,ln=41,En=42,cn=43,In=[9001,65288],bi="!",Ir="\xD7",qn="\xF7",wi=ve(rt),$n=[gt,Hr],Ni=[ut,Pt,Ht,cr],gi=[L,Cr],Qi=[At,dt],ba=Ni.concat(gi),$i=[sr,lr,$r,Fr,Pr],ri=[w,p],xi=function(m,u){u===void 0&&(u="strict");var y=[],v=[],re=[];return m.forEach(function(Fe,tt){var xt=wi.get(Fe);if(xt>nt?(re.push(!0),xt-=nt):re.push(!1),["normal","auto","loose"].indexOf(u)!==-1&&[8208,8211,12316,12448].indexOf(Fe)!==-1)return v.push(tt),y.push(Y);if(xt===Ut||xt===it){if(tt===0)return v.push(tt),y.push(gt);var Bt=y[tt-1];return ba.indexOf(Bt)===-1?(v.push(v[tt-1]),y.push(Bt)):(v.push(tt),y.push(gt))}if(v.push(tt),xt===jt)return y.push(u==="strict"?xe:Rr);if(xt===En||xt===De)return y.push(gt);if(xt===cn)return Fe>=131072&&Fe<=196605||Fe>=196608&&Fe<=262141?y.push(Rr):y.push(gt);y.push(xt)}),[v,y,re]},Ti=function(m,u,y,v){var re=v[y];if(Array.isArray(m)?m.indexOf(re)!==-1:m===re)for(var Fe=y;Fe<=v.length;){Fe++;var tt=v[Fe];if(tt===u)return!0;if(tt!==L)break}if(re===L)for(var Fe=y;Fe>0;){Fe--;var xt=v[Fe];if(Array.isArray(m)?m.indexOf(xt)!==-1:m===xt)for(var Bt=y;Bt<=v.length;){Bt++;var tt=v[Bt];if(tt===u)return!0;if(tt!==L)break}if(xt!==L)break}return!1},me=function(m,u){for(var y=m;y>=0;){var v=u[y];if(v===L)y--;else return v}return 0},Ue=function(m,u,y,v,re){if(y[v]===0)return Ir;var Fe=v-1;if(Array.isArray(re)&&re[Fe]===!0)return Ir;var tt=Fe-1,xt=Fe+1,Bt=u[Fe],nr=tt>=0?u[tt]:0,mr=u[xt];if(Bt===Pt&&mr===Ht)return Ir;if(Ni.indexOf(Bt)!==-1)return bi;if(Ni.indexOf(mr)!==-1||gi.indexOf(mr)!==-1)return Ir;if(me(Fe,u)===Cr)return qn;if(wi.get(m[Fe])===it||(Bt===Tt||Bt===ir)&&wi.get(m[xt])===it||Bt===or||mr===or||Bt===hr||[L,p,w].indexOf(Bt)===-1&&mr===hr||[Ee,H,ne,Et,Me].indexOf(mr)!==-1||me(Fe,u)===we||Ti(qe,we,Fe,u)||Ti([Ee,H],xe,Fe,u)||Ti(k,k,Fe,u))return Ir;if(Bt===L)return qn;if(Bt===qe||mr===qe)return Ir;if(mr===Y||Bt===Y)return qn;if([p,w,xe].indexOf(mr)!==-1||Bt===d||nr===Hr&&ri.indexOf(Bt)!==-1||Bt===Me&&mr===Hr||mr===Ge||$n.indexOf(mr)!==-1&&Bt===pe||$n.indexOf(Bt)!==-1&&mr===pe||Bt===At&&[Rr,Tt,ir].indexOf(mr)!==-1||[Rr,Tt,ir].indexOf(Bt)!==-1&&mr===dt||$n.indexOf(Bt)!==-1&&Qi.indexOf(mr)!==-1||Qi.indexOf(Bt)!==-1&&$n.indexOf(mr)!==-1||[At,dt].indexOf(Bt)!==-1&&(mr===pe||[we,w].indexOf(mr)!==-1&&u[xt+1]===pe)||[we,w].indexOf(Bt)!==-1&&mr===pe||Bt===pe&&[pe,Me,Et].indexOf(mr)!==-1)return Ir;if([pe,Me,Et,Ee,H].indexOf(mr)!==-1)for(var a=Fe;a>=0;){var g=u[a];if(g===pe)return Ir;if([Me,Et].indexOf(g)!==-1)a--;else break}if([At,dt].indexOf(mr)!==-1)for(var a=[Ee,H].indexOf(Bt)!==-1?tt:Fe;a>=0;){var g=u[a];if(g===pe)return Ir;if([Me,Et].indexOf(g)!==-1)a--;else break}if(sr===Bt&&[sr,lr,Fr,Pr].indexOf(mr)!==-1||[lr,Fr].indexOf(Bt)!==-1&&[lr,$r].indexOf(mr)!==-1||[$r,Pr].indexOf(Bt)!==-1&&mr===$r||$i.indexOf(Bt)!==-1&&[Ge,dt].indexOf(mr)!==-1||$i.indexOf(mr)!==-1&&Bt===At||$n.indexOf(Bt)!==-1&&$n.indexOf(mr)!==-1||Bt===Et&&$n.indexOf(mr)!==-1||$n.concat(pe).indexOf(Bt)!==-1&&mr===we&&In.indexOf(m[xt])===-1||$n.concat(pe).indexOf(mr)!==-1&&Bt===H)return Ir;if(Bt===ln&&mr===ln){for(var O=y[Fe],oe=1;O>0&&(O--,u[O]===ln);)oe++;if(oe%2!==0)return Ir}return Bt===Tt&&mr===ir?Ir:qn},Le=function(m,u){u||(u={lineBreak:"normal",wordBreak:"normal"});var y=xi(m,u.lineBreak),v=y[0],re=y[1],Fe=y[2];(u.wordBreak==="break-all"||u.wordBreak==="break-word")&&(re=re.map(function(xt){return[pe,gt,En].indexOf(xt)!==-1?Rr:xt}));var tt=u.wordBreak==="keep-all"?Fe.map(function(xt,Bt){return xt&&m[Bt]>=19968&&m[Bt]<=40959}):void 0;return[v,re,tt]},lt=function(){function m(u,y,v,re){this.codePoints=u,this.required=y===bi,this.start=v,this.end=re}return m.prototype.slice=function(){return E.apply(void 0,this.codePoints.slice(this.start,this.end))},m}(),$t=function(m,u){var y=f(m),v=Le(y,u),re=v[0],Fe=v[1],tt=v[2],xt=y.length,Bt=0,nr=0;return{next:function(){if(nr>=xt)return{done:!0,value:null};for(var mr=Ir;nr<xt&&(mr=Ue(y,Fe,re,++nr,tt))===Ir;);if(mr!==Ir||nr===xt){var a=new lt(y,mr,Bt,nr);return Bt=nr,{value:a,done:!1}}return{done:!0,value:null}}}},Qt=1,Br=2,pr=4,Kr=8,Wr=10,en=47,Vr=92,jr=9,Yr=32,mn=34,tn=61,Dn=35,Qn=36,ui=37,On=39,on=40,Kt=41,Zt=95,qt=45,er=33,Xt=60,Ur=62,Mr=64,Gr=91,Mn=93,Pn=61,si=123,ei=63,Ci=125,Yn=124,Hn=126,an=128,pi=65533,Ln=42,ni=43,vi=44,Mi=58,Jn=59,_i=46,ra=0,ai=8,An=11,rn=14,Tn=31,wn=127,jn=-1,ci=48,Bi=97,Aa=101,Yi=102,ao=117,ti=122,Un=65,Fi=69,Ei=70,ha=85,No=90,na=function(m){return m>=ci&&m<=57},Ji=function(m){return m>=55296&&m<=57343},ja=function(m){return na(m)||m>=Un&&m<=Ei||m>=Bi&&m<=Yi},La=function(m){return m>=Bi&&m<=ti},eo=function(m){return m>=Un&&m<=No},vo=function(m){return La(m)||eo(m)},wa=function(m){return m>=an},Ai=function(m){return m===Wr||m===jr||m===Yr},ua=function(m){return vo(m)||wa(m)||m===Zt},Do=function(m){return ua(m)||na(m)||m===qt},uo=function(m){return m>=ra&&m<=ai||m===An||m>=rn&&m<=Tn||m===wn},Xa=function(m,u){return m!==Vr?!1:u!==Wr},Pi=function(m,u,y){return m===qt?ua(u)||Xa(u,y):ua(m)?!0:!!(m===Vr&&Xa(m,u))},Po=function(m,u,y){return m===ni||m===qt?na(u)?!0:u===_i&&na(y):na(m===_i?u:m)},fo=function(m){var u=0,y=1;(m[u]===ni||m[u]===qt)&&(m[u]===qt&&(y=-1),u++);for(var v=[];na(m[u]);)v.push(m[u++]);var re=v.length?parseInt(E.apply(void 0,v),10):0;m[u]===_i&&u++;for(var Fe=[];na(m[u]);)Fe.push(m[u++]);var tt=Fe.length,xt=tt?parseInt(E.apply(void 0,Fe),10):0;(m[u]===Fi||m[u]===Aa)&&u++;var Bt=1;(m[u]===ni||m[u]===qt)&&(m[u]===qt&&(Bt=-1),u++);for(var nr=[];na(m[u]);)nr.push(m[u++]);var mr=nr.length?parseInt(E.apply(void 0,nr),10):0;return y*(re+xt*Math.pow(10,-tt))*Math.pow(10,Bt*mr)},il={type:2},$o={type:3},Hs={type:4},Zo={type:13},vl={type:8},za={type:21},Qa={type:9},_a={type:10},js={type:11},yi={type:12},Vi={type:14},Oi={type:23},Wi={type:1},da={type:25},ka={type:24},Vo={type:26},_o={type:27},Bo={type:28},$a={type:29},xa={type:31},pa={type:32},Oa=function(){function m(){this._value=[]}return m.prototype.write=function(u){this._value=this._value.concat(f(u))},m.prototype.read=function(){for(var u=[],y=this.consumeToken();y!==pa;)u.push(y),y=this.consumeToken();return u},m.prototype.consumeToken=function(){var u=this.consumeCodePoint();switch(u){case mn:return this.consumeStringToken(mn);case Dn:var y=this.peekCodePoint(0),v=this.peekCodePoint(1),re=this.peekCodePoint(2);if(Do(y)||Xa(v,re)){var Fe=Pi(y,v,re)?Br:Qt,tt=this.consumeName();return{type:5,value:tt,flags:Fe}}break;case Qn:if(this.peekCodePoint(0)===tn)return this.consumeCodePoint(),Zo;break;case On:return this.consumeStringToken(On);case on:return il;case Kt:return $o;case Ln:if(this.peekCodePoint(0)===tn)return this.consumeCodePoint(),Vi;break;case ni:if(Po(u,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(u),this.consumeNumericToken();break;case vi:return Hs;case qt:var xt=u,Bt=this.peekCodePoint(0),nr=this.peekCodePoint(1);if(Po(xt,Bt,nr))return this.reconsumeCodePoint(u),this.consumeNumericToken();if(Pi(xt,Bt,nr))return this.reconsumeCodePoint(u),this.consumeIdentLikeToken();if(Bt===qt&&nr===Ur)return this.consumeCodePoint(),this.consumeCodePoint(),ka;break;case _i:if(Po(u,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(u),this.consumeNumericToken();break;case en:if(this.peekCodePoint(0)===Ln)for(this.consumeCodePoint();;){var mr=this.consumeCodePoint();if(mr===Ln&&(mr=this.consumeCodePoint(),mr===en))return this.consumeToken();if(mr===jn)return this.consumeToken()}break;case Mi:return Vo;case Jn:return _o;case Xt:if(this.peekCodePoint(0)===er&&this.peekCodePoint(1)===qt&&this.peekCodePoint(2)===qt)return this.consumeCodePoint(),this.consumeCodePoint(),da;break;case Mr:var a=this.peekCodePoint(0),g=this.peekCodePoint(1),O=this.peekCodePoint(2);if(Pi(a,g,O)){var tt=this.consumeName();return{type:7,value:tt}}break;case Gr:return Bo;case Vr:if(Xa(u,this.peekCodePoint(0)))return this.reconsumeCodePoint(u),this.consumeIdentLikeToken();break;case Mn:return $a;case Pn:if(this.peekCodePoint(0)===tn)return this.consumeCodePoint(),vl;break;case si:return js;case Ci:return yi;case ao:case ha:var oe=this.peekCodePoint(0),Ie=this.peekCodePoint(1);return oe===ni&&(ja(Ie)||Ie===ei)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(u),this.consumeIdentLikeToken();case Yn:if(this.peekCodePoint(0)===tn)return this.consumeCodePoint(),Qa;if(this.peekCodePoint(0)===Yn)return this.consumeCodePoint(),za;break;case Hn:if(this.peekCodePoint(0)===tn)return this.consumeCodePoint(),_a;break;case jn:return pa}return Ai(u)?(this.consumeWhiteSpace(),xa):na(u)?(this.reconsumeCodePoint(u),this.consumeNumericToken()):ua(u)?(this.reconsumeCodePoint(u),this.consumeIdentLikeToken()):{type:6,value:E(u)}},m.prototype.consumeCodePoint=function(){var u=this._value.shift();return typeof u=="undefined"?-1:u},m.prototype.reconsumeCodePoint=function(u){this._value.unshift(u)},m.prototype.peekCodePoint=function(u){return u>=this._value.length?-1:this._value[u]},m.prototype.consumeUnicodeRangeToken=function(){for(var u=[],y=this.consumeCodePoint();ja(y)&&u.length<6;)u.push(y),y=this.consumeCodePoint();for(var v=!1;y===ei&&u.length<6;)u.push(y),y=this.consumeCodePoint(),v=!0;if(v){var re=parseInt(E.apply(void 0,u.map(function(Bt){return Bt===ei?ci:Bt})),16),Fe=parseInt(E.apply(void 0,u.map(function(Bt){return Bt===ei?Ei:Bt})),16);return{type:30,start:re,end:Fe}}var tt=parseInt(E.apply(void 0,u),16);if(this.peekCodePoint(0)===qt&&ja(this.peekCodePoint(1))){this.consumeCodePoint(),y=this.consumeCodePoint();for(var xt=[];ja(y)&&xt.length<6;)xt.push(y),y=this.consumeCodePoint();var Fe=parseInt(E.apply(void 0,xt),16);return{type:30,start:tt,end:Fe}}else return{type:30,start:tt,end:tt}},m.prototype.consumeIdentLikeToken=function(){var u=this.consumeName();return u.toLowerCase()==="url"&&this.peekCodePoint(0)===on?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===on?(this.consumeCodePoint(),{type:19,value:u}):{type:20,value:u}},m.prototype.consumeUrlToken=function(){var u=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===jn)return{type:22,value:""};var y=this.peekCodePoint(0);if(y===On||y===mn){var v=this.consumeStringToken(this.consumeCodePoint());return v.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===jn||this.peekCodePoint(0)===Kt)?(this.consumeCodePoint(),{type:22,value:v.value}):(this.consumeBadUrlRemnants(),Oi)}for(;;){var re=this.consumeCodePoint();if(re===jn||re===Kt)return{type:22,value:E.apply(void 0,u)};if(Ai(re))return this.consumeWhiteSpace(),this.peekCodePoint(0)===jn||this.peekCodePoint(0)===Kt?(this.consumeCodePoint(),{type:22,value:E.apply(void 0,u)}):(this.consumeBadUrlRemnants(),Oi);if(re===mn||re===On||re===on||uo(re))return this.consumeBadUrlRemnants(),Oi;if(re===Vr)if(Xa(re,this.peekCodePoint(0)))u.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Oi;else u.push(re)}},m.prototype.consumeWhiteSpace=function(){for(;Ai(this.peekCodePoint(0));)this.consumeCodePoint()},m.prototype.consumeBadUrlRemnants=function(){for(;;){var u=this.consumeCodePoint();if(u===Kt||u===jn)return;Xa(u,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},m.prototype.consumeStringSlice=function(u){for(var y=5e4,v="";u>0;){var re=Math.min(y,u);v+=E.apply(void 0,this._value.splice(0,re)),u-=re}return this._value.shift(),v},m.prototype.consumeStringToken=function(u){var y="",v=0;do{var re=this._value[v];if(re===jn||re===void 0||re===u)return y+=this.consumeStringSlice(v),{type:0,value:y};if(re===Wr)return this._value.splice(0,v),Wi;if(re===Vr){var Fe=this._value[v+1];Fe!==jn&&Fe!==void 0&&(Fe===Wr?(y+=this.consumeStringSlice(v),v=-1,this._value.shift()):Xa(re,Fe)&&(y+=this.consumeStringSlice(v),y+=E(this.consumeEscapedCodePoint()),v=-1))}v++}while(!0)},m.prototype.consumeNumber=function(){var u=[],y=pr,v=this.peekCodePoint(0);for((v===ni||v===qt)&&u.push(this.consumeCodePoint());na(this.peekCodePoint(0));)u.push(this.consumeCodePoint());v=this.peekCodePoint(0);var re=this.peekCodePoint(1);if(v===_i&&na(re))for(u.push(this.consumeCodePoint(),this.consumeCodePoint()),y=Kr;na(this.peekCodePoint(0));)u.push(this.consumeCodePoint());v=this.peekCodePoint(0),re=this.peekCodePoint(1);var Fe=this.peekCodePoint(2);if((v===Fi||v===Aa)&&((re===ni||re===qt)&&na(Fe)||na(re)))for(u.push(this.consumeCodePoint(),this.consumeCodePoint()),y=Kr;na(this.peekCodePoint(0));)u.push(this.consumeCodePoint());return[fo(u),y]},m.prototype.consumeNumericToken=function(){var u=this.consumeNumber(),y=u[0],v=u[1],re=this.peekCodePoint(0),Fe=this.peekCodePoint(1),tt=this.peekCodePoint(2);if(Pi(re,Fe,tt)){var xt=this.consumeName();return{type:15,number:y,flags:v,unit:xt}}return re===ui?(this.consumeCodePoint(),{type:16,number:y,flags:v}):{type:17,number:y,flags:v}},m.prototype.consumeEscapedCodePoint=function(){var u=this.consumeCodePoint();if(ja(u)){for(var y=E(u);ja(this.peekCodePoint(0))&&y.length<6;)y+=E(this.consumeCodePoint());Ai(this.peekCodePoint(0))&&this.consumeCodePoint();var v=parseInt(y,16);return v===0||Ji(v)||v>1114111?pi:v}return u===jn?pi:u},m.prototype.consumeName=function(){for(var u="";;){var y=this.consumeCodePoint();if(Do(y))u+=E(y);else if(Xa(y,this.peekCodePoint(0)))u+=E(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(y),u}},m}(),Ja=function(){function m(u){this._tokens=u}return m.create=function(u){var y=new Oa;return y.write(u),new m(y.read())},m.parseValue=function(u){return m.create(u).parseComponentValue()},m.parseValues=function(u){return m.create(u).parseComponentValues()},m.prototype.parseComponentValue=function(){for(var u=this.consumeToken();u.type===31;)u=this.consumeToken();if(u.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(u);var y=this.consumeComponentValue();do u=this.consumeToken();while(u.type===31);if(u.type===32)return y;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},m.prototype.parseComponentValues=function(){for(var u=[];;){var y=this.consumeComponentValue();if(y.type===32)return u;u.push(y),u.push()}},m.prototype.consumeComponentValue=function(){var u=this.consumeToken();switch(u.type){case 11:case 28:case 2:return this.consumeSimpleBlock(u.type);case 19:return this.consumeFunction(u)}return u},m.prototype.consumeSimpleBlock=function(u){for(var y={type:u,values:[]},v=this.consumeToken();;){if(v.type===32||ks(v,u))return y;this.reconsumeToken(v),y.values.push(this.consumeComponentValue()),v=this.consumeToken()}},m.prototype.consumeFunction=function(u){for(var y={name:u.value,values:[],type:18};;){var v=this.consumeToken();if(v.type===32||v.type===3)return y;this.reconsumeToken(v),y.values.push(this.consumeComponentValue())}},m.prototype.consumeToken=function(){var u=this._tokens.shift();return typeof u=="undefined"?pa:u},m.prototype.reconsumeToken=function(u){this._tokens.unshift(u)},m}(),oo=function(m){return m.type===15},Ua=function(m){return m.type===17},Da=function(m){return m.type===20},Fo=function(m){return m.type===0},Ll=function(m,u){return Da(m)&&m.value===u},cs=function(m){return m.type!==31},dl=function(m){return m.type!==31&&m.type!==4},Oo=function(m){var u=[],y=[];return m.forEach(function(v){if(v.type===4){if(y.length===0)throw new Error("Error parsing function args, zero tokens for arg");u.push(y),y=[];return}v.type!==31&&y.push(v)}),y.length&&u.push(y),u},ks=function(m,u){return u===11&&m.type===12||u===28&&m.type===29?!0:u===2&&m.type===3},Io=function(m){return m.type===17||m.type===15},Kn=function(m){return m.type===16||Io(m)},kl=function(m){return m.length>1?[m[0],m[1]]:[m[0]]},To={type:17,number:0,flags:pr},Hl={type:16,number:50,flags:pr},zs={type:16,number:100,flags:pr},ms=function(m,u,y){var v=m[0],re=m[1];return[Pa(v,u),Pa(typeof re!="undefined"?re:v,y)]},Pa=function(m,u){if(m.type===16)return m.number/100*u;if(oo(m))switch(m.unit){case"rem":case"em":return 16*m.number;case"px":default:return m.number}return m.number},Uo="deg",jl="grad",tc="rad",fl="turn",ma={name:"angle",parse:function(m,u){if(u.type===15)switch(u.unit){case Uo:return Math.PI*u.number/180;case jl:return Math.PI/200*u.number;case tc:return u.number;case fl:return Math.PI*2*u.number}throw new Error("Unsupported angle type")}},oa=function(m){return m.type===15&&(m.unit===Uo||m.unit===jl||m.unit===tc||m.unit===fl)},ho=function(m){var u=m.filter(Da).map(function(y){return y.value}).join(" ");switch(u){case"to bottom right":case"to right bottom":case"left top":case"top left":return[To,To];case"to top":case"bottom":return Za(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[To,zs];case"to right":case"left":return Za(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[zs,zs];case"to bottom":case"top":return Za(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[zs,To];case"to left":case"right":return Za(270)}return 0},Za=function(m){return Math.PI*m/180},to={name:"color",parse:function(m,u){if(u.type===18){var y=Wc[u.name];if(typeof y=="undefined")throw new Error('Attempting to parse an unsupported color function "'+u.name+'"');return y(m,u.values)}if(u.type===5){if(u.value.length===3){var v=u.value.substring(0,1),re=u.value.substring(1,2),Fe=u.value.substring(2,3);return Wo(parseInt(v+v,16),parseInt(re+re,16),parseInt(Fe+Fe,16),1)}if(u.value.length===4){var v=u.value.substring(0,1),re=u.value.substring(1,2),Fe=u.value.substring(2,3),tt=u.value.substring(3,4);return Wo(parseInt(v+v,16),parseInt(re+re,16),parseInt(Fe+Fe,16),parseInt(tt+tt,16)/255)}if(u.value.length===6){var v=u.value.substring(0,2),re=u.value.substring(2,4),Fe=u.value.substring(4,6);return Wo(parseInt(v,16),parseInt(re,16),parseInt(Fe,16),1)}if(u.value.length===8){var v=u.value.substring(0,2),re=u.value.substring(2,4),Fe=u.value.substring(4,6),tt=u.value.substring(6,8);return Wo(parseInt(v,16),parseInt(re,16),parseInt(Fe,16),parseInt(tt,16)/255)}}if(u.type===20){var xt=Js[u.value.toUpperCase()];if(typeof xt!="undefined")return xt}return Js.TRANSPARENT}},Ro=function(m){return(255&m)===0},Ya=function(m){var u=255&m,y=255&m>>8,v=255&m>>16,re=255&m>>24;return u<255?"rgba("+re+","+v+","+y+","+u/255+")":"rgb("+re+","+v+","+y+")"},Wo=function(m,u,y,v){return(m<<24|u<<16|y<<8|Math.round(v*255)<<0)>>>0},Ds=function(m,u){if(m.type===17)return m.number;if(m.type===16){var y=u===3?1:255;return u===3?m.number/100*y:Math.round(m.number/100*y)}return 0},hl=function(m,u){var y=u.filter(dl);if(y.length===3){var v=y.map(Ds),re=v[0],Fe=v[1],tt=v[2];return Wo(re,Fe,tt,1)}if(y.length===4){var xt=y.map(Ds),re=xt[0],Fe=xt[1],tt=xt[2],Bt=xt[3];return Wo(re,Fe,tt,Bt)}return 0};function Xs(m,u,y){return y<0&&(y+=1),y>=1&&(y-=1),y<1/6?(u-m)*y*6+m:y<1/2?u:y<2/3?(u-m)*6*(2/3-y)+m:m}var al=function(m,u){var y=u.filter(dl),v=y[0],re=y[1],Fe=y[2],tt=y[3],xt=(v.type===17?Za(v.number):ma.parse(m,v))/(Math.PI*2),Bt=Kn(re)?re.number/100:0,nr=Kn(Fe)?Fe.number/100:0,mr=typeof tt!="undefined"&&Kn(tt)?Pa(tt,1):1;if(Bt===0)return Wo(nr*255,nr*255,nr*255,1);var a=nr<=.5?nr*(Bt+1):nr+Bt-nr*Bt,g=nr*2-a,O=Xs(g,a,xt+1/3),oe=Xs(g,a,xt),Ie=Xs(g,a,xt-1/3);return Wo(O*255,oe*255,Ie*255,mr)},Wc={hsl:al,hsla:al,rgb:hl,rgba:hl},Dl=function(m,u){return to.parse(m,Ja.create(u).parseComponentValue())},Js={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},lA={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(m,u){return u.map(function(y){if(Da(y))switch(y.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},cA={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},hc=function(m,u){var y=to.parse(m,u[0]),v=u[1];return v&&Kn(v)?{color:y,stop:v}:{color:y,stop:null}},wA=function(m,u){var y=m[0],v=m[m.length-1];y.stop===null&&(y.stop=To),v.stop===null&&(v.stop=zs);for(var re=[],Fe=0,tt=0;tt<m.length;tt++){var xt=m[tt].stop;if(xt!==null){var Bt=Pa(xt,u);Bt>Fe?re.push(Bt):re.push(Fe),Fe=Bt}else re.push(null)}for(var nr=null,tt=0;tt<re.length;tt++){var mr=re[tt];if(mr===null)nr===null&&(nr=tt);else if(nr!==null){for(var a=tt-nr,g=re[nr-1],O=(mr-g)/(a+1),oe=1;oe<=a;oe++)re[nr+oe-1]=O*oe;nr=null}}return m.map(function(Ie,Ve){var ze=Ie.color;return{color:ze,stop:Math.max(Math.min(1,re[Ve]/u),0)}})},Pl=function(m,u,y){var v=u/2,re=y/2,Fe=Pa(m[0],u)-v,tt=re-Pa(m[1],y);return(Math.atan2(tt,Fe)+Math.PI*2)%(Math.PI*2)},Ys=function(m,u,y){var v=typeof m=="number"?m:Pl(m,u,y),re=Math.abs(u*Math.sin(v))+Math.abs(y*Math.cos(v)),Fe=u/2,tt=y/2,xt=re/2,Bt=Math.sin(v-Math.PI/2)*xt,nr=Math.cos(v-Math.PI/2)*xt;return[re,Fe-nr,Fe+nr,tt-Bt,tt+Bt]},ol=function(m,u){return Math.sqrt(m*m+u*u)},sl=function(m,u,y,v,re){var Fe=[[0,0],[0,u],[m,0],[m,u]];return Fe.reduce(function(tt,xt){var Bt=xt[0],nr=xt[1],mr=ol(y-Bt,v-nr);return(re?mr<tt.optimumDistance:mr>tt.optimumDistance)?{optimumCorner:xt,optimumDistance:mr}:tt},{optimumDistance:re?1/0:-1/0,optimumCorner:null}).optimumCorner},Ta=function(m,u,y,v,re){var Fe=0,tt=0;switch(m.size){case 0:m.shape===0?Fe=tt=Math.min(Math.abs(u),Math.abs(u-v),Math.abs(y),Math.abs(y-re)):m.shape===1&&(Fe=Math.min(Math.abs(u),Math.abs(u-v)),tt=Math.min(Math.abs(y),Math.abs(y-re)));break;case 2:if(m.shape===0)Fe=tt=Math.min(ol(u,y),ol(u,y-re),ol(u-v,y),ol(u-v,y-re));else if(m.shape===1){var xt=Math.min(Math.abs(y),Math.abs(y-re))/Math.min(Math.abs(u),Math.abs(u-v)),Bt=sl(v,re,u,y,!0),nr=Bt[0],mr=Bt[1];Fe=ol(nr-u,(mr-y)/xt),tt=xt*Fe}break;case 1:m.shape===0?Fe=tt=Math.max(Math.abs(u),Math.abs(u-v),Math.abs(y),Math.abs(y-re)):m.shape===1&&(Fe=Math.max(Math.abs(u),Math.abs(u-v)),tt=Math.max(Math.abs(y),Math.abs(y-re)));break;case 3:if(m.shape===0)Fe=tt=Math.max(ol(u,y),ol(u,y-re),ol(u-v,y),ol(u-v,y-re));else if(m.shape===1){var xt=Math.max(Math.abs(y),Math.abs(y-re))/Math.max(Math.abs(u),Math.abs(u-v)),a=sl(v,re,u,y,!1),nr=a[0],mr=a[1];Fe=ol(nr-u,(mr-y)/xt),tt=xt*Fe}break}return Array.isArray(m.size)&&(Fe=Pa(m.size[0],v),tt=m.size.length===2?Pa(m.size[1],re):Fe),[Fe,tt]},po=function(m,u){var y=Za(180),v=[];return Oo(u).forEach(function(re,Fe){if(Fe===0){var tt=re[0];if(tt.type===20&&tt.value==="to"){y=ho(re);return}else if(oa(tt)){y=ma.parse(m,tt);return}}var xt=hc(m,re);v.push(xt)}),{angle:y,stops:v,type:1}},mo=function(m,u){var y=Za(180),v=[];return Oo(u).forEach(function(re,Fe){if(Fe===0){var tt=re[0];if(tt.type===20&&["top","left","right","bottom"].indexOf(tt.value)!==-1){y=ho(re);return}else if(oa(tt)){y=(ma.parse(m,tt)+Za(270))%Za(360);return}}var xt=hc(m,re);v.push(xt)}),{angle:y,stops:v,type:1}},Go=function(m,u){var y=Za(180),v=[],re=1,Fe=0,tt=3,xt=[];return Oo(u).forEach(function(Bt,nr){var mr=Bt[0];if(nr===0){if(Da(mr)&&mr.value==="linear"){re=1;return}else if(Da(mr)&&mr.value==="radial"){re=2;return}}if(mr.type===18){if(mr.name==="from"){var a=to.parse(m,mr.values[0]);v.push({stop:To,color:a})}else if(mr.name==="to"){var a=to.parse(m,mr.values[0]);v.push({stop:zs,color:a})}else if(mr.name==="color-stop"){var g=mr.values.filter(dl);if(g.length===2){var a=to.parse(m,g[1]),O=g[0];Ua(O)&&v.push({stop:{type:16,number:O.number*100,flags:O.flags},color:a})}}}}),re===1?{angle:(y+Za(180))%Za(360),stops:v,type:re}:{size:tt,shape:Fe,stops:v,position:xt,type:re}},Ps="closest-side",kc="farthest-side",yl="closest-corner",Gc="farthest-corner",xA="circle",CA="ellipse",pc="cover",mc="contain",Uu=function(m,u){var y=0,v=3,re=[],Fe=[];return Oo(u).forEach(function(tt,xt){var Bt=!0;if(xt===0){var nr=!1;Bt=tt.reduce(function(a,g){if(nr)if(Da(g))switch(g.value){case"center":return Fe.push(Hl),a;case"top":case"left":return Fe.push(To),a;case"right":case"bottom":return Fe.push(zs),a}else(Kn(g)||Io(g))&&Fe.push(g);else if(Da(g))switch(g.value){case xA:return y=0,!1;case CA:return y=1,!1;case"at":return nr=!0,!1;case Ps:return v=0,!1;case pc:case kc:return v=1,!1;case mc:case yl:return v=2,!1;case Gc:return v=3,!1}else if(Io(g)||Kn(g))return Array.isArray(v)||(v=[]),v.push(g),!1;return a},Bt)}if(Bt){var mr=hc(m,tt);re.push(mr)}}),{size:v,shape:y,stops:re,position:Fe,type:2}},KA=function(m,u){var y=0,v=3,re=[],Fe=[];return Oo(u).forEach(function(tt,xt){var Bt=!0;if(xt===0?Bt=tt.reduce(function(mr,a){if(Da(a))switch(a.value){case"center":return Fe.push(Hl),!1;case"top":case"left":return Fe.push(To),!1;case"right":case"bottom":return Fe.push(zs),!1}else if(Kn(a)||Io(a))return Fe.push(a),!1;return mr},Bt):xt===1&&(Bt=tt.reduce(function(mr,a){if(Da(a))switch(a.value){case xA:return y=0,!1;case CA:return y=1,!1;case mc:case Ps:return v=0,!1;case kc:return v=1,!1;case yl:return v=2,!1;case pc:case Gc:return v=3,!1}else if(Io(a)||Kn(a))return Array.isArray(v)||(v=[]),v.push(a),!1;return mr},Bt)),Bt){var nr=hc(m,tt);re.push(nr)}}),{size:v,shape:y,stops:re,position:Fe,type:2}},ed=function(m){return m.type===1},td=function(m){return m.type===2},lu={name:"image",parse:function(m,u){if(u.type===22){var y={url:u.value,type:0};return m.cache.addImage(u.value),y}if(u.type===18){var v=Ru[u.name];if(typeof v=="undefined")throw new Error('Attempting to parse an unsupported image function "'+u.name+'"');return v(m,u.values)}throw new Error("Unsupported image type "+u.type)}};function vd(m){return!(m.type===20&&m.value==="none")&&(m.type!==18||!!Ru[m.name])}var Ru={"linear-gradient":po,"-moz-linear-gradient":mo,"-ms-linear-gradient":mo,"-o-linear-gradient":mo,"-webkit-linear-gradient":mo,"radial-gradient":Uu,"-moz-radial-gradient":KA,"-ms-radial-gradient":KA,"-o-radial-gradient":KA,"-webkit-radial-gradient":KA,"-webkit-gradient":Go},cu={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(m,u){if(u.length===0)return[];var y=u[0];return y.type===20&&y.value==="none"?[]:u.filter(function(v){return dl(v)&&vd(v)}).map(function(v){return lu.parse(m,v)})}},c={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(m,u){return u.map(function(y){if(Da(y))switch(y.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},o={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(m,u){return Oo(u).map(function(y){return y.filter(Kn)}).map(kl)}},l={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(m,u){return Oo(u).map(function(y){return y.filter(Da).map(function(v){return v.value}).join(" ")}).map(b)}},b=function(m){switch(m){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},F;(function(m){m.AUTO="auto",m.CONTAIN="contain",m.COVER="cover"})(F||(F={}));var C={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(m,u){return Oo(u).map(function(y){return y.filter(T)})}},T=function(m){return Da(m)||Kn(m)},Z=function(m){return{name:"border-"+m+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},ae=Z("top"),_e=Z("right"),$e=Z("bottom"),Ze=Z("left"),st=function(m){return{name:"border-radius-"+m,initialValue:"0 0",prefix:!1,type:1,parse:function(u,y){return kl(y.filter(Kn))}}},be=st("top-left"),Lt=st("top-right"),wt=st("bottom-right"),kt=st("bottom-left"),pt=function(m){return{name:"border-"+m+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(u,y){switch(y){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Dt=pt("top"),ar=pt("right"),wr=pt("bottom"),Qr=pt("left"),hn=function(m){return{name:"border-"+m+"-width",initialValue:"0",type:0,prefix:!1,parse:function(u,y){return oo(y)?y.number:0}}},_r=hn("top"),Vt=hn("right"),Lr=hn("bottom"),Jr=hn("left"),vt={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ct={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(m,u){switch(u){case"rtl":return 1;case"ltr":default:return 0}}},rr={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(m,u){return u.filter(Da).reduce(function(y,v){return y|U(v.value)},0)}},U=function(m){switch(m){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},ee={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(m,u){switch(u){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Se={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(m,u){return u.type===20&&u.value==="normal"?0:u.type===17||u.type===15?u.number:0}},Te;(function(m){m.NORMAL="normal",m.STRICT="strict"})(Te||(Te={}));var He={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(m,u){switch(u){case"strict":return Te.STRICT;case"normal":default:return Te.NORMAL}}},Xe={name:"line-height",initialValue:"normal",prefix:!1,type:4},ht=function(m,u){return Da(m)&&m.value==="normal"?1.2*u:m.type===17?u*m.number:Kn(m)?Pa(m,u):u},St={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(m,u){return u.type===20&&u.value==="none"?null:lu.parse(m,u)}},Ae={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(m,u){switch(u){case"inside":return 0;case"outside":default:return 1}}},Re={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(m,u){switch(u){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Ye=function(m){return{name:"margin-"+m,initialValue:"0",prefix:!1,type:4}},et=Ye("top"),bt=Ye("right"),_t=Ye("bottom"),It=Ye("left"),Rt={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(m,u){return u.filter(Da).map(function(y){switch(y.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},ur={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(m,u){switch(u){case"break-word":return"break-word";case"normal":default:return"normal"}}},fr=function(m){return{name:"padding-"+m,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},gr=fr("top"),Sr=fr("right"),dn=fr("bottom"),Ar=fr("left"),yt={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(m,u){switch(u){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},_n={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(m,u){switch(u){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},gn={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(m,u){return u.length===1&&Ll(u[0],"none")?[]:Oo(u).map(function(y){for(var v={color:Js.TRANSPARENT,offsetX:To,offsetY:To,blur:To},re=0,Fe=0;Fe<y.length;Fe++){var tt=y[Fe];Io(tt)?(re===0?v.offsetX=tt:re===1?v.offsetY=tt:v.blur=tt,re++):v.color=to.parse(m,tt)}return v})}},vr={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(m,u){switch(u){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Nr={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(m,u){if(u.type===20&&u.value==="none")return null;if(u.type===18){var y=Zr[u.name];if(typeof y=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+u.name+'"');return y(u.values)}return null}},Or=function(m){var u=m.filter(function(y){return y.type===17}).map(function(y){return y.number});return u.length===6?u:null},br=function(m){var u=m.filter(function(Bt){return Bt.type===17}).map(function(Bt){return Bt.number}),y=u[0],v=u[1];u[2],u[3];var re=u[4],Fe=u[5];u[6],u[7],u[8],u[9],u[10],u[11];var tt=u[12],xt=u[13];return u[14],u[15],u.length===16?[y,v,re,Fe,tt,xt]:null},Zr={matrix:Or,matrix3d:br},Cn={type:16,number:50,flags:pr},Xn=[Cn,Cn],Vn={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(m,u){var y=u.filter(Kn);return y.length!==2?Xn:[y[0],y[1]]}},Nn={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(m,u){switch(u){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},di;(function(m){m.NORMAL="normal",m.BREAK_ALL="break-all",m.KEEP_ALL="keep-all"})(di||(di={}));for(var zn={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(m,u){switch(u){case"break-all":return di.BREAK_ALL;case"keep-all":return di.KEEP_ALL;case"normal":default:return di.NORMAL}}},Li={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(m,u){if(u.type===20)return{auto:!0,order:0};if(Ua(u))return{auto:!1,order:u.number};throw new Error("Invalid z-index number parsed")}},vn={name:"time",parse:function(m,u){if(u.type===15)switch(u.unit.toLowerCase()){case"s":return 1e3*u.number;case"ms":return u.number}throw new Error("Unsupported time type")}},Fa={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(m,u){return Ua(u)?u.number:1}},ji={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ri={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(m,u){return u.filter(Da).map(function(y){switch(y.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(y){return y!==0})}},ia={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(m,u){var y=[],v=[];return u.forEach(function(re){switch(re.type){case 20:case 0:y.push(re.value);break;case 17:y.push(re.number.toString());break;case 4:v.push(y.join(" ")),y.length=0;break}}),y.length&&v.push(y.join(" ")),v.map(function(re){return re.indexOf(" ")===-1?re:"'"+re+"'"})}},Hi={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Ka={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(m,u){if(Ua(u))return u.number;if(Da(u))switch(u.value){case"bold":return 700;case"normal":default:return 400}return 400}},Gi={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(m,u){return u.filter(Da).map(function(y){return y.value})}},As={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(m,u){switch(u){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Bn=function(m,u){return(m&u)!==0},fi={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(m,u){if(u.length===0)return[];var y=u[0];return y.type===20&&y.value==="none"?[]:u}},mi={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(m,u){if(u.length===0)return null;var y=u[0];if(y.type===20&&y.value==="none")return null;for(var v=[],re=u.filter(cs),Fe=0;Fe<re.length;Fe++){var tt=re[Fe],xt=re[Fe+1];if(tt.type===20){var Bt=xt&&Ua(xt)?xt.number:1;v.push({counter:tt.value,increment:Bt})}}return v}},Zn={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(m,u){if(u.length===0)return[];for(var y=[],v=u.filter(cs),re=0;re<v.length;re++){var Fe=v[re],tt=v[re+1];if(Da(Fe)&&Fe.value!=="none"){var xt=tt&&Ua(tt)?tt.number:0;y.push({counter:Fe.value,reset:xt})}}return y}},oi={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(m,u){return u.filter(oo).map(function(y){return vn.parse(m,y)})}},kn={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(m,u){if(u.length===0)return null;var y=u[0];if(y.type===20&&y.value==="none")return null;var v=[],re=u.filter(Fo);if(re.length%2!==0)return null;for(var Fe=0;Fe<re.length;Fe+=2){var tt=re[Fe].value,xt=re[Fe+1].value;v.push({open:tt,close:xt})}return v}},Ki=function(m,u,y){if(!m)return"";var v=m[Math.min(u,m.length-1)];return v?y?v.open:v.close:""},Xi={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(m,u){return u.length===1&&Ll(u[0],"none")?[]:Oo(u).map(function(y){for(var v={color:255,offsetX:To,offsetY:To,blur:To,spread:To,inset:!1},re=0,Fe=0;Fe<y.length;Fe++){var tt=y[Fe];Ll(tt,"inset")?v.inset=!0:Io(tt)?(re===0?v.offsetX=tt:re===1?v.offsetY=tt:re===2?v.blur=tt:v.spread=tt,re++):v.color=to.parse(m,tt)}return v})}},qi={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(m,u){var y=[0,1,2],v=[];return u.filter(Da).forEach(function(re){switch(re.value){case"stroke":v.push(1);break;case"fill":v.push(0);break;case"markers":v.push(2);break}}),y.forEach(function(re){v.indexOf(re)===-1&&v.push(re)}),v}},Mo={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},ki={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(m,u){return oo(u)?u.number:0}},ns=function(){function m(u,y){var v,re;this.animationDuration=bn(u,oi,y.animationDuration),this.backgroundClip=bn(u,lA,y.backgroundClip),this.backgroundColor=bn(u,cA,y.backgroundColor),this.backgroundImage=bn(u,cu,y.backgroundImage),this.backgroundOrigin=bn(u,c,y.backgroundOrigin),this.backgroundPosition=bn(u,o,y.backgroundPosition),this.backgroundRepeat=bn(u,l,y.backgroundRepeat),this.backgroundSize=bn(u,C,y.backgroundSize),this.borderTopColor=bn(u,ae,y.borderTopColor),this.borderRightColor=bn(u,_e,y.borderRightColor),this.borderBottomColor=bn(u,$e,y.borderBottomColor),this.borderLeftColor=bn(u,Ze,y.borderLeftColor),this.borderTopLeftRadius=bn(u,be,y.borderTopLeftRadius),this.borderTopRightRadius=bn(u,Lt,y.borderTopRightRadius),this.borderBottomRightRadius=bn(u,wt,y.borderBottomRightRadius),this.borderBottomLeftRadius=bn(u,kt,y.borderBottomLeftRadius),this.borderTopStyle=bn(u,Dt,y.borderTopStyle),this.borderRightStyle=bn(u,ar,y.borderRightStyle),this.borderBottomStyle=bn(u,wr,y.borderBottomStyle),this.borderLeftStyle=bn(u,Qr,y.borderLeftStyle),this.borderTopWidth=bn(u,_r,y.borderTopWidth),this.borderRightWidth=bn(u,Vt,y.borderRightWidth),this.borderBottomWidth=bn(u,Lr,y.borderBottomWidth),this.borderLeftWidth=bn(u,Jr,y.borderLeftWidth),this.boxShadow=bn(u,Xi,y.boxShadow),this.color=bn(u,vt,y.color),this.direction=bn(u,Ct,y.direction),this.display=bn(u,rr,y.display),this.float=bn(u,ee,y.cssFloat),this.fontFamily=bn(u,ia,y.fontFamily),this.fontSize=bn(u,Hi,y.fontSize),this.fontStyle=bn(u,As,y.fontStyle),this.fontVariant=bn(u,Gi,y.fontVariant),this.fontWeight=bn(u,Ka,y.fontWeight),this.letterSpacing=bn(u,Se,y.letterSpacing),this.lineBreak=bn(u,He,y.lineBreak),this.lineHeight=bn(u,Xe,y.lineHeight),this.listStyleImage=bn(u,St,y.listStyleImage),this.listStylePosition=bn(u,Ae,y.listStylePosition),this.listStyleType=bn(u,Re,y.listStyleType),this.marginTop=bn(u,et,y.marginTop),this.marginRight=bn(u,bt,y.marginRight),this.marginBottom=bn(u,_t,y.marginBottom),this.marginLeft=bn(u,It,y.marginLeft),this.opacity=bn(u,Fa,y.opacity);var Fe=bn(u,Rt,y.overflow);this.overflowX=Fe[0],this.overflowY=Fe[Fe.length>1?1:0],this.overflowWrap=bn(u,ur,y.overflowWrap),this.paddingTop=bn(u,gr,y.paddingTop),this.paddingRight=bn(u,Sr,y.paddingRight),this.paddingBottom=bn(u,dn,y.paddingBottom),this.paddingLeft=bn(u,Ar,y.paddingLeft),this.paintOrder=bn(u,qi,y.paintOrder),this.position=bn(u,_n,y.position),this.textAlign=bn(u,yt,y.textAlign),this.textDecorationColor=bn(u,ji,(v=y.textDecorationColor)!==null&&v!==void 0?v:y.color),this.textDecorationLine=bn(u,Ri,(re=y.textDecorationLine)!==null&&re!==void 0?re:y.textDecoration),this.textShadow=bn(u,gn,y.textShadow),this.textTransform=bn(u,vr,y.textTransform),this.transform=bn(u,Nr,y.transform),this.transformOrigin=bn(u,Vn,y.transformOrigin),this.visibility=bn(u,Nn,y.visibility),this.webkitTextStrokeColor=bn(u,Mo,y.webkitTextStrokeColor),this.webkitTextStrokeWidth=bn(u,ki,y.webkitTextStrokeWidth),this.wordBreak=bn(u,zn,y.wordBreak),this.zIndex=bn(u,Li,y.zIndex)}return m.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},m.prototype.isTransparent=function(){return Ro(this.backgroundColor)},m.prototype.isTransformed=function(){return this.transform!==null},m.prototype.isPositioned=function(){return this.position!==0},m.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},m.prototype.isFloating=function(){return this.float!==0},m.prototype.isInlineLevel=function(){return Bn(this.display,4)||Bn(this.display,33554432)||Bn(this.display,268435456)||Bn(this.display,536870912)||Bn(this.display,67108864)||Bn(this.display,134217728)},m}(),ro=function(){function m(u,y){this.content=bn(u,fi,y.content),this.quotes=bn(u,kn,y.quotes)}return m}(),Qo=function(){function m(u,y){this.counterIncrement=bn(u,mi,y.counterIncrement),this.counterReset=bn(u,Zn,y.counterReset)}return m}(),bn=function(m,u,y){var v=new Oa,re=y!==null&&typeof y!="undefined"?y.toString():u.initialValue;v.write(re);var Fe=new Ja(v.read());switch(u.type){case 2:var tt=Fe.parseComponentValue();return u.parse(m,Da(tt)?tt.value:u.initialValue);case 0:return u.parse(m,Fe.parseComponentValue());case 1:return u.parse(m,Fe.parseComponentValues());case 4:return Fe.parseComponentValue();case 3:switch(u.format){case"angle":return ma.parse(m,Fe.parseComponentValue());case"color":return to.parse(m,Fe.parseComponentValue());case"image":return lu.parse(m,Fe.parseComponentValue());case"length":var xt=Fe.parseComponentValue();return Io(xt)?xt:To;case"length-percentage":var Bt=Fe.parseComponentValue();return Kn(Bt)?Bt:To;case"time":return vn.parse(m,Fe.parseComponentValue())}break}},no="data-html2canvas-debug",Cs=function(m){var u=m.getAttribute(no);switch(u){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ga=function(m,u){var y=Cs(m);return y===1||u===y},qr=function(){function m(u,y){if(this.context=u,this.textNodes=[],this.elements=[],this.flags=0,ga(y,3))debugger;this.styles=new ns(u,window.getComputedStyle(y,null)),Xr(y)&&(this.styles.animationDuration.some(function(v){return v>0})&&(y.style.animationDuration="0s"),this.styles.transform!==null&&(y.style.transform="none")),this.bounds=W(this.context,y),ga(y,4)&&(this.flags|=16)}return m}(),fa="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",so="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Va=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ii=0;Ii<so.length;Ii++)Va[so.charCodeAt(Ii)]=Ii;for(var bo=function(m){var u=m.length*.75,y=m.length,v,re=0,Fe,tt,xt,Bt;m[m.length-1]==="="&&(u--,m[m.length-2]==="="&&u--);var nr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(u):new Array(u),mr=Array.isArray(nr)?nr:new Uint8Array(nr);for(v=0;v<y;v+=4)Fe=Va[m.charCodeAt(v)],tt=Va[m.charCodeAt(v+1)],xt=Va[m.charCodeAt(v+2)],Bt=Va[m.charCodeAt(v+3)],mr[re++]=Fe<<2|tt>>4,mr[re++]=(tt&15)<<4|xt>>2,mr[re++]=(xt&3)<<6|Bt&63;return nr},Ko=function(m){for(var u=m.length,y=[],v=0;v<u;v+=2)y.push(m[v+1]<<8|m[v]);return y},Bs=function(m){for(var u=m.length,y=[],v=0;v<u;v+=4)y.push(m[v+3]<<24|m[v+2]<<16|m[v+1]<<8|m[v]);return y},gs=5,is=11,us=2,bl=is-gs,as=65536>>gs,$s=1<<gs,ds=$s-1,Lo=1024>>gs,wo=as+Lo,qs=wo,Nl=32,zl=qs+Nl,wl=65536>>is,BA=1<<bl,Xc=BA-1,Ca=function(m,u,y){return m.slice?m.slice(u,y):new Uint16Array(Array.prototype.slice.call(m,u,y))},ea=function(m,u,y){return m.slice?m.slice(u,y):new Uint32Array(Array.prototype.slice.call(m,u,y))},vs=function(m,u){var y=bo(m),v=Array.isArray(y)?Bs(y):new Uint32Array(y),re=Array.isArray(y)?Ko(y):new Uint16Array(y),Fe=24,tt=Ca(re,Fe/2,v[4]/2),xt=v[5]===2?Ca(re,(Fe+v[4])/2):ea(v,Math.ceil((Fe+v[4])/4));return new go(v[0],v[1],v[2],v[3],tt,xt)},go=function(){function m(u,y,v,re,Fe,tt){this.initialValue=u,this.errorValue=y,this.highStart=v,this.highValueIndex=re,this.index=Fe,this.data=tt}return m.prototype.get=function(u){var y;if(u>=0){if(u<55296||u>56319&&u<=65535)return y=this.index[u>>gs],y=(y<<us)+(u&ds),this.data[y];if(u<=65535)return y=this.index[as+(u-55296>>gs)],y=(y<<us)+(u&ds),this.data[y];if(u<this.highStart)return y=zl-wl+(u>>is),y=this.index[y],y+=u>>gs&Xc,y=this.index[y],y=(y<<us)+(u&ds),this.data[y];if(u<=1114111)return this.data[this.highValueIndex]}return this.errorValue},m}(),fs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ss=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Es=0;Es<fs.length;Es++)Ss[fs.charCodeAt(Es)]=Es;var _s=1,Dc=2,ll=3,gc=4,Ba=5,So=7,xl=8,rc=9,Ns=10,HA=11,Cl=12,jA=13,zA=14,Jc=15,$l=function(m){for(var u=[],y=0,v=m.length;y<v;){var re=m.charCodeAt(y++);if(re>=55296&&re<=56319&&y<v){var Fe=m.charCodeAt(y++);(Fe&64512)===56320?u.push(((re&1023)<<10)+(Fe&1023)+65536):(u.push(re),y--)}else u.push(re)}return u},vc=function(){for(var m=[],u=0;u<arguments.length;u++)m[u]=arguments[u];if(String.fromCodePoint)return String.fromCodePoint.apply(String,m);var y=m.length;if(!y)return"";for(var v=[],re=-1,Fe="";++re<y;){var tt=m[re];tt<=65535?v.push(tt):(tt-=65536,v.push((tt>>10)+55296,tt%1024+56320)),(re+1===y||v.length>16384)&&(Fe+=String.fromCharCode.apply(String,v),v.length=0)}return Fe},nc=vs(fa),fn="\xD7",Fs="\xF7",SA=function(m){return nc.get(m)},AA=function(m,u,y){var v=y-2,re=u[v],Fe=u[y-1],tt=u[y];if(Fe===Dc&&tt===ll)return fn;if(Fe===Dc||Fe===ll||Fe===gc||tt===Dc||tt===ll||tt===gc)return Fs;if(Fe===xl&&[xl,rc,HA,Cl].indexOf(tt)!==-1||(Fe===HA||Fe===rc)&&(tt===rc||tt===Ns)||(Fe===Cl||Fe===Ns)&&tt===Ns||tt===jA||tt===Ba||tt===So||Fe===_s)return fn;if(Fe===jA&&tt===zA){for(;re===Ba;)re=u[--v];if(re===zA)return fn}if(Fe===Jc&&tt===Jc){for(var xt=0;re===Jc;)xt++,re=u[--v];if(xt%2===0)return fn}return Fs},sa=function(m){var u=$l(m),y=u.length,v=0,re=0,Fe=u.map(SA);return{next:function(){if(v>=y)return{done:!0,value:null};for(var tt=fn;v<y&&(tt=AA(u,Fe,++v))===fn;);if(tt!==fn||v===y){var xt=vc.apply(null,u.slice(re,v));return re=v,{value:xt,done:!1}}return{done:!0,value:null}}}},EA=function(m){for(var u=sa(m),y=[],v;!(v=u.next()).done;)v.value&&y.push(v.value.slice());return y},$A=function(m){var u=123;if(m.createRange){var y=m.createRange();if(y.getBoundingClientRect){var v=m.createElement("boundtest");v.style.height=u+"px",v.style.display="block",m.body.appendChild(v),y.selectNode(v);var re=y.getBoundingClientRect(),Fe=Math.round(re.height);if(m.body.removeChild(v),Fe===u)return!0}}return!1},Zl=function(m){var u=m.createElement("boundtest");u.style.width="50px",u.style.display="block",u.style.fontSize="12px",u.style.letterSpacing="0px",u.style.wordSpacing="0px",m.body.appendChild(u);var y=m.createRange();u.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var v=u.firstChild,re=f(v.data).map(function(Bt){return E(Bt)}),Fe=0,tt={},xt=re.every(function(Bt,nr){y.setStart(v,Fe),y.setEnd(v,Fe+Bt.length);var mr=y.getBoundingClientRect();Fe+=Bt.length;var a=mr.x>tt.x||mr.y>tt.y;return tt=mr,nr===0?!0:a});return m.body.removeChild(u),xt},Xo=function(){return typeof new Image().crossOrigin!="undefined"},ZA=function(){return typeof new XMLHttpRequest().responseType=="string"},Pc=function(m){var u=new Image,y=m.createElement("canvas"),v=y.getContext("2d");if(!v)return!1;u.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{v.drawImage(u,0,0),y.toDataURL()}catch(re){return!1}return!0},yc=function(m){return m[0]===0&&m[1]===255&&m[2]===0&&m[3]===255},_A=function(m){var u=m.createElement("canvas"),y=100;u.width=y,u.height=y;var v=u.getContext("2d");if(!v)return Promise.reject(!1);v.fillStyle="rgb(0, 255, 0)",v.fillRect(0,0,y,y);var re=new Image,Fe=u.toDataURL();re.src=Fe;var tt=Vl(y,y,0,0,re);return v.fillStyle="red",v.fillRect(0,0,y,y),ic(tt).then(function(xt){v.drawImage(xt,0,0);var Bt=v.getImageData(0,0,y,y).data;v.fillStyle="red",v.fillRect(0,0,y,y);var nr=m.createElement("div");return nr.style.backgroundImage="url("+Fe+")",nr.style.height=y+"px",yc(Bt)?ic(Vl(y,y,0,0,nr)):Promise.reject(!1)}).then(function(xt){return v.drawImage(xt,0,0),yc(v.getImageData(0,0,y,y).data)}).catch(function(){return!1})},Vl=function(m,u,y,v,re){var Fe="http://www.w3.org/2000/svg",tt=document.createElementNS(Fe,"svg"),xt=document.createElementNS(Fe,"foreignObject");return tt.setAttributeNS(null,"width",m.toString()),tt.setAttributeNS(null,"height",u.toString()),xt.setAttributeNS(null,"width","100%"),xt.setAttributeNS(null,"height","100%"),xt.setAttributeNS(null,"x",y.toString()),xt.setAttributeNS(null,"y",v.toString()),xt.setAttributeNS(null,"externalResourcesRequired","true"),tt.appendChild(xt),xt.appendChild(re),tt},ic=function(m){return new Promise(function(u,y){var v=new Image;v.onload=function(){return u(v)},v.onerror=y,v.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(m))})},lo={get SUPPORT_RANGE_BOUNDS(){var m=$A(document);return Object.defineProperty(lo,"SUPPORT_RANGE_BOUNDS",{value:m}),m},get SUPPORT_WORD_BREAKING(){var m=lo.SUPPORT_RANGE_BOUNDS&&Zl(document);return Object.defineProperty(lo,"SUPPORT_WORD_BREAKING",{value:m}),m},get SUPPORT_SVG_DRAWING(){var m=Pc(document);return Object.defineProperty(lo,"SUPPORT_SVG_DRAWING",{value:m}),m},get SUPPORT_FOREIGNOBJECT_DRAWING(){var m=typeof Array.from=="function"&&typeof window.fetch=="function"?_A(document):Promise.resolve(!1);return Object.defineProperty(lo,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:m}),m},get SUPPORT_CORS_IMAGES(){var m=Xo();return Object.defineProperty(lo,"SUPPORT_CORS_IMAGES",{value:m}),m},get SUPPORT_RESPONSE_TYPE(){var m=ZA();return Object.defineProperty(lo,"SUPPORT_RESPONSE_TYPE",{value:m}),m},get SUPPORT_CORS_XHR(){var m="withCredentials"in new XMLHttpRequest;return Object.defineProperty(lo,"SUPPORT_CORS_XHR",{value:m}),m},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var m=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(lo,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:m}),m}},Os=function(){function m(u,y){this.text=u,this.bounds=y}return m}(),ts=function(m,u,y,v){var re=Wl(u,y),Fe=[],tt=0;return re.forEach(function(xt){if(y.textDecorationLine.length||xt.trim().length>0)if(lo.SUPPORT_RANGE_BOUNDS){var Bt=va(v,tt,xt.length).getClientRects();if(Bt.length>1){var nr=Sa(xt),mr=0;nr.forEach(function(g){Fe.push(new Os(g,ie.fromDOMRectList(m,va(v,mr+tt,g.length).getClientRects()))),mr+=g.length})}else Fe.push(new Os(xt,ie.fromDOMRectList(m,Bt)))}else{var a=v.splitText(xt.length);Fe.push(new Os(xt,bc(m,v))),v=a}else lo.SUPPORT_RANGE_BOUNDS||(v=v.splitText(xt.length));tt+=xt.length}),Fe},bc=function(m,u){var y=u.ownerDocument;if(y){var v=y.createElement("html2canvaswrapper");v.appendChild(u.cloneNode(!0));var re=u.parentNode;if(re){re.replaceChild(v,u);var Fe=W(m,v);return v.firstChild&&re.replaceChild(v.firstChild,v),Fe}}return ie.EMPTY},va=function(m,u,y){var v=m.ownerDocument;if(!v)throw new Error("Node has no owner document");var re=v.createRange();return re.setStart(m,u),re.setEnd(m,u+y),re},Sa=function(m){if(lo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var u=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(u.segment(m)).map(function(y){return y.segment})}return EA(m)},Zs=function(m,u){if(lo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var y=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(y.segment(m)).map(function(v){return v.segment})}return VA(m,u)},Wl=function(m,u){return u.letterSpacing!==0?Sa(m):Zs(m,u)},Ol=[32,160,4961,65792,65793,4153,4241],VA=function(m,u){for(var y=$t(m,{lineBreak:u.lineBreak,wordBreak:u.overflowWrap==="break-word"?"break-word":u.wordBreak}),v=[],re,Fe=function(){if(re.value){var tt=re.value.slice(),xt=f(tt),Bt="";xt.forEach(function(nr){Ol.indexOf(nr)===-1?Bt+=E(nr):(Bt.length&&v.push(Bt),v.push(E(nr)),Bt="")}),Bt.length&&v.push(Bt)}};!(re=y.next()).done;)Fe();return v},os=function(){function m(u,y,v){this.text=ys(y.data,v.textTransform),this.textBounds=ts(u,this.text,v,y)}return m}(),ys=function(m,u){switch(u){case 1:return m.toLowerCase();case 3:return m.replace(ac,FA);case 2:return m.toUpperCase();default:return m}},ac=/(^|\s|:|-|\(|\))([a-z])/g,FA=function(m,u,y){return m.length>0?u+y.toUpperCase():m},Nc=function(m){x(u,m);function u(y,v){var re=m.call(this,y,v)||this;return re.src=v.currentSrc||v.src,re.intrinsicWidth=v.naturalWidth,re.intrinsicHeight=v.naturalHeight,re.context.cache.addImage(re.src),re}return u}(qr),la=function(m){x(u,m);function u(y,v){var re=m.call(this,y,v)||this;return re.canvas=v,re.intrinsicWidth=v.width,re.intrinsicHeight=v.height,re}return u}(qr),Oc=function(m){x(u,m);function u(y,v){var re=m.call(this,y,v)||this,Fe=new XMLSerializer,tt=W(y,v);return v.setAttribute("width",tt.width+"px"),v.setAttribute("height",tt.height+"px"),re.svg="data:image/svg+xml,"+encodeURIComponent(Fe.serializeToString(v)),re.intrinsicWidth=v.width.baseVal.value,re.intrinsicHeight=v.height.baseVal.value,re.context.cache.addImage(re.svg),re}return u}(qr),Gl=function(m){x(u,m);function u(y,v){var re=m.call(this,y,v)||this;return re.value=v.value,re}return u}(qr),IA=function(m){x(u,m);function u(y,v){var re=m.call(this,y,v)||this;return re.start=v.start,re.reversed=typeof v.reversed=="boolean"&&v.reversed===!0,re}return u}(qr),zr=[{type:15,flags:0,unit:"px",number:3}],yd=[{type:16,flags:0,number:50}],Qu=function(m){return m.width>m.height?new ie(m.left+(m.width-m.height)/2,m.top,m.height,m.height):m.width<m.height?new ie(m.left,m.top+(m.height-m.width)/2,m.width,m.width):m},WA=function(m){var u=m.type===Ku?new Array(m.value.length+1).join("\u2022"):m.value;return u.length===0?m.placeholder||"":u},GA="checkbox",oc="radio",Ku="password",Au=707406591,Is=function(m){x(u,m);function u(y,v){var re=m.call(this,y,v)||this;switch(re.type=v.type.toLowerCase(),re.checked=v.checked,re.value=WA(v),(re.type===GA||re.type===oc)&&(re.styles.backgroundColor=3739148031,re.styles.borderTopColor=re.styles.borderRightColor=re.styles.borderBottomColor=re.styles.borderLeftColor=2779096575,re.styles.borderTopWidth=re.styles.borderRightWidth=re.styles.borderBottomWidth=re.styles.borderLeftWidth=1,re.styles.borderTopStyle=re.styles.borderRightStyle=re.styles.borderBottomStyle=re.styles.borderLeftStyle=1,re.styles.backgroundClip=[0],re.styles.backgroundOrigin=[0],re.bounds=Qu(re.bounds)),re.type){case GA:re.styles.borderTopRightRadius=re.styles.borderTopLeftRadius=re.styles.borderBottomRightRadius=re.styles.borderBottomLeftRadius=zr;break;case oc:re.styles.borderTopRightRadius=re.styles.borderTopLeftRadius=re.styles.borderBottomRightRadius=re.styles.borderBottomLeftRadius=yd;break}return re}return u}(qr),Tc=function(m){x(u,m);function u(y,v){var re=m.call(this,y,v)||this,Fe=v.options[v.selectedIndex||0];return re.value=Fe&&Fe.text||"",re}return u}(qr),Yc=function(m){x(u,m);function u(y,v){var re=m.call(this,y,v)||this;return re.value=v.value,re}return u}(qr),Uc=function(m){x(u,m);function u(y,v){var re=m.call(this,y,v)||this;re.src=v.src,re.width=parseInt(v.width,10)||0,re.height=parseInt(v.height,10)||0,re.backgroundColor=re.styles.backgroundColor;try{if(v.contentWindow&&v.contentWindow.document&&v.contentWindow.document.documentElement){re.tree=P(y,v.contentWindow.document.documentElement);var Fe=v.contentWindow.document.documentElement?Dl(y,getComputedStyle(v.contentWindow.document.documentElement).backgroundColor):Js.TRANSPARENT,tt=v.contentWindow.document.body?Dl(y,getComputedStyle(v.contentWindow.document.body).backgroundColor):Js.TRANSPARENT;re.backgroundColor=Ro(Fe)?Ro(tt)?re.styles.backgroundColor:tt:Fe}}catch(xt){}return re}return u}(qr),Hu=["OL","UL","MENU"],Rc=function(m,u,y,v){for(var re=u.firstChild,Fe=void 0;re;re=Fe)if(Fe=re.nextSibling,Jt(re)&&re.data.trim().length>0)y.textNodes.push(new os(m,re,y.styles));else if(yr(re))if(qc(re)&&re.assignedNodes)re.assignedNodes().forEach(function(xt){return Rc(m,xt,y,v)});else{var tt=MA(m,re);tt.styles.isVisible()&&(We(re,tt,v)?tt.flags|=4:Mt(tt.styles)&&(tt.flags|=2),Hu.indexOf(re.tagName)!==-1&&(tt.flags|=8),y.elements.push(tt),re.slot,re.shadowRoot?Rc(m,re.shadowRoot,tt,v):!Xl(re)&&!co(re)&&!LA(re)&&Rc(m,re,tt,v))}},MA=function(m,u){return hs(u)?new Nc(m,u):bs(u)?new la(m,u):co(u)?new Oc(m,u):Di(u)?new Gl(m,u):ta(u)?new IA(m,u):Na(u)?new Is(m,u):LA(u)?new Tc(m,u):Xl(u)?new Yc(m,u):el(u)?new Uc(m,u):new qr(m,u)},P=function(m,u){var y=MA(m,u);return y.flags|=4,Rc(m,u,y,y),y},We=function(m,u,y){return u.styles.isPositionedWithZIndex()||u.styles.opacity<1||u.styles.isTransformed()||aa(m)&&y.styles.isTransparent()},Mt=function(m){return m.isPositioned()||m.isFloating()},Jt=function(m){return m.nodeType===Node.TEXT_NODE},yr=function(m){return m.nodeType===Node.ELEMENT_NODE},Xr=function(m){return yr(m)&&typeof m.style!="undefined"&&!Sn(m)},Sn=function(m){return typeof m.className=="object"},Di=function(m){return m.tagName==="LI"},ta=function(m){return m.tagName==="OL"},Na=function(m){return m.tagName==="INPUT"},Ia=function(m){return m.tagName==="HTML"},co=function(m){return m.tagName==="svg"},aa=function(m){return m.tagName==="BODY"},bs=function(m){return m.tagName==="CANVAS"},Ts=function(m){return m.tagName==="VIDEO"},hs=function(m){return m.tagName==="IMG"},el=function(m){return m.tagName==="IFRAME"},Bl=function(m){return m.tagName==="STYLE"},sc=function(m){return m.tagName==="SCRIPT"},Xl=function(m){return m.tagName==="TEXTAREA"},LA=function(m){return m.tagName==="SELECT"},qc=function(m){return m.tagName==="SLOT"},uu=function(m){return m.tagName.indexOf("-")>0},XA=function(){function m(){this.counters={}}return m.prototype.getCounterValue=function(u){var y=this.counters[u];return y&&y.length?y[y.length-1]:1},m.prototype.getCounterValues=function(u){var y=this.counters[u];return y||[]},m.prototype.pop=function(u){var y=this;u.forEach(function(v){return y.counters[v].pop()})},m.prototype.parse=function(u){var y=this,v=u.counterIncrement,re=u.counterReset,Fe=!0;v!==null&&v.forEach(function(xt){var Bt=y.counters[xt.counter];Bt&&xt.increment!==0&&(Fe=!1,Bt.length||Bt.push(1),Bt[Math.max(0,Bt.length-1)]+=xt.increment)});var tt=[];return Fe&&re.forEach(function(xt){var Bt=y.counters[xt.counter];tt.push(xt.counter),Bt||(Bt=y.counters[xt.counter]=[]),Bt.push(xt.reset)}),tt},m}(),kA={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},JA={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},du={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},pl={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},Qc=function(m,u,y,v,re,Fe){return m<u||m>y?Yl(m,re,Fe.length>0):v.integers.reduce(function(tt,xt,Bt){for(;m>=xt;)m-=xt,tt+=v.values[Bt];return tt},"")+Fe},YA=function(m,u,y,v){var re="";do y||m--,re=v(m)+re,m/=u;while(m*u>=u);return re},rs=function(m,u,y,v,re){var Fe=y-u+1;return(m<0?"-":"")+(YA(Math.abs(m),Fe,v,function(tt){return E(Math.floor(tt%Fe)+u)})+re)},Kc=function(m,u,y){y===void 0&&(y=". ");var v=u.length;return YA(Math.abs(m),v,!1,function(re){return u[Math.floor(re%v)]})+y},tl=1,eA=2,rl=4,Jl=8,ss=function(m,u,y,v,re,Fe){if(m<-9999||m>9999)return Yl(m,4,re.length>0);var tt=Math.abs(m),xt=re;if(tt===0)return u[0]+xt;for(var Bt=0;tt>0&&Bt<=4;Bt++){var nr=tt%10;nr===0&&Bn(Fe,tl)&&xt!==""?xt=u[nr]+xt:nr>1||nr===1&&Bt===0||nr===1&&Bt===1&&Bn(Fe,eA)||nr===1&&Bt===1&&Bn(Fe,rl)&&m>100||nr===1&&Bt>1&&Bn(Fe,Jl)?xt=u[nr]+(Bt>0?y[Bt-1]:"")+xt:nr===1&&Bt>0&&(xt=y[Bt-1]+xt),tt=Math.floor(tt/10)}return(m<0?v:"")+xt},Tl="\u5341\u767E\u5343\u842C",lc="\u62FE\u4F70\u4EDF\u842C",wc="\u30DE\u30A4\u30CA\u30B9",cc="\uB9C8\uC774\uB108\uC2A4",Yl=function(m,u,y){var v=y?". ":"",re=y?"\u3001":"",Fe=y?", ":"",tt=y?" ":"";switch(u){case 0:return"\u2022"+tt;case 1:return"\u25E6"+tt;case 2:return"\u25FE"+tt;case 5:var xt=rs(m,48,57,!0,v);return xt.length<4?"0"+xt:xt;case 4:return Kc(m,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",re);case 6:return Qc(m,1,3999,kA,3,v).toLowerCase();case 7:return Qc(m,1,3999,kA,3,v);case 8:return rs(m,945,969,!1,v);case 9:return rs(m,97,122,!1,v);case 10:return rs(m,65,90,!1,v);case 11:return rs(m,1632,1641,!0,v);case 12:case 49:return Qc(m,1,9999,JA,3,v);case 35:return Qc(m,1,9999,JA,3,v).toLowerCase();case 13:return rs(m,2534,2543,!0,v);case 14:case 30:return rs(m,6112,6121,!0,v);case 15:return Kc(m,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",re);case 16:return Kc(m,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",re);case 17:case 48:return ss(m,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Tl,"\u8CA0",re,eA|rl|Jl);case 47:return ss(m,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",lc,"\u8CA0",re,tl|eA|rl|Jl);case 42:return ss(m,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Tl,"\u8D1F",re,eA|rl|Jl);case 41:return ss(m,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",lc,"\u8D1F",re,tl|eA|rl|Jl);case 26:return ss(m,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",wc,re,0);case 25:return ss(m,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",wc,re,tl|eA|rl);case 31:return ss(m,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",cc,Fe,tl|eA|rl);case 33:return ss(m,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",cc,Fe,0);case 32:return ss(m,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",cc,Fe,tl|eA|rl);case 18:return rs(m,2406,2415,!0,v);case 20:return Qc(m,1,19999,pl,3,v);case 21:return rs(m,2790,2799,!0,v);case 22:return rs(m,2662,2671,!0,v);case 22:return Qc(m,1,10999,du,3,v);case 23:return Kc(m,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Kc(m,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return rs(m,3302,3311,!0,v);case 28:return Kc(m,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",re);case 29:return Kc(m,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",re);case 34:return rs(m,3792,3801,!0,v);case 37:return rs(m,6160,6169,!0,v);case 38:return rs(m,4160,4169,!0,v);case 39:return rs(m,2918,2927,!0,v);case 40:return rs(m,1776,1785,!0,v);case 43:return rs(m,3046,3055,!0,v);case 44:return rs(m,3174,3183,!0,v);case 45:return rs(m,3664,3673,!0,v);case 46:return rs(m,3872,3881,!0,v);case 3:default:return rs(m,48,57,!0,v)}},cl="data-html2canvas-ignore",nl=function(){function m(u,y,v){if(this.context=u,this.options=v,this.scrolledElements=[],this.referenceElement=y,this.counters=new XA,this.quoteDepth=0,!y.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(y.ownerDocument.documentElement,!1)}return m.prototype.toIFrame=function(u,y){var v=this,re=tA(u,y);if(!re.contentWindow)return Promise.reject("Unable to find iframe window");var Fe=u.defaultView.pageXOffset,tt=u.defaultView.pageYOffset,xt=re.contentWindow,Bt=xt.document,nr=uA(re).then(function(){return de(v,void 0,void 0,function(){var mr,a;return Q(this,function(g){switch(g.label){case 0:return this.scrolledElements.forEach(fu),xt&&(xt.scrollTo(y.left,y.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(xt.scrollY!==y.top||xt.scrollX!==y.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(xt.scrollX-y.left,xt.scrollY-y.top,0,0))),mr=this.options.onclone,a=this.clonedReferenceElement,typeof a=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:Bt.fonts&&Bt.fonts.ready?[4,Bt.fonts.ready]:[3,2];case 1:g.sent(),g.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,qA(Bt)]:[3,4];case 3:g.sent(),g.label=4;case 4:return typeof mr=="function"?[2,Promise.resolve().then(function(){return mr(Bt,a)}).then(function(){return re})]:[2,re]}})})});return Bt.open(),Bt.write(Ul(document.doctype)+"<html></html>"),Cc(this.referenceElement.ownerDocument,Fe,tt),Bt.replaceChild(Bt.adoptNode(this.documentElement),Bt.documentElement),Bt.close(),nr},m.prototype.createElementClone=function(u){if(ga(u,2))debugger;if(bs(u))return this.createCanvasClone(u);if(Ts(u))return this.createVideoClone(u);if(Bl(u))return this.createStyleClone(u);var y=u.cloneNode(!1);return hs(y)&&(hs(u)&&u.currentSrc&&u.currentSrc!==u.src&&(y.src=u.currentSrc,y.srcset=""),y.loading==="lazy"&&(y.loading="eager")),uu(y)?this.createCustomElementClone(y):y},m.prototype.createCustomElementClone=function(u){var y=document.createElement("html2canvascustomelement");return eu(u.style,y),y},m.prototype.createStyleClone=function(u){try{var y=u.sheet;if(y&&y.cssRules){var v=[].slice.call(y.cssRules,0).reduce(function(Fe,tt){return tt&&typeof tt.cssText=="string"?Fe+tt.cssText:Fe},""),re=u.cloneNode(!1);return re.textContent=v,re}}catch(Fe){if(this.context.logger.error("Unable to access cssRules property",Fe),Fe.name!=="SecurityError")throw Fe}return u.cloneNode(!1)},m.prototype.createCanvasClone=function(u){var y;if(this.options.inlineImages&&u.ownerDocument){var v=u.ownerDocument.createElement("img");try{return v.src=u.toDataURL(),v}catch(nr){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",u)}}var re=u.cloneNode(!1);try{re.width=u.width,re.height=u.height;var Fe=u.getContext("2d"),tt=re.getContext("2d");if(tt)if(!this.options.allowTaint&&Fe)tt.putImageData(Fe.getImageData(0,0,u.width,u.height),0,0);else{var xt=(y=u.getContext("webgl2"))!==null&&y!==void 0?y:u.getContext("webgl");if(xt){var Bt=xt.getContextAttributes();(Bt==null?void 0:Bt.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",u)}tt.drawImage(u,0,0)}return re}catch(nr){this.context.logger.info("Unable to clone canvas as it is tainted",u)}return re},m.prototype.createVideoClone=function(u){var y=u.ownerDocument.createElement("canvas");y.width=u.offsetWidth,y.height=u.offsetHeight;var v=y.getContext("2d");try{return v&&(v.drawImage(u,0,0,y.width,y.height),this.options.allowTaint||v.getImageData(0,0,y.width,y.height)),y}catch(Fe){this.context.logger.info("Unable to clone video as it is tainted",u)}var re=u.ownerDocument.createElement("canvas");return re.width=u.offsetWidth,re.height=u.offsetHeight,re},m.prototype.appendChildNode=function(u,y,v){(!yr(y)||!sc(y)&&!y.hasAttribute(cl)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(y)))&&(!this.options.copyStyles||!yr(y)||!Bl(y))&&u.appendChild(this.cloneNode(y,v))},m.prototype.cloneChildNodes=function(u,y,v){for(var re=this,Fe=u.shadowRoot?u.shadowRoot.firstChild:u.firstChild;Fe;Fe=Fe.nextSibling)if(yr(Fe)&&qc(Fe)&&typeof Fe.assignedNodes=="function"){var tt=Fe.assignedNodes();tt.length&&tt.forEach(function(xt){return re.appendChildNode(y,xt,v)})}else this.appendChildNode(y,Fe,v)},m.prototype.cloneNode=function(u,y){if(Jt(u))return document.createTextNode(u.data);if(!u.ownerDocument)return u.cloneNode(!1);var v=u.ownerDocument.defaultView;if(v&&yr(u)&&(Xr(u)||Sn(u))){var re=this.createElementClone(u);re.style.transitionProperty="none";var Fe=v.getComputedStyle(u),tt=v.getComputedStyle(u,":before"),xt=v.getComputedStyle(u,":after");this.referenceElement===u&&Xr(re)&&(this.clonedReferenceElement=re),aa(re)&&uc(re);var Bt=this.counters.parse(new Qo(this.context,Fe)),nr=this.resolvePseudoContent(u,re,tt,xc.BEFORE);uu(u)&&(y=!0),Ts(u)||this.cloneChildNodes(u,re,y),nr&&re.insertBefore(nr,re.firstChild);var mr=this.resolvePseudoContent(u,re,xt,xc.AFTER);return mr&&re.appendChild(mr),this.counters.pop(Bt),(Fe&&(this.options.copyStyles||Sn(u))&&!el(u)||y)&&eu(Fe,re),(u.scrollTop!==0||u.scrollLeft!==0)&&this.scrolledElements.push([re,u.scrollLeft,u.scrollTop]),(Xl(u)||LA(u))&&(Xl(re)||LA(re))&&(re.value=u.value),re}return u.cloneNode(!1)},m.prototype.resolvePseudoContent=function(u,y,v,re){var Fe=this;if(v){var tt=v.content,xt=y.ownerDocument;if(!(!xt||!tt||tt==="none"||tt==="-moz-alt-content"||v.display==="none")){this.counters.parse(new Qo(this.context,v));var Bt=new ro(this.context,v),nr=xt.createElement("html2canvaspseudoelement");eu(v,nr),Bt.content.forEach(function(a){if(a.type===0)nr.appendChild(xt.createTextNode(a.value));else if(a.type===22){var g=xt.createElement("img");g.src=a.value,g.style.opacity="1",nr.appendChild(g)}else if(a.type===18){if(a.name==="attr"){var O=a.values.filter(Da);O.length&&nr.appendChild(xt.createTextNode(u.getAttribute(O[0].value)||""))}else if(a.name==="counter"){var oe=a.values.filter(dl),Ie=oe[0],Ve=oe[1];if(Ie&&Da(Ie)){var ze=Fe.counters.getCounterValue(Ie.value),Je=Ve&&Da(Ve)?Re.parse(Fe.context,Ve.value):3;nr.appendChild(xt.createTextNode(Yl(ze,Je,!1)))}}else if(a.name==="counters"){var ct=a.values.filter(dl),Ie=ct[0],mt=ct[1],Ve=ct[2];if(Ie&&Da(Ie)){var Ot=Fe.counters.getCounterValues(Ie.value),zt=Ve&&Da(Ve)?Re.parse(Fe.context,Ve.value):3,dr=mt&&mt.type===0?mt.value:"",Wt=Ot.map(function(Gt){return Yl(Gt,zt,!1)}).join(dr);nr.appendChild(xt.createTextNode(Wt))}}}else if(a.type===20)switch(a.value){case"open-quote":nr.appendChild(xt.createTextNode(Ki(Bt.quotes,Fe.quoteDepth++,!0)));break;case"close-quote":nr.appendChild(xt.createTextNode(Ki(Bt.quotes,--Fe.quoteDepth,!1)));break;default:nr.appendChild(xt.createTextNode(a.value))}}),nr.className=dA+" "+Bc;var mr=re===xc.BEFORE?" "+dA:" "+Bc;return Sn(y)?y.className.baseValue+=mr:y.className+=mr,nr}}},m.destroy=function(u){return u.parentNode?(u.parentNode.removeChild(u),!0):!1},m}(),xc;(function(m){m[m.BEFORE=0]="BEFORE",m[m.AFTER=1]="AFTER"})(xc||(xc={}));var tA=function(m,u){var y=m.createElement("iframe");return y.className="html2canvas-container",y.style.visibility="hidden",y.style.position="fixed",y.style.left="-10000px",y.style.top="0px",y.style.border="0",y.width=u.width.toString(),y.height=u.height.toString(),y.scrolling="no",y.setAttribute(cl,"true"),m.body.appendChild(y),y},rA=function(m){return new Promise(function(u){if(m.complete){u();return}if(!m.src){u();return}m.onload=u,m.onerror=u})},qA=function(m){return Promise.all([].slice.call(m.images,0).map(rA))},uA=function(m){return new Promise(function(u,y){var v=m.contentWindow;if(!v)return y("No window assigned for iframe");var re=v.document;v.onload=m.onload=function(){v.onload=m.onload=null;var Fe=setInterval(function(){re.body.childNodes.length>0&&re.readyState==="complete"&&(clearInterval(Fe),u(m))},50)}})},Ms=["all","d","content"],eu=function(m,u){for(var y=m.length-1;y>=0;y--){var v=m.item(y);Ms.indexOf(v)===-1&&u.style.setProperty(v,m.getPropertyValue(v))}return u},Ul=function(m){var u="";return m&&(u+="<!DOCTYPE ",m.name&&(u+=m.name),m.internalSubset&&(u+=m.internalSubset),m.publicId&&(u+='"'+m.publicId+'"'),m.systemId&&(u+='"'+m.systemId+'"'),u+=">"),u},Cc=function(m,u,y){m&&m.defaultView&&(u!==m.defaultView.pageXOffset||y!==m.defaultView.pageYOffset)&&m.defaultView.scrollTo(u,y)},fu=function(m){var u=m[0],y=m[1],v=m[2];u.scrollLeft=y,u.scrollTop=v},rd=":before",ju=":after",dA="___html2canvas___pseudoelement_before",Bc="___html2canvas___pseudoelement_after",Ac=`{
content: "" !important;
display: none !important;
}`,uc=function(m){ql(m,"."+dA+rd+Ac+`
.`+Bc+ju+Ac)},ql=function(m,u){var y=m.ownerDocument;if(y){var v=y.createElement("style");v.textContent=u,m.appendChild(v)}},fA=function(){function m(){}return m.getOrigin=function(u){var y=m._link;return y?(y.href=u,y.href=y.href,y.protocol+y.hostname+y.port):"about:blank"},m.isSameOrigin=function(u){return m.getOrigin(u)===m._origin},m.setContext=function(u){m._link=u.document.createElement("a"),m._origin=m.getOrigin(u.location.href)},m._origin="about:blank",m}(),hA=function(){function m(u,y){this.context=u,this._options=y,this._cache={}}return m.prototype.addImage=function(u){var y=Promise.resolve();return this.has(u)||(Rs(u)||Jo(u))&&(this._cache[u]=this.loadImage(u)).catch(function(){}),y},m.prototype.match=function(u){return this._cache[u]},m.prototype.loadImage=function(u){return de(this,void 0,void 0,function(){var y,v,re,Fe,tt=this;return Q(this,function(xt){switch(xt.label){case 0:return y=fA.isSameOrigin(u),v=!Ho(u)&&this._options.useCORS===!0&&lo.SUPPORT_CORS_IMAGES&&!y,re=!Ho(u)&&!y&&!Rs(u)&&typeof this._options.proxy=="string"&&lo.SUPPORT_CORS_XHR&&!v,!y&&this._options.allowTaint===!1&&!Ho(u)&&!Rs(u)&&!re&&!v?[2]:(Fe=u,re?[4,this.proxy(Fe)]:[3,2]);case 1:Fe=xt.sent(),xt.label=2;case 2:return this.context.logger.debug("Added image "+u.substring(0,256)),[4,new Promise(function(Bt,nr){var mr=new Image;mr.onload=function(){return Bt(mr)},mr.onerror=nr,(Us(Fe)||v)&&(mr.crossOrigin="anonymous"),mr.src=Fe,mr.complete===!0&&setTimeout(function(){return Bt(mr)},500),tt._options.imageTimeout>0&&setTimeout(function(){return nr("Timed out ("+tt._options.imageTimeout+"ms) loading image")},tt._options.imageTimeout)})];case 3:return[2,xt.sent()]}})})},m.prototype.has=function(u){return typeof this._cache[u]!="undefined"},m.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},m.prototype.proxy=function(u){var y=this,v=this._options.proxy;if(!v)throw new Error("No proxy defined");var re=u.substring(0,256);return new Promise(function(Fe,tt){var xt=lo.SUPPORT_RESPONSE_TYPE?"blob":"text",Bt=new XMLHttpRequest;Bt.onload=function(){if(Bt.status===200)if(xt==="text")Fe(Bt.response);else{var a=new FileReader;a.addEventListener("load",function(){return Fe(a.result)},!1),a.addEventListener("error",function(g){return tt(g)},!1),a.readAsDataURL(Bt.response)}else tt("Failed to proxy resource "+re+" with status code "+Bt.status)},Bt.onerror=tt;var nr=v.indexOf("?")>-1?"&":"?";if(Bt.open("GET",""+v+nr+"url="+encodeURIComponent(u)+"&responseType="+xt),xt!=="text"&&Bt instanceof XMLHttpRequest&&(Bt.responseType=xt),y._options.imageTimeout){var mr=y._options.imageTimeout;Bt.timeout=mr,Bt.ontimeout=function(){return tt("Timed out ("+mr+"ms) proxying "+re)}}Bt.send()})},m}(),hu=/^data:image\/svg\+xml/i,Sc=/^data:image\/.*;base64,/i,Ec=/^data:image\/.*/i,Jo=function(m){return lo.SUPPORT_SVG_DRAWING||!Ra(m)},Ho=function(m){return Ec.test(m)},Us=function(m){return Sc.test(m)},Rs=function(m){return m.substr(0,4)==="blob"},Ra=function(m){return m.substr(-3).toLowerCase()==="svg"||hu.test(m)},hi=function(){function m(u,y){this.type=0,this.x=u,this.y=y}return m.prototype.add=function(u,y){return new m(this.x+u,this.y+y)},m}(),ec=function(m,u,y){return new hi(m.x+(u.x-m.x)*y,m.y+(u.y-m.y)*y)},tu=function(){function m(u,y,v,re){this.type=1,this.start=u,this.startControl=y,this.endControl=v,this.end=re}return m.prototype.subdivide=function(u,y){var v=ec(this.start,this.startControl,u),re=ec(this.startControl,this.endControl,u),Fe=ec(this.endControl,this.end,u),tt=ec(v,re,u),xt=ec(re,Fe,u),Bt=ec(tt,xt,u);return y?new m(this.start,v,tt,Bt):new m(Bt,xt,Fe,this.end)},m.prototype.add=function(u,y){return new m(this.start.add(u,y),this.startControl.add(u,y),this.endControl.add(u,y),this.end.add(u,y))},m.prototype.reverse=function(){return new m(this.end,this.endControl,this.startControl,this.start)},m}(),Qs=function(m){return m.type===1},zu=function(){function m(u){var y=u.styles,v=u.bounds,re=ms(y.borderTopLeftRadius,v.width,v.height),Fe=re[0],tt=re[1],xt=ms(y.borderTopRightRadius,v.width,v.height),Bt=xt[0],nr=xt[1],mr=ms(y.borderBottomRightRadius,v.width,v.height),a=mr[0],g=mr[1],O=ms(y.borderBottomLeftRadius,v.width,v.height),oe=O[0],Ie=O[1],Ve=[];Ve.push((Fe+Bt)/v.width),Ve.push((oe+a)/v.width),Ve.push((tt+Ie)/v.height),Ve.push((nr+g)/v.height);var ze=Math.max.apply(Math,Ve);ze>1&&(Fe/=ze,tt/=ze,Bt/=ze,nr/=ze,a/=ze,g/=ze,oe/=ze,Ie/=ze);var Je=v.width-Bt,ct=v.height-g,mt=v.width-a,Ot=v.height-Ie,zt=y.borderTopWidth,dr=y.borderRightWidth,Wt=y.borderBottomWidth,kr=y.borderLeftWidth,Dr=Pa(y.paddingTop,u.bounds.width),Gt=Pa(y.paddingRight,u.bounds.width),tr=Pa(y.paddingBottom,u.bounds.width),Tr=Pa(y.paddingLeft,u.bounds.width);this.topLeftBorderDoubleOuterBox=Fe>0||tt>0?Ao(v.left+kr/3,v.top+zt/3,Fe-kr/3,tt-zt/3,ya.TOP_LEFT):new hi(v.left+kr/3,v.top+zt/3),this.topRightBorderDoubleOuterBox=Fe>0||tt>0?Ao(v.left+Je,v.top+zt/3,Bt-dr/3,nr-zt/3,ya.TOP_RIGHT):new hi(v.left+v.width-dr/3,v.top+zt/3),this.bottomRightBorderDoubleOuterBox=a>0||g>0?Ao(v.left+mt,v.top+ct,a-dr/3,g-Wt/3,ya.BOTTOM_RIGHT):new hi(v.left+v.width-dr/3,v.top+v.height-Wt/3),this.bottomLeftBorderDoubleOuterBox=oe>0||Ie>0?Ao(v.left+kr/3,v.top+Ot,oe-kr/3,Ie-Wt/3,ya.BOTTOM_LEFT):new hi(v.left+kr/3,v.top+v.height-Wt/3),this.topLeftBorderDoubleInnerBox=Fe>0||tt>0?Ao(v.left+kr*2/3,v.top+zt*2/3,Fe-kr*2/3,tt-zt*2/3,ya.TOP_LEFT):new hi(v.left+kr*2/3,v.top+zt*2/3),this.topRightBorderDoubleInnerBox=Fe>0||tt>0?Ao(v.left+Je,v.top+zt*2/3,Bt-dr*2/3,nr-zt*2/3,ya.TOP_RIGHT):new hi(v.left+v.width-dr*2/3,v.top+zt*2/3),this.bottomRightBorderDoubleInnerBox=a>0||g>0?Ao(v.left+mt,v.top+ct,a-dr*2/3,g-Wt*2/3,ya.BOTTOM_RIGHT):new hi(v.left+v.width-dr*2/3,v.top+v.height-Wt*2/3),this.bottomLeftBorderDoubleInnerBox=oe>0||Ie>0?Ao(v.left+kr*2/3,v.top+Ot,oe-kr*2/3,Ie-Wt*2/3,ya.BOTTOM_LEFT):new hi(v.left+kr*2/3,v.top+v.height-Wt*2/3),this.topLeftBorderStroke=Fe>0||tt>0?Ao(v.left+kr/2,v.top+zt/2,Fe-kr/2,tt-zt/2,ya.TOP_LEFT):new hi(v.left+kr/2,v.top+zt/2),this.topRightBorderStroke=Fe>0||tt>0?Ao(v.left+Je,v.top+zt/2,Bt-dr/2,nr-zt/2,ya.TOP_RIGHT):new hi(v.left+v.width-dr/2,v.top+zt/2),this.bottomRightBorderStroke=a>0||g>0?Ao(v.left+mt,v.top+ct,a-dr/2,g-Wt/2,ya.BOTTOM_RIGHT):new hi(v.left+v.width-dr/2,v.top+v.height-Wt/2),this.bottomLeftBorderStroke=oe>0||Ie>0?Ao(v.left+kr/2,v.top+Ot,oe-kr/2,Ie-Wt/2,ya.BOTTOM_LEFT):new hi(v.left+kr/2,v.top+v.height-Wt/2),this.topLeftBorderBox=Fe>0||tt>0?Ao(v.left,v.top,Fe,tt,ya.TOP_LEFT):new hi(v.left,v.top),this.topRightBorderBox=Bt>0||nr>0?Ao(v.left+Je,v.top,Bt,nr,ya.TOP_RIGHT):new hi(v.left+v.width,v.top),this.bottomRightBorderBox=a>0||g>0?Ao(v.left+mt,v.top+ct,a,g,ya.BOTTOM_RIGHT):new hi(v.left+v.width,v.top+v.height),this.bottomLeftBorderBox=oe>0||Ie>0?Ao(v.left,v.top+Ot,oe,Ie,ya.BOTTOM_LEFT):new hi(v.left,v.top+v.height),this.topLeftPaddingBox=Fe>0||tt>0?Ao(v.left+kr,v.top+zt,Math.max(0,Fe-kr),Math.max(0,tt-zt),ya.TOP_LEFT):new hi(v.left+kr,v.top+zt),this.topRightPaddingBox=Bt>0||nr>0?Ao(v.left+Math.min(Je,v.width-dr),v.top+zt,Je>v.width+dr?0:Math.max(0,Bt-dr),Math.max(0,nr-zt),ya.TOP_RIGHT):new hi(v.left+v.width-dr,v.top+zt),this.bottomRightPaddingBox=a>0||g>0?Ao(v.left+Math.min(mt,v.width-kr),v.top+Math.min(ct,v.height-Wt),Math.max(0,a-dr),Math.max(0,g-Wt),ya.BOTTOM_RIGHT):new hi(v.left+v.width-dr,v.top+v.height-Wt),this.bottomLeftPaddingBox=oe>0||Ie>0?Ao(v.left+kr,v.top+Math.min(Ot,v.height-Wt),Math.max(0,oe-kr),Math.max(0,Ie-Wt),ya.BOTTOM_LEFT):new hi(v.left+kr,v.top+v.height-Wt),this.topLeftContentBox=Fe>0||tt>0?Ao(v.left+kr+Tr,v.top+zt+Dr,Math.max(0,Fe-(kr+Tr)),Math.max(0,tt-(zt+Dr)),ya.TOP_LEFT):new hi(v.left+kr+Tr,v.top+zt+Dr),this.topRightContentBox=Bt>0||nr>0?Ao(v.left+Math.min(Je,v.width+kr+Tr),v.top+zt+Dr,Je>v.width+kr+Tr?0:Bt-kr+Tr,nr-(zt+Dr),ya.TOP_RIGHT):new hi(v.left+v.width-(dr+Gt),v.top+zt+Dr),this.bottomRightContentBox=a>0||g>0?Ao(v.left+Math.min(mt,v.width-(kr+Tr)),v.top+Math.min(ct,v.height+zt+Dr),Math.max(0,a-(dr+Gt)),g-(Wt+tr),ya.BOTTOM_RIGHT):new hi(v.left+v.width-(dr+Gt),v.top+v.height-(Wt+tr)),this.bottomLeftContentBox=oe>0||Ie>0?Ao(v.left+kr+Tr,v.top+Ot,Math.max(0,oe-(kr+Tr)),Ie-(Wt+tr),ya.BOTTOM_LEFT):new hi(v.left+kr+Tr,v.top+v.height-(Wt+tr))}return m}(),ya;(function(m){m[m.TOP_LEFT=0]="TOP_LEFT",m[m.TOP_RIGHT=1]="TOP_RIGHT",m[m.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",m[m.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(ya||(ya={}));var Ao=function(m,u,y,v,re){var Fe=4*((Math.sqrt(2)-1)/3),tt=y*Fe,xt=v*Fe,Bt=m+y,nr=u+v;switch(re){case ya.TOP_LEFT:return new tu(new hi(m,nr),new hi(m,nr-xt),new hi(Bt-tt,u),new hi(Bt,u));case ya.TOP_RIGHT:return new tu(new hi(m,u),new hi(m+tt,u),new hi(Bt,nr-xt),new hi(Bt,nr));case ya.BOTTOM_RIGHT:return new tu(new hi(Bt,u),new hi(Bt,u+xt),new hi(m+tt,nr),new hi(m,nr));case ya.BOTTOM_LEFT:default:return new tu(new hi(Bt,nr),new hi(Bt-tt,nr),new hi(m,u+xt),new hi(m,u))}},ko=function(m){return[m.topLeftBorderBox,m.topRightBorderBox,m.bottomRightBorderBox,m.bottomLeftBorderBox]},$u=function(m){return[m.topLeftContentBox,m.topRightContentBox,m.bottomRightContentBox,m.bottomLeftContentBox]},pu=function(m){return[m.topLeftPaddingBox,m.topRightPaddingBox,m.bottomRightPaddingBox,m.bottomLeftPaddingBox]},nd=function(){function m(u,y,v){this.offsetX=u,this.offsetY=y,this.matrix=v,this.type=0,this.target=6}return m}(),DA=function(){function m(u,y){this.path=u,this.target=y,this.type=1}return m}(),mu=function(){function m(u){this.opacity=u,this.type=2,this.target=6}return m}(),ru=function(m){return m.type===0},Zu=function(m){return m.type===1},Al=function(m){return m.type===2},gu=function(m,u){return m.length===u.length?m.some(function(y,v){return y===u[v]}):!1},id=function(m,u,y,v,re){return m.map(function(Fe,tt){switch(tt){case 0:return Fe.add(u,y);case 1:return Fe.add(u+v,y);case 2:return Fe.add(u+v,y+re);case 3:return Fe.add(u,y+re)}return Fe})},yn=function(){function m(u){this.element=u,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return m}(),jo=function(){function m(u,y){if(this.container=u,this.parent=y,this.effects=[],this.curves=new zu(this.container),this.container.styles.opacity<1&&this.effects.push(new mu(this.container.styles.opacity)),this.container.styles.transform!==null){var v=this.container.bounds.left+this.container.styles.transformOrigin[0].number,re=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Fe=this.container.styles.transform;this.effects.push(new nd(v,re,Fe))}if(this.container.styles.overflowX!==0){var tt=ko(this.curves),xt=pu(this.curves);gu(tt,xt)?this.effects.push(new DA(tt,6)):(this.effects.push(new DA(tt,2)),this.effects.push(new DA(xt,4)))}}return m.prototype.getEffects=function(u){for(var y=[2,3].indexOf(this.container.styles.position)===-1,v=this.parent,re=this.effects.slice(0);v;){var Fe=v.effects.filter(function(Bt){return!Zu(Bt)});if(y||v.container.styles.position!==0||!v.parent){if(re.unshift.apply(re,Fe),y=[2,3].indexOf(v.container.styles.position)===-1,v.container.styles.overflowX!==0){var tt=ko(v.curves),xt=pu(v.curves);gu(tt,xt)||re.unshift(new DA(xt,6))}}else re.unshift.apply(re,Fe);v=v.parent}return re.filter(function(Bt){return Bn(Bt.target,u)})},m}(),bd=function(m,u,y,v){m.container.elements.forEach(function(re){var Fe=Bn(re.flags,4),tt=Bn(re.flags,2),xt=new jo(re,m);Bn(re.styles.display,2048)&&v.push(xt);var Bt=Bn(re.flags,8)?[]:v;if(Fe||tt){var nr=Fe||re.styles.isPositioned()?y:u,mr=new yn(xt);if(re.styles.isPositioned()||re.styles.opacity<1||re.styles.isTransformed()){var a=re.styles.zIndex.order;if(a<0){var g=0;nr.negativeZIndex.some(function(oe,Ie){return a>oe.element.container.styles.zIndex.order?(g=Ie,!1):g>0}),nr.negativeZIndex.splice(g,0,mr)}else if(a>0){var O=0;nr.positiveZIndex.some(function(oe,Ie){return a>=oe.element.container.styles.zIndex.order?(O=Ie+1,!1):O>0}),nr.positiveZIndex.splice(O,0,mr)}else nr.zeroOrAutoZIndexOrTransformedOrOpacity.push(mr)}else re.styles.isFloating()?nr.nonPositionedFloats.push(mr):nr.nonPositionedInlineLevel.push(mr);bd(xt,mr,Fe?mr:y,Bt)}else re.styles.isInlineLevel()?u.inlineLevel.push(xt):u.nonInlineLevel.push(xt),bd(xt,u,y,Bt);Bn(re.flags,8)&&gf(re,Bt)})},gf=function(m,u){for(var y=m instanceof IA?m.start:1,v=m instanceof IA?m.reversed:!1,re=0;re<u.length;re++){var Fe=u[re];Fe.container instanceof Gl&&typeof Fe.container.value=="number"&&Fe.container.value!==0&&(y=Fe.container.value),Fe.listValue=Yl(y,Fe.container.styles.listStyleType,!0),y+=v?-1:1}},Zd=function(m){var u=new jo(m,null),y=new yn(u),v=[];return bd(u,y,y,v),gf(u.container,v),y},wd=function(m,u){switch(u){case 0:return ml(m.topLeftBorderBox,m.topLeftPaddingBox,m.topRightBorderBox,m.topRightPaddingBox);case 1:return ml(m.topRightBorderBox,m.topRightPaddingBox,m.bottomRightBorderBox,m.bottomRightPaddingBox);case 2:return ml(m.bottomRightBorderBox,m.bottomRightPaddingBox,m.bottomLeftBorderBox,m.bottomLeftPaddingBox);case 3:default:return ml(m.bottomLeftBorderBox,m.bottomLeftPaddingBox,m.topLeftBorderBox,m.topLeftPaddingBox)}},Vu=function(m,u){switch(u){case 0:return ml(m.topLeftBorderBox,m.topLeftBorderDoubleOuterBox,m.topRightBorderBox,m.topRightBorderDoubleOuterBox);case 1:return ml(m.topRightBorderBox,m.topRightBorderDoubleOuterBox,m.bottomRightBorderBox,m.bottomRightBorderDoubleOuterBox);case 2:return ml(m.bottomRightBorderBox,m.bottomRightBorderDoubleOuterBox,m.bottomLeftBorderBox,m.bottomLeftBorderDoubleOuterBox);case 3:default:return ml(m.bottomLeftBorderBox,m.bottomLeftBorderDoubleOuterBox,m.topLeftBorderBox,m.topLeftBorderDoubleOuterBox)}},ad=function(m,u){switch(u){case 0:return ml(m.topLeftBorderDoubleInnerBox,m.topLeftPaddingBox,m.topRightBorderDoubleInnerBox,m.topRightPaddingBox);case 1:return ml(m.topRightBorderDoubleInnerBox,m.topRightPaddingBox,m.bottomRightBorderDoubleInnerBox,m.bottomRightPaddingBox);case 2:return ml(m.bottomRightBorderDoubleInnerBox,m.bottomRightPaddingBox,m.bottomLeftBorderDoubleInnerBox,m.bottomLeftPaddingBox);case 3:default:return ml(m.bottomLeftBorderDoubleInnerBox,m.bottomLeftPaddingBox,m.topLeftBorderDoubleInnerBox,m.topLeftPaddingBox)}},xd=function(m,u){switch(u){case 0:return vu(m.topLeftBorderStroke,m.topRightBorderStroke);case 1:return vu(m.topRightBorderStroke,m.bottomRightBorderStroke);case 2:return vu(m.bottomRightBorderStroke,m.bottomLeftBorderStroke);case 3:default:return vu(m.bottomLeftBorderStroke,m.topLeftBorderStroke)}},vu=function(m,u){var y=[];return Qs(m)?y.push(m.subdivide(.5,!1)):y.push(m),Qs(u)?y.push(u.subdivide(.5,!0)):y.push(u),y},ml=function(m,u,y,v){var re=[];return Qs(m)?re.push(m.subdivide(.5,!1)):re.push(m),Qs(y)?re.push(y.subdivide(.5,!0)):re.push(y),Qs(v)?re.push(v.subdivide(.5,!0).reverse()):re.push(v),Qs(u)?re.push(u.subdivide(.5,!1).reverse()):re.push(u),re},nu=function(m){var u=m.bounds,y=m.styles;return u.add(y.borderLeftWidth,y.borderTopWidth,-(y.borderRightWidth+y.borderLeftWidth),-(y.borderTopWidth+y.borderBottomWidth))},Ls=function(m){var u=m.styles,y=m.bounds,v=Pa(u.paddingLeft,y.width),re=Pa(u.paddingRight,y.width),Fe=Pa(u.paddingTop,y.width),tt=Pa(u.paddingBottom,y.width);return y.add(v+u.borderLeftWidth,Fe+u.borderTopWidth,-(u.borderRightWidth+u.borderLeftWidth+v+re),-(u.borderTopWidth+u.borderBottomWidth+Fe+tt))},yu=function(m,u){return m===0?u.bounds:m===2?Ls(u):nu(u)},Cd=function(m,u){return m===0?u.bounds:m===2?Ls(u):nu(u)},pA=function(m,u,y){var v=yu(Vs(m.styles.backgroundOrigin,u),m),re=Cd(Vs(m.styles.backgroundClip,u),m),Fe=_c(Vs(m.styles.backgroundSize,u),y,v),tt=Fe[0],xt=Fe[1],Bt=ms(Vs(m.styles.backgroundPosition,u),v.width-tt,v.height-xt),nr=nA(Vs(m.styles.backgroundRepeat,u),Bt,Fe,v,re),mr=Math.round(v.left+Bt[0]),a=Math.round(v.top+Bt[1]);return[nr,mr,a,tt,xt]},gl=function(m){return Da(m)&&m.value===F.AUTO},od=function(m){return typeof m=="number"},_c=function(m,u,y){var v=u[0],re=u[1],Fe=u[2],tt=m[0],xt=m[1];if(!tt)return[0,0];if(Kn(tt)&&xt&&Kn(xt))return[Pa(tt,y.width),Pa(xt,y.height)];var Bt=od(Fe);if(Da(tt)&&(tt.value===F.CONTAIN||tt.value===F.COVER)){if(od(Fe)){var nr=y.width/y.height;return nr<Fe!=(tt.value===F.COVER)?[y.width,y.width/Fe]:[y.height*Fe,y.height]}return[y.width,y.height]}var mr=od(v),a=od(re),g=mr||a;if(gl(tt)&&(!xt||gl(xt))){if(mr&&a)return[v,re];if(!Bt&&!g)return[y.width,y.height];if(g&&Bt){var O=mr?v:re*Fe,oe=a?re:v/Fe;return[O,oe]}var Ie=mr?v:y.width,Ve=a?re:y.height;return[Ie,Ve]}if(Bt){var ze=0,Je=0;return Kn(tt)?ze=Pa(tt,y.width):Kn(xt)&&(Je=Pa(xt,y.height)),gl(tt)?ze=Je*Fe:(!xt||gl(xt))&&(Je=ze/Fe),[ze,Je]}var ct=null,mt=null;if(Kn(tt)?ct=Pa(tt,y.width):xt&&Kn(xt)&&(mt=Pa(xt,y.height)),ct!==null&&(!xt||gl(xt))&&(mt=mr&&a?ct/v*re:y.height),mt!==null&&gl(tt)&&(ct=mr&&a?mt/re*v:y.width),ct!==null&&mt!==null)return[ct,mt];throw new Error("Unable to calculate background-size for element")},Vs=function(m,u){var y=m[u];return typeof y=="undefined"?m[0]:y},nA=function(m,u,y,v,re){var Fe=u[0],tt=u[1],xt=y[0],Bt=y[1];switch(m){case 2:return[new hi(Math.round(v.left),Math.round(v.top+tt)),new hi(Math.round(v.left+v.width),Math.round(v.top+tt)),new hi(Math.round(v.left+v.width),Math.round(Bt+v.top+tt)),new hi(Math.round(v.left),Math.round(Bt+v.top+tt))];case 3:return[new hi(Math.round(v.left+Fe),Math.round(v.top)),new hi(Math.round(v.left+Fe+xt),Math.round(v.top)),new hi(Math.round(v.left+Fe+xt),Math.round(v.height+v.top)),new hi(Math.round(v.left+Fe),Math.round(v.height+v.top))];case 1:return[new hi(Math.round(v.left+Fe),Math.round(v.top+tt)),new hi(Math.round(v.left+Fe+xt),Math.round(v.top+tt)),new hi(Math.round(v.left+Fe+xt),Math.round(v.top+tt+Bt)),new hi(Math.round(v.left+Fe),Math.round(v.top+tt+Bt))];default:return[new hi(Math.round(re.left),Math.round(re.top)),new hi(Math.round(re.left+re.width),Math.round(re.top)),new hi(Math.round(re.left+re.width),Math.round(re.height+re.top)),new hi(Math.round(re.left),Math.round(re.height+re.top))]}},vf="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bu="Hidden Text",PA=function(){function m(u){this._data={},this._document=u}return m.prototype.parseMetrics=function(u,y){var v=this._document.createElement("div"),re=this._document.createElement("img"),Fe=this._document.createElement("span"),tt=this._document.body;v.style.visibility="hidden",v.style.fontFamily=u,v.style.fontSize=y,v.style.margin="0",v.style.padding="0",v.style.whiteSpace="nowrap",tt.appendChild(v),re.src=vf,re.width=1,re.height=1,re.style.margin="0",re.style.padding="0",re.style.verticalAlign="baseline",Fe.style.fontFamily=u,Fe.style.fontSize=y,Fe.style.margin="0",Fe.style.padding="0",Fe.appendChild(this._document.createTextNode(bu)),v.appendChild(Fe),v.appendChild(re);var xt=re.offsetTop-Fe.offsetTop+2;v.removeChild(Fe),v.appendChild(this._document.createTextNode(bu)),v.style.lineHeight="normal",re.style.verticalAlign="super";var Bt=re.offsetTop-v.offsetTop+2;return tt.removeChild(v),{baseline:xt,middle:Bt}},m.prototype.getMetrics=function(u,y){var v=u+" "+y;return typeof this._data[v]=="undefined"&&(this._data[v]=this.parseMetrics(u,y)),this._data[v]},m}(),dc=function(){function m(u,y){this.context=u,this.options=y}return m}(),yf=1e4,Wu=function(m){x(u,m);function u(y,v){var re=m.call(this,y,v)||this;return re._activeEffects=[],re.canvas=v.canvas?v.canvas:document.createElement("canvas"),re.ctx=re.canvas.getContext("2d"),v.canvas||(re.canvas.width=Math.floor(v.width*v.scale),re.canvas.height=Math.floor(v.height*v.scale),re.canvas.style.width=v.width+"px",re.canvas.style.height=v.height+"px"),re.fontMetrics=new PA(document),re.ctx.scale(re.options.scale,re.options.scale),re.ctx.translate(-v.x,-v.y),re.ctx.textBaseline="bottom",re._activeEffects=[],re.context.logger.debug("Canvas renderer initialized ("+v.width+"x"+v.height+") with scale "+v.scale),re}return u.prototype.applyEffects=function(y){for(var v=this;this._activeEffects.length;)this.popEffect();y.forEach(function(re){return v.applyEffect(re)})},u.prototype.applyEffect=function(y){this.ctx.save(),Al(y)&&(this.ctx.globalAlpha=y.opacity),ru(y)&&(this.ctx.translate(y.offsetX,y.offsetY),this.ctx.transform(y.matrix[0],y.matrix[1],y.matrix[2],y.matrix[3],y.matrix[4],y.matrix[5]),this.ctx.translate(-y.offsetX,-y.offsetY)),Zu(y)&&(this.path(y.path),this.ctx.clip()),this._activeEffects.push(y)},u.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},u.prototype.renderStack=function(y){return de(this,void 0,void 0,function(){var v;return Q(this,function(re){switch(re.label){case 0:return v=y.element.container.styles,v.isVisible()?[4,this.renderStackContent(y)]:[3,2];case 1:re.sent(),re.label=2;case 2:return[2]}})})},u.prototype.renderNode=function(y){return de(this,void 0,void 0,function(){return Q(this,function(v){switch(v.label){case 0:if(Bn(y.container.flags,16))debugger;return y.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(y)]:[3,3];case 1:return v.sent(),[4,this.renderNodeContent(y)];case 2:v.sent(),v.label=3;case 3:return[2]}})})},u.prototype.renderTextWithLetterSpacing=function(y,v,re){var Fe=this;if(v===0)this.ctx.fillText(y.text,y.bounds.left,y.bounds.top+re);else{var tt=Sa(y.text);tt.reduce(function(xt,Bt){return Fe.ctx.fillText(Bt,xt,y.bounds.top+re),xt+Fe.ctx.measureText(Bt).width},y.bounds.left)}},u.prototype.createFontStyle=function(y){var v=y.fontVariant.filter(function(tt){return tt==="normal"||tt==="small-caps"}).join(""),re=bf(y.fontFamily).join(", "),Fe=oo(y.fontSize)?""+y.fontSize.number+y.fontSize.unit:y.fontSize.number+"px";return[[y.fontStyle,v,y.fontWeight,Fe,re].join(" "),re,Fe]},u.prototype.renderTextNode=function(y,v){return de(this,void 0,void 0,function(){var re,Fe,tt,xt,Bt,nr,mr,a,g=this;return Q(this,function(O){return re=this.createFontStyle(v),Fe=re[0],tt=re[1],xt=re[2],this.ctx.font=Fe,this.ctx.direction=v.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",Bt=this.fontMetrics.getMetrics(tt,xt),nr=Bt.baseline,mr=Bt.middle,a=v.paintOrder,y.textBounds.forEach(function(oe){a.forEach(function(Ie){switch(Ie){case 0:g.ctx.fillStyle=Ya(v.color),g.renderTextWithLetterSpacing(oe,v.letterSpacing,nr);var Ve=v.textShadow;Ve.length&&oe.text.trim().length&&(Ve.slice(0).reverse().forEach(function(ze){g.ctx.shadowColor=Ya(ze.color),g.ctx.shadowOffsetX=ze.offsetX.number*g.options.scale,g.ctx.shadowOffsetY=ze.offsetY.number*g.options.scale,g.ctx.shadowBlur=ze.blur.number,g.renderTextWithLetterSpacing(oe,v.letterSpacing,nr)}),g.ctx.shadowColor="",g.ctx.shadowOffsetX=0,g.ctx.shadowOffsetY=0,g.ctx.shadowBlur=0),v.textDecorationLine.length&&(g.ctx.fillStyle=Ya(v.textDecorationColor||v.color),v.textDecorationLine.forEach(function(ze){switch(ze){case 1:g.ctx.fillRect(oe.bounds.left,Math.round(oe.bounds.top+nr),oe.bounds.width,1);break;case 2:g.ctx.fillRect(oe.bounds.left,Math.round(oe.bounds.top),oe.bounds.width,1);break;case 3:g.ctx.fillRect(oe.bounds.left,Math.ceil(oe.bounds.top+mr),oe.bounds.width,1);break}}));break;case 1:v.webkitTextStrokeWidth&&oe.text.trim().length&&(g.ctx.strokeStyle=Ya(v.webkitTextStrokeColor),g.ctx.lineWidth=v.webkitTextStrokeWidth,g.ctx.lineJoin=window.chrome?"miter":"round",g.ctx.strokeText(oe.text,oe.bounds.left,oe.bounds.top+nr)),g.ctx.strokeStyle="",g.ctx.lineWidth=0,g.ctx.lineJoin="miter";break}})}),[2]})})},u.prototype.renderReplacedElement=function(y,v,re){if(re&&y.intrinsicWidth>0&&y.intrinsicHeight>0){var Fe=Ls(y),tt=pu(v);this.path(tt),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(re,0,0,y.intrinsicWidth,y.intrinsicHeight,Fe.left,Fe.top,Fe.width,Fe.height),this.ctx.restore()}},u.prototype.renderNodeContent=function(y){return de(this,void 0,void 0,function(){var v,re,Fe,tt,xt,Bt,Je,Je,nr,mr,a,g,mt,O,oe,Ot,Ie,Ve,ze,Je,ct,mt,Ot;return Q(this,function(zt){switch(zt.label){case 0:this.applyEffects(y.getEffects(4)),v=y.container,re=y.curves,Fe=v.styles,tt=0,xt=v.textNodes,zt.label=1;case 1:return tt<xt.length?(Bt=xt[tt],[4,this.renderTextNode(Bt,Fe)]):[3,4];case 2:zt.sent(),zt.label=3;case 3:return tt++,[3,1];case 4:if(!(v instanceof Nc))return[3,8];zt.label=5;case 5:return zt.trys.push([5,7,,8]),[4,this.context.cache.match(v.src)];case 6:return Je=zt.sent(),this.renderReplacedElement(v,re,Je),[3,8];case 7:return zt.sent(),this.context.logger.error("Error loading image "+v.src),[3,8];case 8:if(v instanceof la&&this.renderReplacedElement(v,re,v.canvas),!(v instanceof Oc))return[3,12];zt.label=9;case 9:return zt.trys.push([9,11,,12]),[4,this.context.cache.match(v.svg)];case 10:return Je=zt.sent(),this.renderReplacedElement(v,re,Je),[3,12];case 11:return zt.sent(),this.context.logger.error("Error loading svg "+v.svg.substring(0,255)),[3,12];case 12:return v instanceof Uc&&v.tree?(nr=new u(this.context,{scale:this.options.scale,backgroundColor:v.backgroundColor,x:0,y:0,width:v.width,height:v.height}),[4,nr.render(v.tree)]):[3,14];case 13:mr=zt.sent(),v.width&&v.height&&this.ctx.drawImage(mr,0,0,v.width,v.height,v.bounds.left,v.bounds.top,v.bounds.width,v.bounds.height),zt.label=14;case 14:if(v instanceof Is&&(a=Math.min(v.bounds.width,v.bounds.height),v.type===GA?v.checked&&(this.ctx.save(),this.path([new hi(v.bounds.left+a*.39363,v.bounds.top+a*.79),new hi(v.bounds.left+a*.16,v.bounds.top+a*.5549),new hi(v.bounds.left+a*.27347,v.bounds.top+a*.44071),new hi(v.bounds.left+a*.39694,v.bounds.top+a*.5649),new hi(v.bounds.left+a*.72983,v.bounds.top+a*.23),new hi(v.bounds.left+a*.84,v.bounds.top+a*.34085),new hi(v.bounds.left+a*.39363,v.bounds.top+a*.79)]),this.ctx.fillStyle=Ya(Au),this.ctx.fill(),this.ctx.restore()):v.type===oc&&v.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(v.bounds.left+a/2,v.bounds.top+a/2,a/4,0,Math.PI*2,!0),this.ctx.fillStyle=Ya(Au),this.ctx.fill(),this.ctx.restore())),wu(v)&&v.value.length){switch(g=this.createFontStyle(Fe),mt=g[0],O=g[1],oe=this.fontMetrics.getMetrics(mt,O).baseline,this.ctx.font=mt,this.ctx.fillStyle=Ya(Fe.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=NA(v.styles.textAlign),Ot=Ls(v),Ie=0,v.styles.textAlign){case 1:Ie+=Ot.width/2;break;case 2:Ie+=Ot.width;break}Ve=Ot.add(Ie,0,0,-Ot.height/2+1),this.ctx.save(),this.path([new hi(Ot.left,Ot.top),new hi(Ot.left+Ot.width,Ot.top),new hi(Ot.left+Ot.width,Ot.top+Ot.height),new hi(Ot.left,Ot.top+Ot.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Os(v.value,Ve),Fe.letterSpacing,oe),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Bn(v.styles.display,2048))return[3,20];if(v.styles.listStyleImage===null)return[3,19];if(ze=v.styles.listStyleImage,ze.type!==0)return[3,18];Je=void 0,ct=ze.url,zt.label=15;case 15:return zt.trys.push([15,17,,18]),[4,this.context.cache.match(ct)];case 16:return Je=zt.sent(),this.ctx.drawImage(Je,v.bounds.left-(Je.width+10),v.bounds.top),[3,18];case 17:return zt.sent(),this.context.logger.error("Error loading list-style-image "+ct),[3,18];case 18:return[3,20];case 19:y.listValue&&v.styles.listStyleType!==-1&&(mt=this.createFontStyle(Fe)[0],this.ctx.font=mt,this.ctx.fillStyle=Ya(Fe.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Ot=new ie(v.bounds.left,v.bounds.top+Pa(v.styles.paddingTop,v.bounds.width),v.bounds.width,ht(Fe.lineHeight,Fe.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Os(y.listValue,Ot),Fe.letterSpacing,ht(Fe.lineHeight,Fe.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),zt.label=20;case 20:return[2]}})})},u.prototype.renderStackContent=function(y){return de(this,void 0,void 0,function(){var v,re,ze,Fe,tt,ze,xt,Bt,ze,nr,mr,ze,a,g,ze,O,oe,ze,Ie,Ve,ze;return Q(this,function(Je){switch(Je.label){case 0:if(Bn(y.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(y.element)];case 1:Je.sent(),v=0,re=y.negativeZIndex,Je.label=2;case 2:return v<re.length?(ze=re[v],[4,this.renderStack(ze)]):[3,5];case 3:Je.sent(),Je.label=4;case 4:return v++,[3,2];case 5:return[4,this.renderNodeContent(y.element)];case 6:Je.sent(),Fe=0,tt=y.nonInlineLevel,Je.label=7;case 7:return Fe<tt.length?(ze=tt[Fe],[4,this.renderNode(ze)]):[3,10];case 8:Je.sent(),Je.label=9;case 9:return Fe++,[3,7];case 10:xt=0,Bt=y.nonPositionedFloats,Je.label=11;case 11:return xt<Bt.length?(ze=Bt[xt],[4,this.renderStack(ze)]):[3,14];case 12:Je.sent(),Je.label=13;case 13:return xt++,[3,11];case 14:nr=0,mr=y.nonPositionedInlineLevel,Je.label=15;case 15:return nr<mr.length?(ze=mr[nr],[4,this.renderStack(ze)]):[3,18];case 16:Je.sent(),Je.label=17;case 17:return nr++,[3,15];case 18:a=0,g=y.inlineLevel,Je.label=19;case 19:return a<g.length?(ze=g[a],[4,this.renderNode(ze)]):[3,22];case 20:Je.sent(),Je.label=21;case 21:return a++,[3,19];case 22:O=0,oe=y.zeroOrAutoZIndexOrTransformedOrOpacity,Je.label=23;case 23:return O<oe.length?(ze=oe[O],[4,this.renderStack(ze)]):[3,26];case 24:Je.sent(),Je.label=25;case 25:return O++,[3,23];case 26:Ie=0,Ve=y.positiveZIndex,Je.label=27;case 27:return Ie<Ve.length?(ze=Ve[Ie],[4,this.renderStack(ze)]):[3,30];case 28:Je.sent(),Je.label=29;case 29:return Ie++,[3,27];case 30:return[2]}})})},u.prototype.mask=function(y){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(y.slice(0).reverse()),this.ctx.closePath()},u.prototype.path=function(y){this.ctx.beginPath(),this.formatPath(y),this.ctx.closePath()},u.prototype.formatPath=function(y){var v=this;y.forEach(function(re,Fe){var tt=Qs(re)?re.start:re;Fe===0?v.ctx.moveTo(tt.x,tt.y):v.ctx.lineTo(tt.x,tt.y),Qs(re)&&v.ctx.bezierCurveTo(re.startControl.x,re.startControl.y,re.endControl.x,re.endControl.y,re.end.x,re.end.y)})},u.prototype.renderRepeat=function(y,v,re,Fe){this.path(y),this.ctx.fillStyle=v,this.ctx.translate(re,Fe),this.ctx.fill(),this.ctx.translate(-re,-Fe)},u.prototype.resizeImage=function(y,v,re){var Fe;if(y.width===v&&y.height===re)return y;var tt=(Fe=this.canvas.ownerDocument)!==null&&Fe!==void 0?Fe:document,xt=tt.createElement("canvas");xt.width=Math.max(1,v),xt.height=Math.max(1,re);var Bt=xt.getContext("2d");return Bt.drawImage(y,0,0,y.width,y.height,0,0,v,re),xt},u.prototype.renderBackgroundImage=function(y){return de(this,void 0,void 0,function(){var v,re,Fe,tt,xt,Bt;return Q(this,function(nr){switch(nr.label){case 0:v=y.styles.backgroundImage.length-1,re=function(mr){var a,g,O,Dr,li,Gn,Tr,sn,Wt,oe,Dr,li,Gn,Tr,sn,Ie,Ve,ze,Je,ct,mt,Ot,zt,dr,Wt,kr,Dr,Gt,tr,Tr,sn,un,li,Gn,Zi,ii,Ha,qa,Ea,Ma,xo,Wa;return Q(this,function(ca){switch(ca.label){case 0:if(mr.type!==0)return[3,5];a=void 0,g=mr.url,ca.label=1;case 1:return ca.trys.push([1,3,,4]),[4,Fe.context.cache.match(g)];case 2:return a=ca.sent(),[3,4];case 3:return ca.sent(),Fe.context.logger.error("Error loading background-image "+g),[3,4];case 4:return a&&(O=pA(y,v,[a.width,a.height,a.width/a.height]),Dr=O[0],li=O[1],Gn=O[2],Tr=O[3],sn=O[4],Wt=Fe.ctx.createPattern(Fe.resizeImage(a,Tr,sn),"repeat"),Fe.renderRepeat(Dr,Wt,li,Gn)),[3,6];case 5:ed(mr)?(oe=pA(y,v,[null,null,null]),Dr=oe[0],li=oe[1],Gn=oe[2],Tr=oe[3],sn=oe[4],Ie=Ys(mr.angle,Tr,sn),Ve=Ie[0],ze=Ie[1],Je=Ie[2],ct=Ie[3],mt=Ie[4],Ot=document.createElement("canvas"),Ot.width=Tr,Ot.height=sn,zt=Ot.getContext("2d"),dr=zt.createLinearGradient(ze,ct,Je,mt),wA(mr.stops,Ve).forEach(function(Co){return dr.addColorStop(Co.stop,Ya(Co.color))}),zt.fillStyle=dr,zt.fillRect(0,0,Tr,sn),Tr>0&&sn>0&&(Wt=Fe.ctx.createPattern(Ot,"repeat"),Fe.renderRepeat(Dr,Wt,li,Gn))):td(mr)&&(kr=pA(y,v,[null,null,null]),Dr=kr[0],Gt=kr[1],tr=kr[2],Tr=kr[3],sn=kr[4],un=mr.position.length===0?[Hl]:mr.position,li=Pa(un[0],Tr),Gn=Pa(un[un.length-1],sn),Zi=Ta(mr,li,Gn,Tr,sn),ii=Zi[0],Ha=Zi[1],ii>0&&Ha>0&&(qa=Fe.ctx.createRadialGradient(Gt+li,tr+Gn,0,Gt+li,tr+Gn,ii),wA(mr.stops,ii*2).forEach(function(Co){return qa.addColorStop(Co.stop,Ya(Co.color))}),Fe.path(Dr),Fe.ctx.fillStyle=qa,ii!==Ha?(Ea=y.bounds.left+.5*y.bounds.width,Ma=y.bounds.top+.5*y.bounds.height,xo=Ha/ii,Wa=1/xo,Fe.ctx.save(),Fe.ctx.translate(Ea,Ma),Fe.ctx.transform(1,0,0,xo,0,0),Fe.ctx.translate(-Ea,-Ma),Fe.ctx.fillRect(Gt,Wa*(tr-Ma)+Ma,Tr,sn*Wa),Fe.ctx.restore()):Fe.ctx.fill())),ca.label=6;case 6:return v--,[2]}})},Fe=this,tt=0,xt=y.styles.backgroundImage.slice(0).reverse(),nr.label=1;case 1:return tt<xt.length?(Bt=xt[tt],[5,re(Bt)]):[3,4];case 2:nr.sent(),nr.label=3;case 3:return tt++,[3,1];case 4:return[2]}})})},u.prototype.renderSolidBorder=function(y,v,re){return de(this,void 0,void 0,function(){return Q(this,function(Fe){return this.path(wd(re,v)),this.ctx.fillStyle=Ya(y),this.ctx.fill(),[2]})})},u.prototype.renderDoubleBorder=function(y,v,re,Fe){return de(this,void 0,void 0,function(){var tt,xt;return Q(this,function(Bt){switch(Bt.label){case 0:return v<3?[4,this.renderSolidBorder(y,re,Fe)]:[3,2];case 1:return Bt.sent(),[2];case 2:return tt=Vu(Fe,re),this.path(tt),this.ctx.fillStyle=Ya(y),this.ctx.fill(),xt=ad(Fe,re),this.path(xt),this.ctx.fill(),[2]}})})},u.prototype.renderNodeBackgroundAndBorders=function(y){return de(this,void 0,void 0,function(){var v,re,Fe,tt,xt,Bt,nr,mr,a=this;return Q(this,function(g){switch(g.label){case 0:return this.applyEffects(y.getEffects(2)),v=y.container.styles,re=!Ro(v.backgroundColor)||v.backgroundImage.length,Fe=[{style:v.borderTopStyle,color:v.borderTopColor,width:v.borderTopWidth},{style:v.borderRightStyle,color:v.borderRightColor,width:v.borderRightWidth},{style:v.borderBottomStyle,color:v.borderBottomColor,width:v.borderBottomWidth},{style:v.borderLeftStyle,color:v.borderLeftColor,width:v.borderLeftWidth}],tt=sd(Vs(v.backgroundClip,0),y.curves),re||v.boxShadow.length?(this.ctx.save(),this.path(tt),this.ctx.clip(),Ro(v.backgroundColor)||(this.ctx.fillStyle=Ya(v.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(y.container)]):[3,2];case 1:g.sent(),this.ctx.restore(),v.boxShadow.slice(0).reverse().forEach(function(O){a.ctx.save();var oe=ko(y.curves),Ie=O.inset?0:yf,Ve=id(oe,-Ie+(O.inset?1:-1)*O.spread.number,(O.inset?1:-1)*O.spread.number,O.spread.number*(O.inset?-2:2),O.spread.number*(O.inset?-2:2));O.inset?(a.path(oe),a.ctx.clip(),a.mask(Ve)):(a.mask(oe),a.ctx.clip(),a.path(Ve)),a.ctx.shadowOffsetX=O.offsetX.number+Ie,a.ctx.shadowOffsetY=O.offsetY.number,a.ctx.shadowColor=Ya(O.color),a.ctx.shadowBlur=O.blur.number,a.ctx.fillStyle=O.inset?Ya(O.color):"rgba(0,0,0,1)",a.ctx.fill(),a.ctx.restore()}),g.label=2;case 2:xt=0,Bt=0,nr=Fe,g.label=3;case 3:return Bt<nr.length?(mr=nr[Bt],mr.style!==0&&!Ro(mr.color)&&mr.width>0?mr.style!==2?[3,5]:[4,this.renderDashedDottedBorder(mr.color,mr.width,xt,y.curves,2)]:[3,11]):[3,13];case 4:return g.sent(),[3,11];case 5:return mr.style!==3?[3,7]:[4,this.renderDashedDottedBorder(mr.color,mr.width,xt,y.curves,3)];case 6:return g.sent(),[3,11];case 7:return mr.style!==4?[3,9]:[4,this.renderDoubleBorder(mr.color,mr.width,xt,y.curves)];case 8:return g.sent(),[3,11];case 9:return[4,this.renderSolidBorder(mr.color,xt,y.curves)];case 10:g.sent(),g.label=11;case 11:xt++,g.label=12;case 12:return Bt++,[3,3];case 13:return[2]}})})},u.prototype.renderDashedDottedBorder=function(y,v,re,Fe,tt){return de(this,void 0,void 0,function(){var xt,Bt,nr,mr,a,g,O,oe,Ie,Ve,ze,Je,ct,mt,Ot,zt,Ot,zt;return Q(this,function(dr){return this.ctx.save(),xt=xd(Fe,re),Bt=wd(Fe,re),tt===2&&(this.path(Bt),this.ctx.clip()),Qs(Bt[0])?(nr=Bt[0].start.x,mr=Bt[0].start.y):(nr=Bt[0].x,mr=Bt[0].y),Qs(Bt[1])?(a=Bt[1].end.x,g=Bt[1].end.y):(a=Bt[1].x,g=Bt[1].y),re===0||re===2?O=Math.abs(nr-a):O=Math.abs(mr-g),this.ctx.beginPath(),tt===3?this.formatPath(xt):this.formatPath(Bt.slice(0,2)),oe=v<3?v*3:v*2,Ie=v<3?v*2:v,tt===3&&(oe=v,Ie=v),Ve=!0,O<=oe*2?Ve=!1:O<=oe*2+Ie?(ze=O/(2*oe+Ie),oe*=ze,Ie*=ze):(Je=Math.floor((O+Ie)/(oe+Ie)),ct=(O-Je*oe)/(Je-1),mt=(O-(Je+1)*oe)/Je,Ie=mt<=0||Math.abs(Ie-ct)<Math.abs(Ie-mt)?ct:mt),Ve&&(tt===3?this.ctx.setLineDash([0,oe+Ie]):this.ctx.setLineDash([oe,Ie])),tt===3?(this.ctx.lineCap="round",this.ctx.lineWidth=v):this.ctx.lineWidth=v*2+1.1,this.ctx.strokeStyle=Ya(y),this.ctx.stroke(),this.ctx.setLineDash([]),tt===2&&(Qs(Bt[0])&&(Ot=Bt[3],zt=Bt[0],this.ctx.beginPath(),this.formatPath([new hi(Ot.end.x,Ot.end.y),new hi(zt.start.x,zt.start.y)]),this.ctx.stroke()),Qs(Bt[1])&&(Ot=Bt[1],zt=Bt[2],this.ctx.beginPath(),this.formatPath([new hi(Ot.end.x,Ot.end.y),new hi(zt.start.x,zt.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},u.prototype.render=function(y){return de(this,void 0,void 0,function(){var v;return Q(this,function(re){switch(re.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Ya(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),v=Zd(y),[4,this.renderStack(v)];case 1:return re.sent(),this.applyEffects([]),[2,this.canvas]}})})},u}(dc),wu=function(m){return m instanceof Yc||m instanceof Tc?!0:m instanceof Is&&m.type!==oc&&m.type!==GA},sd=function(m,u){switch(m){case 0:return ko(u);case 2:return $u(u);case 1:default:return pu(u)}},NA=function(m){switch(m){case 1:return"center";case 2:return"right";case 0:default:return"left"}},mA=["-apple-system","system-ui"],bf=function(m){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?m.filter(function(u){return mA.indexOf(u)===-1}):m},Gu=function(m){x(u,m);function u(y,v){var re=m.call(this,y,v)||this;return re.canvas=v.canvas?v.canvas:document.createElement("canvas"),re.ctx=re.canvas.getContext("2d"),re.options=v,re.canvas.width=Math.floor(v.width*v.scale),re.canvas.height=Math.floor(v.height*v.scale),re.canvas.style.width=v.width+"px",re.canvas.style.height=v.height+"px",re.ctx.scale(re.options.scale,re.options.scale),re.ctx.translate(-v.x,-v.y),re.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+v.width+"x"+v.height+" at "+v.x+","+v.y+") with scale "+v.scale),re}return u.prototype.render=function(y){return de(this,void 0,void 0,function(){var v,re;return Q(this,function(Fe){switch(Fe.label){case 0:return v=Vl(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,y),[4,xu(v)];case 1:return re=Fe.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Ya(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(re,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},u}(dc),xu=function(m){return new Promise(function(u,y){var v=new Image;v.onload=function(){u(v)},v.onerror=y,v.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(m))})},Cu=function(){function m(u){var y=u.id,v=u.enabled;this.id=y,this.enabled=v,this.start=Date.now()}return m.prototype.debug=function(){for(var u=[],y=0;y<arguments.length;y++)u[y]=arguments[y];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Oe([this.id,this.getTime()+"ms"],u)):this.info.apply(this,u))},m.prototype.getTime=function(){return Date.now()-this.start},m.prototype.info=function(){for(var u=[],y=0;y<arguments.length;y++)u[y]=arguments[y];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Oe([this.id,this.getTime()+"ms"],u))},m.prototype.warn=function(){for(var u=[],y=0;y<arguments.length;y++)u[y]=arguments[y];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Oe([this.id,this.getTime()+"ms"],u)):this.info.apply(this,u))},m.prototype.error=function(){for(var u=[],y=0;y<arguments.length;y++)u[y]=arguments[y];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Oe([this.id,this.getTime()+"ms"],u)):this.info.apply(this,u))},m.instances={},m}(),Bd=function(){function m(u,y){var v;this.windowBounds=y,this.instanceName="#"+m.instanceCount++,this.logger=new Cu({id:this.instanceName,enabled:u.logging}),this.cache=(v=u.cache)!==null&&v!==void 0?v:new hA(this,u)}return m.instanceCount=1,m}(),Vd=function(m,u){return u===void 0&&(u={}),wf(m,u)};typeof window!="undefined"&&fA.setContext(window);var wf=function(m,u){return de(void 0,void 0,void 0,function(){var y,v,re,Fe,tt,xt,Bt,nr,mr,a,g,O,oe,Ie,Ve,ze,Je,ct,mt,Ot,dr,zt,dr,Wt,kr,Dr,Gt,tr,Tr,sn,un,li,Gn,Zi,ii,Ha,qa,Ea,Ma,xo;return Q(this,function(Wa){switch(Wa.label){case 0:if(!m||typeof m!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(y=m.ownerDocument,!y)throw new Error("Element is not attached to a Document");if(v=y.defaultView,!v)throw new Error("Document is not attached to a Window");return re={allowTaint:(Wt=u.allowTaint)!==null&&Wt!==void 0?Wt:!1,imageTimeout:(kr=u.imageTimeout)!==null&&kr!==void 0?kr:15e3,proxy:u.proxy,useCORS:(Dr=u.useCORS)!==null&&Dr!==void 0?Dr:!1},Fe=ge({logging:(Gt=u.logging)!==null&&Gt!==void 0?Gt:!0,cache:u.cache},re),tt={windowWidth:(tr=u.windowWidth)!==null&&tr!==void 0?tr:v.innerWidth,windowHeight:(Tr=u.windowHeight)!==null&&Tr!==void 0?Tr:v.innerHeight,scrollX:(sn=u.scrollX)!==null&&sn!==void 0?sn:v.pageXOffset,scrollY:(un=u.scrollY)!==null&&un!==void 0?un:v.pageYOffset},xt=new ie(tt.scrollX,tt.scrollY,tt.windowWidth,tt.windowHeight),Bt=new Bd(Fe,xt),nr=(li=u.foreignObjectRendering)!==null&&li!==void 0?li:!1,mr={allowTaint:(Gn=u.allowTaint)!==null&&Gn!==void 0?Gn:!1,onclone:u.onclone,ignoreElements:u.ignoreElements,inlineImages:nr,copyStyles:nr},Bt.logger.debug("Starting document clone with size "+xt.width+"x"+xt.height+" scrolled to "+-xt.left+","+-xt.top),a=new nl(Bt,m,mr),g=a.clonedReferenceElement,g?[4,a.toIFrame(y,xt)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return O=Wa.sent(),oe=aa(g)||Ia(g)?B(g.ownerDocument):W(Bt,g),Ie=oe.width,Ve=oe.height,ze=oe.left,Je=oe.top,ct=Wd(Bt,g,u.backgroundColor),mt={canvas:u.canvas,backgroundColor:ct,scale:(ii=(Zi=u.scale)!==null&&Zi!==void 0?Zi:v.devicePixelRatio)!==null&&ii!==void 0?ii:1,x:((Ha=u.x)!==null&&Ha!==void 0?Ha:0)+ze,y:((qa=u.y)!==null&&qa!==void 0?qa:0)+Je,width:(Ea=u.width)!==null&&Ea!==void 0?Ea:Math.ceil(Ie),height:(Ma=u.height)!==null&&Ma!==void 0?Ma:Math.ceil(Ve)},nr?(Bt.logger.debug("Document cloned, using foreign object rendering"),dr=new Gu(Bt,mt),[4,dr.render(g)]):[3,3];case 2:return Ot=Wa.sent(),[3,5];case 3:return Bt.logger.debug("Document cloned, element located at "+ze+","+Je+" with size "+Ie+"x"+Ve+" using computed rendering"),Bt.logger.debug("Starting DOM parsing"),zt=P(Bt,g),ct===zt.styles.backgroundColor&&(zt.styles.backgroundColor=Js.TRANSPARENT),Bt.logger.debug("Starting renderer for element at "+mt.x+","+mt.y+" with size "+mt.width+"x"+mt.height),dr=new Wu(Bt,mt),[4,dr.render(zt)];case 4:Ot=Wa.sent(),Wa.label=5;case 5:return(!((xo=u.removeContainer)!==null&&xo!==void 0)||xo)&&(nl.destroy(O)||Bt.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),Bt.logger.debug("Finished rendering"),[2,Ot]}})})},Wd=function(m,u,y){var v=u.ownerDocument,re=v.documentElement?Dl(m,getComputedStyle(v.documentElement).backgroundColor):Js.TRANSPARENT,Fe=v.body?Dl(m,getComputedStyle(v.body).backgroundColor):Js.TRANSPARENT,tt=typeof y=="string"?Dl(m,y):y===null?Js.TRANSPARENT:4294967295;return u===v.documentElement?Ro(re)?Ro(Fe)?tt:Fe:re:tt};return Vd})},44164:function(xn,Yt,x){var ge=x(97671);(function(Q,Oe){xn.exports=Oe(x(7348),x(64270))})(self,function(de,Q){return function(){var Oe={"./src/plugin/hyperlinks.js":function(f,E,h){"use strict";h.r(E);var $=h("./node_modules/core-js/modules/web.dom-collections.for-each.js"),S=h.n($),_=h("./node_modules/core-js/modules/es.string.link.js"),N=h.n(_),R=h("./src/worker.js"),I=h("./src/utils.js"),J=[],K={toContainer:R.default.prototype.toContainer,toPdf:R.default.prototype.toPdf};R.default.prototype.toContainer=function(){return K.toContainer.call(this).then(function(){if(this.opt.enableLinks){var G=this.prop.container,V=G.querySelectorAll("a"),j=(0,I.unitConvert)(G.getBoundingClientRect(),this.prop.pageSize.k);J=[],Array.prototype.forEach.call(V,function(le){for(var he=le.getClientRects(),Ne=0;Ne<he.length;Ne++){var Be=(0,I.unitConvert)(he[Ne],this.prop.pageSize.k);Be.left-=j.left,Be.top-=j.top;var je=Math.floor(Be.top/this.prop.pageSize.inner.height)+1,q=this.opt.margin[0]+Be.top%this.prop.pageSize.inner.height,ce=this.opt.margin[1]+Be.left;J.push({page:je,top:q,left:ce,clientRect:Be,link:le})}},this)}})},R.default.prototype.toPdf=function(){return K.toPdf.call(this).then(function(){if(this.opt.enableLinks){J.forEach(function(V){this.prop.pdf.setPage(V.page),this.prop.pdf.link(V.left,V.top,V.clientRect.width,V.clientRect.height,{url:V.link.href})},this);var G=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(G)}})}},"./src/plugin/jspdf-plugin.js":function(f,E,h){"use strict";h.r(E);var $=h("./node_modules/core-js/modules/es.symbol.js"),S=h.n($),_=h("./node_modules/core-js/modules/es.symbol.description.js"),N=h.n(_),R=h("./node_modules/core-js/modules/es.object.to-string.js"),I=h.n(R),J=h("./node_modules/core-js/modules/es.symbol.iterator.js"),K=h.n(J),se=h("./node_modules/core-js/modules/es.array.iterator.js"),te=h.n(se),G=h("./node_modules/core-js/modules/es.string.iterator.js"),V=h.n(G),j=h("./node_modules/core-js/modules/web.dom-collections.iterator.js"),le=h.n(j),he=h("jspdf"),Ne=h.n(he);function Be(je){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Be=function(ce){return typeof ce}:Be=function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},Be(je)}he.jsPDF.getPageSize=function(je,q,ce){if(Be(je)==="object"){var D=je;je=D.orientation,q=D.unit||q,ce=D.format||ce}q=q||"mm",ce=ce||"a4",je=(""+(je||"P")).toLowerCase();var ot=(""+ce).toLowerCase(),ke={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(q){case"pt":var Ce=1;break;case"mm":var Ce=72/25.4;break;case"cm":var Ce=72/2.54;break;case"in":var Ce=72;break;case"px":var Ce=72/96;break;case"pc":var Ce=12;break;case"em":var Ce=12;break;case"ex":var Ce=6;break;default:throw"Invalid unit: "+q}if(ke.hasOwnProperty(ot))var Qe=ke[ot][1]/Ce,ve=ke[ot][0]/Ce;else try{var Qe=ce[1],ve=ce[0]}catch(ye){throw new Error("Invalid format: "+ce)}if(je==="p"||je==="portrait"){if(je="p",ve>Qe){var Pe=ve;ve=Qe,Qe=Pe}}else if(je==="l"||je==="landscape"){if(je="l",Qe>ve){var Pe=ve;ve=Qe,Qe=Pe}}else throw"Invalid orientation: "+je;var fe={width:ve,height:Qe,unit:q,k:Ce};return fe},E.default=he.jsPDF},"./src/plugin/pagebreaks.js":function(f,E,h){"use strict";h.r(E);var $=h("./node_modules/core-js/modules/es.array.concat.js"),S=h.n($),_=h("./node_modules/core-js/modules/es.array.slice.js"),N=h.n(_),R=h("./node_modules/core-js/modules/es.array.join.js"),I=h.n(R),J=h("./node_modules/core-js/modules/web.dom-collections.for-each.js"),K=h.n(J),se=h("./node_modules/core-js/modules/es.object.keys.js"),te=h.n(se),G=h("./src/worker.js"),V=h("./src/utils.js"),j={toContainer:G.default.prototype.toContainer};G.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},G.default.prototype.toContainer=function(){return j.toContainer.call(this).then(function(){var Ne=this.prop.container,Be=this.prop.pageSize.inner.px.height,je=[].concat(this.opt.pagebreak.mode),q={avoidAll:je.indexOf("avoid-all")!==-1,css:je.indexOf("css")!==-1,legacy:je.indexOf("legacy")!==-1},ce={},D=this;["before","after","avoid"].forEach(function(Ce){var Qe=q.avoidAll&&Ce==="avoid";ce[Ce]=Qe?[]:[].concat(D.opt.pagebreak[Ce]||[]),ce[Ce].length>0&&(ce[Ce]=Array.prototype.slice.call(Ne.querySelectorAll(ce[Ce].join(", "))))});var ot=Ne.querySelectorAll(".html2pdf__page-break");ot=Array.prototype.slice.call(ot);var ke=Ne.querySelectorAll("*");Array.prototype.forEach.call(ke,function(Qe){var ve={before:!1,after:q.legacy&&ot.indexOf(Qe)!==-1,avoid:q.avoidAll};if(q.css){var Pe=window.getComputedStyle(Qe),fe=["always","page","left","right"],ye=["avoid","avoid-page"];ve={before:ve.before||fe.indexOf(Pe.breakBefore||Pe.pageBreakBefore)!==-1,after:ve.after||fe.indexOf(Pe.breakAfter||Pe.pageBreakAfter)!==-1,avoid:ve.avoid||ye.indexOf(Pe.breakInside||Pe.pageBreakInside)!==-1}}Object.keys(ve).forEach(function(Ht){ve[Ht]=ve[Ht]||ce[Ht].indexOf(Qe)!==-1});var at=Qe.getBoundingClientRect();if(ve.avoid&&!ve.before){var rt=Math.floor(at.top/Be),nt=Math.floor(at.bottom/Be),ut=Math.abs(at.bottom-at.top)/Be;nt!==rt&&ut<=1&&(ve.before=!0)}if(ve.before){var Pt=(0,V.createElement)("div",{style:{display:"block",height:Be-at.top%Be+"px"}});Qe.parentNode.insertBefore(Pt,Qe)}if(ve.after){var Pt=(0,V.createElement)("div",{style:{display:"block",height:Be-at.bottom%Be+"px"}});Qe.parentNode.insertBefore(Pt,Qe.nextSibling)}})})}},"./src/utils.js":function(f,E,h){"use strict";h.r(E),h.d(E,{objType:function(){return je},createElement:function(){return q},cloneNode:function(){return ce},unitConvert:function(){return D},toPx:function(){return ot}});var $=h("./node_modules/core-js/modules/es.number.constructor.js"),S=h.n($),_=h("./node_modules/core-js/modules/es.symbol.js"),N=h.n(_),R=h("./node_modules/core-js/modules/es.symbol.description.js"),I=h.n(R),J=h("./node_modules/core-js/modules/es.object.to-string.js"),K=h.n(J),se=h("./node_modules/core-js/modules/es.symbol.iterator.js"),te=h.n(se),G=h("./node_modules/core-js/modules/es.array.iterator.js"),V=h.n(G),j=h("./node_modules/core-js/modules/es.string.iterator.js"),le=h.n(j),he=h("./node_modules/core-js/modules/web.dom-collections.iterator.js"),Ne=h.n(he);function Be(ke){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Be=function(Qe){return typeof Qe}:Be=function(Qe){return Qe&&typeof Symbol=="function"&&Qe.constructor===Symbol&&Qe!==Symbol.prototype?"symbol":typeof Qe},Be(ke)}var je=function(Ce){var Qe=Be(Ce);return Qe==="undefined"?"undefined":Qe==="string"||Ce instanceof String?"string":Qe==="number"||Ce instanceof Number?"number":Qe==="function"||Ce instanceof Function?"function":Ce&&Ce.constructor===Array?"array":Ce&&Ce.nodeType===1?"element":Qe==="object"?"object":"unknown"},q=function(Ce,Qe){var ve=document.createElement(Ce);if(Qe.className&&(ve.className=Qe.className),Qe.innerHTML){ve.innerHTML=Qe.innerHTML;for(var Pe=ve.getElementsByTagName("script"),fe=Pe.length;fe-- >0;null)Pe[fe].parentNode.removeChild(Pe[fe])}for(var ye in Qe.style)ve.style[ye]=Qe.style[ye];return ve},ce=function ke(Ce,Qe){for(var ve=Ce.nodeType===3?document.createTextNode(Ce.nodeValue):Ce.cloneNode(!1),Pe=Ce.firstChild;Pe;Pe=Pe.nextSibling)(Qe===!0||Pe.nodeType!==1||Pe.nodeName!=="SCRIPT")&&ve.appendChild(ke(Pe,Qe));return Ce.nodeType===1&&(Ce.nodeName==="CANVAS"?(ve.width=Ce.width,ve.height=Ce.height,ve.getContext("2d").drawImage(Ce,0,0)):(Ce.nodeName==="TEXTAREA"||Ce.nodeName==="SELECT")&&(ve.value=Ce.value),ve.addEventListener("load",function(){ve.scrollTop=Ce.scrollTop,ve.scrollLeft=Ce.scrollLeft},!0)),ve},D=function(Ce,Qe){if(je(Ce)==="number")return Ce*72/96/Qe;var ve={};for(var Pe in Ce)ve[Pe]=Ce[Pe]*72/96/Qe;return ve},ot=function(Ce,Qe){return Math.floor(Ce*Qe/72*96)}},"./src/worker.js":function(f,E,h){"use strict";h.r(E);var $=h("./node_modules/core-js/modules/es.object.assign.js"),S=h.n($),_=h("./node_modules/core-js/modules/es.array.map.js"),N=h.n(_),R=h("./node_modules/core-js/modules/es.object.keys.js"),I=h.n(R),J=h("./node_modules/core-js/modules/es.array.concat.js"),K=h.n(J),se=h("./node_modules/core-js/modules/es.object.to-string.js"),te=h.n(se),G=h("./node_modules/core-js/modules/es.regexp.to-string.js"),V=h.n(G),j=h("./node_modules/core-js/modules/es.function.name.js"),le=h.n(j),he=h("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Ne=h.n(he),Be=h("jspdf"),je=h.n(Be),q=h("html2canvas"),ce=h.n(q),D=h("./src/utils.js"),ot=h("./node_modules/es6-promise/dist/es6-promise.js"),ke=h.n(ot),Ce=ke().Promise,Qe=function ve(Pe){var fe=Object.assign(ve.convert(Ce.resolve()),JSON.parse(JSON.stringify(ve.template))),ye=ve.convert(Ce.resolve(),fe);return ye=ye.setProgress(1,ve,1,[ve]),ye=ye.set(Pe),ye};Qe.prototype=Object.create(Ce.prototype),Qe.prototype.constructor=Qe,Qe.convert=function(Pe,fe){return Pe.__proto__=fe||Qe.prototype,Pe},Qe.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},Qe.prototype.from=function(Pe,fe){function ye(at){switch((0,D.objType)(at)){case"string":return"string";case"element":return at.nodeName.toLowerCase&&at.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(fe=fe||ye(Pe),fe){case"string":return this.set({src:(0,D.createElement)("div",{innerHTML:Pe})});case"element":return this.set({src:Pe});case"canvas":return this.set({canvas:Pe});case"img":return this.set({img:Pe});default:return this.error("Unknown source type.")}})},Qe.prototype.to=function(Pe){switch(Pe){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},Qe.prototype.toContainer=function(){var Pe=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(Pe).then(function(){var ye={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},at={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};ye.opacity=0;var rt=(0,D.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,D.createElement)("div",{className:"html2pdf__overlay",style:ye}),this.prop.container=(0,D.createElement)("div",{className:"html2pdf__container",style:at}),this.prop.container.appendChild(rt),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},Qe.prototype.toCanvas=function(){var Pe=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Pe).then(function(){var ye=Object.assign({},this.opt.html2canvas);return delete ye.onrendered,q(this.prop.container,ye)}).then(function(ye){var at=this.opt.html2canvas.onrendered||function(){};at(ye),this.prop.canvas=ye,document.body.removeChild(this.prop.overlay)})},Qe.prototype.toImg=function(){var Pe=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(Pe).then(function(){var ye=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=ye})},Qe.prototype.toPdf=function(){var Pe=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(Pe).then(function(){var ye=this.prop.canvas,at=this.opt,rt=ye.height,nt=Math.floor(ye.width*this.prop.pageSize.inner.ratio),ut=Math.ceil(rt/nt),Pt=this.prop.pageSize.inner.height,Ht=document.createElement("canvas"),Ut=Ht.getContext("2d");Ht.width=ye.width,Ht.height=nt,this.prop.pdf=this.prop.pdf||new Be.jsPDF(at.jsPDF);for(var cr=0;cr<ut;cr++){cr===ut-1&&rt%nt!==0&&(Ht.height=rt%nt,Pt=Ht.height*this.prop.pageSize.inner.width/Ht.width);var or=Ht.width,Cr=Ht.height;Ut.fillStyle="white",Ut.fillRect(0,0,or,Cr),Ut.drawImage(ye,0,cr*nt,or,Cr,0,0,or,Cr),cr&&this.prop.pdf.addPage();var hr=Ht.toDataURL("image/"+at.image.type,at.image.quality);this.prop.pdf.addImage(hr,at.image.type,at.margin[1],at.margin[0],this.prop.pageSize.inner.width,Pt)}})},Qe.prototype.output=function(Pe,fe,ye){return ye=ye||"pdf",ye.toLowerCase()==="img"||ye.toLowerCase()==="image"?this.outputImg(Pe,fe):this.outputPdf(Pe,fe)},Qe.prototype.outputPdf=function(Pe,fe){var ye=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(ye).then(function(){return this.prop.pdf.output(Pe,fe)})},Qe.prototype.outputImg=function(Pe,fe){var ye=[function(){return this.prop.img||this.toImg()}];return this.thenList(ye).then(function(){switch(Pe){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+Pe+'" is not supported.'}})},Qe.prototype.save=function(Pe){var fe=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(fe).set(Pe?{filename:Pe}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},Qe.prototype.set=function(Pe){if((0,D.objType)(Pe)!=="object")return this;var fe=Object.keys(Pe||{}).map(function(ye){switch(ye){case"margin":return this.setMargin.bind(this,Pe.margin);case"jsPDF":return function(){return this.opt.jsPDF=Pe.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,Pe.pageSize);default:return ye in Qe.template.prop?function(){this.prop[ye]=Pe[ye]}:function(){this.opt[ye]=Pe[ye]}}},this);return this.then(function(){return this.thenList(fe)})},Qe.prototype.get=function(Pe,fe){return this.then(function(){var at=Pe in Qe.template.prop?this.prop[Pe]:this.opt[Pe];return fe?fe(at):at})},Qe.prototype.setMargin=function(Pe){return this.then(function(){switch((0,D.objType)(Pe)){case"number":Pe=[Pe,Pe,Pe,Pe];case"array":if(Pe.length===2&&(Pe=[Pe[0],Pe[1],Pe[0],Pe[1]]),Pe.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=Pe}).then(this.setPageSize)},Qe.prototype.setPageSize=function(Pe){return this.then(function(){Pe=Pe||Be.jsPDF.getPageSize(this.opt.jsPDF),Pe.hasOwnProperty("inner")||(Pe.inner={width:Pe.width-this.opt.margin[1]-this.opt.margin[3],height:Pe.height-this.opt.margin[0]-this.opt.margin[2]},Pe.inner.px={width:(0,D.toPx)(Pe.inner.width,Pe.k),height:(0,D.toPx)(Pe.inner.height,Pe.k)},Pe.inner.ratio=Pe.inner.height/Pe.inner.width),this.prop.pageSize=Pe})},Qe.prototype.setProgress=function(Pe,fe,ye,at){return Pe!=null&&(this.progress.val=Pe),fe!=null&&(this.progress.state=fe),ye!=null&&(this.progress.n=ye),at!=null&&(this.progress.stack=at),this.progress.ratio=this.progress.val/this.progress.state,this},Qe.prototype.updateProgress=function(Pe,fe,ye,at){return this.setProgress(Pe?this.progress.val+Pe:null,fe||null,ye?this.progress.n+ye:null,at?this.progress.stack.concat(at):null)},Qe.prototype.then=function(Pe,fe){var ye=this;return this.thenCore(Pe,fe,function(rt,nt){return ye.updateProgress(null,null,1,[rt]),Ce.prototype.then.call(this,function(Pt){return ye.updateProgress(null,rt),Pt}).then(rt,nt).then(function(Pt){return ye.updateProgress(1),Pt})})},Qe.prototype.thenCore=function(Pe,fe,ye){ye=ye||Ce.prototype.then;var at=this;Pe&&(Pe=Pe.bind(at)),fe&&(fe=fe.bind(at));var rt=Ce.toString().indexOf("[native code]")!==-1&&Ce.name==="Promise",nt=rt?at:Qe.convert(Object.assign({},at),Ce.prototype),ut=ye.call(nt,Pe,fe);return Qe.convert(ut,at.__proto__)},Qe.prototype.thenExternal=function(Pe,fe){return Ce.prototype.then.call(this,Pe,fe)},Qe.prototype.thenList=function(Pe){var fe=this;return Pe.forEach(function(at){fe=fe.thenCore(at)}),fe},Qe.prototype.catch=function(ve){ve&&(ve=ve.bind(this));var Pe=Ce.prototype.catch.call(this,ve);return Qe.convert(Pe,this)},Qe.prototype.catchExternal=function(Pe){return Ce.prototype.catch.call(this,Pe)},Qe.prototype.error=function(Pe){return this.then(function(){throw new Error(Pe)})},Qe.prototype.using=Qe.prototype.set,Qe.prototype.saveAs=Qe.prototype.save,Qe.prototype.export=Qe.prototype.output,Qe.prototype.run=Qe.prototype.then,E.default=Qe},"./node_modules/core-js/internals/a-function.js":function(f){f.exports=function(E){if(typeof E!="function")throw TypeError(String(E)+" is not a function");return E}},"./node_modules/core-js/internals/a-possible-prototype.js":function(f,E,h){var $=h("./node_modules/core-js/internals/is-object.js");f.exports=function(S){if(!$(S)&&S!==null)throw TypeError("Can't set "+String(S)+" as a prototype");return S}},"./node_modules/core-js/internals/add-to-unscopables.js":function(f,E,h){var $=h("./node_modules/core-js/internals/well-known-symbol.js"),S=h("./node_modules/core-js/internals/object-create.js"),_=h("./node_modules/core-js/internals/object-define-property.js"),N=$("unscopables"),R=Array.prototype;R[N]==null&&_.f(R,N,{configurable:!0,value:S(null)}),f.exports=function(I){R[N][I]=!0}},"./node_modules/core-js/internals/an-object.js":function(f,E,h){var $=h("./node_modules/core-js/internals/is-object.js");f.exports=function(S){if(!$(S))throw TypeError(String(S)+" is not an object");return S}},"./node_modules/core-js/internals/array-for-each.js":function(f,E,h){"use strict";var $=h("./node_modules/core-js/internals/array-iteration.js").forEach,S=h("./node_modules/core-js/internals/array-method-is-strict.js"),_=S("forEach");f.exports=_?[].forEach:function(R){return $(this,R,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(f,E,h){var $=h("./node_modules/core-js/internals/to-indexed-object.js"),S=h("./node_modules/core-js/internals/to-length.js"),_=h("./node_modules/core-js/internals/to-absolute-index.js"),N=function(R){return function(I,J,K){var se=$(I),te=S(se.length),G=_(K,te),V;if(R&&J!=J){for(;te>G;)if(V=se[G++],V!=V)return!0}else for(;te>G;G++)if((R||G in se)&&se[G]===J)return R||G||0;return!R&&-1}};f.exports={includes:N(!0),indexOf:N(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(f,E,h){var $=h("./node_modules/core-js/internals/function-bind-context.js"),S=h("./node_modules/core-js/internals/indexed-object.js"),_=h("./node_modules/core-js/internals/to-object.js"),N=h("./node_modules/core-js/internals/to-length.js"),R=h("./node_modules/core-js/internals/array-species-create.js"),I=[].push,J=function(K){var se=K==1,te=K==2,G=K==3,V=K==4,j=K==6,le=K==7,he=K==5||j;return function(Ne,Be,je,q){for(var ce=_(Ne),D=S(ce),ot=$(Be,je,3),ke=N(D.length),Ce=0,Qe=q||R,ve=se?Qe(Ne,ke):te||le?Qe(Ne,0):void 0,Pe,fe;ke>Ce;Ce++)if((he||Ce in D)&&(Pe=D[Ce],fe=ot(Pe,Ce,ce),K))if(se)ve[Ce]=fe;else if(fe)switch(K){case 3:return!0;case 5:return Pe;case 6:return Ce;case 2:I.call(ve,Pe)}else switch(K){case 4:return!1;case 7:I.call(ve,Pe)}return j?-1:G||V?V:ve}};f.exports={forEach:J(0),map:J(1),filter:J(2),some:J(3),every:J(4),find:J(5),findIndex:J(6),filterReject:J(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(f,E,h){var $=h("./node_modules/core-js/internals/fails.js"),S=h("./node_modules/core-js/internals/well-known-symbol.js"),_=h("./node_modules/core-js/internals/engine-v8-version.js"),N=S("species");f.exports=function(R){return _>=51||!$(function(){var I=[],J=I.constructor={};return J[N]=function(){return{foo:1}},I[R](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(f,E,h){"use strict";var $=h("./node_modules/core-js/internals/fails.js");f.exports=function(S,_){var N=[][S];return!!N&&$(function(){N.call(null,_||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(f,E,h){var $=h("./node_modules/core-js/internals/is-object.js"),S=h("./node_modules/core-js/internals/is-array.js"),_=h("./node_modules/core-js/internals/well-known-symbol.js"),N=_("species");f.exports=function(R){var I;return S(R)&&(I=R.constructor,typeof I=="function"&&(I===Array||S(I.prototype))?I=void 0:$(I)&&(I=I[N],I===null&&(I=void 0))),I===void 0?Array:I}},"./node_modules/core-js/internals/array-species-create.js":function(f,E,h){var $=h("./node_modules/core-js/internals/array-species-constructor.js");f.exports=function(S,_){return new($(S))(_===0?0:_)}},"./node_modules/core-js/internals/classof-raw.js":function(f){var E={}.toString;f.exports=function(h){return E.call(h).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(f,E,h){var $=h("./node_modules/core-js/internals/to-string-tag-support.js"),S=h("./node_modules/core-js/internals/classof-raw.js"),_=h("./node_modules/core-js/internals/well-known-symbol.js"),N=_("toStringTag"),R=S(function(){return arguments}())=="Arguments",I=function(J,K){try{return J[K]}catch(se){}};f.exports=$?S:function(J){var K,se,te;return J===void 0?"Undefined":J===null?"Null":typeof(se=I(K=Object(J),N))=="string"?se:R?S(K):(te=S(K))=="Object"&&typeof K.callee=="function"?"Arguments":te}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(f,E,h){var $=h("./node_modules/core-js/internals/has.js"),S=h("./node_modules/core-js/internals/own-keys.js"),_=h("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),N=h("./node_modules/core-js/internals/object-define-property.js");f.exports=function(R,I){for(var J=S(I),K=N.f,se=_.f,te=0;te<J.length;te++){var G=J[te];$(R,G)||K(R,G,se(I,G))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(f,E,h){var $=h("./node_modules/core-js/internals/fails.js");f.exports=!$(function(){function S(){}return S.prototype.constructor=null,Object.getPrototypeOf(new S)!==S.prototype})},"./node_modules/core-js/internals/create-html.js":function(f,E,h){var $=h("./node_modules/core-js/internals/require-object-coercible.js"),S=h("./node_modules/core-js/internals/to-string.js"),_=/"/g;f.exports=function(N,R,I,J){var K=S($(N)),se="<"+R;return I!==""&&(se+=" "+I+'="'+S(J).replace(_,"&quot;")+'"'),se+">"+K+"</"+R+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(f,E,h){"use strict";var $=h("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,S=h("./node_modules/core-js/internals/object-create.js"),_=h("./node_modules/core-js/internals/create-property-descriptor.js"),N=h("./node_modules/core-js/internals/set-to-string-tag.js"),R=h("./node_modules/core-js/internals/iterators.js"),I=function(){return this};f.exports=function(J,K,se){var te=K+" Iterator";return J.prototype=S($,{next:_(1,se)}),N(J,te,!1,!0),R[te]=I,J}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(f,E,h){var $=h("./node_modules/core-js/internals/descriptors.js"),S=h("./node_modules/core-js/internals/object-define-property.js"),_=h("./node_modules/core-js/internals/create-property-descriptor.js");f.exports=$?function(N,R,I){return S.f(N,R,_(1,I))}:function(N,R,I){return N[R]=I,N}},"./node_modules/core-js/internals/create-property-descriptor.js":function(f){f.exports=function(E,h){return{enumerable:!(E&1),configurable:!(E&2),writable:!(E&4),value:h}}},"./node_modules/core-js/internals/create-property.js":function(f,E,h){"use strict";var $=h("./node_modules/core-js/internals/to-property-key.js"),S=h("./node_modules/core-js/internals/object-define-property.js"),_=h("./node_modules/core-js/internals/create-property-descriptor.js");f.exports=function(N,R,I){var J=$(R);J in N?S.f(N,J,_(0,I)):N[J]=I}},"./node_modules/core-js/internals/define-iterator.js":function(f,E,h){"use strict";var $=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/create-iterator-constructor.js"),_=h("./node_modules/core-js/internals/object-get-prototype-of.js"),N=h("./node_modules/core-js/internals/object-set-prototype-of.js"),R=h("./node_modules/core-js/internals/set-to-string-tag.js"),I=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),J=h("./node_modules/core-js/internals/redefine.js"),K=h("./node_modules/core-js/internals/well-known-symbol.js"),se=h("./node_modules/core-js/internals/is-pure.js"),te=h("./node_modules/core-js/internals/iterators.js"),G=h("./node_modules/core-js/internals/iterators-core.js"),V=G.IteratorPrototype,j=G.BUGGY_SAFARI_ITERATORS,le=K("iterator"),he="keys",Ne="values",Be="entries",je=function(){return this};f.exports=function(q,ce,D,ot,ke,Ce,Qe){S(D,ce,ot);var ve=function(Ut){if(Ut===ke&&rt)return rt;if(!j&&Ut in ye)return ye[Ut];switch(Ut){case he:return function(){return new D(this,Ut)};case Ne:return function(){return new D(this,Ut)};case Be:return function(){return new D(this,Ut)}}return function(){return new D(this)}},Pe=ce+" Iterator",fe=!1,ye=q.prototype,at=ye[le]||ye["@@iterator"]||ke&&ye[ke],rt=!j&&at||ve(ke),nt=ce=="Array"&&ye.entries||at,ut,Pt,Ht;if(nt&&(ut=_(nt.call(new q)),V!==Object.prototype&&ut.next&&(!se&&_(ut)!==V&&(N?N(ut,V):typeof ut[le]!="function"&&I(ut,le,je)),R(ut,Pe,!0,!0),se&&(te[Pe]=je))),ke==Ne&&at&&at.name!==Ne&&(fe=!0,rt=function(){return at.call(this)}),(!se||Qe)&&ye[le]!==rt&&I(ye,le,rt),te[ce]=rt,ke)if(Pt={values:ve(Ne),keys:Ce?rt:ve(he),entries:ve(Be)},Qe)for(Ht in Pt)(j||fe||!(Ht in ye))&&J(ye,Ht,Pt[Ht]);else $({target:ce,proto:!0,forced:j||fe},Pt);return Pt}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(f,E,h){var $=h("./node_modules/core-js/internals/path.js"),S=h("./node_modules/core-js/internals/has.js"),_=h("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),N=h("./node_modules/core-js/internals/object-define-property.js").f;f.exports=function(R){var I=$.Symbol||($.Symbol={});S(I,R)||N(I,R,{value:_.f(R)})}},"./node_modules/core-js/internals/descriptors.js":function(f,E,h){var $=h("./node_modules/core-js/internals/fails.js");f.exports=!$(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(f,E,h){var $=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/is-object.js"),_=$.document,N=S(_)&&S(_.createElement);f.exports=function(R){return N?_.createElement(R):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(f){f.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(f,E,h){var $=h("./node_modules/core-js/internals/get-built-in.js");f.exports=$("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(f,E,h){var $=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/engine-user-agent.js"),_=$.process,N=$.Deno,R=_&&_.versions||N&&N.version,I=R&&R.v8,J,K;I?(J=I.split("."),K=J[0]<4?1:J[0]+J[1]):S&&(J=S.match(/Edge\/(\d+)/),(!J||J[1]>=74)&&(J=S.match(/Chrome\/(\d+)/),J&&(K=J[1]))),f.exports=K&&+K},"./node_modules/core-js/internals/enum-bug-keys.js":function(f){f.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(f,E,h){var $=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,_=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),N=h("./node_modules/core-js/internals/redefine.js"),R=h("./node_modules/core-js/internals/set-global.js"),I=h("./node_modules/core-js/internals/copy-constructor-properties.js"),J=h("./node_modules/core-js/internals/is-forced.js");f.exports=function(K,se){var te=K.target,G=K.global,V=K.stat,j,le,he,Ne,Be,je;if(G?le=$:V?le=$[te]||R(te,{}):le=($[te]||{}).prototype,le)for(he in se){if(Be=se[he],K.noTargetGet?(je=S(le,he),Ne=je&&je.value):Ne=le[he],j=J(G?he:te+(V?".":"#")+he,K.forced),!j&&Ne!==void 0){if(typeof Be==typeof Ne)continue;I(Be,Ne)}(K.sham||Ne&&Ne.sham)&&_(Be,"sham",!0),N(le,he,Be,K)}}},"./node_modules/core-js/internals/fails.js":function(f){f.exports=function(E){try{return!!E()}catch(h){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(f,E,h){var $=h("./node_modules/core-js/internals/a-function.js");f.exports=function(S,_,N){if($(S),_===void 0)return S;switch(N){case 0:return function(){return S.call(_)};case 1:return function(R){return S.call(_,R)};case 2:return function(R,I){return S.call(_,R,I)};case 3:return function(R,I,J){return S.call(_,R,I,J)}}return function(){return S.apply(_,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(f,E,h){var $=h("./node_modules/core-js/internals/global.js"),S=function(_){return typeof _=="function"?_:void 0};f.exports=function(_,N){return arguments.length<2?S($[_]):$[_]&&$[_][N]}},"./node_modules/core-js/internals/global.js":function(f){var E=function(h){return h&&h.Math==Math&&h};f.exports=E(typeof globalThis=="object"&&globalThis)||E(typeof window=="object"&&window)||E(typeof self=="object"&&self)||E(typeof x.g=="object"&&x.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(f,E,h){var $=h("./node_modules/core-js/internals/to-object.js"),S={}.hasOwnProperty;f.exports=Object.hasOwn||function(N,R){return S.call($(N),R)}},"./node_modules/core-js/internals/hidden-keys.js":function(f){f.exports={}},"./node_modules/core-js/internals/html.js":function(f,E,h){var $=h("./node_modules/core-js/internals/get-built-in.js");f.exports=$("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(f,E,h){var $=h("./node_modules/core-js/internals/descriptors.js"),S=h("./node_modules/core-js/internals/fails.js"),_=h("./node_modules/core-js/internals/document-create-element.js");f.exports=!$&&!S(function(){return Object.defineProperty(_("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(f,E,h){var $=h("./node_modules/core-js/internals/fails.js"),S=h("./node_modules/core-js/internals/classof-raw.js"),_="".split;f.exports=$(function(){return!Object("z").propertyIsEnumerable(0)})?function(N){return S(N)=="String"?_.call(N,""):Object(N)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(f,E,h){var $=h("./node_modules/core-js/internals/is-object.js"),S=h("./node_modules/core-js/internals/object-set-prototype-of.js");f.exports=function(_,N,R){var I,J;return S&&typeof(I=N.constructor)=="function"&&I!==R&&$(J=I.prototype)&&J!==R.prototype&&S(_,J),_}},"./node_modules/core-js/internals/inspect-source.js":function(f,E,h){var $=h("./node_modules/core-js/internals/shared-store.js"),S=Function.toString;typeof $.inspectSource!="function"&&($.inspectSource=function(_){return S.call(_)}),f.exports=$.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(f,E,h){var $=h("./node_modules/core-js/internals/native-weak-map.js"),S=h("./node_modules/core-js/internals/global.js"),_=h("./node_modules/core-js/internals/is-object.js"),N=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),R=h("./node_modules/core-js/internals/has.js"),I=h("./node_modules/core-js/internals/shared-store.js"),J=h("./node_modules/core-js/internals/shared-key.js"),K=h("./node_modules/core-js/internals/hidden-keys.js"),se="Object already initialized",te=S.WeakMap,G,V,j,le=function(D){return j(D)?V(D):G(D,{})},he=function(D){return function(ot){var ke;if(!_(ot)||(ke=V(ot)).type!==D)throw TypeError("Incompatible receiver, "+D+" required");return ke}};if($||I.state){var Ne=I.state||(I.state=new te),Be=Ne.get,je=Ne.has,q=Ne.set;G=function(D,ot){if(je.call(Ne,D))throw new TypeError(se);return ot.facade=D,q.call(Ne,D,ot),ot},V=function(D){return Be.call(Ne,D)||{}},j=function(D){return je.call(Ne,D)}}else{var ce=J("state");K[ce]=!0,G=function(D,ot){if(R(D,ce))throw new TypeError(se);return ot.facade=D,N(D,ce,ot),ot},V=function(D){return R(D,ce)?D[ce]:{}},j=function(D){return R(D,ce)}}f.exports={set:G,get:V,has:j,enforce:le,getterFor:he}},"./node_modules/core-js/internals/is-array.js":function(f,E,h){var $=h("./node_modules/core-js/internals/classof-raw.js");f.exports=Array.isArray||function(_){return $(_)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(f,E,h){var $=h("./node_modules/core-js/internals/fails.js"),S=/#|\.prototype\./,_=function(K,se){var te=R[N(K)];return te==J?!0:te==I?!1:typeof se=="function"?$(se):!!se},N=_.normalize=function(K){return String(K).replace(S,".").toLowerCase()},R=_.data={},I=_.NATIVE="N",J=_.POLYFILL="P";f.exports=_},"./node_modules/core-js/internals/is-object.js":function(f){f.exports=function(E){return typeof E=="object"?E!==null:typeof E=="function"}},"./node_modules/core-js/internals/is-pure.js":function(f){f.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(f,E,h){var $=h("./node_modules/core-js/internals/get-built-in.js"),S=h("./node_modules/core-js/internals/use-symbol-as-uid.js");f.exports=S?function(_){return typeof _=="symbol"}:function(_){var N=$("Symbol");return typeof N=="function"&&Object(_)instanceof N}},"./node_modules/core-js/internals/iterators-core.js":function(f,E,h){"use strict";var $=h("./node_modules/core-js/internals/fails.js"),S=h("./node_modules/core-js/internals/object-get-prototype-of.js"),_=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),N=h("./node_modules/core-js/internals/has.js"),R=h("./node_modules/core-js/internals/well-known-symbol.js"),I=h("./node_modules/core-js/internals/is-pure.js"),J=R("iterator"),K=!1,se=function(){return this},te,G,V;[].keys&&(V=[].keys(),"next"in V?(G=S(S(V)),G!==Object.prototype&&(te=G)):K=!0);var j=te==null||$(function(){var le={};return te[J].call(le)!==le});j&&(te={}),(!I||j)&&!N(te,J)&&_(te,J,se),f.exports={IteratorPrototype:te,BUGGY_SAFARI_ITERATORS:K}},"./node_modules/core-js/internals/iterators.js":function(f){f.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(f,E,h){var $=h("./node_modules/core-js/internals/engine-v8-version.js"),S=h("./node_modules/core-js/internals/fails.js");f.exports=!!Object.getOwnPropertySymbols&&!S(function(){var _=Symbol();return!String(_)||!(Object(_)instanceof Symbol)||!Symbol.sham&&$&&$<41})},"./node_modules/core-js/internals/native-weak-map.js":function(f,E,h){var $=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/inspect-source.js"),_=$.WeakMap;f.exports=typeof _=="function"&&/native code/.test(S(_))},"./node_modules/core-js/internals/object-assign.js":function(f,E,h){"use strict";var $=h("./node_modules/core-js/internals/descriptors.js"),S=h("./node_modules/core-js/internals/fails.js"),_=h("./node_modules/core-js/internals/object-keys.js"),N=h("./node_modules/core-js/internals/object-get-own-property-symbols.js"),R=h("./node_modules/core-js/internals/object-property-is-enumerable.js"),I=h("./node_modules/core-js/internals/to-object.js"),J=h("./node_modules/core-js/internals/indexed-object.js"),K=Object.assign,se=Object.defineProperty;f.exports=!K||S(function(){if($&&K({b:1},K(se({},"a",{enumerable:!0,get:function(){se(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var te={},G={},V=Symbol(),j="abcdefghijklmnopqrst";return te[V]=7,j.split("").forEach(function(le){G[le]=le}),K({},te)[V]!=7||_(K({},G)).join("")!=j})?function(G,V){for(var j=I(G),le=arguments.length,he=1,Ne=N.f,Be=R.f;le>he;)for(var je=J(arguments[he++]),q=Ne?_(je).concat(Ne(je)):_(je),ce=q.length,D=0,ot;ce>D;)ot=q[D++],(!$||Be.call(je,ot))&&(j[ot]=je[ot]);return j}:K},"./node_modules/core-js/internals/object-create.js":function(f,E,h){var $=h("./node_modules/core-js/internals/an-object.js"),S=h("./node_modules/core-js/internals/object-define-properties.js"),_=h("./node_modules/core-js/internals/enum-bug-keys.js"),N=h("./node_modules/core-js/internals/hidden-keys.js"),R=h("./node_modules/core-js/internals/html.js"),I=h("./node_modules/core-js/internals/document-create-element.js"),J=h("./node_modules/core-js/internals/shared-key.js"),K=">",se="<",te="prototype",G="script",V=J("IE_PROTO"),j=function(){},le=function(q){return se+G+K+q+se+"/"+G+K},he=function(q){q.write(le("")),q.close();var ce=q.parentWindow.Object;return q=null,ce},Ne=function(){var q=I("iframe"),ce="java"+G+":",D;if(q.style)return q.style.display="none",R.appendChild(q),q.src=String(ce),D=q.contentWindow.document,D.open(),D.write(le("document.F=Object")),D.close(),D.F},Be,je=function(){try{Be=new ActiveXObject("htmlfile")}catch(ce){}je=document.domain&&Be?he(Be):Ne()||he(Be);for(var q=_.length;q--;)delete je[te][_[q]];return je()};N[V]=!0,f.exports=Object.create||function(ce,D){var ot;return ce!==null?(j[te]=$(ce),ot=new j,j[te]=null,ot[V]=ce):ot=je(),D===void 0?ot:S(ot,D)}},"./node_modules/core-js/internals/object-define-properties.js":function(f,E,h){var $=h("./node_modules/core-js/internals/descriptors.js"),S=h("./node_modules/core-js/internals/object-define-property.js"),_=h("./node_modules/core-js/internals/an-object.js"),N=h("./node_modules/core-js/internals/object-keys.js");f.exports=$?Object.defineProperties:function(I,J){_(I);for(var K=N(J),se=K.length,te=0,G;se>te;)S.f(I,G=K[te++],J[G]);return I}},"./node_modules/core-js/internals/object-define-property.js":function(f,E,h){var $=h("./node_modules/core-js/internals/descriptors.js"),S=h("./node_modules/core-js/internals/ie8-dom-define.js"),_=h("./node_modules/core-js/internals/an-object.js"),N=h("./node_modules/core-js/internals/to-property-key.js"),R=Object.defineProperty;E.f=$?R:function(J,K,se){if(_(J),K=N(K),_(se),S)try{return R(J,K,se)}catch(te){}if("get"in se||"set"in se)throw TypeError("Accessors not supported");return"value"in se&&(J[K]=se.value),J}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(f,E,h){var $=h("./node_modules/core-js/internals/descriptors.js"),S=h("./node_modules/core-js/internals/object-property-is-enumerable.js"),_=h("./node_modules/core-js/internals/create-property-descriptor.js"),N=h("./node_modules/core-js/internals/to-indexed-object.js"),R=h("./node_modules/core-js/internals/to-property-key.js"),I=h("./node_modules/core-js/internals/has.js"),J=h("./node_modules/core-js/internals/ie8-dom-define.js"),K=Object.getOwnPropertyDescriptor;E.f=$?K:function(te,G){if(te=N(te),G=R(G),J)try{return K(te,G)}catch(V){}if(I(te,G))return _(!S.f.call(te,G),te[G])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(f,E,h){var $=h("./node_modules/core-js/internals/to-indexed-object.js"),S=h("./node_modules/core-js/internals/object-get-own-property-names.js").f,_={}.toString,N=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],R=function(I){try{return S(I)}catch(J){return N.slice()}};f.exports.f=function(J){return N&&_.call(J)=="[object Window]"?R(J):S($(J))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(f,E,h){var $=h("./node_modules/core-js/internals/object-keys-internal.js"),S=h("./node_modules/core-js/internals/enum-bug-keys.js"),_=S.concat("length","prototype");E.f=Object.getOwnPropertyNames||function(R){return $(R,_)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(f,E){E.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(f,E,h){var $=h("./node_modules/core-js/internals/has.js"),S=h("./node_modules/core-js/internals/to-object.js"),_=h("./node_modules/core-js/internals/shared-key.js"),N=h("./node_modules/core-js/internals/correct-prototype-getter.js"),R=_("IE_PROTO"),I=Object.prototype;f.exports=N?Object.getPrototypeOf:function(J){return J=S(J),$(J,R)?J[R]:typeof J.constructor=="function"&&J instanceof J.constructor?J.constructor.prototype:J instanceof Object?I:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(f,E,h){var $=h("./node_modules/core-js/internals/has.js"),S=h("./node_modules/core-js/internals/to-indexed-object.js"),_=h("./node_modules/core-js/internals/array-includes.js").indexOf,N=h("./node_modules/core-js/internals/hidden-keys.js");f.exports=function(R,I){var J=S(R),K=0,se=[],te;for(te in J)!$(N,te)&&$(J,te)&&se.push(te);for(;I.length>K;)$(J,te=I[K++])&&(~_(se,te)||se.push(te));return se}},"./node_modules/core-js/internals/object-keys.js":function(f,E,h){var $=h("./node_modules/core-js/internals/object-keys-internal.js"),S=h("./node_modules/core-js/internals/enum-bug-keys.js");f.exports=Object.keys||function(N){return $(N,S)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(f,E){"use strict";var h={}.propertyIsEnumerable,$=Object.getOwnPropertyDescriptor,S=$&&!h.call({1:2},1);E.f=S?function(N){var R=$(this,N);return!!R&&R.enumerable}:h},"./node_modules/core-js/internals/object-set-prototype-of.js":function(f,E,h){var $=h("./node_modules/core-js/internals/an-object.js"),S=h("./node_modules/core-js/internals/a-possible-prototype.js");f.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var _=!1,N={},R;try{R=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,R.call(N,[]),_=N instanceof Array}catch(I){}return function(J,K){return $(J),S(K),_?R.call(J,K):J.__proto__=K,J}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(f,E,h){"use strict";var $=h("./node_modules/core-js/internals/to-string-tag-support.js"),S=h("./node_modules/core-js/internals/classof.js");f.exports=$?{}.toString:function(){return"[object "+S(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(f,E,h){var $=h("./node_modules/core-js/internals/is-object.js");f.exports=function(S,_){var N,R;if(_==="string"&&typeof(N=S.toString)=="function"&&!$(R=N.call(S))||typeof(N=S.valueOf)=="function"&&!$(R=N.call(S))||_!=="string"&&typeof(N=S.toString)=="function"&&!$(R=N.call(S)))return R;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(f,E,h){var $=h("./node_modules/core-js/internals/get-built-in.js"),S=h("./node_modules/core-js/internals/object-get-own-property-names.js"),_=h("./node_modules/core-js/internals/object-get-own-property-symbols.js"),N=h("./node_modules/core-js/internals/an-object.js");f.exports=$("Reflect","ownKeys")||function(I){var J=S.f(N(I)),K=_.f;return K?J.concat(K(I)):J}},"./node_modules/core-js/internals/path.js":function(f,E,h){var $=h("./node_modules/core-js/internals/global.js");f.exports=$},"./node_modules/core-js/internals/redefine.js":function(f,E,h){var $=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),_=h("./node_modules/core-js/internals/has.js"),N=h("./node_modules/core-js/internals/set-global.js"),R=h("./node_modules/core-js/internals/inspect-source.js"),I=h("./node_modules/core-js/internals/internal-state.js"),J=I.get,K=I.enforce,se=String(String).split("String");(f.exports=function(te,G,V,j){var le=j?!!j.unsafe:!1,he=j?!!j.enumerable:!1,Ne=j?!!j.noTargetGet:!1,Be;if(typeof V=="function"&&(typeof G=="string"&&!_(V,"name")&&S(V,"name",G),Be=K(V),Be.source||(Be.source=se.join(typeof G=="string"?G:""))),te===$){he?te[G]=V:N(G,V);return}else le?!Ne&&te[G]&&(he=!0):delete te[G];he?te[G]=V:S(te,G,V)})(Function.prototype,"toString",function(){return typeof this=="function"&&J(this).source||R(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(f,E,h){"use strict";var $=h("./node_modules/core-js/internals/an-object.js");f.exports=function(){var S=$(this),_="";return S.global&&(_+="g"),S.ignoreCase&&(_+="i"),S.multiline&&(_+="m"),S.dotAll&&(_+="s"),S.unicode&&(_+="u"),S.sticky&&(_+="y"),_}},"./node_modules/core-js/internals/require-object-coercible.js":function(f){f.exports=function(E){if(E==null)throw TypeError("Can't call method on "+E);return E}},"./node_modules/core-js/internals/set-global.js":function(f,E,h){var $=h("./node_modules/core-js/internals/global.js");f.exports=function(S,_){try{Object.defineProperty($,S,{value:_,configurable:!0,writable:!0})}catch(N){$[S]=_}return _}},"./node_modules/core-js/internals/set-to-string-tag.js":function(f,E,h){var $=h("./node_modules/core-js/internals/object-define-property.js").f,S=h("./node_modules/core-js/internals/has.js"),_=h("./node_modules/core-js/internals/well-known-symbol.js"),N=_("toStringTag");f.exports=function(R,I,J){R&&!S(R=J?R:R.prototype,N)&&$(R,N,{configurable:!0,value:I})}},"./node_modules/core-js/internals/shared-key.js":function(f,E,h){var $=h("./node_modules/core-js/internals/shared.js"),S=h("./node_modules/core-js/internals/uid.js"),_=$("keys");f.exports=function(N){return _[N]||(_[N]=S(N))}},"./node_modules/core-js/internals/shared-store.js":function(f,E,h){var $=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/set-global.js"),_="__core-js_shared__",N=$[_]||S(_,{});f.exports=N},"./node_modules/core-js/internals/shared.js":function(f,E,h){var $=h("./node_modules/core-js/internals/is-pure.js"),S=h("./node_modules/core-js/internals/shared-store.js");(f.exports=function(_,N){return S[_]||(S[_]=N!==void 0?N:{})})("versions",[]).push({version:"3.16.0",mode:$?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(f,E,h){var $=h("./node_modules/core-js/internals/fails.js");f.exports=function(S){return $(function(){var _=""[S]('"');return _!==_.toLowerCase()||_.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(f,E,h){var $=h("./node_modules/core-js/internals/to-integer.js"),S=h("./node_modules/core-js/internals/to-string.js"),_=h("./node_modules/core-js/internals/require-object-coercible.js"),N=function(R){return function(I,J){var K=S(_(I)),se=$(J),te=K.length,G,V;return se<0||se>=te?R?"":void 0:(G=K.charCodeAt(se),G<55296||G>56319||se+1===te||(V=K.charCodeAt(se+1))<56320||V>57343?R?K.charAt(se):G:R?K.slice(se,se+2):(G-55296<<10)+(V-56320)+65536)}};f.exports={codeAt:N(!1),charAt:N(!0)}},"./node_modules/core-js/internals/string-trim.js":function(f,E,h){var $=h("./node_modules/core-js/internals/require-object-coercible.js"),S=h("./node_modules/core-js/internals/to-string.js"),_=h("./node_modules/core-js/internals/whitespaces.js"),N="["+_+"]",R=RegExp("^"+N+N+"*"),I=RegExp(N+N+"*$"),J=function(K){return function(se){var te=S($(se));return K&1&&(te=te.replace(R,"")),K&2&&(te=te.replace(I,"")),te}};f.exports={start:J(1),end:J(2),trim:J(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(f,E,h){var $=h("./node_modules/core-js/internals/to-integer.js"),S=Math.max,_=Math.min;f.exports=function(N,R){var I=$(N);return I<0?S(I+R,0):_(I,R)}},"./node_modules/core-js/internals/to-indexed-object.js":function(f,E,h){var $=h("./node_modules/core-js/internals/indexed-object.js"),S=h("./node_modules/core-js/internals/require-object-coercible.js");f.exports=function(_){return $(S(_))}},"./node_modules/core-js/internals/to-integer.js":function(f){var E=Math.ceil,h=Math.floor;f.exports=function($){return isNaN($=+$)?0:($>0?h:E)($)}},"./node_modules/core-js/internals/to-length.js":function(f,E,h){var $=h("./node_modules/core-js/internals/to-integer.js"),S=Math.min;f.exports=function(_){return _>0?S($(_),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(f,E,h){var $=h("./node_modules/core-js/internals/require-object-coercible.js");f.exports=function(S){return Object($(S))}},"./node_modules/core-js/internals/to-primitive.js":function(f,E,h){var $=h("./node_modules/core-js/internals/is-object.js"),S=h("./node_modules/core-js/internals/is-symbol.js"),_=h("./node_modules/core-js/internals/ordinary-to-primitive.js"),N=h("./node_modules/core-js/internals/well-known-symbol.js"),R=N("toPrimitive");f.exports=function(I,J){if(!$(I)||S(I))return I;var K=I[R],se;if(K!==void 0){if(J===void 0&&(J="default"),se=K.call(I,J),!$(se)||S(se))return se;throw TypeError("Can't convert object to primitive value")}return J===void 0&&(J="number"),_(I,J)}},"./node_modules/core-js/internals/to-property-key.js":function(f,E,h){var $=h("./node_modules/core-js/internals/to-primitive.js"),S=h("./node_modules/core-js/internals/is-symbol.js");f.exports=function(_){var N=$(_,"string");return S(N)?N:String(N)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(f,E,h){var $=h("./node_modules/core-js/internals/well-known-symbol.js"),S=$("toStringTag"),_={};_[S]="z",f.exports=String(_)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(f,E,h){var $=h("./node_modules/core-js/internals/is-symbol.js");f.exports=function(S){if($(S))throw TypeError("Cannot convert a Symbol value to a string");return String(S)}},"./node_modules/core-js/internals/uid.js":function(f){var E=0,h=Math.random();f.exports=function($){return"Symbol("+String($===void 0?"":$)+")_"+(++E+h).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(f,E,h){var $=h("./node_modules/core-js/internals/native-symbol.js");f.exports=$&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(f,E,h){var $=h("./node_modules/core-js/internals/well-known-symbol.js");E.f=$},"./node_modules/core-js/internals/well-known-symbol.js":function(f,E,h){var $=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/shared.js"),_=h("./node_modules/core-js/internals/has.js"),N=h("./node_modules/core-js/internals/uid.js"),R=h("./node_modules/core-js/internals/native-symbol.js"),I=h("./node_modules/core-js/internals/use-symbol-as-uid.js"),J=S("wks"),K=$.Symbol,se=I?K:K&&K.withoutSetter||N;f.exports=function(te){return(!_(J,te)||!(R||typeof J[te]=="string"))&&(R&&_(K,te)?J[te]=K[te]:J[te]=se("Symbol."+te)),J[te]}},"./node_modules/core-js/internals/whitespaces.js":function(f){f.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},"./node_modules/core-js/modules/es.array.concat.js":function(f,E,h){"use strict";var $=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/fails.js"),_=h("./node_modules/core-js/internals/is-array.js"),N=h("./node_modules/core-js/internals/is-object.js"),R=h("./node_modules/core-js/internals/to-object.js"),I=h("./node_modules/core-js/internals/to-length.js"),J=h("./node_modules/core-js/internals/create-property.js"),K=h("./node_modules/core-js/internals/array-species-create.js"),se=h("./node_modules/core-js/internals/array-method-has-species-support.js"),te=h("./node_modules/core-js/internals/well-known-symbol.js"),G=h("./node_modules/core-js/internals/engine-v8-version.js"),V=te("isConcatSpreadable"),j=9007199254740991,le="Maximum allowed index exceeded",he=G>=51||!S(function(){var q=[];return q[V]=!1,q.concat()[0]!==q}),Ne=se("concat"),Be=function(q){if(!N(q))return!1;var ce=q[V];return ce!==void 0?!!ce:_(q)},je=!he||!Ne;$({target:"Array",proto:!0,forced:je},{concat:function(ce){var D=R(this),ot=K(D,0),ke=0,Ce,Qe,ve,Pe,fe;for(Ce=-1,ve=arguments.length;Ce<ve;Ce++)if(fe=Ce===-1?D:arguments[Ce],Be(fe)){if(Pe=I(fe.length),ke+Pe>j)throw TypeError(le);for(Qe=0;Qe<Pe;Qe++,ke++)Qe in fe&&J(ot,ke,fe[Qe])}else{if(ke>=j)throw TypeError(le);J(ot,ke++,fe)}return ot.length=ke,ot}})},"./node_modules/core-js/modules/es.array.iterator.js":function(f,E,h){"use strict";var $=h("./node_modules/core-js/internals/to-indexed-object.js"),S=h("./node_modules/core-js/internals/add-to-unscopables.js"),_=h("./node_modules/core-js/internals/iterators.js"),N=h("./node_modules/core-js/internals/internal-state.js"),R=h("./node_modules/core-js/internals/define-iterator.js"),I="Array Iterator",J=N.set,K=N.getterFor(I);f.exports=R(Array,"Array",function(se,te){J(this,{type:I,target:$(se),index:0,kind:te})},function(){var se=K(this),te=se.target,G=se.kind,V=se.index++;return!te||V>=te.length?(se.target=void 0,{value:void 0,done:!0}):G=="keys"?{value:V,done:!1}:G=="values"?{value:te[V],done:!1}:{value:[V,te[V]],done:!1}},"values"),_.Arguments=_.Array,S("keys"),S("values"),S("entries")},"./node_modules/core-js/modules/es.array.join.js":function(f,E,h){"use strict";var $=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/indexed-object.js"),_=h("./node_modules/core-js/internals/to-indexed-object.js"),N=h("./node_modules/core-js/internals/array-method-is-strict.js"),R=[].join,I=S!=Object,J=N("join",",");$({target:"Array",proto:!0,forced:I||!J},{join:function(se){return R.call(_(this),se===void 0?",":se)}})},"./node_modules/core-js/modules/es.array.map.js":function(f,E,h){"use strict";var $=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/array-iteration.js").map,_=h("./node_modules/core-js/internals/array-method-has-species-support.js"),N=_("map");$({target:"Array",proto:!0,forced:!N},{map:function(I){return S(this,I,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(f,E,h){"use strict";var $=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/is-object.js"),_=h("./node_modules/core-js/internals/is-array.js"),N=h("./node_modules/core-js/internals/to-absolute-index.js"),R=h("./node_modules/core-js/internals/to-length.js"),I=h("./node_modules/core-js/internals/to-indexed-object.js"),J=h("./node_modules/core-js/internals/create-property.js"),K=h("./node_modules/core-js/internals/well-known-symbol.js"),se=h("./node_modules/core-js/internals/array-method-has-species-support.js"),te=se("slice"),G=K("species"),V=[].slice,j=Math.max;$({target:"Array",proto:!0,forced:!te},{slice:function(he,Ne){var Be=I(this),je=R(Be.length),q=N(he,je),ce=N(Ne===void 0?je:Ne,je),D,ot,ke;if(_(Be)&&(D=Be.constructor,typeof D=="function"&&(D===Array||_(D.prototype))?D=void 0:S(D)&&(D=D[G],D===null&&(D=void 0)),D===Array||D===void 0))return V.call(Be,q,ce);for(ot=new(D===void 0?Array:D)(j(ce-q,0)),ke=0;q<ce;q++,ke++)q in Be&&J(ot,ke,Be[q]);return ot.length=ke,ot}})},"./node_modules/core-js/modules/es.function.name.js":function(f,E,h){var $=h("./node_modules/core-js/internals/descriptors.js"),S=h("./node_modules/core-js/internals/object-define-property.js").f,_=Function.prototype,N=_.toString,R=/^\s*function ([^ (]*)/,I="name";$&&!(I in _)&&S(_,I,{configurable:!0,get:function(){try{return N.call(this).match(R)[1]}catch(J){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(f,E,h){"use strict";var $=h("./node_modules/core-js/internals/descriptors.js"),S=h("./node_modules/core-js/internals/global.js"),_=h("./node_modules/core-js/internals/is-forced.js"),N=h("./node_modules/core-js/internals/redefine.js"),R=h("./node_modules/core-js/internals/has.js"),I=h("./node_modules/core-js/internals/classof-raw.js"),J=h("./node_modules/core-js/internals/inherit-if-required.js"),K=h("./node_modules/core-js/internals/is-symbol.js"),se=h("./node_modules/core-js/internals/to-primitive.js"),te=h("./node_modules/core-js/internals/fails.js"),G=h("./node_modules/core-js/internals/object-create.js"),V=h("./node_modules/core-js/internals/object-get-own-property-names.js").f,j=h("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,le=h("./node_modules/core-js/internals/object-define-property.js").f,he=h("./node_modules/core-js/internals/string-trim.js").trim,Ne="Number",Be=S[Ne],je=Be.prototype,q=I(G(je))==Ne,ce=function(Qe){if(K(Qe))throw TypeError("Cannot convert a Symbol value to a number");var ve=se(Qe,"number"),Pe,fe,ye,at,rt,nt,ut,Pt;if(typeof ve=="string"&&ve.length>2){if(ve=he(ve),Pe=ve.charCodeAt(0),Pe===43||Pe===45){if(fe=ve.charCodeAt(2),fe===88||fe===120)return NaN}else if(Pe===48){switch(ve.charCodeAt(1)){case 66:case 98:ye=2,at=49;break;case 79:case 111:ye=8,at=55;break;default:return+ve}for(rt=ve.slice(2),nt=rt.length,ut=0;ut<nt;ut++)if(Pt=rt.charCodeAt(ut),Pt<48||Pt>at)return NaN;return parseInt(rt,ye)}}return+ve};if(_(Ne,!Be(" 0o1")||!Be("0b1")||Be("+0x1"))){for(var D=function(ve){var Pe=arguments.length<1?0:ve,fe=this;return fe instanceof D&&(q?te(function(){je.valueOf.call(fe)}):I(fe)!=Ne)?J(new Be(ce(Pe)),fe,D):ce(Pe)},ot=$?V(Be):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),ke=0,Ce;ot.length>ke;ke++)R(Be,Ce=ot[ke])&&!R(D,Ce)&&le(D,Ce,j(Be,Ce));D.prototype=je,je.constructor=D,N(S,Ne,D)}},"./node_modules/core-js/modules/es.object.assign.js":function(f,E,h){var $=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/object-assign.js");$({target:"Object",stat:!0,forced:Object.assign!==S},{assign:S})},"./node_modules/core-js/modules/es.object.keys.js":function(f,E,h){var $=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/to-object.js"),_=h("./node_modules/core-js/internals/object-keys.js"),N=h("./node_modules/core-js/internals/fails.js"),R=N(function(){_(1)});$({target:"Object",stat:!0,forced:R},{keys:function(J){return _(S(J))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(f,E,h){var $=h("./node_modules/core-js/internals/to-string-tag-support.js"),S=h("./node_modules/core-js/internals/redefine.js"),_=h("./node_modules/core-js/internals/object-to-string.js");$||S(Object.prototype,"toString",_,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(f,E,h){"use strict";var $=h("./node_modules/core-js/internals/redefine.js"),S=h("./node_modules/core-js/internals/an-object.js"),_=h("./node_modules/core-js/internals/to-string.js"),N=h("./node_modules/core-js/internals/fails.js"),R=h("./node_modules/core-js/internals/regexp-flags.js"),I="toString",J=RegExp.prototype,K=J[I],se=N(function(){return K.call({source:"a",flags:"b"})!="/a/b"}),te=K.name!=I;(se||te)&&$(RegExp.prototype,I,function(){var V=S(this),j=_(V.source),le=V.flags,he=_(le===void 0&&V instanceof RegExp&&!("flags"in J)?R.call(V):le);return"/"+j+"/"+he},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(f,E,h){"use strict";var $=h("./node_modules/core-js/internals/string-multibyte.js").charAt,S=h("./node_modules/core-js/internals/to-string.js"),_=h("./node_modules/core-js/internals/internal-state.js"),N=h("./node_modules/core-js/internals/define-iterator.js"),R="String Iterator",I=_.set,J=_.getterFor(R);N(String,"String",function(K){I(this,{type:R,string:S(K),index:0})},function(){var se=J(this),te=se.string,G=se.index,V;return G>=te.length?{value:void 0,done:!0}:(V=$(te,G),se.index+=V.length,{value:V,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(f,E,h){"use strict";var $=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/create-html.js"),_=h("./node_modules/core-js/internals/string-html-forced.js");$({target:"String",proto:!0,forced:_("link")},{link:function(R){return S(this,"a","href",R)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(f,E,h){"use strict";var $=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/descriptors.js"),_=h("./node_modules/core-js/internals/global.js"),N=h("./node_modules/core-js/internals/has.js"),R=h("./node_modules/core-js/internals/is-object.js"),I=h("./node_modules/core-js/internals/object-define-property.js").f,J=h("./node_modules/core-js/internals/copy-constructor-properties.js"),K=_.Symbol;if(S&&typeof K=="function"&&(!("description"in K.prototype)||K().description!==void 0)){var se={},te=function(){var Ne=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),Be=this instanceof te?new K(Ne):Ne===void 0?K():K(Ne);return Ne===""&&(se[Be]=!0),Be};J(te,K);var G=te.prototype=K.prototype;G.constructor=te;var V=G.toString,j=String(K("test"))=="Symbol(test)",le=/^Symbol\((.*)\)[^)]+$/;I(G,"description",{configurable:!0,get:function(){var Ne=R(this)?this.valueOf():this,Be=V.call(Ne);if(N(se,Ne))return"";var je=j?Be.slice(7,-1):Be.replace(le,"$1");return je===""?void 0:je}}),$({global:!0,forced:!0},{Symbol:te})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(f,E,h){var $=h("./node_modules/core-js/internals/define-well-known-symbol.js");$("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(f,E,h){"use strict";var $=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/global.js"),_=h("./node_modules/core-js/internals/get-built-in.js"),N=h("./node_modules/core-js/internals/is-pure.js"),R=h("./node_modules/core-js/internals/descriptors.js"),I=h("./node_modules/core-js/internals/native-symbol.js"),J=h("./node_modules/core-js/internals/fails.js"),K=h("./node_modules/core-js/internals/has.js"),se=h("./node_modules/core-js/internals/is-array.js"),te=h("./node_modules/core-js/internals/is-object.js"),G=h("./node_modules/core-js/internals/is-symbol.js"),V=h("./node_modules/core-js/internals/an-object.js"),j=h("./node_modules/core-js/internals/to-object.js"),le=h("./node_modules/core-js/internals/to-indexed-object.js"),he=h("./node_modules/core-js/internals/to-property-key.js"),Ne=h("./node_modules/core-js/internals/to-string.js"),Be=h("./node_modules/core-js/internals/create-property-descriptor.js"),je=h("./node_modules/core-js/internals/object-create.js"),q=h("./node_modules/core-js/internals/object-keys.js"),ce=h("./node_modules/core-js/internals/object-get-own-property-names.js"),D=h("./node_modules/core-js/internals/object-get-own-property-names-external.js"),ot=h("./node_modules/core-js/internals/object-get-own-property-symbols.js"),ke=h("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),Ce=h("./node_modules/core-js/internals/object-define-property.js"),Qe=h("./node_modules/core-js/internals/object-property-is-enumerable.js"),ve=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),Pe=h("./node_modules/core-js/internals/redefine.js"),fe=h("./node_modules/core-js/internals/shared.js"),ye=h("./node_modules/core-js/internals/shared-key.js"),at=h("./node_modules/core-js/internals/hidden-keys.js"),rt=h("./node_modules/core-js/internals/uid.js"),nt=h("./node_modules/core-js/internals/well-known-symbol.js"),ut=h("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Pt=h("./node_modules/core-js/internals/define-well-known-symbol.js"),Ht=h("./node_modules/core-js/internals/set-to-string-tag.js"),Ut=h("./node_modules/core-js/internals/internal-state.js"),cr=h("./node_modules/core-js/internals/array-iteration.js").forEach,or=ye("hidden"),Cr="Symbol",hr="prototype",L=nt("toPrimitive"),it=Ut.set,k=Ut.getterFor(Cr),p=Object[hr],d=S.Symbol,w=_("JSON","stringify"),Y=ke.f,Ee=Ce.f,H=D.f,ne=Qe.f,Ge=fe("symbols"),xe=fe("op-symbols"),we=fe("string-to-symbol-registry"),qe=fe("symbol-to-string-registry"),Et=fe("wks"),pe=S.QObject,dt=!pe||!pe[hr]||!pe[hr].findChild,At=R&&J(function(){return je(Ee({},"a",{get:function(){return Ee(this,"a",{value:7}).a}})).a!=7})?function(Rr,sr,lr){var $r=Y(p,sr);$r&&delete p[sr],Ee(Rr,sr,lr),$r&&Rr!==p&&Ee(p,sr,$r)}:Ee,Me=function(Rr,sr){var lr=Ge[Rr]=je(d[hr]);return it(lr,{type:Cr,tag:Rr,description:sr}),R||(lr.description=sr),lr},De=function(sr,lr,$r){sr===p&&De(xe,lr,$r),V(sr);var ln=he(lr);return V($r),K(Ge,ln)?($r.enumerable?(K(sr,or)&&sr[or][ln]&&(sr[or][ln]=!1),$r=je($r,{enumerable:Be(0,!1)})):(K(sr,or)||Ee(sr,or,Be(1,{})),sr[or][ln]=!0),At(sr,ln,$r)):Ee(sr,ln,$r)},gt=function(sr,lr){V(sr);var $r=le(lr),ln=q($r).concat(Pr($r));return cr(ln,function(En){(!R||Tt.call($r,En))&&De(sr,En,$r[En])}),sr},jt=function(sr,lr){return lr===void 0?je(sr):gt(je(sr),lr)},Tt=function(sr){var lr=he(sr),$r=ne.call(this,lr);return this===p&&K(Ge,lr)&&!K(xe,lr)?!1:$r||!K(this,lr)||!K(Ge,lr)||K(this,or)&&this[or][lr]?$r:!0},ir=function(sr,lr){var $r=le(sr),ln=he(lr);if(!($r===p&&K(Ge,ln)&&!K(xe,ln))){var En=Y($r,ln);return En&&K(Ge,ln)&&!(K($r,or)&&$r[or][ln])&&(En.enumerable=!0),En}},Fr=function(sr){var lr=H(le(sr)),$r=[];return cr(lr,function(ln){!K(Ge,ln)&&!K(at,ln)&&$r.push(ln)}),$r},Pr=function(sr){var lr=sr===p,$r=H(lr?xe:le(sr)),ln=[];return cr($r,function(En){K(Ge,En)&&(!lr||K(p,En))&&ln.push(Ge[En])}),ln};if(I||(d=function(){if(this instanceof d)throw TypeError("Symbol is not a constructor");var sr=!arguments.length||arguments[0]===void 0?void 0:Ne(arguments[0]),lr=rt(sr),$r=function(ln){this===p&&$r.call(xe,ln),K(this,or)&&K(this[or],lr)&&(this[or][lr]=!1),At(this,lr,Be(1,ln))};return R&&dt&&At(p,lr,{configurable:!0,set:$r}),Me(lr,sr)},Pe(d[hr],"toString",function(){return k(this).tag}),Pe(d,"withoutSetter",function(Rr){return Me(rt(Rr),Rr)}),Qe.f=Tt,Ce.f=De,ke.f=ir,ce.f=D.f=Fr,ot.f=Pr,ut.f=function(Rr){return Me(nt(Rr),Rr)},R&&(Ee(d[hr],"description",{configurable:!0,get:function(){return k(this).description}}),N||Pe(p,"propertyIsEnumerable",Tt,{unsafe:!0}))),$({global:!0,wrap:!0,forced:!I,sham:!I},{Symbol:d}),cr(q(Et),function(Rr){Pt(Rr)}),$({target:Cr,stat:!0,forced:!I},{for:function(Rr){var sr=Ne(Rr);if(K(we,sr))return we[sr];var lr=d(sr);return we[sr]=lr,qe[lr]=sr,lr},keyFor:function(sr){if(!G(sr))throw TypeError(sr+" is not a symbol");if(K(qe,sr))return qe[sr]},useSetter:function(){dt=!0},useSimple:function(){dt=!1}}),$({target:"Object",stat:!0,forced:!I,sham:!R},{create:jt,defineProperty:De,defineProperties:gt,getOwnPropertyDescriptor:ir}),$({target:"Object",stat:!0,forced:!I},{getOwnPropertyNames:Fr,getOwnPropertySymbols:Pr}),$({target:"Object",stat:!0,forced:J(function(){ot.f(1)})},{getOwnPropertySymbols:function(sr){return ot.f(j(sr))}}),w){var Hr=!I||J(function(){var Rr=d();return w([Rr])!="[null]"||w({a:Rr})!="{}"||w(Object(Rr))!="{}"});$({target:"JSON",stat:!0,forced:Hr},{stringify:function(sr,lr,$r){for(var ln=[sr],En=1,cn;arguments.length>En;)ln.push(arguments[En++]);if(cn=lr,!(!te(lr)&&sr===void 0||G(sr)))return se(lr)||(lr=function(In,bi){if(typeof cn=="function"&&(bi=cn.call(this,In,bi)),!G(bi))return bi}),ln[1]=lr,w.apply(null,ln)}})}d[hr][L]||ve(d[hr],L,d[hr].valueOf),Ht(d,Cr),at[or]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(f,E,h){var $=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/dom-iterables.js"),_=h("./node_modules/core-js/internals/array-for-each.js"),N=h("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var R in S){var I=$[R],J=I&&I.prototype;if(J&&J.forEach!==_)try{N(J,"forEach",_)}catch(K){J.forEach=_}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(f,E,h){var $=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/dom-iterables.js"),_=h("./node_modules/core-js/modules/es.array.iterator.js"),N=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),R=h("./node_modules/core-js/internals/well-known-symbol.js"),I=R("iterator"),J=R("toStringTag"),K=_.values;for(var se in S){var te=$[se],G=te&&te.prototype;if(G){if(G[I]!==K)try{N(G,I,K)}catch(j){G[I]=K}if(G[J]||N(G,J,se),S[se]){for(var V in _)if(G[V]!==_[V])try{N(G,V,_[V])}catch(j){G[V]=_[V]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(f){(function(E,h){f.exports=h()})(this,function(){"use strict";function E(pe){var dt=typeof pe;return pe!==null&&(dt==="object"||dt==="function")}function h(pe){return typeof pe=="function"}var $=void 0;Array.isArray?$=Array.isArray:$=function(pe){return Object.prototype.toString.call(pe)==="[object Array]"};var S=$,_=0,N=void 0,R=void 0,I=function(dt,At){q[_]=dt,q[_+1]=At,_+=2,_===2&&(R?R(ce):ot())};function J(pe){R=pe}function K(pe){I=pe}var se=typeof window!="undefined"?window:void 0,te=se||{},G=te.MutationObserver||te.WebKitMutationObserver,V=typeof self=="undefined"&&typeof ge!="undefined"&&{}.toString.call(ge)==="[object process]",j=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function le(){return function(){return ge.nextTick(ce)}}function he(){return typeof N!="undefined"?function(){N(ce)}:je()}function Ne(){var pe=0,dt=new G(ce),At=document.createTextNode("");return dt.observe(At,{characterData:!0}),function(){At.data=pe=++pe%2}}function Be(){var pe=new MessageChannel;return pe.port1.onmessage=ce,function(){return pe.port2.postMessage(0)}}function je(){var pe=setTimeout;return function(){return pe(ce,1)}}var q=new Array(1e3);function ce(){for(var pe=0;pe<_;pe+=2){var dt=q[pe],At=q[pe+1];dt(At),q[pe]=void 0,q[pe+1]=void 0}_=0}function D(){try{var pe=Function("return this")().require("vertx");return N=pe.runOnLoop||pe.runOnContext,he()}catch(dt){return je()}}var ot=void 0;V?ot=le():G?ot=Ne():j?ot=Be():se===void 0?ot=D():ot=je();function ke(pe,dt){var At=this,Me=new this.constructor(ve);Me[Qe]===void 0&&w(Me);var De=At._state;if(De){var gt=arguments[De-1];I(function(){return it(De,Me,gt,At._result)})}else hr(At,Me,pe,dt);return Me}function Ce(pe){var dt=this;if(pe&&typeof pe=="object"&&pe.constructor===dt)return pe;var At=new dt(ve);return Ut(At,pe),At}var Qe=Math.random().toString(36).substring(2);function ve(){}var Pe=void 0,fe=1,ye=2;function at(){return new TypeError("You cannot resolve a promise with itself")}function rt(){return new TypeError("A promises callback cannot return that same promise.")}function nt(pe,dt,At,Me){try{pe.call(dt,At,Me)}catch(De){return De}}function ut(pe,dt,At){I(function(Me){var De=!1,gt=nt(At,dt,function(jt){De||(De=!0,dt!==jt?Ut(Me,jt):or(Me,jt))},function(jt){De||(De=!0,Cr(Me,jt))},"Settle: "+(Me._label||" unknown promise"));!De&&gt&&(De=!0,Cr(Me,gt))},pe)}function Pt(pe,dt){dt._state===fe?or(pe,dt._result):dt._state===ye?Cr(pe,dt._result):hr(dt,void 0,function(At){return Ut(pe,At)},function(At){return Cr(pe,At)})}function Ht(pe,dt,At){dt.constructor===pe.constructor&&At===ke&&dt.constructor.resolve===Ce?Pt(pe,dt):At===void 0?or(pe,dt):h(At)?ut(pe,dt,At):or(pe,dt)}function Ut(pe,dt){if(pe===dt)Cr(pe,at());else if(E(dt)){var At=void 0;try{At=dt.then}catch(Me){Cr(pe,Me);return}Ht(pe,dt,At)}else or(pe,dt)}function cr(pe){pe._onerror&&pe._onerror(pe._result),L(pe)}function or(pe,dt){pe._state===Pe&&(pe._result=dt,pe._state=fe,pe._subscribers.length!==0&&I(L,pe))}function Cr(pe,dt){pe._state===Pe&&(pe._state=ye,pe._result=dt,I(cr,pe))}function hr(pe,dt,At,Me){var De=pe._subscribers,gt=De.length;pe._onerror=null,De[gt]=dt,De[gt+fe]=At,De[gt+ye]=Me,gt===0&&pe._state&&I(L,pe)}function L(pe){var dt=pe._subscribers,At=pe._state;if(dt.length!==0){for(var Me=void 0,De=void 0,gt=pe._result,jt=0;jt<dt.length;jt+=3)Me=dt[jt],De=dt[jt+At],Me?it(At,Me,De,gt):De(gt);pe._subscribers.length=0}}function it(pe,dt,At,Me){var De=h(At),gt=void 0,jt=void 0,Tt=!0;if(De){try{gt=At(Me)}catch(ir){Tt=!1,jt=ir}if(dt===gt){Cr(dt,rt());return}}else gt=Me;dt._state!==Pe||(De&&Tt?Ut(dt,gt):Tt===!1?Cr(dt,jt):pe===fe?or(dt,gt):pe===ye&&Cr(dt,gt))}function k(pe,dt){try{dt(function(Me){Ut(pe,Me)},function(Me){Cr(pe,Me)})}catch(At){Cr(pe,At)}}var p=0;function d(){return p++}function w(pe){pe[Qe]=p++,pe._state=void 0,pe._result=void 0,pe._subscribers=[]}function Y(){return new Error("Array Methods must be provided an Array")}var Ee=function(){function pe(dt,At){this._instanceConstructor=dt,this.promise=new dt(ve),this.promise[Qe]||w(this.promise),S(At)?(this.length=At.length,this._remaining=At.length,this._result=new Array(this.length),this.length===0?or(this.promise,this._result):(this.length=this.length||0,this._enumerate(At),this._remaining===0&&or(this.promise,this._result))):Cr(this.promise,Y())}return pe.prototype._enumerate=function(At){for(var Me=0;this._state===Pe&&Me<At.length;Me++)this._eachEntry(At[Me],Me)},pe.prototype._eachEntry=function(At,Me){var De=this._instanceConstructor,gt=De.resolve;if(gt===Ce){var jt=void 0,Tt=void 0,ir=!1;try{jt=At.then}catch(Pr){ir=!0,Tt=Pr}if(jt===ke&&At._state!==Pe)this._settledAt(At._state,Me,At._result);else if(typeof jt!="function")this._remaining--,this._result[Me]=At;else if(De===qe){var Fr=new De(ve);ir?Cr(Fr,Tt):Ht(Fr,At,jt),this._willSettleAt(Fr,Me)}else this._willSettleAt(new De(function(Pr){return Pr(At)}),Me)}else this._willSettleAt(gt(At),Me)},pe.prototype._settledAt=function(At,Me,De){var gt=this.promise;gt._state===Pe&&(this._remaining--,At===ye?Cr(gt,De):this._result[Me]=De),this._remaining===0&&or(gt,this._result)},pe.prototype._willSettleAt=function(At,Me){var De=this;hr(At,void 0,function(gt){return De._settledAt(fe,Me,gt)},function(gt){return De._settledAt(ye,Me,gt)})},pe}();function H(pe){return new Ee(this,pe).promise}function ne(pe){var dt=this;return S(pe)?new dt(function(At,Me){for(var De=pe.length,gt=0;gt<De;gt++)dt.resolve(pe[gt]).then(At,Me)}):new dt(function(At,Me){return Me(new TypeError("You must pass an array to race."))})}function Ge(pe){var dt=this,At=new dt(ve);return Cr(At,pe),At}function xe(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function we(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var qe=function(){function pe(dt){this[Qe]=d(),this._result=this._state=void 0,this._subscribers=[],ve!==dt&&(typeof dt!="function"&&xe(),this instanceof pe?k(this,dt):we())}return pe.prototype.catch=function(At){return this.then(null,At)},pe.prototype.finally=function(At){var Me=this,De=Me.constructor;return h(At)?Me.then(function(gt){return De.resolve(At()).then(function(){return gt})},function(gt){return De.resolve(At()).then(function(){throw gt})}):Me.then(At,At)},pe}();qe.prototype.then=ke,qe.all=H,qe.race=ne,qe.resolve=Ce,qe.reject=Ge,qe._setScheduler=J,qe._setAsap=K,qe._asap=I;function Et(){var pe=void 0;if(typeof x.g!="undefined")pe=x.g;else if(typeof self!="undefined")pe=self;else try{pe=Function("return this")()}catch(Me){throw new Error("polyfill failed because global object is unavailable in this environment")}var dt=pe.Promise;if(dt){var At=null;try{At=Object.prototype.toString.call(dt.resolve())}catch(Me){}if(At==="[object Promise]"&&!dt.cast)return}pe.Promise=qe}return qe.polyfill=Et,qe.Promise=qe,qe})},html2canvas:function(f){"use strict";f.exports=Q},jspdf:function(f){"use strict";f.exports=de}},ie={};function W(f){var E=ie[f];if(E!==void 0)return E.exports;var h=ie[f]={exports:{}};return Oe[f].call(h.exports,h,h.exports,W),h.exports}(function(){W.n=function(f){var E=f&&f.__esModule?function(){return f.default}:function(){return f};return W.d(E,{a:E}),E}})(),function(){W.d=function(f,E){for(var h in E)W.o(E,h)&&!W.o(f,h)&&Object.defineProperty(f,h,{enumerable:!0,get:E[h]})}}(),function(){W.o=function(f,E){return Object.prototype.hasOwnProperty.call(f,E)}}(),function(){W.r=function(f){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})}}();var B={};return function(){"use strict";W.r(B);var f=W("./src/worker.js"),E=W("./src/plugin/jspdf-plugin.js"),h=W("./src/plugin/pagebreaks.js"),$=W("./src/plugin/hyperlinks.js"),S=function _(N,R){var I=new _.Worker(R);return N?I.from(N).save():I};S.Worker=f.default,B.default=S}(),B=B.default,B}()})},67467:function(xn,Yt){Yt.read=function(x,ge,de,Q,Oe){var ie,W,B=Oe*8-Q-1,f=(1<<B)-1,E=f>>1,h=-7,$=de?Oe-1:0,S=de?-1:1,_=x[ge+$];for($+=S,ie=_&(1<<-h)-1,_>>=-h,h+=B;h>0;ie=ie*256+x[ge+$],$+=S,h-=8);for(W=ie&(1<<-h)-1,ie>>=-h,h+=Q;h>0;W=W*256+x[ge+$],$+=S,h-=8);if(ie===0)ie=1-E;else{if(ie===f)return W?NaN:(_?-1:1)*(1/0);W=W+Math.pow(2,Q),ie=ie-E}return(_?-1:1)*W*Math.pow(2,ie-Q)},Yt.write=function(x,ge,de,Q,Oe,ie){var W,B,f,E=ie*8-Oe-1,h=(1<<E)-1,$=h>>1,S=Oe===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=Q?0:ie-1,N=Q?1:-1,R=ge<0||ge===0&&1/ge<0?1:0;for(ge=Math.abs(ge),isNaN(ge)||ge===1/0?(B=isNaN(ge)?1:0,W=h):(W=Math.floor(Math.log(ge)/Math.LN2),ge*(f=Math.pow(2,-W))<1&&(W--,f*=2),W+$>=1?ge+=S/f:ge+=S*Math.pow(2,1-$),ge*f>=2&&(W++,f/=2),W+$>=h?(B=0,W=h):W+$>=1?(B=(ge*f-1)*Math.pow(2,Oe),W=W+$):(B=ge*Math.pow(2,$-1)*Math.pow(2,Oe),W=0));Oe>=8;x[de+_]=B&255,_+=N,B/=256,Oe-=8);for(W=W<<Oe|B,E+=Oe;E>0;x[de+_]=W&255,_+=N,W/=256,E-=8);x[de+_-N]|=R*128}},24334:function(xn,Yt,x){var ge,de;(function(Q,Oe){xn.exports=Oe(Q)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof x.g!="undefined"?x.g:this,function(Q){"use strict";Q=Q||{};var Oe=Q.Base64,ie="2.6.4",W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",B=function(D){for(var ot={},ke=0,Ce=D.length;ke<Ce;ke++)ot[D.charAt(ke)]=ke;return ot}(W),f=String.fromCharCode,E=function(D){if(D.length<2){var ot=D.charCodeAt(0);return ot<128?D:ot<2048?f(192|ot>>>6)+f(128|ot&63):f(224|ot>>>12&15)+f(128|ot>>>6&63)+f(128|ot&63)}else{var ot=65536+(D.charCodeAt(0)-55296)*1024+(D.charCodeAt(1)-56320);return f(240|ot>>>18&7)+f(128|ot>>>12&63)+f(128|ot>>>6&63)+f(128|ot&63)}},h=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,$=function(D){return D.replace(h,E)},S=function(D){var ot=[0,2,1][D.length%3],ke=D.charCodeAt(0)<<16|(D.length>1?D.charCodeAt(1):0)<<8|(D.length>2?D.charCodeAt(2):0),Ce=[W.charAt(ke>>>18),W.charAt(ke>>>12&63),ot>=2?"=":W.charAt(ke>>>6&63),ot>=1?"=":W.charAt(ke&63)];return Ce.join("")},_=Q.btoa&&typeof Q.btoa=="function"?function(D){return Q.btoa(D)}:function(D){if(D.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return D.replace(/[\s\S]{1,3}/g,S)},N=function(D){return _($(String(D)))},R=function(D){return D.replace(/[+\/]/g,function(ot){return ot=="+"?"-":"_"}).replace(/=/g,"")},I=function(D,ot){return ot?R(N(D)):N(D)},J=function(D){return I(D,!0)},K;Q.Uint8Array&&(K=function(D,ot){for(var ke="",Ce=0,Qe=D.length;Ce<Qe;Ce+=3){var ve=D[Ce],Pe=D[Ce+1],fe=D[Ce+2],ye=ve<<16|Pe<<8|fe;ke+=W.charAt(ye>>>18)+W.charAt(ye>>>12&63)+(typeof Pe!="undefined"?W.charAt(ye>>>6&63):"=")+(typeof fe!="undefined"?W.charAt(ye&63):"=")}return ot?R(ke):ke});var se=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,te=function(D){switch(D.length){case 4:var ot=(7&D.charCodeAt(0))<<18|(63&D.charCodeAt(1))<<12|(63&D.charCodeAt(2))<<6|63&D.charCodeAt(3),ke=ot-65536;return f((ke>>>10)+55296)+f((ke&1023)+56320);case 3:return f((15&D.charCodeAt(0))<<12|(63&D.charCodeAt(1))<<6|63&D.charCodeAt(2));default:return f((31&D.charCodeAt(0))<<6|63&D.charCodeAt(1))}},G=function(D){return D.replace(se,te)},V=function(D){var ot=D.length,ke=ot%4,Ce=(ot>0?B[D.charAt(0)]<<18:0)|(ot>1?B[D.charAt(1)]<<12:0)|(ot>2?B[D.charAt(2)]<<6:0)|(ot>3?B[D.charAt(3)]:0),Qe=[f(Ce>>>16),f(Ce>>>8&255),f(Ce&255)];return Qe.length-=[0,0,2,1][ke],Qe.join("")},j=Q.atob&&typeof Q.atob=="function"?function(D){return Q.atob(D)}:function(D){return D.replace(/\S{1,4}/g,V)},le=function(D){return j(String(D).replace(/[^A-Za-z0-9\+\/]/g,""))},he=function(D){return G(j(D))},Ne=function(D){return String(D).replace(/[-_]/g,function(ot){return ot=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Be=function(D){return he(Ne(D))},je;Q.Uint8Array&&(je=function(D){return Uint8Array.from(le(Ne(D)),function(ot){return ot.charCodeAt(0)})});var q=function(){var D=Q.Base64;return Q.Base64=Oe,D};if(Q.Base64={VERSION:ie,atob:le,btoa:_,fromBase64:Be,toBase64:I,utob:$,encode:I,encodeURI:J,btou:G,decode:Be,noConflict:q,fromUint8Array:K,toUint8Array:je},typeof Object.defineProperty=="function"){var ce=function(D){return{value:D,enumerable:!1,writable:!0,configurable:!0}};Q.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ce(function(){return Be(this)})),Object.defineProperty(String.prototype,"toBase64",ce(function(D){return I(this,D)})),Object.defineProperty(String.prototype,"toBase64URI",ce(function(){return I(this,!0)}))}}return Q.Meteor&&(Base64=Q.Base64),xn.exports?xn.exports.Base64=Q.Base64:(ge=[],de=function(){return Q.Base64}.apply(Yt,ge),de!==void 0&&(xn.exports=de)),{Base64:Q.Base64}})},7348:function(xn,Yt,x){"use strict";x.r(Yt),x.d(Yt,{AcroForm:function(){return To},AcroFormAppearance:function(){return Kn},AcroFormButton:function(){return Fo},AcroFormCheckBox:function(){return Oo},AcroFormChoiceField:function(){return Ja},AcroFormComboBox:function(){return Ua},AcroFormEditBox:function(){return Da},AcroFormListBox:function(){return oo},AcroFormPasswordField:function(){return Io},AcroFormPushButton:function(){return Ll},AcroFormRadioButton:function(){return cs},AcroFormTextField:function(){return ks},GState:function(){return La},ShadingPattern:function(){return vo},TilingPattern:function(){return wa},default:function(){return Ai},jsPDF:function(){return Ai}});var ge=x(62853),de={},Q=function(c,o,l,b,F){var C=new Worker(de[o]||(de[o]=URL.createObjectURL(new Blob([c+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return C.onmessage=function(T){var Z=T.data,ae=Z.$e$;if(ae){var _e=new Error(ae[0]);_e.code=ae[1],_e.stack=ae[2],F(_e,null)}else F(null,Z)},C.postMessage(l,b),C},Oe=Uint8Array,ie=Uint16Array,W=Int32Array,B=new Oe([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),f=new Oe([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),E=new Oe([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),h=function(c,o){for(var l=new ie(31),b=0;b<31;++b)l[b]=o+=1<<c[b-1];for(var F=new W(l[30]),b=1;b<30;++b)for(var C=l[b];C<l[b+1];++C)F[C]=C-l[b]<<5|b;return{b:l,r:F}},$=h(B,2),S=$.b,_=$.r;S[28]=258,_[258]=28;for(var N=h(f,0),R=N.b,I=N.r,J=new ie(32768),K=0;K<32768;++K){var se=(K&43690)>>1|(K&21845)<<1;se=(se&52428)>>2|(se&13107)<<2,se=(se&61680)>>4|(se&3855)<<4,J[K]=((se&65280)>>8|(se&255)<<8)>>1}for(var te=function(c,o,l){for(var b=c.length,F=0,C=new ie(o);F<b;++F)c[F]&&++C[c[F]-1];var T=new ie(o);for(F=1;F<o;++F)T[F]=T[F-1]+C[F-1]<<1;var Z;if(l){Z=new ie(1<<o);var ae=15-o;for(F=0;F<b;++F)if(c[F])for(var _e=F<<4|c[F],$e=o-c[F],Ze=T[c[F]-1]++<<$e,st=Ze|(1<<$e)-1;Ze<=st;++Ze)Z[J[Ze]>>ae]=_e}else for(Z=new ie(b),F=0;F<b;++F)c[F]&&(Z[F]=J[T[c[F]-1]++]>>15-c[F]);return Z},G=new Oe(288),K=0;K<144;++K)G[K]=8;for(var K=144;K<256;++K)G[K]=9;for(var K=256;K<280;++K)G[K]=7;for(var K=280;K<288;++K)G[K]=8;for(var V=new Oe(32),K=0;K<32;++K)V[K]=5;var j=te(G,9,0),le=te(G,9,1),he=te(V,5,0),Ne=te(V,5,1),Be=function(c){for(var o=c[0],l=1;l<c.length;++l)c[l]>o&&(o=c[l]);return o},je=function(c,o,l){var b=o/8|0;return(c[b]|c[b+1]<<8)>>(o&7)&l},q=function(c,o){var l=o/8|0;return(c[l]|c[l+1]<<8|c[l+2]<<16)>>(o&7)},ce=function(c){return(c+7)/8|0},D=function(c,o,l){return(o==null||o<0)&&(o=0),(l==null||l>c.length)&&(l=c.length),new Oe(c.subarray(o,l))},ot={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},ke=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Ce=function(c,o,l){var b=new Error(o||ke[c]);if(b.code=c,Error.captureStackTrace&&Error.captureStackTrace(b,Ce),!l)throw b;return b},Qe=function(c,o,l,b){var F=c.length,C=b?b.length:0;if(!F||o.f&&!o.l)return l||new Oe(0);var T=!l,Z=T||o.i!=2,ae=o.i;T&&(l=new Oe(F*3));var _e=function(fr){var gr=l.length;if(fr>gr){var Sr=new Oe(Math.max(gr*2,fr));Sr.set(l),l=Sr}},$e=o.f||0,Ze=o.p||0,st=o.b||0,be=o.l,Lt=o.d,wt=o.m,kt=o.n,pt=F*8;do{if(!be){$e=je(c,Ze,1);var Dt=je(c,Ze+1,3);if(Ze+=3,Dt)if(Dt==1)be=le,Lt=Ne,wt=9,kt=5;else if(Dt==2){var hn=je(c,Ze,31)+257,_r=je(c,Ze+10,15)+4,Vt=hn+je(c,Ze+5,31)+1;Ze+=14;for(var Lr=new Oe(Vt),Jr=new Oe(19),vt=0;vt<_r;++vt)Jr[E[vt]]=je(c,Ze+vt*3,7);Ze+=_r*3;for(var Ct=Be(Jr),rr=(1<<Ct)-1,U=te(Jr,Ct,1),vt=0;vt<Vt;){var ee=U[je(c,Ze,rr)];Ze+=ee&15;var ar=ee>>4;if(ar<16)Lr[vt++]=ar;else{var Se=0,Te=0;for(ar==16?(Te=3+je(c,Ze,3),Ze+=2,Se=Lr[vt-1]):ar==17?(Te=3+je(c,Ze,7),Ze+=3):ar==18&&(Te=11+je(c,Ze,127),Ze+=7);Te--;)Lr[vt++]=Se}}var He=Lr.subarray(0,hn),Xe=Lr.subarray(hn);wt=Be(He),kt=Be(Xe),be=te(He,wt,1),Lt=te(Xe,kt,1)}else Ce(1);else{var ar=ce(Ze)+4,wr=c[ar-4]|c[ar-3]<<8,Qr=ar+wr;if(Qr>F){ae&&Ce(0);break}Z&&_e(st+wr),l.set(c.subarray(ar,Qr),st),o.b=st+=wr,o.p=Ze=Qr*8,o.f=$e;continue}if(Ze>pt){ae&&Ce(0);break}}Z&&_e(st+131072);for(var ht=(1<<wt)-1,St=(1<<kt)-1,Ae=Ze;;Ae=Ze){var Se=be[q(c,Ze)&ht],Re=Se>>4;if(Ze+=Se&15,Ze>pt){ae&&Ce(0);break}if(Se||Ce(2),Re<256)l[st++]=Re;else if(Re==256){Ae=Ze,be=null;break}else{var Ye=Re-254;if(Re>264){var vt=Re-257,et=B[vt];Ye=je(c,Ze,(1<<et)-1)+S[vt],Ze+=et}var bt=Lt[q(c,Ze)&St],_t=bt>>4;bt||Ce(3),Ze+=bt&15;var Xe=R[_t];if(_t>3){var et=f[_t];Xe+=q(c,Ze)&(1<<et)-1,Ze+=et}if(Ze>pt){ae&&Ce(0);break}Z&&_e(st+131072);var It=st+Ye;if(st<Xe){var Rt=C-Xe,ur=Math.min(Xe,It);for(Rt+st<0&&Ce(3);st<ur;++st)l[st]=b[Rt+st]}for(;st<It;++st)l[st]=l[st-Xe]}}o.l=be,o.p=Ae,o.b=st,o.f=$e,be&&($e=1,o.m=wt,o.d=Lt,o.n=kt)}while(!$e);return st!=l.length&&T?D(l,0,st):l.subarray(0,st)},ve=function(c,o,l){l<<=o&7;var b=o/8|0;c[b]|=l,c[b+1]|=l>>8},Pe=function(c,o,l){l<<=o&7;var b=o/8|0;c[b]|=l,c[b+1]|=l>>8,c[b+2]|=l>>16},fe=function(c,o){for(var l=[],b=0;b<c.length;++b)c[b]&&l.push({s:b,f:c[b]});var F=l.length,C=l.slice();if(!F)return{t:Ht,l:0};if(F==1){var T=new Oe(l[0].s+1);return T[l[0].s]=1,{t:T,l:1}}l.sort(function(Qr,hn){return Qr.f-hn.f}),l.push({s:-1,f:25001});var Z=l[0],ae=l[1],_e=0,$e=1,Ze=2;for(l[0]={s:-1,f:Z.f+ae.f,l:Z,r:ae};$e!=F-1;)Z=l[l[_e].f<l[Ze].f?_e++:Ze++],ae=l[_e!=$e&&l[_e].f<l[Ze].f?_e++:Ze++],l[$e++]={s:-1,f:Z.f+ae.f,l:Z,r:ae};for(var st=C[0].s,b=1;b<F;++b)C[b].s>st&&(st=C[b].s);var be=new ie(st+1),Lt=ye(l[$e-1],be,0);if(Lt>o){var b=0,wt=0,kt=Lt-o,pt=1<<kt;for(C.sort(function(hn,_r){return be[_r.s]-be[hn.s]||hn.f-_r.f});b<F;++b){var Dt=C[b].s;if(be[Dt]>o)wt+=pt-(1<<Lt-be[Dt]),be[Dt]=o;else break}for(wt>>=kt;wt>0;){var ar=C[b].s;be[ar]<o?wt-=1<<o-be[ar]++-1:++b}for(;b>=0&&wt;--b){var wr=C[b].s;be[wr]==o&&(--be[wr],++wt)}Lt=o}return{t:new Oe(be),l:Lt}},ye=function(c,o,l){return c.s==-1?Math.max(ye(c.l,o,l+1),ye(c.r,o,l+1)):o[c.s]=l},at=function(c){for(var o=c.length;o&&!c[--o];);for(var l=new ie(++o),b=0,F=c[0],C=1,T=function(ae){l[b++]=ae},Z=1;Z<=o;++Z)if(c[Z]==F&&Z!=o)++C;else{if(!F&&C>2){for(;C>138;C-=138)T(32754);C>2&&(T(C>10?C-11<<5|28690:C-3<<5|12305),C=0)}else if(C>3){for(T(F),--C;C>6;C-=6)T(8304);C>2&&(T(C-3<<5|8208),C=0)}for(;C--;)T(F);C=1,F=c[Z]}return{c:l.subarray(0,b),n:o}},rt=function(c,o){for(var l=0,b=0;b<o.length;++b)l+=c[b]*o[b];return l},nt=function(c,o,l){var b=l.length,F=ce(o+2);c[F]=b&255,c[F+1]=b>>8,c[F+2]=c[F]^255,c[F+3]=c[F+1]^255;for(var C=0;C<b;++C)c[F+C+4]=l[C];return(F+4+b)*8},ut=function(c,o,l,b,F,C,T,Z,ae,_e,$e){ve(o,$e++,l),++F[256];for(var Ze=fe(F,15),st=Ze.t,be=Ze.l,Lt=fe(C,15),wt=Lt.t,kt=Lt.l,pt=at(st),Dt=pt.c,ar=pt.n,wr=at(wt),Qr=wr.c,hn=wr.n,_r=new ie(19),Vt=0;Vt<Dt.length;++Vt)++_r[Dt[Vt]&31];for(var Vt=0;Vt<Qr.length;++Vt)++_r[Qr[Vt]&31];for(var Lr=fe(_r,7),Jr=Lr.t,vt=Lr.l,Ct=19;Ct>4&&!Jr[E[Ct-1]];--Ct);var rr=_e+5<<3,U=rt(F,G)+rt(C,V)+T,ee=rt(F,st)+rt(C,wt)+T+14+3*Ct+rt(_r,Jr)+2*_r[16]+3*_r[17]+7*_r[18];if(ae>=0&&rr<=U&&rr<=ee)return nt(o,$e,c.subarray(ae,ae+_e));var Se,Te,He,Xe;if(ve(o,$e,1+(ee<U)),$e+=2,ee<U){Se=te(st,be,0),Te=st,He=te(wt,kt,0),Xe=wt;var ht=te(Jr,vt,0);ve(o,$e,ar-257),ve(o,$e+5,hn-1),ve(o,$e+10,Ct-4),$e+=14;for(var Vt=0;Vt<Ct;++Vt)ve(o,$e+3*Vt,Jr[E[Vt]]);$e+=3*Ct;for(var St=[Dt,Qr],Ae=0;Ae<2;++Ae)for(var Re=St[Ae],Vt=0;Vt<Re.length;++Vt){var Ye=Re[Vt]&31;ve(o,$e,ht[Ye]),$e+=Jr[Ye],Ye>15&&(ve(o,$e,Re[Vt]>>5&127),$e+=Re[Vt]>>12)}}else Se=j,Te=G,He=he,Xe=V;for(var Vt=0;Vt<Z;++Vt){var et=b[Vt];if(et>255){var Ye=et>>18&31;Pe(o,$e,Se[Ye+257]),$e+=Te[Ye+257],Ye>7&&(ve(o,$e,et>>23&31),$e+=B[Ye]);var bt=et&31;Pe(o,$e,He[bt]),$e+=Xe[bt],bt>3&&(Pe(o,$e,et>>5&8191),$e+=f[bt])}else Pe(o,$e,Se[et]),$e+=Te[et]}return Pe(o,$e,Se[256]),$e+Te[256]},Pt=new W([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ht=new Oe(0),Ut=function(c,o,l,b,F,C){var T=C.z||c.length,Z=new Oe(b+T+5*(1+Math.ceil(T/7e3))+F),ae=Z.subarray(b,Z.length-F),_e=C.l,$e=(C.r||0)&7;if(o){$e&&(ae[0]=C.r>>3);for(var Ze=Pt[o-1],st=Ze>>13,be=Ze&8191,Lt=(1<<l)-1,wt=C.p||new ie(32768),kt=C.h||new ie(Lt+1),pt=Math.ceil(l/3),Dt=2*pt,ar=function(dn){return(c[dn]^c[dn+1]<<pt^c[dn+2]<<Dt)&Lt},wr=new W(25e3),Qr=new ie(288),hn=new ie(32),_r=0,Vt=0,Lr=C.i||0,Jr=0,vt=C.w||0,Ct=0;Lr+2<T;++Lr){var rr=ar(Lr),U=Lr&32767,ee=kt[rr];if(wt[U]=ee,kt[rr]=U,vt<=Lr){var Se=T-Lr;if((_r>7e3||Jr>24576)&&(Se>423||!_e)){$e=ut(c,ae,0,wr,Qr,hn,Vt,Jr,Ct,Lr-Ct,$e),Jr=_r=Vt=0,Ct=Lr;for(var Te=0;Te<286;++Te)Qr[Te]=0;for(var Te=0;Te<30;++Te)hn[Te]=0}var He=2,Xe=0,ht=be,St=U-ee&32767;if(Se>2&&rr==ar(Lr-St))for(var Ae=Math.min(st,Se)-1,Re=Math.min(32767,Lr),Ye=Math.min(258,Se);St<=Re&&--ht&&U!=ee;){if(c[Lr+He]==c[Lr+He-St]){for(var et=0;et<Ye&&c[Lr+et]==c[Lr+et-St];++et);if(et>He){if(He=et,Xe=St,et>Ae)break;for(var bt=Math.min(St,et-2),_t=0,Te=0;Te<bt;++Te){var It=Lr-St+Te&32767,Rt=wt[It],ur=It-Rt&32767;ur>_t&&(_t=ur,ee=It)}}}U=ee,ee=wt[U],St+=U-ee&32767}if(Xe){wr[Jr++]=268435456|_[He]<<18|I[Xe];var fr=_[He]&31,gr=I[Xe]&31;Vt+=B[fr]+f[gr],++Qr[257+fr],++hn[gr],vt=Lr+He,++_r}else wr[Jr++]=c[Lr],++Qr[c[Lr]]}}for(Lr=Math.max(Lr,vt);Lr<T;++Lr)wr[Jr++]=c[Lr],++Qr[c[Lr]];$e=ut(c,ae,_e,wr,Qr,hn,Vt,Jr,Ct,Lr-Ct,$e),_e||(C.r=$e&7|ae[$e/8|0]<<3,$e-=7,C.h=kt,C.p=wt,C.i=Lr,C.w=vt)}else{for(var Lr=C.w||0;Lr<T+_e;Lr+=65535){var Sr=Lr+65535;Sr>=T&&(ae[$e/8|0]=_e,Sr=T),$e=nt(ae,$e+1,c.subarray(Lr,Sr))}C.i=T}return D(Z,0,b+ce($e)+F)},cr=null,or=function(){var c=-1;return{p:function(o){for(var l=c,b=0;b<o.length;++b)l=cr[l&255^o[b]]^l>>>8;c=l},d:function(){return~c}}},Cr=function(){var c=1,o=0;return{p:function(l){for(var b=c,F=o,C=l.length|0,T=0;T!=C;){for(var Z=Math.min(T+2655,C);T<Z;++T)F+=b+=l[T];b=(b&65535)+15*(b>>16),F=(F&65535)+15*(F>>16)}c=b,o=F},d:function(){return c%=65521,o%=65521,(c&255)<<24|(c&65280)<<8|(o&255)<<8|o>>8}}},hr=function(c,o,l,b,F){if(!F&&(F={l:1},o.dictionary)){var C=o.dictionary.subarray(-32768),T=new Oe(C.length+c.length);T.set(C),T.set(c,C.length),c=T,F.w=C.length}return Ut(c,o.level==null?6:o.level,o.mem==null?F.l?Math.ceil(Math.max(8,Math.min(13,Math.log(c.length)))*1.5):20:12+o.mem,l,b,F)},L=function(c,o){var l={};for(var b in c)l[b]=c[b];for(var b in o)l[b]=o[b];return l},it=function(c,o,l){for(var b=c(),F=c.toString(),C=F.slice(F.indexOf("[")+1,F.lastIndexOf("]")).replace(/\s+/g,"").split(","),T=0;T<b.length;++T){var Z=b[T],ae=C[T];if(typeof Z=="function"){o+=";"+ae+"=";var _e=Z.toString();if(Z.prototype)if(_e.indexOf("[native code]")!=-1){var $e=_e.indexOf(" ",8)+1;o+=_e.slice($e,_e.indexOf("(",$e))}else{o+=_e;for(var Ze in Z.prototype)o+=";"+ae+".prototype."+Ze+"="+Z.prototype[Ze].toString()}else o+=_e}else l[ae]=Z}return o},k=null,p=function(c){var o=[];for(var l in c)c[l].buffer&&o.push((c[l]=new c[l].constructor(c[l])).buffer);return o},d=function(c,o,l,b){if(!k[l]){for(var F="",C={},T=c.length-1,Z=0;Z<T;++Z)F=it(c[Z],F,C);k[l]={c:it(c[T],F,C),e:C}}var ae=L({},k[l].e);return Q(k[l].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+o.toString()+"}",l,ae,p(ae),b)},w=function(){return[Oe,ie,W,B,f,E,S,R,le,Ne,J,ke,te,Be,je,q,ce,D,Ce,Qe,In,xe,we]},Y=function(){return[Oe,ie,W,B,f,E,_,I,j,G,he,V,J,Pt,Ht,te,ve,Pe,fe,ye,at,rt,nt,ut,ce,D,Ut,hr,$r,xe]},Ee=function(){return[gt,ir,De,or,cr]},H=function(){return[jt,Tt]},ne=function(){return[Fr,De,Cr]},Ge=function(){return[Pr]},xe=function(c){return postMessage(c,[c.buffer])},we=function(c){return c&&{out:c.size&&new Oe(c.size),dictionary:c.dictionary}},qe=function(c,o,l,b,F,C){var T=d(l,b,F,function(Z,ae){T.terminate(),C(Z,ae)});return T.postMessage([c,o],o.consume?[c.buffer]:[]),function(){T.terminate()}},Et=function(c){return c.ondata=function(o,l){return postMessage([o,l],[o.buffer])},function(o){o.data.length?(c.push(o.data[0],o.data[1]),postMessage([o.data[0].length])):c.flush()}},pe=function(c,o,l,b,F,C,T){var Z,ae=d(c,b,F,function(_e,$e){_e?(ae.terminate(),o.ondata.call(o,_e)):Array.isArray($e)?$e.length==1?(o.queuedSize-=$e[0],o.ondrain&&o.ondrain($e[0])):($e[1]&&ae.terminate(),o.ondata.call(o,_e,$e[0],$e[1])):T($e)});ae.postMessage(l),o.queuedSize=0,o.push=function(_e,$e){o.ondata||Ce(5),Z&&o.ondata(Ce(4,0,1),null,!!$e),o.queuedSize+=_e.length,ae.postMessage([_e,Z=$e],[_e.buffer])},o.terminate=function(){ae.terminate()},C&&(o.flush=function(){ae.postMessage([])})},dt=function(c,o){return c[o]|c[o+1]<<8},At=function(c,o){return(c[o]|c[o+1]<<8|c[o+2]<<16|c[o+3]<<24)>>>0},Me=function(c,o){return At(c,o)+At(c,o+4)*4294967296},De=function(c,o,l){for(;l;++o)c[o]=l,l>>>=8},gt=function(c,o){var l=o.filename;if(c[0]=31,c[1]=139,c[2]=8,c[8]=o.level<2?4:o.level==9?2:0,c[9]=3,o.mtime!=0&&De(c,4,Math.floor(new Date(o.mtime||Date.now())/1e3)),l){c[3]=8;for(var b=0;b<=l.length;++b)c[b+10]=l.charCodeAt(b)}},jt=function(c){(c[0]!=31||c[1]!=139||c[2]!=8)&&Ce(6,"invalid gzip data");var o=c[3],l=10;o&4&&(l+=(c[10]|c[11]<<8)+2);for(var b=(o>>3&1)+(o>>4&1);b>0;b-=!c[l++]);return l+(o&2)},Tt=function(c){var o=c.length;return(c[o-4]|c[o-3]<<8|c[o-2]<<16|c[o-1]<<24)>>>0},ir=function(c){return 10+(c.filename?c.filename.length+1:0)},Fr=function(c,o){var l=o.level,b=l==0?0:l<6?1:l==9?3:2;if(c[0]=120,c[1]=b<<6|(o.dictionary&&32),c[1]|=31-(c[0]<<8|c[1])%31,o.dictionary){var F=Cr();F.p(o.dictionary),De(c,2,F.d())}},Pr=function(c,o){return((c[0]&15)!=8||c[0]>>4>7||(c[0]<<8|c[1])%31)&&Ce(6,"invalid zlib data"),(c[1]>>5&1)==+!o&&Ce(6,"invalid zlib data: "+(c[1]&32?"need":"unexpected")+" dictionary"),(c[1]>>3&4)+2};function Hr(c,o){return typeof c=="function"&&(o=c,c={}),this.ondata=o,c}var Rr=null,sr=null;function lr(c,o,l){return l||(l=o,o={}),typeof l!="function"&&Ce(7),qe(c,o,[Y],function(b){return xe($r(b.data[0],b.data[1]))},0,l)}function $r(c,o){return hr(c,o||{},0,0)}var ln=null,En=null;function cn(c,o,l){return l||(l=o,o={}),typeof l!="function"&&Ce(7),qe(c,o,[w],function(b){return xe(In(b.data[0],we(b.data[1])))},1,l)}function In(c,o){return Qe(c,{i:2},o&&o.out,o&&o.dictionary)}var bi=null,Ir=null;function qn(c,o,l){return l||(l=o,o={}),typeof l!="function"&&Ce(7),qe(c,o,[Y,Ee,function(){return[wi]}],function(b){return xe(wi(b.data[0],b.data[1]))},2,l)}function wi(c,o){o||(o={});var l=or(),b=c.length;l.p(c);var F=hr(c,o,ir(o),8),C=F.length;return gt(F,o),De(F,C-8,l.d()),De(F,C-4,b),F}var $n=null,Ni=null;function gi(c,o,l){return l||(l=o,o={}),typeof l!="function"&&Ce(7),qe(c,o,[w,H,function(){return[Qi]}],function(b){return xe(Qi(b.data[0],b.data[1]))},3,l)}function Qi(c,o){var l=jt(c);return l+8>c.length&&Ce(6,"invalid gzip data"),Qe(c.subarray(l,-8),{i:2},o&&o.out||new Oe(Tt(c)),o&&o.dictionary)}var ba=null,$i=null;function ri(c,o,l){return l||(l=o,o={}),typeof l!="function"&&Ce(7),qe(c,o,[Y,ne,function(){return[xi]}],function(b){return xe(xi(b.data[0],b.data[1]))},4,l)}function xi(c,o){o||(o={});var l=Cr();l.p(c);var b=hr(c,o,o.dictionary?6:2,4);return Fr(b,o),De(b,b.length-4,l.d()),b}var Ti=null,me=null;function Ue(c,o,l){return l||(l=o,o={}),typeof l!="function"&&Ce(7),qe(c,o,[w,Ge,function(){return[Le]}],function(b){return xe(Le(b.data[0],we(b.data[1])))},5,l)}function Le(c,o){return Qe(c.subarray(Pr(c,o&&o.dictionary),-4),{i:2},o&&o.out,o&&o.dictionary)}var lt=null,$t=null;function Qt(c,o,l){return l||(l=o,o={}),typeof l!="function"&&Ce(7),c[0]==31&&c[1]==139&&c[2]==8?gi(c,o,l):(c[0]&15)!=8||c[0]>>4>7||(c[0]<<8|c[1])%31?cn(c,o,l):Ue(c,o,l)}function Br(c,o){return c[0]==31&&c[1]==139&&c[2]==8?Qi(c,o):(c[0]&15)!=8||c[0]>>4>7||(c[0]<<8|c[1])%31?In(c,o):Le(c,o)}var pr=function(c,o,l,b){for(var F in c){var C=c[F],T=o+F,Z=b;Array.isArray(C)&&(Z=L(b,C[1]),C=C[0]),C instanceof Oe?l[T]=[C,Z]:(l[T+="/"]=[new Oe(0),Z],pr(C,T,l,b))}},Kr=typeof TextEncoder!="undefined"&&new TextEncoder,Wr=typeof TextDecoder!="undefined"&&new TextDecoder,en=0;try{Wr.decode(Ht,{stream:!0}),en=1}catch(c){}var Vr=function(c){for(var o="",l=0;;){var b=c[l++],F=(b>127)+(b>223)+(b>239);if(l+F>c.length)return{s:o,r:D(c,l-1)};F?F==3?(b=((b&15)<<18|(c[l++]&63)<<12|(c[l++]&63)<<6|c[l++]&63)-65536,o+=String.fromCharCode(55296|b>>10,56320|b&1023)):F&1?o+=String.fromCharCode((b&31)<<6|c[l++]&63):o+=String.fromCharCode((b&15)<<12|(c[l++]&63)<<6|c[l++]&63):o+=String.fromCharCode(b)}},jr=null,Yr=null;function mn(c,o){if(o){for(var l=new Oe(c.length),b=0;b<c.length;++b)l[b]=c.charCodeAt(b);return l}if(Kr)return Kr.encode(c);for(var F=c.length,C=new Oe(c.length+(c.length>>1)),T=0,Z=function($e){C[T++]=$e},b=0;b<F;++b){if(T+5>C.length){var ae=new Oe(T+8+(F-b<<1));ae.set(C),C=ae}var _e=c.charCodeAt(b);_e<128||o?Z(_e):_e<2048?(Z(192|_e>>6),Z(128|_e&63)):_e>55295&&_e<57344?(_e=65536+(_e&1047552)|c.charCodeAt(++b)&1023,Z(240|_e>>18),Z(128|_e>>12&63),Z(128|_e>>6&63),Z(128|_e&63)):(Z(224|_e>>12),Z(128|_e>>6&63),Z(128|_e&63))}return D(C,0,T)}function tn(c,o){if(o){for(var l="",b=0;b<c.length;b+=16384)l+=String.fromCharCode.apply(null,c.subarray(b,b+16384));return l}else{if(Wr)return Wr.decode(c);var F=Vr(c),C=F.s,l=F.r;return l.length&&Ce(8),C}}var Dn=function(c){return c==1?3:c<6?2:c==9?1:0},Qn=function(c,o){return o+30+dt(c,o+26)+dt(c,o+28)},ui=function(c,o,l){var b=dt(c,o+28),F=tn(c.subarray(o+46,o+46+b),!(dt(c,o+8)&2048)),C=o+46+b,T=At(c,o+20),Z=l&&T==4294967295?On(c,C):[T,At(c,o+24),At(c,o+42)],ae=Z[0],_e=Z[1],$e=Z[2];return[dt(c,o+10),ae,_e,F,C+dt(c,o+30)+dt(c,o+32),$e]},On=function(c,o){for(;dt(c,o)!=1;o+=4+dt(c,o+2));return[Me(c,o+12),Me(c,o+4),Me(c,o+20)]},on=function(c){var o=0;if(c)for(var l in c){var b=c[l].length;b>65535&&Ce(9),o+=b+4}return o},Kt=function(c,o,l,b,F,C,T,Z){var ae=b.length,_e=l.extra,$e=Z&&Z.length,Ze=on(_e);De(c,o,T!=null?33639248:67324752),o+=4,T!=null&&(c[o++]=20,c[o++]=l.os),c[o]=20,o+=2,c[o++]=l.flag<<1|(C<0&&8),c[o++]=F&&8,c[o++]=l.compression&255,c[o++]=l.compression>>8;var st=new Date(l.mtime==null?Date.now():l.mtime),be=st.getFullYear()-1980;if((be<0||be>119)&&Ce(10),De(c,o,be<<25|st.getMonth()+1<<21|st.getDate()<<16|st.getHours()<<11|st.getMinutes()<<5|st.getSeconds()>>1),o+=4,C!=-1&&(De(c,o,l.crc),De(c,o+4,C<0?-C-2:C),De(c,o+8,l.size)),De(c,o+12,ae),De(c,o+14,Ze),o+=16,T!=null&&(De(c,o,$e),De(c,o+6,l.attrs),De(c,o+10,T),o+=14),c.set(b,o),o+=ae,Ze)for(var Lt in _e){var wt=_e[Lt],kt=wt.length;De(c,o,+Lt),De(c,o+2,kt),c.set(wt,o+4),o+=4+kt}return $e&&(c.set(Z,o),o+=$e),o},Zt=function(c,o,l,b,F){De(c,o,101010256),De(c,o+8,l),De(c,o+10,l),De(c,o+12,b),De(c,o+16,F)},qt=null,er=null,Xt=null,Ur=null;function Mr(c,o,l){l||(l=o,o={}),typeof l!="function"&&Ce(7);var b={};pr(c,"",b,o);var F=Object.keys(b),C=F.length,T=0,Z=0,ae=C,_e=new Array(C),$e=[],Ze=function(){for(var kt=0;kt<$e.length;++kt)$e[kt]()},st=function(kt,pt){Ci(function(){l(kt,pt)})};Ci(function(){st=l});var be=function(){var kt=new Oe(Z+22),pt=T,Dt=Z-T;Z=0;for(var ar=0;ar<ae;++ar){var wr=_e[ar];try{var Qr=wr.c.length;Kt(kt,Z,wr,wr.f,wr.u,Qr);var hn=30+wr.f.length+on(wr.extra),_r=Z+hn;kt.set(wr.c,_r),Kt(kt,T,wr,wr.f,wr.u,Qr,Z,wr.m),T+=16+hn+(wr.m?wr.m.length:0),Z=_r+Qr}catch(Vt){return st(Vt,null)}}Zt(kt,T,_e.length,Dt,pt),st(null,kt)};C||be();for(var Lt=function(kt){var pt=F[kt],Dt=b[pt],ar=Dt[0],wr=Dt[1],Qr=or(),hn=ar.length;Qr.p(ar);var _r=mn(pt),Vt=_r.length,Lr=wr.comment,Jr=Lr&&mn(Lr),vt=Jr&&Jr.length,Ct=on(wr.extra),rr=wr.level==0?0:8,U=function(ee,Se){if(ee)Ze(),st(ee,null);else{var Te=Se.length;_e[kt]=L(wr,{size:hn,crc:Qr.d(),c:Se,f:_r,m:Jr,u:Vt!=pt.length||Jr&&Lr.length!=vt,compression:rr}),T+=30+Vt+Ct+Te,Z+=76+2*(Vt+Ct)+(vt||0)+Te,--C||be()}};if(Vt>65535&&U(Ce(11,0,1),null),!rr)U(null,ar);else if(hn<16e4)try{U(null,$r(ar,wr))}catch(ee){U(ee,null)}else $e.push(lr(ar,wr,U))},wt=0;wt<ae;++wt)Lt(wt);return Ze}function Gr(c,o){o||(o={});var l={},b=[];pr(c,"",l,o);var F=0,C=0;for(var T in l){var Z=l[T],ae=Z[0],_e=Z[1],$e=_e.level==0?0:8,Ze=mn(T),st=Ze.length,be=_e.comment,Lt=be&&mn(be),wt=Lt&&Lt.length,kt=on(_e.extra);st>65535&&Ce(11);var pt=$e?$r(ae,_e):ae,Dt=pt.length,ar=or();ar.p(ae),b.push(L(_e,{size:ae.length,crc:ar.d(),c:pt,f:Ze,m:Lt,u:st!=T.length||Lt&&be.length!=wt,o:F,compression:$e})),F+=30+st+kt+Dt,C+=76+2*(st+kt)+(wt||0)+Dt}for(var wr=new Oe(C+22),Qr=F,hn=C-F,_r=0;_r<b.length;++_r){var Ze=b[_r];Kt(wr,Ze.o,Ze,Ze.f,Ze.u,Ze.c.length);var Vt=30+Ze.f.length+on(Ze.extra);wr.set(Ze.c,Ze.o+Vt),Kt(wr,F,Ze,Ze.f,Ze.u,Ze.c.length,Ze.o,Ze.m),F+=16+Vt+(Ze.m?Ze.m.length:0)}return Zt(wr,F,b.length,hn,Qr),wr}var Mn=null,Pn=null,si=null,ei=null,Ci=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(c){c()};function Yn(c,o,l){l||(l=o,o={}),typeof l!="function"&&Ce(7);var b=[],F=function(){for(var kt=0;kt<b.length;++kt)b[kt]()},C={},T=function(kt,pt){Ci(function(){l(kt,pt)})};Ci(function(){T=l});for(var Z=c.length-22;At(c,Z)!=101010256;--Z)if(!Z||c.length-Z>65558)return T(Ce(13,0,1),null),F;var ae=dt(c,Z+8);if(ae){var _e=ae,$e=At(c,Z+16),Ze=$e==4294967295||_e==65535;if(Ze){var st=At(c,Z-12);Ze=At(c,st)==101075792,Ze&&(_e=ae=At(c,st+32),$e=At(c,st+48))}for(var be=o&&o.filter,Lt=function(kt){var pt=ui(c,$e,Ze),Dt=pt[0],ar=pt[1],wr=pt[2],Qr=pt[3],hn=pt[4],_r=pt[5],Vt=Qn(c,_r);$e=hn;var Lr=function(vt,Ct){vt?(F(),T(vt,null)):(Ct&&(C[Qr]=Ct),--ae||T(null,C))};if(!be||be({name:Qr,size:ar,originalSize:wr,compression:Dt}))if(!Dt)Lr(null,D(c,Vt,Vt+ar));else if(Dt==8){var Jr=c.subarray(Vt,Vt+ar);if(wr<524288||ar>.8*wr)try{Lr(null,In(Jr,{out:new Oe(wr)}))}catch(vt){Lr(vt,null)}else b.push(cn(Jr,{size:wr},Lr))}else Lr(Ce(14,"unknown compression type "+Dt,1),null);else Lr(null,null)},wt=0;wt<_e;++wt)Lt(wt)}else T(null,{});return F}function Hn(c,o){for(var l={},b=c.length-22;At(c,b)!=101010256;--b)(!b||c.length-b>65558)&&Ce(13);var F=dt(c,b+8);if(!F)return{};var C=At(c,b+16),T=C==4294967295||F==65535;if(T){var Z=At(c,b-12);T=At(c,Z)==101075792,T&&(F=At(c,Z+32),C=At(c,Z+48))}for(var ae=o&&o.filter,_e=0;_e<F;++_e){var $e=ui(c,C,T),Ze=$e[0],st=$e[1],be=$e[2],Lt=$e[3],wt=$e[4],kt=$e[5],pt=Qn(c,kt);C=wt,(!ae||ae({name:Lt,size:st,originalSize:be,compression:Ze}))&&(Ze?Ze==8?l[Lt]=In(c.subarray(pt,pt+st),{out:new Oe(be)}):Ce(14,"unknown compression type "+Ze):l[Lt]=D(c,pt,pt+st))}return l}var an=function(){return typeof window!="undefined"?window:typeof x.g!="undefined"?x.g:typeof self!="undefined"?self:this}();function pi(){an.console&&typeof an.console.log=="function"&&an.console.log.apply(an.console,arguments)}var Ln={log:pi,warn:function(c){an.console&&(typeof an.console.warn=="function"?an.console.warn.apply(an.console,arguments):pi.call(null,arguments))},error:function(c){an.console&&(typeof an.console.error=="function"?an.console.error.apply(an.console,arguments):pi(c))}};function ni(c,o,l){var b=new XMLHttpRequest;b.open("GET",c),b.responseType="blob",b.onload=function(){ra(b.response,o,l)},b.onerror=function(){Ln.error("could not download file")},b.send()}function vi(c){var o=new XMLHttpRequest;o.open("HEAD",c,!1);try{o.send()}catch(l){}return o.status>=200&&o.status<=299}function Mi(c){try{c.dispatchEvent(new MouseEvent("click"))}catch(l){var o=document.createEvent("MouseEvents");o.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(o)}}var Jn,_i,ra=an.saveAs||((typeof window=="undefined"?"undefined":(0,ge.Z)(window))!=="object"||window!==an?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(c,o,l){var b=an.URL||an.webkitURL,F=document.createElement("a");o=o||c.name||"download",F.download=o,F.rel="noopener",typeof c=="string"?(F.href=c,F.origin!==location.origin?vi(F.href)?ni(c,o,l):Mi(F,F.target="_blank"):Mi(F)):(F.href=b.createObjectURL(c),setTimeout(function(){b.revokeObjectURL(F.href)},4e4),setTimeout(function(){Mi(F)},0))}:"msSaveOrOpenBlob"in navigator?function(c,o,l){if(o=o||c.name||"download",typeof c=="string")if(vi(c))ni(c,o,l);else{var b=document.createElement("a");b.href=c,b.target="_blank",setTimeout(function(){Mi(b)})}else navigator.msSaveOrOpenBlob(function(F,C){return C===void 0?C={autoBom:!1}:(0,ge.Z)(C)!=="object"&&(Ln.warn("Deprecated: Expected third argument to be a object"),C={autoBom:!C}),C.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(F.type)?new Blob(["\uFEFF",F],{type:F.type}):F}(c,l),o)}:function(c,o,l,b){if((b=b||open("","_blank"))&&(b.document.title=b.document.body.innerText="downloading..."),typeof c=="string")return ni(c,o,l);var F=c.type==="application/octet-stream",C=/constructor/i.test(an.HTMLElement)||an.safari,T=/CriOS\/[\d]+/.test(navigator.userAgent);if((T||F&&C)&&(typeof FileReader=="undefined"?"undefined":(0,ge.Z)(FileReader))==="object"){var Z=new FileReader;Z.onloadend=function(){var $e=Z.result;$e=T?$e:$e.replace(/^data:[^;]*;/,"data:attachment/file;"),b?b.location.href=$e:location=$e,b=null},Z.readAsDataURL(c)}else{var ae=an.URL||an.webkitURL,_e=ae.createObjectURL(c);b?b.location=_e:location.href=_e,b=null,setTimeout(function(){ae.revokeObjectURL(_e)},4e4)}});function ai(c){var o;c=c||"",this.ok=!1,c.charAt(0)=="#"&&(c=c.substr(1,6)),c={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[c=(c=c.replace(/ /g,"")).toLowerCase()]||c;for(var l=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(Z){return[parseInt(Z[1]),parseInt(Z[2]),parseInt(Z[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(Z){return[parseInt(Z[1],16),parseInt(Z[2],16),parseInt(Z[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(Z){return[parseInt(Z[1]+Z[1],16),parseInt(Z[2]+Z[2],16),parseInt(Z[3]+Z[3],16)]}}],b=0;b<l.length;b++){var F=l[b].re,C=l[b].process,T=F.exec(c);T&&(o=C(T),this.r=o[0],this.g=o[1],this.b=o[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var Z=this.r.toString(16),ae=this.g.toString(16),_e=this.b.toString(16);return Z.length==1&&(Z="0"+Z),ae.length==1&&(ae="0"+ae),_e.length==1&&(_e="0"+_e),"#"+Z+ae+_e}}function An(c,o){var l=c[0],b=c[1],F=c[2],C=c[3];l=Tn(l,b,F,C,o[0],7,-680876936),C=Tn(C,l,b,F,o[1],12,-389564586),F=Tn(F,C,l,b,o[2],17,606105819),b=Tn(b,F,C,l,o[3],22,-1044525330),l=Tn(l,b,F,C,o[4],7,-176418897),C=Tn(C,l,b,F,o[5],12,1200080426),F=Tn(F,C,l,b,o[6],17,-1473231341),b=Tn(b,F,C,l,o[7],22,-45705983),l=Tn(l,b,F,C,o[8],7,1770035416),C=Tn(C,l,b,F,o[9],12,-1958414417),F=Tn(F,C,l,b,o[10],17,-42063),b=Tn(b,F,C,l,o[11],22,-1990404162),l=Tn(l,b,F,C,o[12],7,1804603682),C=Tn(C,l,b,F,o[13],12,-40341101),F=Tn(F,C,l,b,o[14],17,-1502002290),l=wn(l,b=Tn(b,F,C,l,o[15],22,1236535329),F,C,o[1],5,-165796510),C=wn(C,l,b,F,o[6],9,-1069501632),F=wn(F,C,l,b,o[11],14,643717713),b=wn(b,F,C,l,o[0],20,-373897302),l=wn(l,b,F,C,o[5],5,-701558691),C=wn(C,l,b,F,o[10],9,38016083),F=wn(F,C,l,b,o[15],14,-660478335),b=wn(b,F,C,l,o[4],20,-405537848),l=wn(l,b,F,C,o[9],5,568446438),C=wn(C,l,b,F,o[14],9,-1019803690),F=wn(F,C,l,b,o[3],14,-187363961),b=wn(b,F,C,l,o[8],20,1163531501),l=wn(l,b,F,C,o[13],5,-1444681467),C=wn(C,l,b,F,o[2],9,-51403784),F=wn(F,C,l,b,o[7],14,1735328473),l=jn(l,b=wn(b,F,C,l,o[12],20,-1926607734),F,C,o[5],4,-378558),C=jn(C,l,b,F,o[8],11,-2022574463),F=jn(F,C,l,b,o[11],16,1839030562),b=jn(b,F,C,l,o[14],23,-35309556),l=jn(l,b,F,C,o[1],4,-1530992060),C=jn(C,l,b,F,o[4],11,1272893353),F=jn(F,C,l,b,o[7],16,-155497632),b=jn(b,F,C,l,o[10],23,-1094730640),l=jn(l,b,F,C,o[13],4,681279174),C=jn(C,l,b,F,o[0],11,-358537222),F=jn(F,C,l,b,o[3],16,-722521979),b=jn(b,F,C,l,o[6],23,76029189),l=jn(l,b,F,C,o[9],4,-640364487),C=jn(C,l,b,F,o[12],11,-421815835),F=jn(F,C,l,b,o[15],16,530742520),l=ci(l,b=jn(b,F,C,l,o[2],23,-995338651),F,C,o[0],6,-198630844),C=ci(C,l,b,F,o[7],10,1126891415),F=ci(F,C,l,b,o[14],15,-1416354905),b=ci(b,F,C,l,o[5],21,-57434055),l=ci(l,b,F,C,o[12],6,1700485571),C=ci(C,l,b,F,o[3],10,-1894986606),F=ci(F,C,l,b,o[10],15,-1051523),b=ci(b,F,C,l,o[1],21,-2054922799),l=ci(l,b,F,C,o[8],6,1873313359),C=ci(C,l,b,F,o[15],10,-30611744),F=ci(F,C,l,b,o[6],15,-1560198380),b=ci(b,F,C,l,o[13],21,1309151649),l=ci(l,b,F,C,o[4],6,-145523070),C=ci(C,l,b,F,o[11],10,-1120210379),F=ci(F,C,l,b,o[2],15,718787259),b=ci(b,F,C,l,o[9],21,-343485551),c[0]=Ei(l,c[0]),c[1]=Ei(b,c[1]),c[2]=Ei(F,c[2]),c[3]=Ei(C,c[3])}function rn(c,o,l,b,F,C){return o=Ei(Ei(o,c),Ei(b,C)),Ei(o<<F|o>>>32-F,l)}function Tn(c,o,l,b,F,C,T){return rn(o&l|~o&b,c,o,F,C,T)}function wn(c,o,l,b,F,C,T){return rn(o&b|l&~b,c,o,F,C,T)}function jn(c,o,l,b,F,C,T){return rn(o^l^b,c,o,F,C,T)}function ci(c,o,l,b,F,C,T){return rn(l^(o|~b),c,o,F,C,T)}function Bi(c){var o,l=c.length,b=[1732584193,-271733879,-1732584194,271733878];for(o=64;o<=c.length;o+=64)An(b,Aa(c.substring(o-64,o)));c=c.substring(o-64);var F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(o=0;o<c.length;o++)F[o>>2]|=c.charCodeAt(o)<<(o%4<<3);if(F[o>>2]|=128<<(o%4<<3),o>55)for(An(b,F),o=0;o<16;o++)F[o]=0;return F[14]=8*l,An(b,F),b}function Aa(c){var o,l=[];for(o=0;o<64;o+=4)l[o>>2]=c.charCodeAt(o)+(c.charCodeAt(o+1)<<8)+(c.charCodeAt(o+2)<<16)+(c.charCodeAt(o+3)<<24);return l}Jn=an.atob.bind(an),_i=an.btoa.bind(an);var Yi="0123456789abcdef".split("");function ao(c){for(var o="",l=0;l<4;l++)o+=Yi[c>>8*l+4&15]+Yi[c>>8*l&15];return o}function ti(c){return String.fromCharCode((255&c)>>0,(65280&c)>>8,(16711680&c)>>16,(4278190080&c)>>24)}function Un(c){return Bi(c).map(ti).join("")}var Fi=function(c){for(var o=0;o<c.length;o++)c[o]=ao(c[o]);return c.join("")}(Bi("hello"))!="5d41402abc4b2a76b9719d911017c592";function Ei(c,o){if(Fi){var l=(65535&c)+(65535&o);return(c>>16)+(o>>16)+(l>>16)<<16|65535&l}return c+o&4294967295}function ha(c,o){var l,b,F,C;if(c!==l){for(var T=(F=c,C=1+(256/c.length>>0),new Array(C+1).join(F)),Z=[],ae=0;ae<256;ae++)Z[ae]=ae;var _e=0;for(ae=0;ae<256;ae++){var $e=Z[ae];_e=(_e+$e+T.charCodeAt(ae))%256,Z[ae]=Z[_e],Z[_e]=$e}l=c,b=Z}else Z=b;var Ze=o.length,st=0,be=0,Lt="";for(ae=0;ae<Ze;ae++)be=(be+($e=Z[st=(st+1)%256]))%256,Z[st]=Z[be],Z[be]=$e,T=Z[(Z[st]+Z[be])%256],Lt+=String.fromCharCode(o.charCodeAt(ae)^T);return Lt}var No={print:4,modify:8,copy:16,"annot-forms":32};function na(c,o,l,b){this.v=1,this.r=2;var F=192;c.forEach(function(Z){if(No.perm!==void 0)throw new Error("Invalid permission: "+Z);F+=No[Z]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var C=(o+this.padding).substr(0,32),T=(l+this.padding).substr(0,32);this.O=this.processOwnerPassword(C,T),this.P=-(1+(255^F)),this.encryptionKey=Un(C+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(b)).substr(0,5),this.U=ha(this.encryptionKey,this.padding)}function Ji(c){if(/[^\u0000-\u00ff]/.test(c))throw new Error("Invalid PDF Name Object: "+c+", Only accept ASCII characters.");for(var o="",l=c.length,b=0;b<l;b++){var F=c.charCodeAt(b);F<33||F===35||F===37||F===40||F===41||F===47||F===60||F===62||F===91||F===93||F===123||F===125||F>126?o+="#"+("0"+F.toString(16)).slice(-2):o+=c[b]}return o}function ja(c){if((0,ge.Z)(c)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var o={};this.subscribe=function(l,b,F){if(F=F||!1,typeof l!="string"||typeof b!="function"||typeof F!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");o.hasOwnProperty(l)||(o[l]={});var C=Math.random().toString(35);return o[l][C]=[b,!!F],C},this.unsubscribe=function(l){for(var b in o)if(o[b][l])return delete o[b][l],Object.keys(o[b]).length===0&&delete o[b],!0;return!1},this.publish=function(l){if(o.hasOwnProperty(l)){var b=Array.prototype.slice.call(arguments,1),F=[];for(var C in o[l]){var T=o[l][C];try{T[0].apply(c,b)}catch(Z){an.console&&Ln.error("jsPDF PubSub Error",Z.message,Z)}T[1]&&F.push(C)}F.length&&F.forEach(this.unsubscribe)}},this.getTopics=function(){return o}}function La(c){if(!(this instanceof La))return new La(c);var o="opacity,stroke-opacity".split(",");for(var l in c)c.hasOwnProperty(l)&&o.indexOf(l)>=0&&(this[l]=c[l]);this.id="",this.objectNumber=-1}function eo(c,o){this.gState=c,this.matrix=o,this.id="",this.objectNumber=-1}function vo(c,o,l,b,F){if(!(this instanceof vo))return new vo(c,o,l,b,F);this.type=c==="axial"?2:3,this.coords=o,this.colors=l,eo.call(this,b,F)}function wa(c,o,l,b,F){if(!(this instanceof wa))return new wa(c,o,l,b,F);this.boundingBox=c,this.xStep=o,this.yStep=l,this.stream="",this.cloneIndex=0,eo.call(this,b,F)}function Ai(c){var o,l=typeof arguments[0]=="string"?arguments[0]:"p",b=arguments[1],F=arguments[2],C=arguments[3],T=[],Z=1,ae=16,_e="S",$e=null;(0,ge.Z)(c=c||{})==="object"&&(l=c.orientation,b=c.unit||b,F=c.format||F,C=c.compress||c.compressPdf||C,($e=c.encryption||null)!==null&&($e.userPassword=$e.userPassword||"",$e.ownerPassword=$e.ownerPassword||"",$e.userPermissions=$e.userPermissions||[]),Z=typeof c.userUnit=="number"?Math.abs(c.userUnit):1,c.precision!==void 0&&(o=c.precision),c.floatPrecision!==void 0&&(ae=c.floatPrecision),_e=c.defaultPathOperation||"S"),T=c.filters||(C===!0?["FlateEncode"]:T),b=b||"mm",l=(""+(l||"P")).toLowerCase();var Ze=c.putOnlyUsedFonts||!1,st={},be={internal:{},__private__:{}};be.__private__.PubSub=ja;var Lt="1.3",wt=be.__private__.getPdfVersion=function(){return Lt};be.__private__.setPdfVersion=function(P){Lt=P};var kt={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};be.__private__.getPageFormats=function(){return kt};var pt=be.__private__.getPageFormat=function(P){return kt[P]};F=F||"a4";var Dt={COMPAT:"compat",ADVANCED:"advanced"},ar=Dt.COMPAT;function wr(){this.saveGraphicsState(),yt(new ki(vn,0,0,-vn,0,Rc()*vn).toString()+" cm"),this.setFontSize(this.getFontSize()/vn),_e="n",ar=Dt.ADVANCED}function Qr(){this.restoreGraphicsState(),_e="S",ar=Dt.COMPAT}var hn=be.__private__.combineFontStyleAndFontWeight=function(P,We){if(P=="bold"&&We=="normal"||P=="bold"&&We==400||P=="normal"&&We=="italic"||P=="bold"&&We=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return We&&(P=We==400||We==="normal"?P==="italic"?"italic":"normal":We!=700&&We!=="bold"||P!=="normal"?(We==700?"bold":We)+""+P:"bold"),P};be.advancedAPI=function(P){var We=ar===Dt.COMPAT;return We&&wr.call(this),typeof P!="function"||(P(this),We&&Qr.call(this)),this},be.compatAPI=function(P){var We=ar===Dt.ADVANCED;return We&&Qr.call(this),typeof P!="function"||(P(this),We&&wr.call(this)),this},be.isAdvancedAPI=function(){return ar===Dt.ADVANCED};var _r,Vt=function(P){if(ar!==Dt.ADVANCED)throw new Error(P+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Lr=be.roundToPrecision=be.__private__.roundToPrecision=function(P,We){var Mt=o||We;if(isNaN(P)||isNaN(Mt))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return P.toFixed(Mt).replace(/0+$/,"")};_r=be.hpf=be.__private__.hpf=typeof ae=="number"?function(P){if(isNaN(P))throw new Error("Invalid argument passed to jsPDF.hpf");return Lr(P,ae)}:ae==="smart"?function(P){if(isNaN(P))throw new Error("Invalid argument passed to jsPDF.hpf");return Lr(P,P>-1&&P<1?16:5)}:function(P){if(isNaN(P))throw new Error("Invalid argument passed to jsPDF.hpf");return Lr(P,16)};var Jr=be.f2=be.__private__.f2=function(P){if(isNaN(P))throw new Error("Invalid argument passed to jsPDF.f2");return Lr(P,2)},vt=be.__private__.f3=function(P){if(isNaN(P))throw new Error("Invalid argument passed to jsPDF.f3");return Lr(P,3)},Ct=be.scale=be.__private__.scale=function(P){if(isNaN(P))throw new Error("Invalid argument passed to jsPDF.scale");return ar===Dt.COMPAT?P*vn:ar===Dt.ADVANCED?P:void 0},rr=function(P){return ar===Dt.COMPAT?Rc()-P:ar===Dt.ADVANCED?P:void 0},U=function(P){return Ct(rr(P))};be.__private__.setPrecision=be.setPrecision=function(P){typeof parseInt(P,10)=="number"&&(o=parseInt(P,10))};var ee,Se="00000000000000000000000000000000",Te=be.__private__.getFileId=function(){return Se},He=be.__private__.setFileId=function(P){return Se=P!==void 0&&/^[a-fA-F0-9]{32}$/.test(P)?P.toUpperCase():Se.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),$e!==null&&(Fs=new na($e.userPermissions,$e.userPassword,$e.ownerPassword,Se)),Se};be.setFileId=function(P){return He(P),this},be.getFileId=function(){return Te()};var Xe=be.__private__.convertDateToPDFDate=function(P){var We=P.getTimezoneOffset(),Mt=We<0?"+":"-",Jt=Math.floor(Math.abs(We/60)),yr=Math.abs(We%60),Xr=[Mt,Ye(Jt),"'",Ye(yr),"'"].join("");return["D:",P.getFullYear(),Ye(P.getMonth()+1),Ye(P.getDate()),Ye(P.getHours()),Ye(P.getMinutes()),Ye(P.getSeconds()),Xr].join("")},ht=be.__private__.convertPDFDateToDate=function(P){var We=parseInt(P.substr(2,4),10),Mt=parseInt(P.substr(6,2),10)-1,Jt=parseInt(P.substr(8,2),10),yr=parseInt(P.substr(10,2),10),Xr=parseInt(P.substr(12,2),10),Sn=parseInt(P.substr(14,2),10);return new Date(We,Mt,Jt,yr,Xr,Sn,0)},St=be.__private__.setCreationDate=function(P){var We;if(P===void 0&&(P=new Date),P instanceof Date)We=Xe(P);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(P))throw new Error("Invalid argument passed to jsPDF.setCreationDate");We=P}return ee=We},Ae=be.__private__.getCreationDate=function(P){var We=ee;return P==="jsDate"&&(We=ht(ee)),We};be.setCreationDate=function(P){return St(P),this},be.getCreationDate=function(P){return Ae(P)};var Re,Ye=be.__private__.padd2=function(P){return("0"+parseInt(P)).slice(-2)},et=be.__private__.padd2Hex=function(P){return("00"+(P=P.toString())).substr(P.length)},bt=0,_t=[],It=[],Rt=0,ur=[],fr=[],gr=!1,Sr=It,dn=function(){bt=0,Rt=0,It=[],_t=[],ur=[],qr=no(),fa=no()};be.__private__.setCustomOutputDestination=function(P){gr=!0,Sr=P};var Ar=function(P){gr||(Sr=P)};be.__private__.resetCustomOutputDestination=function(){gr=!1,Sr=It};var yt=be.__private__.out=function(P){return P=P.toString(),Rt+=P.length+1,Sr.push(P),Sr},_n=be.__private__.write=function(P){return yt(arguments.length===1?P.toString():Array.prototype.join.call(arguments," "))},gn=be.__private__.getArrayBuffer=function(P){for(var We=P.length,Mt=new ArrayBuffer(We),Jt=new Uint8Array(Mt);We--;)Jt[We]=P.charCodeAt(We);return Mt},vr=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];be.__private__.getStandardFonts=function(){return vr};var Nr=c.fontSize||16;be.__private__.setFontSize=be.setFontSize=function(P){return Nr=ar===Dt.ADVANCED?P/vn:P,this};var Or,br=be.__private__.getFontSize=be.getFontSize=function(){return ar===Dt.COMPAT?Nr:Nr*vn},Zr=c.R2L||!1;be.__private__.setR2L=be.setR2L=function(P){return Zr=P,this},be.__private__.getR2L=be.getR2L=function(){return Zr};var Cn,Xn=be.__private__.setZoomMode=function(P){var We=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(P))Or=P;else if(isNaN(P)){if(We.indexOf(P)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+P+'" is not recognized.');Or=P}else Or=parseInt(P,10)};be.__private__.getZoomMode=function(){return Or};var Vn,Nn=be.__private__.setPageMode=function(P){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(P)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+P+'" is not recognized.');Cn=P};be.__private__.getPageMode=function(){return Cn};var di=be.__private__.setLayoutMode=function(P){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(P)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+P+'" is not recognized.');Vn=P};be.__private__.getLayoutMode=function(){return Vn},be.__private__.setDisplayMode=be.setDisplayMode=function(P,We,Mt){return Xn(P),di(We),Nn(Mt),this};var zn={title:"",subject:"",author:"",keywords:"",creator:""};be.__private__.getDocumentProperty=function(P){if(Object.keys(zn).indexOf(P)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return zn[P]},be.__private__.getDocumentProperties=function(){return zn},be.__private__.setDocumentProperties=be.setProperties=be.setDocumentProperties=function(P){for(var We in zn)zn.hasOwnProperty(We)&&P[We]&&(zn[We]=P[We]);return this},be.__private__.setDocumentProperty=function(P,We){if(Object.keys(zn).indexOf(P)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return zn[P]=We};var Li,vn,Fa,ji,Ri,ia={},Hi={},Ka=[],Gi={},As={},Bn={},fi={},mi=null,Zn=0,oi=[],kn=new ja(be),Ki=c.hotfixes||[],Xi={},qi={},Mo=[],ki=function P(We,Mt,Jt,yr,Xr,Sn){if(!(this instanceof P))return new P(We,Mt,Jt,yr,Xr,Sn);isNaN(We)&&(We=1),isNaN(Mt)&&(Mt=0),isNaN(Jt)&&(Jt=0),isNaN(yr)&&(yr=1),isNaN(Xr)&&(Xr=0),isNaN(Sn)&&(Sn=0),this._matrix=[We,Mt,Jt,yr,Xr,Sn]};Object.defineProperty(ki.prototype,"sx",{get:function(){return this._matrix[0]},set:function(P){this._matrix[0]=P}}),Object.defineProperty(ki.prototype,"shy",{get:function(){return this._matrix[1]},set:function(P){this._matrix[1]=P}}),Object.defineProperty(ki.prototype,"shx",{get:function(){return this._matrix[2]},set:function(P){this._matrix[2]=P}}),Object.defineProperty(ki.prototype,"sy",{get:function(){return this._matrix[3]},set:function(P){this._matrix[3]=P}}),Object.defineProperty(ki.prototype,"tx",{get:function(){return this._matrix[4]},set:function(P){this._matrix[4]=P}}),Object.defineProperty(ki.prototype,"ty",{get:function(){return this._matrix[5]},set:function(P){this._matrix[5]=P}}),Object.defineProperty(ki.prototype,"a",{get:function(){return this._matrix[0]},set:function(P){this._matrix[0]=P}}),Object.defineProperty(ki.prototype,"b",{get:function(){return this._matrix[1]},set:function(P){this._matrix[1]=P}}),Object.defineProperty(ki.prototype,"c",{get:function(){return this._matrix[2]},set:function(P){this._matrix[2]=P}}),Object.defineProperty(ki.prototype,"d",{get:function(){return this._matrix[3]},set:function(P){this._matrix[3]=P}}),Object.defineProperty(ki.prototype,"e",{get:function(){return this._matrix[4]},set:function(P){this._matrix[4]=P}}),Object.defineProperty(ki.prototype,"f",{get:function(){return this._matrix[5]},set:function(P){this._matrix[5]=P}}),Object.defineProperty(ki.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ki.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ki.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ki.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),ki.prototype.join=function(P){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(_r).join(P)},ki.prototype.multiply=function(P){var We=P.sx*this.sx+P.shy*this.shx,Mt=P.sx*this.shy+P.shy*this.sy,Jt=P.shx*this.sx+P.sy*this.shx,yr=P.shx*this.shy+P.sy*this.sy,Xr=P.tx*this.sx+P.ty*this.shx+this.tx,Sn=P.tx*this.shy+P.ty*this.sy+this.ty;return new ki(We,Mt,Jt,yr,Xr,Sn)},ki.prototype.decompose=function(){var P=this.sx,We=this.shy,Mt=this.shx,Jt=this.sy,yr=this.tx,Xr=this.ty,Sn=Math.sqrt(P*P+We*We),Di=(P/=Sn)*Mt+(We/=Sn)*Jt;Mt-=P*Di,Jt-=We*Di;var ta=Math.sqrt(Mt*Mt+Jt*Jt);return Di/=ta,P*(Jt/=ta)<We*(Mt/=ta)&&(P=-P,We=-We,Di=-Di,Sn=-Sn),{scale:new ki(Sn,0,0,ta,0,0),translate:new ki(1,0,0,1,yr,Xr),rotate:new ki(P,We,-We,P,0,0),skew:new ki(1,0,Di,1,0,0)}},ki.prototype.toString=function(P){return this.join(" ")},ki.prototype.inversed=function(){var P=this.sx,We=this.shy,Mt=this.shx,Jt=this.sy,yr=this.tx,Xr=this.ty,Sn=1/(P*Jt-We*Mt),Di=Jt*Sn,ta=-We*Sn,Na=-Mt*Sn,Ia=P*Sn;return new ki(Di,ta,Na,Ia,-Di*yr-Na*Xr,-ta*yr-Ia*Xr)},ki.prototype.applyToPoint=function(P){var We=P.x*this.sx+P.y*this.shx+this.tx,Mt=P.x*this.shy+P.y*this.sy+this.ty;return new oc(We,Mt)},ki.prototype.applyToRectangle=function(P){var We=this.applyToPoint(P),Mt=this.applyToPoint(new oc(P.x+P.w,P.y+P.h));return new Ku(We.x,We.y,Mt.x-We.x,Mt.y-We.y)},ki.prototype.clone=function(){var P=this.sx,We=this.shy,Mt=this.shx,Jt=this.sy,yr=this.tx,Xr=this.ty;return new ki(P,We,Mt,Jt,yr,Xr)},be.Matrix=ki;var ns=be.matrixMult=function(P,We){return We.multiply(P)},ro=new ki(1,0,0,1,0,0);be.unitMatrix=be.identityMatrix=ro;var Qo=function(P,We){if(!As[P]){var Mt=(We instanceof vo?"Sh":"P")+(Object.keys(Gi).length+1).toString(10);We.id=Mt,As[P]=Mt,Gi[Mt]=We,kn.publish("addPattern",We)}};be.ShadingPattern=vo,be.TilingPattern=wa,be.addShadingPattern=function(P,We){return Vt("addShadingPattern()"),Qo(P,We),this},be.beginTilingPattern=function(P){Vt("beginTilingPattern()"),Is(P.boundingBox[0],P.boundingBox[1],P.boundingBox[2]-P.boundingBox[0],P.boundingBox[3]-P.boundingBox[1],P.matrix)},be.endTilingPattern=function(P,We){Vt("endTilingPattern()"),We.stream=fr[Re].join(`
`),Qo(P,We),kn.publish("endTilingPattern",We),Mo.pop().restore()};var bn=be.__private__.newObject=function(){var P=no();return Cs(P,!0),P},no=be.__private__.newObjectDeferred=function(){return bt++,_t[bt]=function(){return Rt},bt},Cs=function(P,We){return We=typeof We=="boolean"&&We,_t[P]=Rt,We&&yt(P+" 0 obj"),P},ga=be.__private__.newAdditionalObject=function(){var P={objId:no(),content:""};return ur.push(P),P},qr=no(),fa=no(),so=be.__private__.decodeColorString=function(P){var We=P.split(" ");if(We.length!==2||We[1]!=="g"&&We[1]!=="G")We.length===5&&(We[4]==="k"||We[4]==="K")&&(We=[(1-We[0])*(1-We[3]),(1-We[1])*(1-We[3]),(1-We[2])*(1-We[3]),"r"]);else{var Mt=parseFloat(We[0]);We=[Mt,Mt,Mt,"r"]}for(var Jt="#",yr=0;yr<3;yr++)Jt+=("0"+Math.floor(255*parseFloat(We[yr])).toString(16)).slice(-2);return Jt},Va=be.__private__.encodeColorString=function(P){var We;typeof P=="string"&&(P={ch1:P});var Mt=P.ch1,Jt=P.ch2,yr=P.ch3,Xr=P.ch4,Sn=P.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Mt=="string"&&Mt.charAt(0)!=="#"){var Di=new ai(Mt);if(Di.ok)Mt=Di.toHex();else if(!/^\d*\.?\d*$/.test(Mt))throw new Error('Invalid color "'+Mt+'" passed to jsPDF.encodeColorString.')}if(typeof Mt=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Mt)&&(Mt="#"+Mt[1]+Mt[1]+Mt[2]+Mt[2]+Mt[3]+Mt[3]),typeof Mt=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Mt)){var ta=parseInt(Mt.substr(1),16);Mt=ta>>16&255,Jt=ta>>8&255,yr=255&ta}if(Jt===void 0||Xr===void 0&&Mt===Jt&&Jt===yr)if(typeof Mt=="string")We=Mt+" "+Sn[0];else switch(P.precision){case 2:We=Jr(Mt/255)+" "+Sn[0];break;case 3:default:We=vt(Mt/255)+" "+Sn[0]}else if(Xr===void 0||(0,ge.Z)(Xr)==="object"){if(Xr&&!isNaN(Xr.a)&&Xr.a===0)return We=["1.","1.","1.",Sn[1]].join(" ");if(typeof Mt=="string")We=[Mt,Jt,yr,Sn[1]].join(" ");else switch(P.precision){case 2:We=[Jr(Mt/255),Jr(Jt/255),Jr(yr/255),Sn[1]].join(" ");break;default:case 3:We=[vt(Mt/255),vt(Jt/255),vt(yr/255),Sn[1]].join(" ")}}else if(typeof Mt=="string")We=[Mt,Jt,yr,Xr,Sn[2]].join(" ");else switch(P.precision){case 2:We=[Jr(Mt),Jr(Jt),Jr(yr),Jr(Xr),Sn[2]].join(" ");break;case 3:default:We=[vt(Mt),vt(Jt),vt(yr),vt(Xr),Sn[2]].join(" ")}return We},Ii=be.__private__.getFilters=function(){return T},bo=be.__private__.putStream=function(P){var We=(P=P||{}).data||"",Mt=P.filters||Ii(),Jt=P.alreadyAppliedFilters||[],yr=P.addLength1||!1,Xr=We.length,Sn=P.objectId,Di=function(hs){return hs};if($e!==null&&Sn===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");$e!==null&&(Di=Fs.encryptor(Sn,0));var ta={};Mt===!0&&(Mt=["FlateEncode"]);var Na=P.additionalKeyValues||[],Ia=(ta=Ai.API.processDataByFilters!==void 0?Ai.API.processDataByFilters(We,Mt):{data:We,reverseChain:[]}).reverseChain+(Array.isArray(Jt)?Jt.join(" "):Jt.toString());if(ta.data.length!==0&&(Na.push({key:"Length",value:ta.data.length}),yr===!0&&Na.push({key:"Length1",value:Xr})),Ia.length!=0)if(Ia.split("/").length-1==1)Na.push({key:"Filter",value:Ia});else{Na.push({key:"Filter",value:"["+Ia+"]"});for(var co=0;co<Na.length;co+=1)if(Na[co].key==="DecodeParms"){for(var aa=[],bs=0;bs<ta.reverseChain.split("/").length-1;bs+=1)aa.push("null");aa.push(Na[co].value),Na[co].value="["+aa.join(" ")+"]"}}yt("<<");for(var Ts=0;Ts<Na.length;Ts++)yt("/"+Na[Ts].key+" "+Na[Ts].value);yt(">>"),ta.data.length!==0&&(yt("stream"),yt(Di(ta.data)),yt("endstream"))},Ko=be.__private__.putPage=function(P){var We=P.number,Mt=P.data,Jt=P.objId,yr=P.contentsObjId;Cs(Jt,!0),yt("<</Type /Page"),yt("/Parent "+P.rootDictionaryObjId+" 0 R"),yt("/Resources "+P.resourceDictionaryObjId+" 0 R"),yt("/MediaBox ["+parseFloat(_r(P.mediaBox.bottomLeftX))+" "+parseFloat(_r(P.mediaBox.bottomLeftY))+" "+_r(P.mediaBox.topRightX)+" "+_r(P.mediaBox.topRightY)+"]"),P.cropBox!==null&&yt("/CropBox ["+_r(P.cropBox.bottomLeftX)+" "+_r(P.cropBox.bottomLeftY)+" "+_r(P.cropBox.topRightX)+" "+_r(P.cropBox.topRightY)+"]"),P.bleedBox!==null&&yt("/BleedBox ["+_r(P.bleedBox.bottomLeftX)+" "+_r(P.bleedBox.bottomLeftY)+" "+_r(P.bleedBox.topRightX)+" "+_r(P.bleedBox.topRightY)+"]"),P.trimBox!==null&&yt("/TrimBox ["+_r(P.trimBox.bottomLeftX)+" "+_r(P.trimBox.bottomLeftY)+" "+_r(P.trimBox.topRightX)+" "+_r(P.trimBox.topRightY)+"]"),P.artBox!==null&&yt("/ArtBox ["+_r(P.artBox.bottomLeftX)+" "+_r(P.artBox.bottomLeftY)+" "+_r(P.artBox.topRightX)+" "+_r(P.artBox.topRightY)+"]"),typeof P.userUnit=="number"&&P.userUnit!==1&&yt("/UserUnit "+P.userUnit),kn.publish("putPage",{objId:Jt,pageContext:oi[We],pageNumber:We,page:Mt}),yt("/Contents "+yr+" 0 R"),yt(">>"),yt("endobj");var Xr=Mt.join(`
`);return ar===Dt.ADVANCED&&(Xr+=`
Q`),Cs(yr,!0),bo({data:Xr,filters:Ii(),objectId:yr}),yt("endobj"),Jt},Bs=be.__private__.putPages=function(){var P,We,Mt=[];for(P=1;P<=Zn;P++)oi[P].objId=no(),oi[P].contentsObjId=no();for(P=1;P<=Zn;P++)Mt.push(Ko({number:P,data:fr[P],objId:oi[P].objId,contentsObjId:oi[P].contentsObjId,mediaBox:oi[P].mediaBox,cropBox:oi[P].cropBox,bleedBox:oi[P].bleedBox,trimBox:oi[P].trimBox,artBox:oi[P].artBox,userUnit:oi[P].userUnit,rootDictionaryObjId:qr,resourceDictionaryObjId:fa}));Cs(qr,!0),yt("<</Type /Pages");var Jt="/Kids [";for(We=0;We<Zn;We++)Jt+=Mt[We]+" 0 R ";yt(Jt+"]"),yt("/Count "+Zn),yt(">>"),yt("endobj"),kn.publish("postPutPages")},gs=function(P){kn.publish("putFont",{font:P,out:yt,newObject:bn,putStream:bo}),P.isAlreadyPutted!==!0&&(P.objectNumber=bn(),yt("<<"),yt("/Type /Font"),yt("/BaseFont /"+Ji(P.postScriptName)),yt("/Subtype /Type1"),typeof P.encoding=="string"&&yt("/Encoding /"+P.encoding),yt("/FirstChar 32"),yt("/LastChar 255"),yt(">>"),yt("endobj"))},is=function(){for(var P in ia)ia.hasOwnProperty(P)&&(Ze===!1||Ze===!0&&st.hasOwnProperty(P))&&gs(ia[P])},us=function(P){P.objectNumber=bn();var We=[];We.push({key:"Type",value:"/XObject"}),We.push({key:"Subtype",value:"/Form"}),We.push({key:"BBox",value:"["+[_r(P.x),_r(P.y),_r(P.x+P.width),_r(P.y+P.height)].join(" ")+"]"}),We.push({key:"Matrix",value:"["+P.matrix.toString()+"]"});var Mt=P.pages[1].join(`
`);bo({data:Mt,additionalKeyValues:We,objectId:P.objectNumber}),yt("endobj")},bl=function(){for(var P in Xi)Xi.hasOwnProperty(P)&&us(Xi[P])},as=function(P,We){var Mt,Jt=[],yr=1/(We-1);for(Mt=0;Mt<1;Mt+=yr)Jt.push(Mt);if(Jt.push(1),P[0].offset!=0){var Xr={offset:0,color:P[0].color};P.unshift(Xr)}if(P[P.length-1].offset!=1){var Sn={offset:1,color:P[P.length-1].color};P.push(Sn)}for(var Di="",ta=0,Na=0;Na<Jt.length;Na++){for(Mt=Jt[Na];Mt>P[ta+1].offset;)ta++;var Ia=P[ta].offset,co=(Mt-Ia)/(P[ta+1].offset-Ia),aa=P[ta].color,bs=P[ta+1].color;Di+=et(Math.round((1-co)*aa[0]+co*bs[0]).toString(16))+et(Math.round((1-co)*aa[1]+co*bs[1]).toString(16))+et(Math.round((1-co)*aa[2]+co*bs[2]).toString(16))}return Di.trim()},$s=function(P,We){We||(We=21);var Mt=bn(),Jt=as(P.colors,We),yr=[];yr.push({key:"FunctionType",value:"0"}),yr.push({key:"Domain",value:"[0.0 1.0]"}),yr.push({key:"Size",value:"["+We+"]"}),yr.push({key:"BitsPerSample",value:"8"}),yr.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),yr.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),bo({data:Jt,additionalKeyValues:yr,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Mt}),yt("endobj"),P.objectNumber=bn(),yt("<< /ShadingType "+P.type),yt("/ColorSpace /DeviceRGB");var Xr="/Coords ["+_r(parseFloat(P.coords[0]))+" "+_r(parseFloat(P.coords[1]))+" ";P.type===2?Xr+=_r(parseFloat(P.coords[2]))+" "+_r(parseFloat(P.coords[3])):Xr+=_r(parseFloat(P.coords[2]))+" "+_r(parseFloat(P.coords[3]))+" "+_r(parseFloat(P.coords[4]))+" "+_r(parseFloat(P.coords[5])),yt(Xr+="]"),P.matrix&&yt("/Matrix ["+P.matrix.toString()+"]"),yt("/Function "+Mt+" 0 R"),yt("/Extend [true true]"),yt(">>"),yt("endobj")},ds=function(P,We){var Mt=no(),Jt=bn();We.push({resourcesOid:Mt,objectOid:Jt}),P.objectNumber=Jt;var yr=[];yr.push({key:"Type",value:"/Pattern"}),yr.push({key:"PatternType",value:"1"}),yr.push({key:"PaintType",value:"1"}),yr.push({key:"TilingType",value:"1"}),yr.push({key:"BBox",value:"["+P.boundingBox.map(_r).join(" ")+"]"}),yr.push({key:"XStep",value:_r(P.xStep)}),yr.push({key:"YStep",value:_r(P.yStep)}),yr.push({key:"Resources",value:Mt+" 0 R"}),P.matrix&&yr.push({key:"Matrix",value:"["+P.matrix.toString()+"]"}),bo({data:P.stream,additionalKeyValues:yr,objectId:P.objectNumber}),yt("endobj")},Lo=function(P){var We;for(We in Gi)Gi.hasOwnProperty(We)&&(Gi[We]instanceof vo?$s(Gi[We]):Gi[We]instanceof wa&&ds(Gi[We],P))},wo=function(P){for(var We in P.objectNumber=bn(),yt("<<"),P)switch(We){case"opacity":yt("/ca "+Jr(P[We]));break;case"stroke-opacity":yt("/CA "+Jr(P[We]))}yt(">>"),yt("endobj")},qs=function(){var P;for(P in Bn)Bn.hasOwnProperty(P)&&wo(Bn[P])},Nl=function(){for(var P in yt("/XObject <<"),Xi)Xi.hasOwnProperty(P)&&Xi[P].objectNumber>=0&&yt("/"+P+" "+Xi[P].objectNumber+" 0 R");kn.publish("putXobjectDict"),yt(">>")},zl=function(){Fs.oid=bn(),yt("<<"),yt("/Filter /Standard"),yt("/V "+Fs.v),yt("/R "+Fs.r),yt("/U <"+Fs.toHexString(Fs.U)+">"),yt("/O <"+Fs.toHexString(Fs.O)+">"),yt("/P "+Fs.P),yt(">>"),yt("endobj")},wl=function(){for(var P in yt("/Font <<"),ia)ia.hasOwnProperty(P)&&(Ze===!1||Ze===!0&&st.hasOwnProperty(P))&&yt("/"+P+" "+ia[P].objectNumber+" 0 R");yt(">>")},BA=function(){if(Object.keys(Gi).length>0){for(var P in yt("/Shading <<"),Gi)Gi.hasOwnProperty(P)&&Gi[P]instanceof vo&&Gi[P].objectNumber>=0&&yt("/"+P+" "+Gi[P].objectNumber+" 0 R");kn.publish("putShadingPatternDict"),yt(">>")}},Xc=function(P){if(Object.keys(Gi).length>0){for(var We in yt("/Pattern <<"),Gi)Gi.hasOwnProperty(We)&&Gi[We]instanceof be.TilingPattern&&Gi[We].objectNumber>=0&&Gi[We].objectNumber<P&&yt("/"+We+" "+Gi[We].objectNumber+" 0 R");kn.publish("putTilingPatternDict"),yt(">>")}},Ca=function(){if(Object.keys(Bn).length>0){var P;for(P in yt("/ExtGState <<"),Bn)Bn.hasOwnProperty(P)&&Bn[P].objectNumber>=0&&yt("/"+P+" "+Bn[P].objectNumber+" 0 R");kn.publish("putGStateDict"),yt(">>")}},ea=function(P){Cs(P.resourcesOid,!0),yt("<<"),yt("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),wl(),BA(),Xc(P.objectOid),Ca(),Nl(),yt(">>"),yt("endobj")},vs=function(){var P=[];is(),qs(),bl(),Lo(P),kn.publish("putResources"),P.forEach(ea),ea({resourcesOid:fa,objectOid:Number.MAX_SAFE_INTEGER}),kn.publish("postPutResources")},go=function(){kn.publish("putAdditionalObjects");for(var P=0;P<ur.length;P++){var We=ur[P];Cs(We.objId,!0),yt(We.content),yt("endobj")}kn.publish("postPutAdditionalObjects")},fs=function(P){Hi[P.fontName]=Hi[P.fontName]||{},Hi[P.fontName][P.fontStyle]=P.id},Ss=function(P,We,Mt,Jt,yr){var Xr={id:"F"+(Object.keys(ia).length+1).toString(10),postScriptName:P,fontName:We,fontStyle:Mt,encoding:Jt,isStandardFont:yr||!1,metadata:{}};return kn.publish("addFont",{font:Xr,instance:this}),ia[Xr.id]=Xr,fs(Xr),Xr.id},Es=function(P){for(var We=0,Mt=vr.length;We<Mt;We++){var Jt=Ss.call(this,P[We][0],P[We][1],P[We][2],vr[We][3],!0);Ze===!1&&(st[Jt]=!0);var yr=P[We][0].split("-");fs({id:Jt,fontName:yr[0],fontStyle:yr[1]||""})}kn.publish("addFonts",{fonts:ia,dictionary:Hi})},_s=function(P){return P.foo=function(){try{return P.apply(this,arguments)}catch(Jt){var We=Jt.stack||"";~We.indexOf(" at ")&&(We=We.split(" at ")[1]);var Mt="Error in function "+We.split(`
`)[0].split("<")[0]+": "+Jt.message;if(!an.console)throw new Error(Mt);an.console.error(Mt,Jt),an.alert&&alert(Mt)}},P.foo.bar=P,P.foo},Dc=function(P,We){var Mt,Jt,yr,Xr,Sn,Di,ta,Na,Ia;if(yr=(We=We||{}).sourceEncoding||"Unicode",Sn=We.outputEncoding,(We.autoencode||Sn)&&ia[Li].metadata&&ia[Li].metadata[yr]&&ia[Li].metadata[yr].encoding&&(Xr=ia[Li].metadata[yr].encoding,!Sn&&ia[Li].encoding&&(Sn=ia[Li].encoding),!Sn&&Xr.codePages&&(Sn=Xr.codePages[0]),typeof Sn=="string"&&(Sn=Xr[Sn]),Sn)){for(ta=!1,Di=[],Mt=0,Jt=P.length;Mt<Jt;Mt++)(Na=Sn[P.charCodeAt(Mt)])?Di.push(String.fromCharCode(Na)):Di.push(P[Mt]),Di[Mt].charCodeAt(0)>>8&&(ta=!0);P=Di.join("")}for(Mt=P.length;ta===void 0&&Mt!==0;)P.charCodeAt(Mt-1)>>8&&(ta=!0),Mt--;if(!ta)return P;for(Di=We.noBOM?[]:[254,255],Mt=0,Jt=P.length;Mt<Jt;Mt++){if((Ia=(Na=P.charCodeAt(Mt))>>8)>>8)throw new Error("Character at position "+Mt+" of string '"+P+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Di.push(Ia),Di.push(Na-(Ia<<8))}return String.fromCharCode.apply(void 0,Di)},ll=be.__private__.pdfEscape=be.pdfEscape=function(P,We){return Dc(P,We).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},gc=be.__private__.beginPage=function(P){fr[++Zn]=[],oi[Zn]={objId:0,contentsObjId:0,userUnit:Number(Z),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(P[0]),topRightY:Number(P[1])}},xl(Zn),Ar(fr[Re])},Ba=function(P,We){var Mt,Jt,yr;switch(l=We||l,typeof P=="string"&&(Mt=pt(P.toLowerCase()),Array.isArray(Mt)&&(Jt=Mt[0],yr=Mt[1])),Array.isArray(P)&&(Jt=P[0]*vn,yr=P[1]*vn),isNaN(Jt)&&(Jt=F[0],yr=F[1]),(Jt>14400||yr>14400)&&(Ln.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Jt=Math.min(14400,Jt),yr=Math.min(14400,yr)),F=[Jt,yr],l.substr(0,1)){case"l":yr>Jt&&(F=[yr,Jt]);break;case"p":Jt>yr&&(F=[yr,Jt])}gc(F),Wl(Sa),yt(la),Qu!==0&&yt(Qu+" J"),WA!==0&&yt(WA+" j"),kn.publish("addPage",{pageNumber:Zn})},So=function(P){P>0&&P<=Zn&&(fr.splice(P,1),oi.splice(P,1),Zn--,Re>Zn&&(Re=Zn),this.setPage(Re))},xl=function(P){P>0&&P<=Zn&&(Re=P)},rc=be.__private__.getNumberOfPages=be.getNumberOfPages=function(){return fr.length-1},Ns=function(P,We,Mt){var Jt,yr=void 0;return Mt=Mt||{},P=P!==void 0?P:ia[Li].fontName,We=We!==void 0?We:ia[Li].fontStyle,Jt=P.toLowerCase(),Hi[Jt]!==void 0&&Hi[Jt][We]!==void 0?yr=Hi[Jt][We]:Hi[P]!==void 0&&Hi[P][We]!==void 0?yr=Hi[P][We]:Mt.disableWarning===!1&&Ln.warn("Unable to look up font label for font '"+P+"', '"+We+"'. Refer to getFontList() for available fonts."),yr||Mt.noFallback||(yr=Hi.times[We])==null&&(yr=Hi.times.normal),yr},HA=be.__private__.putInfo=function(){var P=bn(),We=function(Jt){return Jt};for(var Mt in $e!==null&&(We=Fs.encryptor(P,0)),yt("<<"),yt("/Producer ("+ll(We("jsPDF "+Ai.version))+")"),zn)zn.hasOwnProperty(Mt)&&zn[Mt]&&yt("/"+Mt.substr(0,1).toUpperCase()+Mt.substr(1)+" ("+ll(We(zn[Mt]))+")");yt("/CreationDate ("+ll(We(ee))+")"),yt(">>"),yt("endobj")},Cl=be.__private__.putCatalog=function(P){var We=(P=P||{}).rootDictionaryObjId||qr;switch(bn(),yt("<<"),yt("/Type /Catalog"),yt("/Pages "+We+" 0 R"),Or||(Or="fullwidth"),Or){case"fullwidth":yt("/OpenAction [3 0 R /FitH null]");break;case"fullheight":yt("/OpenAction [3 0 R /FitV null]");break;case"fullpage":yt("/OpenAction [3 0 R /Fit]");break;case"original":yt("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Mt=""+Or;Mt.substr(Mt.length-1)==="%"&&(Or=parseInt(Or)/100),typeof Or=="number"&&yt("/OpenAction [3 0 R /XYZ null null "+Jr(Or)+"]")}switch(Vn||(Vn="continuous"),Vn){case"continuous":yt("/PageLayout /OneColumn");break;case"single":yt("/PageLayout /SinglePage");break;case"two":case"twoleft":yt("/PageLayout /TwoColumnLeft");break;case"tworight":yt("/PageLayout /TwoColumnRight")}Cn&&yt("/PageMode /"+Cn),kn.publish("putCatalog"),yt(">>"),yt("endobj")},jA=be.__private__.putTrailer=function(){yt("trailer"),yt("<<"),yt("/Size "+(bt+1)),yt("/Root "+bt+" 0 R"),yt("/Info "+(bt-1)+" 0 R"),$e!==null&&yt("/Encrypt "+Fs.oid+" 0 R"),yt("/ID [ <"+Se+"> <"+Se+"> ]"),yt(">>")},zA=be.__private__.putHeader=function(){yt("%PDF-"+Lt),yt("%\xBA\xDF\xAC\xE0")},Jc=be.__private__.putXRef=function(){var P="0000000000";yt("xref"),yt("0 "+(bt+1)),yt("0000000000 65535 f ");for(var We=1;We<=bt;We++)typeof _t[We]=="function"?yt((P+_t[We]()).slice(-10)+" 00000 n "):_t[We]!==void 0?yt((P+_t[We]).slice(-10)+" 00000 n "):yt("0000000000 00000 n ")},$l=be.__private__.buildDocument=function(){dn(),Ar(It),kn.publish("buildDocument"),zA(),Bs(),go(),vs(),$e!==null&&zl(),HA(),Cl();var P=Rt;return Jc(),jA(),yt("startxref"),yt(""+P),yt("%%EOF"),Ar(fr[Re]),It.join(`
`)},vc=be.__private__.getBlob=function(P){return new Blob([gn(P)],{type:"application/pdf"})},nc=be.output=be.__private__.output=_s(function(P,We){switch(typeof(We=We||{})=="string"?We={filename:We}:We.filename=We.filename||"generated.pdf",P){case void 0:return $l();case"save":be.save(We.filename);break;case"arraybuffer":return gn($l());case"blob":return vc($l());case"bloburi":case"bloburl":if(an.URL!==void 0&&typeof an.URL.createObjectURL=="function")return an.URL&&an.URL.createObjectURL(vc($l()))||void 0;Ln.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Mt="",Jt=$l();try{Mt=_i(Jt)}catch(bs){Mt=_i(unescape(encodeURIComponent(Jt)))}return"data:application/pdf;filename="+We.filename+";base64,"+Mt;case"pdfobjectnewwindow":if(Object.prototype.toString.call(an)==="[object Window]"){var yr="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Xr=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';We.pdfObjectUrl&&(yr=We.pdfObjectUrl,Xr="");var Sn='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+yr+'"'+Xr+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(We)+");<\/script></body></html>",Di=an.open();return Di!==null&&Di.document.write(Sn),Di}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(an)==="[object Window]"){var ta='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(We.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+We.filename+'" width="500px" height="400px" /></body></html>',Na=an.open();if(Na!==null){Na.document.write(ta);var Ia=this;Na.document.documentElement.querySelector("#pdfViewer").onload=function(){Na.document.title=We.filename,Na.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Ia.output("bloburl"))}}return Na}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(an)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var co='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",We)+'"></iframe></body></html>',aa=an.open();if(aa!==null&&(aa.document.write(co),aa.document.title=We.filename),aa||typeof safari=="undefined")return aa;break;case"datauri":case"dataurl":return an.document.location.href=this.output("datauristring",We);default:return null}}),fn=function(P){return Array.isArray(Ki)===!0&&Ki.indexOf(P)>-1};switch(b){case"pt":vn=1;break;case"mm":vn=72/25.4;break;case"cm":vn=72/2.54;break;case"in":vn=72;break;case"px":vn=fn("px_scaling")==1?.75:96/72;break;case"pc":case"em":vn=12;break;case"ex":vn=6;break;default:if(typeof b!="number")throw new Error("Invalid unit: "+b);vn=b}var Fs=null;St(),He();var SA=function(P){return $e!==null?Fs.encryptor(P,0):function(We){return We}},AA=be.__private__.getPageInfo=be.getPageInfo=function(P){if(isNaN(P)||P%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:oi[P].objId,pageNumber:P,pageContext:oi[P]}},sa=be.__private__.getPageInfoByObjId=function(P){if(isNaN(P)||P%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var We in oi)if(oi[We].objId===P)break;return AA(We)},EA=be.__private__.getCurrentPageInfo=be.getCurrentPageInfo=function(){return{objId:oi[Re].objId,pageNumber:Re,pageContext:oi[Re]}};be.addPage=function(){return Ba.apply(this,arguments),this},be.setPage=function(){return xl.apply(this,arguments),Ar.call(this,fr[Re]),this},be.insertPage=function(P){return this.addPage(),this.movePage(Re,P),this},be.movePage=function(P,We){var Mt,Jt;if(P>We){Mt=fr[P],Jt=oi[P];for(var yr=P;yr>We;yr--)fr[yr]=fr[yr-1],oi[yr]=oi[yr-1];fr[We]=Mt,oi[We]=Jt,this.setPage(We)}else if(P<We){Mt=fr[P],Jt=oi[P];for(var Xr=P;Xr<We;Xr++)fr[Xr]=fr[Xr+1],oi[Xr]=oi[Xr+1];fr[We]=Mt,oi[We]=Jt,this.setPage(We)}return this},be.deletePage=function(){return So.apply(this,arguments),this},be.__private__.text=be.text=function(P,We,Mt,Jt,yr){var Xr,Sn,Di,ta,Na,Ia,co,aa,bs,Ts=(Jt=Jt||{}).scope||this;if(typeof P=="number"&&typeof We=="number"&&(typeof Mt=="string"||Array.isArray(Mt))){var hs=Mt;Mt=We,We=P,P=hs}if(arguments[3]instanceof ki?(Vt("The transform parameter of text() with a Matrix value"),bs=yr):(Di=arguments[4],ta=arguments[5],(0,ge.Z)(co=arguments[3])==="object"&&co!==null||(typeof Di=="string"&&(ta=Di,Di=null),typeof co=="string"&&(ta=co,co=null),typeof co=="number"&&(Di=co,co=null),Jt={flags:co,angle:Di,align:ta})),isNaN(We)||isNaN(Mt)||P==null)throw new Error("Invalid arguments passed to jsPDF.text");if(P.length===0)return Ts;var el="",Bl=!1,sc=typeof Jt.lineHeightFactor=="number"?Jt.lineHeightFactor:va,Xl=Ts.internal.scaleFactor;function LA(Jo){return Jo=Jo.split(" ").join(Array(Jt.TabLen||9).join(" ")),ll(Jo,co)}function qc(Jo){for(var Ho,Us=Jo.concat(),Rs=[],Ra=Us.length;Ra--;)typeof(Ho=Us.shift())=="string"?Rs.push(Ho):Array.isArray(Jo)&&(Ho.length===1||Ho[1]===void 0&&Ho[2]===void 0)?Rs.push(Ho[0]):Rs.push([Ho[0],Ho[1],Ho[2]]);return Rs}function uu(Jo,Ho){var Us;if(typeof Jo=="string")Us=Ho(Jo)[0];else if(Array.isArray(Jo)){for(var Rs,Ra,hi=Jo.concat(),ec=[],tu=hi.length;tu--;)typeof(Rs=hi.shift())=="string"?ec.push(Ho(Rs)[0]):Array.isArray(Rs)&&typeof Rs[0]=="string"&&(Ra=Ho(Rs[0],Rs[1],Rs[2]),ec.push([Ra[0],Ra[1],Ra[2]]));Us=ec}return Us}var XA=!1,kA=!0;if(typeof P=="string")XA=!0;else if(Array.isArray(P)){var JA=P.concat();Sn=[];for(var du,pl=JA.length;pl--;)(typeof(du=JA.shift())!="string"||Array.isArray(du)&&typeof du[0]!="string")&&(kA=!1);XA=kA}if(XA===!1)throw new Error('Type of text must be string or Array. "'+P+'" is not recognized.');typeof P=="string"&&(P=P.match(/[\r?\n]/)?P.split(/\r\n|\r|\n/g):[P]);var Qc=Nr/Ts.internal.scaleFactor,YA=Qc*(sc-1);switch(Jt.baseline){case"bottom":Mt-=YA;break;case"top":Mt+=Qc-YA;break;case"hanging":Mt+=Qc-2*YA;break;case"middle":Mt+=Qc/2-YA}if((Ia=Jt.maxWidth||0)>0&&(typeof P=="string"?P=Ts.splitTextToSize(P,Ia):Object.prototype.toString.call(P)==="[object Array]"&&(P=P.reduce(function(Jo,Ho){return Jo.concat(Ts.splitTextToSize(Ho,Ia))},[]))),Xr={text:P,x:We,y:Mt,options:Jt,mutex:{pdfEscape:ll,activeFontKey:Li,fonts:ia,activeFontSize:Nr}},kn.publish("preProcessText",Xr),P=Xr.text,Di=(Jt=Xr.options).angle,!(bs instanceof ki)&&Di&&typeof Di=="number"){Di*=Math.PI/180,Jt.rotationDirection===0&&(Di=-Di),ar===Dt.ADVANCED&&(Di=-Di);var rs=Math.cos(Di),Kc=Math.sin(Di);bs=new ki(rs,Kc,-Kc,rs,0,0)}else Di&&Di instanceof ki&&(bs=Di);ar!==Dt.ADVANCED||bs||(bs=ro),(Na=Jt.charSpace||zr)!==void 0&&(el+=_r(Ct(Na))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(aa=Jt.horizontalScale)!==void 0&&(el+=_r(100*aa)+` Tz
`),Jt.lang;var tl=-1,eA=Jt.renderingMode!==void 0?Jt.renderingMode:Jt.stroke,rl=Ts.internal.getCurrentPageInfo().pageContext;switch(eA){case 0:case!1:case"fill":tl=0;break;case 1:case!0:case"stroke":tl=1;break;case 2:case"fillThenStroke":tl=2;break;case 3:case"invisible":tl=3;break;case 4:case"fillAndAddForClipping":tl=4;break;case 5:case"strokeAndAddPathForClipping":tl=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":tl=6;break;case 7:case"addToPathForClipping":tl=7}var Jl=rl.usedRenderingMode!==void 0?rl.usedRenderingMode:-1;tl!==-1?el+=tl+` Tr
`:Jl!==-1&&(el+=`0 Tr
`),tl!==-1&&(rl.usedRenderingMode=tl),ta=Jt.align||"left";var ss,Tl=Nr*sc,lc=Ts.internal.pageSize.getWidth(),wc=ia[Li];Na=Jt.charSpace||zr,Ia=Jt.maxWidth||0,co=Object.assign({autoencode:!0,noBOM:!0},Jt.flags);var cc=[],Yl=function(Jo){return Ts.getStringUnitWidth(Jo,{font:wc,charSpace:Na,fontSize:Nr,doKerning:!1})*Nr/Xl};if(Object.prototype.toString.call(P)==="[object Array]"){var cl;Sn=qc(P),ta!=="left"&&(ss=Sn.map(Yl));var nl,xc=0;if(ta==="right"){We-=ss[0],P=[],pl=Sn.length;for(var tA=0;tA<pl;tA++)tA===0?(nl=ys(We),cl=ac(Mt)):(nl=Ct(xc-ss[tA]),cl=-Tl),P.push([Sn[tA],nl,cl]),xc=ss[tA]}else if(ta==="center"){We-=ss[0]/2,P=[],pl=Sn.length;for(var rA=0;rA<pl;rA++)rA===0?(nl=ys(We),cl=ac(Mt)):(nl=Ct((xc-ss[rA])/2),cl=-Tl),P.push([Sn[rA],nl,cl]),xc=ss[rA]}else if(ta==="left"){P=[],pl=Sn.length;for(var qA=0;qA<pl;qA++)P.push(Sn[qA])}else if(ta==="justify"&&wc.encoding==="Identity-H"){P=[],pl=Sn.length,Ia=Ia!==0?Ia:lc;for(var uA=0,Ms=0;Ms<pl;Ms++)if(cl=Ms===0?ac(Mt):-Tl,nl=Ms===0?ys(We):uA,Ms<pl-1){var eu=Ct((Ia-ss[Ms])/(Sn[Ms].split(" ").length-1)),Ul=Sn[Ms].split(" ");P.push([Ul[0]+" ",nl,cl]),uA=0;for(var Cc=1;Cc<Ul.length;Cc++){var fu=(Yl(Ul[Cc-1]+" "+Ul[Cc])-Yl(Ul[Cc]))*Xl+eu;Cc==Ul.length-1?P.push([Ul[Cc],fu,0]):P.push([Ul[Cc]+" ",fu,0]),uA-=fu}}else P.push([Sn[Ms],nl,cl]);P.push(["",uA,0])}else{if(ta!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(P=[],pl=Sn.length,Ia=Ia!==0?Ia:lc,Ms=0;Ms<pl;Ms++)cl=Ms===0?ac(Mt):-Tl,nl=Ms===0?ys(We):0,Ms<pl-1?cc.push(_r(Ct((Ia-ss[Ms])/(Sn[Ms].split(" ").length-1)))):cc.push(0),P.push([Sn[Ms],nl,cl])}}var rd=typeof Jt.R2L=="boolean"?Jt.R2L:Zr;rd===!0&&(P=uu(P,function(Jo,Ho,Us){return[Jo.split("").reverse().join(""),Ho,Us]})),Xr={text:P,x:We,y:Mt,options:Jt,mutex:{pdfEscape:ll,activeFontKey:Li,fonts:ia,activeFontSize:Nr}},kn.publish("postProcessText",Xr),P=Xr.text,Bl=Xr.mutex.isHex||!1;var ju=ia[Li].encoding;ju!=="WinAnsiEncoding"&&ju!=="StandardEncoding"||(P=uu(P,function(Jo,Ho,Us){return[LA(Jo),Ho,Us]})),Sn=qc(P),P=[];for(var dA,Bc,Ac,uc=0,ql=1,fA=Array.isArray(Sn[0])?ql:uc,hA="",hu=function(Jo,Ho,Us){var Rs="";return Us instanceof ki?(Us=typeof Jt.angle=="number"?ns(Us,new ki(1,0,0,1,Jo,Ho)):ns(new ki(1,0,0,1,Jo,Ho),Us),ar===Dt.ADVANCED&&(Us=ns(new ki(1,0,0,-1,0,0),Us)),Rs=Us.join(" ")+` Tm
`):Rs=_r(Jo)+" "+_r(Ho)+` Td
`,Rs},Sc=0;Sc<Sn.length;Sc++){switch(hA="",fA){case ql:Ac=(Bl?"<":"(")+Sn[Sc][0]+(Bl?">":")"),dA=parseFloat(Sn[Sc][1]),Bc=parseFloat(Sn[Sc][2]);break;case uc:Ac=(Bl?"<":"(")+Sn[Sc]+(Bl?">":")"),dA=ys(We),Bc=ac(Mt)}cc!==void 0&&cc[Sc]!==void 0&&(hA=cc[Sc]+` Tw
`),Sc===0?P.push(hA+hu(dA,Bc,bs)+Ac):fA===uc?P.push(hA+Ac):fA===ql&&P.push(hA+hu(dA,Bc,bs)+Ac)}P=fA===uc?P.join(` Tj
T* `):P.join(` Tj
`),P+=` Tj
`;var Ec=`BT
/`;return Ec+=Li+" "+Nr+` Tf
`,Ec+=_r(Nr*sc)+` TL
`,Ec+=Gl+`
`,Ec+=el,Ec+=P,yt(Ec+="ET"),st[Li]=!0,Ts};var $A=be.__private__.clip=be.clip=function(P){return yt(P==="evenodd"?"W*":"W"),this};be.clipEvenOdd=function(){return $A("evenodd")},be.__private__.discardPath=be.discardPath=function(){return yt("n"),this};var Zl=be.__private__.isValidStyle=function(P){var We=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(P)!==-1&&(We=!0),We};be.__private__.setDefaultPathOperation=be.setDefaultPathOperation=function(P){return Zl(P)&&(_e=P),this};var Xo=be.__private__.getStyle=be.getStyle=function(P){var We=_e;switch(P){case"D":case"S":We="S";break;case"F":We="f";break;case"FD":case"DF":We="B";break;case"f":case"f*":case"B":case"B*":We=P}return We},ZA=be.close=function(){return yt("h"),this};be.stroke=function(){return yt("S"),this},be.fill=function(P){return Pc("f",P),this},be.fillEvenOdd=function(P){return Pc("f*",P),this},be.fillStroke=function(P){return Pc("B",P),this},be.fillStrokeEvenOdd=function(P){return Pc("B*",P),this};var Pc=function(P,We){(0,ge.Z)(We)==="object"?Vl(We,P):yt(P)},yc=function(P){P===null||ar===Dt.ADVANCED&&P===void 0||(P=Xo(P),yt(P))};function _A(P,We,Mt,Jt,yr){var Xr=new wa(We||this.boundingBox,Mt||this.xStep,Jt||this.yStep,this.gState,yr||this.matrix);Xr.stream=this.stream;var Sn=P+"$$"+this.cloneIndex+++"$$";return Qo(Sn,Xr),Xr}var Vl=function(P,We){var Mt=As[P.key],Jt=Gi[Mt];if(Jt instanceof vo)yt("q"),yt(ic(We)),Jt.gState&&be.setGState(Jt.gState),yt(P.matrix.toString()+" cm"),yt("/"+Mt+" sh"),yt("Q");else if(Jt instanceof wa){var yr=new ki(1,0,0,-1,0,Rc());P.matrix&&(yr=yr.multiply(P.matrix||ro),Mt=_A.call(Jt,P.key,P.boundingBox,P.xStep,P.yStep,yr).id),yt("q"),yt("/Pattern cs"),yt("/"+Mt+" scn"),Jt.gState&&be.setGState(Jt.gState),yt(We),yt("Q")}},ic=function(P){switch(P){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},lo=be.moveTo=function(P,We){return yt(_r(Ct(P))+" "+_r(U(We))+" m"),this},Os=be.lineTo=function(P,We){return yt(_r(Ct(P))+" "+_r(U(We))+" l"),this},ts=be.curveTo=function(P,We,Mt,Jt,yr,Xr){return yt([_r(Ct(P)),_r(U(We)),_r(Ct(Mt)),_r(U(Jt)),_r(Ct(yr)),_r(U(Xr)),"c"].join(" ")),this};be.__private__.line=be.line=function(P,We,Mt,Jt,yr){if(isNaN(P)||isNaN(We)||isNaN(Mt)||isNaN(Jt)||!Zl(yr))throw new Error("Invalid arguments passed to jsPDF.line");return ar===Dt.COMPAT?this.lines([[Mt-P,Jt-We]],P,We,[1,1],yr||"S"):this.lines([[Mt-P,Jt-We]],P,We,[1,1]).stroke()},be.__private__.lines=be.lines=function(P,We,Mt,Jt,yr,Xr){var Sn,Di,ta,Na,Ia,co,aa,bs,Ts,hs,el,Bl;if(typeof P=="number"&&(Bl=Mt,Mt=We,We=P,P=Bl),Jt=Jt||[1,1],Xr=Xr||!1,isNaN(We)||isNaN(Mt)||!Array.isArray(P)||!Array.isArray(Jt)||!Zl(yr)||typeof Xr!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(lo(We,Mt),Sn=Jt[0],Di=Jt[1],Na=P.length,hs=We,el=Mt,ta=0;ta<Na;ta++)(Ia=P[ta]).length===2?(hs=Ia[0]*Sn+hs,el=Ia[1]*Di+el,Os(hs,el)):(co=Ia[0]*Sn+hs,aa=Ia[1]*Di+el,bs=Ia[2]*Sn+hs,Ts=Ia[3]*Di+el,hs=Ia[4]*Sn+hs,el=Ia[5]*Di+el,ts(co,aa,bs,Ts,hs,el));return Xr&&ZA(),yc(yr),this},be.path=function(P){for(var We=0;We<P.length;We++){var Mt=P[We],Jt=Mt.c;switch(Mt.op){case"m":lo(Jt[0],Jt[1]);break;case"l":Os(Jt[0],Jt[1]);break;case"c":ts.apply(this,Jt);break;case"h":ZA()}}return this},be.__private__.rect=be.rect=function(P,We,Mt,Jt,yr){if(isNaN(P)||isNaN(We)||isNaN(Mt)||isNaN(Jt)||!Zl(yr))throw new Error("Invalid arguments passed to jsPDF.rect");return ar===Dt.COMPAT&&(Jt=-Jt),yt([_r(Ct(P)),_r(U(We)),_r(Ct(Mt)),_r(Ct(Jt)),"re"].join(" ")),yc(yr),this},be.__private__.triangle=be.triangle=function(P,We,Mt,Jt,yr,Xr,Sn){if(isNaN(P)||isNaN(We)||isNaN(Mt)||isNaN(Jt)||isNaN(yr)||isNaN(Xr)||!Zl(Sn))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Mt-P,Jt-We],[yr-Mt,Xr-Jt],[P-yr,We-Xr]],P,We,[1,1],Sn,!0),this},be.__private__.roundedRect=be.roundedRect=function(P,We,Mt,Jt,yr,Xr,Sn){if(isNaN(P)||isNaN(We)||isNaN(Mt)||isNaN(Jt)||isNaN(yr)||isNaN(Xr)||!Zl(Sn))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Di=4/3*(Math.SQRT2-1);return yr=Math.min(yr,.5*Mt),Xr=Math.min(Xr,.5*Jt),this.lines([[Mt-2*yr,0],[yr*Di,0,yr,Xr-Xr*Di,yr,Xr],[0,Jt-2*Xr],[0,Xr*Di,-yr*Di,Xr,-yr,Xr],[2*yr-Mt,0],[-yr*Di,0,-yr,-Xr*Di,-yr,-Xr],[0,2*Xr-Jt],[0,-Xr*Di,yr*Di,-Xr,yr,-Xr]],P+yr,We,[1,1],Sn,!0),this},be.__private__.ellipse=be.ellipse=function(P,We,Mt,Jt,yr){if(isNaN(P)||isNaN(We)||isNaN(Mt)||isNaN(Jt)||!Zl(yr))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Xr=4/3*(Math.SQRT2-1)*Mt,Sn=4/3*(Math.SQRT2-1)*Jt;return lo(P+Mt,We),ts(P+Mt,We-Sn,P+Xr,We-Jt,P,We-Jt),ts(P-Xr,We-Jt,P-Mt,We-Sn,P-Mt,We),ts(P-Mt,We+Sn,P-Xr,We+Jt,P,We+Jt),ts(P+Xr,We+Jt,P+Mt,We+Sn,P+Mt,We),yc(yr),this},be.__private__.circle=be.circle=function(P,We,Mt,Jt){if(isNaN(P)||isNaN(We)||isNaN(Mt)||!Zl(Jt))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(P,We,Mt,Mt,Jt)},be.setFont=function(P,We,Mt){return Mt&&(We=hn(We,Mt)),Li=Ns(P,We,{disableWarning:!1}),this};var bc=be.__private__.getFont=be.getFont=function(){return ia[Ns.apply(be,arguments)]};be.__private__.getFontList=be.getFontList=function(){var P,We,Mt={};for(P in Hi)if(Hi.hasOwnProperty(P))for(We in Mt[P]=[],Hi[P])Hi[P].hasOwnProperty(We)&&Mt[P].push(We);return Mt},be.addFont=function(P,We,Mt,Jt,yr){var Xr=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Xr.indexOf(arguments[3])!==-1?yr=arguments[3]:arguments[3]&&Xr.indexOf(arguments[3])==-1&&(Mt=hn(Mt,Jt)),yr=yr||"Identity-H",Ss.call(this,P,We,Mt,yr)};var va,Sa=c.lineWidth||.200025,Zs=be.__private__.getLineWidth=be.getLineWidth=function(){return Sa},Wl=be.__private__.setLineWidth=be.setLineWidth=function(P){return Sa=P,yt(_r(Ct(P))+" w"),this};be.__private__.setLineDash=Ai.API.setLineDash=Ai.API.setLineDashPattern=function(P,We){if(P=P||[],We=We||0,isNaN(We)||!Array.isArray(P))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return P=P.map(function(Mt){return _r(Ct(Mt))}).join(" "),We=_r(Ct(We)),yt("["+P+"] "+We+" d"),this};var Ol=be.__private__.getLineHeight=be.getLineHeight=function(){return Nr*va};be.__private__.getLineHeight=be.getLineHeight=function(){return Nr*va};var VA=be.__private__.setLineHeightFactor=be.setLineHeightFactor=function(P){return typeof(P=P||1.15)=="number"&&(va=P),this},os=be.__private__.getLineHeightFactor=be.getLineHeightFactor=function(){return va};VA(c.lineHeight);var ys=be.__private__.getHorizontalCoordinate=function(P){return Ct(P)},ac=be.__private__.getVerticalCoordinate=function(P){return ar===Dt.ADVANCED?P:oi[Re].mediaBox.topRightY-oi[Re].mediaBox.bottomLeftY-Ct(P)},FA=be.__private__.getHorizontalCoordinateString=be.getHorizontalCoordinateString=function(P){return _r(ys(P))},Nc=be.__private__.getVerticalCoordinateString=be.getVerticalCoordinateString=function(P){return _r(ac(P))},la=c.strokeColor||"0 G";be.__private__.getStrokeColor=be.getDrawColor=function(){return so(la)},be.__private__.setStrokeColor=be.setDrawColor=function(P,We,Mt,Jt){return la=Va({ch1:P,ch2:We,ch3:Mt,ch4:Jt,pdfColorType:"draw",precision:2}),yt(la),this};var Oc=c.fillColor||"0 g";be.__private__.getFillColor=be.getFillColor=function(){return so(Oc)},be.__private__.setFillColor=be.setFillColor=function(P,We,Mt,Jt){return Oc=Va({ch1:P,ch2:We,ch3:Mt,ch4:Jt,pdfColorType:"fill",precision:2}),yt(Oc),this};var Gl=c.textColor||"0 g",IA=be.__private__.getTextColor=be.getTextColor=function(){return so(Gl)};be.__private__.setTextColor=be.setTextColor=function(P,We,Mt,Jt){return Gl=Va({ch1:P,ch2:We,ch3:Mt,ch4:Jt,pdfColorType:"text",precision:3}),this};var zr=c.charSpace,yd=be.__private__.getCharSpace=be.getCharSpace=function(){return parseFloat(zr||0)};be.__private__.setCharSpace=be.setCharSpace=function(P){if(isNaN(P))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return zr=P,this};var Qu=0;be.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},be.__private__.setLineCap=be.setLineCap=function(P){var We=be.CapJoinStyles[P];if(We===void 0)throw new Error("Line cap style of '"+P+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Qu=We,yt(We+" J"),this};var WA=0;be.__private__.setLineJoin=be.setLineJoin=function(P){var We=be.CapJoinStyles[P];if(We===void 0)throw new Error("Line join style of '"+P+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return WA=We,yt(We+" j"),this},be.__private__.setLineMiterLimit=be.__private__.setMiterLimit=be.setLineMiterLimit=be.setMiterLimit=function(P){if(P=P||0,isNaN(P))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return yt(_r(Ct(P))+" M"),this},be.GState=La,be.setGState=function(P){(P=typeof P=="string"?Bn[fi[P]]:GA(null,P)).equals(mi)||(yt("/"+P.id+" gs"),mi=P)};var GA=function(P,We){if(!P||!fi[P]){var Mt=!1;for(var Jt in Bn)if(Bn.hasOwnProperty(Jt)&&Bn[Jt].equals(We)){Mt=!0;break}if(Mt)We=Bn[Jt];else{var yr="GS"+(Object.keys(Bn).length+1).toString(10);Bn[yr]=We,We.id=yr}return P&&(fi[P]=We.id),kn.publish("addGState",We),We}};be.addGState=function(P,We){return GA(P,We),this},be.saveGraphicsState=function(){return yt("q"),Ka.push({key:Li,size:Nr,color:Gl}),this},be.restoreGraphicsState=function(){yt("Q");var P=Ka.pop();return Li=P.key,Nr=P.size,Gl=P.color,mi=null,this},be.setCurrentTransformationMatrix=function(P){return yt(P.toString()+" cm"),this},be.comment=function(P){return yt("#"+P),this};var oc=function(P,We){var Mt=P||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Mt},set:function(Xr){isNaN(Xr)||(Mt=parseFloat(Xr))}});var Jt=We||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Jt},set:function(Xr){isNaN(Xr)||(Jt=parseFloat(Xr))}});var yr="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return yr},set:function(Xr){yr=Xr.toString()}}),this},Ku=function(P,We,Mt,Jt){oc.call(this,P,We),this.type="rect";var yr=Mt||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return yr},set:function(Sn){isNaN(Sn)||(yr=parseFloat(Sn))}});var Xr=Jt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Xr},set:function(Sn){isNaN(Sn)||(Xr=parseFloat(Sn))}}),this},Au=function(){this.page=Zn,this.currentPage=Re,this.pages=fr.slice(0),this.pagesContext=oi.slice(0),this.x=Fa,this.y=ji,this.matrix=Ri,this.width=Uc(Re),this.height=Rc(Re),this.outputDestination=Sr,this.id="",this.objectNumber=-1};Au.prototype.restore=function(){Zn=this.page,Re=this.currentPage,oi=this.pagesContext,fr=this.pages,Fa=this.x,ji=this.y,Ri=this.matrix,Hu(Re,this.width),MA(Re,this.height),Sr=this.outputDestination};var Is=function(P,We,Mt,Jt,yr){Mo.push(new Au),Zn=Re=0,fr=[],Fa=P,ji=We,Ri=yr,gc([Mt,Jt])},Tc=function(P){if(qi[P])Mo.pop().restore();else{var We=new Au,Mt="Xo"+(Object.keys(Xi).length+1).toString(10);We.id=Mt,qi[P]=Mt,Xi[Mt]=We,kn.publish("addFormObject",We),Mo.pop().restore()}};for(var Yc in be.beginFormObject=function(P,We,Mt,Jt,yr){return Is(P,We,Mt,Jt,yr),this},be.endFormObject=function(P){return Tc(P),this},be.doFormObject=function(P,We){var Mt=Xi[qi[P]];return yt("q"),yt(We.toString()+" cm"),yt("/"+Mt.id+" Do"),yt("Q"),this},be.getFormObject=function(P){var We=Xi[qi[P]];return{x:We.x,y:We.y,width:We.width,height:We.height,matrix:We.matrix}},be.save=function(P,We){return P=P||"generated.pdf",(We=We||{}).returnPromise=We.returnPromise||!1,We.returnPromise===!1?(ra(vc($l()),P),typeof ra.unload=="function"&&an.setTimeout&&setTimeout(ra.unload,911),this):new Promise(function(Mt,Jt){try{var yr=ra(vc($l()),P);typeof ra.unload=="function"&&an.setTimeout&&setTimeout(ra.unload,911),Mt(yr)}catch(Xr){Jt(Xr.message)}})},Ai.API)Ai.API.hasOwnProperty(Yc)&&(Yc==="events"&&Ai.API.events.length?function(P,We){var Mt,Jt,yr;for(yr=We.length-1;yr!==-1;yr--)Mt=We[yr][0],Jt=We[yr][1],P.subscribe.apply(P,[Mt].concat(typeof Jt=="function"?[Jt]:Jt))}(kn,Ai.API.events):be[Yc]=Ai.API[Yc]);var Uc=be.getPageWidth=function(P){return(oi[P=P||Re].mediaBox.topRightX-oi[P].mediaBox.bottomLeftX)/vn},Hu=be.setPageWidth=function(P,We){oi[P].mediaBox.topRightX=We*vn+oi[P].mediaBox.bottomLeftX},Rc=be.getPageHeight=function(P){return(oi[P=P||Re].mediaBox.topRightY-oi[P].mediaBox.bottomLeftY)/vn},MA=be.setPageHeight=function(P,We){oi[P].mediaBox.topRightY=We*vn+oi[P].mediaBox.bottomLeftY};return be.internal={pdfEscape:ll,getStyle:Xo,getFont:bc,getFontSize:br,getCharSpace:yd,getTextColor:IA,getLineHeight:Ol,getLineHeightFactor:os,getLineWidth:Zs,write:_n,getHorizontalCoordinate:ys,getVerticalCoordinate:ac,getCoordinateString:FA,getVerticalCoordinateString:Nc,collections:{},newObject:bn,newAdditionalObject:ga,newObjectDeferred:no,newObjectDeferredBegin:Cs,getFilters:Ii,putStream:bo,events:kn,scaleFactor:vn,pageSize:{getWidth:function(){return Uc(Re)},setWidth:function(P){Hu(Re,P)},getHeight:function(){return Rc(Re)},setHeight:function(P){MA(Re,P)}},encryptionOptions:$e,encryption:Fs,getEncryptor:SA,output:nc,getNumberOfPages:rc,pages:fr,out:yt,f2:Jr,f3:vt,getPageInfo:AA,getPageInfoByObjId:sa,getCurrentPageInfo:EA,getPDFVersion:wt,Point:oc,Rectangle:Ku,Matrix:ki,hasHotfix:fn},Object.defineProperty(be.internal.pageSize,"width",{get:function(){return Uc(Re)},set:function(P){Hu(Re,P)},enumerable:!0,configurable:!0}),Object.defineProperty(be.internal.pageSize,"height",{get:function(){return Rc(Re)},set:function(P){MA(Re,P)},enumerable:!0,configurable:!0}),Es.call(be,vr),Li="F1",Ba(F,l),kn.publish("initialized"),be}na.prototype.lsbFirstWord=function(c){return String.fromCharCode(c>>0&255,c>>8&255,c>>16&255,c>>24&255)},na.prototype.toHexString=function(c){return c.split("").map(function(o){return("0"+(255&o.charCodeAt(0)).toString(16)).slice(-2)}).join("")},na.prototype.hexToBytes=function(c){for(var o=[],l=0;l<c.length;l+=2)o.push(String.fromCharCode(parseInt(c.substr(l,2),16)));return o.join("")},na.prototype.processOwnerPassword=function(c,o){return ha(Un(o).substr(0,5),c)},na.prototype.encryptor=function(c,o){var l=Un(this.encryptionKey+String.fromCharCode(255&c,c>>8&255,c>>16&255,255&o,o>>8&255)).substr(0,10);return function(b){return ha(l,b)}},La.prototype.equals=function(c){var o,l="id,objectNumber,equals";if(!c||(0,ge.Z)(c)!==(0,ge.Z)(this))return!1;var b=0;for(o in this)if(!(l.indexOf(o)>=0)){if(this.hasOwnProperty(o)&&!c.hasOwnProperty(o)||this[o]!==c[o])return!1;b++}for(o in c)c.hasOwnProperty(o)&&l.indexOf(o)<0&&b--;return b===0},Ai.API={events:[]},Ai.version="3.0.1";var ua=Ai.API,Do=1,uo=function(c){return c.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Xa=function(c){return c.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Pi=function(c){return c.toFixed(2)},Po=function(c){return c.toFixed(5)};ua.__acroform__={};var fo=function(c,o){c.prototype=Object.create(o.prototype),c.prototype.constructor=c},il=function(c){return c*Do},$o=function(c){var o=new xa,l=Kn.internal.getHeight(c)||0,b=Kn.internal.getWidth(c)||0;return o.BBox=[0,0,Number(Pi(b)),Number(Pi(l))],o},Hs=ua.__acroform__.setBit=function(c,o){if(c=c||0,o=o||0,isNaN(c)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return c|=1<<o},Zo=ua.__acroform__.clearBit=function(c,o){if(c=c||0,o=o||0,isNaN(c)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return c&=~(1<<o)},vl=ua.__acroform__.getBit=function(c,o){if(isNaN(c)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return c&1<<o?1:0},za=ua.__acroform__.getBitForPdf=function(c,o){if(isNaN(c)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return vl(c,o-1)},Qa=ua.__acroform__.setBitForPdf=function(c,o){if(isNaN(c)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Hs(c,o-1)},_a=ua.__acroform__.clearBitForPdf=function(c,o){if(isNaN(c)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Zo(c,o-1)},js=ua.__acroform__.calculateCoordinates=function(c,o){var l=o.internal.getHorizontalCoordinate,b=o.internal.getVerticalCoordinate,F=c[0],C=c[1],T=c[2],Z=c[3],ae={};return ae.lowerLeft_X=l(F)||0,ae.lowerLeft_Y=b(C+Z)||0,ae.upperRight_X=l(F+T)||0,ae.upperRight_Y=b(C)||0,[Number(Pi(ae.lowerLeft_X)),Number(Pi(ae.lowerLeft_Y)),Number(Pi(ae.upperRight_X)),Number(Pi(ae.upperRight_Y))]},yi=function(c){if(c.appearanceStreamContent)return c.appearanceStreamContent;if(c.V||c.DV){var o=[],l=c._V||c.DV,b=Vi(c,l),F=c.scope.internal.getFont(c.fontName,c.fontStyle).id;o.push("/Tx BMC"),o.push("q"),o.push("BT"),o.push(c.scope.__private__.encodeColorString(c.color)),o.push("/"+F+" "+Pi(b.fontSize)+" Tf"),o.push("1 0 0 1 0 0 Tm"),o.push(b.text),o.push("ET"),o.push("Q"),o.push("EMC");var C=$o(c);return C.scope=c.scope,C.stream=o.join(`
`),C}},Vi=function(c,o){var l=c.fontSize===0?c.maxFontSize:c.fontSize,b={text:"",fontSize:""},F=(o=(o=o.substr(0,1)=="("?o.substr(1):o).substr(o.length-1)==")"?o.substr(0,o.length-1):o).split(" ");F=c.multiline?F.map(function(vt){return vt.split(`
`)}):F.map(function(vt){return[vt]});var C=l,T=Kn.internal.getHeight(c)||0;T=T<0?-T:T;var Z=Kn.internal.getWidth(c)||0;Z=Z<0?-Z:Z;var ae=function(vt,Ct,rr){if(vt+1<F.length){var U=Ct+" "+F[vt+1][0];return Oi(U,c,rr).width<=Z-4}return!1};C++;e:for(;C>0;){o="",C--;var _e,$e,Ze=Oi("3",c,C).height,st=c.multiline?T-C:(T-Ze)/2,be=st+=2,Lt=0,wt=0,kt=0;if(C<=0){o=`(...) Tj
`,o+="% Width of Text: "+Oi(o,c,C=12).width+", FieldWidth:"+Z+`
`;break}for(var pt="",Dt=0,ar=0;ar<F.length;ar++)if(F.hasOwnProperty(ar)){var wr=!1;if(F[ar].length!==1&&kt!==F[ar].length-1){if((Ze+2)*(Dt+2)+2>T)continue e;pt+=F[ar][kt],wr=!0,wt=ar,ar--}else{pt=(pt+=F[ar][kt]+" ").substr(pt.length-1)==" "?pt.substr(0,pt.length-1):pt;var Qr=parseInt(ar),hn=ae(Qr,pt,C),_r=ar>=F.length-1;if(hn&&!_r){pt+=" ",kt=0;continue}if(hn||_r){if(_r)wt=Qr;else if(c.multiline&&(Ze+2)*(Dt+2)+2>T)continue e}else{if(!c.multiline||(Ze+2)*(Dt+2)+2>T)continue e;wt=Qr}}for(var Vt="",Lr=Lt;Lr<=wt;Lr++){var Jr=F[Lr];if(c.multiline){if(Lr===wt){Vt+=Jr[kt]+" ",kt=(kt+1)%Jr.length;continue}if(Lr===Lt){Vt+=Jr[Jr.length-1]+" ";continue}}Vt+=Jr[0]+" "}switch(Vt=Vt.substr(Vt.length-1)==" "?Vt.substr(0,Vt.length-1):Vt,$e=Oi(Vt,c,C).width,c.textAlign){case"right":_e=Z-$e-2;break;case"center":_e=(Z-$e)/2;break;case"left":default:_e=2}o+=Pi(_e)+" "+Pi(be)+` Td
`,o+="("+uo(Vt)+`) Tj
`,o+=-Pi(_e)+` 0 Td
`,be=-(C+2),$e=0,Lt=wr?wt:wt+1,Dt++,pt=""}break}return b.text=o,b.fontSize=C,b},Oi=function(c,o,l){var b=o.scope.internal.getFont(o.fontName,o.fontStyle),F=o.scope.getStringUnitWidth(c,{font:b,fontSize:parseFloat(l),charSpace:0})*parseFloat(l);return{height:o.scope.getStringUnitWidth("3",{font:b,fontSize:parseFloat(l),charSpace:0})*parseFloat(l)*1.5,width:F}},Wi={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},da=function(c,o){var l={type:"reference",object:c};o.internal.getPageInfo(c.page).pageContext.annotations.find(function(b){return b.type===l.type&&b.object===l.object})===void 0&&o.internal.getPageInfo(c.page).pageContext.annotations.push(l)},ka=function(c,o){for(var l in c)if(c.hasOwnProperty(l)){var b=l,F=c[l];o.internal.newObjectDeferredBegin(F.objId,!0),(0,ge.Z)(F)==="object"&&typeof F.putStream=="function"&&F.putStream(),delete c[b]}},Vo=function(c,o){if(o.scope=c,c.internal!==void 0&&(c.internal.acroformPlugin===void 0||c.internal.acroformPlugin.isInitialized===!1)){if(Oa.FieldNum=0,c.internal.acroformPlugin=JSON.parse(JSON.stringify(Wi)),c.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Do=c.internal.scaleFactor,c.internal.acroformPlugin.acroFormDictionaryRoot=new pa,c.internal.acroformPlugin.acroFormDictionaryRoot.scope=c,c.internal.acroformPlugin.acroFormDictionaryRoot._eventID=c.internal.events.subscribe("postPutResources",function(){(function(l){l.internal.events.unsubscribe(l.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete l.internal.acroformPlugin.acroFormDictionaryRoot._eventID,l.internal.acroformPlugin.printedOut=!0})(c)}),c.internal.events.subscribe("buildDocument",function(){(function(l){l.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var b=l.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var F in b)if(b.hasOwnProperty(F)){var C=b[F];C.objId=void 0,C.hasAnnotation&&da(C,l)}})(c)}),c.internal.events.subscribe("putCatalog",function(){(function(l){if(l.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");l.internal.write("/AcroForm "+l.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(c)}),c.internal.events.subscribe("postPutPages",function(l){(function(b,F){var C=!b;for(var T in b||(F.internal.newObjectDeferredBegin(F.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),F.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),b=b||F.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(b.hasOwnProperty(T)){var Z=b[T],ae=[],_e=Z.Rect;if(Z.Rect&&(Z.Rect=js(Z.Rect,F)),F.internal.newObjectDeferredBegin(Z.objId,!0),Z.DA=Kn.createDefaultAppearanceStream(Z),(0,ge.Z)(Z)==="object"&&typeof Z.getKeyValueListForStream=="function"&&(ae=Z.getKeyValueListForStream()),Z.Rect=_e,Z.hasAppearanceStream&&!Z.appearanceStreamContent){var $e=yi(Z);ae.push({key:"AP",value:"<</N "+$e+">>"}),F.internal.acroformPlugin.xForms.push($e)}if(Z.appearanceStreamContent){var Ze="";for(var st in Z.appearanceStreamContent)if(Z.appearanceStreamContent.hasOwnProperty(st)){var be=Z.appearanceStreamContent[st];if(Ze+="/"+st+" ",Ze+="<<",Object.keys(be).length>=1||Array.isArray(be)){for(var T in be)if(be.hasOwnProperty(T)){var Lt=be[T];typeof Lt=="function"&&(Lt=Lt.call(F,Z)),Ze+="/"+T+" "+Lt+" ",F.internal.acroformPlugin.xForms.indexOf(Lt)>=0||F.internal.acroformPlugin.xForms.push(Lt)}}else typeof(Lt=be)=="function"&&(Lt=Lt.call(F,Z)),Ze+="/"+T+" "+Lt,F.internal.acroformPlugin.xForms.indexOf(Lt)>=0||F.internal.acroformPlugin.xForms.push(Lt);Ze+=">>"}ae.push({key:"AP",value:`<<
`+Ze+">>"})}F.internal.putStream({additionalKeyValues:ae,objectId:Z.objId}),F.internal.out("endobj")}C&&ka(F.internal.acroformPlugin.xForms,F)})(l,c)}),c.internal.acroformPlugin.isInitialized=!0}},_o=ua.__acroform__.arrayToPdfArray=function(c,o,l){var b=function(T){return T};if(Array.isArray(c)){for(var F="[",C=0;C<c.length;C++)switch(C!==0&&(F+=" "),(0,ge.Z)(c[C])){case"boolean":case"number":case"object":F+=c[C].toString();break;case"string":c[C].substr(0,1)!=="/"?(o!==void 0&&l&&(b=l.internal.getEncryptor(o)),F+="("+uo(b(c[C].toString()))+")"):F+=c[C].toString()}return F+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Bo=function(c,o,l){var b=function(F){return F};return o!==void 0&&l&&(b=l.internal.getEncryptor(o)),(c=c||"").toString(),c="("+uo(b(c))+")"},$a=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(c){this._objId=c}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};$a.prototype.toString=function(){return this.objId+" 0 R"},$a.prototype.putStream=function(){var c=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:c,objectId:this.objId}),this.scope.internal.out("endobj")},$a.prototype.getKeyValueListForStream=function(){var c=[],o=Object.getOwnPropertyNames(this).filter(function(C){return C!="content"&&C!="appearanceStreamContent"&&C!="scope"&&C!="objId"&&C.substring(0,1)!="_"});for(var l in o)if(Object.getOwnPropertyDescriptor(this,o[l]).configurable===!1){var b=o[l],F=this[b];F&&(Array.isArray(F)?c.push({key:b,value:_o(F,this.objId,this.scope)}):F instanceof $a?(F.scope=this.scope,c.push({key:b,value:F.objId+" 0 R"})):typeof F!="function"&&c.push({key:b,value:F}))}return c};var xa=function(){$a.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var c,o=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return o},set:function(l){o=l}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(l){c=l.trim()},get:function(){return c||null}})};fo(xa,$a);var pa=function(){$a.call(this);var c,o=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return o.length>0?o:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return o}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(c){var l=function(b){return b};return this.scope&&(l=this.scope.internal.getEncryptor(this.objId)),"("+uo(l(c))+")"}},set:function(l){c=l}})};fo(pa,$a);var Oa=function c(){$a.call(this);var o=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return o},set:function(pt){if(isNaN(pt))throw new Error('Invalid value "'+pt+'" for attribute F supplied.');o=pt}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!za(o,3)},set:function(pt){pt?this.F=Qa(o,3):this.F=_a(o,3)}});var l=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return l},set:function(pt){if(isNaN(pt))throw new Error('Invalid value "'+pt+'" for attribute Ff supplied.');l=pt}});var b=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(b.length!==0)return b},set:function(pt){b=pt!==void 0?pt:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!b||isNaN(b[0])?0:b[0]},set:function(pt){b[0]=pt}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!b||isNaN(b[1])?0:b[1]},set:function(pt){b[1]=pt}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!b||isNaN(b[2])?0:b[2]},set:function(pt){b[2]=pt}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!b||isNaN(b[3])?0:b[3]},set:function(pt){b[3]=pt}});var F="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return F},set:function(pt){switch(pt){case"/Btn":case"/Tx":case"/Ch":case"/Sig":F=pt;break;default:throw new Error('Invalid value "'+pt+'" for attribute FT supplied.')}}});var C=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!C||C.length<1){if(this instanceof dl)return;C="FieldObject"+c.FieldNum++}var pt=function(Dt){return Dt};return this.scope&&(pt=this.scope.internal.getEncryptor(this.objId)),"("+uo(pt(C))+")"},set:function(pt){C=pt.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return C},set:function(pt){C=pt}});var T="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return T},set:function(pt){T=pt}});var Z="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return Z},set:function(pt){Z=pt}});var ae=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return ae},set:function(pt){ae=pt}});var _e=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return _e===void 0?50/Do:_e},set:function(pt){_e=pt}});var $e="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return $e},set:function(pt){$e=pt}});var Ze="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Ze||this instanceof dl||this instanceof ks))return Bo(Ze,this.objId,this.scope)},set:function(pt){pt=pt.toString(),Ze=pt}});var st=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(st)return this instanceof Fo?st:Bo(st,this.objId,this.scope)},set:function(pt){pt=pt.toString(),st=this instanceof Fo?pt:pt.substr(0,1)==="("?Xa(pt.substr(1,pt.length-2)):Xa(pt)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Fo?Xa(st.substr(1,st.length-1)):st},set:function(pt){pt=pt.toString(),st=this instanceof Fo?"/"+pt:pt}});var be=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(be)return be},set:function(pt){this.V=pt}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(be)return this instanceof Fo?be:Bo(be,this.objId,this.scope)},set:function(pt){pt=pt.toString(),be=this instanceof Fo?pt:pt.substr(0,1)==="("?Xa(pt.substr(1,pt.length-2)):Xa(pt)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Fo?Xa(be.substr(1,be.length-1)):be},set:function(pt){pt=pt.toString(),be=this instanceof Fo?"/"+pt:pt}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var Lt,wt=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return wt},set:function(pt){pt=!!pt,wt=pt}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(Lt)return Lt},set:function(pt){Lt=pt}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,1)},set:function(pt){pt?this.Ff=Qa(this.Ff,1):this.Ff=_a(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,2)},set:function(pt){pt?this.Ff=Qa(this.Ff,2):this.Ff=_a(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,3)},set:function(pt){pt?this.Ff=Qa(this.Ff,3):this.Ff=_a(this.Ff,3)}});var kt=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(kt!==null)return kt},set:function(pt){if([0,1,2].indexOf(pt)===-1)throw new Error('Invalid value "'+pt+'" for attribute Q supplied.');kt=pt}}),Object.defineProperty(this,"textAlign",{get:function(){var pt;switch(kt){case 0:default:pt="left";break;case 1:pt="center";break;case 2:pt="right"}return pt},configurable:!0,enumerable:!0,set:function(pt){switch(pt){case"right":case 2:kt=2;break;case"center":case 1:kt=1;break;case"left":case 0:default:kt=0}}})};fo(Oa,$a);var Ja=function(){Oa.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var c=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return c},set:function(l){c=l}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return c},set:function(l){c=l}});var o=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return _o(o,this.objId,this.scope)},set:function(l){var b,F;F=[],typeof(b=l)=="string"&&(F=function(C,T,Z){Z||(Z=1);for(var ae,_e=[];ae=T.exec(C);)_e.push(ae[Z]);return _e}(b,/\((.*?)\)/g)),o=F}}),this.getOptions=function(){return o},this.setOptions=function(l){o=l,this.sort&&o.sort()},this.addOption=function(l){l=(l=l||"").toString(),o.push(l),this.sort&&o.sort()},this.removeOption=function(l,b){for(b=b||!1,l=(l=l||"").toString();o.indexOf(l)!==-1&&(o.splice(o.indexOf(l),1),b!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,18)},set:function(l){l?this.Ff=Qa(this.Ff,18):this.Ff=_a(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,19)},set:function(l){this.combo===!0&&(l?this.Ff=Qa(this.Ff,19):this.Ff=_a(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,20)},set:function(l){l?(this.Ff=Qa(this.Ff,20),o.sort()):this.Ff=_a(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,22)},set:function(l){l?this.Ff=Qa(this.Ff,22):this.Ff=_a(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,23)},set:function(l){l?this.Ff=Qa(this.Ff,23):this.Ff=_a(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,27)},set:function(l){l?this.Ff=Qa(this.Ff,27):this.Ff=_a(this.Ff,27)}}),this.hasAppearanceStream=!1};fo(Ja,Oa);var oo=function(){Ja.call(this),this.fontName="helvetica",this.combo=!1};fo(oo,Ja);var Ua=function(){oo.call(this),this.combo=!0};fo(Ua,oo);var Da=function(){Ua.call(this),this.edit=!0};fo(Da,Ua);var Fo=function(){Oa.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,15)},set:function(l){l?this.Ff=Qa(this.Ff,15):this.Ff=_a(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,16)},set:function(l){l?this.Ff=Qa(this.Ff,16):this.Ff=_a(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,17)},set:function(l){l?this.Ff=Qa(this.Ff,17):this.Ff=_a(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,26)},set:function(l){l?this.Ff=Qa(this.Ff,26):this.Ff=_a(this.Ff,26)}});var c,o={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var l=function(C){return C};if(this.scope&&(l=this.scope.internal.getEncryptor(this.objId)),Object.keys(o).length!==0){var b,F=[];for(b in F.push("<<"),o)F.push("/"+b+" ("+uo(l(o[b]))+")");return F.push(">>"),F.join(`
`)}},set:function(l){(0,ge.Z)(l)==="object"&&(o=l)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return o.CA||""},set:function(l){typeof l=="string"&&(o.CA=l)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return c},set:function(l){c=l}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return c.substr(1,c.length-1)},set:function(l){c="/"+l}})};fo(Fo,Oa);var Ll=function(){Fo.call(this),this.pushButton=!0};fo(Ll,Fo);var cs=function(){Fo.call(this),this.radio=!0,this.pushButton=!1;var c=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return c},set:function(o){c=o!==void 0?o:[]}})};fo(cs,Fo);var dl=function(){var c,o;Oa.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return c},set:function(F){c=F}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return o},set:function(F){o=F}});var l,b={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var F=function(Z){return Z};this.scope&&(F=this.scope.internal.getEncryptor(this.objId));var C,T=[];for(C in T.push("<<"),b)T.push("/"+C+" ("+uo(F(b[C]))+")");return T.push(">>"),T.join(`
`)},set:function(F){(0,ge.Z)(F)==="object"&&(b=F)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return b.CA||""},set:function(F){typeof F=="string"&&(b.CA=F)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return l},set:function(F){l=F}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return l.substr(1,l.length-1)},set:function(F){l="/"+F}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Kn.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};fo(dl,Oa),cs.prototype.setAppearance=function(c){if(!("createAppearanceStream"in c)||!("getCA"in c))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var o in this.Kids)if(this.Kids.hasOwnProperty(o)){var l=this.Kids[o];l.appearanceStreamContent=c.createAppearanceStream(l.optionName),l.caption=c.getCA()}},cs.prototype.createOption=function(c){var o=new dl;return o.Parent=this,o.optionName=c,this.Kids.push(o),kl.call(this.scope,o),o};var Oo=function(){Fo.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Kn.CheckBox.createAppearanceStream()};fo(Oo,Fo);var ks=function(){Oa.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,13)},set:function(o){o?this.Ff=Qa(this.Ff,13):this.Ff=_a(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,21)},set:function(o){o?this.Ff=Qa(this.Ff,21):this.Ff=_a(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,23)},set:function(o){o?this.Ff=Qa(this.Ff,23):this.Ff=_a(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,24)},set:function(o){o?this.Ff=Qa(this.Ff,24):this.Ff=_a(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,25)},set:function(o){o?this.Ff=Qa(this.Ff,25):this.Ff=_a(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,26)},set:function(o){o?this.Ff=Qa(this.Ff,26):this.Ff=_a(this.Ff,26)}});var c=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return c},set:function(o){c=o}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return c},set:function(o){Number.isInteger(o)&&(c=o)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};fo(ks,Oa);var Io=function(){ks.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,14)},set:function(c){c?this.Ff=Qa(this.Ff,14):this.Ff=_a(this.Ff,14)}}),this.password=!0};fo(Io,ks);var Kn={CheckBox:{createAppearanceStream:function(){return{N:{On:Kn.CheckBox.YesNormal},D:{On:Kn.CheckBox.YesPushDown,Off:Kn.CheckBox.OffPushDown}}},YesPushDown:function(c){var o=$o(c);o.scope=c.scope;var l=[],b=c.scope.internal.getFont(c.fontName,c.fontStyle).id,F=c.scope.__private__.encodeColorString(c.color),C=Vi(c,c.caption);return l.push("0.749023 g"),l.push("0 0 "+Pi(Kn.internal.getWidth(c))+" "+Pi(Kn.internal.getHeight(c))+" re"),l.push("f"),l.push("BMC"),l.push("q"),l.push("0 0 1 rg"),l.push("/"+b+" "+Pi(C.fontSize)+" Tf "+F),l.push("BT"),l.push(C.text),l.push("ET"),l.push("Q"),l.push("EMC"),o.stream=l.join(`
`),o},YesNormal:function(c){var o=$o(c);o.scope=c.scope;var l=c.scope.internal.getFont(c.fontName,c.fontStyle).id,b=c.scope.__private__.encodeColorString(c.color),F=[],C=Kn.internal.getHeight(c),T=Kn.internal.getWidth(c),Z=Vi(c,c.caption);return F.push("1 g"),F.push("0 0 "+Pi(T)+" "+Pi(C)+" re"),F.push("f"),F.push("q"),F.push("0 0 1 rg"),F.push("0 0 "+Pi(T-1)+" "+Pi(C-1)+" re"),F.push("W"),F.push("n"),F.push("0 g"),F.push("BT"),F.push("/"+l+" "+Pi(Z.fontSize)+" Tf "+b),F.push(Z.text),F.push("ET"),F.push("Q"),o.stream=F.join(`
`),o},OffPushDown:function(c){var o=$o(c);o.scope=c.scope;var l=[];return l.push("0.749023 g"),l.push("0 0 "+Pi(Kn.internal.getWidth(c))+" "+Pi(Kn.internal.getHeight(c))+" re"),l.push("f"),o.stream=l.join(`
`),o}},RadioButton:{Circle:{createAppearanceStream:function(c){var o={D:{Off:Kn.RadioButton.Circle.OffPushDown},N:{}};return o.N[c]=Kn.RadioButton.Circle.YesNormal,o.D[c]=Kn.RadioButton.Circle.YesPushDown,o},getCA:function(){return"l"},YesNormal:function(c){var o=$o(c);o.scope=c.scope;var l=[],b=Kn.internal.getWidth(c)<=Kn.internal.getHeight(c)?Kn.internal.getWidth(c)/4:Kn.internal.getHeight(c)/4;b=Number((.9*b).toFixed(5));var F=Kn.internal.Bezier_C,C=Number((b*F).toFixed(5));return l.push("q"),l.push("1 0 0 1 "+Po(Kn.internal.getWidth(c)/2)+" "+Po(Kn.internal.getHeight(c)/2)+" cm"),l.push(b+" 0 m"),l.push(b+" "+C+" "+C+" "+b+" 0 "+b+" c"),l.push("-"+C+" "+b+" -"+b+" "+C+" -"+b+" 0 c"),l.push("-"+b+" -"+C+" -"+C+" -"+b+" 0 -"+b+" c"),l.push(C+" -"+b+" "+b+" -"+C+" "+b+" 0 c"),l.push("f"),l.push("Q"),o.stream=l.join(`
`),o},YesPushDown:function(c){var o=$o(c);o.scope=c.scope;var l=[],b=Kn.internal.getWidth(c)<=Kn.internal.getHeight(c)?Kn.internal.getWidth(c)/4:Kn.internal.getHeight(c)/4;b=Number((.9*b).toFixed(5));var F=Number((2*b).toFixed(5)),C=Number((F*Kn.internal.Bezier_C).toFixed(5)),T=Number((b*Kn.internal.Bezier_C).toFixed(5));return l.push("0.749023 g"),l.push("q"),l.push("1 0 0 1 "+Po(Kn.internal.getWidth(c)/2)+" "+Po(Kn.internal.getHeight(c)/2)+" cm"),l.push(F+" 0 m"),l.push(F+" "+C+" "+C+" "+F+" 0 "+F+" c"),l.push("-"+C+" "+F+" -"+F+" "+C+" -"+F+" 0 c"),l.push("-"+F+" -"+C+" -"+C+" -"+F+" 0 -"+F+" c"),l.push(C+" -"+F+" "+F+" -"+C+" "+F+" 0 c"),l.push("f"),l.push("Q"),l.push("0 g"),l.push("q"),l.push("1 0 0 1 "+Po(Kn.internal.getWidth(c)/2)+" "+Po(Kn.internal.getHeight(c)/2)+" cm"),l.push(b+" 0 m"),l.push(b+" "+T+" "+T+" "+b+" 0 "+b+" c"),l.push("-"+T+" "+b+" -"+b+" "+T+" -"+b+" 0 c"),l.push("-"+b+" -"+T+" -"+T+" -"+b+" 0 -"+b+" c"),l.push(T+" -"+b+" "+b+" -"+T+" "+b+" 0 c"),l.push("f"),l.push("Q"),o.stream=l.join(`
`),o},OffPushDown:function(c){var o=$o(c);o.scope=c.scope;var l=[],b=Kn.internal.getWidth(c)<=Kn.internal.getHeight(c)?Kn.internal.getWidth(c)/4:Kn.internal.getHeight(c)/4;b=Number((.9*b).toFixed(5));var F=Number((2*b).toFixed(5)),C=Number((F*Kn.internal.Bezier_C).toFixed(5));return l.push("0.749023 g"),l.push("q"),l.push("1 0 0 1 "+Po(Kn.internal.getWidth(c)/2)+" "+Po(Kn.internal.getHeight(c)/2)+" cm"),l.push(F+" 0 m"),l.push(F+" "+C+" "+C+" "+F+" 0 "+F+" c"),l.push("-"+C+" "+F+" -"+F+" "+C+" -"+F+" 0 c"),l.push("-"+F+" -"+C+" -"+C+" -"+F+" 0 -"+F+" c"),l.push(C+" -"+F+" "+F+" -"+C+" "+F+" 0 c"),l.push("f"),l.push("Q"),o.stream=l.join(`
`),o}},Cross:{createAppearanceStream:function(c){var o={D:{Off:Kn.RadioButton.Cross.OffPushDown},N:{}};return o.N[c]=Kn.RadioButton.Cross.YesNormal,o.D[c]=Kn.RadioButton.Cross.YesPushDown,o},getCA:function(){return"8"},YesNormal:function(c){var o=$o(c);o.scope=c.scope;var l=[],b=Kn.internal.calculateCross(c);return l.push("q"),l.push("1 1 "+Pi(Kn.internal.getWidth(c)-2)+" "+Pi(Kn.internal.getHeight(c)-2)+" re"),l.push("W"),l.push("n"),l.push(Pi(b.x1.x)+" "+Pi(b.x1.y)+" m"),l.push(Pi(b.x2.x)+" "+Pi(b.x2.y)+" l"),l.push(Pi(b.x4.x)+" "+Pi(b.x4.y)+" m"),l.push(Pi(b.x3.x)+" "+Pi(b.x3.y)+" l"),l.push("s"),l.push("Q"),o.stream=l.join(`
`),o},YesPushDown:function(c){var o=$o(c);o.scope=c.scope;var l=Kn.internal.calculateCross(c),b=[];return b.push("0.749023 g"),b.push("0 0 "+Pi(Kn.internal.getWidth(c))+" "+Pi(Kn.internal.getHeight(c))+" re"),b.push("f"),b.push("q"),b.push("1 1 "+Pi(Kn.internal.getWidth(c)-2)+" "+Pi(Kn.internal.getHeight(c)-2)+" re"),b.push("W"),b.push("n"),b.push(Pi(l.x1.x)+" "+Pi(l.x1.y)+" m"),b.push(Pi(l.x2.x)+" "+Pi(l.x2.y)+" l"),b.push(Pi(l.x4.x)+" "+Pi(l.x4.y)+" m"),b.push(Pi(l.x3.x)+" "+Pi(l.x3.y)+" l"),b.push("s"),b.push("Q"),o.stream=b.join(`
`),o},OffPushDown:function(c){var o=$o(c);o.scope=c.scope;var l=[];return l.push("0.749023 g"),l.push("0 0 "+Pi(Kn.internal.getWidth(c))+" "+Pi(Kn.internal.getHeight(c))+" re"),l.push("f"),o.stream=l.join(`
`),o}}},createDefaultAppearanceStream:function(c){var o=c.scope.internal.getFont(c.fontName,c.fontStyle).id,l=c.scope.__private__.encodeColorString(c.color);return"/"+o+" "+c.fontSize+" Tf "+l}};Kn.internal={Bezier_C:.551915024494,calculateCross:function(c){var o=Kn.internal.getWidth(c),l=Kn.internal.getHeight(c),b=Math.min(o,l);return{x1:{x:(o-b)/2,y:(l-b)/2+b},x2:{x:(o-b)/2+b,y:(l-b)/2},x3:{x:(o-b)/2,y:(l-b)/2},x4:{x:(o-b)/2+b,y:(l-b)/2+b}}}},Kn.internal.getWidth=function(c){var o=0;return(0,ge.Z)(c)==="object"&&(o=il(c.Rect[2])),o},Kn.internal.getHeight=function(c){var o=0;return(0,ge.Z)(c)==="object"&&(o=il(c.Rect[3])),o};var kl=ua.addField=function(c){if(Vo(this,c),!(c instanceof Oa))throw new Error("Invalid argument passed to jsPDF.addField.");var o;return(o=c).scope.internal.acroformPlugin.printedOut&&(o.scope.internal.acroformPlugin.printedOut=!1,o.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),o.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(o),c.page=c.scope.internal.getCurrentPageInfo().pageNumber,this};ua.AcroFormChoiceField=Ja,ua.AcroFormListBox=oo,ua.AcroFormComboBox=Ua,ua.AcroFormEditBox=Da,ua.AcroFormButton=Fo,ua.AcroFormPushButton=Ll,ua.AcroFormRadioButton=cs,ua.AcroFormCheckBox=Oo,ua.AcroFormTextField=ks,ua.AcroFormPasswordField=Io,ua.AcroFormAppearance=Kn,ua.AcroForm={ChoiceField:Ja,ListBox:oo,ComboBox:Ua,EditBox:Da,Button:Fo,PushButton:Ll,RadioButton:cs,CheckBox:Oo,TextField:ks,PasswordField:Io,Appearance:Kn},Ai.AcroForm={ChoiceField:Ja,ListBox:oo,ComboBox:Ua,EditBox:Da,Button:Fo,PushButton:Ll,RadioButton:cs,CheckBox:Oo,TextField:ks,PasswordField:Io,Appearance:Kn};var To=Ai.AcroForm;function Hl(c){return c.reduce(function(o,l,b){return o[l]=b,o},{})}(function(c){c.__addimage__={};var o="UNKNOWN",l={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},b=c.__addimage__.getImageFileTypeByImageData=function(vt,Ct){var rr,U,ee,Se,Te,He=o;if((Ct=Ct||o)==="RGBA"||vt.data!==void 0&&vt.data instanceof Uint8ClampedArray&&"height"in vt&&"width"in vt)return"RGBA";if(hn(vt))for(Te in l)for(ee=l[Te],rr=0;rr<ee.length;rr+=1){for(Se=!0,U=0;U<ee[rr].length;U+=1)if(ee[rr][U]!==void 0&&ee[rr][U]!==vt[U]){Se=!1;break}if(Se===!0){He=Te;break}}else for(Te in l)for(ee=l[Te],rr=0;rr<ee.length;rr+=1){for(Se=!0,U=0;U<ee[rr].length;U+=1)if(ee[rr][U]!==void 0&&ee[rr][U]!==vt.charCodeAt(U)){Se=!1;break}if(Se===!0){He=Te;break}}return He===o&&Ct!==o&&(He=Ct),He},F=function vt(Ct){for(var rr=this.internal.write,U=this.internal.putStream,ee=(0,this.internal.getFilters)();ee.indexOf("FlateEncode")!==-1;)ee.splice(ee.indexOf("FlateEncode"),1);Ct.objectId=this.internal.newObject();var Se=[];if(Se.push({key:"Type",value:"/XObject"}),Se.push({key:"Subtype",value:"/Image"}),Se.push({key:"Width",value:Ct.width}),Se.push({key:"Height",value:Ct.height}),Ct.colorSpace===kt.INDEXED?Se.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Ct.palette.length/3-1)+" "+("sMask"in Ct&&Ct.sMask!==void 0?Ct.objectId+2:Ct.objectId+1)+" 0 R]"}):(Se.push({key:"ColorSpace",value:"/"+Ct.colorSpace}),Ct.colorSpace===kt.DEVICE_CMYK&&Se.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Se.push({key:"BitsPerComponent",value:Ct.bitsPerComponent}),"decodeParameters"in Ct&&Ct.decodeParameters!==void 0&&Se.push({key:"DecodeParms",value:"<<"+Ct.decodeParameters+">>"}),"transparency"in Ct&&Array.isArray(Ct.transparency)){for(var Te="",He=0,Xe=Ct.transparency.length;He<Xe;He++)Te+=Ct.transparency[He]+" "+Ct.transparency[He]+" ";Se.push({key:"Mask",value:"["+Te+"]"})}Ct.sMask!==void 0&&Se.push({key:"SMask",value:Ct.objectId+1+" 0 R"});var ht=Ct.filter!==void 0?["/"+Ct.filter]:void 0;if(U({data:Ct.data,additionalKeyValues:Se,alreadyAppliedFilters:ht,objectId:Ct.objectId}),rr("endobj"),"sMask"in Ct&&Ct.sMask!==void 0){var St="/Predictor "+Ct.predictor+" /Colors 1 /BitsPerComponent "+Ct.bitsPerComponent+" /Columns "+Ct.width,Ae={width:Ct.width,height:Ct.height,colorSpace:"DeviceGray",bitsPerComponent:Ct.bitsPerComponent,decodeParameters:St,data:Ct.sMask};"filter"in Ct&&(Ae.filter=Ct.filter),vt.call(this,Ae)}if(Ct.colorSpace===kt.INDEXED){var Re=this.internal.newObject();U({data:Vt(new Uint8Array(Ct.palette)),objectId:Re}),rr("endobj")}},C=function(){var vt=this.internal.collections.addImage_images;for(var Ct in vt)F.call(this,vt[Ct])},T=function(){var vt,Ct=this.internal.collections.addImage_images,rr=this.internal.write;for(var U in Ct)rr("/I"+(vt=Ct[U]).index,vt.objectId,"0","R")},Z=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",C),this.internal.events.subscribe("putXobjectDict",T))},ae=function(){var vt=this.internal.collections.addImage_images;return Z.call(this),vt},_e=function(){return Object.keys(this.internal.collections.addImage_images).length},$e=function(vt){return typeof c["process"+vt.toUpperCase()]=="function"},Ze=function(vt){return(0,ge.Z)(vt)==="object"&&vt.nodeType===1},st=function(vt,Ct){if(vt.nodeName==="IMG"&&vt.hasAttribute("src")){var rr=""+vt.getAttribute("src");if(rr.indexOf("data:image/")===0)return Jn(unescape(rr).split("base64,").pop());var U=c.loadFile(rr,!0);if(U!==void 0)return U}if(vt.nodeName==="CANVAS"){if(vt.width===0||vt.height===0)throw new Error("Given canvas must have data. Canvas width: "+vt.width+", height: "+vt.height);var ee;switch(Ct){case"PNG":ee="image/png";break;case"WEBP":ee="image/webp";break;case"JPEG":case"JPG":default:ee="image/jpeg"}return Jn(vt.toDataURL(ee,1).split("base64,").pop())}},be=function(vt){var Ct=this.internal.collections.addImage_images;if(Ct){for(var rr in Ct)if(vt===Ct[rr].alias)return Ct[rr]}},Lt=function(vt,Ct,rr){return vt||Ct||(vt=-96,Ct=-96),vt<0&&(vt=-1*rr.width*72/vt/this.internal.scaleFactor),Ct<0&&(Ct=-1*rr.height*72/Ct/this.internal.scaleFactor),vt===0&&(vt=Ct*rr.width/rr.height),Ct===0&&(Ct=vt*rr.height/rr.width),[vt,Ct]},wt=function(vt,Ct,rr,U,ee,Se){var Te=Lt.call(this,rr,U,ee),He=this.internal.getCoordinateString,Xe=this.internal.getVerticalCoordinateString,ht=ae.call(this);if(rr=Te[0],U=Te[1],ht[ee.index]=ee,Se){Se*=Math.PI/180;var St=Math.cos(Se),Ae=Math.sin(Se),Re=function(et){return et.toFixed(4)},Ye=[Re(St),Re(Ae),Re(-1*Ae),Re(St),0,0,"cm"]}this.internal.write("q"),Se?(this.internal.write([1,"0","0",1,He(vt),Xe(Ct+U),"cm"].join(" ")),this.internal.write(Ye.join(" ")),this.internal.write([He(rr),"0","0",He(U),"0","0","cm"].join(" "))):this.internal.write([He(rr),"0","0",He(U),He(vt),Xe(Ct+U),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+ee.index+" Do"),this.internal.write("Q")},kt=c.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};c.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var pt=c.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Dt=c.__addimage__.sHashCode=function(vt){var Ct,rr,U=0;if(typeof vt=="string")for(rr=vt.length,Ct=0;Ct<rr;Ct++)U=(U<<5)-U+vt.charCodeAt(Ct),U|=0;else if(hn(vt))for(rr=vt.byteLength/2,Ct=0;Ct<rr;Ct++)U=(U<<5)-U+vt[Ct],U|=0;return U},ar=c.__addimage__.validateStringAsBase64=function(vt){(vt=vt||"").toString().trim();var Ct=!0;return vt.length===0&&(Ct=!1),vt.length%4!=0&&(Ct=!1),/^[A-Za-z0-9+/]+$/.test(vt.substr(0,vt.length-2))===!1&&(Ct=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(vt.substr(-2))===!1&&(Ct=!1),Ct},wr=c.__addimage__.extractImageFromDataUrl=function(vt){if(vt==null||!(vt=vt.trim()).startsWith("data:"))return null;var Ct=vt.indexOf(",");return Ct<0?null:vt.substring(0,Ct).trim().endsWith("base64")?vt.substring(Ct+1):null},Qr=c.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};c.__addimage__.isArrayBuffer=function(vt){return Qr()&&vt instanceof ArrayBuffer};var hn=c.__addimage__.isArrayBufferView=function(vt){return Qr()&&typeof Uint32Array!="undefined"&&(vt instanceof Int8Array||vt instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&vt instanceof Uint8ClampedArray||vt instanceof Int16Array||vt instanceof Uint16Array||vt instanceof Int32Array||vt instanceof Uint32Array||vt instanceof Float32Array||vt instanceof Float64Array)},_r=c.__addimage__.binaryStringToUint8Array=function(vt){for(var Ct=vt.length,rr=new Uint8Array(Ct),U=0;U<Ct;U++)rr[U]=vt.charCodeAt(U);return rr},Vt=c.__addimage__.arrayBufferToBinaryString=function(vt){for(var Ct="",rr=hn(vt)?vt:new Uint8Array(vt),U=0;U<rr.length;U+=8192)Ct+=String.fromCharCode.apply(null,rr.subarray(U,U+8192));return Ct};c.addImage=function(){var vt,Ct,rr,U,ee,Se,Te,He,Xe;if(typeof arguments[1]=="number"?(Ct=o,rr=arguments[1],U=arguments[2],ee=arguments[3],Se=arguments[4],Te=arguments[5],He=arguments[6],Xe=arguments[7]):(Ct=arguments[1],rr=arguments[2],U=arguments[3],ee=arguments[4],Se=arguments[5],Te=arguments[6],He=arguments[7],Xe=arguments[8]),(0,ge.Z)(vt=arguments[0])==="object"&&!Ze(vt)&&"imageData"in vt){var ht=vt;vt=ht.imageData,Ct=ht.format||Ct||o,rr=ht.x||rr||0,U=ht.y||U||0,ee=ht.w||ht.width||ee,Se=ht.h||ht.height||Se,Te=ht.alias||Te,He=ht.compression||He,Xe=ht.rotation||ht.angle||Xe}var St=this.internal.getFilters();if(He===void 0&&St.indexOf("FlateEncode")!==-1&&(He="SLOW"),isNaN(rr)||isNaN(U))throw new Error("Invalid coordinates passed to jsPDF.addImage");Z.call(this);var Ae=Lr.call(this,vt,Ct,Te,He);return wt.call(this,rr,U,ee,Se,Ae,Xe),this};var Lr=function(vt,Ct,rr,U){var ee,Se,Te;if(typeof vt=="string"&&b(vt)===o){vt=unescape(vt);var He=Jr(vt,!1);(He!==""||(He=c.loadFile(vt,!0))!==void 0)&&(vt=He)}if(Ze(vt)&&(vt=st(vt,Ct)),Ct=b(vt,Ct),!$e(Ct))throw new Error("addImage does not support files of type '"+Ct+"', please ensure that a plugin for '"+Ct+"' support is added.");if(((Te=rr)==null||Te.length===0)&&(rr=function(Xe){return typeof Xe=="string"||hn(Xe)?Dt(Xe):hn(Xe.data)?Dt(Xe.data):null}(vt)),(ee=be.call(this,rr))||(Qr()&&(vt instanceof Uint8Array||Ct==="RGBA"||(Se=vt,vt=_r(vt))),ee=this["process"+Ct.toUpperCase()](vt,_e.call(this),rr,function(Xe){return Xe&&typeof Xe=="string"&&(Xe=Xe.toUpperCase()),Xe in c.image_compression?Xe:pt.NONE}(U),Se)),!ee)throw new Error("An unknown error occurred whilst processing the image.");return ee},Jr=c.__addimage__.convertBase64ToBinaryString=function(vt,Ct){Ct=typeof Ct!="boolean"||Ct;var rr,U="";if(typeof vt=="string"){var ee;rr=(ee=wr(vt))!==null&&ee!==void 0?ee:vt;try{U=Jn(rr)}catch(Se){if(Ct)throw ar(rr)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Se.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return U};c.getImageProperties=function(vt){var Ct,rr,U="";if(Ze(vt)&&(vt=st(vt)),typeof vt=="string"&&b(vt)===o&&((U=Jr(vt,!1))===""&&(U=c.loadFile(vt)||""),vt=U),rr=b(vt),!$e(rr))throw new Error("addImage does not support files of type '"+rr+"', please ensure that a plugin for '"+rr+"' support is added.");if(!Qr()||vt instanceof Uint8Array||(vt=_r(vt)),!(Ct=this["process"+rr.toUpperCase()](vt)))throw new Error("An unknown error occurred whilst processing the image");return Ct.fileType=rr,Ct}})(Ai.API),function(c){var o=function(l){if(l!==void 0&&l!="")return!0};Ai.API.events.push(["addPage",function(l){this.internal.getPageInfo(l.pageNumber).pageContext.annotations=[]}]),c.events.push(["putPage",function(l){for(var b,F,C,T=this.internal.getCoordinateString,Z=this.internal.getVerticalCoordinateString,ae=this.internal.getPageInfoByObjId(l.objId),_e=l.pageContext.annotations,$e=!1,Ze=0;Ze<_e.length&&!$e;Ze++)switch((b=_e[Ze]).type){case"link":(o(b.options.url)||o(b.options.pageNumber))&&($e=!0);break;case"reference":case"text":case"freetext":$e=!0}if($e!=0){this.internal.write("/Annots [");for(var st=0;st<_e.length;st++){b=_e[st];var be=this.internal.pdfEscape,Lt=this.internal.getEncryptor(l.objId);switch(b.type){case"reference":this.internal.write(" "+b.object.objId+" 0 R ");break;case"text":var wt=this.internal.newAdditionalObject(),kt=this.internal.newAdditionalObject(),pt=this.internal.getEncryptor(wt.objId),Dt=b.title||"Note";C="<</Type /Annot /Subtype /Text "+(F="/Rect ["+T(b.bounds.x)+" "+Z(b.bounds.y+b.bounds.h)+" "+T(b.bounds.x+b.bounds.w)+" "+Z(b.bounds.y)+"] ")+"/Contents ("+be(pt(b.contents))+")",C+=" /Popup "+kt.objId+" 0 R",C+=" /P "+ae.objId+" 0 R",C+=" /T ("+be(pt(Dt))+") >>",wt.content=C;var ar=wt.objId+" 0 R";C="<</Type /Annot /Subtype /Popup "+(F="/Rect ["+T(b.bounds.x+30)+" "+Z(b.bounds.y+b.bounds.h)+" "+T(b.bounds.x+b.bounds.w+30)+" "+Z(b.bounds.y)+"] ")+" /Parent "+ar,b.open&&(C+=" /Open true"),C+=" >>",kt.content=C,this.internal.write(wt.objId,"0 R",kt.objId,"0 R");break;case"freetext":F="/Rect ["+T(b.bounds.x)+" "+Z(b.bounds.y)+" "+T(b.bounds.x+b.bounds.w)+" "+Z(b.bounds.y+b.bounds.h)+"] ";var wr=b.color||"#000000";C="<</Type /Annot /Subtype /FreeText "+F+"/Contents ("+be(Lt(b.contents))+")",C+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+wr+")",C+=" /Border [0 0 0]",C+=" >>",this.internal.write(C);break;case"link":if(b.options.name){var Qr=this.annotations._nameMap[b.options.name];b.options.pageNumber=Qr.page,b.options.top=Qr.y}else b.options.top||(b.options.top=0);if(F="/Rect ["+b.finalBounds.x+" "+b.finalBounds.y+" "+b.finalBounds.w+" "+b.finalBounds.h+"] ",C="",b.options.url)C="<</Type /Annot /Subtype /Link "+F+"/Border [0 0 0] /A <</S /URI /URI ("+be(Lt(b.options.url))+") >>";else if(b.options.pageNumber)switch(C="<</Type /Annot /Subtype /Link "+F+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(b.options.pageNumber).objId+" 0 R",b.options.magFactor=b.options.magFactor||"XYZ",b.options.magFactor){case"Fit":C+=" /Fit]";break;case"FitH":C+=" /FitH "+b.options.top+"]";break;case"FitV":b.options.left=b.options.left||0,C+=" /FitV "+b.options.left+"]";break;case"XYZ":default:var hn=Z(b.options.top);b.options.left=b.options.left||0,b.options.zoom===void 0&&(b.options.zoom=0),C+=" /XYZ "+b.options.left+" "+hn+" "+b.options.zoom+"]"}C!=""&&(C+=" >>",this.internal.write(C))}}this.internal.write("]")}}]),c.createAnnotation=function(l){var b=this.internal.getCurrentPageInfo();switch(l.type){case"link":this.link(l.bounds.x,l.bounds.y,l.bounds.w,l.bounds.h,l);break;case"text":case"freetext":b.pageContext.annotations.push(l)}},c.link=function(l,b,F,C,T){var Z=this.internal.getCurrentPageInfo(),ae=this.internal.getCoordinateString,_e=this.internal.getVerticalCoordinateString;Z.pageContext.annotations.push({finalBounds:{x:ae(l),y:_e(b),w:ae(l+F),h:_e(b+C)},options:T,type:"link"})},c.textWithLink=function(l,b,F,C){var T,Z,ae=this.getTextWidth(l),_e=this.internal.getLineHeight()/this.internal.scaleFactor;if(C.maxWidth!==void 0){Z=C.maxWidth;var $e=this.splitTextToSize(l,Z).length;T=Math.ceil(_e*$e)}else Z=ae,T=_e;return this.text(l,b,F,C),F+=.2*_e,C.align==="center"&&(b-=ae/2),C.align==="right"&&(b-=ae),this.link(b,F-_e,Z,T,C),ae},c.getTextWidth=function(l){var b=this.internal.getFontSize();return this.getStringUnitWidth(l)*b/this.internal.scaleFactor}}(Ai.API),function(c){var o={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},l={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},b={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},F=[1570,1571,1573,1575];c.__arabicParser__={};var C=c.__arabicParser__.isInArabicSubstitutionA=function(wt){return o[wt.charCodeAt(0)]!==void 0},T=c.__arabicParser__.isArabicLetter=function(wt){return typeof wt=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(wt)},Z=c.__arabicParser__.isArabicEndLetter=function(wt){return T(wt)&&C(wt)&&o[wt.charCodeAt(0)].length<=2},ae=c.__arabicParser__.isArabicAlfLetter=function(wt){return T(wt)&&F.indexOf(wt.charCodeAt(0))>=0};c.__arabicParser__.arabicLetterHasIsolatedForm=function(wt){return T(wt)&&C(wt)&&o[wt.charCodeAt(0)].length>=1};var _e=c.__arabicParser__.arabicLetterHasFinalForm=function(wt){return T(wt)&&C(wt)&&o[wt.charCodeAt(0)].length>=2};c.__arabicParser__.arabicLetterHasInitialForm=function(wt){return T(wt)&&C(wt)&&o[wt.charCodeAt(0)].length>=3};var $e=c.__arabicParser__.arabicLetterHasMedialForm=function(wt){return T(wt)&&C(wt)&&o[wt.charCodeAt(0)].length==4},Ze=c.__arabicParser__.resolveLigatures=function(wt){var kt=0,pt=l,Dt="",ar=0;for(kt=0;kt<wt.length;kt+=1)pt[wt.charCodeAt(kt)]!==void 0?(ar++,typeof(pt=pt[wt.charCodeAt(kt)])=="number"&&(Dt+=String.fromCharCode(pt),pt=l,ar=0),kt===wt.length-1&&(pt=l,Dt+=wt.charAt(kt-(ar-1)),kt-=ar-1,ar=0)):(pt=l,Dt+=wt.charAt(kt-ar),kt-=ar,ar=0);return Dt};c.__arabicParser__.isArabicDiacritic=function(wt){return wt!==void 0&&b[wt.charCodeAt(0)]!==void 0};var st=c.__arabicParser__.getCorrectForm=function(wt,kt,pt){return T(wt)?C(wt)===!1?-1:!_e(wt)||!T(kt)&&!T(pt)||!T(pt)&&Z(kt)||Z(wt)&&!T(kt)||Z(wt)&&ae(kt)||Z(wt)&&Z(kt)?0:$e(wt)&&T(kt)&&!Z(kt)&&T(pt)&&_e(pt)?3:Z(wt)||!T(pt)?1:2:-1},be=function(wt){var kt=0,pt=0,Dt=0,ar="",wr="",Qr="",hn=(wt=wt||"").split("\\s+"),_r=[];for(kt=0;kt<hn.length;kt+=1){for(_r.push(""),pt=0;pt<hn[kt].length;pt+=1)ar=hn[kt][pt],wr=hn[kt][pt-1],Qr=hn[kt][pt+1],T(ar)?(Dt=st(ar,wr,Qr),_r[kt]+=Dt!==-1?String.fromCharCode(o[ar.charCodeAt(0)][Dt]):ar):_r[kt]+=ar;_r[kt]=Ze(_r[kt])}return _r.join(" ")},Lt=c.__arabicParser__.processArabic=c.processArabic=function(){var wt,kt=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,pt=[];if(Array.isArray(kt)){var Dt=0;for(pt=[],Dt=0;Dt<kt.length;Dt+=1)Array.isArray(kt[Dt])?pt.push([be(kt[Dt][0]),kt[Dt][1],kt[Dt][2]]):pt.push([be(kt[Dt])]);wt=pt}else wt=be(kt);return typeof arguments[0]=="string"?wt:(arguments[0].text=wt,arguments[0])};c.events.push(["preProcessText",Lt])}(Ai.API),Ai.API.autoPrint=function(c){var o;switch((c=c||{}).variant=c.variant||"non-conform",c.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){o=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+o+" 0 R")})}return this},function(c){var o=function(){var l=void 0;Object.defineProperty(this,"pdf",{get:function(){return l},set:function(Z){l=Z}});var b=150;Object.defineProperty(this,"width",{get:function(){return b},set:function(Z){b=isNaN(Z)||Number.isInteger(Z)===!1||Z<0?150:Z,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=b+1)}});var F=300;Object.defineProperty(this,"height",{get:function(){return F},set:function(Z){F=isNaN(Z)||Number.isInteger(Z)===!1||Z<0?300:Z,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=F+1)}});var C=[];Object.defineProperty(this,"childNodes",{get:function(){return C},set:function(Z){C=Z}});var T={};Object.defineProperty(this,"style",{get:function(){return T},set:function(Z){T=Z}}),Object.defineProperty(this,"parentNode",{})};o.prototype.getContext=function(l,b){var F;if((l=l||"2d")!=="2d")return null;for(F in b)this.pdf.context2d.hasOwnProperty(F)&&(this.pdf.context2d[F]=b[F]);return this.pdf.context2d._canvas=this,this.pdf.context2d},o.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},c.events.push(["initialized",function(){this.canvas=new o,this.canvas.pdf=this}])}(Ai.API),function(c){var o={left:0,top:0,bottom:0,right:0},l=!1,b=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},o),this.internal.__cell__.margins.width=this.getPageWidth(),F.call(this))},F=function(){this.internal.__cell__.lastCell=new C,this.internal.__cell__.pages=1},C=function(){var ae=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ae},set:function(wt){ae=wt}});var _e=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return _e},set:function(wt){_e=wt}});var $e=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return $e},set:function(wt){$e=wt}});var Ze=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return Ze},set:function(wt){Ze=wt}});var st=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return st},set:function(wt){st=wt}});var be=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return be},set:function(wt){be=wt}});var Lt=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return Lt},set:function(wt){Lt=wt}}),this};C.prototype.clone=function(){return new C(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},C.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},c.setHeaderFunction=function(ae){return b.call(this),this.internal.__cell__.headerFunction=typeof ae=="function"?ae:void 0,this},c.getTextDimensions=function(ae,_e){b.call(this);var $e=(_e=_e||{}).fontSize||this.getFontSize(),Ze=_e.font||this.getFont(),st=_e.scaleFactor||this.internal.scaleFactor,be=0,Lt=0,wt=0,kt=this;if(!Array.isArray(ae)&&typeof ae!="string"){if(typeof ae!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");ae=String(ae)}var pt=_e.maxWidth;pt>0?typeof ae=="string"?ae=this.splitTextToSize(ae,pt):Object.prototype.toString.call(ae)==="[object Array]"&&(ae=ae.reduce(function(ar,wr){return ar.concat(kt.splitTextToSize(wr,pt))},[])):ae=Array.isArray(ae)?ae:[ae];for(var Dt=0;Dt<ae.length;Dt++)be<(wt=this.getStringUnitWidth(ae[Dt],{font:Ze})*$e)&&(be=wt);return be!==0&&(Lt=ae.length),{w:be/=st,h:Math.max((Lt*$e*this.getLineHeightFactor()-$e*(this.getLineHeightFactor()-1))/st,0)}},c.cellAddPage=function(){b.call(this),this.addPage();var ae=this.internal.__cell__.margins||o;return this.internal.__cell__.lastCell=new C(ae.left,ae.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var T=c.cell=function(){var ae;ae=arguments[0]instanceof C?arguments[0]:new C(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),b.call(this);var _e=this.internal.__cell__.lastCell,$e=this.internal.__cell__.padding,Ze=this.internal.__cell__.margins||o,st=this.internal.__cell__.tableHeaderRow,be=this.internal.__cell__.printHeaders;return _e.lineNumber!==void 0&&(_e.lineNumber===ae.lineNumber?(ae.x=(_e.x||0)+(_e.width||0),ae.y=_e.y||0):_e.y+_e.height+ae.height+Ze.bottom>this.getPageHeight()?(this.cellAddPage(),ae.y=Ze.top,be&&st&&(this.printHeaderRow(ae.lineNumber,!0),ae.y+=st[0].height)):ae.y=_e.y+_e.height||ae.y),ae.text[0]!==void 0&&(this.rect(ae.x,ae.y,ae.width,ae.height,l===!0?"FD":void 0),ae.align==="right"?this.text(ae.text,ae.x+ae.width-$e,ae.y+$e,{align:"right",baseline:"top"}):ae.align==="center"?this.text(ae.text,ae.x+ae.width/2,ae.y+$e,{align:"center",baseline:"top",maxWidth:ae.width-$e-$e}):this.text(ae.text,ae.x+$e,ae.y+$e,{align:"left",baseline:"top",maxWidth:ae.width-$e-$e})),this.internal.__cell__.lastCell=ae,this};c.table=function(ae,_e,$e,Ze,st){if(b.call(this),!$e)throw new Error("No data for PDF table.");var be,Lt,wt,kt,pt=[],Dt=[],ar=[],wr={},Qr={},hn=[],_r=[],Vt=(st=st||{}).autoSize||!1,Lr=st.printHeaders!==!1,Jr=st.css&&st.css["font-size"]!==void 0?16*st.css["font-size"]:st.fontSize||12,vt=st.margins||Object.assign({width:this.getPageWidth()},o),Ct=typeof st.padding=="number"?st.padding:3,rr=st.headerBackgroundColor||"#c8c8c8",U=st.headerTextColor||"#000";if(F.call(this),this.internal.__cell__.printHeaders=Lr,this.internal.__cell__.margins=vt,this.internal.__cell__.table_font_size=Jr,this.internal.__cell__.padding=Ct,this.internal.__cell__.headerBackgroundColor=rr,this.internal.__cell__.headerTextColor=U,this.setFontSize(Jr),Ze==null)Dt=pt=Object.keys($e[0]),ar=pt.map(function(){return"left"});else if(Array.isArray(Ze)&&(0,ge.Z)(Ze[0])==="object")for(pt=Ze.map(function(ht){return ht.name}),Dt=Ze.map(function(ht){return ht.prompt||ht.name||""}),ar=Ze.map(function(ht){return ht.align||"left"}),be=0;be<Ze.length;be+=1)Qr[Ze[be].name]=Ze[be].width*(19.049976/25.4);else Array.isArray(Ze)&&typeof Ze[0]=="string"&&(Dt=pt=Ze,ar=pt.map(function(){return"left"}));if(Vt||Array.isArray(Ze)&&typeof Ze[0]=="string")for(be=0;be<pt.length;be+=1){for(wr[kt=pt[be]]=$e.map(function(ht){return ht[kt]}),this.setFont(void 0,"bold"),hn.push(this.getTextDimensions(Dt[be],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),Lt=wr[kt],this.setFont(void 0,"normal"),wt=0;wt<Lt.length;wt+=1)hn.push(this.getTextDimensions(Lt[wt],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Qr[kt]=Math.max.apply(null,hn)+Ct+Ct,hn=[]}if(Lr){var ee={};for(be=0;be<pt.length;be+=1)ee[pt[be]]={},ee[pt[be]].text=Dt[be],ee[pt[be]].align=ar[be];var Se=Z.call(this,ee,Qr);_r=pt.map(function(ht){return new C(ae,_e,Qr[ht],Se,ee[ht].text,void 0,ee[ht].align)}),this.setTableHeaderRow(_r),this.printHeaderRow(1,!1)}var Te=Ze.reduce(function(ht,St){return ht[St.name]=St.align,ht},{});for(be=0;be<$e.length;be+=1){"rowStart"in st&&st.rowStart instanceof Function&&st.rowStart({row:be,data:$e[be]},this);var He=Z.call(this,$e[be],Qr);for(wt=0;wt<pt.length;wt+=1){var Xe=$e[be][pt[wt]];"cellStart"in st&&st.cellStart instanceof Function&&st.cellStart({row:be,col:wt,data:Xe},this),T.call(this,new C(ae,_e,Qr[pt[wt]],He,Xe,be+2,Te[pt[wt]]))}}return this.internal.__cell__.table_x=ae,this.internal.__cell__.table_y=_e,this};var Z=function(ae,_e){var $e=this.internal.__cell__.padding,Ze=this.internal.__cell__.table_font_size,st=this.internal.scaleFactor;return Object.keys(ae).map(function(be){var Lt=ae[be];return this.splitTextToSize(Lt.hasOwnProperty("text")?Lt.text:Lt,_e[be]-$e-$e)},this).map(function(be){return this.getLineHeightFactor()*be.length*Ze/st+$e+$e},this).reduce(function(be,Lt){return Math.max(be,Lt)},0)};c.setTableHeaderRow=function(ae){b.call(this),this.internal.__cell__.tableHeaderRow=ae},c.printHeaderRow=function(ae,_e){if(b.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var $e;if(l=!0,typeof this.internal.__cell__.headerFunction=="function"){var Ze=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new C(Ze[0],Ze[1],Ze[2],Ze[3],void 0,-1)}this.setFont(void 0,"bold");for(var st=[],be=0;be<this.internal.__cell__.tableHeaderRow.length;be+=1){$e=this.internal.__cell__.tableHeaderRow[be].clone(),_e&&($e.y=this.internal.__cell__.margins.top||0,st.push($e)),$e.lineNumber=ae;var Lt=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),T.call(this,$e),this.setTextColor(Lt)}st.length>0&&this.setTableHeaderRow(st),this.setFont(void 0,"normal"),l=!1}}(Ai.API);var zs={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},ms=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Pa=Hl(ms),Uo=[100,200,300,400,500,600,700,800,900],jl=Hl(Uo);function tc(c){var o=c.family.replace(/"|'/g,"").toLowerCase(),l=function(C){return zs[C=C||"normal"]?C:"normal"}(c.style),b=function(C){if(!C)return 400;if(typeof C=="number")return C>=100&&C<=900&&C%100==0?C:400;if(/^\d00$/.test(C))return parseInt(C);switch(C){case"bold":return 700;case"normal":default:return 400}}(c.weight),F=function(C){return typeof Pa[C=C||"normal"]=="number"?C:"normal"}(c.stretch);return{family:o,style:l,weight:b,stretch:F,src:c.src||[],ref:c.ref||{name:o,style:[F,l,b].join(" ")}}}function fl(c,o,l,b){var F;for(F=l;F>=0&&F<o.length;F+=b)if(c[o[F]])return c[o[F]];for(F=l;F>=0&&F<o.length;F-=b)if(c[o[F]])return c[o[F]]}var ma={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},oa={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function ho(c){return[c.stretch,c.style,c.weight,c.family].join(" ")}function Za(c,o,l){for(var b=(l=l||{}).defaultFontFamily||"times",F=Object.assign({},ma,l.genericFontFamilies||{}),C=null,T=null,Z=0;Z<o.length;++Z)if(F[(C=tc(o[Z])).family]&&(C.family=F[C.family]),c.hasOwnProperty(C.family)){T=c[C.family];break}if(!(T=T||c[b]))throw new Error("Could not find a font-family for the rule '"+ho(C)+"' and default family '"+b+"'.");if(T=function(ae,_e){if(_e[ae])return _e[ae];var $e=Pa[ae],Ze=$e<=Pa.normal?-1:1,st=fl(_e,ms,$e,Ze);if(!st)throw new Error("Could not find a matching font-stretch value for "+ae);return st}(C.stretch,T),T=function(ae,_e){if(_e[ae])return _e[ae];for(var $e=zs[ae],Ze=0;Ze<$e.length;++Ze)if(_e[$e[Ze]])return _e[$e[Ze]];throw new Error("Could not find a matching font-style for "+ae)}(C.style,T),!(T=function(ae,_e){if(_e[ae])return _e[ae];if(ae===400&&_e[500])return _e[500];if(ae===500&&_e[400])return _e[400];var $e=jl[ae],Ze=fl(_e,Uo,$e,ae<400?-1:1);if(!Ze)throw new Error("Could not find a matching font-weight for value "+ae);return Ze}(C.weight,T)))throw new Error("Failed to resolve a font for the rule '"+ho(C)+"'.");return T}function to(c){return c.trimLeft()}function Ro(c,o){for(var l=0;l<c.length;){if(c.charAt(l)===o)return[c.substring(0,l),c.substring(l+1)];l+=1}return null}function Ya(c){var o=c.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return o===null?null:[o[0],c.substring(o[0].length)]}var Wo,Ds,hl,Xs=["times"];(function(c){var o,l,b,F,C,T,Z,ae,_e,$e=function(Ae){return Ae=Ae||{},this.isStrokeTransparent=Ae.isStrokeTransparent||!1,this.strokeOpacity=Ae.strokeOpacity||1,this.strokeStyle=Ae.strokeStyle||"#000000",this.fillStyle=Ae.fillStyle||"#000000",this.isFillTransparent=Ae.isFillTransparent||!1,this.fillOpacity=Ae.fillOpacity||1,this.font=Ae.font||"10px sans-serif",this.textBaseline=Ae.textBaseline||"alphabetic",this.textAlign=Ae.textAlign||"left",this.lineWidth=Ae.lineWidth||1,this.lineJoin=Ae.lineJoin||"miter",this.lineCap=Ae.lineCap||"butt",this.path=Ae.path||[],this.transform=Ae.transform!==void 0?Ae.transform.clone():new ae,this.globalCompositeOperation=Ae.globalCompositeOperation||"normal",this.globalAlpha=Ae.globalAlpha||1,this.clip_path=Ae.clip_path||[],this.currentPoint=Ae.currentPoint||new T,this.miterLimit=Ae.miterLimit||10,this.lastPoint=Ae.lastPoint||new T,this.lineDashOffset=Ae.lineDashOffset||0,this.lineDash=Ae.lineDash||[],this.margin=Ae.margin||[0,0,0,0],this.prevPageLastElemOffset=Ae.prevPageLastElemOffset||0,this.ignoreClearRect=typeof Ae.ignoreClearRect!="boolean"||Ae.ignoreClearRect,this};c.events.push(["initialized",function(){this.context2d=new Ze(this),o=this.internal.f2,l=this.internal.getCoordinateString,b=this.internal.getVerticalCoordinateString,F=this.internal.getHorizontalCoordinate,C=this.internal.getVerticalCoordinate,T=this.internal.Point,Z=this.internal.Rectangle,ae=this.internal.Matrix,_e=new $e}]);var Ze=function(Ae){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var Re=Ae;Object.defineProperty(this,"pdf",{get:function(){return Re}});var Ye=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Ye},set:function(Ar){Ye=!!Ar}});var et=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return et},set:function(Ar){et=!!Ar}});var bt=0;Object.defineProperty(this,"posX",{get:function(){return bt},set:function(Ar){isNaN(Ar)||(bt=Ar)}});var _t=0;Object.defineProperty(this,"posY",{get:function(){return _t},set:function(Ar){isNaN(Ar)||(_t=Ar)}}),Object.defineProperty(this,"margin",{get:function(){return _e.margin},set:function(Ar){var yt;typeof Ar=="number"?yt=[Ar,Ar,Ar,Ar]:((yt=new Array(4))[0]=Ar[0],yt[1]=Ar.length>=2?Ar[1]:yt[0],yt[2]=Ar.length>=3?Ar[2]:yt[0],yt[3]=Ar.length>=4?Ar[3]:yt[1]),_e.margin=yt}});var It=!1;Object.defineProperty(this,"autoPaging",{get:function(){return It},set:function(Ar){It=Ar}});var Rt=0;Object.defineProperty(this,"lastBreak",{get:function(){return Rt},set:function(Ar){Rt=Ar}});var ur=[];Object.defineProperty(this,"pageBreaks",{get:function(){return ur},set:function(Ar){ur=Ar}}),Object.defineProperty(this,"ctx",{get:function(){return _e},set:function(Ar){Ar instanceof $e&&(_e=Ar)}}),Object.defineProperty(this,"path",{get:function(){return _e.path},set:function(Ar){_e.path=Ar}});var fr=[];Object.defineProperty(this,"ctxStack",{get:function(){return fr},set:function(Ar){fr=Ar}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Ar){var yt;yt=st(Ar),this.ctx.fillStyle=yt.style,this.ctx.isFillTransparent=yt.a===0,this.ctx.fillOpacity=yt.a,this.pdf.setFillColor(yt.r,yt.g,yt.b,{a:yt.a}),this.pdf.setTextColor(yt.r,yt.g,yt.b,{a:yt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Ar){var yt=st(Ar);this.ctx.strokeStyle=yt.style,this.ctx.isStrokeTransparent=yt.a===0,this.ctx.strokeOpacity=yt.a,yt.a===0?this.pdf.setDrawColor(255,255,255):(yt.a,this.pdf.setDrawColor(yt.r,yt.g,yt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Ar){["butt","round","square"].indexOf(Ar)!==-1&&(this.ctx.lineCap=Ar,this.pdf.setLineCap(Ar))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Ar){isNaN(Ar)||(this.ctx.lineWidth=Ar,this.pdf.setLineWidth(Ar))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Ar){["bevel","round","miter"].indexOf(Ar)!==-1&&(this.ctx.lineJoin=Ar,this.pdf.setLineJoin(Ar))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Ar){isNaN(Ar)||(this.ctx.miterLimit=Ar,this.pdf.setMiterLimit(Ar))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Ar){this.ctx.textBaseline=Ar}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Ar){["right","end","center","left","start"].indexOf(Ar)!==-1&&(this.ctx.textAlign=Ar)}});var gr=null;function Sr(Ar,yt){if(gr===null){var _n=function(gn){var vr=[];return Object.keys(gn).forEach(function(Nr){gn[Nr].forEach(function(Or){var br=null;switch(Or){case"bold":br={family:Nr,weight:"bold"};break;case"italic":br={family:Nr,style:"italic"};break;case"bolditalic":br={family:Nr,weight:"bold",style:"italic"};break;case"":case"normal":br={family:Nr}}br!==null&&(br.ref={name:Nr,style:Or},vr.push(br))})}),vr}(Ar.getFontList());gr=function(gn){for(var vr={},Nr=0;Nr<gn.length;++Nr){var Or=tc(gn[Nr]),br=Or.family,Zr=Or.stretch,Cn=Or.style,Xn=Or.weight;vr[br]=vr[br]||{},vr[br][Zr]=vr[br][Zr]||{},vr[br][Zr][Cn]=vr[br][Zr][Cn]||{},vr[br][Zr][Cn][Xn]=Or}return vr}(_n.concat(yt))}return gr}var dn=null;Object.defineProperty(this,"fontFaces",{get:function(){return dn},set:function(Ar){gr=null,dn=Ar}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Ar){var yt;if(this.ctx.font=Ar,(yt=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(Ar))!==null){var _n=yt[1];yt[2];var gn=yt[3],vr=yt[4];yt[5];var Nr=yt[6],Or=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(vr)[2];vr=Math.floor(Or==="px"?parseFloat(vr)*this.pdf.internal.scaleFactor:Or==="em"?parseFloat(vr)*this.pdf.getFontSize():parseFloat(vr)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(vr);var br=function(zn){var Li,vn,Fa=[],ji=zn.trim();if(ji==="")return Xs;if(ji in oa)return[oa[ji]];for(;ji!=="";){switch(vn=null,Li=(ji=to(ji)).charAt(0)){case'"':case"'":vn=Ro(ji.substring(1),Li);break;default:vn=Ya(ji)}if(vn===null||(Fa.push(vn[0]),(ji=to(vn[1]))!==""&&ji.charAt(0)!==","))return Xs;ji=ji.replace(/^,/,"")}return Fa}(Nr);if(this.fontFaces){var Zr=Za(Sr(this.pdf,this.fontFaces),br.map(function(zn){return{family:zn,stretch:"normal",weight:gn,style:_n}}));this.pdf.setFont(Zr.ref.name,Zr.ref.style)}else{var Cn="";(gn==="bold"||parseInt(gn,10)>=700||_n==="bold")&&(Cn="bold"),_n==="italic"&&(Cn+="italic"),Cn.length===0&&(Cn="normal");for(var Xn="",Vn={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Nn=0;Nn<br.length;Nn++){if(this.pdf.internal.getFont(br[Nn],Cn,{noFallback:!0,disableWarning:!0})!==void 0){Xn=br[Nn];break}if(Cn==="bolditalic"&&this.pdf.internal.getFont(br[Nn],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Xn=br[Nn],Cn="bold";else if(this.pdf.internal.getFont(br[Nn],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Xn=br[Nn],Cn="normal";break}}if(Xn===""){for(var di=0;di<br.length;di++)if(Vn[br[di]]){Xn=Vn[br[di]];break}}Xn=Xn===""?"Times":Xn,this.pdf.setFont(Xn,Cn)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Ar){this.ctx.globalCompositeOperation=Ar}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Ar){this.ctx.globalAlpha=Ar}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Ar){this.ctx.lineDashOffset=Ar,St.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Ar){this.ctx.lineDash=Ar,St.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Ar){this.ctx.ignoreClearRect=!!Ar}})};Ze.prototype.setLineDash=function(Ae){this.lineDash=Ae},Ze.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Ze.prototype.fill=function(){wr.call(this,"fill",!1)},Ze.prototype.stroke=function(){wr.call(this,"stroke",!1)},Ze.prototype.beginPath=function(){this.path=[{type:"begin"}]},Ze.prototype.moveTo=function(Ae,Re){if(isNaN(Ae)||isNaN(Re))throw Ln.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var Ye=this.ctx.transform.applyToPoint(new T(Ae,Re));this.path.push({type:"mt",x:Ye.x,y:Ye.y}),this.ctx.lastPoint=new T(Ae,Re)},Ze.prototype.closePath=function(){var Ae=new T(0,0),Re=0;for(Re=this.path.length-1;Re!==-1;Re--)if(this.path[Re].type==="begin"&&(0,ge.Z)(this.path[Re+1])==="object"&&typeof this.path[Re+1].x=="number"){Ae=new T(this.path[Re+1].x,this.path[Re+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new T(Ae.x,Ae.y)},Ze.prototype.lineTo=function(Ae,Re){if(isNaN(Ae)||isNaN(Re))throw Ln.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var Ye=this.ctx.transform.applyToPoint(new T(Ae,Re));this.path.push({type:"lt",x:Ye.x,y:Ye.y}),this.ctx.lastPoint=new T(Ye.x,Ye.y)},Ze.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),wr.call(this,null,!0)},Ze.prototype.quadraticCurveTo=function(Ae,Re,Ye,et){if(isNaN(Ye)||isNaN(et)||isNaN(Ae)||isNaN(Re))throw Ln.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var bt=this.ctx.transform.applyToPoint(new T(Ye,et)),_t=this.ctx.transform.applyToPoint(new T(Ae,Re));this.path.push({type:"qct",x1:_t.x,y1:_t.y,x:bt.x,y:bt.y}),this.ctx.lastPoint=new T(bt.x,bt.y)},Ze.prototype.bezierCurveTo=function(Ae,Re,Ye,et,bt,_t){if(isNaN(bt)||isNaN(_t)||isNaN(Ae)||isNaN(Re)||isNaN(Ye)||isNaN(et))throw Ln.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var It=this.ctx.transform.applyToPoint(new T(bt,_t)),Rt=this.ctx.transform.applyToPoint(new T(Ae,Re)),ur=this.ctx.transform.applyToPoint(new T(Ye,et));this.path.push({type:"bct",x1:Rt.x,y1:Rt.y,x2:ur.x,y2:ur.y,x:It.x,y:It.y}),this.ctx.lastPoint=new T(It.x,It.y)},Ze.prototype.arc=function(Ae,Re,Ye,et,bt,_t){if(isNaN(Ae)||isNaN(Re)||isNaN(Ye)||isNaN(et)||isNaN(bt))throw Ln.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(_t=!!_t,!this.ctx.transform.isIdentity){var It=this.ctx.transform.applyToPoint(new T(Ae,Re));Ae=It.x,Re=It.y;var Rt=this.ctx.transform.applyToPoint(new T(0,Ye)),ur=this.ctx.transform.applyToPoint(new T(0,0));Ye=Math.sqrt(Math.pow(Rt.x-ur.x,2)+Math.pow(Rt.y-ur.y,2))}Math.abs(bt-et)>=2*Math.PI&&(et=0,bt=2*Math.PI),this.path.push({type:"arc",x:Ae,y:Re,radius:Ye,startAngle:et,endAngle:bt,counterclockwise:_t})},Ze.prototype.arcTo=function(Ae,Re,Ye,et,bt){throw new Error("arcTo not implemented.")},Ze.prototype.rect=function(Ae,Re,Ye,et){if(isNaN(Ae)||isNaN(Re)||isNaN(Ye)||isNaN(et))throw Ln.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(Ae,Re),this.lineTo(Ae+Ye,Re),this.lineTo(Ae+Ye,Re+et),this.lineTo(Ae,Re+et),this.lineTo(Ae,Re),this.lineTo(Ae+Ye,Re),this.lineTo(Ae,Re)},Ze.prototype.fillRect=function(Ae,Re,Ye,et){if(isNaN(Ae)||isNaN(Re)||isNaN(Ye)||isNaN(et))throw Ln.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!be.call(this)){var bt={};this.lineCap!=="butt"&&(bt.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(bt.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(Ae,Re,Ye,et),this.fill(),bt.hasOwnProperty("lineCap")&&(this.lineCap=bt.lineCap),bt.hasOwnProperty("lineJoin")&&(this.lineJoin=bt.lineJoin)}},Ze.prototype.strokeRect=function(Ae,Re,Ye,et){if(isNaN(Ae)||isNaN(Re)||isNaN(Ye)||isNaN(et))throw Ln.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");Lt.call(this)||(this.beginPath(),this.rect(Ae,Re,Ye,et),this.stroke())},Ze.prototype.clearRect=function(Ae,Re,Ye,et){if(isNaN(Ae)||isNaN(Re)||isNaN(Ye)||isNaN(et))throw Ln.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(Ae,Re,Ye,et))},Ze.prototype.save=function(Ae){Ae=typeof Ae!="boolean"||Ae;for(var Re=this.pdf.internal.getCurrentPageInfo().pageNumber,Ye=0;Ye<this.pdf.internal.getNumberOfPages();Ye++)this.pdf.setPage(Ye+1),this.pdf.internal.out("q");if(this.pdf.setPage(Re),Ae){this.ctx.fontSize=this.pdf.internal.getFontSize();var et=new $e(this.ctx);this.ctxStack.push(this.ctx),this.ctx=et}},Ze.prototype.restore=function(Ae){Ae=typeof Ae!="boolean"||Ae;for(var Re=this.pdf.internal.getCurrentPageInfo().pageNumber,Ye=0;Ye<this.pdf.internal.getNumberOfPages();Ye++)this.pdf.setPage(Ye+1),this.pdf.internal.out("Q");this.pdf.setPage(Re),Ae&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},Ze.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var st=function(Ae){var Re,Ye,et,bt;if(Ae.isCanvasGradient===!0&&(Ae=Ae.getColor()),!Ae)return{r:0,g:0,b:0,a:0,style:Ae};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Ae))Re=0,Ye=0,et=0,bt=0;else{var _t=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Ae);if(_t!==null)Re=parseInt(_t[1]),Ye=parseInt(_t[2]),et=parseInt(_t[3]),bt=1;else if((_t=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Ae))!==null)Re=parseInt(_t[1]),Ye=parseInt(_t[2]),et=parseInt(_t[3]),bt=parseFloat(_t[4]);else{if(bt=1,typeof Ae=="string"&&Ae.charAt(0)!=="#"){var It=new ai(Ae);Ae=It.ok?It.toHex():"#000000"}Ae.length===4?(Re=Ae.substring(1,2),Re+=Re,Ye=Ae.substring(2,3),Ye+=Ye,et=Ae.substring(3,4),et+=et):(Re=Ae.substring(1,3),Ye=Ae.substring(3,5),et=Ae.substring(5,7)),Re=parseInt(Re,16),Ye=parseInt(Ye,16),et=parseInt(et,16)}}return{r:Re,g:Ye,b:et,a:bt,style:Ae}},be=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},Lt=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Ze.prototype.fillText=function(Ae,Re,Ye,et){if(isNaN(Re)||isNaN(Ye)||typeof Ae!="string")throw Ln.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(et=isNaN(et)?void 0:et,!be.call(this)){var bt=He(this.ctx.transform.rotation),_t=this.ctx.transform.scaleX;Ct.call(this,{text:Ae,x:Re,y:Ye,scale:_t,angle:bt,align:this.textAlign,maxWidth:et})}},Ze.prototype.strokeText=function(Ae,Re,Ye,et){if(isNaN(Re)||isNaN(Ye)||typeof Ae!="string")throw Ln.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!Lt.call(this)){et=isNaN(et)?void 0:et;var bt=He(this.ctx.transform.rotation),_t=this.ctx.transform.scaleX;Ct.call(this,{text:Ae,x:Re,y:Ye,scale:_t,renderingMode:"stroke",angle:bt,align:this.textAlign,maxWidth:et})}},Ze.prototype.measureText=function(Ae){if(typeof Ae!="string")throw Ln.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Re=this.pdf,Ye=this.pdf.internal.scaleFactor,et=Re.internal.getFontSize(),bt=Re.getStringUnitWidth(Ae)*et/Re.internal.scaleFactor,_t=function(It){var Rt=(It=It||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Rt}}),this};return new _t({width:bt*=Math.round(96*Ye/72*1e4)/1e4})},Ze.prototype.scale=function(Ae,Re){if(isNaN(Ae)||isNaN(Re))throw Ln.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var Ye=new ae(Ae,0,0,Re,0,0);this.ctx.transform=this.ctx.transform.multiply(Ye)},Ze.prototype.rotate=function(Ae){if(isNaN(Ae))throw Ln.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Re=new ae(Math.cos(Ae),Math.sin(Ae),-Math.sin(Ae),Math.cos(Ae),0,0);this.ctx.transform=this.ctx.transform.multiply(Re)},Ze.prototype.translate=function(Ae,Re){if(isNaN(Ae)||isNaN(Re))throw Ln.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var Ye=new ae(1,0,0,1,Ae,Re);this.ctx.transform=this.ctx.transform.multiply(Ye)},Ze.prototype.transform=function(Ae,Re,Ye,et,bt,_t){if(isNaN(Ae)||isNaN(Re)||isNaN(Ye)||isNaN(et)||isNaN(bt)||isNaN(_t))throw Ln.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var It=new ae(Ae,Re,Ye,et,bt,_t);this.ctx.transform=this.ctx.transform.multiply(It)},Ze.prototype.setTransform=function(Ae,Re,Ye,et,bt,_t){Ae=isNaN(Ae)?1:Ae,Re=isNaN(Re)?0:Re,Ye=isNaN(Ye)?0:Ye,et=isNaN(et)?1:et,bt=isNaN(bt)?0:bt,_t=isNaN(_t)?0:_t,this.ctx.transform=new ae(Ae,Re,Ye,et,bt,_t)};var wt=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Ze.prototype.drawImage=function(Ae,Re,Ye,et,bt,_t,It,Rt,ur){var fr=this.pdf.getImageProperties(Ae),gr=1,Sr=1,dn=1,Ar=1;et!==void 0&&Rt!==void 0&&(dn=Rt/et,Ar=ur/bt,gr=fr.width/et*Rt/et,Sr=fr.height/bt*ur/bt),_t===void 0&&(_t=Re,It=Ye,Re=0,Ye=0),et!==void 0&&Rt===void 0&&(Rt=et,ur=bt),et===void 0&&Rt===void 0&&(Rt=fr.width,ur=fr.height);for(var yt,_n=this.ctx.transform.decompose(),gn=He(_n.rotate.shx),vr=new ae,Nr=(vr=(vr=(vr=vr.multiply(_n.translate)).multiply(_n.skew)).multiply(_n.scale)).applyToRectangle(new Z(_t-Re*dn,It-Ye*Ar,et*gr,bt*Sr)),Or=kt.call(this,Nr),br=[],Zr=0;Zr<Or.length;Zr+=1)br.indexOf(Or[Zr])===-1&&br.push(Or[Zr]);if(ar(br),this.autoPaging)for(var Cn=br[0],Xn=br[br.length-1],Vn=Cn;Vn<Xn+1;Vn++){this.pdf.setPage(Vn);var Nn=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],di=Vn===1?this.posY+this.margin[0]:this.margin[0],zn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Li=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],vn=Vn===1?0:zn+(Vn-2)*Li;if(this.ctx.clip_path.length!==0){var Fa=this.path;yt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Dt(yt,this.posX+this.margin[3],-vn+di+this.ctx.prevPageLastElemOffset),Qr.call(this,"fill",!0),this.path=Fa}var ji=JSON.parse(JSON.stringify(Nr));ji=Dt([ji],this.posX+this.margin[3],-vn+di+this.ctx.prevPageLastElemOffset)[0];var Ri=(Vn>Cn||Vn<Xn)&&wt.call(this);Ri&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Nn,Li,null).clip().discardPath()),this.pdf.addImage(Ae,"JPEG",ji.x,ji.y,ji.w,ji.h,null,null,gn),Ri&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(Ae,"JPEG",Nr.x,Nr.y,Nr.w,Nr.h,null,null,gn)};var kt=function(Ae,Re,Ye){var et=[];Re=Re||this.pdf.internal.pageSize.width,Ye=Ye||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var bt=this.posY+this.ctx.prevPageLastElemOffset;switch(Ae.type){default:case"mt":case"lt":et.push(Math.floor((Ae.y+bt)/Ye)+1);break;case"arc":et.push(Math.floor((Ae.y+bt-Ae.radius)/Ye)+1),et.push(Math.floor((Ae.y+bt+Ae.radius)/Ye)+1);break;case"qct":var _t=Xe(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Ae.x1,Ae.y1,Ae.x,Ae.y);et.push(Math.floor((_t.y+bt)/Ye)+1),et.push(Math.floor((_t.y+_t.h+bt)/Ye)+1);break;case"bct":var It=ht(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Ae.x1,Ae.y1,Ae.x2,Ae.y2,Ae.x,Ae.y);et.push(Math.floor((It.y+bt)/Ye)+1),et.push(Math.floor((It.y+It.h+bt)/Ye)+1);break;case"rect":et.push(Math.floor((Ae.y+bt)/Ye)+1),et.push(Math.floor((Ae.y+Ae.h+bt)/Ye)+1)}for(var Rt=0;Rt<et.length;Rt+=1)for(;this.pdf.internal.getNumberOfPages()<et[Rt];)pt.call(this);return et},pt=function(){var Ae=this.fillStyle,Re=this.strokeStyle,Ye=this.font,et=this.lineCap,bt=this.lineWidth,_t=this.lineJoin;this.pdf.addPage(),this.fillStyle=Ae,this.strokeStyle=Re,this.font=Ye,this.lineCap=et,this.lineWidth=bt,this.lineJoin=_t},Dt=function(Ae,Re,Ye){for(var et=0;et<Ae.length;et++)switch(Ae[et].type){case"bct":Ae[et].x2+=Re,Ae[et].y2+=Ye;case"qct":Ae[et].x1+=Re,Ae[et].y1+=Ye;case"mt":case"lt":case"arc":default:Ae[et].x+=Re,Ae[et].y+=Ye}return Ae},ar=function(Ae){return Ae.sort(function(Re,Ye){return Re-Ye})},wr=function(Ae,Re){for(var Ye,et,bt=this.fillStyle,_t=this.strokeStyle,It=this.lineCap,Rt=this.lineWidth,ur=Math.abs(Rt*this.ctx.transform.scaleX),fr=this.lineJoin,gr=JSON.parse(JSON.stringify(this.path)),Sr=JSON.parse(JSON.stringify(this.path)),dn=[],Ar=0;Ar<Sr.length;Ar++)if(Sr[Ar].x!==void 0)for(var yt=kt.call(this,Sr[Ar]),_n=0;_n<yt.length;_n+=1)dn.indexOf(yt[_n])===-1&&dn.push(yt[_n]);for(var gn=0;gn<dn.length;gn++)for(;this.pdf.internal.getNumberOfPages()<dn[gn];)pt.call(this);if(ar(dn),this.autoPaging)for(var vr=dn[0],Nr=dn[dn.length-1],Or=vr;Or<Nr+1;Or++){this.pdf.setPage(Or),this.fillStyle=bt,this.strokeStyle=_t,this.lineCap=It,this.lineWidth=ur,this.lineJoin=fr;var br=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Zr=Or===1?this.posY+this.margin[0]:this.margin[0],Cn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Xn=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Vn=Or===1?0:Cn+(Or-2)*Xn;if(this.ctx.clip_path.length!==0){var Nn=this.path;Ye=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Dt(Ye,this.posX+this.margin[3],-Vn+Zr+this.ctx.prevPageLastElemOffset),Qr.call(this,Ae,!0),this.path=Nn}if(et=JSON.parse(JSON.stringify(gr)),this.path=Dt(et,this.posX+this.margin[3],-Vn+Zr+this.ctx.prevPageLastElemOffset),Re===!1||Or===0){var di=(Or>vr||Or<Nr)&&wt.call(this);di&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],br,Xn,null).clip().discardPath()),Qr.call(this,Ae,Re),di&&this.pdf.restoreGraphicsState()}this.lineWidth=Rt}else this.lineWidth=ur,Qr.call(this,Ae,Re),this.lineWidth=Rt;this.path=gr},Qr=function(Ae,Re){if((Ae!=="stroke"||Re||!Lt.call(this))&&(Ae==="stroke"||Re||!be.call(this))){for(var Ye,et,bt=[],_t=this.path,It=0;It<_t.length;It++){var Rt=_t[It];switch(Rt.type){case"begin":bt.push({begin:!0});break;case"close":bt.push({close:!0});break;case"mt":bt.push({start:Rt,deltas:[],abs:[]});break;case"lt":var ur=bt.length;if(_t[It-1]&&!isNaN(_t[It-1].x)&&(Ye=[Rt.x-_t[It-1].x,Rt.y-_t[It-1].y],ur>0)){for(;ur>=0;ur--)if(bt[ur-1].close!==!0&&bt[ur-1].begin!==!0){bt[ur-1].deltas.push(Ye),bt[ur-1].abs.push(Rt);break}}break;case"bct":Ye=[Rt.x1-_t[It-1].x,Rt.y1-_t[It-1].y,Rt.x2-_t[It-1].x,Rt.y2-_t[It-1].y,Rt.x-_t[It-1].x,Rt.y-_t[It-1].y],bt[bt.length-1].deltas.push(Ye);break;case"qct":var fr=_t[It-1].x+2/3*(Rt.x1-_t[It-1].x),gr=_t[It-1].y+2/3*(Rt.y1-_t[It-1].y),Sr=Rt.x+2/3*(Rt.x1-Rt.x),dn=Rt.y+2/3*(Rt.y1-Rt.y),Ar=Rt.x,yt=Rt.y;Ye=[fr-_t[It-1].x,gr-_t[It-1].y,Sr-_t[It-1].x,dn-_t[It-1].y,Ar-_t[It-1].x,yt-_t[It-1].y],bt[bt.length-1].deltas.push(Ye);break;case"arc":bt.push({deltas:[],abs:[],arc:!0}),Array.isArray(bt[bt.length-1].abs)&&bt[bt.length-1].abs.push(Rt)}}et=Re?null:Ae==="stroke"?"stroke":"fill";for(var _n=!1,gn=0;gn<bt.length;gn++)if(bt[gn].arc)for(var vr=bt[gn].abs,Nr=0;Nr<vr.length;Nr++){var Or=vr[Nr];Or.type==="arc"?Vt.call(this,Or.x,Or.y,Or.radius,Or.startAngle,Or.endAngle,Or.counterclockwise,void 0,Re,!_n):rr.call(this,Or.x,Or.y),_n=!0}else if(bt[gn].close===!0)this.pdf.internal.out("h"),_n=!1;else if(bt[gn].begin!==!0){var br=bt[gn].start.x,Zr=bt[gn].start.y;U.call(this,bt[gn].deltas,br,Zr),_n=!0}et&&Lr.call(this,et),Re&&Jr.call(this)}},hn=function(Ae){var Re=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Ye=Re*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Ae-Ye;case"top":return Ae+Re-Ye;case"hanging":return Ae+Re-2*Ye;case"middle":return Ae+Re/2-Ye;case"ideographic":return Ae;case"alphabetic":default:return Ae}},_r=function(Ae){return Ae+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Ze.prototype.createLinearGradient=function(){var Ae=function(){};return Ae.colorStops=[],Ae.addColorStop=function(Re,Ye){this.colorStops.push([Re,Ye])},Ae.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},Ae.isCanvasGradient=!0,Ae},Ze.prototype.createPattern=function(){return this.createLinearGradient()},Ze.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Vt=function(Ae,Re,Ye,et,bt,_t,It,Rt,ur){for(var fr=Se.call(this,Ye,et,bt,_t),gr=0;gr<fr.length;gr++){var Sr=fr[gr];gr===0&&(ur?vt.call(this,Sr.x1+Ae,Sr.y1+Re):rr.call(this,Sr.x1+Ae,Sr.y1+Re)),ee.call(this,Ae,Re,Sr.x2,Sr.y2,Sr.x3,Sr.y3,Sr.x4,Sr.y4)}Rt?Jr.call(this):Lr.call(this,It)},Lr=function(Ae){switch(Ae){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Jr=function(){this.pdf.clip(),this.pdf.discardPath()},vt=function(Ae,Re){this.pdf.internal.out(l(Ae)+" "+b(Re)+" m")},Ct=function(Ae){var Re;switch(Ae.align){case"right":case"end":Re="right";break;case"center":Re="center";break;case"left":case"start":default:Re="left"}var Ye=this.pdf.getTextDimensions(Ae.text),et=hn.call(this,Ae.y),bt=_r.call(this,et)-Ye.h,_t=this.ctx.transform.applyToPoint(new T(Ae.x,et)),It=this.ctx.transform.decompose(),Rt=new ae;Rt=(Rt=(Rt=Rt.multiply(It.translate)).multiply(It.skew)).multiply(It.scale);for(var ur,fr,gr,Sr=this.ctx.transform.applyToRectangle(new Z(Ae.x,et,Ye.w,Ye.h)),dn=Rt.applyToRectangle(new Z(Ae.x,bt,Ye.w,Ye.h)),Ar=kt.call(this,dn),yt=[],_n=0;_n<Ar.length;_n+=1)yt.indexOf(Ar[_n])===-1&&yt.push(Ar[_n]);if(ar(yt),this.autoPaging)for(var gn=yt[0],vr=yt[yt.length-1],Nr=gn;Nr<vr+1;Nr++){this.pdf.setPage(Nr);var Or=Nr===1?this.posY+this.margin[0]:this.margin[0],br=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Zr=this.pdf.internal.pageSize.height-this.margin[2],Cn=Zr-this.margin[0],Xn=this.pdf.internal.pageSize.width-this.margin[1],Vn=Xn-this.margin[3],Nn=Nr===1?0:br+(Nr-2)*Cn;if(this.ctx.clip_path.length!==0){var di=this.path;ur=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Dt(ur,this.posX+this.margin[3],-1*Nn+Or),Qr.call(this,"fill",!0),this.path=di}var zn=Dt([JSON.parse(JSON.stringify(dn))],this.posX+this.margin[3],-Nn+Or+this.ctx.prevPageLastElemOffset)[0];Ae.scale>=.01&&(fr=this.pdf.internal.getFontSize(),this.pdf.setFontSize(fr*Ae.scale),gr=this.lineWidth,this.lineWidth=gr*Ae.scale);var Li=this.autoPaging!=="text";if(Li||zn.y+zn.h<=Zr){if(Li||zn.y>=Or&&zn.x<=Xn){var vn=Li?Ae.text:this.pdf.splitTextToSize(Ae.text,Ae.maxWidth||Xn-zn.x)[0],Fa=Dt([JSON.parse(JSON.stringify(Sr))],this.posX+this.margin[3],-Nn+Or+this.ctx.prevPageLastElemOffset)[0],ji=Li&&(Nr>gn||Nr<vr)&&wt.call(this);ji&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Vn,Cn,null).clip().discardPath()),this.pdf.text(vn,Fa.x,Fa.y,{angle:Ae.angle,align:Re,renderingMode:Ae.renderingMode}),ji&&this.pdf.restoreGraphicsState()}}else zn.y<Zr&&(this.ctx.prevPageLastElemOffset+=Zr-zn.y);Ae.scale>=.01&&(this.pdf.setFontSize(fr),this.lineWidth=gr)}else Ae.scale>=.01&&(fr=this.pdf.internal.getFontSize(),this.pdf.setFontSize(fr*Ae.scale),gr=this.lineWidth,this.lineWidth=gr*Ae.scale),this.pdf.text(Ae.text,_t.x+this.posX,_t.y+this.posY,{angle:Ae.angle,align:Re,renderingMode:Ae.renderingMode,maxWidth:Ae.maxWidth}),Ae.scale>=.01&&(this.pdf.setFontSize(fr),this.lineWidth=gr)},rr=function(Ae,Re,Ye,et){Ye=Ye||0,et=et||0,this.pdf.internal.out(l(Ae+Ye)+" "+b(Re+et)+" l")},U=function(Ae,Re,Ye){return this.pdf.lines(Ae,Re,Ye,null,null)},ee=function(Ae,Re,Ye,et,bt,_t,It,Rt){this.pdf.internal.out([o(F(Ye+Ae)),o(C(et+Re)),o(F(bt+Ae)),o(C(_t+Re)),o(F(It+Ae)),o(C(Rt+Re)),"c"].join(" "))},Se=function(Ae,Re,Ye,et){for(var bt=2*Math.PI,_t=Math.PI/2;Re>Ye;)Re-=bt;var It=Math.abs(Ye-Re);It<bt&&et&&(It=bt-It);for(var Rt=[],ur=et?-1:1,fr=Re;It>1e-5;){var gr=fr+ur*Math.min(It,_t);Rt.push(Te.call(this,Ae,fr,gr)),It-=Math.abs(gr-fr),fr=gr}return Rt},Te=function(Ae,Re,Ye){var et=(Ye-Re)/2,bt=Ae*Math.cos(et),_t=Ae*Math.sin(et),It=bt,Rt=-_t,ur=It*It+Rt*Rt,fr=ur+It*bt+Rt*_t,gr=4/3*(Math.sqrt(2*ur*fr)-fr)/(It*_t-Rt*bt),Sr=It-gr*Rt,dn=Rt+gr*It,Ar=Sr,yt=-dn,_n=et+Re,gn=Math.cos(_n),vr=Math.sin(_n);return{x1:Ae*Math.cos(Re),y1:Ae*Math.sin(Re),x2:Sr*gn-dn*vr,y2:Sr*vr+dn*gn,x3:Ar*gn-yt*vr,y3:Ar*vr+yt*gn,x4:Ae*Math.cos(Ye),y4:Ae*Math.sin(Ye)}},He=function(Ae){return 180*Ae/Math.PI},Xe=function(Ae,Re,Ye,et,bt,_t){var It=Ae+.5*(Ye-Ae),Rt=Re+.5*(et-Re),ur=bt+.5*(Ye-bt),fr=_t+.5*(et-_t),gr=Math.min(Ae,bt,It,ur),Sr=Math.max(Ae,bt,It,ur),dn=Math.min(Re,_t,Rt,fr),Ar=Math.max(Re,_t,Rt,fr);return new Z(gr,dn,Sr-gr,Ar-dn)},ht=function(Ae,Re,Ye,et,bt,_t,It,Rt){var ur,fr,gr,Sr,dn,Ar,yt,_n,gn,vr,Nr,Or,br,Zr,Cn=Ye-Ae,Xn=et-Re,Vn=bt-Ye,Nn=_t-et,di=It-bt,zn=Rt-_t;for(fr=0;fr<41;fr++)gn=(yt=(gr=Ae+(ur=fr/40)*Cn)+ur*((dn=Ye+ur*Vn)-gr))+ur*(dn+ur*(bt+ur*di-dn)-yt),vr=(_n=(Sr=Re+ur*Xn)+ur*((Ar=et+ur*Nn)-Sr))+ur*(Ar+ur*(_t+ur*zn-Ar)-_n),fr==0?(Nr=gn,Or=vr,br=gn,Zr=vr):(Nr=Math.min(Nr,gn),Or=Math.min(Or,vr),br=Math.max(br,gn),Zr=Math.max(Zr,vr));return new Z(Math.round(Nr),Math.round(Or),Math.round(br-Nr),Math.round(Zr-Or))},St=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var Ae,Re,Ye=(Ae=this.ctx.lineDash,Re=this.ctx.lineDashOffset,JSON.stringify({lineDash:Ae,lineDashOffset:Re}));this.prevLineDash!==Ye&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Ye)}}})(Ai.API),function(c){var o=function(C){var T,Z,ae,_e,$e,Ze,st,be,Lt,wt;for(/[^\x00-\xFF]/.test(C),Z=[],ae=0,_e=(C+=T="\0\0\0\0".slice(C.length%4||4)).length;_e>ae;ae+=4)($e=(C.charCodeAt(ae)<<24)+(C.charCodeAt(ae+1)<<16)+(C.charCodeAt(ae+2)<<8)+C.charCodeAt(ae+3))!==0?(Ze=($e=(($e=(($e=(($e=($e-(wt=$e%85))/85)-(Lt=$e%85))/85)-(be=$e%85))/85)-(st=$e%85))/85)%85,Z.push(Ze+33,st+33,be+33,Lt+33,wt+33)):Z.push(122);return function(kt,pt){for(var Dt=pt;Dt>0;Dt--)kt.pop()}(Z,T.length),String.fromCharCode.apply(String,Z)+"~>"},l=function(C){var T,Z,ae,_e,$e,Ze=String,st="length",be=255,Lt="charCodeAt",wt="slice",kt="replace";for(C[wt](-2),C=C[wt](0,-2)[kt](/\s/g,"")[kt]("z","!!!!!"),ae=[],_e=0,$e=(C+=T="uuuuu"[wt](C[st]%5||5))[st];$e>_e;_e+=5)Z=52200625*(C[Lt](_e)-33)+614125*(C[Lt](_e+1)-33)+7225*(C[Lt](_e+2)-33)+85*(C[Lt](_e+3)-33)+(C[Lt](_e+4)-33),ae.push(be&Z>>24,be&Z>>16,be&Z>>8,be&Z);return function(pt,Dt){for(var ar=Dt;ar>0;ar--)pt.pop()}(ae,T[st]),Ze.fromCharCode.apply(Ze,ae)},b=function(C){var T=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((C=C.replace(/\s/g,"")).indexOf(">")!==-1&&(C=C.substr(0,C.indexOf(">"))),C.length%2&&(C+="0"),T.test(C)===!1)return"";for(var Z="",ae=0;ae<C.length;ae+=2)Z+=String.fromCharCode("0x"+(C[ae]+C[ae+1]));return Z},F=function(C){for(var T=new Uint8Array(C.length),Z=C.length;Z--;)T[Z]=C.charCodeAt(Z);return C=(T=xi(T)).reduce(function(ae,_e){return ae+String.fromCharCode(_e)},"")};c.processDataByFilters=function(C,T){var Z=0,ae=C||"",_e=[];for(typeof(T=T||[])=="string"&&(T=[T]),Z=0;Z<T.length;Z+=1)switch(T[Z]){case"ASCII85Decode":case"/ASCII85Decode":ae=l(ae),_e.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":ae=o(ae),_e.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":ae=b(ae),_e.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":ae=ae.split("").map(function($e){return("0"+$e.charCodeAt().toString(16)).slice(-2)}).join("")+">",_e.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":ae=F(ae),_e.push("/FlateDecode");break;default:throw new Error('The filter: "'+T[Z]+'" is not implemented')}return{data:ae,reverseChain:_e.reverse().join(" ")}}}(Ai.API),function(c){c.loadFile=function(o,l,b){return function(F,C,T){C=C!==!1,T=typeof T=="function"?T:function(){};var Z=void 0;try{Z=function(ae,_e,$e){var Ze=new XMLHttpRequest,st=0,be=function(Lt){var wt=Lt.length,kt=[],pt=String.fromCharCode;for(st=0;st<wt;st+=1)kt.push(pt(255&Lt.charCodeAt(st)));return kt.join("")};if(Ze.open("GET",ae,!_e),Ze.overrideMimeType("text/plain; charset=x-user-defined"),_e===!1&&(Ze.onload=function(){Ze.status===200?$e(be(this.responseText)):$e(void 0)}),Ze.send(null),_e&&Ze.status===200)return be(Ze.responseText)}(F,C,T)}catch(ae){}return Z}(o,l,b)},c.loadImageFile=c.loadFile}(Ai.API),function(c){function o(){return(an.html2canvas?Promise.resolve(an.html2canvas):Promise.resolve().then(x.t.bind(x,64270,23))).catch(function(T){return Promise.reject(new Error("Could not load html2canvas: "+T))}).then(function(T){return T.default?T.default:T})}function l(){return(an.DOMPurify?Promise.resolve(an.DOMPurify):x.e(2125).then(x.bind(x,12125))).catch(function(T){return Promise.reject(new Error("Could not load dompurify: "+T))}).then(function(T){return T.default?T.default:T})}var b=function(T){var Z=(0,ge.Z)(T);return Z==="undefined"?"undefined":Z==="string"||T instanceof String?"string":Z==="number"||T instanceof Number?"number":Z==="function"||T instanceof Function?"function":T&&T.constructor===Array?"array":T&&T.nodeType===1?"element":Z==="object"?"object":"unknown"},F=function(T,Z){var ae=document.createElement(T);for(var _e in Z.className&&(ae.className=Z.className),Z.innerHTML&&Z.dompurify&&(ae.innerHTML=Z.dompurify.sanitize(Z.innerHTML)),Z.style)ae.style[_e]=Z.style[_e];return ae},C=function T(Z){var ae=Object.assign(T.convert(Promise.resolve()),JSON.parse(JSON.stringify(T.template))),_e=T.convert(Promise.resolve(),ae);return _e=(_e=_e.setProgress(1,T,1,[T])).set(Z)};(C.prototype=Object.create(Promise.prototype)).constructor=C,C.convert=function(T,Z){return T.__proto__=Z||C.prototype,T},C.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},C.prototype.from=function(T,Z){return this.then(function(){switch(Z=Z||function(ae){switch(b(ae)){case"string":return"string";case"element":return ae.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(T)){case"string":return this.then(l).then(function(ae){return this.set({src:F("div",{innerHTML:T,dompurify:ae})})});case"element":return this.set({src:T});case"canvas":return this.set({canvas:T});case"img":return this.set({img:T});default:return this.error("Unknown source type.")}})},C.prototype.to=function(T){switch(T){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},C.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var T={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},Z=function ae(_e,$e){for(var Ze=_e.nodeType===3?document.createTextNode(_e.nodeValue):_e.cloneNode(!1),st=_e.firstChild;st;st=st.nextSibling)$e!==!0&&st.nodeType===1&&st.nodeName==="SCRIPT"||Ze.appendChild(ae(st,$e));return _e.nodeType===1&&(_e.nodeName==="CANVAS"?(Ze.width=_e.width,Ze.height=_e.height,Ze.getContext("2d").drawImage(_e,0,0)):_e.nodeName!=="TEXTAREA"&&_e.nodeName!=="SELECT"||(Ze.value=_e.value),Ze.addEventListener("load",function(){Ze.scrollTop=_e.scrollTop,Ze.scrollLeft=_e.scrollLeft},!0)),Ze}(this.prop.src,this.opt.html2canvas.javascriptEnabled);Z.tagName==="BODY"&&(T.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=F("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=F("div",{className:"html2pdf__container",style:T}),this.prop.container.appendChild(Z),this.prop.container.firstChild.appendChild(F("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},C.prototype.toCanvas=function(){var T=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(T).then(o).then(function(Z){var ae=Object.assign({},this.opt.html2canvas);return delete ae.onrendered,Z(this.prop.container,ae)}).then(function(Z){(this.opt.html2canvas.onrendered||function(){})(Z),this.prop.canvas=Z,document.body.removeChild(this.prop.overlay)})},C.prototype.toContext2d=function(){var T=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(T).then(o).then(function(Z){var ae=this.opt.jsPDF,_e=this.opt.fontFaces,$e=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,Ze=Object.assign({async:!0,allowTaint:!0,scale:$e,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete Ze.onrendered,ae.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,ae.context2d.posX=this.opt.x,ae.context2d.posY=this.opt.y,ae.context2d.margin=this.opt.margin,ae.context2d.fontFaces=_e,_e)for(var st=0;st<_e.length;++st){var be=_e[st],Lt=be.src.find(function(wt){return wt.format==="truetype"});Lt&&ae.addFont(Lt.url,be.ref.name,be.ref.style)}return Ze.windowHeight=Ze.windowHeight||0,Ze.windowHeight=Ze.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Ze.windowHeight,ae.context2d.save(!0),Z(this.prop.container,Ze)}).then(function(Z){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(Z),this.prop.canvas=Z,document.body.removeChild(this.prop.overlay)})},C.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var T=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=T})},C.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},C.prototype.output=function(T,Z,ae){return(ae=ae||"pdf").toLowerCase()==="img"||ae.toLowerCase()==="image"?this.outputImg(T,Z):this.outputPdf(T,Z)},C.prototype.outputPdf=function(T,Z){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(T,Z)})},C.prototype.outputImg=function(T){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(T){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+T+'" is not supported.'}})},C.prototype.save=function(T){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(T?{filename:T}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},C.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},C.prototype.set=function(T){if(b(T)!=="object")return this;var Z=Object.keys(T||{}).map(function(ae){if(ae in C.template.prop)return function(){this.prop[ae]=T[ae]};switch(ae){case"margin":return this.setMargin.bind(this,T.margin);case"jsPDF":return function(){return this.opt.jsPDF=T.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,T.pageSize);default:return function(){this.opt[ae]=T[ae]}}},this);return this.then(function(){return this.thenList(Z)})},C.prototype.get=function(T,Z){return this.then(function(){var ae=T in C.template.prop?this.prop[T]:this.opt[T];return Z?Z(ae):ae})},C.prototype.setMargin=function(T){return this.then(function(){switch(b(T)){case"number":T=[T,T,T,T];case"array":if(T.length===2&&(T=[T[0],T[1],T[0],T[1]]),T.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=T}).then(this.setPageSize)},C.prototype.setPageSize=function(T){function Z(ae,_e){return Math.floor(ae*_e/72*96)}return this.then(function(){(T=T||Ai.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(T.inner={width:T.width-this.opt.margin[1]-this.opt.margin[3],height:T.height-this.opt.margin[0]-this.opt.margin[2]},T.inner.px={width:Z(T.inner.width,T.k),height:Z(T.inner.height,T.k)},T.inner.ratio=T.inner.height/T.inner.width),this.prop.pageSize=T})},C.prototype.setProgress=function(T,Z,ae,_e){return T!=null&&(this.progress.val=T),Z!=null&&(this.progress.state=Z),ae!=null&&(this.progress.n=ae),_e!=null&&(this.progress.stack=_e),this.progress.ratio=this.progress.val/this.progress.state,this},C.prototype.updateProgress=function(T,Z,ae,_e){return this.setProgress(T?this.progress.val+T:null,Z||null,ae?this.progress.n+ae:null,_e?this.progress.stack.concat(_e):null)},C.prototype.then=function(T,Z){var ae=this;return this.thenCore(T,Z,function(_e,$e){return ae.updateProgress(null,null,1,[_e]),Promise.prototype.then.call(this,function(Ze){return ae.updateProgress(null,_e),Ze}).then(_e,$e).then(function(Ze){return ae.updateProgress(1),Ze})})},C.prototype.thenCore=function(T,Z,ae){ae=ae||Promise.prototype.then,T&&(T=T.bind(this)),Z&&(Z=Z.bind(this));var _e=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:C.convert(Object.assign({},this),Promise.prototype),$e=ae.call(_e,T,Z);return C.convert($e,this.__proto__)},C.prototype.thenExternal=function(T,Z){return Promise.prototype.then.call(this,T,Z)},C.prototype.thenList=function(T){var Z=this;return T.forEach(function(ae){Z=Z.thenCore(ae)}),Z},C.prototype.catch=function(T){T&&(T=T.bind(this));var Z=Promise.prototype.catch.call(this,T);return C.convert(Z,this)},C.prototype.catchExternal=function(T){return Promise.prototype.catch.call(this,T)},C.prototype.error=function(T){return this.then(function(){throw new Error(T)})},C.prototype.using=C.prototype.set,C.prototype.saveAs=C.prototype.save,C.prototype.export=C.prototype.output,C.prototype.run=C.prototype.then,Ai.getPageSize=function(T,Z,ae){if((0,ge.Z)(T)==="object"){var _e=T;T=_e.orientation,Z=_e.unit||Z,ae=_e.format||ae}Z=Z||"mm",ae=ae||"a4",T=(""+(T||"P")).toLowerCase();var $e,Ze=(""+ae).toLowerCase(),st={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(Z){case"pt":$e=1;break;case"mm":$e=72/25.4;break;case"cm":$e=72/2.54;break;case"in":$e=72;break;case"px":$e=.75;break;case"pc":case"em":$e=12;break;case"ex":$e=6;break;default:throw"Invalid unit: "+Z}var be,Lt=0,wt=0;if(st.hasOwnProperty(Ze))Lt=st[Ze][1]/$e,wt=st[Ze][0]/$e;else try{Lt=ae[1],wt=ae[0]}catch(kt){throw new Error("Invalid format: "+ae)}if(T==="p"||T==="portrait")T="p",wt>Lt&&(be=wt,wt=Lt,Lt=be);else{if(T!=="l"&&T!=="landscape")throw"Invalid orientation: "+T;T="l",Lt>wt&&(be=wt,wt=Lt,Lt=be)}return{width:wt,height:Lt,unit:Z,k:$e,orientation:T}},c.html=function(T,Z){(Z=Z||{}).callback=Z.callback||function(){},Z.html2canvas=Z.html2canvas||{},Z.html2canvas.canvas=Z.html2canvas.canvas||this.canvas,Z.jsPDF=Z.jsPDF||this,Z.fontFaces=Z.fontFaces?Z.fontFaces.map(tc):null;var ae=new C(Z);return Z.worker?ae:ae.from(T).doCallback()}}(Ai.API),Ai.API.addJS=function(c){return hl=c,this.internal.events.subscribe("postPutResources",function(){Wo=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Wo+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Ds=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+hl+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Wo!==void 0&&Ds!==void 0&&this.internal.out("/Names <</JavaScript "+Wo+" 0 R>>")}),this},function(c){var o;c.events.push(["postPutResources",function(){var l=this,b=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var F=l.outline.render().split(/\r\n/),C=0;C<F.length;C++){var T=F[C],Z=b.exec(T);if(Z!=null){var ae=Z[1];l.internal.newObjectDeferredBegin(ae,!1)}l.internal.write(T)}if(this.outline.createNamedDestinations){var _e=this.internal.pages.length,$e=[];for(C=0;C<_e;C++){var Ze=l.internal.newObject();$e.push(Ze);var st=l.internal.getPageInfo(C+1);l.internal.write("<< /D["+st.objId+" 0 R /XYZ null null null]>> endobj")}var be=l.internal.newObject();for(l.internal.write("<< /Names [ "),C=0;C<$e.length;C++)l.internal.write("(page_"+(C+1)+")"+$e[C]+" 0 R");l.internal.write(" ] >>","endobj"),o=l.internal.newObject(),l.internal.write("<< /Dests "+be+" 0 R"),l.internal.write(">>","endobj")}}]),c.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+o+" 0 R"))}]),c.events.push(["initialized",function(){var l=this;l.outline={createNamedDestinations:!1,root:{children:[]}},l.outline.add=function(b,F,C){var T={title:F,options:C,children:[]};return b==null&&(b=this.root),b.children.push(T),T},l.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=l,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},l.outline.genIds_r=function(b){b.id=l.internal.newObjectDeferred();for(var F=0;F<b.children.length;F++)this.genIds_r(b.children[F])},l.outline.renderRoot=function(b){this.objStart(b),this.line("/Type /Outlines"),b.children.length>0&&(this.line("/First "+this.makeRef(b.children[0])),this.line("/Last "+this.makeRef(b.children[b.children.length-1]))),this.line("/Count "+this.count_r({count:0},b)),this.objEnd()},l.outline.renderItems=function(b){for(var F=this.ctx.pdf.internal.getVerticalCoordinateString,C=0;C<b.children.length;C++){var T=b.children[C];this.objStart(T),this.line("/Title "+this.makeString(T.title)),this.line("/Parent "+this.makeRef(b)),C>0&&this.line("/Prev "+this.makeRef(b.children[C-1])),C<b.children.length-1&&this.line("/Next "+this.makeRef(b.children[C+1])),T.children.length>0&&(this.line("/First "+this.makeRef(T.children[0])),this.line("/Last "+this.makeRef(T.children[T.children.length-1])));var Z=this.count=this.count_r({count:0},T);if(Z>0&&this.line("/Count "+Z),T.options&&T.options.pageNumber){var ae=l.internal.getPageInfo(T.options.pageNumber);this.line("/Dest ["+ae.objId+" 0 R /XYZ 0 "+F(0)+" 0]")}this.objEnd()}for(var _e=0;_e<b.children.length;_e++)this.renderItems(b.children[_e])},l.outline.line=function(b){this.ctx.val+=b+`\r
`},l.outline.makeRef=function(b){return b.id+" 0 R"},l.outline.makeString=function(b){return"("+l.internal.pdfEscape(b)+")"},l.outline.objStart=function(b){this.ctx.val+=`\r
`+b.id+` 0 obj\r
<<\r
`},l.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},l.outline.count_r=function(b,F){for(var C=0;C<F.children.length;C++)b.count++,this.count_r(b,F.children[C]);return b.count}}])}(Ai.API),function(c){var o=[192,193,194,195,196,197,198,199];c.processJPEG=function(l,b,F,C,T,Z){var ae,_e=this.decode.DCT_DECODE,$e=null;if(typeof l=="string"||this.__addimage__.isArrayBuffer(l)||this.__addimage__.isArrayBufferView(l)){switch(l=T||l,l=this.__addimage__.isArrayBuffer(l)?new Uint8Array(l):l,(ae=function(Ze){for(var st,be=256*Ze.charCodeAt(4)+Ze.charCodeAt(5),Lt=Ze.length,wt={width:0,height:0,numcomponents:1},kt=4;kt<Lt;kt+=2){if(kt+=be,o.indexOf(Ze.charCodeAt(kt+1))!==-1){st=256*Ze.charCodeAt(kt+5)+Ze.charCodeAt(kt+6),wt={width:256*Ze.charCodeAt(kt+7)+Ze.charCodeAt(kt+8),height:st,numcomponents:Ze.charCodeAt(kt+9)};break}be=256*Ze.charCodeAt(kt+2)+Ze.charCodeAt(kt+3)}return wt}(l=this.__addimage__.isArrayBufferView(l)?this.__addimage__.arrayBufferToBinaryString(l):l)).numcomponents){case 1:Z=this.color_spaces.DEVICE_GRAY;break;case 4:Z=this.color_spaces.DEVICE_CMYK;break;case 3:Z=this.color_spaces.DEVICE_RGB}$e={data:l,width:ae.width,height:ae.height,colorSpace:Z,bitsPerComponent:8,filter:_e,index:b,alias:F}}return $e}}(Ai.API);var al,Wc,Dl,Js,lA,cA=function(){var c,o,l;function b(C){var T,Z,ae,_e,$e,Ze,st,be,Lt,wt,kt,pt,Dt,ar;for(this.data=C,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},Ze=null;;){switch(T=this.readUInt32(),Lt=function(){var wr,Qr;for(Qr=[],wr=0;wr<4;++wr)Qr.push(String.fromCharCode(this.data[this.pos++]));return Qr}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(T);break;case"fcTL":Ze&&this.animation.frames.push(Ze),this.pos+=4,Ze={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},$e=this.readUInt16(),_e=this.readUInt16()||100,Ze.delay=1e3*$e/_e,Ze.disposeOp=this.data[this.pos++],Ze.blendOp=this.data[this.pos++],Ze.data=[];break;case"IDAT":case"fdAT":for(Lt==="fdAT"&&(this.pos+=4,T-=4),C=(Ze!=null?Ze.data:void 0)||this.imgData,pt=0;0<=T?pt<T:pt>T;0<=T?++pt:--pt)C.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(ae=this.palette.length/3,this.transparency.indexed=this.read(T),this.transparency.indexed.length>ae)throw new Error("More transparent colors than palette size");if((wt=ae-this.transparency.indexed.length)>0)for(Dt=0;0<=wt?Dt<wt:Dt>wt;0<=wt?++Dt:--Dt)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(T)[0];break;case 2:this.transparency.rgb=this.read(T)}break;case"tEXt":st=(kt=this.read(T)).indexOf(0),be=String.fromCharCode.apply(String,kt.slice(0,st)),this.text[be]=String.fromCharCode.apply(String,kt.slice(st+1));break;case"IEND":return Ze&&this.animation.frames.push(Ze),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(ar=this.colorType)===4||ar===6,Z=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*Z,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=T}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}b.prototype.read=function(C){var T,Z;for(Z=[],T=0;0<=C?T<C:T>C;0<=C?++T:--T)Z.push(this.data[this.pos++]);return Z},b.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},b.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},b.prototype.decodePixels=function(C){var T=this.pixelBitlength/8,Z=new Uint8Array(this.width*this.height*T),ae=0,_e=this;if(C==null&&(C=this.imgData),C.length===0)return new Uint8Array(0);function $e(Ze,st,be,Lt){var wt,kt,pt,Dt,ar,wr,Qr,hn,_r,Vt,Lr,Jr,vt,Ct,rr,U,ee,Se,Te,He,Xe,ht=Math.ceil((_e.width-Ze)/be),St=Math.ceil((_e.height-st)/Lt),Ae=_e.width==ht&&_e.height==St;for(Ct=T*ht,Jr=Ae?Z:new Uint8Array(Ct*St),wr=C.length,vt=0,kt=0;vt<St&&ae<wr;){switch(C[ae++]){case 0:for(Dt=ee=0;ee<Ct;Dt=ee+=1)Jr[kt++]=C[ae++];break;case 1:for(Dt=Se=0;Se<Ct;Dt=Se+=1)wt=C[ae++],ar=Dt<T?0:Jr[kt-T],Jr[kt++]=(wt+ar)%256;break;case 2:for(Dt=Te=0;Te<Ct;Dt=Te+=1)wt=C[ae++],pt=(Dt-Dt%T)/T,rr=vt&&Jr[(vt-1)*Ct+pt*T+Dt%T],Jr[kt++]=(rr+wt)%256;break;case 3:for(Dt=He=0;He<Ct;Dt=He+=1)wt=C[ae++],pt=(Dt-Dt%T)/T,ar=Dt<T?0:Jr[kt-T],rr=vt&&Jr[(vt-1)*Ct+pt*T+Dt%T],Jr[kt++]=(wt+Math.floor((ar+rr)/2))%256;break;case 4:for(Dt=Xe=0;Xe<Ct;Dt=Xe+=1)wt=C[ae++],pt=(Dt-Dt%T)/T,ar=Dt<T?0:Jr[kt-T],vt===0?rr=U=0:(rr=Jr[(vt-1)*Ct+pt*T+Dt%T],U=pt&&Jr[(vt-1)*Ct+(pt-1)*T+Dt%T]),Qr=ar+rr-U,hn=Math.abs(Qr-ar),Vt=Math.abs(Qr-rr),Lr=Math.abs(Qr-U),_r=hn<=Vt&&hn<=Lr?ar:Vt<=Lr?rr:U,Jr[kt++]=(wt+_r)%256;break;default:throw new Error("Invalid filter algorithm: "+C[ae-1])}if(!Ae){var Re=((st+vt*Lt)*_e.width+Ze)*T,Ye=vt*Ct;for(Dt=0;Dt<ht;Dt+=1){for(var et=0;et<T;et+=1)Z[Re++]=Jr[Ye++];Re+=(be-1)*T}}vt++}}return C=Le(C),_e.interlaceMethod==1?($e(0,0,8,8),$e(4,0,8,8),$e(0,4,4,8),$e(2,0,4,4),$e(0,2,2,4),$e(1,0,2,2),$e(0,1,1,2)):$e(0,0,1,1),Z},b.prototype.decodePalette=function(){var C,T,Z,ae,_e,$e,Ze,st,be;for(Z=this.palette,$e=this.transparency.indexed||[],_e=new Uint8Array(($e.length||0)+Z.length),ae=0,C=0,T=Ze=0,st=Z.length;Ze<st;T=Ze+=3)_e[ae++]=Z[T],_e[ae++]=Z[T+1],_e[ae++]=Z[T+2],_e[ae++]=(be=$e[C++])!=null?be:255;return _e},b.prototype.copyToImageData=function(C,T){var Z,ae,_e,$e,Ze,st,be,Lt,wt,kt,pt;if(ae=this.colors,wt=null,Z=this.hasAlphaChannel,this.palette.length&&(wt=(pt=this._decodedPalette)!=null?pt:this._decodedPalette=this.decodePalette(),ae=4,Z=!0),Lt=(_e=C.data||C).length,Ze=wt||T,$e=st=0,ae===1)for(;$e<Lt;)be=wt?4*T[$e/4]:st,kt=Ze[be++],_e[$e++]=kt,_e[$e++]=kt,_e[$e++]=kt,_e[$e++]=Z?Ze[be++]:255,st=be;else for(;$e<Lt;)be=wt?4*T[$e/4]:st,_e[$e++]=Ze[be++],_e[$e++]=Ze[be++],_e[$e++]=Ze[be++],_e[$e++]=Z?Ze[be++]:255,st=be},b.prototype.decode=function(){var C;return C=new Uint8Array(this.width*this.height*4),this.copyToImageData(C,this.decodePixels()),C};var F=function(){if(Object.prototype.toString.call(an)==="[object Window]"){try{o=an.document.createElement("canvas"),l=o.getContext("2d")}catch(C){return!1}return!0}return!1};return F(),c=function(C){var T;if(F()===!0)return l.width=C.width,l.height=C.height,l.clearRect(0,0,C.width,C.height),l.putImageData(C,0,0),(T=new Image).src=o.toDataURL(),T;throw new Error("This method requires a Browser with Canvas-capability.")},b.prototype.decodeFrames=function(C){var T,Z,ae,_e,$e,Ze,st,be;if(this.animation){for(be=[],Z=$e=0,Ze=(st=this.animation.frames).length;$e<Ze;Z=++$e)T=st[Z],ae=C.createImageData(T.width,T.height),_e=this.decodePixels(new Uint8Array(T.data)),this.copyToImageData(ae,_e),T.imageData=ae,be.push(T.image=c(ae));return be}},b.prototype.renderFrame=function(C,T){var Z,ae,_e;return Z=(ae=this.animation.frames)[T],_e=ae[T-1],T===0&&C.clearRect(0,0,this.width,this.height),(_e!=null?_e.disposeOp:void 0)===1?C.clearRect(_e.xOffset,_e.yOffset,_e.width,_e.height):(_e!=null?_e.disposeOp:void 0)===2&&C.putImageData(_e.imageData,_e.xOffset,_e.yOffset),Z.blendOp===0&&C.clearRect(Z.xOffset,Z.yOffset,Z.width,Z.height),C.drawImage(Z.image,Z.xOffset,Z.yOffset)},b.prototype.animate=function(C){var T,Z,ae,_e,$e,Ze,st=this;return Z=0,Ze=this.animation,_e=Ze.numFrames,ae=Ze.frames,$e=Ze.numPlays,(T=function(){var be,Lt;if(be=Z++%_e,Lt=ae[be],st.renderFrame(C,be),_e>1&&Z/_e<$e)return st.animation._timeout=setTimeout(T,Lt.delay)})()},b.prototype.stopAnimation=function(){var C;return clearTimeout((C=this.animation)!=null?C._timeout:void 0)},b.prototype.render=function(C){var T,Z;return C._png&&C._png.stopAnimation(),C._png=this,C.width=this.width,C.height=this.height,T=C.getContext("2d"),this.animation?(this.decodeFrames(T),this.animate(T)):(Z=T.createImageData(this.width,this.height),this.copyToImageData(Z,this.decodePixels()),T.putImageData(Z,0,0))},b}();function hc(c){var o=0;if(c[o++]!==71||c[o++]!==73||c[o++]!==70||c[o++]!==56||(c[o++]+1&253)!=56||c[o++]!==97)throw new Error("Invalid GIF 87a/89a header.");var l=c[o++]|c[o++]<<8,b=c[o++]|c[o++]<<8,F=c[o++],C=F>>7,T=1<<(7&F)+1;c[o++],c[o++];var Z=null,ae=null;C&&(Z=o,ae=T,o+=3*T);var _e=!0,$e=[],Ze=0,st=null,be=0,Lt=null;for(this.width=l,this.height=b;_e&&o<c.length;)switch(c[o++]){case 33:switch(c[o++]){case 255:if(c[o]!==11||c[o+1]==78&&c[o+2]==69&&c[o+3]==84&&c[o+4]==83&&c[o+5]==67&&c[o+6]==65&&c[o+7]==80&&c[o+8]==69&&c[o+9]==50&&c[o+10]==46&&c[o+11]==48&&c[o+12]==3&&c[o+13]==1&&c[o+16]==0)o+=14,Lt=c[o++]|c[o++]<<8,o++;else for(o+=12;;){if(!((vt=c[o++])>=0))throw Error("Invalid block size");if(vt===0)break;o+=vt}break;case 249:if(c[o++]!==4||c[o+4]!==0)throw new Error("Invalid graphics extension block.");var wt=c[o++];Ze=c[o++]|c[o++]<<8,st=c[o++],!(1&wt)&&(st=null),be=wt>>2&7,o++;break;case 254:for(;;){if(!((vt=c[o++])>=0))throw Error("Invalid block size");if(vt===0)break;o+=vt}break;default:throw new Error("Unknown graphic control label: 0x"+c[o-1].toString(16))}break;case 44:var kt=c[o++]|c[o++]<<8,pt=c[o++]|c[o++]<<8,Dt=c[o++]|c[o++]<<8,ar=c[o++]|c[o++]<<8,wr=c[o++],Qr=wr>>6&1,hn=1<<(7&wr)+1,_r=Z,Vt=ae,Lr=!1;wr>>7&&(Lr=!0,_r=o,Vt=hn,o+=3*hn);var Jr=o;for(o++;;){var vt;if(!((vt=c[o++])>=0))throw Error("Invalid block size");if(vt===0)break;o+=vt}$e.push({x:kt,y:pt,width:Dt,height:ar,has_local_palette:Lr,palette_offset:_r,palette_size:Vt,data_offset:Jr,data_length:o-Jr,transparent_index:st,interlaced:!!Qr,delay:Ze,disposal:be});break;case 59:_e=!1;break;default:throw new Error("Unknown gif block: 0x"+c[o-1].toString(16))}this.numFrames=function(){return $e.length},this.loopCount=function(){return Lt},this.frameInfo=function(Ct){if(Ct<0||Ct>=$e.length)throw new Error("Frame index out of range.");return $e[Ct]},this.decodeAndBlitFrameBGRA=function(Ct,rr){var U=this.frameInfo(Ct),ee=U.width*U.height,Se=new Uint8Array(ee);wA(c,U.data_offset,Se,ee);var Te=U.palette_offset,He=U.transparent_index;He===null&&(He=256);var Xe=U.width,ht=l-Xe,St=Xe,Ae=4*(U.y*l+U.x),Re=4*((U.y+U.height)*l+U.x),Ye=Ae,et=4*ht;U.interlaced===!0&&(et+=4*l*7);for(var bt=8,_t=0,It=Se.length;_t<It;++_t){var Rt=Se[_t];if(St===0&&(St=Xe,(Ye+=et)>=Re&&(et=4*ht+4*l*(bt-1),Ye=Ae+(Xe+ht)*(bt<<1),bt>>=1)),Rt===He)Ye+=4;else{var ur=c[Te+3*Rt],fr=c[Te+3*Rt+1],gr=c[Te+3*Rt+2];rr[Ye++]=gr,rr[Ye++]=fr,rr[Ye++]=ur,rr[Ye++]=255}--St}},this.decodeAndBlitFrameRGBA=function(Ct,rr){var U=this.frameInfo(Ct),ee=U.width*U.height,Se=new Uint8Array(ee);wA(c,U.data_offset,Se,ee);var Te=U.palette_offset,He=U.transparent_index;He===null&&(He=256);var Xe=U.width,ht=l-Xe,St=Xe,Ae=4*(U.y*l+U.x),Re=4*((U.y+U.height)*l+U.x),Ye=Ae,et=4*ht;U.interlaced===!0&&(et+=4*l*7);for(var bt=8,_t=0,It=Se.length;_t<It;++_t){var Rt=Se[_t];if(St===0&&(St=Xe,(Ye+=et)>=Re&&(et=4*ht+4*l*(bt-1),Ye=Ae+(Xe+ht)*(bt<<1),bt>>=1)),Rt===He)Ye+=4;else{var ur=c[Te+3*Rt],fr=c[Te+3*Rt+1],gr=c[Te+3*Rt+2];rr[Ye++]=ur,rr[Ye++]=fr,rr[Ye++]=gr,rr[Ye++]=255}--St}}}function wA(c,o,l,b){for(var F=c[o++],C=1<<F,T=C+1,Z=T+1,ae=F+1,_e=(1<<ae)-1,$e=0,Ze=0,st=0,be=c[o++],Lt=new Int32Array(4096),wt=null;;){for(;$e<16&&be!==0;)Ze|=c[o++]<<$e,$e+=8,be===1?be=c[o++]:--be;if($e<ae)break;var kt=Ze&_e;if(Ze>>=ae,$e-=ae,kt!==C){if(kt===T)break;for(var pt=kt<Z?kt:wt,Dt=0,ar=pt;ar>C;)ar=Lt[ar]>>8,++Dt;var wr=ar;if(st+Dt+(pt!==kt?1:0)>b)return void Ln.log("Warning, gif stream longer than expected.");l[st++]=wr;var Qr=st+=Dt;for(pt!==kt&&(l[st++]=wr),ar=pt;Dt--;)ar=Lt[ar],l[--Qr]=255&ar,ar>>=8;wt!==null&&Z<4096&&(Lt[Z++]=wt<<8|wr,Z>=_e+1&&ae<12&&(++ae,_e=_e<<1|1)),wt=kt}else Z=T+1,_e=(1<<(ae=F+1))-1,wt=null}return st!==b&&Ln.log("Warning, gif stream shorter than expected."),l}function Pl(c){var o,l,b,F,C,T=Math.floor,Z=new Array(64),ae=new Array(64),_e=new Array(64),$e=new Array(64),Ze=new Array(65535),st=new Array(65535),be=new Array(64),Lt=new Array(64),wt=[],kt=0,pt=7,Dt=new Array(64),ar=new Array(64),wr=new Array(64),Qr=new Array(256),hn=new Array(2048),_r=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Vt=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Lr=[0,1,2,3,4,5,6,7,8,9,10,11],Jr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],vt=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],Ct=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],rr=[0,1,2,3,4,5,6,7,8,9,10,11],U=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],ee=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function Se(Ae,Re){for(var Ye=0,et=0,bt=new Array,_t=1;_t<=16;_t++){for(var It=1;It<=Ae[_t];It++)bt[Re[et]]=[],bt[Re[et]][0]=Ye,bt[Re[et]][1]=_t,et++,Ye++;Ye*=2}return bt}function Te(Ae){for(var Re=Ae[0],Ye=Ae[1]-1;Ye>=0;)Re&1<<Ye&&(kt|=1<<pt),Ye--,--pt<0&&(kt==255?(He(255),He(0)):He(kt),pt=7,kt=0)}function He(Ae){wt.push(Ae)}function Xe(Ae){He(Ae>>8&255),He(255&Ae)}function ht(Ae,Re,Ye,et,bt){for(var _t,It=bt[0],Rt=bt[240],ur=function(vr,Nr){var Or,br,Zr,Cn,Xn,Vn,Nn,di,zn,Li,vn=0;for(zn=0;zn<8;++zn){Or=vr[vn],br=vr[vn+1],Zr=vr[vn+2],Cn=vr[vn+3],Xn=vr[vn+4],Vn=vr[vn+5],Nn=vr[vn+6];var Fa=Or+(di=vr[vn+7]),ji=Or-di,Ri=br+Nn,ia=br-Nn,Hi=Zr+Vn,Ka=Zr-Vn,Gi=Cn+Xn,As=Cn-Xn,Bn=Fa+Gi,fi=Fa-Gi,mi=Ri+Hi,Zn=Ri-Hi;vr[vn]=Bn+mi,vr[vn+4]=Bn-mi;var oi=.707106781*(Zn+fi);vr[vn+2]=fi+oi,vr[vn+6]=fi-oi;var kn=.382683433*((Bn=As+Ka)-(Zn=ia+ji)),Ki=.5411961*Bn+kn,Xi=1.306562965*Zn+kn,qi=.707106781*(mi=Ka+ia),Mo=ji+qi,ki=ji-qi;vr[vn+5]=ki+Ki,vr[vn+3]=ki-Ki,vr[vn+1]=Mo+Xi,vr[vn+7]=Mo-Xi,vn+=8}for(vn=0,zn=0;zn<8;++zn){Or=vr[vn],br=vr[vn+8],Zr=vr[vn+16],Cn=vr[vn+24],Xn=vr[vn+32],Vn=vr[vn+40],Nn=vr[vn+48];var ns=Or+(di=vr[vn+56]),ro=Or-di,Qo=br+Nn,bn=br-Nn,no=Zr+Vn,Cs=Zr-Vn,ga=Cn+Xn,qr=Cn-Xn,fa=ns+ga,so=ns-ga,Va=Qo+no,Ii=Qo-no;vr[vn]=fa+Va,vr[vn+32]=fa-Va;var bo=.707106781*(Ii+so);vr[vn+16]=so+bo,vr[vn+48]=so-bo;var Ko=.382683433*((fa=qr+Cs)-(Ii=bn+ro)),Bs=.5411961*fa+Ko,gs=1.306562965*Ii+Ko,is=.707106781*(Va=Cs+bn),us=ro+is,bl=ro-is;vr[vn+40]=bl+Bs,vr[vn+24]=bl-Bs,vr[vn+8]=us+gs,vr[vn+56]=us-gs,vn++}for(zn=0;zn<64;++zn)Li=vr[zn]*Nr[zn],be[zn]=Li>0?Li+.5|0:Li-.5|0;return be}(Ae,Re),fr=0;fr<64;++fr)Lt[_r[fr]]=ur[fr];var gr=Lt[0]-Ye;Ye=Lt[0],gr==0?Te(et[0]):(Te(et[st[_t=32767+gr]]),Te(Ze[_t]));for(var Sr=63;Sr>0&&Lt[Sr]==0;)Sr--;if(Sr==0)return Te(It),Ye;for(var dn,Ar=1;Ar<=Sr;){for(var yt=Ar;Lt[Ar]==0&&Ar<=Sr;)++Ar;var _n=Ar-yt;if(_n>=16){dn=_n>>4;for(var gn=1;gn<=dn;++gn)Te(Rt);_n&=15}_t=32767+Lt[Ar],Te(bt[(_n<<4)+st[_t]]),Te(Ze[_t]),Ar++}return Sr!=63&&Te(It),Ye}function St(Ae){Ae=Math.min(Math.max(Ae,1),100),C!=Ae&&(function(Re){for(var Ye=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],et=0;et<64;et++){var bt=T((Ye[et]*Re+50)/100);bt=Math.min(Math.max(bt,1),255),Z[_r[et]]=bt}for(var _t=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],It=0;It<64;It++){var Rt=T((_t[It]*Re+50)/100);Rt=Math.min(Math.max(Rt,1),255),ae[_r[It]]=Rt}for(var ur=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],fr=0,gr=0;gr<8;gr++)for(var Sr=0;Sr<8;Sr++)_e[fr]=1/(Z[_r[fr]]*ur[gr]*ur[Sr]*8),$e[fr]=1/(ae[_r[fr]]*ur[gr]*ur[Sr]*8),fr++}(Ae<50?Math.floor(5e3/Ae):Math.floor(200-2*Ae)),C=Ae)}this.encode=function(Ae,Re){Re&&St(Re),wt=new Array,kt=0,pt=7,Xe(65496),Xe(65504),Xe(16),He(74),He(70),He(73),He(70),He(0),He(1),He(1),He(0),Xe(1),Xe(1),He(0),He(0),function(){Xe(65499),Xe(132),He(0);for(var br=0;br<64;br++)He(Z[br]);He(1);for(var Zr=0;Zr<64;Zr++)He(ae[Zr])}(),function(br,Zr){Xe(65472),Xe(17),He(8),Xe(Zr),Xe(br),He(3),He(1),He(17),He(0),He(2),He(17),He(1),He(3),He(17),He(1)}(Ae.width,Ae.height),function(){Xe(65476),Xe(418),He(0);for(var br=0;br<16;br++)He(Vt[br+1]);for(var Zr=0;Zr<=11;Zr++)He(Lr[Zr]);He(16);for(var Cn=0;Cn<16;Cn++)He(Jr[Cn+1]);for(var Xn=0;Xn<=161;Xn++)He(vt[Xn]);He(1);for(var Vn=0;Vn<16;Vn++)He(Ct[Vn+1]);for(var Nn=0;Nn<=11;Nn++)He(rr[Nn]);He(17);for(var di=0;di<16;di++)He(U[di+1]);for(var zn=0;zn<=161;zn++)He(ee[zn])}(),Xe(65498),Xe(12),He(3),He(1),He(0),He(2),He(17),He(3),He(17),He(0),He(63),He(0);var Ye=0,et=0,bt=0;kt=0,pt=7,this.encode.displayName="_encode_";for(var _t,It,Rt,ur,fr,gr,Sr,dn,Ar,yt=Ae.data,_n=Ae.width,gn=Ae.height,vr=4*_n,Nr=0;Nr<gn;){for(_t=0;_t<vr;){for(fr=vr*Nr+_t,Sr=-1,dn=0,Ar=0;Ar<64;Ar++)gr=fr+(dn=Ar>>3)*vr+(Sr=4*(7&Ar)),Nr+dn>=gn&&(gr-=vr*(Nr+1+dn-gn)),_t+Sr>=vr&&(gr-=_t+Sr-vr+4),It=yt[gr++],Rt=yt[gr++],ur=yt[gr++],Dt[Ar]=(hn[It]+hn[Rt+256>>0]+hn[ur+512>>0]>>16)-128,ar[Ar]=(hn[It+768>>0]+hn[Rt+1024>>0]+hn[ur+1280>>0]>>16)-128,wr[Ar]=(hn[It+1280>>0]+hn[Rt+1536>>0]+hn[ur+1792>>0]>>16)-128;Ye=ht(Dt,_e,Ye,o,b),et=ht(ar,$e,et,l,F),bt=ht(wr,$e,bt,l,F),_t+=32}Nr+=8}if(pt>=0){var Or=[];Or[1]=pt+1,Or[0]=(1<<pt+1)-1,Te(Or)}return Xe(65497),new Uint8Array(wt)},c=c||50,function(){for(var Ae=String.fromCharCode,Re=0;Re<256;Re++)Qr[Re]=Ae(Re)}(),o=Se(Vt,Lr),l=Se(Ct,rr),b=Se(Jr,vt),F=Se(U,ee),function(){for(var Ae=1,Re=2,Ye=1;Ye<=15;Ye++){for(var et=Ae;et<Re;et++)st[32767+et]=Ye,Ze[32767+et]=[],Ze[32767+et][1]=Ye,Ze[32767+et][0]=et;for(var bt=-(Re-1);bt<=-Ae;bt++)st[32767+bt]=Ye,Ze[32767+bt]=[],Ze[32767+bt][1]=Ye,Ze[32767+bt][0]=Re-1+bt;Ae<<=1,Re<<=1}}(),function(){for(var Ae=0;Ae<256;Ae++)hn[Ae]=19595*Ae,hn[Ae+256>>0]=38470*Ae,hn[Ae+512>>0]=7471*Ae+32768,hn[Ae+768>>0]=-11059*Ae,hn[Ae+1024>>0]=-21709*Ae,hn[Ae+1280>>0]=32768*Ae+8421375,hn[Ae+1536>>0]=-27439*Ae,hn[Ae+1792>>0]=-5329*Ae}(),St(c)}function Ys(c,o){if(this.pos=0,this.buffer=c,this.datav=new DataView(c.buffer),this.is_with_alpha=!!o,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function ol(c){function o(Vt){if(!Vt)throw Error("assert :P")}function l(Vt,Lr,Jr){for(var vt=0;4>vt;vt++)if(Vt[Lr+vt]!=Jr.charCodeAt(vt))return!0;return!1}function b(Vt,Lr,Jr,vt,Ct){for(var rr=0;rr<Ct;rr++)Vt[Lr+rr]=Jr[vt+rr]}function F(Vt,Lr,Jr,vt){for(var Ct=0;Ct<vt;Ct++)Vt[Lr+Ct]=Jr}function C(Vt){return new Int32Array(Vt)}function T(Vt,Lr){for(var Jr=[],vt=0;vt<Vt;vt++)Jr.push(new Lr);return Jr}function Z(Vt,Lr){var Jr=[];return function vt(Ct,rr,U){for(var ee=U[rr],Se=0;Se<ee&&(Ct.push(U.length>rr+1?[]:new Lr),!(U.length<rr+1));Se++)vt(Ct[Se],rr+1,U)}(Jr,0,Vt),Jr}var ae=function(){var Vt=this;function Lr(a,g){for(var O=1<<g-1>>>0;a&O;)O>>>=1;return O?(a&O-1)+O:a}function Jr(a,g,O,oe,Ie){o(!(oe%O));do a[g+(oe-=O)]=Ie;while(0<oe)}function vt(a,g,O,oe,Ie){if(o(2328>=Ie),512>=Ie)var Ve=C(512);else if((Ve=C(Ie))==null)return 0;return function(ze,Je,ct,mt,Ot,zt){var dr,Wt,kr=Je,Dr=1<<ct,Gt=C(16),tr=C(16);for(o(Ot!=0),o(mt!=null),o(ze!=null),o(0<ct),Wt=0;Wt<Ot;++Wt){if(15<mt[Wt])return 0;++Gt[mt[Wt]]}if(Gt[0]==Ot)return 0;for(tr[1]=0,dr=1;15>dr;++dr){if(Gt[dr]>1<<dr)return 0;tr[dr+1]=tr[dr]+Gt[dr]}for(Wt=0;Wt<Ot;++Wt)dr=mt[Wt],0<mt[Wt]&&(zt[tr[dr]++]=Wt);if(tr[15]==1)return(mt=new Ct).g=0,mt.value=zt[0],Jr(ze,kr,1,Dr,mt),Dr;var Tr,sn=-1,un=Dr-1,li=0,Gn=1,Zi=1,ii=1<<ct;for(Wt=0,dr=1,Ot=2;dr<=ct;++dr,Ot<<=1){if(Gn+=Zi<<=1,0>(Zi-=Gt[dr]))return 0;for(;0<Gt[dr];--Gt[dr])(mt=new Ct).g=dr,mt.value=zt[Wt++],Jr(ze,kr+li,Ot,ii,mt),li=Lr(li,dr)}for(dr=ct+1,Ot=2;15>=dr;++dr,Ot<<=1){if(Gn+=Zi<<=1,0>(Zi-=Gt[dr]))return 0;for(;0<Gt[dr];--Gt[dr]){if(mt=new Ct,(li&un)!=sn){for(kr+=ii,Tr=1<<(sn=dr)-ct;15>sn&&!(0>=(Tr-=Gt[sn]));)++sn,Tr<<=1;Dr+=ii=1<<(Tr=sn-ct),ze[Je+(sn=li&un)].g=Tr+ct,ze[Je+sn].value=kr-Je-sn}mt.g=dr-ct,mt.value=zt[Wt++],Jr(ze,kr+(li>>ct),Ot,ii,mt),li=Lr(li,dr)}}return Gn!=2*tr[15]-1?0:Dr}(a,g,O,oe,Ie,Ve)}function Ct(){this.value=this.g=0}function rr(){this.value=this.g=0}function U(){this.G=T(5,Ct),this.H=C(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=T(pl,rr)}function ee(a,g,O,oe){o(a!=null),o(g!=null),o(2147483648>oe),a.Ca=254,a.I=0,a.b=-8,a.Ka=0,a.oa=g,a.pa=O,a.Jd=g,a.Yc=O+oe,a.Zc=4<=oe?O+oe-4+1:O,_t(a)}function Se(a,g){for(var O=0;0<g--;)O|=Rt(a,128)<<g;return O}function Te(a,g){var O=Se(a,g);return It(a)?-O:O}function He(a,g,O,oe){var Ie,Ve=0;for(o(a!=null),o(g!=null),o(4294967288>oe),a.Sb=oe,a.Ra=0,a.u=0,a.h=0,4<oe&&(oe=4),Ie=0;Ie<oe;++Ie)Ve+=g[O+Ie]<<8*Ie;a.Ra=Ve,a.bb=oe,a.oa=g,a.pa=O}function Xe(a){for(;8<=a.u&&a.bb<a.Sb;)a.Ra>>>=8,a.Ra+=a.oa[a.pa+a.bb]<<rs-8>>>0,++a.bb,a.u-=8;Ye(a)&&(a.h=1,a.u=0)}function ht(a,g){if(o(0<=g),!a.h&&g<=YA){var O=Re(a)&Qc[g];return a.u+=g,Xe(a),O}return a.h=1,a.u=0}function St(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Ae(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function Re(a){return a.Ra>>>(a.u&rs-1)>>>0}function Ye(a){return o(a.bb<=a.Sb),a.h||a.bb==a.Sb&&a.u>rs}function et(a,g){a.u=g,a.h=Ye(a)}function bt(a){a.u>=Kc&&(o(a.u>=Kc),Xe(a))}function _t(a){o(a!=null&&a.oa!=null),a.pa<a.Zc?(a.I=(a.oa[a.pa++]|a.I<<8)>>>0,a.b+=8):(o(a!=null&&a.oa!=null),a.pa<a.Yc?(a.b+=8,a.I=a.oa[a.pa++]|a.I<<8):a.Ka?a.b=0:(a.I<<=8,a.b+=8,a.Ka=1))}function It(a){return Se(a,1)}function Rt(a,g){var O=a.Ca;0>a.b&&_t(a);var oe=a.b,Ie=O*g>>>8,Ve=(a.I>>>oe>Ie)+0;for(Ve?(O-=Ie,a.I-=Ie+1<<oe>>>0):O=Ie+1,oe=O,Ie=0;256<=oe;)Ie+=8,oe>>=8;return oe=7^Ie+tl[oe],a.b-=oe,a.Ca=(O<<oe)-1,Ve}function ur(a,g,O){a[g+0]=O>>24&255,a[g+1]=O>>16&255,a[g+2]=O>>8&255,a[g+3]=O>>0&255}function fr(a,g){return a[g+0]<<0|a[g+1]<<8}function gr(a,g){return fr(a,g)|a[g+2]<<16}function Sr(a,g){return fr(a,g)|fr(a,g+2)<<16}function dn(a,g){var O=1<<g;return o(a!=null),o(0<g),a.X=C(O),a.X==null?0:(a.Mb=32-g,a.Xa=g,1)}function Ar(a,g){o(a!=null),o(g!=null),o(a.Xa==g.Xa),b(g.X,0,a.X,0,1<<g.Xa)}function yt(){this.X=[],this.Xa=this.Mb=0}function _n(a,g,O,oe){o(O!=null),o(oe!=null);var Ie=O[0],Ve=oe[0];return Ie==0&&(Ie=(a*Ve+g/2)/g),Ve==0&&(Ve=(g*Ie+a/2)/a),0>=Ie||0>=Ve?0:(O[0]=Ie,oe[0]=Ve,1)}function gn(a,g){return a+(1<<g)-1>>>g}function vr(a,g){return((4278255360&a)+(4278255360&g)>>>0&4278255360)+((16711935&a)+(16711935&g)>>>0&16711935)>>>0}function Nr(a,g){Vt[g]=function(O,oe,Ie,Ve,ze,Je,ct){var mt;for(mt=0;mt<ze;++mt){var Ot=Vt[a](Je[ct+mt-1],Ie,Ve+mt);Je[ct+mt]=vr(O[oe+mt],Ot)}}}function Or(){this.ud=this.hd=this.jd=0}function br(a,g){return((4278124286&(a^g))>>>1)+(a&g)>>>0}function Zr(a){return 0<=a&&256>a?a:0>a?0:255<a?255:void 0}function Cn(a,g){return Zr(a+(a-g+.5>>1))}function Xn(a,g,O){return Math.abs(g-O)-Math.abs(a-O)}function Vn(a,g,O,oe,Ie,Ve,ze){for(oe=Ve[ze-1],O=0;O<Ie;++O)Ve[ze+O]=oe=vr(a[g+O],oe)}function Nn(a,g,O,oe,Ie){var Ve;for(Ve=0;Ve<O;++Ve){var ze=a[g+Ve],Je=ze>>8&255,ct=16711935&(ct=(ct=16711935&ze)+((Je<<16)+Je));oe[Ie+Ve]=(4278255360&ze)+ct>>>0}}function di(a,g){g.jd=a>>0&255,g.hd=a>>8&255,g.ud=a>>16&255}function zn(a,g,O,oe,Ie,Ve){var ze;for(ze=0;ze<oe;++ze){var Je=g[O+ze],ct=Je>>>8,mt=Je,Ot=255&(Ot=(Ot=Je>>>16)+((a.jd<<24>>24)*(ct<<24>>24)>>>5));mt=255&(mt=(mt=mt+((a.hd<<24>>24)*(ct<<24>>24)>>>5))+((a.ud<<24>>24)*(Ot<<24>>24)>>>5)),Ie[Ve+ze]=(4278255360&Je)+(Ot<<16)+mt}}function Li(a,g,O,oe,Ie){Vt[g]=function(Ve,ze,Je,ct,mt,Ot,zt,dr,Wt){for(ct=zt;ct<dr;++ct)for(zt=0;zt<Wt;++zt)mt[Ot++]=Ie(Je[oe(Ve[ze++])])},Vt[a]=function(Ve,ze,Je,ct,mt,Ot,zt){var dr=8>>Ve.b,Wt=Ve.Ea,kr=Ve.K[0],Dr=Ve.w;if(8>dr)for(Ve=(1<<Ve.b)-1,Dr=(1<<dr)-1;ze<Je;++ze){var Gt,tr=0;for(Gt=0;Gt<Wt;++Gt)Gt&Ve||(tr=oe(ct[mt++])),Ot[zt++]=Ie(kr[tr&Dr]),tr>>=dr}else Vt["VP8LMapColor"+O](ct,mt,kr,Dr,Ot,zt,ze,Je,Wt)}}function vn(a,g,O,oe,Ie){for(O=g+O;g<O;){var Ve=a[g++];oe[Ie++]=Ve>>16&255,oe[Ie++]=Ve>>8&255,oe[Ie++]=Ve>>0&255}}function Fa(a,g,O,oe,Ie){for(O=g+O;g<O;){var Ve=a[g++];oe[Ie++]=Ve>>16&255,oe[Ie++]=Ve>>8&255,oe[Ie++]=Ve>>0&255,oe[Ie++]=Ve>>24&255}}function ji(a,g,O,oe,Ie){for(O=g+O;g<O;){var Ve=(ze=a[g++])>>16&240|ze>>12&15,ze=ze>>0&240|ze>>28&15;oe[Ie++]=Ve,oe[Ie++]=ze}}function Ri(a,g,O,oe,Ie){for(O=g+O;g<O;){var Ve=(ze=a[g++])>>16&248|ze>>13&7,ze=ze>>5&224|ze>>3&31;oe[Ie++]=Ve,oe[Ie++]=ze}}function ia(a,g,O,oe,Ie){for(O=g+O;g<O;){var Ve=a[g++];oe[Ie++]=Ve>>0&255,oe[Ie++]=Ve>>8&255,oe[Ie++]=Ve>>16&255}}function Hi(a,g,O,oe,Ie,Ve){if(Ve==0)for(O=g+O;g<O;)ur(oe,((Ve=a[g++])[0]>>24|Ve[1]>>8&65280|Ve[2]<<8&16711680|Ve[3]<<24)>>>0),Ie+=32;else b(oe,Ie,a,g,O)}function Ka(a,g){Vt[g][0]=Vt[a+"0"],Vt[g][1]=Vt[a+"1"],Vt[g][2]=Vt[a+"2"],Vt[g][3]=Vt[a+"3"],Vt[g][4]=Vt[a+"4"],Vt[g][5]=Vt[a+"5"],Vt[g][6]=Vt[a+"6"],Vt[g][7]=Vt[a+"7"],Vt[g][8]=Vt[a+"8"],Vt[g][9]=Vt[a+"9"],Vt[g][10]=Vt[a+"10"],Vt[g][11]=Vt[a+"11"],Vt[g][12]=Vt[a+"12"],Vt[g][13]=Vt[a+"13"],Vt[g][14]=Vt[a+"0"],Vt[g][15]=Vt[a+"0"]}function Gi(a){return a==Zu||a==Al||a==gu||a==id}function As(){this.eb=[],this.size=this.A=this.fb=0}function Bn(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function fi(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new As,this.f.kb=new Bn,this.sd=null}function mi(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Zn(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function oi(a){return alert("todo:WebPSamplerProcessPlane"),a.T}function kn(a,g){var O=a.T,oe=g.ba.f.RGBA,Ie=oe.eb,Ve=oe.fb+a.ka*oe.A,ze=dc[g.ba.S],Je=a.y,ct=a.O,mt=a.f,Ot=a.N,zt=a.ea,dr=a.W,Wt=g.cc,kr=g.dc,Dr=g.Mc,Gt=g.Nc,tr=a.ka,Tr=a.ka+a.T,sn=a.U,un=sn+1>>1;for(tr==0?ze(Je,ct,null,null,mt,Ot,zt,dr,mt,Ot,zt,dr,Ie,Ve,null,null,sn):(ze(g.ec,g.fc,Je,ct,Wt,kr,Dr,Gt,mt,Ot,zt,dr,Ie,Ve-oe.A,Ie,Ve,sn),++O);tr+2<Tr;tr+=2)Wt=mt,kr=Ot,Dr=zt,Gt=dr,Ot+=a.Rc,dr+=a.Rc,Ve+=2*oe.A,ze(Je,(ct+=2*a.fa)-a.fa,Je,ct,Wt,kr,Dr,Gt,mt,Ot,zt,dr,Ie,Ve-oe.A,Ie,Ve,sn);return ct+=a.fa,a.j+Tr<a.o?(b(g.ec,g.fc,Je,ct,sn),b(g.cc,g.dc,mt,Ot,un),b(g.Mc,g.Nc,zt,dr,un),O--):1&Tr||ze(Je,ct,null,null,mt,Ot,zt,dr,mt,Ot,zt,dr,Ie,Ve+oe.A,null,null,sn),O}function Ki(a,g,O){var oe=a.F,Ie=[a.J];if(oe!=null){var Ve=a.U,ze=g.ba.S,Je=ze==DA||ze==gu;g=g.ba.f.RGBA;var ct=[0],mt=a.ka;ct[0]=a.T,a.Kb&&(mt==0?--ct[0]:(--mt,Ie[0]-=a.width),a.j+a.ka+a.T==a.o&&(ct[0]=a.o-a.j-mt));var Ot=g.eb;mt=g.fb+mt*g.A,a=Ho(oe,Ie[0],a.width,Ve,ct,Ot,mt+(Je?0:3),g.A),o(O==ct),a&&Gi(ze)&&Ec(Ot,mt,Je,Ve,ct,g.A)}return 0}function Xi(a){var g=a.ma,O=g.ba.S,oe=11>O,Ie=O==$u||O==nd||O==DA||O==mu||O==12||Gi(O);if(g.memory=null,g.Ib=null,g.Jb=null,g.Nd=null,!kA(g.Oa,a,Ie?11:12))return 0;if(Ie&&Gi(O)&&Sn(),a.da)alert("todo:use_scaling");else{if(oe){if(g.Ib=oi,a.Kb){if(O=a.U+1>>1,g.memory=C(a.U+2*O),g.memory==null)return 0;g.ec=g.memory,g.fc=0,g.cc=g.ec,g.dc=g.fc+a.U,g.Mc=g.cc,g.Nc=g.dc+O,g.Ib=kn,Sn()}}else alert("todo:EmitYUV");Ie&&(g.Jb=Ki,oe&&yr())}if(oe&&!Wd){for(a=0;256>a;++a)m[a]=89858*(a-128)+xu>>Gu,v[a]=-22014*(a-128)+xu,y[a]=-45773*(a-128),u[a]=113618*(a-128)+xu>>Gu;for(a=Cu;a<Bd;++a)g=76283*(a-16)+xu>>Gu,re[a-Cu]=sc(g,255),Fe[a-Cu]=sc(g+8>>4,15);Wd=1}return 1}function qi(a){var g=a.ma,O=a.U,oe=a.T;return o(!(1&a.ka)),0>=O||0>=oe?0:(O=g.Ib(a,g),g.Jb!=null&&g.Jb(a,g,O),g.Dc+=O,1)}function Mo(a){a.ma.memory=null}function ki(a,g,O,oe){return ht(a,8)!=47?0:(g[0]=ht(a,14)+1,O[0]=ht(a,14)+1,oe[0]=ht(a,1),ht(a,3)!=0?0:!a.h)}function ns(a,g){if(4>a)return a+1;var O=a-2>>1;return(2+(1&a)<<O)+ht(g,O)+1}function ro(a,g){return 120<g?g-120:1<=(O=((O=wd[g-1])>>4)*a+(8-(15&O)))?O:1;var O}function Qo(a,g,O){var oe=Re(O),Ie=a[g+=255&oe].g-8;return 0<Ie&&(et(O,O.u+8),oe=Re(O),g+=a[g].value,g+=oe&(1<<Ie)-1),et(O,O.u+a[g].g),a[g].value}function bn(a,g,O){return O.g+=a.g,O.value+=a.value<<g>>>0,o(8>=O.g),a.g}function no(a,g,O){var oe=a.xc;return o((g=oe==0?0:a.vc[a.md*(O>>oe)+(g>>oe)])<a.Wb),a.Ya[g]}function Cs(a,g,O,oe){var Ie=a.ab,Ve=a.c*g,ze=a.C;g=ze+g;var Je=O,ct=oe;for(oe=a.Ta,O=a.Ua;0<Ie--;){var mt=a.gc[Ie],Ot=ze,zt=g,dr=Je,Wt=ct,kr=(ct=oe,Je=O,mt.Ea);switch(o(Ot<zt),o(zt<=mt.nc),mt.hc){case 2:Jl(dr,Wt,(zt-Ot)*kr,ct,Je);break;case 0:var Dr=Ot,Gt=zt,tr=ct,Tr=Je,sn=(ii=mt).Ea;Dr==0&&(eA(dr,Wt,null,null,1,tr,Tr),Vn(dr,Wt+1,0,0,sn-1,tr,Tr+1),Wt+=sn,Tr+=sn,++Dr);for(var un=1<<ii.b,li=un-1,Gn=gn(sn,ii.b),Zi=ii.K,ii=ii.w+(Dr>>ii.b)*Gn;Dr<Gt;){var Ha=Zi,qa=ii,Ea=1;for(rl(dr,Wt,tr,Tr-sn,1,tr,Tr);Ea<sn;){var Ma=(Ea&~li)+un;Ma>sn&&(Ma=sn),(0,cc[Ha[qa++]>>8&15])(dr,Wt+ +Ea,tr,Tr+Ea-sn,Ma-Ea,tr,Tr+Ea),Ea=Ma}Wt+=sn,Tr+=sn,++Dr&li||(ii+=Gn)}zt!=mt.nc&&b(ct,Je-kr,ct,Je+(zt-Ot-1)*kr,kr);break;case 1:for(kr=dr,Gt=Wt,sn=(dr=mt.Ea)-(Tr=dr&~(tr=(Wt=1<<mt.b)-1)),Dr=gn(dr,mt.b),un=mt.K,mt=mt.w+(Ot>>mt.b)*Dr;Ot<zt;){for(li=un,Gn=mt,Zi=new Or,ii=Gt+Tr,Ha=Gt+dr;Gt<ii;)di(li[Gn++],Zi),Yl(Zi,kr,Gt,Wt,ct,Je),Gt+=Wt,Je+=Wt;Gt<Ha&&(di(li[Gn++],Zi),Yl(Zi,kr,Gt,sn,ct,Je),Gt+=sn,Je+=sn),++Ot&tr||(mt+=Dr)}break;case 3:if(dr==ct&&Wt==Je&&0<mt.b){for(Gt=ct,dr=kr=Je+(zt-Ot)*kr-(Tr=(zt-Ot)*gn(mt.Ea,mt.b)),Wt=ct,tr=Je,Dr=[],Tr=(sn=Tr)-1;0<=Tr;--Tr)Dr[Tr]=Wt[tr+Tr];for(Tr=sn-1;0<=Tr;--Tr)Gt[dr+Tr]=Dr[Tr];ss(mt,Ot,zt,ct,kr,ct,Je)}else ss(mt,Ot,zt,dr,Wt,ct,Je)}Je=oe,ct=O}ct!=O&&b(oe,O,Je,ct,Ve)}function ga(a,g){var O=a.V,oe=a.Ba+a.c*a.C,Ie=g-a.C;if(o(g<=a.l.o),o(16>=Ie),0<Ie){var Ve=a.l,ze=a.Ta,Je=a.Ua,ct=Ve.width;if(Cs(a,Ie,O,oe),Ie=Je=[Je],o((O=a.C)<(oe=g)),o(Ve.v<Ve.va),oe>Ve.o&&(oe=Ve.o),O<Ve.j){var mt=Ve.j-O;O=Ve.j,Ie[0]+=mt*ct}if(O>=oe?O=0:(Ie[0]+=4*Ve.v,Ve.ka=O-Ve.j,Ve.U=Ve.va-Ve.v,Ve.T=oe-O,O=1),O){if(Je=Je[0],11>(O=a.ca).S){var Ot=O.f.RGBA,zt=(oe=O.S,Ie=Ve.U,Ve=Ve.T,mt=Ot.eb,Ot.A),dr=Ve;for(Ot=Ot.fb+a.Ma*Ot.A;0<dr--;){var Wt=ze,kr=Je,Dr=Ie,Gt=mt,tr=Ot;switch(oe){case ko:cl(Wt,kr,Dr,Gt,tr);break;case $u:nl(Wt,kr,Dr,Gt,tr);break;case Zu:nl(Wt,kr,Dr,Gt,tr),Ec(Gt,tr,0,Dr,1,0);break;case pu:rA(Wt,kr,Dr,Gt,tr);break;case nd:Hi(Wt,kr,Dr,Gt,tr,1);break;case Al:Hi(Wt,kr,Dr,Gt,tr,1),Ec(Gt,tr,0,Dr,1,0);break;case DA:Hi(Wt,kr,Dr,Gt,tr,0);break;case gu:Hi(Wt,kr,Dr,Gt,tr,0),Ec(Gt,tr,1,Dr,1,0);break;case mu:xc(Wt,kr,Dr,Gt,tr);break;case id:xc(Wt,kr,Dr,Gt,tr),Jo(Gt,tr,Dr,1,0);break;case ru:tA(Wt,kr,Dr,Gt,tr);break;default:o(0)}Je+=ct,Ot+=zt}a.Ma+=Ve}else alert("todo:EmitRescaledRowsYUVA");o(a.Ma<=O.height)}}a.C=g,o(a.C<=a.i)}function qr(a){var g;if(0<a.ua)return 0;for(g=0;g<a.Wb;++g){var O=a.Ya[g].G,oe=a.Ya[g].H;if(0<O[1][oe[1]+0].g||0<O[2][oe[2]+0].g||0<O[3][oe[3]+0].g)return 0}return 1}function fa(a,g,O,oe,Ie,Ve){if(a.Z!=0){var ze=a.qd,Je=a.rd;for(o(PA[a.Z]!=null);g<O;++g)PA[a.Z](ze,Je,oe,Ie,oe,Ie,Ve),ze=oe,Je=Ie,Ie+=Ve;a.qd=ze,a.rd=Je}}function so(a,g){var O=a.l.ma,oe=O.Z==0||O.Z==1?a.l.j:a.C;if(oe=a.C<oe?oe:a.C,o(g<=a.l.o),g>oe){var Ie=a.l.width,Ve=O.ca,ze=O.tb+Ie*oe,Je=a.V,ct=a.Ba+a.c*oe,mt=a.gc;o(a.ab==1),o(mt[0].hc==3),lc(mt[0],oe,g,Je,ct,Ve,ze),fa(O,oe,g,Ve,ze,Ie)}a.C=a.Ma=g}function Va(a,g,O,oe,Ie,Ve,ze){var Je=a.$/oe,ct=a.$%oe,mt=a.m,Ot=a.s,zt=O+a.$,dr=zt;Ie=O+oe*Ie;var Wt=O+oe*Ve,kr=280+Ot.ua,Dr=a.Pb?Je:16777216,Gt=0<Ot.ua?Ot.Wa:null,tr=Ot.wc,Tr=zt<Wt?no(Ot,ct,Je):null;o(a.C<Ve),o(Wt<=Ie);var sn=!1;e:for(;;){for(;sn||zt<Wt;){var un=0;if(Je>=Dr){var li=zt-O;o((Dr=a).Pb),Dr.wd=Dr.m,Dr.xd=li,0<Dr.s.ua&&Ar(Dr.s.Wa,Dr.s.vb),Dr=Je+ad}if(ct&tr||(Tr=no(Ot,ct,Je)),o(Tr!=null),Tr.Qb&&(g[zt]=Tr.qb,sn=!0),!sn)if(bt(mt),Tr.jc){un=mt,li=g;var Gn=zt,Zi=Tr.pd[Re(un)&pl-1];o(Tr.jc),256>Zi.g?(et(un,un.u+Zi.g),li[Gn]=Zi.value,un=0):(et(un,un.u+Zi.g-256),o(256<=Zi.value),un=Zi.value),un==0&&(sn=!0)}else un=Qo(Tr.G[0],Tr.H[0],mt);if(mt.h)break;if(sn||256>un){if(!sn)if(Tr.nd)g[zt]=(Tr.qb|un<<8)>>>0;else{if(bt(mt),sn=Qo(Tr.G[1],Tr.H[1],mt),bt(mt),li=Qo(Tr.G[2],Tr.H[2],mt),Gn=Qo(Tr.G[3],Tr.H[3],mt),mt.h)break;g[zt]=(Gn<<24|sn<<16|un<<8|li)>>>0}if(sn=!1,++zt,++ct>=oe&&(ct=0,++Je,ze!=null&&Je<=Ve&&!(Je%16)&&ze(a,Je),Gt!=null))for(;dr<zt;)un=g[dr++],Gt.X[(506832829*un&4294967295)>>>Gt.Mb]=un}else if(280>un){if(un=ns(un-256,mt),li=Qo(Tr.G[4],Tr.H[4],mt),bt(mt),li=ro(oe,li=ns(li,mt)),mt.h)break;if(zt-O<li||Ie-zt<un)break e;for(Gn=0;Gn<un;++Gn)g[zt+Gn]=g[zt+Gn-li];for(zt+=un,ct+=un;ct>=oe;)ct-=oe,++Je,ze!=null&&Je<=Ve&&!(Je%16)&&ze(a,Je);if(o(zt<=Ie),ct&tr&&(Tr=no(Ot,ct,Je)),Gt!=null)for(;dr<zt;)un=g[dr++],Gt.X[(506832829*un&4294967295)>>>Gt.Mb]=un}else{if(!(un<kr))break e;for(sn=un-280,o(Gt!=null);dr<zt;)un=g[dr++],Gt.X[(506832829*un&4294967295)>>>Gt.Mb]=un;un=zt,o(!(sn>>>(li=Gt).Xa)),g[un]=li.X[sn],sn=!0}sn||o(mt.h==Ye(mt))}if(a.Pb&&mt.h&&zt<Ie)o(a.m.h),a.a=5,a.m=a.wd,a.$=a.xd,0<a.s.ua&&Ar(a.s.vb,a.s.Wa);else{if(mt.h)break e;ze!=null&&ze(a,Je>Ve?Ve:Je),a.a=0,a.$=zt-O}return 1}return a.a=3,0}function Ii(a){o(a!=null),a.vc=null,a.yc=null,a.Ya=null;var g=a.Wa;g!=null&&(g.X=null),a.vb=null,o(a!=null)}function bo(){var a=new Tc;return a==null?null:(a.a=0,a.xb=bu,Ka("Predictor","VP8LPredictors"),Ka("Predictor","VP8LPredictors_C"),Ka("PredictorAdd","VP8LPredictorsAdd"),Ka("PredictorAdd","VP8LPredictorsAdd_C"),Jl=Nn,Yl=zn,cl=vn,nl=Fa,xc=ji,tA=Ri,rA=ia,Vt.VP8LMapColor32b=Tl,Vt.VP8LMapColor8b=wc,a)}function Ko(a,g,O,oe,Ie){var Ve=1,ze=[a],Je=[g],ct=oe.m,mt=oe.s,Ot=null,zt=0;e:for(;;){if(O)for(;Ve&&ht(ct,1);){var dr=ze,Wt=Je,kr=oe,Dr=1,Gt=kr.m,tr=kr.gc[kr.ab],Tr=ht(Gt,2);if(kr.Oc&1<<Tr)Ve=0;else{switch(kr.Oc|=1<<Tr,tr.hc=Tr,tr.Ea=dr[0],tr.nc=Wt[0],tr.K=[null],++kr.ab,o(4>=kr.ab),Tr){case 0:case 1:tr.b=ht(Gt,3)+2,Dr=Ko(gn(tr.Ea,tr.b),gn(tr.nc,tr.b),0,kr,tr.K),tr.K=tr.K[0];break;case 3:var sn,un=ht(Gt,8)+1,li=16<un?0:4<un?1:2<un?2:3;if(dr[0]=gn(tr.Ea,li),tr.b=li,sn=Dr=Ko(un,1,0,kr,tr.K)){var Gn,Zi=un,ii=tr,Ha=1<<(8>>ii.b),qa=C(Ha);if(qa==null)sn=0;else{var Ea=ii.K[0],Ma=ii.w;for(qa[0]=ii.K[0][0],Gn=1;Gn<1*Zi;++Gn)qa[Gn]=vr(Ea[Ma+Gn],qa[Gn-1]);for(;Gn<4*Ha;++Gn)qa[Gn]=0;ii.K[0]=null,ii.K[0]=qa,sn=1}}Dr=sn;break;case 2:break;default:o(0)}Ve=Dr}}if(ze=ze[0],Je=Je[0],Ve&&ht(ct,1)&&!(Ve=1<=(zt=ht(ct,4))&&11>=zt)){oe.a=3;break e}var xo;if(xo=Ve)t:{var Wa,ca,Co,Fc=oe,ws=ze,fc=Je,Yo=zt,Hc=O,Ic=Fc.m,Sl=Fc.s,Rl=[null],Ql=1,iA=0,OA=Vu[Yo];r:for(;;){if(Hc&&ht(Ic,1)){var El=ht(Ic,3)+2,jc=gn(ws,El),Bu=gn(fc,El),iu=jc*Bu;if(!Ko(jc,Bu,0,Fc,Rl))break r;for(Rl=Rl[0],Sl.xc=El,Wa=0;Wa<iu;++Wa){var aA=Rl[Wa]>>8&65535;Rl[Wa]=aA,aA>=Ql&&(Ql=aA+1)}}if(Ic.h)break r;for(ca=0;5>ca;++ca){var Ks=bd[ca];!ca&&0<Yo&&(Ks+=1<<Yo),iA<Ks&&(iA=Ks)}var Su=T(Ql*OA,Ct),Sd=Ql,Gd=T(Sd,U);if(Gd==null)var Xd=null;else o(65536>=Sd),Xd=Gd;var Ed=C(iA);if(Xd==null||Ed==null||Su==null){Fc.a=1;break r}var ld=Su;for(Wa=Co=0;Wa<Ql;++Wa){var Mc=Xd[Wa],gA=Mc.G,cd=Mc.H,Hf=0,Jd=1,_d=0;for(ca=0;5>ca;++ca){Ks=bd[ca],gA[ca]=ld,cd[ca]=Co,!ca&&0<Yo&&(Ks+=1<<Yo);i:{var Fd,Yd=Ks,Ad=Fc,ud=Ed,m0=ld,zc=Co,xf=0,vA=Ad.m,g0=ht(vA,1);if(F(ud,0,0,Yd),g0){var xs=ht(vA,1)+1,v0=ht(vA,1),Cf=ht(vA,v0==0?1:8);ud[Cf]=1,xs==2&&(ud[Cf=ht(vA,8)]=1);var TA=1}else{var Id=C(19),jf=ht(vA,4)+4;if(19<jf){Ad.a=3;var Md=0;break i}for(Fd=0;Fd<jf;++Fd)Id[Zd[Fd]]=ht(vA,3);var oA=void 0,_l=void 0,qd=Ad,dd=Id,ef=Yd,zf=ud,Bf=0,Eu=qd.m,Ld=8,tf=T(128,Ct);n:for(;vt(tf,0,7,dd,19);){if(ht(Eu,1)){var y0=2+2*ht(Eu,3);if((oA=2+ht(Eu,y0))>ef)break n}else oA=ef;for(_l=0;_l<ef&&oA--;){bt(Eu);var Sf=tf[0+(127&Re(Eu))];et(Eu,Eu.u+Sf.g);var au=Sf.value;if(16>au)zf[_l++]=au,au!=0&&(Ld=au);else{var kd=au==16,Ef=au-16,Dd=jo[Ef],$f=ht(Eu,yn[Ef])+Dd;if(_l+$f>ef)break n;for(var Zf=kd?Ld:0;0<$f--;)zf[_l++]=Zf}}Bf=1;break n}Bf||(qd.a=3),TA=Bf}(TA=TA&&!vA.h)&&(xf=vt(m0,zc,8,ud,Yd)),TA&&xf!=0?Md=xf:(Ad.a=3,Md=0)}if(Md==0)break r;if(Jd&&gf[ca]==1&&(Jd=ld[Co].g==0),Hf+=ld[Co].g,Co+=Md,3>=ca){var Pd,_f=Ed[0];for(Pd=1;Pd<Ks;++Pd)Ed[Pd]>_f&&(_f=Ed[Pd]);_d+=_f}}if(Mc.nd=Jd,Mc.Qb=0,Jd&&(Mc.qb=(gA[3][cd[3]+0].value<<24|gA[1][cd[1]+0].value<<16|gA[2][cd[2]+0].value)>>>0,Hf==0&&256>gA[0][cd[0]+0].value&&(Mc.Qb=1,Mc.qb+=gA[0][cd[0]+0].value<<8)),Mc.jc=!Mc.Qb&&6>_d,Mc.jc){var rf,$c=Mc;for(rf=0;rf<pl;++rf){var sA=rf,_u=$c.pd[sA],Nd=$c.G[0][$c.H[0]+sA];256<=Nd.value?(_u.g=Nd.g+256,_u.value=Nd.value):(_u.g=0,_u.value=0,sA>>=bn(Nd,8,_u),sA>>=bn($c.G[1][$c.H[1]+sA],16,_u),sA>>=bn($c.G[2][$c.H[2]+sA],0,_u),bn($c.G[3][$c.H[3]+sA],24,_u))}}}Sl.vc=Rl,Sl.Wb=Ql,Sl.Ya=Xd,Sl.yc=Su,xo=1;break t}xo=0}if(!(Ve=xo)){oe.a=3;break e}if(0<zt){if(mt.ua=1<<zt,!dn(mt.Wa,zt)){oe.a=1,Ve=0;break e}}else mt.ua=0;var Ff=oe,Vf=ze,b0=Je,If=Ff.s,Mf=If.xc;if(Ff.c=Vf,Ff.i=b0,If.md=gn(Vf,Mf),If.wc=Mf==0?-1:(1<<Mf)-1,O){oe.xb=vf;break e}if((Ot=C(ze*Je))==null){oe.a=1,Ve=0;break e}Ve=(Ve=Va(oe,Ot,0,ze,Je,Je,null))&&!ct.h;break e}return Ve?(Ie!=null?Ie[0]=Ot:(o(Ot==null),o(O)),oe.$=0,O||Ii(mt)):Ii(mt),Ve}function Bs(a,g){var O=a.c*a.i,oe=O+g+16*g;return o(a.c<=g),a.V=C(oe),a.V==null?(a.Ta=null,a.Ua=0,a.a=1,0):(a.Ta=a.V,a.Ua=a.Ba+O+g,1)}function gs(a,g){var O=a.C,oe=g-O,Ie=a.V,Ve=a.Ba+a.c*O;for(o(g<=a.l.o);0<oe;){var ze=16<oe?16:oe,Je=a.l.ma,ct=a.l.width,mt=ct*ze,Ot=Je.ca,zt=Je.tb+ct*O,dr=a.Ta,Wt=a.Ua;Cs(a,ze,Ie,Ve),Us(dr,Wt,Ot,zt,mt),fa(Je,O,O+ze,Ot,zt,ct),oe-=ze,Ie+=ze*a.c,O+=ze}o(O==g),a.C=a.Ma=g}function is(){this.ub=this.yd=this.td=this.Rb=0}function us(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function bl(){this.Fb=this.Bb=this.Cb=0,this.Zb=C(4),this.Lb=C(4)}function as(){this.Yb=function(){var a=[];return function g(O,oe,Ie){for(var Ve=Ie[oe],ze=0;ze<Ve&&(O.push(Ie.length>oe+1?[]:0),!(Ie.length<oe+1));ze++)g(O[ze],oe+1,Ie)}(a,0,[3,11]),a}()}function $s(){this.jb=C(3),this.Wc=Z([4,8],as),this.Xc=Z([4,17],as)}function ds(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new C(4),this.od=new C(4)}function Lo(){this.ld=this.La=this.dd=this.tc=0}function wo(){this.Na=this.la=0}function qs(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Nl(){this.ad=C(384),this.Za=0,this.Ob=C(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function zl(){this.uc=this.M=this.Nb=0,this.wa=Array(new Lo),this.Y=0,this.ya=Array(new Nl),this.aa=0,this.l=new Xc}function wl(){this.y=C(16),this.f=C(8),this.ea=C(8)}function BA(){this.cb=this.a=0,this.sc="",this.m=new St,this.Od=new is,this.Kc=new us,this.ed=new ds,this.Qa=new bl,this.Ic=this.$c=this.Aa=0,this.D=new zl,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=T(8,St),this.ia=0,this.pb=T(4,qs),this.Pa=new $s,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new wl),this.Hd=0,this.rb=Array(new wo),this.sb=0,this.wa=Array(new Lo),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Nl),this.L=this.aa=0,this.gd=Z([4,2],Lo),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Xc(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Ca(){var a=new BA;return a!=null&&(a.a=0,a.sc="OK",a.cb=0,a.Xb=0,ml||(ml=fs)),a}function ea(a,g,O){return a.a==0&&(a.a=g,a.sc=O,a.cb=0),0}function vs(a,g,O){return 3<=O&&a[g+0]==157&&a[g+1]==1&&a[g+2]==42}function go(a,g){if(a==null)return 0;if(a.a=0,a.sc="OK",g==null)return ea(a,2,"null VP8Io passed to VP8GetHeaders()");var O=g.data,oe=g.w,Ie=g.ha;if(4>Ie)return ea(a,7,"Truncated header.");var Ve=O[oe+0]|O[oe+1]<<8|O[oe+2]<<16,ze=a.Od;if(ze.Rb=!(1&Ve),ze.td=Ve>>1&7,ze.yd=Ve>>4&1,ze.ub=Ve>>5,3<ze.td)return ea(a,3,"Incorrect keyframe parameters.");if(!ze.yd)return ea(a,4,"Frame not displayable.");oe+=3,Ie-=3;var Je=a.Kc;if(ze.Rb){if(7>Ie)return ea(a,7,"cannot parse picture header");if(!vs(O,oe,Ie))return ea(a,3,"Bad code word");Je.c=16383&(O[oe+4]<<8|O[oe+3]),Je.Td=O[oe+4]>>6,Je.i=16383&(O[oe+6]<<8|O[oe+5]),Je.Ud=O[oe+6]>>6,oe+=7,Ie-=7,a.za=Je.c+15>>4,a.Ub=Je.i+15>>4,g.width=Je.c,g.height=Je.i,g.Da=0,g.j=0,g.v=0,g.va=g.width,g.o=g.height,g.da=0,g.ib=g.width,g.hb=g.height,g.U=g.width,g.T=g.height,F((Ve=a.Pa).jb,0,255,Ve.jb.length),o((Ve=a.Qa)!=null),Ve.Cb=0,Ve.Bb=0,Ve.Fb=1,F(Ve.Zb,0,0,Ve.Zb.length),F(Ve.Lb,0,0,Ve.Lb)}if(ze.ub>Ie)return ea(a,7,"bad partition length");ee(Ve=a.m,O,oe,ze.ub),oe+=ze.ub,Ie-=ze.ub,ze.Rb&&(Je.Ld=It(Ve),Je.Kd=It(Ve)),Je=a.Qa;var ct,mt=a.Pa;if(o(Ve!=null),o(Je!=null),Je.Cb=It(Ve),Je.Cb){if(Je.Bb=It(Ve),It(Ve)){for(Je.Fb=It(Ve),ct=0;4>ct;++ct)Je.Zb[ct]=It(Ve)?Te(Ve,7):0;for(ct=0;4>ct;++ct)Je.Lb[ct]=It(Ve)?Te(Ve,6):0}if(Je.Bb)for(ct=0;3>ct;++ct)mt.jb[ct]=It(Ve)?Se(Ve,8):255}else Je.Bb=0;if(Ve.Ka)return ea(a,3,"cannot parse segment header");if((Je=a.ed).zd=It(Ve),Je.Tb=Se(Ve,6),Je.wb=Se(Ve,3),Je.Pc=It(Ve),Je.Pc&&It(Ve)){for(mt=0;4>mt;++mt)It(Ve)&&(Je.vd[mt]=Te(Ve,6));for(mt=0;4>mt;++mt)It(Ve)&&(Je.od[mt]=Te(Ve,6))}if(a.L=Je.Tb==0?0:Je.zd?1:2,Ve.Ka)return ea(a,3,"cannot parse filter header");var Ot=Ie;if(Ie=ct=oe,oe=ct+Ot,Je=Ot,a.Xb=(1<<Se(a.m,2))-1,Ot<3*(mt=a.Xb))O=7;else{for(ct+=3*mt,Je-=3*mt,Ot=0;Ot<mt;++Ot){var zt=O[Ie+0]|O[Ie+1]<<8|O[Ie+2]<<16;zt>Je&&(zt=Je),ee(a.Jc[+Ot],O,ct,zt),ct+=zt,Je-=zt,Ie+=3}ee(a.Jc[+mt],O,ct,Je),O=ct<oe?0:5}if(O!=0)return ea(a,O,"cannot parse partitions");for(O=Se(ct=a.m,7),Ie=It(ct)?Te(ct,4):0,oe=It(ct)?Te(ct,4):0,Je=It(ct)?Te(ct,4):0,mt=It(ct)?Te(ct,4):0,ct=It(ct)?Te(ct,4):0,Ot=a.Qa,zt=0;4>zt;++zt){if(Ot.Cb){var dr=Ot.Zb[zt];Ot.Fb||(dr+=O)}else{if(0<zt){a.pb[zt]=a.pb[0];continue}dr=O}var Wt=a.pb[zt];Wt.Sc[0]=xd[sc(dr+Ie,127)],Wt.Sc[1]=vu[sc(dr+0,127)],Wt.Eb[0]=2*xd[sc(dr+oe,127)],Wt.Eb[1]=101581*vu[sc(dr+Je,127)]>>16,8>Wt.Eb[1]&&(Wt.Eb[1]=8),Wt.Qc[0]=xd[sc(dr+mt,117)],Wt.Qc[1]=vu[sc(dr+ct,127)],Wt.lc=dr+ct}if(!ze.Rb)return ea(a,4,"Not a key frame.");for(It(Ve),ze=a.Pa,O=0;4>O;++O){for(Ie=0;8>Ie;++Ie)for(oe=0;3>oe;++oe)for(Je=0;11>Je;++Je)mt=Rt(Ve,gl[O][Ie][oe][Je])?Se(Ve,8):Cd[O][Ie][oe][Je],ze.Wc[O][Ie].Yb[oe][Je]=mt;for(Ie=0;17>Ie;++Ie)ze.Xc[O][Ie]=ze.Wc[O][od[Ie]]}return a.kc=It(Ve),a.kc&&(a.Bd=Se(Ve,8)),a.cb=1}function fs(a,g,O,oe,Ie,Ve,ze){var Je=g[Ie].Yb[O];for(O=0;16>Ie;++Ie){if(!Rt(a,Je[O+0]))return Ie;for(;!Rt(a,Je[O+1]);)if(Je=g[++Ie].Yb[0],O=0,Ie==16)return 16;var ct=g[Ie+1].Yb;if(Rt(a,Je[O+2])){var mt=a,Ot=0;if(Rt(mt,(dr=Je)[(zt=O)+3]))if(Rt(mt,dr[zt+6])){for(Je=0,zt=2*(Ot=Rt(mt,dr[zt+8]))+(dr=Rt(mt,dr[zt+9+Ot])),Ot=0,dr=nu[zt];dr[Je];++Je)Ot+=Ot+Rt(mt,dr[Je]);Ot+=3+(8<<zt)}else Rt(mt,dr[zt+7])?(Ot=7+2*Rt(mt,165),Ot+=Rt(mt,145)):Ot=5+Rt(mt,159);else Ot=Rt(mt,dr[zt+4])?3+Rt(mt,dr[zt+5]):2;Je=ct[2]}else Ot=1,Je=ct[1];ct=ze+Ls[Ie],0>(mt=a).b&&_t(mt);var zt,dr=mt.b,Wt=(zt=mt.Ca>>1)-(mt.I>>dr)>>31;--mt.b,mt.Ca+=Wt,mt.Ca|=1,mt.I-=(zt+1&Wt)<<dr,Ve[ct]=((Ot^Wt)-Wt)*oe[(0<Ie)+0]}return 16}function Ss(a){var g=a.rb[a.sb-1];g.la=0,g.Na=0,F(a.zc,0,0,a.zc.length),a.ja=0}function Es(a,g){if(a==null)return 0;if(g==null)return ea(a,2,"NULL VP8Io parameter in VP8Decode().");if(!a.cb&&!go(a,g))return 0;if(o(a.cb),g.ac==null||g.ac(g)){g.ob&&(a.L=0);var O=xt[a.L];if(a.L==2?(a.yb=0,a.zb=0):(a.yb=g.v-O>>4,a.zb=g.j-O>>4,0>a.yb&&(a.yb=0),0>a.zb&&(a.zb=0)),a.Va=g.o+15+O>>4,a.Hb=g.va+15+O>>4,a.Hb>a.za&&(a.Hb=a.za),a.Va>a.Ub&&(a.Va=a.Ub),0<a.L){var oe=a.ed;for(O=0;4>O;++O){var Ie;if(a.Qa.Cb){var Ve=a.Qa.Lb[O];a.Qa.Fb||(Ve+=oe.Tb)}else Ve=oe.Tb;for(Ie=0;1>=Ie;++Ie){var ze=a.gd[O][Ie],Je=Ve;if(oe.Pc&&(Je+=oe.vd[0],Ie&&(Je+=oe.od[0])),0<(Je=0>Je?0:63<Je?63:Je)){var ct=Je;0<oe.wb&&(ct=4<oe.wb?ct>>2:ct>>1)>9-oe.wb&&(ct=9-oe.wb),1>ct&&(ct=1),ze.dd=ct,ze.tc=2*Je+ct,ze.ld=40<=Je?2:15<=Je?1:0}else ze.tc=0;ze.La=Ie}}}O=0}else ea(a,6,"Frame setup failed"),O=a.a;if(O=O==0){if(O){a.$c=0,0<a.Aa||(a.Ic=nr);e:{O=a.Ic,oe=4*(ct=a.za);var mt=32*ct,Ot=ct+1,zt=0<a.L?ct*(0<a.Aa?2:1):0,dr=(a.Aa==2?2:1)*ct;if((ze=oe+832+(Ie=3*(16*O+xt[a.L])/2*mt)+(Ve=a.Fa!=null&&0<a.Fa.length?a.Kc.c*a.Kc.i:0))!=ze)O=0;else{if(ze>a.Vb){if(a.Vb=0,a.Ec=C(ze),a.Fc=0,a.Ec==null){O=ea(a,1,"no memory during frame initialization.");break e}a.Vb=ze}ze=a.Ec,Je=a.Fc,a.Ac=ze,a.Bc=Je,Je+=oe,a.Gd=T(mt,wl),a.Hd=0,a.rb=T(Ot+1,wo),a.sb=1,a.wa=zt?T(zt,Lo):null,a.Y=0,a.D.Nb=0,a.D.wa=a.wa,a.D.Y=a.Y,0<a.Aa&&(a.D.Y+=ct),o(!0),a.oc=ze,a.pc=Je,Je+=832,a.ya=T(dr,Nl),a.aa=0,a.D.ya=a.ya,a.D.aa=a.aa,a.Aa==2&&(a.D.aa+=ct),a.R=16*ct,a.B=8*ct,ct=(mt=xt[a.L])*a.R,mt=mt/2*a.B,a.sa=ze,a.ta=Je+ct,a.qa=a.sa,a.ra=a.ta+16*O*a.R+mt,a.Ha=a.qa,a.Ia=a.ra+8*O*a.B+mt,a.$c=0,Je+=Ie,a.mb=Ve?ze:null,a.nb=Ve?Je:null,o(Je+Ve<=a.Fc+a.Vb),Ss(a),F(a.Ac,a.Bc,0,oe),O=1}}if(O){if(g.ka=0,g.y=a.sa,g.O=a.ta,g.f=a.qa,g.N=a.ra,g.ea=a.Ha,g.Vd=a.Ia,g.fa=a.R,g.Rc=a.B,g.F=null,g.J=0,!tu){for(O=-255;255>=O;++O)Rs[255+O]=0>O?-O:O;for(O=-1020;1020>=O;++O)Ra[1020+O]=-128>O?-128:127<O?127:O;for(O=-112;112>=O;++O)hi[112+O]=-16>O?-16:15<O?15:O;for(O=-255;510>=O;++O)ec[255+O]=0>O?0:255<O?255:O;tu=1}qA=HA,uA=So,eu=xl,Ul=rc,Cc=Ns,Ms=Ba,fu=Oc,rd=Gl,ju=yd,dA=Qu,Bc=IA,Ac=zr,uc=WA,ql=GA,fA=os,hA=ys,hu=ac,Sc=FA,Vs[0]=Zl,Vs[1]=jA,Vs[2]=EA,Vs[3]=$A,Vs[4]=Xo,Vs[5]=Pc,Vs[6]=ZA,Vs[7]=yc,Vs[8]=Vl,Vs[9]=_A,_c[0]=fn,_c[1]=Jc,_c[2]=$l,_c[3]=vc,_c[4]=Fs,_c[5]=SA,_c[6]=AA,nA[0]=ts,nA[1]=zA,nA[2]=ic,nA[3]=lo,nA[4]=va,nA[5]=bc,nA[6]=Sa,O=1}else O=0}O&&(O=function(Wt,kr){for(Wt.M=0;Wt.M<Wt.Va;++Wt.M){var Dr,Gt=Wt.Jc[Wt.M&Wt.Xb],tr=Wt.m,Tr=Wt;for(Dr=0;Dr<Tr.za;++Dr){var sn=tr,un=Tr,li=un.Ac,Gn=un.Bc+4*Dr,Zi=un.zc,ii=un.ya[un.aa+Dr];if(un.Qa.Bb?ii.$b=Rt(sn,un.Pa.jb[0])?2+Rt(sn,un.Pa.jb[2]):Rt(sn,un.Pa.jb[1]):ii.$b=0,un.kc&&(ii.Ad=Rt(sn,un.Bd)),ii.Za=!Rt(sn,145)+0,ii.Za){var Ha=ii.Ob,qa=0;for(un=0;4>un;++un){var Ea,Ma=Zi[0+un];for(Ea=0;4>Ea;++Ea){Ma=pA[li[Gn+Ea]][Ma];for(var xo=yu[Rt(sn,Ma[0])];0<xo;)xo=yu[2*xo+Rt(sn,Ma[xo])];Ma=-xo,li[Gn+Ea]=Ma}b(Ha,qa,li,Gn,4),qa+=4,Zi[0+un]=Ma}}else Ma=Rt(sn,156)?Rt(sn,128)?1:3:Rt(sn,163)?2:0,ii.Ob[0]=Ma,F(li,Gn,Ma,4),F(Zi,0,Ma,4);ii.Dd=Rt(sn,142)?Rt(sn,114)?Rt(sn,183)?1:3:2:0}if(Tr.m.Ka)return ea(Wt,7,"Premature end-of-partition0 encountered.");for(;Wt.ja<Wt.za;++Wt.ja){if(Tr=Gt,sn=(tr=Wt).rb[tr.sb-1],li=tr.rb[tr.sb+tr.ja],Dr=tr.ya[tr.aa+tr.ja],Gn=tr.kc?Dr.Ad:0)sn.la=li.la=0,Dr.Za||(sn.Na=li.Na=0),Dr.Hc=0,Dr.Gc=0,Dr.ia=0;else{var Wa,ca;if(sn=li,li=Tr,Gn=tr.Pa.Xc,Zi=tr.ya[tr.aa+tr.ja],ii=tr.pb[Zi.$b],un=Zi.ad,Ha=0,qa=tr.rb[tr.sb-1],Ma=Ea=0,F(un,Ha,0,384),Zi.Za)var Co=0,Fc=Gn[3];else{xo=C(16);var ws=sn.Na+qa.Na;if(ws=ml(li,Gn[1],ws,ii.Eb,0,xo,0),sn.Na=qa.Na=(0<ws)+0,1<ws)qA(xo,0,un,Ha);else{var fc=xo[0]+3>>3;for(xo=0;256>xo;xo+=16)un[Ha+xo]=fc}Co=1,Fc=Gn[0]}var Yo=15&sn.la,Hc=15&qa.la;for(xo=0;4>xo;++xo){var Ic=1&Hc;for(fc=ca=0;4>fc;++fc)Yo=Yo>>1|(Ic=(ws=ml(li,Fc,ws=Ic+(1&Yo),ii.Sc,Co,un,Ha))>Co)<<7,ca=ca<<2|(3<ws?3:1<ws?2:un[Ha+0]!=0),Ha+=16;Yo>>=4,Hc=Hc>>1|Ic<<7,Ea=(Ea<<8|ca)>>>0}for(Fc=Yo,Co=Hc>>4,Wa=0;4>Wa;Wa+=2){for(ca=0,Yo=sn.la>>4+Wa,Hc=qa.la>>4+Wa,xo=0;2>xo;++xo){for(Ic=1&Hc,fc=0;2>fc;++fc)ws=Ic+(1&Yo),Yo=Yo>>1|(Ic=0<(ws=ml(li,Gn[2],ws,ii.Qc,0,un,Ha)))<<3,ca=ca<<2|(3<ws?3:1<ws?2:un[Ha+0]!=0),Ha+=16;Yo>>=2,Hc=Hc>>1|Ic<<5}Ma|=ca<<4*Wa,Fc|=Yo<<4<<Wa,Co|=(240&Hc)<<Wa}sn.la=Fc,qa.la=Co,Zi.Hc=Ea,Zi.Gc=Ma,Zi.ia=43690&Ma?0:ii.ia,Gn=!(Ea|Ma)}if(0<tr.L&&(tr.wa[tr.Y+tr.ja]=tr.gd[Dr.$b][Dr.Za],tr.wa[tr.Y+tr.ja].La|=!Gn),Tr.Ka)return ea(Wt,7,"Premature end-of-file encountered.")}if(Ss(Wt),tr=kr,Tr=1,Dr=(Gt=Wt).D,sn=0<Gt.L&&Gt.M>=Gt.zb&&Gt.M<=Gt.Va,Gt.Aa==0)e:{if(Dr.M=Gt.M,Dr.uc=sn,uu(Gt,Dr),Tr=1,Dr=(ca=Gt.D).Nb,sn=(Ma=xt[Gt.L])*Gt.R,li=Ma/2*Gt.B,xo=16*Dr*Gt.R,fc=8*Dr*Gt.B,Gn=Gt.sa,Zi=Gt.ta-sn+xo,ii=Gt.qa,un=Gt.ra-li+fc,Ha=Gt.Ha,qa=Gt.Ia-li+fc,Hc=(Yo=ca.M)==0,Ea=Yo>=Gt.Va-1,Gt.Aa==2&&uu(Gt,ca),ca.uc)for(Ic=(ws=Gt).D.M,o(ws.D.uc),ca=ws.yb;ca<ws.Hb;++ca){Co=ca,Fc=Ic;var Sl=(Rl=(Ks=ws).D).Nb;Wa=Ks.R;var Rl=Rl.wa[Rl.Y+Co],Ql=Ks.sa,iA=Ks.ta+16*Sl*Wa+16*Co,OA=Rl.dd,El=Rl.tc;if(El!=0)if(o(3<=El),Ks.L==1)0<Co&&hA(Ql,iA,Wa,El+4),Rl.La&&Sc(Ql,iA,Wa,El),0<Fc&&fA(Ql,iA,Wa,El+4),Rl.La&&hu(Ql,iA,Wa,El);else{var jc=Ks.B,Bu=Ks.qa,iu=Ks.ra+8*Sl*jc+8*Co,aA=Ks.Ha,Ks=Ks.Ia+8*Sl*jc+8*Co;Sl=Rl.ld,0<Co&&(rd(Ql,iA,Wa,El+4,OA,Sl),dA(Bu,iu,aA,Ks,jc,El+4,OA,Sl)),Rl.La&&(Ac(Ql,iA,Wa,El,OA,Sl),ql(Bu,iu,aA,Ks,jc,El,OA,Sl)),0<Fc&&(fu(Ql,iA,Wa,El+4,OA,Sl),ju(Bu,iu,aA,Ks,jc,El+4,OA,Sl)),Rl.La&&(Bc(Ql,iA,Wa,El,OA,Sl),uc(Bu,iu,aA,Ks,jc,El,OA,Sl))}}if(Gt.ia&&alert("todo:DitherRow"),tr.put!=null){if(ca=16*Yo,Yo=16*(Yo+1),Hc?(tr.y=Gt.sa,tr.O=Gt.ta+xo,tr.f=Gt.qa,tr.N=Gt.ra+fc,tr.ea=Gt.Ha,tr.W=Gt.Ia+fc):(ca-=Ma,tr.y=Gn,tr.O=Zi,tr.f=ii,tr.N=un,tr.ea=Ha,tr.W=qa),Ea||(Yo-=Ma),Yo>tr.o&&(Yo=tr.o),tr.F=null,tr.J=null,Gt.Fa!=null&&0<Gt.Fa.length&&ca<Yo&&(tr.J=MA(Gt,tr,ca,Yo-ca),tr.F=Gt.mb,tr.F==null&&tr.F.length==0)){Tr=ea(Gt,3,"Could not decode alpha data.");break e}ca<tr.j&&(Ma=tr.j-ca,ca=tr.j,o(!(1&Ma)),tr.O+=Gt.R*Ma,tr.N+=Gt.B*(Ma>>1),tr.W+=Gt.B*(Ma>>1),tr.F!=null&&(tr.J+=tr.width*Ma)),ca<Yo&&(tr.O+=tr.v,tr.N+=tr.v>>1,tr.W+=tr.v>>1,tr.F!=null&&(tr.J+=tr.v),tr.ka=ca-tr.j,tr.U=tr.va-tr.v,tr.T=Yo-ca,Tr=tr.put(tr))}Dr+1!=Gt.Ic||Ea||(b(Gt.sa,Gt.ta-sn,Gn,Zi+16*Gt.R,sn),b(Gt.qa,Gt.ra-li,ii,un+8*Gt.B,li),b(Gt.Ha,Gt.Ia-li,Ha,qa+8*Gt.B,li))}if(!Tr)return ea(Wt,6,"Output aborted.")}return 1}(a,g)),g.bc!=null&&g.bc(g),O&=1}return O?(a.cb=0,O):0}function _s(a,g,O,oe,Ie){Ie=a[g+O+32*oe]+(Ie>>3),a[g+O+32*oe]=-256&Ie?0>Ie?0:255:Ie}function Dc(a,g,O,oe,Ie,Ve){_s(a,g,0,O,oe+Ie),_s(a,g,1,O,oe+Ve),_s(a,g,2,O,oe-Ve),_s(a,g,3,O,oe-Ie)}function ll(a){return(20091*a>>16)+a}function gc(a,g,O,oe){var Ie,Ve=0,ze=C(16);for(Ie=0;4>Ie;++Ie){var Je=a[g+0]+a[g+8],ct=a[g+0]-a[g+8],mt=(35468*a[g+4]>>16)-ll(a[g+12]),Ot=ll(a[g+4])+(35468*a[g+12]>>16);ze[Ve+0]=Je+Ot,ze[Ve+1]=ct+mt,ze[Ve+2]=ct-mt,ze[Ve+3]=Je-Ot,Ve+=4,g++}for(Ie=Ve=0;4>Ie;++Ie)Je=(a=ze[Ve+0]+4)+ze[Ve+8],ct=a-ze[Ve+8],mt=(35468*ze[Ve+4]>>16)-ll(ze[Ve+12]),_s(O,oe,0,0,Je+(Ot=ll(ze[Ve+4])+(35468*ze[Ve+12]>>16))),_s(O,oe,1,0,ct+mt),_s(O,oe,2,0,ct-mt),_s(O,oe,3,0,Je-Ot),Ve++,oe+=32}function Ba(a,g,O,oe){var Ie=a[g+0]+4,Ve=35468*a[g+4]>>16,ze=ll(a[g+4]),Je=35468*a[g+1]>>16;Dc(O,oe,0,Ie+ze,a=ll(a[g+1]),Je),Dc(O,oe,1,Ie+Ve,a,Je),Dc(O,oe,2,Ie-Ve,a,Je),Dc(O,oe,3,Ie-ze,a,Je)}function So(a,g,O,oe,Ie){gc(a,g,O,oe),Ie&&gc(a,g+16,O,oe+4)}function xl(a,g,O,oe){uA(a,g+0,O,oe,1),uA(a,g+32,O,oe+128,1)}function rc(a,g,O,oe){var Ie;for(a=a[g+0]+4,Ie=0;4>Ie;++Ie)for(g=0;4>g;++g)_s(O,oe,g,Ie,a)}function Ns(a,g,O,oe){a[g+0]&&Ul(a,g+0,O,oe),a[g+16]&&Ul(a,g+16,O,oe+4),a[g+32]&&Ul(a,g+32,O,oe+128),a[g+48]&&Ul(a,g+48,O,oe+128+4)}function HA(a,g,O,oe){var Ie,Ve=C(16);for(Ie=0;4>Ie;++Ie){var ze=a[g+0+Ie]+a[g+12+Ie],Je=a[g+4+Ie]+a[g+8+Ie],ct=a[g+4+Ie]-a[g+8+Ie],mt=a[g+0+Ie]-a[g+12+Ie];Ve[0+Ie]=ze+Je,Ve[8+Ie]=ze-Je,Ve[4+Ie]=mt+ct,Ve[12+Ie]=mt-ct}for(Ie=0;4>Ie;++Ie)ze=(a=Ve[0+4*Ie]+3)+Ve[3+4*Ie],Je=Ve[1+4*Ie]+Ve[2+4*Ie],ct=Ve[1+4*Ie]-Ve[2+4*Ie],mt=a-Ve[3+4*Ie],O[oe+0]=ze+Je>>3,O[oe+16]=mt+ct>>3,O[oe+32]=ze-Je>>3,O[oe+48]=mt-ct>>3,oe+=64}function Cl(a,g,O){var oe,Ie=g-32,Ve=ya,ze=255-a[Ie-1];for(oe=0;oe<O;++oe){var Je,ct=Ve,mt=ze+a[g-1];for(Je=0;Je<O;++Je)a[g+Je]=ct[mt+a[Ie+Je]];g+=32}}function jA(a,g){Cl(a,g,4)}function zA(a,g){Cl(a,g,8)}function Jc(a,g){Cl(a,g,16)}function $l(a,g){var O;for(O=0;16>O;++O)b(a,g+32*O,a,g-32,16)}function vc(a,g){var O;for(O=16;0<O;--O)F(a,g,a[g-1],16),g+=32}function nc(a,g,O){var oe;for(oe=0;16>oe;++oe)F(g,O+32*oe,a,16)}function fn(a,g){var O,oe=16;for(O=0;16>O;++O)oe+=a[g-1+32*O]+a[g+O-32];nc(oe>>5,a,g)}function Fs(a,g){var O,oe=8;for(O=0;16>O;++O)oe+=a[g-1+32*O];nc(oe>>4,a,g)}function SA(a,g){var O,oe=8;for(O=0;16>O;++O)oe+=a[g+O-32];nc(oe>>4,a,g)}function AA(a,g){nc(128,a,g)}function sa(a,g,O){return a+2*g+O+2>>2}function EA(a,g){var O,oe=g-32;for(oe=new Uint8Array([sa(a[oe-1],a[oe+0],a[oe+1]),sa(a[oe+0],a[oe+1],a[oe+2]),sa(a[oe+1],a[oe+2],a[oe+3]),sa(a[oe+2],a[oe+3],a[oe+4])]),O=0;4>O;++O)b(a,g+32*O,oe,0,oe.length)}function $A(a,g){var O=a[g-1],oe=a[g-1+32],Ie=a[g-1+64],Ve=a[g-1+96];ur(a,g+0,16843009*sa(a[g-1-32],O,oe)),ur(a,g+32,16843009*sa(O,oe,Ie)),ur(a,g+64,16843009*sa(oe,Ie,Ve)),ur(a,g+96,16843009*sa(Ie,Ve,Ve))}function Zl(a,g){var O,oe=4;for(O=0;4>O;++O)oe+=a[g+O-32]+a[g-1+32*O];for(oe>>=3,O=0;4>O;++O)F(a,g+32*O,oe,4)}function Xo(a,g){var O=a[g-1+0],oe=a[g-1+32],Ie=a[g-1+64],Ve=a[g-1-32],ze=a[g+0-32],Je=a[g+1-32],ct=a[g+2-32],mt=a[g+3-32];a[g+0+96]=sa(oe,Ie,a[g-1+96]),a[g+1+96]=a[g+0+64]=sa(O,oe,Ie),a[g+2+96]=a[g+1+64]=a[g+0+32]=sa(Ve,O,oe),a[g+3+96]=a[g+2+64]=a[g+1+32]=a[g+0+0]=sa(ze,Ve,O),a[g+3+64]=a[g+2+32]=a[g+1+0]=sa(Je,ze,Ve),a[g+3+32]=a[g+2+0]=sa(ct,Je,ze),a[g+3+0]=sa(mt,ct,Je)}function ZA(a,g){var O=a[g+1-32],oe=a[g+2-32],Ie=a[g+3-32],Ve=a[g+4-32],ze=a[g+5-32],Je=a[g+6-32],ct=a[g+7-32];a[g+0+0]=sa(a[g+0-32],O,oe),a[g+1+0]=a[g+0+32]=sa(O,oe,Ie),a[g+2+0]=a[g+1+32]=a[g+0+64]=sa(oe,Ie,Ve),a[g+3+0]=a[g+2+32]=a[g+1+64]=a[g+0+96]=sa(Ie,Ve,ze),a[g+3+32]=a[g+2+64]=a[g+1+96]=sa(Ve,ze,Je),a[g+3+64]=a[g+2+96]=sa(ze,Je,ct),a[g+3+96]=sa(Je,ct,ct)}function Pc(a,g){var O=a[g-1+0],oe=a[g-1+32],Ie=a[g-1+64],Ve=a[g-1-32],ze=a[g+0-32],Je=a[g+1-32],ct=a[g+2-32],mt=a[g+3-32];a[g+0+0]=a[g+1+64]=Ve+ze+1>>1,a[g+1+0]=a[g+2+64]=ze+Je+1>>1,a[g+2+0]=a[g+3+64]=Je+ct+1>>1,a[g+3+0]=ct+mt+1>>1,a[g+0+96]=sa(Ie,oe,O),a[g+0+64]=sa(oe,O,Ve),a[g+0+32]=a[g+1+96]=sa(O,Ve,ze),a[g+1+32]=a[g+2+96]=sa(Ve,ze,Je),a[g+2+32]=a[g+3+96]=sa(ze,Je,ct),a[g+3+32]=sa(Je,ct,mt)}function yc(a,g){var O=a[g+0-32],oe=a[g+1-32],Ie=a[g+2-32],Ve=a[g+3-32],ze=a[g+4-32],Je=a[g+5-32],ct=a[g+6-32],mt=a[g+7-32];a[g+0+0]=O+oe+1>>1,a[g+1+0]=a[g+0+64]=oe+Ie+1>>1,a[g+2+0]=a[g+1+64]=Ie+Ve+1>>1,a[g+3+0]=a[g+2+64]=Ve+ze+1>>1,a[g+0+32]=sa(O,oe,Ie),a[g+1+32]=a[g+0+96]=sa(oe,Ie,Ve),a[g+2+32]=a[g+1+96]=sa(Ie,Ve,ze),a[g+3+32]=a[g+2+96]=sa(Ve,ze,Je),a[g+3+64]=sa(ze,Je,ct),a[g+3+96]=sa(Je,ct,mt)}function _A(a,g){var O=a[g-1+0],oe=a[g-1+32],Ie=a[g-1+64],Ve=a[g-1+96];a[g+0+0]=O+oe+1>>1,a[g+2+0]=a[g+0+32]=oe+Ie+1>>1,a[g+2+32]=a[g+0+64]=Ie+Ve+1>>1,a[g+1+0]=sa(O,oe,Ie),a[g+3+0]=a[g+1+32]=sa(oe,Ie,Ve),a[g+3+32]=a[g+1+64]=sa(Ie,Ve,Ve),a[g+3+64]=a[g+2+64]=a[g+0+96]=a[g+1+96]=a[g+2+96]=a[g+3+96]=Ve}function Vl(a,g){var O=a[g-1+0],oe=a[g-1+32],Ie=a[g-1+64],Ve=a[g-1+96],ze=a[g-1-32],Je=a[g+0-32],ct=a[g+1-32],mt=a[g+2-32];a[g+0+0]=a[g+2+32]=O+ze+1>>1,a[g+0+32]=a[g+2+64]=oe+O+1>>1,a[g+0+64]=a[g+2+96]=Ie+oe+1>>1,a[g+0+96]=Ve+Ie+1>>1,a[g+3+0]=sa(Je,ct,mt),a[g+2+0]=sa(ze,Je,ct),a[g+1+0]=a[g+3+32]=sa(O,ze,Je),a[g+1+32]=a[g+3+64]=sa(oe,O,ze),a[g+1+64]=a[g+3+96]=sa(Ie,oe,O),a[g+1+96]=sa(Ve,Ie,oe)}function ic(a,g){var O;for(O=0;8>O;++O)b(a,g+32*O,a,g-32,8)}function lo(a,g){var O;for(O=0;8>O;++O)F(a,g,a[g-1],8),g+=32}function Os(a,g,O){var oe;for(oe=0;8>oe;++oe)F(g,O+32*oe,a,8)}function ts(a,g){var O,oe=8;for(O=0;8>O;++O)oe+=a[g+O-32]+a[g-1+32*O];Os(oe>>4,a,g)}function bc(a,g){var O,oe=4;for(O=0;8>O;++O)oe+=a[g+O-32];Os(oe>>3,a,g)}function va(a,g){var O,oe=4;for(O=0;8>O;++O)oe+=a[g-1+32*O];Os(oe>>3,a,g)}function Sa(a,g){Os(128,a,g)}function Zs(a,g,O){var oe=a[g-O],Ie=a[g+0],Ve=3*(Ie-oe)+Qs[1020+a[g-2*O]-a[g+O]],ze=zu[112+(Ve+4>>3)];a[g-O]=ya[255+oe+zu[112+(Ve+3>>3)]],a[g+0]=ya[255+Ie-ze]}function Wl(a,g,O,oe){var Ie=a[g+0],Ve=a[g+O];return Ao[255+a[g-2*O]-a[g-O]]>oe||Ao[255+Ve-Ie]>oe}function Ol(a,g,O,oe){return 4*Ao[255+a[g-O]-a[g+0]]+Ao[255+a[g-2*O]-a[g+O]]<=oe}function VA(a,g,O,oe,Ie){var Ve=a[g-3*O],ze=a[g-2*O],Je=a[g-O],ct=a[g+0],mt=a[g+O],Ot=a[g+2*O],zt=a[g+3*O];return 4*Ao[255+Je-ct]+Ao[255+ze-mt]>oe?0:Ao[255+a[g-4*O]-Ve]<=Ie&&Ao[255+Ve-ze]<=Ie&&Ao[255+ze-Je]<=Ie&&Ao[255+zt-Ot]<=Ie&&Ao[255+Ot-mt]<=Ie&&Ao[255+mt-ct]<=Ie}function os(a,g,O,oe){var Ie=2*oe+1;for(oe=0;16>oe;++oe)Ol(a,g+oe,O,Ie)&&Zs(a,g+oe,O)}function ys(a,g,O,oe){var Ie=2*oe+1;for(oe=0;16>oe;++oe)Ol(a,g+oe*O,1,Ie)&&Zs(a,g+oe*O,1)}function ac(a,g,O,oe){var Ie;for(Ie=3;0<Ie;--Ie)os(a,g+=4*O,O,oe)}function FA(a,g,O,oe){var Ie;for(Ie=3;0<Ie;--Ie)ys(a,g+=4,O,oe)}function Nc(a,g,O,oe,Ie,Ve,ze,Je){for(Ve=2*Ve+1;0<Ie--;){if(VA(a,g,O,Ve,ze))if(Wl(a,g,O,Je))Zs(a,g,O);else{var ct=a,mt=g,Ot=O,zt=ct[mt-2*Ot],dr=ct[mt-Ot],Wt=ct[mt+0],kr=ct[mt+Ot],Dr=ct[mt+2*Ot],Gt=27*(Tr=Qs[1020+3*(Wt-dr)+Qs[1020+zt-kr]])+63>>7,tr=18*Tr+63>>7,Tr=9*Tr+63>>7;ct[mt-3*Ot]=ya[255+ct[mt-3*Ot]+Tr],ct[mt-2*Ot]=ya[255+zt+tr],ct[mt-Ot]=ya[255+dr+Gt],ct[mt+0]=ya[255+Wt-Gt],ct[mt+Ot]=ya[255+kr-tr],ct[mt+2*Ot]=ya[255+Dr-Tr]}g+=oe}}function la(a,g,O,oe,Ie,Ve,ze,Je){for(Ve=2*Ve+1;0<Ie--;){if(VA(a,g,O,Ve,ze))if(Wl(a,g,O,Je))Zs(a,g,O);else{var ct=a,mt=g,Ot=O,zt=ct[mt-Ot],dr=ct[mt+0],Wt=ct[mt+Ot],kr=zu[112+((Dr=3*(dr-zt))+4>>3)],Dr=zu[112+(Dr+3>>3)],Gt=kr+1>>1;ct[mt-2*Ot]=ya[255+ct[mt-2*Ot]+Gt],ct[mt-Ot]=ya[255+zt+Dr],ct[mt+0]=ya[255+dr-kr],ct[mt+Ot]=ya[255+Wt-Gt]}g+=oe}}function Oc(a,g,O,oe,Ie,Ve){Nc(a,g,O,1,16,oe,Ie,Ve)}function Gl(a,g,O,oe,Ie,Ve){Nc(a,g,1,O,16,oe,Ie,Ve)}function IA(a,g,O,oe,Ie,Ve){var ze;for(ze=3;0<ze;--ze)la(a,g+=4*O,O,1,16,oe,Ie,Ve)}function zr(a,g,O,oe,Ie,Ve){var ze;for(ze=3;0<ze;--ze)la(a,g+=4,1,O,16,oe,Ie,Ve)}function yd(a,g,O,oe,Ie,Ve,ze,Je){Nc(a,g,Ie,1,8,Ve,ze,Je),Nc(O,oe,Ie,1,8,Ve,ze,Je)}function Qu(a,g,O,oe,Ie,Ve,ze,Je){Nc(a,g,1,Ie,8,Ve,ze,Je),Nc(O,oe,1,Ie,8,Ve,ze,Je)}function WA(a,g,O,oe,Ie,Ve,ze,Je){la(a,g+4*Ie,Ie,1,8,Ve,ze,Je),la(O,oe+4*Ie,Ie,1,8,Ve,ze,Je)}function GA(a,g,O,oe,Ie,Ve,ze,Je){la(a,g+4,1,Ie,8,Ve,ze,Je),la(O,oe+4,1,Ie,8,Ve,ze,Je)}function oc(){this.ba=new fi,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Zn,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Ku(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Au(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Is(){this.ua=0,this.Wa=new yt,this.vb=new yt,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new U,this.yc=new Ct}function Tc(){this.xb=this.a=0,this.l=new Xc,this.ca=new fi,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Ae,this.Pb=0,this.wd=new Ae,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Is,this.ab=0,this.gc=T(4,Au),this.Oc=0}function Yc(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Xc,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Uc(a,g,O,oe,Ie,Ve,ze){for(a=a==null?0:a[g+0],g=0;g<ze;++g)Ie[Ve+g]=a+O[oe+g]&255,a=Ie[Ve+g]}function Hu(a,g,O,oe,Ie,Ve,ze){var Je;if(a==null)Uc(null,null,O,oe,Ie,Ve,ze);else for(Je=0;Je<ze;++Je)Ie[Ve+Je]=a[g+Je]+O[oe+Je]&255}function Rc(a,g,O,oe,Ie,Ve,ze){if(a==null)Uc(null,null,O,oe,Ie,Ve,ze);else{var Je,ct=a[g+0],mt=ct,Ot=ct;for(Je=0;Je<ze;++Je)mt=Ot+(ct=a[g+Je])-mt,Ot=O[oe+Je]+(-256&mt?0>mt?0:255:mt)&255,mt=ct,Ie[Ve+Je]=Ot}}function MA(a,g,O,oe){var Ie=g.width,Ve=g.o;if(o(a!=null&&g!=null),0>O||0>=oe||O+oe>Ve)return null;if(!a.Cc){if(a.ga==null){var ze;if(a.ga=new Yc,(ze=a.ga==null)||(ze=g.width*g.o,o(a.Gb.length==0),a.Gb=C(ze),a.Uc=0,a.Gb==null?ze=0:(a.mb=a.Gb,a.nb=a.Uc,a.rc=null,ze=1),ze=!ze),!ze){ze=a.ga;var Je=a.Fa,ct=a.P,mt=a.qc,Ot=a.mb,zt=a.nb,dr=ct+1,Wt=mt-1,kr=ze.l;if(o(Je!=null&&Ot!=null&&g!=null),PA[0]=null,PA[1]=Uc,PA[2]=Hu,PA[3]=Rc,ze.ca=Ot,ze.tb=zt,ze.c=g.width,ze.i=g.height,o(0<ze.c&&0<ze.i),1>=mt)g=0;else if(ze.$a=Je[ct+0]>>0&3,ze.Z=Je[ct+0]>>2&3,ze.Lc=Je[ct+0]>>4&3,ct=Je[ct+0]>>6&3,0>ze.$a||1<ze.$a||4<=ze.Z||1<ze.Lc||ct)g=0;else if(kr.put=qi,kr.ac=Xi,kr.bc=Mo,kr.ma=ze,kr.width=g.width,kr.height=g.height,kr.Da=g.Da,kr.v=g.v,kr.va=g.va,kr.j=g.j,kr.o=g.o,ze.$a)e:{o(ze.$a==1),g=bo();t:for(;;){if(g==null){g=0;break e}if(o(ze!=null),ze.mc=g,g.c=ze.c,g.i=ze.i,g.l=ze.l,g.l.ma=ze,g.l.width=ze.c,g.l.height=ze.i,g.a=0,He(g.m,Je,dr,Wt),!Ko(ze.c,ze.i,1,g,null)||(g.ab==1&&g.gc[0].hc==3&&qr(g.s)?(ze.ic=1,Je=g.c*g.i,g.Ta=null,g.Ua=0,g.V=C(Je),g.Ba=0,g.V==null?(g.a=1,g=0):g=1):(ze.ic=0,g=Bs(g,ze.c)),!g))break t;g=1;break e}ze.mc=null,g=0}else g=Wt>=ze.c*ze.i;ze=!g}if(ze)return null;a.ga.Lc!=1?a.Ga=0:oe=Ve-O}o(a.ga!=null),o(O+oe<=Ve);e:{if(g=(Je=a.ga).c,Ve=Je.l.o,Je.$a==0){if(dr=a.rc,Wt=a.Vc,kr=a.Fa,ct=a.P+1+O*g,mt=a.mb,Ot=a.nb+O*g,o(ct<=a.P+a.qc),Je.Z!=0)for(o(PA[Je.Z]!=null),ze=0;ze<oe;++ze)PA[Je.Z](dr,Wt,kr,ct,mt,Ot,g),dr=mt,Wt=Ot,Ot+=g,ct+=g;else for(ze=0;ze<oe;++ze)b(mt,Ot,kr,ct,g),dr=mt,Wt=Ot,Ot+=g,ct+=g;a.rc=dr,a.Vc=Wt}else{if(o(Je.mc!=null),g=O+oe,o((ze=Je.mc)!=null),o(g<=ze.i),ze.C>=g)g=1;else if(Je.ic||yr(),Je.ic){Je=ze.V,dr=ze.Ba,Wt=ze.c;var Dr=ze.i,Gt=(kr=1,ct=ze.$/Wt,mt=ze.$%Wt,Ot=ze.m,zt=ze.s,ze.$),tr=Wt*Dr,Tr=Wt*g,sn=zt.wc,un=Gt<Tr?no(zt,mt,ct):null;o(Gt<=tr),o(g<=Dr),o(qr(zt));t:for(;;){for(;!Ot.h&&Gt<Tr;){if(mt&sn||(un=no(zt,mt,ct)),o(un!=null),bt(Ot),256>(Dr=Qo(un.G[0],un.H[0],Ot)))Je[dr+Gt]=Dr,++Gt,++mt>=Wt&&(mt=0,++ct<=g&&!(ct%16)&&so(ze,ct));else{if(!(280>Dr)){kr=0;break t}Dr=ns(Dr-256,Ot);var li,Gn=Qo(un.G[4],un.H[4],Ot);if(bt(Ot),!(Gt>=(Gn=ro(Wt,Gn=ns(Gn,Ot)))&&tr-Gt>=Dr)){kr=0;break t}for(li=0;li<Dr;++li)Je[dr+Gt+li]=Je[dr+Gt+li-Gn];for(Gt+=Dr,mt+=Dr;mt>=Wt;)mt-=Wt,++ct<=g&&!(ct%16)&&so(ze,ct);Gt<Tr&&mt&sn&&(un=no(zt,mt,ct))}o(Ot.h==Ye(Ot))}so(ze,ct>g?g:ct);break t}!kr||Ot.h&&Gt<tr?(kr=0,ze.a=Ot.h?5:3):ze.$=Gt,g=kr}else g=Va(ze,ze.V,ze.Ba,ze.c,ze.i,g,gs);if(!g){oe=0;break e}}O+oe>=Ve&&(a.Cc=1),oe=1}if(!oe)return null;if(a.Cc&&((oe=a.ga)!=null&&(oe.mc=null),a.ga=null,0<a.Ga))return alert("todo:WebPDequantizeLevels"),null}return a.nb+O*Ie}function P(a,g,O,oe,Ie,Ve){for(;0<Ie--;){var ze,Je=a,ct=g+(O?1:0),mt=a,Ot=g+(O?0:3);for(ze=0;ze<oe;++ze){var zt=mt[Ot+4*ze];zt!=255&&(zt*=32897,Je[ct+4*ze+0]=Je[ct+4*ze+0]*zt>>23,Je[ct+4*ze+1]=Je[ct+4*ze+1]*zt>>23,Je[ct+4*ze+2]=Je[ct+4*ze+2]*zt>>23)}g+=Ve}}function We(a,g,O,oe,Ie){for(;0<oe--;){var Ve;for(Ve=0;Ve<O;++Ve){var ze=a[g+2*Ve+0],Je=15&(mt=a[g+2*Ve+1]),ct=4369*Je,mt=(240&mt|mt>>4)*ct>>16;a[g+2*Ve+0]=(240&ze|ze>>4)*ct>>16&240|(15&ze|ze<<4)*ct>>16>>4&15,a[g+2*Ve+1]=240&mt|Je}g+=Ie}}function Mt(a,g,O,oe,Ie,Ve,ze,Je){var ct,mt,Ot=255;for(mt=0;mt<Ie;++mt){for(ct=0;ct<oe;++ct){var zt=a[g+ct];Ve[ze+4*ct]=zt,Ot&=zt}g+=O,ze+=Je}return Ot!=255}function Jt(a,g,O,oe,Ie){var Ve;for(Ve=0;Ve<Ie;++Ve)O[oe+Ve]=a[g+Ve]>>8}function yr(){Ec=P,Jo=We,Ho=Mt,Us=Jt}function Xr(a,g,O){Vt[a]=function(oe,Ie,Ve,ze,Je,ct,mt,Ot,zt,dr,Wt,kr,Dr,Gt,tr,Tr,sn){var un,li=sn-1>>1,Gn=Je[ct+0]|mt[Ot+0]<<16,Zi=zt[dr+0]|Wt[kr+0]<<16;o(oe!=null);var ii=3*Gn+Zi+131074>>2;for(g(oe[Ie+0],255&ii,ii>>16,Dr,Gt),Ve!=null&&(ii=3*Zi+Gn+131074>>2,g(Ve[ze+0],255&ii,ii>>16,tr,Tr)),un=1;un<=li;++un){var Ha=Je[ct+un]|mt[Ot+un]<<16,qa=zt[dr+un]|Wt[kr+un]<<16,Ea=Gn+Ha+Zi+qa+524296,Ma=Ea+2*(Ha+Zi)>>3;ii=Ma+Gn>>1,Gn=(Ea=Ea+2*(Gn+qa)>>3)+Ha>>1,g(oe[Ie+2*un-1],255&ii,ii>>16,Dr,Gt+(2*un-1)*O),g(oe[Ie+2*un-0],255&Gn,Gn>>16,Dr,Gt+(2*un-0)*O),Ve!=null&&(ii=Ea+Zi>>1,Gn=Ma+qa>>1,g(Ve[ze+2*un-1],255&ii,ii>>16,tr,Tr+(2*un-1)*O),g(Ve[ze+2*un+0],255&Gn,Gn>>16,tr,Tr+(2*un+0)*O)),Gn=Ha,Zi=qa}1&sn||(ii=3*Gn+Zi+131074>>2,g(oe[Ie+sn-1],255&ii,ii>>16,Dr,Gt+(sn-1)*O),Ve!=null&&(ii=3*Zi+Gn+131074>>2,g(Ve[ze+sn-1],255&ii,ii>>16,tr,Tr+(sn-1)*O)))}}function Sn(){dc[ko]=yf,dc[$u]=wu,dc[pu]=Wu,dc[nd]=sd,dc[DA]=NA,dc[mu]=mA,dc[ru]=bf,dc[Zu]=wu,dc[Al]=sd,dc[gu]=NA,dc[id]=mA}function Di(a){return a&~wf?0>a?0:255:a>>Vd}function ta(a,g){return Di((19077*a>>8)+(26149*g>>8)-14234)}function Na(a,g,O){return Di((19077*a>>8)-(6419*g>>8)-(13320*O>>8)+8708)}function Ia(a,g){return Di((19077*a>>8)+(33050*g>>8)-17685)}function co(a,g,O,oe,Ie){oe[Ie+0]=ta(a,O),oe[Ie+1]=Na(a,g,O),oe[Ie+2]=Ia(a,g)}function aa(a,g,O,oe,Ie){oe[Ie+0]=Ia(a,g),oe[Ie+1]=Na(a,g,O),oe[Ie+2]=ta(a,O)}function bs(a,g,O,oe,Ie){var Ve=Na(a,g,O);g=Ve<<3&224|Ia(a,g)>>3,oe[Ie+0]=248&ta(a,O)|Ve>>5,oe[Ie+1]=g}function Ts(a,g,O,oe,Ie){var Ve=240&Ia(a,g)|15;oe[Ie+0]=240&ta(a,O)|Na(a,g,O)>>4,oe[Ie+1]=Ve}function hs(a,g,O,oe,Ie){oe[Ie+0]=255,co(a,g,O,oe,Ie+1)}function el(a,g,O,oe,Ie){aa(a,g,O,oe,Ie),oe[Ie+3]=255}function Bl(a,g,O,oe,Ie){co(a,g,O,oe,Ie),oe[Ie+3]=255}function sc(a,g){return 0>a?0:a>g?g:a}function Xl(a,g,O){Vt[a]=function(oe,Ie,Ve,ze,Je,ct,mt,Ot,zt){for(var dr=Ot+(-2&zt)*O;Ot!=dr;)g(oe[Ie+0],Ve[ze+0],Je[ct+0],mt,Ot),g(oe[Ie+1],Ve[ze+0],Je[ct+0],mt,Ot+O),Ie+=2,++ze,++ct,Ot+=2*O;1&zt&&g(oe[Ie+0],Ve[ze+0],Je[ct+0],mt,Ot)}}function LA(a,g,O){return O==0?a==0?g==0?6:5:g==0?4:0:O}function qc(a,g,O,oe,Ie){switch(a>>>30){case 3:uA(g,O,oe,Ie,0);break;case 2:Ms(g,O,oe,Ie);break;case 1:Ul(g,O,oe,Ie)}}function uu(a,g){var O,oe,Ie=g.M,Ve=g.Nb,ze=a.oc,Je=a.pc+40,ct=a.oc,mt=a.pc+584,Ot=a.oc,zt=a.pc+600;for(O=0;16>O;++O)ze[Je+32*O-1]=129;for(O=0;8>O;++O)ct[mt+32*O-1]=129,Ot[zt+32*O-1]=129;for(0<Ie?ze[Je-1-32]=ct[mt-1-32]=Ot[zt-1-32]=129:(F(ze,Je-32-1,127,21),F(ct,mt-32-1,127,9),F(Ot,zt-32-1,127,9)),oe=0;oe<a.za;++oe){var dr=g.ya[g.aa+oe];if(0<oe){for(O=-1;16>O;++O)b(ze,Je+32*O-4,ze,Je+32*O+12,4);for(O=-1;8>O;++O)b(ct,mt+32*O-4,ct,mt+32*O+4,4),b(Ot,zt+32*O-4,Ot,zt+32*O+4,4)}var Wt=a.Gd,kr=a.Hd+oe,Dr=dr.ad,Gt=dr.Hc;if(0<Ie&&(b(ze,Je-32,Wt[kr].y,0,16),b(ct,mt-32,Wt[kr].f,0,8),b(Ot,zt-32,Wt[kr].ea,0,8)),dr.Za){var tr=ze,Tr=Je-32+16;for(0<Ie&&(oe>=a.za-1?F(tr,Tr,Wt[kr].y[15],4):b(tr,Tr,Wt[kr+1].y,0,4)),O=0;4>O;O++)tr[Tr+128+O]=tr[Tr+256+O]=tr[Tr+384+O]=tr[Tr+0+O];for(O=0;16>O;++O,Gt<<=2)tr=ze,Tr=Je+tt[O],Vs[dr.Ob[O]](tr,Tr),qc(Gt,Dr,16*+O,tr,Tr)}else if(tr=LA(oe,Ie,dr.Ob[0]),_c[tr](ze,Je),Gt!=0)for(O=0;16>O;++O,Gt<<=2)qc(Gt,Dr,16*+O,ze,Je+tt[O]);for(O=dr.Gc,tr=LA(oe,Ie,dr.Dd),nA[tr](ct,mt),nA[tr](Ot,zt),Gt=Dr,tr=ct,Tr=mt,255&(dr=O>>0)&&(170&dr?eu(Gt,256,tr,Tr):Cc(Gt,256,tr,Tr)),dr=Ot,Gt=zt,255&(O>>=8)&&(170&O?eu(Dr,320,dr,Gt):Cc(Dr,320,dr,Gt)),Ie<a.Ub-1&&(b(Wt[kr].y,0,ze,Je+480,16),b(Wt[kr].f,0,ct,mt+224,8),b(Wt[kr].ea,0,Ot,zt+224,8)),O=8*Ve*a.B,Wt=a.sa,kr=a.ta+16*oe+16*Ve*a.R,Dr=a.qa,dr=a.ra+8*oe+O,Gt=a.Ha,tr=a.Ia+8*oe+O,O=0;16>O;++O)b(Wt,kr+O*a.R,ze,Je+32*O,16);for(O=0;8>O;++O)b(Dr,dr+O*a.B,ct,mt+32*O,8),b(Gt,tr+O*a.B,Ot,zt+32*O,8)}}function XA(a,g,O,oe,Ie,Ve,ze,Je,ct){var mt=[0],Ot=[0],zt=0,dr=ct!=null?ct.kd:0,Wt=ct!=null?ct:new Ku;if(a==null||12>O)return 7;Wt.data=a,Wt.w=g,Wt.ha=O,g=[g],O=[O],Wt.gb=[Wt.gb];e:{var kr=g,Dr=O,Gt=Wt.gb;if(o(a!=null),o(Dr!=null),o(Gt!=null),Gt[0]=0,12<=Dr[0]&&!l(a,kr[0],"RIFF")){if(l(a,kr[0]+8,"WEBP")){Gt=3;break e}var tr=Sr(a,kr[0]+4);if(12>tr||4294967286<tr){Gt=3;break e}if(dr&&tr>Dr[0]-8){Gt=7;break e}Gt[0]=tr,kr[0]+=12,Dr[0]-=12}Gt=0}if(Gt!=0)return Gt;for(tr=0<Wt.gb[0],O=O[0];;){e:{var Tr=a;Dr=g,Gt=O;var sn=mt,un=Ot,li=kr=[0];if((ii=zt=[zt])[0]=0,8>Gt[0])Gt=7;else{if(!l(Tr,Dr[0],"VP8X")){if(Sr(Tr,Dr[0]+4)!=10){Gt=3;break e}if(18>Gt[0]){Gt=7;break e}var Gn=Sr(Tr,Dr[0]+8),Zi=1+gr(Tr,Dr[0]+12);if(2147483648<=Zi*(Tr=1+gr(Tr,Dr[0]+15))){Gt=3;break e}li!=null&&(li[0]=Gn),sn!=null&&(sn[0]=Zi),un!=null&&(un[0]=Tr),Dr[0]+=18,Gt[0]-=18,ii[0]=1}Gt=0}}if(zt=zt[0],kr=kr[0],Gt!=0)return Gt;if(Dr=!!(2&kr),!tr&&zt)return 3;if(Ve!=null&&(Ve[0]=!!(16&kr)),ze!=null&&(ze[0]=Dr),Je!=null&&(Je[0]=0),ze=mt[0],kr=Ot[0],zt&&Dr&&ct==null){Gt=0;break}if(4>O){Gt=7;break}if(tr&&zt||!tr&&!zt&&!l(a,g[0],"ALPH")){O=[O],Wt.na=[Wt.na],Wt.P=[Wt.P],Wt.Sa=[Wt.Sa];e:{Gn=a,Gt=g,tr=O;var ii=Wt.gb;sn=Wt.na,un=Wt.P,li=Wt.Sa,Zi=22,o(Gn!=null),o(tr!=null),Tr=Gt[0];var Ha=tr[0];for(o(sn!=null),o(li!=null),sn[0]=null,un[0]=null,li[0]=0;;){if(Gt[0]=Tr,tr[0]=Ha,8>Ha){Gt=7;break e}var qa=Sr(Gn,Tr+4);if(4294967286<qa){Gt=3;break e}var Ea=8+qa+1&-2;if(Zi+=Ea,0<ii&&Zi>ii){Gt=3;break e}if(!l(Gn,Tr,"VP8 ")||!l(Gn,Tr,"VP8L")){Gt=0;break e}if(Ha[0]<Ea){Gt=7;break e}l(Gn,Tr,"ALPH")||(sn[0]=Gn,un[0]=Tr+8,li[0]=qa),Tr+=Ea,Ha-=Ea}}if(O=O[0],Wt.na=Wt.na[0],Wt.P=Wt.P[0],Wt.Sa=Wt.Sa[0],Gt!=0)break}O=[O],Wt.Ja=[Wt.Ja],Wt.xa=[Wt.xa];e:if(ii=a,Gt=g,tr=O,sn=Wt.gb[0],un=Wt.Ja,li=Wt.xa,Gn=Gt[0],Tr=!l(ii,Gn,"VP8 "),Zi=!l(ii,Gn,"VP8L"),o(ii!=null),o(tr!=null),o(un!=null),o(li!=null),8>tr[0])Gt=7;else{if(Tr||Zi){if(ii=Sr(ii,Gn+4),12<=sn&&ii>sn-12){Gt=3;break e}if(dr&&ii>tr[0]-8){Gt=7;break e}un[0]=ii,Gt[0]+=8,tr[0]-=8,li[0]=Zi}else li[0]=5<=tr[0]&&ii[Gn+0]==47&&!(ii[Gn+4]>>5),un[0]=tr[0];Gt=0}if(O=O[0],Wt.Ja=Wt.Ja[0],Wt.xa=Wt.xa[0],g=g[0],Gt!=0)break;if(4294967286<Wt.Ja)return 3;if(Je==null||Dr||(Je[0]=Wt.xa?2:1),ze=[ze],kr=[kr],Wt.xa){if(5>O){Gt=7;break}Je=ze,dr=kr,Dr=Ve,a==null||5>O?a=0:5<=O&&a[g+0]==47&&!(a[g+4]>>5)?(tr=[0],ii=[0],sn=[0],He(un=new Ae,a,g,O),ki(un,tr,ii,sn)?(Je!=null&&(Je[0]=tr[0]),dr!=null&&(dr[0]=ii[0]),Dr!=null&&(Dr[0]=sn[0]),a=1):a=0):a=0}else{if(10>O){Gt=7;break}Je=kr,a==null||10>O||!vs(a,g+3,O-3)?a=0:(dr=a[g+0]|a[g+1]<<8|a[g+2]<<16,Dr=16383&(a[g+7]<<8|a[g+6]),a=16383&(a[g+9]<<8|a[g+8]),1&dr||3<(dr>>1&7)||!(dr>>4&1)||dr>>5>=Wt.Ja||!Dr||!a?a=0:(ze&&(ze[0]=Dr),Je&&(Je[0]=a),a=1))}if(!a||(ze=ze[0],kr=kr[0],zt&&(mt[0]!=ze||Ot[0]!=kr)))return 3;ct!=null&&(ct[0]=Wt,ct.offset=g-ct.w,o(4294967286>g-ct.w),o(ct.offset==ct.ha-O));break}return Gt==0||Gt==7&&zt&&ct==null?(Ve!=null&&(Ve[0]|=Wt.na!=null&&0<Wt.na.length),oe!=null&&(oe[0]=ze),Ie!=null&&(Ie[0]=kr),0):Gt}function kA(a,g,O){var oe=g.width,Ie=g.height,Ve=0,ze=0,Je=oe,ct=Ie;if(g.Da=a!=null&&0<a.Da,g.Da&&(Je=a.cd,ct=a.bd,Ve=a.v,ze=a.j,11>O||(Ve&=-2,ze&=-2),0>Ve||0>ze||0>=Je||0>=ct||Ve+Je>oe||ze+ct>Ie))return 0;if(g.v=Ve,g.j=ze,g.va=Ve+Je,g.o=ze+ct,g.U=Je,g.T=ct,g.da=a!=null&&0<a.da,g.da){if(!_n(Je,ct,O=[a.ib],Ve=[a.hb]))return 0;g.ib=O[0],g.hb=Ve[0]}return g.ob=a!=null&&a.ob,g.Kb=a==null||!a.Sd,g.da&&(g.ob=g.ib<3*oe/4&&g.hb<3*Ie/4,g.Kb=0),1}function JA(a){if(a==null)return 2;if(11>a.S){var g=a.f.RGBA;g.fb+=(a.height-1)*g.A,g.A=-g.A}else g=a.f.kb,a=a.height,g.O+=(a-1)*g.fa,g.fa=-g.fa,g.N+=(a-1>>1)*g.Ab,g.Ab=-g.Ab,g.W+=(a-1>>1)*g.Db,g.Db=-g.Db,g.F!=null&&(g.J+=(a-1)*g.lb,g.lb=-g.lb);return 0}function du(a,g,O,oe){if(oe==null||0>=a||0>=g)return 2;if(O!=null){if(O.Da){var Ie=O.cd,Ve=O.bd,ze=-2&O.v,Je=-2&O.j;if(0>ze||0>Je||0>=Ie||0>=Ve||ze+Ie>a||Je+Ve>g)return 2;a=Ie,g=Ve}if(O.da){if(!_n(a,g,Ie=[O.ib],Ve=[O.hb]))return 2;a=Ie[0],g=Ve[0]}}oe.width=a,oe.height=g;e:{var ct=oe.width,mt=oe.height;if(a=oe.S,0>=ct||0>=mt||!(a>=ko&&13>a))a=2;else{if(0>=oe.Rd&&oe.sd==null){ze=Ve=Ie=g=0;var Ot=(Je=ct*mr[a])*mt;if(11>a||(Ve=(mt+1)/2*(g=(ct+1)/2),a==12&&(ze=(Ie=ct)*mt)),(mt=C(Ot+2*Ve+ze))==null){a=1;break e}oe.sd=mt,11>a?((ct=oe.f.RGBA).eb=mt,ct.fb=0,ct.A=Je,ct.size=Ot):((ct=oe.f.kb).y=mt,ct.O=0,ct.fa=Je,ct.Fd=Ot,ct.f=mt,ct.N=0+Ot,ct.Ab=g,ct.Cd=Ve,ct.ea=mt,ct.W=0+Ot+Ve,ct.Db=g,ct.Ed=Ve,a==12&&(ct.F=mt,ct.J=0+Ot+2*Ve),ct.Tc=ze,ct.lb=Ie)}if(g=1,Ie=oe.S,Ve=oe.width,ze=oe.height,Ie>=ko&&13>Ie)if(11>Ie)a=oe.f.RGBA,g&=(Je=Math.abs(a.A))*(ze-1)+Ve<=a.size,g&=Je>=Ve*mr[Ie],g&=a.eb!=null;else{a=oe.f.kb,Je=(Ve+1)/2,Ot=(ze+1)/2,ct=Math.abs(a.fa),mt=Math.abs(a.Ab);var zt=Math.abs(a.Db),dr=Math.abs(a.lb),Wt=dr*(ze-1)+Ve;g&=ct*(ze-1)+Ve<=a.Fd,g&=mt*(Ot-1)+Je<=a.Cd,g=(g&=zt*(Ot-1)+Je<=a.Ed)&ct>=Ve&mt>=Je&zt>=Je,g&=a.y!=null,g&=a.f!=null,g&=a.ea!=null,Ie==12&&(g&=dr>=Ve,g&=Wt<=a.Tc,g&=a.F!=null)}else g=0;a=g?0:2}}return a!=0||O!=null&&O.fd&&(a=JA(oe)),a}var pl=64,Qc=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],YA=24,rs=32,Kc=8,tl=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Nr("Predictor0","PredictorAdd0"),Vt.Predictor0=function(){return 4278190080},Vt.Predictor1=function(a){return a},Vt.Predictor2=function(a,g,O){return g[O+0]},Vt.Predictor3=function(a,g,O){return g[O+1]},Vt.Predictor4=function(a,g,O){return g[O-1]},Vt.Predictor5=function(a,g,O){return br(br(a,g[O+1]),g[O+0])},Vt.Predictor6=function(a,g,O){return br(a,g[O-1])},Vt.Predictor7=function(a,g,O){return br(a,g[O+0])},Vt.Predictor8=function(a,g,O){return br(g[O-1],g[O+0])},Vt.Predictor9=function(a,g,O){return br(g[O+0],g[O+1])},Vt.Predictor10=function(a,g,O){return br(br(a,g[O-1]),br(g[O+0],g[O+1]))},Vt.Predictor11=function(a,g,O){var oe=g[O+0];return 0>=Xn(oe>>24&255,a>>24&255,(g=g[O-1])>>24&255)+Xn(oe>>16&255,a>>16&255,g>>16&255)+Xn(oe>>8&255,a>>8&255,g>>8&255)+Xn(255&oe,255&a,255&g)?oe:a},Vt.Predictor12=function(a,g,O){var oe=g[O+0];return(Zr((a>>24&255)+(oe>>24&255)-((g=g[O-1])>>24&255))<<24|Zr((a>>16&255)+(oe>>16&255)-(g>>16&255))<<16|Zr((a>>8&255)+(oe>>8&255)-(g>>8&255))<<8|Zr((255&a)+(255&oe)-(255&g)))>>>0},Vt.Predictor13=function(a,g,O){var oe=g[O-1];return(Cn((a=br(a,g[O+0]))>>24&255,oe>>24&255)<<24|Cn(a>>16&255,oe>>16&255)<<16|Cn(a>>8&255,oe>>8&255)<<8|Cn(a>>0&255,oe>>0&255))>>>0};var eA=Vt.PredictorAdd0;Vt.PredictorAdd1=Vn,Nr("Predictor2","PredictorAdd2"),Nr("Predictor3","PredictorAdd3"),Nr("Predictor4","PredictorAdd4"),Nr("Predictor5","PredictorAdd5"),Nr("Predictor6","PredictorAdd6"),Nr("Predictor7","PredictorAdd7"),Nr("Predictor8","PredictorAdd8"),Nr("Predictor9","PredictorAdd9"),Nr("Predictor10","PredictorAdd10"),Nr("Predictor11","PredictorAdd11"),Nr("Predictor12","PredictorAdd12"),Nr("Predictor13","PredictorAdd13");var rl=Vt.PredictorAdd2;Li("ColorIndexInverseTransform","MapARGB","32b",function(a){return a>>8&255},function(a){return a}),Li("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(a){return a},function(a){return a>>8&255});var Jl,ss=Vt.ColorIndexInverseTransform,Tl=Vt.MapARGB,lc=Vt.VP8LColorIndexInverseTransformAlpha,wc=Vt.MapAlpha,cc=Vt.VP8LPredictorsAdd=[];cc.length=16,(Vt.VP8LPredictors=[]).length=16,(Vt.VP8LPredictorsAdd_C=[]).length=16,(Vt.VP8LPredictors_C=[]).length=16;var Yl,cl,nl,xc,tA,rA,qA,uA,Ms,eu,Ul,Cc,fu,rd,ju,dA,Bc,Ac,uc,ql,fA,hA,hu,Sc,Ec,Jo,Ho,Us,Rs=C(511),Ra=C(2041),hi=C(225),ec=C(767),tu=0,Qs=Ra,zu=hi,ya=ec,Ao=Rs,ko=0,$u=1,pu=2,nd=3,DA=4,mu=5,ru=6,Zu=7,Al=8,gu=9,id=10,yn=[2,3,7],jo=[3,3,11],bd=[280,256,256,256,40],gf=[0,1,1,1,0],Zd=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],wd=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Vu=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ad=8,xd=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],vu=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ml=null,nu=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Ls=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],yu=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Cd=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],pA=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],gl=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],od=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],_c=[],Vs=[],nA=[],vf=1,bu=2,PA=[],dc=[];Xr("UpsampleRgbLinePair",co,3),Xr("UpsampleBgrLinePair",aa,3),Xr("UpsampleRgbaLinePair",Bl,4),Xr("UpsampleBgraLinePair",el,4),Xr("UpsampleArgbLinePair",hs,4),Xr("UpsampleRgba4444LinePair",Ts,2),Xr("UpsampleRgb565LinePair",bs,2);var yf=Vt.UpsampleRgbLinePair,Wu=Vt.UpsampleBgrLinePair,wu=Vt.UpsampleRgbaLinePair,sd=Vt.UpsampleBgraLinePair,NA=Vt.UpsampleArgbLinePair,mA=Vt.UpsampleRgba4444LinePair,bf=Vt.UpsampleRgb565LinePair,Gu=16,xu=1<<Gu-1,Cu=-227,Bd=482,Vd=6,wf=(256<<Vd)-1,Wd=0,m=C(256),u=C(256),y=C(256),v=C(256),re=C(Bd-Cu),Fe=C(Bd-Cu);Xl("YuvToRgbRow",co,3),Xl("YuvToBgrRow",aa,3),Xl("YuvToRgbaRow",Bl,4),Xl("YuvToBgraRow",el,4),Xl("YuvToArgbRow",hs,4),Xl("YuvToRgba4444Row",Ts,2),Xl("YuvToRgb565Row",bs,2);var tt=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],xt=[0,2,8],Bt=[8,7,6,4,4,2,2,2,1,1,1,1],nr=1;this.WebPDecodeRGBA=function(a,g,O,oe,Ie){var Ve=$u,ze=new oc,Je=new fi;ze.ba=Je,Je.S=Ve,Je.width=[Je.width],Je.height=[Je.height];var ct=Je.width,mt=Je.height,Ot=new mi;if(Ot==null||a==null)var zt=2;else o(Ot!=null),zt=XA(a,g,O,Ot.width,Ot.height,Ot.Pd,Ot.Qd,Ot.format,null);if(zt!=0?ct=0:(ct!=null&&(ct[0]=Ot.width[0]),mt!=null&&(mt[0]=Ot.height[0]),ct=1),ct){Je.width=Je.width[0],Je.height=Je.height[0],oe!=null&&(oe[0]=Je.width),Ie!=null&&(Ie[0]=Je.height);e:{if(oe=new Xc,(Ie=new Ku).data=a,Ie.w=g,Ie.ha=O,Ie.kd=1,g=[0],o(Ie!=null),((a=XA(Ie.data,Ie.w,Ie.ha,null,null,null,g,null,Ie))==0||a==7)&&g[0]&&(a=4),(g=a)==0){if(o(ze!=null),oe.data=Ie.data,oe.w=Ie.w+Ie.offset,oe.ha=Ie.ha-Ie.offset,oe.put=qi,oe.ac=Xi,oe.bc=Mo,oe.ma=ze,Ie.xa){if((a=bo())==null){ze=1;break e}if(function(dr,Wt){var kr=[0],Dr=[0],Gt=[0];t:for(;;){if(dr==null)return 0;if(Wt==null)return dr.a=2,0;if(dr.l=Wt,dr.a=0,He(dr.m,Wt.data,Wt.w,Wt.ha),!ki(dr.m,kr,Dr,Gt)){dr.a=3;break t}if(dr.xb=bu,Wt.width=kr[0],Wt.height=Dr[0],!Ko(kr[0],Dr[0],1,dr,null))break t;return 1}return o(dr.a!=0),0}(a,oe)){if(oe=(g=du(oe.width,oe.height,ze.Oa,ze.ba))==0){t:{oe=a;r:for(;;){if(oe==null){oe=0;break t}if(o(oe.s.yc!=null),o(oe.s.Ya!=null),o(0<oe.s.Wb),o((O=oe.l)!=null),o((Ie=O.ma)!=null),oe.xb!=0){if(oe.ca=Ie.ba,oe.tb=Ie.tb,o(oe.ca!=null),!kA(Ie.Oa,O,nd)){oe.a=2;break r}if(!Bs(oe,O.width)||O.da)break r;if((O.da||Gi(oe.ca.S))&&yr(),11>oe.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),oe.ca.f.kb.F!=null&&yr()),oe.Pb&&0<oe.s.ua&&oe.s.vb.X==null&&!dn(oe.s.vb,oe.s.Wa.Xa)){oe.a=1;break r}oe.xb=0}if(!Va(oe,oe.V,oe.Ba,oe.c,oe.i,O.o,ga))break r;Ie.Dc=oe.Ma,oe=1;break t}o(oe.a!=0),oe=0}oe=!oe}oe&&(g=a.a)}else g=a.a}else{if((a=new Ca)==null){ze=1;break e}if(a.Fa=Ie.na,a.P=Ie.P,a.qc=Ie.Sa,go(a,oe)){if((g=du(oe.width,oe.height,ze.Oa,ze.ba))==0){if(a.Aa=0,O=ze.Oa,o((Ie=a)!=null),O!=null){if(0<(ct=0>(ct=O.Md)?0:100<ct?255:255*ct/100)){for(mt=Ot=0;4>mt;++mt)12>(zt=Ie.pb[mt]).lc&&(zt.ia=ct*Bt[0>zt.lc?0:zt.lc]>>3),Ot|=zt.ia;Ot&&(alert("todo:VP8InitRandom"),Ie.ia=1)}Ie.Ga=O.Id,100<Ie.Ga?Ie.Ga=100:0>Ie.Ga&&(Ie.Ga=0)}Es(a,oe)||(g=a.a)}}else g=a.a}g==0&&ze.Oa!=null&&ze.Oa.fd&&(g=JA(ze.ba))}ze=g}Ve=ze!=0?null:11>Ve?Je.f.RGBA.eb:Je.f.kb.y}else Ve=null;return Ve};var mr=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function _e(Vt,Lr){for(var Jr="",vt=0;vt<4;vt++)Jr+=String.fromCharCode(Vt[Lr++]);return Jr}function $e(Vt,Lr){return(Vt[Lr+0]<<0|Vt[Lr+1]<<8|Vt[Lr+2]<<16)>>>0}function Ze(Vt,Lr){return(Vt[Lr+0]<<0|Vt[Lr+1]<<8|Vt[Lr+2]<<16|Vt[Lr+3]<<24)>>>0}new ae;var st=[0],be=[0],Lt=[],wt=new ae,kt=c,pt=function(Vt,Lr){var Jr={},vt=0,Ct=!1,rr=0,U=0;if(Jr.frames=[],!function(Re,Ye,et,bt){for(var _t=0;_t<bt;_t++)if(Re[Ye+_t]!=et.charCodeAt(_t))return!0;return!1}(Vt,Lr,"RIFF",4)){for(Ze(Vt,Lr+=4),Lr+=8;Lr<Vt.length;){var ee=_e(Vt,Lr),Se=Ze(Vt,Lr+=4);Lr+=4;var Te=Se+(1&Se);switch(ee){case"VP8 ":case"VP8L":Jr.frames[vt]===void 0&&(Jr.frames[vt]={}),(ht=Jr.frames[vt]).src_off=Ct?U:Lr-8,ht.src_size=rr+Se+8,vt++,Ct&&(Ct=!1,rr=0,U=0);break;case"VP8X":(ht=Jr.header={}).feature_flags=Vt[Lr];var He=Lr+4;ht.canvas_width=1+$e(Vt,He),He+=3,ht.canvas_height=1+$e(Vt,He),He+=3;break;case"ALPH":Ct=!0,rr=Te+8,U=Lr-8;break;case"ANIM":(ht=Jr.header).bgcolor=Ze(Vt,Lr),He=Lr+4,ht.loop_count=(St=Vt)[(Ae=He)+0]<<0|St[Ae+1]<<8,He+=2;break;case"ANMF":var Xe,ht;(ht=Jr.frames[vt]={}).offset_x=2*$e(Vt,Lr),Lr+=3,ht.offset_y=2*$e(Vt,Lr),Lr+=3,ht.width=1+$e(Vt,Lr),Lr+=3,ht.height=1+$e(Vt,Lr),Lr+=3,ht.duration=$e(Vt,Lr),Lr+=3,Xe=Vt[Lr++],ht.dispose=1&Xe,ht.blend=Xe>>1&1}ee!="ANMF"&&(Lr+=Te)}var St,Ae;return Jr}}(kt,0);pt.response=kt,pt.rgbaoutput=!0,pt.dataurl=!1;var Dt=pt.header?pt.header:null,ar=pt.frames?pt.frames:null;if(Dt){Dt.loop_counter=Dt.loop_count,st=[Dt.canvas_height],be=[Dt.canvas_width];for(var wr=0;wr<ar.length&&ar[wr].blend!=0;wr++);}var Qr=ar[0],hn=wt.WebPDecodeRGBA(kt,Qr.src_off,Qr.src_size,be,st);Qr.rgba=hn,Qr.imgwidth=be[0],Qr.imgheight=st[0];for(var _r=0;_r<be[0]*st[0]*4;_r++)Lt[_r]=hn[_r];return this.width=be,this.height=st,this.data=Lt,this}(function(c){var o=function(){return typeof xi=="function"},l=function(st,be,Lt,wt){var kt=4,pt=T;switch(wt){case c.image_compression.FAST:kt=1,pt=C;break;case c.image_compression.MEDIUM:kt=6,pt=Z;break;case c.image_compression.SLOW:kt=9,pt=ae}st=b(st,be,Lt,pt);var Dt=xi(st,{level:kt});return c.__addimage__.arrayBufferToBinaryString(Dt)},b=function(st,be,Lt,wt){for(var kt,pt,Dt,ar=st.length/be,wr=new Uint8Array(st.length+ar),Qr=$e(),hn=0;hn<ar;hn+=1){if(Dt=hn*be,kt=st.subarray(Dt,Dt+be),wt)wr.set(wt(kt,Lt,pt),Dt+hn);else{for(var _r,Vt=Qr.length,Lr=[];_r<Vt;_r+=1)Lr[_r]=Qr[_r](kt,Lt,pt);var Jr=Ze(Lr.concat());wr.set(Lr[Jr],Dt+hn)}pt=kt}return wr},F=function(st){var be=Array.apply([],st);return be.unshift(0),be},C=function(st,be){var Lt,wt=[],kt=st.length;wt[0]=1;for(var pt=0;pt<kt;pt+=1)Lt=st[pt-be]||0,wt[pt+1]=st[pt]-Lt+256&255;return wt},T=function(st,be,Lt){var wt,kt=[],pt=st.length;kt[0]=2;for(var Dt=0;Dt<pt;Dt+=1)wt=Lt&&Lt[Dt]||0,kt[Dt+1]=st[Dt]-wt+256&255;return kt},Z=function(st,be,Lt){var wt,kt,pt=[],Dt=st.length;pt[0]=3;for(var ar=0;ar<Dt;ar+=1)wt=st[ar-be]||0,kt=Lt&&Lt[ar]||0,pt[ar+1]=st[ar]+256-(wt+kt>>>1)&255;return pt},ae=function(st,be,Lt){var wt,kt,pt,Dt,ar=[],wr=st.length;ar[0]=4;for(var Qr=0;Qr<wr;Qr+=1)wt=st[Qr-be]||0,kt=Lt&&Lt[Qr]||0,pt=Lt&&Lt[Qr-be]||0,Dt=_e(wt,kt,pt),ar[Qr+1]=st[Qr]-Dt+256&255;return ar},_e=function(st,be,Lt){if(st===be&&be===Lt)return st;var wt=Math.abs(be-Lt),kt=Math.abs(st-Lt),pt=Math.abs(st+be-Lt-Lt);return wt<=kt&&wt<=pt?st:kt<=pt?be:Lt},$e=function(){return[F,C,T,Z,ae]},Ze=function(st){var be=st.map(function(Lt){return Lt.reduce(function(wt,kt){return wt+Math.abs(kt)},0)});return be.indexOf(Math.min.apply(null,be))};c.processPNG=function(st,be,Lt,wt){var kt,pt,Dt,ar,wr,Qr,hn,_r,Vt,Lr,Jr,vt,Ct,rr,U,ee=this.decode.FLATE_DECODE,Se="";if(this.__addimage__.isArrayBuffer(st)&&(st=new Uint8Array(st)),this.__addimage__.isArrayBufferView(st)){if(st=(Dt=new cA(st)).imgData,pt=Dt.bits,kt=Dt.colorSpace,wr=Dt.colors,[4,6].indexOf(Dt.colorType)!==-1){if(Dt.bits===8){Vt=(_r=Dt.pixelBitlength==32?new Uint32Array(Dt.decodePixels().buffer):Dt.pixelBitlength==16?new Uint16Array(Dt.decodePixels().buffer):new Uint8Array(Dt.decodePixels().buffer)).length,Jr=new Uint8Array(Vt*Dt.colors),Lr=new Uint8Array(Vt);var Te,He=Dt.pixelBitlength-Dt.bits;for(rr=0,U=0;rr<Vt;rr++){for(Ct=_r[rr],Te=0;Te<He;)Jr[U++]=Ct>>>Te&255,Te+=Dt.bits;Lr[rr]=Ct>>>Te&255}}if(Dt.bits===16){Vt=(_r=new Uint32Array(Dt.decodePixels().buffer)).length,Jr=new Uint8Array(Vt*(32/Dt.pixelBitlength)*Dt.colors),Lr=new Uint8Array(Vt*(32/Dt.pixelBitlength)),vt=Dt.colors>1,rr=0,U=0;for(var Xe=0;rr<Vt;)Ct=_r[rr++],Jr[U++]=Ct>>>0&255,vt&&(Jr[U++]=Ct>>>16&255,Ct=_r[rr++],Jr[U++]=Ct>>>0&255),Lr[Xe++]=Ct>>>16&255;pt=8}wt!==c.image_compression.NONE&&o()?(st=l(Jr,Dt.width*Dt.colors,Dt.colors,wt),hn=l(Lr,Dt.width,1,wt)):(st=Jr,hn=Lr,ee=void 0)}if(Dt.colorType===3&&(kt=this.color_spaces.INDEXED,Qr=Dt.palette,Dt.transparency.indexed)){var ht=Dt.transparency.indexed,St=0;for(rr=0,Vt=ht.length;rr<Vt;++rr)St+=ht[rr];if((St/=255)===Vt-1&&ht.indexOf(0)!==-1)ar=[ht.indexOf(0)];else if(St!==Vt){for(_r=Dt.decodePixels(),Lr=new Uint8Array(_r.length),rr=0,Vt=_r.length;rr<Vt;rr++)Lr[rr]=ht[_r[rr]];hn=l(Lr,Dt.width,1)}}var Ae=function(Re){var Ye;switch(Re){case c.image_compression.FAST:Ye=11;break;case c.image_compression.MEDIUM:Ye=13;break;case c.image_compression.SLOW:Ye=14;break;default:Ye=12}return Ye}(wt);return ee===this.decode.FLATE_DECODE&&(Se="/Predictor "+Ae+" "),Se+="/Colors "+wr+" /BitsPerComponent "+pt+" /Columns "+Dt.width,(this.__addimage__.isArrayBuffer(st)||this.__addimage__.isArrayBufferView(st))&&(st=this.__addimage__.arrayBufferToBinaryString(st)),(hn&&this.__addimage__.isArrayBuffer(hn)||this.__addimage__.isArrayBufferView(hn))&&(hn=this.__addimage__.arrayBufferToBinaryString(hn)),{alias:Lt,data:st,index:be,filter:ee,decodeParameters:Se,transparency:ar,palette:Qr,sMask:hn,predictor:Ae,width:Dt.width,height:Dt.height,bitsPerComponent:pt,colorSpace:kt}}}})(Ai.API),function(c){c.processGIF89A=function(o,l,b,F){var C=new hc(o),T=C.width,Z=C.height,ae=[];C.decodeAndBlitFrameRGBA(0,ae);var _e={data:ae,width:T,height:Z},$e=new Pl(100).encode(_e,100);return c.processJPEG.call(this,$e,l,b,F)},c.processGIF87A=c.processGIF89A}(Ai.API),Ys.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var c=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(c);for(var o=0;o<c;o++){var l=this.datav.getUint8(this.pos++,!0),b=this.datav.getUint8(this.pos++,!0),F=this.datav.getUint8(this.pos++,!0),C=this.datav.getUint8(this.pos++,!0);this.palette[o]={red:F,green:b,blue:l,quad:C}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Ys.prototype.parseBGR=function(){this.pos=this.offset;try{var c="bit"+this.bitPP,o=this.width*this.height*4;this.data=new Uint8Array(o),this[c]()}catch(l){Ln.log("bit decode error:"+l)}},Ys.prototype.bit1=function(){var c,o=Math.ceil(this.width/8),l=o%4;for(c=this.height-1;c>=0;c--){for(var b=this.bottom_up?c:this.height-1-c,F=0;F<o;F++)for(var C=this.datav.getUint8(this.pos++,!0),T=b*this.width*4+8*F*4,Z=0;Z<8&&8*F+Z<this.width;Z++){var ae=this.palette[C>>7-Z&1];this.data[T+4*Z]=ae.blue,this.data[T+4*Z+1]=ae.green,this.data[T+4*Z+2]=ae.red,this.data[T+4*Z+3]=255}l!==0&&(this.pos+=4-l)}},Ys.prototype.bit4=function(){for(var c=Math.ceil(this.width/2),o=c%4,l=this.height-1;l>=0;l--){for(var b=this.bottom_up?l:this.height-1-l,F=0;F<c;F++){var C=this.datav.getUint8(this.pos++,!0),T=b*this.width*4+2*F*4,Z=C>>4,ae=15&C,_e=this.palette[Z];if(this.data[T]=_e.blue,this.data[T+1]=_e.green,this.data[T+2]=_e.red,this.data[T+3]=255,2*F+1>=this.width)break;_e=this.palette[ae],this.data[T+4]=_e.blue,this.data[T+4+1]=_e.green,this.data[T+4+2]=_e.red,this.data[T+4+3]=255}o!==0&&(this.pos+=4-o)}},Ys.prototype.bit8=function(){for(var c=this.width%4,o=this.height-1;o>=0;o--){for(var l=this.bottom_up?o:this.height-1-o,b=0;b<this.width;b++){var F=this.datav.getUint8(this.pos++,!0),C=l*this.width*4+4*b;if(F<this.palette.length){var T=this.palette[F];this.data[C]=T.red,this.data[C+1]=T.green,this.data[C+2]=T.blue,this.data[C+3]=255}else this.data[C]=255,this.data[C+1]=255,this.data[C+2]=255,this.data[C+3]=255}c!==0&&(this.pos+=4-c)}},Ys.prototype.bit15=function(){for(var c=this.width%3,o=parseInt("11111",2),l=this.height-1;l>=0;l--){for(var b=this.bottom_up?l:this.height-1-l,F=0;F<this.width;F++){var C=this.datav.getUint16(this.pos,!0);this.pos+=2;var T=(C&o)/o*255|0,Z=(C>>5&o)/o*255|0,ae=(C>>10&o)/o*255|0,_e=C>>15?255:0,$e=b*this.width*4+4*F;this.data[$e]=ae,this.data[$e+1]=Z,this.data[$e+2]=T,this.data[$e+3]=_e}this.pos+=c}},Ys.prototype.bit16=function(){for(var c=this.width%3,o=parseInt("11111",2),l=parseInt("111111",2),b=this.height-1;b>=0;b--){for(var F=this.bottom_up?b:this.height-1-b,C=0;C<this.width;C++){var T=this.datav.getUint16(this.pos,!0);this.pos+=2;var Z=(T&o)/o*255|0,ae=(T>>5&l)/l*255|0,_e=(T>>11)/o*255|0,$e=F*this.width*4+4*C;this.data[$e]=_e,this.data[$e+1]=ae,this.data[$e+2]=Z,this.data[$e+3]=255}this.pos+=c}},Ys.prototype.bit24=function(){for(var c=this.height-1;c>=0;c--){for(var o=this.bottom_up?c:this.height-1-c,l=0;l<this.width;l++){var b=this.datav.getUint8(this.pos++,!0),F=this.datav.getUint8(this.pos++,!0),C=this.datav.getUint8(this.pos++,!0),T=o*this.width*4+4*l;this.data[T]=C,this.data[T+1]=F,this.data[T+2]=b,this.data[T+3]=255}this.pos+=this.width%4}},Ys.prototype.bit32=function(){for(var c=this.height-1;c>=0;c--)for(var o=this.bottom_up?c:this.height-1-c,l=0;l<this.width;l++){var b=this.datav.getUint8(this.pos++,!0),F=this.datav.getUint8(this.pos++,!0),C=this.datav.getUint8(this.pos++,!0),T=this.datav.getUint8(this.pos++,!0),Z=o*this.width*4+4*l;this.data[Z]=C,this.data[Z+1]=F,this.data[Z+2]=b,this.data[Z+3]=T}},Ys.prototype.getData=function(){return this.data},function(c){c.processBMP=function(o,l,b,F){var C=new Ys(o,!1),T=C.width,Z=C.height,ae={data:C.getData(),width:T,height:Z},_e=new Pl(100).encode(ae,100);return c.processJPEG.call(this,_e,l,b,F)}}(Ai.API),ol.prototype.getData=function(){return this.data},function(c){c.processWEBP=function(o,l,b,F){var C=new ol(o),T=C.width,Z=C.height,ae={data:C.getData(),width:T,height:Z},_e=new Pl(100).encode(ae,100);return c.processJPEG.call(this,_e,l,b,F)}}(Ai.API),Ai.API.processRGBA=function(c,o,l){for(var b=c.data,F=b.length,C=new Uint8Array(F/4*3),T=new Uint8Array(F/4),Z=0,ae=0,_e=0;_e<F;_e+=4){var $e=b[_e],Ze=b[_e+1],st=b[_e+2],be=b[_e+3];C[Z++]=$e,C[Z++]=Ze,C[Z++]=st,T[ae++]=be}var Lt=this.__addimage__.arrayBufferToBinaryString(C);return{alpha:this.__addimage__.arrayBufferToBinaryString(T),data:Lt,index:o,alias:l,colorSpace:"DeviceRGB",bitsPerComponent:8,width:c.width,height:c.height}},Ai.API.setLanguage=function(c){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[c]!==void 0&&(this.internal.languageSettings.languageCode=c,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},al=Ai.API,Wc=al.getCharWidthsArray=function(c,o){var l,b,F=(o=o||{}).font||this.internal.getFont(),C=o.fontSize||this.internal.getFontSize(),T=o.charSpace||this.internal.getCharSpace(),Z=o.widths?o.widths:F.metadata.Unicode.widths,ae=Z.fof?Z.fof:1,_e=o.kerning?o.kerning:F.metadata.Unicode.kerning,$e=_e.fof?_e.fof:1,Ze=o.doKerning!==!1,st=0,be=c.length,Lt=0,wt=Z[0]||ae,kt=[];for(l=0;l<be;l++)b=c.charCodeAt(l),typeof F.metadata.widthOfString=="function"?kt.push((F.metadata.widthOfGlyph(F.metadata.characterToGlyph(b))+T*(1e3/C)||0)/1e3):(st=Ze&&(0,ge.Z)(_e[b])==="object"&&!isNaN(parseInt(_e[b][Lt],10))?_e[b][Lt]/$e:0,kt.push((Z[b]||wt)/ae+st)),Lt=b;return kt},Dl=al.getStringUnitWidth=function(c,o){var l=(o=o||{}).fontSize||this.internal.getFontSize(),b=o.font||this.internal.getFont(),F=o.charSpace||this.internal.getCharSpace();return al.processArabic&&(c=al.processArabic(c)),typeof b.metadata.widthOfString=="function"?b.metadata.widthOfString(c,l,F)/l:Wc.apply(this,arguments).reduce(function(C,T){return C+T},0)},Js=function(c,o,l,b){for(var F=[],C=0,T=c.length,Z=0;C!==T&&Z+o[C]<l;)Z+=o[C],C++;F.push(c.slice(0,C));var ae=C;for(Z=0;C!==T;)Z+o[C]>b&&(F.push(c.slice(ae,C)),Z=0,ae=C),Z+=o[C],C++;return ae!==C&&F.push(c.slice(ae,C)),F},lA=function(c,o,l){l||(l={});var b,F,C,T,Z,ae,_e,$e=[],Ze=[$e],st=l.textIndent||0,be=0,Lt=0,wt=c.split(" "),kt=Wc.apply(this,[" ",l])[0];if(ae=l.lineIndent===-1?wt[0].length+2:l.lineIndent||0){var pt=Array(ae).join(" "),Dt=[];wt.map(function(wr){(wr=wr.split(/\s*\n/)).length>1?Dt=Dt.concat(wr.map(function(Qr,hn){return(hn&&Qr.length?`
`:"")+Qr})):Dt.push(wr[0])}),wt=Dt,ae=Dl.apply(this,[pt,l])}for(C=0,T=wt.length;C<T;C++){var ar=0;if(b=wt[C],ae&&b[0]==`
`&&(b=b.substr(1),ar=1),st+be+(Lt=(F=Wc.apply(this,[b,l])).reduce(function(wr,Qr){return wr+Qr},0))>o||ar){if(Lt>o){for(Z=Js.apply(this,[b,F,o-(st+be),o]),$e.push(Z.shift()),$e=[Z.pop()];Z.length;)Ze.push([Z.shift()]);Lt=F.slice(b.length-($e[0]?$e[0].length:0)).reduce(function(wr,Qr){return wr+Qr},0)}else $e=[b];Ze.push($e),st=Lt+ae,be=kt}else $e.push(b),st+=be+Lt,be=kt}return _e=ae?function(wr,Qr){return(Qr?pt:"")+wr.join(" ")}:function(wr){return wr.join(" ")},Ze.map(_e)},al.splitTextToSize=function(c,o,l){var b,F=(l=l||{}).fontSize||this.internal.getFontSize(),C=function($e){if($e.widths&&$e.kerning)return{widths:$e.widths,kerning:$e.kerning};var Ze=this.internal.getFont($e.fontName,$e.fontStyle);return Ze.metadata.Unicode?{widths:Ze.metadata.Unicode.widths||{0:1},kerning:Ze.metadata.Unicode.kerning||{}}:{font:Ze.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,l);b=Array.isArray(c)?c:String(c).split(/\r?\n/);var T=1*this.internal.scaleFactor*o/F;C.textIndent=l.textIndent?1*l.textIndent*this.internal.scaleFactor/F:0,C.lineIndent=l.lineIndent;var Z,ae,_e=[];for(Z=0,ae=b.length;Z<ae;Z++)_e=_e.concat(lA.apply(this,[b[Z],T,C]));return _e},function(c){c.__fontmetrics__=c.__fontmetrics__||{};for(var o="klmnopqrstuvwxyz",l={},b={},F=0;F<o.length;F++)l[o[F]]="0123456789abcdef"[F],b["0123456789abcdef"[F]]=o[F];var C=function(Ze){return"0x"+parseInt(Ze,10).toString(16)},T=c.__fontmetrics__.compress=function(Ze){var st,be,Lt,wt,kt=["{"];for(var pt in Ze){if(st=Ze[pt],isNaN(parseInt(pt,10))?be="'"+pt+"'":(pt=parseInt(pt,10),be=(be=C(pt).slice(2)).slice(0,-1)+b[be.slice(-1)]),typeof st=="number")st<0?(Lt=C(st).slice(3),wt="-"):(Lt=C(st).slice(2),wt=""),Lt=wt+Lt.slice(0,-1)+b[Lt.slice(-1)];else{if((0,ge.Z)(st)!=="object")throw new Error("Don't know what to do with value type "+(0,ge.Z)(st)+".");Lt=T(st)}kt.push(be+Lt)}return kt.push("}"),kt.join("")},Z=c.__fontmetrics__.uncompress=function(Ze){if(typeof Ze!="string")throw new Error("Invalid argument passed to uncompress.");for(var st,be,Lt,wt,kt={},pt=1,Dt=kt,ar=[],wr="",Qr="",hn=Ze.length-1,_r=1;_r<hn;_r+=1)(wt=Ze[_r])=="'"?st?(Lt=st.join(""),st=void 0):st=[]:st?st.push(wt):wt=="{"?(ar.push([Dt,Lt]),Dt={},Lt=void 0):wt=="}"?((be=ar.pop())[0][be[1]]=Dt,Lt=void 0,Dt=be[0]):wt=="-"?pt=-1:Lt===void 0?l.hasOwnProperty(wt)?(wr+=l[wt],Lt=parseInt(wr,16)*pt,pt=1,wr=""):wr+=wt:l.hasOwnProperty(wt)?(Qr+=l[wt],Dt[Lt]=parseInt(Qr,16)*pt,pt=1,Lt=void 0,Qr=""):Qr+=wt;return kt},ae={codePages:["WinAnsiEncoding"],WinAnsiEncoding:Z("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},_e={Unicode:{Courier:ae,"Courier-Bold":ae,"Courier-BoldOblique":ae,"Courier-Oblique":ae,Helvetica:ae,"Helvetica-Bold":ae,"Helvetica-BoldOblique":ae,"Helvetica-Oblique":ae,"Times-Roman":ae,"Times-Bold":ae,"Times-BoldItalic":ae,"Times-Italic":ae}},$e={Unicode:{"Courier-Oblique":Z("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":Z("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":Z("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:Z("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":Z("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":Z("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:Z("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:Z("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":Z("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:Z("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":Z("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":Z("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":Z("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":Z("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};c.events.push(["addFont",function(Ze){var st=Ze.font,be=$e.Unicode[st.postScriptName];be&&(st.metadata.Unicode={},st.metadata.Unicode.widths=be.widths,st.metadata.Unicode.kerning=be.kerning);var Lt=_e.Unicode[st.postScriptName];Lt&&(st.metadata.Unicode.encoding=Lt,st.encoding=Lt.codePages[0])}])}(Ai.API),function(c){var o=function(l){for(var b=l.length,F=new Uint8Array(b),C=0;C<b;C++)F[C]=l.charCodeAt(C);return F};c.API.events.push(["addFont",function(l){var b=void 0,F=l.font,C=l.instance;if(!F.isStandardFont){if(C===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+F.postScriptName+"').");if(typeof(b=C.existsFileInVFS(F.postScriptName)===!1?C.loadFile(F.postScriptName):C.getFileFromVFS(F.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+F.postScriptName+"').");(function(T,Z){Z=/^\x00\x01\x00\x00/.test(Z)?o(Z):o(Jn(Z)),T.metadata=c.API.TTFFont.open(Z),T.metadata.Unicode=T.metadata.Unicode||{encoding:{},kerning:{},widths:[]},T.metadata.glyIdsUsed=[0]})(F,b)}}])}(Ai),function(c){function o(){return(an.canvg?Promise.resolve(an.canvg):x.e(3754).then(x.bind(x,63754))).catch(function(l){return Promise.reject(new Error("Could not load canvg: "+l))}).then(function(l){return l.default?l.default:l})}Ai.API.addSvgAsImage=function(l,b,F,C,T,Z,ae,_e){if(isNaN(b)||isNaN(F))throw Ln.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(C)||isNaN(T))throw Ln.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var $e=document.createElement("canvas");$e.width=C,$e.height=T;var Ze=$e.getContext("2d");Ze.fillStyle="#fff",Ze.fillRect(0,0,$e.width,$e.height);var st={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},be=this;return o().then(function(Lt){return Lt.fromString(Ze,l,st)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(Lt){return Lt.render(st)}).then(function(){be.addImage($e.toDataURL("image/jpeg",1),b,F,C,T,ae,_e)})}}(),Ai.API.putTotalPages=function(c){var o,l=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(o=new RegExp(c,"g"),l=this.internal.getNumberOfPages()):(o=new RegExp(this.pdfEscape16(c,this.internal.getFont()),"g"),l=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var b=1;b<=this.internal.getNumberOfPages();b++)for(var F=0;F<this.internal.pages[b].length;F++)this.internal.pages[b][F]=this.internal.pages[b][F].replace(o,l);return this},Ai.API.viewerPreferences=function(c,o){var l;c=c||{},o=o||!1;var b,F,C,T={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},Z=Object.keys(T),ae=[],_e=0,$e=0,Ze=0;function st(Lt,wt){var kt,pt=!1;for(kt=0;kt<Lt.length;kt+=1)Lt[kt]===wt&&(pt=!0);return pt}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(T)),this.internal.viewerpreferences.isSubscribed=!1),l=this.internal.viewerpreferences.configuration,c==="reset"||o===!0){var be=Z.length;for(Ze=0;Ze<be;Ze+=1)l[Z[Ze]].value=l[Z[Ze]].defaultValue,l[Z[Ze]].explicitSet=!1}if((0,ge.Z)(c)==="object"){for(F in c)if(C=c[F],st(Z,F)&&C!==void 0){if(l[F].type==="boolean"&&typeof C=="boolean")l[F].value=C;else if(l[F].type==="name"&&st(l[F].valueSet,C))l[F].value=C;else if(l[F].type==="integer"&&Number.isInteger(C))l[F].value=C;else if(l[F].type==="array"){for(_e=0;_e<C.length;_e+=1)if(b=!0,C[_e].length===1&&typeof C[_e][0]=="number")ae.push(String(C[_e]-1));else if(C[_e].length>1){for($e=0;$e<C[_e].length;$e+=1)typeof C[_e][$e]!="number"&&(b=!1);b===!0&&ae.push([C[_e][0]-1,C[_e][1]-1].join(" "))}l[F].value="["+ae.join(" ")+"]"}else l[F].value=l[F].defaultValue;l[F].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var Lt,wt=[];for(Lt in l)l[Lt].explicitSet===!0&&(l[Lt].type==="name"?wt.push("/"+Lt+" /"+l[Lt].value):wt.push("/"+Lt+" "+l[Lt].value));wt.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+wt.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=l,this},function(c){var o=function(){var b='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',F=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),C=unescape(encodeURIComponent(b)),T=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),Z=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),ae=unescape(encodeURIComponent("</x:xmpmeta>")),_e=C.length+T.length+Z.length+F.length+ae.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+_e+" >>"),this.internal.write("stream"),this.internal.write(F+C+T+Z+ae),this.internal.write("endstream"),this.internal.write("endobj")},l=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};c.addMetadata=function(b,F){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:b,namespaceuri:F||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",l),this.internal.events.subscribe("postPutResources",o)),this}}(Ai.API),function(c){var o=c.API,l=o.pdfEscape16=function(C,T){for(var Z,ae=T.metadata.Unicode.widths,_e=["","0","00","000","0000"],$e=[""],Ze=0,st=C.length;Ze<st;++Ze){if(Z=T.metadata.characterToGlyph(C.charCodeAt(Ze)),T.metadata.glyIdsUsed.push(Z),T.metadata.toUnicode[Z]=C.charCodeAt(Ze),ae.indexOf(Z)==-1&&(ae.push(Z),ae.push([parseInt(T.metadata.widthOfGlyph(Z),10)])),Z=="0")return $e.join("");Z=Z.toString(16),$e.push(_e[4-Z.length],Z)}return $e.join("")},b=function(C){var T,Z,ae,_e,$e,Ze,st;for($e=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
/Registry (Adobe)
/Ordering (UCS)
/Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,ae=[],Ze=0,st=(Z=Object.keys(C).sort(function(be,Lt){return be-Lt})).length;Ze<st;Ze++)T=Z[Ze],ae.length>=100&&($e+=`
`+ae.length+` beginbfchar
`+ae.join(`
`)+`
endbfchar`,ae=[]),C[T]!==void 0&&C[T]!==null&&typeof C[T].toString=="function"&&(_e=("0000"+C[T].toString(16)).slice(-4),T=("0000"+(+T).toString(16)).slice(-4),ae.push("<"+T+"><"+_e+">"));return ae.length&&($e+=`
`+ae.length+` beginbfchar
`+ae.join(`
`)+`
endbfchar
`),$e+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};o.events.push(["putFont",function(C){(function(T){var Z=T.font,ae=T.out,_e=T.newObject,$e=T.putStream;if(Z.metadata instanceof c.API.TTFFont&&Z.encoding==="Identity-H"){for(var Ze=Z.metadata.Unicode.widths,st=Z.metadata.subset.encode(Z.metadata.glyIdsUsed,1),be="",Lt=0;Lt<st.length;Lt++)be+=String.fromCharCode(st[Lt]);var wt=_e();$e({data:be,addLength1:!0,objectId:wt}),ae("endobj");var kt=_e();$e({data:b(Z.metadata.toUnicode),addLength1:!0,objectId:kt}),ae("endobj");var pt=_e();ae("<<"),ae("/Type /FontDescriptor"),ae("/FontName /"+Ji(Z.fontName)),ae("/FontFile2 "+wt+" 0 R"),ae("/FontBBox "+c.API.PDFObject.convert(Z.metadata.bbox)),ae("/Flags "+Z.metadata.flags),ae("/StemV "+Z.metadata.stemV),ae("/ItalicAngle "+Z.metadata.italicAngle),ae("/Ascent "+Z.metadata.ascender),ae("/Descent "+Z.metadata.decender),ae("/CapHeight "+Z.metadata.capHeight),ae(">>"),ae("endobj");var Dt=_e();ae("<<"),ae("/Type /Font"),ae("/BaseFont /"+Ji(Z.fontName)),ae("/FontDescriptor "+pt+" 0 R"),ae("/W "+c.API.PDFObject.convert(Ze)),ae("/CIDToGIDMap /Identity"),ae("/DW 1000"),ae("/Subtype /CIDFontType2"),ae("/CIDSystemInfo"),ae("<<"),ae("/Supplement 0"),ae("/Registry (Adobe)"),ae("/Ordering ("+Z.encoding+")"),ae(">>"),ae(">>"),ae("endobj"),Z.objectNumber=_e(),ae("<<"),ae("/Type /Font"),ae("/Subtype /Type0"),ae("/ToUnicode "+kt+" 0 R"),ae("/BaseFont /"+Ji(Z.fontName)),ae("/Encoding /"+Z.encoding),ae("/DescendantFonts ["+Dt+" 0 R]"),ae(">>"),ae("endobj"),Z.isAlreadyPutted=!0}})(C)}]),o.events.push(["putFont",function(C){(function(T){var Z=T.font,ae=T.out,_e=T.newObject,$e=T.putStream;if(Z.metadata instanceof c.API.TTFFont&&Z.encoding==="WinAnsiEncoding"){for(var Ze=Z.metadata.rawData,st="",be=0;be<Ze.length;be++)st+=String.fromCharCode(Ze[be]);var Lt=_e();$e({data:st,addLength1:!0,objectId:Lt}),ae("endobj");var wt=_e();$e({data:b(Z.metadata.toUnicode),addLength1:!0,objectId:wt}),ae("endobj");var kt=_e();ae("<<"),ae("/Descent "+Z.metadata.decender),ae("/CapHeight "+Z.metadata.capHeight),ae("/StemV "+Z.metadata.stemV),ae("/Type /FontDescriptor"),ae("/FontFile2 "+Lt+" 0 R"),ae("/Flags 96"),ae("/FontBBox "+c.API.PDFObject.convert(Z.metadata.bbox)),ae("/FontName /"+Ji(Z.fontName)),ae("/ItalicAngle "+Z.metadata.italicAngle),ae("/Ascent "+Z.metadata.ascender),ae(">>"),ae("endobj"),Z.objectNumber=_e();for(var pt=0;pt<Z.metadata.hmtx.widths.length;pt++)Z.metadata.hmtx.widths[pt]=parseInt(Z.metadata.hmtx.widths[pt]*(1e3/Z.metadata.head.unitsPerEm));ae("<</Subtype/TrueType/Type/Font/ToUnicode "+wt+" 0 R/BaseFont/"+Ji(Z.fontName)+"/FontDescriptor "+kt+" 0 R/Encoding/"+Z.encoding+" /FirstChar 29 /LastChar 255 /Widths "+c.API.PDFObject.convert(Z.metadata.hmtx.widths)+">>"),ae("endobj"),Z.isAlreadyPutted=!0}})(C)}]);var F=function(C){var T,Z=C.text||"",ae=C.x,_e=C.y,$e=C.options||{},Ze=C.mutex||{},st=Ze.pdfEscape,be=Ze.activeFontKey,Lt=Ze.fonts,wt=be,kt="",pt=0,Dt="",ar=Lt[wt].encoding;if(Lt[wt].encoding!=="Identity-H")return{text:Z,x:ae,y:_e,options:$e,mutex:Ze};for(Dt=Z,wt=be,Array.isArray(Z)&&(Dt=Z[0]),pt=0;pt<Dt.length;pt+=1)Lt[wt].metadata.hasOwnProperty("cmap")&&(T=Lt[wt].metadata.cmap.unicode.codeMap[Dt[pt].charCodeAt(0)]),T||Dt[pt].charCodeAt(0)<256&&Lt[wt].metadata.hasOwnProperty("Unicode")?kt+=Dt[pt]:kt+="";var wr="";return parseInt(wt.slice(1))<14||ar==="WinAnsiEncoding"?wr=st(kt,wt).split("").map(function(Qr){return Qr.charCodeAt(0).toString(16)}).join(""):ar==="Identity-H"&&(wr=l(kt,Lt[wt])),Ze.isHex=!0,{text:wr,x:ae,y:_e,options:$e,mutex:Ze}};o.events.push(["postProcessText",function(C){var T=C.text||"",Z=[],ae={text:T,x:C.x,y:C.y,options:C.options,mutex:C.mutex};if(Array.isArray(T)){var _e=0;for(_e=0;_e<T.length;_e+=1)Array.isArray(T[_e])&&T[_e].length===3?Z.push([F(Object.assign({},ae,{text:T[_e][0]})).text,T[_e][1],T[_e][2]]):Z.push(F(Object.assign({},ae,{text:T[_e]})).text);C.text=Z}else C.text=F(Object.assign({},ae,{text:T})).text}])}(Ai),function(c){var o=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};c.existsFileInVFS=function(l){return o.call(this),this.internal.vFS[l]!==void 0},c.addFileToVFS=function(l,b){return o.call(this),this.internal.vFS[l]=b,this},c.getFileFromVFS=function(l){return o.call(this),this.internal.vFS[l]!==void 0?this.internal.vFS[l]:null}}(Ai.API),function(c){c.__bidiEngine__=c.prototype.__bidiEngine__=function(b){var F,C,T,Z,ae,_e,$e,Ze=o,st=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],be=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],Lt={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},wt={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},kt=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],pt=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),Dt=!1,ar=0;this.__bidiEngine__={};var wr=function(vt){var Ct=vt.charCodeAt(),rr=Ct>>8,U=wt[rr];return U!==void 0?Ze[256*U+(255&Ct)]:rr===252||rr===253?"AL":pt.test(rr)?"L":rr===8?"R":"N"},Qr=function(vt){for(var Ct,rr=0;rr<vt.length;rr++){if((Ct=wr(vt.charAt(rr)))==="L")return!1;if(Ct==="R")return!0}return!1},hn=function(vt,Ct,rr,U){var ee,Se,Te,He,Xe=Ct[U];switch(Xe){case"L":case"R":Dt=!1;break;case"N":case"AN":break;case"EN":Dt&&(Xe="AN");break;case"AL":Dt=!0,Xe="R";break;case"WS":Xe="N";break;case"CS":U<1||U+1>=Ct.length||(ee=rr[U-1])!=="EN"&&ee!=="AN"||(Se=Ct[U+1])!=="EN"&&Se!=="AN"?Xe="N":Dt&&(Se="AN"),Xe=Se===ee?Se:"N";break;case"ES":Xe=(ee=U>0?rr[U-1]:"B")==="EN"&&U+1<Ct.length&&Ct[U+1]==="EN"?"EN":"N";break;case"ET":if(U>0&&rr[U-1]==="EN"){Xe="EN";break}if(Dt){Xe="N";break}for(Te=U+1,He=Ct.length;Te<He&&Ct[Te]==="ET";)Te++;Xe=Te<He&&Ct[Te]==="EN"?"EN":"N";break;case"NSM":if(T&&!Z){for(He=Ct.length,Te=U+1;Te<He&&Ct[Te]==="NSM";)Te++;if(Te<He){var ht=vt[U],St=ht>=1425&&ht<=2303||ht===64286;if(ee=Ct[Te],St&&(ee==="R"||ee==="AL")){Xe="R";break}}}Xe=U<1||(ee=Ct[U-1])==="B"?"N":rr[U-1];break;case"B":Dt=!1,F=!0,Xe=ar;break;case"S":C=!0,Xe="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Dt=!1;break;case"BN":Xe="N"}return Xe},_r=function(vt,Ct,rr){var U=vt.split("");return rr&&Vt(U,rr,{hiLevel:ar}),U.reverse(),Ct&&Ct.reverse(),U.join("")},Vt=function(vt,Ct,rr){var U,ee,Se,Te,He,Xe=-1,ht=vt.length,St=0,Ae=[],Re=ar?be:st,Ye=[];for(Dt=!1,F=!1,C=!1,ee=0;ee<ht;ee++)Ye[ee]=wr(vt[ee]);for(Se=0;Se<ht;Se++){if(He=St,Ae[Se]=hn(vt,Ye,Ae,Se),U=240&(St=Re[He][Lt[Ae[Se]]]),St&=15,Ct[Se]=Te=Re[St][5],U>0)if(U===16){for(ee=Xe;ee<Se;ee++)Ct[ee]=1;Xe=-1}else Xe=-1;if(Re[St][6])Xe===-1&&(Xe=Se);else if(Xe>-1){for(ee=Xe;ee<Se;ee++)Ct[ee]=Te;Xe=-1}Ye[Se]==="B"&&(Ct[Se]=0),rr.hiLevel|=Te}C&&function(et,bt,_t){for(var It=0;It<_t;It++)if(et[It]==="S"){bt[It]=ar;for(var Rt=It-1;Rt>=0&&et[Rt]==="WS";Rt--)bt[Rt]=ar}}(Ye,Ct,ht)},Lr=function(vt,Ct,rr,U,ee){if(!(ee.hiLevel<vt)){if(vt===1&&ar===1&&!F)return Ct.reverse(),void(rr&&rr.reverse());for(var Se,Te,He,Xe,ht=Ct.length,St=0;St<ht;){if(U[St]>=vt){for(He=St+1;He<ht&&U[He]>=vt;)He++;for(Xe=St,Te=He-1;Xe<Te;Xe++,Te--)Se=Ct[Xe],Ct[Xe]=Ct[Te],Ct[Te]=Se,rr&&(Se=rr[Xe],rr[Xe]=rr[Te],rr[Te]=Se);St=He}St++}}},Jr=function(vt,Ct,rr){var U=vt.split(""),ee={hiLevel:ar};return rr||(rr=[]),Vt(U,rr,ee),function(Se,Te,He){if(He.hiLevel!==0&&$e)for(var Xe,ht=0;ht<Se.length;ht++)Te[ht]===1&&(Xe=kt.indexOf(Se[ht]))>=0&&(Se[ht]=kt[Xe+1])}(U,rr,ee),Lr(2,U,Ct,rr,ee),Lr(1,U,Ct,rr,ee),U.join("")};return this.__bidiEngine__.doBidiReorder=function(vt,Ct,rr){if(function(ee,Se){if(Se)for(var Te=0;Te<ee.length;Te++)Se[Te]=Te;Z===void 0&&(Z=Qr(ee)),_e===void 0&&(_e=Qr(ee))}(vt,Ct),T||!ae||_e)if(T&&ae&&Z^_e)ar=Z?1:0,vt=_r(vt,Ct,rr);else if(!T&&ae&&_e)ar=Z?1:0,vt=Jr(vt,Ct,rr),vt=_r(vt,Ct);else if(!T||Z||ae||_e){if(T&&!ae&&Z^_e)vt=_r(vt,Ct),Z?(ar=0,vt=Jr(vt,Ct,rr)):(ar=1,vt=Jr(vt,Ct,rr),vt=_r(vt,Ct));else if(T&&Z&&!ae&&_e)ar=1,vt=Jr(vt,Ct,rr),vt=_r(vt,Ct);else if(!T&&!ae&&Z^_e){var U=$e;Z?(ar=1,vt=Jr(vt,Ct,rr),ar=0,$e=!1,vt=Jr(vt,Ct,rr),$e=U):(ar=0,vt=Jr(vt,Ct,rr),vt=_r(vt,Ct),ar=1,$e=!1,vt=Jr(vt,Ct,rr),$e=U,vt=_r(vt,Ct))}}else ar=0,vt=Jr(vt,Ct,rr);else ar=Z?1:0,vt=Jr(vt,Ct,rr);return vt},this.__bidiEngine__.setOptions=function(vt){vt&&(T=vt.isInputVisual,ae=vt.isOutputVisual,Z=vt.isInputRtl,_e=vt.isOutputRtl,$e=vt.isSymmetricSwapping)},this.__bidiEngine__.setOptions(b),this.__bidiEngine__};var o=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],l=new c.__bidiEngine__({isInputVisual:!0});c.API.events.push(["postProcessText",function(b){var F=b.text;b.x,b.y;var C=b.options||{};b.mutex,C.lang;var T=[];if(C.isInputVisual=typeof C.isInputVisual!="boolean"||C.isInputVisual,l.setOptions(C),Object.prototype.toString.call(F)==="[object Array]"){var Z=0;for(T=[],Z=0;Z<F.length;Z+=1)Object.prototype.toString.call(F[Z])==="[object Array]"?T.push([l.doBidiReorder(F[Z][0]),F[Z][1],F[Z][2]]):T.push([l.doBidiReorder(F[Z])]);b.text=T}else b.text=l.doBidiReorder(F);l.setOptions({isInputVisual:!0})}])}(Ai),Ai.API.TTFFont=function(){function c(o){var l;if(this.rawData=o,l=this.contents=new Ta(o),this.contents.pos=4,l.readString(4)==="ttcf")throw new Error("TTCF not supported.");l.pos=0,this.parse(),this.subset=new cu(this),this.registerTTF()}return c.open=function(o){return new c(o)},c.prototype.parse=function(){return this.directory=new po(this.contents),this.head=new Ps(this),this.name=new mc(this),this.cmap=new yl(this),this.toUnicode={},this.hhea=new Gc(this),this.maxp=new Uu(this),this.hmtx=new KA(this),this.post=new CA(this),this.os2=new xA(this),this.loca=new Ru(this),this.glyf=new td(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},c.prototype.registerTTF=function(){var o,l,b,F,C;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var T,Z,ae,_e;for(_e=[],T=0,Z=(ae=this.bbox).length;T<Z;T++)o=ae[T],_e.push(Math.round(o*this.scaleFactor));return _e}.call(this),this.stemV=0,this.post.exists?(b=255&(F=this.post.italic_angle),32768&(l=F>>16)&&(l=-(1+(65535^l))),this.italicAngle=+(l+"."+b)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(C=this.familyClass)===1||C===2||C===3||C===4||C===5||C===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},c.prototype.characterToGlyph=function(o){var l;return((l=this.cmap.unicode)!=null?l.codeMap[o]:void 0)||0},c.prototype.widthOfGlyph=function(o){var l;return l=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(o).advance*l},c.prototype.widthOfString=function(o,l,b){var F,C,T,Z;for(T=0,C=0,Z=(o=""+o).length;0<=Z?C<Z:C>Z;C=0<=Z?++C:--C)F=o.charCodeAt(C),T+=this.widthOfGlyph(this.characterToGlyph(F))+b*(1e3/l)||0;return T*(l/1e3)},c.prototype.lineHeight=function(o,l){var b;return l==null&&(l=!1),b=l?this.lineGap:0,(this.ascender+b-this.decender)/1e3*o},c}();var sl,Ta=function(){function c(o){this.data=o!=null?o:[],this.pos=0,this.length=this.data.length}return c.prototype.readByte=function(){return this.data[this.pos++]},c.prototype.writeByte=function(o){return this.data[this.pos++]=o},c.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},c.prototype.writeUInt32=function(o){return this.writeByte(o>>>24&255),this.writeByte(o>>16&255),this.writeByte(o>>8&255),this.writeByte(255&o)},c.prototype.readInt32=function(){var o;return(o=this.readUInt32())>=2147483648?o-4294967296:o},c.prototype.writeInt32=function(o){return o<0&&(o+=4294967296),this.writeUInt32(o)},c.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},c.prototype.writeUInt16=function(o){return this.writeByte(o>>8&255),this.writeByte(255&o)},c.prototype.readInt16=function(){var o;return(o=this.readUInt16())>=32768?o-65536:o},c.prototype.writeInt16=function(o){return o<0&&(o+=65536),this.writeUInt16(o)},c.prototype.readString=function(o){var l,b;for(b=[],l=0;0<=o?l<o:l>o;l=0<=o?++l:--l)b[l]=String.fromCharCode(this.readByte());return b.join("")},c.prototype.writeString=function(o){var l,b,F;for(F=[],l=0,b=o.length;0<=b?l<b:l>b;l=0<=b?++l:--l)F.push(this.writeByte(o.charCodeAt(l)));return F},c.prototype.readShort=function(){return this.readInt16()},c.prototype.writeShort=function(o){return this.writeInt16(o)},c.prototype.readLongLong=function(){var o,l,b,F,C,T,Z,ae;return o=this.readByte(),l=this.readByte(),b=this.readByte(),F=this.readByte(),C=this.readByte(),T=this.readByte(),Z=this.readByte(),ae=this.readByte(),128&o?-1*(72057594037927940*(255^o)+281474976710656*(255^l)+1099511627776*(255^b)+4294967296*(255^F)+16777216*(255^C)+65536*(255^T)+256*(255^Z)+(255^ae)+1):72057594037927940*o+281474976710656*l+1099511627776*b+4294967296*F+16777216*C+65536*T+256*Z+ae},c.prototype.writeLongLong=function(o){var l,b;return l=Math.floor(o/4294967296),b=4294967295&o,this.writeByte(l>>24&255),this.writeByte(l>>16&255),this.writeByte(l>>8&255),this.writeByte(255&l),this.writeByte(b>>24&255),this.writeByte(b>>16&255),this.writeByte(b>>8&255),this.writeByte(255&b)},c.prototype.readInt=function(){return this.readInt32()},c.prototype.writeInt=function(o){return this.writeInt32(o)},c.prototype.read=function(o){var l,b;for(l=[],b=0;0<=o?b<o:b>o;b=0<=o?++b:--b)l.push(this.readByte());return l},c.prototype.write=function(o){var l,b,F,C;for(C=[],b=0,F=o.length;b<F;b++)l=o[b],C.push(this.writeByte(l));return C},c}(),po=function(){var c;function o(l){var b,F,C;for(this.scalarType=l.readInt(),this.tableCount=l.readShort(),this.searchRange=l.readShort(),this.entrySelector=l.readShort(),this.rangeShift=l.readShort(),this.tables={},F=0,C=this.tableCount;0<=C?F<C:F>C;F=0<=C?++F:--F)b={tag:l.readString(4),checksum:l.readInt(),offset:l.readInt(),length:l.readInt()},this.tables[b.tag]=b}return o.prototype.encode=function(l){var b,F,C,T,Z,ae,_e,$e,Ze,st,be,Lt,wt;for(wt in be=Object.keys(l).length,ae=Math.log(2),Ze=16*Math.floor(Math.log(be)/ae),T=Math.floor(Ze/ae),$e=16*be-Ze,(F=new Ta).writeInt(this.scalarType),F.writeShort(be),F.writeShort(Ze),F.writeShort(T),F.writeShort($e),C=16*be,_e=F.pos+C,Z=null,Lt=[],l)for(st=l[wt],F.writeString(wt),F.writeInt(c(st)),F.writeInt(_e),F.writeInt(st.length),Lt=Lt.concat(st),wt==="head"&&(Z=_e),_e+=st.length;_e%4;)Lt.push(0),_e++;return F.write(Lt),b=2981146554-c(F.data),F.pos=Z+8,F.writeUInt32(b),F.data},c=function(l){var b,F,C,T;for(l=ed.call(l);l.length%4;)l.push(0);for(C=new Ta(l),F=0,b=0,T=l.length;b<T;b=b+=4)F+=C.readUInt32();return 4294967295&F},o}(),mo={}.hasOwnProperty,Go=function(c,o){for(var l in o)mo.call(o,l)&&(c[l]=o[l]);function b(){this.constructor=c}return b.prototype=o.prototype,c.prototype=new b,c.__super__=o.prototype,c};sl=function(){function c(o){var l;this.file=o,l=this.file.directory.tables[this.tag],this.exists=!!l,l&&(this.offset=l.offset,this.length=l.length,this.parse(this.file.contents))}return c.prototype.parse=function(){},c.prototype.encode=function(){},c.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},c}();var Ps=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="head",o.prototype.parse=function(l){return l.pos=this.offset,this.version=l.readInt(),this.revision=l.readInt(),this.checkSumAdjustment=l.readInt(),this.magicNumber=l.readInt(),this.flags=l.readShort(),this.unitsPerEm=l.readShort(),this.created=l.readLongLong(),this.modified=l.readLongLong(),this.xMin=l.readShort(),this.yMin=l.readShort(),this.xMax=l.readShort(),this.yMax=l.readShort(),this.macStyle=l.readShort(),this.lowestRecPPEM=l.readShort(),this.fontDirectionHint=l.readShort(),this.indexToLocFormat=l.readShort(),this.glyphDataFormat=l.readShort()},o.prototype.encode=function(l){var b;return(b=new Ta).writeInt(this.version),b.writeInt(this.revision),b.writeInt(this.checkSumAdjustment),b.writeInt(this.magicNumber),b.writeShort(this.flags),b.writeShort(this.unitsPerEm),b.writeLongLong(this.created),b.writeLongLong(this.modified),b.writeShort(this.xMin),b.writeShort(this.yMin),b.writeShort(this.xMax),b.writeShort(this.yMax),b.writeShort(this.macStyle),b.writeShort(this.lowestRecPPEM),b.writeShort(this.fontDirectionHint),b.writeShort(l),b.writeShort(this.glyphDataFormat),b.data},o}(),kc=function(){function c(o,l){var b,F,C,T,Z,ae,_e,$e,Ze,st,be,Lt,wt,kt,pt,Dt,ar;switch(this.platformID=o.readUInt16(),this.encodingID=o.readShort(),this.offset=l+o.readInt(),Ze=o.pos,o.pos=this.offset,this.format=o.readUInt16(),this.length=o.readUInt16(),this.language=o.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(ae=0;ae<256;++ae)this.codeMap[ae]=o.readByte();break;case 4:for(be=o.readUInt16(),st=be/2,o.pos+=6,C=function(){var wr,Qr;for(Qr=[],ae=wr=0;0<=st?wr<st:wr>st;ae=0<=st?++wr:--wr)Qr.push(o.readUInt16());return Qr}(),o.pos+=2,wt=function(){var wr,Qr;for(Qr=[],ae=wr=0;0<=st?wr<st:wr>st;ae=0<=st?++wr:--wr)Qr.push(o.readUInt16());return Qr}(),_e=function(){var wr,Qr;for(Qr=[],ae=wr=0;0<=st?wr<st:wr>st;ae=0<=st?++wr:--wr)Qr.push(o.readUInt16());return Qr}(),$e=function(){var wr,Qr;for(Qr=[],ae=wr=0;0<=st?wr<st:wr>st;ae=0<=st?++wr:--wr)Qr.push(o.readUInt16());return Qr}(),F=(this.length-o.pos+this.offset)/2,Z=function(){var wr,Qr;for(Qr=[],ae=wr=0;0<=F?wr<F:wr>F;ae=0<=F?++wr:--wr)Qr.push(o.readUInt16());return Qr}(),ae=pt=0,ar=C.length;pt<ar;ae=++pt)for(kt=C[ae],b=Dt=Lt=wt[ae];Lt<=kt?Dt<=kt:Dt>=kt;b=Lt<=kt?++Dt:--Dt)$e[ae]===0?T=b+_e[ae]:(T=Z[$e[ae]/2+(b-Lt)-(st-ae)]||0)!==0&&(T+=_e[ae]),this.codeMap[b]=65535&T}o.pos=Ze}return c.encode=function(o,l){var b,F,C,T,Z,ae,_e,$e,Ze,st,be,Lt,wt,kt,pt,Dt,ar,wr,Qr,hn,_r,Vt,Lr,Jr,vt,Ct,rr,U,ee,Se,Te,He,Xe,ht,St,Ae,Re,Ye,et,bt,_t,It,Rt,ur,fr,gr;switch(U=new Ta,T=Object.keys(o).sort(function(Sr,dn){return Sr-dn}),l){case"macroman":for(wt=0,kt=function(){var Sr=[];for(Lt=0;Lt<256;++Lt)Sr.push(0);return Sr}(),Dt={0:0},C={},ee=0,Xe=T.length;ee<Xe;ee++)Dt[Rt=o[F=T[ee]]]==null&&(Dt[Rt]=++wt),C[F]={old:o[F],new:Dt[o[F]]},kt[F]=Dt[o[F]];return U.writeUInt16(1),U.writeUInt16(0),U.writeUInt32(12),U.writeUInt16(0),U.writeUInt16(262),U.writeUInt16(0),U.write(kt),{charMap:C,subtable:U.data,maxGlyphID:wt+1};case"unicode":for(Ct=[],Ze=[],ar=0,Dt={},b={},pt=_e=null,Se=0,ht=T.length;Se<ht;Se++)Dt[Qr=o[F=T[Se]]]==null&&(Dt[Qr]=++ar),b[F]={old:Qr,new:Dt[Qr]},Z=Dt[Qr]-F,pt!=null&&Z===_e||(pt&&Ze.push(pt),Ct.push(F),_e=Z),pt=F;for(pt&&Ze.push(pt),Ze.push(65535),Ct.push(65535),Jr=2*(Lr=Ct.length),Vt=2*Math.pow(Math.log(Lr)/Math.LN2,2),st=Math.log(Vt/2)/Math.LN2,_r=2*Lr-Vt,ae=[],hn=[],be=[],Lt=Te=0,St=Ct.length;Te<St;Lt=++Te){if(vt=Ct[Lt],$e=Ze[Lt],vt===65535){ae.push(0),hn.push(0);break}if(vt-(rr=b[vt].new)>=32768)for(ae.push(0),hn.push(2*(be.length+Lr-Lt)),F=He=vt;vt<=$e?He<=$e:He>=$e;F=vt<=$e?++He:--He)be.push(b[F].new);else ae.push(rr-vt),hn.push(0)}for(U.writeUInt16(3),U.writeUInt16(1),U.writeUInt32(12),U.writeUInt16(4),U.writeUInt16(16+8*Lr+2*be.length),U.writeUInt16(0),U.writeUInt16(Jr),U.writeUInt16(Vt),U.writeUInt16(st),U.writeUInt16(_r),_t=0,Ae=Ze.length;_t<Ae;_t++)F=Ze[_t],U.writeUInt16(F);for(U.writeUInt16(0),It=0,Re=Ct.length;It<Re;It++)F=Ct[It],U.writeUInt16(F);for(ur=0,Ye=ae.length;ur<Ye;ur++)Z=ae[ur],U.writeUInt16(Z);for(fr=0,et=hn.length;fr<et;fr++)wr=hn[fr],U.writeUInt16(wr);for(gr=0,bt=be.length;gr<bt;gr++)wt=be[gr],U.writeUInt16(wt);return{charMap:b,subtable:U.data,maxGlyphID:ar+1}}},c}(),yl=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="cmap",o.prototype.parse=function(l){var b,F,C;for(l.pos=this.offset,this.version=l.readUInt16(),C=l.readUInt16(),this.tables=[],this.unicode=null,F=0;0<=C?F<C:F>C;F=0<=C?++F:--F)b=new kc(l,this.offset),this.tables.push(b),b.isUnicode&&this.unicode==null&&(this.unicode=b);return!0},o.encode=function(l,b){var F,C;return b==null&&(b="macroman"),F=kc.encode(l,b),(C=new Ta).writeUInt16(0),C.writeUInt16(1),F.table=C.data.concat(F.subtable),F},o}(),Gc=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="hhea",o.prototype.parse=function(l){return l.pos=this.offset,this.version=l.readInt(),this.ascender=l.readShort(),this.decender=l.readShort(),this.lineGap=l.readShort(),this.advanceWidthMax=l.readShort(),this.minLeftSideBearing=l.readShort(),this.minRightSideBearing=l.readShort(),this.xMaxExtent=l.readShort(),this.caretSlopeRise=l.readShort(),this.caretSlopeRun=l.readShort(),this.caretOffset=l.readShort(),l.pos+=8,this.metricDataFormat=l.readShort(),this.numberOfMetrics=l.readUInt16()},o}(),xA=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="OS/2",o.prototype.parse=function(l){if(l.pos=this.offset,this.version=l.readUInt16(),this.averageCharWidth=l.readShort(),this.weightClass=l.readUInt16(),this.widthClass=l.readUInt16(),this.type=l.readShort(),this.ySubscriptXSize=l.readShort(),this.ySubscriptYSize=l.readShort(),this.ySubscriptXOffset=l.readShort(),this.ySubscriptYOffset=l.readShort(),this.ySuperscriptXSize=l.readShort(),this.ySuperscriptYSize=l.readShort(),this.ySuperscriptXOffset=l.readShort(),this.ySuperscriptYOffset=l.readShort(),this.yStrikeoutSize=l.readShort(),this.yStrikeoutPosition=l.readShort(),this.familyClass=l.readShort(),this.panose=function(){var b,F;for(F=[],b=0;b<10;++b)F.push(l.readByte());return F}(),this.charRange=function(){var b,F;for(F=[],b=0;b<4;++b)F.push(l.readInt());return F}(),this.vendorID=l.readString(4),this.selection=l.readShort(),this.firstCharIndex=l.readShort(),this.lastCharIndex=l.readShort(),this.version>0&&(this.ascent=l.readShort(),this.descent=l.readShort(),this.lineGap=l.readShort(),this.winAscent=l.readShort(),this.winDescent=l.readShort(),this.codePageRange=function(){var b,F;for(F=[],b=0;b<2;b=++b)F.push(l.readInt());return F}(),this.version>1))return this.xHeight=l.readShort(),this.capHeight=l.readShort(),this.defaultChar=l.readShort(),this.breakChar=l.readShort(),this.maxContext=l.readShort()},o}(),CA=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="post",o.prototype.parse=function(l){var b,F,C;switch(l.pos=this.offset,this.format=l.readInt(),this.italicAngle=l.readInt(),this.underlinePosition=l.readShort(),this.underlineThickness=l.readShort(),this.isFixedPitch=l.readInt(),this.minMemType42=l.readInt(),this.maxMemType42=l.readInt(),this.minMemType1=l.readInt(),this.maxMemType1=l.readInt(),this.format){case 65536:break;case 131072:var T;for(F=l.readUInt16(),this.glyphNameIndex=[],T=0;0<=F?T<F:T>F;T=0<=F?++T:--T)this.glyphNameIndex.push(l.readUInt16());for(this.names=[],C=[];l.pos<this.offset+this.length;)b=l.readByte(),C.push(this.names.push(l.readString(b)));return C;case 151552:return F=l.readUInt16(),this.offsets=l.read(F);case 196608:break;case 262144:return this.map=function(){var Z,ae,_e;for(_e=[],T=Z=0,ae=this.file.maxp.numGlyphs;0<=ae?Z<ae:Z>ae;T=0<=ae?++Z:--Z)_e.push(l.readUInt32());return _e}.call(this)}},o}(),pc=function(c,o){this.raw=c,this.length=c.length,this.platformID=o.platformID,this.encodingID=o.encodingID,this.languageID=o.languageID},mc=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="name",o.prototype.parse=function(l){var b,F,C,T,Z,ae,_e,$e,Ze,st,be;for(l.pos=this.offset,l.readShort(),b=l.readShort(),ae=l.readShort(),F=[],T=0;0<=b?T<b:T>b;T=0<=b?++T:--T)F.push({platformID:l.readShort(),encodingID:l.readShort(),languageID:l.readShort(),nameID:l.readShort(),length:l.readShort(),offset:this.offset+ae+l.readShort()});for(_e={},T=Ze=0,st=F.length;Ze<st;T=++Ze)C=F[T],l.pos=C.offset,$e=l.readString(C.length),Z=new pc($e,C),_e[be=C.nameID]==null&&(_e[be]=[]),_e[C.nameID].push(Z);this.strings=_e,this.copyright=_e[0],this.fontFamily=_e[1],this.fontSubfamily=_e[2],this.uniqueSubfamily=_e[3],this.fontName=_e[4],this.version=_e[5];try{this.postscriptName=_e[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(Lt){this.postscriptName=_e[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=_e[7],this.manufacturer=_e[8],this.designer=_e[9],this.description=_e[10],this.vendorUrl=_e[11],this.designerUrl=_e[12],this.license=_e[13],this.licenseUrl=_e[14],this.preferredFamily=_e[15],this.preferredSubfamily=_e[17],this.compatibleFull=_e[18],this.sampleText=_e[19]},o}(),Uu=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="maxp",o.prototype.parse=function(l){return l.pos=this.offset,this.version=l.readInt(),this.numGlyphs=l.readUInt16(),this.maxPoints=l.readUInt16(),this.maxContours=l.readUInt16(),this.maxCompositePoints=l.readUInt16(),this.maxComponentContours=l.readUInt16(),this.maxZones=l.readUInt16(),this.maxTwilightPoints=l.readUInt16(),this.maxStorage=l.readUInt16(),this.maxFunctionDefs=l.readUInt16(),this.maxInstructionDefs=l.readUInt16(),this.maxStackElements=l.readUInt16(),this.maxSizeOfInstructions=l.readUInt16(),this.maxComponentElements=l.readUInt16(),this.maxComponentDepth=l.readUInt16()},o}(),KA=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="hmtx",o.prototype.parse=function(l){var b,F,C,T,Z,ae,_e;for(l.pos=this.offset,this.metrics=[],b=0,ae=this.file.hhea.numberOfMetrics;0<=ae?b<ae:b>ae;b=0<=ae?++b:--b)this.metrics.push({advance:l.readUInt16(),lsb:l.readInt16()});for(C=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var $e,Ze;for(Ze=[],b=$e=0;0<=C?$e<C:$e>C;b=0<=C?++$e:--$e)Ze.push(l.readInt16());return Ze}(),this.widths=function(){var $e,Ze,st,be;for(be=[],$e=0,Ze=(st=this.metrics).length;$e<Ze;$e++)T=st[$e],be.push(T.advance);return be}.call(this),F=this.widths[this.widths.length-1],_e=[],b=Z=0;0<=C?Z<C:Z>C;b=0<=C?++Z:--Z)_e.push(this.widths.push(F));return _e},o.prototype.forGlyph=function(l){return l in this.metrics?this.metrics[l]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[l-this.metrics.length]}},o}(),ed=[].slice,td=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="glyf",o.prototype.parse=function(){return this.cache={}},o.prototype.glyphFor=function(l){var b,F,C,T,Z,ae,_e,$e,Ze,st;return l in this.cache?this.cache[l]:(T=this.file.loca,b=this.file.contents,F=T.indexOf(l),(C=T.lengthOf(l))===0?this.cache[l]=null:(b.pos=this.offset+F,Z=(ae=new Ta(b.read(C))).readShort(),$e=ae.readShort(),st=ae.readShort(),_e=ae.readShort(),Ze=ae.readShort(),this.cache[l]=Z===-1?new vd(ae,$e,st,_e,Ze):new lu(ae,Z,$e,st,_e,Ze),this.cache[l]))},o.prototype.encode=function(l,b,F){var C,T,Z,ae,_e;for(Z=[],T=[],ae=0,_e=b.length;ae<_e;ae++)C=l[b[ae]],T.push(Z.length),C&&(Z=Z.concat(C.encode(F)));return T.push(Z.length),{table:Z,offsets:T}},o}(),lu=function(){function c(o,l,b,F,C,T){this.raw=o,this.numberOfContours=l,this.xMin=b,this.yMin=F,this.xMax=C,this.yMax=T,this.compound=!1}return c.prototype.encode=function(){return this.raw.data},c}(),vd=function(){function c(o,l,b,F,C){var T,Z;for(this.raw=o,this.xMin=l,this.yMin=b,this.xMax=F,this.yMax=C,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],T=this.raw;Z=T.readShort(),this.glyphOffsets.push(T.pos),this.glyphIDs.push(T.readUInt16()),32&Z;)T.pos+=1&Z?4:2,128&Z?T.pos+=8:64&Z?T.pos+=4:8&Z&&(T.pos+=2)}return c.prototype.encode=function(){var o,l,b;for(l=new Ta(ed.call(this.raw.data)),o=0,b=this.glyphIDs.length;o<b;++o)l.pos=this.glyphOffsets[o];return l.data},c}(),Ru=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="loca",o.prototype.parse=function(l){var b,F;return l.pos=this.offset,b=this.file.head.indexToLocFormat,this.offsets=b===0?function(){var C,T;for(T=[],F=0,C=this.length;F<C;F+=2)T.push(2*l.readUInt16());return T}.call(this):function(){var C,T;for(T=[],F=0,C=this.length;F<C;F+=4)T.push(l.readUInt32());return T}.call(this)},o.prototype.indexOf=function(l){return this.offsets[l]},o.prototype.lengthOf=function(l){return this.offsets[l+1]-this.offsets[l]},o.prototype.encode=function(l,b){for(var F=new Uint32Array(this.offsets.length),C=0,T=0,Z=0;Z<F.length;++Z)if(F[Z]=C,T<b.length&&b[T]==Z){++T,F[Z]=C;var ae=this.offsets[Z],_e=this.offsets[Z+1]-ae;_e>0&&(C+=_e)}for(var $e=new Array(4*F.length),Ze=0;Ze<F.length;++Ze)$e[4*Ze+3]=255&F[Ze],$e[4*Ze+2]=(65280&F[Ze])>>8,$e[4*Ze+1]=(16711680&F[Ze])>>16,$e[4*Ze]=(4278190080&F[Ze])>>24;return $e},o}(),cu=function(){function c(o){this.font=o,this.subset={},this.unicodes={},this.next=33}return c.prototype.generateCmap=function(){var o,l,b,F,C;for(l in F=this.font.cmap.tables[0].codeMap,o={},C=this.subset)b=C[l],o[l]=F[b];return o},c.prototype.glyphsFor=function(o){var l,b,F,C,T,Z,ae;for(F={},T=0,Z=o.length;T<Z;T++)F[C=o[T]]=this.font.glyf.glyphFor(C);for(C in l=[],F)(b=F[C])!=null&&b.compound&&l.push.apply(l,b.glyphIDs);if(l.length>0)for(C in ae=this.glyphsFor(l))b=ae[C],F[C]=b;return F},c.prototype.encode=function(o,l){var b,F,C,T,Z,ae,_e,$e,Ze,st,be,Lt,wt,kt,pt;for(F in b=yl.encode(this.generateCmap(),"unicode"),T=this.glyphsFor(o),be={0:0},pt=b.charMap)be[(ae=pt[F]).old]=ae.new;for(Lt in st=b.maxGlyphID,T)Lt in be||(be[Lt]=st++);return $e=function(Dt){var ar,wr;for(ar in wr={},Dt)wr[Dt[ar]]=ar;return wr}(be),Ze=Object.keys($e).sort(function(Dt,ar){return Dt-ar}),wt=function(){var Dt,ar,wr;for(wr=[],Dt=0,ar=Ze.length;Dt<ar;Dt++)Z=Ze[Dt],wr.push($e[Z]);return wr}(),C=this.font.glyf.encode(T,wt,be),_e=this.font.loca.encode(C.offsets,wt),kt={cmap:this.font.cmap.raw(),glyf:C.table,loca:_e,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(l)},this.font.os2.exists&&(kt["OS/2"]=this.font.os2.raw()),this.font.directory.encode(kt)},c}();Ai.API.PDFObject=function(){var c;function o(){}return c=function(l,b){return(Array(b+1).join("0")+l).slice(-b)},o.convert=function(l){var b,F,C,T;if(Array.isArray(l))return"["+function(){var Z,ae,_e;for(_e=[],Z=0,ae=l.length;Z<ae;Z++)b=l[Z],_e.push(o.convert(b));return _e}().join(" ")+"]";if(typeof l=="string")return"/"+l;if(l!=null&&l.isString)return"("+l+")";if(l instanceof Date)return"(D:"+c(l.getUTCFullYear(),4)+c(l.getUTCMonth(),2)+c(l.getUTCDate(),2)+c(l.getUTCHours(),2)+c(l.getUTCMinutes(),2)+c(l.getUTCSeconds(),2)+"Z)";if({}.toString.call(l)==="[object Object]"){for(F in C=["<<"],l)T=l[F],C.push("/"+F+" "+o.convert(T));return C.push(">>"),C.join(`
`)}return""+l},o}()},86129:function(xn,Yt,x){var ge=x(19208).lW,de=x(97671);(function(Q){xn.exports=Q()})(function(){return function Q(Oe,ie,W){function B(h,$){if(!ie[h]){if(!Oe[h]){var S=void 0;if(!$&&S)return require(h,!0);if(f)return f(h,!0);var _=new Error("Cannot find module '"+h+"'");throw _.code="MODULE_NOT_FOUND",_}var N=ie[h]={exports:{}};Oe[h][0].call(N.exports,function(R){var I=Oe[h][1][R];return B(I||R)},N,N.exports,Q,Oe,ie,W)}return ie[h].exports}for(var f=void 0,E=0;E<W.length;E++)B(W[E]);return B}({1:[function(Q,Oe,ie){"use strict";var W=Q("./utils"),B=Q("./support"),f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";ie.encode=function(E){for(var h,$,S,_,N,R,I,J=[],K=0,se=E.length,te=se,G=W.getTypeOf(E)!=="string";K<E.length;)te=se-K,S=G?(h=E[K++],$=K<se?E[K++]:0,K<se?E[K++]:0):(h=E.charCodeAt(K++),$=K<se?E.charCodeAt(K++):0,K<se?E.charCodeAt(K++):0),_=h>>2,N=(3&h)<<4|$>>4,R=1<te?(15&$)<<2|S>>6:64,I=2<te?63&S:64,J.push(f.charAt(_)+f.charAt(N)+f.charAt(R)+f.charAt(I));return J.join("")},ie.decode=function(E){var h,$,S,_,N,R,I=0,J=0,K="data:";if(E.substr(0,K.length)===K)throw new Error("Invalid base64 input, it looks like a data url.");var se,te=3*(E=E.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(E.charAt(E.length-1)===f.charAt(64)&&te--,E.charAt(E.length-2)===f.charAt(64)&&te--,te%1!=0)throw new Error("Invalid base64 input, bad content length.");for(se=B.uint8array?new Uint8Array(0|te):new Array(0|te);I<E.length;)h=f.indexOf(E.charAt(I++))<<2|(_=f.indexOf(E.charAt(I++)))>>4,$=(15&_)<<4|(N=f.indexOf(E.charAt(I++)))>>2,S=(3&N)<<6|(R=f.indexOf(E.charAt(I++))),se[J++]=h,N!==64&&(se[J++]=$),R!==64&&(se[J++]=S);return se}},{"./support":30,"./utils":32}],2:[function(Q,Oe,ie){"use strict";var W=Q("./external"),B=Q("./stream/DataWorker"),f=Q("./stream/Crc32Probe"),E=Q("./stream/DataLengthProbe");function h($,S,_,N,R){this.compressedSize=$,this.uncompressedSize=S,this.crc32=_,this.compression=N,this.compressedContent=R}h.prototype={getContentWorker:function(){var $=new B(W.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new E("data_length")),S=this;return $.on("end",function(){if(this.streamInfo.data_length!==S.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),$},getCompressedWorker:function(){return new B(W.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},h.createWorkerFrom=function($,S,_){return $.pipe(new f).pipe(new E("uncompressedSize")).pipe(S.compressWorker(_)).pipe(new E("compressedSize")).withStreamInfo("compression",S)},Oe.exports=h},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(Q,Oe,ie){"use strict";var W=Q("./stream/GenericWorker");ie.STORE={magic:"\0\0",compressWorker:function(){return new W("STORE compression")},uncompressWorker:function(){return new W("STORE decompression")}},ie.DEFLATE=Q("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(Q,Oe,ie){"use strict";var W=Q("./utils"),B=function(){for(var f,E=[],h=0;h<256;h++){f=h;for(var $=0;$<8;$++)f=1&f?3988292384^f>>>1:f>>>1;E[h]=f}return E}();Oe.exports=function(f,E){return f!==void 0&&f.length?W.getTypeOf(f)!=="string"?function(h,$,S,_){var N=B,R=_+S;h^=-1;for(var I=_;I<R;I++)h=h>>>8^N[255&(h^$[I])];return-1^h}(0|E,f,f.length,0):function(h,$,S,_){var N=B,R=_+S;h^=-1;for(var I=_;I<R;I++)h=h>>>8^N[255&(h^$.charCodeAt(I))];return-1^h}(0|E,f,f.length,0):0}},{"./utils":32}],5:[function(Q,Oe,ie){"use strict";ie.base64=!1,ie.binary=!1,ie.dir=!1,ie.createFolders=!0,ie.date=null,ie.compression=null,ie.compressionOptions=null,ie.comment=null,ie.unixPermissions=null,ie.dosPermissions=null},{}],6:[function(Q,Oe,ie){"use strict";var W=null;W=typeof Promise!="undefined"?Promise:Q("lie"),Oe.exports={Promise:W}},{lie:37}],7:[function(Q,Oe,ie){"use strict";var W=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",B=Q("pako"),f=Q("./utils"),E=Q("./stream/GenericWorker"),h=W?"uint8array":"array";function $(S,_){E.call(this,"FlateWorker/"+S),this._pako=null,this._pakoAction=S,this._pakoOptions=_,this.meta={}}ie.magic="\b\0",f.inherits($,E),$.prototype.processChunk=function(S){this.meta=S.meta,this._pako===null&&this._createPako(),this._pako.push(f.transformTo(h,S.data),!1)},$.prototype.flush=function(){E.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},$.prototype.cleanUp=function(){E.prototype.cleanUp.call(this),this._pako=null},$.prototype._createPako=function(){this._pako=new B[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var S=this;this._pako.onData=function(_){S.push({data:_,meta:S.meta})}},ie.compressWorker=function(S){return new $("Deflate",S)},ie.uncompressWorker=function(){return new $("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(Q,Oe,ie){"use strict";function W(N,R){var I,J="";for(I=0;I<R;I++)J+=String.fromCharCode(255&N),N>>>=8;return J}function B(N,R,I,J,K,se){var te,G,V=N.file,j=N.compression,le=se!==h.utf8encode,he=f.transformTo("string",se(V.name)),Ne=f.transformTo("string",h.utf8encode(V.name)),Be=V.comment,je=f.transformTo("string",se(Be)),q=f.transformTo("string",h.utf8encode(Be)),ce=Ne.length!==V.name.length,D=q.length!==Be.length,ot="",ke="",Ce="",Qe=V.dir,ve=V.date,Pe={crc32:0,compressedSize:0,uncompressedSize:0};R&&!I||(Pe.crc32=N.crc32,Pe.compressedSize=N.compressedSize,Pe.uncompressedSize=N.uncompressedSize);var fe=0;R&&(fe|=8),le||!ce&&!D||(fe|=2048);var ye=0,at=0;Qe&&(ye|=16),K==="UNIX"?(at=798,ye|=function(nt,ut){var Pt=nt;return nt||(Pt=ut?16893:33204),(65535&Pt)<<16}(V.unixPermissions,Qe)):(at=20,ye|=function(nt){return 63&(nt||0)}(V.dosPermissions)),te=ve.getUTCHours(),te<<=6,te|=ve.getUTCMinutes(),te<<=5,te|=ve.getUTCSeconds()/2,G=ve.getUTCFullYear()-1980,G<<=4,G|=ve.getUTCMonth()+1,G<<=5,G|=ve.getUTCDate(),ce&&(ke=W(1,1)+W($(he),4)+Ne,ot+="up"+W(ke.length,2)+ke),D&&(Ce=W(1,1)+W($(je),4)+q,ot+="uc"+W(Ce.length,2)+Ce);var rt="";return rt+=`
\0`,rt+=W(fe,2),rt+=j.magic,rt+=W(te,2),rt+=W(G,2),rt+=W(Pe.crc32,4),rt+=W(Pe.compressedSize,4),rt+=W(Pe.uncompressedSize,4),rt+=W(he.length,2),rt+=W(ot.length,2),{fileRecord:S.LOCAL_FILE_HEADER+rt+he+ot,dirRecord:S.CENTRAL_FILE_HEADER+W(at,2)+rt+W(je.length,2)+"\0\0\0\0"+W(ye,4)+W(J,4)+he+ot+je}}var f=Q("../utils"),E=Q("../stream/GenericWorker"),h=Q("../utf8"),$=Q("../crc32"),S=Q("../signature");function _(N,R,I,J){E.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=R,this.zipPlatform=I,this.encodeFileName=J,this.streamFiles=N,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}f.inherits(_,E),_.prototype.push=function(N){var R=N.meta.percent||0,I=this.entriesCount,J=this._sources.length;this.accumulate?this.contentBuffer.push(N):(this.bytesWritten+=N.data.length,E.prototype.push.call(this,{data:N.data,meta:{currentFile:this.currentFile,percent:I?(R+100*(I-J-1))/I:100}}))},_.prototype.openedSource=function(N){this.currentSourceOffset=this.bytesWritten,this.currentFile=N.file.name;var R=this.streamFiles&&!N.file.dir;if(R){var I=B(N,R,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:I.fileRecord,meta:{percent:0}})}else this.accumulate=!0},_.prototype.closedSource=function(N){this.accumulate=!1;var R=this.streamFiles&&!N.file.dir,I=B(N,R,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(I.dirRecord),R)this.push({data:function(J){return S.DATA_DESCRIPTOR+W(J.crc32,4)+W(J.compressedSize,4)+W(J.uncompressedSize,4)}(N),meta:{percent:100}});else for(this.push({data:I.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},_.prototype.flush=function(){for(var N=this.bytesWritten,R=0;R<this.dirRecords.length;R++)this.push({data:this.dirRecords[R],meta:{percent:100}});var I=this.bytesWritten-N,J=function(K,se,te,G,V){var j=f.transformTo("string",V(G));return S.CENTRAL_DIRECTORY_END+"\0\0\0\0"+W(K,2)+W(K,2)+W(se,4)+W(te,4)+W(j.length,2)+j}(this.dirRecords.length,I,N,this.zipComment,this.encodeFileName);this.push({data:J,meta:{percent:100}})},_.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},_.prototype.registerPrevious=function(N){this._sources.push(N);var R=this;return N.on("data",function(I){R.processChunk(I)}),N.on("end",function(){R.closedSource(R.previous.streamInfo),R._sources.length?R.prepareNextSource():R.end()}),N.on("error",function(I){R.error(I)}),this},_.prototype.resume=function(){return!!E.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},_.prototype.error=function(N){var R=this._sources;if(!E.prototype.error.call(this,N))return!1;for(var I=0;I<R.length;I++)try{R[I].error(N)}catch(J){}return!0},_.prototype.lock=function(){E.prototype.lock.call(this);for(var N=this._sources,R=0;R<N.length;R++)N[R].lock()},Oe.exports=_},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(Q,Oe,ie){"use strict";var W=Q("../compressions"),B=Q("./ZipFileWorker");ie.generateWorker=function(f,E,h){var $=new B(E.streamFiles,h,E.platform,E.encodeFileName),S=0;try{f.forEach(function(_,N){S++;var R=function(se,te){var G=se||te,V=W[G];if(!V)throw new Error(G+" is not a valid compression method !");return V}(N.options.compression,E.compression),I=N.options.compressionOptions||E.compressionOptions||{},J=N.dir,K=N.date;N._compressWorker(R,I).withStreamInfo("file",{name:_,dir:J,date:K,comment:N.comment||"",unixPermissions:N.unixPermissions,dosPermissions:N.dosPermissions}).pipe($)}),$.entriesCount=S}catch(_){$.error(_)}return $}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(Q,Oe,ie){"use strict";function W(){if(!(this instanceof W))return new W;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var B=new W;for(var f in this)typeof this[f]!="function"&&(B[f]=this[f]);return B}}(W.prototype=Q("./object")).loadAsync=Q("./load"),W.support=Q("./support"),W.defaults=Q("./defaults"),W.version="3.10.1",W.loadAsync=function(B,f){return new W().loadAsync(B,f)},W.external=Q("./external"),Oe.exports=W},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(Q,Oe,ie){"use strict";var W=Q("./utils"),B=Q("./external"),f=Q("./utf8"),E=Q("./zipEntries"),h=Q("./stream/Crc32Probe"),$=Q("./nodejsUtils");function S(_){return new B.Promise(function(N,R){var I=_.decompressed.getContentWorker().pipe(new h);I.on("error",function(J){R(J)}).on("end",function(){I.streamInfo.crc32!==_.decompressed.crc32?R(new Error("Corrupted zip : CRC32 mismatch")):N()}).resume()})}Oe.exports=function(_,N){var R=this;return N=W.extend(N||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:f.utf8decode}),$.isNode&&$.isStream(_)?B.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):W.prepareContent("the loaded zip file",_,!0,N.optimizedBinaryString,N.base64).then(function(I){var J=new E(N);return J.load(I),J}).then(function(I){var J=[B.Promise.resolve(I)],K=I.files;if(N.checkCRC32)for(var se=0;se<K.length;se++)J.push(S(K[se]));return B.Promise.all(J)}).then(function(I){for(var J=I.shift(),K=J.files,se=0;se<K.length;se++){var te=K[se],G=te.fileNameStr,V=W.resolve(te.fileNameStr);R.file(V,te.decompressed,{binary:!0,optimizedBinaryString:!0,date:te.date,dir:te.dir,comment:te.fileCommentStr.length?te.fileCommentStr:null,unixPermissions:te.unixPermissions,dosPermissions:te.dosPermissions,createFolders:N.createFolders}),te.dir||(R.file(V).unsafeOriginalName=G)}return J.zipComment.length&&(R.comment=J.zipComment),R})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(Q,Oe,ie){"use strict";var W=Q("../utils"),B=Q("../stream/GenericWorker");function f(E,h){B.call(this,"Nodejs stream input adapter for "+E),this._upstreamEnded=!1,this._bindStream(h)}W.inherits(f,B),f.prototype._bindStream=function(E){var h=this;(this._stream=E).pause(),E.on("data",function($){h.push({data:$,meta:{percent:0}})}).on("error",function($){h.isPaused?this.generatedError=$:h.error($)}).on("end",function(){h.isPaused?h._upstreamEnded=!0:h.end()})},f.prototype.pause=function(){return!!B.prototype.pause.call(this)&&(this._stream.pause(),!0)},f.prototype.resume=function(){return!!B.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},Oe.exports=f},{"../stream/GenericWorker":28,"../utils":32}],13:[function(Q,Oe,ie){"use strict";var W=Q("readable-stream").Readable;function B(f,E,h){W.call(this,E),this._helper=f;var $=this;f.on("data",function(S,_){$.push(S)||$._helper.pause(),h&&h(_)}).on("error",function(S){$.emit("error",S)}).on("end",function(){$.push(null)})}Q("../utils").inherits(B,W),B.prototype._read=function(){this._helper.resume()},Oe.exports=B},{"../utils":32,"readable-stream":16}],14:[function(Q,Oe,ie){"use strict";Oe.exports={isNode:typeof ge!="undefined",newBufferFrom:function(W,B){if(ge.from&&ge.from!==Uint8Array.from)return ge.from(W,B);if(typeof W=="number")throw new Error('The "data" argument must not be a number');return new ge(W,B)},allocBuffer:function(W){if(ge.alloc)return ge.alloc(W);var B=new ge(W);return B.fill(0),B},isBuffer:function(W){return ge.isBuffer(W)},isStream:function(W){return W&&typeof W.on=="function"&&typeof W.pause=="function"&&typeof W.resume=="function"}}},{}],15:[function(Q,Oe,ie){"use strict";function W(V,j,le){var he,Ne=f.getTypeOf(j),Be=f.extend(le||{},$);Be.date=Be.date||new Date,Be.compression!==null&&(Be.compression=Be.compression.toUpperCase()),typeof Be.unixPermissions=="string"&&(Be.unixPermissions=parseInt(Be.unixPermissions,8)),Be.unixPermissions&&16384&Be.unixPermissions&&(Be.dir=!0),Be.dosPermissions&&16&Be.dosPermissions&&(Be.dir=!0),Be.dir&&(V=K(V)),Be.createFolders&&(he=J(V))&&se.call(this,he,!0);var je=Ne==="string"&&Be.binary===!1&&Be.base64===!1;le&&le.binary!==void 0||(Be.binary=!je),(j instanceof S&&j.uncompressedSize===0||Be.dir||!j||j.length===0)&&(Be.base64=!1,Be.binary=!0,j="",Be.compression="STORE",Ne="string");var q=null;q=j instanceof S||j instanceof E?j:R.isNode&&R.isStream(j)?new I(V,j):f.prepareContent(V,j,Be.binary,Be.optimizedBinaryString,Be.base64);var ce=new _(V,q,Be);this.files[V]=ce}var B=Q("./utf8"),f=Q("./utils"),E=Q("./stream/GenericWorker"),h=Q("./stream/StreamHelper"),$=Q("./defaults"),S=Q("./compressedObject"),_=Q("./zipObject"),N=Q("./generate"),R=Q("./nodejsUtils"),I=Q("./nodejs/NodejsStreamInputAdapter"),J=function(V){V.slice(-1)==="/"&&(V=V.substring(0,V.length-1));var j=V.lastIndexOf("/");return 0<j?V.substring(0,j):""},K=function(V){return V.slice(-1)!=="/"&&(V+="/"),V},se=function(V,j){return j=j!==void 0?j:$.createFolders,V=K(V),this.files[V]||W.call(this,V,null,{dir:!0,createFolders:j}),this.files[V]};function te(V){return Object.prototype.toString.call(V)==="[object RegExp]"}var G={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(V){var j,le,he;for(j in this.files)he=this.files[j],(le=j.slice(this.root.length,j.length))&&j.slice(0,this.root.length)===this.root&&V(le,he)},filter:function(V){var j=[];return this.forEach(function(le,he){V(le,he)&&j.push(he)}),j},file:function(V,j,le){if(arguments.length!==1)return V=this.root+V,W.call(this,V,j,le),this;if(te(V)){var he=V;return this.filter(function(Be,je){return!je.dir&&he.test(Be)})}var Ne=this.files[this.root+V];return Ne&&!Ne.dir?Ne:null},folder:function(V){if(!V)return this;if(te(V))return this.filter(function(Ne,Be){return Be.dir&&V.test(Ne)});var j=this.root+V,le=se.call(this,j),he=this.clone();return he.root=le.name,he},remove:function(V){V=this.root+V;var j=this.files[V];if(j||(V.slice(-1)!=="/"&&(V+="/"),j=this.files[V]),j&&!j.dir)delete this.files[V];else for(var le=this.filter(function(Ne,Be){return Be.name.slice(0,V.length)===V}),he=0;he<le.length;he++)delete this.files[le[he].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(V){var j,le={};try{if((le=f.extend(V||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:B.utf8encode})).type=le.type.toLowerCase(),le.compression=le.compression.toUpperCase(),le.type==="binarystring"&&(le.type="string"),!le.type)throw new Error("No output type specified.");f.checkSupport(le.type),le.platform!=="darwin"&&le.platform!=="freebsd"&&le.platform!=="linux"&&le.platform!=="sunos"||(le.platform="UNIX"),le.platform==="win32"&&(le.platform="DOS");var he=le.comment||this.comment||"";j=N.generateWorker(this,le,he)}catch(Ne){(j=new E("error")).error(Ne)}return new h(j,le.type||"string",le.mimeType)},generateAsync:function(V,j){return this.generateInternalStream(V).accumulate(j)},generateNodeStream:function(V,j){return(V=V||{}).type||(V.type="nodebuffer"),this.generateInternalStream(V).toNodejsStream(j)}};Oe.exports=G},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(Q,Oe,ie){"use strict";Oe.exports=Q("stream")},{stream:void 0}],17:[function(Q,Oe,ie){"use strict";var W=Q("./DataReader");function B(f){W.call(this,f);for(var E=0;E<this.data.length;E++)f[E]=255&f[E]}Q("../utils").inherits(B,W),B.prototype.byteAt=function(f){return this.data[this.zero+f]},B.prototype.lastIndexOfSignature=function(f){for(var E=f.charCodeAt(0),h=f.charCodeAt(1),$=f.charCodeAt(2),S=f.charCodeAt(3),_=this.length-4;0<=_;--_)if(this.data[_]===E&&this.data[_+1]===h&&this.data[_+2]===$&&this.data[_+3]===S)return _-this.zero;return-1},B.prototype.readAndCheckSignature=function(f){var E=f.charCodeAt(0),h=f.charCodeAt(1),$=f.charCodeAt(2),S=f.charCodeAt(3),_=this.readData(4);return E===_[0]&&h===_[1]&&$===_[2]&&S===_[3]},B.prototype.readData=function(f){if(this.checkOffset(f),f===0)return[];var E=this.data.slice(this.zero+this.index,this.zero+this.index+f);return this.index+=f,E},Oe.exports=B},{"../utils":32,"./DataReader":18}],18:[function(Q,Oe,ie){"use strict";var W=Q("../utils");function B(f){this.data=f,this.length=f.length,this.index=0,this.zero=0}B.prototype={checkOffset:function(f){this.checkIndex(this.index+f)},checkIndex:function(f){if(this.length<this.zero+f||f<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+f+"). Corrupted zip ?")},setIndex:function(f){this.checkIndex(f),this.index=f},skip:function(f){this.setIndex(this.index+f)},byteAt:function(){},readInt:function(f){var E,h=0;for(this.checkOffset(f),E=this.index+f-1;E>=this.index;E--)h=(h<<8)+this.byteAt(E);return this.index+=f,h},readString:function(f){return W.transformTo("string",this.readData(f))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var f=this.readInt(4);return new Date(Date.UTC(1980+(f>>25&127),(f>>21&15)-1,f>>16&31,f>>11&31,f>>5&63,(31&f)<<1))}},Oe.exports=B},{"../utils":32}],19:[function(Q,Oe,ie){"use strict";var W=Q("./Uint8ArrayReader");function B(f){W.call(this,f)}Q("../utils").inherits(B,W),B.prototype.readData=function(f){this.checkOffset(f);var E=this.data.slice(this.zero+this.index,this.zero+this.index+f);return this.index+=f,E},Oe.exports=B},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(Q,Oe,ie){"use strict";var W=Q("./DataReader");function B(f){W.call(this,f)}Q("../utils").inherits(B,W),B.prototype.byteAt=function(f){return this.data.charCodeAt(this.zero+f)},B.prototype.lastIndexOfSignature=function(f){return this.data.lastIndexOf(f)-this.zero},B.prototype.readAndCheckSignature=function(f){return f===this.readData(4)},B.prototype.readData=function(f){this.checkOffset(f);var E=this.data.slice(this.zero+this.index,this.zero+this.index+f);return this.index+=f,E},Oe.exports=B},{"../utils":32,"./DataReader":18}],21:[function(Q,Oe,ie){"use strict";var W=Q("./ArrayReader");function B(f){W.call(this,f)}Q("../utils").inherits(B,W),B.prototype.readData=function(f){if(this.checkOffset(f),f===0)return new Uint8Array(0);var E=this.data.subarray(this.zero+this.index,this.zero+this.index+f);return this.index+=f,E},Oe.exports=B},{"../utils":32,"./ArrayReader":17}],22:[function(Q,Oe,ie){"use strict";var W=Q("../utils"),B=Q("../support"),f=Q("./ArrayReader"),E=Q("./StringReader"),h=Q("./NodeBufferReader"),$=Q("./Uint8ArrayReader");Oe.exports=function(S){var _=W.getTypeOf(S);return W.checkSupport(_),_!=="string"||B.uint8array?_==="nodebuffer"?new h(S):B.uint8array?new $(W.transformTo("uint8array",S)):new f(W.transformTo("array",S)):new E(S)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(Q,Oe,ie){"use strict";ie.LOCAL_FILE_HEADER="PK",ie.CENTRAL_FILE_HEADER="PK",ie.CENTRAL_DIRECTORY_END="PK",ie.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",ie.ZIP64_CENTRAL_DIRECTORY_END="PK",ie.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(Q,Oe,ie){"use strict";var W=Q("./GenericWorker"),B=Q("../utils");function f(E){W.call(this,"ConvertWorker to "+E),this.destType=E}B.inherits(f,W),f.prototype.processChunk=function(E){this.push({data:B.transformTo(this.destType,E.data),meta:E.meta})},Oe.exports=f},{"../utils":32,"./GenericWorker":28}],25:[function(Q,Oe,ie){"use strict";var W=Q("./GenericWorker"),B=Q("../crc32");function f(){W.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}Q("../utils").inherits(f,W),f.prototype.processChunk=function(E){this.streamInfo.crc32=B(E.data,this.streamInfo.crc32||0),this.push(E)},Oe.exports=f},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(Q,Oe,ie){"use strict";var W=Q("../utils"),B=Q("./GenericWorker");function f(E){B.call(this,"DataLengthProbe for "+E),this.propName=E,this.withStreamInfo(E,0)}W.inherits(f,B),f.prototype.processChunk=function(E){if(E){var h=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=h+E.data.length}B.prototype.processChunk.call(this,E)},Oe.exports=f},{"../utils":32,"./GenericWorker":28}],27:[function(Q,Oe,ie){"use strict";var W=Q("../utils"),B=Q("./GenericWorker");function f(E){B.call(this,"DataWorker");var h=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,E.then(function($){h.dataIsReady=!0,h.data=$,h.max=$&&$.length||0,h.type=W.getTypeOf($),h.isPaused||h._tickAndRepeat()},function($){h.error($)})}W.inherits(f,B),f.prototype.cleanUp=function(){B.prototype.cleanUp.call(this),this.data=null},f.prototype.resume=function(){return!!B.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,W.delay(this._tickAndRepeat,[],this)),!0)},f.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(W.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},f.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var E=null,h=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":E=this.data.substring(this.index,h);break;case"uint8array":E=this.data.subarray(this.index,h);break;case"array":case"nodebuffer":E=this.data.slice(this.index,h)}return this.index=h,this.push({data:E,meta:{percent:this.max?this.index/this.max*100:0}})},Oe.exports=f},{"../utils":32,"./GenericWorker":28}],28:[function(Q,Oe,ie){"use strict";function W(B){this.name=B||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}W.prototype={push:function(B){this.emit("data",B)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(B){this.emit("error",B)}return!0},error:function(B){return!this.isFinished&&(this.isPaused?this.generatedError=B:(this.isFinished=!0,this.emit("error",B),this.previous&&this.previous.error(B),this.cleanUp()),!0)},on:function(B,f){return this._listeners[B].push(f),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(B,f){if(this._listeners[B])for(var E=0;E<this._listeners[B].length;E++)this._listeners[B][E].call(this,f)},pipe:function(B){return B.registerPrevious(this)},registerPrevious:function(B){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=B.streamInfo,this.mergeStreamInfo(),this.previous=B;var f=this;return B.on("data",function(E){f.processChunk(E)}),B.on("end",function(){f.end()}),B.on("error",function(E){f.error(E)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var B=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),B=!0),this.previous&&this.previous.resume(),!B},flush:function(){},processChunk:function(B){this.push(B)},withStreamInfo:function(B,f){return this.extraStreamInfo[B]=f,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var B in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,B)&&(this.streamInfo[B]=this.extraStreamInfo[B])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var B="Worker "+this.name;return this.previous?this.previous+" -> "+B:B}},Oe.exports=W},{}],29:[function(Q,Oe,ie){"use strict";var W=Q("../utils"),B=Q("./ConvertWorker"),f=Q("./GenericWorker"),E=Q("../base64"),h=Q("../support"),$=Q("../external"),S=null;if(h.nodestream)try{S=Q("../nodejs/NodejsStreamOutputAdapter")}catch(R){}function _(R,I){return new $.Promise(function(J,K){var se=[],te=R._internalType,G=R._outputType,V=R._mimeType;R.on("data",function(j,le){se.push(j),I&&I(le)}).on("error",function(j){se=[],K(j)}).on("end",function(){try{var j=function(le,he,Ne){switch(le){case"blob":return W.newBlob(W.transformTo("arraybuffer",he),Ne);case"base64":return E.encode(he);default:return W.transformTo(le,he)}}(G,function(le,he){var Ne,Be=0,je=null,q=0;for(Ne=0;Ne<he.length;Ne++)q+=he[Ne].length;switch(le){case"string":return he.join("");case"array":return Array.prototype.concat.apply([],he);case"uint8array":for(je=new Uint8Array(q),Ne=0;Ne<he.length;Ne++)je.set(he[Ne],Be),Be+=he[Ne].length;return je;case"nodebuffer":return ge.concat(he);default:throw new Error("concat : unsupported type '"+le+"'")}}(te,se),V);J(j)}catch(le){K(le)}se=[]}).resume()})}function N(R,I,J){var K=I;switch(I){case"blob":case"arraybuffer":K="uint8array";break;case"base64":K="string"}try{this._internalType=K,this._outputType=I,this._mimeType=J,W.checkSupport(K),this._worker=R.pipe(new B(K)),R.lock()}catch(se){this._worker=new f("error"),this._worker.error(se)}}N.prototype={accumulate:function(R){return _(this,R)},on:function(R,I){var J=this;return R==="data"?this._worker.on(R,function(K){I.call(J,K.data,K.meta)}):this._worker.on(R,function(){W.delay(I,arguments,J)}),this},resume:function(){return W.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(R){if(W.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new S(this,{objectMode:this._outputType!=="nodebuffer"},R)}},Oe.exports=N},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(Q,Oe,ie){"use strict";if(ie.base64=!0,ie.array=!0,ie.string=!0,ie.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",ie.nodebuffer=typeof ge!="undefined",ie.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")ie.blob=!1;else{var W=new ArrayBuffer(0);try{ie.blob=new Blob([W],{type:"application/zip"}).size===0}catch(f){try{var B=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);B.append(W),ie.blob=B.getBlob("application/zip").size===0}catch(E){ie.blob=!1}}}try{ie.nodestream=!!Q("readable-stream").Readable}catch(f){ie.nodestream=!1}},{"readable-stream":16}],31:[function(Q,Oe,ie){"use strict";for(var W=Q("./utils"),B=Q("./support"),f=Q("./nodejsUtils"),E=Q("./stream/GenericWorker"),h=new Array(256),$=0;$<256;$++)h[$]=252<=$?6:248<=$?5:240<=$?4:224<=$?3:192<=$?2:1;h[254]=h[254]=1;function S(){E.call(this,"utf-8 decode"),this.leftOver=null}function _(){E.call(this,"utf-8 encode")}ie.utf8encode=function(N){return B.nodebuffer?f.newBufferFrom(N,"utf-8"):function(R){var I,J,K,se,te,G=R.length,V=0;for(se=0;se<G;se++)(64512&(J=R.charCodeAt(se)))==55296&&se+1<G&&(64512&(K=R.charCodeAt(se+1)))==56320&&(J=65536+(J-55296<<10)+(K-56320),se++),V+=J<128?1:J<2048?2:J<65536?3:4;for(I=B.uint8array?new Uint8Array(V):new Array(V),se=te=0;te<V;se++)(64512&(J=R.charCodeAt(se)))==55296&&se+1<G&&(64512&(K=R.charCodeAt(se+1)))==56320&&(J=65536+(J-55296<<10)+(K-56320),se++),J<128?I[te++]=J:(J<2048?I[te++]=192|J>>>6:(J<65536?I[te++]=224|J>>>12:(I[te++]=240|J>>>18,I[te++]=128|J>>>12&63),I[te++]=128|J>>>6&63),I[te++]=128|63&J);return I}(N)},ie.utf8decode=function(N){return B.nodebuffer?W.transformTo("nodebuffer",N).toString("utf-8"):function(R){var I,J,K,se,te=R.length,G=new Array(2*te);for(I=J=0;I<te;)if((K=R[I++])<128)G[J++]=K;else if(4<(se=h[K]))G[J++]=65533,I+=se-1;else{for(K&=se===2?31:se===3?15:7;1<se&&I<te;)K=K<<6|63&R[I++],se--;1<se?G[J++]=65533:K<65536?G[J++]=K:(K-=65536,G[J++]=55296|K>>10&1023,G[J++]=56320|1023&K)}return G.length!==J&&(G.subarray?G=G.subarray(0,J):G.length=J),W.applyFromCharCode(G)}(N=W.transformTo(B.uint8array?"uint8array":"array",N))},W.inherits(S,E),S.prototype.processChunk=function(N){var R=W.transformTo(B.uint8array?"uint8array":"array",N.data);if(this.leftOver&&this.leftOver.length){if(B.uint8array){var I=R;(R=new Uint8Array(I.length+this.leftOver.length)).set(this.leftOver,0),R.set(I,this.leftOver.length)}else R=this.leftOver.concat(R);this.leftOver=null}var J=function(se,te){var G;for((te=te||se.length)>se.length&&(te=se.length),G=te-1;0<=G&&(192&se[G])==128;)G--;return G<0||G===0?te:G+h[se[G]]>te?G:te}(R),K=R;J!==R.length&&(B.uint8array?(K=R.subarray(0,J),this.leftOver=R.subarray(J,R.length)):(K=R.slice(0,J),this.leftOver=R.slice(J,R.length))),this.push({data:ie.utf8decode(K),meta:N.meta})},S.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:ie.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},ie.Utf8DecodeWorker=S,W.inherits(_,E),_.prototype.processChunk=function(N){this.push({data:ie.utf8encode(N.data),meta:N.meta})},ie.Utf8EncodeWorker=_},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(Q,Oe,ie){"use strict";var W=Q("./support"),B=Q("./base64"),f=Q("./nodejsUtils"),E=Q("./external");function h(I){return I}function $(I,J){for(var K=0;K<I.length;++K)J[K]=255&I.charCodeAt(K);return J}Q("setimmediate"),ie.newBlob=function(I,J){ie.checkSupport("blob");try{return new Blob([I],{type:J})}catch(se){try{var K=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return K.append(I),K.getBlob(J)}catch(te){throw new Error("Bug : can't construct the Blob.")}}};var S={stringifyByChunk:function(I,J,K){var se=[],te=0,G=I.length;if(G<=K)return String.fromCharCode.apply(null,I);for(;te<G;)J==="array"||J==="nodebuffer"?se.push(String.fromCharCode.apply(null,I.slice(te,Math.min(te+K,G)))):se.push(String.fromCharCode.apply(null,I.subarray(te,Math.min(te+K,G)))),te+=K;return se.join("")},stringifyByChar:function(I){for(var J="",K=0;K<I.length;K++)J+=String.fromCharCode(I[K]);return J},applyCanBeUsed:{uint8array:function(){try{return W.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(I){return!1}}(),nodebuffer:function(){try{return W.nodebuffer&&String.fromCharCode.apply(null,f.allocBuffer(1)).length===1}catch(I){return!1}}()}};function _(I){var J=65536,K=ie.getTypeOf(I),se=!0;if(K==="uint8array"?se=S.applyCanBeUsed.uint8array:K==="nodebuffer"&&(se=S.applyCanBeUsed.nodebuffer),se)for(;1<J;)try{return S.stringifyByChunk(I,K,J)}catch(te){J=Math.floor(J/2)}return S.stringifyByChar(I)}function N(I,J){for(var K=0;K<I.length;K++)J[K]=I[K];return J}ie.applyFromCharCode=_;var R={};R.string={string:h,array:function(I){return $(I,new Array(I.length))},arraybuffer:function(I){return R.string.uint8array(I).buffer},uint8array:function(I){return $(I,new Uint8Array(I.length))},nodebuffer:function(I){return $(I,f.allocBuffer(I.length))}},R.array={string:_,array:h,arraybuffer:function(I){return new Uint8Array(I).buffer},uint8array:function(I){return new Uint8Array(I)},nodebuffer:function(I){return f.newBufferFrom(I)}},R.arraybuffer={string:function(I){return _(new Uint8Array(I))},array:function(I){return N(new Uint8Array(I),new Array(I.byteLength))},arraybuffer:h,uint8array:function(I){return new Uint8Array(I)},nodebuffer:function(I){return f.newBufferFrom(new Uint8Array(I))}},R.uint8array={string:_,array:function(I){return N(I,new Array(I.length))},arraybuffer:function(I){return I.buffer},uint8array:h,nodebuffer:function(I){return f.newBufferFrom(I)}},R.nodebuffer={string:_,array:function(I){return N(I,new Array(I.length))},arraybuffer:function(I){return R.nodebuffer.uint8array(I).buffer},uint8array:function(I){return N(I,new Uint8Array(I.length))},nodebuffer:h},ie.transformTo=function(I,J){if(J=J||"",!I)return J;ie.checkSupport(I);var K=ie.getTypeOf(J);return R[K][I](J)},ie.resolve=function(I){for(var J=I.split("/"),K=[],se=0;se<J.length;se++){var te=J[se];te==="."||te===""&&se!==0&&se!==J.length-1||(te===".."?K.pop():K.push(te))}return K.join("/")},ie.getTypeOf=function(I){return typeof I=="string"?"string":Object.prototype.toString.call(I)==="[object Array]"?"array":W.nodebuffer&&f.isBuffer(I)?"nodebuffer":W.uint8array&&I instanceof Uint8Array?"uint8array":W.arraybuffer&&I instanceof ArrayBuffer?"arraybuffer":void 0},ie.checkSupport=function(I){if(!W[I.toLowerCase()])throw new Error(I+" is not supported by this platform")},ie.MAX_VALUE_16BITS=65535,ie.MAX_VALUE_32BITS=-1,ie.pretty=function(I){var J,K,se="";for(K=0;K<(I||"").length;K++)se+="\\x"+((J=I.charCodeAt(K))<16?"0":"")+J.toString(16).toUpperCase();return se},ie.delay=function(I,J,K){setImmediate(function(){I.apply(K||null,J||[])})},ie.inherits=function(I,J){function K(){}K.prototype=J.prototype,I.prototype=new K},ie.extend=function(){var I,J,K={};for(I=0;I<arguments.length;I++)for(J in arguments[I])Object.prototype.hasOwnProperty.call(arguments[I],J)&&K[J]===void 0&&(K[J]=arguments[I][J]);return K},ie.prepareContent=function(I,J,K,se,te){return E.Promise.resolve(J).then(function(G){return W.blob&&(G instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(G))!==-1)&&typeof FileReader!="undefined"?new E.Promise(function(V,j){var le=new FileReader;le.onload=function(he){V(he.target.result)},le.onerror=function(he){j(he.target.error)},le.readAsArrayBuffer(G)}):G}).then(function(G){var V=ie.getTypeOf(G);return V?(V==="arraybuffer"?G=ie.transformTo("uint8array",G):V==="string"&&(te?G=B.decode(G):K&&se!==!0&&(G=function(j){return $(j,W.uint8array?new Uint8Array(j.length):new Array(j.length))}(G))),G):E.Promise.reject(new Error("Can't read the data of '"+I+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(Q,Oe,ie){"use strict";var W=Q("./reader/readerFor"),B=Q("./utils"),f=Q("./signature"),E=Q("./zipEntry"),h=Q("./support");function $(S){this.files=[],this.loadOptions=S}$.prototype={checkSignature:function(S){if(!this.reader.readAndCheckSignature(S)){this.reader.index-=4;var _=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+B.pretty(_)+", expected "+B.pretty(S)+")")}},isSignature:function(S,_){var N=this.reader.index;this.reader.setIndex(S);var R=this.reader.readString(4)===_;return this.reader.setIndex(N),R},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var S=this.reader.readData(this.zipCommentLength),_=h.uint8array?"uint8array":"array",N=B.transformTo(_,S);this.zipComment=this.loadOptions.decodeFileName(N)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var S,_,N,R=this.zip64EndOfCentralSize-44;0<R;)S=this.reader.readInt(2),_=this.reader.readInt(4),N=this.reader.readData(_),this.zip64ExtensibleData[S]={id:S,length:_,value:N}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var S,_;for(S=0;S<this.files.length;S++)_=this.files[S],this.reader.setIndex(_.localHeaderOffset),this.checkSignature(f.LOCAL_FILE_HEADER),_.readLocalPart(this.reader),_.handleUTF8(),_.processAttributes()},readCentralDir:function(){var S;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(f.CENTRAL_FILE_HEADER);)(S=new E({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(S);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var S=this.reader.lastIndexOfSignature(f.CENTRAL_DIRECTORY_END);if(S<0)throw this.isSignature(0,f.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(S);var _=S;if(this.checkSignature(f.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===B.MAX_VALUE_16BITS||this.diskWithCentralDirStart===B.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===B.MAX_VALUE_16BITS||this.centralDirRecords===B.MAX_VALUE_16BITS||this.centralDirSize===B.MAX_VALUE_32BITS||this.centralDirOffset===B.MAX_VALUE_32BITS){if(this.zip64=!0,(S=this.reader.lastIndexOfSignature(f.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(S),this.checkSignature(f.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,f.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(f.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(f.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var N=this.centralDirOffset+this.centralDirSize;this.zip64&&(N+=20,N+=12+this.zip64EndOfCentralSize);var R=_-N;if(0<R)this.isSignature(_,f.CENTRAL_FILE_HEADER)||(this.reader.zero=R);else if(R<0)throw new Error("Corrupted zip: missing "+Math.abs(R)+" bytes.")},prepareReader:function(S){this.reader=W(S)},load:function(S){this.prepareReader(S),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},Oe.exports=$},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(Q,Oe,ie){"use strict";var W=Q("./reader/readerFor"),B=Q("./utils"),f=Q("./compressedObject"),E=Q("./crc32"),h=Q("./utf8"),$=Q("./compressions"),S=Q("./support");function _(N,R){this.options=N,this.loadOptions=R}_.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(N){var R,I;if(N.skip(22),this.fileNameLength=N.readInt(2),I=N.readInt(2),this.fileName=N.readData(this.fileNameLength),N.skip(I),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((R=function(J){for(var K in $)if(Object.prototype.hasOwnProperty.call($,K)&&$[K].magic===J)return $[K];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+B.pretty(this.compressionMethod)+" unknown (inner file : "+B.transformTo("string",this.fileName)+")");this.decompressed=new f(this.compressedSize,this.uncompressedSize,this.crc32,R,N.readData(this.compressedSize))},readCentralPart:function(N){this.versionMadeBy=N.readInt(2),N.skip(2),this.bitFlag=N.readInt(2),this.compressionMethod=N.readString(2),this.date=N.readDate(),this.crc32=N.readInt(4),this.compressedSize=N.readInt(4),this.uncompressedSize=N.readInt(4);var R=N.readInt(2);if(this.extraFieldsLength=N.readInt(2),this.fileCommentLength=N.readInt(2),this.diskNumberStart=N.readInt(2),this.internalFileAttributes=N.readInt(2),this.externalFileAttributes=N.readInt(4),this.localHeaderOffset=N.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");N.skip(R),this.readExtraFields(N),this.parseZIP64ExtraField(N),this.fileComment=N.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var N=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),N==0&&(this.dosPermissions=63&this.externalFileAttributes),N==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var N=W(this.extraFields[1].value);this.uncompressedSize===B.MAX_VALUE_32BITS&&(this.uncompressedSize=N.readInt(8)),this.compressedSize===B.MAX_VALUE_32BITS&&(this.compressedSize=N.readInt(8)),this.localHeaderOffset===B.MAX_VALUE_32BITS&&(this.localHeaderOffset=N.readInt(8)),this.diskNumberStart===B.MAX_VALUE_32BITS&&(this.diskNumberStart=N.readInt(4))}},readExtraFields:function(N){var R,I,J,K=N.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});N.index+4<K;)R=N.readInt(2),I=N.readInt(2),J=N.readData(I),this.extraFields[R]={id:R,length:I,value:J};N.setIndex(K)},handleUTF8:function(){var N=S.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=h.utf8decode(this.fileName),this.fileCommentStr=h.utf8decode(this.fileComment);else{var R=this.findExtraFieldUnicodePath();if(R!==null)this.fileNameStr=R;else{var I=B.transformTo(N,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(I)}var J=this.findExtraFieldUnicodeComment();if(J!==null)this.fileCommentStr=J;else{var K=B.transformTo(N,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(K)}}},findExtraFieldUnicodePath:function(){var N=this.extraFields[28789];if(N){var R=W(N.value);return R.readInt(1)!==1||E(this.fileName)!==R.readInt(4)?null:h.utf8decode(R.readData(N.length-5))}return null},findExtraFieldUnicodeComment:function(){var N=this.extraFields[25461];if(N){var R=W(N.value);return R.readInt(1)!==1||E(this.fileComment)!==R.readInt(4)?null:h.utf8decode(R.readData(N.length-5))}return null}},Oe.exports=_},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(Q,Oe,ie){"use strict";function W(R,I,J){this.name=R,this.dir=J.dir,this.date=J.date,this.comment=J.comment,this.unixPermissions=J.unixPermissions,this.dosPermissions=J.dosPermissions,this._data=I,this._dataBinary=J.binary,this.options={compression:J.compression,compressionOptions:J.compressionOptions}}var B=Q("./stream/StreamHelper"),f=Q("./stream/DataWorker"),E=Q("./utf8"),h=Q("./compressedObject"),$=Q("./stream/GenericWorker");W.prototype={internalStream:function(R){var I=null,J="string";try{if(!R)throw new Error("No output type specified.");var K=(J=R.toLowerCase())==="string"||J==="text";J!=="binarystring"&&J!=="text"||(J="string"),I=this._decompressWorker();var se=!this._dataBinary;se&&!K&&(I=I.pipe(new E.Utf8EncodeWorker)),!se&&K&&(I=I.pipe(new E.Utf8DecodeWorker))}catch(te){(I=new $("error")).error(te)}return new B(I,J,"")},async:function(R,I){return this.internalStream(R).accumulate(I)},nodeStream:function(R,I){return this.internalStream(R||"nodebuffer").toNodejsStream(I)},_compressWorker:function(R,I){if(this._data instanceof h&&this._data.compression.magic===R.magic)return this._data.getCompressedWorker();var J=this._decompressWorker();return this._dataBinary||(J=J.pipe(new E.Utf8EncodeWorker)),h.createWorkerFrom(J,R,I)},_decompressWorker:function(){return this._data instanceof h?this._data.getContentWorker():this._data instanceof $?this._data:new f(this._data)}};for(var S=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],_=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},N=0;N<S.length;N++)W.prototype[S[N]]=_;Oe.exports=W},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(Q,Oe,ie){(function(W){"use strict";var B,f,E=W.MutationObserver||W.WebKitMutationObserver;if(E){var h=0,$=new E(R),S=W.document.createTextNode("");$.observe(S,{characterData:!0}),B=function(){S.data=h=++h%2}}else if(W.setImmediate||W.MessageChannel===void 0)B="document"in W&&"onreadystatechange"in W.document.createElement("script")?function(){var I=W.document.createElement("script");I.onreadystatechange=function(){R(),I.onreadystatechange=null,I.parentNode.removeChild(I),I=null},W.document.documentElement.appendChild(I)}:function(){setTimeout(R,0)};else{var _=new W.MessageChannel;_.port1.onmessage=R,B=function(){_.port2.postMessage(0)}}var N=[];function R(){var I,J;f=!0;for(var K=N.length;K;){for(J=N,N=[],I=-1;++I<K;)J[I]();K=N.length}f=!1}Oe.exports=function(I){N.push(I)!==1||f||B()}}).call(this,typeof x.g!="undefined"?x.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(Q,Oe,ie){"use strict";var W=Q("immediate");function B(){}var f={},E=["REJECTED"],h=["FULFILLED"],$=["PENDING"];function S(K){if(typeof K!="function")throw new TypeError("resolver must be a function");this.state=$,this.queue=[],this.outcome=void 0,K!==B&&I(this,K)}function _(K,se,te){this.promise=K,typeof se=="function"&&(this.onFulfilled=se,this.callFulfilled=this.otherCallFulfilled),typeof te=="function"&&(this.onRejected=te,this.callRejected=this.otherCallRejected)}function N(K,se,te){W(function(){var G;try{G=se(te)}catch(V){return f.reject(K,V)}G===K?f.reject(K,new TypeError("Cannot resolve promise with itself")):f.resolve(K,G)})}function R(K){var se=K&&K.then;if(K&&(typeof K=="object"||typeof K=="function")&&typeof se=="function")return function(){se.apply(K,arguments)}}function I(K,se){var te=!1;function G(le){te||(te=!0,f.reject(K,le))}function V(le){te||(te=!0,f.resolve(K,le))}var j=J(function(){se(V,G)});j.status==="error"&&G(j.value)}function J(K,se){var te={};try{te.value=K(se),te.status="success"}catch(G){te.status="error",te.value=G}return te}(Oe.exports=S).prototype.finally=function(K){if(typeof K!="function")return this;var se=this.constructor;return this.then(function(te){return se.resolve(K()).then(function(){return te})},function(te){return se.resolve(K()).then(function(){throw te})})},S.prototype.catch=function(K){return this.then(null,K)},S.prototype.then=function(K,se){if(typeof K!="function"&&this.state===h||typeof se!="function"&&this.state===E)return this;var te=new this.constructor(B);return this.state!==$?N(te,this.state===h?K:se,this.outcome):this.queue.push(new _(te,K,se)),te},_.prototype.callFulfilled=function(K){f.resolve(this.promise,K)},_.prototype.otherCallFulfilled=function(K){N(this.promise,this.onFulfilled,K)},_.prototype.callRejected=function(K){f.reject(this.promise,K)},_.prototype.otherCallRejected=function(K){N(this.promise,this.onRejected,K)},f.resolve=function(K,se){var te=J(R,se);if(te.status==="error")return f.reject(K,te.value);var G=te.value;if(G)I(K,G);else{K.state=h,K.outcome=se;for(var V=-1,j=K.queue.length;++V<j;)K.queue[V].callFulfilled(se)}return K},f.reject=function(K,se){K.state=E,K.outcome=se;for(var te=-1,G=K.queue.length;++te<G;)K.queue[te].callRejected(se);return K},S.resolve=function(K){return K instanceof this?K:f.resolve(new this(B),K)},S.reject=function(K){var se=new this(B);return f.reject(se,K)},S.all=function(K){var se=this;if(Object.prototype.toString.call(K)!=="[object Array]")return this.reject(new TypeError("must be an array"));var te=K.length,G=!1;if(!te)return this.resolve([]);for(var V=new Array(te),j=0,le=-1,he=new this(B);++le<te;)Ne(K[le],le);return he;function Ne(Be,je){se.resolve(Be).then(function(q){V[je]=q,++j!==te||G||(G=!0,f.resolve(he,V))},function(q){G||(G=!0,f.reject(he,q))})}},S.race=function(K){var se=this;if(Object.prototype.toString.call(K)!=="[object Array]")return this.reject(new TypeError("must be an array"));var te=K.length,G=!1;if(!te)return this.resolve([]);for(var V=-1,j=new this(B);++V<te;)le=K[V],se.resolve(le).then(function(he){G||(G=!0,f.resolve(j,he))},function(he){G||(G=!0,f.reject(j,he))});var le;return j}},{immediate:36}],38:[function(Q,Oe,ie){"use strict";var W={};(0,Q("./lib/utils/common").assign)(W,Q("./lib/deflate"),Q("./lib/inflate"),Q("./lib/zlib/constants")),Oe.exports=W},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(Q,Oe,ie){"use strict";var W=Q("./zlib/deflate"),B=Q("./utils/common"),f=Q("./utils/strings"),E=Q("./zlib/messages"),h=Q("./zlib/zstream"),$=Object.prototype.toString,S=0,_=-1,N=0,R=8;function I(K){if(!(this instanceof I))return new I(K);this.options=B.assign({level:_,method:R,chunkSize:16384,windowBits:15,memLevel:8,strategy:N,to:""},K||{});var se=this.options;se.raw&&0<se.windowBits?se.windowBits=-se.windowBits:se.gzip&&0<se.windowBits&&se.windowBits<16&&(se.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var te=W.deflateInit2(this.strm,se.level,se.method,se.windowBits,se.memLevel,se.strategy);if(te!==S)throw new Error(E[te]);if(se.header&&W.deflateSetHeader(this.strm,se.header),se.dictionary){var G;if(G=typeof se.dictionary=="string"?f.string2buf(se.dictionary):$.call(se.dictionary)==="[object ArrayBuffer]"?new Uint8Array(se.dictionary):se.dictionary,(te=W.deflateSetDictionary(this.strm,G))!==S)throw new Error(E[te]);this._dict_set=!0}}function J(K,se){var te=new I(se);if(te.push(K,!0),te.err)throw te.msg||E[te.err];return te.result}I.prototype.push=function(K,se){var te,G,V=this.strm,j=this.options.chunkSize;if(this.ended)return!1;G=se===~~se?se:se===!0?4:0,typeof K=="string"?V.input=f.string2buf(K):$.call(K)==="[object ArrayBuffer]"?V.input=new Uint8Array(K):V.input=K,V.next_in=0,V.avail_in=V.input.length;do{if(V.avail_out===0&&(V.output=new B.Buf8(j),V.next_out=0,V.avail_out=j),(te=W.deflate(V,G))!==1&&te!==S)return this.onEnd(te),!(this.ended=!0);V.avail_out!==0&&(V.avail_in!==0||G!==4&&G!==2)||(this.options.to==="string"?this.onData(f.buf2binstring(B.shrinkBuf(V.output,V.next_out))):this.onData(B.shrinkBuf(V.output,V.next_out)))}while((0<V.avail_in||V.avail_out===0)&&te!==1);return G===4?(te=W.deflateEnd(this.strm),this.onEnd(te),this.ended=!0,te===S):G!==2||(this.onEnd(S),!(V.avail_out=0))},I.prototype.onData=function(K){this.chunks.push(K)},I.prototype.onEnd=function(K){K===S&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=B.flattenChunks(this.chunks)),this.chunks=[],this.err=K,this.msg=this.strm.msg},ie.Deflate=I,ie.deflate=J,ie.deflateRaw=function(K,se){return(se=se||{}).raw=!0,J(K,se)},ie.gzip=function(K,se){return(se=se||{}).gzip=!0,J(K,se)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(Q,Oe,ie){"use strict";var W=Q("./zlib/inflate"),B=Q("./utils/common"),f=Q("./utils/strings"),E=Q("./zlib/constants"),h=Q("./zlib/messages"),$=Q("./zlib/zstream"),S=Q("./zlib/gzheader"),_=Object.prototype.toString;function N(I){if(!(this instanceof N))return new N(I);this.options=B.assign({chunkSize:16384,windowBits:0,to:""},I||{});var J=this.options;J.raw&&0<=J.windowBits&&J.windowBits<16&&(J.windowBits=-J.windowBits,J.windowBits===0&&(J.windowBits=-15)),!(0<=J.windowBits&&J.windowBits<16)||I&&I.windowBits||(J.windowBits+=32),15<J.windowBits&&J.windowBits<48&&!(15&J.windowBits)&&(J.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $,this.strm.avail_out=0;var K=W.inflateInit2(this.strm,J.windowBits);if(K!==E.Z_OK)throw new Error(h[K]);this.header=new S,W.inflateGetHeader(this.strm,this.header)}function R(I,J){var K=new N(J);if(K.push(I,!0),K.err)throw K.msg||h[K.err];return K.result}N.prototype.push=function(I,J){var K,se,te,G,V,j,le=this.strm,he=this.options.chunkSize,Ne=this.options.dictionary,Be=!1;if(this.ended)return!1;se=J===~~J?J:J===!0?E.Z_FINISH:E.Z_NO_FLUSH,typeof I=="string"?le.input=f.binstring2buf(I):_.call(I)==="[object ArrayBuffer]"?le.input=new Uint8Array(I):le.input=I,le.next_in=0,le.avail_in=le.input.length;do{if(le.avail_out===0&&(le.output=new B.Buf8(he),le.next_out=0,le.avail_out=he),(K=W.inflate(le,E.Z_NO_FLUSH))===E.Z_NEED_DICT&&Ne&&(j=typeof Ne=="string"?f.string2buf(Ne):_.call(Ne)==="[object ArrayBuffer]"?new Uint8Array(Ne):Ne,K=W.inflateSetDictionary(this.strm,j)),K===E.Z_BUF_ERROR&&Be===!0&&(K=E.Z_OK,Be=!1),K!==E.Z_STREAM_END&&K!==E.Z_OK)return this.onEnd(K),!(this.ended=!0);le.next_out&&(le.avail_out!==0&&K!==E.Z_STREAM_END&&(le.avail_in!==0||se!==E.Z_FINISH&&se!==E.Z_SYNC_FLUSH)||(this.options.to==="string"?(te=f.utf8border(le.output,le.next_out),G=le.next_out-te,V=f.buf2string(le.output,te),le.next_out=G,le.avail_out=he-G,G&&B.arraySet(le.output,le.output,te,G,0),this.onData(V)):this.onData(B.shrinkBuf(le.output,le.next_out)))),le.avail_in===0&&le.avail_out===0&&(Be=!0)}while((0<le.avail_in||le.avail_out===0)&&K!==E.Z_STREAM_END);return K===E.Z_STREAM_END&&(se=E.Z_FINISH),se===E.Z_FINISH?(K=W.inflateEnd(this.strm),this.onEnd(K),this.ended=!0,K===E.Z_OK):se!==E.Z_SYNC_FLUSH||(this.onEnd(E.Z_OK),!(le.avail_out=0))},N.prototype.onData=function(I){this.chunks.push(I)},N.prototype.onEnd=function(I){I===E.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=B.flattenChunks(this.chunks)),this.chunks=[],this.err=I,this.msg=this.strm.msg},ie.Inflate=N,ie.inflate=R,ie.inflateRaw=function(I,J){return(J=J||{}).raw=!0,R(I,J)},ie.ungzip=R},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(Q,Oe,ie){"use strict";var W=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";ie.assign=function(E){for(var h=Array.prototype.slice.call(arguments,1);h.length;){var $=h.shift();if($){if(typeof $!="object")throw new TypeError($+"must be non-object");for(var S in $)$.hasOwnProperty(S)&&(E[S]=$[S])}}return E},ie.shrinkBuf=function(E,h){return E.length===h?E:E.subarray?E.subarray(0,h):(E.length=h,E)};var B={arraySet:function(E,h,$,S,_){if(h.subarray&&E.subarray)E.set(h.subarray($,$+S),_);else for(var N=0;N<S;N++)E[_+N]=h[$+N]},flattenChunks:function(E){var h,$,S,_,N,R;for(h=S=0,$=E.length;h<$;h++)S+=E[h].length;for(R=new Uint8Array(S),h=_=0,$=E.length;h<$;h++)N=E[h],R.set(N,_),_+=N.length;return R}},f={arraySet:function(E,h,$,S,_){for(var N=0;N<S;N++)E[_+N]=h[$+N]},flattenChunks:function(E){return[].concat.apply([],E)}};ie.setTyped=function(E){E?(ie.Buf8=Uint8Array,ie.Buf16=Uint16Array,ie.Buf32=Int32Array,ie.assign(ie,B)):(ie.Buf8=Array,ie.Buf16=Array,ie.Buf32=Array,ie.assign(ie,f))},ie.setTyped(W)},{}],42:[function(Q,Oe,ie){"use strict";var W=Q("./common"),B=!0,f=!0;try{String.fromCharCode.apply(null,[0])}catch(S){B=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(S){f=!1}for(var E=new W.Buf8(256),h=0;h<256;h++)E[h]=252<=h?6:248<=h?5:240<=h?4:224<=h?3:192<=h?2:1;function $(S,_){if(_<65537&&(S.subarray&&f||!S.subarray&&B))return String.fromCharCode.apply(null,W.shrinkBuf(S,_));for(var N="",R=0;R<_;R++)N+=String.fromCharCode(S[R]);return N}E[254]=E[254]=1,ie.string2buf=function(S){var _,N,R,I,J,K=S.length,se=0;for(I=0;I<K;I++)(64512&(N=S.charCodeAt(I)))==55296&&I+1<K&&(64512&(R=S.charCodeAt(I+1)))==56320&&(N=65536+(N-55296<<10)+(R-56320),I++),se+=N<128?1:N<2048?2:N<65536?3:4;for(_=new W.Buf8(se),I=J=0;J<se;I++)(64512&(N=S.charCodeAt(I)))==55296&&I+1<K&&(64512&(R=S.charCodeAt(I+1)))==56320&&(N=65536+(N-55296<<10)+(R-56320),I++),N<128?_[J++]=N:(N<2048?_[J++]=192|N>>>6:(N<65536?_[J++]=224|N>>>12:(_[J++]=240|N>>>18,_[J++]=128|N>>>12&63),_[J++]=128|N>>>6&63),_[J++]=128|63&N);return _},ie.buf2binstring=function(S){return $(S,S.length)},ie.binstring2buf=function(S){for(var _=new W.Buf8(S.length),N=0,R=_.length;N<R;N++)_[N]=S.charCodeAt(N);return _},ie.buf2string=function(S,_){var N,R,I,J,K=_||S.length,se=new Array(2*K);for(N=R=0;N<K;)if((I=S[N++])<128)se[R++]=I;else if(4<(J=E[I]))se[R++]=65533,N+=J-1;else{for(I&=J===2?31:J===3?15:7;1<J&&N<K;)I=I<<6|63&S[N++],J--;1<J?se[R++]=65533:I<65536?se[R++]=I:(I-=65536,se[R++]=55296|I>>10&1023,se[R++]=56320|1023&I)}return $(se,R)},ie.utf8border=function(S,_){var N;for((_=_||S.length)>S.length&&(_=S.length),N=_-1;0<=N&&(192&S[N])==128;)N--;return N<0||N===0?_:N+E[S[N]]>_?N:_}},{"./common":41}],43:[function(Q,Oe,ie){"use strict";Oe.exports=function(W,B,f,E){for(var h=65535&W|0,$=W>>>16&65535|0,S=0;f!==0;){for(f-=S=2e3<f?2e3:f;$=$+(h=h+B[E++]|0)|0,--S;);h%=65521,$%=65521}return h|$<<16|0}},{}],44:[function(Q,Oe,ie){"use strict";Oe.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(Q,Oe,ie){"use strict";var W=function(){for(var B,f=[],E=0;E<256;E++){B=E;for(var h=0;h<8;h++)B=1&B?3988292384^B>>>1:B>>>1;f[E]=B}return f}();Oe.exports=function(B,f,E,h){var $=W,S=h+E;B^=-1;for(var _=h;_<S;_++)B=B>>>8^$[255&(B^f[_])];return-1^B}},{}],46:[function(Q,Oe,ie){"use strict";var W,B=Q("../utils/common"),f=Q("./trees"),E=Q("./adler32"),h=Q("./crc32"),$=Q("./messages"),S=0,_=4,N=0,R=-2,I=-1,J=4,K=2,se=8,te=9,G=286,V=30,j=19,le=2*G+1,he=15,Ne=3,Be=258,je=Be+Ne+1,q=42,ce=113,D=1,ot=2,ke=3,Ce=4;function Qe(L,it){return L.msg=$[it],it}function ve(L){return(L<<1)-(4<L?9:0)}function Pe(L){for(var it=L.length;0<=--it;)L[it]=0}function fe(L){var it=L.state,k=it.pending;k>L.avail_out&&(k=L.avail_out),k!==0&&(B.arraySet(L.output,it.pending_buf,it.pending_out,k,L.next_out),L.next_out+=k,it.pending_out+=k,L.total_out+=k,L.avail_out-=k,it.pending-=k,it.pending===0&&(it.pending_out=0))}function ye(L,it){f._tr_flush_block(L,0<=L.block_start?L.block_start:-1,L.strstart-L.block_start,it),L.block_start=L.strstart,fe(L.strm)}function at(L,it){L.pending_buf[L.pending++]=it}function rt(L,it){L.pending_buf[L.pending++]=it>>>8&255,L.pending_buf[L.pending++]=255&it}function nt(L,it){var k,p,d=L.max_chain_length,w=L.strstart,Y=L.prev_length,Ee=L.nice_match,H=L.strstart>L.w_size-je?L.strstart-(L.w_size-je):0,ne=L.window,Ge=L.w_mask,xe=L.prev,we=L.strstart+Be,qe=ne[w+Y-1],Et=ne[w+Y];L.prev_length>=L.good_match&&(d>>=2),Ee>L.lookahead&&(Ee=L.lookahead);do if(ne[(k=it)+Y]===Et&&ne[k+Y-1]===qe&&ne[k]===ne[w]&&ne[++k]===ne[w+1]){w+=2,k++;do;while(ne[++w]===ne[++k]&&ne[++w]===ne[++k]&&ne[++w]===ne[++k]&&ne[++w]===ne[++k]&&ne[++w]===ne[++k]&&ne[++w]===ne[++k]&&ne[++w]===ne[++k]&&ne[++w]===ne[++k]&&w<we);if(p=Be-(we-w),w=we-Be,Y<p){if(L.match_start=it,Ee<=(Y=p))break;qe=ne[w+Y-1],Et=ne[w+Y]}}while((it=xe[it&Ge])>H&&--d!=0);return Y<=L.lookahead?Y:L.lookahead}function ut(L){var it,k,p,d,w,Y,Ee,H,ne,Ge,xe=L.w_size;do{if(d=L.window_size-L.lookahead-L.strstart,L.strstart>=xe+(xe-je)){for(B.arraySet(L.window,L.window,xe,xe,0),L.match_start-=xe,L.strstart-=xe,L.block_start-=xe,it=k=L.hash_size;p=L.head[--it],L.head[it]=xe<=p?p-xe:0,--k;);for(it=k=xe;p=L.prev[--it],L.prev[it]=xe<=p?p-xe:0,--k;);d+=xe}if(L.strm.avail_in===0)break;if(Y=L.strm,Ee=L.window,H=L.strstart+L.lookahead,ne=d,Ge=void 0,Ge=Y.avail_in,ne<Ge&&(Ge=ne),k=Ge===0?0:(Y.avail_in-=Ge,B.arraySet(Ee,Y.input,Y.next_in,Ge,H),Y.state.wrap===1?Y.adler=E(Y.adler,Ee,Ge,H):Y.state.wrap===2&&(Y.adler=h(Y.adler,Ee,Ge,H)),Y.next_in+=Ge,Y.total_in+=Ge,Ge),L.lookahead+=k,L.lookahead+L.insert>=Ne)for(w=L.strstart-L.insert,L.ins_h=L.window[w],L.ins_h=(L.ins_h<<L.hash_shift^L.window[w+1])&L.hash_mask;L.insert&&(L.ins_h=(L.ins_h<<L.hash_shift^L.window[w+Ne-1])&L.hash_mask,L.prev[w&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=w,w++,L.insert--,!(L.lookahead+L.insert<Ne)););}while(L.lookahead<je&&L.strm.avail_in!==0)}function Pt(L,it){for(var k,p;;){if(L.lookahead<je){if(ut(L),L.lookahead<je&&it===S)return D;if(L.lookahead===0)break}if(k=0,L.lookahead>=Ne&&(L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+Ne-1])&L.hash_mask,k=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart),k!==0&&L.strstart-k<=L.w_size-je&&(L.match_length=nt(L,k)),L.match_length>=Ne)if(p=f._tr_tally(L,L.strstart-L.match_start,L.match_length-Ne),L.lookahead-=L.match_length,L.match_length<=L.max_lazy_match&&L.lookahead>=Ne){for(L.match_length--;L.strstart++,L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+Ne-1])&L.hash_mask,k=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart,--L.match_length!=0;);L.strstart++}else L.strstart+=L.match_length,L.match_length=0,L.ins_h=L.window[L.strstart],L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+1])&L.hash_mask;else p=f._tr_tally(L,0,L.window[L.strstart]),L.lookahead--,L.strstart++;if(p&&(ye(L,!1),L.strm.avail_out===0))return D}return L.insert=L.strstart<Ne-1?L.strstart:Ne-1,it===_?(ye(L,!0),L.strm.avail_out===0?ke:Ce):L.last_lit&&(ye(L,!1),L.strm.avail_out===0)?D:ot}function Ht(L,it){for(var k,p,d;;){if(L.lookahead<je){if(ut(L),L.lookahead<je&&it===S)return D;if(L.lookahead===0)break}if(k=0,L.lookahead>=Ne&&(L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+Ne-1])&L.hash_mask,k=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart),L.prev_length=L.match_length,L.prev_match=L.match_start,L.match_length=Ne-1,k!==0&&L.prev_length<L.max_lazy_match&&L.strstart-k<=L.w_size-je&&(L.match_length=nt(L,k),L.match_length<=5&&(L.strategy===1||L.match_length===Ne&&4096<L.strstart-L.match_start)&&(L.match_length=Ne-1)),L.prev_length>=Ne&&L.match_length<=L.prev_length){for(d=L.strstart+L.lookahead-Ne,p=f._tr_tally(L,L.strstart-1-L.prev_match,L.prev_length-Ne),L.lookahead-=L.prev_length-1,L.prev_length-=2;++L.strstart<=d&&(L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+Ne-1])&L.hash_mask,k=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart),--L.prev_length!=0;);if(L.match_available=0,L.match_length=Ne-1,L.strstart++,p&&(ye(L,!1),L.strm.avail_out===0))return D}else if(L.match_available){if((p=f._tr_tally(L,0,L.window[L.strstart-1]))&&ye(L,!1),L.strstart++,L.lookahead--,L.strm.avail_out===0)return D}else L.match_available=1,L.strstart++,L.lookahead--}return L.match_available&&(p=f._tr_tally(L,0,L.window[L.strstart-1]),L.match_available=0),L.insert=L.strstart<Ne-1?L.strstart:Ne-1,it===_?(ye(L,!0),L.strm.avail_out===0?ke:Ce):L.last_lit&&(ye(L,!1),L.strm.avail_out===0)?D:ot}function Ut(L,it,k,p,d){this.good_length=L,this.max_lazy=it,this.nice_length=k,this.max_chain=p,this.func=d}function cr(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=se,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new B.Buf16(2*le),this.dyn_dtree=new B.Buf16(2*(2*V+1)),this.bl_tree=new B.Buf16(2*(2*j+1)),Pe(this.dyn_ltree),Pe(this.dyn_dtree),Pe(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new B.Buf16(he+1),this.heap=new B.Buf16(2*G+1),Pe(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new B.Buf16(2*G+1),Pe(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function or(L){var it;return L&&L.state?(L.total_in=L.total_out=0,L.data_type=K,(it=L.state).pending=0,it.pending_out=0,it.wrap<0&&(it.wrap=-it.wrap),it.status=it.wrap?q:ce,L.adler=it.wrap===2?0:1,it.last_flush=S,f._tr_init(it),N):Qe(L,R)}function Cr(L){var it=or(L);return it===N&&function(k){k.window_size=2*k.w_size,Pe(k.head),k.max_lazy_match=W[k.level].max_lazy,k.good_match=W[k.level].good_length,k.nice_match=W[k.level].nice_length,k.max_chain_length=W[k.level].max_chain,k.strstart=0,k.block_start=0,k.lookahead=0,k.insert=0,k.match_length=k.prev_length=Ne-1,k.match_available=0,k.ins_h=0}(L.state),it}function hr(L,it,k,p,d,w){if(!L)return R;var Y=1;if(it===I&&(it=6),p<0?(Y=0,p=-p):15<p&&(Y=2,p-=16),d<1||te<d||k!==se||p<8||15<p||it<0||9<it||w<0||J<w)return Qe(L,R);p===8&&(p=9);var Ee=new cr;return(L.state=Ee).strm=L,Ee.wrap=Y,Ee.gzhead=null,Ee.w_bits=p,Ee.w_size=1<<Ee.w_bits,Ee.w_mask=Ee.w_size-1,Ee.hash_bits=d+7,Ee.hash_size=1<<Ee.hash_bits,Ee.hash_mask=Ee.hash_size-1,Ee.hash_shift=~~((Ee.hash_bits+Ne-1)/Ne),Ee.window=new B.Buf8(2*Ee.w_size),Ee.head=new B.Buf16(Ee.hash_size),Ee.prev=new B.Buf16(Ee.w_size),Ee.lit_bufsize=1<<d+6,Ee.pending_buf_size=4*Ee.lit_bufsize,Ee.pending_buf=new B.Buf8(Ee.pending_buf_size),Ee.d_buf=1*Ee.lit_bufsize,Ee.l_buf=3*Ee.lit_bufsize,Ee.level=it,Ee.strategy=w,Ee.method=k,Cr(L)}W=[new Ut(0,0,0,0,function(L,it){var k=65535;for(k>L.pending_buf_size-5&&(k=L.pending_buf_size-5);;){if(L.lookahead<=1){if(ut(L),L.lookahead===0&&it===S)return D;if(L.lookahead===0)break}L.strstart+=L.lookahead,L.lookahead=0;var p=L.block_start+k;if((L.strstart===0||L.strstart>=p)&&(L.lookahead=L.strstart-p,L.strstart=p,ye(L,!1),L.strm.avail_out===0)||L.strstart-L.block_start>=L.w_size-je&&(ye(L,!1),L.strm.avail_out===0))return D}return L.insert=0,it===_?(ye(L,!0),L.strm.avail_out===0?ke:Ce):(L.strstart>L.block_start&&(ye(L,!1),L.strm.avail_out),D)}),new Ut(4,4,8,4,Pt),new Ut(4,5,16,8,Pt),new Ut(4,6,32,32,Pt),new Ut(4,4,16,16,Ht),new Ut(8,16,32,32,Ht),new Ut(8,16,128,128,Ht),new Ut(8,32,128,256,Ht),new Ut(32,128,258,1024,Ht),new Ut(32,258,258,4096,Ht)],ie.deflateInit=function(L,it){return hr(L,it,se,15,8,0)},ie.deflateInit2=hr,ie.deflateReset=Cr,ie.deflateResetKeep=or,ie.deflateSetHeader=function(L,it){return L&&L.state?L.state.wrap!==2?R:(L.state.gzhead=it,N):R},ie.deflate=function(L,it){var k,p,d,w;if(!L||!L.state||5<it||it<0)return L?Qe(L,R):R;if(p=L.state,!L.output||!L.input&&L.avail_in!==0||p.status===666&&it!==_)return Qe(L,L.avail_out===0?-5:R);if(p.strm=L,k=p.last_flush,p.last_flush=it,p.status===q)if(p.wrap===2)L.adler=0,at(p,31),at(p,139),at(p,8),p.gzhead?(at(p,(p.gzhead.text?1:0)+(p.gzhead.hcrc?2:0)+(p.gzhead.extra?4:0)+(p.gzhead.name?8:0)+(p.gzhead.comment?16:0)),at(p,255&p.gzhead.time),at(p,p.gzhead.time>>8&255),at(p,p.gzhead.time>>16&255),at(p,p.gzhead.time>>24&255),at(p,p.level===9?2:2<=p.strategy||p.level<2?4:0),at(p,255&p.gzhead.os),p.gzhead.extra&&p.gzhead.extra.length&&(at(p,255&p.gzhead.extra.length),at(p,p.gzhead.extra.length>>8&255)),p.gzhead.hcrc&&(L.adler=h(L.adler,p.pending_buf,p.pending,0)),p.gzindex=0,p.status=69):(at(p,0),at(p,0),at(p,0),at(p,0),at(p,0),at(p,p.level===9?2:2<=p.strategy||p.level<2?4:0),at(p,3),p.status=ce);else{var Y=se+(p.w_bits-8<<4)<<8;Y|=(2<=p.strategy||p.level<2?0:p.level<6?1:p.level===6?2:3)<<6,p.strstart!==0&&(Y|=32),Y+=31-Y%31,p.status=ce,rt(p,Y),p.strstart!==0&&(rt(p,L.adler>>>16),rt(p,65535&L.adler)),L.adler=1}if(p.status===69)if(p.gzhead.extra){for(d=p.pending;p.gzindex<(65535&p.gzhead.extra.length)&&(p.pending!==p.pending_buf_size||(p.gzhead.hcrc&&p.pending>d&&(L.adler=h(L.adler,p.pending_buf,p.pending-d,d)),fe(L),d=p.pending,p.pending!==p.pending_buf_size));)at(p,255&p.gzhead.extra[p.gzindex]),p.gzindex++;p.gzhead.hcrc&&p.pending>d&&(L.adler=h(L.adler,p.pending_buf,p.pending-d,d)),p.gzindex===p.gzhead.extra.length&&(p.gzindex=0,p.status=73)}else p.status=73;if(p.status===73)if(p.gzhead.name){d=p.pending;do{if(p.pending===p.pending_buf_size&&(p.gzhead.hcrc&&p.pending>d&&(L.adler=h(L.adler,p.pending_buf,p.pending-d,d)),fe(L),d=p.pending,p.pending===p.pending_buf_size)){w=1;break}w=p.gzindex<p.gzhead.name.length?255&p.gzhead.name.charCodeAt(p.gzindex++):0,at(p,w)}while(w!==0);p.gzhead.hcrc&&p.pending>d&&(L.adler=h(L.adler,p.pending_buf,p.pending-d,d)),w===0&&(p.gzindex=0,p.status=91)}else p.status=91;if(p.status===91)if(p.gzhead.comment){d=p.pending;do{if(p.pending===p.pending_buf_size&&(p.gzhead.hcrc&&p.pending>d&&(L.adler=h(L.adler,p.pending_buf,p.pending-d,d)),fe(L),d=p.pending,p.pending===p.pending_buf_size)){w=1;break}w=p.gzindex<p.gzhead.comment.length?255&p.gzhead.comment.charCodeAt(p.gzindex++):0,at(p,w)}while(w!==0);p.gzhead.hcrc&&p.pending>d&&(L.adler=h(L.adler,p.pending_buf,p.pending-d,d)),w===0&&(p.status=103)}else p.status=103;if(p.status===103&&(p.gzhead.hcrc?(p.pending+2>p.pending_buf_size&&fe(L),p.pending+2<=p.pending_buf_size&&(at(p,255&L.adler),at(p,L.adler>>8&255),L.adler=0,p.status=ce)):p.status=ce),p.pending!==0){if(fe(L),L.avail_out===0)return p.last_flush=-1,N}else if(L.avail_in===0&&ve(it)<=ve(k)&&it!==_)return Qe(L,-5);if(p.status===666&&L.avail_in!==0)return Qe(L,-5);if(L.avail_in!==0||p.lookahead!==0||it!==S&&p.status!==666){var Ee=p.strategy===2?function(H,ne){for(var Ge;;){if(H.lookahead===0&&(ut(H),H.lookahead===0)){if(ne===S)return D;break}if(H.match_length=0,Ge=f._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++,Ge&&(ye(H,!1),H.strm.avail_out===0))return D}return H.insert=0,ne===_?(ye(H,!0),H.strm.avail_out===0?ke:Ce):H.last_lit&&(ye(H,!1),H.strm.avail_out===0)?D:ot}(p,it):p.strategy===3?function(H,ne){for(var Ge,xe,we,qe,Et=H.window;;){if(H.lookahead<=Be){if(ut(H),H.lookahead<=Be&&ne===S)return D;if(H.lookahead===0)break}if(H.match_length=0,H.lookahead>=Ne&&0<H.strstart&&(xe=Et[we=H.strstart-1])===Et[++we]&&xe===Et[++we]&&xe===Et[++we]){qe=H.strstart+Be;do;while(xe===Et[++we]&&xe===Et[++we]&&xe===Et[++we]&&xe===Et[++we]&&xe===Et[++we]&&xe===Et[++we]&&xe===Et[++we]&&xe===Et[++we]&&we<qe);H.match_length=Be-(qe-we),H.match_length>H.lookahead&&(H.match_length=H.lookahead)}if(H.match_length>=Ne?(Ge=f._tr_tally(H,1,H.match_length-Ne),H.lookahead-=H.match_length,H.strstart+=H.match_length,H.match_length=0):(Ge=f._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++),Ge&&(ye(H,!1),H.strm.avail_out===0))return D}return H.insert=0,ne===_?(ye(H,!0),H.strm.avail_out===0?ke:Ce):H.last_lit&&(ye(H,!1),H.strm.avail_out===0)?D:ot}(p,it):W[p.level].func(p,it);if(Ee!==ke&&Ee!==Ce||(p.status=666),Ee===D||Ee===ke)return L.avail_out===0&&(p.last_flush=-1),N;if(Ee===ot&&(it===1?f._tr_align(p):it!==5&&(f._tr_stored_block(p,0,0,!1),it===3&&(Pe(p.head),p.lookahead===0&&(p.strstart=0,p.block_start=0,p.insert=0))),fe(L),L.avail_out===0))return p.last_flush=-1,N}return it!==_?N:p.wrap<=0?1:(p.wrap===2?(at(p,255&L.adler),at(p,L.adler>>8&255),at(p,L.adler>>16&255),at(p,L.adler>>24&255),at(p,255&L.total_in),at(p,L.total_in>>8&255),at(p,L.total_in>>16&255),at(p,L.total_in>>24&255)):(rt(p,L.adler>>>16),rt(p,65535&L.adler)),fe(L),0<p.wrap&&(p.wrap=-p.wrap),p.pending!==0?N:1)},ie.deflateEnd=function(L){var it;return L&&L.state?(it=L.state.status)!==q&&it!==69&&it!==73&&it!==91&&it!==103&&it!==ce&&it!==666?Qe(L,R):(L.state=null,it===ce?Qe(L,-3):N):R},ie.deflateSetDictionary=function(L,it){var k,p,d,w,Y,Ee,H,ne,Ge=it.length;if(!L||!L.state||(w=(k=L.state).wrap)===2||w===1&&k.status!==q||k.lookahead)return R;for(w===1&&(L.adler=E(L.adler,it,Ge,0)),k.wrap=0,Ge>=k.w_size&&(w===0&&(Pe(k.head),k.strstart=0,k.block_start=0,k.insert=0),ne=new B.Buf8(k.w_size),B.arraySet(ne,it,Ge-k.w_size,k.w_size,0),it=ne,Ge=k.w_size),Y=L.avail_in,Ee=L.next_in,H=L.input,L.avail_in=Ge,L.next_in=0,L.input=it,ut(k);k.lookahead>=Ne;){for(p=k.strstart,d=k.lookahead-(Ne-1);k.ins_h=(k.ins_h<<k.hash_shift^k.window[p+Ne-1])&k.hash_mask,k.prev[p&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=p,p++,--d;);k.strstart=p,k.lookahead=Ne-1,ut(k)}return k.strstart+=k.lookahead,k.block_start=k.strstart,k.insert=k.lookahead,k.lookahead=0,k.match_length=k.prev_length=Ne-1,k.match_available=0,L.next_in=Ee,L.input=H,L.avail_in=Y,k.wrap=w,N},ie.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(Q,Oe,ie){"use strict";Oe.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(Q,Oe,ie){"use strict";Oe.exports=function(W,B){var f,E,h,$,S,_,N,R,I,J,K,se,te,G,V,j,le,he,Ne,Be,je,q,ce,D,ot;f=W.state,E=W.next_in,D=W.input,h=E+(W.avail_in-5),$=W.next_out,ot=W.output,S=$-(B-W.avail_out),_=$+(W.avail_out-257),N=f.dmax,R=f.wsize,I=f.whave,J=f.wnext,K=f.window,se=f.hold,te=f.bits,G=f.lencode,V=f.distcode,j=(1<<f.lenbits)-1,le=(1<<f.distbits)-1;e:do{te<15&&(se+=D[E++]<<te,te+=8,se+=D[E++]<<te,te+=8),he=G[se&j];t:for(;;){if(se>>>=Ne=he>>>24,te-=Ne,(Ne=he>>>16&255)===0)ot[$++]=65535&he;else{if(!(16&Ne)){if(!(64&Ne)){he=G[(65535&he)+(se&(1<<Ne)-1)];continue t}if(32&Ne){f.mode=12;break e}W.msg="invalid literal/length code",f.mode=30;break e}Be=65535&he,(Ne&=15)&&(te<Ne&&(se+=D[E++]<<te,te+=8),Be+=se&(1<<Ne)-1,se>>>=Ne,te-=Ne),te<15&&(se+=D[E++]<<te,te+=8,se+=D[E++]<<te,te+=8),he=V[se&le];r:for(;;){if(se>>>=Ne=he>>>24,te-=Ne,!(16&(Ne=he>>>16&255))){if(!(64&Ne)){he=V[(65535&he)+(se&(1<<Ne)-1)];continue r}W.msg="invalid distance code",f.mode=30;break e}if(je=65535&he,te<(Ne&=15)&&(se+=D[E++]<<te,(te+=8)<Ne&&(se+=D[E++]<<te,te+=8)),N<(je+=se&(1<<Ne)-1)){W.msg="invalid distance too far back",f.mode=30;break e}if(se>>>=Ne,te-=Ne,(Ne=$-S)<je){if(I<(Ne=je-Ne)&&f.sane){W.msg="invalid distance too far back",f.mode=30;break e}if(ce=K,(q=0)===J){if(q+=R-Ne,Ne<Be){for(Be-=Ne;ot[$++]=K[q++],--Ne;);q=$-je,ce=ot}}else if(J<Ne){if(q+=R+J-Ne,(Ne-=J)<Be){for(Be-=Ne;ot[$++]=K[q++],--Ne;);if(q=0,J<Be){for(Be-=Ne=J;ot[$++]=K[q++],--Ne;);q=$-je,ce=ot}}}else if(q+=J-Ne,Ne<Be){for(Be-=Ne;ot[$++]=K[q++],--Ne;);q=$-je,ce=ot}for(;2<Be;)ot[$++]=ce[q++],ot[$++]=ce[q++],ot[$++]=ce[q++],Be-=3;Be&&(ot[$++]=ce[q++],1<Be&&(ot[$++]=ce[q++]))}else{for(q=$-je;ot[$++]=ot[q++],ot[$++]=ot[q++],ot[$++]=ot[q++],2<(Be-=3););Be&&(ot[$++]=ot[q++],1<Be&&(ot[$++]=ot[q++]))}break}}break}}while(E<h&&$<_);E-=Be=te>>3,se&=(1<<(te-=Be<<3))-1,W.next_in=E,W.next_out=$,W.avail_in=E<h?h-E+5:5-(E-h),W.avail_out=$<_?_-$+257:257-($-_),f.hold=se,f.bits=te}},{}],49:[function(Q,Oe,ie){"use strict";var W=Q("../utils/common"),B=Q("./adler32"),f=Q("./crc32"),E=Q("./inffast"),h=Q("./inftrees"),$=1,S=2,_=0,N=-2,R=1,I=852,J=592;function K(q){return(q>>>24&255)+(q>>>8&65280)+((65280&q)<<8)+((255&q)<<24)}function se(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new W.Buf16(320),this.work=new W.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function te(q){var ce;return q&&q.state?(ce=q.state,q.total_in=q.total_out=ce.total=0,q.msg="",ce.wrap&&(q.adler=1&ce.wrap),ce.mode=R,ce.last=0,ce.havedict=0,ce.dmax=32768,ce.head=null,ce.hold=0,ce.bits=0,ce.lencode=ce.lendyn=new W.Buf32(I),ce.distcode=ce.distdyn=new W.Buf32(J),ce.sane=1,ce.back=-1,_):N}function G(q){var ce;return q&&q.state?((ce=q.state).wsize=0,ce.whave=0,ce.wnext=0,te(q)):N}function V(q,ce){var D,ot;return q&&q.state?(ot=q.state,ce<0?(D=0,ce=-ce):(D=1+(ce>>4),ce<48&&(ce&=15)),ce&&(ce<8||15<ce)?N:(ot.window!==null&&ot.wbits!==ce&&(ot.window=null),ot.wrap=D,ot.wbits=ce,G(q))):N}function j(q,ce){var D,ot;return q?(ot=new se,(q.state=ot).window=null,(D=V(q,ce))!==_&&(q.state=null),D):N}var le,he,Ne=!0;function Be(q){if(Ne){var ce;for(le=new W.Buf32(512),he=new W.Buf32(32),ce=0;ce<144;)q.lens[ce++]=8;for(;ce<256;)q.lens[ce++]=9;for(;ce<280;)q.lens[ce++]=7;for(;ce<288;)q.lens[ce++]=8;for(h($,q.lens,0,288,le,0,q.work,{bits:9}),ce=0;ce<32;)q.lens[ce++]=5;h(S,q.lens,0,32,he,0,q.work,{bits:5}),Ne=!1}q.lencode=le,q.lenbits=9,q.distcode=he,q.distbits=5}function je(q,ce,D,ot){var ke,Ce=q.state;return Ce.window===null&&(Ce.wsize=1<<Ce.wbits,Ce.wnext=0,Ce.whave=0,Ce.window=new W.Buf8(Ce.wsize)),ot>=Ce.wsize?(W.arraySet(Ce.window,ce,D-Ce.wsize,Ce.wsize,0),Ce.wnext=0,Ce.whave=Ce.wsize):(ot<(ke=Ce.wsize-Ce.wnext)&&(ke=ot),W.arraySet(Ce.window,ce,D-ot,ke,Ce.wnext),(ot-=ke)?(W.arraySet(Ce.window,ce,D-ot,ot,0),Ce.wnext=ot,Ce.whave=Ce.wsize):(Ce.wnext+=ke,Ce.wnext===Ce.wsize&&(Ce.wnext=0),Ce.whave<Ce.wsize&&(Ce.whave+=ke))),0}ie.inflateReset=G,ie.inflateReset2=V,ie.inflateResetKeep=te,ie.inflateInit=function(q){return j(q,15)},ie.inflateInit2=j,ie.inflate=function(q,ce){var D,ot,ke,Ce,Qe,ve,Pe,fe,ye,at,rt,nt,ut,Pt,Ht,Ut,cr,or,Cr,hr,L,it,k,p,d=0,w=new W.Buf8(4),Y=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!q||!q.state||!q.output||!q.input&&q.avail_in!==0)return N;(D=q.state).mode===12&&(D.mode=13),Qe=q.next_out,ke=q.output,Pe=q.avail_out,Ce=q.next_in,ot=q.input,ve=q.avail_in,fe=D.hold,ye=D.bits,at=ve,rt=Pe,it=_;e:for(;;)switch(D.mode){case R:if(D.wrap===0){D.mode=13;break}for(;ye<16;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}if(2&D.wrap&&fe===35615){w[D.check=0]=255&fe,w[1]=fe>>>8&255,D.check=f(D.check,w,2,0),ye=fe=0,D.mode=2;break}if(D.flags=0,D.head&&(D.head.done=!1),!(1&D.wrap)||(((255&fe)<<8)+(fe>>8))%31){q.msg="incorrect header check",D.mode=30;break}if((15&fe)!=8){q.msg="unknown compression method",D.mode=30;break}if(ye-=4,L=8+(15&(fe>>>=4)),D.wbits===0)D.wbits=L;else if(L>D.wbits){q.msg="invalid window size",D.mode=30;break}D.dmax=1<<L,q.adler=D.check=1,D.mode=512&fe?10:12,ye=fe=0;break;case 2:for(;ye<16;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}if(D.flags=fe,(255&D.flags)!=8){q.msg="unknown compression method",D.mode=30;break}if(57344&D.flags){q.msg="unknown header flags set",D.mode=30;break}D.head&&(D.head.text=fe>>8&1),512&D.flags&&(w[0]=255&fe,w[1]=fe>>>8&255,D.check=f(D.check,w,2,0)),ye=fe=0,D.mode=3;case 3:for(;ye<32;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}D.head&&(D.head.time=fe),512&D.flags&&(w[0]=255&fe,w[1]=fe>>>8&255,w[2]=fe>>>16&255,w[3]=fe>>>24&255,D.check=f(D.check,w,4,0)),ye=fe=0,D.mode=4;case 4:for(;ye<16;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}D.head&&(D.head.xflags=255&fe,D.head.os=fe>>8),512&D.flags&&(w[0]=255&fe,w[1]=fe>>>8&255,D.check=f(D.check,w,2,0)),ye=fe=0,D.mode=5;case 5:if(1024&D.flags){for(;ye<16;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}D.length=fe,D.head&&(D.head.extra_len=fe),512&D.flags&&(w[0]=255&fe,w[1]=fe>>>8&255,D.check=f(D.check,w,2,0)),ye=fe=0}else D.head&&(D.head.extra=null);D.mode=6;case 6:if(1024&D.flags&&(ve<(nt=D.length)&&(nt=ve),nt&&(D.head&&(L=D.head.extra_len-D.length,D.head.extra||(D.head.extra=new Array(D.head.extra_len)),W.arraySet(D.head.extra,ot,Ce,nt,L)),512&D.flags&&(D.check=f(D.check,ot,nt,Ce)),ve-=nt,Ce+=nt,D.length-=nt),D.length))break e;D.length=0,D.mode=7;case 7:if(2048&D.flags){if(ve===0)break e;for(nt=0;L=ot[Ce+nt++],D.head&&L&&D.length<65536&&(D.head.name+=String.fromCharCode(L)),L&&nt<ve;);if(512&D.flags&&(D.check=f(D.check,ot,nt,Ce)),ve-=nt,Ce+=nt,L)break e}else D.head&&(D.head.name=null);D.length=0,D.mode=8;case 8:if(4096&D.flags){if(ve===0)break e;for(nt=0;L=ot[Ce+nt++],D.head&&L&&D.length<65536&&(D.head.comment+=String.fromCharCode(L)),L&&nt<ve;);if(512&D.flags&&(D.check=f(D.check,ot,nt,Ce)),ve-=nt,Ce+=nt,L)break e}else D.head&&(D.head.comment=null);D.mode=9;case 9:if(512&D.flags){for(;ye<16;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}if(fe!==(65535&D.check)){q.msg="header crc mismatch",D.mode=30;break}ye=fe=0}D.head&&(D.head.hcrc=D.flags>>9&1,D.head.done=!0),q.adler=D.check=0,D.mode=12;break;case 10:for(;ye<32;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}q.adler=D.check=K(fe),ye=fe=0,D.mode=11;case 11:if(D.havedict===0)return q.next_out=Qe,q.avail_out=Pe,q.next_in=Ce,q.avail_in=ve,D.hold=fe,D.bits=ye,2;q.adler=D.check=1,D.mode=12;case 12:if(ce===5||ce===6)break e;case 13:if(D.last){fe>>>=7&ye,ye-=7&ye,D.mode=27;break}for(;ye<3;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}switch(D.last=1&fe,ye-=1,3&(fe>>>=1)){case 0:D.mode=14;break;case 1:if(Be(D),D.mode=20,ce!==6)break;fe>>>=2,ye-=2;break e;case 2:D.mode=17;break;case 3:q.msg="invalid block type",D.mode=30}fe>>>=2,ye-=2;break;case 14:for(fe>>>=7&ye,ye-=7&ye;ye<32;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}if((65535&fe)!=(fe>>>16^65535)){q.msg="invalid stored block lengths",D.mode=30;break}if(D.length=65535&fe,ye=fe=0,D.mode=15,ce===6)break e;case 15:D.mode=16;case 16:if(nt=D.length){if(ve<nt&&(nt=ve),Pe<nt&&(nt=Pe),nt===0)break e;W.arraySet(ke,ot,Ce,nt,Qe),ve-=nt,Ce+=nt,Pe-=nt,Qe+=nt,D.length-=nt;break}D.mode=12;break;case 17:for(;ye<14;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}if(D.nlen=257+(31&fe),fe>>>=5,ye-=5,D.ndist=1+(31&fe),fe>>>=5,ye-=5,D.ncode=4+(15&fe),fe>>>=4,ye-=4,286<D.nlen||30<D.ndist){q.msg="too many length or distance symbols",D.mode=30;break}D.have=0,D.mode=18;case 18:for(;D.have<D.ncode;){for(;ye<3;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}D.lens[Y[D.have++]]=7&fe,fe>>>=3,ye-=3}for(;D.have<19;)D.lens[Y[D.have++]]=0;if(D.lencode=D.lendyn,D.lenbits=7,k={bits:D.lenbits},it=h(0,D.lens,0,19,D.lencode,0,D.work,k),D.lenbits=k.bits,it){q.msg="invalid code lengths set",D.mode=30;break}D.have=0,D.mode=19;case 19:for(;D.have<D.nlen+D.ndist;){for(;Ut=(d=D.lencode[fe&(1<<D.lenbits)-1])>>>16&255,cr=65535&d,!((Ht=d>>>24)<=ye);){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}if(cr<16)fe>>>=Ht,ye-=Ht,D.lens[D.have++]=cr;else{if(cr===16){for(p=Ht+2;ye<p;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}if(fe>>>=Ht,ye-=Ht,D.have===0){q.msg="invalid bit length repeat",D.mode=30;break}L=D.lens[D.have-1],nt=3+(3&fe),fe>>>=2,ye-=2}else if(cr===17){for(p=Ht+3;ye<p;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}ye-=Ht,L=0,nt=3+(7&(fe>>>=Ht)),fe>>>=3,ye-=3}else{for(p=Ht+7;ye<p;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}ye-=Ht,L=0,nt=11+(127&(fe>>>=Ht)),fe>>>=7,ye-=7}if(D.have+nt>D.nlen+D.ndist){q.msg="invalid bit length repeat",D.mode=30;break}for(;nt--;)D.lens[D.have++]=L}}if(D.mode===30)break;if(D.lens[256]===0){q.msg="invalid code -- missing end-of-block",D.mode=30;break}if(D.lenbits=9,k={bits:D.lenbits},it=h($,D.lens,0,D.nlen,D.lencode,0,D.work,k),D.lenbits=k.bits,it){q.msg="invalid literal/lengths set",D.mode=30;break}if(D.distbits=6,D.distcode=D.distdyn,k={bits:D.distbits},it=h(S,D.lens,D.nlen,D.ndist,D.distcode,0,D.work,k),D.distbits=k.bits,it){q.msg="invalid distances set",D.mode=30;break}if(D.mode=20,ce===6)break e;case 20:D.mode=21;case 21:if(6<=ve&&258<=Pe){q.next_out=Qe,q.avail_out=Pe,q.next_in=Ce,q.avail_in=ve,D.hold=fe,D.bits=ye,E(q,rt),Qe=q.next_out,ke=q.output,Pe=q.avail_out,Ce=q.next_in,ot=q.input,ve=q.avail_in,fe=D.hold,ye=D.bits,D.mode===12&&(D.back=-1);break}for(D.back=0;Ut=(d=D.lencode[fe&(1<<D.lenbits)-1])>>>16&255,cr=65535&d,!((Ht=d>>>24)<=ye);){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}if(Ut&&!(240&Ut)){for(or=Ht,Cr=Ut,hr=cr;Ut=(d=D.lencode[hr+((fe&(1<<or+Cr)-1)>>or)])>>>16&255,cr=65535&d,!(or+(Ht=d>>>24)<=ye);){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}fe>>>=or,ye-=or,D.back+=or}if(fe>>>=Ht,ye-=Ht,D.back+=Ht,D.length=cr,Ut===0){D.mode=26;break}if(32&Ut){D.back=-1,D.mode=12;break}if(64&Ut){q.msg="invalid literal/length code",D.mode=30;break}D.extra=15&Ut,D.mode=22;case 22:if(D.extra){for(p=D.extra;ye<p;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}D.length+=fe&(1<<D.extra)-1,fe>>>=D.extra,ye-=D.extra,D.back+=D.extra}D.was=D.length,D.mode=23;case 23:for(;Ut=(d=D.distcode[fe&(1<<D.distbits)-1])>>>16&255,cr=65535&d,!((Ht=d>>>24)<=ye);){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}if(!(240&Ut)){for(or=Ht,Cr=Ut,hr=cr;Ut=(d=D.distcode[hr+((fe&(1<<or+Cr)-1)>>or)])>>>16&255,cr=65535&d,!(or+(Ht=d>>>24)<=ye);){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}fe>>>=or,ye-=or,D.back+=or}if(fe>>>=Ht,ye-=Ht,D.back+=Ht,64&Ut){q.msg="invalid distance code",D.mode=30;break}D.offset=cr,D.extra=15&Ut,D.mode=24;case 24:if(D.extra){for(p=D.extra;ye<p;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}D.offset+=fe&(1<<D.extra)-1,fe>>>=D.extra,ye-=D.extra,D.back+=D.extra}if(D.offset>D.dmax){q.msg="invalid distance too far back",D.mode=30;break}D.mode=25;case 25:if(Pe===0)break e;if(nt=rt-Pe,D.offset>nt){if((nt=D.offset-nt)>D.whave&&D.sane){q.msg="invalid distance too far back",D.mode=30;break}ut=nt>D.wnext?(nt-=D.wnext,D.wsize-nt):D.wnext-nt,nt>D.length&&(nt=D.length),Pt=D.window}else Pt=ke,ut=Qe-D.offset,nt=D.length;for(Pe<nt&&(nt=Pe),Pe-=nt,D.length-=nt;ke[Qe++]=Pt[ut++],--nt;);D.length===0&&(D.mode=21);break;case 26:if(Pe===0)break e;ke[Qe++]=D.length,Pe--,D.mode=21;break;case 27:if(D.wrap){for(;ye<32;){if(ve===0)break e;ve--,fe|=ot[Ce++]<<ye,ye+=8}if(rt-=Pe,q.total_out+=rt,D.total+=rt,rt&&(q.adler=D.check=D.flags?f(D.check,ke,rt,Qe-rt):B(D.check,ke,rt,Qe-rt)),rt=Pe,(D.flags?fe:K(fe))!==D.check){q.msg="incorrect data check",D.mode=30;break}ye=fe=0}D.mode=28;case 28:if(D.wrap&&D.flags){for(;ye<32;){if(ve===0)break e;ve--,fe+=ot[Ce++]<<ye,ye+=8}if(fe!==(4294967295&D.total)){q.msg="incorrect length check",D.mode=30;break}ye=fe=0}D.mode=29;case 29:it=1;break e;case 30:it=-3;break e;case 31:return-4;case 32:default:return N}return q.next_out=Qe,q.avail_out=Pe,q.next_in=Ce,q.avail_in=ve,D.hold=fe,D.bits=ye,(D.wsize||rt!==q.avail_out&&D.mode<30&&(D.mode<27||ce!==4))&&je(q,q.output,q.next_out,rt-q.avail_out)?(D.mode=31,-4):(at-=q.avail_in,rt-=q.avail_out,q.total_in+=at,q.total_out+=rt,D.total+=rt,D.wrap&&rt&&(q.adler=D.check=D.flags?f(D.check,ke,rt,q.next_out-rt):B(D.check,ke,rt,q.next_out-rt)),q.data_type=D.bits+(D.last?64:0)+(D.mode===12?128:0)+(D.mode===20||D.mode===15?256:0),(at==0&&rt===0||ce===4)&&it===_&&(it=-5),it)},ie.inflateEnd=function(q){if(!q||!q.state)return N;var ce=q.state;return ce.window&&(ce.window=null),q.state=null,_},ie.inflateGetHeader=function(q,ce){var D;return q&&q.state&&2&(D=q.state).wrap?((D.head=ce).done=!1,_):N},ie.inflateSetDictionary=function(q,ce){var D,ot=ce.length;return q&&q.state?(D=q.state).wrap!==0&&D.mode!==11?N:D.mode===11&&B(1,ce,ot,0)!==D.check?-3:je(q,ce,ot,ot)?(D.mode=31,-4):(D.havedict=1,_):N},ie.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(Q,Oe,ie){"use strict";var W=Q("../utils/common"),B=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],f=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],E=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],h=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];Oe.exports=function($,S,_,N,R,I,J,K){var se,te,G,V,j,le,he,Ne,Be,je=K.bits,q=0,ce=0,D=0,ot=0,ke=0,Ce=0,Qe=0,ve=0,Pe=0,fe=0,ye=null,at=0,rt=new W.Buf16(16),nt=new W.Buf16(16),ut=null,Pt=0;for(q=0;q<=15;q++)rt[q]=0;for(ce=0;ce<N;ce++)rt[S[_+ce]]++;for(ke=je,ot=15;1<=ot&&rt[ot]===0;ot--);if(ot<ke&&(ke=ot),ot===0)return R[I++]=20971520,R[I++]=20971520,K.bits=1,0;for(D=1;D<ot&&rt[D]===0;D++);for(ke<D&&(ke=D),q=ve=1;q<=15;q++)if(ve<<=1,(ve-=rt[q])<0)return-1;if(0<ve&&($===0||ot!==1))return-1;for(nt[1]=0,q=1;q<15;q++)nt[q+1]=nt[q]+rt[q];for(ce=0;ce<N;ce++)S[_+ce]!==0&&(J[nt[S[_+ce]]++]=ce);if(le=$===0?(ye=ut=J,19):$===1?(ye=B,at-=257,ut=f,Pt-=257,256):(ye=E,ut=h,-1),q=D,j=I,Qe=ce=fe=0,G=-1,V=(Pe=1<<(Ce=ke))-1,$===1&&852<Pe||$===2&&592<Pe)return 1;for(;;){for(he=q-Qe,Be=J[ce]<le?(Ne=0,J[ce]):J[ce]>le?(Ne=ut[Pt+J[ce]],ye[at+J[ce]]):(Ne=96,0),se=1<<q-Qe,D=te=1<<Ce;R[j+(fe>>Qe)+(te-=se)]=he<<24|Ne<<16|Be|0,te!==0;);for(se=1<<q-1;fe&se;)se>>=1;if(se!==0?(fe&=se-1,fe+=se):fe=0,ce++,--rt[q]==0){if(q===ot)break;q=S[_+J[ce]]}if(ke<q&&(fe&V)!==G){for(Qe===0&&(Qe=ke),j+=D,ve=1<<(Ce=q-Qe);Ce+Qe<ot&&!((ve-=rt[Ce+Qe])<=0);)Ce++,ve<<=1;if(Pe+=1<<Ce,$===1&&852<Pe||$===2&&592<Pe)return 1;R[G=fe&V]=ke<<24|Ce<<16|j-I|0}}return fe!==0&&(R[j+fe]=q-Qe<<24|64<<16|0),K.bits=ke,0}},{"../utils/common":41}],51:[function(Q,Oe,ie){"use strict";Oe.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(Q,Oe,ie){"use strict";var W=Q("../utils/common"),B=0,f=1;function E(d){for(var w=d.length;0<=--w;)d[w]=0}var h=0,$=29,S=256,_=S+1+$,N=30,R=19,I=2*_+1,J=15,K=16,se=7,te=256,G=16,V=17,j=18,le=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],he=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Ne=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Be=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],je=new Array(2*(_+2));E(je);var q=new Array(2*N);E(q);var ce=new Array(512);E(ce);var D=new Array(256);E(D);var ot=new Array($);E(ot);var ke,Ce,Qe,ve=new Array(N);function Pe(d,w,Y,Ee,H){this.static_tree=d,this.extra_bits=w,this.extra_base=Y,this.elems=Ee,this.max_length=H,this.has_stree=d&&d.length}function fe(d,w){this.dyn_tree=d,this.max_code=0,this.stat_desc=w}function ye(d){return d<256?ce[d]:ce[256+(d>>>7)]}function at(d,w){d.pending_buf[d.pending++]=255&w,d.pending_buf[d.pending++]=w>>>8&255}function rt(d,w,Y){d.bi_valid>K-Y?(d.bi_buf|=w<<d.bi_valid&65535,at(d,d.bi_buf),d.bi_buf=w>>K-d.bi_valid,d.bi_valid+=Y-K):(d.bi_buf|=w<<d.bi_valid&65535,d.bi_valid+=Y)}function nt(d,w,Y){rt(d,Y[2*w],Y[2*w+1])}function ut(d,w){for(var Y=0;Y|=1&d,d>>>=1,Y<<=1,0<--w;);return Y>>>1}function Pt(d,w,Y){var Ee,H,ne=new Array(J+1),Ge=0;for(Ee=1;Ee<=J;Ee++)ne[Ee]=Ge=Ge+Y[Ee-1]<<1;for(H=0;H<=w;H++){var xe=d[2*H+1];xe!==0&&(d[2*H]=ut(ne[xe]++,xe))}}function Ht(d){var w;for(w=0;w<_;w++)d.dyn_ltree[2*w]=0;for(w=0;w<N;w++)d.dyn_dtree[2*w]=0;for(w=0;w<R;w++)d.bl_tree[2*w]=0;d.dyn_ltree[2*te]=1,d.opt_len=d.static_len=0,d.last_lit=d.matches=0}function Ut(d){8<d.bi_valid?at(d,d.bi_buf):0<d.bi_valid&&(d.pending_buf[d.pending++]=d.bi_buf),d.bi_buf=0,d.bi_valid=0}function cr(d,w,Y,Ee){var H=2*w,ne=2*Y;return d[H]<d[ne]||d[H]===d[ne]&&Ee[w]<=Ee[Y]}function or(d,w,Y){for(var Ee=d.heap[Y],H=Y<<1;H<=d.heap_len&&(H<d.heap_len&&cr(w,d.heap[H+1],d.heap[H],d.depth)&&H++,!cr(w,Ee,d.heap[H],d.depth));)d.heap[Y]=d.heap[H],Y=H,H<<=1;d.heap[Y]=Ee}function Cr(d,w,Y){var Ee,H,ne,Ge,xe=0;if(d.last_lit!==0)for(;Ee=d.pending_buf[d.d_buf+2*xe]<<8|d.pending_buf[d.d_buf+2*xe+1],H=d.pending_buf[d.l_buf+xe],xe++,Ee===0?nt(d,H,w):(nt(d,(ne=D[H])+S+1,w),(Ge=le[ne])!==0&&rt(d,H-=ot[ne],Ge),nt(d,ne=ye(--Ee),Y),(Ge=he[ne])!==0&&rt(d,Ee-=ve[ne],Ge)),xe<d.last_lit;);nt(d,te,w)}function hr(d,w){var Y,Ee,H,ne=w.dyn_tree,Ge=w.stat_desc.static_tree,xe=w.stat_desc.has_stree,we=w.stat_desc.elems,qe=-1;for(d.heap_len=0,d.heap_max=I,Y=0;Y<we;Y++)ne[2*Y]!==0?(d.heap[++d.heap_len]=qe=Y,d.depth[Y]=0):ne[2*Y+1]=0;for(;d.heap_len<2;)ne[2*(H=d.heap[++d.heap_len]=qe<2?++qe:0)]=1,d.depth[H]=0,d.opt_len--,xe&&(d.static_len-=Ge[2*H+1]);for(w.max_code=qe,Y=d.heap_len>>1;1<=Y;Y--)or(d,ne,Y);for(H=we;Y=d.heap[1],d.heap[1]=d.heap[d.heap_len--],or(d,ne,1),Ee=d.heap[1],d.heap[--d.heap_max]=Y,d.heap[--d.heap_max]=Ee,ne[2*H]=ne[2*Y]+ne[2*Ee],d.depth[H]=(d.depth[Y]>=d.depth[Ee]?d.depth[Y]:d.depth[Ee])+1,ne[2*Y+1]=ne[2*Ee+1]=H,d.heap[1]=H++,or(d,ne,1),2<=d.heap_len;);d.heap[--d.heap_max]=d.heap[1],function(Et,pe){var dt,At,Me,De,gt,jt,Tt=pe.dyn_tree,ir=pe.max_code,Fr=pe.stat_desc.static_tree,Pr=pe.stat_desc.has_stree,Hr=pe.stat_desc.extra_bits,Rr=pe.stat_desc.extra_base,sr=pe.stat_desc.max_length,lr=0;for(De=0;De<=J;De++)Et.bl_count[De]=0;for(Tt[2*Et.heap[Et.heap_max]+1]=0,dt=Et.heap_max+1;dt<I;dt++)sr<(De=Tt[2*Tt[2*(At=Et.heap[dt])+1]+1]+1)&&(De=sr,lr++),Tt[2*At+1]=De,ir<At||(Et.bl_count[De]++,gt=0,Rr<=At&&(gt=Hr[At-Rr]),jt=Tt[2*At],Et.opt_len+=jt*(De+gt),Pr&&(Et.static_len+=jt*(Fr[2*At+1]+gt)));if(lr!==0){do{for(De=sr-1;Et.bl_count[De]===0;)De--;Et.bl_count[De]--,Et.bl_count[De+1]+=2,Et.bl_count[sr]--,lr-=2}while(0<lr);for(De=sr;De!==0;De--)for(At=Et.bl_count[De];At!==0;)ir<(Me=Et.heap[--dt])||(Tt[2*Me+1]!==De&&(Et.opt_len+=(De-Tt[2*Me+1])*Tt[2*Me],Tt[2*Me+1]=De),At--)}}(d,w),Pt(ne,qe,d.bl_count)}function L(d,w,Y){var Ee,H,ne=-1,Ge=w[1],xe=0,we=7,qe=4;for(Ge===0&&(we=138,qe=3),w[2*(Y+1)+1]=65535,Ee=0;Ee<=Y;Ee++)H=Ge,Ge=w[2*(Ee+1)+1],++xe<we&&H===Ge||(xe<qe?d.bl_tree[2*H]+=xe:H!==0?(H!==ne&&d.bl_tree[2*H]++,d.bl_tree[2*G]++):xe<=10?d.bl_tree[2*V]++:d.bl_tree[2*j]++,ne=H,qe=(xe=0)===Ge?(we=138,3):H===Ge?(we=6,3):(we=7,4))}function it(d,w,Y){var Ee,H,ne=-1,Ge=w[1],xe=0,we=7,qe=4;for(Ge===0&&(we=138,qe=3),Ee=0;Ee<=Y;Ee++)if(H=Ge,Ge=w[2*(Ee+1)+1],!(++xe<we&&H===Ge)){if(xe<qe)for(;nt(d,H,d.bl_tree),--xe!=0;);else H!==0?(H!==ne&&(nt(d,H,d.bl_tree),xe--),nt(d,G,d.bl_tree),rt(d,xe-3,2)):xe<=10?(nt(d,V,d.bl_tree),rt(d,xe-3,3)):(nt(d,j,d.bl_tree),rt(d,xe-11,7));ne=H,qe=(xe=0)===Ge?(we=138,3):H===Ge?(we=6,3):(we=7,4)}}E(ve);var k=!1;function p(d,w,Y,Ee){rt(d,(h<<1)+(Ee?1:0),3),function(H,ne,Ge,xe){Ut(H),xe&&(at(H,Ge),at(H,~Ge)),W.arraySet(H.pending_buf,H.window,ne,Ge,H.pending),H.pending+=Ge}(d,w,Y,!0)}ie._tr_init=function(d){k||(function(){var w,Y,Ee,H,ne,Ge=new Array(J+1);for(H=Ee=0;H<$-1;H++)for(ot[H]=Ee,w=0;w<1<<le[H];w++)D[Ee++]=H;for(D[Ee-1]=H,H=ne=0;H<16;H++)for(ve[H]=ne,w=0;w<1<<he[H];w++)ce[ne++]=H;for(ne>>=7;H<N;H++)for(ve[H]=ne<<7,w=0;w<1<<he[H]-7;w++)ce[256+ne++]=H;for(Y=0;Y<=J;Y++)Ge[Y]=0;for(w=0;w<=143;)je[2*w+1]=8,w++,Ge[8]++;for(;w<=255;)je[2*w+1]=9,w++,Ge[9]++;for(;w<=279;)je[2*w+1]=7,w++,Ge[7]++;for(;w<=287;)je[2*w+1]=8,w++,Ge[8]++;for(Pt(je,_+1,Ge),w=0;w<N;w++)q[2*w+1]=5,q[2*w]=ut(w,5);ke=new Pe(je,le,S+1,_,J),Ce=new Pe(q,he,0,N,J),Qe=new Pe(new Array(0),Ne,0,R,se)}(),k=!0),d.l_desc=new fe(d.dyn_ltree,ke),d.d_desc=new fe(d.dyn_dtree,Ce),d.bl_desc=new fe(d.bl_tree,Qe),d.bi_buf=0,d.bi_valid=0,Ht(d)},ie._tr_stored_block=p,ie._tr_flush_block=function(d,w,Y,Ee){var H,ne,Ge=0;0<d.level?(d.strm.data_type===2&&(d.strm.data_type=function(xe){var we,qe=4093624447;for(we=0;we<=31;we++,qe>>>=1)if(1&qe&&xe.dyn_ltree[2*we]!==0)return B;if(xe.dyn_ltree[18]!==0||xe.dyn_ltree[20]!==0||xe.dyn_ltree[26]!==0)return f;for(we=32;we<S;we++)if(xe.dyn_ltree[2*we]!==0)return f;return B}(d)),hr(d,d.l_desc),hr(d,d.d_desc),Ge=function(xe){var we;for(L(xe,xe.dyn_ltree,xe.l_desc.max_code),L(xe,xe.dyn_dtree,xe.d_desc.max_code),hr(xe,xe.bl_desc),we=R-1;3<=we&&xe.bl_tree[2*Be[we]+1]===0;we--);return xe.opt_len+=3*(we+1)+5+5+4,we}(d),H=d.opt_len+3+7>>>3,(ne=d.static_len+3+7>>>3)<=H&&(H=ne)):H=ne=Y+5,Y+4<=H&&w!==-1?p(d,w,Y,Ee):d.strategy===4||ne===H?(rt(d,2+(Ee?1:0),3),Cr(d,je,q)):(rt(d,4+(Ee?1:0),3),function(xe,we,qe,Et){var pe;for(rt(xe,we-257,5),rt(xe,qe-1,5),rt(xe,Et-4,4),pe=0;pe<Et;pe++)rt(xe,xe.bl_tree[2*Be[pe]+1],3);it(xe,xe.dyn_ltree,we-1),it(xe,xe.dyn_dtree,qe-1)}(d,d.l_desc.max_code+1,d.d_desc.max_code+1,Ge+1),Cr(d,d.dyn_ltree,d.dyn_dtree)),Ht(d),Ee&&Ut(d)},ie._tr_tally=function(d,w,Y){return d.pending_buf[d.d_buf+2*d.last_lit]=w>>>8&255,d.pending_buf[d.d_buf+2*d.last_lit+1]=255&w,d.pending_buf[d.l_buf+d.last_lit]=255&Y,d.last_lit++,w===0?d.dyn_ltree[2*Y]++:(d.matches++,w--,d.dyn_ltree[2*(D[Y]+S+1)]++,d.dyn_dtree[2*ye(w)]++),d.last_lit===d.lit_bufsize-1},ie._tr_align=function(d){rt(d,2,3),nt(d,te,je),function(w){w.bi_valid===16?(at(w,w.bi_buf),w.bi_buf=0,w.bi_valid=0):8<=w.bi_valid&&(w.pending_buf[w.pending++]=255&w.bi_buf,w.bi_buf>>=8,w.bi_valid-=8)}(d)}},{"../utils/common":41}],53:[function(Q,Oe,ie){"use strict";Oe.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(Q,Oe,ie){(function(W){(function(B,f){"use strict";if(!B.setImmediate){var E,h,$,S,_=1,N={},R=!1,I=B.document,J=Object.getPrototypeOf&&Object.getPrototypeOf(B);J=J&&J.setTimeout?J:B,E={}.toString.call(B.process)==="[object process]"?function(G){de.nextTick(function(){se(G)})}:function(){if(B.postMessage&&!B.importScripts){var G=!0,V=B.onmessage;return B.onmessage=function(){G=!1},B.postMessage("","*"),B.onmessage=V,G}}()?(S="setImmediate$"+Math.random()+"$",B.addEventListener?B.addEventListener("message",te,!1):B.attachEvent("onmessage",te),function(G){B.postMessage(S+G,"*")}):B.MessageChannel?(($=new MessageChannel).port1.onmessage=function(G){se(G.data)},function(G){$.port2.postMessage(G)}):I&&"onreadystatechange"in I.createElement("script")?(h=I.documentElement,function(G){var V=I.createElement("script");V.onreadystatechange=function(){se(G),V.onreadystatechange=null,h.removeChild(V),V=null},h.appendChild(V)}):function(G){setTimeout(se,0,G)},J.setImmediate=function(G){typeof G!="function"&&(G=new Function(""+G));for(var V=new Array(arguments.length-1),j=0;j<V.length;j++)V[j]=arguments[j+1];var le={callback:G,args:V};return N[_]=le,E(_),_++},J.clearImmediate=K}function K(G){delete N[G]}function se(G){if(R)setTimeout(se,0,G);else{var V=N[G];if(V){R=!0;try{(function(j){var le=j.callback,he=j.args;switch(he.length){case 0:le();break;case 1:le(he[0]);break;case 2:le(he[0],he[1]);break;case 3:le(he[0],he[1],he[2]);break;default:le.apply(f,he)}})(V)}finally{K(G),R=!1}}}}function te(G){G.source===B&&typeof G.data=="string"&&G.data.indexOf(S)===0&&se(+G.data.slice(S.length))}})(typeof self=="undefined"?W===void 0?this:W:self)}).call(this,typeof x.g!="undefined"?x.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})},5630:function(xn,Yt,x){"use strict";var ge=x(72308),de=x(77321),Q=x(49618),Oe=x(52487),ie=x(74416),W=x(92310),B=x.n(W),f=x(18929),E=x(59301),h=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],$=(0,E.forwardRef)(function(S,_){var N,R=S.prefixCls,I=R===void 0?"rc-checkbox":R,J=S.className,K=S.style,se=S.checked,te=S.disabled,G=S.defaultChecked,V=G===void 0?!1:G,j=S.type,le=j===void 0?"checkbox":j,he=S.title,Ne=S.onChange,Be=(0,ie.Z)(S,h),je=(0,E.useRef)(null),q=(0,f.Z)(V,{value:se}),ce=(0,Oe.Z)(q,2),D=ce[0],ot=ce[1];(0,E.useImperativeHandle)(_,function(){return{focus:function(){var ve;(ve=je.current)===null||ve===void 0||ve.focus()},blur:function(){var ve;(ve=je.current)===null||ve===void 0||ve.blur()},input:je.current}});var ke=B()(I,J,(N={},(0,Q.Z)(N,"".concat(I,"-checked"),D),(0,Q.Z)(N,"".concat(I,"-disabled"),te),N)),Ce=function(ve){te||("checked"in S||ot(ve.target.checked),Ne==null||Ne({target:(0,de.Z)((0,de.Z)({},S),{},{type:le,checked:ve.target.checked}),stopPropagation:function(){ve.stopPropagation()},preventDefault:function(){ve.preventDefault()},nativeEvent:ve.nativeEvent}))};return E.createElement("span",{className:ke,title:he,style:K},E.createElement("input",(0,ge.Z)({},Be,{className:"".concat(I,"-input"),ref:je,onChange:Ce,disabled:te,checked:!!D,type:le})),E.createElement("span",{className:"".concat(I,"-inner")}))});Yt.Z=$},31561:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return le}});var ge=x(72308),de=x(49618),Q=x(52487),Oe=x(74416),ie=x(35593),W=x(92310),B=x.n(W),f=x(8654),E=x(59301),h=x(10228),$=x(16089),S=h.Z.ESC,_=h.Z.TAB;function N(he){var Ne=he.visible,Be=he.triggerRef,je=he.onVisibleChange,q=he.autoFocus,ce=he.overlayRef,D=E.useRef(!1),ot=function(){if(Ne){var ve,Pe;(ve=Be.current)===null||ve===void 0||(Pe=ve.focus)===null||Pe===void 0||Pe.call(ve),je==null||je(!1)}},ke=function(){var ve;return(ve=ce.current)!==null&&ve!==void 0&&ve.focus?(ce.current.focus(),D.current=!0,!0):!1},Ce=function(ve){switch(ve.keyCode){case S:ot();break;case _:{var Pe=!1;D.current||(Pe=ke()),Pe?ve.preventDefault():ot();break}}};E.useEffect(function(){return Ne?(window.addEventListener("keydown",Ce),q&&(0,$.Z)(ke,3),function(){window.removeEventListener("keydown",Ce),D.current=!1}):function(){D.current=!1}},[Ne])}var R=(0,E.forwardRef)(function(he,Ne){var Be=he.overlay,je=he.arrow,q=he.prefixCls,ce=(0,E.useMemo)(function(){var ot;return typeof Be=="function"?ot=Be():ot=Be,ot},[Be]),D=(0,f.sQ)(Ne,ce==null?void 0:ce.ref);return E.createElement(E.Fragment,null,je&&E.createElement("div",{className:"".concat(q,"-arrow")}),E.cloneElement(ce,{ref:(0,f.Yr)(ce)?D:void 0}))}),I=R,J={adjustX:1,adjustY:1},K=[0,0],se={topLeft:{points:["bl","tl"],overflow:J,offset:[0,-4],targetOffset:K},top:{points:["bc","tc"],overflow:J,offset:[0,-4],targetOffset:K},topRight:{points:["br","tr"],overflow:J,offset:[0,-4],targetOffset:K},bottomLeft:{points:["tl","bl"],overflow:J,offset:[0,4],targetOffset:K},bottom:{points:["tc","bc"],overflow:J,offset:[0,4],targetOffset:K},bottomRight:{points:["tr","br"],overflow:J,offset:[0,4],targetOffset:K}},te=se,G=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function V(he,Ne){var Be,je=he.arrow,q=je===void 0?!1:je,ce=he.prefixCls,D=ce===void 0?"rc-dropdown":ce,ot=he.transitionName,ke=he.animation,Ce=he.align,Qe=he.placement,ve=Qe===void 0?"bottomLeft":Qe,Pe=he.placements,fe=Pe===void 0?te:Pe,ye=he.getPopupContainer,at=he.showAction,rt=he.hideAction,nt=he.overlayClassName,ut=he.overlayStyle,Pt=he.visible,Ht=he.trigger,Ut=Ht===void 0?["hover"]:Ht,cr=he.autoFocus,or=he.overlay,Cr=he.children,hr=he.onVisibleChange,L=(0,Oe.Z)(he,G),it=E.useState(),k=(0,Q.Z)(it,2),p=k[0],d=k[1],w="visible"in he?Pt:p,Y=E.useRef(null),Ee=E.useRef(null),H=E.useRef(null);E.useImperativeHandle(Ne,function(){return Y.current});var ne=function(Me){d(Me),hr==null||hr(Me)};N({visible:w,triggerRef:H,onVisibleChange:ne,autoFocus:cr,overlayRef:Ee});var Ge=function(Me){var De=he.onOverlayClick;d(!1),De&&De(Me)},xe=function(){return E.createElement(I,{ref:Ee,overlay:or,prefixCls:D,arrow:q})},we=function(){return typeof or=="function"?xe:xe()},qe=function(){var Me=he.minOverlayWidthMatchTrigger,De=he.alignPoint;return"minOverlayWidthMatchTrigger"in he?Me:!De},Et=function(){var Me=he.openClassName;return Me!==void 0?Me:"".concat(D,"-open")},pe=E.cloneElement(Cr,{className:B()((Be=Cr.props)===null||Be===void 0?void 0:Be.className,w&&Et()),ref:(0,f.Yr)(Cr)?(0,f.sQ)(H,Cr.ref):void 0}),dt=rt;return!dt&&Ut.indexOf("contextMenu")!==-1&&(dt=["click"]),E.createElement(ie.Z,(0,ge.Z)({builtinPlacements:fe},L,{prefixCls:D,ref:Y,popupClassName:B()(nt,(0,de.Z)({},"".concat(D,"-show-arrow"),q)),popupStyle:ut,action:Ut,showAction:at,hideAction:dt,popupPlacement:ve,popupAlign:Ce,popupTransitionName:ot,popupAnimation:ke,popupVisible:w,stretch:qe()?"minWidth":"",popup:we(),onPopupVisibleChange:ne,onPopupClick:Ge,getPopupContainer:ye}),pe)}var j=E.forwardRef(V),le=j},93681:function(xn,Yt,x){"use strict";x.r(Yt),x.d(Yt,{BaseInput:function(){return h},default:function(){return se}});var ge=x(72308),de=x(77321),Q=x(49618),Oe=x(62853),ie=x(92310),W=x.n(ie),B=x(59301),f=x(5643),E=function(G){var V,j,le=G.inputElement,he=G.prefixCls,Ne=G.prefix,Be=G.suffix,je=G.addonBefore,q=G.addonAfter,ce=G.className,D=G.style,ot=G.disabled,ke=G.readOnly,Ce=G.focused,Qe=G.triggerFocus,ve=G.allowClear,Pe=G.value,fe=G.handleReset,ye=G.hidden,at=G.classes,rt=G.classNames,nt=G.dataAttrs,ut=G.styles,Pt=G.components,Ht=(Pt==null?void 0:Pt.affixWrapper)||"span",Ut=(Pt==null?void 0:Pt.groupWrapper)||"span",cr=(Pt==null?void 0:Pt.wrapper)||"span",or=(Pt==null?void 0:Pt.groupAddon)||"span",Cr=(0,B.useRef)(null),hr=function(xe){var we;(we=Cr.current)!==null&&we!==void 0&&we.contains(xe.target)&&(Qe==null||Qe())},L=function(){var xe;if(!ve)return null;var we=!ot&&!ke&&Pe,qe="".concat(he,"-clear-icon"),Et=(0,Oe.Z)(ve)==="object"&&ve!==null&&ve!==void 0&&ve.clearIcon?ve.clearIcon:"\u2716";return B.createElement("span",{onClick:fe,onMouseDown:function(dt){return dt.preventDefault()},className:W()(qe,(xe={},(0,Q.Z)(xe,"".concat(qe,"-hidden"),!we),(0,Q.Z)(xe,"".concat(qe,"-has-suffix"),!!Be),xe)),role:"button",tabIndex:-1},Et)},it=(0,B.cloneElement)(le,{value:Pe,hidden:ye,className:W()((V=le.props)===null||V===void 0?void 0:V.className,!(0,f.X3)(G)&&!(0,f.He)(G)&&ce)||null,style:(0,de.Z)((0,de.Z)({},(j=le.props)===null||j===void 0?void 0:j.style),!(0,f.X3)(G)&&!(0,f.He)(G)?D:{})});if((0,f.X3)(G)){var k,p="".concat(he,"-affix-wrapper"),d=W()(p,(k={},(0,Q.Z)(k,"".concat(p,"-disabled"),ot),(0,Q.Z)(k,"".concat(p,"-focused"),Ce),(0,Q.Z)(k,"".concat(p,"-readonly"),ke),(0,Q.Z)(k,"".concat(p,"-input-with-clear-btn"),Be&&ve&&Pe),k),!(0,f.He)(G)&&ce,at==null?void 0:at.affixWrapper,rt==null?void 0:rt.affixWrapper),w=(Be||ve)&&B.createElement("span",{className:W()("".concat(he,"-suffix"),rt==null?void 0:rt.suffix),style:ut==null?void 0:ut.suffix},L(),Be);it=B.createElement(Ht,(0,ge.Z)({className:d,style:(0,de.Z)((0,de.Z)({},(0,f.He)(G)?void 0:D),ut==null?void 0:ut.affixWrapper),hidden:!(0,f.He)(G)&&ye,onClick:hr},nt==null?void 0:nt.affixWrapper,{ref:Cr}),Ne&&B.createElement("span",{className:W()("".concat(he,"-prefix"),rt==null?void 0:rt.prefix),style:ut==null?void 0:ut.prefix},Ne),(0,B.cloneElement)(le,{value:Pe,hidden:null}),w)}if((0,f.He)(G)){var Y="".concat(he,"-group"),Ee="".concat(Y,"-addon"),H=W()("".concat(he,"-wrapper"),Y,at==null?void 0:at.wrapper),ne=W()("".concat(he,"-group-wrapper"),ce,at==null?void 0:at.group);return B.createElement(Ut,{className:ne,style:D,hidden:ye},B.createElement(cr,{className:H},je&&B.createElement(or,{className:Ee},je),(0,B.cloneElement)(it,{hidden:null}),q&&B.createElement(or,{className:Ee},q)))}return it},h=E,$=x(80702),S=x(52487),_=x(74416),N=x(18929),R=x(2738),I=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],J=(0,B.forwardRef)(function(te,G){var V=te.autoComplete,j=te.onChange,le=te.onFocus,he=te.onBlur,Ne=te.onPressEnter,Be=te.onKeyDown,je=te.prefixCls,q=je===void 0?"rc-input":je,ce=te.disabled,D=te.htmlSize,ot=te.className,ke=te.maxLength,Ce=te.suffix,Qe=te.showCount,ve=te.type,Pe=ve===void 0?"text":ve,fe=te.classes,ye=te.classNames,at=te.styles,rt=(0,_.Z)(te,I),nt=(0,N.Z)(te.defaultValue,{value:te.value}),ut=(0,S.Z)(nt,2),Pt=ut[0],Ht=ut[1],Ut=(0,B.useState)(!1),cr=(0,S.Z)(Ut,2),or=cr[0],Cr=cr[1],hr=(0,B.useRef)(null),L=function(ne){hr.current&&(0,f.nH)(hr.current,ne)};(0,B.useImperativeHandle)(G,function(){return{focus:L,blur:function(){var ne;(ne=hr.current)===null||ne===void 0||ne.blur()},setSelectionRange:function(ne,Ge,xe){var we;(we=hr.current)===null||we===void 0||we.setSelectionRange(ne,Ge,xe)},select:function(){var ne;(ne=hr.current)===null||ne===void 0||ne.select()},input:hr.current}}),(0,B.useEffect)(function(){Cr(function(H){return H&&ce?!1:H})},[ce]);var it=function(ne){te.value===void 0&&Ht(ne.target.value),hr.current&&(0,f.rJ)(hr.current,ne,j)},k=function(ne){Ne&&ne.key==="Enter"&&Ne(ne),Be==null||Be(ne)},p=function(ne){Cr(!0),le==null||le(ne)},d=function(ne){Cr(!1),he==null||he(ne)},w=function(ne){Ht(""),L(),hr.current&&(0,f.rJ)(hr.current,ne,j)},Y=function(){var ne=(0,R.Z)(te,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return B.createElement("input",(0,ge.Z)({autoComplete:V},ne,{onChange:it,onFocus:p,onBlur:d,onKeyDown:k,className:W()(q,(0,Q.Z)({},"".concat(q,"-disabled"),ce),ye==null?void 0:ye.input),style:at==null?void 0:at.input,ref:hr,size:D,type:Pe}))},Ee=function(){var ne=Number(ke)>0;if(Ce||Qe){var Ge=(0,f.D7)(Pt),xe=(0,$.Z)(Ge).length,we=(0,Oe.Z)(Qe)==="object"?Qe.formatter({value:Ge,count:xe,maxLength:ke}):"".concat(xe).concat(ne?" / ".concat(ke):"");return B.createElement(B.Fragment,null,!!Qe&&B.createElement("span",{className:W()("".concat(q,"-show-count-suffix"),(0,Q.Z)({},"".concat(q,"-show-count-has-suffix"),!!Ce),ye==null?void 0:ye.count),style:(0,de.Z)({},at==null?void 0:at.count)},we),Ce)}return null};return B.createElement(h,(0,ge.Z)({},rt,{prefixCls:q,className:ot,inputElement:Y(),handleReset:w,value:(0,f.D7)(Pt),focused:or,triggerFocus:L,suffix:Ee(),disabled:ce,classes:fe,classNames:ye,styles:at}))}),K=J,se=K},5643:function(xn,Yt,x){"use strict";x.d(Yt,{D7:function(){return ie},He:function(){return ge},X3:function(){return de},nH:function(){return Oe},rJ:function(){return Q}});function ge(W){return!!(W.addonBefore||W.addonAfter)}function de(W){return!!(W.prefix||W.suffix||W.allowClear)}function Q(W,B,f,E){if(f){var h=B;if(B.type==="click"){var $=W.cloneNode(!0);h=Object.create(B,{target:{value:$},currentTarget:{value:$}}),$.value="",f(h);return}if(E!==void 0){h=Object.create(B,{target:{value:W},currentTarget:{value:W}}),W.value=E,f(h);return}f(h)}}function Oe(W,B){if(W){W.focus(B);var f=B||{},E=f.cursor;if(E){var h=W.value.length;switch(E){case"start":W.setSelectionRange(0,0);break;case"end":W.setSelectionRange(h,h);break;default:W.setSelectionRange(0,h)}}}}function ie(W){return typeof W=="undefined"||W===null?"":String(W)}},15285:function(xn,Yt,x){"use strict";x.d(Yt,{iz:function(){return Vr},ck:function(){return cn},BW:function(){return en},sN:function(){return cn},Wd:function(){return Qt},ZP:function(){return on},Xl:function(){return Be}});var ge=x(72308),de=x(49618),Q=x(77321),Oe=x(80702),ie=x(52487),W=x(74416),B=x(92310),f=x.n(B),E=x(11780),h=x(18929),$=x(13697),S=x(48736),_=x(59301),N=x(4676),R=_.createContext(null);function I(Kt,Zt){return Kt===void 0?null:"".concat(Kt,"-").concat(Zt)}function J(Kt){var Zt=_.useContext(R);return I(Zt,Kt)}var K=x(80547),se=["children","locked"],te=_.createContext(null);function G(Kt,Zt){var qt=(0,Q.Z)({},Kt);return Object.keys(Zt).forEach(function(er){var Xt=Zt[er];Xt!==void 0&&(qt[er]=Xt)}),qt}function V(Kt){var Zt=Kt.children,qt=Kt.locked,er=(0,W.Z)(Kt,se),Xt=_.useContext(te),Ur=(0,K.Z)(function(){return G(Xt,er)},[Xt,er],function(Mr,Gr){return!qt&&(Mr[0]!==Gr[0]||!(0,$.Z)(Mr[1],Gr[1],!0))});return _.createElement(te.Provider,{value:Ur},Zt)}var j=[],le=_.createContext(null);function he(){return _.useContext(le)}var Ne=_.createContext(j);function Be(Kt){var Zt=_.useContext(Ne);return _.useMemo(function(){return Kt!==void 0?[].concat((0,Oe.Z)(Zt),[Kt]):Zt},[Zt,Kt])}var je=_.createContext(null),q=_.createContext({}),ce=q,D=x(29194);function ot(Kt){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,D.Z)(Kt)){var qt=Kt.nodeName.toLowerCase(),er=["input","select","textarea","button"].includes(qt)||Kt.isContentEditable||qt==="a"&&!!Kt.getAttribute("href"),Xt=Kt.getAttribute("tabindex"),Ur=Number(Xt),Mr=null;return Xt&&!Number.isNaN(Ur)?Mr=Ur:er&&Mr===null&&(Mr=0),er&&Kt.disabled&&(Mr=null),Mr!==null&&(Mr>=0||Zt&&Mr<0)}return!1}function ke(Kt){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qt=(0,Oe.Z)(Kt.querySelectorAll("*")).filter(function(er){return ot(er,Zt)});return ot(Kt,Zt)&&qt.unshift(Kt),qt}var Ce=null;function Qe(){Ce=document.activeElement}function ve(){Ce=null}function Pe(){if(Ce)try{Ce.focus()}catch(Kt){}}function fe(Kt,Zt){if(Zt.keyCode===9){var qt=ke(Kt),er=qt[Zt.shiftKey?0:qt.length-1],Xt=er===document.activeElement||Kt===document.activeElement;if(Xt){var Ur=qt[Zt.shiftKey?qt.length-1:0];Ur.focus(),Zt.preventDefault()}}}var ye=x(10228),at=x(16089),rt=ye.Z.LEFT,nt=ye.Z.RIGHT,ut=ye.Z.UP,Pt=ye.Z.DOWN,Ht=ye.Z.ENTER,Ut=ye.Z.ESC,cr=ye.Z.HOME,or=ye.Z.END,Cr=[ut,Pt,rt,nt];function hr(Kt,Zt,qt,er){var Xt,Ur,Mr,Gr,Mn="prev",Pn="next",si="children",ei="parent";if(Kt==="inline"&&er===Ht)return{inlineTrigger:!0};var Ci=(Xt={},(0,de.Z)(Xt,ut,Mn),(0,de.Z)(Xt,Pt,Pn),Xt),Yn=(Ur={},(0,de.Z)(Ur,rt,qt?Pn:Mn),(0,de.Z)(Ur,nt,qt?Mn:Pn),(0,de.Z)(Ur,Pt,si),(0,de.Z)(Ur,Ht,si),Ur),Hn=(Mr={},(0,de.Z)(Mr,ut,Mn),(0,de.Z)(Mr,Pt,Pn),(0,de.Z)(Mr,Ht,si),(0,de.Z)(Mr,Ut,ei),(0,de.Z)(Mr,rt,qt?si:ei),(0,de.Z)(Mr,nt,qt?ei:si),Mr),an={inline:Ci,horizontal:Yn,vertical:Hn,inlineSub:Ci,horizontalSub:Hn,verticalSub:Hn},pi=(Gr=an["".concat(Kt).concat(Zt?"":"Sub")])===null||Gr===void 0?void 0:Gr[er];switch(pi){case Mn:return{offset:-1,sibling:!0};case Pn:return{offset:1,sibling:!0};case ei:return{offset:-1,sibling:!1};case si:return{offset:1,sibling:!1};default:return null}}function L(Kt){for(var Zt=Kt;Zt;){if(Zt.getAttribute("data-menu-list"))return Zt;Zt=Zt.parentElement}return null}function it(Kt,Zt){for(var qt=Kt||document.activeElement;qt;){if(Zt.has(qt))return qt;qt=qt.parentElement}return null}function k(Kt,Zt){var qt=ke(Kt,!0);return qt.filter(function(er){return Zt.has(er)})}function p(Kt,Zt,qt){var er=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Kt)return null;var Xt=k(Kt,Zt),Ur=Xt.length,Mr=Xt.findIndex(function(Gr){return qt===Gr});return er<0?Mr===-1?Mr=Ur-1:Mr-=1:er>0&&(Mr+=1),Mr=(Mr+Ur)%Ur,Xt[Mr]}var d=function(Zt,qt){var er=new Set,Xt=new Map,Ur=new Map;return Zt.forEach(function(Mr){var Gr=document.querySelector("[data-menu-id='".concat(I(qt,Mr),"']"));Gr&&(er.add(Gr),Ur.set(Gr,Mr),Xt.set(Mr,Gr))}),{elements:er,key2element:Xt,element2key:Ur}};function w(Kt,Zt,qt,er,Xt,Ur,Mr,Gr,Mn,Pn){var si=_.useRef(),ei=_.useRef();ei.current=Zt;var Ci=function(){at.Z.cancel(si.current)};return _.useEffect(function(){return function(){Ci()}},[]),function(Yn){var Hn=Yn.which;if([].concat(Cr,[Ht,Ut,cr,or]).includes(Hn)){var an=Ur(),pi=d(an,er),Ln=pi,ni=Ln.elements,vi=Ln.key2element,Mi=Ln.element2key,Jn=vi.get(Zt),_i=it(Jn,ni),ra=Mi.get(_i),ai=hr(Kt,Mr(ra,!0).length===1,qt,Hn);if(!ai&&Hn!==cr&&Hn!==or)return;(Cr.includes(Hn)||[cr,or].includes(Hn))&&Yn.preventDefault();var An=function(Yi){if(Yi){var ao=Yi,ti=Yi.querySelector("a");ti!=null&&ti.getAttribute("href")&&(ao=ti);var Un=Mi.get(Yi);Gr(Un),Ci(),si.current=(0,at.Z)(function(){ei.current===Un&&ao.focus()})}};if([cr,or].includes(Hn)||ai.sibling||!_i){var rn;!_i||Kt==="inline"?rn=Xt.current:rn=L(_i);var Tn,wn=k(rn,ni);Hn===cr?Tn=wn[0]:Hn===or?Tn=wn[wn.length-1]:Tn=p(rn,ni,_i,ai.offset),An(Tn)}else if(ai.inlineTrigger)Mn(ra);else if(ai.offset>0)Mn(ra,!0),Ci(),si.current=(0,at.Z)(function(){pi=d(an,er);var Aa=_i.getAttribute("aria-controls"),Yi=document.getElementById(Aa),ao=p(Yi,pi.elements);An(ao)},5);else if(ai.offset<0){var jn=Mr(ra,!0),ci=jn[jn.length-2],Bi=vi.get(ci);Mn(ci,!1),An(Bi)}}Pn==null||Pn(Yn)}}function Y(Kt){Promise.resolve().then(Kt)}var Ee="__RC_UTIL_PATH_SPLIT__",H=function(Zt){return Zt.join(Ee)},ne=function(Zt){return Zt.split(Ee)},Ge="rc-menu-more";function xe(){var Kt=_.useState({}),Zt=(0,ie.Z)(Kt,2),qt=Zt[1],er=(0,_.useRef)(new Map),Xt=(0,_.useRef)(new Map),Ur=_.useState([]),Mr=(0,ie.Z)(Ur,2),Gr=Mr[0],Mn=Mr[1],Pn=(0,_.useRef)(0),si=(0,_.useRef)(!1),ei=function(){si.current||qt({})},Ci=(0,_.useCallback)(function(vi,Mi){var Jn=H(Mi);Xt.current.set(Jn,vi),er.current.set(vi,Jn),Pn.current+=1;var _i=Pn.current;Y(function(){_i===Pn.current&&ei()})},[]),Yn=(0,_.useCallback)(function(vi,Mi){var Jn=H(Mi);Xt.current.delete(Jn),er.current.delete(vi)},[]),Hn=(0,_.useCallback)(function(vi){Mn(vi)},[]),an=(0,_.useCallback)(function(vi,Mi){var Jn=er.current.get(vi)||"",_i=ne(Jn);return Mi&&Gr.includes(_i[0])&&_i.unshift(Ge),_i},[Gr]),pi=(0,_.useCallback)(function(vi,Mi){return vi.some(function(Jn){var _i=an(Jn,!0);return _i.includes(Mi)})},[an]),Ln=function(){var Mi=(0,Oe.Z)(er.current.keys());return Gr.length&&Mi.push(Ge),Mi},ni=(0,_.useCallback)(function(vi){var Mi="".concat(er.current.get(vi)).concat(Ee),Jn=new Set;return(0,Oe.Z)(Xt.current.keys()).forEach(function(_i){_i.startsWith(Mi)&&Jn.add(Xt.current.get(_i))}),Jn},[]);return _.useEffect(function(){return function(){si.current=!0}},[]),{registerPath:Ci,unregisterPath:Yn,refreshOverflowKeys:Hn,isSubPathKey:pi,getKeyPath:an,getKeys:Ln,getSubPathKeys:ni}}function we(Kt){var Zt=_.useRef(Kt);Zt.current=Kt;var qt=_.useCallback(function(){for(var er,Xt=arguments.length,Ur=new Array(Xt),Mr=0;Mr<Xt;Mr++)Ur[Mr]=arguments[Mr];return(er=Zt.current)===null||er===void 0?void 0:er.call.apply(er,[Zt].concat(Ur))},[]);return Kt?qt:void 0}var qe=Math.random().toFixed(5).toString().slice(2),Et=0;function pe(Kt){var Zt=(0,h.Z)(Kt,{value:Kt}),qt=(0,ie.Z)(Zt,2),er=qt[0],Xt=qt[1];return _.useEffect(function(){Et+=1;var Ur="".concat(qe,"-").concat(Et);Xt("rc-menu-uuid-".concat(Ur))},[]),er}var dt=x(96949),At=x(55090),Me=x(77205),De=x(38793),gt=x(2738),jt=x(8654);function Tt(Kt,Zt,qt,er){var Xt=_.useContext(te),Ur=Xt.activeKey,Mr=Xt.onActive,Gr=Xt.onInactive,Mn={active:Ur===Kt};return Zt||(Mn.onMouseEnter=function(Pn){qt==null||qt({key:Kt,domEvent:Pn}),Mr(Kt)},Mn.onMouseLeave=function(Pn){er==null||er({key:Kt,domEvent:Pn}),Gr(Kt)}),Mn}function ir(Kt){var Zt=_.useContext(te),qt=Zt.mode,er=Zt.rtl,Xt=Zt.inlineIndent;if(qt!=="inline")return null;var Ur=Kt;return er?{paddingRight:Ur*Xt}:{paddingLeft:Ur*Xt}}function Fr(Kt){var Zt=Kt.icon,qt=Kt.props,er=Kt.children,Xt;return Zt===null||Zt===!1?null:(typeof Zt=="function"?Xt=_.createElement(Zt,(0,Q.Z)({},qt)):typeof Zt!="boolean"&&(Xt=Zt),Xt||er||null)}var Pr=["item"];function Hr(Kt){var Zt=Kt.item,qt=(0,W.Z)(Kt,Pr);return Object.defineProperty(qt,"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."),Zt}}),qt}var Rr=["title","attribute","elementRef"],sr=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],lr=["active"],$r=function(Kt){(0,Me.Z)(qt,Kt);var Zt=(0,De.Z)(qt);function qt(){return(0,dt.Z)(this,qt),Zt.apply(this,arguments)}return(0,At.Z)(qt,[{key:"render",value:function(){var Xt=this.props,Ur=Xt.title,Mr=Xt.attribute,Gr=Xt.elementRef,Mn=(0,W.Z)(Xt,Rr),Pn=(0,gt.Z)(Mn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,S.ZP)(!Mr,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),_.createElement(E.Z.Item,(0,ge.Z)({},Mr,{title:typeof Ur=="string"?Ur:void 0},Pn,{ref:Gr}))}}]),qt}(_.Component),ln=_.forwardRef(function(Kt,Zt){var qt,er=Kt.style,Xt=Kt.className,Ur=Kt.eventKey,Mr=Kt.warnKey,Gr=Kt.disabled,Mn=Kt.itemIcon,Pn=Kt.children,si=Kt.role,ei=Kt.onMouseEnter,Ci=Kt.onMouseLeave,Yn=Kt.onClick,Hn=Kt.onKeyDown,an=Kt.onFocus,pi=(0,W.Z)(Kt,sr),Ln=J(Ur),ni=_.useContext(te),vi=ni.prefixCls,Mi=ni.onItemClick,Jn=ni.disabled,_i=ni.overflowDisabled,ra=ni.itemIcon,ai=ni.selectedKeys,An=ni.onActive,rn=_.useContext(ce),Tn=rn._internalRenderMenuItem,wn="".concat(vi,"-item"),jn=_.useRef(),ci=_.useRef(),Bi=Jn||Gr,Aa=(0,jt.x1)(Zt,ci),Yi=Be(Ur),ao=function(wa){return{key:Ur,keyPath:(0,Oe.Z)(Yi).reverse(),item:jn.current,domEvent:wa}},ti=Mn||ra,Un=Tt(Ur,Bi,ei,Ci),Fi=Un.active,Ei=(0,W.Z)(Un,lr),ha=ai.includes(Ur),No=ir(Yi.length),na=function(wa){if(!Bi){var Ai=ao(wa);Yn==null||Yn(Hr(Ai)),Mi(Ai)}},Ji=function(wa){if(Hn==null||Hn(wa),wa.which===ye.Z.ENTER){var Ai=ao(wa);Yn==null||Yn(Hr(Ai)),Mi(Ai)}},ja=function(wa){An(Ur),an==null||an(wa)},La={};Kt.role==="option"&&(La["aria-selected"]=ha);var eo=_.createElement($r,(0,ge.Z)({ref:jn,elementRef:Aa,role:si===null?"none":si||"menuitem",tabIndex:Gr?null:-1,"data-menu-id":_i&&Ln?null:Ln},pi,Ei,La,{component:"li","aria-disabled":Gr,style:(0,Q.Z)((0,Q.Z)({},No),er),className:f()(wn,(qt={},(0,de.Z)(qt,"".concat(wn,"-active"),Fi),(0,de.Z)(qt,"".concat(wn,"-selected"),ha),(0,de.Z)(qt,"".concat(wn,"-disabled"),Bi),qt),Xt),onClick:na,onKeyDown:Ji,onFocus:ja}),Pn,_.createElement(Fr,{props:(0,Q.Z)((0,Q.Z)({},Kt),{},{isSelected:ha}),icon:ti}));return Tn&&(eo=Tn(eo,Kt,{selected:ha})),eo});function En(Kt,Zt){var qt=Kt.eventKey,er=he(),Xt=Be(qt);return _.useEffect(function(){if(er)return er.registerPath(qt,Xt),function(){er.unregisterPath(qt,Xt)}},[Xt]),er?null:_.createElement(ln,(0,ge.Z)({},Kt,{ref:Zt}))}var cn=_.forwardRef(En),In=["className","children"],bi=function(Zt,qt){var er=Zt.className,Xt=Zt.children,Ur=(0,W.Z)(Zt,In),Mr=_.useContext(te),Gr=Mr.prefixCls,Mn=Mr.mode,Pn=Mr.rtl;return _.createElement("ul",(0,ge.Z)({className:f()(Gr,Pn&&"".concat(Gr,"-rtl"),"".concat(Gr,"-sub"),"".concat(Gr,"-").concat(Mn==="inline"?"inline":"vertical"),er),role:"menu"},Ur,{"data-menu-list":!0,ref:qt}),Xt)},Ir=_.forwardRef(bi);Ir.displayName="SubMenuList";var qn=Ir,wi=x(11592);function $n(Kt,Zt){return(0,wi.Z)(Kt).map(function(qt,er){if(_.isValidElement(qt)){var Xt,Ur,Mr=qt.key,Gr=(Xt=(Ur=qt.props)===null||Ur===void 0?void 0:Ur.eventKey)!==null&&Xt!==void 0?Xt:Mr,Mn=Gr==null;Mn&&(Gr="tmp_key-".concat([].concat((0,Oe.Z)(Zt),[er]).join("-")));var Pn={key:Gr,eventKey:Gr};return _.cloneElement(qt,Pn)}return qt})}var Ni=x(35593),gi={adjustX:1,adjustY:1},Qi={topLeft:{points:["bl","tl"],overflow:gi},topRight:{points:["br","tr"],overflow:gi},bottomLeft:{points:["tl","bl"],overflow:gi},bottomRight:{points:["tr","br"],overflow:gi},leftTop:{points:["tr","tl"],overflow:gi},leftBottom:{points:["br","bl"],overflow:gi},rightTop:{points:["tl","tr"],overflow:gi},rightBottom:{points:["bl","br"],overflow:gi}},ba={topLeft:{points:["bl","tl"],overflow:gi},topRight:{points:["br","tr"],overflow:gi},bottomLeft:{points:["tl","bl"],overflow:gi},bottomRight:{points:["tr","br"],overflow:gi},rightTop:{points:["tr","tl"],overflow:gi},rightBottom:{points:["br","bl"],overflow:gi},leftTop:{points:["tl","tr"],overflow:gi},leftBottom:{points:["bl","br"],overflow:gi}},$i=null;function ri(Kt,Zt,qt){if(Zt)return Zt;if(qt)return qt[Kt]||qt.other}var xi={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Ti(Kt){var Zt=Kt.prefixCls,qt=Kt.visible,er=Kt.children,Xt=Kt.popup,Ur=Kt.popupStyle,Mr=Kt.popupClassName,Gr=Kt.popupOffset,Mn=Kt.disabled,Pn=Kt.mode,si=Kt.onVisibleChange,ei=_.useContext(te),Ci=ei.getPopupContainer,Yn=ei.rtl,Hn=ei.subMenuOpenDelay,an=ei.subMenuCloseDelay,pi=ei.builtinPlacements,Ln=ei.triggerSubMenuAction,ni=ei.forceSubMenuRender,vi=ei.rootClassName,Mi=ei.motion,Jn=ei.defaultMotions,_i=_.useState(!1),ra=(0,ie.Z)(_i,2),ai=ra[0],An=ra[1],rn=Yn?(0,Q.Z)((0,Q.Z)({},ba),pi):(0,Q.Z)((0,Q.Z)({},Qi),pi),Tn=xi[Pn],wn=ri(Pn,Mi,Jn),jn=_.useRef(wn);Pn!=="inline"&&(jn.current=wn);var ci=(0,Q.Z)((0,Q.Z)({},jn.current),{},{leavedClassName:"".concat(Zt,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Bi=_.useRef();return _.useEffect(function(){return Bi.current=(0,at.Z)(function(){An(qt)}),function(){at.Z.cancel(Bi.current)}},[qt]),_.createElement(Ni.Z,{prefixCls:Zt,popupClassName:f()("".concat(Zt,"-popup"),(0,de.Z)({},"".concat(Zt,"-rtl"),Yn),Mr,vi),stretch:Pn==="horizontal"?"minWidth":null,getPopupContainer:Ci,builtinPlacements:rn,popupPlacement:Tn,popupVisible:ai,popup:Xt,popupStyle:Ur,popupAlign:Gr&&{offset:Gr},action:Mn?[]:[Ln],mouseEnterDelay:Hn,mouseLeaveDelay:an,onPopupVisibleChange:si,forceRender:ni,popupMotion:ci,fresh:!0},er)}var me=x(77900);function Ue(Kt){var Zt=Kt.id,qt=Kt.open,er=Kt.keyPath,Xt=Kt.children,Ur="inline",Mr=_.useContext(te),Gr=Mr.prefixCls,Mn=Mr.forceSubMenuRender,Pn=Mr.motion,si=Mr.defaultMotions,ei=Mr.mode,Ci=_.useRef(!1);Ci.current=ei===Ur;var Yn=_.useState(!Ci.current),Hn=(0,ie.Z)(Yn,2),an=Hn[0],pi=Hn[1],Ln=Ci.current?qt:!1;_.useEffect(function(){Ci.current&&pi(!1)},[ei]);var ni=(0,Q.Z)({},ri(Ur,Pn,si));er.length>1&&(ni.motionAppear=!1);var vi=ni.onVisibleChanged;return ni.onVisibleChanged=function(Mi){return!Ci.current&&!Mi&&pi(!0),vi==null?void 0:vi(Mi)},an?null:_.createElement(V,{mode:Ur,locked:!Ci.current},_.createElement(me.default,(0,ge.Z)({visible:Ln},ni,{forceRender:Mn,removeOnLeave:!1,leavedClassName:"".concat(Gr,"-hidden")}),function(Mi){var Jn=Mi.className,_i=Mi.style;return _.createElement(qn,{id:Zt,className:Jn,style:_i},Xt)}))}var Le=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],lt=["active"],$t=function(Zt){var qt,er=Zt.style,Xt=Zt.className,Ur=Zt.title,Mr=Zt.eventKey,Gr=Zt.warnKey,Mn=Zt.disabled,Pn=Zt.internalPopupClose,si=Zt.children,ei=Zt.itemIcon,Ci=Zt.expandIcon,Yn=Zt.popupClassName,Hn=Zt.popupOffset,an=Zt.popupStyle,pi=Zt.onClick,Ln=Zt.onMouseEnter,ni=Zt.onMouseLeave,vi=Zt.onTitleClick,Mi=Zt.onTitleMouseEnter,Jn=Zt.onTitleMouseLeave,_i=(0,W.Z)(Zt,Le),ra=J(Mr),ai=_.useContext(te),An=ai.prefixCls,rn=ai.mode,Tn=ai.openKeys,wn=ai.disabled,jn=ai.overflowDisabled,ci=ai.activeKey,Bi=ai.selectedKeys,Aa=ai.itemIcon,Yi=ai.expandIcon,ao=ai.onItemClick,ti=ai.onOpenChange,Un=ai.onActive,Fi=_.useContext(ce),Ei=Fi._internalRenderSubMenuItem,ha=_.useContext(je),No=ha.isSubPathKey,na=Be(),Ji="".concat(An,"-submenu"),ja=wn||Mn,La=_.useRef(),eo=_.useRef(),vo=ei!=null?ei:Aa,wa=Ci!=null?Ci:Yi,Ai=Tn.includes(Mr),ua=!jn&&Ai,Do=No(Bi,Mr),uo=Tt(Mr,ja,Mi,Jn),Xa=uo.active,Pi=(0,W.Z)(uo,lt),Po=_.useState(!1),fo=(0,ie.Z)(Po,2),il=fo[0],$o=fo[1],Hs=function(Bo){ja||$o(Bo)},Zo=function(Bo){Hs(!0),Ln==null||Ln({key:Mr,domEvent:Bo})},vl=function(Bo){Hs(!1),ni==null||ni({key:Mr,domEvent:Bo})},za=_.useMemo(function(){return Xa||(rn!=="inline"?il||No([ci],Mr):!1)},[rn,Xa,ci,il,Mr,No]),Qa=ir(na.length),_a=function(Bo){ja||(vi==null||vi({key:Mr,domEvent:Bo}),rn==="inline"&&ti(Mr,!Ai))},js=we(function(_o){pi==null||pi(Hr(_o)),ao(_o)}),yi=function(Bo){rn!=="inline"&&ti(Mr,Bo)},Vi=function(){Un(Mr)},Oi=ra&&"".concat(ra,"-popup"),Wi=_.createElement("div",(0,ge.Z)({role:"menuitem",style:Qa,className:"".concat(Ji,"-title"),tabIndex:ja?null:-1,ref:La,title:typeof Ur=="string"?Ur:null,"data-menu-id":jn&&ra?null:ra,"aria-expanded":ua,"aria-haspopup":!0,"aria-controls":Oi,"aria-disabled":ja,onClick:_a,onFocus:Vi},Pi),Ur,_.createElement(Fr,{icon:rn!=="horizontal"?wa:void 0,props:(0,Q.Z)((0,Q.Z)({},Zt),{},{isOpen:ua,isSubMenu:!0})},_.createElement("i",{className:"".concat(Ji,"-arrow")}))),da=_.useRef(rn);if(rn!=="inline"&&na.length>1?da.current="vertical":da.current=rn,!jn){var ka=da.current;Wi=_.createElement(Ti,{mode:ka,prefixCls:Ji,visible:!Pn&&ua&&rn!=="inline",popupClassName:Yn,popupOffset:Hn,popupStyle:an,popup:_.createElement(V,{mode:ka==="horizontal"?"vertical":ka},_.createElement(qn,{id:Oi,ref:eo},si)),disabled:ja,onVisibleChange:yi},Wi)}var Vo=_.createElement(E.Z.Item,(0,ge.Z)({role:"none"},_i,{component:"li",style:er,className:f()(Ji,"".concat(Ji,"-").concat(rn),Xt,(qt={},(0,de.Z)(qt,"".concat(Ji,"-open"),ua),(0,de.Z)(qt,"".concat(Ji,"-active"),za),(0,de.Z)(qt,"".concat(Ji,"-selected"),Do),(0,de.Z)(qt,"".concat(Ji,"-disabled"),ja),qt)),onMouseEnter:Zo,onMouseLeave:vl}),Wi,!jn&&_.createElement(Ue,{id:Oi,open:ua,keyPath:na},si));return Ei&&(Vo=Ei(Vo,Zt,{selected:Do,active:za,open:ua,disabled:ja})),_.createElement(V,{onItemClick:js,mode:rn==="horizontal"?"vertical":rn,itemIcon:vo,expandIcon:wa},Vo)};function Qt(Kt){var Zt=Kt.eventKey,qt=Kt.children,er=Be(Zt),Xt=$n(qt,er),Ur=he();_.useEffect(function(){if(Ur)return Ur.registerPath(Zt,er),function(){Ur.unregisterPath(Zt,er)}},[er]);var Mr;return Ur?Mr=Xt:Mr=_.createElement($t,Kt,Xt),_.createElement(Ne.Provider,{value:er},Mr)}var Br=x(62853),pr=["className","title","eventKey","children"],Kr=["children"],Wr=function(Zt){var qt=Zt.className,er=Zt.title,Xt=Zt.eventKey,Ur=Zt.children,Mr=(0,W.Z)(Zt,pr),Gr=_.useContext(te),Mn=Gr.prefixCls,Pn="".concat(Mn,"-item-group");return _.createElement("li",(0,ge.Z)({role:"presentation"},Mr,{onClick:function(ei){return ei.stopPropagation()},className:f()(Pn,qt)}),_.createElement("div",{role:"presentation",className:"".concat(Pn,"-title"),title:typeof er=="string"?er:void 0},er),_.createElement("ul",{role:"group",className:"".concat(Pn,"-list")},Ur))};function en(Kt){var Zt=Kt.children,qt=(0,W.Z)(Kt,Kr),er=Be(qt.eventKey),Xt=$n(Zt,er),Ur=he();return Ur?Xt:_.createElement(Wr,(0,gt.Z)(qt,["warnKey"]),Xt)}function Vr(Kt){var Zt=Kt.className,qt=Kt.style,er=_.useContext(te),Xt=er.prefixCls,Ur=he();return Ur?null:_.createElement("li",{role:"separator",className:f()("".concat(Xt,"-item-divider"),Zt),style:qt})}var jr=["label","children","key","type"];function Yr(Kt){return(Kt||[]).map(function(Zt,qt){if(Zt&&(0,Br.Z)(Zt)==="object"){var er=Zt,Xt=er.label,Ur=er.children,Mr=er.key,Gr=er.type,Mn=(0,W.Z)(er,jr),Pn=Mr!=null?Mr:"tmp-".concat(qt);return Ur||Gr==="group"?Gr==="group"?_.createElement(en,(0,ge.Z)({key:Pn},Mn,{title:Xt}),Yr(Ur)):_.createElement(Qt,(0,ge.Z)({key:Pn},Mn,{title:Xt}),Yr(Ur)):Gr==="divider"?_.createElement(Vr,(0,ge.Z)({key:Pn},Mn)):_.createElement(cn,(0,ge.Z)({key:Pn},Mn),Xt)}return null}).filter(function(Zt){return Zt})}function mn(Kt,Zt,qt){var er=Kt;return Zt&&(er=Yr(Zt)),$n(er,qt)}var tn=["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"],Dn=[],Qn=_.forwardRef(function(Kt,Zt){var qt,er,Xt=Kt,Ur=Xt.prefixCls,Mr=Ur===void 0?"rc-menu":Ur,Gr=Xt.rootClassName,Mn=Xt.style,Pn=Xt.className,si=Xt.tabIndex,ei=si===void 0?0:si,Ci=Xt.items,Yn=Xt.children,Hn=Xt.direction,an=Xt.id,pi=Xt.mode,Ln=pi===void 0?"vertical":pi,ni=Xt.inlineCollapsed,vi=Xt.disabled,Mi=Xt.disabledOverflow,Jn=Xt.subMenuOpenDelay,_i=Jn===void 0?.1:Jn,ra=Xt.subMenuCloseDelay,ai=ra===void 0?.1:ra,An=Xt.forceSubMenuRender,rn=Xt.defaultOpenKeys,Tn=Xt.openKeys,wn=Xt.activeKey,jn=Xt.defaultActiveFirst,ci=Xt.selectable,Bi=ci===void 0?!0:ci,Aa=Xt.multiple,Yi=Aa===void 0?!1:Aa,ao=Xt.defaultSelectedKeys,ti=Xt.selectedKeys,Un=Xt.onSelect,Fi=Xt.onDeselect,Ei=Xt.inlineIndent,ha=Ei===void 0?24:Ei,No=Xt.motion,na=Xt.defaultMotions,Ji=Xt.triggerSubMenuAction,ja=Ji===void 0?"hover":Ji,La=Xt.builtinPlacements,eo=Xt.itemIcon,vo=Xt.expandIcon,wa=Xt.overflowedIndicator,Ai=wa===void 0?"...":wa,ua=Xt.overflowedIndicatorPopupClassName,Do=Xt.getPopupContainer,uo=Xt.onClick,Xa=Xt.onOpenChange,Pi=Xt.onKeyDown,Po=Xt.openAnimation,fo=Xt.openTransitionName,il=Xt._internalRenderMenuItem,$o=Xt._internalRenderSubMenuItem,Hs=(0,W.Z)(Xt,tn),Zo=_.useMemo(function(){return mn(Yn,Ci,Dn)},[Yn,Ci]),vl=_.useState(!1),za=(0,ie.Z)(vl,2),Qa=za[0],_a=za[1],js=_.useRef(),yi=pe(an),Vi=Hn==="rtl",Oi=(0,h.Z)(rn,{value:Tn,postState:function(po){return po||Dn}}),Wi=(0,ie.Z)(Oi,2),da=Wi[0],ka=Wi[1],Vo=function(po){var mo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Go(){ka(po),Xa==null||Xa(po)}mo?(0,N.flushSync)(Go):Go()},_o=_.useState(da),Bo=(0,ie.Z)(_o,2),$a=Bo[0],xa=Bo[1],pa=_.useRef(!1),Oa=_.useMemo(function(){return(Ln==="inline"||Ln==="vertical")&&ni?["vertical",ni]:[Ln,!1]},[Ln,ni]),Ja=(0,ie.Z)(Oa,2),oo=Ja[0],Ua=Ja[1],Da=oo==="inline",Fo=_.useState(oo),Ll=(0,ie.Z)(Fo,2),cs=Ll[0],dl=Ll[1],Oo=_.useState(Ua),ks=(0,ie.Z)(Oo,2),Io=ks[0],Kn=ks[1];_.useEffect(function(){dl(oo),Kn(Ua),pa.current&&(Da?ka($a):Vo(Dn))},[oo,Ua]);var kl=_.useState(0),To=(0,ie.Z)(kl,2),Hl=To[0],zs=To[1],ms=Hl>=Zo.length-1||cs!=="horizontal"||Mi;_.useEffect(function(){Da&&xa(da)},[da]),_.useEffect(function(){return pa.current=!0,function(){pa.current=!1}},[]);var Pa=xe(),Uo=Pa.registerPath,jl=Pa.unregisterPath,tc=Pa.refreshOverflowKeys,fl=Pa.isSubPathKey,ma=Pa.getKeyPath,oa=Pa.getKeys,ho=Pa.getSubPathKeys,Za=_.useMemo(function(){return{registerPath:Uo,unregisterPath:jl}},[Uo,jl]),to=_.useMemo(function(){return{isSubPathKey:fl}},[fl]);_.useEffect(function(){tc(ms?Dn:Zo.slice(Hl+1).map(function(Ta){return Ta.key}))},[Hl,ms]);var Ro=(0,h.Z)(wn||jn&&((qt=Zo[0])===null||qt===void 0?void 0:qt.key),{value:wn}),Ya=(0,ie.Z)(Ro,2),Wo=Ya[0],Ds=Ya[1],hl=we(function(Ta){Ds(Ta)}),Xs=we(function(){Ds(void 0)});(0,_.useImperativeHandle)(Zt,function(){return{list:js.current,focus:function(po){var mo,Go=oa(),Ps=d(Go,yi),kc=Ps.elements,yl=Ps.key2element,Gc=Ps.element2key,xA=k(js.current,kc),CA=Wo!=null?Wo:xA[0]?Gc.get(xA[0]):(mo=Zo.find(function(Uu){return!Uu.props.disabled}))===null||mo===void 0?void 0:mo.key,pc=yl.get(CA);if(CA&&pc){var mc;pc==null||(mc=pc.focus)===null||mc===void 0||mc.call(pc,po)}}}});var al=(0,h.Z)(ao||[],{value:ti,postState:function(po){return Array.isArray(po)?po:po==null?Dn:[po]}}),Wc=(0,ie.Z)(al,2),Dl=Wc[0],Js=Wc[1],lA=function(po){if(Bi){var mo=po.key,Go=Dl.includes(mo),Ps;Yi?Go?Ps=Dl.filter(function(yl){return yl!==mo}):Ps=[].concat((0,Oe.Z)(Dl),[mo]):Ps=[mo],Js(Ps);var kc=(0,Q.Z)((0,Q.Z)({},po),{},{selectedKeys:Ps});Go?Fi==null||Fi(kc):Un==null||Un(kc)}!Yi&&da.length&&cs!=="inline"&&Vo(Dn)},cA=we(function(Ta){uo==null||uo(Hr(Ta)),lA(Ta)}),hc=we(function(Ta,po){var mo=da.filter(function(Ps){return Ps!==Ta});if(po)mo.push(Ta);else if(cs!=="inline"){var Go=ho(Ta);mo=mo.filter(function(Ps){return!Go.has(Ps)})}(0,$.Z)(da,mo,!0)||Vo(mo,!0)}),wA=function(po,mo){var Go=mo!=null?mo:!da.includes(po);hc(po,Go)},Pl=w(cs,Wo,Vi,yi,js,oa,ma,Ds,wA,Pi);_.useEffect(function(){_a(!0)},[]);var Ys=_.useMemo(function(){return{_internalRenderMenuItem:il,_internalRenderSubMenuItem:$o}},[il,$o]),ol=cs!=="horizontal"||Mi?Zo:Zo.map(function(Ta,po){return _.createElement(V,{key:Ta.key,overflowDisabled:po>Hl},Ta)}),sl=_.createElement(E.Z,(0,ge.Z)({id:an,ref:js,prefixCls:"".concat(Mr,"-overflow"),component:"ul",itemComponent:cn,className:f()(Mr,"".concat(Mr,"-root"),"".concat(Mr,"-").concat(cs),Pn,(er={},(0,de.Z)(er,"".concat(Mr,"-inline-collapsed"),Io),(0,de.Z)(er,"".concat(Mr,"-rtl"),Vi),er),Gr),dir:Hn,style:Mn,role:"menu",tabIndex:ei,data:ol,renderRawItem:function(po){return po},renderRawRest:function(po){var mo=po.length,Go=mo?Zo.slice(-mo):null;return _.createElement(Qt,{eventKey:Ge,title:Ai,disabled:ms,internalPopupClose:mo===0,popupClassName:ua},Go)},maxCount:cs!=="horizontal"||Mi?E.Z.INVALIDATE:E.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(po){zs(po)},onKeyDown:Pl},Hs));return _.createElement(ce.Provider,{value:Ys},_.createElement(R.Provider,{value:yi},_.createElement(V,{prefixCls:Mr,rootClassName:Gr,mode:cs,openKeys:da,rtl:Vi,disabled:vi,motion:Qa?No:null,defaultMotions:Qa?na:null,activeKey:Wo,onActive:hl,onInactive:Xs,selectedKeys:Dl,inlineIndent:ha,subMenuOpenDelay:_i,subMenuCloseDelay:ai,forceSubMenuRender:An,builtinPlacements:La,triggerSubMenuAction:ja,getPopupContainer:Do,itemIcon:eo,expandIcon:vo,onItemClick:cA,onOpenChange:hc},_.createElement(je.Provider,{value:to},sl),_.createElement("div",{style:{display:"none"},"aria-hidden":!0},_.createElement(le.Provider,{value:Za},Zo)))))}),ui=Qn,On=ui;On.Item=cn,On.SubMenu=Qt,On.ItemGroup=en,On.Divider=Vr;var on=On},11780:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return Qe}});var ge=x(72308),de=x(77321),Q=x(52487),Oe=x(74416),ie=x(59301),W=x(92310),B=x.n(W),f=x(29301),E=x(34280),h=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],$=void 0;function S(ve,Pe){var fe=ve.prefixCls,ye=ve.invalidate,at=ve.item,rt=ve.renderItem,nt=ve.responsive,ut=ve.responsiveDisabled,Pt=ve.registerSize,Ht=ve.itemKey,Ut=ve.className,cr=ve.style,or=ve.children,Cr=ve.display,hr=ve.order,L=ve.component,it=L===void 0?"div":L,k=(0,Oe.Z)(ve,h),p=nt&&!Cr;function d(ne){Pt(Ht,ne)}ie.useEffect(function(){return function(){d(null)}},[]);var w=rt&&at!==$?rt(at,{index:hr}):or,Y;ye||(Y={opacity:p?0:1,height:p?0:$,overflowY:p?"hidden":$,order:nt?hr:$,pointerEvents:p?"none":$,position:p?"absolute":$});var Ee={};p&&(Ee["aria-hidden"]=!0);var H=ie.createElement(it,(0,ge.Z)({className:B()(!ye&&fe,Ut),style:(0,de.Z)((0,de.Z)({},Y),cr)},Ee,k,{ref:Pe}),w);return nt&&(H=ie.createElement(f.Z,{onResize:function(Ge){var xe=Ge.offsetWidth;d(xe)},disabled:ut},H)),H}var _=ie.forwardRef(S);_.displayName="Item";var N=_,R=x(6089),I=x(4676),J=x(16089);function K(ve){if(typeof MessageChannel=="undefined")(0,J.Z)(ve);else{var Pe=new MessageChannel;Pe.port1.onmessage=function(){return ve()},Pe.port2.postMessage(void 0)}}function se(){var ve=ie.useRef(null),Pe=function(ye){ve.current||(ve.current=[],K(function(){(0,I.unstable_batchedUpdates)(function(){ve.current.forEach(function(at){at()}),ve.current=null})})),ve.current.push(ye)};return Pe}function te(ve,Pe){var fe=ie.useState(Pe),ye=(0,Q.Z)(fe,2),at=ye[0],rt=ye[1],nt=(0,R.Z)(function(ut){ve(function(){rt(ut)})});return[at,nt]}var G=ie.createContext(null),V=["component"],j=["className"],le=["className"],he=function(Pe,fe){var ye=ie.useContext(G);if(!ye){var at=Pe.component,rt=at===void 0?"div":at,nt=(0,Oe.Z)(Pe,V);return ie.createElement(rt,(0,ge.Z)({},nt,{ref:fe}))}var ut=ye.className,Pt=(0,Oe.Z)(ye,j),Ht=Pe.className,Ut=(0,Oe.Z)(Pe,le);return ie.createElement(G.Provider,{value:null},ie.createElement(N,(0,ge.Z)({ref:fe,className:B()(ut,Ht)},Pt,Ut)))},Ne=ie.forwardRef(he);Ne.displayName="RawItem";var Be=Ne,je=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],q="responsive",ce="invalidate";function D(ve){return"+ ".concat(ve.length," ...")}function ot(ve,Pe){var fe=ve.prefixCls,ye=fe===void 0?"rc-overflow":fe,at=ve.data,rt=at===void 0?[]:at,nt=ve.renderItem,ut=ve.renderRawItem,Pt=ve.itemKey,Ht=ve.itemWidth,Ut=Ht===void 0?10:Ht,cr=ve.ssr,or=ve.style,Cr=ve.className,hr=ve.maxCount,L=ve.renderRest,it=ve.renderRawRest,k=ve.suffix,p=ve.component,d=p===void 0?"div":p,w=ve.itemComponent,Y=ve.onVisibleChange,Ee=(0,Oe.Z)(ve,je),H=cr==="full",ne=se(),Ge=te(ne,null),xe=(0,Q.Z)(Ge,2),we=xe[0],qe=xe[1],Et=we||0,pe=te(ne,new Map),dt=(0,Q.Z)(pe,2),At=dt[0],Me=dt[1],De=te(ne,0),gt=(0,Q.Z)(De,2),jt=gt[0],Tt=gt[1],ir=te(ne,0),Fr=(0,Q.Z)(ir,2),Pr=Fr[0],Hr=Fr[1],Rr=te(ne,0),sr=(0,Q.Z)(Rr,2),lr=sr[0],$r=sr[1],ln=(0,ie.useState)(null),En=(0,Q.Z)(ln,2),cn=En[0],In=En[1],bi=(0,ie.useState)(null),Ir=(0,Q.Z)(bi,2),qn=Ir[0],wi=Ir[1],$n=ie.useMemo(function(){return qn===null&&H?Number.MAX_SAFE_INTEGER:qn||0},[qn,we]),Ni=(0,ie.useState)(!1),gi=(0,Q.Z)(Ni,2),Qi=gi[0],ba=gi[1],$i="".concat(ye,"-item"),ri=Math.max(jt,Pr),xi=hr===q,Ti=rt.length&&xi,me=hr===ce,Ue=Ti||typeof hr=="number"&&rt.length>hr,Le=(0,ie.useMemo)(function(){var on=rt;return Ti?we===null&&H?on=rt:on=rt.slice(0,Math.min(rt.length,Et/Ut)):typeof hr=="number"&&(on=rt.slice(0,hr)),on},[rt,Ut,we,hr,Ti]),lt=(0,ie.useMemo)(function(){return Ti?rt.slice($n+1):rt.slice(Le.length)},[rt,Le,Ti,$n]),$t=(0,ie.useCallback)(function(on,Kt){var Zt;return typeof Pt=="function"?Pt(on):(Zt=Pt&&(on==null?void 0:on[Pt]))!==null&&Zt!==void 0?Zt:Kt},[Pt]),Qt=(0,ie.useCallback)(nt||function(on){return on},[nt]);function Br(on,Kt,Zt){qn===on&&(Kt===void 0||Kt===cn)||(wi(on),Zt||(ba(on<rt.length-1),Y==null||Y(on)),Kt!==void 0&&In(Kt))}function pr(on,Kt){qe(Kt.clientWidth)}function Kr(on,Kt){Me(function(Zt){var qt=new Map(Zt);return Kt===null?qt.delete(on):qt.set(on,Kt),qt})}function Wr(on,Kt){Hr(Kt),Tt(Pr)}function en(on,Kt){$r(Kt)}function Vr(on){return At.get($t(Le[on],on))}(0,E.Z)(function(){if(Et&&typeof ri=="number"&&Le){var on=lr,Kt=Le.length,Zt=Kt-1;if(!Kt){Br(0,null);return}for(var qt=0;qt<Kt;qt+=1){var er=Vr(qt);if(H&&(er=er||0),er===void 0){Br(qt-1,void 0,!0);break}if(on+=er,Zt===0&&on<=Et||qt===Zt-1&&on+Vr(Zt)<=Et){Br(Zt,null);break}else if(on+ri>Et){Br(qt-1,on-er-lr+Pr);break}}k&&Vr(0)+lr>Et&&In(null)}},[Et,At,Pr,lr,$t,Le]);var jr=Qi&&!!lt.length,Yr={};cn!==null&&Ti&&(Yr={position:"absolute",left:cn,top:0});var mn={prefixCls:$i,responsive:Ti,component:w,invalidate:me},tn=ut?function(on,Kt){var Zt=$t(on,Kt);return ie.createElement(G.Provider,{key:Zt,value:(0,de.Z)((0,de.Z)({},mn),{},{order:Kt,item:on,itemKey:Zt,registerSize:Kr,display:Kt<=$n})},ut(on,Kt))}:function(on,Kt){var Zt=$t(on,Kt);return ie.createElement(N,(0,ge.Z)({},mn,{order:Kt,key:Zt,item:on,renderItem:Qt,itemKey:Zt,registerSize:Kr,display:Kt<=$n}))},Dn={order:jr?$n:Number.MAX_SAFE_INTEGER,className:"".concat($i,"-rest"),registerSize:Wr,display:jr},Qn=L||D,ui=it?ie.createElement(G.Provider,{value:(0,de.Z)((0,de.Z)({},mn),Dn)},it(lt)):ie.createElement(N,(0,ge.Z)({},mn,Dn),typeof Qn=="function"?Qn(lt):Qn),On=ie.createElement(d,(0,ge.Z)({className:B()(!me&&ye,Cr),style:or,ref:Pe},Ee),Le.map(tn),Ue?ui:null,k&&ie.createElement(N,(0,ge.Z)({},mn,{responsive:xi,responsiveDisabled:!Ti,order:$n,className:"".concat($i,"-suffix"),registerSize:en,display:!0,style:Yr}),k));return xi?ie.createElement(f.Z,{onResize:pr,disabled:!Ti},On):On}var ke=ie.forwardRef(ot);ke.displayName="Overflow",ke.Item=Be,ke.RESPONSIVE=q,ke.INVALIDATE=ce;var Ce=ke,Qe=Ce},17115:function(xn,Yt,x){"use strict";x.d(Yt,{ZP:function(){return B}});var ge=x(52487),de=x(59301),Q=x(47273),Oe=0,ie=(0,Q.Z)();function W(){var f;return ie?(f=Oe,Oe+=1):f="TEST_OR_SSR",f}function B(f){var E=de.useState(),h=(0,ge.Z)(E,2),$=h[0],S=h[1];return de.useEffect(function(){S("rc_select_".concat(W()))},[]),f||$}},77861:function(xn,Yt,x){"use strict";x.d(Yt,{Ac:function(){return qe},Xo:function(){return Hr},Wx:function(){return sr},ZP:function(){return Ue},lk:function(){return G}});var ge=x(72308),de=x(80702),Q=x(49618),Oe=x(77321),ie=x(52487),W=x(74416),B=x(62853),f=x(18929),E=x(48736),h=x(59301),$=x(92310),S=x.n($),_=x(34280),N=x(49658),R=x(10228),I=x(8654),J=function(lt){var $t=lt.className,Qt=lt.customizeIcon,Br=lt.customizeIconProps,pr=lt.onMouseDown,Kr=lt.onClick,Wr=lt.children,en;return typeof Qt=="function"?en=Qt(Br):en=Qt,h.createElement("span",{className:$t,onMouseDown:function(jr){jr.preventDefault(),pr&&pr(jr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Kr,"aria-hidden":!0},en!==void 0?en:h.createElement("span",{className:S()($t.split(/\s+/).map(function(Vr){return"".concat(Vr,"-icon")}))},Wr))},K=J;function se(Le,lt,$t,Qt,Br){var pr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Kr=arguments.length>6?arguments[6]:void 0,Wr=arguments.length>7?arguments[7]:void 0,en=h.useMemo(function(){if((0,B.Z)(Qt)==="object")return Qt.clearIcon;if(Br)return Br},[Qt,Br]),Vr=h.useMemo(function(){return!!(!pr&&Qt&&($t.length||Kr)&&!(Wr==="combobox"&&Kr===""))},[Qt,pr,$t.length,Kr,Wr]);return{allowClear:Vr,clearIcon:h.createElement(K,{className:"".concat(Le,"-clear"),onMouseDown:lt,customizeIcon:en},"\xD7")}}var te=h.createContext(null);function G(){return h.useContext(te)}function V(){var Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,lt=h.useState(!1),$t=(0,ie.Z)(lt,2),Qt=$t[0],Br=$t[1],pr=h.useRef(null),Kr=function(){window.clearTimeout(pr.current)};h.useEffect(function(){return Kr},[]);var Wr=function(Vr,jr){Kr(),pr.current=window.setTimeout(function(){Br(Vr),jr&&jr()},Le)};return[Qt,Wr,Kr]}function j(){var Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,lt=h.useRef(null),$t=h.useRef(null);h.useEffect(function(){return function(){window.clearTimeout($t.current)}},[]);function Qt(Br){(Br||lt.current===null)&&(lt.current=Br),window.clearTimeout($t.current),$t.current=window.setTimeout(function(){lt.current=null},Le)}return[function(){return lt.current},Qt]}function le(Le,lt,$t,Qt){var Br=h.useRef(null);Br.current={open:lt,triggerOpen:$t,customizedTrigger:Qt},h.useEffect(function(){function pr(Kr){var Wr;if(!((Wr=Br.current)!==null&&Wr!==void 0&&Wr.customizedTrigger)){var en=Kr.target;en.shadowRoot&&Kr.composed&&(en=Kr.composedPath()[0]||en),Br.current.open&&Le().filter(function(Vr){return Vr}).every(function(Vr){return!Vr.contains(en)&&Vr!==en})&&Br.current.triggerOpen(!1)}}return window.addEventListener("mousedown",pr),function(){return window.removeEventListener("mousedown",pr)}},[])}var he=x(26112),Ne=x(11780),Be=function(lt,$t){var Qt,Br,pr=lt.prefixCls,Kr=lt.id,Wr=lt.inputElement,en=lt.disabled,Vr=lt.tabIndex,jr=lt.autoFocus,Yr=lt.autoComplete,mn=lt.editable,tn=lt.activeDescendantId,Dn=lt.value,Qn=lt.maxLength,ui=lt.onKeyDown,On=lt.onMouseDown,on=lt.onChange,Kt=lt.onPaste,Zt=lt.onCompositionStart,qt=lt.onCompositionEnd,er=lt.open,Xt=lt.attrs,Ur=Wr||h.createElement("input",null),Mr=Ur,Gr=Mr.ref,Mn=Mr.props,Pn=Mn.onKeyDown,si=Mn.onChange,ei=Mn.onMouseDown,Ci=Mn.onCompositionStart,Yn=Mn.onCompositionEnd,Hn=Mn.style;return(0,E.Kp)(!("maxLength"in Ur.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Ur=h.cloneElement(Ur,(0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({type:"search"},Mn),{},{id:Kr,ref:(0,I.sQ)($t,Gr),disabled:en,tabIndex:Vr,autoComplete:Yr||"off",autoFocus:jr,className:S()("".concat(pr,"-selection-search-input"),(Qt=Ur)===null||Qt===void 0||(Br=Qt.props)===null||Br===void 0?void 0:Br.className),role:"combobox","aria-label":"Search","aria-expanded":er||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Kr,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Kr,"_list"),"aria-activedescendant":er?tn:void 0},Xt),{},{value:mn?Dn:"",maxLength:Qn,readOnly:!mn,unselectable:mn?null:"on",style:(0,Oe.Z)((0,Oe.Z)({},Hn),{},{opacity:mn?null:0}),onKeyDown:function(pi){ui(pi),Pn&&Pn(pi)},onMouseDown:function(pi){On(pi),ei&&ei(pi)},onChange:function(pi){on(pi),si&&si(pi)},onCompositionStart:function(pi){Zt(pi),Ci&&Ci(pi)},onCompositionEnd:function(pi){qt(pi),Yn&&Yn(pi)},onPaste:Kt})),Ur},je=h.forwardRef(Be);je.displayName="Input";var q=je;function ce(Le){return Array.isArray(Le)?Le:Le!==void 0?[Le]:[]}var D=typeof window!="undefined"&&window.document&&window.document.documentElement,ot=D;function ke(Le){return Le!=null}function Ce(Le){return!Le&&Le!==0}function Qe(Le){return["string","number"].includes((0,B.Z)(Le))}function ve(Le){var lt=void 0;return Le&&(Qe(Le.title)?lt=Le.title.toString():Qe(Le.label)&&(lt=Le.label.toString())),lt}function Pe(Le,lt){ot?h.useLayoutEffect(Le,lt):h.useEffect(Le,lt)}function fe(Le){var lt;return(lt=Le.key)!==null&&lt!==void 0?lt:Le.value}var ye=function(lt){lt.preventDefault(),lt.stopPropagation()},at=function(lt){var $t=lt.id,Qt=lt.prefixCls,Br=lt.values,pr=lt.open,Kr=lt.searchValue,Wr=lt.autoClearSearchValue,en=lt.inputRef,Vr=lt.placeholder,jr=lt.disabled,Yr=lt.mode,mn=lt.showSearch,tn=lt.autoFocus,Dn=lt.autoComplete,Qn=lt.activeDescendantId,ui=lt.tabIndex,On=lt.removeIcon,on=lt.maxTagCount,Kt=lt.maxTagTextLength,Zt=lt.maxTagPlaceholder,qt=Zt===void 0?function(ci){return"+ ".concat(ci.length," ...")}:Zt,er=lt.tagRender,Xt=lt.onToggleOpen,Ur=lt.onRemove,Mr=lt.onInputChange,Gr=lt.onInputPaste,Mn=lt.onInputKeyDown,Pn=lt.onInputMouseDown,si=lt.onInputCompositionStart,ei=lt.onInputCompositionEnd,Ci=h.useRef(null),Yn=(0,h.useState)(0),Hn=(0,ie.Z)(Yn,2),an=Hn[0],pi=Hn[1],Ln=(0,h.useState)(!1),ni=(0,ie.Z)(Ln,2),vi=ni[0],Mi=ni[1],Jn="".concat(Qt,"-selection"),_i=pr||Yr==="multiple"&&Wr===!1||Yr==="tags"?Kr:"",ra=Yr==="tags"||Yr==="multiple"&&Wr===!1||mn&&(pr||vi);Pe(function(){pi(Ci.current.scrollWidth)},[_i]);function ai(ci,Bi,Aa,Yi,ao){return h.createElement("span",{className:S()("".concat(Jn,"-item"),(0,Q.Z)({},"".concat(Jn,"-item-disabled"),Aa)),title:ve(ci)},h.createElement("span",{className:"".concat(Jn,"-item-content")},Bi),Yi&&h.createElement(K,{className:"".concat(Jn,"-item-remove"),onMouseDown:ye,onClick:ao,customizeIcon:On},"\xD7"))}function An(ci,Bi,Aa,Yi,ao){var ti=function(Fi){ye(Fi),Xt(!pr)};return h.createElement("span",{onMouseDown:ti},er({label:Bi,value:ci,disabled:Aa,closable:Yi,onClose:ao}))}function rn(ci){var Bi=ci.disabled,Aa=ci.label,Yi=ci.value,ao=!jr&&!Bi,ti=Aa;if(typeof Kt=="number"&&(typeof Aa=="string"||typeof Aa=="number")){var Un=String(ti);Un.length>Kt&&(ti="".concat(Un.slice(0,Kt),"..."))}var Fi=function(ha){ha&&ha.stopPropagation(),Ur(ci)};return typeof er=="function"?An(Yi,ti,Bi,ao,Fi):ai(ci,ti,Bi,ao,Fi)}function Tn(ci){var Bi=typeof qt=="function"?qt(ci):qt;return ai({title:Bi},Bi,!1)}var wn=h.createElement("div",{className:"".concat(Jn,"-search"),style:{width:an},onFocus:function(){Mi(!0)},onBlur:function(){Mi(!1)}},h.createElement(q,{ref:en,open:pr,prefixCls:Qt,id:$t,inputElement:null,disabled:jr,autoFocus:tn,autoComplete:Dn,editable:ra,activeDescendantId:Qn,value:_i,onKeyDown:Mn,onMouseDown:Pn,onChange:Mr,onPaste:Gr,onCompositionStart:si,onCompositionEnd:ei,tabIndex:ui,attrs:(0,he.Z)(lt,!0)}),h.createElement("span",{ref:Ci,className:"".concat(Jn,"-search-mirror"),"aria-hidden":!0},_i,"\xA0")),jn=h.createElement(Ne.Z,{prefixCls:"".concat(Jn,"-overflow"),data:Br,renderItem:rn,renderRest:Tn,suffix:wn,itemKey:fe,maxCount:on});return h.createElement(h.Fragment,null,jn,!Br.length&&!_i&&h.createElement("span",{className:"".concat(Jn,"-placeholder")},Vr))},rt=at,nt=function(lt){var $t=lt.inputElement,Qt=lt.prefixCls,Br=lt.id,pr=lt.inputRef,Kr=lt.disabled,Wr=lt.autoFocus,en=lt.autoComplete,Vr=lt.activeDescendantId,jr=lt.mode,Yr=lt.open,mn=lt.values,tn=lt.placeholder,Dn=lt.tabIndex,Qn=lt.showSearch,ui=lt.searchValue,On=lt.activeValue,on=lt.maxLength,Kt=lt.onInputKeyDown,Zt=lt.onInputMouseDown,qt=lt.onInputChange,er=lt.onInputPaste,Xt=lt.onInputCompositionStart,Ur=lt.onInputCompositionEnd,Mr=lt.title,Gr=h.useState(!1),Mn=(0,ie.Z)(Gr,2),Pn=Mn[0],si=Mn[1],ei=jr==="combobox",Ci=ei||Qn,Yn=mn[0],Hn=ui||"";ei&&On&&!Pn&&(Hn=On),h.useEffect(function(){ei&&si(!1)},[ei,On]);var an=jr!=="combobox"&&!Yr&&!Qn?!1:!!Hn,pi=Mr===void 0?ve(Yn):Mr,Ln=function(){if(Yn)return null;var vi=an?{visibility:"hidden"}:void 0;return h.createElement("span",{className:"".concat(Qt,"-selection-placeholder"),style:vi},tn)};return h.createElement(h.Fragment,null,h.createElement("span",{className:"".concat(Qt,"-selection-search")},h.createElement(q,{ref:pr,prefixCls:Qt,id:Br,open:Yr,inputElement:$t,disabled:Kr,autoFocus:Wr,autoComplete:en,editable:Ci,activeDescendantId:Vr,value:Hn,onKeyDown:Kt,onMouseDown:Zt,onChange:function(vi){si(!0),qt(vi)},onPaste:er,onCompositionStart:Xt,onCompositionEnd:Ur,tabIndex:Dn,attrs:(0,he.Z)(lt,!0),maxLength:ei?on:void 0})),!ei&&Yn?h.createElement("span",{className:"".concat(Qt,"-selection-item"),title:pi,style:an?{visibility:"hidden"}:void 0},Yn.label):null,Ln())},ut=nt;function Pt(Le){return![R.Z.ESC,R.Z.SHIFT,R.Z.BACKSPACE,R.Z.TAB,R.Z.WIN_KEY,R.Z.ALT,R.Z.META,R.Z.WIN_KEY_RIGHT,R.Z.CTRL,R.Z.SEMICOLON,R.Z.EQUALS,R.Z.CAPS_LOCK,R.Z.CONTEXT_MENU,R.Z.F1,R.Z.F2,R.Z.F3,R.Z.F4,R.Z.F5,R.Z.F6,R.Z.F7,R.Z.F8,R.Z.F9,R.Z.F10,R.Z.F11,R.Z.F12].includes(Le)}var Ht=function(lt,$t){var Qt=(0,h.useRef)(null),Br=(0,h.useRef)(!1),pr=lt.prefixCls,Kr=lt.open,Wr=lt.mode,en=lt.showSearch,Vr=lt.tokenWithEnter,jr=lt.autoClearSearchValue,Yr=lt.onSearch,mn=lt.onSearchSubmit,tn=lt.onToggleOpen,Dn=lt.onInputKeyDown,Qn=lt.domRef;h.useImperativeHandle($t,function(){return{focus:function(){Qt.current.focus()},blur:function(){Qt.current.blur()}}});var ui=j(0),On=(0,ie.Z)(ui,2),on=On[0],Kt=On[1],Zt=function(Hn){var an=Hn.which;(an===R.Z.UP||an===R.Z.DOWN)&&Hn.preventDefault(),Dn&&Dn(Hn),an===R.Z.ENTER&&Wr==="tags"&&!Br.current&&!Kr&&(mn==null||mn(Hn.target.value)),Pt(an)&&tn(!0)},qt=function(){Kt(!0)},er=(0,h.useRef)(null),Xt=function(Hn){Yr(Hn,!0,Br.current)!==!1&&tn(!0)},Ur=function(){Br.current=!0},Mr=function(Hn){Br.current=!1,Wr!=="combobox"&&Xt(Hn.target.value)},Gr=function(Hn){var an=Hn.target.value;if(Vr&&er.current&&/[\r\n]/.test(er.current)){var pi=er.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");an=an.replace(pi,er.current)}er.current=null,Xt(an)},Mn=function(Hn){var an=Hn.clipboardData,pi=an.getData("text");er.current=pi},Pn=function(Hn){var an=Hn.target;if(an!==Qt.current){var pi=document.body.style.msTouchAction!==void 0;pi?setTimeout(function(){Qt.current.focus()}):Qt.current.focus()}},si=function(Hn){var an=on();Hn.target!==Qt.current&&!an&&Wr!=="combobox"&&Hn.preventDefault(),(Wr!=="combobox"&&(!en||!an)||!Kr)&&(Kr&&jr!==!1&&Yr("",!0,!1),tn())},ei={inputRef:Qt,onInputKeyDown:Zt,onInputMouseDown:qt,onInputChange:Gr,onInputPaste:Mn,onInputCompositionStart:Ur,onInputCompositionEnd:Mr},Ci=Wr==="multiple"||Wr==="tags"?h.createElement(rt,(0,ge.Z)({},lt,ei)):h.createElement(ut,(0,ge.Z)({},lt,ei));return h.createElement("div",{ref:Qn,className:"".concat(pr,"-selector"),onClick:Pn,onMouseDown:si},Ci)},Ut=h.forwardRef(Ht);Ut.displayName="Selector";var cr=Ut,or=x(35593),Cr=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],hr=function(lt){var $t=lt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:$t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:$t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:$t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:$t,adjustY:1},htmlRegion:"scroll"}}},L=function(lt,$t){var Qt=lt.prefixCls,Br=lt.disabled,pr=lt.visible,Kr=lt.children,Wr=lt.popupElement,en=lt.animation,Vr=lt.transitionName,jr=lt.dropdownStyle,Yr=lt.dropdownClassName,mn=lt.direction,tn=mn===void 0?"ltr":mn,Dn=lt.placement,Qn=lt.builtinPlacements,ui=lt.dropdownMatchSelectWidth,On=lt.dropdownRender,on=lt.dropdownAlign,Kt=lt.getPopupContainer,Zt=lt.empty,qt=lt.getTriggerDOMNode,er=lt.onPopupVisibleChange,Xt=lt.onPopupMouseEnter,Ur=(0,W.Z)(lt,Cr),Mr="".concat(Qt,"-dropdown"),Gr=Wr;On&&(Gr=On(Wr));var Mn=h.useMemo(function(){return Qn||hr(ui)},[Qn,ui]),Pn=en?"".concat(Mr,"-").concat(en):Vr,si=typeof ui=="number",ei=h.useMemo(function(){return si?null:ui===!1?"minWidth":"width"},[ui,si]),Ci=jr;si&&(Ci=(0,Oe.Z)((0,Oe.Z)({},Ci),{},{width:ui}));var Yn=h.useRef(null);return h.useImperativeHandle($t,function(){return{getPopupElement:function(){return Yn.current}}}),h.createElement(or.Z,(0,ge.Z)({},Ur,{showAction:er?["click"]:[],hideAction:er?["click"]:[],popupPlacement:Dn||(tn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Mn,prefixCls:Mr,popupTransitionName:Pn,popup:h.createElement("div",{ref:Yn,onMouseEnter:Xt},Gr),stretch:ei,popupAlign:on,popupVisible:pr,getPopupContainer:Kt,popupClassName:S()(Yr,(0,Q.Z)({},"".concat(Mr,"-empty"),Zt)),popupStyle:Ci,getTriggerDOMNode:qt,onPopupVisibleChange:er}),Kr)},it=h.forwardRef(L);it.displayName="SelectTrigger";var k=it,p=x(68413);function d(Le,lt){var $t=Le.key,Qt;return"value"in Le&&(Qt=Le.value),$t!=null?$t:Qt!==void 0?Qt:"rc-index-key-".concat(lt)}function w(Le,lt){var $t=Le||{},Qt=$t.label,Br=$t.value,pr=$t.options,Kr=$t.groupLabel,Wr=Qt||(lt?"children":"label");return{label:Wr,value:Br||"value",options:pr||"options",groupLabel:Kr||Wr}}function Y(Le){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$t=lt.fieldNames,Qt=lt.childrenAsData,Br=[],pr=w($t,!1),Kr=pr.label,Wr=pr.value,en=pr.options,Vr=pr.groupLabel;function jr(Yr,mn){Yr.forEach(function(tn){if(mn||!(en in tn)){var Dn=tn[Wr];Br.push({key:d(tn,Br.length),groupOption:mn,data:tn,label:tn[Kr],value:Dn})}else{var Qn=tn[Vr];Qn===void 0&&Qt&&(Qn=tn.label),Br.push({key:d(tn,Br.length),group:!0,data:tn,label:Qn}),jr(tn[en],!0)}})}return jr(Le,!1),Br}function Ee(Le){var lt=(0,Oe.Z)({},Le);return"props"in lt||Object.defineProperty(lt,"props",{get:function(){return(0,E.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),lt}}),lt}function H(Le,lt){if(!lt||!lt.length)return null;var $t=!1;function Qt(pr,Kr){var Wr=(0,p.Z)(Kr),en=Wr[0],Vr=Wr.slice(1);if(!en)return[pr];var jr=pr.split(en);return $t=$t||jr.length>1,jr.reduce(function(Yr,mn){return[].concat((0,de.Z)(Yr),(0,de.Z)(Qt(mn,Vr)))},[]).filter(function(Yr){return Yr})}var Br=Qt(Le,lt);return $t?Br:null}var ne=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Ge=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function xe(Le){return Le==="tags"||Le==="multiple"}var we=h.forwardRef(function(Le,lt){var $t,Qt,Br=Le.id,pr=Le.prefixCls,Kr=Le.className,Wr=Le.showSearch,en=Le.tagRender,Vr=Le.direction,jr=Le.omitDomProps,Yr=Le.displayValues,mn=Le.onDisplayValuesChange,tn=Le.emptyOptions,Dn=Le.notFoundContent,Qn=Dn===void 0?"Not Found":Dn,ui=Le.onClear,On=Le.mode,on=Le.disabled,Kt=Le.loading,Zt=Le.getInputElement,qt=Le.getRawInputElement,er=Le.open,Xt=Le.defaultOpen,Ur=Le.onDropdownVisibleChange,Mr=Le.activeValue,Gr=Le.onActiveValueChange,Mn=Le.activeDescendantId,Pn=Le.searchValue,si=Le.autoClearSearchValue,ei=Le.onSearch,Ci=Le.onSearchSplit,Yn=Le.tokenSeparators,Hn=Le.allowClear,an=Le.suffixIcon,pi=Le.clearIcon,Ln=Le.OptionList,ni=Le.animation,vi=Le.transitionName,Mi=Le.dropdownStyle,Jn=Le.dropdownClassName,_i=Le.dropdownMatchSelectWidth,ra=Le.dropdownRender,ai=Le.dropdownAlign,An=Le.placement,rn=Le.builtinPlacements,Tn=Le.getPopupContainer,wn=Le.showAction,jn=wn===void 0?[]:wn,ci=Le.onFocus,Bi=Le.onBlur,Aa=Le.onKeyUp,Yi=Le.onKeyDown,ao=Le.onMouseDown,ti=(0,W.Z)(Le,ne),Un=xe(On),Fi=(Wr!==void 0?Wr:Un)||On==="combobox",Ei=(0,Oe.Z)({},ti);Ge.forEach(function(ma){delete Ei[ma]}),jr==null||jr.forEach(function(ma){delete Ei[ma]});var ha=h.useState(!1),No=(0,ie.Z)(ha,2),na=No[0],Ji=No[1];h.useEffect(function(){Ji((0,N.Z)())},[]);var ja=h.useRef(null),La=h.useRef(null),eo=h.useRef(null),vo=h.useRef(null),wa=h.useRef(null),Ai=V(),ua=(0,ie.Z)(Ai,3),Do=ua[0],uo=ua[1],Xa=ua[2];h.useImperativeHandle(lt,function(){var ma,oa;return{focus:(ma=vo.current)===null||ma===void 0?void 0:ma.focus,blur:(oa=vo.current)===null||oa===void 0?void 0:oa.blur,scrollTo:function(Za){var to;return(to=wa.current)===null||to===void 0?void 0:to.scrollTo(Za)}}});var Pi=h.useMemo(function(){var ma;if(On!=="combobox")return Pn;var oa=(ma=Yr[0])===null||ma===void 0?void 0:ma.value;return typeof oa=="string"||typeof oa=="number"?String(oa):""},[Pn,On,Yr]),Po=On==="combobox"&&typeof Zt=="function"&&Zt()||null,fo=typeof qt=="function"&&qt(),il=(0,I.x1)(La,fo==null||($t=fo.props)===null||$t===void 0?void 0:$t.ref),$o=h.useState(!1),Hs=(0,ie.Z)($o,2),Zo=Hs[0],vl=Hs[1];(0,_.Z)(function(){vl(!0)},[]);var za=(0,f.Z)(!1,{defaultValue:Xt,value:er}),Qa=(0,ie.Z)(za,2),_a=Qa[0],js=Qa[1],yi=Zo?_a:!1,Vi=!Qn&&tn;(on||Vi&&yi&&On==="combobox")&&(yi=!1);var Oi=Vi?!1:yi,Wi=h.useCallback(function(ma){var oa=ma!==void 0?ma:!yi;on||(js(oa),yi!==oa&&(Ur==null||Ur(oa)))},[on,yi,js,Ur]),da=h.useMemo(function(){return(Yn||[]).some(function(ma){return[`
`,`\r
`].includes(ma)})},[Yn]),ka=function(oa,ho,Za){var to=!0,Ro=oa;Gr==null||Gr(null);var Ya=Za?null:H(oa,Yn);return On!=="combobox"&&Ya&&(Ro="",Ci==null||Ci(Ya),Wi(!1),to=!1),ei&&Pi!==Ro&&ei(Ro,{source:ho?"typing":"effect"}),to},Vo=function(oa){!oa||!oa.trim()||ei(oa,{source:"submit"})};h.useEffect(function(){!yi&&!Un&&On!=="combobox"&&ka("",!1,!1)},[yi]),h.useEffect(function(){_a&&on&&js(!1),on&&uo(!1)},[on]);var _o=j(),Bo=(0,ie.Z)(_o,2),$a=Bo[0],xa=Bo[1],pa=function(oa){var ho=$a(),Za=oa.which;if(Za===R.Z.ENTER&&(On!=="combobox"&&oa.preventDefault(),yi||Wi(!0)),xa(!!Pi),Za===R.Z.BACKSPACE&&!ho&&Un&&!Pi&&Yr.length){for(var to=(0,de.Z)(Yr),Ro=null,Ya=to.length-1;Ya>=0;Ya-=1){var Wo=to[Ya];if(!Wo.disabled){to.splice(Ya,1),Ro=Wo;break}}Ro&&mn(to,{type:"remove",values:[Ro]})}for(var Ds=arguments.length,hl=new Array(Ds>1?Ds-1:0),Xs=1;Xs<Ds;Xs++)hl[Xs-1]=arguments[Xs];if(yi&&wa.current){var al;(al=wa.current).onKeyDown.apply(al,[oa].concat(hl))}Yi==null||Yi.apply(void 0,[oa].concat(hl))},Oa=function(oa){for(var ho=arguments.length,Za=new Array(ho>1?ho-1:0),to=1;to<ho;to++)Za[to-1]=arguments[to];if(yi&&wa.current){var Ro;(Ro=wa.current).onKeyUp.apply(Ro,[oa].concat(Za))}Aa==null||Aa.apply(void 0,[oa].concat(Za))},Ja=function(oa){var ho=Yr.filter(function(Za){return Za!==oa});mn(ho,{type:"remove",values:[oa]})},oo=h.useRef(!1),Ua=function(){uo(!0),on||(ci&&!oo.current&&ci.apply(void 0,arguments),jn.includes("focus")&&Wi(!0)),oo.current=!0},Da=function(){uo(!1,function(){oo.current=!1,Wi(!1)}),!on&&(Pi&&(On==="tags"?ei(Pi,{source:"submit"}):On==="multiple"&&ei("",{source:"blur"})),Bi&&Bi.apply(void 0,arguments))},Fo=[];h.useEffect(function(){return function(){Fo.forEach(function(ma){return clearTimeout(ma)}),Fo.splice(0,Fo.length)}},[]);var Ll=function(oa){var ho,Za=oa.target,to=(ho=eo.current)===null||ho===void 0?void 0:ho.getPopupElement();if(to&&to.contains(Za)){var Ro=setTimeout(function(){var hl=Fo.indexOf(Ro);if(hl!==-1&&Fo.splice(hl,1),Xa(),!na&&!to.contains(document.activeElement)){var Xs;(Xs=vo.current)===null||Xs===void 0||Xs.focus()}});Fo.push(Ro)}for(var Ya=arguments.length,Wo=new Array(Ya>1?Ya-1:0),Ds=1;Ds<Ya;Ds++)Wo[Ds-1]=arguments[Ds];ao==null||ao.apply(void 0,[oa].concat(Wo))},cs=h.useState({}),dl=(0,ie.Z)(cs,2),Oo=dl[1];function ks(){Oo({})}var Io;fo&&(Io=function(oa){Wi(oa)}),le(function(){var ma;return[ja.current,(ma=eo.current)===null||ma===void 0?void 0:ma.getPopupElement()]},Oi,Wi,!!fo);var Kn=h.useMemo(function(){return(0,Oe.Z)((0,Oe.Z)({},Le),{},{notFoundContent:Qn,open:yi,triggerOpen:Oi,id:Br,showSearch:Fi,multiple:Un,toggleOpen:Wi})},[Le,Qn,Oi,yi,Br,Fi,Un,Wi]),kl=!!an||Kt,To;kl&&(To=h.createElement(K,{className:S()("".concat(pr,"-arrow"),(0,Q.Z)({},"".concat(pr,"-arrow-loading"),Kt)),customizeIcon:an,customizeIconProps:{loading:Kt,searchValue:Pi,open:yi,focused:Do,showSearch:Fi}}));var Hl=function(){var oa;ui==null||ui(),(oa=vo.current)===null||oa===void 0||oa.focus(),mn([],{type:"clear",values:Yr}),ka("",!1,!1)},zs=se(pr,Hl,Yr,Hn,pi,on,Pi,On),ms=zs.allowClear,Pa=zs.clearIcon,Uo=h.createElement(Ln,{ref:wa}),jl=S()(pr,Kr,(Qt={},(0,Q.Z)(Qt,"".concat(pr,"-focused"),Do),(0,Q.Z)(Qt,"".concat(pr,"-multiple"),Un),(0,Q.Z)(Qt,"".concat(pr,"-single"),!Un),(0,Q.Z)(Qt,"".concat(pr,"-allow-clear"),Hn),(0,Q.Z)(Qt,"".concat(pr,"-show-arrow"),kl),(0,Q.Z)(Qt,"".concat(pr,"-disabled"),on),(0,Q.Z)(Qt,"".concat(pr,"-loading"),Kt),(0,Q.Z)(Qt,"".concat(pr,"-open"),yi),(0,Q.Z)(Qt,"".concat(pr,"-customize-input"),Po),(0,Q.Z)(Qt,"".concat(pr,"-show-search"),Fi),Qt)),tc=h.createElement(k,{ref:eo,disabled:on,prefixCls:pr,visible:Oi,popupElement:Uo,animation:ni,transitionName:vi,dropdownStyle:Mi,dropdownClassName:Jn,direction:Vr,dropdownMatchSelectWidth:_i,dropdownRender:ra,dropdownAlign:ai,placement:An,builtinPlacements:rn,getPopupContainer:Tn,empty:tn,getTriggerDOMNode:function(){return La.current},onPopupVisibleChange:Io,onPopupMouseEnter:ks},fo?h.cloneElement(fo,{ref:il}):h.createElement(cr,(0,ge.Z)({},Le,{domRef:La,prefixCls:pr,inputElement:Po,ref:vo,id:Br,showSearch:Fi,autoClearSearchValue:si,mode:On,activeDescendantId:Mn,tagRender:en,values:Yr,open:yi,onToggleOpen:Wi,activeValue:Mr,searchValue:Pi,onSearch:ka,onSearchSubmit:Vo,onRemove:Ja,tokenWithEnter:da}))),fl;return fo?fl=tc:fl=h.createElement("div",(0,ge.Z)({className:jl},Ei,{ref:ja,onMouseDown:Ll,onKeyDown:pa,onKeyUp:Oa,onFocus:Ua,onBlur:Da}),Do&&!yi&&h.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Yr.map(function(ma){var oa=ma.label,ho=ma.value;return["number","string"].includes((0,B.Z)(oa))?oa:ho}).join(", "))),tc,To,ms&&Pa),h.createElement(te.Provider,{value:Kn},fl)}),qe=we,Et=function(Le,lt){var $t=h.useRef({values:new Map,options:new Map}),Qt=h.useMemo(function(){var pr=$t.current,Kr=pr.values,Wr=pr.options,en=Le.map(function(Yr){if(Yr.label===void 0){var mn;return(0,Oe.Z)((0,Oe.Z)({},Yr),{},{label:(mn=Kr.get(Yr.value))===null||mn===void 0?void 0:mn.label})}return Yr}),Vr=new Map,jr=new Map;return en.forEach(function(Yr){Vr.set(Yr.value,Yr),jr.set(Yr.value,lt.get(Yr.value)||Wr.get(Yr.value))}),$t.current.values=Vr,$t.current.options=jr,en},[Le,lt]),Br=h.useCallback(function(pr){return lt.get(pr)||$t.current.options.get(pr)},[lt]);return[Qt,Br]};function pe(Le,lt){return ce(Le).join("").toUpperCase().includes(lt)}var dt=function(Le,lt,$t,Qt,Br){return h.useMemo(function(){if(!$t||Qt===!1)return Le;var pr=lt.options,Kr=lt.label,Wr=lt.value,en=[],Vr=typeof Qt=="function",jr=$t.toUpperCase(),Yr=Vr?Qt:function(tn,Dn){return Br?pe(Dn[Br],jr):Dn[pr]?pe(Dn[Kr!=="children"?Kr:"label"],jr):pe(Dn[Wr],jr)},mn=Vr?function(tn){return Ee(tn)}:function(tn){return tn};return Le.forEach(function(tn){if(tn[pr]){var Dn=Yr($t,mn(tn));if(Dn)en.push(tn);else{var Qn=tn[pr].filter(function(ui){return Yr($t,mn(ui))});Qn.length&&en.push((0,Oe.Z)((0,Oe.Z)({},tn),{},(0,Q.Z)({},pr,Qn)))}return}Yr($t,mn(tn))&&en.push(tn)}),en},[Le,Qt,Br,$t,lt])},At=x(17115),Me=x(11592),De=["children","value"],gt=["children"];function jt(Le){var lt=Le,$t=lt.key,Qt=lt.props,Br=Qt.children,pr=Qt.value,Kr=(0,W.Z)(Qt,De);return(0,Oe.Z)({key:$t,value:pr!==void 0?pr:$t,children:Br},Kr)}function Tt(Le){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Me.Z)(Le).map(function($t,Qt){if(!h.isValidElement($t)||!$t.type)return null;var Br=$t,pr=Br.type.isSelectOptGroup,Kr=Br.key,Wr=Br.props,en=Wr.children,Vr=(0,W.Z)(Wr,gt);return lt||!pr?jt($t):(0,Oe.Z)((0,Oe.Z)({key:"__RC_SELECT_GRP__".concat(Kr===null?Qt:Kr,"__"),label:Kr},Vr),{},{options:Tt(en)})}).filter(function($t){return $t})}function ir(Le,lt,$t,Qt,Br){return h.useMemo(function(){var pr=Le,Kr=!Le;Kr&&(pr=Tt(lt));var Wr=new Map,en=new Map,Vr=function(mn,tn,Dn){Dn&&typeof Dn=="string"&&mn.set(tn[Dn],tn)};function jr(Yr){for(var mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tn=0;tn<Yr.length;tn+=1){var Dn=Yr[tn];!Dn[$t.options]||mn?(Wr.set(Dn[$t.value],Dn),Vr(en,Dn,$t.label),Vr(en,Dn,Qt),Vr(en,Dn,Br)):jr(Dn[$t.options],!0)}}return jr(pr),{options:pr,valueOptions:Wr,labelOptions:en}},[Le,lt,$t,Qt,Br])}function Fr(Le){var lt=h.useRef();lt.current=Le;var $t=h.useCallback(function(){return lt.current.apply(lt,arguments)},[]);return $t}var Pr=function(){return null};Pr.isSelectOptGroup=!0;var Hr=Pr,Rr=function(){return null};Rr.isSelectOption=!0;var sr=Rr,lr=x(80547),$r=x(2738),ln=x(45680),En=h.createContext(null),cn=En;function In(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var bi=["disabled","title","children","style","className"];function Ir(Le){return typeof Le=="string"||typeof Le=="number"}var qn=function(lt,$t){var Qt=G(),Br=Qt.prefixCls,pr=Qt.id,Kr=Qt.open,Wr=Qt.multiple,en=Qt.mode,Vr=Qt.searchValue,jr=Qt.toggleOpen,Yr=Qt.notFoundContent,mn=Qt.onPopupScroll,tn=h.useContext(cn),Dn=tn.flattenOptions,Qn=tn.onActiveValue,ui=tn.defaultActiveFirstOption,On=tn.onSelect,on=tn.menuItemSelectedIcon,Kt=tn.rawValues,Zt=tn.fieldNames,qt=tn.virtual,er=tn.direction,Xt=tn.listHeight,Ur=tn.listItemHeight,Mr="".concat(Br,"-item"),Gr=(0,lr.Z)(function(){return Dn},[Kr,Dn],function(ai,An){return An[0]&&ai[1]!==An[1]}),Mn=h.useRef(null),Pn=function(An){An.preventDefault()},si=function(An){Mn.current&&Mn.current.scrollTo(typeof An=="number"?{index:An}:An)},ei=function(An){for(var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Tn=Gr.length,wn=0;wn<Tn;wn+=1){var jn=(An+wn*rn+Tn)%Tn,ci=Gr[jn],Bi=ci.group,Aa=ci.data;if(!Bi&&!Aa.disabled)return jn}return-1},Ci=h.useState(function(){return ei(0)}),Yn=(0,ie.Z)(Ci,2),Hn=Yn[0],an=Yn[1],pi=function(An){var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;an(An);var Tn={source:rn?"keyboard":"mouse"},wn=Gr[An];if(!wn){Qn(null,-1,Tn);return}Qn(wn.value,An,Tn)};(0,h.useEffect)(function(){pi(ui!==!1?ei(0):-1)},[Gr.length,Vr]);var Ln=h.useCallback(function(ai){return Kt.has(ai)&&en!=="combobox"},[en,(0,de.Z)(Kt).toString(),Kt.size]);(0,h.useEffect)(function(){var ai=setTimeout(function(){if(!Wr&&Kr&&Kt.size===1){var rn=Array.from(Kt)[0],Tn=Gr.findIndex(function(wn){var jn=wn.data;return jn.value===rn});Tn!==-1&&(pi(Tn),si(Tn))}});if(Kr){var An;(An=Mn.current)===null||An===void 0||An.scrollTo(void 0)}return function(){return clearTimeout(ai)}},[Kr,Vr,Dn.length]);var ni=function(An){An!==void 0&&On(An,{selected:!Kt.has(An)}),Wr||jr(!1)};if(h.useImperativeHandle($t,function(){return{onKeyDown:function(An){var rn=An.which,Tn=An.ctrlKey;switch(rn){case R.Z.N:case R.Z.P:case R.Z.UP:case R.Z.DOWN:{var wn=0;if(rn===R.Z.UP?wn=-1:rn===R.Z.DOWN?wn=1:In()&&Tn&&(rn===R.Z.N?wn=1:rn===R.Z.P&&(wn=-1)),wn!==0){var jn=ei(Hn+wn,wn);si(jn),pi(jn,!0)}break}case R.Z.ENTER:{var ci=Gr[Hn];ci&&!ci.data.disabled?ni(ci.value):ni(void 0),Kr&&An.preventDefault();break}case R.Z.ESC:jr(!1),Kr&&An.stopPropagation()}},onKeyUp:function(){},scrollTo:function(An){si(An)}}}),Gr.length===0)return h.createElement("div",{role:"listbox",id:"".concat(pr,"_list"),className:"".concat(Mr,"-empty"),onMouseDown:Pn},Yr);var vi=Object.keys(Zt).map(function(ai){return Zt[ai]}),Mi=function(An){return An.label};function Jn(ai,An){var rn=ai.group;return{role:rn?"presentation":"option",id:"".concat(pr,"_list_").concat(An)}}var _i=function(An){var rn=Gr[An];if(!rn)return null;var Tn=rn.data||{},wn=Tn.value,jn=rn.group,ci=(0,he.Z)(Tn,!0),Bi=Mi(rn);return rn?h.createElement("div",(0,ge.Z)({"aria-label":typeof Bi=="string"&&!jn?Bi:null},ci,{key:An},Jn(rn,An),{"aria-selected":Ln(wn)}),wn):null},ra={role:"listbox",id:"".concat(pr,"_list")};return h.createElement(h.Fragment,null,qt&&h.createElement("div",(0,ge.Z)({},ra,{style:{height:0,width:0,overflow:"hidden"}}),_i(Hn-1),_i(Hn),_i(Hn+1)),h.createElement(ln.Z,{itemKey:"key",ref:Mn,data:Gr,height:Xt,itemHeight:Ur,fullHeight:!1,onMouseDown:Pn,onScroll:mn,virtual:qt,direction:er,innerProps:qt?null:ra},function(ai,An){var rn,Tn=ai.group,wn=ai.groupOption,jn=ai.data,ci=ai.label,Bi=ai.value,Aa=jn.key;if(Tn){var Yi,ao=(Yi=jn.title)!==null&&Yi!==void 0?Yi:Ir(ci)?ci.toString():void 0;return h.createElement("div",{className:S()(Mr,"".concat(Mr,"-group")),title:ao},ci!==void 0?ci:Aa)}var ti=jn.disabled,Un=jn.title,Fi=jn.children,Ei=jn.style,ha=jn.className,No=(0,W.Z)(jn,bi),na=(0,$r.Z)(No,vi),Ji=Ln(Bi),ja="".concat(Mr,"-option"),La=S()(Mr,ja,ha,(rn={},(0,Q.Z)(rn,"".concat(ja,"-grouped"),wn),(0,Q.Z)(rn,"".concat(ja,"-active"),Hn===An&&!ti),(0,Q.Z)(rn,"".concat(ja,"-disabled"),ti),(0,Q.Z)(rn,"".concat(ja,"-selected"),Ji),rn)),eo=Mi(ai),vo=!on||typeof on=="function"||Ji,wa=typeof eo=="number"?eo:eo||Bi,Ai=Ir(wa)?wa.toString():void 0;return Un!==void 0&&(Ai=Un),h.createElement("div",(0,ge.Z)({},(0,he.Z)(na),qt?{}:Jn(ai,An),{"aria-selected":Ji,className:La,title:Ai,onMouseMove:function(){Hn===An||ti||pi(An)},onClick:function(){ti||ni(Bi)},style:Ei}),h.createElement("div",{className:"".concat(ja,"-content")},wa),h.isValidElement(on)||Ji,vo&&h.createElement(K,{className:"".concat(Mr,"-option-state"),customizeIcon:on,customizeIconProps:{isSelected:Ji}},Ji?"\u2713":null))}))},wi=h.forwardRef(qn);wi.displayName="OptionList";var $n=wi;function Ni(Le){var lt=Le.mode,$t=Le.options,Qt=Le.children,Br=Le.backfill,pr=Le.allowClear,Kr=Le.placeholder,Wr=Le.getInputElement,en=Le.showSearch,Vr=Le.onSearch,jr=Le.defaultOpen,Yr=Le.autoFocus,mn=Le.labelInValue,tn=Le.value,Dn=Le.inputValue,Qn=Le.optionLabelProp,ui=isMultiple(lt),On=en!==void 0?en:ui||lt==="combobox",on=$t||convertChildrenToData(Qt);if(warning(lt!=="tags"||on.every(function(er){return!er.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),lt==="tags"||lt==="combobox"){var Kt=on.some(function(er){return er.options?er.options.some(function(Xt){return typeof("value"in Xt?Xt.value:Xt.key)=="number"}):typeof("value"in er?er.value:er.key)=="number"});warning(!Kt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(lt!=="combobox"||!Qn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(lt==="combobox"||!Br,"`backfill` only works with `combobox` mode."),warning(lt==="combobox"||!Wr,"`getInputElement` only work with `combobox` mode."),noteOnce(lt!=="combobox"||!Wr||!pr||!Kr,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Vr&&!On&&lt!=="combobox"&&lt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!jr||Yr,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),tn!=null){var Zt=toArray(tn);warning(!mn||Zt.every(function(er){return _typeof(er)==="object"&&("key"in er||"value"in er)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!ui||Array.isArray(tn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Qt){var qt=null;toNodeArray(Qt).some(function(er){if(!React.isValidElement(er)||!er.type)return!1;var Xt=er,Ur=Xt.type;if(Ur.isSelectOption)return!1;if(Ur.isSelectOptGroup){var Mr=toNodeArray(er.props.children).every(function(Gr){return!React.isValidElement(Gr)||!er.type||Gr.type.isSelectOption?!0:(qt=Gr.type,!1)});return!Mr}return qt=Ur,!0}),qt&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(qt.displayName||qt.name||qt,"`.")),warning(Dn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function gi(Le,lt){if(Le){var $t=function Qt(Br){for(var pr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Kr=0;Kr<Br.length;Kr++){var Wr=Br[Kr];if(Wr[lt==null?void 0:lt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!pr&&Array.isArray(Wr[lt==null?void 0:lt.options])&&Qt(Wr[lt==null?void 0:lt.options],!0))break}};$t(Le)}}var Qi=null,ba=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],$i=["inputValue"];function ri(Le){return!Le||(0,B.Z)(Le)!=="object"}var xi=h.forwardRef(function(Le,lt){var $t=Le.id,Qt=Le.mode,Br=Le.prefixCls,pr=Br===void 0?"rc-select":Br,Kr=Le.backfill,Wr=Le.fieldNames,en=Le.inputValue,Vr=Le.searchValue,jr=Le.onSearch,Yr=Le.autoClearSearchValue,mn=Yr===void 0?!0:Yr,tn=Le.onSelect,Dn=Le.onDeselect,Qn=Le.dropdownMatchSelectWidth,ui=Qn===void 0?!0:Qn,On=Le.filterOption,on=Le.filterSort,Kt=Le.optionFilterProp,Zt=Le.optionLabelProp,qt=Le.options,er=Le.children,Xt=Le.defaultActiveFirstOption,Ur=Le.menuItemSelectedIcon,Mr=Le.virtual,Gr=Le.direction,Mn=Le.listHeight,Pn=Mn===void 0?200:Mn,si=Le.listItemHeight,ei=si===void 0?20:si,Ci=Le.value,Yn=Le.defaultValue,Hn=Le.labelInValue,an=Le.onChange,pi=(0,W.Z)(Le,ba),Ln=(0,At.ZP)($t),ni=xe(Qt),vi=!!(!qt&&er),Mi=h.useMemo(function(){return On===void 0&&Qt==="combobox"?!1:On},[On,Qt]),Jn=h.useMemo(function(){return w(Wr,vi)},[JSON.stringify(Wr),vi]),_i=(0,f.Z)("",{value:Vr!==void 0?Vr:en,postState:function(Vi){return Vi||""}}),ra=(0,ie.Z)(_i,2),ai=ra[0],An=ra[1],rn=ir(qt,er,Jn,Kt,Zt),Tn=rn.valueOptions,wn=rn.labelOptions,jn=rn.options,ci=h.useCallback(function(yi){var Vi=ce(yi);return Vi.map(function(Oi){var Wi,da,ka,Vo,_o;if(ri(Oi))Wi=Oi;else{var Bo;ka=Oi.key,da=Oi.label,Wi=(Bo=Oi.value)!==null&&Bo!==void 0?Bo:ka}var $a=Tn.get(Wi);if($a){var xa;if(da===void 0&&(da=$a==null?void 0:$a[Zt||Jn.label]),ka===void 0&&(ka=(xa=$a==null?void 0:$a.key)!==null&&xa!==void 0?xa:Wi),Vo=$a==null?void 0:$a.disabled,_o=$a==null?void 0:$a.title,0)var pa}return{label:da,value:Wi,key:ka,disabled:Vo,title:_o}})},[Jn,Zt,Tn]),Bi=(0,f.Z)(Yn,{value:Ci}),Aa=(0,ie.Z)(Bi,2),Yi=Aa[0],ao=Aa[1],ti=h.useMemo(function(){var yi,Vi=ci(Yi);return Qt==="combobox"&&Ce((yi=Vi[0])===null||yi===void 0?void 0:yi.value)?[]:Vi},[Yi,ci,Qt]),Un=Et(ti,Tn),Fi=(0,ie.Z)(Un,2),Ei=Fi[0],ha=Fi[1],No=h.useMemo(function(){if(!Qt&&Ei.length===1){var yi=Ei[0];if(yi.value===null&&(yi.label===null||yi.label===void 0))return[]}return Ei.map(function(Vi){var Oi;return(0,Oe.Z)((0,Oe.Z)({},Vi),{},{label:(Oi=Vi.label)!==null&&Oi!==void 0?Oi:Vi.value})})},[Qt,Ei]),na=h.useMemo(function(){return new Set(Ei.map(function(yi){return yi.value}))},[Ei]);h.useEffect(function(){if(Qt==="combobox"){var yi,Vi=(yi=Ei[0])===null||yi===void 0?void 0:yi.value;An(ke(Vi)?String(Vi):"")}},[Ei]);var Ji=Fr(function(yi,Vi){var Oi,Wi=Vi!=null?Vi:yi;return Oi={},(0,Q.Z)(Oi,Jn.value,yi),(0,Q.Z)(Oi,Jn.label,Wi),Oi}),ja=h.useMemo(function(){if(Qt!=="tags")return jn;var yi=(0,de.Z)(jn),Vi=function(Wi){return Tn.has(Wi)};return(0,de.Z)(Ei).sort(function(Oi,Wi){return Oi.value<Wi.value?-1:1}).forEach(function(Oi){var Wi=Oi.value;Vi(Wi)||yi.push(Ji(Wi,Oi.label))}),yi},[Ji,jn,Tn,Ei,Qt]),La=dt(ja,Jn,ai,Mi,Kt),eo=h.useMemo(function(){return Qt!=="tags"||!ai||La.some(function(yi){return yi[Kt||"value"]===ai})||La.some(function(yi){return yi[Jn.value]===ai})?La:[Ji(ai)].concat((0,de.Z)(La))},[Ji,Kt,Qt,La,ai,Jn]),vo=h.useMemo(function(){return on?(0,de.Z)(eo).sort(function(yi,Vi){return on(yi,Vi)}):eo},[eo,on]),wa=h.useMemo(function(){return Y(vo,{fieldNames:Jn,childrenAsData:vi})},[vo,Jn,vi]),Ai=function(Vi){var Oi=ci(Vi);if(ao(Oi),an&&(Oi.length!==Ei.length||Oi.some(function(ka,Vo){var _o;return((_o=Ei[Vo])===null||_o===void 0?void 0:_o.value)!==(ka==null?void 0:ka.value)}))){var Wi=Hn?Oi:Oi.map(function(ka){return ka.value}),da=Oi.map(function(ka){return Ee(ha(ka.value))});an(ni?Wi:Wi[0],ni?da:da[0])}},ua=h.useState(null),Do=(0,ie.Z)(ua,2),uo=Do[0],Xa=Do[1],Pi=h.useState(0),Po=(0,ie.Z)(Pi,2),fo=Po[0],il=Po[1],$o=Xt!==void 0?Xt:Qt!=="combobox",Hs=h.useCallback(function(yi,Vi){var Oi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Wi=Oi.source,da=Wi===void 0?"keyboard":Wi;il(Vi),Kr&&Qt==="combobox"&&yi!==null&&da==="keyboard"&&Xa(String(yi))},[Kr,Qt]),Zo=function(Vi,Oi,Wi){var da=function(){var oo,Ua=ha(Vi);return[Hn?{label:Ua==null?void 0:Ua[Jn.label],value:Vi,key:(oo=Ua==null?void 0:Ua.key)!==null&&oo!==void 0?oo:Vi}:Vi,Ee(Ua)]};if(Oi&&tn){var ka=da(),Vo=(0,ie.Z)(ka,2),_o=Vo[0],Bo=Vo[1];tn(_o,Bo)}else if(!Oi&&Dn&&Wi!=="clear"){var $a=da(),xa=(0,ie.Z)($a,2),pa=xa[0],Oa=xa[1];Dn(pa,Oa)}},vl=Fr(function(yi,Vi){var Oi,Wi=ni?Vi.selected:!0;Wi?Oi=ni?[].concat((0,de.Z)(Ei),[yi]):[yi]:Oi=Ei.filter(function(da){return da.value!==yi}),Ai(Oi),Zo(yi,Wi),Qt==="combobox"?Xa(""):(!xe||mn)&&(An(""),Xa(""))}),za=function(Vi,Oi){Ai(Vi);var Wi=Oi.type,da=Oi.values;(Wi==="remove"||Wi==="clear")&&da.forEach(function(ka){Zo(ka.value,!1,Wi)})},Qa=function(Vi,Oi){if(An(Vi),Xa(null),Oi.source==="submit"){var Wi=(Vi||"").trim();if(Wi){var da=Array.from(new Set([].concat((0,de.Z)(na),[Wi])));Ai(da),Zo(Wi,!0),An("")}return}Oi.source!=="blur"&&(Qt==="combobox"&&Ai(Vi),jr==null||jr(Vi))},_a=function(Vi){var Oi=Vi;Qt!=="tags"&&(Oi=Vi.map(function(da){var ka=wn.get(da);return ka==null?void 0:ka.value}).filter(function(da){return da!==void 0}));var Wi=Array.from(new Set([].concat((0,de.Z)(na),(0,de.Z)(Oi))));Ai(Wi),Wi.forEach(function(da){Zo(da,!0)})},js=h.useMemo(function(){var yi=Mr!==!1&&ui!==!1;return(0,Oe.Z)((0,Oe.Z)({},rn),{},{flattenOptions:wa,onActiveValue:Hs,defaultActiveFirstOption:$o,onSelect:vl,menuItemSelectedIcon:Ur,rawValues:na,fieldNames:Jn,virtual:yi,direction:Gr,listHeight:Pn,listItemHeight:ei,childrenAsData:vi})},[rn,wa,Hs,$o,vl,Ur,na,Jn,Mr,ui,Pn,ei,vi]);return h.createElement(cn.Provider,{value:js},h.createElement(qe,(0,ge.Z)({},pi,{id:Ln,prefixCls:pr,ref:lt,omitDomProps:$i,mode:Qt,displayValues:No,onDisplayValuesChange:za,direction:Gr,searchValue:ai,onSearch:Qa,autoClearSearchValue:mn,onSearchSplit:_a,dropdownMatchSelectWidth:ui,OptionList:$n,emptyOptions:!wa.length,activeValue:uo,activeDescendantId:"".concat(Ln,"_list_").concat(fo)})))}),Ti=xi;Ti.Option=sr,Ti.OptGroup=Hr;var me=Ti,Ue=me},9296:function(xn,Yt,x){"use strict";x.r(Yt),x.d(Yt,{ResizableTextArea:function(){return je},default:function(){return Ce}});var ge=x(72308),de=x(77321),Q=x(49618),Oe=x(62853),ie=x(52487),W=x(74416),B=x(80702),f=x(92310),E=x.n(f),h=x(93681),$=x(5643),S=x(18929),_=x(59301),N=x(29301),R=x(34280),I=x(16089),J=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,K=["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"],se={},te;function G(Qe){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pe=Qe.getAttribute("id")||Qe.getAttribute("data-reactid")||Qe.getAttribute("name");if(ve&&se[Pe])return se[Pe];var fe=window.getComputedStyle(Qe),ye=fe.getPropertyValue("box-sizing")||fe.getPropertyValue("-moz-box-sizing")||fe.getPropertyValue("-webkit-box-sizing"),at=parseFloat(fe.getPropertyValue("padding-bottom"))+parseFloat(fe.getPropertyValue("padding-top")),rt=parseFloat(fe.getPropertyValue("border-bottom-width"))+parseFloat(fe.getPropertyValue("border-top-width")),nt=K.map(function(Pt){return"".concat(Pt,":").concat(fe.getPropertyValue(Pt))}).join(";"),ut={sizingStyle:nt,paddingSize:at,borderSize:rt,boxSizing:ye};return ve&&Pe&&(se[Pe]=ut),ut}function V(Qe){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;te||(te=document.createElement("textarea"),te.setAttribute("tab-index","-1"),te.setAttribute("aria-hidden","true"),document.body.appendChild(te)),Qe.getAttribute("wrap")?te.setAttribute("wrap",Qe.getAttribute("wrap")):te.removeAttribute("wrap");var ye=G(Qe,ve),at=ye.paddingSize,rt=ye.borderSize,nt=ye.boxSizing,ut=ye.sizingStyle;te.setAttribute("style","".concat(ut,";").concat(J)),te.value=Qe.value||Qe.placeholder||"";var Pt=void 0,Ht=void 0,Ut,cr=te.scrollHeight;if(nt==="border-box"?cr+=rt:nt==="content-box"&&(cr-=at),Pe!==null||fe!==null){te.value=" ";var or=te.scrollHeight-at;Pe!==null&&(Pt=or*Pe,nt==="border-box"&&(Pt=Pt+at+rt),cr=Math.max(Pt,cr)),fe!==null&&(Ht=or*fe,nt==="border-box"&&(Ht=Ht+at+rt),Ut=cr>Ht?"":"hidden",cr=Math.min(Ht,cr))}var Cr={height:cr,overflowY:Ut,resize:"none"};return Pt&&(Cr.minHeight=Pt),Ht&&(Cr.maxHeight=Ht),Cr}var j=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],le=0,he=1,Ne=2,Be=_.forwardRef(function(Qe,ve){var Pe=Qe,fe=Pe.prefixCls,ye=Pe.onPressEnter,at=Pe.defaultValue,rt=Pe.value,nt=Pe.autoSize,ut=Pe.onResize,Pt=Pe.className,Ht=Pe.style,Ut=Pe.disabled,cr=Pe.onChange,or=Pe.onInternalAutoSize,Cr=(0,W.Z)(Pe,j),hr=(0,S.Z)(at,{value:rt,postState:function(Hr){return Hr!=null?Hr:""}}),L=(0,ie.Z)(hr,2),it=L[0],k=L[1],p=function(Hr){k(Hr.target.value),cr==null||cr(Hr)},d=_.useRef();_.useImperativeHandle(ve,function(){return{textArea:d.current}});var w=_.useMemo(function(){return nt&&(0,Oe.Z)(nt)==="object"?[nt.minRows,nt.maxRows]:[]},[nt]),Y=(0,ie.Z)(w,2),Ee=Y[0],H=Y[1],ne=!!nt,Ge=function(){try{if(document.activeElement===d.current){var Hr=d.current,Rr=Hr.selectionStart,sr=Hr.selectionEnd,lr=Hr.scrollTop;d.current.setSelectionRange(Rr,sr),d.current.scrollTop=lr}}catch($r){}},xe=_.useState(Ne),we=(0,ie.Z)(xe,2),qe=we[0],Et=we[1],pe=_.useState(),dt=(0,ie.Z)(pe,2),At=dt[0],Me=dt[1],De=function(){Et(le)};(0,R.Z)(function(){ne&&De()},[rt,Ee,H,ne]),(0,R.Z)(function(){if(qe===le)Et(he);else if(qe===he){var Pr=V(d.current,!1,Ee,H);Et(Ne),Me(Pr)}else Ge()},[qe]);var gt=_.useRef(),jt=function(){I.Z.cancel(gt.current)},Tt=function(Hr){qe===Ne&&(ut==null||ut(Hr),nt&&(jt(),gt.current=(0,I.Z)(function(){De()})))};_.useEffect(function(){return jt},[]);var ir=ne?At:null,Fr=(0,de.Z)((0,de.Z)({},Ht),ir);return(qe===le||qe===he)&&(Fr.overflowY="hidden",Fr.overflowX="hidden"),_.createElement(N.Z,{onResize:Tt,disabled:!(nt||ut)},_.createElement("textarea",(0,ge.Z)({},Cr,{ref:d,style:Fr,className:E()(fe,Pt,(0,Q.Z)({},"".concat(fe,"-disabled"),Ut)),disabled:Ut,value:it,onChange:p})))}),je=Be,q=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function ce(Qe,ve){return(0,B.Z)(Qe||"").slice(0,ve).join("")}function D(Qe,ve,Pe,fe){var ye=Pe;return Qe?ye=ce(Pe,fe):(0,B.Z)(ve||"").length<Pe.length&&(0,B.Z)(Pe||"").length>fe&&(ye=ve),ye}var ot=_.forwardRef(function(Qe,ve){var Pe,fe=Qe.defaultValue,ye=Qe.value,at=Qe.onFocus,rt=Qe.onBlur,nt=Qe.onChange,ut=Qe.allowClear,Pt=Qe.maxLength,Ht=Qe.onCompositionStart,Ut=Qe.onCompositionEnd,cr=Qe.suffix,or=Qe.prefixCls,Cr=or===void 0?"rc-textarea":or,hr=Qe.classes,L=Qe.showCount,it=Qe.className,k=Qe.style,p=Qe.disabled,d=Qe.hidden,w=Qe.classNames,Y=Qe.styles,Ee=Qe.onResize,H=(0,W.Z)(Qe,q),ne=(0,S.Z)(fe,{value:ye,defaultValue:fe}),Ge=(0,ie.Z)(ne,2),xe=Ge[0],we=Ge[1],qe=(0,_.useRef)(null),Et=_.useState(!1),pe=(0,ie.Z)(Et,2),dt=pe[0],At=pe[1],Me=_.useState(!1),De=(0,ie.Z)(Me,2),gt=De[0],jt=De[1],Tt=_.useRef(),ir=_.useRef(0),Fr=_.useState(null),Pr=(0,ie.Z)(Fr,2),Hr=Pr[0],Rr=Pr[1],sr=function(){var ri;(ri=qe.current)===null||ri===void 0||ri.textArea.focus()};(0,_.useImperativeHandle)(ve,function(){return{resizableTextArea:qe.current,focus:sr,blur:function(){var ri;(ri=qe.current)===null||ri===void 0||ri.textArea.blur()}}}),(0,_.useEffect)(function(){At(function($i){return!p&&$i})},[p]);var lr=Number(Pt)>0,$r=function(ri){jt(!0),Tt.current=xe,ir.current=ri.currentTarget.selectionStart,Ht==null||Ht(ri)},ln=function(ri){jt(!1);var xi=ri.currentTarget.value;if(lr){var Ti,me=ir.current>=Pt+1||ir.current===((Ti=Tt.current)===null||Ti===void 0?void 0:Ti.length);xi=D(me,Tt.current,xi,Pt)}xi!==xe&&(we(xi),(0,$.rJ)(ri.currentTarget,ri,nt,xi)),Ut==null||Ut(ri)},En=function(ri){var xi=ri.target.value;if(!gt&&lr){var Ti=ri.target.selectionStart>=Pt+1||ri.target.selectionStart===xi.length||!ri.target.selectionStart;xi=D(Ti,xe,xi,Pt)}we(xi),(0,$.rJ)(ri.currentTarget,ri,nt,xi)},cn=function(ri){var xi=H.onPressEnter,Ti=H.onKeyDown;ri.key==="Enter"&&xi&&xi(ri),Ti==null||Ti(ri)},In=function(ri){At(!0),at==null||at(ri)},bi=function(ri){At(!1),rt==null||rt(ri)},Ir=function(ri){var xi;we(""),sr(),(0,$.rJ)((xi=qe.current)===null||xi===void 0?void 0:xi.textArea,ri,nt)},qn=(0,$.D7)(xe);!gt&&lr&&ye==null&&(qn=ce(qn,Pt));var wi=cr,$n;if(L){var Ni=(0,B.Z)(qn).length;(0,Oe.Z)(L)==="object"?$n=L.formatter({value:qn,count:Ni,maxLength:Pt}):$n="".concat(Ni).concat(lr?" / ".concat(Pt):""),wi=_.createElement(_.Fragment,null,wi,_.createElement("span",{className:E()("".concat(Cr,"-data-count"),w==null?void 0:w.count),style:Y==null?void 0:Y.count},$n))}var gi=function(ri){var xi;Ee==null||Ee(ri),(xi=qe.current)!==null&&xi!==void 0&&xi.textArea.style.height&&Rr(!0)},Qi=!H.autoSize&&!L&&!ut,ba=_.createElement(h.BaseInput,{value:qn,allowClear:ut,handleReset:Ir,suffix:wi,prefixCls:Cr,classes:{affixWrapper:E()(hr==null?void 0:hr.affixWrapper,(Pe={},(0,Q.Z)(Pe,"".concat(Cr,"-show-count"),L),(0,Q.Z)(Pe,"".concat(Cr,"-textarea-allow-clear"),ut),Pe))},disabled:p,focused:dt,className:it,style:(0,de.Z)((0,de.Z)({},k),Hr&&!Qi?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof $n=="string"?$n:void 0}},hidden:d,inputElement:_.createElement(je,(0,ge.Z)({},H,{onKeyDown:cn,onChange:En,onFocus:In,onBlur:bi,onCompositionStart:$r,onCompositionEnd:ln,className:w==null?void 0:w.textarea,style:(0,de.Z)((0,de.Z)({},Y==null?void 0:Y.textarea),{},{resize:k==null?void 0:k.resize}),disabled:p,prefixCls:Cr,onResize:gi,ref:qe}))});return ba}),ke=ot,Ce=ke},39417:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return he}});var ge=x(72308),de=x(49618),Q=x(74416),Oe=x(77321),ie=x(96949),W=x(55090),B=x(80237),f=x(77205),E=x(38793),h=x(92310),$=x.n(h),S=x(26112),_=x(59301),N=x(39378),R=function(Be){for(var je=Be.prefixCls,q=Be.level,ce=Be.isStart,D=Be.isEnd,ot="".concat(je,"-indent-unit"),ke=[],Ce=0;Ce<q;Ce+=1){var Qe;ke.push(_.createElement("span",{key:Ce,className:$()(ot,(Qe={},(0,de.Z)(Qe,"".concat(ot,"-start"),ce[Ce]),(0,de.Z)(Qe,"".concat(ot,"-end"),D[Ce]),Qe))}))}return _.createElement("span",{"aria-hidden":"true",className:"".concat(je,"-indent")},ke)},I=_.memo(R),J=x(67841),K=x(71430),se=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],te="open",G="close",V="---",j=function(Ne){(0,f.Z)(je,Ne);var Be=(0,E.Z)(je);function je(){var q;(0,ie.Z)(this,je);for(var ce=arguments.length,D=new Array(ce),ot=0;ot<ce;ot++)D[ot]=arguments[ot];return q=Be.call.apply(Be,[this].concat(D)),q.state={dragNodeHighlight:!1},q.selectHandle=void 0,q.cacheIndent=void 0,q.onSelectorClick=function(ke){var Ce=q.props.context.onNodeClick;Ce(ke,(0,K.F)(q.props)),q.isSelectable()?q.onSelect(ke):q.onCheck(ke)},q.onSelectorDoubleClick=function(ke){var Ce=q.props.context.onNodeDoubleClick;Ce(ke,(0,K.F)(q.props))},q.onSelect=function(ke){if(!q.isDisabled()){var Ce=q.props.context.onNodeSelect;Ce(ke,(0,K.F)(q.props))}},q.onCheck=function(ke){if(!q.isDisabled()){var Ce=q.props,Qe=Ce.disableCheckbox,ve=Ce.checked,Pe=q.props.context.onNodeCheck;if(!(!q.isCheckable()||Qe)){var fe=!ve;Pe(ke,(0,K.F)(q.props),fe)}}},q.onMouseEnter=function(ke){var Ce=q.props.context.onNodeMouseEnter;Ce(ke,(0,K.F)(q.props))},q.onMouseLeave=function(ke){var Ce=q.props.context.onNodeMouseLeave;Ce(ke,(0,K.F)(q.props))},q.onContextMenu=function(ke){var Ce=q.props.context.onNodeContextMenu;Ce(ke,(0,K.F)(q.props))},q.onDragStart=function(ke){var Ce=q.props.context.onNodeDragStart;ke.stopPropagation(),q.setState({dragNodeHighlight:!0}),Ce(ke,(0,B.Z)(q));try{ke.dataTransfer.setData("text/plain","")}catch(Qe){}},q.onDragEnter=function(ke){var Ce=q.props.context.onNodeDragEnter;ke.preventDefault(),ke.stopPropagation(),Ce(ke,(0,B.Z)(q))},q.onDragOver=function(ke){var Ce=q.props.context.onNodeDragOver;ke.preventDefault(),ke.stopPropagation(),Ce(ke,(0,B.Z)(q))},q.onDragLeave=function(ke){var Ce=q.props.context.onNodeDragLeave;ke.stopPropagation(),Ce(ke,(0,B.Z)(q))},q.onDragEnd=function(ke){var Ce=q.props.context.onNodeDragEnd;ke.stopPropagation(),q.setState({dragNodeHighlight:!1}),Ce(ke,(0,B.Z)(q))},q.onDrop=function(ke){var Ce=q.props.context.onNodeDrop;ke.preventDefault(),ke.stopPropagation(),q.setState({dragNodeHighlight:!1}),Ce(ke,(0,B.Z)(q))},q.onExpand=function(ke){var Ce=q.props,Qe=Ce.loading,ve=Ce.context.onNodeExpand;Qe||ve(ke,(0,K.F)(q.props))},q.setSelectHandle=function(ke){q.selectHandle=ke},q.getNodeState=function(){var ke=q.props.expanded;return q.isLeaf()?null:ke?te:G},q.hasChildren=function(){var ke=q.props.eventKey,Ce=q.props.context.keyEntities,Qe=(0,J.Z)(Ce,ke)||{},ve=Qe.children;return!!(ve||[]).length},q.isLeaf=function(){var ke=q.props,Ce=ke.isLeaf,Qe=ke.loaded,ve=q.props.context.loadData,Pe=q.hasChildren();return Ce===!1?!1:Ce||!ve&&!Pe||ve&&Qe&&!Pe},q.isDisabled=function(){var ke=q.props.disabled,Ce=q.props.context.disabled;return!!(Ce||ke)},q.isCheckable=function(){var ke=q.props.checkable,Ce=q.props.context.checkable;return!Ce||ke===!1?!1:Ce},q.syncLoadData=function(ke){var Ce=ke.expanded,Qe=ke.loading,ve=ke.loaded,Pe=q.props.context,fe=Pe.loadData,ye=Pe.onNodeLoad;Qe||fe&&Ce&&!q.isLeaf()&&!q.hasChildren()&&!ve&&ye((0,K.F)(q.props))},q.isDraggable=function(){var ke=q.props,Ce=ke.data,Qe=ke.context.draggable;return!!(Qe&&(!Qe.nodeDraggable||Qe.nodeDraggable(Ce)))},q.renderDragHandler=function(){var ke=q.props.context,Ce=ke.draggable,Qe=ke.prefixCls;return Ce!=null&&Ce.icon?_.createElement("span",{className:"".concat(Qe,"-draggable-icon")},Ce.icon):null},q.renderSwitcherIconDom=function(ke){var Ce=q.props.switcherIcon,Qe=q.props.context.switcherIcon,ve=Ce||Qe;return typeof ve=="function"?ve((0,Oe.Z)((0,Oe.Z)({},q.props),{},{isLeaf:ke})):ve},q.renderSwitcher=function(){var ke=q.props.expanded,Ce=q.props.context.prefixCls;if(q.isLeaf()){var Qe=q.renderSwitcherIconDom(!0);return Qe!==!1?_.createElement("span",{className:$()("".concat(Ce,"-switcher"),"".concat(Ce,"-switcher-noop"))},Qe):null}var ve=$()("".concat(Ce,"-switcher"),"".concat(Ce,"-switcher_").concat(ke?te:G)),Pe=q.renderSwitcherIconDom(!1);return Pe!==!1?_.createElement("span",{onClick:q.onExpand,className:ve},Pe):null},q.renderCheckbox=function(){var ke=q.props,Ce=ke.checked,Qe=ke.halfChecked,ve=ke.disableCheckbox,Pe=q.props.context.prefixCls,fe=q.isDisabled(),ye=q.isCheckable();if(!ye)return null;var at=typeof ye!="boolean"?ye:null;return _.createElement("span",{className:$()("".concat(Pe,"-checkbox"),Ce&&"".concat(Pe,"-checkbox-checked"),!Ce&&Qe&&"".concat(Pe,"-checkbox-indeterminate"),(fe||ve)&&"".concat(Pe,"-checkbox-disabled")),onClick:q.onCheck},at)},q.renderIcon=function(){var ke=q.props.loading,Ce=q.props.context.prefixCls;return _.createElement("span",{className:$()("".concat(Ce,"-iconEle"),"".concat(Ce,"-icon__").concat(q.getNodeState()||"docu"),ke&&"".concat(Ce,"-icon_loading"))})},q.renderSelector=function(){var ke=q.state.dragNodeHighlight,Ce=q.props,Qe=Ce.title,ve=Qe===void 0?V:Qe,Pe=Ce.selected,fe=Ce.icon,ye=Ce.loading,at=Ce.data,rt=q.props.context,nt=rt.prefixCls,ut=rt.showIcon,Pt=rt.icon,Ht=rt.loadData,Ut=rt.titleRender,cr=q.isDisabled(),or="".concat(nt,"-node-content-wrapper"),Cr;if(ut){var hr=fe||Pt;Cr=hr?_.createElement("span",{className:$()("".concat(nt,"-iconEle"),"".concat(nt,"-icon__customize"))},typeof hr=="function"?hr(q.props):hr):q.renderIcon()}else Ht&&ye&&(Cr=q.renderIcon());var L;typeof ve=="function"?L=ve(at):Ut?L=Ut(at):L=ve;var it=_.createElement("span",{className:"".concat(nt,"-title")},L);return _.createElement("span",{ref:q.setSelectHandle,title:typeof ve=="string"?ve:"",className:$()("".concat(or),"".concat(or,"-").concat(q.getNodeState()||"normal"),!cr&&(Pe||ke)&&"".concat(nt,"-node-selected")),onMouseEnter:q.onMouseEnter,onMouseLeave:q.onMouseLeave,onContextMenu:q.onContextMenu,onClick:q.onSelectorClick,onDoubleClick:q.onSelectorDoubleClick},Cr,it,q.renderDropIndicator())},q.renderDropIndicator=function(){var ke=q.props,Ce=ke.disabled,Qe=ke.eventKey,ve=q.props.context,Pe=ve.draggable,fe=ve.dropLevelOffset,ye=ve.dropPosition,at=ve.prefixCls,rt=ve.indent,nt=ve.dropIndicatorRender,ut=ve.dragOverNodeKey,Pt=ve.direction,Ht=!!Pe,Ut=!Ce&&Ht&&ut===Qe,cr=rt!=null?rt:q.cacheIndent;return q.cacheIndent=rt,Ut?nt({dropPosition:ye,dropLevelOffset:fe,indent:cr,prefixCls:at,direction:Pt}):null},q}return(0,W.Z)(je,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var ce=this.props.selectable,D=this.props.context.selectable;return typeof ce=="boolean"?ce:D}},{key:"render",value:function(){var ce,D=this.props,ot=D.eventKey,ke=D.className,Ce=D.style,Qe=D.dragOver,ve=D.dragOverGapTop,Pe=D.dragOverGapBottom,fe=D.isLeaf,ye=D.isStart,at=D.isEnd,rt=D.expanded,nt=D.selected,ut=D.checked,Pt=D.halfChecked,Ht=D.loading,Ut=D.domRef,cr=D.active,or=D.data,Cr=D.onMouseMove,hr=D.selectable,L=(0,Q.Z)(D,se),it=this.props.context,k=it.prefixCls,p=it.filterTreeNode,d=it.keyEntities,w=it.dropContainerKey,Y=it.dropTargetKey,Ee=it.draggingNodeKey,H=this.isDisabled(),ne=(0,S.Z)(L,{aria:!0,data:!0}),Ge=(0,J.Z)(d,ot)||{},xe=Ge.level,we=at[at.length-1],qe=this.isDraggable(),Et=!H&&qe,pe=Ee===ot,dt=hr!==void 0?{"aria-selected":!!hr}:void 0;return _.createElement("div",(0,ge.Z)({ref:Ut,className:$()(ke,"".concat(k,"-treenode"),(ce={},(0,de.Z)(ce,"".concat(k,"-treenode-disabled"),H),(0,de.Z)(ce,"".concat(k,"-treenode-switcher-").concat(rt?"open":"close"),!fe),(0,de.Z)(ce,"".concat(k,"-treenode-checkbox-checked"),ut),(0,de.Z)(ce,"".concat(k,"-treenode-checkbox-indeterminate"),Pt),(0,de.Z)(ce,"".concat(k,"-treenode-selected"),nt),(0,de.Z)(ce,"".concat(k,"-treenode-loading"),Ht),(0,de.Z)(ce,"".concat(k,"-treenode-active"),cr),(0,de.Z)(ce,"".concat(k,"-treenode-leaf-last"),we),(0,de.Z)(ce,"".concat(k,"-treenode-draggable"),qe),(0,de.Z)(ce,"dragging",pe),(0,de.Z)(ce,"drop-target",Y===ot),(0,de.Z)(ce,"drop-container",w===ot),(0,de.Z)(ce,"drag-over",!H&&Qe),(0,de.Z)(ce,"drag-over-gap-top",!H&&ve),(0,de.Z)(ce,"drag-over-gap-bottom",!H&&Pe),(0,de.Z)(ce,"filter-node",p&&p((0,K.F)(this.props))),ce)),style:Ce,draggable:Et,"aria-grabbed":pe,onDragStart:Et?this.onDragStart:void 0,onDragEnter:qe?this.onDragEnter:void 0,onDragOver:qe?this.onDragOver:void 0,onDragLeave:qe?this.onDragLeave:void 0,onDrop:qe?this.onDrop:void 0,onDragEnd:qe?this.onDragEnd:void 0,onMouseMove:Cr},dt,ne),_.createElement(I,{prefixCls:k,level:xe,isStart:ye,isEnd:at}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),je}(_.Component),le=function(Be){return _.createElement(N.k.Consumer,null,function(je){return _.createElement(j,(0,ge.Z)({},Be,{context:je}))})};le.displayName="TreeNode",le.isTreeNode=1;var he=le},39378:function(xn,Yt,x){"use strict";x.d(Yt,{k:function(){return de}});var ge=x(59301),de=ge.createContext(null)},54844:function(xn,Yt,x){"use strict";x.d(Yt,{O:function(){return he.Z},Z:function(){return it}});var ge=x(72308),de=x(49618),Q=x(62853),Oe=x(77321),ie=x(80702),W=x(96949),B=x(55090),f=x(80237),E=x(77205),h=x(38793),$=x(92310),S=x.n($),_=x(10228),N=x(26112),R=x(48736),I=x(59301),J=x(39378);function K(k){var p=k.dropPosition,d=k.dropLevelOffset,w=k.indent,Y={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(p){case-1:Y.top=0,Y.left=-d*w;break;case 1:Y.bottom=0,Y.left=-d*w;break;case 0:Y.bottom=0,Y.left=w;break}return I.createElement("div",{style:Y})}function se(k){if(k==null)throw new TypeError("Cannot destructure "+k)}var te=x(52487),G=x(74416),V=x(34280),j=x(45680),le=x(77900),he=x(39417);function Ne(k,p){var d=I.useState(!1),w=(0,te.Z)(d,2),Y=w[0],Ee=w[1];I.useLayoutEffect(function(){if(Y)return k(),function(){p()}},[Y]),I.useLayoutEffect(function(){return Ee(!0),function(){Ee(!1)}},[])}var Be=x(71430),je=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],q=function(p,d){var w=p.className,Y=p.style,Ee=p.motion,H=p.motionNodes,ne=p.motionType,Ge=p.onMotionStart,xe=p.onMotionEnd,we=p.active,qe=p.treeNodeRequiredProps,Et=(0,G.Z)(p,je),pe=I.useState(!0),dt=(0,te.Z)(pe,2),At=dt[0],Me=dt[1],De=I.useContext(J.k),gt=De.prefixCls,jt=H&&ne!=="hide";(0,V.Z)(function(){H&&jt!==At&&Me(jt)},[H]);var Tt=function(){H&&Ge()},ir=I.useRef(!1),Fr=function(){H&&!ir.current&&(ir.current=!0,xe())};Ne(Tt,Fr);var Pr=function(Rr){jt===Rr&&Fr()};return H?I.createElement(le.default,(0,ge.Z)({ref:d,visible:At},Ee,{motionAppear:ne==="show",onVisibleChanged:Pr}),function(Hr,Rr){var sr=Hr.className,lr=Hr.style;return I.createElement("div",{ref:Rr,className:S()("".concat(gt,"-treenode-motion"),sr),style:lr},H.map(function($r){var ln=(0,ge.Z)({},(se($r.data),$r.data)),En=$r.title,cn=$r.key,In=$r.isStart,bi=$r.isEnd;delete ln.children;var Ir=(0,Be.H8)(cn,qe);return I.createElement(he.Z,(0,ge.Z)({},ln,Ir,{title:En,active:we,data:$r.data,key:cn,isStart:In,isEnd:bi}))}))}):I.createElement(he.Z,(0,ge.Z)({domRef:d,className:w,style:Y},Et,{active:we}))};q.displayName="MotionTreeNode";var ce=I.forwardRef(q),D=ce;function ot(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],d=k.length,w=p.length;if(Math.abs(d-w)!==1)return{add:!1,key:null};function Y(Ee,H){var ne=new Map;Ee.forEach(function(xe){ne.set(xe,!0)});var Ge=H.filter(function(xe){return!ne.has(xe)});return Ge.length===1?Ge[0]:null}return d<w?{add:!0,key:Y(k,p)}:{add:!1,key:Y(p,k)}}function ke(k,p,d){var w=k.findIndex(function(ne){return ne.key===d}),Y=k[w+1],Ee=p.findIndex(function(ne){return ne.key===d});if(Y){var H=p.findIndex(function(ne){return ne.key===Y.key});return p.slice(Ee+1,H)}return p.slice(Ee+1)}var Ce=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Qe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ve=function(){},Pe="RC_TREE_MOTION_".concat(Math.random()),fe={key:Pe},ye={key:Pe,level:0,index:0,pos:"0",node:fe,nodes:[fe]},at={parent:null,children:[],pos:ye.pos,data:fe,title:null,key:Pe,isStart:[],isEnd:[]};function rt(k,p,d,w){return p===!1||!d?k:k.slice(0,Math.ceil(d/w)+1)}function nt(k){var p=k.key,d=k.pos;return(0,Be.km)(p,d)}function ut(k){for(var p=String(k.data.key),d=k;d.parent;)d=d.parent,p="".concat(d.data.key," > ").concat(p);return p}var Pt=I.forwardRef(function(k,p){var d=k.prefixCls,w=k.data,Y=k.selectable,Ee=k.checkable,H=k.expandedKeys,ne=k.selectedKeys,Ge=k.checkedKeys,xe=k.loadedKeys,we=k.loadingKeys,qe=k.halfCheckedKeys,Et=k.keyEntities,pe=k.disabled,dt=k.dragging,At=k.dragOverNodeKey,Me=k.dropPosition,De=k.motion,gt=k.height,jt=k.itemHeight,Tt=k.virtual,ir=k.focusable,Fr=k.activeItem,Pr=k.focused,Hr=k.tabIndex,Rr=k.onKeyDown,sr=k.onFocus,lr=k.onBlur,$r=k.onActiveChange,ln=k.onListChangeStart,En=k.onListChangeEnd,cn=(0,G.Z)(k,Ce),In=I.useRef(null),bi=I.useRef(null);I.useImperativeHandle(p,function(){return{scrollTo:function(Yr){In.current.scrollTo(Yr)},getIndentWidth:function(){return bi.current.offsetWidth}}});var Ir=I.useState(H),qn=(0,te.Z)(Ir,2),wi=qn[0],$n=qn[1],Ni=I.useState(w),gi=(0,te.Z)(Ni,2),Qi=gi[0],ba=gi[1],$i=I.useState(w),ri=(0,te.Z)($i,2),xi=ri[0],Ti=ri[1],me=I.useState([]),Ue=(0,te.Z)(me,2),Le=Ue[0],lt=Ue[1],$t=I.useState(null),Qt=(0,te.Z)($t,2),Br=Qt[0],pr=Qt[1],Kr=I.useRef(w);Kr.current=w;function Wr(){var jr=Kr.current;ba(jr),Ti(jr),lt([]),pr(null),En()}(0,V.Z)(function(){$n(H);var jr=ot(wi,H);if(jr.key!==null)if(jr.add){var Yr=Qi.findIndex(function(On){var on=On.key;return on===jr.key}),mn=rt(ke(Qi,w,jr.key),Tt,gt,jt),tn=Qi.slice();tn.splice(Yr+1,0,at),Ti(tn),lt(mn),pr("show")}else{var Dn=w.findIndex(function(On){var on=On.key;return on===jr.key}),Qn=rt(ke(w,Qi,jr.key),Tt,gt,jt),ui=w.slice();ui.splice(Dn+1,0,at),Ti(ui),lt(Qn),pr("hide")}else Qi!==w&&(ba(w),Ti(w))},[H,w]),I.useEffect(function(){dt||Wr()},[dt]);var en=De?xi:w,Vr={expandedKeys:H,selectedKeys:ne,loadedKeys:xe,loadingKeys:we,checkedKeys:Ge,halfCheckedKeys:qe,dragOverNodeKey:At,dropPosition:Me,keyEntities:Et};return I.createElement(I.Fragment,null,Pr&&Fr&&I.createElement("span",{style:Qe,"aria-live":"assertive"},ut(Fr)),I.createElement("div",null,I.createElement("input",{style:Qe,disabled:ir===!1||pe,tabIndex:ir!==!1?Hr:null,onKeyDown:Rr,onFocus:sr,onBlur:lr,value:"",onChange:ve,"aria-label":"for screen reader"})),I.createElement("div",{className:"".concat(d,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},I.createElement("div",{className:"".concat(d,"-indent")},I.createElement("div",{ref:bi,className:"".concat(d,"-indent-unit")}))),I.createElement(j.Z,(0,ge.Z)({},cn,{data:en,itemKey:nt,height:gt,fullHeight:!1,virtual:Tt,itemHeight:jt,prefixCls:"".concat(d,"-list"),ref:In,onVisibleChange:function(Yr,mn){var tn=new Set(Yr),Dn=mn.filter(function(Qn){return!tn.has(Qn)});Dn.some(function(Qn){return nt(Qn)===Pe})&&Wr()}}),function(jr){var Yr=jr.pos,mn=(0,ge.Z)({},(se(jr.data),jr.data)),tn=jr.title,Dn=jr.key,Qn=jr.isStart,ui=jr.isEnd,On=(0,Be.km)(Dn,Yr);delete mn.key,delete mn.children;var on=(0,Be.H8)(On,Vr);return I.createElement(D,(0,ge.Z)({},mn,on,{title:tn,active:!!Fr&&Dn===Fr.key,pos:Yr,data:jr.data,isStart:Qn,isEnd:ui,motion:De,motionNodes:Dn===Pe?Le:null,motionType:Br,onMotionStart:ln,onMotionEnd:Wr,treeNodeRequiredProps:Vr,onMouseMove:function(){$r(null)}}))}))});Pt.displayName="NodeList";var Ht=Pt,Ut=x(35654),cr=x(90782),or=x(67841),Cr=10,hr=function(k){(0,E.Z)(d,k);var p=(0,h.Z)(d);function d(){var w;(0,W.Z)(this,d);for(var Y=arguments.length,Ee=new Array(Y),H=0;H<Y;H++)Ee[H]=arguments[H];return w=p.call.apply(p,[this].concat(Ee)),w.destroyed=!1,w.delayedDragEnterLogic=void 0,w.loadingRetryTimes={},w.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Be.w$)()},w.dragStartMousePosition=null,w.dragNode=void 0,w.currentMouseOverDroppableNodeKey=null,w.listRef=I.createRef(),w.onNodeDragStart=function(ne,Ge){var xe=w.state,we=xe.expandedKeys,qe=xe.keyEntities,Et=w.props.onDragStart,pe=Ge.props.eventKey;w.dragNode=Ge,w.dragStartMousePosition={x:ne.clientX,y:ne.clientY};var dt=(0,Ut._5)(we,pe);w.setState({draggingNodeKey:pe,dragChildrenKeys:(0,Ut.wA)(pe,qe),indent:w.listRef.current.getIndentWidth()}),w.setExpandedKeys(dt),window.addEventListener("dragend",w.onWindowDragEnd),Et==null||Et({event:ne,node:(0,Be.F)(Ge.props)})},w.onNodeDragEnter=function(ne,Ge){var xe=w.state,we=xe.expandedKeys,qe=xe.keyEntities,Et=xe.dragChildrenKeys,pe=xe.flattenNodes,dt=xe.indent,At=w.props,Me=At.onDragEnter,De=At.onExpand,gt=At.allowDrop,jt=At.direction,Tt=Ge.props,ir=Tt.pos,Fr=Tt.eventKey,Pr=(0,f.Z)(w),Hr=Pr.dragNode;if(w.currentMouseOverDroppableNodeKey!==Fr&&(w.currentMouseOverDroppableNodeKey=Fr),!Hr){w.resetDragState();return}var Rr=(0,Ut.OM)(ne,Hr,Ge,dt,w.dragStartMousePosition,gt,pe,qe,we,jt),sr=Rr.dropPosition,lr=Rr.dropLevelOffset,$r=Rr.dropTargetKey,ln=Rr.dropContainerKey,En=Rr.dropTargetPos,cn=Rr.dropAllowed,In=Rr.dragOverNodeKey;if(Et.indexOf($r)!==-1||!cn){w.resetDragState();return}if(w.delayedDragEnterLogic||(w.delayedDragEnterLogic={}),Object.keys(w.delayedDragEnterLogic).forEach(function(bi){clearTimeout(w.delayedDragEnterLogic[bi])}),Hr.props.eventKey!==Ge.props.eventKey&&(ne.persist(),w.delayedDragEnterLogic[ir]=window.setTimeout(function(){if(w.state.draggingNodeKey!==null){var bi=(0,ie.Z)(we),Ir=(0,or.Z)(qe,Ge.props.eventKey);Ir&&(Ir.children||[]).length&&(bi=(0,Ut.L0)(we,Ge.props.eventKey)),"expandedKeys"in w.props||w.setExpandedKeys(bi),De==null||De(bi,{node:(0,Be.F)(Ge.props),expanded:!0,nativeEvent:ne.nativeEvent})}},800)),Hr.props.eventKey===$r&&lr===0){w.resetDragState();return}w.setState({dragOverNodeKey:In,dropPosition:sr,dropLevelOffset:lr,dropTargetKey:$r,dropContainerKey:ln,dropTargetPos:En,dropAllowed:cn}),Me==null||Me({event:ne,node:(0,Be.F)(Ge.props),expandedKeys:we})},w.onNodeDragOver=function(ne,Ge){var xe=w.state,we=xe.dragChildrenKeys,qe=xe.flattenNodes,Et=xe.keyEntities,pe=xe.expandedKeys,dt=xe.indent,At=w.props,Me=At.onDragOver,De=At.allowDrop,gt=At.direction,jt=(0,f.Z)(w),Tt=jt.dragNode;if(Tt){var ir=(0,Ut.OM)(ne,Tt,Ge,dt,w.dragStartMousePosition,De,qe,Et,pe,gt),Fr=ir.dropPosition,Pr=ir.dropLevelOffset,Hr=ir.dropTargetKey,Rr=ir.dropContainerKey,sr=ir.dropAllowed,lr=ir.dropTargetPos,$r=ir.dragOverNodeKey;we.indexOf(Hr)!==-1||!sr||(Tt.props.eventKey===Hr&&Pr===0?w.state.dropPosition===null&&w.state.dropLevelOffset===null&&w.state.dropTargetKey===null&&w.state.dropContainerKey===null&&w.state.dropTargetPos===null&&w.state.dropAllowed===!1&&w.state.dragOverNodeKey===null||w.resetDragState():Fr===w.state.dropPosition&&Pr===w.state.dropLevelOffset&&Hr===w.state.dropTargetKey&&Rr===w.state.dropContainerKey&&lr===w.state.dropTargetPos&&sr===w.state.dropAllowed&&$r===w.state.dragOverNodeKey||w.setState({dropPosition:Fr,dropLevelOffset:Pr,dropTargetKey:Hr,dropContainerKey:Rr,dropTargetPos:lr,dropAllowed:sr,dragOverNodeKey:$r}),Me==null||Me({event:ne,node:(0,Be.F)(Ge.props)}))}},w.onNodeDragLeave=function(ne,Ge){w.currentMouseOverDroppableNodeKey===Ge.props.eventKey&&!ne.currentTarget.contains(ne.relatedTarget)&&(w.resetDragState(),w.currentMouseOverDroppableNodeKey=null);var xe=w.props.onDragLeave;xe==null||xe({event:ne,node:(0,Be.F)(Ge.props)})},w.onWindowDragEnd=function(ne){w.onNodeDragEnd(ne,null,!0),window.removeEventListener("dragend",w.onWindowDragEnd)},w.onNodeDragEnd=function(ne,Ge){var xe=w.props.onDragEnd;w.setState({dragOverNodeKey:null}),w.cleanDragState(),xe==null||xe({event:ne,node:(0,Be.F)(Ge.props)}),w.dragNode=null,window.removeEventListener("dragend",w.onWindowDragEnd)},w.onNodeDrop=function(ne,Ge){var xe,we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,qe=w.state,Et=qe.dragChildrenKeys,pe=qe.dropPosition,dt=qe.dropTargetKey,At=qe.dropTargetPos,Me=qe.dropAllowed;if(Me){var De=w.props.onDrop;if(w.setState({dragOverNodeKey:null}),w.cleanDragState(),dt!==null){var gt=(0,Oe.Z)((0,Oe.Z)({},(0,Be.H8)(dt,w.getTreeNodeRequiredProps())),{},{active:((xe=w.getActiveItem())===null||xe===void 0?void 0:xe.key)===dt,data:(0,or.Z)(w.state.keyEntities,dt).node}),jt=Et.indexOf(dt)!==-1;(0,R.ZP)(!jt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Tt=(0,Ut.yx)(At),ir={event:ne,node:(0,Be.F)(gt),dragNode:w.dragNode?(0,Be.F)(w.dragNode.props):null,dragNodesKeys:[w.dragNode.props.eventKey].concat(Et),dropToGap:pe!==0,dropPosition:pe+Number(Tt[Tt.length-1])};we||De==null||De(ir),w.dragNode=null}}},w.cleanDragState=function(){var ne=w.state.draggingNodeKey;ne!==null&&w.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),w.dragStartMousePosition=null,w.currentMouseOverDroppableNodeKey=null},w.triggerExpandActionExpand=function(ne,Ge){var xe=w.state,we=xe.expandedKeys,qe=xe.flattenNodes,Et=Ge.expanded,pe=Ge.key,dt=Ge.isLeaf;if(!(dt||ne.shiftKey||ne.metaKey||ne.ctrlKey)){var At=qe.filter(function(De){return De.key===pe})[0],Me=(0,Be.F)((0,Oe.Z)((0,Oe.Z)({},(0,Be.H8)(pe,w.getTreeNodeRequiredProps())),{},{data:At.data}));w.setExpandedKeys(Et?(0,Ut._5)(we,pe):(0,Ut.L0)(we,pe)),w.onNodeExpand(ne,Me)}},w.onNodeClick=function(ne,Ge){var xe=w.props,we=xe.onClick,qe=xe.expandAction;qe==="click"&&w.triggerExpandActionExpand(ne,Ge),we==null||we(ne,Ge)},w.onNodeDoubleClick=function(ne,Ge){var xe=w.props,we=xe.onDoubleClick,qe=xe.expandAction;qe==="doubleClick"&&w.triggerExpandActionExpand(ne,Ge),we==null||we(ne,Ge)},w.onNodeSelect=function(ne,Ge){var xe=w.state.selectedKeys,we=w.state,qe=we.keyEntities,Et=we.fieldNames,pe=w.props,dt=pe.onSelect,At=pe.multiple,Me=Ge.selected,De=Ge[Et.key],gt=!Me;gt?At?xe=(0,Ut.L0)(xe,De):xe=[De]:xe=(0,Ut._5)(xe,De);var jt=xe.map(function(Tt){var ir=(0,or.Z)(qe,Tt);return ir?ir.node:null}).filter(function(Tt){return Tt});w.setUncontrolledState({selectedKeys:xe}),dt==null||dt(xe,{event:"select",selected:gt,node:Ge,selectedNodes:jt,nativeEvent:ne.nativeEvent})},w.onNodeCheck=function(ne,Ge,xe){var we=w.state,qe=we.keyEntities,Et=we.checkedKeys,pe=we.halfCheckedKeys,dt=w.props,At=dt.checkStrictly,Me=dt.onCheck,De=Ge.key,gt,jt={event:"check",node:Ge,checked:xe,nativeEvent:ne.nativeEvent};if(At){var Tt=xe?(0,Ut.L0)(Et,De):(0,Ut._5)(Et,De),ir=(0,Ut._5)(pe,De);gt={checked:Tt,halfChecked:ir},jt.checkedNodes=Tt.map(function(lr){return(0,or.Z)(qe,lr)}).filter(function(lr){return lr}).map(function(lr){return lr.node}),w.setUncontrolledState({checkedKeys:Tt})}else{var Fr=(0,cr.S)([].concat((0,ie.Z)(Et),[De]),!0,qe),Pr=Fr.checkedKeys,Hr=Fr.halfCheckedKeys;if(!xe){var Rr=new Set(Pr);Rr.delete(De);var sr=(0,cr.S)(Array.from(Rr),{checked:!1,halfCheckedKeys:Hr},qe);Pr=sr.checkedKeys,Hr=sr.halfCheckedKeys}gt=Pr,jt.checkedNodes=[],jt.checkedNodesPositions=[],jt.halfCheckedKeys=Hr,Pr.forEach(function(lr){var $r=(0,or.Z)(qe,lr);if($r){var ln=$r.node,En=$r.pos;jt.checkedNodes.push(ln),jt.checkedNodesPositions.push({node:ln,pos:En})}}),w.setUncontrolledState({checkedKeys:Pr},!1,{halfCheckedKeys:Hr})}Me==null||Me(gt,jt)},w.onNodeLoad=function(ne){var Ge=ne.key,xe=new Promise(function(we,qe){w.setState(function(Et){var pe=Et.loadedKeys,dt=pe===void 0?[]:pe,At=Et.loadingKeys,Me=At===void 0?[]:At,De=w.props,gt=De.loadData,jt=De.onLoad;if(!gt||dt.indexOf(Ge)!==-1||Me.indexOf(Ge)!==-1)return null;var Tt=gt(ne);return Tt.then(function(){var ir=w.state.loadedKeys,Fr=(0,Ut.L0)(ir,Ge);jt==null||jt(Fr,{event:"load",node:ne}),w.setUncontrolledState({loadedKeys:Fr}),w.setState(function(Pr){return{loadingKeys:(0,Ut._5)(Pr.loadingKeys,Ge)}}),we()}).catch(function(ir){if(w.setState(function(Pr){return{loadingKeys:(0,Ut._5)(Pr.loadingKeys,Ge)}}),w.loadingRetryTimes[Ge]=(w.loadingRetryTimes[Ge]||0)+1,w.loadingRetryTimes[Ge]>=Cr){var Fr=w.state.loadedKeys;(0,R.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),w.setUncontrolledState({loadedKeys:(0,Ut.L0)(Fr,Ge)}),we()}qe(ir)}),{loadingKeys:(0,Ut.L0)(Me,Ge)}})});return xe.catch(function(){}),xe},w.onNodeMouseEnter=function(ne,Ge){var xe=w.props.onMouseEnter;xe==null||xe({event:ne,node:Ge})},w.onNodeMouseLeave=function(ne,Ge){var xe=w.props.onMouseLeave;xe==null||xe({event:ne,node:Ge})},w.onNodeContextMenu=function(ne,Ge){var xe=w.props.onRightClick;xe&&(ne.preventDefault(),xe({event:ne,node:Ge}))},w.onFocus=function(){var ne=w.props.onFocus;w.setState({focused:!0});for(var Ge=arguments.length,xe=new Array(Ge),we=0;we<Ge;we++)xe[we]=arguments[we];ne==null||ne.apply(void 0,xe)},w.onBlur=function(){var ne=w.props.onBlur;w.setState({focused:!1}),w.onActiveChange(null);for(var Ge=arguments.length,xe=new Array(Ge),we=0;we<Ge;we++)xe[we]=arguments[we];ne==null||ne.apply(void 0,xe)},w.getTreeNodeRequiredProps=function(){var ne=w.state,Ge=ne.expandedKeys,xe=ne.selectedKeys,we=ne.loadedKeys,qe=ne.loadingKeys,Et=ne.checkedKeys,pe=ne.halfCheckedKeys,dt=ne.dragOverNodeKey,At=ne.dropPosition,Me=ne.keyEntities;return{expandedKeys:Ge||[],selectedKeys:xe||[],loadedKeys:we||[],loadingKeys:qe||[],checkedKeys:Et||[],halfCheckedKeys:pe||[],dragOverNodeKey:dt,dropPosition:At,keyEntities:Me}},w.setExpandedKeys=function(ne){var Ge=w.state,xe=Ge.treeData,we=Ge.fieldNames,qe=(0,Be.oH)(xe,ne,we);w.setUncontrolledState({expandedKeys:ne,flattenNodes:qe},!0)},w.onNodeExpand=function(ne,Ge){var xe=w.state.expandedKeys,we=w.state,qe=we.listChanging,Et=we.fieldNames,pe=w.props,dt=pe.onExpand,At=pe.loadData,Me=Ge.expanded,De=Ge[Et.key];if(!qe){var gt=xe.indexOf(De),jt=!Me;if((0,R.ZP)(Me&&gt!==-1||!Me&&gt===-1,"Expand state not sync with index check"),jt?xe=(0,Ut.L0)(xe,De):xe=(0,Ut._5)(xe,De),w.setExpandedKeys(xe),dt==null||dt(xe,{node:Ge,expanded:jt,nativeEvent:ne.nativeEvent}),jt&&At){var Tt=w.onNodeLoad(Ge);Tt&&Tt.then(function(){var ir=(0,Be.oH)(w.state.treeData,xe,Et);w.setUncontrolledState({flattenNodes:ir})}).catch(function(){var ir=w.state.expandedKeys,Fr=(0,Ut._5)(ir,De);w.setExpandedKeys(Fr)})}}},w.onListChangeStart=function(){w.setUncontrolledState({listChanging:!0})},w.onListChangeEnd=function(){setTimeout(function(){w.setUncontrolledState({listChanging:!1})})},w.onActiveChange=function(ne){var Ge=w.state.activeKey,xe=w.props.onActiveChange;Ge!==ne&&(w.setState({activeKey:ne}),ne!==null&&w.scrollTo({key:ne}),xe==null||xe(ne))},w.getActiveItem=function(){var ne=w.state,Ge=ne.activeKey,xe=ne.flattenNodes;return Ge===null?null:xe.find(function(we){var qe=we.key;return qe===Ge})||null},w.offsetActiveKey=function(ne){var Ge=w.state,xe=Ge.flattenNodes,we=Ge.activeKey,qe=xe.findIndex(function(dt){var At=dt.key;return At===we});qe===-1&&ne<0&&(qe=xe.length),qe=(qe+ne+xe.length)%xe.length;var Et=xe[qe];if(Et){var pe=Et.key;w.onActiveChange(pe)}else w.onActiveChange(null)},w.onKeyDown=function(ne){var Ge=w.state,xe=Ge.activeKey,we=Ge.expandedKeys,qe=Ge.checkedKeys,Et=Ge.fieldNames,pe=w.props,dt=pe.onKeyDown,At=pe.checkable,Me=pe.selectable;switch(ne.which){case _.Z.UP:{w.offsetActiveKey(-1),ne.preventDefault();break}case _.Z.DOWN:{w.offsetActiveKey(1),ne.preventDefault();break}}var De=w.getActiveItem();if(De&&De.data){var gt=w.getTreeNodeRequiredProps(),jt=De.data.isLeaf===!1||!!(De.data[Et.children]||[]).length,Tt=(0,Be.F)((0,Oe.Z)((0,Oe.Z)({},(0,Be.H8)(xe,gt)),{},{data:De.data,active:!0}));switch(ne.which){case _.Z.LEFT:{jt&&we.includes(xe)?w.onNodeExpand({},Tt):De.parent&&w.onActiveChange(De.parent.key),ne.preventDefault();break}case _.Z.RIGHT:{jt&&!we.includes(xe)?w.onNodeExpand({},Tt):De.children&&De.children.length&&w.onActiveChange(De.children[0].key),ne.preventDefault();break}case _.Z.ENTER:case _.Z.SPACE:{At&&!Tt.disabled&&Tt.checkable!==!1&&!Tt.disableCheckbox?w.onNodeCheck({},Tt,!qe.includes(xe)):!At&&Me&&!Tt.disabled&&Tt.selectable!==!1&&w.onNodeSelect({},Tt);break}}}dt==null||dt(ne)},w.setUncontrolledState=function(ne){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!w.destroyed){var we=!1,qe=!0,Et={};Object.keys(ne).forEach(function(pe){if(pe in w.props){qe=!1;return}we=!0,Et[pe]=ne[pe]}),we&&(!Ge||qe)&&w.setState((0,Oe.Z)((0,Oe.Z)({},Et),xe))}},w.scrollTo=function(ne){w.listRef.current.scrollTo(ne)},w}return(0,B.Z)(d,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Y=this.props.activeKey;Y!==void 0&&Y!==this.state.activeKey&&(this.setState({activeKey:Y}),Y!==null&&this.scrollTo({key:Y}))}},{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 Y,Ee=this.state,H=Ee.focused,ne=Ee.flattenNodes,Ge=Ee.keyEntities,xe=Ee.draggingNodeKey,we=Ee.activeKey,qe=Ee.dropLevelOffset,Et=Ee.dropContainerKey,pe=Ee.dropTargetKey,dt=Ee.dropPosition,At=Ee.dragOverNodeKey,Me=Ee.indent,De=this.props,gt=De.prefixCls,jt=De.className,Tt=De.style,ir=De.showLine,Fr=De.focusable,Pr=De.tabIndex,Hr=Pr===void 0?0:Pr,Rr=De.selectable,sr=De.showIcon,lr=De.icon,$r=De.switcherIcon,ln=De.draggable,En=De.checkable,cn=De.checkStrictly,In=De.disabled,bi=De.motion,Ir=De.loadData,qn=De.filterTreeNode,wi=De.height,$n=De.itemHeight,Ni=De.virtual,gi=De.titleRender,Qi=De.dropIndicatorRender,ba=De.onContextMenu,$i=De.onScroll,ri=De.direction,xi=De.rootClassName,Ti=De.rootStyle,me=(0,N.Z)(this.props,{aria:!0,data:!0}),Ue;return ln&&((0,Q.Z)(ln)==="object"?Ue=ln:typeof ln=="function"?Ue={nodeDraggable:ln}:Ue={}),I.createElement(J.k.Provider,{value:{prefixCls:gt,selectable:Rr,showIcon:sr,icon:lr,switcherIcon:$r,draggable:Ue,draggingNodeKey:xe,checkable:En,checkStrictly:cn,disabled:In,keyEntities:Ge,dropLevelOffset:qe,dropContainerKey:Et,dropTargetKey:pe,dropPosition:dt,dragOverNodeKey:At,indent:Me,direction:ri,dropIndicatorRender:Qi,loadData:Ir,filterTreeNode:qn,titleRender:gi,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}},I.createElement("div",{role:"tree",className:S()(gt,jt,xi,(Y={},(0,de.Z)(Y,"".concat(gt,"-show-line"),ir),(0,de.Z)(Y,"".concat(gt,"-focused"),H),(0,de.Z)(Y,"".concat(gt,"-active-focused"),we!==null),Y)),style:Ti},I.createElement(Ht,(0,ge.Z)({ref:this.listRef,prefixCls:gt,style:Tt,data:ne,disabled:In,selectable:Rr,checkable:!!En,motion:bi,dragging:xe!==null,height:wi,itemHeight:$n,virtual:Ni,focusable:Fr,focused:H,tabIndex:Hr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ba,onScroll:$i},this.getTreeNodeRequiredProps(),me))))}}],[{key:"getDerivedStateFromProps",value:function(Y,Ee){var H=Ee.prevProps,ne={prevProps:Y};function Ge(Fr){return!H&&Fr in Y||H&&H[Fr]!==Y[Fr]}var xe,we=Ee.fieldNames;if(Ge("fieldNames")&&(we=(0,Be.w$)(Y.fieldNames),ne.fieldNames=we),Ge("treeData")?xe=Y.treeData:Ge("children")&&((0,R.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),xe=(0,Be.zn)(Y.children)),xe){ne.treeData=xe;var qe=(0,Be.I8)(xe,{fieldNames:we});ne.keyEntities=(0,Oe.Z)((0,de.Z)({},Pe,ye),qe.keyEntities)}var Et=ne.keyEntities||Ee.keyEntities;if(Ge("expandedKeys")||H&&Ge("autoExpandParent"))ne.expandedKeys=Y.autoExpandParent||!H&&Y.defaultExpandParent?(0,Ut.r7)(Y.expandedKeys,Et):Y.expandedKeys;else if(!H&&Y.defaultExpandAll){var pe=(0,Oe.Z)({},Et);delete pe[Pe],ne.expandedKeys=Object.keys(pe).map(function(Fr){return pe[Fr].key})}else!H&&Y.defaultExpandedKeys&&(ne.expandedKeys=Y.autoExpandParent||Y.defaultExpandParent?(0,Ut.r7)(Y.defaultExpandedKeys,Et):Y.defaultExpandedKeys);if(ne.expandedKeys||delete ne.expandedKeys,xe||ne.expandedKeys){var dt=(0,Be.oH)(xe||Ee.treeData,ne.expandedKeys||Ee.expandedKeys,we);ne.flattenNodes=dt}if(Y.selectable&&(Ge("selectedKeys")?ne.selectedKeys=(0,Ut.BT)(Y.selectedKeys,Y):!H&&Y.defaultSelectedKeys&&(ne.selectedKeys=(0,Ut.BT)(Y.defaultSelectedKeys,Y))),Y.checkable){var At;if(Ge("checkedKeys")?At=(0,Ut.E6)(Y.checkedKeys)||{}:!H&&Y.defaultCheckedKeys?At=(0,Ut.E6)(Y.defaultCheckedKeys)||{}:xe&&(At=(0,Ut.E6)(Y.checkedKeys)||{checkedKeys:Ee.checkedKeys,halfCheckedKeys:Ee.halfCheckedKeys}),At){var Me=At,De=Me.checkedKeys,gt=De===void 0?[]:De,jt=Me.halfCheckedKeys,Tt=jt===void 0?[]:jt;if(!Y.checkStrictly){var ir=(0,cr.S)(gt,!0,Et);gt=ir.checkedKeys,Tt=ir.halfCheckedKeys}ne.checkedKeys=gt,ne.halfCheckedKeys=Tt}}return Ge("loadedKeys")&&(ne.loadedKeys=Y.loadedKeys),ne}}]),d}(I.Component);hr.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:K,allowDrop:function(){return!0},expandAction:!1},hr.TreeNode=he.Z;var L=hr,it=L},35654:function(xn,Yt,x){"use strict";x.d(Yt,{BT:function(){return I},E6:function(){return se},L0:function(){return h},OM:function(){return R},_5:function(){return E},r7:function(){return te},wA:function(){return S},yx:function(){return $}});var ge=x(80702),de=x(62853),Q=x(48736),Oe=x(59301),ie=x(39417),W=x(67841),B=x(71430),f=null;function E(G,V){if(!G)return[];var j=G.slice(),le=j.indexOf(V);return le>=0&&j.splice(le,1),j}function h(G,V){var j=(G||[]).slice();return j.indexOf(V)===-1&&j.push(V),j}function $(G){return G.split("-")}function S(G,V){var j=[],le=(0,W.Z)(V,G);function he(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ne.forEach(function(Be){var je=Be.key,q=Be.children;j.push(je),he(q)})}return he(le.children),j}function _(G){if(G.parent){var V=$(G.pos);return Number(V[V.length-1])===G.parent.children.length-1}return!1}function N(G){var V=$(G.pos);return Number(V[V.length-1])===0}function R(G,V,j,le,he,Ne,Be,je,q,ce){var D,ot=G.clientX,ke=G.clientY,Ce=G.target.getBoundingClientRect(),Qe=Ce.top,ve=Ce.height,Pe=(ce==="rtl"?-1:1)*(((he==null?void 0:he.x)||0)-ot),fe=(Pe-12)/le,ye=(0,W.Z)(je,j.props.eventKey);if(ke<Qe+ve/2){var at=Be.findIndex(function(it){return it.key===ye.key}),rt=at<=0?0:at-1,nt=Be[rt].key;ye=(0,W.Z)(je,nt)}var ut=ye.key,Pt=ye,Ht=ye.key,Ut=0,cr=0;if(!q.includes(ut))for(var or=0;or<fe&&_(ye);or+=1)ye=ye.parent,cr+=1;var Cr=V.props.data,hr=ye.node,L=!0;return N(ye)&&ye.level===0&&ke<Qe+ve/2&&Ne({dragNode:Cr,dropNode:hr,dropPosition:-1})&&ye.key===j.props.eventKey?Ut=-1:(Pt.children||[]).length&&q.includes(Ht)?Ne({dragNode:Cr,dropNode:hr,dropPosition:0})?Ut=0:L=!1:cr===0?fe>-1.5?Ne({dragNode:Cr,dropNode:hr,dropPosition:1})?Ut=1:L=!1:Ne({dragNode:Cr,dropNode:hr,dropPosition:0})?Ut=0:Ne({dragNode:Cr,dropNode:hr,dropPosition:1})?Ut=1:L=!1:Ne({dragNode:Cr,dropNode:hr,dropPosition:1})?Ut=1:L=!1,{dropPosition:Ut,dropLevelOffset:cr,dropTargetKey:ye.key,dropTargetPos:ye.pos,dragOverNodeKey:Ht,dropContainerKey:Ut===0?null:((D=ye.parent)===null||D===void 0?void 0:D.key)||null,dropAllowed:L}}function I(G,V){if(G){var j=V.multiple;return j?G.slice():G.length?[G[0]]:G}}var J=function(V){return V};function K(G,V){if(!G)return[];var j=V||{},le=j.processProps,he=le===void 0?J:le,Ne=Array.isArray(G)?G:[G];return Ne.map(function(Be){var je=Be.children,q=_objectWithoutProperties(Be,f),ce=K(je,V);return React.createElement(TreeNode,_extends({key:q.key},he(q)),ce)})}function se(G){if(!G)return null;var V;if(Array.isArray(G))V={checkedKeys:G,halfCheckedKeys:void 0};else if((0,de.Z)(G)==="object")V={checkedKeys:G.checked||void 0,halfCheckedKeys:G.halfChecked||void 0};else return(0,Q.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return V}function te(G,V){var j=new Set;function le(he){if(!j.has(he)){var Ne=(0,W.Z)(V,he);if(Ne){j.add(he);var Be=Ne.parent,je=Ne.node;je.disabled||Be&&le(Be.key)}}}return(G||[]).forEach(function(he){le(he)}),(0,ge.Z)(j)}},90782:function(xn,Yt,x){"use strict";x.d(Yt,{S:function(){return B}});var ge=x(48736),de=x(67841);function Q(f,E){var h=new Set;return f.forEach(function($){E.has($)||h.add($)}),h}function Oe(f){var E=f||{},h=E.disabled,$=E.disableCheckbox,S=E.checkable;return!!(h||$)||S===!1}function ie(f,E,h,$){for(var S=new Set(f),_=new Set,N=0;N<=h;N+=1){var R=E.get(N)||new Set;R.forEach(function(se){var te=se.key,G=se.node,V=se.children,j=V===void 0?[]:V;S.has(te)&&!$(G)&&j.filter(function(le){return!$(le.node)}).forEach(function(le){S.add(le.key)})})}for(var I=new Set,J=h;J>=0;J-=1){var K=E.get(J)||new Set;K.forEach(function(se){var te=se.parent,G=se.node;if(!($(G)||!se.parent||I.has(se.parent.key))){if($(se.parent.node)){I.add(te.key);return}var V=!0,j=!1;(te.children||[]).filter(function(le){return!$(le.node)}).forEach(function(le){var he=le.key,Ne=S.has(he);V&&!Ne&&(V=!1),!j&&(Ne||_.has(he))&&(j=!0)}),V&&S.add(te.key),j&&_.add(te.key),I.add(te.key)}})}return{checkedKeys:Array.from(S),halfCheckedKeys:Array.from(Q(_,S))}}function W(f,E,h,$,S){for(var _=new Set(f),N=new Set(E),R=0;R<=$;R+=1){var I=h.get(R)||new Set;I.forEach(function(te){var G=te.key,V=te.node,j=te.children,le=j===void 0?[]:j;!_.has(G)&&!N.has(G)&&!S(V)&&le.filter(function(he){return!S(he.node)}).forEach(function(he){_.delete(he.key)})})}N=new Set;for(var J=new Set,K=$;K>=0;K-=1){var se=h.get(K)||new Set;se.forEach(function(te){var G=te.parent,V=te.node;if(!(S(V)||!te.parent||J.has(te.parent.key))){if(S(te.parent.node)){J.add(G.key);return}var j=!0,le=!1;(G.children||[]).filter(function(he){return!S(he.node)}).forEach(function(he){var Ne=he.key,Be=_.has(Ne);j&&!Be&&(j=!1),!le&&(Be||N.has(Ne))&&(le=!0)}),j||_.delete(G.key),le&&N.add(G.key),J.add(G.key)}})}return{checkedKeys:Array.from(_),halfCheckedKeys:Array.from(Q(N,_))}}function B(f,E,h,$){var S=[],_;$?_=$:_=Oe;var N=new Set(f.filter(function(K){var se=!!(0,de.Z)(h,K);return se||S.push(K),se})),R=new Map,I=0;Object.keys(h).forEach(function(K){var se=h[K],te=se.level,G=R.get(te);G||(G=new Set,R.set(te,G)),G.add(se),I=Math.max(I,te)}),(0,ge.ZP)(!S.length,"Tree missing follow keys: ".concat(S.slice(0,100).map(function(K){return"'".concat(K,"'")}).join(", ")));var J;return E===!0?J=ie(N,R,I,_):J=W(N,E.halfCheckedKeys,R,I,_),J}},67841:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return ge}});function ge(de,Q){return de[Q]}},71430:function(xn,Yt,x){"use strict";x.d(Yt,{F:function(){return te},H8:function(){return se},I8:function(){return K},km:function(){return S},oH:function(){return I},w$:function(){return _},zn:function(){return R}});var ge=x(62853),de=x(80702),Q=x(77321),Oe=x(74416),ie=x(11592),W=x(2738),B=x(48736),f=x(67841),E=["children"];function h(G,V){return"".concat(G,"-").concat(V)}function $(G){return G&&G.type&&G.type.isTreeNode}function S(G,V){return G!=null?G:V}function _(G){var V=G||{},j=V.title,le=V._title,he=V.key,Ne=V.children,Be=j||"title";return{title:Be,_title:le||[Be],key:he||"key",children:Ne||"children"}}function N(G,V){var j=new Map;function le(he){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(he||[]).forEach(function(Be){var je=Be[V.key],q=Be[V.children];warning(je!=null,"Tree node must have a certain key: [".concat(Ne).concat(je,"]"));var ce=String(je);warning(!j.has(ce)||je===null||je===void 0,"Same 'key' exist in the Tree: ".concat(ce)),j.set(ce,!0),le(q,"".concat(Ne).concat(ce," > "))})}le(G)}function R(G){function V(j){var le=(0,ie.Z)(j);return le.map(function(he){if(!$(he))return(0,B.ZP)(!he,"Tree/TreeNode can only accept TreeNode as children."),null;var Ne=he.key,Be=he.props,je=Be.children,q=(0,Oe.Z)(Be,E),ce=(0,Q.Z)({key:Ne},q),D=V(je);return D.length&&(ce.children=D),ce}).filter(function(he){return he})}return V(G)}function I(G,V,j){var le=_(j),he=le._title,Ne=le.key,Be=le.children,je=new Set(V===!0?[]:V),q=[];function ce(D){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return D.map(function(ke,Ce){for(var Qe=h(ot?ot.pos:"0",Ce),ve=S(ke[Ne],Qe),Pe,fe=0;fe<he.length;fe+=1){var ye=he[fe];if(ke[ye]!==void 0){Pe=ke[ye];break}}var at=(0,Q.Z)((0,Q.Z)({},(0,W.Z)(ke,[].concat((0,de.Z)(he),[Ne,Be]))),{},{title:Pe,key:ve,parent:ot,pos:Qe,children:null,data:ke,isStart:[].concat((0,de.Z)(ot?ot.isStart:[]),[Ce===0]),isEnd:[].concat((0,de.Z)(ot?ot.isEnd:[]),[Ce===D.length-1])});return q.push(at),V===!0||je.has(ve)?at.children=ce(ke[Be]||[],at):at.children=[],at})}return ce(G),q}function J(G,V,j){var le={};(0,ge.Z)(j)==="object"?le=j:le={externalGetKey:j},le=le||{};var he=le,Ne=he.childrenPropName,Be=he.externalGetKey,je=he.fieldNames,q=_(je),ce=q.key,D=q.children,ot=Ne||D,ke;Be?typeof Be=="string"?ke=function(ve){return ve[Be]}:typeof Be=="function"&&(ke=function(ve){return Be(ve)}):ke=function(ve,Pe){return S(ve[ce],Pe)};function Ce(Qe,ve,Pe,fe){var ye=Qe?Qe[ot]:G,at=Qe?h(Pe.pos,ve):"0",rt=Qe?[].concat((0,de.Z)(fe),[Qe]):[];if(Qe){var nt=ke(Qe,at),ut={node:Qe,index:ve,pos:at,key:nt,parentPos:Pe.node?Pe.pos:null,level:Pe.level+1,nodes:rt};V(ut)}ye&&ye.forEach(function(Pt,Ht){Ce(Pt,Ht,{node:Qe,pos:at,level:Pe?Pe.level+1:-1},rt)})}Ce(null)}function K(G){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=V.initWrapper,le=V.processEntity,he=V.onProcessFinished,Ne=V.externalGetKey,Be=V.childrenPropName,je=V.fieldNames,q=arguments.length>2?arguments[2]:void 0,ce=Ne||q,D={},ot={},ke={posEntities:D,keyEntities:ot};return j&&(ke=j(ke)||ke),J(G,function(Ce){var Qe=Ce.node,ve=Ce.index,Pe=Ce.pos,fe=Ce.key,ye=Ce.parentPos,at=Ce.level,rt=Ce.nodes,nt={node:Qe,nodes:rt,index:ve,key:fe,pos:Pe,level:at},ut=S(fe,Pe);D[Pe]=nt,ot[ut]=nt,nt.parent=D[ye],nt.parent&&(nt.parent.children=nt.parent.children||[],nt.parent.children.push(nt)),le&&le(nt,ke)},{externalGetKey:ce,childrenPropName:Be,fieldNames:je}),he&&he(ke),ke}function se(G,V){var j=V.expandedKeys,le=V.selectedKeys,he=V.loadedKeys,Ne=V.loadingKeys,Be=V.checkedKeys,je=V.halfCheckedKeys,q=V.dragOverNodeKey,ce=V.dropPosition,D=V.keyEntities,ot=(0,f.Z)(D,G),ke={eventKey:G,expanded:j.indexOf(G)!==-1,selected:le.indexOf(G)!==-1,loaded:he.indexOf(G)!==-1,loading:Ne.indexOf(G)!==-1,checked:Be.indexOf(G)!==-1,halfChecked:je.indexOf(G)!==-1,pos:String(ot?ot.pos:""),dragOver:q===G&&ce===0,dragOverGapTop:q===G&&ce===-1,dragOverGapBottom:q===G&&ce===1};return ke}function te(G){var V=G.data,j=G.expanded,le=G.selected,he=G.checked,Ne=G.loaded,Be=G.loading,je=G.halfChecked,q=G.dragOver,ce=G.dragOverGapTop,D=G.dragOverGapBottom,ot=G.pos,ke=G.active,Ce=G.eventKey,Qe=(0,Q.Z)((0,Q.Z)({},V),{},{expanded:j,selected:le,checked:he,loaded:Ne,loading:Be,halfChecked:je,dragOver:q,dragOverGapTop:ce,dragOverGapBottom:D,pos:ot,active:ke,key:Ce});return"props"in Qe||Object.defineProperty(Qe,"props",{get:function(){return(0,B.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),G}}),Qe}},8224:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return de}});var ge=x(4676);function de(Q,Oe,ie,W){var B=ge.unstable_batchedUpdates?function(E){ge.unstable_batchedUpdates(ie,E)}:ie;return Q!=null&&Q.addEventListener&&Q.addEventListener(Oe,B,W),{remove:function(){Q!=null&&Q.removeEventListener&&Q.removeEventListener(Oe,B,W)}}}},55468:function(xn,Yt,x){"use strict";x.d(Yt,{g1:function(){return $},os:function(){return _}});var ge=/margin|padding|width|height|max|min|offset/,de={left:!0,top:!0},Q={cssFloat:1,styleFloat:1,float:1};function Oe(N){return N.nodeType===1?N.ownerDocument.defaultView.getComputedStyle(N,null):{}}function ie(N,R,I){if(R=R.toLowerCase(),I==="auto"){if(R==="height")return N.offsetHeight;if(R==="width")return N.offsetWidth}return R in de||(de[R]=ge.test(R)),de[R]?parseFloat(I)||0:I}function W(N,R){var I=arguments.length,J=Oe(N);return R=Q[R]?"cssFloat"in N.style?"cssFloat":"styleFloat":R,I===1?J:ie(N,R,J[R]||N.style[R])}function B(N,R,I){var J=arguments.length;if(R=Q[R]?"cssFloat"in N.style?"cssFloat":"styleFloat":R,J===3)return typeof I=="number"&&ge.test(R)&&(I="".concat(I,"px")),N.style[R]=I,I;for(var K in R)R.hasOwnProperty(K)&&B(N,K,R[K]);return Oe(N)}function f(N){return N===document.body?document.documentElement.clientWidth:N.offsetWidth}function E(N){return N===document.body?window.innerHeight||document.documentElement.clientHeight:N.offsetHeight}function h(){var N=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),R=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:N,height:R}}function $(){var N=document.documentElement.clientWidth,R=window.innerHeight||document.documentElement.clientHeight;return{width:N,height:R}}function S(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function _(N){var R=N.getBoundingClientRect(),I=document.documentElement;return{left:R.left+(window.pageXOffset||I.scrollLeft)-(I.clientLeft||document.body.clientLeft||0),top:R.top+(window.pageYOffset||I.scrollTop)-(I.clientTop||document.body.clientTop||0)}}},24514:function(xn,Yt,x){"use strict";x.d(Yt,{G:function(){return Oe}});var ge=x(47273),de=function(W){if((0,ge.Z)()&&window.document.documentElement){var B=Array.isArray(W)?W:[W],f=window.document.documentElement;return B.some(function(E){return E in f.style})}return!1},Q=function(W,B){if(!de(W))return!1;var f=document.createElement("div"),E=f.style[W];return f.style[W]=B,f.style[W]!==E};function Oe(ie,W){return!Array.isArray(ie)&&W!==void 0?Q(ie,W):de(ie)}},45680:function(xn,Yt,x){"use strict";x.d(Yt,{Z:function(){return hr}});var ge=x(72308),de=x(62853),Q=x(77321),Oe=x(49618),ie=x(52487),W=x(74416),B=x(92310),f=x.n(B),E=x(29301),h=x(70425),$=x(34280),S=x(59301),_=x(4676),N=S.forwardRef(function(L,it){var k=L.height,p=L.offsetY,d=L.offsetX,w=L.children,Y=L.prefixCls,Ee=L.onInnerResize,H=L.innerProps,ne=L.rtl,Ge=L.extra,xe={},we={display:"flex",flexDirection:"column"};return p!==void 0&&(xe={height:k,position:"relative",overflow:"hidden"},we=(0,Q.Z)((0,Q.Z)({},we),{},(0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({transform:"translateY(".concat(p,"px)")},ne?"marginRight":"marginLeft",-d),"position","absolute"),"left",0),"right",0),"top",0))),S.createElement("div",{style:xe},S.createElement(E.Z,{onResize:function(Et){var pe=Et.offsetHeight;pe&&Ee&&Ee()}},S.createElement("div",(0,ge.Z)({style:we,className:f()((0,Oe.Z)({},"".concat(Y,"-holder-inner"),Y)),ref:it},H),w,Ge)))});N.displayName="Filler";var R=N;function I(L){var it=L.children,k=L.setRef,p=S.useCallback(function(d){k(d)},[]);return S.cloneElement(it,{ref:p})}function J(L,it,k,p,d,w,Y,Ee){var H=Ee.getKey;return L.slice(it,k+1).map(function(ne,Ge){var xe=it+Ge,we=Y(ne,xe,{style:{width:p},offsetX:d}),qe=H(ne);return S.createElement(I,{key:qe,setRef:function(pe){return w(ne,pe)}},we)})}function K(L,it,k,p){var d=k-L,w=it-k,Y=Math.min(d,w)*2;if(p<=Y){var Ee=Math.floor(p/2);return p%2?k+Ee+1:k-Ee}return d>w?k-(p-w):k+(p-d)}function se(L,it,k){var p=L.length,d=it.length,w,Y;if(p===0&&d===0)return null;p<d?(w=L,Y=it):(w=it,Y=L);var Ee={__EMPTY_ITEM__:!0};function H(Et){return Et!==void 0?k(Et):Ee}for(var ne=null,Ge=Math.abs(p-d)!==1,xe=0;xe<Y.length;xe+=1){var we=H(w[xe]),qe=H(Y[xe]);if(we!==qe){ne=xe,Ge=Ge||we!==H(Y[xe+1]);break}}return ne===null?null:{index:ne,multiple:Ge}}function te(L,it,k){var p=S.useState(L),d=(0,ie.Z)(p,2),w=d[0],Y=d[1],Ee=S.useState(null),H=(0,ie.Z)(Ee,2),ne=H[0],Ge=H[1];return S.useEffect(function(){var xe=se(w||[],L||[],it);(xe==null?void 0:xe.index)!==void 0&&(k==null||k(xe.index),Ge(L[xe.index])),Y(L)},[L]),[ne]}var G=x(16089),V=(typeof navigator=="undefined"?"undefined":(0,de.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),j=V,le=function(L,it,k,p){var d=(0,S.useRef)(!1),w=(0,S.useRef)(null);function Y(){clearTimeout(w.current),d.current=!0,w.current=setTimeout(function(){d.current=!1},50)}var Ee=(0,S.useRef)({top:L,bottom:it,left:k,right:p});return Ee.current.top=L,Ee.current.bottom=it,Ee.current.left=k,Ee.current.right=p,function(H,ne){var Ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,xe=H?ne<0&&Ee.current.left||ne>0&&Ee.current.right:ne<0&&Ee.current.top||ne>0&&Ee.current.bottom;return Ge&&xe?(clearTimeout(w.current),d.current=!1):(!xe||d.current)&&Y(),!d.current&&xe}};function he(L,it,k,p,d,w,Y){var Ee=(0,S.useRef)(0),H=(0,S.useRef)(null),ne=(0,S.useRef)(null),Ge=(0,S.useRef)(!1),xe=le(it,k,p,d);function we(Me,De){if(G.Z.cancel(H.current),!xe(!1,De)){var gt=Me;if(!gt._virtualHandled)gt._virtualHandled=!0;else return;Ee.current+=De,ne.current=De,j||gt.preventDefault(),H.current=(0,G.Z)(function(){var jt=Ge.current?10:1;Y(Ee.current*jt,!1),Ee.current=0})}}function qe(Me,De){Y(De,!0),j||Me.preventDefault()}var Et=(0,S.useRef)(null),pe=(0,S.useRef)(null);function dt(Me){if(L){G.Z.cancel(pe.current),pe.current=(0,G.Z)(function(){Et.current=null},2);var De=Me.deltaX,gt=Me.deltaY,jt=Me.shiftKey,Tt=De,ir=gt;(Et.current==="sx"||!Et.current&&jt&&gt&&!De)&&(Tt=gt,ir=0,Et.current="sx");var Fr=Math.abs(Tt),Pr=Math.abs(ir);Et.current===null&&(Et.current=w&&Fr>Pr?"x":"y"),Et.current==="y"?we(Me,ir):qe(Me,Tt)}}function At(Me){L&&(Ge.current=Me.detail===ne.current)}return[dt,At]}function Ne(L,it,k,p){var d=S.useMemo(function(){return[new Map,[]]},[L,k.id,p]),w=(0,ie.Z)(d,2),Y=w[0],Ee=w[1],H=function(Ge){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ge,we=Y.get(Ge),qe=Y.get(xe);if(we===void 0||qe===void 0)for(var Et=L.length,pe=Ee.length;pe<Et;pe+=1){var dt,At=L[pe],Me=it(At);Y.set(Me,pe);var De=(dt=k.get(Me))!==null&&dt!==void 0?dt:p;if(Ee[pe]=(Ee[pe-1]||0)+De,Me===Ge&&(we=pe),Me===xe&&(qe=pe),we!==void 0&&qe!==void 0)break}return{top:Ee[we-1]||0,bottom:Ee[qe]}};return H}var Be=x(96949),je=x(55090),q=function(){function L(){(0,Be.Z)(this,L),(0,Oe.Z)(this,"maps",void 0),(0,Oe.Z)(this,"id",0),(0,Oe.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,je.Z)(L,[{key:"set",value:function(k,p){this.maps[k]=p,this.id+=1,this.diffKeys.add(k)}},{key:"get",value:function(k){return this.maps[k]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),L}(),ce=q;function D(L){var it=parseFloat(L);return isNaN(it)?0:it}function ot(L,it,k){var p=S.useState(0),d=(0,ie.Z)(p,2),w=d[0],Y=d[1],Ee=(0,S.useRef)(new Map),H=(0,S.useRef)(new ce),ne=(0,S.useRef)(0);function Ge(){ne.current+=1}function xe(){var qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ge();var Et=function(){var At=!1;Ee.current.forEach(function(Me,De){if(Me&&Me.offsetParent){var gt=Me.offsetHeight,jt=getComputedStyle(Me),Tt=jt.marginTop,ir=jt.marginBottom,Fr=D(Tt),Pr=D(ir),Hr=gt+Fr+Pr;H.current.get(De)!==Hr&&(H.current.set(De,Hr),At=!0)}}),At&&Y(function(Me){return Me+1})};if(qe)Et();else{ne.current+=1;var pe=ne.current;Promise.resolve().then(function(){pe===ne.current&&Et()})}}function we(qe,Et){var pe=L(qe),dt=Ee.current.get(pe);Et?(Ee.current.set(pe,Et),xe()):Ee.current.delete(pe),!dt!=!Et&&(Et?it==null||it(qe):k==null||k(qe))}return(0,S.useEffect)(function(){return Ge},[]),[we,xe,H.current,w]}var ke=14/15;function Ce(L,it,k){var p=(0,S.useRef)(!1),d=(0,S.useRef)(0),w=(0,S.useRef)(0),Y=(0,S.useRef)(null),Ee=(0,S.useRef)(null),H,ne=function(qe){if(p.current){var Et=Math.ceil(qe.touches[0].pageX),pe=Math.ceil(qe.touches[0].pageY),dt=d.current-Et,At=w.current-pe,Me=Math.abs(dt)>Math.abs(At);Me?d.current=Et:w.current=pe;var De=k(Me,Me?dt:At,!1,qe);De&&qe.preventDefault(),clearInterval(Ee.current),De&&(Ee.current=setInterval(function(){Me?dt*=ke:At*=ke;var gt=Math.floor(Me?dt:At);(!k(Me,gt,!0)||Math.abs(gt)<=.1)&&clearInterval(Ee.current)},16))}},Ge=function(){p.current=!1,H()},xe=function(qe){H(),qe.touches.length===1&&!p.current&&(p.current=!0,d.current=Math.ceil(qe.touches[0].pageX),w.current=Math.ceil(qe.touches[0].pageY),Y.current=qe.target,Y.current.addEventListener("touchmove",ne,{passive:!1}),Y.current.addEventListener("touchend",Ge,{passive:!0}))};H=function(){Y.current&&(Y.current.removeEventListener("touchmove",ne),Y.current.removeEventListener("touchend",Ge))},(0,$.Z)(function(){return L&&it.current.addEventListener("touchstart",xe,{passive:!0}),function(){var we;(we=it.current)===null||we===void 0||we.removeEventListener("touchstart",xe),H(),clearInterval(Ee.current)}},[L])}function Qe(L){return Math.floor(Math.pow(L,.5))}function ve(L,it){var k="touches"in L?L.touches[0]:L;return k[it?"pageX":"pageY"]-window[it?"scrollX":"scrollY"]}function Pe(L,it,k){S.useEffect(function(){var p=it.current;if(L&&p){var d=!1,w,Y,Ee=function(){G.Z.cancel(w)},H=function we(){Ee(),w=(0,G.Z)(function(){k(Y),we()})},ne=function(qe){if(!(qe.target.draggable||qe.button!==0)){var Et=qe;Et._virtualHandled||(Et._virtualHandled=!0,d=!0)}},Ge=function(){d=!1,Ee()},xe=function(qe){if(d){var Et=ve(qe,!1),pe=p.getBoundingClientRect(),dt=pe.top,At=pe.bottom;if(Et<=dt){var Me=dt-Et;Y=-Qe(Me),H()}else if(Et>=At){var De=Et-At;Y=Qe(De),H()}else Ee()}};return p.addEventListener("mousedown",ne),p.ownerDocument.addEventListener("mouseup",Ge),p.ownerDocument.addEventListener("mousemove",xe),function(){p.removeEventListener("mousedown",ne),p.ownerDocument.removeEventListener("mouseup",Ge),p.ownerDocument.removeEventListener("mousemove",xe),Ee()}}},[L])}var fe=10;function ye(L,it,k,p,d,w,Y,Ee){var H=S.useRef(),ne=S.useState(null),Ge=(0,ie.Z)(ne,2),xe=Ge[0],we=Ge[1];return(0,$.Z)(function(){if(xe&&xe.times<fe){if(!L.current){we(function(bi){return(0,Q.Z)({},bi)});return}w();var qe=xe.targetAlign,Et=xe.originAlign,pe=xe.index,dt=xe.offset,At=L.current.clientHeight,Me=!1,De=qe,gt=null;if(At){for(var jt=qe||Et,Tt=0,ir=0,Fr=0,Pr=Math.min(it.length-1,pe),Hr=0;Hr<=Pr;Hr+=1){var Rr=d(it[Hr]);ir=Tt;var sr=k.get(Rr);Fr=ir+(sr===void 0?p:sr),Tt=Fr}for(var lr=jt==="top"?dt:At-dt,$r=Pr;$r>=0;$r-=1){var ln=d(it[$r]),En=k.get(ln);if(En===void 0){Me=!0;break}if(lr-=En,lr<=0)break}switch(jt){case"top":gt=ir-dt;break;case"bottom":gt=Fr-At+dt;break;default:{var cn=L.current.scrollTop,In=cn+At;ir<cn?De="top":Fr>In&&(De="bottom")}}gt!==null&&Y(gt),gt!==xe.lastTop&&(Me=!0)}Me&&we((0,Q.Z)((0,Q.Z)({},xe),{},{times:xe.times+1,targetAlign:De,lastTop:gt}))}},[xe,L.current]),function(qe){if(qe==null){Ee();return}if(G.Z.cancel(H.current),typeof qe=="number")Y(qe);else if(qe&&(0,de.Z)(qe)==="object"){var Et,pe=qe.align;"index"in qe?Et=qe.index:Et=it.findIndex(function(Me){return d(Me)===qe.key});var dt=qe.offset,At=dt===void 0?0:dt;we({times:0,index:Et,offset:At,originAlign:pe})}}}var at=S.forwardRef(function(L,it){var k=L.prefixCls,p=L.rtl,d=L.scrollOffset,w=L.scrollRange,Y=L.onStartMove,Ee=L.onStopMove,H=L.onScroll,ne=L.horizontal,Ge=L.spinSize,xe=L.containerSize,we=L.style,qe=L.thumbStyle,Et=L.showScrollBar,pe=S.useState(!1),dt=(0,ie.Z)(pe,2),At=dt[0],Me=dt[1],De=S.useState(null),gt=(0,ie.Z)(De,2),jt=gt[0],Tt=gt[1],ir=S.useState(null),Fr=(0,ie.Z)(ir,2),Pr=Fr[0],Hr=Fr[1],Rr=!p,sr=S.useRef(),lr=S.useRef(),$r=S.useState(Et),ln=(0,ie.Z)($r,2),En=ln[0],cn=ln[1],In=S.useRef(),bi=function(){Et===!0||Et===!1||(clearTimeout(In.current),cn(!0),In.current=setTimeout(function(){cn(!1)},3e3))},Ir=w-xe||0,qn=xe-Ge||0,wi=S.useMemo(function(){if(d===0||Ir===0)return 0;var Ti=d/Ir;return Ti*qn},[d,Ir,qn]),$n=function(me){me.stopPropagation(),me.preventDefault()},Ni=S.useRef({top:wi,dragging:At,pageY:jt,startTop:Pr});Ni.current={top:wi,dragging:At,pageY:jt,startTop:Pr};var gi=function(me){Me(!0),Tt(ve(me,ne)),Hr(Ni.current.top),Y(),me.stopPropagation(),me.preventDefault()};S.useEffect(function(){var Ti=function(lt){lt.preventDefault()},me=sr.current,Ue=lr.current;return me.addEventListener("touchstart",Ti,{passive:!1}),Ue.addEventListener("touchstart",gi,{passive:!1}),function(){me.removeEventListener("touchstart",Ti),Ue.removeEventListener("touchstart",gi)}},[]);var Qi=S.useRef();Qi.current=Ir;var ba=S.useRef();ba.current=qn,S.useEffect(function(){if(At){var Ti,me=function(lt){var $t=Ni.current,Qt=$t.dragging,Br=$t.pageY,pr=$t.startTop;G.Z.cancel(Ti);var Kr=sr.current.getBoundingClientRect(),Wr=xe/(ne?Kr.width:Kr.height);if(Qt){var en=(ve(lt,ne)-Br)*Wr,Vr=pr;!Rr&&ne?Vr-=en:Vr+=en;var jr=Qi.current,Yr=ba.current,mn=Yr?Vr/Yr:0,tn=Math.ceil(mn*jr);tn=Math.max(tn,0),tn=Math.min(tn,jr),Ti=(0,G.Z)(function(){H(tn,ne)})}},Ue=function(){Me(!1),Ee()};return window.addEventListener("mousemove",me,{passive:!0}),window.addEventListener("touchmove",me,{passive:!0}),window.addEventListener("mouseup",Ue,{passive:!0}),window.addEventListener("touchend",Ue,{passive:!0}),function(){window.removeEventListener("mousemove",me),window.removeEventListener("touchmove",me),window.removeEventListener("mouseup",Ue),window.removeEventListener("touchend",Ue),G.Z.cancel(Ti)}}},[At]),S.useEffect(function(){return bi(),function(){clearTimeout(In.current)}},[d]),S.useImperativeHandle(it,function(){return{delayHidden:bi}});var $i="".concat(k,"-scrollbar"),ri={position:"absolute",visibility:En?null:"hidden"},xi={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return ne?(ri.height=8,ri.left=0,ri.right=0,ri.bottom=0,xi.height="100%",xi.width=Ge,Rr?xi.left=wi:xi.right=wi):(ri.width=8,ri.top=0,ri.bottom=0,Rr?ri.right=0:ri.left=0,xi.width="100%",xi.height=Ge,xi.top=wi),S.createElement("div",{ref:sr,className:f()($i,(0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({},"".concat($i,"-horizontal"),ne),"".concat($i,"-vertical"),!ne),"".concat($i,"-visible"),En)),style:(0,Q.Z)((0,Q.Z)({},ri),we),onMouseDown:$n,onMouseMove:bi},S.createElement("div",{ref:lr,className:f()("".concat($i,"-thumb"),(0,Oe.Z)({},"".concat($i,"-thumb-moving"),At)),style:(0,Q.Z)((0,Q.Z)({},xi),qe),onMouseDown:gi}))}),rt=at,nt=20;function ut(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,k=L/it*L;return isNaN(k)&&(k=0),k=Math.max(k,nt),Math.floor(k)}var Pt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Ht=[],Ut={overflowY:"auto",overflowAnchor:"none"};function cr(L,it){var k=L.prefixCls,p=k===void 0?"rc-virtual-list":k,d=L.className,w=L.height,Y=L.itemHeight,Ee=L.fullHeight,H=Ee===void 0?!0:Ee,ne=L.style,Ge=L.data,xe=L.children,we=L.itemKey,qe=L.virtual,Et=L.direction,pe=L.scrollWidth,dt=L.component,At=dt===void 0?"div":dt,Me=L.onScroll,De=L.onVirtualScroll,gt=L.onVisibleChange,jt=L.innerProps,Tt=L.extraRender,ir=L.styles,Fr=L.showScrollBar,Pr=Fr===void 0?"optional":Fr,Hr=(0,W.Z)(L,Pt),Rr=S.useCallback(function(ti){return typeof we=="function"?we(ti):ti==null?void 0:ti[we]},[we]),sr=ot(Rr,null,null),lr=(0,ie.Z)(sr,4),$r=lr[0],ln=lr[1],En=lr[2],cn=lr[3],In=!!(qe!==!1&&w&&Y),bi=S.useMemo(function(){return Object.values(En.maps).reduce(function(ti,Un){return ti+Un},0)},[En.id,En.maps]),Ir=In&&Ge&&(Math.max(Y*Ge.length,bi)>w||!!pe),qn=Et==="rtl",wi=f()(p,(0,Oe.Z)({},"".concat(p,"-rtl"),qn),d),$n=Ge||Ht,Ni=(0,S.useRef)(),gi=(0,S.useRef)(),Qi=(0,S.useRef)(),ba=(0,S.useState)(0),$i=(0,ie.Z)(ba,2),ri=$i[0],xi=$i[1],Ti=(0,S.useState)(0),me=(0,ie.Z)(Ti,2),Ue=me[0],Le=me[1],lt=(0,S.useState)(!1),$t=(0,ie.Z)(lt,2),Qt=$t[0],Br=$t[1],pr=function(){Br(!0)},Kr=function(){Br(!1)},Wr={getKey:Rr};function en(ti){xi(function(Un){var Fi;typeof ti=="function"?Fi=ti(Un):Fi=ti;var Ei=ei(Fi);return Ni.current.scrollTop=Ei,Ei})}var Vr=(0,S.useRef)({start:0,end:$n.length}),jr=(0,S.useRef)(),Yr=te($n,Rr),mn=(0,ie.Z)(Yr,1),tn=mn[0];jr.current=tn;var Dn=S.useMemo(function(){if(!In)return{scrollHeight:void 0,start:0,end:$n.length-1,offset:void 0};if(!Ir){var ti;return{scrollHeight:((ti=gi.current)===null||ti===void 0?void 0:ti.offsetHeight)||0,start:0,end:$n.length-1,offset:void 0}}for(var Un=0,Fi,Ei,ha,No=$n.length,na=0;na<No;na+=1){var Ji=$n[na],ja=Rr(Ji),La=En.get(ja),eo=Un+(La===void 0?Y:La);eo>=ri&&Fi===void 0&&(Fi=na,Ei=Un),eo>ri+w&&ha===void 0&&(ha=na),Un=eo}return Fi===void 0&&(Fi=0,Ei=0,ha=Math.ceil(w/Y)),ha===void 0&&(ha=$n.length-1),ha=Math.min(ha+1,$n.length-1),{scrollHeight:Un,start:Fi,end:ha,offset:Ei}},[Ir,In,ri,$n,cn,w]),Qn=Dn.scrollHeight,ui=Dn.start,On=Dn.end,on=Dn.offset;Vr.current.start=ui,Vr.current.end=On,S.useLayoutEffect(function(){var ti=En.getRecord();if(ti.size===1){var Un=Array.from(ti)[0],Fi=$n[ui];if(Fi){var Ei=Rr(Fi);if(Ei===Un){var ha=En.get(Un),No=ha-Y;en(function(na){return na+No})}}}En.resetRecord()},[Qn]);var Kt=S.useState({width:0,height:w}),Zt=(0,ie.Z)(Kt,2),qt=Zt[0],er=Zt[1],Xt=function(Un){er({width:Un.offsetWidth,height:Un.offsetHeight})},Ur=(0,S.useRef)(),Mr=(0,S.useRef)(),Gr=S.useMemo(function(){return ut(qt.width,pe)},[qt.width,pe]),Mn=S.useMemo(function(){return ut(qt.height,Qn)},[qt.height,Qn]),Pn=Qn-w,si=(0,S.useRef)(Pn);si.current=Pn;function ei(ti){var Un=ti;return Number.isNaN(si.current)||(Un=Math.min(Un,si.current)),Un=Math.max(Un,0),Un}var Ci=ri<=0,Yn=ri>=Pn,Hn=Ue<=0,an=Ue>=pe,pi=le(Ci,Yn,Hn,an),Ln=function(){return{x:qn?-Ue:Ue,y:ri}},ni=(0,S.useRef)(Ln()),vi=(0,h.useEvent)(function(ti){if(De){var Un=(0,Q.Z)((0,Q.Z)({},Ln()),ti);(ni.current.x!==Un.x||ni.current.y!==Un.y)&&(De(Un),ni.current=Un)}});function Mi(ti,Un){var Fi=ti;Un?((0,_.flushSync)(function(){Le(Fi)}),vi()):en(Fi)}function Jn(ti){var Un=ti.currentTarget.scrollTop;Un!==ri&&en(Un),Me==null||Me(ti),vi()}var _i=function(Un){var Fi=Un,Ei=pe?pe-qt.width:0;return Fi=Math.max(Fi,0),Fi=Math.min(Fi,Ei),Fi},ra=(0,h.useEvent)(function(ti,Un){Un?((0,_.flushSync)(function(){Le(function(Fi){var Ei=Fi+(qn?-ti:ti);return _i(Ei)})}),vi()):en(function(Fi){var Ei=Fi+ti;return Ei})}),ai=he(In,Ci,Yn,Hn,an,!!pe,ra),An=(0,ie.Z)(ai,2),rn=An[0],Tn=An[1];Ce(In,Ni,function(ti,Un,Fi,Ei){var ha=Ei;return pi(ti,Un,Fi)?!1:!ha||!ha._virtualHandled?(ha&&(ha._virtualHandled=!0),rn({preventDefault:function(){},deltaX:ti?Un:0,deltaY:ti?0:Un}),!0):!1}),Pe(Ir,Ni,function(ti){en(function(Un){return Un+ti})}),(0,$.Z)(function(){function ti(Fi){var Ei=Ci&&Fi.detail<0,ha=Yn&&Fi.detail>0;In&&!Ei&&!ha&&Fi.preventDefault()}var Un=Ni.current;return Un.addEventListener("wheel",rn,{passive:!1}),Un.addEventListener("DOMMouseScroll",Tn,{passive:!0}),Un.addEventListener("MozMousePixelScroll",ti,{passive:!1}),function(){Un.removeEventListener("wheel",rn),Un.removeEventListener("DOMMouseScroll",Tn),Un.removeEventListener("MozMousePixelScroll",ti)}},[In,Ci,Yn]),(0,$.Z)(function(){if(pe){var ti=_i(Ue);Le(ti),vi({x:ti})}},[qt.width,pe]);var wn=function(){var Un,Fi;(Un=Ur.current)===null||Un===void 0||Un.delayHidden(),(Fi=Mr.current)===null||Fi===void 0||Fi.delayHidden()},jn=ye(Ni,$n,En,Y,Rr,function(){return ln(!0)},en,wn);S.useImperativeHandle(it,function(){return{nativeElement:Qi.current,getScrollInfo:Ln,scrollTo:function(Un){function Fi(Ei){return Ei&&(0,de.Z)(Ei)==="object"&&("left"in Ei||"top"in Ei)}Fi(Un)?(Un.left!==void 0&&Le(_i(Un.left)),jn(Un.top)):jn(Un)}}}),(0,$.Z)(function(){if(gt){var ti=$n.slice(ui,On+1);gt(ti,$n)}},[ui,On,$n]);var ci=Ne($n,Rr,En,Y),Bi=Tt==null?void 0:Tt({start:ui,end:On,virtual:Ir,offsetX:Ue,offsetY:on,rtl:qn,getSize:ci}),Aa=J($n,ui,On,pe,Ue,$r,xe,Wr),Yi=null;w&&(Yi=(0,Q.Z)((0,Oe.Z)({},H?"height":"maxHeight",w),Ut),In&&(Yi.overflowY="hidden",pe&&(Yi.overflowX="hidden"),Qt&&(Yi.pointerEvents="none")));var ao={};return qn&&(ao.dir="rtl"),S.createElement("div",(0,ge.Z)({ref:Qi,style:(0,Q.Z)((0,Q.Z)({},ne),{},{position:"relative"}),className:wi},ao,Hr),S.createElement(E.Z,{onResize:Xt},S.createElement(At,{className:"".concat(p,"-holder"),style:Yi,ref:Ni,onScroll:Jn,onMouseEnter:wn},S.createElement(R,{prefixCls:p,height:Qn,offsetX:Ue,offsetY:on,scrollWidth:pe,onInnerResize:ln,ref:gi,innerProps:jt,rtl:qn,extra:Bi},Aa))),Ir&&Qn>w&&S.createElement(rt,{ref:Ur,prefixCls:p,scrollOffset:ri,scrollRange:Qn,rtl:qn,onScroll:Mi,onStartMove:pr,onStopMove:Kr,spinSize:Mn,containerSize:qt.height,style:ir==null?void 0:ir.verticalScrollBar,thumbStyle:ir==null?void 0:ir.verticalScrollBarThumb,showScrollBar:Pr}),Ir&&pe>qt.width&&S.createElement(rt,{ref:Mr,prefixCls:p,scrollOffset:Ue,scrollRange:pe,rtl:qn,onScroll:Mi,onStartMove:pr,onStopMove:Kr,spinSize:Gr,containerSize:qt.width,horizontal:!0,style:ir==null?void 0:ir.horizontalScrollBar,thumbStyle:ir==null?void 0:ir.horizontalScrollBarThumb,showScrollBar:Pr}))}var or=S.forwardRef(cr);or.displayName="List";var Cr=or,hr=Cr},45614:function(xn){"use strict";xn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0CAYAAADL1t+KAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAB9KADAAQAAAABAAAB9AAAAAB3bs6AAAA90UlEQVR4Ae3dB5xU5b3/8d+ACAgKCKIg3YqoIKJiA1FUjCUaY4yxkehVo9FrTPzHkhtJYqJpNz3mplyNV2NsicaoiCgiKIoiFhArxYJ0BKQI7s7/97AB2d2Z2ZnZ55zzlM95vTbuzjnnKe/fhu+emVNywlJUIH/AiAHSaqv9pLa2v+Ra9Je89JJ8vovu0EVyuXZFd2QFAgiEIfDZY6bLVd8cksvlasOYELMIWWCrkCdX6dzy+xzWSdq1PVVDe5TuO1xDu4ts/L9xC9Ewr1tyuUqbZXsEEPBVoFfP/eS3N83K5/N7aqhv+lfA19kw7sAFok+n/L7HtJM2+ZNEas+QFi2O1XpvHXjNmR4CCJQrcOl5Ih22E5k79w1Zsqh/bswYjtTLtWO71AX00DPOJS/7t8oPPeZc2ab2GWkhf9UwP1ElCPM4fx2YNQKlBfr02V26dJ2VHzMm2n8zSwOx1gWBKH8584ccM0wO6vicvo9+i0hubxcKwRgQQMBxAULd8QIxvKgCPb/vET3yB428R2rzE/Ukt4GUHwEEEKhIgFCviIuN0xWIJtDzAw7eXrZpdaee6HZqusT0hgACQQkQ6kGVM6TJRBHo+SEj9pDt2k/Twh0SUvGYCwIIZCRAqGcET7elBIIP9PzgEftLi5aT9LKzPqUgWIcAAghUJECoV8TFxskLBB3o+YOPGiWtWj4pLXI7JE9JDwggEJ0AoR5dyV2ecLCBnh967Eipyd2nn5lv43IBGBsCCHguQKh7XsBwhh9koG8M89qaf+mReetwSsVMEEDAWQFC3dnSxDSw4AI9f/BpbSVX+0fCPKZfY+aKgAMChLoDRYh7CMEFuuQ/vIkT4OL+pWb2CGQmQKhnRk/Hojc9DWjJDz7qcJ3OuQFNiakggIBvAoS6bxULZrzBBLq5N7u0yv05mMowEQQQ8FeAUPe3dh6PPJhAl0M6X6tntO/mcS0YOgIIhCRAqIdUTS/mEkSg5/sc0UafYX6BF+IMEgEE4hEg1OOptQMzDSLQZcetLtIT4bo54MkQEEAAgfoChHp9D35KTCCMQG8hFyUmRMMIIIBAcwUI9eYKsn8ZAt4Hen7QEYMkn9ujjLmyCQIIIJCdAKGenX0kPXsf6NK21ehIasU0EUDAdwFC3fcKOj1+/wO9Nn+y08IMDgEEENhSgFDfUoPvLQp4Hej5oaP66KVqvS160BQCCCCQvAChnrxxhD14HegiNUdEWDOmjAACIQgQ6iFU0ak5+B3oORnklCaDQQABBCoRINQr0WLbJgT8DnSRPZuYH6sRQAABtwUIdbfr49Ho/A702jxH6B79sjFUBBAoIkCoF4Hh5UoE/A70vHSsZLJsiwACCDgrQKg7WxpfBuZtoG+8f3uLXGtfoBknAggg0KQAod4kERsUF/A20GUHjs6Ll5U1CCDgrQCh7m3psh64v4FeuzVvt2f920P/CCCQjAChnoxr4K36G+itWqwLvDZMDwEEYhYg1GOuflVz9zfQq5ouOyGAAAIeCRDqHhUr+6ES6NnXgBEggAACxQUI9eI2rKknQKDX4+AHBBBAwEEBQt3Borg3JALdvZowIgQQQKCxAKHe2IRX6gkQ6PU4+AEBBBBwWIBQd7g42Q+NQM++BowAAQQQKF+AUC/fKrItCfTICs50EUAgAAFCPYAi2p8CgW7flBYRQACB5AUI9eSNPeuBQPesYAwXAQQQ2CxAqG+m4BsRAp3fAgQQQMBnAULd5+pZHTuBbpWTxhBAAIEMBAj1DNDd65JAd68mjAgBBBCoXIBQr9wssD0I9MAKynQQQCBiAUI94uLzGXrUxWfyCCAQoAChHmBRy5sSR+jlObEVAggg4I8Aoe5PrSyOlEC3iElTCCCAgDMChLozpUhrIAR6WtL0gwACCKQtQKinLZ5pfwR6pvx0jgACCCQsQKgnDOxO8wS6O7VgJAgggEAyAoR6Mq6OtUqgO1YQhoMAAggkIkCoJ8LqUqMEukvVYCwIIIBAkgKEepK6mbdNoGdeAgaAAAIIpChAqKeInW5XBHq63vSGAAIIZC9AqGdfgwRGQKAngEqTCCCAgPMChLrzJap0gAR6pWJsjwACCIQiQKiHUsmN8yDQgyonk0EAAQQqFCDUKwRzd3MC3d3aMDIEEEAgHQFCPR3nhHsh0BMGpnkEEEDACwFC3YsylRokgV5Kh3UIIIBATAKEutfVJtC9Lh+DRwABBCwLEOqWQdNrjkBPz5qeEEAAAT8ECHU/6tRglAR6AxB+RAABBBBQAULdu18DAt27kjFgBBBAICUBQj0laDvdEOh2HGkFAQQQCFOAUPemrgS6N6VioAgggEBGAoR6RvCVdUugV+bF1ggggECcAoS683Un0J0vEQNEAAEEHBEg1B0pROFhEOiFXXgVAQQQQKCQAKFeSMWJ1wh0J8rAIBBAAAGPBAh1J4tFoDtZFgaFAAIIOC5AqDtXIALduZIwIAQQQMATAULdqUIR6E6Vg8EggAACngkQ6s4UjEB3phQMBAEEEPBUgFB3onAEuhNlYBAIIICA5wKEeuYFJNAzLwEDQAABBAIRINQzLSSBnik/nSOAAAKBCRDqmRWUQM+Mno4RQACBQAUI9UwKS6Bnwk6nCCCAQOAChHrqBSbQUyenQwQQQCASAUI91UIT6Kly0xkCCCAQmQChnlrBCfTUqOkIAQQQiFSAUE+l8AR6Ksx0ggACCEQuQKgn/gtAoCdOTAcIIIAAAhsFCPVEfxEI9ER5aRwBBBBAoJ4AoV6Pw+YPBLpNTdpCAAEEEGhagFBv2qiKLQj0KtDYBQEEEECgmQKEejMBG+9OoDc24RUEEEAAgTQECHWrygS6VU4aQwABBBCoSIBQr4ir1MYEeikd1iGAAAIIJC9AqFsxJtCtMNIIAggggECzBAj1ZvGZnQn0ZhPSAAIIIICAFQFCvVmMBHqz+NgZAQSCFqipCXp6Tk6OUK+6LAR61XTsiAACwQusXx/8FJ2cIKFeVVkI9KrY2AkBBKIQ2LAhimk6OUlCveKyEOgVk7EDAghEI7ByVTRTdXKihHpFZSHQK+JiYwQQiEpg6bKopuvkZAn1sstCoJdNxYYIIBCdwNLl0U3ZyQkT6mWVhUAvi4mNEEAgSoEFi6KctpOTJtSbLAuB3iQRGyCAQLQCS1eIrFgZ7fSdmzihXrIkBHpJHlYigED0Au+9Hz2BUwCEetFyEOhFaViBAAIIqMAbb8PgmgChXrAiBHpBFl5EAAEE/i3wmgb6mjVwuCZAqDeqCIHeiIQXEEAAgS0EampF3uQofQsRd74l1OvVgkCvx8EPCCCAQAGBF2eI5PMFVvBS5gKE+uYSEOibKfgGAQQQKCLw7gKR2XOKrOTlzAUI9Y0lINAz/01kAAgg4IXA0895McxoB7kp1EVysRoQ6LFWnnkjgEBlAvPmi8ycVdk+bJ2ugAn13/zutfyYMVFmW5STTvc3jN4QQCAYgXFPiKxbF8x0gpzIpiP1CEOdQA/yN5pJIYBAIgKrNcwnPJlI0zRqUWBTqEf29juBbvF3iKYQQCACgWkzeevdhzJH+PY7ge7DLyZjRAABtwQeflzkQ73PO4vbApEdqRPobv86MjoEEHBRYN16kTvu5cEtLtam4ZgiOlIn0BsWn58RQACBcgTMk9j+eg9H6uVYZb1NJEfq3l6vlx86qo9IDXd6yPr/KPSPQOwC7duKnPE5kR27xi7h/vznzn1DlizqnxszRu/nG97CEXp4NWVGCCCQpsBHa0X+cqfI3Hlp9kpf1QgEfqTOEXo1vxTsgwACCDQUaKH/nB5/lMjAfRqu4WfXBAI9UucI3bVfNMaDAAJ+CtTqw1seGC/y2EQ/xx/TqAM9UucIPaZfYuaKAALpCOzQSeTIw0R22zWd/uilOoHAjtS3qk6BvRBAAAEEigosXi5y5wMiu/QUGTpEpG+fopuyIkMBc6QuMkvfW9lTj271P34vHKH7XT9GjwACPgjs1FnkoP1Fdtcj9tatfRhxXGOc984bcslF3oc6gR7Xry2zRQCBrAX20lDfrZ9Izx4iHTtkPRr63yQQQKgT6JuKyX8RQACBtAU6thfZuZtI1y4i2+vn7h23E2m7jX614Ug+7VqY/jwPdQI9i18a+kQAAQQQcFSgZd/cM2PnOjq4ksPisrWSPKxEAAEEEEDADwEC3Y86MUoEEEAAAQRKChDoJXlYiQACCCCAgB8CBLofdWKUCCCAAAIIlBQg0EvysBIBBBBAAAE/BAh0P+rEKBFAAAEEECgpQKCX5GElAggggAACfggQ6H7UiVEigAACCCBQUoBAL8nDSgQQQAABBPwQIND9qBOjRAABBBBAoKQAgV6Sh5UIIIAAAgj4IUCg+1EnRokAAggggEBJAQK9JA8rEUAAAQQQ8EOAQPejTowSAQQQQACBkgIEekkeViKAAAIIIOCHAIHuR50YJQIIIIAAAiUFCPSSPKxEAAEEEEDADwEC3Y86MUoEEEAAAQRKChDoJXlYiQACCCCAgB8CBLofdWKUCCCAAAIIlBQg0EvysBIBBBBAAAE/BAh0P+rEKBFAAAEEECgpQKCX5GElAggggAACfggQ6H7UiVEigAACCCBQUoBAL8nDSgQQQAABBPwQIND9qBOjRAABBBBAoKQAgV6Sh5UIIIAAAgj4IUCg+1EnRokAAggggEBJAQK9JA8rEUAAAQQQ8EOAQPejTowSAQQQQACBkgIEekkeViKAAAIIIOCHAIHuR50YJQIIIIAAAiUFCPSSPKxEAAEEEEDADwEC3Y86MUoEEEAAAQRKChDoJXlYiQACCCCAgB8CBLofdWKUCCCAAAIIlBQg0EvysBIBBBBAAAE/BAh0P+rEKBFAAAEEECgpQKCX5GElAggggAACfggQ6H7UiVEigAACCCBQUoBAL8nDSgQQQAABBPwQIND9qBOjRAABBBBAoKTAViXXshIBBNwQ2KGTSBf96tBBJJcTWbtWZOFikQ+WuDE+RoEAApkLEOiZl4ABINBAoLOG9vBDRAb0F9l1F5Hdd2uwQYMflyzVcF8oMm26yLjHRd5+t8EG/IgAAjEIEOgxVJk5+iEw/CCRM08X2WfvysbbpbMevevXgL1EzjlTZMZMkbvuFXl0cmXtsDUCCHgtQKB7XT4GH4TAAD0Cv/RCkYH72pnO3gNEzNf574j85XaRhybYaZdWEEDAaQEC3enyMLigBcxb65ddIHLM0clMs1cvkf+6WuSE40SuvV5k+cpk+qFVBBBwQoCz3J0oA4OITqDPziJ/+GVyYb4l6H6DRG65SWTPvlu+yvcIIBCYAIEeWEGZjgcC/ftpmP9apHv39AbbdQeRm/QPiIMHp9cnPSGAQKoCBHqq3HQWvYC5/OxnN4ps2z59ijZtRH70fZH+euY8CwIIBCdAoAdXUibktMAvbhDp1DG7IbZqJXLDd/V69nbZjYGeEUAgEQECPRFWGkWggMBF54j007fbs1527Cpy9RVZj4L+EUDAsgCBbhmU5hAoKNBbPy8/96yCqzJ5cfjhevMave6dBQEEghEg0IMpJRNxWuB8PTp3bbnsq66NiPEggEAzBAj0ZuCxKwJlCfTcSfIjhpe1aaobmbPsTxyZapd0hgACyQkQ6MnZ0jICdQJnny65li3d1DC3mmVBAIEgBAj0IMrIJJwVMHeDO/F4Z4cnvXvrLWf3dHd8jAwBBMoWINDLpmJDBKoQGHZwFTulvMuRw1LukO4QQCAJAQI9CVXaRGCTwCFDN33n7n+H6RnvLAgg4L0Age59CZmAswJb67OPDtjf2eFtHthOO4rs0nPzj3yDAAJ+ChDoftaNUfsgcKA+FKV1ax9GKnIg93j3o1CMEoHiAjw+tbgNaxBonkBfPeHM5jJnjshTz4jk83WtHjhEZI/d7fQwaKDIHffbaYtWEEAgEwECPRN2Oo1CoIc+ItXWsuojkS9dWL+1xUvsBfqu/eq3zU8IIOCdAG+5e1cyBuyNQM8e9oY6e3bjtqa92Pi1al8xN5kxn/mzIICAtwIEurelY+DOC/SwGOhvvd14urPfE1m2vPHr1b6yB0fp1dKxHwIuCBDoLlSBMYQpsEMXe/N6q8ARuml9usWj9B56lM6CAALeChDo3paOgUclMGde4ekWOnIvvGXTr3bevult2AIBBJwVINCdLQ0D81qgQzu7w1+6rHB7b+uZ77aWLp1ttUQ7CCCQgQCBngE6XUYg0LaN3UkuXFq4vTcKfLZeeMumX92+U9PbsAUCCDgrQKA7WxoG5rVAG4uBbi5Z21BTmGOhHrmvXl14XaWvtmtf6R5sjwACDgkQ6A4Vg6EEJLB+vb3JNBXYCxfa6av11nbaoRUEEMhEgEDPhJ1OgxdYZemo2UDlcqW5ln9Yen25a325TW2582E7BCITINAjKzjTTUlg1ZqUOtJulhU5Ya7SEWzNEXqlZGyPgEsCBLpL1WAsYQmsXZvOfGzdXKYl/xykUzB6QSAZAf4fnIwrrSIg8pGlt91btiytue7j0uvLXbvhk3K3ZDsEEHBQgEB3sCgMKRCBRYvsTKTDdqXb2WDpBLyaImfSl+6dtQgg4IgAge5IIRhGgAILLQV6q1YipW5UY+vImkAP8JeQKcUkQKDHVG3mmq7ABwvs9delxG1ZP7H0VrnNS+3szZyWEECgTAECvUwoNkOgYgFbR+im4647FO/e1uVmtj7zLz5S1iCAQIICBHqCuDQducD8D+wB9C7xKNZttrHTz6pVdtqhFQQQyESAQM+EnU6jEJj5ur1p9uldvK12lgKdI/TixqxBwAMBAt2DIjFETwU+1HuwLynyUJVKp9S7V/E9bAX6ypXF+2ANAgg4L0CgO18iBui1wJtv2Rl+v37F29m+xAlzxfdqvMbWDWoat8wrCCCQggCBngIyXUQs8PZsO5PfbluRXYscpXfvZqePRUvstEMrCCCQiQCBngk7nUYjYOsI3YANGVSYrXv3wq9X+uoCS9fNV9ov2yOAgBUBAt0KI40gUERg2stFVlTx8r77NN6pX4mz3xtvXfqVdy2elV+6J9YigEACAgR6Aqg0icBmgaUrRObN2/xjs74ZNLDx7rv1a/xaNa98qOOsqa1mT/ZBAAFHBAh0RwrBMAIWeHmGncl16igycM/6bQ3oX//nan/6gKPzaunYDwFXBAh0VyrBOMIVsBXoRmjYofWd9rIU6O+9V79dfkIAAe8ECHTvSsaAvROYOt3ekA8dWr+t3Xat/3O1P73PEXq1dOyHgCsCBLorlWAc4QosWiYy29Lla731jnG79KyzOnBfka23tuP2zrt22qEVBBDITIBAz4yejqMSmPq8vel+/rN1bR04xF6b77xvry1aQgCBTAQI9EzY6TQ6gSlT7U35mJEi7drodemDrbSZr9Wz29+w9A6ClRHRCAIIVCNAoFejxj4IVCowVa9HX7Om0r0Kb2+ernbG50T22L3w+gpfzZkT4jbUVLgXmyOAgGsCBLprFWE84QrYfNv9vNH2nOZYuk7e3ohoCQEEqhAg0KtAYxcEqhKY9FRVuyW+05y5iXdBBwggkLwAgZ68MT0gUCcw4Wl9a3uDexq2HiDj3swYEQJRCRDoUZWbyWYqsPZjkedfyHQIBTt/7c2CL/MiAgj4JUCg+1UvRuu7gGtvu69YKfIeT1nz/deK8SNgBAh0fg8QSFPgCX3b3aXl9dddGg1jQQCBZggQ6M3AY1cEKhZYrkfEU56teLfEdnjtjcSapmEEEEhXgEBP15veEBAZN94dBQLdnVowEgSaKUCgNxOQ3RGoWGDsRJG1ayveLZEdZryWSLM0igAC6QsQ6Omb0yMCIhM01LNezB3iFi/PehT0jwAClgQIdEuQNINARQJjH61o80Q2fumVRJqlUQQQyEaAQM/GnV5jF3hOw9QcIWe5EOhZ6tM3AtYFCHTrpDSIQJkC/3q4zA0T2myqgze5SWiqNItADAIEegxVZo5uCtz3kMgnn2QztvnzRRYuy6ZvekUAgUQECPREWGkUgTIEVqwWyerOcS/q41xZEEAgKAECPahyMhnvBO57IJshT38pm37pFQEEEhMg0BOjpWEEyhCYqkfK8zJ4Hvlkh+5WVwYTmyCAQNMCBHrTRmyBQLIC//hnsu03bH3OHJEPP2r4Kj8jgIDnAgS65wVk+AEI/HOcyJo16U3khRfT64ueEEAgNQECPTVqOkKgiIB5TvrDjxRZmcDLz3G5WgKqNIlA5gIEeuYlYAAIqMDd96fHMJUj9PSw6QmB9AQI9PSs6QmB4gLz9LrwySk8K/2VGfpgGH1HgAUBBIITINCDKykT8lbgnn8kP/Rp05Pvgx4QQCATAQI9E3Y6RaCAwLN6bfgbbxZYYfGl5/n83KImTSHglACB7lQ5GEz0An+9MzmCdetEps1Mrn1aRgCBTAUI9Ez56RyBBgKPPJncU9i4XK0BNj8iEJYAgR5WPZlNCAJ33J3MLKbxdnsysLSKgBsCBLobdWAUCHwq8Hd9rOrCRZ/+bOu7j9fbaol2EEDAQQEC3cGiMCQE5LY77COMPlukzdb226VFBBBwQoBAd6IMDAKBBgL3PCiy/MMGLzbzxy6dRc76fDMbYXcEEHBVgEB3tTKMK26B9m1Ftm1v3+DML4p02s5+u7SIAAKZCxDomZeAASBQQOCow0W22qrAima+1KaNyEWjm9kIuyOAgIsCBLqLVWFMCBwxLDGD/PHHiezSM7H2aRgBBLIRINCzcadXBIoLmLfbhwwuvr6Za3ItW4pcckEzW2F3BBBwTYBAd60ijAeBkXp0nsTb7VvKHnyQyGFDtnyF7xFAwHMBAt3zAjL8AAWOHJ7OpK64VGTrBD6nT2f09IIAAg0ECPQGIPyIQKYCHdtLfvB+6QyhWzeR889Kpy96QQCBxAUI9MSJ6QCBCgSOGiYbP+OuYJdmbXrGF0R6d29WE+yMAAJuCBDobtSBUSBQJzAiubPbCxKbz+qvvqLgKl5EAAG/BAh0v+rFaEMWMDd82T+5s9uL0g3cV+Sko4uuZgUCCPghQKD7USdGGYPAqBHZzfLiC0X083sWBBDwV4BA97d2jDw0gaMyDPQO+u7AFReHJsp8EIhKgECPqtxM1lmB7juIDNgr2+EdPVJkuF6fzoIAAl4KEOhelo1BBydwwrFuTOlb3+DhLW5UglEgULEAgV4xGTsgkIDAKEdOSuvUUeRaDXUWBBDwToBA965kDDg4gX12FzE3eXFlOfRgkZMdecfAFRPGgYAHAgS6B0ViiIELHHuUexO89KsiO3V2b1yMCAEEigoQ6EVpWIFASgIjjkipowq62WYbkeuuqmAHNkUAgawFCPSsK0D/cQscur/I9p3cNBg0UOS8L7o5NkaFAAKNBAj0RiS8gECKAsccmWJnVXR1/ldEBvWvYkd2QQCBtAUI9LTF6Q+BTQLt2ogMO3zTT+7+97prRMxYWRBAwGkBAt3p8jC4oAVG6dF5Gw+CcqcdRa7hAS5B/y4yuSAECPQgysgkvBQ4fpQ/wz7yCC5l86dajDRSAQI90sIz7YwFdukp0n/PjAdRYff/eYlIL4eul69w+GyOQOgCBHroFWZ+bgqccoKb4yo1KvPxwI1jRNq2LrUV6xBAICMBAj0jeLqNWKBVS5GRDt5MppyS9O0r8r2ry9mSbRBAIGUBAj1lcLpDQI46TMQ8rtTX5bBDRM49zdfRM24EghUg0IMtLRNzVsCnk+GKIOYvOE/kwH2LrOVlBBDIQoBAz0KdPuMVMM89H6J3h0tiee+9JFot2Gauhf7Tcf0YTpIrqMOLCGQjQKBn406vsQqcdFwyM//t70V++FORBx5Mpv1CrW7bXuSG6zhJrpANryGQgQCBngE6XUYscHwCgf7BByK3/V1k+qsiv/wfEfNzWku/fiLf5SEuaXHTDwKlBAj0UjqsQ8CmwNF6MlyXBB5J+uDDn45y9ToN2BskX1v76WtJf3f4oSJXX5Z0L7SPAAJNCBDoTQCxGgFrAp+1f+15vqZG5L4tAt0M9qXXJHf3vdaGXVZDJ+ncLjy7rE3ZCAEEkhEg0JNxpVUE6gv06Cr5wfvVf83CT7lJT4ksXdG4pd/dLPLOO41fT/KV0Rrop34myR5oGwEESggQ6CVwWIWANYEvnCK5XM5ac5sb+udDm7+t9836T/St9xtl4xF8vRXJ/pC/Qt96P0qvU2dBAIHUBQj01MnpMDqBrbcSOfYY+9OeP19kygvF2331Lcn95bbi6xNYs/FytuuuFTlgnwRap0kEECglQKCX0mEdAjYEjjtSZLttbbRUv41/lnGJ2h9vF3l1Vv39kv6pVSuRH/9AZKBnD59J2oX2EUhYgEBPGJjmEZCTjrePsGGDyN/LCHTT81VjRJZ/aH8MpVo0D3L52Q0iu/cutRXrEEDAogCBbhGTphBoJLBHH5G9+jd6udkvPDlZZNWa8ppZvFzk2jGpf54u7drpdfF6s5t+PcobJ1shgECzBAj0ZvGxMwJNCHz+5CY2qHL1fQ9UtqPedCb3hz9Xto+NrTt2EPn1z7hFrA1L2kCgCQECvQkgViNQtUCn7fRkuKOr3r3ojuZytOdnFF1ddMWt94hMfrro6sRWbN9JQ12P1HdK4KY6iQ2ahhHwT4BA969mjNgXgVP1ZivmBDHby11/r77FMTemf326GW1XfSjNbzTUd9BwZ0EAgUQECPREWGk0eoEWes25uXua7WXlKn0Ay7jqWzW3hr1KH6iydm31bVS75847i/zhVxypV+vHfgg0IaAXyLIggIB1gVFH6NFoF+vNysNjRcxNY5qzzHlfn5L2E5Hvfac5rVS37047aqj/WuTSb4rM0+vok17athbp3lXvob993bsEnfW/5n76nfXLfL7fWtdvre+ibKX/FJp3U7bSr43/1Z/N62a9WcwfQGv1j6G1eiLiGv1+jf53mZ5suGSJyOJ/f81fIPLy63Xb878IZCBAoGeATpcRCJxyUjKTvPt+O+0+OlkvKbtD5Kwz7LRXSSvmD53f/Vzkim+JvD63kj0Lb9urm0ifnnrinZ5N3918r5fKbQrtbbYpvE+lr7Ztq4+J1S8p4yODOXNE5up5Dub6//ETRRYsrbQ3tkegKoEE7kVZ1Tgq3ik/dFQfkRr9fw4LAo4J7LuHyP/oUajtxZzQduUYu63+WN9+N09Ly2IxHx9ccZXIzDeb7r29hulufetCu6cGt/nqtpO+tmvT+2a9xUsvizz2hMgE/SNqScr3A8h67l7237Jv7pmxc30cOoHuY9UYs9sC39eQGnmk/TGa8Ct1q9dqejRvSf/+v/Vofbdq9m7+Puat6/93rci0mXVtmWvWe+6s1673Edm5u0gP/b6nHn2bM+VDWGboPM0fZg8+Srg7W08CPfXScISeOjkdliNgLs36h76VbXuZN0/ki/9hu9W69syY//ibZJ7VXs6I160TWbRIj757lbN1GNuYP2TuvEfk/+7Wz+U/DmNOwczC30DnLPdgfgmZiBMCpyb02XmlN5KpBMN8xnuVniC3fn0le9nb1twmNqYwN3Lms/0vnyNy1y08nc7eb1L0LRHo0f8KAGBNwLx9/dkTrTW3uSFzNHf/I5t/TOQb8zn2929IpGkaLSFgTt67fozIj/QPqo7tS2zIKgSaFiDQmzZiCwTKEzhVH8KybQL/KD80Np23Zcc/pZeUZXB72PJ0w95q2GF6IuUv9LyBrmHPk9klKkCgJ8pL41EJnH5aMtP9WzPuDFfpiG6+U2ScnrDFkr6A+djBXKPPw2zStw+kRwI9kEIyjYwFThmVzEllTzwp8r6eMJbm8j19mMqzU9Pskb42CZiz+X/+I26Ru8mD/1YkQKBXxMXGCBQROPP0Iiua+fIdehZ02ktNrcjl3xZ58aW0e6Y/I2Due//T67FAoGIBAr1iMnZAoIHAscP0s0+9Xtr2Yq5ZzvJWoldoqM981fasaK8cAXNfgMsTukyxnP7ZxksBAt3LsjFopwTO/GIyw7nr3mTaLbdVc3305VeLzJ5d7h5sZ1Egf9qpInv2s9giTYUuQKCHXmHml6zAYUOSuf3ofH1wibnfetbLR/ogksv0nuvmGewsqQrkWug/zxefn2qfdOa3AIHud/0YfdYCSX12fu99Wc/s0/6XrhD52pUiH3zw6Wt8l47AAfoHYw8uZUsH2/9eCHT/a8gMshIwD2EZNNB+7+ahJf942H67zWlxsT4q9D/1SH2J3lWOJV2BUSPT7Y/evBUg0L0tHQPPXOC8c5IZwr8eSudGMpWMvp3envWir4h8rPddZ0lX4KAD0u2P3rwV2MrbkTNwBLIUMEfnByb0D+3djrzdfuC+IoMHieyn70Lsu0+W2nH3vfcAfRZ7a/f+yIu7Kk7OnkB3siwMynmBpI7OzV3azMNSslj220tkiAb4QA3yffYW2XrrLEaRfp9r9cS/j1aLrP5IZJV+5fP1x9BWn8Xevp0+UEW/OmxXf11aP/XVR8i++lZavdGPpwIEuqeFY9gZCgzcM7mj81v/lt7EzLsMg/Xo2xyFmwA3Tz0LcXlTg3DuXL38Tr/e0kvwVqwUWanBbULcnPBX6dJeA75TB32Yioa7ebjK7ruK7LqL/jE0ODnDbnpiHIFeaaWi255Aj67kTLjZAuee2ewmCjbw5GSRt98tuMrKi3v0Edlfw3vwfnVvoSfxIBkrA7XYiDn6fvkVfUzpfXrp3Qd2GjaX8pmvdxfUtTdhSt1/zdvinzlKxFz50K2bnb42tWIet8qCQBMCBHoTQKxGoJ6AOao9+KB6L1n74dY7rDW1saE+eve6AzS899cv8zZ6Rz2qjG0xb5efekrd15Rn9eqBf4pMei4ZBXMjnnv1hEbz9e2vixx/nL1+WusfCywINCFAoDcBxGoE6gmMPqvej9Z+eO55vc3qm81v7mB923fYIfpHx1CRHfVtWpZPBcwfYuZr0WINdX03ZNLT+hCalz5db/O7638usks/vdOb/gFoY2kdyfkMNqwiboNAj7j4TL1CgX12T/Do/K8VDmaLzQ/dX0P8UJEjhotst+0WK/i2oIB5+Mmmo/YPV4hM1ufAv/CiyCz9g2ru+wV3qerFqfpHmq1AX6dH/ywINCFAoDcBxGoENgskdXRuPuN9fsbmbsr6xtxy9ojDRQ4/jBAvC6zIRuZjiBM+U/dlNlmtJ8q9OkvkdQ13cyS/cJHeTGeZ/le/L3UCXYd2enmfXto3oP+/v/SKAZtXCXykJ/GxINCEAIHeBBCrEdgoMEj/oT5E38ZOYrn9zvJaHXagyMgjRIbqOHw6oe3tt/XjBA3JF18Wma5/vIzUdxIuuai8Oae9VTsNZnO7VfPVcFm/Xk+E05MWV6+pv8b8UdCrV/3XbP9kzshnQaAJAQK9CSBWI7BR4KvnJwNhLql6cmrxtk2ID9ej8OF6NG7CxofFPPb1JQ3ul2dogOvXqgYBeNvf646Av39ddtd1V+Nojrh30cvTslgW6DsFLAg0IUCgNwHEagTEhGpSd0q7vcB154cf8Onb6T4cib+ioW0+g542XeQ5DfJyFrPd6AtFbhhj73Pmcvr1cZs1+gdRkpcz+mjCmAsKEOgFWXgRgS0ELtR7mCexmM9rjz1a5JEnRTZ9Jj5Mj8RdD3HzFroJ8Oc1wKfp2+irq7y/u7kj3pcvFbn6MpGTTkhCOIw2X3s9jHkwi8QFCPTEienAa4ET9EYh/fTyoyQW8xa6uYxqnL4F7XKIL1io4T2tLsSnaoiXOjmsGqcbflV3dP91DfYYr5VvymzGq01twXoENgoQ6PwiIFBMoFVLkfNGF1tr73XXwtw8vvUlPfJ+QcP7GQ1ym5dyFVMbN6nuaP/rF4scNaLYVnG+/tCjcc6bWVcsQKBXTMYO0Qh84SSRnXYMf7rm7O2ZehRo3kZ/7gWRV/Qt3toGDyhJQ8Ec+X/7BpFHHxe5Uu+01nn7NHp1uw9z0uS8+W6PkdE5I0CgO1MKBuKUgHkAx1lfcmpIVgez6YYq5m5pz+nd0sxtS11ZJj6rl7idJ3KxfsX+2fpDY12pCuPwQIBA96BIDDEDgbO/EN7nuYuX1N0VbeJkDXF9Sz2Lo/ByS7lCTxg0n63f9Q+RizTYD9Pb2ca2mJMP7/5XbLNmvs0QINCbgceuAQqYO359Ts+4Pv3zYUxuvr5dO1mPwp/QEJ/u4clV5nKtK8foXdj0zmuXXKB3YdP/xrL86OciNbWxzJZ5WhAg0C0g0kQAAjt11rfY9ajcPCHL9+eCz5tX9+CRCZPCeYa2+WPk/Mv1hDk9Uv/KOcldeeDKr/JNf9BzGd5wZTSMwxMBAt2TQjHMhAT26CPypdNEjtHrwX1ezMlTT00RGf9E2DcheUzfbTBf5uY753xJZO8BPlet8Ngn6cNibr2n8DpeRaCEAIFeAodVAQuYu7+ddoo+K3ywSC7n30Tzehb6rNf0SFz/8X9Mb0zz7gL/5tCcEZtnmpuv/TXQzz2z8L3Xm9N+Vvs++LDIT3+bVe/067kAge55ARl+hQKfP17k8yeL9O5d4Y6ObP7++yIPP6Jfj4nMX+zIoDIcxrSZev36NSL99eY/x+m7LCOOEOmiH5/4tqzTu+39RD8zf2iCbyNnvA4JeHhoUqeXHzqqj54xMschS4biqsC22+hJbhrin9OvTh1dHWXxcZl7eU+YKPKgBrmPJ7YVn1kya8xR+4hh+kAb/fIh3M1NfMbo9ffmVrgsDgi07Jt7ZuxcBwZS8RAI9IrJ2MEbgR066efjp9Zdy7yNhrpvi3lO+kMa4uM0zF26TtwnxwP20cfe6u11Dxzi3ol05t2WP95cdy9/n0yDH6u/gc5b7sH/ckY4QRPk550l8tkT/Zv8wkV6pzR9O/0BvaHIOx/4N37XRmye6rbxCXB/Eum6vciheu6Eea79/vuJtNWbB6W9mNvqTn1OZKJegTBez39gQcCiAIFuEZOmMhYwQT76DJETPiNinl3t0/KEntj2oIb45Od9GrVfY120TOQfamy+zNKvh371FumjX730+5496763edmiua3uW3qDGPNo2SlT+cikTp7/TUiAQE8IlmZTFDBBbu7sZo7IfQry19/Qt1v1wRsPjRcxd0ZjSVdg9nsi5ksaHCl30fMsuus9/HfqKrKjfpnP4bt1E+mwXfHxrV6jT6HTz8CXLdcv/cNhqX69N1/ktTnF92ENApYFCHTLoDSXooC5Gcw5X6y7GYwvQb5ipcjjE/Qtdb08adbsFLHoqmyBJR+KmK+XXy97FzZEwAUBAt2FKjCGygTMEdSFo+veWq9sz+y2Ns8TN2+pj9UT3FgQQACBBAQI9ARQaTIhAfN88rP0Hutn6efkPpy1/oGe1PaIvp1uTnDjmvGEfiloFgEENgkQ6Jsk+K/bAiMOrns4x847uz1OcxKUeRiKudzsKT0qZ0EAAQRSEiDQU4KmmyoFzB3ALr1In7Y1qMoGUtrNHI3fcbe+pf64yCo9QYoFAQQQSFmAQE8ZnO7KFDDXDF/8FZFjjylzh4w3u/a7nOSWcQnoHoHYBQj02H8DXJt/C7154ZdOEfnyOX58Tm78HniQMHft94jxIBChAIEeYdGdnfKQvUW+cZne3KOPs0NsNLDVev34TTc3epkXEEAAgbQFCPS0xemvsUD3HUS+doE+UGN443Wuv3LL/4ks12vLWRBAAIGMBQj0jAsQffdfPVdvDqPPs/Zxefddkdv+7uPIGTMCCAQoQKAHWFQvptS7u8gP/ktkl128GG7BQf5Yn1/NggACCDgiQKA7UoiohnHaCfoWu16K5svtWgsV56kpIs/PKLSG1xBAAIFMBAj0TNgj7dQ8RGXMVSKD9/MbYMMGkV/81u85MHoEEAhOgEAPrqSOTmjkoSL/7xsi27Z3dIAVDOu2O/RJWvrcchYEEEDAIQEC3aFiBDkUc//1yy8U+dzJYUzP3BHuZg10FgQQQMAxAQLdsYIENZx+PUSu1xPf+vYNZ1o//oXIhppw5sNMEEAgGAECPZhSOjaRU0bpW+xXODaoZg7HnAj3zPRmNsLuCCCAQDICBHoyrnG3euHZIqP1K6RljT5w5ae/CmlGzAUBBAITINADK2jm07lab916kl6WFtry65tEFiwNbVbMBwEEAhIg0AMqZqZTaddG5IbviBwwJNNhJNL5lGdF7tPnm7MggAACDgu0cHhsDM0XgfZt9brsG7IN89mzk9EyD1+5kTvCJYNLqwggYFOAQLepGWNbbVvXhfneA9Kf/fIPRczDUU7Ve8G3S+j69h//t8iiZenPjR4RQACBCgV4y71CMDZvIHCjvs0+YK8GLyb84wp9utmtt4n89b66jr71NZEdu9rvdMJEkXGT7LdLiwgggEACAgR6AqjRNHmjXmN+4AHpTXf9epG79elmf/mbyCo969wsBw0UOfmkuu9t/u+y5SI/+bXNFmkLAQQQSFSAQE+UN+DGL/myyPDD05vgK/oglO//WOTdBZ/2ae4Nf921n/5s87sf/YznnNv0pC0EEEhcgEBPnDjADobsLXLWGelMbN06kT/+76dvr2/Z6w/17f5OHbd8xc734x8XeXKqnbZoBQEEEEhJgEBPCTqYbjrqyWdJHRU3RHr3XZFrvivy1jsN14j8l96FLokT8cxb7T/lrfbG4LyCAAKuCxDorlfItfF97xqRLp2TH9VEPRnt+p+KfLS2cV+X/4fIZ/TWskks5qz2FXqpGgsCCCDgmQCB7lnBMh3uiIPTudb8T/oW+5/1xLdCy5dPFzn9tEJrmv/a7drnRL2JDAsCCCDgoQCB7mHRMhlyi5zIxXpknORi7pd+3fUik58v3MvZp4pccF7hdc191Zx097ubm9sK+yOAAAKZCRDomdF71vHhB4r00MehJrWsXCXyn98UeW1O4R7O1aPyixL6g2KJ3qP9av2svjZfuG9eRQABBDwQINA9KJITQzzxM8kNw1xffqV+Nl8szM1n5km9zW5m9Z3viyxdkdz8aBkBBBBIQYBATwHZ+y46tJP8IUNF33S3v2zYIPItvUHNy683bnsnPfnuh9eJ9N+z8Tpbr5jrzae/aqs12kEAAQQyEyDQM6P3qONDDpBcLpE418DWm8U8M70xhjkB71vfEOmwXeN1tl554EGeombLknYQQCBzAQI98xJ4MIB+fZMZ5B/+LDJ2Yv22zZPbvnmJyLHH1H/d9k/mJLgf/tJ2q7SHAAIIZCZAoGdG71HH3bvZH+xDY0VuvrN+uycfK3LuWSI77Vj/dds/LVqsN6z5nu1WaQ8BBBDIVIBAz5Tfk87bt7M70Fdn6X3Z9QYum5aTjtYg10egdu++6ZXk/mtuJXu1fi6/RB+9yoIAAggEJECgB1TMxKYyS09Ys/VUtVUfiXxbzyrvp5fAfe5EkZFHJfs5eUOU790g8upbDV/lZwQQQMB7AQLd+xKmMIEVFi/pev99kV/cKNKrVwoDb9DF7/5HZMKUBi/yIwIIIBCGAIEeRh2TncWKlfba33MPe21V0tK/HhL5v3sr2YNtEUAAAa8EWng1WgabjcDsudn0a6vXp58R+cEvbLVGOwgggICTAgS6k2VxbFBvzBX5+GPHBlXmcF7Qa9yv5oz2MrXYDAEEPBYg0D0uXmpDN/c4nzEzte6sdfTSy3pN+3dE1n9irUkaQgABBFwVINBdrYxr43pikmsjKj0ec2ncN/WWsms9fWeh9OxYiwACCDQSINAbkfBCQYHHPAr05/Txq5d9S+SjtQWnwosIIIBAiAIEeohVTWJOy/VM9/sfSKJlu20+/oTI178tslpvIMOCAAIIRCRAoEdU7GZP9Za/6ufR+qhTV5fb/yZy7Q9FampdHSHjQgABBBITINATow2w4QVLRW69zbmJ5Wtq6p7a9pv/dW5sDAgBBBBIS4BAT0s6lH5uuUvktdfdmY3e9CZ3+ZUiD4x3Z0yMBAEEEMhAgEDPAN3rLs3b2d/VW7euXJX9NN7Ue7JfcKnI8/ooVBYEEEAgcgECPfJfgKqmP1fvx/6Nq0TMk8uyWGr1jwrzefl5GubvfJDFCOgTAQQQcE6AQHeuJJ4MaMabIldeI7J4SboDnj9fL0n7hoj5vHyDfnbOggACCCCwUYBA5xehegHzVvfZ/6FPMJtYfRvl7mkeEPPr34mcOlpkmod3rSt3nmyHAAIIVCnA09aqhGO3fwusWC1yzQ9EDh+n139/TaRbN7s05m39e+8T+Yu+xb5qjd22aQ0BBBAISIBAD6iYmU5l0nMik84VOf9L+tn26OYPZdVHInffI3LX/SLmjwYWBBBAAIGSAgR6SR5WVizwJ735zMN6Cdm5Z+hR+2EiHTuU38RqDe6nntY/DPRr/FPl78eWCCCAAAJCoPNLYF/g/UV6o5dfarv6NWRvkQH9RXbfTaRL57q+zFnq5rK35ctFlujNaubOE5ltvt6zPxZaRAABBCIRINAjKXRm0zQnznGdeGb8dIwAAvEIcJZ7PLVmpggggAACAQsQ6AEXl6khgAACCMQjQKDHU2tmigACCCAQsACBHnBxmRoCCCCAQDwCBHo8tWamCCCAAAIBCxDoAReXqSGAAAIIxCNAoMdTa2aKAAIIIBCwAIEecHGZGgIIIIBAPAIEejy1ZqYIIIAAAgELEOgBF5epIYAAAgjEI0Cgx1NrZooAAgggELAAgR5wcZkaAggggEA8AgR6PLVmpggggAACAQsQ6AEXl6khgAACCMQjQKDHU2tmigACCCAQsACBHnBxmRoCCCCAQDwCBHo8tWamCCCAAAIBCxDoAReXqSGAAAIIxCNAoMdTa2aKAAIIIBCwAIEecHGZGgIIIIBAPAIEejy1ZqYIIIAAAgELEOgBF5epIYAAAgjEI0Cgx1NrZooAAgggELAAgR5wcZkaAggggEA8AgR6PLVmpggggAACAQsQ6AEXl6khgAACCMQjQKDHU2tmigACCCAQsACBHnBxmRoCCCCAQDwCBHo8tWamCCCAAAIBCxDoAReXqSGAAAIIxCNAoMdTa2aKAAIIIBCwAIEecHGZGgIIIIBAPAIEejy1ZqYIIIAAAgELEOgBF5epIYAAAgjEI0Cgx1NrZooAAgggELAAgR5wcZkaAggggEA8AgR6PLVmpggggAACAQsQ6AEXl6khgAACCMQjQKDHU2tmigACCCAQsACBHnBxmRoCCCCAQDwCBHo8tWamCCCAAAIBCxDoAReXqSGAAAIIxCNAoMdTa2aKAAIIIBCwAIEecHGZGgIIIIBAPAIEejy1ZqYIIIAAAgELEOgBF5epIYAAAgjEI0Cgx1NrZooAAgggELAAgR5wcZkaAggggEA8AgR6PLVmpggggAACAQsQ6AEXl6khgAACCMQjQKDHU2tmigACCCAQsACBHnBxmRoCCCCAQDwCBHo8tWamCCCAAAIBCxDoAReXqSGAAAIIxCNAoMdTa2aKAAIIIBCwAIEecHGZGgIIIIBAPAIEejy1ZqYIIIAAAgELEOgBF5epIYAAAgjEI0Cgx1NrZooAAgggELAAgR5wcZkaAggggEA8AgR6PLVmpggggAACAQsQ6AEXl6khgAACCMQjQKDHU2tmigACCCAQsACBHnBxmRoCCCCAQDwCBHo8tWamCCCAAAIBCxDoAReXqSGAAAIIxCNAoMdTa2aKAAIIIBCwAIEecHGZGgIIIIBAPAIEejy1ZqYIIIAAAgELEOgBF5epIYAAAgjEI0Cgx1NrZooAAgggELAAgR5wcZkaAggggEA8AgR6PLVmpggggAACAQsQ6AEXl6khgAACCMQj4G+g16xbF0+ZmCkCCCCAQCoCHmeLv4G+WD5Mpbh0ggACCCAQj4DH2eJtoOfmPsERejz/F2OmCCCAQPICtfmPfc4WbwN9Y2Xz+XnJV5geEEAAAQSiEMjJAp/n6Xegt8i95jM+Y0cAAQQQcEjA80zxO9BFCHSH/r/AUBBAAAHPBbzOFL8DPS8vev7Lw/ARQAABBFwR8DxT/A50afmEK78HjAMBBBBAwHcBvzMl5zt//qCRcyWX6+37PBg/AggggECGArn867kp4/fMcATN7trzI3Sdf4vcfc1WoAEEEEAAgcgFcmN9B/A/0NduuMX3IjB+BBBAAIGMBQLIEu8DPffiEy+KvlWS8a8C3SOAAAII+Cpg3m43WeL54n2gb/Svld97XgeGjwACCCCQlUAgGRJGoC/85PeSk/lZ/S7QLwIIIICApwI5+UBMhgSwBBHoG++9m6/5VQD1YAoIIIAAAmkK1OR/4vP927ekCiLQN06oZ+ef81n6lqXlewQQQACBkgL5/JsydflvSm7j0cpgAj13993rRXIXemTPUBFAAAEEshTYkD8vJ9M2ZDkEm30HE+gGJTfl0YmSz/+vTSDaQgABBBAIUKC29k+5Fx6bFNLMggr0jYX5pO2lIvkZIRWJuSCAAAIIWBTIy0xpuf1lFlt0oinvb/1aSDF/4IiBkmv5jN4Stk2h9byGAAIIIBCpQD6/TvI1Q3NTJ7wUmkB4R+haoY2F2lBzsr79vi60gjEfBBBAAIEqBWrzH+vB3okhhrkRCTLQzcRyL0x4ROpCfY35mQUBBBBAIGKBfH6N5FqcmHvmkfGhKgT5lvuWxcoPHrG/bNXyYX2Iyw5bvs73CCCAAAKRCNTmF8snNcfpgd60kGccfKCb4uX3PnIXadfiUf1MvW/IxWRuCCCAAAINBPL5ObK69ujcjMffbrAmuB+jCHRTtfyAg7eXbds/oN8eElwVmRACCCCAQCGBp2XVRyfmZk5ZVmhlaK9FE+ibCpc/6Ji/6B3lztn0M/9FAAEEEAhQIJ+7NffsuHMDnFnRKQV7UlyxGW8scIvccMnXBnfJQrE58zoCCCAQjYD5t13/jY8tzE19oztC3/KXOn/Q0Wfref5XSV722vJ1vkcAAQQQ8EwgJ69KPvfD3DPjbvds5NaGG3Wgb1LMHzTys3rN+nnSosWJm17jvwgggAACPgjk/6UHZX/KPTv+fh9Gm+QYCfQtdPP7HNZJ2rU9VcN9lL48XM+K77LFar5FAAEEEMhaIJ9fokOYqP8+j5XVa+/NvTJ5edZDcqV/Ar1EJfIHjBggrbbaT2pr++sNCfrrX4G9NOxNyHfRX6Z2JXZlFQIIIIBAtQL5/GrddYn+O6tf8o6e8zRL30GdJRs+mZ57bsLMapsNfb//DwIfBeAbAeL/AAAAAElFTkSuQmCC"},38347:function(xn){"use strict";xn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAyKADAAQAAAABAAAAyAAAAACbWz2VAAAW0ElEQVR4Ae1d7W8cSV6u7hnHsRM7cV42TmLHduJ4Yjvju9N+OFg4dBJIdyuxfNg77x0SCHaFhBAfkE4n8QHB3v4DK4EAsbCX5VjQanMHQsDpPh4IEKDdbF7tvDkvTrJ7Sey8J+t47enm9xu7vONO93RVd3XPdM9Tkt3T1VXVVU/101W/l6q2BELTILB98gd7O2wxIdxK2RbuRMWyywXXnYhSwWtHX7Oi5EOe9QgU15/iLBUEJt/sGHS2TiwXRdkmAriuXbYsJkJlm3BlDSxB5JAnODYIARAkYeAPTL47/Kn9dKLNFUSEAhGBRgghhp2CEHb1+bcEkSPhWqD4qAiAIFGR8+Trm3yb3v40ChSKZT4SEcr03I8uiaXuNpfYQIHiEDKGAAgSocP6vvE3E6LYRkRwJgquKLuWGKViBgUTQE6LMChEQLb5soAgdfrEKzSTfDBGE6ISEaKTyFHNSb8RcowACMKd6xGaaWo05lpWiYTmvlqhmUcIDAw5ZoNP01qOILVCsxCFsQoRgbRFJRKa26XQjFHB50lp0ajcEqRWaC467mF66EuucEskNPdKoZn7HKrUFn3yFZudC4KsCc3CPVxwHSKCVSIJoWSTKYGFZmdNTlj7oQgPkrU6ApkiiBSaHbF8uE3YJZemRnaVDO7ONaG5qkoiG0Or9yzabwSB5iRIjdBMAnOJ3vv059LIUBlhKZlIQYcVcdmB2GzkQUAh/gg0nCCfC80FIoAgzdEKIUho7lkRmlcqTtMm/xYgFggkiEBqBJFCs10gIlRHBVajVoXmA1JoBgUS7GkUHQmBRAjCQrNdsA/x1IhHBde1SuRmMUKDQDfPiFaIsDJFilRrZAICKSEQiyAsNLdbldG2qnzAQjNpjvi3JQa4/pIC8EFKqTdxG+MIqBGEhOY99tbRDa5N6tNKVWhmA5vtVlhm6FyRD+g/DQ2SFMZrigKBQAMQeIYguyb/bqhDfLZiRyBVqmO5RAKLtUd9jmD/I9YgSVftBtQYtwQCKSJg7Zt85zfJmlai1Ws0PXKqxKD7b0ixDrhVIghU3kik2BiF2m7BqVgOvWULZLut8HvWcVzLKVj05iW9/TI9gAU6p5kInbsuX7NW45YsWk3D52T3dWyL3tV03XacIsVRSZRn5bpjV6jMoiPo3HKdavqK3eYUnSXXonyLlJ7W5lSv08W5bmfx6tQPf/9xULOsfa8cwawoCB3EtwYCrnuZ5IOpoiX++vL7r/1bbaNhcK5FA79bEwHL2k8Nf2nZFf9KA8a/1IIAgtSigd9AgIgy8Mr3z0sgQBCJBI5AYBUB0seO9E8e+RafQgbBYwEE/BF41GaLcYwg/uAgFgh0kUzyu8/YQYBLPhD4zje/lI+GpNCKN3903PcupCjeDoL4QpP9yD+Y/GL2G5FSC4IIQn4h2zHFSqkTcJtMItADgmSy31DpNBAg10KS0xGAABDwRYDdb0EQX2gQCQQIAZc8FAEEEAACAQiQdyMIEoANooEADSEgCB4DIBCEALnbgyBB4CAeCNA6FRAEjwEQqIcAZJB66OBaSyNAyw4xgrT0E4DG10fAgpBeHyBcbWkEiB8YQVr6CUDjQxDACBICEC63MgK0EaIFd/ecPgH/N30zpy3zb9aXx3r9L8SIpe/LgCAx8GvqrK+88ZOmrp/Jyh19/UWTxa2VRfthQQZZQwM/gIAHAdqkDgTxYIJTILCGAG3CDoKsoYEfQMCDAKZYHkBwCgTWIUC7NsDVZB0iOAECnyNQsGAo/BwN/AICPghgBPEBBVFAgBGg7zRgioVHAQgEIcBaLFjSg9DJeHxSxrOMw6JVfbaDgCBakGUncRKuF9lpvbGaYoplDEoUlDsE6DtxIEjuehUNMoZAAa4mxrBEQblEAIbCXHYrGmUGAawoNIMjSskpApBBctqxaJYxBCCkG4MSBeUPATgr5q9P0SJzCJCrIkYQc3CipLwh4NLm1bCk561XV9uDTRvMdCwIYgbHpisFmzbE7xKH1oOAIBFw/Ep5j+jq2CA2d7atHbvpvKuT44qrcXTe0baaho8bxMt/9GNxbOZ2hDsiSyMQsEhIB0EiIP/Sz+8X3/rlg1o5z1+7J6av3dXKg8SNRYA+4pldgnS2F8UvjO+uvpm7q2/uNiHf4l38Zqe4lb+V3/y253Rf++4/i3PX78VCfqC3Szv/OSLIwmfL2vmQoaEIZJcgY/t6xNt/+Cva6I30bY1FkLZiQUQliHZlkaGhCBgdQb7zzS+Jzo1tomNjUWxq52Nh9cjnxWp8Z038d//yv8Q//udMZABK+7ZFyjvS3yPE/1yJlJcz7e/tFru3b9LOf4FGEIRsIcDb/hiTQT44d0v8/R9/TRmB/bu7ldP6JSzRCBIlHKQRJE4YjDC9mn/wVJyF/BEH9gblNbiryYcX9LQzgw0iyEj/VvpuEA2eEcPAri3aOaeu3hEf33minQ8ZGo2AQXd3XQE0zgiyu6dTlHiqFCHs37NFjEWcnvHtoowgrMFCyCQC5qZY3PyTM3PiC8M7lZAYohFkR/dGMf/wqVL62kQ8verpaq+N0vrNgvrU7B2tPDJxFAH9wmz6BJl9/1VZZRwjImB88+oPzqlPszpIoB/pizYKHIoof0iceJoVJfDUbIhGIN1wFiOILmRNkb5iek36hySo64QoDxuXX+qPpsGSdRuOKKgPkQZr7w49DdZ5Gj0goEvks3WkXRXNevOevDSvhUBUOeTQvmgjgKwcjyA2fT5IN0SRP05dviMq9C0vhAwiYHo9yCd39TQ1UQgysnerKA3EG0EGaSQY37ddu8cGI2iw2IKOkFEEaEptfG/eSx8/UEYjiqqXBfRChLe/t1JR5JAoAvp52D+80Gfp3OwUi1uuI6hLTZYOYociqne994hCEN0p1pOFJcgfXuCzdZ4EQdS/rspaIV1N1khMDZbsH1b16oZDmvaT4xfnIqmxdeuF9EkhYNCSLqt4VlPnr/OgdpBP12hM+UPW8yCNRIWC+gxz33Ndond7p8yudDxBdiGE7CJg0ZJb9SdEsZ26BrhhDZvEGKl3+5/brFiT+sm4nHGNEWFwVzQX9/q1wNVmRiCxbxTevPupcrsPaBjeojooBlVmVGO6NtirbyCEi0kQ8pmJN+tqIpvNnr0vvTAkT+seWVBXDSoEYc/ZHVs2KhXJ0yzVoKvBmr35UFz4+L5q8cbTYdMGI5AmQ5CTF+eVCcJrK1R9slRcTM7N3hW/OLFHCR0dTdZBjakg35wF9EYGbNpgBH3zMghXa1rTEVBFk9W7tVMcUhDQdZQEvDakqCioj2rIK4zBCXpJIGQegaQIorc5gYomi6dXWzdvCEX8LI0gqmEP+VWND4Rb1HmUe66nQ7XYajpeA4KQbQScJLRYDMm9x4vi8aefKaOjoslStUHounaMDYTLIUO71OUkbnSl4gjdeiiDhYSpIWDT0jrjal5Zex2LusoIoiJ/LNKuIaxmfvBkSVYj9Fhdox6Sin23dMLxmXnxcEH9BaFTNtKmh4Dx9SC1VdeZYgwrrAsZVXjTT19dcQzU8X9SEdQP7NVT8Z5osIBe2w/4HR0B/gx0YiPI2avqssD27naxrStYNXtwD3vwhk+Fzq1a8XXkEBbUeSufekFl9KrN32gNVm1d8DsOAgl488rqTGkIy5znQB17CAvotsJGC3JhkiSKrEu9465tnSSo13efV9Ge1d7j1GVosGrxyO7vBLcevUKGMpcWCqnuILJ/9xbxQcDOKKpv8LOr6mW2heiEMSLIiUv+doudWzqUDY98z1vkRXDt9iOd2yeS9oWx3YmU22KFJmMolCB+dGFePF9S3MShjsvJIYXpFd9zanWKdfLKvHhKAvvGDWrbftWz0PMyW53QLNOr917/uk61kdYHAVpzmpwMwvfTeZMHuZzwQ65ipJu5cV88ebqivao4Lt1b3c2jnqCuu6gLHrw+T1pGoxJzVpR4TGsI6kHLb0dp/XmfggfvtGdapUPOg6RF29DmL6irkFO2l4/NMoLU1gm/IyOQ7Aiio00a2uM/lRlVXDvuJaPOVjs7t24MtKjrrj85BhVv5KexCTMmS5DTGj5ZrGr1U/WquqR7yXia5BCdEGRRV1Evy/ucuXJHLC1X5CmOOUAgMTsIY/PZUkXobOLAnzTwBtUdTLyqXd5uxyFZRDX4TaV6NrN9Rn0HxxMX/DVhqnVAuuZDIFGCcHOnNZz2vG4fu0jFemggfO04q1Zv3l+/SIvf5DrTLL+17rqLpI4FqKmbr9tRI1UEEifI6cvqNolBsoXUBp7ebNkU/gb3Tq9kGbyroWpgf7AOj1pYdXon7wGCSCTyc0ycIGc0ZIH9HkE9qoAuu4dlAtXQQ+4uXn+vevYRb7lz9xfEbBMYCL31wnk8BBInyJSGqtdrC1HVIHk1WBISHXJynjGPxkz1/pz3I8gfDEPuQuIEuf9kUfD6bJXQt3P9jiWjCvIHlxvk98WCuk7wjiAq8o8sHwK6RCJfRzVfjJhtPk0P6oCiywZ/mfYRLbYaJnlE5TuEC2Q9v/yzB7415I/6sIVddTf3Wo3ZZvrGuYr8I2987ILezvYyX1LHP/3hiaSKbrpyf268V3x5rDeReqVCEJYFflVxl5NxUvX+L+2KwtMbBQfeNf+rIHSm6N6qBBnp3yL489KfLi7Tjo/h2jN5T16o9cFF9W+jyHxJHt/80fEki2+qso+Ov5hYfRKfYnHNz2hMdUZX14irOigGyR8SsTNX1LVoPGJIucMrj8jy/I68UEvH5uJXBuKaE4FUCKKzP5R8QP0Md34Qhi3M0hfUV9aGeOURv3vLuOPYYlRCkbtjKgS5dY/WSNxSWyPB+0+x46DqCBKmymX5RydIgtbKI2H5P4KBMAyizF5PhSCMTtiDLBFkVS9vxbPXo9GS12uPy7R7yKkQO8sjEuIvkqCuGiQxdTRYIIgqutlLlxpBphTf5Pz12iDHQS+8qlb64xo2ihFyr99EHxjt6gjfg4vrc5G2F8U30L09k5/z1Ahy/rq624eq/HEqYJmst3t01mgwMfycJr1lyvMwGUimwzGbCKRGkAs3/G0VfrCpupifpP2nVIKuj5TUpKmUfXJGT8ZRKRNpmgeB1Agye/uhuDH3WKnlUg4IS3xK8au652/cE480NnLT0WDpki+sTbjeXAikYiiUTWZ7iNedRF6rPXaTNT0ssHPgxU/Uhe8TtIHEV76gtuu76jY/t+4tiOMzzWUglLjNvv+q/IljDARSG0G4jt514zHqLXQ/TqOjaVL9DvtZjbUucdqKvI1DIFWCXNJQt4ZBomvfUJ2O8X07SYulEsKs+CplIE1zI5AqQS5qfEM9DDadB57L0lldGHZveV23DjIfjtlBIFWCsMvJJ/NPjKBzXFHFK2/28Z3HWgZDmS/ouEAOjR/Cgh4ET27iUyUIb0WqalGvh/DF6/fFz+7oE03HYFjv/nyNHRTnHiyEJcP1jCOQKkEYK16fETecu6buoVt7LxPklOXpfmZO5sMxWwikTxADckhUeSIqsfy6FBZ0P1TyF9cAgsQfQaYV/bq83cWfRdMxGHrz155DQK9FI7+/UycIC+o376zfw0oH3ge0xv24ogXdW+4DWsrLBsO4gb2DT8MGEhfGTORPnSCs/bmg4bjoRfH8tfuCN4KIGkzYLkyUEbX+yJcuAqm6msimsT3kl764V55qHXU2g/MrWMer2C8/x8lvIQZdb4Z4bNpgphcaQpBLNM2KGuRn1qLmN/F55umr8adpUeuvmg+bNqgiVT9d6lMsrk4cVW98gtyNZTC8SfsA6+63Vb8LcLWZEWgIQVhQn3/wVBuX2ZuPxGmN7UT9blAhY6Wuo2NtOazejSMD1ZaF382PQEMIcu/xIn0W4b6YpoedN3O492hR8PrysMB2jKXl8HRh5cSRQyCgh6Gbr+sNkUEYwlfe+MkzSHbTcteuzjaxmY6b6dhFuxvyEljebZF3OuQ/EyHOCGLSZd9EW1BGsgg0jCB+zXpIq/74Twh9Pyu/8oLiWFA/dv624A0iero2Vo9BaWvjT126I6Zg/6iFJPe/m4ogaaHNnyl4+U9+vO52A7u6xQB9LLSfjru2dqy7dvryvDhPDpLX5tT29lqXGSeZRqAlCeLXY7O3Hgr+E6c/8buMuBZFoCFCeotijWZnEAGMIBnsNJUqY9MGFZTC02AECccIKVoYARCkhTsfTQ9HAAQJxwgpWhgBEKSFOx9ND0cABAnHCClaGAEQpIU7H00PRwAECccIKVoYARCkhTsfTQ9HAAQJxwgpWhgBEKSFOx9ND0cAribhGGUyBTZtMNNtIIgZHJuuFGzaYKZLMMUygyNKySkCIEhOOxbNMoMACGIGR5SSUwRAkJx2LJplBgEQxAyOKCWnCIAgOe1YNMsMAiCIGRxRSk4RgB0kpx37wtjunLYs3WaBIOnindrd3nv966ndK883whQrz72LtsVGAASJDSEKyDMCIEieexdti40ACBIbQhSQZwRAkDz3LtoWGwEQJDaEKCDPCIAgee5dtC02AiBIbAhRQJ4RAEHy3LtoW1wEHBAkLoTIn2cEFkCQPHcv2hYXARAkLoLIn2sEQJBcdy8aFwsB2xVPMcWKBSEy5xmBinAxguS5g9G2eAjYwgJB4kGI3HlGwAFB8ty9aFtsBCz3MlYUxkaxOQtopb15E+sBV4AgiYHb4IJbaW/eBKGegRYrQXRRdKYRmG+vbPhvECTTfYjKJ4WAK+y/nfmn37gBgiSFMMrNMgLLwlr+ATcABMlyN6LuSSBwybHE711//3fOcOHQYiUBMcrMGgK3LOH+1BH2f1w/+upf1Va+6Frizy1hjTjCLZHvyUDtRfzOLgKua/17dmtvvuYFSyxVLHfOcq3brhBzNDLMLfOxYF++8t5vnQq6o7V24bff2Ti04JQqwh5x3UrJEnZJEHGIWSUqcMtaOvzIBALXjr72ed9mosbNWclQEAcn/6K3YrWPFEWhtExkoQyrpLFGmrNJqBUjAIKYeQ5CCRJ0mz2T75baRaW0RH8Fy6JRx6mOOjRley4oD+LTQwAEMYN1ZIL43f75l97qvLWprey6bqlI0zPXtUu2cEoOjTqUvt0vD+KSQQAEMYOrUYIEVWnHt9/bs9l5VF622kaEK4g0VbmGpmpiX1AexMdDAASJh5/MnQpB5M28x32TR8aEZR+2aJpGioCqUoDS0FF0e9PiXA8BEEQPr6DUDSWIX6VKv/b9rqedVtmuiMOsehaiQCMNTdMscdAvPeL8EQBB/HHRjW06ggQ14MC3j/QvOlZZCPfwilLAZdmGpmtiZ1CeVo4HQcz0fmYIEtTcvsl3ygUhysJyxsnBjEYch/5sUgq4G4LytEI8CGKmlzNPED8Ynp98a8s9USw/td2JNtcaZ8WAS6poStvvlz6PcSCImV7NJUGCoBl6+R8GrLbF8rIrymSvOVwh9XORyEPpu4LyZDUeBDHTcy1FEF/Ivvc9e+hsf7nikmKApmqusGiqxsoBMeybPiORIIiZjgJBAnDsm3x7G8ky5TYizZItyjZP1VaIsyMgS1NFgyBmugME0cRx5BtH9i8USSngOmXygi6Td+g4TddYviEuNU8AQcz0BQhiAMevfvWnxSu918qWU5kguYbIQ8Sx3DEqus9A8ZGKAEEiwfZMJhDkGUjMRXT9+ls7tlWKLNeUC647UbGIPMJi4mw2dxf/kkAQf1x0Y0EQXcQMpD8w+e7wonDKtu3SaCNoqlaZIBLxNM1YAEHMQAmCmMExdinDL/5Zu9O5qbxUJG+BKml4tKn+7YpSOAgSBbVn8/w/X3ocIiWuzzoAAAAASUVORK5CYII="},48136:function(xn,Yt,x){"use strict";var ge=Object.defineProperty,de=Object.defineProperties,Q=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,B=(e,t,r)=>t in e?ge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f=(e,t)=>{for(var r in t||(t={}))ie.call(t,r)&&B(e,r,t[r]);if(Oe)for(var r of Oe(t))W.call(t,r)&&B(e,r,t[r]);return e},E=(e,t)=>de(e,Q(t)),h=e=>typeof e=="symbol"?e:e+"",$=(e,t)=>{var r={};for(var n in e)ie.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Oe)for(var n of Oe(e))t.indexOf(n)<0&&W.call(e,n)&&(r[n]=e[n]);return r};function S(e){return Array.isArray(e)}var _={en:{"keyboard.tooltip.symbols":"\u7B26\u53F7","keyboard.tooltip.greek":"\u5E0C\u814A\u5B57\u6BCD","keyboard.tooltip.numeric":"\u6570\u5B57","keyboard.tooltip.alphabetic":"\u7F57\u9A6C\u5B57\u6BCD","tooltip.cut to clipboard":"\u526A\u5207\u5230\u526A\u8D34\u677F","tooltip.copy to clipboard":"\u590D\u5236\u5230\u526A\u8D34\u677F","tooltip.paste from clipboard":"\u7C98\u8D34","tooltip.redo":"\u91CD\u505A","tooltip.toggle virtual keyboard":"\u5207\u6362\u865A\u62DF\u952E\u76D8","tooltip.undo":"\u64A4\u6D88","menu.insert matrix":"\u63D2\u5165\u77E9\u9635","menu.borders":"\u77E9\u9635\u5206\u9694\u7B26","menu.array.add row above":"\u5728\u540E\u9762\u6DFB\u52A0\u884C","menu.array.add row below":"\u5728\u524D\u9762\u6DFB\u52A0\u884C","menu.array.add column after":"\u5728\u540E\u9762\u6DFB\u52A0\u5217r","menu.array.add column before":"\u5728\u524D\u9762\u6DFB\u52A0\u5217","menu.array.delete row":"\u5220\u9664\u884C","menu.array.delete rows":"\u5220\u9664\u9009\u5B9A\u884C","menu.array.delete column":"\u5220\u9664\u5217","menu.array.delete columns":"\u5220\u9664\u9009\u5B9A\u7684\u5217","menu.mode":"\u6A21\u5F0F","menu.mode-math":"\u6570\u5B66","menu.mode-text":"\u6587\u672C","menu.mode-latex":"LaTeX","tooltip.blackboard":"\u9ED1\u677F","tooltip.bold":"\u7C97\u4F53","tooltip.italic":"\u659C\u4F53","tooltip.fraktur":"Fraktur","tooltip.script":"\u811A\u672C","tooltip.caligraphic":"\u8349\u4E66","tooltip.typewriter":"\u6253\u5B57\u673A","tooltip.roman-upright":"\u7F57\u9A6C\u76F4\u7ACB","tooltip.row-by-col":"%@ \xD7 %@","menu.font-style":"\u5B57\u4F53\u6837\u5F0F","menu.accent":"\u91CD\u97F3","menu.decoration":"\u88C5\u9970","menu.color":"\u989C\u8272","menu.background-color":"\u80CC\u666F","menu.evaluate":"\u8BA1\u7B97","menu.simplify":"\u7B80\u5316","menu.solve":"\u6C42\u89E3","menu.solve-for":"\u6C42\u89E3 %@","menu.cut":"\u526A\u5207","menu.copy":"\u590D\u5236","menu.copy-as-latex":"\u590D\u5236\u4E3A LaTeX","menu.copy-as-ascii-math":"\u590D\u5236\u4E3A ASCII Math","menu.copy-as-mathml":"\u590D\u5236\u4E3A MathML","menu.paste":"\u7C98\u8D34","menu.select-all":"\u5168\u9009","color.red":"\u7EA2\u8272","color.orange":"\u6A59\u8272","color.yellow":"\u9EC4\u8272","color.lime":"\u7EFF\u9EC4\u8272","color.green":"\u7EFF\u8272","color.teal":"\u9752\u8272","color.cyan":"\u84DD\u7EFF\u8272","color.blue":"\u84DD\u8272","color.indigo":"\u975B\u84DD\u8272","color.purple":"\u7D2B\u8272","color.magenta":"\u6D0B\u7EA2\u8272","color.black":"\u9ED1\u8272","color.dark-grey":"\u6DF1\u7070\u8272","color.grey":"\u7070\u8272","color.light-grey":"\u6D45\u7070\u8272","color.white":"\u767D\u8272"}};function N(){return"window"in globalThis&&"document"in globalThis}function R(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function I(){return typeof navigator.vibrate=="function"}function J(){var e,t;if(!N())return"other";const r=(t=(e=navigator.userAgentData)==null?void 0:e.platform)!=null?t:navigator.platform;return/^mac/i.test(r)?navigator.maxTouchPoints===5?"ios":"macos":/^win/i.test(r)?"windows":/android/i.test(navigator.userAgent)?"android":/iphone|ipod|ipad/i.test(navigator.userAgent)?"ios":/\bcros\b/i.test(navigator.userAgent)?"chromeos":"other"}function K(){if(!N())return!0;if(/firefox/i.test(navigator.userAgent)){const e=navigator.userAgent.match(/firefox\/(\d+)/i);return e?parseInt(e[1])>=78:!1}if(/trident/i.test(navigator.userAgent))return!1;if(/edge/i.test(navigator.userAgent)){const e=navigator.userAgent.match(/edg\/(\d+)/i);return e?parseInt(e[1])>=79:!1}return!0}function se(){return HTMLElement.prototype.hasOwnProperty("popover")}var te={strings:_,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return te._locale||(te._locale=N()?navigator.language.slice(0,5):"en-US"),te._locale},set locale(e){te._locale=e,te._numberFormatter=void 0,te.dirty=!0},get numberFormatter(){return te._numberFormatter||(te._numberFormatter=new Intl.NumberFormat(te.locale)),te._numberFormatter},merge(e,t){if(typeof e=="string"&&t)te.strings[e]=f(f({},te.strings[e]),t),te.dirty=!0;else for(const r of Object.keys(e))te.merge(r,e[r])},get dirty(){return te._dirty},set dirty(e){te._dirty||te._dirty===e||(te._dirty=!0,setTimeout(()=>{te._dirty=!1,this._subscribers.forEach(t=>t==null?void 0:t())},0))},subscribe(e){return te._subscribers.push(e),te._subscribers.length-1},unsubscribe(e){e<0||e>=te._subscribers.length||(te._subscribers[e]=void 0)},update(e){let t=e.querySelectorAll("[data-l10n-tooltip]");for(const r of t){const n=r.getAttribute("data-l10n-tooltip");if(n){const i=G(n);i&&r.setAttribute("data-tooltip",i)}}t=e.querySelectorAll("[data-l10n-arial-label]");for(const r of t){const n=r.getAttribute("data-l10n-arial-label");if(n){const i=G(n);i&&r.setAttribute("aria-label",i)}}}};function G(e,...t){if(e===void 0)return;let r="";const n=te.locale;te.strings[n]&&(r=te.strings[n][e]);const i=n.slice(0,2);if(!r&&te.strings[i]&&(r=te.strings[i][e]),r||(r=te.strings.en[e]),!r)return;const s=/(%@|%([0-9]+)\$@)/g;let A=s.exec(r),M=0;for(;A;){if(t[M++]){const X=A[2]?parseInt(A[2],10)-1:M-1;let ue=t[X];typeof ue=="number"&&(ue=te.numberFormatter.format(ue)),r=r.replace(A[1],ue)}A=s.exec(r)}return r=r.replace(/%%/g,"%"),r}var V={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},j={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},le={red:"#fbbbb6",orange:"#ffe0c2",yellow:"#fff1c2",lime:"#d0e8b9",green:"#bceac4",teal:"#b9f1f1",cyan:"#b8e5c9",blue:"#b6d9fb",indigo:"#d1c2f0",purple:"#e3baf8",magenta:"#f9c8e0",black:"#353535","dark-grey":"#8C8C8C",grey:"#D0D0D0","light-grey":"#F0F0F0",white:"#ffffff"},he={red:"#d7170b",orange:"#fe8a2b",yellow:"#ffc02b",lime:"#63b215",green:"#21ba3a",teal:"#17cfcf",cyan:"#13a7ec",blue:"#0d80f2",indigo:"#63c",purple:"#a219e6",magenta:"#eb4799",black:"#000","dark-grey":"#666",grey:"#A6A6A6","light-grey":"#d4d5d2",white:"#ffffff"},Ne={Red:"red",Orange:"orange",Yellow:"yellow",LimeGreen:"lime",Green:"green",TealBlue:"teal",Blue:"blue",Violet:"indigo",Purple:"purple",Magenta:"magenta",Black:"black",Gray:"grey",White:"white"},Be={Apricot:"#FBB982",Aquamarine:"#00B5BE",Bittersweet:"#C04F17",Black:"#221E1F",Blue:"#2D2F92",BlueGreen:"#00B3B8",BlueViolet:"#473992",BrickRed:"#B6321C",Brown:"#792500",BurntOrange:"#F7921D",CadetBlue:"#74729A",CarnationPink:"#F282B4",Cerulean:"#00A2E3",CornflowerBlue:"#41B0E4",Cyan:"#00AEEF",Dandelion:"#FDBC42",DarkOrchid:"#A4538A",Emerald:"#00A99D",ForestGreen:"#009B55",Fuchsia:"#8C368C",Goldenrod:"#FFDF42",Gray:"#949698",Green:"#00A64F",GreenYellow:"#DFE674",JungleGreen:"#00A99A",Lavender:"#F49EC4",Limegreen:"#8DC73E",Magenta:"#EC008C",Mahogany:"#A9341F",Maroon:"#AF3235",Melon:"#F89E7B",MidnightBlue:"#006795",Mulberry:"#A93C93",NavyBlue:"#006EB8",OliveGreen:"#3C8031",Orange:"#F58137",OrangeRed:"#ED135A",Orchid:"#AF72B0",Peach:"#F7965A",Periwinkle:"#7977B8",PineGreen:"#008B72",Plum:"#92268F",ProcessBlue:"#00B0F0",Purple:"#99479B",RawSienna:"#974006",Red:"#ED1B23",RedOrange:"#F26035",RedViolet:"#A1246B",Rhodamine:"#EF559F",RoyalBlue:"#0071BC",RoyalPurple:"#613F99",RubineRed:"#ED017D",Salmon:"#F69289",SeaGreen:"#3FBC9D",Sepia:"#671800",SkyBlue:"#46C5DD",SpringGreen:"#C6DC67",Tan:"#DA9D76",TealBlue:"#00AEB3",Thistle:"#D883B7",Turquoise:"#00B4CE",Violet:"#58429B",VioletRed:"#EF58A0",White:"#FFFFFF",WildStrawberry:"#EE2967",Yellow:"#FFF200",YellowGreen:"#98CC70",YellowOrange:"#FAA21A"};function je(e){var t,r,n,i,s,A;const M=e.split("!");let z,X,ue,Ke=255,ft=255,Ft=255,Nt=-1;const Er=M.length>0&&M[0].startsWith("-");Er&&(M[0]=M[0].slice(1));for(let Fn=0;Fn<M.length;Fn++){z=Ke,X=ft,ue=Ft;const xr=(t=M[Fn].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:t[1],nn=xr==null?void 0:xr.toLowerCase(),Rn=xr&&(A=(s=(i=(n=(r=he[nn])!=null?r:he[Ne[xr]])!=null?n:j[xr])!=null?i:Be[xr])!=null?s:V[xr])!=null?A:M[Fn].trim();let pn=Rn.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(pn!=null&&pn[1]&&pn[2]&&pn[3])Ke=Math.max(0,Math.min(255,Number.parseInt(pn[1],16))),ft=Math.max(0,Math.min(255,Number.parseInt(pn[2],16))),Ft=Math.max(0,Math.min(255,Number.parseInt(pn[3],16)));else if(pn=Rn.match(/^#([\da-f]{3})$/i),pn!=null&&pn[1]){const Si=Number.parseInt(pn[1][0],16),zi=Number.parseInt(pn[1][1],16),Ui=Number.parseInt(pn[1][2],16);Ke=Math.max(0,Math.min(255,Si*16+Si)),ft=Math.max(0,Math.min(255,zi*16+zi)),Ft=Math.max(0,Math.min(255,Ui*16+Ui))}else if(pn=Rn.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),pn!=null&&pn[1]&&pn[2]&&pn[3])Ke=Math.max(0,Math.min(255,Number.parseInt(pn[1]))),ft=Math.max(0,Math.min(255,Number.parseInt(pn[2]))),Ft=Math.max(0,Math.min(255,Number.parseInt(pn[3])));else return;Nt>=0&&(Ke=(1-Nt)*Ke+Nt*z,ft=(1-Nt)*ft+Nt*X,Ft=(1-Nt)*Ft+Nt*ue,Nt=-1),Fn+1<M.length&&(Nt=Math.max(0,Math.min(100,Number.parseInt(M[++Fn])))/100)}return Nt>=0&&(Ke=Nt*Ke+(1-Nt)*z,ft=Nt*ft+(1-Nt)*X,Ft=Nt*Ft+(1-Nt)*ue),Er&&(Ke=255-Ke,ft=255-ft,Ft=255-Ft),"#"+("00"+Math.round(Ke).toString(16)).slice(-2)+("00"+Math.round(ft).toString(16)).slice(-2)+("00"+Math.round(Ft).toString(16)).slice(-2)}function q(e){var t,r;return e=e.trim(),(r=(t=le[e.toLowerCase()])!=null?t:le[Ne[e]])!=null?r:je(e)}function ce(e){if(!e||e[0]!=="#")return;e=e.slice(1);let t;return e.length<=4?(t={r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16)},e.length===4&&(t.a=parseInt(e[3]+e[3],16)/255)):(t={r:parseInt(e[0]+e[1],16),g:parseInt(e[2]+e[3],16),b:parseInt(e[4]+e[5],16)},e.length===8&&(t.a=parseInt(e[6]+e[7],16)/255)),t&&t.a===void 0&&(t.a=1),t}function D(e,t,r){return r<0&&(r+=6),r>=6&&(r-=6),r<1?(t-e)*r+e:r<3?t:r<4?(t-e)*(4-r)+e:e}function ot(e){let[t,r,n]=[e.h,e.s,e.l];t=(t+360)%360/60,n=Math.max(0,Math.min(n,1)),r=Math.max(0,Math.min(r,1));const i=n<=.5?n*(r+1):n+r-n*r,s=n*2-i;return{r:Math.round(255*D(s,i,t+2)),g:Math.round(255*D(s,i,t)),b:Math.round(255*D(s,i,t-2))}}function ke(e){return e<0?0:e>255?255:Math.round(e)}function Ce(e){const{r:t,g:r,b:n}=e;let i=((1<<24)+(ke(t)<<16)+(ke(r)<<8)+ke(n)).toString(16).slice(1);return i[0]===i[1]&&i[2]===i[3]&&i[4]===i[5]&&i[6]===i[7]&&(i=i[0]+i[2]+i[4]),"#"+i}function Qe(e){let{r:t,g:r,b:n}=e;t=t/255,r=r/255,n=n/255;const i=Math.min(t,r,n),s=Math.max(t,r,n),A=s-i;let M,z;s===i?M=0:t===s?M=(r-n)/A:r===s?M=2+(n-t)/A:n===s&&(M=4+(t-r)/A),M=Math.min(M*60,360),M<0&&(M+=360);const X=(i+s)/2;return s===i?z=0:X<=.5?z=A/(s+i):z=A/(2-s-i),{h:M,s:z,l:X}}function ve(e){let t=ce(e);if(!t)return e;let{h:r,s:n,l:i}=Qe(t);return n+=.1,i-=.1,Ce(ot({h:r,s:n,l:i}))}var Pe={60:"\\lt",62:"\\gt",111:"o",38:"\\&",123:"\\lbrace",125:"\\rbrace",91:"\\lbrack",93:"\\rbrack",58:"\\colon",160:"~",172:"\\neg",183:"\\cdot",188:"\\frac{1}{4}",189:"\\frac{1}{2}",190:"\\frac{3}{4}",8304:"^{0}",8305:"^{i}",185:"^{1}",178:"^{2}",179:"^{3}",8224:"\\dagger",8225:"\\ddagger",8230:"\\ldots",8308:"^{4}",8309:"^{5}",8310:"^{6}",8311:"^{7}",8312:"^{8}",8313:"^{9}",8314:"^{+}",8315:"^{-}",8316:"^{=}",8319:"^{n}",8320:"_{0}",8321:"_{1}",8322:"_{2}",8323:"_{3}",8324:"_{4}",8325:"_{5}",8326:"_{6}",8327:"_{7}",8328:"_{8}",8329:"_{9}",8330:"_{+}",8331:"_{-}",8332:"_{=}",8336:"_{a}",8337:"_{e}",8338:"_{o}",8339:"_{x}",8242:"\\prime",39:"\\prime",8592:"\\gets",8594:"\\to",9651:"\\triangle",9661:"\\triangledown",8715:"\\owns",8727:"\\ast",8739:"\\vert",8741:"\\Vert",8743:"\\land",8744:"\\lor",8901:"\\cdot",8904:"\\bowtie",8800:"\\ne",8804:"\\le",8805:"\\ge",8869:"\\bot",10231:"\\biconditional",10232:"\\impliedby",10233:"\\implies",10234:"\\iff",8450:"\\mathbb{C}",8469:"\\mathbb{N}",8473:"\\mathbb{P}",8474:"\\mathbb{Q}",8477:"\\mathbb{R}",8484:"\\mathbb{Z}",8461:"\\mathbb{H}",8476:"\\Re",8465:"\\Im",42:"\\ast",11036:"\\square",9633:"\\square",8720:"\\coprod",8716:"\\not\\ni",9671:"\\diamond",8846:"\\uplus",8851:"\\sqcap",8852:"\\sqcup",8768:"\\wr",8750:"\\oint",8226:"\\textbullet",8722:"-",978:"\\Upsilon"},fe={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},ye=[{start:119808,len:26,offset:65,style:"bold"},{start:119834,len:26,offset:97,style:"bold"},{start:119860,len:26,offset:65,style:"italic"},{start:119886,len:26,offset:97,style:"italic"},{start:119912,len:26,offset:65,style:"bolditalic"},{start:119938,len:26,offset:97,style:"bolditalic"},{start:119964,len:26,offset:65,variant:"script"},{start:119990,len:26,offset:97,variant:"script"},{start:120016,len:26,offset:65,variant:"script",style:"bold"},{start:120042,len:26,offset:97,variant:"script",style:"bold"},{start:120068,len:26,offset:65,variant:"fraktur"},{start:120094,len:26,offset:97,variant:"fraktur"},{start:120172,len:26,offset:65,variant:"fraktur",style:"bold"},{start:120198,len:26,offset:97,variant:"fraktur",style:"bold"},{start:120120,len:26,offset:65,variant:"double-struck"},{start:120146,len:26,offset:97,variant:"double-struck"},{start:120224,len:26,offset:65,variant:"sans-serif"},{start:120250,len:26,offset:97,variant:"sans-serif"},{start:120276,len:26,offset:65,variant:"sans-serif",style:"bold"},{start:120302,len:26,offset:97,variant:"sans-serif",style:"bold"},{start:120328,len:26,offset:65,variant:"sans-serif",style:"italic"},{start:120354,len:26,offset:97,variant:"sans-serif",style:"italic"},{start:120380,len:26,offset:65,variant:"sans-serif",style:"bolditalic"},{start:120406,len:26,offset:97,variant:"sans-serif",style:"bolditalic"},{start:120432,len:26,offset:65,variant:"monospace"},{start:120458,len:26,offset:97,variant:"monospace"},{start:120488,len:25,offset:913,style:"bold"},{start:120514,len:25,offset:945,style:"bold"},{start:120546,len:25,offset:913,style:"italic"},{start:120572,len:25,offset:945,style:"italic"},{start:120604,len:25,offset:913,style:"bolditalic"},{start:120630,len:25,offset:945,style:"bolditalic"},{start:120662,len:25,offset:913,variant:"sans-serif",style:"bold"},{start:120688,len:25,offset:945,variant:"sans-serif",style:"bold"},{start:120720,len:25,offset:913,variant:"sans-serif",style:"bolditalic"},{start:120746,len:25,offset:945,variant:"sans-serif",style:"bolditalic"},{start:120782,len:10,offset:48,variant:"main",style:"bold"},{start:120792,len:10,offset:48,variant:"double-struck"},{start:120803,len:10,offset:48,variant:"sans-serif"},{start:120812,len:10,offset:48,variant:"sans-serif",style:"bold"},{start:120822,len:10,offset:48,variant:"monospace"}];function at(e,t,r){if(!/[A-Za-z\d]/.test(e)||(r==="up"&&(r=void 0),!t&&!r))return e;const n=e.codePointAt(0);if(n===void 0)return e;for(const i of ye)if((!t||i.variant===t)&&(!r||i.style===r)&&n>=i.offset&&n<i.offset+i.len){const s=i.start+n-i.offset;return String.fromCodePoint(fe[s]||s)}return e}function rt(e){var t;if((e<119808||e>120831)&&(e<8448||e>8527))return{char:String.fromCodePoint(e)};for(const r in fe)if(fe[r]===e){e=(t=r.codePointAt(0))!=null?t:0;break}for(const r of ye)if(e>=r.start&&e<r.start+r.len)return{char:String.fromCodePoint(e-r.start+r.offset),variant:r.variant,style:r.style};return{char:String.fromCodePoint(e)}}function nt(e){var t;let r="";for(const n of e){if("{}<>[]$&#^_%:'\u02DC".includes(n)){r+=n;continue}const i=(t=n.codePointAt(0))!=null?t:0;let s=Pe[i];if(s)s.startsWith("\\")?r+=s+" ":r+=s;else{const{char:A,variant:M,style:z}=rt(i);switch(s=A,M){case"double-struck":s=`\\mathbb{${s}}`;break;case"fraktur":s=`\\mathfrak{${s}}`;break;case"script":s=`\\mathscr{${s}}`;break;case"sans-serif":s=`\\mathsf{${s}}`;break;case"monospace":s=`\\mathtt{${s}}`;break;case"calligraphic":s=`\\mathcal{${s}}`;break}switch(z){case"bold":s=`\\mathbf{${s}}`;break;case"italic":s=`\\mathit{${s}}`;break;case"bolditalic":s=`\\mathbfit{${s}}`;break}r+=s}}return r}function ut(e){return e?Array.isArray(e)?e:typeof e=="object"&&"group"in e?e.group:[]:[]}var Pt={},Ht=f({},Pe),Ut={},cr={},or={darr:"\\downarrow",dArr:"\\Downarrow",Darr:"\\Downarrow",lang:"\\langle",rang:"\\rangle",uarr:"\\uparrow",uArr:"\\Uparrow",Uarr:"\\Uparrow",N:"\\mathbb{N}",R:"\\mathbb{R}",Z:"\\mathbb{Z}",alef:"\\aleph",alefsym:"\\aleph",Alpha:"\\mathrm{A}",Beta:"\\mathrm{B}",bull:"\\bullet",Chi:"\\mathrm{X}",clubs:"\\clubsuit",cnums:"\\mathbb{C}",Complex:"\\mathbb{C}",Dagger:"\\ddagger",diamonds:"\\diamondsuit",empty:"\\emptyset",Epsilon:"\\mathrm{E}",Eta:"\\mathrm{H}",exist:"\\exists",harr:"\\leftrightarrow",hArr:"\\Leftrightarrow",Harr:"\\Leftrightarrow",hearts:"\\heartsuit",image:"\\Im",infin:"\\infty",Iota:"\\mathrm{I}",isin:"\\in",Kappa:"\\mathrm{K}",larr:"\\leftarrow",lArr:"\\Leftarrow",Larr:"\\Leftarrow",lrarr:"\\leftrightarrow",lrArr:"\\Leftrightarrow",Lrarr:"\\Leftrightarrow",Mu:"\\mathrm{M}",natnums:"\\mathbb{N}",Nu:"\\mathrm{N}",Omicron:"\\mathrm{O}",plusmn:"\\pm",rarr:"\\rightarrow",rArr:"\\Rightarrow",Rarr:"\\Rightarrow",real:"\\Re",reals:"\\mathbb{R}",Reals:"\\mathbb{R}",Rho:"\\mathrm{P}",sdot:"\\cdot",sect:"\\S",spades:"\\spadesuit",sub:"\\subset",sube:"\\subseteq",supe:"\\supseteq",Tau:"\\mathrm{T}",thetasym:"\\vartheta",weierp:"\\wp",Zeta:"\\mathrm{Z}"},Cr={varGamma:"\\mathit{\\Gamma}",varDelta:"\\mathit{\\Delta}",varTheta:"\\mathit{\\Theta}",varLambda:"\\mathit{\\Lambda}",varXi:"\\mathit{\\Xi}",varPi:"\\mathit{\\Pi}",varSigma:"\\mathit{\\Sigma}",varUpsilon:"\\mathit{\\Upsilon}",varPhi:"\\mathit{\\Phi}",varPsi:"\\mathit{\\Psi}",varOmega:"\\mathit{\\Omega}",pmod:{def:"\\quad(\\operatorname{mod}\\ #1)",args:1,expand:!1,captureSelection:!1},mod:{def:"\\quad\\operatorname{mod}\\,\\,#1",args:1,expand:!1},bmod:{def:"\\;\\mathbin{\\operatorname{mod }}",expand:!1}},hr={bra:{def:"\\mathinner{\\langle{#1}|}",args:1,captureSelection:!1},ket:{def:"\\mathinner{|{#1}\\rangle}",args:1,captureSelection:!1},braket:{def:"\\mathinner{\\langle{#1}\\rangle}",args:1,captureSelection:!1},set:{def:"\\mathinner{\\lbrace #1 \\rbrace}",args:1,captureSelection:!1},Bra:{def:"\\left\\langle #1\\right|",args:1,captureSelection:!1},Ket:{def:"\\left|#1\\right\\rangle",args:1,captureSelection:!1},Braket:{def:"\\left\\langle{#1}\\right\\rangle",args:1,captureSelection:!1},Set:{def:"\\left\\lbrace #1 \\right\\rbrace",args:1,captureSelection:!1}},L={iff:{primitive:!0,captureSelection:!0,def:"\\;\u27FA\\;"},nicefrac:"^{#1}\\!\\!/\\!_{#2}",phase:{def:"\\enclose{phasorangle}{#1}",args:1,captureSelection:!1},rd:"\\mathrm{d}",rD:"\\mathrm{D}",doubleStruckCapitalN:"\\mathbb{N}",doubleStruckCapitalR:"\\mathbb{R}",doubleStruckCapitalQ:"\\mathbb{Q}",doubleStruckCapitalZ:"\\mathbb{Z}",doubleStruckCapitalP:"\\mathbb{P}",scriptCapitalE:"\\mathscr{E}",scriptCapitalH:"\\mathscr{H}",scriptCapitalL:"\\mathscr{L}",gothicCapitalC:"\\mathfrak{C}",gothicCapitalH:"\\mathfrak{H}",gothicCapitalI:"\\mathfrak{I}",gothicCapitalR:"\\mathfrak{R}",imaginaryI:"\\mathrm{i}",imaginaryJ:"\\mathrm{j}",exponentialE:"\\mathrm{e}",differentialD:"\\mathrm{d}",capitalDifferentialD:"\\mathrm{D}",mathstrut:{def:"\\vphantom{(}",primitive:!0},angl:"\\enclose{actuarial}{#1}",angln:"\\enclose{actuarial}{n}",anglr:"\\enclose{actuarial}{r}",anglk:"\\enclose{actuarial}{k}",mathtools:{primitive:!0,package:{ordinarycolon:":",vcentcolon:"\\mathrel{\\mathop\\ordinarycolon}",dblcolon:'{\\mathop{\\char"2237}}',coloneqq:'{\\mathop{\\char"2254}}',Coloneqq:'{\\mathop{\\char"2237\\char"3D}}',coloneq:'{\\mathop{\\char"3A\\char"2212}}',Coloneq:'{\\mathop{\\char"2237\\char"2212}}',eqqcolon:'{\\mathop{\\char"2255}}',Eqqcolon:'{\\mathop{\\char"3D\\char"2237}}',eqcolon:'{\\mathop{\\char"2239}}',Eqcolon:'{\\mathop{\\char"2212\\char"2237}}',colonapprox:'{\\mathop{\\char"003A\\char"2248}}',Colonapprox:'{\\mathop{\\char"2237\\char"2248}}',colonsim:'{\\mathop{\\char"3A\\char"223C}}',Colonsim:'{\\mathop{\\char"2237\\char"223C}}',colondash:"\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}",Colondash:"\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}",dashcolon:"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Dashcolon:"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}"}},ratio:"\\vcentcolon",coloncolon:"\\dblcolon",colonequals:"\\coloneq",coloncolonequals:"\\Coloneq",equalscolon:"\\eqcolon",equalscoloncolon:"\\Eqcolon",colonminus:"\\colondash",coloncolonminus:"\\Colondash",minuscolon:"\\dashcolon",minuscoloncolon:"\\Dashcolon",coloncolonapprox:"\\Colonapprox",coloncolonsim:"\\Colonsim",simcolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Simcolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",simcoloncolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",approxcolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Approxcolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",approxcoloncolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",notni:"\\mathrel{\\char`\u220C}",limsup:"\\operatorname*{lim\\,sup}",liminf:"\\operatorname*{lim\\,inf}",injlim:"\\operatorname*{inj\\,lim}",projlim:"\\operatorname*{proj\\,lim}",varlimsup:"\\operatorname*{\\overline{lim}}",varliminf:"\\operatorname*{\\underline{lim}}",varinjlim:"\\operatorname*{\\underrightarrow{lim}}",varprojlim:"\\operatorname*{\\underleftarrow{lim}}",argmin:"\\operatorname*{arg\\,min}",argmax:"\\operatorname*{arg\\,max}",plim:"\\mathop{\\operatorname{plim}}\\limits",tripledash:{def:"\\vphantom{-}\\raise{4mu}{\\mkern1.5mu\\rule{2mu}{1.5mu}\\mkern{2.25mu}\\rule{2mu}{1.5mu}\\mkern{2.25mu}\\rule{2mu}{1.5mu}\\mkern{2mu}}",expand:!0},"braket.sty":{package:hr},"amsmath.sty":{package:Cr,primitive:!0},"texvc.sty":{package:or,primitive:!1}},it={" ":32,"\\!":33,"\\#":35,"\\$":36,"\\%":37,"\\&":38,"-":45,"\\textunderscore":95,"\\euro":8364,"\\maltese":10016,"\\{":123,"\\}":125,"\\textbraceleft":123,"\\textbraceright":125,"\\lbrace":123,"\\rbrace":125,"\\lbrack":91,"\\rbrack":93,"\\nobreakspace":160,"\\ldots":8230,"\\textellipsis":8230,"\\backslash":92,"`":8216,"'":8217,"``":8220,"''":8221,"\\degree":176,"\\textasciicircum":94,"\\textasciitilde":126,"\\textasteriskcentered":42,"\\textbackslash":92,"\\textbullet":8226,"\\textdollar":36,"\\textsterling":163,"\\textdagger":8224,"\\textdaggerdbl":8225,"\u2013":8211,"\u2014":8212,"\u2018":8216,"\u2019":8217,"\u201C":8220,"\u201D":8221,'"':8221,"\\ss":223,"\\ae":230,"\\oe":339,"\\AE":198,"\\OE":338,"\\O":216,"\\i":305,"\\j":567,"\\aa":229,"\\AA":197},k=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,p,d;K()?(p=new RegExp("\\p{Letter}","u"),d=new RegExp("[0-9\\p{Letter}]","u")):(p=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,d=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function w(e,t,r="mord",n){t!==void 0&&(Pt[e]={definitionType:"symbol",type:r,variant:n,codepoint:t},Ht[t]||(Ht[t]=e))}function Y(e,t,r){if(typeof e=="string"){for(let n=0;n<e.length;n++){const i=e.charAt(n);w(i,i.codePointAt(0))}return}for(const[n,i,s,A]of e)w(n,i,s!=null?s:t,A!=null?A:r)}function Ee(e,t){for(let r=e;r<=t;r++)w(String.fromCodePoint(r),r)}function H(e){var t;return(t=cr[e])!=null?t:null}function ne(e,t){var r,n;if(t.length===0||t==="\\"||!t.startsWith("\\"))return[];const i=[];for(const A in Ut)A.startsWith(t)&&!Ut[A].infix&&i.push({match:A,frequency:(r=Ut[A].frequency)!=null?r:0});for(const A in Pt)A.startsWith(t)&&i.push({match:A,frequency:(n=Pt[A].frequency)!=null?n:0});const s=t.substring(1);for(const A of Object.keys(e.options.macros))A.startsWith(s)&&i.push({match:"\\"+A,frequency:0});return i.sort((A,M)=>{var z,X;return A.frequency===M.frequency?A.match.length===M.match.length?A.match<M.match?-1:1:A.match.length-M.match.length:((z=M.frequency)!=null?z:0)-((X=A.frequency)!=null?X:0)}),i.map(A=>A.match)}function Ge(e){let t="auto";const r=e.match(/:([^=]+)/);return r&&(t=r[1].trim()),t}function xe(e){if(!e)return[];const t=[];let r=e.split("]");if(r[0].startsWith("[")){t.push({isOptional:!0,type:Ge(r[0].slice(1))});for(let n=1;n<=r.length;n++)t.push(...xe(r[n]))}else if(r=e.split("}"),r[0].startsWith("{")){t.push({isOptional:!1,type:Ge(r[0].slice(1))});for(let n=1;n<=r.length;n++)t.push(...xe(r[n]))}return t}function we(e){if(!e)return"";let t="",r=!0;for(const n of e)typeof n.value=="string"?t+=n.value:r=!1;return r?t:""}function qe(e,t){typeof e=="string"&&(e=[e]);const r={tabular:!1,params:[],createAtom:t};for(const n of e)cr[n]=r}function Et(e,t,r){typeof e=="string"&&(e=[e]);const i={tabular:!0,params:xe(t),createAtom:r};for(const s of e)cr[s]=i}function pe(e,t,r){var n,i;r||(r={});const s={definitionType:"function",params:xe(t),ifMode:r.ifMode,isFunction:(n=r.isFunction)!=null?n:!1,applyMode:r.applyMode,infix:(i=r.infix)!=null?i:!1,parse:r.parse,createAtom:r.createAtom,applyStyle:r.applyStyle,serialize:r.serialize,render:r.render};if(typeof e=="string")Ut["\\"+e]=s;else for(const A of e)Ut["\\"+A]=s}var dt;function At(e){return dt||(dt=De(L)),e?De(f(f({},dt),e)):dt}function Me(e,t){var r,n,i,s;if(typeof e=="string"){let A=0;const M=e;return/(^|[^\\])#1/.test(M)&&(A=1),/(^|[^\\])#2/.test(M)&&(A=2),/(^|[^\\])#3/.test(M)&&(A=3),/(^|[^\\])#4/.test(M)&&(A=4),/(^|[^\\])#5/.test(M)&&(A=5),/(^|[^\\])#6/.test(M)&&(A=6),/(^|[^\\])#7/.test(M)&&(A=7),/(^|[^\\])#8/.test(M)&&(A=8),/(^|[^\\])#9/.test(M)&&(A=9),{expand:(r=t==null?void 0:t.expand)!=null?r:!0,captureSelection:(n=t==null?void 0:t.captureSelection)!=null?n:!0,args:A,def:M}}return f({expand:(i=t==null?void 0:t.expand)!=null?i:!0,captureSelection:(s=t==null?void 0:t.captureSelection)!=null?s:!0,args:0},e)}function De(e){if(!e)return{};const t={};for(const r of Object.keys(e)){const n=e[r];if(n==null)delete t[r];else if(typeof n=="object"&&"package"in n)for(const i of Object.keys(n.package))t[i]=Me(n.package[i],{expand:!n.primitive,captureSelection:n.captureSelection});else t[r]=Me(n)}return t}function gt(e,t="math"){if(!e||e.length===0)return null;let r=null;if(e.startsWith("\\")){if(r=Ut[e],r)return!r.ifMode||r.ifMode===t?r:null;t==="math"?r=Pt[e]:it[e]&&(r={definitionType:"symbol",type:"mord",codepoint:it[e]})}else if(t==="math"){if(r=Pt[e],!r&&e.length===1){const n=Tt("math",e.codePointAt(0));return n.startsWith("\\")?E(f({},gt(n,"math")),{command:n}):null}}else it[e]?r={definitionType:"symbol",type:"mord",codepoint:it[e]}:t==="text"&&(r={definitionType:"symbol",type:"mord",codepoint:e.codePointAt(0)});return r!=null?r:null}function jt(e,t){if(!e.startsWith("\\"))return null;const r=e.slice(1);return t[r]}function Tt(e,t){if(t===void 0)return"";if(e==="math"&&Ht[t])return Ht[t];if(e==="text"){const r=Object.keys(it).find(n=>it[n]===t);return r||String.fromCodePoint(t)}return String.fromCodePoint(t)}var ir=[0,.68889,0,0,.72222],Fr=[0,.68889,0,0,.66667],Pr=[0,.68889,0,0,.77778],Hr=[0,.68889,0,0,.61111],Rr=[.16667,.68889,0,0,.77778],sr=[0,.68889,0,0,.55556],lr=[0,0,0,0,.25],$r=[0,.825,0,0,2.33334],ln=[0,.9,0,0,2.33334],En=[0,.68889,0,0,.54028],cn=[-.03598,.46402,0,0,.5],In=[-.13313,.36687,0,0,1],bi=[.01354,.52239,0,0,1],Ir=[.01354,.52239,0,0,1.11111],qn=[0,.54986,0,0,1],wi=[0,.69224,0,0,.5],$n=[0,.43056,0,0,1],Ni=[.08198,.58198,0,0,.77778],gi=[.19444,.69224,0,0,.41667],Qi=[.1808,.675,0,0,1],ba=[.19444,.69224,0,0,.83334],$i=[.13667,.63667,0,0,1],ri=[-.064,.437,0,0,1.334],xi=[.08167,.58167,0,0,.77778],Ti=[0,.69224,0,0,.72222],me=[0,.69224,0,0,.66667],Ue=[-.13313,.36687,0,0,.77778],Le=[.06062,.54986,0,0,.77778],lt=[0,.69224,0,0,.77778],$t=[.25583,.75583,0,0,.77778],Qt=[.25142,.75726,0,0,.77778],Br=[.20576,.70576,0,0,.77778],pr=[.30274,.79383,0,0,.77778],Kr=[.22958,.72958,0,0,.77778],Wr=[.1808,.675,0,0,.77778],en=[.13667,.63667,0,0,.77778],Vr=[.13597,.63597,0,0,.77778],jr=[.03517,.54986,0,0,.77778],Yr=[0,.675,0,0,.77778],mn=[.19444,.69224,0,0,.61111],tn=[0,.54986,0,0,.76042],Dn=[0,.54986,0,0,.66667],Qn=[.0391,.5391,0,0,.77778],ui=[.03517,.54986,0,0,1.33334],On=[.38569,.88569,0,0,.77778],on=[.23222,.74111,0,0,.77778],Kt=[.19444,.69224,0,0,.77778],Zt=[0,.37788,0,0,.5],qt=[0,.54986,0,0,.72222],er=[0,.69224,0,0,.83334],Xt=[.11111,.69224,0,0,.66667],Ur=[.26167,.75726,0,0,.77778],Mr=[.48256,.98256,0,0,.77778],Gr=[.28481,.79383,0,0,.77778],Mn=[.08167,.58167,0,0,.22222],Pn=[.08167,.58167,0,0,.38889],si=[0,.43056,.04028,0,.66667],ei=[.41951,.91951,0,0,.77778],Ci=[.24982,.74947,0,0,.38865],Yn=[.08319,.58283,0,0,.75623],Hn=[0,.10803,0,0,.27764],an=[0,.47534,0,0,.50181],pi=[.18906,.47534,0,0,.50181],Ln=[0,.69141,0,0,.50181],ni=[.24982,.74947,0,0,.27764],vi=[0,.69141,0,0,.21471],Mi=[.25,.75,0,0,.44722],Jn=[0,.64444,0,0,.575],_i=[.08556,.58556,0,0,.89444],ra=[0,.69444,0,0,.89444],ai=[0,.68611,0,0,.9],An=[0,.68611,0,0,.86944],rn=[.25,.75,0,0,.575],Tn=[.25,.75,0,0,.31944],wn=[0,.69444,0,0,.63889],jn=[0,.69444,0,0,.31944],ci=[0,.44444,0,0,.63889],Bi=[0,.44444,0,0,.51111],Aa=[0,.69444,0,0,.575],Yi=[.13333,.63333,0,0,.89444],ao=[0,.44444,0,0,.31944],ti=[0,.69444,0,0,.86944],Un=[0,.68611,0,0,.69166],Fi=[0,.68611,0,0,.83055],Ei=[0,.68611,0,0,.89444],ha=[0,.69444,0,0,.60278],No=[.19444,.69444,0,0,.51111],na=[0,.69444,0,0,.83055],Ji=[-.10889,.39111,0,0,1.14999],ja=[.19444,.69444,0,0,.575],La=[.19444,.69444,0,0,1.14999],eo=[.19444,.69444,0,0,.70277],vo=[.05556,.75,0,0,.575],wa=[0,.68611,0,0,.95833],Ai=[.08556,.58556,0,0,.76666],ua=[-.02639,.47361,0,0,.575],Do=[0,.44444,0,0,.89444],uo=[0,.55556,0,0,.76666],Xa=[-.10889,.39111,0,0,.89444],Pi=[.00222,.50222,0,0,.89444],Po=[.19667,.69667,0,0,.89444],fo=[.08556,.58556,0,0,1.14999],il=[0,.69444,0,0,.70277],$o=[-.02778,.47222,0,0,.575],Hs=[.25,.75,0,0,.51111],Zo=[-.13889,.36111,0,0,1.14999],vl=[.19444,.69444,0,0,1.02222],za=[.12963,.69444,0,0,.89444],Qa=[.19444,.69444,0,0,.44722],_a=[0,.64444,.13167,0,.59111],js=[.19444,.64444,.13167,0,.59111],yi=[0,.68611,.17208,0,.8961],Vi=[.19444,.44444,.105,0,.53222],Oi=[0,.44444,.085,0,.82666],Wi=[0,.69444,.06709,0,.59111],da=[0,.69444,.12945,0,.35555],ka=[0,.69444,0,0,.94888],Vo=[0,.69444,.11472,0,.59111],_o=[0,.68611,.10778,0,.88555],Bo=[0,.69444,.07939,0,.62055],$a=[0,.69444,.12417,0,.30667],xa=[0,.64444,.13556,0,.51111],pa=[.19444,.64444,.13556,0,.51111],Oa=[0,.68333,.16389,0,.74333],Ja=[.19444,.43056,.08847,0,.46],oo=[0,.43056,.07514,0,.71555],Ua=[0,.69444,.06646,0,.51111],Da=[0,.69444,0,0,.83129],Fo=[0,.69444,.1225,0,.51111],Ll=[0,.68333,.09403,0,.76666],cs=[0,.68333,.11111,0,.76666],dl=[0,.69444,.06961,0,.51444],Oo=[0,.69444,0,0,.27778],ks=[.25,.75,0,0,.38889],Io=[0,.64444,0,0,.5],Kn=[0,.69444,0,0,.77778],kl=[0,.68333,0,0,.75],To=[0,.68333,0,0,.77778],Hl=[0,.68333,0,0,.68056],zs=[0,.68333,0,0,.72222],ms=[.25,.75,0,0,.5],Pa=[.25,.75,0,0,.27778],Uo=[0,.69444,0,0,.5],jl=[0,.69444,0,0,.55556],tc=[0,.43056,0,0,.44445],fl=[0,.43056,0,0,.5],ma=[.19444,.43056,0,0,.55556],oa=[0,.43056,0,0,.55556],ho=[.08333,.58333,0,0,.77778],Za=[0,.43056,0,0,.27778],to=[0,.66786,0,0,.27778],Ro=[0,.69444,0,0,.75],Ya=[0,.66786,0,0,.5],Wo=[0,.68333,0,0,.625],Ds=[.19444,.69444,0,0,.44445],hl=[0,.69444,0,0,.72222],Xs=[.19444,.69444,0,0,.5],al=[.19444,.69444,0,0,1],Wc=[.011,.511,0,0,1.126],Dl=[.19444,.69444,0,0,.61111],Js=[.05556,.75,0,0,.5],lA=[0,.68333,0,0,.83334],cA=[.0391,.5391,0,0,.66667],hc=[-.05555,.44445,0,0,.5],wA=[0,.43056,0,0,.77778],Pl=[0,.55556,0,0,.66667],Ys=[-.03625,.46375,0,0,.77778],ol=[-.01688,.48312,0,0,.77778],sl=[.0391,.5391,0,0,1],Ta=[0,.69444,0,0,.61111],po=[-.03472,.46528,0,0,.5],mo=[.25,.75,0,0,.44445],Go=[-.14236,.35764,0,0,1],Ps=[.244,.744,0,0,.412],kc=[.19444,.69444,0,0,.88889],yl=[.12963,.69444,0,0,.77778],Gc=[.19444,.69444,0,0,.38889],xA=[.011,.511,0,0,1.638],CA=[.19444,.69444,0,0,0],pc=[0,.44444,0,0,.575],mc=[.19444,.44444,0,0,.575],Uu=[0,.68611,0,0,.75555],KA=[0,.69444,0,0,.66759],ed=[0,.68611,0,0,.80555],td=[0,.68611,.08229,0,.98229],lu=[0,.68611,0,0,.76666],vd=[0,.44444,0,0,.58472],Ru=[.19444,.44444,0,0,.6118],cu=[.19444,.43056,0,0,.5],c=[0,.68333,.02778,.08334,.76278],o=[0,.68333,.08125,.05556,.83125],l=[0,.43056,0,.05556,.48472],b=[.19444,.43056,0,.08334,.51702],F=[.25,.75,0,0,.42778],C=[0,.69444,0,0,.55],T=[0,.69444,0,0,.73334],Z=[0,.69444,0,0,.79445],ae=[0,.69444,0,0,.51945],_e=[0,.69444,0,0,.70278],$e=[0,.69444,0,0,.76389],Ze=[.25,.75,0,0,.34306],st=[0,.69444,0,0,.56111],be=[0,.69444,0,0,.25556],Lt=[.19444,.45833,0,0,.56111],wt=[0,.45833,0,0,.56111],kt=[0,.69444,0,0,.30556],pt=[0,.69444,0,0,.58056],Dt=[0,.69444,0,0,.67223],ar=[0,.69444,0,0,.85556],wr=[0,.69444,0,0,.55834],Qr=[0,.65556,.11156,0,.5],hn=[0,.69444,.08094,0,.70834],_r=[.17014,0,0,0,.44445],Vt=[0,.69444,.0799,0,.5],Lr=[0,.69444,0,0,.73752],Jr=[0,.69444,.09205,0,.5],vt=[0,.69444,.09031,0,.77778],Ct=[0,.69444,.07816,0,.27778],rr=[0,.69444,.00316,0,.5],U=[.19444,.69444,0,0,.83334],ee=[.05556,.75,0,0,.83334],Se=[0,.75,0,0,.5],Te=[.125,.08333,0,0,.27778],He=[0,.08333,0,0,.27778],Xe=[0,.65556,0,0,.5],ht=[0,.69444,0,0,.47222],St=[0,.69444,0,0,.66667],Ae=[0,.69444,0,0,.59722],Re=[0,.69444,0,0,.54167],Ye=[0,.69444,0,0,.70834],et=[.25,.75,0,0,.28889],bt=[0,.69444,0,0,.51667],_t=[0,.44444,0,0,.44445],It=[.19444,.44444,0,0,.51667],Rt=[0,.44444,0,0,.38333],ur=[0,.44444,0,0,.51667],fr=[0,.69444,0,0,.83334],gr=[.35001,.85,0,0,.45834],Sr=[.35001,.85,0,0,.57778],dn=[.35001,.85,0,0,.41667],Ar=[.35001,.85,0,0,.58334],yt=[0,.72222,0,0,.55556],_n=[1e-5,.6,0,0,.66667],gn=[1e-5,.6,0,0,.77778],vr=[.25001,.75,0,0,.94445],Nr=[.306,.805,.19445,0,.47222],Or=[.30612,.805,.19445,0,.47222],br=[.25001,.75,0,0,.83334],Zr=[.35001,.85,0,0,.47222],Cn=[.25001,.75,0,0,1.11111],Xn=[.65002,1.15,0,0,.59722],Vn=[.65002,1.15,0,0,.81111],Nn=[.65002,1.15,0,0,.47222],di=[.65002,1.15,0,0,.66667],zn=[0,.75,0,0,1],Li=[.55001,1.05,0,0,1.27778],vn=[.862,1.36,.44445,0,.55556],Fa=[.86225,1.36,.44445,0,.55556],ji=[.55001,1.05,0,0,1.11111],Ri=[.65002,1.15,0,0,.52778],ia=[.65002,1.15,0,0,.61111],Hi=[.55001,1.05,0,0,1.51112],Ka=[.95003,1.45,0,0,.73611],Gi=[.95003,1.45,0,0,1.04445],As=[.95003,1.45,0,0,.52778],Bn=[.95003,1.45,0,0,.75],fi=[0,.75,0,0,1.44445],mi=[.95003,1.45,0,0,.58334],Zn=[1.25003,1.75,0,0,.79167],oi=[1.25003,1.75,0,0,1.27778],kn=[1.25003,1.75,0,0,.58334],Ki=[1.25003,1.75,0,0,.80556],Xi=[0,.825,0,0,1.8889],qi=[1.25003,1.75,0,0,.63889],Mo=[.64502,1.155,0,0,.875],ki=[1e-5,.6,0,0,.875],ns=[-99e-5,.601,0,0,.66667],ro=[.64502,1.155,0,0,.66667],Qo=[1e-5,.9,0,0,.88889],bn=[.65002,1.15,0,0,.88889],no=[.90001,0,0,0,.88889],Cs=[-.00499,.605,0,0,1.05556],ga=[0,.12,0,0,.45],qr=[0,.61111,0,0,.525],fa=[.08333,.69444,0,0,.525],so=[-.08056,.53055,0,0,.525],Va=[-.05556,.55556,0,0,.525],Ii=[0,.43056,0,0,.525],bo=[.22222,.43056,0,0,.525],Ko=[0,0,0,0,.525],Bs={"AMS-Regular":{32:lr,65:ir,66:Fr,67:ir,68:ir,69:Fr,70:Hr,71:Pr,72:Pr,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:Pr,76:Fr,77:[0,.68889,0,0,.94445],78:ir,79:Rr,80:Hr,81:Rr,82:ir,83:sr,84:Fr,85:ir,86:ir,87:[0,.68889,0,0,1],88:ir,89:ir,90:Fr,107:sr,160:lr,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:sr,295:En,710:$r,732:ln,770:$r,771:ln,989:xi,1008:si,8245:[0,.54986,0,0,.275],8463:En,8487:ir,8498:sr,8502:Fr,8503:[0,.68889,0,0,.44445],8504:Fr,8513:[0,.68889,0,0,.63889],8592:cn,8594:cn,8602:In,8603:In,8606:bi,8608:bi,8610:Ir,8611:Ir,8619:qn,8620:qn,8621:[-.13313,.37788,0,0,1.38889],8622:In,8624:wi,8625:wi,8630:$n,8631:$n,8634:Ni,8635:Ni,8638:gi,8639:gi,8642:gi,8643:gi,8644:Qi,8646:Qi,8647:Qi,8648:ba,8649:Qi,8650:ba,8651:bi,8652:bi,8653:In,8654:In,8655:In,8666:$i,8667:$i,8669:[-.13313,.37788,0,0,1],8672:ri,8674:ri,8705:[0,.825,0,0,.5],8708:sr,8709:xi,8717:[0,.43056,0,0,.42917],8722:cn,8724:[.08198,.69224,0,0,.77778],8726:xi,8733:lt,8736:Ti,8737:Ti,8738:[.03517,.52239,0,0,.72222],8739:Mn,8740:[.25142,.74111,0,0,.27778],8741:Pn,8742:[.25142,.74111,0,0,.5],8756:me,8757:me,8764:Ue,8765:[-.13313,.37788,0,0,.77778],8769:Ue,8770:Ys,8774:pr,8776:ol,8778:xi,8782:Le,8783:Le,8785:Ni,8786:Ni,8787:Ni,8790:lt,8791:Kr,8796:[.08198,.91667,0,0,.77778],8806:$t,8807:$t,8808:Qt,8809:Qt,8812:[.25583,.75583,0,0,.5],8814:Br,8815:Br,8816:pr,8817:pr,8818:Kr,8819:Kr,8822:Wr,8823:Wr,8828:en,8829:en,8830:Kr,8831:Kr,8832:Br,8833:Br,8840:pr,8841:pr,8842:Vr,8843:Vr,8847:jr,8848:jr,8858:Ni,8859:Ni,8861:Ni,8862:Yr,8863:Yr,8864:Yr,8865:Yr,8872:[0,.69224,0,0,.61111],8873:Ti,8874:[0,.69224,0,0,.88889],8876:Hr,8877:Hr,8878:ir,8879:ir,8882:jr,8883:jr,8884:en,8885:en,8888:[0,.54986,0,0,1.11111],8890:ma,8891:mn,8892:mn,8901:[0,.54986,0,0,.27778],8903:xi,8905:xi,8906:xi,8907:lt,8908:lt,8909:[-.03598,.46402,0,0,.77778],8910:tn,8911:tn,8912:jr,8913:jr,8914:Dn,8915:Dn,8916:me,8918:Qn,8919:Qn,8920:ui,8921:ui,8922:On,8923:On,8926:en,8927:en,8928:pr,8929:pr,8934:on,8935:on,8936:on,8937:on,8938:Br,8939:Br,8940:pr,8941:pr,8994:Kt,8995:Kt,9416:[.15559,.69224,0,0,.90222],9484:wi,9488:wi,9492:Zt,9496:Zt,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:Yr,9633:Yr,9650:qt,9651:qt,9654:jr,9660:qt,9661:qt,9664:jr,9674:Xt,9733:[.19444,.69224,0,0,.94445],10003:er,10016:er,10731:Xt,10846:[.19444,.75583,0,0,.61111],10877:en,10878:en,10885:$t,10886:$t,10887:Vr,10888:Vr,10889:Ur,10890:Ur,10891:Mr,10892:Mr,10901:en,10902:en,10933:Qt,10934:Qt,10935:Ur,10936:Ur,10937:Ur,10938:Ur,10949:$t,10950:$t,10955:Gr,10956:Gr,57350:Mn,57351:Pn,57352:xi,57353:si,57356:Qt,57357:Qt,57358:ei,57359:pr,57360:pr,57361:ei,57366:Qt,57367:Qt,57368:Qt,57369:Qt,57370:Vr,57371:Vr},"Caligraphic-Regular":{32:lr,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],160:lr},"Fraktur-Regular":{32:lr,33:[0,.69141,0,0,.29574],34:vi,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:Ci,41:Ci,42:[0,.62119,0,0,.27764],43:Yn,44:Hn,45:Yn,46:Hn,47:[.24982,.74947,0,0,.50181],48:an,49:an,50:an,51:pi,52:pi,53:pi,54:Ln,55:pi,56:Ln,57:pi,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:ni,93:ni,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],160:lr,8216:vi,8217:vi,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":{32:lr,33:[0,.69444,0,0,.35],34:ha,35:[.19444,.69444,0,0,.95833],36:vo,37:[.05556,.75,0,0,.95833],38:ra,39:jn,40:Mi,41:Mi,42:[0,.75,0,0,.575],43:Yi,44:[.19444,.15556,0,0,.31944],45:Rt,46:[0,.15556,0,0,.31944],47:rn,48:Jn,49:Jn,50:Jn,51:Jn,52:Jn,53:Jn,54:Jn,55:Jn,56:Jn,57:Jn,58:ao,59:[.19444,.44444,0,0,.31944],60:_i,61:Xa,62:_i,63:[0,.69444,0,0,.54305],64:ra,65:An,66:[0,.68611,0,0,.81805],67:Fi,68:[0,.68611,0,0,.88194],69:Uu,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:ai,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:Un,77:[0,.68611,0,0,1.09166],78:ai,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:An,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Tn,92:rn,93:Tn,94:Aa,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:wn,99:Bi,100:wn,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:wn,105:jn,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:jn,109:[0,.44444,0,0,.95833],110:ci,111:pc,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:ci,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:Bi,123:rn,124:Tn,125:rn,126:[.35,.34444,0,0,.575],160:lr,163:[0,.69444,0,0,.86853],168:Aa,172:[0,.44444,0,0,.76666],176:ti,177:Yi,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:Yi,216:[.04861,.73472,0,0,.89444],223:Ae,230:[0,.44444,0,0,.83055],247:Yi,248:[.09722,.54167,0,0,.575],305:ao,338:[0,.68611,0,0,1.16944],339:Do,567:[.19444,.44444,0,0,.35139],710:Aa,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:Aa,715:Aa,728:Aa,729:jn,730:ti,732:Aa,733:Aa,915:Un,916:wa,920:Ei,923:ed,926:lu,928:ai,931:Fi,933:Ei,934:Fi,936:Ei,937:Fi,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:jn,8217:jn,8220:ha,8221:ha,8224:No,8225:No,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:KA,8465:na,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:na,8501:il,8592:Ji,8593:ja,8594:Ji,8595:ja,8596:Ji,8597:rn,8598:La,8599:La,8600:La,8601:La,8636:Ji,8637:Ji,8640:Ji,8641:Ji,8656:Ji,8657:eo,8658:Ji,8659:eo,8660:Ji,8661:[.25,.75,0,0,.70277],8704:wn,8706:[0,.69444,.06389,0,.62847],8707:wn,8709:vo,8711:wa,8712:Ai,8715:Ai,8722:Yi,8723:Yi,8725:rn,8726:rn,8727:$o,8728:ua,8729:ua,8730:[.18,.82,0,0,.95833],8733:Do,8734:[0,.44444,0,0,1.14999],8736:Ti,8739:Tn,8741:rn,8743:uo,8744:uo,8745:uo,8746:uo,8747:[.19444,.69444,.12778,0,.56875],8764:Xa,8768:[.19444,.69444,0,0,.31944],8771:Pi,8776:[.02444,.52444,0,0,.89444],8781:Pi,8801:Pi,8804:Po,8805:Po,8810:fo,8811:fo,8826:_i,8827:_i,8834:_i,8835:_i,8838:Po,8839:Po,8846:uo,8849:Po,8850:Po,8851:uo,8852:uo,8853:Yi,8854:Yi,8855:Yi,8856:Yi,8857:Yi,8866:il,8867:il,8868:ra,8869:ra,8900:ua,8901:[-.02639,.47361,0,0,.31944],8902:$o,8968:Hs,8969:Hs,8970:Hs,8971:Hs,8994:Zo,8995:Zo,9651:vl,9657:$o,9661:vl,9667:$o,9711:La,9824:za,9825:za,9826:za,9827:za,9837:[0,.75,0,0,.44722],9838:Qa,9839:Qa,10216:Mi,10217:Mi,10815:ai,10927:Po,10928:Po,57376:CA},"Main-BoldItalic":{32:lr,33:[0,.69444,.11417,0,.38611],34:Bo,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:da,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:_a,49:_a,50:_a,51:_a,52:js,53:_a,54:_a,55:js,56:_a,57:_a,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:Vo,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:yi,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:yi,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:Wi,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:Vi,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:Vi,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],160:lr,168:[0,.69444,.11473,0,.59111],176:ka,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:Oi,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:Oi,567:[.19444,.44444,.04611,0,.385],710:Wi,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:da,730:ka,732:Vo,733:Vo,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:yi,931:[0,.68611,.11431,0,.82666],933:_o,934:[0,.68611,.05632,0,.82666],936:_o,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:da,8217:da,8220:[0,.69444,.16772,0,.62055],8221:Bo},"Main-Italic":{32:lr,33:$a,34:dl,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:$a,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:xa,49:xa,50:xa,51:xa,52:pa,53:xa,54:xa,55:pa,56:xa,57:xa,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:Fo,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:Oa,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:Oa,79:Ll,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:Oa,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:Ua,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:Ja,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:Ja,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],160:lr,168:[0,.66786,.10474,0,.51111],176:Da,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:oo,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:oo,710:Ua,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:Da,732:[0,.66786,.11585,0,.51111],733:Fo,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:Ll,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:Oa,931:[0,.68333,.12028,0,.71555],933:cs,934:[0,.68333,.05986,0,.71555],936:cs,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:$a,8217:$a,8220:[0,.69444,.1685,0,.51444],8221:dl,8463:En},"Main-Regular":{32:lr,33:Oo,34:Uo,35:U,36:Js,37:ee,38:Kn,39:Oo,40:ks,41:ks,42:Se,43:ho,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:ms,48:Io,49:Io,50:Io,51:Io,52:Io,53:Io,54:Io,55:Io,56:Io,57:Io,58:Za,59:[.19444,.43056,0,0,.27778],60:Qn,61:Ue,62:Qn,63:ht,64:Kn,65:kl,66:[0,.68333,0,0,.70834],67:zs,68:[0,.68333,0,0,.76389],69:Hl,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:kl,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:To,76:Wo,77:[0,.68333,0,0,.91667],78:kl,79:To,80:Hl,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:zs,85:kl,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:kl,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:Pa,92:ms,93:Pa,94:Uo,95:[.31,.12056,.02778,0,.5],97:fl,98:jl,99:tc,100:jl,101:tc,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:jl,105:to,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:Oo,109:[0,.43056,0,0,.83334],110:oa,111:fl,112:ma,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:oa,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:tc,123:ms,124:Pa,125:ms,126:[.35,.31786,0,0,.5],160:lr,163:[0,.69444,0,0,.76909],167:Ds,168:Ya,172:[0,.43056,0,0,.66667],176:Ro,177:ho,182:Dl,184:_r,198:[0,.68333,0,0,.90278],215:ho,216:[.04861,.73194,0,0,.77778],223:Uo,230:[0,.43056,0,0,.72222],247:ho,248:[.09722,.52778,0,0,.5],305:Za,338:[0,.68333,0,0,1.01389],339:wA,567:[.19444,.43056,0,0,.30556],710:Uo,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:Uo,715:Uo,728:Uo,729:to,730:Ro,732:Ya,733:Uo,915:Wo,916:lA,920:To,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:kl,931:zs,933:To,934:zs,936:To,937:zs,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:Oo,8217:Oo,8220:Uo,8221:Uo,8224:Ds,8225:Ds,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:En,8465:hl,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:hl,8501:Ta,8592:In,8593:Xs,8594:In,8595:Xs,8596:In,8597:ms,8598:al,8599:al,8600:al,8601:al,8614:[.011,.511,0,0,1],8617:Wc,8618:Wc,8636:In,8637:In,8640:In,8641:In,8652:[.011,.671,0,0,1],8656:In,8657:Dl,8658:In,8659:Dl,8660:In,8661:[.25,.75,0,0,.61111],8704:jl,8706:[0,.69444,.05556,.08334,.5309],8707:jl,8709:Js,8711:lA,8712:cA,8715:cA,8722:ho,8723:ho,8725:ms,8726:ms,8727:po,8728:hc,8729:hc,8730:[.2,.8,0,0,.83334],8733:wA,8734:$n,8736:Ti,8739:Pa,8741:ms,8743:Pl,8744:Pl,8745:Pl,8746:Pl,8747:[.19444,.69444,.11111,0,.41667],8764:Ue,8768:[.19444,.69444,0,0,.27778],8771:Ys,8773:[-.022,.589,0,0,1],8776:ol,8781:Ys,8784:[-.133,.67,0,0,.778],8801:Ys,8804:Vr,8805:Vr,8810:sl,8811:sl,8826:Qn,8827:Qn,8834:Qn,8835:Qn,8838:Vr,8839:Vr,8846:Pl,8849:Vr,8850:Vr,8851:Pl,8852:Pl,8853:ho,8854:ho,8855:ho,8856:ho,8857:ho,8866:Ta,8867:Ta,8868:Kn,8869:Kn,8872:[.249,.75,0,0,.867],8900:hc,8901:[-.05555,.44445,0,0,.27778],8902:po,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:mo,8969:mo,8970:mo,8971:mo,8994:Go,8995:Go,9136:Ps,9137:Ps,9651:kc,9657:po,9661:kc,9667:po,9711:al,9824:yl,9825:yl,9826:yl,9827:yl,9837:[0,.75,0,0,.38889],9838:Gc,9839:Gc,10216:ks,10217:ks,10222:Ps,10223:Ps,10229:[.011,.511,0,0,1.609],10230:xA,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:xA,10815:kl,10927:Vr,10928:Vr,57376:CA},"Math-BoldItalic":{32:lr,48:pc,49:pc,50:pc,51:mc,52:mc,53:mc,54:Jn,55:mc,56:Jn,57:mc,65:An,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:td,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:Uu,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:KA,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:vd,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],160:lr,915:[0,.68611,.15972,0,.65694],916:wa,920:[0,.68611,.03194,0,.86722],923:ed,926:[0,.68611,.07458,0,.84125],928:td,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:lu,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:vd,960:[0,.44444,.03704,0,.68241],961:Ru,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:Ru,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:lr,48:fl,49:fl,50:fl,51:cu,52:cu,53:cu,54:Io,55:cu,56:Io,57:cu,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:o,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:c,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:l,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],160:lr,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:c,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:o,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:l,960:[0,.43056,.03588,0,.57003],961:b,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:b,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:lr,33:[0,.69444,0,0,.36667],34:wr,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:kt,40:F,41:F,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:C,49:C,50:C,51:C,52:C,53:C,54:C,55:C,56:C,57:C,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:ae,64:T,65:T,66:T,67:_e,68:Z,69:[0,.69444,0,0,.64167],70:Ta,71:T,72:Z,73:[0,.69444,0,0,.33056],74:ae,75:$e,76:pt,77:[0,.69444,0,0,.97778],78:Z,79:Z,80:_e,81:[.10556,.69444,0,0,.79445],82:_e,83:Ta,84:T,85:$e,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:T,89:[0,.69444,.0275,0,.73334],90:Dt,91:Ze,93:Ze,94:C,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:st,99:[0,.45833,0,0,.48889],100:st,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:st,105:be,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:be,109:[0,.45833,0,0,.86667],110:wt,111:[0,.45833,0,0,.55],112:Lt,113:Lt,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:wt,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],160:lr,168:C,176:T,180:C,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:C,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:C,729:kt,730:T,732:C,733:C,915:pt,916:[0,.69444,0,0,.91667],920:ar,923:Dt,926:T,928:Z,931:Z,933:ar,934:Z,936:ar,937:Z,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:kt,8217:kt,8220:wr,8221:wr},"SansSerif-Italic":{32:lr,33:[0,.69444,.05733,0,.31945],34:rr,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:Ct,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:Te,45:[0,.44444,.01946,0,.33333],46:He,47:[.25,.75,.13164,0,.5],48:Qr,49:Qr,50:Qr,51:Qr,52:Qr,53:Qr,54:Qr,55:Qr,56:Qr,57:Qr,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:St,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:hn,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:Re,77:[0,.69444,.08094,0,.875],78:hn,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:Vt,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],160:lr,168:[0,.67937,.06385,0,.5],176:Lr,184:_r,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:Vt,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:Jr,715:Uo,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:Lr,732:[0,.67659,.08826,0,.5],733:Jr,915:[0,.69444,.13372,0,.54167],916:fr,920:[0,.69444,.07555,0,.77778],923:Ta,926:[0,.69444,.12816,0,.66667],928:hn,931:[0,.69444,.11983,0,.72222],933:vt,934:[0,.69444,.04603,0,.72222],936:vt,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:Ct,8217:Ct,8220:[0,.69444,.14205,0,.5],8221:rr},"SansSerif-Regular":{32:lr,33:[0,.69444,0,0,.31945],34:Uo,35:U,36:Js,37:ee,38:[0,.69444,0,0,.75834],39:Oo,40:ks,41:ks,42:Se,43:ho,44:Te,45:[0,.44444,0,0,.33333],46:He,47:ms,48:Xe,49:Xe,50:Xe,51:Xe,52:Xe,53:Xe,54:Xe,55:Xe,56:Xe,57:Xe,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:ht,64:St,65:St,66:St,67:wn,68:[0,.69444,0,0,.72223],69:Ae,70:[0,.69444,0,0,.56945],71:St,72:Ye,73:Oo,74:ht,75:[0,.69444,0,0,.69445],76:Re,77:[0,.69444,0,0,.875],78:Ye,79:[0,.69444,0,0,.73611],80:wn,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:jl,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:St,89:[0,.69444,.025,0,.66667],90:Ta,91:et,93:et,94:Uo,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:bt,99:_t,100:bt,101:_t,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:bt,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:ur,111:[0,.44444,0,0,.5],112:It,113:It,114:[0,.44444,.01389,0,.34167],115:Rt,116:[0,.57143,0,0,.36111],117:ur,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],160:lr,168:[0,.67937,0,0,.5],176:St,184:_r,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:Uo,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:Uo,715:Uo,728:Uo,729:[0,.67937,0,0,.27778],730:St,732:[0,.67659,0,0,.5],733:Uo,915:Re,916:fr,920:Kn,923:Ta,926:St,928:Ye,931:hl,933:Kn,934:hl,936:Kn,937:hl,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:Oo,8217:Oo,8220:Uo,8221:Uo},"Script-Regular":{32:lr,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],160:lr},"Size1-Regular":{32:lr,40:gr,41:gr,47:Sr,91:dn,92:Sr,93:dn,123:Ar,125:Ar,160:lr,710:yt,732:yt,770:yt,771:yt,8214:[-99e-5,.601,0,0,.77778],8593:_n,8595:_n,8657:gn,8659:gn,8719:vr,8720:vr,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:Or,8748:Nr,8749:Nr,8750:Or,8896:br,8897:br,8898:br,8899:br,8968:Zr,8969:Zr,8970:Zr,8971:Zr,9168:ns,10216:Zr,10217:Zr,10752:Cn,10753:Cn,10754:Cn,10756:br,10758:br},"Size2-Regular":{32:lr,40:Xn,41:Xn,47:Vn,91:Nn,92:Vn,93:Nn,123:di,125:di,160:lr,710:zn,732:zn,770:zn,771:zn,8719:Li,8720:Li,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:Fa,8748:vn,8749:vn,8750:Fa,8896:ji,8897:ji,8898:ji,8899:ji,8968:Ri,8969:Ri,8970:Ri,8971:Ri,10216:ia,10217:ia,10752:Hi,10753:Hi,10754:Hi,10756:ji,10758:ji},"Size3-Regular":{32:lr,40:Ka,41:Ka,47:Gi,91:As,92:Gi,93:As,123:Bn,125:Bn,160:lr,710:fi,732:fi,770:fi,771:fi,8730:[.95003,1.45,0,0,1],8968:mi,8969:mi,8970:mi,8971:mi,10216:Bn,10217:Bn},"Size4-Regular":{32:lr,40:Zn,41:Zn,47:oi,91:kn,92:oi,93:kn,123:Ki,125:Ki,160:lr,710:Xi,732:Xi,770:Xi,771:Xi,8730:[1.25003,1.75,0,0,1],8968:qi,8969:qi,8970:qi,8971:qi,9115:Mo,9116:ki,9117:Mo,9118:Mo,9119:ki,9120:Mo,9121:ro,9122:ns,9123:ro,9124:ro,9125:ns,9126:ro,9127:Qo,9128:bn,9129:no,9130:[0,.3,0,0,.88889],9131:Qo,9132:bn,9133:no,9143:[.88502,.915,0,0,1.05556],10216:Ki,10217:Ki,57344:Cs,57345:Cs,57680:ga,57681:ga,57682:ga,57683:ga},"Typewriter-Regular":{32:Ko,33:qr,34:qr,35:qr,36:fa,37:fa,38:qr,39:qr,40:fa,41:fa,42:[0,.52083,0,0,.525],43:so,44:[.13889,.125,0,0,.525],45:so,46:[0,.125,0,0,.525],47:fa,48:qr,49:qr,50:qr,51:qr,52:qr,53:qr,54:qr,55:qr,56:qr,57:qr,58:Ii,59:[.13889,.43056,0,0,.525],60:Va,61:[-.19549,.41562,0,0,.525],62:Va,63:qr,64:qr,65:qr,66:qr,67:qr,68:qr,69:qr,70:qr,71:qr,72:qr,73:qr,74:qr,75:qr,76:qr,77:qr,78:qr,79:qr,80:qr,81:[.13889,.61111,0,0,.525],82:qr,83:qr,84:qr,85:qr,86:qr,87:qr,88:qr,89:qr,90:qr,91:fa,92:fa,93:fa,94:qr,95:[.09514,0,0,0,.525],96:qr,97:Ii,98:qr,99:Ii,100:qr,101:Ii,102:qr,103:bo,104:qr,105:qr,106:[.22222,.61111,0,0,.525],107:qr,108:qr,109:Ii,110:Ii,111:Ii,112:bo,113:bo,114:Ii,115:Ii,116:[0,.55358,0,0,.525],117:Ii,118:Ii,119:Ii,120:Ii,121:bo,122:Ii,123:fa,124:fa,125:fa,126:qr,127:qr,160:Ko,176:qr,184:[.19445,0,0,0,.525],305:Ii,567:bo,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:qr,715:qr,728:qr,730:qr,770:qr,771:qr,776:qr,915:qr,916:qr,920:qr,923:qr,926:qr,928:qr,931:qr,933:qr,934:qr,936:qr,937:qr,8216:qr,8217:qr,8242:qr,9251:[.11111,.21944,0,0,.525]}},gs=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,is=10,us=.25,bl=1.2,as=.431,$s={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[as,as,as],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.5,.732,.925],num2:[.394,.384,.5],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:[us,us,us],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]},ds=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Lo=5,wo={"\xA0":" ","\u200B":" ",\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 qs(e,t){e===void 0&&(e=77);const r=Bs[t][e];if(r)return{defaultMetrics:!1,depth:r[0],height:r[1],italic:r[2],skew:r[3],width:r[4]};if(e===11034)return{defaultMetrics:!0,depth:.2,height:.8,italic:0,skew:0,width:.8};const n=String.fromCodePoint(e);if(n in wo)e=wo[n].codePointAt(0);else if(gs.test(n))return e=77,{defaultMetrics:!0,depth:.2,height:.9,italic:0,skew:0,width:1};return{defaultMetrics:!0,depth:.2,height:.7,italic:0,skew:0,width:.8}}var Nl={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"],longrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],longleftarrow:[["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],longleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],longrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],longleftrightharpoons:[["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],xleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],longleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],longRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716],longLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},zl={widehat1:[1062,239,.24],widehat2:[2364,300,.3],widehat3:[2364,360,.36],widehat4:[2364,420,.42],widecheck1:[1062,239,.24],widecheck2:[2364,300,.3],widecheck3:[2364,360,.36],widecheck4:[2364,420,.42],widetilde1:[600,260,.26],widetilde2:[1033,286,.286],widetilde3:[2339,306,.306],widetilde4:[2340,312,.34],overarc:[1061,159,.3],underarc:[1061,159,.3]},wl={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`,overarc:"M529 0c179 0 524 115 524 115 5 1 9 5 9 10 0 1-1 2-1 3l-4 22c-1 5-5 9-11 9h-2s-338-93-512-92c-174 0-513 92-513 92h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13 0 0 342-115 520-115z",underarc:`m 529 160
c -179 0 -524 -115 -524 -115
c -5 -1 -9 -5 -9 -10
c 0 -1 1 -2 1 -3
l 4 -22
c 1 -5 5 -9 11 -9
h 2
s 338 93 512 92
c 174 0 513 -92 513 -92
h 2
c 5 0 9 4 11 9
l 5 22
c 1 6 -2 12 -8 13
c 0 0 -342 115 -520 115
z
`,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`,widetilde1:`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`,widetilde2:`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`,widetilde3:`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`,widetilde4:`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`};function BA(e){if(zl[e]){const[X,ue,Ke]=zl[e],ft=`<span class="stretchy" style="height:${Ke}em"><svg width="100%" height="${Ke}em" viewBox="0 0 ${X} ${ue}" preserveAspectRatio="none" ><path fill="currentcolor" d="${wl[e]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*Ke/2)/100}em;min-width:0">${ft}</span>`}const[t,r,n,i]=Nl[e];let s,A;const M=n/1e3;t.length===3?(s=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],A=["xMinYMin","xMidYMin","xMaxYMin"]):t.length===2?(s=["slice-1-of-2","slice-2-of-2"],A=["xMinYMin","xMaxYMin"]):(s=["slice-1-of-1"],A=[i]);const z=t.map((X,ue)=>`<span class="${s[ue]}" style=height:${M}em><svg width=400em height=${M}em viewBox="0 0 400000 ${n}" preserveAspectRatio="${A[ue]} slice"><path fill="currentcolor" d="${wl[X]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${M}em;min-width:${r}em;">${z}</span>`}function Xc(e){return Nl[e]?Nl[e][2]/1e3:zl[e][2]}function Ca(e){const t=[];for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(n===13&&e.charCodeAt(r+1)===10&&(n=10,r++),(n===13||n===12)&&(n=10),n===0&&(n=65533),n>=55296&&n<=56319){const i=e.charCodeAt(r+1);if(i>=56320&&i<=57343){const s=n-55296,A=i-56320;n=Tu(2,16)+s*Tu(2,10)+A,r++}}t.push(n)}return t}var ea=8205,vs=[[ea,1],[65038,2],[127995,5],[129456,4],[917536,96]],go,fs=[127462,127487];function Ss(e){var t;if(go===void 0){go={};for(const r of vs)for(let n=r[0];n<=r[0]+r[1]-1;n++)go[n]=!0}return(t=go[e])!=null?t:!1}function Es(e){return e>=fs[0]&&e<=fs[1]}function _s(e){if(/^[\u0020-\u00FF]*$/.test(e))return e;const t=[],r=Ca(e);let n=0;for(;n<r.length;){const i=r[n++],s=r[n];if(s===ea){const A=n-1;for(n+=2;r[n]===ea;)n+=2;t.push(String.fromCodePoint(...r.slice(A,n-A+1)))}else if(Ss(s)){const A=n-1;for(;Ss(r[n]);)n+=r[n]===ea?2:1;t.push(String.fromCodePoint(...r.slice(A,2*n-A-1)))}else Es(i)?(n+=1,t.push(String.fromCodePoint(...r.slice(n-2,2)))):t.push(String.fromCodePoint(i))}return t}var Dc=class{constructor(e){this.obeyspaces=!1,this.pos=0,this.s=_s(e)}end(){return this.pos>=this.s.length}get(){return this.pos<this.s.length?this.s[this.pos++]:""}peek(){return this.s[this.pos]}match(e){const t=typeof this.s=="string"?e.exec(this.s.slice(this.pos)):e.exec(this.s.slice(this.pos).join(""));return t!=null&&t[0]?(this.pos+=t[0].length,t[0]):""}next(){if(this.end())return null;if(!this.obeyspaces&&this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]+/)||this.obeyspaces&&this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]/))return"<space>";const e=this.get();if(e==="\\"){if(!this.end()){let t=this.match(/^[a-zA-Z\*]+/);return t?this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]*/):t=this.get(),"\\"+t}}else{if(e==="{")return"<{>";if(e==="}")return"<}>";if(e==="^"){if(this.peek()==="^"){this.get();const t=this.match(/^(\^(\^(\^(\^[\da-f])?[\da-f])?[\da-f])?[\da-f])?[\da-f]{2}/);if(t)return String.fromCodePoint(Number.parseInt(t.slice(t.lastIndexOf("^")+1),16))}return e}else if(e==="#"){if(!this.end()){let t=!1;if(/[\d?@]/.test(this.peek())&&(t=!0,this.pos+1<this.s.length)){const r=this.s[this.pos+1];t=/[^\dA-Za-z]/.test(r)}return t?"#"+this.get():"#"}}else if(e==="$")return this.peek()==="$"?(this.get(),"<$$>"):"<$>"}return e}};function ll(e,t){var r,n,i,s;const A=[];let M=e.next();if(M&&M!=="\\relax"){if(M==="\\noexpand")M=e.next(),M&&A.push(M);else if(M==="\\obeyspaces")e.obeyspaces=!0;else if(M==="\\bgroup")A.push("<{>");else if(M==="\\egroup")A.push("<}>");else if(M==="\\string"){if(M=e.next(),M)if(M.startsWith("\\"))for(const z of M)A.push(z==="\\"?"\\backslash":z);else M==="<{>"?A.push("\\{"):M==="<space>"?A.push("~"):M==="<}>"&&A.push("\\}")}else if(M==="\\csname"){for(;e.peek()==="<space>";)e.next();let z="",X=!1,ue=[];do{if(ue.length===0)if(/^#[\d?@]$/.test(e.peek())){const Ke=e.get().slice(1);ue=gc((n=(r=t==null?void 0:t(Ke))!=null?r:t==null?void 0:t("?"))!=null?n:"\\placeholder{}",t),M=ue[0]}else M=e.next(),ue=M?[M]:[];X=ue.length===0,!X&&M==="\\endcsname"&&(X=!0,ue.shift()),X||(X=M==="<$>"||M==="<$$>"||M==="<{>"||M==="<}>"||typeof M=="string"&&M.length>1&&M.startsWith("\\")),X||(z+=ue.shift())}while(!X);z&&A.push("\\"+z),A.push(...ue)}else if(M!=="\\endcsname")if(M.length>1&&M.startsWith("#")){const z=M.slice(1);A.push(...gc((s=(i=t==null?void 0:t(z))!=null?i:t==null?void 0:t("?"))!=null?s:"\\placeholder{}",t))}else A.push(M)}return A}function gc(e,t=null){const r=[];let n="";for(const A of e.toString().split(/\r?\n/)){n&&r.push(n),n=" ";const M=A.match(/((?:\\%)|[^%])*/);M!==null&&r.push(M[0])}const i=new Dc(nt(r.join(""))),s=[];do s.push(...ll(i,t));while(!i.end());return s}function Ba(e){let t="";const r=[];for(const n of e)n&&(t&&/^[a-zA-Z\*]/.test(n)&&r.push(t),r.push(n),/^\\[a-zA-Z]+\*?[\"\'][^\ ]+$/.test(n)&&r.push(" "),t=/\\[a-zA-Z]+\*?$/.test(n)?" ":"");return r.join("")}function So(e,...t){return console.assert(e.startsWith("\\")),t.length===0?e:Ba([e,...t.map(r=>`{${r}}`)])}function xl(e){return Ba(e.map(t=>{var r;return(r={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[t])!=null?r:t}))}var rc=class Kf{constructor(t){Kf._registry[t]=this}static createAtom(t,r,n){return Kf._registry[t].createAtom(r,gt(r,t),n)}static serialize(t,r){var n;if(!t||t.length===0)return"";if((n=r.skipStyles)!=null&&n){const i=[];for(const s of HA(t)){const A=Kf._registry[s[0].mode];i.push(...A.serialize(s,r))}return Ba(i)}return Ba(Jc(t,r))}static getFont(t,r,n){return Kf._registry[t].getFont(r,n)}};rc._registry={};var Ns=rc;function HA(e){const t=[];let r=[],n="NONE";for(const i of e)i.type!=="first"&&(i.mode!==n?(r.length>0&&t.push(r),r=[i],n=i.mode):r.push(i));return r.length>0&&t.push(r),t}function Cl(e,t){const r=[];let n=[],i;for(const s of e)if(s.type!=="first"&&s.style){let A;t==="variant"?(A=s.style.variant,s.style.variantStyle&&s.style.variantStyle!=="up"&&(A+="-"+s.style.variantStyle)):A=s.style[t],A===i?n.push(s):(n.length>0&&r.push(n),n=[s],i=A)}return n.length>0&&r.push(n),r}function jA(e,t){var r;const{parent:n}=e[0],i=n==null?void 0:n.computedStyle.color,s=[];for(const A of HA(e)){const M=t.defaultMode;for(const z of Cl(A,"color")){const X=z[0].computedStyle,ue=Ns._registry[z[0].mode].serialize(z,E(f({},t),{defaultMode:M==="text"?"text":"math"}));!t.skipStyles&&X.color&&X.color!=="none"&&(!n||i!==X.color)?s.push(So("\\textcolor",(r=X.verbatimColor)!=null?r:X.color,Ba(ue))):s.push(Ba(ue))}}return s}function zA(e,t){const{parent:r}=e[0],n=r==null?void 0:r.computedStyle.backgroundColor;return Cl(e,"backgroundColor").map(i=>{var s;if(i.length>0||i[0].type!=="box"){const A=i[0].computedStyle;if(A.backgroundColor&&A.backgroundColor!=="none"&&(!r||n!==A.backgroundColor))return So("\\colorbox",(s=A.verbatimBackgroundColor)!=null?s:A.backgroundColor,Ba(jA(i,E(f({},t),{defaultMode:"text"}))))}return Ba(jA(i,t))})}function Jc(e,t){if(e.length===0)return[];const{parent:r}=e[0],n=r==null?void 0:r.computedStyle.fontSize,i=[];for(const s of Cl(e,"fontSize")){const A=s[0].computedStyle.fontSize,M=zA(s,t);M&&(A&&A!=="auto"&&(!r||n!==A)?i.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][A],...M):i.push(...M))}return i}function $l(e){return e?{mord:"ord",mbin:"bin",mop:"op",mrel:"rel",mopen:"open",mclose:"close",mpunct:"punct",minner:"inner",spacing:"ignore",latex:"latex",composition:"inner",error:"inner",placeholder:"ord",supsub:"ignore"}[e]:void 0}function vc(e){if(e.length===0)return"ord";const t=$l(e[0].type),r=$l(e[e.length-1].type);return t&&t===r?t:"ord"}function nc(e,t){if(typeof e=="string")return e;if(typeof e=="number"){console.assert(Number.isFinite(e));const r=Math.ceil(100*e)/100;return r===0?"0":r.toString()+(t!=null?t:"")}return""}var fn=class Gh{constructor(t,r){var n,i,s,A,M;if(typeof t=="number"?this.value=String.fromCodePoint(t):typeof t=="string"?this.value=t:S(t)?this.children=t.filter(X=>X!==null):t&&t instanceof Gh&&(this.children=[t]),this.children)for(const X of this.children)X.parent=this;this.type=(n=r==null?void 0:r.type)!=null?n:"ignore",this.isSelected=(r==null?void 0:r.isSelected)===!0,r!=null&&r.caret&&(this.caret=r.caret),this.classes=(i=r==null?void 0:r.classes)!=null?i:"",this.isTight=(s=r==null?void 0:r.isTight)!=null?s:!1,r!=null&&r.attributes&&(this.attributes=r.attributes);let z=r==null?void 0:r.fontFamily;r!=null&&r.style&&this.value&&(z=(M=Ns.getFont((A=r.mode)!=null?A:"math",this,E(f({variant:"normal"},r.style),{letterShapeStyle:r.letterShapeStyle})))!=null?M:void 0),z||(z="Main-Regular"),this._height=0,this._depth=0,this._width=0,this.hasExplicitWidth=!1,this.skew=0,this.italic=0,this.maxFontSize=0,this.scale=1,(r==null?void 0:r.maxFontSize)!==void 0&&(this.maxFontSize=r.maxFontSize),EA(this,z)}set atomID(t){t===void 0||t.length===0||(this.id=t)}selected(t){if(this.isSelected!==t&&(this.isSelected=t,this.children))for(const r of this.children)r.selected(t)}setStyle(t,r,n){if(r===void 0)return;const i=nc(r,n);i.length>0&&(this.cssProperties||(this.cssProperties={}),this.cssProperties[t]=i)}setTop(t){Number.isFinite(t)&&Math.abs(t)>.01&&(this.cssProperties||(this.cssProperties={}),this.cssProperties.top=nc(t,"em"),this.height-=t,this.depth+=t)}get left(){var t;return(t=this.cssProperties)!=null&&t["margin-left"]?Number.parseFloat(this.cssProperties["margin-left"]):0}set left(t){Number.isFinite(t)&&(t===0?this.cssProperties&&delete this.cssProperties["margin-left"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-left"]=nc(t,"em")))}set right(t){Number.isFinite(t)&&(t===0?this.cssProperties&&delete this.cssProperties["margin-right"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-right"]=nc(t,"em")))}set bottom(t){Number.isFinite(t)&&(t===0?this.cssProperties&&delete this.cssProperties["margin-bottom"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-bottom"]=nc(t,"em")))}get width(){return this._width*this.scale}set width(t){this._width=t,this.hasExplicitWidth=!0}set softWidth(t){}get height(){return this._height*this.scale}set height(t){this._height=t}get depth(){return this._depth*this.scale}set depth(t){this._depth=t}wrap(t){const r=t.parent;if(!r)return this;t.isPhantom&&this.setStyle("opacity",0);const n=t.color;n&&n!==r.color&&this.setStyle("color",n);let i=t.backgroundColor;this.isSelected&&(i=ve(i)),i&&i!==r.backgroundColor&&(this.setStyle("background-color",i),this.setStyle("display","inline-block"));const s=t.scalingFactor;return this.scale=s,this.skew*=s,this.italic*=s,this}toMarkup(){var t,r,n,i;let s=(t=this.value)!=null?t:"";if(this.children)for(const Ft of this.children)s+=Ft.toMarkup();let A="";if(this.svgBody)A=BA(this.svgBody);else if(this.svgOverlay){A='<span style="',A+="display: inline-block;",A+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,A+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,A+='">',A+=s,A+="</span>",A+='<svg style="position:absolute;overflow:visible;',A+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const Ft=(r=this.cssProperties)==null?void 0:r.padding;Ft?(A+=`top:${Ft};`,A+=`left:${Ft};`,A+=`width:calc(100% - 2 * ${Ft} );`):A+="top:0;left:0;width:100%;",A+="z-index:2;",A+='"',this.svgStyle&&(A+=this.svgStyle),A+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,A+=`>${this.svgOverlay}</svg>`}let M="";const z=this.classes.split(" ");z.push((n={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?n:""),this.caret==="latex"&&z.push("ML__latex-caret"),this.isSelected&&z.push("ML__selected");const X=z.length===1?z[0]:z.filter((Ft,Nt,Er)=>Ft.length>0&&Er.indexOf(Ft)===Nt).join(" ");if(X.length>0&&(M+=` class="${X}"`),this.id&&(M+=` data-atom-id=${this.id}`),this.cssId&&(M+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(M+=" "+Object.keys(this.attributes).map(Ft=>`${Ft}="${this.attributes[Ft]}"`).join(" ")),this.htmlData){const Ft=this.htmlData.split(",");for(const Nt of Ft){const Er=Nt.match(/([^=]+)=(.+$)/);if(Er){const Fn=Er[1].trim().replace(/ /g,"-");Fn&&(M+=` data-${Fn}="${Er[2]}" `)}else{const Fn=Nt.trim().replace(/ /g,"-");Fn&&(M+=` data-${Fn} `)}}}const ue=(i=this.cssProperties)!=null?i:{};this.hasExplicitWidth&&ue.width===void 0&&(ue.width=`${Math.ceil(this._width*100)/100}em`);const Ke=Object.keys(ue).map(Ft=>`${Ft}:${ue[Ft]}`);if(this.scale!==void 0&&this.scale!==1&&(s.length>0||A.length>0)&&Ke.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const Ft=this.htmlStyle.split(";");let Nt="";for(const Er of Ft){const Fn=Er.match(/([^=]+):(.+$)/);if(Fn){const xr=Fn[1].trim().replace(/ /g,"-");xr&&(Nt+=`${xr}:${Fn[2]};`)}}Nt&&(M+=` style="${Nt}"`)}Ke.length>0&&(M+=` style="${Ke.join(";")}"`);let ft="";return M.length>0||A.length>0?ft=`<span${M}>${s}${A}</span>`:ft=s,this.caret==="text"?ft+='<span class="ML__text-caret"></span>':this.caret==="math"&&(ft+='<span class="ML__caret"></span>'),ft}tryCoalesceWith(t){if(this.svgBody||!this.value||t.svgBody||!t.value)return!1;const r=this.children&&this.children.length>0,n=t.children&&t.children.length>0;if(r||n)return!1;if(t.cssProperties||this.cssProperties){for(const z of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(t.cssProperties&&z in t.cssProperties||this.cssProperties&&z in this.cssProperties)return!1}const i=this.cssProperties?Object.keys(this.cssProperties).length:0,s=t.cssProperties?Object.keys(t.cssProperties).length:0;if(i!==s)return!1;if(i>0){for(const z of Object.keys(this.cssProperties))if(this.cssProperties[z]!==t.cssProperties[z])return!1}const A=this.classes.trim().replace(/\s+/g," ").split(" "),M=t.classes.trim().replace(/\s+/g," ").split(" ");if(A.length!==M.length)return!1;A.sort(),M.sort();for(const[z,X]of A.entries())if(X==="vertical-separator"||X!==M[z])return!1;return this.value+=t.value,this.height=Math.max(this.height,t.height),this.depth=Math.max(this.depth,t.depth),this._width=this._width+t._width,this.maxFontSize=Math.max(this.maxFontSize,t.maxFontSize),this.italic=t.italic,!0}};function Fs(e){if(!e||e.length===0)return[];e[0].children=Fs(e[0].children);const t=[e[0]];for(let r=1;r<e.length;r++)t[t.length-1].tryCoalesceWith(e[r])||(e[r].children=Fs(e[r].children),t.push(e[r]));return t}function SA(e){return e.children&&(e.children=Fs(e.children)),e}function AA(e,t){if(!e)return new fn(null,t);const r=new fn(null,{classes:"ML__strut",type:"ignore"});r.setStyle("height",Math.max(0,e.height),"em");const n=[r];if(e.depth!==0){const i=new fn(null,{classes:"ML__strut--bottom",type:"ignore"});i.setStyle("height",e.height+e.depth,"em"),i.setStyle("vertical-align",-e.depth,"em"),n.push(i)}return n.push(e),new fn(n,E(f({},t),{type:"lift"}))}function sa(e){const t=Xc(e)/2,r=new fn(null,{maxFontSize:0});return r.height=t+.166,r.depth=t-.166,r.svgBody=e,r}function EA(e,t){var r;if(e.type==="latex"){e.height=.9,e.depth=.2,e._width=1;return}if(e.value){e.height=-1/0,e.depth=-1/0,e._width=0,e.skew=-1/0,e.italic=-1/0;for(let n=0;n<e.value.length;n++){const i=qs(e.value.codePointAt(n),t);e.height=Math.max(e.height,i.height),e.depth=Math.max(e.depth,i.depth),e._width+=i.width,e.skew=i.skew,e.italic=i.italic}return}if(e.children&&e.children.length>0){let n=-1/0,i=-1/0,s=0;for(const A of e.children)A.height>n&&(n=A.height),A.depth>i&&(i=A.depth),s=Math.max(s,(r=A.maxFontSize)!=null?r:0);e.height=n,e.depth=i,e._width=e.children.reduce((A,M)=>A+M.width,0),e.maxFontSize=s}}function $A(e){if("individualShift"in e){const t=e.individualShift;let r=t[0];const n=[r],i=-r.shift-r.box.depth;let s=i;for(let A=1;A<t.length;A++){const M=t[A],z=-M.shift-s-M.box.depth,X=z-(r.box.height+r.box.depth);s=s+z,n.push(X),n.push(M),r=M}return[n,i]}if("top"in e){let t=e.top;for(const r of e.children)t-=typeof r=="number"?r:r.box.height+r.box.depth;return[e.children,t]}else{if("bottom"in e)return[e.children,-e.bottom];if("firstBaseline"in e){const t=e.firstBaseline[0];if(typeof t=="number")throw new Error("First child must be an element.");return[e.firstBaseline,-t.box.depth]}else if("shift"in e){const t=e.children[0];if(typeof t=="number")throw new Error("First child must be an element.");return[e.children,-t.box.depth-e.shift]}}return[null,0]}function Zl(e){var t;const[r,n]=$A(e);if(!r)return[[],0,0];const i=new fn(null,{classes:"pstrut"});let s=0;for(const Nt of r)if(typeof Nt!="number"){const Er=Nt.box;s=Math.max(s,Er.maxFontSize,Er.height)}s+=2,i.height=s,i.setStyle("height",s,"em");const A=[];let M=n,z=n,X=n,ue=0;for(const Nt of r){if(typeof Nt=="number")X+=Nt;else{const Er=Nt.box,Fn=(t=Nt.classes)!=null?t:[],xr=new fn([i,Er],{classes:Fn.join(" "),style:Nt.style});Er.setStyle("height",Er.height+Er.depth,"em"),Er.setStyle("display","inline-block"),xr.setStyle("top",-s-X-Er.depth,"em"),Nt.marginLeft&&xr.setStyle("margin-left",Nt.marginLeft,"em"),Nt.marginRight&&xr.setStyle("margin-right",Nt.marginRight,"em"),A.push(xr),X+=Er.height+Er.depth,ue=Math.max(ue,xr.width)}M=Math.min(M,X),z=Math.max(z,X)}A.forEach(Nt=>{Nt.softWidth=ue});const Ke=new fn(A,{classes:"vlist"});if(Ke.softWidth=ue,Ke.height=z,Ke.setStyle("height",z,"em"),M>=0)return[[new fn(Ke,{classes:"vlist-r"})],z,-M];const ft=new fn(new fn(null),{classes:"vlist"});ft.height=-M,ft.setStyle("height",-M,"em");const Ft=new fn(8203,{classes:"vlist-s",maxFontSize:0});return Ft.softWidth=0,Ft.height=0,Ft.depth=0,[[new fn([Ke,Ft],{classes:"vlist-r"}),new fn(ft,{classes:"vlist-r"})],z,-M]}var Xo=class extends fn{constructor(e,t){var r;const[n,i,s]=Zl(e);super(n.length===1?n[0]:n,{type:t==null?void 0:t.type,classes:((r=t==null?void 0:t.classes)!=null?r:"")+" vlist-t"+(n.length===2?" vlist-t2":"")}),this.height=i,this.depth=s,this.softWidth=n.reduce((A,M)=>Math.max(A,M.width),0)}};function ZA(e,t){var r,n,i,s,A;const M=e.metrics,z=new fn(t.base),X=(r=t.baseShift)!=null?r:0,ue=(n=t.slant)!=null?n:0;let Ke=0,ft=0;t.above&&(Ke=(i=t.aboveShift)!=null?i:Math.max(M.bigOpSpacing1,M.bigOpSpacing3-t.above.depth)),t.below&&(ft=(s=t.belowShift)!=null?s:Math.max(M.bigOpSpacing2,M.bigOpSpacing4-t.below.height));let Ft=null;if(t.below&&t.above){const Nt=M.bigOpSpacing5+t.below.height+t.below.depth+ft+z.depth+X;Ft=new Xo({bottom:Nt,children:[M.bigOpSpacing5,{box:t.below,marginLeft:-ue,classes:["ML__center"]},ft,{box:z,classes:["ML__center"]},Ke,{box:t.above,marginLeft:ue,classes:["ML__center"]},M.bigOpSpacing5]}).wrap(e)}else if(t.below&&!t.above)Ft=new Xo({top:z.height-X,children:[M.bigOpSpacing5,{box:t.below,marginLeft:-ue,classes:["ML__center"]},ft,{box:z,classes:["ML__center"]}]}).wrap(e);else if(!t.below&&t.above){const Nt=z.depth+X;Ft=new Xo({bottom:Nt,children:[{box:z,classes:["ML__center"]},Ke,{box:t.above,marginLeft:ue,classes:["ML__center"]},M.bigOpSpacing5]}).wrap(e)}else{const Nt=z.depth+X;Ft=new Xo({bottom:Nt,children:[{box:z},M.bigOpSpacing5]}).wrap(e)}return new fn(Ft,{type:(A=t.type)!=null?A:"op"})}var Pc=7,yc=6,_A=5,Vl=4,ic=3,lo=2,Os=1,ts=0,bc=class{constructor(e,t,r){this.id=e,this.sizeDelta=t,this.cramped=r;const n={"-4":2,"-3":1,0:0}[t];this.metrics=Object.keys($s).reduce((i,s)=>E(f({},i),{[s]:$s[s][n]}),{})}getFontSize(e){return Math.max(1,e+this.sizeDelta)}get sup(){return Sa[[ts,Os,ts,Os,lo,ic,lo,ic][this.id]]}get sub(){return Sa[[ts,ts,ts,ts,lo,lo,lo,lo][this.id]]}get fracNum(){return Sa[[ts,Os,ts,Os,lo,ic,Vl,_A][this.id]]}get fracDen(){return Sa[[ts,ts,ts,ts,lo,lo,Vl,Vl][this.id]]}get cramp(){return Sa[[ts,ts,lo,lo,Vl,Vl,yc,yc][this.id]]}get isTight(){return this.sizeDelta<0}},va={7:new bc(Pc,0,!1),6:new bc(yc,0,!0),5:new bc(_A,0,!1),4:new bc(Vl,0,!0),3:new bc(ic,-3,!1),2:new bc(lo,-3,!0),1:new bc(Os,-4,!1),0:new bc(ts,-4,!0)},Sa=E(f({},va),{displaystyle:va[Pc],textstyle:va[_A],scriptstyle:va[ic],scriptscriptstyle:va[Os]});function Zs(e,t){var r;if(!e)return 0;const n={pt:1,mm:7227/2540,cm:7227/254,ex:35271/8192,px:3/4,em:is,bp:803/800,dd:1238/1157,pc:12,in:72.27,mu:10/18}[(r=e.unit)!=null?r:"pt"];if(Number.isFinite(t)){const i=Tu(10,t);return Math.round(e.dimension/is*n*i)/i}return e.dimension*n}function Wl(e,t){if(e===null)return 0;const r=Zs(e)/is;if(Number.isFinite(t)){const n=Tu(10,t);return Math.round(r*n)/n}return r}function Ol(e){var t;return`${e.dimension}${(t=e.unit)!=null?t:"pt"}`}function VA(e){let t=Ol(e.glue);return e.grow&&e.grow.dimension!==0&&(t+=` plus ${Ol(e.grow)}`),e.shrink&&e.shrink.dimension!==0&&(t+=` minus ${Ol(e.shrink)}`),t}function os(e){var t,r;if(e==null)return null;let n="";if("dimension"in e&&(n=`${e.dimension}${(t=e.unit)!=null?t:"pt"}`),"glue"in e&&(n=VA(e)),"number"in e)if(!("base"in e)||e.base==="decimal")n=Number(e.number).toString();else if(e.base==="alpha")n=`\`${String.fromCodePoint(e.number)}`;else{const i=Math.round(e.number)>>>0;e.base==="hexadecimal"?(n=Number(i).toString(16).toUpperCase(),i<=255?n=n.padStart(2,"0"):i<=65535?n=n.padStart(4,"0"):i<=16777215?n=n.padStart(6,"0"):n=n.padStart(8,"0"),n=`"${n}`):e.base==="octal"&&(n=Number(i).toString(8),i<=63?n=n.padStart(2,"0"):i<=30583?n=n.padStart(4,"0"):n=n.padStart(8,"0"),n=`'${n}`)}return"register"in e&&("factor"in e&&(e.factor===-1?n="-":e.factor!==1&&(n=Number(e.factor).toString())),"global"in e&&e.global&&(n+="\\global"),n+=`\\${e.register}`),"string"in e&&(n=e.string),(r=e.relax)!=null&&r&&(n+="\\relax"),n}function ys(e,t){return e==null?null:"number"in e?E(f({},e),{number:e.number*t}):"register"in e?"factor"in e&&e.factor?E(f({},e),{factor:e.factor*t}):E(f({},e),{factor:t}):"dimension"in e?E(f({},e),{dimension:e.dimension*t}):"glue"in e?e.shrink&&e.grow?{glue:ys(e.glue,t),shrink:ys(e.shrink,t),grow:ys(e.grow,t)}:e.shrink?{glue:ys(e.glue,t),shrink:ys(e.shrink,t)}:e.grow?{glue:ys(e.glue,t),grow:ys(e.grow,t)}:{glue:ys(e.glue,t)}:null}var ac={"p@":{dimension:1},"z@":{dimension:0},maxdimen:{dimension:16383.99999},hfuzz:{dimension:.1},vfuzz:{dimension:.1},overfullrule:{dimension:5},hsize:{dimension:6.5,unit:"in"},vsize:{dimension:8.9,unit:"in"},parindent:{dimension:20},maxdepth:{dimension:4},splitmaxdepth:{register:"maxdimen"},boxmaxdepth:{register:"maxdimen"},delimitershortfall:{dimension:5},nulldelimiterspace:{dimension:1.2,unit:"pt"},scriptspace:{dimension:.5},topskip:{dimension:10},splittopskip:{dimension:10},normalbaselineskip:{dimension:12},normallineskip:{dimension:1},normallineskiplimit:{dimension:0},jot:{dimension:3},doublerulesep:{dimension:2},arrayrulewidth:{dimension:.4},arraycolsep:{dimension:5},fboxsep:{dimension:3},fboxrule:{dimension:.4},"z@skip":{glue:{dimension:0},shrink:{dimension:0},grow:{dimension:0}},hideskip:{glue:{dimension:-1e3},grow:{dimension:1,unit:"fill"}},"@flushglue":{glue:{dimension:0},grow:{dimension:1,unit:"fill"}},parskip:{glue:{dimension:0},grow:{dimension:1}},abovedisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},abovedisplayshortskip:{glue:{dimension:0},grow:{dimension:3}},belowdisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},belowdisplayshortskip:{glue:{dimension:7},grow:{dimension:3},shrink:{dimension:4}},parfillskip:{glue:{dimension:0},grow:{dimension:1,unit:"fil"}},thinmuskip:{glue:{dimension:3,unit:"mu"}},medmuskip:{glue:{dimension:4,unit:"mu"},grow:{dimension:2,unit:"mu"},shrink:{dimension:4,unit:"mu"}},thickmuskip:{glue:{dimension:5,unit:"mu"},grow:{dimension:5,unit:"mu"}},smallskipamount:{glue:{dimension:3},grow:{dimension:1},shrink:{dimension:1}},medskipamount:{glue:{dimension:6},grow:{dimension:2},shrink:{dimension:3}},bigskipamount:{glue:{dimension:12},grow:{dimension:2},shrink:{dimension:4}},pretolerance:100,tolerance:200,hbadness:1e3,vbadness:1e3,linepenalty:10,hyphenpenalty:50,exhyphenpenalty:50,binoppenalty:700,relpenalty:500,clubpenalty:150,widowpenalty:150,displaywidowpenalty:50,brokenpenalty:100,predisplaypenalty:1e4,doublehyphendemerits:1e4,finalhyphendemerits:5e3,adjdemerits:1e4,tracinglostchars:1,uchyph:1,delimiterfactor:901,defaulthyphenchar:"\\-",defaultskewchar:-1,newlinechar:-1,showboxbreadth:5,showboxdepth:3,errorcontextlines:5,interdisplaylinepenalty:100,interfootnotelinepenalty:100,baselineSkip:1.2,arraystretch:1,month:new Date().getMonth()+1,day:new Date().getDate(),year:new Date().getFullYear()};function FA(){return f({},ac)}function Nc(){return{registers:FA(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:te.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:je,backgroundColorMap:q,getMacro:e=>jt(e,At())}}var la=class Xh{constructor(t,r){var n,i,s,A,M,z,X,ue,Ke,ft,Ft,Nt,Er,Fn,xr;let nn;t!=null&&t.parent?(this.parent=t.parent,nn=t.parent,this.registers={}):(nn=f(f({},Nc()),(n=t==null?void 0:t.from)!=null?n:{}),this.registers=nn.registers),nn.atomIdsSettings&&(this.atomIdsSettings=f({},nn.atomIdsSettings)),this.renderPlaceholder=nn.renderPlaceholder,this.isPhantom=(A=(s=t==null?void 0:t.isPhantom)!=null?s:(i=this.parent)==null?void 0:i.isPhantom)!=null?A:!1,this.letterShapeStyle=nn.letterShapeStyle,this.minFontScale=nn.minFontScale,r!=null&&r.color&&r.color!=="none"?this.color=r.color:this.color=(z=(M=this.parent)==null?void 0:M.color)!=null?z:"",r!=null&&r.backgroundColor&&r.backgroundColor!=="none"?this.backgroundColor=r.backgroundColor:this.backgroundColor=(ue=(X=this.parent)==null?void 0:X.backgroundColor)!=null?ue:"",r!=null&&r.fontSize&&r.fontSize!=="auto"&&r.fontSize!==((Ke=this.parent)==null?void 0:Ke.size)?this.size=r.fontSize:this.size=(Ft=(ft=this.parent)==null?void 0:ft.size)!=null?Ft:Lo;let Rn=(Er=(Nt=this.parent)==null?void 0:Nt.mathstyle)!=null?Er:Sa.displaystyle;if(typeof(t==null?void 0:t.mathstyle)=="string"){if(nn instanceof Xh)switch(t.mathstyle){case"cramp":Rn=Rn.cramp;break;case"superscript":Rn=Rn.sup;break;case"subscript":Rn=Rn.sub;break;case"numerator":Rn=Rn.fracNum;break;case"denominator":Rn=Rn.fracDen;break}switch(t.mathstyle){case"textstyle":Rn=Sa.textstyle;break;case"displaystyle":Rn=Sa.displaystyle;break;case"scriptstyle":Rn=Sa.scriptstyle;break;case"scriptscriptstyle":Rn=Sa.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=Rn,this.smartFence=nn.smartFence,this.placeholderSymbol=nn.placeholderSymbol,this.colorMap=(Fn=nn.colorMap)!=null?Fn:pn=>pn,this.backgroundColorMap=(xr=nn.backgroundColorMap)!=null?xr:pn=>pn,this.getMacro=nn.getMacro,console.assert(this.parent!==void 0||this.registers!==void 0)}makeID(){if(!this.atomIdsSettings)return;if(this.atomIdsSettings.overrideID)return this.atomIdsSettings.overrideID;if(typeof this.atomIdsSettings.seed!="number")return`${Date.now().toString(36).slice(-2)}${Math.floor(Math.random()*1e5).toString(36)}`;const t=this.atomIdsSettings.seed.toString(36);return this.atomIdsSettings.seed+=1,t}scale(t){return t*this.effectiveFontSize}get scalingFactor(){return this.parent?this.effectiveFontSize/this.parent.effectiveFontSize:1}get isDisplayStyle(){return this.mathstyle.id===Pc||this.mathstyle.id===yc}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(ds[Math.max(1,this.size+this.mathstyle.sizeDelta)],this.minFontScale)}getRegister(t){var r;if((r=this.registers)!=null&&r[t])return this.registers[t];if(this.parent)return this.parent.getRegister(t)}getRegisterAsNumber(t){const r=this.getRegister(t);if(typeof r=="number")return r;if(typeof r=="string")return Number(r)}getRegisterAsGlue(t){var r;if((r=this.registers)!=null&&r[t]){const n=this.registers[t];return typeof n=="object"&&"glue"in n?n:typeof n=="object"&&"dimension"in n?{glue:{dimension:n.dimension}}:typeof n=="number"?{glue:{dimension:n}}:void 0}if(this.parent)return this.parent.getRegisterAsGlue(t)}getRegisterAsEm(t,r){return Wl(this.getRegisterAsDimension(t),r)}getRegisterAsDimension(t){var r;if((r=this.registers)!=null&&r[t]){const n=this.registers[t];return typeof n=="object"&&"glue"in n?n.glue:typeof n=="object"&&"dimension"in n?n:typeof n=="number"?{dimension:n}:void 0}if(this.parent)return this.parent.getRegisterAsDimension(t)}setRegister(t,r){if(r===void 0){delete this.registers[t];return}this.registers[t]=r}evaluate(t){if(!t||!("register"in t))return t;let r=this;if("global"in t&&t.global)for(;r.parent;)r=r.parent;let n=1;"factor"in t&&t.factor!==1&&t.factor!==void 0&&(n=t.factor);const i=r.getRegister(t.register);if(i===void 0)return;if(typeof i=="string")return{string:Number(i).toString()+i};if(typeof i=="number")return{number:n*i};const s=r.evaluate(i);if(s!==void 0)return"string"in s?{string:Number(i).toString()+s.string}:"number"in s?{number:n*s.number}:"dimension"in s?E(f({},s),{dimension:n*s.dimension}):"glue"in s?E(f({},s),{glue:E(f({},s.glue),{dimension:n*s.glue.dimension}),shrink:s.shrink?E(f({},s.shrink),{dimension:n*s.shrink.dimension}):void 0,grow:s.grow?E(f({},s.grow),{dimension:n*s.grow.dimension}):void 0}):t}toDimension(t){const r=this.evaluate(t);return r===void 0?null:"dimension"in r?r:"glue"in r?r.glue:"number"in r?{dimension:r.number}:null}toEm(t,r){if(t===null)return 0;const n=this.toDimension(t);return n===null?0:Zs(n,r)/is}toNumber(t){if(t===null)return null;const r=this.evaluate(t);return r===void 0?null:"number"in r?r.number:"dimension"in r?r.dimension:"glue"in r?r.glue.dimension:"string"in r?Number(r.string):null}toColor(t){var r,n;if(t===null)return null;const i=this.evaluate(t);return i===void 0?null:"string"in i?(n=(r=this.colorMap)==null?void 0:r.call(this,i.string))!=null?n:i.string:null}toBackgroundColor(t){var r,n;if(t===null)return null;const i=this.evaluate(t);return i===void 0?null:"string"in i?(n=(r=this.backgroundColorMap)==null?void 0:r.call(this,i.string))!=null?n:i.string:null}},Oc=["body","above","below","superscript","subscript"];function Gl(e){return typeof e=="string"&&Oc.includes(e)}function IA(e){return e!==void 0&&Array.isArray(e)&&e.length===2}var zr=class Yu{constructor(t){var r,n,i,s,A,M;this.type=t.type,typeof t.value=="string"&&(this.value=t.value),this.command=(n=(r=t.command)!=null?r:this.value)!=null?n:"",this.mode=(i=t.mode)!=null?i:"math",t.isFunction&&(this.isFunction=!0),t.limits&&(this.subsupPlacement=t.limits),this.style=f({},t.style),this.displayContainsHighlight=(s=t.displayContainsHighlight)!=null?s:!1,this.captureSelection=(A=t.captureSelection)!=null?A:!1,this.skipBoundary=(M=t.skipBoundary)!=null?M:!1,t.verbatimLatex!==void 0&&t.verbatimLatex!==null&&(this.verbatimLatex=t.verbatimLatex),t.args&&(this.args=t.args),t.body&&(this.body=t.body),this._changeCounter=0}static createBox(t,r,n){var i;if(!r)return null;const s=yd(r),A=[];for(const z of s){const X=z[0].style,ue=Qu(t,z,{style:{color:X.color,backgroundColor:X.backgroundColor,fontSize:X.fontSize}});ue&&A.push(ue)}if(A.length===0)return null;const M=((i=n==null?void 0:n.classes)!=null?i:"").trim();return A.length===1&&!M&&!(n!=null&&n.type)?A[0].wrap(t):new fn(A,{classes:M,type:n==null?void 0:n.type}).wrap(t)}static serialize(t,r){return Ns.serialize(t,r)}static commonAncestor(t,r){if(t===r||t.parent===r.parent)return t.parent;const n=new WeakSet;let{parent:i}=t;for(;i;)n.add(i),i=i.parent;for(i=r.parent;i;){if(n.has(i))return i;i=i.parent}console.assert(!!i)}static fromJson(t){return typeof t=="string"?new Yu({type:"mord",value:t,mode:"math"}):new Yu(t)}get latexMode(){return this.mode==="math"?"math":"text"}toJson(){const t={};if(this.type&&(t.type=this.type),this.mode!=="math"&&(t.mode=this.mode),this.command&&this.command!==this.value&&(t.command=this.command),this.value!==void 0&&(t.value=this.value),this.style&&Object.keys(this.style).length>0&&(t.style=f({},this.style)),this.verbatimLatex!==void 0&&(t.verbatimLatex=this.verbatimLatex),this.subsupPlacement&&(t.subsupPlacement=this.subsupPlacement),this.explicitSubsupPlacement&&(t.explicitSubsupPlacement=!0),this.isFunction&&(t.isFunction=!0),this.displayContainsHighlight&&(t.displayContainsHighlight=!0),this.isExtensibleSymbol&&(t.isExtensibleSymbol=!0),this.skipBoundary&&(t.skipBoundary=!0),this.captureSelection&&(t.captureSelection=!0),this.args&&(t.args=GA(this.args)),this._branches)for(const r of Object.keys(this._branches))this._branches[r]&&(t[r]=this._branches[r].filter(n=>n.type!=="first").map(n=>n.toJson()));return t.type==="mord"&&Object.keys(t).length===2&&"value"in t?t.value:t}get changeCounter(){return this.parent?this.parent.changeCounter:this._changeCounter}set isDirty(t){if(t){this.parent||this._changeCounter++,"verbatimLatex"in this&&(this.verbatimLatex=void 0),this._children=void 0;let{parent:r}=this;for(;r;)r.parent||r._changeCounter++,"verbatimLatex"in r&&(r.verbatimLatex=void 0),r._children=void 0,r=r.parent}}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=gt(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):this.body&&this.command?Ba([So(this.command,this.bodyToLatex(t)),this.supsubToLatex(t)]):this.body?Ba([this.bodyToLatex(t),this.supsubToLatex(t)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(t){var r;return Ns.serialize(this.body,E(f({},t),{defaultMode:(r=t.defaultMode)!=null?r:this.latexMode}))}aboveToLatex(t){return Ns.serialize(this.above,t)}belowToLatex(t){return Ns.serialize(this.below,t)}supsubToLatex(t){let r="";if(t=E(f({},t),{defaultMode:"math"}),this.branch("subscript")!==void 0){const n=Ns.serialize(this.subscript,t);n.length===0?r+="_{}":n.length===1?/^[0-9]$/.test(n)?r+=`_${n}`:r+=`_{${n}}`:r+=`_{${n}}`}if(this.branch("superscript")!==void 0){const n=Ns.serialize(this.superscript,t);n.length===0?r+="^{}":n.length===1?n==="\u2032"?r+="^\\prime ":n==="\u2033"?r+="^\\doubleprime ":/^[0-9]$/.test(n)?r+=`^${n}`:r+=`^{${n}}`:r+=`^{${n}}`}return r}get treeDepth(){let t=1,r=this.parent;for(;r;)r=r.parent,t+=1;return t}get inCaptureSelection(){let t=this;for(;t;){if(t.captureSelection)return!0;t=t.parent}return!1}get parentPrompt(){let t=this.parent;for(;t;){if(t.type==="prompt"&&!t.captureSelection)return t;t=t.parent}return null}branch(t){if(Gl(t)&&this._branches)return this._branches[t]}get branches(){if(!this._branches)return[];const t=[];for(const r of Oc)this._branches[r]&&t.push(r);return t}createBranch(t){return console.assert(Gl(t)),Gl(t)?(this._branches?this._branches[t]||(this._branches[t]=[this.makeFirstAtom(t)]):this._branches={[t]:[this.makeFirstAtom(t)]},this.isDirty=!0,this._branches[t]):[]}get row(){return IA(this.parentBranch)?this.parentBranch[0]:-1}get col(){return IA(this.parentBranch)?this.parentBranch[1]:-1}get body(){var t;return(t=this._branches)==null?void 0:t.body}set body(t){this.setChildren(t,"body")}get superscript(){var t;return(t=this._branches)==null?void 0:t.superscript}set superscript(t){this.setChildren(t,"superscript")}get subscript(){var t;return(t=this._branches)==null?void 0:t.subscript}set subscript(t){this.setChildren(t,"subscript")}get above(){var t;return(t=this._branches)==null?void 0:t.above}set above(t){this.setChildren(t,"above")}get below(){var t;return(t=this._branches)==null?void 0:t.below}set below(t){this.setChildren(t,"below")}get computedStyle(){var t,r;const n=typeof this.style.verbatimColor=="string",i=typeof this.style.verbatimBackgroundColor=="string",s=f(f({},(r=(t=this.parent)==null?void 0:t.computedStyle)!=null?r:{}),this.style);return delete s.variant,delete s.variantStyle,i||delete s.verbatimBackgroundColor,n||delete s.verbatimColor,s}applyStyle(t){this.isDirty=!0,this.style=f(f({},this.style),t),this.style.fontFamily==="none"&&delete this.style.fontFamily,this.style.fontShape==="auto"&&delete this.style.fontShape,this.style.fontSeries==="auto"&&delete this.style.fontSeries,this.style.color==="none"&&(delete this.style.color,delete this.style.verbatimColor),this.style.backgroundColor==="none"&&(delete this.style.backgroundColor,delete this.style.verbatimBackgroundColor),this.style.fontSize==="auto"&&delete this.style.fontSize;for(const r of this.children)r.applyStyle(t)}getInitialBaseElement(){var t,r,n;return this.hasEmptyBranch("body")?this:(console.assert(((t=this.body)==null?void 0:t[0].type)==="first"),(n=(r=this.body[1])==null?void 0:r.getInitialBaseElement())!=null?n:this)}getFinalBaseElement(){return this.hasEmptyBranch("body")?this:this.body[this.body.length-1].getFinalBaseElement()}isCharacterBox(){return this.type==="leftright"||this.type==="genfrac"||this.type==="subsup"||this.type==="delim"||this.type==="array"||this.type==="surd"?!1:this.getFinalBaseElement().type==="mord"}hasEmptyBranch(t){const r=this.branch(t);return r?(console.assert(r.length>0),console.assert(r[0].type==="first"),r.length===1):!0}setChildren(t,r){var n;if(!t||(console.assert(Gl(r)),!Gl(r)))return;console.assert(((n=t[0])==null?void 0:n.type)!=="first");const i=[this.makeFirstAtom(r),...t];this._branches?this._branches[r]=i:this._branches={[r]:i};for(const s of t)s.parent=this,s.parentBranch=r;this.isDirty=!0}makeFirstAtom(t){const r=new Yu({type:"first",mode:this.mode});return r.parent=this,r.parentBranch=t,r}addChild(t,r){console.assert(t.type!=="first"),this.createBranch(r).push(t),this.isDirty=!0,t.parent=this,t.parentBranch=r}addChildBefore(t,r){console.assert(r.parentBranch!==void 0);const n=this.createBranch(r.parentBranch);n.splice(n.indexOf(r),0,t),this.isDirty=!0,t.parent=this,t.parentBranch=r.parentBranch}addChildAfter(t,r){console.assert(r.parentBranch!==void 0);const n=this.createBranch(r.parentBranch);n.splice(n.indexOf(r)+1,0,t),this.isDirty=!0,t.parent=this,t.parentBranch=r.parentBranch}addChildren(t,r){const n=this.createBranch(r);for(const i of t)i.parent=this,i.parentBranch=r,n.push(i);this.isDirty=!0}addChildrenAfter(t,r){console.assert(t.length===0||t[0].type!=="first"),console.assert(r.parentBranch!==void 0);const n=this.createBranch(r.parentBranch);n.splice(n.indexOf(r)+1,0,...t),this.isDirty=!0;for(const i of t)i.parent=this,i.parentBranch=r.parentBranch;return t[t.length-1]}removeBranch(t){const r=this.branch(t);if(Gl(t)&&(this._branches[t]=void 0),!r)return[];for(const n of r)n.parent=void 0,n.parentBranch=void 0;return console.assert(r[0].type==="first"),r.shift(),this.isDirty=!0,r}removeChild(t){if(console.assert(t.parent===this),t.type==="first")return;const r=this.branch(t.parentBranch),n=r.indexOf(t);console.assert(n>=0),r.splice(n,1),this.isDirty=!0,t.parent=void 0,t.parentBranch=void 0}get siblings(){return this.parent?this.parent.branch(this.parentBranch):[]}get firstSibling(){return this.siblings[0]}get lastSibling(){const{siblings:t}=this;return t[t.length-1]}get isFirstSibling(){return this===this.firstSibling}get isLastSibling(){return this===this.lastSibling}get hasNoSiblings(){return this.siblings.length===1}get leftSibling(){console.assert(this.parent!==void 0);const t=this.parent.branch(this.parentBranch);return t[t.indexOf(this)-1]}get rightSibling(){console.assert(this.parent!==void 0);const t=this.parent.branch(this.parentBranch);return t[t.indexOf(this)+1]}get hasChildren(){return!!(this._branches&&this.children.length>0)}get firstChild(){return console.assert(this.hasChildren),this.children[0]}get lastChild(){console.assert(this.hasChildren);const{children:t}=this;return t[t.length-1]}get children(){if(this._children)return this._children;if(!this._branches)return[];const t=[];for(const r of Oc)if(this._branches[r])for(const n of this._branches[r])t.push(...n.children),t.push(n);return this._children=t,t}render(t){if(this.type==="first"&&!t.atomIdsSettings)return null;const r=gt(this.command,this.mode);if(r!=null&&r.render)return r.render(this,t);const n=new la({parent:t},this.style);let i=this.createBox(n,{classes:this.parent?"":"ML__base"});return i?(!this.subsupPlacement&&(this.superscript||this.subscript)&&(i=this.attachSupsub(n,{base:i})),i.wrap(n)):null}attachSupsub(t,r){var n;const i=r.base,s=this.superscript,A=this.subscript;if(!s&&!A)return i;let M=null,z=null;const X=(n=r.isCharacterBox)!=null?n:this.isCharacterBox();let ue=0;if(s){const Er=new la({parent:t,mathstyle:"superscript"});M=Yu.createBox(Er,s),X||(ue=i.height-t.metrics.supDrop*Er.scalingFactor)}let Ke=0;if(A){const Er=new la({parent:t,mathstyle:"subscript"});z=Yu.createBox(Er,A),X||(Ke=i.depth+t.metrics.subDrop*Er.scalingFactor)}let ft;t.isDisplayStyle?ft=t.metrics.sup1:t.isCramped?ft=t.metrics.sup3:ft=t.metrics.sup2;const Ft=.5/is/t.scalingFactor;let Nt=null;if(z&&M){ue=Math.max(ue,ft,M.depth+.25*t.metrics.xHeight),Ke=Math.max(Ke,t.metrics.sub2);const Er=t.metrics.defaultRuleThickness;if(ue-M.depth-(z.height-Ke)<4*Er){Ke=4*Er-(ue-M.depth)+z.height;const xr=.8*t.metrics.xHeight-(ue-M.depth);xr>0&&(ue+=xr,Ke-=xr)}const Fn=this.isExtensibleSymbol&&i.italic?-i.italic:0;Nt=new Xo({individualShift:[{box:z,shift:Ke,marginLeft:Fn},{box:M,shift:-ue}]}).wrap(t)}else z&&!M?(Ke=Math.max(Ke,t.metrics.sub1,z.height-.8*as),Nt=new Xo({shift:Ke,children:[{box:z,marginRight:Ft,marginLeft:this.isCharacterBox()?-i.italic:0}]})):!z&&M&&(ue=Math.max(ue,ft,M.depth+.25*as),Nt=new Xo({shift:-ue,children:[{box:M,marginRight:Ft}]}));return new fn([i,new fn(Nt,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:r.type})}attachLimits(t,r){const n=this.superscript?Yu.createBox(new la({parent:t,mathstyle:"superscript"},this.style),this.superscript):null,i=this.subscript?Yu.createBox(new la({parent:t,mathstyle:"subscript"},this.style),this.subscript):null;return!n&&!i?r.base.wrap(t):ZA(t,E(f({},r),{above:n,below:i}))}bind(t,r){if(!r||t.isPhantom||this.value==="\u200B")return r;let n=this.parent;for(;n&&!n.captureSelection;)n=n.parent;return n!=null&&n.captureSelection||(this.id||(this.id=t.makeID()),r.atomID=this.id),r}createBox(t,r){var n,i,s,A;const M=(n=this.value)!=null?n:this.body,z=(i=r==null?void 0:r.boxType)!=null?i:$l(this.type);let X=(s=r==null?void 0:r.classes)!=null?s:"";this.mode==="text"&&(X+=" ML__text");const ue=typeof M=="string"||M===void 0?new fn(M!=null?M:null,{type:z,isSelected:this.isSelected,mode:this.mode,maxFontSize:t.scalingFactor,style:E(f({variant:"normal"},this.style),{fontSize:Math.max(1,t.size+t.mathstyle.sizeDelta)}),letterShapeStyle:t.letterShapeStyle,classes:X}):(A=Yu.createBox(t,M,{type:z,classes:X}))!=null?A:new fn(null);return t.isTight&&(ue.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(ue.italic=0),ue.right=ue.italic,this.bind(t,ue),this.caret&&!this.superscript&&!this.subscript&&(ue.caret=this.caret),ue}isDigit(){var t;return this.type==="mord"&&this.value?/^[\d,\.]$/.test(this.value):this.type==="group"&&((t=this.body)==null?void 0:t.length)===2?this.body[0].type==="first"&&this.body[1].value===",":!1}asDigit(){var t;return this.type==="mord"&&this.value&&/^[\d,\.]$/.test(this.value)?this.value:this.type==="group"&&((t=this.body)==null?void 0:t.length)===2&&this.body[0].type==="first"&&this.body[1].value===","?".":""}};function yd(e){let t;const r=[];let n=[];for(const i of e)if(!t&&!i.style)n.push(i);else{const s=i.computedStyle;t&&s.color===t.color&&s.backgroundColor===t.backgroundColor&&s.fontSize===t.fontSize?n.push(i):(n.length>0&&r.push(n),n=[i],t=s)}return n.length>0&&r.push(n),r}function Qu(e,t,r){var n,i,s,A,M;if(!t||t.length===0)return null;const z=new la({parent:e},r.style),X=!((n=z.atomIdsSettings)!=null&&n.groupNumbers);let ue=[];if(t.length===1){const ft=t[0],Ft=ft.render(z);Ft&&(X&&ft.isSelected&&Ft.selected(!0),ue=[Ft])}else{let ft="",Ft=!0;for(const Nt of t){(i=z.atomIdsSettings)!=null&&i.groupNumbers&&ft&&(Ft&&Nt.isDigit()||!Ft&&WA(Nt))&&(z.atomIdsSettings.overrideID=ft);const Er=Nt.render(z);z.atomIdsSettings&&(z.atomIdsSettings.overrideID=void 0),Er&&((s=z.atomIdsSettings)!=null&&s.groupNumbers&&((Nt.isDigit()||WA(Nt))&&(!ft||Ft!==Nt.isDigit())&&(Ft=Nt.isDigit(),ft=(A=Nt.id)!=null?A:""),ft&&(!(Nt.isDigit()||WA(Nt))||!Nt.hasEmptyBranch("superscript")||!Nt.hasEmptyBranch("subscript"))&&(ft="")),X&&Nt.isSelected&&Er.selected(!0),ue.push(Er))}}if(ue.length===0)return null;const Ke=new fn(ue,E(f({isTight:z.isTight},r),{type:(M=r.type)!=null?M:"lift"}));return Ke.isSelected=ue.every(ft=>ft.isSelected),Ke.wrap(z)}function WA(e){return e.mode==="text"}function GA(e){return e.map(t=>t===null?"<null>":Array.isArray(t)&&t[0]instanceof zr?{atoms:t.map(r=>r.toJson())}:typeof t=="object"&&"group"in t?{group:t.group.map(r=>r.toJson())}:t)}var oc=class Jh extends zr{constructor(t,r,n){super({type:"text",command:t,mode:"text",displayContainsHighlight:!0}),this.value=r,this.verbatimLatex=r,this.applyStyle(n)}static fromJson(t){return new Jh(t.command,t.value,t.style)}render(t){const r=this.createBox(t);return this.caret&&(r.caret=this.caret),r}_serialize(t){var r;return(r=this.verbatimLatex)!=null?r:Tt("text",this.value.codePointAt(0))}};function Ku(e,t){if(e.direction===t.direction){const r=e.ranges.length;if(t.ranges.length===r){let n=0;for(;n<r&&Au(e.ranges[n],t.ranges[n])==="equal";)n++;return n===r?"equal":"different"}}return"different"}function Au(e,t){return e[0]===t[0]&&e[1]===t[1]?"equal":"different"}function Is(e){let t=1/0,r=-1/0;for(const n of e.ranges)t=Math.min(t,n[0],n[1]),r=Math.max(r,n[0],n[1]);return[t,r]}function Tc(e){return typeof e=="number"&&!Number.isNaN(e)}function Yc(e){return Array.isArray(e)&&e.length===2}function Uc(e){return e!=null&&typeof e=="object"&&"ranges"in e&&Array.isArray(e.ranges)}function Hu(e,t){const r=e.at(t);let n;if(r){n=r.mode;let i=r.parent;for(;!n&&i;)i&&(n=i.mode),i=i.parent}return n}function Rc(e,t){if(!t)return"";if(typeof t=="string")return t;if(!e||t.after===void 0)return t.value;let r=!1,n=!1,i=!1,s=!1,A=!1,M=!1,z=!1,X=!1,ue=!1,Ke=!1,ft=!1,Ft=!1,Nt=!1,Er=!1,Fn=!1,xr=e[0],nn=0;for(;xr!=null&&xr.type&&/^(subsup|placeholder)$/.test(xr.type);)nn+=1,xr=e[nn];return r=!xr||xr.type==="first",xr&&(Er=xr.mode==="text",n=!Er&&xr.type==="mord"&&p.test(xr.value),i=!Er&&xr.type==="mord"&&/\d+$/.test(xr.value),s=!Er&&xr.isFunction,A=xr.type==="genfrac",M=xr.type==="surd",z=xr.type==="mbin",X=xr.type==="mrel",ue=xr.type==="mop"||xr.type==="operator"||xr.type==="extensible-symbol",Ke=xr.type==="mpunct"||xr.type==="minner",ft=xr.type==="array",Ft=xr.type==="mopen",Nt=xr.type==="mclose"||xr.type==="leftright",Fn=xr.type==="space"),t.after.includes("nothing")&&r||t.after.includes("letter")&&n||t.after.includes("digit")&&i||t.after.includes("function")&&s||t.after.includes("frac")&&A||t.after.includes("surd")&&M||t.after.includes("binop")&&z||t.after.includes("relop")&&X||t.after.includes("operator")&&ue||t.after.includes("punct")&&Ke||t.after.includes("array")&&ft||t.after.includes("openfence")&&Ft||t.after.includes("closefence")&&Nt||t.after.includes("text")&&Er||t.after.includes("space")&&Fn?t.value:""}function MA(e,t,r){return r?Rc(e,r[t]):""}var P={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\doubleprime}","'''":"^{\\prime\\prime\\prime}","''''":"^{\\prime\\prime\\prime\\prime}",alpha:"\\alpha",delta:"\\delta",Delta:"\\Delta",pi:"\\pi",Pi:"\\Pi",theta:"\\theta",Theta:"\\Theta",ii:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryI"},jj:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryJ"},ee:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\exponentialE"},nabla:"\\nabla",grad:"\\nabla",del:"\\partial",deg:{after:"digit+space",value:"\\degree"},infty:"\\infty","\u221E":"\\infty",oo:{after:"nothing+digit+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\infty"},"\u2211":"\\sum",sum:"\\sum_{#?}^{#?}",int:"\\int_{#?}^{#?}",prod:"\\prod_{#?}^{#?}",sqrt:"\\sqrt{#?}","\u2206":"\\differentialD","\u2202":"\\differentialD",arcsin:"\\arcsin",arccos:"\\arccos",arctan:"\\arctan",arcsec:"\\arcsec",arccsc:"\\arccsc",arsinh:"\\arsinh",arcosh:"\\arcosh",artanh:"\\artanh",arcsech:"\\arcsech",arccsch:"\\arccsch",arg:"\\arg",ch:"\\ch",cosec:"\\cosec",cosh:"\\cosh",cot:"\\cot",cotg:"\\cotg",coth:"\\coth",csc:"\\csc",ctg:"\\ctg",cth:"\\cth",sec:"\\sec",sinh:"\\sinh",sh:"\\sh",tanh:"\\tanh",tg:"\\tg",th:"\\th",sin:"\\sin",cos:"\\cos",tan:"\\tan",lg:"\\lg",lb:"\\lb",log:"\\log",ln:"\\ln",exp:"\\exp",lim:"\\lim_{#?}",dx:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD x"},dy:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD y"},dt:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD t"},AA:"\\forall",EE:"\\exists","!EE":"\\nexists","&&":"\\land",xin:{after:"nothing+text+relop+punct+openfence+space",value:"x \\in"},sint:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\sin t"},in:{after:"nothing+letter+closefence",value:"\\in"},"!in":"\\notin",NN:"\\mathbb{N}",ZZ:"\\Z",QQ:"\\Q",RR:"\\R",CC:"\\C",xx:"\\times","+-":"\\pm","\u2260":"\\ne","!=":"\\ne","\u2265":"\\ge",">=":"\\ge","\u2264":"\\le","<=":"\\le","<<":"\\ll",">>":"\\gg","~~":"\\approx","\u2248":"\\approx","?=":"\\questeq","\xF7":"\\div","\xAC":"\\neg",":=":"\\coloneq","::":"\\Colon","(:":"\\langle",":)":"\\rangle",beta:"\\beta",chi:"\\chi",epsilon:"\\epsilon",varepsilon:"\\varepsilon",eta:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\eta"},gamma:"\\gamma",Gamma:"\\Gamma",iota:"\\iota",kappa:"\\kappa",lambda:"\\lambda",Lambda:"\\Lambda",mu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\mu"},nu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\nu"},\u00B5:"\\mu",phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\phi"},Phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Phi"},varphi:"\\varphi",psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\psi"},Psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Psi"},rho:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\rho"},sigma:"\\sigma",Sigma:"\\Sigma",tau:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\tau"},vartheta:"\\vartheta",upsilon:"\\upsilon",xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\xi"},Xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Xi"},zeta:"\\zeta",omega:"\\omega",Omega:"\\Omega",\u03A9:"\\omega",forall:"\\forall",exists:"\\exists","!exists":"\\nexists",":.":"\\therefore",liminf:"\\liminf_{#?}",limsup:"\\limsup_{#?}",argmin:"\\operatorname*{arg~min}_{#?}",argmax:"\\operatorname*{arg~max}_{#?}",det:"\\det",mod:"\\bmod{#?}","(mod":"\\pmod{#?}",max:"\\max",min:"\\min",erf:"\\operatorname{erf}",erfc:"\\operatorname{erfc}",bessel:"\\operatorname{bessel}",mean:"\\operatorname{mean}",median:"\\operatorname{median}",fft:"\\operatorname{fft}",lcm:"\\operatorname{lcm}",gcd:"\\operatorname{gcd}",randomReal:"\\operatorname{randomReal}",randomInteger:"\\operatorname{randomInteger}",Re:"\\operatorname{Re}",Im:"\\operatorname{Im}",mm:{after:"nothing+digit+operator",value:"\\operatorname{mm}"},cm:{after:"nothing+digit+operator",value:"\\operatorname{cm}"},km:{after:"nothing+digit+operator",value:"\\operatorname{km}"},kg:{after:"nothing+digit+operator",value:"\\operatorname{kg}"},"...":"\\ldots","+...":"+\\cdots","-...":"-\\cdots","->...":"\\to\\cdots","-->...":"\\longrightarrow\\cdots","->":"\\to","|->":"\\mapsto","-->":"\\longrightarrow","<--":"\\longleftarrow","=>":"\\Rightarrow","==>":"\\Longrightarrow","<=>":"\\Leftrightarrow","<->":"\\leftrightarrow","(.)":"\\odot","(+)":"\\oplus","(/)":"\\oslash","(*)":"\\otimes","(-)":"\\ominus","||":"\\Vert","*":"\\cdot","**":"\\star","***":"\\ast","//":"\\slash","\\\\":"\\backslash",setminus:"\\backslash","|><":"\\ltimes","><|":"\\rtimes","|><|":"\\bowtie","-:":"\\div",divide:"\\div","@":"\\circ","^^":"\\wedge","^^^":"\\bigwedge",vv:"\\vee",vvv:"\\bigvee",nn:"\\cap",nnn:"\\bigcap",uu:"\\cup",uuu:"\\bigcup","-=":"\\equiv","~=":"\\cong",lt:"<","lt=":"\\leq",gt:">","gt=":"\\geq","-<":"\\prec","-lt":"\\prec","-<=":"\\preceq",">-=":"\\succeq",prop:"\\propto",diamond:"\\diamond",square:"\\square",iff:"\\iff",sub:"\\subset",sup:"\\supset",sube:"\\subseteq",supe:"\\supseteq",uarr:"\\uparrow",darr:"\\downarrow",rarr:"\\rightarrow",rArr:"\\Rightarrow",larr:"\\leftarrow",lArr:"\\Leftarrow",harr:"\\leftrightarrow",hArr:"\\Leftrightarrow",aleph:"\\aleph",and:"\\land",or:"\\lor",not:"\\neg","_|_":"\\bot",TT:"\\top","|--":"\\vdash","|==":"\\models","|__":"\\lfloor","__|":"\\rfloor","|~":"\\lceil","~|":"\\rceil",">->":"\\rightarrowtail","->>":"\\twoheadrightarrow",">->>":"\\twoheadrightarrowtail",frac:"\\frac{#?}{#?}",cbrt:"\\sqrt[3]{#?}",nthroot:"\\sqrt[#?]{#?}"};function We(e,t){var r;let n=(r=t==null?void 0:t.format)!=null?r:"auto";return n==="auto"&&([n,e]=Di(e)),n==="ascii-math"?(e=e.replace(/\u2061/gu,""),e=e.replace(/\u3016/gu,"{"),e=e.replace(/\u3017/gu,"}"),e=e.replace(/([^\\])sinx/g,"$1\\sin x"),e=e.replace(/([^\\])cosx/g,"$1\\cos x "),e=e.replace(/\u2013/g,"-"),["ascii-math",Mt(e,{inlineShortcuts:t==null?void 0:t.inlineShortcuts})]):["latex",e]}function Mt(e,t){var r,n,i;if(!e)return"";let s=!1,A;const M=(r=t.inlineShortcuts)!=null?r:P;if(!s&&(e.startsWith("^")||e.startsWith("_"))&&(A=Jt(e.slice(1),{inlineShortcuts:M,noWrap:!0}),e=e[0]+"{"+A.match+"}",e+=Mt(A.rest,t),s=!0),s||(A=e.match(/^(sqrt|\u221A)(.*)/),A&&(A=Jt(A[2],{inlineShortcuts:M,noWrap:!0}),e="\\sqrt{"+((n=A.match)!=null?n:"\\placeholder{}")+"}",e+=Mt(A.rest,t),s=!0)),s||(A=e.match(/^(\\cbrt|\u221B)(.*)/),A&&(A=Jt(A[2],{inlineShortcuts:M,noWrap:!0}),e="\\sqrt[3]{"+((i=A.match)!=null?i:"\\placeholder{}")+"}",e+=Mt(A.rest,t),s=!0)),s||(A=e.match(/^abs(.*)/),A&&(A=Jt(A[1],{inlineShortcuts:M,noWrap:!0}),e="\\left|"+A.match+"\\right|",e+=Mt(A.rest,t),s=!0)),s||(A=e.match(/^["”“](.*?)["”“](.*)/),A&&(e="\\text{"+A[1]+"}",e+=Mt(A[2],t),s=!0)),s||(A=e.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),A&&(e=yr(A[1],M),e+=Mt(A[2],t),s=!0)),!s&&/^([fgh])[^a-zA-Z]/.test(e)&&(A=Jt(e.slice(1),{inlineShortcuts:M,noWrap:!0}),e=e[1]==="("?e[0]+"\\left("+A.match+"\\right)":e[0]+A.match,e+=Mt(A.rest,t),s=!0),s||(A=e.match(/^([a-zA-Z]+)(.*)/),A&&(e=yr(A[1],M),e+=Mt(A[2],t),s=!0)),!s)if(A=Jt(e,{inlineShortcuts:M,noWrap:!0}),A.match&&A.rest[0]==="/"){const z=Jt(A.rest.slice(1),{inlineShortcuts:M,noWrap:!0});z.match&&(e="\\frac{"+A.match+"}{"+z.match+"}"+Mt(z.rest,t)),s=!0}else A.match&&(e=e.startsWith("(")?"\\left("+A.match+"\\right)"+Mt(A.rest,t):A.match+Mt(A.rest,t),s=!0);return s||(A=e.match(/^(\s+)(.*)$/),A&&(e=" "+Mt(A[2],t),s=!0)),e}function Jt(e,t){let r="";e=e.trim();let n=e,i=e.charAt(0),s={"(":")","{":"}","[":"]"}[i];if(s){let A=1,M=1;for(;M<e.length&&A>0;)e[M]===i&&A++,e[M]===s&&A--,M++;A===0?(t.noWrap&&i==="("?r=Mt(e.substring(1,M-1),t):(i==="{"&&s==="}"&&(i="\\{",s="\\}"),r="\\left"+i+Mt(e.substring(1,M-1),t)+"\\right"+s),n=e.slice(Math.max(0,M))):(r=e.substring(1,M),n="")}else{let A=e.match(/^([a-zA-Z]+)/);if(A){let M=MA(null,e,t.inlineShortcuts);if(M)return M=M.replace("_{#?}",""),M=M.replace("^{#?}",""),{match:M,rest:e.slice(M.length)}}if(A=e.match(/^([a-zA-Z])/),A)return{match:A[1],rest:e.slice(1)};if(A=e.match(/^(-)?\d+(\.\d*)?/),A)return{match:A[0],rest:e.slice(A[0].length)};/^\\(left|right)/.test(e)||(A=e.match(/^(\\[a-zA-Z]+)/),A&&(n=e.slice(A[1].length),r=A[1]))}return{match:r,rest:n}}function yr(e,t){let r=MA(null,e,t);return r?(r=r.replace("_{#?}",""),r=r.replace("^{#?}",""),r+=" "):r=e,r}var Xr=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function Sn(e){const t=e.trim();for(const r of Xr)if(t.startsWith(r[0])&&t.endsWith(r[1]))return[!0,t.substring(r[0].length,t.length-r[1].length)];return[!1,e]}function Di(e){if(e=e.trim(),e.length<=1)return["latex",e];let t;return[t,e]=Sn(e),t?["latex",e]:e.startsWith("`")&&e.endsWith("`")?(e=e.substring(1,e.length-1),["ascii-math",e]):e.includes("\\")?["latex",e]:/\$.+\$/.test(e)?["latex",`\\text{${e}}`]:[void 0,e]}var ta="$$",Na="$$",Ia=(e,t,r)=>(Xr.some(n=>t.startsWith(n[0])&&t.endsWith(n[1]))||(t=`${ta} ${t} ${Na}`),t),co=class p0{constructor(t){p0._modes[t]=this}static onPaste(t,r,n){var i;if(!r.contentEditable&&r.userSelect==="none")return r.model.announce("plonk"),!1;if(typeof n=="string"){const A=new DataTransfer;A.setData("text/plain",n),n=A}const s=new ClipboardEvent("paste",{clipboardData:n,cancelable:!0});return(i=r.host)!=null&&i.dispatchEvent(s)?p0._modes[t].onPaste(r,n):!1}static copyToClipboard(t,r){if(!t.contentEditable&&t.userSelect==="none"){t.model.announce("plonk");return}const n=t.model,i=n.selectionIsCollapsed?[0,n.lastOffset]:Is(n.selection),s=n.getValue(i,r);navigator.clipboard.writeText(s).then(()=>{},()=>t.model.announce("plonk"))}static onCopy(t,r){var n;if(!r.clipboardData)return;if(!t.contentEditable&&t.userSelect==="none"){t.model.announce("plonk");return}const i=t.model,s=i.selectionIsCollapsed?[0,i.lastOffset]:Is(i.selection);let A=i.getAtoms(s);if(A.every(M=>M.mode==="text"||!M.mode))r.clipboardData.setData("text/plain",A.filter(M=>M instanceof oc).map(M=>M.value).join(""));else if(A.every(M=>M.mode==="latex"))r.clipboardData.setData("text/plain",i.getAtoms(s,{includeChildren:!0}).map(M=>{var z;return(z=M.value)!=null?z:""}).join(""));else{let M;A.length===1&&A[0].verbatimLatex!==void 0?M=A[0].verbatimLatex:M=i.getValue(s,"latex-expanded"),r.clipboardData.setData("application/x-latex",M);try{r.clipboardData.setData("text/plain",t.options.onExport(t,M,s))}catch(z){}if(A.length===1){const z=A[0];(z.type==="root"||z.type==="group")&&(A=z.body.filter(X=>X.type!=="first"))}try{r.clipboardData.setData("application/json+mathlive",JSON.stringify(A.map(z=>z.toJson())))}catch(z){}if((n=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&n.ComputeEngine){const z=window.MathfieldElement.computeEngine;if(z)try{const X=z.jsonSerializationOptions;z.jsonSerializationOptions={metadata:["latex"]};const ue=z.parse(i.getValue(s,"latex-unstyled"));z.jsonSerializationOptions=X;const Ke=JSON.stringify(ue.json);Ke&&r.clipboardData.setData("application/json",Ke)}catch(X){}}}r.preventDefault()}static insert(t,r,n={}){var i;const s=n.mode==="auto"?t.mode:(i=n.mode)!=null?i:t.mode;return p0._modes[s].insert(t,r,n)}onPaste(t,r){return!1}insert(t,r,n){return!1}};co._modes={};var aa=co,bs=[{key:"left",command:"moveToPreviousChar"},{key:"right",command:"moveToNextChar"},{key:"up",command:"moveUp"},{key:"down",command:"moveDown"},{key:"shift+[ArrowLeft]",command:"extendSelectionBackward"},{key:"shift+[ArrowRight]",command:"extendSelectionForward"},{key:"shift+[ArrowUp]",command:"extendSelectionUpward"},{key:"shift+[ArrowDown]",command:"extendSelectionDownward"},{key:"[Backspace]",command:"deleteBackward"},{key:"alt+[Delete]",command:"deleteBackward"},{key:"[Delete]",command:"deleteForward"},{key:"alt+[Backspace]",command:"deleteForward"},{key:"alt+[ArrowLeft]",command:"moveToPreviousWord"},{key:"alt+[ArrowRight]",command:"moveToNextWord"},{key:"shift+alt+[ArrowLeft]",command:"extendToPreviousWord"},{key:"shift+alt+[ArrowRight]",command:"extendToNextWord"},{key:"ctrl+[ArrowLeft]",command:"moveToGroupStart"},{key:"ctrl+[ArrowRight]",command:"moveToGroupEnd"},{key:"shift+ctrl+[ArrowLeft]",command:"extendToGroupStart"},{key:"shift+ctrl+[ArrowRight]",command:"extendToGroupEnd"},{key:"[Home]",command:"moveToMathfieldStart"},{key:"cmd+[ArrowLeft]",command:"moveToMathfieldStart"},{key:"shift+[Home]",command:"extendToMathFieldStart"},{key:"shift+cmd+[ArrowLeft]",command:"extendToMathFieldStart"},{key:"[End]",command:"moveToMathfieldEnd"},{key:"cmd+[ArrowRight]",command:"moveToMathfieldEnd"},{key:"shift+[End]",command:"extendToMathFieldEnd"},{key:"shift+cmd+[ArrowRight]",command:"extendToMathFieldEnd"},{key:"[Pageup]",command:"moveToGroupStart"},{key:"[Pagedown]",command:"moveToGroupEnd"},{key:"[Tab]",command:"moveToNextGroup"},{key:"shift+[Tab]",command:"moveToPreviousGroup"},{key:"[Escape]",ifMode:"math",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"text",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"latex",command:["complete","complete",{selectItem:"true"}]},{key:"\\",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[IntlBackslash]",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[Tab]",ifMode:"latex",command:["complete","accept-suggestion"]},{key:"[Return]",ifMode:"latex",command:"complete"},{key:"[Enter]",ifMode:"latex",command:"complete"},{key:"shift+[Escape]",ifMode:"latex",command:["complete","reject"]},{key:"[ArrowDown]",ifMode:"latex",command:"nextSuggestion"},{key:"[ArrowUp]",ifMode:"latex",command:"previousSuggestion"},{key:"ctrl+a",ifPlatform:"!macos",command:"selectAll"},{key:"cmd+a",command:"selectAll"},{key:"[Cut]",command:"cutToClipboard"},{key:"[Copy]",command:"copyToClipboard"},{key:"[Paste]",command:"pasteFromClipboard"},{key:"[Clear]",command:"deleteBackward"},{key:"[Undo]",command:"undo"},{key:"[Redo]",command:"redo"},{key:"[EraseEof]",command:"deleteToGroupEnd"},{key:"ctrl+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"cmd+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"ctrl+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"cmd+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"ctrl+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"cmd+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"ctrl+z",ifPlatform:"!macos",command:"undo"},{key:"cmd+z",command:"undo"},{key:"ctrl+y",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+y",command:"redo"},{key:"shift+ctrl+z",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+z",command:"redo"},{key:"ctrl+b",ifPlatform:"macos",command:"moveToPreviousChar"},{key:"ctrl+f",ifPlatform:"macos",command:"moveToNextChar"},{key:"ctrl+p",ifPlatform:"macos",command:"moveUp"},{key:"ctrl+n",ifPlatform:"macos",command:"moveDown"},{key:"ctrl+a",ifPlatform:"macos",command:"moveToMathfieldStart"},{key:"ctrl+e",ifPlatform:"macos",command:"moveToMathfieldEnd"},{key:"shift+ctrl+b",ifPlatform:"macos",command:"extendSelectionBackward"},{key:"shift+ctrl+f",ifPlatform:"macos",command:"extendSelectionForward"},{key:"shift+ctrl+p",ifPlatform:"macos",command:"extendSelectionUpward"},{key:"shift+ctrl+n",ifPlatform:"macos",command:"extendSelectionDownward"},{key:"shift+ctrl+a",ifPlatform:"macos",command:"extendToMathFieldStart"},{key:"shift+ctrl+e",ifPlatform:"macos",command:"extendToMathFieldEnd"},{key:"alt+ctrl+b",ifPlatform:"macos",command:"moveToPreviousWord"},{key:"alt+ctrl+f",ifPlatform:"macos",command:"moveToNextWord"},{key:"shift+alt+ctrl+b",ifPlatform:"macos",command:"extendToPreviousWord"},{key:"shift+alt+ctrl+f",ifPlatform:"macos",command:"extendToNextWord"},{key:"ctrl+h",ifPlatform:"macos",command:"deleteBackward"},{key:"ctrl+d",ifPlatform:"macos",command:"deleteForward"},{key:"ctrl+l",ifPlatform:"macos",command:"scrollIntoView"},{key:"ctrl+[Digit2]",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"ctrl+[Digit5]",ifMode:"math",command:"moveToOpposite"},{key:"ctrl+[Digit6]",ifMode:"math",command:"moveToSuperscript"},{key:"ctrl+[Return]",ifMode:"math",command:"addRowAfter"},{key:"ctrl+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Return]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"alt+p",ifMode:"math",command:["insert","\\pi"]},{key:"alt+v",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"alt+o",ifMode:"math",command:["insert","\\emptyset"]},{key:"alt+d",ifMode:"math",command:["insert","\\differentialD"]},{key:"shift+alt+o",ifMode:"math",command:["insert","\\varnothing"]},{key:"shift+alt+d",ifMode:"math",command:["insert","\\partial"]},{key:"alt+[Backslash]",ifMode:"math",command:["insert","\\backslash"]},{key:"[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#?}{#@}"]},{key:"shift+alt+k",command:"toggleKeystrokeCaption"},{key:"alt+[Space]",command:"toggleContextMenu"},{key:"alt+shift+[Space]",command:"toggleVirtualKeyboard"},{key:"alt+ctrl+[ArrowUp]",command:["speak","all",{withHighlighting:!1}]},{key:"alt+ctrl+[ArrowDown]",command:["speak","selection",{withHighlighting:!1}]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["switchMode","text","",""]},{key:"shift+alt+[KeyT]",ifMode:"math",command:["switchMode","text","",""]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"text",command:["switchMode","math","",""]},{key:"shift+alt+[KeyT]",ifMode:"text",command:["switchMode","math","",""]},{key:"/",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+shift+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrack #0 \\right\\rbrack"]},{key:"ctrl+[Minus]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"moveToSubscript"},{key:"shift+alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrace #0 \\right\\rbrace"]},{key:"ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"shift+ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"shift+cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"ctrl+[Backspace]",ifMode:"math",command:"removeRow"},{key:"cmd+[Backspace]",ifMode:"math",command:"removeRow"},{key:"alt+[Tab]",ifMode:"math",command:"addColumnAfter"},{key:"shift+alt+[Tab]",ifMode:"math",command:"addColumnBefore"},{key:"alt+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Enter]",ifMode:"math",command:"addRowBefore"},{key:"alt+[Return]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Return]",ifMode:"math",command:"addRowBefore"},{key:"shift+[Backspace]",ifMode:"math",command:"removeColumn"},{key:"alt+[Digit5]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","$\\infty"]},{key:"alt+[Digit9]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","("]},{key:"alt+[Digit0]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert",")"]},{key:"alt+|",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","|"]},{key:"shift+[Backquote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\~"]},{key:"[Backquote]",ifLayout:["windows.french","linux.french"],ifMode:"math",command:["insert","^2"]},{key:"[Backquote]",ifLayout:["windows.german","linux.german"],ifMode:"math",command:["insert","^"]},{key:"[IntlBackslash]",ifLayout:["apple.german"],ifMode:"math",command:["insert","^"]}],Ts={"\\sqrt":["alt+v","ctrl+[Digit2]"],"\\pi":"alt+p","\\infty":"alt+[Digit5]","\\differentialD":"alt+d","\\partial":"shift+alt+d","\\frac":"Slash","\\emptyset":"alt+o","\\varnothing":"shift+alt+o","\\~":"~"};function hs(e){var t;return((t=e.element)==null?void 0:t.mathfield)===e}function el(e){var t,r;return(r=(t=e.querySelector(".ML__caret"))!=null?t:e.querySelector(".ML__text-caret"))!=null?r:e.querySelector(".ML__latex-caret")}function Bl(e){const t=el(e);if(!t)return null;const r=t.getBoundingClientRect();return{x:r.right,y:r.bottom,height:r.height}}function sc(e){var t;if(!e.parent)return"root";let r=(t=e.parent.id)!=null?t:"";return r+=typeof e.parentBranch=="string"?"-"+e.parentBranch:`-${e.parentBranch[0]}/${e.parentBranch[0]}`,r}function Xl(e,t,r){if(!t)return null;const n=e.field.getBoundingClientRect(),i=t.right-t.left,s=t.bottom-t.top,A=Math.ceil(t.left-n.left+e.field.scrollLeft*r),M=Math.ceil(t.top-n.top);return{left:A,right:A+i,top:M,bottom:M+s}}function LA(e){const t=e.getBoundingClientRect(),r=parseInt(getComputedStyle(e).marginRight),n={top:t.top-1,bottom:t.bottom,left:t.left,right:t.right-1+r};if(e.children.length===0||e.tagName.toUpperCase()==="SVG")return n;for(const i of e.children)if(i.nodeType===1&&"atomId"in i.dataset&&!i.classList.contains("pstrut")){const s=LA(i);n.left=Math.min(n.left,s.left),n.right=Math.max(n.right,s.right),n.top=Math.min(n.top,s.top),n.bottom=Math.max(n.bottom,s.bottom)}return n}function qc(e,t){var r,n;if(!t.id)return null;let i=(n=(r=e.atomBoundsCache)==null?void 0:r.get(t.id))!=null?n:null;if(i!==null)return i;const s=e.field.querySelector(`[data-atom-id="${t.id}"]`);return i=s?LA(s):null,e.atomBoundsCache&&(i?e.atomBoundsCache.set(t.id,i):e.atomBoundsCache.delete(t.id)),i!=null?i:null}function uu(e,t,r){const n=new Map;for(const i of e.model.getAtoms(t,{includeChildren:!0})){if(r!=null&&r.excludeAtomsWithBackground&&i.style.backgroundColor)continue;const s=e.field,A=s.offsetWidth;let z=Math.floor(s.getBoundingClientRect().width)/A;z=isNaN(z)?1:z;const X=Xl(e,qc(e,i),z);if(X){const ue=sc(i);if(n.has(ue)){const Ke=n.get(ue);n.set(ue,{left:Math.min(Ke.left,X.left),right:Math.max(Ke.right,X.right),top:Math.min(Ke.top,X.top),bottom:Math.max(Ke.bottom,X.bottom)})}else n.set(ue,X)}}return[...n.values()]}function XA(e,t){return e.model.selection.ranges.reduce((r,n)=>r.concat(...uu(e,n,t)),[])}function kA(e,t){return e==="*"||t==="none"?!0:t==="same-origin"?!window.origin||e===window.origin:typeof t=="function"?t(e):!1}function JA(e){let t=0,r=0;const n=e.offsetWidth,i=e.offsetHeight;for(;e instanceof HTMLElement;)t+=e.offsetTop,r+=e.offsetLeft,e=e.offsetParent;return new DOMRect(r,t,n,i)}var du=`@keyframes ML__caret-blink {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0;
}
}
.ML__container {
display: inline-flex;
flex-flow: row;
justify-content: space-between;
align-items: flex-end;
min-height: 39px;
/* Need some room for the virtual keyboard toggle */
width: 100%;
/* Encourage browsers to consider allocating a hardware accelerated
layer for this element. */
isolation: isolate;
/* Prevent the browser from trying to interpret touch gestures in the field */
/* "Disabling double-tap to zoom removes the need for browsers to
delay the generation of click events when the user taps the screen." */
touch-action: none;
--_caret-color: var(--caret-color, hsl(var(--_hue), 40%, 49%));
--_selection-color: var(--selection-color, #000);
--_selection-background-color: var(--selection-background-color, hsl(var(--_hue), 70%, 85%));
--_text-highlight-background-color: var(--highlight-text, hsla(var(--_hue), 40%, 50%, 0.1));
--_contains-highlight-background-color: var(--contains-highlight-background-color, hsl(var(--_hue), 40%, 95%));
--_smart-fence-color: var(--smart-fence-color, currentColor);
--_smart-fence-opacity: var(--smart-fence-opacity, 0.5);
--_latex-color: var(--latex-color, hsl(var(--_hue), 80%, 40%));
--_correct-color: var(--correct-color, #10a000);
--_incorrect-color: var(--incorrect-color, #a01b00);
--_composition-background-color: var(--composition-background-color, #fff1c2);
--_composition-text-color: var(--composition-text-color, black);
--_composition-underline-color: var(--composition-underline-color, transparent);
}
/* This is the actual field content (formula) */
.ML__content {
display: flex;
align-items: center;
align-self: center;
position: relative;
overflow: hidden;
padding: 2px 3px 2px 1px;
width: 100%;
}
.ML__virtual-keyboard-toggle,
.ML__menu-toggle {
box-sizing: border-box;
display: flex;
align-self: center;
align-items: center;
flex-shrink: 0;
flex-direction: column;
justify-content: center;
width: 34px;
height: 34px;
padding: 0;
margin-right: 4px;
cursor: pointer;
/* Avoid some weird blinking with :hover */
border-radius: 8px;
border: 1px solid transparent;
transition: background 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
color: hsl(var(--_hue), 40%, 50%);
fill: currentColor;
background: transparent;
}
.ML__virtual-keyboard-toggle:hover,
.ML__menu-toggle:hover {
background: hsla(0, 0%, 70%, 0.3);
color: #333;
fill: currentColor;
}
.ML__virtual-keyboard-toggle > span,
.ML__menu-toggle > span {
display: flex;
align-self: center;
align-items: center;
}
/* The invisible element used to capture keyboard events. We're just trying
really hard to make sure it doesn't show. */
.ML__keyboard-sink {
display: inline-block;
resize: none;
outline: none;
border: none;
/* Need these for Microsoft Edge */
position: fixed;
clip: rect(0 0 0 0);
/* Need this to prevent iOS Safari from auto-zooming */
font-size: 1em;
font-family: KaTeX_Main;
line-height: 0.5;
/* On Chromium, if this is 0, no keyboard events are received */
}
[part="placeholder"] {
color: var(--neutral-400);
}
.ML__composition {
background: var(--_composition-background-color);
color: var(--_composition-text-color);
text-decoration: underline var(--_composition-underline-color);
}
.ML__caret::after {
content: '';
visibility: hidden;
width: 0;
display: inline-block;
height: 0.76em;
--_caret-width: clamp(2px, 0.08em, 10px);
border: none;
border-radius: calc(var(--_caret-width) / 2);
border-right: var(--_caret-width) solid var(--_caret-color);
margin-right: calc(-1 * var(--_caret-width));
position: relative;
left: -0.045em;
bottom: -0.05em;
animation: ML__caret-blink 1.05s step-end forwards infinite;
}
.ML__text-caret::after {
content: '';
visibility: hidden;
width: 0;
display: inline-block;
height: 0.76em;
--_caret-width: clamp(2px, 0.08em, 10px);
border: none;
border-radius: calc(var(--_caret-width) / 2);
border-right: var(--_caret-width) solid var(--_caret-color);
margin-right: calc(-1 * var(--_caret-width));
position: relative;
left: -0.045em;
bottom: -0.05em;
animation: ML__caret-blink 1.05s step-end forwards infinite;
}
.ML__latex-caret::after {
content: '';
visibility: hidden;
--_caret-width: clamp(2px, 0.08em, 10px);
border: none;
border-radius: calc(var(--_caret-width) / 2);
border-right: var(--_caret-width) solid var(--_latex-color);
margin-right: calc(-1 * var(--_caret-width));
position: relative;
left: -0.019em;
animation: ML__caret-blink 1.05s step-end forwards infinite;
}
.ML__focused .ML__latex-caret::after,
.ML__focused .ML__text-caret::after,
.ML__focused .ML__caret::after {
visibility: visible;
}
.ML__focused .ML__text {
background: var(--_text-highlight-background-color);
}
/* When using smartFence, the anticipated closing fence is displayed
with this style */
.ML__smart-fence__close {
opacity: var(--_smart-fence-opacity);
color: var(--_smart-fence-color);
}
.ML__selected,
.ML__focused .ML__selected .ML__contains-caret,
.ML__focused .ML__selected .ML__smart-fence__close,
.ML__focused .ML__selected .ML__placeholder {
color: var(--_selection-color);
opacity: 1;
}
.ML__selection {
box-sizing: border-box;
background: var(--_selection-background-color) !important;
}
.ML__contains-caret.ML__close,
.ML__contains-caret.ML__open,
.ML__contains-caret > .ML__close,
.ML__contains-caret > .ML__open,
.ML__contains-caret .ML__sqrt-sign,
.ML__contains-caret .ML__sqrt-line {
color: var(--_caret-color);
}
.ML__contains-highlight {
box-sizing: border-box;
background: transparent;
}
.ML__focused .ML__contains-highlight {
background: var(--_contains-highlight-background-color);
}
.ML__raw-latex {
font-family: 'Berkeley Mono', 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
font-weight: 400;
font-size: 0.8em;
letter-spacing: -0.05em;
color: var(--_latex-color);
}
.ML__suggestion {
color: var(--neutral-500);
}
.ML__virtual-keyboard-toggle.is-visible.is-pressed:hover {
background: hsl(var(--_hue), 25%, 35%);
color: #fafafa;
fill: currentColor;
}
.ML__virtual-keyboard-toggle:focus {
outline: none;
border-radius: 8px;
border: 2px solid hsl(var(--_hue), 40%, 50%);
}
.ML__virtual-keyboard-toggle.is-pressed,
.ML__virtual-keyboard-toggle.is-active:hover,
.ML__virtual-keyboard-toggle.is-active {
background: hsl(var(--_hue), 25%, 35%);
color: #fafafa;
fill: currentColor;
}
/* Add an attribute 'data-tooltip' to automatically show a
tooltip over a element on hover.
*/
[data-tooltip] {
position: relative;
}
[data-tooltip]::after {
content: attr(data-tooltip);
position: absolute;
display: block;
z-index: 2;
pointer-events: none;
right: auto;
top: calc(-100% - 4px);
width: max-content;
max-width: 200px;
padding: 8px 8px;
border-radius: 4px;
background: #616161;
color: #fff;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
text-align: center;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-style: normal;
font-weight: 400;
font-size: 13px;
/* Phone */
opacity: 0;
transform: scale(0.5);
}
@media only screen and (max-width: 767px) {
[data-tooltip]::after {
padding: 8px 16px;
font-size: 16px;
}
}
menu [data-tooltip]::after {
left: 100%;
top: 0%;
}
menu .ML__base {
cursor: default;
}
/** Don't display if we're tracking, i.e. have the pointer down */
.tracking [data-tooltip]:hover::after {
/* Use visibility, not display. Display will remove the after from the DOM, and the override below will not work */
visibility: hidden;
}
/** But do display if tracking and inside a menu */
.tracking menu li[data-tooltip]:hover::after,
[data-tooltip]:hover::after {
visibility: visible;
opacity: 1;
transform: scale(1);
transition-property: opacity, scale;
transition-duration: 0.15s;
transition-delay: 1s;
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
.ML__prompt {
border-radius: 2px;
}
.ML__editablePromptBox {
outline: 1px solid #acacac;
border-radius: 2px;
z-index: -1;
}
.ML__focusedPromptBox {
outline: highlight auto 1px;
}
.ML__lockedPromptBox {
background-color: rgba(142, 142, 141, 0.4);
z-index: -1;
}
.ML__correctPromptBox {
outline: 1px solid var(--_correct-color);
box-shadow: 0 0 5px var(--_correct-color);
}
.ML__incorrectPromptBox {
outline: 1px solid var(--_incorrect-color);
box-shadow: 0 0 5px var(--_incorrect-color);
}
.variant-submenu {
display: flex;
flex-direction: column;
padding: 8px;
}
.variant-submenu [part=menu-item] {
font-size: 2rem;
text-align: center;
margin: 0;
}
.insert-matrix-submenu {
display: grid;
padding: 8px;
align-content: center;
justify-content: center;
grid-template-columns: repeat(5, minmax(0, 1fr));
}
.insert-matrix-submenu [part=menu-item] {
font-size: 21px;
border: none;
border-radius: 0;
line-height: 21px;
text-align: center;
padding: 0;
margin: 0;
}
.border-submenu [part=menu-item] {
font-size: 2rem;
line-height: 1.2;
text-align: center;
}
.swatches-submenu {
--_swatch-size: 2rem;
--_columns: 4;
display: flex;
flex-flow: wrap;
padding: 8px;
max-width: calc(var(--_columns) * (var(--_swatch-size) + 18px) + 16px);
box-sizing: border-box;
}
.menu-swatch {
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
width: fit-content;
height: fit-content;
margin: 2px;
padding: 0;
background: var(--neutral-200);
}
.menu-swatch > .label {
padding: 0;
margin: 0;
line-height: 0;
}
.menu-swatch > .label > span {
display: inline-block;
margin: 6px;
min-width: var(--_swatch-size);
min-height: var(--_swatch-size);
border-radius: 50%;
}
.menu-swatch.active {
background: var(--neutral-100);
scale: 1.4;
}
.menu-swatch.active > .label > span {
border-radius: 2px;
}
.menu-swatch .ui-checkmark,
.menu-swatch .ui-mixedmark {
position: absolute;
margin: 0;
padding: 0;
color: white;
}
.menu-swatch.dark-contrast .ui-checkmark,
.menu-swatch.dark-contrast .ui-mixedmark {
color: #000;
}
`,pl=`.ML__container {
min-height: auto !important;
--_hue: var(--hue, 212);
--_placeholder-color: var(--placeholder-color, hsl(var(--_hue), 40%, 49%));
--_placeholder-opacity: var(--placeholder-opacity, 0.4);
--_text-font-family: var(--text-font-family, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif);
}
.ML__sr-only {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}
.ML__is-inline {
display: inline-block;
}
.ML__base {
visibility: inherit;
display: inline-block;
position: relative;
cursor: text;
padding: 0;
margin: 0;
box-sizing: content-box;
border: 0;
outline: 0;
vertical-align: baseline;
font-weight: inherit;
font-family: inherit;
font-style: inherit;
text-decoration: none;
width: min-content;
}
.ML__strut,
.ML__strut--bottom {
display: inline-block;
min-height: 0.5em;
}
.ML__small-delim {
font-family: KaTeX_Main;
}
/* Text mode */
.ML__text {
font-family: var(--_text-font-family);
white-space: pre;
}
/* Use cmr for 'math upright' */
.ML__cmr {
font-family: KaTeX_Main;
font-style: normal;
}
.ML__mathit {
font-family: KaTeX_Math;
/* The KaTeX_Math font is italic by default, so the font-style below is only
useful when a fallback font is used
*/
font-style: italic;
}
.ML__mathbf {
font-family: KaTeX_Main;
font-weight: bold;
}
/* Lowercase greek symbols should stick to math font when \\mathbf is applied
to match TeX idiosyncratic behavior */
.lcGreek.ML__mathbf {
font-family: KaTeX_Math;
font-weight: normal;
}
.ML__mathbfit {
font-family: KaTeX_Math;
font-weight: bold;
font-style: italic;
}
.ML__ams {
font-family: KaTeX_AMS;
}
/* Blackboard */
.ML__bb {
font-family: KaTeX_AMS;
}
.ML__cal {
font-family: KaTeX_Caligraphic;
}
.ML__frak {
font-family: KaTeX_Fraktur;
}
.ML__tt {
font-family: KaTeX_Typewriter;
}
.ML__script {
font-family: KaTeX_Script;
}
.ML__sans {
font-family: KaTeX_SansSerif;
}
.ML__series_ul {
font-weight: 100;
}
.ML__series_el {
font-weight: 100;
}
.ML__series_l {
font-weight: 200;
}
.ML__series_sl {
font-weight: 300;
}
.ML__series_sb {
font-weight: 500;
}
.ML__bold,
.ML__boldsymbol {
font-weight: 700;
}
.ML__series_eb {
font-weight: 800;
}
.ML__series_ub {
font-weight: 900;
}
.ML__series_uc {
font-stretch: ultra-condensed;
}
.ML__series_ec {
font-stretch: extra-condensed;
}
.ML__series_c {
font-stretch: condensed;
}
.ML__series_sc {
font-stretch: semi-condensed;
}
.ML__series_sx {
font-stretch: semi-expanded;
}
.ML__series_x {
font-stretch: expanded;
}
.ML__series_ex {
font-stretch: extra-expanded;
}
.ML__series_ux {
font-stretch: ultra-expanded;
}
.ML__it {
font-style: italic;
}
.ML__shape_ol {
-webkit-text-stroke: 1px black;
text-stroke: 1px black;
color: transparent;
}
.ML__shape_sc {
font-variant: small-caps;
}
.ML__shape_sl {
font-style: oblique;
}
/* First level emphasis */
.ML__emph {
color: #bc2612;
}
/* Second level emphasis */
.ML__emph .ML__emph {
color: #0c7f99;
}
.ML__highlight {
color: #007cb2;
background: #edd1b0;
}
.ML__center {
text-align: center;
}
.ML__label_padding {
padding: 0 0.5em;
}
.ML__frac-line {
width: 100%;
min-height: 1px;
}
.ML__frac-line:after {
content: '';
display: block;
margin-top: max(-1px, -0.04em);
min-height: max(1px, 0.04em);
/* Ensure the line is visible when printing even if "turn off background images" is on*/
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
/* There's a bug since Chrome 62 where
sub-pixel border lines don't draw at some zoom
levels (110%, 90%).
Setting the min-height used to work around it, but that workaround
broke in Chrome 84 or so.
Setting the background (and the min-height) seems to work for now.
*/
background: currentColor;
box-sizing: content-box;
/* Vuetify sets the box-sizing to inherit
causes the fraction line to not draw at all sizes (see #26) */
/* On some versions of Firefox on Windows, the line fails to
draw at some zoom levels, but setting the transform triggers
the hardware accelerated path, which works */
transform: translate(0, 0);
}
.ML__sqrt {
display: inline-block;
}
.ML__sqrt-sign {
display: inline-block;
position: relative;
}
.ML__sqrt-line {
display: inline-block;
height: max(1px, 0.04em);
width: 100%;
}
.ML__sqrt-line:before {
content: '';
display: block;
margin-top: min(-1px, -0.04em);
min-height: max(1px, 0.04em);
/* Ensure the line is visible when printing even if "turn off background images" is on*/
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
background: currentColor;
/* On some versions of Firefox on Windows, the line fails to
draw at some zoom levels, but setting the transform triggers
the hardware accelerated path, which works */
transform: translate(0, 0);
}
.ML__sqrt-line:after {
border-bottom-width: 1px;
content: ' ';
display: block;
margin-top: -0.1em;
}
.ML__sqrt-index {
margin-left: 0.27777778em;
margin-right: -0.55555556em;
}
.ML__delim-size1 {
font-family: KaTeX_Size1;
}
.ML__delim-size2 {
font-family: KaTeX_Size2;
}
.ML__delim-size3 {
font-family: KaTeX_Size3;
}
.ML__delim-size4 {
font-family: KaTeX_Size4;
}
.ML__delim-mult .delim-size1 > span {
font-family: KaTeX_Size1;
}
.ML__delim-mult .delim-size4 > span {
font-family: KaTeX_Size4;
}
.ML__accent-body > span {
font-family: KaTeX_Main;
width: 0;
}
.ML__accent-vec {
position: relative;
left: 0.24em;
}
/** The markup for a LaTeX formula, either in an editable mathfield or
in a static display.
*/
.ML__latex {
display: inline-block;
direction: ltr;
text-align: left;
text-indent: 0;
text-rendering: auto;
font-family: KaTeX_Main, 'Times New Roman', serif;
font-style: normal;
font-size-adjust: none;
font-stretch: normal;
font-variant-caps: normal;
letter-spacing: normal;
line-height: 1.2;
word-wrap: normal;
word-spacing: normal;
white-space: nowrap;
text-shadow: none;
-webkit-user-select: none;
user-select: none;
width: min-content;
}
.ML__latex .style-wrap {
position: relative;
}
.ML__latex .mfrac {
display: inline-block;
}
.ML__latex .left-right {
display: inline-block;
}
.ML__latex .vlist-t {
display: inline-table;
table-layout: fixed;
border-collapse: collapse;
}
.ML__latex .vlist-r {
display: table-row;
}
.ML__latex .vlist {
display: table-cell;
vertical-align: bottom;
position: relative;
}
.ML__latex .vlist > span {
display: block;
height: 0;
position: relative;
}
.ML__latex .vlist > span > span {
display: inline-block;
}
.ML__latex .vlist > span > .pstrut {
overflow: hidden;
width: 0;
}
.ML__latex .vlist-t2 {
margin-right: -2px;
}
.ML__latex .vlist-s {
display: table-cell;
vertical-align: bottom;
font-size: 1px;
width: 2px;
min-width: 2px;
}
.ML__latex .msubsup {
text-align: left;
}
.ML__latex .negativethinspace {
display: inline-block;
margin-left: -0.16667em;
height: 0.71em;
}
.ML__latex .thinspace {
display: inline-block;
width: 0.16667em;
height: 0.71em;
}
.ML__latex .mediumspace {
display: inline-block;
width: 0.22222em;
height: 0.71em;
}
.ML__latex .thickspace {
display: inline-block;
width: 0.27778em;
height: 0.71em;
}
.ML__latex .enspace {
display: inline-block;
width: 0.5em;
height: 0.71em;
}
.ML__latex .quad {
display: inline-block;
width: 1em;
height: 0.71em;
}
.ML__latex .qquad {
display: inline-block;
width: 2em;
height: 0.71em;
}
.ML__latex .llap,
.ML__latex .rlap {
width: 0;
position: relative;
display: inline-block;
}
.ML__latex .llap > .inner,
.ML__latex .rlap > .inner {
position: absolute;
}
.ML__latex .llap > .fix,
.ML__latex .rlap > .fix {
display: inline-block;
}
.ML__latex .llap > .inner {
right: 0;
}
.ML__latex .rlap > .inner {
left: 0;
}
.ML__latex .rule {
display: inline-block;
border: solid 0;
position: relative;
box-sizing: border-box;
}
.ML__latex .overline .overline-line,
.ML__latex .underline .underline-line {
width: 100%;
}
.ML__latex .overline .overline-line:before,
.ML__latex .underline .underline-line:before {
content: '';
border-bottom-style: solid;
border-bottom-width: max(1px, 0.04em);
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
display: block;
}
.ML__latex .overline .overline-line:after,
.ML__latex .underline .underline-line:after {
border-bottom-style: solid;
border-bottom-width: max(1px, 0.04em);
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
content: '';
display: block;
margin-top: -1px;
}
.ML__latex .stretchy {
display: block;
position: absolute;
width: 100%;
left: 0;
overflow: hidden;
}
.ML__latex .stretchy:before,
.ML__latex .stretchy:after {
content: '';
}
.ML__latex .stretchy svg {
display: block;
position: absolute;
width: 100%;
height: inherit;
fill: currentColor;
stroke: currentColor;
fill-rule: nonzero;
fill-opacity: 1;
stroke-width: 1;
stroke-linecap: butt;
stroke-linejoin: miter;
stroke-miterlimit: 4;
stroke-dasharray: none;
stroke-dashoffset: 0;
stroke-opacity: 1;
}
.ML__latex .slice-1-of-2 {
display: inline-flex;
position: absolute;
left: 0;
width: 50.2%;
overflow: hidden;
}
.ML__latex .slice-2-of-2 {
display: inline-flex;
position: absolute;
right: 0;
width: 50.2%;
overflow: hidden;
}
.ML__latex .slice-1-of-3 {
display: inline-flex;
position: absolute;
left: 0;
width: 25.1%;
overflow: hidden;
}
.ML__latex .slice-2-of-3 {
display: inline-flex;
position: absolute;
left: 25%;
width: 50%;
overflow: hidden;
}
.ML__latex .slice-3-of-3 {
display: inline-flex;
position: absolute;
right: 0;
width: 25.1%;
overflow: hidden;
}
.ML__latex .slice-1-of-1 {
display: inline-flex;
position: absolute;
width: 100%;
left: 0;
overflow: hidden;
}
.ML__latex .nulldelimiter {
display: inline-block;
}
.ML__latex .op-group {
display: inline-block;
}
.ML__latex .op-symbol {
position: relative;
}
.ML__latex .op-symbol.small-op {
font-family: KaTeX_Size1;
}
.ML__latex .op-symbol.large-op {
font-family: KaTeX_Size2;
}
.ML__latex .mtable .vertical-separator {
display: inline-block;
min-width: 1px;
box-sizing: border-box;
}
.ML__latex .mtable .arraycolsep {
display: inline-block;
}
.ML__latex .mtable .col-align-m > .vlist-t {
text-align: center;
}
.ML__latex .mtable .col-align-c > .vlist-t {
text-align: center;
}
.ML__latex .mtable .col-align-l > .vlist-t {
text-align: left;
}
.ML__latex .mtable .col-align-r > .vlist-t {
text-align: right;
}
.ML__error {
display: inline-block;
background-image: radial-gradient(ellipse at center, hsl(341, 100%, 40%), rgba(0, 0, 0, 0) 70%);
background-color: hsla(341, 100%, 40%, 0.1);
background-repeat: repeat-x;
background-size: 3px 3px;
padding-bottom: 3px;
background-position: 0 100%;
}
.ML__error > .ML__error {
background: transparent;
padding: 0;
}
.ML__placeholder {
color: var(--_placeholder-color);
opacity: var(--_placeholder-opacity);
padding-left: 0.4ex;
padding-right: 0.4ex;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}
.ML__notation {
position: absolute;
box-sizing: border-box;
line-height: 0;
}
/* This class is used to implement the \`\\mathtip\` and \`\\texttip\` commands
For UI elements, see \`[data-ML__tooltip]\`
*/
.ML__tooltip-container {
position: relative;
transform: scale(0);
}
.ML__tooltip-container .ML__tooltip-content {
position: fixed;
display: inline-table;
visibility: hidden;
z-index: 2;
width: max-content;
max-width: 400px;
padding: 12px 12px;
border-radius: 8px;
background: #616161;
--_selection-color: #fff;
color: #fff;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
opacity: 0;
transition: opacity 0.15s cubic-bezier(0.4, 0, 1, 1);
}
.ML__tooltip-container .ML__tooltip-content .ML__text {
white-space: normal;
}
.ML__tooltip-container .ML__tooltip-content .ML__base {
display: contents;
}
.ML__tooltip-container:hover .ML__tooltip-content {
visibility: visible;
opacity: 1;
font-size: 0.75em;
transform: scale(1) translate(0, 3em);
}
`,Qc=`#mathlive-environment-popover.is-visible {
visibility: visible;
}
#mathlive-environment-popover {
--_environment-panel-height: var(--environment-panel-height, 70px);
--_accent-color: var(--accent-color, #aaa);
--_background: var(--environment-panel-background, #fff);
--_button-background: var(--environment-panel-button-background, white);
--_button-background-hover: var(--environment-panel-button-background-hover, #f5f5f7);
--_button-background-active: var(--environment-panel-button-background-active, #f5f5f7);
--_button-text: var(--environment-panel-button-text, #e3e4e8);
position: absolute;
width: calc(var(--_environment-panel-height) * 2);
height: var(--_environment-panel-height);
border-radius: 4px;
border: 1.5px solid var(--_accent-color);
background-color: var(--_background);
box-shadow: 0 0 30px 0 var(--environment-shadow, rgba(0, 0, 0, 0.4));
pointer-events: all;
visibility: hidden;
}
#mathlive-environment-popover .MLEP__array-buttons {
height: calc(var(--_environment-panel-height) * 5/4);
width: calc(var(--_environment-panel-height) * 5/4);
margin-left: calc(0px - var(--_environment-panel-height) * 0.16);
margin-top: calc(0px - var(--_environment-panel-height) * 0.19);
}
#mathlive-environment-popover .MLEP__array-buttons .font {
fill: white;
}
#mathlive-environment-popover .MLEP__array-buttons circle {
fill: #7f7f7f;
transition: fill 300ms;
}
#mathlive-environment-popover .MLEP__array-buttons .MLEP__array-insert-background {
fill-opacity: 1;
fill: var(--_background);
stroke: var(--_accent-color);
stroke-width: 3px;
}
#mathlive-environment-popover .MLEP__array-buttons line {
stroke: var(--_accent-color);
stroke-opacity: 0;
stroke-width: 40;
pointer-events: none;
transition: stroke-opacity 300ms;
stroke-linecap: round;
}
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover circle {
fill: var(--_accent-color);
}
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover line {
stroke-opacity: 1;
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls {
height: 100%;
width: 50%;
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options {
width: var(--_environment-panel-height);
height: var(--_environment-panel-height);
display: flex;
flex-wrap: wrap;
flex-direction: row;
justify-content: space-around;
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg {
pointer-events: all;
margin-top: 2px;
width: calc(var(--_environment-panel-height) / 3 * 28 / 24);
height: calc(var(--_environment-panel-height) / 3 - 2px);
border-radius: calc(var(--_environment-panel-height) / 25);
background-color: var(--_button-background);
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg:hover {
background-color: var(--_button-background-hover);
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path,
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg line {
stroke: var(--_button-text);
stroke-width: 2;
stroke-linecap: round;
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg rect,
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path {
fill-opacity: 0;
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active {
pointer-events: none;
background-color: var(--_button-background-active);
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active path,
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active line {
stroke: var(--_accent-color);
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active circle {
fill: var(--_accent-color);
}
`,YA=`/* The element that display info while in latex mode */
#mathlive-suggestion-popover {
background-color: rgba(97, 97, 97);
color: #fff;
text-align: center;
border-radius: 8px;
position: fixed;
z-index: 1;
display: none;
flex-direction: column;
justify-content: center;
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}
#mathlive-suggestion-popover.top-tip::after {
content: '';
position: absolute;
top: -15px;
left: calc(50% - 15px);
width: 0;
height: 0;
border-left: 15px solid transparent;
border-right: 15px solid transparent;
border-bottom: 15px solid rgba(97, 97, 97);
font-size: 1rem;
}
#mathlive-suggestion-popover.bottom-tip::after {
content: '';
position: absolute;
bottom: -15px;
left: calc(50% - 15px);
width: 0;
height: 0;
border-left: 15px solid transparent;
border-right: 15px solid transparent;
border-top: 15px solid rgba(97, 97, 97);
font-size: 1rem;
}
#mathlive-suggestion-popover.is-animated {
transition: all 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
animation: ML__fade-in cubic-bezier(0, 0, 0.2, 1) 0.15s;
}
#mathlive-suggestion-popover.is-visible {
display: flex;
}
@keyframes ML__fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* The wrapper class for the entire content of the popover panel */
#mathlive-suggestion-popover ul {
display: flex;
flex-flow: column;
list-style: none;
margin: 0;
padding: 0;
align-items: flex-start;
max-height: 400px;
overflow-y: auto;
}
#mathlive-suggestion-popover li {
display: flex;
flex-direction: row;
justify-content: space-between;
margin: 8px;
padding: 8px;
width: calc(100% - 16px - 16px);
column-gap: 1em;
border-radius: 8px;
cursor: pointer;
/* Since the content can be clicked on, provide feedback on hover */
}
#mathlive-suggestion-popover li a {
color: #5ea6fd;
padding-top: 0.3em;
margin-top: 0.4em;
display: block;
}
#mathlive-suggestion-popover li a:hover {
color: #5ea6fd;
text-decoration: underline;
}
#mathlive-suggestion-popover li:hover,
#mathlive-suggestion-popover li.is-pressed,
#mathlive-suggestion-popover li.is-active {
background: rgba(255, 255, 255, 0.1);
}
/* The command inside a popover (inside a #mathlive-suggestion-popover) */
.ML__popover__command {
font-size: 1.6rem;
font-family: KaTeX_Main;
}
.ML__popover__current {
background: #5ea6fd;
color: #fff;
}
.ML__popover__latex {
font-family: 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
align-self: center;
}
/* The keyboard shortcuts for a symbol as displayed in the popover */
.ML__popover__keybinding {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-size: 0.8em;
opacity: 0.7;
}
/* Style for the character that joins the modifiers of a keyboard shortcut
(usually a "+" sign)*/
.ML__shortcut-join {
opacity: 0.5;
}
`,rs=`/* The element that displays the keys as the user type them */
#mathlive-keystroke-caption-panel {
visibility: hidden;
/*min-width: 160px;*/
/*background-color: rgba(97, 97, 200, .95);*/
background: var(--secondary, hsl(var(--_hue), 19%, 26%));
border-color: var(--secondary-border, hsl(0, 0%, 91%));
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
text-align: center;
border-radius: 6px;
padding: 16px;
position: absolute;
z-index: 1;
display: flex;
flex-direction: row-reverse;
justify-content: center;
--keystroke: white;
--on-keystroke: #555;
--keystroke-border: #f7f7f7;
}
@media (prefers-color-scheme: dark) {
body:not([theme='light']) #mathlive-keystroke-caption-panel {
--keystroke: hsl(var(--_hue), 50%, 30%);
--on-keystroke: hsl(0, 0%, 98%);
--keystroke-border: hsl(var(--_hue), 50%, 25%);
}
}
body[theme='dark'] #mathlive-keystroke-caption-panel {
--keystroke: hsl(var(--_hue), 50%, 30%);
--on-keystroke: hsl(0, 0%, 98%);
--keystroke-border: hsl(var(--_hue), 50%, 25%);
}
#mathlive-keystroke-caption-panel > span {
min-width: 14px;
/*height: 8px;*/
margin: 0 8px 0 0;
padding: 4px;
background-color: var(--keystroke);
color: var(--on-keystroke);
fill: currentColor;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-size: 1em;
border-radius: 6px;
border: 2px solid var(--keystroke-border);
/*box-shadow: 0 7px 14px rgba(0,0,0,0.25), 0 5px 5px rgba(0,0,0,0.22);*/
}
`,Kc=`.ML__keyboard {
--_keyboard-height: 0;
--_keyboard-zindex: var(--keyboard-zindex, 105);
--_accent-color: var(--keyboard-accent-color, #0c75d8);
--_background: var(--keyboard-background, #cacfd7);
--_border: var(--keyboard-border, #ddd);
--_padding-horizontal: var(--keyboard-padding-horizontal, 0px);
--_padding-top: var(--keyboard-padding-top, 5px);
--_padding-bottom: var(--keyboard-padding-bottom, 0px);
--_row-padding-left: var(--keyboard-row-padding-left, 0px);
--_row-padding-right: var(--keyboard-row-padding-right, 0px);
--_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);
--_toolbar-text-active: var(--keyboard-toolbar-text-active, var(--_accent-color));
--_toolbar-background: var(--keyboard-toolbar-background, transparent);
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);
--_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);
--_toolbar-font-size: var(--keyboard-toolbar-font-size, '135%');
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);
--_keycap-background: var(--keycap-background, white);
--_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);
--_keycap-background-active: var(--keycap-background-active, var(--_accent-color));
--_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));
--_keycap-border: var(--keycap-border, #e5e6e9);
--_keycap-border-bottom: var(--keycap-border-bottom, #8d8f92);
--_keycap-text: var(--keycap-text, #000);
--_keycap-text-active: var(--keycap-text-active, #fff);
--_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));
--_keycap-text-pressed: var(--keycap-text-pressed, #fff);
--_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));
--_keycap-primary-background: var(--keycap-primary-background, var(--_accent-color));
--_keycap-primary-text: var(--keycap-primary-text, #ddd);
--_keycap-primary-background-hover: var(--keycap-primary-background-hover, #0d80f2);
--_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);
--_keycap-secondary-text: var(--keycap-secondary-text, #060707);
--_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);
--_keycap-height: var(--keycap-height, 60px);
/* Keycap width (incl. margin) */
--_keycap-max-width: var(--keycap-max-width, 100px);
--_keycap-gap: var(--keycap-gap, 8px);
--_keycap-font-size: var(--keycap-font-size, clamp(16px, 4cqw, 24px));
--_keycap-small-font-size: var(--keycap-small-font-size, calc(var(--keycap-font-size) * 0.8));
--_keycap-extra-small-font-size: var(--keycap-extra-small-font-size, calc(var(--keycap-font-size) / 1.42));
--_variant-panel-background: var(--variant-panel-background, #fff);
--_variant-keycap-text: var(--variant-keycap-text, var(--_keycap-text));
--_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));
--_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));
--_variant-keycap-length: var(--variant-keycap-length, 70px);
--_variant-keycap-font-size: var(--variant-keycap-font-size, 30px);
--_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 12px);
--_keycap-shift-font-size: var(--keycap-shift-font-size, 16px);
--_keycap-shift-color: var(--keycap-shift-color, var(--_accent-color));
--_box-placeholder-color: var(--box-placeholder-color, var(--_accent-color));
--_box-placeholder-pressed-color: var(--box-placeholder-pressed-color, var(--keycap-text-pressed));
}
.is-math-mode .MLK__rows .if-text-mode,
.is-text-mode .MLK__rows .if-math-mode {
display: none;
}
.if-can-undo,
.if-can-redo,
.if-can-copy,
.if-can-cut,
.if-can-paste {
opacity: 0.4;
pointer-events: none;
}
.can-undo .if-can-undo,
.can-redo .if-can-redo,
.can-copy .if-can-copy,
.can-cut .if-can-cut,
.can-paste .if-can-paste {
opacity: 1;
pointer-events: all;
}
body > .ML__keyboard {
position: fixed;
--_padding-bottom: calc(var(--keyboard-padding-bottom, 0px) + env(safe-area-inset-bottom, 0));
}
body > .ML__keyboard.is-visible > .MLK__backdrop {
box-shadow: 0 -5px 6px rgba(0, 0, 0, 0.08);
border-top: 1px solid var(--_border);
}
body > .ML__keyboard.backdrop-is-transparent.is-visible > .MLK__backdrop {
box-shadow: none;
border: none;
}
body > .ML__keyboard.is-visible.animate > .MLK__backdrop {
transition: 0.28s cubic-bezier(0, 0, 0.2, 1);
transition-property: transform, opacity;
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
.ML__keyboard {
position: relative;
overflow: hidden;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: var(--_keyboard-zindex);
box-sizing: border-box;
outline: none;
border: none;
margin: 0;
padding: 0;
line-height: 1;
overflow-wrap: unset;
text-align: left;
vertical-align: baseline;
cursor: auto;
white-space: pre;
box-shadow: none;
opacity: 1;
transform: none;
pointer-events: none;
}
.ML__keyboard :where(div) {
box-sizing: border-box;
outline: none;
border: none;
margin: 0;
padding: 0;
line-height: 1;
overflow-wrap: unset;
text-align: left;
vertical-align: baseline;
cursor: auto;
white-space: pre;
box-shadow: none;
transform: none;
}
.MLK__backdrop {
position: absolute;
bottom: calc(-1 * var(--_keyboard-height));
width: 100%;
height: var(--_keyboard-height);
box-sizing: border-box;
padding-top: var(--_padding-top);
padding-bottom: var(--_padding-bottom);
padding-left: var(--_padding-horizontal);
padding-right: var(--_padding-horizontal);
opacity: 0;
visibility: hidden;
transform: translate(0, 0);
background: var(--_background);
}
.backdrop-is-transparent .MLK__backdrop {
background: transparent;
}
/* If a custom layout has a custom container/backdrop
(backdrop-is-transparent), make sure to let pointer event go through. */
.backdrop-is-transparent .MLK__plate {
background: transparent;
pointer-events: none;
}
/* If a custom layout has a custom container/backdrop, make sure to
allow pointer events on it. */
.backdrop-is-transparent .MLK__layer > div > div {
pointer-events: all;
}
.ML__keyboard.is-visible > .MLK__backdrop {
transform: translate(0, calc(-1 * var(--_keyboard-height)));
opacity: 1;
visibility: visible;
}
.caps-lock-indicator {
display: none;
width: 8px;
height: 8px;
background: #0cbc0c;
box-shadow: inset 0 0 4px 0 #13ca13, 0 0 4px 0 #a9ef48;
border-radius: 8px;
right: 8px;
top: 8px;
position: absolute;
}
.ML__keyboard.is-caps-lock .caps-lock-indicator {
display: block;
}
.ML__keyboard.is-caps-lock .shift {
background: var(--_keycap-background-active);
color: var(--_keycap-text-active);
}
.MLK__plate {
position: absolute;
top: var(--_padding-top);
left: var(--_padding-horizontal);
width: calc(100% - 2 * var(--_padding-horizontal));
margin: 0;
padding: 0;
box-sizing: border-box;
container-type: inline-size;
touch-action: none;
-webkit-user-select: none;
user-select: none;
pointer-events: all;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-size: 16px;
/* Size of toolbar labels */
font-weight: 400;
text-shadow: none;
}
.ML__box-placeholder {
color: var(--_box-placeholder-color);
}
.MLK__tex {
font-family: KaTeX_Main, KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
}
.MLK__tex-math {
font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
font-style: italic;
}
.MLK__layer {
display: none;
outline: none;
}
.MLK__layer.is-visible {
display: flex;
flex-flow: column;
}
/* Keyboard layouts are made or rows of keys... */
.MLK__rows {
--_keycap-width: min(var(--_keycap-max-width), 10cqw);
display: flex;
flex-flow: column;
align-items: center;
border-collapse: separate;
clear: both;
border: 0;
margin: 0;
margin-bottom: var(--_keycap-gap);
gap: var(--_keycap-gap);
/* If the styling include, e.g., some shadows, they will be
cut off by the overflow. In that case, set the padding to
compensate. */
padding-left: var(--_row-padding-left);
padding-right: var(--_row-padding-right);
overflow: visible;
touch-action: none;
}
.MLK__rows > .MLK__row {
display: flex;
flex-flow: row;
justify-content: center;
width: 100%;
gap: var(--_keycap-gap);
margin: 0;
padding: 0;
/* For the alignment of the text on some modifiers (e.g. shift) */
/* Extra spacing between two adjacent keys */
}
.MLK__rows > .MLK__row .tex {
font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
}
.MLK__rows > .MLK__row .tex-math {
font-family: KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
}
.MLK__rows > .MLK__row .big-op {
font-size: calc(1.25 * var(--_keycap-font-size));
}
.MLK__rows > .MLK__row .small {
font-size: var(--_keycap-small-font-size);
}
.MLK__rows > .MLK__row .bottom {
justify-content: flex-end;
}
.MLK__rows > .MLK__row .left {
align-items: flex-start;
padding-left: 12px;
}
.MLK__rows > .MLK__row .right {
align-items: flex-end;
padding-right: 12px;
}
.MLK__rows > .MLK__row .w0 {
width: 0;
}
.MLK__rows > .MLK__row .w5 {
width: calc(0.5 * var(--_keycap-width) - var(--_keycap-gap));
}
.MLK__rows > .MLK__row .w15 {
width: calc(1.5 * var(--_keycap-width) - var(--_keycap-gap));
}
.MLK__rows > .MLK__row .w20 {
width: calc(2 * var(--_keycap-width) - var(--_keycap-gap));
}
.MLK__rows > .MLK__row .w40 {
width: calc(4 * var(--_keycap-width) - var(--_keycap-gap));
}
.MLK__rows > .MLK__row .w50 {
width: calc(5 * var(--_keycap-width) - var(--_keycap-gap));
}
.MLK__rows > .MLK__row .MLK__keycap.w50 {
font-size: 80%;
padding-top: 10px;
font-weight: 100;
}
.MLK__rows > .MLK__row .separator {
background: transparent;
border: none;
pointer-events: none;
}
.MLK__rows > .MLK__row .horizontal-rule {
height: 6px;
margin-top: 3px;
margin-bottom: 0;
width: 100%;
border-radius: 0;
border-top: var(--_horizontal-rule);
}
.MLK__rows > .MLK__row .ghost {
background: var(--_toolbar-background);
border: none;
color: var(--_toolbar-text);
}
.MLK__rows > .MLK__row .ghost:hover {
background: var(--_toolbar-background-hover);
}
.MLK__rows > .MLK__row .bigfnbutton {
font-size: var(--_keycap-extra-small-font-size);
}
.MLK__rows > .MLK__row .shift,
.MLK__rows > .MLK__row .action {
color: var(--_keycap-secondary-text);
background: var(--_keycap-secondary-background);
border-color: var(--_keycap-secondary-border);
border-bottom-color: var(--_keycap-secondary-border-bottom);
line-height: 0.8;
font-size: min(1rem, var(--_keycap-small-font-size));
font-weight: 600;
padding: 8px 12px 8px 12px;
}
.MLK__rows > .MLK__row .shift:hover,
.MLK__rows > .MLK__row .action:hover {
background: var(--_keycap-secondary-background-hover);
}
.MLK__rows > .MLK__row .action.primary {
background: var(--_keycap-primary-background);
color: var(--_keycap-primary-text);
}
.MLK__rows > .MLK__row .action.primary:hover {
background: var(--_keycap-primary-background-hover);
color: var(--_keycap-primary-text);
}
.MLK__rows > .MLK__row .shift.selected,
.MLK__rows > .MLK__row .action.selected {
color: var(--_toolbar-text-active);
}
.MLK__rows > .MLK__row .shift.selected.is-pressed,
.MLK__rows > .MLK__row .action.selected.is-pressed,
.MLK__rows > .MLK__row .shift.selected.is-active,
.MLK__rows > .MLK__row .action.selected.is-active {
color: white;
}
.MLK__rows > .MLK__row .warning {
background: #cd0030;
color: white;
}
.MLK__rows > .MLK__row .warning svg.svg-glyph {
width: 24px;
height: 24px;
min-height: 24px;
}
/** A regular keycap
* Use the :where() pseudo-class to give it a very low specifity,
* so that it can be overriden by custom style.
*/
:where(.MLK__rows > .MLK__row div) {
display: flex;
flex-flow: column;
align-items: center;
justify-content: space-evenly;
width: calc(var(--_keycap-width) - var(--_keycap-gap));
height: var(--_keycap-height);
box-sizing: border-box;
padding: 0;
vertical-align: top;
text-align: center;
float: left;
color: var(--_keycap-text);
fill: currentColor;
font-size: var(--_keycap-font-size);
background: var(--_keycap-background);
border: 1px solid var(--_keycap-border);
border-bottom-color: var(--_keycap-border-bottom);
border-radius: 6px;
cursor: pointer;
touch-action: none;
/* Keys with a variants panel */
position: relative;
overflow: hidden;
-webkit-user-select: none;
user-select: none;
-webkit-tap-highlight-color: transparent;
}
:where(.MLK__rows > .MLK__row div):hover {
overflow: visible;
background: var(--_keycap-background-hover);
}
:where(.MLK__rows > .MLK__row div) .ML__latex {
pointer-events: none;
touch-action: none;
}
:where(.MLK__rows > .MLK__row div) svg.svg-glyph {
margin: 8px 0;
width: 20px;
height: 20px;
min-height: 20px;
}
:where(.MLK__rows > .MLK__row div) svg.svg-glyph-lg {
margin: 8px 0;
width: 24px;
height: 24px;
min-height: 24px;
}
:where(.MLK__rows > .MLK__row div).MLK__tex-math {
font-size: 25px;
}
:where(.MLK__rows > .MLK__row div).is-pressed {
background: var(--_keycap-background-pressed);
color: var(--_keycap-text-pressed);
--_box-placeholder-color: var(--_box-placeholder-pressed-color);
}
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,
:where(.MLK__rows > .MLK__row div).action.is-active,
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,
:where(.MLK__rows > .MLK__row div).action.is-pressed {
z-index: calc(var(--_keyboard-zindex) - 5);
}
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active aside,
:where(.MLK__rows > .MLK__row div).action.is-active aside,
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed aside,
:where(.MLK__rows > .MLK__row div).action.is-pressed aside {
display: none;
}
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active .MLK__shift,
:where(.MLK__rows > .MLK__row div).action.is-active .MLK__shift,
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed .MLK__shift,
:where(.MLK__rows > .MLK__row div).action.is-pressed .MLK__shift {
display: none;
}
:where(.MLK__rows > .MLK__row div).shift.is-pressed,
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,
:where(.MLK__rows > .MLK__row div).action.is-pressed {
background: var(--_keycap-background-pressed);
color: var(--_keycap-text-pressed);
}
:where(.MLK__rows > .MLK__row div).shift.is-active,
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,
:where(.MLK__rows > .MLK__row div).action.is-active {
background: var(--_keycap-background-active);
color: var(--_keycap-text-active);
--_box-placeholder-color: var(--_box-placeholder-pressed-color);
}
:where(.MLK__rows > .MLK__row div) small {
color: var(--_keycap-secondary-text);
}
:where(.MLK__rows > .MLK__row div) aside {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-size: 10px;
line-height: 10px;
color: var(--_keycap-secondary-text);
}
/* Add an attribute 'data-tooltip' to display a tooltip on hover.
Note there are a different set of tooltip rules for the keyboard toggle
(it's in a different CSS tree) */
.ML__keyboard [data-tooltip] {
position: relative;
}
.ML__keyboard [data-tooltip]::after {
position: absolute;
display: inline-table;
content: attr(data-tooltip);
top: inherit;
bottom: 100%;
width: max-content;
max-width: 200px;
padding: 8px 8px;
background: #616161;
color: #fff;
text-align: center;
z-index: 2;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
border-radius: 2px;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-weight: 400;
font-size: 12px;
transition: all 0.15s cubic-bezier(0.4, 0, 1, 1) 1s;
opacity: 0;
transform: scale(0.5);
}
.ML__keyboard [data-tooltip]:hover {
position: relative;
}
.ML__keyboard [data-tooltip]:hover::after {
opacity: 1;
transform: scale(1);
}
.MLK__toolbar {
align-self: center;
display: flex;
flex-flow: row;
justify-content: space-between;
width: 100%;
max-width: 996px;
min-height: 32px;
/* Icons for undo/redo, etc. */
}
.MLK__toolbar svg {
height: 20px;
width: 20px;
}
.MLK__toolbar > .left {
position: relative;
display: flex;
justify-content: flex-start;
flex-flow: row;
}
.MLK__toolbar > .right {
display: flex;
justify-content: flex-end;
flex-flow: row;
}
.MLK__toolbar > div > div {
/* "button" in the toolbar */
display: flex;
align-items: center;
justify-content: center;
color: var(--_toolbar-text);
fill: currentColor;
background: var(--_toolbar-background);
font-size: var(--_toolbar-font-size);
padding: 4px 15px;
cursor: pointer;
width: max-content;
min-width: 42px;
min-height: 34px;
border: none;
padding-left: 10px;
padding-right: 10px;
padding-bottom: 8px;
padding-top: 8px;
margin-top: 0;
margin-bottom: 4px;
margin-left: 4px;
margin-right: 4px;
border-radius: 8px;
box-shadow: none;
border-bottom: 2px solid transparent;
}
.MLK__toolbar > div > div:not(.disabled):not(.selected):hover {
background: var(--_toolbar-background-hover);
}
.MLK__toolbar > div > div.disabled svg,
.MLK__toolbar > div > div.disabled:hover svg,
.MLK__toolbar > div > div.disabled.is-pressed svg {
color: var(--_toolbar-text);
opacity: 0.2;
}
.MLK__toolbar > div > div:hover,
.MLK__toolbar > div > div:active,
.MLK__toolbar > div > div.is-pressed,
.MLK__toolbar > div > div.is-active {
color: var(--_toolbar-text-active);
}
.MLK__toolbar > div > div.selected {
color: var(--_toolbar-text-active);
background: var(--_toolbar-background-selected);
border-radius: 0;
border-bottom-color: var(--_toolbar-text-active);
padding-bottom: 4px;
margin-bottom: 8px;
}
/* This is the element that displays variants on press+hold */
.MLK__variant-panel {
visibility: hidden;
position: fixed;
display: flex;
flex-flow: row wrap-reverse;
justify-content: center;
align-content: center;
margin: 0;
padding: 0;
bottom: auto;
top: 0;
box-sizing: content-box;
transform: none;
z-index: calc(var(--_keyboard-zindex) + 1);
touch-action: none;
max-width: 350px;
background: var(--_variant-panel-background);
text-align: center;
border-radius: 6px;
padding: 6px;
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
transition: none;
}
.MLK__variant-panel.is-visible {
visibility: visible;
}
.MLK__variant-panel.compact {
--_variant-keycap-length: var(--variant-keycap-length, 50px);
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
--_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 10px);
}
.MLK__variant-panel .item {
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
font-size: var(--_variant-keycap-font-size);
height: var(--_variant-keycap-length);
width: var(--_variant-keycap-length);
margin: 0;
box-sizing: border-box;
border-radius: 5px;
border: 1px solid transparent;
background: transparent;
pointer-events: all;
cursor: pointer;
color: var(--_variant-keycap-text);
fill: currentColor;
}
@media (max-height: 412px) {
.MLK__variant-panel .item {
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
--_variant-keycap-length: var(--variant-keycap-length, 50px);
}
}
.MLK__variant-panel .item .ML__latex {
pointer-events: none;
}
.MLK__variant-panel .item.is-active {
background: var(--_variant-keycap-background-active);
color: var(--_variant-keycap-text-active);
}
.MLK__variant-panel .item.is-pressed {
background: var(--_variant-keycap-background-pressed);
color: var(--_variant-keycap-text-pressed);
}
.MLK__variant-panel .item.small {
font-size: var(--_keycap-small-font-size);
}
.MLK__variant-panel .item.swatch-button {
box-sizing: border-box;
background: #fbfbfb;
}
.MLK__variant-panel .item.swatch-button > span {
display: inline-block;
margin: 6px;
width: calc(100% - 12px);
height: calc(100% - 12px);
border-radius: 50%;
}
.MLK__variant-panel .item.swatch-button:hover {
background: #f0f0f0;
}
.MLK__variant-panel .item.swatch-button:hover > span {
border-radius: 2px;
}
.MLK__variant-panel .item.box > div,
.MLK__variant-panel .item.box > span {
border: 1px dashed rgba(0, 0, 0, 0.24);
}
.MLK__variant-panel .item .warning {
min-height: 60px;
min-width: 60px;
background: #cd0030;
color: white;
padding: 5px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 5px;
}
.MLK__variant-panel .item .warning.is-pressed,
.MLK__variant-panel .item .warning.is-active {
background: red;
}
.MLK__variant-panel .item .warning svg.svg-glyph {
width: 50px;
height: 50px;
}
.MLK__variant-panel .item aside {
font-size: var(--_variant-keycap-aside-font-size);
line-height: 12px;
opacity: 0.78;
padding-top: 2px;
}
.MLK__keycap {
position: relative;
}
.MLK__shift {
display: block;
position: absolute;
right: 4px;
top: 4px;
font-size: var(--_keycap-shift-font-size);
color: var(--_keycap-shift-color);
}
.hide-shift .MLK__shift {
display: none;
}
@media (max-width: 414px) {
.MLK__variant-panel {
max-width: 350px;
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
--_variant-keycap-length: var(--variant-keycap-length, 50px);
}
}
/* @xs breakpoint: iPhone 5 */
@container (max-width: 414px) {
.MLK__rows {
--_keycap-gap: max(var(--_keycap-gap, 2px), 2px);
--_keycap-height: max(var(--_keycap-height), 42px);
--_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);
}
.MLK__toolbar > div > div {
font-size: 100%;
margin-left: 2px;
margin-right: 2px;
}
.MLK__rows .shift,
.MLK__rows .action {
font-size: 65%;
}
.MLK__rows .warning svg.svg-glyph {
width: 14px;
height: 14px;
min-height: 14px;
}
}
@container (max-width: 744px) {
.MLK__rows {
--_keycap-gap: max(var(--keycap-gap, 2px), 2px);
--_keycap-height: max(var(--keycap-height, 52px), 52px);
--_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);
}
.MLK__toolbar > div > div {
padding-left: 0;
padding-right: 0;
}
.MLK__tooltip::after {
padding: 8px 16px;
font-size: 16px;
}
.MLK__rows > .MLK__row > div.fnbutton {
font-size: 16px;
}
.MLK__rows > .MLK__row > div.bigfnbutton {
font-size: calc(var(--_keycap-extra-small-font-size) / 1.55);
}
.MLK__rows > .MLK__row > div.small {
font-size: 13px;
}
.MLK__rows > .MLK__row > div > aside {
display: none;
}
.MLK__shift {
display: none;
}
}
/* Medium breakpoint: larger phones */
@container (max-width: 768px) {
.MLK__rows {
--_keycap-height: max(var(--keycap-height, 42px), 42px);
}
.MLK__rows > .MLK__row > div > small {
font-size: 14px;
}
}
@media (max-height: 768px) {
.MLK__rows {
--_keycap-height: max(var(--keycap-height, 42px), 42px);
}
.MLK__rows > .MLK__row > div > small {
font-size: 14px;
}
}
@container (max-width: 1444px) {
.MLK__rows .if-wide {
display: none;
}
}
@media (prefers-color-scheme: dark) {
.ML__keyboard {
--_accent-color: var(--keyboard-accent-color, #0b5c9c);
--_background: var(--keyboard-background, #151515);
--_border: var(--keyboard-border, transparent);
--_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);
--keyboard-toolbar-background-hover: #303030;
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);
--_keycap-background: var(--keycap-background, #1f2022);
--_keycap-background-hover: var(--keycap-background-hover, #2f3032);
--_keycap-border: var(--_keycap-border, transparent);
--_keycap-border-bottom: var(--_keycap-border-bottom, transparent);
--_keycap-text: var(--keycap-text, #e3e4e8);
--_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);
--_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);
--keycap-secondary-border: transparent;
--keycap-secondary-border-bottom: transparent;
--_keycap-secondary-border: var(--keycap-secondary-border, transparent);
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);
--_variant-panel-background: var(--variant-panel-background, #303030);
--_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);
}
}
/* Same as the media query, but with a class */
[theme='dark'] .ML__keyboard {
--_accent-color: var(--keyboard-accent-color, #0b5c9c);
--_background: var(--keyboard-background, #151515);
--_border: var(--keyboard-border, transparent);
--_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);
--keyboard-toolbar-background-hover: #303030;
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);
--_keycap-background: var(--keycap-background, #1f2022);
--_keycap-background-hover: var(--keycap-background-hover, #2f3032);
--_keycap-border: var(--_keycap-border, transparent);
--_keycap-border-bottom: var(--_keycap-border-bottom, transparent);
--_keycap-text: var(--keycap-text, #e3e4e8);
--_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);
--_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);
--keycap-secondary-border: transparent;
--keycap-secondary-border-bottom: transparent;
--_keycap-secondary-border: var(--keycap-secondary-border, transparent);
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);
--_variant-panel-background: var(--variant-panel-background, #303030);
--_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);
}
[theme='light'] .ML__keyboard {
--_accent-color: var(--keyboard-accent-color, #0c75d8);
--_background: var(--keyboard-background, #cacfd7);
--_border: var(--keyboard-border, #ddd);
--_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);
--_toolbar-background: var(--keyboard-toolbar-background, transparent);
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);
--_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);
--_keycap-background: var(--keycap-background, white);
--_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);
--_keycap-background-active: var(--keycap-background-active, var(--_accent-color));
--_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));
--_keycap-border: var(--_keycap-border, #e5e6e9);
--_keycap-border-bottom: var(--_keycap-border-bottom, #8d8f92);
--_keycap-text: var(--keycap-text, #000);
--_keycap-text-active: var(--keycap-text-active, #fff);
--_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));
--_keycap-text-pressed: var(--keycap-text-pressed, #fff);
--_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));
--_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);
--_keycap-secondary-text: var(--keycap-secondary-text, #060707);
--_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);
--_variant-panel-background: var(--variant-panel-background, #fff);
--_variant-keycap-text: var(--variant-keycap-textvar, var(--_keycap-text));
--_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));
--_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));
}
`,tl=`:host {
--primary-color: #5898ff;
--primary-color-dimmed: #c0c0f0;
--primary-color-dark: var(--blue-500);
--primary-color-light: var(--blue-100);
--primary-color-reverse: #ffffff;
--secondary-color: #ff8a65;
--secondary-color-dimmed: #f0d5c5;
--secondary-color-dark: var(--orange-500);
--secondary-color-light: var(--orange-100);
--secondary-color-reverse: #ffffff;
--link-color: #5898ff;
--link-color-dimmed: #c5c5c5;
--link-color-dark: #121212;
--link-color-light: #e2e2e2;
--link-color-reverse: #ffffff;
--semantic-blue: var(--blue-700);
--semantic-red: var(--red-400);
--semantic-orange: var(--orange-400);
--semantic-green: var(--green-700);
--neutral-100: #f5f5f5;
--neutral-200: #eeeeee;
--neutral-300: #e0e0e0;
--neutral-400: #bdbdbd;
--neutral-500: #9e9e9e;
--neutral-600: #757575;
--neutral-700: #616161;
--neutral-800: #424242;
--neutral-900: #212121;
--red-25: #fff8f7;
--red-50: #fff1ef;
--red-100: #ffeae6;
--red-200: #ffcac1;
--red-300: #ffa495;
--red-400: #ff7865;
--red-500: #f21c0d;
--red-600: #e50018;
--red-700: #d30024;
--red-800: #bd002c;
--red-900: #a1002f;
--orange-25: #fffbf8;
--orange-50: #fff7f1;
--orange-100: #fff3ea;
--orange-200: #ffe1c9;
--orange-300: #ffcca2;
--orange-400: #ffb677;
--orange-500: #fe9310;
--orange-600: #f58700;
--orange-700: #ea7c00;
--orange-800: #dc6d00;
--orange-900: #ca5b00;
--brown-25: #fff8ef;
--brown-50: #fff1df;
--brown-100: #ffe9ce;
--brown-200: #ebcca6;
--brown-300: #cdaf8a;
--brown-400: #af936f;
--brown-500: #856a47;
--brown-600: #7f5e34;
--brown-700: #78511f;
--brown-800: #6e4200;
--brown-900: #593200;
--yellow-25: #fffdf9;
--yellow-50: #fffcf2;
--yellow-100: #fffaec;
--yellow-200: #fff2ce;
--yellow-300: #ffe8ab;
--yellow-400: #ffdf85;
--yellow-500: #ffcf33;
--yellow-600: #f1c000;
--yellow-700: #dfb200;
--yellow-800: #c9a000;
--yellow-900: #ad8a00;
--lime-25: #f4ffee;
--lime-50: #e9ffdd;
--lime-100: #ddffca;
--lime-200: #a8fb6f;
--lime-300: #94e659;
--lime-400: #80d142;
--lime-500: #63b215;
--lime-600: #45a000;
--lime-700: #268e00;
--lime-800: #007417;
--lime-900: #005321;
--green-25: #f5fff5;
--green-50: #ebffea;
--green-100: #e0ffdf;
--green-200: #a7ffa7;
--green-300: #5afa65;
--green-400: #45e953;
--green-500: #17cf36;
--green-600: #00b944;
--green-700: #00a34a;
--green-800: #008749;
--green-900: #00653e;
--teal-25: #f3ffff;
--teal-50: #e6fffe;
--teal-100: #d9fffe;
--teal-200: #8dfffe;
--teal-300: #57f4f4;
--teal-400: #43e5e5;
--teal-500: #17cfcf;
--teal-600: #00c2c0;
--teal-700: #00b5b1;
--teal-800: #00a49e;
--teal-900: #009087;
--cyan-25: #f7fcff;
--cyan-50: #eff8ff;
--cyan-100: #e7f5ff;
--cyan-200: #c2e6ff;
--cyan-300: #95d5ff;
--cyan-400: #61c4ff;
--cyan-500: #13a7ec;
--cyan-600: #069eda;
--cyan-700: #0095c9;
--cyan-800: #0088b2;
--cyan-900: #0a7897;
--blue-25: #f7faff;
--blue-50: #eef5ff;
--blue-100: #e5f1ff;
--blue-200: #bfdbff;
--blue-300: #92c2ff;
--blue-400: #63a8ff;
--blue-500: #0d80f2;
--blue-600: #0077db;
--blue-700: #006dc4;
--blue-800: #0060a7;
--blue-900: #005086;
--indigo-25: #f8f7ff;
--indigo-50: #f1efff;
--indigo-100: #eae7ff;
--indigo-200: #ccc3ff;
--indigo-300: #ac99ff;
--indigo-400: #916aff;
--indigo-500: #63c;
--indigo-600: #5a21b2;
--indigo-700: #4e0b99;
--indigo-800: #3b0071;
--indigo-900: #220040;
--purple-25: #fbf7ff;
--purple-50: #f8f0ff;
--purple-100: #f4e8ff;
--purple-200: #e4c4ff;
--purple-300: #d49aff;
--purple-400: #c36aff;
--purple-500: #a219e6;
--purple-600: #9000c4;
--purple-700: #7c009f;
--purple-800: #600073;
--purple-900: #3d0043;
--magenta-25: #fff8fb;
--magenta-50: #fff2f6;
--magenta-100: #ffebf2;
--magenta-200: #ffcddf;
--magenta-300: #ffa8cb;
--magenta-400: #ff7fb7;
--magenta-500: #eb4799;
--magenta-600: #da3689;
--magenta-700: #c82179;
--magenta-800: #b00065;
--magenta-900: #8a004c;
}
@media (prefers-color-scheme: dark) {
:host {
--semantic-blue: var(--blue-700);
--semantic-red: var(--red-400);
--semantic-orange: var(--orange-400);
--semantic-green: var(--green-700);
--semantic-bg-blue: var(--blue-25);
--semantic-bg-red: var(--red-25);
--semantic-bg-orange: var(--orange-25);
--semantic-bg-green: var(--green-25);
--neutral-100: #121212;
--neutral-200: #424242;
--neutral-300: #616161;
--neutral-400: #757575;
--neutral-500: #9e9e9e;
--neutral-600: #bdbdbd;
--neutral-700: #e0e0e0;
--neutral-800: #eeeeee;
--neutral-900: #f5f5f5;
}
}
:host([theme='dark']) {
--semantic-blue: var(--blue-700);
--semantic-red: var(--red-400);
--semantic-orange: var(--orange-400);
--semantic-green: var(--green-700);
--semantic-bg-blue: var(--blue-25);
--semantic-bg-red: var(--red-25);
--semantic-bg-orange: var(--orange-25);
--semantic-bg-green: var(--green-25);
--neutral-100: #121212;
--neutral-200: #424242;
--neutral-300: #616161;
--neutral-400: #757575;
--neutral-500: #9e9e9e;
--neutral-600: #bdbdbd;
--neutral-700: #e0e0e0;
--neutral-800: #eeeeee;
--neutral-900: #f5f5f5;
}
/* @media (prefers-color-scheme: dark) {
:host {
--label-color: #fff;
--active-label-color: #000;
--menu-bg: #525252;
--active-bg: #5898ff;
--active-bg-dimmed: #5c5c5c;
}
} */
:host {
--ui-font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
'Segoe UI Emoji', 'Segoe UI Symbol';
--ui-font-size: 14px;
--ui-line-height: 1.5;
--ui-letter-spacing: 0.007em;
--mono-font-family: 'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono',
'Source Code Pro', Menlo, Monaco, 'Courier New', monospace;
--ui-layer-1: var(--neutral-100);
--ui-layer-2: var(--neutral-200);
--ui-layer-3: var(--neutral-300);
--ui-layer-4: var(--neutral-400);
--ui-layer-5: var(--neutral-500);
--ui-layer-6: var(--neutral-600);
--ui-border-color: var(--primary-color);
--ui-border-radius: 4px;
--ui-text: var(--neutral-900);
--ui-text-secondary: var(--neutral-700);
--ui-text-placeholder: var(--neutral-500);
--ui-text-muted: var(--neutral-300);
/** A field is a UI element in which a user can type data, for
* example an input or textarea element.
*/
--ui-field-bg: var(--neutral-100);
--ui-field-bg-hover: var(--neutral-100);
--ui-field-bg-disabled: var(--neutral-300);
--ui-field-bg-invalid: var(--red-100);
--ui-field-bg-focus: var(--neutral-100);
--ui-field-border: 0.5px solid var(--border-color);
--ui-field-border-hover: 0.5px solid var(--border-color);
--ui-field-border-disabled: 0.5px solid var(--border-color);
--ui-field-border-invalid: 0.5px solid var(--border-color);
--ui-field-border-focus: 0.5px solid var(--border-color);
--ui-menu-bg: var(--neutral-100);
--ui-menu-text: var(--neutral-900);
--ui-menu-bg-hover: var(--neutral-200);
--ui-menu-text-hover: var(--neutral-900);
/** The \`active\` state is used for the state of menu items
* when they are selected.
*/
--ui-menu-bg-active: var(--primary-color);
--ui-menu-text-active: var(--primary-color-reverse);
/** The \`active-muted\` set is used for the state of
* submenus when they are open.
*/
--ui-menu-bg-active-muted: var(--neutral-300);
--ui-menu-text-active-muted: var(--neutral-900);
/* --ui-menu-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.302),
0 2px 6px 2px rgba(60, 64, 67, 0.149); */
--ui-menu-shadow: 0 0 2px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.2);
--ui-menu-divider: 0.5px solid #c7c7c7;
/* var(--neutral-300); */
--ui-menu-z-index: 10000;
--page-bg: var(--neutral-100);
--content-bg: var(--neutral-200);
}
@media (prefers-color-scheme: dark) {
:host {
--ui-menu-bg: var(--neutral-200);
}
}
:host([theme='dark']) {
--ui-menu-bg: var(--neutral-200);
}
/* PingFang SC is a macOS font. Microsoft Yahei is a Windows font.
Noto is a Linux/Android font.
*/
:lang(zh-cn),
:lang(zh-sg),
:lang(zh-my),
:lang(zh) {
--ui-font-family: -apple-system, system-ui, 'PingFang SC', 'Hiragino Sans GB',
'Noto Sans CJK SC', 'Noto Sans SC', 'Noto Sans', 'Microsoft Yahei UI',
'Microsoft YaHei New', 'Microsoft Yahei', '\u5FAE\u8F6F\u96C5\u9ED1', SimSun, '\u5B8B\u4F53',
STXihei, '\u534E\u6587\u7EC6\u9ED1', sans-serif;
}
:lang(zh-tw),
:lang(zh-hk),
:lang(zh-mo) {
--ui-font-family: -apple-system, system-ui, 'Noto Sans',
'Microsoft JhengHei UI', 'Microsoft JhengHei', '\u5FAE\u8EDF\u6B63\u9ED1\u9AD4', '\u65B0\u7D30\u660E\u9AD4',
'PMingLiU', '\u7D30\u660E\u9AD4', 'MingLiU', sans-serif;
}
:lang(ja),
:lang(ja-jp),
:lang(ja-jp-mac) {
--ui-font-family: -apple-system, system-ui, 'Hiragino Sans',
'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', 'Noto Sans JP', 'Noto Sans',
'\u6E38\u30B4\u30B7\u30C3\u30AF', '\u6E38\u30B4\u30B7\u30C3\u30AF\u4F53', YuGothic, 'Yu Gothic', '\u30E1\u30A4\u30EA\u30AA', Meiryo,
'\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF', 'MS PGothic', sans-serif;
}
:lang(ko),
:lang(ko-kr),
:lang(ko-kr-std) {
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
'Noto Sans', 'Malgun Gothic', '\uB9D1\uC740 \uACE0\uB515', 'Apple SD Gothic Neo',
'\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo', 'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
}
:lang(ko-kr-apple) {
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
'Noto Sans', 'Apple SD Gothic Neo', '\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo',
'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
}
:lang(zh-cn),
:lang(zh-sg),
:lang(zh-my),
:lang(zh),
:lang(zh-tw),
:lang(zh-hk),
:lang(zh-mo),
:lang(ja),
:lang(ja-jp),
:lang(ja-jp-mac),
:lang(ko),
:lang(ko-kr),
:lang(ko-kr-std),
:lang(ko-kr-apple) {
--ui-font-size: 1rem;
--ui-line-height: 1.7;
--ui-letter-spacing: 0;
}
:dir(rtl) {
--ui-line-height: auto;
--ui-letter-spacing: 0;
}
`,eA=`.ui-menu *,
.ui-menu ::before,
.ui-menu ::after {
box-sizing: border-box;
}
.ui-menu {
display: none;
color-scheme: light dark;
-webkit-user-select: none;
/* Important: Safari iOS doesn't respect user-select */
user-select: none;
cursor: default;
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0 0 0 0);
--active-label-color: #fff;
/* ui-menu-text-active */
--label-color: #121212;
/* ui-menu-text */
--menu-bg: #e2e2e2;
/* ui-menu-background */
--active-bg: #5898ff;
/* ui-menu-background-active */
--active-bg-dimmed: #c5c5c5;
/* ui-menu-background-active-muted */
}
/** Use the :where pseudo selector to make the specificity of the
* selector 0, so that it can be overridden by the user.
*/
:where(.ui-menu-container) {
position: absolute;
overflow: visible;
width: auto;
height: auto;
z-index: 10000;
border-radius: 8px;
background: var(--ui-menu-bg);
box-shadow: var(--ui-menu-shadow);
list-style: none;
padding: 6px 0 6px 0;
margin: 0;
user-select: none;
cursor: default;
color: var(--ui-menu-text);
font-weight: normal;
font-style: normal;
text-shadow: none;
text-transform: none;
letter-spacing: 0;
outline: none;
opacity: 1;
/* The [popover] elements have a 1px solid black border. Ugh. */
border: none;
width: fit-content;
height: fit-content;
}
:where(.ui-menu-container > li) {
display: flex;
flex-flow: row;
align-items: center;
padding: 1px 7px 1px 7px;
margin-top: 0;
margin-left: 6px;
margin-right: 6px;
border-radius: 4px;
white-space: nowrap;
position: relative;
outline: none;
fill: currentColor;
user-select: none;
cursor: default;
text-align: left;
color: inherit;
font-family: var(--ui-font-family);
font-size: var(--ui-font-size);
line-height: var(--ui-line-height);
letter-spacing: var(--ui-letter-spacing);
}
:where(.ui-menu-container > li > .label) {
appearance: none;
background: none;
outline: none;
width: 100%;
margin: 0;
padding: 1px 2px 1px 1px;
overflow: visible;
border: 1px solid transparent;
white-space: nowrap;
text-align: start;
}
:where(.ui-menu-container > li:has(.heading)) {
margin-top: 0.5em;
}
:where(.ui-menu-container > li > .label.heading) {
font-weight: bold;
opacity: 0.4;
}
:where(.ui-menu-container > li.indent > .label) {
margin-inline-start: 12px;
}
:where(.ui-menu-container > li > .label.indent) {
margin-inline-start: 12px;
}
:where(.ui-menu-container > li[role='divider']) {
border-bottom: 1px solid var(--ui-menu-divider);
border-radius: 0;
padding: 0;
margin-left: 15px;
margin-right: 15px;
padding-top: 5px;
margin-bottom: 5px;
width: calc(100% - 30px);
/** 100% - (margin-left + margin-right) */
}
:where(.ui-menu-container > li[aria-disabled='true']) {
opacity: 0.5;
}
:where(.ui-menu-container > li.active) {
background: var(--ui-menu-bg-active);
background: -apple-system-control-accent;
color: var(--ui-menu-text-active);
}
:where(.ui-menu-container > li.active.is-submenu-open) {
background: var(--ui-menu-bg-active-muted);
color: inherit;
}
:where(.ui-menu-container > li[aria-haspopup='true'] > .label) {
padding-inline-end: 0;
}
:where(.ui-menu-container > li[aria-haspopup='true'].active::after) {
color: var(--ui-menu-text-active);
}
/** Keyboard shortcut */
:where(.ui-menu-container > li > kbd) {
font-family: var(--ui-font-family);
margin-inline-start: 12px;
opacity: 0.4;
}
:where(.ui-menu-container > li.active > kbd) {
opacity: 0.85;
}
.ui-trailing-chevron {
display: flex;
margin-inline-start: 24px;
width: 10px;
height: 10px;
margin-bottom: 4px;
}
.ui-trailing-chevron:dir(rtl) {
transform: scaleX(-1);
}
.ui-checkmark {
display: flex;
margin-inline-end: -11px;
margin-inline-start: -4px;
margin-top: 2px;
width: 16px;
height: 16px;
}
.ui-mixedmark {
display: flex;
margin-inline-end: -11px;
margin-inline-start: -4px;
margin-top: 2px;
width: 16px;
height: 16px;
}
`,rl;function Jl(e){let t="";switch(e){case"mathfield-element":t=`
:host { display: inline-block; background-color: field; color: fieldtext; border-width: 1px; border-style: solid; border-color: #acacac; border-radius: 2px; padding:4px;}
:host([hidden]) { display: none; }
:host([disabled]), :host([disabled]:focus), :host([disabled]:focus-within) { outline: none; opacity: .5; }
:host(:focus), :host(:focus-within) {
outline: Highlight auto 1px; /* For Firefox */
outline: -webkit-focus-ring-color auto 1px;
}
:host([readonly]:focus), :host([readonly]:focus-within),
:host([read-only]:focus), :host([read-only]:focus-within) {
outline: none;
}
@media (hover: none) and (pointer: coarse) {
:host(:not(:focus)) :first-child { pointer-events: none !important; }
}`;break;case"core":t=pl;break;case"mathfield":t=du;break;case"environment-popover":t=Qc;break;case"suggestion-popover":t=YA;break;case"keystroke-caption":t=rs;break;case"virtual-keyboard":t=Kc;break;case"ui":t=tl;break;case"menu":t=eA;break;default:debugger}return t}function ss(e){return rl||(rl={}),rl[e]||(rl[e]=new CSSStyleSheet,rl[e].replaceSync(Jl(e))),rl[e]}var Tl;function lc(e){var t;if(!("adoptedStyleSheets"in document)){if(window.document.getElementById(`mathlive-style-${e}`))return;const r=window.document.createElement("style");r.id=`mathlive-style-${e}`,r.append(window.document.createTextNode(Jl(e))),window.document.head.appendChild(r);return}if(Tl||(Tl={}),((t=Tl[e])!=null?t:0)!==0)Tl[e]+=1;else{const r=ss(e);document.adoptedStyleSheets=[...document.adoptedStyleSheets,r],Tl[e]=1}}function wc(e){if("adoptedStyleSheets"in document&&Tl!=null&&Tl[e]&&(Tl[e]-=1,Tl[e]<=0)){const t=rl[e];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(r=>r!==t)}}var cc=class Yh extends zr{constructor(t){var r;super(E(f({},t),{type:"accent",body:(r=t.body)!=null?r:void 0})),t.accentChar?this.accent=t.accentChar:this.svgAccent=t==null?void 0:t.svgAccent,this.skipBoundary=!0,this.captureSelection=!0}static fromJson(t){return new Yh(t)}toJson(){return E(f({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(t){var r;const n=new la({parent:t,mathstyle:"cramp"},this.style),i=(r=zr.createBox(n,this.body))!=null?r:new fn("\u25A2",{style:this.style});let s=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(s=i.skew);let A=Math.min(i.height,as),M;if(this.svgAccent)M=sa(this.svgAccent),A=n.metrics.bigOpSpacing1-A;else if(this.accent){const X=new fn(this.accent,{fontFamily:"Main-Regular"});X.italic=0;const ue=this.accent===8407?" ML__accent-vec":"";M=new fn(new fn(X),{classes:"ML__accent-body"+ue})}M=new Xo({shift:0,children:[{box:new fn(i)},-A,{box:M,marginLeft:i.left+2*s,classes:["ML__center"]}]});const z=new fn(M,{type:"lift"});return this.caret&&(z.caret=this.caret),this.bind(n,z.wrap(n)),this.attachSupsub(n,{base:z})}},Yl={"(":")","{":"}","[":"]","|":"|","\\lbrace":"\\rbrace","\\lparen":"\\rparen","\\{":"\\}","\\langle":"\\rangle","\\lfloor":"\\rfloor","\\lceil":"\\rceil","\\vert":"\\vert","\\lvert":"\\rvert","\\Vert":"\\Vert","\\lVert":"\\rVert","\\lbrack":"\\rbrack","\\ulcorner":"\\urcorner","\\llcorner":"\\lrcorner","\\lgroup":"\\rgroup","\\lmoustache":"\\rmoustache"},cl=Object.fromEntries(Object.entries(Yl).map(([e,t])=>[t,e]));function nl(e){var t;return(t={"[":91,"]":93,"(":40,")":41,"\\mid":8739,"|":8739,"\u2223":8739,"\u2225":8741,"\\|":8739,"\\{":123,"\\}":125,"\\lbrace":123,"\\rbrace":125,"\\lparen":40,"\\rparen":41,"\\lbrack":91,"\\rbrack":93,"\\vert":8739,"\\lvert":8739,"\\mvert":8739,"\\rvert":8739,"\\Vert":8741,"\\lVert":8741,"\\mVert":8741,"\\rVert":8741,"\\parallel":8741,"\\shortparallel":8741,"\\langle":10216,"\\rangle":10217,"\\lfloor":8970,"\\rfloor":8971,"\\lceil":8968,"\\rceil":8969,"\\ulcorner":9484,"\\urcorner":9488,"\\llcorner":9492,"\\lrcorner":9496,"\\lgroup":10222,"\\rgroup":10223,"\\lmoustache":9136,"\\rmoustache":9137,"\\surd":8730}[e])!=null?t:e.codePointAt(0)}function xc(e,t,r,n){var i;const A=new fn(nl(e),{fontFamily:"Main-Regular",isSelected:n.isSelected,classes:"ML__small-delim "+((i=n.classes)!=null?i:"")}).wrap(t);return r&&A.setTop((1-t.scalingFactor)*us),A}function tA(e,t,r,n,i){var s,A;const M=new la({parent:n,mathstyle:"textstyle"},i==null?void 0:i.style),z=new fn(nl(e),{fontFamily:`Size${t}-Regular`,isSelected:i.isSelected,classes:((s=i.classes)!=null?s:"")+` ML__delim-size${t}`,type:(A=i.type)!=null?A:"ignore"}).wrap(M);return r&&z.setTop((1-M.scalingFactor)*us),z}function rA(e,t,r,n,i){var s;let A,M,z,X;A=z=X=nl(e),M=null;let ue="Size1-Regular";e==="\\vert"||e==="\\lvert"||e==="\\rvert"||e==="\\mvert"||e==="\\mid"?z=A=X=8739:e==="\\Vert"||e==="\\lVert"||e==="\\rVert"||e==="\\mVert"||e==="\\|"?z=A=X=8741:e==="\\uparrow"?z=X=9168:e==="\\Uparrow"?z=X=8214:e==="\\downarrow"?A=z=9168:e==="\\Downarrow"?A=z=8214:e==="\\updownarrow"?(A=8593,z=9168,X=8595):e==="\\Updownarrow"?(A=8657,z=8214,X=8659):e==="["||e==="\\lbrack"?(A=9121,z=9122,X=9123,ue="Size4-Regular"):e==="]"||e==="\\rbrack"?(A=9124,z=9125,X=9126,ue="Size4-Regular"):e==="\\lfloor"||e==="\u230A"?(z=A=9122,X=9123,ue="Size4-Regular"):e==="\\lceil"||e==="\u2308"?(A=9121,z=X=9122,ue="Size4-Regular"):e==="\\rfloor"||e==="\u230B"?(z=A=9125,X=9126,ue="Size4-Regular"):e==="\\rceil"||e==="\u2309"?(A=9124,z=X=9125,ue="Size4-Regular"):e==="("||e==="\\lparen"?(A=9115,z=9116,X=9117,ue="Size4-Regular"):e===")"||e==="\\rparen"?(A=9118,z=9119,X=9120,ue="Size4-Regular"):e==="\\{"||e==="\\lbrace"?(A=9127,M=9128,X=9129,z=9130,ue="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(A=9131,M=9132,X=9133,z=9130,ue="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(A=9127,X=9129,z=9130,ue="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(A=9131,X=9133,z=9130,ue="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(A=9127,X=9133,z=9130,ue="Size4-Regular"):e==="\\rmoustache"||e==="\u23B1"?(A=9131,X=9129,z=9130,ue="Size4-Regular"):e==="\\surd"?(A=57345,X=9143,z=57344,ue="Size4-Regular"):e==="\\ulcorner"?(A=9484,z=X=32):e==="\\urcorner"?(A=9488,z=X=32):e==="\\llcorner"?(X=9492,z=A=32):e==="\\lrcorner"&&(A=9496,z=A=32);const Ke=qs(A,ue),ft=Ke.height+Ke.depth,Ft=qs(z,ue),Nt=Ft.height+Ft.depth,Er=qs(X,ue),Fn=Er.height+Er.depth;let xr=0,nn=1;if(M!==null){const Il=qs(M,ue);xr=Il.height+Il.depth,nn=2}const Rn=ft+Fn+xr,pn=Math.max(0,Math.ceil((t-Rn)/(nn*Nt))),Si=Rn+pn*nn*Nt;let zi=us;r&&(zi=zi*n.scalingFactor);const Ui=Si/2-zi,io=.008,zo=[];zo.push({box:new fn(X,{fontFamily:ue})}),zo.push(-io);const Wn=new fn(z,{fontFamily:ue});if(M===null)for(let Il=0;Il<pn;Il++)zo.push({box:Wn});else{for(let Il=0;Il<pn;Il++)zo.push({box:Wn});zo.push(-io),zo.push({box:new fn(M,{fontFamily:ue})}),zo.push(-io);for(let Il=0;Il<pn;Il++)zo.push({box:Wn})}zo.push(-io),zo.push({box:new fn(A,{fontFamily:ue})});let yA="";ue==="Size1-Regular"?yA=" delim-size1":ue==="Size4-Regular"&&(yA=" delim-size4");const ku=new Xo({bottom:Ui,children:zo},{classes:yA});return new fn(ku,E(f({},i!=null?i:{}),{classes:((s=i==null?void 0:i.classes)!=null?s:"")+" ML__delim-mult"}))}var qA=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),uA=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),Ms=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),eu=[0,1.2,1.8,2.4,3];function Ul(e,t,r,n){return e===void 0||e==="."?uc(r,n.classes):(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),qA.has(e)||Ms.has(e)?tA(e,t,!1,r,n):uA.has(e)?rA(e,eu[t],!1,r,n):(console.assert(!1,"Unknown delimiter '"+e+"'"),null))}var Cc=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],fu=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],rd=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}];function ju(e){return e.type==="small"?"Main-Regular":e.type==="large"?"Size"+e.size+"-Regular":(console.assert(e.type==="stack"),"Size4-Regular")}function dA(e,t,r,n){const i={"-4":0,"-3":1,0:2}[n.mathstyle.sizeDelta];for(let s=i;s<r.length&&r[s].type!=="stack";s++){const A=qs(e,ju(r[s]));if(A.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let M=A.height+A.depth;if(r[s].type==="small"&&(r[s].mathstyle==="scriptscriptstyle"?M*=Math.max(ds[Math.max(1,n.size-2)],n.minFontScale):r[s].mathstyle==="scriptstyle"&&(M*=Math.max(ds[Math.max(1,n.size-1)],n.minFontScale))),M>t)return r[s]}return r[r.length-1]}function Bc(e,t,r,n,i,s){if(!t||t.length===0||t===".")return uc(i);t==="<"||t==="\\lt"?t="\\langle":(t===">"||t==="\\gt")&&(t="\\rangle");let A;Ms.has(t)?A=Cc:qA.has(t)?A=rd:A=fu;const M=dA(nl(t),r,A,i),z=new la({parent:i,mathstyle:M.mathstyle},s==null?void 0:s.style);return M.type==="small"?xc(t,z,n,E(f({},s),{type:e})):M.type==="large"?tA(t,M.size,n,z,E(f({},s),{type:e})):(console.assert(M.type==="stack"),rA(t,r,n,z,E(f({},s),{type:e})))}function Ac(e,t,r,n,i,s){if(t===".")return uc(i,s==null?void 0:s.classes);const A=us*i.scalingFactor,M=901,z=5/is,X=Math.max(r-A,n+A),ue=Math.max(X/500*M,2*X-z);return Bc(e,t,ue,!0,i,s)}function uc(e,t){const r=new fn(null,{classes:" nulldelimiter "+(t!=null?t:""),type:"ignore"});return r.width=e.getRegisterAsEm("nulldelimiterspace"),r.wrap(new la({parent:e,mathstyle:"textstyle"}))}var ql=class qh extends zr{constructor(t){var r;super({type:"placeholder",command:"\\placeholder",mode:(r=t==null?void 0:t.mode)!=null?r:"math",style:t==null?void 0:t.style}),this.captureSelection=!0}static fromJson(t){return new qh(t)}toJson(){return super.toJson()}render(t){let r;return this.value=t.placeholderSymbol,typeof t.renderPlaceholder=="function"?r=t.renderPlaceholder(t):r=this.createBox(t),this.caret&&(r.classes+=" ML__placeholder-selected"),r}_serialize(t){return t.skipPlaceholders?"":"\\placeholder{}"}},fA=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],hA=["cases","dcases","rcases"],hu=["align","align*","aligned","gather","gathered","split"],Sc=["array","subequations","eqnarray"];function Ec(e){return Sc.concat(hu).concat(hA).concat(fA).includes(e)}function Jo(e){return fA.includes(e)}function Ho(e){return hA.includes(e)}function Us(e){return hu.includes(e)}function Rs(e,t,r){let n=0;for(const X of r)"align"in X&&(n+=1);let i=0;const s=[];for(const X of t){let ue=0;for(i=Math.max(i,Math.min(X.length,n));ue<X.length;){const Ke=[],ft=Math.min(X.length,ue+n);for(;ue<ft;){const Ft=X[ue];Ft.length===0?Ke.push([new zr({type:"first",mode:e.mode})]):Ft[0].type!=="first"?Ke.push([new zr({type:"first",mode:e.mode}),...Ft]):(console.assert(!Ft.slice(1).some(Nt=>Nt.type==="first")),Ke.push(Ft)),ue+=1}s.push(Ke)}}s.length>0&&s[s.length-1].length===1&&s[s.length-1][0].length===1&&s[s.length-1][0][0].type==="first"&&s.pop();const A=[];for(const X of s){if(X.length!==i)for(let ue=X.length;ue<i;ue++)X.push([new zr({type:"first",mode:e.mode}),new ql]);A.push(X)}let M=0,z=0;for(const X of A){z=0;for(const ue of X){for(const Ke of ue)Ke.parent=e,Ke.parentBranch=[M,z];z+=1}M+=1}return e.isDirty=!0,A}var Ra=class ep extends zr{constructor(t,r,n,i={}){var s;super({type:"array"}),this.environmentName=t,this.rowGaps=n,i.mathstyleName&&(this.mathstyleName=i.mathstyleName),i.columns&&(i.columns.length===0?this.colFormat=[{align:"l"}]:this.colFormat=i.columns),this.colFormat||(this.colFormat=[{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"}]),this.array=Rs(this,r,this.colFormat),i.leftDelim&&(this.leftDelim=i.leftDelim),i.rightDelim&&(this.rightDelim=i.rightDelim),i.arraycolsep!==void 0&&(this.arraycolsep=i.arraycolsep),this.colSeparationType=i.colSeparationType,i.arraystretch!==void 0&&(this.arraystretch=i.arraystretch),this.minColumns=(s=i.minColumns)!=null?s:1}static fromJson(t){return new ep(t.environmentName,t.array,t.rowGaps,t)}toJson(){const t=E(f({},super.toJson()),{environmentName:this.environmentName,array:this.array.map(r=>r.map(n=>n.map(i=>i.toJson()))),rowGaps:this.rowGaps,columns:this.colFormat,colSeparationType:this.colSeparationType});return this.arraystretch!==void 0&&(t.arraystretch=this.arraystretch),this.arraycolsep!==void 0&&(t.arraycolsep=this.arraycolsep),this.leftDelim&&(t.leftDelim=this.leftDelim),this.rightDelim&&(t.rightDelim=this.rightDelim),t}branch(t){var r;if(IA(t))return(r=this.array[t[0]][t[1]])!=null?r:void 0}createBranch(t){var r;return IA(t)?(this.isDirty=!0,(r=this.branch(t))!=null?r:[]):[]}get rowCount(){return this.array.length}get colCount(){return this.array[0].length}get maxColumns(){return this.colFormat.filter(t=>!!t.align).length}removeBranch(t){if(Gl(t))return super.removeBranch(t);const r=this.branch(t);return this.array[t[0]][t[1]]=void 0,r.forEach(n=>{n.parent=void 0,n.parentBranch=void 0}),console.assert(r[0].type==="first"),r.shift(),this.isDirty=!0,r}get hasChildren(){return this.children.length>0}get children(){const t=[];for(const r of this.array)for(const n of r)if(n)for(const i of n)t.push(...i.children),t.push(i);return[...t,...super.children]}render(t){var r,n,i,s,A,M;const z=new la({parent:t,mathstyle:this.mathstyleName},this.style),X=z.getRegisterAsEm("arrayrulewidth"),ue=z.getRegisterAsEm("arraycolsep"),Ke=z.getRegisterAsEm("doublerulesep"),ft=(n=(r=this.arraystretch)!=null?r:z.getRegisterAsNumber("arraystretch"))!=null?n:1;let Ft=typeof this.arraycolsep=="number"?this.arraycolsep:ue;this.colSeparationType==="small"&&(Ft=.2778*(new la({parent:t,mathstyle:"scriptstyle"}).scalingFactor/t.scalingFactor));const Nt=ft*bl,Er=.7*Nt,Fn=.3*Nt;let xr=0;const nn=[];let Rn=0;const pn=this.array.length;for(let es=0;es<pn;++es){const Gs=this.array[es];Rn=Math.max(Rn,Gs.length);const Ml=new la({parent:z,mathstyle:this.mathstyleName},this.style);let Du=Er/Ml.scalingFactor,Pu=Fn/Ml.scalingFactor;const Nu={cells:[],height:0,depth:0,pos:0};for(const su of Gs){const J0=(i=zr.createBox(Ml,su,{type:"ignore"}))!=null?i:new fn(null,{type:"ignore"});Pu=Math.max(Pu,J0.depth),Du=Math.max(Du,J0.height),Nu.cells.push(J0)}let Ou=(s=Wl(this.rowGaps[es]))!=null?s:0;Ou>0&&(Ou+=Fn,Pu=Math.max(Pu,Ou),Ou=0),es<pn-1&&!Jo(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(Pu+=z.getRegisterAsEm("jot")),Nu.height=Du,Nu.depth=Pu,xr+=Du,Nu.pos=xr,xr+=Pu+Ou,nn.push(Nu)}const Si=xr/2+us,zi=[];for(let es=0;es<Rn;es++){const Gs=[];for(const Ml of nn){const Du=Ml.cells[es];Du.depth=Ml.depth,Du.height=Ml.height,Gs.push({box:Du,shift:Ml.pos-Si})}Gs.length>0&&zi.push(new Xo({individualShift:Gs}))}const Ui=[];let io=!1,zo=!1,Wn=0,yA=!this.leftDelim;const{colFormat:ku}=this;for(const es of ku){if("align"in es&&Wn>=zi.length)break;if("align"in es)io?Ui.push(ec(2*Ft)):(zo||yA)&&Ui.push(ec(Ft)),Ui.push(new fn(zi[Wn],{classes:"col-align-"+es.align})),Wn++,io=!0,zo=!1,yA=!1;else if("gap"in es){if(typeof es.gap=="number")Ui.push(ec(es.gap));else{const Gs=tu(t,nn,Si,es.gap);Gs&&Ui.push(Gs)}io=!1,zo=!1,yA=!1}else if("separator"in es){const Gs=new fn(null,{classes:"vertical-separator"});Gs.height=xr,Gs.setStyle("height",xr,"em"),Gs.setStyle("border-right",`${X}em ${es.separator} currentColor`),Gs.setStyle("vertical-align",-(xr-Si),"em");let Ml=0;zo?Ml=Ke-X:io&&(Ml=Ft-X),Gs.left=Ml,Ui.push(Gs),io=!1,zo=!0,yA=!1}}io&&!this.rightDelim&&Ui.push(ec(Ft));const RA=new fn(Ui,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(RA.caret=this.caret),this.bind(t,RA);const Il=RA.height,bA=RA.depth,Vc=this.bind(t,new fn([this.bind(t,Ac("open",(A=this.leftDelim)!=null?A:".",Il,bA,z,{isSelected:this.isSelected})),RA,this.bind(t,Ac("close",(M=this.rightDelim)!=null?M:".",Il,bA,z,{isSelected:this.isSelected}))],{type:"ord"}));return Vc?(Vc.setStyle("display","inline-block"),this.caret&&(Vc.caret=this.caret),this.bind(t,this.attachSupsub(t,{base:Vc}))):null}_serialize(t){var r;const n=[];if(this.environmentName==="lines"?n.push("{\\displaylines"):n.push(`\\begin{${this.environmentName}}`),this.environmentName==="array"){if(n.push("{"),this.colFormat!==void 0)for(const i of this.colFormat)"align"in i&&typeof i.align=="string"?n.push(i.align):"separator"in i&&i.separator==="solid"?n.push("|"):"separator"in i&&i.separator==="dashed"&&n.push(":");n.push("}")}for(let i=0;i<this.array.length;i++){for(let s=0;s<this.array[i].length;s++)s>0&&n.push(" & "),n.push(zr.serialize(this.array[i][s],t));if(i<this.array.length-1){const s=this.rowGaps[i];s!=null&&s.dimension?n.push(`\\\\[${s.dimension} ${(r=s.unit)!=null?r:"pt"}] `):n.push("\\\\ ")}}return this.environmentName==="lines"?n.push("}"):n.push(`\\end{${this.environmentName}}`),Ba(n)}getCell(t,r){return this.array[t][r]}setCell(t,r,n){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.array[t][r]!==void 0);for(const s of this.array[t][r])s.parent=void 0,s.parentBranch=void 0;let i=n;(n.length===0||n[0].type!=="first")&&(i=[new zr({type:"first",mode:this.mode}),...n]),this.array[t][r]=i;for(const s of i)s.parent=this,s.parentBranch=[t,r];this.isDirty=!0}addRowBefore(t){console.assert(this.type==="array"&&Array.isArray(this.array));const r=[];for(let n=0;n<this.colCount;n++)r.push(hi(this));this.array.splice(t,0,r);for(let n=t;n<this.rowCount;n++)for(let i=0;i<this.colCount;i++){const s=this.array[n][i];if(s)for(const A of s)A.parentBranch=[n,i]}this.isDirty=!0}addRowAfter(t){console.assert(this.type==="array"&&Array.isArray(this.array));const r=[];for(let n=0;n<this.colCount;n++)r.push(hi(this));this.array.splice(t+1,0,r);for(let n=t+1;n<this.rowCount;n++)for(let i=0;i<this.colCount;i++){const s=this.array[n][i];if(s)for(const A of s)A.parentBranch=[n,i]}this.isDirty=!0}removeRow(t){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.rowCount>t);const r=this.array.splice(t,1);for(const n of r)for(const i of n)if(i)for(const s of i)s.parent=void 0,s.parentBranch=void 0;for(let n=t;n<this.rowCount;n++)for(let i=0;i<this.colCount;i++){const s=this.array[n][i];if(s)for(const A of s)A.parentBranch=[n,i]}this.isDirty=!0}addColumnBefore(t){console.assert(this.type==="array"&&Array.isArray(this.array));for(const r of this.array)r.splice(t,0,hi(this));for(let r=0;r<this.rowCount;r++)for(let n=t;n<this.colCount;n++){const i=this.array[r][n];if(i)for(const s of i)s.parentBranch=[r,n]}this.isDirty=!0}addColumnAfter(t){console.assert(this.type==="array"&&Array.isArray(this.array));for(const r of this.array)r.splice(t+1,0,hi(this));for(let r=0;r<this.rowCount;r++)for(let n=t+1;n<this.colCount;n++){const i=this.array[r][n];if(i)for(const s of i)s.parentBranch=[r,n]}this.isDirty=!0}addColumn(){this.addColumnAfter(this.colCount-1)}removeColumn(t){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.colCount>t);for(const r of this.array){const n=r.splice(t,1);for(const i of n)if(i)for(const s of i)s.parent=void 0,s.parentBranch=void 0}for(let r=0;r<this.rowCount;r++)for(let n=t;n<this.colCount;n++){const i=this.array[r][n];if(i)for(const s of i)s.parentBranch=[r,n]}this.isDirty=!0}get cells(){const t=[];for(const r of this.array)for(const n of r)n&&t.push(n.filter(i=>i.type!=="first"));return t}};function hi(e){const t=new zr({type:"first",mode:e.mode});t.parent=e;const r=new ql;return r.parent=e,[t,r]}function ec(e){const t=new fn(null,{classes:"arraycolsep"});return t.width=e,t}function tu(e,t,r,n){if(!n)return null;const i=[];for(const s of t){const A=zr.createBox(e,n,{type:"ignore"});A&&(A.depth=s.depth,A.height=s.height,i.push({box:A,shift:s.pos-r}))}return new Xo({individualShift:i}).wrap(e)}var Qs=class tp extends zr{constructor(t){super({mode:t.mode,command:t.command,style:t.style,body:t.body,type:"box"}),this.framecolor=t.framecolor,this.backgroundcolor=t.backgroundcolor,this.padding=t.padding,this.offset=t.offset,this.border=t.border}static fromJson(t){return new tp(t)}toJson(){return E(f({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(t){var r,n,i,s;const A=zr.createBox(t,this.body,{type:"lift"});if(!A)return null;const M=t.toEm((r=this.offset)!=null?r:{dimension:0});A.depth+=M,A.setStyle("display","inline-block"),A.setStyle("position","relative"),A.setStyle("height",Math.floor(100*A.height+A.depth)/100,"em"),A.setStyle("vertical-align",-Math.floor(100*A.height)/100,"em");const z=new la({parent:t},this.style),X=z.toEm((n=this.padding)!=null?n:{register:"fboxsep"}),ue=new fn(null,{classes:"ML__box"});ue.height=A.height+X,ue.depth=A.depth+X,ue.setStyle("box-sizing","border-box"),ue.setStyle("position","absolute"),ue.setStyle("top",-X+.3,"em"),ue.setStyle("left",0),ue.setStyle("height",ue.height+ue.depth,"em"),ue.setStyle("width","100%"),this.backgroundcolor&&ue.setStyle("background-color",(i=z.toColor(this.backgroundcolor))!=null?i:"transparent"),this.framecolor&&ue.setStyle("border",`${z.getRegisterAsEm("fboxrule",2)}em solid ${(s=z.toColor(this.framecolor))!=null?s:"black"}`),this.border&&ue.setStyle("border",this.border);const Ke=new fn([ue,A],{type:"lift"});return Ke.setStyle("display","inline-block"),Ke.setStyle("position","relative"),Ke.setStyle("line-height",0),Ke.height=A.height+X+(M>0?M:0),Ke.depth=A.depth+X+(M<0?-M:0),Ke.setStyle("padding-left",X,"em"),Ke.setStyle("padding-right",X,"em"),Ke.setStyle("height",Math.floor(100*(A.height+A.depth+2*X+Math.abs(M)))/100,"em"),Ke.setStyle("margin-top",-X,"em"),Ke.setStyle("top",Math.floor(100*(A.depth-A.height+2*X-M))/100,"em"),Ke.setStyle("vertical-align",Math.floor(100*(A.depth+2*X))/100,"em"),this.caret&&(Ke.caret=this.caret),this.attachSupsub(t,{base:Ke})}_serialize(t){return t.skipStyles?Ba([this.bodyToLatex(t),this.supsubToLatex(t)]):super._serialize(t)}},zu=class rp extends zr{constructor(t,r){var n;super({type:"composition",mode:(n=r==null?void 0:r.mode)!=null?n:"math",value:t})}static fromJson(t){return new rp(t.value,t)}toJson(){return super.toJson()}get computedStyle(){return{}}render(t){const r=new fn(this.value,{classes:"ML__composition",type:"composition"});return this.bind(t,r),this.caret&&(r.caret=this.caret),r}_serialize(t){return""}},ya=class np extends zr{constructor(t){super({type:"error",value:t,command:t,mode:"math"}),this.verbatimLatex=t}static fromJson(t){return new np(t.command)}toJson(){return super.toJson()}render(t){const r=this.createBox(t,{classes:"ML__error"});return this.caret&&(r.caret=this.caret),r}},Ao=class ip extends zr{constructor(t,r,n){super({type:"group",mode:r,style:n}),this.body=t,this.boxType=t.length>1?"ord":"ignore",this.skipBoundary=!0,this.displayContainsHighlight=!1,t&&t.length===1&&t[0].command===","&&(this.captureSelection=!0)}static fromJson(t){return new ip(t.body,t.mode,t.style)}render(t){const r=zr.createBox(t,this.body,{type:this.boxType});return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=gt(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):`{${this.bodyToLatex(t)}}`}},ko=class ap extends zr{constructor(t,r,n){super({type:"leftright",style:n.style,displayContainsHighlight:!0}),this.variant=t,this.body=r,this.leftDelim=n.leftDelim,this.rightDelim=n.rightDelim}static fromJson(t){var r;return new ap((r=t.variant)!=null?r:"",t.body,t)}toJson(){const t=super.toJson();return this.variant&&(t.variant=this.variant),this.leftDelim&&(t.leftDelim=this.leftDelim),this.rightDelim&&(t.rightDelim=this.rightDelim),t}_serialize(t){var r,n;const i=this.matchingRightDelim();return this.variant==="left...right"?Ba(["\\left",(r=this.leftDelim)!=null?r:".",this.bodyToLatex(t),"\\right",i]):this.variant==="mleft...mright"?Ba(["\\mleft",(n=this.leftDelim)!=null?n:".",this.bodyToLatex(t),"\\mright",i]):Ba([!this.leftDelim||this.leftDelim==="."?"":this.leftDelim,this.bodyToLatex(t),i])}matchingRightDelim(){var t,r;if(this.rightDelim&&this.rightDelim!=="?")return this.rightDelim;const n=(t=this.leftDelim)!=null?t:".";return(r=Yl[n])!=null?r:n}render(t){var r,n;const i=new la({parent:t},this.style);console.assert(this.body!==void 0);const s=new la({parent:t,mathstyle:"textstyle"},this.style),A=(r=zr.createBox(i,this.body,{type:"inner"}))!=null?r:new fn(null,{type:"inner"}),M=A.height/s.scalingFactor,z=A.depth/s.scalingFactor,X=[];if(this.leftDelim&&X.push(this.bind(s,Ac("open",this.leftDelim,M,z,s,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),A&&($u(A.children,this,i,M,z),X.push(A)),this.rightDelim){let Ft=this.containsCaret?" ML__contains-caret":"",Nt=this.rightDelim;Nt==="?"&&(i.smartFence?(Nt=this.matchingRightDelim(),Ft+=" ML__smart-fence__close"):Nt="."),X.push(this.bind(s,Ac("close",Nt,M,z,s,{isSelected:this.isSelected,classes:Ft+" ML__close",mode:this.mode,style:this.style})))}let ue=this.variant==="mleft...mright";const Ke=this.leftSibling;Ke&&(!ue&&Ke.isFunction&&(ue=!0),!ue&&Ke.type==="subsup"&&((n=Ke.leftSibling)!=null&&n.isFunction)&&(ue=!0));const ft=new fn(X,{type:ue?"close":"inner",classes:"left-right"});return ft.setStyle("margin-top",`${-A.depth}em`),ft.setStyle("height",`${A.height+A.depth}em`),this.caret&&(ft.caret=this.caret),this.bind(i,ft.wrap(i))}};function $u(e,t,r,n,i){if(e)for(let s=0;s<e.length;s++){const A=e[s];A.type==="middle"?(e[s]=t.bind(r,Ac("inner",A.value,n,i,r,{isSelected:t.isSelected})),e[s].caret=A.caret,e[s].isSelected=A.isSelected,e[s].cssId=A.cssId,e[s].htmlData=A.htmlData,e[s].htmlStyle=A.htmlStyle,e[s].attributes=A.attributes,e[s].cssProperties=A.cssProperties):A.children&&$u(A.children,t,r,n,i)}}var pu=class op extends zr{constructor(t,r){var n;super({type:"macro",command:t,style:r.style}),this.body=r.body,r.captureSelection===void 0?r.args?this.captureSelection=!1:this.captureSelection=!0:this.captureSelection=r.captureSelection,this.macroArgs=r.args,this.expand=(n=r.expand)!=null?n:!1}static fromJson(t){return new op(t.command,t)}toJson(){const t=super.toJson();return this.expand&&(t.expand=!0),this.captureSelection!==void 0&&(t.captureSelection=this.captureSelection),this.macroArgs&&(t.args=this.macroArgs),t}_serialize(t){var r;return t.expandMacro&&this.expand?this.bodyToLatex(t):this.command+((r=this.macroArgs)!=null?r:"")}render(t){const r=zr.createBox(t,this.body);return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}},nd=class sp extends zr{constructor(){super({type:"macro-argument"})}static fromJson(t){return new sp}toJson(){return super.toJson()}_serialize(t){return""}render(t){return null}},DA=class lp extends zr{constructor(t,r,n=!1,i,s){var A;super({type:"prompt",mode:(A=s==null?void 0:s.mode)!=null?A:"math",style:s==null?void 0:s.style,command:"\\placeholder"}),this.body=i,this.correctness=r,this.placeholderId=t,this.locked=n,this.captureSelection=this.locked}static fromJson(t){return new lp(t.placeholderId,t.correctness,t.locked,t.body,t)}toJson(){const t=super.toJson();return this.placeholderId&&(t.placeholderId=this.placeholderId),this.body||delete t.body,this.body&&(t.body=this.body.filter(r=>r.type!=="first").map(r=>r.toJson())),this.correctness&&(t.correctness=this.correctness),t.locked=this.locked,t}render(t){const r=new la({parent:t}),n=r.getRegisterAsEm("fboxsep"),i=n,s=n,A=zr.createBox(t,this.body);if(!A)return null;A.height||(A.height=r.metrics.xHeight),A.setStyle("vertical-align",-A.height,"em"),this.correctness==="correct"?A.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&A.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const M=new fn(A,{type:"ord"});M.setStyle("display","inline-block"),M.setStyle("height",A.height+A.depth,"em"),M.setStyle("vertical-align",-s,"em");let z="ML__prompt ";this.locked?z+=" ML__lockedPromptBox ":z+=" ML__editablePromptBox ",this.correctness==="correct"?z+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(z+=" ML__incorrectPromptBox "),this.containsCaret&&(z+=" ML__focusedPromptBox ");const X=new fn(null,{classes:z,attributes:{part:"prompt"}});X.height=M.height+s,X.depth=M.depth+s,X.width=M.width+2*i,X.setStyle("box-sizing","border-box"),X.setStyle("position","absolute"),X.setStyle("height",M.height+M.depth+2*s,"em"),i===0&&X.setStyle("width","100%"),i!==0&&(X.setStyle("width",`calc(100% + ${2*i}em)`),X.setStyle("top",n,"em"),X.setStyle("left",-i,"em")),(!this.body||this.body.length===1)&&(X.width=3*i,X.setStyle("width",`calc(100% + ${3*i}em)`),X.setStyle("left",-1.5*i,"em"));let ue="";this.correctness==="incorrect"&&(ue+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),ue&&(X.svgOverlay=ue);const Ke=new fn([X,M],{classes:"ML__prompt-atom"});return Ke.setStyle("position","relative"),Ke.setStyle("display","inline-block"),Ke.setStyle("line-height",0),Ke.height=M.height+s+.2,Ke.depth=M.depth+s,Ke.left=i,Ke.right=i,Ke.setStyle("height",M.height+s,"em"),Ke.setStyle("top",M.depth-M.height,"em"),Ke.setStyle("vertical-align",M.depth+s,"em"),Ke.setStyle("margin-left",.5,"em"),Ke.setStyle("margin-right",.5,"em"),this.caret&&(Ke.caret=this.caret),this.bind(r,this.attachSupsub(t,{base:Ke}))}_serialize(t){var r;const n=(r=this.bodyToLatex(t))!=null?r:"";if(t.skipPlaceholders)return n;let i="\\placeholder";return this.placeholderId&&(i+=`[${this.placeholderId}]`),this.correctness==="correct"?i+="[correct]":this.correctness==="incorrect"&&(i+="[incorrect]"),this.locked&&(i+="[locked]"),So(i,n)}},mu=class cp extends zr{constructor(t){super({type:"subsup",style:t==null?void 0:t.style}),this.subsupPlacement="auto"}static fromJson(t){const r=new cp(t);for(const n of Oc)t[n]&&r.setChildren(t[n],n);return r}render(t){var r;const n=new la({parent:t,isPhantom:!0}),i=this.leftSibling,s=(r=i.render(n))!=null?r:new fn(null),A=new fn(null);return A.height=s.height,A.depth=s.depth,this.attachSupsub(t,{base:A,isCharacterBox:i.isCharacterBox(),type:"ignore"})}_serialize(t){return this.supsubToLatex(t)}};function ru(e){return e?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(e):!1}var Zu=class{constructor(e,t,r){this.errors=[],this.index=0,this.endCount=0;var n,i,s,A;r!=null||(r={}),this.tokens=e,this.context=t instanceof la&&!(r!=null&&r.parseMode)&&!r.mathstyle?t:new la({from:t,mathstyle:r.mathstyle},r.style),this.args=(n=r.args)!=null?n:void 0,this.smartFence=this.context.smartFence,this.parsingContext={parent:void 0,mathlist:[],style:(i=r.style)!=null?i:{},parseMode:(s=r.parseMode)!=null?s:"math",mathstyle:(A=r.mathstyle)!=null?A:"displaystyle",tabular:!1}}beginContext(e){var t,r,n;const i=this.parsingContext,s={parent:i,mathlist:[],style:f({},i.style),parseMode:(t=e==null?void 0:e.mode)!=null?t:i.parseMode,mathstyle:(r=e==null?void 0:e.mathstyle)!=null?r:i.mathstyle,tabular:(n=e==null?void 0:e.tabular)!=null?n:!1};this.parsingContext=s}endContext(){this.parsingContext=this.parsingContext.parent}onError(e){this.errors.push(f({before:xl(this.tokens.slice(this.index,this.index+10)),after:xl(this.tokens.slice(Math.max(0,this.index-10),this.index))},e))}get mathlist(){return this.parsingContext.mathlist}set mathlist(e){this.parsingContext.mathlist=e}get parseMode(){return this.parsingContext.parseMode}set parseMode(e){this.parsingContext.parseMode=e}get tabularMode(){return this.parsingContext.tabular}get style(){let e=this.parsingContext;for(;e;){if(e.style)return f({},e.style);e=e.parent}return{}}set style(e){this.parsingContext.style=e}end(){return this.endCount++,this.index>=this.tokens.length||this.endCount>1e3}next(){this.index+=1}get(){return this.endCount=0,this.index<this.tokens.length?this.tokens[this.index++]:""}peek(){return this.tokens[this.index]}match(e){return this.tokens[this.index]===e?(this.index++,!0):!1}lastSubsupAtom(){let e;return this.mathlist.length>0&&(e=this.mathlist[this.mathlist.length-1],e.type==="subsup"||e.subsupPlacement!==void 0)||(e=new mu({style:this.style}),this.mathlist.push(e)),e}hasPattern(e){return e.test(this.tokens[this.index])}hasInfixCommand(){var e;const{index:t}=this;if(t<this.tokens.length&&this.tokens[t].startsWith("\\")){const r=gt(this.tokens[t],this.parseMode);return!r||r.definitionType==="symbol"||r.ifMode&&!r.ifMode.includes(this.parseMode)?!1:(e=r.infix)!=null?e:!1}return!1}matchColumnSeparator(){return!this.tabularMode||this.peek()!=="&"?!1:(this.index++,!0)}matchRowSeparator(){if(!this.tabularMode)return!1;const e=this.peek();return e!=="\\\\"&&e!=="\\cr"&&e!=="\\tabularnewline"?!1:(this.index++,!0)}placeholder(){var e;const t=(e=this.args)==null?void 0:e.call(this,"?");return t?Al(t,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new ql({mode:this.parseMode,style:this.style})]}skipWhitespace(){for(;this.match("<space>"););}skipUntilToken(e){let t=this.tokens[this.index];for(;t&&t!==e;)t=this.tokens[++this.index];t===e&&this.index++}skipFiller(){for(;this.match("\\relax")||this.match("<space>"););}matchKeyword(e){const t=this.index;let r=this.end(),n="";for(;!r;){const s=this.get();ru(s)?(n+=s,r=this.end()||n.length>=e.length):r=!0}const i=e.toUpperCase()===n.toUpperCase();return i||(this.index=t),i}scanString(){let e="";for(;!this.end();){const t=this.peek();if(t==="]")return e;if(t==="<space>")e+=" ";else if(t.startsWith("\\"))this.onError({code:"unexpected-command-in-string"}),e+=t.substring(1);else if(ru(t))e+=t;else return e;this.next()}return e}scanBalancedString(){let e="",t=this.end(),r=1;for(;!t;){const n=this.get();n==="<space>"?e+=" ":n==="<{>"?(e+="{",r+=1):n==="<}>"?(r-=1,r>0?e+="}":this.index-=1):n==="<$>"?e+="$":n==="<$$>"?e+="$$":e+=n,t=r===0||this.end()}return e}scanLiteralGroup(){var e;if(!this.match("<{>"))return"";let t="",r=1;for(;r>0&&!this.end();){const n=this.get();n==="<}>"?(r-=1,r>0&&(t+="}")):n==="<{>"?(r+=1,t+="{"):(/\\[a-zA-Z]+$/.test(t)&&/^[a-zA-Z]/.test(n)&&(t+=" "),t+=(e={"<space>":" ","<$$>":"$$","<$>":"$"}[n])!=null?e:n)}return t}scanNumber(e=!0){var t,r;let n=!1,i=this.peek();for(;i==="<space>"||i==="+"||i==="-";)this.get(),i==="-"&&(n=!n),i=this.peek();e=!!e;let s=10,A=/\d/;if(this.match("'"))s=8,A=/[0-7]/,e=!0;else if(this.match('"'))s=16,A=/[\dA-F]/,e=!0;else if(this.match("x"))s=16,A=/[\dA-Fa-f]/,e=!0;else if(this.match("`"))return i=this.get(),i?i.length===2&&i.startsWith("\\")?{number:(n?-1:1)*((t=i.codePointAt(1))!=null?t:0),base:"alpha"}:{number:(n?-1:1)*((r=i.codePointAt(0))!=null?r:0),base:"alpha"}:null;let M="";for(;this.hasPattern(A);)M+=this.get();if(!e&&(this.match(".")||this.match(",")))for(M+=".";this.hasPattern(A);)M+=this.get();const z=e?Number.parseInt(M,s):Number.parseFloat(M);return Number.isNaN(z)?null:{number:n?-z:z,base:s===16?"hexadecimal":s===8?"octal":"decimal"}}scanRegister(){var e;const t=this.index,r=this.scanNumber(!1);if(this.skipWhitespace(),this.match("\\relax"))return r;let n=!1;if(r===null)for(;;){const s=this.peek();if(s==="-")n=!n;else if(s!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const s=this.get();return s.startsWith("\\")?r?{register:s,global:!0,factor:(n?-1:1)*r.number}:n?{register:s,global:!0,factor:-1}:{register:s,global:!0}:(this.index=t,null)}let i=this.get();return i!=null&&i.startsWith("\\")?(i=i.substring(1),this.context.registers[i]?!n||r!==null?{register:i,factor:(n?-1:1)*((e=r==null?void 0:r.number)!=null?e:1)}:{register:i}:(this.index=t,null)):(this.index=t,null)}scanValue(){const e=this.scanRegister();if(e)return e;const t=this.index,r=this.scanGlueOrDimen();if(r&&("unit"in r||"glue"in r&&"unit"in r.glue))return r;this.index=t;const n=this.scanNumber();if(n)return n;if(this.end()||!ru(this.peek()))return null;const i=this.scanString();return i.length>0?{string:i}:null}scanDimen(){const e=this.scanNumber(!1);if(e===null)return null;const t=e.number;this.skipWhitespace(),this.matchKeyword("true"),this.skipWhitespace();let r;return this.matchKeyword("pt")?r="pt":this.matchKeyword("mm")?r="mm":this.matchKeyword("cm")?r="cm":this.matchKeyword("ex")?r="ex":this.matchKeyword("px")?r="px":this.matchKeyword("em")?r="em":this.matchKeyword("bp")?r="bp":this.matchKeyword("dd")?r="dd":this.matchKeyword("pc")?r="pc":this.matchKeyword("in")?r="in":this.matchKeyword("mu")&&(r="mu"),r?{dimension:t,unit:r}:{dimension:t}}scanGlueOrDimen(){const e=this.scanDimen();if(e===null)return null;if(this.skipWhitespace(),this.match("\\relax"))return e;const t={glue:e};if(this.matchKeyword("plus")){const r=this.scanDimen();if(r)t.grow=r;else return t}if(this.skipWhitespace(),this.match("\\relax"))return t;if(this.skipWhitespace(),this.matchKeyword("minus")){const r=this.scanDimen();if(r)t.shrink=r;else return t}return!t.grow&&!t.shrink?e:t}scanColspec(){this.skipWhitespace();const e=[];for(;!this.end()&&!(this.peek()==="<}>"||this.peek()==="]");){const t=this.get();t==="c"||t==="r"||t==="l"?e.push({align:t}):t==="|"?e.push({separator:"solid"}):t===":"?e.push({separator:"dashed"}):t==="@"&&(this.match("<{>")&&(this.beginContext({mode:"math"}),e.push({gap:this.scan(r=>r==="<}>")}),this.endContext()),this.match("<}>")||this.onError({code:"unbalanced-braces"}))}return e}scanModeSet(){let e;if(this.match("\\(")&&(e="textstyle"),!e&&this.match("\\[")&&(e="displaystyle"),!e)return null;this.beginContext({mode:"math",mathstyle:e});const t=this.scan(r=>r===(e==="displaystyle"?"\\]":"\\)"));return this.match(e==="displaystyle"?"\\]":"\\)")||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),t}scanModeShift(){let e="";if(this.match("<$>")&&(e="<$>"),!e&&this.match("<$$>")&&(e="<$$>"),!e)return null;this.beginContext({mode:"math",mathstyle:"textstyle"});const t=this.scan(r=>r===e);return this.match(e)||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),t}scanEnvironment(){if(!this.match("\\begin"))return null;const e=this.scanArgument("string");if(!e)return null;const t=H(e);if(!t)return this.onError({code:"unknown-environment",arg:e}),null;const r=[];if(t.params)for(const M of t.params)if(M.isOptional)r.push(this.scanOptionalArgument(M.type));else{const z=this.scanArgument(M.type);z||this.onError({code:"missing-argument",arg:e}),r.push(z)}this.beginContext({tabular:t.tabular});const n=[],i=[];let s=[],A=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:e}),A=!0),!A&&this.match("\\end")&&(this.scanArgument("string")!==e&&this.onError({code:"unbalanced-environment",arg:e}),A=!0),!A)if(this.matchColumnSeparator())s.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){s.push(this.mathlist),this.mathlist=[];let M=null;this.skipWhitespace(),this.match("[")&&(M=this.scanDimen(),this.skipWhitespace(),this.match("]")),i.push(M!=null?M:{dimension:0}),n.push(s),s=[]}else this.mathlist.push(...this.scan(M=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(M)));while(!A);return s.push(this.mathlist),s.length>0&&n.push(s),this.endContext(),t.createAtom(e,n,i,r)}scanExpression(){const e=this.mathlist;if(this.mathlist=[],this.parseExpression()){const t=this.mathlist;return this.mathlist=e,t}return this.mathlist=e,null}scan(e){this.beginContext(),e||(e=A=>A==="<}>");let t="",r=null,n=[],i=null;for(;!this.end()&&!e(this.peek());)this.hasInfixCommand()&&!t?(t=this.get(),r=gt(t,"math"),r&&(n=this.scanArguments(r)[1]),i=this.mathlist,this.mathlist=[]):this.parseExpression();let s;return t?(console.assert(!!r),n.unshift(this.mathlist),i&&n.unshift(i),s=[r.createAtom({command:t,args:n,style:this.style,mode:this.parseMode})]):s=this.mathlist,this.endContext(),s}scanGroup(){const e=this.index;if(!this.match("<{>"))return null;const t=this.scan(n=>n==="<}>");this.match("<}>")||this.onError({code:"unbalanced-braces"});const r=new Ao(t,this.parseMode,this.style);return r.verbatimLatex=xl(this.tokens.slice(e,this.index)),r}scanSmartFence(){if(this.skipWhitespace(),!this.match("("))return null;this.beginContext();let e=1;for(;!this.end()&&e!==0;)this.match("(")&&(e+=1),this.match(")")&&(e-=1),e!==0&&this.parseExpression();const t=new ko("",this.mathlist,{leftDelim:"(",rightDelim:e===0?")":"?"});return this.endContext(),t}scanDelim(){this.skipWhitespace();const e=this.peek();if(!e)return this.onError({code:"unexpected-end-of-string"}),null;if(!ru(e)&&!e.startsWith("\\"))return null;this.next();const t=gt(e,"math");return t?t.definitionType==="function"&&t.ifMode&&!t.ifMode.includes(this.parseMode)?(this.onError({code:"unexpected-delimiter",arg:e}),null):t.definitionType==="symbol"&&(t.type==="mopen"||t.type==="mclose")||/^(\.|\?|\||<|>|\\vert|\\Vert|\\\||\\surd|\\uparrow|\\downarrow|\\Uparrow|\\Downarrow|\\updownarrow|\\Updownarrow|\\mid|\\mvert|\\mVert)$/.test(e)?e:(this.onError({code:"unexpected-delimiter",arg:e}),null):(this.onError({code:"unknown-command",arg:e}),null)}scanLeftRight(){var e;if(this.match("\\right"))return this.onError({code:"unbalanced-braces"}),new ya("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new ya("\\mright");let t="\\right";if(!this.match("\\left")){if(!this.match("\\mleft"))return null;t="\\mright"}const r=this.scanDelim();if(!r)return this.onError({code:"unexpected-delimiter"}),new ya(t==="\\right"?"\\left":"\\mleft");for(this.beginContext();!this.end()&&!this.match(t);)this.parseExpression();const n=this.mathlist;this.endContext();const i=(e=this.scanDelim())!=null?e:".";return new ko(t==="\\right"?"left...right":"mleft...mright",n,{leftDelim:r,rightDelim:i,style:this.style})}parseSupSub(){if(this.parseMode!=="math")return!1;let e=this.peek();if(e!=="^"&&e!=="_"&&e!=="'")return!1;const t=this.lastSubsupAtom();for(;e==="^"||e==="_"||e==="'";)this.match("'")?this.match("'")?t.addChild(new zr({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):t.addChild(new zr({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&t.addChildren(ut(this.scanArgument("expression")),e==="_"?"subscript":"superscript"),e=this.peek();return!0}parseLimits(){if(this.parseMode!=="math")return!1;const e=this.match("\\limits"),t=!e&&this.match("\\nolimits"),r=!t&&!e&&this.match("\\displaylimits");if(!e&&!t&&!r)return!1;const n=this.mathlist.length>0?this.mathlist[this.mathlist.length-1]:null;return n===null?!1:(n.explicitSubsupPlacement=!0,e&&(n.subsupPlacement="over-under"),t&&(n.subsupPlacement="adjacent"),r&&(n.subsupPlacement="auto"),!0)}scanArguments(e){if(!(e!=null&&e.params))return[void 0,[]];let t;const r=[];let n=e.infix?2:0;for(;n<e.params.length;){const i=e.params[n];i.type==="rest"?r.push(this.scan(s=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(s))):i.isOptional?r.push(this.scanOptionalArgument(i.type)):i.type.endsWith("*")?t=i.type.slice(0,-1):r.push(this.scanArgument(i.type)),n+=1}return[t,r]}scanSymbolOrLiteral(){const e=this.peek();if(!e)return null;this.next();let t;if(ru(e)){const r=Ns.createAtom(this.parseMode,e,f({},this.style));return r?[r]:null}if(t=this.scanMacro(e),t)return[t];if(e.startsWith("\\")){const r=gt(e,this.parseMode);if(!r)return this.onError({code:"unknown-command",arg:e}),[new ya(e)];if(r.definitionType==="symbol"){const n=f({},this.style);r.variant&&(n.variant=r.variant),t=new zr({type:r.type,command:e,style:n,value:String.fromCodePoint(r.codepoint),mode:this.parseMode,verbatimLatex:e})}else{if(r.applyMode||r.applyStyle||r.infix)return this.onError({code:"invalid-command",arg:e}),[new ya(e)];r.createAtom&&(t=r.createAtom({command:e,args:[],style:this.style,mode:this.parseMode}))}}return t?[t]:null}scanArgument(e){var t;this.skipFiller();const r=this.parseMode;if(e==="auto"&&(e=r),!this.match("<{>")){if(e==="string")return this.scanString();if(e==="value")return this.scanValue();if(e==="delim")return(t=this.scanDelim())!=null?t:".";if(e==="expression")return this.scanExpression();if(e==="math"){e!==r&&this.beginContext({mode:"math"});const i=this.scanSymbolOrLiteral();return e!==r&&this.endContext(),i}if(e==="text"){e!==r&&this.beginContext({mode:"text"});const i=this.scanSymbolOrLiteral();return e!==r&&this.endContext(),i}return e==="balanced-string"||console.assert(!1),null}if(e==="text"){this.beginContext({mode:"text"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const i=this.mathlist;return this.endContext(),{group:i}}if(e==="math"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const i=this.mathlist;return this.endContext(),{group:i}}let n=null;if(e==="expression"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const i=this.mathlist;return this.endContext(),{group:i}}return e==="string"?n=this.scanString():e==="balanced-string"?n=this.scanBalancedString():e==="colspec"?n=this.scanColspec():e==="value"&&(n=this.scanValue()),this.skipUntilToken("<}>"),n}scanOptionalArgument(e){if(e=e==="auto"?this.parseMode:e,this.skipFiller(),!this.match("["))return null;let t=null;for(;!this.end()&&!this.match("]");)if(e==="string")t=this.scanString();else if(e==="value")t=this.scanValue();else if(e==="colspec")t=this.scanColspec();else if(e==="bbox"){const r={},n=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const i of n){const s=i.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(s)r.padding={dimension:parseInt(s[1]),unit:s[2]};else{const A=i.match(/^\s*border\s*:\s*(.*)/);A?r.border=A[1]:r.backgroundcolor={string:i}}}t=r}else e==="math"&&(this.beginContext({mode:"math"}),t=this.mathlist.concat(this.scan(r=>r==="]")),this.endContext());return t}scanSymbolOrCommand(e){var t,r,n;if(e==="\\placeholder"){const M=this.scanOptionalArgument("string"),z=this.scanOptionalArgument("math"),X=zr.serialize(z,{defaultMode:"math"});let ue=[],Ke;!Ke&&X==="correct"?Ke="correct":!Ke&&X==="incorrect"?Ke="incorrect":X!==""&&(ue=z);const ft=this.scanOptionalArgument("string")==="locked",Ft=this.scanArgument("auto");let Nt;return Ft&&Array.isArray(Ft)&&Ft.length>0?Nt=Ft:Ft&&typeof Ft=="object"&&"group"in Ft?Nt=Ft.group:Nt=ue,M?[new DA(M,Ke,ft,Nt!=null?Nt:ue,{mode:this.parseMode,style:this.style})]:[new ql({mode:this.parseMode,style:this.style})]}if(e==="\\renewcommand"||e==="\\newcommand"||e==="\\providecommand"||e==="\\def"){const M=this.index,z=this.scanLiteralGroup()||this.next();if(!z)return null;if(this.context.registers[z.substring(1)]){const X=this.scanArgument("string");X!==null&&(this.context.registers[z.substring(1)]=X);const ue=Ba([e,xl(this.tokens.slice(M,this.index))]);return[new zr({type:"text",value:"",verbatimLatex:ue})]}}let i=this.scanMacro(e);if(i)return[i];const s=gt(e,this.parseMode);if(!s)return this.parseMode==="text"?(/[a-zA-Z]/.test((t=this.peek())!=null?t:"")&&(e+=" "),[...e].map(M=>new zr({type:"text",value:M,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:e}),[new ya(e)]);const A=this.index;if(s.definitionType==="symbol"){const M=f({},this.style);s.variant&&(M.variant=s.variant),i=new zr({type:s.type,command:e,style:M,value:String.fromCodePoint(s.codepoint),mode:this.parseMode})}else{if(s.ifMode&&!s.ifMode.includes(this.parseMode))return[];const M=this.parseMode;s.applyMode&&(this.parseMode=s.applyMode);let z,X=[];if(s.parse?X=s.parse(this):[z,X]=this.scanArguments(s),this.parseMode=M,s.applyMode&&!s.applyStyle&&!s.createAtom)return ut(X[0]);if(s.infix)return this.onError({code:"too-many-infix-commands",arg:e}),null;if(typeof s.createAtom=="function")i=s.createAtom({command:e,args:X,style:this.style,mode:this.parseMode}),z&&(i.body=ut(this.scanArgument(z)));else if(typeof s.applyStyle=="function"){const ue=f(f({},this.style),s.applyStyle(e,X,this.context)),Ke=this.parseMode;if(s.applyMode&&(this.parseMode=s.applyMode),z){const ft=this.style;this.style=ue;const Ft=this.scanArgument(z);return this.style=ft,this.parseMode=Ke,ut(Ft)}this.style=ue}else i=new zr({type:"mord",command:(r=s.command)!=null?r:e,style:f({},this.style),value:e,mode:(n=s.applyMode)!=null?n:this.parseMode})}if(!i)return null;if(i instanceof zr&&i.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(e)){const M=Ba([e,xl(this.tokens.slice(A,this.index))]);M&&(i.verbatimLatex=M)}if(i.verbatimLatex===null&&(i.verbatimLatex=void 0),i.isFunction&&this.smartFence){const M=this.scanSmartFence();if(M)return[i,M]}return[i]}scanSymbolCommandOrLiteral(){const e=this.get();if(!e)return null;if(ru(e)){const t=Ns.createAtom(this.parseMode,e,f({},this.style));if(!t)return null;if(t.isFunction&&this.smartFence){const r=this.scanSmartFence();if(r)return[t,r]}return[t]}return e.startsWith("\\")?this.scanSymbolOrCommand(e):e==="<space>"?this.parseMode==="text"?[new oc(" "," ",this.style)]:null:(e==="<}>"?this.onError({latex:"",code:"unbalanced-braces"}):this.onError({latex:"",code:"unexpected-token",arg:e}),null)}scanMacro(e){var t;const r=this.context.getMacro(e);if(!r)return null;const n=this.index,i=r.args,s={"?":(t=this.args)==null?void 0:t.call(this,"?")};for(let A=1;A<=i;A++){let M=this.scanLiteralGroup();if(!M){const z=this.index;this.scanExpression(),M=xl(this.tokens.slice(z,this.index))}s[A]=M}return new pu(e,{expand:r.expand,captureSelection:r.captureSelection,args:n===this.index?null:xl(this.tokens.slice(n,this.index)),style:this.parsingContext.style,body:Al(r.def,{context:this.context,parseMode:this.parseMode,args:A=>s[A],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var e,t,r,n;let i=(n=(r=(t=(e=this.scanEnvironment())!=null?e:this.scanModeShift())!=null?t:this.scanModeSet())!=null?r:this.scanGroup())!=null?n:this.scanLeftRight();if(i===null){if(this.parseSupSub()||this.parseLimits())return!0;i=this.scanSymbolCommandOrLiteral()}return i?(Array.isArray(i)?this.mathlist.push(...i):this.mathlist.push(i),!0):!1}};function Al(e,t){var r,n,i,s;const A=(r=t==null?void 0:t.args)!=null?r:void 0,M=new Zu(gc(e,A),t==null?void 0:t.context,{args:A,mathstyle:(n=t==null?void 0:t.mathstyle)!=null?n:"displaystyle",parseMode:(i=t==null?void 0:t.parseMode)!=null?i:"math",style:(s=t==null?void 0:t.style)!=null?s:{}}),z=[];for(;!M.end();)z.push(...M.scan(()=>!1));return z}function gu(e,t){var r;const n=new Zu(gc(e,null),t==null?void 0:t.context,{mathstyle:"displaystyle",parseMode:(r=t==null?void 0:t.parseMode)!=null?r:"math"});for(;!n.end();)n.scan();return n.errors}var id=class Ap extends zr{constructor(t,r){super({type:"chem"},{command:t,mode:"math"});const n=jo.go(yn.go(r,t==="\\pu"?"pu":"ce"),!1);this.body=Al(n),this._verbatimLatex=t+"{"+r+"}",this.arg=r,this.captureSelection=!0}static fromJson(t){return new Ap(t.command,t.arg)}set verbatimLatex(t){}get verbatimLatex(){return this._verbatimLatex}toJson(){return E(f({},super.toJson()),{arg:this.arg})}render(t){const r=zr.createBox(t,this.body,{type:"inner"});return this.caret&&(r.caret=this.caret),this.bind(t,r)}_serialize(t){return console.assert(this.verbatimLatex!==void 0),this.verbatimLatex}};pe(["ce","pu"],"{chemformula:balanced-string}",{createAtom:e=>{var t;return new id(e.command,(t=e.args[0])!=null?t:"")}});var yn={go:function(e,t){if(!e)return[];t===void 0&&(t="ce");var r="0",n={};n.parenthesisLevel=0,e=e.replace(/\n/g," "),e=e.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),e=e.replace(/[\u2026]/g,"...");for(var i,s=10,A=[];;){i!==e?(s=10,i=e):s--;var M=yn.stateMachines[t],z=M.transitions[r]||M.transitions["*"];e:for(var X=0;X<z.length;X++){var ue=yn.patterns.match_(z[X].pattern,e);if(ue){for(var Ke=z[X].task,ft=0;ft<Ke.action_.length;ft++){var Ft;if(M.actions[Ke.action_[ft].type_])Ft=M.actions[Ke.action_[ft].type_](n,ue.match_,Ke.action_[ft].option);else if(yn.actions[Ke.action_[ft].type_])Ft=yn.actions[Ke.action_[ft].type_](n,ue.match_,Ke.action_[ft].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+Ke.action_[ft].type_+")"];yn.concatArray(A,Ft)}if(r=Ke.nextState||r,e.length>0){if(Ke.revisit||(e=ue.remainder),!Ke.toContinue)break e}else return A}}if(s<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(e,t){if(t)if(Object.prototype.toString.call(t)==="[object Array]")for(var r=0;r<t.length;r++)e.push(t[r]);else e.push(t)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(e){var t=e.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:(?:([eE])|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return t&&t[0]?{match_:t.slice(1),remainder:e.substr(t[0].length)}:null},"(-)(9)^(-9)":function(e){var t=e.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/);return t&&t[0]?{match_:t.slice(1),remainder:e.substr(t[0].length)}:null},"state of aggregation $":function(e){var t=yn.patterns.findObserveGroups(e,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(t&&t.remainder.match(/^($|[\s,;\)\]\}])/))return t;var r=e.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return r?{match_:r[0],remainder:e.substr(r[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". ":/^([.\u22C5\u00B7\u2022])\s*/,"...":/^\.\.\.(?=$|[^.])/,"* ":/^([*])\s*/,"^{(...)}":function(e){return yn.patterns.findObserveGroups(e,"^{","","","}")},"^($...$)":function(e){return yn.patterns.findObserveGroups(e,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(e){return yn.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(e){return yn.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(e){return yn.patterns.findObserveGroups(e,"_{","","","}")},"_($...$)":function(e){return yn.patterns.findObserveGroups(e,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(e){return yn.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(e){return yn.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(e){return yn.patterns.findObserveGroups(e,"","{","}","")},"{(...)}":function(e){return yn.patterns.findObserveGroups(e,"{","","","}")},"$...$":function(e){return yn.patterns.findObserveGroups(e,"","$","$","")},"${(...)}$":function(e){return yn.patterns.findObserveGroups(e,"${","","","}$")},"$(...)$":function(e){return yn.patterns.findObserveGroups(e,"$","","","$")},"=<>":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(e){return yn.patterns.findObserveGroups(e,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(e){return yn.patterns.findObserveGroups(e,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(e){return yn.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(e){return yn.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(e){return yn.patterns.findObserveGroups(e,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(e){return yn.patterns.findObserveGroups(e,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(e){return yn.patterns.findObserveGroups(e,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(e){return yn.patterns.findObserveGroups(e,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(e){return yn.patterns.findObserveGroups(e,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(e){return yn.patterns.findObserveGroups(e,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(e){return yn.patterns.findObserveGroups(e,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(e){return yn.patterns.findObserveGroups(e,"\\ce{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(e){var t;if(t=e.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/),t)return{match_:t[0],remainder:e.substr(t[0].length)};var r=yn.patterns.findObserveGroups(e,"","$","$","");return r&&(t=r.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/),t)?{match_:t[0],remainder:e.substr(t[0].length)}:null},amount2:function(e){return this.amount(e)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(e){if(e.match(/^\([a-z]+\)$/))return null;var t=e.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return t?{match_:t[0],remainder:e.substr(t[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(e,t,r,n,i,s,A,M,z,X){var ue=function(xr,nn){if(typeof nn=="string")return xr.indexOf(nn)!==0?null:nn;var Rn=xr.match(nn);return Rn?Rn[0]:null},Ke=function(xr,nn,Rn){for(var pn=0;nn<xr.length;){var Si=xr.charAt(nn),zi=ue(xr.substr(nn),Rn);if(zi!==null&&pn===0)return{endMatchBegin:nn,endMatchEnd:nn+zi.length};if(Si==="{")pn++;else if(Si==="}"){if(pn===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];pn--}nn++}return pn>0,null},ft=ue(e,t);if(ft===null||(e=e.substr(ft.length),ft=ue(e,r),ft===null))return null;var Ft=Ke(e,ft.length,n||i);if(Ft===null)return null;var Nt=e.substring(0,n?Ft.endMatchEnd:Ft.endMatchBegin);if(s||A){var Er=this.findObserveGroups(e.substr(Ft.endMatchEnd),s,A,M,z);if(Er===null)return null;var Fn=[Nt,Er.match_];return{match_:X?Fn.join(""):Fn,remainder:Er.remainder}}else return{match_:Nt,remainder:e.substr(Ft.endMatchEnd)}},match_:function(e,t){var r=yn.patterns.patterns[e];if(r===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+e+")"];if(typeof r=="function")return yn.patterns.patterns[e](t);var n=t.match(r);if(n){var i;return n[2]?i=[n[1],n[2]]:n[1]?i=n[1]:i=n[0],{match_:i,remainder:t.substr(n[0].length)}}return null}},actions:{"a=":function(e,t){e.a=(e.a||"")+t},"b=":function(e,t){e.b=(e.b||"")+t},"p=":function(e,t){e.p=(e.p||"")+t},"o=":function(e,t){e.o=(e.o||"")+t},"q=":function(e,t){e.q=(e.q||"")+t},"d=":function(e,t){e.d=(e.d||"")+t},"rm=":function(e,t){e.rm=(e.rm||"")+t},"text=":function(e,t){e.text_=(e.text_||"")+t},insert:function(e,t,r){return{type_:r}},"insert+p1":function(e,t,r){return{type_:r,p1:t}},"insert+p1+p2":function(e,t,r){return{type_:r,p1:t[0],p2:t[1]}},copy:function(e,t){return t},rm:function(e,t){return{type_:"rm",p1:t||""}},text:function(e,t){return yn.go(t,"text")},"{text}":function(e,t){var r=["{"];return yn.concatArray(r,yn.go(t,"text")),r.push("}"),r},"tex-math":function(e,t){return yn.go(t,"tex-math")},"tex-math tight":function(e,t){return yn.go(t,"tex-math tight")},bond:function(e,t,r){return{type_:"bond",kind_:r||t}},"color0-output":function(e,t){return{type_:"color0",color:t[0]}},ce:function(e,t){return yn.go(t)},"1/2":function(e,t){var r=[];t.match(/^[+\-]/)&&(r.push(t.substr(0,1)),t=t.substr(1));var n=t.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return n[1]=n[1].replace(/\$/g,""),r.push({type_:"frac",p1:n[1],p2:n[2]}),n[3]&&(n[3]=n[3].replace(/\$/g,""),r.push({type_:"tex-math",p1:n[3]})),r},"9,9":function(e,t){return yn.go(t,"9,9")}},createTransitions:function(e){var t,r,n,i,s={};for(t in e)for(r in e[t])for(n=r.split("|"),e[t][r].stateArray=n,i=0;i<n.length;i++)s[n[i]]=[];for(t in e)for(r in e[t])for(n=e[t][r].stateArray||[],i=0;i<n.length;i++){var A=e[t][r];if(A.action_){A.action_=[].concat(A.action_);for(var M=0;M<A.action_.length;M++)typeof A.action_[M]=="string"&&(A.action_[M]={type_:A.action_[M]})}else A.action_=[];for(var z=t.split("|"),X=0;X<z.length;X++)if(n[i]==="*")for(var ue in s)s[ue].push({pattern:z[X],task:A});else s[n[i]].push({pattern:z[X],task:A})}return s},stateMachines:{}};yn.stateMachines={ce:{transitions:yn.createTransitions({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:!0,toContinue:!0}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{}},space:{a:{nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". |* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}0":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(e,t){var r;if((e.d||"").match(/^[0-9]+$/)){var n=e.d;e.d=void 0,r=this.output(e),e.b=n}else r=this.output(e);return yn.actions["o="](e,t),r},"d= kv":function(e,t){e.d=t,e.dType="kv"},"charge or bond":function(e,t){if(e.beginsWithBond){var r=[];return yn.concatArray(r,this.output(e)),yn.concatArray(r,yn.actions.bond(e,t,"-")),r}else e.d=t},"- after o/d":function(e,t,r){var n=yn.patterns.match_("orbital",e.o||""),i=yn.patterns.match_("one lowercase greek letter $",e.o||""),s=yn.patterns.match_("one lowercase latin letter $",e.o||""),A=yn.patterns.match_("$one lowercase latin letter$ $",e.o||""),M=t==="-"&&(n&&n.remainder===""||i||s||A);M&&!e.a&&!e.b&&!e.p&&!e.d&&!e.q&&!n&&s&&(e.o="$"+e.o+"$");var z=[];return M?(yn.concatArray(z,this.output(e)),z.push({type_:"hyphen"})):(n=yn.patterns.match_("digits",e.d||""),r&&n&&n.remainder===""?(yn.concatArray(z,yn.actions["d="](e,t)),yn.concatArray(z,this.output(e))):(yn.concatArray(z,this.output(e)),yn.concatArray(z,yn.actions.bond(e,t,"-")))),z},"a to o":function(e){e.o=e.a,e.a=void 0},"sb=true":function(e){e.sb=!0},"sb=false":function(e){e.sb=!1},"beginsWithBond=true":function(e){e.beginsWithBond=!0},"beginsWithBond=false":function(e){e.beginsWithBond=!1},"parenthesisLevel++":function(e){e.parenthesisLevel++},"parenthesisLevel--":function(e){e.parenthesisLevel--},"state of aggregation":function(e,t){return{type_:"state of aggregation",p1:yn.go(t,"o")}},comma:function(e,t){var r=t.replace(/\s*$/,""),n=r!==t;return n&&e.parenthesisLevel===0?{type_:"comma enumeration L",p1:r}:{type_:"comma enumeration M",p1:r}},output:function(e,t,r){var n;if(!e.r)n=[],!e.a&&!e.b&&!e.p&&!e.o&&!e.q&&!e.d&&!r||(e.sb&&n.push({type_:"entitySkip"}),!e.o&&!e.q&&!e.d&&!e.b&&!e.p&&r!==2?(e.o=e.a,e.a=void 0):!e.o&&!e.q&&!e.d&&(e.b||e.p)?(e.o=e.a,e.d=e.b,e.q=e.p,e.a=e.b=e.p=void 0):e.o&&e.dType==="kv"&&yn.patterns.match_("d-oxidation$",e.d||"")?e.dType="oxidation":e.o&&e.dType==="kv"&&!e.q&&(e.dType=void 0),n.push({type_:"chemfive",a:yn.go(e.a,"a"),b:yn.go(e.b,"bd"),p:yn.go(e.p,"pq"),o:yn.go(e.o,"o"),q:yn.go(e.q,"pq"),d:yn.go(e.d,e.dType==="oxidation"?"oxidation":"bd"),dType:e.dType}));else{var i;e.rdt==="M"?i=yn.go(e.rd,"tex-math"):e.rdt==="T"?i=[{type_:"text",p1:e.rd||""}]:i=yn.go(e.rd);var s;e.rqt==="M"?s=yn.go(e.rq,"tex-math"):e.rqt==="T"?s=[{type_:"text",p1:e.rq||""}]:s=yn.go(e.rq),n={type_:"arrow",r:e.r,rd:i,rq:s}}for(var A in e)A!=="parenthesisLevel"&&A!=="beginsWithBond"&&delete e[A];return n},"oxidation-output":function(e,t){var r=["{"];return yn.concatArray(r,yn.go(t,"oxidation")),r.push("}"),r},"frac-output":function(e,t){return{type_:"frac-ce",p1:yn.go(t[0]),p2:yn.go(t[1])}},"overset-output":function(e,t){return{type_:"overset",p1:yn.go(t[0]),p2:yn.go(t[1])}},"underset-output":function(e,t){return{type_:"underset",p1:yn.go(t[0]),p2:yn.go(t[1])}},"underbrace-output":function(e,t){return{type_:"underbrace",p1:yn.go(t[0]),p2:yn.go(t[1])}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:yn.go(t[1])}},"r=":function(e,t){e.r=t},"rdt=":function(e,t){e.rdt=t},"rd=":function(e,t){e.rd=t},"rqt=":function(e,t){e.rqt=t},"rq=":function(e,t){e.rq=t},operator:function(e,t,r){return{type_:"operator",kind_:r||t}}}},a:{transitions:yn.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},"$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:yn.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"{text}"}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:yn.createTransitions({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(e){if(e.text_){var t={type_:"text",p1:e.text_};for(var r in e)delete e[r];return t}}}},pq:{transitions:yn.createTransitions({empty:{"*":{}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"!f",revisit:!0}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(e,t){return{type_:"state of aggregation subscript",p1:yn.go(t,"o")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:yn.go(t[1],"pq")}}}},bd:{transitions:yn.createTransitions({empty:{"*":{}},x$:{0:{nextState:"!f",revisit:!0}},formula$:{0:{nextState:"f",revisit:!0}},else:{0:{nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(e,t){return{type_:"color",color1:t[0],color2:yn.go(t[1],"bd")}}}},oxidation:{transitions:yn.createTransitions({empty:{"*":{}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(e,t){return{type_:"roman numeral",p1:t||""}}}},"tex-math":{transitions:yn.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e)delete e[r];return t}}}},"tex-math tight":{transitions:yn.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(e,t){e.o=(e.o||"")+"{"+t+"}"},output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e)delete e[r];return t}}}},"9,9":{transitions:yn.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:yn.createTransitions({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(e,t){var r=[];return t[0]==="+-"||t[0]==="+/-"?r.push("\\pm "):t[0]&&r.push(t[0]),t[1]&&(yn.concatArray(r,yn.go(t[1],"pu-9,9")),t[2]&&(t[2].match(/[,.]/)?yn.concatArray(r,yn.go(t[2],"pu-9,9")):r.push(t[2])),(t[3]||t[4])&&(t[3]==="e"||t[4]==="*"?r.push({type_:"cdot"}):r.push({type_:"times"}))),t[5]&&r.push("10^{"+t[5]+"}"),r},"number^":function(e,t){var r=[];return t[0]==="+-"||t[0]==="+/-"?r.push("\\pm "):t[0]&&r.push(t[0]),yn.concatArray(r,yn.go(t[1],"pu-9,9")),r.push("^{"+t[2]+"}"),r},operator:function(e,t,r){return{type_:"operator",kind_:r||t}},space:function(){return{type_:"pu-space-1"}},output:function(e){var t,r=yn.patterns.match_("{(...)}",e.d||"");r&&r.remainder===""&&(e.d=r.match_);var n=yn.patterns.match_("{(...)}",e.q||"");if(n&&n.remainder===""&&(e.q=n.match_),e.d&&(e.d=e.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.d=e.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),e.q){e.q=e.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.q=e.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var i={d:yn.go(e.d,"pu"),q:yn.go(e.q,"pu")};e.o==="//"?t={type_:"pu-frac",p1:i.d,p2:i.q}:(t=i.d,i.d.length>1||i.q.length>1?t.push({type_:" / "}):t.push({type_:"/"}),yn.concatArray(t,i.q))}else t=yn.go(e.d,"pu-2");for(var s in e)delete e[s];return t}}},"pu-2":{transitions:yn.createTransitions({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(e,t){e.rm+="^{"+t+"}"},space:function(){return{type_:"pu-space-2"}},output:function(e){var t=[];if(e.rm){var r=yn.patterns.match_("{(...)}",e.rm||"");r&&r.remainder===""?t=yn.go(r.match_,"pu"):t={type_:"rm",p1:e.rm}}for(var n in e)delete e[n];return t}}},"pu-9,9":{transitions:yn.createTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){var r=e.text_.length%3;r===0&&(r=3);for(var n=e.text_.length-3;n>0;n-=3)t.push(e.text_.substr(n,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(0,r)),t.reverse()}else t.push(e.text_);for(var i in e)delete e[i];return t},"output-o":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){for(var r=e.text_.length-3,n=0;n<r;n+=3)t.push(e.text_.substr(n,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(n))}else t.push(e.text_);for(var i in e)delete e[i];return t}}}};var jo={go:function(e,t){if(!e)return"";for(var r="",n=!1,i=0;i<e.length;i++){var s=e[i];typeof s=="string"?r+=s:(r+=jo._go2(s),s.type_==="1st-level escape"&&(n=!0))}return!t&&!n&&r&&(r="{"+r+"}"),r},_goInner:function(e){return e&&jo.go(e,!0)},_go2:function(e){var t;switch(e.type_){case"chemfive":t="";var r={a:jo._goInner(e.a),b:jo._goInner(e.b),p:jo._goInner(e.p),o:jo._goInner(e.o),q:jo._goInner(e.q),d:jo._goInner(e.d)};r.a&&(r.a.match(/^[+\-]/)&&(r.a="{"+r.a+"}"),t+=r.a+"\\,"),(r.b||r.p)&&(t+="{\\vphantom{X}}",t+="^{\\hphantom{"+(r.b||"")+"}}_{\\hphantom{"+(r.p||"")+"}}",t+="{\\vphantom{X}}",t+="^{\\smash[t]{\\vphantom{2}}\\llap{"+(r.b||"")+"}}",t+="_{\\vphantom{2}\\llap{\\smash[t]{"+(r.p||"")+"}}}"),r.o&&(r.o.match(/^[+\-]/)&&(r.o="{"+r.o+"}"),t+=r.o),e.dType==="kv"?((r.d||r.q)&&(t+="{\\vphantom{X}}"),r.d&&(t+="^{"+r.d+"}"),r.q&&(t+="_{\\smash[t]{"+r.q+"}}")):e.dType==="oxidation"?(r.d&&(t+="{\\vphantom{X}}",t+="^{"+r.d+"}"),r.q&&(t+="{\\vphantom{X}}",t+="_{\\smash[t]{"+r.q+"}}")):(r.q&&(t+="{\\vphantom{X}}",t+="_{\\smash[t]{"+r.q+"}}"),r.d&&(t+="{\\vphantom{X}}",t+="^{"+r.d+"}"));break;case"rm":t="\\mathrm{"+e.p1+"}";break;case"text":e.p1.match(/[\^_]/)?(e.p1=e.p1.replace(" ","~").replace("-","\\text{-}"),t="\\mathrm{"+e.p1+"}"):t="\\text{"+e.p1+"}";break;case"roman numeral":t="\\mathrm{"+e.p1+"}";break;case"state of aggregation":t="\\mskip2mu "+jo._goInner(e.p1);break;case"state of aggregation subscript":t="\\mskip1mu "+jo._goInner(e.p1);break;case"bond":if(t=jo._getBond(e.kind_),!t)throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+e.kind_+")"];break;case"frac":var n="\\frac{"+e.p1+"}{"+e.p2+"}";t="\\mathchoice{\\textstyle"+n+"}{"+n+"}{"+n+"}{"+n+"}";break;case"pu-frac":var i="\\frac{"+jo._goInner(e.p1)+"}{"+jo._goInner(e.p2)+"}";t="\\mathchoice{\\textstyle"+i+"}{"+i+"}{"+i+"}{"+i+"}";break;case"tex-math":t=e.p1+" ";break;case"frac-ce":t="\\frac{"+jo._goInner(e.p1)+"}{"+jo._goInner(e.p2)+"}";break;case"overset":t="\\overset{"+jo._goInner(e.p1)+"}{"+jo._goInner(e.p2)+"}";break;case"underset":t="\\underset{"+jo._goInner(e.p1)+"}{"+jo._goInner(e.p2)+"}";break;case"underbrace":t="\\underbrace{"+jo._goInner(e.p1)+"}_{"+jo._goInner(e.p2)+"}";break;case"color":t="{\\color{"+e.color1+"}{"+jo._goInner(e.color2)+"}}";break;case"color0":t="\\color{"+e.color+"}";break;case"arrow":var s={rd:jo._goInner(e.rd),rq:jo._goInner(e.rq)},A=jo._getArrow(e.r);s.rd||s.rq?e.r==="<=>"||e.r==="<=>>"||e.r==="<<=>"||e.r==="<-->"?(A="\\long"+A,s.rd&&(A="\\overset{"+s.rd+"}{"+A+"}"),s.rq&&(e.r==="<-->"?A="\\underset{\\lower2mu{"+s.rq+"}}{"+A+"}":A="\\underset{\\lower6mu{"+s.rq+"}}{"+A+"}"),A=" {}\\mathrel{"+A+"}{} "):(s.rq&&(A+="[{"+s.rq+"}]"),A+="{"+s.rd+"}",A=" {}\\mathrel{\\x"+A+"}{} "):A=" {}\\mathrel{\\long"+A+"}{} ",t=A;break;case"operator":t=jo._getOperator(e.kind_);break;case"1st-level escape":t=e.p1+" ";break;case"space":t=" ";break;case"entitySkip":t="~";break;case"pu-space-1":t="~";break;case"pu-space-2":t="\\mkern3mu ";break;case"1000 separator":t="\\mkern2mu ";break;case"commaDecimal":t="{,}";break;case"comma enumeration L":t="{"+e.p1+"}\\mkern6mu ";break;case"comma enumeration M":t="{"+e.p1+"}\\mkern3mu ";break;case"comma enumeration S":t="{"+e.p1+"}\\mkern1mu ";break;case"hyphen":t="\\text{-}";break;case"addition compound":t="\\,{\\cdot}\\,";break;case"electron dot":t="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":t="{\\times}";break;case"prime":t="\\prime ";break;case"cdot":t="\\cdot ";break;case"tight cdot":t="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":t="\\times ";break;case"circa":t="{\\sim}";break;case"^":t="uparrow";break;case"v":t="downarrow";break;case"ellipsis":t="\\ldots ";break;case"/":t="/";break;case" / ":t="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return t},_getArrow:function(e){switch(e){case"->":return"rightarrow";case"\u2192":return"rightarrow";case"\u27F6":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<-->":return"leftrightarrows";case"<=>":return"rightleftharpoons";case"\u21CC":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(e){switch(e){case"-":return"{-}";case"1":return"{-}";case"=":return"{=}";case"2":return"{=}";case"#":return"{\\equiv}";case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(e){switch(e){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":return" {}\\approx{} ";case"$\\approx$":return" {}\\approx{} ";case"v":return" \\downarrow{} ";case"(v)":return" \\downarrow{} ";case"^":return" \\uparrow{} ";case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};function bd(e){}function gf(e){}var Zd=class up extends zr{constructor(t){super(E(f({},t),{type:"delim"})),this.value=t.delim,this.size=t.size}static fromJson(t){return new up(t)}toJson(){return E(f({},super.toJson()),{delim:this.value,size:this.size})}render(t){return new fn(this.value,{type:"middle"})}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=gt(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):So(this.command,this.value)}},wd=class dp extends zr{constructor(t){super(E(f({},t),{type:"sizeddelim",value:t.delim})),this.delimType=t.delimType,this.size=t.size}static fromJson(t){return new dp(t)}toJson(){return E(f({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(t){let r=Ul(this.value,this.size,t,{classes:{open:"mopen",close:"mclose"}[this.delimType],type:this.delimType,isSelected:this.isSelected});return r?(r=this.bind(t,r),this.caret&&(r.caret=this.caret),r):null}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=gt(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):So(this.command,this.value)}},Vu=class fp extends zr{constructor(t,r,n,i){var s,A;super({type:"enclose",command:t,style:i.style}),this.body=r,this.backgroundcolor=i.backgroundcolor,n.updiagonalarrow&&(n.updiagonalstrike=!1),n.box&&(n.left=!1,n.right=!1,n.bottom=!1,n.top=!1),this.notation=n,this.shadow=(s=i.shadow)!=null?s:"none",this.strokeWidth=(A=i.strokeWidth)!=null?A:"0.06em",this.strokeWidth||(this.strokeWidth="0.06em"),this.strokeStyle=i.strokeStyle,this.svgStrokeStyle=i.svgStrokeStyle,this.strokeColor=i.strokeColor,this.borderStyle=i.borderStyle,this.padding=i.padding,this.captureSelection=!1}static fromJson(t){return new fp(t.command,t.body,t.notation,t)}toJson(){return E(f({},super.toJson()),{notation:this.notation,shadow:this.shadow,strokeWidth:this.strokeWidth,strokeStyle:this.strokeStyle,svgStrokeStyle:this.svgStrokeStyle,strokeColor:this.strokeColor,borderStyle:this.borderStyle,padding:this.padding})}_serialize(t){var r;if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const n=gt(this.command,this.mode);if(n!=null&&n.serialize)return n.serialize(this,t);let i=(r=this.command)!=null?r:"";if(this.command==="\\enclose"){i+="{"+Object.keys(this.notation).join(" ")+"}";let s="",A="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(s+=A+'mathbackground="'+this.backgroundcolor+'"',A=","),this.shadow&&this.shadow!=="auto"&&(s+=A+'shadow="'+this.shadow+'"',A=","),this.strokeWidth||this.strokeStyle!=="solid"?(s+=A+this.borderStyle,A=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(s+=A+'mathcolor="'+this.strokeColor+'"',A=","),s&&(i+=`[${s}]`)}return So(i,this.bodyToLatex(t))}render(t){const r=new la({parent:t},this.style),n=zr.createBox(r,this.body);if(!n)return null;const i=xd(this.borderStyle),s=r.toEm(!this.padding||this.padding==="auto"?{register:"fboxsep"}:{string:this.padding});n.setStyle("position","relative"),n.setStyle("display","inline-block"),n.setStyle("top",s,"em"),n.setStyle("height",n.height+n.depth,"em"),n.setStyle("width",n.width,"em");const A=new fn(null,{classes:"ML__notation"});let M=n.height+n.depth+2*s;const z=n.width+2*s;let X="";if(this.notation.horizontalstrike&&(X+=this.line(3,50,97,50)),this.notation.verticalstrike&&(X+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(X+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(X+=this.line(3,3,97,97)),this.notation.updiagonalarrow){X+=this.line(s.toString(),(s+n.depth+n.height).toString(),(s+n.width).toString(),s.toString());const Nt=.03*Math.sqrt(z*z+M*M)*1,Er=n.width*Nt,Fn=(n.depth+n.height)*Nt,xr=s+n.width;let nn=s;nn+Fn-.4*Er<0&&(nn=.4*Er-Fn),X+='<polygon points="',X+=`${xr},${nn} ${xr-Er-.4*Fn},${nn+Fn-.4*Er} `,X+=`${xr-.7*Er},${nn+.7*Fn} ${xr-Er+.4*Fn},${nn+Fn+.4*Er} `,X+=`${xr},${nn}`,X+=`" stroke='none' fill="${this.strokeColor}"`,X+="/>"}let ue=0;if(this.notation.phasorangle){const ft=ml(r),Ft=(n.height+n.depth+2*ft+s).toString(),Nt=(n.height+n.depth)/2;X+=this.line(s.toString(),Ft,(s+Nt+n.width).toString(),Ft),X+=this.line(s.toString(),Ft,(s+Nt).toString(),(s-ft).toString()),M+=ft,ue=Nt,n.left+=M/2-s}if(this.notation.longdiv){const ft=ml(r);M+=ft,X+=this.line(s.toString(),s.toString(),(s+n.width).toString(),s.toString());const Ft=.3;ue=Ft+ft,n.left+=Ft+ft,n.setTop(s+ft),X+='<path d="',X+=`M ${s} ${s} a${Ft} ${(n.depth+n.height+2*ft)/2}, 0, 1, 1, 0 ${n.depth+n.height+2*ft} "`,X+=` stroke-width="${vu(r)}" stroke="${this.strokeColor}" fill="none"`,X+="/>"}if(A.width=n.width+2*s+ue,A.height=n.height+s,A.depth=n.depth+s,A.setStyle("box-sizing","border-box"),A.setStyle("left",`calc(-${i} / 2 )`),A.setStyle("height",`${Math.floor(100*M)/100}em`),A.setStyle("top",`calc(${i} / 2 )`),this.backgroundcolor&&A.setStyle("background-color",this.backgroundcolor),this.notation.box&&A.setStyle("border","1px solid red"),this.notation.actuarial&&(A.setStyle("border-top",this.borderStyle),A.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(A.setStyle("border-bottom",this.borderStyle),A.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(A.setStyle("border-radius","8px"),A.setStyle("border",this.borderStyle)),this.notation.circle&&(A.setStyle("border-radius","50%"),A.setStyle("border",this.borderStyle)),this.notation.top&&A.setStyle("border-top",this.borderStyle),this.notation.left&&A.setStyle("border-left",this.borderStyle),this.notation.right&&A.setStyle("border-right",this.borderStyle),this.notation.bottom&&A.setStyle("border-bottom",this.borderStyle),X){let ft="";this.shadow==="auto"&&(ft+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(ft+=`filter: drop-shadow(${this.shadow})`),ft+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,ft+=' stroke-linecap="round"',this.svgStrokeStyle&&(ft+=` stroke-dasharray="${this.svgStrokeStyle}"`),A.svgStyle=ft,A.svgOverlay=X}const Ke=new fn([A,n]);return Ke.setStyle("position","relative"),Ke.setStyle("vertical-align",s,"em"),Ke.setStyle("height",`${Math.floor(100*(n.height+n.depth+2*s))/100}em`),Ke.setStyle("display","inline-block"),Ke.height=A.height,Ke.depth=A.depth,Ke.width=A.width-2*s,Ke.left=s,Ke.right=s,this.caret&&(Ke.caret=this.caret),Ke.wrap(r)}line(t,r,n,i){return`<line x1="${ad(t)}" y1="${ad(r)}" x2="${ad(n)}" y2="${ad(i)}" vector-effect="non-scaling-stroke"></line>`}};function ad(e){return typeof e=="number"?`${Math.floor(100*e)/100}%`:e}function xd(e){if(!e)return"1px";const t=e.match(/([0-9][a-zA-Z\%]+)/);return t===null?"1px":t[1]}function vu(e){return(Math.floor(100*e.metrics.sqrtRuleThickness/e.scalingFactor)/100/10).toString()+"em"}function ml(e){const t=e.isDisplayStyle?as:e.metrics.defaultRuleThickness;return e.metrics.defaultRuleThickness+e.scalingFactor*t/4}var nu=class hp extends zr{constructor(t,r,n){var i,s;super(E(f({},n),{type:"genfrac",displayContainsHighlight:!0})),this.above=t,this.below=r,this.hasBarLine=(i=n==null?void 0:n.hasBarLine)!=null?i:!0,this.continuousFraction=(s=n==null?void 0:n.continuousFraction)!=null?s:!1,this.numerPrefix=n==null?void 0:n.numerPrefix,this.denomPrefix=n==null?void 0:n.denomPrefix,this.mathstyleName=n==null?void 0:n.mathstyleName,this.leftDelim=n==null?void 0:n.leftDelim,this.rightDelim=n==null?void 0:n.rightDelim,this.fractionNavigationOrder=n==null?void 0:n.fractionNavigationOrder}static fromJson(t){return new hp(t.above,t.below,t)}toJson(){const t={};return this.continuousFraction&&(t.continuousFraction=!0),this.numerPrefix&&(t.numerPrefix=this.numerPrefix),this.denomPrefix&&(t.denomPrefix=this.denomPrefix),this.leftDelim&&(t.leftDelim=this.leftDelim),this.rightDelim&&(t.rightDelim=this.rightDelim),this.hasBarLine||(t.hasBarLine=!1),this.mathstyleName&&(t.mathstyleName=this.mathstyleName),this.fractionNavigationOrder&&(t.fractionNavigationOrder=this.fractionNavigationOrder),f(f({},super.toJson()),t)}get children(){if(this._children)return this._children;const t=[];if(this.fractionNavigationOrder==="denominator-numerator"){for(const r of this.below)t.push(...r.children),t.push(r);for(const r of this.above)t.push(...r.children),t.push(r)}else{for(const r of this.above)t.push(...r.children),t.push(r);for(const r of this.below)t.push(...r.children),t.push(r)}return this._children=t,t}render(t){var r,n;const i=new la({parent:t,mathstyle:this.mathstyleName},this.style),s=i.metrics,A=new la({parent:i,mathstyle:this.continuousFraction?"":"numerator"},this.style),M=this.numerPrefix?new fn([new fn(this.numerPrefix),zr.createBox(A,this.above)],{isTight:A.isTight,type:"ignore"}):(r=zr.createBox(A,this.above,{type:"ignore"}))!=null?r:new fn(null,{type:"ignore"}),z=new la({parent:i,mathstyle:this.continuousFraction?"":"denominator"},this.style),X=this.denomPrefix?new fn([new fn(this.denomPrefix),zr.createBox(z,this.below,{type:"ignore"})]):(n=zr.createBox(z,this.below,{type:"ignore"}))!=null?n:new fn(null,{type:"ignore"}),ue=this.hasBarLine?s.defaultRuleThickness:0;let Ke,ft=0,Ft;i.isDisplayStyle?(Ke=A.metrics.num1,ft=ue>0?3*ue:7*ue,Ft=z.metrics.denom1):(ue>0?(Ke=A.metrics.num2,ft=ue):(Ke=A.metrics.num3,ft=3*s.defaultRuleThickness),Ft=z.metrics.denom2);const Nt=[];this.isSelected&&Nt.push("ML__selected");const Er=M.depth,Fn=X.height;let xr;if(ue<=0){const Ui=Ke-Er-(Fn-Ft);Ui<ft&&(Ke+=(ft-Ui)/2,Ft+=(ft-Ui)/2),xr=new Xo({individualShift:[{box:M,shift:-Ke,classes:[...Nt,"ML__center"]},{box:X,shift:Ft,classes:[...Nt,"ML__center"]}]}).wrap(i)}else{const Ui=new fn(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});Ui.softWidth=Math.max(M.width,X.width),Ui.height=ue/2,Ui.depth=ue/2;const io=us+ue/2;Ke<ft+Er+io&&(Ke=ft+Er+io);const zo=us-ue/2;Ft<ft+Fn-zo&&(Ft=ft+Fn-zo),xr=new Xo({individualShift:[{box:X,shift:Ft,classes:[...Nt,"ML__center"]},{box:Ui,shift:-zo,classes:Nt},{box:M,shift:-Ke,classes:[...Nt,"ML__center"]}]}).wrap(i)}const nn=i.isDisplayStyle?s.delim1:s.delim2,Rn=this.leftDelim?this.bind(t,Bc("open",this.leftDelim,nn,!0,t,{style:this.style,mode:this.mode,isSelected:this.isSelected})):uc(i,"open");let pn=null;this.continuousFraction?pn=new fn(null,{type:"close"}):this.rightDelim?pn=this.bind(t,Bc("close",this.rightDelim,nn,!0,t,{style:this.style,mode:this.mode,isSelected:this.isSelected})):pn=uc(i,"close");const Si=new fn([Rn,xr,pn],{isTight:i.isTight,type:"inner",classes:"mfrac"}),zi=this.bind(t,Si);return this.caret&&(zi.caret=this.caret),this.attachSupsub(t,{base:zi})}},Ls=class pp extends zr{constructor(t,r){var n;super({type:"latex",value:t,mode:"latex"}),this.isSuggestion=(n=r==null?void 0:r.isSuggestion)!=null?n:!1,this.isError=!1}static fromJson(t){const r=new pp(t.value);return t.isSuggestion&&(r.isSuggestion=!0),t.isError&&(r.isError=!0),r}toJson(){const t={};return this.isSuggestion&&(t.isSuggestion=!0),this.isError&&(t.isError=!0),f({type:"latex",value:this.value},t)}get computedStyle(){return{}}render(t){const r=new fn(this.value,{classes:this.isSuggestion?"ML__suggestion":this.isError?"ML__error":"",type:"latex",maxFontSize:1});return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}},yu=class mp extends zr{constructor(t){super({type:"latexgroup",mode:"latex"}),this.body=[...t].map(r=>new Ls(r)),this.skipBoundary=!1}static fromJson(t){return new mp("")}toJson(){return super.toJson()}render(t){const r=zr.createBox(t,this.body);return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}_serialize(t){var r,n;return(n=(r=this.body)==null?void 0:r.map(i=>i.value).join(""))!=null?n:""}},Cd=class gp extends zr{constructor(t,r){super(E(f({},r),{type:"extensible-symbol",isFunction:r==null?void 0:r.isFunction})),this.value=t,this.variant=r==null?void 0:r.variant,this.subsupPlacement=r==null?void 0:r.limits}static fromJson(t){return new gp(t.symbol,t)}toJson(){const t=super.toJson();return this.variant&&(t.variant=this.variant),this.subsupPlacement&&(t.limits=this.subsupPlacement),this.isExtensibleSymbol&&(t.isExtensibleSymbol=!0),this.value&&(t.symbol=this.value),t}render(t){var r;const n=t.isDisplayStyle&&this.value!=="\\smallint",i=new fn(this.value,{fontFamily:n?"Size2-Regular":"Size1-Regular",classes:"op-symbol "+(n?"large-op":"small-op"),type:"op",maxFontSize:t.scalingFactor,isSelected:this.isSelected});if(!i)return null;i.right=i.italic;const s=(i.height-i.depth)/2-us*t.scalingFactor,A=i.italic;i.setTop(s);let M=i;if(this.superscript||this.subscript){const z=(r=this.subsupPlacement)!=null?r:"auto";M=z==="over-under"||z==="auto"&&t.isDisplayStyle?this.attachLimits(t,{base:i,baseShift:s,slant:A}):this.attachSupsub(t,{base:i})}return new fn(this.bind(t,M),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(t)}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=gt(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const n=[];return n.push(this.command),this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&n.push("\\limits"),this.subsupPlacement==="adjacent"&&n.push("\\nolimits"),this.subsupPlacement==="auto"&&n.push("\\displaylimits")),n.push(this.supsubToLatex(t)),Ba(n)}},pA=class vp extends zr{constructor(t){const r=t.body;super(E(f({},t),{type:"overlap",body:typeof r=="string"?[new zr({value:r})]:r,style:t==null?void 0:t.style})),this.skipBoundary=!0,this.align=t==null?void 0:t.align,this.boxType=t==null?void 0:t.boxType}static fromJson(t){return new vp(t)}toJson(){const t={};return this.align&&(t.align=this.align),this.boxType&&(t.boxType=this.boxType),f(f({},super.toJson()),t)}render(t){const r=zr.createBox(t,this.body,{classes:"inner"});return r?(this.caret&&(r.caret=this.caret),this.bind(t,new fn([r,new fn(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},gl=class yp extends zr{constructor(t){var r,n,i,s;super({type:"overunder",command:t.command,style:t.style,mode:t.mode,body:t.body,skipBoundary:(r=t.skipBoundary)!=null?r:!0}),this.subsupPlacement=t.supsubPlacement,this.svgAbove=t.svgAbove,this.svgBelow=t.svgBelow,this.svgBody=t.svgBody,this.above=t.above,this.below=t.below,this.boxType=(n=t.boxType)!=null?n:"ord",this.paddedBody=(i=t.paddedBody)!=null?i:!1,this.paddedLabels=(s=t.paddedLabels)!=null?s:!1}static fromJson(t){return new yp(t)}toJson(){const t=super.toJson();return this.skipBoundary||(t.skipBoundary=!1),this.subsupPlacement&&(t.subsupPlacement=this.subsupPlacement),this.svgAbove&&(t.svgAbove=this.svgAbove),this.svgBelow&&(t.svgBelow=this.svgBelow),this.svgBody&&(t.svgBody=this.svgBody),this.boxType!=="ord"&&(t.boxType=this.boxType),this.paddedBody&&(t.paddedBody=!0),this.paddedLabels&&(t.paddedLabels=!0),t}render(t){let r=this.svgBody?sa(this.svgBody):zr.createBox(t,this.body,{type:"ignore"});const n=new la({parent:t,mathstyle:"scriptstyle"},this.style);let i=null;this.svgAbove?i=sa(this.svgAbove):this.above&&(i=zr.createBox(n,this.above,{type:"ignore"}));let s=null;this.svgBelow?s=sa(this.svgBelow):this.below&&(s=zr.createBox(n,this.below,{type:"ignore"})),this.paddedBody&&(r=new fn([uc(t,"open"),r,uc(t,"close")],{type:"ignore"}));let A=od(t,{base:r,above:i,below:s,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return A?(this.subsupPlacement==="over-under"?A=this.attachLimits(t,{base:A,type:A.type}):A=this.attachSupsub(t,{base:A}),this.caret&&(A.caret=this.caret),this.bind(t,A)):null}};function od(e,t){if(!t.base)return null;if(!t.above&&!t.below){const M=new fn(t.base,{type:t.type});return M.setStyle("position","relative"),M}let r=0;t.above&&(r=e.metrics.bigOpSpacing5);let n=null;const i=t.base,s=0,A=["ML__center"];if(t.paddedAboveBelow&&A.push("ML__label_padding"),t.below&&t.above){const M=e.metrics.bigOpSpacing5+t.below.height+t.below.depth+i.depth+s;n=new Xo({bottom:M,children:[e.metrics.bigOpSpacing5,{box:t.below,classes:A},{box:i,classes:["ML__center"]},r,{box:t.above,classes:A},e.metrics.bigOpSpacing5]})}else t.below?n=new Xo({top:i.height-s,children:[e.metrics.bigOpSpacing5,{box:t.below,classes:A},{box:i,classes:["ML__center"]}]}):t.above&&(n=new Xo({bottom:i.depth+s,children:[{box:i,classes:["ML__center"]},r,{box:t.above,classes:A},e.metrics.bigOpSpacing5]}));return new fn(n,{type:t.type})}var _c=class bp extends zr{constructor(t){var r,n,i,s;super(E(f({},t),{type:"phantom"})),this.captureSelection=!0,this.isInvisible=(r=t.isInvisible)!=null?r:!1,this.smashDepth=(n=t.smashDepth)!=null?n:!1,this.smashHeight=(i=t.smashHeight)!=null?i:!1,this.smashWidth=(s=t.smashWidth)!=null?s:!1}static fromJson(t){return new bp(t)}toJson(){const t={};return this.isInvisible&&(t.isInvisible=!0),this.smashDepth&&(t.smashDepth=!0),this.smashHeight&&(t.smashHeight=!0),this.smashWidth&&(t.smashWidth=!0),f(f({},super.toJson()),t)}render(t){const r=new la({parent:t,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),zr.createBox(r,this.body,{classes:"inner"});const n=zr.createBox(this.isInvisible?r:t,this.body);if(!n)return null;if(this.smashWidth){const i=new fn(null,{classes:"fix"});return new fn([n,i],{classes:"rlap"}).wrap(t)}if(!this.smashHeight&&!this.smashDepth)return n;if(this.smashHeight&&(n.height=0),this.smashDepth&&(n.depth=0),n.children)for(const i of n.children)this.smashHeight&&(i.height=0),this.smashDepth&&(i.depth=0);return new Xo({firstBaseline:[{box:n}]},{type:n.type}).wrap(t)}},Vs=class wp extends zr{constructor(t){var r;super(f({type:"spacing"},t)),this.width=t==null?void 0:t.width,this._braced=(r=t==null?void 0:t.braced)!=null?r:!1}static fromJson(t){return new wp(t)}toJson(){const t=super.toJson();return this.width!==void 0&&(t.width=this.width),this._braced&&(t.braced=!0),t}render(t){var r;if(this.command==="space")return new fn(this.mode==="math"?null:" ");let n;if(this.width!==void 0)n=new fn(null,{classes:"mspace"}),n.left=t.toEm(this.width);else{const i=(r={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\>":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.command])!=null?r:"mediumspace";n=new fn(null,{classes:i})}return n=this.bind(t,n),this.caret&&(n.caret=this.caret),n}_serialize(t){var r;if(!t.expandMacro&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const n=gt(this.command,this.mode);if(n!=null&&n.serialize)return n.serialize(this,t);const i=(r=this.command)!=null?r:"";return this.width===void 0?i:this._braced&&!("register"in this.width)?`${i}{${os(this.width)}}`:`${i}${os(this.width)}`}},nA=class xp extends zr{constructor(t){var r;super(E(f({},t),{type:"surd",mode:(r=t.mode)!=null?r:"math",style:t.style,displayContainsHighlight:!0,body:t.body})),this.above=t.index}static fromJson(t){return new xp(E(f({},t),{index:t.above}))}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=gt(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const n=this.command,i=this.bodyToLatex(t);return this.above&&!this.hasEmptyBranch("above")?So(`${n}[${this.aboveToLatex(t)}]`,i):/^[0-9]$/.test(i)?`${n}${i}`:So(n,i)}get children(){if(this._children)return this._children;const t=[];if(this.above)for(const r of this.above)t.push(...r.children),t.push(r);if(this.body)for(const r of this.body)t.push(...r.children),t.push(r);return this._children=t,t}render(t){var r;const n=new la({parent:t,mathstyle:"cramp"},this.style),i=(r=zr.createBox(n,this.body,{type:"inner"}))!=null?r:new fn(null),s=n.scalingFactor,A=n.metrics.defaultRuleThickness/s,M=t.isDisplayStyle?as:A,z=new fn(null,{classes:"ML__sqrt-line",style:this.style});z.height=A,z.softWidth=i.width;let X=s*(A+M/4);const Ke=Math.max(s*2*M,i.height+i.depth)+X+A,ft=new la({parent:t},this.style),Ft=this.bind(ft,new fn(Bc("inner","\\surd",Ke,!1,ft,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!Ft)return null;const Nt=Ft.height+Ft.depth-A;Nt>i.height+i.depth+X&&(X=(X+Nt-(i.height+i.depth))/2),Ft.setTop(Ft.height-i.height-X);const Er=this.bind(t,new Xo({firstBaseline:[{box:new fn(i)},X-2*A,{box:z},A]})),Fn=zr.createBox(new la({parent:t,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!Fn){const Rn=new fn([Ft,Er],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return Rn.setStyle("display","inline-block"),Rn.setStyle("height",Rn.height+Rn.depth,"em"),this.caret&&(Rn.caret=this.caret),this.bind(t,Rn)}const xr=new Xo({shift:-.6*(Math.max(Ft.height,Er.height)-Math.max(Ft.depth,Er.depth)),children:[{box:Fn}]}),nn=new fn([new fn(xr,{classes:"ML__sqrt-index",type:"ignore"}),Ft,Er],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return nn.height=Ft.height,nn.depth=Ft.depth,this.caret&&(nn.caret=this.caret),this.bind(t,nn)}},vf=class extends fn{constructor(e){super(null,{type:"skip"}),this._width=e}toMarkup(){return`<span style="display:inline-block;width:${Math.ceil(this.width*100)/100}em"></span>`}};function bu(e,t){if(!e.parent)return;const r=e.parent.children,n=r.indexOf(e);let i=n-1;for(;i>=0&&r[i].type==="ignore";)i-=1;if(i<0&&e.parent.parent&&e.parent.type==="lift"){bu(e.parent,t);return}n>0&&r[n-1].type==="skip"?r[n-1].width+=t:r.splice(n,0,new vf(t))}var PA={ord:{op:3,bin:4,rel:5,inner:3},op:{ord:3,op:3,rel:5,inner:3},bin:{ord:4,op:4,open:4,inner:4},rel:{ord:5,op:5,open:5,inner:5},close:{op:3,bin:4,rel:5,inner:3},punct:{ord:3,op:3,rel:3,open:3,punct:3,inner:3},inner:{ord:3,op:3,bin:4,rel:5,open:3,punct:3,inner:3}},dc={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function yf(e){wu(e,(t,r)=>{r.type==="bin"&&(!t||/^(middle|bin|op|rel|open|punct)$/.test(t.type))&&(r.type="ord"),(t==null?void 0:t.type)==="bin"&&/^(rel|close|punct)$/.test(r.type)&&(t.type="ord"),r.type!=="ignore"&&(t=r)})}function Wu(e,t){if(!e.children)return e;const r=e.children;yf(r);const n=t.getRegisterAsEm("thinmuskip"),i=t.getRegisterAsEm("medmuskip"),s=t.getRegisterAsEm("thickmuskip");return wu(r,(A,M)=>{var z,X,ue;if(!A)return;const Ke=A.type,ft=M.isTight?(z=dc[Ke])!=null?z:null:(X=PA[Ke])!=null?X:null,Ft=(ue=ft==null?void 0:ft[M.type])!=null?ue:null;Ft===3&&bu(M,n),Ft===4&&bu(M,i),Ft===5&&bu(M,s)}),e}function wu(e,t,r=void 0){if(!e)return r;e=[...e];for(const n of e)n.type==="lift"?r=wu(n.children,t,r):n.type==="ignore"?wu(n.children,t):(t(r,n),wu(n.children,t),r=n);return r}var sd=class Cp extends zr{constructor(t){super({type:"tooltip",command:t.command,mode:t.mode,style:t.style,body:t.body,displayContainsHighlight:!0}),this.tooltip=new zr({type:"root",mode:t.content,body:t.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(t){return new Cp(E(f({},t),{tooltip:mA(t.tooltip)}))}toJson(){var t;const r=(t=this.tooltip.body)==null?void 0:t.filter(n=>n.type!=="first").map(n=>n.toJson());return E(f({},super.toJson()),{tooltip:r})}render(t){const r=zr.createBox(new la,this.body);if(!r)return null;const n=new la({parent:t,mathstyle:"displaystyle"},{fontSize:Lo}),i=SA(Wu(new fn(this.tooltip.render(n),{classes:"ML__tooltip-content"}),n)),s=new fn([i,r],{classes:"ML__tooltip-container"});return this.caret&&(s.caret=this.caret),this.bind(t,s)}},NA=class Bp extends zr{constructor(t,r){super(E(f({},r),{type:"operator",isFunction:r==null?void 0:r.isFunction})),this.value=t,this.variant=r==null?void 0:r.variant,this.variantStyle=r==null?void 0:r.variantStyle,this.subsupPlacement=r==null?void 0:r.limits}static fromJson(t){return new Bp(t.symbol,t)}toJson(){const t=super.toJson();return this.variant&&(t.variant=this.variant),this.variantStyle&&(t.variantStyle=this.variantStyle),this.subsupPlacement&&(t.limits=this.subsupPlacement),this.value&&(t.symbol=this.value),t}render(t){var r;const n=new fn(this.value,{type:"op",mode:"math",maxFontSize:t.scalingFactor,style:{variant:this.variant,variantStyle:this.variantStyle},isSelected:this.isSelected,letterShapeStyle:t.letterShapeStyle});let i=n;if(this.superscript||this.subscript){const s=(r=this.subsupPlacement)!=null?r:"auto";i=s==="over-under"||s==="auto"&&t.isDisplayStyle?this.attachLimits(t,{base:n}):this.attachSupsub(t,{base:n})}return new fn(this.bind(t,i),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(t)}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=gt(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const n=[this.command];return this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&n.push("\\limits"),this.subsupPlacement==="adjacent"&&n.push("\\nolimits"),this.subsupPlacement==="auto"&&n.push("\\displaylimits")),n.push(this.supsubToLatex(t)),Ba(n)}};function mA(e){if(S(e))return e.map(n=>mA(n));if(typeof e=="string")return zr.fromJson(e);e=f({},e);for(const n of Oc)e[n]&&(e[n]=mA(e[n]));e.args&&(e.args=bf(e.args)),e.array&&(e.array=mA(e.array));const t=e.type;let r;t==="accent"&&(r=cc.fromJson(e)),t==="array"&&(r=Ra.fromJson(e)),t==="box"&&(r=Qs.fromJson(e)),t==="chem"&&(r=id.fromJson(e)),t==="composition"&&(r=zu.fromJson(e)),t==="delim"&&(r=Zd.fromJson(e)),t==="enclose"&&(r=Vu.fromJson(e)),t==="error"&&(r=ya.fromJson(e)),t==="extensible-symbol"&&(r=Cd.fromJson(e)),t==="genfrac"&&(r=nu.fromJson(e)),t==="group"&&(r=Ao.fromJson(e)),t==="latex"&&(r=Ls.fromJson(e)),t==="latexgroup"&&(r=yu.fromJson(e)),t==="leftright"&&(r=ko.fromJson(e)),t==="macro"&&(r=pu.fromJson(e)),t==="macro-argument"&&(r=nd.fromJson(e)),t==="operator"&&(r=NA.fromJson(e)),t==="overlap"&&(r=pA.fromJson(e)),t==="overunder"&&(r=gl.fromJson(e)),t==="placeholder"&&(r=ql.fromJson(e)),t==="prompt"&&(r=DA.fromJson(e)),t==="phantom"&&(r=_c.fromJson(e)),t==="sizeddelim"&&(r=wd.fromJson(e)),t==="spacing"&&(r=Vs.fromJson(e)),t==="subsup"&&(r=mu.fromJson(e)),t==="surd"&&(r=nA.fromJson(e)),t==="text"&&(r=oc.fromJson(e)),t==="tooltip"&&(r=sd.fromJson(e)),r||(console.assert(!t||["first","mbin","mrel","mclose","minner","mop","mopen","mord","mpunct","root","space"].includes(t),`MathLive 0.98.5: an unexpected atom type "${t}" was encountered. Add new atom constructors to \`fromJson()\` in "atom.ts"`),r=zr.fromJson(e));for(const n of Oc)e[n]&&r.setChildren(e[n],n);return e.verbatimLatex!==void 0&&(r.verbatimLatex=e.verbatimLatex),e.subsupPlacement&&(r.subsupPlacement=e.subsupPlacement),e.explicitSubsupPlacement&&(r.explicitSubsupPlacement=!0),e.isFunction&&(r.isFunction=!0),e.isExtensibleSymbol&&(r.isExtensibleSymbol=!0),e.skipBoundary&&(r.skipBoundary=!0),e.captureSelection&&(r.captureSelection=!0),r}function bf(e){if(e&&Array.isArray(e))return e.map(t=>t==="<null>"?null:typeof t=="object"&&"group"in t?{group:t.group.map(r=>mA(r))}:typeof t=="object"&&"atoms"in t?t.atoms.map(r=>mA(r)):t)}var Gu={main:["Main-Regular","ML__cmr"],"main-italic":["Main-Italic","ML__cmr ML__it"],"main-bold":["Main-Bold","ML__cmr ML__bold"],"main-bolditalic":["Main-BoldItalic","ML__cmr ML__bold ML__it"],normal:["Main-Regular","ML__cmr"],"normal-bold":["Main-Bold","ML__mathbf"],"normal-italic":["Math-Italic","ML__mathit"],"normal-bolditalic":["Math-BoldItalic","ML__mathbfit"],ams:["AMS-Regular","ML__ams"],"ams-bold":["AMS-Regular","ML__ams"],"ams-italic":["AMS-Regular","ML__ams"],"ams-bolditalic":["AMS-Regular","ML__ams"],"sans-serif":["SansSerif-Regular","ML__sans"],"sans-serif-bold":["SansSerif-Regular","ML__sans ML__bold"],"sans-serif-italic":["SansSerif-Regular","ML__sans"],"sans-serif-bolditalic":["SansSerif-Regular","ML__sans"],calligraphic:["Caligraphic-Regular","ML__cal"],"calligraphic-bold":["Caligraphic-Regular","ML__cal ML__bold"],"calligraphic-italic":["Caligraphic-Regular","ML__cal ML__it"],"calligraphic-bolditalic":["Caligraphic-Regular","ML__cal ML__bold ML__it"],script:["Script-Regular","ML__script"],"script-bold":["Script-Regular","ML__script ML__bold"],"script-italic":["Script-Regular","ML__script ML__it"],"script-bolditalic":["Script-Regular","ML__script ML__bold ML__it"],fraktur:["Fraktur-Regular","ML__frak"],"fraktur-bold":["Fraktur-Regular","ML__frak"],"fraktur-italic":["Fraktur-Regular","ML__frak"],"fraktur-bolditalic":["Fraktur-Regular","ML__frak"],monospace:["Typewriter-Regular","ML__tt"],"monospace-bold":["Typewriter-Regular","ML__tt ML__bold"],"monospace-italic":["Typewriter-Regular","ML__tt ML__it"],"monospace-bolditalic":["Typewriter-Regular","ML__tt ML__bold ML__it"],"double-struck":["AMS-Regular","ML__bb"],"double-struck-bold":["AMS-Regular","ML__bb"],"double-struck-italic":["AMS-Regular","ML__bb"],"double-struck-bolditalic":["AMS-Regular","ML__bb"]},xu={"double-struck":/^[A-Z ]$/,script:/^[A-Z ]$/,calligraphic:/^[\dA-Z ]$/,fraktur:/^[\dA-Za-z ]$|^[!"#$%&'()*+,\-./:;=?[]^]$/,monospace:/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/,"sans-serif":/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/},Cu=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,Bd=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,Vd=[/^[a-z]$/,/^[A-Z]$/,Cu,Bd],wf={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},Wd=class extends Ns{constructor(){super("math")}createAtom(e,t,r){var n,i,s,A;if(t===null)return new zr({type:"mord",mode:"math",command:e,value:e,style:r});const M=window.MathfieldElement.isFunction((n=t.command)!=null?n:e);if(t.definitionType==="symbol"){const X=new zr({type:(i=t.type)!=null?i:"mord",mode:"math",command:(s=t.command)!=null?s:e,value:String.fromCodePoint(t.codepoint),style:r});return M&&(X.isFunction=!0),e.startsWith("\\")&&(X.verbatimLatex=e),X}const z=new zr({type:"mord",mode:"math",command:(A=t.command)!=null?A:e,value:e,style:r});return M&&(z.isFunction=!0),e.startsWith("\\")&&(z.verbatimLatex=e),z}serialize(e,t){const r=m(e,E(f({},t),{defaultMode:"math"}));return r.length===0||t.defaultMode!=="text"?r:["$ ",...r," $"]}getFont(e,t){console.assert(t.variant!==void 0);let{variant:r}=t,{variantStyle:n}=t;r==="normal"&&!n&&/[\u00A3\u0131\u0237]/.test(e.value)&&(r="main",n="italic"),r==="normal"&&!n&&e.value.length===1&&Vd.forEach((M,z)=>{var X;M.test(e.value)&&wf[(X=t.letterShapeStyle)!=null?X:"tex"][z]==="it"&&(n="italic")}),n==="up"&&(n=void 0);const i=n?r+"-"+n:r;console.assert(Gu[i]!==void 0);const[s,A]=Gu[i];return xu[r]&&!xu[r].test(e.value)?(e.value=at(e.value,r,n),null):(Cu.test(e.value)&&(e.classes+=" lcGreek"),A&&(e.classes+=" "+A),s)}};function m(e,t){const{parent:r}=e[0],n=u(r);return Cl(e,"variant").map(i=>{const s=u(i[0]);let A="";s&&s!==n&&(A={calligraphic:"\\mathcal",fraktur:"\\mathfrak","double-struck":"\\mathbb",script:"\\mathscr",monospace:"\\mathtt","sans-serif":"\\mathsf",normal:"\\mathrm","normal-italic":"\\mathnormal","normal-bold":"\\mathbf","normal-bolditalic":"\\mathbfit",ams:"","ams-italic":"\\mathit","ams-bold":"\\mathbf","ams-bolditalic":"\\mathbfit",main:"","main-italic":"\\mathit","main-bold":"\\mathbf","main-bolditalic":"\\mathbfit"}[s],console.assert(A!==void 0));const M=Ba(i.map(z=>z._serialize(t)));return A?So(A,M):M})}function u(e){if(!e)return"";const{style:t}=e;if(t.variant===void 0)return"";let r=t.variant;return!["calligraphic","fraktur","double-struck","script","monospace","sans-serif"].includes(t.variant)&&t.variantStyle&&t.variantStyle!=="up"&&(r+="-"+t.variantStyle),r}new Wd;function y(e,t){return e.map(r=>r._serialize(t))}function v(e,t){return Cl(e,"fontShape").map(r=>{const n=y(r,t),{fontShape:i}=r[0].style;let s="";return i==="it"&&(s="\\textit"),i==="sl"&&(s="\\textsl"),i==="sc"&&(s="\\textsc"),i==="n"&&(s="\\textup"),!s&&i?`{${So("\\fontshape",i)}${Ba(n)}}`:s?So(s,Ba(n)):Ba(n)})}function re(e,t){return Cl(e,"fontSeries").map(r=>{const n=v(r,t),{fontSeries:i}=r[0].style;let s="";return i==="b"&&(s="\\textbf"),i==="l"&&(s="\\textlf"),i==="m"&&(s="\\textmd"),i&&!s?`{${So("\\fontseries",i)}${Ba(n)}}`:s?So(s,Ba(n)):Ba(n)})}function Fe(e,t){return Cl(e,"fontSize").map(r=>{var n,i;const s=re(r,t),A=(i=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(n=r[0].style.fontSize)!=null?n:""])!=null?i:"";return A?`${A} ${Ba(s)}`:Ba(s)})}function tt(e,t,r){return Cl(e,"fontFamily").map(n=>{var i,s;const A=Fe(n,t),M=(s={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(i=n[0].style.fontFamily)!=null?i:""])!=null?s:"";return M?`\\${M}{${Ba(A)}}`:n[0].style.fontFamily?`{\\fontfamily{${n[0].style.fontFamily}} ${Ba(A)}}`:r?`\\text{${Ba(A)}}`:Ba(A)})}var xt={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},Bt=class extends Ns{constructor(){super("text")}createAtom(e,t,r){return t&&t.definitionType==="symbol"?new oc(e,String.fromCodePoint(t.codepoint),r!=null?r:{}):null}serialize(e,t){return tt(e,E(f({},t),{defaultMode:"text"}),t.defaultMode!=="text")}getFont(e,t){var r,n,i,s,A;const{fontFamily:M}=t;if(xt[M]?e.classes+=" "+xt[M]:M&&e.setStyle("font-family",M),t.fontShape&&(e.classes+=" ",e.classes+=(r={it:"ML__it",sl:"ML__shape_sl",sc:"ML__shape_sc",ol:"ML__shape_ol"}[t.fontShape])!=null?r:""),t.fontSeries){const z=t.fontSeries.match(/(.?[lbm])?(.?[cx])?/);z&&(e.classes+=" ",e.classes+=(i={ul:"ML__series_ul",el:"ML__series_el",l:"ML__series_l",sl:"ML__series_sl",m:"",sb:"ML__series_sb",b:"ML__bold",eb:"ML__series_eb",ub:"ML__series_ub"}[(n=z[1])!=null?n:""])!=null?i:"",e.classes+=" ",e.classes+=(A={uc:"ML__series_uc",ec:"ML__series_ec",c:"ML__series_c",sc:"ML__series_sc",n:"",sx:"ML__series_sx",x:"ML__series_x",ex:"ML__series_ex",ux:"ML__series_ux"}[(s=z[2])!=null?s:""])!=null?A:"")}return"Main-Regular"}};new Bt;var nr=class extends Ns{constructor(){super("latex")}createAtom(e){return new Ls(e)}serialize(e,t){return e.filter(r=>r instanceof Ls&&!r.isSuggestion).map(r=>r.value)}getFont(){return null}};new nr;var mr={id:"dvorak",locale:"en",displayName:"Dvorak",virtualLayout:"dvorak",platform:"",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["x","X","\u2248","\u02DB"],KeyC:["j","J","\u2206","\xD4"],KeyD:["e","E","\xB4","\xB4"],KeyE:[".",">","\u2265","\u02D8"],KeyF:["u","U","\xA8","\xA8"],KeyG:["i","I","\u02C6","\u02C6"],KeyH:["d","D","\u2202","\xCE"],KeyI:["c","C","\xE7","\xC7"],KeyJ:["h","H","\u02D9","\xD3"],KeyK:["t","T","\u2020","\u02C7"],KeyL:["n","N","\u02DC","\u02DC"],KeyM:["m","M","\xB5","\xC2"],KeyN:["b","B","\u222B","\u0131"],KeyO:["r","R","\xAE","\u2030"],KeyP:["l","L","\xAC","\xD2"],KeyQ:["'",'"',"\xE6","\xC6"],KeyR:["p","P","\u03C0","\u220F"],KeyS:["o","O","\xF8","\xD8"],KeyT:["y","Y","\xA5","\xC1"],KeyU:["g","G","\xA9","\u02DD"],KeyV:["k","K","\u02DA","\uF8FF"],KeyW:[",","<","\u2264","\xAF"],KeyX:["q","Q","\u0153","\u0152"],KeyY:["f","F","\u0192","\xCF"],KeyZ:[";",":","\u2026","\xDA"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["[","{","\u201C","\u201D"],Equal:["]","}","\u2018","\u2019"],BracketLeft:["/","?","\xF7","\xBF"],BracketRight:["=","+","\u2260","\xB1"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:["s","S","\xDF","\xCD"],Quote:["-","_","\u2013","\u2014"],Backquote:["`","~","`","`"],Comma:["w","W","\u2211","\u201E"],Period:["v","V","\u221A","\u25CA"],Slash:["z","Z","\u03A9","\xB8"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},a={id:"apple.en-intl",displayName:"English (international)",virtualLayout:"qwerty",platform:"apple",locale:"en",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u0131"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\xCE"],KeyE:["e","E","\xB4","\xB4"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\u02DD"],KeyH:["h","H","\u02D9","\xD3"],KeyI:["i","I","\u02C6","\u02C6"],KeyJ:["j","J","\u2206","\xD4"],KeyK:["k","K","\u02DA","\uF8FF"],KeyL:["l","L","\xAC","\xD2"],KeyM:["m","M","\xB5","\xC2"],KeyN:["n","N","\u02DC","\u02DC"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE","\u2030"],KeyS:["s","S","\xDF","\xCD"],KeyT:["t","T","\u2020","\u02C7"],KeyU:["u","U","\xA8","\xA8"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\u02DB"],KeyY:["y","Y","\xA5","\xC1"],KeyZ:["z","Z","\u03A9","\xB8"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["-","_","\u2013","\u2014"],Equal:["=","+","\u2260","\xB1"],BracketLeft:["[","{","\u201C","\u201D"],BracketRight:["]","}","\u2018","\u2019"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:[";",":","\u2026","\xDA"],Quote:["'",'"',"\xE6","\xC6"],Backquote:["`","\u02DC","`","`"],Comma:[",","<","\u2264","\xAF"],Period:[".",">","\u2265","\u02D8"],Slash:["/","?","\xF7","\xBF"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},g={id:"windows.en-intl",displayName:"English (international)",platform:"windows",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","\xE1","\xC1"],KeyB:["b","B","",""],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\xE9","\xC9"],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","\xED","\xCD"],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","\xF8","\xD8"],KeyM:["m","M","\xB5",""],KeyN:["n","N","\xF1","\xD1"],KeyO:["o","O","\xF3","\xD3"],KeyP:["p","P","\xF6","\xD6"],KeyQ:["q","Q","\xE4","\xC4"],KeyR:["r","R","\xAE",""],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\xFE","\xDE"],KeyU:["u","U","\xFA","\xDA"],KeyV:["v","V","",""],KeyW:["w","W","\xE5","\xC5"],KeyX:["x","X","",""],KeyY:["y","Y","\xFC","\xDC"],KeyZ:["z","Z","\xE6","\xC6"],Digit1:["1","!","\xA1","\xB9"],Digit2:["2","@","\xB2",""],Digit3:["3","#","\xB3",""],Digit4:["4","$","\xA4","\xA3"],Digit5:["5","%","\u20AC",""],Digit6:["6","^","\xBC",""],Digit7:["7","&","\xBD",""],Digit8:["8","*","\xBE",""],Digit9:["9","(","\u2018",""],Digit0:["0",")","\u2019",""],Space:[" "," ","",""],Minus:["-","_","\xA5",""],Equal:["=","+","\xD7","\xF7"],BracketLeft:["[","{","\xAB",""],BracketRight:["]","}","\xBB",""],Backslash:["\\","|","\xAC","\xA6"],Semicolon:[";",":","\xB6","\xB0"],Quote:["'",'"',"\xB4","\xA8"],Backquote:["`","~","",""],Comma:[",","<","\xE7","\xC7"],Period:[".",">","",""],Slash:["/","?","\xBF",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["\\","|","",""]}},O={id:"linux.en",displayName:"English",platform:"linux",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","a","A"],KeyB:["b","B","b","B"],KeyC:["c","C","c","C"],KeyD:["d","D","d","D"],KeyE:["e","E","e","E"],KeyF:["f","F","f","F"],KeyG:["g","G","g","G"],KeyH:["h","H","h","H"],KeyI:["i","I","i","I"],KeyJ:["j","J","j","J"],KeyK:["k","K","k","K"],KeyL:["l","L","l","L"],KeyM:["m","M","m","M"],KeyN:["n","N","n","N"],KeyO:["o","O","o","O"],KeyP:["p","P","p","P"],KeyQ:["q","Q","q","Q"],KeyR:["r","R","r","R"],KeyS:["s","S","s","S"],KeyT:["t","T","t","T"],KeyU:["u","U","u","U"],KeyV:["v","V","v","V"],KeyW:["w","W","w","W"],KeyX:["x","X","x","X"],KeyY:["y","Y","y","Y"],KeyZ:["z","Z","z","Z"],Digit1:["1","!","1","!"],Digit2:["2","@","2","@"],Digit3:["3","#","3","#"],Digit4:["4","$","4","$"],Digit5:["5","%","5","%"],Digit6:["6","^","6","^"],Digit7:["7","&","7","&"],Digit8:["8","*","8","*"],Digit9:["9","(","9","("],Digit0:["0",")","0",")"],Space:[" "," "," "," "],Minus:["-","_","-","_"],Equal:["=","+","=","+"],BracketLeft:["[","{","[","{"],BracketRight:["]","}","]","}"],Backslash:["\\","|","\\","|"],Semicolon:[";",":",";",":"],Quote:["'",'"',"'",'"'],Backquote:["`","~","`","~"],Comma:[",","<",",","<"],Period:[".",">",".",">"],Slash:["/","?","/","?"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}},oe={id:"apple.french",locale:"fr",displayName:"French",platform:"apple",virtualLayout:"azerty",score:0,mapping:{KeyA:["q","Q","\u2021","\u03A9"],KeyB:["b","B","\xDF","\u222B"],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\xEA","\xCA"],KeyF:["f","F","\u0192","\xB7"],KeyG:["g","G","\uFB01","\uFB02"],KeyH:["h","H","\xCC","\xCE"],KeyI:["i","I","\xEE","\xEF"],KeyJ:["j","J","\xCF","\xCD"],KeyK:["k","K","\xC8","\xCB"],KeyL:["l","L","\xAC","|"],KeyM:[",","?","\u221E","\xBF"],KeyN:["n","N","~","\u0131"],KeyO:["o","O","\u0153","\u0152"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xAE","\u201A"],KeyS:["s","S","\xD2","\u2211"],KeyT:["t","T","\u2020","\u2122"],KeyU:["u","U","\xBA","\xAA"],KeyV:["v","V","\u25CA","\u221A"],KeyW:["z","Z","\xC2","\xC5"],KeyX:["x","X","\u2248","\u2044"],KeyY:["y","Y","\xDA","\u0178"],KeyZ:["w","W","\u2039","\u203A"],Digit1:["&","1","\uF8FF","\xB4"],Digit2:["\xE9","2","\xEB","\u201E"],Digit3:['"',"3","\u201C","\u201D"],Digit4:["'","4","\u2018","\u2019"],Digit5:["(","5","{","["],Digit6:["\xA7","6","\xB6","\xE5"],Digit7:["\xE8","7","\xAB","\xBB"],Digit8:["!","8","\xA1","\xDB"],Digit9:["\xE7","9","\xC7","\xC1"],Digit0:["\xE0","0","\xF8","\xD8"],Space:[" "," "," "," "],Minus:[")","\xB0","}","]"],Equal:["-","_","\u2014","\u2013"],BracketLeft:["^","\xA8","\xF4","\xD4"],BracketRight:["$","*","\u20AC","\xA5"],Backslash:["`","\xA3","@","#"],Semicolon:["m","M","\xB5","\xD3"],Quote:["\xF9","%","\xD9","\u2030"],Backquote:["<",">","\u2264","\u2265"],Comma:[";",".","\u2026","\u2022"],Period:[":","/","\xF7","\\"],Slash:["=","+","\u2260","\xB1"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",".",",","."],IntlBackslash:["@","#","\u2022","\u0178"],NumpadEqual:["=","=","=","="]}},Ie={id:"windows.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"windows",score:0,mapping:{KeyA:["q","Q","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:[",","?","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["a","A","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["z","Z","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["w","W","",""],Digit1:["&","1","",""],Digit2:["\xE9","2","~",""],Digit3:['"',"3","#",""],Digit4:["'","4","{",""],Digit5:["(","5","[",""],Digit6:["-","6","|",""],Digit7:["\xE8","7","`",""],Digit8:["_","8","\\",""],Digit9:["\xE7","9","^",""],Digit0:["\xE0","0","@",""],Space:[" "," ","",""],Minus:[")","\xB0","]",""],Equal:["=","+","}",""],BracketLeft:["^","\xA8","",""],BracketRight:["$","\xA3","\xA4",""],Backslash:["*","\xB5","",""],Semicolon:["m","M","",""],Quote:["\xF9","%","",""],Backquote:["\xB2","","",""],Comma:[";",".","",""],Period:[":","/","",""],Slash:["!","\xA7","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},Ve={id:"linux.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"linux",score:0,mapping:{KeyA:["q","Q","@","\u03A9"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:[",","?","\u0301","\u030B"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["z","Z","\xAB","<"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["w","W","\u0142","\u0141"],Digit1:["&","1","\xB9","\xA1"],Digit2:["\xE9","2","~","\u215B"],Digit3:['"',"3","#","\xA3"],Digit4:["'","4","{","$"],Digit5:["(","5","[","\u215C"],Digit6:["-","6","|","\u215D"],Digit7:["\xE8","7","`","\u215E"],Digit8:["_","8","\\","\u2122"],Digit9:["\xE7","9","^","\xB1"],Digit0:["\xE0","0","@","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:[")","\xB0","]","\xBF"],Equal:["=","+","}","\u0328"],BracketLeft:["\u0302","\u0308","\u0308","\u030A"],BracketRight:["$","\xA3","\xA4","\u0304"],Backslash:["*","\xB5","\u0300","\u0306"],Semicolon:["m","M","\xB5","\xBA"],Quote:["\xF9","%","\u0302","\u030C"],Backquote:["\xB2","~","\xAC","\xAC"],Comma:[";",".","\u2500","\xD7"],Period:[":","/","\xB7","\xF7"],Slash:["!","\xA7","\u0323","\u0307"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"]}},ze={id:"apple.german",locale:"de",displayName:"German",virtualLayout:"qwertz",platform:"apple",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u2039"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\u2122"],KeyE:["e","E","\u20AC","\u2030"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\xCC"],KeyH:["h","H","\xAA","\xD3"],KeyI:["i","I","\u2044","\xDB"],KeyJ:["j","J","\xBA","\u0131"],KeyK:["k","K","\u2206","\u02C6"],KeyL:["l","L","@","\uFB02"],KeyM:["m","M","\xB5","\u02D8"],KeyN:["n","N","~","\u203A"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\xAB","\xBB"],KeyR:["r","R","\xAE","\xB8"],KeyS:["s","S","\u201A","\xCD"],KeyT:["t","T","\u2020","\u02DD"],KeyU:["u","U","\xA8","\xC1"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\xD9"],KeyY:["z","Z","\u03A9","\u02C7"],KeyZ:["y","Y","\xA5","\u2021"],Digit1:["1","!","\xA1","\xAC"],Digit2:["2",'"',"\u201C","\u201D"],Digit3:["3","\xA7","\xB6","#"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","[","\uFB01"],Digit6:["6","&","]","^"],Digit7:["7","/","|","\\"],Digit8:["8","(","{","\u02DC"],Digit9:["9",")","}","\xB7"],Digit0:["0","=","\u2260","\xAF"],Space:[" "," "," "," "],Minus:["\xDF","?","\xBF","\u02D9"],Equal:["\xB4","`","'","\u02DA"],BracketLeft:["\xFC","\xDC","\u2022","\xB0"],BracketRight:["+","*","\xB1","\uF8FF"],Backslash:["#","'","\u2018","\u2019"],Semicolon:["\xF6","\xD6","\u0153","\u0152"],Quote:["\xE4","\xC4","\xE6","\xC6"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u221E","\u02DB"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",",",".","."],IntlBackslash:["^","\xB0","\u201E","\u201C"],NumpadEqual:["=","=","=","="]}},Je={id:"windows.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","\xB5",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","@",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["z","Z","",""],KeyZ:["y","Y","",""],Digit1:["1","!","",""],Digit2:["2",'"',"\xB2",""],Digit3:["3","\xA7","\xB3",""],Digit4:["4","$","",""],Digit5:["5","%","",""],Digit6:["6","&","",""],Digit7:["7","/","{",""],Digit8:["8","(","[",""],Digit9:["9",")","]",""],Digit0:["0","=","}",""],Space:[" "," ","",""],Minus:["\xDF","?","\\","\u1E9E"],Equal:["\xB4","`","",""],BracketLeft:["\xFC","\xDC","",""],BracketRight:["+","*","~",""],Backslash:["#","'","",""],Semicolon:["\xF6","\xD6","",""],Quote:["\xE4","\xC4","",""],Backquote:["^","\xB0","",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","|",""]}},ct={id:"linux.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201C","\u2018"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0323","\u0307"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","\u201D","\u2019"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\u017F","\u1E9E"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201E","\u201A"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xAB","\u2039"],KeyY:["z","Z","\u2190","\xA5"],KeyZ:["y","Y","\xBB","\u203A"],Digit1:["1","!","\xB9","\xA1"],Digit2:["2",'"',"\xB2","\u215B"],Digit3:["3","\xA7","\xB3","\xA3"],Digit4:["4","$","\xBC","\xA4"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["\xDF","?","\\","\xBF"],Equal:["\u0301","\u0300","\u0327","\u0328"],BracketLeft:["\xFC","\xDC","\u0308","\u030A"],BracketRight:["+","*","~","\xAF"],Backslash:["#","'","\u2019","\u0306"],Semicolon:["\xF6","\xD6","\u030B","\u0323"],Quote:["\xE4","\xC4","\u0302","\u030C"],Backquote:["\u0302","\xB0","\u2032","\u2033"],Comma:[",",";","\xB7","\xD7"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],PrintScreen:["","","",""],PageUp:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",",","",","],IntlBackslash:["<",">","|","\u0331"],AltRight:["\r","\r","\r","\r"],MetaRight:[".",".",".","."]}},mt={id:"apple.spanish",locale:"es",displayName:"Spanish ISO",platform:"apple",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\xDF",""],KeyC:["c","C","\xA9"," "],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0192","\uFB01"],KeyG:["g","G","\uF8FF","\uFB02"],KeyH:["h","H","\u2122"," "],KeyI:["i","I"," "," "],KeyJ:["j","J","\xB6","\xAF"],KeyK:["k","K","\xA7","\u02C7"],KeyL:["l","L"," ","\u02D8"],KeyM:["m","M","\xB5","\u02DA"],KeyN:["n","N"," ","\u02D9"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE"," "],KeyS:["s","S","\u222B"," "],KeyT:["t","T","\u2020","\u2021"],KeyU:["u","U"," "," "],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\xE6","\xC6"],KeyX:["x","X","\u2211","\u203A"],KeyY:["y","Y","\xA5"," "],KeyZ:["z","Z","\u03A9","\u2039"],Digit1:["1","!","|","\u0131"],Digit2:["2",'"',"@","\u02DD"],Digit3:["3","\xB7","#","\u2022"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","\u221E","\u2030"],Digit6:["6","&","\xAC"," "],Digit7:["7","/","\xF7","\u2044"],Digit8:["8","(","\u201C","\u2018"],Digit9:["9",")","\u201D","\u2019"],Digit0:["0","=","\u2260","\u2248"],Space:[" "," "," "," "],Minus:["'","?","\xB4","\xB8"],Equal:["\xA1","\xBF","\u201A","\u02DB"],BracketLeft:["`","^","[","\u02C6"],BracketRight:["+","*","]","\xB1"],Backslash:["\xE7","\xC7","}","\xBB"],Semicolon:["\xF1","\xD1","~","\u02DC"],Quote:["\xB4","\xA8","{","\xAB"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u201E",""],Period:[".",":","\u2026","\u2026"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[",",",",",",","],IntlBackslash:["\xBA","\xAA","\\","\xB0"]}},Ot={id:"windows.spanish",locale:"es",displayName:"Spanish",platform:"windows",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["z","Z","",""],Digit1:["1","!","|",""],Digit2:["2",'"',"@",""],Digit3:["3","\xB7","#",""],Digit4:["4","$","~",""],Digit5:["5","%","\u20AC",""],Digit6:["6","&","\xAC",""],Digit7:["7","/","",""],Digit8:["8","(","",""],Digit9:["9",")","",""],Digit0:["0","=","",""],Space:[" "," ","",""],Minus:["'","?","",""],Equal:["\xA1","\xBF","",""],BracketLeft:["`","^","[",""],BracketRight:["+","*","]",""],Backslash:["\xE7","\xC7","}",""],Semicolon:["\xF1","\xD1","",""],Quote:["\xB4","\xA8","{",""],Backquote:["\xBA","\xAA","\\",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},zt={id:"linux.spanish",locale:"es",displayName:"Spanish",platform:"linux",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["z","Z","\xAB","<"],Digit1:["1","!","|","\xA1"],Digit2:["2",'"',"@","\u215B"],Digit3:["3","\xB7","#","\xA3"],Digit4:["4","$","~","$"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["'","?","\\","\xBF"],Equal:["\xA1","\xBF","\u0303","~"],BracketLeft:["\u0300","\u0302","[","\u030A"],BracketRight:["+","*","]","\u0304"],Backslash:["\xE7","\xC7","}","\u0306"],Semicolon:["\xF1","\xD1","~","\u030B"],Quote:["\u0301","\u0308","{","{"],Backquote:["\xBA","\xAA","\\","\\"],Comma:[",",";","\u2500","\xD7"],Period:[".",":","\xB7","\xF7"],Slash:["-","_","\u0323","\u0307"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadEnter:["\r","\r","\r","\r"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}};function dr(e){const t=e.split("+"),r={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:t.pop()};return t.includes("shift")&&(r.shift=!0),t.includes("alt")&&(r.alt=!0),t.includes("ctrl")&&(r.ctrl=!0),t.includes("cmd")&&(r.cmd=!0),t.includes("win")&&(r.win=!0),t.includes("meta")&&(r.meta=!0),r}function Wt(e){let t="";return e.shift&&(t+="shift+"),e.alt&&(t+="alt+"),e.ctrl&&(t+="ctrl+"),e.cmd&&(t+="cmd+"),e.win&&(t+="win+"),e.meta&&(t+="meta+"),t+e.key}var kr={enter:"[Enter]",escape:"[Escape]",backspace:"[Backspace]",tab:"[Tab]",space:"[Space]",pausebreak:"[Pause]",insert:"[Insert]",home:"[Home]",pageup:"[PageUp]",delete:"[Delete]",end:"[End]",pagedown:"[PageDown]",right:"[ArrowRight]",left:"[ArrowLeft]",down:"[ArrowDown]",up:"[ArrowUp]",numpad0:"[Numpad0]",numpad1:"[Numpad1]",numpad2:"[Numpad2]",numpad3:"[Numpad3]",numpad4:"[Numpad4]",numpad5:"[Numpad5]",numpad6:"[Numpad6]",numpad7:"[Numpad7]",numpad8:"[Numpad8]",numpad9:"[Numpad9]",numpad_divide:"[NumpadDivide]",numpad_multiply:"[NumpadMultiply]",numpad_subtract:"[NumpadSubtract]",numpad_add:"[NumpadAdd]",numpad_decimal:"[NumpadDecimal]",numpad_separator:"[NumpadComma]",capslock:"[Capslock]",f1:"[F1]",f2:"[F2]",f3:"[F3]",f4:"[F4]",f5:"[F5]",f6:"[F6]",f7:"[F7]",f8:"[F8]",f9:"[F9]",f10:"[F10]",f11:"[F11]",f12:"[F12]",f13:"[F13]",f14:"[F14]",f15:"[F15]",f16:"[F16]",f17:"[F17]",f18:"[F18]",f19:"[F19]"},Dr=[],Gt;function tr(){switch(J()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function Tr(e){(!e.platform||e.platform===tr())&&Dr.push(e)}function sn(e,t){var r;const n={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:""};if(!e)return n;for(const[i,s]of Object.entries(t.mapping)){if(s[0]===e)return n.key=`[${i}]`,n;if(s[1]===e)return n.shift=!0,n.key=`[${i}]`,n;if(s[2]===e)return n.alt=!0,n.key=`[${i}]`,n;if(s[3]===e)return n.shift=!0,n.alt=!0,n.key=`[${i}]`,n}return n.key=(r=kr[e])!=null?r:"",n}function un(e){if(e.code)return e;const t=Object.entries(Zi().mapping);let r=!1,n=!1,i="";for(let s=0;s<4;s++){for(const[A,M]of t)if(M[s]===e.key){i=A,s===3?(r=!0,n=!0):s===2?r=!0:s===1&&(n=!0);break}if(i)break}return new KeyboardEvent(e.type,E(f({},e),{altKey:r,shiftKey:n,code:i}))}function li(e){var t,r;if(!e||e.key==="Unidentified"||e.key==="Dead")return;const n=e.shiftKey&&e.altKey?3:e.altKey?2:e.shiftKey?1:0;for(const i of Dr)((t=i.mapping[e.code])==null?void 0:t[n])===e.key?i.score+=1:(r=i.mapping[e.code])!=null&&r[n]&&(i.score=0);Dr.sort((i,s)=>s.score-i.score)}function Gn(e){Gt=Dr.find(t=>e.startsWith(t.locale))}function Zi(){return Gt!=null?Gt:Dr[0]}function ii(){switch(tr()){case"apple":return a;case"windows":return g;case"linux":return O}return a}switch(tr()){case"apple":Tr(a),Tr(oe),Tr(mt),Tr(ze);break;case"windows":Tr(g),Tr(Ie),Tr(Ot),Tr(Je);break;case"linux":Tr(O),Tr(Ve),Tr(zt),Tr(ct);break}Tr(mr);function Ha(e){var t;const r=/macos|ios/.test(J()),n=e.split("+");let i="";for(const s of n)i&&(i+=r?"\u2009":'<span class="ML__shortcut-join">+</span>'),s.startsWith("[Key")?i+=s.slice(4,5):s.startsWith("Key")?i+=s.slice(3,4):s.startsWith("[Digit")?i+=s.slice(6,7):s.startsWith("Digit")?i+=s.slice(5,6):i+=(t={cmd:"\u2318",meta:r?"\u2318":"Ctrl",shift:r?"\u21E7":"Shift",alt:r?"\u2325":"Alt",ctrl:r?"\u2303":"Ctrl","\n":r?"\u23CE":"Return","[return]":r?"\u23CE":"Return","[enter]":r?"\u2324":"Enter","[tab]":r?"\u21E5":"Tab","[escape]":"Esc","[backspace]":r?"\u232B":"Backspace","[delete]":r?"\u2326":"Del","[pageup]":r?"\u21DE":"Page Up","[pagedown]":r?"\u21DF":"Page Down","[home]":r?"\u2912":"Home","[end]":r?"\u2913":"End","[space]":"Space","[equal]":"=","[minus]":"-","[comma]":",","[slash]":"/","[backslash]":"\\","[bracketleft]":"[","[bracketright]":"]",semicolon:";",period:".",comma:",",minus:"-",equal:"=",quote:"'",backslash:"\\",intlbackslash:"\\",backquote:"`",slash:"/",numpadmultiply:"* &#128290;",numpaddivide:"/ &#128290;",numpadsubtract:"- &#128290;",numpadadd:"+ &#128290;",numpaddecimal:". &#128290;",numpadcomma:", &#128290;",help:"help",left:"\u21E0",up:"\u21E1",right:"\u21E2",down:"\u21E3","[arrowleft]":"\u21E0","[arrowup]":"\u21E1","[arrowright]":"\u21E2","[arrowdown]":"\u21E3"}[s.toLowerCase()])!=null?t:s.toUpperCase();return i}function qa(e){if(e instanceof MouseEvent||e instanceof PointerEvent)return{x:e.clientX,y:e.clientY};if(e instanceof TouchEvent){const t=[...e.touches].reduce((n,i)=>({x:n.x+i.clientX,y:n.y+i.clientY}),{x:0,y:0}),r=e.touches.length;return{x:t.x/r,y:t.y/r}}}function Ea(e){const t={alt:!1,control:!1,shift:!1,meta:!1};return(e instanceof MouseEvent||e instanceof PointerEvent||e instanceof TouchEvent||e instanceof KeyboardEvent)&&(e.altKey&&(t.alt=!0),e.ctrlKey&&(t.control=!0),e.metaKey&&(t.meta=!0),e.shiftKey&&(t.shift=!0)),t}function Ma(e,t){return!e&&t||e&&!t?!1:!e||!t?!0:e.alt===t.alt&&e.control===t.control&&e.shift===t.shift&&e.meta===t.meta}var xo=new Set(["Backquote","Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Minus","Equal","IntlYen","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Backslash","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","IntlBackslash","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","IntlRo","Space","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9","NumpadAdd","NumpadComma","NumpadDecimal","NumpadDivide","NumpadEqual","NumpadHash","NumpadMultiply","NumpadParenLeft","NumpadParenRight","NumpadStar","NumpadSubstract"]);function Wa(e){return e.ctrlKey||e.metaKey||["Dead","Process"].includes(e.key)?!1:e.code===""?!0:xo.has(e.code)}function ca(){var e;let t=document.activeElement;for(;(e=t==null?void 0:t.shadowRoot)!=null&&e.activeElement;)t=t.shadowRoot.activeElement;return t}var Co=class qu{static get scrim(){return qu._scrim||(qu._scrim=new qu),qu._scrim}static open(t){qu.scrim.open(t)}static close(){qu.scrim.close()}static get state(){return qu.scrim.state}static get element(){return qu.scrim.element}constructor(t){var r,n;this.lightDismiss=(r=t==null?void 0:t.lightDismiss)!=null?r:!0,this.translucent=(n=t==null?void 0:t.translucent)!=null?n:!1,this.state="closed"}get element(){if(this._element)return this._element;const t=document.createElement("div");return t.setAttribute("role","presentation"),t.style.position="fixed",t.style.contain="content",t.style.top="0",t.style.left="0",t.style.right="0",t.style.bottom="0",t.style.zIndex="var(--scrim-zindex, 10099)",t.style.outline="none",this.translucent?(t.style.background="rgba(255, 255, 255, .2)",t.style.backdropFilter="contrast(40%)"):t.style.background="transparent",this._element=t,t}open(t){var r;if(this.state!=="closed")return;this.state="opening",this.onDismiss=t==null?void 0:t.onDismiss,this.savedActiveElement=ca();const{element:n}=this;((r=t==null?void 0:t.root)!=null?r:document.body).appendChild(n),n.addEventListener("click",this),document.addEventListener("touchmove",this,!1),document.addEventListener("scroll",this,!1);const i=window.innerWidth-document.documentElement.clientWidth;this.savedMarginRight=document.body.style.marginRight,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden";const s=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${s+i}px`,t!=null&&t.child&&n.append(t.child),this.state="open"}close(){var t,r,n,i;if(this.state!=="open"){console.assert(this.element.parentElement!==null);return}this.state="closing",typeof this.onDismiss=="function"&&this.onDismiss(),this.onDismiss=void 0;const{element:s}=this;s.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),s.remove(),document.body.style.overflow=(t=this.savedOverflow)!=null?t:"",document.body.style.marginRight=(r=this.savedMarginRight)!=null?r:"",ca()!==this.savedActiveElement&&((i=(n=this.savedActiveElement)==null?void 0:n.focus)==null||i.call(n)),s.innerHTML="",this.state="closed"}handleEvent(t){this.lightDismiss&&(t.target===this._element&&t.type==="click"?(this.close(),t.preventDefault(),t.stopPropagation()):t.target===document&&(t.type==="touchmove"||t.type==="scroll")&&(this.close(),t.preventDefault(),t.stopPropagation()))}};function Fc(e,t,r){let n=null,i=null,s=!1,A=!1,M=!1;const z=new AbortController,X=z.signal;return e.addEventListener("keydown",ue=>{if(s||ue.key==="Process"||ue.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(ue.code)){n=null;return}n=ue,i=null,r.onKeystroke(ue)?e.textContent="":n=null},{capture:!0,signal:X}),e.addEventListener("keypress",ue=>{s||(n&&i&&r.onKeystroke(n),i=ue)},{capture:!0,signal:X}),e.addEventListener("compositionstart",ue=>{e.textContent="",s=!0,r.onCompositionStart(ue.data)},{capture:!0,signal:X}),e.addEventListener("compositionupdate",ue=>{s&&r.onCompositionUpdate(ue.data)},{capture:!0,signal:X}),e.addEventListener("compositionend",ue=>{e.textContent="",s&&(s=!1,r.onCompositionEnd(ue.data))},{capture:!0,signal:X}),e.addEventListener("beforeinput",ue=>ue.stopImmediatePropagation(),{signal:X}),e.addEventListener("input",ue=>{var Ke;if(!s&&(e.textContent="",ue.inputType!=="insertCompositionText")){if(ue.inputType==="insertFromPaste"){ue.preventDefault(),ue.stopPropagation();return}r.onInput((Ke=ue.data)!=null?Ke:""),ue.preventDefault(),ue.stopPropagation()}},{signal:X}),e.addEventListener("paste",ue=>{e.focus({preventScroll:!0}),e.textContent="",r.onPaste(ue)||ue.preventDefault(),ue.stopImmediatePropagation()},{signal:X}),e.addEventListener("cut",ue=>r.onCut(ue),{capture:!0,signal:X}),e.addEventListener("copy",ue=>r.onCopy(ue),{capture:!0,signal:X}),e.addEventListener("blur",ue=>{var Ke,ft;if(((ft=(Ke=ue.relatedTarget)==null?void 0:Ke._mathfield)==null?void 0:ft.element)===t){e.focus({preventScroll:!0}),ue.preventDefault(),ue.stopPropagation();return}const Ft=Co.state;if(Ft==="open"||Ft==="opening"){ue.preventDefault(),ue.stopPropagation();return}if(ue.relatedTarget===ue.target.getRootNode().host){ue.preventDefault(),ue.stopPropagation();return}M||A||(M=!0,n=null,i=null,r.onBlur(),M=!1)},{capture:!0,signal:X}),e.addEventListener("focus",ue=>{M||A||(A=!0,r.onFocus(),A=!1)},{capture:!0,signal:X}),{dispose:()=>z.abort(),cancelComposition:()=>{s&&(e.blur(),requestAnimationFrame(()=>e.focus({preventScroll:!0})))},blur:()=>{typeof e.blur=="function"&&e.blur()},focus:()=>{!A&&typeof e.focus=="function"&&e.focus({preventScroll:!0})},hasFocus:()=>ca()===e,setAriaLabel:ue=>e.setAttribute("aria-label",ue),setValue:ue=>{var Ke;e.textContent=ue,e.style.left="-1000px",(Ke=window.getSelection())==null||Ke.selectAllChildren(e)},moveTo:(ue,Ke)=>{e.style.top=`${Ke}px`,e.style.left=`${ue}px`}}}function ws(e){var t;if(!e||!Wa(e))return"";let r;return e.key==="Unidentified"&&e.target&&(r=e.target.value),r=(t=r!=null?r:e.key)!=null?t:e.code,/^(Dead|Return|Enter|Tab|Escape|Delete|PageUp|PageDown|Home|End|Help|ArrowLeft|ArrowRight|ArrowUp|ArrowDown)$/.test(r)&&(r=""),r}function fc(e){e=un(e);const t=[];return e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),e.altKey&&t.push("alt"),e.shiftKey&&t.push("shift"),t.length===0?`[${e.code}]`:(t.push(`[${e.code}]`),t.join("+"))}function Yo(e){if(N()){const t=J(),r=e.startsWith("!"),n=e.endsWith(t);if(r&&!n||!r&&n)return!0}return e==="!other"?!1:e==="other"}function Hc(e,t,r){if(e.length===0)return"";const n=Wt(dr(fc(r))),i=Wt({key:r.key,shift:r.shiftKey,alt:r.altKey,ctrl:r.ctrlKey,meta:r.metaKey||r.ctrlKey&&/macos|ios/.test(J()),cmd:!1,win:!1});for(let s=e.length-1;s>=0;s--)if((e[s].key===n||e[s].key===i)&&(!e[s].ifMode||e[s].ifMode===t))return e[s].command;return""}function Ic(e){let t=e;return S(t)&&(t=t.length>0?t[0]+"("+t.slice(1).join("")+")":""),t}function Sl(e,t){let r=[];if(typeof t=="string"){const s=Ts[t];S(s)?r=s.slice():s&&r.push(s)}const n=Ic(t),i=new RegExp("^"+n.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const s of e)i.test(Ic(s.command))&&r.push(s.key);return r.map(Ha)}function Rl(e,t){if(e.ifPlatform&&!/^!?(macos|windows|android|ios|chromeos|other)$/.test(e.ifPlatform))throw new Error(`Unexpected platform "${e.ifPlatform}" for keybinding ${e.key}`);if(e.ifLayout!==void 0&&(t.score===0||!e.ifLayout.includes(t.id)))return;const r=dr(e.key);let n=e.ifPlatform;if(r.cmd){if(n&&n!=="macos"&&n!=="ios")throw new Error('Unexpected "cmd" modifier with platform "'+n+`"
"cmd" modifier can only be used with macOS or iOS platform.`);n||(n=J()==="ios"?"ios":"macos"),r.win=!1,r.cmd=!1,r.meta=!0}if(r.win){if(n&&n!=="windows")throw new Error('Unexpected "win" modifier with platform "'+n+`"
"win" modifier can only be used with Windows platform.`);n="windows",r.win=!1,r.cmd=!1,r.meta=!0}if(n&&!Yo(n))return;if(/^\[.+\]$/.test(r.key))return E(f({},e),{key:Wt(r)});const i=sn(r.key,t);if(!i)return E(f({},e),{key:Wt(r)});if(i.shift&&r.shift||i.alt&&r.alt)throw new Error(`The keybinding ${e.key} (${Ql(e.command)}) is conflicting with the key combination ${Wt(i)} using the ${t.displayName} keyboard layout`);return i.shift=i.shift||r.shift,i.alt=i.alt||r.alt,i.meta=r.meta,i.ctrl=r.ctrl,E(f({},e),{key:Wt(i)})}function Ql(e){if(Array.isArray(e)){const t=[...e];return t.shift()+"("+t.map(r=>typeof r=="string"?`"${r}"`:r.toString()).join(", ")+")"}return e}function iA(e,t){const r=[],n=[];for(const i of e)try{const s=Rl(i,t);if(!s)continue;const A=n.find(M=>M.key===s.key&&M.ifMode===s.ifMode);if(A)throw new Error(`Ambiguous key binding ${i.key} (${Ql(i.command)}) matches ${A.key} (${Ql(A.command)}) with the ${t.displayName} keyboard layout`);n.push(s)}catch(s){s instanceof Error&&r.push(s.message)}return[n,r]}var OA=class extends aa{constructor(){super("latex")}createAtom(e){return new Ls(e)}onPaste(e,t){if(!t)return!1;const r=typeof t=="string"?t:t.getData("application/x-latex")||t.getData("text/plain");return r&&e.model.contentWillChange({inputType:"insertFromPaste",data:r})?(e.stopCoalescingUndo(),e.stopRecording(),this.insert(e.model,r)&&(e.startRecording(),e.snapshot("paste"),e.model.contentDidChange({inputType:"insertFromPaste"}),xs(e)),e.startRecording(),!0):!1}insert(e,t,r){if(!e.contentWillChange({data:t,inputType:"insertText"}))return!1;r||(r={}),r.insertionMode||(r.insertionMode="replaceSelection"),r.selectionMode||(r.selectionMode="placeholder");const{silenceNotifications:n}=e;r.silenceNotifications&&(e.silenceNotifications=!0);const i=e.silenceNotifications;e.silenceNotifications=!0,r.insertionMode==="replaceSelection"&&!e.selectionIsCollapsed?e.deleteAtoms(Is(e.selection)):r.insertionMode==="replaceAll"?(e.root.setChildren([],"body"),e.position=0):r.insertionMode==="insertBefore"?e.collapseSelection("backward"):r.insertionMode==="insertAfter"&&e.collapseSelection("forward");const s=[];for(const z of t)k.test(z)&&s.push(new Ls(z));let A=e.at(e.position);if(A instanceof yu&&(A=A.lastChild),!(A.parent instanceof yu)){const z=new yu("");A.parent.addChildAfter(z,A),A=z.firstChild}const M=A.parent.addChildrenAfter(s,A);return e.silenceNotifications=i,r.selectionMode==="before"||(r.selectionMode==="item"?e.setSelection(e.anchor,e.offsetOf(M)):M&&(e.position=e.offsetOf(M))),e.contentDidChange({data:t,inputType:"insertText"}),e.silenceNotifications=n,!0}};function El(e){return e.atoms.find(t=>t.type==="latexgroup")}function jc(e){var t,r;const n=e.atoms.find(i=>i.type==="latexgroup");return n?(r=(t=n.body)==null?void 0:t.filter(i=>i.type==="latex"))!=null?r:[]:[]}function Bu(e,t){var r;let n=0,i=!1;const s=Number.isFinite(t==null?void 0:t.before)?(r=t==null?void 0:t.before)!=null?r:0:e.lastOffset;for(;n<=s&&!i;){const z=e.at(n);i=z instanceof Ls&&z.isSuggestion,i||n++}if(!i)return[void 0,void 0];let A=n,M=!1;for(;A<=s&&!M;){const z=e.at(A);M=!(z instanceof Ls&&z.isSuggestion),M||A++}return[n-1,A-1]}new OA;function iu(e){const t=jc(e.model).filter(r=>r.isSuggestion);if(t.length!==0){e.model.position=e.model.offsetOf(t[0].leftSibling);for(const r of t)r.parent.removeChild(r)}}function aA(e,t){var r;const{model:n}=e;iu(e);for(const ue of jc(n))ue.isError=!1;if(!n.selectionIsCollapsed||e.options.popoverPolicy==="off"){gA(e);return}const i=[];let s=n.at(n.position);for(;s&&s instanceof Ls&&/^[a-zA-Z\*]$/.test(s.value);)s=s.leftSibling;if(s&&s instanceof Ls&&s.value==="\\")for(i.push(s),s=s.rightSibling;s&&s instanceof Ls&&/^[a-zA-Z\*]$/.test(s.value);)i.push(s),s=s.rightSibling;const A=i.map(ue=>ue.value).join(""),M=ne(e,A);if(M.length===0){if(/^\\[a-zA-Z\*]+$/.test(A))for(const ue of i)ue.isError=!0;gA(e);return}const z=(r=t==null?void 0:t.atIndex)!=null?r:0;e.suggestionIndex=z<0?M.length-1:z%M.length;const X=M[e.suggestionIndex];if(X!==A){const ue=i[i.length-1];ue.parent.addChildrenAfter([...X.slice(A.length-X.length)].map(Ke=>new Ls(Ke,{isSuggestion:!0})),ue),TA(e,{interactive:!0})}Ed(e,M)}function Ks(e){const[t,r]=Bu(e,{before:e.position});if(t===void 0||r===void 0)return!1;let n=!1;return e.getAtoms([t,r]).forEach(i=>{i.isSuggestion&&(i.isSuggestion=!1,n=!0)}),n}function Su(e,t="accept",r){var n,i;gA(e);const s=El(e.model);if(!s)return!1;if(t==="accept-suggestion"||t==="accept-all"){const X=jc(e.model).filter(ue=>ue.isSuggestion);if(X.length!==0){for(const ue of X)ue.isSuggestion=!1;e.model.position=e.model.offsetOf(X[X.length-1])}if(t==="accept-suggestion")return X.length!==0}const M=jc(e.model).filter(X=>!X.isSuggestion).map(X=>X.value).join(""),z=s.leftSibling;return s.parent.removeChild(s),e.model.position=e.model.offsetOf(z),e.switchMode((n=r==null?void 0:r.mode)!=null?n:"math"),t==="reject"||(aa.insert(e.model,M,{selectionMode:(i=r==null?void 0:r.selectItem)!=null&&i?"item":"placeholder",format:"latex",mode:"math"}),e.snapshot(),e.model.announce("replacement"),e.switchMode("math")),!0}function Sd(e){var t;let r=document.getElementById(e);return r?r.dataset.refcount=Number(Number.parseInt((t=r.dataset.refcount)!=null?t:"0")+1).toString():(r=document.createElement("div"),r.setAttribute("aria-hidden","true"),r.dataset.refcount="1",r.id=e,document.body.append(r)),r}function Gd(e){var t;const r=document.getElementById(e);if(!r)return;const n=Number.parseInt((t=r.getAttribute("data-refcount"))!=null?t:"0");n<=1?r.remove():r.dataset.refcount=Number(n-1).toString()}function Xd(e,t){const r=new la({from:e.context}),n=new zr({mode:"math",type:"root",body:Al(t,{context:r})}),i=SA(Wu(new fn(n.render(r),{classes:"ML__base"}),r));return AA(i,{classes:"ML__latex"}).toMarkup()}function Ed(e,t){var r;if(t.length===0){gA(e);return}let n="";for(const[s,A]of t.entries()){const M=A,z=Xd(e,A),X=Sl(e.keybindings,M).join("<br>");n+=`<li role="button" data-command="${M}" ${s===e.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${M}</span><span class="ML__popover__command">${z}</span>`,X&&(n+=`<span class="ML__popover__keybinding">${X}</span>`),n+="</li>"}const i=cd(e,`<ul>${n}</ul>`);ld()&&((r=i.querySelector(".ML__popover__current"))==null||r.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var s;i&&!ld()&&(i.classList.add("is-visible"),Mc(e),(s=i.querySelector(".ML__popover__current"))==null||s.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function ld(){const e=document.getElementById("mathlive-suggestion-popover");return e?e.classList.contains("is-visible"):!1}function Mc(e,t){var r;if(!e.element||e.element.mathfield!==e||!ld())return;if(((r=e.model.at(e.model.position))==null?void 0:r.type)!=="latex"){gA(e);return}if(t!=null&&t.deferred){setTimeout(()=>Mc(e),32);return}const n=Bl(e.field);if(!n)return;const i=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,s=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,A=window.innerWidth-document.documentElement.clientWidth,M=window.innerHeight-document.documentElement.clientHeight,z=window.mathVirtualKeyboard.boundingRect.height,X=document.getElementById("mathlive-suggestion-popover");n.x+X.offsetWidth/2>s-A?X.style.left=`${s-X.offsetWidth-A}px`:n.x-X.offsetWidth/2<0?X.style.left="0":X.style.left=`${n.x-X.offsetWidth/2}px`;const ue=n.y-n.height;i-M-z-n.y<ue?(X.classList.add("ML__popover--reverse-direction"),X.classList.remove("top-tip"),X.classList.add("bottom-tip"),X.style.top=`${n.y-n.height-X.offsetHeight-15}px`):(X.classList.remove("ML__popover--reverse-direction"),X.classList.add("top-tip"),X.classList.remove("bottom-tip"),X.style.top=`${n.y+15}px`)}function gA(e){e.suggestionIndex=0;const t=document.getElementById("mathlive-suggestion-popover");t&&(t.classList.remove("is-visible"),t.innerHTML="")}function cd(e,t){let r=document.getElementById("mathlive-suggestion-popover");return r||(r=Sd("mathlive-suggestion-popover"),lc("suggestion-popover"),lc("core"),r.addEventListener("pointerdown",n=>n.preventDefault()),r.addEventListener("click",n=>{let i=n.target;for(;i&&!i.dataset.command;)i=i.parentElement;i&&(Su(e,"reject"),aa.insert(e.model,i.dataset.command,{selectionMode:"placeholder",format:"latex",mode:"math"}),e.dirty=!0,e.focus())})),r.innerHTML=window.MathfieldElement.createHTML(t),r}function Hf(){document.getElementById("mathlive-suggestion-popover")&&(Gd("mathlive-suggestion-popover"),wc("suggestion-popover"),wc("core"))}function Jd(){const e=String(new Error().stack).replace(/^Error.*\n/,"").split(`
`);if(e.length===0)return console.error(`Can't use relative paths to specify assets location because the sourcefile location could not be determined (unexpected stack trace format "${new Error().stack}").`),"";let t=e[1],r=t.match(/http.*\.ts[\?:]/);return r&&(t=e[2]),r=t.match(/(https?:.*):[0-9]+:[0-9]+/),r||(r=t.match(/at (.*(\.ts))[\?:]/),r||(r=t.match(/at (.*(\.mjs|\.js))[\?:]/))),r?r[1]:(console.error(e),console.error(`Can't use relative paths to specify assets location because the source file location could not be determined (unexpected location "${t}").`),"")}var _d=null,Fd,Yd,Ad=((Yd=(Fd=globalThis==null?void 0:globalThis.document)==null?void 0:Fd.currentScript)==null?void 0:Yd.src)||Jd();function ud(e){return gd(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(e))return new URL(e).href;if(_d===null)try{const t=yield fetch(Ad,{method:"HEAD"});t.status===200&&(_d=t.url)}catch(t){console.error(`Invalid URL "${e}" (relative to "${Ad}")`)}return new URL(e,_d!=null?_d:Ad).href})}function m0(e,t,r={}){return new FontFace(e,`url(${t}.woff2) format('woff2')`,r)}var zc="not-loaded";function xf(){return gd(this,null,function*(){return zc="not-loaded",vA()})}function vA(){return gd(this,null,function*(){var e;if(zc!=="not-loaded")return;if(zc="loading",(e=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?e:!1){zc="ready";return}if(document.body.classList.remove("ML__fonts-did-not-load"),"fonts"in document){const r=["KaTeX_Main","KaTeX_Math","KaTeX_AMS","KaTeX_Caligraphic","KaTeX_Fraktur","KaTeX_SansSerif","KaTeX_Script","KaTeX_Typewriter","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4"],n=Array.from(document.fonts).map(A=>A.family);if(r.every(A=>n.includes(A))){zc="ready";return}if(!window.MathfieldElement.fontsDirectory){zc="not-loaded";return}const i=yield ud(window.MathfieldElement.fontsDirectory);if(!i){document.body.classList.add("ML__fonts-did-not-load"),zc="error";return}const s=[["KaTeX_Main-Regular"],["KaTeX_Main-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_Main-Bold",{weight:"bold"}],["KaTeX_Main-Italic",{style:"italic"}],["KaTeX_Math-Italic",{style:"italic"}],["KaTeX_Math-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_AMS-Regular"],["KaTeX_Caligraphic-Regular"],["KaTeX_Caligraphic-Bold",{weight:"bold"}],["KaTeX_Fraktur-Regular"],["KaTeX_Fraktur-Bold",{weight:"bold"}],["KaTeX_SansSerif-Regular"],["KaTeX_SansSerif-Bold",{weight:"bold"}],["KaTeX_SansSerif-Italic",{style:"italic"}],["KaTeX_Script-Regular"],["KaTeX_Typewriter-Regular"],["KaTeX_Size1-Regular"],["KaTeX_Size2-Regular"],["KaTeX_Size3-Regular"],["KaTeX_Size4-Regular"]].map(A=>m0(A[0].replace(/-[a-zA-Z]+$/,""),`${i}/${A[0]}`,A[1]));try{(yield Promise.all(s.map(M=>{try{return M.load()}catch(z){}}))).forEach(M=>document.fonts.add(M)),zc="ready";return}catch(A){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${i}"`,{cause:A}),document.body.classList.add("ML__fonts-did-not-load")}zc="error"}})}function g0(e){let t=0;for(let r=0;r<e.length;r++)t=t*31+e.charCodeAt(r),t=t|0;return Math.abs(t)}function xs(e,t){e&&(e.dirty||(e.dirty=!0,requestAnimationFrame(()=>{hs(e)&&e.dirty&&(e.atomBoundsCache=new Map,TA(e,t),e.atomBoundsCache=void 0)})))}function v0(e,t){var r;t=t!=null?t:{};const n=new la({from:E(f({},e.context),{atomIdsSettings:{seed:t.forHighlighting?g0(zr.serialize([e.model.root],{expandMacro:!1,defaultMode:e.options.defaultMode})):"random",groupNumbers:(r=t.forHighlighting)!=null?r:!1},letterShapeStyle:e.options.letterShapeStyle}),mathstyle:e.options.defaultMode==="inline-math"?"textstyle":"displaystyle"}),i=e.model.root.render(n);return AA(Wu(i,n),{classes:e.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function Cf(e,t){const{model:r}=e;r.root.caret=void 0,r.root.isSelected=!1,r.root.containsCaret=!0;for(const i of r.atoms)i.caret=void 0,i.isSelected=!1,i.containsCaret=!1;if(r.selectionIsCollapsed){const i=r.at(r.position);i.caret=e.model.mode;let s=i.parent;for(;s;)s.containsCaret=!0,s=s.parent}else{const i=r.getAtoms(r.selection,{includeChildren:!0});for(const s of i)s.isSelected=!0}return v0(e,t).toMarkup()}function TA(e,t){if(!hs(e))return;t!=null||(t={});const r=e.element.querySelector("[part=virtual-keyboard-toggle]");r&&(r.style.display=e.hasEditableContent?"":"none");const n=e.field;if(!n)return;const i=e.isSelectionEditable&&e.hasFocus(),s=n.classList.contains("ML__focused");s&&!i?n.classList.remove("ML__focused"):!s&&i&&n.classList.add("ML__focused");let A=Cf(e,t);const M=e.element.querySelector("[part=menu-toggle]");if(M&&(e.model.atoms.length<=1||e.disabled||e.readOnly&&!e.hasEditableContent||e.userSelect==="none"?M.style.display="none":M.style.display=""),e.model.atoms.length<=1){const z=e.options.contentPlaceholder;z&&(A+=`<span part=placeholder class="ML__content-placeholder">${Fl(z)}</span>`)}n.innerHTML=window.MathfieldElement.createHTML(A),Id(e,t.interactive),e.dirty=!1}function Id(e,t){const r=e.field;if(!r)return;for(const M of r.querySelectorAll(".ML__selection, .ML__contains-highlight"))M.remove();!(t!=null&&t)&&zc!=="error"&&zc!=="ready"&&setTimeout(()=>{zc==="ready"?Id(e):setTimeout(()=>Id(e),128)},32);const n=e.model,i=r.offsetWidth,s=r.getBoundingClientRect().width;let A=Math.floor(s)/i;if(A=isNaN(A)?1:A,n.selectionIsCollapsed){Mc(e,{deferred:!0});let M=n.at(n.position);for(;M&&M.type!=="prompt"&&!(M.containsCaret&&M.displayContainsHighlight);)M=M.parent;if(M!=null&&M.containsCaret&&M.displayContainsHighlight){const z=Xl(e,qc(e,M),A);if(z){z.left/=A,z.right/=A,z.top/=A,z.bottom/=A;const X=document.createElement("div");X.classList.add("ML__contains-highlight"),X.style.position="absolute",X.style.left=`${z.left+1}px`,X.style.top=`${Math.ceil(z.top)}px`,X.style.width=`${Math.ceil(z.right-z.left)}px`,X.style.height=`${Math.ceil(z.bottom-z.top)}px`,r.insertBefore(X,r.childNodes[0])}}return}for(const M of jf(XA(e,{excludeAtomsWithBackground:!0}))){M.left/=A,M.right/=A,M.top/=A,M.bottom/=A;const z=document.createElement("div");z.classList.add("ML__selection"),z.style.position="absolute",z.style.left=`${M.left}px`,z.style.top=`${M.top}px`,z.style.width=`${Math.ceil(M.right-M.left)}px`,z.style.height=`${Math.ceil(M.bottom-M.top-1)}px`,r.insertBefore(z,r.childNodes[0])}}function jf(e){let t=[];for(const r of e){let n=!1;for(const i of t)if(r.left===i.left&&r.right===i.right&&r.top===i.top&&r.bottom===i.bottom){n=!0;break}n||t.push(r)}e=t,t=[];for(const r of e){let n=0;for(const i of e)if(r.left>=i.left&&r.right<=i.right&&r.top>=i.top&&r.bottom<=i.bottom&&(n+=1,n>1))break;n===1&&t.push(r)}return t}var Md=3,oA;function _l(e,t){t=f({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},t!=null?t:{}),oA||(oA={});for(const r of Object.keys(e))console.assert(!oA[r],"Selector already defined: ",r),oA[r]=E(f({},t),{fn:e[r]})}function qd(e){let t;if(Array.isArray(e)){if(e[0]==="performWithFeedback")return qd(e[1]);t=e[0]}else t=e;return t=t.replace(/-\w/g,r=>r[1].toUpperCase()),oA[t]}function dd(e){var t;return(t=qd(e))==null?void 0:t.target}function ef(e,t){var r;if(!t)return!1;let n,i=[],s=!1,A=!1;S(t)?(n=t[0],i=t.slice(1)):n=t,n=n.replace(/-\w/g,X=>X[1].toUpperCase());const M=oA[n],z=M==null?void 0:M.target;if(z==="model"){if(!e.isSelectionEditable&&(M!=null&&M.changeContent))return e.model.announce("plonk"),!1;/^(delete|add)/.test(n)&&(n!=="deleteBackward"&&e.flushInlineShortcutBuffer(),e.snapshot(n)),/^complete/.test(n)||iu(e),oA[n].fn(e.model,...i),aA(e),A=!0,s=!0}else if(z==="virtual-keyboard")A=(r=window.mathVirtualKeyboard.executeCommand(t))!=null?r:!1,s=!0;else if(oA[n]){if(!e.isSelectionEditable&&(M!=null&&M.changeContent))return e.model.announce("plonk"),!1;/^(undo|redo)/.test(n)&&e.flushInlineShortcutBuffer(),A=oA[n].fn(e,...i),s=!0}else throw new Error(`Unknown command "${n}"`);return z!=="virtual-keyboard"&&(!e.model.selectionIsCollapsed||M!=null&&M.changeSelection&&t!=="deleteBackward")&&(e.flushInlineShortcutBuffer(),M!=null&&M.changeContent||e.stopCoalescingUndo(),e.defaultStyle={}),A&&xs(e),s}function zf(e,t){var r;if(!e)return!1;e.focus(),Hh.keypressVibration&&I()&&navigator.vibrate(Md);const n=qd(t);window.MathfieldElement.playSound((r=n==null?void 0:n.audioFeedback)!=null?r:"keypress");const i=e.executeCommand(t);return e.scrollIntoView(),i}_l({performWithFeedback:(e,t)=>zf(e,t)});function Bf(e){return aA(e,{atIndex:e.suggestionIndex+1}),!1}function Eu(e){return aA(e,{atIndex:e.suggestionIndex-1}),!1}_l({complete:Su},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),_l({nextSuggestion:Bf,previousSuggestion:Eu},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var Ld="mathlive#virtual-keyboard-message";function tf(e){var t;return e.type!=="message"?!1:((t=e.data)==null?void 0:t.type)===Ld}var y0=class Sp{constructor(){this.targetOrigin=window.origin,this.originValidator="none",this._boundingRect=new DOMRect(0,0,0,0),this._isShifted=!1,window.addEventListener("message",this),this.sendMessage("proxy-created"),this.listeners={}}static get singleton(){return this._singleton||(this._singleton=new Sp),this._singleton}set alphabeticLayout(t){this.sendMessage("update-setting",{alphabeticLayout:t})}set layouts(t){this.sendMessage("update-setting",{layouts:t})}get normalizedLayouts(){return[]}set editToolbar(t){this.sendMessage("update-setting",{editToolbar:t})}set actionKeycap(t){this.sendMessage("update-setting",{actionKeycap:t})}set shiftKeycap(t){this.sendMessage("update-setting",{shiftKeycap:t})}set backspaceKeycap(t){this.sendMessage("update-setting",{backspaceKeycap:t})}set tabKeycap(t){this.sendMessage("update-setting",{tabKeycap:t})}set container(t){throw new Error("Container inside an iframe cannot be changed")}show(t){this.sendMessage("show",t)}hide(t){this.sendMessage("hide",t)}get isShifted(){return this._isShifted}get visible(){return this._boundingRect.height>0}set visible(t){t?this.show():this.hide()}get boundingRect(){return this._boundingRect}executeCommand(t){return this.sendMessage("execute-command",{command:t}),!0}updateToolbar(t){this.sendMessage("update-toolbar",t)}update(t){this.sendMessage("update-setting",t)}connect(){this.sendMessage("connect")}disconnect(){this.sendMessage("disconnect")}addEventListener(t,r,n){this.listeners[t]||(this.listeners[t]=new Set),this.listeners[t].has(r)||this.listeners[t].add(r)}dispatchEvent(t){return!this.listeners[t.type]||this.listeners[t.type].size===0?!0:(this.listeners[t.type].forEach(r=>{typeof r=="function"?r(t):r==null||r.handleEvent(t)}),!t.defaultPrevented)}removeEventListener(t,r,n){this.listeners[t]&&this.listeners[t].delete(r)}handleEvent(t){if(tf(t)){if(!kA(t.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${t.origin}) cannot be handled`,"SecurityError");this.handleMessage(t.data)}}handleMessage(t){const{action:r}=t;if(r==="execute-command"){const{command:n}=t;dd(n)==="virtual-keyboard"&&this.executeCommand(n);return}if(r==="synchronize-proxy"){this._boundingRect=t.boundingRect,this._isShifted=t.isShifted;return}if(r==="geometry-changed"){this._boundingRect=t.boundingRect,this.dispatchEvent(new Event("geometrychange"));return}}sendMessage(t,r={}){if(!window.top)throw new DOMException("A frame does not have access to the top window and can\u2018t communicate with the keyboard. Review virtualKeyboardTargetOrigin and originValidator on mathfields embedded in an iframe","SecurityError");window.top.postMessage(f({type:Ld,action:t},r),this.targetOrigin)}},Sf={numeric:{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",rows:[[{latex:"x",shift:"y",variants:["y","z","t","r","x^2","x^n","x^{#?}","x_n","x_i","x_{#?}",{latex:"f(#?)",class:"small"},{latex:"g(#?)",class:"small"}]},{latex:"n",shift:"a",variants:["i","j","p","k","a","u"]},"[separator-5]","[7]","[8]","[9]","[/]","[separator-5]",{latex:"\\exponentialE",shift:"\\ln",variants:["\\exp","\\times 10^{#?}","\\ln","\\log_{10}","\\log"]},{latex:"\\imaginaryI",variants:["\\Re","\\Im","\\imaginaryJ","\\Vert #0 \\Vert"]},{latex:"\\pi",shift:"\\sin",variants:["\\prod",{latex:"\\theta",aside:"theta"},{latex:"\\rho",aside:"rho"},{latex:"\\tau",aside:"tau"},"\\sin","\\cos","\\tan"]}],[{label:"<",latex:"<",class:"hide-shift",shift:{latex:"\\le",label:"\u2264"}},{label:">",latex:">",class:"hide-shift",shift:{latex:"\\ge",label:"\u2265"}},"[separator-5]","[4]","[5]","[6]","[*]","[separator-5]",{class:"hide-shift",latex:"#@^2}",shift:"#@^{\\prime}}"},{latex:"#@^{#0}}",class:"hide-shift",shift:"#@_{#?}"},{class:"hide-shift",latex:"\\sqrt{#0}",shift:{latex:"\\sqrt[#0]{#?}}"}}],["[(]","[)]","[separator-5]","[1]","[2]","[3]","[-]","[separator-5]",{latex:"\\int^{\\infty}_{0}\\!#?\\,\\mathrm{d}x",class:"small hide-shift",shift:"\\int",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{class:"hide-shift",latex:"\\forall",shift:"\\exists"},{label:"[backspace]",width:1}],[{label:"[shift]",width:2},"[separator-5]","[0]","[.]","[=]","[+]","[separator-5]","[left]","[right]",{label:"[action]",width:1}]]},greek:{label:"&alpha;&beta;&gamma;",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.greek",rows:[[{label:"<i>&#x03c6;</i>",class:"MLK__tex hide-shift",insert:"\\varphi",aside:"phi var.",shift:"\\Phi"},{label:"<i>&#x03c2;</i>",class:"MLK__tex hide-shift",insert:"\\varsigma",aside:"sigma var.",shift:"\\Sigma"},{label:"<i>&#x03f5;</i>",class:"MLK__tex hide-shift",insert:"\\epsilon",aside:"espilon",shift:'\\char"0190'},{label:"<i>&rho;</i>",class:"MLK__tex hide-shift",insert:"\\rho",aside:"rho",shift:'\\char"3A1'},{label:"<i>&tau;</i>",class:"MLK__tex hide-shift",insert:"\\tau",aside:"tau",shift:'\\char"3A4'},{label:"<i>&upsilon;</i>",class:"MLK__tex hide-shift",insert:"\\upsilon",aside:"upsilon",shift:"\\Upsilon"},{label:"<i>&theta;</i>",class:"MLK__tex hide-shift",insert:"\\theta",aside:"theta",shift:"\\Theta"},{label:"<i>&iota;</i>",class:"MLK__tex hide-shift",insert:"\\iota",aside:"iota",shift:'\\char"399'},{label:"<i>&omicron;</i>",class:"MLK__tex hide-shift",insert:"\\omicron",aside:"omicron",shift:'\\char"39F'},{label:"<i>&pi;</i>",class:"MLK__tex hide-shift",insert:"\\pi",aside:"pi",shift:"\\Pi"}],["[separator-5]",{label:"<i>&alpha;</i>",class:"MLK__tex hide-shift",insert:"\\alpha",aside:"alpha",shift:'\\char"391'},{label:"<i>&sigma;</i>",class:"MLK__tex hide-shift",insert:"\\sigma",aside:"sigma",shift:"\\Sigma"},{label:"<i>&delta;</i>",class:"MLK__tex hide-shift",insert:"\\delta",aside:"delta",shift:"\\Delta"},{latex:"\\phi",class:"MLK__tex hide-shift",insert:"\\phi",aside:"phi",shift:"\\Phi"},{label:"<i>&gamma;</i>",class:"MLK__tex hide-shift",insert:"\\gamma",aside:"gamma",shift:"\\Gamma"},{label:"<i>&eta;</i>",class:"MLK__tex hide-shift",insert:"\\eta",aside:"eta",shift:'\\char"397'},{label:"<i>&xi;</i>",class:"MLK__tex hide-shift",insert:"\\xi",aside:"xi",shift:"\\Xi"},{label:"<i>&kappa;</i>",class:"MLK__tex hide-shift",insert:"\\kappa",aside:"kappa",shift:"\\Kappa"},{label:"<i>&lambda;</i>",class:"MLK__tex hide-shift",insert:"\\lambda",aside:"lambda",shift:"\\Lambda"},"[separator-5]"],["[shift]",{label:"<i>&zeta;</i>",class:"MLK__tex hide-shift",insert:"\\zeta",aside:"zeta",shift:'\\char"396'},{label:"<i>&chi;</i>",class:"MLK__tex hide-shift",insert:"\\chi",aside:"chi",shift:'\\char"3A7'},{label:"<i>&psi;</i>",class:"MLK__tex hide-shift",insert:"\\psi",aside:"zeta",shift:"\\Psi"},{label:"<i>&omega;</i>",class:"MLK__tex hide-shift",insert:"\\omega",aside:"omega",shift:"\\Omega"},{label:"<i>&beta;</i>",class:"MLK__tex hide-shift",insert:"\\beta",aside:"beta",shift:'\\char"392'},{label:"<i>&nu;</i>",class:"MLK__tex hide-shift",insert:"\\nu",aside:"nu",shift:'\\char"39D'},{label:"<i>&mu;</i>",class:"MLK__tex hide-shift",insert:"\\mu",aside:"mu",shift:'\\char"39C'},"[backspace]"],["[separator]",{label:"<i>&#x03b5;</i>",class:"MLK__tex",insert:"\\varepsilon",aside:"espilon var."},{label:"<i>&#x03d1;</i>",class:"MLK__tex",insert:"\\vartheta",aside:"theta var."},{label:"<i>&#x3f0;</i>",class:"MLK__tex",insert:"\\varkappa",aside:"kappa var."},{label:"<i>&#x03d6;</i>",class:"MLK__tex",insert:"\\varpi",aside:"pi var."},{label:"<i>&#x03f1;</i>",class:"MLK__tex",insert:"\\varrho",aside:"rho var."},"[left]","[right]","[action]"]]},symbols:{label:"&infin;\u2260\u2208",labelClass:"MLK__tex",tooltip:"keyboard.tooltip.symbols",rows:[[{latex:"\\sin",shift:"\\sin^{-1}",variants:[{class:"small",latex:"\\sinh"},{class:"small",latex:"\\sin^{-1}"},{class:"small",latex:"\\arsinh"}]},"\\ln",{latex:"\\mathrm{abs}",insert:"\\mathrm{abs}\\left(#0\\right)"},{latex:"\\rarr",shift:"\\rArr",variants:[{latex:"\\implies",aside:"implies"},{latex:"\\to",aside:"to"},"\\dashv",{latex:"\\roundimplies",aside:"round implies"}]},{latex:"\\exists",variants:["\\nexists"],shift:"\\nexists"},{latex:"\\in",shift:"\\notin",variants:["\\notin","\\owns"]},"\\cup",{latex:"\\overrightarrow{#@}",shift:"\\overleftarrow{#@}",variants:["\\overleftarrow{#@}","\\bar{#@}","\\vec{#@}","\\hat{#@}","\\check{#@}","\\dot{#@}","\\ddot{#@}","\\mathring{#@}","\\breve{#@}","\\acute{#@}","\\tilde{#@}","\\grave{#@}"]},{class:"small",latex:"\\lim_{#?}",shift:"\\lim_{x\\to\\infty}",variants:[{class:"small",latex:"\\liminf_{#?}"},{class:"small",latex:"\\limsup_{#?}"}]},"\\exponentialE"],[{latex:"\\cos",shift:"\\cos^{-1}",variants:[{class:"small",latex:"\\cosh"},{class:"small",latex:"\\cos^{-1}"},{class:"small",latex:"\\arcosh"}]},{latex:"\\log",shift:"\\log_{10}",variants:["\\log_{#0}","\\log_{10}"]},"\\left\\vert#0\\right\\vert",{latex:"\\larr",shift:"\\lArr",variants:[{latex:"\\impliedby",aside:"implied by"},{latex:"\\gets",aside:"gets"},"\\lArr","\\vdash",{latex:"\\models",aside:"models"}]},{latex:"\\forall",shift:"\\lnot",variants:[{latex:"\\land",aside:"and"},{latex:"\\lor",aside:"or"},{latex:"\\oplus",aside:"xor"},{latex:"\\lnot",aside:"not"},{latex:"\\downarrow",aside:"nor"},{latex:"\\uparrow",aside:"nand"},{latex:"\\curlywedge",aside:"nor"},{latex:"\\bar\\curlywedge",aside:"nand"}]},{latex:"\\ni",shift:"\\not\\owns"},"\\cap",{latex:"\\overline{#@}",shift:"\\underline{#@}",variants:["\\overbrace{#@}","\\overlinesegment{#@}","\\overleftrightarrow{#@}","\\overrightarrow{#@}","\\overleftarrow{#@}","\\overgroup{#@}","\\underbrace{#@}","\\underlinesegment{#@}","\\underleftrightarrow{#@}","\\underrightarrow{#@}","\\underleftarrow{#@}","\\undergroup{#@}"]},{class:"hide-shift",latex:"\\int",shift:"\\iint",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\smallint",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\intop","\\iiint","\\oiint","\\oiiint","\\intclockwise","\\varointclockwise","\\ointctrclockwise","\\intctrclockwise"]},{latex:"\\pi",shift:"\\tau",variants:["\\tau"]}],[{latex:"\\tan",shift:"\\tan^{-1}",variants:[{class:"small",latex:"\\tanh"},{class:"small",latex:"\\tan^{-1}"},{class:"small",latex:"\\artanh"},{class:"small",latex:"\\arctan"},{class:"small",latex:"\\arctg"},{class:"small",latex:"\\tg"}]},{latex:"\\exp",insert:"\\exp\\left(#0\\right)",variants:["\\exponentialE^{#0}"]},"\\left\\Vert#0\\right\\Vert",{latex:"\\lrArr",shift:"\\leftrightarrow",variants:[{latex:"\\iff",aside:"if and only if"},"\\leftrightarrow","\\leftrightarrows","\\Leftrightarrow",{latex:"^\\biconditional",aside:"biconditional"}]},{latex:"\\vert",shift:"!"},{latex:"#@^{\\complement}",aside:"complement",variants:[{latex:"\\setminus",aside:"set minus"},{latex:"\\smallsetminus",aside:"small set minus"}]},{latex:"\\subset",shift:"\\subseteq",variants:["\\subset","\\subseteq","\\subsetneq","\\varsubsetneq","\\subsetneqq","\\nsubset","\\nsubseteq","\\supset","\\supseteq","\\supsetneq","\\supsetneqq","\\nsupset","\\nsupseteq"]},{latex:"#@^{\\prime}",shift:"#@^{\\doubleprime}",variants:["#@^{\\doubleprime}","#@\\degree"]},{latex:"\\mathrm{d}",shift:"\\partial",variants:["\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{latex:"\\infty",variants:["\\aleph_0","\\aleph_1","\\omega","\\mathfrak{m}"]}],[{label:"[shift]",width:2},{class:"box",latex:",",shift:";",variants:[";","?"]},{class:"box",latex:"\\colon",shift:"\\Colon",variants:[{latex:"\\Colon",aside:"such that",class:"box"},{latex:":",aside:"ratio",class:"box"},{latex:"\\vdots",aside:"",class:"box"},{latex:"\\ddots",aside:"",class:"box"},{latex:"\\ldotp",aside:"low dot",class:"box"},{latex:"\\cdotp",aside:"center dot",class:"box"},{latex:"\\ldots",aside:"low ellipsis",class:"box"},{latex:"\\cdots",aside:"center ellipsis",class:"box"},{latex:"\\therefore",aside:"therefore",class:"box"},{latex:"\\because",aside:"because",class:"box"}]},{class:"box",latex:"\\cdot",aside:"centered dot",shift:"\\ast",variants:["\\circ","\\bigcirc","\\bullet","\\odot","\\oslash","\\circledcirc","\\ast","\\star","\\times","\\doteq","\\doteqdot"]},"[separator]","[left]","[right]",{label:"[backspace]",width:1,class:"action hide-shift"},{label:"[action]",width:1}]]},compact:{label:"compact",rows:[["[+]","[-]","[*]","[/]","[=]","[.]","[(]","[)]","\\sqrt{#0}","#@^{#?}"],["[1]","[2]","[3]","[4]","[5]","[6]","[7]","[8]","[9]","[0]"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]},minimalist:{label:"minimalist",layers:[{style:`
.minimalist-backdrop {
display: flex;
justify-content: center;
}
.minimalist-container {
--keycap-height: 40px;
--keycap-max-width: 53px;
--keycap-small-font-size: 12px;
background: var(--keyboard-background);
padding: 20px;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
border: 1px solid var(--keyboard-border);
box-shadow: 0 0 32px rgb(0 0 0 / 30%);
}
`,backdrop:"minimalist-backdrop",container:"minimalist-container",rows:[["+","-","\\times",{latex:"\\frac{#@}{#0}",class:"small"},"=","[.]","(",")",{latex:"\\sqrt{#0}",class:"small"},{latex:"#@^{#?}",class:"small"}],["1","2","3","4","5","6","7","8","9","0"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]}]},"numeric-only":{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",id:"numeric-only",rows:[["7","8","9","[separator]",{label:"[backspace]",width:2}],["4","5","6","[separator]","[separator]","[separator]"],["1","2","3","[separator]","[separator]","[separator]"],["0",{label:"[.]",variants:[]},"-","[separator]","[left]","[right]"]]}},au={0:["\\varnothing","\\infty"],1:["\\frac{1}{#@}","#@^{-1}","\\times 10^{#?}","\\phi","\\imaginaryI"],2:["\\frac{1}{2}","#@^2","\\sqrt2","\\exponentialE"],3:["\\frac{1}{3}","#@^3","\\sqrt3","\\pi"],4:["\\frac{1}{4}","#@^4"],5:["\\frac{1}{5}","#@^5","\\sqrt5"],6:["\\frac{1}{6}","#@^6"],7:["\\frac{1}{7}","#@^7"],8:["\\frac{1}{8}","#@^8"],9:["\\frac{1}{9}","#@^9"],".":[".",",",";","\\colon"],",":["{,}",".",";","\\colon"],a:[{latex:"\\aleph",aside:"aleph"},{latex:"\\forall",aside:"for all"},"\xE0","\xE1","\xE2","\xE4","\xE6"],b:[{latex:"\\beth",aside:"beth"}],c:[{latex:"\\C",aside:"set of complex numbers"},"\xE7"],d:[{latex:"\\daleth",aside:"daleth"}],e:[{latex:"\\exponentialE",aside:"exponential e"},{latex:"\\exists",aside:"there is"},{latex:"\\nexists",aside:"there isn\u2019t"},"\xE8","\xE9","\xEA","\xEB"],g:[{latex:"\\gimel",aside:"gimel"}],h:[{latex:"\\hbar",aside:"h bar"},{latex:"\\hslash",aside:"h slash"}],i:[{latex:"\\imaginaryI",aside:"imaginary i"},"\xEC","\xED","\xEE","\xEF"],j:[{latex:"\\imaginaryJ",aside:"imaginary j"}],l:[{latex:"\\ell",aside:"ell"}],n:[{latex:"\\mathbb{N}",aside:"set of natural numbers"},"\xF1"],o:["\xF8","\u0153","\xF2","\xF3","\xF4","\xF6","\u0153"],p:[{latex:"\\mathbb{P}",aside:"set of primes"}],q:[{latex:"\\mathbb{Q}",aside:"set of rational numbers"}],r:[{latex:"\\mathbb{R}",aside:"set of real numbers"}],u:["\xF9","\xFA","\xFB","\xFC"],z:[{latex:"\\mathbb{Z}",aside:"set of integers"}],y:["\xFD","\xFF"],space:[{latex:'\\char"203A\\!\\char"2039',insert:"\\!",aside:"negative thin space<br>\u207B\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\,\\char"2039',insert:"\\,",aside:"thin space<br>\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\:\\char"2039',insert:"\\:",aside:"medium space<br>\u2074\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\;\\char"2039',insert:"\\;",aside:"thick space<br>\u2075\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\ \\char"2039',insert:"\\ ",aside:"\u2153 em"},{latex:'\\char"203A\\enspace\\char"2039',insert:"\\enspace",aside:"\xBD em"},{latex:'\\char"203A\\quad\\char"2039',insert:"\\quad",aside:"1 em"},{latex:'\\char"203A\\qquad\\char"2039',insert:"\\qquad",aside:"2 em"}]},kd;function Ef(e,t){var r,n,i;const s=fd.singleton;if(!s)return;const A=nf(e),M=(n=(r=s.getKeycap(A==null?void 0:A.id))==null?void 0:r.variants)!=null?n:"";if(typeof M=="string"&&!Zf(M)||Array.isArray(M)&&M.length===0){t==null||t();return}const z={};let X="";for(const Er of Pd(M)){const Fn=Y0(Er),xr=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);z[xr]=Fn;const[nn,Rn]=Wf(Fn);X+=`<div id=${xr} class="item ${Rn}">${nn}</div>`}const ue=document.createElement("div");ue.setAttribute("aria-hidden","true"),ue.className="MLK__variant-panel",ue.style.height="auto";const Ke=Object.keys(z).length;let ft=5;Ke===1?ft=1:Ke===2||Ke===4?ft=2:Ke===3||Ke===5||Ke===6?ft=3:Ke>=7&&Ke<14&&(ft=4),ue.style.width=`calc(var(--variant-keycap-length) * ${ft} + 12px)`,ue.innerHTML=Hh.createHTML(X),Co.open({root:(i=s==null?void 0:s.container)==null?void 0:i.querySelector(".ML__keyboard"),child:ue}),kd=new AbortController;const{signal:Ft}=kd,Nt=e==null?void 0:e.getBoundingClientRect();if(Nt){Nt.top-ue.clientHeight<0&&(ue.style.width="auto",Ke<=6?ue.style.height="56px":Ke<=12?ue.style.height="108px":Ke<=18?ue.style.height="205px":ue.classList.add("compact"));const Er=Math.max(0,Math.min(window.innerWidth-ue.offsetWidth,(Nt.left+Nt.right-ue.offsetWidth)/2)),Fn=Nt.top-ue.clientHeight+5;ue.style.transform=`translate(${Er}px, ${Fn}px)`,ue.classList.add("is-visible"),requestAnimationFrame(()=>{ue.addEventListener("pointerup",xr=>{const nn=nf(xr.target);!(nn!=null&&nn.id)||!z[nn.id]||(w0(z[nn.id]),Dd(),t==null||t(),xr.preventDefault())},{capture:!0,passive:!1,signal:Ft}),ue.addEventListener("pointerenter",xr=>{const nn=nf(xr.target);!(nn!=null&&nn.id)||!z[nn.id]||nn.classList.add("is-active")},{capture:!0,signal:Ft}),ue.addEventListener("pointerleave",xr=>{const nn=nf(xr.target);!(nn!=null&&nn.id)||!z[nn.id]||nn.classList.remove("is-active")},{capture:!0,signal:Ft}),window.addEventListener("pointercancel",()=>{Dd(),t==null||t()},{signal:Ft}),window.addEventListener("pointerup",()=>{Dd(),t==null||t()},{signal:Ft})})}}function Dd(){kd==null||kd.abort(),kd=null,Co.state==="open"&&Co.close()}function $f(e){if(e==="foreground-color"){const t=[];for(const r of Object.keys(he))t.push({class:"swatch-button",label:'<span style="border: 3px solid '+he[r]+'"></span>',command:["applyStyle",{color:r}]});return t}if(e==="background-color"){const t=[];for(const r of Object.keys(le))t.push({class:"swatch-button",label:'<span style="background:'+le[r]+'"></span>',command:["applyStyle",{backgroundColor:r}]});return t}}function Zf(e){return au[e]!==void 0}function Pd(e){var t;return typeof e!="string"?e:(au[e]||(au[e]=(t=$f(e))!=null?t:[]),au[e])}function _f(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r} !important`).join(";")}function rf(e){return Object.keys(e).map(t=>`${t} {${_f(e[t])}}`).join("")}function $c(e){if(!e)return"";const t=new la,r=new zr({mode:"math",type:"root",body:Al(e,{context:t,args:i=>i==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),n=SA(Wu(new fn(r.render(t),{classes:"ML__base"}),t));return AA(n,{classes:"ML__latex"}).toMarkup()}function sA(e){var t;if(Array.isArray(e))return e.map(n=>sA(n)).flat();const r=typeof e=="string"?{markup:e}:e;return"rows"in r&&Array.isArray(r.rows)&&(r.rows=r.rows.map(n=>n.map(i=>Y0(i)))),(t=r.id)!=null||(r.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36)),[r]}function _u(){var e,t;let n=window.mathVirtualKeyboard.alphabeticLayout;if(n==="auto"){const M=Zi();M&&(n=M.virtualLayout),(!n||n==="auto")&&(n=(e={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[te.locale.slice(0,2)])!=null?e:"qwerty")}const i={qwerty:["qwertyuiop"," asdfghjkl ","^zxcvbnm~"],azerty:["azertyuiop","qsdfghjklm","^ wxcvbn ~"],qwertz:["qwertzuiop"," asdfghjkl ","^yxcvbnm~"],dvorak:["^ pyfgcrl ","aoeuidhtns","qjkxbmwvz~"],colemak:[" qwfpgjluy ","arstdhneio","^zxcvbkm~"]},s=(t=i[n])!=null?t:i.qwerty,A=n==="azerty"?[[{label:"1",variants:"1"},{label:"2",shift:{latex:"\xE9"},variants:"2"},{label:"3",shift:{latex:"\xF9"},variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{label:"(",latex:"("},variants:"5"},{label:"6",shift:{label:")",latex:")"},variants:"6"},{label:"7",shift:{latex:"\xE8"},variants:"7"},{label:"8",shift:{latex:"\xEA"},variants:"8"},{label:"9",shift:{latex:"\xE7"},variants:"9"},{label:"0",shift:{latex:"\xE0"},variants:"0"}]]:[[{label:"1",variants:"1"},{label:"2",variants:"2"},{label:"3",variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{latex:"\\frac{#@}{#?}"},variants:"5"},{label:"6",shift:{latex:"#@^#?"},variants:"6"},{label:"7",variants:"7"},{label:"8",shift:{latex:"\\times"},variants:"8"},{label:"9",shift:{label:"(",latex:"("},variants:"9"},{label:"0",shift:{label:")",latex:")"},variants:"0"}]];for(const M of s){const z=[];for(const X of M)/[a-z]/.test(X)?z.push({label:X,class:"hide-shift",shift:{label:X.toUpperCase()},variants:Zf(X)?X:void 0}):X==="~"?n!=="dvorak"?z.push("[backspace]"):z.push({label:"[backspace]",width:1}):X==="^"?z.push("[shift]"):X===" "&&z.push("[separator-5]");A.push(z)}return A.push(["[-]","[+]","[=]",{label:" ",width:1.5},{label:",",shift:";",variants:".",class:"hide-shift"},"[.]","[left]","[right]",{label:"[action]",width:1.5}]),{label:"abc",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.alphabetic",layers:sA({rows:A})}}function Nd(e){if(e==="alphabetic")return _u();if(typeof e=="string")return console.assert(Sf[e]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${e}"`),Nd(Sf[e]);let t;if("rows"in e&&Array.isArray(e.rows)){console.assert(!("layers"in e||"markup"in e),'MathLive 0.98.5: when providing a "rows" property, "layers" and "markup" are ignored');const i=e,{rows:s}=i,A=$(i,["rows"]);t=E(f({},A),{layers:sA({rows:e.rows})})}else if("markup"in e&&typeof e.markup=="string"){const i=e,{markup:s}=i,A=$(i,["markup"]);t=E(f({},A),{layers:sA(e.markup)})}else t=f({},e),"layers"in e?t.layers=sA(e.layers):console.error('MathLive 0.98.5: provide either a "rows", "markup" or "layers" property');let r=!1,n=!1;for(const i of t.layers)if(i.rows)for(const s of i.rows.flat()){af(s)&&(r=!0);const A=s.command;typeof A=="string"&&["undo","redo","cut","copy","paste"].includes(A)&&(n=!0)}return(!("displayShiftedKeycaps"in e)||e.displayShiftedKeycaps===void 0)&&(t.displayShiftedKeycaps=r),(!("displayEditToolbar"in e)||e.displayEditToolbar===void 0)&&(t.displayEditToolbar=!n),t}function Ff(e,t){var r,n;let i='<div class="left">';if(e.normalizedLayouts.length>1)for(const[s,A]of e.normalizedLayouts.entries()){const M=A,z=[s===t?"selected":"layer-switch"];M.tooltip&&z.push("MLK__tooltip"),M.labelClass&&z.push(...M.labelClass.split(" ")),i+=`<div class="${z.join(" ")}"`,M.tooltip&&(i+=" data-tooltip='"+((r=G(M.tooltip))!=null?r:M.tooltip)+"' "),s!==t&&(i+=`data-layer="${M.layers[0].id}"`),i+=`>${(n=M.label)!=null?n:"untitled"}</div>`}return i+="</div>",i}function Vf(e,t){let r="";if(e.editToolbar==="none")return"";const i=[];t.selectionIsCollapsed?i.push("undo","redo","pasteFromClipboard"):i.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const s={undo:`<div class='action ${t.canUndo===!1?"disabled":""}'
data-command='"undo"'
data-tooltip='${G("tooltip.undo")}'>
<svg><use xlink:href='#svg-undo' /></svg>
</div>`,redo:`<div class='action ${t.canRedo===!1?"disabled":""}'
data-command='"redo"'
data-tooltip='${G("tooltip.redo")}'>
<svg><use xlink:href='#svg-redo' /></svg>
</div>`,cutToClipboard:`
<div class='action'
data-command='"cutToClipboard"'
data-tooltip='${G("tooltip.cut to clipboard")}'>
<svg><use xlink:href='#svg-cut' /></svg>
</div>
`,copyToClipboard:`
<div class='action'
data-command='"copyToClipboard"'
data-tooltip='${G("tooltip.copy to clipboard")}'>
<svg><use xlink:href='#svg-copy' /></svg>
</div>
`,pasteFromClipboard:`
<div class='action'
data-command='"pasteFromClipboard"'
data-tooltip='${G("tooltip.paste from clipboard")}'>
<svg><use xlink:href='#svg-paste' /></svg>
</div>
`};return r+=i.map(A=>s[A]).join(""),r}function b0(e){for(const t of e)If(t)}function If(e){const t=fd.singleton;if(!t)return;const r={};if(!e.id){if(e.hasAttribute("data-label")&&(r.label=e.dataset.label),e.hasAttribute("data-latex")&&(r.latex=e.dataset.latex),e.hasAttribute("data-key")&&(r.key=e.dataset.key),e.hasAttribute("data-insert")&&(r.insert=e.dataset.insert),e.hasAttribute("data-variants")&&(r.variants=e.dataset.variants),e.hasAttribute("data-aside")&&(r.aside=e.dataset.aside),e.className&&(r.class=e.className),!r.label&&!r.latex&&!r.key&&!r.insert&&(r.latex=e.innerText,r.label=e.innerHTML),e.hasAttribute("data-command"))try{r.command=JSON.parse(e.dataset.command)}catch(n){}e.id=t.registerKeycap(r)}if(!e.innerHTML){const[n,i]=Wf(r);e.innerHTML=window.MathfieldElement.createHTML(n)}}function Mf(){lc("virtual-keyboard"),lc("core"),vA()}function Ip(){wc("core"),wc("virtual-keyboard")}var Mp=`<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
<symbol id="svg-delete-backward" viewBox="0 0 576 512">
<path d="M432.1 208.1L385.9 256L432.1 303C442.3 312.4 442.3 327.6 432.1 336.1C423.6 346.3 408.4 346.3 399 336.1L352 289.9L304.1 336.1C295.6 346.3 280.4 346.3 271 336.1C261.7 327.6 261.7 312.4 271 303L318.1 256L271 208.1C261.7 199.6 261.7 184.4 271 175C280.4 165.7 295.6 165.7 304.1 175L352 222.1L399 175C408.4 165.7 423.6 165.7 432.1 175C442.3 184.4 442.3 199.6 432.1 208.1V208.1zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H205.3C188.3 448 172 441.3 160 429.3L9.372 278.6C3.371 272.6 0 264.5 0 256C0 247.5 3.372 239.4 9.372 233.4L160 82.75C172 70.74 188.3 64 205.3 64L512 64zM528 128C528 119.2 520.8 112 512 112H205.3C201 112 196.9 113.7 193.9 116.7L54.63 256L193.9 395.3C196.9 398.3 201 400 205.3 400H512C520.8 400 528 392.8 528 384V128z"/>
</symbol>
<symbol id="svg-shift" viewBox="0 0 384 512">
<path d="M2.438 252.3C7.391 264.2 19.06 272 32 272h80v160c0 26.51 21.49 48 48 48h64C250.5 480 272 458.5 272 432v-160H352c12.94 0 24.61-7.797 29.56-19.75c4.953-11.97 2.219-25.72-6.938-34.88l-160-176C208.4 35.13 200.2 32 192 32S175.6 35.13 169.4 41.38l-160 176C.2188 226.5-2.516 240.3 2.438 252.3zM192 86.63L313.4 224H224v208H160V224H70.63L192 86.63z"/>
</symbol>
<symbol id="svg-commit" viewBox="0 0 512 512">
<path d="M135 432.1l-128-128C2.344 300.3 0 294.2 0 288s2.344-12.28 7.031-16.97l128-128c9.375-9.375 24.56-9.375 33.94 0s9.375 24.56 0 33.94L81.94 264H464v-208C464 42.75 474.8 32 488 32S512 42.75 512 56V288c0 13.25-10.75 24-24 24H81.94l87.03 87.03c9.375 9.375 9.375 24.56 0 33.94S144.4 442.3 135 432.1z"/>
</symbol>
<symbol id="circle-plus" viewBox="0 0 512 512"><path d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344c0 13.3 10.7 24 24 24s24-10.7 24-24V280h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H280V168c0-13.3-10.7-24-24-24s-24 10.7-24 24v64H168c-13.3 0-24 10.7-24 24s10.7 24 24 24h64v64z"/></symbol>
<symbol id="svg-command" viewBox="0 0 640 512">
<path d="M34.495 36.465l211.051 211.05c4.686 4.686 4.686 12.284 0 16.971L34.495 475.535c-4.686 4.686-12.284 4.686-16.97 0l-7.071-7.07c-4.686-4.686-4.686-12.284 0-16.971L205.947 256 10.454 60.506c-4.686-4.686-4.686-12.284 0-16.971l7.071-7.07c4.686-4.687 12.284-4.687 16.97 0zM640 468v-10c0-6.627-5.373-12-12-12H300c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h328c6.627 0 12-5.373 12-12z"/>
</symbol>
<symbol id="svg-undo" viewBox="0 0 512 512">
<path d="M20 8h10c6.627 0 12 5.373 12 12v110.625C85.196 57.047 165.239 7.715 256.793 8.001 393.18 8.428 504.213 120.009 504 256.396 503.786 393.181 392.834 504 256 504c-63.926 0-122.202-24.187-166.178-63.908-5.113-4.618-5.354-12.561-.482-17.433l7.069-7.069c4.503-4.503 11.749-4.714 16.482-.454C150.782 449.238 200.935 470 256 470c117.744 0 214-95.331 214-214 0-117.744-95.331-214-214-214-82.862 0-154.737 47.077-190.289 116H180c6.627 0 12 5.373 12 12v10c0 6.627-5.373 12-12 12H20c-6.627 0-12-5.373-12-12V20c0-6.627 5.373-12 12-12z"/>
</symbol>
<symbol id="svg-redo" viewBox="0 0 512 512">
<path d="M492 8h-10c-6.627 0-12 5.373-12 12v110.625C426.804 57.047 346.761 7.715 255.207 8.001 118.82 8.428 7.787 120.009 8 256.396 8.214 393.181 119.166 504 256 504c63.926 0 122.202-24.187 166.178-63.908 5.113-4.618 5.354-12.561.482-17.433l-7.069-7.069c-4.503-4.503-11.749-4.714-16.482-.454C361.218 449.238 311.065 470 256 470c-117.744 0-214-95.331-214-214 0-117.744 95.331-214 214-214 82.862 0 154.737 47.077 190.289 116H332c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h160c6.627 0 12-5.373 12-12V20c0-6.627-5.373-12-12-12z"/>
</symbol>
<symbol id="svg-arrow-left" viewBox="0 0 320 512">
<path d="M206.7 464.6l-183.1-191.1C18.22 267.1 16 261.1 16 256s2.219-11.97 6.688-16.59l183.1-191.1c9.152-9.594 24.34-9.906 33.9-.7187c9.625 9.125 9.938 24.37 .7187 33.91L73.24 256l168 175.4c9.219 9.5 8.906 24.78-.7187 33.91C231 474.5 215.8 474.2 206.7 464.6z"/>
</symbol>
<symbol id="svg-arrow-right" viewBox="0 0 320 512">
<path d="M113.3 47.41l183.1 191.1c4.469 4.625 6.688 10.62 6.688 16.59s-2.219 11.97-6.688 16.59l-183.1 191.1c-9.152 9.594-24.34 9.906-33.9 .7187c-9.625-9.125-9.938-24.38-.7187-33.91l168-175.4L78.71 80.6c-9.219-9.5-8.906-24.78 .7187-33.91C88.99 37.5 104.2 37.82 113.3 47.41z"/>
</symbol>
<symbol id="svg-tab" viewBox="0 0 448 512">
<path d="M32 217.1c0-8.8 7.2-16 16-16h144v-93.9c0-7.1 8.6-10.7 13.6-5.7l143.5 143.1c6.3 6.3 6.3 16.4 0 22.7L205.6 410.4c-5 5-13.6 1.5-13.6-5.7v-93.9H48c-8.8 0-16-7.2-16-16v-77.7m-32 0v77.7c0 26.5 21.5 48 48 48h112v61.9c0 35.5 43 53.5 68.2 28.3l143.6-143c18.8-18.8 18.8-49.2 0-68L228.2 78.9c-25.1-25.1-68.2-7.3-68.2 28.3v61.9H48c-26.5 0-48 21.6-48 48zM436 64h-8c-6.6 0-12 5.4-12 12v360c0 6.6 5.4 12 12 12h8c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12z"/>
</symbol>
<symbol id="svg-paste" viewBox="0 0 512 512"><path d="M160 32c11.6 0 21.3 8.2 23.5 19.2C185 58.6 191.6 64 199.2 64H208c8.8 0 16 7.2 16 16V96H96V80c0-8.8 7.2-16 16-16h8.8c7.6 0 14.2-5.4 15.7-12.8C138.7 40.2 148.4 32 160 32zM64 64h2.7C65 69 64 74.4 64 80V96c0 17.7 14.3 32 32 32H224c17.7 0 32-14.3 32-32V80c0-5.6-1-11-2.7-16H256c17.7 0 32 14.3 32 32h32c0-35.3-28.7-64-64-64H210.6c-9-18.9-28.3-32-50.6-32s-41.6 13.1-50.6 32H64C28.7 32 0 60.7 0 96V384c0 35.3 28.7 64 64 64H192V416H64c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM288 480c-17.7 0-32-14.3-32-32V192c0-17.7 14.3-32 32-32h96v56c0 22.1 17.9 40 40 40h56V448c0 17.7-14.3 32-32 32H288zM416 165.3L474.7 224H424c-4.4 0-8-3.6-8-8V165.3zM448 512c35.3 0 64-28.7 64-64V235.9c0-12.7-5.1-24.9-14.1-33.9l-59.9-59.9c-9-9-21.2-14.1-33.9-14.1H288c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H448z"/></symbol>
<symbol id="svg-cut" viewBox="0 0 512 512"><path d="M485.6 444.2L333.6 314.9C326.9 309.2 326.1 299.1 331.8 292.4C337.5 285.6 347.6 284.8 354.4 290.5L506.4 419.8C513.1 425.5 513.9 435.6 508.2 442.4C502.5 449.1 492.4 449.9 485.6 444.2zM485.7 67.76C492.5 62.07 502.5 62.94 508.2 69.69C513.9 76.45 513.1 86.55 506.3 92.24L208.5 343.1C218.3 359.7 224 379.2 224 400C224 461.9 173.9 512 112 512C50.14 512 0 461.9 0 400C0 338.1 50.14 288 112 288C141.5 288 168.4 299.4 188.4 318.1L262.2 256L188.4 193.9C168.4 212.6 141.5 224 112 224C50.14 224 0 173.9 0 112C0 50.14 50.14 0 112 0C173.9 0 224 50.14 224 112C224 132.8 218.3 152.3 208.5 168.9L287 235.1L485.7 67.76zM32 112C32 156.2 67.82 192 112 192C156.2 192 192 156.2 192 112C192 67.82 156.2 32 112 32C67.82 32 32 67.82 32 112zM112 480C156.2 480 192 444.2 192 400C192 355.8 156.2 320 112 320C67.82 320 32 355.8 32 400C32 444.2 67.82 480 112 480z"/></symbol>
<symbol id="svg-copy" viewBox="0 0 512 512"><path d="M272 416C263.2 416 256 423.2 256 432V448c0 17.67-14.33 32-32 32H64c-17.67 0-32-14.33-32-32V192c0-17.67 14.33-32 32-32h112C184.8 160 192 152.8 192 144C192 135.2 184.8 128 176 128H63.99c-35.35 0-64 28.65-64 64l.0098 256C0 483.3 28.65 512 64 512h160c35.35 0 64-28.65 64-64v-16C288 423.2 280.8 416 272 416zM502.6 86.63l-77.25-77.25C419.4 3.371 411.2 0 402.7 0H288C252.7 0 224 28.65 224 64v256c0 35.35 28.65 64 64 64h160c35.35 0 64-28.65 64-64V109.3C512 100.8 508.6 92.63 502.6 86.63zM416 45.25L466.7 96H416V45.25zM480 320c0 17.67-14.33 32-32 32h-160c-17.67 0-32-14.33-32-32V64c0-17.67 14.33-32 32-32h96l.0026 64c0 17.67 14.33 32 32 32H480V320z"/>
</symbol>
<symbol id="svg-angle-double-right" viewBox="0 0 512 512"><path d="M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"/>
</symbol>
<symbol id="svg-angle-double-left" viewBox="0 0 512 512"><path d="M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L301.3 256 438.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"/>
</symbol>
<symbol id="svg-trash" viewBox="0 0 448 512">
<path d="M336 64l-33.6-44.8C293.3 7.1 279.1 0 264 0h-80c-15.1 0-29.3 7.1-38.4 19.2L112 64H24C10.7 64 0 74.7 0 88v2c0 3.3 2.7 6 6 6h26v368c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V96h26c3.3 0 6-2.7 6-6v-2c0-13.3-10.7-24-24-24h-88zM184 32h80c5 0 9.8 2.4 12.8 6.4L296 64H152l19.2-25.6c3-4 7.8-6.4 12.8-6.4zm200 432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V96h320v368zm-176-44V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm-80 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm160 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12z"/>
</symbol>
<symbol id="svg-keyboard-down" viewBox="0 0 576 512"><path d="M64 48c-8.8 0-16 7.2-16 16V240c0 8.8 7.2 16 16 16H512c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H64zM0 64C0 28.7 28.7 0 64 0H512c35.3 0 64 28.7 64 64V240c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zM159 359c9.4-9.4 24.6-9.4 33.9 0l95 95 95-95c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L305 505c-4.5 4.5-10.6 7-17 7s-12.5-2.5-17-7L159 393c-9.4-9.4-9.4-24.6 0-33.9zm1-167c0-8.8 7.2-16 16-16H400c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V192zM120 88h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H120c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H200c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H280c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H360c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H440c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16z"/></symbol>
</svg>`;function Lp(e){e.resetKeycapRegistry(),Mf();const t=document.createElement("div");t.className="ML__keyboard";const r=document.createElement("div");r.className="MLK__plate",r.innerHTML=window.MathfieldElement.createHTML(Mp+e.normalizedLayouts.map((A,M)=>kp(e,A,M)).join(""));const n=document.createElement("div");n.className="MLK__backdrop",n.appendChild(r),t.appendChild(n),t.addEventListener("pointerdown",Pp,{passive:!1});const i=t.querySelectorAll(".ML__edit-toolbar");if(i)for(const A of i)A.addEventListener("click",M=>{var z,X;let ue=M.target,Ke="";for(;ue&&!Ke;)Ke=(z=ue==null?void 0:ue.getAttribute("data-command"))!=null?z:"",ue=(X=ue==null?void 0:ue.parentElement)!=null?X:null;Ke&&e.executeCommand(JSON.parse(Ke))});b0(t.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const s=t.querySelectorAll(".MLK__layer");console.assert(s.length>0,"No virtual keyboards available");for(const A of s)A.addEventListener("pointerdown",M=>M.preventDefault());return e.currentLayer=e.latentLayer,t}function kp(e,t,r){const n=[];if(!("layers"in t))return"";for(const i of t.layers)n.push(`<div tabindex="-1" class="MLK__layer" id="${i.id}">`),(e.normalizedLayouts.length>1||t.displayEditToolbar)&&(n.push("<div class='MLK__toolbar' role='toolbar'>"),n.push(Ff(e,r)),t.displayEditToolbar&&n.push('<div class="ML__edit-toolbar right"></div>'),n.push("</div>")),n.push(Dp(e,i)),n.push("</div>");return n.join("")}function Dp(e,t){if(typeof t=="string")return t;let r="";if(typeof t.style=="string"?r+=`<style>${t.style}</style>`:typeof t.style=="object"&&(r+=`<style>${rf(t.style)}</style>`),t.backdrop&&(r+=`<div class='${t.backdrop}'>`),t.container&&(r+=`<div class='${t.container}'>`),t.rows){r+="<div class=MLK__rows>";for(const n of t.rows){r+="<div dir='ltr' class=MLK__row>";for(const i of n)if(i){const s=e.registerKeycap(i),[A,M]=Wf(i);/(^|\s)separator/.test(M)?r+=`<div class="${M}"`:r+=`<div tabindex="-1" id="${s}" class="${M}"`,i.tooltip&&(r+=` data-tooltip="${i.tooltip}"`),r+=`>${A}</div>`}r+="</div>"}r+="</div>"}else t.markup&&(r+=t.markup);return t.container&&(r+="</div>"),t.backdrop&&(r+="</div>"),r}function Wf(e,t={shifted:!1}){var r,n,i,s,A,M,z;let X="",ue=(r=e.class)!=null?r:"";if(t.shifted&&af(e)&&(ue+=" is-active"),t.shifted&&"shift"in e)typeof e.shift=="string"?X=$c(e.shift):typeof e.shift=="object"&&(X=e.shift.label?e.shift.label:(n=$c(e.shift.latex||e.shift.insert||"")||e.shift.key)!=null?n:""),typeof e.shift=="object"&&(ue=(s=(i=e.shift.class)!=null?i:e.class)!=null?s:"");else{if(X=e.label?e.label:(A=$c(e.latex||e.insert||"")||e.key)!=null?A:"",e.shift){let Ke;typeof e.shift=="string"?Ke=$c(e.shift):e.shift.label?Ke=e.shift.label:Ke=(M=$c(e.shift.latex||e.shift.insert||"")||e.shift.key)!=null?M:"",X+=`<span class="MLK__shift">${Ke}</span>`}e.aside&&(X+=`<aside>${e.aside}</aside>`)}return e.layer&&!/layer-switch/.test(ue)&&(ue+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(ue)||(ue+=" MLK__keycap"),!/\bw[0-9]+\b/.test(ue)&&e.width&&(ue+=(z={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[e.width])!=null?z:""),[X,ue||"MLK__keycap"]}var Od={"[left]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-left /></svg>",command:["performWithFeedback","moveToPreviousChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-left /></svg>",command:["performWithFeedback","extendSelectionBackward"]}},"[right]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-right /></svg>",command:["performWithFeedback","moveToNextChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-right /></svg>",command:["performWithFeedback","extendSelectionForward"]}},"[up]":{class:"action hide-shift",label:"\u2191",command:["performWithFeedback","moveUp"],shift:{label:"\u219F",command:["performWithFeedback","extendSelectionUpward"]}},"[down]":{class:"action hide-shift",label:"\u2193",command:["performWithFeedback","moveDown"],shift:{label:"\u21A1",command:["performWithFeedback","extendSelectionDownward"]}},"[return]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[action]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{label:"<svg class=svg-glyph><use xlink:href=#circle-plus /></svg>",command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[hr]":{class:"separator horizontal-rule"},"[hide-keyboard]":{class:"action",command:["hideVirtualKeyboard"],width:1.5,label:"<svg class=svg-glyph-lg><use xlink:href=#svg-keyboard-down /></svg>"},"[.]":{variants:".",command:["performWithFeedback","insertDecimalSeparator"],shift:",",class:"big-op hide-shift",label:"."},"[,]":{variants:",",command:["performWithFeedback","insertDecimalSeparator"],shift:".",class:"big-op hide-shift",label:","},"[+]":{variants:[{latex:"\\sum_{#0}^{#0}",class:"small"},"\\oplus"],latex:"+",label:"+",class:"big-op hide-shift",shift:{latex:"\\sum",insert:"\\sum",class:"small"}},"[-]":{variants:["\\pm","\\ominus"],latex:"-",label:"&#x2212;",shift:"\\pm",class:"big-op hide-shift"},"[/]":{class:"big-op hide-shift",shift:{class:"",latex:"\\frac{1}{#@}"},variants:["/","\\div","\\%","\\oslash"],latex:"\\frac{#@}{#?}",label:"&divide;"},"[*]":{variants:[{latex:"\\prod_{#0}^{#0}",class:"small"},"\\otimes","\\cdot"],latex:"\\cdot",label:"&times;",shift:{latex:"\\times"},class:"big-op hide-shift"},"[=]":{variants:["\\neq","\\equiv","\\varpropto","\\thickapprox","\\lt","\\gt","\\le","\\ge"],latex:"=",label:"=",shift:{label:"\u2260",latex:"\\ne"},class:"big-op hide-shift"},"[backspace]":{class:"action bottom right hide-shift",width:1.5,command:["performWithFeedback","deleteBackward"],label:"<svg class=svg-glyph><use xlink:href=#svg-delete-backward /></svg>",shift:{class:"action warning",label:"<svg class=svg-glyph><use xlink:href=#svg-trash /></svg>",command:"deleteAll"}},"[undo]":{class:"ghost if-can-undo",command:"undo",label:"<svg class=svg-glyph><use xlink:href=#svg-undo /></svg>",tooltip:"tooltip.undo"},"[redo]":{class:"ghost if-can-redo",command:"redo",label:"<svg class=svg-glyph><use xlink:href=#svg-redo /></svg>",tooltip:"tooltip.redo"},"[(]":{variants:[{latex:"\\lbrack",key:"["},"\\langle","\\lfloor","\\lceil",{latex:"\\lbrace",key:"{"}],key:"(",label:"(",shift:{label:"[",key:"["},class:"hide-shift"},"[)]":{variants:[{latex:"\\rbrack",key:"]"},"\\rangle","\\rfloor","\\rceil",{latex:"\\rbrace",key:"]"}],key:")",label:")",shift:{label:"]",latex:"\\rbrack"},class:"hide-shift"},"[0]":{variants:"0",latex:"0",label:"0",shift:"\\infty",class:"hide-shift"},"[1]":{variants:"1",latex:"1",label:"1",shift:"#@^{-1}",class:"hide-shift"},"[2]":{variants:"2",latex:"2",label:"2",shift:"#@^2",class:"hide-shift"},"[3]":{variants:"3",latex:"3",label:"3",shift:"#@^3",class:"hide-shift"},"[4]":{variants:"4",latex:"4",label:"4",shift:"#@^4",class:"hide-shift"},"[5]":{variants:"5",latex:"5",label:"5",shift:"#@^5",class:"hide-shift"},"[6]":{variants:"6",latex:"6",label:"6",shift:"#@^6",class:"hide-shift"},"[7]":{variants:"7",latex:"7",label:"7",shift:"#@^7",class:"hide-shift"},"[8]":{variants:"8",latex:"8",label:"8",shift:"#@^8",class:"hide-shift"},"[9]":{variants:"9",latex:"9",label:"9",shift:"#@^9",class:"hide-shift"},"[separator-5]":{class:"separator",width:.5},"[separator]":{class:"separator"},"[separator-10]":{class:"separator"},"[separator-15]":{class:"separator",width:1.5},"[separator-20]":{class:"separator",width:2},"[separator-50]":{class:"separator",width:5},"[shift]":{class:"shift bottom left",width:1.5,label:"<span class=caps-lock-indicator></span><svg class=svg-glyph><use xlink:href=#svg-shift /></svg>"},"[foreground-color]":{variants:"foreground-color",command:["applyStyle",{color:"red"}],label:"<span style='border-radius: 50%;width:22px;height:22px; border: 3px solid #cc2428; box-sizing: border-box'>"},"[background-color]":{variants:"background-color",command:["applyStyle",{backgroundColor:"yellow"}],label:"<span style='border-radius: 50%;width:22px;height:22px; background:#fff590; box-sizing: border-box'></span>"}};function Y0(e){var t;if(typeof e=="string"){if(e==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(e="[,]"),!Od[e])return{latex:e};e={label:e}}let r;return"label"in e&&e.label&&Od[e.label]&&(r=E(f(f({},Od[e.label]),e),{label:Od[e.label].label})),"key"in e&&e.key&&Od[e.key]&&(r=E(f(f({},Od[e.key]),e),{key:Od[e.key].key})),r?(r.command==="insertDecimalSeparator"&&(r.label=(t=window.MathfieldElement.decimalSeparator)!=null?t:"."),e.label==="[action]"&&(r=f(f({},r),window.mathVirtualKeyboard.actionKeycap)),e.label==="[shift]"&&(r=f(f({},r),window.mathVirtualKeyboard.shiftKeycap)),e.label==="[backspace]"&&(r=f(f({},r),window.mathVirtualKeyboard.backspaceKeycap)),e.label==="[tab]"&&(r=f(f({},r),window.mathVirtualKeyboard.tabKeycap)),r):e}var Lf;function Pp(e){var t;if(e.button!==0)return;const r=fd.singleton;if(!r)return;let n=e.target;for(;n&&!n.getAttribute("data-layer");)n=n.parentElement;if(n){r.currentLayer=(t=n.getAttribute("data-layer"))!=null?t:"",e.preventDefault();return}const i=nf(e.target);if(!(i!=null&&i.id))return;const s=r.getKeycap(i.id);if(!s)return;console.assert(e.type==="pointerdown");const A=new AbortController,M=A.signal;i.classList.add("is-pressed"),i.addEventListener("pointerenter",Gf(A),{capture:!0,signal:M}),i.addEventListener("pointerleave",Gf(A),{capture:!0,signal:M}),i.addEventListener("pointercancel",Gf(A),{signal:M}),i.addEventListener("pointerup",Gf(A),{signal:M}),af(s)&&(i.classList.add("is-active"),r.shiftPressCount++),s.variants&&(Lf&&clearTimeout(Lf),Lf=setTimeout(()=>{i.classList.contains("is-pressed")&&(i.classList.remove("is-pressed"),i.classList.add("is-active"),e.target&&"releasePointerCapture"in e.target&&e.target.releasePointerCapture(e.pointerId),Ef(i,()=>{A.abort(),i==null||i.classList.remove("is-active")}))},300)),e.preventDefault()}function Gf(e){return t=>{const r=nf(t.target);if(!(r!=null&&r.id))return;const n=fd.singleton;if(!n)return;const i=n.getKeycap(r.id);if(i){if(t.type==="pointerenter"&&t.target===r&&t.isPrimary&&r.classList.add("is-pressed"),t.type==="pointercancel"){r.classList.remove("is-pressed"),af(i)&&(n.shiftPressCount--,r.classList.toggle("is-active",n.isShifted)),e.abort();return}if(t.type==="pointerleave"&&t.target===r){r.classList.remove("is-pressed"),af(i)&&(n.shiftPressCount--,r.classList.toggle("is-active",n.isShifted));return}if(t.type==="pointerup"){Lf&&clearTimeout(Lf),af(i)?r.classList.toggle("is-active",n.isShifted):r.classList.contains("is-pressed")&&(r.classList.remove("is-pressed"),n.isShifted&&i.shift?typeof i.shift=="string"?n.executeCommand(["insert",i.shift,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]):w0(i.shift):w0(i),n.shiftPressCount===1&&!t.shiftKey&&(n.shiftPressCount=0)),e.abort(),t.preventDefault();return}}}}function w0(e){var t;let r=e.command;!r&&e.insert&&(r=["insert",e.insert,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),!r&&e.key&&(r=["typedText",e.key,{focus:!0,feedback:!0,simulateKeystroke:!0}]),!r&&e.latex&&(r=["insert",e.latex,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),r||(r=["typedText",e.label,{focus:!0,feedback:!0,simulateKeystroke:!0}]),(t=fd.singleton)==null||t.executeCommand(r)}function Np(e){if(e.nodeType!==1)return!1;const t=e.classList;return t.contains("MLK__keycap")||t.contains("shift")||t.contains("action")||t.contains("fnbutton")||t.contains("bigfnbutton")}function nf(e){if(!e)return;let t=e;for(;t&&!Np(t);)t=t.parentElement;return t!=null?t:void 0}function af(e){return!!e.class&&/(^|\s)shift($|\s)/.test(e.class)}var fd=class Ep{constructor(){this.originalContainerBottomPadding=null,this.keycapRegistry={},this._shiftPressCount=0;var t,r,n;this.targetOrigin=window.origin,this.originValidator="none",this._alphabeticLayout="auto",this._layouts=Object.freeze(["default"]),this._editToolbar="default",this._container=(r=(t=window.document)==null?void 0:t.body)!=null?r:null,this._visible=!1,this._rebuilding=!1,this.observer=new ResizeObserver(i=>{this.adjustBoundingRect(),this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect})}),this.listeners={};try{(n=window.top)==null||n.addEventListener("message",this)}catch(i){window.addEventListener("message",this)}document.body.addEventListener("focusin",i=>{const s=i.target;s!=null&&s.isConnected&&setTimeout(()=>{const A=q0();A&&!A.readOnly&&A.mathVirtualKeyboardPolicy==="auto"&&R()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",i=>{i.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{q0()||this.hide()},300)})}get currentLayer(){var t,r,n;return(n=(r=(t=this._element)==null?void 0:t.querySelector(".MLK__layer.is-visible"))==null?void 0:r.id)!=null?n:""}set currentLayer(t){var r;if(!this._element){this.latentLayer=t;return}let n=t?this._element.querySelector(`#${t}.MLK__layer`):null;n||(n=this._element.querySelector(".MLK__layer")),n&&((r=this._element.querySelector(".MLK__layer.is-visible"))==null||r.classList.remove("is-visible"),n.classList.add("is-visible")),this.render()}get shiftPressCount(){return this._shiftPressCount}set shiftPressCount(t){var r;this._shiftPressCount=t>2||t<0?0:t,(r=this._element)==null||r.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.render()}get isShifted(){return this._shiftPressCount>0}resetKeycapRegistry(){this.keycapRegistry={}}registerKeycap(t){const r="ML__k"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);return this.keycapRegistry[r]=t,r}getKeycap(t){return t?this.keycapRegistry[t]:void 0}getLayer(t){const r=this.normalizedLayouts;for(const n of r)for(const i of n.layers)if(i.id===t)return i}get alphabeticLayout(){return this._alphabeticLayout}set alphabeticLayout(t){this._alphabeticLayout=t,this.rebuild()}get actionKeycap(){return this._actionKeycap}set actionKeycap(t){this._actionKeycap=typeof t=="string"?{label:t}:t}get shiftKeycap(){return this._shiftKeycap}set shiftKeycap(t){this._shiftKeycap=typeof t=="string"?{label:t}:t}get backspaceKeycap(){return this._backspaceKeycap}set backspaceKeycap(t){this._backspaceKeycap=typeof t=="string"?{label:t}:t}get tabKeycap(){return this._tabKeycap}set tabKeycap(t){this._tabKeycap=typeof t=="string"?{label:t}:t}get layouts(){return this._layouts}set layouts(t){this.updateNormalizedLayouts(t),this.rebuild()}updateNormalizedLayouts(t){const r=Array.isArray(t)?[...t]:[t],n=r.findIndex(i=>i==="default");n>=0&&r.splice(n,1,"numeric","symbols","alphabetic","greek"),this._layouts=Object.freeze(r),this._normalizedLayouts=r.map(i=>Nd(i))}get normalizedLayouts(){return this._normalizedLayouts||this.updateNormalizedLayouts(this._layouts),this._normalizedLayouts}get editToolbar(){return this._editToolbar}set editToolbar(t){this._editToolbar=t,this.rebuild()}get container(){return this._container}set container(t){this._container=t,this.rebuild()}static get singleton(){if(this._singleton===void 0)try{this._singleton=new Ep}catch(t){this._singleton=null}return this._singleton}get style(){return this._style}addEventListener(t,r,n){this.listeners[t]||(this.listeners[t]=new Set),this.listeners[t].has(r)||this.listeners[t].add(r)}dispatchEvent(t){return!this.listeners[t.type]||this.listeners[t.type].size===0?!0:(this.listeners[t.type].forEach(r=>{typeof r=="function"?r(t):r==null||r.handleEvent(t)}),!t.defaultPrevented)}removeEventListener(t,r,n){this.listeners[t]&&this.listeners[t].delete(r)}get element(){return this._element}set element(t){var r;this._element!==t&&((r=this._element)==null||r.remove(),this._element=t)}get visible(){return this._visible}set visible(t){t?this.show():this.hide()}get boundingRect(){var t;if(!this._visible)return new DOMRect;const r=(t=this._element)==null?void 0:t.getElementsByClassName("MLK__plate")[0];return r?r.getBoundingClientRect():new DOMRect}adjustBoundingRect(){var t,r;const n=this.boundingRect.height;if(this.container===document.body){(t=this._element)==null||t.style.setProperty("--_keyboard-height",`calc(${n}px + var(--_padding-top) + var(--_padding-bottom) + env(safe-area-inset-bottom, 0))`);const i=n-1;this.container.style.paddingBottom=this.originalContainerBottomPadding?`calc(${this.originalContainerBottomPadding} + ${i}px)`:`${i}px`}else(r=this._element)==null||r.style.setProperty("--_keyboard-height",`${n}px`)}rebuild(){if(this._rebuilding||!this._element)return;this._rebuilding=!0;const t=this.currentLayer;requestAnimationFrame(()=>{this._rebuilding=!1,this._element&&(this._element.remove(),this._element=void 0),this.visible&&(this.buildAndAttachElement(),this.currentLayer=t,this.render(),this.adjustBoundingRect(),this._element.classList.add("is-visible"))})}render(){if(!this._element)return;const t=this.getLayer(this.currentLayer);this._element.classList.toggle("backdrop-is-transparent",!!(t&&(t.backdrop||t.container)));const r=this._element.querySelectorAll(".MLK__layer.is-visible .MLK__keycap, .MLK__layer.is-visible .action, .fnbutton, .MLK__layer.is-visible .bigfnbutton, .MLK__layer.is-visible .shift");if(r)for(const n of r){const i=this.getKeycap(n.id);if(i){const[s,A]=Wf(i,{shifted:this.isShifted});n.innerHTML=window.MathfieldElement.createHTML(s),n.className=A}}}show(t){var r;if(this._visible)return;const n=this.container;if(n&&window.mathVirtualKeyboard&&this.stateWillChange(!0)){if(this._element||(this.buildAndAttachElement(),this.adjustBoundingRect()),!this._visible){const i=this._element.getElementsByClassName("MLK__plate")[0];if(i&&this.observer.observe(i),n===window.document.body){const s=n.style.paddingBottom;this.originalContainerBottomPadding=s;const A=i.offsetHeight-1;n.style.paddingBottom=s?`calc(${s} + ${A}px)`:`${A}px`}window.addEventListener("mouseup",this),window.addEventListener("blur",this),window.addEventListener("keydown",this,{capture:!0}),window.addEventListener("keyup",this,{capture:!0}),(r=this._element)==null||r.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.currentLayer=this.latentLayer}this._visible=!0,t!=null&&t.animate?requestAnimationFrame(()=>{this._element&&(this._element.classList.add("animate"),this._element.addEventListener("transitionend",()=>{var i;return(i=this._element)==null?void 0:i.classList.remove("animate")},{once:!0}),this._element.classList.add("is-visible"),this.stateChanged())}):(this._element.classList.add("is-visible"),this.stateChanged())}}hide(t){var r;const n=this.container;if(n&&this._visible&&this.stateWillChange(!1)){if(this._visible=!1,this._element){this.latentLayer=this.currentLayer;const i=this._element.getElementsByClassName("MLK__plate")[0];i&&this.observer.unobserve(i),window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("keydown",this,{capture:!0}),window.removeEventListener("keyup",this,{capture:!0}),window.removeEventListener("contextmenu",this,{capture:!0}),Dd(),Ip(),(r=this._element)==null||r.remove(),this._element=void 0,this.originalContainerBottomPadding!==null&&(n.style.paddingBottom=this.originalContainerBottomPadding)}this.stateChanged()}}get height(){var t,r;return(r=(t=this.element)==null?void 0:t.offsetHeight)!=null?r:0}buildAndAttachElement(){var t;console.assert(!this.element),this.element=Lp(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",r=>{r.shiftKey||((r.ctrlKey||r.button===2)&&Ef(r.target),r.preventDefault(),r.stopPropagation())},{capture:!0}),(t=this.container)==null||t.appendChild(this.element)}handleEvent(t){if(tf(t)){if(!kA(t.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${t.origin}) cannot be handled`,"SecurityError");t.data.action==="disconnect"?this.connectedMathfieldWindow=void 0:t.data.action!=="update-setting"&&t.data.action!=="proxy-created"&&t.data.action!=="execute-command"&&(console.assert(t.source!==void 0),this.connectedMathfieldWindow=t.source),this.handleMessage(t.data,t.source)}if(this._element)switch(t.type){case"mouseup":case"blur":document.body.style.userSelect="",this.shiftPressCount=0;break;case"contextmenu":t.button!==2&&t.preventDefault();break;case"keydown":{t.key==="Shift"&&!t.repeat&&(this.shiftPressCount=1);break}case"keyup":{(t.key==="Shift"||!t.getModifierState("Shift")&&this.shiftPressCount!==2)&&(this.shiftPressCount=0);break}}}handleMessage(t,r){const{action:n}=t;if(n==="execute-command"){const{command:i}=t,s=dd(i);if(window.top!==void 0&&s!=="virtual-keyboard")return;this.executeCommand(i);return}if((n==="connect"||n==="show")&&this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},r),n!=="disconnect"&&window===window.top){if(n==="show"){typeof t.animate!="undefined"?this.show({animate:t.animate}):this.show();return}if(n==="hide"){typeof t.animate!="undefined"?this.hide({animate:t.animate}):this.hide();return}if(n==="update-setting"){t.alphabeticLayout&&(this.alphabeticLayout=t.alphabeticLayout),t.layouts&&(this.layouts=t.layouts),t.editToolbar&&(this.editToolbar=t.editToolbar);return}if(n==="proxy-created"){this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},r);return}}}sendMessage(t,r,n){if(n||(n=this.connectedMathfieldWindow),this.targetOrigin===null||this.targetOrigin==="null"||n===window){window.dispatchEvent(new MessageEvent("message",{source:window,data:f({type:Ld,action:t},r)}));return}if(n)n.postMessage(f({type:Ld,action:t},r),{targetOrigin:this.targetOrigin});else if(r.command&&this.dispatchEvent(new CustomEvent("math-virtual-keyboard-command",{detail:r.command})),t==="execute-command"&&Array.isArray(r.command)&&r.command[0]==="insert"){const i=r.command[1].split("");for(const s of i)this.dispatchEvent(new KeyboardEvent("keydown",{key:s,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:s,bubbles:!0}))}}stateWillChange(t){return this.dispatchEvent(new CustomEvent("before-virtual-keyboard-toggle",{detail:{visible:t},bubbles:!0,cancelable:!0,composed:!0}))}stateChanged(){this.dispatchEvent(new Event("virtual-keyboard-toggle")),this._visible||(this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect}))}focus(){this.sendMessage("focus",{})}blur(){this.sendMessage("blur",{})}updateToolbar(t){const r=this._element;if(!r)return;r.classList.toggle("is-math-mode",t.mode==="math"),r.classList.toggle("is-text-mode",t.mode==="text"),r.classList.toggle("can-undo",t.canUndo),r.classList.toggle("can-redo",t.canRedo),r.classList.toggle("can-copy",!t.selectionIsCollapsed),r.classList.toggle("can-copy",!t.selectionIsCollapsed),r.classList.toggle("can-paste",!0);const n=r.querySelectorAll(".ML__edit-toolbar");if(n)for(const i of n)i.innerHTML=Vf(this,t)}update(t){this._style=t.style,this.updateToolbar(t)}connect(){this.connectedMathfieldWindow=window}disconnect(){this.connectedMathfieldWindow=void 0}executeCommand(t){let r,n=[],i=dd(t);return S(t)?(r=t[0],r==="performWithFeedback"&&(t=t.slice(1),i=dd(t)),n=t.slice(1)):r=t,r=r.replace(/-\w/g,s=>s[1].toUpperCase()),i==="virtual-keyboard"?oA[r].fn(void 0,...n):(this.sendMessage("execute-command",{command:t}),!1)}dispose(){window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("message",this)}};function q0(){var e,t;let r=ca(),n=null;for(;r;){if("host"in r&&((t=(e=r.host)==null?void 0:e.tagName)==null?void 0:t.toLowerCase())==="math-field"){n=r.host;break}r=r.parentNode}return n}if(N()&&!("mathVirtualKeyboard"in window))if(window===window.top){const e=fd.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>e})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>y0.singleton,configurable:!0});function Xf(e){const t={};for(const r of Object.keys(e))switch(r){case"scriptDepth":const n=e.scriptDepth;if(S(n))t.scriptDepth=[n[0],n[1]];else if(typeof n=="number")t.scriptDepth=[n,n];else if(typeof n=="string"){const[s,A]=n.split(",").map(M=>parseInt(M.trim()));t.scriptDepth=[s,A]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let i=e.mathVirtualKeyboardPolicy.toLowerCase();if(i==="sandboxed"){if(window!==window.top){const s=fd.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>s})}i="manual"}t.mathVirtualKeyboardPolicy=i;break;case"letterShapeStyle":e.letterShapeStyle==="auto"?te.locale.startsWith("fr")?t.letterShapeStyle="french":t.letterShapeStyle="tex":t.letterShapeStyle=e.letterShapeStyle;break;case"defaultMode":["text","math","inline-math"].includes(e.defaultMode)?t.defaultMode=e.defaultMode:(console.error('MathLive 0.98.5: valid values for defaultMode are "text", "math" or "inline-math"'),t.defaultMode="math");break;case"macros":t.macros=De(e.macros);break;default:S(e[r])?t[r]=[...e[r]]:typeof e[r]=="object"&&!(e[r]instanceof Element)&&r!=="computeEngine"?t[r]=f({},e[r]):t[r]=e[r]}return t}function Td(e,t){let r;typeof t=="string"?r=[t]:t===void 0?r=Object.keys(e):r=t;const n={};for(const i of r)e[i]===null?n[i]=null:S(e[i])?n[i]=[...e[i]]:typeof e[i]=="object"&&!(e[i]instanceof Element)&&i!=="computeEngine"?n[i]=f({},e[i]):n[i]=e[i];return typeof t=="string"?n[t]:n}function Jf(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:je,backgroundColorMap:q,letterShapeStyle:te.locale.startsWith("fr")?"french":"tex",minFontScale:0,smartMode:!1,smartFence:!0,smartSuperscript:!0,scriptDepth:[1/0,1/0],removeExtraneousParentheses:!0,isImplicitFunction:e=>["\\sin","\\cos","\\tan","\\arcsin","\\arccos","\\arctan","\\arcsec","\\arccsc","\\arsinh","\\arcosh","\\artanh","\\arcsech","\\arccsch","\\arg","\\ch","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\sec","\\sinh","\\sh","\\tanh","\\tg","\\th","\\lg","\\lb","\\log","\\ln"].includes(e),mathModeSpace:"",placeholderSymbol:"\u25A2",contentPlaceholder:"",popoverPolicy:"auto",environmentPopoverPolicy:"off",keybindings:bs,inlineShortcuts:P,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:Ia,value:""}}function eh(e){return e.defaultMode==="inline-math"?"math":e.defaultMode}function hd(e,t){!e||!t||(S(e)?e.forEach(r=>hd(r,t)):typeof e=="object"&&!e.style.color&&!e.style.backgroundColor&&!e.style.fontFamily&&!e.style.fontShape&&!e.style.fontSeries&&!e.style.fontSize&&!e.style.variant&&!e.style.variantStyle&&(e.applyStyle(t),hd(e.body,t),hd(e.above,t),hd(e.below,t),hd(e.subscript,t),hd(e.superscript,t)))}function x0(e,t,r,n){function i(A,M){for(const z of s)if(z.style[A]!==M)return!1;return!0}if(t=e.normalizeRange(t),t[0]===t[1])return!1;const s=e.getAtoms(t,{includeChildren:!0});n.operation==="toggle"&&(r.color&&i("color",r.color)&&(r.color="none",delete r.verbatimColor),r.backgroundColor&&i("backgroundColor",r.backgroundColor)&&(r.backgroundColor="none",delete r.verbatimBackgroundColor),r.fontFamily&&i("fontFamily",r.fontFamily)&&(r.fontFamily="none"),r.fontSeries&&i("fontSeries",r.fontSeries)&&(r.fontSeries="auto"),r.fontShape&&i("fontShape",r.fontShape)&&(r.fontShape="auto"),r.fontSize&&i("fontSize",r.fontSize)&&(r.fontSize=Lo),r.variant&&i("variant",r.variant)&&(r.variant="normal"),r.variantStyle&&i("variantStyle",r.variantStyle)&&(r.variantStyle=""));for(const A of s)A.applyStyle(r);return!0}function Op(e,t){const r=e.at(e.position);if(r.type==="composition")r.value=t;else{const{caret:n}=r;r.caret=void 0;const i=new zu(t,{mode:r.mode});i.caret=n,r.parent.addChildAfter(i,r),e.position+=1}}function Tp(e){const t=e.at(e.position);t.type==="composition"&&(t.parent.removeChild(t),e.position-=1)}qe(["math","displaymath"],UA),qe("center",UA),pe("displaylines","",{parse:e=>{const t=[];let r=[];e.beginContext({tabular:!0});do{if(e.end()||e.match("<}>"))break;e.matchColumnSeparator()||e.matchRowSeparator()?(t.push([r]),r=[]):r.push(...e.scan(n=>["<}>","&","\\cr","\\\\","\\tabularnewline"].includes(n)))}while(!0);return e.endContext(),t.push([r]),t},createAtom:e=>new Ra("lines",e.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),Et("array","{columns:colspec}",(e,t,r,n)=>new Ra(e,C0(t),r,{columns:n[0],mathstyleName:"textstyle"})),Et(["equation","equation*","subequations"],"",(e,t,r)=>new Ra(e,C0(t),r,{columns:[{align:"c"}]})),Et(["multline","multline*"],"",UA),Et(["align","align*","aligned","eqnarray"],"",UA),Et("split","",UA),Et(["gather","gathered"],"",UA),Et(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",UA),Et(["smallmatrix","smallmatrix*"],"[columns:colspec]",UA),Et(["cases","dcases","rcases"],"",UA);function Up(e){for(const t of e)for(const r of t)if(r.length>0)return!1;return!0}function C0(e,t=1){return Up(e)?Array(t).fill([[new zr({type:"first"}),new ql]]):e.map(r=>r.length===0?[[new zr({type:"first"})]]:r.map(n=>n.length===0?[new zr({type:"first"})]:(n[0].type!=="first"&&n.unshift(new zr({type:"first"})),n)))}function UA(e,t=[[[]]],r=[],n=[]){switch(t=C0(t,["split","align","align*","aligned","eqnarray"].includes(e)?2:1),e){case"math":return new Ra(e,t,r,{mathstyleName:"textstyle"});case"displaymath":return new Ra(e,t,r,{mathstyleName:"textstyle"});case"center":return new Ra(e,t,r,{columns:[{align:"c"}]});case"multline":case"multline*":return new Ra(e,t,r,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new Ra(e,t,r,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new Ra(e,t,r,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new Ra(e,t,r,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:Ud(n[0])});case"bmatrix":case"bmatrix*":return new Ra(e,t,r,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:Ud(n[0])});case"Bmatrix":case"Bmatrix*":return new Ra(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:Ud(n[0])});case"vmatrix":case"vmatrix*":return new Ra(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:Ud(n[0])});case"Vmatrix":case"Vmatrix*":return new Ra(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:Ud(n[0])});case"matrix":case"matrix*":return new Ra(e,t,r,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:Ud(n==null?void 0:n[0])});case"smallmatrix":case"smallmatrix*":return new Ra(e,t,r,{mathstyleName:"scriptstyle",columns:Ud(n==null?void 0:n[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new Ra(e,t,r,{mathstyleName:e==="dcases"?"displaystyle":"textstyle",arraystretch:1.2,leftDelim:"\\lbrace",rightDelim:".",columns:[{align:"l"},{gap:1},{align:"l"}]});case"rcases":return new Ra(e,t,r,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new Ra(e,t,r,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let i=0;for(const M of t)i=Math.max(i,M.length);const s=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let A=2;for(;A<i;)s.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),A+=2;return s.push({gap:0}),new Ra(e,t,r,{arraycolsep:0,columns:s,minColumns:2})}}return new Ra(e,t,r,{mathstyleName:"textstyle"})}function Ud(e){return e!=null?e:[{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"}]}function Rp(e,t){let r=e.at(e.position);for(;r&&!(r.parent instanceof Ra);)r=r.parent;if(r&&r.type==="array"&&r.environmentName,!r||!(r.parent instanceof Ra)){const n=e.at(e.position);if(r=n,!r.parent.parent){let i=e.extractAtoms([e.position,e.lastOffset]),s=e.extractAtoms([0,e.position]);s.length===0&&(s=e0()),i.length===0&&(i=e0());let A;return t.endsWith("column")?(A=UA("split",[[s,i]]),e.root=A,Rd(A,0,0)?Qd(e,A,0,0):Rd(A,0,1)?Qd(e,A,0,1):e.position=e.offsetOf(n)):(A=UA("lines",[[s],[i]]),e.root=A,Rd(A,0,0)?Qd(e,A,0,0):Rd(A,1,0)?Qd(e,A,1,0):e.position=e.offsetOf(n)),[void 0,[0,0]]}if(r.parent instanceof ko){const i=r.parent;let s=e.extractAtoms([e.position,e.offsetOf(i.lastChild)]),A=e.extractAtoms([e.offsetOf(i.firstChild),e.position]);A.length===0&&(A=e0()),s.length===0&&(s=e0());let M="pmatrix";const z=i.leftDelim,X=i.rightDelim;z==="("&&(X===")"||X==="?")?M="pmatrix":(z==="["||z==="\\lbrack")&&(X==="]"||X==="\\rbrack"||X==="?")?M="bmatrix":z==="\\vert"&&X==="\\vert"?M="vmatrix":z==="\\Vert"&&X==="\\Vert"?M="Vmatrix":(z==="{"||z==="\\lbrace")&&(X==="."||X==="?")&&(M="cases");const ue=UA(M,t.endsWith("column")?[[A,s]]:[[A],[s]]);return i.parent.addChildBefore(ue,i),i.parent.removeChild(i),Rd(ue,0,0)?Qd(e,ue,0,0):t.endsWith("column")?Rd(ue,0,1)?Qd(e,ue,0,1):e.position=e.offsetOf(r):Rd(ue,1,0)?Qd(e,ue,1,0):e.position=e.offsetOf(r),[void 0,[0,0]]}}return r&&r.parent instanceof Ra?[r.parent,r.parentBranch]:[void 0,[0,0]]}function Rd(e,t,r){const n=e.getCell(t,r);return!n||n.length!==2?!1:n[1].type==="placeholder"}function Qp(e,t,r,n){const i=t.getCell(r,n);return i?[e.offsetOf(i[0]),e.offsetOf(i[i.length-1])]:-1}function Qd(e,t,r,n){const i=Qp(e,t,r,n);typeof i!="number"&&e.setSelection(i)}function Yf(e,t,r,n,i){const s=t.getCell(r,n);s&&e.setPositionHandlingPlaceholder(e.offsetOf(s[i==="start"?0:s.length-1]))}function qf(e,t){const[r,[n,i]]=Rp(e,t);if(r)switch(t){case"after row":r.addRowAfter(n),Yf(e,r,n+1,0,"end");break;case"after column":if(r.maxColumns<=r.colCount){e.announce("plonk");return}r.addColumnAfter(i),Yf(e,r,n,i+1,"end");break;case"before row":r.addRowBefore(n),Yf(e,r,n,0,"start");break;case"before column":if(r.maxColumns<=r.colCount){e.announce("plonk");return}r.addColumnBefore(i),Yf(e,r,n,i,"start");break}}function th(e){return e.contentWillChange({inputType:"insertText"})?(qf(e,"after row"),e.contentDidChange({inputType:"insertText"}),!0):!1}function Kp(e){return e.contentWillChange({inputType:"insertText"})?(qf(e,"before row"),e.contentDidChange({inputType:"insertText"}),!0):!1}function rh(e){return e.contentWillChange({inputType:"insertText"})?(qf(e,"after column"),e.contentDidChange({inputType:"insertText"}),!0):!1}function Hp(e){return e.contentWillChange({inputType:"insertText"})?(qf(e,"before column"),e.contentDidChange({inputType:"insertText"}),!0):!1}function nh(e,t){if(!e.contentWillChange({}))return!1;e.mathfield.snapshot();let r=".",n=".";switch(t){case"pmatrix":case"pmatrix*":r="(",n=")";break;case"bmatrix":case"bmatrix*":r="[",n="]";break;case"Bmatrix":case"Bmatrix*":r="\\lbrace",n="\\rbrace";break;case"vmatrix":case"vmatrix*":r="\\vert",n="\\vert";break;case"Vmatrix":case"Vmatrix*":r="\\Vert",n="\\Vert";break;case"matrix":case"matrix*":r=".",n=".";break;case"cases":case"dcases":r="\\lbrace";break;case"rcases":n="\\rbrace";break}const i=e.at(e.position),s=i.type==="array"?i:e.parentEnvironment;return s.environmentName=t,s.leftDelim=r,s.rightDelim=n,e.contentDidChange({}),!0}function ih(e,t){let r=e.at(e.position);for(;r&&!(Array.isArray(r.parentBranch)&&r.parent instanceof Ra);)r=r.parent;if(Array.isArray(r==null?void 0:r.parentBranch)&&(r==null?void 0:r.parent)instanceof Ra){const n=r.parent,i=r.parentBranch;let s;switch(t){case"row":if(n.rowCount>1){n.removeRow(i[0]);const A=n.getCell(Math.max(0,i[0]-1),i[1]);s=e.offsetOf(A[A.length-1])}break;case"column":if(n.colCount>n.minColumns){n.removeColumn(i[1]);const A=n.getCell(i[0],Math.max(0,i[1]-1));s=e.offsetOf(A[A.length-1])}break}s&&e.setPositionHandlingPlaceholder(s)}}function jp(e){return e.contentWillChange({inputType:"deleteContent"})?(ih(e,"row"),e.contentDidChange({inputType:"deleteContent"}),!0):!1}function zp(e){return e.contentWillChange({inputType:"deleteContent"})?(ih(e,"column"),e.contentDidChange({inputType:"deleteContent"}),!0):!1}_l({addRowAfter:th,addColumnAfter:rh,addRowBefore:Kp,addColumnBefore:Hp,removeRow:jp,removeColumn:zp,setEnvironment:nh},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function e0(){return[new ql]}var ah=class _p{constructor(t){this.recording=!1,this.model=t,this.reset()}reset(){this.stack=[],this.index=-1,this.lastOp=""}startRecording(){this.recording=!0}stopRecording(){this.recording=!1}canUndo(){return this.index-1>=0}canRedo(){return this.stack.length-1>this.index}stopCoalescing(t){t&&this.index>=0&&(this.stack[this.index].selection=t),this.lastOp=""}undo(){return this.canUndo()?(this.model.setState(this.stack[this.index-1],{silenceNotifications:!1,type:"undo"}),this.index-=1,this.lastOp="",!0):!1}redo(){return this.canRedo()?(this.index+=1,this.model.setState(this.stack[this.index],{silenceNotifications:!1,type:"redo"}),this.lastOp="",!0):!1}pop(){this.canUndo()&&(this.stack.splice(this.index,this.stack.length-this.index),this.index-=1)}snapshot(t){return this.recording?(t&&t===this.lastOp&&this.pop(),this.stack.splice(this.index+1,this.stack.length-this.index-1),this.stack.push(this.model.getState()),this.index+=1,this.stack.length>_p.maximumDepth&&(this.stack.shift(),this.index-=1),this.lastOp=t!=null?t:"",!0):!1}};ah.maximumDepth=1e3;var $p=ah;function B0(e,t,r){if(e.at(t).mode!=="text")return t;const n=r==="backward"?-1:1;let i;if(d.test(e.at(t).value)){let s=t,A;do A=e.at(s).mode==="text"&&d.test(e.at(s).value),s+=n;while(e.at(s)&&A);i=e.at(s)?s-2*n:s-n}else if(/\s/.test(e.at(t).value)){let s=t;for(;e.at(s)&&e.at(s).mode==="text"&&/\s/.test(e.at(s).value);)s+=n;if(!e.at(s))i=s-n;else{let A=!0;do A=e.at(s).mode==="text"&&!/\s/.test(e.at(s).value),s+=n;while(e.at(s)&&A);i=e.at(s)?s-2*n:s-n}}else{let s=t;for(;e.at(s)&&e.at(s).mode==="text"&&!/\s/.test(e.at(s).value);)s+=n;i=e.at(s)?s:s-n;let A=!0;for(;e.at(s)&&A;)A=e.at(s).mode==="text"&&/\s/.test(e.at(s).value),A&&(i=s),s+=n;i=e.at(s)?s-2*n:s-n}return i-(n>0?0:1)}function of(e,t,r){var n,i,s,A,M,z,X;const ue=e.position;(n=r==null?void 0:r.extend)!=null&&n||e.collapseSelection(t);let Ke=e.at(e.position);if(t==="forward"&&(Ke.type==="subsup"?(Ke=Ke.rightSibling,Ke||(Ke=e.at(e.position+1))):Ke=e.at(e.position+1)),!Ke)return e.announce("plonk"),!1;let ft=e.offsetOf(Ke);if(Ke instanceof oc)ft=B0(e,ft,t);else if(Ke instanceof Ls)if(Ke.isSuggestion)for(console.assert(t==="forward");Ke&&Ke instanceof Ls;)Ke.isSuggestion=!1,ft=e.offsetOf(Ke),Ke=Ke.rightSibling;else if(t==="forward"){if(Ke=Ke.rightSibling,!Ke||!(Ke instanceof Ls))return e.announce("plonk"),!1;for(;Ke&&Ke instanceof Ls&&/[a-zA-Z\*]/.test(Ke.value);)ft=e.offsetOf(Ke),Ke=Ke.rightSibling}else{if(Ke=Ke.leftSibling,!Ke||!(Ke instanceof Ls))return e.announce("plonk"),!1;for(;Ke&&Ke instanceof Ls&&/[a-zA-Z\*]/.test(Ke.value);)ft=e.offsetOf(Ke),Ke=Ke.leftSibling}else if(t==="forward"&&Ke.type==="mopen"){let Ft=0;do Ke.type==="mopen"?Ft+=1:Ke.type==="mclose"&&(Ft-=1),Ke=Ke.rightSibling;while(!Ke.isLastSibling&&Ft!==0);ft=e.offsetOf(Ke.leftSibling)}else if(t==="backward"&&Ke.type==="mclose"){let Ft=0;do Ke.type==="mopen"?Ft+=1:Ke.type==="mclose"&&(Ft-=1),Ke=Ke.leftSibling;while(!Ke.isFirstSibling&&Ft!==0);ft=e.offsetOf(Ke)}else if(t==="backward")if(Ke.type==="first")for(;ft>0&&Ke.type==="first";)ft-=1,Ke=e.at(ft);else{const Ft=Ke.type;Ke.type==="subsup"&&(ft=e.offsetOf(e.at(ft).leftSibling)),ft-=1;let Nt=(i=e.at(ft))==null?void 0:i.type;for(;ft>=0&&Nt===Ft;)((s=e.at(ft))==null?void 0:s.type)==="subsup"?ft=e.offsetOf(e.at(ft).leftSibling):ft-=1,Nt=e.at(ft).type}else{const{type:Ft}=Ke;let Nt=(A=e.at(ft))==null?void 0:A.type;const{lastOffset:Er}=e;for(;ft<=Er&&(Nt===Ft||Nt==="subsup");){for(;((M=e.at(ft).rightSibling)==null?void 0:M.type)==="subsup";)ft=e.offsetOf(e.at(ft).rightSibling);ft+=1,Nt=(z=e.at(ft))==null?void 0:z.type}ft-=1}if((X=r==null?void 0:r.extend)!=null&&X){if(!e.setSelection(e.anchor,ft))return e.announce("plonk"),!1}else{if(ft===e.position)return e.announce("plonk"),!1;e.position=ft}return e.announce("move",ue),e.mathfield.stopCoalescingUndo(),!0}function Fu(e,t,r){var n,i;if(r=r!=null?r:{extend:!1},e.mathfield.adoptStyle=t==="backward"?"right":"left",t!=="forward"){const[M,z]=Bu(e);M!==void 0&&z!==void 0&&e.deleteAtoms([M,z])}if(t==="upward")return Vp(e,r);if(t==="downward")return Wp(e,r);if(r.extend){let M=t0(e,e.position,t);M<0&&(M=0),M>e.lastOffset&&(M=e.lastOffset);const z=e.setSelection(e.anchor,M);return e.mathfield.stopCoalescingUndo(),z}if(e.selectionIsPlaceholder){e.collapseSelection(t);const M=Fu(e,t);return e.mathfield.stopCoalescingUndo(),M}let s=e.position;const A=s;if(e.collapseSelection(t)?(s=e.position,oh(e,s)||(s=t0(e,s,t))):s=t0(e,s,t),s<0||s>e.lastOffset){let M=!0;return e.silenceNotifications||(M=(i=(n=e.mathfield.host)==null?void 0:n.dispatchEvent(new CustomEvent("move-out",{detail:{direction:t},cancelable:!0,bubbles:!0,composed:!0})))!=null?i:!0),M&&e.announce("plonk"),M}return e.setPositionHandlingPlaceholder(s),e.mathfield.stopCoalescingUndo(),e.announce("move",A),!0}function t0(e,t,r){return t=t+(r==="forward"?1:-1),t<0||t>e.lastOffset||oh(e,t)?t:t0(e,t,r)}function oh(e,t){var r;const n=e.at(t);let i=n.parent;for(;i&&!i.inCaptureSelection;)i=i.parent;return!(i!=null&&i.inCaptureSelection||(r=n.parent)!=null&&r.skipBoundary&&(!n.isFirstSibling&&n.isLastSibling||n.type==="first")||e.mathfield.hasEditablePrompts&&!n.parentPrompt)}function Zp(e,t,r){let n=1/0,i=0;for(;i<t.length;i++){const s=JA(e.getHTMLElement(t[i])).right,A=Math.abs(r-s);if(A<=n)n=A;else break}return t[i-1]}function r0(e,t,r,n,i){const s=e.mathfield.hasEditablePrompts,A=s?r.filter(X=>X.type==="prompt"&&!X.captureSelection):r,M=JA(e.mathfield.getHTMLElement(t)).right,z=e.offsetOf(Zp(e.mathfield,A,M))-(s?1:0);if(n){const[X,ue]=e.selection.ranges[0];let Ke;z<(i==="up"?X:ue)?Ke={ranges:[[z,ue]],direction:"backward"}:Ke={ranges:[[X,z]],direction:"forward"},e.setSelection(Ke)}else e.setPositionHandlingPlaceholder(z);e.announce(`move ${i}`)}function Vp(e,t){var r,n;const i=(r=t==null?void 0:t.extend)!=null?r:!1;i||e.collapseSelection("backward");const s=()=>{var z,X;let ue=!0;return e.silenceNotifications||(ue=(X=(z=e.mathfield.host)==null?void 0:z.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?X:!0),e.announce(ue?"plonk":"line"),ue},A=e.at(e.position);let M=A;for(;M&&M.parentBranch!=="below"&&!(Array.isArray(M.parentBranch)&&M.parent instanceof Ra);)M=M.parent;if(Array.isArray(M==null?void 0:M.parentBranch)&&M.parent instanceof Ra){const z=M.parent;if(M.parentBranch[0]<1)return s();const X=M.parentBranch[0]-1,ue=z.array[X][M.parentBranch[1]];if(!ue.some(ft=>ft.type==="prompt"&&!ft.captureSelection)&&e.mathfield.hasEditablePrompts)return s();r0(e,A,ue,i,"up")}else if(M){const z=(n=M.parent.branch("above"))!=null?n:M.parent.createBranch("above");if(!z.some(ue=>ue.type==="prompt"&&ue.placeholderId)&&e.mathfield.hasEditablePrompts)return s();r0(e,A,z,i,"up")}else return s();return e.mathfield.stopCoalescingUndo(),!0}function Wp(e,t){var r,n;const i=(r=t==null?void 0:t.extend)!=null?r:!1;i||e.collapseSelection("forward");const s=()=>{var z,X;let ue=!0;return e.silenceNotifications||(ue=(X=(z=e.mathfield.host)==null?void 0:z.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?X:!0),e.announce(ue?"plonk":"line"),ue},A=e.at(e.position);let M=A;for(;M&&M.parentBranch!=="above"&&!(Array.isArray(M.parentBranch)&&M.parent instanceof Ra);)M=M.parent;if(Array.isArray(M==null?void 0:M.parentBranch)&&M.parent instanceof Ra){const z=M.parent;if(M.parentBranch[0]+1>z.array.length-1)return s();const X=M.parentBranch[0]+1,ue=z.array[X][M.parentBranch[1]];if(!ue.some(ft=>ft.type==="prompt"&&!ft.captureSelection)&&e.mathfield.hasEditablePrompts)return s();r0(e,A,ue,i,"down")}else if(M){const z=(n=M.parent.branch("below"))!=null?n:M.parent.createBranch("below");if(!z.some(ue=>ue.type==="prompt")&&e.mathfield.hasEditablePrompts)return s();r0(e,A,z,i,"down")}else return s();return!0}function sh(e){const t=e.position,r=e.at(t).parent;return r!=null&&r.parent?(e.position=e.offsetOf(r),e.mathfield.stopCoalescingUndo(),e.announce("move",t),!0):(e.announce("plonk"),!1)}function Gp(e){let t=0,r=e.at(e.position),n=!1;for(;r;)(!r.hasEmptyBranch("superscript")||!r.hasEmptyBranch("subscript"))&&(t+=1),r.hasEmptyBranch("superscript")?r.hasEmptyBranch("subscript")||(n=!1):n=!0,r=r.parent;return n?t:0}function Xp(e){let t=0,r=e.at(e.position),n=!1;for(;r;)(!r.hasEmptyBranch("superscript")||!r.hasEmptyBranch("subscript"))&&(t+=1),r.hasEmptyBranch("superscript")?r.hasEmptyBranch("subscript")||(n=!0):n=!1,r=r.parent;return n?t:0}function lh(e){var t;if(e.collapseSelection(),Gp(e)>=e.mathfield.options.scriptDepth[1])return e.announce("plonk"),!1;let r=e.at(e.position);return r.subsupPlacement===void 0&&(((t=r.rightSibling)==null?void 0:t.type)!=="subsup"&&r.parent.addChildAfter(new mu({style:r.computedStyle}),r),r=r.rightSibling),r.createBranch("superscript"),e.setSelection(e.getSiblingsRange(e.offsetOf(r.superscript[0]))),!0}function ch(e){var t;if(e.collapseSelection(),Xp(e)>=e.mathfield.options.scriptDepth[0])return e.announce("plonk"),!1;let r=e.at(e.position);return r.subsupPlacement===void 0&&(((t=e.at(e.position+1))==null?void 0:t.type)!=="subsup"&&r.parent.addChildAfter(new mu({style:e.at(e.position).computedStyle}),r),r=e.at(e.position+1)),r.createBranch("subscript"),e.setSelection(e.getSiblingsRange(e.offsetOf(r.subscript[0]))),!0}function Jp(){function e(z){const X=[],ue=[];return[...z.querySelectorAll(`input, select, textarea, a[href], button,
[tabindex], audio[controls], video[controls],
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(t).forEach((ft,Ft)=>{const Nt=n(ft);Nt===0?X.push(ft):ue.push({documentOrder:Ft,tabIndex:Nt,node:ft})}),ue.sort((ft,Ft)=>ft.tabIndex===Ft.tabIndex?ft.documentOrder-Ft.documentOrder:ft.tabIndex-Ft.tabIndex).map(ft=>ft.node).concat(X)}function t(z){return!(!r(z)||i(z)||n(z)<0)}function r(z){return!(z.disabled||z.type==="hidden"&&z.tagName.toUpperCase()==="INPUT"||M(z))}function n(z){var X;const ue=Number.parseInt((X=z.getAttribute("tabindex"))!=null?X:"NaN",10);return Number.isNaN(ue)?z.contentEditable==="true"||(z.nodeName==="AUDIO"||z.nodeName==="VIDEO")&&z.getAttribute("tabindex")===null?0:z.tabIndex:ue}function i(z){return z.tagName.toUpperCase()==="INPUT"&&z.type==="radio"&&!A(z)}function s(z,X){for(const ue of z)if(ue.checked&&ue.form===X)return ue;return null}function A(z){var X;if(!z.name)return!0;const Ke=((X=z.form)!=null?X:z.ownerDocument).querySelectorAll('input[type="radio"][name="'+z.name+'"]'),ft=s(Ke,z.form);return!ft||ft===z}function M(z){if(!N()||z===document.activeElement||z.contains(document.activeElement))return!1;if(getComputedStyle(z).visibility==="hidden")return!0;const X=z.getBoundingClientRect();if(X.width===0||X.height===0)return!0;for(;z;){if(getComputedStyle(z).display==="none")return!0;z=z.parentElement}return!1}return N()?e(document.body):[]}function Lc(e,t,r="forward"){const n=e.position;if(Array.isArray(t)){const i=e.offsetOf(t[0]),s=e.offsetOf(t[t.length-1]);return r==="forward"?e.setSelection(i,s):e.setSelection(s,i),e.announce("move",n),e.mathfield.stopCoalescingUndo(),!0}return r==="forward"?Lc(e,[t.leftSibling,t]):Lc(e,[t,t.leftSibling])}function ou(e,t){const r=e.position;if(typeof t=="number"&&(t=e.at(t)),t.type==="prompt")e.setSelection(e.offsetOf(t.firstChild),e.offsetOf(t.lastChild));else{const n=e.offsetOf(t);t.type==="placeholder"?e.setSelection(n-1,n):e.position=n}return e.announce("move",r),e.mathfield.stopCoalescingUndo(),!0}function n0(e,t,r=!0){var n,i;const s=t==="forward"?1:-1;e.at(e.anchor).type==="placeholder"&&Fu(e,t);let A;const M=e.at(e.anchor).parentPrompt;M?t==="forward"?A=e.offsetOf(M)+1:A=e.offsetOf(M.leftSibling):A=Math.max(e.position+s,0);const z=S0(e,A,t);if(!z||t==="forward"&&e.offsetOf(z)<A||t==="backward"&&e.offsetOf(z)>A){if(!r||!((i=(n=e.mathfield.host)==null?void 0:n.dispatchEvent(new CustomEvent("move-out",{detail:{direction:t},cancelable:!0,bubbles:!0,composed:!0})))==null||i))return e.announce("plonk"),!1;const ue=Jp();if(!document.activeElement||ue.length<=1)return e.announce("plonk"),!1;let Ke=ue.indexOf(document.activeElement)+s;return Ke<0&&(Ke=ue.length-1),Ke>=ue.length&&(Ke=0),ue[Ke].focus(),e.mathfield.stopCoalescingUndo(),!0}return ou(e,z),!0}function S0(e,t=0,r="forward"){return e.findAtom(n=>n.type==="placeholder"||n.type==="prompt"||!e.mathfield.readOnly&&n.treeDepth>2&&n.isFirstSibling&&n.isLastSibling,t,r)}_l({moveToOpposite:e=>{const t={superscript:"subscript",subscript:"superscript",above:"below",below:"above"},r=e.at(e.position),{parent:n}=r;if(!n)return e.announce("plonk"),!1;const i=r.parentBranch;let s;if(typeof i=="string"&&(s=t[i]),!s){const M=r.subsupPlacement?ch(e):lh(e);return e.mathfield.stopCoalescingUndo(),M}n.branch(s)||n.createBranch(s);const A=e.setSelection(e.getBranchRange(e.offsetOf(n),s));return e.mathfield.stopCoalescingUndo(),A},moveBeforeParent:e=>{const{parent:t}=e.at(e.position);return t?(e.position=e.offsetOf(t),e.mathfield.stopCoalescingUndo(),!0):(e.announce("plonk"),!1)},moveAfterParent:e=>sh(e),moveToNextChar:e=>Fu(e,"forward"),moveToPreviousChar:e=>Fu(e,"backward"),moveUp:e=>Fu(e,"upward"),moveDown:e=>Fu(e,"downward"),moveToNextWord:e=>of(e,"forward"),moveToPreviousWord:e=>of(e,"backward"),moveToGroupStart:e=>{const t=e.offsetOf(e.at(e.position).firstSibling);return t===e.position?(e.announce("plonk"),!1):(e.position=t,e.mathfield.stopCoalescingUndo(),!0)},moveToGroupEnd:e=>{const t=e.offsetOf(e.at(e.position).lastSibling);return t===e.position?(e.announce("plonk"),!1):(e.position=t,e.mathfield.stopCoalescingUndo(),!0)},moveToNextGroup:e=>{var t,r,n,i;if(e.position===e.lastOffset&&e.anchor===e.lastOffset)return n0(e,"forward");const s=e.at(e.position);if(s.mode==="text"){if(e.selectionIsCollapsed){let ft=s;for(;ft&&ft.mode==="text";)ft=ft.leftSibling;let Ft=s;for(;((t=Ft.rightSibling)==null?void 0:t.mode)==="text";)Ft=Ft.rightSibling;if(ft&&Ft)return Lc(e,[ft,Ft])}if(s.rightSibling.mode==="text"){let ft=s;for(;ft&&ft.mode==="text";)ft=ft.rightSibling;return ft?(ou(e,(r=ft.leftSibling)!=null?r:ft),e.mathfield.switchMode("math"),!0):ou(e,e.lastOffset)}}const M=e.at(e.anchor).parentPrompt,z=M?e.offsetOf(M)+1:Math.max(e.position+1,0),X=S0(e,z,"forward");if(X)return ou(e,X);const ue=Ah(e,s,ft=>ft.type==="leftright"||ft.type==="text","forward");if(ue){if(ue.mode==="text"){let ft=ue;for(;ft&&ft.mode==="text";)ft=ft.rightSibling;return Lc(e,[(n=ue.leftSibling)!=null?n:ue,(i=ft.leftSibling)!=null?i:ft])}return Lc(e,ue)}const Ke=s.parent;if(Ke){if(Ke.type==="leftright"||Ke.type==="surd")return Lc(e,Ke);if(s.parentBranch==="superscript"&&Ke.subscript)return Lc(e,Ke.subscript);if(s.parentBranch==="above"&&Ke.below)return Lc(e,Ke.below);if(s.parentBranch==="superscript"||s.parentBranch==="subscript")return ou(e,Ke);if(s.parentBranch==="above"||s.parentBranch==="below")return Lc(e,Ke)}return ou(e,e.lastOffset)},moveToPreviousGroup:e=>{var t;if(e.position===0&&e.anchor===0)return n0(e,"backward");let r=e.at(e.position);const n=r.mode;if(n==="text"){if(e.selectionIsCollapsed){let M=r;for(;M&&M.mode==="text";)M=M.leftSibling;let z=r;for(;((t=z.rightSibling)==null?void 0:t.mode)==="text";)z=z.rightSibling;if(M&&z)return Lc(e,[M,z])}for(;r&&r.mode==="text";)r=r.leftSibling;return r?ou(e,r):ou(e,0)}const i=e.at(e.anchor).parentPrompt,s=i?e.offsetOf(i.leftSibling):Math.max(e.position-1,0),A=S0(e,s,"backward");if(A)return ou(e,A);if(n==="math"){const M=Ah(e,r,X=>X.type==="leftright"||X.type==="text","backward");if(M){if(M.mode==="text"){let X=M;for(;X&&X.mode==="text";)X=X.leftSibling;return Lc(e,[M,X])}return Lc(e,M)}const z=r.parent;if(z){if(z.type==="leftright"||z.type==="surd")return Lc(e,z);if(r.parentBranch==="subscript"&&z.superscript)return Lc(e,z.superscript);if(r.parentBranch==="below"&&z.above)return Lc(e,z.above);if(r.parentBranch==="superscript"||r.parentBranch==="subscript")return ou(e,z);if(r.parentBranch==="above"||r.parentBranch==="below")return Lc(e,z)}return ou(e,0)}return!1},moveToMathfieldStart:e=>e.selectionIsCollapsed&&e.position===0?(e.announce("plonk"),!1):(e.position=0,e.mathfield.stopCoalescingUndo(),!0),moveToMathfieldEnd:e=>e.selectionIsCollapsed&&e.position===e.lastOffset?(e.announce("plonk"),!1):(e.position=e.lastOffset,e.mathfield.stopCoalescingUndo(),!0),moveToSuperscript:lh,moveToSubscript:ch},{target:"model",changeSelection:!0}),_l({moveToNextPlaceholder:e=>n0(e,"forward"),moveToPreviousPlaceholder:e=>n0(e,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function Ah(e,t,r,n){if(n==="forward"){let s=t.rightSibling;for(;s&&!r(s);)s=s.rightSibling;return s}let i=t.leftSibling;for(;i&&!r(i);)i=i.leftSibling;return i}function i0(e,t,r){typeof t=="function"&&(r=t,t=1/0),t===void 0&&(t=1/0);let n=e.position,i=!1,s="";for(;!i;){const A=e.at(n);i=t===0||A===void 0||A.type==="first"||A.mode!=="math"||!(A.type&&/mord|mpunct|operator/.test(A.type)||A.type==="mop"&&/[a-zA-Z ]+/.test(A.value))||!A.hasEmptyBranch("superscript")||!A.hasEmptyBranch("subscript")||typeof r=="function"&&!r(A),i||(A.mode="text",A.command=A.value,A.verbatimLatex=void 0,s+=A.value),n-=1,t-=1}e.contentDidChange({data:s,inputType:"insertText"})}function Kd(e,t,r){typeof t=="function"&&(r=t,t=1/0),t===void 0&&(t=1/0);let n=e.position,i=!1;const s=[];for(;!i;){const A=e.at(n);i=t===0||!A||A.type==="first"||A.isFirstSibling||A.mode!=="text"||A.value===" "||typeof r=="function"&&!r(A),i||(s.push(zr.serialize([A],{defaultMode:"math"})),A.mode="math"),n-=1,t-=1}E0(e),e.contentDidChange({data:Ba(s),inputType:"insertText"})}function E0(e){var t;let r=e.position-1;for(;r>=0&&((t=e.at(r))==null?void 0:t.mode)==="math";)r-=1;if(!(r<0)&&e.at(r).mode==="text"&&e.at(r).value===" "&&e.at(r-1).mode==="math"){e.at(r-1).parent.removeChild(e.at(r-1));const n=e.silenceNotifications;e.silenceNotifications=!0,e.position-=1,e.silenceNotifications=n,e.contentDidChange({inputType:"deleteContent"})}}function Yp(e){let t="",r=e.position,n=!1;for(;!n;){const i=e.at(r);n=!(i&&(i.mode==="text"||i.mode==="math"&&i.type&&/mord|mpunct/.test(i.type))),n||(t=i.value+t),r-=1}return t}function qp(e,t,r){const{model:n}=e;if(n.mode==="latex"||!n.at(n.position).isLastSibling||!r||!Wa(r))return!1;const i=ws(r);if(!n.selectionIsCollapsed)return!!(e.model.mode==="text"&&/[/_^]/.test(i));const s=Yp(n)+i;if(e.model.mode==="text"){if(t==="Esc"||/[/\\]/.test(i))return!0;if(/[\^_]/.test(i))return/(^|\s)[a-zA-Z][^_]$/.test(s)&&Kd(n,1),!0;const A={")":"(","}":"{","]":"["}[i],{parent:M}=n.at(n.position);if(A&&M instanceof ko&&M.leftDelim===A)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(s))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(i))return!0;if(/(^|[^a-zA-Z'])[a-zA-Z] $/.test(s))return Kd(n,1),!1;if(/\D\.[^\d\s]$/.test(s)){Kd(n,1);const z=n.at(n.position);return z.value="\u22C5",z.style.variant="normal",z.command="\\cdot",z.verbatimLatex=void 0,n.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(s)||/\.\d$/.test(s)||/\([\d+\-.]$/.test(s))return Kd(n,1),!0;if(/\([a-z][,;]$/.test(s))return Kd(n,2),!0;if(/[\d+\-=><*|]$/.test(i))return E0(n),!0}else{if(t==="[Space]")return i0(n,void 0,A=>/[a-z][:,;.]$/.test(A.value)),!0;if(/[a-zA-Z]{3,}$/.test(s)&&!/(dxd|abc|xyz|uvw)$/.test(s))return i0(n,void 0,A=>/[a-zA-Z]/.test(A.value)),!0;if(/(^|\W)(if)$/i.test(s))return i0(n,1),!0;if(/(\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5){3,}$/u.test(s)&&!/(αβγ)$/.test(s))return i0(n,void 0,A=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(A.value)),!0;if(i==="?"||i==="."&&!/[\d-+]\.$/.test(s))return!0}return!1}function em(e,t){if(!e.isSelectionEditable||!e.keystrokeCaptionVisible)return;const r=uh(),n=e.element.getBoundingClientRect();r.style.left=`${n.left}px`,r.style.top=`${n.top-64}px`,r.innerHTML=window.MathfieldElement.createHTML("<span>"+(Ha(t)||t)+"</span>"+r.innerHTML),r.style.visibility="visible",setTimeout(()=>{r.childNodes.length>0&&r.childNodes[r.childNodes.length-1].remove(),r.childNodes.length===0&&(r.style.visibility="hidden")},3e3)}function tm(e){if(e.keystrokeCaptionVisible=!e.keystrokeCaptionVisible,e.keystrokeCaptionVisible){const t=uh();t.innerHTML=""}else{const t=Sd("mathlive-keystroke-caption-panel");t.style.visibility="hidden"}return!1}function uh(){const e=document.getElementById("mathlive-keystroke-caption-panel");return e||(lc("keystroke-caption"),lc("core"),Sd("mathlive-keystroke-caption-panel"))}function rm(){document.getElementById("mathlive-keystroke-caption-panel")&&(Gd("mathlive-keystroke-caption-panel"),wc("core"),wc("keystroke-caption"))}function dh(e,t){var r,n,i;const{model:s}=e,A=fc(t);if(t.isTrusted){li(t);const Ft=Zi();e.keyboardLayout!==Ft.id&&(e.keyboardLayout=Ft.id,e._keybindings=void 0)}if(clearTimeout(e.inlineShortcutBufferFlushTimer),e.inlineShortcutBufferFlushTimer=0,em(e,A),t.isTrusted&&t.defaultPrevented)return e.flushInlineShortcutBuffer(),!1;let M,z="",X;const ue=e.inlineShortcutBuffer;if(e.isSelectionEditable){if(s.mode==="math")if(A==="[Backspace]")ue.pop();else if(!Wa(t))e.flushInlineShortcutBuffer();else{const Ft=ws(t),Nt=[...(n=(r=ue[ue.length-1])==null?void 0:r.keystrokes)!=null?n:[],Ft];ue.push({state:s.getState(),keystrokes:Nt,leftSiblings:nm(e)});let Er=0,Fn="";for(;!M&&Er<Nt.length;)X=ue.length-(Nt.length-Er),Fn=Nt.slice(Er).join(""),M=MA(ue[X].leftSiblings,Fn,e.options.inlineShortcuts),!M&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(Fn)&&(M=e.options.onInlineShortcut(e,Fn)),Er+=1;e.flushInlineShortcutBuffer({defer:!0})}e.options.smartMode&&(M?e.switchMode("math"):qp(e,A,t)&&(e.switchMode({math:"text",text:"math"}[s.mode]),z=""))}if(!M){if(z||(z=Hc(e.keybindings,s.mode,t)),!z&&(A==="[Enter]"||A==="[Return]")){let Ft=!1;return s.contentWillChange({inputType:"insertLineBreak"})&&(e.host&&(Ft=!e.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),Ft||t.preventDefault&&(t.preventDefault(),t.stopPropagation()),s.contentDidChange({inputType:"insertLineBreak"})),Ft}if((!z||A==="[Space]")&&s.mode==="math"){if(A==="[Space]"){if(e.adoptStyle="none",e.flushInlineShortcutBuffer(),e.options.mathModeSpace)return aa.insert(s,e.options.mathModeSpace,{format:"latex",mode:"math"}),e.snapshot("insert-space"),z="",e.dirty=!0,e.scrollIntoView(),t.preventDefault&&(t.preventDefault(),t.stopPropagation()),!1;const Ft=s.at(s.position+1),Nt=s.at(s.position-1);if((Ft==null?void 0:Ft.mode)==="text"||(Nt==null?void 0:Nt.mode)==="text")return aa.insert(s," ",{mode:"text"}),e.snapshot("insert-space"),e.dirty=!0,e.scrollIntoView(),!1}(i=s.at(s.position))!=null&&i.isDigit()&&window.MathfieldElement.decimalSeparator===","&&ws(t)===","&&(z="insertDecimalSeparator")}}if(!M&&!z){if(s.mathfield.smartFence){if(F0(s,ws(t),e.effectiveStyle))return e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}else{const{parent:Ft}=s.at(s.position);if(Ft instanceof ko&&Ft.rightDelim==="?"&&s.at(s.position).isLastSibling&&/^[)}\]|]$/.test(A))return e.snapshot(),Ft.isDirty=!0,Ft.rightDelim=A,s.position+=1,s.selectionDidChange(),s.contentDidChange({data:ws(t),inputType:"insertText"}),e.snapshot("insert-fence"),e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1;if(!s.selectionIsCollapsed){const Nt=ws(t);if(Nt==="("||Nt==="{"||Nt==="["){const Er={"(":"(","{":"\\lbrace","[":"\\lbrack"}[Nt],Fn={"(":")","{":"\\rbrace","[":"\\rbrack"}[Nt],[xr,nn]=Is(s.selection);return e.snapshot(),s.position=nn,aa.insert(s,Fn,{format:"latex"}),s.position=xr,aa.insert(s,Er,{format:"latex"}),s.setSelection(xr+1,nn+1),s.contentDidChange({data:Nt,inputType:"insertText"}),e.snapshot("insert-fence"),e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}}}return!0}const Ke=s.at(Math.max(s.position,s.anchor)),{parent:ft}=Ke;if(z==="moveAfterParent"&&(ft==null?void 0:ft.type)==="leftright"&&Ke.isLastSibling&&e.options.smartFence&&F0(s,".",e.defaultStyle)&&(z="",xs(e)),e.keyboardDelegate.cancelComposition(),z)e.executeCommand(z);else if(M){const Ft=e.effectiveStyle;s.setState(ue[X].state);const Nt=ue[ue.length-1].keystrokes;for(const Er of Nt)aa.insert(s,Er,{silenceNotifications:!0,style:Ft});e.snapshot("insert-shortcut"),s.setState(ue[X].state),s.deferNotifications({content:!0,selection:!0,data:M,type:"insertText"},()=>(aa.insert(s,M,{format:"latex",style:Ft}),E0(e.model),M.endsWith(" ")&&(e.switchMode("text"),aa.insert(s," ",{style:Ft,mode:"text"})),e.snapshot(),s.selectionIsCollapsed||e.flushInlineShortcutBuffer(),!0)),e.dirty=!0,s.announce("replacement")}return e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}function _0(e,t,r){const{model:n}=e;if(!e.isSelectionEditable){n.announce("plonk");return}r!=null||(r={}),r.focus&&e.focus(),r.feedback&&window.MathfieldElement.playSound("keypress"),typeof r.mode=="string"&&(e.switchMode(r.mode),e.snapshot());let i=_s(t);const s=window.mathVirtualKeyboard;if(s!=null&&s.isShifted&&(i=typeof i=="string"?i.toUpperCase():i.map(z=>z.toUpperCase())),r.simulateKeystroke){let z=!0;for(const X of i)dh(e,new KeyboardEvent("keypress",{key:X}))&&(z=!1);if(z)return}const A=n.at(n.position),M=f(f({},A.computedStyle),e.defaultStyle);if(n.selectionIsCollapsed||(n.deleteAtoms(Is(n.selection)),e.snapshot("delete")),n.mode==="latex")n.deferNotifications({content:!0,selection:!0,data:t,type:"insertText"},()=>{iu(e);for(const z of i)aa.insert(n,z);e.snapshot("insert-latex"),aA(e)});else if(n.mode==="text"){for(const z of i)aa.insert(n,z,{style:M});e.snapshot("insert-text")}else if(n.mode==="math")for(const z of i)im(e,z,M,A);e.dirty=!0,e.scrollIntoView()}function nm(e){const t=e.model,r=[];let n=t.at(Math.min(t.position,t.anchor));for(;n.type!=="first";)r.push(n),n=n.leftSibling;return r}function im(e,t,r,n){const i=e.model;let s={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[t];if(t===" "&&e.options.mathModeSpace&&(s=["insert",e.options.mathModeSpace]),s){e.executeCommand(s);return}if(/\d/.test(t)&&e.options.smartSuperscript&&n.parentBranch==="superscript"&&n.parent.type!=="mop"&&n.parent.type!=="operator"&&n.parent.type!=="extensible-symbol"&&n.hasNoSiblings){am(i),aa.insert(i,t,{style:r}),e.snapshot(),sh(i),e.snapshot();return}if(/[a-zA-Z0-9]/.test(t)&&e.adoptStyle!=="none"){const A=e.adoptStyle==="left"?n:n.parent?n.rightSibling:null;(A==null?void 0:A.type)==="mord"&&/[a-zA-Z0-9]/.test(A.value)&&(r=f({},r),A.style.variant&&(r.variant=A.style.variant),A.style.variantStyle&&(r.variantStyle=A.style.variantStyle))}aa.insert(i,t,{style:r}),e.snapshot(`insert-${i.at(i.position).type}`)}function am(e){e.selectionIsCollapsed||(e.deleteAtoms(Is(e.selection)),e.mathfield.snapshot("delete"))}function F0(e,t,r){if(!t||e.mode!=="math")return!1;const n=e.at(e.position),{parent:i}=n,s={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[t];if(!s)return!1;const A=cl[s],M=Yl[s];if(!e.selectionIsCollapsed){e.mathfield.snapshot();const[z,X]=Is(e.selection),ue=e.extractAtoms([z,X]),Ke=i.addChildrenAfter([new ko("left...right",ue,{leftDelim:s,rightDelim:M})],e.at(z));return e.setSelection(e.offsetOf(Ke.firstChild),e.offsetOf(Ke.lastChild)),e.mathfield.snapshot("insert-fence"),e.contentDidChange({data:s,inputType:"insertText"}),!0}if(s==="|"){const z=i instanceof ko?i.leftDelim+i.rightDelim:"";if(z==="\\lbrace\\rbrace"||z==="\\{\\}"||z==="\\lbrace?")return e.mathfield.snapshot(),aa.insert(e,"\\,\\middle\\vert\\,",{format:"latex",style:r}),e.mathfield.snapshot("insert-fence"),e.contentDidChange({data:s,inputType:"insertText"}),!0}if(M){if(i instanceof ko&&i.firstChild===n&&(i.leftDelim==="?"||i.leftDelim==="."))return i.leftDelim=s,i.isDirty=!0,e.mathfield.snapshot(),e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;if(!(i instanceof ko)){let Ke=n;for(;Ke&&!(Ke.type==="mclose"&&Ke.value===M);)Ke=Ke.rightSibling;if(Ke){e.mathfield.snapshot();const ft=e.extractAtoms([e.offsetOf(n),e.offsetOf(Ke)]);return ft.pop(),i.addChildrenAfter([new ko("left...right",ft,{leftDelim:s,rightDelim:M})],n),e.position=e.offsetOf(i.firstChild)+1,e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}}const z=e.offsetOf(n.lastSibling);let X;for(X=e.position;X<=z;X++){const Ke=e.at(X);if(Ke instanceof ko&&(Ke.leftDelim==="?"||Ke.leftDelim===".")&&fh(s,Ke.rightDelim))break}const ue=e.at(X);if(X<=z&&ue instanceof ko){ue.leftDelim=s,e.mathfield.snapshot();let Ke=e.extractAtoms([e.position,X-1]);return Ke=Ke.filter(ft=>ft.type!=="first"),ue.addChildren(Ke,ue.parentBranch),e.position+=1,e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}if(i instanceof ko&&(i.leftDelim==="?"||i.leftDelim===".")&&fh(s,i.rightDelim)){i.isDirty=!0,i.leftDelim=s,e.mathfield.snapshot();const Ke=e.extractAtoms([e.offsetOf(n.firstSibling),e.position]);for(const ft of Ke)i.parent.addChildBefore(ft,i);return e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}if(!(i instanceof ko&&i.leftDelim==="|")){if(e.mathfield.snapshot(),aa.insert(e,`\\left${s}\\right?`,{format:"latex",style:r}),n.lastSibling.type!=="first"){const Ke=e.offsetOf(n.lastSibling),ft=e.extractAtoms([e.position,Ke]);e.at(e.position).body=ft,e.position-=1}return e.mathfield.snapshot("insert-fence"),!0}}if(A){let z=n;for(;z;){if(z.type==="mopen"&&z.value===A){e.mathfield.snapshot();const Ft=z.leftSibling,Nt=e.extractAtoms([e.offsetOf(z.leftSibling),e.offsetOf(n)]);Nt.shift();const Er=new ko("left...right",Nt,{leftDelim:A,rightDelim:s});return i.addChildrenAfter([Er],Ft),e.position=e.offsetOf(Er),e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}z=z.leftSibling}if(i instanceof ko&&n.isLastSibling&&I0(i.leftDelim,s))return e.mathfield.snapshot(),i.isDirty=!0,i.rightDelim=s,e.position+=1,e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;const X=e.offsetOf(n.firstSibling);let ue;for(ue=e.position;ue>=X;ue--){const Ft=e.at(ue);if(Ft instanceof ko&&(Ft.rightDelim==="?"||Ft.rightDelim===".")&&I0(Ft.leftDelim,s))break}const Ke=e.at(ue);if(ue>=X&&Ke instanceof ko)return e.mathfield.snapshot(),Ke.rightDelim=s,Ke.addChildren(e.extractAtoms([ue,e.position]),Ke.parentBranch),e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;if(i instanceof ko&&(i.rightDelim==="?"||i.rightDelim===".")&&I0(i.leftDelim,s))return e.mathfield.snapshot(),i.isDirty=!0,i.rightDelim=s,i.parent.addChildren(e.extractAtoms([e.position,e.offsetOf(n.lastSibling)]),i.parentBranch),e.position=e.offsetOf(i),e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;const ft=i.parent;return ft instanceof ko&&(ft.rightDelim==="?"||ft.rightDelim===".")&&e.at(e.position).isLastSibling?(e.position=e.offsetOf(ft),F0(e,s,r)):!1}return!1}function I0(e,t){return e?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(e)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(t):Yl[e]===t:!0}function fh(e,t){return t?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(t)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(e):cl[t]===e:!0}_l({undo:e=>(e.undo(),!0),redo:e=>(e.redo(),!0),scrollIntoView:e=>(e.scrollIntoView(),!0),scrollToStart:e=>(e.field.scroll(0,0),!0),scrollToEnd:e=>{const t=e.field.getBoundingClientRect();return e.field.scroll(t.left-window.scrollX,0),!0},toggleKeystrokeCaption:tm,toggleContextMenu:e=>{const t=e.toggleContextMenu();return t||e.model.announce("plonk"),t},plonk:e=>(e.model.announce("plonk"),!0),switchMode:(e,t,r,n)=>(e.switchMode(t,r,n),!0),insert:(e,t,r)=>e.insert(t,r),typedText:(e,t,r)=>(_0(e,t,r),!0),insertDecimalSeparator:e=>{const t=e.model;return t.mode==="math"&&window.MathfieldElement.decimalSeparator===","&&t.at(Math.max(t.position,t.anchor)).isDigit()?(e.insert("{,}",{format:"latex"}),e.snapshot("insert-mord"),!0):(e.insert("."),!0)},commit:e=>{var t;return e.model.contentWillChange({inputType:"insertLineBreak"})&&((t=e.host)==null||t.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),e.model.contentDidChange({inputType:"insertLineBreak"})),!0},insertPrompt:(e,t,r)=>{const n=e.getPrompts();let i="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),s=0;for(;n.includes(i)&&s<100;){if(s===99)return console.error("could not find a unique ID after 100 tries"),!1;i="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),s++}return e.insert(`\\placeholder[${t!=null?t:i}]{}`,r),!0}}),_l({copyToClipboard:e=>(e.focus(),e.model.selectionIsCollapsed&&e.select(),"queryCommandSupported"in document&&document.queryCommandSupported("copy")?document.execCommand("copy"):e.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("copy",{bubbles:!0,composed:!0})),!1)},{target:"mathfield"}),_l({cutToClipboard:e=>(e.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("cut")?document.execCommand("cut"):e.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("cut",{bubbles:!0,composed:!0})),!0),pasteFromClipboard:e=>(e.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("paste")?(document.execCommand("paste"),!0):(navigator.clipboard.readText().then(t=>{t&&e.model.contentWillChange({inputType:"insertFromPaste",data:t})?(e.stopCoalescingUndo(),e.stopRecording(),e.insert(t,{mode:e.model.mode})&&(aA(e),e.startRecording(),e.snapshot("paste"),e.model.contentDidChange({inputType:"insertFromPaste"}),xs(e))):e.model.announce("plonk"),e.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function om(e,t){e.flushInlineShortcutBuffer(),e.stopCoalescingUndo();const r=M0(e,t),{model:n}=e;return n.selectionIsCollapsed?(e.defaultStyle.fontSeries&&r.fontSeries===e.defaultStyle.fontSeries&&(r.fontSeries="auto"),r.fontShape&&r.fontShape===e.defaultStyle.fontShape&&(r.fontShape="auto"),r.color&&r.color===e.defaultStyle.color&&(r.color="none"),r.backgroundColor&&r.backgroundColor===e.defaultStyle.backgroundColor&&(r.backgroundColor="none"),r.fontSize&&r.fontSize===e.defaultStyle.fontSize&&(r.fontSize="auto"),e.defaultStyle=f(f({},e.defaultStyle),r)):e.model.deferNotifications({content:!0,type:"insertText"},()=>{n.selection.ranges.forEach(i=>x0(n,i,r,{operation:"toggle"})),e.snapshot("style-change")}),!0}_l({applyStyle:om},{target:"mathfield",canUndo:!0,changeContent:!0});function M0(e,t){var r,n,i,s,A,M,z,X,ue,Ke;const ft={};if(typeof t.color=="string"){const Nt=(n=e.colorMap((r=t.color)!=null?r:t.verbatimColor))!=null?n:"none";Nt!==t.color&&(ft.verbatimColor=(i=t.verbatimColor)!=null?i:t.color),ft.color=Nt}if(typeof t.backgroundColor=="string"){const Nt=(A=e.backgroundColorMap((s=t.backgroundColor)!=null?s:t.verbatimBackgroundColor))!=null?A:"none";Nt!==t.backgroundColor&&(ft.verbatimBackgroundColor=(M=t.verbatimBackgroundColor)!=null?M:t.backgroundColor),ft.backgroundColor=Nt}typeof t.fontFamily=="string"&&(ft.fontFamily=t.fontFamily),typeof t.series=="string"&&(ft.fontSeries=t.series),typeof t.fontSeries=="string"&&(ft.fontSeries=t.fontSeries.toLowerCase()),ft.fontSeries&&(ft.fontSeries=(z={bold:"b",medium:"m",normal:"m"}[ft.fontSeries])!=null?z:ft.fontSeries),typeof t.shape=="string"&&(ft.fontShape=t.shape),typeof t.fontShape=="string"&&(ft.fontShape=t.fontShape.toLowerCase()),ft.fontShape&&(ft.fontShape=(X={italic:"it",up:"n",upright:"n",normal:"n"}[ft.fontShape])!=null?X:ft.fontShape),t.variant&&(ft.variant=t.variant.toLowerCase()),t.variantStyle&&(ft.variantStyle=t.variantStyle.toLowerCase());const Ft=(ue=t.size)!=null?ue:t.fontSize;return typeof Ft=="number"?ft.fontSize=Math.max(1,Math.min(10,Ft)):typeof Ft=="string"&&(ft.fontSize=(Ke={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[Ft.toLowerCase()])!=null?Ke:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[Ft]),ft}function L0(e){let[t,r]=Is(e.selection);if(t=hh(e,t,"backward"),r=hh(e,r,"forward"),t===r){const n=e.at(t);if(n.type==="leftright")return e.setSelection(e.offsetOf(n.firstChild)-1,r);if(n.type==="first"&&(n.parent.type==="leftright"||n.parent.type==="surd"))return e.setSelection(t-1,e.offsetOf(n.parent.lastChild)+1);e.setSelection(t-1,r)}else e.setSelection(t,r);return!0}function hh(e,t,r){var n,i,s;let A=e.at(t);if(!A)return t;const M=r==="forward"?1:-1;if(A.mode==="text"){for(;A&&!(A.mode!=="text"||!d.test(A.value));)t+=M,A=e.at(t);return r==="backward"?t-1:t}if(A.mode==="latex"){if(/[a-zA-Z\*]/.test(A.value))if(r==="backward")for(;A&&A.mode==="latex"&&A.value!=="\\"&&/[a-zA-Z]/.test(A.value);)t+=M,A=e.at(t);else for(;A&&A.mode==="latex"&&/[a-zA-Z\*]/.test(A.value);)t+=M,A=e.at(t);else if(A.value==="{"){if(r==="forward"){for(;A&&A.mode==="latex"&&A.value!=="}";)t+=M,A=e.at(t);return t}return t-1}else if(A.value==="}"){if(r==="backward"){for(;A&&A.mode==="latex"&&A.value!=="{";)t+=M,A=e.at(t);return t-1}return t}return t-1}if(A.mode==="math"){if(A.isDigit()){for(;(n=e.at(t+M))!=null&&n.isDigit();)t+=M;return r==="backward"?t-1:t}if(A.style.variant||A.style.variantStyle){let z=(i=e.at(t))==null?void 0:i.style;for(;z&&z.variant===A.style.variant&&z.variantStyle===A.style.variantStyle;)z=(s=e.at(t+M))==null?void 0:s.style,t+=M;return r==="backward"?t-1:t}return t}return t}_l({selectGroup:e=>{const t=L0(e);return t||e.announce("plonk"),t},selectAll:e=>e.setSelection(0,e.lastOffset),extendSelectionForward:e=>Fu(e,"forward",{extend:!0}),extendSelectionBackward:e=>Fu(e,"backward",{extend:!0}),extendToNextWord:e=>of(e,"forward",{extend:!0}),extendToPreviousWord:e=>of(e,"backward",{extend:!0}),extendSelectionUpward:e=>Fu(e,"upward",{extend:!0}),extendSelectionDownward:e=>Fu(e,"downward",{extend:!0}),extendToNextBoundary:e=>of(e,"forward",{extend:!0}),extendToPreviousBoundary:e=>of(e,"backward",{extend:!0}),extendToGroupStart:e=>{const t=e.setSelection(e.anchor,e.offsetOf(e.at(e.position).firstSibling));return t||e.announce("plonk"),t},extendToGroupEnd:e=>{const t=e.setSelection(e.anchor,e.offsetOf(e.at(e.position).lastSibling));return t||e.announce("plonk"),t},extendToMathFieldStart:e=>{const t=e.setSelection(e.anchor,0);return t||e.announce("plonk"),t},extendToMathFieldEnd:e=>{const t=e.setSelection(e.anchor,e.lastOffset);return t||e.announce("plonk"),t}},{target:"model",changeSelection:!0});var Hd=null,kf=0,a0=class QA{static start(t,r,n,i){var s;QA.element=t,(s=QA.controller)==null||s.abort(),QA.controller=new AbortController;const A={signal:QA.controller.signal};"PointerEvent"in window?(t.addEventListener("pointermove",n,A),t.addEventListener("pointerup",i,A),t.addEventListener("pointercancel",i,A),k0(r)&&(QA.pointerId=r.pointerId,t.setPointerCapture(r.pointerId))):(window.addEventListener("mousemove",n,A),window.addEventListener("blur",i,A),window.addEventListener("mouseup",i,A))}static stop(){var t;(t=QA.controller)==null||t.abort(),QA.controller=void 0,typeof QA.pointerId=="number"&&(QA.element.releasePointerCapture(QA.pointerId),QA.pointerId=void 0)}};function k0(e){return e!==null&&globalThis.PointerEvent!==void 0&&e instanceof PointerEvent}function ph(e,t){var r;if(t.buttons>1)return;e.atomBoundsCache=new Map;const n=e;let i,s=!1,A=!1,M="none",z=!1,X=!1;const ue=t.clientX,Ke=t.clientY,ft=Date.now(),Ft=n.field,Nt=setInterval(()=>{z?Ft.scroll({top:0,left:Ft.scrollLeft-16}):X&&Ft.scroll({top:0,left:Ft.scrollLeft+16})},32);function Er(){a0.stop(),s=!1,clearInterval(Nt),e.element.classList.remove("tracking"),t&&t.preventDefault()}function Fn(nn){if(!n.hasFocus()){Er();return}const Rn=nn.clientX,pn=nn.clientY,Si=k0(nn)&&nn.pointerType==="touch"?20:5;if(Date.now()<ft+500&&Math.abs(ue-Rn)<Si&&Math.abs(Ke-pn)<Si){nn.preventDefault(),nn.stopPropagation();return}const zi=Ft.getBoundingClientRect();X=Rn>zi.right,z=Rn<zi.left;let Ui=i;k0(nn)&&(nn.isPrimary||(Ui=Df(n,nn.clientX,nn.clientY,{bias:0})));const io=Df(n,Rn,pn,{bias:Rn<=ue?Rn===ue?0:-1:1});Ui>=0&&io>=0&&(n.model.extendSelectionTo(Ui,io),xs(e)),A&&L0(n.model)}Hd&&Math.abs(Hd.x-ue)<5&&Math.abs(Hd.y-Ke)<5&&Date.now()<Hd.time+500?(kf+=1,Hd.time=ft):(Hd={x:ue,y:Ke,time:ft},kf=1);const xr=Ft.getBoundingClientRect();if(ue>=xr.left&&ue<=xr.right&&Ke>=xr.top&&Ke<=xr.bottom){if(e.flushInlineShortcutBuffer(),e.adoptStyle="left",i=Df(e,ue,Ke,{bias:0}),i>=0){if(e.element.classList.add("tracking"),t.shiftKey){const nn=e.model.selectionIsCollapsed;e.model.extendSelectionTo(e.model.anchor,i),Ks(e.model)||nn?M="all":M="selection"}else e.model.at(i).type==="placeholder"?(e.model.setSelection(i-1,i),M="selection"):((r=e.model.at(i).rightSibling)==null?void 0:r.type)==="placeholder"?(e.model.setSelection(i,i+1),M="selection"):(e.model.position=i,Ks(e.model)?M="all":M="selection");e.defaultStyle={},t.detail===3||kf>2?(Er(),(t.detail===3||kf===3)&&(e.model.selection={ranges:[[0,e.model.lastOffset]]},M="all")):s||(s=!0,a0.start(Ft,t,Fn,Er),(t.detail===2||kf===2)&&(A=!0,L0(e.model),M="all"))}e.hasFocus()||(M="none",e.focus({preventScroll:!0}))}else Hd=null;e.stopCoalescingUndo(),M!=="none"&&(e.model.selectionIsCollapsed&&(M="all"),xs(e)),t.preventDefault()}function sm(e,t,r){if(e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom)return 0;const n=e-(r.left+r.right)/2,i=t-(r.top+r.bottom)/2;return n*n+i*i}function mh(e,t,r,n,i){if(!r.id)return[1/0,null];if(t.has(r.id))return t.get(r.id);const s=qc(e,r);if(!s)return[1/0,null];let A=[1/0,null];if(r.hasChildren&&!r.captureSelection&&n>=s.left&&n<=s.right)for(const M of r.children){const z=mh(e,t,M,n,i);z[0]<=A[0]&&(A=z)}return A[1]||(A=[sm(n,i,s),r]),t.set(r.id,A),A}function lm(e,t,r){const[,n]=mh(e,new Map,e.model.root,t,r);return n}function Df(e,t,r,n){var i;const s=e.field.querySelector(".ML__latex").getBoundingClientRect();if(!s)return 0;if(t>s.right||r>s.bottom+8)return e.model.lastOffset;if(t<s.left||r<s.top-8)return 0;n=n!=null?n:{},n.bias=(i=n.bias)!=null?i:0;let A=lm(e,t,r);const M=[];let z=A;for(;z;)M.unshift(z),z=z.parent;for(const ue of M)if(ue.captureSelection){A=ue;break}let X=e.model.offsetOf(A);if(X<0)return-1;if(A.leftSibling)if(n.bias===0&&A.type!=="placeholder"){const ue=qc(e,A);ue&&t<(ue.left+ue.right)/2&&(X=e.model.offsetOf(A.leftSibling))}else n.bias<0&&(X=e.model.offsetOf(A.leftSibling));return X}var cm=class extends aa{constructor(){super("math")}onPaste(e,t){if(!t||!e.model.contentWillChange({data:typeof t=="string"?t:null,dataTransfer:typeof t=="string"?null:t,inputType:"insertFromPaste"}))return!1;let r="",n="auto",i=typeof t!="string"?t.getData("application/json+mathlive"):"";if(i)try{const s=JSON.parse(i);if(s&&Array.isArray(s)){e.snapshot();const A=mA(s),{model:M}=e;M.selectionIsCollapsed||M.deleteAtoms(Is(M.selection));const z=M.at(M.position);if(z.parent instanceof Ra){console.assert(z.parentBranch!==void 0);const X=[];let ue=[];A[0].type==="first"&&A.shift(),A[A.length-1].type==="first"&&A.pop();for(const Nt of A)Nt.type==="first"&&ue.length>0?(X.push(ue),ue=[Nt]):ue.push(Nt);ue.length>0&&X.push(ue);let Ke=Number(z.parentBranch[0]),ft=Number(z.parentBranch[1]);const Ft=z.parent.maxColumns;for(;z.parent.colCount-ft<X.length&&z.parent.colCount<Ft;)z.parent.addColumn();z.parent.addChildrenAfter(X[0],z);for(let Nt=1;Nt<X.length;Nt++)ft++,ft>=Ft&&(ft=0,z.parent.addRowAfter(Ke),Ke++),z.parent.setCell(Ke,ft,X[Nt])}else z.parent.addChildrenAfter(A.filter(X=>X.type!=="first"),z);return M.position=M.offsetOf(A[A.length-1]),M.contentDidChange({inputType:"insertFromPaste"}),xs(e),!0}}catch(s){}if(i=typeof t!="string"?t.getData("application/json"):"",i&&window.MathfieldElement.computeEngine)try{const s=JSON.parse(i);if(typeof s=="object"&&"latex"in s&&s.latex&&(r=s.latex),!r){const A=window.MathfieldElement.computeEngine.box(s);A&&!A.has("Error")&&(r=A.latex)}r||(n="latex")}catch(s){}if(!r&&typeof t!="string"&&(r=t.getData("application/x-latex"),r&&(n="latex")),r||(r=typeof t=="string"?t:t.getData("text/plain")),r){let s;return[s,r]=Sn(r),n==="auto"&&s&&(n="latex"),e.stopCoalescingUndo(),e.stopRecording(),this.insert(e.model,r,{format:n})&&(e.startRecording(),e.snapshot("paste"),xs(e)),e.startRecording(),!0}return!1}insert(e,t,r){var n,i;const s=typeof t=="string"?t:(i=(n=window.MathfieldElement.computeEngine)==null?void 0:n.box(t).latex)!=null?i:"";if(!r.silenceNotifications&&!e.contentWillChange({data:s,inputType:"insertText"}))return!1;r.insertionMode||(r.insertionMode="replaceSelection"),r.selectionMode||(r.selectionMode="placeholder"),r.format||(r.format="auto");const{silenceNotifications:A}=e;r.silenceNotifications&&(e.silenceNotifications=!0);const M=e.silenceNotifications;e.silenceNotifications=!0;const z={"?":"\\placeholder{}","@":"\\placeholder{}"};z[0]=r.insertionMode==="replaceAll"?"":e.getValue(e.selection,"latex-unstyled"),r.insertionMode==="replaceSelection"&&!e.selectionIsCollapsed?e.deleteAtoms(Is(e.selection)):r.insertionMode==="replaceAll"?(e.root.setChildren([],"body"),e.position=0):r.insertionMode==="insertBefore"?e.collapseSelection("backward"):r.insertionMode==="insertAfter"&&e.collapseSelection("forward"),!e.at(e.position).isLastSibling&&e.at(e.position+1).type==="placeholder"?e.deleteAtoms([e.position,e.position+1]):e.at(e.position).type==="placeholder"&&e.deleteAtoms([e.position-1,e.position]);let X=-1;z[0]?z["@"]=z[0]:typeof t=="string"&&/(^|[^\\])#@/.test(t)&&(X=um(e),X>=0&&(z["@"]=e.getValue(X,e.position,"latex"))),z[0]||(z[0]=z["?"]);let ue=!1;const Ke=Rn=>(ue=!0,z[Rn]);let[ft,Ft]=gh(e,t,Ke,r);if(!Ft)return!1;const Nt=Ft.length===1&&Ft[0].type==="genfrac";Nt&&X>=0&&typeof e.mathfield.options.isImplicitFunction=="function"&&e.mathfield.options.isImplicitFunction(e.at(e.position).command)?(z["@"]=z["?"],ue=!1,[ft,Ft]=gh(e,t,Ke,r)):X>=0&&e.deleteAtoms([X,e.position]);const{parent:Er}=e.at(e.position),Fn=Er.hasEmptyBranch("body");if(Nt&&ft!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&Er instanceof ko&&Er.leftDelim==="("&&Fn){const Rn=Er.parent,pn=Er.parentBranch;Rn.removeChild(Er),Rn.setChildren(Ft,pn)}const xr=e.at(e.position);xr.parent.addChildrenAfter(Ft,xr),ft==="latex"&&typeof t=="string"&&(Er==null?void 0:Er.type)==="root"&&Fn&&!ue&&(Er.verbatimLatex=t),e.silenceNotifications=M;const nn=Ft[Ft.length-1];if(r.selectionMode==="placeholder"){const Rn=Ft.flatMap(pn=>[pn,...pn.children]).find(pn=>pn.type==="placeholder");if(Rn){const pn=e.offsetOf(Rn);e.setSelection(pn-1,pn),e.announce("move")}else nn&&(e.position=e.offsetOf(nn))}else r.selectionMode==="before"||(r.selectionMode==="after"?nn&&(e.position=e.offsetOf(nn)):r.selectionMode==="item"&&e.setSelection(e.anchor,e.offsetOf(nn)));return e.contentDidChange({data:s,inputType:"insertText"}),e.silenceNotifications=A,!0}};function gh(e,t,r,n){var i;let s,A=[];if(typeof t!="string"||n.format==="math-json"){const M=window.MathfieldElement.computeEngine;if(!M)return["math-json",[]];[s,t]=["latex",M.box(t).latex],A=Al(t,{context:e.mathfield.context})}else typeof t=="string"&&n.format==="ascii-math"?([s,t]=We(t,{format:"ascii-math",inlineShortcuts:e.mathfield.options.inlineShortcuts}),A=Al(t,{context:e.mathfield.context}),s!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&o0(A)):(n.format==="auto"||(i=n.format)!=null&&i.startsWith("latex"))&&(n.format==="auto"&&([s,t]=We(t,{format:"auto",inlineShortcuts:e.mathfield.options.inlineShortcuts})),n.format==="latex"&&([,t]=Sn(t)),A=Al(t,{context:e.mathfield.context,args:r}),n.format!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&o0(A));return hd(A,n.style),[s!=null?s:"latex",A]}function Am(e){if(!e||(console.assert(e[0].type==="first"),e.length>1))return null;const t=e[0];return t instanceof ko&&t.leftDelim==="("&&t.rightDelim===")"?t.removeBranch("body"):null}function o0(e){if(e){for(let t=0;e[t];t++){const r=e[t];if(r instanceof ko&&r.leftDelim==="("){let n=0,i=0,s=0;for(let A=0;r.body[A];A++)r.body[A].type==="genfrac"&&(n++,i=A),s++;s===0&&n===1&&(e[t]=r.body[i])}}for(const t of e){for(const r of t.branches)if(!t.hasEmptyBranch(r)){o0(t.branch(r));const n=Am(t.branch(r));n&&t.setChildren(n,r)}if(t instanceof Ra)for(const r of t.cells)o0(r)}}}function um(e){let t=e.at(e.position);if(t.mode==="text"){for(;!t.isFirstSibling&&t.mode==="text";)t=t.leftSibling;return e.offsetOf(t)}const r=t;let n=!1;if(t.type==="mclose"){const i=cl[t.value];for(;!t.isFirstSibling&&!(t.type==="mopen"&&t.value===i);)t=t.leftSibling;t.isFirstSibling||(t=t.leftSibling),n=!0}else t.type==="leftright"&&(t=t.leftSibling,n=!0);if(n)for(;!t.isFirstSibling&&(t.isFunction||vh(t));)t=t.leftSibling;else{const i=[];for(;!t.isFirstSibling&&(vh(t)||i.length>0);)t.type==="mclose"&&i.unshift(t.value),t.type==="mopen"&&i.length>0&&t.value===cl[i[0]]&&i.shift(),t=t.leftSibling}return r===t?-1:e.offsetOf(t)}function vh(e){return e.isDigit()?!0:e.type&&/^(mord|surd|subsup|leftright|mop|mclose)$/.test(e.type)?!e.isExtensibleSymbol:!1}new cm;var dm=class extends aa{constructor(){super("text")}onPaste(e,t){if(!t)return!1;const r=typeof t=="string"?t:t.getData("text/plain");return r&&e.model.contentWillChange({inputType:"insertFromPaste",data:r})?(e.stopCoalescingUndo(),e.stopRecording(),this.insert(e.model,r)&&(e.model.contentDidChange({inputType:"insertFromPaste"}),e.startRecording(),e.snapshot("paste"),xs(e)),e.startRecording(),!0):!1}insert(e,t,r={}){if(!e.contentWillChange({data:t,inputType:"insertText"}))return!1;r.insertionMode||(r.insertionMode="replaceSelection"),r.selectionMode||(r.selectionMode="placeholder"),r.format||(r.format="auto");const{silenceNotifications:n}=e;r.silenceNotifications&&(e.silenceNotifications=!0);const i=e.silenceNotifications;e.silenceNotifications=!0,r.insertionMode==="replaceSelection"&&!e.selectionIsCollapsed?e.deleteAtoms(Is(e.selection)):r.insertionMode==="replaceAll"?(e.root.setChildren([],"body"),e.position=0):r.insertionMode==="insertBefore"?e.collapseSelection("backward"):r.insertionMode==="insertAfter"&&e.collapseSelection("forward");const s=fm(t,e.mathfield.context);if(hd(s,r.style),!s)return!1;const A=e.at(e.position),M=A.parent.addChildrenAfter(s,A);return e.silenceNotifications=i,r.selectionMode==="before"||(r.selectionMode==="item"?e.setSelection(e.anchor,e.offsetOf(M)):M&&(e.position=e.offsetOf(M))),e.contentDidChange({data:t,inputType:"insertText"}),e.silenceNotifications=n,!0}};function fm(e,t){return e=e.replace(/\\/g,"\\textbackslash "),e=e.replace(/#/g,"\\#"),e=e.replace(/\$/g,"\\$"),e=e.replace(/%/g,"\\%"),e=e.replace(/&/g,"\\&"),e=e.replace(/_/g,"\\_"),e=e.replace(/{/g,"\\textbraceleft "),e=e.replace(/}/g,"\\textbraceright "),e=e.replace(/lbrace/g,"\\textbraceleft "),e=e.replace(/rbrace/g,"\\textbraceright "),e=e.replace(/\^/g,"\\textasciicircum "),e=e.replace(/~/g,"\\textasciitilde "),e=e.replace(/£/g,"\\textsterling "),Al(e,{context:t,parseMode:"text"})}new dm;function Iu(e){return{value:e.model.getValue(),selectionIsCollapsed:e.model.selectionIsCollapsed,canUndo:e.canUndo(),canRedo:e.canRedo(),style:e.selectionStyle,mode:e.model.mode}}var ls=4,Zc=20,ul=2*(Zc+ls),s0=(e,t)=>`
<line x1="${e+Zc}" y1="${t+Zc}"
x2="${e>t?e+Zc:7*Zc+10*ls}"
y2="${e<t?t+Zc:7*Zc+10*ls}"/>
<svg id="plus" viewBox="0 0 40 40" x="${e}" y="${t}" width="40" height="40">
<circle class="cls-2" cx="20" cy="20" r="20"/>
<path class="font" d="m33.33,20c0,1.84-1.49,3.34-3.33,3.34h-6.67v6.66c0,1.84-1.49,3.34-3.33,3.34s-3.34-1.5-3.34-3.34v-6.66h-6.66c-1.84,0-3.34-1.5-3.34-3.34s1.5-3.33,3.34-3.33h6.66v-6.67c0-1.84,1.5-3.33,3.34-3.33s3.33,1.49,3.33,3.33v6.67h6.67c1.84,0,3.33,1.49,3.33,3.33Z"/>
</svg>`,yh=(e,t)=>`
<line x1="${e+Zc}" y1="${t+Zc}"
x2="${e>t?e+Zc:7*Zc+10*ls}"
y2="${e<t?t+Zc:7*Zc+10*ls}"/>
<svg id="minus" viewBox="0 0 40 40" x="${e}" y="${t}" width="40" height="40">
<circle class="cls-2" cx="20" cy="20" r="20"/>
<path class="font" d="m33.33,20c0,1.84-1.49,3.33-3.33,3.33H10c-1.84,0-3.34-1.49-3.34-3.33s1.5-3.34,3.34-3.34h20c1.84,0,3.33,1.5,3.33,3.34Z"/>
</svg>`,l0=(e,t,r)=>`
<svg id="arrow" viewBox="0 0 40 40" x="${e}" y="${t}" width="40" height="40">
<circle class="cls-2" cx="20" cy="20" r="20"/>
<g transform="rotate(${r})" transform-origin="20 20">
<path class="font" d="m17.7,7.23h4.6c.52,0,.94.42.94.94v13.82c0,.52.42.94.94.94h3.39c.83,0,1.25,1.01.66,1.6l-7.56,7.56c-.37.37-.96.37-1.32,0l-7.56-7.56c-.59-.59-.17-1.6.66-1.6h3.39c.52,0,.94-.42.94-.94v-13.82c0-.52.42-.94.94-.94Z"/>
</g>
</svg>`,hm=`
<svg class="MLEP__array-buttons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox=
"-2 -2 ${8*Zc+10*ls+5} ${8*Zc+10*ls+5}">
<rect
class="MLEP__array-insert-background rows"
x="0"
y="${ul+ls}"
height="${3*ul}"
width="${ul}"
rx="${ul/2}"/>
<rect
class="MLEP__array-insert-background columns"
x="${ul+ls}"
y="0"
height="${ul}"
width="${3*ul}"
rx="${ul/2}"/>
<g data-command='"moveDown"'>
${l0(2*(ls+ul),2*ls+3*ul,0)}
</g>
<g data-command='"moveUp"'>
${l0(2*(ls+ul),2*ls+ul,180)}
</g>
<g data-command='"moveToNextWord"'>
${l0(2*ls+3*ul,2*(ls+ul),-90)}
</g>
<g data-command='"moveToPreviousWord"'>
${l0(2*ls+ul,2*(ls+ul),90)}
</g>
<g>
<g data-command='"addColumnBefore"'>
${s0(2*ls+ul,ls)}
</g>
<g data-command='"removeColumn"'>
${yh(2*ls+2*ul,ls)}
</g>
<g data-command='"addColumnAfter"'>
${s0(2*ls+3*ul,ls)}
</g>
<g data-command='"addRowBefore"'>
${s0(ls,2*ls+ul)}
</g>
<g data-command='"removeRow"'>
${yh(ls,2*ls+2*ul)}
</g>
<g data-command='"addRowAfter"'>
${s0(ls,2*ls+3*ul)}
</g>
</svg>`,pm=e=>`
<svg id="matrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","matrix"]'>
<rect class="cls-1" width="28" height="24"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/></svg>`,mm=e=>`
<svg id="pmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","pmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m6,4c-3.96,4.6-3.96,11.4,0,16"/>
<path class="cls-2" d="m22,4c3.96,4.6,3.96,11.4,0,16"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/></svg>`,bh=e=>`
<svg id="Bmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","Bmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m6,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
<path class="cls-2" d="m22,4c1.1,0,2,.9,2,2v3c0,1.66.9,3,2,3-1.1,0-2,1.34-2,3v3c0,1.1-.9,2-2,2"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
</svg>`,gm=e=>`
<svg id="bmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","bmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m6,4h-3v16h3"/>
<path class="cls-2" d="m22,4h3v16h-3"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
</svg>`,vm=e=>`
<svg id="vmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","vmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
<line class="cls-2" x1="4" y1="4" x2="4" y2="20"/>
<line class="cls-2" x1="24" y1="4" x2="24" y2="20"/>
</svg>`,ym=e=>`
<svg id="Vmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="-3.5 -3 35 30"
data-command='["setEnvironment","Vmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
<line class="cls-2" x1="6" y1="4" x2="6" y2="20"/>
<line class="cls-2" x1="22" y1="4" x2="22" y2="20"/>
<line class="cls-2" x1="2" y1="4" x2="2" y2="20"/>
<line class="cls-2" x1="26" y1="4" x2="26" y2="20"/>
</svg>`,bm=e=>`
<svg id="cases" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","cases"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m10,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
<circle cx="13" cy="8" r="1"/>
<circle cx="13" cy="16" r="1"/>
<circle cx="21" cy="8" r="1"/>
<circle cx="21" cy="16" r="1"/>
</svg>`,wm=e=>`
<svg id="rcases" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","rcases"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m18,20c1.1,0,2-.9,2-2v-3c0-1.66.9-3,2-3-1.1,0-2-1.34-2-3v-3c0-1.1-.9-2-2-2"/>
<circle cx="15" cy="8" r="1"/>
<circle cx="15" cy="16" r="1"/>
<circle cx="7" cy="8" r="1"/>
<circle cx="7" cy="16" r="1"/>
</svg>`,D0={matrix:pm,pmatrix:mm,bmatrix:gm,Bmatrix:bh,vmatrix:vm,Vmatrix:ym},P0={cases:bm,rcases:wm,Bmatrix:bh};function xm(e){var t,r;const n=(t=e.model.parentEnvironment)==null?void 0:t.array;if(!n)return;let i=0;n.forEach(Nt=>{(!i||Nt.length>i)&&(i=Nt.length)});let s=document.getElementById("mathlive-environment-popover");s||(s=Sd("mathlive-environment-popover"),lc("environment-popover"),lc("core"),s.setAttribute("aria-hidden","true"));let A;const M=s.querySelector(".MLEP__environment-controls");M?A=M:(A=document.createElement("div"),s.innerHTML="",s.appendChild(A)),A.className="MLEP__environment-controls",A.style.display="flex",A.style.width="100%",A.style.height="100%",A.style.boxSizing="border-box",A.innerHTML=hm;let z=[],X="";const ue=e.model.parentEnvironment.environmentName;if(Jo(ue)){const Nt=Bm(ue);X=D0[Nt]("active");const Er=D0,{[Nt]:Fn}=Er,xr=$(Er,[h(Nt)]);z=Object.values(xr).map(nn=>nn("inactive"))}else if(Ho(ue)){const Nt=Sm(ue);X=P0[Nt]("active");const Er=P0,{[Nt]:Fn}=Er,xr=$(Er,[h(Nt)]);z=Object.values(xr).map(nn=>nn("inactive"))}else Us(ue)&&(X=D0.matrix("active"),z=Object.values(P0).map(Nt=>Nt("inactive")));const Ke=document.createElement("div");Ke.className="MLEP__environment-delimiter-controls",Ke.style.display="flex",Ke.style.flexDirection="column",Ke.innerHTML=`
<div class='MLEP__array-delimiter-options'>
${X}
${z.join("")}
</div>`,X&&A.appendChild(Ke),A.querySelectorAll("[data-command]").forEach(Nt=>{const Er=Nt.dataset.command;let Fn=Er;try{Fn=JSON.parse(Er)}catch(xr){}Nt.addEventListener("mousedown",xr=>xr.preventDefault()),Fn&&Nt.addEventListener("click",()=>e.executeCommand(Fn))});const Ft=(r=e.field)==null?void 0:r.getBoundingClientRect();Ft&&(s.style.top=`${window.scrollY+(Ft.top-s.clientHeight-15)}px`,s.style.left=`${Ft.left+20}px`,s.classList.add("is-visible"))}function N0(){const e=document.getElementById("mathlive-environment-popover");e==null||e.classList.remove("is-visible")}function Cm(){document.getElementById("mathlive-environment-popover")&&(Gd("mathlive-environment-popover"),wc("environment-popover"),wc("core"))}function c0(e){if(!e.hasFocus())return;let t=!1;if(e.model.mode==="math"){const r=e.model.parentEnvironment;if(r!=null&&r.array&&Ec(r.environmentName)){const n=e.options.environmentPopoverPolicy;t=n==="auto"||n==="on"}}t?xm(e):N0()}function Bm(e){return e.replace("*","")}function Sm(e){return e==="dcases"?"cases":e}function wh(e){const t=getComputedStyle(e).direction;return t==="ltr"||t==="rtl"?t:"ltr"}function xh(e,t,r){return t==="left"||t==="leading"&&r==="ltr"||t==="trailing"&&r==="rtl"?e.left:e.right}function O0(e,t,r,n){return r==="middle"?e-t/2:r==="start"&&n==="rtl"||r==="end"&&n==="ltr"||r==="top"||r==="right"?Math.max(0,e-t):e}function Em(e,t,r,n){return r==="middle"?e-t/2:r==="start"&&n==="ltr"||r==="end"&&n==="rtl"||r==="top"||r==="right"?e:e-t}function _m(e,t){var r,n,i;const s=(r=wh(e))!=null?r:"ltr";e.style.position="fixed",e.style.left="",e.style.top="",e.style.right="",e.style.bottom="",e.style.height="",e.style.width="";const A=e.getBoundingClientRect(),M=Number.isFinite(t.maxHeight)?Math.min(t.maxHeight,window.innerHeight):window.innerHeight;let z=Math.min(M,(n=t.height)!=null?n:A.height),X=O0(t.location.y,z,t.verticalPos,s);X+z>window.innerHeight-8&&(t.alternateLocation?(X=O0(t.alternateLocation.y,z,t.verticalPos,s),X+z>window.innerHeight-8&&(X=void 0)):X=void 0),Number.isFinite(X)||(X=Math.max(8,window.innerHeight-8-z),8+z>window.innerHeight-8&&(e.style.bottom="8px")),z=Math.min(X+z,window.innerHeight-8)-X;const ue=Number.isFinite(t.maxWidth)?Math.min(t.maxWidth,window.innerWidth):window.innerWidth;let Ke=Math.min(ue,(i=t.width)!=null?i:A.width),ft=O0(t.location.x,Ke,t.horizontalPos,s);ft+Ke>window.innerWidth-8&&(t.alternateLocation?(ft=Em(t.alternateLocation.x,Ke,t.verticalPos,s),ft+Ke>window.innerWidth-8&&(ft=void 0)):ft=void 0),Number.isFinite(ft)||(ft=Math.max(8,window.innerWidth-8-Ke),8+Ke>window.innerWidth-8&&(e.style.right="8px")),Ke=Math.min(ft+Ke,window.innerWidth-8)-ft,s==="rtl"?e.style.right=`${Math.ceil(window.innerWidth-ft-Ke).toString()}px`:e.style.left=`${Math.ceil(ft).toString()}px`,e.style.top=`${Math.ceil(X).toString()}px`,z!==A.height&&(e.style.height=`${Math.ceil(z).toString()}px`),Ke!==A.width&&(e.style.width=`${Math.ceil(Ke).toString()}px`)}function Fm(e,t){return Math.hypot(t.x-e.x,t.y-e.y)}function sf(e){return"submenu"in e}function Mu(e){return"type"in e&&e.type==="command"||"onMenuSelect"in e||"id"in e}function T0(e){return"type"in e&&e.type==="divider"}function U0(e){return"type"in e&&e.type==="heading"}var Ch={};function R0(e){let t=Ch[e];if(!t){let r;switch(e){case"checkmark":r=`<span aria-hidden="true" class="ui-checkmark"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z"></path></svg>
</span>`;break;case"trailing-chevron":r='<span aria-hidden="true" class="ui-trailing-chevron"><svg focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path></svg></span>';break;case"mixedmark":r='<span aria-hidden="true" class="ui-mixedmark"><svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 512 512"><path fill="currentColor" d="M0 256c0-13.3 10.7-24 24-24H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.3 0-24-10.7-24-24z"/></svg></span>'}if(r){const n=document.createElement("template");n.innerHTML=r,Ch[e]=n,t=n}}if(t){if("content"in t)return t.content.cloneNode(!0);const r=document.createElement("svg");return r.innerHTML=t.innerHTML,r}}var Bh=80,Sh=class{constructor(e,t){this._element=null;var r;this.parentMenu=t,this._declaration=e,sf(e)?(this.type="submenu",this.submenu=new Eh(e.submenu,{parentMenu:t,submenuClass:e.submenuClass,columnCount:e.columnCount})):this.type=(r=e.type)!=null?r:"command",this.hasCheck=Mu(e)&&e.checked!==void 0}get rootMenu(){return this.parentMenu.rootMenu}get abortController(){return this._abortController||(this._abortController=new AbortController),this._abortController}dispose(){var e,t;(e=this._abortController)==null||e.abort(),this._abortController=void 0,(t=this._element)==null||t.remove(),this._element=null,this.submenu&&this.submenu.dispose(),this.submenu=void 0}get menuItem(){return this._declaration}get label(){var e;return(e=this._label)!=null?e:""}set label(e){e===void 0&&(e=""),e!==this._label&&(this._label=e,this.dirty=!0)}get visible(){return this._visible}set visible(e){e!==this._visible&&(this._visible=e,this.dirty=!0)}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.element&&(e?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")),this.dirty=!0}get checked(){return this._checked}set checked(e){this._checked=e,this.dirty=!0}get tooltip(){return this._tooltip}set tooltip(e){e!==this._tooltip&&(this._tooltip=e,this.dirty=!0)}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){e!==this._ariaLabel&&(this._ariaLabel=e,this.dirty=!0)}get active(){var e,t;return(t=(e=this.element)==null?void 0:e.classList.contains("active"))!=null?t:!1}set active(e){this.element&&this.element.classList.toggle("active",e)}updateState(e){var t,r,n;const i=this._declaration;if(T0(i)){this.enabled=!1,this.checked=!1;return}U0(i)&&(this.enabled=!1,this.checked=!1,this.visible=!0),Mu(i)&&(this.checked=Mu(i)&&((t=lf(i.checked,e))!=null?t:!1)),(Mu(i)||sf(i))&&(this.enabled=(r=lf(i.enabled,e))!=null?r:!0,this.visible=(n=lf(i.visible,e))!=null?n:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(e),this.submenu.visible||(this.visible=!1))),(Mu(i)||U0(i)||sf(i))&&(this.label=lf(i.label,e),this.tooltip=lf(i.tooltip,e),this.ariaLabel=lf(i.ariaLabel,e)),this._element&&this.updateElement()}set dirty(e){console.assert(e===!0),e&&this.parentMenu&&(this.parentMenu.dirty=!0)}updateElement(){if(!this.visible||!this.element)return;const e=this.element;e.textContent="",this.enabled?e.removeAttribute("aria-disabled"):e.setAttribute("aria-disabled","true"),this.checked===!0?(e.setAttribute("aria-checked","true"),e.append(R0("checkmark"))):this.checked==="mixed"?(e.setAttribute("aria-checked","mixed"),e.append(R0("mixedmark"))):e.removeAttribute("aria-checked"),this.ariaLabel&&e.setAttribute("aria-label",this.ariaLabel);const t=document.createElement("span");if(t.className=this.parentMenu.hasCheck?"label indent":"label",this.type==="heading"&&t.classList.add("heading"),t.innerHTML=this.label,e.append(t),this._tooltip&&e.setAttribute("data-tooltip",this._tooltip),Mu(this._declaration)&&this._declaration.keyboardShortcut){const r=document.createElement("kbd");r.innerHTML=Ha(this._declaration.keyboardShortcut),e.append(r)}this.type==="submenu"&&e.append(R0("trailing-chevron"))}get element(){if(this._element)return this._element;if(T0(this._declaration)){const r=document.createElement("li");return r.setAttribute("part","menu-divider"),r.setAttribute("role","divider"),this._element=r,r}const e=document.createElement("li");this._element=e,(Mu(this._declaration)||U0(this._declaration)||sf(this._declaration))&&this._declaration.class&&(e.className=this._declaration.class),e.setAttribute("part","menu-item"),e.setAttribute("tabindex","-1"),this.hasCheck?e.setAttribute("role","menuitemcheckbox"):e.setAttribute("role","menuitem"),this.type==="submenu"&&(e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded","false"));const t=this.abortController.signal;return e.addEventListener("pointerenter",this,{signal:t}),e.addEventListener("pointerleave",this,{signal:t}),e.addEventListener("pointerup",this,{signal:t}),e.addEventListener("click",this,{signal:t}),this._element}dispatchSelect(){if(!Mu(this._declaration))return;const e=new CustomEvent("menu-select",{cancelable:!0,bubbles:!0,detail:{modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data}});this.parentMenu.dispatchEvent(e)&&typeof this._declaration.onMenuSelect=="function"&&this._declaration.onMenuSelect({modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data})}handleEvent(e){var t;if(!(!this.visible||!this.enabled)){if(e.type==="click"){this.rootMenu.state==="modal"&&this.select(),e.stopPropagation(),e.preventDefault();return}if(e.type==="pointerenter"){const r=e;this.rootMenu.cancelDelayedOperation(),this.parentMenu.isSubmenuOpen&&((t=this.parentMenu.activeMenuItem)!=null&&t.movingTowardSubmenu(r))?this.rootMenu.scheduleOperation(()=>{this.parentMenu.activeMenuItem=this,this.openSubmenu()}):(this.parentMenu.activeMenuItem=this,this.openSubmenu({withDelay:!0}));return}if(e.type==="pointerleave"){this.rootMenu.activeSubmenu===this.parentMenu&&(this.parentMenu.activeMenuItem=null);return}if(e.type==="pointerup"){this.rootMenu.state!=="modal"&&this.select(),e.stopPropagation(),e.preventDefault();return}}}select(){if(this.rootMenu.cancelDelayedOperation(),this.type==="submenu"){this.openSubmenu();return}this.active=!1,setTimeout(()=>{this.active=!0,setTimeout(()=>{this.rootMenu.hide(),this.dispatchSelect()},Bh)},Bh)}openSubmenu(e){var t;if(this.type!=="submenu"||!this.element)return;if((t=e==null?void 0:e.withDelay)!=null&&t){this.rootMenu.scheduleOperation(()=>this.openSubmenu());return}const r=this.element.getBoundingClientRect(),n=wh(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:xh(r,"trailing",n),y:r.top-4},alternateLocation:{x:xh(r,"leading",n),y:r.top-4}})}movingTowardSubmenu(e){if(!this.element||this.type!=="submenu")return!1;const t=this.rootMenu.lastMoveEvent;if(!t)return!1;const r=e.timeStamp-t.timeStamp;if(r>500)return!1;const n=e.clientX-t.clientX;if(Im(n,t.clientY-e.clientY,r)<=.2)return!1;let s="right";if(this.submenu.element){const A=this.submenu.element.getBoundingClientRect(),M=this.element.getBoundingClientRect();A.left<M.left+M.width/2&&(s="left")}return s==="right"?n>0:n<0}};function Im(e,t,r){return Math.hypot(e,t)/r}function lf(e,t){return e===void 0||typeof e!="function"?e:(t!=null||(t={alt:!1,control:!1,shift:!1,meta:!1}),e(t))}var Eh=class mf{constructor(t,r){this._element=null,this._activeMenuItem=null,this._dirty=!0;var n,i;this.parentMenu=(n=r==null?void 0:r.parentMenu)!=null?n:null,this._submenuClass=r==null?void 0:r.submenuClass,this.columnCount=(i=r==null?void 0:r.columnCount)!=null?i:1,this.isSubmenuOpen=!1,this.menuItems=t}get children(){return this._menuItems}set menuItems(t){const r=this.parentMenu;this.dispose(),this.parentMenu=r,t=[...t],this._menuItems=t.map(n=>n.onCreate?n.onCreate(n,this):new Sh(n,this)),this.hasCheck=void 0,this.dirty=!0}dispose(){var t;this.hide(),this._element&&this._element.remove(),this._abortController&&this._abortController.abort(),(t=this._menuItems)==null||t.forEach(r=>r.dispose()),this._menuItems=[],this._activeMenuItem=null,this.parentMenu=null}handleEvent(t){if(t.type==="wheel"&&this._element){const r=t;this._element.scrollBy(0,r.deltaY),t.stopPropagation()}}dispatchEvent(t){return this.rootMenu.dispatchEvent(t)}get rootMenu(){return this.parentMenu.rootMenu}updateState(t){var r,n,i;this._menuItems.forEach(X=>X.updateState(t));const s=this.hasCheck;this.hasCheck=this._menuItems.some(X=>X.visible&&X.hasCheck),this.hasCheck!==s&&this._menuItems.forEach(X=>X.updateState(t));let A,M=0;for(const X of this._menuItems)X.type==="heading"?(A&&M===0&&(A.visible=!1),A=X,M=0):X.type==="divider"&&A?(A.visible=M>0,A=void 0,M=0):A&&X.visible&&(M+=1);A&&(A.visible=M>0);let z=!0;for(const X of this._menuItems)X.type==="divider"?(X.visible=!z,z=!0):X.visible&&(z=!1);(r=this.activeMenuItem)!=null&&r.visible||(this.activeMenuItem=null),!((n=this.activeMenuItem)!=null&&n.enabled)&&((i=this.activeMenuItem)==null?void 0:i.type)==="submenu"&&this._activeMenuItem.submenu.hide(),this._dirty=!1}get enabled(){return this.updateIfDirty(),this._menuItems.some(t=>t.type!=="divider"&&t.visible&&t.enabled)}get visible(){return this.updateIfDirty(),this._menuItems.some(t=>t.type!=="divider"&&t.visible)}set dirty(t){console.assert(t===!0),this._dirty!==t&&t&&this.parentMenu&&(this._dirty=!0,this.parentMenu.dirty=!0)}updateIfDirty(){this._dirty&&this.updateState(this.rootMenu.modifiers)}updateElement(){var t;if(this._element){this._element.textContent="";for(const{element:r,visible:n}of this._menuItems)r&&n&&this._element.append(r);(t=this._element.querySelector("li:first-of-type"))==null||t.setAttribute("tabindex","0")}}get element(){if(this._element)return this._element;const t=document.createElement("menu");t.setAttribute("role","menu"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-orientation","vertical"),t.setAttribute("part","ui-menu-container"),this._submenuClass&&t.classList.add(this._submenuClass),t.classList.add("ui-menu-container"),this._abortController||(this._abortController=new AbortController);const r=this._abortController.signal;return t.addEventListener("focus",this,{signal:r}),t.addEventListener("wheel",this,{passive:!0,signal:r}),this._element=t,this.updateElement(),t}get activeMenuItem(){return this._activeMenuItem}set activeMenuItem(t){var r,n,i,s;if(this.rootMenu.cancelDelayedOperation(),t!==this._activeMenuItem){if(this.activeMenuItem){const A=this.activeMenuItem;A.active=!1,(r=A.submenu)==null||r.hide()}if(!((n=t==null?void 0:t.visible)==null||n)){this._activeMenuItem=null;return}this._activeMenuItem=t,t&&(t.active=!0)}t?(i=t.element)==null||i.focus({preventScroll:!0}):(s=this._element)==null||s.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let t=0,r=!1;const n=this._menuItems;for(;!r&&t<=n.length-1;){const i=n[t];r=i.type!=="divider"&&i.visible&&i.enabled,t+=1}return r?n[t-1]:null}get lastMenuItem(){this.updateIfDirty();const t=this._menuItems;let r=t.length-1,n=!1;for(;!n&&r>=0;){const i=t[r];n=i.type!=="divider"&&i.visible&&i.enabled,r-=1}return n?t[r+1]:null}nextMenuItem(t){if(t===0)return this._activeMenuItem;if(!this._activeMenuItem)return t>0?this.firstMenuItem:this.lastMenuItem;if(!this.firstMenuItem||!this.lastMenuItem||!this._activeMenuItem)return null;this.updateIfDirty();const r=this._menuItems.indexOf(this.firstMenuItem),n=this._menuItems.indexOf(this.lastMenuItem);let i=this._menuItems.indexOf(this._activeMenuItem),s=1;for(;i>=r&&i<=n;){i+=t>0?1:-1;const A=this._menuItems[i];if(!A)break;if(A.visible&&A.enabled){if(s===Math.abs(t))return this._menuItems[i];s+=1}}return t>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(t){this.updateIfDirty();const n=this._menuItems.filter(i=>i.visible&&i.enabled).indexOf(t);return n<0?-1:n%this.columnCount}static get collator(){return mf._collator||(mf._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),mf._collator}findMenuItem(t){var r;this.updateIfDirty();const n=this._menuItems.filter(M=>M.type!=="divider"&&M.visible&&M.enabled);if(n.length===0)return null;const i=Math.max(...n.map(M=>M.label.length))-t.length;if(i<0)return null;let s=null,A=0;for(;A<i&&!s;)s=(r=n.find(M=>mf.collator.compare(t,M.label.substring(A,t.length))===0))!=null?r:null,A++;return s}show(t){return!this.visible||!t.container?!1:(this.updateElement(),t.container.appendChild(this.element),se()&&(this.element.popover="manual",this.element.showPopover()),t.location&&_m(this.element,{location:t.location,alternateLocation:t.alternateLocation,verticalPos:"bottom",horizontalPos:"start"}),this.element.focus({preventScroll:!0}),this.parentMenu&&(this.parentMenu.openSubmenu=this),!0)}hide(){var t,r,n,i,s;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),se()&&((t=this._element)!=null&&t.popover)&&this.element.hidePopover(),(n=(r=this.parentMenu)==null?void 0:r.element)==null||n.focus(),(s=(i=this._element)==null?void 0:i.parentNode)==null||s.removeChild(this._element)}set openSubmenu(t){var r,n,i,s;const A=t!==null;((r=this.activeMenuItem)==null?void 0:r.type)==="submenu"&&((n=this.activeMenuItem.element)==null||n.setAttribute("aria-expanded",A.toString())),(s=(i=this.activeMenuItem)==null?void 0:i.element)==null||s.classList.toggle("is-submenu-open",A),this.isSubmenuOpen=A}},_h=class Fp extends Eh{constructor(t,r){var n;super(t),this.state="closed",this.typingBufferResetTimer=0,this.hysteresisTimer=0,this._updating=!1,this._host=(n=r==null?void 0:r.host)!=null?n:null,this.isDynamic=t.some(Fh),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(t){Ma(this._modifiers,t)||(this._modifiers=t,this.dirty=!0)}get activeSubmenu(){let t=this;for(;t.isSubmenuOpen;)t=t.activeMenuItem.submenu;return t}set dirty(t){this._updating||(console.assert(t===!0),this._dirty!==t&&(this._dirty=!0,t&&setTimeout(()=>{this.updateState(this.modifiers),this.updateElement()})))}updateState(t){this._updating=!0,this.modifiers=t!=null?t:this.modifiers,super.updateState(this.modifiers),this._updating=!1}handleKeyupEvent(t){this.isDynamic&&(this.modifiers=Ea(t)),t.stopImmediatePropagation()}handleKeydownEvent(t){var r,n,i;if(t.key==="Tab"||t.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=Ea(t));let s=!0;const A=this.activeSubmenu,M=A.activeMenuItem;switch(t.key){case" ":case"Space":case"Return":case"Enter":M==null||M.select(Ea(t));break;case"ArrowRight":if((M==null?void 0:M.type)==="submenu")M.select(Ea(t)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!M)A.activeMenuItem=A.firstMenuItem;else{const z=(r=A.getMenuItemColumn(M))!=null?r:-1;if(z>=0&&z<((n=A.columnCount)!=null?n:1)-1){const X=A.nextMenuItem(1);X&&(A.activeMenuItem=X)}}break;case"ArrowLeft":if(A===this.rootMenu)M||(A.activeMenuItem=A.firstMenuItem);else if((M&&(i=A.getMenuItemColumn(M))!=null?i:-1)<=0||!M){A.hide();const X=A.parentMenu.activeMenuItem;if(X){const{element:ue}=X;ue==null||ue.focus(),ue==null||ue.classList.remove("is-submenu-open")}}else{const X=A.nextMenuItem(-1);X&&(A.activeMenuItem=X)}break;case"ArrowDown":A.activeMenuItem=A.nextMenuItem(A.columnCount);break;case"ArrowUp":A.activeMenuItem=A.nextMenuItem(-A.columnCount);break;case"Home":case"PageUp":A.activeMenuItem=A.firstMenuItem;break;case"End":case"PageDown":A.activeMenuItem=A.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const z=A.findMenuItem(this.typingBuffer);z&&(A.activeMenuItem=z),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(Wa(t)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=t.key;const z=A.findMenuItem(this.typingBuffer);z&&(A.activeMenuItem=z),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else s=!1}s&&(t.preventDefault(),t.stopPropagation())}handleEvent(t){if(t.type==="keydown")this.handleKeydownEvent(t);else if(t.type==="keyup")this.handleKeyupEvent(t);else if(t.type==="pointermove")this.lastMoveEvent=t;else if(t.type==="pointerup"&&t.target===this.scrim)Number.isFinite(this.rootMenu._openTimestamp)&&Date.now()-this.rootMenu._openTimestamp<120?this.state="modal":this.state==="modal"&&this.hide();else if(t.type==="contextmenu"){t.preventDefault(),t.stopPropagation();return}super.handleEvent(t)}dispatchEvent(t){return this._host?this._host.dispatchEvent(t):!0}get scrim(){return Co.element}connectScrim(t){const r=this.scrim;r.addEventListener("pointerup",this),r.addEventListener("contextmenu",this),r.addEventListener("keydown",this),r.addEventListener("keyup",this),r.addEventListener("pointermove",this),Co.open({root:t,onDismiss:()=>this.hide()})}disconnectScrim(){const t=this.scrim;t.removeEventListener("pointerup",this),t.removeEventListener("contextmenu",this),t.removeEventListener("keydown",this),t.removeEventListener("keyup",this),t.removeEventListener("pointermove",this),Co.state==="open"&&Co.scrim.close()}get rootMenu(){return this}show(t){return this._onDismiss=t==null?void 0:t.onDismiss,t!=null&&t.modifiers&&(this.modifiers=t.modifiers),this.updateState(),this.connectScrim(t==null?void 0:t.target),super.show(E(f({},t),{container:this.scrim}))?(this._openTimestamp=Date.now(),this.state="open",!0):(this.disconnectScrim(),!1)}hide(){this.cancelDelayedOperation(),this.state!==void 0&&(this.state!=="closed"&&(this.activeMenuItem=null,Co.element.parentElement.focus(),super.hide(),this.state="closed",this.disconnectScrim()),this._onDismiss&&(this._onDismiss(),this._onDismiss=void 0))}scheduleOperation(t){this.cancelDelayedOperation();const r=Fp.SUBMENU_DELAY;if(r<=0){t();return}this.hysteresisTimer=setTimeout(()=>{this.hysteresisTimer=0,t()},r)}cancelDelayedOperation(){this.hysteresisTimer&&(clearTimeout(this.hysteresisTimer),this.hysteresisTimer=0)}};_h.SUBMENU_DELAY=120;var Mm=_h;function Fh(e){return T0(e)?!1:typeof e.label=="function"||typeof e.ariaLabel=="function"||typeof e.tooltip=="function"||(Mu(e)||sf(e))&&(typeof e.enabled=="function"||typeof e.visible=="function")||Mu(e)&&typeof e.checked=="function"?!0:sf(e)?e.submenu.some(Fh):!1}var A0=class{};A0.DELAY=300,A0.MAX_DISTANCE=10;function Lm(e){return new Promise((t,r)=>{const n=qa(e);n||t(!1);let i=n;const s=setTimeout(()=>{A.abort(),t(Fm(i,n)<A0.MAX_DISTANCE)},A0.DELAY),A=new AbortController,M=A.signal;for(const z of["pointermove","pointerup","pointercancel"])window.addEventListener(z,X=>{if(X.type==="pointerup"||X.type==="pointercancel")clearTimeout(s),A.abort(),t(!1);else if(X.type==="pointermove"){const ue=qa(X);ue&&(i=ue)}},{passive:!0,signal:M})})}function Ih(e,t,r){return gd(this,null,function*(){if(e.type==="contextmenu"){const n=e;if(r.show({target:t,location:qa(n),modifiers:Ea(n)}))return e.preventDefault(),e.stopPropagation(),!0}if(e.type==="keydown"){const n=e;if(n.code==="ContextMenu"||n.code==="F10"&&n.shiftKey){const i=t==null?void 0:t.getBoundingClientRect();if(i&&r.show({target:t,location:{x:Math.ceil(i.left+i.width/2),y:Math.ceil(i.top+i.height/2)},modifiers:Ea(n)}))return e.preventDefault(),e.stopPropagation(),!0}}if(e.type==="pointerdown"&&e.pointerType!=="mouse"&&e.button===0){let n=e.target;for(;n&&t!==n;)n=n.parentNode;if(!n||!r.visible)return!1;const i=qa(e);if(yield Lm(e))return r.state!=="closed"?!1:(r.show({target:t,location:i}),!0)}return!1})}var Mh={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};pe(Object.keys(Mh),"{body:auto}",{createAtom:e=>new cc(E(f({},e),{body:ut(e.args[0]),accentChar:Mh[e.command.slice(1)]}))}),pe(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:e=>{const t=we(ut(e.args[0]));return new cc(E(f({},e),{body:ut(e.args[0]),svgAccent:e.command.slice(1)+(t.length>5?"4":["1","1","2","2","3","3"][t.length])}))}}),pe(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:e=>new cc(E(f({},e),{body:ut(e.args[0]),svgAccent:"overarc"}))}),pe(["underarc","underparen"],"{body:auto}",{createAtom:e=>new gl(E(f({},e),{body:ut(e.args[0]),svgBelow:"underarc"}))}),pe("utilde","{body:auto}",{createAtom:e=>{const t=ut(e.args[0]),r=we(t),n="widetilde"+(r.length>5?"4":["1","1","2","2","3","3"][r.length]);return new gl(E(f({},e),{body:t,svgBelow:n,boxType:vc(t)}))}}),pe("^","{:string}",{createAtom:e=>{var t;return new zr(E(f({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={a:"\xE2",e:"\xEA",i:"\xEE",o:"\xF4",u:"\xFB",A:"\xC2",E:"\xCA",I:"\xCE",O:"\xD4",U:"\xDB"}[e.args[0]])!=null?t:"^"}))}}),pe("`","{:string}",{createAtom:e=>{var t;return new zr(E(f({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={a:"\xE0",e:"\xE8",i:"\xEC",o:"\xF2",u:"\xF9",A:"\xC0",E:"\xC8",I:"\xCC",O:"\xD2",U:"\xD9"}[e.args[0]])!=null?t:"`"}))}}),pe("'","{:string}",{createAtom:e=>{var t;return new zr(E(f({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={a:"\xE1",e:"\xE9",i:"\xED",o:"\xF3",u:"\xFA",A:"\xC1",E:"\xC9",I:"\xCD",O:"\xD3",U:"\xDA"}[e.args[0]])!=null?t:"'"}))}}),pe('"',"{:string}",{createAtom:e=>{var t,r;return new zr(E(f({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:(t=e.args)!=null&&t[0]?(r={a:"\xE4",e:"\xEB",i:"\xEF",o:"\xF6",u:"\xFC",A:"\xC4",E:"\xCB",I:"\xCB",O:"\xD6",U:"\xDC"}[e.args[0]])!=null?r:'"'+e.args[0]:'"'}))}}),pe(".","{:string}",{createAtom:e=>{var t,r;return new zr(E(f({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:(t=e.args)!=null&&t[0]?(r={a:"\u0227",e:"\u0117",i:"\u0307i",o:"\u022F",u:"\u0307u",A:"\u0226",E:"\u0116",I:"\u0130",O:"\u022E",U:"\u0307U"}[e.args[0]])!=null?r:"."+e.args[0]:"."}))}}),pe("=","{:string}",{createAtom:e=>{var t,r;return new zr(E(f({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:(t=e.args)!=null&&t[0]?(r={a:"\u0101",e:"\u0113",i:"\u012B",o:"\u014D",u:"\u016B",A:"\u0100",E:"\u0112",I:"\u012A",O:"\u014C",U:"\u016A"}[e.args[0]])!=null?r:"="+e.args[0]:"="}))}}),pe("~","{:string}",{createAtom:e=>{var t;return new zr(E(f({type:"mord"},e),{isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={n:"\xF1",N:"\xD1",a:"\xE3",o:"\xF5",A:"\xC3",O:"\xD5"}[e.args[0]])!=null?t:"\xB4"}))}}),pe("c","{:string}",{createAtom:e=>{var t;return new zr(E(f({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={c:"\xE7",C:"\xC7"}[e.args[0]])!=null?t:""}))}}),pe("enclose","{notation:string}[style:string]{body:auto}",{createAtom:e=>{var t,r;const n=e.args,i={strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"none",svgStrokeStyle:void 0,borderStyle:void 0,style:(t=e.style)!=null?t:{}};if(n[1]){const A=n[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const M of A){const z=M.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(z)i.strokeWidth=z[1],i.strokeStyle=z[2],i.strokeColor=z[3];else{const X=M.match(/\s*([a-z]*)\s*=\s*"(.*)"/);X&&(X[1]==="mathbackground"?i.backgroundcolor=X[2]:X[1]==="mathcolor"?i.strokeColor=X[2]:X[1]==="padding"?i.padding=X[2]:X[1]==="shadow"&&(i.shadow=X[2]))}}i.strokeStyle==="dashed"?i.svgStrokeStyle="5,5":i.strokeStyle==="dotted"&&(i.svgStrokeStyle="1,5")}i.borderStyle=`${i.strokeWidth} ${i.strokeStyle} ${i.strokeColor}`;const s={};return((r=n[0])!=null?r:"").split(/[, ]/).filter(A=>A.length>0).forEach(A=>{s[A.toLowerCase()]=!0}),new Vu(e.command,ut(n[2]),s,i)}}),pe("cancel","{body:auto}",{createAtom:e=>{var t;return new Vu(e.command,ut(e.args[0]),{updiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(t=e.style)!=null?t:{}})}}),pe("bcancel","{body:auto}",{createAtom:e=>{var t;return new Vu(e.command,ut(e.args[0]),{downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(t=e.style)!=null?t:{}})}}),pe("xcancel","{body:auto}",{createAtom:e=>{var t;return new Vu(e.command,ut(e.args[0]),{updiagonalstrike:!0,downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(t=e.style)!=null?t:{}})}}),pe(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:e=>{var t;return new gl(E(f({},e),{body:ut((t=e.args)==null?void 0:t[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:e.command.slice(1)}))}}),pe("overbrace","{:auto}",{createAtom:e=>new gl(E(f({},e),{body:ut(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:e.command.slice(1)}))}),pe(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:e=>new gl(E(f({},e),{body:ut(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:e.command.slice(1)}))}),pe(["underbrace"],"{:auto}",{createAtom:e=>new gl(E(f({},e),{body:ut(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:e.command.slice(1)}))}),pe(["xrightarrow","longrightarrow","xleftarrow","longleftarrow","xRightarrow","xLeftarrow","xleftharpoonup","xleftharpoondown","xrightharpoonup","xrightharpoondown","xlongequal","xtwoheadleftarrow","xtwoheadrightarrow","xleftrightarrow","longleftrightarrow","xLeftrightarrow","xrightleftharpoons","longrightleftharpoons","xleftrightharpoons","xhookleftarrow","xhookrightarrow","xmapsto","xtofrom","xleftrightarrows","longleftrightarrows","xRightleftharpoons","longRightleftharpoons","xLeftrightharpoons","longLeftrightharpoons"],"[:auto]{:auto}",{createAtom:e=>{var t,r,n,i,s;return new gl(E(f({},e),{svgBody:e.command.slice(1),above:((r=ut((t=e.args)==null?void 0:t[1]))==null?void 0:r.length)===0?void 0:ut((n=e.args)==null?void 0:n[1]),below:(s=ut((i=e.args)==null?void 0:i[0]))!=null?s:null,skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,paddedLabels:!0,boxType:"rel"}))},serialize:(e,t)=>e.command+(e.hasEmptyBranch("below")?"":`[${e.belowToLatex(t)}]`)+`{${e.aboveToLatex(t)}}${e.supsubToLatex(t)}`}),pe(["arccos","arcsin","arctan","arctg","arcctg","arg","ch","cos","cosh","cot","cotg","coth","ctg","cth","csc","cosec","deg","dim","exp","gcd","hom","inf","ker","lb","lg","ln","log","Pr","sec","sh","sin","sinh","sup","tan","tanh","tg","th","arcsec","arccsc","arsinh","arcosh","artanh","arcsech","arccsch"],"",{isFunction:!0,ifMode:"math",createAtom:e=>new NA(e.command.slice(1),E(f({},e),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),pe(["liminf","limsup"],"",{ifMode:"math",createAtom:e=>new NA({"\\liminf":"lim inf","\\limsup":"lim sup"}[e.command],E(f({},e),{limits:"over-under",variant:"main"}))}),pe(["lim","mod"],"",{ifMode:"math",createAtom:e=>new NA(e.command.slice(1),E(f({},e),{limits:"over-under",variant:"main"}))}),pe(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:e=>new NA(e.command.slice(1),E(f({},e),{limits:"over-under",isFunction:!0,variant:"main"}))}),pe(["ang"],"{:math}",{ifMode:"math",createAtom:e=>new zr(E(f({},e),{body:ut(e.args[0])})),serialize:(e,t)=>`\\ang{${e.bodyToLatex(t)}}`,render:(e,t)=>{const r=e.createBox(t),n=r.caret;r.caret=void 0;const i=new fn("\xB0",{style:E(f({},e.style),{variant:"normal",variantStyle:"up"})});return new fn([r,i],{type:"inner",isSelected:e.isSelected,caret:n})}}),pe("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:e=>new nA(E(f({},e),{body:ut(e.args[1]),index:e.args[0]?ut(e.args[0]):void 0}))}),pe(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:e=>{const t=f({},e),r=e.command,n=e.args;switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":t.hasBarLine=!0;break;case"\\atopfrac":t.hasBarLine=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":t.hasBarLine=!1,t.leftDelim="(",t.rightDelim=")";break;case"\\cfrac":t.hasBarLine=!0,t.continuousFraction=!0;break;default:}switch(r){case"\\dfrac":case"\\dbinom":t.mathstyleName="displaystyle";break;case"\\tfrac":case"\\tbinom":t.mathstyleName="textstyle";break;default:}return new nu(n[0]?ut(n[0]):[new ql],n[1]?ut(n[1]):[new ql],t)},serialize:(e,t)=>{const r=e.aboveToLatex(t),n=e.belowToLatex(t);return/^[0-9]$/.test(r)&&/^[0-9]$/.test(n)?`${e.command}${r}${n}`:So(e.command,r,n)}}),pe(["brace","brack"],"",{infix:!0,createAtom:e=>new nu(ut(e.args[0]),ut(e.args[1]),E(f({},e),{hasBarLine:!1,leftDelim:e.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:e.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(e,t)=>Ba([e.aboveToLatex(t),e.command,e.belowToLatex(t)])}),pe(["over","atop","choose"],"",{infix:!0,createAtom:e=>{let t,r;const n=e.args;return e.command==="\\choose"&&(t="(",r=")"),new nu(ut(n[0]),ut(n[1]),E(f({},e),{hasBarLine:e.command==="\\over",leftDelim:t,rightDelim:r}))},serialize:(e,t)=>Ba([e.aboveToLatex(t),e.command,e.belowToLatex(t)])}),pe(["overwithdelims","atopwithdelims"],"{numer:auto}{denom:auto}{left-delim:delim}{right-delim:delim}",{infix:!0,createAtom:e=>{var t,r;const n=e.args;return new nu(ut(n[0]),ut(n[1]),E(f({},e),{leftDelim:(t=n[2])!=null?t:".",rightDelim:(r=n[3])!=null?r:".",hasBarLine:!1}))},serialize:(e,t)=>`${e.aboveToLatex(t)} ${e.command}${e.leftDelim}${e.rightDelim}${e.belowToLatex(t)}`}),pe("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:e=>new nu(ut(e.args[0]),ut(e.args[1]),E(f({},e),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),pe(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:e=>new Cd({coprod:"\u2210",bigvee:"\u22C1",bigwedge:"\u22C0",biguplus:"\u2A04",bigcap:"\u22C2",bigcup:"\u22C3",intop:"\u222B",prod:"\u220F",sum:"\u2211",bigotimes:"\u2A02",bigoplus:"\u2A01",bigodot:"\u2A00",bigsqcup:"\u2A06",smallint:"\u222B"}[e.command.slice(1)],E(f({},e),{limits:"auto",variant:"main"}))}),pe("smallint","",{ifMode:"math",createAtom:e=>new NA("\u222B",E(f({},e),{limits:"adjacent",variant:"main"}))});var Lh={int:"\u222B",iint:"\u222C",iiint:"\u222D",oint:"\u222E",oiint:"\u222F",oiiint:"\u2230",intclockwise:"\u2231",varointclockwise:"\u2232",ointctrclockwise:"\u2233",intctrclockwise:"\u2A11",sqcup:"\u2294",sqcap:"\u2293",uplus:"\u228E",wr:"\u2240",amalg:"\u2A3F",Cap:"\u22D2",Cup:"\u22D3",doublecap:"\u22D2",doublecup:"\u22D3"};pe(Object.keys(Lh),"",{ifMode:"math",createAtom:e=>{const t=e.command,r=Lh[t.slice(1)];return new Cd(r,E(f({},e),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[r]}))}}),pe(["Re","Im"],"",{ifMode:"math",createAtom:e=>new NA({"\\Re":"\u211C","\\Im":"\u2111"}[e.command],E(f({},e),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),pe("middle","{:delim}",{ifMode:"math",createAtom:e=>{var t;return new Zd(E(f({},e),{delim:(t=e.args[0])!=null?t:"|",size:1}))}}),pe("the","{:value}",{createAtom:e=>new zr(E(f({},e),{captureSelection:!0,verbatimLatex:null})),render:(e,t)=>{var r;const n=new la({parent:t},e.style);let i="";e.isSelected&&(i+=" ML__selected");const s=n.evaluate(e.args[0]);return new fn(((r=os(s))!=null?r:"").split("").map(A=>new fn(A,{type:"ord",classes:i,mode:e.mode,isSelected:e.isSelected,style:f({variant:"main"},e.style)})),{type:"lift",style:e.style,caret:e.caret,isSelected:e.isSelected,classes:i}).wrap(n)},serialize:e=>{var t;return`\\the${(t=os(e.args[0]))!=null?t:"\\relax"}`}}),pe("mathtip","{:auto}{:math}",{createAtom:e=>new sd(E(f({},e),{body:ut(e.args[0]),tooltip:ut(e.args[1]),content:"math"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${zr.serialize([e.tooltip],E(f({},t),{defaultMode:"math"}))}}`}),pe("texttip","{:auto}{:text}",{createAtom:e=>new sd(E(f({},e),{body:ut(e.args[0]),tooltip:ut(e.args[1]),content:"text"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${zr.serialize([e.tooltip],E(f({},t),{defaultMode:"text"}))}}`}),pe("error","{:math}",{createAtom:e=>new zr(E(f({},e),{body:ut(e.args[0])})),serialize:(e,t)=>`\\error{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__error"})}),pe("ensuremath","{:math}",{createAtom:e=>new zr(E(f({},e),{body:ut(e.args[0])})),serialize:(e,t)=>`${e.command}{${e.bodyToLatex(E(f({},t),{defaultMode:"math"}))}}`}),pe("color","{:value}",{applyStyle:(e,t,r)=>{var n,i;return{verbatimColor:(n=os(t[0]))!=null?n:void 0,color:r.toColor((i=t[0])!=null?i:{string:"red"})}}}),pe("textcolor","{:value}{content:auto*}",{applyStyle:(e,t,r)=>{var n,i;return{verbatimColor:(n=os(t[0]))!=null?n:void 0,color:r.toColor((i=t[0])!=null?i:{string:"red"})}}}),pe("boxed","{content:math}",{createAtom:e=>new Qs(E(f({},e),{body:ut(e.args[0]),framecolor:{string:"black"}}))}),pe("colorbox","{:value}{:text*}",{applyStyle:(e,t,r)=>{var n,i;return{verbatimBackgroundColor:(n=os(t[0]))!=null?n:void 0,backgroundColor:r.toBackgroundColor((i=t[0])!=null?i:{string:"yellow"})}}}),pe("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:e=>{var t,r;return new Qs(E(f({},e),{body:ut(e.args[2]),framecolor:(t=e.args[0])!=null?t:{string:"blue"},backgroundcolor:(r=e.args[1])!=null?r:{string:"yellow"}}))},serialize:(e,t)=>{var r,n;return t.skipStyles?e.bodyToLatex(E(f({},t),{defaultMode:"text"})):So(e.command,(r=os(e.framecolor))!=null?r:"",(n=os(e.backgroundcolor))!=null?n:"",e.bodyToLatex(E(f({},t),{defaultMode:"text"})))}}),pe("bbox","[:bbox]{body:auto}",{createAtom:e=>{var t;const r=e.args[0],n=ut(e.args[1]);return r?new Qs(E(f({},e),{body:n,padding:r.padding,border:r.border,backgroundcolor:(t=r.backgroundcolor)!=null?t:void 0})):new Qs(E(f({},e),{body:n}))},serialize:(e,t)=>{var r,n;if(t.skipStyles)return e.bodyToLatex(t);let i=e.command;if(Number.isFinite(e.padding)||e.border!==void 0||e.backgroundcolor!==void 0){const s=[];e.padding&&s.push((r=os(e.padding))!=null?r:""),e.border&&s.push(`border: ${e.border}`),e.backgroundcolor&&s.push((n=os(e.backgroundcolor))!=null?n:""),i+=`[${s.join(",")}]`}return So(i,e.bodyToLatex(t))}}),pe(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:e=>new zr(E(f({},e),{body:ut(e.args[0])})),render:(e,t)=>{const r=new la({parent:t,mathstyle:e.command.slice(1)},e.style),n=zr.createBox(r,e.body,{type:"lift"});return e.caret&&(n.caret=e.caret),e.bind(t,n)},serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`{${Ba([e.command,e.bodyToLatex(t)])}}`}),pe(["tiny","scriptsize","footnotesize","small","normalsize","large","Large","LARGE","huge","Huge"],"",{applyStyle:e=>({fontSize:{"\\tiny":1,"\\scriptsize":2,"\\footnotesize":3,"\\small":4,"\\normalsize":5,"\\large":6,"\\Large":7,"\\LARGE":8,"\\huge":9,"\\Huge":10}[e]})}),pe("fontseries","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontSeries:(r=t[0])!=null?r:"auto"}}}),pe("fontshape","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontShape:(r=t[0])!=null?r:"auto"}}}),pe("fontfamily","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontFamily:(r=t[0])!=null?r:"roman"}}}),pe("selectfont","",{ifMode:"text",applyStyle:()=>({})}),pe("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),pe(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:e=>new zr(E(f({},e),{body:ut(e.args[0])})),serialize:(e,t)=>`${e.command}{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__boldsymbol"})}),pe("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),pe("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),pe("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),pe("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),pe("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),pe("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),pe("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),pe("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),pe("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),pe("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),pe("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),pe("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),pe("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),pe("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),pe("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),pe("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),pe("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),pe("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),pe("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),pe("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),pe("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),pe("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),pe("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),pe("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),pe("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),pe("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),pe("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),pe(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),pe(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),pe("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),pe("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),pe("mbox","{:text}",{ifMode:"math",createAtom:e=>new zr(E(f({},e),{type:"mord",body:ut(e.args[0]),mode:"math"})),serialize:(e,t)=>So("\\mbox",e.bodyToLatex(E(f({},t),{defaultMode:"text"})))}),pe("text","{:text}",{ifMode:"math",applyMode:"text"}),pe(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:e=>new zr(E(f({},e),{body:ut(e.args[1])})),serialize:(e,t)=>!e.args[0]||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`,render:(e,t)=>{var r;return e.createBox(t,{classes:(r=e.args[0])!=null?r:""})}}),pe(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:e=>new zr(E(f({},e),{body:ut(e.args[1])})),serialize:(e,t)=>{var r;return!((r=e.args)!=null&&r[0])||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var r;const n=e.createBox(t);return n.cssId=(r=e.args[0])!=null?r:"",n}}),pe("htmlData","{data:string}{content:auto}",{createAtom:e=>new zr(E(f({},e),{body:ut(e.args[1])})),serialize:(e,t)=>{var r;return!((r=e.args)!=null&&r[0])||t.skipStyles?e.bodyToLatex(t):`\\htmlData{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var r;const n=e.createBox(t);return n.htmlData=(r=e.args[0])!=null?r:"",n}}),pe(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:e=>new zr(E(f({},e),{body:ut(e.args[1])})),serialize:(e,t)=>{var r;return!((r=e.args)!=null&&r[0])||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var r;const n=e.createBox(t);return n.htmlStyle=(r=e.args[0])!=null?r:"",n}}),pe("em","{:rest}",{createAtom:e=>new zr(E(f({},e),{body:ut(e.args[0])})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`{\\em ${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__emph",boxType:"lift"})}),pe("emph","{:auto}",{createAtom:e=>new zr(E(f({},e),{body:ut(e.args[1])})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\emph{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__emph",boxType:"lift"})});var kh={"\\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}};pe(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:e=>{var t;return new wd(E(f({},e),{delim:(t=e.args[0])!=null?t:".",size:kh[e.command].size,delimType:kh[e.command].mclass}))}}),pe(["hspace","hspace*"],"{width:value}",{createAtom:e=>{var t;return new Vs(E(f({},e),{width:(t=e.args[0])!=null?t:{dimension:0}}))}}),pe(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:e=>{var t;return new Vs(E(f({},e),{width:(t=e.args[0])!=null?t:{dimension:0}}))}}),pe("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:e=>new zr(e),render:(e,t)=>{let r=0;const n=t.mathstyle.id;(n===_A||n===Vl)&&(r=1),(n===ic||n===lo)&&(r=2),(n===Os||n===ts)&&(r=3);const i=ut(e.args[r]);return zr.createBox(t,i)},serialize:(e,t)=>`\\mathchoice{${zr.serialize(e.args[0],t)}}{${zr.serialize(e.args[1],t)}}{${zr.serialize(e.args[2],t)}}{${zr.serialize(e.args[3],t)}}`}),pe("mathop","{:auto}",{createAtom:e=>new zr(E(f({},e),{type:"mop",body:ut(e.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(e,t)=>{var r;let n=zr.createBox(t,e.body);if(e.superscript||e.subscript){const i=(r=e.subsupPlacement)!=null?r:"auto";n=i==="over-under"||i==="auto"&&t.isDisplayStyle?e.attachLimits(t,{base:n}):e.attachSupsub(t,{base:n})}return new fn(e.bind(t,n),{type:"op",isSelected:e.isSelected,classes:"op-group"})},serialize:(e,t)=>{const r=[So(e.command,e.bodyToLatex(t))];return e.explicitSubsupPlacement&&(e.subsupPlacement==="over-under"&&r.push("\\limits"),e.subsupPlacement==="adjacent"&&r.push("\\nolimits"),e.subsupPlacement==="auto"&&r.push("\\displaylimits")),r.push(e.supsubToLatex(t)),Ba(r)}}),pe(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:e=>new zr(E(f({},e),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[e.command],body:ut(e.args[0])}))}),pe(["operatorname","operatorname*"],"{operator:math}",{createAtom:e=>{const t=ut(e.args[0]).map(r=>{var n;return r.type!=="first"&&(r.type="mord",r.value=(n={"\u2217":"*","\u2212":"-"}[r.value])!=null?n:r.value,r.isFunction=!1,!r.style.variant&&!r.style.variantStyle&&(r.style.variant="main",r.style.variantStyle="up")),r});return new zr(E(f({},e),{type:"mop",body:t,isFunction:!0,limits:e.command==="\\operatorname"?"adjacent":"over-under"}))},render:(e,t)=>{var r;let n=zr.createBox(t,e.body);if(e.superscript||e.subscript){const i=(r=e.subsupPlacement)!=null?r:"auto";n=i==="over-under"||i==="auto"&&t.isDisplayStyle?e.attachLimits(t,{base:n}):e.attachSupsub(t,{base:n})}return e.caret&&(n.caret=e.caret),new fn(e.bind(t,n),{type:"op",isSelected:e.isSelected,classes:"op-group"})},serialize:(e,t)=>{const r=[So(e.command,e.bodyToLatex(t))];return e.explicitSubsupPlacement&&(e.subsupPlacement==="over-under"&&r.push("\\limits"),e.subsupPlacement==="adjacent"&&r.push("\\nolimits"),e.subsupPlacement==="auto"&&r.push("\\displaylimits")),r.push(e.supsubToLatex(t)),Ba(r)}}),pe(["char","unicode"],"{charcode:value}",{createAtom:e=>new zr(E(f({},e),{type:e.mode==="text"?"text":"mord"})),serialize:e=>{var t;return`${e.command}${os((t=e.args[0])!=null?t:{number:10067,base:"hexadecimal"})}`},render:(e,t)=>{let r=t.evaluate(e.args[0]);return(!r||!("number"in r))&&(r={number:10067,base:"hexadecimal"}),e.value=String.fromCodePoint(r.number),e.createBox(t)}}),pe("rule","[raise:value]{width:value}{thickness:value}",{createAtom:e=>new zr(e),render:(e,t)=>{var r,n,i;const s=new la({parent:t,mathstyle:"textstyle"},e.style),A=s.toEm((r=e.args[0])!=null?r:{dimension:0}),M=s.toEm((n=e.args[1])!=null?n:{dimension:10}),z=s.toEm((i=e.args[2])!=null?i:{dimension:10}),X=new fn(null,{classes:"rule",type:"ord"});return X.width=M,X.height=z+A,X.depth=-A,X.setStyle("border-right-width",M,"em"),X.setStyle("border-top-width",z,"em"),X.setStyle("border-color",e.style.color),X.setStyle("vertical-align",A,"em"),e.isSelected&&X.setStyle("opacity","50%"),e.bind(s,X),e.caret&&(X.caret=e.caret),X.wrap(t)},serialize:e=>`\\rule${e.args[0]?`[${os(e.args[0])}]`:""}{${os(e.args[1])}}{${os(e.args[2])}}`}),pe(["overline","underline"],"{:auto}",{createAtom:e=>new zr(E(f({},e),{body:ut(e.args[0])})),render:(e,t)=>{const r=e.command.substring(1),n=new la({parent:t,mathstyle:"cramp"},e.style),i=zr.createBox(n,e.body);if(!i)return null;const s=n.metrics.defaultRuleThickness/n.scalingFactor,A=new fn(null,{classes:r+"-line"});A.height=s,A.maxFontSize=s*1.125*n.scalingFactor;let M;return r==="overline"?M=new Xo({shift:0,children:[{box:i},3*s,{box:A},s]}):M=new Xo({top:i.height,children:[s,{box:A},3*s,{box:i}]}),e.caret&&(M.caret=e.caret),new fn(M,{classes:r,type:"ignore"})}}),pe("overset","{:auto}{base:auto}",{createAtom:e=>{const t=ut(e.args[1]);return new gl(E(f({},e),{above:ut(e.args[0]),body:t,skipBoundary:!1,boxType:vc(t)}))},serialize:(e,t)=>So(e.command,e.aboveToLatex(t),e.bodyToLatex(t))}),pe("underset","{:auto}{base:auto}",{createAtom:e=>{const t=ut(e.args[1]);return new gl(E(f({},e),{below:ut(e.args[0]),body:t,skipBoundary:!1,boxType:vc(t)}))},serialize:(e,t)=>So(e.command,e.belowToLatex(t),e.bodyToLatex(t))}),pe("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:e=>{const t=ut(e.args[2]);return new gl(E(f({},e),{above:ut(e.args[0]),below:ut(e.args[1]),body:t,skipBoundary:!1,boxType:vc(t)}))},serialize:(e,t)=>So(e.command,e.belowToLatex(t),e.bodyToLatex(t))}),pe(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:e=>new gl(E(f({},e),{body:ut(e.args[2]),above:ut(e.args[1]),below:ut(e.args[0]),skipBoundary:!1,boxType:e.command==="\\stackrel"?"rel":"bin"})),serialize:(e,t)=>So(e.command,e.aboveToLatex(t),e.bodyToLatex(t))}),pe("smash","[:string]{:auto}",{createAtom:e=>{var t,r,n,i;return new _c(E(f({},e),{body:ut(e.args[1]),smashHeight:(r=(t=e.args[0])==null?void 0:t.includes("t"))!=null?r:!0,smashDepth:(i=(n=e.args[0])==null?void 0:n.includes("b"))!=null?i:!0}))}}),pe(["vphantom"],"{:auto}",{createAtom:e=>new _c(E(f({},e),{body:ut(e.args[0]),isInvisible:!0,smashWidth:!0}))}),pe(["hphantom"],"{:auto}",{createAtom:e=>new _c(E(f({},e),{body:ut(e.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),pe(["phantom"],"{:auto}",{createAtom:e=>new _c(E(f({},e),{body:ut(e.args[0]),isInvisible:!0}))}),pe("not","{:math}",{createAtom:e=>{const t=ut(e.args[0]);return t.length===0?new zr(E(f({},e),{type:"mrel",value:"\uE020"})):new zr(E(f({},e),{body:[new pA(E(f({},e),{body:"\uE020",align:"right"})),...t],captureSelection:!0}))},serialize:(e,t)=>{const r=e.args[0],n=r&&typeof r=="object"&&"group"in r;return e.value!=="\uE020"?n?`\\not{${zr.serialize(r.group,t)}}`:`\\not${zr.serialize(r,t)}`:n?"\\not{}":"\\not"},render:(e,t)=>{if(e.value)return e.createBox(t);const n=e.args[0]&&typeof e.args[0]=="object"&&"group"in e.args[0]?"ord":vc(ut(e.args[0])),i=zr.createBox(t,e.body,{type:n});return e.caret&&(i.caret=e.caret),e.bind(t,i)}}),pe(["ne","neq"],"",{createAtom:e=>new zr(E(f({},e),{type:"mrel",body:[new pA(E(f({},e),{body:"\uE020",align:"right",boxType:"rel"})),new zr(E(f({},e),{value:"="}))],captureSelection:!0})),serialize:e=>e.command}),pe("rlap","{:auto}",{createAtom:e=>new pA(E(f({},e),{body:ut(e.args[0]),align:"right"}))}),pe("llap","{:auto}",{createAtom:e=>new pA(E(f({},e),{body:ut(e.args[0]),align:"left"}))}),pe("mathrlap","{:math}",{createAtom:e=>new pA(E(f({},e),{body:ut(e.args[0]),align:"left"}))}),pe("mathllap","{:math}",{createAtom:e=>new pA(E(f({},e),{body:ut(e.args[0]),align:"left"}))}),pe("raisebox","{:value}{:text}",{createAtom:e=>{var t;return new Qs(E(f({},e),{body:ut(e.args[1]),padding:{dimension:0},offset:(t=e.args[0])!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r;return So("\\raisebox",(r=os(e.offset))!=null?r:"0pt",e.bodyToLatex(t))}}),pe("raise","{:value}{:auto}",{createAtom:e=>{var t;return new Qs(E(f({},e),{body:ut(e.args[1]),padding:{dimension:0},offset:(t=e.args[0])!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r;return So("\\raise",(r=os(e.offset))!=null?r:"0pt",e.bodyToLatex(t))}}),pe("lower","{:value}{:auto}",{createAtom:e=>{var t;return new Qs(E(f({},e),{body:ut(e.args[1]),padding:{dimension:0},offset:(t=ys(e.args[0],-1))!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r,n;return So("\\lower",(n=os(ys((r=e.offset)!=null?r:{dimension:0},-1)))!=null?n:"0pt",e.bodyToLatex(t))}}),Y("0123456789/@.?!"),Ee(65,90),Ee(97,122),Y([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),Y([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),Y([["\\backslash",92],["\\nabla",8711],["\\partial",8706],["\\ell",8467],["\\hbar",8463],["\\Q",81,"mord","double-struck"],["\\C",67,"mord","double-struck"],["\\P",80,"mord","double-struck"],["\\pounds",163],["\\euro",8364]]),Y([["\\rightarrow",8594],["\\to",8594],["\\leftarrow",8592],["\\gets",8592],["\\Rightarrow",8658],["\\Leftarrow",8656],["\\longrightarrow",10230],["\\longleftarrow",10229],["\\Longrightarrow",10233],["\\implies",10233],["\\Longleftarrow",10232],["\\impliedby",10232],["\\longleftrightarrow",10231],["\\biconditional",10231],["\\Longleftrightarrow",10234],["\\mapsto",8614],["\\longmapsto",10236],["\\uparrow",8593],["\\downarrow",8595],["\\Uparrow",8657],["\\Downarrow",8659],["\\updownarrow",8597],["\\Updownarrow",8661],["\\hookrightarrow",8618],["\\hookleftarrow",8617],["\\rightharpoonup",8640],["\\leftharpoonup",8636],["\\rightharpoondown",8641],["\\leftharpoondown",8637],["\\searrow",8600],["\\nearrow",8599],["\\swarrow",8601],["\\nwarrow",8598],["\\originalof",8886],["\\laplace",8886],["\\imageof",8887],["\\Laplace",8887]],"mrel"),Y([["\\mapsfrom",8612,"mrel"],["\\Mapsfrom",10502,"mrel"],["\\MapsTo",10503,"mrel"],["\\Yup",8516,"mord"],["\\lightning",8623,"mrel"],["\\leftarrowtriangle",8701,"mrel"],["\\rightarrowtriangle",8702,"mrel"],["\\leftrightarrowtriangle",8703,"mrel"],["\\boxdot",8865,"mbin"],["\\bigtriangleup",9651,"mbin"],["\\bigtriangledown",9661,"mbin"],["\\boxbar",9707,"mbin"],["\\Lbag",10181,"mopen"],["\\Rbag",10182,"mclose"],["\\llbracket",10214,"mopen"],["\\rrbracket",10215,"mclose"],["\\longmapsfrom",10235,"mrel"],["\\Longmapsfrom",10237,"mrel"],["\\Longmapsto",10238,"mrel"],["\\boxslash",10692,"mbin"],["\\boxbslash",10693,"mbin"],["\\boxast",10694,"mbin"],["\\boxcircle",10695,"mbin"],["\\boxbox",10696,"mbin"],["\\fatsemi",10783,"mop"],["\\leftslice",10918,"mrel"],["\\rightslice",10919,"mrel"],["\\interleave",10996,"mbin"],["\\biginterleave",11004,"mop"],["\\sslash",11005,"mbin"],["\\talloblong",11006,"mbin"]]),Y([["\\lbrace",123,"mopen"],["\\rbrace",125,"mclose"],["\\lparen",40,"mopen"],["\\rparen",41,"mclose"],["\\langle",10216,"mopen"],["\\rangle",10217,"mclose"],["\\lfloor",8970,"mopen"],["\\rfloor",8971,"mclose"],["\\lceil",8968,"mopen"],["\\rceil",8969,"mclose"],["\\vert",8739],["\\lvert",8739,"mopen"],["\\rvert",8739,"mclose"],["\\|",8741],["\\Vert",8741],["\\mVert",8741],["\\lVert",8741,"mopen"],["\\rVert",8741,"mclose"],["\\lbrack",91,"mopen"],["\\rbrack",93,"mclose"],["\\{",123,"mopen"],["\\}",125,"mclose"],["(",40,"mopen"],[")",41,"mclose"],["[",91,"mopen"],["]",93,"mclose"],["\\ulcorner",9484,"mopen","ams"],["\\urcorner",9488,"mclose","ams"],["\\llcorner",9492,"mopen","ams"],["\\lrcorner",9496,"mclose","ams"],["\\lgroup",10222,"mopen"],["\\rgroup",10223,"mclose"],["\\lmoustache",9136,"mopen"],["\\rmoustache",9137,"mclose"]]),Y([["\\dashrightarrow",8674],["\\dashleftarrow",8672],["\\Rrightarrow",8667],["\\Lleftarrow",8666],["\\leftrightarrows",8646],["\\rightleftarrows",8644],["\\curvearrowright",8631],["\\curvearrowleft",8630],["\\rightrightarrows",8649],["\\leftleftarrows",8647],["\\upuparrows",8648],["\\downdownarrows",8650],["\\vartriangle",9651],["\\triangleq",8796],["\\vartriangleleft",8882],["\\trianglelefteq",8884],["\\ntriangleleft",8938],["\\ntrianglelefteq",8940],["\\vartriangleright",8883],["\\trianglerighteq",8885],["\\ntriangleright",8939],["\\ntrianglerighteq",8941],["\\blacktriangleleft",9664],["\\blacktriangleright",9654],["\\leftarrowtail",8610],["\\rightarrowtail",8611],["\\looparrowright",8620],["\\looparrowleft",8619],["\\twoheadleftarrow",8606],["\\twoheadrightarrow",8608],["\\twoheadrightarrowtail",10518],["\\rightleftharpoons",8652],["\\leftrightharpoons",8651],["\\Rsh",8625],["\\Lsh",8624],["\\circlearrowright",8635],["\\circlearrowleft",8634],["\\restriction",8638],["\\upharpoonright",8638],["\\upharpoonleft",8639],["\\downharpoonright",8642],["\\downharpoonleft",8643],["\\rightsquigarrow",8669],["\\leadsto",8669],["\\leftrightsquigarrow",8621],["\\multimap",8888],["\\nleftarrow",8602],["\\nrightarrow",8603],["\\nRightarrow",8655],["\\nLeftarrow",8653],["\\nleftrightarrow",8622],["\\nLeftrightarrow",8654],["\\nvrightarrow",8696],["\\nvtwoheadrightarrow",10496],["\\nvrightarrowtail",10516],["\\nvtwoheadrightarrowtail",10519],["\\shortparallel",8741],["\\nless",8814],["\\nleqslant",57360],["\\lneq",10887],["\\lneqq",8808],["\\nleqq",57361],["\\lvertneqq",57356],["\\lnsim",8934],["\\lnapprox",10889],["\\nprec",8832],["\\npreceq",8928],["\\precnsim",8936],["\\precnapprox",10937],["\\nsim",8769],["\\nshortmid",57350],["\\nmid",8740],["\\nvdash",8876],["\\nvDash",8877],["\\ngtr",8815],["\\ngeqslant",57359],["\\ngeqq",57358],["\\gneq",10888],["\\gneqq",8809],["\\gvertneqq",57357],["\\gnsim",8935],["\\gnapprox",10890],["\\nsucc",8833],["\\nsucceq",8929],["\\succnsim",8937],["\\succnapprox",10938],["\\ncong",8774],["\\nshortparallel",57351],["\\nparallel",8742],["\\nVDash",8879],["\\nsupseteqq",57368],["\\supsetneq",8843],["\\varsupsetneq",57371],["\\supsetneqq",10956],["\\varsupsetneqq",57369],["\\nVdash",8878],["\\precneqq",10933],["\\succneqq",10934],["\\nsubseteqq",57366],["\\leqslant",10877],["\\geqslant",10878],["\\gtrsim",8819],["\\approxeq",8778],["\\thickapprox",8776],["\\lessapprox",10885],["\\gtrapprox",10886],["\\precapprox",10935],["\\succapprox",10936],["\\thicksim",8764],["\\succsim",8831],["\\precsim",8830],["\\backsim",8765],["\\eqsim",8770],["\\backsimeq",8909],["\\lesssim",8818],["\\nleq",8816],["\\ngeq",8817],["\\smallsmile",8995],["\\smallfrown",8994],["\\leqq",8806],["\\eqslantless",10901],["\\lll",8920],["\\lessgtr",8822],["\\lesseqgtr",8922],["\\lesseqqgtr",10891],["\\risingdotseq",8787],["\\fallingdotseq",8786],["\\subseteqq",10949],["\\Subset",8912],["\\sqsubset",8847],["\\preccurlyeq",8828],["\\curlyeqprec",8926],["\\vDash",8872],["\\Vvdash",8874],["\\bumpeq",8783],["\\Bumpeq",8782],["\\geqq",8807],["\\eqslantgtr",10902],["\\ggg",8921],["\\gtrless",8823],["\\gtreqless",8923],["\\gtreqqless",10892],["\\supseteqq",10950],["\\Supset",8913],["\\sqsupset",8848],["\\succcurlyeq",8829],["\\curlyeqsucc",8927],["\\Vdash",8873],["\\shortmid",8739],["\\between",8812],["\\pitchfork",8916],["\\varpropto",8733],["\\backepsilon",8717],["\\llless",8920],["\\gggtr",8921],["\\doteqdot",8785],["\\Doteq",8785],["\\eqcirc",8790],["\\circeq",8791],["\\therefore",8756],["\\because",8757]],"mrel","ams"),Y([["+",43],["-",8722],["\u2212",8722],["\\pm",177],["\\mp",8723],["*",8727],["\\times",215],["\\div",247],["\\divides",8739],["\\cdot",8901],["\\cap",8745],["\\cup",8746],["\\setminus",8726],["\\land",8743],["\\wedge",8743],["\\lor",8744],["\\vee",8744],["\\circ",8728],["\\bigcirc",9711],["\\bullet",8729],["\\oplus",8853],["\\ominus",8854],["\\otimes",8855],["\\odot",8857],["\\oslash",8856],["\\bigtriangleup",9651],["\\bigtriangledown",9661],["\\triangleleft",9667],["\\triangleright",9657],["\\And",38],["\\dagger",8224],["\\dag",8224],["\\ddag",8225],["\\ddagger",8225],["\\ast",8727],["\\star",8902],["\\bigstar",9733],["\\diamond",8900]],"mbin"),Y([["\\lhd",8882],["\\rhd",8883],["\\lessdot",8918],["\\gtrdot",8919],["\\ltimes",8905],["\\rtimes",8906],["\\leftthreetimes",8907],["\\rightthreetimes",8908],["\\intercal",8890],["\\dotplus",8724],["\\doublebarwedge",10846],["\\divideontimes",8903],["\\centerdot",8901],["\\smallsetminus",8726],["\\barwedge",8892],["\\veebar",8891],["\\nor",8891],["\\curlywedge",8911],["\\curlyvee",8910],["\\boxminus",8863],["\\boxplus",8862],["\\boxtimes",8864],["\\boxdot",8865],["\\circleddash",8861],["\\circledast",8859],["\\circledcirc",8858],["\\unlhd",8884],["\\unrhd",8885]],"mbin","ams"),Y([["\\surd",8730],["\\infty",8734],["\\prime",8242],["\\doubleprime",8243],["\\angle",8736],["`",8216],["\\$",36],["\\%",37],["\\_",95],["\\alpha",945],["\\beta",946],["\\gamma",947],["\\delta",948],["\\epsilon",1013],["\\varepsilon",949],["\\zeta",950],["\\eta",951],["\\theta",952],["\\vartheta",977],["\\iota",953],["\\kappa",954],["\\varkappa",1008,"mord","ams"],["\\lambda",955],["\\mu",956],["\\nu",957],["\\xi",958],["\\omicron",111],["\\pi",960],["\\varpi",982],["\\rho",961],["\\varrho",1009],["\\sigma",963],["\\varsigma",962],["\\tau",964],["\\phi",981],["\\varphi",966],["\\upsilon",965],["\\chi",967],["\\psi",968],["\\omega",969],["\\Gamma",915],["\\Delta",916],["\\Theta",920],["\\Lambda",923],["\\Xi",926],["\\Pi",928],["\\Sigma",931],["\\Upsilon",933],["\\Phi",934],["\\Psi",936],["\\Omega",937],["\\digamma",989,"mord","ams"],["\\emptyset",8709]]),Y([["=",61],["<",60],["\\lt",60],[">",62],["\\gt",62],["\\le",8804],["\\leq",8804],["\\ge",8805],["\\geq",8805],["\\ll",8810],["\\gg",8811],["\\coloneq",8788],["\\coloneqq",8788],["\\colonequals",8788],["\\measeq",8797],["\\eqdef",8798],["\\questeq",8799],[":",58],["\\cong",8773],["\\equiv",8801],["\\prec",8826],["\\preceq",10927],["\\succ",8827],["\\succeq",10928],["\\perp",8869],["\\propto",8733],["\\Colon",8759],["\\smile",8995],["\\frown",8994],["\\sim",8764],["\\doteq",8784],["\\bowtie",8904],["\\Join",8904],["\\asymp",8781],["\\sqsubseteq",8849],["\\sqsupseteq",8850],["\\approx",8776],["\\~",126],["\\leftrightarrow",8596],["\\Leftrightarrow",8660],["\\models",8872],["\\vdash",8866],["\\dashv",8867],["\\roundimplies",10608],["\\in",8712],["\\notin",8713],["\\ni",8715],["\\owns",8715],["\\subset",8834],["\\supset",8835],["\\subseteq",8838],["\\supseteq",8839],["\\differencedelta",8710],["\\mvert",8739],["\\parallel",8741],["\\simeq",8771]],"mrel"),Y([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),Y([["\\wp",8472],["\\aleph",8501]]),Y([["\\blacktriangle",9650],["\\hslash",8463],["\\Finv",8498],["\\Game",8513],["\\eth",240],["\\mho",8487],["\\Bbbk",107],["\\yen",165],["\\square",9633],["\\Box",9633],["\\blacksquare",9632],["\\circledS",9416],["\\circledR",174],["\\triangledown",9661],["\\blacktriangledown",9660],["\\checkmark",10003],["\\diagup",9585],["\\measuredangle",8737],["\\sphericalangle",8738],["\\backprime",8245],["\\backdoubleprime",8246],["\\Diamond",9674],["\\lozenge",9674],["\\blacklozenge",10731],["\\varnothing",8709],["\\complement",8705],["\\maltese",10016],["\\beth",8502],["\\daleth",8504],["\\gimel",8503]],"mord","ams"),Y([["\\ ",160],["~",160]],"space"),pe(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:e=>new Vs(e)}),pe("space","",{createAtom:e=>new Vs(e)}),Y([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),Y([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),Y([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var Dh="<mo>&#x2061;</mo>",u0="<mo>&#8290;</mo>";function d0(e){return e.replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function qo(e,t){return!e||!t.generateID?"":` extid="${e}"`}function km(e,t,r){var n,i,s,A,M,z,X,ue,Ke,ft,Ft;let Nt=!1;t=t!=null?t:e.atoms.length;let Er="",Fn="",xr=e.atoms[e.index];const nn=(i=(n=xr.style)==null?void 0:n.variant)!=null?i:"",Rn=(A=(s=xr.style)==null?void 0:s.variantStyle)!=null?A:"";let pn="";if(nn||Rn){const zi=at(xr.value,(M=xr.style)==null?void 0:M.variant,(z=xr.style)==null?void 0:z.variantStyle);if(zi!==xr.value)return e.index+=1,Er=`<mi${qo(xr.id,r)}>${zi}</mi>`,Xu(Er,e,r)||(e.mathML+=Er,e.lastType="mi"),!0;pn=(X={upnormal:"normal",boldnormal:"bold",italicmain:"italic",bolditalicmain:"bold-italic","updouble-struck":"double-struck","double-struck":"double-struck",boldfraktur:"bold-fraktur",calligraphic:"script",upcalligraphic:"script",script:"script",boldscript:"bold-script",boldcalligraphic:"bold-script",fraktur:"fraktur","upsans-serif":"sans-serif","boldsans-serif":"bold-sans-serif","italicsans-serif":"sans-serif-italic","bolditalicsans-serif":"sans-serif-bold-italic",monospace:"monospace"}[Rn+nn])!=null?X:"",pn=` mathvariant="${pn}"`}const Si={"\\exponentialE":"&#x02147;","\\imaginaryI":"&#x2148;","\\differentialD":"&#x2146;","\\capitalDifferentialD":"&#x2145;","\\alpha":"&#x03b1;","\\pi":"&#x03c0;","\\infty":"&#x221e;","\\forall":"&#x2200;","\\nexists":"&#x2204;","\\exists":"&#x2203;","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(xr.command==="!")return e.index+=1,Er="<mo>!</mo>",Xu(Er,e,r)||(e.mathML+=Er,e.lastType="mo"),!0;if(Si[xr.command]){e.index+=1;let zi=`<mi${qo(xr.id,r)}${pn}>${Si[xr.command]}</mi>`;return(e.lastType==="mi"||e.lastType==="mn"||e.lastType==="mtext"||e.lastType==="fence")&&(zi=u0+zi),Xu(zi,e,r)||(e.mathML+=zi,e.lastType="mi"),!0}if(xr.command==="\\operatorname")Fn=cf(xr.body),e.index+=1;else if(nn||Rn)for(;e.index<t&&(xr.type==="mord"||xr.type==="macro")&&!xr.isDigit()&&nn===((Ke=(ue=xr.style)==null?void 0:ue.variant)!=null?Ke:"")&&Rn===((Ft=(ft=xr.style)==null?void 0:ft.variantStyle)!=null?Ft:"");)Fn+=cf([xr]),e.index+=1,xr=e.atoms[e.index];else(xr.type==="mord"||xr.type==="macro")&&!xr.isDigit()&&(Fn+=cf([xr]),e.index+=1);if(Fn.length>0){Nt=!0,Er=`<mi${pn}>${Fn}</mi>`;const zi=e.lastType;Er.endsWith(">f</mi>")||Er.endsWith(">g</mi>")?(Er+=Dh,e.lastType="applyfunction"):e.lastType=/^<mo>(.*)<\/mo>$/.test(Er)?"mo":"mi",Xu(Er,e,r)||((zi==="mi"||zi==="mn"||zi==="mtext"||zi==="fence")&&(Er=u0+Er),e.mathML+=Er)}return Nt}function Dm(e){return e.index<e.atoms.length&&e.atoms[e.index].superscript&&e.atoms[e.index].type==="subsup"}function Pm(e){let t=-1,r=e.index,n=!1,i=!1;for(;r<e.atoms.length&&!n&&!i;){const s=e.atoms[r];n=!s.isDigit(),i=!n&&s.superscript!==void 0,r++}return i&&(t=r-1),t}function Xu(e,t,r){var n;let i=t.atoms[t.index-1];if(!i)return!1;if(!i.superscript&&!i.subscript)if(((n=t.atoms[t.index])==null?void 0:n.type)==="subsup")i=t.atoms[t.index],t.index+=1;else return!1;const s=t.lastType;t.lastType="";const A=Eo(i.superscript,r);t.lastType="";const M=Eo(i.subscript,r);if(t.lastType=s,!A&&!M)return!1;let z="";return A&&M?z=`<msubsup>${e}${M}${A}</msubsup>`:A?z=`<msup>${e}${A}</msup>`:M&&(z=`<msub>${e}${M}</msub>`),t.mathML+=z,t.lastType="",!0}function Nm(e,t,r){t=t!=null?t:e.atoms.length;const n=e.index;let i="";for(;e.index<t&&e.atoms[e.index].mode==="text";)i+=e.atoms[e.index].value?e.atoms[e.index].value:" ",e.index+=1;return i.length>0?(e.mathML+=`<mtext ${qo(e.atoms[n].id,r)}>${i}</mtext>`,e.lastType="mtext",!0):!1}function Om(e,t,r){t=t!=null?t:e.atoms.length;const n=e.index;let i="",s=Pm(e);for(s>=0&&s<t&&(t=s);e.index<t&&e.atoms[e.index].isDigit();)i+=e.atoms[e.index].asDigit(),e.index+=1;return i.length<=0?!1:(i="<mn"+qo(e.atoms[n].id,r)+">"+i+"</mn>",s<0&&Dm(e)&&(s=e.index,e.index+=1),Xu(i,e,r)||(e.mathML+=i,e.lastType="mn"),!0)}function Tm(e,t,r){let n=!1;t=t!=null?t:e.atoms.length;let i="",s="";if(e.index<t&&e.atoms[e.index].type==="mopen"){let A=!1,M=0;const z=e.index;let X=-1,ue=z+1;for(;ue<t&&!A;)e.atoms[ue].type==="mopen"?M+=1:e.atoms[ue].type==="mclose"&&(M-=1),M===-1&&(A=!0,X=ue),ue+=1;A&&(i="<mrow>",i+=jd(e.atoms[z],r),i+=Eo(e.atoms,r,z+1,X),i+=jd(e.atoms[X],r),i+="</mrow>",e.index=X+1,(e.lastType==="mi"||e.lastType==="mn"||e.lastType==="mfrac"||e.lastType==="fence")&&(e.mathML+=u0),Xu(i,e,r)&&(n=!0,e.lastType="",i=""),s="fence")}return i.length>0&&(n=!0,e.mathML+=i,e.lastType=s),n}function Um(e,t,r){let n=!1;t=t!=null?t:e.atoms.length;let i="",s="";const A=e.atoms[e.index];if(!A)return!1;const M={"\\ne":"&ne;","\\neq":"&neq;","\\pm":"&#177;","\\times":"&#215;","\\colon":":","\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lbrack":"[","\\rbrack":"]","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"};if(M[A.command]){e.index+=1;const z=`<mo${qo(A.id,r)}>${M[A.command]}</mo>`;return Xu(z,e,r)||(e.mathML+=z,e.lastType="mo"),!0}if(e.index<t&&(A.type==="mbin"||A.type==="mrel"))i+=Q0(e.atoms[e.index],r),e.index+=1,s="mo";else if(e.index<t&&(A.type==="mop"||A.type==="operator"||A.type==="extensible-symbol")){if(A.subsupPlacement==="over-under"&&(A.superscript||A.subscript)){const z=jd(A,r);return A.superscript&&A.subscript?(i+="<munderover>"+z,i+=Eo(A.subscript,r),i+=Eo(A.superscript,r),i+="</munderover>"):A.superscript?(i+="<mover>"+z,i+=Eo(A.superscript,r),i+="</mover>"):A.subscript&&(i+="<munder>"+z,i+=Eo(A.subscript,r),i+="</munder>"),e.mathML+=i,e.lastType="mo",e.index+=1,!0}{const z=e.atoms[e.index],X=z.value==="\\operatorname",ue=X?'<mi class="MathML-Unit"'+qo(z.id,r)+">"+cf(z.value)+"</mi>":jd(z,r);i+=ue,!X&&!/^<mo>(.*)<\/mo>$/.test(ue)?(i+=Dh,s="applyfunction"):s=X?"mi":"mo"}(e.lastType==="mi"||e.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(i)&&(i=u0+i),e.index+=1}return i.length>0&&(n=!0,Xu(i,e,r)||(e.mathML+=i,e.lastType=s)),n}function Eo(e,t,r,n){t!=null||(t={});const i={atoms:[],index:r!=null?r:0,mathML:"",lastType:""};if(typeof e=="number"||typeof e=="boolean")i.mathML=e.toString();else if(typeof e=="string")i.mathML=e;else if(e instanceof zr)i.mathML=Q0(e,t);else if(Array.isArray(e)){i.atoms=e;let s=0;for(n=n||(e?e.length:0);i.index<n;)if(Nm(i,n,t)||Om(i,n,t)||km(i,n,t)||Um(i,n,t)||Tm(i,n,t))s+=1;else if(i.index<n){let A=Q0(i.atoms[i.index],t);i.lastType==="mn"&&A.length>0&&i.atoms[i.index].type==="genfrac"&&(A="<mo>&#x2064;</mo>"+A),i.atoms[i.index].type==="genfrac"?i.lastType="mfrac":i.lastType="",i.index+=1,Xu(A,i,t)?s+=1:A.length>0&&(i.mathML+=A,s+=1)}s>1&&(i.mathML="<mrow>"+i.mathML+"</mrow>")}return i.mathML}function jd(e,t){let r="";const n=cf(e.value);return n&&(r="<mo"+qo(e.id,t)+">"+n+"</mo>"),r}function cf(e){if(!e)return"";if(typeof e=="string")return d0(e);if(!Array.isArray(e)&&typeof e.body=="string")return d0(e.body);let t="";for(const r of e)typeof r.value=="string"&&(t+=r.value);return d0(t)}function Q0(e,t){var r,n,i,s,A,M,z,X,ue,Ke,ft,Ft,Nt,Er,Fn,xr,nn,Rn,pn,Si,zi,Ui;if(e.mode==="text")return`<mi${qo(e.id,t)}>${e.value}</mi>`;const io={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",longleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",longrightarrow:"\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",longrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xleftrightarrows:"\u21C4",xRightleftharpoons:"\u21CC",longRightleftharpoons:"\u21CC",xLeftrightharpoons:"\u21CB",longLeftrightharpoons:"\u21CB"},zo={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let Wn="",yA="",ku,RA,Il,bA,Vc,es;const{command:Gs}=e;if(e.command==="\\error")return`<merror${qo(e.id,t)}>${Eo(e.body,t)}</merror>`;const Ml={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},Du={"\\vec":"&#x20d7;","\\acute":"&#x00b4;","\\grave":"&#x0060;","\\dot":"&#x02d9;","\\ddot":"&#x00a8;","\\tilde":"&#x007e;","\\bar":"&#x00af;","\\breve":"&#x02d8;","\\check":"&#x02c7;","\\hat":"&#x005e;"};switch(e.type){case"first":break;case"group":case"root":Wn=Eo(e.body,t);break;case"array":if((e.leftDelim&&e.leftDelim!=="."||e.rightDelim&&e.rightDelim!==".")&&(Wn+="<mrow>",e.leftDelim&&e.leftDelim!=="."&&(Wn+="<mo>"+(Ml[e.leftDelim]||e.leftDelim)+"</mo>")),Wn+="<mtable",e.colFormat){for(Wn+=' columnalign="',Il=0;Il<e.colFormat.length;Il++)e.colFormat[Il].align&&(Wn+={l:"left",c:"center",r:"right"}[e.colFormat[Il].align]+" ");Wn+='"'}for(Wn+=">",RA=0;RA<e.array.length;RA++){for(Wn+="<mtr>",ku=0;ku<e.array[RA].length;ku++)Wn+="<mtd>"+Eo(e.array[RA][ku],t)+"</mtd>";Wn+="</mtr>"}Wn+="</mtable>",(e.leftDelim&&e.leftDelim!=="."||e.rightDelim&&e.rightDelim!==".")&&(e.rightDelim&&e.rightDelim!=="."&&(Wn+="<mo>"+(Ml[e.leftDelim]||e.rightDelim)+"</mo>"),Wn+="</mrow>");break;case"genfrac":(e.leftDelim||e.rightDelim)&&(Wn+="<mrow>"),e.leftDelim&&e.leftDelim!=="."&&(Wn+="<mo"+qo(e.id,t)+">"+(Ml[e.leftDelim]||e.leftDelim)+"</mo>"),e.hasBarLine?(Wn+="<mfrac>",Wn+=Eo(e.above,t)||"<mi>&nbsp;</mi>",Wn+=Eo(e.below,t)||"<mi>&nbsp;</mi>",Wn+="</mfrac>"):(Wn+="<mtable"+qo(e.id,t)+">",Wn+="<mtr>"+Eo(e.above,t)+"</mtr>",Wn+="<mtr>"+Eo(e.below,t)+"</mtr>",Wn+="</mtable>"),e.rightDelim&&e.rightDelim!=="."&&(Wn+="<mo"+qo(e.id,t)+">"+(Ml[e.rightDelim]||e.rightDelim)+"</mo>"),(e.leftDelim||e.rightDelim)&&(Wn+="</mrow>");break;case"surd":e.hasEmptyBranch("above")?(Wn+="<msqrt"+qo(e.id,t)+">",Wn+=Eo(e.body,t),Wn+="</msqrt>"):(Wn+="<mroot"+qo(e.id,t)+">",Wn+=Eo(e.body,t),Wn+=Eo(e.above,t),Wn+="</mroot>");break;case"leftright":const Pu=e,Nu=Pu.leftDelim;Wn="<mrow>",Nu&&Nu!=="."&&(Wn+=`<mo${qo(e.id,t)}>${(r=Ml[Nu])!=null?r:Nu}</mo>`),e.body&&(Wn+=Eo(e.body,t));const Ou=Pu.matchingRightDelim();Ou&&Ou!=="."&&(Wn+=`<mo${qo(e.id,t)}>${(n=Ml[Ou])!=null?n:Ou}</mo>`),Wn+="</mrow>";break;case"sizeddelim":case"delim":Wn+=`<mo${qo(e.id,t)}>${Ml[e.value]||e.value}</mo>`;break;case"accent":Wn+='<mover accent="true"'+qo(e.id,t)+">",Wn+=Eo(e.body,t),Wn+="<mo>"+(Du[Gs]||e.accent)+"</mo>",Wn+="</mover>";break;case"line":case"overlap":break;case"overunder":Vc=e.above,bA=e.below,(e.svgAbove||Vc)&&(e.svgBelow||bA)?es=e.body:Vc&&Vc.length>0?(es=e.body,(s=(i=e.body)==null?void 0:i[0])!=null&&s.below?(bA=e.body[0].below,es=e.body[0].body):((M=(A=e.body)==null?void 0:A[0])==null?void 0:M.type)==="first"&&((X=(z=e.body)==null?void 0:z[1])!=null&&X.below)&&(bA=e.body[1].below,es=e.body[1].body)):bA&&bA.length>0&&(es=e.body,(Ke=(ue=e.body)==null?void 0:ue[0])!=null&&Ke.above?(Vc=e.body[0].above,es=e.body[0].body):((Ft=(ft=e.body)==null?void 0:ft[0])==null?void 0:Ft.type)==="first"&&((Er=(Nt=e.body)==null?void 0:Nt[1])!=null&&Er.above)&&(Vc=e.body[1].overscript,es=e.body[1].body)),(e.svgAbove||Vc)&&(e.svgBelow||bA)?(Wn+=`<munderover ${qo(e.id,t)}>`,Wn+=(Fn=io[e.svgBody])!=null?Fn:Eo(es,t),Wn+=(xr=io[e.svgBelow])!=null?xr:Eo(bA,t),Wn+=(nn=io[e.svgAbove])!=null?nn:Eo(Vc,t),Wn+="</munderover>"):e.svgAbove||Vc?(Wn+=`<mover ${qo(e.id,t)}>`+((Rn=io[e.svgBody])!=null?Rn:Eo(es,t)),Wn+=(pn=io[e.svgAbove])!=null?pn:Eo(Vc,t),Wn+="</mover>"):(e.svgBelow||bA)&&(Wn+=`<munder ${qo(e.id,t)}>`+((Si=io[e.svgBody])!=null?Si:Eo(es,t)),Wn+=(zi=io[e.svgBelow])!=null?zi:Eo(bA,t),Wn+="</munder>");break;case"placeholder":Wn+="?";break;case"mord":{Wn=typeof e.value=="string"?e.value:Gs,Gs==="\\char"?Wn="&#x"+("000000"+e.args[0].number.toString(16)).slice(-4)+";":Wn.length>0&&Wn.startsWith("\\")&&(typeof e.value=="string"&&e.value.charCodeAt(0)>255?Wn="&#x"+("000000"+e.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof e.value=="string"?Wn=e.value.charAt(0):(console.error("Did not expect this"),Wn=""));const su=/\d/.test(Wn)?"mn":"mi";Wn=`<${su}${qo(e.id,t)}>${d0(Wn)}</${su}>`;break}case"mbin":case"mrel":case"minner":Wn=jd(e,t);break;case"mpunct":Wn='<mo separator="true"'+qo(e.id,t)+">"+Gs+"</mo>";break;case"mop":case"operator":case"extensible-symbol":e.body!=="\u200B"&&(Wn="<mo"+qo(e.id,t)+">",Wn+=Gs==="\\operatorname"?e.body:Gs||e.body,Wn+="</mo>");break;case"box":Wn='<menclose notation="box"',e.backgroundcolor&&(Wn+=' mathbackground="'+e.backgroundcolor+'"'),Wn+=qo(e.id,t)+">"+Eo(e.body,t)+"</menclose>";break;case"spacing":Wn+='<mspace width="'+((Ui=zo[Gs])!=null?Ui:0)+'em"/>';break;case"enclose":Wn='<menclose notation="';for(const su in e.notation)Object.prototype.hasOwnProperty.call(e.notation,su)&&e.notation[su]&&(Wn+=yA+su,yA=" ");Wn+=qo(e.id,t)+'">'+Eo(e.body,t)+"</menclose>";break;case"prompt":Wn='<menclose notation="roundexbox""">'+Eo(e.body,t)+"</menclose>";break;case"space":Wn+="&nbsp;";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":Wn+=jd(e,t);break;case"mclose":Wn+=jd(e,t);break;case"macro":{const su=e.command+cf(e.macroArgs);su&&(Wn+=`<mo ${qo(e.id,t)}>${su}</mo>`)}break;case"latexgroup":Wn+=Eo(e.body,t);break;case"latex":Wn+="<mtext"+qo(e.id,t)+">"+e.value+"</mtext>";break;case"tooltip":Wn+=Eo(e.body,t);break;case"text":Wn+=`<mtext ${qo(e.id,t)}x>${e.value}</mtext>`;break;default:if(e.command==="\\displaystyle")return`<mrow ${qo(e.id,t)} displaystyle="true">${Eo(e.body,t)}</mrow>`;if(e.command==="\\textstyle")return`<mrow ${qo(e.id,t)} displaystyle="false">${Eo(e.body,t)}</mrow>`;console.info("Unexpected element in conversion to MathML:",e)}return Wn}var Af={"\\alpha":"alpha ","\\mu":"mew ","\\sigma":"sigma ","\\pi":"pie ","\\imaginaryI":"imaginary eye ","\\imaginaryJ":"imaginary jay ","\\sum":"Summation ","\\prod":"Product ","+":"plus ","-":"minus ",";":'<break time="150ms"/> semi-colon <break time="150ms"/>',",":'<break time="150ms"/> comma <break time="150ms"/>',"|":'<break time="150ms"/>Vertical bar<break time="150ms"/>',"(":'<break time="150ms"/>Open paren. <break time="150ms"/>',")":'<break time="150ms"/> Close paren. <break time="150ms"/>',"=":"equals ","<":"is less than ","\\lt":"is less than ","<=":"is less than or equal to ","\\le":"is less than or equal to ","\\gt":"is greater than ",">":"is greater than ","\\pm":"plus or minus","\\mp":"minus or plus","\\ge":"is greater than or equal to ","\\geq":"is greater than or equal to ","\\leq":"is less than or equal to ","\\ne":"is not equal to ","\\neq":"is not equal to ","!":"factorial ","\\sin":"sine ","\\cos":"cosine ","\u200B":"","\u2212":"minus ",":":'<break time="150ms"/> such that <break time="200ms"/> ',"\\colon":'<break time="150ms"/> such that <break time="200ms"/> ',"\\hbar":"etch bar ","\\iff":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\Longleftrightarrow":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\land":"and ","\\lor":"or ","\\neg":"not ","\\div":"divided by ","\\forall":"for all ","\\exists":"there exists ","\\nexists":"there does not exists ","\\in":"element of ","\\N":'the set <break time="150ms"/><say-as interpret-as="character">n</say-as>',"\\C":'the set <break time="150ms"/><say-as interpret-as="character">c</say-as>',"\\Z":'the set <break time="150ms"/><say-as interpret-as="character">z</say-as>',"\\Q":'the set <break time="150ms"/><say-as interpret-as="character">q</say-as>',"\\infty":"infinity ","\\nabla":"nabla ","\\partial":"partial derivative of ","\\cdot":"times ","\\cdots":"dot dot dot ","\\Rightarrow":"implies ","\\lparen":'<break time="150ms"/>open paren<break time="150ms"/>',"\\rparen":'<break time="150ms"/>close paren<break time="150ms"/>',"\\lbrace":'<break time="150ms"/>open brace<break time="150ms"/>',"\\{":'<break time="150ms"/>open brace<break time="150ms"/>',"\\rbrace":'<break time="150ms"/>close brace<break time="150ms"/>',"\\}":'<break time="150ms"/>close brace<break time="150ms"/>',"\\langle":'<break time="150ms"/>left angle bracket<break time="150ms"/>',"\\rangle":'<break time="150ms"/>right angle bracket<break time="150ms"/>',"\\lfloor":'<break time="150ms"/>open floor<break time="150ms"/>',"\\rfloor":'<break time="150ms"/>close floor<break time="150ms"/>',"\\lceil":'<break time="150ms"/>open ceiling<break time="150ms"/>',"\\rceil":'<break time="150ms"/>close ceiling<break time="150ms"/>',"\\vert":'<break time="150ms"/>vertical bar<break time="150ms"/>',"\\mvert":'<break time="150ms"/>divides<break time="150ms"/>',"\\lvert":'<break time="150ms"/>left vertical bar<break time="150ms"/>',"\\rvert":'<break time="150ms"/>right vertical bar<break time="150ms"/>',"\\lbrack":'<break time="150ms"/> open square bracket <break time="150ms"/>',"\\rbrack":'<break time="150ms"/> close square bracket <break time="150ms"/>',mm:"millimeters",cm:"centimeters",km:"kilometers",kg:"kilograms"},K0={array:"array",matrix:"matrix",pmatrix:"parenthesis matrix",bmatrix:"square brackets matrix",Bmatrix:"braces matrix",vmatrix:"bars matrix",Vmatrix:"double bars matrix","matrix*":"matrix",smallmatrix:"small matrix"};function Rm(e){let t="";return e.startsWith("\\")&&(t=" "+e.replace("\\","")+" "),t}function Pf(e){let t=0;if(S(e))for(const r of e)r.type!=="first"&&(t+=1);return t===1}function Qm(e){if(S(e)){for(const t of e)if(t.type!=="first"&&t.id)return t.id.toString()}return""}function Ph(e){let t="";if(S(e))for(const r of e)r.type!=="first"&&typeof r.value=="string"&&(t+=r.value);return t}function Km(e){return e?e.map(t=>t.value).join(""):""}function Ga(e,t){var r,n,i,s,A;function M(ue){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(ue)?` <say-as interpret-as="character">${ue}</say-as>`:/[A-Z]/.test(ue)?`capital <say-as interpret-as="character">${ue.toLowerCase()}</say-as>`:ue:/[a-z]/.test(ue)?" '"+ue.toUpperCase()+"'":/[A-Z]/.test(ue)?" 'capital "+ue.toUpperCase()+"'":ue}function z(ue){return"<emphasis>"+ue+"</emphasis>"}if(!t)return"";let X="";if(S(t)){let ue=!1,Ke=!1;for(let ft=0;ft<t.length;ft++)t[ft].type!=="first"&&(t[ft].mode!=="text"&&(Ke=!1),ft<t.length-2&&t[ft].type==="mopen"&&t[ft+2].type==="mclose"&&t[ft+1].type==="mord"?(X+=" of ",X+=z(Ga(e,t[ft+1])),ft+=2):t[ft].mode==="text"?Ke?X+=(r=t[ft].value)!=null?r:" ":(Ke=!0,X+=Ga("text",t[ft])):t[ft].isDigit()?ue?X+=t[ft].asDigit():(ue=!0,X+=Ga(e,t[ft])):(ue=!1,X+=Ga(e,t[ft])))}else if(t.mode==="text")t.id&&e==="math"&&(X+='<mark name="'+t.id.toString()+'"/>'),X+=t.value;else{t.id&&e==="math"&&(X+='<mark name="'+t.id.toString()+'"/>');let ue="",Ke="",ft="",Ft=!1;const{command:Nt}=t;switch(Nt){case"\\vec":return"vector "+Ga(e,t.body);case"\\acute":return Ga(e,t.body)+" acute";case"\\grave":return Ga(e,t.body)+" grave";case"\\dot":return"dot over"+Ga(e,t.body);case"\\ddot":return"double dot over"+Ga(e,t.body);case"\\mathring":return"ring over"+Ga(e,t.body);case"\\tilde":case"\\widetilde":return"tilde over"+Ga(e,t.body);case"\\bar":return Ga(e,t.body)+" bar";case"\\breve":return Ga(e,t.body)+" breve";case"\\check":case"\\widecheck":return"check over "+Ga(e,t.body);case"\\hat":case"\\widehat":return"hat over"+Ga(e,t.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+Ga(e,t.body);case"\\underarc":case"\\underparen":return"arc under "+Ga(e,t.body)}switch(t.type){case"prompt":const Er=t.body.length>1?'start input . <break time="500ms"/> '+Ga(e,t.body)+'. <break time="500ms"/> end input':"blank";X+=' <break time="300ms"/> '+Er+'. <break time="700ms"/>'+((n=t.correctness)!=null?n:"")+' . <break time="700ms"/> ';break;case"array":const Fn=t.array,xr=t.environmentName;if(Object.keys(K0).includes(xr)){X+=` begin ${K0[xr]} `;for(let pn=0;pn<Fn.length;pn++){pn>0&&(X+=","),X+=` row ${pn+1} `;for(let Si=0;Si<Fn[pn].length;Si++)Si>0&&(X+=","),X+=` column ${Si+1}: `,X+=Ga("math",Fn[pn][Si])}X+=` end ${K0[xr]} `}break;case"group":Nt==="\\ne"?X+=" not equal ":(Nt==="\\not"&&(X+=" not "),X+=Ga("math",t.body));break;case"root":X+=Ga("math",t.body);break;case"genfrac":if(ue=Ga("math",t.above),Ke=Ga("math",t.below),Pf(t.above)&&Pf(t.below)){const Si={"1/2":" half ","1/3":" one third ","2/3":" two third","1/4":" one quarter ","3/4":" three quarter ","1/5":" one fifth ","2/5":" two fifths ","3/5":" three fifths ","4/5":" four fifths ","1/6":" one sixth ","5/6":" five sixths ","1/8":" one eight ","3/8":" three eights ","5/8":" five eights ","7/8":" seven eights ","1/9":" one ninth ","2/9":" two ninths ","4/9":" four ninths ","5/9":" five ninths ","7/9":" seven ninths ","8/9":" eight ninths "}[Ph(t.above)+"/"+Ph(t.below)];Si?X=Si:X+=ue+" over "+Ke}else X+=' the fraction <break time="150ms"/>'+ue+' over <break time="150ms"/>'+Ke+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(ft=Ga("math",t.body),t.hasEmptyBranch("above"))X+=Pf(t.body)?" the square root of "+ft+" , ":' the square root of <break time="200ms"/>'+ft+'. <break time="200ms"/> End square root';else{let pn=Ga("math",t.above);pn=pn.trim();const Si=pn.replace(/<mark([^/]*)\/>/g,"");Si==="3"?X+=' the cube root of <break time="200ms"/>'+ft+'. <break time="200ms"/> End cube root':Si==="n"?X+=' the nth root of <break time="200ms"/>'+ft+'. <break time="200ms"/> End root':X+=' the root with index: <break time="200ms"/>'+pn+', of <break time="200ms"/>'+ft+'. <break time="200ms"/> End root'}break;case"leftright":{const pn=t;X+=(i=pn.leftDelim?Af[pn.leftDelim]:void 0)!=null?i:pn.leftDelim,X+=Ga("math",t.body),X+=(s=pn.rightDelim?Af[pn.rightDelim]:void 0)!=null?s:pn.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const nn=Nt.replace(/^\\/g,""),Rn=At()[nn];Rn&&(Rn!=null&&Rn.expand?X+=Ga("math",t.body):X+=`${nn} `);break;case"placeholder":X+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(Nt==="\\mathbin"||Nt==="\\mathrel"||Nt==="\\mathopen"||Nt==="\\mathclose"||Nt==="\\mathpunct"||Nt==="\\mathord"||Nt==="\\mathinner"){X=Ga(e,t.body);break}let pn=t.isDigit()?t.asDigit():t.value,Si=t.command;if((t.type==="delim"||t.type==="sizeddelim")&&(Si=t.value,pn=Si),e==="text")X+=pn;else{if(t.type==="mbin"&&(X+='<break time="150ms"/>'),pn){const zi=Af[pn]||(Si?Af[Si.trim()]:"");if(zi)X+=" "+zi;else{const Ui=Si?Rm(Si.trim()):"";X+=Ui||M(pn)}}else X+=Ga("math",t.body);t.type==="mbin"&&(X+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(t.value!=="\u200B"){const pn=t.command;if(pn==="\\sum")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Si=Ga("math",t.superscript);Si=Si.trim();let zi=Ga("math",t.subscript);zi=zi.trim(),X+=' the summation from <break time="200ms"/>'+zi+'<break time="200ms"/> to <break time="200ms"/>'+Si+'<break time="200ms"/> of <break time="150ms"/>',Ft=!0}else if(t.hasEmptyBranch("subscript"))X+=" the summation of";else{let Si=Ga("math",t.subscript);Si=Si.trim(),X+=' the summation from <break time="200ms"/>'+Si+'<break time="200ms"/> of <break time="150ms"/>',Ft=!0}else if(pn==="\\prod")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Si=Ga("math",t.superscript);Si=Si.trim();let zi=Ga("math",t.subscript);zi=zi.trim(),X+=' the product from <break time="200ms"/>'+zi+'<break time="200ms"/> to <break time="200ms"/>'+Si+'<break time="200ms"/> of <break time="150ms"/>',Ft=!0}else if(t.hasEmptyBranch("subscript"))X+=" the product of ";else{let Si=Ga("math",t.subscript);Si=Si.trim(),X+=' the product from <break time="200ms"/>'+Si+'<break time="200ms"/> of <break time="150ms"/>',Ft=!0}else if(pn==="\\int")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Si=Ga("math",t.superscript);Si=Si.trim();let zi=Ga("math",t.subscript);zi=zi.trim(),X+=' the integral from <break time="200ms"/>'+z(zi)+'<break time="200ms"/> to <break time="200ms"/>'+z(Si)+' <break time="200ms"/> of ',Ft=!0}else X+=' the integral of <break time="200ms"/> ';else if(typeof t.value=="string"){const Si=(A=Af[t.value])!=null?A:t.command?Af[t.command]:void 0;X+=Si||" "+t.value}else t.command&&(t.command==="\\mathop"?X+=Ga("math",t.body):t.command==="\\operatorname"?X+=Km(t.body):X+=t.command.startsWith("\\")?" "+t.command.slice(1):" "+t.command)}break;case"enclose":ft=Ga("math",t.body),X+=" crossed out "+ft+". End crossed out.";break;case"space":case"spacing":break}if(!Ft&&!t.hasEmptyBranch("superscript")){let Er=Ga(e,t.superscript);Er=Er.trim();const Fn=Er.replace(/<[^>]*>/g,"");if(Pf(t.superscript)){if(e==="math"){const xr=Qm(t.superscript);xr&&(X+='<mark name="'+xr+'"/>')}Fn==="\u2032"?X+=" prime ":Fn==="2"?X+=" squared ":Fn==="3"?X+=" cubed ":Number.isNaN(Number.parseInt(Fn))?X+=" to the "+Er+"; ":X+=' to the <say-as interpret-as="ordinal">'+Fn+"</say-as> power; "}else Number.isNaN(Number.parseInt(Fn))?X+=" raised to the "+Er+"; ":X+=' raised to the <say-as interpret-as="ordinal">'+Fn+"</say-as> power; "}if(!Ft&&!t.hasEmptyBranch("subscript")){let Er=Ga("math",t.subscript);Er=Er.trim(),X+=Pf(t.subscript)?" sub "+Er:" subscript "+Er+". End subscript. "}}return X}function uf(e){var t,r;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const i=Eo(e);if(i){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(t=window.MathfieldElement.textToSpeechRulesOptions)!=null?t:{},window.MathfieldElement.textToSpeechRulesOptions=E(f({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=E(f({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=E(f({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const s=(r=window.SRE)!=null?r:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&s.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let A="";try{A=s.toSpeech(i)}catch(M){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",M)}return A}return""}let n=Ga("math",e);if(window.MathfieldElement.textToSpeechMarkup==="ssml"){let i="";window.MathfieldElement.speechEngineRate&&(i='<prosody rate="'+window.MathfieldElement.speechEngineRate+'">'),n='<?xml version="1.0"?><speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"><amazon:auto-breaths>'+i+"<p><s>"+n+"</s></p>"+(i?"</prosody>":"")+"</amazon:auto-breaths></speak>"}else window.MathfieldElement.textToSpeechMarkup==="mac"&&J()==="macos"?n=n.replace(/<mark([^/]*)\/>/g,"").replace(/<emphasis>/g,"[[emph+]]").replace(/<\/emphasis>/g,"").replace(/<break time="(\d*)ms"\/>/g,"[[slc $1]]").replace(/<say-as[^>]*>/g,"").replace(/<\/say-as>/g,""):n=n.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return n}var Nf={"\\ne":"\u2260","\\neq":"\u2260","\u2212":"-","-":"-","\\alpha":"alpha","\\beta":"beta","\\gamma":"gamma","\\delta":"delta","\\epsilon":"epsilon","\\varepsilon":"varepsilon","\\zeta":"zeta","\\eta":"eta","\\theta":"theta","\\vartheta":"vartheta","\\iota":"iota","\\kappa":"kappa","\\lambda":"lambda","\\mu":"mu","\\nu":"nu","\\xi":"xi","\\pi":"pi","\\rho":"rho","\\sigma":"sigma","\\tau":"tau","\\upsilon":"upsilon","\\phi":"phi","\\varphi":"varphi","\\chi":"chi","\\psi":"psi","\\omega":"omega","\\Gamma":"Gamma","\\Delta":"Delta","\\Theta":"Theta","\\Lambda":"Lambda","\\Xi":"Xi","\\Pi":"Pi","\\Sigma":"Sigma","\\Phi":"Phi","\\Psi":"Psi","\\Omega":"Omega","\\exponentialE":"e","\\imaginaryI":"i","\\imaginaryJ":"j","\\!":" ","\\,":" ","\\:":" ","\\>":" ","\\;":" ","\\enskip":" ","\\enspace":" ","\\qquad":" ","\\quad":" ","\\infty":"oo"},Of={"\\pm":"+-","\\colon":":","\\vert":"|","\\Vert":"||","\\mid":"|","\\lbrack":"[","\\rbrack":"]","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"(:","\\rangle":":)","\\sum":" sum ","\\prod":" prod ","\\bigcap":" nnn ","\\bigcup":" uuu ","\\int":" int ","\\oint":" oint ","\\ge":">=","\\le":"<=","\\ne":"!=","\\neq":"!=","\\lt":"<","\\gt":">","\\gets":"<-","\\to":"->","\\land":" and ","\\lor":" or ","\\lnot":" not ","\\forall":" AA ","\\exists":" EE ","\\in":" in ","\\notin":" !in ","\\mapsto":"|->","\\implies":"=>","\\iff":"<=>","\\cdot":"*","\\ast":"**","\\star":"***","\\times":"xx","\\div":"-:","\\ltimes":"|><","\\rtimes":"><|","\\bowtie":"|><|","\\circ":"@"};function Hm(e){let t="";for(const r of e){const n=t[t.length-1];n!==void 0&&/\d/.test(n)&&/^\d/.test(r)&&(t+=" "),t+=r}return t}function Ws(e){var t,r,n,i,s,A,M,z,X,ue,Ke,ft,Ft;if(!e)return"";if(S(e)){if(e.length===0)return"";if(e[0].mode==="latex")return e.map(Ws).join("");if(e[0].mode==="text"){let Rn=0,pn="";for(;((t=e[Rn])==null?void 0:t.mode)==="text";)pn+=e[Rn].body?Ws(e[Rn].body):e[Rn].value,Rn++;return`"${pn}" ${Ws(e.slice(Rn))}`}let xr=0;const nn=[];for(;e[xr]&&e[xr].mode==="math";){let Rn="";for(;e[xr]&&e[xr].type==="mord"&&/\d/.test(e[xr].value);)Rn+=e[xr++].value;Rn?nn.push(Rn):nn.push(Ws(e[xr++]))}return nn.push(Ws(e.slice(xr))),Hm(nn)}if(e.mode==="text")return`"${e.value}"`;let Nt="";const{command:Er}=e;let Fn;if(Er==="\\placeholder")return`(${Ws(e.body)})`;switch(e.type){case"accent":const xr={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[Er];Nt=`${xr!=null?xr:""} ${Ws(e.body)} `;break;case"first":return"";case"latexgroup":return e.body.map(Ui=>Ui.value).join("");case"group":case"root":Nt=(r=Nf[Er])!=null?r:Ws(e.body);break;case"genfrac":{const Ui=e;(Ui.leftDelim||Ui.rightDelim)&&(Nt=Ui.leftDelim==="."||!Ui.leftDelim?"{:":Ui.leftDelim),Ui.hasBarLine?(Nt+="(",Nt+=Ws(Ui.above),Nt+=")/(",Nt+=Ws(Ui.below),Nt+=")"):(Nt+="("+Ws(Ui.above)+"),",Nt+="("+Ws(Ui.below)+")"),(Ui.leftDelim||Ui.rightDelim)&&(Nt+=Ui.rightDelim==="."||!Ui.rightDelim?"{:":Ui.rightDelim)}break;case"surd":Nt+=e.hasEmptyBranch("above")?"sqrt("+Ws(e.body)+")":"root("+Ws(e.above)+")("+Ws(e.body)+")";break;case"latex":Nt=e.value;break;case"leftright":{const Ui=e,io=Ui.leftDelim;Nt+=io==="."||!io?"{:":io,Nt+=Ws(Ui.body);const zo=Ui.matchingRightDelim();Nt+=zo==="."||!zo?":}":zo}break;case"sizeddelim":case"delim":Nt=e.value;break;case"overlap":break;case"overunder":break;case"mord":Nt=(i=(n=Nf[Er])!=null?n:Er)!=null?i:typeof e.value=="string"?e.value:"",Nt.startsWith("\\")&&(Nt+=" "),Fn=Er?Er.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,Fn?Nt=String.fromCodePoint(Number.parseInt("0x"+Fn[1])):Nt.length>0&&Nt.startsWith("\\")&&(Nt=typeof e.value=="string"?e.value.charAt(0):e.command),Nt=jm(Nt,e.style);break;case"mbin":case"mrel":case"minner":Nt=(A=(s=Nf[Er])!=null?s:Of[Er])!=null?A:e.value;break;case"mopen":case"mclose":Nt=e.value;break;case"mpunct":Nt=(M=Of[Er])!=null?M:Er;break;case"mop":case"operator":case"extensible-symbol":e.value!=="\u200B"&&(Of[Er]?Nt=Of[Er]:Nt=Er==="\\operatorname"?Ws(e.body):(z=e.value)!=null?z:Er,Nt+=" ");break;case"array":const nn=e.array,Rn=e.environmentName,pn=(X={bmatrix:["[","]"],"bmatrix*":["[","]"]}[Rn])!=null?X:["(",")"],Si=[];for(const Ui of nn){const io=[];for(const zo of Ui)io.push(pn[0]+Ws(zo)+pn[1]);Si.push(io.join(","))}const zi=(ue={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[Rn])!=null?ue:["(",")"];Nt=zi[0]+Si.join(",")+zi[1];break;case"box":break;case"spacing":Nt=(Ke=Nf[Er])!=null?Ke:" ";break;case"enclose":Nt="("+Ws(e.body)+")";break;case"space":Nt=" ";break;case"subsup":Nt="";break;case"macro":Nt=(Ft=(ft=Nf[Er])!=null?ft:Of[Er])!=null?Ft:Ws(e.body);break}if(!e.hasEmptyBranch("subscript")){Nt+="_";const xr=Ws(e.subscript);Nt+=xr.length!==1?`(${xr})`:xr}if(!e.hasEmptyBranch("superscript")){Nt+="^";const xr=Ws(e.superscript);Nt+=xr.length!==1?`(${xr})`:xr}return Nt}function jm(e,t){if(!t)return e;let r=e;return t.variant==="double-struck"&&(r=`bbb "${r}"`),t.variant==="script"&&(r=`cc "${r}"`),t.variant==="fraktur"&&(r=`fr "${r}"`),t.variant==="sans-serif"&&(r=`sf "${r}"`),t.variant==="monospace"&&(r=`tt "${r}"`),t.variantStyle==="bold"&&(r=`bb "${r}"`),t.color?`color({${t.color}})(${r})`:r}function Fl(e,t){var r,n;t!=null||(t={}),t.mathstyle=(r=t.mathstyle)!=null?r:"displaystyle";const i=new la({from:E(f({},Nc()),{renderPlaceholder:()=>new fn(160,{maxFontSize:1}),letterShapeStyle:(n=t==null?void 0:t.letterShapeStyle)!=null?n:"tex"}),mathstyle:t.mathstyle}),A=new zr({mode:"math",type:"root",body:Al(e,{context:i,parseMode:"math",mathstyle:t.mathstyle})}).render(i);return A?(SA(Wu(A,i)),AA(A,{classes:"ML__latex"}).toMarkup()):""}function Dg(e){return gu(e,{context:Nc()})}function zm(e,t={}){return Eo(Al(e,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),t)}function $m(e){const t=Al(e,{parseMode:"math",mathstyle:"displaystyle"});return uf(t)}var f0;function Zm(e){var t,r;if(!f0){const n=(t=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:t.ComputeEngine;n?f0=new n:console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
Load the library, for example with:
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}return(r=f0==null?void 0:f0.box(e).latex)!=null?r:""}function Pg(e,t="math"){return Ws(new zr({type:"root",body:Al(e,{parseMode:t})}))}function Ng(e){return We(e,{format:"ascii-math"})[1]}function H0(e){if(typeof e=="string"){const t=Vm(e);if(!t)throw new Error(`Invalid color: ${e}`);return t}return"C"in e?Gm(e):"a"in e?Nh(e):e}function df(e){return e<0?0:e>255?255:Math.round(e)}function Vm(e){if(!e||e[0]!=="#")return;e=e.slice(1);let t;return e.length<=4?(t={r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16)},e.length===4&&(t.a=parseInt(e[3]+e[3],16)/255)):(t={r:parseInt(e[0]+e[1],16),g:parseInt(e[2]+e[3],16),b:parseInt(e[4]+e[5],16)},e.length===8&&(t.a=parseInt(e[6]+e[7],16)/255)),t&&typeof t.a=="undefined"&&(t.a=1),t}function j0(e){const[t,r,n]=[e.L,e.C,e.H],i=n*Math.PI/180,s={L:t,a:r*Math.cos(i),b:r*Math.sin(i)};return e.alpha!==void 0&&(s.alpha=e.alpha),s}function Wm(e){const[t,r,n]=[e.L,e.a,e.b],i=Math.sqrt(r*r+n*n),A=Math.atan2(n,r)*180/Math.PI,M={L:t,C:i,H:A};return e.alpha!==void 0&&(M.alpha=e.alpha),M}function z0(e){const[t,r,n]=[e.L,e.a,e.b],i=Math.pow(.9999999984505198*t+.39633779217376786*r+.2158037580607588*n,3),s=Math.pow(1.00000000888176*t-.10556134232365635*r-.0638541747717059*n,3),A=Math.pow(t*1.000000054672411-.0894841820949657*r-1.2914855378640917*n,3),M=4.076741661347994*i-3.307711590408193*s+.230969928729428*A,z=-1.2684380040921763*i+2.6097574006633715*s-.3413193963102197*A,X=-.004196086541837188*i-.7034186144594493*s+1.7076147009309444*A,ue=Ke=>{const ft=Math.abs(Ke);return ft<=.0031308?Ke*12.92:(Math.sign(Ke)||1)*(1.055*Math.pow(ft,1/2.4)-.055)};return[ue(M),ue(z),ue(X)]}function $0(e){const[t,r,n]=e;return t>=0&&t<=1&&r>=0&&r<=1&&n>=0&&n<=1}function Z0(e,t){let[r,n,i]=e;return r=df(r*255),n=df(n*255),i=df(i*255),t!==void 0?{r,g:n,b:i,alpha:t}:{r,g:n,b:i}}function Nh(e){let[t,r,n]=z0(e);if($0([t,r,n]))return Z0([t,r,n],e.alpha);const i=Wm(e);if(i.C=0,[t,r,n]=z0(j0(i)),!$0([t,r,n]))return Z0([t,r,n],e.alpha);let s=0,A=e.L,M=(s+A)/2;i.C=M;const z=.36/Math.pow(2,12);for(;A-s>z;)M=(s+A)/2,i.C=M,[t,r,n]=z0(j0(i)),$0([t,r,n])?s=M:A=M;return Z0([t,r,n],e.alpha)}function Gm(e){return Nh(j0(e))}function Oh(e,t){const r=H0(e),n=H0(t),i=.56,s=.57,A=.62,M=.65,z=.022,X=1.414,ue=.1,Ke=5e-4,ft=1.14,Ft=.027,Nt=1.14,Er=.027;function Fn(Ui){return Ui>=z?Ui:Ui+Tu(z-Ui,X)}function xr(Ui){return(Ui<0?-1:1)*Math.pow(Math.abs(Ui),2.4)}const nn=Fn(xr(n.r/255)*.2126729+xr(n.g/255)*.7151522+xr(n.b/255)*.072175),Rn=Fn(xr(r.r/255)*.2126729+xr(r.g/255)*.7151522+xr(r.b/255)*.072175);let pn,Si,zi;return Math.abs(Rn-nn)<Ke?Si=0:Rn>nn?(pn=Tu(Rn,i)-Tu(nn,s),Si=pn*ft):(pn=Tu(Rn,M)-Tu(nn,A),Si=pn*Nt),Math.abs(Si)<ue?zi=0:Si>0?zi=Si-Er:zi=Si+Ft,zi*100}function Th(e,t,r){r!=null||(r="#fff"),t!=null||(t="#000");const n=Oh(e,r),i=Oh(e,t);return Math.abs(n)>Math.abs(i)?r:t}function Xm(e){const t=H0(e);let r=((1<<24)+(df(t.r)<<16)+(df(t.g)<<8)+df(t.b)).toString(16).slice(1);return t.alpha!==void 0&&t.alpha<1&&(r+=("00"+Math.round(t.alpha*255).toString(16)).slice(-2)),r[0]===r[1]&&r[2]===r[3]&&r[4]===r[5]&&r[6]===r[7]&&(r=r[0]+r[2]+r[4]+(t.alpha!==void 0&&t.alpha<1?r[6]:"")),"#"+r}function ps(e){const t=Uh(e);let r="";for(const n of t){if(typeof n.value!="string")return"";r+=n.value}return r}function Uh(e){const r=e.model.selection.ranges;return r.length!==1?[]:e.model.getAtoms(r[0])}function Jm(e,t){const r=Uh(e);if(r.length!==1)return!1;const n=xu[t];return n?!!n.test(r[0].value):!1}function Ym(e,t){return ps(e).length>0}function qm(e){return[V0(e,"double-struck","mathbb","tooltip.blackboard"),V0(e,"fraktur","mathfrak","tooltip.fraktur"),V0(e,"calligraphic","mathcal","tooltip.caligraphic"),W0(e,"up","mathrm","tooltip.roman-upright"),W0(e,"bold","mathbf","tooltip.bold"),W0(e,"italic","mathit","tooltip.italic")]}function eg(e){return[{label:()=>Fl(`\\vec{${ps(e)}}`),visible:()=>ps(e).length===1,onMenuSelect:()=>e.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\overrightarrow{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\overleftarrow{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\dot{${ps(e)}}`),visible:()=>ps(e).length===1,onMenuSelect:()=>e.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\ddot{${ps(e)}}`),visible:()=>ps(e).length===1,onMenuSelect:()=>e.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\bar{${ps(e)}}`),visible:()=>ps(e).length===1,onMenuSelect:()=>e.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\overline{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\overgroup{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\overbrace{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\underline{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\undergroup{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\underbrace{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function tg(e){return[{label:()=>Fl(`\\boxed{${e.getValue(e.model.selection)}}}`),onMenuSelect:()=>e.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\bbox[5px, border: 2px solid red]{${e.getValue(e.model.selection)}}`),onMenuSelect:()=>e.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\bbox[5px, border: 2px dashed black]{${e.getValue(e.model.selection)}}`),onMenuSelect:()=>e.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function rg(e){const t=[];for(const r of Object.keys(le))t.push({class:(Xm(Th(le[r]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${le[r]} "></span>`,ariaLabel:()=>{var n;return(n=G(r))!=null?n:r},checked:()=>{var n;return{some:"mixed",all:!0}[(n=e.queryStyle({backgroundColor:r}))!=null?n:!1]},onMenuSelect:()=>{e.applyStyle({backgroundColor:r},{operation:"toggle"}),e.adoptStyle="none"}});return t}function ng(e){const t=[];for(const r of Object.keys(he))t.push({class:(Th(he[r])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${he[r]} "></span>`,ariaLabel:()=>{var n;return(n=G(r))!=null?n:r},checked:()=>{var n;return{some:"mixed",all:!0}[(n=e.queryStyle({color:r}))!=null?n:!1]},onMenuSelect:()=>{e.applyStyle({color:r},{operation:"toggle"}),e.adoptStyle="none"}});return t}var ig=class extends Sh{constructor(e,t,r,n){super(e,t),this.row=r,this.col=n}set active(e){const t=this.parentMenu.children;if(e)for(const r of t)r.element.classList.toggle("active",r.row<=this.row&&r.col<=this.col);else for(const r of t)r.element.classList.remove("active")}};function ag(e){const t=[];for(let r=1;r<=5;r++)for(let n=1;n<=5;n++)t.push({onCreate:(i,s)=>new ig(i,s,r,n),label:"\u2610",tooltip:()=>G("tooltip.row-by-col",r,n),data:{row:r,col:n},onMenuSelect:()=>{e.insert(`\\begin{pmatrix}${Array(r).fill(Array(n).fill("#?").join(" & ")).join("\\\\")}\\end{pmatrix}`,{selectionMode:"item"})}});return t}function og(e){return[{label:()=>G("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>e.executeCommand("addRowBefore"),visible:()=>zd(e)},{label:()=>G("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>e.executeCommand("addRowAfter"),visible:()=>zd(e)},{label:()=>G("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>e.executeCommand("addColumnBefore"),visible:()=>zd(e),enabled:()=>{const t=e.model.parentEnvironment;if(!t)return!1;const[r,n]=lg(e);return r<t.maxColumns}},{label:()=>G("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>e.executeCommand("addColumnAfter"),visible:()=>zd(e)},{type:"divider"},{label:()=>G("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>e.executeCommand("removeRow"),visible:()=>zd(e)},{label:()=>G("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>e.executeCommand("removeColumn"),visible:()=>zd(e)},{type:"divider"},{label:()=>G("menu.borders"),visible:()=>(sg(e)||zd(e))&&e.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>Tf(e,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>Tf(e,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>Tf(e,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>Tf(e,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>Tf(e,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>G("menu.insert matrix"),id:"insert-matrix",visible:()=>e.isSelectionEditable,submenu:ag(e),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>G("menu.mode"),id:"mode",visible:()=>e.isSelectionEditable&&e.model.selectionIsCollapsed,submenu:[{label:()=>G("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{Su(e,"accept-all"),e.executeCommand(["switchMode","math"])},checked:()=>e.model.mode==="math"},{label:()=>G("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{Su(e,"accept-all"),e.executeCommand(["switchMode","text"])},checked:()=>e.model.mode==="text"},{label:()=>G("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>e.executeCommand(["switchMode","latex"]),checked:()=>e.model.mode==="latex"}]},{type:"divider"},{label:()=>G("menu.font-style"),id:"variant",visible:()=>e.isSelectionEditable,submenu:qm(e),submenuClass:"variant-submenu"},{label:()=>G("menu.color"),id:"color",visible:()=>e.isSelectionEditable,submenu:ng(e),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>G("menu.background-color"),id:"background-color",visible:()=>e.isSelectionEditable,submenu:rg(e),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>G("menu.accent"),id:"accent",visible:()=>e.isSelectionEditable,submenu:eg(e),submenuClass:"variant-submenu"},{label:()=>G("menu.decoration"),id:"decoration",visible:()=>e.isSelectionEditable&&ps(e).length>0,submenu:tg(e),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>G("menu.evaluate"),id:"ce-evaluate",visible:()=>e.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{const t=cg(e);if(!t){e.model.announce("plonk");return}e.model.selectionIsCollapsed?(e.model.position=e.model.lastOffset,e.insert(`=${t}`,{insertionMode:"insertAfter",selectionMode:"item"})):e.insert(t,{insertionMode:"replaceSelection",selectionMode:"item"})}},{label:()=>G("menu.simplify"),id:"ce-simplify",visible:()=>e.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{var t,r;if(e.model.selectionIsCollapsed){const n=(t=e.expression)==null?void 0:t.simplify();if(e.model.position=e.model.lastOffset,!n){e.model.announce("plonk");return}e.insert(`=${n.latex}`,{insertionMode:"insertAfter",selectionMode:"item"})}else{const n=(r=window.MathfieldElement.computeEngine)==null?void 0:r.parse(e.getValue(e.model.selection)).simplify();if(!n){e.model.announce("plonk");return}e.insert(n.latex,{insertionMode:"replaceSelection",selectionMode:"item"})}}},{label:()=>{var t;if(window.MathfieldElement.computeEngine===null)return"";const r=(t=e.expression)==null?void 0:t.unknowns[0];return r?G("menu.solve-for",Fl(r)):G("menu.solve")},id:"ce-solve",visible:()=>{var t;return e.isSelectionEditable&&window.MathfieldElement.computeEngine!==null&&((t=e.expression)==null?void 0:t.unknowns.length)===1&&e.expression.unknowns[0]!=="Nothing"},onMenuSelect:()=>{var t;const r=e.expression,n=r==null?void 0:r.unknowns[0],i=(t=r.solve(n))==null?void 0:t.map(s=>{var A;return(A=s.simplify().latex)!=null?A:""});if(!i){e.model.announce("plonk");return}e.insert(`${n}=${i.length===1?i[0]:"\\left\\lbrace"+(i==null?void 0:i.join(", "))+"\\right\\rbrace"}`,{insertionMode:"replaceAll",selectionMode:"item"})}},{type:"divider"},{label:()=>G("menu.cut"),onMenuSelect:()=>e.executeCommand("cutToClipboard"),visible:()=>!e.options.readOnly&&e.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>G("menu.copy"),id:"copy",submenu:[{label:()=>G("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>aa.copyToClipboard(e,"latex"),keyboardShortcut:"meta+C"},{label:()=>G("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>aa.copyToClipboard(e,"ascii-math")},{label:()=>G("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>aa.copyToClipboard(e,"math-ml")}]},{label:()=>G("menu.paste"),id:"paste",onMenuSelect:()=>e.executeCommand("pasteFromClipboard"),visible:()=>e.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>G("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>e.executeCommand("selectAll")}]}function zd(e){var t;return!!((t=e.model.parentEnvironment)!=null&&t.array)}function sg(e){return e.model.at(e.model.position).type==="array"}function lg(e){var t;const r=(t=e.model.parentEnvironment)==null?void 0:t.array;return r?[r.length,r.reduce((n,i)=>Math.max(n,i.length),0)]:[0,0]}function Tf(e,t){iu(e),e.flushInlineShortcutBuffer(),nh(e.model,t),xs(e)}function cg(e){var t,r;let n;if(e.model.selectionIsCollapsed?n=(t=window.MathfieldElement.computeEngine)==null?void 0:t.parse(e.getValue(),{canonical:!1}):n=(r=window.MathfieldElement.computeEngine)==null?void 0:r.parse(e.getValue(e.model.selection),{canonical:!1}),!n)return"";let i=n.evaluate();return i.isSame(n)&&(i=n.N()),i.latex}function V0(e,t,r,n){return{label:()=>Fl(`\\${r}{${ps(e)}}`),tooltip:()=>{var i;return(i=G(n))!=null?i:n},visible:()=>Jm(e,t),checked:()=>{var i;return{some:"mixed",all:!0}[(i=e.queryStyle({variant:t}))!=null?i:!1]},onMenuSelect:()=>{e.applyStyle({variant:t},{operation:"toggle"}),e.adoptStyle="none"}}}function W0(e,t,r,n){return{label:()=>Fl(`\\${r}{${ps(e)}}`),tooltip:()=>{var i;return(i=G(n))!=null?i:n},visible:()=>Ym(e,t),checked:()=>{var i;return{some:"mixed",all:!0}[(i=e.queryStyle({variantStyle:t}))!=null?i:!1]},onMenuSelect:()=>{e.applyStyle({variantStyle:t},{operation:"toggle"}),e.adoptStyle="none"}}}function ff(e,t){return e+uf(t)}_l({speak:(e,t,r)=>Ag(e,t,r)},{target:"mathfield"});function Ag(e,t,r){var n,i;r=r!=null?r:{withHighlighting:!1};const{model:s}=e;function A(ue){let Ke=null;switch(ue){case"all":Ke=s.root;break;case"selection":Ke=s.getAtoms(s.selection);break;case"left":{Ke=s.getAtoms(s.offsetOf(s.at(s.position).leftSibling),s.position);break}case"right":{Ke=s.getAtoms(s.position,s.offsetOf(s.at(s.position).rightSibling));break}case"group":Ke=s.getAtoms(s.getSiblingsRange(s.position));break;case"parent":{const{parent:ft}=s.at(s.position);ft!=null&&ft.parent?Ke=ft:Ke=s.root;break}default:Ke=s.root}return Ke}function M(ue){let Ke="";switch(ue){case"all":console.log("Internal failure: speak all failed");break;case"selection":Ke="no selection";break;case"left":Ke="at start";break;case"right":Ke="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":Ke="no parent";break;default:console.log('unknown speak_ param value: "'+ue+'"');break}return Ke}const z=A(t);if(z===null)return(i=(n=window.MathfieldElement).speakHook)==null||i.call(n,M(t)),!1;(r.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const X=uf(z);return N()&&r.withHighlighting?(md().readAloudMathfield=e,TA(e,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(e.field,X)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(X),!1}function ug(e){var t,r;if(!N()){console.log("Speak:",e);return}if(!window.MathfieldElement.speechEngine||window.MathfieldElement.speechEngine==="local"){const n=new SpeechSynthesisUtterance(e);window.speechSynthesis.speak(n)}else if(window.MathfieldElement.speechEngine==="amazon")if(!("AWS"in window))console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");else{const n=new window.AWS.Polly({apiVersion:"2016-06-10"}),i={OutputFormat:"mp3",VoiceId:(t=window.MathfieldElement.speechEngineVoice)!=null?t:"Joanna",Engine:["Amy","Emma","Brian","Ivy","Joanna","Kendra","Kimberly","Salli","Joey","Justin","Matthew"].includes((r=window.MathfieldElement.speechEngineVoice)!=null?r:"Joanna")?"neural":"standard",Text:e,TextType:"ssml"};n.synthesizeSpeech(i,(s,A)=>{if(s)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${s}`);else if(A!=null&&A.AudioStream){const M=new Uint8Array(A.AudioStream),z=new Blob([M.buffer],{type:"audio/mpeg"}),X=URL.createObjectURL(z);new Audio(X).play().catch(Ke=>console.log(Ke))}else console.log("polly.synthesizeSpeech():",A)})}else window.MathfieldElement.speechEngine==="google"&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.")}function Rh(e){var t;let r;if(e.parent.type==="prompt")e.parentBranch==="body"&&(r="prompt");else if(e.parentBranch==="body")r=e.type&&(t={enclose:"cross out",leftright:"delimiter",surd:"square root",root:"math field",mop:"operator",first:"first"}[e.type])!=null?t:"parent";else if(e.parent.type==="genfrac"){if(e.parentBranch==="above")return"numerator";if(e.parentBranch==="below")return"denominator"}else e.parent.type==="surd"?e.parentBranch==="above"&&(r="index"):e.parentBranch==="superscript"?r="superscript":e.parentBranch==="subscript"&&(r="subscript");return r||console.log("unknown relationship"),r!=null?r:"parent"}function dg(e,t,r,n){let i="";if(t==="plonk")window.MathfieldElement.playSound("plonk"),e.flushInlineShortcutBuffer();else if(t==="delete")i=ff("deleted: ",n);else if(t==="focus"||t.includes("move"))i=fg(e.model,r)+(e.model.selectionIsCollapsed?"":"selected: ")+hg(e.model);else if(t==="replacement")i=ff("",e.model.at(e.model.position));else if(t==="line"){const s=ff("",e.model.root);e.keyboardDelegate.setAriaLabel(s)}else i=n?ff(t+" ",n):t;if(i){const s=e.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";e.ariaLiveText.textContent=i+s}}function fg(e,t){if(Number.isNaN(t))return"";const r=e.at(t);if(!r||r.treeDepth<=e.at(e.position).treeDepth)return"";let n="",i=r.parent;const s=e.at(e.position).parent;for(;i!==e.root&&i!==s;)n+=`out of ${Rh(i)};`,i=i.parent;return n}function hg(e){if(!e.selectionIsCollapsed)return ff("",e.getAtoms(e.selection));let t="";const r=e.at(e.position),n=Rh(r);return r.isFirstSibling&&(t=(n?"start of "+n:"unknown")+": "),r.isLastSibling?r.isFirstSibling||(t+=n?"end of "+n:"unknown"):t+=ff("",r),t}var pg=class{constructor(e,t,r){this.mathfield=e,this.mode=t,this.silenceNotifications=!1,this._selection={ranges:[[0,0]],direction:"none"},this._anchor=0,this._position=0,this.root=r}dispose(){this.mathfield=void 0}getState(){const e={ranges:[...this._selection.ranges]};return this.selection.direction&&this.selection.direction!=="none"&&(e.direction=this.selection.direction),{content:this.root.toJson(),selection:e,mode:this.mode}}setState(e,t){var r;const n=this.silenceNotifications;this.silenceNotifications=(r=t==null?void 0:t.silenceNotifications)!=null?r:!0;let i={};if((t==null?void 0:t.type)==="undo"&&(i={inputType:"historyUndo"}),(t==null?void 0:t.type)==="redo"&&(i={inputType:"historyRedo"}),this.contentWillChange(i)){const s=this.silenceNotifications;this.silenceNotifications=!0,this.mode=e.mode,this.root=mA(e.content),this.selection=e.selection,this.silenceNotifications=s,this.contentDidChange(i)}this.silenceNotifications=n}get atoms(){return this.root.children}get selection(){return this._selection}set selection(e){this.setSelection(e)}setSelection(e,t){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{var r,n,i;const s=this.normalizeSelection(e,t);if(s===void 0)throw new TypeError("Invalid selection");if(s.ranges.length===1&&s.ranges[0][0]===s.ranges[0][1]){const ue=s.ranges[0][0];if(!this.mathfield.dirty&&!((r=this.at(ue))!=null&&r.parentPrompt)&&this.mathfield.hasEditablePrompts){if((n=this.at(ue-1))!=null&&n.parentPrompt){this._anchor=this.normalizeOffset(ue-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((i=this.at(ue+1))!=null&&i.parentPrompt){this._anchor=this.normalizeOffset(ue+1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}this._anchor=0,this._position=0,this._selection={ranges:[[0,0]]};return}this._anchor=ue,this._position=ue,this._selection=s;return}const A=Is(s);s.direction==="backward"?[this._position,this._anchor]=A:[this._anchor,this._position]=A;const M=this.at(A[0]+1),z=this.at(A[1]),X=zr.commonAncestor(M,z);(X==null?void 0:X.type)==="array"&&M.parent===X&&z.parent===X?this._selection={ranges:[A],direction:s.direction}:this._selection={ranges:[A],direction:s.direction},console.assert(this._position>=0&&this._position<=this.lastOffset)})}setPositionHandlingPlaceholder(e){var t;const r=this.at(e);(r==null?void 0:r.type)==="placeholder"?this.setSelection(e-1,e):((t=r==null?void 0:r.rightSibling)==null?void 0:t.type)==="placeholder"?this.setSelection(e,e+1):this.position=e,r instanceof Ls&&r.isSuggestion&&(r.isSuggestion=!1),this.mathfield.stopCoalescingUndo()}get position(){return this._position}set position(e){this.setSelection(e,e)}get anchor(){return this._anchor}get selectionIsCollapsed(){return this._anchor===this._position}get selectionIsPlaceholder(){return Math.abs(this._anchor-this._position)===1?this.at(Math.max(this._anchor,this._position)).type==="placeholder":!1}collapseSelection(e="forward"){return this._anchor===this._position?!1:(e==="backward"?this.position=Math.min(this._anchor,this._position):this.position=Math.max(this._anchor,this._position),!0)}get lastOffset(){return this.atoms.length-1}at(e){return this.atoms[e]}offsetOf(e){return this.atoms.indexOf(e)}getSiblingsRange(e){const t=this.at(e),{parent:r}=t;if(!r)return[0,this.lastOffset];const n=t.parent.branch(t.parentBranch);return[this.offsetOf(n[0]),this.offsetOf(n[n.length-1])]}getBranchRange(e,t){const r=this.at(e).branch(t);return[this.offsetOf(r[0]),this.offsetOf(r[r.length-1])]}getAtoms(e,t,r){let n=r!=null?r:{};if(Uc(e)){if(n=t!=null?t:{},e.ranges.length>1)return e.ranges.reduce((X,ue)=>[...X,...this.getAtoms(ue,n)],[]);e=e.ranges[0]}let i,s;if(Tc(e)){if(i=e,!Tc(t))return[];s=t}else[i,s]=e,n=t!=null?t:{};if(!Number.isFinite(i))return[];n.includeChildren===void 0&&(n.includeChildren=!1),i<0&&(i=this.lastOffset-i+1),s<0&&(s=this.lastOffset-s+1);const A=Math.min(i,s)+1,M=Math.max(i,s);if(!n.includeChildren&&A===1&&M===this.lastOffset)return[this.root];let z=[];for(let X=A;X<=M;X++){const ue=this.atoms[X];Qh(this,ue,A,M)&&z.push(ue)}return n.includeChildren||(z=z.filter(X=>{let ue=!1,{parent:Ke}=X;for(;Ke&&!ue;)ue=Qh(this,Ke,A,M),Ke=Ke.parent;return!ue})),z}getAllAtoms(e=0){const t=[],r=this.lastOffset;for(let n=e;n<=r;n++)t.push(this.atoms[n]);for(let n=0;n<e;n++)t.push(this.atoms[n]);return t}findAtom(e,t=0,r="forward"){let n;const i=this.lastOffset;if(r==="forward"){for(let s=t;s<=i;s++)if(n=this.atoms[s],e(n))return n;for(let s=0;s<t;s++)if(n=this.atoms[s],e(n))return n;return}for(let s=t;s>=0;s--)if(n=this.atoms[s],e(n))return n;for(let s=i;s>t;s--)if(n=this.atoms[s],e(n))return n}extractAtoms(e){let t=this.getAtoms(e);if(t.length===1&&!t[0].parent)if(t[0].type==="root")t=[...t[0].body],t.shift();else return t=this.root.cells.flat(),this.root=new zr({type:"root",body:[]}),t;for(const r of t)r.parent.removeChild(r);return t}deleteAtoms(e){this.extractAtoms(e),this.position=e[0]}atomToString(e,t){const r=t!=null?t:"latex";if(r.startsWith("latex"))return zr.serialize([e],{expandMacro:r==="latex-expanded",skipStyles:r==="latex-unstyled",skipPlaceholders:r==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode});if(r==="math-ml")return Eo(e);if(r==="spoken")return uf(e);if(r==="spoken-text"){const n=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const i=uf(e);return window.MathfieldElement.textToSpeechMarkup=n,i}if(r==="spoken-ssml"||r==="spoken-ssml-with-highlighting"){const n=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="ssml";const i=uf(e);return window.MathfieldElement.textToSpeechMarkup=n,i}return r==="ascii-math"?Ws(e):(console.error(`MathLive 0.98.5: Unexpected format "${r}`),"")}getValue(e,t,r){if(e===void 0)return this.atomToString(this.root,"latex");if(typeof e=="string"&&e!=="math-json")return this.atomToString(this.root,e);let n,i;if(Tc(e)&&Tc(t)?(n=[this.normalizeRange([e,t])],i=r):Yc(e)?(n=[this.normalizeRange(e)],i=t):Uc(e)?(n=e.ranges,i=t):(n=[this.normalizeRange([0,-1])],i=e),i!=null||(i="latex"),i==="math-json"){if(!window.MathfieldElement.computeEngine)return window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`The CortexJS Compute Engine library is not available.
Load the library, for example with:
import "https://unpkg.com/@cortex-js/compute-engine?module"`),'["Error", "compute-engine-not-available"]';const s=this.getValue({ranges:n},"latex-unstyled");try{const A=window.MathfieldElement.computeEngine.parse(s);return JSON.stringify(A.json)}catch(A){return JSON.stringify(["Error",`'${A.toString()}'`])}}if(i.startsWith("latex")){const s={expandMacro:i==="latex-expanded",skipStyles:i==="latex-unstyled",skipPlaceholders:i==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return Ba(n.map(A=>zr.serialize(this.getAtoms(A),s)))}return n.map(s=>this.getAtoms(s).map(A=>this.atomToString(A,i)).join("")).join("")}extendSelectionTo(e,t){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{const r=this.normalizeRange([e,t]);let[n,i]=r,{parent:s}=this.at(i);if(s&&(s.type==="genfrac"||s.type==="subsup"))for(;s!==this.root&&G0(this,s,[n,i]);)i=this.offsetOf(s),s=s.parent;for(s=this.at(n).parent;s!==this.root&&G0(this,s,[n,i]);)n=this.offsetOf(s.leftSibling),s=s.parent;if(s=this.at(i).parent,(s==null?void 0:s.type)==="genfrac")for(;s!==this.root&&G0(this,s,[n,i]);)i=this.offsetOf(s),console.assert(i>=0),s=s.parent;this._position=this.normalizeOffset(t),this._selection={ranges:[[n,i]],direction:"none"}})}announce(e,t,r=[]){var n,i;((i=(n=this.mathfield.host)==null?void 0:n.dispatchEvent(new CustomEvent("announce",{detail:{command:e,previousPosition:t,atoms:r},cancelable:!0,bubbles:!0,composed:!0})))!=null?i:!0)&&dg(this.mathfield,e,t,r)}deferNotifications(e,t){const r=this._selection,n=this._anchor,i=this._position,s=this.silenceNotifications;this.silenceNotifications=!0;const A=this.root.changeCounter;t();const M=this.root.changeCounter!==A,z=n!==this._anchor||i!==this._position||Ku(this._selection,r)==="different";return this.silenceNotifications=s,e.content&&M&&this.contentDidChange({inputType:e.type}),e.selection&&z&&this.selectionDidChange(),M||z}normalizeOffset(e){return e>0?e=Math.min(e,this.lastOffset):e<0&&(e=this.lastOffset+e+1),e}normalizeRange(e){let[t,r]=e;return t=this.normalizeOffset(t),r=this.normalizeOffset(r),t<r?[t,r]:[r,t]}normalizeSelection(e,t){var r;let n;if(Tc(e)){const i=this.normalizeOffset(e);if(Tc(t)){const s=this.normalizeOffset(t);n=i<=s?{ranges:[[i,s]],direction:"none"}:{ranges:[[s,i]],direction:"backward"}}else n={ranges:[[i,i]],direction:"none"}}else if(Yc(e)){const i=this.normalizeOffset(e[0]),s=this.normalizeOffset(e[1]);n=i<=s?{ranges:[[i,s]],direction:"none"}:{ranges:[[s,i]],direction:"backward"}}else Uc(e)&&(n={ranges:e.ranges.map(i=>this.normalizeRange(i)),direction:(r=e.direction)!=null?r:"none"});return console.assert(n!==void 0),n}get parentEnvironment(){let e=this.at(this.position).parent;if(e){for(;e.parent&&e.type!=="array";)e=e.parent;if(e.type==="array")return e}}get cell(){var e;let t=this.at(this.position);if(t){for(;t&&((e=t.parent)==null?void 0:e.type)!=="array";)t=t.parent;if(!(!(t!=null&&t.parent)||t.parent.type!=="array"))return t.parentBranch}}contentWillChange(e={}){if(this.silenceNotifications||!this.mathfield)return!0;const t=this.silenceNotifications;this.silenceNotifications=!0;const r=this.mathfield.onContentWillChange(e);return this.silenceNotifications=t,r}contentDidChange(e){var t;if(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Iu(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const r=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",E(f({},e),{data:e.data?e.data:(t=e.inputType)!=null?t:"",bubbles:!0,composed:!0}))),this.silenceNotifications=r}selectionDidChange(){if(!this.mathfield||(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Iu(this.mathfield)),this.silenceNotifications))return;const e=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=e}};function Qh(e,t,r,n){const i=e.offsetOf(t);if(i<r||i>n)return!1;if(!t.hasChildren)return!0;const s=e.offsetOf(t.firstChild);if(s>=r&&s<=n){const A=e.offsetOf(t.lastChild);if(A>=r&&A<=n)return!0}return!1}function G0(e,t,r){if(!(t!=null&&t.hasChildren))return!1;const[n,i]=r,s=e.offsetOf(t.firstChild),A=e.offsetOf(t.lastChild);return s>=n&&s<=i&&A>=s&&A<=i}function Uf(e,t,r,n){var i,s,A,M,z,X;const ue=r.parent;if(ue&&r instanceof ko){const Ke=!n&&t==="forward"||n==="body"&&t==="backward";let ft=Ke?e.offsetOf(r.firstChild):e.offsetOf(r.lastChild);return Ke?r.rightDelim!=="?"&&r.rightDelim!=="."?(r.leftDelim=".",r.isDirty=!0):(ue.addChildrenAfter(r.removeBranch("body"),r),ue.removeChild(r),ft--):r.leftDelim!=="?"&&r.leftDelim!=="."?(r.rightDelim=".",r.isDirty=!0):(ue.addChildrenAfter(r.removeBranch("body"),r),ue.removeChild(r),ft--),e.position=ft,!0}if(ue&&r.type==="surd"){if(t==="forward"&&!n||t==="backward"&&n==="body"){const Ke=r.leftSibling;r.hasChildren&&ue.addChildrenAfter(r.removeBranch("body"),r),ue.removeChild(r),e.position=e.offsetOf(Ke)}else t==="forward"&&n==="body"?e.position=e.offsetOf(r):!n&&t==="backward"?r.hasChildren?e.position=e.offsetOf(r.lastChild):(e.position=Math.max(0,e.offsetOf(r)-1),ue.removeChild(r)):n==="above"&&(r.hasEmptyBranch("above")&&r.removeBranch("above"),t==="backward"?e.position=e.offsetOf(r.leftSibling):e.position=e.offsetOf(r.body[0]));return!0}if(ue&&(r.type==="box"||r.type==="enclose")){const Ke=n&&t==="backward"||!n&&t==="forward"?r.leftSibling:r.lastChild;return ue.addChildrenAfter(r.removeBranch("body"),r),ue.removeChild(r),e.position=e.offsetOf(Ke),!0}if(r.type==="genfrac"||r.type==="overunder"){if(!n)return r.type==="overunder"&&r.hasEmptyBranch("body")||r.type==="genfrac"&&r.hasEmptyBranch("below")&&r.hasEmptyBranch("above")?!1:(e.position=e.offsetOf(t==="forward"?r.firstChild:r.lastChild),!0);const Ke=Rf.fractionNavigationOrder==="numerator-denominator"?"above":"below",ft=Ke==="above"?"below":"above";if(ue&&(t==="forward"&&n===Ke||t==="backward"&&n===ft)){const Ft=r.removeBranch(Ke),Nt=r.removeBranch(ft);return ue.addChildrenAfter([...Ft,...Nt],r),ue.removeChild(r),e.position=e.offsetOf(Ft.length>0?Ft[Ft.length-1]:Nt[0]),!0}return t==="backward"?e.position=e.offsetOf(r.leftSibling):e.position=e.offsetOf(r),!0}if(r.isExtensibleSymbol||r.type==="subsup"){if(!n&&t==="forward")return!1;if(!n){if(r.subscript||r.superscript){const Ke=t==="forward"?(A=(i=r.superscript)==null?void 0:i[0])!=null?A:(s=r.subscript)==null?void 0:s[0]:(X=(M=r.subscript)==null?void 0:M[0].lastSibling)!=null?X:(z=r.superscript)==null?void 0:z[0].lastSibling;return Ke&&(e.position=e.offsetOf(Ke)),!0}return!1}if(!r.hasChildren&&r.type==="subsup"){const Ke=t==="forward"?e.offsetOf(r):Math.max(0,e.offsetOf(r)-1);return r.parent.removeChild(r),e.position=Ke,!0}if(n==="superscript")if(t==="backward"){const Ke=e.offsetOf(r.firstChild)-1;console.assert(Ke>=0),e.position=Ke}else r.subscript?e.position=e.offsetOf(r.subscript[0]):e.position=e.offsetOf(r);else n==="subscript"&&(t==="backward"&&r.superscript?e.position=e.offsetOf(r.superscript[0].lastSibling):t==="backward"?e.position=e.offsetOf(r.firstChild)-1:e.position=e.offsetOf(r));if(n&&r.hasEmptyBranch(n)&&(r.removeBranch(n),r.type==="subsup"&&!r.subscript&&!r.superscript)){const Ke=t==="forward"?e.offsetOf(r):Math.max(0,e.offsetOf(r)-1);r.parent.removeChild(r),e.position=Ke}return!0}if((ue==null?void 0:ue.type)==="genfrac"&&!n&&r.type!=="first"){let Ke=e.offsetOf(r.leftSibling);return ue.removeChild(r),ue.hasEmptyBranch("above")&&ue.hasEmptyBranch("below")?(Ke=e.offsetOf(ue.leftSibling),ue.parent.removeChild(ue),e.announce("delete",void 0,[ue]),e.position=Ke,!0):(e.announce("delete",void 0,[r]),e.position=Ke,!0)}if(t==="backward"&&((ue==null?void 0:ue.command)==="\\ln"||(ue==null?void 0:ue.command)==="\\log")&&r.parentBranch!=="body"){const Ke=e.offsetOf(ue.leftSibling);return ue.parent.removeChild(ue),e.announce("delete",void 0,[ue]),e.position=Ke,!0}return!1}function mg(e){return!e.mathfield.isSelectionEditable||!e.contentWillChange({inputType:"deleteContentBackward"})?!1:e.selectionIsCollapsed?e.deferNotifications({content:!0,selection:!0,type:"deleteContentBackward"},()=>{let t=e.at(e.position);if(!(t&&Uf(e,"backward",t))){if(t!=null&&t.isFirstSibling){if(Uf(e,"backward",t.parent,t.parentBranch))return;t=null}if(!t){e.announce("plonk");return}e.position=e.offsetOf(t.leftSibling),t.parent.removeChild(t),e.announce("delete",void 0,[t])}}):Lu(e,Is(e.selection),"deleteContentBackward")}function gg(e){return!e.mathfield.isSelectionEditable||!e.contentWillChange({inputType:"deleteContentForward"})?!1:e.selectionIsCollapsed?e.deferNotifications({content:!0,selection:!0,type:"deleteContentForward"},()=>{var t,r;let n=e.at(e.position).rightSibling;if(n&&Uf(e,"forward",n))return;if(n){if(e.at(e.position).isLastSibling&&Uf(e,"forward",n.parent,n.parentBranch))return}else{if(n=e.at(e.position),n.isLastSibling&&Uf(e,"forward",n.parent,n.parentBranch))return;n=void 0}if(e.position===e.lastOffset||!n){e.announce("plonk");return}n.parent.removeChild(n);let i=(t=e.at(e.position))==null?void 0:t.rightSibling;for(;(i==null?void 0:i.type)==="subsup";)i.parent.removeChild(i),i=(r=e.at(e.position))==null?void 0:r.rightSibling;e.announce("delete",void 0,[n])}):Lu(e,Is(e.selection),"deleteContentForward")}function Lu(e,t,r){const n=e.getAtoms(t);if(n.length>0&&n[0].parent){let i=n[0].parent.firstChild;i.type==="first"&&(i=i.rightSibling);const s=n[n.length-1].parent.lastChild;let A=n[0];A.type==="first"&&(A=A.rightSibling);const M=n[n.length-1];if(A===i&&M===s){const z=n[0].parent;z.parent&&z.type!=="prompt"&&(t=[e.offsetOf(z.leftSibling),e.offsetOf(z)])}if(n.length===1&&n[0].type==="placeholder"&&n[0].parent.type==="genfrac"){const z=n[0].parent,X=n[0].parentBranch==="below"?"above":"below",ue=e.offsetOf(z.leftSibling);return e.deferNotifications({content:!0,selection:!0,type:r},()=>{var Ke,ft;const Ft=z.removeBranch(X);if(Ft.length===1&&Ft[0].type==="placeholder")(ft=z.parent)==null||ft.removeChild(z),e.position=Math.max(0,ue);else{const Nt=z.parent.addChildrenAfter(Ft,z);(Ke=z.parent)==null||Ke.removeChild(z),e.position=e.offsetOf(Nt)}})}}return e.deferNotifications({content:!0,selection:!0,type:r},()=>e.deleteAtoms(t))}_l({deleteAll:e=>e.contentWillChange({inputType:"deleteContent"})&&Lu(e,[0,-1],"deleteContent"),deleteForward:e=>gg(e),deleteBackward:e=>mg(e),deleteNextWord:e=>e.contentWillChange({inputType:"deleteWordForward"})&&Lu(e,[e.anchor,B0(e,e.position,"forward")],"deleteWordForward"),deletePreviousWord:e=>e.contentWillChange({inputType:"deleteWordBackward"})&&Lu(e,[e.anchor,B0(e,e.position,"backward")],"deleteWordBackward"),deleteToGroupStart:e=>e.contentWillChange({inputType:"deleteSoftLineBackward"})&&Lu(e,[e.anchor,e.offsetOf(e.at(e.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:e=>e.contentWillChange({inputType:"deleteSoftLineForward"})&&Lu(e,[e.anchor,e.offsetOf(e.at(e.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:e=>e.contentWillChange({inputType:"deleteHardLineBackward"})&&Lu(e,[e.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:e=>e.contentWillChange({inputType:"deleteHardLineForward"})&&Lu(e,[e.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var vg=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${G("tooltip.toggle virtual keyboard")}"><path d="M528 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm16 336c0 8.823-7.177 16-16 16H48c-8.823 0-16-7.177-16-16V112c0-8.823 7.177-16 16-16h480c8.823 0 16 7.177 16 16v288zM168 268v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-336 80v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm384 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zM120 188v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-96 152v-8c0-6.627-5.373-12-12-12H180c-6.627 0-12 5.373-12 12v8c0 6.627 5.373 12 12 12h216c6.627 0 12-5.373 12-12z"/></svg>`,yg=`<svg xmlns="http://www.w3.org/2000/svg" style="height: 18px;" viewBox="0 0 448 512" role="img" aria-label="${G("tooltip.menu")}"><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>`,bg=class{constructor(e,t){this.focusBlurInProgress=!1;var r,n,i;this.options=f(E(f({},Jf()),{macros:At(),registers:FA()}),Xf(t)),this.eventController=new AbortController;const s=this.eventController.signal;t.eventSink&&(this.host=t.eventSink),this.element=e,e.mathfield=this,this.blurred=!0,this.keystrokeCaptionVisible=!1,this.suggestionIndex=0,this.inlineShortcutBuffer=[],this.inlineShortcutBufferFlushTimer=0,this.defaultStyle={},this.adoptStyle="left",this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline"),this.dirty=!1;let A=(n=(r=t.value)!=null?r:this.element.textContent)!=null?n:"";A=A.trim();const M=eh(this.options),z=new zr({type:"root",mode:M,body:Al(A,{context:this.context})});this.model=new pg(this,M,z),this.undoManager=new $p(this.model);const X=[];if(X.push("<span contenteditable=true aria-multiline=false part=keyboard-sink class=ML__keyboard-sink autocapitalize=off autocomplete=off autocorrect=off spellcheck=false inputmode=none tabindex=0></span>"),X.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),X.push("<span part=content class=ML__content>"),X.push(Cf(this)),X.push("</span>"),window.mathVirtualKeyboard&&(X.push(`<div part=virtual-keyboard-toggle class=ML__virtual-keyboard-toggle role=button ${this.hasEditableContent?"":'style="display:none;"'} data-l10n-tooltip="tooltip.toggle virtual keyboard">`),X.push(vg),X.push("</div>")),X.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),X.push(yg),X.push("</div>"),X.push("</span>"),X.push("<span class=ML__sr-only>"),X.push("<span role=status aria-live=assertive aria-atomic=true></span>"),X.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(X.join("")),!this.element.children){console.error("%cMathLive 0.98.5: Something went wrong and the mathfield could not be created.%c\nIf you are using Vue, this may be because you are using the runtime-only build of Vue. Make sure to include `runtimeCompiler: true` in your Vue configuration. There may a warning from Vue in the log above.","color:red;font-family:system-ui;font-size:1.2rem;font-weight:bold","color:inherit;font-family:system-ui;font-size:inherit;font-weight:inherit");return}this._l10Subscription=te.subscribe(()=>te.update(this.element)),te.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",Ke=>Ke.stopImmediatePropagation(),{capture:!1,signal:s}),this.field.addEventListener("wheel",this,{passive:!1,signal:s}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:s}):this.field.addEventListener("mousedown",this,{signal:s}),(i=this.element.querySelector("[part=virtual-keyboard-toggle]"))==null||i.addEventListener("click",()=>{window.mathVirtualKeyboard.visible?window.mathVirtualKeyboard.hide():(window.mathVirtualKeyboard.show({animate:!0}),window.mathVirtualKeyboard.update(Iu(this)))},{signal:s}),this._menu=new Mm(og(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:s});const ue=this.element.querySelector("[part=menu-toggle]");ue==null||ue.addEventListener("pointerdown",Ke=>{if(Ke.currentTarget!==ue||this._menu.state!=="closed")return;this.element.classList.add("tracking");const ft=ue.getBoundingClientRect();this._menu.modifiers=Ea(Ke),this._menu.show({target:ue,location:{x:ft.left,y:ft.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),Ke.preventDefault(),Ke.stopPropagation()},{signal:s}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(ue.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=Fc(this.element.querySelector(".ML__keyboard-sink"),this.element,this),window.addEventListener("resize",this,{signal:s}),document.addEventListener("scroll",this,{signal:s}),this.resizeObserver=new ResizeObserver(()=>xs(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:s}),Gt&&!te.locale.startsWith(Gt.locale)&&Gn(te.locale),zc!=="ready"&&document.fonts.ready.then(()=>Id(this)),e.querySelector("[part=container]").style.removeProperty("visibility"),this.undoManager.startRecording(),this.undoManager.snapshot("set-value")}get defaultStyle(){return this._defaultStyle}set defaultStyle(e){this._defaultStyle=e}get effectiveStyle(){if(this.adoptStyle==="none")return this.defaultStyle;const e=this.model.at(this.model.position),t=this.adoptStyle==="right"?e.rightSibling:e;if(!t)return this.defaultStyle;if(t.type==="group"){const r=t.branch("body");return!r||r.length<2?{}:this.adoptStyle==="right"?r[1].computedStyle:r[r.length-1].computedStyle}return t.computedStyle}connectToVirtualKeyboard(){this.connectedToVirtualKeyboard||(this.connectedToVirtualKeyboard=!0,window.addEventListener("message",this,{signal:this.eventController.signal}),window.mathVirtualKeyboard.connect(),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Iu(this)),c0(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,N0())}showMenu(e){var t,r;const n=(r=(t=e==null?void 0:e.location)!=null?t:Bl(this.field))!=null?r:void 0,i=e==null?void 0:e.modifiers,s=this.element.querySelector("[part=container]");return this._menu.show({target:s,location:n,modifiers:i})}get colorMap(){return e=>{var t,r,n;return(n=(r=(t=this.options).colorMap)==null?void 0:r.call(t,e))!=null?n:je(e)}}get backgroundColorMap(){return e=>{var t,r,n,i,s,A;return(A=(s=(r=(t=this.options).backgroundColorMap)==null?void 0:r.call(t,e))!=null?s:(i=(n=this.options).colorMap)==null?void 0:i.call(n,e))!=null?A:q(e)}}get smartFence(){var e;return(e=this.options.smartFence)!=null?e:!1}get readOnly(){var e;return(e=this.options.readOnly)!=null?e:!1}get disabled(){var e,t;return(t=(e=this.host)==null?void 0:e.disabled)!=null?t:!1}get contentEditable(){return this.host?this.host.getAttribute("contenteditable")!=="false":!1}get userSelect(){if(!this.host)return"";const e=getComputedStyle(this.host);return e.getPropertyValue("user-select")||e.getPropertyValue("-webkit-user-select")}get hasEditableContent(){return this.disabled||!this.contentEditable?!1:!this.readOnly||this.hasEditablePrompts}get hasEditablePrompts(){return this.readOnly&&!this.disabled&&this.contentEditable&&this.model.findAtom(e=>e.type==="prompt"&&!e.locked)!==void 0}get isSelectionEditable(){if(this.disabled||!this.contentEditable)return!1;if(!this.readOnly)return!0;const e=this.model.at(this.model.anchor),t=this.model.at(this.model.position),r=zr.commonAncestor(e,t);return!!((r==null?void 0:r.type)==="prompt"||r!=null&&r.parentPrompt)}get letterShapeStyle(){var e;return(e=this.options.letterShapeStyle)!=null?e:"tex"}get minFontScale(){return this.options.minFontScale}get selectionStyle(){if(this.model.selectionIsCollapsed)return this.effectiveStyle;const e=this.model.getAtoms(this.model.selection);if(e.length===0)return{};const t=f({},e[0].style);for(const r of e)for(const[n,i]of Object.entries(r.style))t[n]!==i&&delete t[n];return t}queryStyle(e){const t=M0(this,e);"verbatimColor"in t&&delete t.verbatimColor,"verbatimBackgroundColor"in t&&delete t.verbatimBackgroundColor;const r=Object.keys(t).length;if(r===0)return"all";if(r>1){for(const z of Object.keys(t)){const X=this.queryStyle({[z]:t[z]});if(X==="none")return"none";if(X==="some")return"some"}return"all"}const n=Object.keys(t)[0],i=t[n];if(this.model.selectionIsCollapsed)return this.effectiveStyle[n]===i?"all":"none";const s=this.model.getAtoms(this.model.selection,{includeChildren:!0});let A=s.length;if(A===0)return"none";let M=0;for(const z of s){if(z.type==="first"){A-=1;continue}z.style[n]===i&&(M+=1)}return M===0?"none":M===A?"all":"some"}get keybindings(){var e,t;if(this._keybindings)return this._keybindings;const[r,n]=iA(this.options.keybindings,(e=Zi())!=null?e:ii());return((t=Zi())==null?void 0:t.score)>0&&(this._keybindings=r,n.length>0&&console.error("MathLive 0.98.5: Invalid keybindings for current keyboard layout",n)),r}get menu(){return this._menu}setOptions(e){var t;this.options=f(f({},this.options),Xf(e)),this._keybindings=void 0,this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline");let r=this.options.defaultMode;r==="inline-math"&&(r="math"),((t=this.model.root.firstChild)==null?void 0:t.mode)!==r&&(this.model.root.firstChild.mode=r),this.options.readOnly&&this.hasFocus()&&window.mathVirtualKeyboard.visible&&this.executeCommand("hideVirtualKeyboard");const n=zr.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in e||this.model.getValue()!==n)&&aa.insert(this.model,n,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",silenceNotifications:!0,mode:"math"}),("value"in e||"macros"in e||"registers"in e||"colorMap"in e||"backgroundColorMap"in e||"letterShapeStyle"in e||"minFontScale"in e||"readOnly"in e||"placeholderSymbol"in e)&&xs(this)}getOptions(e){return Td(this.options,e)}getOption(e){return Td(this.options,e)}handleEvent(e){return gd(this,null,function*(){var t;if(hs(this)){if(tf(e)){if(!kA(e.origin,(t=this.options.originValidator)!=null?t:"none"))throw new DOMException(`Message from unknown origin (${e.origin}) cannot be handled`,"SecurityError");const{action:r}=e.data;if(r==="execute-command"){const n=e.data.command;if(dd(n)==="virtual-keyboard")return;this.executeCommand(n)}else r==="update-state"||(r==="focus"?this.focus({preventScroll:!0}):r==="blur"&&this.blur());return}switch(e.type){case"focus":this.onFocus();break;case"blur":this.onBlur();break;case"mousedown":this.userSelect!=="none"&&ph(this,e);break;case"pointerdown":this.userSelect!=="none"&&(ph(this,e),e.shiftKey===!1&&(yield Ih(e,this.element.querySelector("[part=container]"),this._menu))&&a0.stop());break;case"contextmenu":this.userSelect!=="none"&&e.shiftKey===!1&&(yield Ih(e,this.element.querySelector("[part=container]"),this._menu))&&a0.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&c0(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>hs(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>hs(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(e);break;default:console.warn("Unexpected event type",e.type)}}})}dispose(){if(!hs(this))return;te.unsubscribe(this._l10Subscription),this.keyboardDelegate.dispose(),this.keyboardDelegate=void 0,this.eventController.abort(),this.eventController=void 0,this.resizeObserver.disconnect(),window.mathVirtualKeyboard.removeEventListener("virtual-keyboard-toggle",this),this.disconnectFromVirtualKeyboard(),this.model.dispose();const e=this.element;delete e.mathfield,this.element=void 0,this.host=void 0,this.field=void 0,this.ariaLiveText=void 0,rm(),Hf(),Cm()}flushInlineShortcutBuffer(e){if(e!=null||(e={defer:!1}),!e.defer){this.inlineShortcutBuffer=[],clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=0;return}this.options.inlineShortcutTimeout>0&&(clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=setTimeout(()=>this.flushInlineShortcutBuffer(),this.options.inlineShortcutTimeout))}executeCommand(e){return dd(e)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(e),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(Iu(this))),!1):ef(this,e)}get errors(){return gu(this.model.getValue(),{context:this.context})}getValue(e,t,r){return this.model.getValue(e,t,r)}setValue(e,t){var r;t=t!=null?t:{mode:"math"},t.insertionMode===void 0&&(t.insertionMode="replaceAll"),(t.format===void 0||t.format==="auto")&&(t.format="latex"),(t.mode===void 0||t.mode==="auto")&&(t.mode=(r=Hu(this.model,this.model.position))!=null?r:"math");const n=this.undoManager.canUndo();aa.insert(this.model,e,t)&&(xs(this),n||this.undoManager.reset(),this.undoManager.snapshot("set-value"))}get expression(){const e=window.MathfieldElement.computeEngine;return e?e.box(e.parse(this.model.getValue("latex-unstyled"))):(console.error("MathLive 0.98.5: no compute engine available. Make sure the Compute Engine library is loaded."),null)}scrollIntoView(){var e;if(!this.element)return;if(this.host){if(this.options.onScrollIntoView)this.options.onScrollIntoView(this);else if(this.host.scrollIntoView({block:"nearest",inline:"nearest"}),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.container===window.document.body){const n=window.mathVirtualKeyboard.boundingRect,i=this.host.getBoundingClientRect();i.bottom>n.top&&((e=window.document.scrollingElement)==null||e.scrollBy(0,i.bottom-n.top+8))}}this.dirty&&TA(this,{interactive:!0});const t=this.field.getBoundingClientRect();let r=null;if(this.model.selectionIsCollapsed)r=Bl(this.field);else{const n=XA(this);if(n.length>0){let i=-1/0,s=-1/0;for(const A of n)A.right>i&&(i=A.right),A.top<s&&(s=A.top);r={x:i+t.left-this.field.scrollLeft,y:s+t.top-this.field.scrollTop,height:0}}}if(this.host&&r){const n=this.host.getBoundingClientRect(),i=r.y;let s=this.host.scrollTop;i<n.top?s=i-n.top+this.host.scrollTop:i>n.bottom&&(s=i-n.bottom+this.host.scrollTop+r.height),this.host.scroll({top:s,left:0})}if(r){const n=r.x-window.scrollX;let i=this.field.scrollLeft;n<t.left?i=n-t.left+this.field.scrollLeft-20:n>t.right&&(i=n-t.right+this.field.scrollLeft+20),this.field.scroll({top:this.field.scrollTop,left:i})}}insert(e,t){return typeof e!="string"||e.length===0&&((t==null?void 0:t.insertionMode)==="insertBefore"||(t==null?void 0:t.insertionMode)==="insertAfter")||e.length===0&&this.model.selectionIsCollapsed?!1:(this.flushInlineShortcutBuffer(),t=t!=null?t:{mode:"math"},t.focus&&this.focus(),t.feedback&&(window.MathfieldElement.keypressVibration&&I()&&navigator.vibrate(Md),window.MathfieldElement.playSound("keypress")),e==="\\\\"?th(this.model):e==="&"?rh(this.model):this.model.selectionIsCollapsed?aa.insert(this.model,e,f({style:this.model.at(this.model.position).computedStyle},t)):aa.insert(this.model,e,t),this.snapshot(`insert-${this.model.at(this.model.position).type}`),xs(this),t.scrollIntoView&&this.scrollIntoView(),!0)}switchMode(e,t="",r=""){var n;if(this.model.mode===e||!this.hasEditableContent||!this.contentEditable||this.disabled)return;const i=this.model.mode;if(this.model.mode=e,!((n=this.host)!=null&&n.dispatchEvent(new Event("mode-change",{bubbles:!0,composed:!0,cancelable:!0})))){this.model.mode=i;return}const s=this.model.mode,{model:A}=this;A.deferNotifications({content:!!r||!!t,selection:!0,type:"insertText"},()=>{let M=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),t&&e!=="latex"){const z=Al(t,{context:this.context,parseMode:e});A.collapseSelection("forward");const X=A.at(A.position);A.position=A.offsetOf(X.parent.addChildrenAfter(z,X)),M=!0}if(this.model.mode=e,e==="latex"){let z=A.selectionIsCollapsed;Su(this,"accept");let X,ue=A.at(A.position);if(z)X="\\";else{const ft=Is(A.selection);X=this.model.getValue(ft,"latex");const Ft=this.model.extractAtoms(ft);Ft.length===1&&Ft[0].type==="placeholder"&&(X=t,z=!0),ue=A.at(ft[0])}const Ke=new yu(X);ue.parent.addChildAfter(Ke,ue),z?A.position=A.offsetOf(Ke.lastChild):A.setSelection(A.offsetOf(Ke.firstChild),A.offsetOf(Ke.lastChild))}else jc(A).forEach(z=>{z.isError=!1});if(r){const z=Al(r,{context:this.context,parseMode:s});A.collapseSelection("forward");const X=A.at(A.position);A.position=A.offsetOf(X.parent.addChildrenAfter(z,X)),M=!0}return xs(this),this.undoManager.snapshot(e==="latex"?"insert-latex":"insert"),M}),this.model.mode=e,window.mathVirtualKeyboard.update(Iu(this))}hasFocus(){return!this.blurred}focus(e){var t;this.hasFocus()||(this.keyboardDelegate.focus(),this.connectToVirtualKeyboard(),this.onFocus(),this.model.announce("line")),(t=e==null?void 0:e.preventScroll)!=null&&t||this.scrollIntoView()}blur(){this.disconnectFromVirtualKeyboard(),this.hasFocus()&&this.keyboardDelegate.blur()}select(){this.model.selection={ranges:[[0,this.model.lastOffset]]},this.focus()}applyStyle(e,t={}){var r,n;const i={operation:"set",silenceNotifications:!1};Yc(t)?i.range=t:(t.operation==="toggle"&&(i.operation="toggle"),i.range=t.range,i.silenceNotifications=(r=t.silenceNotifications)!=null?r:!1);const s=M0(this,e),A=(n=i.operation)!=null?n:"set";if(i.range===void 0&&this.model.selectionIsCollapsed){if(A==="set"){this.defaultStyle=f(f({},this.defaultStyle),s);return}const M=f({},this.defaultStyle);for(const z of Object.keys(s))M[z]===s[z]?(z==="color"&&delete M.verbatimColor,z==="backgroundColor"&&delete M.verbatimBackgroundColor,delete M[z]):M[z]=s[z];this.defaultStyle=M;return}this.model.deferNotifications({content:!i.silenceNotifications,type:"insertText"},()=>{if(i.range===void 0)for(const M of this.model.selection.ranges)x0(this.model,M,s,{operation:A});else x0(this.model,i.range,s,{operation:A})}),xs(this)}toggleContextMenu(){var e;return this._menu.visible?this._menu.state==="open"?(this._menu.hide(),!0):(this._menu.show({target:this.element.querySelector("[part=container]"),location:(e=this.getCaretPoint())!=null?e:void 0,onDismiss:()=>{var t;return(t=this.element)==null?void 0:t.focus()}}),!0):!1}getCaretPoint(){const e=Bl(this.field);return e?{x:e.x,y:e.y}:null}setCaretPoint(e,t){const r=Df(this,e,t,{bias:0});if(r<0)return!1;const n=this.model.position;return this.model.position=r,this.model.announce("move",n),xs(this),!0}getPrompt(e){const t=this.model.findAtom(r=>r.type==="prompt"&&r.placeholderId===e);return console.assert(t!==void 0,"MathLive 0.98.5: no prompts with matching ID found"),t}getPromptValue(e,t){const r=this.getPrompt(e);if(!r)return"";const n=this.model.offsetOf(r.firstChild),i=this.model.offsetOf(r.lastChild);return this.model.getValue(n,i,t)}getPrompts(e){return this.model.getAllAtoms().filter(t=>t.type!=="prompt"?!1:e?!(e.id&&t.placeholderId!==e.id||e.locked&&t.locked!==e.locked||e.correctness==="undefined"&&t.correctness||e.correctness&&t.correctness!==e.correctness):!0).map(t=>t.placeholderId)}setPromptValue(e,t,r){if(t!==void 0){const n=this.getPrompt(e);if(!n){console.error(`MathLive 0.98.5: unknown prompt ${e}`);return}const i=this.model.getBranchRange(this.model.offsetOf(n),"body");this.model.setSelection(i),this.insert(t,E(f({},r),{insertionMode:"replaceSelection"}))}r!=null&&r.silenceNotifications&&(this.valueOnFocus=this.getValue()),xs(this)}setPromptState(e,t,r){const n=this.getPrompt(e);if(!n){console.error(`MathLive 0.98.5: unknown prompt ${e}`);return}t==="undefined"?n.correctness=void 0:typeof t=="string"&&(n.correctness=t),typeof r=="boolean"&&(n.locked=r,n.captureSelection=r),xs(this)}getPromptState(e){const t=this.getPrompt(e);return t?[t.correctness,t.locked]:(console.error(`MathLive 0.98.5: unknown prompt ${e}`),[void 0,!0])}getPromptRange(e){const t=this.getPrompt(e);return t?this.model.getBranchRange(this.model.offsetOf(t),"body"):(console.error(`MathLive 0.98.5: unknown prompt ${e}`),[0,0])}canUndo(){return this.undoManager.canUndo()}canRedo(){return this.undoManager.canRedo()}popUndoStack(){this.undoManager.pop()}snapshot(e){var t;this.undoManager.snapshot(e)&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Iu(this)),(t=this.host)==null||t.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"snapshot"}})))}stopCoalescingUndo(){this.undoManager.stopCoalescing(this.model.selection)}stopRecording(){this.undoManager.stopRecording()}startRecording(){this.undoManager.startRecording()}undo(){var e;this.undoManager.undo()&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Iu(this)),(e=this.host)==null||e.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}redo(){var e;this.undoManager.redo()&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Iu(this)),(e=this.host)==null||e.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}resetUndo(){var e;(e=this.undoManager)==null||e.reset()}onSelectionDidChange(){var e,t;const r=this.model;this.keyboardDelegate.setValue(r.getValue(this.model.selection,"latex-expanded"));{const n=r.at(r.position),i=(e=n.mode)!=null?e:eh(this.options);this.model.mode!==i&&(this.model.mode==="latex"?(Su(this,"accept",{mode:i}),r.position=r.offsetOf(n)):this.switchMode(i))}(t=this.host)==null||t.dispatchEvent(new Event("selection-change",{bubbles:!0,composed:!0})),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Iu(this)),c0(this)}onContentWillChange(e){var t,r,n;return(n=(r=this.host)==null?void 0:r.dispatchEvent(new InputEvent("beforeinput",E(f({},e),{data:e.data?e.data:(t=e.inputType)!=null?t:"",cancelable:!0,bubbles:!0,composed:!0}))))!=null?n:!0}onFocus(){this.focusBlurInProgress||!this.blurred||(this.focusBlurInProgress=!0,this.blurred=!1,this.keyboardDelegate.focus(),this.stopCoalescingUndo(),TA(this,{interactive:!0}),this.valueOnFocus=this.model.getValue(),this.hasEditablePrompts&&!this.model.at(this.model.anchor).parentPrompt&&this.executeCommand("moveToNextPlaceholder"),this.focusBlurInProgress=!1)}onBlur(){var e,t,r;if(this.focusBlurInProgress||this.blurred)return;this.focusBlurInProgress=!0,this.stopCoalescingUndo(),this.blurred=!0,this.ariaLiveText.textContent="",gA(this),this.model.getValue()!==this.valueOnFocus&&((e=this.host)==null||e.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),this.disconnectFromVirtualKeyboard(),(t=this.host)==null||t.dispatchEvent(new Event("blur",{bubbles:!1,composed:!0})),(r=this.host)==null||r.dispatchEvent(new UIEvent("focusout",{bubbles:!0,composed:!0})),xs(this),this.focusBlurInProgress=!1,N0();const n=new AbortController,i=n.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{hs(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:i})},{once:!0,signal:i}),setTimeout(()=>n.abort(),100)}onInput(e){_0(this,e)}onKeystroke(e){return dh(this,e)}onCompositionStart(e){this.model.deleteAtoms(Is(this.model.selection));const t=Bl(this.field);t&&requestAnimationFrame(()=>{TA(this),this.keyboardDelegate.moveTo(t.x,t.y-t.height)})}onCompositionUpdate(e){Op(this.model,e),xs(this)}onCompositionEnd(e){Tp(this.model),_0(this,e,{simulateKeystroke:!0})}onCut(e){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),aa.onCopy(this,e),Lu(this.model,Is(this.model.selection),"deleteByCut"),this.snapshot("cut"),xs(this))}onCopy(e){aa.onCopy(this,e)}onPaste(e){let t=this.isSelectionEditable;return t&&(t=aa.onPaste(this.model.at(this.model.position).mode,this,e.clipboardData)),t||this.model.announce("plonk"),e.preventDefault(),e.stopPropagation(),t}onGeometryChange(){this._menu.hide(),Mc(this),c0(this)}onWheel(e){const t=5*e.deltaX;if(!Number.isFinite(t)||t===0)return;const r=this.field;t<0&&r.scrollLeft===0||t>0&&r.offsetWidth+r.scrollLeft>=r.scrollWidth||(r.scrollBy({top:0,left:t}),e.preventDefault(),e.stopPropagation())}getHTMLElement(e){let t=e;for(;!t.id&&t.hasChildren;)t=e.children[0];return this.field.querySelector(`[data-atom-id="${t.id}"]`)}get context(){var e,t;return{registers:(e=this.options.registers)!=null?e:{},smartFence:this.smartFence,letterShapeStyle:this.letterShapeStyle,minFontScale:this.minFontScale,placeholderSymbol:(t=this.options.placeholderSymbol)!=null?t:"\u25A2",colorMap:r=>this.colorMap(r),backgroundColorMap:r=>this.backgroundColorMap(r),getMacro:r=>jt(r,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}};function Kh(e){if(e&&(e.classList.remove("ML__highlight"),e.children))for(const t of e.children)Kh(t)}function X0(e,t){var r;e&&(!t||((r=e.dataset)==null?void 0:r.atomId)===t?(e.classList.add("ML__highlight"),e.children&&e.children.length>0&&[...e.children].forEach(n=>{n instanceof HTMLElement&&X0(n)})):(e.classList.remove("ML__highlight"),e.children&&e.children.length>0&&[...e.children].forEach(n=>{n instanceof HTMLElement&&X0(n,t)})))}function wg(e,t){var r;if(!N())return;if(window.MathfieldElement.speechEngine!=="amazon"){console.error("MathLive 0.98.5: Use Amazon TTS Engine for synchronized highlighting"),typeof window.MathfieldElement.speakHook=="function"&&window.MathfieldElement.speakHook(t);return}if(!window.AWS){console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");return}const n=new window.AWS.Polly({apiVersion:"2016-06-10"}),i={OutputFormat:"json",VoiceId:(r=window.MathfieldElement.speechEngineVoice)!=null?r:"Joanna",Engine:"standard",Text:t,TextType:"ssml",SpeechMarkTypes:["ssml"]};md().readAloudElement=e,n.synthesizeSpeech(i,(s,A)=>{if(s){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${s}`);return}if(!(A!=null&&A.AudioStream)){console.log("polly.synthesizeSpeech():",A);return}const M=new TextDecoder("utf-8").decode(new Uint8Array(A.AudioStream));md().readAloudMarks=M.split(`
`).map(z=>z?JSON.parse(z):{}),md().readAloudTokens=[];for(const z of md().readAloudMarks)z.value&&md().readAloudTokens.push(z.value);md().readAloudCurrentMark="",i.OutputFormat="mp3",i.SpeechMarkTypes=[],n.synthesizeSpeech(i,(z,X)=>{if(z){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${t}") error:${z}`);return}if(!(X!=null&&X.AudioStream))return;const ue=new Uint8Array(X.AudioStream),Ke=new Blob([ue.buffer],{type:"audio/mpeg"}),ft=URL.createObjectURL(Ke),Ft=md();Ft.readAloudAudio?Ft.readAloudAudio.pause():(Ft.readAloudAudio=new Audio,Ft.readAloudAudio.addEventListener("ended",()=>{const Nt=Ft.readAloudMathfield;Ft.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Nt?(TA(Nt),Ft.readAloudElement=null,Ft.readAloudMathfield=null,Ft.readAloudTokens=[],Ft.readAloudMarks=[],Ft.readAloudCurrentMark=""):Kh(Ft.readAloudElement)}),Ft.readAloudAudio.addEventListener("timeupdate",()=>{let Nt="";const Er=Ft.readAloudAudio.currentTime*1e3+100;for(const Fn of Ft.readAloudMarks)Fn.time<Er&&(Nt=Fn.value);Ft.readAloudCurrentMark!==Nt&&(Ft.readAloudCurrentToken=Nt,Nt&&Nt===Ft.readAloudFinalToken?Ft.readAloudAudio.pause():(Ft.readAloudCurrentMark=Nt,X0(Ft.readAloudElement,Ft.readAloudCurrentMark)))})),Ft.readAloudAudio.src=ft,Ft.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Ft.readAloudAudio.play()})})}N()||console.error('MathLive 0.98.5: this version of the MathLive library is for use in the browser. A subset of the API is available on the server side in the "mathlive-ssr" library. If using server side rendering (with React for example) you may want to do a dynamic import of the MathLive library inside a `useEffect()` call.');var yo=new WeakMap,xg=.5,pd={letterShapeStyle:"mf.letterShapeStyle = ...",horizontalSpacingScale:'Removed. Use `"thinmuskip"`, `"medmuskip"`, and `"thickmuskip"` registers ',macros:"mf.macros = ...",registers:"mf.registers = ...",backgroundColorMap:"mf.backgroundColorMap = ...",colorMap:"mf.colorMap = ...",enablePopover:"mf.popoverPolicy = ...",mathModeSpace:"mf.mathModeSpace = ...",placeholderSymbol:"mf.placeholderSymbol = ...",readOnly:"mf.readOnly = ...",removeExtraneousParentheses:"mf.removeExtraneousParentheses = ...",scriptDepth:"mf.scriptDepth = ...",smartFence:"mf.smartFence = ...",smartMode:"mf.smartMode = ...",smartSuperscript:"mf.smartSuperscript = ...",inlineShortcutTimeout:"mf.inlineShortcutTimeout = ...",inlineShortcuts:"mf.inlineShortcuts = ...",keybindings:"mf.keybindings = ...",virtualKeyboardMode:"mf.mathVirtualKeyboardPolicy = ...",customVirtualKeyboardLayers:"mathVirtualKeyboard.layers = ...",customVirtualKeyboards:"mathVirtualKeyboard.layouts = ...",keypressSound:"mathVirtualKeyboard.keypressSound = ...",keypressVibration:"mathVirtualKeyboard.keypressVibration = ...",plonkSound:"mathVirtualKeyboard.plonkSound = ...",virtualKeyboardContainer:"mathVirtualKeyboard.container = ...",virtualKeyboardLayout:"mathVirtualKeyboard.alphabeticLayout = ...",virtualKeyboardTheme:"No longer supported",virtualKeyboardToggleGlyph:"No longer supported",virtualKeyboardToolbar:"mathVirtualKeyboard.editToolbar = ...",virtualKeyboards:"Use `mathVirtualKeyboard.layouts`",speechEngine:"`MathfieldElement.speechEngine`",speechEngineRate:"`MathfieldElement.speechEngineRate`",speechEngineVoice:"`MathfieldElement.speechEngineVoice`",textToSpeechMarkup:"`MathfieldElement.textToSpeechMarkup`",textToSpeechRules:"`MathfieldElement.textToSpeechRules`",textToSpeechRulesOptions:"`MathfieldElement.textToSpeechRulesOptions`",readAloudHook:"`MathfieldElement.readAloudHook`",speakHook:"`MathfieldElement.speakHook`",computeEngine:"`MathfieldElement.computeEngine`",fontsDirectory:"`MathfieldElement.fontsDirectory`",soundsDirectory:"`MathfieldElement.soundsDirectory`",createHTML:"`MathfieldElement.createHTML`",onExport:"`MathfieldElement.onExport`",onInlineShortcut:"`MathfieldElement.onInlineShortcut`",onScrollIntoView:"`MathfieldElement.onScrollIntoView`",locale:"MathfieldElement.locale = ...",strings:"MathfieldElement.strings = ...",decimalSeparator:"MathfieldElement.decimalSeparator = ...",fractionNavigationOrder:"MathfieldElement.fractionNavigationOrder = ..."},Kl=class $d extends HTMLElement{static get formAssociated(){return hf()}static get optionsAttributes(){return{"default-mode":"string","letter-shape-style":"string","min-font-scale":"number","popover-policy":"string","math-mode-space":"string","read-only":"boolean","remove-extraneous-parentheses":"on/off","smart-fence":"on/off","smart-mode":"on/off","smart-superscript":"on/off","inline-shortcut-timeout":"string","script-depth":"string",placeholder:"string","virtual-keyboard-target-origin":"string","math-virtual-keyboard-policy":"string"}}static get observedAttributes(){return[...Object.keys(this.optionsAttributes),"contenteditable","disabled","readonly","read-only"]}static get fontsDirectory(){return this._fontsDirectory}static set fontsDirectory(t){t!==this._fontsDirectory&&(this._fontsDirectory=t,xf())}get fontsDirectory(){throw new Error("Use MathfieldElement.fontsDirectory instead")}set fontsDirectory(t){throw new Error("Use MathfieldElement.fontsDirectory instead")}static get soundsDirectory(){return this._soundsDirectory}static set soundsDirectory(t){this._soundsDirectory=t,this.audioBuffers={}}get soundsDirectory(){throw new Error("Use MathfieldElement.soundsDirectory instead")}set soundsDirectory(t){throw new Error("Use MathfieldElement.soundsDirectory instead")}static get keypressSound(){return this._keypressSound}static set keypressSound(t){var r,n,i;this.audioBuffers={},t===null?this._keypressSound={spacebar:null,return:null,delete:null,default:null}:typeof t=="string"?this._keypressSound={spacebar:t,return:t,delete:t,default:t}:typeof t=="object"&&"default"in t&&(this._keypressSound={spacebar:(r=t.spacebar)!=null?r:t.default,return:(n=t.return)!=null?n:t.default,delete:(i=t.delete)!=null?i:t.default,default:t.default})}static get plonkSound(){return this._plonkSound}static set plonkSound(t){this.audioBuffers={},this._plonkSound=t}static get audioContext(){return this._audioContext||(this._audioContext=new AudioContext),this._audioContext}static get speechEngine(){return this._speechEngine}static set speechEngine(t){this._speechEngine=t}static get speechEngineRate(){return this._speechEngineRate}static set speechEngineRate(t){this._speechEngineRate=t}static get speechEngineVoice(){return this._speechEngineVoice}static set speechEngineVoice(t){this._speechEngineVoice=t}static get textToSpeechMarkup(){return this._textToSpeechMarkup}static set textToSpeechMarkup(t){this._textToSpeechMarkup=t}static get textToSpeechRules(){return this._textToSpeechRules}static set textToSpeechRules(t){this._textToSpeechRules=t}static get textToSpeechRulesOptions(){return this._textToSpeechRulesOptions}static set textToSpeechRulesOptions(t){this._textToSpeechRulesOptions=t}static get locale(){return te.locale}static set locale(t){t==="auto"&&(t=navigator.language.slice(0,5)),te.locale=t}get locale(){throw new Error("Use MathfieldElement.locale instead")}set locale(t){throw new Error("Use MathfieldElement.locale instead")}static get strings(){return te.strings}static set strings(t){te.merge(t)}get strings(){throw new Error("Use MathfieldElement.strings instead")}set strings(t){throw new Error("Use MathfieldElement.strings instead")}static get decimalSeparator(){return this._decimalSeparator}static set decimalSeparator(t){this._decimalSeparator=t,this._computeEngine&&(this._computeEngine.latexOptions.decimalMarker=this.decimalSeparator===","?"{,}":".")}get decimalSeparator(){throw new Error("Use MathfieldElement.decimalSeparator instead")}set decimalSeparator(t){throw new Error("Use MathfieldElement.decimalSeparator instead")}static get computeEngine(){var t,r;if(this._computeEngine===void 0){const n=(t=window[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:t.ComputeEngine;if(!n)return null;this._computeEngine=new n,this._computeEngine&&this.decimalSeparator===","&&(this._computeEngine.latexOptions.decimalMarker="{,}")}return(r=this._computeEngine)!=null?r:null}static set computeEngine(t){this._computeEngine=t}get computeEngine(){throw new Error("Use MathfieldElement.computeEngine instead")}set computeEngine(t){throw new Error("Use MathfieldElement.computeEngine instead")}static get isFunction(){return typeof this._isFunction!="function"?()=>!1:this._isFunction}static set isFunction(t){this._isFunction=t}static loadSound(t){return gd(this,null,function*(){delete this.audioBuffers[t];let r="";switch(t){case"keypress":r=this._keypressSound.default;break;case"return":r=this._keypressSound.return;break;case"spacebar":r=this._keypressSound.spacebar;break;case"delete":r=this._keypressSound.delete;break;case"plonk":r=this.plonkSound;break}if(typeof r!="string")return;r=r.trim();const n=this.soundsDirectory;if(!(n==null||n==="null"||r==="none"||r==="null"))try{const s=yield(yield fetch(yield ud(`${n}/${r}`))).arrayBuffer(),A=yield this.audioContext.decodeAudioData(s);this.audioBuffers[t]=A}catch(i){}})}static playSound(t){return gd(this,null,function*(){if((this.audioContext.state==="suspended"||this.audioContext.state==="interrupted")&&(yield this.audioContext.resume()),this.audioBuffers[t]||(yield this.loadSound(t)),!this.audioBuffers[t])return;const r=this.audioContext.createBufferSource();r.buffer=this.audioBuffers[t];const n=this.audioContext.createGain();n.gain.value=xg,r.connect(n).connect(this.audioContext.destination),r.start()})}constructor(t){if(super(),t){const r=[];for(const n of Object.keys(t))if(pd[n])if(pd[n].startsWith("mf."))if(pd[n].startsWith(`mf.${n}`))r.push(`Option \`${n}\` cannot be used as a constructor option. Use ${pd[n]}`);else{const i=pd[n].match(/([a-zA-Z]+) =/);r.push(`Option \`${n}\` has been renamed \`${i[1]}\``)}else r.push(`Option \`${n}\` cannot be used as a constructor option. Use ${pd[n]}`);if(r.length>0){console.group("%cMathLive 0.98.5: %cInvalid Options","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn("Some of the options passed to `new MathfieldElement(...)` are invalid. \n See https://cortexjs.io/mathlive/changelog/ for details.");for(const n of r)console.warn(n);console.groupEnd()}}if(hf()&&(this._internals=this.attachInternals(),this._internals.role="math",this._internals.ariaLabel="math input field",this._internals.ariaMultiLine="false"),this.attachShadow({mode:"open",delegatesFocus:!0}),this.shadowRoot&&"adoptedStyleSheets"in this.shadowRoot){this.shadowRoot.adoptedStyleSheets=[ss("core"),ss("mathfield"),ss("mathfield-element"),ss("ui"),ss("menu")],this.shadowRoot.appendChild(document.createElement("span"));const r=document.createElement("slot");r.style.display="none",this.shadowRoot.appendChild(r)}else this.shadowRoot.innerHTML="<style>"+Jl("core")+Jl("mathfield")+Jl("mathfield-element")+Jl("ui")+Jl("menu")+'</style><span></span><slot style="display:none"></slot>';t&&this._setOptions(t),this.shadowRoot.addEventListener("slotchange",()=>{var r;const n=this.shadowRoot.querySelector("slot:not([name])");this.value=(r=n==null?void 0:n.assignedNodes().map(i=>i.nodeType===3?i.textContent:"").join("").trim())!=null?r:""})}showMenu(t){var r,n;return(n=(r=this._mathfield)==null?void 0:r.showMenu(t))!=null?n:!1}get mathVirtualKeyboard(){throw new Error("The `mathVirtualKeyboard` property is not available on the MathfieldElement. Use `window.mathVirtualKeyboard` instead.")}onPointerDown(){window.addEventListener("pointerup",t=>{var r;t.target===this&&!((r=this._mathfield)!=null&&r.disabled)&&this.dispatchEvent(new MouseEvent("click",{altKey:t.altKey,button:t.button,buttons:t.buttons,clientX:t.clientX,clientY:t.clientY,ctrlKey:t.ctrlKey,metaKey:t.metaKey,movementX:t.movementX,movementY:t.movementY,relatedTarget:t.relatedTarget,screenX:t.screenX,screenY:t.screenY,shiftKey:t.shiftKey}))},{once:!0})}getPromptValue(t,r){var n,i;return(i=(n=this._mathfield)==null?void 0:n.getPromptValue(t,r))!=null?i:""}setPromptValue(t,r,n){var i;(i=this._mathfield)==null||i.setPromptValue(t,r,n)}getPromptRange(t){var r,n;return(n=(r=this._mathfield)==null?void 0:r.getPromptRange(t))!=null?n:null}getPrompts(t){var r,n;return(n=(r=this._mathfield)==null?void 0:r.getPrompts(t))!=null?n:[]}get form(){var t;return(t=this._internals)==null?void 0:t.form}get name(){var t;return(t=this.getAttribute("name"))!=null?t:""}get type(){return this.localName}get mode(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.model.mode)!=null?r:this.defaultMode==="text"?"text":"math"}set mode(t){var r;(r=this._mathfield)==null||r.switchMode(t)}get expression(){if(this._mathfield)return window[Symbol.for("io.cortexjs.compute-engine")]?this._mathfield.expression:(console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
Load the library, for example with:
import "https://unpkg.com/@cortex-js/compute-engine?module"`),null)}set expression(t){var r,n;if(!this._mathfield)return;const i=(n=(r=$d.computeEngine)==null?void 0:r.box(t).latex)!=null?n:null;i!==null&&this._mathfield.setValue(i),window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
Load the library, for example with:
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}get errors(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.errors)!=null?r:[]}_getOptions(t){return this._mathfield?Td(this._mathfield.options,t):yo.has(this)?f({},Td(f(f({},Jf()),Xf(yo.get(this).options)),t)):null}getOptions(t){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOptions()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._mathfield?Td(this._mathfield.options,t):yo.has(this)?Td(f(f({},Jf()),Xf(yo.get(this).options)),t):null}reflectAttributes(){const t=Jf(),r=this._getOptions();Object.keys($d.optionsAttributes).forEach(n=>{const i=Ju(n);$d.optionsAttributes[n]==="on/off"?t[i]!==r[i]?this.setAttribute(n,r[i]?"on":"off"):this.removeAttribute(n):t[i]!==r[i]&&($d.optionsAttributes[n]==="boolean"?r[i]?this.setAttribute(n,""):this.removeAttribute(n):(typeof r[i]=="string"||typeof r[i]=="number")&&this.setAttribute(n,r[i].toString()))})}getOption(t){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOption()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._getOptions([t])[t]}_getOption(t){return this._getOptions([t])[t]}_setOptions(t){if(this._mathfield)this._mathfield.setOptions(t);else if(yo.has(this)){const r=f(f({},yo.get(this).options),t);yo.set(this,E(f({},yo.get(this)),{selection:{ranges:r.readOnly?[[0,0]]:[[0,-1]]},options:r}))}else yo.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:t,menuItems:void 0});this.reflectAttributes()}setOptions(t){console.group("%cMathLive 0.98.5: %cDeprecated Usage","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn(" `mf.setOptions()` is deprecated. Set the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.");for(const r of Object.keys(t))pd[r]&&console.warn(`\`mf.setOptions({${r}:...})\` -> ${pd[r]}`);console.groupEnd(),this._setOptions(t)}executeCommand(t){var r,n;return(n=(r=this._mathfield)==null?void 0:r.executeCommand(t))!=null?n:!1}getValue(t,r,n){var i,s;if(this._mathfield)return this._mathfield.model.getValue(t,r,n);if(yo.has(this)){let A,M,z;if(Uc(t)?([A,M]=t.ranges[0],z=r):Yc(t)?([A,M]=t,z=r):Tc(t)&&Tc(r)?(A=t,M=r,z=n):(A=0,M=-1,z=t),(z===void 0||z==="latex")&&A===0&&M===-1)return(s=(i=yo.get(this).value)!=null?i:this.textContent)!=null?s:""}return""}setValue(t,r){if(this._mathfield&&t!==void 0){r!=null||(r={silenceNotifications:!0,mode:"math"}),this._mathfield.setValue(t,r);return}if(yo.has(this)){const i=yo.get(this).options;yo.set(this,{value:t,selection:{ranges:[[-1,-1]],direction:"forward"},options:i,menuItems:void 0});return}const n=Qf(this);yo.set(this,{value:t,selection:{ranges:[[-1,-1]],direction:"forward"},options:n,menuItems:void 0})}hasFocus(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.hasFocus())!=null?r:!1}focus(){var t;(t=this._mathfield)==null||t.focus()}blur(){var t;(t=this._mathfield)==null||t.blur()}select(){var t;(t=this._mathfield)==null||t.select()}insert(t,r){var n,i;return(i=(n=this._mathfield)==null?void 0:n.insert(t,r))!=null?i:!1}applyStyle(t,r){var n;return(n=this._mathfield)==null?void 0:n.applyStyle(t,r)}queryStyle(t){var r,n;return(n=(r=this._mathfield)==null?void 0:r.queryStyle(t))!=null?n:"none"}get caretPoint(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.getCaretPoint())!=null?r:null}set caretPoint(t){var r;t&&((r=this._mathfield)==null||r.setCaretPoint(t.x,t.y))}setCaretPoint(t,r){var n,i;return(i=(n=this._mathfield)==null?void 0:n.setCaretPoint(t,r))!=null?i:!1}offsetFromPoint(t,r,n){return this._mathfield?Df(this._mathfield,t,r,n):-1}hitboxFromOffset(t){if(!this._mathfield)return null;const r=this._mathfield.model.at(t);if(!r)return null;const n=qc(this._mathfield,r);return n?new DOMRect(n.left,n.top,n.right-n.left,n.bottom-n.top):null}resetUndo(){var t;(t=this._mathfield)==null||t.resetUndo()}canUndo(){return this._mathfield?this._mathfield.canUndo():!1}canRedo(){return this._mathfield?this._mathfield.canRedo():!1}handleEvent(t){var r,n,i,s;Co.state==="closed"&&((n=(r=this._mathfield)==null?void 0:r.menu)==null?void 0:n.state)==="closed"&&(t.type==="pointerdown"&&this.onPointerDown(),t.type==="focus"&&((i=this._mathfield)==null||i.focus()),t.type==="blur"&&((s=this._mathfield)==null||s.blur()))}connectedCallback(){var t,r,n,i;const s=window.getComputedStyle(this),A=this.shadowRoot,M=s.userSelect!=="none";if(M)A.host.addEventListener("pointerdown",this,!0);else{const ue=A.querySelector("span");ue.style.pointerEvents="none"}A.host.addEventListener("focus",this,!0),A.host.addEventListener("blur",this,!0),hf()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),M&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const z=A.querySelector("slot:not([name])");if(z)try{this._style=z.assignedElements().filter(ue=>ue.tagName.toLowerCase()==="style").map(ue=>ue.textContent).join("")}catch(ue){console.error(ue)}if(this._style){const ue=document.createElement("style");ue.textContent=this._style,A.appendChild(ue)}let X="";if(this.hasAttribute("value")?X=this.getAttribute("value"):X=(t=z==null?void 0:z.assignedNodes().map(ue=>ue.nodeType===3?ue.textContent:"").join("").trim())!=null?t:"",this._mathfield=new bg(A.querySelector(":host > span"),E(f({},(n=(r=yo.get(this))==null?void 0:r.options)!=null?n:Qf(this)),{eventSink:this,value:X})),!yo.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const ue of Object.keys($d.optionsAttributes))this.upgradeProperty(Ju(ue))}if(!((i=this._mathfield)!=null&&i.model)){this._mathfield=null;return}if(yo.has(this)){const ue=this._mathfield,Ke=yo.get(this),ft=Ke.menuItems;ue.model.deferNotifications({content:!1,selection:!1},()=>{const Ft=Ke.value;Ft!==void 0&&ue.setValue(Ft),ue.model.selection=Ke.selection,yo.delete(this)}),ft&&(this.menuItems=ft)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),vA()}disconnectedCallback(){var t,r;if(this.shadowRoot.host.removeEventListener("pointerdown",this,!0),!this._mathfield)return;window.queueMicrotask(()=>this.dispatchEvent(new Event("unmount",{cancelable:!1,bubbles:!0,composed:!0})));const n=Td(this._mathfield.options,Object.keys($d.optionsAttributes).map(i=>Ju(i)));yo.set(this,{value:this._mathfield.getValue(),selection:this._mathfield.model.selection,menuItems:(r=(t=this._mathfield.menu)==null?void 0:t.menuItems)!=null?r:void 0,options:n}),this._mathfield.dispose(),this._mathfield=null}upgradeProperty(t){if(this.hasOwnProperty(t)){const r=this[t];delete this[t],(t==="readonly"||t==="read-only")&&(t="readOnly"),this[t]=r}}attributeChangedCallback(t,r,n){if(r===n)return;const i=n!==null;switch(t){case"contenteditable":xs(this._mathfield);break;case"disabled":this.disabled=i;break;case"read-only":case"readonly":this.readOnly=i;break;default:}}get readonly(){return this.hasAttribute("readonly")||this.hasAttribute("read-only")}set readonly(t){const r=!!t;r?(this.setAttribute("readonly",""),hf()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(hf()?this._internals.ariaReadOnly="false":this.removeAttribute("aria-readonly"),this.removeAttribute("readonly"),this.removeAttribute("read-only")),this._setOptions({readOnly:r})}get disabled(){return this.hasAttribute("disabled")}set disabled(t){var r;const n=!!t;n?this.setAttribute("disabled",""):this.removeAttribute("disabled"),hf()?this._internals.ariaDisabled=n?"true":"false":this.setAttribute("aria-disabled",n?"true":"false"),n&&((r=this._mathfield)!=null&&r.hasFocus)&&window.mathVirtualKeyboard.visible&&this._mathfield.executeCommand("hideVirtualKeyboard")}get value(){return this.getValue()}set value(t){this.setValue(t)}get defaultMode(){return this._getOption("defaultMode")}set defaultMode(t){this._setOptions({defaultMode:t})}get macros(){return this._getOption("macros")}set macros(t){this._setOptions({macros:t})}get registers(){const t=this;return new Proxy({},{get:(r,n)=>{if(typeof n=="string")return t._getOption("registers")[n]},set(r,n,i){return typeof n!="string"?!1:(t._setOptions({registers:E(f({},t._getOption("registers")),{[n]:i})}),!0)}})}set registers(t){this._setOptions({registers:t})}get colorMap(){return this._getOption("colorMap")}set colorMap(t){this._setOptions({colorMap:t})}get backgroundColorMap(){return this._getOption("backgroundColorMap")}set backgroundColorMap(t){this._setOptions({backgroundColorMap:t})}get letterShapeStyle(){return this._getOption("letterShapeStyle")}set letterShapeStyle(t){this._setOptions({letterShapeStyle:t})}get minFontScale(){return this._getOption("minFontScale")}set minFontScale(t){this._setOptions({minFontScale:t})}get smartMode(){return this._getOption("smartMode")}set smartMode(t){this._setOptions({smartMode:t})}get smartFence(){return this._getOption("smartFence")}set smartFence(t){this._setOptions({smartFence:t})}get smartSuperscript(){return this._getOption("smartSuperscript")}set smartSuperscript(t){this._setOptions({smartSuperscript:t})}get scriptDepth(){return this._getOption("scriptDepth")}set scriptDepth(t){this._setOptions({scriptDepth:t})}get removeExtraneousParentheses(){return this._getOption("removeExtraneousParentheses")}set removeExtraneousParentheses(t){this._setOptions({removeExtraneousParentheses:t})}get mathModeSpace(){return this._getOption("mathModeSpace")}set mathModeSpace(t){this._setOptions({mathModeSpace:t})}get placeholderSymbol(){return this._getOption("placeholderSymbol")}set placeholderSymbol(t){this._setOptions({placeholderSymbol:t})}get popoverPolicy(){return this._getOption("popoverPolicy")}set popoverPolicy(t){this._setOptions({popoverPolicy:t})}get environmentPopoverPolicy(){return this._getOption("environmentPopoverPolicy")}set environmentPopoverPolicy(t){this._setOptions({environmentPopoverPolicy:t})}get menuItems(){var t,r,n;return this._mathfield?(t=this._mathfield.menu._menuItems.map(i=>i.menuItem))!=null?t:[]:(n=(r=yo.get(this))==null?void 0:r.menuItems)!=null?n:[]}set menuItems(t){var r;if(this._mathfield){const n=(r=this._mathfield.element)==null?void 0:r.querySelector("[part=menu-toggle]");n&&(n.style.display=t.length===0?"none":""),this._mathfield.menu.menuItems=t}yo.has(this)?yo.set(this,E(f({},yo.get(this)),{menuItems:t})):yo.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:Qf(this),menuItems:t})}get mathVirtualKeyboardPolicy(){return this._getOption("mathVirtualKeyboardPolicy")}set mathVirtualKeyboardPolicy(t){this._setOptions({mathVirtualKeyboardPolicy:t})}get inlineShortcuts(){return this._getOption("inlineShortcuts")}set inlineShortcuts(t){this._setOptions({inlineShortcuts:t})}get inlineShortcutTimeout(){return this._getOption("inlineShortcutTimeout")}set inlineShortcutTimeout(t){this._setOptions({inlineShortcutTimeout:t})}get keybindings(){return this._getOption("keybindings")}set keybindings(t){this._setOptions({keybindings:t})}get onInlineShortcut(){return this._getOption("onInlineShortcut")}set onInlineShortcut(t){this._setOptions({onInlineShortcut:t})}get onScrollIntoView(){return this._getOption("onScrollIntoView")}set onScrollIntoView(t){this._setOptions({onScrollIntoView:t})}get onExport(){return this._getOption("onExport")}set onExport(t){this._setOptions({onExport:t})}get readOnly(){return this._getOption("readOnly")}set readOnly(t){this._setOptions({readOnly:t})}get isSelectionEditable(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.isSelectionEditable)!=null?r:!1}setPromptState(t,r,n){var i;(i=this._mathfield)==null||i.setPromptState(t,r,n)}getPromptState(t){var r,n;return(n=(r=this._mathfield)==null?void 0:r.getPromptState(t))!=null?n:[void 0,!0]}get virtualKeyboardTargetOrigin(){return this._getOption("virtualKeyboardTargetOrigin")}set virtualKeyboardTargetOrigin(t){this._setOptions({virtualKeyboardTargetOrigin:t})}get selection(){return this._mathfield?this._mathfield.model.selection:yo.has(this)?yo.get(this).selection:{ranges:[[0,0]],direction:"forward"}}set selection(t){if(typeof t=="number"&&(t={ranges:[[t,t]]}),this._mathfield){this._mathfield.model.selection=t,xs(this._mathfield);return}if(yo.has(this)){yo.set(this,E(f({},yo.get(this)),{selection:t}));return}yo.set(this,{value:void 0,selection:t,options:Qf(this),menuItems:void 0})}get selectionIsCollapsed(){const t=this.selection;return t.ranges.length===1&&t.ranges[0][0]===t.ranges[0][1]}get position(){return this._mathfield?this._mathfield.model.position:yo.has(this)?yo.get(this).selection.ranges[0][0]:0}set position(t){if(this._mathfield&&(this._mathfield.model.position=t,xs(this._mathfield)),yo.has(this)){yo.set(this,E(f({},yo.get(this)),{selection:{ranges:[[t,t]]}}));return}yo.set(this,{value:void 0,selection:{ranges:[[t,t]]},options:Qf(this),menuItems:void 0})}getOffsetDepth(t){var r,n;return this._mathfield?((n=(r=this._mathfield.model.at(t))==null?void 0:r.treeDepth)!=null?n:2)-2:0}get lastOffset(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.model.lastOffset)!=null?r:-1}};Kl.version="0.98.5",Kl._fontsDirectory="./fonts",Kl._soundsDirectory="./sounds",Kl.keypressVibration=!0,Kl._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},Kl._plonkSound="plonk.wav",Kl.audioBuffers={},Kl.createHTML=e=>e,Kl._speechEngineRate="100%",Kl._speechEngineVoice="Joanna",Kl._textToSpeechMarkup="",Kl._textToSpeechRules="mathlive",Kl._textToSpeechRulesOptions={},Kl.speakHook=ug,Kl.readAloudHook=wg,Kl._decimalSeparator=".",Kl.fractionNavigationOrder="numerator-denominator",Kl._isFunction=e=>{var t,r;const n=window.MathfieldElement.computeEngine;return(r=(t=n==null?void 0:n.parse(e).domain)==null?void 0:t.isFunction)!=null?r:!1};var Rf=Kl;function Ju(e){return e.replace(/[^a-zA-Z\d]+(.)/g,(t,r)=>r.toUpperCase())}function Qf(e){const t={readOnly:!1},r=Rf.optionsAttributes;return Object.keys(r).forEach(n=>{if(e.hasAttribute(n)){const i=e.getAttribute(n);n==="placeholder"?t.contentPlaceholder=i!=null?i:"":r[n]==="boolean"?t[Ju(n)]=!0:r[n]==="on/off"?i==="on"?t[Ju(n)]=!0:i==="off"?t[Ju(n)]=!1:t[Ju(n)]=void 0:r[n]==="number"?t[Ju(n)]=Number.parseFloat(i!=null?i:"0"):t[Ju(n)]=i}}),t}function hf(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var Hh=Rf,jh,zh,$h,Zh;if(N()&&!((jh=window.customElements)!=null&&jh.get("math-field"))){($h=window[zh=Symbol.for("io.cortexjs.mathlive")])!=null||(window[zh]={});const e=window[Symbol.for("io.cortexjs.mathlive")];e.version="0.98.5",window.MathfieldElement=Rf,(Zh=window.customElements)==null||Zh.define("math-field",Rf)}function Cg(e,t,r){let n=r,i=0;const s=e.length;for(;n<t.length;){const A=t[n];if(i<=0&&t.slice(n,n+s)===e)return n;A==="\\"?n++:A==="{"?i++:A==="}"&&i--,n++}return-1}function h0(e,t,r,n,i="latex"){const s=[];for(const A of e)if(A.type==="text"){const M=A.data;let z=!0,X=0,ue;ue=M.indexOf(t),ue!==-1&&(X=ue,X>0&&s.push({type:"text",data:M.slice(0,X)}),z=!1);let Ke=!1;for(;!Ke;){if(z){if(ue=M.indexOf(t,X),ue===-1){Ke=!0;break}X!==ue&&s.push({type:"text",data:M.slice(X,ue)}),X=ue}else{if(ue=Cg(r,M,X+t.length),ue===-1){Ke=!0;break}let ft=M.slice(X+t.length,ue);i==="ascii-math"&&([,ft]=We(ft,{format:"ascii-math"})),s.push({type:"math",data:ft,rawData:M.slice(X,ue+r.length),mathstyle:n}),X=ue+r.length}z=!z}X<M.length&&s.push({type:"text",data:M.slice(X)})}else s.push(A);return s}function Vh(e,t,r){let n=[{type:"text",data:e}];return t!=null&&t.inline&&t.inline.forEach(([i,s])=>{n=h0(n,i,s,"textstyle")}),t!=null&&t.display&&t.display.forEach(([i,s])=>{n=h0(n,i,s,"displaystyle")}),r!=null&&r.inline&&r.inline.forEach(([i,s])=>{n=h0(n,i,s,"textstyle","ascii-math")}),r!=null&&r.display&&r.display.forEach(([i,s])=>{n=h0(n,i,s,"displaystyle","ascii-math")}),n}function Bg(e,t){const r=document.createElement("span");r.setAttribute("translate","no");try{const n="<math xmlns='http://www.w3.org/1998/Math/MathML'>"+t.renderToMathML(e)+"</math>";r.innerHTML=window.MathfieldElement.createHTML(n)}catch(n){console.error(`MathLive 0.98.5: Could not convert "${e}"' to MathML with ${n}`),r.textContent=e}return r.className="ML__sr-only",r}function Sg(e,t,r,n){try{const i=t.renderToMarkup(e,{mathstyle:r,format:"html"}),s=document.createElement("span");return s.dataset.latex=e,s.style.display=r==="displaystyle"?"flex":"inline-flex",s.setAttribute("aria-hidden","true"),s.setAttribute("translate","no"),s.innerHTML=window.MathfieldElement.createHTML(i),s}catch(i){if(console.error("Could not parse'"+e+"' with ",i),n)return document.createTextNode(e)}return null}function pf(e,t,r,n){var i;const s=Sg(e,r,t||"textstyle",n),A=(i=r.renderAccessibleContent)!=null?i:"";if(s&&/\b(mathml|speakable-text)\b/i.test(A)){const M=document.createElement("span");if(/\bmathml\b/i.test(A)&&r.renderToMathML&&M.append(Bg(e,r)),/\bspeakable-text\b/i.test(A)&&r.renderToSpeakableText){const z=document.createElement("span");z.setAttribute("translate","no");const X=r.renderToSpeakableText(e);z.innerHTML=window.MathfieldElement.createHTML(X),z.className="ML__sr-only",M.append(z)}return M.append(s),M}return s}function Eg(e,t){var r,n,i;let s=null;if((r=t.TeX)!=null&&r.processEnvironments&&/^\s*\\begin/.test(e)){s=document.createDocumentFragment();const A=pf(e,"",t,!0);A&&s.appendChild(A)}else{if(!e.trim())return null;const A=Vh(e,(n=t.TeX)==null?void 0:n.delimiters,(i=t.asciiMath)==null?void 0:i.delimiters);if(A.length===1&&A[0].type==="text")return null;s=document.createDocumentFragment();for(const M of A)if(M.type==="text")s.appendChild(document.createTextNode(M.data));else{const z=pf(M.data,M.mathstyle==="textstyle"?"textstyle":"displaystyle",t,!0);z&&s.appendChild(z)}}return s}function Wh(e,t){var r,n,i,s,A,M,z,X,ue,Ke,ft,Ft,Nt,Er,Fn,xr;if(e.childNodes.length===1&&e.childNodes[0].nodeType===3){const nn=(r=e.childNodes[0].textContent)!=null?r:"";if((n=t.TeX)!=null&&n.processEnvironments&&/^\s*\\begin/.test(nn)){e.textContent="";const pn=pf(nn,"",t,!0);pn&&e.append(pn);return}const Rn=Vh(nn,(i=t.TeX)==null?void 0:i.delimiters,(s=t.asciiMath)==null?void 0:s.delimiters);if(Rn.length===1&&Rn[0].type==="math"){e.textContent="";const pn=pf(Rn[0].data,Rn[0].mathstyle==="textstyle"?"textstyle":"displaystyle",t,!0);pn&&e.append(pn);return}if(Rn.length===1&&Rn[0].type==="text")return}for(let nn=e.childNodes.length-1;nn>=0;nn--){const Rn=e.childNodes[nn];if(Rn.nodeType===3){const pn=Eg((A=Rn.textContent)!=null?A:"",t);pn&&(nn+=pn.childNodes.length-1,Rn.replaceWith(pn))}else if(Rn.nodeType===1){const pn=Rn,Si=Rn.nodeName.toLowerCase();if(Si==="script"){const zi=Rn;let Ui;if((M=t.processScriptTypePattern)!=null&&M.test(zi.type))Ui=(z=zi.textContent)!=null?z:"";else if((X=t.processMathJSONScriptTypePattern)!=null&&X.test(zi.type))try{Ui=(Ke=t.serializeToLatex)==null?void 0:Ke.call(t,JSON.parse((ue=zi.textContent)!=null?ue:""))}catch(io){console.error(io)}if(Ui){let io="textstyle";for(const Wn of zi.type.split(";")){const[yA,ku]=Wn.toLowerCase().split("=");yA.trim()==="mode"&&(io=ku.trim()==="display"?"displaystyle":"textstyle")}const zo=pf(Ui,io,t,!0);zo&&zi.parentNode.replaceChild(zo,zi)}}else if(((Ft=(ft=t.processClassPattern)==null?void 0:ft.test(pn.className))!=null?Ft:!1)||!((Er=(Nt=t.skipTags)==null?void 0:Nt.includes(Si))!=null&&Er||(xr=(Fn=t.ignoreClassPattern)==null?void 0:Fn.test(pn.className))!=null&&xr))if(e.childNodes.length===1&&e.childNodes[0].nodeType===3){const Ui=e.textContent;e.textContent="";const io=pf(Ui!=null?Ui:"","displaystyle",t,!0);io&&e.append(io)}else Wh(pn,t)}}}var _g={skipTags:["math-field","noscript","style","textarea","pre","code","annotation","annotation-xml"],processScriptType:"math/tex",processMathJSONScriptType:"math/json",ignoreClass:"tex2jax_ignore",processClass:"tex2jax_process",renderAccessibleContent:"mathml",asciiMath:{delimiters:{inline:[["`","`"]]}},TeX:{processEnvironments:!0,delimiters:{inline:[["\\(","\\)"]],display:[["$$","$$"],["\\[","\\]"]]}}};function Fg(e,t){var r,n,i,s;try{const A=f(f({},_g),t);A.ignoreClassPattern=new RegExp((r=A.ignoreClass)!=null?r:""),A.processClassPattern=new RegExp((n=A.processClass)!=null?n:""),A.processScriptTypePattern=new RegExp((i=A.processScriptType)!=null?i:""),A.processMathJSONScriptTypePattern=new RegExp((s=A.processMathJSONScriptType)!=null?s:""),vA(),lc("core"),Wh(e,A)}catch(A){A instanceof Error?console.error("renderMathInElement(): "+A.message):console.error("renderMathInElement(): Could not render math for element",e)}}function Ig(e,t){const r=fd.singleton;return r?(r.show(),Dd(),r.currentLayer=t,r.render(),r.focus(),!0):!1}function Mg(){const e=window.mathVirtualKeyboard;return e.visible?e.hide({animate:!0}):e.show({animate:!0}),!1}_l({switchKeyboardLayer:Ig,toggleVirtualKeyboard:Mg,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function md(){var e,t;return(t=globalThis[e=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[e]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function Og(){return console.warn("%cMathLive 0.98.5: %cmakeSharedVirtualKeyboard() is deprecated. \n Use `window.mathVirtualKeyboard` to access the virtual keyboard instance.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),window.mathVirtualKeyboard}function Tg(e){kg(document.body,e)}function Lg(e){if(typeof e=="string"){const t=document.getElementById(e);if(t===null)throw new Error(`The element with ID "${e}" could not be found.`);return t}return typeof e=="string"?null:e}function kg(e,t){var r,n,i,s;const A=Lg(e);if(!A)return;const M=t!=null?t:{};(r=M.renderToMarkup)!=null||(M.renderToMarkup=Fl),(n=M.renderToMathML)!=null||(M.renderToMathML=zm),(i=M.renderToSpeakableText)!=null||(M.renderToSpeakableText=$m),(s=M.serializeToLatex)!=null||(M.serializeToLatex=Zm),Fg(A,M)}var Ug={mathlive:"0.98.5"}}}]);
}());