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.2 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 Sv=Object.defineProperty;var D1=Object.getOwnPropertySymbols;var Ev=Object.prototype.hasOwnProperty,_v=Object.prototype.propertyIsEnumerable;var wh=Math.pow,v1=(dn,Ut,C)=>Ut in dn?Sv(dn,Ut,{enumerable:!0,configurable:!0,writable:!0,value:C}):dn[Ut]=C,b1=(dn,Ut)=>{for(var C in Ut||(Ut={}))Ev.call(Ut,C)&&v1(dn,C,Ut[C]);if(D1)for(var C of D1(Ut))_v.call(Ut,C)&&v1(dn,C,Ut[C]);return dn};var zs=(dn,Ut,C)=>v1(dn,typeof Ut!="symbol"?Ut+"":Ut,C);var hp=(dn,Ut,C)=>new Promise((pe,Ae)=>{var P=W=>{try{te(C.next(W))}catch(S){Ae(S)}},Ne=W=>{try{te(C.throw(W))}catch(S){Ae(S)}},te=W=>W.done?pe(W.value):Promise.resolve(W.value).then(P,Ne);te((C=C.apply(dn,Ut)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[3247],{89489:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return g}});var pe=C(54476),Ae=C(59301),P={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"},Ne=P,te=C(7657),W=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(W),g=S},59477:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return g}});var pe=C(54476),Ae=C(59301),P={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"},Ne=P,te=C(7657),W=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(W),g=S},40001:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return g}});var pe=C(54476),Ae=C(59301),P={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"},Ne=P,te=C(7657),W=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(W),g=S},49198:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return g}});var pe=C(54476),Ae=C(59301),P={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"},Ne=P,te=C(7657),W=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(W),g=S},84105:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return g}});var pe=C(54476),Ae=C(59301),P={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"},Ne=P,te=C(7657),W=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(W),g=S},18785:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return g}});var pe=C(54476),Ae=C(59301),P={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"},Ne=P,te=C(7657),W=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(W),g=S},73331:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return g}});var pe=C(54476),Ae=C(59301),P={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"},Ne=P,te=C(7657),W=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(W),g=S},15277:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return g}});var pe=C(54476),Ae=C(59301),P={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"},Ne=P,te=C(7657),W=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(W),g=S},52671:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return g}});var pe=C(54476),Ae=C(59301),P={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"},Ne=P,te=C(7657),W=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(W),g=S},8657:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return g}});var pe=C(54476),Ae=C(59301),P={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"},Ne=P,te=C(7657),W=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(W),g=S},56082:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return g}});var pe=C(54476),Ae=C(59301),P={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"},Ne=P,te=C(7657),W=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(W),g=S},33853:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return g}});var pe=C(54476),Ae=C(59301),P={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"},Ne=P,te=C(7657),W=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(W),g=S},15075:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return g}});var pe=C(54476),Ae=C(59301),P={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"},Ne=P,te=C(7657),W=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(W),g=S},62772:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return g}});var pe=C(54476),Ae=C(59301),P={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"},Ne=P,te=C(7657),W=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(W),g=S},43531:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return g}});var pe=C(54476),Ae=C(59301),P={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"},Ne=P,te=C(7657),W=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(W),g=S},38819:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return g}});var pe=C(54476),Ae=C(59301),P={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"},Ne=P,te=C(7657),W=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(W),g=S},47472:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return g}});var pe=C(54476),Ae=C(59301),P={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"},Ne=P,te=C(7657),W=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(W),g=S},87395:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return g}});var pe=C(54476),Ae=C(59301),P={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"},Ne=P,te=C(7657),W=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(W),g=S},96408:function(dn,Ut){"use strict";Ut.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},70414:function(dn,Ut,C){"use strict";var pe=C(59301),Ae=Object.defineProperty,P=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,W=(F,v,$)=>v in F?Ae(F,v,{enumerable:!0,configurable:!0,writable:!0,value:$}):F[v]=$,S=(F,v)=>{for(var $ in v||(v={}))Ne.call(v,$)&&W(F,$,v[$]);if(P)for(var $ of P(v))te.call(v,$)&&W(F,$,v[$]);return F};const g=F=>React.createElement("svg",S({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},F),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"})));Ut.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},96935:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return O}});var pe=C(3113),Ae=C(59301),P=Object.defineProperty,Ne=Object.defineProperties,te=Object.getOwnPropertyDescriptors,W=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,F=(T,L,q)=>L in T?P(T,L,{enumerable:!0,configurable:!0,writable:!0,value:q}):T[L]=q,v=(T,L)=>{for(var q in L||(L={}))S.call(L,q)&&F(T,q,L[q]);if(W)for(var q of W(L))g.call(L,q)&&F(T,q,L[q]);return T},$=(T,L)=>Ne(T,te(L)),_=(T,L)=>{var q={};for(var R in T)S.call(T,R)&&L.indexOf(R)<0&&(q[R]=T[R]);if(T!=null&&W)for(var R of W(T))L.indexOf(R)<0&&g.call(T,R)&&(q[R]=T[R]);return q},M=(T,L,q)=>new Promise((R,se)=>{var ne=K=>{try{G(q.next(K))}catch(le){se(le)}},J=K=>{try{G(q.throw(K))}catch(le){se(le)}},G=K=>K.done?R(K.value):Promise.resolve(K.value).then(ne,J);G((q=q.apply(T,L)).next())});const O=T=>{var L=T,{children:q}=L,R=_(L,["children"]);const[se,ne]=(0,Ae.useState)(!1);return Ae.createElement(pe.ZP,$(v({},R),{loading:se,onClick:J=>M(void 0,null,function*(){try{ne(!0),yield R.onClick(J),ne(!1)}catch(G){console.error(G),ne(!1)}})}),q)}},27687:function(dn,Ut,C){"use strict";var pe=C(59301),Ae=C(96408),P=C(48136),Ne=C(99298),te=C(43418),W=C(59301);const S=(0,pe.forwardRef)(({callback:g,width:F,onChange:v,disabled:$,readOnly:_,type:M="",value:O="",style:T={}},L)=>{const q=(0,pe.useRef)(),R=(0,pe.useRef)(),[se,ne]=(0,pe.useState)(0),[J,G]=(0,pe.useState)(0),[K,le]=(0,pe.useState)(!1),me=()=>{var ee=document.createElement("div");ee.innerHTML=q.current.getValue();var de=ee.innerText;return g&&g(de),de};(0,pe.useImperativeHandle)(L,()=>({getData:me}));const Oe=ee=>{ee.preventDefault();const de=ee.clientX-se,D=ee.clientY-J;document.body.onmousemove=Ye=>{let ke=Ye.clientX-de,xe=Ye.clientY-D;const Te=document.getElementsByClassName("markdown-popup-form")[0],ve=window.innerWidth-Te.offsetWidth,De=window.innerHeight-Te.offsetHeight;ke=Math.max(0,Math.min(ke,ve)),xe=Math.max(0,Math.min(xe,De)),Ce(Ye.clientX,Ye.clientY,de,D)&&(ne(ke),G(xe))},document.body.onmouseup=function(){document.body.onmousemove=null}},Ce=(ee,de,D,Ye)=>{const ke=document.body.clientHeight,xe=document.body.clientWidth;return ee<20&&D>ee||ee>xe-20&&D<ee||de<20&&Ye>de||de>ke-20&&Ye<de?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,pe.useEffect)(()=>{K&&setTimeout(()=>{const ee=document.getElementsByClassName("markdown-popup-form")[0],de=window.innerWidth/2-ee.offsetWidth/2,D=window.innerHeight/2-ee.offsetHeight/2;ne(de),G(D)},0)},[K]);const Ue=()=>{$||_||le(!0)};return W.createElement("div",{style:T},W.createElement("div",{style:{width:F||"100%",position:"relative"},className:`${Ae.Z.mathFillWrap} ${$||_?"cursorDefault":""}`,onClick:()=>Ue()},W.createElement("math-field",{disabled:$,locale:"zh_cn",class:`${Ae.Z.mathField} ${M}`,readOnly:_,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:q,style:{width:"100%",fontSize:O?18:14},value:O||""})),W.createElement(te.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:se,top:J},title:W.createElement("div",{style:{cursor:"move"},onMouseDown:Oe},"\u8F93\u5165\u516C\u5F0F"),open:K,onOk:()=>{const ee=R.current.getData();q.current.setValue(ee),v(ee),le(!1)},onCancel:()=>{le(!1)},destroyOnClose:!0,className:"markdown-popup-form"},W.createElement(Ne.Z,{value:O,ref:R,onChange:v,showSaveButton:!1})))});Ut.Z=S},99298:function(dn,Ut,C){"use strict";var pe=C(59301),Ae=C(95237),P=C(43604),Ne=C(99313),te=C(3113),W=C(6339),S=C(96408),g=C(48136),F=C(59301);const v=(0,pe.forwardRef)(({callback:$,showSaveButton:_,value:M=""},O)=>{const T=(0,pe.useRef)(),L=[{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 "}]}]}],q=[{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}`}]}]}],R=J=>{T.current.setValue(T.current.getValue()+" "+J.value+" ")},se=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:F.createElement(Ae.Z,{className:S.Z.lists,gutter:[10,10]},L.map((J,G)=>F.createElement(P.Z,{flex:"110px",className:S.Z.item},F.createElement("div",null,F.createElement(W.Z,{value:`$$${J.value}$$`}),J.name),F.createElement("div",{className:S.Z.children},J.children.map((K,le)=>F.createElement("div",{key:le},F.createElement("h1",null,K.name),F.createElement(Ae.Z,{gutter:[10,10]},K.data.map((me,Oe)=>F.createElement(P.Z,{key:Oe,onClick:()=>R(me),className:S.Z.diamond},F.createElement(W.Z,{value:"`$$"+me.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:F.createElement(Ae.Z,{className:S.Z.lists,gutter:[10,10]},q.map((J,G)=>F.createElement(P.Z,{flex:"110px",className:S.Z.item},F.createElement("div",null,F.createElement(W.Z,{value:"`$$"+J.value+"$$`"}),J.name),F.createElement("div",{className:S.Z.children},J.children.map((K,le)=>F.createElement("div",{key:le},K.name&&F.createElement("h1",null,K.name),F.createElement(Ae.Z,{gutter:[10,10]},K.data.map((me,Oe)=>F.createElement(P.Z,{key:Oe,onClick:()=>R(me),className:S.Z.diamond},F.createElement(W.Z,{value:"`$$"+me.value+"$$`"}))))))))))}],ne=()=>{var J=document.createElement("div");J.innerHTML=T.current.getValue();var G=J.innerText;return $&&$(G),G};return(0,pe.useImperativeHandle)(O,()=>({getData:ne})),F.createElement("div",{className:S.Z.mathWrap},F.createElement(Ne.default,{defaultActiveKey:"1",items:se}),F.createElement("math-field",{locale:"zh_cn",className:S.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:T,style:{width:800,marginTop:30,fontSize:18}},M||""),_&&F.createElement("div",{className:S.Z.button},F.createElement(te.ZP,{size:"large",onClick:ne,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ut.Z=v},83028:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return g}});var pe=C(59301),Ae={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"},P=C(43418),Ne="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",te="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=(F,v,$)=>new Promise((_,M)=>{var O=q=>{try{L($.next(q))}catch(R){M(R)}},T=q=>{try{L($.throw(q))}catch(R){M(R)}},L=q=>q.done?_(q.value):Promise.resolve(q.value).then(O,T);L(($=$.apply(F,v)).next())}),g=({type:F,resdata:v,onok:$,oktext:_,okloading:M})=>{const[O,T]=(0,pe.useState)(!1),{can_copy_list:L,can_copy_num:q,challenge_type:R,course_data_list:se,no_copy_list:ne,no_copy_num:J,no_use_list:G,no_use_num:K,repeat_shixun_num:le,student_count:me,total_num:Oe,use_num:Ce}=v;let Ue=q>0||F==="exercise";(0,pe.useEffect)(()=>{(v==null?void 0:v.student_count)>0&&T(!0)},[v]),console.log("---11",M),(0,pe.useEffect)(()=>{M||T(!1)},[M]);const ee=()=>{if(F==="exercise"&&R===1)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:Ae.orangeColor},me),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",pe.createElement("span",{className:Ae.orangeColor},Ce),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe.createElement("span",{className:Ae.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(F==="exercise"&&R===2)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:Ae.orangeColor},me),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",pe.createElement("span",{className:Ae.orangeColor},Ce),"\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",pe.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(F==="shixun"&&R===1)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:Ae.orangeColor},me),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(F==="shixun"&&R===2)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:Ae.orangeColor},me),"\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",pe.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(F==="subject"&&R===1)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:Ae.orangeColor},me),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",pe.createElement("span",{className:Ae.orangeColor},Ce),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(F==="subject"&&R===2)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",pe.createElement("span",{className:Ae.orangeColor},me)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",pe.createElement("span",{className:Ae.orangeColor},Ce)," \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",pe.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(F==="exercisepush")return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:Ae.orangeColor},me),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",pe.createElement("span",{className:Ae.orangeColor},Ce),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",pe.createElement("span",{className:Ae.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(F==="shixunpush"&&R===1)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:Ae.orangeColor},me),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",pe.createElement("span",{className:Ae.orangeColor},Ce),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(F==="shixunpush"&&R===2)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:Ae.orangeColor},me),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",pe.createElement("span",{className:Ae.orangeColor},Ce),"\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",pe.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},de=()=>{if(F==="exercise"||F==="subject"||F==="exercisepush"||F==="shixunpush")return pe.createElement("div",{style:{marginTop:20}},J>0&&pe.createElement("div",null,pe.createElement("span",{className:Ae.flex},pe.createElement("img",{src:te,style:{width:14}}),pe.createElement("span",{className:Ae.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),pe.createElement("div",{className:Ae.statusbody},F==="exercise"&&pe.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe.createElement("span",{className:Ae.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"),(F==="subject"||F==="exercisepush")&&pe.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Ue&&pe.createElement("span",{className:Ae.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"),F==="shixunpush"&&pe.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Ue&&pe.createElement("span",{className:Ae.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"),pe.createElement("div",null,ne==null?void 0:ne.map((D,Ye)=>pe.createElement("a",{href:`/shixuns/${D.identifier}/challenges`,target:"_blank"},"\u300A",D==null?void 0:D.name,"\u300B",Ye+1!==J&&"\u3001"))))),q>0&&pe.createElement("div",{style:{marginTop:20}},pe.createElement("span",{className:Ae.flex},pe.createElement("img",{src:Ne,style:{width:14}}),pe.createElement("span",{className:Ae.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),pe.createElement("div",{className:Ae.statusbody},F==="exercise"&&pe.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"),(F==="subject"||F==="exercisepush")&&pe.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"),F==="shixunpush"&&pe.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"),pe.createElement("div",null,L==null?void 0:L.map((D,Ye)=>pe.createElement("a",{href:`/shixuns/${D.identifier}/challenges`,target:"_blank"},"\u300A",D==null?void 0:D.name,"\u300B",Ye+1!==q&&"\u3001"))))));if(F==="shixun")return pe.createElement("div",{style:{marginTop:20}},q>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 pe.createElement(P.default,{open:O,onCancel:()=>{T(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!Ue&&"none"}},zIndex:1003,confirmLoading:M,okText:Ue?_:"\u6211\u77E5\u9053\u4E86",onOk:()=>W(void 0,null,function*(){Ue?yield $([...L,...G]):T(!1)})},pe.createElement("div",{style:{maxHeight:600,overflow:"auto"}},ee(),de()))}},33276:function(dn,Ut,C){"use strict";var pe=C(59301),Ae=C(43418),P=C(1710);const Ne=({dataSource:te,visible:W,onClose:S=()=>{},onSuccess:g=()=>{},text:F,okText:v})=>{var $;return pe.createElement(Ae.default,{centered:!0,destroyOnClose:!0,open:!!W,title:"\u63D0\u793A",width:"600px",okText:v,cancelText:"\u53D6\u6D88",onCancel:S,onOk:g},W==="single"&&pe.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",pe.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},($=te==null?void 0:te[0])==null?void 0:$.total_score),"\u5206\uFF0C\u8BF7\u786E\u8BA4",F),W==="multiple"&&pe.createElement(pe.Fragment,null,pe.createElement("div",{className:"c-grey-333 mb10"},"\u4EE5\u4E0B\u8BD5\u5377\u603B\u5206\u5F02\u5E38\uFF0C\u8BF7\u786E\u8BA4",F),pe.createElement(P.default,{columns:[{title:"\u8BD5\u5377\u540D\u79F0",dataIndex:"name",ellipsis:!0},{title:"\u603B\u5206",width:90,dataIndex:"total_score"}],dataSource:te,scroll:(te==null?void 0:te.length)>7?{y:300}:{},pagination:!1})))};Ut.Z=Ne},48595:function(dn,Ut,C){"use strict";C.d(Ut,{B:function(){return F},F:function(){return g}});var pe=C(44164),Ae=C.n(pe),P=C(86129),Ne=C.n(P),te=(v,$,_)=>new Promise((M,O)=>{var T=R=>{try{q(_.next(R))}catch(se){O(se)}},L=R=>{try{q(_.throw(R))}catch(se){O(se)}},q=R=>R.done?M(R.value):Promise.resolve(R.value).then(T,L);q((_=_.apply(v,$)).next())});const W=()=>{document.body.scrollIntoView()},S=()=>{document.querySelectorAll("canvas").forEach(v=>{(!v.clientWidth||!v.clientHeight)&&v.remove()})},g=(v,$)=>te(void 0,null,function*(){W(),S();const _={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 M=Ae()();for(let T=0;T<v.length;T++)yield M.set(_).from(v[T]).toContainer().toCanvas().toPdf().get("pdf").then(L=>te(void 0,null,function*(){T<v.length-1&&(yield L.addPage())}));const O=new(Ne());O.file(`${$}.pdf`,M.output("blob"),{base64:!1}),O.generateAsync({type:"blob"}).then(function(T){const L=document.createElement("a");L.href=window.URL.createObjectURL(T),L.download=`${$}.zip`,document.body.appendChild(L);const q=new MouseEvent("click");L.dispatchEvent(q),document.body.removeChild(L)})}),F=(v,$)=>te(void 0,null,function*(){W(),S();const _={margin:[0,0],html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}};let M=Ae()();for(let O=0;O<v.length;O++)yield M.set(_).from(v[O]).toContainer().toCanvas().toPdf().get("pdf").then(T=>te(void 0,null,function*(){O<v.length-1&&(yield T.addPage())}));M.save(`${$}.pdf`)})},79778:function(dn,Ut,C){"use strict";C.r(Ut),C.d(Ut,{default:function(){return je}});var pe=C(59301),Ae=C(65582),P=C(92832),Ne=C(8591),te=C(1710),W=C(6848),S=C(95237),g=C(43604),F=C(5112),v=C(28103),$=C(71418),_=C(66104),M=C(3113),O=C(38854),T=C(43418),L={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"},q=C(74609),R=C(48595),se=C(29297),ne=C(2337),J=C(84454),G=C(65862),K=C(87513),le=C(6339),me=C(24334),Oe=C(40743),Ce=C(27687),Ue=C(96935),ee=C(38147),de=C(59301),D=Object.defineProperty,Ye=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Te=(qe,Et,kt)=>Et in qe?D(qe,Et,{enumerable:!0,configurable:!0,writable:!0,value:kt}):qe[Et]=kt,ve=(qe,Et)=>{for(var kt in Et||(Et={}))ke.call(Et,kt)&&Te(qe,kt,Et[kt]);if(Ye)for(var kt of Ye(Et))xe.call(Et,kt)&&Te(qe,kt,Et[kt]);return qe},De=(qe,Et,kt)=>new Promise((Ot,sr)=>{var rr=V=>{try{lr(kt.next(V))}catch(dt){sr(dt)}},br=V=>{try{lr(kt.throw(V))}catch(dt){sr(dt)}},lr=V=>V.done?Ot(V.value):Promise.resolve(V.value).then(rr,br);lr((kt=kt.apply(qe,Et)).next())});const{TextArea:he}=P.default,Se={0:"\u5355\u9009\u9898",1:"\u591A\u9009\u9898",2:"\u5224\u65AD\u9898",3:"\u586B\u7A7A\u9898",4:"\u7B80\u7B54\u9898"},Xe=["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"],et=({newExercisePaper:qe,isExportBlank:Et=!1,paperlibrary:kt,user:Ot,globalSetting:sr,loading:rr,dispatch:br})=>{var lr,V,dt,I,p,f,x,Y,Be,H,ie,Qe,ye;const be=(0,Ae.useIntl)(),ze=(0,Ae.useLocation)(),gt=(0,Ae.useParams)(),[fe]=(0,Ae.useSearchParams)(),[at,rt]=(0,pe.useState)(),Le=(0,pe.useRef)(),[Fe,ct]=(0,pe.useState)(),[Tt,Pt]=(0,pe.useState)(),[Yt,Fr]=(0,pe.useState)([]),[Lr,Or]=(0,pe.useState)(!1),[kr,yr]=(0,pe.useState)(""),[ur,Kr]=(0,pe.useState)(!1),[fn,Un]=(0,pe.useState)(!1),hn=fe.get("isIntelligentAssistant");(0,pe.useEffect)(()=>(br({type:"globalSetting/footerToggle",payload:!1}),()=>{br({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,pe.useEffect)(()=>{Le.current=gt==null?void 0:gt.id,rt(fe.get("defaultActiveKey")||"0"),xn(),Qi(),Dn()},[gt==null?void 0:gt.id]),(0,pe.useEffect)(()=>{var _e;if((_e=qe.exerciseExportHeadData)!=null&&_e.title){const Me=qe.exerciseExportHeadData;ct(ve({},Me||{}));const{table:Ie}=Me||{};let Nt,Mt;(Ie!=null&&Ie.total_singles_scores||Ie!=null&&Ie.total_doubles_scores||Ie!=null&&Ie.total_nulls_scores||Ie!=null&&Ie.total_judges_scores||Ie!=null&&Ie.total_pros_scores||Ie!=null&&Ie.total_shixuns_scores||Ie!=null&&Ie.total_mains_scores||Ie!=null&&Ie.total_combination_scores||Ie!=null&&Ie.total_bpros_scores)&&(Nt=Number(Ie==null?void 0:Ie.total_singles_scores)+Number(Ie==null?void 0:Ie.total_doubles_scores)+Number(Ie==null?void 0:Ie.total_nulls_scores)+Number(Ie==null?void 0:Ie.total_judges_scores)+Number(Ie==null?void 0:Ie.total_pros_scores)+Number(Ie==null?void 0:Ie.total_shixuns_scores)+Number(Ie==null?void 0:Ie.total_mains_scores)+Number(Ie==null?void 0:Ie.total_combination_scores)+Number(Ie==null?void 0:Ie.total_bpros_scores)),(Ie!=null&&Ie.singles_scores||Ie!=null&&Ie.doubles_scores||Ie!=null&&Ie.nulls_scores||Ie!=null&&Ie.judges_scores||Ie!=null&&Ie.pros_scores||Ie!=null&&Ie.bpros_scores||Ie!=null&&Ie.shixuns_scores||Ie!=null&&Ie.mains_scores||Ie!=null&&Ie.combination_scores)&&(Mt=Number(Ie==null?void 0:Ie.singles_scores)+Number(Ie==null?void 0:Ie.doubles_scores)+Number(Ie==null?void 0:Ie.nulls_scores)+Number(Ie==null?void 0:Ie.judges_scores)+Number(Ie==null?void 0:Ie.pros_scores)+Number(Ie==null?void 0:Ie.bpros_scores)+Number(Ie==null?void 0:Ie.shixuns_scores)+Number(Ie==null?void 0:Ie.mains_scores)+Number(Ie==null?void 0:Ie.combination_scores));const Sr=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:Ie==null?void 0:Ie.total_singles_scores,doubles_score:Ie==null?void 0:Ie.total_doubles_scores,nulls_score:Ie==null?void 0:Ie.total_nulls_scores,judges_score:Ie==null?void 0:Ie.total_judges_scores,pros_score:Ie==null?void 0:Ie.total_pros_scores,bpros_score:Ie==null?void 0:Ie.total_bpros_scores,shixuns_score:Ie==null?void 0:Ie.total_shixuns_scores,mains_score:Ie==null?void 0:Ie.total_mains_scores,combinations_score:Ie==null?void 0:Ie.total_combination_scores,total_score:Nt},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:Ie==null?void 0:Ie.singles_scores,doubles_score:Ie==null?void 0:Ie.doubles_scores,nulls_score:Ie==null?void 0:Ie.nulls_scores,judges_score:Ie==null?void 0:Ie.judges_scores,pros_score:Ie==null?void 0:Ie.pros_scores,bpros_score:Ie==null?void 0:Ie.bpros_scores,shixuns_score:Ie==null?void 0:Ie.shixuns_scores,mains_score:Ie==null?void 0:Ie.mains_scores,combinations_score:Ie==null?void 0:Ie.combination_scores,total_score:Mt},{key:"3",name:"\u8BC4\u5377\u4EBA"}],nr=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:Ie==null?void 0:Ie.total_singles_scores,doubles_score:Ie==null?void 0:Ie.total_doubles_scores,nulls_score:Ie==null?void 0:Ie.total_nulls_scores,judges_score:Ie==null?void 0:Ie.total_judges_scores,pros_score:Ie==null?void 0:Ie.total_pros_scores,bpros_score:Ie==null?void 0:Ie.total_bpros_scores,shixuns_score:Ie==null?void 0:Ie.total_shixuns_scores,mains_score:Ie==null?void 0:Ie.total_mains_scores,combinations_score:Ie==null?void 0:Ie.combination_scores,total_score:Nt},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}];Pt([...Et?nr:Sr])}},[qe.exerciseExportHeadData]);const Dn=()=>De(void 0,null,function*(){var _e;const Me=yield(0,se.cV)({id:gt.id});Me.status==0&&Fr(Me.data),yield Qi(),fe.get("exportPDF")&&((_e=kt.paperData)!=null&&_e.questionList)&&(Ne.ZP.info("\u6B63\u5728\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377pdf"),(0,R.F)(Zi.current.children,be.formatMessage({id:"paperlibrary.exportPaper",defaultMessage:"\u5BFC\u51FA\u8BD5\u5377"})))}),Qi=()=>De(void 0,null,function*(){const _e=yield(0,se.Dq)(gt.id);ct(_e||{});const{table:Me}=_e||{};let Ie,Nt;(Me!=null&&Me.total_singles_scores||Me!=null&&Me.total_doubles_scores||Me!=null&&Me.total_nulls_scores||Me!=null&&Me.total_judges_scores||Me!=null&&Me.total_pros_scores||Me!=null&&Me.total_shixuns_scores||Me!=null&&Me.total_mains_scores||Me!=null&&Me.total_combination_scores||Me!=null&&Me.total_bpros_scores)&&(Ie=Number(Me==null?void 0:Me.total_singles_scores)+Number(Me==null?void 0:Me.total_doubles_scores)+Number(Me==null?void 0:Me.total_nulls_scores)+Number(Me==null?void 0:Me.total_judges_scores)+Number(Me==null?void 0:Me.total_pros_scores)+Number(Me==null?void 0:Me.total_shixuns_scores)+Number(Me==null?void 0:Me.total_mains_scores)+Number(Me==null?void 0:Me.total_combination_scores)+Number(Me==null?void 0:Me.total_bpros_scores)),(Me!=null&&Me.singles_scores||Me!=null&&Me.doubles_scores||Me!=null&&Me.nulls_scores||Me!=null&&Me.judges_scores||Me!=null&&Me.pros_scores||Me!=null&&Me.bpros_scores||Me!=null&&Me.shixuns_scores||Me!=null&&Me.mains_scores||Me!=null&&Me.combinations_score)&&(Nt=Number(Me==null?void 0:Me.singles_scores)+Number(Me==null?void 0:Me.doubles_scores)+Number(Me==null?void 0:Me.nulls_scores)+Number(Me==null?void 0:Me.judges_scores)+Number(Me==null?void 0:Me.pros_scores)+Number(Me==null?void 0:Me.bpros_scores)+Number(Me==null?void 0:Me.shixuns_scores)+Number(Me==null?void 0:Me.mains_scores)+Number(Me==null?void 0:Me.combinations_score));const Mt=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:Me==null?void 0:Me.total_singles_scores,doubles_score:Me==null?void 0:Me.total_doubles_scores,nulls_score:Me==null?void 0:Me.total_nulls_scores,judges_score:Me==null?void 0:Me.total_judges_scores,pros_score:Me==null?void 0:Me.total_pros_scores,bpros_score:Me==null?void 0:Me.total_bpros_scores,shixuns_score:Me==null?void 0:Me.total_shixuns_scores,combinations_score:Me==null?void 0:Me.total_combination_scores,mains_score:Me==null?void 0:Me.total_mains_scores,total_score:Ie},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:Me==null?void 0:Me.singles_scores,doubles_score:Me==null?void 0:Me.doubles_scores,nulls_score:Me==null?void 0:Me.nulls_scores,judges_score:Me==null?void 0:Me.judges_scores,pros_score:Me==null?void 0:Me.pros_scores,bpros_score:Me==null?void 0:Me.bpros_scores,shixuns_score:Me==null?void 0:Me.shixuns_scores,mains_score:Me==null?void 0:Me.mains_scores,combinations_score:Me==null?void 0:Me.combination_scores,total_score:Nt},{key:"3",name:"\u8BC4\u5377\u4EBA"}];return Pt(Et?[{key:"1",name:"\u5E94\u5F97\u5206"},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}]:Mt),_e}),Pr=[{width:"9%",title:be.formatMessage({id:"paperlibrary.questionType",defaultMessage:"\u9898\u578B"}),align:"center",dataIndex:"name",render:_e=>de.createElement("a",null,_e)},{width:"9%",title:((lr=Yt.find(_e=>_e.value==ne.fw[0].nameType))==null?void 0:lr.name)||ne.fw[0].name,align:"center",dataIndex:"singles_score",render:_e=>de.createElement("a",null,_e==="0.0"?0:_e)},{width:"9%",title:((V=Yt.find(_e=>_e.value==ne.fw[1].nameType))==null?void 0:V.name)||ne.fw[1].name,align:"center",dataIndex:"doubles_score",render:_e=>de.createElement("a",null,_e==="0.0"?0:_e)},{width:"9%",title:((dt=Yt.find(_e=>_e.value==ne.fw[3].nameType))==null?void 0:dt.name)||ne.fw[3].name,align:"center",dataIndex:"nulls_score",render:_e=>de.createElement("a",null,_e==="0.0"?0:_e)},{width:"9%",title:((I=Yt.find(_e=>_e.value==ne.fw[2].nameType))==null?void 0:I.name)||ne.fw[2].name,align:"center",dataIndex:"judges_score",render:_e=>de.createElement("a",null,_e==="0.0"?0:_e)},{width:"9%",title:((p=Yt.find(_e=>_e.value==ne.fw[6].nameType))==null?void 0:p.name)||ne.fw[6].name,align:"center",dataIndex:"pros_score",render:_e=>de.createElement("a",null,_e==="0.0"?0:_e)},{width:"9%",title:((f=Yt.find(_e=>_e.value==ne.fw[5].nameType))==null?void 0:f.name)||ne.fw[5].name,align:"center",dataIndex:"shixuns_score",render:_e=>de.createElement("a",null,_e==="0.0"?0:_e)},{width:"9%",title:((x=Yt.find(_e=>_e.value==ne.fw[4].nameType))==null?void 0:x.name)||ne.fw[4].name,align:"center",dataIndex:"mains_score",render:_e=>de.createElement("a",null,_e==="0.0"?0:_e)},{width:"9%",title:((Y=Yt.find(_e=>_e.value==ne.fw[7].nameType))==null?void 0:Y.name)||ne.fw[7].name,align:"center",dataIndex:"combinations_score",render:_e=>de.createElement("a",null,_e==="0.0"?0:_e)},{width:"10%",title:((Be=Yt.find(_e=>_e.value==ne.fw[8].nameType))==null?void 0:Be.name)||ne.fw[8].name,align:"center",dataIndex:"bpros_score",render:_e=>de.createElement("a",null,_e==="0.0"?0:_e)},{width:"9%",title:be.formatMessage({id:"paperlibrary.totalScore",defaultMessage:"\u603B\u5206"}),align:"center",dataIndex:"total_score",render:_e=>de.createElement("a",null,_e==="0.0"?0:_e?parseFloat(_e).toFixed(1):"")}],xn=_e=>{br({type:"paperlibrary/getPaperData",payload:ve({id:Le.current},_e)})},Ei=(_e,Me)=>De(void 0,null,function*(){if(!_e.destination||!_e.source)return;const Ie=Me.questions[_e.source.index].id,Nt=_e.destination.index+1;(yield br({type:"paperlibrary/adjustPosition",payload:{id:Le.current,itemId:Ie,position:Nt}})).status!==-1&&xn()}),di=()=>{var _e,Me,Ie,Nt;br({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-SendToClass",params:{id:Le.current,data:{is_random:!1},dataSource:[{name:(Me=(_e=kt.paperData)==null?void 0:_e.exam)==null?void 0:Me.name,total_score:(Nt=(Ie=kt.paperData)==null?void 0:Ie.exam)==null?void 0:Nt.all_score}],type:"single"}}})},Zi=(0,pe.useRef)(),[_i,ji]=(0,pe.useState)(!0),qa=()=>De(void 0,null,function*(){ji(!1),yr(""),Or(!0)}),Ki=()=>De(void 0,null,function*(){ji(!0),yr(""),Or(!0)}),ti=()=>De(void 0,null,function*(){var _e;Kr(!0);const Me=yield(0,K.Mb)({categoryId:Le.current});Kr(!1),Me!=null&&Me.exercise_id&&(0,G.xg)(`/classrooms/coursesId/exercise/${Me.exercise_id}/${(_e=Ot.userInfo)==null?void 0:_e.login}/initate_answer`)}),gi=(_e,Me,Ie)=>{var Nt,Mt,Sr,nr,Dr,Hr,an,jr,Rr,en,wn,on,Nn,Kn,fi,On,Xn,Vt,Xt,er,fr;return de.createElement(de.Fragment,null,!Ie&&de.createElement("div",{style:{display:"flex"},className:L.programTitle},de.createElement("span",{style:{flexShrink:0},className:"font18"},Me+1,"."),de.createElement(le.Z,{style:{maxWidth:1100},value:_e.name||(_e==null?void 0:_e.shixun_name)}),de.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",(_e==null?void 0:_e.question_type)===7?`\u5171${_e==null?void 0:_e.sub_count}\u5C0F\u9898`:""," ",_e.score,"\u5206\uFF09")),(_e==null?void 0:_e.question_type)===8&&de.createElement(le.Z,{showProgramFill:!0,disabledFill:!0,value:me.Base64.decode(((Nt=_e==null?void 0:_e.program_attr)==null?void 0:Nt.code)||"")}),(_e==null?void 0:_e.question_type)===5&&de.createElement("div",null,(Mt=_e==null?void 0:_e.examination_bank_shixun_challenges)==null?void 0:Mt.map((Rt,Jt)=>de.createElement("div",null,de.createElement("div",{key:Jt,style:{background:"#F0F7FD",color:"#3061D0",fontSize:18,padding:10,marginBottom:10}},de.createElement("i",{className:"iconfont icon-renwuguanka1",style:{marginRight:5}}),"\u7B2C",Jt+1,"\u5173 ",de.createElement("span",{className:"ml10"},Rt.challenge_name))))),(_e==null?void 0:_e.question_type)===6&&de.createElement("div",null,de.createElement("div",{style:{fontWeight:600,marginTop:4}},"\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00\uFF1A",(nr=(Sr=_e==null?void 0:_e.program_attr)==null?void 0:Sr.languages)==null?void 0:nr.join("/")),((Hr=(Dr=kt==null?void 0:kt.paperData)==null?void 0:Dr.exam)==null?void 0:Hr.show_hack_sets)&&de.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},de.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},de.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),de.createElement(te.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(Rt,Jt,ar)=>ar+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(Rt,Jt,ar)=>de.createElement(W.Z,{title:de.createElement("pre",null,Rt)},de.createElement("div",{className:L.divname},Rt))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(Rt,Jt,ar)=>de.createElement(W.Z,{title:de.createElement("pre",null,Rt)}," ",de.createElement("div",{className:L.divname},Rt))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:(an=_e==null?void 0:_e.program_attr)==null?void 0:an.hack_sets})),((Rr=(jr=kt==null?void 0:kt.paperData)==null?void 0:jr.exam)==null?void 0:Rr.show_hack_description)&&de.createElement("div",null,de.createElement(le.Z,{className:L.content,value:((en=_e==null?void 0:_e.program_attr)==null?void 0:en.description)||"- -"}))),_e.question_type===Oe.c.Single&&de.createElement(de.Fragment,null,(wn=_e.choices)==null?void 0:wn.map(function(Rt,Jt){return de.createElement(S.Z,{key:Jt},de.createElement(g.Z,{flex:"1"},de.createElement("div",{style:{display:"flex"}},de.createElement("div",{style:{lineHeight:"24px",flexShrink:0}},Xe[Jt]),de.createElement(le.Z,{value:Rt.choice_text||""}))))})),_e.question_type===Oe.c.Multiple&&de.createElement(de.Fragment,null,(on=_e.choices)==null?void 0:on.map(function(Rt,Jt){return de.createElement(S.Z,{key:Jt},de.createElement(g.Z,{flex:"1"},de.createElement("div",{style:{display:"flex"}},de.createElement("div",{style:{lineHeight:"24px",flexShrink:0}},Xe[Jt]),de.createElement(le.Z,{value:Rt.choice_text||""}))))})),_e.question_type===Oe.c.Judge&&de.createElement("div",{className:L.flexRow},(Nn=_e.choices)==null?void 0:Nn.map(function(Rt,Jt){return de.createElement(S.Z,{key:Jt},de.createElement(g.Z,{flex:"25px"},de.createElement("div",{style:{width:25,overflow:"hidden"}},de.createElement(F.ZP,{disabled:!0,style:{width:25,marginLeft:Jt===1&&10}}))),de.createElement(g.Z,{flex:"1",style:{marginLeft:Jt===1&&10}},Rt.choice_text))})),_e.question_type===Oe.c.Combine&&de.createElement(de.Fragment,null,(Kn=_e.sub_questions)==null?void 0:Kn.map(function(Rt,Jt){return de.createElement("div",{style:{marginLeft:10}},de.createElement("div",{style:{display:"flex"},className:L.programTitle},de.createElement("span",{style:{flexShrink:0},className:"font18"},Me+1,".",Jt+1),de.createElement(le.Z,{value:Rt.name||(Rt==null?void 0:Rt.shixun_name)}),de.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Rt.score,"\u5206\uFF09")),gi(Rt,Jt,!0))})),_i&&de.createElement("div",{style:{marginTop:10}},(_e==null?void 0:_e.question_type)<3&&(_e==null?void 0:_e.standard_answer_show)&&de.createElement("span",{className:"font16 "},"\u6B63\u786E\u7B54\u6848\uFF1A",_e==null?void 0:_e.standard_answer_show),!!((fi=_e==null?void 0:_e.standard_answer)!=null&&fi.length)&&_i&&(_e==null?void 0:_e.question_type)===3&&de.createElement("div",null,(On=_e==null?void 0:_e.standard_answer)==null?void 0:On.map((Rt,Jt)=>de.createElement("div",null,de.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",Jt+1,"\uFF09:"),de.createElement("div",null,Rt.answer_text.map(function(ar,Nr){return de.createElement(g.Z,{span:24,key:Nr},(Rt==null?void 0:Rt.model)===1?de.createElement(he,{autoSize:!0,disabled:!0,value:ar}):de.createElement(Ce.Z,{value:ar,disabled:!0}))}))))),!!((Xn=_e==null?void 0:_e.standard_answer)!=null&&Xn.length)&&_i&&(_e==null?void 0:_e.question_type)===8&&de.createElement("div",null,(Vt=_e==null?void 0:_e.standard_answer)==null?void 0:Vt.map((Rt,Jt)=>de.createElement("div",null,de.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",Jt+1,"\uFF09:"),de.createElement("div",null,de.createElement(he,{autoSize:!0,disabled:!0,value:(Rt==null?void 0:Rt.answer_text)||""}))))),!!((Xt=_e==null?void 0:_e.answer_texts)!=null&&Xt.length)&&(_e==null?void 0:_e.question_type)===4&&de.createElement("div",null,de.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A"),de.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},de.createElement(le.Z,{value:(er=_e==null?void 0:_e.answer_texts)==null?void 0:er[0]}))),(_e==null?void 0:_e.question_type)===6&&de.createElement("div",null,de.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A",!(_e!=null&&_e.answer_text)&&"\u6682\u65E0"),(_e==null?void 0:_e.answer_text)&&de.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},de.createElement(le.Z,{value:_e==null?void 0:_e.answer_text}))),(_e==null?void 0:_e.question_type)<=4&&((_e==null?void 0:_e.standard_answer_show)||((fr=_e==null?void 0:_e.standard_answer)==null?void 0:fr.length)>0)&&de.createElement(S.Z,{style:{marginTop:14}},de.createElement("span",{className:"font16 "},"\u89E3\u6790\uFF1A"),de.createElement(le.Z,{className:L.renderHtml,value:(_e==null?void 0:_e.analysis)||"\u6682\u65E0\u89E3\u6790"}))),!Ie&&de.createElement(v.Z,null))},yi=(0,pe.useCallback)(()=>{var _e,Me;return de.createElement("div",null,de.createElement("div",{className:L.titleForExport},(Me=(_e=kt.paperData)==null?void 0:_e.exam)==null?void 0:Me.name),de.createElement("div",{style:{textAlign:"center",fontSize:"15px"}},"\u5171:\u3010",Fe==null?void 0:Fe.large_counts,"\u5927\u9898\u3011\u3010",Fe==null?void 0:Fe.total_count,"\u5C0F\u9898\u3011\u3010 \u6EE1\u5206",Fe==null?void 0:Fe.score,"\u5206\u3011 \u8003\u8BD5\u65F6\u95F4\uFF1A\u3010",(Fe==null?void 0:Fe.time)>-1?`${Fe==null?void 0:Fe.time}${be.formatMessage({id:"paperlibrary.minute",defaultMessage:"\u5206\u949F"})}`:"\u4E0D\u9650","\u3011"),!!(Fe!=null&&Fe.exercise_description)&&de.createElement("pre",{style:{fontSize:14,marginBottom:30,marginTop:20,textAlign:"left",color:"#3A3A3A"}},de.createElement("b",null,be.formatMessage({id:"paperlibrary.examInstructions",defaultMessage:"\u8BD5\u5377\u987B\u77E5"}),"\uFF1A"),Fe==null?void 0:Fe.exercise_description),de.createElement(te.default,{style:{margin:"20px auto"},className:L.table,columns:Pr,dataSource:[...Tt||[]],bordered:!0,pagination:!1}))},[kt.paperData]),$e=()=>De(void 0,null,function*(){const _e=yield(0,ee.ZP)("/api/intelligent_imports/save_recognize_papers.json",{method:"post",body:{examination_bank_id:gt==null?void 0:gt.id}});(_e==null?void 0:_e.status)===0&&Ae.history.replace("/paperlibrary")});return de.createElement("section",{className:L.bg},de.createElement($.Z,{spinning:rr["paperlibrary/getPaperData"]},de.createElement(S.Z,{className:"pt20",justify:"space-between"},de.createElement(_.Z,{separator:">"},de.createElement(_.Z.Item,{href:"/paperlibrary"},be.formatMessage({id:"paperlibrary.questionBank",defaultMessage:"\u8BD5\u5377\u5E93"})),de.createElement(_.Z.Item,{href:`/paperlibrary?defaultActiveKey=${at}`},at==="1"?be.formatMessage({id:"paperlibrary.publish",defaultMessage:"\u516C\u5F00"}):at==="2"?be.formatMessage({id:"paperlibrary.teamShare",defaultMessage:"\u56E2\u961F\u5171\u4EAB"}):be.formatMessage({id:"paperlibrary.myCreated",defaultMessage:"\u6211\u521B\u5EFA\u7684"})),de.createElement(_.Z.Item,null,"\u8BD5\u5377\u8BE6\u60C5")),de.createElement("div",{className:L.btnWrapper},!hn&&de.createElement(M.ZP,{onClick:di,className:L.btn,icon:de.createElement("i",{className:"iconfont icon-fasongtongzhi font14"})},be.formatMessage({id:"paperlibrary.sendToClassroom",defaultMessage:"\u53D1\u9001\u81F3\u8BFE\u5802"})),de.createElement(M.ZP,{onClick:()=>Ae.history.push(`/paperlibrary/add/${Le.current}?type=2${hn?"&isIntelligentAssistant=true":""}`),className:L.btn,icon:de.createElement("i",{className:"iconfont icon-bianji10 font14"})},"\u7F16\u8F91\u8BD5\u5377"),de.createElement(M.ZP,{loading:ur,onClick:ti,className:L.btn,icon:de.createElement("i",{className:"iconfont icon-monikaoshi2 font14"})},be.formatMessage({id:"paperlibrary.mockExam",defaultMessage:"\u6A21\u62DF\u8003\u8BD5"})),!hn&&de.createElement(O.Z,{menu:{items:[{key:"1",label:de.createElement("div",{onClick:Ki},be.formatMessage({id:"paperlibrary.exportBlankExamWithAnswers",defaultMessage:"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377+\u7B54\u6848"}))},{key:"2",label:de.createElement("div",{onClick:qa},be.formatMessage({id:"paperlibrary.exportBlankExam",defaultMessage:"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377"}))}]}},de.createElement(M.ZP,{type:"primary",icon:de.createElement("i",{className:"iconfont icon-daochu1 font14"})},"\u5BFC\u51FA")),hn&&de.createElement(Ue.Z,{onClick:$e,type:"primary",icon:de.createElement("i",{className:"iconfont icon-baocun1 font14"})},"\u4FDD\u5B58\u8BD5\u5377"))),de.createElement("div",{className:`${L.wrap} pt20 pb20`,ref:Zi,id:"paperDomRef"},!((ie=(H=kt.paperData)==null?void 0:H.questionList)!=null&&ie.length)&&yi(),(ye=(Qe=kt.paperData)==null?void 0:Qe.questionList)==null?void 0:ye.map((_e,Me)=>{var Ie;return de.createElement(de.Fragment,null,(Ie=_e.questions)==null?void 0:Ie.map((Nt,Mt)=>{const Sr=Math.floor(Mt/10);return Mt%10===0?de.createElement("div",{className:"abc",key:`group-${Sr}`},Me===0&&Mt===0&&yi(),Mt===0&&de.createElement("div",null,de.createElement("span",{className:"font16 c-light-primary"},_e.number,"\u3001",_e.name),de.createElement("span",{className:"c-grey-999"},"\uFF08\u5171",_e.questions_count,"\u9898\uFF0C",(_e==null?void 0:_e.question_type)===7?`\u5305\u542B${_e==null?void 0:_e.sub_count}\u5C0F\u9898\uFF1B`:"","\u5171",_e.questions_score,"\u5206\uFF09")),_e.questions.slice(Mt,Mt+10).map((nr,Dr)=>de.createElement("div",{key:nr.id},gi(nr,Mt+Dr)))):null}))}))),de.createElement(q.Z,null),de.createElement(T.default,{width:450,title:"\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u683C\u5F0F",open:Lr,onCancel:()=>{if(fn){Ne.ZP.info("\u5BFC\u51FA\u4E2D\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3");return}Or(!1)},okButtonProps:{loading:fn},onOk:()=>De(void 0,null,function*(){var _e,Me;if(Un(!0),kr==""){Un(!1),Ne.ZP.info("\u8BF7\u9009\u62E9\u4E00\u79CD\u5BFC\u51FA\u683C\u5F0F");return}else kr=="pdf"?yield(0,R.F)(Zi.current.children,(Me=(_e=kt.paperData)==null?void 0:_e.exam)==null?void 0:Me.name):kr=="word"&&(0,J.ON)({id:Le.current,middle_export:1,export_type:_i?1:0});Un(!1),Or(!1)})},de.createElement("div",{className:L.export_type_modal},de.createElement("div",{className:L.export_type_modal_con},de.createElement("div",{className:L.type_item},de.createElement("div",{className:`${L.img_warp} ${kr=="pdf"?L.img_warp_active:""}`,onClick:()=>yr("pdf")},de.createElement("img",{src:C(45614),width:70,height:70})),be.formatMessage({id:"paperlibrary.pdfFormat",defaultMessage:"pdf\u683C\u5F0F"})),de.createElement("div",{className:L.type_item},de.createElement("div",{className:`${L.img_warp} ${kr=="word"?L.img_warp_active:""}`,onClick:()=>yr("word")},de.createElement("img",{src:C(38347),width:70,height:70})),be.formatMessage({id:"paperlibrary.wordFormat",defaultMessage:"word\u683C\u5F0F"}))))))};var je=(0,Ae.connect)(({paperlibrary:qe,user:Et,loading:kt,globalSetting:Ot,newExercisePaper:sr})=>({paperlibrary:qe,user:Et,globalSetting:Ot,loading:kt.effects,newExercisePaper:sr}))(et)},74609:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return Se}});var pe=C(59301),Ae=C(65582),P=C(92832),Ne=C(8591),te=C(43418),W=C(5871),S=C(61621),g=C(1710),F=C(3113),v=C(70414),$=Object.defineProperty,_=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,T=(Xe,et,je)=>et in Xe?$(Xe,et,{enumerable:!0,configurable:!0,writable:!0,value:je}):Xe[et]=je,L=(Xe,et)=>{for(var je in et||(et={}))M.call(et,je)&&T(Xe,je,et[je]);if(_)for(var je of _(et))O.call(et,je)&&T(Xe,je,et[je]);return Xe};const q=Xe=>React.createElement("svg",L({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Xe),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 R="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"},ne=C(65862),J={sendToClass:"sendToClass___le_BX"},G="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==",K="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",me=({createState:Xe,refreshLoading:et,onRefresh:je=()=>{},onCreate:qe=()=>{}})=>pe.createElement("div",{className:J.sendToClass},Xe?pe.createElement(pe.Fragment,null,pe.createElement("img",{src:G,alt:"\u7A7A"}),pe.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"),pe.createElement(F.ZP,{onClick:qe,type:"primary",ghost:!0},"\u7ACB\u5373\u521B\u5EFA")):pe.createElement(pe.Fragment,null,pe.createElement("img",{src:K,alt:"\u7A7A"}),pe.createElement("div",null,"\u5DF2\u521B\u5EFA\u6559\u5B66\u8BFE\u5802\uFF1F\u8BF7\u5237\u65B0\u5217\u8868"),pe.createElement(F.ZP,{loading:et,onClick:je,type:"primary",ghost:!0},"\u7ACB\u5373\u5237\u65B0"))),Oe=C(60979),Ce=C(96935),Ue=C(89392),ee=C(83028),de=C(33276),D=C(59301),Ye=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Te=(Xe,et)=>{var je={};for(var qe in Xe)ke.call(Xe,qe)&&et.indexOf(qe)<0&&(je[qe]=Xe[qe]);if(Xe!=null&&Ye)for(var qe of Ye(Xe))et.indexOf(qe)<0&&xe.call(Xe,qe)&&(je[qe]=Xe[qe]);return je},ve=(Xe,et,je)=>new Promise((qe,Et)=>{var kt=rr=>{try{sr(je.next(rr))}catch(br){Et(br)}},Ot=rr=>{try{sr(je.throw(rr))}catch(br){Et(br)}},sr=rr=>rr.done?qe(rr.value):Promise.resolve(rr.value).then(kt,Ot);sr((je=je.apply(Xe,et)).next())});const De=P.default.Search,he=Xe=>{var et=Xe,{paperlibrary:je,globalSetting:qe,loading:Et,dispatch:kt}=et,Ot=Te(et,["paperlibrary","globalSetting","loading","dispatch"]),sr,rr,br,lr;const V=(0,Ae.useIntl)(),[dt,I]=(0,pe.useState)(""),[p,f]=(0,pe.useState)([]),[x,Y]=(0,pe.useState)([]),[Be,H]=(0,pe.useState)(!1),[ie,Qe]=(0,pe.useState)(!0),[ye,be]=(0,pe.useState)(!0),[ze,gt]=(0,pe.useState)(!0),[fe,at]=(0,pe.useState)(!1),[rt,Le]=(0,pe.useState)(!1),Fe=(br=(rr=(sr=je.actionTabs)==null?void 0:sr.params)==null?void 0:rr.data)==null?void 0:br.is_random,[ct,Tt]=(0,pe.useState)(!1),[Pt,Yt]=(0,pe.useState)({}),[Fr,Lr]=(0,pe.useState)(!1),[Or,kr]=(0,pe.useState)(!1),[yr,ur]=(0,pe.useState)([]);(0,pe.useEffect)(()=>{var xn;if(je.actionTabs.key==="Paperlibrary-SendToClass"){const{dataSource:Ei=[],type:di}=((xn=je.actionTabs)==null?void 0:xn.params)||{},Zi=Ei.filter(_i=>![100,120,150].includes(_i.total_score));Zi.length?(kr(di),ur(Zi)):Lr(!0)}},[(lr=je==null?void 0:je.actionTabs)==null?void 0:lr.key]),(0,pe.useEffect)(()=>{fn()},[]);const Kr=()=>{Y([]),I(""),fn(!0),Lr(!1),kr(!1),kt({type:"paperlibrary/setActionTabs",payload:{}})},fn=xn=>ve(void 0,null,function*(){be(!0);const Ei=yield kt({type:"paperlibrary/getCourseList",payload:{search:xn?"":dt}});Ei&&(f((Ei==null?void 0:Ei.courses)||[]),Qe(!0),at(!1)),be(!1),gt(!1)}),Un=xn=>{const Ei=parseInt(xn);return(0,Ue.isNaN)(Ei)?"":Ei},hn=()=>ve(void 0,null,function*(){var xn,Ei,di,Zi,_i,ji,qa;if(!x.length){Ne.ZP.info("\u60A8\u9700\u8981\u9009\u62E9\u8BFE\u5802\uFF0C\u624D\u80FD\u53D1\u9001"),H(!0);return}const Ki=yield kt({type:"paperlibrary/postExistCourse",payload:{course_id:Fe?x==null?void 0:x[0]:x,examination_bank_ids:((Ei=(xn=je.actionTabs)==null?void 0:xn.params)==null?void 0:Ei.examination_bank_ids)||((Zi=(di=je.actionTabs)==null?void 0:di.params)==null?void 0:Zi.id)}}),ti=()=>ve(void 0,null,function*(){var gi,yi,$e,_e,Me,Ie;Le(!0);let Nt=yield(0,Oe.Tr)({id:(yi=(gi=je.actionTabs)==null?void 0:gi.params)==null?void 0:yi.id,course_id:Fe?x==null?void 0:x[0]:x,type:(_e=($e=je.actionTabs)==null?void 0:$e.params)!=null&&_e.isBatch?"batch_examination_bank":"examination_bank",examination_bank_ids:(Ie=(Me=je.actionTabs)==null?void 0:Me.params)==null?void 0:Ie.examination_bank_ids});Le(!1),(Nt==null?void 0:Nt.student_count)===0?yield Dn([]):Yt(Nt),yield new Promise(Mt=>setTimeout(()=>Mt(),1e3))});if(Ki.status==0&&((_i=Ki.data)==null?void 0:_i.count)>0){te.default.confirm({icon:null,title:V.formatMessage({id:"paperlibrary.tip",defaultMessage:"\u63D0\u793A"}),centered:!0,width:596,content:D.createElement("div",{style:{userSelect:"none"}},"\u5F53\u524D\u6559\u5B66\u8BFE\u5802\u4E2D\u5DF2\u5B58\u5728\u8BD5\u5377",(qa=(ji=Ki.data)==null?void 0:ji.list)==null?void 0:qa.map((gi,yi)=>{var $e;return D.createElement(D.Fragment,null,D.createElement("span",{style:{color:"#FA6400"}},"\u300A",gi==null?void 0:gi.name,"\u300B"),yi!==(($e=Ki.data)==null?void 0:$e.count)-1&&D.createElement("span",null,"\u3001"))}),"\uFF0C\u8BF7\u786E\u5B9A\u662F\u5426\u9700\u8981\u91CD\u590D\u53D1\u9001\uFF1F"),onOk:()=>ve(void 0,null,function*(){yield ti()})}),yield new Promise(gi=>setTimeout(()=>gi(),1e3));return}yield ti()}),Dn=xn=>ve(void 0,null,function*(){var Ei,di,Zi,_i,ji,qa;if(!Fe){Tt(!0);const yi=yield kt({type:(di=(Ei=je.actionTabs)==null?void 0:Ei.params)!=null&&di.isBatch?"paperlibrary/postBatchSendToCourse":"paperlibrary/sendToClass",payload:{course_id:Fe?x==null?void 0:x[0]:x,id:(_i=(Zi=je.actionTabs)==null?void 0:Zi.params)==null?void 0:_i.id,examination_bank_ids:(qa=(ji=je.actionTabs)==null?void 0:ji.params)==null?void 0:qa.examination_bank_ids,shixuns_info:xn.map($e=>({shixun_id:$e.id,is_copy:$e.is_copy,is_use:$e.is_use,course_id:$e.course_id}))}});Tt(!1),yi&&yi.status===0&&(Lr(!1),kt({type:"paperlibrary/setActionTabs",payload:{}}),Y([]),te.default.confirm({title:V.formatMessage({id:"paperlibrary.tip",defaultMessage:"\u63D0\u793A"}),okText:"\u7ACB\u5373\u524D\u5F80",cancelText:"\u7A0D\u540E\u518D\u8BF4",width:480,centered:!0,closable:!0,onOk:()=>{window.location.href=`${yi.data[0].first_category_url}`},content:D.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")}),Ne.ZP.success("\u53D1\u9001\u6210\u529F"));return}Tt(!0),setTimeout(()=>{Tt(!1)},500);const Ki=p.find(yi=>yi.course_id===(x==null?void 0:x[0]));let ti=1,gi=te.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:D.createElement("div",{className:se.modalColumn},D.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},D.createElement("img",{style:{marginRight:5},src:v.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"),D.createElement("div",{style:{paddingLeft:18}},V.formatMessage({id:"paperlibrary.className",defaultMessage:"\u8BFE\u5802\u540D\u79F0"}),": ",Ki==null?void 0:Ki.course_name),D.createElement("div",{style:{paddingLeft:9},className:se.modalRow},D.createElement("sup",{className:se.sup},"*"),D.createElement("span",{style:{flexShrink:0}},"\u968F\u673A\u51FA\u5377\u6570\u91CF\uFF1A"),D.createElement(W.Z,{parser:Un,style:{width:120},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u6570\u91CF",min:1,defaultValue:ti,onChange:yi=>{ti=yi;const $e=document.getElementById("model_error");ti<1||ti>50?$e.style.display="block":$e.style.display="none"}})),D.createElement("div",{style:{display:"none",marginLeft:115},id:"model_error",className:"c-red"},"\u8BF7\u8F93\u51651-50\u4E4B\u95F4\u7684\u6574\u6570")),okText:V.formatMessage({id:"paperlibrary.confirm1",defaultMessage:"\u786E\u8BA4"}),cancelText:V.formatMessage({id:"paperlibrary.cancel",defaultMessage:"\u53D6\u6D88"}),onCancel:Kr,onOk:()=>ve(void 0,null,function*(){var yi,$e;if(ti<1||ti>50){const Me=document.getElementById("model_error");return Me.style.display="block",Promise.reject()}gi.update({cancelButtonProps:{disabled:!0}});const _e=yield kt({type:"paperlibrary/sendToClass",payload:{course_id:x==null?void 0:x[0],id:($e=(yi=je.actionTabs)==null?void 0:yi.params)==null?void 0:$e.id,num:ti,shixuns_info:xn.map(Me=>({shixun_id:Me.id,is_copy:Me.is_copy,is_use:Me.is_use}))}});gi.update({cancelButtonProps:{disabled:!1}}),_e&&_e.status===0&&(te.default.destroyAll(),te.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,title:V.formatMessage({id:"paperlibrary.tip",defaultMessage:"\u63D0\u793A"}),content:D.createElement("div",{className:se.modalColumn},D.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},D.createElement("img",{style:{marginRight:5},src:R}),"\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:()=>{Kr()},onOk:()=>{Kr(),setTimeout(()=>{var Me,Ie;const Nt=(Ie=(Me=_e==null?void 0:_e.first_category_url)==null?void 0:Me.split("/"))==null?void 0:Ie[2];(0,ne.xg)(`/classrooms/${Nt}/exercise`)},1e3)}}))})})}),Qi=()=>ve(void 0,null,function*(){at(!0),yield fn()}),Pr=[{title:V.formatMessage({id:"paperlibrary.className",defaultMessage:"\u8BFE\u5802\u540D\u79F0"}),dataIndex:"course_name",ellipsis:!0},{title:V.formatMessage({id:"paperlibrary.groupCount",defaultMessage:"\u5206\u73ED\u6570\u91CF"}),dataIndex:"course_group_count",width:90,ellipsis:!0},{title:V.formatMessage({id:"paperlibrary.studentCount",defaultMessage:"\u5B66\u5458\u4EBA\u6570"}),dataIndex:"course_member_count",width:90,ellipsis:!0}];return D.createElement("div",null,D.createElement(te.default,{centered:!0,keyboard:!1,closable:!1,open:Fr,title:V.formatMessage({id:"paperlibrary.sendToClassroom",defaultMessage:"\u53D1\u9001\u81F3\u8BFE\u5802"}),maskClosable:!1,okText:V.formatMessage({id:"paperlibrary.confirm",defaultMessage:"\u786E\u5B9A"}),cancelText:V.formatMessage({id:"paperlibrary.cancel",defaultMessage:"\u53D6\u6D88"}),confirmLoading:Et["paperlibrary/sendToClass"]||rt||!!Et["paperlibrary/postExistCourse"],width:752,footer:!1,onOk:hn,destroyOnClose:!0,onCancel:Kr},D.createElement("div",{className:se.wrap},D.createElement("div",{className:"mb10"},D.createElement(De,{placeholder:V.formatMessage({id:"paperlibrary.searchByClassName",defaultMessage:"\u8F93\u51FA\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u641C\u7D22"}),value:dt,className:se.search,onChange:xn=>{I(xn.target.value),xn.target.value||fn(!0)},onSearch:xn=>{I(xn),fn(),Y([])}})),D.createElement(S.Z,{loading:ze},p.length?D.createElement("div",{className:se.radioWrap},D.createElement(g.default,{bordered:!1,scroll:(p==null?void 0:p.length)<=7?{}:{y:350},loading:ye,rowKey:"course_id",pagination:!1,dataSource:p,columns:Pr,onRow:xn=>({onClick:Ei=>{if(Fe)Y([xn==null?void 0:xn.course_id]);else{if(!Fe&&!x.includes(xn.course_id)&&x.length>0)return;x!=null&&x.includes(xn==null?void 0:xn.course_id)?Y(x==null?void 0:x.filter(di=>di!==(xn==null?void 0:xn.course_id))):Y([...x,xn==null?void 0:xn.course_id])}}}),rowSelection:{type:"radio",hideSelectAll:!0,selectedRowKeys:x,onChange:xn=>{Y(xn),H(!1)}}})):!dt&&!ye&&D.createElement(me,{createState:ie,refreshLoading:fe,onRefresh:Qi,onCreate:()=>{Qe(!1),(0,ne.xg)("/classrooms/new")}})),Be&&D.createElement("div",{className:se.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u8BFE\u5802"),D.createElement("div",{className:se.bottom,style:{display:"flex",alignItems:"center"}},D.createElement("div",{style:{flex:1}},D.createElement("div",{className:se.title},D.createElement("img",{src:v.Z,style:{objectFit:"contain"}}),V.formatMessage({id:"paperlibrary.selectedPaperSentToClass",defaultMessage:"\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"}))),D.createElement("div",null,D.createElement(F.ZP,{onClick:Kr,className:se.no,style:{marginRight:20}},V.formatMessage({id:"paperlibrary.cancel",defaultMessage:"\u53D6\u6D88"})),D.createElement(Ce.Z,{onClick:hn,className:se.yes},V.formatMessage({id:"paperlibrary.confirm1",defaultMessage:"\u786E\u8BA4"})))))),D.createElement(ee.Z,{resdata:Pt,type:"exercise",okloading:ct,oktext:(Pt==null?void 0:Pt.can_copy_num)===0?V.formatMessage({id:"paperlibrary.confirm",defaultMessage:"\u786E\u5B9A"}):"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:xn=>{Dn(xn)}}),D.createElement(de.Z,{text:"\u662F\u5426\u7EE7\u7EED\u53D1\u9001\u5230\u6559\u5B66\u8BFE\u5802\u4E2D\uFF1F",okText:"\u786E\u8BA4\u53D1\u9001",visible:Or,dataSource:yr,onSuccess:()=>{kr(!1),Lr(!0)},onClose:Kr}))};var Se=(0,Ae.connect)(({paperlibrary:Xe,loading:et,globalSetting:je})=>({paperlibrary:Xe,globalSetting:je,loading:et.effects}))(he)},40743:function(dn,Ut,C){"use strict";C.d(Ut,{c:function(){return Ae}});var pe=(P=>(P.FirstPage="firstPage",P.PrevPage="prevPage",P.NextPage="nextPage",P))(pe||{}),Ae=(P=>(P[P.Single=0]="Single",P[P.Multiple=1]="Multiple",P[P.Judge=2]="Judge",P[P.Fill=3]="Fill",P[P.Subjective=4]="Subjective",P[P.Shixun=5]="Shixun",P[P.Program=6]="Program",P[P.Combine=7]="Combine",P))(Ae||{})},84454:function(dn,Ut,C){"use strict";C.d(Ut,{AD:function(){return Ye},BA:function(){return dt},D9:function(){return he},Hp:function(){return K},IM:function(){return Xe},Iy:function(){return le},KM:function(){return V},KU:function(){return Et},MJ:function(){return me},Ne:function(){return Se},ON:function(){return Ot},Uj:function(){return br},VY:function(){return qe},YO:function(){return rr},YX:function(){return sr},Zn:function(){return T},_g:function(){return ne},_k:function(){return ve},c6:function(){return de},cr:function(){return L},eV:function(){return D},fi:function(){return q},gh:function(){return Ue},hS:function(){return et},iA:function(){return R},j6:function(){return J},je:function(){return Te},jj:function(){return G},kS:function(){return kt},o6:function(){return ee},pO:function(){return lr},rQ:function(){return ke},sA:function(){return Ce},xm:function(){return De},xo:function(){return je},y8:function(){return xe},yd:function(){return se}});var pe=C(33270),Ae=C(65582),P=C(65862),Ne=C(8591),te=C(74128),W=Object.defineProperty,S=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable,v=(I,p,f)=>p in I?W(I,p,{enumerable:!0,configurable:!0,writable:!0,value:f}):I[p]=f,$=(I,p)=>{for(var f in p||(p={}))g.call(p,f)&&v(I,f,p[f]);if(S)for(var f of S(p))F.call(p,f)&&v(I,f,p[f]);return I},_=(I,p,f)=>new Promise((x,Y)=>{var Be=Qe=>{try{ie(f.next(Qe))}catch(ye){Y(ye)}},H=Qe=>{try{ie(f.throw(Qe))}catch(ye){Y(ye)}},ie=Qe=>Qe.done?x(Qe.value):Promise.resolve(Qe.value).then(Be,H);ie((f=f.apply(I,p)).next())});const M=()=>{(0,Ae.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},O=()=>{(0,Ae.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},T=I=>_(void 0,null,function*(){M(),(yield(0,pe.YR)($({},I))).status===0&&(yield(0,P.QH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${I.coursesId}/export_couser_info.json`,query:I}))),O()}),L=I=>_(void 0,null,function*(){const p=yield(0,pe.yS)($({},I));if(p.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/course_member_act_score`);else{if(p.status===-2)return p;p.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/course_member_act_score`))}}),q=I=>_(void 0,null,function*(){const p=yield(0,pe.W0)($({},I));if(p.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/course_total_score`);else{if(p.status===-4)return p;p.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/course_total_score`))}}),R=I=>_(void 0,null,function*(){const p=yield(0,pe.Nl)($({},I));if(p.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/course_total_exercise_and_other`);else{if(p.status===-4)return p;p.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/course_total_exercise_and_other`))}}),se=I=>_(void 0,null,function*(){const p=yield(0,pe.IU)($({},I));if(p.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/export_star_user`);else{if(p.status===-4)return p;p.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/export_star_user`))}}),ne=I=>_(void 0,null,function*(){const p=yield(0,pe.td)($({},I));if(p.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/course_total_exercise_and_other`);else{if(p.status===-2)return p;if(p.status===-3)(0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/course_total_exercise_and_other`);else if(p.status===-4)return p}}),J=I=>_(void 0,null,function*(){const p=yield(0,pe.QX)($({},I));if(p.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/course_total_homework`);else{if(p.status===-4)return p;p.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/course_total_homework`))}}),G=(I,p)=>_(void 0,null,function*(){const f=yield(0,pe.o_)($({},I));f.status===0?(Ne.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"),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/${p}`)):f.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/${p}`))}),K=(I,p)=>_(void 0,null,function*(){const f=yield(0,pe.ZL)($({},I));f.status===0?(Ne.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"),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/${p}`)):f.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/${p}`))}),le=(I,p)=>_(void 0,null,function*(){const f=yield(0,pe.aP)($({},I));f.status===0?(Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/${p}`)):f.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/${p}`))}),me=(I,p)=>_(void 0,null,function*(){const f=yield(0,pe.vV)($({},I));f.status===0?(Ne.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"),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/${p}`)):f.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/${p}`))}),Oe=I=>_(void 0,null,function*(){M(),(yield exportCourseWorkListAppendix($({},I))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${I.categoryId}/works_list.zip`,query:I}))),O()}),Ce=I=>_(void 0,null,function*(){M(),yield(0,P.QH)("",te.Z.API_SERVER+`/api/polls/${I.categoryId}/commit_result.xlsx`),O()}),Ue=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${I.coursesId}/attendances/export_xlsx_data.xlsx`,query:I}))}),ee=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${I.coursesId}/video_study_statics.xlsx`,query:I}))}),de=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${I.coursesId}/export_video_study.xlsx`,query:I}))}),D=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${I.coursesId}/export_course_students_info.xlsx`,query:I}))}),Ye=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/school_manages/students.xlsx",query:I}))}),ke=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/item_banks/export.xlsx",query:I}))}),xe=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:I}))}),Te=I=>_(void 0,null,function*(){const p=yield(0,pe.Uy)($({},I));p.status===0?(Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/exercise_score,export_exercise_users`)):p.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/exercise_score,export_exercise_users`))}),ve=I=>_(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/export_records/${I.id}.xlsx`,query:I}))}),De=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:I}))}),he=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${I==null?void 0:I.coursesId}/${I.menuKey}_statistic.xlsx?${I.checkedList.map(p=>`course_group_id[]=${p}`).join("&")}`,query:I}))}),Se=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/ec_years/${I==null?void 0:I.ec_year_id}/ec_training_objectives.xlsx`,query:I}))}),Xe=I=>_(void 0,null,function*(){yield(0,P.FH)(I==null?void 0:I.name,(0,P.NY)({url:te.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:I}))}),et=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/ec_years/${I==null?void 0:I.ec_year_id}/ec_courses.xlsx`,query:I}))}),je=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/ec_years/${I==null?void 0:I.ec_year_id}/ec_graduation_requirements.xlsx`,query:I}))}),qe=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:I}))}),Et=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/exercises/${I.categoryId}/rank_list.xlsx`,query:I}))}),kt=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:I}))}),Ot=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/examination_banks/${I.id}.json`,query:I}))}),sr=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/exercises/${I.categoryId}.json`,query:I}))}),rr=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/polls/${I==null?void 0:I.id}/commit_result.json`,query:I}))}),br=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/paths/get_task_pass.json",query:I}))}),lr=(I,p)=>_(void 0,null,function*(){yield(0,P.FH)(p||"",(0,P.NY)({url:te.Z.API_SERVER+`/api/exercises/${I==null?void 0:I.exercise_id}/consult_exercise.json`,query:I}))}),V=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/competitions/${I==null?void 0:I.identifier}/competition_commit_records/member_works.xlsx`,query:I}))}),dt=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${I==null?void 0:I.coursesId}/group_homeworks/import_group_template.xlsx`,query:I}))})},50371:function(dn,Ut){"use strict";function C(){const pe=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Ae=1;Ae<arguments.length;Ae++){const P=Ae<0||arguments.length<=Ae?void 0:arguments[Ae];P&&Object.keys(P).forEach(Ne=>{const te=P[Ne];te!==void 0&&(pe[Ne]=te)})}return pe}Ut.Z=C},13845:function(dn,Ut,C){"use strict";C.d(Ut,{F:function(){return pe},Z:function(){return Ae}});function pe(P){return P!=null&&P===P.window}function Ae(P,Ne){var te,W;if(typeof window=="undefined")return 0;const S=Ne?"scrollTop":"scrollLeft";let g=0;return pe(P)?g=P[Ne?"pageYOffset":"pageXOffset"]:P instanceof Document?g=P.documentElement[S]:(P instanceof HTMLElement||P)&&(g=P[S]),P&&!pe(P)&&typeof g!="number"&&(g=(W=((te=P.ownerDocument)!==null&&te!==void 0?te:P).documentElement)===null||W===void 0?void 0:W[S]),g}},56762:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return Ae}});var pe=C(59301);function Ae(){const[,P]=pe.useReducer(Ne=>Ne+1,0);return P}},68031:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return Ne}});var pe=C(16089);function Ae(te,W,S,g){const F=S-W;return te/=g/2,te<1?F/2*te*te*te+W:F/2*((te-=2)*te*te+2)+W}var P=C(13845);function Ne(te){let W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:S=()=>window,callback:g,duration:F=450}=W,v=S(),$=(0,P.Z)(v,!0),_=Date.now(),M=()=>{const T=Date.now()-_,L=Ae(T>F?F:T,$,te,F);(0,P.F)(v)?v.scrollTo(window.pageXOffset,L):v instanceof Document||v.constructor.name==="HTMLDocument"?v.documentElement.scrollTop=L:v.scrollTop=L,T<F?(0,pe.Z)(M):typeof g=="function"&&g()};(0,pe.Z)(M)}},19080:function(dn,Ut,C){"use strict";C.d(Ut,{F:function(){return te},Z:function(){return Ne}});var pe=C(92310),Ae=C.n(pe);const P=null;function Ne(W,S,g){return Ae()({[`${W}-status-success`]:S==="success",[`${W}-status-warning`]:S==="warning",[`${W}-status-error`]:S==="error",[`${W}-status-validating`]:S==="validating",[`${W}-has-feedback`]:g})}const te=(W,S)=>S||W},66104:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return Ye}});var pe=C(92310),Ae=C.n(pe),P=C(11592),Ne=C(26112),te=C(59301),W=C(92343),S=C(36355),g=C(84105),F=C(91857);const v=ke=>{let{children:xe}=ke;const{getPrefixCls:Te}=te.useContext(S.E_),ve=Te("breadcrumb");return te.createElement("li",{className:`${ve}-separator`,"aria-hidden":"true"},xe===""?xe:xe||"/")};v.__ANT_BREADCRUMB_SEPARATOR=!0;var $=v,_=function(ke,xe){var Te={};for(var ve in ke)Object.prototype.hasOwnProperty.call(ke,ve)&&xe.indexOf(ve)<0&&(Te[ve]=ke[ve]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,ve=Object.getOwnPropertySymbols(ke);De<ve.length;De++)xe.indexOf(ve[De])<0&&Object.prototype.propertyIsEnumerable.call(ke,ve[De])&&(Te[ve[De]]=ke[ve[De]]);return Te};function M(ke,xe){if(ke.title===void 0||ke.title===null)return null;const Te=Object.keys(xe).join("|");return typeof ke.title=="object"?ke.title:String(ke.title).replace(new RegExp(`:(${Te})`,"g"),(ve,De)=>xe[De]||ve)}function O(ke,xe,Te,ve){if(Te==null)return null;const{className:De,onClick:he}=xe,Se=_(xe,["className","onClick"]),Xe=Object.assign(Object.assign({},(0,Ne.Z)(Se,{data:!0,aria:!0})),{onClick:he});return ve!==void 0?te.createElement("a",Object.assign({},Xe,{className:Ae()(`${ke}-link`,De),href:ve}),Te):te.createElement("span",Object.assign({},Xe,{className:Ae()(`${ke}-link`,De)}),Te)}function T(ke,xe){return(ve,De,he,Se,Xe)=>{if(xe)return xe(ve,De,he,Se);const et=M(ve,De);return O(ke,ve,et,Xe)}}var L=function(ke,xe){var Te={};for(var ve in ke)Object.prototype.hasOwnProperty.call(ke,ve)&&xe.indexOf(ve)<0&&(Te[ve]=ke[ve]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,ve=Object.getOwnPropertySymbols(ke);De<ve.length;De++)xe.indexOf(ve[De])<0&&Object.prototype.propertyIsEnumerable.call(ke,ve[De])&&(Te[ve[De]]=ke[ve[De]]);return Te};const q=ke=>{const{prefixCls:xe,separator:Te="/",children:ve,menu:De,overlay:he,dropdownProps:Se,href:Xe}=ke,je=(qe=>{if(De||he){const Et=Object.assign({},Se);if(De){const kt=De||{},{items:Ot}=kt,sr=L(kt,["items"]);Et.menu=Object.assign(Object.assign({},sr),{items:Ot==null?void 0:Ot.map((rr,br)=>{var{key:lr,title:V,label:dt,path:I}=rr,p=L(rr,["key","title","label","path"]);let f=dt!=null?dt:V;return I&&(f=te.createElement("a",{href:`${Xe}${I}`},f)),Object.assign(Object.assign({},p),{key:lr!=null?lr:br,label:f})})})}else he&&(Et.overlay=he);return te.createElement(F.Z,Object.assign({placement:"bottom"},Et),te.createElement("span",{className:`${xe}-overlay-link`},qe,te.createElement(g.Z,null)))}return qe})(ve);return je!=null?te.createElement(te.Fragment,null,te.createElement("li",null,je),Te&&te.createElement($,null,Te)):null},R=ke=>{const{prefixCls:xe,children:Te,href:ve}=ke,De=L(ke,["prefixCls","children","href"]),{getPrefixCls:he}=te.useContext(S.E_),Se=he("breadcrumb",xe);return te.createElement(q,Object.assign({},De,{prefixCls:Se}),O(Se,De,Te,ve))};R.__ANT_BREADCRUMB_ITEM=!0;var se=R,ne=C(17313),J=C(83116),G=C(37613);const K=ke=>{const{componentCls:xe,iconCls:Te}=ke;return{[xe]:Object.assign(Object.assign({},(0,ne.Wf)(ke)),{color:ke.itemColor,fontSize:ke.fontSize,[Te]:{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,ne.Qy)(ke)),"li:last-child":{color:ke.lastItemColor},[`${xe}-separator`]:{marginInline:ke.separatorMargin,color:ke.separatorColor},[`${xe}-link`]:{[`
> ${Te} + span,
> ${Te} + a
`]:{marginInlineStart:ke.marginXXS}},[`${xe}-overlay-link`]:{borderRadius:ke.borderRadiusSM,height:ke.lineHeight*ke.fontSize,display:"inline-block",padding:`0 ${ke.paddingXXS}px`,marginInline:-ke.marginXXS,[`> ${Te}`]:{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,J.Z)("Breadcrumb",ke=>{const xe=(0,G.TS)(ke,{});return[K(xe)]},ke=>({itemColor:ke.colorTextDescription,lastItemColor:ke.colorText,iconFontSize:ke.fontSize,linkColor:ke.colorTextDescription,linkHoverColor:ke.colorText,separatorColor:ke.colorTextDescription,separatorMargin:ke.marginXS})),me=function(ke,xe){var Te={};for(var ve in ke)Object.prototype.hasOwnProperty.call(ke,ve)&&xe.indexOf(ve)<0&&(Te[ve]=ke[ve]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,ve=Object.getOwnPropertySymbols(ke);De<ve.length;De++)xe.indexOf(ve[De])<0&&Object.prototype.propertyIsEnumerable.call(ke,ve[De])&&(Te[ve[De]]=ke[ve[De]]);return Te};function Oe(ke){const{breadcrumbName:xe,children:Te}=ke,ve=me(ke,["breadcrumbName","children"]),De=Object.assign({title:xe},ve);return Te&&(De.menu={items:Te.map(he=>{var{breadcrumbName:Se}=he,Xe=me(he,["breadcrumbName"]);return Object.assign(Object.assign({},Xe),{title:Se})})}),De}function Ce(ke,xe){return(0,te.useMemo)(()=>ke||(xe?xe.map(Oe):null),[ke,xe])}var Ue=function(ke,xe){var Te={};for(var ve in ke)Object.prototype.hasOwnProperty.call(ke,ve)&&xe.indexOf(ve)<0&&(Te[ve]=ke[ve]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,ve=Object.getOwnPropertySymbols(ke);De<ve.length;De++)xe.indexOf(ve[De])<0&&Object.prototype.propertyIsEnumerable.call(ke,ve[De])&&(Te[ve[De]]=ke[ve[De]]);return Te};const ee=(ke,xe)=>{if(xe===void 0)return xe;let Te=(xe||"").replace(/^\//,"");return Object.keys(ke).forEach(ve=>{Te=Te.replace(`:${ve}`,ke[ve])}),Te},de=ke=>{const{prefixCls:xe,separator:Te="/",style:ve,className:De,rootClassName:he,routes:Se,items:Xe,children:et,itemRender:je,params:qe={}}=ke,Et=Ue(ke,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:kt,direction:Ot,breadcrumb:sr}=te.useContext(S.E_);let rr;const br=kt("breadcrumb",xe),[lr,V]=le(br),dt=Ce(Xe,Se),I=T(br,je);if(dt&&dt.length>0){const x=[],Y=Xe||Se;rr=dt.map((Be,H)=>{const{path:ie,key:Qe,type:ye,menu:be,overlay:ze,onClick:gt,className:fe,separator:at,dropdownProps:rt}=Be,Le=ee(qe,ie);Le!==void 0&&x.push(Le);const Fe=Qe!=null?Qe:H;if(ye==="separator")return te.createElement($,{key:Fe},at);const ct={},Tt=H===dt.length-1;be?ct.menu=be:ze&&(ct.overlay=ze);let{href:Pt}=Be;return x.length&&Le!==void 0&&(Pt=`#/${x.join("/")}`),te.createElement(q,Object.assign({key:Fe},ct,(0,Ne.Z)(Be,{data:!0,aria:!0}),{className:fe,dropdownProps:rt,href:Pt,separator:Tt?"":Te,onClick:gt,prefixCls:br}),I(Be,qe,Y,x,Pt))})}else if(et){const x=(0,P.Z)(et).length;rr=(0,P.Z)(et).map((Y,Be)=>{if(!Y)return Y;const H=Be===x-1;return(0,W.Tm)(Y,{separator:H?"":Te,key:Be})})}const p=Ae()(br,sr==null?void 0:sr.className,{[`${br}-rtl`]:Ot==="rtl"},De,he,V),f=Object.assign(Object.assign({},sr==null?void 0:sr.style),ve);return lr(te.createElement("nav",Object.assign({className:p,style:f},Et),te.createElement("ol",null,rr)))};de.Item=se,de.Separator=$;var D=de,Ye=D},24905:function(dn,Ut,C){"use strict";C.d(Ut,{default:function(){return le}});var pe=C(92310),Ae=C.n(pe),P=C(5630),Ne=C(59301),te=C(36355),W=C(1684),S=C(32441),F=Ne.createContext(null),v=C(98447),$=C(14088),_=C(4572),M=function(me,Oe){var Ce={};for(var Ue in me)Object.prototype.hasOwnProperty.call(me,Ue)&&Oe.indexOf(Ue)<0&&(Ce[Ue]=me[Ue]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,Ue=Object.getOwnPropertySymbols(me);ee<Ue.length;ee++)Oe.indexOf(Ue[ee])<0&&Object.prototype.propertyIsEnumerable.call(me,Ue[ee])&&(Ce[Ue[ee]]=me[Ue[ee]]);return Ce};const O=(me,Oe)=>{var Ce;const{prefixCls:Ue,className:ee,rootClassName:de,children:D,indeterminate:Ye=!1,style:ke,onMouseEnter:xe,onMouseLeave:Te,skipGroup:ve=!1,disabled:De}=me,he=M(me,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Se,direction:Xe,checkbox:et}=Ne.useContext(te.E_),je=Ne.useContext(F),{isFormItemInput:qe}=Ne.useContext(S.aM),Et=Ne.useContext(W.Z),kt=(Ce=(je==null?void 0:je.disabled)||De)!==null&&Ce!==void 0?Ce:Et,Ot=Ne.useRef(he.value);Ne.useEffect(()=>{je==null||je.registerValue(he.value)},[]),Ne.useEffect(()=>{if(!ve)return he.value!==Ot.current&&(je==null||je.cancelValue(Ot.current),je==null||je.registerValue(he.value),Ot.current=he.value),()=>je==null?void 0:je.cancelValue(he.value)},[he.value]);const sr=Se("checkbox",Ue),[rr,br]=(0,v.ZP)(sr),lr=Object.assign({},he);je&&!ve&&(lr.onChange=function(){he.onChange&&he.onChange.apply(he,arguments),je.toggleOption&&je.toggleOption({label:D,value:he.value})},lr.name=je.name,lr.checked=je.value.includes(he.value));const V=Ae()(`${sr}-wrapper`,{[`${sr}-rtl`]:Xe==="rtl",[`${sr}-wrapper-checked`]:lr.checked,[`${sr}-wrapper-disabled`]:kt,[`${sr}-wrapper-in-form-item`]:qe},et==null?void 0:et.className,ee,de,br),dt=Ae()({[`${sr}-indeterminate`]:Ye},_.A,br),I=Ye?"mixed":void 0;return rr(Ne.createElement($.Z,{component:"Checkbox",disabled:kt},Ne.createElement("label",{className:V,style:Object.assign(Object.assign({},et==null?void 0:et.style),ke),onMouseEnter:xe,onMouseLeave:Te},Ne.createElement(P.Z,Object.assign({"aria-checked":I},lr,{prefixCls:sr,className:dt,disabled:kt,ref:Oe})),D!==void 0&&Ne.createElement("span",null,D))))};var L=Ne.forwardRef(O),q=C(94480),R=C(2738),se=function(me,Oe){var Ce={};for(var Ue in me)Object.prototype.hasOwnProperty.call(me,Ue)&&Oe.indexOf(Ue)<0&&(Ce[Ue]=me[Ue]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,Ue=Object.getOwnPropertySymbols(me);ee<Ue.length;ee++)Oe.indexOf(Ue[ee])<0&&Object.prototype.propertyIsEnumerable.call(me,Ue[ee])&&(Ce[Ue[ee]]=me[Ue[ee]]);return Ce};const ne=(me,Oe)=>{const{defaultValue:Ce,children:Ue,options:ee=[],prefixCls:de,className:D,rootClassName:Ye,style:ke,onChange:xe}=me,Te=se(me,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ve,direction:De}=Ne.useContext(te.E_),[he,Se]=Ne.useState(Te.value||Ce||[]),[Xe,et]=Ne.useState([]);Ne.useEffect(()=>{"value"in Te&&Se(Te.value||[])},[Te.value]);const je=Ne.useMemo(()=>ee.map(p=>typeof p=="string"||typeof p=="number"?{label:p,value:p}:p),[ee]),qe=p=>{et(f=>f.filter(x=>x!==p))},Et=p=>{et(f=>[].concat((0,q.Z)(f),[p]))},kt=p=>{const f=he.indexOf(p.value),x=(0,q.Z)(he);f===-1?x.push(p.value):x.splice(f,1),"value"in Te||Se(x),xe==null||xe(x.filter(Y=>Xe.includes(Y)).sort((Y,Be)=>{const H=je.findIndex(Qe=>Qe.value===Y),ie=je.findIndex(Qe=>Qe.value===Be);return H-ie}))},Ot=ve("checkbox",de),sr=`${Ot}-group`,[rr,br]=(0,v.ZP)(Ot),lr=(0,R.Z)(Te,["value","disabled"]),V=ee.length?je.map(p=>Ne.createElement(L,{prefixCls:Ot,key:p.value.toString(),disabled:"disabled"in p?p.disabled:Te.disabled,value:p.value,checked:he.includes(p.value),onChange:p.onChange,className:`${sr}-item`,style:p.style,title:p.title},p.label)):Ue,dt={toggleOption:kt,value:he,disabled:Te.disabled,name:Te.name,registerValue:Et,cancelValue:qe},I=Ae()(sr,{[`${sr}-rtl`]:De==="rtl"},D,Ye,br);return rr(Ne.createElement("div",Object.assign({className:I,style:ke},lr,{ref:Oe}),Ne.createElement(F.Provider,{value:dt},V)))},J=Ne.forwardRef(ne);var G=Ne.memo(J);const K=L;K.Group=G,K.__ANT_CHECKBOX=!0;var le=K},98447:function(dn,Ut,C){"use strict";C.d(Ut,{C2:function(){return te}});var pe=C(17313),Ae=C(37613),P=C(83116);const Ne=W=>{const{checkboxCls:S}=W,g=`${S}-wrapper`;return[{[`${S}-group`]:Object.assign(Object.assign({},(0,pe.Wf)(W)),{display:"inline-flex",flexWrap:"wrap",columnGap:W.marginXS,[`> ${W.antCls}-row`]:{flex:1}}),[g]:Object.assign(Object.assign({},(0,pe.Wf)(W)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${g}`]:{marginInlineStart:0},[`&${g}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[S]:Object.assign(Object.assign({},(0,pe.Wf)(W)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:W.borderRadiusSM,alignSelf:"center",[`${S}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${S}-inner`]:Object.assign({},(0,pe.oN)(W))},[`${S}-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}})},{[`
${g}:not(${g}-disabled),
${S}:not(${S}-disabled)
`]:{[`&:hover ${S}-inner`]:{borderColor:W.colorPrimary}},[`${g}:not(${g}-disabled)`]:{[`&:hover ${S}-checked:not(${S}-disabled) ${S}-inner`]:{backgroundColor:W.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${S}-checked:not(${S}-disabled):after`]:{borderColor:W.colorPrimaryHover}}},{[`${S}-checked`]:{[`${S}-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}`}}},[`
${g}-checked:not(${g}-disabled),
${S}-checked:not(${S}-disabled)
`]:{[`&:hover ${S}-inner`]:{backgroundColor:W.colorPrimaryHover,borderColor:"transparent"}}},{[S]:{"&-indeterminate":{[`${S}-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:'""'}}}}},{[`${g}-disabled`]:{cursor:"not-allowed"},[`${S}-disabled`]:{[`&, ${S}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${S}-inner`]:{background:W.colorBgContainerDisabled,borderColor:W.colorBorder,"&:after":{borderColor:W.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:W.colorTextDisabled},[`&${S}-indeterminate ${S}-inner::after`]:{background:W.colorTextDisabled}}}]};function te(W,S){const g=(0,Ae.TS)(S,{checkboxCls:`.${W}`,checkboxSize:S.controlInteractiveSize});return[Ne(g)]}Ut.ZP=(0,P.Z)("Checkbox",(W,S)=>{let{prefixCls:g}=S;return[te(g,W)]})},93891:function(dn,Ut,C){"use strict";var pe=C(59301),Ae=C(36355),P=C(64165);const Ne=te=>{const{componentName:W}=te,{getPrefixCls:S}=(0,pe.useContext)(Ae.E_),g=S("empty");switch(W){case"Table":case"List":return pe.createElement(P.Z,{image:P.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return pe.createElement(P.Z,{image:P.Z.PRESENTED_IMAGE_SIMPLE,className:`${g}-small`});default:return pe.createElement(P.Z,null)}};Ut.Z=Ne},28103:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return _}});var pe=C(92310),Ae=C.n(pe),P=C(59301),Ne=C(36355),te=C(17313),W=C(83116),S=C(37613);const g=M=>{const{componentCls:O,sizePaddingEdgeHorizontal:T,colorSplit:L,lineWidth:q,textPaddingInline:R,orientationMargin:se,verticalMarginInline:ne}=M;return{[O]:Object.assign(Object.assign({},(0,te.Wf)(M)),{borderBlockStart:`${q}px solid ${L}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:ne,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${q}px solid ${L}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${M.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${O}-with-text`]:{display:"flex",alignItems:"center",margin:`${M.dividerHorizontalWithTextGutterMargin}px 0`,color:M.colorTextHeading,fontWeight:500,fontSize:M.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${L}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${q}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${O}-with-text-left`]:{"&::before":{width:`${se*100}%`},"&::after":{width:`${100-se*100}%`}},[`&-horizontal${O}-with-text-right`]:{"&::before":{width:`${100-se*100}%`},"&::after":{width:`${se*100}%`}},[`${O}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:R},"&-dashed":{background:"none",borderColor:L,borderStyle:"dashed",borderWidth:`${q}px 0 0`},[`&-horizontal${O}-with-text${O}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${O}-dashed`]:{borderInlineStartWidth:q,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${O}-with-text`]:{color:M.colorText,fontWeight:"normal",fontSize:M.fontSize},[`&-horizontal${O}-with-text-left${O}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${O}-inner-text`]:{paddingInlineStart:T}},[`&-horizontal${O}-with-text-right${O}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${O}-inner-text`]:{paddingInlineEnd:T}}})}};var F=(0,W.Z)("Divider",M=>{const O=(0,S.TS)(M,{dividerHorizontalWithTextGutterMargin:M.margin,dividerHorizontalGutterMargin:M.marginLG,sizePaddingEdgeHorizontal:0});return[g(O)]},M=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:M.marginXS})),v=function(M,O){var T={};for(var L in M)Object.prototype.hasOwnProperty.call(M,L)&&O.indexOf(L)<0&&(T[L]=M[L]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,L=Object.getOwnPropertySymbols(M);q<L.length;q++)O.indexOf(L[q])<0&&Object.prototype.propertyIsEnumerable.call(M,L[q])&&(T[L[q]]=M[L[q]]);return T},_=M=>{const{getPrefixCls:O,direction:T,divider:L}=P.useContext(Ne.E_),{prefixCls:q,type:R="horizontal",orientation:se="center",orientationMargin:ne,className:J,rootClassName:G,children:K,dashed:le,plain:me,style:Oe}=M,Ce=v(M,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Ue=O("divider",q),[ee,de]=F(Ue),D=se.length>0?`-${se}`:se,Ye=!!K,ke=se==="left"&&ne!=null,xe=se==="right"&&ne!=null,Te=Ae()(Ue,L==null?void 0:L.className,de,`${Ue}-${R}`,{[`${Ue}-with-text`]:Ye,[`${Ue}-with-text${D}`]:Ye,[`${Ue}-dashed`]:!!le,[`${Ue}-plain`]:!!me,[`${Ue}-rtl`]:T==="rtl",[`${Ue}-no-default-orientation-margin-left`]:ke,[`${Ue}-no-default-orientation-margin-right`]:xe},J,G),ve=P.useMemo(()=>typeof ne=="number"?ne:/^\d+$/.test(ne)?Number(ne):ne,[ne]),De=Object.assign(Object.assign({},ke&&{marginLeft:ve}),xe&&{marginRight:ve});return ee(P.createElement("div",Object.assign({className:Te,style:Object.assign(Object.assign({},L==null?void 0:L.style),Oe)},Ce,{role:"separator"}),K&&R!=="vertical"&&P.createElement("span",{className:`${Ue}-inner-text`,style:De},K)))}},91857:function(dn,Ut,C){"use strict";var pe=C(59301),Ae=C(38819),P=C(92310),Ne=C.n(P),te=C(31561),W=C(70425),S=C(18929),g=C(2738),F=C(79676),v=C(53487),$=C(92343),_=C(36355),M=C(20834),O=C(40875),T=C(88088),L=C(47211);const q=null,R=G=>{const{menu:K,arrow:le,prefixCls:me,children:Oe,trigger:Ce,disabled:Ue,dropdownRender:ee,getPopupContainer:de,overlayClassName:D,rootClassName:Ye,open:ke,onOpenChange:xe,visible:Te,onVisibleChange:ve,mouseEnterDelay:De=.15,mouseLeaveDelay:he=.1,autoAdjustOverflow:Se=!0,placement:Xe="",overlay:et,transitionName:je}=G,{getPopupContainer:qe,getPrefixCls:Et,direction:kt}=pe.useContext(_.E_),Ot=pe.useMemo(()=>{const be=Et();return je!==void 0?je:Xe.includes("top")?`${be}-slide-down`:`${be}-slide-up`},[Et,Xe,je]),sr=pe.useMemo(()=>Xe?Xe.includes("Center")?Xe.slice(0,Xe.indexOf("Center")):Xe:kt==="rtl"?"bottomRight":"bottomLeft",[Xe,kt]),rr=Et("dropdown",me),[br,lr]=(0,L.Z)(rr),[,V]=(0,T.Z)(),dt=pe.Children.only(Oe),I=(0,$.Tm)(dt,{className:Ne()(`${rr}-trigger`,{[`${rr}-rtl`]:kt==="rtl"},dt.props.className),disabled:Ue}),p=Ue?[]:Ce;let f;p&&p.includes("contextMenu")&&(f=!0);const[x,Y]=(0,S.Z)(!1,{value:ke!=null?ke:Te}),Be=(0,W.useEvent)(be=>{xe==null||xe(be),ve==null||ve(be),Y(be)}),H=Ne()(D,Ye,lr,{[`${rr}-rtl`]:kt==="rtl"}),ie=(0,F.Z)({arrowPointAtCenter:typeof le=="object"&&le.pointAtCenter,autoAdjustOverflow:Se,offset:V.marginXXS,arrowWidth:le?V.sizePopupArrow:0,borderRadius:V.borderRadius}),Qe=pe.useCallback(()=>{Y(!1)},[]),ye=()=>{let be;return K!=null&&K.items?be=pe.createElement(M.default,Object.assign({},K)):typeof et=="function"?be=et():be=et,ee&&(be=ee(be)),be=pe.Children.only(typeof be=="string"?pe.createElement("span",null,be):be),pe.createElement(O.J,{prefixCls:`${rr}-menu`,expandIcon:pe.createElement("span",{className:`${rr}-menu-submenu-arrow`},pe.createElement(Ae.Z,{className:`${rr}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Qe,validator:ze=>{let{mode:gt}=ze}},be)};return br(pe.createElement(te.Z,Object.assign({alignPoint:f},(0,g.Z)(G,["rootClassName"]),{mouseEnterDelay:De,mouseLeaveDelay:he,visible:x,builtinPlacements:ie,arrow:!!le,overlayClassName:H,prefixCls:rr,getPopupContainer:de||qe,transitionName:Ot,trigger:p,overlay:ye,placement:sr,onVisibleChange:Be}),I))};function se(G){return Object.assign(Object.assign({},G),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ne=(0,v.Z)(R,"dropdown",G=>G,se),J=G=>pe.createElement(ne,Object.assign({},G),pe.createElement("span",null));R._InternalPanelDoNotUseOrYouWillBeFired=J,Ut.Z=R},38854:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return T}});var pe=C(91857),Ae=C(92310),P=C.n(Ae),Ne=C(59301),te=C(18785),W=C(3113),S=C(36355),g=C(81327),F=C(33234),v=C(47211),$=function(L,q){var R={};for(var se in L)Object.prototype.hasOwnProperty.call(L,se)&&q.indexOf(se)<0&&(R[se]=L[se]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,se=Object.getOwnPropertySymbols(L);ne<se.length;ne++)q.indexOf(se[ne])<0&&Object.prototype.propertyIsEnumerable.call(L,se[ne])&&(R[se[ne]]=L[se[ne]]);return R};const _=L=>{const{getPopupContainer:q,getPrefixCls:R,direction:se}=Ne.useContext(S.E_),{prefixCls:ne,type:J="default",danger:G,disabled:K,loading:le,onClick:me,htmlType:Oe,children:Ce,className:Ue,menu:ee,arrow:de,autoFocus:D,overlay:Ye,trigger:ke,align:xe,open:Te,onOpenChange:ve,placement:De,getPopupContainer:he,href:Se,icon:Xe=Ne.createElement(te.Z,null),title:et,buttonsRender:je=ye=>ye,mouseEnterDelay:qe,mouseLeaveDelay:Et,overlayClassName:kt,overlayStyle:Ot,destroyPopupOnHide:sr,dropdownRender:rr}=L,br=$(L,["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"]),lr=R("dropdown",ne),V=`${lr}-button`,[dt,I]=(0,v.Z)(lr),p={menu:ee,arrow:de,autoFocus:D,align:xe,disabled:K,trigger:K?[]:ke,onOpenChange:ve,getPopupContainer:he||q,mouseEnterDelay:qe,mouseLeaveDelay:Et,overlayClassName:kt,overlayStyle:Ot,destroyPopupOnHide:sr,dropdownRender:rr},{compactSize:f,compactItemClassnames:x}=(0,F.ri)(lr,se),Y=P()(V,x,Ue,I);"overlay"in L&&(p.overlay=Ye),"open"in L&&(p.open=Te),"placement"in L?p.placement=De:p.placement=se==="rtl"?"bottomLeft":"bottomRight";const Be=Ne.createElement(W.ZP,{type:J,danger:G,disabled:K,loading:le,onClick:me,htmlType:Oe,href:Se,title:et},Ce),H=Ne.createElement(W.ZP,{type:J,danger:G,icon:Xe}),[ie,Qe]=je([Be,H]);return dt(Ne.createElement(g.Z.Compact,Object.assign({className:Y,size:f,block:!0},br),ie,Ne.createElement(pe.Z,Object.assign({},p),Qe)))};_.__ANT_BUTTON=!0;var M=_;const O=pe.Z;O.Button=M;var T=O},47211:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return $}});var pe=C(17313),Ae=C(13826),P=C(92899),Ne=C(29878),te=C(19447),W=C(83116),S=C(37613),F=_=>{const{componentCls:M,menuCls:O,colorError:T,colorTextLightSolid:L}=_,q=`${O}-item`;return{[`${M}, ${M}-menu-submenu`]:{[`${O} ${q}`]:{[`&${q}-danger:not(${q}-disabled)`]:{color:T,"&:hover":{color:L,backgroundColor:T}}}}}};const v=_=>{const{componentCls:M,menuCls:O,zIndexPopup:T,dropdownArrowDistance:L,sizePopupArrow:q,antCls:R,iconCls:se,motionDurationMid:ne,dropdownPaddingVertical:J,fontSize:G,dropdownEdgeChildPadding:K,colorTextDisabled:le,fontSizeIcon:me,controlPaddingHorizontal:Oe,colorBgElevated:Ce}=_;return[{[M]:Object.assign(Object.assign({},(0,pe.Wf)(_)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:T,display:"block","&::before":{position:"absolute",insetBlock:-L+q/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${R}-btn`]:{[`& > ${se}-down, & > ${R}-btn-icon > ${se}-down`]:{fontSize:me}},[`${M}-wrap`]:{position:"relative",[`${R}-btn > ${se}-down`]:{fontSize:me},[`${se}-down::before`]:{transition:`transform ${ne}`}},[`${M}-wrap-open`]:{[`${se}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${R}-slide-down-enter${R}-slide-down-enter-active${M}-placement-bottomLeft,
&${R}-slide-down-appear${R}-slide-down-appear-active${M}-placement-bottomLeft,
&${R}-slide-down-enter${R}-slide-down-enter-active${M}-placement-bottom,
&${R}-slide-down-appear${R}-slide-down-appear-active${M}-placement-bottom,
&${R}-slide-down-enter${R}-slide-down-enter-active${M}-placement-bottomRight,
&${R}-slide-down-appear${R}-slide-down-appear-active${M}-placement-bottomRight`]:{animationName:Ae.fJ},[`&${R}-slide-up-enter${R}-slide-up-enter-active${M}-placement-topLeft,
&${R}-slide-up-appear${R}-slide-up-appear-active${M}-placement-topLeft,
&${R}-slide-up-enter${R}-slide-up-enter-active${M}-placement-top,
&${R}-slide-up-appear${R}-slide-up-appear-active${M}-placement-top,
&${R}-slide-up-enter${R}-slide-up-enter-active${M}-placement-topRight,
&${R}-slide-up-appear${R}-slide-up-appear-active${M}-placement-topRight`]:{animationName:Ae.Qt},[`&${R}-slide-down-leave${R}-slide-down-leave-active${M}-placement-bottomLeft,
&${R}-slide-down-leave${R}-slide-down-leave-active${M}-placement-bottom,
&${R}-slide-down-leave${R}-slide-down-leave-active${M}-placement-bottomRight`]:{animationName:Ae.Uw},[`&${R}-slide-up-leave${R}-slide-up-leave-active${M}-placement-topLeft,
&${R}-slide-up-leave${R}-slide-up-leave-active${M}-placement-top,
&${R}-slide-up-leave${R}-slide-up-leave-active${M}-placement-topRight`]:{animationName:Ae.ly}})},(0,te.ZP)(_,{colorBg:Ce,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${M} ${O}`]:{position:"relative",margin:0},[`${O}-submenu-popup`]:{position:"absolute",zIndex:T,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${M}, ${M}-menu-submenu`]:{[O]:Object.assign(Object.assign({padding:K,listStyleType:"none",backgroundColor:Ce,backgroundClip:"padding-box",borderRadius:_.borderRadiusLG,outline:"none",boxShadow:_.boxShadowSecondary},(0,pe.Qy)(_)),{[`${O}-item-group-title`]:{padding:`${J}px ${Oe}px`,color:_.colorTextDescription,transition:`all ${ne}`},[`${O}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${O}-item-icon`]:{minWidth:G,marginInlineEnd:_.marginXS,fontSize:_.fontSizeSM},[`${O}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ne}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${O}-item, ${O}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${J}px ${Oe}px`,color:_.colorText,fontWeight:"normal",fontSize:G,lineHeight:_.lineHeight,cursor:"pointer",transition:`all ${ne}`,borderRadius:_.borderRadiusSM,"&:hover, &-active":{backgroundColor:_.controlItemBgHover}},(0,pe.Qy)(_)),{"&-selected":{color:_.colorPrimary,backgroundColor:_.controlItemBgActive,"&:hover, &-active":{backgroundColor:_.controlItemBgActiveHover}},"&-disabled":{color:le,cursor:"not-allowed","&:hover":{color:le,backgroundColor:Ce,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${_.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:_.colorSplit},[`${M}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:_.paddingXS,[`${M}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:_.colorTextDescription,fontSize:me,fontStyle:"normal"}}}),[`${O}-item-group-list`]:{margin:`0 ${_.marginXS}px`,padding:0,listStyle:"none"},[`${O}-submenu-title`]:{paddingInlineEnd:Oe+_.fontSizeSM},[`${O}-submenu-vertical`]:{position:"relative"},[`${O}-submenu${O}-submenu-disabled ${M}-menu-submenu-title`]:{[`&, ${M}-menu-submenu-arrow-icon`]:{color:le,backgroundColor:Ce,cursor:"not-allowed"}},[`${O}-submenu-selected ${M}-menu-submenu-title`]:{color:_.colorPrimary}})}},[(0,Ae.oN)(_,"slide-up"),(0,Ae.oN)(_,"slide-down"),(0,P.Fm)(_,"move-up"),(0,P.Fm)(_,"move-down"),(0,Ne._y)(_,"zoom-big")]]};var $=(0,W.Z)("Dropdown",(_,M)=>{let{rootPrefixCls:O}=M;const{marginXXS:T,sizePopupArrow:L,controlHeight:q,fontSize:R,lineHeight:se,paddingXXS:ne,componentCls:J,borderRadiusLG:G}=_,K=(q-R*se)/2,{dropdownArrowOffset:le}=(0,te.fS)({contentRadius:G}),me=(0,S.TS)(_,{menuCls:`${J}-menu`,rootPrefixCls:O,dropdownArrowDistance:L/2+T,dropdownArrowOffset:le,dropdownPaddingVertical:K,dropdownEdgeChildPadding:ne});return[v(me),F(me)]},_=>({zIndexPopup:_.zIndexPopupBase+50}))},64165:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return ne}});var pe=C(92310),Ae=C.n(pe),P=C(59301),Ne=C(36355),te=C(9763),W=C(64993),S=C(88088),F=()=>{const[,J]=(0,S.Z)(),K=new W.C(J.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return P.createElement("svg",{style:K,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},P.createElement("g",{fill:"none",fillRule:"evenodd"},P.createElement("g",{transform:"translate(24 31.67)"},P.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),P.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"}),P.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)"}),P.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"}),P.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"})),P.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"}),P.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},P.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),P.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},$=()=>{const[,J]=(0,S.Z)(),{colorFill:G,colorFillTertiary:K,colorFillQuaternary:le,colorBgContainer:me}=J,{borderColor:Oe,shadowColor:Ce,contentColor:Ue}=(0,P.useMemo)(()=>({borderColor:new W.C(G).onBackground(me).toHexShortString(),shadowColor:new W.C(K).onBackground(me).toHexShortString(),contentColor:new W.C(le).onBackground(me).toHexShortString()}),[G,K,le,me]);return P.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},P.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},P.createElement("ellipse",{fill:Ce,cx:"32",cy:"33",rx:"32",ry:"7"}),P.createElement("g",{fillRule:"nonzero",stroke:Oe},P.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"}),P.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:Ue}))))},_=C(83116),M=C(37613);const O=J=>{const{componentCls:G,margin:K,marginXS:le,marginXL:me,fontSize:Oe,lineHeight:Ce}=J;return{[G]:{marginInline:le,fontSize:Oe,lineHeight:Ce,textAlign:"center",[`${G}-image`]:{height:J.emptyImgHeight,marginBottom:le,opacity:J.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${G}-description`]:{color:J.colorText},[`${G}-footer`]:{marginTop:K},"&-normal":{marginBlock:me,color:J.colorTextDisabled,[`${G}-description`]:{color:J.colorTextDisabled},[`${G}-image`]:{height:J.emptyImgHeightMD}},"&-small":{marginBlock:le,color:J.colorTextDisabled,[`${G}-image`]:{height:J.emptyImgHeightSM}}}}};var T=(0,_.Z)("Empty",J=>{const{componentCls:G,controlHeightLG:K}=J,le=(0,M.TS)(J,{emptyImgCls:`${G}-img`,emptyImgHeight:K*2.5,emptyImgHeightMD:K,emptyImgHeightSM:K*.875});return[O(le)]}),L=function(J,G){var K={};for(var le in J)Object.prototype.hasOwnProperty.call(J,le)&&G.indexOf(le)<0&&(K[le]=J[le]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,le=Object.getOwnPropertySymbols(J);me<le.length;me++)G.indexOf(le[me])<0&&Object.prototype.propertyIsEnumerable.call(J,le[me])&&(K[le[me]]=J[le[me]]);return K};const q=P.createElement(F,null),R=P.createElement($,null),se=J=>{var{className:G,rootClassName:K,prefixCls:le,image:me=q,description:Oe,children:Ce,imageStyle:Ue,style:ee}=J,de=L(J,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:D,direction:Ye,empty:ke}=P.useContext(Ne.E_),xe=D("empty",le),[Te,ve]=T(xe),[De]=(0,te.Z)("Empty"),he=typeof Oe!="undefined"?Oe:De==null?void 0:De.description,Se=typeof he=="string"?he:"empty";let Xe=null;return typeof me=="string"?Xe=P.createElement("img",{alt:Se,src:me}):Xe=me,Te(P.createElement("div",Object.assign({className:Ae()(ve,xe,ke==null?void 0:ke.className,{[`${xe}-normal`]:me===R,[`${xe}-rtl`]:Ye==="rtl"},G,K),style:Object.assign(Object.assign({},ke==null?void 0:ke.style),ee)},de),P.createElement("div",{className:`${xe}-image`,style:Ue},Xe),he&&P.createElement("div",{className:`${xe}-description`},he),Ce&&P.createElement("div",{className:`${xe}-footer`},Ce)))};se.PRESENTED_IMAGE_DEFAULT=q,se.PRESENTED_IMAGE_SIMPLE=R;var ne=se},8628:function(dn,Ut,C){"use strict";var pe=C(59301),Ae=C(34280),P=C(56762),Ne=C(69507);function te(){let W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const S=(0,pe.useRef)({}),g=(0,P.Z)(),F=(0,Ne.ZP)();return(0,Ae.Z)(()=>{const v=F.subscribe($=>{S.current=$,W&&g()});return()=>F.unsubscribe(v)},[]),S.current}Ut.Z=te},5871:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return rt}});var pe=C(84105),Ae=C(87395),P=C(92310),Ne=C.n(P),te=C(54476),W=C(20068),S=C(76190),g=C(42978),F=C(75931),v=C(67732),$=C(83652);function _(){return typeof BigInt=="function"}function M(Le){return!Le&&Le!==0&&!Number.isNaN(Le)||!String(Le).trim()}function O(Le){var Fe=Le.trim(),ct=Fe.startsWith("-");ct&&(Fe=Fe.slice(1)),Fe=Fe.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Fe.startsWith(".")&&(Fe="0".concat(Fe));var Tt=Fe||"0",Pt=Tt.split("."),Yt=Pt[0]||"0",Fr=Pt[1]||"0";Yt==="0"&&Fr==="0"&&(ct=!1);var Lr=ct?"-":"";return{negative:ct,negativeStr:Lr,trimStr:Tt,integerStr:Yt,decimalStr:Fr,fullStr:"".concat(Lr).concat(Tt)}}function T(Le){var Fe=String(Le);return!Number.isNaN(Number(Fe))&&Fe.includes("e")}function L(Le){var Fe=String(Le);if(T(Le)){var ct=Number(Fe.slice(Fe.indexOf("e-")+2)),Tt=Fe.match(/\.(\d+)/);return Tt!=null&&Tt[1]&&(ct+=Tt[1].length),ct}return Fe.includes(".")&&R(Fe)?Fe.length-Fe.indexOf(".")-1:0}function q(Le){var Fe=String(Le);if(T(Le)){if(Le>Number.MAX_SAFE_INTEGER)return String(_()?BigInt(Le).toString():Number.MAX_SAFE_INTEGER);if(Le<Number.MIN_SAFE_INTEGER)return String(_()?BigInt(Le).toString():Number.MIN_SAFE_INTEGER);Fe=Le.toFixed(L(Fe))}return O(Fe).fullStr}function R(Le){return typeof Le=="number"?!Number.isNaN(Le):Le?/^\s*-?\d+(\.\d+)?\s*$/.test(Le)||/^\s*-?\d+\.\s*$/.test(Le)||/^\s*-?\.\d+\s*$/.test(Le):!1}var se=function(){function Le(Fe){if((0,v.Z)(this,Le),(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),M(Fe)){this.empty=!0;return}if(this.origin=String(Fe),Fe==="-"||Number.isNaN(Fe)){this.nan=!0;return}var ct=Fe;if(T(ct)&&(ct=Number(ct)),ct=typeof ct=="string"?ct:q(ct),R(ct)){var Tt=O(ct);this.negative=Tt.negative;var Pt=Tt.trimStr.split(".");this.integer=BigInt(Pt[0]);var Yt=Pt[1]||"0";this.decimal=BigInt(Yt),this.decimalLen=Yt.length}else this.nan=!0}return(0,$.Z)(Le,[{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(ct){var Tt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(ct,"0"));return BigInt(Tt)}},{key:"negate",value:function(){var ct=new Le(this.toString());return ct.negative=!ct.negative,ct}},{key:"cal",value:function(ct,Tt,Pt){var Yt=Math.max(this.getDecimalStr().length,ct.getDecimalStr().length),Fr=this.alignDecimal(Yt),Lr=ct.alignDecimal(Yt),Or=Tt(Fr,Lr).toString(),kr=Pt(Yt),yr=O(Or),ur=yr.negativeStr,Kr=yr.trimStr,fn="".concat(ur).concat(Kr.padStart(kr+1,"0"));return new Le("".concat(fn.slice(0,-kr),".").concat(fn.slice(-kr)))}},{key:"add",value:function(ct){if(this.isInvalidate())return new Le(ct);var Tt=new Le(ct);return Tt.isInvalidate()?this:this.cal(Tt,function(Pt,Yt){return Pt+Yt},function(Pt){return Pt})}},{key:"multi",value:function(ct){var Tt=new Le(ct);return this.isInvalidate()||Tt.isInvalidate()?new Le(NaN):this.cal(Tt,function(Pt,Yt){return Pt*Yt},function(Pt){return Pt*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(ct){return this.toString()===(ct==null?void 0:ct.toString())}},{key:"lessEquals",value:function(ct){return this.add(ct.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return ct?this.isInvalidate()?"":O("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Le}(),ne=function(){function Le(Fe){if((0,v.Z)(this,Le),(0,W.Z)(this,"origin",""),(0,W.Z)(this,"number",void 0),(0,W.Z)(this,"empty",void 0),M(Fe)){this.empty=!0;return}this.origin=String(Fe),this.number=Number(Fe)}return(0,$.Z)(Le,[{key:"negate",value:function(){return new Le(-this.toNumber())}},{key:"add",value:function(ct){if(this.isInvalidate())return new Le(ct);var Tt=Number(ct);if(Number.isNaN(Tt))return this;var Pt=this.number+Tt;if(Pt>Number.MAX_SAFE_INTEGER)return new Le(Number.MAX_SAFE_INTEGER);if(Pt<Number.MIN_SAFE_INTEGER)return new Le(Number.MIN_SAFE_INTEGER);var Yt=Math.max(L(this.number),L(Tt));return new Le(Pt.toFixed(Yt))}},{key:"multi",value:function(ct){var Tt=Number(ct);if(this.isInvalidate()||Number.isNaN(Tt))return new Le(NaN);var Pt=this.number*Tt;if(Pt>Number.MAX_SAFE_INTEGER)return new Le(Number.MAX_SAFE_INTEGER);if(Pt<Number.MIN_SAFE_INTEGER)return new Le(Number.MIN_SAFE_INTEGER);var Yt=Math.max(L(this.number),L(Tt));return new Le(Pt.toFixed(Yt))}},{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(ct){return this.toNumber()===(ct==null?void 0:ct.toNumber())}},{key:"lessEquals",value:function(ct){return this.add(ct.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return ct?this.isInvalidate()?"":q(this.number):this.origin}}]),Le}();function J(Le){return _()?new se(Le):new ne(Le)}function G(Le,Fe,ct){var Tt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Le==="")return"";var Pt=O(Le),Yt=Pt.negativeStr,Fr=Pt.integerStr,Lr=Pt.decimalStr,Or="".concat(Fe).concat(Lr),kr="".concat(Yt).concat(Fr);if(ct>=0){var yr=Number(Lr[ct]);if(yr>=5&&!Tt){var ur=J(Le).add("".concat(Yt,"0.").concat("0".repeat(ct)).concat(10-yr));return G(ur.toString(),Fe,ct,Tt)}return ct===0?kr:"".concat(kr).concat(Fe).concat(Lr.padEnd(ct,"0").slice(0,ct))}return Or===".0"?kr:"".concat(kr).concat(Or)}var K=J,le=C(93681),me=C(34280),Oe=C(8654),Ce=C(59301),Ue=C(48736);function ee(Le,Fe){var ct=(0,Ce.useRef)(null);function Tt(){try{var Yt=Le.selectionStart,Fr=Le.selectionEnd,Lr=Le.value,Or=Lr.substring(0,Yt),kr=Lr.substring(Fr);ct.current={start:Yt,end:Fr,value:Lr,beforeTxt:Or,afterTxt:kr}}catch(yr){}}function Pt(){if(Le&&ct.current&&Fe)try{var Yt=Le.value,Fr=ct.current,Lr=Fr.beforeTxt,Or=Fr.afterTxt,kr=Fr.start,yr=Yt.length;if(Yt.endsWith(Or))yr=Yt.length-ct.current.afterTxt.length;else if(Yt.startsWith(Lr))yr=Lr.length;else{var ur=Lr[kr-1],Kr=Yt.indexOf(ur,kr-1);Kr!==-1&&(yr=Kr+1)}Le.setSelectionRange(yr,yr)}catch(fn){(0,Ue.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(fn.message))}}return[Tt,Pt]}var de=C(49658),D=function(){var Fe=(0,Ce.useState)(!1),ct=(0,g.Z)(Fe,2),Tt=ct[0],Pt=ct[1];return(0,me.Z)(function(){Pt((0,de.Z)())},[]),Tt},Ye=D,ke=C(16089),xe=200,Te=600;function ve(Le){var Fe=Le.prefixCls,ct=Le.upNode,Tt=Le.downNode,Pt=Le.upDisabled,Yt=Le.downDisabled,Fr=Le.onStep,Lr=Ce.useRef(),Or=Ce.useRef([]),kr=Ce.useRef();kr.current=Fr;var yr=function(){clearTimeout(Lr.current)},ur=function(xn,Ei){xn.preventDefault(),yr(),kr.current(Ei);function di(){kr.current(Ei),Lr.current=setTimeout(di,xe)}Lr.current=setTimeout(di,Te)};Ce.useEffect(function(){return function(){yr(),Or.current.forEach(function(Pr){return ke.Z.cancel(Pr)})}},[]);var Kr=Ye();if(Kr)return null;var fn="".concat(Fe,"-handler"),Un=Ne()(fn,"".concat(fn,"-up"),(0,W.Z)({},"".concat(fn,"-up-disabled"),Pt)),hn=Ne()(fn,"".concat(fn,"-down"),(0,W.Z)({},"".concat(fn,"-down-disabled"),Yt)),Dn=function(){return Or.current.push((0,ke.Z)(yr))},Qi={unselectable:"on",role:"button",onMouseUp:Dn,onMouseLeave:Dn};return Ce.createElement("div",{className:"".concat(fn,"-wrap")},Ce.createElement("span",(0,te.Z)({},Qi,{onMouseDown:function(xn){ur(xn,!0)},"aria-label":"Increase Value","aria-disabled":Pt,className:Un}),ct||Ce.createElement("span",{unselectable:"on",className:"".concat(Fe,"-handler-up-inner")})),Ce.createElement("span",(0,te.Z)({},Qi,{onMouseDown:function(xn){ur(xn,!1)},"aria-label":"Decrease Value","aria-disabled":Yt,className:hn}),Tt||Ce.createElement("span",{unselectable:"on",className:"".concat(Fe,"-handler-down-inner")})))}function De(Le){var Fe=typeof Le=="number"?q(Le):O(Le).fullStr,ct=Fe.includes(".");return ct?O(Fe.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Le+"0"}var he=C(5643),Se=function(){var Le=(0,Ce.useRef)(0),Fe=function(){ke.Z.cancel(Le.current)};return(0,Ce.useEffect)(function(){return Fe},[]),function(ct){Fe(),Le.current=(0,ke.Z)(function(){ct()})}},Xe=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],et=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],je=function(Fe,ct){return Fe||ct.isEmpty()?ct.toString():ct.toNumber()},qe=function(Fe){var ct=K(Fe);return ct.isInvalidate()?null:ct},Et=Ce.forwardRef(function(Le,Fe){var ct,Tt=Le.prefixCls,Pt=Tt===void 0?"rc-input-number":Tt,Yt=Le.className,Fr=Le.style,Lr=Le.min,Or=Le.max,kr=Le.step,yr=kr===void 0?1:kr,ur=Le.defaultValue,Kr=Le.value,fn=Le.disabled,Un=Le.readOnly,hn=Le.upHandler,Dn=Le.downHandler,Qi=Le.keyboard,Pr=Le.controls,xn=Pr===void 0?!0:Pr,Ei=Le.classNames,di=Le.stringMode,Zi=Le.parser,_i=Le.formatter,ji=Le.precision,qa=Le.decimalSeparator,Ki=Le.onChange,ti=Le.onInput,gi=Le.onPressEnter,yi=Le.onStep,$e=(0,F.Z)(Le,Xe),_e="".concat(Pt,"-input"),Me=Ce.useRef(null),Ie=Ce.useState(!1),Nt=(0,g.Z)(Ie,2),Mt=Nt[0],Sr=Nt[1],nr=Ce.useRef(!1),Dr=Ce.useRef(!1),Hr=Ce.useRef(!1),an=Ce.useState(function(){return K(Kr!=null?Kr:ur)}),jr=(0,g.Z)(an,2),Rr=jr[0],en=jr[1];function wn(pn){Kr===void 0&&en(pn)}var on=Ce.useCallback(function(pn,ln){if(!ln)return ji>=0?ji:Math.max(L(pn),L(yr))},[ji,yr]),Nn=Ce.useCallback(function(pn){var ln=String(pn);if(Zi)return Zi(ln);var Jn=ln;return qa&&(Jn=Jn.replace(qa,".")),Jn.replace(/[^\w.-]+/g,"")},[Zi,qa]),Kn=Ce.useRef(""),fi=Ce.useCallback(function(pn,ln){if(_i)return _i(pn,{userTyping:ln,input:String(Kn.current)});var Jn=typeof pn=="number"?q(pn):pn;if(!ln){var Hn=on(Jn,ln);if(R(Jn)&&(qa||Hn>=0)){var hi=qa||".";Jn=G(Jn,hi,Hn)}}return Jn},[_i,on,qa]),On=Ce.useState(function(){var pn=ur!=null?ur:Kr;return Rr.isInvalidate()&&["string","number"].includes((0,S.Z)(pn))?Number.isNaN(pn)?"":pn:fi(Rr.toString(),!1)}),Xn=(0,g.Z)(On,2),Vt=Xn[0],Xt=Xn[1];Kn.current=Vt;function er(pn,ln){Xt(fi(pn.isInvalidate()?pn.toString(!1):pn.toString(!ln),ln))}var fr=Ce.useMemo(function(){return qe(Or)},[Or,ji]),Rt=Ce.useMemo(function(){return qe(Lr)},[Lr,ji]),Jt=Ce.useMemo(function(){return!fr||!Rr||Rr.isInvalidate()?!1:fr.lessEquals(Rr)},[fr,Rr]),ar=Ce.useMemo(function(){return!Rt||!Rr||Rr.isInvalidate()?!1:Rr.lessEquals(Rt)},[Rt,Rr]),Nr=ee(Me.current,Mt),yn=(0,g.Z)(Nr,2),Bn=yn[0],ci=yn[1],ni=function(ln){return fr&&!ln.lessEquals(fr)?fr:Rt&&!Rt.lessEquals(ln)?Rt:null},Ii=function(ln){return!ni(ln)},qn=function(ln,Jn){var Hn=ln,hi=Ii(Hn)||Hn.isEmpty();if(!Hn.isEmpty()&&!Jn&&(Hn=ni(Hn)||Hn,hi=!0),!Un&&!fn&&hi){var qi=Hn.toString(),Li=on(qi,Jn);return Li>=0&&(Hn=K(G(qi,".",Li)),Ii(Hn)||(Hn=K(G(qi,".",Li,!0)))),Hn.equals(Rr)||(wn(Hn),Ki==null||Ki(Hn.isEmpty()?null:je(di,Hn)),Kr===void 0&&er(Hn,Jn)),Hn}return Rr},zn=Se(),xi=function pn(ln){if(Bn(),Kn.current=ln,Xt(ln),!Dr.current){var Jn=Nn(ln),Hn=K(Jn);Hn.isNaN()||qn(Hn,!0)}ti==null||ti(ln),zn(function(){var hi=ln;Zi||(hi=ln.replace(/。/g,".")),hi!==ln&&pn(hi)})},wi=function(){Dr.current=!0},Ci=function(){Dr.current=!1,xi(Me.current.value)},Ai=function(ln){xi(ln.target.value)},Bi=function(ln){var Jn;if(!(ln&&Jt||!ln&&ar)){nr.current=!1;var Hn=K(Hr.current?De(yr):yr);ln||(Hn=Hn.negate());var hi=(Rr||K(0)).add(Hn.toString()),qi=qn(hi,!1);yi==null||yi(je(di,qi),{offset:Hr.current?De(yr):yr,type:ln?"up":"down"}),(Jn=Me.current)===null||Jn===void 0||Jn.focus()}},Xi=function(ln){var Jn=K(Nn(Vt)),Hn=Jn;Jn.isNaN()?Hn=qn(Rr,ln):Hn=qn(Jn,ln),Kr!==void 0?er(Rr,!1):Hn.isNaN()||er(Hn,!1)},ri=function(){nr.current=!0},Ti=function(ln){var Jn=ln.key,Hn=ln.shiftKey;nr.current=!0,Hr.current=Hn,Jn==="Enter"&&(Dr.current||(nr.current=!1),Xi(!1),gi==null||gi(ln)),Qi!==!1&&!Dr.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Jn)&&(Bi(Jn==="Up"||Jn==="ArrowUp"),ln.preventDefault())},Ha=function(){nr.current=!1,Hr.current=!1},li=function(){Xi(!1),Sr(!1),nr.current=!1};return(0,me.o)(function(){Rr.isInvalidate()||er(Rr,!1)},[ji]),(0,me.o)(function(){var pn=K(Kr);en(pn);var ln=K(Nn(Vt));(!pn.equals(ln)||!nr.current||_i)&&er(pn,nr.current)},[Kr]),(0,me.o)(function(){_i&&ci()},[Vt]),Ce.createElement("div",{className:Ne()(Pt,Ei==null?void 0:Ei.input,Yt,(ct={},(0,W.Z)(ct,"".concat(Pt,"-focused"),Mt),(0,W.Z)(ct,"".concat(Pt,"-disabled"),fn),(0,W.Z)(ct,"".concat(Pt,"-readonly"),Un),(0,W.Z)(ct,"".concat(Pt,"-not-a-number"),Rr.isNaN()),(0,W.Z)(ct,"".concat(Pt,"-out-of-range"),!Rr.isInvalidate()&&!Ii(Rr)),ct)),style:Fr,onFocus:function(){Sr(!0)},onBlur:li,onKeyDown:Ti,onKeyUp:Ha,onCompositionStart:wi,onCompositionEnd:Ci,onBeforeInput:ri},xn&&Ce.createElement(ve,{prefixCls:Pt,upNode:hn,downNode:Dn,upDisabled:Jt,downDisabled:ar,onStep:Bi}),Ce.createElement("div",{className:"".concat(_e,"-wrap")},Ce.createElement("input",(0,te.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Lr,"aria-valuemax":Or,"aria-valuenow":Rr.isInvalidate()?null:Rr.toString(),step:yr},$e,{ref:(0,Oe.sQ)(Me,Fe),className:_e,value:Vt,onChange:Ai,disabled:fn,readOnly:Un}))))}),kt=Ce.forwardRef(function(Le,Fe){var ct=Le.disabled,Tt=Le.style,Pt=Le.prefixCls,Yt=Le.value,Fr=Le.prefix,Lr=Le.suffix,Or=Le.addonBefore,kr=Le.addonAfter,yr=Le.classes,ur=Le.className,Kr=Le.classNames,fn=(0,F.Z)(Le,et),Un=Ce.useRef(null),hn=function(Qi){Un.current&&(0,he.nH)(Un.current,Qi)};return Ce.createElement(le.BaseInput,{inputElement:Ce.createElement(Et,(0,te.Z)({prefixCls:Pt,disabled:ct,classNames:Kr,ref:(0,Oe.sQ)(Un,Fe)},fn)),className:ur,triggerFocus:hn,prefixCls:Pt,value:Yt,disabled:ct,style:Tt,prefix:Fr,suffix:Lr,addonAfter:kr,addonBefore:Or,classes:yr,classNames:Kr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});kt.displayName="InputNumber";var Ot=kt,sr=Ot,rr=C(19080),br=C(36355),lr=C(92736),V=C(1684),dt=C(19716),I=C(32441),p=C(33234),f=C(9937),x=C(17313),Y=C(74207),Be=C(83116),H=C(37613);const ie=(Le,Fe)=>{let{componentCls:ct,borderRadiusSM:Tt,borderRadiusLG:Pt}=Le;const Yt=Fe==="lg"?Pt:Tt;return{[`&-${Fe}`]:{[`${ct}-handler-wrap`]:{borderStartEndRadius:Yt,borderEndEndRadius:Yt},[`${ct}-handler-up`]:{borderStartEndRadius:Yt},[`${ct}-handler-down`]:{borderEndEndRadius:Yt}}}},Qe=Le=>{const{componentCls:Fe,lineWidth:ct,lineType:Tt,colorBorder:Pt,borderRadius:Yt,fontSizeLG:Fr,controlHeightLG:Lr,controlHeightSM:Or,colorError:kr,paddingInlineSM:yr,colorTextDescription:ur,motionDurationMid:Kr,handleHoverColor:fn,paddingInline:Un,paddingBlock:hn,handleBg:Dn,handleActiveBg:Qi,colorTextDisabled:Pr,borderRadiusSM:xn,borderRadiusLG:Ei,controlWidth:di,handleVisible:Zi,handleBorderColor:_i}=Le;return[{[Fe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,x.Wf)(Le)),(0,f.ik)(Le)),(0,f.bi)(Le,Fe)),{display:"inline-block",width:di,margin:0,padding:0,border:`${ct}px ${Tt} ${Pt}`,borderRadius:Yt,"&-rtl":{direction:"rtl",[`${Fe}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Fr,borderRadius:Ei,[`input${Fe}-input`]:{height:Lr-2*ct}},"&-sm":{padding:0,borderRadius:xn,[`input${Fe}-input`]:{height:Or-2*ct,padding:`0 ${yr}px`}},"&:hover":Object.assign({},(0,f.pU)(Le)),"&-focused":Object.assign({},(0,f.M1)(Le)),"&-out-of-range":{[`${Fe}-input-wrap`]:{input:{color:kr}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,x.Wf)(Le)),(0,f.s7)(Le)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Fe}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Fe}-group-addon`]:{borderRadius:Ei,fontSize:Le.fontSizeLG}},"&-sm":{[`${Fe}-group-addon`]:{borderRadius:xn}},[`${Fe}-wrapper-disabled > ${Fe}-group-addon`]:Object.assign({},(0,f.Xy)(Le))}}),[`&-disabled ${Fe}-input`]:{cursor:"not-allowed"},[Fe]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,x.Wf)(Le)),{width:"100%",padding:`${hn}px ${Un}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Yt,outline:0,transition:`all ${Kr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,f.nz)(Le.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[Fe]:Object.assign(Object.assign(Object.assign({[`&:hover ${Fe}-handler-wrap, &-focused ${Fe}-handler-wrap`]:{opacity:1},[`${Fe}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Le.handleWidth,height:"100%",background:Dn,borderStartStartRadius:0,borderStartEndRadius:Yt,borderEndEndRadius:Yt,borderEndStartRadius:0,opacity:Zi===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Kr} linear ${Kr}`,[`${Fe}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${Fe}-handler-up-inner,
${Fe}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:Le.handleFontSize}}},[`${Fe}-handler`]:{height:"50%",overflow:"hidden",color:ur,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${ct}px ${Tt} ${_i}`,transition:`all ${Kr} linear`,"&:active":{background:Qi},"&:hover":{height:"60%",[`
${Fe}-handler-up-inner,
${Fe}-handler-down-inner
`]:{color:fn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,x.Ro)()),{color:ur,transition:`all ${Kr} linear`,userSelect:"none"})},[`${Fe}-handler-up`]:{borderStartEndRadius:Yt},[`${Fe}-handler-down`]:{borderBlockStart:`${ct}px ${Tt} ${_i}`,borderEndEndRadius:Yt}},ie(Le,"lg")),ie(Le,"sm")),{"&-disabled, &-readonly":{[`${Fe}-handler-wrap`]:{display:"none"},[`${Fe}-input`]:{color:"inherit"}},[`
${Fe}-handler-up-disabled,
${Fe}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${Fe}-handler-up-disabled:hover &-handler-up-inner,
${Fe}-handler-down-disabled:hover &-handler-down-inner
`]:{color:Pr}})},{[`${Fe}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${Fe}-handler-down`]:{borderBlockStartWidth:0}}}]},ye=Le=>{const{componentCls:Fe,paddingBlock:ct,paddingInline:Tt,inputAffixPadding:Pt,controlWidth:Yt,borderRadiusLG:Fr,borderRadiusSM:Lr}=Le;return{[`${Fe}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,f.ik)(Le)),(0,f.bi)(Le,`${Fe}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:Yt,padding:0,paddingInlineStart:Tt,"&-lg":{borderRadius:Fr},"&-sm":{borderRadius:Lr},[`&:not(${Fe}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,f.pU)(Le)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Fe}-disabled`]:{background:"transparent"},[`> div${Fe}`]:{width:"100%",border:"none",outline:"none",[`&${Fe}-focused`]:{boxShadow:"none !important"}},[`input${Fe}-input`]:{padding:`${ct}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Fe}-handler-wrap`]:{zIndex:2},[Fe]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Pt},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Tt,marginInlineStart:Pt}}})}};var be=(0,Be.Z)("InputNumber",Le=>{const Fe=(0,H.TS)(Le,(0,f.e5)(Le));return[Qe(Fe),ye(Fe),(0,Y.c)(Fe)]},Le=>Object.assign(Object.assign({},(0,f.TM)(Le)),{controlWidth:90,handleWidth:Le.controlHeightSM-Le.lineWidth*2,handleFontSize:Le.fontSize/2,handleVisible:"auto",handleActiveBg:Le.colorFillAlter,handleBg:Le.colorBgContainer,handleHoverColor:Le.colorPrimary,handleBorderColor:Le.colorBorder})),ze=function(Le,Fe){var ct={};for(var Tt in Le)Object.prototype.hasOwnProperty.call(Le,Tt)&&Fe.indexOf(Tt)<0&&(ct[Tt]=Le[Tt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Tt=Object.getOwnPropertySymbols(Le);Pt<Tt.length;Pt++)Fe.indexOf(Tt[Pt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Tt[Pt])&&(ct[Tt[Pt]]=Le[Tt[Pt]]);return ct};const gt=Ce.forwardRef((Le,Fe)=>{const{getPrefixCls:ct,direction:Tt}=Ce.useContext(br.E_),Pt=Ce.useRef(null);Ce.useImperativeHandle(Fe,()=>Pt.current);const{className:Yt,rootClassName:Fr,size:Lr,disabled:Or,prefixCls:kr,addonBefore:yr,addonAfter:ur,prefix:Kr,bordered:fn=!0,readOnly:Un,status:hn,controls:Dn}=Le,Qi=ze(Le,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Pr=ct("input-number",kr),[xn,Ei]=be(Pr),{compactSize:di,compactItemClassnames:Zi}=(0,p.ri)(Pr,Tt);let _i=Ce.createElement(Ae.Z,{className:`${Pr}-handler-up-inner`}),ji=Ce.createElement(pe.Z,{className:`${Pr}-handler-down-inner`});const qa=typeof Dn=="boolean"?Dn:void 0;typeof Dn=="object"&&(_i=typeof Dn.upIcon=="undefined"?_i:Ce.createElement("span",{className:`${Pr}-handler-up-inner`},Dn.upIcon),ji=typeof Dn.downIcon=="undefined"?ji:Ce.createElement("span",{className:`${Pr}-handler-down-inner`},Dn.downIcon));const{hasFeedback:Ki,status:ti,isFormItemInput:gi,feedbackIcon:yi}=Ce.useContext(I.aM),$e=(0,rr.F)(ti,hn),_e=(0,dt.Z)(nr=>{var Dr;return(Dr=Lr!=null?Lr:di)!==null&&Dr!==void 0?Dr:nr}),Me=Ce.useContext(V.Z),Ie=Or!=null?Or:Me,Nt=Ne()({[`${Pr}-lg`]:_e==="large",[`${Pr}-sm`]:_e==="small",[`${Pr}-rtl`]:Tt==="rtl",[`${Pr}-borderless`]:!fn,[`${Pr}-in-form-item`]:gi},(0,rr.Z)(Pr,$e),Zi,Ei),Mt=`${Pr}-group`,Sr=Ce.createElement(sr,Object.assign({ref:Pt,disabled:Ie,className:Ne()(Yt,Fr),upHandler:_i,downHandler:ji,prefixCls:Pr,readOnly:Un,controls:qa,prefix:Kr,suffix:Ki&&yi,addonAfter:ur&&Ce.createElement(p.BR,null,Ce.createElement(I.Ux,{override:!0,status:!0},ur)),addonBefore:yr&&Ce.createElement(p.BR,null,Ce.createElement(I.Ux,{override:!0,status:!0},yr)),classNames:{input:Nt},classes:{affixWrapper:Ne()((0,rr.Z)(`${Pr}-affix-wrapper`,$e,Ki),{[`${Pr}-affix-wrapper-sm`]:_e==="small",[`${Pr}-affix-wrapper-lg`]:_e==="large",[`${Pr}-affix-wrapper-rtl`]:Tt==="rtl",[`${Pr}-affix-wrapper-borderless`]:!fn},Ei),wrapper:Ne()({[`${Mt}-rtl`]:Tt==="rtl",[`${Pr}-wrapper-disabled`]:Ie},Ei),group:Ne()({[`${Pr}-group-wrapper-sm`]:_e==="small",[`${Pr}-group-wrapper-lg`]:_e==="large",[`${Pr}-group-wrapper-rtl`]:Tt==="rtl"},(0,rr.Z)(`${Pr}-group-wrapper`,$e,Ki),Ei)}},Qi));return xn(Sr)}),fe=gt,at=Le=>Ce.createElement(lr.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Ce.createElement(gt,Object.assign({},Le)));fe._InternalPanelDoNotUseOrYouWillBeFired=at;var rt=fe},9432:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return se},n:function(){return q}});var pe=C(19248),Ae=C(92310),P=C.n(Ae),Ne=C(93681),te=C(8654),W=C(59301),S=C(19080),g=C(36355),F=C(1684),v=C(19716),$=C(32441),_=C(33234),M=C(59412),O=C(9937);function T(ne){return!!(ne.prefix||ne.suffix||ne.allowClear)}var L=function(ne,J){var G={};for(var K in ne)Object.prototype.hasOwnProperty.call(ne,K)&&J.indexOf(K)<0&&(G[K]=ne[K]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,K=Object.getOwnPropertySymbols(ne);le<K.length;le++)J.indexOf(K[le])<0&&Object.prototype.propertyIsEnumerable.call(ne,K[le])&&(G[K[le]]=ne[K[le]]);return G};function q(ne,J){if(!ne)return;ne.focus(J);const{cursor:G}=J||{};if(G){const K=ne.value.length;switch(G){case"start":ne.setSelectionRange(0,0);break;case"end":ne.setSelectionRange(K,K);break;default:ne.setSelectionRange(0,K);break}}}var se=(0,W.forwardRef)((ne,J)=>{var G;const{prefixCls:K,bordered:le=!0,status:me,size:Oe,disabled:Ce,onBlur:Ue,onFocus:ee,suffix:de,allowClear:D,addonAfter:Ye,addonBefore:ke,className:xe,style:Te,styles:ve,rootClassName:De,onChange:he,classNames:Se}=ne,Xe=L(ne,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:et,direction:je,input:qe}=W.useContext(g.E_),Et=et("input",K),kt=(0,W.useRef)(null),[Ot,sr]=(0,O.ZP)(Et),{compactSize:rr,compactItemClassnames:br}=(0,_.ri)(Et,je),lr=(0,v.Z)(gt=>{var fe;return(fe=Oe!=null?Oe:rr)!==null&&fe!==void 0?fe:gt}),V=W.useContext(F.Z),dt=Ce!=null?Ce:V,{status:I,hasFeedback:p,feedbackIcon:f}=(0,W.useContext)($.aM),x=(0,S.F)(I,me),Y=T(ne)||!!p,Be=(0,W.useRef)(Y);(0,W.useEffect)(()=>{var gt;Y&&Be.current,Be.current=Y},[Y]);const H=(0,M.Z)(kt,!0),ie=gt=>{H(),Ue==null||Ue(gt)},Qe=gt=>{H(),ee==null||ee(gt)},ye=gt=>{H(),he==null||he(gt)},be=(p||de)&&W.createElement(W.Fragment,null,de,p&&f);let ze;return typeof D=="object"&&(D!=null&&D.clearIcon)?ze=D:D&&(ze={clearIcon:W.createElement(pe.Z,null)}),Ot(W.createElement(Ne.default,Object.assign({ref:(0,te.sQ)(J,kt),prefixCls:Et,autoComplete:qe==null?void 0:qe.autoComplete},Xe,{disabled:dt,onBlur:ie,onFocus:Qe,style:Object.assign(Object.assign({},qe==null?void 0:qe.style),Te),styles:Object.assign(Object.assign({},qe==null?void 0:qe.styles),ve),suffix:be,allowClear:ze,className:P()(xe,De,br,qe==null?void 0:qe.className),onChange:ye,addonAfter:Ye&&W.createElement(_.BR,null,W.createElement($.Ux,{override:!0,status:!0},Ye)),addonBefore:ke&&W.createElement(_.BR,null,W.createElement($.Ux,{override:!0,status:!0},ke)),classNames:Object.assign(Object.assign(Object.assign({},Se),qe==null?void 0:qe.classNames),{input:P()({[`${Et}-sm`]:lr==="small",[`${Et}-lg`]:lr==="large",[`${Et}-rtl`]:je==="rtl",[`${Et}-borderless`]:!le},!Y&&(0,S.Z)(Et,x),Se==null?void 0:Se.input,(G=qe==null?void 0:qe.classNames)===null||G===void 0?void 0:G.input,sr)}),classes:{affixWrapper:P()({[`${Et}-affix-wrapper-sm`]:lr==="small",[`${Et}-affix-wrapper-lg`]:lr==="large",[`${Et}-affix-wrapper-rtl`]:je==="rtl",[`${Et}-affix-wrapper-borderless`]:!le},(0,S.Z)(`${Et}-affix-wrapper`,x,p),sr),wrapper:P()({[`${Et}-group-rtl`]:je==="rtl"},sr),group:P()({[`${Et}-group-wrapper-sm`]:lr==="small",[`${Et}-group-wrapper-lg`]:lr==="large",[`${Et}-group-wrapper-rtl`]:je==="rtl",[`${Et}-group-wrapper-disabled`]:dt},(0,S.Z)(`${Et}-group-wrapper`,x,p),sr)}})))})},1643:function(dn,Ut,C){"use strict";var pe=C(19248),Ae=C(92310),P=C.n(Ae),Ne=C(9296),te=C(59301),W=C(19080),S=C(36355),g=C(1684),F=C(19716),v=C(32441),$=C(9432),_=C(9937),M=function(T,L){var q={};for(var R in T)Object.prototype.hasOwnProperty.call(T,R)&&L.indexOf(R)<0&&(q[R]=T[R]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,R=Object.getOwnPropertySymbols(T);se<R.length;se++)L.indexOf(R[se])<0&&Object.prototype.propertyIsEnumerable.call(T,R[se])&&(q[R[se]]=T[R[se]]);return q};const O=(0,te.forwardRef)((T,L)=>{const{prefixCls:q,bordered:R=!0,size:se,disabled:ne,status:J,allowClear:G,showCount:K,classNames:le,rootClassName:me,className:Oe}=T,Ce=M(T,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Ue,direction:ee}=te.useContext(S.E_),de=(0,F.Z)(se),D=te.useContext(g.Z),Ye=ne!=null?ne:D,{status:ke,hasFeedback:xe,feedbackIcon:Te}=te.useContext(v.aM),ve=(0,W.F)(ke,J),De=te.useRef(null);te.useImperativeHandle(L,()=>{var je;return{resizableTextArea:(je=De.current)===null||je===void 0?void 0:je.resizableTextArea,focus:qe=>{var Et,kt;(0,$.n)((kt=(Et=De.current)===null||Et===void 0?void 0:Et.resizableTextArea)===null||kt===void 0?void 0:kt.textArea,qe)},blur:()=>{var qe;return(qe=De.current)===null||qe===void 0?void 0:qe.blur()}}});const he=Ue("input",q);let Se;typeof G=="object"&&(G!=null&&G.clearIcon)?Se=G:G&&(Se={clearIcon:te.createElement(pe.Z,null)});const[Xe,et]=(0,_.ZP)(he);return Xe(te.createElement(Ne.default,Object.assign({},Ce,{disabled:Ye,allowClear:Se,className:P()(Oe,me),classes:{affixWrapper:P()(`${he}-textarea-affix-wrapper`,{[`${he}-affix-wrapper-rtl`]:ee==="rtl",[`${he}-affix-wrapper-borderless`]:!R,[`${he}-affix-wrapper-sm`]:de==="small",[`${he}-affix-wrapper-lg`]:de==="large",[`${he}-textarea-show-count`]:K},(0,W.Z)(`${he}-affix-wrapper`,ve),et)},classNames:Object.assign(Object.assign({},le),{textarea:P()({[`${he}-borderless`]:!R,[`${he}-sm`]:de==="small",[`${he}-lg`]:de==="large"},(0,W.Z)(he,ve),et,le==null?void 0:le.textarea)}),prefixCls:he,suffix:xe&&te.createElement("span",{className:`${he}-textarea-suffix`},Te),showCount:K,ref:De})))});Ut.Z=O},59412:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return Ae}});var pe=C(59301);function Ae(P,Ne){const te=(0,pe.useRef)([]),W=()=>{te.current.push(setTimeout(()=>{var S,g,F,v;!((S=P.current)===null||S===void 0)&&S.input&&((g=P.current)===null||g===void 0?void 0:g.input.getAttribute("type"))==="password"&&(!((F=P.current)===null||F===void 0)&&F.input.hasAttribute("value"))&&((v=P.current)===null||v===void 0||v.input.removeAttribute("value"))}))};return(0,pe.useEffect)(()=>(Ne&&W(),()=>te.current.forEach(S=>{S&&clearTimeout(S)})),[]),W}},92832:function(dn,Ut,C){"use strict";C.d(Ut,{default:function(){return de}});var pe=C(92310),Ae=C.n(pe),P=C(59301),Ne=C(36355),te=C(32441),W=C(9937),g=D=>{const{getPrefixCls:Ye,direction:ke}=(0,P.useContext)(Ne.E_),{prefixCls:xe,className:Te}=D,ve=Ye("input-group",xe),De=Ye("input"),[he,Se]=(0,W.ZP)(De),Xe=Ae()(ve,{[`${ve}-lg`]:D.size==="large",[`${ve}-sm`]:D.size==="small",[`${ve}-compact`]:D.compact,[`${ve}-rtl`]:ke==="rtl"},Se,Te),et=(0,P.useContext)(te.aM),je=(0,P.useMemo)(()=>Object.assign(Object.assign({},et),{isFormItemInput:!1}),[et]);return he(P.createElement("span",{className:Xe,style:D.style,onMouseEnter:D.onMouseEnter,onMouseLeave:D.onMouseLeave,onFocus:D.onFocus,onBlur:D.onBlur},P.createElement(te.aM.Provider,{value:je},D.children)))},F=C(9432),v=C(73331),$=C(15277),_=C(2738),M=C(8654),O=C(59412),T=function(D,Ye){var ke={};for(var xe in D)Object.prototype.hasOwnProperty.call(D,xe)&&Ye.indexOf(xe)<0&&(ke[xe]=D[xe]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,xe=Object.getOwnPropertySymbols(D);Te<xe.length;Te++)Ye.indexOf(xe[Te])<0&&Object.prototype.propertyIsEnumerable.call(D,xe[Te])&&(ke[xe[Te]]=D[xe[Te]]);return ke};const L=D=>D?P.createElement($.Z,null):P.createElement(v.Z,null),q={click:"onClick",hover:"onMouseOver"};var se=P.forwardRef((D,Ye)=>{const{visibilityToggle:ke=!0}=D,xe=typeof ke=="object"&&ke.visible!==void 0,[Te,ve]=(0,P.useState)(()=>xe?ke.visible:!1),De=(0,P.useRef)(null);P.useEffect(()=>{xe&&ve(ke.visible)},[xe,ke]);const he=(0,O.Z)(De),Se=()=>{const{disabled:dt}=D;dt||(Te&&he(),ve(I=>{var p;const f=!I;return typeof ke=="object"&&((p=ke.onVisibleChange)===null||p===void 0||p.call(ke,f)),f}))},Xe=dt=>{const{action:I="click",iconRender:p=L}=D,f=q[I]||"",x=p(Te),Y={[f]:Se,className:`${dt}-icon`,key:"passwordIcon",onMouseDown:Be=>{Be.preventDefault()},onMouseUp:Be=>{Be.preventDefault()}};return P.cloneElement(P.isValidElement(x)?x:P.createElement("span",null,x),Y)},{className:et,prefixCls:je,inputPrefixCls:qe,size:Et}=D,kt=T(D,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Ot}=P.useContext(Ne.E_),sr=Ot("input",qe),rr=Ot("input-password",je),br=ke&&Xe(rr),lr=Ae()(rr,et,{[`${rr}-${Et}`]:!!Et}),V=Object.assign(Object.assign({},(0,_.Z)(kt,["suffix","iconRender","visibilityToggle"])),{type:Te?"text":"password",className:lr,prefixCls:sr,suffix:br});return Et&&(V.size=Et),P.createElement(F.Z,Object.assign({ref:(0,M.sQ)(Ye,De)},V))}),ne=C(47472),J=C(92343),G=C(3113),K=C(19716),le=C(33234),me=function(D,Ye){var ke={};for(var xe in D)Object.prototype.hasOwnProperty.call(D,xe)&&Ye.indexOf(xe)<0&&(ke[xe]=D[xe]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,xe=Object.getOwnPropertySymbols(D);Te<xe.length;Te++)Ye.indexOf(xe[Te])<0&&Object.prototype.propertyIsEnumerable.call(D,xe[Te])&&(ke[xe[Te]]=D[xe[Te]]);return ke},Ce=P.forwardRef((D,Ye)=>{const{prefixCls:ke,inputPrefixCls:xe,className:Te,size:ve,suffix:De,enterButton:he=!1,addonAfter:Se,loading:Xe,disabled:et,onSearch:je,onChange:qe,onCompositionStart:Et,onCompositionEnd:kt}=D,Ot=me(D,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:sr,direction:rr}=P.useContext(Ne.E_),br=P.useRef(!1),lr=sr("input-search",ke),V=sr("input",xe),{compactSize:dt}=(0,le.ri)(lr,rr),I=(0,K.Z)(at=>{var rt;return(rt=ve!=null?ve:dt)!==null&&rt!==void 0?rt:at}),p=P.useRef(null),f=at=>{at&&at.target&&at.type==="click"&&je&&je(at.target.value,at,{source:"clear"}),qe&&qe(at)},x=at=>{var rt;document.activeElement===((rt=p.current)===null||rt===void 0?void 0:rt.input)&&at.preventDefault()},Y=at=>{var rt,Le;je&&je((Le=(rt=p.current)===null||rt===void 0?void 0:rt.input)===null||Le===void 0?void 0:Le.value,at,{source:"input"})},Be=at=>{br.current||Xe||Y(at)},H=typeof he=="boolean"?P.createElement(ne.Z,null):null,ie=`${lr}-button`;let Qe;const ye=he||{},be=ye.type&&ye.type.__ANT_BUTTON===!0;be||ye.type==="button"?Qe=(0,J.Tm)(ye,Object.assign({onMouseDown:x,onClick:at=>{var rt,Le;(Le=(rt=ye==null?void 0:ye.props)===null||rt===void 0?void 0:rt.onClick)===null||Le===void 0||Le.call(rt,at),Y(at)},key:"enterButton"},be?{className:ie,size:I}:{})):Qe=P.createElement(G.ZP,{className:ie,type:he?"primary":void 0,size:I,disabled:et,key:"enterButton",onMouseDown:x,onClick:Y,loading:Xe,icon:H},he),Se&&(Qe=[Qe,(0,J.Tm)(Se,{key:"addonAfter"})]);const ze=Ae()(lr,{[`${lr}-rtl`]:rr==="rtl",[`${lr}-${I}`]:!!I,[`${lr}-with-button`]:!!he},Te),gt=at=>{br.current=!0,Et==null||Et(at)},fe=at=>{br.current=!1,kt==null||kt(at)};return P.createElement(F.Z,Object.assign({ref:(0,M.sQ)(p,Ye),onPressEnter:Be},Ot,{size:I,onCompositionStart:gt,onCompositionEnd:fe,prefixCls:V,addonAfter:Qe,suffix:De,onChange:f,className:ze,disabled:et}))}),Ue=C(1643);const ee=F.Z;ee.Group=g,ee.Search=Ce,ee.TextArea=Ue.Z,ee.Password=se;var de=ee},9937:function(dn,Ut,C){"use strict";C.d(Ut,{M1:function(){return S},TM:function(){return J},Xy:function(){return g},bi:function(){return $},e5:function(){return ne},ik:function(){return _},nz:function(){return te},pU:function(){return W},s7:function(){return M},x0:function(){return v}});var pe=C(17313),Ae=C(74207),P=C(37613),Ne=C(83116);const te=G=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:G,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),W=G=>({borderColor:G.hoverBorderColor}),S=G=>({borderColor:G.activeBorderColor,boxShadow:G.activeShadow,outline:0}),g=G=>({color:G.colorTextDisabled,backgroundColor:G.colorBgContainerDisabled,borderColor:G.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},W((0,P.TS)(G,{hoverBorderColor:G.colorBorder})))}),F=G=>{const{paddingBlockLG:K,fontSizeLG:le,lineHeightLG:me,borderRadiusLG:Oe,paddingInlineLG:Ce}=G;return{padding:`${K}px ${Ce}px`,fontSize:le,lineHeight:me,borderRadius:Oe}},v=G=>({padding:`${G.paddingBlockSM}px ${G.paddingInlineSM}px`,borderRadius:G.borderRadiusSM}),$=(G,K)=>{const{componentCls:le,colorError:me,colorWarning:Oe,errorActiveShadow:Ce,warningActiveShadow:Ue,colorErrorBorderHover:ee,colorWarningBorderHover:de}=G;return{[`&-status-error:not(${K}-disabled):not(${K}-borderless)${K}`]:{borderColor:me,"&:hover":{borderColor:ee},"&:focus, &-focused":Object.assign({},S((0,P.TS)(G,{activeBorderColor:me,activeShadow:Ce}))),[`${le}-prefix, ${le}-suffix`]:{color:me}},[`&-status-warning:not(${K}-disabled):not(${K}-borderless)${K}`]:{borderColor:Oe,"&:hover":{borderColor:de},"&:focus, &-focused":Object.assign({},S((0,P.TS)(G,{activeBorderColor:Oe,activeShadow:Ue}))),[`${le}-prefix, ${le}-suffix`]:{color:Oe}}}},_=G=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${G.paddingBlock}px ${G.paddingInline}px`,color:G.colorText,fontSize:G.fontSize,lineHeight:G.lineHeight,backgroundColor:G.colorBgContainer,backgroundImage:"none",borderWidth:G.lineWidth,borderStyle:G.lineType,borderColor:G.colorBorder,borderRadius:G.borderRadius,transition:`all ${G.motionDurationMid}`},te(G.colorTextPlaceholder)),{"&:hover":Object.assign({},W(G)),"&:focus, &-focused":Object.assign({},S(G)),"&-disabled, &[disabled]":Object.assign({},g(G)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:G.controlHeight,lineHeight:G.lineHeight,verticalAlign:"bottom",transition:`all ${G.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},F(G)),"&-sm":Object.assign({},v(G)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),M=G=>{const{componentCls:K,antCls:le}=G;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:G.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${K}, &-lg > ${K}-group-addon`]:Object.assign({},F(G)),[`&-sm ${K}, &-sm > ${K}-group-addon`]:Object.assign({},v(G)),[`&-lg ${le}-select-single ${le}-select-selector`]:{height:G.controlHeightLG},[`&-sm ${le}-select-single ${le}-select-selector`]:{height:G.controlHeightSM},[`> ${K}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${K}-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 ${G.paddingInline}px`,color:G.colorText,fontWeight:"normal",fontSize:G.fontSize,textAlign:"center",backgroundColor:G.colorFillAlter,border:`${G.lineWidth}px ${G.lineType} ${G.colorBorder}`,borderRadius:G.borderRadius,transition:`all ${G.motionDurationSlow}`,lineHeight:1,[`${le}-select`]:{margin:`-${G.paddingBlock+1}px -${G.paddingInline}px`,[`&${le}-select-single:not(${le}-select-customize-input)`]:{[`${le}-select-selector`]:{backgroundColor:"inherit",border:`${G.lineWidth}px ${G.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${le}-select-selector`]:{color:G.colorPrimary}}},[`${le}-cascader-picker`]:{margin:`-9px -${G.paddingInline}px`,backgroundColor:"transparent",[`${le}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${K}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${K}-search-with-button &`]:{zIndex:0}}},[`> ${K}:first-child, ${K}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${le}-select ${le}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${K}-affix-wrapper`]:{[`&:not(:first-child) ${K}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${K}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${K}:last-child, ${K}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${le}-select ${le}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${K}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${K}-search &`]:{borderStartStartRadius:G.borderRadius,borderEndStartRadius:G.borderRadius}},[`&:not(:first-child), ${K}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${K}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,pe.dF)()),{[`${K}-group-addon, ${K}-group-wrap, > ${K}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:G.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${K}-affix-wrapper,
& > ${K}-number-affix-wrapper,
& > ${le}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-G.lineWidth,borderInlineEndWidth:G.lineWidth},[`${K}`]:{float:"none"},[`& > ${le}-select > ${le}-select-selector,
& > ${le}-select-auto-complete ${K},
& > ${le}-cascader-picker ${K},
& > ${K}-group-wrapper ${K}`]:{borderInlineEndWidth:G.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 ${K},
& > ${le}-cascader-picker:first-child ${K}`]:{borderStartStartRadius:G.borderRadius,borderEndStartRadius:G.borderRadius},[`& > *:last-child,
& > ${le}-select:last-child > ${le}-select-selector,
& > ${le}-cascader-picker:last-child ${K},
& > ${le}-cascader-picker-focused:last-child ${K}`]:{borderInlineEndWidth:G.lineWidth,borderStartEndRadius:G.borderRadius,borderEndEndRadius:G.borderRadius},[`& > ${le}-select-auto-complete ${K}`]:{verticalAlign:"top"},[`${K}-group-wrapper + ${K}-group-wrapper`]:{marginInlineStart:-G.lineWidth,[`${K}-affix-wrapper`]:{borderRadius:0}},[`${K}-group-wrapper:not(:last-child)`]:{[`&${K}-search > ${K}-group`]:{[`& > ${K}-group-addon > ${K}-search-button`]:{borderRadius:0},[`& > ${K}`]:{borderStartStartRadius:G.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:G.borderRadius}}}})}},O=G=>{const{componentCls:K,controlHeightSM:le,lineWidth:me}=G,Ce=(le-me*2-16)/2;return{[K]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,pe.Wf)(G)),_(G)),$(G,K)),{'&[type="color"]':{height:G.controlHeight,[`&${K}-lg`]:{height:G.controlHeightLG},[`&${K}-sm`]:{height:le,paddingTop:Ce,paddingBottom:Ce}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},T=G=>{const{componentCls:K}=G;return{[`${K}-clear-icon`]:{margin:0,color:G.colorTextQuaternary,fontSize:G.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${G.motionDurationSlow}`,"&:hover":{color:G.colorTextTertiary},"&:active":{color:G.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${G.inputAffixPadding}px`}}}},L=G=>{const{componentCls:K,inputAffixPadding:le,colorTextDescription:me,motionDurationSlow:Oe,colorIcon:Ce,colorIconHover:Ue,iconCls:ee}=G;return{[`${K}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_(G)),{display:"inline-flex",[`&:not(${K}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},W(G)),{zIndex:1,[`${K}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${K}[disabled]`]:{background:"transparent"}},[`> input${K}`]:{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"'},[`${K}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:G.paddingXS}},"&-show-count-suffix":{color:me},"&-show-count-has-suffix":{marginInlineEnd:G.paddingXXS},"&-prefix":{marginInlineEnd:le},"&-suffix":{marginInlineStart:le}}}),T(G)),{[`${ee}${K}-password-icon`]:{color:Ce,cursor:"pointer",transition:`all ${Oe}`,"&:hover":{color:Ue}}}),$(G,`${K}-affix-wrapper`))}},q=G=>{const{componentCls:K,colorError:le,colorWarning:me,borderRadiusLG:Oe,borderRadiusSM:Ce}=G;return{[`${K}-group`]:Object.assign(Object.assign(Object.assign({},(0,pe.Wf)(G)),M(G)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${K}-group-addon`]:{borderRadius:Oe,fontSize:G.fontSizeLG}},"&-sm":{[`${K}-group-addon`]:{borderRadius:Ce}},"&-status-error":{[`${K}-group-addon`]:{color:le,borderColor:le}},"&-status-warning":{[`${K}-group-addon`]:{color:me,borderColor:me}},"&-disabled":{[`${K}-group-addon`]:Object.assign({},g(G))},[`&:not(${K}-compact-first-item):not(${K}-compact-last-item)${K}-compact-item`]:{[`${K}, ${K}-group-addon`]:{borderRadius:0}},[`&:not(${K}-compact-last-item)${K}-compact-first-item`]:{[`${K}, ${K}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${K}-compact-first-item)${K}-compact-last-item`]:{[`${K}, ${K}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},R=G=>{const{componentCls:K,antCls:le}=G,me=`${K}-search`;return{[me]:{[`${K}`]:{"&:hover, &:focus":{borderColor:G.colorPrimaryHover,[`+ ${K}-group-addon ${me}-button:not(${le}-btn-primary)`]:{borderInlineStartColor:G.colorPrimaryHover}}},[`${K}-affix-wrapper`]:{borderRadius:0},[`${K}-lg`]:{lineHeight:G.lineHeightLG-2e-4},[`> ${K}-group`]:{[`> ${K}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${me}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:G.borderRadius,borderEndEndRadius:G.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${me}-button:not(${le}-btn-primary)`]:{color:G.colorTextDescription,"&:hover":{color:G.colorPrimaryHover},"&:active":{color:G.colorPrimaryActive},[`&${le}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${me}-button`]:{height:G.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${me}-button`]:{height:G.controlHeightLG},[`&-small ${me}-button`]:{height:G.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${K}-compact-item`]:{[`&:not(${K}-compact-last-item)`]:{[`${K}-group-addon`]:{[`${K}-search-button`]:{marginInlineEnd:-G.lineWidth,borderRadius:0}}},[`&:not(${K}-compact-first-item)`]:{[`${K},${K}-affix-wrapper`]:{borderRadius:0}},[`> ${K}-group-addon ${K}-search-button,
> ${K},
${K}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${K}-affix-wrapper-focused`]:{zIndex:2}}}}},se=G=>{const{componentCls:K,paddingLG:le}=G,me=`${K}-textarea`;return{[me]:{position:"relative","&-show-count":{[`> ${K}`]:{height:"100%"},[`${K}-data-count`]:{position:"absolute",bottom:-G.fontSize*G.lineHeight,insetInlineEnd:0,color:G.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${K}`]:{paddingInlineEnd:le}},[`&-affix-wrapper${me}-has-feedback`]:{[`${K}`]:{paddingInlineEnd:le}},[`&-affix-wrapper${K}-affix-wrapper`]:{padding:0,[`> textarea${K}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${K}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${K}-clear-icon`]:{position:"absolute",insetInlineEnd:G.paddingXS,insetBlockStart:G.paddingXS},[`${me}-suffix`]:{position:"absolute",top:0,insetInlineEnd:G.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function ne(G){return(0,P.TS)(G,{inputAffixPadding:G.paddingXXS})}const J=G=>{const{controlHeight:K,fontSize:le,lineHeight:me,lineWidth:Oe,controlHeightSM:Ce,controlHeightLG:Ue,fontSizeLG:ee,lineHeightLG:de,paddingSM:D,controlPaddingHorizontalSM:Ye,controlPaddingHorizontal:ke,colorFillAlter:xe,colorPrimaryHover:Te,controlOutlineWidth:ve,controlOutline:De,colorErrorOutline:he,colorWarningOutline:Se}=G;return{paddingBlock:Math.max(Math.round((K-le*me)/2*10)/10-Oe,3),paddingBlockSM:Math.max(Math.round((Ce-le*me)/2*10)/10-Oe,0),paddingBlockLG:Math.ceil((Ue-ee*de)/2*10)/10-Oe,paddingInline:D-Oe,paddingInlineSM:Ye-Oe,paddingInlineLG:ke-Oe,addonBg:xe,activeBorderColor:Te,hoverBorderColor:Te,activeShadow:`0 0 0 ${ve}px ${De}`,errorActiveShadow:`0 0 0 ${ve}px ${he}`,warningActiveShadow:`0 0 0 ${ve}px ${Se}`}};Ut.ZP=(0,Ne.Z)("Input",G=>{const K=(0,P.TS)(G,ne(G));return[O(K),se(K),L(K),q(K),R(K),(0,Ae.c)(K)]},J)},45818:function(dn,Ut,C){"use strict";C.d(Ut,{D:function(){return ne},Z:function(){return K}});var pe=C(54476),Ae=C(59301),P={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"},Ne=P,te=C(7657),W=function(me,Oe){return Ae.createElement(te.Z,(0,pe.Z)({},me,{ref:Oe,icon:Ne}))},S=Ae.forwardRef(W),g=S,F=C(33853),v=C(38819),$=C(92310),_=C.n($),M=C(2738),T=le=>!isNaN(parseFloat(le))&&isFinite(le),L=C(36355),q=C(84966),R=function(le,me){var Oe={};for(var Ce in le)Object.prototype.hasOwnProperty.call(le,Ce)&&me.indexOf(Ce)<0&&(Oe[Ce]=le[Ce]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Ce=Object.getOwnPropertySymbols(le);Ue<Ce.length;Ue++)me.indexOf(Ce[Ue])<0&&Object.prototype.propertyIsEnumerable.call(le,Ce[Ue])&&(Oe[Ce[Ue]]=le[Ce[Ue]]);return Oe};const se={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ne=Ae.createContext({}),J=(()=>{let le=0;return function(){let me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return le+=1,`${me}${le}`}})();var K=Ae.forwardRef((le,me)=>{const{prefixCls:Oe,className:Ce,trigger:Ue,children:ee,defaultCollapsed:de=!1,theme:D="dark",style:Ye={},collapsible:ke=!1,reverseArrow:xe=!1,width:Te=200,collapsedWidth:ve=80,zeroWidthTriggerStyle:De,breakpoint:he,onCollapse:Se,onBreakpoint:Xe}=le,et=R(le,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:je}=(0,Ae.useContext)(q.Gs),[qe,Et]=(0,Ae.useState)("collapsed"in le?le.collapsed:de),[kt,Ot]=(0,Ae.useState)(!1);(0,Ae.useEffect)(()=>{"collapsed"in le&&Et(le.collapsed)},[le.collapsed]);const sr=(I,p)=>{"collapsed"in le||Et(I),Se==null||Se(I,p)},rr=(0,Ae.useRef)();rr.current=I=>{Ot(I.matches),Xe==null||Xe(I.matches),qe!==I.matches&&sr(I.matches,"responsive")},(0,Ae.useEffect)(()=>{function I(f){return rr.current(f)}let p;if(typeof window!="undefined"){const{matchMedia:f}=window;if(f&&he&&he in se){p=f(`(max-width: ${se[he]})`);try{p.addEventListener("change",I)}catch(x){p.addListener(I)}I(p)}}return()=>{try{p==null||p.removeEventListener("change",I)}catch(f){p==null||p.removeListener(I)}}},[he]),(0,Ae.useEffect)(()=>{const I=J("ant-sider-");return je.addSider(I),()=>je.removeSider(I)},[]);const br=()=>{sr(!qe,"clickTrigger")},{getPrefixCls:lr}=(0,Ae.useContext)(L.E_),V=()=>{const I=lr("layout-sider",Oe),p=(0,M.Z)(et,["collapsed"]),f=qe?ve:Te,x=T(f)?`${f}px`:String(f),Y=parseFloat(String(ve||0))===0?Ae.createElement("span",{onClick:br,className:_()(`${I}-zero-width-trigger`,`${I}-zero-width-trigger-${xe?"right":"left"}`),style:De},Ue||Ae.createElement(g,null)):null,ie={expanded:xe?Ae.createElement(v.Z,null):Ae.createElement(F.Z,null),collapsed:xe?Ae.createElement(F.Z,null):Ae.createElement(v.Z,null)}[qe?"collapsed":"expanded"],Qe=Ue!==null?Y||Ae.createElement("div",{className:`${I}-trigger`,onClick:br,style:{width:x}},Ue||ie):null,ye=Object.assign(Object.assign({},Ye),{flex:`0 0 ${x}`,maxWidth:x,minWidth:x,width:x}),be=_()(I,`${I}-${D}`,{[`${I}-collapsed`]:!!qe,[`${I}-has-trigger`]:ke&&Ue!==null&&!Y,[`${I}-below`]:!!kt,[`${I}-zero-width`]:parseFloat(x)===0},Ce);return Ae.createElement("aside",Object.assign({className:be},p,{style:ye,ref:me}),Ae.createElement("div",{className:`${I}-children`},ee),ke||kt&&Y?Qe:null)},dt=Ae.useMemo(()=>({siderCollapsed:qe}),[qe]);return Ae.createElement(ne.Provider,{value:dt},V())})},84966:function(dn,Ut,C){"use strict";C.d(Ut,{VY:function(){return ne},$_:function(){return se},h4:function(){return R},Gs:function(){return M},ZP:function(){return J}});var pe=C(94480),Ae=C(92310),P=C.n(Ae),Ne=C(2738),te=C(59301),W=C(36355),S=C(83116),F=G=>{const{componentCls:K,bodyBg:le,lightSiderBg:me,lightTriggerBg:Oe,lightTriggerColor:Ce}=G;return{[`${K}-sider-light`]:{background:me,[`${K}-sider-trigger`]:{color:Ce,background:Oe},[`${K}-sider-zero-width-trigger`]:{color:Ce,background:Oe,border:`1px solid ${le}`,borderInlineStart:0}}}};const v=G=>{const{antCls:K,componentCls:le,colorText:me,triggerColor:Oe,footerBg:Ce,triggerBg:Ue,headerHeight:ee,headerPadding:de,headerColor:D,footerPadding:Ye,triggerHeight:ke,zeroTriggerHeight:xe,zeroTriggerWidth:Te,motionDurationMid:ve,motionDurationSlow:De,fontSize:he,borderRadius:Se,bodyBg:Xe,headerBg:et,siderBg:je}=G;return{[le]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Xe,"&, *":{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:je,transition:`all ${ve}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${K}-menu${K}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:ke},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:ke,color:Oe,lineHeight:`${ke}px`,textAlign:"center",background:Ue,cursor:"pointer",transition:`all ${ve}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ee,insetInlineEnd:-Te,zIndex:1,width:Te,height:xe,color:Oe,fontSize:G.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:je,borderStartStartRadius:0,borderStartEndRadius:Se,borderEndEndRadius:Se,borderEndStartRadius:0,cursor:"pointer",transition:`background ${De} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${De}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Te,borderStartStartRadius:Se,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Se}}}}},F(G)),{"&-rtl":{direction:"rtl"}}),[`${le}-header`]:{height:ee,padding:de,color:D,lineHeight:`${ee}px`,background:et,[`${K}-menu`]:{lineHeight:"inherit"}},[`${le}-footer`]:{padding:Ye,color:me,fontSize:he,background:Ce},[`${le}-content`]:{flex:"auto",minHeight:0}}};var $=(0,S.Z)("Layout",G=>[v(G)],G=>{const{colorBgLayout:K,controlHeight:le,controlHeightLG:me,colorText:Oe,controlHeightSM:Ce,marginXXS:Ue,colorTextLightSolid:ee,colorBgContainer:de}=G,D=me*1.25;return{colorBgHeader:"#001529",colorBgBody:K,colorBgTrigger:"#002140",bodyBg:K,headerBg:"#001529",headerHeight:le*2,headerPadding:`0 ${D}px`,headerColor:Oe,footerPadding:`${Ce}px ${D}px`,footerBg:K,siderBg:"#001529",triggerHeight:me+Ue*2,triggerBg:"#002140",triggerColor:ee,zeroTriggerWidth:me,zeroTriggerHeight:me,lightSiderBg:de,lightTriggerBg:de,lightTriggerColor:Oe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),_=function(G,K){var le={};for(var me in G)Object.prototype.hasOwnProperty.call(G,me)&&K.indexOf(me)<0&&(le[me]=G[me]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,me=Object.getOwnPropertySymbols(G);Oe<me.length;Oe++)K.indexOf(me[Oe])<0&&Object.prototype.propertyIsEnumerable.call(G,me[Oe])&&(le[me[Oe]]=G[me[Oe]]);return le};const M=te.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function O(G){let{suffixCls:K,tagName:le,displayName:me}=G;return Oe=>te.forwardRef((Ue,ee)=>te.createElement(Oe,Object.assign({ref:ee,suffixCls:K,tagName:le},Ue)))}const T=te.forwardRef((G,K)=>{const{prefixCls:le,suffixCls:me,className:Oe,tagName:Ce}=G,Ue=_(G,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ee}=te.useContext(W.E_),de=ee("layout",le),[D,Ye]=$(de),ke=me?`${de}-${me}`:de;return D(te.createElement(Ce,Object.assign({className:P()(le||ke,Oe,Ye),ref:K},Ue)))}),L=te.forwardRef((G,K)=>{const{direction:le}=te.useContext(W.E_),[me,Oe]=te.useState([]),{prefixCls:Ce,className:Ue,rootClassName:ee,children:de,hasSider:D,tagName:Ye,style:ke}=G,xe=_(G,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Te=(0,Ne.Z)(xe,["suffixCls"]),{getPrefixCls:ve,layout:De}=te.useContext(W.E_),he=ve("layout",Ce),[Se,Xe]=$(he),et=P()(he,{[`${he}-has-sider`]:typeof D=="boolean"?D:me.length>0,[`${he}-rtl`]:le==="rtl"},De==null?void 0:De.className,Ue,ee,Xe),je=te.useMemo(()=>({siderHook:{addSider:qe=>{Oe(Et=>[].concat((0,pe.Z)(Et),[qe]))},removeSider:qe=>{Oe(Et=>Et.filter(kt=>kt!==qe))}}}),[]);return Se(te.createElement(M.Provider,{value:je},te.createElement(Ye,Object.assign({ref:K,className:et,style:Object.assign(Object.assign({},De==null?void 0:De.style),ke)},Te),de)))}),q=O({tagName:"div",displayName:"Layout"})(L),R=O({suffixCls:"header",tagName:"header",displayName:"Header"})(T),se=O({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(T),ne=O({suffixCls:"content",tagName:"main",displayName:"Content"})(T);var J=q},40875:function(dn,Ut,C){"use strict";C.d(Ut,{J:function(){return W}});var pe=C(59301),Ae=C(33234),P=C(70425),Ne=function(S,g){var F={};for(var v in S)Object.prototype.hasOwnProperty.call(S,v)&&g.indexOf(v)<0&&(F[v]=S[v]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,v=Object.getOwnPropertySymbols(S);$<v.length;$++)g.indexOf(v[$])<0&&Object.prototype.propertyIsEnumerable.call(S,v[$])&&(F[v[$]]=S[v[$]]);return F};const te=pe.createContext(null),W=pe.forwardRef((S,g)=>{const{children:F}=S,v=Ne(S,["children"]),$=pe.useContext(te),_=pe.useMemo(()=>Object.assign(Object.assign({},$),v),[$,v.prefixCls,v.mode,v.selectable]);return pe.createElement(te.Provider,{value:_},pe.createElement(Ae.BR,null,(0,P.supportNodeRef)(F)?pe.cloneElement(F,{ref:g}):F))});Ut.Z=te},20834:function(dn,Ut,C){"use strict";C.d(Ut,{default:function(){return dt}});var pe=C(15285),Ae=C(59301),P=C(45818),Ne=C(92310),te=C.n(Ne),W=C(36355),S=function(I,p){var f={};for(var x in I)Object.prototype.hasOwnProperty.call(I,x)&&p.indexOf(x)<0&&(f[x]=I[x]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,x=Object.getOwnPropertySymbols(I);Y<x.length;Y++)p.indexOf(x[Y])<0&&Object.prototype.propertyIsEnumerable.call(I,x[Y])&&(f[x[Y]]=I[x[Y]]);return f},F=I=>{const{prefixCls:p,className:f,dashed:x}=I,Y=S(I,["prefixCls","className","dashed"]),{getPrefixCls:Be}=Ae.useContext(W.E_),H=Be("menu",p),ie=te()({[`${H}-item-divider-dashed`]:!!x},f);return Ae.createElement(pe.iz,Object.assign({className:ie},Y))},v=C(11592),$=C(2738),_=C(6848),M=C(92343),T=(0,Ae.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),q=I=>{var p;const{className:f,children:x,icon:Y,title:Be,danger:H}=I,{prefixCls:ie,firstLevel:Qe,direction:ye,disableMenuItemTitleTooltip:be,inlineCollapsed:ze}=Ae.useContext(T),gt=ct=>{const Tt=Ae.createElement("span",{className:`${ie}-title-content`},x);return(!Y||(0,M.l$)(x)&&x.type==="span")&&x&&ct&&Qe&&typeof x=="string"?Ae.createElement("div",{className:`${ie}-inline-collapsed-noicon`},x.charAt(0)):Tt},{siderCollapsed:fe}=Ae.useContext(P.D);let at=Be;typeof Be=="undefined"?at=Qe?x:"":Be===!1&&(at="");const rt={title:at};!fe&&!ze&&(rt.title=null,rt.open=!1);const Le=(0,v.Z)(x).length;let Fe=Ae.createElement(pe.ck,Object.assign({},(0,$.Z)(I,["title","icon","danger"]),{className:te()({[`${ie}-item-danger`]:H,[`${ie}-item-only-child`]:(Y?Le+1:Le)===1},f),title:typeof Be=="string"?Be:void 0}),(0,M.Tm)(Y,{className:te()((0,M.l$)(Y)?(p=Y.props)===null||p===void 0?void 0:p.className:"",`${ie}-item-icon`)}),gt(ze));return be||(Fe=Ae.createElement(_.Z,Object.assign({},rt,{placement:ye==="rtl"?"left":"right",overlayClassName:`${ie}-inline-collapsed-tooltip`}),Fe)),Fe},se=I=>{var p;const{popupClassName:f,icon:x,title:Y,theme:Be}=I,H=Ae.useContext(T),{prefixCls:ie,inlineCollapsed:Qe,theme:ye}=H,be=(0,pe.Xl)();let ze;if(!x)ze=Qe&&!be.length&&Y&&typeof Y=="string"?Ae.createElement("div",{className:`${ie}-inline-collapsed-noicon`},Y.charAt(0)):Ae.createElement("span",{className:`${ie}-title-content`},Y);else{const fe=(0,M.l$)(Y)&&Y.type==="span";ze=Ae.createElement(Ae.Fragment,null,(0,M.Tm)(x,{className:te()((0,M.l$)(x)?(p=x.props)===null||p===void 0?void 0:p.className:"",`${ie}-item-icon`)}),fe?Y:Ae.createElement("span",{className:`${ie}-title-content`},Y))}const gt=Ae.useMemo(()=>Object.assign(Object.assign({},H),{firstLevel:!1}),[H]);return Ae.createElement(T.Provider,{value:gt},Ae.createElement(pe.Wd,Object.assign({},(0,$.Z)(I,["icon"]),{title:ze,popupClassName:te()(ie,f,`${ie}-${Be||ye}`)})))},ne=C(18785),J=C(70425),G=C(62892),K=C(40875),le=function(I,p){var f={};for(var x in I)Object.prototype.hasOwnProperty.call(I,x)&&p.indexOf(x)<0&&(f[x]=I[x]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,x=Object.getOwnPropertySymbols(I);Y<x.length;Y++)p.indexOf(x[Y])<0&&Object.prototype.propertyIsEnumerable.call(I,x[Y])&&(f[x[Y]]=I[x[Y]]);return f};function me(I){return(I||[]).map((p,f)=>{if(p&&typeof p=="object"){const x=p,{label:Y,children:Be,key:H,type:ie}=x,Qe=le(x,["label","children","key","type"]),ye=H!=null?H:`tmp-${f}`;return Be||ie==="group"?ie==="group"?Ae.createElement(pe.BW,Object.assign({key:ye},Qe,{title:Y}),me(Be)):Ae.createElement(se,Object.assign({key:ye},Qe,{title:Y}),me(Be)):ie==="divider"?Ae.createElement(F,Object.assign({key:ye},Qe)):Ae.createElement(q,Object.assign({key:ye},Qe),Y)}return null}).filter(p=>p)}function Oe(I){return Ae.useMemo(()=>I&&me(I),[I])}var Ce=C(64993),Ue=C(17313),ee=C(8378),de=C(13826),D=C(29878),Ye=C(83116),ke=C(37613),Te=I=>{const{componentCls:p,motionDurationSlow:f,horizontalLineHeight:x,colorSplit:Y,lineWidth:Be,lineType:H,itemPaddingInline:ie}=I;return{[`${p}-horizontal`]:{lineHeight:x,border:0,borderBottom:`${Be}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:ie},[`> ${p}-item:hover,
> ${p}-item-active,
> ${p}-submenu ${p}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${p}-item, ${p}-submenu-title`]:{transition:[`border-color ${f}`,`background ${f}`].join(",")},[`${p}-submenu-arrow`]:{display:"none"}}}},De=I=>{let{componentCls:p,menuArrowOffset:f}=I;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(-${f})`},"&::after":{transform:`rotate(45deg) translateY(${f})`}}}}};const he=I=>Object.assign({},(0,Ue.oN)(I));var Xe=(I,p)=>{const{componentCls:f,itemColor:x,itemSelectedColor:Y,groupTitleColor:Be,itemBg:H,subMenuItemBg:ie,itemSelectedBg:Qe,activeBarHeight:ye,activeBarWidth:be,activeBarBorderWidth:ze,motionDurationSlow:gt,motionEaseInOut:fe,motionEaseOut:at,itemPaddingInline:rt,motionDurationMid:Le,itemHoverColor:Fe,lineType:ct,colorSplit:Tt,itemDisabledColor:Pt,dangerItemColor:Yt,dangerItemHoverColor:Fr,dangerItemSelectedColor:Lr,dangerItemActiveBg:Or,dangerItemSelectedBg:kr,itemHoverBg:yr,itemActiveBg:ur,menuSubMenuBg:Kr,horizontalItemSelectedColor:fn,horizontalItemSelectedBg:Un,horizontalItemBorderRadius:hn,horizontalItemHoverBg:Dn,popupBg:Qi}=I;return{[`${f}-${p}, ${f}-${p} > ${f}`]:{color:x,background:H,[`&${f}-root:focus-visible`]:Object.assign({},he(I)),[`${f}-item-group-title`]:{color:Be},[`${f}-submenu-selected`]:{[`> ${f}-submenu-title`]:{color:Y}},[`${f}-item-disabled, ${f}-submenu-disabled`]:{color:`${Pt} !important`},[`${f}-item:not(${f}-item-selected):not(${f}-submenu-selected)`]:{[`&:hover, > ${f}-submenu-title:hover`]:{color:Fe}},[`&:not(${f}-horizontal)`]:{[`${f}-item:not(${f}-item-selected)`]:{"&:hover":{backgroundColor:yr},"&:active":{backgroundColor:ur}},[`${f}-submenu-title`]:{"&:hover":{backgroundColor:yr},"&:active":{backgroundColor:ur}}},[`${f}-item-danger`]:{color:Yt,[`&${f}-item:hover`]:{[`&:not(${f}-item-selected):not(${f}-submenu-selected)`]:{color:Fr}},[`&${f}-item:active`]:{background:Or}},[`${f}-item a`]:{"&, &:hover":{color:"inherit"}},[`${f}-item-selected`]:{color:Y,[`&${f}-item-danger`]:{color:Lr},"a, a:hover":{color:"inherit"}},[`& ${f}-item-selected`]:{backgroundColor:Qe,[`&${f}-item-danger`]:{backgroundColor:kr}},[`${f}-item, ${f}-submenu-title`]:{[`&:not(${f}-item-disabled):focus-visible`]:Object.assign({},he(I))},[`&${f}-submenu > ${f}`]:{backgroundColor:Kr},[`&${f}-popup > ${f}`]:{backgroundColor:Qi},[`&${f}-horizontal`]:Object.assign(Object.assign({},p==="dark"?{borderBottom:0}:{}),{[`> ${f}-item, > ${f}-submenu`]:{top:ze,marginTop:-ze,marginBottom:0,borderRadius:hn,"&::after":{position:"absolute",insetInline:rt,bottom:0,borderBottom:`${ye}px solid transparent`,transition:`border-color ${gt} ${fe}`,content:'""'},"&:hover, &-active, &-open":{background:Dn,"&::after":{borderBottomWidth:ye,borderBottomColor:fn}},"&-selected":{color:fn,backgroundColor:Un,"&:hover":{backgroundColor:Un},"&::after":{borderBottomWidth:ye,borderBottomColor:fn}}}}),[`&${f}-root`]:{[`&${f}-inline, &${f}-vertical`]:{borderInlineEnd:`${ze}px ${ct} ${Tt}`}},[`&${f}-inline`]:{[`${f}-sub${f}-inline`]:{background:ie},[`${f}-item, ${f}-submenu-title`]:ze&&be?{width:`calc(100% + ${ze}px)`}:{},[`${f}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${be}px solid ${Y}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Le} ${at}`,`opacity ${Le} ${at}`].join(","),content:'""'},[`&${f}-item-danger`]:{"&::after":{borderInlineEndColor:Lr}}},[`${f}-selected, ${f}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Le} ${fe}`,`opacity ${Le} ${fe}`].join(",")}}}}}};const et=I=>{const{componentCls:p,itemHeight:f,itemMarginInline:x,padding:Y,menuArrowSize:Be,marginXS:H,itemMarginBlock:ie}=I,Qe=Y+Be+H;return{[`${p}-item`]:{position:"relative",overflow:"hidden"},[`${p}-item, ${p}-submenu-title`]:{height:f,lineHeight:`${f}px`,paddingInline:Y,overflow:"hidden",textOverflow:"ellipsis",marginInline:x,marginBlock:ie,width:`calc(100% - ${x*2}px)`},[`> ${p}-item,
> ${p}-submenu > ${p}-submenu-title`]:{height:f,lineHeight:`${f}px`},[`${p}-item-group-list ${p}-submenu-title,
${p}-submenu-title`]:{paddingInlineEnd:Qe}}};var qe=I=>{const{componentCls:p,iconCls:f,itemHeight:x,colorTextLightSolid:Y,dropdownWidth:Be,controlHeightLG:H,motionDurationMid:ie,motionEaseOut:Qe,paddingXL:ye,itemMarginInline:be,fontSizeLG:ze,motionDurationSlow:gt,paddingXS:fe,boxShadowSecondary:at,collapsedWidth:rt,collapsedIconSize:Le}=I,Fe={height:x,lineHeight:`${x}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[p]:{"&-inline, &-vertical":Object.assign({[`&${p}-root`]:{boxShadow:"none"}},et(I))},[`${p}-submenu-popup`]:{[`${p}-vertical`]:Object.assign(Object.assign({},et(I)),{boxShadow:at})}},{[`${p}-submenu-popup ${p}-vertical${p}-sub`]:{minWidth:Be,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 ${gt}`,`background ${gt}`,`padding ${ie} ${Qe}`].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`]:Fe,[`& ${p}-item-group-title`]:{paddingInlineStart:ye}},[`${p}-item`]:Fe}},{[`${p}-inline-collapsed`]:{width:rt,[`&${p}-root`]:{[`${p}-item, ${p}-submenu ${p}-submenu-title`]:{[`> ${p}-inline-collapsed-noicon`]:{fontSize:ze,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% - ${ze/2}px - ${be}px)`,textOverflow:"clip",[`
${p}-submenu-arrow,
${p}-submenu-expand-icon
`]:{opacity:0},[`${p}-item-icon, ${f}`]:{margin:0,fontSize:Le,lineHeight:`${x}px`,"+ span":{display:"inline-block",opacity:0}}},[`${p}-item-icon, ${f}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${p}-item-icon, ${f}`]:{display:"none"},"a, a:hover":{color:Y}},[`${p}-item-group-title`]:Object.assign(Object.assign({},Ue.vS),{paddingInline:fe})}}]};const Et=I=>{const{componentCls:p,motionDurationSlow:f,motionDurationMid:x,motionEaseInOut:Y,motionEaseOut:Be,iconCls:H,iconSize:ie,iconMarginInlineEnd:Qe}=I;return{[`${p}-item, ${p}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${f}`,`background ${f}`,`padding ${f} ${Y}`].join(","),[`${p}-item-icon, ${H}`]:{minWidth:ie,fontSize:ie,transition:[`font-size ${x} ${Be}`,`margin ${f} ${Y}`,`color ${f}`].join(","),"+ span":{marginInlineStart:Qe,opacity:1,transition:[`opacity ${f} ${Y}`,`margin ${f}`,`color ${f}`].join(",")}},[`${p}-item-icon`]:Object.assign({},(0,Ue.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"}}}},kt=I=>{const{componentCls:p,motionDurationSlow:f,motionEaseInOut:x,borderRadius:Y,menuArrowSize:Be,menuArrowOffset:H}=I;return{[`${p}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:I.margin,width:Be,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${f} ${x}, opacity ${f}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Be*.6,height:Be*.15,backgroundColor:"currentcolor",borderRadius:Y,transition:[`background ${f} ${x}`,`transform ${f} ${x}`,`top ${f} ${x}`,`color ${f} ${x}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${H})`},"&::after":{transform:`rotate(-45deg) translateY(${H})`}}}}},Ot=I=>{const{antCls:p,componentCls:f,fontSize:x,motionDurationSlow:Y,motionDurationMid:Be,motionEaseInOut:H,paddingXS:ie,padding:Qe,colorSplit:ye,lineWidth:be,zIndexPopup:ze,borderRadiusLG:gt,subMenuItemBorderRadius:fe,menuArrowSize:at,menuArrowOffset:rt,lineType:Le,menuPanelMaskInset:Fe,groupTitleLineHeight:ct,groupTitleFontSize:Tt}=I;return[{"":{[`${f}`]:Object.assign(Object.assign({},(0,Ue.dF)()),{"&-hidden":{display:"none"}})},[`${f}-submenu-hidden`]:{display:"none"}},{[f]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ue.Wf)(I)),(0,Ue.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:x,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",[`${f}-item`]:{flex:"none"}},[`${f}-item, ${f}-submenu, ${f}-submenu-title`]:{borderRadius:I.itemBorderRadius},[`${f}-item-group-title`]:{padding:`${ie}px ${Qe}px`,fontSize:Tt,lineHeight:ct,transition:`all ${Y}`},[`&-horizontal ${f}-submenu`]:{transition:[`border-color ${Y} ${H}`,`background ${Y} ${H}`].join(",")},[`${f}-submenu, ${f}-submenu-inline`]:{transition:[`border-color ${Y} ${H}`,`background ${Y} ${H}`,`padding ${Be} ${H}`].join(",")},[`${f}-submenu ${f}-sub`]:{cursor:"initial",transition:[`background ${Y} ${H}`,`padding ${Y} ${H}`].join(",")},[`${f}-title-content`]:{transition:`color ${Y}`},[`${f}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${f}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ye,borderStyle:Le,borderWidth:0,borderTopWidth:be,marginBlock:be,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Et(I)),{[`${f}-item-group`]:{[`${f}-item-group-list`]:{margin:0,padding:0,[`${f}-item, ${f}-submenu-title`]:{paddingInline:`${x*2}px ${Qe}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ze,borderRadius:gt,boxShadow:"none",transformOrigin:"0 0",[`&${f}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Fe}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Fe},"\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:I.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:I.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:I.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:I.paddingXS},[`> ${f}`]:Object.assign(Object.assign(Object.assign({borderRadius:gt},Et(I)),kt(I)),{[`${f}-item, ${f}-submenu > ${f}-submenu-title`]:{borderRadius:fe},[`${f}-submenu-title::after`]:{transition:`transform ${Y} ${H}`}})}}),kt(I)),{[`&-inline-collapsed ${f}-submenu-arrow,
&-inline ${f}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${rt})`},"&::after":{transform:`rotate(45deg) translateX(-${rt})`}},[`${f}-submenu-open${f}-submenu-inline > ${f}-submenu-title > ${f}-submenu-arrow`]:{transform:`translateY(-${at*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${rt})`},"&::before":{transform:`rotate(45deg) translateX(${rt})`}}})},{[`${p}-layout-header`]:{[f]:{lineHeight:"inherit"}}}]};var sr=(I,p)=>(0,Ye.Z)("Menu",x=>{if(p===!1)return[];const{colorBgElevated:Y,colorPrimary:Be,colorTextLightSolid:H,controlHeightLG:ie,fontSize:Qe,darkItemColor:ye,darkDangerItemColor:be,darkItemBg:ze,darkSubMenuItemBg:gt,darkItemSelectedColor:fe,darkItemSelectedBg:at,darkDangerItemSelectedBg:rt,darkItemHoverBg:Le,darkGroupTitleColor:Fe,darkItemHoverColor:ct,darkItemDisabledColor:Tt,darkDangerItemHoverColor:Pt,darkDangerItemSelectedColor:Yt,darkDangerItemActiveBg:Fr}=x,Lr=Qe/7*5,Or=(0,ke.TS)(x,{menuArrowSize:Lr,menuHorizontalHeight:ie*1.15,menuArrowOffset:`${Lr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Y}),kr=(0,ke.TS)(Or,{itemColor:ye,itemHoverColor:ct,groupTitleColor:Fe,itemSelectedColor:fe,itemBg:ze,popupBg:ze,subMenuItemBg:gt,itemActiveBg:"transparent",itemSelectedBg:at,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Le,itemDisabledColor:Tt,dangerItemColor:be,dangerItemHoverColor:Pt,dangerItemSelectedColor:Yt,dangerItemActiveBg:Fr,dangerItemSelectedBg:rt,menuSubMenuBg:gt,horizontalItemSelectedColor:H,horizontalItemSelectedBg:Be});return[Ot(Or),Te(Or),qe(Or),Xe(Or,"light"),Xe(kr,"dark"),De(Or),(0,ee.Z)(Or),(0,de.oN)(Or,"slide-up"),(0,de.oN)(Or,"slide-down"),(0,D._y)(Or,"zoom-big")]},x=>{const{colorPrimary:Y,colorError:Be,colorTextDisabled:H,colorErrorBg:ie,colorText:Qe,colorTextDescription:ye,colorBgContainer:be,colorFillAlter:ze,colorFillContent:gt,lineWidth:fe,lineWidthBold:at,controlItemBgActive:rt,colorBgTextHover:Le,controlHeightLG:Fe,lineHeight:ct,colorBgElevated:Tt,marginXXS:Pt,padding:Yt,fontSize:Fr,controlHeightSM:Lr,fontSizeLG:Or,colorTextLightSolid:kr,colorErrorHover:yr}=x,ur=new Ce.C(kr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:x.zIndexPopupBase+50,radiusItem:x.borderRadiusLG,itemBorderRadius:x.borderRadiusLG,radiusSubMenuItem:x.borderRadiusSM,subMenuItemBorderRadius:x.borderRadiusSM,colorItemText:Qe,itemColor:Qe,colorItemTextHover:Qe,itemHoverColor:Qe,colorItemTextHoverHorizontal:Y,horizontalItemHoverColor:Y,colorGroupTitle:ye,groupTitleColor:ye,colorItemTextSelected:Y,itemSelectedColor:Y,colorItemTextSelectedHorizontal:Y,horizontalItemSelectedColor:Y,colorItemBg:be,itemBg:be,colorItemBgHover:Le,itemHoverBg:Le,colorItemBgActive:gt,itemActiveBg:rt,colorSubItemBg:ze,subMenuItemBg:ze,colorItemBgSelected:rt,itemSelectedBg:rt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:at,activeBarHeight:at,colorActiveBarBorderSize:fe,activeBarBorderWidth:fe,colorItemTextDisabled:H,itemDisabledColor:H,colorDangerItemText:Be,dangerItemColor:Be,colorDangerItemTextHover:Be,dangerItemHoverColor:Be,colorDangerItemTextSelected:Be,dangerItemSelectedColor:Be,colorDangerItemBgActive:ie,dangerItemActiveBg:ie,colorDangerItemBgSelected:ie,dangerItemSelectedBg:ie,itemMarginInline:x.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Fe,groupTitleLineHeight:ct,collapsedWidth:Fe*2,popupBg:Tt,itemMarginBlock:Pt,itemPaddingInline:Yt,horizontalLineHeight:`${Fe*1.15}px`,iconSize:Fr,iconMarginInlineEnd:Lr-Fr,collapsedIconSize:Or,groupTitleFontSize:Fr,darkItemDisabledColor:new Ce.C(kr).setAlpha(.25).toRgbString(),darkItemColor:ur,darkDangerItemColor:Be,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:kr,darkItemSelectedBg:Y,darkDangerItemSelectedBg:Be,darkItemHoverBg:"transparent",darkGroupTitleColor:ur,darkItemHoverColor:kr,darkDangerItemHoverColor:yr,darkDangerItemSelectedColor:kr,darkDangerItemActiveBg:Be}},{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"]]})(I),rr=function(I,p){var f={};for(var x in I)Object.prototype.hasOwnProperty.call(I,x)&&p.indexOf(x)<0&&(f[x]=I[x]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,x=Object.getOwnPropertySymbols(I);Y<x.length;Y++)p.indexOf(x[Y])<0&&Object.prototype.propertyIsEnumerable.call(I,x[Y])&&(f[x[Y]]=I[x[Y]]);return f},lr=(0,Ae.forwardRef)((I,p)=>{var f,x;const Y=Ae.useContext(K.Z),Be=Y||{},{getPrefixCls:H,getPopupContainer:ie,direction:Qe,menu:ye}=Ae.useContext(W.E_),be=H(),{prefixCls:ze,className:gt,style:fe,theme:at="light",expandIcon:rt,_internalDisableMenuItemTitleTooltip:Le,inlineCollapsed:Fe,siderCollapsed:ct,items:Tt,children:Pt,rootClassName:Yt,mode:Fr,selectable:Lr,onClick:Or,overflowedIndicatorPopupClassName:kr}=I,yr=rr(I,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ur=(0,$.Z)(yr,["collapsedWidth"]),Kr=Oe(Tt)||Pt;(f=Be.validator)===null||f===void 0||f.call(Be,{mode:Fr});const fn=(0,J.useEvent)(function(){var ji;Or==null||Or.apply(void 0,arguments),(ji=Be.onClick)===null||ji===void 0||ji.call(Be)}),Un=Be.mode||Fr,hn=Lr!=null?Lr:Be.selectable,Dn=Ae.useMemo(()=>ct!==void 0?ct:Fe,[Fe,ct]),Qi={horizontal:{motionName:`${be}-slide-up`},inline:(0,G.Z)(be),other:{motionName:`${be}-zoom-big`}},Pr=H("menu",ze||Be.prefixCls),[xn,Ei]=sr(Pr,!Y),di=te()(`${Pr}-${at}`,ye==null?void 0:ye.className,gt);let Zi;if(typeof rt=="function")Zi=rt;else if(rt===null||rt===!1)Zi=null;else if(Be.expandIcon===null||Be.expandIcon===!1)Zi=null;else{const ji=rt!=null?rt:Be.expandIcon;Zi=(0,M.Tm)(ji,{className:te()(`${Pr}-submenu-expand-icon`,(0,M.l$)(ji)?(x=ji.props)===null||x===void 0?void 0:x.className:"")})}const _i=Ae.useMemo(()=>({prefixCls:Pr,inlineCollapsed:Dn||!1,direction:Qe,firstLevel:!0,theme:at,mode:Un,disableMenuItemTitleTooltip:Le}),[Pr,Dn,Qe,Le,at]);return xn(Ae.createElement(K.Z.Provider,{value:null},Ae.createElement(T.Provider,{value:_i},Ae.createElement(pe.ZP,Object.assign({getPopupContainer:ie,overflowedIndicator:Ae.createElement(ne.Z,null),overflowedIndicatorPopupClassName:te()(Pr,`${Pr}-${at}`,kr),mode:Un,selectable:hn,onClick:fn},ur,{inlineCollapsed:Dn,style:Object.assign(Object.assign({},ye==null?void 0:ye.style),fe),className:di,prefixCls:Pr,direction:Qe,defaultMotions:Qi,expandIcon:Zi,ref:p,rootClassName:te()(Yt,Ei)}),Kr))))});const V=(0,Ae.forwardRef)((I,p)=>{const f=(0,Ae.useRef)(null),x=Ae.useContext(P.D);return(0,Ae.useImperativeHandle)(p,()=>({menu:f.current,focus:Y=>{var Be;(Be=f.current)===null||Be===void 0||Be.focus(Y)}})),Ae.createElement(lr,Object.assign({ref:f},I,x))});V.Item=q,V.SubMenu=se,V.Divider=F,V.ItemGroup=pe.BW;var dt=V},58421:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return Be}});var pe=C(54476),Ae=C(59301),P={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"},Ne=P,te=C(7657),W=function(ie,Qe){return Ae.createElement(te.Z,(0,pe.Z)({},ie,{ref:Qe,icon:Ne}))},S=Ae.forwardRef(W),g=S,F=C(49198),v=C(33853),$=C(38819),_=C(92310),M=C.n(_),O=C(20068),T=C(33885),L=C(67732),q=C(83652),R=C(42403),se=C(158),ne=C(26112),J={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},G=J,K=C(91735),le=function(H){(0,R.Z)(Qe,H);var ie=(0,se.Z)(Qe);function Qe(){var ye;(0,L.Z)(this,Qe);for(var be=arguments.length,ze=new Array(be),gt=0;gt<be;gt++)ze[gt]=arguments[gt];return ye=ie.call.apply(ie,[this].concat(ze)),ye.state={goInputText:""},ye.getValidValue=function(){var fe=ye.state.goInputText;return!fe||Number.isNaN(fe)?void 0:Number(fe)},ye.buildOptionText=function(fe){return"".concat(fe," ").concat(ye.props.locale.items_per_page)},ye.changeSize=function(fe){ye.props.changeSize(Number(fe))},ye.handleChange=function(fe){ye.setState({goInputText:fe.target.value})},ye.handleBlur=function(fe){var at=ye.props,rt=at.goButton,Le=at.quickGo,Fe=at.rootPrefixCls,ct=ye.state.goInputText;rt||ct===""||(ye.setState({goInputText:""}),!(fe.relatedTarget&&(fe.relatedTarget.className.indexOf("".concat(Fe,"-item-link"))>=0||fe.relatedTarget.className.indexOf("".concat(Fe,"-item"))>=0))&&Le(ye.getValidValue()))},ye.go=function(fe){var at=ye.state.goInputText;at!==""&&(fe.keyCode===G.ENTER||fe.type==="click")&&(ye.setState({goInputText:""}),ye.props.quickGo(ye.getValidValue()))},ye}return(0,q.Z)(Qe,[{key:"getPageSizeOptions",value:function(){var be=this.props,ze=be.pageSize,gt=be.pageSizeOptions;return gt.some(function(fe){return fe.toString()===ze.toString()})?gt:gt.concat([ze.toString()]).sort(function(fe,at){var rt=Number.isNaN(Number(fe))?0:Number(fe),Le=Number.isNaN(Number(at))?0:Number(at);return rt-Le})}},{key:"render",value:function(){var be=this,ze=this.props,gt=ze.pageSize,fe=ze.locale,at=ze.rootPrefixCls,rt=ze.changeSize,Le=ze.quickGo,Fe=ze.goButton,ct=ze.selectComponentClass,Tt=ze.buildOptionText,Pt=ze.selectPrefixCls,Yt=ze.disabled,Fr=this.state.goInputText,Lr="".concat(at,"-options"),Or=ct,kr=null,yr=null,ur=null;if(!rt&&!Le)return null;var Kr=this.getPageSizeOptions();if(rt&&Or){var fn=Kr.map(function(Un,hn){return Ae.createElement(Or.Option,{key:hn,value:Un.toString()},(Tt||be.buildOptionText)(Un))});kr=Ae.createElement(Or,{disabled:Yt,prefixCls:Pt,showSearch:!1,className:"".concat(Lr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(gt||Kr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(hn){return hn.parentNode},"aria-label":fe.page_size,defaultOpen:!1},fn)}return Le&&(Fe&&(ur=typeof Fe=="boolean"?Ae.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Yt,className:"".concat(Lr,"-quick-jumper-button")},fe.jump_to_confirm):Ae.createElement("span",{onClick:this.go,onKeyUp:this.go},Fe)),yr=Ae.createElement("div",{className:"".concat(Lr,"-quick-jumper")},fe.jump_to,Ae.createElement("input",{disabled:Yt,type:"text",value:Fr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":fe.page}),fe.page,ur)),Ae.createElement("li",{className:"".concat(Lr)},kr,yr)}}]),Qe}(Ae.Component);le.defaultProps={pageSizeOptions:["10","20","50","100"]};var me=le,Oe=function(ie){var Qe,ye=ie.rootPrefixCls,be=ie.page,ze=ie.active,gt=ie.className,fe=ie.showTitle,at=ie.onClick,rt=ie.onKeyPress,Le=ie.itemRender,Fe="".concat(ye,"-item"),ct=M()(Fe,"".concat(Fe,"-").concat(be),(Qe={},(0,O.Z)(Qe,"".concat(Fe,"-active"),ze),(0,O.Z)(Qe,"".concat(Fe,"-disabled"),!be),(0,O.Z)(Qe,ie.className,gt),Qe)),Tt=function(){at(be)},Pt=function(Lr){rt(Lr,at,be)},Yt=Le(be,"page",Ae.createElement("a",{rel:"nofollow"},be));return Yt?Ae.createElement("li",{title:fe?be.toString():null,className:ct,onClick:Tt,onKeyPress:Pt,tabIndex:0},Yt):null},Ce=Oe;function Ue(){}function ee(H){var ie=Number(H);return typeof ie=="number"&&!Number.isNaN(ie)&&isFinite(ie)&&Math.floor(ie)===ie}var de=function(ie,Qe,ye){return ye};function D(H,ie,Qe){var ye=typeof H=="undefined"?ie.pageSize:H;return Math.floor((Qe.total-1)/ye)+1}var Ye=function(H){(0,R.Z)(Qe,H);var ie=(0,se.Z)(Qe);function Qe(ye){var be;(0,L.Z)(this,Qe),be=ie.call(this,ye),be.paginationNode=Ae.createRef(),be.getJumpPrevPage=function(){return Math.max(1,be.state.current-(be.props.showLessItems?3:5))},be.getJumpNextPage=function(){return Math.min(D(void 0,be.state,be.props),be.state.current+(be.props.showLessItems?3:5))},be.getItemIcon=function(rt,Le){var Fe=be.props.prefixCls,ct=rt||Ae.createElement("button",{type:"button","aria-label":Le,className:"".concat(Fe,"-item-link")});return typeof rt=="function"&&(ct=Ae.createElement(rt,(0,T.Z)({},be.props))),ct},be.isValid=function(rt){var Le=be.props.total;return ee(rt)&&rt!==be.state.current&&ee(Le)&&Le>0},be.shouldDisplayQuickJumper=function(){var rt=be.props,Le=rt.showQuickJumper,Fe=rt.total,ct=be.state.pageSize;return Fe<=ct?!1:Le},be.handleKeyDown=function(rt){(rt.keyCode===G.ARROW_UP||rt.keyCode===G.ARROW_DOWN)&&rt.preventDefault()},be.handleKeyUp=function(rt){var Le=be.getValidValue(rt),Fe=be.state.currentInputValue;Le!==Fe&&be.setState({currentInputValue:Le}),rt.keyCode===G.ENTER?be.handleChange(Le):rt.keyCode===G.ARROW_UP?be.handleChange(Le-1):rt.keyCode===G.ARROW_DOWN&&be.handleChange(Le+1)},be.handleBlur=function(rt){var Le=be.getValidValue(rt);be.handleChange(Le)},be.changePageSize=function(rt){var Le=be.state.current,Fe=D(rt,be.state,be.props);Le=Le>Fe?Fe:Le,Fe===0&&(Le=be.state.current),typeof rt=="number"&&("pageSize"in be.props||be.setState({pageSize:rt}),"current"in be.props||be.setState({current:Le,currentInputValue:Le})),be.props.onShowSizeChange(Le,rt),"onChange"in be.props&&be.props.onChange&&be.props.onChange(Le,rt)},be.handleChange=function(rt){var Le=be.props,Fe=Le.disabled,ct=Le.onChange,Tt=be.state,Pt=Tt.pageSize,Yt=Tt.current,Fr=Tt.currentInputValue;if(be.isValid(rt)&&!Fe){var Lr=D(void 0,be.state,be.props),Or=rt;return rt>Lr?Or=Lr:rt<1&&(Or=1),"current"in be.props||be.setState({current:Or}),Or!==Fr&&be.setState({currentInputValue:Or}),ct(Or,Pt),Or}return Yt},be.prev=function(){be.hasPrev()&&be.handleChange(be.state.current-1)},be.next=function(){be.hasNext()&&be.handleChange(be.state.current+1)},be.jumpPrev=function(){be.handleChange(be.getJumpPrevPage())},be.jumpNext=function(){be.handleChange(be.getJumpNextPage())},be.hasPrev=function(){return be.state.current>1},be.hasNext=function(){return be.state.current<D(void 0,be.state,be.props)},be.runIfEnter=function(rt,Le){if(rt.key==="Enter"||rt.charCode===13){for(var Fe=arguments.length,ct=new Array(Fe>2?Fe-2:0),Tt=2;Tt<Fe;Tt++)ct[Tt-2]=arguments[Tt];Le.apply(void 0,ct)}},be.runIfEnterPrev=function(rt){be.runIfEnter(rt,be.prev)},be.runIfEnterNext=function(rt){be.runIfEnter(rt,be.next)},be.runIfEnterJumpPrev=function(rt){be.runIfEnter(rt,be.jumpPrev)},be.runIfEnterJumpNext=function(rt){be.runIfEnter(rt,be.jumpNext)},be.handleGoTO=function(rt){(rt.keyCode===G.ENTER||rt.type==="click")&&be.handleChange(be.state.currentInputValue)},be.renderPrev=function(rt){var Le=be.props,Fe=Le.prevIcon,ct=Le.itemRender,Tt=ct(rt,"prev",be.getItemIcon(Fe,"prev page")),Pt=!be.hasPrev();return(0,Ae.isValidElement)(Tt)?(0,Ae.cloneElement)(Tt,{disabled:Pt}):Tt},be.renderNext=function(rt){var Le=be.props,Fe=Le.nextIcon,ct=Le.itemRender,Tt=ct(rt,"next",be.getItemIcon(Fe,"next page")),Pt=!be.hasNext();return(0,Ae.isValidElement)(Tt)?(0,Ae.cloneElement)(Tt,{disabled:Pt}):Tt};var ze=ye.onChange!==Ue,gt="current"in ye;gt&&!ze&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var fe=ye.defaultCurrent;"current"in ye&&(fe=ye.current);var at=ye.defaultPageSize;return"pageSize"in ye&&(at=ye.pageSize),fe=Math.min(fe,D(at,void 0,ye)),be.state={current:fe,currentInputValue:fe,pageSize:at},be}return(0,q.Z)(Qe,[{key:"componentDidUpdate",value:function(be,ze){var gt=this.props.prefixCls;if(ze.current!==this.state.current&&this.paginationNode.current){var fe=this.paginationNode.current.querySelector(".".concat(gt,"-item-").concat(ze.current));if(fe&&document.activeElement===fe){var at;fe==null||(at=fe.blur)===null||at===void 0||at.call(fe)}}}},{key:"getValidValue",value:function(be){var ze=be.target.value,gt=D(void 0,this.state,this.props),fe=this.state.currentInputValue,at;return ze===""?at=ze:Number.isNaN(Number(ze))?at=fe:ze>=gt?at=gt:at=Number(ze),at}},{key:"getShowSizeChanger",value:function(){var be=this.props,ze=be.showSizeChanger,gt=be.total,fe=be.totalBoundaryShowSizeChanger;return typeof ze!="undefined"?ze:gt>fe}},{key:"render",value:function(){var be=this.props,ze=be.prefixCls,gt=be.className,fe=be.style,at=be.disabled,rt=be.hideOnSinglePage,Le=be.total,Fe=be.locale,ct=be.showQuickJumper,Tt=be.showLessItems,Pt=be.showTitle,Yt=be.showTotal,Fr=be.simple,Lr=be.itemRender,Or=be.showPrevNextJumpers,kr=be.jumpPrevIcon,yr=be.jumpNextIcon,ur=be.selectComponentClass,Kr=be.selectPrefixCls,fn=be.pageSizeOptions,Un=this.state,hn=Un.current,Dn=Un.pageSize,Qi=Un.currentInputValue;if(rt===!0&&Le<=Dn)return null;var Pr=D(void 0,this.state,this.props),xn=[],Ei=null,di=null,Zi=null,_i=null,ji=null,qa=ct&&ct.goButton,Ki=Tt?1:2,ti=hn-1>0?hn-1:0,gi=hn+1<Pr?hn+1:Pr,yi=(0,ne.Z)(this.props,{aria:!0,data:!0}),$e=Yt&&Ae.createElement("li",{className:"".concat(ze,"-total-text")},Yt(Le,[Le===0?0:(hn-1)*Dn+1,hn*Dn>Le?Le:hn*Dn]));if(Fr){qa&&(typeof qa=="boolean"?ji=Ae.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Fe.jump_to_confirm):ji=Ae.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},qa),ji=Ae.createElement("li",{title:Pt?"".concat(Fe.jump_to).concat(hn,"/").concat(Pr):null,className:"".concat(ze,"-simple-pager")},ji));var _e=this.renderPrev(ti);return Ae.createElement("ul",(0,pe.Z)({className:M()(ze,"".concat(ze,"-simple"),(0,O.Z)({},"".concat(ze,"-disabled"),at),gt),style:fe,ref:this.paginationNode},yi),$e,_e?Ae.createElement("li",{title:Pt?Fe.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:M()("".concat(ze,"-prev"),(0,O.Z)({},"".concat(ze,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},_e):null,Ae.createElement("li",{title:Pt?"".concat(hn,"/").concat(Pr):null,className:"".concat(ze,"-simple-pager")},Ae.createElement("input",{type:"text",value:Qi,disabled:at,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Ae.createElement("span",{className:"".concat(ze,"-slash")},"/"),Pr),Ae.createElement("li",{title:Pt?Fe.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:M()("".concat(ze,"-next"),(0,O.Z)({},"".concat(ze,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(gi)),ji)}if(Pr<=3+Ki*2){var Me={locale:Fe,rootPrefixCls:ze,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Pt,itemRender:Lr};Pr||xn.push(Ae.createElement(Ce,(0,pe.Z)({},Me,{key:"noPager",page:1,className:"".concat(ze,"-item-disabled")})));for(var Ie=1;Ie<=Pr;Ie+=1){var Nt=hn===Ie;xn.push(Ae.createElement(Ce,(0,pe.Z)({},Me,{key:Ie,page:Ie,active:Nt})))}}else{var Mt=Tt?Fe.prev_3:Fe.prev_5,Sr=Tt?Fe.next_3:Fe.next_5,nr=Lr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(kr,"prev page")),Dr=Lr(this.getJumpNextPage(),"jump-next",this.getItemIcon(yr,"next page"));Or&&(Ei=nr?Ae.createElement("li",{title:Pt?Mt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:M()("".concat(ze,"-jump-prev"),(0,O.Z)({},"".concat(ze,"-jump-prev-custom-icon"),!!kr))},nr):null,di=Dr?Ae.createElement("li",{title:Pt?Sr:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:M()("".concat(ze,"-jump-next"),(0,O.Z)({},"".concat(ze,"-jump-next-custom-icon"),!!yr))},Dr):null),_i=Ae.createElement(Ce,{locale:Fe,last:!0,rootPrefixCls:ze,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Pr,page:Pr,active:!1,showTitle:Pt,itemRender:Lr}),Zi=Ae.createElement(Ce,{locale:Fe,rootPrefixCls:ze,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Pt,itemRender:Lr});var Hr=Math.max(1,hn-Ki),an=Math.min(hn+Ki,Pr);hn-1<=Ki&&(an=1+Ki*2),Pr-hn<=Ki&&(Hr=Pr-Ki*2);for(var jr=Hr;jr<=an;jr+=1){var Rr=hn===jr;xn.push(Ae.createElement(Ce,{locale:Fe,rootPrefixCls:ze,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:jr,page:jr,active:Rr,showTitle:Pt,itemRender:Lr}))}hn-1>=Ki*2&&hn!==3&&(xn[0]=(0,Ae.cloneElement)(xn[0],{className:"".concat(ze,"-item-after-jump-prev")}),xn.unshift(Ei)),Pr-hn>=Ki*2&&hn!==Pr-2&&(xn[xn.length-1]=(0,Ae.cloneElement)(xn[xn.length-1],{className:"".concat(ze,"-item-before-jump-next")}),xn.push(di)),Hr!==1&&xn.unshift(Zi),an!==Pr&&xn.push(_i)}var en=!this.hasPrev()||!Pr,wn=!this.hasNext()||!Pr,on=this.renderPrev(ti),Nn=this.renderNext(gi);return Ae.createElement("ul",(0,pe.Z)({className:M()(ze,gt,(0,O.Z)({},"".concat(ze,"-disabled"),at)),style:fe,ref:this.paginationNode},yi),$e,on?Ae.createElement("li",{title:Pt?Fe.prev_page:null,onClick:this.prev,tabIndex:en?null:0,onKeyPress:this.runIfEnterPrev,className:M()("".concat(ze,"-prev"),(0,O.Z)({},"".concat(ze,"-disabled"),en)),"aria-disabled":en},on):null,xn,Nn?Ae.createElement("li",{title:Pt?Fe.next_page:null,onClick:this.next,tabIndex:wn?null:0,onKeyPress:this.runIfEnterNext,className:M()("".concat(ze,"-next"),(0,O.Z)({},"".concat(ze,"-disabled"),wn)),"aria-disabled":wn},Nn):null,Ae.createElement(me,{disabled:at,locale:Fe,rootPrefixCls:ze,selectComponentClass:ur,selectPrefixCls:Kr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:hn,pageSize:Dn,pageSizeOptions:fn,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:qa}))}}],[{key:"getDerivedStateFromProps",value:function(be,ze){var gt={};if("current"in be&&(gt.current=be.current,be.current!==ze.current&&(gt.currentInputValue=gt.current)),"pageSize"in be&&be.pageSize!==ze.pageSize){var fe=ze.current,at=D(be.pageSize,ze,be);fe=fe>at?at:fe,"current"in be||(gt.current=fe,gt.currentInputValue=fe),gt.pageSize=be.pageSize}return gt}}]),Qe}(Ae.Component);Ye.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Ue,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Ue,locale:K.Z,style:{},itemRender:de,totalBoundaryShowSizeChanger:50};var ke=Ye,xe=C(22075),Te=C(36355),ve=C(19716),De=C(8628),he=C(9763),Se=C(57809);const Xe=H=>Ae.createElement(Se.default,Object.assign({},H,{showSearch:!0,size:"small"})),et=H=>Ae.createElement(Se.default,Object.assign({},H,{showSearch:!0,size:"middle"}));Xe.Option=Se.default.Option,et.Option=Se.default.Option;var je=C(9937),qe=C(17313),Et=C(83116),kt=C(37613);const Ot=H=>{const{componentCls:ie}=H;return{[`${ie}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${ie}-item-link`]:{color:H.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${ie}-item-link`]:{color:H.colorTextDisabled,cursor:"not-allowed"}}},[`&${ie}-disabled`]:{cursor:"not-allowed",[`${ie}-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}}},[`${ie}-item-link`]:{color:H.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${ie}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${ie}-simple-pager`]:{color:H.colorTextDisabled},[`${ie}-jump-prev, ${ie}-jump-next`]:{[`${ie}-item-link-icon`]:{opacity:0},[`${ie}-item-ellipsis`]:{opacity:1}}},[`&${ie}-simple`]:{[`${ie}-prev, ${ie}-next`]:{[`&${ie}-disabled ${ie}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},sr=H=>{const{componentCls:ie}=H;return{[`&${ie}-mini ${ie}-total-text, &${ie}-mini ${ie}-simple-pager`]:{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`},[`&${ie}-mini ${ie}-item`]:{minWidth:H.itemSizeSM,height:H.itemSizeSM,margin:0,lineHeight:`${H.itemSizeSM-2}px`},[`&${ie}-mini:not(${ie}-disabled) ${ie}-item:not(${ie}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:H.colorBgTextHover},"&:active":{backgroundColor:H.colorBgTextActive}},[`&${ie}-mini ${ie}-prev, &${ie}-mini ${ie}-next`]:{minWidth:H.itemSizeSM,height:H.itemSizeSM,margin:0,lineHeight:`${H.itemSizeSM}px`},[`&${ie}-mini:not(${ie}-disabled)`]:{[`${ie}-prev, ${ie}-next`]:{[`&:hover ${ie}-item-link`]:{backgroundColor:H.colorBgTextHover},[`&:active ${ie}-item-link`]:{backgroundColor:H.colorBgTextActive},[`&${ie}-disabled:hover ${ie}-item-link`]:{backgroundColor:"transparent"}}},[`
&${ie}-mini ${ie}-prev ${ie}-item-link,
&${ie}-mini ${ie}-next ${ie}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`}},[`&${ie}-mini ${ie}-jump-prev, &${ie}-mini ${ie}-jump-next`]:{height:H.itemSizeSM,marginInlineEnd:0,lineHeight:`${H.itemSizeSM}px`},[`&${ie}-mini ${ie}-options`]:{marginInlineStart:H.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:H.miniOptionsSizeChangerTop},"&-quick-jumper":{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,je.x0)(H)),{width:H.paginationMiniQuickJumperInputWidth,height:H.controlHeightSM})}}}},rr=H=>{const{componentCls:ie}=H;return{[`
&${ie}-simple ${ie}-prev,
&${ie}-simple ${ie}-next
`]:{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`,verticalAlign:"top",[`${ie}-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`}}},[`&${ie}-simple ${ie}-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"}}}}},br=H=>{const{componentCls:ie}=H;return{[`${ie}-jump-prev, ${ie}-jump-next`]:{outline:0,[`${ie}-item-container`]:{position:"relative",[`${ie}-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"}},[`${ie}-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":{[`${ie}-item-link-icon`]:{opacity:1},[`${ie}-item-ellipsis`]:{opacity:0}}},[`
${ie}-prev,
${ie}-jump-prev,
${ie}-jump-next
`]:{marginInlineEnd:H.marginXS},[`
${ie}-prev,
${ie}-next,
${ie}-jump-prev,
${ie}-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}`},[`${ie}-prev, ${ie}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:H.colorText,cursor:"pointer",userSelect:"none"},[`${ie}-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 ${ie}-item-link`]:{backgroundColor:H.colorBgTextHover},[`&:active ${ie}-item-link`]:{backgroundColor:H.colorBgTextActive},[`&${ie}-disabled:hover`]:{[`${ie}-item-link`]:{backgroundColor:"transparent"}}},[`${ie}-slash`]:{marginInlineEnd:H.paginationSlashMarginInlineEnd,marginInlineStart:H.paginationSlashMarginInlineStart},[`${ie}-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,je.ik)(H)),{width:H.controlHeightLG*1.25,height:H.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:H.marginXS,marginInlineEnd:H.marginXS})}}}},lr=H=>{const{componentCls:ie}=H;return{[`${ie}-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(${ie}-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}}}}},V=H=>{const{componentCls:ie}=H;return{[ie]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,qe.Wf)(H)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${ie}-total-text`]:{display:"inline-block",height:H.itemSize,marginInlineEnd:H.marginXS,lineHeight:`${H.itemSize-2}px`,verticalAlign:"middle"}}),lr(H)),br(H)),rr(H)),sr(H)),Ot(H)),{[`@media only screen and (max-width: ${H.screenLG}px)`]:{[`${ie}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${H.screenSM}px)`]:{[`${ie}-options`]:{display:"none"}}}),[`&${H.componentCls}-rtl`]:{direction:"rtl"}}},dt=H=>{const{componentCls:ie}=H;return{[`${ie}${ie}-disabled:not(${ie}-mini)`]:{"&, &:hover":{[`${ie}-item-link`]:{borderColor:H.colorBorder}},"&:focus-visible":{[`${ie}-item-link`]:{borderColor:H.colorBorder}},[`${ie}-item, ${ie}-item-link`]:{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,[`&:hover:not(${ie}-item-active)`]:{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,a:{color:H.colorTextDisabled}},[`&${ie}-item-active`]:{backgroundColor:H.itemActiveBgDisabled}},[`${ie}-prev, ${ie}-next`]:{"&:hover button":{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,color:H.colorTextDisabled},[`${ie}-item-link`]:{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder}}},[`${ie}:not(${ie}-mini)`]:{[`${ie}-prev, ${ie}-next`]:{"&:hover button":{borderColor:H.colorPrimaryHover,backgroundColor:H.itemBg},[`${ie}-item-link`]:{backgroundColor:H.itemLinkBg,borderColor:H.colorBorder},[`&:hover ${ie}-item-link`]:{borderColor:H.colorPrimary,backgroundColor:H.itemBg,color:H.colorPrimary},[`&${ie}-disabled`]:{[`${ie}-item-link`]:{borderColor:H.colorBorder,color:H.colorTextDisabled}}},[`${ie}-item`]:{backgroundColor:H.itemBg,border:`${H.lineWidth}px ${H.lineType} ${H.colorBorder}`,[`&:hover:not(${ie}-item-active)`]:{borderColor:H.colorPrimary,backgroundColor:H.itemBg,a:{color:H.colorPrimary}},"&-active":{borderColor:H.colorPrimary}}}}},I=H=>{const{componentCls:ie}=H;return{[`${ie}:not(${ie}-disabled)`]:{[`${ie}-item`]:Object.assign({},(0,qe.Qy)(H)),[`${ie}-jump-prev, ${ie}-jump-next`]:{"&:focus-visible":Object.assign({[`${ie}-item-link-icon`]:{opacity:1},[`${ie}-item-ellipsis`]:{opacity:0}},(0,qe.oN)(H))},[`${ie}-prev, ${ie}-next`]:{[`&:focus-visible ${ie}-item-link`]:Object.assign({},(0,qe.oN)(H))}}}};var p=(0,Et.Z)("Pagination",H=>{const ie=(0,kt.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,je.e5)(H),(0,je.TM)(H));return[V(ie),I(ie),H.wireframe&&dt(ie)]},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})),f=function(H,ie){var Qe={};for(var ye in H)Object.prototype.hasOwnProperty.call(H,ye)&&ie.indexOf(ye)<0&&(Qe[ye]=H[ye]);if(H!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,ye=Object.getOwnPropertySymbols(H);be<ye.length;be++)ie.indexOf(ye[be])<0&&Object.prototype.propertyIsEnumerable.call(H,ye[be])&&(Qe[ye[be]]=H[ye[be]]);return Qe},Y=H=>{const{prefixCls:ie,selectPrefixCls:Qe,className:ye,rootClassName:be,style:ze,size:gt,locale:fe,selectComponentClass:at,responsive:rt,showSizeChanger:Le}=H,Fe=f(H,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:ct}=(0,De.Z)(rt),{getPrefixCls:Tt,direction:Pt,pagination:Yt={}}=Ae.useContext(Te.E_),Fr=Tt("pagination",ie),[Lr,Or]=p(Fr),kr=Le!=null?Le:Yt.showSizeChanger,yr=Ae.useMemo(()=>{const Pr=Ae.createElement("span",{className:`${Fr}-item-ellipsis`},"\u2022\u2022\u2022"),xn=Ae.createElement("button",{className:`${Fr}-item-link`,type:"button",tabIndex:-1},Pt==="rtl"?Ae.createElement($.Z,null):Ae.createElement(v.Z,null)),Ei=Ae.createElement("button",{className:`${Fr}-item-link`,type:"button",tabIndex:-1},Pt==="rtl"?Ae.createElement(v.Z,null):Ae.createElement($.Z,null)),di=Ae.createElement("a",{className:`${Fr}-item-link`},Ae.createElement("div",{className:`${Fr}-item-container`},Pt==="rtl"?Ae.createElement(F.Z,{className:`${Fr}-item-link-icon`}):Ae.createElement(g,{className:`${Fr}-item-link-icon`}),Pr)),Zi=Ae.createElement("a",{className:`${Fr}-item-link`},Ae.createElement("div",{className:`${Fr}-item-container`},Pt==="rtl"?Ae.createElement(g,{className:`${Fr}-item-link-icon`}):Ae.createElement(F.Z,{className:`${Fr}-item-link-icon`}),Pr));return{prevIcon:xn,nextIcon:Ei,jumpPrevIcon:di,jumpNextIcon:Zi}},[Pt,Fr]),[ur]=(0,he.Z)("Pagination",xe.Z),Kr=Object.assign(Object.assign({},ur),fe),fn=(0,ve.Z)(gt),Un=fn==="small"||!!(ct&&!fn&&rt),hn=Tt("select",Qe),Dn=M()({[`${Fr}-mini`]:Un,[`${Fr}-rtl`]:Pt==="rtl"},Yt==null?void 0:Yt.className,ye,be,Or),Qi=Object.assign(Object.assign({},Yt==null?void 0:Yt.style),ze);return Lr(Ae.createElement(ke,Object.assign({},yr,Fe,{style:Qi,prefixCls:Fr,selectPrefixCls:hn,className:Dn,selectComponentClass:at||(Un?Xe:et),locale:Kr,showSizeChanger:kr})))},Be=Y},5112:function(dn,Ut,C){"use strict";C.d(Ut,{ZP:function(){return De}});var pe=C(92310),Ae=C.n(pe),P=C(18929),Ne=C(26112),te=C(59301),W=C(36355),S=C(19716);const g=te.createContext(null),F=g.Provider;var v=g;const $=te.createContext(null),_=$.Provider;var M=C(5630),O=C(8654),T=C(1684),L=C(32441),q=C(17313),R=C(83116),se=C(37613);const ne=he=>{const{componentCls:Se,antCls:Xe}=he,et=`${Se}-group`;return{[et]:Object.assign(Object.assign({},(0,q.Wf)(he)),{display:"inline-block",fontSize:0,[`&${et}-rtl`]:{direction:"rtl"},[`${Xe}-badge ${Xe}-badge-count`]:{zIndex:1},[`> ${Xe}-badge:not(:first-child) > ${Xe}-button-wrapper`]:{borderInlineStart:"none"}})}},J=he=>{const{componentCls:Se,wrapperMarginInlineEnd:Xe,colorPrimary:et,radioSize:je,motionDurationSlow:qe,motionDurationMid:Et,motionEaseInOutCirc:kt,colorBgContainer:Ot,colorBorder:sr,lineWidth:rr,dotSize:br,colorBgContainerDisabled:lr,colorTextDisabled:V,paddingXS:dt,dotColorDisabled:I,lineType:p,radioDotDisabledSize:f,wireframe:x,colorWhite:Y}=he,Be=`${Se}-inner`;return{[`${Se}-wrapper`]:Object.assign(Object.assign({},(0,q.Wf)(he)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Xe,cursor:"pointer",[`&${Se}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:he.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${Se}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${rr}px ${p} ${et}`,borderRadius:"50%",visibility:"hidden",content:'""'},[Se]:Object.assign(Object.assign({},(0,q.Wf)(he)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Se}-wrapper:hover &,
&:hover ${Be}`]:{borderColor:et},[`${Se}-input:focus-visible + ${Be}`]:Object.assign({},(0,q.oN)(he)),[`${Se}:hover::after, ${Se}-wrapper:hover &::after`]:{visibility:"visible"},[`${Se}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:je,height:je,marginBlockStart:je/-2,marginInlineStart:je/-2,backgroundColor:x?et:Y,borderBlockStart:0,borderInlineStart:0,borderRadius:je,transform:"scale(0)",opacity:0,transition:`all ${qe} ${kt}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:je,height:je,backgroundColor:Ot,borderColor:sr,borderStyle:"solid",borderWidth:rr,borderRadius:"50%",transition:`all ${Et}`},[`${Se}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Se}-checked`]:{[Be]:{borderColor:et,backgroundColor:x?Ot:et,"&::after":{transform:`scale(${br/je})`,opacity:1,transition:`all ${qe} ${kt}`}}},[`${Se}-disabled`]:{cursor:"not-allowed",[Be]:{backgroundColor:lr,borderColor:sr,cursor:"not-allowed","&::after":{backgroundColor:I}},[`${Se}-input`]:{cursor:"not-allowed"},[`${Se}-disabled + span`]:{color:V,cursor:"not-allowed"},[`&${Se}-checked`]:{[Be]:{"&::after":{transform:`scale(${f/je})`}}}},[`span${Se} + *`]:{paddingInlineStart:dt,paddingInlineEnd:dt}})}},G=he=>{const{buttonColor:Se,controlHeight:Xe,componentCls:et,lineWidth:je,lineType:qe,colorBorder:Et,motionDurationSlow:kt,motionDurationMid:Ot,buttonPaddingInline:sr,fontSize:rr,buttonBg:br,fontSizeLG:lr,controlHeightLG:V,controlHeightSM:dt,paddingXS:I,borderRadius:p,borderRadiusSM:f,borderRadiusLG:x,buttonCheckedBg:Y,buttonSolidCheckedColor:Be,colorTextDisabled:H,colorBgContainerDisabled:ie,buttonCheckedBgDisabled:Qe,buttonCheckedColorDisabled:ye,colorPrimary:be,colorPrimaryHover:ze,colorPrimaryActive:gt,buttonSolidCheckedBg:fe,buttonSolidCheckedHoverBg:at,buttonSolidCheckedActiveBg:rt}=he;return{[`${et}-button-wrapper`]:{position:"relative",display:"inline-block",height:Xe,margin:0,paddingInline:sr,paddingBlock:0,color:Se,fontSize:rr,lineHeight:`${Xe-je*2}px`,background:br,border:`${je}px ${qe} ${Et}`,borderBlockStartWidth:je+.02,borderInlineStartWidth:0,borderInlineEndWidth:je,cursor:"pointer",transition:[`color ${Ot}`,`background ${Ot}`,`box-shadow ${Ot}`].join(","),a:{color:Se},[`> ${et}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-je,insetInlineStart:-je,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:je,paddingInline:0,backgroundColor:Et,transition:`background-color ${kt}`,content:'""'}},"&:first-child":{borderInlineStart:`${je}px ${qe} ${Et}`,borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p},"&:first-child:last-child":{borderRadius:p},[`${et}-group-large &`]:{height:V,fontSize:lr,lineHeight:`${V-je*2}px`,"&:first-child":{borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x}},[`${et}-group-small &`]:{height:dt,paddingInline:I-je,paddingBlock:0,lineHeight:`${dt-je*2}px`,"&:first-child":{borderStartStartRadius:f,borderEndStartRadius:f},"&:last-child":{borderStartEndRadius:f,borderEndEndRadius:f}},"&:hover":{position:"relative",color:be},"&:has(:focus-visible)":Object.assign({},(0,q.oN)(he)),[`${et}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${et}-button-wrapper-disabled)`]:{zIndex:1,color:be,background:Y,borderColor:be,"&::before":{backgroundColor:be},"&:first-child":{borderColor:be},"&:hover":{color:ze,borderColor:ze,"&::before":{backgroundColor:ze}},"&:active":{color:gt,borderColor:gt,"&::before":{backgroundColor:gt}}},[`${et}-group-solid &-checked:not(${et}-button-wrapper-disabled)`]:{color:Be,background:fe,borderColor:fe,"&:hover":{color:Be,background:at,borderColor:at},"&:active":{color:Be,background:rt,borderColor:rt}},"&-disabled":{color:H,backgroundColor:ie,borderColor:Et,cursor:"not-allowed","&:first-child, &:hover":{color:H,backgroundColor:ie,borderColor:Et}},[`&-disabled${et}-button-wrapper-checked`]:{color:ye,backgroundColor:Qe,borderColor:Et,boxShadow:"none"}}}},K=he=>he-4*2;var le=(0,R.Z)("Radio",he=>{const{controlOutline:Se,controlOutlineWidth:Xe,radioSize:et}=he,je=`0 0 0 ${Xe}px ${Se}`,qe=je,Et=K(et),kt=(0,se.TS)(he,{radioDotDisabledSize:Et,radioFocusShadow:je,radioButtonFocusShadow:qe});return[ne(kt),J(kt),G(kt)]},he=>{const{wireframe:Se,padding:Xe,marginXS:et,lineWidth:je,fontSizeLG:qe,colorText:Et,colorBgContainer:kt,colorTextDisabled:Ot,controlItemBgActiveDisabled:sr,colorTextLightSolid:rr,colorPrimary:br,colorPrimaryHover:lr,colorPrimaryActive:V}=he,dt=4,I=qe,p=Se?K(I):I-(dt+je)*2;return{radioSize:I,dotSize:p,dotColorDisabled:Ot,buttonSolidCheckedColor:rr,buttonSolidCheckedBg:br,buttonSolidCheckedHoverBg:lr,buttonSolidCheckedActiveBg:V,buttonBg:kt,buttonCheckedBg:kt,buttonColor:Et,buttonCheckedBgDisabled:sr,buttonCheckedColorDisabled:Ot,buttonPaddingInline:Xe-je,wrapperMarginInlineEnd:et}}),me=C(14088),Oe=C(4572),Ce=function(he,Se){var Xe={};for(var et in he)Object.prototype.hasOwnProperty.call(he,et)&&Se.indexOf(et)<0&&(Xe[et]=he[et]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,et=Object.getOwnPropertySymbols(he);je<et.length;je++)Se.indexOf(et[je])<0&&Object.prototype.propertyIsEnumerable.call(he,et[je])&&(Xe[et[je]]=he[et[je]]);return Xe};const Ue=(he,Se)=>{var Xe,et;const je=te.useContext(v),qe=te.useContext($),{getPrefixCls:Et,direction:kt,radio:Ot}=te.useContext(W.E_),sr=te.useRef(null),rr=(0,O.sQ)(Se,sr),{isFormItemInput:br}=te.useContext(L.aM),lr=gt=>{var fe,at;(fe=he.onChange)===null||fe===void 0||fe.call(he,gt),(at=je==null?void 0:je.onChange)===null||at===void 0||at.call(je,gt)},{prefixCls:V,className:dt,rootClassName:I,children:p,style:f}=he,x=Ce(he,["prefixCls","className","rootClassName","children","style"]),Y=Et("radio",V),Be=((je==null?void 0:je.optionType)||qe)==="button",H=Be?`${Y}-button`:Y,[ie,Qe]=le(Y),ye=Object.assign({},x),be=te.useContext(T.Z);je&&(ye.name=je.name,ye.onChange=lr,ye.checked=he.value===je.value,ye.disabled=(Xe=ye.disabled)!==null&&Xe!==void 0?Xe:je.disabled),ye.disabled=(et=ye.disabled)!==null&&et!==void 0?et:be;const ze=Ae()(`${H}-wrapper`,{[`${H}-wrapper-checked`]:ye.checked,[`${H}-wrapper-disabled`]:ye.disabled,[`${H}-wrapper-rtl`]:kt==="rtl",[`${H}-wrapper-in-form-item`]:br},Ot==null?void 0:Ot.className,dt,I,Qe);return ie(te.createElement(me.Z,{component:"Radio",disabled:ye.disabled},te.createElement("label",{className:ze,style:Object.assign(Object.assign({},Ot==null?void 0:Ot.style),f),onMouseEnter:he.onMouseEnter,onMouseLeave:he.onMouseLeave},te.createElement(M.Z,Object.assign({},ye,{className:Ae()(ye.className,!Be&&Oe.A),type:"radio",prefixCls:H,ref:rr})),p!==void 0?te.createElement("span",null,p):null)))};var de=te.forwardRef(Ue);const D=te.forwardRef((he,Se)=>{const{getPrefixCls:Xe,direction:et}=te.useContext(W.E_),[je,qe]=(0,P.Z)(he.defaultValue,{value:he.value}),Et=fe=>{const at=je,rt=fe.target.value;"value"in he||qe(rt);const{onChange:Le}=he;Le&&rt!==at&&Le(fe)},{prefixCls:kt,className:Ot,rootClassName:sr,options:rr,buttonStyle:br="outline",disabled:lr,children:V,size:dt,style:I,id:p,onMouseEnter:f,onMouseLeave:x,onFocus:Y,onBlur:Be}=he,H=Xe("radio",kt),ie=`${H}-group`,[Qe,ye]=le(H);let be=V;rr&&rr.length>0&&(be=rr.map(fe=>typeof fe=="string"||typeof fe=="number"?te.createElement(de,{key:fe.toString(),prefixCls:H,disabled:lr,value:fe,checked:je===fe},fe):te.createElement(de,{key:`radio-group-value-options-${fe.value}`,prefixCls:H,disabled:fe.disabled||lr,value:fe.value,checked:je===fe.value,title:fe.title,style:fe.style},fe.label)));const ze=(0,S.Z)(dt),gt=Ae()(ie,`${ie}-${br}`,{[`${ie}-${ze}`]:ze,[`${ie}-rtl`]:et==="rtl"},Ot,sr,ye);return Qe(te.createElement("div",Object.assign({},(0,Ne.Z)(he,{aria:!0,data:!0}),{className:gt,style:I,onMouseEnter:f,onMouseLeave:x,onFocus:Y,onBlur:Be,id:p,ref:Se}),te.createElement(F,{value:{onChange:Et,value:je,disabled:he.disabled,name:he.name,optionType:he.optionType}},be)))});var Ye=te.memo(D),ke=function(he,Se){var Xe={};for(var et in he)Object.prototype.hasOwnProperty.call(he,et)&&Se.indexOf(et)<0&&(Xe[et]=he[et]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,et=Object.getOwnPropertySymbols(he);je<et.length;je++)Se.indexOf(et[je])<0&&Object.prototype.propertyIsEnumerable.call(he,et[je])&&(Xe[et[je]]=he[et[je]]);return Xe};const xe=(he,Se)=>{const{getPrefixCls:Xe}=te.useContext(W.E_),{prefixCls:et}=he,je=ke(he,["prefixCls"]),qe=Xe("radio",et);return te.createElement(_,{value:"button"},te.createElement(de,Object.assign({prefixCls:qe},je,{type:"radio",ref:Se})))};var Te=te.forwardRef(xe);const ve=de;ve.Button=Te,ve.Group=Ye,ve.__ANT_RADIO=!0;var De=ve},57809:function(dn,Ut,C){"use strict";var pe=C(92310),Ae=C.n(pe),P=C(77861),Ne=C(2738),te=C(59301),W=C(53487),S=C(62892),g=C(19080),F=C(36355),v=C(1684),$=C(93891),_=C(19716),M=C(32441),O=C(33234),T=C(14154),L=C(58582),q=C(84443),R=C(66339),se=function(le,me){var Oe={};for(var Ce in le)Object.prototype.hasOwnProperty.call(le,Ce)&&me.indexOf(Ce)<0&&(Oe[Ce]=le[Ce]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Ce=Object.getOwnPropertySymbols(le);Ue<Ce.length;Ue++)me.indexOf(Ce[Ue])<0&&Object.prototype.propertyIsEnumerable.call(le,Ce[Ue])&&(Oe[Ce[Ue]]=le[Ce[Ue]]);return Oe};const ne="SECRET_COMBOBOX_MODE_DO_NOT_USE",J=(le,me)=>{var Oe,{prefixCls:Ce,bordered:Ue=!0,className:ee,rootClassName:de,getPopupContainer:D,popupClassName:Ye,dropdownClassName:ke,listHeight:xe=256,placement:Te,listItemHeight:ve=24,size:De,disabled:he,notFoundContent:Se,status:Xe,builtinPlacements:et,dropdownMatchSelectWidth:je,popupMatchSelectWidth:qe,direction:Et,style:kt,allowClear:Ot}=le,sr=se(le,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:rr,getPrefixCls:br,renderEmpty:lr,direction:V,virtual:dt,popupMatchSelectWidth:I,popupOverflow:p,select:f}=te.useContext(F.E_),x=br("select",Ce),Y=br(),Be=Et!=null?Et:V,{compactSize:H,compactItemClassnames:ie}=(0,O.ri)(x,Be),[Qe,ye]=(0,T.Z)(x),be=te.useMemo(()=>{const{mode:Qi}=sr;if(Qi!=="combobox")return Qi===ne?"combobox":Qi},[sr.mode]),ze=be==="multiple"||be==="tags",gt=(0,q.Z)(sr.suffixIcon,sr.showArrow),fe=(Oe=qe!=null?qe:je)!==null&&Oe!==void 0?Oe:I,{status:at,hasFeedback:rt,isFormItemInput:Le,feedbackIcon:Fe}=te.useContext(M.aM),ct=(0,g.F)(at,Xe);let Tt;Se!==void 0?Tt=Se:be==="combobox"?Tt=null:Tt=(lr==null?void 0:lr("Select"))||te.createElement($.Z,{componentName:"Select"});const{suffixIcon:Pt,itemIcon:Yt,removeIcon:Fr,clearIcon:Lr}=(0,R.Z)(Object.assign(Object.assign({},sr),{multiple:ze,hasFeedback:rt,feedbackIcon:Fe,showSuffixIcon:gt,prefixCls:x,showArrow:sr.showArrow,componentName:"Select"})),Or=Ot===!0?{clearIcon:Lr}:Ot,kr=(0,Ne.Z)(sr,["suffixIcon","itemIcon"]),yr=Ae()(Ye||ke,{[`${x}-dropdown-${Be}`]:Be==="rtl"},de,ye),ur=(0,_.Z)(Qi=>{var Pr;return(Pr=De!=null?De:H)!==null&&Pr!==void 0?Pr:Qi}),Kr=te.useContext(v.Z),fn=he!=null?he:Kr,Un=Ae()({[`${x}-lg`]:ur==="large",[`${x}-sm`]:ur==="small",[`${x}-rtl`]:Be==="rtl",[`${x}-borderless`]:!Ue,[`${x}-in-form-item`]:Le},(0,g.Z)(x,ct,rt),ie,f==null?void 0:f.className,ee,de,ye),hn=te.useMemo(()=>Te!==void 0?Te:Be==="rtl"?"bottomRight":"bottomLeft",[Te,Be]),Dn=(0,L.Z)(et,p);return Qe(te.createElement(P.ZP,Object.assign({ref:me,virtual:dt,showSearch:f==null?void 0:f.showSearch},kr,{style:Object.assign(Object.assign({},f==null?void 0:f.style),kt),dropdownMatchSelectWidth:fe,builtinPlacements:Dn,transitionName:(0,S.m)(Y,"slide-up",sr.transitionName),listHeight:xe,listItemHeight:ve,mode:be,prefixCls:x,placement:hn,direction:Be,suffixIcon:Pt,menuItemSelectedIcon:Yt,removeIcon:Fr,allowClear:Or,notFoundContent:Tt,className:Un,getPopupContainer:D||rr,dropdownClassName:yr,disabled:fn})))},G=te.forwardRef(J),K=(0,W.Z)(G);G.SECRET_COMBOBOX_MODE_DO_NOT_USE=ne,G.Option=P.Wx,G.OptGroup=P.Xo,G._InternalPanelDoNotUseOrYouWillBeFired=K,Ut.default=G},14154:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return G}});var pe=C(17313),Ae=C(74207),P=C(37613),Ne=C(83116),te=C(13826),W=C(92899);const S=K=>{const{optionHeight:le,optionFontSize:me,optionLineHeight:Oe,optionPadding:Ce}=K;return{position:"relative",display:"block",minHeight:le,padding:Ce,color:K.colorText,fontWeight:"normal",fontSize:me,lineHeight:Oe,boxSizing:"border-box"}};var F=K=>{const{antCls:le,componentCls:me}=K,Oe=`${me}-item`,Ce=`&${le}-slide-up-enter${le}-slide-up-enter-active`,Ue=`&${le}-slide-up-appear${le}-slide-up-appear-active`,ee=`&${le}-slide-up-leave${le}-slide-up-leave-active`,de=`${me}-dropdown-placement-`;return[{[`${me}-dropdown`]:Object.assign(Object.assign({},(0,pe.Wf)(K)),{position:"absolute",top:-9999,zIndex:K.zIndexPopup,boxSizing:"border-box",padding:K.paddingXXS,overflow:"hidden",fontSize:K.fontSize,fontVariant:"initial",backgroundColor:K.colorBgElevated,borderRadius:K.borderRadiusLG,outline:"none",boxShadow:K.boxShadowSecondary,[`
${Ce}${de}bottomLeft,
${Ue}${de}bottomLeft
`]:{animationName:te.fJ},[`
${Ce}${de}topLeft,
${Ue}${de}topLeft,
${Ce}${de}topRight,
${Ue}${de}topRight
`]:{animationName:te.Qt},[`${ee}${de}bottomLeft`]:{animationName:te.Uw},[`
${ee}${de}topLeft,
${ee}${de}topRight
`]:{animationName:te.ly},"&-hidden":{display:"none"},[`${Oe}`]:Object.assign(Object.assign({},S(K)),{cursor:"pointer",transition:`background ${K.motionDurationSlow} ease`,borderRadius:K.borderRadiusSM,"&-group":{color:K.colorTextDescription,fontSize:K.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},pe.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Oe}-option-disabled)`]:{backgroundColor:K.optionActiveBg},[`&-selected:not(${Oe}-option-disabled)`]:{color:K.optionSelectedColor,fontWeight:K.optionSelectedFontWeight,backgroundColor:K.optionSelectedBg,[`${Oe}-option-state`]:{color:K.colorPrimary}},"&-disabled":{[`&${Oe}-option-selected`]:{backgroundColor:K.colorBgContainerDisabled},color:K.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:K.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,te.oN)(K,"slide-up"),(0,te.oN)(K,"slide-down"),(0,W.Fm)(K,"move-up"),(0,W.Fm)(K,"move-down")]};const v=2,$=K=>{let{controlHeightSM:le,controlHeight:me,lineWidth:Oe}=K;const Ce=(me-le)/2-Oe,Ue=Math.ceil(Ce/2);return[Ce,Ue]};function _(K,le){const{componentCls:me,iconCls:Oe}=K,Ce=`${me}-selection-overflow`,Ue=K.multipleSelectItemHeight,[ee]=$(K),de=le?`${me}-${le}`:"";return{[`${me}-multiple${de}`]:{fontSize:K.fontSize,[Ce]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${me}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${ee-v}px ${v*2}px`,borderRadius:K.borderRadius,[`${me}-show-search&`]:{cursor:"text"},[`${me}-disabled&`]:{background:K.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${v}px 0`,lineHeight:`${Ue}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${me}-show-arrow ${me}-selector,
&${me}-allow-clear ${me}-selector
`]:{paddingInlineEnd:K.fontSizeIcon+K.controlPaddingHorizontal},[`${me}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Ue,marginTop:v,marginBottom:v,lineHeight:`${Ue-K.lineWidth*2}px`,background:K.multipleItemBg,border:`${K.lineWidth}px ${K.lineType} ${K.multipleItemBorderColor}`,borderRadius:K.borderRadiusSM,cursor:"default",transition:`font-size ${K.motionDurationSlow}, line-height ${K.motionDurationSlow}, height ${K.motionDurationSlow}`,userSelect:"none",marginInlineEnd:v*2,paddingInlineStart:K.paddingXS,paddingInlineEnd:K.paddingXS/2,[`${me}-disabled&`]:{color:K.multipleItemColorDisabled,borderColor:K.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:K.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,pe.Ro)()),{display:"inline-flex",alignItems:"center",color:K.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Oe}`]:{verticalAlign:"-0.2em"},"&:hover":{color:K.colorIconHover}})},[`${Ce}-item + ${Ce}-item`]:{[`${me}-selection-search`]:{marginInlineStart:0}},[`${me}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:K.inputPaddingHorizontalBase-ee,"\n &-input,\n &-mirror\n ":{height:Ue,fontFamily:K.fontFamily,lineHeight:`${Ue}px`,transition:`all ${K.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${me}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:K.inputPaddingHorizontalBase,insetInlineEnd:K.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${K.motionDurationSlow}`}}}}var O=K=>{const{componentCls:le}=K,me=(0,P.TS)(K,{controlHeight:K.controlHeightSM,multipleSelectItemHeight:K.controlHeightXS,borderRadius:K.borderRadiusSM,borderRadiusSM:K.borderRadiusXS}),Oe=(0,P.TS)(K,{fontSize:K.fontSizeLG,controlHeight:K.controlHeightLG,multipleSelectItemHeight:K.multipleItemHeightLG,borderRadius:K.borderRadiusLG,borderRadiusSM:K.borderRadius}),[,Ce]=$(K);return[_(K),_(me,"sm"),{[`${le}-multiple${le}-sm`]:{[`${le}-selection-placeholder`]:{insetInline:K.controlPaddingHorizontalSM-K.lineWidth},[`${le}-selection-search`]:{marginInlineStart:Ce}}},_(Oe,"lg")]};function T(K,le){const{componentCls:me,inputPaddingHorizontalBase:Oe,borderRadius:Ce}=K,Ue=K.controlHeight-K.lineWidth*2,ee=Math.ceil(K.fontSize*1.25),de=le?`${me}-${le}`:"";return{[`${me}-single${de}`]:{fontSize:K.fontSize,[`${me}-selector`]:Object.assign(Object.assign({},(0,pe.Wf)(K)),{display:"flex",borderRadius:Ce,[`${me}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Oe,insetInlineEnd:Oe,bottom:0,"&-input":{width:"100%"}},[`
${me}-selection-item,
${me}-selection-placeholder
`]:{padding:0,lineHeight:`${Ue}px`,transition:`all ${K.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Ue}px`}},[`${me}-selection-item`]:{position:"relative",userSelect:"none"},[`${me}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${me}-selection-item:after`,`${me}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${me}-show-arrow ${me}-selection-item,
&${me}-show-arrow ${me}-selection-placeholder
`]:{paddingInlineEnd:ee},[`&${me}-open ${me}-selection-item`]:{color:K.colorTextPlaceholder},[`&:not(${me}-customize-input)`]:{[`${me}-selector`]:{width:"100%",height:K.controlHeight,padding:`0 ${Oe}px`,[`${me}-selection-search-input`]:{height:Ue},"&:after":{lineHeight:`${Ue}px`}}},[`&${me}-customize-input`]:{[`${me}-selector`]:{"&:after":{display:"none"},[`${me}-selection-search`]:{position:"static",width:"100%"},[`${me}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Oe}px`,"&:after":{display:"none"}}}}}}}function L(K){const{componentCls:le}=K,me=K.controlPaddingHorizontalSM-K.lineWidth;return[T(K),T((0,P.TS)(K,{controlHeight:K.controlHeightSM,borderRadius:K.borderRadiusSM}),"sm"),{[`${le}-single${le}-sm`]:{[`&:not(${le}-customize-input)`]:{[`${le}-selection-search`]:{insetInlineStart:me,insetInlineEnd:me},[`${le}-selector`]:{padding:`0 ${me}px`},[`&${le}-show-arrow ${le}-selection-search`]:{insetInlineEnd:me+K.fontSize*1.5},[`
&${le}-show-arrow ${le}-selection-item,
&${le}-show-arrow ${le}-selection-placeholder
`]:{paddingInlineEnd:K.fontSize*1.5}}}},T((0,P.TS)(K,{controlHeight:K.singleItemHeightLG,fontSize:K.fontSizeLG,borderRadius:K.borderRadiusLG}),"lg")]}const q=K=>{const{componentCls:le,selectorBg:me}=K;return{position:"relative",backgroundColor:me,border:`${K.lineWidth}px ${K.lineType} ${K.colorBorder}`,transition:`all ${K.motionDurationMid} ${K.motionEaseInOut}`,input:{cursor:"pointer"},[`${le}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${le}-disabled&`]:{color:K.colorTextDisabled,background:K.colorBgContainerDisabled,cursor:"not-allowed",[`${le}-multiple&`]:{background:K.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},R=function(K,le){let me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Oe,borderHoverColor:Ce,outlineColor:Ue,antCls:ee}=le,de=me?{[`${Oe}-selector`]:{borderColor:Ce}}:{};return{[K]:{[`&:not(${Oe}-disabled):not(${Oe}-customize-input):not(${ee}-pagination-size-changer)`]:Object.assign(Object.assign({},de),{[`${Oe}-focused& ${Oe}-selector`]:{borderColor:Ce,boxShadow:`0 0 0 ${le.controlOutlineWidth}px ${Ue}`,outline:0},[`&:hover ${Oe}-selector`]:{borderColor:Ce}})}}},se=K=>{const{componentCls:le}=K;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"}}}},ne=K=>{const{componentCls:le,inputPaddingHorizontalBase:me,iconCls:Oe}=K;return{[le]:Object.assign(Object.assign({},(0,pe.Wf)(K)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${le}-customize-input) ${le}-selector`]:Object.assign(Object.assign({},q(K)),se(K)),[`${le}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},pe.vS),[`${le}-selection-placeholder`]:Object.assign(Object.assign({},pe.vS),{flex:1,color:K.colorTextPlaceholder,pointerEvents:"none"}),[`${le}-arrow`]:Object.assign(Object.assign({},(0,pe.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:me,height:K.fontSizeIcon,marginTop:-K.fontSizeIcon/2,color:K.colorTextQuaternary,fontSize:K.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Oe]:{verticalAlign:"top",transition:`transform ${K.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:me,zIndex:1,display:"inline-block",width:K.fontSizeIcon,height:K.fontSizeIcon,marginTop:-K.fontSizeIcon/2,color:K.colorTextQuaternary,fontSize:K.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:K.clearBg,cursor:"pointer",opacity:0,transition:`color ${K.motionDurationMid} ease, opacity ${K.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:K.colorTextTertiary}},"&:hover":{[`${le}-clear`]:{opacity:1}}}),[`${le}-has-feedback`]:{[`${le}-clear`]:{insetInlineEnd:me+K.fontSize+K.paddingXS}}}},J=K=>{const{componentCls:le}=K;return[{[le]:{[`&-borderless ${le}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${le}-in-form-item`]:{width:"100%"}}},ne(K),L(K),O(K),F(K),{[`${le}-rtl`]:{direction:"rtl"}},R(le,(0,P.TS)(K,{borderHoverColor:K.colorPrimaryHover,outlineColor:K.controlOutline})),R(`${le}-status-error`,(0,P.TS)(K,{borderHoverColor:K.colorErrorHover,outlineColor:K.colorErrorOutline}),!0),R(`${le}-status-warning`,(0,P.TS)(K,{borderHoverColor:K.colorWarningHover,outlineColor:K.colorWarningOutline}),!0),(0,Ae.c)(K,{borderElCls:`${le}-selector`,focusElCls:`${le}-focused`})]};var G=(0,Ne.Z)("Select",(K,le)=>{let{rootPrefixCls:me}=le;const Oe=(0,P.TS)(K,{rootPrefixCls:me,inputPaddingHorizontalBase:K.paddingSM-1,multipleSelectItemHeight:K.multipleItemHeight});return[J(Oe)]},K=>{const{fontSize:le,lineHeight:me,controlHeight:Oe,controlPaddingHorizontal:Ce,zIndexPopupBase:Ue,colorText:ee,fontWeightStrong:de,controlItemBgActive:D,controlItemBgHover:Ye,colorBgContainer:ke,colorFillSecondary:xe,controlHeightLG:Te,controlHeightSM:ve,colorBgContainerDisabled:De,colorTextDisabled:he}=K;return{zIndexPopup:Ue+50,optionSelectedColor:ee,optionSelectedFontWeight:de,optionSelectedBg:D,optionActiveBg:Ye,optionPadding:`${(Oe-le*me)/2}px ${Ce}px`,optionFontSize:le,optionLineHeight:me,optionHeight:Oe,selectorBg:ke,clearBg:ke,singleItemHeightLG:Te,multipleItemBg:xe,multipleItemBorderColor:"transparent",multipleItemHeight:ve,multipleItemHeightLG:Oe,multipleSelectorBgDisabled:De,multipleItemColorDisabled:he,multipleItemBorderColorDisabled:"transparent"}})},58582:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return Ae}});const pe=P=>{const te={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:P==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},te),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},te),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},te),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},te),{points:["br","tr"],offset:[0,-4]})}};function Ae(P,Ne){return P||pe(Ne)}},84443:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return pe}});function pe(Ae,P){return P!==void 0?P:Ae!==null}},66339:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return g}});var pe=C(40001),Ae=C(19248),P=C(99267),Ne=C(84105),te=C(58617),W=C(47472),S=C(59301);function g(F){let{suffixIcon:v,clearIcon:$,menuItemSelectedIcon:_,removeIcon:M,loading:O,multiple:T,hasFeedback:L,prefixCls:q,showSuffixIcon:R,feedbackIcon:se,showArrow:ne,componentName:J}=F;const G=$!=null?$:S.createElement(Ae.Z,null),K=Ce=>v===null&&!L&&!ne?null:S.createElement(S.Fragment,null,R!==!1&&Ce,L&&se);let le=null;if(v!==void 0)le=K(v);else if(O)le=K(S.createElement(te.Z,{spin:!0}));else{const Ce=`${q}-suffix`;le=Ue=>{let{open:ee,showSearch:de}=Ue;return K(ee&&de?S.createElement(W.Z,{className:Ce}):S.createElement(Ne.Z,{className:Ce}))}}let me=null;_!==void 0?me=_:T?me=S.createElement(pe.Z,null):me=null;let Oe=null;return M!==void 0?Oe=M:Oe=S.createElement(P.Z,null),{clearIcon:G,suffixIcon:le,itemIcon:me,removeIcon:Oe}}},61621:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return p}});var pe=C(92310),Ae=C.n(pe),P=C(59301),Ne=C(36355),te=C(2738),S=f=>{const{prefixCls:x,className:Y,style:Be,size:H,shape:ie}=f,Qe=Ae()({[`${x}-lg`]:H==="large",[`${x}-sm`]:H==="small"}),ye=Ae()({[`${x}-circle`]:ie==="circle",[`${x}-square`]:ie==="square",[`${x}-round`]:ie==="round"}),be=P.useMemo(()=>typeof H=="number"?{width:H,height:H,lineHeight:`${H}px`}:{},[H]);return P.createElement("span",{className:Ae()(x,Qe,ye,Y),style:Object.assign(Object.assign({},be),Be)})},g=C(36237),F=C(83116),v=C(37613);const $=new g.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),_=f=>({height:f,lineHeight:`${f}px`}),M=f=>Object.assign({width:f},_(f)),O=f=>({background:f.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:$,animationDuration:f.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),T=f=>Object.assign({width:f*5,minWidth:f*5},_(f)),L=f=>{const{skeletonAvatarCls:x,gradientFromColor:Y,controlHeight:Be,controlHeightLG:H,controlHeightSM:ie}=f;return{[`${x}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Y},M(Be)),[`${x}${x}-circle`]:{borderRadius:"50%"},[`${x}${x}-lg`]:Object.assign({},M(H)),[`${x}${x}-sm`]:Object.assign({},M(ie))}},q=f=>{const{controlHeight:x,borderRadiusSM:Y,skeletonInputCls:Be,controlHeightLG:H,controlHeightSM:ie,gradientFromColor:Qe}=f;return{[`${Be}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Qe,borderRadius:Y},T(x)),[`${Be}-lg`]:Object.assign({},T(H)),[`${Be}-sm`]:Object.assign({},T(ie))}},R=f=>Object.assign({width:f},_(f)),se=f=>{const{skeletonImageCls:x,imageSizeBase:Y,gradientFromColor:Be,borderRadiusSM:H}=f;return{[`${x}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Be,borderRadius:H},R(Y*2)),{[`${x}-path`]:{fill:"#bfbfbf"},[`${x}-svg`]:Object.assign(Object.assign({},R(Y)),{maxWidth:Y*4,maxHeight:Y*4}),[`${x}-svg${x}-svg-circle`]:{borderRadius:"50%"}}),[`${x}${x}-circle`]:{borderRadius:"50%"}}},ne=(f,x,Y)=>{const{skeletonButtonCls:Be}=f;return{[`${Y}${Be}-circle`]:{width:x,minWidth:x,borderRadius:"50%"},[`${Y}${Be}-round`]:{borderRadius:x}}},J=f=>Object.assign({width:f*2,minWidth:f*2},_(f)),G=f=>{const{borderRadiusSM:x,skeletonButtonCls:Y,controlHeight:Be,controlHeightLG:H,controlHeightSM:ie,gradientFromColor:Qe}=f;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Y}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Qe,borderRadius:x,width:Be*2,minWidth:Be*2},J(Be))},ne(f,Be,Y)),{[`${Y}-lg`]:Object.assign({},J(H))}),ne(f,H,`${Y}-lg`)),{[`${Y}-sm`]:Object.assign({},J(ie))}),ne(f,ie,`${Y}-sm`))},K=f=>{const{componentCls:x,skeletonAvatarCls:Y,skeletonTitleCls:Be,skeletonParagraphCls:H,skeletonButtonCls:ie,skeletonInputCls:Qe,skeletonImageCls:ye,controlHeight:be,controlHeightLG:ze,controlHeightSM:gt,gradientFromColor:fe,padding:at,marginSM:rt,borderRadius:Le,titleHeight:Fe,blockRadius:ct,paragraphLiHeight:Tt,controlHeightXS:Pt,paragraphMarginTop:Yt}=f;return{[`${x}`]:{display:"table",width:"100%",[`${x}-header`]:{display:"table-cell",paddingInlineEnd:at,verticalAlign:"top",[`${Y}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:fe},M(be)),[`${Y}-circle`]:{borderRadius:"50%"},[`${Y}-lg`]:Object.assign({},M(ze)),[`${Y}-sm`]:Object.assign({},M(gt))},[`${x}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Be}`]:{width:"100%",height:Fe,background:fe,borderRadius:ct,[`+ ${H}`]:{marginBlockStart:gt}},[`${H}`]:{padding:0,"> li":{width:"100%",height:Tt,listStyle:"none",background:fe,borderRadius:ct,"+ li":{marginBlockStart:Pt}}},[`${H}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${x}-content`]:{[`${Be}, ${H} > li`]:{borderRadius:Le}}},[`${x}-with-avatar ${x}-content`]:{[`${Be}`]:{marginBlockStart:rt,[`+ ${H}`]:{marginBlockStart:Yt}}},[`${x}${x}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},G(f)),L(f)),q(f)),se(f)),[`${x}${x}-block`]:{width:"100%",[`${ie}`]:{width:"100%"},[`${Qe}`]:{width:"100%"}},[`${x}${x}-active`]:{[`
${Be},
${H} > li,
${Y},
${ie},
${Qe},
${ye}
`]:Object.assign({},O(f))}}};var le=(0,F.Z)("Skeleton",f=>{const{componentCls:x}=f,Y=(0,v.TS)(f,{skeletonAvatarCls:`${x}-avatar`,skeletonTitleCls:`${x}-title`,skeletonParagraphCls:`${x}-paragraph`,skeletonButtonCls:`${x}-button`,skeletonInputCls:`${x}-input`,skeletonImageCls:`${x}-image`,imageSizeBase:f.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${f.gradientFromColor} 25%, ${f.gradientToColor} 37%, ${f.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[K(Y)]},f=>{const{colorFillContent:x,colorFill:Y}=f,Be=x,H=Y;return{color:Be,colorGradientEnd:H,gradientFromColor:Be,gradientToColor:H,titleHeight:f.controlHeight/2,blockRadius:f.borderRadiusSM,paragraphMarginTop:f.marginLG+f.marginXXS,paragraphLiHeight:f.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Oe=f=>{const{prefixCls:x,className:Y,rootClassName:Be,active:H,shape:ie="circle",size:Qe="default"}=f,{getPrefixCls:ye}=P.useContext(Ne.E_),be=ye("skeleton",x),[ze,gt]=le(be),fe=(0,te.Z)(f,["prefixCls","className"]),at=Ae()(be,`${be}-element`,{[`${be}-active`]:H},Y,Be,gt);return ze(P.createElement("div",{className:at},P.createElement(S,Object.assign({prefixCls:`${be}-avatar`,shape:ie,size:Qe},fe))))},Ue=f=>{const{prefixCls:x,className:Y,rootClassName:Be,active:H,block:ie=!1,size:Qe="default"}=f,{getPrefixCls:ye}=P.useContext(Ne.E_),be=ye("skeleton",x),[ze,gt]=le(be),fe=(0,te.Z)(f,["prefixCls"]),at=Ae()(be,`${be}-element`,{[`${be}-active`]:H,[`${be}-block`]:ie},Y,Be,gt);return ze(P.createElement("div",{className:at},P.createElement(S,Object.assign({prefixCls:`${be}-button`,size:Qe},fe))))};const ee="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=f=>{const{prefixCls:x,className:Y,rootClassName:Be,style:H,active:ie}=f,{getPrefixCls:Qe}=P.useContext(Ne.E_),ye=Qe("skeleton",x),[be,ze]=le(ye),gt=Ae()(ye,`${ye}-element`,{[`${ye}-active`]:ie},Y,Be,ze);return be(P.createElement("div",{className:gt},P.createElement("div",{className:Ae()(`${ye}-image`,Y),style:H},P.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${ye}-image-svg`},P.createElement("path",{d:ee,className:`${ye}-image-path`})))))},ke=f=>{const{prefixCls:x,className:Y,rootClassName:Be,active:H,block:ie,size:Qe="default"}=f,{getPrefixCls:ye}=P.useContext(Ne.E_),be=ye("skeleton",x),[ze,gt]=le(be),fe=(0,te.Z)(f,["prefixCls"]),at=Ae()(be,`${be}-element`,{[`${be}-active`]:H,[`${be}-block`]:ie},Y,Be,gt);return ze(P.createElement("div",{className:at},P.createElement(S,Object.assign({prefixCls:`${be}-input`,size:Qe},fe))))},xe=C(54476),Te={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=Te,De=C(7657),he=function(x,Y){return P.createElement(De.Z,(0,xe.Z)({},x,{ref:Y,icon:ve}))},Se=P.forwardRef(he),Xe=Se,je=f=>{const{prefixCls:x,className:Y,rootClassName:Be,style:H,active:ie,children:Qe}=f,{getPrefixCls:ye}=P.useContext(Ne.E_),be=ye("skeleton",x),[ze,gt]=le(be),fe=Ae()(be,`${be}-element`,{[`${be}-active`]:ie},gt,Y,Be),at=Qe!=null?Qe:P.createElement(Xe,null);return ze(P.createElement("div",{className:fe},P.createElement("div",{className:Ae()(`${be}-image`,Y),style:H},at)))},qe=C(94480),kt=f=>{const x=ye=>{const{width:be,rows:ze=2}=f;if(Array.isArray(be))return be[ye];if(ze-1===ye)return be},{prefixCls:Y,className:Be,style:H,rows:ie}=f,Qe=(0,qe.Z)(Array(ie)).map((ye,be)=>P.createElement("li",{key:be,style:{width:x(be)}}));return P.createElement("ul",{className:Ae()(Y,Be),style:H},Qe)},sr=f=>{let{prefixCls:x,className:Y,width:Be,style:H}=f;return P.createElement("h3",{className:Ae()(x,Y),style:Object.assign({width:Be},H)})};function rr(f){return f&&typeof f=="object"?f:{}}function br(f,x){return f&&!x?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function lr(f,x){return!f&&x?{width:"38%"}:f&&x?{width:"50%"}:{}}function V(f,x){const Y={};return(!f||!x)&&(Y.width="61%"),!f&&x?Y.rows=3:Y.rows=2,Y}const dt=f=>{const{prefixCls:x,loading:Y,className:Be,rootClassName:H,style:ie,children:Qe,avatar:ye=!1,title:be=!0,paragraph:ze=!0,active:gt,round:fe}=f,{getPrefixCls:at,direction:rt,skeleton:Le}=P.useContext(Ne.E_),Fe=at("skeleton",x),[ct,Tt]=le(Fe);if(Y||!("loading"in f)){const Pt=!!ye,Yt=!!be,Fr=!!ze;let Lr;if(Pt){const yr=Object.assign(Object.assign({prefixCls:`${Fe}-avatar`},br(Yt,Fr)),rr(ye));Lr=P.createElement("div",{className:`${Fe}-header`},P.createElement(S,Object.assign({},yr)))}let Or;if(Yt||Fr){let yr;if(Yt){const Kr=Object.assign(Object.assign({prefixCls:`${Fe}-title`},lr(Pt,Fr)),rr(be));yr=P.createElement(sr,Object.assign({},Kr))}let ur;if(Fr){const Kr=Object.assign(Object.assign({prefixCls:`${Fe}-paragraph`},V(Pt,Yt)),rr(ze));ur=P.createElement(kt,Object.assign({},Kr))}Or=P.createElement("div",{className:`${Fe}-content`},yr,ur)}const kr=Ae()(Fe,{[`${Fe}-with-avatar`]:Pt,[`${Fe}-active`]:gt,[`${Fe}-rtl`]:rt==="rtl",[`${Fe}-round`]:fe},Le==null?void 0:Le.className,Be,H,Tt);return ct(P.createElement("div",{className:kr,style:Object.assign(Object.assign({},Le==null?void 0:Le.style),ie)},Lr,Or))}return typeof Qe!="undefined"?Qe:null};dt.Button=Ue,dt.Avatar=Oe,dt.Input=ke,dt.Image=D,dt.Node=je;var I=dt,p=I},81327:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return q}});var pe=C(59301),Ae=C(92310),P=C.n(Ae),Ne=C(11592),te=C(36355),W=C(33234);const S=pe.createContext({latestIndex:0}),g=S.Provider;var v=R=>{let{className:se,index:ne,children:J,split:G,style:K}=R;const{latestIndex:le}=pe.useContext(S);return J==null?null:pe.createElement(pe.Fragment,null,pe.createElement("div",{className:se,style:K},J),ne<le&&G&&pe.createElement("span",{className:`${se}-split`},G))},$=C(2856);function _(R){return["small","middle","large"].includes(R)}function M(R){return R?typeof R=="number"&&!Number.isNaN(R):!1}var O=function(R,se){var ne={};for(var J in R)Object.prototype.hasOwnProperty.call(R,J)&&se.indexOf(J)<0&&(ne[J]=R[J]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,J=Object.getOwnPropertySymbols(R);G<J.length;G++)se.indexOf(J[G])<0&&Object.prototype.propertyIsEnumerable.call(R,J[G])&&(ne[J[G]]=R[J[G]]);return ne};const L=pe.forwardRef((R,se)=>{var ne,J;const{getPrefixCls:G,space:K,direction:le}=pe.useContext(te.E_),{size:me=(K==null?void 0:K.size)||"small",align:Oe,className:Ce,rootClassName:Ue,children:ee,direction:de="horizontal",prefixCls:D,split:Ye,style:ke,wrap:xe=!1,classNames:Te,styles:ve}=R,De=O(R,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[he,Se]=Array.isArray(me)?me:[me,me],Xe=_(Se),et=_(he),je=M(Se),qe=M(he),Et=(0,Ne.Z)(ee,{keepEmpty:!0}),kt=Oe===void 0&&de==="horizontal"?"center":Oe,Ot=G("space",D),[sr,rr]=(0,$.Z)(Ot),br=P()(Ot,K==null?void 0:K.className,rr,`${Ot}-${de}`,{[`${Ot}-rtl`]:le==="rtl",[`${Ot}-align-${kt}`]:kt,[`${Ot}-gap-row-${Se}`]:Xe,[`${Ot}-gap-col-${he}`]:et},Ce,Ue),lr=P()(`${Ot}-item`,(ne=Te==null?void 0:Te.item)!==null&&ne!==void 0?ne:(J=K==null?void 0:K.classNames)===null||J===void 0?void 0:J.item);let V=0;const dt=Et.map((f,x)=>{var Y,Be;f!=null&&(V=x);const H=f&&f.key||`${lr}-${x}`;return pe.createElement(v,{className:lr,key:H,index:x,split:Ye,style:(Y=ve==null?void 0:ve.item)!==null&&Y!==void 0?Y:(Be=K==null?void 0:K.styles)===null||Be===void 0?void 0:Be.item},f)}),I=pe.useMemo(()=>({latestIndex:V}),[V]);if(Et.length===0)return null;const p={};return xe&&(p.flexWrap="wrap"),!et&&qe&&(p.columnGap=he),!Xe&&je&&(p.rowGap=Se),sr(pe.createElement("div",Object.assign({ref:se,className:br,style:Object.assign(Object.assign(Object.assign({},p),K==null?void 0:K.style),ke)},De),pe.createElement(g,{value:I},dt)))});L.Compact=W.ZP;var q=L},8378:function(dn,Ut){"use strict";const C=pe=>({[pe.componentCls]:{[`${pe.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${pe.motionDurationMid} ${pe.motionEaseInOut},
opacity ${pe.motionDurationMid} ${pe.motionEaseInOut} !important`}},[`${pe.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${pe.motionDurationMid} ${pe.motionEaseInOut},
opacity ${pe.motionDurationMid} ${pe.motionEaseInOut} !important`}}});Ut.Z=C},92899:function(dn,Ut,C){"use strict";C.d(Ut,{Fm:function(){return _}});var pe=C(36237),Ae=C(95406);const P=new pe.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ne=new pe.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),te=new pe.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 pe.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),S=new pe.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g=new pe.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),F=new pe.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),v=new pe.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:F,outKeyframes:v},"move-down":{inKeyframes:P,outKeyframes:Ne},"move-left":{inKeyframes:te,outKeyframes:W},"move-right":{inKeyframes:S,outKeyframes:g}},_=(M,O)=>{const{antCls:T}=M,L=`${T}-${O}`,{inKeyframes:q,outKeyframes:R}=$[O];return[(0,Ae.R)(L,q,R,M.motionDurationMid),{[`
${L}-enter,
${L}-appear
`]:{opacity:0,animationTimingFunction:M.motionEaseOutCirc},[`${L}-leave`]:{animationTimingFunction:M.motionEaseInOutCirc}}]}},13826:function(dn,Ut,C){"use strict";C.d(Ut,{Qt:function(){return te},Uw:function(){return Ne},fJ:function(){return P},ly:function(){return W},oN:function(){return _}});var pe=C(36237),Ae=C(95406);const P=new pe.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ne=new pe.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),te=new pe.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),W=new pe.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),S=new pe.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),g=new pe.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),F=new pe.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),v=new pe.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),$={"slide-up":{inKeyframes:P,outKeyframes:Ne},"slide-down":{inKeyframes:te,outKeyframes:W},"slide-left":{inKeyframes:S,outKeyframes:g},"slide-right":{inKeyframes:F,outKeyframes:v}},_=(M,O)=>{const{antCls:T}=M,L=`${T}-${O}`,{inKeyframes:q,outKeyframes:R}=$[O];return[(0,Ae.R)(L,q,R,M.motionDurationMid),{[`
${L}-enter,
${L}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:M.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${L}-leave`]:{animationTimingFunction:M.motionEaseInQuint}}]}},15969:function(dn,Ut,C){"use strict";C.d(Ut,{N:function(){return pe}});const pe=Ae=>({color:Ae.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${Ae.motionDurationSlow}`,"&:focus, &:hover":{color:Ae.colorLinkHover},"&:active":{color:Ae.colorLinkActive}})},1710:function(dn,Ut,C){"use strict";C.d(Ut,{default:function(){return B0}});var pe={},Ae="rc-table-internal-hook",P=C(42978),Ne=C(6089),te=C(34280),W=C(13697),S=C(59301),g=C(4676);function F(ue){var we=S.createContext(void 0),Je=function(Ct){var bt=Ct.value,$t=Ct.children,zt=S.useRef(bt);zt.current=bt;var Kt=S.useState(function(){return{getValue:function(){return zt.current},listeners:new Set}}),Ar=(0,P.Z)(Kt,1),Er=Ar[0];return(0,te.Z)(function(){(0,g.unstable_batchedUpdates)(function(){Er.listeners.forEach(function(pr){pr(bt)})})},[bt]),S.createElement(we.Provider,{value:Er},$t)};return{Context:we,Provider:Je,defaultValue:ue}}function v(ue,we){var Je=(0,Ne.Z)(typeof we=="function"?we:function(pr){if(we===void 0)return pr;if(!Array.isArray(we))return pr[we];var tn={};return we.forEach(function(Vr){tn[Vr]=pr[Vr]}),tn}),lt=S.useContext(ue==null?void 0:ue.Context),Ct=lt||{},bt=Ct.listeners,$t=Ct.getValue,zt=S.useRef();zt.current=Je(lt?$t():ue==null?void 0:ue.defaultValue);var Kt=S.useState({}),Ar=(0,P.Z)(Kt,2),Er=Ar[1];return(0,te.Z)(function(){if(!lt)return;function pr(tn){var Vr=Je(tn);(0,W.Z)(zt.current,Vr,!0)||Er({})}return bt.add(pr),function(){bt.delete(pr)}},[lt]),zt.current}var $=C(54476),_=C(8654);function M(){var ue=S.createContext(null);function we(){return S.useContext(ue)}function Je(Ct,bt){var $t=(0,_.Yr)(Ct),zt=function(Ar,Er){var pr=$t?{ref:Er}:{},tn=S.useRef(0),Vr=S.useRef(Ar),Yr=we();return Yr!==null?S.createElement(Ct,(0,$.Z)({},Ar,pr)):((!bt||bt(Vr.current,Ar))&&(tn.current+=1),Vr.current=Ar,S.createElement(ue.Provider,{value:tn.current},S.createElement(Ct,(0,$.Z)({},Ar,pr))))};return $t?S.forwardRef(zt):zt}function lt(Ct,bt){var $t=(0,_.Yr)(Ct),zt=function(Ar,Er){var pr=$t?{ref:Er}:{};return we(),S.createElement(Ct,(0,$.Z)({},Ar,pr))};return $t?S.memo(S.forwardRef(zt),bt):S.memo(zt,bt)}return{makeImmutable:Je,responseImmutable:lt,useImmutableMark:we}}var O=M(),T=O.makeImmutable,L=O.responseImmutable,q=O.useImmutableMark,R=M(),se=R.makeImmutable,ne=R.responseImmutable,J=R.useImmutableMark,G=F(),K=G;function le(ue,we){var Je=S.useRef(0);Je.current+=1;var lt=S.useRef(ue),Ct=[];Object.keys(ue||{}).map(function($t){var zt;(ue==null?void 0:ue[$t])!==((zt=lt.current)===null||zt===void 0?void 0:zt[$t])&&Ct.push($t)}),lt.current=ue;var bt=S.useRef([]);return Ct.length&&(bt.current=Ct),S.useDebugValue(Je.current),S.useDebugValue(bt.current.join(", ")),we&&console.log("".concat(we,":"),Je.current,bt.current),Je.current}var me=null,Oe=S.memo(function(){var ue=le();return S.createElement("h1",null,"Render Times: ",ue)});Oe.displayName="RenderBlock";var Ce=C(76190),Ue=C(33885),ee=C(20068),de=C(92310),D=C.n(de),Ye=C(80547),ke=C(97938),xe=C(48736),Te=S.createContext({renderWithProps:!1}),ve=Te,De="RC_TABLE_KEY";function he(ue){return ue==null?[]:Array.isArray(ue)?ue:[ue]}function Se(ue){var we=[],Je={};return ue.forEach(function(lt){for(var Ct=lt||{},bt=Ct.key,$t=Ct.dataIndex,zt=bt||he($t).join("-")||De;Je[zt];)zt="".concat(zt,"_next");Je[zt]=!0,we.push(zt)}),we}function Xe(ue){return ue!=null}function et(ue){return ue&&(0,Ce.Z)(ue)==="object"&&!Array.isArray(ue)&&!S.isValidElement(ue)}function je(ue,we,Je,lt,Ct,bt){var $t=S.useContext(ve),zt=J(),Kt=(0,Ye.Z)(function(){if(Xe(lt))return[lt];var Ar=we==null||we===""?[]:Array.isArray(we)?we:[we],Er=(0,ke.Z)(ue,Ar),pr=Er,tn=void 0;if(Ct){var Vr=Ct(Er,ue,Je);et(Vr)?(pr=Vr.children,tn=Vr.props,$t.renderWithProps=!0):pr=Vr}return[pr,tn]},[zt,ue,lt,we,Ct,Je],function(Ar,Er){if(bt){var pr=(0,P.Z)(Ar,2),tn=pr[1],Vr=(0,P.Z)(Er,2),Yr=Vr[1];return bt(Yr,tn)}return $t.renderWithProps?!0:!(0,W.Z)(Ar,Er,!0)});return Kt}function qe(ue,we,Je,lt){var Ct=ue+we-1;return ue<=lt&&Ct>=Je}function Et(ue,we){return v(K,function(Je){var lt=qe(ue,we||1,Je.hoverStartRow,Je.hoverEndRow);return[lt,Je.onHover]})}var kt=function(we){var Je=we.ellipsis,lt=we.rowType,Ct=we.children,bt,$t=Je===!0?{showTitle:!0}:Je;return $t&&($t.showTitle||lt==="header")&&(typeof Ct=="string"||typeof Ct=="number"?bt=Ct.toString():S.isValidElement(Ct)&&typeof Ct.props.children=="string"&&(bt=Ct.props.children)),bt};function Ot(ue){var we,Je,lt,Ct,bt,$t,zt,Kt,Ar=ue.component,Er=ue.children,pr=ue.ellipsis,tn=ue.scope,Vr=ue.prefixCls,Yr=ue.className,Pn=ue.align,Cn=ue.record,Mn=ue.render,Sn=ue.dataIndex,$n=ue.renderIndex,Ui=ue.shouldCellUpdate,zi=ue.index,pi=ue.rowType,na=ue.colSpan,wa=ue.rowSpan,Yn=ue.fixLeft,bi=ue.fixRight,ai=ue.firstFixLeft,Tn=ue.lastFixLeft,oi=ue.firstFixRight,Vi=ue.lastFixRight,Na=ue.appendNode,pa=ue.additionalProps,Wi=pa===void 0?{}:pa,_a=ue.isSticky,Qa="".concat(Vr,"-cell"),Yo=v(K,["supportSticky","allColumnsFixedLeft"]),lo=Yo.supportSticky,vs=Yo.allColumnsFixedLeft,cs=je(Cn,Sn,$n,Er,Mn,Ui),ma=(0,P.Z)(cs,2),al=ma[0],mo=ma[1],qo={},rs=typeof Yn=="number"&&lo,xc=typeof bi=="number"&&lo;rs&&(qo.position="sticky",qo.left=Yn),xc&&(qo.position="sticky",qo.right=bi);var si=(we=(Je=(lt=mo==null?void 0:mo.colSpan)!==null&&lt!==void 0?lt:Wi.colSpan)!==null&&Je!==void 0?Je:na)!==null&&we!==void 0?we:1,Gi=(Ct=(bt=($t=mo==null?void 0:mo.rowSpan)!==null&&$t!==void 0?$t:Wi.rowSpan)!==null&&bt!==void 0?bt:wa)!==null&&Ct!==void 0?Ct:1,$i=Et(zi,Gi),Oi=(0,P.Z)($i,2),vo=Oi[0],Pi=Oi[1],ca=function(jn){var dc;Cn&&Pi(zi,zi+Gi-1),Wi==null||(dc=Wi.onMouseEnter)===null||dc===void 0||dc.call(Wi,jn)},ja=function(jn){var dc;Cn&&Pi(-1,-1),Wi==null||(dc=Wi.onMouseLeave)===null||dc===void 0||dc.call(Wi,jn)};if(si===0||Gi===0)return null;var $a=(zt=Wi.title)!==null&&zt!==void 0?zt:kt({rowType:pi,ellipsis:pr,children:al}),Ml=D()(Qa,Yr,(Kt={},(0,ee.Z)(Kt,"".concat(Qa,"-fix-left"),rs&&lo),(0,ee.Z)(Kt,"".concat(Qa,"-fix-left-first"),ai&&lo),(0,ee.Z)(Kt,"".concat(Qa,"-fix-left-last"),Tn&&lo),(0,ee.Z)(Kt,"".concat(Qa,"-fix-left-all"),Tn&&vs&&lo),(0,ee.Z)(Kt,"".concat(Qa,"-fix-right"),xc&&lo),(0,ee.Z)(Kt,"".concat(Qa,"-fix-right-first"),oi&&lo),(0,ee.Z)(Kt,"".concat(Qa,"-fix-right-last"),Vi&&lo),(0,ee.Z)(Kt,"".concat(Qa,"-ellipsis"),pr),(0,ee.Z)(Kt,"".concat(Qa,"-with-append"),Na),(0,ee.Z)(Kt,"".concat(Qa,"-fix-sticky"),(rs||xc)&&_a&&lo),(0,ee.Z)(Kt,"".concat(Qa,"-row-hover"),!mo&&vo),Kt),Wi.className,mo==null?void 0:mo.className),nl={};Pn&&(nl.textAlign=Pn);var Gc=(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},qo),Wi.style),nl),mo==null?void 0:mo.style),Us=al;return(0,Ce.Z)(Us)==="object"&&!Array.isArray(Us)&&!S.isValidElement(Us)&&(Us=null),pr&&(Tn||oi)&&(Us=S.createElement("span",{className:"".concat(Qa,"-content")},Us)),S.createElement(Ar,(0,$.Z)({},mo,Wi,{className:Ml,style:Gc,title:$a,scope:tn,onMouseEnter:ca,onMouseLeave:ja,colSpan:si!==1?si:null,rowSpan:Gi!==1?Gi:null}),Na,Us)}var sr=S.memo(Ot);function rr(ue,we,Je,lt,Ct,bt){var $t=Je[ue]||{},zt=Je[we]||{},Kt,Ar;$t.fixed==="left"?Kt=lt.left[Ct==="rtl"?we:ue]:zt.fixed==="right"&&(Ar=lt.right[Ct==="rtl"?ue:we]);var Er=!1,pr=!1,tn=!1,Vr=!1,Yr=Je[we+1],Pn=Je[ue-1],Cn=!(bt!=null&&bt.children);if(Ct==="rtl"){if(Kt!==void 0){var Mn=Pn&&Pn.fixed==="left";Vr=!Mn&&Cn}else if(Ar!==void 0){var Sn=Yr&&Yr.fixed==="right";tn=!Sn&&Cn}}else if(Kt!==void 0){var $n=Yr&&Yr.fixed==="left";Er=!$n&&Cn}else if(Ar!==void 0){var Ui=Pn&&Pn.fixed==="right";pr=!Ui&&Cn}return{fixLeft:Kt,fixRight:Ar,lastFixLeft:Er,firstFixRight:pr,lastFixRight:tn,firstFixLeft:Vr,isSticky:lt.isSticky}}var br=S.createContext({}),lr=br;function V(ue){var we=ue.className,Je=ue.index,lt=ue.children,Ct=ue.colSpan,bt=Ct===void 0?1:Ct,$t=ue.rowSpan,zt=ue.align,Kt=v(K,["prefixCls","direction"]),Ar=Kt.prefixCls,Er=Kt.direction,pr=S.useContext(lr),tn=pr.scrollColumnIndex,Vr=pr.stickyOffsets,Yr=pr.flattenColumns,Pn=pr.columns,Cn=Je+bt-1,Mn=Cn+1===tn?bt+1:bt,Sn=rr(Je,Je+Mn-1,Yr,Vr,Er,Pn==null?void 0:Pn[Je]);return S.createElement(sr,(0,$.Z)({className:we,index:Je,component:"td",prefixCls:Ar,record:null,dataIndex:null,align:zt,colSpan:Mn,rowSpan:$t,render:function(){return lt}},Sn))}var dt=C(75931),I=["children"];function p(ue){var we=ue.children,Je=(0,dt.Z)(ue,I);return S.createElement("tr",Je,we)}function f(ue){var we=ue.children;return we}f.Row=p,f.Cell=V;var x=f;function Y(ue){var we=ue.children,Je=ue.stickyOffsets,lt=ue.flattenColumns,Ct=ue.columns,bt=v(K,"prefixCls"),$t=lt.length-1,zt=lt[$t],Kt=S.useMemo(function(){return{stickyOffsets:Je,flattenColumns:lt,scrollColumnIndex:zt!=null&&zt.scrollbar?$t:null,columns:Ct}},[zt,lt,$t,Je,Ct]);return S.createElement(lr.Provider,{value:Kt},S.createElement("tfoot",{className:"".concat(bt,"-summary")},we))}var Be=ne(Y),H=x,ie=C(70425),Qe=C(29301),ye=C(29194),be=C(3465),ze=C(75152),gt=C(26112);function fe(ue,we,Je,lt,Ct,bt,$t){ue.push({record:we,indent:Je,index:$t});var zt=bt(we),Kt=Ct==null?void 0:Ct.has(zt);if(we&&Array.isArray(we[lt])&&Kt)for(var Ar=0;Ar<we[lt].length;Ar+=1)fe(ue,we[lt][Ar],Je+1,lt,Ct,bt,Ar)}function at(ue,we,Je,lt){var Ct=S.useMemo(function(){if(Je!=null&&Je.size){for(var bt=[],$t=0;$t<(ue==null?void 0:ue.length);$t+=1){var zt=ue[$t];fe(bt,zt,0,we,Je,lt,$t)}return bt}return ue==null?void 0:ue.map(function(Kt,Ar){return{record:Kt,indent:0,index:Ar}})},[ue,we,Je,lt]);return Ct}function rt(ue){var we=ue.prefixCls,Je=ue.children,lt=ue.component,Ct=ue.cellComponent,bt=ue.className,$t=ue.expanded,zt=ue.colSpan,Kt=ue.isEmpty,Ar=v(K,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Er=Ar.scrollbarSize,pr=Ar.fixHeader,tn=Ar.fixColumn,Vr=Ar.componentWidth,Yr=Ar.horizonScroll,Pn=Je;return(Kt?Yr&&Vr:tn)&&(Pn=S.createElement("div",{style:{width:Vr-(pr?Er:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(we,"-expanded-row-fixed")},Pn)),S.createElement(lt,{className:bt,style:{display:$t?null:"none"}},S.createElement(sr,{component:Ct,prefixCls:we,colSpan:zt},Pn))}var Le=rt;function Fe(ue,we,Je,lt){var Ct=v(K,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),bt=Ct.flattenColumns,$t=Ct.expandableType,zt=Ct.expandedKeys,Kt=Ct.childrenColumnName,Ar=Ct.onTriggerExpand,Er=Ct.rowExpandable,pr=Ct.onRow,tn=Ct.expandRowByClick,Vr=Ct.rowClassName,Yr=$t==="nest",Pn=$t==="row"&&(!Er||Er(ue)),Cn=Pn||Yr,Mn=zt&&zt.has(we),Sn=Kt&&ue&&ue[Kt],$n=(0,ie.useEvent)(Ar),Ui=pr==null?void 0:pr(ue,Je),zi=Ui==null?void 0:Ui.onClick,pi=function(bi){tn&&Cn&&Ar(ue,bi);for(var ai=arguments.length,Tn=new Array(ai>1?ai-1:0),oi=1;oi<ai;oi++)Tn[oi-1]=arguments[oi];zi==null||zi.apply(void 0,[bi].concat(Tn))},na;typeof Vr=="string"?na=Vr:typeof Vr=="function"&&(na=Vr(ue,Je,lt));var wa=Se(bt);return(0,Ue.Z)((0,Ue.Z)({},Ct),{},{columnsKey:wa,nestExpandable:Yr,expanded:Mn,hasNestChildren:Sn,record:ue,onTriggerExpand:$n,rowSupportExpand:Pn,expandable:Cn,rowProps:(0,Ue.Z)((0,Ue.Z)({},Ui),{},{className:D()(na,Ui==null?void 0:Ui.className),onClick:pi})})}function ct(ue,we,Je,lt,Ct){var bt=ue.record,$t=ue.prefixCls,zt=ue.columnsKey,Kt=ue.fixedInfoList,Ar=ue.expandIconColumnIndex,Er=ue.nestExpandable,pr=ue.indentSize,tn=ue.expandIcon,Vr=ue.expanded,Yr=ue.hasNestChildren,Pn=ue.onTriggerExpand,Cn=zt[Je],Mn=Kt[Je],Sn;Je===(Ar||0)&&Er&&(Sn=S.createElement(S.Fragment,null,S.createElement("span",{style:{paddingLeft:"".concat(pr*lt,"px")},className:"".concat($t,"-row-indent indent-level-").concat(lt)}),tn({prefixCls:$t,expanded:Vr,expandable:Yr,record:bt,onExpand:Pn})));var $n;return we.onCell&&($n=we.onCell(bt,Ct)),{key:Cn,fixedInfo:Mn,appendCellNode:Sn,additionalCellProps:$n||{}}}function Tt(ue){var we=ue.className,Je=ue.style,lt=ue.record,Ct=ue.index,bt=ue.renderIndex,$t=ue.rowKey,zt=ue.indent,Kt=zt===void 0?0:zt,Ar=ue.rowComponent,Er=ue.cellComponent,pr=ue.scopeCellComponent,tn=Fe(lt,$t,Ct,Kt),Vr=tn.prefixCls,Yr=tn.flattenColumns,Pn=tn.expandedRowClassName,Cn=tn.expandedRowRender,Mn=tn.rowProps,Sn=tn.expanded,$n=tn.rowSupportExpand,Ui=S.useState(!1),zi=(0,P.Z)(Ui,2),pi=zi[0],na=zi[1];S.useEffect(function(){Sn&&na(!0)},[Sn]);var wa=S.createElement(Ar,(0,$.Z)({},Mn,{"data-row-key":$t,className:D()(we,"".concat(Vr,"-row"),"".concat(Vr,"-row-level-").concat(Kt),Mn==null?void 0:Mn.className),style:(0,Ue.Z)((0,Ue.Z)({},Je),Mn==null?void 0:Mn.style)}),Yr.map(function(Tn,oi){var Vi=Tn.render,Na=Tn.dataIndex,pa=Tn.className,Wi=ct(tn,Tn,oi,Kt,Ct),_a=Wi.key,Qa=Wi.fixedInfo,Yo=Wi.appendCellNode,lo=Wi.additionalCellProps;return S.createElement(sr,(0,$.Z)({className:pa,ellipsis:Tn.ellipsis,align:Tn.align,scope:Tn.rowScope,component:Tn.rowScope?pr:Er,prefixCls:Vr,key:_a,record:lt,index:Ct,renderIndex:bt,dataIndex:Na,render:Vi,shouldCellUpdate:Tn.shouldCellUpdate},Qa,{appendNode:Yo,additionalProps:lo}))})),Yn;if($n&&(pi||Sn)){var bi=Cn(lt,Ct,Kt+1,Sn),ai=Pn&&Pn(lt,Ct,Kt);Yn=S.createElement(Le,{expanded:Sn,className:D()("".concat(Vr,"-expanded-row"),"".concat(Vr,"-expanded-row-level-").concat(Kt+1),ai),prefixCls:Vr,component:Ar,cellComponent:Er,colSpan:Yr.length,isEmpty:!1},bi)}return S.createElement(S.Fragment,null,wa,Yn)}Tt.displayName="BodyRow";var Pt=ne(Tt);function Yt(ue){var we=ue.columnKey,Je=ue.onColumnResize,lt=S.useRef();return S.useEffect(function(){lt.current&&Je(we,lt.current.offsetWidth)},[]),S.createElement(Qe.Z,{data:we},S.createElement("td",{ref:lt,style:{padding:0,border:0,height:0}},S.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Fr(ue){var we=ue.prefixCls,Je=ue.columnsKey,lt=ue.onColumnResize;return S.createElement("tr",{"aria-hidden":"true",className:"".concat(we,"-measure-row"),style:{height:0,fontSize:0}},S.createElement(Qe.Z.Collection,{onBatchResize:function(bt){bt.forEach(function($t){var zt=$t.data,Kt=$t.size;lt(zt,Kt.offsetWidth)})}},Je.map(function(Ct){return S.createElement(Yt,{key:Ct,columnKey:Ct,onColumnResize:lt})})))}function Lr(ue){var we=ue.data,Je=ue.measureColumnWidth,lt=v(K,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Ct=lt.prefixCls,bt=lt.getComponent,$t=lt.onColumnResize,zt=lt.flattenColumns,Kt=lt.getRowKey,Ar=lt.expandedKeys,Er=lt.childrenColumnName,pr=lt.emptyNode,tn=at(we,Er,Ar,Kt),Vr=S.useRef({renderWithProps:!1}),Yr=bt(["body","wrapper"],"tbody"),Pn=bt(["body","row"],"tr"),Cn=bt(["body","cell"],"td"),Mn=bt(["body","cell"],"th"),Sn;we.length?Sn=tn.map(function(Ui,zi){var pi=Ui.record,na=Ui.indent,wa=Ui.index,Yn=Kt(pi,zi);return S.createElement(Pt,{key:Yn,rowKey:Yn,record:pi,index:zi,renderIndex:wa,rowComponent:Pn,cellComponent:Cn,scopeCellComponent:Mn,getRowKey:Kt,indent:na})}):Sn=S.createElement(Le,{expanded:!0,className:"".concat(Ct,"-placeholder"),prefixCls:Ct,component:Pn,cellComponent:Cn,colSpan:zt.length,isEmpty:!0},pr);var $n=Se(zt);return S.createElement(ve.Provider,{value:Vr.current},S.createElement(Yr,{className:"".concat(Ct,"-tbody")},Je&&S.createElement(Fr,{prefixCls:Ct,columnsKey:$n,onColumnResize:$t}),Sn))}Lr.displayName="Body";var Or=ne(Lr),kr=["expandable"],yr="RC_TABLE_INTERNAL_COL_DEFINE";function ur(ue){var we=ue.expandable,Je=(0,dt.Z)(ue,kr),lt;return"expandable"in ue?lt=(0,Ue.Z)((0,Ue.Z)({},Je),we):lt=Je,lt.showExpandColumn===!1&&(lt.expandIconColumnIndex=-1),lt}var Kr=["columnType"];function fn(ue){for(var we=ue.colWidths,Je=ue.columns,lt=ue.columCount,Ct=[],bt=lt||Je.length,$t=!1,zt=bt-1;zt>=0;zt-=1){var Kt=we[zt],Ar=Je&&Je[zt],Er=Ar&&Ar[yr];if(Kt||Er||$t){var pr=Er||{},tn=pr.columnType,Vr=(0,dt.Z)(pr,Kr);Ct.unshift(S.createElement("col",(0,$.Z)({key:zt,style:{width:Kt}},Vr))),$t=!0}}return S.createElement("colgroup",null,Ct)}var Un=fn,hn=C(94480),Dn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Qi(ue,we){return(0,S.useMemo)(function(){for(var Je=[],lt=0;lt<we;lt+=1){var Ct=ue[lt];if(Ct!==void 0)Je[lt]=Ct;else return null}return Je},[ue.join("_"),we])}var Pr=S.forwardRef(function(ue,we){var Je=ue.className,lt=ue.noData,Ct=ue.columns,bt=ue.flattenColumns,$t=ue.colWidths,zt=ue.columCount,Kt=ue.stickyOffsets,Ar=ue.direction,Er=ue.fixHeader,pr=ue.stickyTopOffset,tn=ue.stickyBottomOffset,Vr=ue.stickyClassName,Yr=ue.onScroll,Pn=ue.maxContentScroll,Cn=ue.children,Mn=(0,dt.Z)(ue,Dn),Sn=v(K,["prefixCls","scrollbarSize","isSticky"]),$n=Sn.prefixCls,Ui=Sn.scrollbarSize,zi=Sn.isSticky,pi=zi&&!Er?0:Ui,na=S.useRef(null),wa=S.useCallback(function(pa){(0,_.mH)(we,pa),(0,_.mH)(na,pa)},[]);S.useEffect(function(){var pa;function Wi(_a){var Qa=_a,Yo=Qa.currentTarget,lo=Qa.deltaX;lo&&(Yr({currentTarget:Yo,scrollLeft:Yo.scrollLeft+lo}),_a.preventDefault())}return(pa=na.current)===null||pa===void 0||pa.addEventListener("wheel",Wi),function(){var _a;(_a=na.current)===null||_a===void 0||_a.removeEventListener("wheel",Wi)}},[]);var Yn=S.useMemo(function(){return bt.every(function(pa){return pa.width})},[bt]),bi=bt[bt.length-1],ai={fixed:bi?bi.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat($n,"-cell-scrollbar")}}},Tn=(0,S.useMemo)(function(){return pi?[].concat((0,hn.Z)(Ct),[ai]):Ct},[pi,Ct]),oi=(0,S.useMemo)(function(){return pi?[].concat((0,hn.Z)(bt),[ai]):bt},[pi,bt]),Vi=(0,S.useMemo)(function(){var pa=Kt.right,Wi=Kt.left;return(0,Ue.Z)((0,Ue.Z)({},Kt),{},{left:Ar==="rtl"?[].concat((0,hn.Z)(Wi.map(function(_a){return _a+pi})),[0]):Wi,right:Ar==="rtl"?pa:[].concat((0,hn.Z)(pa.map(function(_a){return _a+pi})),[0]),isSticky:zi})},[pi,Kt,zi]),Na=Qi($t,zt);return S.createElement("div",{style:(0,Ue.Z)({overflow:"hidden"},zi?{top:pr,bottom:tn}:{}),ref:wa,className:D()(Je,(0,ee.Z)({},Vr,!!Vr))},S.createElement("table",{style:{tableLayout:"fixed",visibility:lt||Na?null:"hidden"}},(!lt||!Pn||Yn)&&S.createElement(Un,{colWidths:Na?[].concat((0,hn.Z)(Na),[pi]):[],columCount:zt+1,columns:oi}),Cn((0,Ue.Z)((0,Ue.Z)({},Mn),{},{stickyOffsets:Vi,columns:Tn,flattenColumns:oi}))))});Pr.displayName="FixedHolder";var xn=S.memo(Pr);function Ei(ue){var we=ue.cells,Je=ue.stickyOffsets,lt=ue.flattenColumns,Ct=ue.rowComponent,bt=ue.cellComponent,$t=ue.tdCellComponent,zt=ue.onHeaderRow,Kt=ue.index,Ar=v(K,["prefixCls","direction"]),Er=Ar.prefixCls,pr=Ar.direction,tn;zt&&(tn=zt(we.map(function(Yr){return Yr.column}),Kt));var Vr=Se(we.map(function(Yr){return Yr.column}));return S.createElement(Ct,tn,we.map(function(Yr,Pn){var Cn=Yr.column,Mn=rr(Yr.colStart,Yr.colEnd,lt,Je,pr,Cn),Sn;return Cn&&Cn.onHeaderCell&&(Sn=Yr.column.onHeaderCell(Cn)),S.createElement(sr,(0,$.Z)({},Yr,{scope:Cn.title?Yr.colSpan>1?"colgroup":"col":null,ellipsis:Cn.ellipsis,align:Cn.align,component:Cn.title?bt:$t,prefixCls:Er,key:Vr[Pn]},Mn,{additionalProps:Sn,rowType:"header"}))}))}Ei.displayName="HeaderRow";var di=Ei;function Zi(ue){var we=[];function Je($t,zt){var Kt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;we[Kt]=we[Kt]||[];var Ar=zt,Er=$t.filter(Boolean).map(function(pr){var tn={key:pr.key,className:pr.className||"",children:pr.title,column:pr,colStart:Ar},Vr=1,Yr=pr.children;return Yr&&Yr.length>0&&(Vr=Je(Yr,Ar,Kt+1).reduce(function(Pn,Cn){return Pn+Cn},0),tn.hasSubColumns=!0),"colSpan"in pr&&(Vr=pr.colSpan),"rowSpan"in pr&&(tn.rowSpan=pr.rowSpan),tn.colSpan=Vr,tn.colEnd=tn.colStart+Vr-1,we[Kt].push(tn),Ar+=Vr,Vr});return Er}Je(ue,0);for(var lt=we.length,Ct=function(zt){we[zt].forEach(function(Kt){!("rowSpan"in Kt)&&!Kt.hasSubColumns&&(Kt.rowSpan=lt-zt)})},bt=0;bt<lt;bt+=1)Ct(bt);return we}function _i(ue){var we=ue.stickyOffsets,Je=ue.columns,lt=ue.flattenColumns,Ct=ue.onHeaderRow,bt=v(K,["prefixCls","getComponent"]),$t=bt.prefixCls,zt=bt.getComponent,Kt=S.useMemo(function(){return Zi(Je)},[Je]),Ar=zt(["header","wrapper"],"thead"),Er=zt(["header","row"],"tr"),pr=zt(["header","cell"],"th"),tn=zt(["header","cell"],"td");return S.createElement(Ar,{className:"".concat($t,"-thead")},Kt.map(function(Vr,Yr){var Pn=S.createElement(di,{key:Yr,flattenColumns:lt,cells:Vr,stickyOffsets:we,rowComponent:Er,cellComponent:pr,tdCellComponent:tn,onHeaderRow:Ct,index:Yr});return Pn}))}var ji=ne(_i),qa=C(11592);function Ki(ue){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof we=="number"?we:we.endsWith("%")?ue*parseFloat(we)/100:null}function ti(ue,we){return S.useMemo(function(){if(we&&we>0){var Je=0,lt=0;ue.forEach(function(Ar){var Er=Ki(we,Ar.width);Er?Je+=Er:lt+=1});var Ct=we-Je,bt=lt,$t=Ct/lt,zt=0,Kt=ue.map(function(Ar){var Er=(0,Ue.Z)({},Ar),pr=Ki(we,Er.width);if(pr)Er.width=pr;else{var tn=Math.floor($t);Er.width=bt===1?Ct:tn,Ct-=tn,bt-=1}return zt+=Er.width,Er});return[Kt,zt]}return[ue,we]},[ue,we])}var gi=["children"],yi=["fixed"];function $e(ue){return(0,qa.Z)(ue).filter(function(we){return S.isValidElement(we)}).map(function(we){var Je=we.key,lt=we.props,Ct=lt.children,bt=(0,dt.Z)(lt,gi),$t=(0,Ue.Z)({key:Je},bt);return Ct&&($t.children=$e(Ct)),$t})}function _e(ue){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ue.filter(function(Je){return Je&&(0,Ce.Z)(Je)==="object"}).reduce(function(Je,lt,Ct){var bt=lt.fixed,$t=bt===!0?"left":bt,zt="".concat(we,"-").concat(Ct),Kt=lt.children;return Kt&&Kt.length>0?[].concat((0,hn.Z)(Je),(0,hn.Z)(_e(Kt,zt).map(function(Ar){return(0,Ue.Z)({fixed:$t},Ar)}))):[].concat((0,hn.Z)(Je),[(0,Ue.Z)((0,Ue.Z)({key:zt},lt),{},{fixed:$t})])},[])}function Me(ue){for(var we=!0,Je=0;Je<ue.length;Je+=1){var lt=ue[Je];if(we&&lt.fixed!=="left")we=!1;else if(!we&&lt.fixed==="left"){warning(!1,"Index ".concat(Je-1," of `columns` missing `fixed='left'` prop."));break}}for(var Ct=!0,bt=ue.length-1;bt>=0;bt-=1){var $t=ue[bt];if(Ct&&$t.fixed!=="right")Ct=!1;else if(!Ct&&$t.fixed==="right"){warning(!1,"Index ".concat(bt+1," of `columns` missing `fixed='right'` prop."));break}}}function Ie(ue){return ue.map(function(we){var Je=we.fixed,lt=(0,dt.Z)(we,yi),Ct=Je;return Je==="left"?Ct="right":Je==="right"&&(Ct="left"),(0,Ue.Z)({fixed:Ct},lt)})}function Nt(ue,we){var Je=ue.prefixCls,lt=ue.columns,Ct=ue.children,bt=ue.expandable,$t=ue.expandedKeys,zt=ue.columnTitle,Kt=ue.getRowKey,Ar=ue.onTriggerExpand,Er=ue.expandIcon,pr=ue.rowExpandable,tn=ue.expandIconColumnIndex,Vr=ue.direction,Yr=ue.expandRowByClick,Pn=ue.columnWidth,Cn=ue.fixed,Mn=ue.scrollWidth,Sn=S.useMemo(function(){return lt||$e(Ct)},[lt,Ct]),$n=S.useMemo(function(){if(bt){var bi,ai=Sn.slice();if(!ai.includes(pe)){var Tn=tn||0;Tn>=0&&ai.splice(Tn,0,pe)}var oi=ai.indexOf(pe);ai=ai.filter(function(Wi,_a){return Wi!==pe||_a===oi});var Vi=Sn[oi],Na;(Cn==="left"||Cn)&&!tn?Na="left":(Cn==="right"||Cn)&&tn===Sn.length?Na="right":Na=Vi?Vi.fixed:null;var pa=(bi={},(0,ee.Z)(bi,yr,{className:"".concat(Je,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,ee.Z)(bi,"title",zt),(0,ee.Z)(bi,"fixed",Na),(0,ee.Z)(bi,"className","".concat(Je,"-row-expand-icon-cell")),(0,ee.Z)(bi,"width",Pn),(0,ee.Z)(bi,"render",function(_a,Qa,Yo){var lo=Kt(Qa,Yo),vs=$t.has(lo),cs=pr?pr(Qa):!0,ma=Er({prefixCls:Je,expanded:vs,expandable:cs,record:Qa,onExpand:Ar});return Yr?S.createElement("span",{onClick:function(mo){return mo.stopPropagation()}},ma):ma}),bi);return ai.map(function(Wi){return Wi===pe?pa:Wi})}return Sn.filter(function(Wi){return Wi!==pe})},[bt,Sn,Kt,$t,Er,Vr]),Ui=S.useMemo(function(){var bi=$n;return we&&(bi=we(bi)),bi.length||(bi=[{render:function(){return null}}]),bi},[we,$n,Vr]),zi=S.useMemo(function(){return Vr==="rtl"?Ie(_e(Ui)):_e(Ui)},[Ui,Vr,Mn]),pi=ti(zi,Mn),na=(0,P.Z)(pi,2),wa=na[0],Yn=na[1];return[Ui,wa,Yn]}var Mt=Nt;function Sr(ue){var we,Je=ue.prefixCls,lt=ue.record,Ct=ue.onExpand,bt=ue.expanded,$t=ue.expandable,zt="".concat(Je,"-row-expand-icon");if(!$t)return S.createElement("span",{className:D()(zt,"".concat(Je,"-row-spaced"))});var Kt=function(Er){Ct(lt,Er),Er.stopPropagation()};return S.createElement("span",{className:D()(zt,(we={},(0,ee.Z)(we,"".concat(Je,"-row-expanded"),bt),(0,ee.Z)(we,"".concat(Je,"-row-collapsed"),!bt),we)),onClick:Kt})}function nr(ue,we,Je){var lt=[];function Ct(bt){(bt||[]).forEach(function($t,zt){lt.push(we($t,zt)),Ct($t[Je])})}return Ct(ue),lt}function Dr(ue,we,Je){var lt=ur(ue),Ct=lt.expandIcon,bt=lt.expandedRowKeys,$t=lt.defaultExpandedRowKeys,zt=lt.defaultExpandAllRows,Kt=lt.expandedRowRender,Ar=lt.onExpand,Er=lt.onExpandedRowsChange,pr=lt.childrenColumnName,tn=Ct||Sr,Vr=pr||"children",Yr=S.useMemo(function(){return Kt?"row":ue.expandable&&ue.internalHooks===Ae&&ue.expandable.__PARENT_RENDER_ICON__||we.some(function(zi){return zi&&(0,Ce.Z)(zi)==="object"&&zi[Vr]})?"nest":!1},[!!Kt,we]),Pn=S.useState(function(){return $t||(zt?nr(we,Je,Vr):[])}),Cn=(0,P.Z)(Pn,2),Mn=Cn[0],Sn=Cn[1],$n=S.useMemo(function(){return new Set(bt||Mn||[])},[bt,Mn]),Ui=S.useCallback(function(zi){var pi=Je(zi,we.indexOf(zi)),na,wa=$n.has(pi);wa?($n.delete(pi),na=(0,hn.Z)($n)):na=[].concat((0,hn.Z)($n),[pi]),Sn(na),Ar&&Ar(!wa,zi),Er&&Er(na)},[Je,$n,we,Ar,Er]);return[lt,Yr,$n,tn,Vr,Ui]}function Hr(ue,we,Je,lt){var Ct=ue.map(function(bt,$t){return rr($t,$t,ue,we,Je,lt==null?void 0:lt[$t])});return(0,Ye.Z)(function(){return Ct},[Ct],function(bt,$t){return!(0,W.Z)(bt,$t)})}function an(ue){var we=(0,S.useRef)(ue),Je=(0,S.useState)({}),lt=(0,P.Z)(Je,2),Ct=lt[1],bt=(0,S.useRef)(null),$t=(0,S.useRef)([]);function zt(Kt){$t.current.push(Kt);var Ar=Promise.resolve();bt.current=Ar,Ar.then(function(){if(bt.current===Ar){var Er=$t.current,pr=we.current;$t.current=[],Er.forEach(function(tn){we.current=tn(we.current)}),bt.current=null,pr!==we.current&&Ct({})}})}return(0,S.useEffect)(function(){return function(){bt.current=null}},[]),[we.current,zt]}function jr(ue){var we=(0,S.useRef)(ue||null),Je=(0,S.useRef)();function lt(){window.clearTimeout(Je.current)}function Ct($t){we.current=$t,lt(),Je.current=window.setTimeout(function(){we.current=null,Je.current=void 0},100)}function bt(){return we.current}return(0,S.useEffect)(function(){return lt},[]),[Ct,bt]}function Rr(){var ue=S.useState(-1),we=(0,P.Z)(ue,2),Je=we[0],lt=we[1],Ct=S.useState(-1),bt=(0,P.Z)(Ct,2),$t=bt[0],zt=bt[1],Kt=S.useCallback(function(Ar,Er){lt(Ar),zt(Er)},[]);return[Je,$t,Kt]}var en=C(47273),wn=(0,en.Z)()?window:null;function on(ue,we){var Je=(0,Ce.Z)(ue)==="object"?ue:{},lt=Je.offsetHeader,Ct=lt===void 0?0:lt,bt=Je.offsetSummary,$t=bt===void 0?0:bt,zt=Je.offsetScroll,Kt=zt===void 0?0:zt,Ar=Je.getContainer,Er=Ar===void 0?function(){return wn}:Ar,pr=Er()||wn;return S.useMemo(function(){var tn=!!ue;return{isSticky:tn,stickyClassName:tn?"".concat(we,"-sticky-holder"):"",offsetHeader:Ct,offsetSummary:$t,offsetScroll:Kt,container:pr}},[Kt,Ct,$t,we,pr])}function Nn(ue,we,Je){var lt=(0,S.useMemo)(function(){for(var Ct=[],bt=[],$t=0,zt=0,Kt=0;Kt<we;Kt+=1)if(Je==="rtl"){bt[Kt]=zt,zt+=ue[Kt]||0;var Ar=we-Kt-1;Ct[Ar]=$t,$t+=ue[Ar]||0}else{Ct[Kt]=$t,$t+=ue[Kt]||0;var Er=we-Kt-1;bt[Er]=zt,zt+=ue[Er]||0}return{left:Ct,right:bt}},[ue,we,Je]);return lt}var Kn=Nn;function fi(ue){var we=ue.className,Je=ue.children;return S.createElement("div",{className:we},Je)}var On=fi,Xn=C(8224),Vt=C(55468),Xt=function(we,Je){var lt,Ct,bt=we.scrollBodyRef,$t=we.onScroll,zt=we.offsetScroll,Kt=we.container,Ar=v(K,"prefixCls"),Er=((lt=bt.current)===null||lt===void 0?void 0:lt.scrollWidth)||0,pr=((Ct=bt.current)===null||Ct===void 0?void 0:Ct.clientWidth)||0,tn=Er&&pr*(pr/Er),Vr=S.useRef(),Yr=an({scrollLeft:0,isHiddenScrollBar:!1}),Pn=(0,P.Z)(Yr,2),Cn=Pn[0],Mn=Pn[1],Sn=S.useRef({delta:0,x:0}),$n=S.useState(!1),Ui=(0,P.Z)($n,2),zi=Ui[0],pi=Ui[1],na=function(){pi(!1)},wa=function(oi){oi.persist(),Sn.current.delta=oi.pageX-Cn.scrollLeft,Sn.current.x=0,pi(!0),oi.preventDefault()},Yn=function(oi){var Vi,Na=oi||((Vi=window)===null||Vi===void 0?void 0:Vi.event),pa=Na.buttons;if(!zi||pa===0){zi&&pi(!1);return}var Wi=Sn.current.x+oi.pageX-Sn.current.x-Sn.current.delta;Wi<=0&&(Wi=0),Wi+tn>=pr&&(Wi=pr-tn),$t({scrollLeft:Wi/pr*(Er+2)}),Sn.current.x=oi.pageX},bi=function(){if(bt.current){var oi=(0,Vt.os)(bt.current).top,Vi=oi+bt.current.offsetHeight,Na=Kt===window?document.documentElement.scrollTop+window.innerHeight:(0,Vt.os)(Kt).top+Kt.clientHeight;Vi-(0,ze.Z)()<=Na||oi>=Na-zt?Mn(function(pa){return(0,Ue.Z)((0,Ue.Z)({},pa),{},{isHiddenScrollBar:!0})}):Mn(function(pa){return(0,Ue.Z)((0,Ue.Z)({},pa),{},{isHiddenScrollBar:!1})})}},ai=function(oi){Mn(function(Vi){return(0,Ue.Z)((0,Ue.Z)({},Vi),{},{scrollLeft:oi/Er*pr||0})})};return S.useImperativeHandle(Je,function(){return{setScrollLeft:ai}}),S.useEffect(function(){var Tn=(0,Xn.Z)(document.body,"mouseup",na,!1),oi=(0,Xn.Z)(document.body,"mousemove",Yn,!1);return bi(),function(){Tn.remove(),oi.remove()}},[tn,zi]),S.useEffect(function(){var Tn=(0,Xn.Z)(Kt,"scroll",bi,!1),oi=(0,Xn.Z)(window,"resize",bi,!1);return function(){Tn.remove(),oi.remove()}},[Kt]),S.useEffect(function(){Cn.isHiddenScrollBar||Mn(function(Tn){var oi=bt.current;return oi?(0,Ue.Z)((0,Ue.Z)({},Tn),{},{scrollLeft:oi.scrollLeft/oi.scrollWidth*oi.clientWidth}):Tn})},[Cn.isHiddenScrollBar]),Er<=pr||!tn||Cn.isHiddenScrollBar?null:S.createElement("div",{style:{height:(0,ze.Z)(),width:pr,bottom:zt},className:"".concat(Ar,"-sticky-scroll")},S.createElement("div",{onMouseDown:wa,ref:Vr,className:D()("".concat(Ar,"-sticky-scroll-bar"),(0,ee.Z)({},"".concat(Ar,"-sticky-scroll-bar-active"),zi)),style:{width:"".concat(tn,"px"),transform:"translate3d(".concat(Cn.scrollLeft,"px, 0, 0)")}}))},er=S.forwardRef(Xt);function fr(ue){return null}var Rt=fr;function Jt(ue){return null}var ar=Jt,Nr="rc-table",yn=[],Bn={};function ci(){return"No Data"}function ni(ue){var we,Je=(0,Ue.Z)({rowKey:"key",prefixCls:Nr,emptyText:ci},ue),lt=Je.prefixCls,Ct=Je.className,bt=Je.rowClassName,$t=Je.style,zt=Je.data,Kt=Je.rowKey,Ar=Je.scroll,Er=Je.tableLayout,pr=Je.direction,tn=Je.title,Vr=Je.footer,Yr=Je.summary,Pn=Je.caption,Cn=Je.id,Mn=Je.showHeader,Sn=Je.components,$n=Je.emptyText,Ui=Je.onRow,zi=Je.onHeaderRow,pi=Je.internalHooks,na=Je.transformColumns,wa=Je.internalRefs,Yn=Je.tailor,bi=Je.sticky,ai=zt||yn,Tn=!!ai.length,oi=pi===Ae,Vi=S.useCallback(function(uo,bo){return(0,ke.Z)(Sn,uo)||bo},[Sn]),Na=S.useMemo(function(){return typeof Kt=="function"?Kt:function(uo){var bo=uo&&uo[Kt];return bo}},[Kt]),pa=Vi(["body"]),Wi=Rr(),_a=(0,P.Z)(Wi,3),Qa=_a[0],Yo=_a[1],lo=_a[2],vs=Dr(Je,ai,Na),cs=(0,P.Z)(vs,6),ma=cs[0],al=cs[1],mo=cs[2],qo=cs[3],rs=cs[4],xc=cs[5],si=Ar==null?void 0:Ar.x,Gi=S.useState(0),$i=(0,P.Z)(Gi,2),Oi=$i[0],vo=$i[1],Pi=Mt((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},Je),ma),{},{expandable:!!ma.expandedRowRender,columnTitle:ma.columnTitle,expandedKeys:mo,getRowKey:Na,onTriggerExpand:xc,expandIcon:qo,expandIconColumnIndex:ma.expandIconColumnIndex,direction:pr,scrollWidth:oi&&Yn&&typeof si=="number"?si:null}),oi?na:null),ca=(0,P.Z)(Pi,3),ja=ca[0],$a=ca[1],Ml=ca[2],nl=Ml!=null?Ml:si,Gc=S.useMemo(function(){return{columns:ja,flattenColumns:$a}},[ja,$a]),Us=S.useRef(),Uc=S.useRef(),jn=S.useRef(),dc=S.useRef(),Fu=S.useRef(),co=S.useState(!1),mn=(0,P.Z)(co,2),Lo=mn[0],cl=mn[1],As=S.useState(!1),ia=(0,P.Z)(As,2),Sl=ia[0],Zl=ia[1],Rc=an(new Map),Cc=(0,P.Z)(Rc,2),El=Cc[0],Al=Cc[1],au=Se($a),Ll=au.map(function(uo){return El.get(uo)}),Rs=S.useMemo(function(){return Ll},[Ll.join("_")]),_l=Kn(Rs,$a.length,pr),il=Ar&&Xe(Ar.y),Ms=Ar&&Xe(nl)||!!ma.fixed,Bc=Ms&&$a.some(function(uo){var bo=uo.fixed;return bo}),xA=S.useRef(),PA=on(bi,lt),CA=PA.isSticky,ff=PA.offsetHeader,zf=PA.offsetSummary,ao=PA.offsetScroll,Zo=PA.stickyClassName,Vl=PA.container,us=S.useMemo(function(){return Yr==null?void 0:Yr(ai)},[Yr,ai]),kl=(il||CA)&&S.isValidElement(us)&&us.type===x&&us.props.fixed,Wl,Js,BA;il&&(Js={overflowY:"scroll",maxHeight:Ar.y}),Ms&&(Wl={overflowX:"auto"},il||(Js={overflowY:"hidden"}),BA={width:nl===!0?"auto":nl,minWidth:"100%"});var hf=S.useCallback(function(uo,bo){(0,ye.Z)(Us.current)&&Al(function(rA){if(rA.get(uo)!==bo){var su=new Map(rA);return su.set(uo,bo),su}return rA})},[]),pf=jr(null),id=(0,P.Z)(pf,2),Ao=id[0],Bs=id[1];function SA(uo,bo){bo&&(typeof bo=="function"?bo(uo):bo.scrollLeft!==uo&&(bo.scrollLeft=uo,bo.scrollLeft!==uo&&setTimeout(function(){bo.scrollLeft=uo},0)))}var EA=(0,Ne.Z)(function(uo){var bo=uo.currentTarget,rA=uo.scrollLeft,su=pr==="rtl",WA=typeof rA=="number"?rA:bo.scrollLeft,S0=bo||Bn;if(!Bs()||Bs()===S0){var Dl;Ao(S0),SA(WA,Uc.current),SA(WA,jn.current),SA(WA,Fu.current),SA(WA,(Dl=xA.current)===null||Dl===void 0?void 0:Dl.setScrollLeft)}var _A=bo||Uc.current;if(_A){var _h=_A.scrollWidth,Xf=_A.clientWidth;if(_h===Xf){cl(!1),Zl(!1);return}su?(cl(-WA<_h-Xf),Zl(-WA>0)):(cl(WA>0),Zl(WA<_h-Xf))}}),Gl=function(){Ms&&jn.current?EA({currentTarget:jn.current}):(cl(!1),Zl(!1))},$f=function(bo){var rA=bo.width;rA!==Oi&&(Gl(),vo(Us.current?Us.current.offsetWidth:rA))},TA=S.useRef(!1);S.useEffect(function(){TA.current&&Gl()},[Ms,zt,ja.length]),S.useEffect(function(){TA.current=!0},[]);var Zf=S.useState(0),Vf=(0,P.Z)(Zf,2),ad=Vf[0],Nd=Vf[1],Od=S.useState(!0),od=(0,P.Z)(Od,2),zr=od[0],Pd=od[1];S.useEffect(function(){(!Yn||!oi)&&(jn.current instanceof Element?Nd((0,ze.o)(jn.current).width):Nd((0,ze.o)(dc.current).width)),Pd((0,be.G)("position","sticky"))},[]),S.useEffect(function(){oi&&wa&&(wa.body.current=jn.current)});var mf=S.useCallback(function(uo){return S.createElement(S.Fragment,null,S.createElement(ji,uo),kl==="top"&&S.createElement(Be,uo,us))},[kl,us]),Wf=S.useCallback(function(uo){return S.createElement(Be,uo,us)},[us]),gf=Vi(["table"],"table"),Sh=S.useMemo(function(){return Er||(Bc?nl==="max-content"?"auto":"fixed":il||CA||$a.some(function(uo){var bo=uo.ellipsis;return bo})?"fixed":"auto")},[il,Bc,$a,Er,CA]),Eh,Gf={colWidths:Rs,columCount:$a.length,stickyOffsets:_l,onHeaderRow:zi,fixHeader:il,scroll:Ar},bl=S.useMemo(function(){return Tn?null:typeof $n=="function"?$n():$n},[Tn,$n]),Mu=S.createElement(Or,{data:ai,measureColumnWidth:il||Ms||CA}),vf=S.createElement(Un,{colWidths:$a.map(function(uo){var bo=uo.width;return bo}),columns:$a}),sd=Pn!=null?S.createElement("caption",{className:"".concat(lt,"-caption")},Pn):void 0,bf=(0,gt.Z)(Je,{data:!0}),UA=(0,gt.Z)(Je,{aria:!0});if(il||CA){var ou;typeof pa=="function"?(ou=pa(ai,{scrollbarSize:ad,ref:jn,onScroll:EA}),Gf.colWidths=$a.map(function(uo,bo){var rA=uo.width,su=bo===$a.length-1?rA-ad:rA;return typeof su=="number"&&!Number.isNaN(su)?su:0})):ou=S.createElement("div",{style:(0,Ue.Z)((0,Ue.Z)({},Wl),Js),onScroll:EA,ref:jn,className:D()("".concat(lt,"-body"))},S.createElement(gf,(0,$.Z)({style:(0,Ue.Z)((0,Ue.Z)({},BA),{},{tableLayout:Sh})},UA),sd,vf,Mu,!kl&&us&&S.createElement(Be,{stickyOffsets:_l,flattenColumns:$a,columns:ja},us)));var ds=(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({noData:!ai.length,maxContentScroll:Ms&&nl==="max-content"},Gf),Gc),{},{direction:pr,stickyClassName:Zo,onScroll:EA});Eh=S.createElement(S.Fragment,null,Mn!==!1&&S.createElement(xn,(0,$.Z)({},ds,{stickyTopOffset:ff,className:"".concat(lt,"-header"),ref:Uc}),mf),ou,kl&&kl!=="top"&&S.createElement(xn,(0,$.Z)({},ds,{stickyBottomOffset:zf,className:"".concat(lt,"-summary"),ref:Fu}),Wf),CA&&S.createElement(er,{ref:xA,offsetScroll:ao,scrollBodyRef:jn,onScroll:EA,container:Vl}))}else Eh=S.createElement("div",{style:(0,Ue.Z)((0,Ue.Z)({},Wl),Js),className:D()("".concat(lt,"-content")),onScroll:EA,ref:jn},S.createElement(gf,(0,$.Z)({style:(0,Ue.Z)((0,Ue.Z)({},BA),{},{tableLayout:Sh})},UA),sd,vf,Mn!==!1&&S.createElement(ji,(0,$.Z)({},Gf,Gc)),Mu,us&&S.createElement(Be,{stickyOffsets:_l,flattenColumns:$a,columns:ja},us)));var Qc=S.createElement("div",(0,$.Z)({className:D()(lt,Ct,(we={},(0,ee.Z)(we,"".concat(lt,"-rtl"),pr==="rtl"),(0,ee.Z)(we,"".concat(lt,"-ping-left"),Lo),(0,ee.Z)(we,"".concat(lt,"-ping-right"),Sl),(0,ee.Z)(we,"".concat(lt,"-layout-fixed"),Er==="fixed"),(0,ee.Z)(we,"".concat(lt,"-fixed-header"),il),(0,ee.Z)(we,"".concat(lt,"-fixed-column"),Bc),(0,ee.Z)(we,"".concat(lt,"-scroll-horizontal"),Ms),(0,ee.Z)(we,"".concat(lt,"-has-fix-left"),$a[0]&&$a[0].fixed),(0,ee.Z)(we,"".concat(lt,"-has-fix-right"),$a[$a.length-1]&&$a[$a.length-1].fixed==="right"),we)),style:$t,id:Cn,ref:Us},bf),tn&&S.createElement(On,{className:"".concat(lt,"-title")},tn(ai)),S.createElement("div",{ref:dc,className:"".concat(lt,"-container")},Eh),Vr&&S.createElement(On,{className:"".concat(lt,"-footer")},Vr(ai)));Ms&&(Qc=S.createElement(Qe.Z,{onResize:$f},Qc));var Xl=Hr($a,_l,pr,ja),Lu=S.useMemo(function(){return{scrollX:nl,prefixCls:lt,getComponent:Vi,scrollbarSize:ad,direction:pr,fixedInfoList:Xl,isSticky:CA,supportSticky:zr,componentWidth:Oi,fixHeader:il,fixColumn:Bc,horizonScroll:Ms,tableLayout:Sh,rowClassName:bt,expandedRowClassName:ma.expandedRowClassName,expandIcon:qo,expandableType:al,expandRowByClick:ma.expandRowByClick,expandedRowRender:ma.expandedRowRender,onTriggerExpand:xc,expandIconColumnIndex:ma.expandIconColumnIndex,indentSize:ma.indentSize,allColumnsFixedLeft:$a.every(function(uo){return uo.fixed==="left"}),emptyNode:bl,columns:ja,flattenColumns:$a,onColumnResize:hf,hoverStartRow:Qa,hoverEndRow:Yo,onHover:lo,rowExpandable:ma.rowExpandable,onRow:Ui,getRowKey:Na,expandedKeys:mo,childrenColumnName:rs}},[nl,lt,Vi,ad,pr,Xl,CA,zr,Oi,il,Bc,Ms,Sh,bt,ma.expandedRowClassName,qo,al,ma.expandRowByClick,ma.expandedRowRender,xc,ma.expandIconColumnIndex,ma.indentSize,bl,ja,$a,hf,Qa,Yo,lo,ma.rowExpandable,Ui,Na,mo,rs]);return S.createElement(K.Provider,{value:Lu},Qc)}function Ii(ue){return se(ni,ue)}var qn=Ii();qn.EXPAND_COLUMN=pe,qn.INTERNAL_HOOKS=Ae,qn.Column=Rt,qn.ColumnGroup=ar,qn.Summary=H;var zn=qn,xi=C(48911),wi=F(null),Ci=F(null);function Ai(ue,we,Je){var lt=we||1;return Je[ue+lt]-(Je[ue]||0)}function Bi(ue){var we=ue.rowInfo,Je=ue.column,lt=ue.colIndex,Ct=ue.indent,bt=ue.index,$t=ue.renderIndex,zt=ue.record,Kt=ue.style,Ar=ue.className,Er=ue.inverse,pr=ue.getHeight,tn=Je.render,Vr=Je.dataIndex,Yr=Je.className,Pn=Je.width,Cn=v(Ci,["columnsOffset"]),Mn=Cn.columnsOffset,Sn=ct(we,Je,lt,Ct,bt),$n=Sn.key,Ui=Sn.fixedInfo,zi=Sn.appendCellNode,pi=Sn.additionalCellProps,na=pi.style,wa=pi.colSpan,Yn=wa===void 0?1:wa,bi=pi.rowSpan,ai=bi===void 0?1:bi,Tn=lt-1,oi=Ai(Tn,Yn,Mn),Vi=Yn>1?Pn-oi:0,Na=(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},na),Kt),{},{flex:"0 0 ".concat(oi,"px"),width:"".concat(oi,"px"),marginRight:Vi,pointerEvents:"auto"}),pa=S.useMemo(function(){return Er?ai<=1:Yn===0||ai===0||ai>1},[ai,Yn,Er]);pa?Na.visibility="hidden":Er&&(Na.height=pr==null?void 0:pr(ai));var Wi=pa?function(){return null}:tn,_a={};return(ai===0||Yn===0)&&(_a.rowSpan=1,_a.colSpan=1),S.createElement(sr,(0,$.Z)({className:D()(Yr,Ar),ellipsis:Je.ellipsis,align:Je.align,scope:Je.rowScope,component:"div",prefixCls:we.prefixCls,key:$n,record:zt,index:bt,renderIndex:$t,dataIndex:Vr,render:Wi,shouldCellUpdate:Je.shouldCellUpdate},Ui,{appendNode:zi,additionalProps:(0,Ue.Z)((0,Ue.Z)({},pi),{},{style:Na},_a)}))}var Xi=Bi,ri=["data","index","className","rowKey","style","extra","getHeight"],Ti=S.forwardRef(function(ue,we){var Je=ue.data,lt=ue.index,Ct=ue.className,bt=ue.rowKey,$t=ue.style,zt=ue.extra,Kt=ue.getHeight,Ar=(0,dt.Z)(ue,ri),Er=Je.record,pr=Je.indent,tn=Je.index,Vr=v(K,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Yr=Vr.scrollX,Pn=Vr.flattenColumns,Cn=Vr.prefixCls,Mn=Vr.fixColumn,Sn=Vr.componentWidth,$n=Fe(Er,bt,lt,pr),Ui=$n.rowSupportExpand,zi=$n.expanded,pi=$n.rowProps,na=$n.expandedRowRender,wa=$n.expandedRowClassName,Yn;if(Ui&&zi){var bi=na(Er,lt,pr+1,zi),ai=wa==null?void 0:wa(Er,lt,pr),Tn={};Mn&&(Tn={style:(0,ee.Z)({},"--virtual-width","".concat(Sn,"px"))});var oi="".concat(Cn,"-expanded-row-cell");Yn=S.createElement("div",{className:D()("".concat(Cn,"-expanded-row"),"".concat(Cn,"-expanded-row-level-").concat(pr+1),ai)},S.createElement(sr,{component:"div",prefixCls:Cn,className:D()(oi,(0,ee.Z)({},"".concat(oi,"-fixed"),Mn)),additionalProps:Tn},bi))}var Vi=(0,Ue.Z)((0,Ue.Z)({},$t),{},{width:Yr});zt&&(Vi.position="absolute",Vi.pointerEvents="none");var Na=S.createElement("div",(0,$.Z)({},pi,Ar,{ref:Ui?null:we,className:D()(Ct,"".concat(Cn,"-row"),pi==null?void 0:pi.className,(0,ee.Z)({},"".concat(Cn,"-row-extra"),zt)),style:(0,Ue.Z)((0,Ue.Z)({},Vi),pi==null?void 0:pi.style)}),Pn.map(function(pa,Wi){return S.createElement(Xi,{key:Wi,rowInfo:$n,column:pa,colIndex:Wi,indent:pr,index:lt,renderIndex:tn,record:Er,inverse:zt,getHeight:Kt})}));return Ui?S.createElement("div",{ref:we},Na,Yn):Na}),Ha=ne(Ti),li=Ha,pn=S.forwardRef(function(ue,we){var Je=ue.data,lt=ue.onScroll,Ct=v(K,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),bt=Ct.flattenColumns,$t=Ct.onColumnResize,zt=Ct.getRowKey,Kt=Ct.expandedKeys,Ar=Ct.prefixCls,Er=Ct.childrenColumnName,pr=Ct.emptyNode,tn=Ct.scrollX,Vr=v(wi),Yr=Vr.scrollY,Pn=Vr.listItemHeight,Cn=S.useRef(),Mn=at(Je,Er,Kt,zt),Sn=S.useMemo(function(){var Yn=0;return bt.map(function(bi){var ai=bi.width,Tn=bi.key;return Yn+=ai,[Tn,ai,Yn]})},[bt]),$n=S.useMemo(function(){return Sn.map(function(Yn){return Yn[2]})},[Sn]);S.useEffect(function(){Sn.forEach(function(Yn){var bi=(0,P.Z)(Yn,2),ai=bi[0],Tn=bi[1];$t(ai,Tn)})},[Sn]),S.useImperativeHandle(we,function(){var Yn={};return Object.defineProperty(Yn,"scrollLeft",{get:function(){var ai;return((ai=Cn.current)===null||ai===void 0?void 0:ai.getScrollInfo().x)||0},set:function(ai){var Tn;(Tn=Cn.current)===null||Tn===void 0||Tn.scrollTo({left:ai})}}),Yn});var Ui=function(bi,ai){var Tn,oi=(Tn=Mn[ai])===null||Tn===void 0?void 0:Tn.record,Vi=bi.onCell;if(Vi){var Na,pa=Vi(oi,ai);return(Na=pa==null?void 0:pa.rowSpan)!==null&&Na!==void 0?Na:1}return 1},zi=function(bi){var ai=bi.start,Tn=bi.end,oi=bi.getSize,Vi=bi.offsetY;if(Tn<0)return null;for(var Na=bt.filter(function(si){return Ui(si,ai)===0}),pa=ai,Wi=function(Gi){if(Na=Na.filter(function($i){return Ui($i,Gi)===0}),!Na.length)return pa=Gi,"break"},_a=ai;_a>=0;_a-=1){var Qa=Wi(_a);if(Qa==="break")break}for(var Yo=bt.filter(function(si){return Ui(si,Tn)!==1}),lo=Tn,vs=function(Gi){if(Yo=Yo.filter(function($i){return Ui($i,Gi)!==1}),!Yo.length)return lo=Math.max(Gi-1,Tn),"break"},cs=Tn;cs<Mn.length;cs+=1){var ma=vs(cs);if(ma==="break")break}for(var al=[],mo=function(Gi){var $i=Mn[Gi];if(!$i)return"continue";bt.some(function(Oi){return Ui(Oi,Gi)>1})&&al.push(Gi)},qo=pa;qo<=lo;qo+=1)var rs=mo(qo);var xc=al.map(function(si){var Gi=Mn[si],$i=zt(Gi.record,si),Oi=function(ca){var ja=si+ca-1,$a=zt(Mn[ja].record,ja),Ml=oi($i,$a);return Ml.bottom-Ml.top},vo=oi($i);return S.createElement(li,{key:si,data:Gi,rowKey:$i,index:si,style:{top:-Vi+vo.top},extra:!0,getHeight:Oi})});return xc},pi=S.useMemo(function(){return{columnsOffset:$n}},[$n]),na="".concat(Ar,"-tbody"),wa;return Mn.length?wa=S.createElement(xi.Z,{fullHeight:!1,ref:Cn,className:D()(na,"".concat(na,"-virtual")),height:Yr,itemHeight:Pn||24,data:Mn,itemKey:function(bi){return zt(bi.record)},scrollWidth:tn,onVirtualScroll:function(bi){var ai=bi.x;lt({scrollLeft:ai})},extraRender:zi},function(Yn,bi,ai){var Tn=zt(Yn.record,bi);return S.createElement(li,(0,$.Z)({data:Yn,rowKey:Tn,index:bi},ai))}):wa=S.createElement("div",{className:D()("".concat(Ar,"-placeholder"))},S.createElement(sr,{component:"div",prefixCls:Ar},pr)),S.createElement(Ci.Provider,{value:pi},wa)}),ln=ne(pn),Jn=ln,Hn=function(we,Je){var lt=Je.ref,Ct=Je.onScroll;return S.createElement(Jn,{ref:lt,data:we,onScroll:Ct})},hi=100;function qi(ue){var we=ue.columns,Je=ue.scroll,lt=ue.prefixCls,Ct=lt===void 0?Nr:lt,bt=ue.className,$t=ue.listItemHeight,zt=Je||{},Kt=zt.x,Ar=zt.y;typeof Kt!="number"&&(Kt=((we||[]).length+1)*hi),typeof Ar!="number"&&(Ar=500);var Er=S.useMemo(function(){return{scrollY:Ar,listItemHeight:$t}},[Ar,$t]);return S.createElement(wi.Provider,{value:Er},S.createElement(zn,(0,$.Z)({},ue,{className:D()(bt,"".concat(Ct,"-virtual")),scroll:(0,Ue.Z)((0,Ue.Z)({},Je),{},{x:Kt}),components:{body:Hn},columns:we,internalHooks:Ae,tailor:!0})))}function Li(ue){return se(qi,ue)}var Ua=Li(),Aa=null;function Bo(ue){return null}var Wn=Bo;function Fn(ue){return null}var Ni=Fn,Ji=C(2738),Fa=C(68031),Is=C(36355),za=C(93891),fa=C(19716),Io=C(8628),So=C(31724),Po=C(58421),Os=C(71418),po=C(88088);function bs(ue){return function(Je){let{prefixCls:lt,onExpand:Ct,record:bt,expanded:$t,expandable:zt}=Je;const Kt=`${lt}-row-expand-icon`;return S.createElement("button",{type:"button",onClick:Ar=>{Ct(bt,Ar),Ar.stopPropagation()},className:D()(Kt,{[`${Kt}-spaced`]:!zt,[`${Kt}-expanded`]:zt&&$t,[`${Kt}-collapsed`]:zt&&!$t}),"aria-label":$t?ue.collapse:ue.expand,"aria-expanded":$t})}}var Ps=bs;function $s(ue,we){return"key"in ue&&ue.key!==void 0&&ue.key!==null?ue.key:ue.dataIndex?Array.isArray(ue.dataIndex)?ue.dataIndex.join("."):ue.dataIndex:we}function To(ue,we){return we?`${we}-${ue}`:`${ue}`}function Uo(ue,we){return typeof ue=="function"?ue(we):ue}function ys(ue,we){const Je=Uo(ue,we);return Object.prototype.toString.call(Je)==="[object Object]"?"":Je}var el={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"},vl=el,ic=C(7657),ac=function(we,Je){return S.createElement(ic.Z,(0,$.Z)({},we,{ref:Je,icon:vl}))},Ql=S.forwardRef(ac),Zs=Ql,Dc=C(56762);function Kl(ue){const we=S.useRef(ue),Je=(0,Dc.Z)();return[()=>we.current,lt=>{we.current=lt,Je()}]}var Hl=C(3113),Vs=C(24905),as=C(38854),ii=C(64165),la=C(20834),ta=C(40875),oa=C(5112),Da=C(17574),so=C(47472),Ws=C(92832);function ws(ue){let{value:we,onChange:Je,filterSearch:lt,tablePrefixCls:Ct,locale:bt}=ue;return lt?S.createElement("div",{className:`${Ct}-filter-dropdown-search`},S.createElement(Ws.default,{prefix:S.createElement(so.Z,null),placeholder:bt.filterSearchPlaceholder,onChange:Je,value:we,htmlSize:1,className:`${Ct}-filter-dropdown-search-input`})):null}var xs=ws,ms=C(10228);const eo=ue=>{const{keyCode:we}=ue;we===ms.Z.ENTER&&ue.stopPropagation()};var os=S.forwardRef((ue,we)=>S.createElement("div",{className:ue.className,onClick:Je=>Je.stopPropagation(),onKeyDown:eo,ref:we},ue.children));function ss(ue){let we=[];return(ue||[]).forEach(Je=>{let{value:lt,children:Ct}=Je;we.push(lt),Ct&&(we=[].concat((0,hn.Z)(we),(0,hn.Z)(ss(Ct))))}),we}function Fs(ue){return ue.some(we=>{let{children:Je}=we;return Je})}function Go(ue,we){return typeof we=="string"||typeof we=="number"?we==null?void 0:we.toString().toLowerCase().includes(ue.trim().toLowerCase()):!1}function Fo(ue){let{filters:we,prefixCls:Je,filteredKeys:lt,filterMultiple:Ct,searchValue:bt,filterSearch:$t}=ue;return we.map((zt,Kt)=>{const Ar=String(zt.value);if(zt.children)return{key:Ar||Kt,label:zt.text,popupClassName:`${Je}-dropdown-submenu`,children:Fo({filters:zt.children,prefixCls:Je,filteredKeys:lt,filterMultiple:Ct,searchValue:bt,filterSearch:$t})};const Er=Ct?Vs.default:oa.ZP,pr={key:zt.value!==void 0?Ar:Kt,label:S.createElement(S.Fragment,null,S.createElement(Er,{checked:lt.includes(Ar)}),S.createElement("span",null,zt.text))};return bt.trim()?typeof $t=="function"?$t(bt,zt)?pr:null:Go(bt,zt.text)?pr:null:pr})}function pA(ue){var we,Je;const{tablePrefixCls:lt,prefixCls:Ct,column:bt,dropdownPrefixCls:$t,columnKey:zt,filterMultiple:Kt,filterMode:Ar="menu",filterSearch:Er=!1,filterState:pr,triggerFilter:tn,locale:Vr,children:Yr,getPopupContainer:Pn}=ue,{filterDropdownOpen:Cn,onFilterDropdownOpenChange:Mn,filterResetToDefaultFilteredValue:Sn,defaultFilteredValue:$n,filterDropdownVisible:Ui,onFilterDropdownVisibleChange:zi}=bt,[pi,na]=S.useState(!1),wa=!!(pr&&(!((we=pr.filteredKeys)===null||we===void 0)&&we.length||pr.forceFiltered)),Yn=Pi=>{na(Pi),Mn==null||Mn(Pi),zi==null||zi(Pi)},bi=(Je=Cn!=null?Cn:Ui)!==null&&Je!==void 0?Je:pi,ai=pr==null?void 0:pr.filteredKeys,[Tn,oi]=Kl(ai||[]),Vi=Pi=>{let{selectedKeys:ca}=Pi;oi(ca)},Na=(Pi,ca)=>{let{node:ja,checked:$a}=ca;Vi(Kt?{selectedKeys:Pi}:{selectedKeys:$a&&ja.key?[ja.key]:[]})};S.useEffect(()=>{pi&&Vi({selectedKeys:ai||[]})},[ai]);const[pa,Wi]=S.useState([]),_a=Pi=>{Wi(Pi)},[Qa,Yo]=S.useState(""),lo=Pi=>{const{value:ca}=Pi.target;Yo(ca)};S.useEffect(()=>{pi||Yo("")},[pi]);const vs=Pi=>{const ca=Pi&&Pi.length?Pi:null;if(ca===null&&(!pr||!pr.filteredKeys)||(0,W.Z)(ca,pr==null?void 0:pr.filteredKeys,!0))return null;tn({column:bt,key:zt,filteredKeys:ca})},cs=()=>{Yn(!1),vs(Tn())},ma=function(){let{confirm:Pi,closeDropdown:ca}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Pi&&vs([]),ca&&Yn(!1),Yo(""),oi(Sn?($n||[]).map(ja=>String(ja)):[])},al=function(){let{closeDropdown:Pi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Pi&&Yn(!1),vs(Tn())},mo=Pi=>{Pi&&ai!==void 0&&oi(ai||[]),Yn(Pi),!Pi&&!bt.filterDropdown&&cs()},qo=D()({[`${$t}-menu-without-submenu`]:!Fs(bt.filters||[])}),rs=Pi=>{if(Pi.target.checked){const ca=ss(bt==null?void 0:bt.filters).map(ja=>String(ja));oi(ca)}else oi([])},xc=Pi=>{let{filters:ca}=Pi;return(ca||[]).map((ja,$a)=>{const Ml=String(ja.value),nl={title:ja.text,key:ja.value!==void 0?Ml:$a};return ja.children&&(nl.children=xc({filters:ja.children})),nl})},si=Pi=>{var ca;return Object.assign(Object.assign({},Pi),{text:Pi.title,value:Pi.key,children:((ca=Pi.children)===null||ca===void 0?void 0:ca.map(ja=>si(ja)))||[]})};let Gi;if(typeof bt.filterDropdown=="function")Gi=bt.filterDropdown({prefixCls:`${$t}-custom`,setSelectedKeys:Pi=>Vi({selectedKeys:Pi}),selectedKeys:Tn(),confirm:al,clearFilters:ma,filters:bt.filters,visible:bi,close:()=>{Yn(!1)}});else if(bt.filterDropdown)Gi=bt.filterDropdown;else{const Pi=Tn()||[],ca=()=>(bt.filters||[]).length===0?S.createElement(ii.Z,{image:ii.Z.PRESENTED_IMAGE_SIMPLE,description:Vr.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Ar==="tree"?S.createElement(S.Fragment,null,S.createElement(xs,{filterSearch:Er,value:Qa,onChange:lo,tablePrefixCls:lt,locale:Vr}),S.createElement("div",{className:`${lt}-filter-dropdown-tree`},Kt?S.createElement(Vs.default,{checked:Pi.length===ss(bt.filters).length,indeterminate:Pi.length>0&&Pi.length<ss(bt.filters).length,className:`${lt}-filter-dropdown-checkall`,onChange:rs},Vr.filterCheckall):null,S.createElement(Da.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Kt,checkStrictly:!Kt,className:`${$t}-menu`,onCheck:Na,checkedKeys:Pi,selectedKeys:Pi,showIcon:!1,treeData:xc({filters:bt.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Qa.trim()?$a=>typeof Er=="function"?Er(Qa,si($a)):Go(Qa,$a.title):void 0}))):S.createElement(S.Fragment,null,S.createElement(xs,{filterSearch:Er,value:Qa,onChange:lo,tablePrefixCls:lt,locale:Vr}),S.createElement(la.default,{selectable:!0,multiple:Kt,prefixCls:`${$t}-menu`,className:qo,onSelect:Vi,onDeselect:Vi,selectedKeys:Pi,getPopupContainer:Pn,openKeys:pa,onOpenChange:_a,items:Fo({filters:bt.filters||[],filterSearch:Er,prefixCls:Ct,filteredKeys:Tn(),filterMultiple:Kt,searchValue:Qa})})),ja=()=>Sn?(0,W.Z)(($n||[]).map($a=>String($a)),Pi,!0):Pi.length===0;Gi=S.createElement(S.Fragment,null,ca(),S.createElement("div",{className:`${Ct}-dropdown-btns`},S.createElement(Hl.ZP,{type:"link",size:"small",disabled:ja(),onClick:()=>ma()},Vr.filterReset),S.createElement(Hl.ZP,{type:"primary",size:"small",onClick:cs},Vr.filterConfirm)))}bt.filterDropdown&&(Gi=S.createElement(ta.J,{selectable:void 0},Gi));const $i=()=>S.createElement(os,{className:`${Ct}-dropdown`},Gi);let Oi;typeof bt.filterIcon=="function"?Oi=bt.filterIcon(wa):bt.filterIcon?Oi=bt.filterIcon:Oi=S.createElement(Zs,null);const{direction:vo}=S.useContext(Is.E_);return S.createElement("div",{className:`${Ct}-column`},S.createElement("span",{className:`${lt}-column-title`},Yr),S.createElement(as.Z,{dropdownRender:$i,trigger:["click"],open:bi,onOpenChange:mo,getPopupContainer:Pn,placement:vo==="rtl"?"bottomLeft":"bottomRight"},S.createElement("span",{role:"button",tabIndex:-1,className:D()(`${Ct}-trigger`,{active:wa}),onClick:Pi=>{Pi.stopPropagation()}},Oi)))}var tu=pA;function Ac(ue,we,Je){let lt=[];return(ue||[]).forEach((Ct,bt)=>{var $t;const zt=To(bt,Je);if(Ct.filters||"filterDropdown"in Ct||"onFilter"in Ct)if("filteredValue"in Ct){let Kt=Ct.filteredValue;"filterDropdown"in Ct||(Kt=($t=Kt==null?void 0:Kt.map(String))!==null&&$t!==void 0?$t:Kt),lt.push({column:Ct,key:$s(Ct,zt),filteredKeys:Kt,forceFiltered:Ct.filtered})}else lt.push({column:Ct,key:$s(Ct,zt),filteredKeys:we&&Ct.defaultFilteredValue?Ct.defaultFilteredValue:void 0,forceFiltered:Ct.filtered});"children"in Ct&&(lt=[].concat((0,hn.Z)(lt),(0,hn.Z)(Ac(Ct.children,we,zt))))}),lt}function mA(ue,we,Je,lt,Ct,bt,$t,zt){return Je.map((Kt,Ar)=>{const Er=To(Ar,zt),{filterMultiple:pr=!0,filterMode:tn,filterSearch:Vr}=Kt;let Yr=Kt;if(Yr.filters||Yr.filterDropdown){const Pn=$s(Yr,Er),Cn=lt.find(Mn=>{let{key:Sn}=Mn;return Pn===Sn});Yr=Object.assign(Object.assign({},Yr),{title:Mn=>S.createElement(tu,{tablePrefixCls:ue,prefixCls:`${ue}-filter`,dropdownPrefixCls:we,column:Yr,columnKey:Pn,filterState:Cn,filterMultiple:pr,filterMode:tn,filterSearch:Vr,triggerFilter:bt,locale:Ct,getPopupContainer:$t},Uo(Kt.title,Mn))})}return"children"in Yr&&(Yr=Object.assign(Object.assign({},Yr),{children:mA(ue,we,Yr.children,lt,Ct,bt,$t,Er)})),Yr})}function ll(ue){const we={};return ue.forEach(Je=>{let{key:lt,filteredKeys:Ct,column:bt}=Je;const{filters:$t,filterDropdown:zt}=bt;if(zt)we[lt]=Ct||null;else if(Array.isArray(Ct)){const Kt=ss($t);we[lt]=Kt.filter(Ar=>Ct.includes(String(Ar)))}else we[lt]=null}),we}function gA(ue,we){return we.reduce((Je,lt)=>{const{column:{onFilter:Ct,filters:bt},filteredKeys:$t}=lt;return Ct&&$t&&$t.length?Je.filter(zt=>$t.some(Kt=>{const Ar=ss(bt),Er=Ar.findIndex(tn=>String(tn)===String(Kt)),pr=Er!==-1?Ar[Er]:Kt;return Ct(pr,zt)})):Je},ue)}const tl=ue=>ue.flatMap(we=>"children"in we?[we].concat((0,hn.Z)(tl(we.children||[]))):[we]);function gs(ue){let{prefixCls:we,dropdownPrefixCls:Je,mergedColumns:lt,onFilterChange:Ct,getPopupContainer:bt,locale:$t}=ue;const zt=S.useMemo(()=>tl(lt||[]),[lt]),[Kt,Ar]=S.useState(()=>Ac(zt,!0)),Er=S.useMemo(()=>{const Yr=Ac(zt,!1);if(Yr.length===0)return Yr;let Pn=!0,Cn=!0;if(Yr.forEach(Mn=>{let{filteredKeys:Sn}=Mn;Sn!==void 0?Pn=!1:Cn=!1}),Pn){const Mn=(zt||[]).map((Sn,$n)=>$s(Sn,To($n)));return Kt.filter(Sn=>{let{key:$n}=Sn;return Mn.includes($n)}).map(Sn=>{const $n=zt[Mn.findIndex(Ui=>Ui===Sn.key)];return Object.assign(Object.assign({},Sn),{column:Object.assign(Object.assign({},Sn.column),$n),forceFiltered:$n.filtered})})}return Yr},[zt,Kt]),pr=S.useMemo(()=>ll(Er),[Er]),tn=Yr=>{const Pn=Er.filter(Cn=>{let{key:Mn}=Cn;return Mn!==Yr.key});Pn.push(Yr),Ar(Pn),Ct(ll(Pn),Pn)};return[Yr=>mA(we,Je,Yr,Er,$t,tn,bt),Er,pr]}var qc=gs;function Ts(ue,we,Je){const lt=S.useRef({});function Ct(bt){if(!lt.current||lt.current.data!==ue||lt.current.childrenColumnName!==we||lt.current.getRowKey!==Je){let zt=function(Kt){Kt.forEach((Ar,Er)=>{const pr=Je(Ar,Er);$t.set(pr,Ar),Ar&&typeof Ar=="object"&&we in Ar&&zt(Ar[we]||[])})};const $t=new Map;zt(ue),lt.current={data:ue,childrenColumnName:we,kvMap:$t,getRowKey:Je}}return lt.current.kvMap.get(bt)}return[Ct]}var OA=C(50371),uc=function(ue,we){var Je={};for(var lt in ue)Object.prototype.hasOwnProperty.call(ue,lt)&&we.indexOf(lt)<0&&(Je[lt]=ue[lt]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,lt=Object.getOwnPropertySymbols(ue);Ct<lt.length;Ct++)we.indexOf(lt[Ct])<0&&Object.prototype.propertyIsEnumerable.call(ue,lt[Ct])&&(Je[lt[Ct]]=ue[lt[Ct]]);return Je};const jl=10;function to(ue,we){const Je={current:ue.current,pageSize:ue.pageSize};return Object.keys(we&&typeof we=="object"?we:{}).forEach(Ct=>{const bt=ue[Ct];typeof bt!="function"&&(Je[Ct]=bt)}),Je}function Gs(ue,we,Je){const lt=Je&&typeof Je=="object"?Je:{},{total:Ct=0}=lt,bt=uc(lt,["total"]),[$t,zt]=(0,S.useState)(()=>({current:"defaultCurrent"in bt?bt.defaultCurrent:1,pageSize:"defaultPageSize"in bt?bt.defaultPageSize:jl})),Kt=(0,OA.Z)($t,bt,{total:Ct>0?Ct:ue}),Ar=Math.ceil((Ct||ue)/Kt.pageSize);Kt.current>Ar&&(Kt.current=Ar||1);const Er=(tn,Vr)=>{zt({current:tn!=null?tn:1,pageSize:Vr||Kt.pageSize})},pr=(tn,Vr)=>{var Yr;Je&&((Yr=Je.onChange)===null||Yr===void 0||Yr.call(Je,tn,Vr)),Er(tn,Vr),we(tn,Vr||(Kt==null?void 0:Kt.pageSize))};return Je===!1?[{},()=>{}]:[Object.assign(Object.assign({},Kt),{onChange:pr}),Er]}var vA=Gs,Su=C(84105),ls=C(35654),Ca=C(90782),ya=C(71430),ts=C(18929);const go={},jo="SELECT_ALL",zo="SELECT_INVERT",No="SELECT_NONE",Cs=[],oc=(ue,we)=>{let Je=[];return(we||[]).forEach(lt=>{Je.push(lt),lt&&typeof lt=="object"&&ue in lt&&(Je=[].concat((0,hn.Z)(Je),(0,hn.Z)(oc(ue,lt[ue]))))}),Je};var Xs=(ue,we)=>{const{preserveSelectedRowKeys:Je,selectedRowKeys:lt,defaultSelectedRowKeys:Ct,getCheckboxProps:bt,onChange:$t,onSelect:zt,onSelectAll:Kt,onSelectInvert:Ar,onSelectNone:Er,onSelectMultiple:pr,columnWidth:tn,type:Vr,selections:Yr,fixed:Pn,renderCell:Cn,hideSelectAll:Mn,checkStrictly:Sn=!0}=we||{},{prefixCls:$n,data:Ui,pageData:zi,getRecordByKey:pi,getRowKey:na,expandType:wa,childrenColumnName:Yn,locale:bi,getPopupContainer:ai}=ue,[Tn,oi]=(0,ts.Z)(lt||Ct||Cs,{value:lt}),Vi=S.useRef(new Map),Na=(0,S.useCallback)(si=>{if(Je){const Gi=new Map;si.forEach($i=>{let Oi=pi($i);!Oi&&Vi.current.has($i)&&(Oi=Vi.current.get($i)),Gi.set($i,Oi)}),Vi.current=Gi}},[pi,Je]);S.useEffect(()=>{Na(Tn)},[Tn]);const{keyEntities:pa}=(0,S.useMemo)(()=>{if(Sn)return{keyEntities:null};let si=Ui;if(Je){const Gi=new Set(Ui.map((Oi,vo)=>na(Oi,vo))),$i=Array.from(Vi.current).reduce((Oi,vo)=>{let[Pi,ca]=vo;return Gi.has(Pi)?Oi:Oi.concat(ca)},[]);si=[].concat((0,hn.Z)(si),(0,hn.Z)($i))}return(0,ya.I8)(si,{externalGetKey:na,childrenPropName:Yn})},[Ui,na,Sn,Yn,Je]),Wi=(0,S.useMemo)(()=>oc(Yn,zi),[Yn,zi]),_a=(0,S.useMemo)(()=>{const si=new Map;return Wi.forEach((Gi,$i)=>{const Oi=na(Gi,$i),vo=(bt?bt(Gi):null)||{};si.set(Oi,vo)}),si},[Wi,na,bt]),Qa=(0,S.useCallback)(si=>{var Gi;return!!(!((Gi=_a.get(na(si)))===null||Gi===void 0)&&Gi.disabled)},[_a,na]),[Yo,lo]=(0,S.useMemo)(()=>{if(Sn)return[Tn||[],[]];const{checkedKeys:si,halfCheckedKeys:Gi}=(0,Ca.S)(Tn,!0,pa,Qa);return[si||[],Gi]},[Tn,Sn,pa,Qa]),vs=(0,S.useMemo)(()=>{const si=Vr==="radio"?Yo.slice(0,1):Yo;return new Set(si)},[Yo,Vr]),cs=(0,S.useMemo)(()=>Vr==="radio"?new Set:new Set(lo),[lo,Vr]),[ma,al]=(0,S.useState)(null);S.useEffect(()=>{we||oi(Cs)},[!!we]);const mo=(0,S.useCallback)((si,Gi)=>{let $i,Oi;Na(si),Je?($i=si,Oi=si.map(vo=>Vi.current.get(vo))):($i=[],Oi=[],si.forEach(vo=>{const Pi=pi(vo);Pi!==void 0&&($i.push(vo),Oi.push(Pi))})),oi($i),$t==null||$t($i,Oi,{type:Gi})},[oi,pi,$t,Je]),qo=(0,S.useCallback)((si,Gi,$i,Oi)=>{if(zt){const vo=$i.map(Pi=>pi(Pi));zt(pi(si),Gi,vo,Oi)}mo($i,"single")},[zt,pi,mo]),rs=(0,S.useMemo)(()=>!Yr||Mn?null:(Yr===!0?[jo,zo,No]:Yr).map(Gi=>Gi===jo?{key:"all",text:bi.selectionAll,onSelect(){mo(Ui.map(($i,Oi)=>na($i,Oi)).filter($i=>{const Oi=_a.get($i);return!(Oi!=null&&Oi.disabled)||vs.has($i)}),"all")}}:Gi===zo?{key:"invert",text:bi.selectInvert,onSelect(){const $i=new Set(vs);zi.forEach((vo,Pi)=>{const ca=na(vo,Pi),ja=_a.get(ca);ja!=null&&ja.disabled||($i.has(ca)?$i.delete(ca):$i.add(ca))});const Oi=Array.from($i);Ar&&Ar(Oi),mo(Oi,"invert")}}:Gi===No?{key:"none",text:bi.selectNone,onSelect(){Er==null||Er(),mo(Array.from(vs).filter($i=>{const Oi=_a.get($i);return Oi==null?void 0:Oi.disabled}),"none")}}:Gi).map(Gi=>Object.assign(Object.assign({},Gi),{onSelect:function(){for(var $i,Oi,vo=arguments.length,Pi=new Array(vo),ca=0;ca<vo;ca++)Pi[ca]=arguments[ca];(Oi=Gi.onSelect)===null||Oi===void 0||($i=Oi).call.apply($i,[Gi].concat(Pi)),al(null)}})),[Yr,vs,zi,na,Ar,mo]);return[(0,S.useCallback)(si=>{var Gi;if(!we)return si.filter(co=>co!==go);let $i=(0,hn.Z)(si);const Oi=new Set(vs),vo=Wi.map(na).filter(co=>!_a.get(co).disabled),Pi=vo.every(co=>Oi.has(co)),ca=vo.some(co=>Oi.has(co)),ja=()=>{const co=[];Pi?vo.forEach(Lo=>{Oi.delete(Lo),co.push(Lo)}):vo.forEach(Lo=>{Oi.has(Lo)||(Oi.add(Lo),co.push(Lo))});const mn=Array.from(Oi);Kt==null||Kt(!Pi,mn.map(Lo=>pi(Lo)),co.map(Lo=>pi(Lo))),mo(mn,"all"),al(null)};let $a;if(Vr!=="radio"){let co;if(rs){const ia={getPopupContainer:ai,items:rs.map((Sl,Zl)=>{const{key:Rc,text:Cc,onSelect:El}=Sl;return{key:Rc!=null?Rc:Zl,onClick:()=>{El==null||El(vo)},label:Cc}})};co=S.createElement("div",{className:`${$n}-selection-extra`},S.createElement(as.Z,{menu:ia,getPopupContainer:ai},S.createElement("span",null,S.createElement(Su.Z,null))))}const mn=Wi.map((ia,Sl)=>{const Zl=na(ia,Sl),Rc=_a.get(Zl)||{};return Object.assign({checked:Oi.has(Zl)},Rc)}).filter(ia=>{let{disabled:Sl}=ia;return Sl}),Lo=!!mn.length&&mn.length===Wi.length,cl=Lo&&mn.every(ia=>{let{checked:Sl}=ia;return Sl}),As=Lo&&mn.some(ia=>{let{checked:Sl}=ia;return Sl});$a=!Mn&&S.createElement("div",{className:`${$n}-selection`},S.createElement(Vs.default,{checked:Lo?cl:!!Wi.length&&Pi,indeterminate:Lo?!cl&&As:!Pi&&ca,onChange:ja,disabled:Wi.length===0||Lo,"aria-label":co?"Custom selection":"Select all",skipGroup:!0}),co)}let Ml;Vr==="radio"?Ml=(co,mn,Lo)=>{const cl=na(mn,Lo),As=Oi.has(cl);return{node:S.createElement(oa.ZP,Object.assign({},_a.get(cl),{checked:As,onClick:ia=>ia.stopPropagation(),onChange:ia=>{Oi.has(cl)||qo(cl,!0,[cl],ia.nativeEvent)}})),checked:As}}:Ml=(co,mn,Lo)=>{var cl;const As=na(mn,Lo),ia=Oi.has(As),Sl=cs.has(As),Zl=_a.get(As);let Rc;return wa==="nest"?Rc=Sl:Rc=(cl=Zl==null?void 0:Zl.indeterminate)!==null&&cl!==void 0?cl:Sl,{node:S.createElement(Vs.default,Object.assign({},Zl,{indeterminate:Rc,checked:ia,skipGroup:!0,onClick:Cc=>Cc.stopPropagation(),onChange:Cc=>{let{nativeEvent:El}=Cc;const{shiftKey:Al}=El;let au=-1,Ll=-1;if(Al&&Sn){const Rs=new Set([ma,As]);vo.some((_l,il)=>{if(Rs.has(_l))if(au===-1)au=il;else return Ll=il,!0;return!1})}if(Ll!==-1&&au!==Ll&&Sn){const Rs=vo.slice(au,Ll+1),_l=[];ia?Rs.forEach(Ms=>{Oi.has(Ms)&&(_l.push(Ms),Oi.delete(Ms))}):Rs.forEach(Ms=>{Oi.has(Ms)||(_l.push(Ms),Oi.add(Ms))});const il=Array.from(Oi);pr==null||pr(!ia,il.map(Ms=>pi(Ms)),_l.map(Ms=>pi(Ms))),mo(il,"multiple")}else{const Rs=Yo;if(Sn){const _l=ia?(0,ls._5)(Rs,As):(0,ls.L0)(Rs,As);qo(As,!ia,_l,El)}else{const _l=(0,Ca.S)([].concat((0,hn.Z)(Rs),[As]),!0,pa,Qa),{checkedKeys:il,halfCheckedKeys:Ms}=_l;let Bc=il;if(ia){const xA=new Set(il);xA.delete(As),Bc=(0,Ca.S)(Array.from(xA),{checked:!1,halfCheckedKeys:Ms},pa,Qa).checkedKeys}qo(As,!ia,Bc,El)}}al(ia?null:As)}})),checked:ia}};const nl=(co,mn,Lo)=>{const{node:cl,checked:As}=Ml(co,mn,Lo);return Cn?Cn(As,mn,Lo,cl):cl};if(!$i.includes(go))if($i.findIndex(co=>{var mn;return((mn=co[yr])===null||mn===void 0?void 0:mn.columnType)==="EXPAND_COLUMN"})===0){const[co,...mn]=$i;$i=[co,go].concat((0,hn.Z)(mn))}else $i=[go].concat((0,hn.Z)($i));const Gc=$i.indexOf(go);$i=$i.filter((co,mn)=>co!==go||mn===Gc);const Us=$i[Gc-1],Uc=$i[Gc+1];let jn=Pn;jn===void 0&&((Uc==null?void 0:Uc.fixed)!==void 0?jn=Uc.fixed:(Us==null?void 0:Us.fixed)!==void 0&&(jn=Us.fixed)),jn&&Us&&((Gi=Us[yr])===null||Gi===void 0?void 0:Gi.columnType)==="EXPAND_COLUMN"&&Us.fixed===void 0&&(Us.fixed=jn);const dc=D()(`${$n}-selection-col`,{[`${$n}-selection-col-with-dropdown`]:Yr&&Vr==="checkbox"}),Fu={fixed:jn,width:tn,className:`${$n}-selection-column`,title:we.columnTitle||$a,render:nl,onCell:we.onCell,[yr]:{className:dc}};return $i.map(co=>co===go?Fu:co)},[na,Wi,we,Yo,vs,cs,tn,rs,wa,ma,_a,pr,qo,Qa]),vs]},bA=C(89489),xl=C(59477),eA=C(6848);const rl="ascend",Id="descend";function ru(ue){return typeof ue.sorter=="object"&&typeof ue.sorter.multiple=="number"?ue.sorter.multiple:!1}function jA(ue){return typeof ue=="function"?ue:ue&&typeof ue=="object"&&ue.compare?ue.compare:!1}function cf(ue,we){return we?ue[ue.indexOf(we)+1]:ue[0]}function Wc(ue,we,Je){let lt=[];function Ct(bt,$t){lt.push({column:bt,key:$s(bt,$t),multiplePriority:ru(bt),sortOrder:bt.sortOrder})}return(ue||[]).forEach((bt,$t)=>{const zt=To($t,Je);bt.children?("sortOrder"in bt&&Ct(bt,zt),lt=[].concat((0,hn.Z)(lt),(0,hn.Z)(Wc(bt.children,we,zt)))):bt.sorter&&("sortOrder"in bt?Ct(bt,zt):we&&bt.defaultSortOrder&&lt.push({column:bt,key:$s(bt,zt),multiplePriority:ru(bt),sortOrder:bt.defaultSortOrder}))}),lt}function Yu(ue,we,Je,lt,Ct,bt,$t,zt){return(we||[]).map((Kt,Ar)=>{const Er=To(Ar,zt);let pr=Kt;if(pr.sorter){const tn=pr.sortDirections||Ct,Vr=pr.showSorterTooltip===void 0?$t:pr.showSorterTooltip,Yr=$s(pr,Er),Pn=Je.find(wa=>{let{key:Yn}=wa;return Yn===Yr}),Cn=Pn?Pn.sortOrder:null,Mn=cf(tn,Cn);let Sn;if(Kt.sortIcon)Sn=Kt.sortIcon({sortOrder:Cn});else{const wa=tn.includes(rl)&&S.createElement(xl.Z,{className:D()(`${ue}-column-sorter-up`,{active:Cn===rl})}),Yn=tn.includes(Id)&&S.createElement(bA.Z,{className:D()(`${ue}-column-sorter-down`,{active:Cn===Id})});Sn=S.createElement("span",{className:D()(`${ue}-column-sorter`,{[`${ue}-column-sorter-full`]:!!(wa&&Yn)})},S.createElement("span",{className:`${ue}-column-sorter-inner`,"aria-hidden":"true"},wa,Yn))}const{cancelSort:$n,triggerAsc:Ui,triggerDesc:zi}=bt||{};let pi=$n;Mn===Id?pi=zi:Mn===rl&&(pi=Ui);const na=typeof Vr=="object"?Vr:{title:pi};pr=Object.assign(Object.assign({},pr),{className:D()(pr.className,{[`${ue}-column-sort`]:Cn}),title:wa=>{const Yn=S.createElement("div",{className:`${ue}-column-sorters`},S.createElement("span",{className:`${ue}-column-title`},Uo(Kt.title,wa)),Sn);return Vr?S.createElement(eA.Z,Object.assign({},na),Yn):Yn},onHeaderCell:wa=>{const Yn=Kt.onHeaderCell&&Kt.onHeaderCell(wa)||{},bi=Yn.onClick,ai=Yn.onKeyDown;Yn.onClick=Vi=>{lt({column:Kt,key:Yr,sortOrder:Mn,multiplePriority:ru(Kt)}),bi==null||bi(Vi)},Yn.onKeyDown=Vi=>{Vi.keyCode===ms.Z.ENTER&&(lt({column:Kt,key:Yr,sortOrder:Mn,multiplePriority:ru(Kt)}),ai==null||ai(Vi))};const Tn=ys(Kt.title,{}),oi=Tn==null?void 0:Tn.toString();return Cn?Yn["aria-sort"]=Cn==="ascend"?"ascending":"descending":Yn["aria-label"]=oi||"",Yn.className=D()(Yn.className,`${ue}-column-has-sorters`),Yn.tabIndex=0,Kt.ellipsis&&(Yn.title=(Tn!=null?Tn:"").toString()),Yn}})}return"children"in pr&&(pr=Object.assign(Object.assign({},pr),{children:Yu(ue,pr.children,Je,lt,Ct,bt,$t,Er)})),pr})}function Nc(ue){const{column:we,sortOrder:Je}=ue;return{column:we,order:Je,field:we.dataIndex,columnKey:we.key}}function Fd(ue){const we=ue.filter(Je=>{let{sortOrder:lt}=Je;return lt}).map(Nc);return we.length===0&&ue.length?Object.assign(Object.assign({},Nc(ue[ue.length-1])),{column:void 0}):we.length<=1?we[0]||{}:we}function Xo(ue,we,Je){const lt=we.slice().sort(($t,zt)=>zt.multiplePriority-$t.multiplePriority),Ct=ue.slice(),bt=lt.filter($t=>{let{column:{sorter:zt},sortOrder:Kt}=$t;return jA(zt)&&Kt});return bt.length?Ct.sort(($t,zt)=>{for(let Kt=0;Kt<bt.length;Kt+=1){const Ar=bt[Kt],{column:{sorter:Er},sortOrder:pr}=Ar,tn=jA(Er);if(tn&&pr){const Vr=tn($t,zt,pr);if(Vr!==0)return pr===rl?Vr:-Vr}}return 0}).map($t=>{const zt=$t[Je];return zt?Object.assign(Object.assign({},$t),{[Je]:Xo(zt,we,Je)}):$t}):Ct}function Oo(ue){let{prefixCls:we,mergedColumns:Je,onSorterChange:lt,sortDirections:Ct,tableLocale:bt,showSorterTooltip:$t}=ue;const[zt,Kt]=S.useState(Wc(Je,!0)),Ar=S.useMemo(()=>{let Yr=!0;const Pn=Wc(Je,!1);if(!Pn.length)return zt;const Cn=[];function Mn($n){Yr?Cn.push($n):Cn.push(Object.assign(Object.assign({},$n),{sortOrder:null}))}let Sn=null;return Pn.forEach($n=>{Sn===null?(Mn($n),$n.sortOrder&&($n.multiplePriority===!1?Yr=!1:Sn=!0)):(Sn&&$n.multiplePriority!==!1||(Yr=!1),Mn($n))}),Cn},[Je,zt]),Er=S.useMemo(()=>{const Yr=Ar.map(Pn=>{let{column:Cn,sortOrder:Mn}=Pn;return{column:Cn,order:Mn}});return{sortColumns:Yr,sortColumn:Yr[0]&&Yr[0].column,sortOrder:Yr[0]&&Yr[0].order}},[Ar]);function pr(Yr){let Pn;Yr.multiplePriority===!1||!Ar.length||Ar[0].multiplePriority===!1?Pn=[Yr]:Pn=[].concat((0,hn.Z)(Ar.filter(Cn=>{let{key:Mn}=Cn;return Mn!==Yr.key})),[Yr]),Kt(Pn),lt(Fd(Pn),Pn)}return[Yr=>Yu(we,Yr,Ar,pr,Ct,bt,$t),Ar,Er,()=>Fd(Ar)]}function Jo(ue,we){return ue.map(Je=>{const lt=Object.assign({},Je);return lt.title=Uo(Je.title,we),"children"in lt&&(lt.children=Jo(lt.children,we)),lt})}function yc(ue){return[S.useCallback(Je=>Jo(Je,ue),[ue])]}var zl=Ii((ue,we)=>{const{_renderTimes:Je}=ue,{_renderTimes:lt}=we;return Je!==lt}),qu=Li((ue,we)=>{const{_renderTimes:Je}=ue,{_renderTimes:lt}=we;return Je!==lt}),yA=C(64993),zA=C(17313),Md=C(83116),Ld=C(37613),ZA=ue=>{const{componentCls:we}=ue,Je=`${ue.lineWidth}px ${ue.lineType} ${ue.tableBorderColor}`,lt=(Ct,bt,$t)=>({[`&${we}-${Ct}`]:{[`> ${we}-container`]:{[`> ${we}-content, > ${we}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${we}-expanded-row-fixed`]:{margin:`-${bt}px -${$t+ue.lineWidth}px`}}}}}});return{[`${we}-wrapper`]:{[`${we}${we}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${we}-title`]:{border:Je,borderBottom:0},[`> ${we}-container`]:{borderInlineStart:Je,borderTop:Je,[`
> ${we}-content,
> ${we}-header,
> ${we}-body,
> ${we}-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:Je},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Je},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${we}-cell-fix-right-first::after`]:{borderInlineEnd:Je}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${we}-expanded-row-fixed`]:{margin:`-${ue.tablePaddingVertical}px -${ue.tablePaddingHorizontal+ue.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:ue.lineWidth,bottom:0,borderInlineEnd:Je,content:'""'}}}}}},[`&${we}-scroll-horizontal`]:{[`> ${we}-container > ${we}-body`]:{"> table > tbody":{[`
> tr${we}-expanded-row,
> tr${we}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},lt("middle",ue.tablePaddingVerticalMiddle,ue.tablePaddingHorizontalMiddle)),lt("small",ue.tablePaddingVerticalSmall,ue.tablePaddingHorizontalSmall)),{[`> ${we}-footer`]:{border:Je,borderTop:0}}),[`${we}-cell`]:{[`${we}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ue.lineWidth}px 0 ${ue.lineWidth}px ${ue.tableHeaderBg}`}},[`${we}-bordered ${we}-cell-scrollbar`]:{borderInlineEnd:Je}}}},wA=ue=>{const{componentCls:we}=ue;return{[`${we}-wrapper`]:{[`${we}-cell-ellipsis`]:Object.assign(Object.assign({},zA.vS),{wordBreak:"keep-all",[`
&${we}-cell-fix-left-last,
&${we}-cell-fix-right-first
`]:{overflow:"visible",[`${we}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${we}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},y0=ue=>{const{componentCls:we}=ue;return{[`${we}-wrapper`]:{[`${we}-tbody > tr${we}-placeholder`]:{textAlign:"center",color:ue.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ue.colorBgContainer}}}}},nu=C(15969),Af=ue=>{const{componentCls:we,antCls:Je,controlInteractiveSize:lt,motionDurationSlow:Ct,lineWidth:bt,paddingXS:$t,lineType:zt,tableBorderColor:Kt,tableExpandIconBg:Ar,tableExpandColumnWidth:Er,borderRadius:pr,fontSize:tn,fontSizeSM:Vr,lineHeight:Yr,tablePaddingVertical:Pn,tablePaddingHorizontal:Cn,tableExpandedRowBg:Mn,paddingXXS:Sn}=ue,$n=lt/2-bt,Ui=$n*2+bt*3,zi=`${bt}px ${zt} ${Kt}`,pi=Sn-bt;return{[`${we}-wrapper`]:{[`${we}-expand-icon-col`]:{width:Er},[`${we}-row-expand-icon-cell`]:{textAlign:"center",[`${we}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${we}-row-indent`]:{height:1,float:"left"},[`${we}-row-expand-icon`]:Object.assign(Object.assign({},(0,nu.N)(ue)),{position:"relative",float:"left",boxSizing:"border-box",width:Ui,height:Ui,padding:0,color:"inherit",lineHeight:`${Ui}px`,background:Ar,border:zi,borderRadius:pr,transform:`scale(${lt/Ui})`,transition:`all ${Ct}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Ct} ease-out`,content:'""'},"&::before":{top:$n,insetInlineEnd:pi,insetInlineStart:pi,height:bt},"&::after":{top:pi,bottom:pi,insetInlineStart:$n,width:bt,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"}}),[`${we}-row-indent + ${we}-row-expand-icon`]:{marginTop:(tn*Yr-bt*3)/2-Math.ceil((Vr*1.4-bt*3)/2),marginInlineEnd:$t},[`tr${we}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Mn}},[`${Je}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${we}-expanded-row-fixed`]:{position:"relative",margin:`-${Pn}px -${Cn}px`,padding:`${Pn}px ${Cn}px`}}}},Kf=ue=>{const{componentCls:we,antCls:Je,iconCls:lt,tableFilterDropdownWidth:Ct,tableFilterDropdownSearchWidth:bt,paddingXXS:$t,paddingXS:zt,colorText:Kt,lineWidth:Ar,lineType:Er,tableBorderColor:pr,tableHeaderIconColor:tn,fontSizeSM:Vr,tablePaddingHorizontal:Yr,borderRadius:Pn,motionDurationSlow:Cn,colorTextDescription:Mn,colorPrimary:Sn,tableHeaderFilterActiveBg:$n,colorTextDisabled:Ui,tableFilterDropdownBg:zi,tableFilterDropdownHeight:pi,controlItemBgHover:na,controlItemBgActive:wa,boxShadowSecondary:Yn,filterDropdownMenuBg:bi}=ue,ai=`${Je}-dropdown`,Tn=`${we}-filter-dropdown`,oi=`${Je}-tree`,Vi=`${Ar}px ${Er} ${pr}`;return[{[`${we}-wrapper`]:{[`${we}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${we}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-$t,marginInline:`${$t}px ${-Yr/2}px`,padding:`0 ${$t}px`,color:tn,fontSize:Vr,borderRadius:Pn,cursor:"pointer",transition:`all ${Cn}`,"&:hover":{color:Mn,background:$n},"&.active":{color:Sn}}}},{[`${Je}-dropdown`]:{[Tn]:Object.assign(Object.assign({},(0,zA.Wf)(ue)),{minWidth:Ct,backgroundColor:zi,borderRadius:Pn,boxShadow:Yn,overflow:"hidden",[`${ai}-menu`]:{maxHeight:pi,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:bi,"&:empty::after":{display:"block",padding:`${zt}px 0`,color:Ui,fontSize:Vr,textAlign:"center",content:'"Not Found"'}},[`${Tn}-tree`]:{paddingBlock:`${zt}px 0`,paddingInline:zt,[oi]:{padding:0},[`${oi}-treenode ${oi}-node-content-wrapper:hover`]:{backgroundColor:na},[`${oi}-treenode-checkbox-checked ${oi}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:wa}}},[`${Tn}-search`]:{padding:zt,borderBottom:Vi,"&-input":{input:{minWidth:bt},[lt]:{color:Ui}}},[`${Tn}-checkall`]:{width:"100%",marginBottom:$t,marginInlineStart:$t},[`${Tn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${zt-Ar}px ${zt}px`,overflow:"hidden",borderTop:Vi}})}},{[`${Je}-dropdown ${Tn}, ${Tn}-submenu`]:{[`${Je}-checkbox-wrapper + span`]:{paddingInlineStart:zt,color:Kt},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Eu=ue=>{const{componentCls:we,lineWidth:Je,colorSplit:lt,motionDurationSlow:Ct,zIndexTableFixed:bt,tableBg:$t,zIndexTableSticky:zt}=ue,Kt=lt;return{[`${we}-wrapper`]:{[`
${we}-cell-fix-left,
${we}-cell-fix-right
`]:{position:"sticky !important",zIndex:bt,background:$t},[`
${we}-cell-fix-left-first::after,
${we}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Je,width:30,transform:"translateX(100%)",transition:`box-shadow ${Ct}`,content:'""',pointerEvents:"none"},[`${we}-cell-fix-left-all::after`]:{display:"none"},[`
${we}-cell-fix-right-first::after,
${we}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-Je,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Ct}`,content:'""',pointerEvents:"none"},[`${we}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:zt+1,width:30,transition:`box-shadow ${Ct}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${we}-ping-left`]:{[`&:not(${we}-has-fix-left) ${we}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Kt}`}},[`
${we}-cell-fix-left-first::after,
${we}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${Kt}`},[`${we}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${we}-ping-right`]:{[`&:not(${we}-has-fix-right) ${we}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Kt}`}},[`
${we}-cell-fix-right-first::after,
${we}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${Kt}`}}}}},Cl=ue=>{const{componentCls:we,antCls:Je}=ue;return{[`${we}-wrapper`]:{[`${we}-pagination${Je}-pagination`]:{margin:`${ue.margin}px 0`},[`${we}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ue.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Oc=ue=>{const{componentCls:we,tableRadius:Je}=ue;return{[`${we}-wrapper`]:{[we]:{[`${we}-title, ${we}-header`]:{borderRadius:`${Je}px ${Je}px 0 0`},[`${we}-title + ${we}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${we}-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:Je,borderStartEndRadius:Je,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Je},"> *:last-child":{borderStartEndRadius:Je}}},"&-footer":{borderRadius:`0 0 ${Je}px ${Je}px`}}}}},w0=ue=>{const{componentCls:we}=ue;return{[`${we}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${we}-pagination-left`]:{justifyContent:"flex-end"},[`${we}-pagination-right`]:{justifyContent:"flex-start"},[`${we}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${we}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${we}-row-indent`]:{float:"right"}}}}},Bh=ue=>{const{componentCls:we,antCls:Je,iconCls:lt,fontSizeIcon:Ct,padding:bt,paddingXS:$t,tableHeaderIconColor:zt,tableHeaderIconColorHover:Kt,tableSelectionColumnWidth:Ar}=ue;return{[`${we}-wrapper`]:{[`${we}-selection-col`]:{width:Ar,[`&${we}-selection-col-with-dropdown`]:{width:Ar+Ct+bt/4}},[`${we}-bordered ${we}-selection-col`]:{width:Ar+$t*2,[`&${we}-selection-col-with-dropdown`]:{width:Ar+Ct+bt/4+$t*2}},[`
table tr th${we}-selection-column,
table tr td${we}-selection-column
`]:{paddingInlineEnd:ue.paddingXS,paddingInlineStart:ue.paddingXS,textAlign:"center",[`${Je}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${we}-selection-column${we}-cell-fix-left`]:{zIndex:ue.zIndexTableFixed+1},[`table tr th${we}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${we}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${we}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ue.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${ue.tablePaddingHorizontal/4}px`,[lt]:{color:zt,fontSize:Ct,verticalAlign:"baseline","&:hover":{color:Kt}}}}}},Dd=ue=>{const{componentCls:we}=ue,Je=(lt,Ct,bt,$t)=>({[`${we}${we}-${lt}`]:{fontSize:$t,[`
${we}-title,
${we}-footer,
${we}-cell,
${we}-thead > tr > th,
${we}-tbody > tr > th,
${we}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${Ct}px ${bt}px`},[`${we}-filter-trigger`]:{marginInlineEnd:`-${bt/2}px`},[`${we}-expanded-row-fixed`]:{margin:`-${Ct}px -${bt}px`},[`${we}-tbody`]:{[`${we}-wrapper:only-child ${we}`]:{marginBlock:`-${Ct}px`,marginInline:`${ue.tableExpandColumnWidth-bt}px -${bt}px`}},[`${we}-selection-column`]:{paddingInlineStart:`${bt/4}px`}}});return{[`${we}-wrapper`]:Object.assign(Object.assign({},Je("middle",ue.tablePaddingVerticalMiddle,ue.tablePaddingHorizontalMiddle,ue.tableFontSizeMiddle)),Je("small",ue.tablePaddingVerticalSmall,ue.tablePaddingHorizontalSmall,ue.tableFontSizeSmall))}},iu=ue=>{const{componentCls:we,marginXXS:Je,fontSizeIcon:lt,tableHeaderIconColor:Ct,tableHeaderIconColorHover:bt}=ue;return{[`${we}-wrapper`]:{[`${we}-thead th${we}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ue.motionDurationSlow}`,"&:hover":{background:ue.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ue.colorPrimary},[`
&${we}-cell-fix-left:hover,
&${we}-cell-fix-right:hover
`]:{background:ue.tableFixedHeaderSortActiveBg}},[`${we}-thead th${we}-column-sort`]:{background:ue.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${we}-column-sort`]:{background:ue.tableBodySortBg},[`${we}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${we}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${we}-column-sorter`]:{marginInlineStart:Je,color:Ct,fontSize:0,transition:`color ${ue.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:lt,"&.active":{color:ue.colorPrimary}},[`${we}-column-sorter-up + ${we}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${we}-column-sorters:hover ${we}-column-sorter`]:{color:bt}}}},wc=ue=>{const{componentCls:we,opacityLoading:Je,tableScrollThumbBg:lt,tableScrollThumbBgHover:Ct,tableScrollThumbSize:bt,tableScrollBg:$t,zIndexTableSticky:zt,stickyScrollBarBorderRadius:Kt}=ue,Ar=`${ue.lineWidth}px ${ue.lineType} ${ue.tableBorderColor}`;return{[`${we}-wrapper`]:{[`${we}-sticky`]:{"&-holder":{position:"sticky",zIndex:zt,background:ue.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${bt}px !important`,zIndex:zt,display:"flex",alignItems:"center",background:$t,borderTop:Ar,opacity:Je,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:bt,backgroundColor:lt,borderRadius:Kt,transition:`all ${ue.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Ct}}}}}}},ed=ue=>{const{componentCls:we,lineWidth:Je,tableBorderColor:lt}=ue,Ct=`${Je}px ${ue.lineType} ${lt}`;return{[`${we}-wrapper`]:{[`${we}-summary`]:{position:"relative",zIndex:ue.zIndexTableFixed,background:ue.tableBg,"> tr":{"> th, > td":{borderBottom:Ct}}},[`div${we}-summary`]:{boxShadow:`0 -${Je}px 0 ${lt}`}}}},jf=ue=>{const{componentCls:we}=ue,Je=`${ue.lineWidth}px ${ue.lineType} ${ue.tableBorderColor}`,lt=`${we}-expanded-row-cell`;return{[`${we}-wrapper`]:{[`${we}-tbody-virtual`]:{[`${we}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${we}-cell`]:{borderBottom:Je},[`${we}-expanded-row`]:{[`${lt}${lt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ue.lineWidth}px)`,borderInlineEnd:"none"}}},[`${we}-bordered`]:{[`${we}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Je,position:"absolute"},[`${we}-cell`]:{borderInlineEnd:Je,[`&${we}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-ue.lineWidth,borderInlineStart:Je}}}}}}};const Tc=ue=>{const{componentCls:we,fontWeightStrong:Je,tablePaddingVertical:lt,tablePaddingHorizontal:Ct,lineWidth:bt,lineType:$t,tableBorderColor:zt,tableFontSize:Kt,tableBg:Ar,tableRadius:Er,tableHeaderTextColor:pr,motionDurationMid:tn,tableHeaderBg:Vr,tableHeaderCellSplitColor:Yr,tableRowHoverBg:Pn,tableSelectedRowBg:Cn,tableSelectedRowHoverBg:Mn,tableFooterTextColor:Sn,tableFooterBg:$n,paddingContentVerticalLG:Ui}=ue,zi=`${bt}px ${$t} ${zt}`;return{[`${we}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,zA.dF)()),{[we]:Object.assign(Object.assign({},(0,zA.Wf)(ue)),{fontSize:Kt,background:Ar,borderRadius:`${Er}px ${Er}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Er}px ${Er}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${we}-cell,
${we}-thead > tr > th,
${we}-tbody > tr > th,
${we}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${Ui}px ${Ct}px`,overflowWrap:"break-word"},[`${we}-title`]:{padding:`${lt}px ${Ct}px`},[`${we}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:pr,fontWeight:Je,textAlign:"start",background:Vr,borderBottom:zi,transition:`background ${tn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${we}-selection-column):not(${we}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Yr,transform:"translateY(-50%)",transition:`background-color ${tn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${we}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${tn}, border-color ${tn}`,borderBottom:zi,[`
> ${we}-wrapper:only-child,
> ${we}-expanded-row-fixed > ${we}-wrapper:only-child
`]:{[we]:{marginBlock:`-${lt}px`,marginInline:`${ue.tableExpandColumnWidth-Ct}px -${Ct}px`,[`${we}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:pr,fontWeight:Je,textAlign:"start",background:Vr,borderBottom:zi,transition:`background ${tn} ease`},[`
&${we}-row:hover > th,
&${we}-row:hover > td,
> th${we}-cell-row-hover,
> td${we}-cell-row-hover
`]:{background:Pn},[`&${we}-row-selected`]:{"> th, > td":{background:Cn},"&:hover > th, &:hover > td":{background:Mn}}}},[`${we}-footer`]:{padding:`${lt}px ${Ct}px`,color:Sn,background:$n}})}};var td=(0,Md.Z)("Table",ue=>{const{colorTextHeading:we,colorSplit:Je,colorIcon:lt,colorIconHover:Ct,opacityLoading:bt,colorBgContainer:$t,controlInteractiveSize:zt,headerBg:Kt,headerColor:Ar,headerSortActiveBg:Er,headerSortHoverBg:pr,bodySortBg:tn,rowHoverBg:Vr,rowSelectedBg:Yr,rowSelectedHoverBg:Pn,rowExpandedBg:Cn,cellPaddingBlock:Mn,cellPaddingInline:Sn,cellPaddingBlockMD:$n,cellPaddingInlineMD:Ui,cellPaddingBlockSM:zi,cellPaddingInlineSM:pi,borderColor:na,footerBg:wa,footerColor:Yn,headerBorderRadius:bi,cellFontSize:ai,cellFontSizeMD:Tn,cellFontSizeSM:oi,headerSplitColor:Vi,fixedHeaderSortActiveBg:Na,headerFilterHoverBg:pa,filterDropdownBg:Wi,expandIconBg:_a,selectionColumnWidth:Qa,stickyScrollBarBg:Yo}=ue,lo=new yA.C(lt),vs=new yA.C(Ct),cs=2,ma=(0,Ld.TS)(ue,{tableFontSize:ai,tableBg:$t,tableRadius:bi,tablePaddingVertical:Mn,tablePaddingHorizontal:Sn,tablePaddingVerticalMiddle:$n,tablePaddingHorizontalMiddle:Ui,tablePaddingVerticalSmall:zi,tablePaddingHorizontalSmall:pi,tableBorderColor:na,tableHeaderTextColor:Ar,tableHeaderBg:Kt,tableFooterTextColor:Yn,tableFooterBg:wa,tableHeaderCellSplitColor:Vi,tableHeaderSortBg:Er,tableHeaderSortHoverBg:pr,tableHeaderIconColor:lo.clone().setAlpha(lo.getAlpha()*bt).toRgbString(),tableHeaderIconColorHover:vs.clone().setAlpha(vs.getAlpha()*bt).toRgbString(),tableBodySortBg:tn,tableFixedHeaderSortActiveBg:Na,tableHeaderFilterActiveBg:pa,tableFilterDropdownBg:Wi,tableRowHoverBg:Vr,tableSelectedRowBg:Yr,tableSelectedRowHoverBg:Pn,zIndexTableFixed:cs,zIndexTableSticky:cs+1,tableFontSizeMiddle:Tn,tableFontSizeSmall:oi,tableSelectionColumnWidth:Qa,tableExpandIconBg:_a,tableExpandColumnWidth:zt+2*ue.padding,tableExpandedRowBg:Cn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Yo,tableScrollThumbBgHover:we,tableScrollBg:Je});return[Tc(ma),Cl(ma),ed(ma),iu(ma),Kf(ma),ZA(ma),Oc(ma),Af(ma),ed(ma),y0(ma),Bh(ma),Eu(ma),wc(ma),wA(ma),Dd(ma),w0(ma),jf(ma)]},ue=>{const{colorFillAlter:we,colorBgContainer:Je,colorTextHeading:lt,colorFillSecondary:Ct,colorFillContent:bt,controlItemBgActive:$t,controlItemBgActiveHover:zt,padding:Kt,paddingSM:Ar,paddingXS:Er,colorBorderSecondary:pr,borderRadiusLG:tn,fontSize:Vr,controlHeight:Yr,colorTextPlaceholder:Pn}=ue,Cn=new yA.C(Ct).onBackground(Je).toHexShortString(),Mn=new yA.C(bt).onBackground(Je).toHexShortString(),Sn=new yA.C(we).onBackground(Je).toHexShortString();return{headerBg:Sn,headerColor:lt,headerSortActiveBg:Cn,headerSortHoverBg:Mn,bodySortBg:Sn,rowHoverBg:Sn,rowSelectedBg:$t,rowSelectedHoverBg:zt,rowExpandedBg:we,cellPaddingBlock:Kt,cellPaddingInline:Kt,cellPaddingBlockMD:Ar,cellPaddingInlineMD:Er,cellPaddingBlockSM:Er,cellPaddingInlineSM:Er,borderColor:pr,headerBorderRadius:tn,footerBg:Sn,footerColor:lt,cellFontSize:Vr,cellFontSizeMD:Vr,cellFontSizeSM:Vr,headerSplitColor:pr,fixedHeaderSortActiveBg:Cn,headerFilterHoverBg:bt,filterDropdownMenuBg:Je,filterDropdownBg:Je,expandIconBg:Je,selectionColumnWidth:Yr,stickyScrollBarBg:Pn,stickyScrollBarBorderRadius:100}});const df=[],rd=(ue,we)=>{const{prefixCls:Je,className:lt,rootClassName:Ct,style:bt,size:$t,bordered:zt,dropdownPrefixCls:Kt,dataSource:Ar,pagination:Er,rowSelection:pr,rowKey:tn="key",rowClassName:Vr,columns:Yr,children:Pn,childrenColumnName:Cn,onChange:Mn,getPopupContainer:Sn,loading:$n,expandIcon:Ui,expandable:zi,expandedRowRender:pi,expandIconColumnIndex:na,indentSize:wa,scroll:Yn,sortDirections:bi,locale:ai,showSorterTooltip:Tn=!0,virtual:oi}=ue,Vi=S.useMemo(()=>Yr||$e(Pn),[Yr,Pn]),Na=S.useMemo(()=>Vi.some(ao=>ao.responsive),[Vi]),pa=(0,Io.Z)(Na),Wi=S.useMemo(()=>{const ao=new Set(Object.keys(pa).filter(Zo=>pa[Zo]));return Vi.filter(Zo=>!Zo.responsive||Zo.responsive.some(Vl=>ao.has(Vl)))},[Vi,pa]),_a=(0,Ji.Z)(ue,["className","style","columns"]),{locale:Qa=So.Z,direction:Yo,table:lo,renderEmpty:vs,getPrefixCls:cs,getPopupContainer:ma}=S.useContext(Is.E_),al=(0,fa.Z)($t),mo=Object.assign(Object.assign({},Qa.Table),ai),qo=Ar||df,rs=cs("table",Je),xc=cs("dropdown",Kt),si=Object.assign({childrenColumnName:Cn,expandIconColumnIndex:na},zi),{childrenColumnName:Gi="children"}=si,$i=S.useMemo(()=>qo.some(ao=>ao==null?void 0:ao[Gi])?"nest":pi||zi&&zi.expandedRowRender?"row":null,[qo]),Oi={body:S.useRef()},vo=S.useMemo(()=>typeof tn=="function"?tn:ao=>ao==null?void 0:ao[tn],[tn]),[Pi]=Ts(qo,Gi,vo),ca={},ja=function(ao,Zo){let Vl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var us,kl,Wl;const Js=Object.assign(Object.assign({},ca),ao);Vl&&((us=ca.resetPagination)===null||us===void 0||us.call(ca),!((kl=Js.pagination)===null||kl===void 0)&&kl.current&&(Js.pagination.current=1),Er&&Er.onChange&&Er.onChange(1,(Wl=Js.pagination)===null||Wl===void 0?void 0:Wl.pageSize)),Yn&&Yn.scrollToFirstRowOnChange!==!1&&Oi.body.current&&(0,Fa.Z)(0,{getContainer:()=>Oi.body.current}),Mn==null||Mn(Js.pagination,Js.filters,Js.sorter,{currentDataSource:gA(Xo(qo,Js.sorterStates,Gi),Js.filterStates),action:Zo})},$a=(ao,Zo)=>{ja({sorter:ao,sorterStates:Zo},"sort",!1)},[Ml,nl,Gc,Us]=Oo({prefixCls:rs,mergedColumns:Wi,onSorterChange:$a,sortDirections:bi||["ascend","descend"],tableLocale:mo,showSorterTooltip:Tn}),Uc=S.useMemo(()=>Xo(qo,nl,Gi),[qo,nl]);ca.sorter=Us(),ca.sorterStates=nl;const jn=(ao,Zo)=>{ja({filters:ao,filterStates:Zo},"filter",!0)},[dc,Fu,co]=qc({prefixCls:rs,locale:mo,dropdownPrefixCls:xc,mergedColumns:Wi,onFilterChange:jn,getPopupContainer:Sn||ma}),mn=gA(Uc,Fu);ca.filters=co,ca.filterStates=Fu;const Lo=S.useMemo(()=>{const ao={};return Object.keys(co).forEach(Zo=>{co[Zo]!==null&&(ao[Zo]=co[Zo])}),Object.assign(Object.assign({},Gc),{filters:ao})},[Gc,co]),[cl]=yc(Lo),As=(ao,Zo)=>{ja({pagination:Object.assign(Object.assign({},ca.pagination),{current:ao,pageSize:Zo})},"paginate")},[ia,Sl]=vA(mn.length,As,Er);ca.pagination=Er===!1?{}:to(ia,Er),ca.resetPagination=Sl;const Zl=S.useMemo(()=>{if(Er===!1||!ia.pageSize)return mn;const{current:ao=1,total:Zo,pageSize:Vl=jl}=ia;return mn.length<Zo?mn.length>Vl?mn.slice((ao-1)*Vl,ao*Vl):mn:mn.slice((ao-1)*Vl,ao*Vl)},[!!Er,mn,ia&&ia.current,ia&&ia.pageSize,ia&&ia.total]),[Rc,Cc]=Xs({prefixCls:rs,data:mn,pageData:Zl,getRowKey:vo,getRecordByKey:Pi,expandType:$i,childrenColumnName:Gi,locale:mo,getPopupContainer:Sn||ma},pr),El=(ao,Zo,Vl)=>{let us;return typeof Vr=="function"?us=D()(Vr(ao,Zo,Vl)):us=D()(Vr),D()({[`${rs}-row-selected`]:Cc.has(vo(ao,Zo))},us)};si.__PARENT_RENDER_ICON__=si.expandIcon,si.expandIcon=si.expandIcon||Ui||Ps(mo),$i==="nest"&&si.expandIconColumnIndex===void 0?si.expandIconColumnIndex=pr?1:0:si.expandIconColumnIndex>0&&pr&&(si.expandIconColumnIndex-=1),typeof si.indentSize!="number"&&(si.indentSize=typeof wa=="number"?wa:15);const Al=S.useCallback(ao=>cl(Rc(dc(Ml(ao)))),[Ml,dc,Rc]);let au,Ll;if(Er!==!1&&(ia!=null&&ia.total)){let ao;ia.size?ao=ia.size:ao=al==="small"||al==="middle"?"small":void 0;const Zo=kl=>S.createElement(Po.Z,Object.assign({},ia,{className:D()(`${rs}-pagination ${rs}-pagination-${kl}`,ia.className),size:ao})),Vl=Yo==="rtl"?"left":"right",{position:us}=ia;if(us!==null&&Array.isArray(us)){const kl=us.find(BA=>BA.includes("top")),Wl=us.find(BA=>BA.includes("bottom")),Js=us.every(BA=>`${BA}`=="none");!kl&&!Wl&&!Js&&(Ll=Zo(Vl)),kl&&(au=Zo(kl.toLowerCase().replace("top",""))),Wl&&(Ll=Zo(Wl.toLowerCase().replace("bottom","")))}else Ll=Zo(Vl)}let Rs;typeof $n=="boolean"?Rs={spinning:$n}:typeof $n=="object"&&(Rs=Object.assign({spinning:!0},$n));const[_l,il]=td(rs),[,Ms]=(0,po.Z)(),Bc=D()(`${rs}-wrapper`,lo==null?void 0:lo.className,{[`${rs}-wrapper-rtl`]:Yo==="rtl"},lt,Ct,il),xA=Object.assign(Object.assign({},lo==null?void 0:lo.style),bt),PA=ai&&ai.emptyText||(vs==null?void 0:vs("Table"))||S.createElement(za.Z,{componentName:"Table"}),CA=oi?qu:zl,ff={},zf=S.useMemo(()=>{const{fontSize:ao,lineHeight:Zo,padding:Vl,paddingXS:us,paddingSM:kl}=Ms,Wl=Math.floor(ao*Zo);switch(al){case"large":return Vl*2+Wl;case"small":return us*2+Wl;default:return kl*2+Wl}},[Ms,al]);return oi&&(ff.listItemHeight=zf),_l(S.createElement("div",{ref:we,className:Bc,style:xA},S.createElement(Os.Z,Object.assign({spinning:!1},Rs),au,S.createElement(CA,Object.assign({},ff,_a,{columns:Wi,direction:Yo,expandable:si,prefixCls:rs,className:D()({[`${rs}-middle`]:al==="middle",[`${rs}-small`]:al==="small",[`${rs}-bordered`]:zt,[`${rs}-empty`]:qo.length===0}),data:Zl,rowKey:vo,rowClassName:El,emptyText:PA,internalHooks:Ae,internalRefs:Oi,transformColumns:Al})),Ll)))};var x0=S.forwardRef(rd);const C0=(ue,we)=>{const Je=S.useRef(0);return Je.current+=1,S.createElement(x0,Object.assign({},ue,{ref:we,_renderTimes:Je.current}))},$l=S.forwardRef(C0);$l.SELECTION_COLUMN=go,$l.EXPAND_COLUMN=pe,$l.SELECTION_ALL=jo,$l.SELECTION_INVERT=zo,$l.SELECTION_NONE=No,$l.Column=Wn,$l.ColumnGroup=Ni,$l.Summary=H;var nd=$l,B0=nd},99313:function(dn,Ut,C){"use strict";C.d(Ut,{default:function(){return yi}});var pe=C(99267),Ae=C(18785),P=C(62772),Ne=C(92310),te=C.n(Ne),W=C(54476),S=C(20068),g=C(33885),F=C(42978),v=C(76190),$=C(75931),_=C(59301),M=C(49658),O=C(18929),T=C(77900),L=(0,_.createContext)(null),q=_.forwardRef(function($e,_e){var Me=$e.prefixCls,Ie=$e.className,Nt=$e.style,Mt=$e.id,Sr=$e.active,nr=$e.tabKey,Dr=$e.children;return _.createElement("div",{id:Mt&&"".concat(Mt,"-panel-").concat(nr),role:"tabpanel",tabIndex:Sr?0:-1,"aria-labelledby":Mt&&"".concat(Mt,"-tab-").concat(nr),"aria-hidden":!Sr,style:Nt,className:te()(Me,Sr&&"".concat(Me,"-active"),Ie),ref:_e},Dr)}),R=q,se=["key","forceRender","style","className"];function ne($e){var _e=$e.id,Me=$e.activeKey,Ie=$e.animated,Nt=$e.tabPosition,Mt=$e.destroyInactiveTabPane,Sr=_.useContext(L),nr=Sr.prefixCls,Dr=Sr.tabs,Hr=Ie.tabPane,an="".concat(nr,"-tabpane");return _.createElement("div",{className:te()("".concat(nr,"-content-holder"))},_.createElement("div",{className:te()("".concat(nr,"-content"),"".concat(nr,"-content-").concat(Nt),(0,S.Z)({},"".concat(nr,"-content-animated"),Hr))},Dr.map(function(jr){var Rr=jr.key,en=jr.forceRender,wn=jr.style,on=jr.className,Nn=(0,$.Z)(jr,se),Kn=Rr===Me;return _.createElement(T.default,(0,W.Z)({key:Rr,visible:Kn,forceRender:en,removeOnLeave:!!Mt,leavedClassName:"".concat(an,"-hidden")},Ie.tabPaneMotion),function(fi,On){var Xn=fi.style,Vt=fi.className;return _.createElement(R,(0,W.Z)({},Nn,{prefixCls:an,id:_e,tabKey:Rr,animated:Hr,active:Kn,style:(0,g.Z)((0,g.Z)({},wn),Xn),className:te()(on,Vt),ref:On}))})})))}var J=C(94480),G=C(29301),K=C(6089),le=C(8654),me={width:0,height:0,left:0,top:0};function Oe($e,_e,Me){return(0,_.useMemo)(function(){for(var Ie,Nt=new Map,Mt=_e.get((Ie=$e[0])===null||Ie===void 0?void 0:Ie.key)||me,Sr=Mt.left+Mt.width,nr=0;nr<$e.length;nr+=1){var Dr=$e[nr].key,Hr=_e.get(Dr);if(!Hr){var an;Hr=_e.get((an=$e[nr-1])===null||an===void 0?void 0:an.key)||me}var jr=Nt.get(Dr)||(0,g.Z)({},Hr);jr.right=Sr-jr.left-jr.width,Nt.set(Dr,jr)}return Nt},[$e.map(function(Ie){return Ie.key}).join("_"),_e,Me])}function Ce($e,_e){var Me=_.useRef($e),Ie=_.useState({}),Nt=(0,F.Z)(Ie,2),Mt=Nt[1];function Sr(nr){var Dr=typeof nr=="function"?nr(Me.current):nr;Dr!==Me.current&&_e(Dr,Me.current),Me.current=Dr,Mt({})}return[Me.current,Sr]}var Ue=.1,ee=.01,de=20,D=Math.pow(.995,de);function Ye($e,_e){var Me=(0,_.useState)(),Ie=(0,F.Z)(Me,2),Nt=Ie[0],Mt=Ie[1],Sr=(0,_.useState)(0),nr=(0,F.Z)(Sr,2),Dr=nr[0],Hr=nr[1],an=(0,_.useState)(0),jr=(0,F.Z)(an,2),Rr=jr[0],en=jr[1],wn=(0,_.useState)(),on=(0,F.Z)(wn,2),Nn=on[0],Kn=on[1],fi=(0,_.useRef)();function On(Rt){var Jt=Rt.touches[0],ar=Jt.screenX,Nr=Jt.screenY;Mt({x:ar,y:Nr}),window.clearInterval(fi.current)}function Xn(Rt){if(Nt){Rt.preventDefault();var Jt=Rt.touches[0],ar=Jt.screenX,Nr=Jt.screenY;Mt({x:ar,y:Nr});var yn=ar-Nt.x,Bn=Nr-Nt.y;_e(yn,Bn);var ci=Date.now();Hr(ci),en(ci-Dr),Kn({x:yn,y:Bn})}}function Vt(){if(Nt&&(Mt(null),Kn(null),Nn)){var Rt=Nn.x/Rr,Jt=Nn.y/Rr,ar=Math.abs(Rt),Nr=Math.abs(Jt);if(Math.max(ar,Nr)<Ue)return;var yn=Rt,Bn=Jt;fi.current=window.setInterval(function(){if(Math.abs(yn)<ee&&Math.abs(Bn)<ee){window.clearInterval(fi.current);return}yn*=D,Bn*=D,_e(yn*de,Bn*de)},de)}}var Xt=(0,_.useRef)();function er(Rt){var Jt=Rt.deltaX,ar=Rt.deltaY,Nr=0,yn=Math.abs(Jt),Bn=Math.abs(ar);yn===Bn?Nr=Xt.current==="x"?Jt:ar:yn>Bn?(Nr=Jt,Xt.current="x"):(Nr=ar,Xt.current="y"),_e(-Nr,-Nr)&&Rt.preventDefault()}var fr=(0,_.useRef)(null);fr.current={onTouchStart:On,onTouchMove:Xn,onTouchEnd:Vt,onWheel:er},_.useEffect(function(){function Rt(yn){fr.current.onTouchStart(yn)}function Jt(yn){fr.current.onTouchMove(yn)}function ar(yn){fr.current.onTouchEnd(yn)}function Nr(yn){fr.current.onWheel(yn)}return document.addEventListener("touchmove",Jt,{passive:!1}),document.addEventListener("touchend",ar,{passive:!1}),$e.current.addEventListener("touchstart",Rt,{passive:!1}),$e.current.addEventListener("wheel",Nr),function(){document.removeEventListener("touchmove",Jt),document.removeEventListener("touchend",ar)}},[])}var ke=C(34280);function xe($e){var _e=(0,_.useState)(0),Me=(0,F.Z)(_e,2),Ie=Me[0],Nt=Me[1],Mt=(0,_.useRef)(0),Sr=(0,_.useRef)();return Sr.current=$e,(0,ke.o)(function(){var nr;(nr=Sr.current)===null||nr===void 0||nr.call(Sr)},[Ie]),function(){Mt.current===Ie&&(Mt.current+=1,Nt(Mt.current))}}function Te($e){var _e=(0,_.useRef)([]),Me=(0,_.useState)({}),Ie=(0,F.Z)(Me,2),Nt=Ie[1],Mt=(0,_.useRef)(typeof $e=="function"?$e():$e),Sr=xe(function(){var Dr=Mt.current;_e.current.forEach(function(Hr){Dr=Hr(Dr)}),_e.current=[],Mt.current=Dr,Nt({})});function nr(Dr){_e.current.push(Dr),Sr()}return[Mt.current,nr]}var ve={width:0,height:0,left:0,top:0,right:0};function De($e,_e,Me,Ie,Nt,Mt,Sr){var nr=Sr.tabs,Dr=Sr.tabPosition,Hr=Sr.rtl,an,jr,Rr;return["top","bottom"].includes(Dr)?(an="width",jr=Hr?"right":"left",Rr=Math.abs(Me)):(an="height",jr="top",Rr=-Me),(0,_.useMemo)(function(){if(!nr.length)return[0,0];for(var en=nr.length,wn=en,on=0;on<en;on+=1){var Nn=$e.get(nr[on].key)||ve;if(Nn[jr]+Nn[an]>Rr+_e){wn=on-1;break}}for(var Kn=0,fi=en-1;fi>=0;fi-=1){var On=$e.get(nr[fi].key)||ve;if(On[jr]<Rr){Kn=fi+1;break}}return Kn>=wn?[0,0]:[Kn,wn]},[$e,_e,Ie,Nt,Mt,Rr,Dr,nr.map(function(en){return en.key}).join("_"),Hr])}function he($e){var _e;return $e instanceof Map?(_e={},$e.forEach(function(Me,Ie){_e[Ie]=Me})):_e=$e,JSON.stringify(_e)}var Se="TABS_DQ";function Xe($e){return String($e).replace(/"/g,Se)}function et($e,_e,Me,Ie){return!(!Me||Ie||$e===!1||$e===void 0&&(_e===!1||_e===null))}function je($e,_e){var Me=$e.prefixCls,Ie=$e.editable,Nt=$e.locale,Mt=$e.style;return!Ie||Ie.showAdd===!1?null:_.createElement("button",{ref:_e,type:"button",className:"".concat(Me,"-nav-add"),style:Mt,"aria-label":(Nt==null?void 0:Nt.addAriaLabel)||"Add tab",onClick:function(nr){Ie.onEdit("add",{event:nr})}},Ie.addIcon||"+")}var qe=_.forwardRef(je),Et=_.forwardRef(function($e,_e){var Me=$e.position,Ie=$e.prefixCls,Nt=$e.extra;if(!Nt)return null;var Mt,Sr={};return(0,v.Z)(Nt)==="object"&&!_.isValidElement(Nt)?Sr=Nt:Sr.right=Nt,Me==="right"&&(Mt=Sr.right),Me==="left"&&(Mt=Sr.left),Mt?_.createElement("div",{className:"".concat(Ie,"-extra-content"),ref:_e},Mt):null}),kt=Et,Ot=C(31561),sr=C(15285),rr=C(10228);function br($e,_e){var Me=$e.prefixCls,Ie=$e.id,Nt=$e.tabs,Mt=$e.locale,Sr=$e.mobile,nr=$e.moreIcon,Dr=nr===void 0?"More":nr,Hr=$e.moreTransitionName,an=$e.style,jr=$e.className,Rr=$e.editable,en=$e.tabBarGutter,wn=$e.rtl,on=$e.removeAriaLabel,Nn=$e.onTabClick,Kn=$e.getPopupContainer,fi=$e.popupClassName,On=(0,_.useState)(!1),Xn=(0,F.Z)(On,2),Vt=Xn[0],Xt=Xn[1],er=(0,_.useState)(null),fr=(0,F.Z)(er,2),Rt=fr[0],Jt=fr[1],ar="".concat(Ie,"-more-popup"),Nr="".concat(Me,"-dropdown"),yn=Rt!==null?"".concat(ar,"-").concat(Rt):null,Bn=Mt==null?void 0:Mt.dropdownAriaLabel;function ci(Ci,Ai){Ci.preventDefault(),Ci.stopPropagation(),Rr.onEdit("remove",{key:Ai,event:Ci})}var ni=_.createElement(sr.ZP,{onClick:function(Ai){var Bi=Ai.key,Xi=Ai.domEvent;Nn(Bi,Xi),Xt(!1)},prefixCls:"".concat(Nr,"-menu"),id:ar,tabIndex:-1,role:"listbox","aria-activedescendant":yn,selectedKeys:[Rt],"aria-label":Bn!==void 0?Bn:"expanded dropdown"},Nt.map(function(Ci){var Ai=Ci.closable,Bi=Ci.disabled,Xi=Ci.closeIcon,ri=Ci.key,Ti=Ci.label,Ha=et(Ai,Xi,Rr,Bi);return _.createElement(sr.sN,{key:ri,id:"".concat(ar,"-").concat(ri),role:"option","aria-controls":Ie&&"".concat(Ie,"-panel-").concat(ri),disabled:Bi},_.createElement("span",null,Ti),Ha&&_.createElement("button",{type:"button","aria-label":on||"remove",tabIndex:0,className:"".concat(Nr,"-menu-item-remove"),onClick:function(pn){pn.stopPropagation(),ci(pn,ri)}},Xi||Rr.removeIcon||"\xD7"))}));function Ii(Ci){for(var Ai=Nt.filter(function(Ha){return!Ha.disabled}),Bi=Ai.findIndex(function(Ha){return Ha.key===Rt})||0,Xi=Ai.length,ri=0;ri<Xi;ri+=1){Bi=(Bi+Ci+Xi)%Xi;var Ti=Ai[Bi];if(!Ti.disabled){Jt(Ti.key);return}}}function qn(Ci){var Ai=Ci.which;if(!Vt){[rr.Z.DOWN,rr.Z.SPACE,rr.Z.ENTER].includes(Ai)&&(Xt(!0),Ci.preventDefault());return}switch(Ai){case rr.Z.UP:Ii(-1),Ci.preventDefault();break;case rr.Z.DOWN:Ii(1),Ci.preventDefault();break;case rr.Z.ESC:Xt(!1);break;case rr.Z.SPACE:case rr.Z.ENTER:Rt!==null&&Nn(Rt,Ci);break}}(0,_.useEffect)(function(){var Ci=document.getElementById(yn);Ci&&Ci.scrollIntoView&&Ci.scrollIntoView(!1)},[Rt]),(0,_.useEffect)(function(){Vt||Jt(null)},[Vt]);var zn=(0,S.Z)({},wn?"marginRight":"marginLeft",en);Nt.length||(zn.visibility="hidden",zn.order=1);var xi=te()((0,S.Z)({},"".concat(Nr,"-rtl"),wn)),wi=Sr?null:_.createElement(Ot.Z,{prefixCls:Nr,overlay:ni,trigger:["hover"],visible:Nt.length?Vt:!1,transitionName:Hr,onVisibleChange:Xt,overlayClassName:te()(xi,fi),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Kn},_.createElement("button",{type:"button",className:"".concat(Me,"-nav-more"),style:zn,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":ar,id:"".concat(Ie,"-more"),"aria-expanded":Vt,onKeyDown:qn},Dr));return _.createElement("div",{className:te()("".concat(Me,"-nav-operations"),jr),style:an,ref:_e},wi,_.createElement(qe,{prefixCls:Me,locale:Mt,editable:Rr}))}var lr=_.memo(_.forwardRef(br),function($e,_e){return _e.tabMoving});function V($e){var _e,Me=$e.prefixCls,Ie=$e.id,Nt=$e.active,Mt=$e.tab,Sr=Mt.key,nr=Mt.label,Dr=Mt.disabled,Hr=Mt.closeIcon,an=$e.closable,jr=$e.renderWrapper,Rr=$e.removeAriaLabel,en=$e.editable,wn=$e.onClick,on=$e.onFocus,Nn=$e.style,Kn="".concat(Me,"-tab"),fi=et(an,Hr,en,Dr);function On(Xt){Dr||wn(Xt)}function Xn(Xt){Xt.preventDefault(),Xt.stopPropagation(),en.onEdit("remove",{key:Sr,event:Xt})}var Vt=_.createElement("div",{key:Sr,"data-node-key":Xe(Sr),className:te()(Kn,(_e={},(0,S.Z)(_e,"".concat(Kn,"-with-remove"),fi),(0,S.Z)(_e,"".concat(Kn,"-active"),Nt),(0,S.Z)(_e,"".concat(Kn,"-disabled"),Dr),_e)),style:Nn,onClick:On},_.createElement("div",{role:"tab","aria-selected":Nt,id:Ie&&"".concat(Ie,"-tab-").concat(Sr),className:"".concat(Kn,"-btn"),"aria-controls":Ie&&"".concat(Ie,"-panel-").concat(Sr),"aria-disabled":Dr,tabIndex:Dr?null:0,onClick:function(er){er.stopPropagation(),On(er)},onKeyDown:function(er){[rr.Z.SPACE,rr.Z.ENTER].includes(er.which)&&(er.preventDefault(),On(er))},onFocus:on},nr),fi&&_.createElement("button",{type:"button","aria-label":Rr||"remove",tabIndex:0,className:"".concat(Kn,"-remove"),onClick:function(er){er.stopPropagation(),Xn(er)}},Hr||en.removeIcon||"\xD7"));return jr?jr(Vt):Vt}var dt=V,I=C(16089),p=function(_e){var Me=_e.activeTabOffset,Ie=_e.horizontal,Nt=_e.rtl,Mt=_e.indicatorSize,Sr=(0,_.useState)(),nr=(0,F.Z)(Sr,2),Dr=nr[0],Hr=nr[1],an=(0,_.useRef)(),jr=function(wn){return typeof Mt=="function"?Mt(wn):typeof Mt=="number"?Mt:wn};function Rr(){I.Z.cancel(an.current)}return(0,_.useEffect)(function(){var en={};return Me&&(Ie?(Nt?(en.right=Me.right+Me.width/2,en.transform="translateX(50%)"):(en.left=Me.left+Me.width/2,en.transform="translateX(-50%)"),en.width=jr(Me.width)):(en.top=Me.top+Me.height/2,en.transform="translateY(-50%)",en.height=jr(Me.height))),Rr(),an.current=(0,I.Z)(function(){Hr(en)}),Rr},[Me,Ie,Nt,Mt]),{style:Dr}},f=p,x=function(_e){var Me=_e.current||{},Ie=Me.offsetWidth,Nt=Ie===void 0?0:Ie,Mt=Me.offsetHeight,Sr=Mt===void 0?0:Mt;return[Nt,Sr]},Y=function(_e,Me){return _e[Me?0:1]};function Be($e,_e){var Me,Ie=_.useContext(L),Nt=Ie.prefixCls,Mt=Ie.tabs,Sr=$e.className,nr=$e.style,Dr=$e.id,Hr=$e.animated,an=$e.activeKey,jr=$e.rtl,Rr=$e.extra,en=$e.editable,wn=$e.locale,on=$e.tabPosition,Nn=$e.tabBarGutter,Kn=$e.children,fi=$e.onTabClick,On=$e.onTabScroll,Xn=$e.indicatorSize,Vt=(0,_.useRef)(),Xt=(0,_.useRef)(),er=(0,_.useRef)(),fr=(0,_.useRef)(),Rt=(0,_.useRef)(),Jt=(0,_.useRef)(),ar=(0,_.useRef)(),Nr=on==="top"||on==="bottom",yn=Ce(0,function(eo,Ra){Nr&&On&&On({direction:eo>Ra?"left":"right"})}),Bn=(0,F.Z)(yn,2),ci=Bn[0],ni=Bn[1],Ii=Ce(0,function(eo,Ra){!Nr&&On&&On({direction:eo>Ra?"top":"bottom"})}),qn=(0,F.Z)(Ii,2),zn=qn[0],xi=qn[1],wi=(0,_.useState)([0,0]),Ci=(0,F.Z)(wi,2),Ai=Ci[0],Bi=Ci[1],Xi=(0,_.useState)([0,0]),ri=(0,F.Z)(Xi,2),Ti=ri[0],Ha=ri[1],li=(0,_.useState)([0,0]),pn=(0,F.Z)(li,2),ln=pn[0],Jn=pn[1],Hn=(0,_.useState)([0,0]),hi=(0,F.Z)(Hn,2),qi=hi[0],Li=hi[1],Ua=Te(new Map),Aa=(0,F.Z)(Ua,2),Bo=Aa[0],Wn=Aa[1],Fn=Oe(Mt,Bo,Ti[0]),Ni=Y(Ai,Nr),Ji=Y(Ti,Nr),Fa=Y(ln,Nr),Is=Y(qi,Nr),za=Ni<Ji+Fa,fa=za?Ni-Is:Ni-Fa,Io="".concat(Nt,"-nav-operations-hidden"),So=0,Po=0;Nr&&jr?(So=0,Po=Math.max(0,Ji-fa)):(So=Math.min(0,fa-Ji),Po=0);function Os(eo){return eo<So?So:eo>Po?Po:eo}var po=(0,_.useRef)(),bs=(0,_.useState)(),Ps=(0,F.Z)(bs,2),$s=Ps[0],To=Ps[1];function Uo(){To(Date.now())}function ys(){window.clearTimeout(po.current)}Ye(fr,function(eo,Ra){function os(ss,Fs){ss(function(Go){var Fo=Os(Go+Fs);return Fo})}return za?(Nr?os(ni,eo):os(xi,Ra),ys(),Uo(),!0):!1}),(0,_.useEffect)(function(){return ys(),$s&&(po.current=window.setTimeout(function(){To(0)},100)),ys},[$s]);var el=De(Fn,fa,Nr?ci:zn,Ji,Fa,Is,(0,g.Z)((0,g.Z)({},$e),{},{tabs:Mt})),vl=(0,F.Z)(el,2),ic=vl[0],ac=vl[1],Ql=(0,K.Z)(function(){var eo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:an,Ra=Fn.get(eo)||{width:0,height:0,left:0,right:0,top:0};if(Nr){var os=ci;jr?Ra.right<ci?os=Ra.right:Ra.right+Ra.width>ci+fa&&(os=Ra.right+Ra.width-fa):Ra.left<-ci?os=-Ra.left:Ra.left+Ra.width>-ci+fa&&(os=-(Ra.left+Ra.width-fa)),xi(0),ni(Os(os))}else{var ss=zn;Ra.top<-zn?ss=-Ra.top:Ra.top+Ra.height>-zn+fa&&(ss=-(Ra.top+Ra.height-fa)),ni(0),xi(Os(ss))}}),Zs={};on==="top"||on==="bottom"?Zs[jr?"marginRight":"marginLeft"]=Nn:Zs.marginTop=Nn;var Dc=Mt.map(function(eo,Ra){var os=eo.key;return _.createElement(dt,{id:Dr,prefixCls:Nt,key:os,tab:eo,style:Ra===0?void 0:Zs,closable:eo.closable,editable:en,active:os===an,renderWrapper:Kn,removeAriaLabel:wn==null?void 0:wn.removeAriaLabel,onClick:function(Fs){fi(os,Fs)},onFocus:function(){Ql(os),Uo(),fr.current&&(jr||(fr.current.scrollLeft=0),fr.current.scrollTop=0)}})}),Kl=function(){return Wn(function(){var Ra=new Map;return Mt.forEach(function(os){var ss,Fs=os.key,Go=(ss=Rt.current)===null||ss===void 0?void 0:ss.querySelector('[data-node-key="'.concat(Xe(Fs),'"]'));Go&&Ra.set(Fs,{width:Go.offsetWidth,height:Go.offsetHeight,left:Go.offsetLeft,top:Go.offsetTop})}),Ra})};(0,_.useEffect)(function(){Kl()},[Mt.map(function(eo){return eo.key}).join("_")]);var Hl=xe(function(){var eo=x(Vt),Ra=x(Xt),os=x(er);Bi([eo[0]-Ra[0]-os[0],eo[1]-Ra[1]-os[1]]);var ss=x(ar);Jn(ss);var Fs=x(Jt);Li(Fs);var Go=x(Rt);Ha([Go[0]-ss[0],Go[1]-ss[1]]),Kl()}),Vs=Mt.slice(0,ic),as=Mt.slice(ac+1),ii=[].concat((0,J.Z)(Vs),(0,J.Z)(as)),la=Fn.get(an),ta=f({activeTabOffset:la,horizontal:Nr,rtl:jr,indicatorSize:Xn}),oa=ta.style;(0,_.useEffect)(function(){Ql()},[an,So,Po,he(la),he(Fn),Nr]),(0,_.useEffect)(function(){Hl()},[jr]);var Da=!!ii.length,so="".concat(Nt,"-nav-wrap"),Ws,ws,xs,ms;return Nr?jr?(ws=ci>0,Ws=ci!==Po):(Ws=ci<0,ws=ci!==So):(xs=zn<0,ms=zn!==So),_.createElement(G.Z,{onResize:Hl},_.createElement("div",{ref:(0,le.x1)(_e,Vt),role:"tablist",className:te()("".concat(Nt,"-nav"),Sr),style:nr,onKeyDown:function(){Uo()}},_.createElement(kt,{ref:Xt,position:"left",extra:Rr,prefixCls:Nt}),_.createElement(G.Z,{onResize:Hl},_.createElement("div",{className:te()(so,(Me={},(0,S.Z)(Me,"".concat(so,"-ping-left"),Ws),(0,S.Z)(Me,"".concat(so,"-ping-right"),ws),(0,S.Z)(Me,"".concat(so,"-ping-top"),xs),(0,S.Z)(Me,"".concat(so,"-ping-bottom"),ms),Me)),ref:fr},_.createElement(G.Z,{onResize:Hl},_.createElement("div",{ref:Rt,className:"".concat(Nt,"-nav-list"),style:{transform:"translate(".concat(ci,"px, ").concat(zn,"px)"),transition:$s?"none":void 0}},Dc,_.createElement(qe,{ref:ar,prefixCls:Nt,locale:wn,editable:en,style:(0,g.Z)((0,g.Z)({},Dc.length===0?void 0:Zs),{},{visibility:Da?"hidden":null})}),_.createElement("div",{className:te()("".concat(Nt,"-ink-bar"),(0,S.Z)({},"".concat(Nt,"-ink-bar-animated"),Hr.inkBar)),style:oa}))))),_.createElement(lr,(0,W.Z)({},$e,{removeAriaLabel:wn==null?void 0:wn.removeAriaLabel,ref:Jt,prefixCls:Nt,tabs:ii,className:!Da&&Io,tabMoving:!!$s})),_.createElement(kt,{ref:er,position:"right",extra:Rr,prefixCls:Nt})))}var H=_.forwardRef(Be),ie=["renderTabBar"],Qe=["label","key"];function ye($e){var _e=$e.renderTabBar,Me=(0,$.Z)($e,ie),Ie=_.useContext(L),Nt=Ie.tabs;if(_e){var Mt=(0,g.Z)((0,g.Z)({},Me),{},{panes:Nt.map(function(Sr){var nr=Sr.label,Dr=Sr.key,Hr=(0,$.Z)(Sr,Qe);return _.createElement(R,(0,W.Z)({tab:nr,key:Dr,tabKey:Dr},Hr))})});return _e(Mt,H)}return _.createElement(H,Me)}var be=C(48736);function ze(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},_e;return $e===!1?_e={inkBar:!1,tabPane:!1}:$e===!0?_e={inkBar:!0,tabPane:!1}:_e=(0,g.Z)({inkBar:!0},(0,v.Z)($e)==="object"?$e:{}),_e.tabPaneMotion&&_e.tabPane===void 0&&(_e.tabPane=!0),!_e.tabPaneMotion&&_e.tabPane&&(_e.tabPane=!1),_e}var gt=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],fe=0;function at($e,_e){var Me,Ie=$e.id,Nt=$e.prefixCls,Mt=Nt===void 0?"rc-tabs":Nt,Sr=$e.className,nr=$e.items,Dr=$e.direction,Hr=$e.activeKey,an=$e.defaultActiveKey,jr=$e.editable,Rr=$e.animated,en=$e.tabPosition,wn=en===void 0?"top":en,on=$e.tabBarGutter,Nn=$e.tabBarStyle,Kn=$e.tabBarExtraContent,fi=$e.locale,On=$e.moreIcon,Xn=$e.moreTransitionName,Vt=$e.destroyInactiveTabPane,Xt=$e.renderTabBar,er=$e.onChange,fr=$e.onTabClick,Rt=$e.onTabScroll,Jt=$e.getPopupContainer,ar=$e.popupClassName,Nr=$e.indicatorSize,yn=(0,$.Z)($e,gt),Bn=_.useMemo(function(){return(nr||[]).filter(function(Li){return Li&&(0,v.Z)(Li)==="object"&&"key"in Li})},[nr]),ci=Dr==="rtl",ni=ze(Rr),Ii=(0,_.useState)(!1),qn=(0,F.Z)(Ii,2),zn=qn[0],xi=qn[1];(0,_.useEffect)(function(){xi((0,M.Z)())},[]);var wi=(0,O.Z)(function(){var Li;return(Li=Bn[0])===null||Li===void 0?void 0:Li.key},{value:Hr,defaultValue:an}),Ci=(0,F.Z)(wi,2),Ai=Ci[0],Bi=Ci[1],Xi=(0,_.useState)(function(){return Bn.findIndex(function(Li){return Li.key===Ai})}),ri=(0,F.Z)(Xi,2),Ti=ri[0],Ha=ri[1];(0,_.useEffect)(function(){var Li=Bn.findIndex(function(Aa){return Aa.key===Ai});if(Li===-1){var Ua;Li=Math.max(0,Math.min(Ti,Bn.length-1)),Bi((Ua=Bn[Li])===null||Ua===void 0?void 0:Ua.key)}Ha(Li)},[Bn.map(function(Li){return Li.key}).join("_"),Ai,Ti]);var li=(0,O.Z)(null,{value:Ie}),pn=(0,F.Z)(li,2),ln=pn[0],Jn=pn[1];(0,_.useEffect)(function(){Ie||(Jn("rc-tabs-".concat(fe)),fe+=1)},[]);function Hn(Li,Ua){fr==null||fr(Li,Ua);var Aa=Li!==Ai;Bi(Li),Aa&&(er==null||er(Li))}var hi={id:ln,activeKey:Ai,animated:ni,tabPosition:wn,rtl:ci,mobile:zn},qi=(0,g.Z)((0,g.Z)({},hi),{},{editable:jr,locale:fi,moreIcon:On,moreTransitionName:Xn,tabBarGutter:on,onTabClick:Hn,onTabScroll:Rt,extra:Kn,style:Nn,panes:null,getPopupContainer:Jt,popupClassName:ar,indicatorSize:Nr});return _.createElement(L.Provider,{value:{tabs:Bn,prefixCls:Mt}},_.createElement("div",(0,W.Z)({ref:_e,id:Ie,className:te()(Mt,"".concat(Mt,"-").concat(wn),(Me={},(0,S.Z)(Me,"".concat(Mt,"-mobile"),zn),(0,S.Z)(Me,"".concat(Mt,"-editable"),jr),(0,S.Z)(Me,"".concat(Mt,"-rtl"),ci),Me),Sr)},yn),_.createElement(ye,(0,W.Z)({},qi,{renderTabBar:Xt})),_.createElement(ne,(0,W.Z)({destroyInactiveTabPane:Vt},hi,{animated:ni}))))}var rt=_.forwardRef(at),Le=rt,Fe=Le,ct=C(36355),Tt=C(19716),Yt=()=>null,Fr=C(62892);const Lr={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Or($e){let _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Me;return _e===!1?Me={inkBar:!1,tabPane:!1}:_e===!0?Me={inkBar:!0,tabPane:!0}:Me=Object.assign({inkBar:!0},typeof _e=="object"?_e:{}),Me.tabPane&&(Me.tabPaneMotion=Object.assign(Object.assign({},Lr),{motionName:(0,Fr.m)($e,"switch")})),Me}var kr=C(11592),yr=function($e,_e){var Me={};for(var Ie in $e)Object.prototype.hasOwnProperty.call($e,Ie)&&_e.indexOf(Ie)<0&&(Me[Ie]=$e[Ie]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,Ie=Object.getOwnPropertySymbols($e);Nt<Ie.length;Nt++)_e.indexOf(Ie[Nt])<0&&Object.prototype.propertyIsEnumerable.call($e,Ie[Nt])&&(Me[Ie[Nt]]=$e[Ie[Nt]]);return Me};function ur($e){return $e.filter(_e=>_e)}function Kr($e,_e){if($e)return $e;const Me=(0,kr.Z)(_e).map(Ie=>{if(_.isValidElement(Ie)){const{key:Nt,props:Mt}=Ie,Sr=Mt||{},{tab:nr}=Sr,Dr=yr(Sr,["tab"]);return Object.assign(Object.assign({key:String(Nt)},Dr),{label:nr})}return null});return ur(Me)}var fn=C(17313),Un=C(83116),hn=C(37613),Dn=C(13826),Pr=$e=>{const{componentCls:_e,motionDurationSlow:Me}=$e;return[{[_e]:{[`${_e}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Me}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Me}`}}}}},[(0,Dn.oN)($e,"slide-up"),(0,Dn.oN)($e,"slide-down")]]};const xn=$e=>{const{componentCls:_e,tabsCardPadding:Me,cardBg:Ie,cardGutter:Nt,colorBorderSecondary:Mt,itemSelectedColor:Sr}=$e;return{[`${_e}-card`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-tab`]:{margin:0,padding:Me,background:Ie,border:`${$e.lineWidth}px ${$e.lineType} ${Mt}`,transition:`all ${$e.motionDurationSlow} ${$e.motionEaseInOut}`},[`${_e}-tab-active`]:{color:Sr,background:$e.colorBgContainer},[`${_e}-ink-bar`]:{visibility:"hidden"}},[`&${_e}-top, &${_e}-bottom`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-tab + ${_e}-tab`]:{marginLeft:{_skip_check_:!0,value:`${Nt}px`}}}},[`&${_e}-top`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-tab`]:{borderRadius:`${$e.borderRadiusLG}px ${$e.borderRadiusLG}px 0 0`},[`${_e}-tab-active`]:{borderBottomColor:$e.colorBgContainer}}},[`&${_e}-bottom`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-tab`]:{borderRadius:`0 0 ${$e.borderRadiusLG}px ${$e.borderRadiusLG}px`},[`${_e}-tab-active`]:{borderTopColor:$e.colorBgContainer}}},[`&${_e}-left, &${_e}-right`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-tab + ${_e}-tab`]:{marginTop:`${Nt}px`}}},[`&${_e}-left`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-tab`]:{borderRadius:{_skip_check_:!0,value:`${$e.borderRadiusLG}px 0 0 ${$e.borderRadiusLG}px`}},[`${_e}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:$e.colorBgContainer}}}},[`&${_e}-right`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${$e.borderRadiusLG}px ${$e.borderRadiusLG}px 0`}},[`${_e}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:$e.colorBgContainer}}}}}}},Ei=$e=>{const{componentCls:_e,itemHoverColor:Me,dropdownEdgeChildVerticalPadding:Ie}=$e;return{[`${_e}-dropdown`]:Object.assign(Object.assign({},(0,fn.Wf)($e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:$e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${_e}-dropdown-menu`]:{maxHeight:$e.tabsDropdownHeight,margin:0,padding:`${Ie}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:$e.colorBgContainer,backgroundClip:"padding-box",borderRadius:$e.borderRadiusLG,outline:"none",boxShadow:$e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},fn.vS),{display:"flex",alignItems:"center",minWidth:$e.tabsDropdownWidth,margin:0,padding:`${$e.paddingXXS}px ${$e.paddingSM}px`,color:$e.colorText,fontWeight:"normal",fontSize:$e.fontSize,lineHeight:$e.lineHeight,cursor:"pointer",transition:`all ${$e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:$e.marginSM},color:$e.colorTextDescription,fontSize:$e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Me}},"&:hover":{background:$e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:$e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},di=$e=>{const{componentCls:_e,margin:Me,colorBorderSecondary:Ie,horizontalMargin:Nt,verticalItemPadding:Mt,verticalItemMargin:Sr}=$e;return{[`${_e}-top, ${_e}-bottom`]:{flexDirection:"column",[`> ${_e}-nav, > div > ${_e}-nav`]:{margin:Nt,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${$e.lineWidth}px ${$e.lineType} ${Ie}`,content:"''"},[`${_e}-ink-bar`]:{height:$e.lineWidthBold,"&-animated":{transition:`width ${$e.motionDurationSlow}, left ${$e.motionDurationSlow},
right ${$e.motionDurationSlow}`}},[`${_e}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:$e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:$e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:$e.boxShadowTabsOverflowRight},[`&${_e}-nav-wrap-ping-left::before`]:{opacity:1},[`&${_e}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${_e}-top`]:{[`> ${_e}-nav,
> div > ${_e}-nav`]:{"&::before":{bottom:0},[`${_e}-ink-bar`]:{bottom:0}}},[`${_e}-bottom`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{order:1,marginTop:`${Me}px`,marginBottom:0,"&::before":{top:0},[`${_e}-ink-bar`]:{top:0}},[`> ${_e}-content-holder, > div > ${_e}-content-holder`]:{order:0}},[`${_e}-left, ${_e}-right`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{flexDirection:"column",minWidth:$e.controlHeight*1.25,[`${_e}-tab`]:{padding:Mt,textAlign:"center"},[`${_e}-tab + ${_e}-tab`]:{margin:Sr},[`${_e}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:$e.controlHeight},"&::before":{top:0,boxShadow:$e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:$e.boxShadowTabsOverflowBottom},[`&${_e}-nav-wrap-ping-top::before`]:{opacity:1},[`&${_e}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${_e}-ink-bar`]:{width:$e.lineWidthBold,"&-animated":{transition:`height ${$e.motionDurationSlow}, top ${$e.motionDurationSlow}`}},[`${_e}-nav-list, ${_e}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${_e}-left`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${_e}-content-holder, > div > ${_e}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${$e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${$e.lineWidth}px ${$e.lineType} ${$e.colorBorder}`},[`> ${_e}-content > ${_e}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:$e.paddingLG}}}},[`${_e}-right`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{order:1,[`${_e}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${_e}-content-holder, > div > ${_e}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-$e.lineWidth},borderRight:{_skip_check_:!0,value:`${$e.lineWidth}px ${$e.lineType} ${$e.colorBorder}`},[`> ${_e}-content > ${_e}-tabpane`]:{paddingRight:{_skip_check_:!0,value:$e.paddingLG}}}}}},Zi=$e=>{const{componentCls:_e,cardPaddingSM:Me,cardPaddingLG:Ie,horizontalItemPaddingSM:Nt,horizontalItemPaddingLG:Mt}=$e;return{[_e]:{"&-small":{[`> ${_e}-nav`]:{[`${_e}-tab`]:{padding:Nt,fontSize:$e.titleFontSizeSM}}},"&-large":{[`> ${_e}-nav`]:{[`${_e}-tab`]:{padding:Mt,fontSize:$e.titleFontSizeLG}}}},[`${_e}-card`]:{[`&${_e}-small`]:{[`> ${_e}-nav`]:{[`${_e}-tab`]:{padding:Me}},[`&${_e}-bottom`]:{[`> ${_e}-nav ${_e}-tab`]:{borderRadius:`0 0 ${$e.borderRadius}px ${$e.borderRadius}px`}},[`&${_e}-top`]:{[`> ${_e}-nav ${_e}-tab`]:{borderRadius:`${$e.borderRadius}px ${$e.borderRadius}px 0 0`}},[`&${_e}-right`]:{[`> ${_e}-nav ${_e}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${$e.borderRadius}px ${$e.borderRadius}px 0`}}},[`&${_e}-left`]:{[`> ${_e}-nav ${_e}-tab`]:{borderRadius:{_skip_check_:!0,value:`${$e.borderRadius}px 0 0 ${$e.borderRadius}px`}}}},[`&${_e}-large`]:{[`> ${_e}-nav`]:{[`${_e}-tab`]:{padding:Ie}}}}}},_i=$e=>{const{componentCls:_e,itemActiveColor:Me,itemHoverColor:Ie,iconCls:Nt,tabsHorizontalItemMargin:Mt,horizontalItemPadding:Sr,itemSelectedColor:nr,itemColor:Dr}=$e,Hr=`${_e}-tab`;return{[Hr]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Sr,fontSize:$e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:Dr,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Me}},(0,fn.Qy)($e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-$e.marginXXS},marginLeft:{_skip_check_:!0,value:$e.marginXS},color:$e.colorTextDescription,fontSize:$e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${$e.motionDurationSlow}`,"&:hover":{color:$e.colorTextHeading}},"&:hover":{color:Ie},[`&${Hr}-active ${Hr}-btn`]:{color:nr,textShadow:$e.tabsActiveTextShadow},[`&${Hr}-disabled`]:{color:$e.colorTextDisabled,cursor:"not-allowed"},[`&${Hr}-disabled ${Hr}-btn, &${Hr}-disabled ${_e}-remove`]:{"&:focus, &:active":{color:$e.colorTextDisabled}},[`& ${Hr}-remove ${Nt}`]:{margin:0},[Nt]:{marginRight:{_skip_check_:!0,value:$e.marginSM}}},[`${Hr} + ${Hr}`]:{margin:{_skip_check_:!0,value:Mt}}}},ji=$e=>{const{componentCls:_e,tabsHorizontalItemMarginRTL:Me,iconCls:Ie,cardGutter:Nt}=$e;return{[`${_e}-rtl`]:{direction:"rtl",[`${_e}-nav`]:{[`${_e}-tab`]:{margin:{_skip_check_:!0,value:Me},[`${_e}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Ie]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${$e.marginSM}px`}},[`${_e}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${$e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${$e.marginXXS}px`},[Ie]:{margin:0}}}},[`&${_e}-left`]:{[`> ${_e}-nav`]:{order:1},[`> ${_e}-content-holder`]:{order:0}},[`&${_e}-right`]:{[`> ${_e}-nav`]:{order:0},[`> ${_e}-content-holder`]:{order:1}},[`&${_e}-card${_e}-top, &${_e}-card${_e}-bottom`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-tab + ${_e}-tab`]:{marginRight:{_skip_check_:!0,value:Nt},marginLeft:{_skip_check_:!0,value:0}}}}},[`${_e}-dropdown-rtl`]:{direction:"rtl"},[`${_e}-menu-item`]:{[`${_e}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},qa=$e=>{const{componentCls:_e,tabsCardPadding:Me,cardHeight:Ie,cardGutter:Nt,itemHoverColor:Mt,itemActiveColor:Sr,colorBorderSecondary:nr}=$e;return{[_e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,fn.Wf)($e)),{display:"flex",[`> ${_e}-nav, > div > ${_e}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${_e}-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 ${$e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${_e}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${$e.motionDurationSlow}`},[`${_e}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${_e}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${_e}-nav-more`]:{position:"relative",padding:Me,background:"transparent",border:0,color:$e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:$e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${_e}-nav-add`]:Object.assign({minWidth:Ie,marginLeft:{_skip_check_:!0,value:Nt},padding:`0 ${$e.paddingXS}px`,background:"transparent",border:`${$e.lineWidth}px ${$e.lineType} ${nr}`,borderRadius:`${$e.borderRadiusLG}px ${$e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:$e.colorText,transition:`all ${$e.motionDurationSlow} ${$e.motionEaseInOut}`,"&:hover":{color:Mt},"&:active, &:focus:not(:focus-visible)":{color:Sr}},(0,fn.Qy)($e))},[`${_e}-extra-content`]:{flex:"none"},[`${_e}-ink-bar`]:{position:"absolute",background:$e.inkBarColor,pointerEvents:"none"}}),_i($e)),{[`${_e}-content`]:{position:"relative",width:"100%"},[`${_e}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${_e}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${_e}-centered`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-nav-wrap`]:{[`&:not([class*='${_e}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Ki=(0,Un.Z)("Tabs",$e=>{const _e=(0,hn.TS)($e,{tabsCardPadding:$e.cardPadding||`${($e.cardHeight-Math.round($e.fontSize*$e.lineHeight))/2-$e.lineWidth}px ${$e.padding}px`,dropdownEdgeChildVerticalPadding:$e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${$e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${$e.horizontalItemGutter}px`});return[Zi(_e),ji(_e),di(_e),Ei(_e),xn(_e),qa(_e),Pr(_e)]},$e=>{const _e=$e.controlHeightLG;return{zIndexPopup:$e.zIndexPopupBase+50,cardBg:$e.colorFillAlter,cardHeight:_e,cardPadding:"",cardPaddingSM:`${$e.paddingXXS*1.5}px ${$e.padding}px`,cardPaddingLG:`${$e.paddingXS}px ${$e.padding}px ${$e.paddingXXS*1.5}px`,titleFontSize:$e.fontSize,titleFontSizeLG:$e.fontSizeLG,titleFontSizeSM:$e.fontSize,inkBarColor:$e.colorPrimary,horizontalMargin:`0 0 ${$e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${$e.paddingSM}px 0`,horizontalItemPaddingSM:`${$e.paddingXS}px 0`,horizontalItemPaddingLG:`${$e.padding}px 0`,verticalItemPadding:`${$e.paddingXS}px ${$e.paddingLG}px`,verticalItemMargin:`${$e.margin}px 0 0 0`,itemColor:$e.colorText,itemSelectedColor:$e.colorPrimary,itemHoverColor:$e.colorPrimaryHover,itemActiveColor:$e.colorPrimaryActive,cardGutter:$e.marginXXS/2}}),ti=function($e,_e){var Me={};for(var Ie in $e)Object.prototype.hasOwnProperty.call($e,Ie)&&_e.indexOf(Ie)<0&&(Me[Ie]=$e[Ie]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,Ie=Object.getOwnPropertySymbols($e);Nt<Ie.length;Nt++)_e.indexOf(Ie[Nt])<0&&Object.prototype.propertyIsEnumerable.call($e,Ie[Nt])&&(Me[Ie[Nt]]=$e[Ie[Nt]]);return Me};const gi=$e=>{const{type:_e,className:Me,rootClassName:Ie,size:Nt,onEdit:Mt,hideAdd:Sr,centered:nr,addIcon:Dr,popupClassName:Hr,children:an,items:jr,animated:Rr,style:en,indicatorSize:wn}=$e,on=ti($e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:Nn,moreIcon:Kn=_.createElement(Ae.Z,null)}=on,{direction:fi,tabs:On,getPrefixCls:Xn,getPopupContainer:Vt}=_.useContext(ct.E_),Xt=Xn("tabs",Nn),[er,fr]=Ki(Xt);let Rt;_e==="editable-card"&&(Rt={onEdit:(ci,ni)=>{let{key:Ii,event:qn}=ni;Mt==null||Mt(ci==="add"?qn:Ii,ci)},removeIcon:_.createElement(pe.Z,null),addIcon:Dr||_.createElement(P.Z,null),showAdd:Sr!==!0});const Jt=Xn(),ar=Kr(jr,an),Nr=Or(Xt,Rr),yn=(0,Tt.Z)(Nt),Bn=Object.assign(Object.assign({},On==null?void 0:On.style),en);return er(_.createElement(Fe,Object.assign({direction:fi,getPopupContainer:Vt,moreTransitionName:`${Jt}-slide-up`},on,{items:ar,className:te()({[`${Xt}-${yn}`]:yn,[`${Xt}-card`]:["card","editable-card"].includes(_e),[`${Xt}-editable-card`]:_e==="editable-card",[`${Xt}-centered`]:nr},On==null?void 0:On.className,Me,Ie,fr),popupClassName:te()(Hr,fr),style:Bn,editable:Rt,moreIcon:Kn,prefixCls:Xt,animated:Nr,indicatorSize:wn!=null?wn:On==null?void 0:On.indicatorSize})))};gi.TabPane=Yt;var yi=gi},17574:function(dn,Ut,C){"use strict";C.d(Ut,{default:function(){return De}});var pe=C(60091),Ae=C(94480),P=C(52671),Ne=C(8657),te=C(54476),W=C(59301),S={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"},g=S,F=C(7657),v=function(Se,Xe){return W.createElement(F.Z,(0,te.Z)({},Se,{ref:Xe,icon:g}))},$=W.forwardRef(v),_=$,M=C(92310),O=C.n(M),T=C(35654),L=C(71430),q=C(36355),R=C(56082),se=C(62892),ne=C(20648);const J=4;function G(he){const{dropPosition:Se,dropLevelOffset:Xe,prefixCls:et,indent:je,direction:qe="ltr"}=he,Et=qe==="ltr"?"left":"right",kt=qe==="ltr"?"right":"left",Ot={[Et]:-Xe*je+J,[kt]:0};switch(Se){case-1:Ot.top=-3;break;case 1:Ot.bottom=-3;break;default:Ot.bottom=-3,Ot[Et]=je+J;break}return W.createElement("div",{style:Ot,className:`${et}-drop-indicator`})}var K=C(71997),me=W.forwardRef((he,Se)=>{const{getPrefixCls:Xe,direction:et,virtual:je,tree:qe}=W.useContext(q.E_),{prefixCls:Et,className:kt,showIcon:Ot=!1,showLine:sr,switcherIcon:rr,blockNode:br=!1,children:lr,checkable:V=!1,selectable:dt=!0,draggable:I,motion:p,style:f}=he,x=Xe("tree",Et),Y=Xe(),Be=p!=null?p:Object.assign(Object.assign({},(0,se.Z)(Y)),{motionAppear:!1}),H=Object.assign(Object.assign({},he),{checkable:V,selectable:dt,showIcon:Ot,motion:Be,blockNode:br,showLine:!!sr,dropIndicatorRender:G}),[ie,Qe]=(0,ne.ZP)(x),ye=W.useMemo(()=>{if(!I)return!1;let ze={};switch(typeof I){case"function":ze.nodeDraggable=I;break;case"object":ze=Object.assign({},I);break;default:break}return ze.icon!==!1&&(ze.icon=ze.icon||W.createElement(R.Z,null)),ze},[I]),be=ze=>W.createElement(K.Z,{prefixCls:x,switcherIcon:rr,treeNodeProps:ze,showLine:sr});return ie(W.createElement(pe.Z,Object.assign({itemHeight:20,ref:Se,virtual:je},H,{style:Object.assign(Object.assign({},qe==null?void 0:qe.style),f),prefixCls:x,className:O()({[`${x}-icon-hide`]:!Ot,[`${x}-block-node`]:br,[`${x}-unselectable`]:!dt,[`${x}-rtl`]:et==="rtl"},qe==null?void 0:qe.className,kt,Qe),direction:et,checkable:V&&W.createElement("span",{className:`${x}-checkbox-inner`}),selectable:dt,switcherIcon:be,draggable:ye}),lr))}),Oe;(function(he){he[he.None=0]="None",he[he.Start=1]="Start",he[he.End=2]="End"})(Oe||(Oe={}));function Ce(he,Se){function Xe(et){const{key:je,children:qe}=et;Se(je,et)!==!1&&Ce(qe||[],Se)}he.forEach(Xe)}function Ue(he){let{treeData:Se,expandedKeys:Xe,startKey:et,endKey:je}=he;const qe=[];let Et=Oe.None;if(et&&et===je)return[et];if(!et||!je)return[];function kt(Ot){return Ot===et||Ot===je}return Ce(Se,Ot=>{if(Et===Oe.End)return!1;if(kt(Ot)){if(qe.push(Ot),Et===Oe.None)Et=Oe.Start;else if(Et===Oe.Start)return Et=Oe.End,!1}else Et===Oe.Start&&qe.push(Ot);return Xe.includes(Ot)}),qe}function ee(he,Se){const Xe=(0,Ae.Z)(Se),et=[];return Ce(he,(je,qe)=>{const Et=Xe.indexOf(je);return Et!==-1&&(et.push(qe),Xe.splice(Et,1)),!!Xe.length}),et}var de=function(he,Se){var Xe={};for(var et in he)Object.prototype.hasOwnProperty.call(he,et)&&Se.indexOf(et)<0&&(Xe[et]=he[et]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,et=Object.getOwnPropertySymbols(he);je<et.length;je++)Se.indexOf(et[je])<0&&Object.prototype.propertyIsEnumerable.call(he,et[je])&&(Xe[et[je]]=he[et[je]]);return Xe};function D(he){const{isLeaf:Se,expanded:Xe}=he;return Se?W.createElement(P.Z,null):Xe?W.createElement(Ne.Z,null):W.createElement(_,null)}function Ye(he){let{treeData:Se,children:Xe}=he;return Se||(0,L.zn)(Xe)}const ke=(he,Se)=>{var{defaultExpandAll:Xe,defaultExpandParent:et,defaultExpandedKeys:je}=he,qe=de(he,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Et=W.useRef(),kt=W.useRef(),Ot=()=>{const{keyEntities:ye}=(0,L.I8)(Ye(qe));let be;return Xe?be=Object.keys(ye):et?be=(0,T.r7)(qe.expandedKeys||je||[],ye):be=qe.expandedKeys||je,be},[sr,rr]=W.useState(qe.selectedKeys||qe.defaultSelectedKeys||[]),[br,lr]=W.useState(()=>Ot());W.useEffect(()=>{"selectedKeys"in qe&&rr(qe.selectedKeys)},[qe.selectedKeys]),W.useEffect(()=>{"expandedKeys"in qe&&lr(qe.expandedKeys)},[qe.expandedKeys]);const V=(ye,be)=>{var ze;return"expandedKeys"in qe||lr(ye),(ze=qe.onExpand)===null||ze===void 0?void 0:ze.call(qe,ye,be)},dt=(ye,be)=>{var ze;const{multiple:gt}=qe,{node:fe,nativeEvent:at}=be,{key:rt=""}=fe,Le=Ye(qe),Fe=Object.assign(Object.assign({},be),{selected:!0}),ct=(at==null?void 0:at.ctrlKey)||(at==null?void 0:at.metaKey),Tt=at==null?void 0:at.shiftKey;let Pt;gt&&ct?(Pt=ye,Et.current=rt,kt.current=Pt,Fe.selectedNodes=ee(Le,Pt)):gt&&Tt?(Pt=Array.from(new Set([].concat((0,Ae.Z)(kt.current||[]),(0,Ae.Z)(Ue({treeData:Le,expandedKeys:br,startKey:rt,endKey:Et.current}))))),Fe.selectedNodes=ee(Le,Pt)):(Pt=[rt],Et.current=rt,kt.current=Pt,Fe.selectedNodes=ee(Le,Pt)),(ze=qe.onSelect)===null||ze===void 0||ze.call(qe,Pt,Fe),"selectedKeys"in qe||rr(Pt)},{getPrefixCls:I,direction:p}=W.useContext(q.E_),{prefixCls:f,className:x,showIcon:Y=!0,expandAction:Be="click"}=qe,H=de(qe,["prefixCls","className","showIcon","expandAction"]),ie=I("tree",f),Qe=O()(`${ie}-directory`,{[`${ie}-directory-rtl`]:p==="rtl"},x);return W.createElement(me,Object.assign({icon:D,ref:Se,blockNode:!0},H,{showIcon:Y,expandAction:Be,prefixCls:ie,className:Qe,expandedKeys:br,selectedKeys:sr,onSelect:dt,onExpand:V}))};var Te=W.forwardRef(ke);const ve=me;ve.DirectoryTree=Te,ve.TreeNode=pe.O;var De=ve},20648:function(dn,Ut,C){"use strict";C.d(Ut,{TM:function(){return M},Yk:function(){return _}});var pe=C(36237),Ae=C(98447),P=C(17313),Ne=C(8378),te=C(37613),W=C(83116);const S=new pe.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),g=(O,T)=>({[`.${O}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${T.motionDurationSlow}`}}}),F=(O,T)=>({[`.${O}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:T.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${T.lineWidthBold}px solid ${T.colorPrimary}`,borderRadius:"50%",content:'""'}}}),v=(O,T)=>{const{treeCls:L,treeNodeCls:q,treeNodePadding:R,titleHeight:se,nodeSelectedBg:ne,nodeHoverBg:J}=T,G=T.paddingXS;return{[L]:Object.assign(Object.assign({},(0,P.Wf)(T)),{background:T.colorBgContainer,borderRadius:T.borderRadius,transition:`background-color ${T.motionDurationSlow}`,[`&${L}-rtl`]:{[`${L}-switcher`]:{"&_close":{[`${L}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${L}-active-focused)`]:Object.assign({},(0,P.oN)(T)),[`${L}-list-holder-inner`]:{alignItems:"flex-start"},[`&${L}-block-node`]:{[`${L}-list-holder-inner`]:{alignItems:"stretch",[`${L}-node-content-wrapper`]:{flex:"auto"},[`${q}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:R,insetInlineStart:0,border:`1px solid ${T.colorPrimary}`,opacity:0,animationName:S,animationDuration:T.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${q}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${R}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${L}-node-content-wrapper`]:{color:T.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${L}-node-content-wrapper`]:Object.assign({},(0,P.oN)(T)),[`&:not(${q}-disabled).filter-node ${L}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${L}-draggable-icon`]:{flexShrink:0,width:se,lineHeight:`${se}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${T.motionDurationSlow}`,[`${q}:hover &`]:{opacity:.45}},[`&${q}-disabled`]:{[`${L}-draggable-icon`]:{visibility:"hidden"}}}},[`${L}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:se}},[`${L}-draggable-icon`]:{visibility:"hidden"},[`${L}-switcher`]:Object.assign(Object.assign({},g(O,T)),{position:"relative",flex:"none",alignSelf:"stretch",width:se,margin:0,lineHeight:`${se}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${L}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:T.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:se/2,bottom:-R,marginInlineStart:-1,borderInlineEnd:`1px solid ${T.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:se/2*.8,height:se/2,borderBottom:`1px solid ${T.colorBorder}`,content:'""'}}}),[`${L}-checkbox`]:{top:"initial",marginInlineEnd:G},[`${L}-node-content-wrapper, ${L}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:se,margin:0,padding:`0 ${T.paddingXS/2}px`,color:"inherit",lineHeight:`${se}px`,background:"transparent",borderRadius:T.borderRadius,cursor:"pointer",transition:`all ${T.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:J},[`&${L}-node-selected`]:{backgroundColor:ne},[`${L}-iconEle`]:{display:"inline-block",width:se,height:se,lineHeight:`${se}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${L}-unselectable ${L}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${L}-node-content-wrapper`]:Object.assign({lineHeight:`${se}px`,userSelect:"none"},F(O,T)),[`${q}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${T.colorPrimary}`}},"&-show-line":{[`${L}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:se/2,bottom:-R,borderInlineEnd:`1px solid ${T.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${L}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${q}-leaf-last`]:{[`${L}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${se/2}px !important`}}}}})}},$=O=>{const{treeCls:T,treeNodeCls:L,treeNodePadding:q,directoryNodeSelectedBg:R,directoryNodeSelectedColor:se}=O;return{[`${T}${T}-directory`]:{[L]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:q,insetInlineStart:0,transition:`background-color ${O.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:O.controlItemBgHover}},"> *":{zIndex:1},[`${T}-switcher`]:{transition:`color ${O.motionDurationMid}`},[`${T}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${T}-node-selected`]:{color:se,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:R},[`${T}-switcher`]:{color:se},[`${T}-node-content-wrapper`]:{color:se,background:"transparent"}}}}}},_=(O,T)=>{const L=`.${O}`,q=`${L}-treenode`,R=T.paddingXS/2,se=(0,te.TS)(T,{treeCls:L,treeNodeCls:q,treeNodePadding:R});return[v(O,se),$(se)]},M=O=>{const{controlHeightSM:T}=O;return{titleHeight:T,nodeHoverBg:O.controlItemBgHover,nodeSelectedBg:O.controlItemBgActive}};Ut.ZP=(0,W.Z)("Tree",(O,T)=>{let{prefixCls:L}=T;return[{[O.componentCls]:(0,Ae.C2)(`${L}-checkbox`,O)},_(L,O),(0,Ne.Z)(O)]},O=>{const{colorTextLightSolid:T,colorPrimary:L}=O;return Object.assign(Object.assign({},M(O)),{directoryNodeSelectedColor:T,directoryNodeSelectedBg:L})})},71997:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return q}});var pe=C(54476),Ae=C(59301),P={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"},Ne=P,te=C(7657),W=function(se,ne){return Ae.createElement(te.Z,(0,pe.Z)({},se,{ref:ne,icon:Ne}))},S=Ae.forwardRef(W),g=S,F=C(52671),v=C(58617),$=C(15075),_=C(43531),M=C(92310),O=C.n(M),T=C(92343),q=R=>{const{prefixCls:se,switcherIcon:ne,treeNodeProps:J,showLine:G}=R,{isLeaf:K,expanded:le,loading:me}=J;if(me)return Ae.createElement(v.Z,{className:`${se}-switcher-loading-icon`});let Oe;if(G&&typeof G=="object"&&(Oe=G.showLeafIcon),K){if(!G)return null;if(typeof Oe!="boolean"&&Oe){const ee=typeof Oe=="function"?Oe(J):Oe,de=`${se}-switcher-line-custom-icon`;return(0,T.l$)(ee)?(0,T.Tm)(ee,{className:O()(ee.props.className||"",de)}):ee}return Oe?Ae.createElement(F.Z,{className:`${se}-switcher-line-icon`}):Ae.createElement("span",{className:`${se}-switcher-leaf-line`})}const Ce=`${se}-switcher-icon`,Ue=typeof ne=="function"?ne(J):ne;return(0,T.l$)(Ue)?(0,T.Tm)(Ue,{className:O()(Ue.props.className||"",Ce)}):Ue!==void 0?Ue:G?le?Ae.createElement($.Z,{className:`${se}-switcher-line-icon`}):Ae.createElement(_.Z,{className:`${se}-switcher-line-icon`}):Ae.createElement(g,{className:Ce})}},86251:function(dn,Ut){"use strict";Ut.byteLength=S,Ut.toByteArray=F,Ut.fromByteArray=_;for(var C=[],pe=[],Ae=typeof Uint8Array!="undefined"?Uint8Array:Array,P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ne=0,te=P.length;Ne<te;++Ne)C[Ne]=P[Ne],pe[P.charCodeAt(Ne)]=Ne;pe[45]=62,pe[95]=63;function W(M){var O=M.length;if(O%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var T=M.indexOf("=");T===-1&&(T=O);var L=T===O?0:4-T%4;return[T,L]}function S(M){var O=W(M),T=O[0],L=O[1];return(T+L)*3/4-L}function g(M,O,T){return(O+T)*3/4-T}function F(M){var O,T=W(M),L=T[0],q=T[1],R=new Ae(g(M,L,q)),se=0,ne=q>0?L-4:L,J;for(J=0;J<ne;J+=4)O=pe[M.charCodeAt(J)]<<18|pe[M.charCodeAt(J+1)]<<12|pe[M.charCodeAt(J+2)]<<6|pe[M.charCodeAt(J+3)],R[se++]=O>>16&255,R[se++]=O>>8&255,R[se++]=O&255;return q===2&&(O=pe[M.charCodeAt(J)]<<2|pe[M.charCodeAt(J+1)]>>4,R[se++]=O&255),q===1&&(O=pe[M.charCodeAt(J)]<<10|pe[M.charCodeAt(J+1)]<<4|pe[M.charCodeAt(J+2)]>>2,R[se++]=O>>8&255,R[se++]=O&255),R}function v(M){return C[M>>18&63]+C[M>>12&63]+C[M>>6&63]+C[M&63]}function $(M,O,T){for(var L,q=[],R=O;R<T;R+=3)L=(M[R]<<16&16711680)+(M[R+1]<<8&65280)+(M[R+2]&255),q.push(v(L));return q.join("")}function _(M){for(var O,T=M.length,L=T%3,q=[],R=16383,se=0,ne=T-L;se<ne;se+=R)q.push($(M,se,se+R>ne?ne:se+R));return L===1?(O=M[T-1],q.push(C[O>>2]+C[O<<4&63]+"==")):L===2&&(O=(M[T-2]<<8)+M[T-1],q.push(C[O>>10]+C[O>>4&63]+C[O<<2&63]+"=")),q.join("")}},19208:function(dn,Ut,C){"use strict";var pe;var Ae=C(86251),P=C(67467),Ne=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ut.lW=g,pe=se,Ut.h2=50;var te=2147483647;pe=te,g.TYPED_ARRAY_SUPPORT=W(),!g.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 I=new Uint8Array(1),p={foo:function(){return 42}};return Object.setPrototypeOf(p,Uint8Array.prototype),Object.setPrototypeOf(I,p),I.foo()===42}catch(f){return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}});function S(I){if(I>te)throw new RangeError('The value "'+I+'" is invalid for option "size"');var p=new Uint8Array(I);return Object.setPrototypeOf(p,g.prototype),p}function g(I,p,f){if(typeof I=="number"){if(typeof p=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(I)}return F(I,p,f)}g.poolSize=8192;function F(I,p,f){if(typeof I=="string")return M(I,p);if(ArrayBuffer.isView(I))return T(I);if(I==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);if(lr(I,ArrayBuffer)||I&&lr(I.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(lr(I,SharedArrayBuffer)||I&&lr(I.buffer,SharedArrayBuffer)))return L(I,p,f);if(typeof I=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var x=I.valueOf&&I.valueOf();if(x!=null&&x!==I)return g.from(x,p,f);var Y=q(I);if(Y)return Y;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]=="function")return g.from(I[Symbol.toPrimitive]("string"),p,f);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}g.from=function(I,p,f){return F(I,p,f)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function v(I){if(typeof I!="number")throw new TypeError('"size" argument must be of type number');if(I<0)throw new RangeError('The value "'+I+'" is invalid for option "size"')}function $(I,p,f){return v(I),I<=0?S(I):p!==void 0?typeof f=="string"?S(I).fill(p,f):S(I).fill(p):S(I)}g.alloc=function(I,p,f){return $(I,p,f)};function _(I){return v(I),S(I<0?0:R(I)|0)}g.allocUnsafe=function(I){return _(I)},g.allocUnsafeSlow=function(I){return _(I)};function M(I,p){if((typeof p!="string"||p==="")&&(p="utf8"),!g.isEncoding(p))throw new TypeError("Unknown encoding: "+p);var f=ne(I,p)|0,x=S(f),Y=x.write(I,p);return Y!==f&&(x=x.slice(0,Y)),x}function O(I){for(var p=I.length<0?0:R(I.length)|0,f=S(p),x=0;x<p;x+=1)f[x]=I[x]&255;return f}function T(I){if(lr(I,Uint8Array)){var p=new Uint8Array(I);return L(p.buffer,p.byteOffset,p.byteLength)}return O(I)}function L(I,p,f){if(p<0||I.byteLength<p)throw new RangeError('"offset" is outside of buffer bounds');if(I.byteLength<p+(f||0))throw new RangeError('"length" is outside of buffer bounds');var x;return p===void 0&&f===void 0?x=new Uint8Array(I):f===void 0?x=new Uint8Array(I,p):x=new Uint8Array(I,p,f),Object.setPrototypeOf(x,g.prototype),x}function q(I){if(g.isBuffer(I)){var p=R(I.length)|0,f=S(p);return f.length===0||I.copy(f,0,0,p),f}if(I.length!==void 0)return typeof I.length!="number"||V(I.length)?S(0):O(I);if(I.type==="Buffer"&&Array.isArray(I.data))return O(I.data)}function R(I){if(I>=te)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+te.toString(16)+" bytes");return I|0}function se(I){return+I!=I&&(I=0),g.alloc(+I)}g.isBuffer=function(p){return p!=null&&p._isBuffer===!0&&p!==g.prototype},g.compare=function(p,f){if(lr(p,Uint8Array)&&(p=g.from(p,p.offset,p.byteLength)),lr(f,Uint8Array)&&(f=g.from(f,f.offset,f.byteLength)),!g.isBuffer(p)||!g.isBuffer(f))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(p===f)return 0;for(var x=p.length,Y=f.length,Be=0,H=Math.min(x,Y);Be<H;++Be)if(p[Be]!==f[Be]){x=p[Be],Y=f[Be];break}return x<Y?-1:Y<x?1:0},g.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}},g.concat=function(p,f){if(!Array.isArray(p))throw new TypeError('"list" argument must be an Array of Buffers');if(p.length===0)return g.alloc(0);var x;if(f===void 0)for(f=0,x=0;x<p.length;++x)f+=p[x].length;var Y=g.allocUnsafe(f),Be=0;for(x=0;x<p.length;++x){var H=p[x];if(lr(H,Uint8Array))Be+H.length>Y.length?g.from(H).copy(Y,Be):Uint8Array.prototype.set.call(Y,H,Be);else if(g.isBuffer(H))H.copy(Y,Be);else throw new TypeError('"list" argument must be an Array of Buffers');Be+=H.length}return Y};function ne(I,p){if(g.isBuffer(I))return I.length;if(ArrayBuffer.isView(I)||lr(I,ArrayBuffer))return I.byteLength;if(typeof I!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);var f=I.length,x=arguments.length>2&&arguments[2]===!0;if(!x&&f===0)return 0;for(var Y=!1;;)switch(p){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":return kt(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f*2;case"hex":return f>>>1;case"base64":return rr(I).length;default:if(Y)return x?-1:kt(I).length;p=(""+p).toLowerCase(),Y=!0}}g.byteLength=ne;function J(I,p,f){var x=!1;if((p===void 0||p<0)&&(p=0),p>this.length||((f===void 0||f>this.length)&&(f=this.length),f<=0)||(f>>>=0,p>>>=0,f<=p))return"";for(I||(I="utf8");;)switch(I){case"hex":return ve(this,p,f);case"utf8":case"utf-8":return D(this,p,f);case"ascii":return xe(this,p,f);case"latin1":case"binary":return Te(this,p,f);case"base64":return de(this,p,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return De(this,p,f);default:if(x)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),x=!0}}g.prototype._isBuffer=!0;function G(I,p,f){var x=I[p];I[p]=I[f],I[f]=x}g.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 f=0;f<p;f+=2)G(this,f,f+1);return this},g.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 f=0;f<p;f+=4)G(this,f,f+3),G(this,f+1,f+2);return this},g.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 f=0;f<p;f+=8)G(this,f,f+7),G(this,f+1,f+6),G(this,f+2,f+5),G(this,f+3,f+4);return this},g.prototype.toString=function(){var p=this.length;return p===0?"":arguments.length===0?D(this,0,p):J.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(p){if(!g.isBuffer(p))throw new TypeError("Argument must be a Buffer");return this===p?!0:g.compare(this,p)===0},g.prototype.inspect=function(){var p="",f=Ut.h2;return p=this.toString("hex",0,f).replace(/(.{2})/g,"$1 ").trim(),this.length>f&&(p+=" ... "),"<Buffer "+p+">"},Ne&&(g.prototype[Ne]=g.prototype.inspect),g.prototype.compare=function(p,f,x,Y,Be){if(lr(p,Uint8Array)&&(p=g.from(p,p.offset,p.byteLength)),!g.isBuffer(p))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof p);if(f===void 0&&(f=0),x===void 0&&(x=p?p.length:0),Y===void 0&&(Y=0),Be===void 0&&(Be=this.length),f<0||x>p.length||Y<0||Be>this.length)throw new RangeError("out of range index");if(Y>=Be&&f>=x)return 0;if(Y>=Be)return-1;if(f>=x)return 1;if(f>>>=0,x>>>=0,Y>>>=0,Be>>>=0,this===p)return 0;for(var H=Be-Y,ie=x-f,Qe=Math.min(H,ie),ye=this.slice(Y,Be),be=p.slice(f,x),ze=0;ze<Qe;++ze)if(ye[ze]!==be[ze]){H=ye[ze],ie=be[ze];break}return H<ie?-1:ie<H?1:0};function K(I,p,f,x,Y){if(I.length===0)return-1;if(typeof f=="string"?(x=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),f=+f,V(f)&&(f=Y?0:I.length-1),f<0&&(f=I.length+f),f>=I.length){if(Y)return-1;f=I.length-1}else if(f<0)if(Y)f=0;else return-1;if(typeof p=="string"&&(p=g.from(p,x)),g.isBuffer(p))return p.length===0?-1:le(I,p,f,x,Y);if(typeof p=="number")return p=p&255,typeof Uint8Array.prototype.indexOf=="function"?Y?Uint8Array.prototype.indexOf.call(I,p,f):Uint8Array.prototype.lastIndexOf.call(I,p,f):le(I,[p],f,x,Y);throw new TypeError("val must be string, number or Buffer")}function le(I,p,f,x,Y){var Be=1,H=I.length,ie=p.length;if(x!==void 0&&(x=String(x).toLowerCase(),x==="ucs2"||x==="ucs-2"||x==="utf16le"||x==="utf-16le")){if(I.length<2||p.length<2)return-1;Be=2,H/=2,ie/=2,f/=2}function Qe(fe,at){return Be===1?fe[at]:fe.readUInt16BE(at*Be)}var ye;if(Y){var be=-1;for(ye=f;ye<H;ye++)if(Qe(I,ye)===Qe(p,be===-1?0:ye-be)){if(be===-1&&(be=ye),ye-be+1===ie)return be*Be}else be!==-1&&(ye-=ye-be),be=-1}else for(f+ie>H&&(f=H-ie),ye=f;ye>=0;ye--){for(var ze=!0,gt=0;gt<ie;gt++)if(Qe(I,ye+gt)!==Qe(p,gt)){ze=!1;break}if(ze)return ye}return-1}g.prototype.includes=function(p,f,x){return this.indexOf(p,f,x)!==-1},g.prototype.indexOf=function(p,f,x){return K(this,p,f,x,!0)},g.prototype.lastIndexOf=function(p,f,x){return K(this,p,f,x,!1)};function me(I,p,f,x){f=Number(f)||0;var Y=I.length-f;x?(x=Number(x),x>Y&&(x=Y)):x=Y;var Be=p.length;x>Be/2&&(x=Be/2);for(var H=0;H<x;++H){var ie=parseInt(p.substr(H*2,2),16);if(V(ie))return H;I[f+H]=ie}return H}function Oe(I,p,f,x){return br(kt(p,I.length-f),I,f,x)}function Ce(I,p,f,x){return br(Ot(p),I,f,x)}function Ue(I,p,f,x){return br(rr(p),I,f,x)}function ee(I,p,f,x){return br(sr(p,I.length-f),I,f,x)}g.prototype.write=function(p,f,x,Y){if(f===void 0)Y="utf8",x=this.length,f=0;else if(x===void 0&&typeof f=="string")Y=f,x=this.length,f=0;else if(isFinite(f))f=f>>>0,isFinite(x)?(x=x>>>0,Y===void 0&&(Y="utf8")):(Y=x,x=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Be=this.length-f;if((x===void 0||x>Be)&&(x=Be),p.length>0&&(x<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");Y||(Y="utf8");for(var H=!1;;)switch(Y){case"hex":return me(this,p,f,x);case"utf8":case"utf-8":return Oe(this,p,f,x);case"ascii":case"latin1":case"binary":return Ce(this,p,f,x);case"base64":return Ue(this,p,f,x);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,p,f,x);default:if(H)throw new TypeError("Unknown encoding: "+Y);Y=(""+Y).toLowerCase(),H=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function de(I,p,f){return p===0&&f===I.length?Ae.fromByteArray(I):Ae.fromByteArray(I.slice(p,f))}function D(I,p,f){f=Math.min(I.length,f);for(var x=[],Y=p;Y<f;){var Be=I[Y],H=null,ie=Be>239?4:Be>223?3:Be>191?2:1;if(Y+ie<=f){var Qe,ye,be,ze;switch(ie){case 1:Be<128&&(H=Be);break;case 2:Qe=I[Y+1],(Qe&192)===128&&(ze=(Be&31)<<6|Qe&63,ze>127&&(H=ze));break;case 3:Qe=I[Y+1],ye=I[Y+2],(Qe&192)===128&&(ye&192)===128&&(ze=(Be&15)<<12|(Qe&63)<<6|ye&63,ze>2047&&(ze<55296||ze>57343)&&(H=ze));break;case 4:Qe=I[Y+1],ye=I[Y+2],be=I[Y+3],(Qe&192)===128&&(ye&192)===128&&(be&192)===128&&(ze=(Be&15)<<18|(Qe&63)<<12|(ye&63)<<6|be&63,ze>65535&&ze<1114112&&(H=ze))}}H===null?(H=65533,ie=1):H>65535&&(H-=65536,x.push(H>>>10&1023|55296),H=56320|H&1023),x.push(H),Y+=ie}return ke(x)}var Ye=4096;function ke(I){var p=I.length;if(p<=Ye)return String.fromCharCode.apply(String,I);for(var f="",x=0;x<p;)f+=String.fromCharCode.apply(String,I.slice(x,x+=Ye));return f}function xe(I,p,f){var x="";f=Math.min(I.length,f);for(var Y=p;Y<f;++Y)x+=String.fromCharCode(I[Y]&127);return x}function Te(I,p,f){var x="";f=Math.min(I.length,f);for(var Y=p;Y<f;++Y)x+=String.fromCharCode(I[Y]);return x}function ve(I,p,f){var x=I.length;(!p||p<0)&&(p=0),(!f||f<0||f>x)&&(f=x);for(var Y="",Be=p;Be<f;++Be)Y+=dt[I[Be]];return Y}function De(I,p,f){for(var x=I.slice(p,f),Y="",Be=0;Be<x.length-1;Be+=2)Y+=String.fromCharCode(x[Be]+x[Be+1]*256);return Y}g.prototype.slice=function(p,f){var x=this.length;p=~~p,f=f===void 0?x:~~f,p<0?(p+=x,p<0&&(p=0)):p>x&&(p=x),f<0?(f+=x,f<0&&(f=0)):f>x&&(f=x),f<p&&(f=p);var Y=this.subarray(p,f);return Object.setPrototypeOf(Y,g.prototype),Y};function he(I,p,f){if(I%1!==0||I<0)throw new RangeError("offset is not uint");if(I+p>f)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(p,f,x){p=p>>>0,f=f>>>0,x||he(p,f,this.length);for(var Y=this[p],Be=1,H=0;++H<f&&(Be*=256);)Y+=this[p+H]*Be;return Y},g.prototype.readUintBE=g.prototype.readUIntBE=function(p,f,x){p=p>>>0,f=f>>>0,x||he(p,f,this.length);for(var Y=this[p+--f],Be=1;f>0&&(Be*=256);)Y+=this[p+--f]*Be;return Y},g.prototype.readUint8=g.prototype.readUInt8=function(p,f){return p=p>>>0,f||he(p,1,this.length),this[p]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(p,f){return p=p>>>0,f||he(p,2,this.length),this[p]|this[p+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(p,f){return p=p>>>0,f||he(p,2,this.length),this[p]<<8|this[p+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(p,f){return p=p>>>0,f||he(p,4,this.length),(this[p]|this[p+1]<<8|this[p+2]<<16)+this[p+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(p,f){return p=p>>>0,f||he(p,4,this.length),this[p]*16777216+(this[p+1]<<16|this[p+2]<<8|this[p+3])},g.prototype.readIntLE=function(p,f,x){p=p>>>0,f=f>>>0,x||he(p,f,this.length);for(var Y=this[p],Be=1,H=0;++H<f&&(Be*=256);)Y+=this[p+H]*Be;return Be*=128,Y>=Be&&(Y-=Math.pow(2,8*f)),Y},g.prototype.readIntBE=function(p,f,x){p=p>>>0,f=f>>>0,x||he(p,f,this.length);for(var Y=f,Be=1,H=this[p+--Y];Y>0&&(Be*=256);)H+=this[p+--Y]*Be;return Be*=128,H>=Be&&(H-=Math.pow(2,8*f)),H},g.prototype.readInt8=function(p,f){return p=p>>>0,f||he(p,1,this.length),this[p]&128?(255-this[p]+1)*-1:this[p]},g.prototype.readInt16LE=function(p,f){p=p>>>0,f||he(p,2,this.length);var x=this[p]|this[p+1]<<8;return x&32768?x|4294901760:x},g.prototype.readInt16BE=function(p,f){p=p>>>0,f||he(p,2,this.length);var x=this[p+1]|this[p]<<8;return x&32768?x|4294901760:x},g.prototype.readInt32LE=function(p,f){return p=p>>>0,f||he(p,4,this.length),this[p]|this[p+1]<<8|this[p+2]<<16|this[p+3]<<24},g.prototype.readInt32BE=function(p,f){return p=p>>>0,f||he(p,4,this.length),this[p]<<24|this[p+1]<<16|this[p+2]<<8|this[p+3]},g.prototype.readFloatLE=function(p,f){return p=p>>>0,f||he(p,4,this.length),P.read(this,p,!0,23,4)},g.prototype.readFloatBE=function(p,f){return p=p>>>0,f||he(p,4,this.length),P.read(this,p,!1,23,4)},g.prototype.readDoubleLE=function(p,f){return p=p>>>0,f||he(p,8,this.length),P.read(this,p,!0,52,8)},g.prototype.readDoubleBE=function(p,f){return p=p>>>0,f||he(p,8,this.length),P.read(this,p,!1,52,8)};function Se(I,p,f,x,Y,Be){if(!g.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(p>Y||p<Be)throw new RangeError('"value" argument is out of bounds');if(f+x>I.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(p,f,x,Y){if(p=+p,f=f>>>0,x=x>>>0,!Y){var Be=Math.pow(2,8*x)-1;Se(this,p,f,x,Be,0)}var H=1,ie=0;for(this[f]=p&255;++ie<x&&(H*=256);)this[f+ie]=p/H&255;return f+x},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(p,f,x,Y){if(p=+p,f=f>>>0,x=x>>>0,!Y){var Be=Math.pow(2,8*x)-1;Se(this,p,f,x,Be,0)}var H=x-1,ie=1;for(this[f+H]=p&255;--H>=0&&(ie*=256);)this[f+H]=p/ie&255;return f+x},g.prototype.writeUint8=g.prototype.writeUInt8=function(p,f,x){return p=+p,f=f>>>0,x||Se(this,p,f,1,255,0),this[f]=p&255,f+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(p,f,x){return p=+p,f=f>>>0,x||Se(this,p,f,2,65535,0),this[f]=p&255,this[f+1]=p>>>8,f+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(p,f,x){return p=+p,f=f>>>0,x||Se(this,p,f,2,65535,0),this[f]=p>>>8,this[f+1]=p&255,f+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(p,f,x){return p=+p,f=f>>>0,x||Se(this,p,f,4,4294967295,0),this[f+3]=p>>>24,this[f+2]=p>>>16,this[f+1]=p>>>8,this[f]=p&255,f+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(p,f,x){return p=+p,f=f>>>0,x||Se(this,p,f,4,4294967295,0),this[f]=p>>>24,this[f+1]=p>>>16,this[f+2]=p>>>8,this[f+3]=p&255,f+4},g.prototype.writeIntLE=function(p,f,x,Y){if(p=+p,f=f>>>0,!Y){var Be=Math.pow(2,8*x-1);Se(this,p,f,x,Be-1,-Be)}var H=0,ie=1,Qe=0;for(this[f]=p&255;++H<x&&(ie*=256);)p<0&&Qe===0&&this[f+H-1]!==0&&(Qe=1),this[f+H]=(p/ie>>0)-Qe&255;return f+x},g.prototype.writeIntBE=function(p,f,x,Y){if(p=+p,f=f>>>0,!Y){var Be=Math.pow(2,8*x-1);Se(this,p,f,x,Be-1,-Be)}var H=x-1,ie=1,Qe=0;for(this[f+H]=p&255;--H>=0&&(ie*=256);)p<0&&Qe===0&&this[f+H+1]!==0&&(Qe=1),this[f+H]=(p/ie>>0)-Qe&255;return f+x},g.prototype.writeInt8=function(p,f,x){return p=+p,f=f>>>0,x||Se(this,p,f,1,127,-128),p<0&&(p=255+p+1),this[f]=p&255,f+1},g.prototype.writeInt16LE=function(p,f,x){return p=+p,f=f>>>0,x||Se(this,p,f,2,32767,-32768),this[f]=p&255,this[f+1]=p>>>8,f+2},g.prototype.writeInt16BE=function(p,f,x){return p=+p,f=f>>>0,x||Se(this,p,f,2,32767,-32768),this[f]=p>>>8,this[f+1]=p&255,f+2},g.prototype.writeInt32LE=function(p,f,x){return p=+p,f=f>>>0,x||Se(this,p,f,4,2147483647,-2147483648),this[f]=p&255,this[f+1]=p>>>8,this[f+2]=p>>>16,this[f+3]=p>>>24,f+4},g.prototype.writeInt32BE=function(p,f,x){return p=+p,f=f>>>0,x||Se(this,p,f,4,2147483647,-2147483648),p<0&&(p=4294967295+p+1),this[f]=p>>>24,this[f+1]=p>>>16,this[f+2]=p>>>8,this[f+3]=p&255,f+4};function Xe(I,p,f,x,Y,Be){if(f+x>I.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("Index out of range")}function et(I,p,f,x,Y){return p=+p,f=f>>>0,Y||Xe(I,p,f,4,34028234663852886e22,-34028234663852886e22),P.write(I,p,f,x,23,4),f+4}g.prototype.writeFloatLE=function(p,f,x){return et(this,p,f,!0,x)},g.prototype.writeFloatBE=function(p,f,x){return et(this,p,f,!1,x)};function je(I,p,f,x,Y){return p=+p,f=f>>>0,Y||Xe(I,p,f,8,17976931348623157e292,-17976931348623157e292),P.write(I,p,f,x,52,8),f+8}g.prototype.writeDoubleLE=function(p,f,x){return je(this,p,f,!0,x)},g.prototype.writeDoubleBE=function(p,f,x){return je(this,p,f,!1,x)},g.prototype.copy=function(p,f,x,Y){if(!g.isBuffer(p))throw new TypeError("argument should be a Buffer");if(x||(x=0),!Y&&Y!==0&&(Y=this.length),f>=p.length&&(f=p.length),f||(f=0),Y>0&&Y<x&&(Y=x),Y===x||p.length===0||this.length===0)return 0;if(f<0)throw new RangeError("targetStart out of bounds");if(x<0||x>=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-f<Y-x&&(Y=p.length-f+x);var Be=Y-x;return this===p&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(f,x,Y):Uint8Array.prototype.set.call(p,this.subarray(x,Y),f),Be},g.prototype.fill=function(p,f,x,Y){if(typeof p=="string"){if(typeof f=="string"?(Y=f,f=0,x=this.length):typeof x=="string"&&(Y=x,x=this.length),Y!==void 0&&typeof Y!="string")throw new TypeError("encoding must be a string");if(typeof Y=="string"&&!g.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);if(p.length===1){var Be=p.charCodeAt(0);(Y==="utf8"&&Be<128||Y==="latin1")&&(p=Be)}}else typeof p=="number"?p=p&255:typeof p=="boolean"&&(p=Number(p));if(f<0||this.length<f||this.length<x)throw new RangeError("Out of range index");if(x<=f)return this;f=f>>>0,x=x===void 0?this.length:x>>>0,p||(p=0);var H;if(typeof p=="number")for(H=f;H<x;++H)this[H]=p;else{var ie=g.isBuffer(p)?p:g.from(p,Y),Qe=ie.length;if(Qe===0)throw new TypeError('The value "'+p+'" is invalid for argument "value"');for(H=0;H<x-f;++H)this[H+f]=ie[H%Qe]}return this};var qe=/[^+/0-9A-Za-z-_]/g;function Et(I){if(I=I.split("=")[0],I=I.trim().replace(qe,""),I.length<2)return"";for(;I.length%4!==0;)I=I+"=";return I}function kt(I,p){p=p||1/0;for(var f,x=I.length,Y=null,Be=[],H=0;H<x;++H){if(f=I.charCodeAt(H),f>55295&&f<57344){if(!Y){if(f>56319){(p-=3)>-1&&Be.push(239,191,189);continue}else if(H+1===x){(p-=3)>-1&&Be.push(239,191,189);continue}Y=f;continue}if(f<56320){(p-=3)>-1&&Be.push(239,191,189),Y=f;continue}f=(Y-55296<<10|f-56320)+65536}else Y&&(p-=3)>-1&&Be.push(239,191,189);if(Y=null,f<128){if((p-=1)<0)break;Be.push(f)}else if(f<2048){if((p-=2)<0)break;Be.push(f>>6|192,f&63|128)}else if(f<65536){if((p-=3)<0)break;Be.push(f>>12|224,f>>6&63|128,f&63|128)}else if(f<1114112){if((p-=4)<0)break;Be.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else throw new Error("Invalid code point")}return Be}function Ot(I){for(var p=[],f=0;f<I.length;++f)p.push(I.charCodeAt(f)&255);return p}function sr(I,p){for(var f,x,Y,Be=[],H=0;H<I.length&&!((p-=2)<0);++H)f=I.charCodeAt(H),x=f>>8,Y=f%256,Be.push(Y),Be.push(x);return Be}function rr(I){return Ae.toByteArray(Et(I))}function br(I,p,f,x){for(var Y=0;Y<x&&!(Y+f>=p.length||Y>=I.length);++Y)p[Y+f]=I[Y];return Y}function lr(I,p){return I instanceof p||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===p.name}function V(I){return I!==I}var dt=function(){for(var I="0123456789abcdef",p=new Array(256),f=0;f<16;++f)for(var x=f*16,Y=0;Y<16;++Y)p[x+Y]=I[f]+I[Y];return p}()},64270:function(dn){(function(Ut,C){dn.exports=C()})(this,function(){"use strict";var Ut=function(b,d){return Ut=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,y){w.__proto__=y}||function(w,y){for(var re in y)Object.prototype.hasOwnProperty.call(y,re)&&(w[re]=y[re])},Ut(b,d)};function C(b,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");Ut(b,d);function w(){this.constructor=b}b.prototype=d===null?Object.create(d):(w.prototype=d.prototype,new w)}var pe=function(){return pe=Object.assign||function(d){for(var w,y=1,re=arguments.length;y<re;y++){w=arguments[y];for(var Ee in w)Object.prototype.hasOwnProperty.call(w,Ee)&&(d[Ee]=w[Ee])}return d},pe.apply(this,arguments)};function Ae(b,d,w,y){function re(Ee){return Ee instanceof w?Ee:new w(function(We){We(Ee)})}return new(w||(w=Promise))(function(Ee,We){function ht(cr){try{tr(y.next(cr))}catch(hr){We(hr)}}function pt(cr){try{tr(y.throw(cr))}catch(hr){We(hr)}}function tr(cr){cr.done?Ee(cr.value):re(cr.value).then(ht,pt)}tr((y=y.apply(b,d||[])).next())})}function P(b,d){var w={label:0,sent:function(){if(Ee[0]&1)throw Ee[1];return Ee[1]},trys:[],ops:[]},y,re,Ee,We;return We={next:ht(0),throw:ht(1),return:ht(2)},typeof Symbol=="function"&&(We[Symbol.iterator]=function(){return this}),We;function ht(tr){return function(cr){return pt([tr,cr])}}function pt(tr){if(y)throw new TypeError("Generator is already executing.");for(;w;)try{if(y=1,re&&(Ee=tr[0]&2?re.return:tr[0]?re.throw||((Ee=re.return)&&Ee.call(re),0):re.next)&&!(Ee=Ee.call(re,tr[1])).done)return Ee;switch(re=0,Ee&&(tr=[tr[0]&2,Ee.value]),tr[0]){case 0:case 1:Ee=tr;break;case 4:return w.label++,{value:tr[1],done:!1};case 5:w.label++,re=tr[1],tr=[0];continue;case 7:tr=w.ops.pop(),w.trys.pop();continue;default:if(Ee=w.trys,!(Ee=Ee.length>0&&Ee[Ee.length-1])&&(tr[0]===6||tr[0]===2)){w=0;continue}if(tr[0]===3&&(!Ee||tr[1]>Ee[0]&&tr[1]<Ee[3])){w.label=tr[1];break}if(tr[0]===6&&w.label<Ee[1]){w.label=Ee[1],Ee=tr;break}if(Ee&&w.label<Ee[2]){w.label=Ee[2],w.ops.push(tr);break}Ee[2]&&w.ops.pop(),w.trys.pop();continue}tr=d.call(b,w)}catch(cr){tr=[6,cr],re=0}finally{y=Ee=0}if(tr[0]&5)throw tr[1];return{value:tr[0]?tr[1]:void 0,done:!0}}}function Ne(b,d,w){if(w||arguments.length===2)for(var y=0,re=d.length,Ee;y<re;y++)(Ee||!(y in d))&&(Ee||(Ee=Array.prototype.slice.call(d,0,y)),Ee[y]=d[y]);return b.concat(Ee||d)}for(var te=function(){function b(d,w,y,re){this.left=d,this.top=w,this.width=y,this.height=re}return b.prototype.add=function(d,w,y,re){return new b(this.left+d,this.top+w,this.width+y,this.height+re)},b.fromClientRect=function(d,w){return new b(w.left+d.windowBounds.left,w.top+d.windowBounds.top,w.width,w.height)},b.fromDOMRectList=function(d,w){var y=Array.from(w).find(function(re){return re.width!==0});return y?new b(y.left+d.windowBounds.left,y.top+d.windowBounds.top,y.width,y.height):b.EMPTY},b.EMPTY=new b(0,0,0,0),b}(),W=function(b,d){return te.fromClientRect(b,d.getBoundingClientRect())},S=function(b){var d=b.body,w=b.documentElement;if(!d||!w)throw new Error("Unable to get document size");var y=Math.max(Math.max(d.scrollWidth,w.scrollWidth),Math.max(d.offsetWidth,w.offsetWidth),Math.max(d.clientWidth,w.clientWidth)),re=Math.max(Math.max(d.scrollHeight,w.scrollHeight),Math.max(d.offsetHeight,w.offsetHeight),Math.max(d.clientHeight,w.clientHeight));return new te(0,0,y,re)},g=function(b){for(var d=[],w=0,y=b.length;w<y;){var re=b.charCodeAt(w++);if(re>=55296&&re<=56319&&w<y){var Ee=b.charCodeAt(w++);(Ee&64512)===56320?d.push(((re&1023)<<10)+(Ee&1023)+65536):(d.push(re),w--)}else d.push(re)}return d},F=function(){for(var b=[],d=0;d<arguments.length;d++)b[d]=arguments[d];if(String.fromCodePoint)return String.fromCodePoint.apply(String,b);var w=b.length;if(!w)return"";for(var y=[],re=-1,Ee="";++re<w;){var We=b[re];We<=65535?y.push(We):(We-=65536,y.push((We>>10)+55296,We%1024+56320)),(re+1===w||y.length>16384)&&(Ee+=String.fromCharCode.apply(String,y),y.length=0)}return Ee},v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),_=0;_<v.length;_++)$[v.charCodeAt(_)]=_;for(var M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),T=0;T<M.length;T++)O[M.charCodeAt(T)]=T;for(var L=function(b){var d=b.length*.75,w=b.length,y,re=0,Ee,We,ht,pt;b[b.length-1]==="="&&(d--,b[b.length-2]==="="&&d--);var tr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(d):new Array(d),cr=Array.isArray(tr)?tr:new Uint8Array(tr);for(y=0;y<w;y+=4)Ee=O[b.charCodeAt(y)],We=O[b.charCodeAt(y+1)],ht=O[b.charCodeAt(y+2)],pt=O[b.charCodeAt(y+3)],cr[re++]=Ee<<2|We>>4,cr[re++]=(We&15)<<4|ht>>2,cr[re++]=(ht&3)<<6|pt&63;return tr},q=function(b){for(var d=b.length,w=[],y=0;y<d;y+=2)w.push(b[y+1]<<8|b[y]);return w},R=function(b){for(var d=b.length,w=[],y=0;y<d;y+=4)w.push(b[y+3]<<24|b[y+2]<<16|b[y+1]<<8|b[y]);return w},se=5,ne=11,J=2,G=ne-se,K=65536>>se,le=1<<se,me=le-1,Oe=1024>>se,Ce=K+Oe,Ue=Ce,ee=32,de=Ue+ee,D=65536>>ne,Ye=1<<G,ke=Ye-1,xe=function(b,d,w){return b.slice?b.slice(d,w):new Uint16Array(Array.prototype.slice.call(b,d,w))},Te=function(b,d,w){return b.slice?b.slice(d,w):new Uint32Array(Array.prototype.slice.call(b,d,w))},ve=function(b,d){var w=L(b),y=Array.isArray(w)?R(w):new Uint32Array(w),re=Array.isArray(w)?q(w):new Uint16Array(w),Ee=24,We=xe(re,Ee/2,y[4]/2),ht=y[5]===2?xe(re,(Ee+y[4])/2):Te(y,Math.ceil((Ee+y[4])/4));return new De(y[0],y[1],y[2],y[3],We,ht)},De=function(){function b(d,w,y,re,Ee,We){this.initialValue=d,this.errorValue=w,this.highStart=y,this.highValueIndex=re,this.index=Ee,this.data=We}return b.prototype.get=function(d){var w;if(d>=0){if(d<55296||d>56319&&d<=65535)return w=this.index[d>>se],w=(w<<J)+(d&me),this.data[w];if(d<=65535)return w=this.index[K+(d-55296>>se)],w=(w<<J)+(d&me),this.data[w];if(d<this.highStart)return w=de-D+(d>>ne),w=this.index[w],w+=d>>se&ke,w=this.index[w],w=(w<<J)+(d&me),this.data[w];if(d<=1114111)return this.data[this.highValueIndex]}return this.errorValue},b}(),he="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Se=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Xe=0;Xe<he.length;Xe++)Se[he.charCodeAt(Xe)]=Xe;var et="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==",je=50,qe=1,Et=2,kt=3,Ot=4,sr=5,rr=7,br=8,lr=9,V=10,dt=11,I=12,p=13,f=14,x=15,Y=16,Be=17,H=18,ie=19,Qe=20,ye=21,be=22,ze=23,gt=24,fe=25,at=26,rt=27,Le=28,Fe=29,ct=30,Tt=31,Pt=32,Yt=33,Fr=34,Lr=35,Or=36,kr=37,yr=38,ur=39,Kr=40,fn=41,Un=42,hn=43,Dn=[9001,65288],Qi="!",Pr="\xD7",xn="\xF7",Ei=ve(et),di=[ct,Or],Zi=[qe,Et,kt,sr],_i=[V,br],ji=[rt,at],qa=Zi.concat(_i),Ki=[yr,ur,Kr,Fr,Lr],ti=[x,p],gi=function(b,d){d===void 0&&(d="strict");var w=[],y=[],re=[];return b.forEach(function(Ee,We){var ht=Ei.get(Ee);if(ht>je?(re.push(!0),ht-=je):re.push(!1),["normal","auto","loose"].indexOf(d)!==-1&&[8208,8211,12316,12448].indexOf(Ee)!==-1)return y.push(We),w.push(Y);if(ht===Ot||ht===dt){if(We===0)return y.push(We),w.push(ct);var pt=w[We-1];return qa.indexOf(pt)===-1?(y.push(y[We-1]),w.push(pt)):(y.push(We),w.push(ct))}if(y.push(We),ht===Tt)return w.push(d==="strict"?ye:kr);if(ht===Un||ht===Fe)return w.push(ct);if(ht===hn)return Ee>=131072&&Ee<=196605||Ee>=196608&&Ee<=262141?w.push(kr):w.push(ct);w.push(ht)}),[y,w,re]},yi=function(b,d,w,y){var re=y[w];if(Array.isArray(b)?b.indexOf(re)!==-1:b===re)for(var Ee=w;Ee<=y.length;){Ee++;var We=y[Ee];if(We===d)return!0;if(We!==V)break}if(re===V)for(var Ee=w;Ee>0;){Ee--;var ht=y[Ee];if(Array.isArray(b)?b.indexOf(ht)!==-1:b===ht)for(var pt=w;pt<=y.length;){pt++;var We=y[pt];if(We===d)return!0;if(We!==V)break}if(ht!==V)break}return!1},$e=function(b,d){for(var w=b;w>=0;){var y=d[w];if(y===V)w--;else return y}return 0},_e=function(b,d,w,y,re){if(w[y]===0)return Pr;var Ee=y-1;if(Array.isArray(re)&&re[Ee]===!0)return Pr;var We=Ee-1,ht=Ee+1,pt=d[Ee],tr=We>=0?d[We]:0,cr=d[ht];if(pt===Et&&cr===kt)return Pr;if(Zi.indexOf(pt)!==-1)return Qi;if(Zi.indexOf(cr)!==-1||_i.indexOf(cr)!==-1)return Pr;if($e(Ee,d)===br)return xn;if(Ei.get(b[Ee])===dt||(pt===Pt||pt===Yt)&&Ei.get(b[ht])===dt||pt===rr||cr===rr||pt===lr||[V,p,x].indexOf(pt)===-1&&cr===lr||[Be,H,ie,gt,Le].indexOf(cr)!==-1||$e(Ee,d)===be||yi(ze,be,Ee,d)||yi([Be,H],ye,Ee,d)||yi(I,I,Ee,d))return Pr;if(pt===V)return xn;if(pt===ze||cr===ze)return Pr;if(cr===Y||pt===Y)return xn;if([p,x,ye].indexOf(cr)!==-1||pt===f||tr===Or&&ti.indexOf(pt)!==-1||pt===Le&&cr===Or||cr===Qe||di.indexOf(cr)!==-1&&pt===fe||di.indexOf(pt)!==-1&&cr===fe||pt===rt&&[kr,Pt,Yt].indexOf(cr)!==-1||[kr,Pt,Yt].indexOf(pt)!==-1&&cr===at||di.indexOf(pt)!==-1&&ji.indexOf(cr)!==-1||ji.indexOf(pt)!==-1&&di.indexOf(cr)!==-1||[rt,at].indexOf(pt)!==-1&&(cr===fe||[be,x].indexOf(cr)!==-1&&d[ht+1]===fe)||[be,x].indexOf(pt)!==-1&&cr===fe||pt===fe&&[fe,Le,gt].indexOf(cr)!==-1)return Pr;if([fe,Le,gt,Be,H].indexOf(cr)!==-1)for(var hr=Ee;hr>=0;){var qr=d[hr];if(qr===fe)return Pr;if([Le,gt].indexOf(qr)!==-1)hr--;else break}if([rt,at].indexOf(cr)!==-1)for(var hr=[Be,H].indexOf(pt)!==-1?We:Ee;hr>=0;){var qr=d[hr];if(qr===fe)return Pr;if([Le,gt].indexOf(qr)!==-1)hr--;else break}if(yr===pt&&[yr,ur,Fr,Lr].indexOf(cr)!==-1||[ur,Fr].indexOf(pt)!==-1&&[ur,Kr].indexOf(cr)!==-1||[Kr,Lr].indexOf(pt)!==-1&&cr===Kr||Ki.indexOf(pt)!==-1&&[Qe,at].indexOf(cr)!==-1||Ki.indexOf(cr)!==-1&&pt===rt||di.indexOf(pt)!==-1&&di.indexOf(cr)!==-1||pt===gt&&di.indexOf(cr)!==-1||di.concat(fe).indexOf(pt)!==-1&&cr===be&&Dn.indexOf(b[ht])===-1||di.concat(fe).indexOf(cr)!==-1&&pt===H)return Pr;if(pt===fn&&cr===fn){for(var Ri=w[Ee],Rn=1;Ri>0&&(Ri--,d[Ri]===fn);)Rn++;if(Rn%2!==0)return Pr}return pt===Pt&&cr===Yt?Pr:xn},Me=function(b,d){d||(d={lineBreak:"normal",wordBreak:"normal"});var w=gi(b,d.lineBreak),y=w[0],re=w[1],Ee=w[2];(d.wordBreak==="break-all"||d.wordBreak==="break-word")&&(re=re.map(function(ht){return[fe,ct,Un].indexOf(ht)!==-1?kr:ht}));var We=d.wordBreak==="keep-all"?Ee.map(function(ht,pt){return ht&&b[pt]>=19968&&b[pt]<=40959}):void 0;return[y,re,We]},Ie=function(){function b(d,w,y,re){this.codePoints=d,this.required=w===Qi,this.start=y,this.end=re}return b.prototype.slice=function(){return F.apply(void 0,this.codePoints.slice(this.start,this.end))},b}(),Nt=function(b,d){var w=g(b),y=Me(w,d),re=y[0],Ee=y[1],We=y[2],ht=w.length,pt=0,tr=0;return{next:function(){if(tr>=ht)return{done:!0,value:null};for(var cr=Pr;tr<ht&&(cr=_e(w,Ee,re,++tr,We))===Pr;);if(cr!==Pr||tr===ht){var hr=new Ie(w,cr,pt,tr);return pt=tr,{value:hr,done:!1}}return{done:!0,value:null}}}},Mt=1,Sr=2,nr=4,Dr=8,Hr=10,an=47,jr=92,Rr=9,en=32,wn=34,on=61,Nn=35,Kn=36,fi=37,On=39,Xn=40,Vt=41,Xt=95,er=45,fr=33,Rt=60,Jt=62,ar=64,Nr=91,yn=93,Bn=61,ci=123,ni=63,Ii=125,qn=124,zn=126,xi=128,wi=65533,Ci=42,Ai=43,Bi=44,Xi=58,ri=59,Ti=46,Ha=0,li=8,pn=11,ln=14,Jn=31,Hn=127,hi=-1,qi=48,Li=97,Ua=101,Aa=102,Bo=117,Wn=122,Fn=65,Ni=69,Ji=70,Fa=85,Is=90,za=function(b){return b>=qi&&b<=57},fa=function(b){return b>=55296&&b<=57343},Io=function(b){return za(b)||b>=Fn&&b<=Ji||b>=Li&&b<=Aa},So=function(b){return b>=Li&&b<=Wn},Po=function(b){return b>=Fn&&b<=Is},Os=function(b){return So(b)||Po(b)},po=function(b){return b>=xi},bs=function(b){return b===Hr||b===Rr||b===en},Ps=function(b){return Os(b)||po(b)||b===Xt},$s=function(b){return Ps(b)||za(b)||b===er},To=function(b){return b>=Ha&&b<=li||b===pn||b>=ln&&b<=Jn||b===Hn},Uo=function(b,d){return b!==jr?!1:d!==Hr},ys=function(b,d,w){return b===er?Ps(d)||Uo(d,w):Ps(b)?!0:!!(b===jr&&Uo(b,d))},el=function(b,d,w){return b===Ai||b===er?za(d)?!0:d===Ti&&za(w):za(b===Ti?d:b)},vl=function(b){var d=0,w=1;(b[d]===Ai||b[d]===er)&&(b[d]===er&&(w=-1),d++);for(var y=[];za(b[d]);)y.push(b[d++]);var re=y.length?parseInt(F.apply(void 0,y),10):0;b[d]===Ti&&d++;for(var Ee=[];za(b[d]);)Ee.push(b[d++]);var We=Ee.length,ht=We?parseInt(F.apply(void 0,Ee),10):0;(b[d]===Ni||b[d]===Ua)&&d++;var pt=1;(b[d]===Ai||b[d]===er)&&(b[d]===er&&(pt=-1),d++);for(var tr=[];za(b[d]);)tr.push(b[d++]);var cr=tr.length?parseInt(F.apply(void 0,tr),10):0;return w*(re+ht*Math.pow(10,-We))*Math.pow(10,pt*cr)},ic={type:2},ac={type:3},Ql={type:4},Zs={type:13},Dc={type:8},Kl={type:21},Hl={type:9},Vs={type:10},as={type:11},ii={type:12},la={type:14},ta={type:23},oa={type:1},Da={type:25},so={type:24},Ws={type:26},ws={type:27},xs={type:28},ms={type:29},eo={type:31},Ra={type:32},os=function(){function b(){this._value=[]}return b.prototype.write=function(d){this._value=this._value.concat(g(d))},b.prototype.read=function(){for(var d=[],w=this.consumeToken();w!==Ra;)d.push(w),w=this.consumeToken();return d},b.prototype.consumeToken=function(){var d=this.consumeCodePoint();switch(d){case wn:return this.consumeStringToken(wn);case Nn:var w=this.peekCodePoint(0),y=this.peekCodePoint(1),re=this.peekCodePoint(2);if($s(w)||Uo(y,re)){var Ee=ys(w,y,re)?Sr:Mt,We=this.consumeName();return{type:5,value:We,flags:Ee}}break;case Kn:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),Zs;break;case On:return this.consumeStringToken(On);case Xn:return ic;case Vt:return ac;case Ci:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),la;break;case Ai:if(el(d,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(d),this.consumeNumericToken();break;case Bi:return Ql;case er:var ht=d,pt=this.peekCodePoint(0),tr=this.peekCodePoint(1);if(el(ht,pt,tr))return this.reconsumeCodePoint(d),this.consumeNumericToken();if(ys(ht,pt,tr))return this.reconsumeCodePoint(d),this.consumeIdentLikeToken();if(pt===er&&tr===Jt)return this.consumeCodePoint(),this.consumeCodePoint(),so;break;case Ti:if(el(d,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(d),this.consumeNumericToken();break;case an:if(this.peekCodePoint(0)===Ci)for(this.consumeCodePoint();;){var cr=this.consumeCodePoint();if(cr===Ci&&(cr=this.consumeCodePoint(),cr===an))return this.consumeToken();if(cr===hi)return this.consumeToken()}break;case Xi:return Ws;case ri:return ws;case Rt:if(this.peekCodePoint(0)===fr&&this.peekCodePoint(1)===er&&this.peekCodePoint(2)===er)return this.consumeCodePoint(),this.consumeCodePoint(),Da;break;case ar:var hr=this.peekCodePoint(0),qr=this.peekCodePoint(1),Ri=this.peekCodePoint(2);if(ys(hr,qr,Ri)){var We=this.consumeName();return{type:7,value:We}}break;case Nr:return xs;case jr:if(Uo(d,this.peekCodePoint(0)))return this.reconsumeCodePoint(d),this.consumeIdentLikeToken();break;case yn:return ms;case Bn:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),Dc;break;case ci:return as;case Ii:return ii;case Bo:case Fa:var Rn=this.peekCodePoint(0),mi=this.peekCodePoint(1);return Rn===Ai&&(Io(mi)||mi===ni)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(d),this.consumeIdentLikeToken();case qn:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),Hl;if(this.peekCodePoint(0)===qn)return this.consumeCodePoint(),Kl;break;case zn:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),Vs;break;case hi:return Ra}return bs(d)?(this.consumeWhiteSpace(),eo):za(d)?(this.reconsumeCodePoint(d),this.consumeNumericToken()):Ps(d)?(this.reconsumeCodePoint(d),this.consumeIdentLikeToken()):{type:6,value:F(d)}},b.prototype.consumeCodePoint=function(){var d=this._value.shift();return typeof d=="undefined"?-1:d},b.prototype.reconsumeCodePoint=function(d){this._value.unshift(d)},b.prototype.peekCodePoint=function(d){return d>=this._value.length?-1:this._value[d]},b.prototype.consumeUnicodeRangeToken=function(){for(var d=[],w=this.consumeCodePoint();Io(w)&&d.length<6;)d.push(w),w=this.consumeCodePoint();for(var y=!1;w===ni&&d.length<6;)d.push(w),w=this.consumeCodePoint(),y=!0;if(y){var re=parseInt(F.apply(void 0,d.map(function(pt){return pt===ni?qi:pt})),16),Ee=parseInt(F.apply(void 0,d.map(function(pt){return pt===ni?Ji:pt})),16);return{type:30,start:re,end:Ee}}var We=parseInt(F.apply(void 0,d),16);if(this.peekCodePoint(0)===er&&Io(this.peekCodePoint(1))){this.consumeCodePoint(),w=this.consumeCodePoint();for(var ht=[];Io(w)&&ht.length<6;)ht.push(w),w=this.consumeCodePoint();var Ee=parseInt(F.apply(void 0,ht),16);return{type:30,start:We,end:Ee}}else return{type:30,start:We,end:We}},b.prototype.consumeIdentLikeToken=function(){var d=this.consumeName();return d.toLowerCase()==="url"&&this.peekCodePoint(0)===Xn?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Xn?(this.consumeCodePoint(),{type:19,value:d}):{type:20,value:d}},b.prototype.consumeUrlToken=function(){var d=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===hi)return{type:22,value:""};var w=this.peekCodePoint(0);if(w===On||w===wn){var y=this.consumeStringToken(this.consumeCodePoint());return y.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===hi||this.peekCodePoint(0)===Vt)?(this.consumeCodePoint(),{type:22,value:y.value}):(this.consumeBadUrlRemnants(),ta)}for(;;){var re=this.consumeCodePoint();if(re===hi||re===Vt)return{type:22,value:F.apply(void 0,d)};if(bs(re))return this.consumeWhiteSpace(),this.peekCodePoint(0)===hi||this.peekCodePoint(0)===Vt?(this.consumeCodePoint(),{type:22,value:F.apply(void 0,d)}):(this.consumeBadUrlRemnants(),ta);if(re===wn||re===On||re===Xn||To(re))return this.consumeBadUrlRemnants(),ta;if(re===jr)if(Uo(re,this.peekCodePoint(0)))d.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ta;else d.push(re)}},b.prototype.consumeWhiteSpace=function(){for(;bs(this.peekCodePoint(0));)this.consumeCodePoint()},b.prototype.consumeBadUrlRemnants=function(){for(;;){var d=this.consumeCodePoint();if(d===Vt||d===hi)return;Uo(d,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},b.prototype.consumeStringSlice=function(d){for(var w=5e4,y="";d>0;){var re=Math.min(w,d);y+=F.apply(void 0,this._value.splice(0,re)),d-=re}return this._value.shift(),y},b.prototype.consumeStringToken=function(d){var w="",y=0;do{var re=this._value[y];if(re===hi||re===void 0||re===d)return w+=this.consumeStringSlice(y),{type:0,value:w};if(re===Hr)return this._value.splice(0,y),oa;if(re===jr){var Ee=this._value[y+1];Ee!==hi&&Ee!==void 0&&(Ee===Hr?(w+=this.consumeStringSlice(y),y=-1,this._value.shift()):Uo(re,Ee)&&(w+=this.consumeStringSlice(y),w+=F(this.consumeEscapedCodePoint()),y=-1))}y++}while(!0)},b.prototype.consumeNumber=function(){var d=[],w=nr,y=this.peekCodePoint(0);for((y===Ai||y===er)&&d.push(this.consumeCodePoint());za(this.peekCodePoint(0));)d.push(this.consumeCodePoint());y=this.peekCodePoint(0);var re=this.peekCodePoint(1);if(y===Ti&&za(re))for(d.push(this.consumeCodePoint(),this.consumeCodePoint()),w=Dr;za(this.peekCodePoint(0));)d.push(this.consumeCodePoint());y=this.peekCodePoint(0),re=this.peekCodePoint(1);var Ee=this.peekCodePoint(2);if((y===Ni||y===Ua)&&((re===Ai||re===er)&&za(Ee)||za(re)))for(d.push(this.consumeCodePoint(),this.consumeCodePoint()),w=Dr;za(this.peekCodePoint(0));)d.push(this.consumeCodePoint());return[vl(d),w]},b.prototype.consumeNumericToken=function(){var d=this.consumeNumber(),w=d[0],y=d[1],re=this.peekCodePoint(0),Ee=this.peekCodePoint(1),We=this.peekCodePoint(2);if(ys(re,Ee,We)){var ht=this.consumeName();return{type:15,number:w,flags:y,unit:ht}}return re===fi?(this.consumeCodePoint(),{type:16,number:w,flags:y}):{type:17,number:w,flags:y}},b.prototype.consumeEscapedCodePoint=function(){var d=this.consumeCodePoint();if(Io(d)){for(var w=F(d);Io(this.peekCodePoint(0))&&w.length<6;)w+=F(this.consumeCodePoint());bs(this.peekCodePoint(0))&&this.consumeCodePoint();var y=parseInt(w,16);return y===0||fa(y)||y>1114111?wi:y}return d===hi?wi:d},b.prototype.consumeName=function(){for(var d="";;){var w=this.consumeCodePoint();if($s(w))d+=F(w);else if(Uo(w,this.peekCodePoint(0)))d+=F(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(w),d}},b}(),ss=function(){function b(d){this._tokens=d}return b.create=function(d){var w=new os;return w.write(d),new b(w.read())},b.parseValue=function(d){return b.create(d).parseComponentValue()},b.parseValues=function(d){return b.create(d).parseComponentValues()},b.prototype.parseComponentValue=function(){for(var d=this.consumeToken();d.type===31;)d=this.consumeToken();if(d.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(d);var w=this.consumeComponentValue();do d=this.consumeToken();while(d.type===31);if(d.type===32)return w;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},b.prototype.parseComponentValues=function(){for(var d=[];;){var w=this.consumeComponentValue();if(w.type===32)return d;d.push(w),d.push()}},b.prototype.consumeComponentValue=function(){var d=this.consumeToken();switch(d.type){case 11:case 28:case 2:return this.consumeSimpleBlock(d.type);case 19:return this.consumeFunction(d)}return d},b.prototype.consumeSimpleBlock=function(d){for(var w={type:d,values:[]},y=this.consumeToken();;){if(y.type===32||gA(y,d))return w;this.reconsumeToken(y),w.values.push(this.consumeComponentValue()),y=this.consumeToken()}},b.prototype.consumeFunction=function(d){for(var w={name:d.value,values:[],type:18};;){var y=this.consumeToken();if(y.type===32||y.type===3)return w;this.reconsumeToken(y),w.values.push(this.consumeComponentValue())}},b.prototype.consumeToken=function(){var d=this._tokens.shift();return typeof d=="undefined"?Ra:d},b.prototype.reconsumeToken=function(d){this._tokens.unshift(d)},b}(),Fs=function(b){return b.type===15},Go=function(b){return b.type===17},Fo=function(b){return b.type===20},pA=function(b){return b.type===0},tu=function(b,d){return Fo(b)&&b.value===d},Ac=function(b){return b.type!==31},mA=function(b){return b.type!==31&&b.type!==4},ll=function(b){var d=[],w=[];return b.forEach(function(y){if(y.type===4){if(w.length===0)throw new Error("Error parsing function args, zero tokens for arg");d.push(w),w=[];return}y.type!==31&&w.push(y)}),w.length&&d.push(w),d},gA=function(b,d){return d===11&&b.type===12||d===28&&b.type===29?!0:d===2&&b.type===3},tl=function(b){return b.type===17||b.type===15},gs=function(b){return b.type===16||tl(b)},qc=function(b){return b.length>1?[b[0],b[1]]:[b[0]]},Ts={type:17,number:0,flags:nr},OA={type:16,number:50,flags:nr},uc={type:16,number:100,flags:nr},jl=function(b,d,w){var y=b[0],re=b[1];return[to(y,d),to(typeof re!="undefined"?re:y,w)]},to=function(b,d){if(b.type===16)return b.number/100*d;if(Fs(b))switch(b.unit){case"rem":case"em":return 16*b.number;case"px":default:return b.number}return b.number},Gs="deg",vA="grad",Su="rad",ls="turn",Ca={name:"angle",parse:function(b,d){if(d.type===15)switch(d.unit){case Gs:return Math.PI*d.number/180;case vA:return Math.PI/200*d.number;case Su:return d.number;case ls:return Math.PI*2*d.number}throw new Error("Unsupported angle type")}},ya=function(b){return b.type===15&&(b.unit===Gs||b.unit===vA||b.unit===Su||b.unit===ls)},ts=function(b){var d=b.filter(Fo).map(function(w){return w.value}).join(" ");switch(d){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Ts,Ts];case"to top":case"bottom":return go(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Ts,uc];case"to right":case"left":return go(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[uc,uc];case"to bottom":case"top":return go(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[uc,Ts];case"to left":case"right":return go(270)}return 0},go=function(b){return Math.PI*b/180},jo={name:"color",parse:function(b,d){if(d.type===18){var w=xl[d.name];if(typeof w=="undefined")throw new Error('Attempting to parse an unsupported color function "'+d.name+'"');return w(b,d.values)}if(d.type===5){if(d.value.length===3){var y=d.value.substring(0,1),re=d.value.substring(1,2),Ee=d.value.substring(2,3);return Cs(parseInt(y+y,16),parseInt(re+re,16),parseInt(Ee+Ee,16),1)}if(d.value.length===4){var y=d.value.substring(0,1),re=d.value.substring(1,2),Ee=d.value.substring(2,3),We=d.value.substring(3,4);return Cs(parseInt(y+y,16),parseInt(re+re,16),parseInt(Ee+Ee,16),parseInt(We+We,16)/255)}if(d.value.length===6){var y=d.value.substring(0,2),re=d.value.substring(2,4),Ee=d.value.substring(4,6);return Cs(parseInt(y,16),parseInt(re,16),parseInt(Ee,16),1)}if(d.value.length===8){var y=d.value.substring(0,2),re=d.value.substring(2,4),Ee=d.value.substring(4,6),We=d.value.substring(6,8);return Cs(parseInt(y,16),parseInt(re,16),parseInt(Ee,16),parseInt(We,16)/255)}}if(d.type===20){var ht=rl[d.value.toUpperCase()];if(typeof ht!="undefined")return ht}return rl.TRANSPARENT}},zo=function(b){return(255&b)===0},No=function(b){var d=255&b,w=255&b>>8,y=255&b>>16,re=255&b>>24;return d<255?"rgba("+re+","+y+","+w+","+d/255+")":"rgb("+re+","+y+","+w+")"},Cs=function(b,d,w,y){return(b<<24|d<<16|w<<8|Math.round(y*255)<<0)>>>0},oc=function(b,d){if(b.type===17)return b.number;if(b.type===16){var w=d===3?1:255;return d===3?b.number/100*w:Math.round(b.number/100*w)}return 0},Vc=function(b,d){var w=d.filter(mA);if(w.length===3){var y=w.map(oc),re=y[0],Ee=y[1],We=y[2];return Cs(re,Ee,We,1)}if(w.length===4){var ht=w.map(oc),re=ht[0],Ee=ht[1],We=ht[2],pt=ht[3];return Cs(re,Ee,We,pt)}return 0};function Xs(b,d,w){return w<0&&(w+=1),w>=1&&(w-=1),w<1/6?(d-b)*w*6+b:w<1/2?d:w<2/3?(d-b)*6*(2/3-w)+b:b}var bA=function(b,d){var w=d.filter(mA),y=w[0],re=w[1],Ee=w[2],We=w[3],ht=(y.type===17?go(y.number):Ca.parse(b,y))/(Math.PI*2),pt=gs(re)?re.number/100:0,tr=gs(Ee)?Ee.number/100:0,cr=typeof We!="undefined"&&gs(We)?to(We,1):1;if(pt===0)return Cs(tr*255,tr*255,tr*255,1);var hr=tr<=.5?tr*(pt+1):tr+pt-tr*pt,qr=tr*2-hr,Ri=Xs(qr,hr,ht+1/3),Rn=Xs(qr,hr,ht),mi=Xs(qr,hr,ht-1/3);return Cs(Ri*255,Rn*255,mi*255,cr)},xl={hsl:bA,hsla:bA,rgb:Vc,rgba:Vc},eA=function(b,d){return jo.parse(b,ss.create(d).parseComponentValue())},rl={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},Id={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(b,d){return d.map(function(w){if(Fo(w))switch(w.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ru={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},jA=function(b,d){var w=jo.parse(b,d[0]),y=d[1];return y&&gs(y)?{color:w,stop:y}:{color:w,stop:null}},cf=function(b,d){var w=b[0],y=b[b.length-1];w.stop===null&&(w.stop=Ts),y.stop===null&&(y.stop=uc);for(var re=[],Ee=0,We=0;We<b.length;We++){var ht=b[We].stop;if(ht!==null){var pt=to(ht,d);pt>Ee?re.push(pt):re.push(Ee),Ee=pt}else re.push(null)}for(var tr=null,We=0;We<re.length;We++){var cr=re[We];if(cr===null)tr===null&&(tr=We);else if(tr!==null){for(var hr=We-tr,qr=re[tr-1],Ri=(cr-qr)/(hr+1),Rn=1;Rn<=hr;Rn++)re[tr+Rn-1]=Ri*Rn;tr=null}}return b.map(function(mi,Va){var ea=mi.color;return{color:ea,stop:Math.max(Math.min(1,re[Va]/d),0)}})},Wc=function(b,d,w){var y=d/2,re=w/2,Ee=to(b[0],d)-y,We=re-to(b[1],w);return(Math.atan2(We,Ee)+Math.PI*2)%(Math.PI*2)},Yu=function(b,d,w){var y=typeof b=="number"?b:Wc(b,d,w),re=Math.abs(d*Math.sin(y))+Math.abs(w*Math.cos(y)),Ee=d/2,We=w/2,ht=re/2,pt=Math.sin(y-Math.PI/2)*ht,tr=Math.cos(y-Math.PI/2)*ht;return[re,Ee-tr,Ee+tr,We-pt,We+pt]},Nc=function(b,d){return Math.sqrt(b*b+d*d)},Fd=function(b,d,w,y,re){var Ee=[[0,0],[0,d],[b,0],[b,d]];return Ee.reduce(function(We,ht){var pt=ht[0],tr=ht[1],cr=Nc(w-pt,y-tr);return(re?cr<We.optimumDistance:cr>We.optimumDistance)?{optimumCorner:ht,optimumDistance:cr}:We},{optimumDistance:re?1/0:-1/0,optimumCorner:null}).optimumCorner},Xo=function(b,d,w,y,re){var Ee=0,We=0;switch(b.size){case 0:b.shape===0?Ee=We=Math.min(Math.abs(d),Math.abs(d-y),Math.abs(w),Math.abs(w-re)):b.shape===1&&(Ee=Math.min(Math.abs(d),Math.abs(d-y)),We=Math.min(Math.abs(w),Math.abs(w-re)));break;case 2:if(b.shape===0)Ee=We=Math.min(Nc(d,w),Nc(d,w-re),Nc(d-y,w),Nc(d-y,w-re));else if(b.shape===1){var ht=Math.min(Math.abs(w),Math.abs(w-re))/Math.min(Math.abs(d),Math.abs(d-y)),pt=Fd(y,re,d,w,!0),tr=pt[0],cr=pt[1];Ee=Nc(tr-d,(cr-w)/ht),We=ht*Ee}break;case 1:b.shape===0?Ee=We=Math.max(Math.abs(d),Math.abs(d-y),Math.abs(w),Math.abs(w-re)):b.shape===1&&(Ee=Math.max(Math.abs(d),Math.abs(d-y)),We=Math.max(Math.abs(w),Math.abs(w-re)));break;case 3:if(b.shape===0)Ee=We=Math.max(Nc(d,w),Nc(d,w-re),Nc(d-y,w),Nc(d-y,w-re));else if(b.shape===1){var ht=Math.max(Math.abs(w),Math.abs(w-re))/Math.max(Math.abs(d),Math.abs(d-y)),hr=Fd(y,re,d,w,!1),tr=hr[0],cr=hr[1];Ee=Nc(tr-d,(cr-w)/ht),We=ht*Ee}break}return Array.isArray(b.size)&&(Ee=to(b.size[0],y),We=b.size.length===2?to(b.size[1],re):Ee),[Ee,We]},Oo=function(b,d){var w=go(180),y=[];return ll(d).forEach(function(re,Ee){if(Ee===0){var We=re[0];if(We.type===20&&We.value==="to"){w=ts(re);return}else if(ya(We)){w=Ca.parse(b,We);return}}var ht=jA(b,re);y.push(ht)}),{angle:w,stops:y,type:1}},Jo=function(b,d){var w=go(180),y=[];return ll(d).forEach(function(re,Ee){if(Ee===0){var We=re[0];if(We.type===20&&["top","left","right","bottom"].indexOf(We.value)!==-1){w=ts(re);return}else if(ya(We)){w=(Ca.parse(b,We)+go(270))%go(360);return}}var ht=jA(b,re);y.push(ht)}),{angle:w,stops:y,type:1}},yc=function(b,d){var w=go(180),y=[],re=1,Ee=0,We=3,ht=[];return ll(d).forEach(function(pt,tr){var cr=pt[0];if(tr===0){if(Fo(cr)&&cr.value==="linear"){re=1;return}else if(Fo(cr)&&cr.value==="radial"){re=2;return}}if(cr.type===18){if(cr.name==="from"){var hr=jo.parse(b,cr.values[0]);y.push({stop:Ts,color:hr})}else if(cr.name==="to"){var hr=jo.parse(b,cr.values[0]);y.push({stop:uc,color:hr})}else if(cr.name==="color-stop"){var qr=cr.values.filter(mA);if(qr.length===2){var hr=jo.parse(b,qr[1]),Ri=qr[0];Go(Ri)&&y.push({stop:{type:16,number:Ri.number*100,flags:Ri.flags},color:hr})}}}}),re===1?{angle:(w+go(180))%go(360),stops:y,type:re}:{size:We,shape:Ee,stops:y,position:ht,type:re}},zl="closest-side",qu="farthest-side",yA="closest-corner",zA="farthest-corner",Md="circle",Ld="ellipse",$A="cover",ZA="contain",Mo=function(b,d){var w=0,y=3,re=[],Ee=[];return ll(d).forEach(function(We,ht){var pt=!0;if(ht===0){var tr=!1;pt=We.reduce(function(hr,qr){if(tr)if(Fo(qr))switch(qr.value){case"center":return Ee.push(OA),hr;case"top":case"left":return Ee.push(Ts),hr;case"right":case"bottom":return Ee.push(uc),hr}else(gs(qr)||tl(qr))&&Ee.push(qr);else if(Fo(qr))switch(qr.value){case Md:return w=0,!1;case Ld:return w=1,!1;case"at":return tr=!0,!1;case zl:return y=0,!1;case $A:case qu:return y=1,!1;case ZA:case yA:return y=2,!1;case zA:return y=3,!1}else if(tl(qr)||gs(qr))return Array.isArray(y)||(y=[]),y.push(qr),!1;return hr},pt)}if(pt){var cr=jA(b,We);re.push(cr)}}),{size:y,shape:w,stops:re,position:Ee,type:2}},wA=function(b,d){var w=0,y=3,re=[],Ee=[];return ll(d).forEach(function(We,ht){var pt=!0;if(ht===0?pt=We.reduce(function(cr,hr){if(Fo(hr))switch(hr.value){case"center":return Ee.push(OA),!1;case"top":case"left":return Ee.push(Ts),!1;case"right":case"bottom":return Ee.push(uc),!1}else if(gs(hr)||tl(hr))return Ee.push(hr),!1;return cr},pt):ht===1&&(pt=We.reduce(function(cr,hr){if(Fo(hr))switch(hr.value){case Md:return w=0,!1;case Ld:return w=1,!1;case ZA:case zl:return y=0,!1;case qu:return y=1,!1;case yA:return y=2,!1;case $A:case zA:return y=3,!1}else if(tl(hr)||gs(hr))return Array.isArray(y)||(y=[]),y.push(hr),!1;return cr},pt)),pt){var tr=jA(b,We);re.push(tr)}}),{size:y,shape:w,stops:re,position:Ee,type:2}},VA=function(b){return b.type===1},y0=function(b){return b.type===2},nu={name:"image",parse:function(b,d){if(d.type===22){var w={url:d.value,type:0};return b.cache.addImage(d.value),w}if(d.type===18){var y=Af[d.name];if(typeof y=="undefined")throw new Error('Attempting to parse an unsupported image function "'+d.name+'"');return y(b,d.values)}throw new Error("Unsupported image type "+d.type)}};function xh(b){return!(b.type===20&&b.value==="none")&&(b.type!==18||!!Af[b.name])}var Af={"linear-gradient":Oo,"-moz-linear-gradient":Jo,"-ms-linear-gradient":Jo,"-o-linear-gradient":Jo,"-webkit-linear-gradient":Jo,"radial-gradient":Mo,"-moz-radial-gradient":wA,"-ms-radial-gradient":wA,"-o-radial-gradient":wA,"-webkit-radial-gradient":wA,"-webkit-gradient":yc},kd={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(b,d){if(d.length===0)return[];var w=d[0];return w.type===20&&w.value==="none"?[]:d.filter(function(y){return mA(y)&&xh(y)}).map(function(y){return nu.parse(b,y)})}},Kf={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(b,d){return d.map(function(w){if(Fo(w))switch(w.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ch={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(b,d){return ll(d).map(function(w){return w.filter(gs)}).map(qc)}},Eu={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(b,d){return ll(d).map(function(w){return w.filter(Fo).map(function(y){return y.value}).join(" ")}).map(uf)}},uf=function(b){switch(b){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}},Cl;(function(b){b.AUTO="auto",b.CONTAIN="contain",b.COVER="cover"})(Cl||(Cl={}));var Bl={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(b,d){return ll(d).map(function(w){return w.filter(Oc)})}},Oc=function(b){return Fo(b)||gs(b)},Pc=function(b){return{name:"border-"+b+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},w0=Pc("top"),_u=Pc("right"),Bh=Pc("bottom"),Iu=Pc("left"),Dd=function(b){return{name:"border-radius-"+b,initialValue:"0 0",prefix:!1,type:1,parse:function(d,w){return qc(w.filter(gs))}}},Vp=Dd("top-left"),iu=Dd("top-right"),tA=Dd("bottom-right"),wc=Dd("bottom-left"),$o=function(b){return{name:"border-"+b+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(d,w){switch(w){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},ed=$o("top"),Hf=$o("right"),jf=$o("bottom"),Tc=$o("left"),td=function(b){return{name:"border-"+b+"-width",initialValue:"0",type:0,prefix:!1,parse:function(d,w){return Fs(w)?w.number:0}}},df=td("top"),rd=td("right"),x0=td("bottom"),C0=td("left"),$l={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},nd={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(b,d){switch(d){case"rtl":return 1;case"ltr":default:return 0}}},B0={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(b,d){return d.filter(Fo).reduce(function(w,y){return w|ue(y.value)},0)}},ue=function(b){switch(b){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},we={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(b,d){switch(d){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Je={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(b,d){return d.type===20&&d.value==="normal"?0:d.type===17||d.type===15?d.number:0}},lt;(function(b){b.NORMAL="normal",b.STRICT="strict"})(lt||(lt={}));var Ct={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(b,d){switch(d){case"strict":return lt.STRICT;case"normal":default:return lt.NORMAL}}},bt={name:"line-height",initialValue:"normal",prefix:!1,type:4},$t=function(b,d){return Fo(b)&&b.value==="normal"?1.2*d:b.type===17?d*b.number:gs(b)?to(b,d):d},zt={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(b,d){return d.type===20&&d.value==="none"?null:nu.parse(b,d)}},Kt={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(b,d){switch(d){case"inside":return 0;case"outside":default:return 1}}},Ar={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(b,d){switch(d){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}}},Er=function(b){return{name:"margin-"+b,initialValue:"0",prefix:!1,type:4}},pr=Er("top"),tn=Er("right"),Vr=Er("bottom"),Yr=Er("left"),Pn={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(b,d){return d.filter(Fo).map(function(w){switch(w.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Cn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(b,d){switch(d){case"break-word":return"break-word";case"normal":default:return"normal"}}},Mn=function(b){return{name:"padding-"+b,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Sn=Mn("top"),$n=Mn("right"),Ui=Mn("bottom"),zi=Mn("left"),pi={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(b,d){switch(d){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},na={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(b,d){switch(d){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},wa={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(b,d){return d.length===1&&tu(d[0],"none")?[]:ll(d).map(function(w){for(var y={color:rl.TRANSPARENT,offsetX:Ts,offsetY:Ts,blur:Ts},re=0,Ee=0;Ee<w.length;Ee++){var We=w[Ee];tl(We)?(re===0?y.offsetX=We:re===1?y.offsetY=We:y.blur=We,re++):y.color=jo.parse(b,We)}return y})}},Yn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(b,d){switch(d){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},bi={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(b,d){if(d.type===20&&d.value==="none")return null;if(d.type===18){var w=oi[d.name];if(typeof w=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+d.name+'"');return w(d.values)}return null}},ai=function(b){var d=b.filter(function(w){return w.type===17}).map(function(w){return w.number});return d.length===6?d:null},Tn=function(b){var d=b.filter(function(pt){return pt.type===17}).map(function(pt){return pt.number}),w=d[0],y=d[1];d[2],d[3];var re=d[4],Ee=d[5];d[6],d[7],d[8],d[9],d[10],d[11];var We=d[12],ht=d[13];return d[14],d[15],d.length===16?[w,y,re,Ee,We,ht]:null},oi={matrix:ai,matrix3d:Tn},Vi={type:16,number:50,flags:nr},Na=[Vi,Vi],pa={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(b,d){var w=d.filter(gs);return w.length!==2?Na:[w[0],w[1]]}},Wi={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(b,d){switch(d){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},_a;(function(b){b.NORMAL="normal",b.BREAK_ALL="break-all",b.KEEP_ALL="keep-all"})(_a||(_a={}));for(var Qa={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(b,d){switch(d){case"break-all":return _a.BREAK_ALL;case"keep-all":return _a.KEEP_ALL;case"normal":default:return _a.NORMAL}}},Yo={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(b,d){if(d.type===20)return{auto:!0,order:0};if(Go(d))return{auto:!1,order:d.number};throw new Error("Invalid z-index number parsed")}},lo={name:"time",parse:function(b,d){if(d.type===15)switch(d.unit.toLowerCase()){case"s":return 1e3*d.number;case"ms":return d.number}throw new Error("Unsupported time type")}},vs={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(b,d){return Go(d)?d.number:1}},cs={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ma={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(b,d){return d.filter(Fo).map(function(w){switch(w.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(w){return w!==0})}},al={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(b,d){var w=[],y=[];return d.forEach(function(re){switch(re.type){case 20:case 0:w.push(re.value);break;case 17:w.push(re.number.toString());break;case 4:y.push(w.join(" ")),w.length=0;break}}),w.length&&y.push(w.join(" ")),y.map(function(re){return re.indexOf(" ")===-1?re:"'"+re+"'"})}},mo={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},qo={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(b,d){if(Go(d))return d.number;if(Fo(d))switch(d.value){case"bold":return 700;case"normal":default:return 400}return 400}},rs={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(b,d){return d.filter(Fo).map(function(w){return w.value})}},xc={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(b,d){switch(d){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},si=function(b,d){return(b&d)!==0},Gi={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(b,d){if(d.length===0)return[];var w=d[0];return w.type===20&&w.value==="none"?[]:d}},$i={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(b,d){if(d.length===0)return null;var w=d[0];if(w.type===20&&w.value==="none")return null;for(var y=[],re=d.filter(Ac),Ee=0;Ee<re.length;Ee++){var We=re[Ee],ht=re[Ee+1];if(We.type===20){var pt=ht&&Go(ht)?ht.number:1;y.push({counter:We.value,increment:pt})}}return y}},Oi={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(b,d){if(d.length===0)return[];for(var w=[],y=d.filter(Ac),re=0;re<y.length;re++){var Ee=y[re],We=y[re+1];if(Fo(Ee)&&Ee.value!=="none"){var ht=We&&Go(We)?We.number:0;w.push({counter:Ee.value,reset:ht})}}return w}},vo={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(b,d){return d.filter(Fs).map(function(w){return lo.parse(b,w)})}},Pi={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(b,d){if(d.length===0)return null;var w=d[0];if(w.type===20&&w.value==="none")return null;var y=[],re=d.filter(pA);if(re.length%2!==0)return null;for(var Ee=0;Ee<re.length;Ee+=2){var We=re[Ee].value,ht=re[Ee+1].value;y.push({open:We,close:ht})}return y}},ca=function(b,d,w){if(!b)return"";var y=b[Math.min(d,b.length-1)];return y?w?y.open:y.close:""},ja={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(b,d){return d.length===1&&tu(d[0],"none")?[]:ll(d).map(function(w){for(var y={color:255,offsetX:Ts,offsetY:Ts,blur:Ts,spread:Ts,inset:!1},re=0,Ee=0;Ee<w.length;Ee++){var We=w[Ee];tu(We,"inset")?y.inset=!0:tl(We)?(re===0?y.offsetX=We:re===1?y.offsetY=We:re===2?y.blur=We:y.spread=We,re++):y.color=jo.parse(b,We)}return y})}},$a={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(b,d){var w=[0,1,2],y=[];return d.filter(Fo).forEach(function(re){switch(re.value){case"stroke":y.push(1);break;case"fill":y.push(0);break;case"markers":y.push(2);break}}),w.forEach(function(re){y.indexOf(re)===-1&&y.push(re)}),y}},Ml={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},nl={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(b,d){return Fs(d)?d.number:0}},Gc=function(){function b(d,w){var y,re;this.animationDuration=jn(d,vo,w.animationDuration),this.backgroundClip=jn(d,Id,w.backgroundClip),this.backgroundColor=jn(d,ru,w.backgroundColor),this.backgroundImage=jn(d,kd,w.backgroundImage),this.backgroundOrigin=jn(d,Kf,w.backgroundOrigin),this.backgroundPosition=jn(d,Ch,w.backgroundPosition),this.backgroundRepeat=jn(d,Eu,w.backgroundRepeat),this.backgroundSize=jn(d,Bl,w.backgroundSize),this.borderTopColor=jn(d,w0,w.borderTopColor),this.borderRightColor=jn(d,_u,w.borderRightColor),this.borderBottomColor=jn(d,Bh,w.borderBottomColor),this.borderLeftColor=jn(d,Iu,w.borderLeftColor),this.borderTopLeftRadius=jn(d,Vp,w.borderTopLeftRadius),this.borderTopRightRadius=jn(d,iu,w.borderTopRightRadius),this.borderBottomRightRadius=jn(d,tA,w.borderBottomRightRadius),this.borderBottomLeftRadius=jn(d,wc,w.borderBottomLeftRadius),this.borderTopStyle=jn(d,ed,w.borderTopStyle),this.borderRightStyle=jn(d,Hf,w.borderRightStyle),this.borderBottomStyle=jn(d,jf,w.borderBottomStyle),this.borderLeftStyle=jn(d,Tc,w.borderLeftStyle),this.borderTopWidth=jn(d,df,w.borderTopWidth),this.borderRightWidth=jn(d,rd,w.borderRightWidth),this.borderBottomWidth=jn(d,x0,w.borderBottomWidth),this.borderLeftWidth=jn(d,C0,w.borderLeftWidth),this.boxShadow=jn(d,ja,w.boxShadow),this.color=jn(d,$l,w.color),this.direction=jn(d,nd,w.direction),this.display=jn(d,B0,w.display),this.float=jn(d,we,w.cssFloat),this.fontFamily=jn(d,al,w.fontFamily),this.fontSize=jn(d,mo,w.fontSize),this.fontStyle=jn(d,xc,w.fontStyle),this.fontVariant=jn(d,rs,w.fontVariant),this.fontWeight=jn(d,qo,w.fontWeight),this.letterSpacing=jn(d,Je,w.letterSpacing),this.lineBreak=jn(d,Ct,w.lineBreak),this.lineHeight=jn(d,bt,w.lineHeight),this.listStyleImage=jn(d,zt,w.listStyleImage),this.listStylePosition=jn(d,Kt,w.listStylePosition),this.listStyleType=jn(d,Ar,w.listStyleType),this.marginTop=jn(d,pr,w.marginTop),this.marginRight=jn(d,tn,w.marginRight),this.marginBottom=jn(d,Vr,w.marginBottom),this.marginLeft=jn(d,Yr,w.marginLeft),this.opacity=jn(d,vs,w.opacity);var Ee=jn(d,Pn,w.overflow);this.overflowX=Ee[0],this.overflowY=Ee[Ee.length>1?1:0],this.overflowWrap=jn(d,Cn,w.overflowWrap),this.paddingTop=jn(d,Sn,w.paddingTop),this.paddingRight=jn(d,$n,w.paddingRight),this.paddingBottom=jn(d,Ui,w.paddingBottom),this.paddingLeft=jn(d,zi,w.paddingLeft),this.paintOrder=jn(d,$a,w.paintOrder),this.position=jn(d,na,w.position),this.textAlign=jn(d,pi,w.textAlign),this.textDecorationColor=jn(d,cs,(y=w.textDecorationColor)!==null&&y!==void 0?y:w.color),this.textDecorationLine=jn(d,ma,(re=w.textDecorationLine)!==null&&re!==void 0?re:w.textDecoration),this.textShadow=jn(d,wa,w.textShadow),this.textTransform=jn(d,Yn,w.textTransform),this.transform=jn(d,bi,w.transform),this.transformOrigin=jn(d,pa,w.transformOrigin),this.visibility=jn(d,Wi,w.visibility),this.webkitTextStrokeColor=jn(d,Ml,w.webkitTextStrokeColor),this.webkitTextStrokeWidth=jn(d,nl,w.webkitTextStrokeWidth),this.wordBreak=jn(d,Qa,w.wordBreak),this.zIndex=jn(d,Yo,w.zIndex)}return b.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},b.prototype.isTransparent=function(){return zo(this.backgroundColor)},b.prototype.isTransformed=function(){return this.transform!==null},b.prototype.isPositioned=function(){return this.position!==0},b.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},b.prototype.isFloating=function(){return this.float!==0},b.prototype.isInlineLevel=function(){return si(this.display,4)||si(this.display,33554432)||si(this.display,268435456)||si(this.display,536870912)||si(this.display,67108864)||si(this.display,134217728)},b}(),Us=function(){function b(d,w){this.content=jn(d,Gi,w.content),this.quotes=jn(d,Pi,w.quotes)}return b}(),Uc=function(){function b(d,w){this.counterIncrement=jn(d,$i,w.counterIncrement),this.counterReset=jn(d,Oi,w.counterReset)}return b}(),jn=function(b,d,w){var y=new os,re=w!==null&&typeof w!="undefined"?w.toString():d.initialValue;y.write(re);var Ee=new ss(y.read());switch(d.type){case 2:var We=Ee.parseComponentValue();return d.parse(b,Fo(We)?We.value:d.initialValue);case 0:return d.parse(b,Ee.parseComponentValue());case 1:return d.parse(b,Ee.parseComponentValues());case 4:return Ee.parseComponentValue();case 3:switch(d.format){case"angle":return Ca.parse(b,Ee.parseComponentValue());case"color":return jo.parse(b,Ee.parseComponentValue());case"image":return nu.parse(b,Ee.parseComponentValue());case"length":var ht=Ee.parseComponentValue();return tl(ht)?ht:Ts;case"length-percentage":var pt=Ee.parseComponentValue();return gs(pt)?pt:Ts;case"time":return lo.parse(b,Ee.parseComponentValue())}break}},dc="data-html2canvas-debug",Fu=function(b){var d=b.getAttribute(dc);switch(d){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},co=function(b,d){var w=Fu(b);return w===1||d===w},mn=function(){function b(d,w){if(this.context=d,this.textNodes=[],this.elements=[],this.flags=0,co(w,3))debugger;this.styles=new Gc(d,window.getComputedStyle(w,null)),k0(w)&&(this.styles.animationDuration.some(function(y){return y>0})&&(w.style.animationDuration="0s"),this.styles.transform!==null&&(w.style.transform="none")),this.bounds=W(this.context,w),co(w,4)&&(this.flags|=16)}return b}(),Lo="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",cl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",As=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),ia=0;ia<cl.length;ia++)As[cl.charCodeAt(ia)]=ia;for(var Sl=function(b){var d=b.length*.75,w=b.length,y,re=0,Ee,We,ht,pt;b[b.length-1]==="="&&(d--,b[b.length-2]==="="&&d--);var tr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(d):new Array(d),cr=Array.isArray(tr)?tr:new Uint8Array(tr);for(y=0;y<w;y+=4)Ee=As[b.charCodeAt(y)],We=As[b.charCodeAt(y+1)],ht=As[b.charCodeAt(y+2)],pt=As[b.charCodeAt(y+3)],cr[re++]=Ee<<2|We>>4,cr[re++]=(We&15)<<4|ht>>2,cr[re++]=(ht&3)<<6|pt&63;return tr},Zl=function(b){for(var d=b.length,w=[],y=0;y<d;y+=2)w.push(b[y+1]<<8|b[y]);return w},Rc=function(b){for(var d=b.length,w=[],y=0;y<d;y+=4)w.push(b[y+3]<<24|b[y+2]<<16|b[y+1]<<8|b[y]);return w},Cc=5,El=11,Al=2,au=El-Cc,Ll=65536>>Cc,Rs=1<<Cc,_l=Rs-1,il=1024>>Cc,Ms=Ll+il,Bc=Ms,xA=32,PA=Bc+xA,CA=65536>>El,ff=1<<au,zf=ff-1,ao=function(b,d,w){return b.slice?b.slice(d,w):new Uint16Array(Array.prototype.slice.call(b,d,w))},Zo=function(b,d,w){return b.slice?b.slice(d,w):new Uint32Array(Array.prototype.slice.call(b,d,w))},Vl=function(b,d){var w=Sl(b),y=Array.isArray(w)?Rc(w):new Uint32Array(w),re=Array.isArray(w)?Zl(w):new Uint16Array(w),Ee=24,We=ao(re,Ee/2,y[4]/2),ht=y[5]===2?ao(re,(Ee+y[4])/2):Zo(y,Math.ceil((Ee+y[4])/4));return new us(y[0],y[1],y[2],y[3],We,ht)},us=function(){function b(d,w,y,re,Ee,We){this.initialValue=d,this.errorValue=w,this.highStart=y,this.highValueIndex=re,this.index=Ee,this.data=We}return b.prototype.get=function(d){var w;if(d>=0){if(d<55296||d>56319&&d<=65535)return w=this.index[d>>Cc],w=(w<<Al)+(d&_l),this.data[w];if(d<=65535)return w=this.index[Ll+(d-55296>>Cc)],w=(w<<Al)+(d&_l),this.data[w];if(d<this.highStart)return w=PA-CA+(d>>El),w=this.index[w],w+=d>>Cc&zf,w=this.index[w],w=(w<<Al)+(d&_l),this.data[w];if(d<=1114111)return this.data[this.highValueIndex]}return this.errorValue},b}(),kl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wl=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Js=0;Js<kl.length;Js++)Wl[kl.charCodeAt(Js)]=Js;var BA=1,hf=2,pf=3,id=4,Ao=5,Bs=7,SA=8,EA=9,Gl=10,$f=11,TA=12,Zf=13,Vf=14,ad=15,Nd=function(b){for(var d=[],w=0,y=b.length;w<y;){var re=b.charCodeAt(w++);if(re>=55296&&re<=56319&&w<y){var Ee=b.charCodeAt(w++);(Ee&64512)===56320?d.push(((re&1023)<<10)+(Ee&1023)+65536):(d.push(re),w--)}else d.push(re)}return d},Od=function(){for(var b=[],d=0;d<arguments.length;d++)b[d]=arguments[d];if(String.fromCodePoint)return String.fromCodePoint.apply(String,b);var w=b.length;if(!w)return"";for(var y=[],re=-1,Ee="";++re<w;){var We=b[re];We<=65535?y.push(We):(We-=65536,y.push((We>>10)+55296,We%1024+56320)),(re+1===w||y.length>16384)&&(Ee+=String.fromCharCode.apply(String,y),y.length=0)}return Ee},od=Vl(Lo),zr="\xD7",Pd="\xF7",mf=function(b){return od.get(b)},Wf=function(b,d,w){var y=w-2,re=d[y],Ee=d[w-1],We=d[w];if(Ee===hf&&We===pf)return zr;if(Ee===hf||Ee===pf||Ee===id||We===hf||We===pf||We===id)return Pd;if(Ee===SA&&[SA,EA,$f,TA].indexOf(We)!==-1||(Ee===$f||Ee===EA)&&(We===EA||We===Gl)||(Ee===TA||Ee===Gl)&&We===Gl||We===Zf||We===Ao||We===Bs||Ee===BA)return zr;if(Ee===Zf&&We===Vf){for(;re===Ao;)re=d[--y];if(re===Vf)return zr}if(Ee===ad&&We===ad){for(var ht=0;re===ad;)ht++,re=d[--y];if(ht%2===0)return zr}return Pd},gf=function(b){var d=Nd(b),w=d.length,y=0,re=0,Ee=d.map(mf);return{next:function(){if(y>=w)return{done:!0,value:null};for(var We=zr;y<w&&(We=Wf(d,Ee,++y))===zr;);if(We!==zr||y===w){var ht=Od.apply(null,d.slice(re,y));return re=y,{value:ht,done:!1}}return{done:!0,value:null}}}},Sh=function(b){for(var d=gf(b),w=[],y;!(y=d.next()).done;)y.value&&w.push(y.value.slice());return w},Eh=function(b){var d=123;if(b.createRange){var w=b.createRange();if(w.getBoundingClientRect){var y=b.createElement("boundtest");y.style.height=d+"px",y.style.display="block",b.body.appendChild(y),w.selectNode(y);var re=w.getBoundingClientRect(),Ee=Math.round(re.height);if(b.body.removeChild(y),Ee===d)return!0}}return!1},Gf=function(b){var d=b.createElement("boundtest");d.style.width="50px",d.style.display="block",d.style.fontSize="12px",d.style.letterSpacing="0px",d.style.wordSpacing="0px",b.body.appendChild(d);var w=b.createRange();d.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var y=d.firstChild,re=g(y.data).map(function(pt){return F(pt)}),Ee=0,We={},ht=re.every(function(pt,tr){w.setStart(y,Ee),w.setEnd(y,Ee+pt.length);var cr=w.getBoundingClientRect();Ee+=pt.length;var hr=cr.x>We.x||cr.y>We.y;return We=cr,tr===0?!0:hr});return b.body.removeChild(d),ht},bl=function(){return typeof new Image().crossOrigin!="undefined"},Mu=function(){return typeof new XMLHttpRequest().responseType=="string"},vf=function(b){var d=new Image,w=b.createElement("canvas"),y=w.getContext("2d");if(!y)return!1;d.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{y.drawImage(d,0,0),w.toDataURL()}catch(re){return!1}return!0},sd=function(b){return b[0]===0&&b[1]===255&&b[2]===0&&b[3]===255},bf=function(b){var d=b.createElement("canvas"),w=100;d.width=w,d.height=w;var y=d.getContext("2d");if(!y)return Promise.reject(!1);y.fillStyle="rgb(0, 255, 0)",y.fillRect(0,0,w,w);var re=new Image,Ee=d.toDataURL();re.src=Ee;var We=UA(w,w,0,0,re);return y.fillStyle="red",y.fillRect(0,0,w,w),ou(We).then(function(ht){y.drawImage(ht,0,0);var pt=y.getImageData(0,0,w,w).data;y.fillStyle="red",y.fillRect(0,0,w,w);var tr=b.createElement("div");return tr.style.backgroundImage="url("+Ee+")",tr.style.height=w+"px",sd(pt)?ou(UA(w,w,0,0,tr)):Promise.reject(!1)}).then(function(ht){return y.drawImage(ht,0,0),sd(y.getImageData(0,0,w,w).data)}).catch(function(){return!1})},UA=function(b,d,w,y,re){var Ee="http://www.w3.org/2000/svg",We=document.createElementNS(Ee,"svg"),ht=document.createElementNS(Ee,"foreignObject");return We.setAttributeNS(null,"width",b.toString()),We.setAttributeNS(null,"height",d.toString()),ht.setAttributeNS(null,"width","100%"),ht.setAttributeNS(null,"height","100%"),ht.setAttributeNS(null,"x",w.toString()),ht.setAttributeNS(null,"y",y.toString()),ht.setAttributeNS(null,"externalResourcesRequired","true"),We.appendChild(ht),ht.appendChild(re),We},ou=function(b){return new Promise(function(d,w){var y=new Image;y.onload=function(){return d(y)},y.onerror=w,y.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(b))})},ds={get SUPPORT_RANGE_BOUNDS(){var b=Eh(document);return Object.defineProperty(ds,"SUPPORT_RANGE_BOUNDS",{value:b}),b},get SUPPORT_WORD_BREAKING(){var b=ds.SUPPORT_RANGE_BOUNDS&&Gf(document);return Object.defineProperty(ds,"SUPPORT_WORD_BREAKING",{value:b}),b},get SUPPORT_SVG_DRAWING(){var b=vf(document);return Object.defineProperty(ds,"SUPPORT_SVG_DRAWING",{value:b}),b},get SUPPORT_FOREIGNOBJECT_DRAWING(){var b=typeof Array.from=="function"&&typeof window.fetch=="function"?bf(document):Promise.resolve(!1);return Object.defineProperty(ds,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:b}),b},get SUPPORT_CORS_IMAGES(){var b=bl();return Object.defineProperty(ds,"SUPPORT_CORS_IMAGES",{value:b}),b},get SUPPORT_RESPONSE_TYPE(){var b=Mu();return Object.defineProperty(ds,"SUPPORT_RESPONSE_TYPE",{value:b}),b},get SUPPORT_CORS_XHR(){var b="withCredentials"in new XMLHttpRequest;return Object.defineProperty(ds,"SUPPORT_CORS_XHR",{value:b}),b},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var b=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(ds,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:b}),b}},Qc=function(){function b(d,w){this.text=d,this.bounds=w}return b}(),Xl=function(b,d,w,y){var re=su(d,w),Ee=[],We=0;return re.forEach(function(ht){if(w.textDecorationLine.length||ht.trim().length>0)if(ds.SUPPORT_RANGE_BOUNDS){var pt=uo(y,We,ht.length).getClientRects();if(pt.length>1){var tr=bo(ht),cr=0;tr.forEach(function(qr){Ee.push(new Qc(qr,te.fromDOMRectList(b,uo(y,cr+We,qr.length).getClientRects()))),cr+=qr.length})}else Ee.push(new Qc(ht,te.fromDOMRectList(b,pt)))}else{var hr=y.splitText(ht.length);Ee.push(new Qc(ht,Lu(b,y))),y=hr}else ds.SUPPORT_RANGE_BOUNDS||(y=y.splitText(ht.length));We+=ht.length}),Ee},Lu=function(b,d){var w=d.ownerDocument;if(w){var y=w.createElement("html2canvaswrapper");y.appendChild(d.cloneNode(!0));var re=d.parentNode;if(re){re.replaceChild(y,d);var Ee=W(b,y);return y.firstChild&&re.replaceChild(y.firstChild,y),Ee}}return te.EMPTY},uo=function(b,d,w){var y=b.ownerDocument;if(!y)throw new Error("Node has no owner document");var re=y.createRange();return re.setStart(b,d),re.setEnd(b,d+w),re},bo=function(b){if(ds.SUPPORT_NATIVE_TEXT_SEGMENTATION){var d=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(d.segment(b)).map(function(w){return w.segment})}return Sh(b)},rA=function(b,d){if(ds.SUPPORT_NATIVE_TEXT_SEGMENTATION){var w=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(w.segment(b)).map(function(y){return y.segment})}return S0(b,d)},su=function(b,d){return d.letterSpacing!==0?bo(b):rA(b,d)},WA=[32,160,4961,65792,65793,4153,4241],S0=function(b,d){for(var w=Nt(b,{lineBreak:d.lineBreak,wordBreak:d.overflowWrap==="break-word"?"break-word":d.wordBreak}),y=[],re,Ee=function(){if(re.value){var We=re.value.slice(),ht=g(We),pt="";ht.forEach(function(tr){WA.indexOf(tr)===-1?pt+=F(tr):(pt.length&&y.push(pt),y.push(F(tr)),pt="")}),pt.length&&y.push(pt)}};!(re=w.next()).done;)Ee();return y},Dl=function(){function b(d,w,y){this.text=_A(w.data,y.textTransform),this.textBounds=Xl(d,this.text,y,w)}return b}(),_A=function(b,d){switch(d){case 1:return b.toLowerCase();case 3:return b.replace(_h,Xf);case 2:return b.toUpperCase();default:return b}},_h=/(^|\s|:|-|\(|\))([a-z])/g,Xf=function(b,d,w){return b.length>0?d+w.toUpperCase():b},E0=function(b){C(d,b);function d(w,y){var re=b.call(this,w,y)||this;return re.src=y.currentSrc||y.src,re.intrinsicWidth=y.naturalWidth,re.intrinsicHeight=y.naturalHeight,re.context.cache.addImage(re.src),re}return d}(mn),Eo=function(b){C(d,b);function d(w,y){var re=b.call(this,w,y)||this;return re.canvas=y,re.intrinsicWidth=y.width,re.intrinsicHeight=y.height,re}return d}(mn),yf=function(b){C(d,b);function d(w,y){var re=b.call(this,w,y)||this,Ee=new XMLSerializer,We=W(w,y);return y.setAttribute("width",We.width+"px"),y.setAttribute("height",We.height+"px"),re.svg="data:image/svg+xml,"+encodeURIComponent(Ee.serializeToString(y)),re.intrinsicWidth=y.width.baseVal.value,re.intrinsicHeight=y.height.baseVal.value,re.context.cache.addImage(re.svg),re}return d}(mn),Td=function(b){C(d,b);function d(w,y){var re=b.call(this,w,y)||this;return re.value=y.value,re}return d}(mn),Jf=function(b){C(d,b);function d(w,y){var re=b.call(this,w,y)||this;return re.start=y.start,re.reversed=typeof y.reversed=="boolean"&&y.reversed===!0,re}return d}(mn),Ur=[{type:15,flags:0,unit:"px",number:3}],Dm=[{type:16,flags:0,number:50}],Nm=function(b){return b.width>b.height?new te(b.left+(b.width-b.height)/2,b.top,b.height,b.height):b.width<b.height?new te(b.left,b.top+(b.height-b.width)/2,b.width,b.width):b},_0=function(b){var d=b.type===Ih?new Array(b.value.length+1).join("\u2022"):b.value;return d.length===0?b.placeholder||"":d},I0="checkbox",Ud="radio",Ih="password",F0=707406591,Jl=function(b){C(d,b);function d(w,y){var re=b.call(this,w,y)||this;switch(re.type=y.type.toLowerCase(),re.checked=y.checked,re.value=_0(y),(re.type===I0||re.type===Ud)&&(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=Nm(re.bounds)),re.type){case I0:re.styles.borderTopRightRadius=re.styles.borderTopLeftRadius=re.styles.borderBottomRightRadius=re.styles.borderBottomLeftRadius=Ur;break;case Ud:re.styles.borderTopRightRadius=re.styles.borderTopLeftRadius=re.styles.borderBottomRightRadius=re.styles.borderBottomLeftRadius=Dm;break}return re}return d}(mn),ld=function(b){C(d,b);function d(w,y){var re=b.call(this,w,y)||this,Ee=y.options[y.selectedIndex||0];return re.value=Ee&&Ee.text||"",re}return d}(mn),Yf=function(b){C(d,b);function d(w,y){var re=b.call(this,w,y)||this;return re.value=y.value,re}return d}(mn),Fh=function(b){C(d,b);function d(w,y){var re=b.call(this,w,y)||this;re.src=y.src,re.width=parseInt(y.width,10)||0,re.height=parseInt(y.height,10)||0,re.backgroundColor=re.styles.backgroundColor;try{if(y.contentWindow&&y.contentWindow.document&&y.contentWindow.document.documentElement){re.tree=pp(w,y.contentWindow.document.documentElement);var Ee=y.contentWindow.document.documentElement?eA(w,getComputedStyle(y.contentWindow.document.documentElement).backgroundColor):rl.TRANSPARENT,We=y.contentWindow.document.body?eA(w,getComputedStyle(y.contentWindow.document.body).backgroundColor):rl.TRANSPARENT;re.backgroundColor=zo(Ee)?zo(We)?re.styles.backgroundColor:We:Ee}}catch(ht){}return re}return d}(mn),Mh=["OL","UL","MENU"],qf=function(b,d,w,y){for(var re=d.firstChild,Ee=void 0;re;re=Ee)if(Ee=re.nextSibling,Rd(re)&&re.data.trim().length>0)w.textNodes.push(new Dl(b,re,w.styles));else if(wf(re))if(nh(re)&&re.assignedNodes)re.assignedNodes().forEach(function(ht){return qf(b,ht,w,y)});else{var We=M0(b,re);We.styles.isVisible()&&(L0(re,We,y)?We.flags|=4:nA(We.styles)&&(We.flags|=2),Mh.indexOf(re.tagName)!==-1&&(We.flags|=8),w.elements.push(We),re.slot,re.shadowRoot?qf(b,re.shadowRoot,We,y):!rh(re)&&!mp(re)&&!Lh(re)&&qf(b,re,We,y))}},M0=function(b,d){return cd(d)?new E0(b,d):Wp(d)?new Eo(b,d):mp(d)?new yf(b,d):Om(d)?new Td(b,d):Pm(d)?new Jf(b,d):Tm(d)?new Jl(b,d):Lh(d)?new ld(b,d):rh(d)?new Yf(b,d):Xp(d)?new Fh(b,d):new mn(b,d)},pp=function(b,d){var w=M0(b,d);return w.flags|=4,qf(b,d,w,w),w},L0=function(b,d,w){return d.styles.isPositionedWithZIndex()||d.styles.opacity<1||d.styles.isTransformed()||Ls(b)&&w.styles.isTransparent()},nA=function(b){return b.isPositioned()||b.isFloating()},Rd=function(b){return b.nodeType===Node.TEXT_NODE},wf=function(b){return b.nodeType===Node.ELEMENT_NODE},k0=function(b){return wf(b)&&typeof b.style!="undefined"&&!eh(b)},eh=function(b){return typeof b.className=="object"},Om=function(b){return b.tagName==="LI"},Pm=function(b){return b.tagName==="OL"},Tm=function(b){return b.tagName==="INPUT"},Um=function(b){return b.tagName==="HTML"},mp=function(b){return b.tagName==="svg"},Ls=function(b){return b.tagName==="BODY"},Wp=function(b){return b.tagName==="CANVAS"},Gp=function(b){return b.tagName==="VIDEO"},cd=function(b){return b.tagName==="IMG"},Xp=function(b){return b.tagName==="IFRAME"},th=function(b){return b.tagName==="STYLE"},gp=function(b){return b.tagName==="SCRIPT"},rh=function(b){return b.tagName==="TEXTAREA"},Lh=function(b){return b.tagName==="SELECT"},nh=function(b){return b.tagName==="SLOT"},Jp=function(b){return b.tagName.indexOf("-")>0},Rm=function(){function b(){this.counters={}}return b.prototype.getCounterValue=function(d){var w=this.counters[d];return w&&w.length?w[w.length-1]:1},b.prototype.getCounterValues=function(d){var w=this.counters[d];return w||[]},b.prototype.pop=function(d){var w=this;d.forEach(function(y){return w.counters[y].pop()})},b.prototype.parse=function(d){var w=this,y=d.counterIncrement,re=d.counterReset,Ee=!0;y!==null&&y.forEach(function(ht){var pt=w.counters[ht.counter];pt&&ht.increment!==0&&(Ee=!1,pt.length||pt.push(1),pt[Math.max(0,pt.length-1)]+=ht.increment)});var We=[];return Ee&&re.forEach(function(ht){var pt=w.counters[ht.counter];We.push(ht.counter),pt||(pt=w.counters[ht.counter]=[]),pt.push(ht.reset)}),We},b}(),kh={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"]},D0={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"]},Qm={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"]},Yp={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"]},xf=function(b,d,w,y,re,Ee){return b<d||b>w?Kd(b,re,Ee.length>0):y.integers.reduce(function(We,ht,pt){for(;b>=ht;)b-=ht,We+=y.values[pt];return We},"")+Ee},Km=function(b,d,w,y){var re="";do w||b--,re=y(b)+re,b/=d;while(b*d>=d);return re},Nl=function(b,d,w,y,re){var Ee=w-d+1;return(b<0?"-":"")+(Km(Math.abs(b),Ee,y,function(We){return F(Math.floor(We%Ee)+d)})+re)},Qd=function(b,d,w){w===void 0&&(w=". ");var y=d.length;return Km(Math.abs(b),y,!1,function(re){return d[Math.floor(re%y)]})+w},Cf=1,Ad=2,Xc=4,lu=8,IA=function(b,d,w,y,re,Ee){if(b<-9999||b>9999)return Kd(b,4,re.length>0);var We=Math.abs(b),ht=re;if(We===0)return d[0]+ht;for(var pt=0;We>0&&pt<=4;pt++){var tr=We%10;tr===0&&si(Ee,Cf)&&ht!==""?ht=d[tr]+ht:tr>1||tr===1&&pt===0||tr===1&&pt===1&&si(Ee,Ad)||tr===1&&pt===1&&si(Ee,Xc)&&b>100||tr===1&&pt>1&&si(Ee,lu)?ht=d[tr]+(pt>0?w[pt-1]:"")+ht:tr===1&&pt>0&&(ht=w[pt-1]+ht),We=Math.floor(We/10)}return(b<0?y:"")+ht},ku="\u5341\u767E\u5343\u842C",ud="\u62FE\u4F70\u4EDF\u842C",dd="\u30DE\u30A4\u30CA\u30B9",ih="\uB9C8\uC774\uB108\uC2A4",Kd=function(b,d,w){var y=w?". ":"",re=w?"\u3001":"",Ee=w?", ":"",We=w?" ":"";switch(d){case 0:return"\u2022"+We;case 1:return"\u25E6"+We;case 2:return"\u25FE"+We;case 5:var ht=Nl(b,48,57,!0,y);return ht.length<4?"0"+ht:ht;case 4:return Qd(b,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",re);case 6:return xf(b,1,3999,kh,3,y).toLowerCase();case 7:return xf(b,1,3999,kh,3,y);case 8:return Nl(b,945,969,!1,y);case 9:return Nl(b,97,122,!1,y);case 10:return Nl(b,65,90,!1,y);case 11:return Nl(b,1632,1641,!0,y);case 12:case 49:return xf(b,1,9999,D0,3,y);case 35:return xf(b,1,9999,D0,3,y).toLowerCase();case 13:return Nl(b,2534,2543,!0,y);case 14:case 30:return Nl(b,6112,6121,!0,y);case 15:return Qd(b,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",re);case 16:return Qd(b,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",re);case 17:case 48:return IA(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",ku,"\u8CA0",re,Ad|Xc|lu);case 47:return IA(b,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",ud,"\u8CA0",re,Cf|Ad|Xc|lu);case 42:return IA(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",ku,"\u8D1F",re,Ad|Xc|lu);case 41:return IA(b,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",ud,"\u8D1F",re,Cf|Ad|Xc|lu);case 26:return IA(b,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",dd,re,0);case 25:return IA(b,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",dd,re,Cf|Ad|Xc);case 31:return IA(b,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",ih,Ee,Cf|Ad|Xc);case 33:return IA(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",ih,Ee,0);case 32:return IA(b,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",ih,Ee,Cf|Ad|Xc);case 18:return Nl(b,2406,2415,!0,y);case 20:return xf(b,1,19999,Yp,3,y);case 21:return Nl(b,2790,2799,!0,y);case 22:return Nl(b,2662,2671,!0,y);case 22:return xf(b,1,10999,Qm,3,y);case 23:return Qd(b,"\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 Qd(b,"\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 Nl(b,3302,3311,!0,y);case 28:return Qd(b,"\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 Qd(b,"\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 Nl(b,3792,3801,!0,y);case 37:return Nl(b,6160,6169,!0,y);case 38:return Nl(b,4160,4169,!0,y);case 39:return Nl(b,2918,2927,!0,y);case 40:return Nl(b,1776,1785,!0,y);case 43:return Nl(b,3046,3055,!0,y);case 44:return Nl(b,3174,3183,!0,y);case 45:return Nl(b,3664,3673,!0,y);case 46:return Nl(b,3872,3881,!0,y);case 3:default:return Nl(b,48,57,!0,y)}},Dh="data-html2canvas-ignore",N0=function(){function b(d,w,y){if(this.context=d,this.options=y,this.scrolledElements=[],this.referenceElement=w,this.counters=new Rm,this.quoteDepth=0,!w.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(w.ownerDocument.documentElement,!1)}return b.prototype.toIFrame=function(d,w){var y=this,re=qp(d,w);if(!re.contentWindow)return Promise.reject("Unable to find iframe window");var Ee=d.defaultView.pageXOffset,We=d.defaultView.pageYOffset,ht=re.contentWindow,pt=ht.document,tr=Oh(re).then(function(){return Ae(y,void 0,void 0,function(){var cr,hr;return P(this,function(qr){switch(qr.label){case 0:return this.scrolledElements.forEach(rm),ht&&(ht.scrollTo(w.left,w.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(ht.scrollY!==w.top||ht.scrollX!==w.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(ht.scrollX-w.left,ht.scrollY-w.top,0,0))),cr=this.options.onclone,hr=this.clonedReferenceElement,typeof hr=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:pt.fonts&&pt.fonts.ready?[4,pt.fonts.ready]:[3,2];case 1:qr.sent(),qr.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,em(pt)]:[3,4];case 3:qr.sent(),qr.label=4;case 4:return typeof cr=="function"?[2,Promise.resolve().then(function(){return cr(pt,hr)}).then(function(){return re})]:[2,re]}})})});return pt.open(),pt.write(jm(document.doctype)+"<html></html>"),tm(this.referenceElement.ownerDocument,Ee,We),pt.replaceChild(pt.adoptNode(this.documentElement),pt.documentElement),pt.close(),tr},b.prototype.createElementClone=function(d){if(co(d,2))debugger;if(Wp(d))return this.createCanvasClone(d);if(Gp(d))return this.createVideoClone(d);if(th(d))return this.createStyleClone(d);var w=d.cloneNode(!1);return cd(w)&&(cd(d)&&d.currentSrc&&d.currentSrc!==d.src&&(w.src=d.currentSrc,w.srcset=""),w.loading==="lazy"&&(w.loading="eager")),Jp(w)?this.createCustomElementClone(w):w},b.prototype.createCustomElementClone=function(d){var w=document.createElement("html2canvascustomelement");return O0(d.style,w),w},b.prototype.createStyleClone=function(d){try{var w=d.sheet;if(w&&w.cssRules){var y=[].slice.call(w.cssRules,0).reduce(function(Ee,We){return We&&typeof We.cssText=="string"?Ee+We.cssText:Ee},""),re=d.cloneNode(!1);return re.textContent=y,re}}catch(Ee){if(this.context.logger.error("Unable to access cssRules property",Ee),Ee.name!=="SecurityError")throw Ee}return d.cloneNode(!1)},b.prototype.createCanvasClone=function(d){var w;if(this.options.inlineImages&&d.ownerDocument){var y=d.ownerDocument.createElement("img");try{return y.src=d.toDataURL(),y}catch(tr){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",d)}}var re=d.cloneNode(!1);try{re.width=d.width,re.height=d.height;var Ee=d.getContext("2d"),We=re.getContext("2d");if(We)if(!this.options.allowTaint&&Ee)We.putImageData(Ee.getImageData(0,0,d.width,d.height),0,0);else{var ht=(w=d.getContext("webgl2"))!==null&&w!==void 0?w:d.getContext("webgl");if(ht){var pt=ht.getContextAttributes();(pt==null?void 0:pt.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",d)}We.drawImage(d,0,0)}return re}catch(tr){this.context.logger.info("Unable to clone canvas as it is tainted",d)}return re},b.prototype.createVideoClone=function(d){var w=d.ownerDocument.createElement("canvas");w.width=d.offsetWidth,w.height=d.offsetHeight;var y=w.getContext("2d");try{return y&&(y.drawImage(d,0,0,w.width,w.height),this.options.allowTaint||y.getImageData(0,0,w.width,w.height)),w}catch(Ee){this.context.logger.info("Unable to clone video as it is tainted",d)}var re=d.ownerDocument.createElement("canvas");return re.width=d.offsetWidth,re.height=d.offsetHeight,re},b.prototype.appendChildNode=function(d,w,y){(!wf(w)||!gp(w)&&!w.hasAttribute(Dh)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(w)))&&(!this.options.copyStyles||!wf(w)||!th(w))&&d.appendChild(this.cloneNode(w,y))},b.prototype.cloneChildNodes=function(d,w,y){for(var re=this,Ee=d.shadowRoot?d.shadowRoot.firstChild:d.firstChild;Ee;Ee=Ee.nextSibling)if(wf(Ee)&&nh(Ee)&&typeof Ee.assignedNodes=="function"){var We=Ee.assignedNodes();We.length&&We.forEach(function(ht){return re.appendChildNode(w,ht,y)})}else this.appendChildNode(w,Ee,y)},b.prototype.cloneNode=function(d,w){if(Rd(d))return document.createTextNode(d.data);if(!d.ownerDocument)return d.cloneNode(!1);var y=d.ownerDocument.defaultView;if(y&&wf(d)&&(k0(d)||eh(d))){var re=this.createElementClone(d);re.style.transitionProperty="none";var Ee=y.getComputedStyle(d),We=y.getComputedStyle(d,":before"),ht=y.getComputedStyle(d,":after");this.referenceElement===d&&k0(re)&&(this.clonedReferenceElement=re),Ls(re)&&oh(re);var pt=this.counters.parse(new Uc(this.context,Ee)),tr=this.resolvePseudoContent(d,re,We,Nh.BEFORE);Jp(d)&&(w=!0),Gp(d)||this.cloneChildNodes(d,re,w),tr&&re.insertBefore(tr,re.firstChild);var cr=this.resolvePseudoContent(d,re,ht,Nh.AFTER);return cr&&re.appendChild(cr),this.counters.pop(pt),(Ee&&(this.options.copyStyles||eh(d))&&!Xp(d)||w)&&O0(Ee,re),(d.scrollTop!==0||d.scrollLeft!==0)&&this.scrolledElements.push([re,d.scrollLeft,d.scrollTop]),(rh(d)||Lh(d))&&(rh(re)||Lh(re))&&(re.value=d.value),re}return d.cloneNode(!1)},b.prototype.resolvePseudoContent=function(d,w,y,re){var Ee=this;if(y){var We=y.content,ht=w.ownerDocument;if(!(!ht||!We||We==="none"||We==="-moz-alt-content"||y.display==="none")){this.counters.parse(new Uc(this.context,y));var pt=new Us(this.context,y),tr=ht.createElement("html2canvaspseudoelement");O0(y,tr),pt.content.forEach(function(hr){if(hr.type===0)tr.appendChild(ht.createTextNode(hr.value));else if(hr.type===22){var qr=ht.createElement("img");qr.src=hr.value,qr.style.opacity="1",tr.appendChild(qr)}else if(hr.type===18){if(hr.name==="attr"){var Ri=hr.values.filter(Fo);Ri.length&&tr.appendChild(ht.createTextNode(d.getAttribute(Ri[0].value)||""))}else if(hr.name==="counter"){var Rn=hr.values.filter(mA),mi=Rn[0],Va=Rn[1];if(mi&&Fo(mi)){var ea=Ee.counters.getCounterValue(mi.value),Yi=Va&&Fo(Va)?Ar.parse(Ee.context,Va.value):3;tr.appendChild(ht.createTextNode(Kd(ea,Yi,!1)))}}else if(hr.name==="counters"){var Oa=hr.values.filter(mA),mi=Oa[0],oo=Oa[1],Va=Oa[2];if(mi&&Fo(mi)){var Ia=Ee.counters.getCounterValues(mi.value),Di=Va&&Fo(Va)?Ar.parse(Ee.context,Va.value):3,ko=oo&&oo.type===0?oo.value:"",Xa=Ia.map(function(Ec){return Kd(Ec,Di,!1)}).join(ko);tr.appendChild(ht.createTextNode(Xa))}}}else if(hr.type===20)switch(hr.value){case"open-quote":tr.appendChild(ht.createTextNode(ca(pt.quotes,Ee.quoteDepth++,!0)));break;case"close-quote":tr.appendChild(ht.createTextNode(ca(pt.quotes,--Ee.quoteDepth,!1)));break;default:tr.appendChild(ht.createTextNode(hr.value))}}),tr.className=bp+" "+Bf;var cr=re===Nh.BEFORE?" "+bp:" "+Bf;return eh(w)?w.className.baseValue+=cr:w.className+=cr,tr}}},b.destroy=function(d){return d.parentNode?(d.parentNode.removeChild(d),!0):!1},b}(),Nh;(function(b){b[b.BEFORE=0]="BEFORE",b[b.AFTER=1]="AFTER"})(Nh||(Nh={}));var qp=function(b,d){var w=b.createElement("iframe");return w.className="html2canvas-container",w.style.visibility="hidden",w.style.position="fixed",w.style.left="-10000px",w.style.top="0px",w.style.border="0",w.width=d.width.toString(),w.height=d.height.toString(),w.scrolling="no",w.setAttribute(Dh,"true"),b.body.appendChild(w),w},vp=function(b){return new Promise(function(d){if(b.complete){d();return}if(!b.src){d();return}b.onload=d,b.onerror=d})},em=function(b){return Promise.all([].slice.call(b.images,0).map(vp))},Oh=function(b){return new Promise(function(d,w){var y=b.contentWindow;if(!y)return w("No window assigned for iframe");var re=y.document;y.onload=b.onload=function(){y.onload=b.onload=null;var Ee=setInterval(function(){re.body.childNodes.length>0&&re.readyState==="complete"&&(clearInterval(Ee),d(b))},50)}})},Hm=["all","d","content"],O0=function(b,d){for(var w=b.length-1;w>=0;w--){var y=b.item(w);Hm.indexOf(y)===-1&&d.style.setProperty(y,b.getPropertyValue(y))}return d},jm=function(b){var d="";return b&&(d+="<!DOCTYPE ",b.name&&(d+=b.name),b.internalSubset&&(d+=b.internalSubset),b.publicId&&(d+='"'+b.publicId+'"'),b.systemId&&(d+='"'+b.systemId+'"'),d+=">"),d},tm=function(b,d,w){b&&b.defaultView&&(d!==b.defaultView.pageXOffset||w!==b.defaultView.pageYOffset)&&b.defaultView.scrollTo(d,w)},rm=function(b){var d=b[0],w=b[1],y=b[2];d.scrollLeft=w,d.scrollTop=y},nm=":before",im=":after",bp="___html2canvas___pseudoelement_before",Bf="___html2canvas___pseudoelement_after",ah=`{
content: "" !important;
display: none !important;
}`,oh=function(b){Du(b,"."+bp+nm+ah+`
.`+Bf+im+ah)},Du=function(b,d){var w=b.ownerDocument;if(w){var y=w.createElement("style");y.textContent=d,b.appendChild(y)}},yp=function(){function b(){}return b.getOrigin=function(d){var w=b._link;return w?(w.href=d,w.href=w.href,w.protocol+w.hostname+w.port):"about:blank"},b.isSameOrigin=function(d){return b.getOrigin(d)===b._origin},b.setContext=function(d){b._link=d.document.createElement("a"),b._origin=b.getOrigin(d.location.href)},b._origin="about:blank",b}(),FA=function(){function b(d,w){this.context=d,this._options=w,this._cache={}}return b.prototype.addImage=function(d){var w=Promise.resolve();return this.has(d)||(xp(d)||Ph(d))&&(this._cache[d]=this.loadImage(d)).catch(function(){}),w},b.prototype.match=function(d){return this._cache[d]},b.prototype.loadImage=function(d){return Ae(this,void 0,void 0,function(){var w,y,re,Ee,We=this;return P(this,function(ht){switch(ht.label){case 0:return w=yp.isSameOrigin(d),y=!Th(d)&&this._options.useCORS===!0&&ds.SUPPORT_CORS_IMAGES&&!w,re=!Th(d)&&!w&&!xp(d)&&typeof this._options.proxy=="string"&&ds.SUPPORT_CORS_XHR&&!y,!w&&this._options.allowTaint===!1&&!Th(d)&&!xp(d)&&!re&&!y?[2]:(Ee=d,re?[4,this.proxy(Ee)]:[3,2]);case 1:Ee=ht.sent(),ht.label=2;case 2:return this.context.logger.debug("Added image "+d.substring(0,256)),[4,new Promise(function(pt,tr){var cr=new Image;cr.onload=function(){return pt(cr)},cr.onerror=tr,(zm(Ee)||y)&&(cr.crossOrigin="anonymous"),cr.src=Ee,cr.complete===!0&&setTimeout(function(){return pt(cr)},500),We._options.imageTimeout>0&&setTimeout(function(){return tr("Timed out ("+We._options.imageTimeout+"ms) loading image")},We._options.imageTimeout)})];case 3:return[2,ht.sent()]}})})},b.prototype.has=function(d){return typeof this._cache[d]!="undefined"},b.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},b.prototype.proxy=function(d){var w=this,y=this._options.proxy;if(!y)throw new Error("No proxy defined");var re=d.substring(0,256);return new Promise(function(Ee,We){var ht=ds.SUPPORT_RESPONSE_TYPE?"blob":"text",pt=new XMLHttpRequest;pt.onload=function(){if(pt.status===200)if(ht==="text")Ee(pt.response);else{var hr=new FileReader;hr.addEventListener("load",function(){return Ee(hr.result)},!1),hr.addEventListener("error",function(qr){return We(qr)},!1),hr.readAsDataURL(pt.response)}else We("Failed to proxy resource "+re+" with status code "+pt.status)},pt.onerror=We;var tr=y.indexOf("?")>-1?"&":"?";if(pt.open("GET",""+y+tr+"url="+encodeURIComponent(d)+"&responseType="+ht),ht!=="text"&&pt instanceof XMLHttpRequest&&(pt.responseType=ht),w._options.imageTimeout){var cr=w._options.imageTimeout;pt.timeout=cr,pt.ontimeout=function(){return We("Timed out ("+cr+"ms) proxying "+re)}}pt.send()})},b}(),P0=/^data:image\/svg\+xml/i,am=/^data:image\/.*;base64,/i,wp=/^data:image\/.*/i,Ph=function(b){return ds.SUPPORT_SVG_DRAWING||!fs(b)},Th=function(b){return wp.test(b)},zm=function(b){return am.test(b)},xp=function(b){return b.substr(0,4)==="blob"},fs=function(b){return b.substr(-3).toLowerCase()==="svg"||P0.test(b)},ki=function(){function b(d,w){this.type=0,this.x=d,this.y=w}return b.prototype.add=function(d,w){return new b(this.x+d,this.y+w)},b}(),Nu=function(b,d,w){return new ki(b.x+(d.x-b.x)*w,b.y+(d.y-b.y)*w)},T0=function(){function b(d,w,y,re){this.type=1,this.start=d,this.startControl=w,this.endControl=y,this.end=re}return b.prototype.subdivide=function(d,w){var y=Nu(this.start,this.startControl,d),re=Nu(this.startControl,this.endControl,d),Ee=Nu(this.endControl,this.end,d),We=Nu(y,re,d),ht=Nu(re,Ee,d),pt=Nu(We,ht,d);return w?new b(this.start,y,We,pt):new b(pt,ht,Ee,this.end)},b.prototype.add=function(d,w){return new b(this.start.add(d,w),this.startControl.add(d,w),this.endControl.add(d,w),this.end.add(d,w))},b.prototype.reverse=function(){return new b(this.end,this.endControl,this.startControl,this.start)},b}(),fc=function(b){return b.type===1},om=function(){function b(d){var w=d.styles,y=d.bounds,re=jl(w.borderTopLeftRadius,y.width,y.height),Ee=re[0],We=re[1],ht=jl(w.borderTopRightRadius,y.width,y.height),pt=ht[0],tr=ht[1],cr=jl(w.borderBottomRightRadius,y.width,y.height),hr=cr[0],qr=cr[1],Ri=jl(w.borderBottomLeftRadius,y.width,y.height),Rn=Ri[0],mi=Ri[1],Va=[];Va.push((Ee+pt)/y.width),Va.push((Rn+hr)/y.width),Va.push((We+mi)/y.height),Va.push((tr+qr)/y.height);var ea=Math.max.apply(Math,Va);ea>1&&(Ee/=ea,We/=ea,pt/=ea,tr/=ea,hr/=ea,qr/=ea,Rn/=ea,mi/=ea);var Yi=y.width-pt,Oa=y.height-qr,oo=y.width-hr,Ia=y.height-mi,Di=w.borderTopWidth,ko=w.borderRightWidth,Xa=w.borderBottomWidth,Pa=w.borderLeftWidth,ei=to(w.paddingTop,d.bounds.width),Ec=to(w.paddingRight,d.bounds.width),oA=to(w.paddingBottom,d.bounds.width),yo=to(w.paddingLeft,d.bounds.width);this.topLeftBorderDoubleOuterBox=Ee>0||We>0?ol(y.left+Pa/3,y.top+Di/3,Ee-Pa/3,We-Di/3,Vo.TOP_LEFT):new ki(y.left+Pa/3,y.top+Di/3),this.topRightBorderDoubleOuterBox=Ee>0||We>0?ol(y.left+Yi,y.top+Di/3,pt-ko/3,tr-Di/3,Vo.TOP_RIGHT):new ki(y.left+y.width-ko/3,y.top+Di/3),this.bottomRightBorderDoubleOuterBox=hr>0||qr>0?ol(y.left+oo,y.top+Oa,hr-ko/3,qr-Xa/3,Vo.BOTTOM_RIGHT):new ki(y.left+y.width-ko/3,y.top+y.height-Xa/3),this.bottomLeftBorderDoubleOuterBox=Rn>0||mi>0?ol(y.left+Pa/3,y.top+Ia,Rn-Pa/3,mi-Xa/3,Vo.BOTTOM_LEFT):new ki(y.left+Pa/3,y.top+y.height-Xa/3),this.topLeftBorderDoubleInnerBox=Ee>0||We>0?ol(y.left+Pa*2/3,y.top+Di*2/3,Ee-Pa*2/3,We-Di*2/3,Vo.TOP_LEFT):new ki(y.left+Pa*2/3,y.top+Di*2/3),this.topRightBorderDoubleInnerBox=Ee>0||We>0?ol(y.left+Yi,y.top+Di*2/3,pt-ko*2/3,tr-Di*2/3,Vo.TOP_RIGHT):new ki(y.left+y.width-ko*2/3,y.top+Di*2/3),this.bottomRightBorderDoubleInnerBox=hr>0||qr>0?ol(y.left+oo,y.top+Oa,hr-ko*2/3,qr-Xa*2/3,Vo.BOTTOM_RIGHT):new ki(y.left+y.width-ko*2/3,y.top+y.height-Xa*2/3),this.bottomLeftBorderDoubleInnerBox=Rn>0||mi>0?ol(y.left+Pa*2/3,y.top+Ia,Rn-Pa*2/3,mi-Xa*2/3,Vo.BOTTOM_LEFT):new ki(y.left+Pa*2/3,y.top+y.height-Xa*2/3),this.topLeftBorderStroke=Ee>0||We>0?ol(y.left+Pa/2,y.top+Di/2,Ee-Pa/2,We-Di/2,Vo.TOP_LEFT):new ki(y.left+Pa/2,y.top+Di/2),this.topRightBorderStroke=Ee>0||We>0?ol(y.left+Yi,y.top+Di/2,pt-ko/2,tr-Di/2,Vo.TOP_RIGHT):new ki(y.left+y.width-ko/2,y.top+Di/2),this.bottomRightBorderStroke=hr>0||qr>0?ol(y.left+oo,y.top+Oa,hr-ko/2,qr-Xa/2,Vo.BOTTOM_RIGHT):new ki(y.left+y.width-ko/2,y.top+y.height-Xa/2),this.bottomLeftBorderStroke=Rn>0||mi>0?ol(y.left+Pa/2,y.top+Ia,Rn-Pa/2,mi-Xa/2,Vo.BOTTOM_LEFT):new ki(y.left+Pa/2,y.top+y.height-Xa/2),this.topLeftBorderBox=Ee>0||We>0?ol(y.left,y.top,Ee,We,Vo.TOP_LEFT):new ki(y.left,y.top),this.topRightBorderBox=pt>0||tr>0?ol(y.left+Yi,y.top,pt,tr,Vo.TOP_RIGHT):new ki(y.left+y.width,y.top),this.bottomRightBorderBox=hr>0||qr>0?ol(y.left+oo,y.top+Oa,hr,qr,Vo.BOTTOM_RIGHT):new ki(y.left+y.width,y.top+y.height),this.bottomLeftBorderBox=Rn>0||mi>0?ol(y.left,y.top+Ia,Rn,mi,Vo.BOTTOM_LEFT):new ki(y.left,y.top+y.height),this.topLeftPaddingBox=Ee>0||We>0?ol(y.left+Pa,y.top+Di,Math.max(0,Ee-Pa),Math.max(0,We-Di),Vo.TOP_LEFT):new ki(y.left+Pa,y.top+Di),this.topRightPaddingBox=pt>0||tr>0?ol(y.left+Math.min(Yi,y.width-ko),y.top+Di,Yi>y.width+ko?0:Math.max(0,pt-ko),Math.max(0,tr-Di),Vo.TOP_RIGHT):new ki(y.left+y.width-ko,y.top+Di),this.bottomRightPaddingBox=hr>0||qr>0?ol(y.left+Math.min(oo,y.width-Pa),y.top+Math.min(Oa,y.height-Xa),Math.max(0,hr-ko),Math.max(0,qr-Xa),Vo.BOTTOM_RIGHT):new ki(y.left+y.width-ko,y.top+y.height-Xa),this.bottomLeftPaddingBox=Rn>0||mi>0?ol(y.left+Pa,y.top+Math.min(Ia,y.height-Xa),Math.max(0,Rn-Pa),Math.max(0,mi-Xa),Vo.BOTTOM_LEFT):new ki(y.left+Pa,y.top+y.height-Xa),this.topLeftContentBox=Ee>0||We>0?ol(y.left+Pa+yo,y.top+Di+ei,Math.max(0,Ee-(Pa+yo)),Math.max(0,We-(Di+ei)),Vo.TOP_LEFT):new ki(y.left+Pa+yo,y.top+Di+ei),this.topRightContentBox=pt>0||tr>0?ol(y.left+Math.min(Yi,y.width+Pa+yo),y.top+Di+ei,Yi>y.width+Pa+yo?0:pt-Pa+yo,tr-(Di+ei),Vo.TOP_RIGHT):new ki(y.left+y.width-(ko+Ec),y.top+Di+ei),this.bottomRightContentBox=hr>0||qr>0?ol(y.left+Math.min(oo,y.width-(Pa+yo)),y.top+Math.min(Oa,y.height+Di+ei),Math.max(0,hr-(ko+Ec)),qr-(Xa+oA),Vo.BOTTOM_RIGHT):new ki(y.left+y.width-(ko+Ec),y.top+y.height-(Xa+oA)),this.bottomLeftContentBox=Rn>0||mi>0?ol(y.left+Pa+yo,y.top+Ia,Math.max(0,Rn-(Pa+yo)),mi-(Xa+oA),Vo.BOTTOM_LEFT):new ki(y.left+Pa+yo,y.top+y.height-(Xa+oA))}return b}(),Vo;(function(b){b[b.TOP_LEFT=0]="TOP_LEFT",b[b.TOP_RIGHT=1]="TOP_RIGHT",b[b.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",b[b.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Vo||(Vo={}));var ol=function(b,d,w,y,re){var Ee=4*((Math.sqrt(2)-1)/3),We=w*Ee,ht=y*Ee,pt=b+w,tr=d+y;switch(re){case Vo.TOP_LEFT:return new T0(new ki(b,tr),new ki(b,tr-ht),new ki(pt-We,d),new ki(pt,d));case Vo.TOP_RIGHT:return new T0(new ki(b,d),new ki(b+We,d),new ki(pt,tr-ht),new ki(pt,tr));case Vo.BOTTOM_RIGHT:return new T0(new ki(pt,d),new ki(pt,d+ht),new ki(b+We,tr),new ki(b,tr));case Vo.BOTTOM_LEFT:default:return new T0(new ki(pt,tr),new ki(pt-We,tr),new ki(b,d+ht),new ki(b,d))}},Ys=function(b){return[b.topLeftBorderBox,b.topRightBorderBox,b.bottomRightBorderBox,b.bottomLeftBorderBox]},$m=function(b){return[b.topLeftContentBox,b.topRightContentBox,b.bottomRightContentBox,b.bottomLeftContentBox]},U0=function(b){return[b.topLeftPaddingBox,b.topRightPaddingBox,b.bottomRightPaddingBox,b.bottomLeftPaddingBox]},Za=function(){function b(d,w,y){this.offsetX=d,this.offsetY=w,this.matrix=y,this.type=0,this.target=6}return b}(),Sf=function(){function b(d,w){this.path=d,this.target=w,this.type=1}return b}(),ks=function(){function b(d){this.opacity=d,this.type=2,this.target=6}return b}(),Hd=function(b){return b.type===0},R0=function(b){return b.type===1},hc=function(b){return b.type===2},fd=function(b,d){return b.length===d.length?b.some(function(w,y){return w===d[y]}):!1},Cp=function(b,d,w,y,re){return b.map(function(Ee,We){switch(We){case 0:return Ee.add(d,w);case 1:return Ee.add(d+y,w);case 2:return Ee.add(d+y,w+re);case 3:return Ee.add(d,w+re)}return Ee})},vn=function(){function b(d){this.element=d,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return b}(),Qs=function(){function b(d,w){if(this.container=d,this.parent=w,this.effects=[],this.curves=new om(this.container),this.container.styles.opacity<1&&this.effects.push(new ks(this.container.styles.opacity)),this.container.styles.transform!==null){var y=this.container.bounds.left+this.container.styles.transformOrigin[0].number,re=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Ee=this.container.styles.transform;this.effects.push(new Za(y,re,Ee))}if(this.container.styles.overflowX!==0){var We=Ys(this.curves),ht=U0(this.curves);fd(We,ht)?this.effects.push(new Sf(We,6)):(this.effects.push(new Sf(We,2)),this.effects.push(new Sf(ht,4)))}}return b.prototype.getEffects=function(d){for(var w=[2,3].indexOf(this.container.styles.position)===-1,y=this.parent,re=this.effects.slice(0);y;){var Ee=y.effects.filter(function(pt){return!R0(pt)});if(w||y.container.styles.position!==0||!y.parent){if(re.unshift.apply(re,Ee),w=[2,3].indexOf(y.container.styles.position)===-1,y.container.styles.overflowX!==0){var We=Ys(y.curves),ht=U0(y.curves);fd(We,ht)||re.unshift(new Sf(ht,6))}}else re.unshift.apply(re,Ee);y=y.parent}return re.filter(function(pt){return si(pt.target,d)})},b}(),Q0=function(b,d,w,y){b.container.elements.forEach(function(re){var Ee=si(re.flags,4),We=si(re.flags,2),ht=new Qs(re,b);si(re.styles.display,2048)&&y.push(ht);var pt=si(re.flags,8)?[]:y;if(Ee||We){var tr=Ee||re.styles.isPositioned()?w:d,cr=new vn(ht);if(re.styles.isPositioned()||re.styles.opacity<1||re.styles.isTransformed()){var hr=re.styles.zIndex.order;if(hr<0){var qr=0;tr.negativeZIndex.some(function(Rn,mi){return hr>Rn.element.container.styles.zIndex.order?(qr=mi,!1):qr>0}),tr.negativeZIndex.splice(qr,0,cr)}else if(hr>0){var Ri=0;tr.positiveZIndex.some(function(Rn,mi){return hr>=Rn.element.container.styles.zIndex.order?(Ri=mi+1,!1):Ri>0}),tr.positiveZIndex.splice(Ri,0,cr)}else tr.zeroOrAutoZIndexOrTransformedOrOpacity.push(cr)}else re.styles.isFloating()?tr.nonPositionedFloats.push(cr):tr.nonPositionedInlineLevel.push(cr);Q0(ht,cr,Ee?cr:w,pt)}else re.styles.isInlineLevel()?d.inlineLevel.push(ht):d.nonInlineLevel.push(ht),Q0(ht,d,w,pt);si(re.flags,8)&&K0(re,pt)})},K0=function(b,d){for(var w=b instanceof Jf?b.start:1,y=b instanceof Jf?b.reversed:!1,re=0;re<d.length;re++){var Ee=d[re];Ee.container instanceof Td&&typeof Ee.container.value=="number"&&Ee.container.value!==0&&(w=Ee.container.value),Ee.listValue=Kd(w,Ee.container.styles.listStyleType,!0),w+=y?-1:1}},Kc=function(b){var d=new Qs(b,null),w=new vn(d),y=[];return Q0(d,w,w,y),K0(d.container,y),w},Sc=function(b,d){switch(d){case 0:return MA(b.topLeftBorderBox,b.topLeftPaddingBox,b.topRightBorderBox,b.topRightPaddingBox);case 1:return MA(b.topRightBorderBox,b.topRightPaddingBox,b.bottomRightBorderBox,b.bottomRightPaddingBox);case 2:return MA(b.bottomRightBorderBox,b.bottomRightPaddingBox,b.bottomLeftBorderBox,b.bottomLeftPaddingBox);case 3:default:return MA(b.bottomLeftBorderBox,b.bottomLeftPaddingBox,b.topLeftBorderBox,b.topLeftPaddingBox)}},sc=function(b,d){switch(d){case 0:return MA(b.topLeftBorderBox,b.topLeftBorderDoubleOuterBox,b.topRightBorderBox,b.topRightBorderDoubleOuterBox);case 1:return MA(b.topRightBorderBox,b.topRightBorderDoubleOuterBox,b.bottomRightBorderBox,b.bottomRightBorderDoubleOuterBox);case 2:return MA(b.bottomRightBorderBox,b.bottomRightBorderDoubleOuterBox,b.bottomLeftBorderBox,b.bottomLeftBorderDoubleOuterBox);case 3:default:return MA(b.bottomLeftBorderBox,b.bottomLeftBorderDoubleOuterBox,b.topLeftBorderBox,b.topLeftBorderDoubleOuterBox)}},pc=function(b,d){switch(d){case 0:return MA(b.topLeftBorderDoubleInnerBox,b.topLeftPaddingBox,b.topRightBorderDoubleInnerBox,b.topRightPaddingBox);case 1:return MA(b.topRightBorderDoubleInnerBox,b.topRightPaddingBox,b.bottomRightBorderDoubleInnerBox,b.bottomRightPaddingBox);case 2:return MA(b.bottomRightBorderDoubleInnerBox,b.bottomRightPaddingBox,b.bottomLeftBorderDoubleInnerBox,b.bottomLeftPaddingBox);case 3:default:return MA(b.bottomLeftBorderDoubleInnerBox,b.bottomLeftPaddingBox,b.topLeftBorderDoubleInnerBox,b.topLeftPaddingBox)}},sm=function(b,d){switch(d){case 0:return H0(b.topLeftBorderStroke,b.topRightBorderStroke);case 1:return H0(b.topRightBorderStroke,b.bottomRightBorderStroke);case 2:return H0(b.bottomRightBorderStroke,b.bottomLeftBorderStroke);case 3:default:return H0(b.bottomLeftBorderStroke,b.topLeftBorderStroke)}},H0=function(b,d){var w=[];return fc(b)?w.push(b.subdivide(.5,!1)):w.push(b),fc(d)?w.push(d.subdivide(.5,!0)):w.push(d),w},MA=function(b,d,w,y){var re=[];return fc(b)?re.push(b.subdivide(.5,!1)):re.push(b),fc(w)?re.push(w.subdivide(.5,!0)):re.push(w),fc(y)?re.push(y.subdivide(.5,!0).reverse()):re.push(y),fc(d)?re.push(d.subdivide(.5,!1).reverse()):re.push(d),re},Ef=function(b){var d=b.bounds,w=b.styles;return d.add(w.borderLeftWidth,w.borderTopWidth,-(w.borderRightWidth+w.borderLeftWidth),-(w.borderTopWidth+w.borderBottomWidth))},Ol=function(b){var d=b.styles,w=b.bounds,y=to(d.paddingLeft,w.width),re=to(d.paddingRight,w.width),Ee=to(d.paddingTop,w.width),We=to(d.paddingBottom,w.width);return w.add(y+d.borderLeftWidth,Ee+d.borderTopWidth,-(d.borderRightWidth+d.borderLeftWidth+y+re),-(d.borderTopWidth+d.borderBottomWidth+Ee+We))},_f=function(b,d){return b===0?d.bounds:b===2?Ol(d):Ef(d)},Bp=function(b,d){return b===0?d.bounds:b===2?Ol(d):Ef(d)},Jc=function(b,d,w){var y=_f(iA(b.styles.backgroundOrigin,d),b),re=Bp(iA(b.styles.backgroundClip,d),b),Ee=Ou(iA(b.styles.backgroundSize,d),w,y),We=Ee[0],ht=Ee[1],pt=jl(iA(b.styles.backgroundPosition,d),y.width-We,y.height-ht),tr=Sp(iA(b.styles.backgroundRepeat,d),pt,Ee,y,re),cr=Math.round(y.left+pt[0]),hr=Math.round(y.top+pt[1]);return[tr,cr,hr,We,ht]},mc=function(b){return Fo(b)&&b.value===Cl.AUTO},Uh=function(b){return typeof b=="number"},Ou=function(b,d,w){var y=d[0],re=d[1],Ee=d[2],We=b[0],ht=b[1];if(!We)return[0,0];if(gs(We)&&ht&&gs(ht))return[to(We,w.width),to(ht,w.height)];var pt=Uh(Ee);if(Fo(We)&&(We.value===Cl.CONTAIN||We.value===Cl.COVER)){if(Uh(Ee)){var tr=w.width/w.height;return tr<Ee!=(We.value===Cl.COVER)?[w.width,w.width/Ee]:[w.height*Ee,w.height]}return[w.width,w.height]}var cr=Uh(y),hr=Uh(re),qr=cr||hr;if(mc(We)&&(!ht||mc(ht))){if(cr&&hr)return[y,re];if(!pt&&!qr)return[w.width,w.height];if(qr&&pt){var Ri=cr?y:re*Ee,Rn=hr?re:y/Ee;return[Ri,Rn]}var mi=cr?y:w.width,Va=hr?re:w.height;return[mi,Va]}if(pt){var ea=0,Yi=0;return gs(We)?ea=to(We,w.width):gs(ht)&&(Yi=to(ht,w.height)),mc(We)?ea=Yi*Ee:(!ht||mc(ht))&&(Yi=ea/Ee),[ea,Yi]}var Oa=null,oo=null;if(gs(We)?Oa=to(We,w.width):ht&&gs(ht)&&(oo=to(ht,w.height)),Oa!==null&&(!ht||mc(ht))&&(oo=cr&&hr?Oa/y*re:w.height),oo!==null&&mc(We)&&(Oa=cr&&hr?oo/re*y:w.width),Oa!==null&&oo!==null)return[Oa,oo];throw new Error("Unable to calculate background-size for element")},iA=function(b,d){var w=b[d];return typeof w=="undefined"?b[0]:w},Sp=function(b,d,w,y,re){var Ee=d[0],We=d[1],ht=w[0],pt=w[1];switch(b){case 2:return[new ki(Math.round(y.left),Math.round(y.top+We)),new ki(Math.round(y.left+y.width),Math.round(y.top+We)),new ki(Math.round(y.left+y.width),Math.round(pt+y.top+We)),new ki(Math.round(y.left),Math.round(pt+y.top+We))];case 3:return[new ki(Math.round(y.left+Ee),Math.round(y.top)),new ki(Math.round(y.left+Ee+ht),Math.round(y.top)),new ki(Math.round(y.left+Ee+ht),Math.round(y.height+y.top)),new ki(Math.round(y.left+Ee),Math.round(y.height+y.top))];case 1:return[new ki(Math.round(y.left+Ee),Math.round(y.top+We)),new ki(Math.round(y.left+Ee+ht),Math.round(y.top+We)),new ki(Math.round(y.left+Ee+ht),Math.round(y.top+We+pt)),new ki(Math.round(y.left+Ee),Math.round(y.top+We+pt))];default:return[new ki(Math.round(re.left),Math.round(re.top)),new ki(Math.round(re.left+re.width),Math.round(re.top)),new ki(Math.round(re.left+re.width),Math.round(re.height+re.top)),new ki(Math.round(re.left),Math.round(re.height+re.top))]}},Rh="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",sh="Hidden Text",jd=function(){function b(d){this._data={},this._document=d}return b.prototype.parseMetrics=function(d,w){var y=this._document.createElement("div"),re=this._document.createElement("img"),Ee=this._document.createElement("span"),We=this._document.body;y.style.visibility="hidden",y.style.fontFamily=d,y.style.fontSize=w,y.style.margin="0",y.style.padding="0",y.style.whiteSpace="nowrap",We.appendChild(y),re.src=Rh,re.width=1,re.height=1,re.style.margin="0",re.style.padding="0",re.style.verticalAlign="baseline",Ee.style.fontFamily=d,Ee.style.fontSize=w,Ee.style.margin="0",Ee.style.padding="0",Ee.appendChild(this._document.createTextNode(sh)),y.appendChild(Ee),y.appendChild(re);var ht=re.offsetTop-Ee.offsetTop+2;y.removeChild(Ee),y.appendChild(this._document.createTextNode(sh)),y.style.lineHeight="normal",re.style.verticalAlign="super";var pt=re.offsetTop-y.offsetTop+2;return We.removeChild(y),{baseline:ht,middle:pt}},b.prototype.getMetrics=function(d,w){var y=d+" "+w;return typeof this._data[y]=="undefined"&&(this._data[y]=this.parseMetrics(d,w)),this._data[y]},b}(),zd=function(){function b(d,w){this.context=d,this.options=w}return b}(),ua=1e4,sl=function(b){C(d,b);function d(w,y){var re=b.call(this,w,y)||this;return re._activeEffects=[],re.canvas=y.canvas?y.canvas:document.createElement("canvas"),re.ctx=re.canvas.getContext("2d"),y.canvas||(re.canvas.width=Math.floor(y.width*y.scale),re.canvas.height=Math.floor(y.height*y.scale),re.canvas.style.width=y.width+"px",re.canvas.style.height=y.height+"px"),re.fontMetrics=new jd(document),re.ctx.scale(re.options.scale,re.options.scale),re.ctx.translate(-y.x,-y.y),re.ctx.textBaseline="bottom",re._activeEffects=[],re.context.logger.debug("Canvas renderer initialized ("+y.width+"x"+y.height+") with scale "+y.scale),re}return d.prototype.applyEffects=function(w){for(var y=this;this._activeEffects.length;)this.popEffect();w.forEach(function(re){return y.applyEffect(re)})},d.prototype.applyEffect=function(w){this.ctx.save(),hc(w)&&(this.ctx.globalAlpha=w.opacity),Hd(w)&&(this.ctx.translate(w.offsetX,w.offsetY),this.ctx.transform(w.matrix[0],w.matrix[1],w.matrix[2],w.matrix[3],w.matrix[4],w.matrix[5]),this.ctx.translate(-w.offsetX,-w.offsetY)),R0(w)&&(this.path(w.path),this.ctx.clip()),this._activeEffects.push(w)},d.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},d.prototype.renderStack=function(w){return Ae(this,void 0,void 0,function(){var y;return P(this,function(re){switch(re.label){case 0:return y=w.element.container.styles,y.isVisible()?[4,this.renderStackContent(w)]:[3,2];case 1:re.sent(),re.label=2;case 2:return[2]}})})},d.prototype.renderNode=function(w){return Ae(this,void 0,void 0,function(){return P(this,function(y){switch(y.label){case 0:if(si(w.container.flags,16))debugger;return w.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(w)]:[3,3];case 1:return y.sent(),[4,this.renderNodeContent(w)];case 2:y.sent(),y.label=3;case 3:return[2]}})})},d.prototype.renderTextWithLetterSpacing=function(w,y,re){var Ee=this;if(y===0)this.ctx.fillText(w.text,w.bounds.left,w.bounds.top+re);else{var We=bo(w.text);We.reduce(function(ht,pt){return Ee.ctx.fillText(pt,ht,w.bounds.top+re),ht+Ee.ctx.measureText(pt).width},w.bounds.left)}},d.prototype.createFontStyle=function(w){var y=w.fontVariant.filter(function(We){return We==="normal"||We==="small-caps"}).join(""),re=$d(w.fontFamily).join(", "),Ee=Fs(w.fontSize)?""+w.fontSize.number+w.fontSize.unit:w.fontSize.number+"px";return[[w.fontStyle,y,w.fontWeight,Ee,re].join(" "),re,Ee]},d.prototype.renderTextNode=function(w,y){return Ae(this,void 0,void 0,function(){var re,Ee,We,ht,pt,tr,cr,hr,qr=this;return P(this,function(Ri){return re=this.createFontStyle(y),Ee=re[0],We=re[1],ht=re[2],this.ctx.font=Ee,this.ctx.direction=y.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",pt=this.fontMetrics.getMetrics(We,ht),tr=pt.baseline,cr=pt.middle,hr=y.paintOrder,w.textBounds.forEach(function(Rn){hr.forEach(function(mi){switch(mi){case 0:qr.ctx.fillStyle=No(y.color),qr.renderTextWithLetterSpacing(Rn,y.letterSpacing,tr);var Va=y.textShadow;Va.length&&Rn.text.trim().length&&(Va.slice(0).reverse().forEach(function(ea){qr.ctx.shadowColor=No(ea.color),qr.ctx.shadowOffsetX=ea.offsetX.number*qr.options.scale,qr.ctx.shadowOffsetY=ea.offsetY.number*qr.options.scale,qr.ctx.shadowBlur=ea.blur.number,qr.renderTextWithLetterSpacing(Rn,y.letterSpacing,tr)}),qr.ctx.shadowColor="",qr.ctx.shadowOffsetX=0,qr.ctx.shadowOffsetY=0,qr.ctx.shadowBlur=0),y.textDecorationLine.length&&(qr.ctx.fillStyle=No(y.textDecorationColor||y.color),y.textDecorationLine.forEach(function(ea){switch(ea){case 1:qr.ctx.fillRect(Rn.bounds.left,Math.round(Rn.bounds.top+tr),Rn.bounds.width,1);break;case 2:qr.ctx.fillRect(Rn.bounds.left,Math.round(Rn.bounds.top),Rn.bounds.width,1);break;case 3:qr.ctx.fillRect(Rn.bounds.left,Math.ceil(Rn.bounds.top+cr),Rn.bounds.width,1);break}}));break;case 1:y.webkitTextStrokeWidth&&Rn.text.trim().length&&(qr.ctx.strokeStyle=No(y.webkitTextStrokeColor),qr.ctx.lineWidth=y.webkitTextStrokeWidth,qr.ctx.lineJoin=window.chrome?"miter":"round",qr.ctx.strokeText(Rn.text,Rn.bounds.left,Rn.bounds.top+tr)),qr.ctx.strokeStyle="",qr.ctx.lineWidth=0,qr.ctx.lineJoin="miter";break}})}),[2]})})},d.prototype.renderReplacedElement=function(w,y,re){if(re&&w.intrinsicWidth>0&&w.intrinsicHeight>0){var Ee=Ol(w),We=U0(y);this.path(We),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(re,0,0,w.intrinsicWidth,w.intrinsicHeight,Ee.left,Ee.top,Ee.width,Ee.height),this.ctx.restore()}},d.prototype.renderNodeContent=function(w){return Ae(this,void 0,void 0,function(){var y,re,Ee,We,ht,pt,Yi,Yi,tr,cr,hr,qr,oo,Ri,Rn,Ia,mi,Va,ea,Yi,Oa,oo,Ia;return P(this,function(Di){switch(Di.label){case 0:this.applyEffects(w.getEffects(4)),y=w.container,re=w.curves,Ee=y.styles,We=0,ht=y.textNodes,Di.label=1;case 1:return We<ht.length?(pt=ht[We],[4,this.renderTextNode(pt,Ee)]):[3,4];case 2:Di.sent(),Di.label=3;case 3:return We++,[3,1];case 4:if(!(y instanceof E0))return[3,8];Di.label=5;case 5:return Di.trys.push([5,7,,8]),[4,this.context.cache.match(y.src)];case 6:return Yi=Di.sent(),this.renderReplacedElement(y,re,Yi),[3,8];case 7:return Di.sent(),this.context.logger.error("Error loading image "+y.src),[3,8];case 8:if(y instanceof Eo&&this.renderReplacedElement(y,re,y.canvas),!(y instanceof yf))return[3,12];Di.label=9;case 9:return Di.trys.push([9,11,,12]),[4,this.context.cache.match(y.svg)];case 10:return Yi=Di.sent(),this.renderReplacedElement(y,re,Yi),[3,12];case 11:return Di.sent(),this.context.logger.error("Error loading svg "+y.svg.substring(0,255)),[3,12];case 12:return y instanceof Fh&&y.tree?(tr=new d(this.context,{scale:this.options.scale,backgroundColor:y.backgroundColor,x:0,y:0,width:y.width,height:y.height}),[4,tr.render(y.tree)]):[3,14];case 13:cr=Di.sent(),y.width&&y.height&&this.ctx.drawImage(cr,0,0,y.width,y.height,y.bounds.left,y.bounds.top,y.bounds.width,y.bounds.height),Di.label=14;case 14:if(y instanceof Jl&&(hr=Math.min(y.bounds.width,y.bounds.height),y.type===I0?y.checked&&(this.ctx.save(),this.path([new ki(y.bounds.left+hr*.39363,y.bounds.top+hr*.79),new ki(y.bounds.left+hr*.16,y.bounds.top+hr*.5549),new ki(y.bounds.left+hr*.27347,y.bounds.top+hr*.44071),new ki(y.bounds.left+hr*.39694,y.bounds.top+hr*.5649),new ki(y.bounds.left+hr*.72983,y.bounds.top+hr*.23),new ki(y.bounds.left+hr*.84,y.bounds.top+hr*.34085),new ki(y.bounds.left+hr*.39363,y.bounds.top+hr*.79)]),this.ctx.fillStyle=No(F0),this.ctx.fill(),this.ctx.restore()):y.type===Ud&&y.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(y.bounds.left+hr/2,y.bounds.top+hr/2,hr/4,0,Math.PI*2,!0),this.ctx.fillStyle=No(F0),this.ctx.fill(),this.ctx.restore())),If(y)&&y.value.length){switch(qr=this.createFontStyle(Ee),oo=qr[0],Ri=qr[1],Rn=this.fontMetrics.getMetrics(oo,Ri).baseline,this.ctx.font=oo,this.ctx.fillStyle=No(Ee.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=GA(y.styles.textAlign),Ia=Ol(y),mi=0,y.styles.textAlign){case 1:mi+=Ia.width/2;break;case 2:mi+=Ia.width;break}Va=Ia.add(mi,0,0,-Ia.height/2+1),this.ctx.save(),this.path([new ki(Ia.left,Ia.top),new ki(Ia.left+Ia.width,Ia.top),new ki(Ia.left+Ia.width,Ia.top+Ia.height),new ki(Ia.left,Ia.top+Ia.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Qc(y.value,Va),Ee.letterSpacing,Rn),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!si(y.styles.display,2048))return[3,20];if(y.styles.listStyleImage===null)return[3,19];if(ea=y.styles.listStyleImage,ea.type!==0)return[3,18];Yi=void 0,Oa=ea.url,Di.label=15;case 15:return Di.trys.push([15,17,,18]),[4,this.context.cache.match(Oa)];case 16:return Yi=Di.sent(),this.ctx.drawImage(Yi,y.bounds.left-(Yi.width+10),y.bounds.top),[3,18];case 17:return Di.sent(),this.context.logger.error("Error loading list-style-image "+Oa),[3,18];case 18:return[3,20];case 19:w.listValue&&y.styles.listStyleType!==-1&&(oo=this.createFontStyle(Ee)[0],this.ctx.font=oo,this.ctx.fillStyle=No(Ee.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Ia=new te(y.bounds.left,y.bounds.top+to(y.styles.paddingTop,y.bounds.width),y.bounds.width,$t(Ee.lineHeight,Ee.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Qc(w.listValue,Ia),Ee.letterSpacing,$t(Ee.lineHeight,Ee.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Di.label=20;case 20:return[2]}})})},d.prototype.renderStackContent=function(w){return Ae(this,void 0,void 0,function(){var y,re,ea,Ee,We,ea,ht,pt,ea,tr,cr,ea,hr,qr,ea,Ri,Rn,ea,mi,Va,ea;return P(this,function(Yi){switch(Yi.label){case 0:if(si(w.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(w.element)];case 1:Yi.sent(),y=0,re=w.negativeZIndex,Yi.label=2;case 2:return y<re.length?(ea=re[y],[4,this.renderStack(ea)]):[3,5];case 3:Yi.sent(),Yi.label=4;case 4:return y++,[3,2];case 5:return[4,this.renderNodeContent(w.element)];case 6:Yi.sent(),Ee=0,We=w.nonInlineLevel,Yi.label=7;case 7:return Ee<We.length?(ea=We[Ee],[4,this.renderNode(ea)]):[3,10];case 8:Yi.sent(),Yi.label=9;case 9:return Ee++,[3,7];case 10:ht=0,pt=w.nonPositionedFloats,Yi.label=11;case 11:return ht<pt.length?(ea=pt[ht],[4,this.renderStack(ea)]):[3,14];case 12:Yi.sent(),Yi.label=13;case 13:return ht++,[3,11];case 14:tr=0,cr=w.nonPositionedInlineLevel,Yi.label=15;case 15:return tr<cr.length?(ea=cr[tr],[4,this.renderStack(ea)]):[3,18];case 16:Yi.sent(),Yi.label=17;case 17:return tr++,[3,15];case 18:hr=0,qr=w.inlineLevel,Yi.label=19;case 19:return hr<qr.length?(ea=qr[hr],[4,this.renderNode(ea)]):[3,22];case 20:Yi.sent(),Yi.label=21;case 21:return hr++,[3,19];case 22:Ri=0,Rn=w.zeroOrAutoZIndexOrTransformedOrOpacity,Yi.label=23;case 23:return Ri<Rn.length?(ea=Rn[Ri],[4,this.renderStack(ea)]):[3,26];case 24:Yi.sent(),Yi.label=25;case 25:return Ri++,[3,23];case 26:mi=0,Va=w.positiveZIndex,Yi.label=27;case 27:return mi<Va.length?(ea=Va[mi],[4,this.renderStack(ea)]):[3,30];case 28:Yi.sent(),Yi.label=29;case 29:return mi++,[3,27];case 30:return[2]}})})},d.prototype.mask=function(w){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(w.slice(0).reverse()),this.ctx.closePath()},d.prototype.path=function(w){this.ctx.beginPath(),this.formatPath(w),this.ctx.closePath()},d.prototype.formatPath=function(w){var y=this;w.forEach(function(re,Ee){var We=fc(re)?re.start:re;Ee===0?y.ctx.moveTo(We.x,We.y):y.ctx.lineTo(We.x,We.y),fc(re)&&y.ctx.bezierCurveTo(re.startControl.x,re.startControl.y,re.endControl.x,re.endControl.y,re.end.x,re.end.y)})},d.prototype.renderRepeat=function(w,y,re,Ee){this.path(w),this.ctx.fillStyle=y,this.ctx.translate(re,Ee),this.ctx.fill(),this.ctx.translate(-re,-Ee)},d.prototype.resizeImage=function(w,y,re){var Ee;if(w.width===y&&w.height===re)return w;var We=(Ee=this.canvas.ownerDocument)!==null&&Ee!==void 0?Ee:document,ht=We.createElement("canvas");ht.width=Math.max(1,y),ht.height=Math.max(1,re);var pt=ht.getContext("2d");return pt.drawImage(w,0,0,w.width,w.height,0,0,y,re),ht},d.prototype.renderBackgroundImage=function(w){return Ae(this,void 0,void 0,function(){var y,re,Ee,We,ht,pt;return P(this,function(tr){switch(tr.label){case 0:y=w.styles.backgroundImage.length-1,re=function(cr){var hr,qr,Ri,ei,Yc,sA,yo,_c,Xa,Rn,ei,Yc,sA,yo,_c,mi,Va,ea,Yi,Oa,oo,Ia,Di,ko,Xa,Pa,ei,Ec,oA,yo,_c,pd,Yc,sA,Au,XA,uu,Pu,LA,Tu,Zd,JA;return P(this,function(md){switch(md.label){case 0:if(cr.type!==0)return[3,5];hr=void 0,qr=cr.url,md.label=1;case 1:return md.trys.push([1,3,,4]),[4,Ee.context.cache.match(qr)];case 2:return hr=md.sent(),[3,4];case 3:return md.sent(),Ee.context.logger.error("Error loading background-image "+qr),[3,4];case 4:return hr&&(Ri=Jc(w,y,[hr.width,hr.height,hr.width/hr.height]),ei=Ri[0],Yc=Ri[1],sA=Ri[2],yo=Ri[3],_c=Ri[4],Xa=Ee.ctx.createPattern(Ee.resizeImage(hr,yo,_c),"repeat"),Ee.renderRepeat(ei,Xa,Yc,sA)),[3,6];case 5:VA(cr)?(Rn=Jc(w,y,[null,null,null]),ei=Rn[0],Yc=Rn[1],sA=Rn[2],yo=Rn[3],_c=Rn[4],mi=Yu(cr.angle,yo,_c),Va=mi[0],ea=mi[1],Yi=mi[2],Oa=mi[3],oo=mi[4],Ia=document.createElement("canvas"),Ia.width=yo,Ia.height=_c,Di=Ia.getContext("2d"),ko=Di.createLinearGradient(ea,Oa,Yi,oo),cf(cr.stops,Va).forEach(function(Hc){return ko.addColorStop(Hc.stop,No(Hc.color))}),Di.fillStyle=ko,Di.fillRect(0,0,yo,_c),yo>0&&_c>0&&(Xa=Ee.ctx.createPattern(Ia,"repeat"),Ee.renderRepeat(ei,Xa,Yc,sA))):y0(cr)&&(Pa=Jc(w,y,[null,null,null]),ei=Pa[0],Ec=Pa[1],oA=Pa[2],yo=Pa[3],_c=Pa[4],pd=cr.position.length===0?[OA]:cr.position,Yc=to(pd[0],yo),sA=to(pd[pd.length-1],_c),Au=Xo(cr,Yc,sA,yo,_c),XA=Au[0],uu=Au[1],XA>0&&uu>0&&(Pu=Ee.ctx.createRadialGradient(Ec+Yc,oA+sA,0,Ec+Yc,oA+sA,XA),cf(cr.stops,XA*2).forEach(function(Hc){return Pu.addColorStop(Hc.stop,No(Hc.color))}),Ee.path(ei),Ee.ctx.fillStyle=Pu,XA!==uu?(LA=w.bounds.left+.5*w.bounds.width,Tu=w.bounds.top+.5*w.bounds.height,Zd=uu/XA,JA=1/Zd,Ee.ctx.save(),Ee.ctx.translate(LA,Tu),Ee.ctx.transform(1,0,0,Zd,0,0),Ee.ctx.translate(-LA,-Tu),Ee.ctx.fillRect(Ec,JA*(oA-Tu)+Tu,yo,_c*JA),Ee.ctx.restore()):Ee.ctx.fill())),md.label=6;case 6:return y--,[2]}})},Ee=this,We=0,ht=w.styles.backgroundImage.slice(0).reverse(),tr.label=1;case 1:return We<ht.length?(pt=ht[We],[5,re(pt)]):[3,4];case 2:tr.sent(),tr.label=3;case 3:return We++,[3,1];case 4:return[2]}})})},d.prototype.renderSolidBorder=function(w,y,re){return Ae(this,void 0,void 0,function(){return P(this,function(Ee){return this.path(Sc(re,y)),this.ctx.fillStyle=No(w),this.ctx.fill(),[2]})})},d.prototype.renderDoubleBorder=function(w,y,re,Ee){return Ae(this,void 0,void 0,function(){var We,ht;return P(this,function(pt){switch(pt.label){case 0:return y<3?[4,this.renderSolidBorder(w,re,Ee)]:[3,2];case 1:return pt.sent(),[2];case 2:return We=sc(Ee,re),this.path(We),this.ctx.fillStyle=No(w),this.ctx.fill(),ht=pc(Ee,re),this.path(ht),this.ctx.fill(),[2]}})})},d.prototype.renderNodeBackgroundAndBorders=function(w){return Ae(this,void 0,void 0,function(){var y,re,Ee,We,ht,pt,tr,cr,hr=this;return P(this,function(qr){switch(qr.label){case 0:return this.applyEffects(w.getEffects(2)),y=w.container.styles,re=!zo(y.backgroundColor)||y.backgroundImage.length,Ee=[{style:y.borderTopStyle,color:y.borderTopColor,width:y.borderTopWidth},{style:y.borderRightStyle,color:y.borderRightColor,width:y.borderRightWidth},{style:y.borderBottomStyle,color:y.borderBottomColor,width:y.borderBottomWidth},{style:y.borderLeftStyle,color:y.borderLeftColor,width:y.borderLeftWidth}],We=hd(iA(y.backgroundClip,0),w.curves),re||y.boxShadow.length?(this.ctx.save(),this.path(We),this.ctx.clip(),zo(y.backgroundColor)||(this.ctx.fillStyle=No(y.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(w.container)]):[3,2];case 1:qr.sent(),this.ctx.restore(),y.boxShadow.slice(0).reverse().forEach(function(Ri){hr.ctx.save();var Rn=Ys(w.curves),mi=Ri.inset?0:ua,Va=Cp(Rn,-mi+(Ri.inset?1:-1)*Ri.spread.number,(Ri.inset?1:-1)*Ri.spread.number,Ri.spread.number*(Ri.inset?-2:2),Ri.spread.number*(Ri.inset?-2:2));Ri.inset?(hr.path(Rn),hr.ctx.clip(),hr.mask(Va)):(hr.mask(Rn),hr.ctx.clip(),hr.path(Va)),hr.ctx.shadowOffsetX=Ri.offsetX.number+mi,hr.ctx.shadowOffsetY=Ri.offsetY.number,hr.ctx.shadowColor=No(Ri.color),hr.ctx.shadowBlur=Ri.blur.number,hr.ctx.fillStyle=Ri.inset?No(Ri.color):"rgba(0,0,0,1)",hr.ctx.fill(),hr.ctx.restore()}),qr.label=2;case 2:ht=0,pt=0,tr=Ee,qr.label=3;case 3:return pt<tr.length?(cr=tr[pt],cr.style!==0&&!zo(cr.color)&&cr.width>0?cr.style!==2?[3,5]:[4,this.renderDashedDottedBorder(cr.color,cr.width,ht,w.curves,2)]:[3,11]):[3,13];case 4:return qr.sent(),[3,11];case 5:return cr.style!==3?[3,7]:[4,this.renderDashedDottedBorder(cr.color,cr.width,ht,w.curves,3)];case 6:return qr.sent(),[3,11];case 7:return cr.style!==4?[3,9]:[4,this.renderDoubleBorder(cr.color,cr.width,ht,w.curves)];case 8:return qr.sent(),[3,11];case 9:return[4,this.renderSolidBorder(cr.color,ht,w.curves)];case 10:qr.sent(),qr.label=11;case 11:ht++,qr.label=12;case 12:return pt++,[3,3];case 13:return[2]}})})},d.prototype.renderDashedDottedBorder=function(w,y,re,Ee,We){return Ae(this,void 0,void 0,function(){var ht,pt,tr,cr,hr,qr,Ri,Rn,mi,Va,ea,Yi,Oa,oo,Ia,Di,Ia,Di;return P(this,function(ko){return this.ctx.save(),ht=sm(Ee,re),pt=Sc(Ee,re),We===2&&(this.path(pt),this.ctx.clip()),fc(pt[0])?(tr=pt[0].start.x,cr=pt[0].start.y):(tr=pt[0].x,cr=pt[0].y),fc(pt[1])?(hr=pt[1].end.x,qr=pt[1].end.y):(hr=pt[1].x,qr=pt[1].y),re===0||re===2?Ri=Math.abs(tr-hr):Ri=Math.abs(cr-qr),this.ctx.beginPath(),We===3?this.formatPath(ht):this.formatPath(pt.slice(0,2)),Rn=y<3?y*3:y*2,mi=y<3?y*2:y,We===3&&(Rn=y,mi=y),Va=!0,Ri<=Rn*2?Va=!1:Ri<=Rn*2+mi?(ea=Ri/(2*Rn+mi),Rn*=ea,mi*=ea):(Yi=Math.floor((Ri+mi)/(Rn+mi)),Oa=(Ri-Yi*Rn)/(Yi-1),oo=(Ri-(Yi+1)*Rn)/Yi,mi=oo<=0||Math.abs(mi-Oa)<Math.abs(mi-oo)?Oa:oo),Va&&(We===3?this.ctx.setLineDash([0,Rn+mi]):this.ctx.setLineDash([Rn,mi])),We===3?(this.ctx.lineCap="round",this.ctx.lineWidth=y):this.ctx.lineWidth=y*2+1.1,this.ctx.strokeStyle=No(w),this.ctx.stroke(),this.ctx.setLineDash([]),We===2&&(fc(pt[0])&&(Ia=pt[3],Di=pt[0],this.ctx.beginPath(),this.formatPath([new ki(Ia.end.x,Ia.end.y),new ki(Di.start.x,Di.start.y)]),this.ctx.stroke()),fc(pt[1])&&(Ia=pt[1],Di=pt[2],this.ctx.beginPath(),this.formatPath([new ki(Ia.end.x,Ia.end.y),new ki(Di.start.x,Di.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},d.prototype.render=function(w){return Ae(this,void 0,void 0,function(){var y;return P(this,function(re){switch(re.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=No(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),y=Kc(w),[4,this.renderStack(y)];case 1:return re.sent(),this.applyEffects([]),[2,this.canvas]}})})},d}(zd),If=function(b){return b instanceof Yf||b instanceof ld?!0:b instanceof Jl&&b.type!==Ud&&b.type!==I0},hd=function(b,d){switch(b){case 0:return Ys(d);case 2:return $m(d);case 1:default:return U0(d)}},GA=function(b){switch(b){case 1:return"center";case 2:return"right";case 0:default:return"left"}},La=["-apple-system","system-ui"],$d=function(b){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?b.filter(function(d){return La.indexOf(d)===-1}):b},aA=function(b){C(d,b);function d(w,y){var re=b.call(this,w,y)||this;return re.canvas=y.canvas?y.canvas:document.createElement("canvas"),re.ctx=re.canvas.getContext("2d"),re.options=y,re.canvas.width=Math.floor(y.width*y.scale),re.canvas.height=Math.floor(y.height*y.scale),re.canvas.style.width=y.width+"px",re.canvas.style.height=y.height+"px",re.ctx.scale(re.options.scale,re.options.scale),re.ctx.translate(-y.x,-y.y),re.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+y.width+"x"+y.height+" at "+y.x+","+y.y+") with scale "+y.scale),re}return d.prototype.render=function(w){return Ae(this,void 0,void 0,function(){var y,re;return P(this,function(Ee){switch(Ee.label){case 0:return y=UA(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,w),[4,j0(y)];case 1:return re=Ee.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=No(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]}})})},d}(zd),j0=function(b){return new Promise(function(d,w){var y=new Image;y.onload=function(){d(y)},y.onerror=w,y.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(b))})},cu=function(){function b(d){var w=d.id,y=d.enabled;this.id=w,this.enabled=y,this.start=Date.now()}return b.prototype.debug=function(){for(var d=[],w=0;w<arguments.length;w++)d[w]=arguments[w];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Ne([this.id,this.getTime()+"ms"],d)):this.info.apply(this,d))},b.prototype.getTime=function(){return Date.now()-this.start},b.prototype.info=function(){for(var d=[],w=0;w<arguments.length;w++)d[w]=arguments[w];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Ne([this.id,this.getTime()+"ms"],d))},b.prototype.warn=function(){for(var d=[],w=0;w<arguments.length;w++)d[w]=arguments[w];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Ne([this.id,this.getTime()+"ms"],d)):this.info.apply(this,d))},b.prototype.error=function(){for(var d=[],w=0;w<arguments.length;w++)d[w]=arguments[w];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Ne([this.id,this.getTime()+"ms"],d)):this.info.apply(this,d))},b.instances={},b}(),Zm=function(){function b(d,w){var y;this.windowBounds=w,this.instanceName="#"+b.instanceCount++,this.logger=new cu({id:this.instanceName,enabled:d.logging}),this.cache=(y=d.cache)!==null&&y!==void 0?y:new FA(this,d)}return b.instanceCount=1,b}(),Vm=function(b,d){return d===void 0&&(d={}),Wm(b,d)};typeof window!="undefined"&&yp.setContext(window);var Wm=function(b,d){return Ae(void 0,void 0,void 0,function(){var w,y,re,Ee,We,ht,pt,tr,cr,hr,qr,Ri,Rn,mi,Va,ea,Yi,Oa,oo,Ia,ko,Di,ko,Xa,Pa,ei,Ec,oA,yo,_c,pd,Yc,sA,Au,XA,uu,Pu,LA,Tu,Zd;return P(this,function(JA){switch(JA.label){case 0:if(!b||typeof b!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(w=b.ownerDocument,!w)throw new Error("Element is not attached to a Document");if(y=w.defaultView,!y)throw new Error("Document is not attached to a Window");return re={allowTaint:(Xa=d.allowTaint)!==null&&Xa!==void 0?Xa:!1,imageTimeout:(Pa=d.imageTimeout)!==null&&Pa!==void 0?Pa:15e3,proxy:d.proxy,useCORS:(ei=d.useCORS)!==null&&ei!==void 0?ei:!1},Ee=pe({logging:(Ec=d.logging)!==null&&Ec!==void 0?Ec:!0,cache:d.cache},re),We={windowWidth:(oA=d.windowWidth)!==null&&oA!==void 0?oA:y.innerWidth,windowHeight:(yo=d.windowHeight)!==null&&yo!==void 0?yo:y.innerHeight,scrollX:(_c=d.scrollX)!==null&&_c!==void 0?_c:y.pageXOffset,scrollY:(pd=d.scrollY)!==null&&pd!==void 0?pd:y.pageYOffset},ht=new te(We.scrollX,We.scrollY,We.windowWidth,We.windowHeight),pt=new Zm(Ee,ht),tr=(Yc=d.foreignObjectRendering)!==null&&Yc!==void 0?Yc:!1,cr={allowTaint:(sA=d.allowTaint)!==null&&sA!==void 0?sA:!1,onclone:d.onclone,ignoreElements:d.ignoreElements,inlineImages:tr,copyStyles:tr},pt.logger.debug("Starting document clone with size "+ht.width+"x"+ht.height+" scrolled to "+-ht.left+","+-ht.top),hr=new N0(pt,b,cr),qr=hr.clonedReferenceElement,qr?[4,hr.toIFrame(w,ht)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return Ri=JA.sent(),Rn=Ls(qr)||Um(qr)?S(qr.ownerDocument):W(pt,qr),mi=Rn.width,Va=Rn.height,ea=Rn.left,Yi=Rn.top,Oa=Yl(pt,qr,d.backgroundColor),oo={canvas:d.canvas,backgroundColor:Oa,scale:(XA=(Au=d.scale)!==null&&Au!==void 0?Au:y.devicePixelRatio)!==null&&XA!==void 0?XA:1,x:((uu=d.x)!==null&&uu!==void 0?uu:0)+ea,y:((Pu=d.y)!==null&&Pu!==void 0?Pu:0)+Yi,width:(LA=d.width)!==null&&LA!==void 0?LA:Math.ceil(mi),height:(Tu=d.height)!==null&&Tu!==void 0?Tu:Math.ceil(Va)},tr?(pt.logger.debug("Document cloned, using foreign object rendering"),ko=new aA(pt,oo),[4,ko.render(qr)]):[3,3];case 2:return Ia=JA.sent(),[3,5];case 3:return pt.logger.debug("Document cloned, element located at "+ea+","+Yi+" with size "+mi+"x"+Va+" using computed rendering"),pt.logger.debug("Starting DOM parsing"),Di=pp(pt,qr),Oa===Di.styles.backgroundColor&&(Di.styles.backgroundColor=rl.TRANSPARENT),pt.logger.debug("Starting renderer for element at "+oo.x+","+oo.y+" with size "+oo.width+"x"+oo.height),ko=new sl(pt,oo),[4,ko.render(Di)];case 4:Ia=JA.sent(),JA.label=5;case 5:return(!((Zd=d.removeContainer)!==null&&Zd!==void 0)||Zd)&&(N0.destroy(Ri)||pt.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),pt.logger.debug("Finished rendering"),[2,Ia]}})})},Yl=function(b,d,w){var y=d.ownerDocument,re=y.documentElement?eA(b,getComputedStyle(y.documentElement).backgroundColor):rl.TRANSPARENT,Ee=y.body?eA(b,getComputedStyle(y.body).backgroundColor):rl.TRANSPARENT,We=typeof w=="string"?eA(b,w):w===null?rl.TRANSPARENT:4294967295;return d===y.documentElement?zo(re)?zo(Ee)?We:Ee:re:We};return Vm})},44164:function(dn,Ut,C){var pe=C(97671);(function(P,Ne){dn.exports=Ne(C(65355),C(64270))})(self,function(Ae,P){return function(){var Ne={"./src/plugin/hyperlinks.js":function(g,F,v){"use strict";v.r(F);var $=v("./node_modules/core-js/modules/web.dom-collections.for-each.js"),_=v.n($),M=v("./node_modules/core-js/modules/es.string.link.js"),O=v.n(M),T=v("./src/worker.js"),L=v("./src/utils.js"),q=[],R={toContainer:T.default.prototype.toContainer,toPdf:T.default.prototype.toPdf};T.default.prototype.toContainer=function(){return R.toContainer.call(this).then(function(){if(this.opt.enableLinks){var J=this.prop.container,G=J.querySelectorAll("a"),K=(0,L.unitConvert)(J.getBoundingClientRect(),this.prop.pageSize.k);q=[],Array.prototype.forEach.call(G,function(le){for(var me=le.getClientRects(),Oe=0;Oe<me.length;Oe++){var Ce=(0,L.unitConvert)(me[Oe],this.prop.pageSize.k);Ce.left-=K.left,Ce.top-=K.top;var Ue=Math.floor(Ce.top/this.prop.pageSize.inner.height)+1,ee=this.opt.margin[0]+Ce.top%this.prop.pageSize.inner.height,de=this.opt.margin[1]+Ce.left;q.push({page:Ue,top:ee,left:de,clientRect:Ce,link:le})}},this)}})},T.default.prototype.toPdf=function(){return R.toPdf.call(this).then(function(){if(this.opt.enableLinks){q.forEach(function(G){this.prop.pdf.setPage(G.page),this.prop.pdf.link(G.left,G.top,G.clientRect.width,G.clientRect.height,{url:G.link.href})},this);var J=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(J)}})}},"./src/plugin/jspdf-plugin.js":function(g,F,v){"use strict";v.r(F);var $=v("./node_modules/core-js/modules/es.symbol.js"),_=v.n($),M=v("./node_modules/core-js/modules/es.symbol.description.js"),O=v.n(M),T=v("./node_modules/core-js/modules/es.object.to-string.js"),L=v.n(T),q=v("./node_modules/core-js/modules/es.symbol.iterator.js"),R=v.n(q),se=v("./node_modules/core-js/modules/es.array.iterator.js"),ne=v.n(se),J=v("./node_modules/core-js/modules/es.string.iterator.js"),G=v.n(J),K=v("./node_modules/core-js/modules/web.dom-collections.iterator.js"),le=v.n(K),me=v("jspdf"),Oe=v.n(me);function Ce(Ue){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ce=function(de){return typeof de}:Ce=function(de){return de&&typeof Symbol=="function"&&de.constructor===Symbol&&de!==Symbol.prototype?"symbol":typeof de},Ce(Ue)}me.jsPDF.getPageSize=function(Ue,ee,de){if(Ce(Ue)==="object"){var D=Ue;Ue=D.orientation,ee=D.unit||ee,de=D.format||de}ee=ee||"mm",de=de||"a4",Ue=(""+(Ue||"P")).toLowerCase();var Ye=(""+de).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(ee){case"pt":var xe=1;break;case"mm":var xe=72/25.4;break;case"cm":var xe=72/2.54;break;case"in":var xe=72;break;case"px":var xe=72/96;break;case"pc":var xe=12;break;case"em":var xe=12;break;case"ex":var xe=6;break;default:throw"Invalid unit: "+ee}if(ke.hasOwnProperty(Ye))var Te=ke[Ye][1]/xe,ve=ke[Ye][0]/xe;else try{var Te=de[1],ve=de[0]}catch(Se){throw new Error("Invalid format: "+de)}if(Ue==="p"||Ue==="portrait"){if(Ue="p",ve>Te){var De=ve;ve=Te,Te=De}}else if(Ue==="l"||Ue==="landscape"){if(Ue="l",Te>ve){var De=ve;ve=Te,Te=De}}else throw"Invalid orientation: "+Ue;var he={width:ve,height:Te,unit:ee,k:xe};return he},F.default=me.jsPDF},"./src/plugin/pagebreaks.js":function(g,F,v){"use strict";v.r(F);var $=v("./node_modules/core-js/modules/es.array.concat.js"),_=v.n($),M=v("./node_modules/core-js/modules/es.array.slice.js"),O=v.n(M),T=v("./node_modules/core-js/modules/es.array.join.js"),L=v.n(T),q=v("./node_modules/core-js/modules/web.dom-collections.for-each.js"),R=v.n(q),se=v("./node_modules/core-js/modules/es.object.keys.js"),ne=v.n(se),J=v("./src/worker.js"),G=v("./src/utils.js"),K={toContainer:J.default.prototype.toContainer};J.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},J.default.prototype.toContainer=function(){return K.toContainer.call(this).then(function(){var Oe=this.prop.container,Ce=this.prop.pageSize.inner.px.height,Ue=[].concat(this.opt.pagebreak.mode),ee={avoidAll:Ue.indexOf("avoid-all")!==-1,css:Ue.indexOf("css")!==-1,legacy:Ue.indexOf("legacy")!==-1},de={},D=this;["before","after","avoid"].forEach(function(xe){var Te=ee.avoidAll&&xe==="avoid";de[xe]=Te?[]:[].concat(D.opt.pagebreak[xe]||[]),de[xe].length>0&&(de[xe]=Array.prototype.slice.call(Oe.querySelectorAll(de[xe].join(", "))))});var Ye=Oe.querySelectorAll(".html2pdf__page-break");Ye=Array.prototype.slice.call(Ye);var ke=Oe.querySelectorAll("*");Array.prototype.forEach.call(ke,function(Te){var ve={before:!1,after:ee.legacy&&Ye.indexOf(Te)!==-1,avoid:ee.avoidAll};if(ee.css){var De=window.getComputedStyle(Te),he=["always","page","left","right"],Se=["avoid","avoid-page"];ve={before:ve.before||he.indexOf(De.breakBefore||De.pageBreakBefore)!==-1,after:ve.after||he.indexOf(De.breakAfter||De.pageBreakAfter)!==-1,avoid:ve.avoid||Se.indexOf(De.breakInside||De.pageBreakInside)!==-1}}Object.keys(ve).forEach(function(kt){ve[kt]=ve[kt]||de[kt].indexOf(Te)!==-1});var Xe=Te.getBoundingClientRect();if(ve.avoid&&!ve.before){var et=Math.floor(Xe.top/Ce),je=Math.floor(Xe.bottom/Ce),qe=Math.abs(Xe.bottom-Xe.top)/Ce;je!==et&&qe<=1&&(ve.before=!0)}if(ve.before){var Et=(0,G.createElement)("div",{style:{display:"block",height:Ce-Xe.top%Ce+"px"}});Te.parentNode.insertBefore(Et,Te)}if(ve.after){var Et=(0,G.createElement)("div",{style:{display:"block",height:Ce-Xe.bottom%Ce+"px"}});Te.parentNode.insertBefore(Et,Te.nextSibling)}})})}},"./src/utils.js":function(g,F,v){"use strict";v.r(F),v.d(F,{objType:function(){return Ue},createElement:function(){return ee},cloneNode:function(){return de},unitConvert:function(){return D},toPx:function(){return Ye}});var $=v("./node_modules/core-js/modules/es.number.constructor.js"),_=v.n($),M=v("./node_modules/core-js/modules/es.symbol.js"),O=v.n(M),T=v("./node_modules/core-js/modules/es.symbol.description.js"),L=v.n(T),q=v("./node_modules/core-js/modules/es.object.to-string.js"),R=v.n(q),se=v("./node_modules/core-js/modules/es.symbol.iterator.js"),ne=v.n(se),J=v("./node_modules/core-js/modules/es.array.iterator.js"),G=v.n(J),K=v("./node_modules/core-js/modules/es.string.iterator.js"),le=v.n(K),me=v("./node_modules/core-js/modules/web.dom-collections.iterator.js"),Oe=v.n(me);function Ce(ke){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ce=function(Te){return typeof Te}:Ce=function(Te){return Te&&typeof Symbol=="function"&&Te.constructor===Symbol&&Te!==Symbol.prototype?"symbol":typeof Te},Ce(ke)}var Ue=function(xe){var Te=Ce(xe);return Te==="undefined"?"undefined":Te==="string"||xe instanceof String?"string":Te==="number"||xe instanceof Number?"number":Te==="function"||xe instanceof Function?"function":xe&&xe.constructor===Array?"array":xe&&xe.nodeType===1?"element":Te==="object"?"object":"unknown"},ee=function(xe,Te){var ve=document.createElement(xe);if(Te.className&&(ve.className=Te.className),Te.innerHTML){ve.innerHTML=Te.innerHTML;for(var De=ve.getElementsByTagName("script"),he=De.length;he-- >0;null)De[he].parentNode.removeChild(De[he])}for(var Se in Te.style)ve.style[Se]=Te.style[Se];return ve},de=function ke(xe,Te){for(var ve=xe.nodeType===3?document.createTextNode(xe.nodeValue):xe.cloneNode(!1),De=xe.firstChild;De;De=De.nextSibling)(Te===!0||De.nodeType!==1||De.nodeName!=="SCRIPT")&&ve.appendChild(ke(De,Te));return xe.nodeType===1&&(xe.nodeName==="CANVAS"?(ve.width=xe.width,ve.height=xe.height,ve.getContext("2d").drawImage(xe,0,0)):(xe.nodeName==="TEXTAREA"||xe.nodeName==="SELECT")&&(ve.value=xe.value),ve.addEventListener("load",function(){ve.scrollTop=xe.scrollTop,ve.scrollLeft=xe.scrollLeft},!0)),ve},D=function(xe,Te){if(Ue(xe)==="number")return xe*72/96/Te;var ve={};for(var De in xe)ve[De]=xe[De]*72/96/Te;return ve},Ye=function(xe,Te){return Math.floor(xe*Te/72*96)}},"./src/worker.js":function(g,F,v){"use strict";v.r(F);var $=v("./node_modules/core-js/modules/es.object.assign.js"),_=v.n($),M=v("./node_modules/core-js/modules/es.array.map.js"),O=v.n(M),T=v("./node_modules/core-js/modules/es.object.keys.js"),L=v.n(T),q=v("./node_modules/core-js/modules/es.array.concat.js"),R=v.n(q),se=v("./node_modules/core-js/modules/es.object.to-string.js"),ne=v.n(se),J=v("./node_modules/core-js/modules/es.regexp.to-string.js"),G=v.n(J),K=v("./node_modules/core-js/modules/es.function.name.js"),le=v.n(K),me=v("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Oe=v.n(me),Ce=v("jspdf"),Ue=v.n(Ce),ee=v("html2canvas"),de=v.n(ee),D=v("./src/utils.js"),Ye=v("./node_modules/es6-promise/dist/es6-promise.js"),ke=v.n(Ye),xe=ke().Promise,Te=function ve(De){var he=Object.assign(ve.convert(xe.resolve()),JSON.parse(JSON.stringify(ve.template))),Se=ve.convert(xe.resolve(),he);return Se=Se.setProgress(1,ve,1,[ve]),Se=Se.set(De),Se};Te.prototype=Object.create(xe.prototype),Te.prototype.constructor=Te,Te.convert=function(De,he){return De.__proto__=he||Te.prototype,De},Te.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:{}}},Te.prototype.from=function(De,he){function Se(Xe){switch((0,D.objType)(Xe)){case"string":return"string";case"element":return Xe.nodeName.toLowerCase&&Xe.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(he=he||Se(De),he){case"string":return this.set({src:(0,D.createElement)("div",{innerHTML:De})});case"element":return this.set({src:De});case"canvas":return this.set({canvas:De});case"img":return this.set({img:De});default:return this.error("Unknown source type.")}})},Te.prototype.to=function(De){switch(De){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.")}},Te.prototype.toContainer=function(){var De=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(De).then(function(){var Se={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},Xe={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};Se.opacity=0;var et=(0,D.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,D.createElement)("div",{className:"html2pdf__overlay",style:Se}),this.prop.container=(0,D.createElement)("div",{className:"html2pdf__container",style:Xe}),this.prop.container.appendChild(et),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},Te.prototype.toCanvas=function(){var De=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(De).then(function(){var Se=Object.assign({},this.opt.html2canvas);return delete Se.onrendered,ee(this.prop.container,Se)}).then(function(Se){var Xe=this.opt.html2canvas.onrendered||function(){};Xe(Se),this.prop.canvas=Se,document.body.removeChild(this.prop.overlay)})},Te.prototype.toImg=function(){var De=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(De).then(function(){var Se=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Se})},Te.prototype.toPdf=function(){var De=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(De).then(function(){var Se=this.prop.canvas,Xe=this.opt,et=Se.height,je=Math.floor(Se.width*this.prop.pageSize.inner.ratio),qe=Math.ceil(et/je),Et=this.prop.pageSize.inner.height,kt=document.createElement("canvas"),Ot=kt.getContext("2d");kt.width=Se.width,kt.height=je,this.prop.pdf=this.prop.pdf||new Ce.jsPDF(Xe.jsPDF);for(var sr=0;sr<qe;sr++){sr===qe-1&&et%je!==0&&(kt.height=et%je,Et=kt.height*this.prop.pageSize.inner.width/kt.width);var rr=kt.width,br=kt.height;Ot.fillStyle="white",Ot.fillRect(0,0,rr,br),Ot.drawImage(Se,0,sr*je,rr,br,0,0,rr,br),sr&&this.prop.pdf.addPage();var lr=kt.toDataURL("image/"+Xe.image.type,Xe.image.quality);this.prop.pdf.addImage(lr,Xe.image.type,Xe.margin[1],Xe.margin[0],this.prop.pageSize.inner.width,Et)}})},Te.prototype.output=function(De,he,Se){return Se=Se||"pdf",Se.toLowerCase()==="img"||Se.toLowerCase()==="image"?this.outputImg(De,he):this.outputPdf(De,he)},Te.prototype.outputPdf=function(De,he){var Se=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(Se).then(function(){return this.prop.pdf.output(De,he)})},Te.prototype.outputImg=function(De,he){var Se=[function(){return this.prop.img||this.toImg()}];return this.thenList(Se).then(function(){switch(De){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 "'+De+'" is not supported.'}})},Te.prototype.save=function(De){var he=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(he).set(De?{filename:De}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},Te.prototype.set=function(De){if((0,D.objType)(De)!=="object")return this;var he=Object.keys(De||{}).map(function(Se){switch(Se){case"margin":return this.setMargin.bind(this,De.margin);case"jsPDF":return function(){return this.opt.jsPDF=De.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,De.pageSize);default:return Se in Te.template.prop?function(){this.prop[Se]=De[Se]}:function(){this.opt[Se]=De[Se]}}},this);return this.then(function(){return this.thenList(he)})},Te.prototype.get=function(De,he){return this.then(function(){var Xe=De in Te.template.prop?this.prop[De]:this.opt[De];return he?he(Xe):Xe})},Te.prototype.setMargin=function(De){return this.then(function(){switch((0,D.objType)(De)){case"number":De=[De,De,De,De];case"array":if(De.length===2&&(De=[De[0],De[1],De[0],De[1]]),De.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=De}).then(this.setPageSize)},Te.prototype.setPageSize=function(De){return this.then(function(){De=De||Ce.jsPDF.getPageSize(this.opt.jsPDF),De.hasOwnProperty("inner")||(De.inner={width:De.width-this.opt.margin[1]-this.opt.margin[3],height:De.height-this.opt.margin[0]-this.opt.margin[2]},De.inner.px={width:(0,D.toPx)(De.inner.width,De.k),height:(0,D.toPx)(De.inner.height,De.k)},De.inner.ratio=De.inner.height/De.inner.width),this.prop.pageSize=De})},Te.prototype.setProgress=function(De,he,Se,Xe){return De!=null&&(this.progress.val=De),he!=null&&(this.progress.state=he),Se!=null&&(this.progress.n=Se),Xe!=null&&(this.progress.stack=Xe),this.progress.ratio=this.progress.val/this.progress.state,this},Te.prototype.updateProgress=function(De,he,Se,Xe){return this.setProgress(De?this.progress.val+De:null,he||null,Se?this.progress.n+Se:null,Xe?this.progress.stack.concat(Xe):null)},Te.prototype.then=function(De,he){var Se=this;return this.thenCore(De,he,function(et,je){return Se.updateProgress(null,null,1,[et]),xe.prototype.then.call(this,function(Et){return Se.updateProgress(null,et),Et}).then(et,je).then(function(Et){return Se.updateProgress(1),Et})})},Te.prototype.thenCore=function(De,he,Se){Se=Se||xe.prototype.then;var Xe=this;De&&(De=De.bind(Xe)),he&&(he=he.bind(Xe));var et=xe.toString().indexOf("[native code]")!==-1&&xe.name==="Promise",je=et?Xe:Te.convert(Object.assign({},Xe),xe.prototype),qe=Se.call(je,De,he);return Te.convert(qe,Xe.__proto__)},Te.prototype.thenExternal=function(De,he){return xe.prototype.then.call(this,De,he)},Te.prototype.thenList=function(De){var he=this;return De.forEach(function(Xe){he=he.thenCore(Xe)}),he},Te.prototype.catch=function(ve){ve&&(ve=ve.bind(this));var De=xe.prototype.catch.call(this,ve);return Te.convert(De,this)},Te.prototype.catchExternal=function(De){return xe.prototype.catch.call(this,De)},Te.prototype.error=function(De){return this.then(function(){throw new Error(De)})},Te.prototype.using=Te.prototype.set,Te.prototype.saveAs=Te.prototype.save,Te.prototype.export=Te.prototype.output,Te.prototype.run=Te.prototype.then,F.default=Te},"./node_modules/core-js/internals/a-function.js":function(g){g.exports=function(F){if(typeof F!="function")throw TypeError(String(F)+" is not a function");return F}},"./node_modules/core-js/internals/a-possible-prototype.js":function(g,F,v){var $=v("./node_modules/core-js/internals/is-object.js");g.exports=function(_){if(!$(_)&&_!==null)throw TypeError("Can't set "+String(_)+" as a prototype");return _}},"./node_modules/core-js/internals/add-to-unscopables.js":function(g,F,v){var $=v("./node_modules/core-js/internals/well-known-symbol.js"),_=v("./node_modules/core-js/internals/object-create.js"),M=v("./node_modules/core-js/internals/object-define-property.js"),O=$("unscopables"),T=Array.prototype;T[O]==null&&M.f(T,O,{configurable:!0,value:_(null)}),g.exports=function(L){T[O][L]=!0}},"./node_modules/core-js/internals/an-object.js":function(g,F,v){var $=v("./node_modules/core-js/internals/is-object.js");g.exports=function(_){if(!$(_))throw TypeError(String(_)+" is not an object");return _}},"./node_modules/core-js/internals/array-for-each.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/array-iteration.js").forEach,_=v("./node_modules/core-js/internals/array-method-is-strict.js"),M=_("forEach");g.exports=M?[].forEach:function(T){return $(this,T,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-indexed-object.js"),_=v("./node_modules/core-js/internals/to-length.js"),M=v("./node_modules/core-js/internals/to-absolute-index.js"),O=function(T){return function(L,q,R){var se=$(L),ne=_(se.length),J=M(R,ne),G;if(T&&q!=q){for(;ne>J;)if(G=se[J++],G!=G)return!0}else for(;ne>J;J++)if((T||J in se)&&se[J]===q)return T||J||0;return!T&&-1}};g.exports={includes:O(!0),indexOf:O(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(g,F,v){var $=v("./node_modules/core-js/internals/function-bind-context.js"),_=v("./node_modules/core-js/internals/indexed-object.js"),M=v("./node_modules/core-js/internals/to-object.js"),O=v("./node_modules/core-js/internals/to-length.js"),T=v("./node_modules/core-js/internals/array-species-create.js"),L=[].push,q=function(R){var se=R==1,ne=R==2,J=R==3,G=R==4,K=R==6,le=R==7,me=R==5||K;return function(Oe,Ce,Ue,ee){for(var de=M(Oe),D=_(de),Ye=$(Ce,Ue,3),ke=O(D.length),xe=0,Te=ee||T,ve=se?Te(Oe,ke):ne||le?Te(Oe,0):void 0,De,he;ke>xe;xe++)if((me||xe in D)&&(De=D[xe],he=Ye(De,xe,de),R))if(se)ve[xe]=he;else if(he)switch(R){case 3:return!0;case 5:return De;case 6:return xe;case 2:L.call(ve,De)}else switch(R){case 4:return!1;case 7:L.call(ve,De)}return K?-1:J||G?G:ve}};g.exports={forEach:q(0),map:q(1),filter:q(2),some:q(3),every:q(4),find:q(5),findIndex:q(6),filterReject:q(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(g,F,v){var $=v("./node_modules/core-js/internals/fails.js"),_=v("./node_modules/core-js/internals/well-known-symbol.js"),M=v("./node_modules/core-js/internals/engine-v8-version.js"),O=_("species");g.exports=function(T){return M>=51||!$(function(){var L=[],q=L.constructor={};return q[O]=function(){return{foo:1}},L[T](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/fails.js");g.exports=function(_,M){var O=[][_];return!!O&&$(function(){O.call(null,M||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(g,F,v){var $=v("./node_modules/core-js/internals/is-object.js"),_=v("./node_modules/core-js/internals/is-array.js"),M=v("./node_modules/core-js/internals/well-known-symbol.js"),O=M("species");g.exports=function(T){var L;return _(T)&&(L=T.constructor,typeof L=="function"&&(L===Array||_(L.prototype))?L=void 0:$(L)&&(L=L[O],L===null&&(L=void 0))),L===void 0?Array:L}},"./node_modules/core-js/internals/array-species-create.js":function(g,F,v){var $=v("./node_modules/core-js/internals/array-species-constructor.js");g.exports=function(_,M){return new($(_))(M===0?0:M)}},"./node_modules/core-js/internals/classof-raw.js":function(g){var F={}.toString;g.exports=function(v){return F.call(v).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-string-tag-support.js"),_=v("./node_modules/core-js/internals/classof-raw.js"),M=v("./node_modules/core-js/internals/well-known-symbol.js"),O=M("toStringTag"),T=_(function(){return arguments}())=="Arguments",L=function(q,R){try{return q[R]}catch(se){}};g.exports=$?_:function(q){var R,se,ne;return q===void 0?"Undefined":q===null?"Null":typeof(se=L(R=Object(q),O))=="string"?se:T?_(R):(ne=_(R))=="Object"&&typeof R.callee=="function"?"Arguments":ne}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(g,F,v){var $=v("./node_modules/core-js/internals/has.js"),_=v("./node_modules/core-js/internals/own-keys.js"),M=v("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),O=v("./node_modules/core-js/internals/object-define-property.js");g.exports=function(T,L){for(var q=_(L),R=O.f,se=M.f,ne=0;ne<q.length;ne++){var J=q[ne];$(T,J)||R(T,J,se(L,J))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(g,F,v){var $=v("./node_modules/core-js/internals/fails.js");g.exports=!$(function(){function _(){}return _.prototype.constructor=null,Object.getPrototypeOf(new _)!==_.prototype})},"./node_modules/core-js/internals/create-html.js":function(g,F,v){var $=v("./node_modules/core-js/internals/require-object-coercible.js"),_=v("./node_modules/core-js/internals/to-string.js"),M=/"/g;g.exports=function(O,T,L,q){var R=_($(O)),se="<"+T;return L!==""&&(se+=" "+L+'="'+_(q).replace(M,"&quot;")+'"'),se+">"+R+"</"+T+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,_=v("./node_modules/core-js/internals/object-create.js"),M=v("./node_modules/core-js/internals/create-property-descriptor.js"),O=v("./node_modules/core-js/internals/set-to-string-tag.js"),T=v("./node_modules/core-js/internals/iterators.js"),L=function(){return this};g.exports=function(q,R,se){var ne=R+" Iterator";return q.prototype=_($,{next:M(1,se)}),O(q,ne,!1,!0),T[ne]=L,q}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(g,F,v){var $=v("./node_modules/core-js/internals/descriptors.js"),_=v("./node_modules/core-js/internals/object-define-property.js"),M=v("./node_modules/core-js/internals/create-property-descriptor.js");g.exports=$?function(O,T,L){return _.f(O,T,M(1,L))}:function(O,T,L){return O[T]=L,O}},"./node_modules/core-js/internals/create-property-descriptor.js":function(g){g.exports=function(F,v){return{enumerable:!(F&1),configurable:!(F&2),writable:!(F&4),value:v}}},"./node_modules/core-js/internals/create-property.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/to-property-key.js"),_=v("./node_modules/core-js/internals/object-define-property.js"),M=v("./node_modules/core-js/internals/create-property-descriptor.js");g.exports=function(O,T,L){var q=$(T);q in O?_.f(O,q,M(0,L)):O[q]=L}},"./node_modules/core-js/internals/define-iterator.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/create-iterator-constructor.js"),M=v("./node_modules/core-js/internals/object-get-prototype-of.js"),O=v("./node_modules/core-js/internals/object-set-prototype-of.js"),T=v("./node_modules/core-js/internals/set-to-string-tag.js"),L=v("./node_modules/core-js/internals/create-non-enumerable-property.js"),q=v("./node_modules/core-js/internals/redefine.js"),R=v("./node_modules/core-js/internals/well-known-symbol.js"),se=v("./node_modules/core-js/internals/is-pure.js"),ne=v("./node_modules/core-js/internals/iterators.js"),J=v("./node_modules/core-js/internals/iterators-core.js"),G=J.IteratorPrototype,K=J.BUGGY_SAFARI_ITERATORS,le=R("iterator"),me="keys",Oe="values",Ce="entries",Ue=function(){return this};g.exports=function(ee,de,D,Ye,ke,xe,Te){_(D,de,Ye);var ve=function(Ot){if(Ot===ke&&et)return et;if(!K&&Ot in Se)return Se[Ot];switch(Ot){case me:return function(){return new D(this,Ot)};case Oe:return function(){return new D(this,Ot)};case Ce:return function(){return new D(this,Ot)}}return function(){return new D(this)}},De=de+" Iterator",he=!1,Se=ee.prototype,Xe=Se[le]||Se["@@iterator"]||ke&&Se[ke],et=!K&&Xe||ve(ke),je=de=="Array"&&Se.entries||Xe,qe,Et,kt;if(je&&(qe=M(je.call(new ee)),G!==Object.prototype&&qe.next&&(!se&&M(qe)!==G&&(O?O(qe,G):typeof qe[le]!="function"&&L(qe,le,Ue)),T(qe,De,!0,!0),se&&(ne[De]=Ue))),ke==Oe&&Xe&&Xe.name!==Oe&&(he=!0,et=function(){return Xe.call(this)}),(!se||Te)&&Se[le]!==et&&L(Se,le,et),ne[de]=et,ke)if(Et={values:ve(Oe),keys:xe?et:ve(me),entries:ve(Ce)},Te)for(kt in Et)(K||he||!(kt in Se))&&q(Se,kt,Et[kt]);else $({target:de,proto:!0,forced:K||he},Et);return Et}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(g,F,v){var $=v("./node_modules/core-js/internals/path.js"),_=v("./node_modules/core-js/internals/has.js"),M=v("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),O=v("./node_modules/core-js/internals/object-define-property.js").f;g.exports=function(T){var L=$.Symbol||($.Symbol={});_(L,T)||O(L,T,{value:M.f(T)})}},"./node_modules/core-js/internals/descriptors.js":function(g,F,v){var $=v("./node_modules/core-js/internals/fails.js");g.exports=!$(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/is-object.js"),M=$.document,O=_(M)&&_(M.createElement);g.exports=function(T){return O?M.createElement(T):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(g){g.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(g,F,v){var $=v("./node_modules/core-js/internals/get-built-in.js");g.exports=$("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/engine-user-agent.js"),M=$.process,O=$.Deno,T=M&&M.versions||O&&O.version,L=T&&T.v8,q,R;L?(q=L.split("."),R=q[0]<4?1:q[0]+q[1]):_&&(q=_.match(/Edge\/(\d+)/),(!q||q[1]>=74)&&(q=_.match(/Chrome\/(\d+)/),q&&(R=q[1]))),g.exports=R&&+R},"./node_modules/core-js/internals/enum-bug-keys.js":function(g){g.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,M=v("./node_modules/core-js/internals/create-non-enumerable-property.js"),O=v("./node_modules/core-js/internals/redefine.js"),T=v("./node_modules/core-js/internals/set-global.js"),L=v("./node_modules/core-js/internals/copy-constructor-properties.js"),q=v("./node_modules/core-js/internals/is-forced.js");g.exports=function(R,se){var ne=R.target,J=R.global,G=R.stat,K,le,me,Oe,Ce,Ue;if(J?le=$:G?le=$[ne]||T(ne,{}):le=($[ne]||{}).prototype,le)for(me in se){if(Ce=se[me],R.noTargetGet?(Ue=_(le,me),Oe=Ue&&Ue.value):Oe=le[me],K=q(J?me:ne+(G?".":"#")+me,R.forced),!K&&Oe!==void 0){if(typeof Ce==typeof Oe)continue;L(Ce,Oe)}(R.sham||Oe&&Oe.sham)&&M(Ce,"sham",!0),O(le,me,Ce,R)}}},"./node_modules/core-js/internals/fails.js":function(g){g.exports=function(F){try{return!!F()}catch(v){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(g,F,v){var $=v("./node_modules/core-js/internals/a-function.js");g.exports=function(_,M,O){if($(_),M===void 0)return _;switch(O){case 0:return function(){return _.call(M)};case 1:return function(T){return _.call(M,T)};case 2:return function(T,L){return _.call(M,T,L)};case 3:return function(T,L,q){return _.call(M,T,L,q)}}return function(){return _.apply(M,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=function(M){return typeof M=="function"?M:void 0};g.exports=function(M,O){return arguments.length<2?_($[M]):$[M]&&$[M][O]}},"./node_modules/core-js/internals/global.js":function(g){var F=function(v){return v&&v.Math==Math&&v};g.exports=F(typeof globalThis=="object"&&globalThis)||F(typeof window=="object"&&window)||F(typeof self=="object"&&self)||F(typeof C.g=="object"&&C.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-object.js"),_={}.hasOwnProperty;g.exports=Object.hasOwn||function(O,T){return _.call($(O),T)}},"./node_modules/core-js/internals/hidden-keys.js":function(g){g.exports={}},"./node_modules/core-js/internals/html.js":function(g,F,v){var $=v("./node_modules/core-js/internals/get-built-in.js");g.exports=$("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(g,F,v){var $=v("./node_modules/core-js/internals/descriptors.js"),_=v("./node_modules/core-js/internals/fails.js"),M=v("./node_modules/core-js/internals/document-create-element.js");g.exports=!$&&!_(function(){return Object.defineProperty(M("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(g,F,v){var $=v("./node_modules/core-js/internals/fails.js"),_=v("./node_modules/core-js/internals/classof-raw.js"),M="".split;g.exports=$(function(){return!Object("z").propertyIsEnumerable(0)})?function(O){return _(O)=="String"?M.call(O,""):Object(O)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(g,F,v){var $=v("./node_modules/core-js/internals/is-object.js"),_=v("./node_modules/core-js/internals/object-set-prototype-of.js");g.exports=function(M,O,T){var L,q;return _&&typeof(L=O.constructor)=="function"&&L!==T&&$(q=L.prototype)&&q!==T.prototype&&_(M,q),M}},"./node_modules/core-js/internals/inspect-source.js":function(g,F,v){var $=v("./node_modules/core-js/internals/shared-store.js"),_=Function.toString;typeof $.inspectSource!="function"&&($.inspectSource=function(M){return _.call(M)}),g.exports=$.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(g,F,v){var $=v("./node_modules/core-js/internals/native-weak-map.js"),_=v("./node_modules/core-js/internals/global.js"),M=v("./node_modules/core-js/internals/is-object.js"),O=v("./node_modules/core-js/internals/create-non-enumerable-property.js"),T=v("./node_modules/core-js/internals/has.js"),L=v("./node_modules/core-js/internals/shared-store.js"),q=v("./node_modules/core-js/internals/shared-key.js"),R=v("./node_modules/core-js/internals/hidden-keys.js"),se="Object already initialized",ne=_.WeakMap,J,G,K,le=function(D){return K(D)?G(D):J(D,{})},me=function(D){return function(Ye){var ke;if(!M(Ye)||(ke=G(Ye)).type!==D)throw TypeError("Incompatible receiver, "+D+" required");return ke}};if($||L.state){var Oe=L.state||(L.state=new ne),Ce=Oe.get,Ue=Oe.has,ee=Oe.set;J=function(D,Ye){if(Ue.call(Oe,D))throw new TypeError(se);return Ye.facade=D,ee.call(Oe,D,Ye),Ye},G=function(D){return Ce.call(Oe,D)||{}},K=function(D){return Ue.call(Oe,D)}}else{var de=q("state");R[de]=!0,J=function(D,Ye){if(T(D,de))throw new TypeError(se);return Ye.facade=D,O(D,de,Ye),Ye},G=function(D){return T(D,de)?D[de]:{}},K=function(D){return T(D,de)}}g.exports={set:J,get:G,has:K,enforce:le,getterFor:me}},"./node_modules/core-js/internals/is-array.js":function(g,F,v){var $=v("./node_modules/core-js/internals/classof-raw.js");g.exports=Array.isArray||function(M){return $(M)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(g,F,v){var $=v("./node_modules/core-js/internals/fails.js"),_=/#|\.prototype\./,M=function(R,se){var ne=T[O(R)];return ne==q?!0:ne==L?!1:typeof se=="function"?$(se):!!se},O=M.normalize=function(R){return String(R).replace(_,".").toLowerCase()},T=M.data={},L=M.NATIVE="N",q=M.POLYFILL="P";g.exports=M},"./node_modules/core-js/internals/is-object.js":function(g){g.exports=function(F){return typeof F=="object"?F!==null:typeof F=="function"}},"./node_modules/core-js/internals/is-pure.js":function(g){g.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(g,F,v){var $=v("./node_modules/core-js/internals/get-built-in.js"),_=v("./node_modules/core-js/internals/use-symbol-as-uid.js");g.exports=_?function(M){return typeof M=="symbol"}:function(M){var O=$("Symbol");return typeof O=="function"&&Object(M)instanceof O}},"./node_modules/core-js/internals/iterators-core.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/fails.js"),_=v("./node_modules/core-js/internals/object-get-prototype-of.js"),M=v("./node_modules/core-js/internals/create-non-enumerable-property.js"),O=v("./node_modules/core-js/internals/has.js"),T=v("./node_modules/core-js/internals/well-known-symbol.js"),L=v("./node_modules/core-js/internals/is-pure.js"),q=T("iterator"),R=!1,se=function(){return this},ne,J,G;[].keys&&(G=[].keys(),"next"in G?(J=_(_(G)),J!==Object.prototype&&(ne=J)):R=!0);var K=ne==null||$(function(){var le={};return ne[q].call(le)!==le});K&&(ne={}),(!L||K)&&!O(ne,q)&&M(ne,q,se),g.exports={IteratorPrototype:ne,BUGGY_SAFARI_ITERATORS:R}},"./node_modules/core-js/internals/iterators.js":function(g){g.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(g,F,v){var $=v("./node_modules/core-js/internals/engine-v8-version.js"),_=v("./node_modules/core-js/internals/fails.js");g.exports=!!Object.getOwnPropertySymbols&&!_(function(){var M=Symbol();return!String(M)||!(Object(M)instanceof Symbol)||!Symbol.sham&&$&&$<41})},"./node_modules/core-js/internals/native-weak-map.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/inspect-source.js"),M=$.WeakMap;g.exports=typeof M=="function"&&/native code/.test(_(M))},"./node_modules/core-js/internals/object-assign.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/descriptors.js"),_=v("./node_modules/core-js/internals/fails.js"),M=v("./node_modules/core-js/internals/object-keys.js"),O=v("./node_modules/core-js/internals/object-get-own-property-symbols.js"),T=v("./node_modules/core-js/internals/object-property-is-enumerable.js"),L=v("./node_modules/core-js/internals/to-object.js"),q=v("./node_modules/core-js/internals/indexed-object.js"),R=Object.assign,se=Object.defineProperty;g.exports=!R||_(function(){if($&&R({b:1},R(se({},"a",{enumerable:!0,get:function(){se(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var ne={},J={},G=Symbol(),K="abcdefghijklmnopqrst";return ne[G]=7,K.split("").forEach(function(le){J[le]=le}),R({},ne)[G]!=7||M(R({},J)).join("")!=K})?function(J,G){for(var K=L(J),le=arguments.length,me=1,Oe=O.f,Ce=T.f;le>me;)for(var Ue=q(arguments[me++]),ee=Oe?M(Ue).concat(Oe(Ue)):M(Ue),de=ee.length,D=0,Ye;de>D;)Ye=ee[D++],(!$||Ce.call(Ue,Ye))&&(K[Ye]=Ue[Ye]);return K}:R},"./node_modules/core-js/internals/object-create.js":function(g,F,v){var $=v("./node_modules/core-js/internals/an-object.js"),_=v("./node_modules/core-js/internals/object-define-properties.js"),M=v("./node_modules/core-js/internals/enum-bug-keys.js"),O=v("./node_modules/core-js/internals/hidden-keys.js"),T=v("./node_modules/core-js/internals/html.js"),L=v("./node_modules/core-js/internals/document-create-element.js"),q=v("./node_modules/core-js/internals/shared-key.js"),R=">",se="<",ne="prototype",J="script",G=q("IE_PROTO"),K=function(){},le=function(ee){return se+J+R+ee+se+"/"+J+R},me=function(ee){ee.write(le("")),ee.close();var de=ee.parentWindow.Object;return ee=null,de},Oe=function(){var ee=L("iframe"),de="java"+J+":",D;if(ee.style)return ee.style.display="none",T.appendChild(ee),ee.src=String(de),D=ee.contentWindow.document,D.open(),D.write(le("document.F=Object")),D.close(),D.F},Ce,Ue=function(){try{Ce=new ActiveXObject("htmlfile")}catch(de){}Ue=document.domain&&Ce?me(Ce):Oe()||me(Ce);for(var ee=M.length;ee--;)delete Ue[ne][M[ee]];return Ue()};O[G]=!0,g.exports=Object.create||function(de,D){var Ye;return de!==null?(K[ne]=$(de),Ye=new K,K[ne]=null,Ye[G]=de):Ye=Ue(),D===void 0?Ye:_(Ye,D)}},"./node_modules/core-js/internals/object-define-properties.js":function(g,F,v){var $=v("./node_modules/core-js/internals/descriptors.js"),_=v("./node_modules/core-js/internals/object-define-property.js"),M=v("./node_modules/core-js/internals/an-object.js"),O=v("./node_modules/core-js/internals/object-keys.js");g.exports=$?Object.defineProperties:function(L,q){M(L);for(var R=O(q),se=R.length,ne=0,J;se>ne;)_.f(L,J=R[ne++],q[J]);return L}},"./node_modules/core-js/internals/object-define-property.js":function(g,F,v){var $=v("./node_modules/core-js/internals/descriptors.js"),_=v("./node_modules/core-js/internals/ie8-dom-define.js"),M=v("./node_modules/core-js/internals/an-object.js"),O=v("./node_modules/core-js/internals/to-property-key.js"),T=Object.defineProperty;F.f=$?T:function(q,R,se){if(M(q),R=O(R),M(se),_)try{return T(q,R,se)}catch(ne){}if("get"in se||"set"in se)throw TypeError("Accessors not supported");return"value"in se&&(q[R]=se.value),q}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(g,F,v){var $=v("./node_modules/core-js/internals/descriptors.js"),_=v("./node_modules/core-js/internals/object-property-is-enumerable.js"),M=v("./node_modules/core-js/internals/create-property-descriptor.js"),O=v("./node_modules/core-js/internals/to-indexed-object.js"),T=v("./node_modules/core-js/internals/to-property-key.js"),L=v("./node_modules/core-js/internals/has.js"),q=v("./node_modules/core-js/internals/ie8-dom-define.js"),R=Object.getOwnPropertyDescriptor;F.f=$?R:function(ne,J){if(ne=O(ne),J=T(J),q)try{return R(ne,J)}catch(G){}if(L(ne,J))return M(!_.f.call(ne,J),ne[J])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-indexed-object.js"),_=v("./node_modules/core-js/internals/object-get-own-property-names.js").f,M={}.toString,O=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],T=function(L){try{return _(L)}catch(q){return O.slice()}};g.exports.f=function(q){return O&&M.call(q)=="[object Window]"?T(q):_($(q))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(g,F,v){var $=v("./node_modules/core-js/internals/object-keys-internal.js"),_=v("./node_modules/core-js/internals/enum-bug-keys.js"),M=_.concat("length","prototype");F.f=Object.getOwnPropertyNames||function(T){return $(T,M)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(g,F){F.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(g,F,v){var $=v("./node_modules/core-js/internals/has.js"),_=v("./node_modules/core-js/internals/to-object.js"),M=v("./node_modules/core-js/internals/shared-key.js"),O=v("./node_modules/core-js/internals/correct-prototype-getter.js"),T=M("IE_PROTO"),L=Object.prototype;g.exports=O?Object.getPrototypeOf:function(q){return q=_(q),$(q,T)?q[T]:typeof q.constructor=="function"&&q instanceof q.constructor?q.constructor.prototype:q instanceof Object?L:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(g,F,v){var $=v("./node_modules/core-js/internals/has.js"),_=v("./node_modules/core-js/internals/to-indexed-object.js"),M=v("./node_modules/core-js/internals/array-includes.js").indexOf,O=v("./node_modules/core-js/internals/hidden-keys.js");g.exports=function(T,L){var q=_(T),R=0,se=[],ne;for(ne in q)!$(O,ne)&&$(q,ne)&&se.push(ne);for(;L.length>R;)$(q,ne=L[R++])&&(~M(se,ne)||se.push(ne));return se}},"./node_modules/core-js/internals/object-keys.js":function(g,F,v){var $=v("./node_modules/core-js/internals/object-keys-internal.js"),_=v("./node_modules/core-js/internals/enum-bug-keys.js");g.exports=Object.keys||function(O){return $(O,_)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(g,F){"use strict";var v={}.propertyIsEnumerable,$=Object.getOwnPropertyDescriptor,_=$&&!v.call({1:2},1);F.f=_?function(O){var T=$(this,O);return!!T&&T.enumerable}:v},"./node_modules/core-js/internals/object-set-prototype-of.js":function(g,F,v){var $=v("./node_modules/core-js/internals/an-object.js"),_=v("./node_modules/core-js/internals/a-possible-prototype.js");g.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var M=!1,O={},T;try{T=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,T.call(O,[]),M=O instanceof Array}catch(L){}return function(q,R){return $(q),_(R),M?T.call(q,R):q.__proto__=R,q}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/to-string-tag-support.js"),_=v("./node_modules/core-js/internals/classof.js");g.exports=$?{}.toString:function(){return"[object "+_(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(g,F,v){var $=v("./node_modules/core-js/internals/is-object.js");g.exports=function(_,M){var O,T;if(M==="string"&&typeof(O=_.toString)=="function"&&!$(T=O.call(_))||typeof(O=_.valueOf)=="function"&&!$(T=O.call(_))||M!=="string"&&typeof(O=_.toString)=="function"&&!$(T=O.call(_)))return T;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(g,F,v){var $=v("./node_modules/core-js/internals/get-built-in.js"),_=v("./node_modules/core-js/internals/object-get-own-property-names.js"),M=v("./node_modules/core-js/internals/object-get-own-property-symbols.js"),O=v("./node_modules/core-js/internals/an-object.js");g.exports=$("Reflect","ownKeys")||function(L){var q=_.f(O(L)),R=M.f;return R?q.concat(R(L)):q}},"./node_modules/core-js/internals/path.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js");g.exports=$},"./node_modules/core-js/internals/redefine.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/create-non-enumerable-property.js"),M=v("./node_modules/core-js/internals/has.js"),O=v("./node_modules/core-js/internals/set-global.js"),T=v("./node_modules/core-js/internals/inspect-source.js"),L=v("./node_modules/core-js/internals/internal-state.js"),q=L.get,R=L.enforce,se=String(String).split("String");(g.exports=function(ne,J,G,K){var le=K?!!K.unsafe:!1,me=K?!!K.enumerable:!1,Oe=K?!!K.noTargetGet:!1,Ce;if(typeof G=="function"&&(typeof J=="string"&&!M(G,"name")&&_(G,"name",J),Ce=R(G),Ce.source||(Ce.source=se.join(typeof J=="string"?J:""))),ne===$){me?ne[J]=G:O(J,G);return}else le?!Oe&&ne[J]&&(me=!0):delete ne[J];me?ne[J]=G:_(ne,J,G)})(Function.prototype,"toString",function(){return typeof this=="function"&&q(this).source||T(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/an-object.js");g.exports=function(){var _=$(this),M="";return _.global&&(M+="g"),_.ignoreCase&&(M+="i"),_.multiline&&(M+="m"),_.dotAll&&(M+="s"),_.unicode&&(M+="u"),_.sticky&&(M+="y"),M}},"./node_modules/core-js/internals/require-object-coercible.js":function(g){g.exports=function(F){if(F==null)throw TypeError("Can't call method on "+F);return F}},"./node_modules/core-js/internals/set-global.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js");g.exports=function(_,M){try{Object.defineProperty($,_,{value:M,configurable:!0,writable:!0})}catch(O){$[_]=M}return M}},"./node_modules/core-js/internals/set-to-string-tag.js":function(g,F,v){var $=v("./node_modules/core-js/internals/object-define-property.js").f,_=v("./node_modules/core-js/internals/has.js"),M=v("./node_modules/core-js/internals/well-known-symbol.js"),O=M("toStringTag");g.exports=function(T,L,q){T&&!_(T=q?T:T.prototype,O)&&$(T,O,{configurable:!0,value:L})}},"./node_modules/core-js/internals/shared-key.js":function(g,F,v){var $=v("./node_modules/core-js/internals/shared.js"),_=v("./node_modules/core-js/internals/uid.js"),M=$("keys");g.exports=function(O){return M[O]||(M[O]=_(O))}},"./node_modules/core-js/internals/shared-store.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/set-global.js"),M="__core-js_shared__",O=$[M]||_(M,{});g.exports=O},"./node_modules/core-js/internals/shared.js":function(g,F,v){var $=v("./node_modules/core-js/internals/is-pure.js"),_=v("./node_modules/core-js/internals/shared-store.js");(g.exports=function(M,O){return _[M]||(_[M]=O!==void 0?O:{})})("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(g,F,v){var $=v("./node_modules/core-js/internals/fails.js");g.exports=function(_){return $(function(){var M=""[_]('"');return M!==M.toLowerCase()||M.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-integer.js"),_=v("./node_modules/core-js/internals/to-string.js"),M=v("./node_modules/core-js/internals/require-object-coercible.js"),O=function(T){return function(L,q){var R=_(M(L)),se=$(q),ne=R.length,J,G;return se<0||se>=ne?T?"":void 0:(J=R.charCodeAt(se),J<55296||J>56319||se+1===ne||(G=R.charCodeAt(se+1))<56320||G>57343?T?R.charAt(se):J:T?R.slice(se,se+2):(J-55296<<10)+(G-56320)+65536)}};g.exports={codeAt:O(!1),charAt:O(!0)}},"./node_modules/core-js/internals/string-trim.js":function(g,F,v){var $=v("./node_modules/core-js/internals/require-object-coercible.js"),_=v("./node_modules/core-js/internals/to-string.js"),M=v("./node_modules/core-js/internals/whitespaces.js"),O="["+M+"]",T=RegExp("^"+O+O+"*"),L=RegExp(O+O+"*$"),q=function(R){return function(se){var ne=_($(se));return R&1&&(ne=ne.replace(T,"")),R&2&&(ne=ne.replace(L,"")),ne}};g.exports={start:q(1),end:q(2),trim:q(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-integer.js"),_=Math.max,M=Math.min;g.exports=function(O,T){var L=$(O);return L<0?_(L+T,0):M(L,T)}},"./node_modules/core-js/internals/to-indexed-object.js":function(g,F,v){var $=v("./node_modules/core-js/internals/indexed-object.js"),_=v("./node_modules/core-js/internals/require-object-coercible.js");g.exports=function(M){return $(_(M))}},"./node_modules/core-js/internals/to-integer.js":function(g){var F=Math.ceil,v=Math.floor;g.exports=function($){return isNaN($=+$)?0:($>0?v:F)($)}},"./node_modules/core-js/internals/to-length.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-integer.js"),_=Math.min;g.exports=function(M){return M>0?_($(M),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(g,F,v){var $=v("./node_modules/core-js/internals/require-object-coercible.js");g.exports=function(_){return Object($(_))}},"./node_modules/core-js/internals/to-primitive.js":function(g,F,v){var $=v("./node_modules/core-js/internals/is-object.js"),_=v("./node_modules/core-js/internals/is-symbol.js"),M=v("./node_modules/core-js/internals/ordinary-to-primitive.js"),O=v("./node_modules/core-js/internals/well-known-symbol.js"),T=O("toPrimitive");g.exports=function(L,q){if(!$(L)||_(L))return L;var R=L[T],se;if(R!==void 0){if(q===void 0&&(q="default"),se=R.call(L,q),!$(se)||_(se))return se;throw TypeError("Can't convert object to primitive value")}return q===void 0&&(q="number"),M(L,q)}},"./node_modules/core-js/internals/to-property-key.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-primitive.js"),_=v("./node_modules/core-js/internals/is-symbol.js");g.exports=function(M){var O=$(M,"string");return _(O)?O:String(O)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(g,F,v){var $=v("./node_modules/core-js/internals/well-known-symbol.js"),_=$("toStringTag"),M={};M[_]="z",g.exports=String(M)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(g,F,v){var $=v("./node_modules/core-js/internals/is-symbol.js");g.exports=function(_){if($(_))throw TypeError("Cannot convert a Symbol value to a string");return String(_)}},"./node_modules/core-js/internals/uid.js":function(g){var F=0,v=Math.random();g.exports=function($){return"Symbol("+String($===void 0?"":$)+")_"+(++F+v).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(g,F,v){var $=v("./node_modules/core-js/internals/native-symbol.js");g.exports=$&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(g,F,v){var $=v("./node_modules/core-js/internals/well-known-symbol.js");F.f=$},"./node_modules/core-js/internals/well-known-symbol.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/shared.js"),M=v("./node_modules/core-js/internals/has.js"),O=v("./node_modules/core-js/internals/uid.js"),T=v("./node_modules/core-js/internals/native-symbol.js"),L=v("./node_modules/core-js/internals/use-symbol-as-uid.js"),q=_("wks"),R=$.Symbol,se=L?R:R&&R.withoutSetter||O;g.exports=function(ne){return(!M(q,ne)||!(T||typeof q[ne]=="string"))&&(T&&M(R,ne)?q[ne]=R[ne]:q[ne]=se("Symbol."+ne)),q[ne]}},"./node_modules/core-js/internals/whitespaces.js":function(g){g.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(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/fails.js"),M=v("./node_modules/core-js/internals/is-array.js"),O=v("./node_modules/core-js/internals/is-object.js"),T=v("./node_modules/core-js/internals/to-object.js"),L=v("./node_modules/core-js/internals/to-length.js"),q=v("./node_modules/core-js/internals/create-property.js"),R=v("./node_modules/core-js/internals/array-species-create.js"),se=v("./node_modules/core-js/internals/array-method-has-species-support.js"),ne=v("./node_modules/core-js/internals/well-known-symbol.js"),J=v("./node_modules/core-js/internals/engine-v8-version.js"),G=ne("isConcatSpreadable"),K=9007199254740991,le="Maximum allowed index exceeded",me=J>=51||!_(function(){var ee=[];return ee[G]=!1,ee.concat()[0]!==ee}),Oe=se("concat"),Ce=function(ee){if(!O(ee))return!1;var de=ee[G];return de!==void 0?!!de:M(ee)},Ue=!me||!Oe;$({target:"Array",proto:!0,forced:Ue},{concat:function(de){var D=T(this),Ye=R(D,0),ke=0,xe,Te,ve,De,he;for(xe=-1,ve=arguments.length;xe<ve;xe++)if(he=xe===-1?D:arguments[xe],Ce(he)){if(De=L(he.length),ke+De>K)throw TypeError(le);for(Te=0;Te<De;Te++,ke++)Te in he&&q(Ye,ke,he[Te])}else{if(ke>=K)throw TypeError(le);q(Ye,ke++,he)}return Ye.length=ke,Ye}})},"./node_modules/core-js/modules/es.array.iterator.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/to-indexed-object.js"),_=v("./node_modules/core-js/internals/add-to-unscopables.js"),M=v("./node_modules/core-js/internals/iterators.js"),O=v("./node_modules/core-js/internals/internal-state.js"),T=v("./node_modules/core-js/internals/define-iterator.js"),L="Array Iterator",q=O.set,R=O.getterFor(L);g.exports=T(Array,"Array",function(se,ne){q(this,{type:L,target:$(se),index:0,kind:ne})},function(){var se=R(this),ne=se.target,J=se.kind,G=se.index++;return!ne||G>=ne.length?(se.target=void 0,{value:void 0,done:!0}):J=="keys"?{value:G,done:!1}:J=="values"?{value:ne[G],done:!1}:{value:[G,ne[G]],done:!1}},"values"),M.Arguments=M.Array,_("keys"),_("values"),_("entries")},"./node_modules/core-js/modules/es.array.join.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/indexed-object.js"),M=v("./node_modules/core-js/internals/to-indexed-object.js"),O=v("./node_modules/core-js/internals/array-method-is-strict.js"),T=[].join,L=_!=Object,q=O("join",",");$({target:"Array",proto:!0,forced:L||!q},{join:function(se){return T.call(M(this),se===void 0?",":se)}})},"./node_modules/core-js/modules/es.array.map.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/array-iteration.js").map,M=v("./node_modules/core-js/internals/array-method-has-species-support.js"),O=M("map");$({target:"Array",proto:!0,forced:!O},{map:function(L){return _(this,L,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/is-object.js"),M=v("./node_modules/core-js/internals/is-array.js"),O=v("./node_modules/core-js/internals/to-absolute-index.js"),T=v("./node_modules/core-js/internals/to-length.js"),L=v("./node_modules/core-js/internals/to-indexed-object.js"),q=v("./node_modules/core-js/internals/create-property.js"),R=v("./node_modules/core-js/internals/well-known-symbol.js"),se=v("./node_modules/core-js/internals/array-method-has-species-support.js"),ne=se("slice"),J=R("species"),G=[].slice,K=Math.max;$({target:"Array",proto:!0,forced:!ne},{slice:function(me,Oe){var Ce=L(this),Ue=T(Ce.length),ee=O(me,Ue),de=O(Oe===void 0?Ue:Oe,Ue),D,Ye,ke;if(M(Ce)&&(D=Ce.constructor,typeof D=="function"&&(D===Array||M(D.prototype))?D=void 0:_(D)&&(D=D[J],D===null&&(D=void 0)),D===Array||D===void 0))return G.call(Ce,ee,de);for(Ye=new(D===void 0?Array:D)(K(de-ee,0)),ke=0;ee<de;ee++,ke++)ee in Ce&&q(Ye,ke,Ce[ee]);return Ye.length=ke,Ye}})},"./node_modules/core-js/modules/es.function.name.js":function(g,F,v){var $=v("./node_modules/core-js/internals/descriptors.js"),_=v("./node_modules/core-js/internals/object-define-property.js").f,M=Function.prototype,O=M.toString,T=/^\s*function ([^ (]*)/,L="name";$&&!(L in M)&&_(M,L,{configurable:!0,get:function(){try{return O.call(this).match(T)[1]}catch(q){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/descriptors.js"),_=v("./node_modules/core-js/internals/global.js"),M=v("./node_modules/core-js/internals/is-forced.js"),O=v("./node_modules/core-js/internals/redefine.js"),T=v("./node_modules/core-js/internals/has.js"),L=v("./node_modules/core-js/internals/classof-raw.js"),q=v("./node_modules/core-js/internals/inherit-if-required.js"),R=v("./node_modules/core-js/internals/is-symbol.js"),se=v("./node_modules/core-js/internals/to-primitive.js"),ne=v("./node_modules/core-js/internals/fails.js"),J=v("./node_modules/core-js/internals/object-create.js"),G=v("./node_modules/core-js/internals/object-get-own-property-names.js").f,K=v("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,le=v("./node_modules/core-js/internals/object-define-property.js").f,me=v("./node_modules/core-js/internals/string-trim.js").trim,Oe="Number",Ce=_[Oe],Ue=Ce.prototype,ee=L(J(Ue))==Oe,de=function(Te){if(R(Te))throw TypeError("Cannot convert a Symbol value to a number");var ve=se(Te,"number"),De,he,Se,Xe,et,je,qe,Et;if(typeof ve=="string"&&ve.length>2){if(ve=me(ve),De=ve.charCodeAt(0),De===43||De===45){if(he=ve.charCodeAt(2),he===88||he===120)return NaN}else if(De===48){switch(ve.charCodeAt(1)){case 66:case 98:Se=2,Xe=49;break;case 79:case 111:Se=8,Xe=55;break;default:return+ve}for(et=ve.slice(2),je=et.length,qe=0;qe<je;qe++)if(Et=et.charCodeAt(qe),Et<48||Et>Xe)return NaN;return parseInt(et,Se)}}return+ve};if(M(Oe,!Ce(" 0o1")||!Ce("0b1")||Ce("+0x1"))){for(var D=function(ve){var De=arguments.length<1?0:ve,he=this;return he instanceof D&&(ee?ne(function(){Ue.valueOf.call(he)}):L(he)!=Oe)?q(new Ce(de(De)),he,D):de(De)},Ye=$?G(Ce):"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,xe;Ye.length>ke;ke++)T(Ce,xe=Ye[ke])&&!T(D,xe)&&le(D,xe,K(Ce,xe));D.prototype=Ue,Ue.constructor=D,O(_,Oe,D)}},"./node_modules/core-js/modules/es.object.assign.js":function(g,F,v){var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/object-assign.js");$({target:"Object",stat:!0,forced:Object.assign!==_},{assign:_})},"./node_modules/core-js/modules/es.object.keys.js":function(g,F,v){var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/to-object.js"),M=v("./node_modules/core-js/internals/object-keys.js"),O=v("./node_modules/core-js/internals/fails.js"),T=O(function(){M(1)});$({target:"Object",stat:!0,forced:T},{keys:function(q){return M(_(q))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-string-tag-support.js"),_=v("./node_modules/core-js/internals/redefine.js"),M=v("./node_modules/core-js/internals/object-to-string.js");$||_(Object.prototype,"toString",M,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/redefine.js"),_=v("./node_modules/core-js/internals/an-object.js"),M=v("./node_modules/core-js/internals/to-string.js"),O=v("./node_modules/core-js/internals/fails.js"),T=v("./node_modules/core-js/internals/regexp-flags.js"),L="toString",q=RegExp.prototype,R=q[L],se=O(function(){return R.call({source:"a",flags:"b"})!="/a/b"}),ne=R.name!=L;(se||ne)&&$(RegExp.prototype,L,function(){var G=_(this),K=M(G.source),le=G.flags,me=M(le===void 0&&G instanceof RegExp&&!("flags"in q)?T.call(G):le);return"/"+K+"/"+me},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/string-multibyte.js").charAt,_=v("./node_modules/core-js/internals/to-string.js"),M=v("./node_modules/core-js/internals/internal-state.js"),O=v("./node_modules/core-js/internals/define-iterator.js"),T="String Iterator",L=M.set,q=M.getterFor(T);O(String,"String",function(R){L(this,{type:T,string:_(R),index:0})},function(){var se=q(this),ne=se.string,J=se.index,G;return J>=ne.length?{value:void 0,done:!0}:(G=$(ne,J),se.index+=G.length,{value:G,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/create-html.js"),M=v("./node_modules/core-js/internals/string-html-forced.js");$({target:"String",proto:!0,forced:M("link")},{link:function(T){return _(this,"a","href",T)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/descriptors.js"),M=v("./node_modules/core-js/internals/global.js"),O=v("./node_modules/core-js/internals/has.js"),T=v("./node_modules/core-js/internals/is-object.js"),L=v("./node_modules/core-js/internals/object-define-property.js").f,q=v("./node_modules/core-js/internals/copy-constructor-properties.js"),R=M.Symbol;if(_&&typeof R=="function"&&(!("description"in R.prototype)||R().description!==void 0)){var se={},ne=function(){var Oe=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),Ce=this instanceof ne?new R(Oe):Oe===void 0?R():R(Oe);return Oe===""&&(se[Ce]=!0),Ce};q(ne,R);var J=ne.prototype=R.prototype;J.constructor=ne;var G=J.toString,K=String(R("test"))=="Symbol(test)",le=/^Symbol\((.*)\)[^)]+$/;L(J,"description",{configurable:!0,get:function(){var Oe=T(this)?this.valueOf():this,Ce=G.call(Oe);if(O(se,Oe))return"";var Ue=K?Ce.slice(7,-1):Ce.replace(le,"$1");return Ue===""?void 0:Ue}}),$({global:!0,forced:!0},{Symbol:ne})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(g,F,v){var $=v("./node_modules/core-js/internals/define-well-known-symbol.js");$("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/global.js"),M=v("./node_modules/core-js/internals/get-built-in.js"),O=v("./node_modules/core-js/internals/is-pure.js"),T=v("./node_modules/core-js/internals/descriptors.js"),L=v("./node_modules/core-js/internals/native-symbol.js"),q=v("./node_modules/core-js/internals/fails.js"),R=v("./node_modules/core-js/internals/has.js"),se=v("./node_modules/core-js/internals/is-array.js"),ne=v("./node_modules/core-js/internals/is-object.js"),J=v("./node_modules/core-js/internals/is-symbol.js"),G=v("./node_modules/core-js/internals/an-object.js"),K=v("./node_modules/core-js/internals/to-object.js"),le=v("./node_modules/core-js/internals/to-indexed-object.js"),me=v("./node_modules/core-js/internals/to-property-key.js"),Oe=v("./node_modules/core-js/internals/to-string.js"),Ce=v("./node_modules/core-js/internals/create-property-descriptor.js"),Ue=v("./node_modules/core-js/internals/object-create.js"),ee=v("./node_modules/core-js/internals/object-keys.js"),de=v("./node_modules/core-js/internals/object-get-own-property-names.js"),D=v("./node_modules/core-js/internals/object-get-own-property-names-external.js"),Ye=v("./node_modules/core-js/internals/object-get-own-property-symbols.js"),ke=v("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),xe=v("./node_modules/core-js/internals/object-define-property.js"),Te=v("./node_modules/core-js/internals/object-property-is-enumerable.js"),ve=v("./node_modules/core-js/internals/create-non-enumerable-property.js"),De=v("./node_modules/core-js/internals/redefine.js"),he=v("./node_modules/core-js/internals/shared.js"),Se=v("./node_modules/core-js/internals/shared-key.js"),Xe=v("./node_modules/core-js/internals/hidden-keys.js"),et=v("./node_modules/core-js/internals/uid.js"),je=v("./node_modules/core-js/internals/well-known-symbol.js"),qe=v("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Et=v("./node_modules/core-js/internals/define-well-known-symbol.js"),kt=v("./node_modules/core-js/internals/set-to-string-tag.js"),Ot=v("./node_modules/core-js/internals/internal-state.js"),sr=v("./node_modules/core-js/internals/array-iteration.js").forEach,rr=Se("hidden"),br="Symbol",lr="prototype",V=je("toPrimitive"),dt=Ot.set,I=Ot.getterFor(br),p=Object[lr],f=_.Symbol,x=M("JSON","stringify"),Y=ke.f,Be=xe.f,H=D.f,ie=Te.f,Qe=he("symbols"),ye=he("op-symbols"),be=he("string-to-symbol-registry"),ze=he("symbol-to-string-registry"),gt=he("wks"),fe=_.QObject,at=!fe||!fe[lr]||!fe[lr].findChild,rt=T&&q(function(){return Ue(Be({},"a",{get:function(){return Be(this,"a",{value:7}).a}})).a!=7})?function(kr,yr,ur){var Kr=Y(p,yr);Kr&&delete p[yr],Be(kr,yr,ur),Kr&&kr!==p&&Be(p,yr,Kr)}:Be,Le=function(kr,yr){var ur=Qe[kr]=Ue(f[lr]);return dt(ur,{type:br,tag:kr,description:yr}),T||(ur.description=yr),ur},Fe=function(yr,ur,Kr){yr===p&&Fe(ye,ur,Kr),G(yr);var fn=me(ur);return G(Kr),R(Qe,fn)?(Kr.enumerable?(R(yr,rr)&&yr[rr][fn]&&(yr[rr][fn]=!1),Kr=Ue(Kr,{enumerable:Ce(0,!1)})):(R(yr,rr)||Be(yr,rr,Ce(1,{})),yr[rr][fn]=!0),rt(yr,fn,Kr)):Be(yr,fn,Kr)},ct=function(yr,ur){G(yr);var Kr=le(ur),fn=ee(Kr).concat(Lr(Kr));return sr(fn,function(Un){(!T||Pt.call(Kr,Un))&&Fe(yr,Un,Kr[Un])}),yr},Tt=function(yr,ur){return ur===void 0?Ue(yr):ct(Ue(yr),ur)},Pt=function(yr){var ur=me(yr),Kr=ie.call(this,ur);return this===p&&R(Qe,ur)&&!R(ye,ur)?!1:Kr||!R(this,ur)||!R(Qe,ur)||R(this,rr)&&this[rr][ur]?Kr:!0},Yt=function(yr,ur){var Kr=le(yr),fn=me(ur);if(!(Kr===p&&R(Qe,fn)&&!R(ye,fn))){var Un=Y(Kr,fn);return Un&&R(Qe,fn)&&!(R(Kr,rr)&&Kr[rr][fn])&&(Un.enumerable=!0),Un}},Fr=function(yr){var ur=H(le(yr)),Kr=[];return sr(ur,function(fn){!R(Qe,fn)&&!R(Xe,fn)&&Kr.push(fn)}),Kr},Lr=function(yr){var ur=yr===p,Kr=H(ur?ye:le(yr)),fn=[];return sr(Kr,function(Un){R(Qe,Un)&&(!ur||R(p,Un))&&fn.push(Qe[Un])}),fn};if(L||(f=function(){if(this instanceof f)throw TypeError("Symbol is not a constructor");var yr=!arguments.length||arguments[0]===void 0?void 0:Oe(arguments[0]),ur=et(yr),Kr=function(fn){this===p&&Kr.call(ye,fn),R(this,rr)&&R(this[rr],ur)&&(this[rr][ur]=!1),rt(this,ur,Ce(1,fn))};return T&&at&&rt(p,ur,{configurable:!0,set:Kr}),Le(ur,yr)},De(f[lr],"toString",function(){return I(this).tag}),De(f,"withoutSetter",function(kr){return Le(et(kr),kr)}),Te.f=Pt,xe.f=Fe,ke.f=Yt,de.f=D.f=Fr,Ye.f=Lr,qe.f=function(kr){return Le(je(kr),kr)},T&&(Be(f[lr],"description",{configurable:!0,get:function(){return I(this).description}}),O||De(p,"propertyIsEnumerable",Pt,{unsafe:!0}))),$({global:!0,wrap:!0,forced:!L,sham:!L},{Symbol:f}),sr(ee(gt),function(kr){Et(kr)}),$({target:br,stat:!0,forced:!L},{for:function(kr){var yr=Oe(kr);if(R(be,yr))return be[yr];var ur=f(yr);return be[yr]=ur,ze[ur]=yr,ur},keyFor:function(yr){if(!J(yr))throw TypeError(yr+" is not a symbol");if(R(ze,yr))return ze[yr]},useSetter:function(){at=!0},useSimple:function(){at=!1}}),$({target:"Object",stat:!0,forced:!L,sham:!T},{create:Tt,defineProperty:Fe,defineProperties:ct,getOwnPropertyDescriptor:Yt}),$({target:"Object",stat:!0,forced:!L},{getOwnPropertyNames:Fr,getOwnPropertySymbols:Lr}),$({target:"Object",stat:!0,forced:q(function(){Ye.f(1)})},{getOwnPropertySymbols:function(yr){return Ye.f(K(yr))}}),x){var Or=!L||q(function(){var kr=f();return x([kr])!="[null]"||x({a:kr})!="{}"||x(Object(kr))!="{}"});$({target:"JSON",stat:!0,forced:Or},{stringify:function(yr,ur,Kr){for(var fn=[yr],Un=1,hn;arguments.length>Un;)fn.push(arguments[Un++]);if(hn=ur,!(!ne(ur)&&yr===void 0||J(yr)))return se(ur)||(ur=function(Dn,Qi){if(typeof hn=="function"&&(Qi=hn.call(this,Dn,Qi)),!J(Qi))return Qi}),fn[1]=ur,x.apply(null,fn)}})}f[lr][V]||ve(f[lr],V,f[lr].valueOf),kt(f,br),Xe[rr]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/dom-iterables.js"),M=v("./node_modules/core-js/internals/array-for-each.js"),O=v("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var T in _){var L=$[T],q=L&&L.prototype;if(q&&q.forEach!==M)try{O(q,"forEach",M)}catch(R){q.forEach=M}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/dom-iterables.js"),M=v("./node_modules/core-js/modules/es.array.iterator.js"),O=v("./node_modules/core-js/internals/create-non-enumerable-property.js"),T=v("./node_modules/core-js/internals/well-known-symbol.js"),L=T("iterator"),q=T("toStringTag"),R=M.values;for(var se in _){var ne=$[se],J=ne&&ne.prototype;if(J){if(J[L]!==R)try{O(J,L,R)}catch(K){J[L]=R}if(J[q]||O(J,q,se),_[se]){for(var G in M)if(J[G]!==M[G])try{O(J,G,M[G])}catch(K){J[G]=M[G]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(g){(function(F,v){g.exports=v()})(this,function(){"use strict";function F(fe){var at=typeof fe;return fe!==null&&(at==="object"||at==="function")}function v(fe){return typeof fe=="function"}var $=void 0;Array.isArray?$=Array.isArray:$=function(fe){return Object.prototype.toString.call(fe)==="[object Array]"};var _=$,M=0,O=void 0,T=void 0,L=function(at,rt){ee[M]=at,ee[M+1]=rt,M+=2,M===2&&(T?T(de):Ye())};function q(fe){T=fe}function R(fe){L=fe}var se=typeof window!="undefined"?window:void 0,ne=se||{},J=ne.MutationObserver||ne.WebKitMutationObserver,G=typeof self=="undefined"&&typeof pe!="undefined"&&{}.toString.call(pe)==="[object process]",K=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function le(){return function(){return pe.nextTick(de)}}function me(){return typeof O!="undefined"?function(){O(de)}:Ue()}function Oe(){var fe=0,at=new J(de),rt=document.createTextNode("");return at.observe(rt,{characterData:!0}),function(){rt.data=fe=++fe%2}}function Ce(){var fe=new MessageChannel;return fe.port1.onmessage=de,function(){return fe.port2.postMessage(0)}}function Ue(){var fe=setTimeout;return function(){return fe(de,1)}}var ee=new Array(1e3);function de(){for(var fe=0;fe<M;fe+=2){var at=ee[fe],rt=ee[fe+1];at(rt),ee[fe]=void 0,ee[fe+1]=void 0}M=0}function D(){try{var fe=Function("return this")().require("vertx");return O=fe.runOnLoop||fe.runOnContext,me()}catch(at){return Ue()}}var Ye=void 0;G?Ye=le():J?Ye=Oe():K?Ye=Ce():se===void 0?Ye=D():Ye=Ue();function ke(fe,at){var rt=this,Le=new this.constructor(ve);Le[Te]===void 0&&x(Le);var Fe=rt._state;if(Fe){var ct=arguments[Fe-1];L(function(){return dt(Fe,Le,ct,rt._result)})}else lr(rt,Le,fe,at);return Le}function xe(fe){var at=this;if(fe&&typeof fe=="object"&&fe.constructor===at)return fe;var rt=new at(ve);return Ot(rt,fe),rt}var Te=Math.random().toString(36).substring(2);function ve(){}var De=void 0,he=1,Se=2;function Xe(){return new TypeError("You cannot resolve a promise with itself")}function et(){return new TypeError("A promises callback cannot return that same promise.")}function je(fe,at,rt,Le){try{fe.call(at,rt,Le)}catch(Fe){return Fe}}function qe(fe,at,rt){L(function(Le){var Fe=!1,ct=je(rt,at,function(Tt){Fe||(Fe=!0,at!==Tt?Ot(Le,Tt):rr(Le,Tt))},function(Tt){Fe||(Fe=!0,br(Le,Tt))},"Settle: "+(Le._label||" unknown promise"));!Fe&&ct&&(Fe=!0,br(Le,ct))},fe)}function Et(fe,at){at._state===he?rr(fe,at._result):at._state===Se?br(fe,at._result):lr(at,void 0,function(rt){return Ot(fe,rt)},function(rt){return br(fe,rt)})}function kt(fe,at,rt){at.constructor===fe.constructor&&rt===ke&&at.constructor.resolve===xe?Et(fe,at):rt===void 0?rr(fe,at):v(rt)?qe(fe,at,rt):rr(fe,at)}function Ot(fe,at){if(fe===at)br(fe,Xe());else if(F(at)){var rt=void 0;try{rt=at.then}catch(Le){br(fe,Le);return}kt(fe,at,rt)}else rr(fe,at)}function sr(fe){fe._onerror&&fe._onerror(fe._result),V(fe)}function rr(fe,at){fe._state===De&&(fe._result=at,fe._state=he,fe._subscribers.length!==0&&L(V,fe))}function br(fe,at){fe._state===De&&(fe._state=Se,fe._result=at,L(sr,fe))}function lr(fe,at,rt,Le){var Fe=fe._subscribers,ct=Fe.length;fe._onerror=null,Fe[ct]=at,Fe[ct+he]=rt,Fe[ct+Se]=Le,ct===0&&fe._state&&L(V,fe)}function V(fe){var at=fe._subscribers,rt=fe._state;if(at.length!==0){for(var Le=void 0,Fe=void 0,ct=fe._result,Tt=0;Tt<at.length;Tt+=3)Le=at[Tt],Fe=at[Tt+rt],Le?dt(rt,Le,Fe,ct):Fe(ct);fe._subscribers.length=0}}function dt(fe,at,rt,Le){var Fe=v(rt),ct=void 0,Tt=void 0,Pt=!0;if(Fe){try{ct=rt(Le)}catch(Yt){Pt=!1,Tt=Yt}if(at===ct){br(at,et());return}}else ct=Le;at._state!==De||(Fe&&Pt?Ot(at,ct):Pt===!1?br(at,Tt):fe===he?rr(at,ct):fe===Se&&br(at,ct))}function I(fe,at){try{at(function(Le){Ot(fe,Le)},function(Le){br(fe,Le)})}catch(rt){br(fe,rt)}}var p=0;function f(){return p++}function x(fe){fe[Te]=p++,fe._state=void 0,fe._result=void 0,fe._subscribers=[]}function Y(){return new Error("Array Methods must be provided an Array")}var Be=function(){function fe(at,rt){this._instanceConstructor=at,this.promise=new at(ve),this.promise[Te]||x(this.promise),_(rt)?(this.length=rt.length,this._remaining=rt.length,this._result=new Array(this.length),this.length===0?rr(this.promise,this._result):(this.length=this.length||0,this._enumerate(rt),this._remaining===0&&rr(this.promise,this._result))):br(this.promise,Y())}return fe.prototype._enumerate=function(rt){for(var Le=0;this._state===De&&Le<rt.length;Le++)this._eachEntry(rt[Le],Le)},fe.prototype._eachEntry=function(rt,Le){var Fe=this._instanceConstructor,ct=Fe.resolve;if(ct===xe){var Tt=void 0,Pt=void 0,Yt=!1;try{Tt=rt.then}catch(Lr){Yt=!0,Pt=Lr}if(Tt===ke&&rt._state!==De)this._settledAt(rt._state,Le,rt._result);else if(typeof Tt!="function")this._remaining--,this._result[Le]=rt;else if(Fe===ze){var Fr=new Fe(ve);Yt?br(Fr,Pt):kt(Fr,rt,Tt),this._willSettleAt(Fr,Le)}else this._willSettleAt(new Fe(function(Lr){return Lr(rt)}),Le)}else this._willSettleAt(ct(rt),Le)},fe.prototype._settledAt=function(rt,Le,Fe){var ct=this.promise;ct._state===De&&(this._remaining--,rt===Se?br(ct,Fe):this._result[Le]=Fe),this._remaining===0&&rr(ct,this._result)},fe.prototype._willSettleAt=function(rt,Le){var Fe=this;lr(rt,void 0,function(ct){return Fe._settledAt(he,Le,ct)},function(ct){return Fe._settledAt(Se,Le,ct)})},fe}();function H(fe){return new Be(this,fe).promise}function ie(fe){var at=this;return _(fe)?new at(function(rt,Le){for(var Fe=fe.length,ct=0;ct<Fe;ct++)at.resolve(fe[ct]).then(rt,Le)}):new at(function(rt,Le){return Le(new TypeError("You must pass an array to race."))})}function Qe(fe){var at=this,rt=new at(ve);return br(rt,fe),rt}function ye(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function be(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var ze=function(){function fe(at){this[Te]=f(),this._result=this._state=void 0,this._subscribers=[],ve!==at&&(typeof at!="function"&&ye(),this instanceof fe?I(this,at):be())}return fe.prototype.catch=function(rt){return this.then(null,rt)},fe.prototype.finally=function(rt){var Le=this,Fe=Le.constructor;return v(rt)?Le.then(function(ct){return Fe.resolve(rt()).then(function(){return ct})},function(ct){return Fe.resolve(rt()).then(function(){throw ct})}):Le.then(rt,rt)},fe}();ze.prototype.then=ke,ze.all=H,ze.race=ie,ze.resolve=xe,ze.reject=Qe,ze._setScheduler=q,ze._setAsap=R,ze._asap=L;function gt(){var fe=void 0;if(typeof C.g!="undefined")fe=C.g;else if(typeof self!="undefined")fe=self;else try{fe=Function("return this")()}catch(Le){throw new Error("polyfill failed because global object is unavailable in this environment")}var at=fe.Promise;if(at){var rt=null;try{rt=Object.prototype.toString.call(at.resolve())}catch(Le){}if(rt==="[object Promise]"&&!at.cast)return}fe.Promise=ze}return ze.polyfill=gt,ze.Promise=ze,ze})},html2canvas:function(g){"use strict";g.exports=P},jspdf:function(g){"use strict";g.exports=Ae}},te={};function W(g){var F=te[g];if(F!==void 0)return F.exports;var v=te[g]={exports:{}};return Ne[g].call(v.exports,v,v.exports,W),v.exports}(function(){W.n=function(g){var F=g&&g.__esModule?function(){return g.default}:function(){return g};return W.d(F,{a:F}),F}})(),function(){W.d=function(g,F){for(var v in F)W.o(F,v)&&!W.o(g,v)&&Object.defineProperty(g,v,{enumerable:!0,get:F[v]})}}(),function(){W.o=function(g,F){return Object.prototype.hasOwnProperty.call(g,F)}}(),function(){W.r=function(g){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(g,"__esModule",{value:!0})}}();var S={};return function(){"use strict";W.r(S);var g=W("./src/worker.js"),F=W("./src/plugin/jspdf-plugin.js"),v=W("./src/plugin/pagebreaks.js"),$=W("./src/plugin/hyperlinks.js"),_=function M(O,T){var L=new M.Worker(T);return O?L.from(O).save():L};_.Worker=g.default,S.default=_}(),S=S.default,S}()})},67467:function(dn,Ut){Ut.read=function(C,pe,Ae,P,Ne){var te,W,S=Ne*8-P-1,g=(1<<S)-1,F=g>>1,v=-7,$=Ae?Ne-1:0,_=Ae?-1:1,M=C[pe+$];for($+=_,te=M&(1<<-v)-1,M>>=-v,v+=S;v>0;te=te*256+C[pe+$],$+=_,v-=8);for(W=te&(1<<-v)-1,te>>=-v,v+=P;v>0;W=W*256+C[pe+$],$+=_,v-=8);if(te===0)te=1-F;else{if(te===g)return W?NaN:(M?-1:1)*(1/0);W=W+Math.pow(2,P),te=te-F}return(M?-1:1)*W*Math.pow(2,te-P)},Ut.write=function(C,pe,Ae,P,Ne,te){var W,S,g,F=te*8-Ne-1,v=(1<<F)-1,$=v>>1,_=Ne===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=P?0:te-1,O=P?1:-1,T=pe<0||pe===0&&1/pe<0?1:0;for(pe=Math.abs(pe),isNaN(pe)||pe===1/0?(S=isNaN(pe)?1:0,W=v):(W=Math.floor(Math.log(pe)/Math.LN2),pe*(g=Math.pow(2,-W))<1&&(W--,g*=2),W+$>=1?pe+=_/g:pe+=_*Math.pow(2,1-$),pe*g>=2&&(W++,g/=2),W+$>=v?(S=0,W=v):W+$>=1?(S=(pe*g-1)*Math.pow(2,Ne),W=W+$):(S=pe*Math.pow(2,$-1)*Math.pow(2,Ne),W=0));Ne>=8;C[Ae+M]=S&255,M+=O,S/=256,Ne-=8);for(W=W<<Ne|S,F+=Ne;F>0;C[Ae+M]=W&255,M+=O,W/=256,F-=8);C[Ae+M-O]|=T*128}},24334:function(dn,Ut,C){var pe,Ae;(function(P,Ne){dn.exports=Ne(P)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof C.g!="undefined"?C.g:this,function(P){"use strict";P=P||{};var Ne=P.Base64,te="2.6.4",W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=function(D){for(var Ye={},ke=0,xe=D.length;ke<xe;ke++)Ye[D.charAt(ke)]=ke;return Ye}(W),g=String.fromCharCode,F=function(D){if(D.length<2){var Ye=D.charCodeAt(0);return Ye<128?D:Ye<2048?g(192|Ye>>>6)+g(128|Ye&63):g(224|Ye>>>12&15)+g(128|Ye>>>6&63)+g(128|Ye&63)}else{var Ye=65536+(D.charCodeAt(0)-55296)*1024+(D.charCodeAt(1)-56320);return g(240|Ye>>>18&7)+g(128|Ye>>>12&63)+g(128|Ye>>>6&63)+g(128|Ye&63)}},v=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,$=function(D){return D.replace(v,F)},_=function(D){var Ye=[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),xe=[W.charAt(ke>>>18),W.charAt(ke>>>12&63),Ye>=2?"=":W.charAt(ke>>>6&63),Ye>=1?"=":W.charAt(ke&63)];return xe.join("")},M=P.btoa&&typeof P.btoa=="function"?function(D){return P.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,_)},O=function(D){return M($(String(D)))},T=function(D){return D.replace(/[+\/]/g,function(Ye){return Ye=="+"?"-":"_"}).replace(/=/g,"")},L=function(D,Ye){return Ye?T(O(D)):O(D)},q=function(D){return L(D,!0)},R;P.Uint8Array&&(R=function(D,Ye){for(var ke="",xe=0,Te=D.length;xe<Te;xe+=3){var ve=D[xe],De=D[xe+1],he=D[xe+2],Se=ve<<16|De<<8|he;ke+=W.charAt(Se>>>18)+W.charAt(Se>>>12&63)+(typeof De!="undefined"?W.charAt(Se>>>6&63):"=")+(typeof he!="undefined"?W.charAt(Se&63):"=")}return Ye?T(ke):ke});var se=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ne=function(D){switch(D.length){case 4:var Ye=(7&D.charCodeAt(0))<<18|(63&D.charCodeAt(1))<<12|(63&D.charCodeAt(2))<<6|63&D.charCodeAt(3),ke=Ye-65536;return g((ke>>>10)+55296)+g((ke&1023)+56320);case 3:return g((15&D.charCodeAt(0))<<12|(63&D.charCodeAt(1))<<6|63&D.charCodeAt(2));default:return g((31&D.charCodeAt(0))<<6|63&D.charCodeAt(1))}},J=function(D){return D.replace(se,ne)},G=function(D){var Ye=D.length,ke=Ye%4,xe=(Ye>0?S[D.charAt(0)]<<18:0)|(Ye>1?S[D.charAt(1)]<<12:0)|(Ye>2?S[D.charAt(2)]<<6:0)|(Ye>3?S[D.charAt(3)]:0),Te=[g(xe>>>16),g(xe>>>8&255),g(xe&255)];return Te.length-=[0,0,2,1][ke],Te.join("")},K=P.atob&&typeof P.atob=="function"?function(D){return P.atob(D)}:function(D){return D.replace(/\S{1,4}/g,G)},le=function(D){return K(String(D).replace(/[^A-Za-z0-9\+\/]/g,""))},me=function(D){return J(K(D))},Oe=function(D){return String(D).replace(/[-_]/g,function(Ye){return Ye=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ce=function(D){return me(Oe(D))},Ue;P.Uint8Array&&(Ue=function(D){return Uint8Array.from(le(Oe(D)),function(Ye){return Ye.charCodeAt(0)})});var ee=function(){var D=P.Base64;return P.Base64=Ne,D};if(P.Base64={VERSION:te,atob:le,btoa:M,fromBase64:Ce,toBase64:L,utob:$,encode:L,encodeURI:q,btou:J,decode:Ce,noConflict:ee,fromUint8Array:R,toUint8Array:Ue},typeof Object.defineProperty=="function"){var de=function(D){return{value:D,enumerable:!1,writable:!0,configurable:!0}};P.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",de(function(){return Ce(this)})),Object.defineProperty(String.prototype,"toBase64",de(function(D){return L(this,D)})),Object.defineProperty(String.prototype,"toBase64URI",de(function(){return L(this,!0)}))}}return P.Meteor&&(Base64=P.Base64),dn.exports?dn.exports.Base64=P.Base64:(pe=[],Ae=function(){return P.Base64}.apply(Ut,pe),Ae!==void 0&&(dn.exports=Ae)),{Base64:P.Base64}})},65355:function(dn,Ut,C){"use strict";C.r(Ut),C.d(Ut,{AcroForm:function(){return oA},AcroFormAppearance:function(){return ei},AcroFormButton:function(){return Oa},AcroFormCheckBox:function(){return ko},AcroFormChoiceField:function(){return mi},AcroFormComboBox:function(){return ea},AcroFormEditBox:function(){return Yi},AcroFormListBox:function(){return Va},AcroFormPasswordField:function(){return Pa},AcroFormPushButton:function(){return oo},AcroFormRadioButton:function(){return Ia},AcroFormTextField:function(){return Xa},GState:function(){return Rh},ShadingPattern:function(){return jd},TilingPattern:function(){return zd},default:function(){return ua},jsPDF:function(){return ua}});var pe=C(76190),Ae={},P=function(n,o,a,l,A){var m=new Worker(Ae[o]||(Ae[o]=URL.createObjectURL(new Blob([n+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return m.onmessage=function(N){var E=N.data,U=E.$e$;if(U){var Z=new Error(U[0]);Z.code=U[1],Z.stack=U[2],A(Z,null)}else A(null,E)},m.postMessage(a,l),m},Ne=Uint8Array,te=Uint16Array,W=Int32Array,S=new Ne([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]),g=new Ne([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]),F=new Ne([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),v=function(n,o){for(var a=new te(31),l=0;l<31;++l)a[l]=o+=1<<n[l-1];for(var A=new W(a[30]),l=1;l<30;++l)for(var m=a[l];m<a[l+1];++m)A[m]=m-a[l]<<5|l;return{b:a,r:A}},$=v(S,2),_=$.b,M=$.r;_[28]=258,M[258]=28;for(var O=v(g,0),T=O.b,L=O.r,q=new te(32768),R=0;R<32768;++R){var se=(R&43690)>>1|(R&21845)<<1;se=(se&52428)>>2|(se&13107)<<2,se=(se&61680)>>4|(se&3855)<<4,q[R]=((se&65280)>>8|(se&255)<<8)>>1}for(var ne=function(n,o,a){for(var l=n.length,A=0,m=new te(o);A<l;++A)n[A]&&++m[n[A]-1];var N=new te(o);for(A=1;A<o;++A)N[A]=N[A-1]+m[A-1]<<1;var E;if(a){E=new te(1<<o);var U=15-o;for(A=0;A<l;++A)if(n[A])for(var Z=A<<4|n[A],oe=o-n[A],Re=N[n[A]-1]++<<oe,Ze=Re|(1<<oe)-1;Re<=Ze;++Re)E[q[Re]>>U]=Z}else for(E=new te(l),A=0;A<l;++A)n[A]&&(E[A]=q[N[n[A]-1]++]>>15-n[A]);return E},J=new Ne(288),R=0;R<144;++R)J[R]=8;for(var R=144;R<256;++R)J[R]=9;for(var R=256;R<280;++R)J[R]=7;for(var R=280;R<288;++R)J[R]=8;for(var G=new Ne(32),R=0;R<32;++R)G[R]=5;var K=ne(J,9,0),le=null,me=ne(G,5,0),Oe=null,Ce=function(n){for(var o=n[0],a=1;a<n.length;++a)n[a]>o&&(o=n[a]);return o},Ue=function(n,o,a){var l=o/8|0;return(n[l]|n[l+1]<<8)>>(o&7)&a},ee=function(n,o){var a=o/8|0;return(n[a]|n[a+1]<<8|n[a+2]<<16)>>(o&7)},de=function(n){return(n+7)/8|0},D=function(n,o,a){return(o==null||o<0)&&(o=0),(a==null||a>n.length)&&(a=n.length),new Ne(n.subarray(o,a))},Ye={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"],xe=function(n,o,a){var l=new Error(o||ke[n]);if(l.code=n,Error.captureStackTrace&&Error.captureStackTrace(l,xe),!a)throw l;return l},Te=function(n,o,a,l){var A=n.length,m=l?l.length:0;if(!A||o.f&&!o.l)return a||new Ne(0);var N=!a,E=N||o.i!=2,U=o.i;N&&(a=new Ne(A*3));var Z=function(Qn){var vi=a.length;if(Qn>vi){var Fi=new Ne(Math.max(vi*2,Qn));Fi.set(a),a=Fi}},oe=o.f||0,Re=o.p||0,Ze=o.b||0,ae=o.l,mt=o.d,ut=o.m,yt=o.n,st=A*8;do{if(!ae){oe=Ue(n,Re,1);var Gt=Ue(n,Re+1,3);if(Re+=3,Gt)if(Gt==1)ae=le,mt=Oe,ut=9,yt=5;else if(Gt==2){var rn=Ue(n,Re,31)+257,Wr=Ue(n,Re+10,15)+4,or=rn+Ue(n,Re+5,31)+1;Re+=14;for(var Lt=new Ne(or),xr=new Ne(19),it=0;it<Wr;++it)xr[F[it]]=Ue(n,Re+it*3,7);Re+=Wr*3;for(var wt=Ce(xr),Wt=(1<<wt)-1,jt=ne(xr,wt,1),it=0;it<or;){var Tr=jt[Ue(n,Re,Wt)];Re+=Tr&15;var Qt=Tr>>4;if(Qt<16)Lt[it++]=Qt;else{var Zr=0,Jr=0;for(Qt==16?(Jr=3+Ue(n,Re,3),Re+=2,Zr=Lt[it-1]):Qt==17?(Jr=3+Ue(n,Re,7),Re+=3):Qt==18&&(Jr=11+Ue(n,Re,127),Re+=7);Jr--;)Lt[it++]=Zr}}var Mr=Lt.subarray(0,rn),Gr=Lt.subarray(rn);ut=Ce(Mr),yt=Ce(Gr),ae=ne(Mr,ut,1),mt=ne(Gr,yt,1)}else xe(1);else{var Qt=de(Re)+4,It=n[Qt-4]|n[Qt-3]<<8,Ir=Qt+It;if(Ir>A){U&&xe(0);break}E&&Z(Ze+It),a.set(n.subarray(Qt,Ir),Ze),o.b=Ze+=It,o.p=Re=Ir*8,o.f=oe;continue}if(Re>st){U&&xe(0);break}}E&&Z(Ze+131072);for(var Zn=(1<<ut)-1,En=(1<<yt)-1,tt=Re;;tt=Re){var Zr=ae[ee(n,Re)&Zn],_t=Zr>>4;if(Re+=Zr&15,Re>st){U&&xe(0);break}if(Zr||xe(2),_t<256)a[Ze++]=_t;else if(_t==256){tt=Re,ae=null;break}else{var Dt=_t-254;if(_t>264){var it=_t-257,qt=S[it];Dt=Ue(n,Re,(1<<qt)-1)+_[it],Re+=qt}var dr=mt[ee(n,Re)&En],_r=dr>>4;dr||xe(3),Re+=dr&15;var Gr=T[_r];if(_r>3){var qt=g[_r];Gr+=ee(n,Re)&(1<<qt)-1,Re+=qt}if(Re>st){U&&xe(0);break}E&&Z(Ze+131072);var $r=Ze+Dt;if(Ze<Gr){var Qr=m-Gr,gn=Math.min(Gr,$r);for(Qr+Ze<0&&xe(3);Ze<gn;++Ze)a[Ze]=l[Qr+Ze]}for(;Ze<$r;++Ze)a[Ze]=a[Ze-Gr]}}o.l=ae,o.p=tt,o.b=Ze,o.f=oe,ae&&(oe=1,o.m=ut,o.d=mt,o.n=yt)}while(!oe);return Ze!=a.length&&N?D(a,0,Ze):a.subarray(0,Ze)},ve=function(n,o,a){a<<=o&7;var l=o/8|0;n[l]|=a,n[l+1]|=a>>8},De=function(n,o,a){a<<=o&7;var l=o/8|0;n[l]|=a,n[l+1]|=a>>8,n[l+2]|=a>>16},he=function(n,o){for(var a=[],l=0;l<n.length;++l)n[l]&&a.push({s:l,f:n[l]});var A=a.length,m=a.slice();if(!A)return{t:kt,l:0};if(A==1){var N=new Ne(a[0].s+1);return N[a[0].s]=1,{t:N,l:1}}a.sort(function(Ir,rn){return Ir.f-rn.f}),a.push({s:-1,f:25001});var E=a[0],U=a[1],Z=0,oe=1,Re=2;for(a[0]={s:-1,f:E.f+U.f,l:E,r:U};oe!=A-1;)E=a[a[Z].f<a[Re].f?Z++:Re++],U=a[Z!=oe&&a[Z].f<a[Re].f?Z++:Re++],a[oe++]={s:-1,f:E.f+U.f,l:E,r:U};for(var Ze=m[0].s,l=1;l<A;++l)m[l].s>Ze&&(Ze=m[l].s);var ae=new te(Ze+1),mt=Se(a[oe-1],ae,0);if(mt>o){var l=0,ut=0,yt=mt-o,st=1<<yt;for(m.sort(function(rn,Wr){return ae[Wr.s]-ae[rn.s]||rn.f-Wr.f});l<A;++l){var Gt=m[l].s;if(ae[Gt]>o)ut+=st-(1<<mt-ae[Gt]),ae[Gt]=o;else break}for(ut>>=yt;ut>0;){var Qt=m[l].s;ae[Qt]<o?ut-=1<<o-ae[Qt]++-1:++l}for(;l>=0&&ut;--l){var It=m[l].s;ae[It]==o&&(--ae[It],++ut)}mt=o}return{t:new Ne(ae),l:mt}},Se=function(n,o,a){return n.s==-1?Math.max(Se(n.l,o,a+1),Se(n.r,o,a+1)):o[n.s]=a},Xe=function(n){for(var o=n.length;o&&!n[--o];);for(var a=new te(++o),l=0,A=n[0],m=1,N=function(U){a[l++]=U},E=1;E<=o;++E)if(n[E]==A&&E!=o)++m;else{if(!A&&m>2){for(;m>138;m-=138)N(32754);m>2&&(N(m>10?m-11<<5|28690:m-3<<5|12305),m=0)}else if(m>3){for(N(A),--m;m>6;m-=6)N(8304);m>2&&(N(m-3<<5|8208),m=0)}for(;m--;)N(A);m=1,A=n[E]}return{c:a.subarray(0,l),n:o}},et=function(n,o){for(var a=0,l=0;l<o.length;++l)a+=n[l]*o[l];return a},je=function(n,o,a){var l=a.length,A=de(o+2);n[A]=l&255,n[A+1]=l>>8,n[A+2]=n[A]^255,n[A+3]=n[A+1]^255;for(var m=0;m<l;++m)n[A+m+4]=a[m];return(A+4+l)*8},qe=function(n,o,a,l,A,m,N,E,U,Z,oe){ve(o,oe++,a),++A[256];for(var Re=he(A,15),Ze=Re.t,ae=Re.l,mt=he(m,15),ut=mt.t,yt=mt.l,st=Xe(Ze),Gt=st.c,Qt=st.n,It=Xe(ut),Ir=It.c,rn=It.n,Wr=new te(19),or=0;or<Gt.length;++or)++Wr[Gt[or]&31];for(var or=0;or<Ir.length;++or)++Wr[Ir[or]&31];for(var Lt=he(Wr,7),xr=Lt.t,it=Lt.l,wt=19;wt>4&&!xr[F[wt-1]];--wt);var Wt=Z+5<<3,jt=et(A,J)+et(m,G)+N,Tr=et(A,Ze)+et(m,ut)+N+14+3*wt+et(Wr,xr)+2*Wr[16]+3*Wr[17]+7*Wr[18];if(U>=0&&Wt<=jt&&Wt<=Tr)return je(o,oe,n.subarray(U,U+Z));var Zr,Jr,Mr,Gr;if(ve(o,oe,1+(Tr<jt)),oe+=2,Tr<jt){Zr=ne(Ze,ae,0),Jr=Ze,Mr=ne(ut,yt,0),Gr=ut;var Zn=ne(xr,it,0);ve(o,oe,Qt-257),ve(o,oe+5,rn-1),ve(o,oe+10,wt-4),oe+=14;for(var or=0;or<wt;++or)ve(o,oe+3*or,xr[F[or]]);oe+=3*wt;for(var En=[Gt,Ir],tt=0;tt<2;++tt)for(var _t=En[tt],or=0;or<_t.length;++or){var Dt=_t[or]&31;ve(o,oe,Zn[Dt]),oe+=xr[Dt],Dt>15&&(ve(o,oe,_t[or]>>5&127),oe+=_t[or]>>12)}}else Zr=K,Jr=J,Mr=me,Gr=G;for(var or=0;or<E;++or){var qt=l[or];if(qt>255){var Dt=qt>>18&31;De(o,oe,Zr[Dt+257]),oe+=Jr[Dt+257],Dt>7&&(ve(o,oe,qt>>23&31),oe+=S[Dt]);var dr=qt&31;De(o,oe,Mr[dr]),oe+=Gr[dr],dr>3&&(De(o,oe,qt>>5&8191),oe+=g[dr])}else De(o,oe,Zr[qt]),oe+=Jr[qt]}return De(o,oe,Zr[256]),oe+Jr[256]},Et=new W([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),kt=new Ne(0),Ot=function(n,o,a,l,A,m){var N=m.z||n.length,E=new Ne(l+N+5*(1+Math.ceil(N/7e3))+A),U=E.subarray(l,E.length-A),Z=m.l,oe=(m.r||0)&7;if(o){oe&&(U[0]=m.r>>3);for(var Re=Et[o-1],Ze=Re>>13,ae=Re&8191,mt=(1<<a)-1,ut=m.p||new te(32768),yt=m.h||new te(mt+1),st=Math.ceil(a/3),Gt=2*st,Qt=function(sn){return(n[sn]^n[sn+1]<<st^n[sn+2]<<Gt)&mt},It=new W(25e3),Ir=new te(288),rn=new te(32),Wr=0,or=0,Lt=m.i||0,xr=0,it=m.w||0,wt=0;Lt+2<N;++Lt){var Wt=Qt(Lt),jt=Lt&32767,Tr=yt[Wt];if(ut[jt]=Tr,yt[Wt]=jt,it<=Lt){var Zr=N-Lt;if((Wr>7e3||xr>24576)&&(Zr>423||!Z)){oe=qe(n,U,0,It,Ir,rn,or,xr,wt,Lt-wt,oe),xr=Wr=or=0,wt=Lt;for(var Jr=0;Jr<286;++Jr)Ir[Jr]=0;for(var Jr=0;Jr<30;++Jr)rn[Jr]=0}var Mr=2,Gr=0,Zn=ae,En=jt-Tr&32767;if(Zr>2&&Wt==Qt(Lt-En))for(var tt=Math.min(Ze,Zr)-1,_t=Math.min(32767,Lt),Dt=Math.min(258,Zr);En<=_t&&--Zn&&jt!=Tr;){if(n[Lt+Mr]==n[Lt+Mr-En]){for(var qt=0;qt<Dt&&n[Lt+qt]==n[Lt+qt-En];++qt);if(qt>Mr){if(Mr=qt,Gr=En,qt>tt)break;for(var dr=Math.min(En,qt-2),_r=0,Jr=0;Jr<dr;++Jr){var $r=Lt-En+Jr&32767,Qr=ut[$r],gn=$r-Qr&32767;gn>_r&&(_r=gn,Tr=$r)}}}jt=Tr,Tr=ut[jt],En+=jt-Tr&32767}if(Gr){It[xr++]=268435456|M[Mr]<<18|L[Gr];var Qn=M[Mr]&31,vi=L[Gr]&31;or+=S[Qn]+g[vi],++Ir[257+Qn],++rn[vi],it=Lt+Mr,++Wr}else It[xr++]=n[Lt],++Ir[n[Lt]]}}for(Lt=Math.max(Lt,it);Lt<N;++Lt)It[xr++]=n[Lt],++Ir[n[Lt]];oe=qe(n,U,Z,It,Ir,rn,or,xr,wt,Lt-wt,oe),Z||(m.r=oe&7|U[oe/8|0]<<3,oe-=7,m.h=yt,m.p=ut,m.i=Lt,m.w=it)}else{for(var Lt=m.w||0;Lt<N+Z;Lt+=65535){var Fi=Lt+65535;Fi>=N&&(U[oe/8|0]=Z,Fi=N),oe=je(U,oe+1,n.subarray(Lt,Fi))}m.i=N}return D(E,0,l+de(oe)+A)},sr=null,rr=function(){var n=-1;return{p:function(o){for(var a=n,l=0;l<o.length;++l)a=sr[a&255^o[l]]^a>>>8;n=a},d:function(){return~n}}},br=function(){var n=1,o=0;return{p:function(a){for(var l=n,A=o,m=a.length|0,N=0;N!=m;){for(var E=Math.min(N+2655,m);N<E;++N)A+=l+=a[N];l=(l&65535)+15*(l>>16),A=(A&65535)+15*(A>>16)}n=l,o=A},d:function(){return n%=65521,o%=65521,(n&255)<<24|(n&65280)<<8|(o&255)<<8|o>>8}}},lr=function(n,o,a,l,A){if(!A&&(A={l:1},o.dictionary)){var m=o.dictionary.subarray(-32768),N=new Ne(m.length+n.length);N.set(m),N.set(n,m.length),n=N,A.w=m.length}return Ot(n,o.level==null?6:o.level,o.mem==null?A.l?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):20:12+o.mem,a,l,A)},V=function(n,o){var a={};for(var l in n)a[l]=n[l];for(var l in o)a[l]=o[l];return a},dt=function(n,o,a){for(var l=n(),A=n.toString(),m=A.slice(A.indexOf("[")+1,A.lastIndexOf("]")).replace(/\s+/g,"").split(","),N=0;N<l.length;++N){var E=l[N],U=m[N];if(typeof E=="function"){o+=";"+U+"=";var Z=E.toString();if(E.prototype)if(Z.indexOf("[native code]")!=-1){var oe=Z.indexOf(" ",8)+1;o+=Z.slice(oe,Z.indexOf("(",oe))}else{o+=Z;for(var Re in E.prototype)o+=";"+U+".prototype."+Re+"="+E.prototype[Re].toString()}else o+=Z}else a[U]=E}return o},I=null,p=function(n){var o=[];for(var a in n)n[a].buffer&&o.push((n[a]=new n[a].constructor(n[a])).buffer);return o},f=function(n,o,a,l){if(!I[a]){for(var A="",m={},N=n.length-1,E=0;E<N;++E)A=dt(n[E],A,m);I[a]={c:dt(n[N],A,m),e:m}}var U=V({},I[a].e);return P(I[a].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+o.toString()+"}",a,U,p(U),l)},x=function(){return[Ne,te,W,S,g,F,_,T,le,Oe,q,ke,ne,Ce,Ue,ee,de,D,xe,Te,Dn,ye,be]},Y=function(){return[Ne,te,W,S,g,F,M,L,K,J,me,G,q,Et,kt,ne,ve,De,he,Se,Xe,et,je,qe,de,D,Ot,lr,Kr,ye]},Be=function(){return[ct,Yt,Fe,rr,sr]},H=function(){return[Tt,Pt]},ie=function(){return[Fr,Fe,br]},Qe=function(){return[Lr]},ye=function(n){return postMessage(n,[n.buffer])},be=function(n){return n&&{out:n.size&&new Ne(n.size),dictionary:n.dictionary}},ze=function(n,o,a,l,A,m){var N=f(a,l,A,function(E,U){N.terminate(),m(E,U)});return N.postMessage([n,o],o.consume?[n.buffer]:[]),function(){N.terminate()}},gt=function(n){return n.ondata=function(o,a){return postMessage([o,a],[o.buffer])},function(o){o.data.length?(n.push(o.data[0],o.data[1]),postMessage([o.data[0].length])):n.flush()}},fe=function(n,o,a,l,A,m,N){var E,U=f(n,l,A,function(Z,oe){Z?(U.terminate(),o.ondata.call(o,Z)):Array.isArray(oe)?oe.length==1?(o.queuedSize-=oe[0],o.ondrain&&o.ondrain(oe[0])):(oe[1]&&U.terminate(),o.ondata.call(o,Z,oe[0],oe[1])):N(oe)});U.postMessage(a),o.queuedSize=0,o.push=function(Z,oe){o.ondata||xe(5),E&&o.ondata(xe(4,0,1),null,!!oe),o.queuedSize+=Z.length,U.postMessage([Z,E=oe],[Z.buffer])},o.terminate=function(){U.terminate()},m&&(o.flush=function(){U.postMessage([])})},at=function(n,o){return n[o]|n[o+1]<<8},rt=function(n,o){return(n[o]|n[o+1]<<8|n[o+2]<<16|n[o+3]<<24)>>>0},Le=function(n,o){return rt(n,o)+rt(n,o+4)*4294967296},Fe=function(n,o,a){for(;a;++o)n[o]=a,a>>>=8},ct=function(n,o){var a=o.filename;if(n[0]=31,n[1]=139,n[2]=8,n[8]=o.level<2?4:o.level==9?2:0,n[9]=3,o.mtime!=0&&Fe(n,4,Math.floor(new Date(o.mtime||Date.now())/1e3)),a){n[3]=8;for(var l=0;l<=a.length;++l)n[l+10]=a.charCodeAt(l)}},Tt=function(n){(n[0]!=31||n[1]!=139||n[2]!=8)&&xe(6,"invalid gzip data");var o=n[3],a=10;o&4&&(a+=(n[10]|n[11]<<8)+2);for(var l=(o>>3&1)+(o>>4&1);l>0;l-=!n[a++]);return a+(o&2)},Pt=function(n){var o=n.length;return(n[o-4]|n[o-3]<<8|n[o-2]<<16|n[o-1]<<24)>>>0},Yt=function(n){return 10+(n.filename?n.filename.length+1:0)},Fr=function(n,o){var a=o.level,l=a==0?0:a<6?1:a==9?3:2;if(n[0]=120,n[1]=l<<6|(o.dictionary&&32),n[1]|=31-(n[0]<<8|n[1])%31,o.dictionary){var A=br();A.p(o.dictionary),Fe(n,2,A.d())}},Lr=function(n,o){return((n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31)&&xe(6,"invalid zlib data"),(n[1]>>5&1)==+!o&&xe(6,"invalid zlib data: "+(n[1]&32?"need":"unexpected")+" dictionary"),(n[1]>>3&4)+2};function Or(n,o){return typeof n=="function"&&(o=n,n={}),this.ondata=o,n}var kr=null,yr=null;function ur(n,o,a){return a||(a=o,o={}),typeof a!="function"&&xe(7),ze(n,o,[Y],function(l){return ye(Kr(l.data[0],l.data[1]))},0,a)}function Kr(n,o){return lr(n,o||{},0,0)}var fn=null,Un=null;function hn(n,o,a){return a||(a=o,o={}),typeof a!="function"&&xe(7),ze(n,o,[x],function(l){return ye(Dn(l.data[0],be(l.data[1])))},1,a)}function Dn(n,o){return Te(n,{i:2},o&&o.out,o&&o.dictionary)}var Qi=null,Pr=null;function xn(n,o,a){return a||(a=o,o={}),typeof a!="function"&&xe(7),ze(n,o,[Y,Be,function(){return[Ei]}],function(l){return ye(Ei(l.data[0],l.data[1]))},2,a)}function Ei(n,o){o||(o={});var a=rr(),l=n.length;a.p(n);var A=lr(n,o,Yt(o),8),m=A.length;return ct(A,o),Fe(A,m-8,a.d()),Fe(A,m-4,l),A}var di=null,Zi=null;function _i(n,o,a){return a||(a=o,o={}),typeof a!="function"&&xe(7),ze(n,o,[x,H,function(){return[ji]}],function(l){return ye(ji(l.data[0],l.data[1]))},3,a)}function ji(n,o){var a=Tt(n);return a+8>n.length&&xe(6,"invalid gzip data"),Te(n.subarray(a,-8),{i:2},o&&o.out||new Ne(Pt(n)),o&&o.dictionary)}var qa=null,Ki=null;function ti(n,o,a){return a||(a=o,o={}),typeof a!="function"&&xe(7),ze(n,o,[Y,ie,function(){return[gi]}],function(l){return ye(gi(l.data[0],l.data[1]))},4,a)}function gi(n,o){o||(o={});var a=br();a.p(n);var l=lr(n,o,o.dictionary?6:2,4);return Fr(l,o),Fe(l,l.length-4,a.d()),l}var yi=null,$e=null;function _e(n,o,a){return a||(a=o,o={}),typeof a!="function"&&xe(7),ze(n,o,[x,Qe,function(){return[Me]}],function(l){return ye(Me(l.data[0],be(l.data[1])))},5,a)}function Me(n,o){return Te(n.subarray(Lr(n,o&&o.dictionary),-4),{i:2},o&&o.out,o&&o.dictionary)}var Ie=null,Nt=null;function Mt(n,o,a){return a||(a=o,o={}),typeof a!="function"&&xe(7),n[0]==31&&n[1]==139&&n[2]==8?_i(n,o,a):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?hn(n,o,a):_e(n,o,a)}function Sr(n,o){return n[0]==31&&n[1]==139&&n[2]==8?ji(n,o):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?Dn(n,o):Me(n,o)}var nr=function(n,o,a,l){for(var A in n){var m=n[A],N=o+A,E=l;Array.isArray(m)&&(E=V(l,m[1]),m=m[0]),m instanceof Ne?a[N]=[m,E]:(a[N+="/"]=[new Ne(0),E],nr(m,N,a,l))}},Dr=typeof TextEncoder!="undefined"&&new TextEncoder,Hr=typeof TextDecoder!="undefined"&&new TextDecoder,an=0;try{Hr.decode(kt,{stream:!0}),an=1}catch(n){}var jr=function(n){for(var o="",a=0;;){var l=n[a++],A=(l>127)+(l>223)+(l>239);if(a+A>n.length)return{s:o,r:D(n,a-1)};A?A==3?(l=((l&15)<<18|(n[a++]&63)<<12|(n[a++]&63)<<6|n[a++]&63)-65536,o+=String.fromCharCode(55296|l>>10,56320|l&1023)):A&1?o+=String.fromCharCode((l&31)<<6|n[a++]&63):o+=String.fromCharCode((l&15)<<12|(n[a++]&63)<<6|n[a++]&63):o+=String.fromCharCode(l)}},Rr=null,en=null;function wn(n,o){if(o){for(var a=new Ne(n.length),l=0;l<n.length;++l)a[l]=n.charCodeAt(l);return a}if(Dr)return Dr.encode(n);for(var A=n.length,m=new Ne(n.length+(n.length>>1)),N=0,E=function(oe){m[N++]=oe},l=0;l<A;++l){if(N+5>m.length){var U=new Ne(N+8+(A-l<<1));U.set(m),m=U}var Z=n.charCodeAt(l);Z<128||o?E(Z):Z<2048?(E(192|Z>>6),E(128|Z&63)):Z>55295&&Z<57344?(Z=65536+(Z&1047552)|n.charCodeAt(++l)&1023,E(240|Z>>18),E(128|Z>>12&63),E(128|Z>>6&63),E(128|Z&63)):(E(224|Z>>12),E(128|Z>>6&63),E(128|Z&63))}return D(m,0,N)}function on(n,o){if(o){for(var a="",l=0;l<n.length;l+=16384)a+=String.fromCharCode.apply(null,n.subarray(l,l+16384));return a}else{if(Hr)return Hr.decode(n);var A=jr(n),m=A.s,a=A.r;return a.length&&xe(8),m}}var Nn=function(n){return n==1?3:n<6?2:n==9?1:0},Kn=function(n,o){return o+30+at(n,o+26)+at(n,o+28)},fi=function(n,o,a){var l=at(n,o+28),A=on(n.subarray(o+46,o+46+l),!(at(n,o+8)&2048)),m=o+46+l,N=rt(n,o+20),E=a&&N==4294967295?On(n,m):[N,rt(n,o+24),rt(n,o+42)],U=E[0],Z=E[1],oe=E[2];return[at(n,o+10),U,Z,A,m+at(n,o+30)+at(n,o+32),oe]},On=function(n,o){for(;at(n,o)!=1;o+=4+at(n,o+2));return[Le(n,o+12),Le(n,o+4),Le(n,o+20)]},Xn=function(n){var o=0;if(n)for(var a in n){var l=n[a].length;l>65535&&xe(9),o+=l+4}return o},Vt=function(n,o,a,l,A,m,N,E){var U=l.length,Z=a.extra,oe=E&&E.length,Re=Xn(Z);Fe(n,o,N!=null?33639248:67324752),o+=4,N!=null&&(n[o++]=20,n[o++]=a.os),n[o]=20,o+=2,n[o++]=a.flag<<1|(m<0&&8),n[o++]=A&&8,n[o++]=a.compression&255,n[o++]=a.compression>>8;var Ze=new Date(a.mtime==null?Date.now():a.mtime),ae=Ze.getFullYear()-1980;if((ae<0||ae>119)&&xe(10),Fe(n,o,ae<<25|Ze.getMonth()+1<<21|Ze.getDate()<<16|Ze.getHours()<<11|Ze.getMinutes()<<5|Ze.getSeconds()>>1),o+=4,m!=-1&&(Fe(n,o,a.crc),Fe(n,o+4,m<0?-m-2:m),Fe(n,o+8,a.size)),Fe(n,o+12,U),Fe(n,o+14,Re),o+=16,N!=null&&(Fe(n,o,oe),Fe(n,o+6,a.attrs),Fe(n,o+10,N),o+=14),n.set(l,o),o+=U,Re)for(var mt in Z){var ut=Z[mt],yt=ut.length;Fe(n,o,+mt),Fe(n,o+2,yt),n.set(ut,o+4),o+=4+yt}return oe&&(n.set(E,o),o+=oe),o},Xt=function(n,o,a,l,A){Fe(n,o,101010256),Fe(n,o+8,a),Fe(n,o+10,a),Fe(n,o+12,l),Fe(n,o+16,A)},er=null,fr=null,Rt=null,Jt=null;function ar(n,o,a){a||(a=o,o={}),typeof a!="function"&&xe(7);var l={};nr(n,"",l,o);var A=Object.keys(l),m=A.length,N=0,E=0,U=m,Z=new Array(m),oe=[],Re=function(){for(var yt=0;yt<oe.length;++yt)oe[yt]()},Ze=function(yt,st){Ii(function(){a(yt,st)})};Ii(function(){Ze=a});var ae=function(){var yt=new Ne(E+22),st=N,Gt=E-N;E=0;for(var Qt=0;Qt<U;++Qt){var It=Z[Qt];try{var Ir=It.c.length;Vt(yt,E,It,It.f,It.u,Ir);var rn=30+It.f.length+Xn(It.extra),Wr=E+rn;yt.set(It.c,Wr),Vt(yt,N,It,It.f,It.u,Ir,E,It.m),N+=16+rn+(It.m?It.m.length:0),E=Wr+Ir}catch(or){return Ze(or,null)}}Xt(yt,N,Z.length,Gt,st),Ze(null,yt)};m||ae();for(var mt=function(yt){var st=A[yt],Gt=l[st],Qt=Gt[0],It=Gt[1],Ir=rr(),rn=Qt.length;Ir.p(Qt);var Wr=wn(st),or=Wr.length,Lt=It.comment,xr=Lt&&wn(Lt),it=xr&&xr.length,wt=Xn(It.extra),Wt=It.level==0?0:8,jt=function(Tr,Zr){if(Tr)Re(),Ze(Tr,null);else{var Jr=Zr.length;Z[yt]=V(It,{size:rn,crc:Ir.d(),c:Zr,f:Wr,m:xr,u:or!=st.length||xr&&Lt.length!=it,compression:Wt}),N+=30+or+wt+Jr,E+=76+2*(or+wt)+(it||0)+Jr,--m||ae()}};if(or>65535&&jt(xe(11,0,1),null),!Wt)jt(null,Qt);else if(rn<16e4)try{jt(null,Kr(Qt,It))}catch(Tr){jt(Tr,null)}else oe.push(ur(Qt,It,jt))},ut=0;ut<U;++ut)mt(ut);return Re}function Nr(n,o){o||(o={});var a={},l=[];nr(n,"",a,o);var A=0,m=0;for(var N in a){var E=a[N],U=E[0],Z=E[1],oe=Z.level==0?0:8,Re=wn(N),Ze=Re.length,ae=Z.comment,mt=ae&&wn(ae),ut=mt&&mt.length,yt=Xn(Z.extra);Ze>65535&&xe(11);var st=oe?Kr(U,Z):U,Gt=st.length,Qt=rr();Qt.p(U),l.push(V(Z,{size:U.length,crc:Qt.d(),c:st,f:Re,m:mt,u:Ze!=N.length||mt&&ae.length!=ut,o:A,compression:oe})),A+=30+Ze+yt+Gt,m+=76+2*(Ze+yt)+(ut||0)+Gt}for(var It=new Ne(m+22),Ir=A,rn=m-A,Wr=0;Wr<l.length;++Wr){var Re=l[Wr];Vt(It,Re.o,Re,Re.f,Re.u,Re.c.length);var or=30+Re.f.length+Xn(Re.extra);It.set(Re.c,Re.o+or),Vt(It,A,Re,Re.f,Re.u,Re.c.length,Re.o,Re.m),A+=16+or+(Re.m?Re.m.length:0)}return Xt(It,A,l.length,rn,Ir),It}var yn=null,Bn=null,ci=null,ni=null,Ii=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(n){n()};function qn(n,o,a){a||(a=o,o={}),typeof a!="function"&&xe(7);var l=[],A=function(){for(var yt=0;yt<l.length;++yt)l[yt]()},m={},N=function(yt,st){Ii(function(){a(yt,st)})};Ii(function(){N=a});for(var E=n.length-22;rt(n,E)!=101010256;--E)if(!E||n.length-E>65558)return N(xe(13,0,1),null),A;var U=at(n,E+8);if(U){var Z=U,oe=rt(n,E+16),Re=oe==4294967295||Z==65535;if(Re){var Ze=rt(n,E-12);Re=rt(n,Ze)==101075792,Re&&(Z=U=rt(n,Ze+32),oe=rt(n,Ze+48))}for(var ae=o&&o.filter,mt=function(yt){var st=fi(n,oe,Re),Gt=st[0],Qt=st[1],It=st[2],Ir=st[3],rn=st[4],Wr=st[5],or=Kn(n,Wr);oe=rn;var Lt=function(it,wt){it?(A(),N(it,null)):(wt&&(m[Ir]=wt),--U||N(null,m))};if(!ae||ae({name:Ir,size:Qt,originalSize:It,compression:Gt}))if(!Gt)Lt(null,D(n,or,or+Qt));else if(Gt==8){var xr=n.subarray(or,or+Qt);if(It<524288||Qt>.8*It)try{Lt(null,Dn(xr,{out:new Ne(It)}))}catch(it){Lt(it,null)}else l.push(hn(xr,{size:It},Lt))}else Lt(xe(14,"unknown compression type "+Gt,1),null);else Lt(null,null)},ut=0;ut<Z;++ut)mt(ut)}else N(null,{});return A}function zn(n,o){for(var a={},l=n.length-22;rt(n,l)!=101010256;--l)(!l||n.length-l>65558)&&xe(13);var A=at(n,l+8);if(!A)return{};var m=rt(n,l+16),N=m==4294967295||A==65535;if(N){var E=rt(n,l-12);N=rt(n,E)==101075792,N&&(A=rt(n,E+32),m=rt(n,E+48))}for(var U=o&&o.filter,Z=0;Z<A;++Z){var oe=fi(n,m,N),Re=oe[0],Ze=oe[1],ae=oe[2],mt=oe[3],ut=oe[4],yt=oe[5],st=Kn(n,yt);m=ut,(!U||U({name:mt,size:Ze,originalSize:ae,compression:Re}))&&(Re?Re==8?a[mt]=Dn(n.subarray(st,st+Ze),{out:new Ne(ae)}):xe(14,"unknown compression type "+Re):a[mt]=D(n,st,st+Ze))}return a}var xi=C(42978);function wi(n,o="utf8"){return new TextDecoder(o).decode(n)}const Ci=new TextEncoder;function Ai(n){return Ci.encode(n)}const Bi=1024*8,Xi=(()=>{const n=new Uint8Array(4),o=new Uint32Array(n.buffer);return!((o[0]=1)&n[0])})(),ri={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class Ti{constructor(o=Bi,a={}){zs(this,"buffer");zs(this,"byteLength");zs(this,"byteOffset");zs(this,"length");zs(this,"offset");zs(this,"lastWrittenByte");zs(this,"littleEndian");zs(this,"_data");zs(this,"_mark");zs(this,"_marks");let l=!1;typeof o=="number"?o=new ArrayBuffer(o):(l=!0,this.lastWrittenByte=o.byteLength);const A=a.offset?a.offset>>>0:0,m=o.byteLength-A;let N=A;(ArrayBuffer.isView(o)||o instanceof Ti)&&(o.byteLength!==o.buffer.byteLength&&(N=o.byteOffset+A),o=o.buffer),l?this.lastWrittenByte=m:this.lastWrittenByte=0,this.buffer=o,this.length=m,this.byteLength=m,this.byteOffset=N,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,N,m),this._mark=0,this._marks=[]}available(o=1){return this.offset+o<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(o=1){return this.offset+=o,this}back(o=1){return this.offset-=o,this}seek(o){return this.offset=o,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const o=this._marks.pop();if(o===void 0)throw new Error("Mark stack empty");return this.seek(o),this}rewind(){return this.offset=0,this}ensureAvailable(o=1){if(!this.available(o)){const l=(this.offset+o)*2,A=new Uint8Array(l);A.set(new Uint8Array(this.buffer)),this.buffer=A.buffer,this.length=l,this.byteLength=l,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(o=1){return this.readArray(o,"uint8")}readArray(o,a){const l=ri[a].BYTES_PER_ELEMENT*o,A=this.byteOffset+this.offset,m=this.buffer.slice(A,A+l);if(this.littleEndian===Xi&&a!=="uint8"&&a!=="int8"){const E=new Uint8Array(this.buffer.slice(A,A+l));E.reverse();const U=new ri[a](E.buffer);return this.offset+=l,U.reverse(),U}const N=new ri[a](m);return this.offset+=l,N}readInt16(){const o=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,o}readUint16(){const o=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,o}readInt32(){const o=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,o}readUint32(){const o=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,o}readFloat32(){const o=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,o}readFloat64(){const o=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,o}readBigInt64(){const o=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,o}readBigUint64(){const o=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,o}readChar(){return String.fromCharCode(this.readInt8())}readChars(o=1){let a="";for(let l=0;l<o;l++)a+=this.readChar();return a}readUtf8(o=1){return wi(this.readBytes(o))}decodeText(o=1,a="utf8"){return wi(this.readBytes(o),a)}writeBoolean(o){return this.writeUint8(o?255:0),this}writeInt8(o){return this.ensureAvailable(1),this._data.setInt8(this.offset++,o),this._updateLastWrittenByte(),this}writeUint8(o){return this.ensureAvailable(1),this._data.setUint8(this.offset++,o),this._updateLastWrittenByte(),this}writeByte(o){return this.writeUint8(o)}writeBytes(o){this.ensureAvailable(o.length);for(let a=0;a<o.length;a++)this._data.setUint8(this.offset++,o[a]);return this._updateLastWrittenByte(),this}writeInt16(o){return this.ensureAvailable(2),this._data.setInt16(this.offset,o,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(o){return this.ensureAvailable(2),this._data.setUint16(this.offset,o,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(o){return this.ensureAvailable(4),this._data.setInt32(this.offset,o,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(o){return this.ensureAvailable(4),this._data.setUint32(this.offset,o,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(o){return this.ensureAvailable(4),this._data.setFloat32(this.offset,o,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(o){return this.ensureAvailable(8),this._data.setFloat64(this.offset,o,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(o){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,o,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(o){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,o,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(o){return this.writeUint8(o.charCodeAt(0))}writeChars(o){for(let a=0;a<o.length;a++)this.writeUint8(o.charCodeAt(a));return this}writeUtf8(o){return this.writeBytes(Ai(o))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}const Ha=4,li=0,pn=1,ln=2;function Jn(n){let o=n.length;for(;--o>=0;)n[o]=0}const Hn=0,hi=1,qi=2,Li=3,Ua=258,Aa=29,Bo=256,Wn=Bo+1+Aa,Fn=30,Ni=19,Ji=2*Wn+1,Fa=15,Is=16,za=7,fa=256,Io=16,So=17,Po=18,Os=new Uint8Array([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]),po=new Uint8Array([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]),bs=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Ps=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),$s=512,To=new Array((Wn+2)*2);Jn(To);const Uo=new Array(Fn*2);Jn(Uo);const ys=new Array($s);Jn(ys);const el=new Array(Ua-Li+1);Jn(el);const vl=new Array(Aa);Jn(vl);const ic=new Array(Fn);Jn(ic);function ac(n,o,a,l,A){this.static_tree=n,this.extra_bits=o,this.extra_base=a,this.elems=l,this.max_length=A,this.has_stree=n&&n.length}let Ql,Zs,Dc;function Kl(n,o){this.dyn_tree=n,this.max_code=0,this.stat_desc=o}const Hl=n=>n<256?ys[n]:ys[256+(n>>>7)],Vs=(n,o)=>{n.pending_buf[n.pending++]=o&255,n.pending_buf[n.pending++]=o>>>8&255},as=(n,o,a)=>{n.bi_valid>Is-a?(n.bi_buf|=o<<n.bi_valid&65535,Vs(n,n.bi_buf),n.bi_buf=o>>Is-n.bi_valid,n.bi_valid+=a-Is):(n.bi_buf|=o<<n.bi_valid&65535,n.bi_valid+=a)},ii=(n,o,a)=>{as(n,a[o*2],a[o*2+1])},la=(n,o)=>{let a=0;do a|=n&1,n>>>=1,a<<=1;while(--o>0);return a>>>1},ta=n=>{n.bi_valid===16?(Vs(n,n.bi_buf),n.bi_buf=0,n.bi_valid=0):n.bi_valid>=8&&(n.pending_buf[n.pending++]=n.bi_buf&255,n.bi_buf>>=8,n.bi_valid-=8)},oa=(n,o)=>{const a=o.dyn_tree,l=o.max_code,A=o.stat_desc.static_tree,m=o.stat_desc.has_stree,N=o.stat_desc.extra_bits,E=o.stat_desc.extra_base,U=o.stat_desc.max_length;let Z,oe,Re,Ze,ae,mt,ut=0;for(Ze=0;Ze<=Fa;Ze++)n.bl_count[Ze]=0;for(a[n.heap[n.heap_max]*2+1]=0,Z=n.heap_max+1;Z<Ji;Z++)oe=n.heap[Z],Ze=a[a[oe*2+1]*2+1]+1,Ze>U&&(Ze=U,ut++),a[oe*2+1]=Ze,!(oe>l)&&(n.bl_count[Ze]++,ae=0,oe>=E&&(ae=N[oe-E]),mt=a[oe*2],n.opt_len+=mt*(Ze+ae),m&&(n.static_len+=mt*(A[oe*2+1]+ae)));if(ut!==0){do{for(Ze=U-1;n.bl_count[Ze]===0;)Ze--;n.bl_count[Ze]--,n.bl_count[Ze+1]+=2,n.bl_count[U]--,ut-=2}while(ut>0);for(Ze=U;Ze!==0;Ze--)for(oe=n.bl_count[Ze];oe!==0;)Re=n.heap[--Z],!(Re>l)&&(a[Re*2+1]!==Ze&&(n.opt_len+=(Ze-a[Re*2+1])*a[Re*2],a[Re*2+1]=Ze),oe--)}},Da=(n,o,a)=>{const l=new Array(Fa+1);let A=0,m,N;for(m=1;m<=Fa;m++)A=A+a[m-1]<<1,l[m]=A;for(N=0;N<=o;N++){let E=n[N*2+1];E!==0&&(n[N*2]=la(l[E]++,E))}},so=()=>{let n,o,a,l,A;const m=new Array(Fa+1);for(a=0,l=0;l<Aa-1;l++)for(vl[l]=a,n=0;n<1<<Os[l];n++)el[a++]=l;for(el[a-1]=l,A=0,l=0;l<16;l++)for(ic[l]=A,n=0;n<1<<po[l];n++)ys[A++]=l;for(A>>=7;l<Fn;l++)for(ic[l]=A<<7,n=0;n<1<<po[l]-7;n++)ys[256+A++]=l;for(o=0;o<=Fa;o++)m[o]=0;for(n=0;n<=143;)To[n*2+1]=8,n++,m[8]++;for(;n<=255;)To[n*2+1]=9,n++,m[9]++;for(;n<=279;)To[n*2+1]=7,n++,m[7]++;for(;n<=287;)To[n*2+1]=8,n++,m[8]++;for(Da(To,Wn+1,m),n=0;n<Fn;n++)Uo[n*2+1]=5,Uo[n*2]=la(n,5);Ql=new ac(To,Os,Bo+1,Wn,Fa),Zs=new ac(Uo,po,0,Fn,Fa),Dc=new ac(new Array(0),bs,0,Ni,za)},Ws=n=>{let o;for(o=0;o<Wn;o++)n.dyn_ltree[o*2]=0;for(o=0;o<Fn;o++)n.dyn_dtree[o*2]=0;for(o=0;o<Ni;o++)n.bl_tree[o*2]=0;n.dyn_ltree[fa*2]=1,n.opt_len=n.static_len=0,n.sym_next=n.matches=0},ws=n=>{n.bi_valid>8?Vs(n,n.bi_buf):n.bi_valid>0&&(n.pending_buf[n.pending++]=n.bi_buf),n.bi_buf=0,n.bi_valid=0},xs=(n,o,a,l)=>{const A=o*2,m=a*2;return n[A]<n[m]||n[A]===n[m]&&l[o]<=l[a]},ms=(n,o,a)=>{const l=n.heap[a];let A=a<<1;for(;A<=n.heap_len&&(A<n.heap_len&&xs(o,n.heap[A+1],n.heap[A],n.depth)&&A++,!xs(o,l,n.heap[A],n.depth));)n.heap[a]=n.heap[A],a=A,A<<=1;n.heap[a]=l},eo=(n,o,a)=>{let l,A,m=0,N,E;if(n.sym_next!==0)do l=n.pending_buf[n.sym_buf+m++]&255,l+=(n.pending_buf[n.sym_buf+m++]&255)<<8,A=n.pending_buf[n.sym_buf+m++],l===0?ii(n,A,o):(N=el[A],ii(n,N+Bo+1,o),E=Os[N],E!==0&&(A-=vl[N],as(n,A,E)),l--,N=Hl(l),ii(n,N,a),E=po[N],E!==0&&(l-=ic[N],as(n,l,E)));while(m<n.sym_next);ii(n,fa,o)},Ra=(n,o)=>{const a=o.dyn_tree,l=o.stat_desc.static_tree,A=o.stat_desc.has_stree,m=o.stat_desc.elems;let N,E,U=-1,Z;for(n.heap_len=0,n.heap_max=Ji,N=0;N<m;N++)a[N*2]!==0?(n.heap[++n.heap_len]=U=N,n.depth[N]=0):a[N*2+1]=0;for(;n.heap_len<2;)Z=n.heap[++n.heap_len]=U<2?++U:0,a[Z*2]=1,n.depth[Z]=0,n.opt_len--,A&&(n.static_len-=l[Z*2+1]);for(o.max_code=U,N=n.heap_len>>1;N>=1;N--)ms(n,a,N);Z=m;do N=n.heap[1],n.heap[1]=n.heap[n.heap_len--],ms(n,a,1),E=n.heap[1],n.heap[--n.heap_max]=N,n.heap[--n.heap_max]=E,a[Z*2]=a[N*2]+a[E*2],n.depth[Z]=(n.depth[N]>=n.depth[E]?n.depth[N]:n.depth[E])+1,a[N*2+1]=a[E*2+1]=Z,n.heap[1]=Z++,ms(n,a,1);while(n.heap_len>=2);n.heap[--n.heap_max]=n.heap[1],oa(n,o),Da(a,U,n.bl_count)},os=(n,o,a)=>{let l,A=-1,m,N=o[0*2+1],E=0,U=7,Z=4;for(N===0&&(U=138,Z=3),o[(a+1)*2+1]=65535,l=0;l<=a;l++)m=N,N=o[(l+1)*2+1],!(++E<U&&m===N)&&(E<Z?n.bl_tree[m*2]+=E:m!==0?(m!==A&&n.bl_tree[m*2]++,n.bl_tree[Io*2]++):E<=10?n.bl_tree[So*2]++:n.bl_tree[Po*2]++,E=0,A=m,N===0?(U=138,Z=3):m===N?(U=6,Z=3):(U=7,Z=4))},ss=(n,o,a)=>{let l,A=-1,m,N=o[0*2+1],E=0,U=7,Z=4;for(N===0&&(U=138,Z=3),l=0;l<=a;l++)if(m=N,N=o[(l+1)*2+1],!(++E<U&&m===N)){if(E<Z)do ii(n,m,n.bl_tree);while(--E!==0);else m!==0?(m!==A&&(ii(n,m,n.bl_tree),E--),ii(n,Io,n.bl_tree),as(n,E-3,2)):E<=10?(ii(n,So,n.bl_tree),as(n,E-3,3)):(ii(n,Po,n.bl_tree),as(n,E-11,7));E=0,A=m,N===0?(U=138,Z=3):m===N?(U=6,Z=3):(U=7,Z=4)}},Fs=n=>{let o;for(os(n,n.dyn_ltree,n.l_desc.max_code),os(n,n.dyn_dtree,n.d_desc.max_code),Ra(n,n.bl_desc),o=Ni-1;o>=3&&n.bl_tree[Ps[o]*2+1]===0;o--);return n.opt_len+=3*(o+1)+5+5+4,o},Go=(n,o,a,l)=>{let A;for(as(n,o-257,5),as(n,a-1,5),as(n,l-4,4),A=0;A<l;A++)as(n,n.bl_tree[Ps[A]*2+1],3);ss(n,n.dyn_ltree,o-1),ss(n,n.dyn_dtree,a-1)},Fo=n=>{let o=4093624447,a;for(a=0;a<=31;a++,o>>>=1)if(o&1&&n.dyn_ltree[a*2]!==0)return li;if(n.dyn_ltree[9*2]!==0||n.dyn_ltree[10*2]!==0||n.dyn_ltree[13*2]!==0)return pn;for(a=32;a<Bo;a++)if(n.dyn_ltree[a*2]!==0)return pn;return li};let pA=!1;const tu=n=>{pA||(so(),pA=!0),n.l_desc=new Kl(n.dyn_ltree,Ql),n.d_desc=new Kl(n.dyn_dtree,Zs),n.bl_desc=new Kl(n.bl_tree,Dc),n.bi_buf=0,n.bi_valid=0,Ws(n)},Ac=(n,o,a,l)=>{as(n,(Hn<<1)+(l?1:0),3),ws(n),Vs(n,a),Vs(n,~a),a&&n.pending_buf.set(n.window.subarray(o,o+a),n.pending),n.pending+=a},mA=n=>{as(n,hi<<1,3),ii(n,fa,To),ta(n)},ll=(n,o,a,l)=>{let A,m,N=0;n.level>0?(n.strm.data_type===ln&&(n.strm.data_type=Fo(n)),Ra(n,n.l_desc),Ra(n,n.d_desc),N=Fs(n),A=n.opt_len+3+7>>>3,m=n.static_len+3+7>>>3,m<=A&&(A=m)):A=m=a+5,a+4<=A&&o!==-1?Ac(n,o,a,l):n.strategy===Ha||m===A?(as(n,(hi<<1)+(l?1:0),3),eo(n,To,Uo)):(as(n,(qi<<1)+(l?1:0),3),Go(n,n.l_desc.max_code+1,n.d_desc.max_code+1,N+1),eo(n,n.dyn_ltree,n.dyn_dtree)),Ws(n),l&&ws(n)},gA=(n,o,a)=>(n.pending_buf[n.sym_buf+n.sym_next++]=o,n.pending_buf[n.sym_buf+n.sym_next++]=o>>8,n.pending_buf[n.sym_buf+n.sym_next++]=a,o===0?n.dyn_ltree[a*2]++:(n.matches++,o--,n.dyn_ltree[(el[a]+Bo+1)*2]++,n.dyn_dtree[Hl(o)*2]++),n.sym_next===n.sym_end);var tl=tu,gs=Ac,qc=ll,Ts=gA,OA=mA,uc={_tr_init:tl,_tr_stored_block:gs,_tr_flush_block:qc,_tr_tally:Ts,_tr_align:OA},to=(n,o,a,l)=>{let A=n&65535|0,m=n>>>16&65535|0,N=0;for(;a!==0;){N=a>2e3?2e3:a,a-=N;do A=A+o[l++]|0,m=m+A|0;while(--N);A%=65521,m%=65521}return A|m<<16|0};const Gs=()=>{let n,o=[];for(var a=0;a<256;a++){n=a;for(var l=0;l<8;l++)n=n&1?3988292384^n>>>1:n>>>1;o[a]=n}return o},vA=new Uint32Array(Gs());var ls=(n,o,a,l)=>{const A=vA,m=l+a;n^=-1;for(let N=l;N<m;N++)n=n>>>8^A[(n^o[N])&255];return n^-1},Ca={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"},ya={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_MEM_ERROR:-4,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};const{_tr_init:ts,_tr_stored_block:go,_tr_flush_block:jo,_tr_tally:zo,_tr_align:No}=uc,{Z_NO_FLUSH:Cs,Z_PARTIAL_FLUSH:oc,Z_FULL_FLUSH:Vc,Z_FINISH:Xs,Z_BLOCK:bA,Z_OK:xl,Z_STREAM_END:eA,Z_STREAM_ERROR:rl,Z_DATA_ERROR:Id,Z_BUF_ERROR:ru,Z_DEFAULT_COMPRESSION:jA,Z_FILTERED:cf,Z_HUFFMAN_ONLY:Wc,Z_RLE:Yu,Z_FIXED:Nc,Z_DEFAULT_STRATEGY:Fd,Z_UNKNOWN:Xo,Z_DEFLATED:Oo}=ya,Jo=9,yc=15,zl=8,zA=256+1+29,Md=30,Ld=19,$A=2*zA+1,ZA=15,Mo=3,wA=258,VA=wA+Mo+1,y0=32,nu=42,xh=57,Af=69,kd=73,Kf=91,Ch=103,Eu=113,uf=666,Cl=1,Bl=2,Oc=3,Pc=4,w0=3,_u=(n,o)=>(n.msg=Ca[o],o),Bh=n=>n*2-(n>4?9:0),Iu=n=>{let o=n.length;for(;--o>=0;)n[o]=0},Dd=n=>{let o,a,l,A=n.w_size;o=n.hash_size,l=o;do a=n.head[--l],n.head[l]=a>=A?a-A:0;while(--o);o=A,l=o;do a=n.prev[--l],n.prev[l]=a>=A?a-A:0;while(--o)};let iu=(n,o,a)=>(o<<n.hash_shift^a)&n.hash_mask;const tA=n=>{const o=n.state;let a=o.pending;a>n.avail_out&&(a=n.avail_out),a!==0&&(n.output.set(o.pending_buf.subarray(o.pending_out,o.pending_out+a),n.next_out),n.next_out+=a,o.pending_out+=a,n.total_out+=a,n.avail_out-=a,o.pending-=a,o.pending===0&&(o.pending_out=0))},wc=(n,o)=>{jo(n,n.block_start>=0?n.block_start:-1,n.strstart-n.block_start,o),n.block_start=n.strstart,tA(n.strm)},$o=(n,o)=>{n.pending_buf[n.pending++]=o},ed=(n,o)=>{n.pending_buf[n.pending++]=o>>>8&255,n.pending_buf[n.pending++]=o&255},Hf=(n,o,a,l)=>{let A=n.avail_in;return A>l&&(A=l),A===0?0:(n.avail_in-=A,o.set(n.input.subarray(n.next_in,n.next_in+A),a),n.state.wrap===1?n.adler=to(n.adler,o,A,a):n.state.wrap===2&&(n.adler=ls(n.adler,o,A,a)),n.next_in+=A,n.total_in+=A,A)},jf=(n,o)=>{let a=n.max_chain_length,l=n.strstart,A,m,N=n.prev_length,E=n.nice_match;const U=n.strstart>n.w_size-VA?n.strstart-(n.w_size-VA):0,Z=n.window,oe=n.w_mask,Re=n.prev,Ze=n.strstart+wA;let ae=Z[l+N-1],mt=Z[l+N];n.prev_length>=n.good_match&&(a>>=2),E>n.lookahead&&(E=n.lookahead);do if(A=o,!(Z[A+N]!==mt||Z[A+N-1]!==ae||Z[A]!==Z[l]||Z[++A]!==Z[l+1])){l+=2,A++;do;while(Z[++l]===Z[++A]&&Z[++l]===Z[++A]&&Z[++l]===Z[++A]&&Z[++l]===Z[++A]&&Z[++l]===Z[++A]&&Z[++l]===Z[++A]&&Z[++l]===Z[++A]&&Z[++l]===Z[++A]&&l<Ze);if(m=wA-(Ze-l),l=Ze-wA,m>N){if(n.match_start=o,N=m,m>=E)break;ae=Z[l+N-1],mt=Z[l+N]}}while((o=Re[o&oe])>U&&--a!==0);return N<=n.lookahead?N:n.lookahead},Tc=n=>{const o=n.w_size;let a,l,A;do{if(l=n.window_size-n.lookahead-n.strstart,n.strstart>=o+(o-VA)&&(n.window.set(n.window.subarray(o,o+o-l),0),n.match_start-=o,n.strstart-=o,n.block_start-=o,n.insert>n.strstart&&(n.insert=n.strstart),Dd(n),l+=o),n.strm.avail_in===0)break;if(a=Hf(n.strm,n.window,n.strstart+n.lookahead,l),n.lookahead+=a,n.lookahead+n.insert>=Mo)for(A=n.strstart-n.insert,n.ins_h=n.window[A],n.ins_h=iu(n,n.ins_h,n.window[A+1]);n.insert&&(n.ins_h=iu(n,n.ins_h,n.window[A+Mo-1]),n.prev[A&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=A,A++,n.insert--,!(n.lookahead+n.insert<Mo)););}while(n.lookahead<VA&&n.strm.avail_in!==0)},td=(n,o)=>{let a=n.pending_buf_size-5>n.w_size?n.w_size:n.pending_buf_size-5,l,A,m,N=0,E=n.strm.avail_in;do{if(l=65535,m=n.bi_valid+42>>3,n.strm.avail_out<m||(m=n.strm.avail_out-m,A=n.strstart-n.block_start,l>A+n.strm.avail_in&&(l=A+n.strm.avail_in),l>m&&(l=m),l<a&&(l===0&&o!==Xs||o===Cs||l!==A+n.strm.avail_in)))break;N=o===Xs&&l===A+n.strm.avail_in?1:0,go(n,0,0,N),n.pending_buf[n.pending-4]=l,n.pending_buf[n.pending-3]=l>>8,n.pending_buf[n.pending-2]=~l,n.pending_buf[n.pending-1]=~l>>8,tA(n.strm),A&&(A>l&&(A=l),n.strm.output.set(n.window.subarray(n.block_start,n.block_start+A),n.strm.next_out),n.strm.next_out+=A,n.strm.avail_out-=A,n.strm.total_out+=A,n.block_start+=A,l-=A),l&&(Hf(n.strm,n.strm.output,n.strm.next_out,l),n.strm.next_out+=l,n.strm.avail_out-=l,n.strm.total_out+=l)}while(N===0);return E-=n.strm.avail_in,E&&(E>=n.w_size?(n.matches=2,n.window.set(n.strm.input.subarray(n.strm.next_in-n.w_size,n.strm.next_in),0),n.strstart=n.w_size,n.insert=n.strstart):(n.window_size-n.strstart<=E&&(n.strstart-=n.w_size,n.window.set(n.window.subarray(n.w_size,n.w_size+n.strstart),0),n.matches<2&&n.matches++,n.insert>n.strstart&&(n.insert=n.strstart)),n.window.set(n.strm.input.subarray(n.strm.next_in-E,n.strm.next_in),n.strstart),n.strstart+=E,n.insert+=E>n.w_size-n.insert?n.w_size-n.insert:E),n.block_start=n.strstart),n.high_water<n.strstart&&(n.high_water=n.strstart),N?Pc:o!==Cs&&o!==Xs&&n.strm.avail_in===0&&n.strstart===n.block_start?Bl:(m=n.window_size-n.strstart,n.strm.avail_in>m&&n.block_start>=n.w_size&&(n.block_start-=n.w_size,n.strstart-=n.w_size,n.window.set(n.window.subarray(n.w_size,n.w_size+n.strstart),0),n.matches<2&&n.matches++,m+=n.w_size,n.insert>n.strstart&&(n.insert=n.strstart)),m>n.strm.avail_in&&(m=n.strm.avail_in),m&&(Hf(n.strm,n.window,n.strstart,m),n.strstart+=m,n.insert+=m>n.w_size-n.insert?n.w_size-n.insert:m),n.high_water<n.strstart&&(n.high_water=n.strstart),m=n.bi_valid+42>>3,m=n.pending_buf_size-m>65535?65535:n.pending_buf_size-m,a=m>n.w_size?n.w_size:m,A=n.strstart-n.block_start,(A>=a||(A||o===Xs)&&o!==Cs&&n.strm.avail_in===0&&A<=m)&&(l=A>m?m:A,N=o===Xs&&n.strm.avail_in===0&&l===A?1:0,go(n,n.block_start,l,N),n.block_start+=l,tA(n.strm)),N?Oc:Cl)},df=(n,o)=>{let a,l;for(;;){if(n.lookahead<VA){if(Tc(n),n.lookahead<VA&&o===Cs)return Cl;if(n.lookahead===0)break}if(a=0,n.lookahead>=Mo&&(n.ins_h=iu(n,n.ins_h,n.window[n.strstart+Mo-1]),a=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart),a!==0&&n.strstart-a<=n.w_size-VA&&(n.match_length=jf(n,a)),n.match_length>=Mo)if(l=zo(n,n.strstart-n.match_start,n.match_length-Mo),n.lookahead-=n.match_length,n.match_length<=n.max_lazy_match&&n.lookahead>=Mo){n.match_length--;do n.strstart++,n.ins_h=iu(n,n.ins_h,n.window[n.strstart+Mo-1]),a=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart;while(--n.match_length!==0);n.strstart++}else n.strstart+=n.match_length,n.match_length=0,n.ins_h=n.window[n.strstart],n.ins_h=iu(n,n.ins_h,n.window[n.strstart+1]);else l=zo(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++;if(l&&(wc(n,!1),n.strm.avail_out===0))return Cl}return n.insert=n.strstart<Mo-1?n.strstart:Mo-1,o===Xs?(wc(n,!0),n.strm.avail_out===0?Oc:Pc):n.sym_next&&(wc(n,!1),n.strm.avail_out===0)?Cl:Bl},rd=(n,o)=>{let a,l,A;for(;;){if(n.lookahead<VA){if(Tc(n),n.lookahead<VA&&o===Cs)return Cl;if(n.lookahead===0)break}if(a=0,n.lookahead>=Mo&&(n.ins_h=iu(n,n.ins_h,n.window[n.strstart+Mo-1]),a=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart),n.prev_length=n.match_length,n.prev_match=n.match_start,n.match_length=Mo-1,a!==0&&n.prev_length<n.max_lazy_match&&n.strstart-a<=n.w_size-VA&&(n.match_length=jf(n,a),n.match_length<=5&&(n.strategy===cf||n.match_length===Mo&&n.strstart-n.match_start>4096)&&(n.match_length=Mo-1)),n.prev_length>=Mo&&n.match_length<=n.prev_length){A=n.strstart+n.lookahead-Mo,l=zo(n,n.strstart-1-n.prev_match,n.prev_length-Mo),n.lookahead-=n.prev_length-1,n.prev_length-=2;do++n.strstart<=A&&(n.ins_h=iu(n,n.ins_h,n.window[n.strstart+Mo-1]),a=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart);while(--n.prev_length!==0);if(n.match_available=0,n.match_length=Mo-1,n.strstart++,l&&(wc(n,!1),n.strm.avail_out===0))return Cl}else if(n.match_available){if(l=zo(n,0,n.window[n.strstart-1]),l&&wc(n,!1),n.strstart++,n.lookahead--,n.strm.avail_out===0)return Cl}else n.match_available=1,n.strstart++,n.lookahead--}return n.match_available&&(l=zo(n,0,n.window[n.strstart-1]),n.match_available=0),n.insert=n.strstart<Mo-1?n.strstart:Mo-1,o===Xs?(wc(n,!0),n.strm.avail_out===0?Oc:Pc):n.sym_next&&(wc(n,!1),n.strm.avail_out===0)?Cl:Bl},x0=(n,o)=>{let a,l,A,m;const N=n.window;for(;;){if(n.lookahead<=wA){if(Tc(n),n.lookahead<=wA&&o===Cs)return Cl;if(n.lookahead===0)break}if(n.match_length=0,n.lookahead>=Mo&&n.strstart>0&&(A=n.strstart-1,l=N[A],l===N[++A]&&l===N[++A]&&l===N[++A])){m=n.strstart+wA;do;while(l===N[++A]&&l===N[++A]&&l===N[++A]&&l===N[++A]&&l===N[++A]&&l===N[++A]&&l===N[++A]&&l===N[++A]&&A<m);n.match_length=wA-(m-A),n.match_length>n.lookahead&&(n.match_length=n.lookahead)}if(n.match_length>=Mo?(a=zo(n,1,n.match_length-Mo),n.lookahead-=n.match_length,n.strstart+=n.match_length,n.match_length=0):(a=zo(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++),a&&(wc(n,!1),n.strm.avail_out===0))return Cl}return n.insert=0,o===Xs?(wc(n,!0),n.strm.avail_out===0?Oc:Pc):n.sym_next&&(wc(n,!1),n.strm.avail_out===0)?Cl:Bl},C0=(n,o)=>{let a;for(;;){if(n.lookahead===0&&(Tc(n),n.lookahead===0)){if(o===Cs)return Cl;break}if(n.match_length=0,a=zo(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++,a&&(wc(n,!1),n.strm.avail_out===0))return Cl}return n.insert=0,o===Xs?(wc(n,!0),n.strm.avail_out===0?Oc:Pc):n.sym_next&&(wc(n,!1),n.strm.avail_out===0)?Cl:Bl};function $l(n,o,a,l,A){this.good_length=n,this.max_lazy=o,this.nice_length=a,this.max_chain=l,this.func=A}const nd=[new $l(0,0,0,0,td),new $l(4,4,8,4,df),new $l(4,5,16,8,df),new $l(4,6,32,32,df),new $l(4,4,16,16,rd),new $l(8,16,32,32,rd),new $l(8,16,128,128,rd),new $l(8,32,128,256,rd),new $l(32,128,258,1024,rd),new $l(32,258,258,4096,rd)],B0=n=>{n.window_size=2*n.w_size,Iu(n.head),n.max_lazy_match=nd[n.level].max_lazy,n.good_match=nd[n.level].good_length,n.nice_match=nd[n.level].nice_length,n.max_chain_length=nd[n.level].max_chain,n.strstart=0,n.block_start=0,n.lookahead=0,n.insert=0,n.match_length=n.prev_length=Mo-1,n.match_available=0,n.ins_h=0};function ue(){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=Oo,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 Uint16Array($A*2),this.dyn_dtree=new Uint16Array((2*Md+1)*2),this.bl_tree=new Uint16Array((2*Ld+1)*2),Iu(this.dyn_ltree),Iu(this.dyn_dtree),Iu(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(ZA+1),this.heap=new Uint16Array(2*zA+1),Iu(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*zA+1),Iu(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const we=n=>{if(!n)return 1;const o=n.state;return!o||o.strm!==n||o.status!==nu&&o.status!==xh&&o.status!==Af&&o.status!==kd&&o.status!==Kf&&o.status!==Ch&&o.status!==Eu&&o.status!==uf?1:0},Je=n=>{if(we(n))return _u(n,rl);n.total_in=n.total_out=0,n.data_type=Xo;const o=n.state;return o.pending=0,o.pending_out=0,o.wrap<0&&(o.wrap=-o.wrap),o.status=o.wrap===2?xh:o.wrap?nu:Eu,n.adler=o.wrap===2?0:1,o.last_flush=-2,ts(o),xl},lt=n=>{const o=Je(n);return o===xl&&B0(n.state),o},Ct=(n,o)=>we(n)||n.state.wrap!==2?rl:(n.state.gzhead=o,xl),bt=(n,o,a,l,A,m)=>{if(!n)return rl;let N=1;if(o===jA&&(o=6),l<0?(N=0,l=-l):l>15&&(N=2,l-=16),A<1||A>Jo||a!==Oo||l<8||l>15||o<0||o>9||m<0||m>Nc||l===8&&N!==1)return _u(n,rl);l===8&&(l=9);const E=new ue;return n.state=E,E.strm=n,E.status=nu,E.wrap=N,E.gzhead=null,E.w_bits=l,E.w_size=1<<E.w_bits,E.w_mask=E.w_size-1,E.hash_bits=A+7,E.hash_size=1<<E.hash_bits,E.hash_mask=E.hash_size-1,E.hash_shift=~~((E.hash_bits+Mo-1)/Mo),E.window=new Uint8Array(E.w_size*2),E.head=new Uint16Array(E.hash_size),E.prev=new Uint16Array(E.w_size),E.lit_bufsize=1<<A+6,E.pending_buf_size=E.lit_bufsize*4,E.pending_buf=new Uint8Array(E.pending_buf_size),E.sym_buf=E.lit_bufsize,E.sym_end=(E.lit_bufsize-1)*3,E.level=o,E.strategy=m,E.method=a,lt(n)},$t=(n,o)=>bt(n,o,Oo,yc,zl,Fd),zt=(n,o)=>{if(we(n)||o>bA||o<0)return n?_u(n,rl):rl;const a=n.state;if(!n.output||n.avail_in!==0&&!n.input||a.status===uf&&o!==Xs)return _u(n,n.avail_out===0?ru:rl);const l=a.last_flush;if(a.last_flush=o,a.pending!==0){if(tA(n),n.avail_out===0)return a.last_flush=-1,xl}else if(n.avail_in===0&&Bh(o)<=Bh(l)&&o!==Xs)return _u(n,ru);if(a.status===uf&&n.avail_in!==0)return _u(n,ru);if(a.status===nu&&a.wrap===0&&(a.status=Eu),a.status===nu){let A=Oo+(a.w_bits-8<<4)<<8,m=-1;if(a.strategy>=Wc||a.level<2?m=0:a.level<6?m=1:a.level===6?m=2:m=3,A|=m<<6,a.strstart!==0&&(A|=y0),A+=31-A%31,ed(a,A),a.strstart!==0&&(ed(a,n.adler>>>16),ed(a,n.adler&65535)),n.adler=1,a.status=Eu,tA(n),a.pending!==0)return a.last_flush=-1,xl}if(a.status===xh){if(n.adler=0,$o(a,31),$o(a,139),$o(a,8),a.gzhead)$o(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),$o(a,a.gzhead.time&255),$o(a,a.gzhead.time>>8&255),$o(a,a.gzhead.time>>16&255),$o(a,a.gzhead.time>>24&255),$o(a,a.level===9?2:a.strategy>=Wc||a.level<2?4:0),$o(a,a.gzhead.os&255),a.gzhead.extra&&a.gzhead.extra.length&&($o(a,a.gzhead.extra.length&255),$o(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(n.adler=ls(n.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=Af;else if($o(a,0),$o(a,0),$o(a,0),$o(a,0),$o(a,0),$o(a,a.level===9?2:a.strategy>=Wc||a.level<2?4:0),$o(a,w0),a.status=Eu,tA(n),a.pending!==0)return a.last_flush=-1,xl}if(a.status===Af){if(a.gzhead.extra){let A=a.pending,m=(a.gzhead.extra.length&65535)-a.gzindex;for(;a.pending+m>a.pending_buf_size;){let E=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+E),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>A&&(n.adler=ls(n.adler,a.pending_buf,a.pending-A,A)),a.gzindex+=E,tA(n),a.pending!==0)return a.last_flush=-1,xl;A=0,m-=E}let N=new Uint8Array(a.gzhead.extra);a.pending_buf.set(N.subarray(a.gzindex,a.gzindex+m),a.pending),a.pending+=m,a.gzhead.hcrc&&a.pending>A&&(n.adler=ls(n.adler,a.pending_buf,a.pending-A,A)),a.gzindex=0}a.status=kd}if(a.status===kd){if(a.gzhead.name){let A=a.pending,m;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>A&&(n.adler=ls(n.adler,a.pending_buf,a.pending-A,A)),tA(n),a.pending!==0)return a.last_flush=-1,xl;A=0}a.gzindex<a.gzhead.name.length?m=a.gzhead.name.charCodeAt(a.gzindex++)&255:m=0,$o(a,m)}while(m!==0);a.gzhead.hcrc&&a.pending>A&&(n.adler=ls(n.adler,a.pending_buf,a.pending-A,A)),a.gzindex=0}a.status=Kf}if(a.status===Kf){if(a.gzhead.comment){let A=a.pending,m;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>A&&(n.adler=ls(n.adler,a.pending_buf,a.pending-A,A)),tA(n),a.pending!==0)return a.last_flush=-1,xl;A=0}a.gzindex<a.gzhead.comment.length?m=a.gzhead.comment.charCodeAt(a.gzindex++)&255:m=0,$o(a,m)}while(m!==0);a.gzhead.hcrc&&a.pending>A&&(n.adler=ls(n.adler,a.pending_buf,a.pending-A,A))}a.status=Ch}if(a.status===Ch){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(tA(n),a.pending!==0))return a.last_flush=-1,xl;$o(a,n.adler&255),$o(a,n.adler>>8&255),n.adler=0}if(a.status=Eu,tA(n),a.pending!==0)return a.last_flush=-1,xl}if(n.avail_in!==0||a.lookahead!==0||o!==Cs&&a.status!==uf){let A=a.level===0?td(a,o):a.strategy===Wc?C0(a,o):a.strategy===Yu?x0(a,o):nd[a.level].func(a,o);if((A===Oc||A===Pc)&&(a.status=uf),A===Cl||A===Oc)return n.avail_out===0&&(a.last_flush=-1),xl;if(A===Bl&&(o===oc?No(a):o!==bA&&(go(a,0,0,!1),o===Vc&&(Iu(a.head),a.lookahead===0&&(a.strstart=0,a.block_start=0,a.insert=0))),tA(n),n.avail_out===0))return a.last_flush=-1,xl}return o!==Xs?xl:a.wrap<=0?eA:(a.wrap===2?($o(a,n.adler&255),$o(a,n.adler>>8&255),$o(a,n.adler>>16&255),$o(a,n.adler>>24&255),$o(a,n.total_in&255),$o(a,n.total_in>>8&255),$o(a,n.total_in>>16&255),$o(a,n.total_in>>24&255)):(ed(a,n.adler>>>16),ed(a,n.adler&65535)),tA(n),a.wrap>0&&(a.wrap=-a.wrap),a.pending!==0?xl:eA)},Kt=n=>{if(we(n))return rl;const o=n.state.status;return n.state=null,o===Eu?_u(n,Id):xl},Ar=(n,o)=>{let a=o.length;if(we(n))return rl;const l=n.state,A=l.wrap;if(A===2||A===1&&l.status!==nu||l.lookahead)return rl;if(A===1&&(n.adler=to(n.adler,o,a,0)),l.wrap=0,a>=l.w_size){A===0&&(Iu(l.head),l.strstart=0,l.block_start=0,l.insert=0);let U=new Uint8Array(l.w_size);U.set(o.subarray(a-l.w_size,a),0),o=U,a=l.w_size}const m=n.avail_in,N=n.next_in,E=n.input;for(n.avail_in=a,n.next_in=0,n.input=o,Tc(l);l.lookahead>=Mo;){let U=l.strstart,Z=l.lookahead-(Mo-1);do l.ins_h=iu(l,l.ins_h,l.window[U+Mo-1]),l.prev[U&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=U,U++;while(--Z);l.strstart=U,l.lookahead=Mo-1,Tc(l)}return l.strstart+=l.lookahead,l.block_start=l.strstart,l.insert=l.lookahead,l.lookahead=0,l.match_length=l.prev_length=Mo-1,l.match_available=0,n.next_in=N,n.input=E,n.avail_in=m,l.wrap=A,xl};var Er=$t,pr=bt,tn=lt,Vr=Je,Yr=Ct,Pn=zt,Cn=Kt,Mn=Ar,Sn="pako deflate (from Nodeca project)",$n={deflateInit:Er,deflateInit2:pr,deflateReset:tn,deflateResetKeep:Vr,deflateSetHeader:Yr,deflate:Pn,deflateEnd:Cn,deflateSetDictionary:Mn,deflateInfo:Sn};const Ui=(n,o)=>Object.prototype.hasOwnProperty.call(n,o);var zi=function(n){const o=Array.prototype.slice.call(arguments,1);for(;o.length;){const a=o.shift();if(a){if(typeof a!="object")throw new TypeError(a+"must be non-object");for(const l in a)Ui(a,l)&&(n[l]=a[l])}}return n},pi=n=>{let o=0;for(let l=0,A=n.length;l<A;l++)o+=n[l].length;const a=new Uint8Array(o);for(let l=0,A=0,m=n.length;l<m;l++){let N=n[l];a.set(N,A),A+=N.length}return a},na={assign:zi,flattenChunks:pi};let wa=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(n){wa=!1}const Yn=new Uint8Array(256);for(let n=0;n<256;n++)Yn[n]=n>=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;Yn[254]=Yn[254]=1;var bi=n=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(n);let o,a,l,A,m,N=n.length,E=0;for(A=0;A<N;A++)a=n.charCodeAt(A),(a&64512)===55296&&A+1<N&&(l=n.charCodeAt(A+1),(l&64512)===56320&&(a=65536+(a-55296<<10)+(l-56320),A++)),E+=a<128?1:a<2048?2:a<65536?3:4;for(o=new Uint8Array(E),m=0,A=0;m<E;A++)a=n.charCodeAt(A),(a&64512)===55296&&A+1<N&&(l=n.charCodeAt(A+1),(l&64512)===56320&&(a=65536+(a-55296<<10)+(l-56320),A++)),a<128?o[m++]=a:a<2048?(o[m++]=192|a>>>6,o[m++]=128|a&63):a<65536?(o[m++]=224|a>>>12,o[m++]=128|a>>>6&63,o[m++]=128|a&63):(o[m++]=240|a>>>18,o[m++]=128|a>>>12&63,o[m++]=128|a>>>6&63,o[m++]=128|a&63);return o};const ai=(n,o)=>{if(o<65534&&n.subarray&&wa)return String.fromCharCode.apply(null,n.length===o?n:n.subarray(0,o));let a="";for(let l=0;l<o;l++)a+=String.fromCharCode(n[l]);return a};var Tn=(n,o)=>{const a=o||n.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(n.subarray(0,o));let l,A;const m=new Array(a*2);for(A=0,l=0;l<a;){let N=n[l++];if(N<128){m[A++]=N;continue}let E=Yn[N];if(E>4){m[A++]=65533,l+=E-1;continue}for(N&=E===2?31:E===3?15:7;E>1&&l<a;)N=N<<6|n[l++]&63,E--;if(E>1){m[A++]=65533;continue}N<65536?m[A++]=N:(N-=65536,m[A++]=55296|N>>10&1023,m[A++]=56320|N&1023)}return ai(m,A)},oi=(n,o)=>{o=o||n.length,o>n.length&&(o=n.length);let a=o-1;for(;a>=0&&(n[a]&192)===128;)a--;return a<0||a===0?o:a+Yn[n[a]]>o?a:o},Vi={string2buf:bi,buf2string:Tn,utf8border:oi};function Na(){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}var pa=Na;const Wi=Object.prototype.toString,{Z_NO_FLUSH:_a,Z_SYNC_FLUSH:Qa,Z_FULL_FLUSH:Yo,Z_FINISH:lo,Z_OK:vs,Z_STREAM_END:cs,Z_DEFAULT_COMPRESSION:ma,Z_DEFAULT_STRATEGY:al,Z_DEFLATED:mo}=ya;function qo(n){this.options=na.assign({level:ma,method:mo,chunkSize:16384,windowBits:15,memLevel:8,strategy:al},n||{});let o=this.options;o.raw&&o.windowBits>0?o.windowBits=-o.windowBits:o.gzip&&o.windowBits>0&&o.windowBits<16&&(o.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new pa,this.strm.avail_out=0;let a=$n.deflateInit2(this.strm,o.level,o.method,o.windowBits,o.memLevel,o.strategy);if(a!==vs)throw new Error(Ca[a]);if(o.header&&$n.deflateSetHeader(this.strm,o.header),o.dictionary){let l;if(typeof o.dictionary=="string"?l=Vi.string2buf(o.dictionary):Wi.call(o.dictionary)==="[object ArrayBuffer]"?l=new Uint8Array(o.dictionary):l=o.dictionary,a=$n.deflateSetDictionary(this.strm,l),a!==vs)throw new Error(Ca[a]);this._dict_set=!0}}qo.prototype.push=function(n,o){const a=this.strm,l=this.options.chunkSize;let A,m;if(this.ended)return!1;for(o===~~o?m=o:m=o===!0?lo:_a,typeof n=="string"?a.input=Vi.string2buf(n):Wi.call(n)==="[object ArrayBuffer]"?a.input=new Uint8Array(n):a.input=n,a.next_in=0,a.avail_in=a.input.length;;){if(a.avail_out===0&&(a.output=new Uint8Array(l),a.next_out=0,a.avail_out=l),(m===Qa||m===Yo)&&a.avail_out<=6){this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;continue}if(A=$n.deflate(a,m),A===cs)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),A=$n.deflateEnd(this.strm),this.onEnd(A),this.ended=!0,A===vs;if(a.avail_out===0){this.onData(a.output);continue}if(m>0&&a.next_out>0){this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;continue}if(a.avail_in===0)break}return!0},qo.prototype.onData=function(n){this.chunks.push(n)},qo.prototype.onEnd=function(n){n===vs&&(this.result=na.flattenChunks(this.chunks)),this.chunks=[],this.err=n,this.msg=this.strm.msg};function rs(n,o){const a=new qo(o);if(a.push(n,!0),a.err)throw a.msg||Ca[a.err];return a.result}function xc(n,o){return o=o||{},o.raw=!0,rs(n,o)}function si(n,o){return o=o||{},o.gzip=!0,rs(n,o)}var Gi=qo,$i=rs,Oi=xc,vo=si,Pi=ya,ca={Deflate:Gi,deflate:$i,deflateRaw:Oi,gzip:vo,constants:Pi};const ja=16209,$a=16191;var Ml=function(o,a){let l,A,m,N,E,U,Z,oe,Re,Ze,ae,mt,ut,yt,st,Gt,Qt,It,Ir,rn,Wr,or,Lt,xr;const it=o.state;l=o.next_in,Lt=o.input,A=l+(o.avail_in-5),m=o.next_out,xr=o.output,N=m-(a-o.avail_out),E=m+(o.avail_out-257),U=it.dmax,Z=it.wsize,oe=it.whave,Re=it.wnext,Ze=it.window,ae=it.hold,mt=it.bits,ut=it.lencode,yt=it.distcode,st=(1<<it.lenbits)-1,Gt=(1<<it.distbits)-1;e:do{mt<15&&(ae+=Lt[l++]<<mt,mt+=8,ae+=Lt[l++]<<mt,mt+=8),Qt=ut[ae&st];t:for(;;){if(It=Qt>>>24,ae>>>=It,mt-=It,It=Qt>>>16&255,It===0)xr[m++]=Qt&65535;else if(It&16){Ir=Qt&65535,It&=15,It&&(mt<It&&(ae+=Lt[l++]<<mt,mt+=8),Ir+=ae&(1<<It)-1,ae>>>=It,mt-=It),mt<15&&(ae+=Lt[l++]<<mt,mt+=8,ae+=Lt[l++]<<mt,mt+=8),Qt=yt[ae&Gt];r:for(;;){if(It=Qt>>>24,ae>>>=It,mt-=It,It=Qt>>>16&255,It&16){if(rn=Qt&65535,It&=15,mt<It&&(ae+=Lt[l++]<<mt,mt+=8,mt<It&&(ae+=Lt[l++]<<mt,mt+=8)),rn+=ae&(1<<It)-1,rn>U){o.msg="invalid distance too far back",it.mode=ja;break e}if(ae>>>=It,mt-=It,It=m-N,rn>It){if(It=rn-It,It>oe&&it.sane){o.msg="invalid distance too far back",it.mode=ja;break e}if(Wr=0,or=Ze,Re===0){if(Wr+=Z-It,It<Ir){Ir-=It;do xr[m++]=Ze[Wr++];while(--It);Wr=m-rn,or=xr}}else if(Re<It){if(Wr+=Z+Re-It,It-=Re,It<Ir){Ir-=It;do xr[m++]=Ze[Wr++];while(--It);if(Wr=0,Re<Ir){It=Re,Ir-=It;do xr[m++]=Ze[Wr++];while(--It);Wr=m-rn,or=xr}}}else if(Wr+=Re-It,It<Ir){Ir-=It;do xr[m++]=Ze[Wr++];while(--It);Wr=m-rn,or=xr}for(;Ir>2;)xr[m++]=or[Wr++],xr[m++]=or[Wr++],xr[m++]=or[Wr++],Ir-=3;Ir&&(xr[m++]=or[Wr++],Ir>1&&(xr[m++]=or[Wr++]))}else{Wr=m-rn;do xr[m++]=xr[Wr++],xr[m++]=xr[Wr++],xr[m++]=xr[Wr++],Ir-=3;while(Ir>2);Ir&&(xr[m++]=xr[Wr++],Ir>1&&(xr[m++]=xr[Wr++]))}}else if(It&64){o.msg="invalid distance code",it.mode=ja;break e}else{Qt=yt[(Qt&65535)+(ae&(1<<It)-1)];continue r}break}}else if(It&64)if(It&32){it.mode=$a;break e}else{o.msg="invalid literal/length code",it.mode=ja;break e}else{Qt=ut[(Qt&65535)+(ae&(1<<It)-1)];continue t}break}}while(l<A&&m<E);Ir=mt>>3,l-=Ir,mt-=Ir<<3,ae&=(1<<mt)-1,o.next_in=l,o.next_out=m,o.avail_in=l<A?5+(A-l):5-(l-A),o.avail_out=m<E?257+(E-m):257-(m-E),it.hold=ae,it.bits=mt};const nl=15,Gc=852,Us=592,Uc=0,jn=1,dc=2,Fu=new Uint16Array([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]),co=new Uint8Array([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]),mn=new Uint16Array([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]),Lo=new Uint8Array([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]);var As=(n,o,a,l,A,m,N,E)=>{const U=E.bits;let Z=0,oe=0,Re=0,Ze=0,ae=0,mt=0,ut=0,yt=0,st=0,Gt=0,Qt,It,Ir,rn,Wr,or=null,Lt;const xr=new Uint16Array(nl+1),it=new Uint16Array(nl+1);let wt=null,Wt,jt,Tr;for(Z=0;Z<=nl;Z++)xr[Z]=0;for(oe=0;oe<l;oe++)xr[o[a+oe]]++;for(ae=U,Ze=nl;Ze>=1&&xr[Ze]===0;Ze--);if(ae>Ze&&(ae=Ze),Ze===0)return A[m++]=1<<24|64<<16|0,A[m++]=1<<24|64<<16|0,E.bits=1,0;for(Re=1;Re<Ze&&xr[Re]===0;Re++);for(ae<Re&&(ae=Re),yt=1,Z=1;Z<=nl;Z++)if(yt<<=1,yt-=xr[Z],yt<0)return-1;if(yt>0&&(n===Uc||Ze!==1))return-1;for(it[1]=0,Z=1;Z<nl;Z++)it[Z+1]=it[Z]+xr[Z];for(oe=0;oe<l;oe++)o[a+oe]!==0&&(N[it[o[a+oe]]++]=oe);if(n===Uc?(or=wt=N,Lt=20):n===jn?(or=Fu,wt=co,Lt=257):(or=mn,wt=Lo,Lt=0),Gt=0,oe=0,Z=Re,Wr=m,mt=ae,ut=0,Ir=-1,st=1<<ae,rn=st-1,n===jn&&st>Gc||n===dc&&st>Us)return 1;for(;;){Wt=Z-ut,N[oe]+1<Lt?(jt=0,Tr=N[oe]):N[oe]>=Lt?(jt=wt[N[oe]-Lt],Tr=or[N[oe]-Lt]):(jt=96,Tr=0),Qt=1<<Z-ut,It=1<<mt,Re=It;do It-=Qt,A[Wr+(Gt>>ut)+It]=Wt<<24|jt<<16|Tr|0;while(It!==0);for(Qt=1<<Z-1;Gt&Qt;)Qt>>=1;if(Qt!==0?(Gt&=Qt-1,Gt+=Qt):Gt=0,oe++,--xr[Z]===0){if(Z===Ze)break;Z=o[a+N[oe]]}if(Z>ae&&(Gt&rn)!==Ir){for(ut===0&&(ut=ae),Wr+=Re,mt=Z-ut,yt=1<<mt;mt+ut<Ze&&(yt-=xr[mt+ut],!(yt<=0));)mt++,yt<<=1;if(st+=1<<mt,n===jn&&st>Gc||n===dc&&st>Us)return 1;Ir=Gt&rn,A[Ir]=ae<<24|mt<<16|Wr-m|0}}return Gt!==0&&(A[Wr+Gt]=Z-ut<<24|64<<16|0),E.bits=ae,0};const ia=0,Sl=1,Zl=2,{Z_FINISH:Rc,Z_BLOCK:Cc,Z_TREES:El,Z_OK:Al,Z_STREAM_END:au,Z_NEED_DICT:Ll,Z_STREAM_ERROR:Rs,Z_DATA_ERROR:_l,Z_MEM_ERROR:il,Z_BUF_ERROR:Ms,Z_DEFLATED:Bc}=ya,xA=16180,PA=16181,CA=16182,ff=16183,zf=16184,ao=16185,Zo=16186,Vl=16187,us=16188,kl=16189,Wl=16190,Js=16191,BA=16192,hf=16193,pf=16194,id=16195,Ao=16196,Bs=16197,SA=16198,EA=16199,Gl=16200,$f=16201,TA=16202,Zf=16203,Vf=16204,ad=16205,Nd=16206,Od=16207,od=16208,zr=16209,Pd=16210,mf=16211,Wf=852,gf=592,Eh=15,Gf=n=>(n>>>24&255)+(n>>>8&65280)+((n&65280)<<8)+((n&255)<<24);function bl(){this.strm=null,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 Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Mu=n=>{if(!n)return 1;const o=n.state;return!o||o.strm!==n||o.mode<xA||o.mode>mf?1:0},vf=n=>{if(Mu(n))return Rs;const o=n.state;return n.total_in=n.total_out=o.total=0,n.msg="",o.wrap&&(n.adler=o.wrap&1),o.mode=xA,o.last=0,o.havedict=0,o.flags=-1,o.dmax=32768,o.head=null,o.hold=0,o.bits=0,o.lencode=o.lendyn=new Int32Array(Wf),o.distcode=o.distdyn=new Int32Array(gf),o.sane=1,o.back=-1,Al},sd=n=>{if(Mu(n))return Rs;const o=n.state;return o.wsize=0,o.whave=0,o.wnext=0,vf(n)},bf=(n,o)=>{let a;if(Mu(n))return Rs;const l=n.state;return o<0?(a=0,o=-o):(a=(o>>4)+5,o<48&&(o&=15)),o&&(o<8||o>15)?Rs:(l.window!==null&&l.wbits!==o&&(l.window=null),l.wrap=a,l.wbits=o,sd(n))},UA=(n,o)=>{if(!n)return Rs;const a=new bl;n.state=a,a.strm=n,a.window=null,a.mode=xA;const l=bf(n,o);return l!==Al&&(n.state=null),l},ou=n=>UA(n,Eh);let ds=!0,Qc,Xl;const Lu=n=>{if(ds){Qc=new Int32Array(512),Xl=new Int32Array(32);let o=0;for(;o<144;)n.lens[o++]=8;for(;o<256;)n.lens[o++]=9;for(;o<280;)n.lens[o++]=7;for(;o<288;)n.lens[o++]=8;for(As(Sl,n.lens,0,288,Qc,0,n.work,{bits:9}),o=0;o<32;)n.lens[o++]=5;As(Zl,n.lens,0,32,Xl,0,n.work,{bits:5}),ds=!1}n.lencode=Qc,n.lenbits=9,n.distcode=Xl,n.distbits=5},uo=(n,o,a,l)=>{let A;const m=n.state;return m.window===null&&(m.wsize=1<<m.wbits,m.wnext=0,m.whave=0,m.window=new Uint8Array(m.wsize)),l>=m.wsize?(m.window.set(o.subarray(a-m.wsize,a),0),m.wnext=0,m.whave=m.wsize):(A=m.wsize-m.wnext,A>l&&(A=l),m.window.set(o.subarray(a-l,a-l+A),m.wnext),l-=A,l?(m.window.set(o.subarray(a-l,a),0),m.wnext=l,m.whave=m.wsize):(m.wnext+=A,m.wnext===m.wsize&&(m.wnext=0),m.whave<m.wsize&&(m.whave+=A))),0},bo=(n,o)=>{let a,l,A,m,N,E,U,Z,oe,Re,Ze,ae,mt,ut,yt=0,st,Gt,Qt,It,Ir,rn,Wr,or;const Lt=new Uint8Array(4);let xr,it;const wt=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Mu(n)||!n.output||!n.input&&n.avail_in!==0)return Rs;a=n.state,a.mode===Js&&(a.mode=BA),N=n.next_out,A=n.output,U=n.avail_out,m=n.next_in,l=n.input,E=n.avail_in,Z=a.hold,oe=a.bits,Re=E,Ze=U,or=Al;e:for(;;)switch(a.mode){case xA:if(a.wrap===0){a.mode=BA;break}for(;oe<16;){if(E===0)break e;E--,Z+=l[m++]<<oe,oe+=8}if(a.wrap&2&&Z===35615){a.wbits===0&&(a.wbits=15),a.check=0,Lt[0]=Z&255,Lt[1]=Z>>>8&255,a.check=ls(a.check,Lt,2,0),Z=0,oe=0,a.mode=PA;break}if(a.head&&(a.head.done=!1),!(a.wrap&1)||(((Z&255)<<8)+(Z>>8))%31){n.msg="incorrect header check",a.mode=zr;break}if((Z&15)!==Bc){n.msg="unknown compression method",a.mode=zr;break}if(Z>>>=4,oe-=4,Wr=(Z&15)+8,a.wbits===0&&(a.wbits=Wr),Wr>15||Wr>a.wbits){n.msg="invalid window size",a.mode=zr;break}a.dmax=1<<a.wbits,a.flags=0,n.adler=a.check=1,a.mode=Z&512?kl:Js,Z=0,oe=0;break;case PA:for(;oe<16;){if(E===0)break e;E--,Z+=l[m++]<<oe,oe+=8}if(a.flags=Z,(a.flags&255)!==Bc){n.msg="unknown compression method",a.mode=zr;break}if(a.flags&57344){n.msg="unknown header flags set",a.mode=zr;break}a.head&&(a.head.text=Z>>8&1),a.flags&512&&a.wrap&4&&(Lt[0]=Z&255,Lt[1]=Z>>>8&255,a.check=ls(a.check,Lt,2,0)),Z=0,oe=0,a.mode=CA;case CA:for(;oe<32;){if(E===0)break e;E--,Z+=l[m++]<<oe,oe+=8}a.head&&(a.head.time=Z),a.flags&512&&a.wrap&4&&(Lt[0]=Z&255,Lt[1]=Z>>>8&255,Lt[2]=Z>>>16&255,Lt[3]=Z>>>24&255,a.check=ls(a.check,Lt,4,0)),Z=0,oe=0,a.mode=ff;case ff:for(;oe<16;){if(E===0)break e;E--,Z+=l[m++]<<oe,oe+=8}a.head&&(a.head.xflags=Z&255,a.head.os=Z>>8),a.flags&512&&a.wrap&4&&(Lt[0]=Z&255,Lt[1]=Z>>>8&255,a.check=ls(a.check,Lt,2,0)),Z=0,oe=0,a.mode=zf;case zf:if(a.flags&1024){for(;oe<16;){if(E===0)break e;E--,Z+=l[m++]<<oe,oe+=8}a.length=Z,a.head&&(a.head.extra_len=Z),a.flags&512&&a.wrap&4&&(Lt[0]=Z&255,Lt[1]=Z>>>8&255,a.check=ls(a.check,Lt,2,0)),Z=0,oe=0}else a.head&&(a.head.extra=null);a.mode=ao;case ao:if(a.flags&1024&&(ae=a.length,ae>E&&(ae=E),ae&&(a.head&&(Wr=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(l.subarray(m,m+ae),Wr)),a.flags&512&&a.wrap&4&&(a.check=ls(a.check,l,ae,m)),E-=ae,m+=ae,a.length-=ae),a.length))break e;a.length=0,a.mode=Zo;case Zo:if(a.flags&2048){if(E===0)break e;ae=0;do Wr=l[m+ae++],a.head&&Wr&&a.length<65536&&(a.head.name+=String.fromCharCode(Wr));while(Wr&&ae<E);if(a.flags&512&&a.wrap&4&&(a.check=ls(a.check,l,ae,m)),E-=ae,m+=ae,Wr)break e}else a.head&&(a.head.name=null);a.length=0,a.mode=Vl;case Vl:if(a.flags&4096){if(E===0)break e;ae=0;do Wr=l[m+ae++],a.head&&Wr&&a.length<65536&&(a.head.comment+=String.fromCharCode(Wr));while(Wr&&ae<E);if(a.flags&512&&a.wrap&4&&(a.check=ls(a.check,l,ae,m)),E-=ae,m+=ae,Wr)break e}else a.head&&(a.head.comment=null);a.mode=us;case us:if(a.flags&512){for(;oe<16;){if(E===0)break e;E--,Z+=l[m++]<<oe,oe+=8}if(a.wrap&4&&Z!==(a.check&65535)){n.msg="header crc mismatch",a.mode=zr;break}Z=0,oe=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),n.adler=a.check=0,a.mode=Js;break;case kl:for(;oe<32;){if(E===0)break e;E--,Z+=l[m++]<<oe,oe+=8}n.adler=a.check=Gf(Z),Z=0,oe=0,a.mode=Wl;case Wl:if(a.havedict===0)return n.next_out=N,n.avail_out=U,n.next_in=m,n.avail_in=E,a.hold=Z,a.bits=oe,Ll;n.adler=a.check=1,a.mode=Js;case Js:if(o===Cc||o===El)break e;case BA:if(a.last){Z>>>=oe&7,oe-=oe&7,a.mode=Nd;break}for(;oe<3;){if(E===0)break e;E--,Z+=l[m++]<<oe,oe+=8}switch(a.last=Z&1,Z>>>=1,oe-=1,Z&3){case 0:a.mode=hf;break;case 1:if(Lu(a),a.mode=EA,o===El){Z>>>=2,oe-=2;break e}break;case 2:a.mode=Ao;break;case 3:n.msg="invalid block type",a.mode=zr}Z>>>=2,oe-=2;break;case hf:for(Z>>>=oe&7,oe-=oe&7;oe<32;){if(E===0)break e;E--,Z+=l[m++]<<oe,oe+=8}if((Z&65535)!==(Z>>>16^65535)){n.msg="invalid stored block lengths",a.mode=zr;break}if(a.length=Z&65535,Z=0,oe=0,a.mode=pf,o===El)break e;case pf:a.mode=id;case id:if(ae=a.length,ae){if(ae>E&&(ae=E),ae>U&&(ae=U),ae===0)break e;A.set(l.subarray(m,m+ae),N),E-=ae,m+=ae,U-=ae,N+=ae,a.length-=ae;break}a.mode=Js;break;case Ao:for(;oe<14;){if(E===0)break e;E--,Z+=l[m++]<<oe,oe+=8}if(a.nlen=(Z&31)+257,Z>>>=5,oe-=5,a.ndist=(Z&31)+1,Z>>>=5,oe-=5,a.ncode=(Z&15)+4,Z>>>=4,oe-=4,a.nlen>286||a.ndist>30){n.msg="too many length or distance symbols",a.mode=zr;break}a.have=0,a.mode=Bs;case Bs:for(;a.have<a.ncode;){for(;oe<3;){if(E===0)break e;E--,Z+=l[m++]<<oe,oe+=8}a.lens[wt[a.have++]]=Z&7,Z>>>=3,oe-=3}for(;a.have<19;)a.lens[wt[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,xr={bits:a.lenbits},or=As(ia,a.lens,0,19,a.lencode,0,a.work,xr),a.lenbits=xr.bits,or){n.msg="invalid code lengths set",a.mode=zr;break}a.have=0,a.mode=SA;case SA:for(;a.have<a.nlen+a.ndist;){for(;yt=a.lencode[Z&(1<<a.lenbits)-1],st=yt>>>24,Gt=yt>>>16&255,Qt=yt&65535,!(st<=oe);){if(E===0)break e;E--,Z+=l[m++]<<oe,oe+=8}if(Qt<16)Z>>>=st,oe-=st,a.lens[a.have++]=Qt;else{if(Qt===16){for(it=st+2;oe<it;){if(E===0)break e;E--,Z+=l[m++]<<oe,oe+=8}if(Z>>>=st,oe-=st,a.have===0){n.msg="invalid bit length repeat",a.mode=zr;break}Wr=a.lens[a.have-1],ae=3+(Z&3),Z>>>=2,oe-=2}else if(Qt===17){for(it=st+3;oe<it;){if(E===0)break e;E--,Z+=l[m++]<<oe,oe+=8}Z>>>=st,oe-=st,Wr=0,ae=3+(Z&7),Z>>>=3,oe-=3}else{for(it=st+7;oe<it;){if(E===0)break e;E--,Z+=l[m++]<<oe,oe+=8}Z>>>=st,oe-=st,Wr=0,ae=11+(Z&127),Z>>>=7,oe-=7}if(a.have+ae>a.nlen+a.ndist){n.msg="invalid bit length repeat",a.mode=zr;break}for(;ae--;)a.lens[a.have++]=Wr}}if(a.mode===zr)break;if(a.lens[256]===0){n.msg="invalid code -- missing end-of-block",a.mode=zr;break}if(a.lenbits=9,xr={bits:a.lenbits},or=As(Sl,a.lens,0,a.nlen,a.lencode,0,a.work,xr),a.lenbits=xr.bits,or){n.msg="invalid literal/lengths set",a.mode=zr;break}if(a.distbits=6,a.distcode=a.distdyn,xr={bits:a.distbits},or=As(Zl,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,xr),a.distbits=xr.bits,or){n.msg="invalid distances set",a.mode=zr;break}if(a.mode=EA,o===El)break e;case EA:a.mode=Gl;case Gl:if(E>=6&&U>=258){n.next_out=N,n.avail_out=U,n.next_in=m,n.avail_in=E,a.hold=Z,a.bits=oe,Ml(n,Ze),N=n.next_out,A=n.output,U=n.avail_out,m=n.next_in,l=n.input,E=n.avail_in,Z=a.hold,oe=a.bits,a.mode===Js&&(a.back=-1);break}for(a.back=0;yt=a.lencode[Z&(1<<a.lenbits)-1],st=yt>>>24,Gt=yt>>>16&255,Qt=yt&65535,!(st<=oe);){if(E===0)break e;E--,Z+=l[m++]<<oe,oe+=8}if(Gt&&!(Gt&240)){for(It=st,Ir=Gt,rn=Qt;yt=a.lencode[rn+((Z&(1<<It+Ir)-1)>>It)],st=yt>>>24,Gt=yt>>>16&255,Qt=yt&65535,!(It+st<=oe);){if(E===0)break e;E--,Z+=l[m++]<<oe,oe+=8}Z>>>=It,oe-=It,a.back+=It}if(Z>>>=st,oe-=st,a.back+=st,a.length=Qt,Gt===0){a.mode=ad;break}if(Gt&32){a.back=-1,a.mode=Js;break}if(Gt&64){n.msg="invalid literal/length code",a.mode=zr;break}a.extra=Gt&15,a.mode=$f;case $f:if(a.extra){for(it=a.extra;oe<it;){if(E===0)break e;E--,Z+=l[m++]<<oe,oe+=8}a.length+=Z&(1<<a.extra)-1,Z>>>=a.extra,oe-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=TA;case TA:for(;yt=a.distcode[Z&(1<<a.distbits)-1],st=yt>>>24,Gt=yt>>>16&255,Qt=yt&65535,!(st<=oe);){if(E===0)break e;E--,Z+=l[m++]<<oe,oe+=8}if(!(Gt&240)){for(It=st,Ir=Gt,rn=Qt;yt=a.distcode[rn+((Z&(1<<It+Ir)-1)>>It)],st=yt>>>24,Gt=yt>>>16&255,Qt=yt&65535,!(It+st<=oe);){if(E===0)break e;E--,Z+=l[m++]<<oe,oe+=8}Z>>>=It,oe-=It,a.back+=It}if(Z>>>=st,oe-=st,a.back+=st,Gt&64){n.msg="invalid distance code",a.mode=zr;break}a.offset=Qt,a.extra=Gt&15,a.mode=Zf;case Zf:if(a.extra){for(it=a.extra;oe<it;){if(E===0)break e;E--,Z+=l[m++]<<oe,oe+=8}a.offset+=Z&(1<<a.extra)-1,Z>>>=a.extra,oe-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){n.msg="invalid distance too far back",a.mode=zr;break}a.mode=Vf;case Vf:if(U===0)break e;if(ae=Ze-U,a.offset>ae){if(ae=a.offset-ae,ae>a.whave&&a.sane){n.msg="invalid distance too far back",a.mode=zr;break}ae>a.wnext?(ae-=a.wnext,mt=a.wsize-ae):mt=a.wnext-ae,ae>a.length&&(ae=a.length),ut=a.window}else ut=A,mt=N-a.offset,ae=a.length;ae>U&&(ae=U),U-=ae,a.length-=ae;do A[N++]=ut[mt++];while(--ae);a.length===0&&(a.mode=Gl);break;case ad:if(U===0)break e;A[N++]=a.length,U--,a.mode=Gl;break;case Nd:if(a.wrap){for(;oe<32;){if(E===0)break e;E--,Z|=l[m++]<<oe,oe+=8}if(Ze-=U,n.total_out+=Ze,a.total+=Ze,a.wrap&4&&Ze&&(n.adler=a.check=a.flags?ls(a.check,A,Ze,N-Ze):to(a.check,A,Ze,N-Ze)),Ze=U,a.wrap&4&&(a.flags?Z:Gf(Z))!==a.check){n.msg="incorrect data check",a.mode=zr;break}Z=0,oe=0}a.mode=Od;case Od:if(a.wrap&&a.flags){for(;oe<32;){if(E===0)break e;E--,Z+=l[m++]<<oe,oe+=8}if(a.wrap&4&&Z!==(a.total&4294967295)){n.msg="incorrect length check",a.mode=zr;break}Z=0,oe=0}a.mode=od;case od:or=au;break e;case zr:or=_l;break e;case Pd:return il;case mf:default:return Rs}return n.next_out=N,n.avail_out=U,n.next_in=m,n.avail_in=E,a.hold=Z,a.bits=oe,(a.wsize||Ze!==n.avail_out&&a.mode<zr&&(a.mode<Nd||o!==Rc))&&uo(n,n.output,n.next_out,Ze-n.avail_out),Re-=n.avail_in,Ze-=n.avail_out,n.total_in+=Re,n.total_out+=Ze,a.total+=Ze,a.wrap&4&&Ze&&(n.adler=a.check=a.flags?ls(a.check,A,Ze,n.next_out-Ze):to(a.check,A,Ze,n.next_out-Ze)),n.data_type=a.bits+(a.last?64:0)+(a.mode===Js?128:0)+(a.mode===EA||a.mode===pf?256:0),(Re===0&&Ze===0||o===Rc)&&or===Al&&(or=Ms),or},rA=n=>{if(Mu(n))return Rs;let o=n.state;return o.window&&(o.window=null),n.state=null,Al},su=(n,o)=>{if(Mu(n))return Rs;const a=n.state;return a.wrap&2?(a.head=o,o.done=!1,Al):Rs},WA=(n,o)=>{const a=o.length;let l,A,m;return Mu(n)||(l=n.state,l.wrap!==0&&l.mode!==Wl)?Rs:l.mode===Wl&&(A=1,A=to(A,o,a,0),A!==l.check)?_l:(m=uo(n,o,a,a),m?(l.mode=Pd,il):(l.havedict=1,Al))};var S0=sd,Dl=bf,_A=vf,_h=ou,Xf=UA,E0=bo,Eo=rA,yf=su,Td=WA,Jf="pako inflate (from Nodeca project)",Ur={inflateReset:S0,inflateReset2:Dl,inflateResetKeep:_A,inflateInit:_h,inflateInit2:Xf,inflate:E0,inflateEnd:Eo,inflateGetHeader:yf,inflateSetDictionary:Td,inflateInfo:Jf};function Dm(){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}var Nm=Dm;const _0=Object.prototype.toString,{Z_NO_FLUSH:I0,Z_FINISH:Ud,Z_OK:Ih,Z_STREAM_END:F0,Z_NEED_DICT:Jl,Z_STREAM_ERROR:ld,Z_DATA_ERROR:Yf,Z_MEM_ERROR:Fh}=ya;function Mh(n){this.options=na.assign({chunkSize:1024*64,windowBits:15,to:""},n||{});const o=this.options;o.raw&&o.windowBits>=0&&o.windowBits<16&&(o.windowBits=-o.windowBits,o.windowBits===0&&(o.windowBits=-15)),o.windowBits>=0&&o.windowBits<16&&!(n&&n.windowBits)&&(o.windowBits+=32),o.windowBits>15&&o.windowBits<48&&(o.windowBits&15||(o.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new pa,this.strm.avail_out=0;let a=Ur.inflateInit2(this.strm,o.windowBits);if(a!==Ih)throw new Error(Ca[a]);if(this.header=new Nm,Ur.inflateGetHeader(this.strm,this.header),o.dictionary&&(typeof o.dictionary=="string"?o.dictionary=Vi.string2buf(o.dictionary):_0.call(o.dictionary)==="[object ArrayBuffer]"&&(o.dictionary=new Uint8Array(o.dictionary)),o.raw&&(a=Ur.inflateSetDictionary(this.strm,o.dictionary),a!==Ih)))throw new Error(Ca[a])}Mh.prototype.push=function(n,o){const a=this.strm,l=this.options.chunkSize,A=this.options.dictionary;let m,N,E;if(this.ended)return!1;for(o===~~o?N=o:N=o===!0?Ud:I0,_0.call(n)==="[object ArrayBuffer]"?a.input=new Uint8Array(n):a.input=n,a.next_in=0,a.avail_in=a.input.length;;){for(a.avail_out===0&&(a.output=new Uint8Array(l),a.next_out=0,a.avail_out=l),m=Ur.inflate(a,N),m===Jl&&A&&(m=Ur.inflateSetDictionary(a,A),m===Ih?m=Ur.inflate(a,N):m===Yf&&(m=Jl));a.avail_in>0&&m===F0&&a.state.wrap>0&&n[a.next_in]!==0;)Ur.inflateReset(a),m=Ur.inflate(a,N);switch(m){case ld:case Yf:case Jl:case Fh:return this.onEnd(m),this.ended=!0,!1}if(E=a.avail_out,a.next_out&&(a.avail_out===0||m===F0))if(this.options.to==="string"){let U=Vi.utf8border(a.output,a.next_out),Z=a.next_out-U,oe=Vi.buf2string(a.output,U);a.next_out=Z,a.avail_out=l-Z,Z&&a.output.set(a.output.subarray(U,U+Z),0),this.onData(oe)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(!(m===Ih&&E===0)){if(m===F0)return m=Ur.inflateEnd(this.strm),this.onEnd(m),this.ended=!0,!0;if(a.avail_in===0)break}}return!0},Mh.prototype.onData=function(n){this.chunks.push(n)},Mh.prototype.onEnd=function(n){n===Ih&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=na.flattenChunks(this.chunks)),this.chunks=[],this.err=n,this.msg=this.strm.msg};function qf(n,o){const a=new Mh(o);if(a.push(n),a.err)throw a.msg||Ca[a.err];return a.result}function M0(n,o){return o=o||{},o.raw=!0,qf(n,o)}var pp=Mh,L0=qf,nA=M0,Rd=qf,wf=ya,k0={Inflate:pp,inflate:L0,inflateRaw:nA,ungzip:Rd,constants:wf};const{Deflate:eh,deflate:Om,deflateRaw:Pm,gzip:Tm}=ca,{Inflate:Um,inflate:mp,inflateRaw:Ls,ungzip:Wp}=k0;var Gp=eh,cd=Om,Xp=Pm,th=Tm,gp=Um,rh=mp,Lh=Ls,nh=Wp,Jp=ya,Rm={Deflate:Gp,deflate:cd,deflateRaw:Xp,gzip:th,Inflate:gp,inflate:rh,inflateRaw:Lh,ungzip:nh,constants:Jp};const kh=[];for(let n=0;n<256;n++){let o=n;for(let a=0;a<8;a++)o&1?o=3988292384^o>>>1:o=o>>>1;kh[n]=o}const D0=4294967295;function Qm(n,o,a){let l=n;for(let A=0;A<a;A++)l=kh[(l^o[A])&255]^l>>>8;return l}function Yp(n,o){return(Qm(D0,n,o)^D0)>>>0}function xf(n,o,a){const l=n.readUint32(),A=Yp(new Uint8Array(n.buffer,n.byteOffset+n.offset-o-4,o),o);if(A!==l)throw new Error(`CRC mismatch for chunk ${a}. Expected ${l}, found ${A}`)}function Km(n,o){n.writeUint32(Yp(new Uint8Array(n.buffer,n.byteOffset+n.offset-o,o),o))}function Nl(n,o,a){for(let l=0;l<a;l++)o[l]=n[l]}function Qd(n,o,a,l){let A=0;for(;A<l;A++)o[A]=n[A];for(;A<a;A++)o[A]=n[A]+o[A-l]&255}function Cf(n,o,a,l){let A=0;if(a.length===0)for(;A<l;A++)o[A]=n[A];else for(;A<l;A++)o[A]=n[A]+a[A]&255}function Ad(n,o,a,l,A){let m=0;if(a.length===0){for(;m<A;m++)o[m]=n[m];for(;m<l;m++)o[m]=n[m]+(o[m-A]>>1)&255}else{for(;m<A;m++)o[m]=n[m]+(a[m]>>1)&255;for(;m<l;m++)o[m]=n[m]+(o[m-A]+a[m]>>1)&255}}function Xc(n,o,a,l,A){let m=0;if(a.length===0){for(;m<A;m++)o[m]=n[m];for(;m<l;m++)o[m]=n[m]+o[m-A]&255}else{for(;m<A;m++)o[m]=n[m]+a[m]&255;for(;m<l;m++)o[m]=n[m]+lu(o[m-A],a[m],a[m-A])&255}}function lu(n,o,a){const l=n+o-a,A=Math.abs(l-n),m=Math.abs(l-o),N=Math.abs(l-a);return A<=m&&A<=N?n:m<=N?o:a}function IA(n,o,a,l,A,m){switch(n){case 0:Nl(o,a,A);break;case 1:Qd(o,a,A,m);break;case 2:Cf(o,a,l,A);break;case 3:Ad(o,a,l,A,m);break;case 4:Xc(o,a,l,A,m);break;default:throw new Error(`Unsupported filter: ${n}`)}}const ku=new Uint16Array([255]),dd=new Uint8Array(ku.buffer)[0]===255;function ih(n){const{data:o,width:a,height:l,channels:A,depth:m}=n,N=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],E=Math.ceil(m/8)*A,U=new Uint8Array(l*a*E);let Z=0;for(let oe=0;oe<7;oe++){const Re=N[oe],Ze=Math.ceil((a-Re.x)/Re.xStep),ae=Math.ceil((l-Re.y)/Re.yStep);if(Ze<=0||ae<=0)continue;const mt=Ze*E,ut=new Uint8Array(mt);for(let yt=0;yt<ae;yt++){const st=o[Z++],Gt=o.subarray(Z,Z+mt);Z+=mt;const Qt=new Uint8Array(mt);IA(st,Gt,Qt,ut,mt,E),ut.set(Qt);for(let It=0;It<Ze;It++){const Ir=Re.x+It*Re.xStep,rn=Re.y+yt*Re.yStep;if(!(Ir>=a||rn>=l))for(let Wr=0;Wr<E;Wr++)U[(rn*a+Ir)*E+Wr]=Qt[It*E+Wr]}}}if(m===16){const oe=new Uint16Array(U.buffer);if(dd)for(let Re=0;Re<oe.length;Re++)oe[Re]=Kd(oe[Re]);return oe}else return U}function Kd(n){return(n&255)<<8|n>>8&255}const Dh=new Uint16Array([255]),Nh=new Uint8Array(Dh.buffer)[0]===255,qp=new Uint8Array(0);function vp(n){const{data:o,width:a,height:l,channels:A,depth:m}=n,N=Math.ceil(m/8)*A,E=Math.ceil(m/8*A*a),U=new Uint8Array(l*E);let Z=qp,oe=0,Re,Ze;for(let ae=0;ae<l;ae++){switch(Re=o.subarray(oe+1,oe+1+E),Ze=U.subarray(ae*E,(ae+1)*E),o[oe]){case 0:Nl(Re,Ze,E);break;case 1:Qd(Re,Ze,E,N);break;case 2:Cf(Re,Ze,Z,E);break;case 3:Ad(Re,Ze,Z,E,N);break;case 4:Xc(Re,Ze,Z,E,N);break;default:throw new Error(`Unsupported filter: ${o[oe]}`)}Z=Ze,oe+=E+1}if(m===16){const ae=new Uint16Array(U.buffer);if(Nh)for(let mt=0;mt<ae.length;mt++)ae[mt]=em(ae[mt]);return ae}else return U}function em(n){return(n&255)<<8|n>>8&255}const Oh=Uint8Array.of(137,80,78,71,13,10,26,10);function Hm(n){n.writeBytes(Oh)}function O0(n){if(!jm(n.readBytes(Oh.length)))throw new Error("wrong PNG signature")}function jm(n){if(n.length<Oh.length)return!1;for(let o=0;o<Oh.length;o++)if(n[o]!==Oh[o])return!1;return!0}const tm="tEXt",rm=0,nm=new TextDecoder("latin1");function im(n){if(Bf(n),n.length===0||n.length>79)throw new Error("keyword length must be between 1 and 79")}const bp=/^[\u0000-\u00FF]*$/;function Bf(n){if(!bp.test(n))throw new Error("invalid latin1 text")}function ah(n,o,a){const l=Du(o);n[l]=yp(o,a-l.length-1)}function oh(n,o,a){im(o),Bf(a);const l=o.length+1+a.length;n.writeUint32(l),n.writeChars(tm),n.writeChars(o),n.writeByte(rm),n.writeChars(a),writeCrc(n,l+4)}function Du(n){for(n.mark();n.readByte()!==rm;);const o=n.offset;n.reset();const a=nm.decode(n.readBytes(o-n.offset-1));return n.skip(1),im(a),a}function yp(n,o){return nm.decode(n.readBytes(o))}const FA={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},P0={UNKNOWN:-1,DEFLATE:0},am={UNKNOWN:-1,ADAPTIVE:0},wp={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Ph={NONE:0,BACKGROUND:1,PREVIOUS:2},Th={SOURCE:0,OVER:1};class zm extends Ti{constructor(a,l={}){super(a);zs(this,"_checkCrc");zs(this,"_inflator");zs(this,"_png");zs(this,"_apng");zs(this,"_end");zs(this,"_hasPalette");zs(this,"_palette");zs(this,"_hasTransparency");zs(this,"_transparency");zs(this,"_compressionMethod");zs(this,"_filterMethod");zs(this,"_interlaceMethod");zs(this,"_colorType");zs(this,"_isAnimated");zs(this,"_numberOfFrames");zs(this,"_numberOfPlays");zs(this,"_frames");zs(this,"_writingDataChunks");const{checkCrc:A=!1}=l;this._checkCrc=A,this._inflator=new gp,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=P0.UNKNOWN,this._filterMethod=am.UNKNOWN,this._interlaceMethod=wp.UNKNOWN,this._colorType=FA.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(O0(this);!this._end;){const a=this.readUint32(),l=this.readChars(4);this.decodeChunk(a,l)}return this.decodeImage(),this._png}decodeApng(){for(O0(this);!this._end;){const a=this.readUint32(),l=this.readChars(4);this.decodeApngChunk(a,l)}return this.decodeApngImage(),this._apng}decodeChunk(a,l){const A=this.offset;switch(l){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(a);break;case"IDAT":this.decodeIDAT(a);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(a);break;case"iCCP":this.decodeiCCP(a);break;case tm:ah(this._png.text,this,a);break;case"pHYs":this.decodepHYs();break;default:this.skip(a);break}if(this.offset-A!==a)throw new Error(`Length mismatch while decoding chunk ${l}`);this._checkCrc?xf(this,a+4,l):this.skip(4)}decodeApngChunk(a,l){const A=this.offset;switch(l!=="fdAT"&&l!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),l){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(a);break;default:this.decodeChunk(a,l),this.offset=A+a;break}if(this.offset-A!==a)throw new Error(`Length mismatch while decoding chunk ${l}`);this._checkCrc?xf(this,a+4,l):this.skip(4)}decodeIHDR(){const a=this._png;a.width=this.readUint32(),a.height=this.readUint32(),a.depth=xp(this.readUint8());const l=this.readUint8();this._colorType=l;let A;switch(l){case FA.GREYSCALE:A=1;break;case FA.TRUECOLOUR:A=3;break;case FA.INDEXED_COLOUR:A=1;break;case FA.GREYSCALE_ALPHA:A=2;break;case FA.TRUECOLOUR_ALPHA:A=4;break;case FA.UNKNOWN:default:throw new Error(`Unknown color type: ${l}`)}if(this._png.channels=A,this._compressionMethod=this.readUint8(),this._compressionMethod!==P0.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const a={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(a)}decodePLTE(a){if(a%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${a}`);const l=a/3;this._hasPalette=!0;const A=[];this._palette=A;for(let m=0;m<l;m++)A.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(a){this._writingDataChunks=!0;const l=a,A=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,A,l)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(a)}decodeFDAT(a){this._writingDataChunks=!0;let l=a,A=this.offset+this.byteOffset;if(A+=4,l-=4,this._inflator.push(new Uint8Array(this.buffer,A,l)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(a)}decodetRNS(a){switch(this._colorType){case FA.GREYSCALE:case FA.TRUECOLOUR:{if(a%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${a}`);if(a/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${a/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(a/2);for(let l=0;l<a/2;l++)this._transparency[l]=this.readUint16();break}case FA.INDEXED_COLOUR:{if(a>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${a} vs ${this._palette.length})`);let l=0;for(;l<a;l++){const A=this.readByte();this._palette[l].push(A)}for(;l<this._palette.length;l++)this._palette[l].push(255);break}case FA.UNKNOWN:case FA.GREYSCALE_ALPHA:case FA.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(a){const l=Du(this),A=this.readUint8();if(A!==P0.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${A}`);const m=this.readBytes(a-l.length-2);this._png.iccEmbeddedProfile={name:l,profile:rh(m)}}decodepHYs(){const a=this.readUint32(),l=this.readUint32(),A=this.readByte();this._png.resolution={x:a,y:l,unit:A}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let a=0;a<this._numberOfFrames;a++){const l={sequenceNumber:this._frames[a].sequenceNumber,delayNumber:this._frames[a].delayNumber,delayDenominator:this._frames[a].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},A=this._frames.at(a);if(A){if(A.data=vp({data:A.data,width:A.width,height:A.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),a===0||A.xOffset===0&&A.yOffset===0&&A.width===this._png.width&&A.height===this._png.height)l.data=A.data;else{const m=this._apng.frames.at(a-1);this.disposeFrame(A,m,l),this.addFrameDataToCanvas(l,A)}this._apng.frames.push(l)}}return this._apng}disposeFrame(a,l,A){switch(a.disposeOp){case Ph.NONE:break;case Ph.BACKGROUND:for(let m=0;m<this._png.height;m++)for(let N=0;N<this._png.width;N++){const E=(m*a.width+N)*this._png.channels;for(let U=0;U<this._png.channels;U++)A.data[E+U]=0}break;case Ph.PREVIOUS:A.data.set(l.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(a,l){const A=1<<this._png.depth,m=(N,E)=>{const U=((N+l.yOffset)*this._png.width+l.xOffset+E)*this._png.channels,Z=(N*l.width+E)*this._png.channels;return{index:U,frameIndex:Z}};switch(l.blendOp){case Th.SOURCE:for(let N=0;N<l.height;N++)for(let E=0;E<l.width;E++){const{index:U,frameIndex:Z}=m(N,E);for(let oe=0;oe<this._png.channels;oe++)a.data[U+oe]=l.data[Z+oe]}break;case Th.OVER:for(let N=0;N<l.height;N++)for(let E=0;E<l.width;E++){const{index:U,frameIndex:Z}=m(N,E);for(let oe=0;oe<this._png.channels;oe++){const Re=l.data[Z+this._png.channels-1]/A,Ze=oe%(this._png.channels-1)===0?1:l.data[Z+oe],ae=Math.floor(Re*Ze+(1-Re)*a.data[U+oe]);a.data[U+oe]+=ae}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var l;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const a=this._isAnimated?((l=this._frames)==null?void 0:l.at(0)).data:this._inflator.result;if(this._filterMethod!==am.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===wp.NO_INTERLACE)this._png.data=vp({data:a,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===wp.ADAM7)this._png.data=ih({data:a,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const a=this._inflator.result,l=this._frames.at(-1);l?l.data=a:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Ph.NONE,blendOp:Th.SOURCE,data:a}),this._inflator=new gp,this._writingDataChunks=!1}}function xp(n){if(n!==1&&n!==2&&n!==4&&n!==8&&n!==16)throw new Error(`invalid bit depth: ${n}`);return n}const fs={level:3};class ki extends null{constructor(a,l={}){var A;super();zs(this,"_png");zs(this,"_zlibOptions");zs(this,"_colorType");zs(this,"_interlaceMethod");this._colorType=ColorType.UNKNOWN,this._zlibOptions=b1(b1({},fs),l.zlib),this._png=this._checkData(a),this._interlaceMethod=(A=l.interlace==="Adam7"?InterlaceMethod.ADAM7:InterlaceMethod.NO_INTERLACE)!=null?A:InterlaceMethod.NO_INTERLACE,this.setBigEndian()}encode(){if(writeSignature(this),this.encodeIHDR(),this._png.palette&&(this.encodePLTE(),this._png.palette[0].length===4&&this.encodeTRNS()),this.encodeData(),this._png.text)for(const[a,l]of Object.entries(this._png.text))encodetEXt(this,a,l);return this.encodeIEND(),this.toArray()}encodeIHDR(){this.writeUint32(13),this.writeChars("IHDR"),this.writeUint32(this._png.width),this.writeUint32(this._png.height),this.writeByte(this._png.depth),this.writeByte(this._colorType),this.writeByte(CompressionMethod.DEFLATE),this.writeByte(FilterMethod.ADAPTIVE),this.writeByte(this._interlaceMethod),writeCrc(this,17)}encodeIEND(){this.writeUint32(0),this.writeChars("IEND"),writeCrc(this,4)}encodePLTE(){var l;const a=((l=this._png.palette)==null?void 0:l.length)*3;this.writeUint32(a),this.writeChars("PLTE");for(const A of this._png.palette)this.writeByte(A[0]),this.writeByte(A[1]),this.writeByte(A[2]);writeCrc(this,4+a)}encodeTRNS(){const a=this._png.palette.filter(l=>l.at(-1)!==255);this.writeUint32(a.length),this.writeChars("tRNS");for(const l of a)this.writeByte(l.at(-1));writeCrc(this,4+a.length)}encodeIDAT(a){this.writeUint32(a.length),this.writeChars("IDAT"),this.writeBytes(a),writeCrc(this,a.length+4)}encodeData(){const{width:a,height:l,channels:A,depth:m,data:N}=this._png,E=m<=8?Math.ceil(a*m/8)*A:Math.ceil(a*m/8*A/2),U=new IOBuffer().setBigEndian();let Z=0;if(this._interlaceMethod===InterlaceMethod.NO_INTERLACE)for(let Ze=0;Ze<l;Ze++)U.writeByte(0),m===16?Z=Vo(N,U,E,Z):Z=fc(N,U,E,Z);else this._interlaceMethod===InterlaceMethod.ADAM7&&(Z=om(this._png,N,U,Z));const oe=U.toArray(),Re=deflate(oe,this._zlibOptions);this.encodeIDAT(Re)}_checkData(a){const{colorType:l,channels:A,depth:m}=T0(a,a.palette),N={width:Nu(a.width,"width"),height:Nu(a.height,"height"),channels:A,data:a.data,depth:m,text:a.text,palette:a.palette};this._colorType=l;const E=m<8?Math.ceil(N.width*m/8)*N.height*A:N.width*N.height*A;if(N.data.length!==E)throw new RangeError(`wrong data size. Found ${N.data.length}, expected ${E}`);return N}}function Nu(n,o){if(Number.isInteger(n)&&n>0)return n;throw new TypeError(`${o} must be a positive integer`)}function T0(n,o){const{channels:a=4,depth:l=8}=n;if(a!==4&&a!==3&&a!==2&&a!==1)throw new RangeError(`unsupported number of channels: ${a}`);const A={channels:a,depth:l,colorType:ColorType.UNKNOWN};switch(a){case 4:A.colorType=ColorType.TRUECOLOUR_ALPHA;break;case 3:A.colorType=ColorType.TRUECOLOUR;break;case 1:o?A.colorType=ColorType.INDEXED_COLOUR:A.colorType=ColorType.GREYSCALE;break;case 2:A.colorType=ColorType.GREYSCALE_ALPHA;break;default:throw new Error("unsupported number of channels")}return A}function fc(n,o,a,l){for(let A=0;A<a;A++)o.writeByte(n[l++]);return l}function om(n,o,a,l){const A=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],{width:m,height:N,channels:E,depth:U}=n;let Z=0;U===16?Z=E*U/8/2:Z=E*U/8;for(let oe=0;oe<7;oe++){const Re=A[oe],Ze=Math.floor((m-Re.x+Re.xStep-1)/Re.xStep),ae=Math.floor((N-Re.y+Re.yStep-1)/Re.yStep);if(Ze<=0||ae<=0)continue;const mt=Ze*Z;for(let ut=0;ut<ae;ut++){const yt=Re.y+ut*Re.yStep,st=U<=8?new Uint8Array(mt):new Uint16Array(mt);let Gt=0;for(let Qt=0;Qt<Ze;Qt++){const It=Re.x+Qt*Re.xStep;if(It<m&&yt<N){const Ir=(yt*m+It)*Z;for(let rn=0;rn<Z;rn++)st[Gt++]=o[Ir+rn]}}if(a.writeByte(0),U===8)a.writeBytes(st);else if(U===16)for(const Qt of st)a.writeByte(Qt>>8&255),a.writeByte(Qt&255)}}return l}function Vo(n,o,a,l){for(let A=0;A<a;A++)o.writeUint16(n[l++]);return l}var ol;(function(n){n[n.UNKNOWN=0]="UNKNOWN",n[n.METRE=1]="METRE"})(ol||(ol={}));function Ys(n,o){return new zm(n,o).decode()}function $m(n,o){return new PngEncoder(n,o).encode()}function U0(n,o){return new PngDecoder(n,o).decodeApng()}var Za=function(){return typeof window!="undefined"?window:typeof C.g!="undefined"?C.g:typeof self!="undefined"?self:this}();function Sf(){Za.console&&typeof Za.console.log=="function"&&Za.console.log.apply(Za.console,arguments)}var ks={log:Sf,warn:function(n){Za.console&&(typeof Za.console.warn=="function"?Za.console.warn.apply(Za.console,arguments):Sf.call(null,arguments))},error:function(n){Za.console&&(typeof Za.console.error=="function"?Za.console.error.apply(Za.console,arguments):Sf(n))}};function Hd(n,o,a){var l=new XMLHttpRequest;l.open("GET",n),l.responseType="blob",l.onload=function(){fd(l.response,o,a)},l.onerror=function(){ks.error("could not download file")},l.send()}function R0(n){var o=new XMLHttpRequest;o.open("HEAD",n,!1);try{o.send()}catch(a){}return o.status>=200&&o.status<=299}function hc(n){try{n.dispatchEvent(new MouseEvent("click"))}catch(a){var o=document.createEvent("MouseEvents");o.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),n.dispatchEvent(o)}}var fd=Za.saveAs||((typeof window=="undefined"?"undefined":(0,pe.Z)(window))!=="object"||window!==Za?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(n,o,a){var l=Za.URL||Za.webkitURL,A=document.createElement("a");o=o||n.name||"download",A.download=o,A.rel="noopener",typeof n=="string"?(A.href=n,A.origin!==location.origin?R0(A.href)?Hd(n,o,a):hc(A,A.target="_blank"):hc(A)):(A.href=l.createObjectURL(n),setTimeout(function(){l.revokeObjectURL(A.href)},4e4),setTimeout(function(){hc(A)},0))}:"msSaveOrOpenBlob"in navigator?function(n,o,a){if(o=o||n.name||"download",typeof n=="string")if(R0(n))Hd(n,o,a);else{var l=document.createElement("a");l.href=n,l.target="_blank",setTimeout(function(){hc(l)})}else navigator.msSaveOrOpenBlob(function(A,m){return m===void 0?m={autoBom:!1}:(0,pe.Z)(m)!=="object"&&(ks.warn("Deprecated: Expected third argument to be a object"),m={autoBom:!m}),m.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(A.type)?new Blob(["\uFEFF",A],{type:A.type}):A}(n,a),o)}:function(n,o,a,l){if((l=l||open("","_blank"))&&(l.document.title=l.document.body.innerText="downloading..."),typeof n=="string")return Hd(n,o,a);var A=n.type==="application/octet-stream",m=/constructor/i.test(Za.HTMLElement)||Za.safari,N=/CriOS\/[\d]+/.test(navigator.userAgent);if((N||A&&m)&&(typeof FileReader=="undefined"?"undefined":(0,pe.Z)(FileReader))==="object"){var E=new FileReader;E.onloadend=function(){var oe=E.result;oe=N?oe:oe.replace(/^data:[^;]*;/,"data:attachment/file;"),l?l.location.href=oe:location=oe,l=null},E.readAsDataURL(n)}else{var U=Za.URL||Za.webkitURL,Z=U.createObjectURL(n);l?l.location=Z:location.href=Z,l=null,setTimeout(function(){U.revokeObjectURL(Z)},4e4)}});function Cp(n){var o;n=n||"",this.ok=!1,n.charAt(0)=="#"&&(n=n.substr(1,6)),n={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"}[n=(n=n.replace(/ /g,"")).toLowerCase()]||n;for(var a=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(E){return[parseInt(E[1]),parseInt(E[2]),parseInt(E[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(E){return[parseInt(E[1],16),parseInt(E[2],16),parseInt(E[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(E){return[parseInt(E[1]+E[1],16),parseInt(E[2]+E[2],16),parseInt(E[3]+E[3],16)]}}],l=0;l<a.length;l++){var A=a[l].re,m=a[l].process,N=A.exec(n);N&&(o=m(N),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 E=this.r.toString(16),U=this.g.toString(16),Z=this.b.toString(16);return E.length==1&&(E="0"+E),U.length==1&&(U="0"+U),Z.length==1&&(Z="0"+Z),"#"+E+U+Z}}var vn=Za.atob.bind(Za),Qs=Za.btoa.bind(Za);function Q0(n,o){var a=n[0],l=n[1],A=n[2],m=n[3];a=Kc(a,l,A,m,o[0],7,-680876936),m=Kc(m,a,l,A,o[1],12,-389564586),A=Kc(A,m,a,l,o[2],17,606105819),l=Kc(l,A,m,a,o[3],22,-1044525330),a=Kc(a,l,A,m,o[4],7,-176418897),m=Kc(m,a,l,A,o[5],12,1200080426),A=Kc(A,m,a,l,o[6],17,-1473231341),l=Kc(l,A,m,a,o[7],22,-45705983),a=Kc(a,l,A,m,o[8],7,1770035416),m=Kc(m,a,l,A,o[9],12,-1958414417),A=Kc(A,m,a,l,o[10],17,-42063),l=Kc(l,A,m,a,o[11],22,-1990404162),a=Kc(a,l,A,m,o[12],7,1804603682),m=Kc(m,a,l,A,o[13],12,-40341101),A=Kc(A,m,a,l,o[14],17,-1502002290),a=Sc(a,l=Kc(l,A,m,a,o[15],22,1236535329),A,m,o[1],5,-165796510),m=Sc(m,a,l,A,o[6],9,-1069501632),A=Sc(A,m,a,l,o[11],14,643717713),l=Sc(l,A,m,a,o[0],20,-373897302),a=Sc(a,l,A,m,o[5],5,-701558691),m=Sc(m,a,l,A,o[10],9,38016083),A=Sc(A,m,a,l,o[15],14,-660478335),l=Sc(l,A,m,a,o[4],20,-405537848),a=Sc(a,l,A,m,o[9],5,568446438),m=Sc(m,a,l,A,o[14],9,-1019803690),A=Sc(A,m,a,l,o[3],14,-187363961),l=Sc(l,A,m,a,o[8],20,1163531501),a=Sc(a,l,A,m,o[13],5,-1444681467),m=Sc(m,a,l,A,o[2],9,-51403784),A=Sc(A,m,a,l,o[7],14,1735328473),a=sc(a,l=Sc(l,A,m,a,o[12],20,-1926607734),A,m,o[5],4,-378558),m=sc(m,a,l,A,o[8],11,-2022574463),A=sc(A,m,a,l,o[11],16,1839030562),l=sc(l,A,m,a,o[14],23,-35309556),a=sc(a,l,A,m,o[1],4,-1530992060),m=sc(m,a,l,A,o[4],11,1272893353),A=sc(A,m,a,l,o[7],16,-155497632),l=sc(l,A,m,a,o[10],23,-1094730640),a=sc(a,l,A,m,o[13],4,681279174),m=sc(m,a,l,A,o[0],11,-358537222),A=sc(A,m,a,l,o[3],16,-722521979),l=sc(l,A,m,a,o[6],23,76029189),a=sc(a,l,A,m,o[9],4,-640364487),m=sc(m,a,l,A,o[12],11,-421815835),A=sc(A,m,a,l,o[15],16,530742520),a=pc(a,l=sc(l,A,m,a,o[2],23,-995338651),A,m,o[0],6,-198630844),m=pc(m,a,l,A,o[7],10,1126891415),A=pc(A,m,a,l,o[14],15,-1416354905),l=pc(l,A,m,a,o[5],21,-57434055),a=pc(a,l,A,m,o[12],6,1700485571),m=pc(m,a,l,A,o[3],10,-1894986606),A=pc(A,m,a,l,o[10],15,-1051523),l=pc(l,A,m,a,o[1],21,-2054922799),a=pc(a,l,A,m,o[8],6,1873313359),m=pc(m,a,l,A,o[15],10,-30611744),A=pc(A,m,a,l,o[6],15,-1560198380),l=pc(l,A,m,a,o[13],21,1309151649),a=pc(a,l,A,m,o[4],6,-145523070),m=pc(m,a,l,A,o[11],10,-1120210379),A=pc(A,m,a,l,o[2],15,718787259),l=pc(l,A,m,a,o[9],21,-343485551),n[0]=Jc(a,n[0]),n[1]=Jc(l,n[1]),n[2]=Jc(A,n[2]),n[3]=Jc(m,n[3])}function K0(n,o,a,l,A,m){return o=Jc(Jc(o,n),Jc(l,m)),Jc(o<<A|o>>>32-A,a)}function Kc(n,o,a,l,A,m,N){return K0(o&a|~o&l,n,o,A,m,N)}function Sc(n,o,a,l,A,m,N){return K0(o&l|a&~l,n,o,A,m,N)}function sc(n,o,a,l,A,m,N){return K0(o^a^l,n,o,A,m,N)}function pc(n,o,a,l,A,m,N){return K0(a^(o|~l),n,o,A,m,N)}function sm(n){var o,a=n.length,l=[1732584193,-271733879,-1732584194,271733878];for(o=64;o<=n.length;o+=64)Q0(l,H0(n.substring(o-64,o)));n=n.substring(o-64);var A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(o=0;o<n.length;o++)A[o>>2]|=n.charCodeAt(o)<<(o%4<<3);if(A[o>>2]|=128<<(o%4<<3),o>55)for(Q0(l,A),o=0;o<16;o++)A[o]=0;return A[14]=8*a,Q0(l,A),l}function H0(n){var o,a=[];for(o=0;o<64;o+=4)a[o>>2]=n.charCodeAt(o)+(n.charCodeAt(o+1)<<8)+(n.charCodeAt(o+2)<<16)+(n.charCodeAt(o+3)<<24);return a}var MA="0123456789abcdef".split("");function Ef(n){for(var o="",a=0;a<4;a++)o+=MA[n>>8*a+4&15]+MA[n>>8*a&15];return o}function Ol(n){return String.fromCharCode(255&n,(65280&n)>>8,(16711680&n)>>16,(4278190080&n)>>24)}function _f(n){return sm(n).map(Ol).join("")}var Bp=function(n){for(var o=0;o<n.length;o++)n[o]=Ef(n[o]);return n.join("")}(sm("hello"))!="5d41402abc4b2a76b9719d911017c592";function Jc(n,o){if(Bp){var a=(65535&n)+(65535&o);return(n>>16)+(o>>16)+(a>>16)<<16|65535&a}return n+o&4294967295}function mc(n,o){var a,l,A,m;if(n!==a){for(var N=(A=n,m=1+(256/n.length|0),new Array(m+1).join(A)),E=[],U=0;U<256;U++)E[U]=U;var Z=0;for(U=0;U<256;U++){var oe=E[U];Z=(Z+oe+N.charCodeAt(U))%256,E[U]=E[Z],E[Z]=oe}a=n,l=E}else E=l;var Re=o.length,Ze=0,ae=0,mt="";for(U=0;U<Re;U++)ae=(ae+(oe=E[Ze=(Ze+1)%256]))%256,E[Ze]=E[ae],E[ae]=oe,N=E[(E[Ze]+E[ae])%256],mt+=String.fromCharCode(o.charCodeAt(U)^N);return mt}var Uh={print:4,modify:8,copy:16,"annot-forms":32};function Ou(n,o,a,l){this.v=1,this.r=2;var A=192;n.forEach(function(E){if(Uh.perm!==void 0)throw new Error("Invalid permission: "+E);A+=Uh[E]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var m=(o+this.padding).substr(0,32),N=(a+this.padding).substr(0,32);this.O=this.processOwnerPassword(m,N),this.P=-(1+(255^A)),this.encryptionKey=_f(m+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(l)).substr(0,5),this.U=mc(this.encryptionKey,this.padding)}function iA(n){if(/[^\u0000-\u00ff]/.test(n))throw new Error("Invalid PDF Name Object: "+n+", Only accept ASCII characters.");for(var o="",a=n.length,l=0;l<a;l++){var A=n.charCodeAt(l);o+=A<33||A===35||A===37||A===40||A===41||A===47||A===60||A===62||A===91||A===93||A===123||A===125||A>126?"#"+("0"+A.toString(16)).slice(-2):n[l]}return o}function Sp(n){if((0,pe.Z)(n)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var o={};this.subscribe=function(a,l,A){if(A=A||!1,typeof a!="string"||typeof l!="function"||typeof A!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");o.hasOwnProperty(a)||(o[a]={});var m=Math.random().toString(35);return o[a][m]=[l,!!A],m},this.unsubscribe=function(a){for(var l in o)if(o[l][a])return delete o[l][a],Object.keys(o[l]).length===0&&delete o[l],!0;return!1},this.publish=function(a){if(o.hasOwnProperty(a)){var l=Array.prototype.slice.call(arguments,1),A=[];for(var m in o[a]){var N=o[a][m];try{N[0].apply(n,l)}catch(E){Za.console&&ks.error("jsPDF PubSub Error",E.message,E)}N[1]&&A.push(m)}A.length&&A.forEach(this.unsubscribe)}},this.getTopics=function(){return o}}function Rh(n){if(!(this instanceof Rh))return new Rh(n);var o="opacity,stroke-opacity".split(",");for(var a in n)n.hasOwnProperty(a)&&o.indexOf(a)>=0&&(this[a]=n[a]);this.id="",this.objectNumber=-1}function sh(n,o){this.gState=n,this.matrix=o,this.id="",this.objectNumber=-1}function jd(n,o,a,l,A){if(!(this instanceof jd))return new jd(n,o,a,l,A);this.type=n==="axial"?2:3,this.coords=o,this.colors=a,sh.call(this,l,A)}function zd(n,o,a,l,A){if(!(this instanceof zd))return new zd(n,o,a,l,A);this.boundingBox=n,this.xStep=o,this.yStep=a,this.stream="",this.cloneIndex=0,sh.call(this,l,A)}function ua(n){var o,a=typeof arguments[0]=="string"?arguments[0]:"p",l=arguments[1],A=arguments[2],m=arguments[3],N=[],E=1,U=16,Z="S",oe=null;(0,pe.Z)(n=n||{})==="object"&&(a=n.orientation,l=n.unit||l,A=n.format||A,m=n.compress||n.compressPdf||m,(oe=n.encryption||null)!==null&&(oe.userPassword=oe.userPassword||"",oe.ownerPassword=oe.ownerPassword||"",oe.userPermissions=oe.userPermissions||[]),E=typeof n.userUnit=="number"?Math.abs(n.userUnit):1,n.precision!==void 0&&(o=n.precision),n.floatPrecision!==void 0&&(U=n.floatPrecision),Z=n.defaultPathOperation||"S"),N=n.filters||(m===!0?["FlateEncode"]:N),l=l||"mm",a=(""+(a||"P")).toLowerCase();var Re=n.putOnlyUsedFonts||!1,Ze={},ae={internal:{},__private__:{}};ae.__private__.PubSub=Sp;var mt="1.3",ut=ae.__private__.getPdfVersion=function(){return mt};ae.__private__.setPdfVersion=function(z){mt=z};var yt={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]};ae.__private__.getPageFormats=function(){return yt};var st=ae.__private__.getPageFormat=function(z){return yt[z]};A=A||"a4";var Gt="compat",Qt="advanced",It=Gt;function Ir(){this.saveGraphicsState(),Ft(new Ka(ro,0,0,-ro,0,dh()*ro).toString()+" cm"),this.setFontSize(this.getFontSize()/ro),Z="n",It=Qt}function rn(){this.restoreGraphicsState(),Z="S",It=Gt}var Wr=ae.__private__.combineFontStyleAndFontWeight=function(z,He){if(z=="bold"&&He=="normal"||z=="bold"&&He==400||z=="normal"&&He=="italic"||z=="bold"&&He=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return He&&(z=He==400||He==="normal"?z==="italic"?"italic":"normal":He!=700&&He!=="bold"||z!=="normal"?(He==700?"bold":He)+""+z:"bold"),z};ae.advancedAPI=function(z){var He=It===Gt;return He&&Ir.call(this),typeof z!="function"||(z(this),He&&rn.call(this)),this},ae.compatAPI=function(z){var He=It===Qt;return He&&rn.call(this),typeof z!="function"||(z(this),He&&Ir.call(this)),this},ae.isAdvancedAPI=function(){return It===Qt};var or,Lt=function(z){if(It!==Qt)throw new Error(z+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},xr=ae.roundToPrecision=ae.__private__.roundToPrecision=function(z,He){var Bt=o||He;if(isNaN(z)||isNaN(Bt))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return z.toFixed(Bt).replace(/0+$/,"")};or=ae.hpf=ae.__private__.hpf=typeof U=="number"?function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.hpf");return xr(z,U)}:U==="smart"?function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.hpf");return xr(z,z>-1&&z<1?16:5)}:function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.hpf");return xr(z,16)};var it=ae.f2=ae.__private__.f2=function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.f2");return xr(z,2)},wt=ae.__private__.f3=function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.f3");return xr(z,3)},Wt=ae.scale=ae.__private__.scale=function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.scale");return It===Gt?z*ro:It===Qt?z:void 0},jt=function(z){return Wt(function(He){return It===Gt?dh()-He:It===Qt?He:void 0}(z))};ae.__private__.setPrecision=ae.setPrecision=function(z){typeof parseInt(z,10)=="number"&&(o=parseInt(z,10))};var Tr,Zr="00000000000000000000000000000000",Jr=ae.__private__.getFileId=function(){return Zr},Mr=ae.__private__.setFileId=function(z){return Zr=z!==void 0&&/^[a-fA-F0-9]{32}$/.test(z)?z.toUpperCase():Zr.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),oe!==null&&(gc=new Ou(oe.userPermissions,oe.userPassword,oe.ownerPassword,Zr)),Zr};ae.setFileId=function(z){return Mr(z),this},ae.getFileId=function(){return Jr()};var Gr=ae.__private__.convertDateToPDFDate=function(z){var He=z.getTimezoneOffset(),Bt=He<0?"+":"-",Zt=Math.floor(Math.abs(He/60)),gr=Math.abs(He%60),un=[Bt,Dt(Zt),"'",Dt(gr),"'"].join("");return["D:",z.getFullYear(),Dt(z.getMonth()+1),Dt(z.getDate()),Dt(z.getHours()),Dt(z.getMinutes()),Dt(z.getSeconds()),un].join("")},Zn=ae.__private__.convertPDFDateToDate=function(z){var He=parseInt(z.substr(2,4),10),Bt=parseInt(z.substr(6,2),10)-1,Zt=parseInt(z.substr(8,2),10),gr=parseInt(z.substr(10,2),10),un=parseInt(z.substr(12,2),10),In=parseInt(z.substr(14,2),10);return new Date(He,Bt,Zt,gr,un,In,0)},En=ae.__private__.setCreationDate=function(z){var He;if(z===void 0&&(z=new Date),z instanceof Date)He=Gr(z);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(z))throw new Error("Invalid argument passed to jsPDF.setCreationDate");He=z}return Tr=He},tt=ae.__private__.getCreationDate=function(z){var He=Tr;return z==="jsDate"&&(He=Zn(Tr)),He};ae.setCreationDate=function(z){return En(z),this},ae.getCreationDate=function(z){return tt(z)};var _t,Dt=ae.__private__.padd2=function(z){return("0"+parseInt(z)).slice(-2)},qt=ae.__private__.padd2Hex=function(z){return("00"+(z=z.toString())).substr(z.length)},dr=0,_r=[],$r=[],Qr=0,gn=[],Qn=[],vi=!1,Fi=$r;ae.__private__.setCustomOutputDestination=function(z){vi=!0,Fi=z};var sn=function(z){vi||(Fi=z)};ae.__private__.resetCustomOutputDestination=function(){vi=!1,Fi=$r};var Ft=ae.__private__.out=function(z){return z=z.toString(),Qr+=z.length+1,Fi.push(z),Fi},Wo=ae.__private__.write=function(z){return Ft(arguments.length===1?z.toString():Array.prototype.join.call(arguments," "))},_o=ae.__private__.getArrayBuffer=function(z){for(var He=z.length,Bt=new ArrayBuffer(He),Zt=new Uint8Array(Bt);He--;)Zt[He]=z.charCodeAt(He);return Bt},Ta=[["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]];ae.__private__.getStandardFonts=function(){return Ta};var Gn=n.fontSize||16;ae.__private__.setFontSize=ae.setFontSize=function(z){return Gn=It===Qt?z/ro:z,this};var xa,ui=ae.__private__.getFontSize=ae.getFontSize=function(){return It===Gt?Gn:Gn*ro},Ja=n.R2L||!1;ae.__private__.setR2L=ae.setR2L=function(z){return Ja=z,this},ae.__private__.getR2L=ae.getR2L=function(){return Ja};var Ma,es=ae.__private__.setZoomMode=function(z){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(z))xa=z;else if(isNaN(z)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(z)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+z+'" is not recognized.');xa=z}else xa=parseInt(z,10)};ae.__private__.getZoomMode=function(){return xa};var wo,Wa=ae.__private__.setPageMode=function(z){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(z)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+z+'" is not recognized.');Ma=z};ae.__private__.getPageMode=function(){return Ma};var Ks=ae.__private__.setLayoutMode=function(z){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(z)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+z+'" is not recognized.');wo=z};ae.__private__.getLayoutMode=function(){return wo},ae.__private__.setDisplayMode=ae.setDisplayMode=function(z,He,Bt){return es(z),Ks(He),Wa(Bt),this};var fo={title:"",subject:"",author:"",keywords:"",creator:""};ae.__private__.getDocumentProperty=function(z){if(Object.keys(fo).indexOf(z)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return fo[z]},ae.__private__.getDocumentProperties=function(){return fo},ae.__private__.setDocumentProperties=ae.setProperties=ae.setDocumentProperties=function(z){for(var He in fo)fo.hasOwnProperty(He)&&z[He]&&(fo[He]=z[He]);return this},ae.__private__.setDocumentProperty=function(z,He){if(Object.keys(fo).indexOf(z)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return fo[z]=He};var Ba,ro,Sa,yl,Ds,ga={},xo={},ul=[],ka={},ns={},Co={},ql={},Pl=null,is=0,Ya=[],Hs=new Sp(ae),zh=n.hotfixes||[],jc={},Ff={},Vd=[],Ka=function z(He,Bt,Zt,gr,un,In){if(!(this instanceof z))return new z(He,Bt,Zt,gr,un,In);isNaN(He)&&(He=1),isNaN(Bt)&&(Bt=0),isNaN(Zt)&&(Zt=0),isNaN(gr)&&(gr=1),isNaN(un)&&(un=0),isNaN(In)&&(In=0),this._matrix=[He,Bt,Zt,gr,un,In]};Object.defineProperty(Ka.prototype,"sx",{get:function(){return this._matrix[0]},set:function(z){this._matrix[0]=z}}),Object.defineProperty(Ka.prototype,"shy",{get:function(){return this._matrix[1]},set:function(z){this._matrix[1]=z}}),Object.defineProperty(Ka.prototype,"shx",{get:function(){return this._matrix[2]},set:function(z){this._matrix[2]=z}}),Object.defineProperty(Ka.prototype,"sy",{get:function(){return this._matrix[3]},set:function(z){this._matrix[3]=z}}),Object.defineProperty(Ka.prototype,"tx",{get:function(){return this._matrix[4]},set:function(z){this._matrix[4]=z}}),Object.defineProperty(Ka.prototype,"ty",{get:function(){return this._matrix[5]},set:function(z){this._matrix[5]=z}}),Object.defineProperty(Ka.prototype,"a",{get:function(){return this._matrix[0]},set:function(z){this._matrix[0]=z}}),Object.defineProperty(Ka.prototype,"b",{get:function(){return this._matrix[1]},set:function(z){this._matrix[1]=z}}),Object.defineProperty(Ka.prototype,"c",{get:function(){return this._matrix[2]},set:function(z){this._matrix[2]=z}}),Object.defineProperty(Ka.prototype,"d",{get:function(){return this._matrix[3]},set:function(z){this._matrix[3]=z}}),Object.defineProperty(Ka.prototype,"e",{get:function(){return this._matrix[4]},set:function(z){this._matrix[4]=z}}),Object.defineProperty(Ka.prototype,"f",{get:function(){return this._matrix[5]},set:function(z){this._matrix[5]=z}}),Object.defineProperty(Ka.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ka.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ka.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ka.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Ka.prototype.join=function(z){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(or).join(z)},Ka.prototype.multiply=function(z){var He=z.sx*this.sx+z.shy*this.shx,Bt=z.sx*this.shy+z.shy*this.sy,Zt=z.shx*this.sx+z.sy*this.shx,gr=z.shx*this.shy+z.sy*this.sy,un=z.tx*this.sx+z.ty*this.shx+this.tx,In=z.tx*this.shy+z.ty*this.sy+this.ty;return new Ka(He,Bt,Zt,gr,un,In)},Ka.prototype.decompose=function(){var z=this.sx,He=this.shy,Bt=this.shx,Zt=this.sy,gr=this.tx,un=this.ty,In=Math.sqrt(z*z+He*He),aa=(z/=In)*Bt+(He/=In)*Zt;Bt-=z*aa,Zt-=He*aa;var ha=Math.sqrt(Bt*Bt+Zt*Zt);return aa/=ha,z*(Zt/=ha)<He*(Bt/=ha)&&(z=-z,He=-He,aa=-aa,In=-In),{scale:new Ka(In,0,0,ha,0,0),translate:new Ka(1,0,0,1,gr,un),rotate:new Ka(z,He,-He,z,0,0),skew:new Ka(1,0,aa,1,0,0)}},Ka.prototype.toString=function(z){return this.join(" ")},Ka.prototype.inversed=function(){var z=this.sx,He=this.shy,Bt=this.shx,Zt=this.sy,gr=this.tx,un=this.ty,In=1/(z*Zt-He*Bt),aa=Zt*In,ha=-He*In,Ga=-Bt*In,no=z*In;return new Ka(aa,ha,Ga,no,-aa*gr-Ga*un,-ha*gr-no*un)},Ka.prototype.applyToPoint=function(z){var He=z.x*this.sx+z.y*this.shx+this.tx,Bt=z.x*this.shy+z.y*this.sy+this.ty;return new r0(He,Bt)},Ka.prototype.applyToRectangle=function(z){var He=this.applyToPoint(z),Bt=this.applyToPoint(new r0(z.x+z.w,z.y+z.h));return new Yd(He.x,He.y,Bt.x-He.x,Bt.y-He.y)},Ka.prototype.clone=function(){var z=this.sx,He=this.shy,Bt=this.shx,Zt=this.sy,gr=this.tx,un=this.ty;return new Ka(z,He,Bt,Zt,gr,un)},ae.Matrix=Ka;var Mf=ae.matrixMult=function(z,He){return He.multiply(z)},Lf=new Ka(1,0,0,1,0,0);ae.unitMatrix=ae.identityMatrix=Lf;var pu=function(z,He){if(!ns[z]){var Bt=(He instanceof jd?"Sh":"P")+(Object.keys(ka).length+1).toString(10);He.id=Bt,ns[z]=Bt,ka[Bt]=He,Hs.publish("addPattern",He)}};ae.ShadingPattern=jd,ae.TilingPattern=zd,ae.addShadingPattern=function(z,He){return Lt("addShadingPattern()"),pu(z,He),this},ae.beginTilingPattern=function(z){Lt("beginTilingPattern()"),n0(z.boundingBox[0],z.boundingBox[1],z.boundingBox[2]-z.boundingBox[0],z.boundingBox[3]-z.boundingBox[1],z.matrix)},ae.endTilingPattern=function(z,He){Lt("endTilingPattern()"),He.stream=Qn[_t].join(`
`),pu(z,He),Hs.publish("endTilingPattern",He),Vd.pop().restore()};var mu,lc=ae.__private__.newObject=function(){var z=Ss();return dl(z,!0),z},Ss=ae.__private__.newObjectDeferred=function(){return dr++,_r[dr]=function(){return Qr},dr},dl=function(z,He){return He=typeof He=="boolean"&&He,_r[z]=Qr,He&&Ft(z+" 0 obj"),z},Wd=ae.__private__.newAdditionalObject=function(){var z={objId:Ss(),content:""};return gn.push(z),z},Gd=Ss(),Uu=Ss(),gu=ae.__private__.decodeColorString=function(z){var He=z.split(" ");if(He.length!==2||He[1]!=="g"&&He[1]!=="G")He.length!==5||He[4]!=="k"&&He[4]!=="K"||(He=[(1-He[0])*(1-He[3]),(1-He[1])*(1-He[3]),(1-He[2])*(1-He[3]),"r"]);else{var Bt=parseFloat(He[0]);He=[Bt,Bt,Bt,"r"]}for(var Zt="#",gr=0;gr<3;gr++)Zt+=("0"+Math.floor(255*parseFloat(He[gr])).toString(16)).slice(-2);return Zt},lA=ae.__private__.encodeColorString=function(z){var He;typeof z=="string"&&(z={ch1:z});var Bt=z.ch1,Zt=z.ch2,gr=z.ch3,un=z.ch4,In=z.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Bt=="string"&&Bt.charAt(0)!=="#"){var aa=new Cp(Bt);if(aa.ok)Bt=aa.toHex();else if(!/^\d*\.?\d*$/.test(Bt))throw new Error('Invalid color "'+Bt+'" passed to jsPDF.encodeColorString.')}if(typeof Bt=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Bt)&&(Bt="#"+Bt[1]+Bt[1]+Bt[2]+Bt[2]+Bt[3]+Bt[3]),typeof Bt=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Bt)){var ha=parseInt(Bt.substr(1),16);Bt=ha>>16&255,Zt=ha>>8&255,gr=255&ha}if(Zt===void 0||un===void 0&&Bt===Zt&&Zt===gr)He=typeof Bt=="string"?Bt+" "+In[0]:z.precision===2?it(Bt/255)+" "+In[0]:wt(Bt/255)+" "+In[0];else if(un===void 0||(0,pe.Z)(un)==="object"){if(un&&!isNaN(un.a)&&un.a===0)return["1.","1.","1.",In[1]].join(" ");He=typeof Bt=="string"?[Bt,Zt,gr,In[1]].join(" "):z.precision===2?[it(Bt/255),it(Zt/255),it(gr/255),In[1]].join(" "):[wt(Bt/255),wt(Zt/255),wt(gr/255),In[1]].join(" ")}else He=typeof Bt=="string"?[Bt,Zt,gr,un,In[2]].join(" "):z.precision===2?[it(Bt),it(Zt),it(gr),it(un),In[2]].join(" "):[wt(Bt),wt(Zt),wt(gr),wt(un),In[2]].join(" ");return He},vu=ae.__private__.getFilters=function(){return N},Ru=ae.__private__.putStream=function(z){var He=(z=z||{}).data||"",Bt=z.filters||vu(),Zt=z.alreadyAppliedFilters||[],gr=z.addLength1||!1,un=He.length,In=z.objectId,aa=function(fl){return fl};if(oe!==null&&In===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");oe!==null&&(aa=gc.encryptor(In,0));var ha={};Bt===!0&&(Bt=["FlateEncode"]);var Ga=z.additionalKeyValues||[],no=(ha=ua.API.processDataByFilters!==void 0?ua.API.processDataByFilters(He,Bt):{data:He,reverseChain:[]}).reverseChain+(Array.isArray(Zt)?Zt.join(" "):Zt.toString());if(ha.data.length!==0&&(Ga.push({key:"Length",value:ha.data.length}),gr===!0&&Ga.push({key:"Length1",value:un})),no.length!=0)if(no.split("/").length-1==1)Ga.push({key:"Filter",value:no});else{Ga.push({key:"Filter",value:"["+no+"]"});for(var da=0;da<Ga.length;da+=1)if(Ga[da].key==="DecodeParms"){for(var tc=[],Ic=0;Ic<ha.reverseChain.split("/").length-1;Ic+=1)tc.push("null");tc.push(Ga[da].value),Ga[da].value="["+tc.join(" ")+"]"}}Ft("<<");for(var wl=0;wl<Ga.length;wl++)Ft("/"+Ga[wl].key+" "+Ga[wl].value);Ft(">>"),ha.data.length!==0&&(Ft("stream"),Ft(aa(ha.data)),Ft("endstream"))},$h=ae.__private__.putPage=function(z){var He=z.number,Bt=z.data,Zt=z.objId,gr=z.contentsObjId;dl(Zt,!0),Ft("<</Type /Page"),Ft("/Parent "+z.rootDictionaryObjId+" 0 R"),Ft("/Resources "+z.resourceDictionaryObjId+" 0 R"),Ft("/MediaBox ["+parseFloat(or(z.mediaBox.bottomLeftX))+" "+parseFloat(or(z.mediaBox.bottomLeftY))+" "+or(z.mediaBox.topRightX)+" "+or(z.mediaBox.topRightY)+"]"),z.cropBox!==null&&Ft("/CropBox ["+or(z.cropBox.bottomLeftX)+" "+or(z.cropBox.bottomLeftY)+" "+or(z.cropBox.topRightX)+" "+or(z.cropBox.topRightY)+"]"),z.bleedBox!==null&&Ft("/BleedBox ["+or(z.bleedBox.bottomLeftX)+" "+or(z.bleedBox.bottomLeftY)+" "+or(z.bleedBox.topRightX)+" "+or(z.bleedBox.topRightY)+"]"),z.trimBox!==null&&Ft("/TrimBox ["+or(z.trimBox.bottomLeftX)+" "+or(z.trimBox.bottomLeftY)+" "+or(z.trimBox.topRightX)+" "+or(z.trimBox.topRightY)+"]"),z.artBox!==null&&Ft("/ArtBox ["+or(z.artBox.bottomLeftX)+" "+or(z.artBox.bottomLeftY)+" "+or(z.artBox.topRightX)+" "+or(z.artBox.topRightY)+"]"),typeof z.userUnit=="number"&&z.userUnit!==1&&Ft("/UserUnit "+z.userUnit),Hs.publish("putPage",{objId:Zt,pageContext:Ya[He],pageNumber:He,page:Bt}),Ft("/Contents "+gr+" 0 R"),Ft(">>"),Ft("endobj");var un=Bt.join(`
`);return It===Qt&&(un+=`
Q`),dl(gr,!0),Ru({data:un,filters:vu(),objectId:gr}),Ft("endobj"),Zt},Xd=ae.__private__.putPages=function(){var z,He,Bt=[];for(z=1;z<=is;z++)Ya[z].objId=Ss(),Ya[z].contentsObjId=Ss();for(z=1;z<=is;z++)Bt.push($h({number:z,data:Qn[z],objId:Ya[z].objId,contentsObjId:Ya[z].contentsObjId,mediaBox:Ya[z].mediaBox,cropBox:Ya[z].cropBox,bleedBox:Ya[z].bleedBox,trimBox:Ya[z].trimBox,artBox:Ya[z].artBox,userUnit:Ya[z].userUnit,rootDictionaryObjId:Gd,resourceDictionaryObjId:Uu}));dl(Gd,!0),Ft("<</Type /Pages");var Zt="/Kids [";for(He=0;He<is;He++)Zt+=Bt[He]+" 0 R ";Ft(Zt+"]"),Ft("/Count "+is),Ft(">>"),Ft("endobj"),Hs.publish("postPutPages")},Zh=function(z){Hs.publish("putFont",{font:z,out:Ft,newObject:lc,putStream:Ru}),z.isAlreadyPutted!==!0&&(z.objectNumber=lc(),Ft("<<"),Ft("/Type /Font"),Ft("/BaseFont /"+iA(z.postScriptName)),Ft("/Subtype /Type1"),typeof z.encoding=="string"&&Ft("/Encoding /"+z.encoding),Ft("/FirstChar 32"),Ft("/LastChar 255"),Ft(">>"),Ft("endobj"))},Vh=function(z){z.objectNumber=lc();var He=[];He.push({key:"Type",value:"/XObject"}),He.push({key:"Subtype",value:"/Form"}),He.push({key:"BBox",value:"["+[or(z.x),or(z.y),or(z.x+z.width),or(z.y+z.height)].join(" ")+"]"}),He.push({key:"Matrix",value:"["+z.matrix.toString()+"]"});var Bt=z.pages[1].join(`
`);Ru({data:Bt,additionalKeyValues:He,objectId:z.objectNumber}),Ft("endobj")},$0=function(z,He){He||(He=21);var Bt=lc(),Zt=function(In,aa){var ha,Ga=[],no=1/(aa-1);for(ha=0;ha<1;ha+=no)Ga.push(ha);if(Ga.push(1),In[0].offset!=0){var da={offset:0,color:In[0].color};In.unshift(da)}if(In[In.length-1].offset!=1){var tc={offset:1,color:In[In.length-1].color};In.push(tc)}for(var Ic="",wl=0,fl=0;fl<Ga.length;fl++){for(ha=Ga[fl];ha>In[wl+1].offset;)wl++;var Fc=In[wl].offset,uA=(ha-Fc)/(In[wl+1].offset-Fc),Ku=In[wl].color,qA=In[wl+1].color;Ic+=qt(Math.round((1-uA)*Ku[0]+uA*qA[0]).toString(16))+qt(Math.round((1-uA)*Ku[1]+uA*qA[1]).toString(16))+qt(Math.round((1-uA)*Ku[2]+uA*qA[2]).toString(16))}return Ic.trim()}(z.colors,He),gr=[];gr.push({key:"FunctionType",value:"0"}),gr.push({key:"Domain",value:"[0.0 1.0]"}),gr.push({key:"Size",value:"["+He+"]"}),gr.push({key:"BitsPerSample",value:"8"}),gr.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),gr.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ru({data:Zt,additionalKeyValues:gr,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Bt}),Ft("endobj"),z.objectNumber=lc(),Ft("<< /ShadingType "+z.type),Ft("/ColorSpace /DeviceRGB");var un="/Coords ["+or(parseFloat(z.coords[0]))+" "+or(parseFloat(z.coords[1]))+" ";z.type===2?un+=or(parseFloat(z.coords[2]))+" "+or(parseFloat(z.coords[3])):un+=or(parseFloat(z.coords[2]))+" "+or(parseFloat(z.coords[3]))+" "+or(parseFloat(z.coords[4]))+" "+or(parseFloat(z.coords[5])),Ft(un+="]"),z.matrix&&Ft("/Matrix ["+z.matrix.toString()+"]"),Ft("/Function "+Bt+" 0 R"),Ft("/Extend [true true]"),Ft(">>"),Ft("endobj")},Wh=function(z,He){var Bt=Ss(),Zt=lc();He.push({resourcesOid:Bt,objectOid:Zt}),z.objectNumber=Zt;var gr=[];gr.push({key:"Type",value:"/Pattern"}),gr.push({key:"PatternType",value:"1"}),gr.push({key:"PaintType",value:"1"}),gr.push({key:"TilingType",value:"1"}),gr.push({key:"BBox",value:"["+z.boundingBox.map(or).join(" ")+"]"}),gr.push({key:"XStep",value:or(z.xStep)}),gr.push({key:"YStep",value:or(z.yStep)}),gr.push({key:"Resources",value:Bt+" 0 R"}),z.matrix&&gr.push({key:"Matrix",value:"["+z.matrix.toString()+"]"}),Ru({data:z.stream,additionalKeyValues:gr,objectId:z.objectNumber}),Ft("endobj")},Fp=function(z){for(var He in z.objectNumber=lc(),Ft("<<"),z)switch(He){case"opacity":Ft("/ca "+it(z[He]));break;case"stroke-opacity":Ft("/CA "+it(z[He]))}Ft(">>"),Ft("endobj")},Mp=function(z){dl(z.resourcesOid,!0),Ft("<<"),Ft("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var He in Ft("/Font <<"),ga)ga.hasOwnProperty(He)&&(Re===!1||Re===!0&&Ze.hasOwnProperty(He))&&Ft("/"+He+" "+ga[He].objectNumber+" 0 R");Ft(">>")}(),function(){if(Object.keys(ka).length>0){for(var He in Ft("/Shading <<"),ka)ka.hasOwnProperty(He)&&ka[He]instanceof jd&&ka[He].objectNumber>=0&&Ft("/"+He+" "+ka[He].objectNumber+" 0 R");Hs.publish("putShadingPatternDict"),Ft(">>")}}(),function(He){if(Object.keys(ka).length>0){for(var Bt in Ft("/Pattern <<"),ka)ka.hasOwnProperty(Bt)&&ka[Bt]instanceof ae.TilingPattern&&ka[Bt].objectNumber>=0&&ka[Bt].objectNumber<He&&Ft("/"+Bt+" "+ka[Bt].objectNumber+" 0 R");Hs.publish("putTilingPatternDict"),Ft(">>")}}(z.objectOid),function(){if(Object.keys(Co).length>0){var He;for(He in Ft("/ExtGState <<"),Co)Co.hasOwnProperty(He)&&Co[He].objectNumber>=0&&Ft("/"+He+" "+Co[He].objectNumber+" 0 R");Hs.publish("putGStateDict"),Ft(">>")}}(),function(){for(var He in Ft("/XObject <<"),jc)jc.hasOwnProperty(He)&&jc[He].objectNumber>=0&&Ft("/"+He+" "+jc[He].objectNumber+" 0 R");Hs.publish("putXobjectDict"),Ft(">>")}(),Ft(">>"),Ft("endobj")},pm=function(z){xo[z.fontName]=xo[z.fontName]||{},xo[z.fontName][z.fontStyle]=z.id},mm=function(z,He,Bt,Zt,gr){var un={id:"F"+(Object.keys(ga).length+1).toString(10),postScriptName:z,fontName:He,fontStyle:Bt,encoding:Zt,isStandardFont:gr||!1,metadata:{}};return Hs.publish("addFont",{font:un,instance:this}),ga[un.id]=un,pm(un),un.id},YA=ae.__private__.pdfEscape=ae.pdfEscape=function(z,He){return function(Bt,Zt){var gr,un,In,aa,ha,Ga,no,da,tc;if(In=(Zt=Zt||{}).sourceEncoding||"Unicode",ha=Zt.outputEncoding,(Zt.autoencode||ha)&&ga[Ba].metadata&&ga[Ba].metadata[In]&&ga[Ba].metadata[In].encoding&&(aa=ga[Ba].metadata[In].encoding,!ha&&ga[Ba].encoding&&(ha=ga[Ba].encoding),!ha&&aa.codePages&&(ha=aa.codePages[0]),typeof ha=="string"&&(ha=aa[ha]),ha)){for(no=!1,Ga=[],gr=0,un=Bt.length;gr<un;gr++)(da=ha[Bt.charCodeAt(gr)])?Ga.push(String.fromCharCode(da)):Ga.push(Bt[gr]),Ga[gr].charCodeAt(0)>>8&&(no=!0);Bt=Ga.join("")}for(gr=Bt.length;no===void 0&&gr!==0;)Bt.charCodeAt(gr-1)>>8&&(no=!0),gr--;if(!no)return Bt;for(Ga=Zt.noBOM?[]:[254,255],gr=0,un=Bt.length;gr<un;gr++){if((tc=(da=Bt.charCodeAt(gr))>>8)>>8)throw new Error("Character at position "+gr+" of string '"+Bt+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Ga.push(tc),Ga.push(da-(tc<<8))}return String.fromCharCode.apply(void 0,Ga)}(z,He).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Gh=ae.__private__.beginPage=function(z){Qn[++is]=[],Ya[is]={objId:0,contentsObjId:0,userUnit:Number(E),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(z[0]),topRightY:Number(z[1])}},Z0(is),sn(Qn[_t])},Lp=function(z,He){var Bt,Zt,gr;switch(a=He||a,typeof z=="string"&&(Bt=st(z.toLowerCase()),Array.isArray(Bt)&&(Zt=Bt[0],gr=Bt[1])),Array.isArray(z)&&(Zt=z[0]*ro,gr=z[1]*ro),isNaN(Zt)&&(Zt=A[0],gr=A[1]),(Zt>14400||gr>14400)&&(ks.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Zt=Math.min(14400,Zt),gr=Math.min(14400,gr)),A=[Zt,gr],a.substr(0,1)){case"l":gr>Zt&&(A=[gr,Zt]);break;case"p":Zt>gr&&(A=[gr,Zt])}Gh(A),ig(q0),Ft(ep),e0!==0&&Ft(e0+" J"),Pp!==0&&Ft(Pp+" j"),Hs.publish("addPage",{pageNumber:is})},kp=function(z){z>0&&z<=is&&(Qn.splice(z,1),Ya.splice(z,1),is--,_t>is&&(_t=is),this.setPage(_t))},Z0=function(z){z>0&&z<=is&&(_t=z)},V0=ae.__private__.getNumberOfPages=ae.getNumberOfPages=function(){return Qn.length-1},Dp=function(z,He,Bt){var Zt,gr=void 0;return Bt=Bt||{},z=z!==void 0?z:ga[Ba].fontName,He=He!==void 0?He:ga[Ba].fontStyle,Zt=z.toLowerCase(),xo[Zt]!==void 0&&xo[Zt][He]!==void 0?gr=xo[Zt][He]:xo[z]!==void 0&&xo[z][He]!==void 0?gr=xo[z][He]:Bt.disableWarning===!1&&ks.warn("Unable to look up font label for font '"+z+"', '"+He+"'. Refer to getFontList() for available fonts."),gr||Bt.noFallback||(gr=xo.times[He])==null&&(gr=xo.times.normal),gr},Qu=ae.__private__.putInfo=function(){var z=lc(),He=function(Zt){return Zt};for(var Bt in oe!==null&&(He=gc.encryptor(z,0)),Ft("<<"),Ft("/Producer ("+YA(He("jsPDF "+ua.version))+")"),fo)fo.hasOwnProperty(Bt)&&fo[Bt]&&Ft("/"+Bt.substr(0,1).toUpperCase()+Bt.substr(1)+" ("+YA(He(fo[Bt]))+")");Ft("/CreationDate ("+YA(He(Tr))+")"),Ft(">>"),Ft("endobj")},Xh=ae.__private__.putCatalog=function(z){var He=(z=z||{}).rootDictionaryObjId||Gd;switch(lc(),Ft("<<"),Ft("/Type /Catalog"),Ft("/Pages "+He+" 0 R"),xa||(xa="fullwidth"),xa){case"fullwidth":Ft("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Ft("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Ft("/OpenAction [3 0 R /Fit]");break;case"original":Ft("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Bt=""+xa;Bt.substr(Bt.length-1)==="%"&&(xa=parseInt(xa)/100),typeof xa=="number"&&Ft("/OpenAction [3 0 R /XYZ null null "+it(xa)+"]")}switch(wo||(wo="continuous"),wo){case"continuous":Ft("/PageLayout /OneColumn");break;case"single":Ft("/PageLayout /SinglePage");break;case"two":case"twoleft":Ft("/PageLayout /TwoColumnLeft");break;case"tworight":Ft("/PageLayout /TwoColumnRight")}Ma&&Ft("/PageMode /"+Ma),Hs.publish("putCatalog"),Ft(">>"),Ft("endobj")},ec=ae.__private__.putTrailer=function(){Ft("trailer"),Ft("<<"),Ft("/Size "+(dr+1)),Ft("/Root "+dr+" 0 R"),Ft("/Info "+(dr-1)+" 0 R"),oe!==null&&Ft("/Encrypt "+gc.oid+" 0 R"),Ft("/ID [ <"+Zr+"> <"+Zr+"> ]"),Ft(">>")},W0=ae.__private__.putHeader=function(){Ft("%PDF-"+mt),Ft("%\xBA\xDF\xAC\xE0")},Np=ae.__private__.putXRef=function(){var z="0000000000";Ft("xref"),Ft("0 "+(dr+1)),Ft("0000000000 65535 f ");for(var He=1;He<=dr;He++)typeof _r[He]=="function"?Ft((z+_r[He]()).slice(-10)+" 00000 n "):_r[He]!==void 0?Ft((z+_r[He]).slice(-10)+" 00000 n "):Ft("0000000000 00000 n ")},kf=ae.__private__.buildDocument=function(){var z;dr=0,Qr=0,$r=[],_r=[],gn=[],Gd=Ss(),Uu=Ss(),sn($r),Hs.publish("buildDocument"),W0(),Xd(),function(){Hs.publish("putAdditionalObjects");for(var Bt=0;Bt<gn.length;Bt++){var Zt=gn[Bt];dl(Zt.objId,!0),Ft(Zt.content),Ft("endobj")}Hs.publish("postPutAdditionalObjects")}(),z=[],function(){for(var Bt in ga)ga.hasOwnProperty(Bt)&&(Re===!1||Re===!0&&Ze.hasOwnProperty(Bt))&&Zh(ga[Bt])}(),function(){var Bt;for(Bt in Co)Co.hasOwnProperty(Bt)&&Fp(Co[Bt])}(),function(){for(var Bt in jc)jc.hasOwnProperty(Bt)&&Vh(jc[Bt])}(),function(Bt){var Zt;for(Zt in ka)ka.hasOwnProperty(Zt)&&(ka[Zt]instanceof jd?$0(ka[Zt]):ka[Zt]instanceof zd&&Wh(ka[Zt],Bt))}(z),Hs.publish("putResources"),z.forEach(Mp),Mp({resourcesOid:Uu,objectOid:Number.MAX_SAFE_INTEGER}),Hs.publish("postPutResources"),oe!==null&&(gc.oid=lc(),Ft("<<"),Ft("/Filter /Standard"),Ft("/V "+gc.v),Ft("/R "+gc.r),Ft("/U <"+gc.toHexString(gc.U)+">"),Ft("/O <"+gc.toHexString(gc.O)+">"),Ft("/P "+gc.P),Ft(">>"),Ft("endobj")),Qu(),Xh();var He=Qr;return Np(),ec(),Ft("startxref"),Ft(""+He),Ft("%%EOF"),sn(Qn[_t]),$r.join(`
`)},ch=ae.__private__.getBlob=function(z){return new Blob([_o(z)],{type:"application/pdf"})},gd=ae.output=ae.__private__.output=(mu=function(z,He){switch(typeof(He=He||{})=="string"?He={filename:He}:He.filename=He.filename||"generated.pdf",z){case void 0:return kf();case"save":ae.save(He.filename);break;case"arraybuffer":return _o(kf());case"blob":return ch(kf());case"bloburi":case"bloburl":if(Za.URL!==void 0&&typeof Za.URL.createObjectURL=="function")return Za.URL&&Za.URL.createObjectURL(ch(kf()))||void 0;ks.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Bt="",Zt=kf();try{Bt=Qs(Zt)}catch(Ic){Bt=Qs(unescape(encodeURIComponent(Zt)))}return"data:application/pdf;filename="+He.filename+";base64,"+Bt;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Za)==="[object Window]"){var gr="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",un=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';He.pdfObjectUrl&&(gr=He.pdfObjectUrl,un="");var In='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+gr+'"'+un+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(He)+");<\/script></body></html>",aa=Za.open();return aa!==null&&aa.document.write(In),aa}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Za)==="[object Window]"){var ha='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(He.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+He.filename+'" width="500px" height="400px" /></body></html>',Ga=Za.open();if(Ga!==null){Ga.document.write(ha);var no=this;Ga.document.documentElement.querySelector("#pdfViewer").onload=function(){Ga.document.title=He.filename,Ga.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(no.output("bloburl"))}}return Ga}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Za)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var da='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",He)+'"></iframe></body></html>',tc=Za.open();if(tc!==null&&(tc.document.write(da),tc.document.title=He.filename),tc||typeof safari=="undefined")return tc;break;case"datauri":case"dataurl":return Za.document.location.href=this.output("datauristring",He);default:return null}},mu.foo=function(){try{return mu.apply(this,arguments)}catch(Bt){var z=Bt.stack||"";~z.indexOf(" at ")&&(z=z.split(" at ")[1]);var He="Error in function "+z.split(`
`)[0].split("<")[0]+": "+Bt.message;if(!Za.console)throw new Error(He);Za.console.error(He,Bt),Za.alert&&alert(He)}},mu.foo.bar=mu,mu.foo),vd=function(z){return Array.isArray(zh)===!0&&zh.indexOf(z)>-1};switch(l){case"pt":ro=1;break;case"mm":ro=72/25.4;break;case"cm":ro=72/2.54;break;case"in":ro=72;break;case"px":ro=vd("px_scaling")==1?.75:96/72;break;case"pc":case"em":ro=12;break;case"ex":ro=6;break;default:if(typeof l!="number")throw new Error("Invalid unit: "+l);ro=l}var gc=null;En(),Mr();var G0=ae.__private__.getPageInfo=ae.getPageInfo=function(z){if(isNaN(z)||z%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Ya[z].objId,pageNumber:z,pageContext:Ya[z]}},tg=ae.__private__.getPageInfoByObjId=function(z){if(isNaN(z)||z%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var He in Ya)if(Ya[He].objId===z)break;return G0(He)},X0=ae.__private__.getCurrentPageInfo=ae.getCurrentPageInfo=function(){return{objId:Ya[_t].objId,pageNumber:_t,pageContext:Ya[_t]}};ae.addPage=function(){return Lp.apply(this,arguments),this},ae.setPage=function(){return Z0.apply(this,arguments),sn.call(this,Qn[_t]),this},ae.insertPage=function(z){return this.addPage(),this.movePage(_t,z),this},ae.movePage=function(z,He){var Bt,Zt;if(z>He){Bt=Qn[z],Zt=Ya[z];for(var gr=z;gr>He;gr--)Qn[gr]=Qn[gr-1],Ya[gr]=Ya[gr-1];Qn[He]=Bt,Ya[He]=Zt,this.setPage(He)}else if(z<He){Bt=Qn[z],Zt=Ya[z];for(var un=z;un<He;un++)Qn[un]=Qn[un+1],Ya[un]=Ya[un+1];Qn[He]=Bt,Ya[He]=Zt,this.setPage(He)}return this},ae.deletePage=function(){return kp.apply(this,arguments),this},ae.__private__.text=ae.text=function(z,He,Bt,Zt,gr){var un,In,aa,ha,Ga,no,da,tc,Ic,wl=(Zt=Zt||{}).scope||this;if(typeof z=="number"&&typeof He=="number"&&(typeof Bt=="string"||Array.isArray(Bt))){var fl=Bt;Bt=He,He=z,z=fl}if(arguments[3]instanceof Ka==0?(aa=arguments[4],ha=arguments[5],(0,pe.Z)(da=arguments[3])==="object"&&da!==null||(typeof aa=="string"&&(ha=aa,aa=null),typeof da=="string"&&(ha=da,da=null),typeof da=="number"&&(aa=da,da=null),Zt={flags:da,angle:aa,align:ha})):(Lt("The transform parameter of text() with a Matrix value"),Ic=gr),isNaN(He)||isNaN(Bt)||z==null)throw new Error("Invalid arguments passed to jsPDF.text");if(z.length===0)return wl;var Fc,uA="",Ku=typeof Zt.lineHeightFactor=="number"?Zt.lineHeightFactor:Jh,qA=wl.internal.scaleFactor;function Ro(qs){return qs=qs.split(" ").join(Array(Zt.TabLen||9).join(" ")),YA(qs,da)}function Hu(qs){for(var pl,vc=qs.concat(),zc=[],Tf=vc.length;Tf--;)typeof(pl=vc.shift())=="string"?zc.push(pl):Array.isArray(qs)&&(pl.length===1||pl[1]===void 0&&pl[2]===void 0)?zc.push(pl[0]):zc.push([pl[0],pl[1],pl[2]]);return zc}function ju(qs,pl){var vc;if(typeof qs=="string")vc=pl(qs)[0];else if(Array.isArray(qs)){for(var zc,Tf,Kp=qs.concat(),Wu=[],Bm=Kp.length;Bm--;)typeof(zc=Kp.shift())=="string"?Wu.push(pl(zc)[0]):Array.isArray(zc)&&typeof zc[0]=="string"&&(Tf=pl(zc[0],zc[1],zc[2]),Wu.push([Tf[0],Tf[1],Tf[2]]));vc=Wu}return vc}var tf=!1,zu=!0;if(typeof z=="string")tf=!0;else if(Array.isArray(z)){var Of=z.concat();In=[];for(var i0,Mc=Of.length;Mc--;)(typeof(i0=Of.shift())!="string"||Array.isArray(i0)&&typeof i0[0]!="string")&&(zu=!1);tf=zu}if(tf===!1)throw new Error('Type of text must be string or Array. "'+z+'" is not recognized.');typeof z=="string"&&(z=z.match(/[\r?\n]/)?z.split(/\r\n|\r|\n/g):[z]);var a0=Gn/wl.internal.scaleFactor,fh=a0*(Ku-1);switch(Zt.baseline){case"bottom":Bt-=fh;break;case"top":Bt+=a0-fh;break;case"hanging":Bt+=a0-2*fh;break;case"middle":Bt+=a0/2-fh}if((no=Zt.maxWidth||0)>0&&(typeof z=="string"?z=wl.splitTextToSize(z,no):Object.prototype.toString.call(z)==="[object Array]"&&(z=z.reduce(function(qs,pl){return qs.concat(wl.splitTextToSize(pl,no))},[]))),un={text:z,x:He,y:Bt,options:Zt,mutex:{pdfEscape:YA,activeFontKey:Ba,fonts:ga,activeFontSize:Gn}},Hs.publish("preProcessText",un),z=un.text,aa=(Zt=un.options).angle,Ic instanceof Ka==0&&aa&&typeof aa=="number"){aa*=Math.PI/180,Zt.rotationDirection===0&&(aa=-aa),It===Qt&&(aa=-aa);var Rp=Math.cos(aa),io=Math.sin(aa);Ic=new Ka(Rp,io,-io,Rp,0,0)}else aa&&aa instanceof Ka&&(Ic=aa);It!==Qt||Ic||(Ic=Lf),(Ga=Zt.charSpace||qh)!==void 0&&(uA+=or(Wt(Ga))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(tc=Zt.horizontalScale)!==void 0&&(uA+=or(100*tc)+` Tz
`),Zt.lang;var hl=-1,bu=Zt.renderingMode!==void 0?Zt.renderingMode:Zt.stroke,rf=wl.internal.getCurrentPageInfo().pageContext;switch(bu){case 0:case!1:case"fill":hl=0;break;case 1:case!0:case"stroke":hl=1;break;case 2:case"fillThenStroke":hl=2;break;case 3:case"invisible":hl=3;break;case 4:case"fillAndAddForClipping":hl=4;break;case 5:case"strokeAndAddPathForClipping":hl=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":hl=6;break;case 7:case"addToPathForClipping":hl=7}var wm=rf.usedRenderingMode!==void 0?rf.usedRenderingMode:-1;hl!==-1?uA+=hl+` Tr
`:wm!==-1&&(uA+=`0 Tr
`),hl!==-1&&(rf.usedRenderingMode=hl),ha=Zt.align||"left";var hs,o0=Gn*Ku,Ul=wl.internal.pageSize.getWidth(),xm=ga[Ba];Ga=Zt.charSpace||qh,no=Zt.maxWidth||0,da=Object.assign({autoencode:!0,noBOM:!0},Zt.flags);var hh=[],s0=function(qs){return wl.getStringUnitWidth(qs,{font:xm,charSpace:Ga,fontSize:Gn,doKerning:!1})*Gn/qA};if(Object.prototype.toString.call(z)==="[object Array]"){var DA;In=Hu(z),ha!=="left"&&(hs=In.map(s0));var yu,l0=0;if(ha==="right"){He-=hs[0],z=[],Mc=In.length;for(var ph=0;ph<Mc;ph++)ph===0?(yu=yd(He),DA=wd(Bt)):(yu=Wt(l0-hs[ph]),DA=-o0),z.push([In[ph],yu,DA]),l0=hs[ph]}else if(ha==="center"){He-=hs[0]/2,z=[],Mc=In.length;for(var nf=0;nf<Mc;nf++)nf===0?(yu=yd(He),DA=wd(Bt)):(yu=Wt((l0-hs[nf])/2),DA=-o0),z.push([In[nf],yu,DA]),l0=hs[nf]}else if(ha==="left"){z=[],Mc=In.length;for(var af=0;af<Mc;af++)z.push(In[af])}else if(ha==="justify"&&xm.encoding==="Identity-H"){z=[],Mc=In.length,no=no!==0?no:Ul;for(var np=0,rc=0;rc<Mc;rc++)if(DA=rc===0?wd(Bt):-o0,yu=rc===0?yd(He):np,rc<Mc-1){var Cm=Wt((no-hs[rc])/(In[rc].split(" ").length-1)),$u=In[rc].split(" ");z.push([$u[0]+" ",yu,DA]),np=0;for(var Zu=1;Zu<$u.length;Zu++){var c0=(s0($u[Zu-1]+" "+$u[Zu])-s0($u[Zu]))*qA+Cm;Zu==$u.length-1?z.push([$u[Zu],c0,0]):z.push([$u[Zu]+" ",c0,0]),np-=c0}}else z.push([In[rc],yu,DA]);z.push(["",np,0])}else{if(ha!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(z=[],Mc=In.length,no=no!==0?no:Ul,rc=0;rc<Mc;rc++){DA=rc===0?wd(Bt):-o0,yu=rc===0?yd(He):0;var ip=In[rc].split(" ").length-1,Qp=ip>0?(no-hs[rc])/ip:0;rc<Mc-1?hh.push(or(Wt(Qp))):hh.push(0),z.push([In[rc],yu,DA])}}}(typeof Zt.R2L=="boolean"?Zt.R2L:Ja)===!0&&(z=ju(z,function(qs,pl,vc){return[qs.split("").reverse().join(""),pl,vc]})),un={text:z,x:He,y:Bt,options:Zt,mutex:{pdfEscape:YA,activeFontKey:Ba,fonts:ga,activeFontSize:Gn}},Hs.publish("postProcessText",un),z=un.text,Fc=un.mutex.isHex||!1;var ap=ga[Ba].encoding;ap!=="WinAnsiEncoding"&&ap!=="StandardEncoding"||(z=ju(z,function(qs,pl,vc){return[Ro(qs),pl,vc]})),In=Hu(z),z=[];for(var Pf,mh,ps,gh=Array.isArray(In[0])?1:0,vh="",A0=function(qs,pl,vc){var zc="";return vc instanceof Ka?(vc=typeof Zt.angle=="number"?Mf(vc,new Ka(1,0,0,1,qs,pl)):Mf(new Ka(1,0,0,1,qs,pl),vc),It===Qt&&(vc=Mf(new Ka(1,0,0,-1,0,0),vc)),zc=vc.join(" ")+` Tm
`):zc=or(qs)+" "+or(pl)+` Td
`,zc},Vu=0;Vu<In.length;Vu++){switch(vh="",gh){case 1:ps=(Fc?"<":"(")+In[Vu][0]+(Fc?">":")"),Pf=parseFloat(In[Vu][1]),mh=parseFloat(In[Vu][2]);break;case 0:ps=(Fc?"<":"(")+In[Vu]+(Fc?">":")"),Pf=yd(He),mh=wd(Bt)}hh!==void 0&&hh[Vu]!==void 0&&(vh=hh[Vu]+` Tw
`),Vu===0?z.push(vh+A0(Pf,mh,Ic)+ps):gh===0?z.push(vh+ps):gh===1&&z.push(vh+A0(Pf,mh,Ic)+ps)}z=gh===0?z.join(` Tj
T* `):z.join(` Tj
`),z+=` Tj
`;var of=`BT
/`;return of+=Ba+" "+Gn+` Tf
`,of+=or(Gn*Ku)+` TL
`,of+=Yh+`
`,of+=uA,of+=z,Ft(of+="ET"),Ze[Ba]=!0,wl};var rg=ae.__private__.clip=ae.clip=function(z){return Ft(z==="evenodd"?"W*":"W"),this};ae.clipEvenOdd=function(){return rg("evenodd")},ae.__private__.discardPath=ae.discardPath=function(){return Ft("n"),this};var bd=ae.__private__.isValidStyle=function(z){var He=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(z)!==-1&&(He=!0),He};ae.__private__.setDefaultPathOperation=ae.setDefaultPathOperation=function(z){return bd(z)&&(Z=z),this};var gm=ae.__private__.getStyle=ae.getStyle=function(z){var He=Z;switch(z){case"D":case"S":He="S";break;case"F":He="f";break;case"FD":case"DF":He="B";break;case"f":case"f*":case"B":case"B*":He=z}return He},vm=ae.close=function(){return Ft("h"),this};ae.stroke=function(){return Ft("S"),this},ae.fill=function(z){return cA("f",z),this},ae.fillEvenOdd=function(z){return cA("f*",z),this},ae.fillStroke=function(z){return cA("B",z),this},ae.fillStrokeEvenOdd=function(z){return cA("B*",z),this};var cA=function(z,He){(0,pe.Z)(He)==="object"?Tl(He,z):Ft(z)},Es=function(z){z===null||It===Qt&&z===void 0||(z=gm(z),Ft(z))};function AA(z,He,Bt,Zt,gr){var un=new zd(He||this.boundingBox,Bt||this.xStep,Zt||this.yStep,this.gState,gr||this.matrix);un.stream=this.stream;var In=z+"$$"+this.cloneIndex+++"$$";return pu(In,un),un}var Tl=function(z,He){var Bt=ns[z.key],Zt=ka[Bt];if(Zt instanceof jd)Ft("q"),Ft(J0(He)),Zt.gState&&ae.setGState(Zt.gState),Ft(z.matrix.toString()+" cm"),Ft("/"+Bt+" sh"),Ft("Q");else if(Zt instanceof zd){var gr=new Ka(1,0,0,-1,0,dh());z.matrix&&(gr=gr.multiply(z.matrix||Lf),Bt=AA.call(Zt,z.key,z.boundingBox,z.xStep,z.yStep,gr).id),Ft("q"),Ft("/Pattern cs"),Ft("/"+Bt+" scn"),Zt.gState&&ae.setGState(Zt.gState),Ft(He),Ft("Q")}},J0=function(z){switch(z){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Y0=ae.moveTo=function(z,He){return Ft(or(Wt(z))+" "+or(jt(He))+" m"),this},Jd=ae.lineTo=function(z,He){return Ft(or(Wt(z))+" "+or(jt(He))+" l"),this},Ah=ae.curveTo=function(z,He,Bt,Zt,gr,un){return Ft([or(Wt(z)),or(jt(He)),or(Wt(Bt)),or(jt(Zt)),or(Wt(gr)),or(jt(un)),"c"].join(" ")),this};ae.__private__.line=ae.line=function(z,He,Bt,Zt,gr){if(isNaN(z)||isNaN(He)||isNaN(Bt)||isNaN(Zt)||!bd(gr))throw new Error("Invalid arguments passed to jsPDF.line");return It===Gt?this.lines([[Bt-z,Zt-He]],z,He,[1,1],gr||"S"):this.lines([[Bt-z,Zt-He]],z,He,[1,1]).stroke()},ae.__private__.lines=ae.lines=function(z,He,Bt,Zt,gr,un){var In,aa,ha,Ga,no,da,tc,Ic,wl,fl,Fc,uA;if(typeof z=="number"&&(uA=Bt,Bt=He,He=z,z=uA),Zt=Zt||[1,1],un=un||!1,isNaN(He)||isNaN(Bt)||!Array.isArray(z)||!Array.isArray(Zt)||!bd(gr)||typeof un!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Y0(He,Bt),In=Zt[0],aa=Zt[1],Ga=z.length,fl=He,Fc=Bt,ha=0;ha<Ga;ha++)(no=z[ha]).length===2?(fl=no[0]*In+fl,Fc=no[1]*aa+Fc,Jd(fl,Fc)):(da=no[0]*In+fl,tc=no[1]*aa+Fc,Ic=no[2]*In+fl,wl=no[3]*aa+Fc,fl=no[4]*In+fl,Fc=no[5]*aa+Fc,Ah(da,tc,Ic,wl,fl,Fc));return un&&vm(),Es(gr),this},ae.path=function(z){for(var He=0;He<z.length;He++){var Bt=z[He],Zt=Bt.c;switch(Bt.op){case"m":Y0(Zt[0],Zt[1]);break;case"l":Jd(Zt[0],Zt[1]);break;case"c":Ah.apply(this,Zt);break;case"h":vm()}}return this},ae.__private__.rect=ae.rect=function(z,He,Bt,Zt,gr){if(isNaN(z)||isNaN(He)||isNaN(Bt)||isNaN(Zt)||!bd(gr))throw new Error("Invalid arguments passed to jsPDF.rect");return It===Gt&&(Zt=-Zt),Ft([or(Wt(z)),or(jt(He)),or(Wt(Bt)),or(Wt(Zt)),"re"].join(" ")),Es(gr),this},ae.__private__.triangle=ae.triangle=function(z,He,Bt,Zt,gr,un,In){if(isNaN(z)||isNaN(He)||isNaN(Bt)||isNaN(Zt)||isNaN(gr)||isNaN(un)||!bd(In))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Bt-z,Zt-He],[gr-Bt,un-Zt],[z-gr,He-un]],z,He,[1,1],In,!0),this},ae.__private__.roundedRect=ae.roundedRect=function(z,He,Bt,Zt,gr,un,In){if(isNaN(z)||isNaN(He)||isNaN(Bt)||isNaN(Zt)||isNaN(gr)||isNaN(un)||!bd(In))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var aa=4/3*(Math.SQRT2-1);return gr=Math.min(gr,.5*Bt),un=Math.min(un,.5*Zt),this.lines([[Bt-2*gr,0],[gr*aa,0,gr,un-un*aa,gr,un],[0,Zt-2*un],[0,un*aa,-gr*aa,un,-gr,un],[2*gr-Bt,0],[-gr*aa,0,-gr,-un*aa,-gr,-un],[0,2*un-Zt],[0,-un*aa,gr*aa,-un,gr,-un]],z+gr,He,[1,1],In,!0),this},ae.__private__.ellipse=ae.ellipse=function(z,He,Bt,Zt,gr){if(isNaN(z)||isNaN(He)||isNaN(Bt)||isNaN(Zt)||!bd(gr))throw new Error("Invalid arguments passed to jsPDF.ellipse");var un=4/3*(Math.SQRT2-1)*Bt,In=4/3*(Math.SQRT2-1)*Zt;return Y0(z+Bt,He),Ah(z+Bt,He-In,z+un,He-Zt,z,He-Zt),Ah(z-un,He-Zt,z-Bt,He-In,z-Bt,He),Ah(z-Bt,He+In,z-un,He+Zt,z,He+Zt),Ah(z+un,He+Zt,z+Bt,He+In,z+Bt,He),Es(gr),this},ae.__private__.circle=ae.circle=function(z,He,Bt,Zt){if(isNaN(z)||isNaN(He)||isNaN(Bt)||!bd(Zt))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(z,He,Bt,Bt,Zt)},ae.setFont=function(z,He,Bt){return Bt&&(He=Wr(He,Bt)),Ba=Dp(z,He,{disableWarning:!1}),this};var ng=ae.__private__.getFont=ae.getFont=function(){return ga[Dp.apply(ae,arguments)]};ae.__private__.getFontList=ae.getFontList=function(){var z,He,Bt={};for(z in xo)if(xo.hasOwnProperty(z))for(He in Bt[z]=[],xo[z])xo[z].hasOwnProperty(He)&&Bt[z].push(He);return Bt},ae.addFont=function(z,He,Bt,Zt,gr){var un=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&un.indexOf(arguments[3])!==-1?gr=arguments[3]:arguments[3]&&un.indexOf(arguments[3])==-1&&(Bt=Wr(Bt,Zt)),mm.call(this,z,He,Bt,gr=gr||"Identity-H")};var Jh,q0=n.lineWidth||.200025,ho=ae.__private__.getLineWidth=ae.getLineWidth=function(){return q0},ig=ae.__private__.setLineWidth=ae.setLineWidth=function(z){return q0=z,Ft(or(Wt(z))+" w"),this};ae.__private__.setLineDash=ua.API.setLineDash=ua.API.setLineDashPattern=function(z,He){if(z=z||[],He=He||0,isNaN(He)||!Array.isArray(z))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return z=z.map(function(Bt){return or(Wt(Bt))}).join(" "),He=or(Wt(He)),Ft("["+z+"] "+He+" d"),this};var ag=ae.__private__.getLineHeight=ae.getLineHeight=function(){return Gn*Jh};ae.__private__.getLineHeight=ae.getLineHeight=function(){return Gn*Jh};var og=ae.__private__.setLineHeightFactor=ae.setLineHeightFactor=function(z){return typeof(z=z||1.15)=="number"&&(Jh=z),this},sg=ae.__private__.getLineHeightFactor=ae.getLineHeightFactor=function(){return Jh};og(n.lineHeight);var yd=ae.__private__.getHorizontalCoordinate=function(z){return Wt(z)},wd=ae.__private__.getVerticalCoordinate=function(z){return It===Qt?z:Ya[_t].mediaBox.topRightY-Ya[_t].mediaBox.bottomLeftY-Wt(z)},lg=ae.__private__.getHorizontalCoordinateString=ae.getHorizontalCoordinateString=function(z){return or(yd(z))},Op=ae.__private__.getVerticalCoordinateString=ae.getVerticalCoordinateString=function(z){return or(wd(z))},ep=n.strokeColor||"0 G";ae.__private__.getStrokeColor=ae.getDrawColor=function(){return gu(ep)},ae.__private__.setStrokeColor=ae.setDrawColor=function(z,He,Bt,Zt){return ep=lA({ch1:z,ch2:He,ch3:Bt,ch4:Zt,pdfColorType:"draw",precision:2}),Ft(ep),this};var uh=n.fillColor||"0 g";ae.__private__.getFillColor=ae.getFillColor=function(){return gu(uh)},ae.__private__.setFillColor=ae.setFillColor=function(z,He,Bt,Zt){return uh=lA({ch1:z,ch2:He,ch3:Bt,ch4:Zt,pdfColorType:"fill",precision:2}),Ft(uh),this};var Yh=n.textColor||"0 g",tp=ae.__private__.getTextColor=ae.getTextColor=function(){return gu(Yh)};ae.__private__.setTextColor=ae.setTextColor=function(z,He,Bt,Zt){return Yh=lA({ch1:z,ch2:He,ch3:Bt,ch4:Zt,pdfColorType:"text",precision:3}),this};var qh=n.charSpace,bm=ae.__private__.getCharSpace=ae.getCharSpace=function(){return parseFloat(qh||0)};ae.__private__.setCharSpace=ae.setCharSpace=function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return qh=z,this};var e0=0;ae.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},ae.__private__.setLineCap=ae.setLineCap=function(z){var He=ae.CapJoinStyles[z];if(He===void 0)throw new Error("Line cap style of '"+z+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return e0=He,Ft(He+" J"),this};var Pp=0;ae.__private__.setLineJoin=ae.setLineJoin=function(z){var He=ae.CapJoinStyles[z];if(He===void 0)throw new Error("Line join style of '"+z+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Pp=He,Ft(He+" j"),this},ae.__private__.setLineMiterLimit=ae.__private__.setMiterLimit=ae.setLineMiterLimit=ae.setMiterLimit=function(z){if(z=z||0,isNaN(z))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Ft(or(Wt(z))+" M"),this},ae.GState=Rh,ae.setGState=function(z){(z=typeof z=="string"?Co[ql[z]]:t0(null,z)).equals(Pl)||(Ft("/"+z.id+" gs"),Pl=z)};var t0=function(z,He){if(!z||!ql[z]){var Bt=!1;for(var Zt in Co)if(Co.hasOwnProperty(Zt)&&Co[Zt].equals(He)){Bt=!0;break}if(Bt)He=Co[Zt];else{var gr="GS"+(Object.keys(Co).length+1).toString(10);Co[gr]=He,He.id=gr}return z&&(ql[z]=He.id),Hs.publish("addGState",He),He}};ae.addGState=function(z,He){return t0(z,He),this},ae.saveGraphicsState=function(){return Ft("q"),ul.push({key:Ba,size:Gn,color:Yh}),this},ae.restoreGraphicsState=function(){Ft("Q");var z=ul.pop();return Ba=z.key,Gn=z.size,Yh=z.color,Pl=null,this},ae.setCurrentTransformationMatrix=function(z){return Ft(z.toString()+" cm"),this},ae.comment=function(z){return Ft("#"+z),this};var r0=function(z,He){var Bt=z||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Bt},set:function(un){isNaN(un)||(Bt=parseFloat(un))}});var Zt=He||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Zt},set:function(un){isNaN(un)||(Zt=parseFloat(un))}});var gr="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return gr},set:function(un){gr=un.toString()}}),this},Yd=function(z,He,Bt,Zt){r0.call(this,z,He),this.type="rect";var gr=Bt||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return gr},set:function(In){isNaN(In)||(gr=parseFloat(In))}});var un=Zt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return un},set:function(In){isNaN(In)||(un=parseFloat(In))}}),this},RA=function(){this.page=is,this.currentPage=_t,this.pages=Qn.slice(0),this.pagesContext=Ya.slice(0),this.x=Sa,this.y=yl,this.matrix=Ds,this.width=Tp(_t),this.height=qd(_t),this.outputDestination=Fi,this.id="",this.objectNumber=-1};RA.prototype.restore=function(){is=this.page,_t=this.currentPage,Ya=this.pagesContext,Qn=this.pages,Sa=this.x,yl=this.y,Ds=this.matrix,rp(_t,this.width),ef(_t,this.height),Fi=this.outputDestination};var n0=function(z,He,Bt,Zt,gr){Vd.push(new RA),is=_t=0,Qn=[],Sa=z,yl=He,Ds=gr,Gh([Bt,Zt])};for(var Df in ae.beginFormObject=function(z,He,Bt,Zt,gr){return n0(z,He,Bt,Zt,gr),this},ae.endFormObject=function(z){return function(He){if(Ff[He])Vd.pop().restore();else{var Bt=new RA,Zt="Xo"+(Object.keys(jc).length+1).toString(10);Bt.id=Zt,Ff[He]=Zt,jc[Zt]=Bt,Hs.publish("addFormObject",Bt),Vd.pop().restore()}}(z),this},ae.doFormObject=function(z,He){var Bt=jc[Ff[z]];return Ft("q"),Ft(He.toString()+" cm"),Ft("/"+Bt.id+" Do"),Ft("Q"),this},ae.getFormObject=function(z){var He=jc[Ff[z]];return{x:He.x,y:He.y,width:He.width,height:He.height,matrix:He.matrix}},ae.save=function(z,He){return z=z||"generated.pdf",(He=He||{}).returnPromise=He.returnPromise||!1,He.returnPromise===!1?(fd(ch(kf()),z),typeof fd.unload=="function"&&Za.setTimeout&&setTimeout(fd.unload,911),this):new Promise(function(Bt,Zt){try{var gr=fd(ch(kf()),z);typeof fd.unload=="function"&&Za.setTimeout&&setTimeout(fd.unload,911),Bt(gr)}catch(un){Zt(un.message)}})},ua.API)ua.API.hasOwnProperty(Df)&&(Df==="events"&&ua.API.events.length?function(z,He){var Bt,Zt,gr;for(gr=He.length-1;gr!==-1;gr--)Bt=He[gr][0],Zt=He[gr][1],z.subscribe.apply(z,[Bt].concat(typeof Zt=="function"?[Zt]:Zt))}(Hs,ua.API.events):ae[Df]=ua.API[Df]);function Tp(z){return Ya[z].mediaBox.topRightX-Ya[z].mediaBox.bottomLeftX}function rp(z,He){Ya[z].mediaBox.topRightX=He+Ya[z].mediaBox.bottomLeftX}function qd(z){return Ya[z].mediaBox.topRightY-Ya[z].mediaBox.bottomLeftY}function ef(z,He){Ya[z].mediaBox.topRightY=He+Ya[z].mediaBox.bottomLeftY}var ym=ae.getPageWidth=function(z){return Tp(z=z||_t)/ro},Nf=ae.setPageWidth=function(z,He){rp(z,He*ro)},dh=ae.getPageHeight=function(z){return qd(z=z||_t)/ro},Up=ae.setPageHeight=function(z,He){ef(z,He*ro)};return ae.internal={pdfEscape:YA,getStyle:gm,getFont:ng,getFontSize:ui,getCharSpace:bm,getTextColor:tp,getLineHeight:ag,getLineHeightFactor:sg,getLineWidth:ho,write:Wo,getHorizontalCoordinate:yd,getVerticalCoordinate:wd,getCoordinateString:lg,getVerticalCoordinateString:Op,collections:{},newObject:lc,newAdditionalObject:Wd,newObjectDeferred:Ss,newObjectDeferredBegin:dl,getFilters:vu,putStream:Ru,events:Hs,scaleFactor:ro,pageSize:{getWidth:function(){return ym(_t)},setWidth:function(z){Nf(_t,z)},getHeight:function(){return dh(_t)},setHeight:function(z){Up(_t,z)}},encryptionOptions:oe,encryption:gc,getEncryptor:function(z){return oe!==null?gc.encryptor(z,0):function(He){return He}},output:gd,getNumberOfPages:V0,pages:Qn,out:Ft,f2:it,f3:wt,getPageInfo:G0,getPageInfoByObjId:tg,getCurrentPageInfo:X0,getPDFVersion:ut,Point:r0,Rectangle:Yd,Matrix:Ka,hasHotfix:vd},Object.defineProperty(ae.internal.pageSize,"width",{get:function(){return ym(_t)},set:function(z){Nf(_t,z)},enumerable:!0,configurable:!0}),Object.defineProperty(ae.internal.pageSize,"height",{get:function(){return dh(_t)},set:function(z){Up(_t,z)},enumerable:!0,configurable:!0}),function(z){for(var He=0,Bt=Ta.length;He<Bt;He++){var Zt=mm.call(this,z[He][0],z[He][1],z[He][2],Ta[He][3],!0);Re===!1&&(Ze[Zt]=!0);var gr=z[He][0].split("-");pm({id:Zt,fontName:gr[0],fontStyle:gr[1]||""})}Hs.publish("addFonts",{fonts:ga,dictionary:xo})}.call(ae,Ta),Ba="F1",Lp(A,a),Hs.publish("initialized"),ae}Ou.prototype.lsbFirstWord=function(n){return String.fromCharCode(255&n,n>>8&255,n>>16&255,n>>24&255)},Ou.prototype.toHexString=function(n){return n.split("").map(function(o){return("0"+(255&o.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Ou.prototype.hexToBytes=function(n){for(var o=[],a=0;a<n.length;a+=2)o.push(String.fromCharCode(parseInt(n.substr(a,2),16)));return o.join("")},Ou.prototype.processOwnerPassword=function(n,o){return mc(_f(o).substr(0,5),n)},Ou.prototype.encryptor=function(n,o){var a=_f(this.encryptionKey+String.fromCharCode(255&n,n>>8&255,n>>16&255,255&o,o>>8&255)).substr(0,10);return function(l){return mc(a,l)}},Rh.prototype.equals=function(n){var o,a="id,objectNumber,equals";if(!n||(0,pe.Z)(n)!==(0,pe.Z)(this))return!1;var l=0;for(o in this)if(!(a.indexOf(o)>=0)){if(this.hasOwnProperty(o)&&!n.hasOwnProperty(o)||this[o]!==n[o])return!1;l++}for(o in n)n.hasOwnProperty(o)&&a.indexOf(o)<0&&l--;return l===0},ua.API={events:[]},ua.version="3.0.3";var sl=ua.API,If=1,hd=function(n){return n.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},GA=function(n){return n.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},La=function(n){return n.toFixed(2)},$d=function(n){return n.toFixed(5)};sl.__acroform__={};var aA=function(n,o){n.prototype=Object.create(o.prototype),n.prototype.constructor=n},j0=function(n){return n*If},cu=function(n){var o=new qr,a=ei.internal.getHeight(n)||0,l=ei.internal.getWidth(n)||0;return o.BBox=[0,0,Number(La(l)),Number(La(a))],o},Zm=sl.__acroform__.setBit=function(n,o){if(n=n||0,o=o||0,isNaN(n)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return n|1<<o},Vm=sl.__acroform__.clearBit=function(n,o){if(n=n||0,o=o||0,isNaN(n)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return n&~(1<<o)},Wm=sl.__acroform__.getBit=function(n,o){if(isNaN(n)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return n&1<<o?1:0},Yl=sl.__acroform__.getBitForPdf=function(n,o){if(isNaN(n)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Wm(n,o-1)},b=sl.__acroform__.setBitForPdf=function(n,o){if(isNaN(n)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Zm(n,o-1)},d=sl.__acroform__.clearBitForPdf=function(n,o){if(isNaN(n)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Vm(n,o-1)},w=sl.__acroform__.calculateCoordinates=function(n,o){var a=o.internal.getHorizontalCoordinate,l=o.internal.getVerticalCoordinate,A=n[0],m=n[1],N=n[2],E=n[3],U={};return U.lowerLeft_X=a(A)||0,U.lowerLeft_Y=l(m+E)||0,U.upperRight_X=a(A+N)||0,U.upperRight_Y=l(m)||0,[Number(La(U.lowerLeft_X)),Number(La(U.lowerLeft_Y)),Number(La(U.upperRight_X)),Number(La(U.upperRight_Y))]},y=function(n){if(n.appearanceStreamContent)return n.appearanceStreamContent;if(n.V||n.DV){var o=[],a=n._V||n.DV,l=re(n,a),A=n.scope.internal.getFont(n.fontName,n.fontStyle).id;o.push("/Tx BMC"),o.push("q"),o.push("BT"),o.push(n.scope.__private__.encodeColorString(n.color)),o.push("/"+A+" "+La(l.fontSize)+" Tf"),o.push("1 0 0 1 0 0 Tm"),o.push(l.text),o.push("ET"),o.push("Q"),o.push("EMC");var m=cu(n);return m.scope=n.scope,m.stream=o.join(`
`),m}},re=function(n,o){var a=n.fontSize===0?n.maxFontSize:n.fontSize,l={text:"",fontSize:""},A=(o=(o=o.substr(0,1)=="("?o.substr(1):o).substr(o.length-1)==")"?o.substr(0,o.length-1):o).split(" ");A=n.multiline?A.map(function(it){return it.split(`
`)}):A.map(function(it){return[it]});var m=a,N=ei.internal.getHeight(n)||0;N=N<0?-N:N;var E=ei.internal.getWidth(n)||0;E=E<0?-E:E;var U=function(it,wt,Wt){if(it+1<A.length){var jt=wt+" "+A[it+1][0];return Ee(jt,n,Wt).width<=E-4}return!1};m++;e:for(;m>0;){o="",m--;var Z,oe,Re=Ee("3",n,m).height,Ze=n.multiline?N-m:(N-Re)/2,ae=Ze+=2,mt=0,ut=0,yt=0;if(m<=0){o=`(...) Tj
`,o+="% Width of Text: "+Ee(o,n,m=12).width+", FieldWidth:"+E+`
`;break}for(var st="",Gt=0,Qt=0;Qt<A.length;Qt++)if(A.hasOwnProperty(Qt)){var It=!1;if(A[Qt].length!==1&&yt!==A[Qt].length-1){if((Re+2)*(Gt+2)+2>N)continue e;st+=A[Qt][yt],It=!0,ut=Qt,Qt--}else{st=(st+=A[Qt][yt]+" ").substr(st.length-1)==" "?st.substr(0,st.length-1):st;var Ir=parseInt(Qt),rn=U(Ir,st,m),Wr=Qt>=A.length-1;if(rn&&!Wr){st+=" ",yt=0;continue}if(rn||Wr){if(Wr)ut=Ir;else if(n.multiline&&(Re+2)*(Gt+2)+2>N)continue e}else{if(!n.multiline||(Re+2)*(Gt+2)+2>N)continue e;ut=Ir}}for(var or="",Lt=mt;Lt<=ut;Lt++){var xr=A[Lt];if(n.multiline){if(Lt===ut){or+=xr[yt]+" ",yt=(yt+1)%xr.length;continue}if(Lt===mt){or+=xr[xr.length-1]+" ";continue}}or+=xr[0]+" "}switch(or=or.substr(or.length-1)==" "?or.substr(0,or.length-1):or,oe=Ee(or,n,m).width,n.textAlign){case"right":Z=E-oe-2;break;case"center":Z=(E-oe)/2;break;default:Z=2}o+=La(Z)+" "+La(ae)+` Td
`,o+="("+hd(or)+`) Tj
`,o+=-La(Z)+` 0 Td
`,ae=-(m+2),oe=0,mt=It?ut:ut+1,Gt++,st=""}break}return l.text=o,l.fontSize=m,l},Ee=function(n,o,a){var l=o.scope.internal.getFont(o.fontName,o.fontStyle),A=o.scope.getStringUnitWidth(n,{font:l,fontSize:parseFloat(a),charSpace:0})*parseFloat(a);return{height:o.scope.getStringUnitWidth("3",{font:l,fontSize:parseFloat(a),charSpace:0})*parseFloat(a)*1.5,width:A}},We={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ht=function(n,o){var a={type:"reference",object:n};o.internal.getPageInfo(n.page).pageContext.annotations.find(function(l){return l.type===a.type&&l.object===a.object})===void 0&&o.internal.getPageInfo(n.page).pageContext.annotations.push(a)},pt=function(n,o){if(o.scope=n,n.internal!==void 0&&(n.internal.acroformPlugin===void 0||n.internal.acroformPlugin.isInitialized===!1)){if(Rn.FieldNum=0,n.internal.acroformPlugin=JSON.parse(JSON.stringify(We)),n.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");If=n.internal.scaleFactor,n.internal.acroformPlugin.acroFormDictionaryRoot=new Ri,n.internal.acroformPlugin.acroFormDictionaryRoot.scope=n,n.internal.acroformPlugin.acroFormDictionaryRoot._eventID=n.internal.events.subscribe("postPutResources",function(){(function(a){a.internal.events.unsubscribe(a.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete a.internal.acroformPlugin.acroFormDictionaryRoot._eventID,a.internal.acroformPlugin.printedOut=!0})(n)}),n.internal.events.subscribe("buildDocument",function(){(function(a){a.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var l=a.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var A in l)if(l.hasOwnProperty(A)){var m=l[A];m.objId=void 0,m.hasAnnotation&&ht(m,a)}})(n)}),n.internal.events.subscribe("putCatalog",function(){(function(a){if(a.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");a.internal.write("/AcroForm "+a.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(n)}),n.internal.events.subscribe("postPutPages",function(a){(function(l,A){var m=!l;for(var N in l||(A.internal.newObjectDeferredBegin(A.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),A.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),l=l||A.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(l.hasOwnProperty(N)){var E=l[N],U=[],Z=E.Rect;if(E.Rect&&(E.Rect=w(E.Rect,A)),A.internal.newObjectDeferredBegin(E.objId,!0),E.DA=ei.createDefaultAppearanceStream(E),(0,pe.Z)(E)==="object"&&typeof E.getKeyValueListForStream=="function"&&(U=E.getKeyValueListForStream()),E.Rect=Z,E.hasAppearanceStream&&!E.appearanceStreamContent){var oe=y(E);U.push({key:"AP",value:"<</N "+oe+">>"}),A.internal.acroformPlugin.xForms.push(oe)}if(E.appearanceStreamContent){var Re="";for(var Ze in E.appearanceStreamContent)if(E.appearanceStreamContent.hasOwnProperty(Ze)){var ae=E.appearanceStreamContent[Ze];if(Re+="/"+Ze+" ",Re+="<<",Object.keys(ae).length>=1||Array.isArray(ae)){for(var N in ae)if(ae.hasOwnProperty(N)){var mt=ae[N];typeof mt=="function"&&(mt=mt.call(A,E)),Re+="/"+N+" "+mt+" ",A.internal.acroformPlugin.xForms.indexOf(mt)>=0||A.internal.acroformPlugin.xForms.push(mt)}}else typeof(mt=ae)=="function"&&(mt=mt.call(A,E)),Re+="/"+N+" "+mt,A.internal.acroformPlugin.xForms.indexOf(mt)>=0||A.internal.acroformPlugin.xForms.push(mt);Re+=">>"}U.push({key:"AP",value:`<<
`+Re+">>"})}A.internal.putStream({additionalKeyValues:U,objectId:E.objId}),A.internal.out("endobj")}m&&function(ut,yt){for(var st in ut)if(ut.hasOwnProperty(st)){var Gt=st,Qt=ut[st];yt.internal.newObjectDeferredBegin(Qt.objId,!0),(0,pe.Z)(Qt)==="object"&&typeof Qt.putStream=="function"&&Qt.putStream(),delete ut[Gt]}}(A.internal.acroformPlugin.xForms,A)})(a,n)}),n.internal.acroformPlugin.isInitialized=!0}},tr=sl.__acroform__.arrayToPdfArray=function(n,o,a){var l=function(N){return N};if(Array.isArray(n)){for(var A="[",m=0;m<n.length;m++)switch(m!==0&&(A+=" "),(0,pe.Z)(n[m])){case"boolean":case"number":case"object":A+=n[m].toString();break;case"string":n[m].substr(0,1)!=="/"?(o!==void 0&&a&&(l=a.internal.getEncryptor(o)),A+="("+hd(l(n[m].toString()))+")"):A+=n[m].toString()}return A+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},cr=function(n,o,a){var l=function(A){return A};return o!==void 0&&a&&(l=a.internal.getEncryptor(o)),(n=n||"").toString(),"("+hd(l(n))+")"},hr=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(n){this._objId=n}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};hr.prototype.toString=function(){return this.objId+" 0 R"},hr.prototype.putStream=function(){var n=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:n,objectId:this.objId}),this.scope.internal.out("endobj")},hr.prototype.getKeyValueListForStream=function(){var n=[],o=Object.getOwnPropertyNames(this).filter(function(m){return m!="content"&&m!="appearanceStreamContent"&&m!="scope"&&m!="objId"&&m.substring(0,1)!="_"});for(var a in o)if(Object.getOwnPropertyDescriptor(this,o[a]).configurable===!1){var l=o[a],A=this[l];A&&(Array.isArray(A)?n.push({key:l,value:tr(A,this.objId,this.scope)}):A instanceof hr?(A.scope=this.scope,n.push({key:l,value:A.objId+" 0 R"})):typeof A!="function"&&n.push({key:l,value:A}))}return n};var qr=function(){hr.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 n,o=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return o},set:function(a){o=a}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(a){n=a.trim()},get:function(){return n||null}})};aA(qr,hr);var Ri=function(){hr.call(this);var n,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(n){var a=function(l){return l};return this.scope&&(a=this.scope.internal.getEncryptor(this.objId)),"("+hd(a(n))+")"}},set:function(a){n=a}})};aA(Ri,hr);var Rn=function n(){hr.call(this);var o=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return o},set:function(st){if(isNaN(st))throw new Error('Invalid value "'+st+'" for attribute F supplied.');o=st}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Yl(o,3)},set:function(st){st?this.F=b(o,3):this.F=d(o,3)}});var a=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return a},set:function(st){if(isNaN(st))throw new Error('Invalid value "'+st+'" for attribute Ff supplied.');a=st}});var l=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(l.length!==0)return l},set:function(st){l=st!==void 0?st:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!l||isNaN(l[0])?0:l[0]},set:function(st){l[0]=st}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!l||isNaN(l[1])?0:l[1]},set:function(st){l[1]=st}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!l||isNaN(l[2])?0:l[2]},set:function(st){l[2]=st}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!l||isNaN(l[3])?0:l[3]},set:function(st){l[3]=st}});var A="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return A},set:function(st){switch(st){case"/Btn":case"/Tx":case"/Ch":case"/Sig":A=st;break;default:throw new Error('Invalid value "'+st+'" for attribute FT supplied.')}}});var m=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!m||m.length<1){if(this instanceof Di)return;m="FieldObject"+n.FieldNum++}var st=function(Gt){return Gt};return this.scope&&(st=this.scope.internal.getEncryptor(this.objId)),"("+hd(st(m))+")"},set:function(st){m=st.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return m},set:function(st){m=st}});var N="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return N},set:function(st){N=st}});var E="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return E},set:function(st){E=st}});var U=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return U},set:function(st){U=st}});var Z=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return Z===void 0?50/If:Z},set:function(st){Z=st}});var oe="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return oe},set:function(st){oe=st}});var Re="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Re||this instanceof Di||this instanceof Xa))return cr(Re,this.objId,this.scope)},set:function(st){st=st.toString(),Re=st}});var Ze=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Ze)return this instanceof Oa==0?cr(Ze,this.objId,this.scope):Ze},set:function(st){st=st.toString(),Ze=this instanceof Oa==0?st.substr(0,1)==="("?GA(st.substr(1,st.length-2)):GA(st):st}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Oa==1?GA(Ze.substr(1,Ze.length-1)):Ze},set:function(st){st=st.toString(),Ze=this instanceof Oa==1?"/"+st:st}});var ae=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(ae)return ae},set:function(st){this.V=st}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(ae)return this instanceof Oa==0?cr(ae,this.objId,this.scope):ae},set:function(st){st=st.toString(),ae=this instanceof Oa==0?st.substr(0,1)==="("?GA(st.substr(1,st.length-2)):GA(st):st}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Oa==1?GA(ae.substr(1,ae.length-1)):ae},set:function(st){st=st.toString(),ae=this instanceof Oa==1?"/"+st:st}}),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 mt,ut=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return ut},set:function(st){st=!!st,ut=st}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(mt)return mt},set:function(st){mt=st}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,1)},set:function(st){st?this.Ff=b(this.Ff,1):this.Ff=d(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,2)},set:function(st){st?this.Ff=b(this.Ff,2):this.Ff=d(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,3)},set:function(st){st?this.Ff=b(this.Ff,3):this.Ff=d(this.Ff,3)}});var yt=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(yt!==null)return yt},set:function(st){if([0,1,2].indexOf(st)===-1)throw new Error('Invalid value "'+st+'" for attribute Q supplied.');yt=st}}),Object.defineProperty(this,"textAlign",{get:function(){var st;switch(yt){case 0:default:st="left";break;case 1:st="center";break;case 2:st="right"}return st},configurable:!0,enumerable:!0,set:function(st){switch(st){case"right":case 2:yt=2;break;case"center":case 1:yt=1;break;default:yt=0}}})};aA(Rn,hr);var mi=function(){Rn.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var n=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return n},set:function(a){n=a}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return n},set:function(a){n=a}});var o=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return tr(o,this.objId,this.scope)},set:function(a){var l,A;A=[],typeof(l=a)=="string"&&(A=function(m,N,E){E||(E=1);for(var U,Z=[];U=N.exec(m);)Z.push(U[E]);return Z}(l,/\((.*?)\)/g)),o=A}}),this.getOptions=function(){return o},this.setOptions=function(a){o=a,this.sort&&o.sort()},this.addOption=function(a){a=(a=a||"").toString(),o.push(a),this.sort&&o.sort()},this.removeOption=function(a,l){for(l=l||!1,a=(a=a||"").toString();o.indexOf(a)!==-1&&(o.splice(o.indexOf(a),1),l!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,18)},set:function(a){a?this.Ff=b(this.Ff,18):this.Ff=d(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,19)},set:function(a){this.combo===!0&&(a?this.Ff=b(this.Ff,19):this.Ff=d(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,20)},set:function(a){a?(this.Ff=b(this.Ff,20),o.sort()):this.Ff=d(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,22)},set:function(a){a?this.Ff=b(this.Ff,22):this.Ff=d(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,23)},set:function(a){a?this.Ff=b(this.Ff,23):this.Ff=d(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,27)},set:function(a){a?this.Ff=b(this.Ff,27):this.Ff=d(this.Ff,27)}}),this.hasAppearanceStream=!1};aA(mi,Rn);var Va=function(){mi.call(this),this.fontName="helvetica",this.combo=!1};aA(Va,mi);var ea=function(){Va.call(this),this.combo=!0};aA(ea,Va);var Yi=function(){ea.call(this),this.edit=!0};aA(Yi,ea);var Oa=function(){Rn.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,15)},set:function(a){a?this.Ff=b(this.Ff,15):this.Ff=d(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,16)},set:function(a){a?this.Ff=b(this.Ff,16):this.Ff=d(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,17)},set:function(a){a?this.Ff=b(this.Ff,17):this.Ff=d(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,26)},set:function(a){a?this.Ff=b(this.Ff,26):this.Ff=d(this.Ff,26)}});var n,o={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var a=function(m){return m};if(this.scope&&(a=this.scope.internal.getEncryptor(this.objId)),Object.keys(o).length!==0){var l,A=[];for(l in A.push("<<"),o)A.push("/"+l+" ("+hd(a(o[l]))+")");return A.push(">>"),A.join(`
`)}},set:function(a){(0,pe.Z)(a)==="object"&&(o=a)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return o.CA||""},set:function(a){typeof a=="string"&&(o.CA=a)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(a){n=a}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(a){n="/"+a}})};aA(Oa,Rn);var oo=function(){Oa.call(this),this.pushButton=!0};aA(oo,Oa);var Ia=function(){Oa.call(this),this.radio=!0,this.pushButton=!1;var n=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return n},set:function(o){n=o!==void 0?o:[]}})};aA(Ia,Oa);var Di=function(){var n,o;Rn.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return n},set:function(A){n=A}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return o},set:function(A){o=A}});var a,l={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var A=function(E){return E};this.scope&&(A=this.scope.internal.getEncryptor(this.objId));var m,N=[];for(m in N.push("<<"),l)N.push("/"+m+" ("+hd(A(l[m]))+")");return N.push(">>"),N.join(`
`)},set:function(A){(0,pe.Z)(A)==="object"&&(l=A)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return l.CA||""},set:function(A){typeof A=="string"&&(l.CA=A)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return a},set:function(A){a=A}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return a.substr(1,a.length-1)},set:function(A){a="/"+A}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ei.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};aA(Di,Rn),Ia.prototype.setAppearance=function(n){if(!("createAppearanceStream"in n)||!("getCA"in n))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var o in this.Kids)if(this.Kids.hasOwnProperty(o)){var a=this.Kids[o];a.appearanceStreamContent=n.createAppearanceStream(a.optionName),a.caption=n.getCA()}},Ia.prototype.createOption=function(n){var o=new Di;return o.Parent=this,o.optionName=n,this.Kids.push(o),Ec.call(this.scope,o),o};var ko=function(){Oa.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ei.CheckBox.createAppearanceStream()};aA(ko,Oa);var Xa=function(){Rn.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,13)},set:function(o){o?this.Ff=b(this.Ff,13):this.Ff=d(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,21)},set:function(o){o?this.Ff=b(this.Ff,21):this.Ff=d(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,23)},set:function(o){o?this.Ff=b(this.Ff,23):this.Ff=d(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,24)},set:function(o){o?this.Ff=b(this.Ff,24):this.Ff=d(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,25)},set:function(o){o?this.Ff=b(this.Ff,25):this.Ff=d(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,26)},set:function(o){o?this.Ff=b(this.Ff,26):this.Ff=d(this.Ff,26)}});var n=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return n},set:function(o){n=o}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return n},set:function(o){Number.isInteger(o)&&(n=o)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};aA(Xa,Rn);var Pa=function(){Xa.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,14)},set:function(n){n?this.Ff=b(this.Ff,14):this.Ff=d(this.Ff,14)}}),this.password=!0};aA(Pa,Xa);var ei={CheckBox:{createAppearanceStream:function(){return{N:{On:ei.CheckBox.YesNormal},D:{On:ei.CheckBox.YesPushDown,Off:ei.CheckBox.OffPushDown}}},YesPushDown:function(n){var o=cu(n);o.scope=n.scope;var a=[],l=n.scope.internal.getFont(n.fontName,n.fontStyle).id,A=n.scope.__private__.encodeColorString(n.color),m=re(n,n.caption);return a.push("0.749023 g"),a.push("0 0 "+La(ei.internal.getWidth(n))+" "+La(ei.internal.getHeight(n))+" re"),a.push("f"),a.push("BMC"),a.push("q"),a.push("0 0 1 rg"),a.push("/"+l+" "+La(m.fontSize)+" Tf "+A),a.push("BT"),a.push(m.text),a.push("ET"),a.push("Q"),a.push("EMC"),o.stream=a.join(`
`),o},YesNormal:function(n){var o=cu(n);o.scope=n.scope;var a=n.scope.internal.getFont(n.fontName,n.fontStyle).id,l=n.scope.__private__.encodeColorString(n.color),A=[],m=ei.internal.getHeight(n),N=ei.internal.getWidth(n),E=re(n,n.caption);return A.push("1 g"),A.push("0 0 "+La(N)+" "+La(m)+" re"),A.push("f"),A.push("q"),A.push("0 0 1 rg"),A.push("0 0 "+La(N-1)+" "+La(m-1)+" re"),A.push("W"),A.push("n"),A.push("0 g"),A.push("BT"),A.push("/"+a+" "+La(E.fontSize)+" Tf "+l),A.push(E.text),A.push("ET"),A.push("Q"),o.stream=A.join(`
`),o},OffPushDown:function(n){var o=cu(n);o.scope=n.scope;var a=[];return a.push("0.749023 g"),a.push("0 0 "+La(ei.internal.getWidth(n))+" "+La(ei.internal.getHeight(n))+" re"),a.push("f"),o.stream=a.join(`
`),o}},RadioButton:{Circle:{createAppearanceStream:function(n){var o={D:{Off:ei.RadioButton.Circle.OffPushDown},N:{}};return o.N[n]=ei.RadioButton.Circle.YesNormal,o.D[n]=ei.RadioButton.Circle.YesPushDown,o},getCA:function(){return"l"},YesNormal:function(n){var o=cu(n);o.scope=n.scope;var a=[],l=ei.internal.getWidth(n)<=ei.internal.getHeight(n)?ei.internal.getWidth(n)/4:ei.internal.getHeight(n)/4;l=Number((.9*l).toFixed(5));var A=ei.internal.Bezier_C,m=Number((l*A).toFixed(5));return a.push("q"),a.push("1 0 0 1 "+$d(ei.internal.getWidth(n)/2)+" "+$d(ei.internal.getHeight(n)/2)+" cm"),a.push(l+" 0 m"),a.push(l+" "+m+" "+m+" "+l+" 0 "+l+" c"),a.push("-"+m+" "+l+" -"+l+" "+m+" -"+l+" 0 c"),a.push("-"+l+" -"+m+" -"+m+" -"+l+" 0 -"+l+" c"),a.push(m+" -"+l+" "+l+" -"+m+" "+l+" 0 c"),a.push("f"),a.push("Q"),o.stream=a.join(`
`),o},YesPushDown:function(n){var o=cu(n);o.scope=n.scope;var a=[],l=ei.internal.getWidth(n)<=ei.internal.getHeight(n)?ei.internal.getWidth(n)/4:ei.internal.getHeight(n)/4;l=Number((.9*l).toFixed(5));var A=Number((2*l).toFixed(5)),m=Number((A*ei.internal.Bezier_C).toFixed(5)),N=Number((l*ei.internal.Bezier_C).toFixed(5));return a.push("0.749023 g"),a.push("q"),a.push("1 0 0 1 "+$d(ei.internal.getWidth(n)/2)+" "+$d(ei.internal.getHeight(n)/2)+" cm"),a.push(A+" 0 m"),a.push(A+" "+m+" "+m+" "+A+" 0 "+A+" c"),a.push("-"+m+" "+A+" -"+A+" "+m+" -"+A+" 0 c"),a.push("-"+A+" -"+m+" -"+m+" -"+A+" 0 -"+A+" c"),a.push(m+" -"+A+" "+A+" -"+m+" "+A+" 0 c"),a.push("f"),a.push("Q"),a.push("0 g"),a.push("q"),a.push("1 0 0 1 "+$d(ei.internal.getWidth(n)/2)+" "+$d(ei.internal.getHeight(n)/2)+" cm"),a.push(l+" 0 m"),a.push(l+" "+N+" "+N+" "+l+" 0 "+l+" c"),a.push("-"+N+" "+l+" -"+l+" "+N+" -"+l+" 0 c"),a.push("-"+l+" -"+N+" -"+N+" -"+l+" 0 -"+l+" c"),a.push(N+" -"+l+" "+l+" -"+N+" "+l+" 0 c"),a.push("f"),a.push("Q"),o.stream=a.join(`
`),o},OffPushDown:function(n){var o=cu(n);o.scope=n.scope;var a=[],l=ei.internal.getWidth(n)<=ei.internal.getHeight(n)?ei.internal.getWidth(n)/4:ei.internal.getHeight(n)/4;l=Number((.9*l).toFixed(5));var A=Number((2*l).toFixed(5)),m=Number((A*ei.internal.Bezier_C).toFixed(5));return a.push("0.749023 g"),a.push("q"),a.push("1 0 0 1 "+$d(ei.internal.getWidth(n)/2)+" "+$d(ei.internal.getHeight(n)/2)+" cm"),a.push(A+" 0 m"),a.push(A+" "+m+" "+m+" "+A+" 0 "+A+" c"),a.push("-"+m+" "+A+" -"+A+" "+m+" -"+A+" 0 c"),a.push("-"+A+" -"+m+" -"+m+" -"+A+" 0 -"+A+" c"),a.push(m+" -"+A+" "+A+" -"+m+" "+A+" 0 c"),a.push("f"),a.push("Q"),o.stream=a.join(`
`),o}},Cross:{createAppearanceStream:function(n){var o={D:{Off:ei.RadioButton.Cross.OffPushDown},N:{}};return o.N[n]=ei.RadioButton.Cross.YesNormal,o.D[n]=ei.RadioButton.Cross.YesPushDown,o},getCA:function(){return"8"},YesNormal:function(n){var o=cu(n);o.scope=n.scope;var a=[],l=ei.internal.calculateCross(n);return a.push("q"),a.push("1 1 "+La(ei.internal.getWidth(n)-2)+" "+La(ei.internal.getHeight(n)-2)+" re"),a.push("W"),a.push("n"),a.push(La(l.x1.x)+" "+La(l.x1.y)+" m"),a.push(La(l.x2.x)+" "+La(l.x2.y)+" l"),a.push(La(l.x4.x)+" "+La(l.x4.y)+" m"),a.push(La(l.x3.x)+" "+La(l.x3.y)+" l"),a.push("s"),a.push("Q"),o.stream=a.join(`
`),o},YesPushDown:function(n){var o=cu(n);o.scope=n.scope;var a=ei.internal.calculateCross(n),l=[];return l.push("0.749023 g"),l.push("0 0 "+La(ei.internal.getWidth(n))+" "+La(ei.internal.getHeight(n))+" re"),l.push("f"),l.push("q"),l.push("1 1 "+La(ei.internal.getWidth(n)-2)+" "+La(ei.internal.getHeight(n)-2)+" re"),l.push("W"),l.push("n"),l.push(La(a.x1.x)+" "+La(a.x1.y)+" m"),l.push(La(a.x2.x)+" "+La(a.x2.y)+" l"),l.push(La(a.x4.x)+" "+La(a.x4.y)+" m"),l.push(La(a.x3.x)+" "+La(a.x3.y)+" l"),l.push("s"),l.push("Q"),o.stream=l.join(`
`),o},OffPushDown:function(n){var o=cu(n);o.scope=n.scope;var a=[];return a.push("0.749023 g"),a.push("0 0 "+La(ei.internal.getWidth(n))+" "+La(ei.internal.getHeight(n))+" re"),a.push("f"),o.stream=a.join(`
`),o}}},createDefaultAppearanceStream:function(n){var o=n.scope.internal.getFont(n.fontName,n.fontStyle).id,a=n.scope.__private__.encodeColorString(n.color);return"/"+o+" "+n.fontSize+" Tf "+a}};ei.internal={Bezier_C:.551915024494,calculateCross:function(n){var o=ei.internal.getWidth(n),a=ei.internal.getHeight(n),l=Math.min(o,a);return{x1:{x:(o-l)/2,y:(a-l)/2+l},x2:{x:(o-l)/2+l,y:(a-l)/2},x3:{x:(o-l)/2,y:(a-l)/2},x4:{x:(o-l)/2+l,y:(a-l)/2+l}}}},ei.internal.getWidth=function(n){var o=0;return(0,pe.Z)(n)==="object"&&(o=j0(n.Rect[2])),o},ei.internal.getHeight=function(n){var o=0;return(0,pe.Z)(n)==="object"&&(o=j0(n.Rect[3])),o};var Ec=sl.addField=function(n){if(pt(this,n),!(n instanceof Rn))throw new Error("Invalid argument passed to jsPDF.addField.");var o;return(o=n).scope.internal.acroformPlugin.printedOut&&(o.scope.internal.acroformPlugin.printedOut=!1,o.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),o.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(o),n.page=n.scope.internal.getCurrentPageInfo().pageNumber,this};sl.AcroFormChoiceField=mi,sl.AcroFormListBox=Va,sl.AcroFormComboBox=ea,sl.AcroFormEditBox=Yi,sl.AcroFormButton=Oa,sl.AcroFormPushButton=oo,sl.AcroFormRadioButton=Ia,sl.AcroFormCheckBox=ko,sl.AcroFormTextField=Xa,sl.AcroFormPasswordField=Pa,sl.AcroFormAppearance=ei,sl.AcroForm={ChoiceField:mi,ListBox:Va,ComboBox:ea,EditBox:Yi,Button:Oa,PushButton:oo,RadioButton:Ia,CheckBox:ko,TextField:Xa,PasswordField:Pa,Appearance:ei},ua.AcroForm={ChoiceField:mi,ListBox:Va,ComboBox:ea,EditBox:Yi,Button:Oa,PushButton:oo,RadioButton:Ia,CheckBox:ko,TextField:Xa,PasswordField:Pa,Appearance:ei};var oA=ua.AcroForm;function yo(n){return n.reduce(function(o,a,l){return o[a]=l,o},{})}(function(n){var o="addImage_";n.__addimage__={};var a="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]]},A=n.__addimage__.getImageFileTypeByImageData=function(it,wt){var Wt,jt,Tr,Zr,Jr,Mr=a;if((wt=wt||a)==="RGBA"||it.data!==void 0&&it.data instanceof Uint8ClampedArray&&"height"in it&&"width"in it)return"RGBA";if(rn(it))for(Jr in l)for(Tr=l[Jr],Wt=0;Wt<Tr.length;Wt+=1){for(Zr=!0,jt=0;jt<Tr[Wt].length;jt+=1)if(Tr[Wt][jt]!==void 0&&Tr[Wt][jt]!==it[jt]){Zr=!1;break}if(Zr===!0){Mr=Jr;break}}else for(Jr in l)for(Tr=l[Jr],Wt=0;Wt<Tr.length;Wt+=1){for(Zr=!0,jt=0;jt<Tr[Wt].length;jt+=1)if(Tr[Wt][jt]!==void 0&&Tr[Wt][jt]!==it.charCodeAt(jt)){Zr=!1;break}if(Zr===!0){Mr=Jr;break}}return Mr===a&&wt!==a&&(Mr=wt),Mr},m=function it(wt){for(var Wt=this.internal.write,jt=this.internal.putStream,Tr=(0,this.internal.getFilters)();Tr.indexOf("FlateEncode")!==-1;)Tr.splice(Tr.indexOf("FlateEncode"),1);wt.objectId=this.internal.newObject();var Zr=[];if(Zr.push({key:"Type",value:"/XObject"}),Zr.push({key:"Subtype",value:"/Image"}),Zr.push({key:"Width",value:wt.width}),Zr.push({key:"Height",value:wt.height}),wt.colorSpace===st.INDEXED?Zr.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(wt.palette.length/3-1)+" "+("sMask"in wt&&wt.sMask!==void 0?wt.objectId+2:wt.objectId+1)+" 0 R]"}):(Zr.push({key:"ColorSpace",value:"/"+wt.colorSpace}),wt.colorSpace===st.DEVICE_CMYK&&Zr.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Zr.push({key:"BitsPerComponent",value:wt.bitsPerComponent}),"decodeParameters"in wt&&wt.decodeParameters!==void 0&&Zr.push({key:"DecodeParms",value:"<<"+wt.decodeParameters+">>"}),"transparency"in wt&&Array.isArray(wt.transparency)&&wt.transparency.length>0){for(var Jr="",Mr=0,Gr=wt.transparency.length;Mr<Gr;Mr++)Jr+=wt.transparency[Mr]+" "+wt.transparency[Mr]+" ";Zr.push({key:"Mask",value:"["+Jr+"]"})}wt.sMask!==void 0&&Zr.push({key:"SMask",value:wt.objectId+1+" 0 R"});var Zn=wt.filter!==void 0?["/"+wt.filter]:void 0;if(jt({data:wt.data,additionalKeyValues:Zr,alreadyAppliedFilters:Zn,objectId:wt.objectId}),Wt("endobj"),"sMask"in wt&&wt.sMask!==void 0){var En,tt=(En=wt.sMaskBitsPerComponent)!==null&&En!==void 0?En:wt.bitsPerComponent,_t={width:wt.width,height:wt.height,colorSpace:"DeviceGray",bitsPerComponent:tt,data:wt.sMask};"filter"in wt&&(_t.decodeParameters="/Predictor ".concat(wt.predictor," /Colors 1 /BitsPerComponent ").concat(tt," /Columns ").concat(wt.width),_t.filter=wt.filter),it.call(this,_t)}if(wt.colorSpace===st.INDEXED){var Dt=this.internal.newObject();jt({data:or(new Uint8Array(wt.palette)),objectId:Dt}),Wt("endobj")}},N=function(){var it=this.internal.collections[o+"images"];for(var wt in it)m.call(this,it[wt])},E=function(){var it,wt=this.internal.collections[o+"images"],Wt=this.internal.write;for(var jt in wt)Wt("/I"+(it=wt[jt]).index,it.objectId,"0","R")},U=function(){this.internal.collections[o+"images"]||(this.internal.collections[o+"images"]={},this.internal.events.subscribe("putResources",N),this.internal.events.subscribe("putXobjectDict",E))},Z=function(){var it=this.internal.collections[o+"images"];return U.call(this),it},oe=function(){return Object.keys(this.internal.collections[o+"images"]).length},Re=function(it){return typeof n["process"+it.toUpperCase()]=="function"},Ze=function(it){return(0,pe.Z)(it)==="object"&&it.nodeType===1},ae=function(it,wt){if(it.nodeName==="IMG"&&it.hasAttribute("src")){var Wt=""+it.getAttribute("src");if(Wt.indexOf("data:image/")===0)return vn(unescape(Wt).split("base64,").pop());var jt=n.loadFile(Wt,!0);if(jt!==void 0)return jt}if(it.nodeName==="CANVAS"){if(it.width===0||it.height===0)throw new Error("Given canvas must have data. Canvas width: "+it.width+", height: "+it.height);var Tr;switch(wt){case"PNG":Tr="image/png";break;case"WEBP":Tr="image/webp";break;default:Tr="image/jpeg"}return vn(it.toDataURL(Tr,1).split("base64,").pop())}},mt=function(it){var wt=this.internal.collections[o+"images"];if(wt){for(var Wt in wt)if(it===wt[Wt].alias)return wt[Wt]}},ut=function(it,wt,Wt){return it||wt||(it=-96,wt=-96),it<0&&(it=-1*Wt.width*72/it/this.internal.scaleFactor),wt<0&&(wt=-1*Wt.height*72/wt/this.internal.scaleFactor),it===0&&(it=wt*Wt.width/Wt.height),wt===0&&(wt=it*Wt.height/Wt.width),[it,wt]},yt=function(it,wt,Wt,jt,Tr,Zr){var Jr=ut.call(this,Wt,jt,Tr),Mr=this.internal.getCoordinateString,Gr=this.internal.getVerticalCoordinateString,Zn=Z.call(this);if(Wt=Jr[0],jt=Jr[1],Zn[Tr.index]=Tr,Zr){Zr*=Math.PI/180;var En=Math.cos(Zr),tt=Math.sin(Zr),_t=function(qt){return qt.toFixed(4)},Dt=[_t(En),_t(tt),_t(-1*tt),_t(En),0,0,"cm"]}this.internal.write("q"),Zr?(this.internal.write([1,"0","0",1,Mr(it),Gr(wt+jt),"cm"].join(" ")),this.internal.write(Dt.join(" ")),this.internal.write([Mr(Wt),"0","0",Mr(jt),"0","0","cm"].join(" "))):this.internal.write([Mr(Wt),"0","0",Mr(jt),Mr(it),Gr(wt+jt),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Tr.index+" Do"),this.internal.write("Q")},st=n.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"};n.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 Gt=n.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Qt=n.__addimage__.sHashCode=function(it){var wt,Wt,jt=0;if(typeof it=="string")for(Wt=it.length,wt=0;wt<Wt;wt++)jt=(jt<<5)-jt+it.charCodeAt(wt),jt|=0;else if(rn(it))for(Wt=it.byteLength/2,wt=0;wt<Wt;wt++)jt=(jt<<5)-jt+it[wt],jt|=0;return jt},It=n.__addimage__.validateStringAsBase64=function(it){(it=it||"").toString().trim();var wt=!0;return it.length===0&&(wt=!1),it.length%4!=0&&(wt=!1),/^[A-Za-z0-9+/]+$/.test(it.substr(0,it.length-2))===!1&&(wt=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(it.substr(-2))===!1&&(wt=!1),wt},Ir=n.__addimage__.extractImageFromDataUrl=function(it){if(it==null||!(it=it.trim()).startsWith("data:"))return null;var wt=it.indexOf(",");return wt<0?null:it.substring(0,wt).trim().endsWith("base64")?it.substring(wt+1):null};n.__addimage__.isArrayBuffer=function(it){return it instanceof ArrayBuffer};var rn=n.__addimage__.isArrayBufferView=function(it){return it instanceof Int8Array||it instanceof Uint8Array||it instanceof Uint8ClampedArray||it instanceof Int16Array||it instanceof Uint16Array||it instanceof Int32Array||it instanceof Uint32Array||it instanceof Float32Array||it instanceof Float64Array},Wr=n.__addimage__.binaryStringToUint8Array=function(it){for(var wt=it.length,Wt=new Uint8Array(wt),jt=0;jt<wt;jt++)Wt[jt]=it.charCodeAt(jt);return Wt},or=n.__addimage__.arrayBufferToBinaryString=function(it){for(var wt="",Wt=rn(it)?it:new Uint8Array(it),jt=0;jt<Wt.length;jt+=8192)wt+=String.fromCharCode.apply(null,Wt.subarray(jt,jt+8192));return wt};n.addImage=function(){var it,wt,Wt,jt,Tr,Zr,Jr,Mr,Gr;if(typeof arguments[1]=="number"?(wt=a,Wt=arguments[1],jt=arguments[2],Tr=arguments[3],Zr=arguments[4],Jr=arguments[5],Mr=arguments[6],Gr=arguments[7]):(wt=arguments[1],Wt=arguments[2],jt=arguments[3],Tr=arguments[4],Zr=arguments[5],Jr=arguments[6],Mr=arguments[7],Gr=arguments[8]),(0,pe.Z)(it=arguments[0])==="object"&&!Ze(it)&&"imageData"in it){var Zn=it;it=Zn.imageData,wt=Zn.format||wt||a,Wt=Zn.x||Wt||0,jt=Zn.y||jt||0,Tr=Zn.w||Zn.width||Tr,Zr=Zn.h||Zn.height||Zr,Jr=Zn.alias||Jr,Mr=Zn.compression||Mr,Gr=Zn.rotation||Zn.angle||Gr}var En=this.internal.getFilters();if(Mr===void 0&&En.indexOf("FlateEncode")!==-1&&(Mr="SLOW"),isNaN(Wt)||isNaN(jt))throw new Error("Invalid coordinates passed to jsPDF.addImage");U.call(this);var tt=Lt.call(this,it,wt,Jr,Mr);return yt.call(this,Wt,jt,Tr,Zr,tt,Gr),this};var Lt=function(it,wt,Wt,jt){var Tr,Zr,Jr;if(typeof it=="string"&&A(it)===a){it=unescape(it);var Mr=xr(it,!1);(Mr!==""||(Mr=n.loadFile(it,!0))!==void 0)&&(it=Mr)}if(Ze(it)&&(it=ae(it,wt)),wt=A(it,wt),!Re(wt))throw new Error("addImage does not support files of type '"+wt+"', please ensure that a plugin for '"+wt+"' support is added.");if(((Jr=Wt)==null||Jr.length===0)&&(Wt=function(Gr){return typeof Gr=="string"||rn(Gr)?Qt(Gr):rn(Gr.data)?Qt(Gr.data):null}(it)),(Tr=mt.call(this,Wt))||(it instanceof Uint8Array||wt==="RGBA"||(Zr=it,it=Wr(it)),Tr=this["process"+wt.toUpperCase()](it,oe.call(this),Wt,function(Gr){return Gr&&typeof Gr=="string"&&(Gr=Gr.toUpperCase()),Gr in n.image_compression?Gr:Gt.NONE}(jt),Zr)),!Tr)throw new Error("An unknown error occurred whilst processing the image.");return Tr},xr=n.__addimage__.convertBase64ToBinaryString=function(it,wt){wt=typeof wt!="boolean"||wt;var Wt,jt="";if(typeof it=="string"){var Tr;Wt=(Tr=Ir(it))!==null&&Tr!==void 0?Tr:it;try{jt=vn(Wt)}catch(Zr){if(wt)throw It(Wt)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Zr.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return jt};n.getImageProperties=function(it){var wt,Wt,jt="";if(Ze(it)&&(it=ae(it)),typeof it=="string"&&A(it)===a&&((jt=xr(it,!1))===""&&(jt=n.loadFile(it)||""),it=jt),Wt=A(it),!Re(Wt))throw new Error("addImage does not support files of type '"+Wt+"', please ensure that a plugin for '"+Wt+"' support is added.");if(it instanceof Uint8Array||(it=Wr(it)),!(wt=this["process"+Wt.toUpperCase()](it)))throw new Error("An unknown error occurred whilst processing the image");return wt.fileType=Wt,wt}})(ua.API),function(n){var o=function(a){if(a!==void 0&&a!="")return!0};ua.API.events.push(["addPage",function(a){this.internal.getPageInfo(a.pageNumber).pageContext.annotations=[]}]),n.events.push(["putPage",function(a){for(var l,A,m,N=this.internal.getCoordinateString,E=this.internal.getVerticalCoordinateString,U=this.internal.getPageInfoByObjId(a.objId),Z=a.pageContext.annotations,oe=!1,Re=0;Re<Z.length&&!oe;Re++)switch((l=Z[Re]).type){case"link":(o(l.options.url)||o(l.options.pageNumber))&&(oe=!0);break;case"reference":case"text":case"freetext":oe=!0}if(oe!=0){this.internal.write("/Annots [");for(var Ze=0;Ze<Z.length;Ze++){l=Z[Ze];var ae=this.internal.pdfEscape,mt=this.internal.getEncryptor(a.objId);switch(l.type){case"reference":this.internal.write(" "+l.object.objId+" 0 R ");break;case"text":var ut=this.internal.newAdditionalObject(),yt=this.internal.newAdditionalObject(),st=this.internal.getEncryptor(ut.objId),Gt=l.title||"Note";m="<</Type /Annot /Subtype /Text "+(A="/Rect ["+N(l.bounds.x)+" "+E(l.bounds.y+l.bounds.h)+" "+N(l.bounds.x+l.bounds.w)+" "+E(l.bounds.y)+"] ")+"/Contents ("+ae(st(l.contents))+")",m+=" /Popup "+yt.objId+" 0 R",m+=" /P "+U.objId+" 0 R",m+=" /T ("+ae(st(Gt))+") >>",ut.content=m;var Qt=ut.objId+" 0 R";m="<</Type /Annot /Subtype /Popup "+(A="/Rect ["+N(l.bounds.x+30)+" "+E(l.bounds.y+l.bounds.h)+" "+N(l.bounds.x+l.bounds.w+30)+" "+E(l.bounds.y)+"] ")+" /Parent "+Qt,l.open&&(m+=" /Open true"),m+=" >>",yt.content=m,this.internal.write(ut.objId,"0 R",yt.objId,"0 R");break;case"freetext":A="/Rect ["+N(l.bounds.x)+" "+E(l.bounds.y)+" "+N(l.bounds.x+l.bounds.w)+" "+E(l.bounds.y+l.bounds.h)+"] ";var It=l.color||"#000000";m="<</Type /Annot /Subtype /FreeText "+A+"/Contents ("+ae(mt(l.contents))+")",m+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+It+")",m+=" /Border [0 0 0]",m+=" >>",this.internal.write(m);break;case"link":if(l.options.name){var Ir=this.annotations._nameMap[l.options.name];l.options.pageNumber=Ir.page,l.options.top=Ir.y}else l.options.top||(l.options.top=0);if(A="/Rect ["+l.finalBounds.x+" "+l.finalBounds.y+" "+l.finalBounds.w+" "+l.finalBounds.h+"] ",m="",l.options.url)m="<</Type /Annot /Subtype /Link "+A+"/Border [0 0 0] /A <</S /URI /URI ("+ae(mt(l.options.url))+") >>";else if(l.options.pageNumber)switch(m="<</Type /Annot /Subtype /Link "+A+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(l.options.pageNumber).objId+" 0 R",l.options.magFactor=l.options.magFactor||"XYZ",l.options.magFactor){case"Fit":m+=" /Fit]";break;case"FitH":m+=" /FitH "+l.options.top+"]";break;case"FitV":l.options.left=l.options.left||0,m+=" /FitV "+l.options.left+"]";break;default:var rn=E(l.options.top);l.options.left=l.options.left||0,l.options.zoom===void 0&&(l.options.zoom=0),m+=" /XYZ "+l.options.left+" "+rn+" "+l.options.zoom+"]"}m!=""&&(m+=" >>",this.internal.write(m))}}this.internal.write("]")}}]),n.createAnnotation=function(a){var l=this.internal.getCurrentPageInfo();switch(a.type){case"link":this.link(a.bounds.x,a.bounds.y,a.bounds.w,a.bounds.h,a);break;case"text":case"freetext":l.pageContext.annotations.push(a)}},n.link=function(a,l,A,m,N){var E=this.internal.getCurrentPageInfo(),U=this.internal.getCoordinateString,Z=this.internal.getVerticalCoordinateString;E.pageContext.annotations.push({finalBounds:{x:U(a),y:Z(l),w:U(a+A),h:Z(l+m)},options:N,type:"link"})},n.textWithLink=function(a,l,A,m){var N,E,U=this.getTextWidth(a),Z=this.internal.getLineHeight()/this.internal.scaleFactor;if(m.maxWidth!==void 0){E=m.maxWidth;var oe=this.splitTextToSize(a,E).length;N=Math.ceil(Z*oe)}else E=U,N=Z;return this.text(a,l,A,m),A+=.2*Z,m.align==="center"&&(l-=U/2),m.align==="right"&&(l-=U),this.link(l,A-Z,E,N,m),U},n.getTextWidth=function(a){var l=this.internal.getFontSize();return this.getStringUnitWidth(a)*l/this.internal.scaleFactor}}(ua.API),function(n){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]},a={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}},l={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},A=[1570,1571,1573,1575];n.__arabicParser__={};var m=n.__arabicParser__.isInArabicSubstitutionA=function(ut){return o[ut.charCodeAt(0)]!==void 0},N=n.__arabicParser__.isArabicLetter=function(ut){return typeof ut=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(ut)},E=n.__arabicParser__.isArabicEndLetter=function(ut){return N(ut)&&m(ut)&&o[ut.charCodeAt(0)].length<=2},U=n.__arabicParser__.isArabicAlfLetter=function(ut){return N(ut)&&A.indexOf(ut.charCodeAt(0))>=0};n.__arabicParser__.arabicLetterHasIsolatedForm=function(ut){return N(ut)&&m(ut)&&o[ut.charCodeAt(0)].length>=1};var Z=n.__arabicParser__.arabicLetterHasFinalForm=function(ut){return N(ut)&&m(ut)&&o[ut.charCodeAt(0)].length>=2};n.__arabicParser__.arabicLetterHasInitialForm=function(ut){return N(ut)&&m(ut)&&o[ut.charCodeAt(0)].length>=3};var oe=n.__arabicParser__.arabicLetterHasMedialForm=function(ut){return N(ut)&&m(ut)&&o[ut.charCodeAt(0)].length==4},Re=n.__arabicParser__.resolveLigatures=function(ut){var yt=0,st=a,Gt="",Qt=0;for(yt=0;yt<ut.length;yt+=1)st[ut.charCodeAt(yt)]!==void 0?(Qt++,typeof(st=st[ut.charCodeAt(yt)])=="number"&&(Gt+=String.fromCharCode(st),st=a,Qt=0),yt===ut.length-1&&(st=a,Gt+=ut.charAt(yt-(Qt-1)),yt-=Qt-1,Qt=0)):(st=a,Gt+=ut.charAt(yt-Qt),yt-=Qt,Qt=0);return Gt};n.__arabicParser__.isArabicDiacritic=function(ut){return ut!==void 0&&l[ut.charCodeAt(0)]!==void 0};var Ze=n.__arabicParser__.getCorrectForm=function(ut,yt,st){return N(ut)?m(ut)===!1?-1:!Z(ut)||!N(yt)&&!N(st)||!N(st)&&E(yt)||E(ut)&&!N(yt)||E(ut)&&U(yt)||E(ut)&&E(yt)?0:oe(ut)&&N(yt)&&!E(yt)&&N(st)&&Z(st)?3:E(ut)||!N(st)?1:2:-1},ae=function(ut){var yt=0,st=0,Gt=0,Qt="",It="",Ir="",rn=(ut=ut||"").split("\\s+"),Wr=[];for(yt=0;yt<rn.length;yt+=1){for(Wr.push(""),st=0;st<rn[yt].length;st+=1)Qt=rn[yt][st],It=rn[yt][st-1],Ir=rn[yt][st+1],N(Qt)?(Gt=Ze(Qt,It,Ir),Wr[yt]+=Gt!==-1?String.fromCharCode(o[Qt.charCodeAt(0)][Gt]):Qt):Wr[yt]+=Qt;Wr[yt]=Re(Wr[yt])}return Wr.join(" ")},mt=n.__arabicParser__.processArabic=n.processArabic=function(){var ut,yt=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,st=[];if(Array.isArray(yt)){var Gt=0;for(st=[],Gt=0;Gt<yt.length;Gt+=1)Array.isArray(yt[Gt])?st.push([ae(yt[Gt][0]),yt[Gt][1],yt[Gt][2]]):st.push([ae(yt[Gt])]);ut=st}else ut=ae(yt);return typeof arguments[0]=="string"?ut:(arguments[0].text=ut,arguments[0])};n.events.push(["preProcessText",mt])}(ua.API),ua.API.autoPrint=function(n){var o;return(n=n||{}).variant=n.variant||"non-conform",n.variant==="javascript"?this.addJS("print({});"):(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")})),this},function(n){var o=function(){var a=void 0;Object.defineProperty(this,"pdf",{get:function(){return a},set:function(E){a=E}});var l=150;Object.defineProperty(this,"width",{get:function(){return l},set:function(E){l=isNaN(E)||Number.isInteger(E)===!1||E<0?150:E,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=l+1)}});var A=300;Object.defineProperty(this,"height",{get:function(){return A},set:function(E){A=isNaN(E)||Number.isInteger(E)===!1||E<0?300:E,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=A+1)}});var m=[];Object.defineProperty(this,"childNodes",{get:function(){return m},set:function(E){m=E}});var N={};Object.defineProperty(this,"style",{get:function(){return N},set:function(E){N=E}}),Object.defineProperty(this,"parentNode",{})};o.prototype.getContext=function(a,l){var A;if((a=a||"2d")!=="2d")return null;for(A in l)this.pdf.context2d.hasOwnProperty(A)&&(this.pdf.context2d[A]=l[A]);return this.pdf.context2d._canvas=this,this.pdf.context2d},o.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},n.events.push(["initialized",function(){this.canvas=new o,this.canvas.pdf=this}])}(ua.API),function(n){var o={left:0,top:0,bottom:0,right:0},a=!1,l=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(),A.call(this))},A=function(){this.internal.__cell__.lastCell=new m,this.internal.__cell__.pages=1},m=function(){var U=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return U},set:function(ut){U=ut}});var Z=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Z},set:function(ut){Z=ut}});var oe=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return oe},set:function(ut){oe=ut}});var Re=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return Re},set:function(ut){Re=ut}});var Ze=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Ze},set:function(ut){Ze=ut}});var ae=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return ae},set:function(ut){ae=ut}});var mt=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return mt},set:function(ut){mt=ut}}),this};m.prototype.clone=function(){return new m(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},m.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},n.setHeaderFunction=function(U){return l.call(this),this.internal.__cell__.headerFunction=typeof U=="function"?U:void 0,this},n.getTextDimensions=function(U,Z){l.call(this);var oe=(Z=Z||{}).fontSize||this.getFontSize(),Re=Z.font||this.getFont(),Ze=Z.scaleFactor||this.internal.scaleFactor,ae=0,mt=0,ut=0,yt=this;if(!Array.isArray(U)&&typeof U!="string"){if(typeof U!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");U=String(U)}var st=Z.maxWidth;st>0?typeof U=="string"?U=this.splitTextToSize(U,st):Object.prototype.toString.call(U)==="[object Array]"&&(U=U.reduce(function(Qt,It){return Qt.concat(yt.splitTextToSize(It,st))},[])):U=Array.isArray(U)?U:[U];for(var Gt=0;Gt<U.length;Gt++)ae<(ut=this.getStringUnitWidth(U[Gt],{font:Re})*oe)&&(ae=ut);return ae!==0&&(mt=U.length),{w:ae/=Ze,h:Math.max((mt*oe*this.getLineHeightFactor()-oe*(this.getLineHeightFactor()-1))/Ze,0)}},n.cellAddPage=function(){l.call(this),this.addPage();var U=this.internal.__cell__.margins||o;return this.internal.__cell__.lastCell=new m(U.left,U.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var N=n.cell=function(){var U;U=arguments[0]instanceof m?arguments[0]:new m(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),l.call(this);var Z=this.internal.__cell__.lastCell,oe=this.internal.__cell__.padding,Re=this.internal.__cell__.margins||o,Ze=this.internal.__cell__.tableHeaderRow,ae=this.internal.__cell__.printHeaders;return Z.lineNumber!==void 0&&(Z.lineNumber===U.lineNumber?(U.x=(Z.x||0)+(Z.width||0),U.y=Z.y||0):Z.y+Z.height+U.height+Re.bottom>this.getPageHeight()?(this.cellAddPage(),U.y=Re.top,ae&&Ze&&(this.printHeaderRow(U.lineNumber,!0),U.y+=Ze[0].height)):U.y=Z.y+Z.height||U.y),U.text[0]!==void 0&&(this.rect(U.x,U.y,U.width,U.height,a===!0?"FD":void 0),U.align==="right"?this.text(U.text,U.x+U.width-oe,U.y+oe,{align:"right",baseline:"top"}):U.align==="center"?this.text(U.text,U.x+U.width/2,U.y+oe,{align:"center",baseline:"top",maxWidth:U.width-oe-oe}):this.text(U.text,U.x+oe,U.y+oe,{align:"left",baseline:"top",maxWidth:U.width-oe-oe})),this.internal.__cell__.lastCell=U,this};n.table=function(U,Z,oe,Re,Ze){if(l.call(this),!oe)throw new Error("No data for PDF table.");var ae,mt,ut,yt,st=[],Gt=[],Qt=[],It={},Ir={},rn=[],Wr=[],or=(Ze=Ze||{}).autoSize||!1,Lt=Ze.printHeaders!==!1,xr=Ze.css&&Ze.css["font-size"]!==void 0?16*Ze.css["font-size"]:Ze.fontSize||12,it=Ze.margins||Object.assign({width:this.getPageWidth()},o),wt=typeof Ze.padding=="number"?Ze.padding:3,Wt=Ze.headerBackgroundColor||"#c8c8c8",jt=Ze.headerTextColor||"#000";if(A.call(this),this.internal.__cell__.printHeaders=Lt,this.internal.__cell__.margins=it,this.internal.__cell__.table_font_size=xr,this.internal.__cell__.padding=wt,this.internal.__cell__.headerBackgroundColor=Wt,this.internal.__cell__.headerTextColor=jt,this.setFontSize(xr),Re==null)Gt=st=Object.keys(oe[0]),Qt=st.map(function(){return"left"});else if(Array.isArray(Re)&&(0,pe.Z)(Re[0])==="object")for(st=Re.map(function(Zn){return Zn.name}),Gt=Re.map(function(Zn){return Zn.prompt||Zn.name||""}),Qt=Re.map(function(Zn){return Zn.align||"left"}),ae=0;ae<Re.length;ae+=1)Ir[Re[ae].name]=.7499990551181103*Re[ae].width;else Array.isArray(Re)&&typeof Re[0]=="string"&&(Gt=st=Re,Qt=st.map(function(){return"left"}));if(or||Array.isArray(Re)&&typeof Re[0]=="string")for(ae=0;ae<st.length;ae+=1){for(It[yt=st[ae]]=oe.map(function(Zn){return Zn[yt]}),this.setFont(void 0,"bold"),rn.push(this.getTextDimensions(Gt[ae],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),mt=It[yt],this.setFont(void 0,"normal"),ut=0;ut<mt.length;ut+=1)rn.push(this.getTextDimensions(mt[ut],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Ir[yt]=Math.max.apply(null,rn)+wt+wt,rn=[]}if(Lt){var Tr={};for(ae=0;ae<st.length;ae+=1)Tr[st[ae]]={},Tr[st[ae]].text=Gt[ae],Tr[st[ae]].align=Qt[ae];var Zr=E.call(this,Tr,Ir);Wr=st.map(function(Zn){return new m(U,Z,Ir[Zn],Zr,Tr[Zn].text,void 0,Tr[Zn].align)}),this.setTableHeaderRow(Wr),this.printHeaderRow(1,!1)}var Jr=Re.reduce(function(Zn,En){return Zn[En.name]=En.align,Zn},{});for(ae=0;ae<oe.length;ae+=1){"rowStart"in Ze&&Ze.rowStart instanceof Function&&Ze.rowStart({row:ae,data:oe[ae]},this);var Mr=E.call(this,oe[ae],Ir);for(ut=0;ut<st.length;ut+=1){var Gr=oe[ae][st[ut]];"cellStart"in Ze&&Ze.cellStart instanceof Function&&Ze.cellStart({row:ae,col:ut,data:Gr},this),N.call(this,new m(U,Z,Ir[st[ut]],Mr,Gr,ae+2,Jr[st[ut]]))}}return this.internal.__cell__.table_x=U,this.internal.__cell__.table_y=Z,this};var E=function(U,Z){var oe=this.internal.__cell__.padding,Re=this.internal.__cell__.table_font_size,Ze=this.internal.scaleFactor;return Object.keys(U).map(function(ae){var mt=U[ae];return this.splitTextToSize(mt.hasOwnProperty("text")?mt.text:mt,Z[ae]-oe-oe)},this).map(function(ae){return this.getLineHeightFactor()*ae.length*Re/Ze+oe+oe},this).reduce(function(ae,mt){return Math.max(ae,mt)},0)};n.setTableHeaderRow=function(U){l.call(this),this.internal.__cell__.tableHeaderRow=U},n.printHeaderRow=function(U,Z){if(l.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var oe;if(a=!0,typeof this.internal.__cell__.headerFunction=="function"){var Re=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new m(Re[0],Re[1],Re[2],Re[3],void 0,-1)}this.setFont(void 0,"bold");for(var Ze=[],ae=0;ae<this.internal.__cell__.tableHeaderRow.length;ae+=1){oe=this.internal.__cell__.tableHeaderRow[ae].clone(),Z&&(oe.y=this.internal.__cell__.margins.top||0,Ze.push(oe)),oe.lineNumber=U;var mt=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),N.call(this,oe),this.setTextColor(mt)}Ze.length>0&&this.setTableHeaderRow(Ze),this.setFont(void 0,"normal"),a=!1}}(ua.API);var _c={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},pd=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Yc=yo(pd),sA=[100,200,300,400,500,600,700,800,900],Au=yo(sA);function XA(n){var o=n.family.replace(/"|'/g,"").toLowerCase(),a=function(m){return _c[m=m||"normal"]?m:"normal"}(n.style),l=function(m){return m?typeof m=="number"?m>=100&&m<=900&&m%100==0?m:400:/^\d00$/.test(m)?parseInt(m):m==="bold"?700:400:400}(n.weight),A=function(m){return typeof Yc[m=m||"normal"]=="number"?m:"normal"}(n.stretch);return{family:o,style:a,weight:l,stretch:A,src:n.src||[],ref:n.ref||{name:o,style:[A,a,l].join(" ")}}}function uu(n,o,a,l){var A;for(A=a;A>=0&&A<o.length;A+=l)if(n[o[A]])return n[o[A]];for(A=a;A>=0&&A<o.length;A-=l)if(n[o[A]])return n[o[A]]}var Pu={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},LA={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Tu(n){return[n.stretch,n.style,n.weight,n.family].join(" ")}function Zd(n){return n.trimLeft()}function JA(n,o){for(var a=0;a<n.length;){if(n.charAt(a)===o)return[n.substring(0,a),n.substring(a+1)];a+=1}return null}function md(n){var o=n.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return o===null?null:[o[0],n.substring(o[0].length)]}var Hc,vg,Qh,Kh,lm,bg,Gm,yg,Xm=["times"];function cm(n,o,a,l,A){var m=4,N=xg;switch(A){case ua.API.image_compression.FAST:m=1,N=wg;break;case ua.API.image_compression.MEDIUM:m=6,N=z0;break;case ua.API.image_compression.SLOW:m=9,N=Jm}n=function(U,Z,oe,Re){for(var Ze,ae=U.length/Z,mt=new Uint8Array(U.length+ae),ut=[Jg,wg,xg,z0,Jm],yt=0;yt<ae;yt+=1){var st=yt*Z,Gt=U.subarray(st,st+Z);if(Re)mt.set(Re(Gt,oe,Ze),st+yt);else{for(var Qt=ut.length,It=[],Ir=0;Ir<Qt;Ir+=1)It[Ir]=ut[Ir](Gt,oe,Ze);var rn=Ep(It.concat());mt.set(It[rn],st+yt)}Ze=Gt}return mt}(n,o,Math.ceil(a*l/8),N);var E=gi(n,{level:m});return ua.API.__addimage__.arrayBufferToBinaryString(E)}function Jg(n){var o=Array.apply([],n);return o.unshift(0),o}function wg(n,o){var a=n.length,l=[];l[0]=1;for(var A=0;A<a;A+=1){var m=n[A-o]||0;l[A+1]=n[A]-m+256&255}return l}function xg(n,o,a){var l=n.length,A=[];A[0]=2;for(var m=0;m<l;m+=1){var N=a&&a[m]||0;A[m+1]=n[m]-N+256&255}return A}function z0(n,o,a){var l=n.length,A=[];A[0]=3;for(var m=0;m<l;m+=1){var N=n[m-o]||0,E=a&&a[m]||0;A[m+1]=n[m]+256-(N+E>>>1)&255}return A}function Jm(n,o,a){var l=n.length,A=[];A[0]=4;for(var m=0;m<l;m+=1){var N=Am(n[m-o]||0,a&&a[m]||0,a&&a[m-o]||0);A[m+1]=n[m]-N+256&255}return A}function Am(n,o,a){if(n===o&&o===a)return n;var l=Math.abs(o-a),A=Math.abs(n-a),m=Math.abs(n+o-a-a);return l<=A&&l<=m?n:A<=m?o:a}function Ep(n){var o=n.map(function(a){return a.reduce(function(l,A){return l+Math.abs(A)},0)});return o.indexOf(Math.min.apply(null,o))}function um(n,o,a){var l=o*a,A=Math.floor(l/8),m=16-(l-8*A+a),N=(1<<a)-1;return _p(n,A)>>m&N}function Hh(n,o,a,l){var A=a*l,m=Math.floor(A/8),N=16-(A-8*m+l),E=(1<<l)-1,U=(o&E)<<N;(function(Z,oe,Re){if(oe+1<Z.byteLength)Z.setUint16(oe,Re,!1);else{var Ze=Re>>8&255;Z.setUint8(oe,Ze)}})(n,m,_p(n,m)&~(E<<N)&65535|U)}function _p(n,o){return o+1<n.byteLength?n.getUint16(o,!1):n.getUint8(o)<<8}function Ym(n){var o=0;if(n[o++]!==71||n[o++]!==73||n[o++]!==70||n[o++]!==56||(n[o++]+1&253)!=56||n[o++]!==97)throw new Error("Invalid GIF 87a/89a header.");var a=n[o++]|n[o++]<<8,l=n[o++]|n[o++]<<8,A=n[o++],m=A>>7,N=1<<1+(7&A);n[o++],n[o++];var E=null,U=null;m&&(E=o,U=N,o+=3*N);var Z=!0,oe=[],Re=0,Ze=null,ae=0,mt=null;for(this.width=a,this.height=l;Z&&o<n.length;)switch(n[o++]){case 33:switch(n[o++]){case 255:if(n[o]!==11||n[o+1]==78&&n[o+2]==69&&n[o+3]==84&&n[o+4]==83&&n[o+5]==67&&n[o+6]==65&&n[o+7]==80&&n[o+8]==69&&n[o+9]==50&&n[o+10]==46&&n[o+11]==48&&n[o+12]==3&&n[o+13]==1&&n[o+16]==0)o+=14,mt=n[o++]|n[o++]<<8,o++;else for(o+=12;;){if(!((it=n[o++])>=0))throw Error("Invalid block size");if(it===0)break;o+=it}break;case 249:if(n[o++]!==4||n[o+4]!==0)throw new Error("Invalid graphics extension block.");var ut=n[o++];Re=n[o++]|n[o++]<<8,Ze=n[o++],1&ut||(Ze=null),ae=ut>>2&7,o++;break;case 254:for(;;){if(!((it=n[o++])>=0))throw Error("Invalid block size");if(it===0)break;o+=it}break;default:throw new Error("Unknown graphic control label: 0x"+n[o-1].toString(16))}break;case 44:var yt=n[o++]|n[o++]<<8,st=n[o++]|n[o++]<<8,Gt=n[o++]|n[o++]<<8,Qt=n[o++]|n[o++]<<8,It=n[o++],Ir=It>>6&1,rn=1<<1+(7&It),Wr=E,or=U,Lt=!1;It>>7&&(Lt=!0,Wr=o,or=rn,o+=3*rn);var xr=o;for(o++;;){var it;if(!((it=n[o++])>=0))throw Error("Invalid block size");if(it===0)break;o+=it}oe.push({x:yt,y:st,width:Gt,height:Qt,has_local_palette:Lt,palette_offset:Wr,palette_size:or,data_offset:xr,data_length:o-xr,transparent_index:Ze,interlaced:!!Ir,delay:Re,disposal:ae});break;case 59:Z=!1;break;default:throw new Error("Unknown gif block: 0x"+n[o-1].toString(16))}this.numFrames=function(){return oe.length},this.loopCount=function(){return mt},this.frameInfo=function(wt){if(wt<0||wt>=oe.length)throw new Error("Frame index out of range.");return oe[wt]},this.decodeAndBlitFrameBGRA=function(wt,Wt){var jt=this.frameInfo(wt),Tr=jt.width*jt.height,Zr=new Uint8Array(Tr);Cg(n,jt.data_offset,Zr,Tr);var Jr=jt.palette_offset,Mr=jt.transparent_index;Mr===null&&(Mr=256);var Gr=jt.width,Zn=a-Gr,En=Gr,tt=4*(jt.y*a+jt.x),_t=4*((jt.y+jt.height)*a+jt.x),Dt=tt,qt=4*Zn;jt.interlaced===!0&&(qt+=4*a*7);for(var dr=8,_r=0,$r=Zr.length;_r<$r;++_r){var Qr=Zr[_r];if(En===0&&(En=Gr,(Dt+=qt)>=_t&&(qt=4*Zn+4*a*(dr-1),Dt=tt+(Gr+Zn)*(dr<<1),dr>>=1)),Qr===Mr)Dt+=4;else{var gn=n[Jr+3*Qr],Qn=n[Jr+3*Qr+1],vi=n[Jr+3*Qr+2];Wt[Dt++]=vi,Wt[Dt++]=Qn,Wt[Dt++]=gn,Wt[Dt++]=255}--En}},this.decodeAndBlitFrameRGBA=function(wt,Wt){var jt=this.frameInfo(wt),Tr=jt.width*jt.height,Zr=new Uint8Array(Tr);Cg(n,jt.data_offset,Zr,Tr);var Jr=jt.palette_offset,Mr=jt.transparent_index;Mr===null&&(Mr=256);var Gr=jt.width,Zn=a-Gr,En=Gr,tt=4*(jt.y*a+jt.x),_t=4*((jt.y+jt.height)*a+jt.x),Dt=tt,qt=4*Zn;jt.interlaced===!0&&(qt+=4*a*7);for(var dr=8,_r=0,$r=Zr.length;_r<$r;++_r){var Qr=Zr[_r];if(En===0&&(En=Gr,(Dt+=qt)>=_t&&(qt=4*Zn+4*a*(dr-1),Dt=tt+(Gr+Zn)*(dr<<1),dr>>=1)),Qr===Mr)Dt+=4;else{var gn=n[Jr+3*Qr],Qn=n[Jr+3*Qr+1],vi=n[Jr+3*Qr+2];Wt[Dt++]=gn,Wt[Dt++]=Qn,Wt[Dt++]=vi,Wt[Dt++]=255}--En}}}function Cg(n,o,a,l){for(var A=n[o++],m=1<<A,N=m+1,E=N+1,U=A+1,Z=(1<<U)-1,oe=0,Re=0,Ze=0,ae=n[o++],mt=new Int32Array(4096),ut=null;;){for(;oe<16&&ae!==0;)Re|=n[o++]<<oe,oe+=8,ae===1?ae=n[o++]:--ae;if(oe<U)break;var yt=Re&Z;if(Re>>=U,oe-=U,yt!==m){if(yt===N)break;for(var st=yt<E?yt:ut,Gt=0,Qt=st;Qt>m;)Qt=mt[Qt]>>8,++Gt;var It=Qt;if(Ze+Gt+(st!==yt?1:0)>l)return void ks.log("Warning, gif stream longer than expected.");a[Ze++]=It;var Ir=Ze+=Gt;for(st!==yt&&(a[Ze++]=It),Qt=st;Gt--;)Qt=mt[Qt],a[--Ir]=255&Qt,Qt>>=8;ut!==null&&E<4096&&(mt[E++]=ut<<8|It,E>=Z+1&&U<12&&(++U,Z=Z<<1|1)),ut=yt}else E=N+1,Z=(1<<(U=A+1))-1,ut=null}return Ze!==l&&ks.log("Warning, gif stream shorter than expected."),a}function qm(n){var o,a,l,A,m,N=Math.floor,E=new Array(64),U=new Array(64),Z=new Array(64),oe=new Array(64),Re=new Array(65535),Ze=new Array(65535),ae=new Array(64),mt=new Array(64),ut=[],yt=0,st=7,Gt=new Array(64),Qt=new Array(64),It=new Array(64),Ir=new Array(256),rn=new Array(2048),Wr=[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],or=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Lt=[0,1,2,3,4,5,6,7,8,9,10,11],xr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],it=[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],wt=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Wt=[0,1,2,3,4,5,6,7,8,9,10,11],jt=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Tr=[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 Zr(tt,_t){for(var Dt=0,qt=0,dr=new Array,_r=1;_r<=16;_r++){for(var $r=1;$r<=tt[_r];$r++)dr[_t[qt]]=[],dr[_t[qt]][0]=Dt,dr[_t[qt]][1]=_r,qt++,Dt++;Dt*=2}return dr}function Jr(tt){for(var _t=tt[0],Dt=tt[1]-1;Dt>=0;)_t&1<<Dt&&(yt|=1<<st),Dt--,--st<0&&(yt==255?(Mr(255),Mr(0)):Mr(yt),st=7,yt=0)}function Mr(tt){ut.push(tt)}function Gr(tt){Mr(tt>>8&255),Mr(255&tt)}function Zn(tt,_t,Dt,qt,dr){for(var _r,$r=dr[0],Qr=dr[240],gn=function(Gn,xa){var ui,Ja,Ma,es,wo,Wa,Ks,fo,Ba,ro,Sa=0;for(Ba=0;Ba<8;++Ba){ui=Gn[Sa],Ja=Gn[Sa+1],Ma=Gn[Sa+2],es=Gn[Sa+3],wo=Gn[Sa+4],Wa=Gn[Sa+5],Ks=Gn[Sa+6];var yl=ui+(fo=Gn[Sa+7]),Ds=ui-fo,ga=Ja+Ks,xo=Ja-Ks,ul=Ma+Wa,ka=Ma-Wa,ns=es+wo,Co=es-wo,ql=yl+ns,Pl=yl-ns,is=ga+ul,Ya=ga-ul;Gn[Sa]=ql+is,Gn[Sa+4]=ql-is;var Hs=.707106781*(Ya+Pl);Gn[Sa+2]=Pl+Hs,Gn[Sa+6]=Pl-Hs;var zh=.382683433*((ql=Co+ka)-(Ya=xo+Ds)),jc=.5411961*ql+zh,Ff=1.306562965*Ya+zh,Vd=.707106781*(is=ka+xo),Ka=Ds+Vd,Mf=Ds-Vd;Gn[Sa+5]=Mf+jc,Gn[Sa+3]=Mf-jc,Gn[Sa+1]=Ka+Ff,Gn[Sa+7]=Ka-Ff,Sa+=8}for(Sa=0,Ba=0;Ba<8;++Ba){ui=Gn[Sa],Ja=Gn[Sa+8],Ma=Gn[Sa+16],es=Gn[Sa+24],wo=Gn[Sa+32],Wa=Gn[Sa+40],Ks=Gn[Sa+48];var Lf=ui+(fo=Gn[Sa+56]),pu=ui-fo,mu=Ja+Ks,lc=Ja-Ks,Ss=Ma+Wa,dl=Ma-Wa,Wd=es+wo,Gd=es-wo,Uu=Lf+Wd,gu=Lf-Wd,lA=mu+Ss,vu=mu-Ss;Gn[Sa]=Uu+lA,Gn[Sa+32]=Uu-lA;var Ru=.707106781*(vu+gu);Gn[Sa+16]=gu+Ru,Gn[Sa+48]=gu-Ru;var $h=.382683433*((Uu=Gd+dl)-(vu=lc+pu)),Xd=.5411961*Uu+$h,Zh=1.306562965*vu+$h,Vh=.707106781*(lA=dl+lc),$0=pu+Vh,Wh=pu-Vh;Gn[Sa+40]=Wh+Xd,Gn[Sa+24]=Wh-Xd,Gn[Sa+8]=$0+Zh,Gn[Sa+56]=$0-Zh,Sa++}for(Ba=0;Ba<64;++Ba)ro=Gn[Ba]*xa[Ba],ae[Ba]=ro>0?ro+.5|0:ro-.5|0;return ae}(tt,_t),Qn=0;Qn<64;++Qn)mt[Wr[Qn]]=gn[Qn];var vi=mt[0]-Dt;Dt=mt[0],vi==0?Jr(qt[0]):(Jr(qt[Ze[_r=32767+vi]]),Jr(Re[_r]));for(var Fi=63;Fi>0&&mt[Fi]==0;)Fi--;if(Fi==0)return Jr($r),Dt;for(var sn,Ft=1;Ft<=Fi;){for(var Wo=Ft;mt[Ft]==0&&Ft<=Fi;)++Ft;var _o=Ft-Wo;if(_o>=16){sn=_o>>4;for(var Ta=1;Ta<=sn;++Ta)Jr(Qr);_o&=15}_r=32767+mt[Ft],Jr(dr[(_o<<4)+Ze[_r]]),Jr(Re[_r]),Ft++}return Fi!=63&&Jr($r),Dt}function En(tt){tt=Math.min(Math.max(tt,1),100),m!=tt&&(function(_t){for(var Dt=[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],qt=0;qt<64;qt++){var dr=N((Dt[qt]*_t+50)/100);dr=Math.min(Math.max(dr,1),255),E[Wr[qt]]=dr}for(var _r=[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],$r=0;$r<64;$r++){var Qr=N((_r[$r]*_t+50)/100);Qr=Math.min(Math.max(Qr,1),255),U[Wr[$r]]=Qr}for(var gn=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Qn=0,vi=0;vi<8;vi++)for(var Fi=0;Fi<8;Fi++)Z[Qn]=1/(E[Wr[Qn]]*gn[vi]*gn[Fi]*8),oe[Qn]=1/(U[Wr[Qn]]*gn[vi]*gn[Fi]*8),Qn++}(tt<50?Math.floor(5e3/tt):Math.floor(200-2*tt)),m=tt)}this.encode=function(tt,_t){_t&&En(_t),ut=new Array,yt=0,st=7,Gr(65496),Gr(65504),Gr(16),Mr(74),Mr(70),Mr(73),Mr(70),Mr(0),Mr(1),Mr(1),Mr(0),Gr(1),Gr(1),Mr(0),Mr(0),function(){Gr(65499),Gr(132),Mr(0);for(var Ja=0;Ja<64;Ja++)Mr(E[Ja]);Mr(1);for(var Ma=0;Ma<64;Ma++)Mr(U[Ma])}(),function(Ja,Ma){Gr(65472),Gr(17),Mr(8),Gr(Ma),Gr(Ja),Mr(3),Mr(1),Mr(17),Mr(0),Mr(2),Mr(17),Mr(1),Mr(3),Mr(17),Mr(1)}(tt.width,tt.height),function(){Gr(65476),Gr(418),Mr(0);for(var Ja=0;Ja<16;Ja++)Mr(or[Ja+1]);for(var Ma=0;Ma<=11;Ma++)Mr(Lt[Ma]);Mr(16);for(var es=0;es<16;es++)Mr(xr[es+1]);for(var wo=0;wo<=161;wo++)Mr(it[wo]);Mr(1);for(var Wa=0;Wa<16;Wa++)Mr(wt[Wa+1]);for(var Ks=0;Ks<=11;Ks++)Mr(Wt[Ks]);Mr(17);for(var fo=0;fo<16;fo++)Mr(jt[fo+1]);for(var Ba=0;Ba<=161;Ba++)Mr(Tr[Ba])}(),Gr(65498),Gr(12),Mr(3),Mr(1),Mr(0),Mr(2),Mr(17),Mr(3),Mr(17),Mr(0),Mr(63),Mr(0);var Dt=0,qt=0,dr=0;yt=0,st=7,this.encode.displayName="_encode_";for(var _r,$r,Qr,gn,Qn,vi,Fi,sn,Ft,Wo=tt.data,_o=tt.width,Ta=tt.height,Gn=4*_o,xa=0;xa<Ta;){for(_r=0;_r<Gn;){for(Qn=Gn*xa+_r,Fi=-1,sn=0,Ft=0;Ft<64;Ft++)vi=Qn+(sn=Ft>>3)*Gn+(Fi=4*(7&Ft)),xa+sn>=Ta&&(vi-=Gn*(xa+1+sn-Ta)),_r+Fi>=Gn&&(vi-=_r+Fi-Gn+4),$r=Wo[vi++],Qr=Wo[vi++],gn=Wo[vi++],Gt[Ft]=(rn[$r]+rn[Qr+256|0]+rn[gn+512|0]>>16)-128,Qt[Ft]=(rn[$r+768|0]+rn[Qr+1024|0]+rn[gn+1280|0]>>16)-128,It[Ft]=(rn[$r+1280|0]+rn[Qr+1536|0]+rn[gn+1792|0]>>16)-128;Dt=Zn(Gt,Z,Dt,o,l),qt=Zn(Qt,oe,qt,a,A),dr=Zn(It,oe,dr,a,A),_r+=32}xa+=8}if(st>=0){var ui=[];ui[1]=st+1,ui[0]=(1<<st+1)-1,Jr(ui)}return Gr(65497),new Uint8Array(ut)},n=n||50,function(){for(var tt=String.fromCharCode,_t=0;_t<256;_t++)Ir[_t]=tt(_t)}(),o=Zr(or,Lt),a=Zr(wt,Wt),l=Zr(xr,it),A=Zr(jt,Tr),function(){for(var tt=1,_t=2,Dt=1;Dt<=15;Dt++){for(var qt=tt;qt<_t;qt++)Ze[32767+qt]=Dt,Re[32767+qt]=[],Re[32767+qt][1]=Dt,Re[32767+qt][0]=qt;for(var dr=-(_t-1);dr<=-tt;dr++)Ze[32767+dr]=Dt,Re[32767+dr]=[],Re[32767+dr][1]=Dt,Re[32767+dr][0]=_t-1+dr;tt<<=1,_t<<=1}}(),function(){for(var tt=0;tt<256;tt++)rn[tt]=19595*tt,rn[tt+256|0]=38470*tt,rn[tt+512|0]=7471*tt+32768,rn[tt+768|0]=-11059*tt,rn[tt+1024|0]=-21709*tt,rn[tt+1280|0]=32768*tt+8421375,rn[tt+1536|0]=-27439*tt,rn[tt+1792|0]=-5329*tt}(),En(n)}function du(n,o){if(this.pos=0,this.buffer=n,this.datav=new DataView(n.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 Ip(n){function o(Lt){if(!Lt)throw Error("assert :P")}function a(Lt,xr,it){for(var wt=0;4>wt;wt++)if(Lt[xr+wt]!=it.charCodeAt(wt))return!0;return!1}function l(Lt,xr,it,wt,Wt){for(var jt=0;jt<Wt;jt++)Lt[xr+jt]=it[wt+jt]}function A(Lt,xr,it,wt){for(var Wt=0;Wt<wt;Wt++)Lt[xr+Wt]=it}function m(Lt){return new Int32Array(Lt)}function N(Lt,xr){for(var it=[],wt=0;wt<Lt;wt++)it.push(new xr);return it}function E(Lt,xr){var it=[];return function wt(Wt,jt,Tr){for(var Zr=Tr[jt],Jr=0;Jr<Zr&&(Wt.push(Tr.length>jt+1?[]:new xr),!(Tr.length<jt+1));Jr++)wt(Wt[Jr],jt+1,Tr)}(it,0,Lt),it}var U=function(){var Lt=this;function xr(h,B){for(var Q=1<<B-1>>>0;h&Q;)Q>>>=1;return Q?(h&Q-1)+Q:h}function it(h,B,Q,ge,Ke){o(!(ge%Q));do h[B+(ge-=Q)]=Ke;while(0<ge)}function wt(h,B,Q,ge,Ke){if(o(2328>=Ke),512>=Ke)var Ve=m(512);else if((Ve=m(Ke))==null)return 0;return function(Ge,ot,At,ft,Ht,vr){var xt,ir,mr=ot,Xr=1<<At,Br=m(16),cn=m(16);for(o(Ht!=0),o(ft!=null),o(Ge!=null),o(0<At),ir=0;ir<Ht;++ir){if(15<ft[ir])return 0;++Br[ft[ir]]}if(Br[0]==Ht)return 0;for(cn[1]=0,xt=1;15>xt;++xt){if(Br[xt]>1<<xt)return 0;cn[xt+1]=cn[xt]+Br[xt]}for(ir=0;ir<Ht;++ir)xt=ft[ir],0<ft[ir]&&(vr[cn[xt]++]=ir);if(cn[15]==1)return(ft=new Wt).g=0,ft.value=vr[0],it(Ge,mr,1,Xr,ft),Xr;var bn,Vn=-1,kn=Xr-1,Ea=0,sa=1,Ko=1,va=1<<At;for(ir=0,xt=1,Ht=2;xt<=At;++xt,Ht<<=1){if(sa+=Ko<<=1,0>(Ko-=Br[xt]))return 0;for(;0<Br[xt];--Br[xt])(ft=new Wt).g=xt,ft.value=vr[ir++],it(Ge,mr+Ea,Ht,va,ft),Ea=xr(Ea,xt)}for(xt=At+1,Ht=2;15>=xt;++xt,Ht<<=1){if(sa+=Ko<<=1,0>(Ko-=Br[xt]))return 0;for(;0<Br[xt];--Br[xt]){if(ft=new Wt,(Ea&kn)!=Vn){for(mr+=va,bn=1<<(Vn=xt)-At;15>Vn&&!(0>=(bn-=Br[Vn]));)++Vn,bn<<=1;Xr+=va=1<<(bn=Vn-At),Ge[ot+(Vn=Ea&kn)].g=bn+At,Ge[ot+Vn].value=mr-ot-Vn}ft.g=xt-At,ft.value=vr[ir++],it(Ge,mr+(Ea>>At),Ht,va,ft),Ea=xr(Ea,xt)}}return sa!=2*cn[15]-1?0:Xr}(h,B,Q,ge,Ke,Ve)}function Wt(){this.value=this.g=0}function jt(){this.value=this.g=0}function Tr(){this.G=N(5,Wt),this.H=m(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=N(s0,jt)}function Zr(h,B,Q,ge){o(h!=null),o(B!=null),o(2147483648>ge),h.Ca=254,h.I=0,h.b=-8,h.Ka=0,h.oa=B,h.pa=Q,h.Jd=B,h.Yc=Q+ge,h.Zc=4<=ge?Q+ge-4+1:Q,$r(h)}function Jr(h,B){for(var Q=0;0<B--;)Q|=gn(h,128)<<B;return Q}function Mr(h,B){var Q=Jr(h,B);return Qr(h)?-Q:Q}function Gr(h,B,Q,ge){var Ke,Ve=0;for(o(h!=null),o(B!=null),o(4294967288>ge),h.Sb=ge,h.Ra=0,h.u=0,h.h=0,4<ge&&(ge=4),Ke=0;Ke<ge;++Ke)Ve+=B[Q+Ke]<<8*Ke;h.Ra=Ve,h.bb=ge,h.oa=B,h.pa=Q}function Zn(h){for(;8<=h.u&&h.bb<h.Sb;)h.Ra>>>=8,h.Ra+=h.oa[h.pa+h.bb]<<l0-8>>>0,++h.bb,h.u-=8;qt(h)&&(h.h=1,h.u=0)}function En(h,B){if(o(0<=B),!h.h&&B<=yu){var Q=Dt(h)&DA[B];return h.u+=B,Zn(h),Q}return h.h=1,h.u=0}function tt(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function _t(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function Dt(h){return h.Ra>>>(h.u&l0-1)>>>0}function qt(h){return o(h.bb<=h.Sb),h.h||h.bb==h.Sb&&h.u>l0}function dr(h,B){h.u=B,h.h=qt(h)}function _r(h){h.u>=ph&&(o(h.u>=ph),Zn(h))}function $r(h){o(h!=null&&h.oa!=null),h.pa<h.Zc?(h.I=(h.oa[h.pa++]|h.I<<8)>>>0,h.b+=8):(o(h!=null&&h.oa!=null),h.pa<h.Yc?(h.b+=8,h.I=h.oa[h.pa++]|h.I<<8):h.Ka?h.b=0:(h.I<<=8,h.b+=8,h.Ka=1))}function Qr(h){return Jr(h,1)}function gn(h,B){var Q=h.Ca;0>h.b&&$r(h);var ge=h.b,Ke=Q*B>>>8,Ve=(h.I>>>ge>Ke)+0;for(Ve?(Q-=Ke,h.I-=Ke+1<<ge>>>0):Q=Ke+1,ge=Q,Ke=0;256<=ge;)Ke+=8,ge>>=8;return ge=7^Ke+nf[ge],h.b-=ge,h.Ca=(Q<<ge)-1,Ve}function Qn(h,B,Q){h[B+0]=Q>>24&255,h[B+1]=Q>>16&255,h[B+2]=Q>>8&255,h[B+3]=255&Q}function vi(h,B){return h[B+0]|h[B+1]<<8}function Fi(h,B){return vi(h,B)|h[B+2]<<16}function sn(h,B){return vi(h,B)|vi(h,B+2)<<16}function Ft(h,B){var Q=1<<B;return o(h!=null),o(0<B),h.X=m(Q),h.X==null?0:(h.Mb=32-B,h.Xa=B,1)}function Wo(h,B){o(h!=null),o(B!=null),o(h.Xa==B.Xa),l(B.X,0,h.X,0,1<<B.Xa)}function _o(){this.X=[],this.Xa=this.Mb=0}function Ta(h,B,Q,ge){o(Q!=null),o(ge!=null);var Ke=Q[0],Ve=ge[0];return Ke==0&&(Ke=(h*Ve+B/2)/B),Ve==0&&(Ve=(B*Ke+h/2)/h),0>=Ke||0>=Ve?0:(Q[0]=Ke,ge[0]=Ve,1)}function Gn(h,B){return h+(1<<B)-1>>>B}function xa(h,B){return((4278255360&h)+(4278255360&B)>>>0&4278255360)+((16711935&h)+(16711935&B)>>>0&16711935)>>>0}function ui(h,B){Lt[B]=function(Q,ge,Ke,Ve,Ge,ot,At){var ft;for(ft=0;ft<Ge;++ft){var Ht=Lt[h](ot[At+ft-1],Ke,Ve+ft);ot[At+ft]=xa(Q[ge+ft],Ht)}}}function Ja(){this.ud=this.hd=this.jd=0}function Ma(h,B){return((4278124286&(h^B))>>>1)+(h&B)>>>0}function es(h){return 0<=h&&256>h?h:0>h?0:255<h?255:void 0}function wo(h,B){return es(h+(h-B+.5>>1))}function Wa(h,B,Q){return Math.abs(B-Q)-Math.abs(h-Q)}function Ks(h,B,Q,ge,Ke,Ve,Ge){for(ge=Ve[Ge-1],Q=0;Q<Ke;++Q)Ve[Ge+Q]=ge=xa(h[B+Q],ge)}function fo(h,B,Q,ge,Ke){var Ve;for(Ve=0;Ve<Q;++Ve){var Ge=h[B+Ve],ot=Ge>>8&255,At=16711935&(At=(At=16711935&Ge)+((ot<<16)+ot));ge[Ke+Ve]=(4278255360&Ge)+At>>>0}}function Ba(h,B){B.jd=255&h,B.hd=h>>8&255,B.ud=h>>16&255}function ro(h,B,Q,ge,Ke,Ve){var Ge;for(Ge=0;Ge<ge;++Ge){var ot=B[Q+Ge],At=ot>>>8,ft=ot,Ht=255&(Ht=(Ht=ot>>>16)+((h.jd<<24>>24)*(At<<24>>24)>>>5));ft=255&(ft=(ft+=(h.hd<<24>>24)*(At<<24>>24)>>>5)+((h.ud<<24>>24)*(Ht<<24>>24)>>>5)),Ke[Ve+Ge]=(4278255360&ot)+(Ht<<16)+ft}}function Sa(h,B,Q,ge,Ke){Lt[B]=function(Ve,Ge,ot,At,ft,Ht,vr,xt,ir){for(At=vr;At<xt;++At)for(vr=0;vr<ir;++vr)ft[Ht++]=Ke(ot[ge(Ve[Ge++])])},Lt[h]=function(Ve,Ge,ot,At,ft,Ht,vr){var xt=8>>Ve.b,ir=Ve.Ea,mr=Ve.K[0],Xr=Ve.w;if(8>xt)for(Ve=(1<<Ve.b)-1,Xr=(1<<xt)-1;Ge<ot;++Ge){var Br,cn=0;for(Br=0;Br<ir;++Br)Br&Ve||(cn=ge(At[ft++])),Ht[vr++]=Ke(mr[cn&Xr]),cn>>=xt}else Lt["VP8LMapColor"+Q](At,ft,mr,Xr,Ht,vr,Ge,ot,ir)}}function yl(h,B,Q,ge,Ke){for(Q=B+Q;B<Q;){var Ve=h[B++];ge[Ke++]=Ve>>16&255,ge[Ke++]=Ve>>8&255,ge[Ke++]=255&Ve}}function Ds(h,B,Q,ge,Ke){for(Q=B+Q;B<Q;){var Ve=h[B++];ge[Ke++]=Ve>>16&255,ge[Ke++]=Ve>>8&255,ge[Ke++]=255&Ve,ge[Ke++]=Ve>>24&255}}function ga(h,B,Q,ge,Ke){for(Q=B+Q;B<Q;){var Ve=(Ge=h[B++])>>16&240|Ge>>12&15,Ge=240&Ge|Ge>>28&15;ge[Ke++]=Ve,ge[Ke++]=Ge}}function xo(h,B,Q,ge,Ke){for(Q=B+Q;B<Q;){var Ve=(Ge=h[B++])>>16&248|Ge>>13&7,Ge=Ge>>5&224|Ge>>3&31;ge[Ke++]=Ve,ge[Ke++]=Ge}}function ul(h,B,Q,ge,Ke){for(Q=B+Q;B<Q;){var Ve=h[B++];ge[Ke++]=255&Ve,ge[Ke++]=Ve>>8&255,ge[Ke++]=Ve>>16&255}}function ka(h,B,Q,ge,Ke,Ve){if(Ve==0)for(Q=B+Q;B<Q;)Qn(ge,((Ve=h[B++])[0]>>24|Ve[1]>>8&65280|Ve[2]<<8&16711680|Ve[3]<<24)>>>0),Ke+=32;else l(ge,Ke,h,B,Q)}function ns(h,B){Lt[B][0]=Lt[h+"0"],Lt[B][1]=Lt[h+"1"],Lt[B][2]=Lt[h+"2"],Lt[B][3]=Lt[h+"3"],Lt[B][4]=Lt[h+"4"],Lt[B][5]=Lt[h+"5"],Lt[B][6]=Lt[h+"6"],Lt[B][7]=Lt[h+"7"],Lt[B][8]=Lt[h+"8"],Lt[B][9]=Lt[h+"9"],Lt[B][10]=Lt[h+"10"],Lt[B][11]=Lt[h+"11"],Lt[B][12]=Lt[h+"12"],Lt[B][13]=Lt[h+"13"],Lt[B][14]=Lt[h+"0"],Lt[B][15]=Lt[h+"0"]}function Co(h){return h==dg||h==sf||h==cc||h==f0}function ql(){this.eb=[],this.size=this.A=this.fb=0}function Pl(){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 is(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new ql,this.f.kb=new Pl,this.sd=null}function Ya(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Hs(){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 zh(h){return alert("todo:WebPSamplerProcessPlane"),h.T}function jc(h,B){var Q=h.T,ge=B.ba.f.RGBA,Ke=ge.eb,Ve=ge.fb+h.ka*ge.A,Ge=Gu[B.ba.S],ot=h.y,At=h.O,ft=h.f,Ht=h.N,vr=h.ea,xt=h.W,ir=B.cc,mr=B.dc,Xr=B.Mc,Br=B.Nc,cn=h.ka,bn=h.ka+h.T,Vn=h.U,kn=Vn+1>>1;for(cn==0?Ge(ot,At,null,null,ft,Ht,vr,xt,ft,Ht,vr,xt,Ke,Ve,null,null,Vn):(Ge(B.ec,B.fc,ot,At,ir,mr,Xr,Br,ft,Ht,vr,xt,Ke,Ve-ge.A,Ke,Ve,Vn),++Q);cn+2<bn;cn+=2)ir=ft,mr=Ht,Xr=vr,Br=xt,Ht+=h.Rc,xt+=h.Rc,Ve+=2*ge.A,Ge(ot,(At+=2*h.fa)-h.fa,ot,At,ir,mr,Xr,Br,ft,Ht,vr,xt,Ke,Ve-ge.A,Ke,Ve,Vn);return At+=h.fa,h.j+bn<h.o?(l(B.ec,B.fc,ot,At,Vn),l(B.cc,B.dc,ft,Ht,kn),l(B.Mc,B.Nc,vr,xt,kn),Q--):1&bn||Ge(ot,At,null,null,ft,Ht,vr,xt,ft,Ht,vr,xt,Ke,Ve+ge.A,null,null,Vn),Q}function Ff(h,B,Q){var ge=h.F,Ke=[h.J];if(ge!=null){var Ve=h.U,Ge=B.ba.S,ot=Ge==sp||Ge==cc;B=B.ba.f.RGBA;var At=[0],ft=h.ka;At[0]=h.T,h.Kb&&(ft==0?--At[0]:(--ft,Ke[0]-=h.width),h.j+h.ka+h.T==h.o&&(At[0]=h.o-h.j-ft));var Ht=B.eb;ft=B.fb+ft*B.A,h=cg(ge,Ke[0],h.width,Ve,At,Ht,ft+(ot?0:3),B.A),o(Q==At),h&&Co(Ge)&&Hp(Ht,ft,ot,Ve,At,B.A)}return 0}function Vd(h){var B=h.ma,Q=B.ba.S,ge=11>Q,Ke=Q==Mm||Q==jp||Q==sp||Q==ug||Q==12||Co(Q);if(B.memory=null,B.Ib=null,B.Jb=null,B.Nd=null,!Ul(B.Oa,h,Ke?11:12))return 0;if(Ke&&Co(Q)&&Ro(),h.da)alert("todo:use_scaling");else{if(ge){if(B.Ib=zh,h.Kb){if(Q=h.U+1>>1,B.memory=m(h.U+2*Q),B.memory==null)return 0;B.ec=B.memory,B.fc=0,B.cc=B.ec,B.dc=B.fc+h.U,B.Mc=B.cc,B.Nc=B.dc+Q,B.Ib=jc,Ro()}}else alert("todo:EmitYUV");Ke&&(B.Jb=Ff,ge&&Ku())}if(ge&&!nt){for(h=0;256>h;++h)vt[h]=89858*(h-128)+k>>u,_n[h]=-22014*(h-128)+k,Cr[h]=-45773*(h-128),St[h]=113618*(h-128)+k>>u;for(h=j;h<X;++h)B=76283*(h-16)+k>>u,wr[h-j]=hl(B,255),nn[h-j]=hl(B+8>>4,15);nt=1}return 1}function Ka(h){var B=h.ma,Q=h.U,ge=h.T;return o(!(1&h.ka)),0>=Q||0>=ge?0:(Q=B.Ib(h,B),B.Jb!=null&&B.Jb(h,B,Q),B.Dc+=Q,1)}function Mf(h){h.ma.memory=null}function Lf(h,B,Q,ge){return En(h,8)!=47?0:(B[0]=En(h,14)+1,Q[0]=En(h,14)+1,ge[0]=En(h,1),En(h,3)!=0?0:!h.h)}function pu(h,B){if(4>h)return h+1;var Q=h-2>>1;return(2+(1&h)<<Q)+En(B,Q)+1}function mu(h,B){return 120<B?B-120:1<=(Q=((Q=Rg[B-1])>>4)*h+(8-(15&Q)))?Q:1;var Q}function lc(h,B,Q){var ge=Dt(Q),Ke=h[B+=255&ge].g-8;return 0<Ke&&(dr(Q,Q.u+8),ge=Dt(Q),B+=h[B].value,B+=ge&(1<<Ke)-1),dr(Q,Q.u+h[B].g),h[B].value}function Ss(h,B,Q){return Q.g+=h.g,Q.value+=h.value<<B>>>0,o(8>=Q.g),h.g}function dl(h,B,Q){var ge=h.xc;return o((B=ge==0?0:h.vc[h.md*(Q>>ge)+(B>>ge)])<h.Wb),h.Ya[B]}function Wd(h,B,Q,ge){var Ke=h.ab,Ve=h.c*B,Ge=h.C;B=Ge+B;var ot=Q,At=ge;for(ge=h.Ta,Q=h.Ua;0<Ke--;){var ft=h.gc[Ke],Ht=Ge,vr=B,xt=ot,ir=At,mr=(At=ge,ot=Q,ft.Ea);switch(o(Ht<vr),o(vr<=ft.nc),ft.hc){case 2:rc(xt,ir,(vr-Ht)*mr,At,ot);break;case 0:var Xr=Ht,Br=vr,cn=At,bn=ot,Vn=(va=ft).Ea;Xr==0&&(af(xt,ir,null,null,1,cn,bn),Ks(xt,ir+1,0,0,Vn-1,cn,bn+1),ir+=Vn,bn+=Vn,++Xr);for(var kn=1<<va.b,Ea=kn-1,sa=Gn(Vn,va.b),Ko=va.K,va=va.w+(Xr>>va.b)*sa;Xr<Br;){var _s=Ko,dA=va,Ho=1;for(np(xt,ir,cn,bn-Vn,1,cn,bn);Ho<Vn;){var ba=(Ho&~Ea)+kn;ba>Vn&&(ba=Vn),(0,ip[_s[dA++]>>8&15])(xt,ir+ +Ho,cn,bn+Ho-Vn,ba-Ho,cn,bn+Ho),Ho=ba}ir+=Vn,bn+=Vn,++Xr&Ea||(va+=sa)}vr!=ft.nc&&l(At,ot-mr,At,ot+(vr-Ht-1)*mr,mr);break;case 1:for(mr=xt,Br=ir,Vn=(xt=ft.Ea)-(bn=xt&~(cn=(ir=1<<ft.b)-1)),Xr=Gn(xt,ft.b),kn=ft.K,ft=ft.w+(Ht>>ft.b)*Xr;Ht<vr;){for(Ea=kn,sa=ft,Ko=new Ja,va=Br+bn,_s=Br+xt;Br<va;)Ba(Ea[sa++],Ko),Qp(Ko,mr,Br,ir,At,ot),Br+=ir,ot+=ir;Br<_s&&(Ba(Ea[sa++],Ko),Qp(Ko,mr,Br,Vn,At,ot),Br+=Vn,ot+=Vn),++Ht&cn||(ft+=Xr)}break;case 3:if(xt==At&&ir==ot&&0<ft.b){for(Br=At,xt=mr=ot+(vr-Ht)*mr-(bn=(vr-Ht)*Gn(ft.Ea,ft.b)),ir=At,cn=ot,Xr=[],bn=(Vn=bn)-1;0<=bn;--bn)Xr[bn]=ir[cn+bn];for(bn=Vn-1;0<=bn;--bn)Br[xt+bn]=Xr[bn];Cm(ft,Ht,vr,At,mr,At,ot)}else Cm(ft,Ht,vr,xt,ir,At,ot)}ot=ge,At=Q}At!=Q&&l(ge,Q,ot,At,Ve)}function Gd(h,B){var Q=h.V,ge=h.Ba+h.c*h.C,Ke=B-h.C;if(o(B<=h.l.o),o(16>=Ke),0<Ke){var Ve=h.l,Ge=h.Ta,ot=h.Ua,At=Ve.width;if(Wd(h,Ke,Q,ge),Ke=ot=[ot],o((Q=h.C)<(ge=B)),o(Ve.v<Ve.va),ge>Ve.o&&(ge=Ve.o),Q<Ve.j){var ft=Ve.j-Q;Q=Ve.j,Ke[0]+=ft*At}if(Q>=ge?Q=0:(Ke[0]+=4*Ve.v,Ve.ka=Q-Ve.j,Ve.U=Ve.va-Ve.v,Ve.T=ge-Q,Q=1),Q){if(ot=ot[0],11>(Q=h.ca).S){var Ht=Q.f.RGBA,vr=(ge=Q.S,Ke=Ve.U,Ve=Ve.T,ft=Ht.eb,Ht.A),xt=Ve;for(Ht=Ht.fb+h.Ma*Ht.A;0<xt--;){var ir=Ge,mr=ot,Xr=Ke,Br=ft,cn=Ht;switch(ge){case Fm:ap(ir,mr,Xr,Br,cn);break;case Mm:Pf(ir,mr,Xr,Br,cn);break;case dg:Pf(ir,mr,Xr,Br,cn),Hp(Br,cn,0,Xr,1,0);break;case Pg:gh(ir,mr,Xr,Br,cn);break;case jp:ka(ir,mr,Xr,Br,cn,1);break;case sf:ka(ir,mr,Xr,Br,cn,1),Hp(Br,cn,0,Xr,1,0);break;case sp:ka(ir,mr,Xr,Br,cn,0);break;case cc:ka(ir,mr,Xr,Br,cn,0),Hp(Br,cn,1,Xr,1,0);break;case ug:mh(ir,mr,Xr,Br,cn);break;case f0:mh(ir,mr,Xr,Br,cn),Lg(Br,cn,Xr,1,0);break;case Qo:ps(ir,mr,Xr,Br,cn);break;default:o(0)}ot+=At,Ht+=vr}h.Ma+=Ve}else alert("todo:EmitRescaledRowsYUVA");o(h.Ma<=Q.height)}}h.C=B,o(h.C<=h.i)}function Uu(h){var B;if(0<h.ua)return 0;for(B=0;B<h.Wb;++B){var Q=h.Ya[B].G,ge=h.Ya[B].H;if(0<Q[1][ge[1]+0].g||0<Q[2][ge[2]+0].g||0<Q[3][ge[3]+0].g)return 0}return 1}function gu(h,B,Q,ge,Ke,Ve){if(h.Z!=0){var Ge=h.qd,ot=h.rd;for(o(yh[h.Z]!=null);B<Q;++B)yh[h.Z](Ge,ot,ge,Ke,ge,Ke,Ve),Ge=ge,ot=Ke,Ke+=Ve;h.qd=Ge,h.rd=ot}}function lA(h,B){var Q=h.l.ma,ge=Q.Z==0||Q.Z==1?h.l.j:h.C;if(ge=h.C<ge?ge:h.C,o(B<=h.l.o),B>ge){var Ke=h.l.width,Ve=Q.ca,Ge=Q.tb+Ke*ge,ot=h.V,At=h.Ba+h.c*ge,ft=h.gc;o(h.ab==1),o(ft[0].hc==3),Zu(ft[0],ge,B,ot,At,Ve,Ge),gu(Q,ge,B,Ve,Ge,Ke)}h.C=h.Ma=B}function vu(h,B,Q,ge,Ke,Ve,Ge){var ot=h.$/ge,At=h.$%ge,ft=h.m,Ht=h.s,vr=Q+h.$,xt=vr;Ke=Q+ge*Ke;var ir=Q+ge*Ve,mr=280+Ht.ua,Xr=h.Pb?ot:16777216,Br=0<Ht.ua?Ht.Wa:null,cn=Ht.wc,bn=vr<ir?dl(Ht,At,ot):null;o(h.C<Ve),o(ir<=Ke);var Vn=!1;e:for(;;){for(;Vn||vr<ir;){var kn=0;if(ot>=Xr){var Ea=vr-Q;o((Xr=h).Pb),Xr.wd=Xr.m,Xr.xd=Ea,0<Xr.s.ua&&Wo(Xr.s.Wa,Xr.s.vb),Xr=ot+Kg}if(At&cn||(bn=dl(Ht,At,ot)),o(bn!=null),bn.Qb&&(B[vr]=bn.qb,Vn=!0),!Vn)if(_r(ft),bn.jc){kn=ft,Ea=B;var sa=vr,Ko=bn.pd[Dt(kn)&s0-1];o(bn.jc),256>Ko.g?(dr(kn,kn.u+Ko.g),Ea[sa]=Ko.value,kn=0):(dr(kn,kn.u+Ko.g-256),o(256<=Ko.value),kn=Ko.value),kn==0&&(Vn=!0)}else kn=lc(bn.G[0],bn.H[0],ft);if(ft.h)break;if(Vn||256>kn){if(!Vn)if(bn.nd)B[vr]=(bn.qb|kn<<8)>>>0;else{if(_r(ft),Vn=lc(bn.G[1],bn.H[1],ft),_r(ft),Ea=lc(bn.G[2],bn.H[2],ft),sa=lc(bn.G[3],bn.H[3],ft),ft.h)break;B[vr]=(sa<<24|Vn<<16|kn<<8|Ea)>>>0}if(Vn=!1,++vr,++At>=ge&&(At=0,++ot,Ge!=null&&ot<=Ve&&!(ot%16)&&Ge(h,ot),Br!=null))for(;xt<vr;)kn=B[xt++],Br.X[(506832829*kn&4294967295)>>>Br.Mb]=kn}else if(280>kn){if(kn=pu(kn-256,ft),Ea=lc(bn.G[4],bn.H[4],ft),_r(ft),Ea=mu(ge,Ea=pu(Ea,ft)),ft.h)break;if(vr-Q<Ea||Ke-vr<kn)break e;for(sa=0;sa<kn;++sa)B[vr+sa]=B[vr+sa-Ea];for(vr+=kn,At+=kn;At>=ge;)At-=ge,++ot,Ge!=null&&ot<=Ve&&!(ot%16)&&Ge(h,ot);if(o(vr<=Ke),At&cn&&(bn=dl(Ht,At,ot)),Br!=null)for(;xt<vr;)kn=B[xt++],Br.X[(506832829*kn&4294967295)>>>Br.Mb]=kn}else{if(!(kn<mr))break e;for(Vn=kn-280,o(Br!=null);xt<vr;)kn=B[xt++],Br.X[(506832829*kn&4294967295)>>>Br.Mb]=kn;kn=vr,o(!(Vn>>>(Ea=Br).Xa)),B[kn]=Ea.X[Vn],Vn=!0}Vn||o(ft.h==qt(ft))}if(h.Pb&&ft.h&&vr<Ke)o(h.m.h),h.a=5,h.m=h.wd,h.$=h.xd,0<h.s.ua&&Wo(h.s.vb,h.s.Wa);else{if(ft.h)break e;Ge!=null&&Ge(h,ot>Ve?Ve:ot),h.a=0,h.$=vr-Q}return 1}return h.a=3,0}function Ru(h){o(h!=null),h.vc=null,h.yc=null,h.Ya=null;var B=h.Wa;B!=null&&(B.X=null),h.vb=null,o(h!=null)}function $h(){var h=new ha;return h==null?null:(h.a=0,h.xb=c1,ns("Predictor","VP8LPredictors"),ns("Predictor","VP8LPredictors_C"),ns("PredictorAdd","VP8LPredictorsAdd"),ns("PredictorAdd","VP8LPredictorsAdd_C"),rc=fo,Qp=ro,ap=yl,Pf=Ds,mh=ga,ps=xo,gh=ul,Lt.VP8LMapColor32b=$u,Lt.VP8LMapColor8b=c0,h)}function Xd(h,B,Q,ge,Ke){var Ve=1,Ge=[h],ot=[B],At=ge.m,ft=ge.s,Ht=null,vr=0;e:for(;;){if(Q)for(;Ve&&En(At,1);){var xt=Ge,ir=ot,mr=ge,Xr=1,Br=mr.m,cn=mr.gc[mr.ab],bn=En(Br,2);if(mr.Oc&1<<bn)Ve=0;else{switch(mr.Oc|=1<<bn,cn.hc=bn,cn.Ea=xt[0],cn.nc=ir[0],cn.K=[null],++mr.ab,o(4>=mr.ab),bn){case 0:case 1:cn.b=En(Br,3)+2,Xr=Xd(Gn(cn.Ea,cn.b),Gn(cn.nc,cn.b),0,mr,cn.K),cn.K=cn.K[0];break;case 3:var Vn,kn=En(Br,8)+1,Ea=16<kn?0:4<kn?1:2<kn?2:3;if(xt[0]=Gn(cn.Ea,Ea),cn.b=Ea,Vn=Xr=Xd(kn,1,0,mr,cn.K)){var sa,Ko=kn,va=cn,_s=1<<(8>>va.b),dA=m(_s);if(dA==null)Vn=0;else{var Ho=va.K[0],ba=va.w;for(dA[0]=va.K[0][0],sa=1;sa<1*Ko;++sa)dA[sa]=xa(Ho[ba+sa],dA[sa-1]);for(;sa<4*_s;++sa)dA[sa]=0;va.K[0]=null,va.K[0]=dA,Vn=1}}Xr=Vn;break;case 2:break;default:o(0)}Ve=Xr}}if(Ge=Ge[0],ot=ot[0],Ve&&En(At,1)&&!(Ve=1<=(vr=En(At,4))&&11>=vr)){ge.a=3;break e}var Mi;if(Mi=Ve)t:{var $c,Do,Ns,nc=ge,QA=Ge,xu=ot,Lc=vr,eu=Q,Cu=nc.m,fA=nc.s,js=[null],ml=1,kc=0,gl=Qg[Lc];r:for(;;){if(eu&&En(Cu,1)){var KA=En(Cu,3)+2,Rf=Gn(QA,KA),Zc=Gn(xu,KA),Xu=Rf*Zc;if(!Xd(Rf,Zc,0,nc,js))break r;for(js=js[0],fA.xc=KA,$c=0;$c<Xu;++$c){var Fl=js[$c]>>8&65535;js[$c]=Fl,Fl>=ml&&(ml=Fl+1)}}if(Cu.h)break r;for(Do=0;5>Do;++Do){var hA=h0[Do];!Do&&0<Lc&&(hA+=1<<Lc),kc<hA&&(kc=hA)}var Cd=N(ml*gl,Wt),Bu=ml,Bd=N(Bu,Tr);if(Bd==null)var Sd=null;else o(65536>=Bu),Sd=Bd;var Ju=m(kc);if(Sd==null||Ju==null||Cd==null){nc.a=1;break r}var Ed=Cd;for($c=Ns=0;$c<ml;++$c){var Rl=Sd[$c],_d=Rl.G,Qf=Rl.H,$p=0,m0=1,HA=0;for(Do=0;5>Do;++Do){hA=h0[Do],_d[Do]=Ed,Qf[Do]=Ns,!Do&&0<Lc&&(hA+=1<<Lc);i:{var jg,A1=hA,zg=nc,hg=Ju,hv=Ed,pv=Ns,u1=0,Ap=zg.m,mv=En(Ap,1);if(A(hg,0,0,A1),mv){var gv=En(Ap,1)+1,vv=En(Ap,1),x1=En(Ap,vv==0?1:8);hg[x1]=1,gv==2&&(hg[x1=En(Ap,8)]=1);var $g=1}else{var C1=m(19),B1=En(Ap,4)+4;if(19<B1){zg.a=3;var Zg=0;break i}for(jg=0;jg<B1;++jg)C1[Ug[jg]]=En(Ap,3);var d1=void 0,pg=void 0,S1=zg,bv=C1,Vg=A1,E1=hg,f1=0,up=S1.m,_1=8,I1=N(128,Wt);n:for(;wt(I1,0,7,bv,19);){if(En(up,1)){var yv=2+2*En(up,3);if((d1=2+En(up,yv))>Vg)break n}else d1=Vg;for(pg=0;pg<Vg&&d1--;){_r(up);var F1=I1[0+(127&Dt(up))];dr(up,up.u+F1.g);var Lm=F1.value;if(16>Lm)E1[pg++]=Lm,Lm!=0&&(_1=Lm);else{var wv=Lm==16,M1=Lm-16,xv=zp[M1],L1=En(up,Uf[M1])+xv;if(pg+L1>Vg)break n;for(var Cv=wv?_1:0;0<L1--;)E1[pg++]=Cv}}f1=1;break n}f1||(S1.a=3),$g=f1}($g=$g&&!Ap.h)&&(u1=wt(hv,pv,8,hg,A1)),$g&&u1!=0?Zg=u1:(zg.a=3,Zg=0)}if(Zg==0)break r;if(m0&&Tg[Do]==1&&(m0=Ed[Ns].g==0),$p+=Ed[Ns].g,Ns+=Zg,3>=Do){var mg,h1=Ju[0];for(mg=1;mg<hA;++mg)Ju[mg]>h1&&(h1=Ju[mg]);HA+=h1}}if(Rl.nd=m0,Rl.Qb=0,m0&&(Rl.qb=(_d[3][Qf[3]+0].value<<24|_d[1][Qf[1]+0].value<<16|_d[2][Qf[2]+0].value)>>>0,$p==0&&256>_d[0][Qf[0]+0].value&&(Rl.Qb=1,Rl.qb+=_d[0][Qf[0]+0].value<<8)),Rl.jc=!Rl.Qb&&6>HA,Rl.jc){var Wg,g0=Rl;for(Wg=0;Wg<s0;++Wg){var dp=Wg,fp=g0.pd[dp],Gg=g0.G[0][g0.H[0]+dp];256<=Gg.value?(fp.g=Gg.g+256,fp.value=Gg.value):(fp.g=0,fp.value=0,dp>>=Ss(Gg,8,fp),dp>>=Ss(g0.G[1][g0.H[1]+dp],16,fp),dp>>=Ss(g0.G[2][g0.H[2]+dp],0,fp),Ss(g0.G[3][g0.H[3]+dp],24,fp))}}}fA.vc=js,fA.Wb=ml,fA.Ya=Sd,fA.yc=Cd,Mi=1;break t}Mi=0}if(!(Ve=Mi)){ge.a=3;break e}if(0<vr){if(ft.ua=1<<vr,!Ft(ft.Wa,vr)){ge.a=1,Ve=0;break e}}else ft.ua=0;var p1=ge,k1=Ge,Bv=ot,m1=p1.s,g1=m1.xc;if(p1.c=k1,p1.i=Bv,m1.md=Gn(k1,g1),m1.wc=g1==0?-1:(1<<g1)-1,Q){ge.xb=y1;break e}if((Ht=m(Ge*ot))==null){ge.a=1,Ve=0;break e}Ve=(Ve=vu(ge,Ht,0,Ge,ot,ot,null))&&!At.h;break e}return Ve?(Ke!=null?Ke[0]=Ht:(o(Ht==null),o(Q)),ge.$=0,Q||Ru(ft)):Ru(ft),Ve}function Zh(h,B){var Q=h.c*h.i,ge=Q+B+16*B;return o(h.c<=B),h.V=m(ge),h.V==null?(h.Ta=null,h.Ua=0,h.a=1,0):(h.Ta=h.V,h.Ua=h.Ba+Q+B,1)}function Vh(h,B){var Q=h.C,ge=B-Q,Ke=h.V,Ve=h.Ba+h.c*Q;for(o(B<=h.l.o);0<ge;){var Ge=16<ge?16:ge,ot=h.l.ma,At=h.l.width,ft=At*Ge,Ht=ot.ca,vr=ot.tb+At*Q,xt=h.Ta,ir=h.Ua;Wd(h,Ge,Ke,Ve),kg(xt,ir,Ht,vr,ft),gu(ot,Q,Q+Ge,Ht,vr,At),ge-=Ge,Ke+=Ge*h.c,Q+=Ge}o(Q==B),h.C=h.Ma=B}function $0(){this.ub=this.yd=this.td=this.Rb=0}function Wh(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Fp(){this.Fb=this.Bb=this.Cb=0,this.Zb=m(4),this.Lb=m(4)}function Mp(){this.Yb=function(){var h=[];return function B(Q,ge,Ke){for(var Ve=Ke[ge],Ge=0;Ge<Ve&&(Q.push(Ke.length>ge+1?[]:0),!(Ke.length<ge+1));Ge++)B(Q[Ge],ge+1,Ke)}(h,0,[3,11]),h}()}function pm(){this.jb=m(3),this.Wc=E([4,8],Mp),this.Xc=E([4,17],Mp)}function mm(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new m(4),this.od=new m(4)}function YA(){this.ld=this.La=this.dd=this.tc=0}function Gh(){this.Na=this.la=0}function Lp(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function kp(){this.ad=m(384),this.Za=0,this.Ob=m(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Z0(){this.uc=this.M=this.Nb=0,this.wa=Array(new YA),this.Y=0,this.ya=Array(new kp),this.aa=0,this.l=new Qu}function V0(){this.y=m(16),this.f=m(8),this.ea=m(8)}function Dp(){this.cb=this.a=0,this.sc="",this.m=new tt,this.Od=new $0,this.Kc=new Wh,this.ed=new mm,this.Qa=new Fp,this.Ic=this.$c=this.Aa=0,this.D=new Z0,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=N(8,tt),this.ia=0,this.pb=N(4,Lp),this.Pa=new pm,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new V0),this.Hd=0,this.rb=Array(new Gh),this.sb=0,this.wa=Array(new YA),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 kp),this.L=this.aa=0,this.gd=E([4,2],YA),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 Qu(){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 Xh(){var h=new Dp;return h!=null&&(h.a=0,h.sc="OK",h.cb=0,h.Xb=0,cp||(cp=kf)),h}function ec(h,B,Q){return h.a==0&&(h.a=B,h.sc=Q,h.cb=0),0}function W0(h,B,Q){return 3<=Q&&h[B+0]==157&&h[B+1]==1&&h[B+2]==42}function Np(h,B){if(h==null)return 0;if(h.a=0,h.sc="OK",B==null)return ec(h,2,"null VP8Io passed to VP8GetHeaders()");var Q=B.data,ge=B.w,Ke=B.ha;if(4>Ke)return ec(h,7,"Truncated header.");var Ve=Q[ge+0]|Q[ge+1]<<8|Q[ge+2]<<16,Ge=h.Od;if(Ge.Rb=!(1&Ve),Ge.td=Ve>>1&7,Ge.yd=Ve>>4&1,Ge.ub=Ve>>5,3<Ge.td)return ec(h,3,"Incorrect keyframe parameters.");if(!Ge.yd)return ec(h,4,"Frame not displayable.");ge+=3,Ke-=3;var ot=h.Kc;if(Ge.Rb){if(7>Ke)return ec(h,7,"cannot parse picture header");if(!W0(Q,ge,Ke))return ec(h,3,"Bad code word");ot.c=16383&(Q[ge+4]<<8|Q[ge+3]),ot.Td=Q[ge+4]>>6,ot.i=16383&(Q[ge+6]<<8|Q[ge+5]),ot.Ud=Q[ge+6]>>6,ge+=7,Ke-=7,h.za=ot.c+15>>4,h.Ub=ot.i+15>>4,B.width=ot.c,B.height=ot.i,B.Da=0,B.j=0,B.v=0,B.va=B.width,B.o=B.height,B.da=0,B.ib=B.width,B.hb=B.height,B.U=B.width,B.T=B.height,A((Ve=h.Pa).jb,0,255,Ve.jb.length),o((Ve=h.Qa)!=null),Ve.Cb=0,Ve.Bb=0,Ve.Fb=1,A(Ve.Zb,0,0,Ve.Zb.length),A(Ve.Lb,0,0,Ve.Lb)}if(Ge.ub>Ke)return ec(h,7,"bad partition length");Zr(Ve=h.m,Q,ge,Ge.ub),ge+=Ge.ub,Ke-=Ge.ub,Ge.Rb&&(ot.Ld=Qr(Ve),ot.Kd=Qr(Ve)),ot=h.Qa;var At,ft=h.Pa;if(o(Ve!=null),o(ot!=null),ot.Cb=Qr(Ve),ot.Cb){if(ot.Bb=Qr(Ve),Qr(Ve)){for(ot.Fb=Qr(Ve),At=0;4>At;++At)ot.Zb[At]=Qr(Ve)?Mr(Ve,7):0;for(At=0;4>At;++At)ot.Lb[At]=Qr(Ve)?Mr(Ve,6):0}if(ot.Bb)for(At=0;3>At;++At)ft.jb[At]=Qr(Ve)?Jr(Ve,8):255}else ot.Bb=0;if(Ve.Ka)return ec(h,3,"cannot parse segment header");if((ot=h.ed).zd=Qr(Ve),ot.Tb=Jr(Ve,6),ot.wb=Jr(Ve,3),ot.Pc=Qr(Ve),ot.Pc&&Qr(Ve)){for(ft=0;4>ft;++ft)Qr(Ve)&&(ot.vd[ft]=Mr(Ve,6));for(ft=0;4>ft;++ft)Qr(Ve)&&(ot.od[ft]=Mr(Ve,6))}if(h.L=ot.Tb==0?0:ot.zd?1:2,Ve.Ka)return ec(h,3,"cannot parse filter header");var Ht=Ke;if(Ke=At=ge,ge=At+Ht,ot=Ht,h.Xb=(1<<Jr(h.m,2))-1,Ht<3*(ft=h.Xb))Q=7;else{for(At+=3*ft,ot-=3*ft,Ht=0;Ht<ft;++Ht){var vr=Q[Ke+0]|Q[Ke+1]<<8|Q[Ke+2]<<16;vr>ot&&(vr=ot),Zr(h.Jc[+Ht],Q,At,vr),At+=vr,ot-=vr,Ke+=3}Zr(h.Jc[+ft],Q,At,ot),Q=At<ge?0:5}if(Q!=0)return ec(h,Q,"cannot parse partitions");for(Q=Jr(At=h.m,7),Ke=Qr(At)?Mr(At,4):0,ge=Qr(At)?Mr(At,4):0,ot=Qr(At)?Mr(At,4):0,ft=Qr(At)?Mr(At,4):0,At=Qr(At)?Mr(At,4):0,Ht=h.Qa,vr=0;4>vr;++vr){if(Ht.Cb){var xt=Ht.Zb[vr];Ht.Fb||(xt+=Q)}else{if(0<vr){h.pb[vr]=h.pb[0];continue}xt=Q}var ir=h.pb[vr];ir.Sc[0]=fg[hl(xt+Ke,127)],ir.Sc[1]=lp[hl(xt+0,127)],ir.Eb[0]=2*fg[hl(xt+ge,127)],ir.Eb[1]=101581*lp[hl(xt+ot,127)]>>16,8>ir.Eb[1]&&(ir.Eb[1]=8),ir.Qc[0]=fg[hl(xt+ft,117)],ir.Qc[1]=lp[hl(xt+At,127)],ir.lc=xt+At}if(!Ge.Rb)return ec(h,4,"Not a key frame.");for(Qr(Ve),Ge=h.Pa,Q=0;4>Q;++Q){for(Ke=0;8>Ke;++Ke)for(ge=0;3>ge;++ge)for(ot=0;11>ot;++ot)ft=gn(Ve,s1[Q][Ke][ge][ot])?Jr(Ve,8):o1[Q][Ke][ge][ot],Ge.Wc[Q][Ke].Yb[ge][ot]=ft;for(Ke=0;17>Ke;++Ke)Ge.Xc[Q][Ke]=Ge.Wc[Q][l1[Ke]]}return h.kc=Qr(Ve),h.kc&&(h.Bd=Jr(Ve,8)),h.cb=1}function kf(h,B,Q,ge,Ke,Ve,Ge){var ot=B[Ke].Yb[Q];for(Q=0;16>Ke;++Ke){if(!gn(h,ot[Q+0]))return Ke;for(;!gn(h,ot[Q+1]);)if(ot=B[++Ke].Yb[0],Q=0,Ke==16)return 16;var At=B[Ke+1].Yb;if(gn(h,ot[Q+2])){var ft=h,Ht=0;if(gn(ft,(xt=ot)[(vr=Q)+3]))if(gn(ft,xt[vr+6])){for(ot=0,vr=2*(Ht=gn(ft,xt[vr+8]))+(xt=gn(ft,xt[vr+9+Ht])),Ht=0,xt=i1[vr];xt[ot];++ot)Ht+=Ht+gn(ft,xt[ot]);Ht+=3+(8<<vr)}else gn(ft,xt[vr+7])?(Ht=7+2*gn(ft,165),Ht+=gn(ft,145)):Ht=5+gn(ft,159);else Ht=gn(ft,xt[vr+4])?3+gn(ft,xt[vr+5]):2;ot=At[2]}else Ht=1,ot=At[1];At=Ge+a1[Ke],0>(ft=h).b&&$r(ft);var vr,xt=ft.b,ir=(vr=ft.Ca>>1)-(ft.I>>xt)>>31;--ft.b,ft.Ca+=ir,ft.Ca|=1,ft.I-=(vr+1&ir)<<xt,Ve[At]=((Ht^ir)-ir)*ge[(0<Ke)+0]}return 16}function ch(h){var B=h.rb[h.sb-1];B.la=0,B.Na=0,A(h.zc,0,0,h.zc.length),h.ja=0}function gd(h,B,Q,ge,Ke){Ke=h[B+Q+32*ge]+(Ke>>3),h[B+Q+32*ge]=-256&Ke?0>Ke?0:255:Ke}function vd(h,B,Q,ge,Ke,Ve){gd(h,B,0,Q,ge+Ke),gd(h,B,1,Q,ge+Ve),gd(h,B,2,Q,ge-Ve),gd(h,B,3,Q,ge-Ke)}function gc(h){return(20091*h>>16)+h}function G0(h,B,Q,ge){var Ke,Ve=0,Ge=m(16);for(Ke=0;4>Ke;++Ke){var ot=h[B+0]+h[B+8],At=h[B+0]-h[B+8],ft=(35468*h[B+4]>>16)-gc(h[B+12]),Ht=gc(h[B+4])+(35468*h[B+12]>>16);Ge[Ve+0]=ot+Ht,Ge[Ve+1]=At+ft,Ge[Ve+2]=At-ft,Ge[Ve+3]=ot-Ht,Ve+=4,B++}for(Ke=Ve=0;4>Ke;++Ke)ot=(h=Ge[Ve+0]+4)+Ge[Ve+8],At=h-Ge[Ve+8],ft=(35468*Ge[Ve+4]>>16)-gc(Ge[Ve+12]),gd(Q,ge,0,0,ot+(Ht=gc(Ge[Ve+4])+(35468*Ge[Ve+12]>>16))),gd(Q,ge,1,0,At+ft),gd(Q,ge,2,0,At-ft),gd(Q,ge,3,0,ot-Ht),Ve++,ge+=32}function tg(h,B,Q,ge){var Ke=h[B+0]+4,Ve=35468*h[B+4]>>16,Ge=gc(h[B+4]),ot=35468*h[B+1]>>16;vd(Q,ge,0,Ke+Ge,h=gc(h[B+1]),ot),vd(Q,ge,1,Ke+Ve,h,ot),vd(Q,ge,2,Ke-Ve,h,ot),vd(Q,ge,3,Ke-Ge,h,ot)}function X0(h,B,Q,ge,Ke){G0(h,B,Q,ge),Ke&&G0(h,B+16,Q,ge+4)}function rg(h,B,Q,ge){A0(h,B+0,Q,ge,1),A0(h,B+32,Q,ge+128,1)}function bd(h,B,Q,ge){var Ke;for(h=h[B+0]+4,Ke=0;4>Ke;++Ke)for(B=0;4>B;++B)gd(Q,ge,B,Ke,h)}function gm(h,B,Q,ge){h[B+0]&&qs(h,B+0,Q,ge),h[B+16]&&qs(h,B+16,Q,ge+4),h[B+32]&&qs(h,B+32,Q,ge+128),h[B+48]&&qs(h,B+48,Q,ge+128+4)}function vm(h,B,Q,ge){var Ke,Ve=m(16);for(Ke=0;4>Ke;++Ke){var Ge=h[B+0+Ke]+h[B+12+Ke],ot=h[B+4+Ke]+h[B+8+Ke],At=h[B+4+Ke]-h[B+8+Ke],ft=h[B+0+Ke]-h[B+12+Ke];Ve[0+Ke]=Ge+ot,Ve[8+Ke]=Ge-ot,Ve[4+Ke]=ft+At,Ve[12+Ke]=ft-At}for(Ke=0;4>Ke;++Ke)Ge=(h=Ve[0+4*Ke]+3)+Ve[3+4*Ke],ot=Ve[1+4*Ke]+Ve[2+4*Ke],At=Ve[1+4*Ke]-Ve[2+4*Ke],ft=h-Ve[3+4*Ke],Q[ge+0]=Ge+ot>>3,Q[ge+16]=ft+At>>3,Q[ge+32]=Ge-ot>>3,Q[ge+48]=ft-At>>3,ge+=64}function cA(h,B,Q){var ge,Ke=B-32,Ve=wu,Ge=255-h[Ke-1];for(ge=0;ge<Q;++ge){var ot,At=Ve,ft=Ge+h[B-1];for(ot=0;ot<Q;++ot)h[B+ot]=At[ft+h[Ke+ot]];B+=32}}function Es(h,B){cA(h,B,4)}function AA(h,B){cA(h,B,8)}function Tl(h,B){cA(h,B,16)}function J0(h,B){var Q;for(Q=0;16>Q;++Q)l(h,B+32*Q,h,B-32,16)}function Y0(h,B){var Q;for(Q=16;0<Q;--Q)A(h,B,h[B-1],16),B+=32}function Jd(h,B,Q){var ge;for(ge=0;16>ge;++ge)A(B,Q+32*ge,h,16)}function Ah(h,B){var Q,ge=16;for(Q=0;16>Q;++Q)ge+=h[B-1+32*Q]+h[B+Q-32];Jd(ge>>5,h,B)}function ng(h,B){var Q,ge=8;for(Q=0;16>Q;++Q)ge+=h[B-1+32*Q];Jd(ge>>4,h,B)}function Jh(h,B){var Q,ge=8;for(Q=0;16>Q;++Q)ge+=h[B+Q-32];Jd(ge>>4,h,B)}function q0(h,B){Jd(128,h,B)}function ho(h,B,Q){return h+2*B+Q+2>>2}function ig(h,B){var Q,ge=B-32;for(ge=new Uint8Array([ho(h[ge-1],h[ge+0],h[ge+1]),ho(h[ge+0],h[ge+1],h[ge+2]),ho(h[ge+1],h[ge+2],h[ge+3]),ho(h[ge+2],h[ge+3],h[ge+4])]),Q=0;4>Q;++Q)l(h,B+32*Q,ge,0,ge.length)}function ag(h,B){var Q=h[B-1],ge=h[B-1+32],Ke=h[B-1+64],Ve=h[B-1+96];Qn(h,B+0,16843009*ho(h[B-1-32],Q,ge)),Qn(h,B+32,16843009*ho(Q,ge,Ke)),Qn(h,B+64,16843009*ho(ge,Ke,Ve)),Qn(h,B+96,16843009*ho(Ke,Ve,Ve))}function og(h,B){var Q,ge=4;for(Q=0;4>Q;++Q)ge+=h[B+Q-32]+h[B-1+32*Q];for(ge>>=3,Q=0;4>Q;++Q)A(h,B+32*Q,ge,4)}function sg(h,B){var Q=h[B-1+0],ge=h[B-1+32],Ke=h[B-1+64],Ve=h[B-1-32],Ge=h[B+0-32],ot=h[B+1-32],At=h[B+2-32],ft=h[B+3-32];h[B+0+96]=ho(ge,Ke,h[B-1+96]),h[B+1+96]=h[B+0+64]=ho(Q,ge,Ke),h[B+2+96]=h[B+1+64]=h[B+0+32]=ho(Ve,Q,ge),h[B+3+96]=h[B+2+64]=h[B+1+32]=h[B+0+0]=ho(Ge,Ve,Q),h[B+3+64]=h[B+2+32]=h[B+1+0]=ho(ot,Ge,Ve),h[B+3+32]=h[B+2+0]=ho(At,ot,Ge),h[B+3+0]=ho(ft,At,ot)}function yd(h,B){var Q=h[B+1-32],ge=h[B+2-32],Ke=h[B+3-32],Ve=h[B+4-32],Ge=h[B+5-32],ot=h[B+6-32],At=h[B+7-32];h[B+0+0]=ho(h[B+0-32],Q,ge),h[B+1+0]=h[B+0+32]=ho(Q,ge,Ke),h[B+2+0]=h[B+1+32]=h[B+0+64]=ho(ge,Ke,Ve),h[B+3+0]=h[B+2+32]=h[B+1+64]=h[B+0+96]=ho(Ke,Ve,Ge),h[B+3+32]=h[B+2+64]=h[B+1+96]=ho(Ve,Ge,ot),h[B+3+64]=h[B+2+96]=ho(Ge,ot,At),h[B+3+96]=ho(ot,At,At)}function wd(h,B){var Q=h[B-1+0],ge=h[B-1+32],Ke=h[B-1+64],Ve=h[B-1-32],Ge=h[B+0-32],ot=h[B+1-32],At=h[B+2-32],ft=h[B+3-32];h[B+0+0]=h[B+1+64]=Ve+Ge+1>>1,h[B+1+0]=h[B+2+64]=Ge+ot+1>>1,h[B+2+0]=h[B+3+64]=ot+At+1>>1,h[B+3+0]=At+ft+1>>1,h[B+0+96]=ho(Ke,ge,Q),h[B+0+64]=ho(ge,Q,Ve),h[B+0+32]=h[B+1+96]=ho(Q,Ve,Ge),h[B+1+32]=h[B+2+96]=ho(Ve,Ge,ot),h[B+2+32]=h[B+3+96]=ho(Ge,ot,At),h[B+3+32]=ho(ot,At,ft)}function lg(h,B){var Q=h[B+0-32],ge=h[B+1-32],Ke=h[B+2-32],Ve=h[B+3-32],Ge=h[B+4-32],ot=h[B+5-32],At=h[B+6-32],ft=h[B+7-32];h[B+0+0]=Q+ge+1>>1,h[B+1+0]=h[B+0+64]=ge+Ke+1>>1,h[B+2+0]=h[B+1+64]=Ke+Ve+1>>1,h[B+3+0]=h[B+2+64]=Ve+Ge+1>>1,h[B+0+32]=ho(Q,ge,Ke),h[B+1+32]=h[B+0+96]=ho(ge,Ke,Ve),h[B+2+32]=h[B+1+96]=ho(Ke,Ve,Ge),h[B+3+32]=h[B+2+96]=ho(Ve,Ge,ot),h[B+3+64]=ho(Ge,ot,At),h[B+3+96]=ho(ot,At,ft)}function Op(h,B){var Q=h[B-1+0],ge=h[B-1+32],Ke=h[B-1+64],Ve=h[B-1+96];h[B+0+0]=Q+ge+1>>1,h[B+2+0]=h[B+0+32]=ge+Ke+1>>1,h[B+2+32]=h[B+0+64]=Ke+Ve+1>>1,h[B+1+0]=ho(Q,ge,Ke),h[B+3+0]=h[B+1+32]=ho(ge,Ke,Ve),h[B+3+32]=h[B+1+64]=ho(Ke,Ve,Ve),h[B+3+64]=h[B+2+64]=h[B+0+96]=h[B+1+96]=h[B+2+96]=h[B+3+96]=Ve}function ep(h,B){var Q=h[B-1+0],ge=h[B-1+32],Ke=h[B-1+64],Ve=h[B-1+96],Ge=h[B-1-32],ot=h[B+0-32],At=h[B+1-32],ft=h[B+2-32];h[B+0+0]=h[B+2+32]=Q+Ge+1>>1,h[B+0+32]=h[B+2+64]=ge+Q+1>>1,h[B+0+64]=h[B+2+96]=Ke+ge+1>>1,h[B+0+96]=Ve+Ke+1>>1,h[B+3+0]=ho(ot,At,ft),h[B+2+0]=ho(Ge,ot,At),h[B+1+0]=h[B+3+32]=ho(Q,Ge,ot),h[B+1+32]=h[B+3+64]=ho(ge,Q,Ge),h[B+1+64]=h[B+3+96]=ho(Ke,ge,Q),h[B+1+96]=ho(Ve,Ke,ge)}function uh(h,B){var Q;for(Q=0;8>Q;++Q)l(h,B+32*Q,h,B-32,8)}function Yh(h,B){var Q;for(Q=0;8>Q;++Q)A(h,B,h[B-1],8),B+=32}function tp(h,B,Q){var ge;for(ge=0;8>ge;++ge)A(B,Q+32*ge,h,8)}function qh(h,B){var Q,ge=8;for(Q=0;8>Q;++Q)ge+=h[B+Q-32]+h[B-1+32*Q];tp(ge>>4,h,B)}function bm(h,B){var Q,ge=4;for(Q=0;8>Q;++Q)ge+=h[B+Q-32];tp(ge>>3,h,B)}function e0(h,B){var Q,ge=4;for(Q=0;8>Q;++Q)ge+=h[B-1+32*Q];tp(ge>>3,h,B)}function Pp(h,B){tp(128,h,B)}function t0(h,B,Q){var ge=h[B-Q],Ke=h[B+0],Ve=3*(Ke-ge)+d0[1020+h[B-2*Q]-h[B+Q]],Ge=Im[112+(Ve+4>>3)];h[B-Q]=wu[255+ge+Im[112+(Ve+3>>3)]],h[B+0]=wu[255+Ke-Ge]}function r0(h,B,Q,ge){var Ke=h[B+0],Ve=h[B+Q];return bc[255+h[B-2*Q]-h[B-Q]]>ge||bc[255+Ve-Ke]>ge}function Yd(h,B,Q,ge){return 4*bc[255+h[B-Q]-h[B+0]]+bc[255+h[B-2*Q]-h[B+Q]]<=ge}function RA(h,B,Q,ge,Ke){var Ve=h[B-3*Q],Ge=h[B-2*Q],ot=h[B-Q],At=h[B+0],ft=h[B+Q],Ht=h[B+2*Q],vr=h[B+3*Q];return 4*bc[255+ot-At]+bc[255+Ge-ft]>ge?0:bc[255+h[B-4*Q]-Ve]<=Ke&&bc[255+Ve-Ge]<=Ke&&bc[255+Ge-ot]<=Ke&&bc[255+vr-Ht]<=Ke&&bc[255+Ht-ft]<=Ke&&bc[255+ft-At]<=Ke}function n0(h,B,Q,ge){var Ke=2*ge+1;for(ge=0;16>ge;++ge)Yd(h,B+ge,Q,Ke)&&t0(h,B+ge,Q)}function Df(h,B,Q,ge){var Ke=2*ge+1;for(ge=0;16>ge;++ge)Yd(h,B+ge*Q,1,Ke)&&t0(h,B+ge*Q,1)}function Tp(h,B,Q,ge){var Ke;for(Ke=3;0<Ke;--Ke)n0(h,B+=4*Q,Q,ge)}function rp(h,B,Q,ge){var Ke;for(Ke=3;0<Ke;--Ke)Df(h,B+=4,Q,ge)}function qd(h,B,Q,ge,Ke,Ve,Ge,ot){for(Ve=2*Ve+1;0<Ke--;){if(RA(h,B,Q,Ve,Ge))if(r0(h,B,Q,ot))t0(h,B,Q);else{var At=h,ft=B,Ht=Q,vr=At[ft-2*Ht],xt=At[ft-Ht],ir=At[ft+0],mr=At[ft+Ht],Xr=At[ft+2*Ht],Br=27*(bn=d0[1020+3*(ir-xt)+d0[1020+vr-mr]])+63>>7,cn=18*bn+63>>7,bn=9*bn+63>>7;At[ft-3*Ht]=wu[255+At[ft-3*Ht]+bn],At[ft-2*Ht]=wu[255+vr+cn],At[ft-Ht]=wu[255+xt+Br],At[ft+0]=wu[255+ir-Br],At[ft+Ht]=wu[255+mr-cn],At[ft+2*Ht]=wu[255+Xr-bn]}B+=ge}}function ef(h,B,Q,ge,Ke,Ve,Ge,ot){for(Ve=2*Ve+1;0<Ke--;){if(RA(h,B,Q,Ve,Ge))if(r0(h,B,Q,ot))t0(h,B,Q);else{var At=h,ft=B,Ht=Q,vr=At[ft-Ht],xt=At[ft+0],ir=At[ft+Ht],mr=Im[112+(4+(Xr=3*(xt-vr))>>3)],Xr=Im[112+(Xr+3>>3)],Br=mr+1>>1;At[ft-2*Ht]=wu[255+At[ft-2*Ht]+Br],At[ft-Ht]=wu[255+vr+Xr],At[ft+0]=wu[255+xt-mr],At[ft+Ht]=wu[255+ir-Br]}B+=ge}}function ym(h,B,Q,ge,Ke,Ve){qd(h,B,Q,1,16,ge,Ke,Ve)}function Nf(h,B,Q,ge,Ke,Ve){qd(h,B,1,Q,16,ge,Ke,Ve)}function dh(h,B,Q,ge,Ke,Ve){var Ge;for(Ge=3;0<Ge;--Ge)ef(h,B+=4*Q,Q,1,16,ge,Ke,Ve)}function Up(h,B,Q,ge,Ke,Ve){var Ge;for(Ge=3;0<Ge;--Ge)ef(h,B+=4,1,Q,16,ge,Ke,Ve)}function z(h,B,Q,ge,Ke,Ve,Ge,ot){qd(h,B,Ke,1,8,Ve,Ge,ot),qd(Q,ge,Ke,1,8,Ve,Ge,ot)}function He(h,B,Q,ge,Ke,Ve,Ge,ot){qd(h,B,1,Ke,8,Ve,Ge,ot),qd(Q,ge,1,Ke,8,Ve,Ge,ot)}function Bt(h,B,Q,ge,Ke,Ve,Ge,ot){ef(h,B+4*Ke,Ke,1,8,Ve,Ge,ot),ef(Q,ge+4*Ke,Ke,1,8,Ve,Ge,ot)}function Zt(h,B,Q,ge,Ke,Ve,Ge,ot){ef(h,B+4,1,Ke,8,Ve,Ge,ot),ef(Q,ge+4,1,Ke,8,Ve,Ge,ot)}function gr(){this.ba=new is,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Hs,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function un(){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 In(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function aa(){this.ua=0,this.Wa=new _o,this.vb=new _o,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new Tr,this.yc=new Wt}function ha(){this.xb=this.a=0,this.l=new Qu,this.ca=new is,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new _t,this.Pb=0,this.wd=new _t,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new aa,this.ab=0,this.gc=N(4,In),this.Oc=0}function Ga(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Qu,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function no(h,B,Q,ge,Ke,Ve,Ge){for(h=h==null?0:h[B+0],B=0;B<Ge;++B)Ke[Ve+B]=h+Q[ge+B]&255,h=Ke[Ve+B]}function da(h,B,Q,ge,Ke,Ve,Ge){var ot;if(h==null)no(null,null,Q,ge,Ke,Ve,Ge);else for(ot=0;ot<Ge;++ot)Ke[Ve+ot]=h[B+ot]+Q[ge+ot]&255}function tc(h,B,Q,ge,Ke,Ve,Ge){if(h==null)no(null,null,Q,ge,Ke,Ve,Ge);else{var ot,At=h[B+0],ft=At,Ht=At;for(ot=0;ot<Ge;++ot)ft=Ht+(At=h[B+ot])-ft,Ht=Q[ge+ot]+(-256&ft?0>ft?0:255:ft)&255,ft=At,Ke[Ve+ot]=Ht}}function Ic(h,B,Q,ge){var Ke=B.width,Ve=B.o;if(o(h!=null&&B!=null),0>Q||0>=ge||Q+ge>Ve)return null;if(!h.Cc){if(h.ga==null){var Ge;if(h.ga=new Ga,(Ge=h.ga==null)||(Ge=B.width*B.o,o(h.Gb.length==0),h.Gb=m(Ge),h.Uc=0,h.Gb==null?Ge=0:(h.mb=h.Gb,h.nb=h.Uc,h.rc=null,Ge=1),Ge=!Ge),!Ge){Ge=h.ga;var ot=h.Fa,At=h.P,ft=h.qc,Ht=h.mb,vr=h.nb,xt=At+1,ir=ft-1,mr=Ge.l;if(o(ot!=null&&Ht!=null&&B!=null),yh[0]=null,yh[1]=no,yh[2]=da,yh[3]=tc,Ge.ca=Ht,Ge.tb=vr,Ge.c=B.width,Ge.i=B.height,o(0<Ge.c&&0<Ge.i),1>=ft)B=0;else if(Ge.$a=3&ot[At+0],Ge.Z=ot[At+0]>>2&3,Ge.Lc=ot[At+0]>>4&3,At=ot[At+0]>>6&3,0>Ge.$a||1<Ge.$a||4<=Ge.Z||1<Ge.Lc||At)B=0;else if(mr.put=Ka,mr.ac=Vd,mr.bc=Mf,mr.ma=Ge,mr.width=B.width,mr.height=B.height,mr.Da=B.Da,mr.v=B.v,mr.va=B.va,mr.j=B.j,mr.o=B.o,Ge.$a)e:{o(Ge.$a==1),B=$h();t:for(;;){if(B==null){B=0;break e}if(o(Ge!=null),Ge.mc=B,B.c=Ge.c,B.i=Ge.i,B.l=Ge.l,B.l.ma=Ge,B.l.width=Ge.c,B.l.height=Ge.i,B.a=0,Gr(B.m,ot,xt,ir),!Xd(Ge.c,Ge.i,1,B,null)||(B.ab==1&&B.gc[0].hc==3&&Uu(B.s)?(Ge.ic=1,ot=B.c*B.i,B.Ta=null,B.Ua=0,B.V=m(ot),B.Ba=0,B.V==null?(B.a=1,B=0):B=1):(Ge.ic=0,B=Zh(B,Ge.c)),!B))break t;B=1;break e}Ge.mc=null,B=0}else B=ir>=Ge.c*Ge.i;Ge=!B}if(Ge)return null;h.ga.Lc!=1?h.Ga=0:ge=Ve-Q}o(h.ga!=null),o(Q+ge<=Ve);e:{if(B=(ot=h.ga).c,Ve=ot.l.o,ot.$a==0){if(xt=h.rc,ir=h.Vc,mr=h.Fa,At=h.P+1+Q*B,ft=h.mb,Ht=h.nb+Q*B,o(At<=h.P+h.qc),ot.Z!=0)for(o(yh[ot.Z]!=null),Ge=0;Ge<ge;++Ge)yh[ot.Z](xt,ir,mr,At,ft,Ht,B),xt=ft,ir=Ht,Ht+=B,At+=B;else for(Ge=0;Ge<ge;++Ge)l(ft,Ht,mr,At,B),xt=ft,ir=Ht,Ht+=B,At+=B;h.rc=xt,h.Vc=ir}else{if(o(ot.mc!=null),B=Q+ge,o((Ge=ot.mc)!=null),o(B<=Ge.i),Ge.C>=B)B=1;else if(ot.ic||Ku(),ot.ic){ot=Ge.V,xt=Ge.Ba,ir=Ge.c;var Xr=Ge.i,Br=(mr=1,At=Ge.$/ir,ft=Ge.$%ir,Ht=Ge.m,vr=Ge.s,Ge.$),cn=ir*Xr,bn=ir*B,Vn=vr.wc,kn=Br<bn?dl(vr,ft,At):null;o(Br<=cn),o(B<=Xr),o(Uu(vr));t:for(;;){for(;!Ht.h&&Br<bn;){if(ft&Vn||(kn=dl(vr,ft,At)),o(kn!=null),_r(Ht),256>(Xr=lc(kn.G[0],kn.H[0],Ht)))ot[xt+Br]=Xr,++Br,++ft>=ir&&(ft=0,++At<=B&&!(At%16)&&lA(Ge,At));else{if(!(280>Xr)){mr=0;break t}Xr=pu(Xr-256,Ht);var Ea,sa=lc(kn.G[4],kn.H[4],Ht);if(_r(Ht),!(Br>=(sa=mu(ir,sa=pu(sa,Ht)))&&cn-Br>=Xr)){mr=0;break t}for(Ea=0;Ea<Xr;++Ea)ot[xt+Br+Ea]=ot[xt+Br+Ea-sa];for(Br+=Xr,ft+=Xr;ft>=ir;)ft-=ir,++At<=B&&!(At%16)&&lA(Ge,At);Br<bn&&ft&Vn&&(kn=dl(vr,ft,At))}o(Ht.h==qt(Ht))}lA(Ge,At>B?B:At);break t}!mr||Ht.h&&Br<cn?(mr=0,Ge.a=Ht.h?5:3):Ge.$=Br,B=mr}else B=vu(Ge,Ge.V,Ge.Ba,Ge.c,Ge.i,B,Vh);if(!B){ge=0;break e}}Q+ge>=Ve&&(h.Cc=1),ge=1}if(!ge)return null;if(h.Cc&&((ge=h.ga)!=null&&(ge.mc=null),h.ga=null,0<h.Ga))return alert("todo:WebPDequantizeLevels"),null}return h.nb+Q*Ke}function wl(h,B,Q,ge,Ke,Ve){for(;0<Ke--;){var Ge,ot=h,At=B+(Q?1:0),ft=h,Ht=B+(Q?0:3);for(Ge=0;Ge<ge;++Ge){var vr=ft[Ht+4*Ge];vr!=255&&(vr*=32897,ot[At+4*Ge+0]=ot[At+4*Ge+0]*vr>>23,ot[At+4*Ge+1]=ot[At+4*Ge+1]*vr>>23,ot[At+4*Ge+2]=ot[At+4*Ge+2]*vr>>23)}B+=Ve}}function fl(h,B,Q,ge,Ke){for(;0<ge--;){var Ve;for(Ve=0;Ve<Q;++Ve){var Ge=h[B+2*Ve+0],ot=15&(ft=h[B+2*Ve+1]),At=4369*ot,ft=(240&ft|ft>>4)*At>>16;h[B+2*Ve+0]=(240&Ge|Ge>>4)*At>>16&240|(15&Ge|Ge<<4)*At>>16>>4&15,h[B+2*Ve+1]=240&ft|ot}B+=Ke}}function Fc(h,B,Q,ge,Ke,Ve,Ge,ot){var At,ft,Ht=255;for(ft=0;ft<Ke;++ft){for(At=0;At<ge;++At){var vr=h[B+At];Ve[Ge+4*At]=vr,Ht&=vr}B+=Q,Ge+=ot}return Ht!=255}function uA(h,B,Q,ge,Ke){var Ve;for(Ve=0;Ve<Ke;++Ve)Q[ge+Ve]=h[B+Ve]>>8}function Ku(){Hp=wl,Lg=fl,cg=Fc,kg=uA}function qA(h,B,Q){Lt[h]=function(ge,Ke,Ve,Ge,ot,At,ft,Ht,vr,xt,ir,mr,Xr,Br,cn,bn,Vn){var kn,Ea=Vn-1>>1,sa=ot[At+0]|ft[Ht+0]<<16,Ko=vr[xt+0]|ir[mr+0]<<16;o(ge!=null);var va=3*sa+Ko+131074>>2;for(B(ge[Ke+0],255&va,va>>16,Xr,Br),Ve!=null&&(va=3*Ko+sa+131074>>2,B(Ve[Ge+0],255&va,va>>16,cn,bn)),kn=1;kn<=Ea;++kn){var _s=ot[At+kn]|ft[Ht+kn]<<16,dA=vr[xt+kn]|ir[mr+kn]<<16,Ho=sa+_s+Ko+dA+524296,ba=Ho+2*(_s+Ko)>>3;va=ba+sa>>1,sa=(Ho=Ho+2*(sa+dA)>>3)+_s>>1,B(ge[Ke+2*kn-1],255&va,va>>16,Xr,Br+(2*kn-1)*Q),B(ge[Ke+2*kn-0],255&sa,sa>>16,Xr,Br+(2*kn-0)*Q),Ve!=null&&(va=Ho+Ko>>1,sa=ba+dA>>1,B(Ve[Ge+2*kn-1],255&va,va>>16,cn,bn+(2*kn-1)*Q),B(Ve[Ge+2*kn+0],255&sa,sa>>16,cn,bn+(2*kn+0)*Q)),sa=_s,Ko=dA}1&Vn||(va=3*sa+Ko+131074>>2,B(ge[Ke+Vn-1],255&va,va>>16,Xr,Br+(Vn-1)*Q),Ve!=null&&(va=3*Ko+sa+131074>>2,B(Ve[Ge+Vn-1],255&va,va>>16,cn,bn+(Vn-1)*Q)))}}function Ro(){Gu[Fm]=w1,Gu[Mm]=t,Gu[Pg]=e,Gu[jp]=r,Gu[sp]=i,Gu[ug]=s,Gu[Qo]=c,Gu[dg]=t,Gu[sf]=r,Gu[cc]=i,Gu[f0]=s}function Hu(h){return h&~Pe?0>h?0:255:h>>ce}function ju(h,B){return Hu((19077*h>>8)+(26149*B>>8)-14234)}function tf(h,B,Q){return Hu((19077*h>>8)-(6419*B>>8)-(13320*Q>>8)+8708)}function zu(h,B){return Hu((19077*h>>8)+(33050*B>>8)-17685)}function Of(h,B,Q,ge,Ke){ge[Ke+0]=ju(h,Q),ge[Ke+1]=tf(h,B,Q),ge[Ke+2]=zu(h,B)}function i0(h,B,Q,ge,Ke){ge[Ke+0]=zu(h,B),ge[Ke+1]=tf(h,B,Q),ge[Ke+2]=ju(h,Q)}function Mc(h,B,Q,ge,Ke){var Ve=tf(h,B,Q);B=Ve<<3&224|zu(h,B)>>3,ge[Ke+0]=248&ju(h,Q)|Ve>>5,ge[Ke+1]=B}function a0(h,B,Q,ge,Ke){var Ve=240&zu(h,B)|15;ge[Ke+0]=240&ju(h,Q)|tf(h,B,Q)>>4,ge[Ke+1]=Ve}function fh(h,B,Q,ge,Ke){ge[Ke+0]=255,Of(h,B,Q,ge,Ke+1)}function Rp(h,B,Q,ge,Ke){i0(h,B,Q,ge,Ke),ge[Ke+3]=255}function io(h,B,Q,ge,Ke){Of(h,B,Q,ge,Ke),ge[Ke+3]=255}function hl(h,B){return 0>h?0:h>B?B:h}function bu(h,B,Q){Lt[h]=function(ge,Ke,Ve,Ge,ot,At,ft,Ht,vr){for(var xt=Ht+(-2&vr)*Q;Ht!=xt;)B(ge[Ke+0],Ve[Ge+0],ot[At+0],ft,Ht),B(ge[Ke+1],Ve[Ge+0],ot[At+0],ft,Ht+Q),Ke+=2,++Ge,++At,Ht+=2*Q;1&vr&&B(ge[Ke+0],Ve[Ge+0],ot[At+0],ft,Ht)}}function rf(h,B,Q){return Q==0?h==0?B==0?6:5:B==0?4:0:Q}function wm(h,B,Q,ge,Ke){switch(h>>>30){case 3:A0(B,Q,ge,Ke,0);break;case 2:Vu(B,Q,ge,Ke);break;case 1:qs(B,Q,ge,Ke)}}function hs(h,B){var Q,ge,Ke=B.M,Ve=B.Nb,Ge=h.oc,ot=h.pc+40,At=h.oc,ft=h.pc+584,Ht=h.oc,vr=h.pc+600;for(Q=0;16>Q;++Q)Ge[ot+32*Q-1]=129;for(Q=0;8>Q;++Q)At[ft+32*Q-1]=129,Ht[vr+32*Q-1]=129;for(0<Ke?Ge[ot-1-32]=At[ft-1-32]=Ht[vr-1-32]=129:(A(Ge,ot-32-1,127,21),A(At,ft-32-1,127,9),A(Ht,vr-32-1,127,9)),ge=0;ge<h.za;++ge){var xt=B.ya[B.aa+ge];if(0<ge){for(Q=-1;16>Q;++Q)l(Ge,ot+32*Q-4,Ge,ot+32*Q+12,4);for(Q=-1;8>Q;++Q)l(At,ft+32*Q-4,At,ft+32*Q+4,4),l(Ht,vr+32*Q-4,Ht,vr+32*Q+4,4)}var ir=h.Gd,mr=h.Hd+ge,Xr=xt.ad,Br=xt.Hc;if(0<Ke&&(l(Ge,ot-32,ir[mr].y,0,16),l(At,ft-32,ir[mr].f,0,8),l(Ht,vr-32,ir[mr].ea,0,8)),xt.Za){var cn=Ge,bn=ot-32+16;for(0<Ke&&(ge>=h.za-1?A(cn,bn,ir[mr].y[15],4):l(cn,bn,ir[mr+1].y,0,4)),Q=0;4>Q;Q++)cn[bn+128+Q]=cn[bn+256+Q]=cn[bn+384+Q]=cn[bn+0+Q];for(Q=0;16>Q;++Q,Br<<=2)cn=Ge,bn=ot+Ln[Q],xd[xt.Ob[Q]](cn,bn),wm(Br,Xr,16*+Q,cn,bn)}else if(cn=rf(ge,Ke,xt.Ob[0]),bh[cn](Ge,ot),Br!=0)for(Q=0;16>Q;++Q,Br<<=2)wm(Br,Xr,16*+Q,Ge,ot+Ln[Q]);for(Q=xt.Gc,cn=rf(ge,Ke,xt.Dd),NA[cn](At,ft),NA[cn](Ht,vr),Br=Xr,cn=At,bn=ft,255&(xt=0|Q)&&(170&xt?of(Br,256,cn,bn):pl(Br,256,cn,bn)),xt=Ht,Br=vr,255&(Q>>=8)&&(170&Q?of(Xr,320,xt,Br):pl(Xr,320,xt,Br)),Ke<h.Ub-1&&(l(ir[mr].y,0,Ge,ot+480,16),l(ir[mr].f,0,At,ft+224,8),l(ir[mr].ea,0,Ht,vr+224,8)),Q=8*Ve*h.B,ir=h.sa,mr=h.ta+16*ge+16*Ve*h.R,Xr=h.qa,xt=h.ra+8*ge+Q,Br=h.Ha,cn=h.Ia+8*ge+Q,Q=0;16>Q;++Q)l(ir,mr+Q*h.R,Ge,ot+32*Q,16);for(Q=0;8>Q;++Q)l(Xr,xt+Q*h.B,At,ft+32*Q,8),l(Br,cn+Q*h.B,Ht,vr+32*Q,8)}}function o0(h,B,Q,ge,Ke,Ve,Ge,ot,At){var ft=[0],Ht=[0],vr=0,xt=At!=null?At.kd:0,ir=At!=null?At:new un;if(h==null||12>Q)return 7;ir.data=h,ir.w=B,ir.ha=Q,B=[B],Q=[Q],ir.gb=[ir.gb];e:{var mr=B,Xr=Q,Br=ir.gb;if(o(h!=null),o(Xr!=null),o(Br!=null),Br[0]=0,12<=Xr[0]&&!a(h,mr[0],"RIFF")){if(a(h,mr[0]+8,"WEBP")){Br=3;break e}var cn=sn(h,mr[0]+4);if(12>cn||4294967286<cn){Br=3;break e}if(xt&&cn>Xr[0]-8){Br=7;break e}Br[0]=cn,mr[0]+=12,Xr[0]-=12}Br=0}if(Br!=0)return Br;for(cn=0<ir.gb[0],Q=Q[0];;){e:{var bn=h;Xr=B,Br=Q;var Vn=ft,kn=Ht,Ea=mr=[0];if((va=vr=[vr])[0]=0,8>Br[0])Br=7;else{if(!a(bn,Xr[0],"VP8X")){if(sn(bn,Xr[0]+4)!=10){Br=3;break e}if(18>Br[0]){Br=7;break e}var sa=sn(bn,Xr[0]+8),Ko=1+Fi(bn,Xr[0]+12);if(2147483648<=Ko*(bn=1+Fi(bn,Xr[0]+15))){Br=3;break e}Ea!=null&&(Ea[0]=sa),Vn!=null&&(Vn[0]=Ko),kn!=null&&(kn[0]=bn),Xr[0]+=18,Br[0]-=18,va[0]=1}Br=0}}if(vr=vr[0],mr=mr[0],Br!=0)return Br;if(Xr=!!(2&mr),!cn&&vr)return 3;if(Ve!=null&&(Ve[0]=!!(16&mr)),Ge!=null&&(Ge[0]=Xr),ot!=null&&(ot[0]=0),Ge=ft[0],mr=Ht[0],vr&&Xr&&At==null){Br=0;break}if(4>Q){Br=7;break}if(cn&&vr||!cn&&!vr&&!a(h,B[0],"ALPH")){Q=[Q],ir.na=[ir.na],ir.P=[ir.P],ir.Sa=[ir.Sa];e:{sa=h,Br=B,cn=Q;var va=ir.gb;Vn=ir.na,kn=ir.P,Ea=ir.Sa,Ko=22,o(sa!=null),o(cn!=null),bn=Br[0];var _s=cn[0];for(o(Vn!=null),o(Ea!=null),Vn[0]=null,kn[0]=null,Ea[0]=0;;){if(Br[0]=bn,cn[0]=_s,8>_s){Br=7;break e}var dA=sn(sa,bn+4);if(4294967286<dA){Br=3;break e}var Ho=8+dA+1&-2;if(Ko+=Ho,0<va&&Ko>va){Br=3;break e}if(!a(sa,bn,"VP8 ")||!a(sa,bn,"VP8L")){Br=0;break e}if(_s[0]<Ho){Br=7;break e}a(sa,bn,"ALPH")||(Vn[0]=sa,kn[0]=bn+8,Ea[0]=dA),bn+=Ho,_s-=Ho}}if(Q=Q[0],ir.na=ir.na[0],ir.P=ir.P[0],ir.Sa=ir.Sa[0],Br!=0)break}Q=[Q],ir.Ja=[ir.Ja],ir.xa=[ir.xa];e:if(va=h,Br=B,cn=Q,Vn=ir.gb[0],kn=ir.Ja,Ea=ir.xa,sa=Br[0],bn=!a(va,sa,"VP8 "),Ko=!a(va,sa,"VP8L"),o(va!=null),o(cn!=null),o(kn!=null),o(Ea!=null),8>cn[0])Br=7;else{if(bn||Ko){if(va=sn(va,sa+4),12<=Vn&&va>Vn-12){Br=3;break e}if(xt&&va>cn[0]-8){Br=7;break e}kn[0]=va,Br[0]+=8,cn[0]-=8,Ea[0]=Ko}else Ea[0]=5<=cn[0]&&va[sa+0]==47&&!(va[sa+4]>>5),kn[0]=cn[0];Br=0}if(Q=Q[0],ir.Ja=ir.Ja[0],ir.xa=ir.xa[0],B=B[0],Br!=0)break;if(4294967286<ir.Ja)return 3;if(ot==null||Xr||(ot[0]=ir.xa?2:1),Ge=[Ge],mr=[mr],ir.xa){if(5>Q){Br=7;break}ot=Ge,xt=mr,Xr=Ve,h==null||5>Q?h=0:5<=Q&&h[B+0]==47&&!(h[B+4]>>5)?(cn=[0],va=[0],Vn=[0],Gr(kn=new _t,h,B,Q),Lf(kn,cn,va,Vn)?(ot!=null&&(ot[0]=cn[0]),xt!=null&&(xt[0]=va[0]),Xr!=null&&(Xr[0]=Vn[0]),h=1):h=0):h=0}else{if(10>Q){Br=7;break}ot=mr,h==null||10>Q||!W0(h,B+3,Q-3)?h=0:(xt=h[B+0]|h[B+1]<<8|h[B+2]<<16,Xr=16383&(h[B+7]<<8|h[B+6]),h=16383&(h[B+9]<<8|h[B+8]),1&xt||3<(xt>>1&7)||!(xt>>4&1)||xt>>5>=ir.Ja||!Xr||!h?h=0:(Ge&&(Ge[0]=Xr),ot&&(ot[0]=h),h=1))}if(!h||(Ge=Ge[0],mr=mr[0],vr&&(ft[0]!=Ge||Ht[0]!=mr)))return 3;At!=null&&(At[0]=ir,At.offset=B-At.w,o(4294967286>B-At.w),o(At.offset==At.ha-Q));break}return Br==0||Br==7&&vr&&At==null?(Ve!=null&&(Ve[0]|=ir.na!=null&&0<ir.na.length),ge!=null&&(ge[0]=Ge),Ke!=null&&(Ke[0]=mr),0):Br}function Ul(h,B,Q){var ge=B.width,Ke=B.height,Ve=0,Ge=0,ot=ge,At=Ke;if(B.Da=h!=null&&0<h.Da,B.Da&&(ot=h.cd,At=h.bd,Ve=h.v,Ge=h.j,11>Q||(Ve&=-2,Ge&=-2),0>Ve||0>Ge||0>=ot||0>=At||Ve+ot>ge||Ge+At>Ke))return 0;if(B.v=Ve,B.j=Ge,B.va=Ve+ot,B.o=Ge+At,B.U=ot,B.T=At,B.da=h!=null&&0<h.da,B.da){if(!Ta(ot,At,Q=[h.ib],Ve=[h.hb]))return 0;B.ib=Q[0],B.hb=Ve[0]}return B.ob=h!=null&&h.ob,B.Kb=h==null||!h.Sd,B.da&&(B.ob=B.ib<3*ge/4&&B.hb<3*Ke/4,B.Kb=0),1}function xm(h){if(h==null)return 2;if(11>h.S){var B=h.f.RGBA;B.fb+=(h.height-1)*B.A,B.A=-B.A}else B=h.f.kb,h=h.height,B.O+=(h-1)*B.fa,B.fa=-B.fa,B.N+=(h-1>>1)*B.Ab,B.Ab=-B.Ab,B.W+=(h-1>>1)*B.Db,B.Db=-B.Db,B.F!=null&&(B.J+=(h-1)*B.lb,B.lb=-B.lb);return 0}function hh(h,B,Q,ge){if(ge==null||0>=h||0>=B)return 2;if(Q!=null){if(Q.Da){var Ke=Q.cd,Ve=Q.bd,Ge=-2&Q.v,ot=-2&Q.j;if(0>Ge||0>ot||0>=Ke||0>=Ve||Ge+Ke>h||ot+Ve>B)return 2;h=Ke,B=Ve}if(Q.da){if(!Ta(h,B,Ke=[Q.ib],Ve=[Q.hb]))return 2;h=Ke[0],B=Ve[0]}}ge.width=h,ge.height=B;e:{var At=ge.width,ft=ge.height;if(h=ge.S,0>=At||0>=ft||!(h>=Fm&&13>h))h=2;else{if(0>=ge.Rd&&ge.sd==null){Ge=Ve=Ke=B=0;var Ht=(ot=At*Hi[h])*ft;if(11>h||(Ve=(ft+1)/2*(B=(At+1)/2),h==12&&(Ge=(Ke=At)*ft)),(ft=m(Ht+2*Ve+Ge))==null){h=1;break e}ge.sd=ft,11>h?((At=ge.f.RGBA).eb=ft,At.fb=0,At.A=ot,At.size=Ht):((At=ge.f.kb).y=ft,At.O=0,At.fa=ot,At.Fd=Ht,At.f=ft,At.N=0+Ht,At.Ab=B,At.Cd=Ve,At.ea=ft,At.W=0+Ht+Ve,At.Db=B,At.Ed=Ve,h==12&&(At.F=ft,At.J=0+Ht+2*Ve),At.Tc=Ge,At.lb=Ke)}if(B=1,Ke=ge.S,Ve=ge.width,Ge=ge.height,Ke>=Fm&&13>Ke)if(11>Ke)h=ge.f.RGBA,B&=(ot=Math.abs(h.A))*(Ge-1)+Ve<=h.size,B&=ot>=Ve*Hi[Ke],B&=h.eb!=null;else{h=ge.f.kb,ot=(Ve+1)/2,Ht=(Ge+1)/2,At=Math.abs(h.fa),ft=Math.abs(h.Ab);var vr=Math.abs(h.Db),xt=Math.abs(h.lb),ir=xt*(Ge-1)+Ve;B&=At*(Ge-1)+Ve<=h.Fd,B&=ft*(Ht-1)+ot<=h.Cd,B=(B&=vr*(Ht-1)+ot<=h.Ed)&At>=Ve&ft>=ot&vr>=ot,B&=h.y!=null,B&=h.f!=null,B&=h.ea!=null,Ke==12&&(B&=xt>=Ve,B&=ir<=h.Tc,B&=h.F!=null)}else B=0;h=B?0:2}}return h!=0||Q!=null&&Q.fd&&(h=xm(ge)),h}var s0=64,DA=[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],yu=24,l0=32,ph=8,nf=[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];ui("Predictor0","PredictorAdd0"),Lt.Predictor0=function(){return 4278190080},Lt.Predictor1=function(h){return h},Lt.Predictor2=function(h,B,Q){return B[Q+0]},Lt.Predictor3=function(h,B,Q){return B[Q+1]},Lt.Predictor4=function(h,B,Q){return B[Q-1]},Lt.Predictor5=function(h,B,Q){return Ma(Ma(h,B[Q+1]),B[Q+0])},Lt.Predictor6=function(h,B,Q){return Ma(h,B[Q-1])},Lt.Predictor7=function(h,B,Q){return Ma(h,B[Q+0])},Lt.Predictor8=function(h,B,Q){return Ma(B[Q-1],B[Q+0])},Lt.Predictor9=function(h,B,Q){return Ma(B[Q+0],B[Q+1])},Lt.Predictor10=function(h,B,Q){return Ma(Ma(h,B[Q-1]),Ma(B[Q+0],B[Q+1]))},Lt.Predictor11=function(h,B,Q){var ge=B[Q+0];return 0>=Wa(ge>>24&255,h>>24&255,(B=B[Q-1])>>24&255)+Wa(ge>>16&255,h>>16&255,B>>16&255)+Wa(ge>>8&255,h>>8&255,B>>8&255)+Wa(255&ge,255&h,255&B)?ge:h},Lt.Predictor12=function(h,B,Q){var ge=B[Q+0];return(es((h>>24&255)+(ge>>24&255)-((B=B[Q-1])>>24&255))<<24|es((h>>16&255)+(ge>>16&255)-(B>>16&255))<<16|es((h>>8&255)+(ge>>8&255)-(B>>8&255))<<8|es((255&h)+(255&ge)-(255&B)))>>>0},Lt.Predictor13=function(h,B,Q){var ge=B[Q-1];return(wo((h=Ma(h,B[Q+0]))>>24&255,ge>>24&255)<<24|wo(h>>16&255,ge>>16&255)<<16|wo(h>>8&255,ge>>8&255)<<8|wo(255&h,255&ge))>>>0};var af=Lt.PredictorAdd0;Lt.PredictorAdd1=Ks,ui("Predictor2","PredictorAdd2"),ui("Predictor3","PredictorAdd3"),ui("Predictor4","PredictorAdd4"),ui("Predictor5","PredictorAdd5"),ui("Predictor6","PredictorAdd6"),ui("Predictor7","PredictorAdd7"),ui("Predictor8","PredictorAdd8"),ui("Predictor9","PredictorAdd9"),ui("Predictor10","PredictorAdd10"),ui("Predictor11","PredictorAdd11"),ui("Predictor12","PredictorAdd12"),ui("Predictor13","PredictorAdd13");var np=Lt.PredictorAdd2;Sa("ColorIndexInverseTransform","MapARGB","32b",function(h){return h>>8&255},function(h){return h}),Sa("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(h){return h},function(h){return h>>8&255});var rc,Cm=Lt.ColorIndexInverseTransform,$u=Lt.MapARGB,Zu=Lt.VP8LColorIndexInverseTransformAlpha,c0=Lt.MapAlpha,ip=Lt.VP8LPredictorsAdd=[];ip.length=16,(Lt.VP8LPredictors=[]).length=16,(Lt.VP8LPredictorsAdd_C=[]).length=16,(Lt.VP8LPredictors_C=[]).length=16;var Qp,ap,Pf,mh,ps,gh,vh,A0,Vu,of,qs,pl,vc,zc,Tf,Kp,Wu,Bm,Fg,op,Mg,Sm,Em,u0,Hp,Lg,cg,kg,Dg=m(511),Ng=m(2041),Og=m(225),Ag=m(767),_m=0,d0=Ng,Im=Og,wu=Ag,bc=Dg,Fm=0,Mm=1,Pg=2,jp=3,sp=4,ug=5,Qo=6,dg=7,sf=8,cc=9,f0=10,Uf=[2,3,7],zp=[3,3,11],h0=[280,256,256,256,40],Tg=[0,1,1,1,0],Ug=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Rg=[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],Qg=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Kg=8,fg=[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],lp=[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],cp=null,i1=[[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]],a1=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],p0=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],o1=[[[[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]]]],Hg=[[[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]]],s1=[[[[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]]]],l1=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],bh=[],xd=[],NA=[],y1=1,c1=2,yh=[],Gu=[];qA("UpsampleRgbLinePair",Of,3),qA("UpsampleBgrLinePair",i0,3),qA("UpsampleRgbaLinePair",io,4),qA("UpsampleBgraLinePair",Rp,4),qA("UpsampleArgbLinePair",fh,4),qA("UpsampleRgba4444LinePair",a0,2),qA("UpsampleRgb565LinePair",Mc,2);var w1=Lt.UpsampleRgbLinePair,e=Lt.UpsampleBgrLinePair,t=Lt.UpsampleRgbaLinePair,r=Lt.UpsampleBgraLinePair,i=Lt.UpsampleArgbLinePair,s=Lt.UpsampleRgba4444LinePair,c=Lt.UpsampleRgb565LinePair,u=16,k=1<<u-1,j=-227,X=482,ce=6,Pe=(256<<ce)-1,nt=0,vt=m(256),St=m(256),Cr=m(256),_n=m(256),wr=m(X-j),nn=m(X-j);bu("YuvToRgbRow",Of,3),bu("YuvToBgrRow",i0,3),bu("YuvToRgbaRow",io,4),bu("YuvToBgraRow",Rp,4),bu("YuvToArgbRow",fh,4),bu("YuvToRgba4444Row",a0,2),bu("YuvToRgb565Row",Mc,2);var Ln=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],An=[0,2,8],Si=[8,7,6,4,4,2,2,2,1,1,1,1],ra=1;this.WebPDecodeRGBA=function(h,B,Q,ge,Ke){var Ve=Mm,Ge=new gr,ot=new is;Ge.ba=ot,ot.S=Ve,ot.width=[ot.width],ot.height=[ot.height];var At=ot.width,ft=ot.height,Ht=new Ya;if(Ht==null||h==null)var vr=2;else o(Ht!=null),vr=o0(h,B,Q,Ht.width,Ht.height,Ht.Pd,Ht.Qd,Ht.format,null);if(vr!=0?At=0:(At!=null&&(At[0]=Ht.width[0]),ft!=null&&(ft[0]=Ht.height[0]),At=1),At){ot.width=ot.width[0],ot.height=ot.height[0],ge!=null&&(ge[0]=ot.width),Ke!=null&&(Ke[0]=ot.height);e:{if(ge=new Qu,(Ke=new un).data=h,Ke.w=B,Ke.ha=Q,Ke.kd=1,B=[0],o(Ke!=null),((h=o0(Ke.data,Ke.w,Ke.ha,null,null,null,B,null,Ke))==0||h==7)&&B[0]&&(h=4),(B=h)==0){if(o(Ge!=null),ge.data=Ke.data,ge.w=Ke.w+Ke.offset,ge.ha=Ke.ha-Ke.offset,ge.put=Ka,ge.ac=Vd,ge.bc=Mf,ge.ma=Ge,Ke.xa){if((h=$h())==null){Ge=1;break e}if(function(xt,ir){var mr=[0],Xr=[0],Br=[0];t:for(;;){if(xt==null)return 0;if(ir==null)return xt.a=2,0;if(xt.l=ir,xt.a=0,Gr(xt.m,ir.data,ir.w,ir.ha),!Lf(xt.m,mr,Xr,Br)){xt.a=3;break t}if(xt.xb=c1,ir.width=mr[0],ir.height=Xr[0],!Xd(mr[0],Xr[0],1,xt,null))break t;return 1}return o(xt.a!=0),0}(h,ge)){if(ge=(B=hh(ge.width,ge.height,Ge.Oa,Ge.ba))==0){t:{ge=h;r:for(;;){if(ge==null){ge=0;break t}if(o(ge.s.yc!=null),o(ge.s.Ya!=null),o(0<ge.s.Wb),o((Q=ge.l)!=null),o((Ke=Q.ma)!=null),ge.xb!=0){if(ge.ca=Ke.ba,ge.tb=Ke.tb,o(ge.ca!=null),!Ul(Ke.Oa,Q,jp)){ge.a=2;break r}if(!Zh(ge,Q.width)||Q.da)break r;if((Q.da||Co(ge.ca.S))&&Ku(),11>ge.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),ge.ca.f.kb.F!=null&&Ku()),ge.Pb&&0<ge.s.ua&&ge.s.vb.X==null&&!Ft(ge.s.vb,ge.s.Wa.Xa)){ge.a=1;break r}ge.xb=0}if(!vu(ge,ge.V,ge.Ba,ge.c,ge.i,Q.o,Gd))break r;Ke.Dc=ge.Ma,ge=1;break t}o(ge.a!=0),ge=0}ge=!ge}ge&&(B=h.a)}else B=h.a}else{if((h=new Xh)==null){Ge=1;break e}if(h.Fa=Ke.na,h.P=Ke.P,h.qc=Ke.Sa,Np(h,ge)){if((B=hh(ge.width,ge.height,Ge.Oa,Ge.ba))==0){if(h.Aa=0,Q=Ge.Oa,o((Ke=h)!=null),Q!=null){if(0<(At=0>(At=Q.Md)?0:100<At?255:255*At/100)){for(ft=Ht=0;4>ft;++ft)12>(vr=Ke.pb[ft]).lc&&(vr.ia=At*Si[0>vr.lc?0:vr.lc]>>3),Ht|=vr.ia;Ht&&(alert("todo:VP8InitRandom"),Ke.ia=1)}Ke.Ga=Q.Id,100<Ke.Ga?Ke.Ga=100:0>Ke.Ga&&(Ke.Ga=0)}(function(xt,ir){if(xt==null)return 0;if(ir==null)return ec(xt,2,"NULL VP8Io parameter in VP8Decode().");if(!xt.cb&&!Np(xt,ir))return 0;if(o(xt.cb),ir.ac==null||ir.ac(ir)){ir.ob&&(xt.L=0);var mr=An[xt.L];if(xt.L==2?(xt.yb=0,xt.zb=0):(xt.yb=ir.v-mr>>4,xt.zb=ir.j-mr>>4,0>xt.yb&&(xt.yb=0),0>xt.zb&&(xt.zb=0)),xt.Va=ir.o+15+mr>>4,xt.Hb=ir.va+15+mr>>4,xt.Hb>xt.za&&(xt.Hb=xt.za),xt.Va>xt.Ub&&(xt.Va=xt.Ub),0<xt.L){var Xr=xt.ed;for(mr=0;4>mr;++mr){var Br;if(xt.Qa.Cb){var cn=xt.Qa.Lb[mr];xt.Qa.Fb||(cn+=Xr.Tb)}else cn=Xr.Tb;for(Br=0;1>=Br;++Br){var bn=xt.gd[mr][Br],Vn=cn;if(Xr.Pc&&(Vn+=Xr.vd[0],Br&&(Vn+=Xr.od[0])),0<(Vn=0>Vn?0:63<Vn?63:Vn)){var kn=Vn;0<Xr.wb&&(kn=4<Xr.wb?kn>>2:kn>>1)>9-Xr.wb&&(kn=9-Xr.wb),1>kn&&(kn=1),bn.dd=kn,bn.tc=2*Vn+kn,bn.ld=40<=Vn?2:15<=Vn?1:0}else bn.tc=0;bn.La=Br}}}mr=0}else ec(xt,6,"Frame setup failed"),mr=xt.a;if(mr=mr==0){if(mr){xt.$c=0,0<xt.Aa||(xt.Ic=ra);t:{mr=xt.Ic,Xr=4*(kn=xt.za);var Ea=32*kn,sa=kn+1,Ko=0<xt.L?kn*(0<xt.Aa?2:1):0,va=(xt.Aa==2?2:1)*kn;if((bn=Xr+832+(Br=3*(16*mr+An[xt.L])/2*Ea)+(cn=xt.Fa!=null&&0<xt.Fa.length?xt.Kc.c*xt.Kc.i:0))!=bn)mr=0;else{if(bn>xt.Vb){if(xt.Vb=0,xt.Ec=m(bn),xt.Fc=0,xt.Ec==null){mr=ec(xt,1,"no memory during frame initialization.");break t}xt.Vb=bn}bn=xt.Ec,Vn=xt.Fc,xt.Ac=bn,xt.Bc=Vn,Vn+=Xr,xt.Gd=N(Ea,V0),xt.Hd=0,xt.rb=N(sa+1,Gh),xt.sb=1,xt.wa=Ko?N(Ko,YA):null,xt.Y=0,xt.D.Nb=0,xt.D.wa=xt.wa,xt.D.Y=xt.Y,0<xt.Aa&&(xt.D.Y+=kn),o(!0),xt.oc=bn,xt.pc=Vn,Vn+=832,xt.ya=N(va,kp),xt.aa=0,xt.D.ya=xt.ya,xt.D.aa=xt.aa,xt.Aa==2&&(xt.D.aa+=kn),xt.R=16*kn,xt.B=8*kn,kn=(Ea=An[xt.L])*xt.R,Ea=Ea/2*xt.B,xt.sa=bn,xt.ta=Vn+kn,xt.qa=xt.sa,xt.ra=xt.ta+16*mr*xt.R+Ea,xt.Ha=xt.qa,xt.Ia=xt.ra+8*mr*xt.B+Ea,xt.$c=0,Vn+=Br,xt.mb=cn?bn:null,xt.nb=cn?Vn:null,o(Vn+cn<=xt.Fc+xt.Vb),ch(xt),A(xt.Ac,xt.Bc,0,Xr),mr=1}}if(mr){if(ir.ka=0,ir.y=xt.sa,ir.O=xt.ta,ir.f=xt.qa,ir.N=xt.ra,ir.ea=xt.Ha,ir.Vd=xt.Ia,ir.fa=xt.R,ir.Rc=xt.B,ir.F=null,ir.J=0,!_m){for(mr=-255;255>=mr;++mr)Dg[255+mr]=0>mr?-mr:mr;for(mr=-1020;1020>=mr;++mr)Ng[1020+mr]=-128>mr?-128:127<mr?127:mr;for(mr=-112;112>=mr;++mr)Og[112+mr]=-16>mr?-16:15<mr?15:mr;for(mr=-255;510>=mr;++mr)Ag[255+mr]=0>mr?0:255<mr?255:mr;_m=1}vh=vm,A0=X0,of=rg,qs=bd,pl=gm,Vu=tg,vc=ym,zc=Nf,Tf=z,Kp=He,Wu=dh,Bm=Up,Fg=Bt,op=Zt,Mg=n0,Sm=Df,Em=Tp,u0=rp,xd[0]=og,xd[1]=Es,xd[2]=ig,xd[3]=ag,xd[4]=sg,xd[5]=wd,xd[6]=yd,xd[7]=lg,xd[8]=ep,xd[9]=Op,bh[0]=Ah,bh[1]=Tl,bh[2]=J0,bh[3]=Y0,bh[4]=ng,bh[5]=Jh,bh[6]=q0,NA[0]=qh,NA[1]=AA,NA[2]=uh,NA[3]=Yh,NA[4]=e0,NA[5]=bm,NA[6]=Pp,mr=1}else mr=0}mr&&(mr=function(_s,dA){for(_s.M=0;_s.M<_s.Va;++_s.M){var Ho,ba=_s.Jc[_s.M&_s.Xb],Mi=_s.m,$c=_s;for(Ho=0;Ho<$c.za;++Ho){var Do=Mi,Ns=$c,nc=Ns.Ac,QA=Ns.Bc+4*Ho,xu=Ns.zc,Lc=Ns.ya[Ns.aa+Ho];if(Ns.Qa.Bb?Lc.$b=gn(Do,Ns.Pa.jb[0])?2+gn(Do,Ns.Pa.jb[2]):gn(Do,Ns.Pa.jb[1]):Lc.$b=0,Ns.kc&&(Lc.Ad=gn(Do,Ns.Bd)),Lc.Za=!gn(Do,145)+0,Lc.Za){var eu=Lc.Ob,Cu=0;for(Ns=0;4>Ns;++Ns){var fA,js=xu[0+Ns];for(fA=0;4>fA;++fA){js=Hg[nc[QA+fA]][js];for(var ml=p0[gn(Do,js[0])];0<ml;)ml=p0[2*ml+gn(Do,js[ml])];js=-ml,nc[QA+fA]=js}l(eu,Cu,nc,QA,4),Cu+=4,xu[0+Ns]=js}}else js=gn(Do,156)?gn(Do,128)?1:3:gn(Do,163)?2:0,Lc.Ob[0]=js,A(nc,QA,js,4),A(xu,0,js,4);Lc.Dd=gn(Do,142)?gn(Do,114)?gn(Do,183)?1:3:2:0}if($c.m.Ka)return ec(_s,7,"Premature end-of-partition0 encountered.");for(;_s.ja<_s.za;++_s.ja){if($c=ba,Do=(Mi=_s).rb[Mi.sb-1],nc=Mi.rb[Mi.sb+Mi.ja],Ho=Mi.ya[Mi.aa+Mi.ja],QA=Mi.kc?Ho.Ad:0)Do.la=nc.la=0,Ho.Za||(Do.Na=nc.Na=0),Ho.Hc=0,Ho.Gc=0,Ho.ia=0;else{var kc,gl;if(Do=nc,nc=$c,QA=Mi.Pa.Xc,xu=Mi.ya[Mi.aa+Mi.ja],Lc=Mi.pb[xu.$b],Ns=xu.ad,eu=0,Cu=Mi.rb[Mi.sb-1],js=fA=0,A(Ns,eu,0,384),xu.Za)var KA=0,Rf=QA[3];else{ml=m(16);var Zc=Do.Na+Cu.Na;if(Zc=cp(nc,QA[1],Zc,Lc.Eb,0,ml,0),Do.Na=Cu.Na=(0<Zc)+0,1<Zc)vh(ml,0,Ns,eu);else{var Xu=ml[0]+3>>3;for(ml=0;256>ml;ml+=16)Ns[eu+ml]=Xu}KA=1,Rf=QA[0]}var Fl=15&Do.la,hA=15&Cu.la;for(ml=0;4>ml;++ml){var Cd=1&hA;for(Xu=gl=0;4>Xu;++Xu)Fl=Fl>>1|(Cd=(Zc=cp(nc,Rf,Zc=Cd+(1&Fl),Lc.Sc,KA,Ns,eu))>KA)<<7,gl=gl<<2|(3<Zc?3:1<Zc?2:Ns[eu+0]!=0),eu+=16;Fl>>=4,hA=hA>>1|Cd<<7,fA=(fA<<8|gl)>>>0}for(Rf=Fl,KA=hA>>4,kc=0;4>kc;kc+=2){for(gl=0,Fl=Do.la>>4+kc,hA=Cu.la>>4+kc,ml=0;2>ml;++ml){for(Cd=1&hA,Xu=0;2>Xu;++Xu)Zc=Cd+(1&Fl),Fl=Fl>>1|(Cd=0<(Zc=cp(nc,QA[2],Zc,Lc.Qc,0,Ns,eu)))<<3,gl=gl<<2|(3<Zc?3:1<Zc?2:Ns[eu+0]!=0),eu+=16;Fl>>=2,hA=hA>>1|Cd<<5}js|=gl<<4*kc,Rf|=Fl<<4<<kc,KA|=(240&hA)<<kc}Do.la=Rf,Cu.la=KA,xu.Hc=fA,xu.Gc=js,xu.ia=43690&js?0:Lc.ia,QA=!(fA|js)}if(0<Mi.L&&(Mi.wa[Mi.Y+Mi.ja]=Mi.gd[Ho.$b][Ho.Za],Mi.wa[Mi.Y+Mi.ja].La|=!QA),$c.Ka)return ec(_s,7,"Premature end-of-file encountered.")}if(ch(_s),Mi=dA,$c=1,Ho=(ba=_s).D,Do=0<ba.L&&ba.M>=ba.zb&&ba.M<=ba.Va,ba.Aa==0)t:{if(Ho.M=ba.M,Ho.uc=Do,hs(ba,Ho),$c=1,Ho=(gl=ba.D).Nb,Do=(js=An[ba.L])*ba.R,nc=js/2*ba.B,ml=16*Ho*ba.R,Xu=8*Ho*ba.B,QA=ba.sa,xu=ba.ta-Do+ml,Lc=ba.qa,Ns=ba.ra-nc+Xu,eu=ba.Ha,Cu=ba.Ia-nc+Xu,hA=(Fl=gl.M)==0,fA=Fl>=ba.Va-1,ba.Aa==2&&hs(ba,gl),gl.uc)for(Cd=(Zc=ba).D.M,o(Zc.D.uc),gl=Zc.yb;gl<Zc.Hb;++gl){KA=gl,Rf=Cd;var Bu=(Bd=(HA=Zc).D).Nb;kc=HA.R;var Bd=Bd.wa[Bd.Y+KA],Sd=HA.sa,Ju=HA.ta+16*Bu*kc+16*KA,Ed=Bd.dd,Rl=Bd.tc;if(Rl!=0)if(o(3<=Rl),HA.L==1)0<KA&&Sm(Sd,Ju,kc,Rl+4),Bd.La&&u0(Sd,Ju,kc,Rl),0<Rf&&Mg(Sd,Ju,kc,Rl+4),Bd.La&&Em(Sd,Ju,kc,Rl);else{var _d=HA.B,Qf=HA.qa,$p=HA.ra+8*Bu*_d+8*KA,m0=HA.Ha,HA=HA.Ia+8*Bu*_d+8*KA;Bu=Bd.ld,0<KA&&(zc(Sd,Ju,kc,Rl+4,Ed,Bu),Kp(Qf,$p,m0,HA,_d,Rl+4,Ed,Bu)),Bd.La&&(Bm(Sd,Ju,kc,Rl,Ed,Bu),op(Qf,$p,m0,HA,_d,Rl,Ed,Bu)),0<Rf&&(vc(Sd,Ju,kc,Rl+4,Ed,Bu),Tf(Qf,$p,m0,HA,_d,Rl+4,Ed,Bu)),Bd.La&&(Wu(Sd,Ju,kc,Rl,Ed,Bu),Fg(Qf,$p,m0,HA,_d,Rl,Ed,Bu))}}if(ba.ia&&alert("todo:DitherRow"),Mi.put!=null){if(gl=16*Fl,Fl=16*(Fl+1),hA?(Mi.y=ba.sa,Mi.O=ba.ta+ml,Mi.f=ba.qa,Mi.N=ba.ra+Xu,Mi.ea=ba.Ha,Mi.W=ba.Ia+Xu):(gl-=js,Mi.y=QA,Mi.O=xu,Mi.f=Lc,Mi.N=Ns,Mi.ea=eu,Mi.W=Cu),fA||(Fl-=js),Fl>Mi.o&&(Fl=Mi.o),Mi.F=null,Mi.J=null,ba.Fa!=null&&0<ba.Fa.length&&gl<Fl&&(Mi.J=Ic(ba,Mi,gl,Fl-gl),Mi.F=ba.mb,Mi.F==null&&Mi.F.length==0)){$c=ec(ba,3,"Could not decode alpha data.");break t}gl<Mi.j&&(js=Mi.j-gl,gl=Mi.j,o(!(1&js)),Mi.O+=ba.R*js,Mi.N+=ba.B*(js>>1),Mi.W+=ba.B*(js>>1),Mi.F!=null&&(Mi.J+=Mi.width*js)),gl<Fl&&(Mi.O+=Mi.v,Mi.N+=Mi.v>>1,Mi.W+=Mi.v>>1,Mi.F!=null&&(Mi.J+=Mi.v),Mi.ka=gl-Mi.j,Mi.U=Mi.va-Mi.v,Mi.T=Fl-gl,$c=Mi.put(Mi))}Ho+1!=ba.Ic||fA||(l(ba.sa,ba.ta-Do,QA,xu+16*ba.R,Do),l(ba.qa,ba.ra-nc,Lc,Ns+8*ba.B,nc),l(ba.Ha,ba.Ia-nc,eu,Cu+8*ba.B,nc))}if(!$c)return ec(_s,6,"Output aborted.")}return 1}(xt,ir)),ir.bc!=null&&ir.bc(ir),mr&=1}return mr?(xt.cb=0,mr):0})(h,ge)||(B=h.a)}}else B=h.a}B==0&&Ge.Oa!=null&&Ge.Oa.fd&&(B=xm(Ge.ba))}Ge=B}Ve=Ge!=0?null:11>Ve?ot.f.RGBA.eb:ot.f.kb.y}else Ve=null;return Ve};var Hi=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function Z(Lt,xr){for(var it="",wt=0;wt<4;wt++)it+=String.fromCharCode(Lt[xr++]);return it}function oe(Lt,xr){return Lt[xr+0]|Lt[xr+1]<<8}function Re(Lt,xr){return(Lt[xr+0]|Lt[xr+1]<<8|Lt[xr+2]<<16)>>>0}function Ze(Lt,xr){return(Lt[xr+0]|Lt[xr+1]<<8|Lt[xr+2]<<16|Lt[xr+3]<<24)>>>0}new U;var ae=[0],mt=[0],ut=[],yt=new U,st=n,Gt=function(Lt,xr){var it={},wt=0,Wt=!1,jt=0,Tr=0;if(it.frames=[],!function(tt,_t){for(var Dt=0;Dt<4;Dt++)if(tt[_t+Dt]!="RIFF".charCodeAt(Dt))return!0;return!1}(Lt,xr)){for(Ze(Lt,xr+=4),xr+=8;xr<Lt.length;){var Zr=Z(Lt,xr),Jr=Ze(Lt,xr+=4);xr+=4;var Mr=Jr+(1&Jr);switch(Zr){case"VP8 ":case"VP8L":it.frames[wt]===void 0&&(it.frames[wt]={}),(En=it.frames[wt]).src_off=Wt?Tr:xr-8,En.src_size=jt+Jr+8,wt++,Wt&&(Wt=!1,jt=0,Tr=0);break;case"VP8X":(En=it.header={}).feature_flags=Lt[xr];var Gr=xr+4;En.canvas_width=1+Re(Lt,Gr),Gr+=3,En.canvas_height=1+Re(Lt,Gr),Gr+=3;break;case"ALPH":Wt=!0,jt=Mr+8,Tr=xr-8;break;case"ANIM":(En=it.header).bgcolor=Ze(Lt,xr),Gr=xr+4,En.loop_count=oe(Lt,Gr),Gr+=2;break;case"ANMF":var Zn,En;(En=it.frames[wt]={}).offset_x=2*Re(Lt,xr),xr+=3,En.offset_y=2*Re(Lt,xr),xr+=3,En.width=1+Re(Lt,xr),xr+=3,En.height=1+Re(Lt,xr),xr+=3,En.duration=Re(Lt,xr),xr+=3,Zn=Lt[xr++],En.dispose=1&Zn,En.blend=Zn>>1&1}Zr!="ANMF"&&(xr+=Mr)}return it}}(st,0);Gt.response=st,Gt.rgbaoutput=!0,Gt.dataurl=!1;var Qt=Gt.header?Gt.header:null,It=Gt.frames?Gt.frames:null;if(Qt){Qt.loop_counter=Qt.loop_count,ae=[Qt.canvas_height],mt=[Qt.canvas_width];for(var Ir=0;Ir<It.length&&It[Ir].blend!=0;Ir++);}var rn=It[0],Wr=yt.WebPDecodeRGBA(st,rn.src_off,rn.src_size,mt,ae);rn.rgba=Wr,rn.imgwidth=mt[0],rn.imgheight=ae[0];for(var or=0;or<mt[0]*ae[0]*4;or++)ut[or]=Wr[or];return this.width=mt,this.height=ae,this.data=ut,this}(function(n){var o,a,l,A,m,N,E,U,Z,oe=function(tt){return tt=tt||{},this.isStrokeTransparent=tt.isStrokeTransparent||!1,this.strokeOpacity=tt.strokeOpacity||1,this.strokeStyle=tt.strokeStyle||"#000000",this.fillStyle=tt.fillStyle||"#000000",this.isFillTransparent=tt.isFillTransparent||!1,this.fillOpacity=tt.fillOpacity||1,this.font=tt.font||"10px sans-serif",this.textBaseline=tt.textBaseline||"alphabetic",this.textAlign=tt.textAlign||"left",this.lineWidth=tt.lineWidth||1,this.lineJoin=tt.lineJoin||"miter",this.lineCap=tt.lineCap||"butt",this.path=tt.path||[],this.transform=tt.transform!==void 0?tt.transform.clone():new U,this.globalCompositeOperation=tt.globalCompositeOperation||"normal",this.globalAlpha=tt.globalAlpha||1,this.clip_path=tt.clip_path||[],this.currentPoint=tt.currentPoint||new N,this.miterLimit=tt.miterLimit||10,this.lastPoint=tt.lastPoint||new N,this.lineDashOffset=tt.lineDashOffset||0,this.lineDash=tt.lineDash||[],this.margin=tt.margin||[0,0,0,0],this.prevPageLastElemOffset=tt.prevPageLastElemOffset||0,this.ignoreClearRect=typeof tt.ignoreClearRect!="boolean"||tt.ignoreClearRect,this};n.events.push(["initialized",function(){this.context2d=new Re(this),o=this.internal.f2,a=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,A=this.internal.getHorizontalCoordinate,m=this.internal.getVerticalCoordinate,N=this.internal.Point,E=this.internal.Rectangle,U=this.internal.Matrix,Z=new oe}]);var Re=function(tt){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var _t=tt;Object.defineProperty(this,"pdf",{get:function(){return _t}});var Dt=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Dt},set:function(sn){Dt=!!sn}});var qt=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return qt},set:function(sn){qt=!!sn}});var dr=0;Object.defineProperty(this,"posX",{get:function(){return dr},set:function(sn){isNaN(sn)||(dr=sn)}});var _r=0;Object.defineProperty(this,"posY",{get:function(){return _r},set:function(sn){isNaN(sn)||(_r=sn)}}),Object.defineProperty(this,"margin",{get:function(){return Z.margin},set:function(sn){var Ft;typeof sn=="number"?Ft=[sn,sn,sn,sn]:((Ft=new Array(4))[0]=sn[0],Ft[1]=sn.length>=2?sn[1]:Ft[0],Ft[2]=sn.length>=3?sn[2]:Ft[0],Ft[3]=sn.length>=4?sn[3]:Ft[1]),Z.margin=Ft}});var $r=!1;Object.defineProperty(this,"autoPaging",{get:function(){return $r},set:function(sn){$r=sn}});var Qr=0;Object.defineProperty(this,"lastBreak",{get:function(){return Qr},set:function(sn){Qr=sn}});var gn=[];Object.defineProperty(this,"pageBreaks",{get:function(){return gn},set:function(sn){gn=sn}}),Object.defineProperty(this,"ctx",{get:function(){return Z},set:function(sn){sn instanceof oe&&(Z=sn)}}),Object.defineProperty(this,"path",{get:function(){return Z.path},set:function(sn){Z.path=sn}});var Qn=[];Object.defineProperty(this,"ctxStack",{get:function(){return Qn},set:function(sn){Qn=sn}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(sn){var Ft;Ft=Ze(sn),this.ctx.fillStyle=Ft.style,this.ctx.isFillTransparent=Ft.a===0,this.ctx.fillOpacity=Ft.a,this.pdf.setFillColor(Ft.r,Ft.g,Ft.b,{a:Ft.a}),this.pdf.setTextColor(Ft.r,Ft.g,Ft.b,{a:Ft.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(sn){var Ft=Ze(sn);this.ctx.strokeStyle=Ft.style,this.ctx.isStrokeTransparent=Ft.a===0,this.ctx.strokeOpacity=Ft.a,Ft.a===0?this.pdf.setDrawColor(255,255,255):(Ft.a,this.pdf.setDrawColor(Ft.r,Ft.g,Ft.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(sn){["butt","round","square"].indexOf(sn)!==-1&&(this.ctx.lineCap=sn,this.pdf.setLineCap(sn))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(sn){isNaN(sn)||(this.ctx.lineWidth=sn,this.pdf.setLineWidth(sn))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(sn){["bevel","round","miter"].indexOf(sn)!==-1&&(this.ctx.lineJoin=sn,this.pdf.setLineJoin(sn))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(sn){isNaN(sn)||(this.ctx.miterLimit=sn,this.pdf.setMiterLimit(sn))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(sn){this.ctx.textBaseline=sn}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(sn){["right","end","center","left","start"].indexOf(sn)!==-1&&(this.ctx.textAlign=sn)}});var vi=null,Fi=null;Object.defineProperty(this,"fontFaces",{get:function(){return Fi},set:function(sn){vi=null,Fi=sn}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(sn){var Ft;if(this.ctx.font=sn,(Ft=/^\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(sn))!==null){var Wo=Ft[1];Ft[2];var _o=Ft[3],Ta=Ft[4];Ft[5];var Gn=Ft[6],xa=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ta)[2];Ta=Math.floor(xa==="px"?parseFloat(Ta)*this.pdf.internal.scaleFactor:xa==="em"?parseFloat(Ta)*this.pdf.getFontSize():parseFloat(Ta)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ta);var ui=function(ro){var Sa,yl,Ds=[],ga=ro.trim();if(ga==="")return Xm;if(ga in LA)return[LA[ga]];for(;ga!=="";){switch(yl=null,Sa=(ga=Zd(ga)).charAt(0)){case'"':case"'":yl=JA(ga.substring(1),Sa);break;default:yl=md(ga)}if(yl===null||(Ds.push(yl[0]),(ga=Zd(yl[1]))!==""&&ga.charAt(0)!==","))return Xm;ga=ga.replace(/^,/,"")}return Ds}(Gn);if(this.fontFaces){var Ja=function(ro,Sa){if(vi===null){var yl=function(Ds){var ga=[];return Object.keys(Ds).forEach(function(xo){Ds[xo].forEach(function(ul){var ka=null;switch(ul){case"bold":ka={family:xo,weight:"bold"};break;case"italic":ka={family:xo,style:"italic"};break;case"bolditalic":ka={family:xo,weight:"bold",style:"italic"};break;case"":case"normal":ka={family:xo}}ka!==null&&(ka.ref={name:xo,style:ul},ga.push(ka))})}),ga}(ro.getFontList());vi=function(Ds){for(var ga={},xo=0;xo<Ds.length;++xo){var ul=XA(Ds[xo]),ka=ul.family,ns=ul.stretch,Co=ul.style,ql=ul.weight;ga[ka]=ga[ka]||{},ga[ka][ns]=ga[ka][ns]||{},ga[ka][ns][Co]=ga[ka][ns][Co]||{},ga[ka][ns][Co][ql]=ul}return ga}(yl.concat(Sa))}return vi}(this.pdf,this.fontFaces),Ma=ui.map(function(ro){return{family:ro,stretch:"normal",weight:_o,style:Wo}}),es=function(ro,Sa,yl){for(var Ds=(yl=yl||{}).defaultFontFamily||"times",ga=Object.assign({},Pu,yl.genericFontFamilies||{}),xo=null,ul=null,ka=0;ka<Sa.length;++ka)if(ga[(xo=XA(Sa[ka])).family]&&(xo.family=ga[xo.family]),ro.hasOwnProperty(xo.family)){ul=ro[xo.family];break}if(!(ul=ul||ro[Ds]))throw new Error("Could not find a font-family for the rule '"+Tu(xo)+"' and default family '"+Ds+"'.");if(ul=function(ns,Co){if(Co[ns])return Co[ns];var ql=Yc[ns],Pl=ql<=Yc.normal?-1:1,is=uu(Co,pd,ql,Pl);if(!is)throw new Error("Could not find a matching font-stretch value for "+ns);return is}(xo.stretch,ul),ul=function(ns,Co){if(Co[ns])return Co[ns];for(var ql=_c[ns],Pl=0;Pl<ql.length;++Pl)if(Co[ql[Pl]])return Co[ql[Pl]];throw new Error("Could not find a matching font-style for "+ns)}(xo.style,ul),!(ul=function(ns,Co){if(Co[ns])return Co[ns];if(ns===400&&Co[500])return Co[500];if(ns===500&&Co[400])return Co[400];var ql=Au[ns],Pl=uu(Co,sA,ql,ns<400?-1:1);if(!Pl)throw new Error("Could not find a matching font-weight for value "+ns);return Pl}(xo.weight,ul)))throw new Error("Failed to resolve a font for the rule '"+Tu(xo)+"'.");return ul}(Ja,Ma);this.pdf.setFont(es.ref.name,es.ref.style)}else{var wo="";(_o==="bold"||parseInt(_o,10)>=700||Wo==="bold")&&(wo="bold"),Wo==="italic"&&(wo+="italic"),wo.length===0&&(wo="normal");for(var Wa="",Ks={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"},fo=0;fo<ui.length;fo++){if(this.pdf.internal.getFont(ui[fo],wo,{noFallback:!0,disableWarning:!0})!==void 0){Wa=ui[fo];break}if(wo==="bolditalic"&&this.pdf.internal.getFont(ui[fo],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Wa=ui[fo],wo="bold";else if(this.pdf.internal.getFont(ui[fo],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Wa=ui[fo],wo="normal";break}}if(Wa===""){for(var Ba=0;Ba<ui.length;Ba++)if(Ks[ui[Ba]]){Wa=Ks[ui[Ba]];break}}Wa=Wa===""?"Times":Wa,this.pdf.setFont(Wa,wo)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(sn){this.ctx.globalCompositeOperation=sn}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(sn){this.ctx.globalAlpha=sn}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(sn){this.ctx.lineDashOffset=sn,En.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(sn){this.ctx.lineDash=sn,En.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(sn){this.ctx.ignoreClearRect=!!sn}})};Re.prototype.setLineDash=function(tt){this.lineDash=tt},Re.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Re.prototype.fill=function(){It.call(this,"fill",!1)},Re.prototype.stroke=function(){It.call(this,"stroke",!1)},Re.prototype.beginPath=function(){this.path=[{type:"begin"}]},Re.prototype.moveTo=function(tt,_t){if(isNaN(tt)||isNaN(_t))throw ks.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var Dt=this.ctx.transform.applyToPoint(new N(tt,_t));this.path.push({type:"mt",x:Dt.x,y:Dt.y}),this.ctx.lastPoint=new N(tt,_t)},Re.prototype.closePath=function(){var tt=new N(0,0),_t=0;for(_t=this.path.length-1;_t!==-1;_t--)if(this.path[_t].type==="begin"&&(0,pe.Z)(this.path[_t+1])==="object"&&typeof this.path[_t+1].x=="number"){tt=new N(this.path[_t+1].x,this.path[_t+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new N(tt.x,tt.y)},Re.prototype.lineTo=function(tt,_t){if(isNaN(tt)||isNaN(_t))throw ks.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var Dt=this.ctx.transform.applyToPoint(new N(tt,_t));this.path.push({type:"lt",x:Dt.x,y:Dt.y}),this.ctx.lastPoint=new N(Dt.x,Dt.y)},Re.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),It.call(this,null,!0)},Re.prototype.quadraticCurveTo=function(tt,_t,Dt,qt){if(isNaN(Dt)||isNaN(qt)||isNaN(tt)||isNaN(_t))throw ks.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var dr=this.ctx.transform.applyToPoint(new N(Dt,qt)),_r=this.ctx.transform.applyToPoint(new N(tt,_t));this.path.push({type:"qct",x1:_r.x,y1:_r.y,x:dr.x,y:dr.y}),this.ctx.lastPoint=new N(dr.x,dr.y)},Re.prototype.bezierCurveTo=function(tt,_t,Dt,qt,dr,_r){if(isNaN(dr)||isNaN(_r)||isNaN(tt)||isNaN(_t)||isNaN(Dt)||isNaN(qt))throw ks.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var $r=this.ctx.transform.applyToPoint(new N(dr,_r)),Qr=this.ctx.transform.applyToPoint(new N(tt,_t)),gn=this.ctx.transform.applyToPoint(new N(Dt,qt));this.path.push({type:"bct",x1:Qr.x,y1:Qr.y,x2:gn.x,y2:gn.y,x:$r.x,y:$r.y}),this.ctx.lastPoint=new N($r.x,$r.y)},Re.prototype.arc=function(tt,_t,Dt,qt,dr,_r){if(isNaN(tt)||isNaN(_t)||isNaN(Dt)||isNaN(qt)||isNaN(dr))throw ks.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(_r=!!_r,!this.ctx.transform.isIdentity){var $r=this.ctx.transform.applyToPoint(new N(tt,_t));tt=$r.x,_t=$r.y;var Qr=this.ctx.transform.applyToPoint(new N(0,Dt)),gn=this.ctx.transform.applyToPoint(new N(0,0));Dt=Math.sqrt(Math.pow(Qr.x-gn.x,2)+Math.pow(Qr.y-gn.y,2))}Math.abs(dr-qt)>=2*Math.PI&&(qt=0,dr=2*Math.PI),this.path.push({type:"arc",x:tt,y:_t,radius:Dt,startAngle:qt,endAngle:dr,counterclockwise:_r})},Re.prototype.arcTo=function(tt,_t,Dt,qt,dr){throw new Error("arcTo not implemented.")},Re.prototype.rect=function(tt,_t,Dt,qt){if(isNaN(tt)||isNaN(_t)||isNaN(Dt)||isNaN(qt))throw ks.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(tt,_t),this.lineTo(tt+Dt,_t),this.lineTo(tt+Dt,_t+qt),this.lineTo(tt,_t+qt),this.lineTo(tt,_t),this.lineTo(tt+Dt,_t),this.lineTo(tt,_t)},Re.prototype.fillRect=function(tt,_t,Dt,qt){if(isNaN(tt)||isNaN(_t)||isNaN(Dt)||isNaN(qt))throw ks.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!ae.call(this)){var dr={};this.lineCap!=="butt"&&(dr.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(dr.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(tt,_t,Dt,qt),this.fill(),dr.hasOwnProperty("lineCap")&&(this.lineCap=dr.lineCap),dr.hasOwnProperty("lineJoin")&&(this.lineJoin=dr.lineJoin)}},Re.prototype.strokeRect=function(tt,_t,Dt,qt){if(isNaN(tt)||isNaN(_t)||isNaN(Dt)||isNaN(qt))throw ks.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");mt.call(this)||(this.beginPath(),this.rect(tt,_t,Dt,qt),this.stroke())},Re.prototype.clearRect=function(tt,_t,Dt,qt){if(isNaN(tt)||isNaN(_t)||isNaN(Dt)||isNaN(qt))throw ks.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(tt,_t,Dt,qt))},Re.prototype.save=function(tt){tt=typeof tt!="boolean"||tt;for(var _t=this.pdf.internal.getCurrentPageInfo().pageNumber,Dt=0;Dt<this.pdf.internal.getNumberOfPages();Dt++)this.pdf.setPage(Dt+1),this.pdf.internal.out("q");if(this.pdf.setPage(_t),tt){this.ctx.fontSize=this.pdf.internal.getFontSize();var qt=new oe(this.ctx);this.ctxStack.push(this.ctx),this.ctx=qt}},Re.prototype.restore=function(tt){tt=typeof tt!="boolean"||tt;for(var _t=this.pdf.internal.getCurrentPageInfo().pageNumber,Dt=0;Dt<this.pdf.internal.getNumberOfPages();Dt++)this.pdf.setPage(Dt+1),this.pdf.internal.out("Q");this.pdf.setPage(_t),tt&&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)},Re.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Ze=function(tt){var _t,Dt,qt,dr;if(tt.isCanvasGradient===!0&&(tt=tt.getColor()),!tt)return{r:0,g:0,b:0,a:0,style:tt};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(tt))_t=0,Dt=0,qt=0,dr=0;else{var _r=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(tt);if(_r!==null)_t=parseInt(_r[1]),Dt=parseInt(_r[2]),qt=parseInt(_r[3]),dr=1;else if((_r=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(tt))!==null)_t=parseInt(_r[1]),Dt=parseInt(_r[2]),qt=parseInt(_r[3]),dr=parseFloat(_r[4]);else{if(dr=1,typeof tt=="string"&&tt.charAt(0)!=="#"){var $r=new Cp(tt);tt=$r.ok?$r.toHex():"#000000"}tt.length===4?(_t=tt.substring(1,2),_t+=_t,Dt=tt.substring(2,3),Dt+=Dt,qt=tt.substring(3,4),qt+=qt):(_t=tt.substring(1,3),Dt=tt.substring(3,5),qt=tt.substring(5,7)),_t=parseInt(_t,16),Dt=parseInt(Dt,16),qt=parseInt(qt,16)}}return{r:_t,g:Dt,b:qt,a:dr,style:tt}},ae=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},mt=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Re.prototype.fillText=function(tt,_t,Dt,qt){if(isNaN(_t)||isNaN(Dt)||typeof tt!="string")throw ks.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(qt=isNaN(qt)?void 0:qt,!ae.call(this)){var dr=Mr(this.ctx.transform.rotation),_r=this.ctx.transform.scaleX;wt.call(this,{text:tt,x:_t,y:Dt,scale:_r,angle:dr,align:this.textAlign,maxWidth:qt})}},Re.prototype.strokeText=function(tt,_t,Dt,qt){if(isNaN(_t)||isNaN(Dt)||typeof tt!="string")throw ks.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!mt.call(this)){qt=isNaN(qt)?void 0:qt;var dr=Mr(this.ctx.transform.rotation),_r=this.ctx.transform.scaleX;wt.call(this,{text:tt,x:_t,y:Dt,scale:_r,renderingMode:"stroke",angle:dr,align:this.textAlign,maxWidth:qt})}},Re.prototype.measureText=function(tt){if(typeof tt!="string")throw ks.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var _t=this.pdf,Dt=this.pdf.internal.scaleFactor,qt=_t.internal.getFontSize(),dr=_t.getStringUnitWidth(tt)*qt/_t.internal.scaleFactor;return new function(_r){var $r=(_r=_r||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return $r}}),this}({width:dr*=Math.round(96*Dt/72*1e4)/1e4})},Re.prototype.scale=function(tt,_t){if(isNaN(tt)||isNaN(_t))throw ks.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var Dt=new U(tt,0,0,_t,0,0);this.ctx.transform=this.ctx.transform.multiply(Dt)},Re.prototype.rotate=function(tt){if(isNaN(tt))throw ks.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var _t=new U(Math.cos(tt),Math.sin(tt),-Math.sin(tt),Math.cos(tt),0,0);this.ctx.transform=this.ctx.transform.multiply(_t)},Re.prototype.translate=function(tt,_t){if(isNaN(tt)||isNaN(_t))throw ks.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var Dt=new U(1,0,0,1,tt,_t);this.ctx.transform=this.ctx.transform.multiply(Dt)},Re.prototype.transform=function(tt,_t,Dt,qt,dr,_r){if(isNaN(tt)||isNaN(_t)||isNaN(Dt)||isNaN(qt)||isNaN(dr)||isNaN(_r))throw ks.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var $r=new U(tt,_t,Dt,qt,dr,_r);this.ctx.transform=this.ctx.transform.multiply($r)},Re.prototype.setTransform=function(tt,_t,Dt,qt,dr,_r){tt=isNaN(tt)?1:tt,_t=isNaN(_t)?0:_t,Dt=isNaN(Dt)?0:Dt,qt=isNaN(qt)?1:qt,dr=isNaN(dr)?0:dr,_r=isNaN(_r)?0:_r,this.ctx.transform=new U(tt,_t,Dt,qt,dr,_r)};var ut=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Re.prototype.drawImage=function(tt,_t,Dt,qt,dr,_r,$r,Qr,gn){var Qn=this.pdf.getImageProperties(tt),vi=1,Fi=1,sn=1,Ft=1;qt!==void 0&&Qr!==void 0&&(sn=Qr/qt,Ft=gn/dr,vi=Qn.width/qt*Qr/qt,Fi=Qn.height/dr*gn/dr),_r===void 0&&(_r=_t,$r=Dt,_t=0,Dt=0),qt!==void 0&&Qr===void 0&&(Qr=qt,gn=dr),qt===void 0&&Qr===void 0&&(Qr=Qn.width,gn=Qn.height);for(var Wo,_o=this.ctx.transform.decompose(),Ta=Mr(_o.rotate.shx),Gn=new U,xa=(Gn=(Gn=(Gn=Gn.multiply(_o.translate)).multiply(_o.skew)).multiply(_o.scale)).applyToRectangle(new E(_r-_t*sn,$r-Dt*Ft,qt*vi,dr*Fi)),ui=yt.call(this,xa),Ja=[],Ma=0;Ma<ui.length;Ma+=1)Ja.indexOf(ui[Ma])===-1&&Ja.push(ui[Ma]);if(Qt(Ja),this.autoPaging)for(var es=Ja[0],wo=Ja[Ja.length-1],Wa=es;Wa<wo+1;Wa++){this.pdf.setPage(Wa);var Ks=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],fo=Wa===1?this.posY+this.margin[0]:this.margin[0],Ba=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ro=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Sa=Wa===1?0:Ba+(Wa-2)*ro;if(this.ctx.clip_path.length!==0){var yl=this.path;Wo=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Gt(Wo,this.posX+this.margin[3],-Sa+fo+this.ctx.prevPageLastElemOffset),Ir.call(this,"fill",!0),this.path=yl}var Ds=JSON.parse(JSON.stringify(xa));Ds=Gt([Ds],this.posX+this.margin[3],-Sa+fo+this.ctx.prevPageLastElemOffset)[0];var ga=(Wa>es||Wa<wo)&&ut.call(this);ga&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ks,ro,null).clip().discardPath()),this.pdf.addImage(tt,"JPEG",Ds.x,Ds.y,Ds.w,Ds.h,null,null,Ta),ga&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(tt,"JPEG",xa.x,xa.y,xa.w,xa.h,null,null,Ta)};var yt=function(tt,_t,Dt){var qt=[];_t=_t||this.pdf.internal.pageSize.width,Dt=Dt||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var dr=this.posY+this.ctx.prevPageLastElemOffset;switch(tt.type){default:case"mt":case"lt":qt.push(Math.floor((tt.y+dr)/Dt)+1);break;case"arc":qt.push(Math.floor((tt.y+dr-tt.radius)/Dt)+1),qt.push(Math.floor((tt.y+dr+tt.radius)/Dt)+1);break;case"qct":var _r=Gr(this.ctx.lastPoint.x,this.ctx.lastPoint.y,tt.x1,tt.y1,tt.x,tt.y);qt.push(Math.floor((_r.y+dr)/Dt)+1),qt.push(Math.floor((_r.y+_r.h+dr)/Dt)+1);break;case"bct":var $r=Zn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,tt.x1,tt.y1,tt.x2,tt.y2,tt.x,tt.y);qt.push(Math.floor(($r.y+dr)/Dt)+1),qt.push(Math.floor(($r.y+$r.h+dr)/Dt)+1);break;case"rect":qt.push(Math.floor((tt.y+dr)/Dt)+1),qt.push(Math.floor((tt.y+tt.h+dr)/Dt)+1)}for(var Qr=0;Qr<qt.length;Qr+=1)for(;this.pdf.internal.getNumberOfPages()<qt[Qr];)st.call(this);return qt},st=function(){var tt=this.fillStyle,_t=this.strokeStyle,Dt=this.font,qt=this.lineCap,dr=this.lineWidth,_r=this.lineJoin;this.pdf.addPage(),this.fillStyle=tt,this.strokeStyle=_t,this.font=Dt,this.lineCap=qt,this.lineWidth=dr,this.lineJoin=_r},Gt=function(tt,_t,Dt){for(var qt=0;qt<tt.length;qt++)switch(tt[qt].type){case"bct":tt[qt].x2+=_t,tt[qt].y2+=Dt;case"qct":tt[qt].x1+=_t,tt[qt].y1+=Dt;default:tt[qt].x+=_t,tt[qt].y+=Dt}return tt},Qt=function(tt){return tt.sort(function(_t,Dt){return _t-Dt})},It=function(tt,_t){for(var Dt,qt,dr=this.fillStyle,_r=this.strokeStyle,$r=this.lineCap,Qr=this.lineWidth,gn=Math.abs(Qr*this.ctx.transform.scaleX),Qn=this.lineJoin,vi=JSON.parse(JSON.stringify(this.path)),Fi=JSON.parse(JSON.stringify(this.path)),sn=[],Ft=0;Ft<Fi.length;Ft++)if(Fi[Ft].x!==void 0)for(var Wo=yt.call(this,Fi[Ft]),_o=0;_o<Wo.length;_o+=1)sn.indexOf(Wo[_o])===-1&&sn.push(Wo[_o]);for(var Ta=0;Ta<sn.length;Ta++)for(;this.pdf.internal.getNumberOfPages()<sn[Ta];)st.call(this);if(Qt(sn),this.autoPaging)for(var Gn=sn[0],xa=sn[sn.length-1],ui=Gn;ui<xa+1;ui++){this.pdf.setPage(ui),this.fillStyle=dr,this.strokeStyle=_r,this.lineCap=$r,this.lineWidth=gn,this.lineJoin=Qn;var Ja=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ma=ui===1?this.posY+this.margin[0]:this.margin[0],es=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],wo=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Wa=ui===1?0:es+(ui-2)*wo;if(this.ctx.clip_path.length!==0){var Ks=this.path;Dt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Gt(Dt,this.posX+this.margin[3],-Wa+Ma+this.ctx.prevPageLastElemOffset),Ir.call(this,tt,!0),this.path=Ks}if(qt=JSON.parse(JSON.stringify(vi)),this.path=Gt(qt,this.posX+this.margin[3],-Wa+Ma+this.ctx.prevPageLastElemOffset),_t===!1||ui===0){var fo=(ui>Gn||ui<xa)&&ut.call(this);fo&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ja,wo,null).clip().discardPath()),Ir.call(this,tt,_t),fo&&this.pdf.restoreGraphicsState()}this.lineWidth=Qr}else this.lineWidth=gn,Ir.call(this,tt,_t),this.lineWidth=Qr;this.path=vi},Ir=function(tt,_t){if((tt!=="stroke"||_t||!mt.call(this))&&(tt==="stroke"||_t||!ae.call(this))){for(var Dt,qt,dr=[],_r=this.path,$r=0;$r<_r.length;$r++){var Qr=_r[$r];switch(Qr.type){case"begin":dr.push({begin:!0});break;case"close":dr.push({close:!0});break;case"mt":dr.push({start:Qr,deltas:[],abs:[]});break;case"lt":var gn=dr.length;if(_r[$r-1]&&!isNaN(_r[$r-1].x)&&(Dt=[Qr.x-_r[$r-1].x,Qr.y-_r[$r-1].y],gn>0)){for(;gn>=0;gn--)if(dr[gn-1].close!==!0&&dr[gn-1].begin!==!0){dr[gn-1].deltas.push(Dt),dr[gn-1].abs.push(Qr);break}}break;case"bct":Dt=[Qr.x1-_r[$r-1].x,Qr.y1-_r[$r-1].y,Qr.x2-_r[$r-1].x,Qr.y2-_r[$r-1].y,Qr.x-_r[$r-1].x,Qr.y-_r[$r-1].y],dr[dr.length-1].deltas.push(Dt);break;case"qct":var Qn=_r[$r-1].x+2/3*(Qr.x1-_r[$r-1].x),vi=_r[$r-1].y+2/3*(Qr.y1-_r[$r-1].y),Fi=Qr.x+2/3*(Qr.x1-Qr.x),sn=Qr.y+2/3*(Qr.y1-Qr.y),Ft=Qr.x,Wo=Qr.y;Dt=[Qn-_r[$r-1].x,vi-_r[$r-1].y,Fi-_r[$r-1].x,sn-_r[$r-1].y,Ft-_r[$r-1].x,Wo-_r[$r-1].y],dr[dr.length-1].deltas.push(Dt);break;case"arc":dr.push({deltas:[],abs:[],arc:!0}),Array.isArray(dr[dr.length-1].abs)&&dr[dr.length-1].abs.push(Qr)}}qt=_t?null:tt==="stroke"?"stroke":"fill";for(var _o=!1,Ta=0;Ta<dr.length;Ta++)if(dr[Ta].arc)for(var Gn=dr[Ta].abs,xa=0;xa<Gn.length;xa++){var ui=Gn[xa];ui.type==="arc"?or.call(this,ui.x,ui.y,ui.radius,ui.startAngle,ui.endAngle,ui.counterclockwise,void 0,_t,!_o):Wt.call(this,ui.x,ui.y),_o=!0}else if(dr[Ta].close===!0)this.pdf.internal.out("h"),_o=!1;else if(dr[Ta].begin!==!0){var Ja=dr[Ta].start.x,Ma=dr[Ta].start.y;jt.call(this,dr[Ta].deltas,Ja,Ma),_o=!0}qt&&Lt.call(this,qt),_t&&xr.call(this)}},rn=function(tt){var _t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Dt=_t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return tt-Dt;case"top":return tt+_t-Dt;case"hanging":return tt+_t-2*Dt;case"middle":return tt+_t/2-Dt;default:return tt}},Wr=function(tt){return tt+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Re.prototype.createLinearGradient=function(){var tt=function(){};return tt.colorStops=[],tt.addColorStop=function(_t,Dt){this.colorStops.push([_t,Dt])},tt.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},tt.isCanvasGradient=!0,tt},Re.prototype.createPattern=function(){return this.createLinearGradient()},Re.prototype.createRadialGradient=function(){return this.createLinearGradient()};var or=function(tt,_t,Dt,qt,dr,_r,$r,Qr,gn){for(var Qn=Zr.call(this,Dt,qt,dr,_r),vi=0;vi<Qn.length;vi++){var Fi=Qn[vi];vi===0&&(gn?it.call(this,Fi.x1+tt,Fi.y1+_t):Wt.call(this,Fi.x1+tt,Fi.y1+_t)),Tr.call(this,tt,_t,Fi.x2,Fi.y2,Fi.x3,Fi.y3,Fi.x4,Fi.y4)}Qr?xr.call(this):Lt.call(this,$r)},Lt=function(tt){switch(tt){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},xr=function(){this.pdf.clip(),this.pdf.discardPath()},it=function(tt,_t){this.pdf.internal.out(a(tt)+" "+l(_t)+" m")},wt=function(tt){var _t;switch(tt.align){case"right":case"end":_t="right";break;case"center":_t="center";break;default:_t="left"}var Dt=this.pdf.getTextDimensions(tt.text),qt=rn.call(this,tt.y),dr=Wr.call(this,qt)-Dt.h,_r=this.ctx.transform.applyToPoint(new N(tt.x,qt)),$r=this.ctx.transform.decompose(),Qr=new U;Qr=(Qr=(Qr=Qr.multiply($r.translate)).multiply($r.skew)).multiply($r.scale);for(var gn,Qn,vi,Fi=this.ctx.transform.applyToRectangle(new E(tt.x,qt,Dt.w,Dt.h)),sn=Qr.applyToRectangle(new E(tt.x,dr,Dt.w,Dt.h)),Ft=yt.call(this,sn),Wo=[],_o=0;_o<Ft.length;_o+=1)Wo.indexOf(Ft[_o])===-1&&Wo.push(Ft[_o]);if(Qt(Wo),this.autoPaging)for(var Ta=Wo[0],Gn=Wo[Wo.length-1],xa=Ta;xa<Gn+1;xa++){this.pdf.setPage(xa);var ui=xa===1?this.posY+this.margin[0]:this.margin[0],Ja=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ma=this.pdf.internal.pageSize.height-this.margin[2],es=Ma-this.margin[0],wo=this.pdf.internal.pageSize.width-this.margin[1],Wa=wo-this.margin[3],Ks=xa===1?0:Ja+(xa-2)*es;if(this.ctx.clip_path.length!==0){var fo=this.path;gn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Gt(gn,this.posX+this.margin[3],-1*Ks+ui),Ir.call(this,"fill",!0),this.path=fo}var Ba=Gt([JSON.parse(JSON.stringify(sn))],this.posX+this.margin[3],-Ks+ui+this.ctx.prevPageLastElemOffset)[0];tt.scale>=.01&&(Qn=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Qn*tt.scale),vi=this.lineWidth,this.lineWidth=vi*tt.scale);var ro=this.autoPaging!=="text";if(ro||Ba.y+Ba.h<=Ma){if(ro||Ba.y>=ui&&Ba.x<=wo){var Sa=ro?tt.text:this.pdf.splitTextToSize(tt.text,tt.maxWidth||wo-Ba.x)[0],yl=Gt([JSON.parse(JSON.stringify(Fi))],this.posX+this.margin[3],-Ks+ui+this.ctx.prevPageLastElemOffset)[0],Ds=ro&&(xa>Ta||xa<Gn)&&ut.call(this);Ds&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Wa,es,null).clip().discardPath()),this.pdf.text(Sa,yl.x,yl.y,{angle:tt.angle,align:_t,renderingMode:tt.renderingMode}),Ds&&this.pdf.restoreGraphicsState()}}else Ba.y<Ma&&(this.ctx.prevPageLastElemOffset+=Ma-Ba.y);tt.scale>=.01&&(this.pdf.setFontSize(Qn),this.lineWidth=vi)}else tt.scale>=.01&&(Qn=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Qn*tt.scale),vi=this.lineWidth,this.lineWidth=vi*tt.scale),this.pdf.text(tt.text,_r.x+this.posX,_r.y+this.posY,{angle:tt.angle,align:_t,renderingMode:tt.renderingMode,maxWidth:tt.maxWidth}),tt.scale>=.01&&(this.pdf.setFontSize(Qn),this.lineWidth=vi)},Wt=function(tt,_t,Dt,qt){Dt=Dt||0,qt=qt||0,this.pdf.internal.out(a(tt+Dt)+" "+l(_t+qt)+" l")},jt=function(tt,_t,Dt){return this.pdf.lines(tt,_t,Dt,null,null)},Tr=function(tt,_t,Dt,qt,dr,_r,$r,Qr){this.pdf.internal.out([o(A(Dt+tt)),o(m(qt+_t)),o(A(dr+tt)),o(m(_r+_t)),o(A($r+tt)),o(m(Qr+_t)),"c"].join(" "))},Zr=function(tt,_t,Dt,qt){for(var dr=2*Math.PI,_r=Math.PI/2;_t>Dt;)_t-=dr;var $r=Math.abs(Dt-_t);$r<dr&&qt&&($r=dr-$r);for(var Qr=[],gn=qt?-1:1,Qn=_t;$r>1e-5;){var vi=Qn+gn*Math.min($r,_r);Qr.push(Jr.call(this,tt,Qn,vi)),$r-=Math.abs(vi-Qn),Qn=vi}return Qr},Jr=function(tt,_t,Dt){var qt=(Dt-_t)/2,dr=tt*Math.cos(qt),_r=tt*Math.sin(qt),$r=dr,Qr=-_r,gn=$r*$r+Qr*Qr,Qn=gn+$r*dr+Qr*_r,vi=4/3*(Math.sqrt(2*gn*Qn)-Qn)/($r*_r-Qr*dr),Fi=$r-vi*Qr,sn=Qr+vi*$r,Ft=Fi,Wo=-sn,_o=qt+_t,Ta=Math.cos(_o),Gn=Math.sin(_o);return{x1:tt*Math.cos(_t),y1:tt*Math.sin(_t),x2:Fi*Ta-sn*Gn,y2:Fi*Gn+sn*Ta,x3:Ft*Ta-Wo*Gn,y3:Ft*Gn+Wo*Ta,x4:tt*Math.cos(Dt),y4:tt*Math.sin(Dt)}},Mr=function(tt){return 180*tt/Math.PI},Gr=function(tt,_t,Dt,qt,dr,_r){var $r=tt+.5*(Dt-tt),Qr=_t+.5*(qt-_t),gn=dr+.5*(Dt-dr),Qn=_r+.5*(qt-_r),vi=Math.min(tt,dr,$r,gn),Fi=Math.max(tt,dr,$r,gn),sn=Math.min(_t,_r,Qr,Qn),Ft=Math.max(_t,_r,Qr,Qn);return new E(vi,sn,Fi-vi,Ft-sn)},Zn=function(tt,_t,Dt,qt,dr,_r,$r,Qr){var gn,Qn,vi,Fi,sn,Ft,Wo,_o,Ta,Gn,xa,ui,Ja,Ma,es=Dt-tt,wo=qt-_t,Wa=dr-Dt,Ks=_r-qt,fo=$r-dr,Ba=Qr-_r;for(Qn=0;Qn<41;Qn++)Ta=(Wo=(vi=tt+(gn=Qn/40)*es)+gn*((sn=Dt+gn*Wa)-vi))+gn*(sn+gn*(dr+gn*fo-sn)-Wo),Gn=(_o=(Fi=_t+gn*wo)+gn*((Ft=qt+gn*Ks)-Fi))+gn*(Ft+gn*(_r+gn*Ba-Ft)-_o),Qn==0?(xa=Ta,ui=Gn,Ja=Ta,Ma=Gn):(xa=Math.min(xa,Ta),ui=Math.min(ui,Gn),Ja=Math.max(Ja,Ta),Ma=Math.max(Ma,Gn));return new E(Math.round(xa),Math.round(ui),Math.round(Ja-xa),Math.round(Ma-ui))},En=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var tt,_t,Dt=(tt=this.ctx.lineDash,_t=this.ctx.lineDashOffset,JSON.stringify({lineDash:tt,lineDashOffset:_t}));this.prevLineDash!==Dt&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Dt)}}})(ua.API),function(n){var o=function(N){var E,U,Z,oe,Re,Ze,ae,mt,ut,yt;for(/[^\x00-\xFF]/.test(N),U=[],Z=0,oe=(N+=E="\0\0\0\0".slice(N.length%4||4)).length;oe>Z;Z+=4)(Re=(N.charCodeAt(Z)<<24)+(N.charCodeAt(Z+1)<<16)+(N.charCodeAt(Z+2)<<8)+N.charCodeAt(Z+3))!==0?(Ze=(Re=((Re=((Re=((Re=(Re-(yt=Re%85))/85)-(ut=Re%85))/85)-(mt=Re%85))/85)-(ae=Re%85))/85)%85,U.push(Ze+33,ae+33,mt+33,ut+33,yt+33)):U.push(122);return function(st,Gt){for(var Qt=Gt;Qt>0;Qt--)st.pop()}(U,E.length),String.fromCharCode.apply(String,U)+"~>"},a=function(N){var E,U,Z,oe,Re,Ze=String,ae="length",mt=255,ut="charCodeAt",yt="slice",st="replace";for(N[yt](-2),N=N[yt](0,-2)[st](/\s/g,"")[st]("z","!!!!!"),Z=[],oe=0,Re=(N+=E="uuuuu"[yt](N[ae]%5||5))[ae];Re>oe;oe+=5)U=52200625*(N[ut](oe)-33)+614125*(N[ut](oe+1)-33)+7225*(N[ut](oe+2)-33)+85*(N[ut](oe+3)-33)+(N[ut](oe+4)-33),Z.push(mt&U>>24,mt&U>>16,mt&U>>8,mt&U);return function(Gt,Qt){for(var It=Qt;It>0;It--)Gt.pop()}(Z,E[ae]),Ze.fromCharCode.apply(Ze,Z)},l=function(N){return N.split("").map(function(E){return("0"+E.charCodeAt().toString(16)).slice(-2)}).join("")+">"},A=function(N){var E=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((N=N.replace(/\s/g,"")).indexOf(">")!==-1&&(N=N.substr(0,N.indexOf(">"))),N.length%2&&(N+="0"),E.test(N)===!1)return"";for(var U="",Z=0;Z<N.length;Z+=2)U+=String.fromCharCode("0x"+(N[Z]+N[Z+1]));return U},m=function(N){for(var E=new Uint8Array(N.length),U=N.length;U--;)E[U]=N.charCodeAt(U);return(E=gi(E)).reduce(function(Z,oe){return Z+String.fromCharCode(oe)},"")};n.processDataByFilters=function(N,E){var U=0,Z=N||"",oe=[];for(typeof(E=E||[])=="string"&&(E=[E]),U=0;U<E.length;U+=1)switch(E[U]){case"ASCII85Decode":case"/ASCII85Decode":Z=a(Z),oe.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":Z=o(Z),oe.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":Z=A(Z),oe.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":Z=l(Z),oe.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":Z=m(Z),oe.push("/FlateDecode");break;default:throw new Error('The filter: "'+E[U]+'" is not implemented')}return{data:Z,reverseChain:oe.reverse().join(" ")}}}(ua.API),function(n){n.loadFile=function(o,a,l){return function(A,m,N){m=m!==!1,N=typeof N=="function"?N:function(){};var E=void 0;try{E=function(U,Z,oe){var Re=new XMLHttpRequest,Ze=0,ae=function(mt){var ut=mt.length,yt=[],st=String.fromCharCode;for(Ze=0;Ze<ut;Ze+=1)yt.push(st(255&mt.charCodeAt(Ze)));return yt.join("")};if(Re.open("GET",U,!Z),Re.overrideMimeType("text/plain; charset=x-user-defined"),Z===!1&&(Re.onload=function(){Re.status===200?oe(ae(this.responseText)):oe(void 0)}),Re.send(null),Z&&Re.status===200)return ae(Re.responseText)}(A,m,N)}catch(U){}return E}(o,a,l)},n.loadImageFile=n.loadFile}(ua.API),function(n){function o(){return(Za.html2canvas?Promise.resolve(Za.html2canvas):Promise.resolve().then(C.t.bind(C,64270,23))).catch(function(E){return Promise.reject(new Error("Could not load html2canvas: "+E))}).then(function(E){return E.default?E.default:E})}function a(){return(Za.DOMPurify?Promise.resolve(Za.DOMPurify):C.e(7573).then(C.bind(C,7573))).catch(function(E){return Promise.reject(new Error("Could not load dompurify: "+E))}).then(function(E){return E.default?E.default:E})}var l=function(E){var U=(0,pe.Z)(E);return U==="undefined"?"undefined":U==="string"||E instanceof String?"string":U==="number"||E instanceof Number?"number":U==="function"||E instanceof Function?"function":E&&E.constructor===Array?"array":E&&E.nodeType===1?"element":U==="object"?"object":"unknown"},A=function(E,U){var Z=document.createElement(E);for(var oe in U.className&&(Z.className=U.className),U.innerHTML&&U.dompurify&&(Z.innerHTML=U.dompurify.sanitize(U.innerHTML)),U.style)Z.style[oe]=U.style[oe];return Z},m=function E(U,Z){for(var oe=U.nodeType===3?document.createTextNode(U.nodeValue):U.cloneNode(!1),Re=U.firstChild;Re;Re=Re.nextSibling)Z!==!0&&Re.nodeType===1&&Re.nodeName==="SCRIPT"||oe.appendChild(E(Re,Z));return U.nodeType===1&&(U.nodeName==="CANVAS"?(oe.width=U.width,oe.height=U.height,oe.getContext("2d").drawImage(U,0,0)):U.nodeName!=="TEXTAREA"&&U.nodeName!=="SELECT"||(oe.value=U.value),oe.addEventListener("load",function(){oe.scrollTop=U.scrollTop,oe.scrollLeft=U.scrollLeft},!0)),oe},N=function E(U){var Z=Object.assign(E.convert(Promise.resolve()),JSON.parse(JSON.stringify(E.template))),oe=E.convert(Promise.resolve(),Z);return(oe=oe.setProgress(1,E,1,[E])).set(U)};(N.prototype=Object.create(Promise.prototype)).constructor=N,N.convert=function(E,U){return E.__proto__=U||N.prototype,E},N.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"}},N.prototype.from=function(E,U){return this.then(function(){switch(U=U||function(Z){switch(l(Z)){case"string":return"string";case"element":return Z.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(E),U){case"string":return this.then(a).then(function(Z){return this.set({src:A("div",{innerHTML:E,dompurify:Z})})});case"element":return this.set({src:E});case"canvas":return this.set({canvas:E});case"img":return this.set({img:E});default:return this.error("Unknown source type.")}})},N.prototype.to=function(E){switch(E){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.")}},N.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 E={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},U=m(this.prop.src,this.opt.html2canvas.javascriptEnabled);U.tagName==="BODY"&&(E.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=A("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=A("div",{className:"html2pdf__container",style:E}),this.prop.container.appendChild(U),this.prop.container.firstChild.appendChild(A("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"})},N.prototype.toCanvas=function(){var E=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(E).then(o).then(function(U){var Z=Object.assign({},this.opt.html2canvas);return delete Z.onrendered,U(this.prop.container,Z)}).then(function(U){(this.opt.html2canvas.onrendered||function(){})(U),this.prop.canvas=U,document.body.removeChild(this.prop.overlay)})},N.prototype.toContext2d=function(){var E=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(E).then(o).then(function(U){var Z=this.opt.jsPDF,oe=this.opt.fontFaces,Re=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:Re,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,Z.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,Z.context2d.posX=this.opt.x,Z.context2d.posY=this.opt.y,Z.context2d.margin=this.opt.margin,Z.context2d.fontFaces=oe,oe)for(var ae=0;ae<oe.length;++ae){var mt=oe[ae],ut=mt.src.find(function(yt){return yt.format==="truetype"});ut&&Z.addFont(ut.url,mt.ref.name,mt.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,Z.context2d.save(!0),U(this.prop.container,Ze)}).then(function(U){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(U),this.prop.canvas=U,document.body.removeChild(this.prop.overlay)})},N.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var E=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=E})},N.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},N.prototype.output=function(E,U,Z){return(Z=Z||"pdf").toLowerCase()==="img"||Z.toLowerCase()==="image"?this.outputImg(E,U):this.outputPdf(E,U)},N.prototype.outputPdf=function(E,U){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(E,U)})},N.prototype.outputImg=function(E){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(E){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 "'+E+'" is not supported.'}})},N.prototype.save=function(E){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(E?{filename:E}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},N.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},N.prototype.set=function(E){if(l(E)!=="object")return this;var U=Object.keys(E||{}).map(function(Z){if(Z in N.template.prop)return function(){this.prop[Z]=E[Z]};switch(Z){case"margin":return this.setMargin.bind(this,E.margin);case"jsPDF":return function(){return this.opt.jsPDF=E.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,E.pageSize);default:return function(){this.opt[Z]=E[Z]}}},this);return this.then(function(){return this.thenList(U)})},N.prototype.get=function(E,U){return this.then(function(){var Z=E in N.template.prop?this.prop[E]:this.opt[E];return U?U(Z):Z})},N.prototype.setMargin=function(E){return this.then(function(){switch(l(E)){case"number":E=[E,E,E,E];case"array":if(E.length===2&&(E=[E[0],E[1],E[0],E[1]]),E.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=E}).then(this.setPageSize)},N.prototype.setPageSize=function(E){function U(Z,oe){return Math.floor(Z*oe/72*96)}return this.then(function(){(E=E||ua.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(E.inner={width:E.width-this.opt.margin[1]-this.opt.margin[3],height:E.height-this.opt.margin[0]-this.opt.margin[2]},E.inner.px={width:U(E.inner.width,E.k),height:U(E.inner.height,E.k)},E.inner.ratio=E.inner.height/E.inner.width),this.prop.pageSize=E})},N.prototype.setProgress=function(E,U,Z,oe){return E!=null&&(this.progress.val=E),U!=null&&(this.progress.state=U),Z!=null&&(this.progress.n=Z),oe!=null&&(this.progress.stack=oe),this.progress.ratio=this.progress.val/this.progress.state,this},N.prototype.updateProgress=function(E,U,Z,oe){return this.setProgress(E?this.progress.val+E:null,U||null,Z?this.progress.n+Z:null,oe?this.progress.stack.concat(oe):null)},N.prototype.then=function(E,U){var Z=this;return this.thenCore(E,U,function(oe,Re){return Z.updateProgress(null,null,1,[oe]),Promise.prototype.then.call(this,function(Ze){return Z.updateProgress(null,oe),Ze}).then(oe,Re).then(function(Ze){return Z.updateProgress(1),Ze})})},N.prototype.thenCore=function(E,U,Z){Z=Z||Promise.prototype.then;var oe=this;E&&(E=E.bind(oe)),U&&(U=U.bind(oe));var Re=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?oe:N.convert(Object.assign({},oe),Promise.prototype),Ze=Z.call(Re,E,U);return N.convert(Ze,oe.__proto__)},N.prototype.thenExternal=function(E,U){return Promise.prototype.then.call(this,E,U)},N.prototype.thenList=function(E){var U=this;return E.forEach(function(Z){U=U.thenCore(Z)}),U},N.prototype.catch=function(E){E&&(E=E.bind(this));var U=Promise.prototype.catch.call(this,E);return N.convert(U,this)},N.prototype.catchExternal=function(E){return Promise.prototype.catch.call(this,E)},N.prototype.error=function(E){return this.then(function(){throw new Error(E)})},N.prototype.using=N.prototype.set,N.prototype.saveAs=N.prototype.save,N.prototype.export=N.prototype.output,N.prototype.run=N.prototype.then,ua.getPageSize=function(E,U,Z){if((0,pe.Z)(E)==="object"){var oe=E;E=oe.orientation,U=oe.unit||U,Z=oe.format||Z}U=U||"mm",Z=Z||"a4",E=(""+(E||"P")).toLowerCase();var Re,Ze=(""+Z).toLowerCase(),ae={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(U){case"pt":Re=1;break;case"mm":Re=72/25.4;break;case"cm":Re=72/2.54;break;case"in":Re=72;break;case"px":Re=.75;break;case"pc":case"em":Re=12;break;case"ex":Re=6;break;default:throw"Invalid unit: "+U}var mt,ut=0,yt=0;if(ae.hasOwnProperty(Ze))ut=ae[Ze][1]/Re,yt=ae[Ze][0]/Re;else try{ut=Z[1],yt=Z[0]}catch(st){throw new Error("Invalid format: "+Z)}if(E==="p"||E==="portrait")E="p",yt>ut&&(mt=yt,yt=ut,ut=mt);else{if(E!=="l"&&E!=="landscape")throw"Invalid orientation: "+E;E="l",ut>yt&&(mt=yt,yt=ut,ut=mt)}return{width:yt,height:ut,unit:U,k:Re,orientation:E}},n.html=function(E,U){(U=U||{}).callback=U.callback||function(){},U.html2canvas=U.html2canvas||{},U.html2canvas.canvas=U.html2canvas.canvas||this.canvas,U.jsPDF=U.jsPDF||this,U.fontFaces=U.fontFaces?U.fontFaces.map(XA):null;var Z=new N(U);return U.worker?Z:Z.from(E).doCallback()}}(ua.API),ua.API.addJS=function(n){return Qh=n,this.internal.events.subscribe("postPutResources",function(){Hc=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Hc+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),vg=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Qh+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Hc!==void 0&&vg!==void 0&&this.internal.out("/Names <</JavaScript "+Hc+" 0 R>>")}),this},function(n){var o;n.events.push(["postPutResources",function(){var a=this,l=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var A=a.outline.render().split(/\r\n/),m=0;m<A.length;m++){var N=A[m],E=l.exec(N);if(E!=null){var U=E[1];a.internal.newObjectDeferredBegin(U,!1)}a.internal.write(N)}if(this.outline.createNamedDestinations){var Z=this.internal.pages.length,oe=[];for(m=0;m<Z;m++){var Re=a.internal.newObject();oe.push(Re);var Ze=a.internal.getPageInfo(m+1);a.internal.write("<< /D["+Ze.objId+" 0 R /XYZ null null null]>> endobj")}var ae=a.internal.newObject();for(a.internal.write("<< /Names [ "),m=0;m<oe.length;m++)a.internal.write("(page_"+(m+1)+")"+oe[m]+" 0 R");a.internal.write(" ] >>","endobj"),o=a.internal.newObject(),a.internal.write("<< /Dests "+ae+" 0 R"),a.internal.write(">>","endobj")}}]),n.events.push(["putCatalog",function(){var a=this;a.outline.root.children.length>0&&(a.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&a.internal.write("/Names "+o+" 0 R"))}]),n.events.push(["initialized",function(){var a=this;a.outline={createNamedDestinations:!1,root:{children:[]}},a.outline.add=function(l,A,m){var N={title:A,options:m,children:[]};return l==null&&(l=this.root),l.children.push(N),N},a.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=a,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},a.outline.genIds_r=function(l){l.id=a.internal.newObjectDeferred();for(var A=0;A<l.children.length;A++)this.genIds_r(l.children[A])},a.outline.renderRoot=function(l){this.objStart(l),this.line("/Type /Outlines"),l.children.length>0&&(this.line("/First "+this.makeRef(l.children[0])),this.line("/Last "+this.makeRef(l.children[l.children.length-1]))),this.line("/Count "+this.count_r({count:0},l)),this.objEnd()},a.outline.renderItems=function(l){for(var A=this.ctx.pdf.internal.getVerticalCoordinateString,m=0;m<l.children.length;m++){var N=l.children[m];this.objStart(N),this.line("/Title "+this.makeString(N.title)),this.line("/Parent "+this.makeRef(l)),m>0&&this.line("/Prev "+this.makeRef(l.children[m-1])),m<l.children.length-1&&this.line("/Next "+this.makeRef(l.children[m+1])),N.children.length>0&&(this.line("/First "+this.makeRef(N.children[0])),this.line("/Last "+this.makeRef(N.children[N.children.length-1])));var E=this.count=this.count_r({count:0},N);if(E>0&&this.line("/Count "+E),N.options&&N.options.pageNumber){var U=a.internal.getPageInfo(N.options.pageNumber);this.line("/Dest ["+U.objId+" 0 R /XYZ 0 "+A(0)+" 0]")}this.objEnd()}for(var Z=0;Z<l.children.length;Z++)this.renderItems(l.children[Z])},a.outline.line=function(l){this.ctx.val+=l+`\r
`},a.outline.makeRef=function(l){return l.id+" 0 R"},a.outline.makeString=function(l){return"("+a.internal.pdfEscape(l)+")"},a.outline.objStart=function(l){this.ctx.val+=`\r
`+l.id+` 0 obj\r
<<\r
`},a.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},a.outline.count_r=function(l,A){for(var m=0;m<A.children.length;m++)l.count++,this.count_r(l,A.children[m]);return l.count}}])}(ua.API),function(n){var o=[192,193,194,195,196,197,198,199];n.processJPEG=function(a,l,A,m,N,E){var U,Z=this.decode.DCT_DECODE,oe=null;if(typeof a=="string"||this.__addimage__.isArrayBuffer(a)||this.__addimage__.isArrayBufferView(a)){switch(a=N||a,a=this.__addimage__.isArrayBuffer(a)?new Uint8Array(a):a,U=function(Re){for(var Ze,ae=256*Re.charCodeAt(4)+Re.charCodeAt(5),mt=Re.length,ut={width:0,height:0,numcomponents:1},yt=4;yt<mt;yt+=2){if(yt+=ae,o.indexOf(Re.charCodeAt(yt+1))!==-1){Ze=256*Re.charCodeAt(yt+5)+Re.charCodeAt(yt+6),ut={width:256*Re.charCodeAt(yt+7)+Re.charCodeAt(yt+8),height:Ze,numcomponents:Re.charCodeAt(yt+9)};break}ae=256*Re.charCodeAt(yt+2)+Re.charCodeAt(yt+3)}return ut}(a=this.__addimage__.isArrayBufferView(a)?this.__addimage__.arrayBufferToBinaryString(a):a),U.numcomponents){case 1:E=this.color_spaces.DEVICE_GRAY;break;case 4:E=this.color_spaces.DEVICE_CMYK;break;case 3:E=this.color_spaces.DEVICE_RGB}oe={data:a,width:U.width,height:U.height,colorSpace:E,bitsPerComponent:8,filter:Z,index:l,alias:A}}return oe}}(ua.API),ua.API.processPNG=function(n,o,a,l){if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){var A,m=Ys(n,{checkCrc:!0}),N=m.width,E=m.height,U=m.channels,Z=m.palette,oe=m.depth;A=Z&&U===1?function(or){for(var Lt=or.width,xr=or.height,it=or.data,wt=or.palette,Wt=or.depth,jt=!1,Tr=[],Zr=[],Jr=void 0,Mr=!1,Gr=0,Zn=0;Zn<wt.length;Zn++){var En=(0,xi.Z)(wt[Zn],4),tt=En[0],_t=En[1],Dt=En[2],qt=En[3];Tr.push(tt,_t,Dt),qt!=null&&(qt===0?(Gr++,Zr.length<1&&Zr.push(Zn)):qt<255&&(Mr=!0))}if(Mr||Gr>1){jt=!0,Zr=void 0;var dr=Lt*xr;Jr=new Uint8Array(dr);for(var _r=new DataView(it.buffer),$r=0;$r<dr;$r++){var Qr=um(_r,$r,Wt),gn=(0,xi.Z)(wt[Qr],4)[3];Jr[$r]=gn}}else Gr===0&&(Zr=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:jt?8:void 0,colorBytes:it,alphaBytes:Jr,needSMask:jt,palette:Tr,mask:Zr}}(m):U===2||U===4?function(or){for(var Lt=or.data,xr=or.width,it=or.height,wt=or.channels,Wt=or.depth,jt=wt===2?"DeviceGray":"DeviceRGB",Tr=wt-1,Zr=xr*it,Jr=Tr,Mr=Zr*Jr,Gr=1*Zr,Zn=Math.ceil(Mr*Wt/8),En=Math.ceil(Gr*Wt/8),tt=new Uint8Array(Zn),_t=new Uint8Array(En),Dt=new DataView(Lt.buffer),qt=new DataView(tt.buffer),dr=new DataView(_t.buffer),_r=!1,$r=0;$r<Zr;$r++){for(var Qr=$r*wt,gn=0;gn<Jr;gn++)Hh(qt,um(Dt,Qr+gn,Wt),$r*Jr+gn,Wt);var Qn=um(Dt,Qr+Jr,Wt);Qn<(1<<Wt)-1&&(_r=!0),Hh(dr,Qn,1*$r,Wt)}return{colorSpace:jt,colorsPerPixel:Tr,sMaskBitsPerComponent:_r?Wt:void 0,colorBytes:tt,alphaBytes:_t,needSMask:_r}}(m):function(or){var Lt=or.data,xr=or.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:xr,colorsPerPixel:xr==="DeviceGray"?1:3,colorBytes:Lt instanceof Uint16Array?function(it){for(var wt=it.length,Wt=new Uint8Array(2*wt),jt=new DataView(Wt.buffer,Wt.byteOffset,Wt.byteLength),Tr=0;Tr<wt;Tr++)jt.setUint16(2*Tr,it[Tr],!1);return Wt}(Lt):Lt,needSMask:!1}}(m);var Re,Ze,ae,mt=A,ut=mt.colorSpace,yt=mt.colorsPerPixel,st=mt.sMaskBitsPerComponent,Gt=mt.colorBytes,Qt=mt.alphaBytes,It=mt.needSMask,Ir=mt.palette,rn=mt.mask,Wr=null;return l!==ua.API.image_compression.NONE&&typeof gi=="function"?(Wr=function(or){var Lt;switch(or){case ua.API.image_compression.FAST:Lt=11;break;case ua.API.image_compression.MEDIUM:Lt=13;break;case ua.API.image_compression.SLOW:Lt=14;break;default:Lt=12}return Lt}(l),Re=this.decode.FLATE_DECODE,Ze="/Predictor ".concat(Wr," /Colors ").concat(yt," /BitsPerComponent ").concat(oe," /Columns ").concat(N),n=cm(Gt,Math.ceil(N*yt*oe/8),yt,oe,l),It&&(ae=cm(Qt,Math.ceil(N*st/8),1,st,l))):(Re=void 0,Ze=void 0,n=Gt,It&&(ae=Qt)),(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(ae&&this.__addimage__.isArrayBuffer(ae)||this.__addimage__.isArrayBufferView(ae))&&(ae=this.__addimage__.arrayBufferToBinaryString(ae)),{alias:a,data:n,index:o,filter:Re,decodeParameters:Ze,transparency:rn,palette:Ir,sMask:ae,predictor:Wr,width:N,height:E,bitsPerComponent:oe,sMaskBitsPerComponent:st,colorSpace:ut}}},function(n){n.processGIF89A=function(o,a,l,A){var m=new Ym(o),N=m.width,E=m.height,U=[];m.decodeAndBlitFrameRGBA(0,U);var Z={data:U,width:N,height:E},oe=new qm(100).encode(Z,100);return n.processJPEG.call(this,oe,a,l,A)},n.processGIF87A=n.processGIF89A}(ua.API),du.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 n=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(n);for(var o=0;o<n;o++){var a=this.datav.getUint8(this.pos++,!0),l=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0),m=this.datav.getUint8(this.pos++,!0);this.palette[o]={red:A,green:l,blue:a,quad:m}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},du.prototype.parseBGR=function(){this.pos=this.offset;try{var n="bit"+this.bitPP,o=this.width*this.height*4;this.data=new Uint8Array(o),this[n]()}catch(a){ks.log("bit decode error:"+a)}},du.prototype.bit1=function(){var n,o=Math.ceil(this.width/8),a=o%4;for(n=this.height-1;n>=0;n--){for(var l=this.bottom_up?n:this.height-1-n,A=0;A<o;A++)for(var m=this.datav.getUint8(this.pos++,!0),N=l*this.width*4+8*A*4,E=0;E<8&&8*A+E<this.width;E++){var U=this.palette[m>>7-E&1];this.data[N+4*E]=U.blue,this.data[N+4*E+1]=U.green,this.data[N+4*E+2]=U.red,this.data[N+4*E+3]=255}a!==0&&(this.pos+=4-a)}},du.prototype.bit4=function(){for(var n=Math.ceil(this.width/2),o=n%4,a=this.height-1;a>=0;a--){for(var l=this.bottom_up?a:this.height-1-a,A=0;A<n;A++){var m=this.datav.getUint8(this.pos++,!0),N=l*this.width*4+2*A*4,E=m>>4,U=15&m,Z=this.palette[E];if(this.data[N]=Z.blue,this.data[N+1]=Z.green,this.data[N+2]=Z.red,this.data[N+3]=255,2*A+1>=this.width)break;Z=this.palette[U],this.data[N+4]=Z.blue,this.data[N+4+1]=Z.green,this.data[N+4+2]=Z.red,this.data[N+4+3]=255}o!==0&&(this.pos+=4-o)}},du.prototype.bit8=function(){for(var n=this.width%4,o=this.height-1;o>=0;o--){for(var a=this.bottom_up?o:this.height-1-o,l=0;l<this.width;l++){var A=this.datav.getUint8(this.pos++,!0),m=a*this.width*4+4*l;if(A<this.palette.length){var N=this.palette[A];this.data[m]=N.red,this.data[m+1]=N.green,this.data[m+2]=N.blue,this.data[m+3]=255}else this.data[m]=255,this.data[m+1]=255,this.data[m+2]=255,this.data[m+3]=255}n!==0&&(this.pos+=4-n)}},du.prototype.bit15=function(){for(var n=this.width%3,o=parseInt("11111",2),a=this.height-1;a>=0;a--){for(var l=this.bottom_up?a:this.height-1-a,A=0;A<this.width;A++){var m=this.datav.getUint16(this.pos,!0);this.pos+=2;var N=(m&o)/o*255|0,E=(m>>5&o)/o*255|0,U=(m>>10&o)/o*255|0,Z=m>>15?255:0,oe=l*this.width*4+4*A;this.data[oe]=U,this.data[oe+1]=E,this.data[oe+2]=N,this.data[oe+3]=Z}this.pos+=n}},du.prototype.bit16=function(){for(var n=this.width%3,o=parseInt("11111",2),a=parseInt("111111",2),l=this.height-1;l>=0;l--){for(var A=this.bottom_up?l:this.height-1-l,m=0;m<this.width;m++){var N=this.datav.getUint16(this.pos,!0);this.pos+=2;var E=(N&o)/o*255|0,U=(N>>5&a)/a*255|0,Z=(N>>11)/o*255|0,oe=A*this.width*4+4*m;this.data[oe]=Z,this.data[oe+1]=U,this.data[oe+2]=E,this.data[oe+3]=255}this.pos+=n}},du.prototype.bit24=function(){for(var n=this.height-1;n>=0;n--){for(var o=this.bottom_up?n:this.height-1-n,a=0;a<this.width;a++){var l=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0),m=this.datav.getUint8(this.pos++,!0),N=o*this.width*4+4*a;this.data[N]=m,this.data[N+1]=A,this.data[N+2]=l,this.data[N+3]=255}this.pos+=this.width%4}},du.prototype.bit32=function(){for(var n=this.height-1;n>=0;n--)for(var o=this.bottom_up?n:this.height-1-n,a=0;a<this.width;a++){var l=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0),m=this.datav.getUint8(this.pos++,!0),N=this.datav.getUint8(this.pos++,!0),E=o*this.width*4+4*a;this.data[E]=m,this.data[E+1]=A,this.data[E+2]=l,this.data[E+3]=N}},du.prototype.getData=function(){return this.data},function(n){n.processBMP=function(o,a,l,A){var m=new du(o,!1),N=m.width,E=m.height,U={data:m.getData(),width:N,height:E},Z=new qm(100).encode(U,100);return n.processJPEG.call(this,Z,a,l,A)}}(ua.API),Ip.prototype.getData=function(){return this.data},function(n){n.processWEBP=function(o,a,l,A){var m=new Ip(o),N=m.width,E=m.height,U={data:m.getData(),width:N,height:E},Z=new qm(100).encode(U,100);return n.processJPEG.call(this,Z,a,l,A)}}(ua.API),ua.API.processRGBA=function(n,o,a){for(var l=n.data,A=l.length,m=new Uint8Array(A/4*3),N=new Uint8Array(A/4),E=0,U=0,Z=0;Z<A;Z+=4){var oe=l[Z],Re=l[Z+1],Ze=l[Z+2],ae=l[Z+3];m[E++]=oe,m[E++]=Re,m[E++]=Ze,N[U++]=ae}var mt=this.__addimage__.arrayBufferToBinaryString(m);return{alpha:this.__addimage__.arrayBufferToBinaryString(N),data:mt,index:o,alias:a,colorSpace:"DeviceRGB",bitsPerComponent:8,width:n.width,height:n.height}},ua.API.setLanguage=function(n){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"}[n]!==void 0&&(this.internal.languageSettings.languageCode=n,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},Kh=ua.API,lm=Kh.getCharWidthsArray=function(n,o){var a,l,A=(o=o||{}).font||this.internal.getFont(),m=o.fontSize||this.internal.getFontSize(),N=o.charSpace||this.internal.getCharSpace(),E=o.widths?o.widths:A.metadata.Unicode.widths,U=E.fof?E.fof:1,Z=o.kerning?o.kerning:A.metadata.Unicode.kerning,oe=Z.fof?Z.fof:1,Re=o.doKerning!==!1,Ze=0,ae=n.length,mt=0,ut=E[0]||U,yt=[];for(a=0;a<ae;a++)l=n.charCodeAt(a),typeof A.metadata.widthOfString=="function"?yt.push((A.metadata.widthOfGlyph(A.metadata.characterToGlyph(l))+N*(1e3/m)||0)/1e3):(Ze=Re&&(0,pe.Z)(Z[l])==="object"&&!isNaN(parseInt(Z[l][mt],10))?Z[l][mt]/oe:0,yt.push((E[l]||ut)/U+Ze)),mt=l;return yt},bg=Kh.getStringUnitWidth=function(n,o){var a=(o=o||{}).fontSize||this.internal.getFontSize(),l=o.font||this.internal.getFont(),A=o.charSpace||this.internal.getCharSpace();return Kh.processArabic&&(n=Kh.processArabic(n)),typeof l.metadata.widthOfString=="function"?l.metadata.widthOfString(n,a,A)/a:lm.apply(this,arguments).reduce(function(m,N){return m+N},0)},Gm=function(n,o,a,l){for(var A=[],m=0,N=n.length,E=0;m!==N&&E+o[m]<a;)E+=o[m],m++;A.push(n.slice(0,m));var U=m;for(E=0;m!==N;)E+o[m]>l&&(A.push(n.slice(U,m)),E=0,U=m),E+=o[m],m++;return U!==m&&A.push(n.slice(U,m)),A},yg=function(n,o,a){a||(a={});var l,A,m,N,E,U,Z,oe=[],Re=[oe],Ze=a.textIndent||0,ae=0,mt=0,ut=n.split(" "),yt=lm.apply(this,[" ",a])[0];if(U=a.lineIndent===-1?ut[0].length+2:a.lineIndent||0){var st=Array(U).join(" "),Gt=[];ut.map(function(It){(It=It.split(/\s*\n/)).length>1?Gt=Gt.concat(It.map(function(Ir,rn){return(rn&&Ir.length?`
`:"")+Ir})):Gt.push(It[0])}),ut=Gt,U=bg.apply(this,[st,a])}for(m=0,N=ut.length;m<N;m++){var Qt=0;if(l=ut[m],U&&l[0]==`
`&&(l=l.substr(1),Qt=1),Ze+ae+(mt=(A=lm.apply(this,[l,a])).reduce(function(It,Ir){return It+Ir},0))>o||Qt){if(mt>o){for(E=Gm.apply(this,[l,A,o-(Ze+ae),o]),oe.push(E.shift()),oe=[E.pop()];E.length;)Re.push([E.shift()]);mt=A.slice(l.length-(oe[0]?oe[0].length:0)).reduce(function(It,Ir){return It+Ir},0)}else oe=[l];Re.push(oe),Ze=mt+U,ae=yt}else oe.push(l),Ze+=ae+mt,ae=yt}return Z=U?function(It,Ir){return(Ir?st:"")+It.join(" ")}:function(It){return It.join(" ")},Re.map(Z)},Kh.splitTextToSize=function(n,o,a){var l,A=(a=a||{}).fontSize||this.internal.getFontSize(),m=function(oe){if(oe.widths&&oe.kerning)return{widths:oe.widths,kerning:oe.kerning};var Re=this.internal.getFont(oe.fontName,oe.fontStyle),Ze="Unicode";return Re.metadata[Ze]?{widths:Re.metadata[Ze].widths||{0:1},kerning:Re.metadata[Ze].kerning||{}}:{font:Re.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,a);l=Array.isArray(n)?n:String(n).split(/\r?\n/);var N=1*this.internal.scaleFactor*o/A;m.textIndent=a.textIndent?1*a.textIndent*this.internal.scaleFactor/A:0,m.lineIndent=a.lineIndent;var E,U,Z=[];for(E=0,U=l.length;E<U;E++)Z=Z.concat(yg.apply(this,[l[E],N,m]));return Z},function(n){n.__fontmetrics__=n.__fontmetrics__||{};for(var o="0123456789abcdef",a="klmnopqrstuvwxyz",l={},A={},m=0;m<16;m++)l[a[m]]=o[m],A[o[m]]=a[m];var N=function(Ze){return"0x"+parseInt(Ze,10).toString(16)},E=n.__fontmetrics__.compress=function(Ze){var ae,mt,ut,yt,st=["{"];for(var Gt in Ze){if(ae=Ze[Gt],isNaN(parseInt(Gt,10))?mt="'"+Gt+"'":(Gt=parseInt(Gt,10),mt=(mt=N(Gt).slice(2)).slice(0,-1)+A[mt.slice(-1)]),typeof ae=="number")ae<0?(ut=N(ae).slice(3),yt="-"):(ut=N(ae).slice(2),yt=""),ut=yt+ut.slice(0,-1)+A[ut.slice(-1)];else{if((0,pe.Z)(ae)!=="object")throw new Error("Don't know what to do with value type "+(0,pe.Z)(ae)+".");ut=E(ae)}st.push(mt+ut)}return st.push("}"),st.join("")},U=n.__fontmetrics__.uncompress=function(Ze){if(typeof Ze!="string")throw new Error("Invalid argument passed to uncompress.");for(var ae,mt,ut,yt,st={},Gt=1,Qt=st,It=[],Ir="",rn="",Wr=Ze.length-1,or=1;or<Wr;or+=1)(yt=Ze[or])=="'"?ae?(ut=ae.join(""),ae=void 0):ae=[]:ae?ae.push(yt):yt=="{"?(It.push([Qt,ut]),Qt={},ut=void 0):yt=="}"?((mt=It.pop())[0][mt[1]]=Qt,ut=void 0,Qt=mt[0]):yt=="-"?Gt=-1:ut===void 0?l.hasOwnProperty(yt)?(Ir+=l[yt],ut=parseInt(Ir,16)*Gt,Gt=1,Ir=""):Ir+=yt:l.hasOwnProperty(yt)?(rn+=l[yt],Qt[ut]=parseInt(rn,16)*Gt,Gt=1,ut=void 0,rn=""):rn+=yt;return st},Z={codePages:["WinAnsiEncoding"],WinAnsiEncoding:U("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},oe={Unicode:{Courier:Z,"Courier-Bold":Z,"Courier-BoldOblique":Z,"Courier-Oblique":Z,Helvetica:Z,"Helvetica-Bold":Z,"Helvetica-BoldOblique":Z,"Helvetica-Oblique":Z,"Times-Roman":Z,"Times-Bold":Z,"Times-BoldItalic":Z,"Times-Italic":Z}},Re={Unicode:{"Courier-Oblique":U("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":U("{'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":U("{'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:U("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":U("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":U("{'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:U("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:U("{'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":U("{'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:U("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":U("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":U("{'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":U("{'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":U("{'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}}}")}};n.events.push(["addFont",function(Ze){var ae=Ze.font,mt=Re.Unicode[ae.postScriptName];mt&&(ae.metadata.Unicode={},ae.metadata.Unicode.widths=mt.widths,ae.metadata.Unicode.kerning=mt.kerning);var ut=oe.Unicode[ae.postScriptName];ut&&(ae.metadata.Unicode.encoding=ut,ae.encoding=ut.codePages[0])}])}(ua.API),function(n){var o=function(a){for(var l=a.length,A=new Uint8Array(l),m=0;m<l;m++)A[m]=a.charCodeAt(m);return A};n.API.events.push(["addFont",function(a){var l=void 0,A=a.font,m=a.instance;if(!A.isStandardFont){if(m===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+A.postScriptName+"').");if(typeof(l=m.existsFileInVFS(A.postScriptName)===!1?m.loadFile(A.postScriptName):m.getFileFromVFS(A.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+A.postScriptName+"').");(function(N,E){E=/^\x00\x01\x00\x00/.test(E)?o(E):o(vn(E)),N.metadata=n.API.TTFFont.open(E),N.metadata.Unicode=N.metadata.Unicode||{encoding:{},kerning:{},widths:[]},N.metadata.glyIdsUsed=[0]})(A,l)}}])}(ua),ua.API.addSvgAsImage=function(n,o,a,l,A,m,N,E){if(isNaN(o)||isNaN(a))throw ks.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(l)||isNaN(A))throw ks.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var U=document.createElement("canvas");U.width=l,U.height=A;var Z=U.getContext("2d");Z.fillStyle="#fff",Z.fillRect(0,0,U.width,U.height);var oe={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Re=this;return(Za.canvg?Promise.resolve(Za.canvg):C.e(3754).then(C.bind(C,63754))).catch(function(Ze){return Promise.reject(new Error("Could not load canvg: "+Ze))}).then(function(Ze){return Ze.default?Ze.default:Ze}).then(function(Ze){return Ze.fromString(Z,n,oe)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(Ze){return Ze.render(oe)}).then(function(){Re.addImage(U.toDataURL("image/jpeg",1),o,a,l,A,N,E)})},ua.API.putTotalPages=function(n){var o,a=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(o=new RegExp(n,"g"),a=this.internal.getNumberOfPages()):(o=new RegExp(this.pdfEscape16(n,this.internal.getFont()),"g"),a=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var l=1;l<=this.internal.getNumberOfPages();l++)for(var A=0;A<this.internal.pages[l].length;A++)this.internal.pages[l][A]=this.internal.pages[l][A].replace(o,a);return this},ua.API.viewerPreferences=function(n,o){var a;n=n||{},o=o||!1;var l,A,m,N={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}},E=Object.keys(N),U=[],Z=0,oe=0,Re=0;function Ze(mt,ut){var yt,st=!1;for(yt=0;yt<mt.length;yt+=1)mt[yt]===ut&&(st=!0);return st}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(N)),this.internal.viewerpreferences.isSubscribed=!1),a=this.internal.viewerpreferences.configuration,n==="reset"||o===!0){var ae=E.length;for(Re=0;Re<ae;Re+=1)a[E[Re]].value=a[E[Re]].defaultValue,a[E[Re]].explicitSet=!1}if((0,pe.Z)(n)==="object"){for(A in n)if(m=n[A],Ze(E,A)&&m!==void 0){if(a[A].type==="boolean"&&typeof m=="boolean")a[A].value=m;else if(a[A].type==="name"&&Ze(a[A].valueSet,m))a[A].value=m;else if(a[A].type==="integer"&&Number.isInteger(m))a[A].value=m;else if(a[A].type==="array"){for(Z=0;Z<m.length;Z+=1)if(l=!0,m[Z].length===1&&typeof m[Z][0]=="number")U.push(String(m[Z]-1));else if(m[Z].length>1){for(oe=0;oe<m[Z].length;oe+=1)typeof m[Z][oe]!="number"&&(l=!1);l===!0&&U.push([m[Z][0]-1,m[Z][1]-1].join(" "))}a[A].value="["+U.join(" ")+"]"}else a[A].value=a[A].defaultValue;a[A].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var mt,ut=[];for(mt in a)a[mt].explicitSet===!0&&(a[mt].type==="name"?ut.push("/"+mt+" /"+a[mt].value):ut.push("/"+mt+" "+a[mt].value));ut.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+ut.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=a,this},function(n){var o=function(){var l='<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>',A=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),m=unescape(encodeURIComponent(l)),N=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),E=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),U=unescape(encodeURIComponent("</x:xmpmeta>")),Z=m.length+N.length+E.length+A.length+U.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Z+" >>"),this.internal.write("stream"),this.internal.write(A+m+N+E+U),this.internal.write("endstream"),this.internal.write("endobj")},a=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};n.addMetadata=function(l,A){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:l,namespaceuri:A||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",a),this.internal.events.subscribe("postPutResources",o)),this}}(ua.API),function(n){var o=n.API,a=o.pdfEscape16=function(m,N){for(var E,U=N.metadata.Unicode.widths,Z=["","0","00","000","0000"],oe=[""],Re=0,Ze=m.length;Re<Ze;++Re){if(E=N.metadata.characterToGlyph(m.charCodeAt(Re)),N.metadata.glyIdsUsed.push(E),N.metadata.toUnicode[E]=m.charCodeAt(Re),U.indexOf(E)==-1&&(U.push(E),U.push([parseInt(N.metadata.widthOfGlyph(E),10)])),E=="0")return oe.join("");E=E.toString(16),oe.push(Z[4-E.length],E)}return oe.join("")},l=function(m){var N,E,U,Z,oe,Re,Ze;for(oe=`/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`,U=[],Re=0,Ze=(E=Object.keys(m).sort(function(ae,mt){return ae-mt})).length;Re<Ze;Re++)N=E[Re],U.length>=100&&(oe+=`
`+U.length+` beginbfchar
`+U.join(`
`)+`
endbfchar`,U=[]),m[N]!==void 0&&m[N]!==null&&typeof m[N].toString=="function"&&(Z=("0000"+m[N].toString(16)).slice(-4),N=("0000"+(+N).toString(16)).slice(-4),U.push("<"+N+"><"+Z+">"));return U.length&&(oe+=`
`+U.length+` beginbfchar
`+U.join(`
`)+`
endbfchar
`),oe+`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};o.events.push(["putFont",function(m){(function(N){var E=N.font,U=N.out,Z=N.newObject,oe=N.putStream;if(E.metadata instanceof n.API.TTFFont&&E.encoding==="Identity-H"){for(var Re=E.metadata.Unicode.widths,Ze=E.metadata.subset.encode(E.metadata.glyIdsUsed,1),ae="",mt=0;mt<Ze.length;mt++)ae+=String.fromCharCode(Ze[mt]);var ut=Z();oe({data:ae,addLength1:!0,objectId:ut}),U("endobj");var yt=Z();oe({data:l(E.metadata.toUnicode),addLength1:!0,objectId:yt}),U("endobj");var st=Z();U("<<"),U("/Type /FontDescriptor"),U("/FontName /"+iA(E.fontName)),U("/FontFile2 "+ut+" 0 R"),U("/FontBBox "+n.API.PDFObject.convert(E.metadata.bbox)),U("/Flags "+E.metadata.flags),U("/StemV "+E.metadata.stemV),U("/ItalicAngle "+E.metadata.italicAngle),U("/Ascent "+E.metadata.ascender),U("/Descent "+E.metadata.decender),U("/CapHeight "+E.metadata.capHeight),U(">>"),U("endobj");var Gt=Z();U("<<"),U("/Type /Font"),U("/BaseFont /"+iA(E.fontName)),U("/FontDescriptor "+st+" 0 R"),U("/W "+n.API.PDFObject.convert(Re)),U("/CIDToGIDMap /Identity"),U("/DW 1000"),U("/Subtype /CIDFontType2"),U("/CIDSystemInfo"),U("<<"),U("/Supplement 0"),U("/Registry (Adobe)"),U("/Ordering ("+E.encoding+")"),U(">>"),U(">>"),U("endobj"),E.objectNumber=Z(),U("<<"),U("/Type /Font"),U("/Subtype /Type0"),U("/ToUnicode "+yt+" 0 R"),U("/BaseFont /"+iA(E.fontName)),U("/Encoding /"+E.encoding),U("/DescendantFonts ["+Gt+" 0 R]"),U(">>"),U("endobj"),E.isAlreadyPutted=!0}})(m)}]),o.events.push(["putFont",function(m){(function(N){var E=N.font,U=N.out,Z=N.newObject,oe=N.putStream;if(E.metadata instanceof n.API.TTFFont&&E.encoding==="WinAnsiEncoding"){for(var Re=E.metadata.rawData,Ze="",ae=0;ae<Re.length;ae++)Ze+=String.fromCharCode(Re[ae]);var mt=Z();oe({data:Ze,addLength1:!0,objectId:mt}),U("endobj");var ut=Z();oe({data:l(E.metadata.toUnicode),addLength1:!0,objectId:ut}),U("endobj");var yt=Z();U("<<"),U("/Descent "+E.metadata.decender),U("/CapHeight "+E.metadata.capHeight),U("/StemV "+E.metadata.stemV),U("/Type /FontDescriptor"),U("/FontFile2 "+mt+" 0 R"),U("/Flags 96"),U("/FontBBox "+n.API.PDFObject.convert(E.metadata.bbox)),U("/FontName /"+iA(E.fontName)),U("/ItalicAngle "+E.metadata.italicAngle),U("/Ascent "+E.metadata.ascender),U(">>"),U("endobj"),E.objectNumber=Z();for(var st=0;st<E.metadata.hmtx.widths.length;st++)E.metadata.hmtx.widths[st]=parseInt(E.metadata.hmtx.widths[st]*(1e3/E.metadata.head.unitsPerEm));U("<</Subtype/TrueType/Type/Font/ToUnicode "+ut+" 0 R/BaseFont/"+iA(E.fontName)+"/FontDescriptor "+yt+" 0 R/Encoding/"+E.encoding+" /FirstChar 29 /LastChar 255 /Widths "+n.API.PDFObject.convert(E.metadata.hmtx.widths)+">>"),U("endobj"),E.isAlreadyPutted=!0}})(m)}]);var A=function(m){var N,E=m.text||"",U=m.x,Z=m.y,oe=m.options||{},Re=m.mutex||{},Ze=Re.pdfEscape,ae=Re.activeFontKey,mt=Re.fonts,ut=ae,yt="",st=0,Gt="",Qt=mt[ut].encoding;if(mt[ut].encoding!=="Identity-H")return{text:E,x:U,y:Z,options:oe,mutex:Re};for(Gt=E,ut=ae,Array.isArray(E)&&(Gt=E[0]),st=0;st<Gt.length;st+=1)mt[ut].metadata.hasOwnProperty("cmap")&&(N=mt[ut].metadata.cmap.unicode.codeMap[Gt[st].charCodeAt(0)]),N||Gt[st].charCodeAt(0)<256&&mt[ut].metadata.hasOwnProperty("Unicode")?yt+=Gt[st]:yt+="";var It="";return parseInt(ut.slice(1))<14||Qt==="WinAnsiEncoding"?It=Ze(yt,ut).split("").map(function(Ir){return Ir.charCodeAt(0).toString(16)}).join(""):Qt==="Identity-H"&&(It=a(yt,mt[ut])),Re.isHex=!0,{text:It,x:U,y:Z,options:oe,mutex:Re}};o.events.push(["postProcessText",function(m){var N=m.text||"",E=[],U={text:N,x:m.x,y:m.y,options:m.options,mutex:m.mutex};if(Array.isArray(N)){var Z=0;for(Z=0;Z<N.length;Z+=1)Array.isArray(N[Z])&&N[Z].length===3?E.push([A(Object.assign({},U,{text:N[Z][0]})).text,N[Z][1],N[Z][2]]):E.push(A(Object.assign({},U,{text:N[Z]})).text);m.text=E}else m.text=A(Object.assign({},U,{text:N})).text}])}(ua),function(n){var o=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};n.existsFileInVFS=function(a){return o.call(this),this.internal.vFS[a]!==void 0},n.addFileToVFS=function(a,l){return o.call(this),this.internal.vFS[a]=l,this},n.getFileFromVFS=function(a){return o.call(this),this.internal.vFS[a]!==void 0?this.internal.vFS[a]:null}}(ua.API),function(n){n.__bidiEngine__=n.prototype.__bidiEngine__=function(l){var A,m,N,E,U,Z,oe,Re=o,Ze=[[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]],ae=[[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]],mt={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},ut={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},yt=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],st=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)$/),Gt=!1,Qt=0;this.__bidiEngine__={};var It=function(it){var wt=it.charCodeAt(),Wt=wt>>8,jt=ut[Wt];return jt!==void 0?Re[256*jt+(255&wt)]:Wt===252||Wt===253?"AL":st.test(Wt)?"L":Wt===8?"R":"N"},Ir=function(it){for(var wt,Wt=0;Wt<it.length;Wt++){if((wt=It(it.charAt(Wt)))==="L")return!1;if(wt==="R")return!0}return!1},rn=function(it,wt,Wt,jt){var Tr,Zr,Jr,Mr,Gr=wt[jt];switch(Gr){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Gt=!1;break;case"N":case"AN":break;case"EN":Gt&&(Gr="AN");break;case"AL":Gt=!0,Gr="R";break;case"WS":case"BN":Gr="N";break;case"CS":jt<1||jt+1>=wt.length||(Tr=Wt[jt-1])!=="EN"&&Tr!=="AN"||(Zr=wt[jt+1])!=="EN"&&Zr!=="AN"?Gr="N":Gt&&(Zr="AN"),Gr=Zr===Tr?Zr:"N";break;case"ES":Gr=(Tr=jt>0?Wt[jt-1]:"B")==="EN"&&jt+1<wt.length&&wt[jt+1]==="EN"?"EN":"N";break;case"ET":if(jt>0&&Wt[jt-1]==="EN"){Gr="EN";break}if(Gt){Gr="N";break}for(Jr=jt+1,Mr=wt.length;Jr<Mr&&wt[Jr]==="ET";)Jr++;Gr=Jr<Mr&&wt[Jr]==="EN"?"EN":"N";break;case"NSM":if(N&&!E){for(Mr=wt.length,Jr=jt+1;Jr<Mr&&wt[Jr]==="NSM";)Jr++;if(Jr<Mr){var Zn=it[jt],En=Zn>=1425&&Zn<=2303||Zn===64286;if(Tr=wt[Jr],En&&(Tr==="R"||Tr==="AL")){Gr="R";break}}}Gr=jt<1||(Tr=wt[jt-1])==="B"?"N":Wt[jt-1];break;case"B":Gt=!1,A=!0,Gr=Qt;break;case"S":m=!0,Gr="N"}return Gr},Wr=function(it,wt,Wt){var jt=it.split("");return Wt&&or(jt,Wt,{hiLevel:Qt}),jt.reverse(),wt&&wt.reverse(),jt.join("")},or=function(it,wt,Wt){var jt,Tr,Zr,Jr,Mr,Gr=-1,Zn=it.length,En=0,tt=[],_t=Qt?ae:Ze,Dt=[];for(Gt=!1,A=!1,m=!1,Tr=0;Tr<Zn;Tr++)Dt[Tr]=It(it[Tr]);for(Zr=0;Zr<Zn;Zr++){if(Mr=En,tt[Zr]=rn(it,Dt,tt,Zr),jt=240&(En=_t[Mr][mt[tt[Zr]]]),En&=15,wt[Zr]=Jr=_t[En][5],jt>0)if(jt===16){for(Tr=Gr;Tr<Zr;Tr++)wt[Tr]=1;Gr=-1}else Gr=-1;if(_t[En][6])Gr===-1&&(Gr=Zr);else if(Gr>-1){for(Tr=Gr;Tr<Zr;Tr++)wt[Tr]=Jr;Gr=-1}Dt[Zr]==="B"&&(wt[Zr]=0),Wt.hiLevel|=Jr}m&&function(qt,dr,_r){for(var $r=0;$r<_r;$r++)if(qt[$r]==="S"){dr[$r]=Qt;for(var Qr=$r-1;Qr>=0&&qt[Qr]==="WS";Qr--)dr[Qr]=Qt}}(Dt,wt,Zn)},Lt=function(it,wt,Wt,jt,Tr){if(!(Tr.hiLevel<it)){if(it===1&&Qt===1&&!A)return wt.reverse(),void(Wt&&Wt.reverse());for(var Zr,Jr,Mr,Gr,Zn=wt.length,En=0;En<Zn;){if(jt[En]>=it){for(Mr=En+1;Mr<Zn&&jt[Mr]>=it;)Mr++;for(Gr=En,Jr=Mr-1;Gr<Jr;Gr++,Jr--)Zr=wt[Gr],wt[Gr]=wt[Jr],wt[Jr]=Zr,Wt&&(Zr=Wt[Gr],Wt[Gr]=Wt[Jr],Wt[Jr]=Zr);En=Mr}En++}}},xr=function(it,wt,Wt){var jt=it.split(""),Tr={hiLevel:Qt};return Wt||(Wt=[]),or(jt,Wt,Tr),function(Zr,Jr,Mr){if(Mr.hiLevel!==0&&oe)for(var Gr,Zn=0;Zn<Zr.length;Zn++)Jr[Zn]===1&&(Gr=yt.indexOf(Zr[Zn]))>=0&&(Zr[Zn]=yt[Gr+1])}(jt,Wt,Tr),Lt(2,jt,wt,Wt,Tr),Lt(1,jt,wt,Wt,Tr),jt.join("")};return this.__bidiEngine__.doBidiReorder=function(it,wt,Wt){if(function(Tr,Zr){if(Zr)for(var Jr=0;Jr<Tr.length;Jr++)Zr[Jr]=Jr;E===void 0&&(E=Ir(Tr)),Z===void 0&&(Z=Ir(Tr))}(it,wt),N||!U||Z)if(N&&U&&E^Z)Qt=E?1:0,it=Wr(it,wt,Wt);else if(!N&&U&&Z)Qt=E?1:0,it=xr(it,wt,Wt),it=Wr(it,wt);else if(!N||E||U||Z){if(N&&!U&&E^Z)it=Wr(it,wt),E?(Qt=0,it=xr(it,wt,Wt)):(Qt=1,it=xr(it,wt,Wt),it=Wr(it,wt));else if(N&&E&&!U&&Z)Qt=1,it=xr(it,wt,Wt),it=Wr(it,wt);else if(!N&&!U&&E^Z){var jt=oe;E?(Qt=1,it=xr(it,wt,Wt),Qt=0,oe=!1,it=xr(it,wt,Wt),oe=jt):(Qt=0,it=xr(it,wt,Wt),it=Wr(it,wt),Qt=1,oe=!1,it=xr(it,wt,Wt),oe=jt,it=Wr(it,wt))}}else Qt=0,it=xr(it,wt,Wt);else Qt=E?1:0,it=xr(it,wt,Wt);return it},this.__bidiEngine__.setOptions=function(it){it&&(N=it.isInputVisual,U=it.isOutputVisual,E=it.isInputRtl,Z=it.isOutputRtl,oe=it.isSymmetricSwapping)},this.__bidiEngine__.setOptions(l),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"],a=new n.__bidiEngine__({isInputVisual:!0});n.API.events.push(["postProcessText",function(l){var A=l.text;l.x,l.y;var m=l.options||{};l.mutex,m.lang;var N=[];if(m.isInputVisual=typeof m.isInputVisual!="boolean"||m.isInputVisual,a.setOptions(m),Object.prototype.toString.call(A)==="[object Array]"){var E=0;for(N=[],E=0;E<A.length;E+=1)Object.prototype.toString.call(A[E])==="[object Array]"?N.push([a.doBidiReorder(A[E][0]),A[E][1],A[E][2]]):N.push([a.doBidiReorder(A[E])]);l.text=N}else l.text=a.doBidiReorder(A);a.setOptions({isInputVisual:!0})}])}(ua),ua.API.TTFFont=function(){function n(o){var a;if(this.rawData=o,a=this.contents=new lh(o),this.contents.pos=4,a.readString(4)==="ttcf")throw new Error("TTCF not supported.");a.pos=0,this.parse(),this.subset=new Ig(this),this.registerTTF()}return n.open=function(o){return new n(o)},n.prototype.parse=function(){return this.directory=new Yg(this.contents),this.head=new Bg(this),this.name=new fm(this),this.cmap=new dm(this),this.toUnicode={},this.hhea=new Sg(this),this.maxp=new r1(this),this.hmtx=new Il(this),this.post=new hu(this),this.os2=new e1(this),this.loca=new n1(this),this.glyf=new _g(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]},n.prototype.registerTTF=function(){var o,a,l,A,m;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var N,E,U,Z;for(Z=[],N=0,E=(U=this.bbox).length;N<E;N++)o=U[N],Z.push(Math.round(o*this.scaleFactor));return Z}.call(this),this.stemV=0,this.post.exists?(l=255&(A=this.post.italic_angle),32768&(a=A>>16)&&(a=-(1+(65535^a))),this.italicAngle=+(a+"."+l)):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=(m=this.familyClass)===1||m===2||m===3||m===4||m===5||m===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")},n.prototype.characterToGlyph=function(o){var a;return((a=this.cmap.unicode)!=null?a.codeMap[o]:void 0)||0},n.prototype.widthOfGlyph=function(o){var a;return a=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(o).advance*a},n.prototype.widthOfString=function(o,a,l){var A,m,N,E;for(N=0,m=0,E=(o=""+o).length;0<=E?m<E:m>E;m=0<=E?++m:--m)A=o.charCodeAt(m),N+=this.widthOfGlyph(this.characterToGlyph(A))+l*(1e3/a)||0;return N*(a/1e3)},n.prototype.lineHeight=function(o,a){var l;return a==null&&(a=!1),l=a?this.lineGap:0,(this.ascender+l-this.decender)/1e3*o},n}();var kA,lh=function(){function n(o){this.data=o!=null?o:[],this.pos=0,this.length=this.data.length}return n.prototype.readByte=function(){return this.data[this.pos++]},n.prototype.writeByte=function(o){return this.data[this.pos++]=o},n.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},n.prototype.writeUInt32=function(o){return this.writeByte(o>>>24&255),this.writeByte(o>>16&255),this.writeByte(o>>8&255),this.writeByte(255&o)},n.prototype.readInt32=function(){var o;return(o=this.readUInt32())>=2147483648?o-4294967296:o},n.prototype.writeInt32=function(o){return o<0&&(o+=4294967296),this.writeUInt32(o)},n.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},n.prototype.writeUInt16=function(o){return this.writeByte(o>>8&255),this.writeByte(255&o)},n.prototype.readInt16=function(){var o;return(o=this.readUInt16())>=32768?o-65536:o},n.prototype.writeInt16=function(o){return o<0&&(o+=65536),this.writeUInt16(o)},n.prototype.readString=function(o){var a,l;for(l=[],a=0;0<=o?a<o:a>o;a=0<=o?++a:--a)l[a]=String.fromCharCode(this.readByte());return l.join("")},n.prototype.writeString=function(o){var a,l,A;for(A=[],a=0,l=o.length;0<=l?a<l:a>l;a=0<=l?++a:--a)A.push(this.writeByte(o.charCodeAt(a)));return A},n.prototype.readShort=function(){return this.readInt16()},n.prototype.writeShort=function(o){return this.writeInt16(o)},n.prototype.readLongLong=function(){var o,a,l,A,m,N,E,U;return o=this.readByte(),a=this.readByte(),l=this.readByte(),A=this.readByte(),m=this.readByte(),N=this.readByte(),E=this.readByte(),U=this.readByte(),128&o?-1*(72057594037927940*(255^o)+281474976710656*(255^a)+1099511627776*(255^l)+4294967296*(255^A)+16777216*(255^m)+65536*(255^N)+256*(255^E)+(255^U)+1):72057594037927940*o+281474976710656*a+1099511627776*l+4294967296*A+16777216*m+65536*N+256*E+U},n.prototype.writeLongLong=function(o){var a,l;return a=Math.floor(o/4294967296),l=4294967295&o,this.writeByte(a>>24&255),this.writeByte(a>>16&255),this.writeByte(a>>8&255),this.writeByte(255&a),this.writeByte(l>>24&255),this.writeByte(l>>16&255),this.writeByte(l>>8&255),this.writeByte(255&l)},n.prototype.readInt=function(){return this.readInt32()},n.prototype.writeInt=function(o){return this.writeInt32(o)},n.prototype.read=function(o){var a,l;for(a=[],l=0;0<=o?l<o:l>o;l=0<=o?++l:--l)a.push(this.readByte());return a},n.prototype.write=function(o){var a,l,A,m;for(m=[],l=0,A=o.length;l<A;l++)a=o[l],m.push(this.writeByte(a));return m},n}(),Yg=function(){var n;function o(a){var l,A,m;for(this.scalarType=a.readInt(),this.tableCount=a.readShort(),this.searchRange=a.readShort(),this.entrySelector=a.readShort(),this.rangeShift=a.readShort(),this.tables={},A=0,m=this.tableCount;0<=m?A<m:A>m;A=0<=m?++A:--A)l={tag:a.readString(4),checksum:a.readInt(),offset:a.readInt(),length:a.readInt()},this.tables[l.tag]=l}return o.prototype.encode=function(a){var l,A,m,N,E,U,Z,oe,Re,Ze,ae,mt,ut;for(ut in ae=Object.keys(a).length,U=Math.log(2),Re=16*Math.floor(Math.log(ae)/U),N=Math.floor(Re/U),oe=16*ae-Re,(A=new lh).writeInt(this.scalarType),A.writeShort(ae),A.writeShort(Re),A.writeShort(N),A.writeShort(oe),m=16*ae,Z=A.pos+m,E=null,mt=[],a)for(Ze=a[ut],A.writeString(ut),A.writeInt(n(Ze)),A.writeInt(Z),A.writeInt(Ze.length),mt=mt.concat(Ze),ut==="head"&&(E=Z),Z+=Ze.length;Z%4;)mt.push(0),Z++;return A.write(mt),l=2981146554-n(A.data),A.pos=E+8,A.writeUInt32(l),A.data},n=function(a){var l,A,m,N;for(a=Eg.call(a);a.length%4;)a.push(0);for(m=new lh(a),A=0,l=0,N=a.length;l<N;l=l+=4)A+=m.readUInt32();return 4294967295&A},o}(),qg={}.hasOwnProperty,fu=function(n,o){for(var a in o)qg.call(o,a)&&(n[a]=o[a]);function l(){this.constructor=n}return l.prototype=o.prototype,n.prototype=new l,n.__super__=o.prototype,n};kA=function(){function n(o){var a;this.file=o,a=this.file.directory.tables[this.tag],this.exists=!!a,a&&(this.offset=a.offset,this.length=a.length,this.parse(this.file.contents))}return n.prototype.parse=function(){},n.prototype.encode=function(){},n.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},n}();var Bg=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return fu(n,kA),n.prototype.tag="head",n.prototype.parse=function(o){return o.pos=this.offset,this.version=o.readInt(),this.revision=o.readInt(),this.checkSumAdjustment=o.readInt(),this.magicNumber=o.readInt(),this.flags=o.readShort(),this.unitsPerEm=o.readShort(),this.created=o.readLongLong(),this.modified=o.readLongLong(),this.xMin=o.readShort(),this.yMin=o.readShort(),this.xMax=o.readShort(),this.yMax=o.readShort(),this.macStyle=o.readShort(),this.lowestRecPPEM=o.readShort(),this.fontDirectionHint=o.readShort(),this.indexToLocFormat=o.readShort(),this.glyphDataFormat=o.readShort()},n.prototype.encode=function(o){var a;return(a=new lh).writeInt(this.version),a.writeInt(this.revision),a.writeInt(this.checkSumAdjustment),a.writeInt(this.magicNumber),a.writeShort(this.flags),a.writeShort(this.unitsPerEm),a.writeLongLong(this.created),a.writeLongLong(this.modified),a.writeShort(this.xMin),a.writeShort(this.yMin),a.writeShort(this.xMax),a.writeShort(this.yMax),a.writeShort(this.macStyle),a.writeShort(this.lowestRecPPEM),a.writeShort(this.fontDirectionHint),a.writeShort(o),a.writeShort(this.glyphDataFormat),a.data},n}(),eg=function(){function n(o,a){var l,A,m,N,E,U,Z,oe,Re,Ze,ae,mt,ut,yt,st,Gt,Qt;switch(this.platformID=o.readUInt16(),this.encodingID=o.readShort(),this.offset=a+o.readInt(),Re=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(U=0;U<256;++U)this.codeMap[U]=o.readByte();break;case 4:for(ae=o.readUInt16(),Ze=ae/2,o.pos+=6,m=function(){var It,Ir;for(Ir=[],U=It=0;0<=Ze?It<Ze:It>Ze;U=0<=Ze?++It:--It)Ir.push(o.readUInt16());return Ir}(),o.pos+=2,ut=function(){var It,Ir;for(Ir=[],U=It=0;0<=Ze?It<Ze:It>Ze;U=0<=Ze?++It:--It)Ir.push(o.readUInt16());return Ir}(),Z=function(){var It,Ir;for(Ir=[],U=It=0;0<=Ze?It<Ze:It>Ze;U=0<=Ze?++It:--It)Ir.push(o.readUInt16());return Ir}(),oe=function(){var It,Ir;for(Ir=[],U=It=0;0<=Ze?It<Ze:It>Ze;U=0<=Ze?++It:--It)Ir.push(o.readUInt16());return Ir}(),A=(this.length-o.pos+this.offset)/2,E=function(){var It,Ir;for(Ir=[],U=It=0;0<=A?It<A:It>A;U=0<=A?++It:--It)Ir.push(o.readUInt16());return Ir}(),U=st=0,Qt=m.length;st<Qt;U=++st)for(yt=m[U],l=Gt=mt=ut[U];mt<=yt?Gt<=yt:Gt>=yt;l=mt<=yt?++Gt:--Gt)oe[U]===0?N=l+Z[U]:(N=E[oe[U]/2+(l-mt)-(Ze-U)]||0)!==0&&(N+=Z[U]),this.codeMap[l]=65535&N}o.pos=Re}return n.encode=function(o,a){var l,A,m,N,E,U,Z,oe,Re,Ze,ae,mt,ut,yt,st,Gt,Qt,It,Ir,rn,Wr,or,Lt,xr,it,wt,Wt,jt,Tr,Zr,Jr,Mr,Gr,Zn,En,tt,_t,Dt,qt,dr,_r,$r,Qr,gn,Qn,vi;switch(jt=new lh,N=Object.keys(o).sort(function(Fi,sn){return Fi-sn}),a){case"macroman":for(ut=0,yt=function(){var Fi=[];for(mt=0;mt<256;++mt)Fi.push(0);return Fi}(),Gt={0:0},m={},Tr=0,Gr=N.length;Tr<Gr;Tr++)Gt[Qr=o[A=N[Tr]]]==null&&(Gt[Qr]=++ut),m[A]={old:o[A],new:Gt[o[A]]},yt[A]=Gt[o[A]];return jt.writeUInt16(1),jt.writeUInt16(0),jt.writeUInt32(12),jt.writeUInt16(0),jt.writeUInt16(262),jt.writeUInt16(0),jt.write(yt),{charMap:m,subtable:jt.data,maxGlyphID:ut+1};case"unicode":for(wt=[],Re=[],Qt=0,Gt={},l={},st=Z=null,Zr=0,Zn=N.length;Zr<Zn;Zr++)Gt[Ir=o[A=N[Zr]]]==null&&(Gt[Ir]=++Qt),l[A]={old:Ir,new:Gt[Ir]},E=Gt[Ir]-A,st!=null&&E===Z||(st&&Re.push(st),wt.push(A),Z=E),st=A;for(st&&Re.push(st),Re.push(65535),wt.push(65535),xr=2*(Lt=wt.length),or=2*Math.pow(Math.log(Lt)/Math.LN2,2),Ze=Math.log(or/2)/Math.LN2,Wr=2*Lt-or,U=[],rn=[],ae=[],mt=Jr=0,En=wt.length;Jr<En;mt=++Jr){if(it=wt[mt],oe=Re[mt],it===65535){U.push(0),rn.push(0);break}if(it-(Wt=l[it].new)>=32768)for(U.push(0),rn.push(2*(ae.length+Lt-mt)),A=Mr=it;it<=oe?Mr<=oe:Mr>=oe;A=it<=oe?++Mr:--Mr)ae.push(l[A].new);else U.push(Wt-it),rn.push(0)}for(jt.writeUInt16(3),jt.writeUInt16(1),jt.writeUInt32(12),jt.writeUInt16(4),jt.writeUInt16(16+8*Lt+2*ae.length),jt.writeUInt16(0),jt.writeUInt16(xr),jt.writeUInt16(or),jt.writeUInt16(Ze),jt.writeUInt16(Wr),_r=0,tt=Re.length;_r<tt;_r++)A=Re[_r],jt.writeUInt16(A);for(jt.writeUInt16(0),$r=0,_t=wt.length;$r<_t;$r++)A=wt[$r],jt.writeUInt16(A);for(gn=0,Dt=U.length;gn<Dt;gn++)E=U[gn],jt.writeUInt16(E);for(Qn=0,qt=rn.length;Qn<qt;Qn++)It=rn[Qn],jt.writeUInt16(It);for(vi=0,dr=ae.length;vi<dr;vi++)ut=ae[vi],jt.writeUInt16(ut);return{charMap:l,subtable:jt.data,maxGlyphID:Qt+1}}},n}(),dm=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return fu(n,kA),n.prototype.tag="cmap",n.prototype.parse=function(o){var a,l,A;for(o.pos=this.offset,this.version=o.readUInt16(),A=o.readUInt16(),this.tables=[],this.unicode=null,l=0;0<=A?l<A:l>A;l=0<=A?++l:--l)a=new eg(o,this.offset),this.tables.push(a),a.isUnicode&&this.unicode==null&&(this.unicode=a);return!0},n.encode=function(o,a){var l,A;return a==null&&(a="macroman"),l=eg.encode(o,a),(A=new lh).writeUInt16(0),A.writeUInt16(1),l.table=A.data.concat(l.subtable),l},n}(),Sg=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return fu(n,kA),n.prototype.tag="hhea",n.prototype.parse=function(o){return o.pos=this.offset,this.version=o.readInt(),this.ascender=o.readShort(),this.decender=o.readShort(),this.lineGap=o.readShort(),this.advanceWidthMax=o.readShort(),this.minLeftSideBearing=o.readShort(),this.minRightSideBearing=o.readShort(),this.xMaxExtent=o.readShort(),this.caretSlopeRise=o.readShort(),this.caretSlopeRun=o.readShort(),this.caretOffset=o.readShort(),o.pos+=8,this.metricDataFormat=o.readShort(),this.numberOfMetrics=o.readUInt16()},n}(),e1=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return fu(n,kA),n.prototype.tag="OS/2",n.prototype.parse=function(o){if(o.pos=this.offset,this.version=o.readUInt16(),this.averageCharWidth=o.readShort(),this.weightClass=o.readUInt16(),this.widthClass=o.readUInt16(),this.type=o.readShort(),this.ySubscriptXSize=o.readShort(),this.ySubscriptYSize=o.readShort(),this.ySubscriptXOffset=o.readShort(),this.ySubscriptYOffset=o.readShort(),this.ySuperscriptXSize=o.readShort(),this.ySuperscriptYSize=o.readShort(),this.ySuperscriptXOffset=o.readShort(),this.ySuperscriptYOffset=o.readShort(),this.yStrikeoutSize=o.readShort(),this.yStrikeoutPosition=o.readShort(),this.familyClass=o.readShort(),this.panose=function(){var a,l;for(l=[],a=0;a<10;++a)l.push(o.readByte());return l}(),this.charRange=function(){var a,l;for(l=[],a=0;a<4;++a)l.push(o.readInt());return l}(),this.vendorID=o.readString(4),this.selection=o.readShort(),this.firstCharIndex=o.readShort(),this.lastCharIndex=o.readShort(),this.version>0&&(this.ascent=o.readShort(),this.descent=o.readShort(),this.lineGap=o.readShort(),this.winAscent=o.readShort(),this.winDescent=o.readShort(),this.codePageRange=function(){var a,l;for(l=[],a=0;a<2;a=++a)l.push(o.readInt());return l}(),this.version>1))return this.xHeight=o.readShort(),this.capHeight=o.readShort(),this.defaultChar=o.readShort(),this.breakChar=o.readShort(),this.maxContext=o.readShort()},n}(),hu=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return fu(n,kA),n.prototype.tag="post",n.prototype.parse=function(o){var a,l,A;switch(o.pos=this.offset,this.format=o.readInt(),this.italicAngle=o.readInt(),this.underlinePosition=o.readShort(),this.underlineThickness=o.readShort(),this.isFixedPitch=o.readInt(),this.minMemType42=o.readInt(),this.maxMemType42=o.readInt(),this.minMemType1=o.readInt(),this.maxMemType1=o.readInt(),this.format){case 65536:case 196608:break;case 131072:var m;for(l=o.readUInt16(),this.glyphNameIndex=[],m=0;0<=l?m<l:m>l;m=0<=l?++m:--m)this.glyphNameIndex.push(o.readUInt16());for(this.names=[],A=[];o.pos<this.offset+this.length;)a=o.readByte(),A.push(this.names.push(o.readString(a)));return A;case 151552:return l=o.readUInt16(),this.offsets=o.read(l);case 262144:return this.map=function(){var N,E,U;for(U=[],m=N=0,E=this.file.maxp.numGlyphs;0<=E?N<E:N>E;m=0<=E?++N:--N)U.push(o.readUInt32());return U}.call(this)}},n}(),t1=function(n,o){this.raw=n,this.length=n.length,this.platformID=o.platformID,this.encodingID=o.encodingID,this.languageID=o.languageID},fm=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return fu(n,kA),n.prototype.tag="name",n.prototype.parse=function(o){var a,l,A,m,N,E,U,Z,oe,Re,Ze;for(o.pos=this.offset,o.readShort(),a=o.readShort(),E=o.readShort(),l=[],m=0;0<=a?m<a:m>a;m=0<=a?++m:--m)l.push({platformID:o.readShort(),encodingID:o.readShort(),languageID:o.readShort(),nameID:o.readShort(),length:o.readShort(),offset:this.offset+E+o.readShort()});for(U={},m=oe=0,Re=l.length;oe<Re;m=++oe)A=l[m],o.pos=A.offset,Z=o.readString(A.length),N=new t1(Z,A),U[Ze=A.nameID]==null&&(U[Ze]=[]),U[A.nameID].push(N);this.strings=U,this.copyright=U[0],this.fontFamily=U[1],this.fontSubfamily=U[2],this.uniqueSubfamily=U[3],this.fontName=U[4],this.version=U[5];try{this.postscriptName=U[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(ae){this.postscriptName=U[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=U[7],this.manufacturer=U[8],this.designer=U[9],this.description=U[10],this.vendorUrl=U[11],this.designerUrl=U[12],this.license=U[13],this.licenseUrl=U[14],this.preferredFamily=U[15],this.preferredSubfamily=U[17],this.compatibleFull=U[18],this.sampleText=U[19]},n}(),r1=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return fu(n,kA),n.prototype.tag="maxp",n.prototype.parse=function(o){return o.pos=this.offset,this.version=o.readInt(),this.numGlyphs=o.readUInt16(),this.maxPoints=o.readUInt16(),this.maxContours=o.readUInt16(),this.maxCompositePoints=o.readUInt16(),this.maxComponentContours=o.readUInt16(),this.maxZones=o.readUInt16(),this.maxTwilightPoints=o.readUInt16(),this.maxStorage=o.readUInt16(),this.maxFunctionDefs=o.readUInt16(),this.maxInstructionDefs=o.readUInt16(),this.maxStackElements=o.readUInt16(),this.maxSizeOfInstructions=o.readUInt16(),this.maxComponentElements=o.readUInt16(),this.maxComponentDepth=o.readUInt16()},n}(),Il=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return fu(n,kA),n.prototype.tag="hmtx",n.prototype.parse=function(o){var a,l,A,m,N,E,U;for(o.pos=this.offset,this.metrics=[],a=0,E=this.file.hhea.numberOfMetrics;0<=E?a<E:a>E;a=0<=E?++a:--a)this.metrics.push({advance:o.readUInt16(),lsb:o.readInt16()});for(A=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Z,oe;for(oe=[],a=Z=0;0<=A?Z<A:Z>A;a=0<=A?++Z:--Z)oe.push(o.readInt16());return oe}(),this.widths=function(){var Z,oe,Re,Ze;for(Ze=[],Z=0,oe=(Re=this.metrics).length;Z<oe;Z++)m=Re[Z],Ze.push(m.advance);return Ze}.call(this),l=this.widths[this.widths.length-1],U=[],a=N=0;0<=A?N<A:N>A;a=0<=A?++N:--N)U.push(this.widths.push(l));return U},n.prototype.forGlyph=function(o){return o in this.metrics?this.metrics[o]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[o-this.metrics.length]}},n}(),Eg=[].slice,_g=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return fu(n,kA),n.prototype.tag="glyf",n.prototype.parse=function(){return this.cache={}},n.prototype.glyphFor=function(o){var a,l,A,m,N,E,U,Z,oe,Re;return o in this.cache?this.cache[o]:(m=this.file.loca,a=this.file.contents,l=m.indexOf(o),(A=m.lengthOf(o))===0?this.cache[o]=null:(a.pos=this.offset+l,N=(E=new lh(a.read(A))).readShort(),Z=E.readShort(),Re=E.readShort(),U=E.readShort(),oe=E.readShort(),this.cache[o]=N===-1?new hm(E,Z,Re,U,oe):new jh(E,N,Z,Re,U,oe),this.cache[o]))},n.prototype.encode=function(o,a,l){var A,m,N,E,U;for(N=[],m=[],E=0,U=a.length;E<U;E++)A=o[a[E]],m.push(N.length),A&&(N=N.concat(A.encode(l)));return m.push(N.length),{table:N,offsets:m}},n}(),jh=function(){function n(o,a,l,A,m,N){this.raw=o,this.numberOfContours=a,this.xMin=l,this.yMin=A,this.xMax=m,this.yMax=N,this.compound=!1}return n.prototype.encode=function(){return this.raw.data},n}(),hm=function(){function n(o,a,l,A,m){var N,E;for(this.raw=o,this.xMin=a,this.yMin=l,this.xMax=A,this.yMax=m,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],N=this.raw;E=N.readShort(),this.glyphOffsets.push(N.pos),this.glyphIDs.push(N.readUInt16()),32&E;)N.pos+=1&E?4:2,128&E?N.pos+=8:64&E?N.pos+=4:8&E&&(N.pos+=2)}return n.prototype.encode=function(){var o,a,l;for(a=new lh(Eg.call(this.raw.data)),o=0,l=this.glyphIDs.length;o<l;++o)a.pos=this.glyphOffsets[o];return a.data},n}(),n1=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return fu(n,kA),n.prototype.tag="loca",n.prototype.parse=function(o){var a,l;return o.pos=this.offset,a=this.file.head.indexToLocFormat,this.offsets=a===0?function(){var A,m;for(m=[],l=0,A=this.length;l<A;l+=2)m.push(2*o.readUInt16());return m}.call(this):function(){var A,m;for(m=[],l=0,A=this.length;l<A;l+=4)m.push(o.readUInt32());return m}.call(this)},n.prototype.indexOf=function(o){return this.offsets[o]},n.prototype.lengthOf=function(o){return this.offsets[o+1]-this.offsets[o]},n.prototype.encode=function(o,a){for(var l=new Uint32Array(this.offsets.length),A=0,m=0,N=0;N<l.length;++N)if(l[N]=A,m<a.length&&a[m]==N){++m,l[N]=A;var E=this.offsets[N],U=this.offsets[N+1]-E;U>0&&(A+=U)}for(var Z=new Array(4*l.length),oe=0;oe<l.length;++oe)Z[4*oe+3]=255&l[oe],Z[4*oe+2]=(65280&l[oe])>>8,Z[4*oe+1]=(16711680&l[oe])>>16,Z[4*oe]=(4278190080&l[oe])>>24;return Z},n}(),Ig=function(){function n(o){this.font=o,this.subset={},this.unicodes={},this.next=33}return n.prototype.generateCmap=function(){var o,a,l,A,m;for(a in A=this.font.cmap.tables[0].codeMap,o={},m=this.subset)l=m[a],o[a]=A[l];return o},n.prototype.glyphsFor=function(o){var a,l,A,m,N,E,U;for(A={},N=0,E=o.length;N<E;N++)A[m=o[N]]=this.font.glyf.glyphFor(m);for(m in a=[],A)(l=A[m])!=null&&l.compound&&a.push.apply(a,l.glyphIDs);if(a.length>0)for(m in U=this.glyphsFor(a))l=U[m],A[m]=l;return A},n.prototype.encode=function(o,a){var l,A,m,N,E,U,Z,oe,Re,Ze,ae,mt,ut,yt,st;for(A in l=dm.encode(this.generateCmap(),"unicode"),N=this.glyphsFor(o),ae={0:0},st=l.charMap)ae[(U=st[A]).old]=U.new;for(mt in Ze=l.maxGlyphID,N)mt in ae||(ae[mt]=Ze++);return oe=function(Gt){var Qt,It;for(Qt in It={},Gt)It[Gt[Qt]]=Qt;return It}(ae),Re=Object.keys(oe).sort(function(Gt,Qt){return Gt-Qt}),ut=function(){var Gt,Qt,It;for(It=[],Gt=0,Qt=Re.length;Gt<Qt;Gt++)E=Re[Gt],It.push(oe[E]);return It}(),m=this.font.glyf.encode(N,ut,ae),Z=this.font.loca.encode(m.offsets,ut),yt={cmap:this.font.cmap.raw(),glyf:m.table,loca:Z,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(a)},this.font.os2.exists&&(yt["OS/2"]=this.font.os2.raw()),this.font.directory.encode(yt)},n}();ua.API.PDFObject=function(){var n;function o(){}return n=function(a,l){return(Array(l+1).join("0")+a).slice(-l)},o.convert=function(a){var l,A,m,N;if(Array.isArray(a))return"["+function(){var E,U,Z;for(Z=[],E=0,U=a.length;E<U;E++)l=a[E],Z.push(o.convert(l));return Z}().join(" ")+"]";if(typeof a=="string")return"/"+a;if(a!=null&&a.isString)return"("+a+")";if(a instanceof Date)return"(D:"+n(a.getUTCFullYear(),4)+n(a.getUTCMonth(),2)+n(a.getUTCDate(),2)+n(a.getUTCHours(),2)+n(a.getUTCMinutes(),2)+n(a.getUTCSeconds(),2)+"Z)";if({}.toString.call(a)==="[object Object]"){for(A in m=["<<"],a)N=a[A],m.push("/"+A+" "+o.convert(N));return m.push(">>"),m.join(`
`)}return""+a},o}()},86129:function(dn,Ut,C){var pe=C(19208).lW,Ae=C(97671);(function(P){dn.exports=P()})(function(){return function P(Ne,te,W){function S(v,$){if(!te[v]){if(!Ne[v]){var _=void 0;if(!$&&_)return require(v,!0);if(g)return g(v,!0);var M=new Error("Cannot find module '"+v+"'");throw M.code="MODULE_NOT_FOUND",M}var O=te[v]={exports:{}};Ne[v][0].call(O.exports,function(T){var L=Ne[v][1][T];return S(L||T)},O,O.exports,P,Ne,te,W)}return te[v].exports}for(var g=void 0,F=0;F<W.length;F++)S(W[F]);return S}({1:[function(P,Ne,te){"use strict";var W=P("./utils"),S=P("./support"),g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";te.encode=function(F){for(var v,$,_,M,O,T,L,q=[],R=0,se=F.length,ne=se,J=W.getTypeOf(F)!=="string";R<F.length;)ne=se-R,_=J?(v=F[R++],$=R<se?F[R++]:0,R<se?F[R++]:0):(v=F.charCodeAt(R++),$=R<se?F.charCodeAt(R++):0,R<se?F.charCodeAt(R++):0),M=v>>2,O=(3&v)<<4|$>>4,T=1<ne?(15&$)<<2|_>>6:64,L=2<ne?63&_:64,q.push(g.charAt(M)+g.charAt(O)+g.charAt(T)+g.charAt(L));return q.join("")},te.decode=function(F){var v,$,_,M,O,T,L=0,q=0,R="data:";if(F.substr(0,R.length)===R)throw new Error("Invalid base64 input, it looks like a data url.");var se,ne=3*(F=F.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(F.charAt(F.length-1)===g.charAt(64)&&ne--,F.charAt(F.length-2)===g.charAt(64)&&ne--,ne%1!=0)throw new Error("Invalid base64 input, bad content length.");for(se=S.uint8array?new Uint8Array(0|ne):new Array(0|ne);L<F.length;)v=g.indexOf(F.charAt(L++))<<2|(M=g.indexOf(F.charAt(L++)))>>4,$=(15&M)<<4|(O=g.indexOf(F.charAt(L++)))>>2,_=(3&O)<<6|(T=g.indexOf(F.charAt(L++))),se[q++]=v,O!==64&&(se[q++]=$),T!==64&&(se[q++]=_);return se}},{"./support":30,"./utils":32}],2:[function(P,Ne,te){"use strict";var W=P("./external"),S=P("./stream/DataWorker"),g=P("./stream/Crc32Probe"),F=P("./stream/DataLengthProbe");function v($,_,M,O,T){this.compressedSize=$,this.uncompressedSize=_,this.crc32=M,this.compression=O,this.compressedContent=T}v.prototype={getContentWorker:function(){var $=new S(W.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new F("data_length")),_=this;return $.on("end",function(){if(this.streamInfo.data_length!==_.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),$},getCompressedWorker:function(){return new S(W.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},v.createWorkerFrom=function($,_,M){return $.pipe(new g).pipe(new F("uncompressedSize")).pipe(_.compressWorker(M)).pipe(new F("compressedSize")).withStreamInfo("compression",_)},Ne.exports=v},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(P,Ne,te){"use strict";var W=P("./stream/GenericWorker");te.STORE={magic:"\0\0",compressWorker:function(){return new W("STORE compression")},uncompressWorker:function(){return new W("STORE decompression")}},te.DEFLATE=P("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(P,Ne,te){"use strict";var W=P("./utils"),S=function(){for(var g,F=[],v=0;v<256;v++){g=v;for(var $=0;$<8;$++)g=1&g?3988292384^g>>>1:g>>>1;F[v]=g}return F}();Ne.exports=function(g,F){return g!==void 0&&g.length?W.getTypeOf(g)!=="string"?function(v,$,_,M){var O=S,T=M+_;v^=-1;for(var L=M;L<T;L++)v=v>>>8^O[255&(v^$[L])];return-1^v}(0|F,g,g.length,0):function(v,$,_,M){var O=S,T=M+_;v^=-1;for(var L=M;L<T;L++)v=v>>>8^O[255&(v^$.charCodeAt(L))];return-1^v}(0|F,g,g.length,0):0}},{"./utils":32}],5:[function(P,Ne,te){"use strict";te.base64=!1,te.binary=!1,te.dir=!1,te.createFolders=!0,te.date=null,te.compression=null,te.compressionOptions=null,te.comment=null,te.unixPermissions=null,te.dosPermissions=null},{}],6:[function(P,Ne,te){"use strict";var W=null;W=typeof Promise!="undefined"?Promise:P("lie"),Ne.exports={Promise:W}},{lie:37}],7:[function(P,Ne,te){"use strict";var W=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",S=P("pako"),g=P("./utils"),F=P("./stream/GenericWorker"),v=W?"uint8array":"array";function $(_,M){F.call(this,"FlateWorker/"+_),this._pako=null,this._pakoAction=_,this._pakoOptions=M,this.meta={}}te.magic="\b\0",g.inherits($,F),$.prototype.processChunk=function(_){this.meta=_.meta,this._pako===null&&this._createPako(),this._pako.push(g.transformTo(v,_.data),!1)},$.prototype.flush=function(){F.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},$.prototype.cleanUp=function(){F.prototype.cleanUp.call(this),this._pako=null},$.prototype._createPako=function(){this._pako=new S[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var _=this;this._pako.onData=function(M){_.push({data:M,meta:_.meta})}},te.compressWorker=function(_){return new $("Deflate",_)},te.uncompressWorker=function(){return new $("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(P,Ne,te){"use strict";function W(O,T){var L,q="";for(L=0;L<T;L++)q+=String.fromCharCode(255&O),O>>>=8;return q}function S(O,T,L,q,R,se){var ne,J,G=O.file,K=O.compression,le=se!==v.utf8encode,me=g.transformTo("string",se(G.name)),Oe=g.transformTo("string",v.utf8encode(G.name)),Ce=G.comment,Ue=g.transformTo("string",se(Ce)),ee=g.transformTo("string",v.utf8encode(Ce)),de=Oe.length!==G.name.length,D=ee.length!==Ce.length,Ye="",ke="",xe="",Te=G.dir,ve=G.date,De={crc32:0,compressedSize:0,uncompressedSize:0};T&&!L||(De.crc32=O.crc32,De.compressedSize=O.compressedSize,De.uncompressedSize=O.uncompressedSize);var he=0;T&&(he|=8),le||!de&&!D||(he|=2048);var Se=0,Xe=0;Te&&(Se|=16),R==="UNIX"?(Xe=798,Se|=function(je,qe){var Et=je;return je||(Et=qe?16893:33204),(65535&Et)<<16}(G.unixPermissions,Te)):(Xe=20,Se|=function(je){return 63&(je||0)}(G.dosPermissions)),ne=ve.getUTCHours(),ne<<=6,ne|=ve.getUTCMinutes(),ne<<=5,ne|=ve.getUTCSeconds()/2,J=ve.getUTCFullYear()-1980,J<<=4,J|=ve.getUTCMonth()+1,J<<=5,J|=ve.getUTCDate(),de&&(ke=W(1,1)+W($(me),4)+Oe,Ye+="up"+W(ke.length,2)+ke),D&&(xe=W(1,1)+W($(Ue),4)+ee,Ye+="uc"+W(xe.length,2)+xe);var et="";return et+=`
\0`,et+=W(he,2),et+=K.magic,et+=W(ne,2),et+=W(J,2),et+=W(De.crc32,4),et+=W(De.compressedSize,4),et+=W(De.uncompressedSize,4),et+=W(me.length,2),et+=W(Ye.length,2),{fileRecord:_.LOCAL_FILE_HEADER+et+me+Ye,dirRecord:_.CENTRAL_FILE_HEADER+W(Xe,2)+et+W(Ue.length,2)+"\0\0\0\0"+W(Se,4)+W(q,4)+me+Ye+Ue}}var g=P("../utils"),F=P("../stream/GenericWorker"),v=P("../utf8"),$=P("../crc32"),_=P("../signature");function M(O,T,L,q){F.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=T,this.zipPlatform=L,this.encodeFileName=q,this.streamFiles=O,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}g.inherits(M,F),M.prototype.push=function(O){var T=O.meta.percent||0,L=this.entriesCount,q=this._sources.length;this.accumulate?this.contentBuffer.push(O):(this.bytesWritten+=O.data.length,F.prototype.push.call(this,{data:O.data,meta:{currentFile:this.currentFile,percent:L?(T+100*(L-q-1))/L:100}}))},M.prototype.openedSource=function(O){this.currentSourceOffset=this.bytesWritten,this.currentFile=O.file.name;var T=this.streamFiles&&!O.file.dir;if(T){var L=S(O,T,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:L.fileRecord,meta:{percent:0}})}else this.accumulate=!0},M.prototype.closedSource=function(O){this.accumulate=!1;var T=this.streamFiles&&!O.file.dir,L=S(O,T,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(L.dirRecord),T)this.push({data:function(q){return _.DATA_DESCRIPTOR+W(q.crc32,4)+W(q.compressedSize,4)+W(q.uncompressedSize,4)}(O),meta:{percent:100}});else for(this.push({data:L.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},M.prototype.flush=function(){for(var O=this.bytesWritten,T=0;T<this.dirRecords.length;T++)this.push({data:this.dirRecords[T],meta:{percent:100}});var L=this.bytesWritten-O,q=function(R,se,ne,J,G){var K=g.transformTo("string",G(J));return _.CENTRAL_DIRECTORY_END+"\0\0\0\0"+W(R,2)+W(R,2)+W(se,4)+W(ne,4)+W(K.length,2)+K}(this.dirRecords.length,L,O,this.zipComment,this.encodeFileName);this.push({data:q,meta:{percent:100}})},M.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},M.prototype.registerPrevious=function(O){this._sources.push(O);var T=this;return O.on("data",function(L){T.processChunk(L)}),O.on("end",function(){T.closedSource(T.previous.streamInfo),T._sources.length?T.prepareNextSource():T.end()}),O.on("error",function(L){T.error(L)}),this},M.prototype.resume=function(){return!!F.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},M.prototype.error=function(O){var T=this._sources;if(!F.prototype.error.call(this,O))return!1;for(var L=0;L<T.length;L++)try{T[L].error(O)}catch(q){}return!0},M.prototype.lock=function(){F.prototype.lock.call(this);for(var O=this._sources,T=0;T<O.length;T++)O[T].lock()},Ne.exports=M},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(P,Ne,te){"use strict";var W=P("../compressions"),S=P("./ZipFileWorker");te.generateWorker=function(g,F,v){var $=new S(F.streamFiles,v,F.platform,F.encodeFileName),_=0;try{g.forEach(function(M,O){_++;var T=function(se,ne){var J=se||ne,G=W[J];if(!G)throw new Error(J+" is not a valid compression method !");return G}(O.options.compression,F.compression),L=O.options.compressionOptions||F.compressionOptions||{},q=O.dir,R=O.date;O._compressWorker(T,L).withStreamInfo("file",{name:M,dir:q,date:R,comment:O.comment||"",unixPermissions:O.unixPermissions,dosPermissions:O.dosPermissions}).pipe($)}),$.entriesCount=_}catch(M){$.error(M)}return $}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(P,Ne,te){"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 S=new W;for(var g in this)typeof this[g]!="function"&&(S[g]=this[g]);return S}}(W.prototype=P("./object")).loadAsync=P("./load"),W.support=P("./support"),W.defaults=P("./defaults"),W.version="3.10.1",W.loadAsync=function(S,g){return new W().loadAsync(S,g)},W.external=P("./external"),Ne.exports=W},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(P,Ne,te){"use strict";var W=P("./utils"),S=P("./external"),g=P("./utf8"),F=P("./zipEntries"),v=P("./stream/Crc32Probe"),$=P("./nodejsUtils");function _(M){return new S.Promise(function(O,T){var L=M.decompressed.getContentWorker().pipe(new v);L.on("error",function(q){T(q)}).on("end",function(){L.streamInfo.crc32!==M.decompressed.crc32?T(new Error("Corrupted zip : CRC32 mismatch")):O()}).resume()})}Ne.exports=function(M,O){var T=this;return O=W.extend(O||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:g.utf8decode}),$.isNode&&$.isStream(M)?S.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):W.prepareContent("the loaded zip file",M,!0,O.optimizedBinaryString,O.base64).then(function(L){var q=new F(O);return q.load(L),q}).then(function(L){var q=[S.Promise.resolve(L)],R=L.files;if(O.checkCRC32)for(var se=0;se<R.length;se++)q.push(_(R[se]));return S.Promise.all(q)}).then(function(L){for(var q=L.shift(),R=q.files,se=0;se<R.length;se++){var ne=R[se],J=ne.fileNameStr,G=W.resolve(ne.fileNameStr);T.file(G,ne.decompressed,{binary:!0,optimizedBinaryString:!0,date:ne.date,dir:ne.dir,comment:ne.fileCommentStr.length?ne.fileCommentStr:null,unixPermissions:ne.unixPermissions,dosPermissions:ne.dosPermissions,createFolders:O.createFolders}),ne.dir||(T.file(G).unsafeOriginalName=J)}return q.zipComment.length&&(T.comment=q.zipComment),T})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(P,Ne,te){"use strict";var W=P("../utils"),S=P("../stream/GenericWorker");function g(F,v){S.call(this,"Nodejs stream input adapter for "+F),this._upstreamEnded=!1,this._bindStream(v)}W.inherits(g,S),g.prototype._bindStream=function(F){var v=this;(this._stream=F).pause(),F.on("data",function($){v.push({data:$,meta:{percent:0}})}).on("error",function($){v.isPaused?this.generatedError=$:v.error($)}).on("end",function(){v.isPaused?v._upstreamEnded=!0:v.end()})},g.prototype.pause=function(){return!!S.prototype.pause.call(this)&&(this._stream.pause(),!0)},g.prototype.resume=function(){return!!S.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},Ne.exports=g},{"../stream/GenericWorker":28,"../utils":32}],13:[function(P,Ne,te){"use strict";var W=P("readable-stream").Readable;function S(g,F,v){W.call(this,F),this._helper=g;var $=this;g.on("data",function(_,M){$.push(_)||$._helper.pause(),v&&v(M)}).on("error",function(_){$.emit("error",_)}).on("end",function(){$.push(null)})}P("../utils").inherits(S,W),S.prototype._read=function(){this._helper.resume()},Ne.exports=S},{"../utils":32,"readable-stream":16}],14:[function(P,Ne,te){"use strict";Ne.exports={isNode:typeof pe!="undefined",newBufferFrom:function(W,S){if(pe.from&&pe.from!==Uint8Array.from)return pe.from(W,S);if(typeof W=="number")throw new Error('The "data" argument must not be a number');return new pe(W,S)},allocBuffer:function(W){if(pe.alloc)return pe.alloc(W);var S=new pe(W);return S.fill(0),S},isBuffer:function(W){return pe.isBuffer(W)},isStream:function(W){return W&&typeof W.on=="function"&&typeof W.pause=="function"&&typeof W.resume=="function"}}},{}],15:[function(P,Ne,te){"use strict";function W(G,K,le){var me,Oe=g.getTypeOf(K),Ce=g.extend(le||{},$);Ce.date=Ce.date||new Date,Ce.compression!==null&&(Ce.compression=Ce.compression.toUpperCase()),typeof Ce.unixPermissions=="string"&&(Ce.unixPermissions=parseInt(Ce.unixPermissions,8)),Ce.unixPermissions&&16384&Ce.unixPermissions&&(Ce.dir=!0),Ce.dosPermissions&&16&Ce.dosPermissions&&(Ce.dir=!0),Ce.dir&&(G=R(G)),Ce.createFolders&&(me=q(G))&&se.call(this,me,!0);var Ue=Oe==="string"&&Ce.binary===!1&&Ce.base64===!1;le&&le.binary!==void 0||(Ce.binary=!Ue),(K instanceof _&&K.uncompressedSize===0||Ce.dir||!K||K.length===0)&&(Ce.base64=!1,Ce.binary=!0,K="",Ce.compression="STORE",Oe="string");var ee=null;ee=K instanceof _||K instanceof F?K:T.isNode&&T.isStream(K)?new L(G,K):g.prepareContent(G,K,Ce.binary,Ce.optimizedBinaryString,Ce.base64);var de=new M(G,ee,Ce);this.files[G]=de}var S=P("./utf8"),g=P("./utils"),F=P("./stream/GenericWorker"),v=P("./stream/StreamHelper"),$=P("./defaults"),_=P("./compressedObject"),M=P("./zipObject"),O=P("./generate"),T=P("./nodejsUtils"),L=P("./nodejs/NodejsStreamInputAdapter"),q=function(G){G.slice(-1)==="/"&&(G=G.substring(0,G.length-1));var K=G.lastIndexOf("/");return 0<K?G.substring(0,K):""},R=function(G){return G.slice(-1)!=="/"&&(G+="/"),G},se=function(G,K){return K=K!==void 0?K:$.createFolders,G=R(G),this.files[G]||W.call(this,G,null,{dir:!0,createFolders:K}),this.files[G]};function ne(G){return Object.prototype.toString.call(G)==="[object RegExp]"}var J={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(G){var K,le,me;for(K in this.files)me=this.files[K],(le=K.slice(this.root.length,K.length))&&K.slice(0,this.root.length)===this.root&&G(le,me)},filter:function(G){var K=[];return this.forEach(function(le,me){G(le,me)&&K.push(me)}),K},file:function(G,K,le){if(arguments.length!==1)return G=this.root+G,W.call(this,G,K,le),this;if(ne(G)){var me=G;return this.filter(function(Ce,Ue){return!Ue.dir&&me.test(Ce)})}var Oe=this.files[this.root+G];return Oe&&!Oe.dir?Oe:null},folder:function(G){if(!G)return this;if(ne(G))return this.filter(function(Oe,Ce){return Ce.dir&&G.test(Oe)});var K=this.root+G,le=se.call(this,K),me=this.clone();return me.root=le.name,me},remove:function(G){G=this.root+G;var K=this.files[G];if(K||(G.slice(-1)!=="/"&&(G+="/"),K=this.files[G]),K&&!K.dir)delete this.files[G];else for(var le=this.filter(function(Oe,Ce){return Ce.name.slice(0,G.length)===G}),me=0;me<le.length;me++)delete this.files[le[me].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(G){var K,le={};try{if((le=g.extend(G||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:S.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.");g.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 me=le.comment||this.comment||"";K=O.generateWorker(this,le,me)}catch(Oe){(K=new F("error")).error(Oe)}return new v(K,le.type||"string",le.mimeType)},generateAsync:function(G,K){return this.generateInternalStream(G).accumulate(K)},generateNodeStream:function(G,K){return(G=G||{}).type||(G.type="nodebuffer"),this.generateInternalStream(G).toNodejsStream(K)}};Ne.exports=J},{"./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(P,Ne,te){"use strict";Ne.exports=P("stream")},{stream:void 0}],17:[function(P,Ne,te){"use strict";var W=P("./DataReader");function S(g){W.call(this,g);for(var F=0;F<this.data.length;F++)g[F]=255&g[F]}P("../utils").inherits(S,W),S.prototype.byteAt=function(g){return this.data[this.zero+g]},S.prototype.lastIndexOfSignature=function(g){for(var F=g.charCodeAt(0),v=g.charCodeAt(1),$=g.charCodeAt(2),_=g.charCodeAt(3),M=this.length-4;0<=M;--M)if(this.data[M]===F&&this.data[M+1]===v&&this.data[M+2]===$&&this.data[M+3]===_)return M-this.zero;return-1},S.prototype.readAndCheckSignature=function(g){var F=g.charCodeAt(0),v=g.charCodeAt(1),$=g.charCodeAt(2),_=g.charCodeAt(3),M=this.readData(4);return F===M[0]&&v===M[1]&&$===M[2]&&_===M[3]},S.prototype.readData=function(g){if(this.checkOffset(g),g===0)return[];var F=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,F},Ne.exports=S},{"../utils":32,"./DataReader":18}],18:[function(P,Ne,te){"use strict";var W=P("../utils");function S(g){this.data=g,this.length=g.length,this.index=0,this.zero=0}S.prototype={checkOffset:function(g){this.checkIndex(this.index+g)},checkIndex:function(g){if(this.length<this.zero+g||g<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+g+"). Corrupted zip ?")},setIndex:function(g){this.checkIndex(g),this.index=g},skip:function(g){this.setIndex(this.index+g)},byteAt:function(){},readInt:function(g){var F,v=0;for(this.checkOffset(g),F=this.index+g-1;F>=this.index;F--)v=(v<<8)+this.byteAt(F);return this.index+=g,v},readString:function(g){return W.transformTo("string",this.readData(g))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var g=this.readInt(4);return new Date(Date.UTC(1980+(g>>25&127),(g>>21&15)-1,g>>16&31,g>>11&31,g>>5&63,(31&g)<<1))}},Ne.exports=S},{"../utils":32}],19:[function(P,Ne,te){"use strict";var W=P("./Uint8ArrayReader");function S(g){W.call(this,g)}P("../utils").inherits(S,W),S.prototype.readData=function(g){this.checkOffset(g);var F=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,F},Ne.exports=S},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(P,Ne,te){"use strict";var W=P("./DataReader");function S(g){W.call(this,g)}P("../utils").inherits(S,W),S.prototype.byteAt=function(g){return this.data.charCodeAt(this.zero+g)},S.prototype.lastIndexOfSignature=function(g){return this.data.lastIndexOf(g)-this.zero},S.prototype.readAndCheckSignature=function(g){return g===this.readData(4)},S.prototype.readData=function(g){this.checkOffset(g);var F=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,F},Ne.exports=S},{"../utils":32,"./DataReader":18}],21:[function(P,Ne,te){"use strict";var W=P("./ArrayReader");function S(g){W.call(this,g)}P("../utils").inherits(S,W),S.prototype.readData=function(g){if(this.checkOffset(g),g===0)return new Uint8Array(0);var F=this.data.subarray(this.zero+this.index,this.zero+this.index+g);return this.index+=g,F},Ne.exports=S},{"../utils":32,"./ArrayReader":17}],22:[function(P,Ne,te){"use strict";var W=P("../utils"),S=P("../support"),g=P("./ArrayReader"),F=P("./StringReader"),v=P("./NodeBufferReader"),$=P("./Uint8ArrayReader");Ne.exports=function(_){var M=W.getTypeOf(_);return W.checkSupport(M),M!=="string"||S.uint8array?M==="nodebuffer"?new v(_):S.uint8array?new $(W.transformTo("uint8array",_)):new g(W.transformTo("array",_)):new F(_)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(P,Ne,te){"use strict";te.LOCAL_FILE_HEADER="PK",te.CENTRAL_FILE_HEADER="PK",te.CENTRAL_DIRECTORY_END="PK",te.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",te.ZIP64_CENTRAL_DIRECTORY_END="PK",te.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(P,Ne,te){"use strict";var W=P("./GenericWorker"),S=P("../utils");function g(F){W.call(this,"ConvertWorker to "+F),this.destType=F}S.inherits(g,W),g.prototype.processChunk=function(F){this.push({data:S.transformTo(this.destType,F.data),meta:F.meta})},Ne.exports=g},{"../utils":32,"./GenericWorker":28}],25:[function(P,Ne,te){"use strict";var W=P("./GenericWorker"),S=P("../crc32");function g(){W.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}P("../utils").inherits(g,W),g.prototype.processChunk=function(F){this.streamInfo.crc32=S(F.data,this.streamInfo.crc32||0),this.push(F)},Ne.exports=g},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(P,Ne,te){"use strict";var W=P("../utils"),S=P("./GenericWorker");function g(F){S.call(this,"DataLengthProbe for "+F),this.propName=F,this.withStreamInfo(F,0)}W.inherits(g,S),g.prototype.processChunk=function(F){if(F){var v=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=v+F.data.length}S.prototype.processChunk.call(this,F)},Ne.exports=g},{"../utils":32,"./GenericWorker":28}],27:[function(P,Ne,te){"use strict";var W=P("../utils"),S=P("./GenericWorker");function g(F){S.call(this,"DataWorker");var v=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,F.then(function($){v.dataIsReady=!0,v.data=$,v.max=$&&$.length||0,v.type=W.getTypeOf($),v.isPaused||v._tickAndRepeat()},function($){v.error($)})}W.inherits(g,S),g.prototype.cleanUp=function(){S.prototype.cleanUp.call(this),this.data=null},g.prototype.resume=function(){return!!S.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,W.delay(this._tickAndRepeat,[],this)),!0)},g.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(W.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},g.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var F=null,v=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":F=this.data.substring(this.index,v);break;case"uint8array":F=this.data.subarray(this.index,v);break;case"array":case"nodebuffer":F=this.data.slice(this.index,v)}return this.index=v,this.push({data:F,meta:{percent:this.max?this.index/this.max*100:0}})},Ne.exports=g},{"../utils":32,"./GenericWorker":28}],28:[function(P,Ne,te){"use strict";function W(S){this.name=S||"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(S){this.emit("data",S)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(S){this.emit("error",S)}return!0},error:function(S){return!this.isFinished&&(this.isPaused?this.generatedError=S:(this.isFinished=!0,this.emit("error",S),this.previous&&this.previous.error(S),this.cleanUp()),!0)},on:function(S,g){return this._listeners[S].push(g),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(S,g){if(this._listeners[S])for(var F=0;F<this._listeners[S].length;F++)this._listeners[S][F].call(this,g)},pipe:function(S){return S.registerPrevious(this)},registerPrevious:function(S){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=S.streamInfo,this.mergeStreamInfo(),this.previous=S;var g=this;return S.on("data",function(F){g.processChunk(F)}),S.on("end",function(){g.end()}),S.on("error",function(F){g.error(F)}),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 S=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),S=!0),this.previous&&this.previous.resume(),!S},flush:function(){},processChunk:function(S){this.push(S)},withStreamInfo:function(S,g){return this.extraStreamInfo[S]=g,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var S in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,S)&&(this.streamInfo[S]=this.extraStreamInfo[S])},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 S="Worker "+this.name;return this.previous?this.previous+" -> "+S:S}},Ne.exports=W},{}],29:[function(P,Ne,te){"use strict";var W=P("../utils"),S=P("./ConvertWorker"),g=P("./GenericWorker"),F=P("../base64"),v=P("../support"),$=P("../external"),_=null;if(v.nodestream)try{_=P("../nodejs/NodejsStreamOutputAdapter")}catch(T){}function M(T,L){return new $.Promise(function(q,R){var se=[],ne=T._internalType,J=T._outputType,G=T._mimeType;T.on("data",function(K,le){se.push(K),L&&L(le)}).on("error",function(K){se=[],R(K)}).on("end",function(){try{var K=function(le,me,Oe){switch(le){case"blob":return W.newBlob(W.transformTo("arraybuffer",me),Oe);case"base64":return F.encode(me);default:return W.transformTo(le,me)}}(J,function(le,me){var Oe,Ce=0,Ue=null,ee=0;for(Oe=0;Oe<me.length;Oe++)ee+=me[Oe].length;switch(le){case"string":return me.join("");case"array":return Array.prototype.concat.apply([],me);case"uint8array":for(Ue=new Uint8Array(ee),Oe=0;Oe<me.length;Oe++)Ue.set(me[Oe],Ce),Ce+=me[Oe].length;return Ue;case"nodebuffer":return pe.concat(me);default:throw new Error("concat : unsupported type '"+le+"'")}}(ne,se),G);q(K)}catch(le){R(le)}se=[]}).resume()})}function O(T,L,q){var R=L;switch(L){case"blob":case"arraybuffer":R="uint8array";break;case"base64":R="string"}try{this._internalType=R,this._outputType=L,this._mimeType=q,W.checkSupport(R),this._worker=T.pipe(new S(R)),T.lock()}catch(se){this._worker=new g("error"),this._worker.error(se)}}O.prototype={accumulate:function(T){return M(this,T)},on:function(T,L){var q=this;return T==="data"?this._worker.on(T,function(R){L.call(q,R.data,R.meta)}):this._worker.on(T,function(){W.delay(L,arguments,q)}),this},resume:function(){return W.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(T){if(W.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new _(this,{objectMode:this._outputType!=="nodebuffer"},T)}},Ne.exports=O},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(P,Ne,te){"use strict";if(te.base64=!0,te.array=!0,te.string=!0,te.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",te.nodebuffer=typeof pe!="undefined",te.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")te.blob=!1;else{var W=new ArrayBuffer(0);try{te.blob=new Blob([W],{type:"application/zip"}).size===0}catch(g){try{var S=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);S.append(W),te.blob=S.getBlob("application/zip").size===0}catch(F){te.blob=!1}}}try{te.nodestream=!!P("readable-stream").Readable}catch(g){te.nodestream=!1}},{"readable-stream":16}],31:[function(P,Ne,te){"use strict";for(var W=P("./utils"),S=P("./support"),g=P("./nodejsUtils"),F=P("./stream/GenericWorker"),v=new Array(256),$=0;$<256;$++)v[$]=252<=$?6:248<=$?5:240<=$?4:224<=$?3:192<=$?2:1;v[254]=v[254]=1;function _(){F.call(this,"utf-8 decode"),this.leftOver=null}function M(){F.call(this,"utf-8 encode")}te.utf8encode=function(O){return S.nodebuffer?g.newBufferFrom(O,"utf-8"):function(T){var L,q,R,se,ne,J=T.length,G=0;for(se=0;se<J;se++)(64512&(q=T.charCodeAt(se)))==55296&&se+1<J&&(64512&(R=T.charCodeAt(se+1)))==56320&&(q=65536+(q-55296<<10)+(R-56320),se++),G+=q<128?1:q<2048?2:q<65536?3:4;for(L=S.uint8array?new Uint8Array(G):new Array(G),se=ne=0;ne<G;se++)(64512&(q=T.charCodeAt(se)))==55296&&se+1<J&&(64512&(R=T.charCodeAt(se+1)))==56320&&(q=65536+(q-55296<<10)+(R-56320),se++),q<128?L[ne++]=q:(q<2048?L[ne++]=192|q>>>6:(q<65536?L[ne++]=224|q>>>12:(L[ne++]=240|q>>>18,L[ne++]=128|q>>>12&63),L[ne++]=128|q>>>6&63),L[ne++]=128|63&q);return L}(O)},te.utf8decode=function(O){return S.nodebuffer?W.transformTo("nodebuffer",O).toString("utf-8"):function(T){var L,q,R,se,ne=T.length,J=new Array(2*ne);for(L=q=0;L<ne;)if((R=T[L++])<128)J[q++]=R;else if(4<(se=v[R]))J[q++]=65533,L+=se-1;else{for(R&=se===2?31:se===3?15:7;1<se&&L<ne;)R=R<<6|63&T[L++],se--;1<se?J[q++]=65533:R<65536?J[q++]=R:(R-=65536,J[q++]=55296|R>>10&1023,J[q++]=56320|1023&R)}return J.length!==q&&(J.subarray?J=J.subarray(0,q):J.length=q),W.applyFromCharCode(J)}(O=W.transformTo(S.uint8array?"uint8array":"array",O))},W.inherits(_,F),_.prototype.processChunk=function(O){var T=W.transformTo(S.uint8array?"uint8array":"array",O.data);if(this.leftOver&&this.leftOver.length){if(S.uint8array){var L=T;(T=new Uint8Array(L.length+this.leftOver.length)).set(this.leftOver,0),T.set(L,this.leftOver.length)}else T=this.leftOver.concat(T);this.leftOver=null}var q=function(se,ne){var J;for((ne=ne||se.length)>se.length&&(ne=se.length),J=ne-1;0<=J&&(192&se[J])==128;)J--;return J<0||J===0?ne:J+v[se[J]]>ne?J:ne}(T),R=T;q!==T.length&&(S.uint8array?(R=T.subarray(0,q),this.leftOver=T.subarray(q,T.length)):(R=T.slice(0,q),this.leftOver=T.slice(q,T.length))),this.push({data:te.utf8decode(R),meta:O.meta})},_.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:te.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},te.Utf8DecodeWorker=_,W.inherits(M,F),M.prototype.processChunk=function(O){this.push({data:te.utf8encode(O.data),meta:O.meta})},te.Utf8EncodeWorker=M},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(P,Ne,te){"use strict";var W=P("./support"),S=P("./base64"),g=P("./nodejsUtils"),F=P("./external");function v(L){return L}function $(L,q){for(var R=0;R<L.length;++R)q[R]=255&L.charCodeAt(R);return q}P("setimmediate"),te.newBlob=function(L,q){te.checkSupport("blob");try{return new Blob([L],{type:q})}catch(se){try{var R=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return R.append(L),R.getBlob(q)}catch(ne){throw new Error("Bug : can't construct the Blob.")}}};var _={stringifyByChunk:function(L,q,R){var se=[],ne=0,J=L.length;if(J<=R)return String.fromCharCode.apply(null,L);for(;ne<J;)q==="array"||q==="nodebuffer"?se.push(String.fromCharCode.apply(null,L.slice(ne,Math.min(ne+R,J)))):se.push(String.fromCharCode.apply(null,L.subarray(ne,Math.min(ne+R,J)))),ne+=R;return se.join("")},stringifyByChar:function(L){for(var q="",R=0;R<L.length;R++)q+=String.fromCharCode(L[R]);return q},applyCanBeUsed:{uint8array:function(){try{return W.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(L){return!1}}(),nodebuffer:function(){try{return W.nodebuffer&&String.fromCharCode.apply(null,g.allocBuffer(1)).length===1}catch(L){return!1}}()}};function M(L){var q=65536,R=te.getTypeOf(L),se=!0;if(R==="uint8array"?se=_.applyCanBeUsed.uint8array:R==="nodebuffer"&&(se=_.applyCanBeUsed.nodebuffer),se)for(;1<q;)try{return _.stringifyByChunk(L,R,q)}catch(ne){q=Math.floor(q/2)}return _.stringifyByChar(L)}function O(L,q){for(var R=0;R<L.length;R++)q[R]=L[R];return q}te.applyFromCharCode=M;var T={};T.string={string:v,array:function(L){return $(L,new Array(L.length))},arraybuffer:function(L){return T.string.uint8array(L).buffer},uint8array:function(L){return $(L,new Uint8Array(L.length))},nodebuffer:function(L){return $(L,g.allocBuffer(L.length))}},T.array={string:M,array:v,arraybuffer:function(L){return new Uint8Array(L).buffer},uint8array:function(L){return new Uint8Array(L)},nodebuffer:function(L){return g.newBufferFrom(L)}},T.arraybuffer={string:function(L){return M(new Uint8Array(L))},array:function(L){return O(new Uint8Array(L),new Array(L.byteLength))},arraybuffer:v,uint8array:function(L){return new Uint8Array(L)},nodebuffer:function(L){return g.newBufferFrom(new Uint8Array(L))}},T.uint8array={string:M,array:function(L){return O(L,new Array(L.length))},arraybuffer:function(L){return L.buffer},uint8array:v,nodebuffer:function(L){return g.newBufferFrom(L)}},T.nodebuffer={string:M,array:function(L){return O(L,new Array(L.length))},arraybuffer:function(L){return T.nodebuffer.uint8array(L).buffer},uint8array:function(L){return O(L,new Uint8Array(L.length))},nodebuffer:v},te.transformTo=function(L,q){if(q=q||"",!L)return q;te.checkSupport(L);var R=te.getTypeOf(q);return T[R][L](q)},te.resolve=function(L){for(var q=L.split("/"),R=[],se=0;se<q.length;se++){var ne=q[se];ne==="."||ne===""&&se!==0&&se!==q.length-1||(ne===".."?R.pop():R.push(ne))}return R.join("/")},te.getTypeOf=function(L){return typeof L=="string"?"string":Object.prototype.toString.call(L)==="[object Array]"?"array":W.nodebuffer&&g.isBuffer(L)?"nodebuffer":W.uint8array&&L instanceof Uint8Array?"uint8array":W.arraybuffer&&L instanceof ArrayBuffer?"arraybuffer":void 0},te.checkSupport=function(L){if(!W[L.toLowerCase()])throw new Error(L+" is not supported by this platform")},te.MAX_VALUE_16BITS=65535,te.MAX_VALUE_32BITS=-1,te.pretty=function(L){var q,R,se="";for(R=0;R<(L||"").length;R++)se+="\\x"+((q=L.charCodeAt(R))<16?"0":"")+q.toString(16).toUpperCase();return se},te.delay=function(L,q,R){setImmediate(function(){L.apply(R||null,q||[])})},te.inherits=function(L,q){function R(){}R.prototype=q.prototype,L.prototype=new R},te.extend=function(){var L,q,R={};for(L=0;L<arguments.length;L++)for(q in arguments[L])Object.prototype.hasOwnProperty.call(arguments[L],q)&&R[q]===void 0&&(R[q]=arguments[L][q]);return R},te.prepareContent=function(L,q,R,se,ne){return F.Promise.resolve(q).then(function(J){return W.blob&&(J instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(J))!==-1)&&typeof FileReader!="undefined"?new F.Promise(function(G,K){var le=new FileReader;le.onload=function(me){G(me.target.result)},le.onerror=function(me){K(me.target.error)},le.readAsArrayBuffer(J)}):J}).then(function(J){var G=te.getTypeOf(J);return G?(G==="arraybuffer"?J=te.transformTo("uint8array",J):G==="string"&&(ne?J=S.decode(J):R&&se!==!0&&(J=function(K){return $(K,W.uint8array?new Uint8Array(K.length):new Array(K.length))}(J))),J):F.Promise.reject(new Error("Can't read the data of '"+L+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(P,Ne,te){"use strict";var W=P("./reader/readerFor"),S=P("./utils"),g=P("./signature"),F=P("./zipEntry"),v=P("./support");function $(_){this.files=[],this.loadOptions=_}$.prototype={checkSignature:function(_){if(!this.reader.readAndCheckSignature(_)){this.reader.index-=4;var M=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+S.pretty(M)+", expected "+S.pretty(_)+")")}},isSignature:function(_,M){var O=this.reader.index;this.reader.setIndex(_);var T=this.reader.readString(4)===M;return this.reader.setIndex(O),T},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 _=this.reader.readData(this.zipCommentLength),M=v.uint8array?"uint8array":"array",O=S.transformTo(M,_);this.zipComment=this.loadOptions.decodeFileName(O)},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 _,M,O,T=this.zip64EndOfCentralSize-44;0<T;)_=this.reader.readInt(2),M=this.reader.readInt(4),O=this.reader.readData(M),this.zip64ExtensibleData[_]={id:_,length:M,value:O}},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 _,M;for(_=0;_<this.files.length;_++)M=this.files[_],this.reader.setIndex(M.localHeaderOffset),this.checkSignature(g.LOCAL_FILE_HEADER),M.readLocalPart(this.reader),M.handleUTF8(),M.processAttributes()},readCentralDir:function(){var _;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(g.CENTRAL_FILE_HEADER);)(_=new F({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(_);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 _=this.reader.lastIndexOfSignature(g.CENTRAL_DIRECTORY_END);if(_<0)throw this.isSignature(0,g.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(_);var M=_;if(this.checkSignature(g.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===S.MAX_VALUE_16BITS||this.diskWithCentralDirStart===S.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===S.MAX_VALUE_16BITS||this.centralDirRecords===S.MAX_VALUE_16BITS||this.centralDirSize===S.MAX_VALUE_32BITS||this.centralDirOffset===S.MAX_VALUE_32BITS){if(this.zip64=!0,(_=this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(_),this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,g.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(g.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(g.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var O=this.centralDirOffset+this.centralDirSize;this.zip64&&(O+=20,O+=12+this.zip64EndOfCentralSize);var T=M-O;if(0<T)this.isSignature(M,g.CENTRAL_FILE_HEADER)||(this.reader.zero=T);else if(T<0)throw new Error("Corrupted zip: missing "+Math.abs(T)+" bytes.")},prepareReader:function(_){this.reader=W(_)},load:function(_){this.prepareReader(_),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},Ne.exports=$},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(P,Ne,te){"use strict";var W=P("./reader/readerFor"),S=P("./utils"),g=P("./compressedObject"),F=P("./crc32"),v=P("./utf8"),$=P("./compressions"),_=P("./support");function M(O,T){this.options=O,this.loadOptions=T}M.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(O){var T,L;if(O.skip(22),this.fileNameLength=O.readInt(2),L=O.readInt(2),this.fileName=O.readData(this.fileNameLength),O.skip(L),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((T=function(q){for(var R in $)if(Object.prototype.hasOwnProperty.call($,R)&&$[R].magic===q)return $[R];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+S.pretty(this.compressionMethod)+" unknown (inner file : "+S.transformTo("string",this.fileName)+")");this.decompressed=new g(this.compressedSize,this.uncompressedSize,this.crc32,T,O.readData(this.compressedSize))},readCentralPart:function(O){this.versionMadeBy=O.readInt(2),O.skip(2),this.bitFlag=O.readInt(2),this.compressionMethod=O.readString(2),this.date=O.readDate(),this.crc32=O.readInt(4),this.compressedSize=O.readInt(4),this.uncompressedSize=O.readInt(4);var T=O.readInt(2);if(this.extraFieldsLength=O.readInt(2),this.fileCommentLength=O.readInt(2),this.diskNumberStart=O.readInt(2),this.internalFileAttributes=O.readInt(2),this.externalFileAttributes=O.readInt(4),this.localHeaderOffset=O.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");O.skip(T),this.readExtraFields(O),this.parseZIP64ExtraField(O),this.fileComment=O.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var O=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),O==0&&(this.dosPermissions=63&this.externalFileAttributes),O==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var O=W(this.extraFields[1].value);this.uncompressedSize===S.MAX_VALUE_32BITS&&(this.uncompressedSize=O.readInt(8)),this.compressedSize===S.MAX_VALUE_32BITS&&(this.compressedSize=O.readInt(8)),this.localHeaderOffset===S.MAX_VALUE_32BITS&&(this.localHeaderOffset=O.readInt(8)),this.diskNumberStart===S.MAX_VALUE_32BITS&&(this.diskNumberStart=O.readInt(4))}},readExtraFields:function(O){var T,L,q,R=O.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});O.index+4<R;)T=O.readInt(2),L=O.readInt(2),q=O.readData(L),this.extraFields[T]={id:T,length:L,value:q};O.setIndex(R)},handleUTF8:function(){var O=_.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=v.utf8decode(this.fileName),this.fileCommentStr=v.utf8decode(this.fileComment);else{var T=this.findExtraFieldUnicodePath();if(T!==null)this.fileNameStr=T;else{var L=S.transformTo(O,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(L)}var q=this.findExtraFieldUnicodeComment();if(q!==null)this.fileCommentStr=q;else{var R=S.transformTo(O,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(R)}}},findExtraFieldUnicodePath:function(){var O=this.extraFields[28789];if(O){var T=W(O.value);return T.readInt(1)!==1||F(this.fileName)!==T.readInt(4)?null:v.utf8decode(T.readData(O.length-5))}return null},findExtraFieldUnicodeComment:function(){var O=this.extraFields[25461];if(O){var T=W(O.value);return T.readInt(1)!==1||F(this.fileComment)!==T.readInt(4)?null:v.utf8decode(T.readData(O.length-5))}return null}},Ne.exports=M},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(P,Ne,te){"use strict";function W(T,L,q){this.name=T,this.dir=q.dir,this.date=q.date,this.comment=q.comment,this.unixPermissions=q.unixPermissions,this.dosPermissions=q.dosPermissions,this._data=L,this._dataBinary=q.binary,this.options={compression:q.compression,compressionOptions:q.compressionOptions}}var S=P("./stream/StreamHelper"),g=P("./stream/DataWorker"),F=P("./utf8"),v=P("./compressedObject"),$=P("./stream/GenericWorker");W.prototype={internalStream:function(T){var L=null,q="string";try{if(!T)throw new Error("No output type specified.");var R=(q=T.toLowerCase())==="string"||q==="text";q!=="binarystring"&&q!=="text"||(q="string"),L=this._decompressWorker();var se=!this._dataBinary;se&&!R&&(L=L.pipe(new F.Utf8EncodeWorker)),!se&&R&&(L=L.pipe(new F.Utf8DecodeWorker))}catch(ne){(L=new $("error")).error(ne)}return new S(L,q,"")},async:function(T,L){return this.internalStream(T).accumulate(L)},nodeStream:function(T,L){return this.internalStream(T||"nodebuffer").toNodejsStream(L)},_compressWorker:function(T,L){if(this._data instanceof v&&this._data.compression.magic===T.magic)return this._data.getCompressedWorker();var q=this._decompressWorker();return this._dataBinary||(q=q.pipe(new F.Utf8EncodeWorker)),v.createWorkerFrom(q,T,L)},_decompressWorker:function(){return this._data instanceof v?this._data.getContentWorker():this._data instanceof $?this._data:new g(this._data)}};for(var _=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],M=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},O=0;O<_.length;O++)W.prototype[_[O]]=M;Ne.exports=W},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(P,Ne,te){(function(W){"use strict";var S,g,F=W.MutationObserver||W.WebKitMutationObserver;if(F){var v=0,$=new F(T),_=W.document.createTextNode("");$.observe(_,{characterData:!0}),S=function(){_.data=v=++v%2}}else if(W.setImmediate||W.MessageChannel===void 0)S="document"in W&&"onreadystatechange"in W.document.createElement("script")?function(){var L=W.document.createElement("script");L.onreadystatechange=function(){T(),L.onreadystatechange=null,L.parentNode.removeChild(L),L=null},W.document.documentElement.appendChild(L)}:function(){setTimeout(T,0)};else{var M=new W.MessageChannel;M.port1.onmessage=T,S=function(){M.port2.postMessage(0)}}var O=[];function T(){var L,q;g=!0;for(var R=O.length;R;){for(q=O,O=[],L=-1;++L<R;)q[L]();R=O.length}g=!1}Ne.exports=function(L){O.push(L)!==1||g||S()}}).call(this,typeof C.g!="undefined"?C.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(P,Ne,te){"use strict";var W=P("immediate");function S(){}var g={},F=["REJECTED"],v=["FULFILLED"],$=["PENDING"];function _(R){if(typeof R!="function")throw new TypeError("resolver must be a function");this.state=$,this.queue=[],this.outcome=void 0,R!==S&&L(this,R)}function M(R,se,ne){this.promise=R,typeof se=="function"&&(this.onFulfilled=se,this.callFulfilled=this.otherCallFulfilled),typeof ne=="function"&&(this.onRejected=ne,this.callRejected=this.otherCallRejected)}function O(R,se,ne){W(function(){var J;try{J=se(ne)}catch(G){return g.reject(R,G)}J===R?g.reject(R,new TypeError("Cannot resolve promise with itself")):g.resolve(R,J)})}function T(R){var se=R&&R.then;if(R&&(typeof R=="object"||typeof R=="function")&&typeof se=="function")return function(){se.apply(R,arguments)}}function L(R,se){var ne=!1;function J(le){ne||(ne=!0,g.reject(R,le))}function G(le){ne||(ne=!0,g.resolve(R,le))}var K=q(function(){se(G,J)});K.status==="error"&&J(K.value)}function q(R,se){var ne={};try{ne.value=R(se),ne.status="success"}catch(J){ne.status="error",ne.value=J}return ne}(Ne.exports=_).prototype.finally=function(R){if(typeof R!="function")return this;var se=this.constructor;return this.then(function(ne){return se.resolve(R()).then(function(){return ne})},function(ne){return se.resolve(R()).then(function(){throw ne})})},_.prototype.catch=function(R){return this.then(null,R)},_.prototype.then=function(R,se){if(typeof R!="function"&&this.state===v||typeof se!="function"&&this.state===F)return this;var ne=new this.constructor(S);return this.state!==$?O(ne,this.state===v?R:se,this.outcome):this.queue.push(new M(ne,R,se)),ne},M.prototype.callFulfilled=function(R){g.resolve(this.promise,R)},M.prototype.otherCallFulfilled=function(R){O(this.promise,this.onFulfilled,R)},M.prototype.callRejected=function(R){g.reject(this.promise,R)},M.prototype.otherCallRejected=function(R){O(this.promise,this.onRejected,R)},g.resolve=function(R,se){var ne=q(T,se);if(ne.status==="error")return g.reject(R,ne.value);var J=ne.value;if(J)L(R,J);else{R.state=v,R.outcome=se;for(var G=-1,K=R.queue.length;++G<K;)R.queue[G].callFulfilled(se)}return R},g.reject=function(R,se){R.state=F,R.outcome=se;for(var ne=-1,J=R.queue.length;++ne<J;)R.queue[ne].callRejected(se);return R},_.resolve=function(R){return R instanceof this?R:g.resolve(new this(S),R)},_.reject=function(R){var se=new this(S);return g.reject(se,R)},_.all=function(R){var se=this;if(Object.prototype.toString.call(R)!=="[object Array]")return this.reject(new TypeError("must be an array"));var ne=R.length,J=!1;if(!ne)return this.resolve([]);for(var G=new Array(ne),K=0,le=-1,me=new this(S);++le<ne;)Oe(R[le],le);return me;function Oe(Ce,Ue){se.resolve(Ce).then(function(ee){G[Ue]=ee,++K!==ne||J||(J=!0,g.resolve(me,G))},function(ee){J||(J=!0,g.reject(me,ee))})}},_.race=function(R){var se=this;if(Object.prototype.toString.call(R)!=="[object Array]")return this.reject(new TypeError("must be an array"));var ne=R.length,J=!1;if(!ne)return this.resolve([]);for(var G=-1,K=new this(S);++G<ne;)le=R[G],se.resolve(le).then(function(me){J||(J=!0,g.resolve(K,me))},function(me){J||(J=!0,g.reject(K,me))});var le;return K}},{immediate:36}],38:[function(P,Ne,te){"use strict";var W={};(0,P("./lib/utils/common").assign)(W,P("./lib/deflate"),P("./lib/inflate"),P("./lib/zlib/constants")),Ne.exports=W},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(P,Ne,te){"use strict";var W=P("./zlib/deflate"),S=P("./utils/common"),g=P("./utils/strings"),F=P("./zlib/messages"),v=P("./zlib/zstream"),$=Object.prototype.toString,_=0,M=-1,O=0,T=8;function L(R){if(!(this instanceof L))return new L(R);this.options=S.assign({level:M,method:T,chunkSize:16384,windowBits:15,memLevel:8,strategy:O,to:""},R||{});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 v,this.strm.avail_out=0;var ne=W.deflateInit2(this.strm,se.level,se.method,se.windowBits,se.memLevel,se.strategy);if(ne!==_)throw new Error(F[ne]);if(se.header&&W.deflateSetHeader(this.strm,se.header),se.dictionary){var J;if(J=typeof se.dictionary=="string"?g.string2buf(se.dictionary):$.call(se.dictionary)==="[object ArrayBuffer]"?new Uint8Array(se.dictionary):se.dictionary,(ne=W.deflateSetDictionary(this.strm,J))!==_)throw new Error(F[ne]);this._dict_set=!0}}function q(R,se){var ne=new L(se);if(ne.push(R,!0),ne.err)throw ne.msg||F[ne.err];return ne.result}L.prototype.push=function(R,se){var ne,J,G=this.strm,K=this.options.chunkSize;if(this.ended)return!1;J=se===~~se?se:se===!0?4:0,typeof R=="string"?G.input=g.string2buf(R):$.call(R)==="[object ArrayBuffer]"?G.input=new Uint8Array(R):G.input=R,G.next_in=0,G.avail_in=G.input.length;do{if(G.avail_out===0&&(G.output=new S.Buf8(K),G.next_out=0,G.avail_out=K),(ne=W.deflate(G,J))!==1&&ne!==_)return this.onEnd(ne),!(this.ended=!0);G.avail_out!==0&&(G.avail_in!==0||J!==4&&J!==2)||(this.options.to==="string"?this.onData(g.buf2binstring(S.shrinkBuf(G.output,G.next_out))):this.onData(S.shrinkBuf(G.output,G.next_out)))}while((0<G.avail_in||G.avail_out===0)&&ne!==1);return J===4?(ne=W.deflateEnd(this.strm),this.onEnd(ne),this.ended=!0,ne===_):J!==2||(this.onEnd(_),!(G.avail_out=0))},L.prototype.onData=function(R){this.chunks.push(R)},L.prototype.onEnd=function(R){R===_&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=S.flattenChunks(this.chunks)),this.chunks=[],this.err=R,this.msg=this.strm.msg},te.Deflate=L,te.deflate=q,te.deflateRaw=function(R,se){return(se=se||{}).raw=!0,q(R,se)},te.gzip=function(R,se){return(se=se||{}).gzip=!0,q(R,se)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(P,Ne,te){"use strict";var W=P("./zlib/inflate"),S=P("./utils/common"),g=P("./utils/strings"),F=P("./zlib/constants"),v=P("./zlib/messages"),$=P("./zlib/zstream"),_=P("./zlib/gzheader"),M=Object.prototype.toString;function O(L){if(!(this instanceof O))return new O(L);this.options=S.assign({chunkSize:16384,windowBits:0,to:""},L||{});var q=this.options;q.raw&&0<=q.windowBits&&q.windowBits<16&&(q.windowBits=-q.windowBits,q.windowBits===0&&(q.windowBits=-15)),!(0<=q.windowBits&&q.windowBits<16)||L&&L.windowBits||(q.windowBits+=32),15<q.windowBits&&q.windowBits<48&&!(15&q.windowBits)&&(q.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $,this.strm.avail_out=0;var R=W.inflateInit2(this.strm,q.windowBits);if(R!==F.Z_OK)throw new Error(v[R]);this.header=new _,W.inflateGetHeader(this.strm,this.header)}function T(L,q){var R=new O(q);if(R.push(L,!0),R.err)throw R.msg||v[R.err];return R.result}O.prototype.push=function(L,q){var R,se,ne,J,G,K,le=this.strm,me=this.options.chunkSize,Oe=this.options.dictionary,Ce=!1;if(this.ended)return!1;se=q===~~q?q:q===!0?F.Z_FINISH:F.Z_NO_FLUSH,typeof L=="string"?le.input=g.binstring2buf(L):M.call(L)==="[object ArrayBuffer]"?le.input=new Uint8Array(L):le.input=L,le.next_in=0,le.avail_in=le.input.length;do{if(le.avail_out===0&&(le.output=new S.Buf8(me),le.next_out=0,le.avail_out=me),(R=W.inflate(le,F.Z_NO_FLUSH))===F.Z_NEED_DICT&&Oe&&(K=typeof Oe=="string"?g.string2buf(Oe):M.call(Oe)==="[object ArrayBuffer]"?new Uint8Array(Oe):Oe,R=W.inflateSetDictionary(this.strm,K)),R===F.Z_BUF_ERROR&&Ce===!0&&(R=F.Z_OK,Ce=!1),R!==F.Z_STREAM_END&&R!==F.Z_OK)return this.onEnd(R),!(this.ended=!0);le.next_out&&(le.avail_out!==0&&R!==F.Z_STREAM_END&&(le.avail_in!==0||se!==F.Z_FINISH&&se!==F.Z_SYNC_FLUSH)||(this.options.to==="string"?(ne=g.utf8border(le.output,le.next_out),J=le.next_out-ne,G=g.buf2string(le.output,ne),le.next_out=J,le.avail_out=me-J,J&&S.arraySet(le.output,le.output,ne,J,0),this.onData(G)):this.onData(S.shrinkBuf(le.output,le.next_out)))),le.avail_in===0&&le.avail_out===0&&(Ce=!0)}while((0<le.avail_in||le.avail_out===0)&&R!==F.Z_STREAM_END);return R===F.Z_STREAM_END&&(se=F.Z_FINISH),se===F.Z_FINISH?(R=W.inflateEnd(this.strm),this.onEnd(R),this.ended=!0,R===F.Z_OK):se!==F.Z_SYNC_FLUSH||(this.onEnd(F.Z_OK),!(le.avail_out=0))},O.prototype.onData=function(L){this.chunks.push(L)},O.prototype.onEnd=function(L){L===F.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=S.flattenChunks(this.chunks)),this.chunks=[],this.err=L,this.msg=this.strm.msg},te.Inflate=O,te.inflate=T,te.inflateRaw=function(L,q){return(q=q||{}).raw=!0,T(L,q)},te.ungzip=T},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(P,Ne,te){"use strict";var W=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";te.assign=function(F){for(var v=Array.prototype.slice.call(arguments,1);v.length;){var $=v.shift();if($){if(typeof $!="object")throw new TypeError($+"must be non-object");for(var _ in $)$.hasOwnProperty(_)&&(F[_]=$[_])}}return F},te.shrinkBuf=function(F,v){return F.length===v?F:F.subarray?F.subarray(0,v):(F.length=v,F)};var S={arraySet:function(F,v,$,_,M){if(v.subarray&&F.subarray)F.set(v.subarray($,$+_),M);else for(var O=0;O<_;O++)F[M+O]=v[$+O]},flattenChunks:function(F){var v,$,_,M,O,T;for(v=_=0,$=F.length;v<$;v++)_+=F[v].length;for(T=new Uint8Array(_),v=M=0,$=F.length;v<$;v++)O=F[v],T.set(O,M),M+=O.length;return T}},g={arraySet:function(F,v,$,_,M){for(var O=0;O<_;O++)F[M+O]=v[$+O]},flattenChunks:function(F){return[].concat.apply([],F)}};te.setTyped=function(F){F?(te.Buf8=Uint8Array,te.Buf16=Uint16Array,te.Buf32=Int32Array,te.assign(te,S)):(te.Buf8=Array,te.Buf16=Array,te.Buf32=Array,te.assign(te,g))},te.setTyped(W)},{}],42:[function(P,Ne,te){"use strict";var W=P("./common"),S=!0,g=!0;try{String.fromCharCode.apply(null,[0])}catch(_){S=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(_){g=!1}for(var F=new W.Buf8(256),v=0;v<256;v++)F[v]=252<=v?6:248<=v?5:240<=v?4:224<=v?3:192<=v?2:1;function $(_,M){if(M<65537&&(_.subarray&&g||!_.subarray&&S))return String.fromCharCode.apply(null,W.shrinkBuf(_,M));for(var O="",T=0;T<M;T++)O+=String.fromCharCode(_[T]);return O}F[254]=F[254]=1,te.string2buf=function(_){var M,O,T,L,q,R=_.length,se=0;for(L=0;L<R;L++)(64512&(O=_.charCodeAt(L)))==55296&&L+1<R&&(64512&(T=_.charCodeAt(L+1)))==56320&&(O=65536+(O-55296<<10)+(T-56320),L++),se+=O<128?1:O<2048?2:O<65536?3:4;for(M=new W.Buf8(se),L=q=0;q<se;L++)(64512&(O=_.charCodeAt(L)))==55296&&L+1<R&&(64512&(T=_.charCodeAt(L+1)))==56320&&(O=65536+(O-55296<<10)+(T-56320),L++),O<128?M[q++]=O:(O<2048?M[q++]=192|O>>>6:(O<65536?M[q++]=224|O>>>12:(M[q++]=240|O>>>18,M[q++]=128|O>>>12&63),M[q++]=128|O>>>6&63),M[q++]=128|63&O);return M},te.buf2binstring=function(_){return $(_,_.length)},te.binstring2buf=function(_){for(var M=new W.Buf8(_.length),O=0,T=M.length;O<T;O++)M[O]=_.charCodeAt(O);return M},te.buf2string=function(_,M){var O,T,L,q,R=M||_.length,se=new Array(2*R);for(O=T=0;O<R;)if((L=_[O++])<128)se[T++]=L;else if(4<(q=F[L]))se[T++]=65533,O+=q-1;else{for(L&=q===2?31:q===3?15:7;1<q&&O<R;)L=L<<6|63&_[O++],q--;1<q?se[T++]=65533:L<65536?se[T++]=L:(L-=65536,se[T++]=55296|L>>10&1023,se[T++]=56320|1023&L)}return $(se,T)},te.utf8border=function(_,M){var O;for((M=M||_.length)>_.length&&(M=_.length),O=M-1;0<=O&&(192&_[O])==128;)O--;return O<0||O===0?M:O+F[_[O]]>M?O:M}},{"./common":41}],43:[function(P,Ne,te){"use strict";Ne.exports=function(W,S,g,F){for(var v=65535&W|0,$=W>>>16&65535|0,_=0;g!==0;){for(g-=_=2e3<g?2e3:g;$=$+(v=v+S[F++]|0)|0,--_;);v%=65521,$%=65521}return v|$<<16|0}},{}],44:[function(P,Ne,te){"use strict";Ne.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(P,Ne,te){"use strict";var W=function(){for(var S,g=[],F=0;F<256;F++){S=F;for(var v=0;v<8;v++)S=1&S?3988292384^S>>>1:S>>>1;g[F]=S}return g}();Ne.exports=function(S,g,F,v){var $=W,_=v+F;S^=-1;for(var M=v;M<_;M++)S=S>>>8^$[255&(S^g[M])];return-1^S}},{}],46:[function(P,Ne,te){"use strict";var W,S=P("../utils/common"),g=P("./trees"),F=P("./adler32"),v=P("./crc32"),$=P("./messages"),_=0,M=4,O=0,T=-2,L=-1,q=4,R=2,se=8,ne=9,J=286,G=30,K=19,le=2*J+1,me=15,Oe=3,Ce=258,Ue=Ce+Oe+1,ee=42,de=113,D=1,Ye=2,ke=3,xe=4;function Te(V,dt){return V.msg=$[dt],dt}function ve(V){return(V<<1)-(4<V?9:0)}function De(V){for(var dt=V.length;0<=--dt;)V[dt]=0}function he(V){var dt=V.state,I=dt.pending;I>V.avail_out&&(I=V.avail_out),I!==0&&(S.arraySet(V.output,dt.pending_buf,dt.pending_out,I,V.next_out),V.next_out+=I,dt.pending_out+=I,V.total_out+=I,V.avail_out-=I,dt.pending-=I,dt.pending===0&&(dt.pending_out=0))}function Se(V,dt){g._tr_flush_block(V,0<=V.block_start?V.block_start:-1,V.strstart-V.block_start,dt),V.block_start=V.strstart,he(V.strm)}function Xe(V,dt){V.pending_buf[V.pending++]=dt}function et(V,dt){V.pending_buf[V.pending++]=dt>>>8&255,V.pending_buf[V.pending++]=255&dt}function je(V,dt){var I,p,f=V.max_chain_length,x=V.strstart,Y=V.prev_length,Be=V.nice_match,H=V.strstart>V.w_size-Ue?V.strstart-(V.w_size-Ue):0,ie=V.window,Qe=V.w_mask,ye=V.prev,be=V.strstart+Ce,ze=ie[x+Y-1],gt=ie[x+Y];V.prev_length>=V.good_match&&(f>>=2),Be>V.lookahead&&(Be=V.lookahead);do if(ie[(I=dt)+Y]===gt&&ie[I+Y-1]===ze&&ie[I]===ie[x]&&ie[++I]===ie[x+1]){x+=2,I++;do;while(ie[++x]===ie[++I]&&ie[++x]===ie[++I]&&ie[++x]===ie[++I]&&ie[++x]===ie[++I]&&ie[++x]===ie[++I]&&ie[++x]===ie[++I]&&ie[++x]===ie[++I]&&ie[++x]===ie[++I]&&x<be);if(p=Ce-(be-x),x=be-Ce,Y<p){if(V.match_start=dt,Be<=(Y=p))break;ze=ie[x+Y-1],gt=ie[x+Y]}}while((dt=ye[dt&Qe])>H&&--f!=0);return Y<=V.lookahead?Y:V.lookahead}function qe(V){var dt,I,p,f,x,Y,Be,H,ie,Qe,ye=V.w_size;do{if(f=V.window_size-V.lookahead-V.strstart,V.strstart>=ye+(ye-Ue)){for(S.arraySet(V.window,V.window,ye,ye,0),V.match_start-=ye,V.strstart-=ye,V.block_start-=ye,dt=I=V.hash_size;p=V.head[--dt],V.head[dt]=ye<=p?p-ye:0,--I;);for(dt=I=ye;p=V.prev[--dt],V.prev[dt]=ye<=p?p-ye:0,--I;);f+=ye}if(V.strm.avail_in===0)break;if(Y=V.strm,Be=V.window,H=V.strstart+V.lookahead,ie=f,Qe=void 0,Qe=Y.avail_in,ie<Qe&&(Qe=ie),I=Qe===0?0:(Y.avail_in-=Qe,S.arraySet(Be,Y.input,Y.next_in,Qe,H),Y.state.wrap===1?Y.adler=F(Y.adler,Be,Qe,H):Y.state.wrap===2&&(Y.adler=v(Y.adler,Be,Qe,H)),Y.next_in+=Qe,Y.total_in+=Qe,Qe),V.lookahead+=I,V.lookahead+V.insert>=Oe)for(x=V.strstart-V.insert,V.ins_h=V.window[x],V.ins_h=(V.ins_h<<V.hash_shift^V.window[x+1])&V.hash_mask;V.insert&&(V.ins_h=(V.ins_h<<V.hash_shift^V.window[x+Oe-1])&V.hash_mask,V.prev[x&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=x,x++,V.insert--,!(V.lookahead+V.insert<Oe)););}while(V.lookahead<Ue&&V.strm.avail_in!==0)}function Et(V,dt){for(var I,p;;){if(V.lookahead<Ue){if(qe(V),V.lookahead<Ue&&dt===_)return D;if(V.lookahead===0)break}if(I=0,V.lookahead>=Oe&&(V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+Oe-1])&V.hash_mask,I=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart),I!==0&&V.strstart-I<=V.w_size-Ue&&(V.match_length=je(V,I)),V.match_length>=Oe)if(p=g._tr_tally(V,V.strstart-V.match_start,V.match_length-Oe),V.lookahead-=V.match_length,V.match_length<=V.max_lazy_match&&V.lookahead>=Oe){for(V.match_length--;V.strstart++,V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+Oe-1])&V.hash_mask,I=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart,--V.match_length!=0;);V.strstart++}else V.strstart+=V.match_length,V.match_length=0,V.ins_h=V.window[V.strstart],V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+1])&V.hash_mask;else p=g._tr_tally(V,0,V.window[V.strstart]),V.lookahead--,V.strstart++;if(p&&(Se(V,!1),V.strm.avail_out===0))return D}return V.insert=V.strstart<Oe-1?V.strstart:Oe-1,dt===M?(Se(V,!0),V.strm.avail_out===0?ke:xe):V.last_lit&&(Se(V,!1),V.strm.avail_out===0)?D:Ye}function kt(V,dt){for(var I,p,f;;){if(V.lookahead<Ue){if(qe(V),V.lookahead<Ue&&dt===_)return D;if(V.lookahead===0)break}if(I=0,V.lookahead>=Oe&&(V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+Oe-1])&V.hash_mask,I=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart),V.prev_length=V.match_length,V.prev_match=V.match_start,V.match_length=Oe-1,I!==0&&V.prev_length<V.max_lazy_match&&V.strstart-I<=V.w_size-Ue&&(V.match_length=je(V,I),V.match_length<=5&&(V.strategy===1||V.match_length===Oe&&4096<V.strstart-V.match_start)&&(V.match_length=Oe-1)),V.prev_length>=Oe&&V.match_length<=V.prev_length){for(f=V.strstart+V.lookahead-Oe,p=g._tr_tally(V,V.strstart-1-V.prev_match,V.prev_length-Oe),V.lookahead-=V.prev_length-1,V.prev_length-=2;++V.strstart<=f&&(V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+Oe-1])&V.hash_mask,I=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart),--V.prev_length!=0;);if(V.match_available=0,V.match_length=Oe-1,V.strstart++,p&&(Se(V,!1),V.strm.avail_out===0))return D}else if(V.match_available){if((p=g._tr_tally(V,0,V.window[V.strstart-1]))&&Se(V,!1),V.strstart++,V.lookahead--,V.strm.avail_out===0)return D}else V.match_available=1,V.strstart++,V.lookahead--}return V.match_available&&(p=g._tr_tally(V,0,V.window[V.strstart-1]),V.match_available=0),V.insert=V.strstart<Oe-1?V.strstart:Oe-1,dt===M?(Se(V,!0),V.strm.avail_out===0?ke:xe):V.last_lit&&(Se(V,!1),V.strm.avail_out===0)?D:Ye}function Ot(V,dt,I,p,f){this.good_length=V,this.max_lazy=dt,this.nice_length=I,this.max_chain=p,this.func=f}function sr(){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 S.Buf16(2*le),this.dyn_dtree=new S.Buf16(2*(2*G+1)),this.bl_tree=new S.Buf16(2*(2*K+1)),De(this.dyn_ltree),De(this.dyn_dtree),De(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new S.Buf16(me+1),this.heap=new S.Buf16(2*J+1),De(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new S.Buf16(2*J+1),De(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 rr(V){var dt;return V&&V.state?(V.total_in=V.total_out=0,V.data_type=R,(dt=V.state).pending=0,dt.pending_out=0,dt.wrap<0&&(dt.wrap=-dt.wrap),dt.status=dt.wrap?ee:de,V.adler=dt.wrap===2?0:1,dt.last_flush=_,g._tr_init(dt),O):Te(V,T)}function br(V){var dt=rr(V);return dt===O&&function(I){I.window_size=2*I.w_size,De(I.head),I.max_lazy_match=W[I.level].max_lazy,I.good_match=W[I.level].good_length,I.nice_match=W[I.level].nice_length,I.max_chain_length=W[I.level].max_chain,I.strstart=0,I.block_start=0,I.lookahead=0,I.insert=0,I.match_length=I.prev_length=Oe-1,I.match_available=0,I.ins_h=0}(V.state),dt}function lr(V,dt,I,p,f,x){if(!V)return T;var Y=1;if(dt===L&&(dt=6),p<0?(Y=0,p=-p):15<p&&(Y=2,p-=16),f<1||ne<f||I!==se||p<8||15<p||dt<0||9<dt||x<0||q<x)return Te(V,T);p===8&&(p=9);var Be=new sr;return(V.state=Be).strm=V,Be.wrap=Y,Be.gzhead=null,Be.w_bits=p,Be.w_size=1<<Be.w_bits,Be.w_mask=Be.w_size-1,Be.hash_bits=f+7,Be.hash_size=1<<Be.hash_bits,Be.hash_mask=Be.hash_size-1,Be.hash_shift=~~((Be.hash_bits+Oe-1)/Oe),Be.window=new S.Buf8(2*Be.w_size),Be.head=new S.Buf16(Be.hash_size),Be.prev=new S.Buf16(Be.w_size),Be.lit_bufsize=1<<f+6,Be.pending_buf_size=4*Be.lit_bufsize,Be.pending_buf=new S.Buf8(Be.pending_buf_size),Be.d_buf=1*Be.lit_bufsize,Be.l_buf=3*Be.lit_bufsize,Be.level=dt,Be.strategy=x,Be.method=I,br(V)}W=[new Ot(0,0,0,0,function(V,dt){var I=65535;for(I>V.pending_buf_size-5&&(I=V.pending_buf_size-5);;){if(V.lookahead<=1){if(qe(V),V.lookahead===0&&dt===_)return D;if(V.lookahead===0)break}V.strstart+=V.lookahead,V.lookahead=0;var p=V.block_start+I;if((V.strstart===0||V.strstart>=p)&&(V.lookahead=V.strstart-p,V.strstart=p,Se(V,!1),V.strm.avail_out===0)||V.strstart-V.block_start>=V.w_size-Ue&&(Se(V,!1),V.strm.avail_out===0))return D}return V.insert=0,dt===M?(Se(V,!0),V.strm.avail_out===0?ke:xe):(V.strstart>V.block_start&&(Se(V,!1),V.strm.avail_out),D)}),new Ot(4,4,8,4,Et),new Ot(4,5,16,8,Et),new Ot(4,6,32,32,Et),new Ot(4,4,16,16,kt),new Ot(8,16,32,32,kt),new Ot(8,16,128,128,kt),new Ot(8,32,128,256,kt),new Ot(32,128,258,1024,kt),new Ot(32,258,258,4096,kt)],te.deflateInit=function(V,dt){return lr(V,dt,se,15,8,0)},te.deflateInit2=lr,te.deflateReset=br,te.deflateResetKeep=rr,te.deflateSetHeader=function(V,dt){return V&&V.state?V.state.wrap!==2?T:(V.state.gzhead=dt,O):T},te.deflate=function(V,dt){var I,p,f,x;if(!V||!V.state||5<dt||dt<0)return V?Te(V,T):T;if(p=V.state,!V.output||!V.input&&V.avail_in!==0||p.status===666&&dt!==M)return Te(V,V.avail_out===0?-5:T);if(p.strm=V,I=p.last_flush,p.last_flush=dt,p.status===ee)if(p.wrap===2)V.adler=0,Xe(p,31),Xe(p,139),Xe(p,8),p.gzhead?(Xe(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)),Xe(p,255&p.gzhead.time),Xe(p,p.gzhead.time>>8&255),Xe(p,p.gzhead.time>>16&255),Xe(p,p.gzhead.time>>24&255),Xe(p,p.level===9?2:2<=p.strategy||p.level<2?4:0),Xe(p,255&p.gzhead.os),p.gzhead.extra&&p.gzhead.extra.length&&(Xe(p,255&p.gzhead.extra.length),Xe(p,p.gzhead.extra.length>>8&255)),p.gzhead.hcrc&&(V.adler=v(V.adler,p.pending_buf,p.pending,0)),p.gzindex=0,p.status=69):(Xe(p,0),Xe(p,0),Xe(p,0),Xe(p,0),Xe(p,0),Xe(p,p.level===9?2:2<=p.strategy||p.level<2?4:0),Xe(p,3),p.status=de);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=de,et(p,Y),p.strstart!==0&&(et(p,V.adler>>>16),et(p,65535&V.adler)),V.adler=1}if(p.status===69)if(p.gzhead.extra){for(f=p.pending;p.gzindex<(65535&p.gzhead.extra.length)&&(p.pending!==p.pending_buf_size||(p.gzhead.hcrc&&p.pending>f&&(V.adler=v(V.adler,p.pending_buf,p.pending-f,f)),he(V),f=p.pending,p.pending!==p.pending_buf_size));)Xe(p,255&p.gzhead.extra[p.gzindex]),p.gzindex++;p.gzhead.hcrc&&p.pending>f&&(V.adler=v(V.adler,p.pending_buf,p.pending-f,f)),p.gzindex===p.gzhead.extra.length&&(p.gzindex=0,p.status=73)}else p.status=73;if(p.status===73)if(p.gzhead.name){f=p.pending;do{if(p.pending===p.pending_buf_size&&(p.gzhead.hcrc&&p.pending>f&&(V.adler=v(V.adler,p.pending_buf,p.pending-f,f)),he(V),f=p.pending,p.pending===p.pending_buf_size)){x=1;break}x=p.gzindex<p.gzhead.name.length?255&p.gzhead.name.charCodeAt(p.gzindex++):0,Xe(p,x)}while(x!==0);p.gzhead.hcrc&&p.pending>f&&(V.adler=v(V.adler,p.pending_buf,p.pending-f,f)),x===0&&(p.gzindex=0,p.status=91)}else p.status=91;if(p.status===91)if(p.gzhead.comment){f=p.pending;do{if(p.pending===p.pending_buf_size&&(p.gzhead.hcrc&&p.pending>f&&(V.adler=v(V.adler,p.pending_buf,p.pending-f,f)),he(V),f=p.pending,p.pending===p.pending_buf_size)){x=1;break}x=p.gzindex<p.gzhead.comment.length?255&p.gzhead.comment.charCodeAt(p.gzindex++):0,Xe(p,x)}while(x!==0);p.gzhead.hcrc&&p.pending>f&&(V.adler=v(V.adler,p.pending_buf,p.pending-f,f)),x===0&&(p.status=103)}else p.status=103;if(p.status===103&&(p.gzhead.hcrc?(p.pending+2>p.pending_buf_size&&he(V),p.pending+2<=p.pending_buf_size&&(Xe(p,255&V.adler),Xe(p,V.adler>>8&255),V.adler=0,p.status=de)):p.status=de),p.pending!==0){if(he(V),V.avail_out===0)return p.last_flush=-1,O}else if(V.avail_in===0&&ve(dt)<=ve(I)&&dt!==M)return Te(V,-5);if(p.status===666&&V.avail_in!==0)return Te(V,-5);if(V.avail_in!==0||p.lookahead!==0||dt!==_&&p.status!==666){var Be=p.strategy===2?function(H,ie){for(var Qe;;){if(H.lookahead===0&&(qe(H),H.lookahead===0)){if(ie===_)return D;break}if(H.match_length=0,Qe=g._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++,Qe&&(Se(H,!1),H.strm.avail_out===0))return D}return H.insert=0,ie===M?(Se(H,!0),H.strm.avail_out===0?ke:xe):H.last_lit&&(Se(H,!1),H.strm.avail_out===0)?D:Ye}(p,dt):p.strategy===3?function(H,ie){for(var Qe,ye,be,ze,gt=H.window;;){if(H.lookahead<=Ce){if(qe(H),H.lookahead<=Ce&&ie===_)return D;if(H.lookahead===0)break}if(H.match_length=0,H.lookahead>=Oe&&0<H.strstart&&(ye=gt[be=H.strstart-1])===gt[++be]&&ye===gt[++be]&&ye===gt[++be]){ze=H.strstart+Ce;do;while(ye===gt[++be]&&ye===gt[++be]&&ye===gt[++be]&&ye===gt[++be]&&ye===gt[++be]&&ye===gt[++be]&&ye===gt[++be]&&ye===gt[++be]&&be<ze);H.match_length=Ce-(ze-be),H.match_length>H.lookahead&&(H.match_length=H.lookahead)}if(H.match_length>=Oe?(Qe=g._tr_tally(H,1,H.match_length-Oe),H.lookahead-=H.match_length,H.strstart+=H.match_length,H.match_length=0):(Qe=g._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++),Qe&&(Se(H,!1),H.strm.avail_out===0))return D}return H.insert=0,ie===M?(Se(H,!0),H.strm.avail_out===0?ke:xe):H.last_lit&&(Se(H,!1),H.strm.avail_out===0)?D:Ye}(p,dt):W[p.level].func(p,dt);if(Be!==ke&&Be!==xe||(p.status=666),Be===D||Be===ke)return V.avail_out===0&&(p.last_flush=-1),O;if(Be===Ye&&(dt===1?g._tr_align(p):dt!==5&&(g._tr_stored_block(p,0,0,!1),dt===3&&(De(p.head),p.lookahead===0&&(p.strstart=0,p.block_start=0,p.insert=0))),he(V),V.avail_out===0))return p.last_flush=-1,O}return dt!==M?O:p.wrap<=0?1:(p.wrap===2?(Xe(p,255&V.adler),Xe(p,V.adler>>8&255),Xe(p,V.adler>>16&255),Xe(p,V.adler>>24&255),Xe(p,255&V.total_in),Xe(p,V.total_in>>8&255),Xe(p,V.total_in>>16&255),Xe(p,V.total_in>>24&255)):(et(p,V.adler>>>16),et(p,65535&V.adler)),he(V),0<p.wrap&&(p.wrap=-p.wrap),p.pending!==0?O:1)},te.deflateEnd=function(V){var dt;return V&&V.state?(dt=V.state.status)!==ee&&dt!==69&&dt!==73&&dt!==91&&dt!==103&&dt!==de&&dt!==666?Te(V,T):(V.state=null,dt===de?Te(V,-3):O):T},te.deflateSetDictionary=function(V,dt){var I,p,f,x,Y,Be,H,ie,Qe=dt.length;if(!V||!V.state||(x=(I=V.state).wrap)===2||x===1&&I.status!==ee||I.lookahead)return T;for(x===1&&(V.adler=F(V.adler,dt,Qe,0)),I.wrap=0,Qe>=I.w_size&&(x===0&&(De(I.head),I.strstart=0,I.block_start=0,I.insert=0),ie=new S.Buf8(I.w_size),S.arraySet(ie,dt,Qe-I.w_size,I.w_size,0),dt=ie,Qe=I.w_size),Y=V.avail_in,Be=V.next_in,H=V.input,V.avail_in=Qe,V.next_in=0,V.input=dt,qe(I);I.lookahead>=Oe;){for(p=I.strstart,f=I.lookahead-(Oe-1);I.ins_h=(I.ins_h<<I.hash_shift^I.window[p+Oe-1])&I.hash_mask,I.prev[p&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=p,p++,--f;);I.strstart=p,I.lookahead=Oe-1,qe(I)}return I.strstart+=I.lookahead,I.block_start=I.strstart,I.insert=I.lookahead,I.lookahead=0,I.match_length=I.prev_length=Oe-1,I.match_available=0,V.next_in=Be,V.input=H,V.avail_in=Y,I.wrap=x,O},te.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(P,Ne,te){"use strict";Ne.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(P,Ne,te){"use strict";Ne.exports=function(W,S){var g,F,v,$,_,M,O,T,L,q,R,se,ne,J,G,K,le,me,Oe,Ce,Ue,ee,de,D,Ye;g=W.state,F=W.next_in,D=W.input,v=F+(W.avail_in-5),$=W.next_out,Ye=W.output,_=$-(S-W.avail_out),M=$+(W.avail_out-257),O=g.dmax,T=g.wsize,L=g.whave,q=g.wnext,R=g.window,se=g.hold,ne=g.bits,J=g.lencode,G=g.distcode,K=(1<<g.lenbits)-1,le=(1<<g.distbits)-1;e:do{ne<15&&(se+=D[F++]<<ne,ne+=8,se+=D[F++]<<ne,ne+=8),me=J[se&K];t:for(;;){if(se>>>=Oe=me>>>24,ne-=Oe,(Oe=me>>>16&255)===0)Ye[$++]=65535&me;else{if(!(16&Oe)){if(!(64&Oe)){me=J[(65535&me)+(se&(1<<Oe)-1)];continue t}if(32&Oe){g.mode=12;break e}W.msg="invalid literal/length code",g.mode=30;break e}Ce=65535&me,(Oe&=15)&&(ne<Oe&&(se+=D[F++]<<ne,ne+=8),Ce+=se&(1<<Oe)-1,se>>>=Oe,ne-=Oe),ne<15&&(se+=D[F++]<<ne,ne+=8,se+=D[F++]<<ne,ne+=8),me=G[se&le];r:for(;;){if(se>>>=Oe=me>>>24,ne-=Oe,!(16&(Oe=me>>>16&255))){if(!(64&Oe)){me=G[(65535&me)+(se&(1<<Oe)-1)];continue r}W.msg="invalid distance code",g.mode=30;break e}if(Ue=65535&me,ne<(Oe&=15)&&(se+=D[F++]<<ne,(ne+=8)<Oe&&(se+=D[F++]<<ne,ne+=8)),O<(Ue+=se&(1<<Oe)-1)){W.msg="invalid distance too far back",g.mode=30;break e}if(se>>>=Oe,ne-=Oe,(Oe=$-_)<Ue){if(L<(Oe=Ue-Oe)&&g.sane){W.msg="invalid distance too far back",g.mode=30;break e}if(de=R,(ee=0)===q){if(ee+=T-Oe,Oe<Ce){for(Ce-=Oe;Ye[$++]=R[ee++],--Oe;);ee=$-Ue,de=Ye}}else if(q<Oe){if(ee+=T+q-Oe,(Oe-=q)<Ce){for(Ce-=Oe;Ye[$++]=R[ee++],--Oe;);if(ee=0,q<Ce){for(Ce-=Oe=q;Ye[$++]=R[ee++],--Oe;);ee=$-Ue,de=Ye}}}else if(ee+=q-Oe,Oe<Ce){for(Ce-=Oe;Ye[$++]=R[ee++],--Oe;);ee=$-Ue,de=Ye}for(;2<Ce;)Ye[$++]=de[ee++],Ye[$++]=de[ee++],Ye[$++]=de[ee++],Ce-=3;Ce&&(Ye[$++]=de[ee++],1<Ce&&(Ye[$++]=de[ee++]))}else{for(ee=$-Ue;Ye[$++]=Ye[ee++],Ye[$++]=Ye[ee++],Ye[$++]=Ye[ee++],2<(Ce-=3););Ce&&(Ye[$++]=Ye[ee++],1<Ce&&(Ye[$++]=Ye[ee++]))}break}}break}}while(F<v&&$<M);F-=Ce=ne>>3,se&=(1<<(ne-=Ce<<3))-1,W.next_in=F,W.next_out=$,W.avail_in=F<v?v-F+5:5-(F-v),W.avail_out=$<M?M-$+257:257-($-M),g.hold=se,g.bits=ne}},{}],49:[function(P,Ne,te){"use strict";var W=P("../utils/common"),S=P("./adler32"),g=P("./crc32"),F=P("./inffast"),v=P("./inftrees"),$=1,_=2,M=0,O=-2,T=1,L=852,q=592;function R(ee){return(ee>>>24&255)+(ee>>>8&65280)+((65280&ee)<<8)+((255&ee)<<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 ne(ee){var de;return ee&&ee.state?(de=ee.state,ee.total_in=ee.total_out=de.total=0,ee.msg="",de.wrap&&(ee.adler=1&de.wrap),de.mode=T,de.last=0,de.havedict=0,de.dmax=32768,de.head=null,de.hold=0,de.bits=0,de.lencode=de.lendyn=new W.Buf32(L),de.distcode=de.distdyn=new W.Buf32(q),de.sane=1,de.back=-1,M):O}function J(ee){var de;return ee&&ee.state?((de=ee.state).wsize=0,de.whave=0,de.wnext=0,ne(ee)):O}function G(ee,de){var D,Ye;return ee&&ee.state?(Ye=ee.state,de<0?(D=0,de=-de):(D=1+(de>>4),de<48&&(de&=15)),de&&(de<8||15<de)?O:(Ye.window!==null&&Ye.wbits!==de&&(Ye.window=null),Ye.wrap=D,Ye.wbits=de,J(ee))):O}function K(ee,de){var D,Ye;return ee?(Ye=new se,(ee.state=Ye).window=null,(D=G(ee,de))!==M&&(ee.state=null),D):O}var le,me,Oe=!0;function Ce(ee){if(Oe){var de;for(le=new W.Buf32(512),me=new W.Buf32(32),de=0;de<144;)ee.lens[de++]=8;for(;de<256;)ee.lens[de++]=9;for(;de<280;)ee.lens[de++]=7;for(;de<288;)ee.lens[de++]=8;for(v($,ee.lens,0,288,le,0,ee.work,{bits:9}),de=0;de<32;)ee.lens[de++]=5;v(_,ee.lens,0,32,me,0,ee.work,{bits:5}),Oe=!1}ee.lencode=le,ee.lenbits=9,ee.distcode=me,ee.distbits=5}function Ue(ee,de,D,Ye){var ke,xe=ee.state;return xe.window===null&&(xe.wsize=1<<xe.wbits,xe.wnext=0,xe.whave=0,xe.window=new W.Buf8(xe.wsize)),Ye>=xe.wsize?(W.arraySet(xe.window,de,D-xe.wsize,xe.wsize,0),xe.wnext=0,xe.whave=xe.wsize):(Ye<(ke=xe.wsize-xe.wnext)&&(ke=Ye),W.arraySet(xe.window,de,D-Ye,ke,xe.wnext),(Ye-=ke)?(W.arraySet(xe.window,de,D-Ye,Ye,0),xe.wnext=Ye,xe.whave=xe.wsize):(xe.wnext+=ke,xe.wnext===xe.wsize&&(xe.wnext=0),xe.whave<xe.wsize&&(xe.whave+=ke))),0}te.inflateReset=J,te.inflateReset2=G,te.inflateResetKeep=ne,te.inflateInit=function(ee){return K(ee,15)},te.inflateInit2=K,te.inflate=function(ee,de){var D,Ye,ke,xe,Te,ve,De,he,Se,Xe,et,je,qe,Et,kt,Ot,sr,rr,br,lr,V,dt,I,p,f=0,x=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(!ee||!ee.state||!ee.output||!ee.input&&ee.avail_in!==0)return O;(D=ee.state).mode===12&&(D.mode=13),Te=ee.next_out,ke=ee.output,De=ee.avail_out,xe=ee.next_in,Ye=ee.input,ve=ee.avail_in,he=D.hold,Se=D.bits,Xe=ve,et=De,dt=M;e:for(;;)switch(D.mode){case T:if(D.wrap===0){D.mode=13;break}for(;Se<16;){if(ve===0)break e;ve--,he+=Ye[xe++]<<Se,Se+=8}if(2&D.wrap&&he===35615){x[D.check=0]=255&he,x[1]=he>>>8&255,D.check=g(D.check,x,2,0),Se=he=0,D.mode=2;break}if(D.flags=0,D.head&&(D.head.done=!1),!(1&D.wrap)||(((255&he)<<8)+(he>>8))%31){ee.msg="incorrect header check",D.mode=30;break}if((15&he)!=8){ee.msg="unknown compression method",D.mode=30;break}if(Se-=4,V=8+(15&(he>>>=4)),D.wbits===0)D.wbits=V;else if(V>D.wbits){ee.msg="invalid window size",D.mode=30;break}D.dmax=1<<V,ee.adler=D.check=1,D.mode=512&he?10:12,Se=he=0;break;case 2:for(;Se<16;){if(ve===0)break e;ve--,he+=Ye[xe++]<<Se,Se+=8}if(D.flags=he,(255&D.flags)!=8){ee.msg="unknown compression method",D.mode=30;break}if(57344&D.flags){ee.msg="unknown header flags set",D.mode=30;break}D.head&&(D.head.text=he>>8&1),512&D.flags&&(x[0]=255&he,x[1]=he>>>8&255,D.check=g(D.check,x,2,0)),Se=he=0,D.mode=3;case 3:for(;Se<32;){if(ve===0)break e;ve--,he+=Ye[xe++]<<Se,Se+=8}D.head&&(D.head.time=he),512&D.flags&&(x[0]=255&he,x[1]=he>>>8&255,x[2]=he>>>16&255,x[3]=he>>>24&255,D.check=g(D.check,x,4,0)),Se=he=0,D.mode=4;case 4:for(;Se<16;){if(ve===0)break e;ve--,he+=Ye[xe++]<<Se,Se+=8}D.head&&(D.head.xflags=255&he,D.head.os=he>>8),512&D.flags&&(x[0]=255&he,x[1]=he>>>8&255,D.check=g(D.check,x,2,0)),Se=he=0,D.mode=5;case 5:if(1024&D.flags){for(;Se<16;){if(ve===0)break e;ve--,he+=Ye[xe++]<<Se,Se+=8}D.length=he,D.head&&(D.head.extra_len=he),512&D.flags&&(x[0]=255&he,x[1]=he>>>8&255,D.check=g(D.check,x,2,0)),Se=he=0}else D.head&&(D.head.extra=null);D.mode=6;case 6:if(1024&D.flags&&(ve<(je=D.length)&&(je=ve),je&&(D.head&&(V=D.head.extra_len-D.length,D.head.extra||(D.head.extra=new Array(D.head.extra_len)),W.arraySet(D.head.extra,Ye,xe,je,V)),512&D.flags&&(D.check=g(D.check,Ye,je,xe)),ve-=je,xe+=je,D.length-=je),D.length))break e;D.length=0,D.mode=7;case 7:if(2048&D.flags){if(ve===0)break e;for(je=0;V=Ye[xe+je++],D.head&&V&&D.length<65536&&(D.head.name+=String.fromCharCode(V)),V&&je<ve;);if(512&D.flags&&(D.check=g(D.check,Ye,je,xe)),ve-=je,xe+=je,V)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(je=0;V=Ye[xe+je++],D.head&&V&&D.length<65536&&(D.head.comment+=String.fromCharCode(V)),V&&je<ve;);if(512&D.flags&&(D.check=g(D.check,Ye,je,xe)),ve-=je,xe+=je,V)break e}else D.head&&(D.head.comment=null);D.mode=9;case 9:if(512&D.flags){for(;Se<16;){if(ve===0)break e;ve--,he+=Ye[xe++]<<Se,Se+=8}if(he!==(65535&D.check)){ee.msg="header crc mismatch",D.mode=30;break}Se=he=0}D.head&&(D.head.hcrc=D.flags>>9&1,D.head.done=!0),ee.adler=D.check=0,D.mode=12;break;case 10:for(;Se<32;){if(ve===0)break e;ve--,he+=Ye[xe++]<<Se,Se+=8}ee.adler=D.check=R(he),Se=he=0,D.mode=11;case 11:if(D.havedict===0)return ee.next_out=Te,ee.avail_out=De,ee.next_in=xe,ee.avail_in=ve,D.hold=he,D.bits=Se,2;ee.adler=D.check=1,D.mode=12;case 12:if(de===5||de===6)break e;case 13:if(D.last){he>>>=7&Se,Se-=7&Se,D.mode=27;break}for(;Se<3;){if(ve===0)break e;ve--,he+=Ye[xe++]<<Se,Se+=8}switch(D.last=1&he,Se-=1,3&(he>>>=1)){case 0:D.mode=14;break;case 1:if(Ce(D),D.mode=20,de!==6)break;he>>>=2,Se-=2;break e;case 2:D.mode=17;break;case 3:ee.msg="invalid block type",D.mode=30}he>>>=2,Se-=2;break;case 14:for(he>>>=7&Se,Se-=7&Se;Se<32;){if(ve===0)break e;ve--,he+=Ye[xe++]<<Se,Se+=8}if((65535&he)!=(he>>>16^65535)){ee.msg="invalid stored block lengths",D.mode=30;break}if(D.length=65535&he,Se=he=0,D.mode=15,de===6)break e;case 15:D.mode=16;case 16:if(je=D.length){if(ve<je&&(je=ve),De<je&&(je=De),je===0)break e;W.arraySet(ke,Ye,xe,je,Te),ve-=je,xe+=je,De-=je,Te+=je,D.length-=je;break}D.mode=12;break;case 17:for(;Se<14;){if(ve===0)break e;ve--,he+=Ye[xe++]<<Se,Se+=8}if(D.nlen=257+(31&he),he>>>=5,Se-=5,D.ndist=1+(31&he),he>>>=5,Se-=5,D.ncode=4+(15&he),he>>>=4,Se-=4,286<D.nlen||30<D.ndist){ee.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(;Se<3;){if(ve===0)break e;ve--,he+=Ye[xe++]<<Se,Se+=8}D.lens[Y[D.have++]]=7&he,he>>>=3,Se-=3}for(;D.have<19;)D.lens[Y[D.have++]]=0;if(D.lencode=D.lendyn,D.lenbits=7,I={bits:D.lenbits},dt=v(0,D.lens,0,19,D.lencode,0,D.work,I),D.lenbits=I.bits,dt){ee.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(;Ot=(f=D.lencode[he&(1<<D.lenbits)-1])>>>16&255,sr=65535&f,!((kt=f>>>24)<=Se);){if(ve===0)break e;ve--,he+=Ye[xe++]<<Se,Se+=8}if(sr<16)he>>>=kt,Se-=kt,D.lens[D.have++]=sr;else{if(sr===16){for(p=kt+2;Se<p;){if(ve===0)break e;ve--,he+=Ye[xe++]<<Se,Se+=8}if(he>>>=kt,Se-=kt,D.have===0){ee.msg="invalid bit length repeat",D.mode=30;break}V=D.lens[D.have-1],je=3+(3&he),he>>>=2,Se-=2}else if(sr===17){for(p=kt+3;Se<p;){if(ve===0)break e;ve--,he+=Ye[xe++]<<Se,Se+=8}Se-=kt,V=0,je=3+(7&(he>>>=kt)),he>>>=3,Se-=3}else{for(p=kt+7;Se<p;){if(ve===0)break e;ve--,he+=Ye[xe++]<<Se,Se+=8}Se-=kt,V=0,je=11+(127&(he>>>=kt)),he>>>=7,Se-=7}if(D.have+je>D.nlen+D.ndist){ee.msg="invalid bit length repeat",D.mode=30;break}for(;je--;)D.lens[D.have++]=V}}if(D.mode===30)break;if(D.lens[256]===0){ee.msg="invalid code -- missing end-of-block",D.mode=30;break}if(D.lenbits=9,I={bits:D.lenbits},dt=v($,D.lens,0,D.nlen,D.lencode,0,D.work,I),D.lenbits=I.bits,dt){ee.msg="invalid literal/lengths set",D.mode=30;break}if(D.distbits=6,D.distcode=D.distdyn,I={bits:D.distbits},dt=v(_,D.lens,D.nlen,D.ndist,D.distcode,0,D.work,I),D.distbits=I.bits,dt){ee.msg="invalid distances set",D.mode=30;break}if(D.mode=20,de===6)break e;case 20:D.mode=21;case 21:if(6<=ve&&258<=De){ee.next_out=Te,ee.avail_out=De,ee.next_in=xe,ee.avail_in=ve,D.hold=he,D.bits=Se,F(ee,et),Te=ee.next_out,ke=ee.output,De=ee.avail_out,xe=ee.next_in,Ye=ee.input,ve=ee.avail_in,he=D.hold,Se=D.bits,D.mode===12&&(D.back=-1);break}for(D.back=0;Ot=(f=D.lencode[he&(1<<D.lenbits)-1])>>>16&255,sr=65535&f,!((kt=f>>>24)<=Se);){if(ve===0)break e;ve--,he+=Ye[xe++]<<Se,Se+=8}if(Ot&&!(240&Ot)){for(rr=kt,br=Ot,lr=sr;Ot=(f=D.lencode[lr+((he&(1<<rr+br)-1)>>rr)])>>>16&255,sr=65535&f,!(rr+(kt=f>>>24)<=Se);){if(ve===0)break e;ve--,he+=Ye[xe++]<<Se,Se+=8}he>>>=rr,Se-=rr,D.back+=rr}if(he>>>=kt,Se-=kt,D.back+=kt,D.length=sr,Ot===0){D.mode=26;break}if(32&Ot){D.back=-1,D.mode=12;break}if(64&Ot){ee.msg="invalid literal/length code",D.mode=30;break}D.extra=15&Ot,D.mode=22;case 22:if(D.extra){for(p=D.extra;Se<p;){if(ve===0)break e;ve--,he+=Ye[xe++]<<Se,Se+=8}D.length+=he&(1<<D.extra)-1,he>>>=D.extra,Se-=D.extra,D.back+=D.extra}D.was=D.length,D.mode=23;case 23:for(;Ot=(f=D.distcode[he&(1<<D.distbits)-1])>>>16&255,sr=65535&f,!((kt=f>>>24)<=Se);){if(ve===0)break e;ve--,he+=Ye[xe++]<<Se,Se+=8}if(!(240&Ot)){for(rr=kt,br=Ot,lr=sr;Ot=(f=D.distcode[lr+((he&(1<<rr+br)-1)>>rr)])>>>16&255,sr=65535&f,!(rr+(kt=f>>>24)<=Se);){if(ve===0)break e;ve--,he+=Ye[xe++]<<Se,Se+=8}he>>>=rr,Se-=rr,D.back+=rr}if(he>>>=kt,Se-=kt,D.back+=kt,64&Ot){ee.msg="invalid distance code",D.mode=30;break}D.offset=sr,D.extra=15&Ot,D.mode=24;case 24:if(D.extra){for(p=D.extra;Se<p;){if(ve===0)break e;ve--,he+=Ye[xe++]<<Se,Se+=8}D.offset+=he&(1<<D.extra)-1,he>>>=D.extra,Se-=D.extra,D.back+=D.extra}if(D.offset>D.dmax){ee.msg="invalid distance too far back",D.mode=30;break}D.mode=25;case 25:if(De===0)break e;if(je=et-De,D.offset>je){if((je=D.offset-je)>D.whave&&D.sane){ee.msg="invalid distance too far back",D.mode=30;break}qe=je>D.wnext?(je-=D.wnext,D.wsize-je):D.wnext-je,je>D.length&&(je=D.length),Et=D.window}else Et=ke,qe=Te-D.offset,je=D.length;for(De<je&&(je=De),De-=je,D.length-=je;ke[Te++]=Et[qe++],--je;);D.length===0&&(D.mode=21);break;case 26:if(De===0)break e;ke[Te++]=D.length,De--,D.mode=21;break;case 27:if(D.wrap){for(;Se<32;){if(ve===0)break e;ve--,he|=Ye[xe++]<<Se,Se+=8}if(et-=De,ee.total_out+=et,D.total+=et,et&&(ee.adler=D.check=D.flags?g(D.check,ke,et,Te-et):S(D.check,ke,et,Te-et)),et=De,(D.flags?he:R(he))!==D.check){ee.msg="incorrect data check",D.mode=30;break}Se=he=0}D.mode=28;case 28:if(D.wrap&&D.flags){for(;Se<32;){if(ve===0)break e;ve--,he+=Ye[xe++]<<Se,Se+=8}if(he!==(4294967295&D.total)){ee.msg="incorrect length check",D.mode=30;break}Se=he=0}D.mode=29;case 29:dt=1;break e;case 30:dt=-3;break e;case 31:return-4;case 32:default:return O}return ee.next_out=Te,ee.avail_out=De,ee.next_in=xe,ee.avail_in=ve,D.hold=he,D.bits=Se,(D.wsize||et!==ee.avail_out&&D.mode<30&&(D.mode<27||de!==4))&&Ue(ee,ee.output,ee.next_out,et-ee.avail_out)?(D.mode=31,-4):(Xe-=ee.avail_in,et-=ee.avail_out,ee.total_in+=Xe,ee.total_out+=et,D.total+=et,D.wrap&&et&&(ee.adler=D.check=D.flags?g(D.check,ke,et,ee.next_out-et):S(D.check,ke,et,ee.next_out-et)),ee.data_type=D.bits+(D.last?64:0)+(D.mode===12?128:0)+(D.mode===20||D.mode===15?256:0),(Xe==0&&et===0||de===4)&&dt===M&&(dt=-5),dt)},te.inflateEnd=function(ee){if(!ee||!ee.state)return O;var de=ee.state;return de.window&&(de.window=null),ee.state=null,M},te.inflateGetHeader=function(ee,de){var D;return ee&&ee.state&&2&(D=ee.state).wrap?((D.head=de).done=!1,M):O},te.inflateSetDictionary=function(ee,de){var D,Ye=de.length;return ee&&ee.state?(D=ee.state).wrap!==0&&D.mode!==11?O:D.mode===11&&S(1,de,Ye,0)!==D.check?-3:Ue(ee,de,Ye,Ye)?(D.mode=31,-4):(D.havedict=1,M):O},te.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(P,Ne,te){"use strict";var W=P("../utils/common"),S=[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],g=[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],F=[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],v=[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];Ne.exports=function($,_,M,O,T,L,q,R){var se,ne,J,G,K,le,me,Oe,Ce,Ue=R.bits,ee=0,de=0,D=0,Ye=0,ke=0,xe=0,Te=0,ve=0,De=0,he=0,Se=null,Xe=0,et=new W.Buf16(16),je=new W.Buf16(16),qe=null,Et=0;for(ee=0;ee<=15;ee++)et[ee]=0;for(de=0;de<O;de++)et[_[M+de]]++;for(ke=Ue,Ye=15;1<=Ye&&et[Ye]===0;Ye--);if(Ye<ke&&(ke=Ye),Ye===0)return T[L++]=20971520,T[L++]=20971520,R.bits=1,0;for(D=1;D<Ye&&et[D]===0;D++);for(ke<D&&(ke=D),ee=ve=1;ee<=15;ee++)if(ve<<=1,(ve-=et[ee])<0)return-1;if(0<ve&&($===0||Ye!==1))return-1;for(je[1]=0,ee=1;ee<15;ee++)je[ee+1]=je[ee]+et[ee];for(de=0;de<O;de++)_[M+de]!==0&&(q[je[_[M+de]]++]=de);if(le=$===0?(Se=qe=q,19):$===1?(Se=S,Xe-=257,qe=g,Et-=257,256):(Se=F,qe=v,-1),ee=D,K=L,Te=de=he=0,J=-1,G=(De=1<<(xe=ke))-1,$===1&&852<De||$===2&&592<De)return 1;for(;;){for(me=ee-Te,Ce=q[de]<le?(Oe=0,q[de]):q[de]>le?(Oe=qe[Et+q[de]],Se[Xe+q[de]]):(Oe=96,0),se=1<<ee-Te,D=ne=1<<xe;T[K+(he>>Te)+(ne-=se)]=me<<24|Oe<<16|Ce|0,ne!==0;);for(se=1<<ee-1;he&se;)se>>=1;if(se!==0?(he&=se-1,he+=se):he=0,de++,--et[ee]==0){if(ee===Ye)break;ee=_[M+q[de]]}if(ke<ee&&(he&G)!==J){for(Te===0&&(Te=ke),K+=D,ve=1<<(xe=ee-Te);xe+Te<Ye&&!((ve-=et[xe+Te])<=0);)xe++,ve<<=1;if(De+=1<<xe,$===1&&852<De||$===2&&592<De)return 1;T[J=he&G]=ke<<24|xe<<16|K-L|0}}return he!==0&&(T[K+he]=ee-Te<<24|64<<16|0),R.bits=ke,0}},{"../utils/common":41}],51:[function(P,Ne,te){"use strict";Ne.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(P,Ne,te){"use strict";var W=P("../utils/common"),S=0,g=1;function F(f){for(var x=f.length;0<=--x;)f[x]=0}var v=0,$=29,_=256,M=_+1+$,O=30,T=19,L=2*M+1,q=15,R=16,se=7,ne=256,J=16,G=17,K=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],me=[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],Oe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ce=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ue=new Array(2*(M+2));F(Ue);var ee=new Array(2*O);F(ee);var de=new Array(512);F(de);var D=new Array(256);F(D);var Ye=new Array($);F(Ye);var ke,xe,Te,ve=new Array(O);function De(f,x,Y,Be,H){this.static_tree=f,this.extra_bits=x,this.extra_base=Y,this.elems=Be,this.max_length=H,this.has_stree=f&&f.length}function he(f,x){this.dyn_tree=f,this.max_code=0,this.stat_desc=x}function Se(f){return f<256?de[f]:de[256+(f>>>7)]}function Xe(f,x){f.pending_buf[f.pending++]=255&x,f.pending_buf[f.pending++]=x>>>8&255}function et(f,x,Y){f.bi_valid>R-Y?(f.bi_buf|=x<<f.bi_valid&65535,Xe(f,f.bi_buf),f.bi_buf=x>>R-f.bi_valid,f.bi_valid+=Y-R):(f.bi_buf|=x<<f.bi_valid&65535,f.bi_valid+=Y)}function je(f,x,Y){et(f,Y[2*x],Y[2*x+1])}function qe(f,x){for(var Y=0;Y|=1&f,f>>>=1,Y<<=1,0<--x;);return Y>>>1}function Et(f,x,Y){var Be,H,ie=new Array(q+1),Qe=0;for(Be=1;Be<=q;Be++)ie[Be]=Qe=Qe+Y[Be-1]<<1;for(H=0;H<=x;H++){var ye=f[2*H+1];ye!==0&&(f[2*H]=qe(ie[ye]++,ye))}}function kt(f){var x;for(x=0;x<M;x++)f.dyn_ltree[2*x]=0;for(x=0;x<O;x++)f.dyn_dtree[2*x]=0;for(x=0;x<T;x++)f.bl_tree[2*x]=0;f.dyn_ltree[2*ne]=1,f.opt_len=f.static_len=0,f.last_lit=f.matches=0}function Ot(f){8<f.bi_valid?Xe(f,f.bi_buf):0<f.bi_valid&&(f.pending_buf[f.pending++]=f.bi_buf),f.bi_buf=0,f.bi_valid=0}function sr(f,x,Y,Be){var H=2*x,ie=2*Y;return f[H]<f[ie]||f[H]===f[ie]&&Be[x]<=Be[Y]}function rr(f,x,Y){for(var Be=f.heap[Y],H=Y<<1;H<=f.heap_len&&(H<f.heap_len&&sr(x,f.heap[H+1],f.heap[H],f.depth)&&H++,!sr(x,Be,f.heap[H],f.depth));)f.heap[Y]=f.heap[H],Y=H,H<<=1;f.heap[Y]=Be}function br(f,x,Y){var Be,H,ie,Qe,ye=0;if(f.last_lit!==0)for(;Be=f.pending_buf[f.d_buf+2*ye]<<8|f.pending_buf[f.d_buf+2*ye+1],H=f.pending_buf[f.l_buf+ye],ye++,Be===0?je(f,H,x):(je(f,(ie=D[H])+_+1,x),(Qe=le[ie])!==0&&et(f,H-=Ye[ie],Qe),je(f,ie=Se(--Be),Y),(Qe=me[ie])!==0&&et(f,Be-=ve[ie],Qe)),ye<f.last_lit;);je(f,ne,x)}function lr(f,x){var Y,Be,H,ie=x.dyn_tree,Qe=x.stat_desc.static_tree,ye=x.stat_desc.has_stree,be=x.stat_desc.elems,ze=-1;for(f.heap_len=0,f.heap_max=L,Y=0;Y<be;Y++)ie[2*Y]!==0?(f.heap[++f.heap_len]=ze=Y,f.depth[Y]=0):ie[2*Y+1]=0;for(;f.heap_len<2;)ie[2*(H=f.heap[++f.heap_len]=ze<2?++ze:0)]=1,f.depth[H]=0,f.opt_len--,ye&&(f.static_len-=Qe[2*H+1]);for(x.max_code=ze,Y=f.heap_len>>1;1<=Y;Y--)rr(f,ie,Y);for(H=be;Y=f.heap[1],f.heap[1]=f.heap[f.heap_len--],rr(f,ie,1),Be=f.heap[1],f.heap[--f.heap_max]=Y,f.heap[--f.heap_max]=Be,ie[2*H]=ie[2*Y]+ie[2*Be],f.depth[H]=(f.depth[Y]>=f.depth[Be]?f.depth[Y]:f.depth[Be])+1,ie[2*Y+1]=ie[2*Be+1]=H,f.heap[1]=H++,rr(f,ie,1),2<=f.heap_len;);f.heap[--f.heap_max]=f.heap[1],function(gt,fe){var at,rt,Le,Fe,ct,Tt,Pt=fe.dyn_tree,Yt=fe.max_code,Fr=fe.stat_desc.static_tree,Lr=fe.stat_desc.has_stree,Or=fe.stat_desc.extra_bits,kr=fe.stat_desc.extra_base,yr=fe.stat_desc.max_length,ur=0;for(Fe=0;Fe<=q;Fe++)gt.bl_count[Fe]=0;for(Pt[2*gt.heap[gt.heap_max]+1]=0,at=gt.heap_max+1;at<L;at++)yr<(Fe=Pt[2*Pt[2*(rt=gt.heap[at])+1]+1]+1)&&(Fe=yr,ur++),Pt[2*rt+1]=Fe,Yt<rt||(gt.bl_count[Fe]++,ct=0,kr<=rt&&(ct=Or[rt-kr]),Tt=Pt[2*rt],gt.opt_len+=Tt*(Fe+ct),Lr&&(gt.static_len+=Tt*(Fr[2*rt+1]+ct)));if(ur!==0){do{for(Fe=yr-1;gt.bl_count[Fe]===0;)Fe--;gt.bl_count[Fe]--,gt.bl_count[Fe+1]+=2,gt.bl_count[yr]--,ur-=2}while(0<ur);for(Fe=yr;Fe!==0;Fe--)for(rt=gt.bl_count[Fe];rt!==0;)Yt<(Le=gt.heap[--at])||(Pt[2*Le+1]!==Fe&&(gt.opt_len+=(Fe-Pt[2*Le+1])*Pt[2*Le],Pt[2*Le+1]=Fe),rt--)}}(f,x),Et(ie,ze,f.bl_count)}function V(f,x,Y){var Be,H,ie=-1,Qe=x[1],ye=0,be=7,ze=4;for(Qe===0&&(be=138,ze=3),x[2*(Y+1)+1]=65535,Be=0;Be<=Y;Be++)H=Qe,Qe=x[2*(Be+1)+1],++ye<be&&H===Qe||(ye<ze?f.bl_tree[2*H]+=ye:H!==0?(H!==ie&&f.bl_tree[2*H]++,f.bl_tree[2*J]++):ye<=10?f.bl_tree[2*G]++:f.bl_tree[2*K]++,ie=H,ze=(ye=0)===Qe?(be=138,3):H===Qe?(be=6,3):(be=7,4))}function dt(f,x,Y){var Be,H,ie=-1,Qe=x[1],ye=0,be=7,ze=4;for(Qe===0&&(be=138,ze=3),Be=0;Be<=Y;Be++)if(H=Qe,Qe=x[2*(Be+1)+1],!(++ye<be&&H===Qe)){if(ye<ze)for(;je(f,H,f.bl_tree),--ye!=0;);else H!==0?(H!==ie&&(je(f,H,f.bl_tree),ye--),je(f,J,f.bl_tree),et(f,ye-3,2)):ye<=10?(je(f,G,f.bl_tree),et(f,ye-3,3)):(je(f,K,f.bl_tree),et(f,ye-11,7));ie=H,ze=(ye=0)===Qe?(be=138,3):H===Qe?(be=6,3):(be=7,4)}}F(ve);var I=!1;function p(f,x,Y,Be){et(f,(v<<1)+(Be?1:0),3),function(H,ie,Qe,ye){Ot(H),ye&&(Xe(H,Qe),Xe(H,~Qe)),W.arraySet(H.pending_buf,H.window,ie,Qe,H.pending),H.pending+=Qe}(f,x,Y,!0)}te._tr_init=function(f){I||(function(){var x,Y,Be,H,ie,Qe=new Array(q+1);for(H=Be=0;H<$-1;H++)for(Ye[H]=Be,x=0;x<1<<le[H];x++)D[Be++]=H;for(D[Be-1]=H,H=ie=0;H<16;H++)for(ve[H]=ie,x=0;x<1<<me[H];x++)de[ie++]=H;for(ie>>=7;H<O;H++)for(ve[H]=ie<<7,x=0;x<1<<me[H]-7;x++)de[256+ie++]=H;for(Y=0;Y<=q;Y++)Qe[Y]=0;for(x=0;x<=143;)Ue[2*x+1]=8,x++,Qe[8]++;for(;x<=255;)Ue[2*x+1]=9,x++,Qe[9]++;for(;x<=279;)Ue[2*x+1]=7,x++,Qe[7]++;for(;x<=287;)Ue[2*x+1]=8,x++,Qe[8]++;for(Et(Ue,M+1,Qe),x=0;x<O;x++)ee[2*x+1]=5,ee[2*x]=qe(x,5);ke=new De(Ue,le,_+1,M,q),xe=new De(ee,me,0,O,q),Te=new De(new Array(0),Oe,0,T,se)}(),I=!0),f.l_desc=new he(f.dyn_ltree,ke),f.d_desc=new he(f.dyn_dtree,xe),f.bl_desc=new he(f.bl_tree,Te),f.bi_buf=0,f.bi_valid=0,kt(f)},te._tr_stored_block=p,te._tr_flush_block=function(f,x,Y,Be){var H,ie,Qe=0;0<f.level?(f.strm.data_type===2&&(f.strm.data_type=function(ye){var be,ze=4093624447;for(be=0;be<=31;be++,ze>>>=1)if(1&ze&&ye.dyn_ltree[2*be]!==0)return S;if(ye.dyn_ltree[18]!==0||ye.dyn_ltree[20]!==0||ye.dyn_ltree[26]!==0)return g;for(be=32;be<_;be++)if(ye.dyn_ltree[2*be]!==0)return g;return S}(f)),lr(f,f.l_desc),lr(f,f.d_desc),Qe=function(ye){var be;for(V(ye,ye.dyn_ltree,ye.l_desc.max_code),V(ye,ye.dyn_dtree,ye.d_desc.max_code),lr(ye,ye.bl_desc),be=T-1;3<=be&&ye.bl_tree[2*Ce[be]+1]===0;be--);return ye.opt_len+=3*(be+1)+5+5+4,be}(f),H=f.opt_len+3+7>>>3,(ie=f.static_len+3+7>>>3)<=H&&(H=ie)):H=ie=Y+5,Y+4<=H&&x!==-1?p(f,x,Y,Be):f.strategy===4||ie===H?(et(f,2+(Be?1:0),3),br(f,Ue,ee)):(et(f,4+(Be?1:0),3),function(ye,be,ze,gt){var fe;for(et(ye,be-257,5),et(ye,ze-1,5),et(ye,gt-4,4),fe=0;fe<gt;fe++)et(ye,ye.bl_tree[2*Ce[fe]+1],3);dt(ye,ye.dyn_ltree,be-1),dt(ye,ye.dyn_dtree,ze-1)}(f,f.l_desc.max_code+1,f.d_desc.max_code+1,Qe+1),br(f,f.dyn_ltree,f.dyn_dtree)),kt(f),Be&&Ot(f)},te._tr_tally=function(f,x,Y){return f.pending_buf[f.d_buf+2*f.last_lit]=x>>>8&255,f.pending_buf[f.d_buf+2*f.last_lit+1]=255&x,f.pending_buf[f.l_buf+f.last_lit]=255&Y,f.last_lit++,x===0?f.dyn_ltree[2*Y]++:(f.matches++,x--,f.dyn_ltree[2*(D[Y]+_+1)]++,f.dyn_dtree[2*Se(x)]++),f.last_lit===f.lit_bufsize-1},te._tr_align=function(f){et(f,2,3),je(f,ne,Ue),function(x){x.bi_valid===16?(Xe(x,x.bi_buf),x.bi_buf=0,x.bi_valid=0):8<=x.bi_valid&&(x.pending_buf[x.pending++]=255&x.bi_buf,x.bi_buf>>=8,x.bi_valid-=8)}(f)}},{"../utils/common":41}],53:[function(P,Ne,te){"use strict";Ne.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(P,Ne,te){(function(W){(function(S,g){"use strict";if(!S.setImmediate){var F,v,$,_,M=1,O={},T=!1,L=S.document,q=Object.getPrototypeOf&&Object.getPrototypeOf(S);q=q&&q.setTimeout?q:S,F={}.toString.call(S.process)==="[object process]"?function(J){Ae.nextTick(function(){se(J)})}:function(){if(S.postMessage&&!S.importScripts){var J=!0,G=S.onmessage;return S.onmessage=function(){J=!1},S.postMessage("","*"),S.onmessage=G,J}}()?(_="setImmediate$"+Math.random()+"$",S.addEventListener?S.addEventListener("message",ne,!1):S.attachEvent("onmessage",ne),function(J){S.postMessage(_+J,"*")}):S.MessageChannel?(($=new MessageChannel).port1.onmessage=function(J){se(J.data)},function(J){$.port2.postMessage(J)}):L&&"onreadystatechange"in L.createElement("script")?(v=L.documentElement,function(J){var G=L.createElement("script");G.onreadystatechange=function(){se(J),G.onreadystatechange=null,v.removeChild(G),G=null},v.appendChild(G)}):function(J){setTimeout(se,0,J)},q.setImmediate=function(J){typeof J!="function"&&(J=new Function(""+J));for(var G=new Array(arguments.length-1),K=0;K<G.length;K++)G[K]=arguments[K+1];var le={callback:J,args:G};return O[M]=le,F(M),M++},q.clearImmediate=R}function R(J){delete O[J]}function se(J){if(T)setTimeout(se,0,J);else{var G=O[J];if(G){T=!0;try{(function(K){var le=K.callback,me=K.args;switch(me.length){case 0:le();break;case 1:le(me[0]);break;case 2:le(me[0],me[1]);break;case 3:le(me[0],me[1],me[2]);break;default:le.apply(g,me)}})(G)}finally{R(J),T=!1}}}}function ne(J){J.source===S&&typeof J.data=="string"&&J.data.indexOf(_)===0&&se(+J.data.slice(_.length))}})(typeof self=="undefined"?W===void 0?this:W:self)}).call(this,typeof C.g!="undefined"?C.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})},5630:function(dn,Ut,C){"use strict";var pe=C(54476),Ae=C(33885),P=C(20068),Ne=C(42978),te=C(75931),W=C(92310),S=C.n(W),g=C(18929),F=C(59301),v=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],$=(0,F.forwardRef)(function(_,M){var O,T=_.prefixCls,L=T===void 0?"rc-checkbox":T,q=_.className,R=_.style,se=_.checked,ne=_.disabled,J=_.defaultChecked,G=J===void 0?!1:J,K=_.type,le=K===void 0?"checkbox":K,me=_.title,Oe=_.onChange,Ce=(0,te.Z)(_,v),Ue=(0,F.useRef)(null),ee=(0,g.Z)(G,{value:se}),de=(0,Ne.Z)(ee,2),D=de[0],Ye=de[1];(0,F.useImperativeHandle)(M,function(){return{focus:function(){var ve;(ve=Ue.current)===null||ve===void 0||ve.focus()},blur:function(){var ve;(ve=Ue.current)===null||ve===void 0||ve.blur()},input:Ue.current}});var ke=S()(L,q,(O={},(0,P.Z)(O,"".concat(L,"-checked"),D),(0,P.Z)(O,"".concat(L,"-disabled"),ne),O)),xe=function(ve){ne||("checked"in _||Ye(ve.target.checked),Oe==null||Oe({target:(0,Ae.Z)((0,Ae.Z)({},_),{},{type:le,checked:ve.target.checked}),stopPropagation:function(){ve.stopPropagation()},preventDefault:function(){ve.preventDefault()},nativeEvent:ve.nativeEvent}))};return F.createElement("span",{className:ke,title:me,style:R},F.createElement("input",(0,pe.Z)({},Ce,{className:"".concat(L,"-input"),ref:Ue,onChange:xe,disabled:ne,checked:!!D,type:le})),F.createElement("span",{className:"".concat(L,"-inner")}))});Ut.Z=$},31561:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return le}});var pe=C(54476),Ae=C(20068),P=C(42978),Ne=C(75931),te=C(35593),W=C(92310),S=C.n(W),g=C(8654),F=C(59301),v=C(10228),$=C(16089),_=v.Z.ESC,M=v.Z.TAB;function O(me){var Oe=me.visible,Ce=me.triggerRef,Ue=me.onVisibleChange,ee=me.autoFocus,de=me.overlayRef,D=F.useRef(!1),Ye=function(){if(Oe){var ve,De;(ve=Ce.current)===null||ve===void 0||(De=ve.focus)===null||De===void 0||De.call(ve),Ue==null||Ue(!1)}},ke=function(){var ve;return(ve=de.current)!==null&&ve!==void 0&&ve.focus?(de.current.focus(),D.current=!0,!0):!1},xe=function(ve){switch(ve.keyCode){case _:Ye();break;case M:{var De=!1;D.current||(De=ke()),De?ve.preventDefault():Ye();break}}};F.useEffect(function(){return Oe?(window.addEventListener("keydown",xe),ee&&(0,$.Z)(ke,3),function(){window.removeEventListener("keydown",xe),D.current=!1}):function(){D.current=!1}},[Oe])}var T=(0,F.forwardRef)(function(me,Oe){var Ce=me.overlay,Ue=me.arrow,ee=me.prefixCls,de=(0,F.useMemo)(function(){var Ye;return typeof Ce=="function"?Ye=Ce():Ye=Ce,Ye},[Ce]),D=(0,g.sQ)(Oe,de==null?void 0:de.ref);return F.createElement(F.Fragment,null,Ue&&F.createElement("div",{className:"".concat(ee,"-arrow")}),F.cloneElement(de,{ref:(0,g.Yr)(de)?D:void 0}))}),L=T,q={adjustX:1,adjustY:1},R=[0,0],se={topLeft:{points:["bl","tl"],overflow:q,offset:[0,-4],targetOffset:R},top:{points:["bc","tc"],overflow:q,offset:[0,-4],targetOffset:R},topRight:{points:["br","tr"],overflow:q,offset:[0,-4],targetOffset:R},bottomLeft:{points:["tl","bl"],overflow:q,offset:[0,4],targetOffset:R},bottom:{points:["tc","bc"],overflow:q,offset:[0,4],targetOffset:R},bottomRight:{points:["tr","br"],overflow:q,offset:[0,4],targetOffset:R}},ne=se,J=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function G(me,Oe){var Ce,Ue=me.arrow,ee=Ue===void 0?!1:Ue,de=me.prefixCls,D=de===void 0?"rc-dropdown":de,Ye=me.transitionName,ke=me.animation,xe=me.align,Te=me.placement,ve=Te===void 0?"bottomLeft":Te,De=me.placements,he=De===void 0?ne:De,Se=me.getPopupContainer,Xe=me.showAction,et=me.hideAction,je=me.overlayClassName,qe=me.overlayStyle,Et=me.visible,kt=me.trigger,Ot=kt===void 0?["hover"]:kt,sr=me.autoFocus,rr=me.overlay,br=me.children,lr=me.onVisibleChange,V=(0,Ne.Z)(me,J),dt=F.useState(),I=(0,P.Z)(dt,2),p=I[0],f=I[1],x="visible"in me?Et:p,Y=F.useRef(null),Be=F.useRef(null),H=F.useRef(null);F.useImperativeHandle(Oe,function(){return Y.current});var ie=function(Le){f(Le),lr==null||lr(Le)};O({visible:x,triggerRef:H,onVisibleChange:ie,autoFocus:sr,overlayRef:Be});var Qe=function(Le){var Fe=me.onOverlayClick;f(!1),Fe&&Fe(Le)},ye=function(){return F.createElement(L,{ref:Be,overlay:rr,prefixCls:D,arrow:ee})},be=function(){return typeof rr=="function"?ye:ye()},ze=function(){var Le=me.minOverlayWidthMatchTrigger,Fe=me.alignPoint;return"minOverlayWidthMatchTrigger"in me?Le:!Fe},gt=function(){var Le=me.openClassName;return Le!==void 0?Le:"".concat(D,"-open")},fe=F.cloneElement(br,{className:S()((Ce=br.props)===null||Ce===void 0?void 0:Ce.className,x&&gt()),ref:(0,g.Yr)(br)?(0,g.sQ)(H,br.ref):void 0}),at=et;return!at&&Ot.indexOf("contextMenu")!==-1&&(at=["click"]),F.createElement(te.Z,(0,pe.Z)({builtinPlacements:he},V,{prefixCls:D,ref:Y,popupClassName:S()(je,(0,Ae.Z)({},"".concat(D,"-show-arrow"),ee)),popupStyle:qe,action:Ot,showAction:Xe,hideAction:at,popupPlacement:ve,popupAlign:xe,popupTransitionName:Ye,popupAnimation:ke,popupVisible:x,stretch:ze()?"minWidth":"",popup:be(),onPopupVisibleChange:ie,onPopupClick:Qe,getPopupContainer:Se}),fe)}var K=F.forwardRef(G),le=K},93681:function(dn,Ut,C){"use strict";C.r(Ut),C.d(Ut,{BaseInput:function(){return v},default:function(){return se}});var pe=C(54476),Ae=C(33885),P=C(20068),Ne=C(76190),te=C(92310),W=C.n(te),S=C(59301),g=C(5643),F=function(J){var G,K,le=J.inputElement,me=J.prefixCls,Oe=J.prefix,Ce=J.suffix,Ue=J.addonBefore,ee=J.addonAfter,de=J.className,D=J.style,Ye=J.disabled,ke=J.readOnly,xe=J.focused,Te=J.triggerFocus,ve=J.allowClear,De=J.value,he=J.handleReset,Se=J.hidden,Xe=J.classes,et=J.classNames,je=J.dataAttrs,qe=J.styles,Et=J.components,kt=(Et==null?void 0:Et.affixWrapper)||"span",Ot=(Et==null?void 0:Et.groupWrapper)||"span",sr=(Et==null?void 0:Et.wrapper)||"span",rr=(Et==null?void 0:Et.groupAddon)||"span",br=(0,S.useRef)(null),lr=function(ye){var be;(be=br.current)!==null&&be!==void 0&&be.contains(ye.target)&&(Te==null||Te())},V=function(){var ye;if(!ve)return null;var be=!Ye&&!ke&&De,ze="".concat(me,"-clear-icon"),gt=(0,Ne.Z)(ve)==="object"&&ve!==null&&ve!==void 0&&ve.clearIcon?ve.clearIcon:"\u2716";return S.createElement("span",{onClick:he,onMouseDown:function(at){return at.preventDefault()},className:W()(ze,(ye={},(0,P.Z)(ye,"".concat(ze,"-hidden"),!be),(0,P.Z)(ye,"".concat(ze,"-has-suffix"),!!Ce),ye)),role:"button",tabIndex:-1},gt)},dt=(0,S.cloneElement)(le,{value:De,hidden:Se,className:W()((G=le.props)===null||G===void 0?void 0:G.className,!(0,g.X3)(J)&&!(0,g.He)(J)&&de)||null,style:(0,Ae.Z)((0,Ae.Z)({},(K=le.props)===null||K===void 0?void 0:K.style),!(0,g.X3)(J)&&!(0,g.He)(J)?D:{})});if((0,g.X3)(J)){var I,p="".concat(me,"-affix-wrapper"),f=W()(p,(I={},(0,P.Z)(I,"".concat(p,"-disabled"),Ye),(0,P.Z)(I,"".concat(p,"-focused"),xe),(0,P.Z)(I,"".concat(p,"-readonly"),ke),(0,P.Z)(I,"".concat(p,"-input-with-clear-btn"),Ce&&ve&&De),I),!(0,g.He)(J)&&de,Xe==null?void 0:Xe.affixWrapper,et==null?void 0:et.affixWrapper),x=(Ce||ve)&&S.createElement("span",{className:W()("".concat(me,"-suffix"),et==null?void 0:et.suffix),style:qe==null?void 0:qe.suffix},V(),Ce);dt=S.createElement(kt,(0,pe.Z)({className:f,style:(0,Ae.Z)((0,Ae.Z)({},(0,g.He)(J)?void 0:D),qe==null?void 0:qe.affixWrapper),hidden:!(0,g.He)(J)&&Se,onClick:lr},je==null?void 0:je.affixWrapper,{ref:br}),Oe&&S.createElement("span",{className:W()("".concat(me,"-prefix"),et==null?void 0:et.prefix),style:qe==null?void 0:qe.prefix},Oe),(0,S.cloneElement)(le,{value:De,hidden:null}),x)}if((0,g.He)(J)){var Y="".concat(me,"-group"),Be="".concat(Y,"-addon"),H=W()("".concat(me,"-wrapper"),Y,Xe==null?void 0:Xe.wrapper),ie=W()("".concat(me,"-group-wrapper"),de,Xe==null?void 0:Xe.group);return S.createElement(Ot,{className:ie,style:D,hidden:Se},S.createElement(sr,{className:H},Ue&&S.createElement(rr,{className:Be},Ue),(0,S.cloneElement)(dt,{hidden:null}),ee&&S.createElement(rr,{className:Be},ee)))}return dt},v=F,$=C(94480),_=C(42978),M=C(75931),O=C(18929),T=C(2738),L=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],q=(0,S.forwardRef)(function(ne,J){var G=ne.autoComplete,K=ne.onChange,le=ne.onFocus,me=ne.onBlur,Oe=ne.onPressEnter,Ce=ne.onKeyDown,Ue=ne.prefixCls,ee=Ue===void 0?"rc-input":Ue,de=ne.disabled,D=ne.htmlSize,Ye=ne.className,ke=ne.maxLength,xe=ne.suffix,Te=ne.showCount,ve=ne.type,De=ve===void 0?"text":ve,he=ne.classes,Se=ne.classNames,Xe=ne.styles,et=(0,M.Z)(ne,L),je=(0,O.Z)(ne.defaultValue,{value:ne.value}),qe=(0,_.Z)(je,2),Et=qe[0],kt=qe[1],Ot=(0,S.useState)(!1),sr=(0,_.Z)(Ot,2),rr=sr[0],br=sr[1],lr=(0,S.useRef)(null),V=function(ie){lr.current&&(0,g.nH)(lr.current,ie)};(0,S.useImperativeHandle)(J,function(){return{focus:V,blur:function(){var ie;(ie=lr.current)===null||ie===void 0||ie.blur()},setSelectionRange:function(ie,Qe,ye){var be;(be=lr.current)===null||be===void 0||be.setSelectionRange(ie,Qe,ye)},select:function(){var ie;(ie=lr.current)===null||ie===void 0||ie.select()},input:lr.current}}),(0,S.useEffect)(function(){br(function(H){return H&&de?!1:H})},[de]);var dt=function(ie){ne.value===void 0&&kt(ie.target.value),lr.current&&(0,g.rJ)(lr.current,ie,K)},I=function(ie){Oe&&ie.key==="Enter"&&Oe(ie),Ce==null||Ce(ie)},p=function(ie){br(!0),le==null||le(ie)},f=function(ie){br(!1),me==null||me(ie)},x=function(ie){kt(""),V(),lr.current&&(0,g.rJ)(lr.current,ie,K)},Y=function(){var ie=(0,T.Z)(ne,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return S.createElement("input",(0,pe.Z)({autoComplete:G},ie,{onChange:dt,onFocus:p,onBlur:f,onKeyDown:I,className:W()(ee,(0,P.Z)({},"".concat(ee,"-disabled"),de),Se==null?void 0:Se.input),style:Xe==null?void 0:Xe.input,ref:lr,size:D,type:De}))},Be=function(){var ie=Number(ke)>0;if(xe||Te){var Qe=(0,g.D7)(Et),ye=(0,$.Z)(Qe).length,be=(0,Ne.Z)(Te)==="object"?Te.formatter({value:Qe,count:ye,maxLength:ke}):"".concat(ye).concat(ie?" / ".concat(ke):"");return S.createElement(S.Fragment,null,!!Te&&S.createElement("span",{className:W()("".concat(ee,"-show-count-suffix"),(0,P.Z)({},"".concat(ee,"-show-count-has-suffix"),!!xe),Se==null?void 0:Se.count),style:(0,Ae.Z)({},Xe==null?void 0:Xe.count)},be),xe)}return null};return S.createElement(v,(0,pe.Z)({},et,{prefixCls:ee,className:Ye,inputElement:Y(),handleReset:x,value:(0,g.D7)(Et),focused:rr,triggerFocus:V,suffix:Be(),disabled:de,classes:he,classNames:Se,styles:Xe}))}),R=q,se=R},5643:function(dn,Ut,C){"use strict";C.d(Ut,{D7:function(){return te},He:function(){return pe},X3:function(){return Ae},nH:function(){return Ne},rJ:function(){return P}});function pe(W){return!!(W.addonBefore||W.addonAfter)}function Ae(W){return!!(W.prefix||W.suffix||W.allowClear)}function P(W,S,g,F){if(g){var v=S;if(S.type==="click"){var $=W.cloneNode(!0);v=Object.create(S,{target:{value:$},currentTarget:{value:$}}),$.value="",g(v);return}if(F!==void 0){v=Object.create(S,{target:{value:W},currentTarget:{value:W}}),W.value=F,g(v);return}g(v)}}function Ne(W,S){if(W){W.focus(S);var g=S||{},F=g.cursor;if(F){var v=W.value.length;switch(F){case"start":W.setSelectionRange(0,0);break;case"end":W.setSelectionRange(v,v);break;default:W.setSelectionRange(0,v)}}}}function te(W){return typeof W=="undefined"||W===null?"":String(W)}},15285:function(dn,Ut,C){"use strict";C.d(Ut,{iz:function(){return jr},ck:function(){return hn},BW:function(){return an},sN:function(){return hn},Wd:function(){return Mt},ZP:function(){return Xn},Xl:function(){return Ce}});var pe=C(54476),Ae=C(20068),P=C(33885),Ne=C(94480),te=C(42978),W=C(75931),S=C(92310),g=C.n(S),F=C(83836),v=C(18929),$=C(13697),_=C(48736),M=C(59301),O=C(4676),T=M.createContext(null);function L(Vt,Xt){return Vt===void 0?null:"".concat(Vt,"-").concat(Xt)}function q(Vt){var Xt=M.useContext(T);return L(Xt,Vt)}var R=C(80547),se=["children","locked"],ne=M.createContext(null);function J(Vt,Xt){var er=(0,P.Z)({},Vt);return Object.keys(Xt).forEach(function(fr){var Rt=Xt[fr];Rt!==void 0&&(er[fr]=Rt)}),er}function G(Vt){var Xt=Vt.children,er=Vt.locked,fr=(0,W.Z)(Vt,se),Rt=M.useContext(ne),Jt=(0,R.Z)(function(){return J(Rt,fr)},[Rt,fr],function(ar,Nr){return!er&&(ar[0]!==Nr[0]||!(0,$.Z)(ar[1],Nr[1],!0))});return M.createElement(ne.Provider,{value:Jt},Xt)}var K=[],le=M.createContext(null);function me(){return M.useContext(le)}var Oe=M.createContext(K);function Ce(Vt){var Xt=M.useContext(Oe);return M.useMemo(function(){return Vt!==void 0?[].concat((0,Ne.Z)(Xt),[Vt]):Xt},[Xt,Vt])}var Ue=M.createContext(null),ee=M.createContext({}),de=ee,D=C(29194);function Ye(Vt){var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,D.Z)(Vt)){var er=Vt.nodeName.toLowerCase(),fr=["input","select","textarea","button"].includes(er)||Vt.isContentEditable||er==="a"&&!!Vt.getAttribute("href"),Rt=Vt.getAttribute("tabindex"),Jt=Number(Rt),ar=null;return Rt&&!Number.isNaN(Jt)?ar=Jt:fr&&ar===null&&(ar=0),fr&&Vt.disabled&&(ar=null),ar!==null&&(ar>=0||Xt&&ar<0)}return!1}function ke(Vt){var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,er=(0,Ne.Z)(Vt.querySelectorAll("*")).filter(function(fr){return Ye(fr,Xt)});return Ye(Vt,Xt)&&er.unshift(Vt),er}var xe=null;function Te(){xe=document.activeElement}function ve(){xe=null}function De(){if(xe)try{xe.focus()}catch(Vt){}}function he(Vt,Xt){if(Xt.keyCode===9){var er=ke(Vt),fr=er[Xt.shiftKey?0:er.length-1],Rt=fr===document.activeElement||Vt===document.activeElement;if(Rt){var Jt=er[Xt.shiftKey?er.length-1:0];Jt.focus(),Xt.preventDefault()}}}var Se=C(10228),Xe=C(16089),et=Se.Z.LEFT,je=Se.Z.RIGHT,qe=Se.Z.UP,Et=Se.Z.DOWN,kt=Se.Z.ENTER,Ot=Se.Z.ESC,sr=Se.Z.HOME,rr=Se.Z.END,br=[qe,Et,et,je];function lr(Vt,Xt,er,fr){var Rt,Jt,ar,Nr,yn="prev",Bn="next",ci="children",ni="parent";if(Vt==="inline"&&fr===kt)return{inlineTrigger:!0};var Ii=(Rt={},(0,Ae.Z)(Rt,qe,yn),(0,Ae.Z)(Rt,Et,Bn),Rt),qn=(Jt={},(0,Ae.Z)(Jt,et,er?Bn:yn),(0,Ae.Z)(Jt,je,er?yn:Bn),(0,Ae.Z)(Jt,Et,ci),(0,Ae.Z)(Jt,kt,ci),Jt),zn=(ar={},(0,Ae.Z)(ar,qe,yn),(0,Ae.Z)(ar,Et,Bn),(0,Ae.Z)(ar,kt,ci),(0,Ae.Z)(ar,Ot,ni),(0,Ae.Z)(ar,et,er?ci:ni),(0,Ae.Z)(ar,je,er?ni:ci),ar),xi={inline:Ii,horizontal:qn,vertical:zn,inlineSub:Ii,horizontalSub:zn,verticalSub:zn},wi=(Nr=xi["".concat(Vt).concat(Xt?"":"Sub")])===null||Nr===void 0?void 0:Nr[fr];switch(wi){case yn:return{offset:-1,sibling:!0};case Bn:return{offset:1,sibling:!0};case ni:return{offset:-1,sibling:!1};case ci:return{offset:1,sibling:!1};default:return null}}function V(Vt){for(var Xt=Vt;Xt;){if(Xt.getAttribute("data-menu-list"))return Xt;Xt=Xt.parentElement}return null}function dt(Vt,Xt){for(var er=Vt||document.activeElement;er;){if(Xt.has(er))return er;er=er.parentElement}return null}function I(Vt,Xt){var er=ke(Vt,!0);return er.filter(function(fr){return Xt.has(fr)})}function p(Vt,Xt,er){var fr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Vt)return null;var Rt=I(Vt,Xt),Jt=Rt.length,ar=Rt.findIndex(function(Nr){return er===Nr});return fr<0?ar===-1?ar=Jt-1:ar-=1:fr>0&&(ar+=1),ar=(ar+Jt)%Jt,Rt[ar]}var f=function(Xt,er){var fr=new Set,Rt=new Map,Jt=new Map;return Xt.forEach(function(ar){var Nr=document.querySelector("[data-menu-id='".concat(L(er,ar),"']"));Nr&&(fr.add(Nr),Jt.set(Nr,ar),Rt.set(ar,Nr))}),{elements:fr,key2element:Rt,element2key:Jt}};function x(Vt,Xt,er,fr,Rt,Jt,ar,Nr,yn,Bn){var ci=M.useRef(),ni=M.useRef();ni.current=Xt;var Ii=function(){Xe.Z.cancel(ci.current)};return M.useEffect(function(){return function(){Ii()}},[]),function(qn){var zn=qn.which;if([].concat(br,[kt,Ot,sr,rr]).includes(zn)){var xi=Jt(),wi=f(xi,fr),Ci=wi,Ai=Ci.elements,Bi=Ci.key2element,Xi=Ci.element2key,ri=Bi.get(Xt),Ti=dt(ri,Ai),Ha=Xi.get(Ti),li=lr(Vt,ar(Ha,!0).length===1,er,zn);if(!li&&zn!==sr&&zn!==rr)return;(br.includes(zn)||[sr,rr].includes(zn))&&qn.preventDefault();var pn=function(Aa){if(Aa){var Bo=Aa,Wn=Aa.querySelector("a");Wn!=null&&Wn.getAttribute("href")&&(Bo=Wn);var Fn=Xi.get(Aa);Nr(Fn),Ii(),ci.current=(0,Xe.Z)(function(){ni.current===Fn&&Bo.focus()})}};if([sr,rr].includes(zn)||li.sibling||!Ti){var ln;!Ti||Vt==="inline"?ln=Rt.current:ln=V(Ti);var Jn,Hn=I(ln,Ai);zn===sr?Jn=Hn[0]:zn===rr?Jn=Hn[Hn.length-1]:Jn=p(ln,Ai,Ti,li.offset),pn(Jn)}else if(li.inlineTrigger)yn(Ha);else if(li.offset>0)yn(Ha,!0),Ii(),ci.current=(0,Xe.Z)(function(){wi=f(xi,fr);var Ua=Ti.getAttribute("aria-controls"),Aa=document.getElementById(Ua),Bo=p(Aa,wi.elements);pn(Bo)},5);else if(li.offset<0){var hi=ar(Ha,!0),qi=hi[hi.length-2],Li=Bi.get(qi);yn(qi,!1),pn(Li)}}Bn==null||Bn(qn)}}function Y(Vt){Promise.resolve().then(Vt)}var Be="__RC_UTIL_PATH_SPLIT__",H=function(Xt){return Xt.join(Be)},ie=function(Xt){return Xt.split(Be)},Qe="rc-menu-more";function ye(){var Vt=M.useState({}),Xt=(0,te.Z)(Vt,2),er=Xt[1],fr=(0,M.useRef)(new Map),Rt=(0,M.useRef)(new Map),Jt=M.useState([]),ar=(0,te.Z)(Jt,2),Nr=ar[0],yn=ar[1],Bn=(0,M.useRef)(0),ci=(0,M.useRef)(!1),ni=function(){ci.current||er({})},Ii=(0,M.useCallback)(function(Bi,Xi){var ri=H(Xi);Rt.current.set(ri,Bi),fr.current.set(Bi,ri),Bn.current+=1;var Ti=Bn.current;Y(function(){Ti===Bn.current&&ni()})},[]),qn=(0,M.useCallback)(function(Bi,Xi){var ri=H(Xi);Rt.current.delete(ri),fr.current.delete(Bi)},[]),zn=(0,M.useCallback)(function(Bi){yn(Bi)},[]),xi=(0,M.useCallback)(function(Bi,Xi){var ri=fr.current.get(Bi)||"",Ti=ie(ri);return Xi&&Nr.includes(Ti[0])&&Ti.unshift(Qe),Ti},[Nr]),wi=(0,M.useCallback)(function(Bi,Xi){return Bi.some(function(ri){var Ti=xi(ri,!0);return Ti.includes(Xi)})},[xi]),Ci=function(){var Xi=(0,Ne.Z)(fr.current.keys());return Nr.length&&Xi.push(Qe),Xi},Ai=(0,M.useCallback)(function(Bi){var Xi="".concat(fr.current.get(Bi)).concat(Be),ri=new Set;return(0,Ne.Z)(Rt.current.keys()).forEach(function(Ti){Ti.startsWith(Xi)&&ri.add(Rt.current.get(Ti))}),ri},[]);return M.useEffect(function(){return function(){ci.current=!0}},[]),{registerPath:Ii,unregisterPath:qn,refreshOverflowKeys:zn,isSubPathKey:wi,getKeyPath:xi,getKeys:Ci,getSubPathKeys:Ai}}function be(Vt){var Xt=M.useRef(Vt);Xt.current=Vt;var er=M.useCallback(function(){for(var fr,Rt=arguments.length,Jt=new Array(Rt),ar=0;ar<Rt;ar++)Jt[ar]=arguments[ar];return(fr=Xt.current)===null||fr===void 0?void 0:fr.call.apply(fr,[Xt].concat(Jt))},[]);return Vt?er:void 0}var ze=Math.random().toFixed(5).toString().slice(2),gt=0;function fe(Vt){var Xt=(0,v.Z)(Vt,{value:Vt}),er=(0,te.Z)(Xt,2),fr=er[0],Rt=er[1];return M.useEffect(function(){gt+=1;var Jt="".concat(ze,"-").concat(gt);Rt("rc-menu-uuid-".concat(Jt))},[]),fr}var at=C(67732),rt=C(83652),Le=C(42403),Fe=C(158),ct=C(2738),Tt=C(8654);function Pt(Vt,Xt,er,fr){var Rt=M.useContext(ne),Jt=Rt.activeKey,ar=Rt.onActive,Nr=Rt.onInactive,yn={active:Jt===Vt};return Xt||(yn.onMouseEnter=function(Bn){er==null||er({key:Vt,domEvent:Bn}),ar(Vt)},yn.onMouseLeave=function(Bn){fr==null||fr({key:Vt,domEvent:Bn}),Nr(Vt)}),yn}function Yt(Vt){var Xt=M.useContext(ne),er=Xt.mode,fr=Xt.rtl,Rt=Xt.inlineIndent;if(er!=="inline")return null;var Jt=Vt;return fr?{paddingRight:Jt*Rt}:{paddingLeft:Jt*Rt}}function Fr(Vt){var Xt=Vt.icon,er=Vt.props,fr=Vt.children,Rt;return Xt===null||Xt===!1?null:(typeof Xt=="function"?Rt=M.createElement(Xt,(0,P.Z)({},er)):typeof Xt!="boolean"&&(Rt=Xt),Rt||fr||null)}var Lr=["item"];function Or(Vt){var Xt=Vt.item,er=(0,W.Z)(Vt,Lr);return Object.defineProperty(er,"item",{get:function(){return(0,_.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Xt}}),er}var kr=["title","attribute","elementRef"],yr=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ur=["active"],Kr=function(Vt){(0,Le.Z)(er,Vt);var Xt=(0,Fe.Z)(er);function er(){return(0,at.Z)(this,er),Xt.apply(this,arguments)}return(0,rt.Z)(er,[{key:"render",value:function(){var Rt=this.props,Jt=Rt.title,ar=Rt.attribute,Nr=Rt.elementRef,yn=(0,W.Z)(Rt,kr),Bn=(0,ct.Z)(yn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,_.ZP)(!ar,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),M.createElement(F.Z.Item,(0,pe.Z)({},ar,{title:typeof Jt=="string"?Jt:void 0},Bn,{ref:Nr}))}}]),er}(M.Component),fn=M.forwardRef(function(Vt,Xt){var er,fr=Vt.style,Rt=Vt.className,Jt=Vt.eventKey,ar=Vt.warnKey,Nr=Vt.disabled,yn=Vt.itemIcon,Bn=Vt.children,ci=Vt.role,ni=Vt.onMouseEnter,Ii=Vt.onMouseLeave,qn=Vt.onClick,zn=Vt.onKeyDown,xi=Vt.onFocus,wi=(0,W.Z)(Vt,yr),Ci=q(Jt),Ai=M.useContext(ne),Bi=Ai.prefixCls,Xi=Ai.onItemClick,ri=Ai.disabled,Ti=Ai.overflowDisabled,Ha=Ai.itemIcon,li=Ai.selectedKeys,pn=Ai.onActive,ln=M.useContext(de),Jn=ln._internalRenderMenuItem,Hn="".concat(Bi,"-item"),hi=M.useRef(),qi=M.useRef(),Li=ri||Nr,Ua=(0,Tt.x1)(Xt,qi),Aa=Ce(Jt),Bo=function(po){return{key:Jt,keyPath:(0,Ne.Z)(Aa).reverse(),item:hi.current,domEvent:po}},Wn=yn||Ha,Fn=Pt(Jt,Li,ni,Ii),Ni=Fn.active,Ji=(0,W.Z)(Fn,ur),Fa=li.includes(Jt),Is=Yt(Aa.length),za=function(po){if(!Li){var bs=Bo(po);qn==null||qn(Or(bs)),Xi(bs)}},fa=function(po){if(zn==null||zn(po),po.which===Se.Z.ENTER){var bs=Bo(po);qn==null||qn(Or(bs)),Xi(bs)}},Io=function(po){pn(Jt),xi==null||xi(po)},So={};Vt.role==="option"&&(So["aria-selected"]=Fa);var Po=M.createElement(Kr,(0,pe.Z)({ref:hi,elementRef:Ua,role:ci===null?"none":ci||"menuitem",tabIndex:Nr?null:-1,"data-menu-id":Ti&&Ci?null:Ci},wi,Ji,So,{component:"li","aria-disabled":Nr,style:(0,P.Z)((0,P.Z)({},Is),fr),className:g()(Hn,(er={},(0,Ae.Z)(er,"".concat(Hn,"-active"),Ni),(0,Ae.Z)(er,"".concat(Hn,"-selected"),Fa),(0,Ae.Z)(er,"".concat(Hn,"-disabled"),Li),er),Rt),onClick:za,onKeyDown:fa,onFocus:Io}),Bn,M.createElement(Fr,{props:(0,P.Z)((0,P.Z)({},Vt),{},{isSelected:Fa}),icon:Wn}));return Jn&&(Po=Jn(Po,Vt,{selected:Fa})),Po});function Un(Vt,Xt){var er=Vt.eventKey,fr=me(),Rt=Ce(er);return M.useEffect(function(){if(fr)return fr.registerPath(er,Rt),function(){fr.unregisterPath(er,Rt)}},[Rt]),fr?null:M.createElement(fn,(0,pe.Z)({},Vt,{ref:Xt}))}var hn=M.forwardRef(Un),Dn=["className","children"],Qi=function(Xt,er){var fr=Xt.className,Rt=Xt.children,Jt=(0,W.Z)(Xt,Dn),ar=M.useContext(ne),Nr=ar.prefixCls,yn=ar.mode,Bn=ar.rtl;return M.createElement("ul",(0,pe.Z)({className:g()(Nr,Bn&&"".concat(Nr,"-rtl"),"".concat(Nr,"-sub"),"".concat(Nr,"-").concat(yn==="inline"?"inline":"vertical"),fr),role:"menu"},Jt,{"data-menu-list":!0,ref:er}),Rt)},Pr=M.forwardRef(Qi);Pr.displayName="SubMenuList";var xn=Pr,Ei=C(11592);function di(Vt,Xt){return(0,Ei.Z)(Vt).map(function(er,fr){if(M.isValidElement(er)){var Rt,Jt,ar=er.key,Nr=(Rt=(Jt=er.props)===null||Jt===void 0?void 0:Jt.eventKey)!==null&&Rt!==void 0?Rt:ar,yn=Nr==null;yn&&(Nr="tmp_key-".concat([].concat((0,Ne.Z)(Xt),[fr]).join("-")));var Bn={key:Nr,eventKey:Nr};return M.cloneElement(er,Bn)}return er})}var Zi=C(35593),_i={adjustX:1,adjustY:1},ji={topLeft:{points:["bl","tl"],overflow:_i},topRight:{points:["br","tr"],overflow:_i},bottomLeft:{points:["tl","bl"],overflow:_i},bottomRight:{points:["tr","br"],overflow:_i},leftTop:{points:["tr","tl"],overflow:_i},leftBottom:{points:["br","bl"],overflow:_i},rightTop:{points:["tl","tr"],overflow:_i},rightBottom:{points:["bl","br"],overflow:_i}},qa={topLeft:{points:["bl","tl"],overflow:_i},topRight:{points:["br","tr"],overflow:_i},bottomLeft:{points:["tl","bl"],overflow:_i},bottomRight:{points:["tr","br"],overflow:_i},rightTop:{points:["tr","tl"],overflow:_i},rightBottom:{points:["br","bl"],overflow:_i},leftTop:{points:["tl","tr"],overflow:_i},leftBottom:{points:["bl","br"],overflow:_i}},Ki=null;function ti(Vt,Xt,er){if(Xt)return Xt;if(er)return er[Vt]||er.other}var gi={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function yi(Vt){var Xt=Vt.prefixCls,er=Vt.visible,fr=Vt.children,Rt=Vt.popup,Jt=Vt.popupStyle,ar=Vt.popupClassName,Nr=Vt.popupOffset,yn=Vt.disabled,Bn=Vt.mode,ci=Vt.onVisibleChange,ni=M.useContext(ne),Ii=ni.getPopupContainer,qn=ni.rtl,zn=ni.subMenuOpenDelay,xi=ni.subMenuCloseDelay,wi=ni.builtinPlacements,Ci=ni.triggerSubMenuAction,Ai=ni.forceSubMenuRender,Bi=ni.rootClassName,Xi=ni.motion,ri=ni.defaultMotions,Ti=M.useState(!1),Ha=(0,te.Z)(Ti,2),li=Ha[0],pn=Ha[1],ln=qn?(0,P.Z)((0,P.Z)({},qa),wi):(0,P.Z)((0,P.Z)({},ji),wi),Jn=gi[Bn],Hn=ti(Bn,Xi,ri),hi=M.useRef(Hn);Bn!=="inline"&&(hi.current=Hn);var qi=(0,P.Z)((0,P.Z)({},hi.current),{},{leavedClassName:"".concat(Xt,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Li=M.useRef();return M.useEffect(function(){return Li.current=(0,Xe.Z)(function(){pn(er)}),function(){Xe.Z.cancel(Li.current)}},[er]),M.createElement(Zi.Z,{prefixCls:Xt,popupClassName:g()("".concat(Xt,"-popup"),(0,Ae.Z)({},"".concat(Xt,"-rtl"),qn),ar,Bi),stretch:Bn==="horizontal"?"minWidth":null,getPopupContainer:Ii,builtinPlacements:ln,popupPlacement:Jn,popupVisible:li,popup:Rt,popupStyle:Jt,popupAlign:Nr&&{offset:Nr},action:yn?[]:[Ci],mouseEnterDelay:zn,mouseLeaveDelay:xi,onPopupVisibleChange:ci,forceRender:Ai,popupMotion:qi,fresh:!0},fr)}var $e=C(77900);function _e(Vt){var Xt=Vt.id,er=Vt.open,fr=Vt.keyPath,Rt=Vt.children,Jt="inline",ar=M.useContext(ne),Nr=ar.prefixCls,yn=ar.forceSubMenuRender,Bn=ar.motion,ci=ar.defaultMotions,ni=ar.mode,Ii=M.useRef(!1);Ii.current=ni===Jt;var qn=M.useState(!Ii.current),zn=(0,te.Z)(qn,2),xi=zn[0],wi=zn[1],Ci=Ii.current?er:!1;M.useEffect(function(){Ii.current&&wi(!1)},[ni]);var Ai=(0,P.Z)({},ti(Jt,Bn,ci));fr.length>1&&(Ai.motionAppear=!1);var Bi=Ai.onVisibleChanged;return Ai.onVisibleChanged=function(Xi){return!Ii.current&&!Xi&&wi(!0),Bi==null?void 0:Bi(Xi)},xi?null:M.createElement(G,{mode:Jt,locked:!Ii.current},M.createElement($e.default,(0,pe.Z)({visible:Ci},Ai,{forceRender:yn,removeOnLeave:!1,leavedClassName:"".concat(Nr,"-hidden")}),function(Xi){var ri=Xi.className,Ti=Xi.style;return M.createElement(xn,{id:Xt,className:ri,style:Ti},Rt)}))}var Me=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ie=["active"],Nt=function(Xt){var er,fr=Xt.style,Rt=Xt.className,Jt=Xt.title,ar=Xt.eventKey,Nr=Xt.warnKey,yn=Xt.disabled,Bn=Xt.internalPopupClose,ci=Xt.children,ni=Xt.itemIcon,Ii=Xt.expandIcon,qn=Xt.popupClassName,zn=Xt.popupOffset,xi=Xt.popupStyle,wi=Xt.onClick,Ci=Xt.onMouseEnter,Ai=Xt.onMouseLeave,Bi=Xt.onTitleClick,Xi=Xt.onTitleMouseEnter,ri=Xt.onTitleMouseLeave,Ti=(0,W.Z)(Xt,Me),Ha=q(ar),li=M.useContext(ne),pn=li.prefixCls,ln=li.mode,Jn=li.openKeys,Hn=li.disabled,hi=li.overflowDisabled,qi=li.activeKey,Li=li.selectedKeys,Ua=li.itemIcon,Aa=li.expandIcon,Bo=li.onItemClick,Wn=li.onOpenChange,Fn=li.onActive,Ni=M.useContext(de),Ji=Ni._internalRenderSubMenuItem,Fa=M.useContext(Ue),Is=Fa.isSubPathKey,za=Ce(),fa="".concat(pn,"-submenu"),Io=Hn||yn,So=M.useRef(),Po=M.useRef(),Os=ni!=null?ni:Ua,po=Ii!=null?Ii:Aa,bs=Jn.includes(ar),Ps=!hi&&bs,$s=Is(Li,ar),To=Pt(ar,Io,Xi,ri),Uo=To.active,ys=(0,W.Z)(To,Ie),el=M.useState(!1),vl=(0,te.Z)(el,2),ic=vl[0],ac=vl[1],Ql=function(xs){Io||ac(xs)},Zs=function(xs){Ql(!0),Ci==null||Ci({key:ar,domEvent:xs})},Dc=function(xs){Ql(!1),Ai==null||Ai({key:ar,domEvent:xs})},Kl=M.useMemo(function(){return Uo||(ln!=="inline"?ic||Is([qi],ar):!1)},[ln,Uo,qi,ic,ar,Is]),Hl=Yt(za.length),Vs=function(xs){Io||(Bi==null||Bi({key:ar,domEvent:xs}),ln==="inline"&&Wn(ar,!bs))},as=be(function(ws){wi==null||wi(Or(ws)),Bo(ws)}),ii=function(xs){ln!=="inline"&&Wn(ar,xs)},la=function(){Fn(ar)},ta=Ha&&"".concat(Ha,"-popup"),oa=M.createElement("div",(0,pe.Z)({role:"menuitem",style:Hl,className:"".concat(fa,"-title"),tabIndex:Io?null:-1,ref:So,title:typeof Jt=="string"?Jt:null,"data-menu-id":hi&&Ha?null:Ha,"aria-expanded":Ps,"aria-haspopup":!0,"aria-controls":ta,"aria-disabled":Io,onClick:Vs,onFocus:la},ys),Jt,M.createElement(Fr,{icon:ln!=="horizontal"?po:void 0,props:(0,P.Z)((0,P.Z)({},Xt),{},{isOpen:Ps,isSubMenu:!0})},M.createElement("i",{className:"".concat(fa,"-arrow")}))),Da=M.useRef(ln);if(ln!=="inline"&&za.length>1?Da.current="vertical":Da.current=ln,!hi){var so=Da.current;oa=M.createElement(yi,{mode:so,prefixCls:fa,visible:!Bn&&Ps&&ln!=="inline",popupClassName:qn,popupOffset:zn,popupStyle:xi,popup:M.createElement(G,{mode:so==="horizontal"?"vertical":so},M.createElement(xn,{id:ta,ref:Po},ci)),disabled:Io,onVisibleChange:ii},oa)}var Ws=M.createElement(F.Z.Item,(0,pe.Z)({role:"none"},Ti,{component:"li",style:fr,className:g()(fa,"".concat(fa,"-").concat(ln),Rt,(er={},(0,Ae.Z)(er,"".concat(fa,"-open"),Ps),(0,Ae.Z)(er,"".concat(fa,"-active"),Kl),(0,Ae.Z)(er,"".concat(fa,"-selected"),$s),(0,Ae.Z)(er,"".concat(fa,"-disabled"),Io),er)),onMouseEnter:Zs,onMouseLeave:Dc}),oa,!hi&&M.createElement(_e,{id:ta,open:Ps,keyPath:za},ci));return Ji&&(Ws=Ji(Ws,Xt,{selected:$s,active:Kl,open:Ps,disabled:Io})),M.createElement(G,{onItemClick:as,mode:ln==="horizontal"?"vertical":ln,itemIcon:Os,expandIcon:po},Ws)};function Mt(Vt){var Xt=Vt.eventKey,er=Vt.children,fr=Ce(Xt),Rt=di(er,fr),Jt=me();M.useEffect(function(){if(Jt)return Jt.registerPath(Xt,fr),function(){Jt.unregisterPath(Xt,fr)}},[fr]);var ar;return Jt?ar=Rt:ar=M.createElement(Nt,Vt,Rt),M.createElement(Oe.Provider,{value:fr},ar)}var Sr=C(76190),nr=["className","title","eventKey","children"],Dr=["children"],Hr=function(Xt){var er=Xt.className,fr=Xt.title,Rt=Xt.eventKey,Jt=Xt.children,ar=(0,W.Z)(Xt,nr),Nr=M.useContext(ne),yn=Nr.prefixCls,Bn="".concat(yn,"-item-group");return M.createElement("li",(0,pe.Z)({role:"presentation"},ar,{onClick:function(ni){return ni.stopPropagation()},className:g()(Bn,er)}),M.createElement("div",{role:"presentation",className:"".concat(Bn,"-title"),title:typeof fr=="string"?fr:void 0},fr),M.createElement("ul",{role:"group",className:"".concat(Bn,"-list")},Jt))};function an(Vt){var Xt=Vt.children,er=(0,W.Z)(Vt,Dr),fr=Ce(er.eventKey),Rt=di(Xt,fr),Jt=me();return Jt?Rt:M.createElement(Hr,(0,ct.Z)(er,["warnKey"]),Rt)}function jr(Vt){var Xt=Vt.className,er=Vt.style,fr=M.useContext(ne),Rt=fr.prefixCls,Jt=me();return Jt?null:M.createElement("li",{role:"separator",className:g()("".concat(Rt,"-item-divider"),Xt),style:er})}var Rr=["label","children","key","type"];function en(Vt){return(Vt||[]).map(function(Xt,er){if(Xt&&(0,Sr.Z)(Xt)==="object"){var fr=Xt,Rt=fr.label,Jt=fr.children,ar=fr.key,Nr=fr.type,yn=(0,W.Z)(fr,Rr),Bn=ar!=null?ar:"tmp-".concat(er);return Jt||Nr==="group"?Nr==="group"?M.createElement(an,(0,pe.Z)({key:Bn},yn,{title:Rt}),en(Jt)):M.createElement(Mt,(0,pe.Z)({key:Bn},yn,{title:Rt}),en(Jt)):Nr==="divider"?M.createElement(jr,(0,pe.Z)({key:Bn},yn)):M.createElement(hn,(0,pe.Z)({key:Bn},yn),Rt)}return null}).filter(function(Xt){return Xt})}function wn(Vt,Xt,er){var fr=Vt;return Xt&&(fr=en(Xt)),di(fr,er)}var on=["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"],Nn=[],Kn=M.forwardRef(function(Vt,Xt){var er,fr,Rt=Vt,Jt=Rt.prefixCls,ar=Jt===void 0?"rc-menu":Jt,Nr=Rt.rootClassName,yn=Rt.style,Bn=Rt.className,ci=Rt.tabIndex,ni=ci===void 0?0:ci,Ii=Rt.items,qn=Rt.children,zn=Rt.direction,xi=Rt.id,wi=Rt.mode,Ci=wi===void 0?"vertical":wi,Ai=Rt.inlineCollapsed,Bi=Rt.disabled,Xi=Rt.disabledOverflow,ri=Rt.subMenuOpenDelay,Ti=ri===void 0?.1:ri,Ha=Rt.subMenuCloseDelay,li=Ha===void 0?.1:Ha,pn=Rt.forceSubMenuRender,ln=Rt.defaultOpenKeys,Jn=Rt.openKeys,Hn=Rt.activeKey,hi=Rt.defaultActiveFirst,qi=Rt.selectable,Li=qi===void 0?!0:qi,Ua=Rt.multiple,Aa=Ua===void 0?!1:Ua,Bo=Rt.defaultSelectedKeys,Wn=Rt.selectedKeys,Fn=Rt.onSelect,Ni=Rt.onDeselect,Ji=Rt.inlineIndent,Fa=Ji===void 0?24:Ji,Is=Rt.motion,za=Rt.defaultMotions,fa=Rt.triggerSubMenuAction,Io=fa===void 0?"hover":fa,So=Rt.builtinPlacements,Po=Rt.itemIcon,Os=Rt.expandIcon,po=Rt.overflowedIndicator,bs=po===void 0?"...":po,Ps=Rt.overflowedIndicatorPopupClassName,$s=Rt.getPopupContainer,To=Rt.onClick,Uo=Rt.onOpenChange,ys=Rt.onKeyDown,el=Rt.openAnimation,vl=Rt.openTransitionName,ic=Rt._internalRenderMenuItem,ac=Rt._internalRenderSubMenuItem,Ql=(0,W.Z)(Rt,on),Zs=M.useMemo(function(){return wn(qn,Ii,Nn)},[qn,Ii]),Dc=M.useState(!1),Kl=(0,te.Z)(Dc,2),Hl=Kl[0],Vs=Kl[1],as=M.useRef(),ii=fe(xi),la=zn==="rtl",ta=(0,v.Z)(ln,{value:Jn,postState:function(Oo){return Oo||Nn}}),oa=(0,te.Z)(ta,2),Da=oa[0],so=oa[1],Ws=function(Oo){var Jo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function yc(){so(Oo),Uo==null||Uo(Oo)}Jo?(0,O.flushSync)(yc):yc()},ws=M.useState(Da),xs=(0,te.Z)(ws,2),ms=xs[0],eo=xs[1],Ra=M.useRef(!1),os=M.useMemo(function(){return(Ci==="inline"||Ci==="vertical")&&Ai?["vertical",Ai]:[Ci,!1]},[Ci,Ai]),ss=(0,te.Z)(os,2),Fs=ss[0],Go=ss[1],Fo=Fs==="inline",pA=M.useState(Fs),tu=(0,te.Z)(pA,2),Ac=tu[0],mA=tu[1],ll=M.useState(Go),gA=(0,te.Z)(ll,2),tl=gA[0],gs=gA[1];M.useEffect(function(){mA(Fs),gs(Go),Ra.current&&(Fo?so(ms):Ws(Nn))},[Fs,Go]);var qc=M.useState(0),Ts=(0,te.Z)(qc,2),OA=Ts[0],uc=Ts[1],jl=OA>=Zs.length-1||Ac!=="horizontal"||Xi;M.useEffect(function(){Fo&&eo(Da)},[Da]),M.useEffect(function(){return Ra.current=!0,function(){Ra.current=!1}},[]);var to=ye(),Gs=to.registerPath,vA=to.unregisterPath,Su=to.refreshOverflowKeys,ls=to.isSubPathKey,Ca=to.getKeyPath,ya=to.getKeys,ts=to.getSubPathKeys,go=M.useMemo(function(){return{registerPath:Gs,unregisterPath:vA}},[Gs,vA]),jo=M.useMemo(function(){return{isSubPathKey:ls}},[ls]);M.useEffect(function(){Su(jl?Nn:Zs.slice(OA+1).map(function(Xo){return Xo.key}))},[OA,jl]);var zo=(0,v.Z)(Hn||hi&&((er=Zs[0])===null||er===void 0?void 0:er.key),{value:Hn}),No=(0,te.Z)(zo,2),Cs=No[0],oc=No[1],Vc=be(function(Xo){oc(Xo)}),Xs=be(function(){oc(void 0)});(0,M.useImperativeHandle)(Xt,function(){return{list:as.current,focus:function(Oo){var Jo,yc=ya(),zl=f(yc,ii),qu=zl.elements,yA=zl.key2element,zA=zl.element2key,Md=I(as.current,qu),Ld=Cs!=null?Cs:Md[0]?zA.get(Md[0]):(Jo=Zs.find(function(Mo){return!Mo.props.disabled}))===null||Jo===void 0?void 0:Jo.key,$A=yA.get(Ld);if(Ld&&$A){var ZA;$A==null||(ZA=$A.focus)===null||ZA===void 0||ZA.call($A,Oo)}}}});var bA=(0,v.Z)(Bo||[],{value:Wn,postState:function(Oo){return Array.isArray(Oo)?Oo:Oo==null?Nn:[Oo]}}),xl=(0,te.Z)(bA,2),eA=xl[0],rl=xl[1],Id=function(Oo){if(Li){var Jo=Oo.key,yc=eA.includes(Jo),zl;Aa?yc?zl=eA.filter(function(yA){return yA!==Jo}):zl=[].concat((0,Ne.Z)(eA),[Jo]):zl=[Jo],rl(zl);var qu=(0,P.Z)((0,P.Z)({},Oo),{},{selectedKeys:zl});yc?Ni==null||Ni(qu):Fn==null||Fn(qu)}!Aa&&Da.length&&Ac!=="inline"&&Ws(Nn)},ru=be(function(Xo){To==null||To(Or(Xo)),Id(Xo)}),jA=be(function(Xo,Oo){var Jo=Da.filter(function(zl){return zl!==Xo});if(Oo)Jo.push(Xo);else if(Ac!=="inline"){var yc=ts(Xo);Jo=Jo.filter(function(zl){return!yc.has(zl)})}(0,$.Z)(Da,Jo,!0)||Ws(Jo,!0)}),cf=function(Oo,Jo){var yc=Jo!=null?Jo:!Da.includes(Oo);jA(Oo,yc)},Wc=x(Ac,Cs,la,ii,as,ya,Ca,oc,cf,ys);M.useEffect(function(){Vs(!0)},[]);var Yu=M.useMemo(function(){return{_internalRenderMenuItem:ic,_internalRenderSubMenuItem:ac}},[ic,ac]),Nc=Ac!=="horizontal"||Xi?Zs:Zs.map(function(Xo,Oo){return M.createElement(G,{key:Xo.key,overflowDisabled:Oo>OA},Xo)}),Fd=M.createElement(F.Z,(0,pe.Z)({id:xi,ref:as,prefixCls:"".concat(ar,"-overflow"),component:"ul",itemComponent:hn,className:g()(ar,"".concat(ar,"-root"),"".concat(ar,"-").concat(Ac),Bn,(fr={},(0,Ae.Z)(fr,"".concat(ar,"-inline-collapsed"),tl),(0,Ae.Z)(fr,"".concat(ar,"-rtl"),la),fr),Nr),dir:zn,style:yn,role:"menu",tabIndex:ni,data:Nc,renderRawItem:function(Oo){return Oo},renderRawRest:function(Oo){var Jo=Oo.length,yc=Jo?Zs.slice(-Jo):null;return M.createElement(Mt,{eventKey:Qe,title:bs,disabled:jl,internalPopupClose:Jo===0,popupClassName:Ps},yc)},maxCount:Ac!=="horizontal"||Xi?F.Z.INVALIDATE:F.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Oo){uc(Oo)},onKeyDown:Wc},Ql));return M.createElement(de.Provider,{value:Yu},M.createElement(T.Provider,{value:ii},M.createElement(G,{prefixCls:ar,rootClassName:Nr,mode:Ac,openKeys:Da,rtl:la,disabled:Bi,motion:Hl?Is:null,defaultMotions:Hl?za:null,activeKey:Cs,onActive:Vc,onInactive:Xs,selectedKeys:eA,inlineIndent:Fa,subMenuOpenDelay:Ti,subMenuCloseDelay:li,forceSubMenuRender:pn,builtinPlacements:So,triggerSubMenuAction:Io,getPopupContainer:$s,itemIcon:Po,expandIcon:Os,onItemClick:ru,onOpenChange:jA},M.createElement(Ue.Provider,{value:jo},Fd),M.createElement("div",{style:{display:"none"},"aria-hidden":!0},M.createElement(le.Provider,{value:go},Zs)))))}),fi=Kn,On=fi;On.Item=hn,On.SubMenu=Mt,On.ItemGroup=an,On.Divider=jr;var Xn=On},83836:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return Te}});var pe=C(54476),Ae=C(33885),P=C(42978),Ne=C(75931),te=C(59301),W=C(92310),S=C.n(W),g=C(29301),F=C(34280),v=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],$=void 0;function _(ve,De){var he=ve.prefixCls,Se=ve.invalidate,Xe=ve.item,et=ve.renderItem,je=ve.responsive,qe=ve.responsiveDisabled,Et=ve.registerSize,kt=ve.itemKey,Ot=ve.className,sr=ve.style,rr=ve.children,br=ve.display,lr=ve.order,V=ve.component,dt=V===void 0?"div":V,I=(0,Ne.Z)(ve,v),p=je&&!br;function f(ie){Et(kt,ie)}te.useEffect(function(){return function(){f(null)}},[]);var x=et&&Xe!==$?et(Xe,{index:lr}):rr,Y;Se||(Y={opacity:p?0:1,height:p?0:$,overflowY:p?"hidden":$,order:je?lr:$,pointerEvents:p?"none":$,position:p?"absolute":$});var Be={};p&&(Be["aria-hidden"]=!0);var H=te.createElement(dt,(0,pe.Z)({className:S()(!Se&&he,Ot),style:(0,Ae.Z)((0,Ae.Z)({},Y),sr)},Be,I,{ref:De}),x);return je&&(H=te.createElement(g.Z,{onResize:function(Qe){var ye=Qe.offsetWidth;f(ye)},disabled:qe},H)),H}var M=te.forwardRef(_);M.displayName="Item";var O=M,T=C(6089),L=C(4676),q=C(16089);function R(ve){if(typeof MessageChannel=="undefined")(0,q.Z)(ve);else{var De=new MessageChannel;De.port1.onmessage=function(){return ve()},De.port2.postMessage(void 0)}}function se(){var ve=te.useRef(null),De=function(Se){ve.current||(ve.current=[],R(function(){(0,L.unstable_batchedUpdates)(function(){ve.current.forEach(function(Xe){Xe()}),ve.current=null})})),ve.current.push(Se)};return De}function ne(ve,De){var he=te.useState(De),Se=(0,P.Z)(he,2),Xe=Se[0],et=Se[1],je=(0,T.Z)(function(qe){ve(function(){et(qe)})});return[Xe,je]}var J=te.createContext(null),G=["component"],K=["className"],le=["className"],me=function(De,he){var Se=te.useContext(J);if(!Se){var Xe=De.component,et=Xe===void 0?"div":Xe,je=(0,Ne.Z)(De,G);return te.createElement(et,(0,pe.Z)({},je,{ref:he}))}var qe=Se.className,Et=(0,Ne.Z)(Se,K),kt=De.className,Ot=(0,Ne.Z)(De,le);return te.createElement(J.Provider,{value:null},te.createElement(O,(0,pe.Z)({ref:he,className:S()(qe,kt)},Et,Ot)))},Oe=te.forwardRef(me);Oe.displayName="RawItem";var Ce=Oe,Ue=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],ee="responsive",de="invalidate";function D(ve){return"+ ".concat(ve.length," ...")}function Ye(ve,De){var he=ve.prefixCls,Se=he===void 0?"rc-overflow":he,Xe=ve.data,et=Xe===void 0?[]:Xe,je=ve.renderItem,qe=ve.renderRawItem,Et=ve.itemKey,kt=ve.itemWidth,Ot=kt===void 0?10:kt,sr=ve.ssr,rr=ve.style,br=ve.className,lr=ve.maxCount,V=ve.renderRest,dt=ve.renderRawRest,I=ve.prefix,p=ve.suffix,f=ve.component,x=f===void 0?"div":f,Y=ve.itemComponent,Be=ve.onVisibleChange,H=(0,Ne.Z)(ve,Ue),ie=sr==="full",Qe=se(),ye=ne(Qe,null),be=(0,P.Z)(ye,2),ze=be[0],gt=be[1],fe=ze||0,at=ne(Qe,new Map),rt=(0,P.Z)(at,2),Le=rt[0],Fe=rt[1],ct=ne(Qe,0),Tt=(0,P.Z)(ct,2),Pt=Tt[0],Yt=Tt[1],Fr=ne(Qe,0),Lr=(0,P.Z)(Fr,2),Or=Lr[0],kr=Lr[1],yr=ne(Qe,0),ur=(0,P.Z)(yr,2),Kr=ur[0],fn=ur[1],Un=ne(Qe,0),hn=(0,P.Z)(Un,2),Dn=hn[0],Qi=hn[1],Pr=(0,te.useState)(null),xn=(0,P.Z)(Pr,2),Ei=xn[0],di=xn[1],Zi=(0,te.useState)(null),_i=(0,P.Z)(Zi,2),ji=_i[0],qa=_i[1],Ki=te.useMemo(function(){return ji===null&&ie?Number.MAX_SAFE_INTEGER:ji||0},[ji,ze]),ti=(0,te.useState)(!1),gi=(0,P.Z)(ti,2),yi=gi[0],$e=gi[1],_e="".concat(Se,"-item"),Me=Math.max(Pt,Or),Ie=lr===ee,Nt=et.length&&Ie,Mt=lr===de,Sr=Nt||typeof lr=="number"&&et.length>lr,nr=(0,te.useMemo)(function(){var Jt=et;return Nt?ze===null&&ie?Jt=et:Jt=et.slice(0,Math.min(et.length,fe/Ot)):typeof lr=="number"&&(Jt=et.slice(0,lr)),Jt},[et,Ot,ze,lr,Nt]),Dr=(0,te.useMemo)(function(){return Nt?et.slice(Ki+1):et.slice(nr.length)},[et,nr,Nt,Ki]),Hr=(0,te.useCallback)(function(Jt,ar){var Nr;return typeof Et=="function"?Et(Jt):(Nr=Et&&(Jt==null?void 0:Jt[Et]))!==null&&Nr!==void 0?Nr:ar},[Et]),an=(0,te.useCallback)(je||function(Jt){return Jt},[je]);function jr(Jt,ar,Nr){ji===Jt&&(ar===void 0||ar===Ei)||(qa(Jt),Nr||($e(Jt<et.length-1),Be==null||Be(Jt)),ar!==void 0&&di(ar))}function Rr(Jt,ar){gt(ar.clientWidth)}function en(Jt,ar){Fe(function(Nr){var yn=new Map(Nr);return ar===null?yn.delete(Jt):yn.set(Jt,ar),yn})}function wn(Jt,ar){kr(ar),Yt(Or)}function on(Jt,ar){fn(ar)}function Nn(Jt,ar){Qi(ar)}function Kn(Jt){return Le.get(Hr(nr[Jt],Jt))}(0,F.Z)(function(){if(fe&&typeof Me=="number"&&nr){var Jt=Kr+Dn,ar=nr.length,Nr=ar-1;if(!ar){jr(0,null);return}for(var yn=0;yn<ar;yn+=1){var Bn=Kn(yn);if(ie&&(Bn=Bn||0),Bn===void 0){jr(yn-1,void 0,!0);break}if(Jt+=Bn,Nr===0&&Jt<=fe||yn===Nr-1&&Jt+Kn(Nr)<=fe){jr(Nr,null);break}else if(Jt+Me>fe){jr(yn-1,Jt-Bn-Dn+Or);break}}p&&Kn(0)+Dn>fe&&di(null)}},[fe,Le,Or,Kr,Dn,Hr,nr]);var fi=yi&&!!Dr.length,On={};Ei!==null&&Nt&&(On={position:"absolute",left:Ei,top:0});var Xn={prefixCls:_e,responsive:Nt,component:Y,invalidate:Mt},Vt=qe?function(Jt,ar){var Nr=Hr(Jt,ar);return te.createElement(J.Provider,{key:Nr,value:(0,Ae.Z)((0,Ae.Z)({},Xn),{},{order:ar,item:Jt,itemKey:Nr,registerSize:en,display:ar<=Ki})},qe(Jt,ar))}:function(Jt,ar){var Nr=Hr(Jt,ar);return te.createElement(O,(0,pe.Z)({},Xn,{order:ar,key:Nr,item:Jt,renderItem:an,itemKey:Nr,registerSize:en,display:ar<=Ki}))},Xt={order:fi?Ki:Number.MAX_SAFE_INTEGER,className:"".concat(_e,"-rest"),registerSize:wn,display:fi},er=V||D,fr=dt?te.createElement(J.Provider,{value:(0,Ae.Z)((0,Ae.Z)({},Xn),Xt)},dt(Dr)):te.createElement(O,(0,pe.Z)({},Xn,Xt),typeof er=="function"?er(Dr):er),Rt=te.createElement(x,(0,pe.Z)({className:S()(!Mt&&Se,br),style:rr,ref:De},H),I&&te.createElement(O,(0,pe.Z)({},Xn,{responsive:Ie,responsiveDisabled:!Nt,order:-1,className:"".concat(_e,"-prefix"),registerSize:on,display:!0}),I),nr.map(Vt),Sr?fr:null,p&&te.createElement(O,(0,pe.Z)({},Xn,{responsive:Ie,responsiveDisabled:!Nt,order:Ki,className:"".concat(_e,"-suffix"),registerSize:Nn,display:!0,style:On}),p));return Ie?te.createElement(g.Z,{onResize:Rr,disabled:!Nt},Rt):Rt}var ke=te.forwardRef(Ye);ke.displayName="Overflow",ke.Item=Ce,ke.RESPONSIVE=ee,ke.INVALIDATE=de;var xe=ke,Te=xe},17115:function(dn,Ut,C){"use strict";C.d(Ut,{ZP:function(){return S}});var pe=C(42978),Ae=C(59301),P=C(47273),Ne=0,te=(0,P.Z)();function W(){var g;return te?(g=Ne,Ne+=1):g="TEST_OR_SSR",g}function S(g){var F=Ae.useState(),v=(0,pe.Z)(F,2),$=v[0],_=v[1];return Ae.useEffect(function(){_("rc_select_".concat(W()))},[]),g||$}},77861:function(dn,Ut,C){"use strict";C.d(Ut,{Ac:function(){return ze},Xo:function(){return Or},Wx:function(){return yr},ZP:function(){return _e},lk:function(){return J}});var pe=C(54476),Ae=C(94480),P=C(20068),Ne=C(33885),te=C(42978),W=C(75931),S=C(76190),g=C(18929),F=C(48736),v=C(59301),$=C(92310),_=C.n($),M=C(34280),O=C(49658),T=C(10228),L=C(8654),q=function(Ie){var Nt=Ie.className,Mt=Ie.customizeIcon,Sr=Ie.customizeIconProps,nr=Ie.onMouseDown,Dr=Ie.onClick,Hr=Ie.children,an;return typeof Mt=="function"?an=Mt(Sr):an=Mt,v.createElement("span",{className:Nt,onMouseDown:function(Rr){Rr.preventDefault(),nr&&nr(Rr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Dr,"aria-hidden":!0},an!==void 0?an:v.createElement("span",{className:_()(Nt.split(/\s+/).map(function(jr){return"".concat(jr,"-icon")}))},Hr))},R=q;function se(Me,Ie,Nt,Mt,Sr){var nr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Dr=arguments.length>6?arguments[6]:void 0,Hr=arguments.length>7?arguments[7]:void 0,an=v.useMemo(function(){if((0,S.Z)(Mt)==="object")return Mt.clearIcon;if(Sr)return Sr},[Mt,Sr]),jr=v.useMemo(function(){return!!(!nr&&Mt&&(Nt.length||Dr)&&!(Hr==="combobox"&&Dr===""))},[Mt,nr,Nt.length,Dr,Hr]);return{allowClear:jr,clearIcon:v.createElement(R,{className:"".concat(Me,"-clear"),onMouseDown:Ie,customizeIcon:an},"\xD7")}}var ne=v.createContext(null);function J(){return v.useContext(ne)}function G(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ie=v.useState(!1),Nt=(0,te.Z)(Ie,2),Mt=Nt[0],Sr=Nt[1],nr=v.useRef(null),Dr=function(){window.clearTimeout(nr.current)};v.useEffect(function(){return Dr},[]);var Hr=function(jr,Rr){Dr(),nr.current=window.setTimeout(function(){Sr(jr),Rr&&Rr()},Me)};return[Mt,Hr,Dr]}function K(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ie=v.useRef(null),Nt=v.useRef(null);v.useEffect(function(){return function(){window.clearTimeout(Nt.current)}},[]);function Mt(Sr){(Sr||Ie.current===null)&&(Ie.current=Sr),window.clearTimeout(Nt.current),Nt.current=window.setTimeout(function(){Ie.current=null},Me)}return[function(){return Ie.current},Mt]}function le(Me,Ie,Nt,Mt){var Sr=v.useRef(null);Sr.current={open:Ie,triggerOpen:Nt,customizedTrigger:Mt},v.useEffect(function(){function nr(Dr){var Hr;if(!((Hr=Sr.current)!==null&&Hr!==void 0&&Hr.customizedTrigger)){var an=Dr.target;an.shadowRoot&&Dr.composed&&(an=Dr.composedPath()[0]||an),Sr.current.open&&Me().filter(function(jr){return jr}).every(function(jr){return!jr.contains(an)&&jr!==an})&&Sr.current.triggerOpen(!1)}}return window.addEventListener("mousedown",nr),function(){return window.removeEventListener("mousedown",nr)}},[])}var me=C(26112),Oe=C(83836),Ce=function(Ie,Nt){var Mt,Sr,nr=Ie.prefixCls,Dr=Ie.id,Hr=Ie.inputElement,an=Ie.disabled,jr=Ie.tabIndex,Rr=Ie.autoFocus,en=Ie.autoComplete,wn=Ie.editable,on=Ie.activeDescendantId,Nn=Ie.value,Kn=Ie.maxLength,fi=Ie.onKeyDown,On=Ie.onMouseDown,Xn=Ie.onChange,Vt=Ie.onPaste,Xt=Ie.onCompositionStart,er=Ie.onCompositionEnd,fr=Ie.open,Rt=Ie.attrs,Jt=Hr||v.createElement("input",null),ar=Jt,Nr=ar.ref,yn=ar.props,Bn=yn.onKeyDown,ci=yn.onChange,ni=yn.onMouseDown,Ii=yn.onCompositionStart,qn=yn.onCompositionEnd,zn=yn.style;return(0,F.Kp)(!("maxLength"in Jt.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Jt=v.cloneElement(Jt,(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({type:"search"},yn),{},{id:Dr,ref:(0,L.sQ)(Nt,Nr),disabled:an,tabIndex:jr,autoComplete:en||"off",autoFocus:Rr,className:_()("".concat(nr,"-selection-search-input"),(Mt=Jt)===null||Mt===void 0||(Sr=Mt.props)===null||Sr===void 0?void 0:Sr.className),role:"combobox","aria-label":"Search","aria-expanded":fr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Dr,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Dr,"_list"),"aria-activedescendant":fr?on:void 0},Rt),{},{value:wn?Nn:"",maxLength:Kn,readOnly:!wn,unselectable:wn?null:"on",style:(0,Ne.Z)((0,Ne.Z)({},zn),{},{opacity:wn?null:0}),onKeyDown:function(wi){fi(wi),Bn&&Bn(wi)},onMouseDown:function(wi){On(wi),ni&&ni(wi)},onChange:function(wi){Xn(wi),ci&&ci(wi)},onCompositionStart:function(wi){Xt(wi),Ii&&Ii(wi)},onCompositionEnd:function(wi){er(wi),qn&&qn(wi)},onPaste:Vt})),Jt},Ue=v.forwardRef(Ce);Ue.displayName="Input";var ee=Ue;function de(Me){return Array.isArray(Me)?Me:Me!==void 0?[Me]:[]}var D=typeof window!="undefined"&&window.document&&window.document.documentElement,Ye=D;function ke(Me){return Me!=null}function xe(Me){return!Me&&Me!==0}function Te(Me){return["string","number"].includes((0,S.Z)(Me))}function ve(Me){var Ie=void 0;return Me&&(Te(Me.title)?Ie=Me.title.toString():Te(Me.label)&&(Ie=Me.label.toString())),Ie}function De(Me,Ie){Ye?v.useLayoutEffect(Me,Ie):v.useEffect(Me,Ie)}function he(Me){var Ie;return(Ie=Me.key)!==null&&Ie!==void 0?Ie:Me.value}var Se=function(Ie){Ie.preventDefault(),Ie.stopPropagation()},Xe=function(Ie){var Nt=Ie.id,Mt=Ie.prefixCls,Sr=Ie.values,nr=Ie.open,Dr=Ie.searchValue,Hr=Ie.autoClearSearchValue,an=Ie.inputRef,jr=Ie.placeholder,Rr=Ie.disabled,en=Ie.mode,wn=Ie.showSearch,on=Ie.autoFocus,Nn=Ie.autoComplete,Kn=Ie.activeDescendantId,fi=Ie.tabIndex,On=Ie.removeIcon,Xn=Ie.maxTagCount,Vt=Ie.maxTagTextLength,Xt=Ie.maxTagPlaceholder,er=Xt===void 0?function(qi){return"+ ".concat(qi.length," ...")}:Xt,fr=Ie.tagRender,Rt=Ie.onToggleOpen,Jt=Ie.onRemove,ar=Ie.onInputChange,Nr=Ie.onInputPaste,yn=Ie.onInputKeyDown,Bn=Ie.onInputMouseDown,ci=Ie.onInputCompositionStart,ni=Ie.onInputCompositionEnd,Ii=v.useRef(null),qn=(0,v.useState)(0),zn=(0,te.Z)(qn,2),xi=zn[0],wi=zn[1],Ci=(0,v.useState)(!1),Ai=(0,te.Z)(Ci,2),Bi=Ai[0],Xi=Ai[1],ri="".concat(Mt,"-selection"),Ti=nr||en==="multiple"&&Hr===!1||en==="tags"?Dr:"",Ha=en==="tags"||en==="multiple"&&Hr===!1||wn&&(nr||Bi);De(function(){wi(Ii.current.scrollWidth)},[Ti]);function li(qi,Li,Ua,Aa,Bo){return v.createElement("span",{className:_()("".concat(ri,"-item"),(0,P.Z)({},"".concat(ri,"-item-disabled"),Ua)),title:ve(qi)},v.createElement("span",{className:"".concat(ri,"-item-content")},Li),Aa&&v.createElement(R,{className:"".concat(ri,"-item-remove"),onMouseDown:Se,onClick:Bo,customizeIcon:On},"\xD7"))}function pn(qi,Li,Ua,Aa,Bo){var Wn=function(Ni){Se(Ni),Rt(!nr)};return v.createElement("span",{onMouseDown:Wn},fr({label:Li,value:qi,disabled:Ua,closable:Aa,onClose:Bo}))}function ln(qi){var Li=qi.disabled,Ua=qi.label,Aa=qi.value,Bo=!Rr&&!Li,Wn=Ua;if(typeof Vt=="number"&&(typeof Ua=="string"||typeof Ua=="number")){var Fn=String(Wn);Fn.length>Vt&&(Wn="".concat(Fn.slice(0,Vt),"..."))}var Ni=function(Fa){Fa&&Fa.stopPropagation(),Jt(qi)};return typeof fr=="function"?pn(Aa,Wn,Li,Bo,Ni):li(qi,Wn,Li,Bo,Ni)}function Jn(qi){var Li=typeof er=="function"?er(qi):er;return li({title:Li},Li,!1)}var Hn=v.createElement("div",{className:"".concat(ri,"-search"),style:{width:xi},onFocus:function(){Xi(!0)},onBlur:function(){Xi(!1)}},v.createElement(ee,{ref:an,open:nr,prefixCls:Mt,id:Nt,inputElement:null,disabled:Rr,autoFocus:on,autoComplete:Nn,editable:Ha,activeDescendantId:Kn,value:Ti,onKeyDown:yn,onMouseDown:Bn,onChange:ar,onPaste:Nr,onCompositionStart:ci,onCompositionEnd:ni,tabIndex:fi,attrs:(0,me.Z)(Ie,!0)}),v.createElement("span",{ref:Ii,className:"".concat(ri,"-search-mirror"),"aria-hidden":!0},Ti,"\xA0")),hi=v.createElement(Oe.Z,{prefixCls:"".concat(ri,"-overflow"),data:Sr,renderItem:ln,renderRest:Jn,suffix:Hn,itemKey:he,maxCount:Xn});return v.createElement(v.Fragment,null,hi,!Sr.length&&!Ti&&v.createElement("span",{className:"".concat(ri,"-placeholder")},jr))},et=Xe,je=function(Ie){var Nt=Ie.inputElement,Mt=Ie.prefixCls,Sr=Ie.id,nr=Ie.inputRef,Dr=Ie.disabled,Hr=Ie.autoFocus,an=Ie.autoComplete,jr=Ie.activeDescendantId,Rr=Ie.mode,en=Ie.open,wn=Ie.values,on=Ie.placeholder,Nn=Ie.tabIndex,Kn=Ie.showSearch,fi=Ie.searchValue,On=Ie.activeValue,Xn=Ie.maxLength,Vt=Ie.onInputKeyDown,Xt=Ie.onInputMouseDown,er=Ie.onInputChange,fr=Ie.onInputPaste,Rt=Ie.onInputCompositionStart,Jt=Ie.onInputCompositionEnd,ar=Ie.title,Nr=v.useState(!1),yn=(0,te.Z)(Nr,2),Bn=yn[0],ci=yn[1],ni=Rr==="combobox",Ii=ni||Kn,qn=wn[0],zn=fi||"";ni&&On&&!Bn&&(zn=On),v.useEffect(function(){ni&&ci(!1)},[ni,On]);var xi=Rr!=="combobox"&&!en&&!Kn?!1:!!zn,wi=ar===void 0?ve(qn):ar,Ci=function(){if(qn)return null;var Bi=xi?{visibility:"hidden"}:void 0;return v.createElement("span",{className:"".concat(Mt,"-selection-placeholder"),style:Bi},on)};return v.createElement(v.Fragment,null,v.createElement("span",{className:"".concat(Mt,"-selection-search")},v.createElement(ee,{ref:nr,prefixCls:Mt,id:Sr,open:en,inputElement:Nt,disabled:Dr,autoFocus:Hr,autoComplete:an,editable:Ii,activeDescendantId:jr,value:zn,onKeyDown:Vt,onMouseDown:Xt,onChange:function(Bi){ci(!0),er(Bi)},onPaste:fr,onCompositionStart:Rt,onCompositionEnd:Jt,tabIndex:Nn,attrs:(0,me.Z)(Ie,!0),maxLength:ni?Xn:void 0})),!ni&&qn?v.createElement("span",{className:"".concat(Mt,"-selection-item"),title:wi,style:xi?{visibility:"hidden"}:void 0},qn.label):null,Ci())},qe=je;function Et(Me){return![T.Z.ESC,T.Z.SHIFT,T.Z.BACKSPACE,T.Z.TAB,T.Z.WIN_KEY,T.Z.ALT,T.Z.META,T.Z.WIN_KEY_RIGHT,T.Z.CTRL,T.Z.SEMICOLON,T.Z.EQUALS,T.Z.CAPS_LOCK,T.Z.CONTEXT_MENU,T.Z.F1,T.Z.F2,T.Z.F3,T.Z.F4,T.Z.F5,T.Z.F6,T.Z.F7,T.Z.F8,T.Z.F9,T.Z.F10,T.Z.F11,T.Z.F12].includes(Me)}var kt=function(Ie,Nt){var Mt=(0,v.useRef)(null),Sr=(0,v.useRef)(!1),nr=Ie.prefixCls,Dr=Ie.open,Hr=Ie.mode,an=Ie.showSearch,jr=Ie.tokenWithEnter,Rr=Ie.autoClearSearchValue,en=Ie.onSearch,wn=Ie.onSearchSubmit,on=Ie.onToggleOpen,Nn=Ie.onInputKeyDown,Kn=Ie.domRef;v.useImperativeHandle(Nt,function(){return{focus:function(){Mt.current.focus()},blur:function(){Mt.current.blur()}}});var fi=K(0),On=(0,te.Z)(fi,2),Xn=On[0],Vt=On[1],Xt=function(zn){var xi=zn.which;(xi===T.Z.UP||xi===T.Z.DOWN)&&zn.preventDefault(),Nn&&Nn(zn),xi===T.Z.ENTER&&Hr==="tags"&&!Sr.current&&!Dr&&(wn==null||wn(zn.target.value)),Et(xi)&&on(!0)},er=function(){Vt(!0)},fr=(0,v.useRef)(null),Rt=function(zn){en(zn,!0,Sr.current)!==!1&&on(!0)},Jt=function(){Sr.current=!0},ar=function(zn){Sr.current=!1,Hr!=="combobox"&&Rt(zn.target.value)},Nr=function(zn){var xi=zn.target.value;if(jr&&fr.current&&/[\r\n]/.test(fr.current)){var wi=fr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");xi=xi.replace(wi,fr.current)}fr.current=null,Rt(xi)},yn=function(zn){var xi=zn.clipboardData,wi=xi.getData("text");fr.current=wi},Bn=function(zn){var xi=zn.target;if(xi!==Mt.current){var wi=document.body.style.msTouchAction!==void 0;wi?setTimeout(function(){Mt.current.focus()}):Mt.current.focus()}},ci=function(zn){var xi=Xn();zn.target!==Mt.current&&!xi&&Hr!=="combobox"&&zn.preventDefault(),(Hr!=="combobox"&&(!an||!xi)||!Dr)&&(Dr&&Rr!==!1&&en("",!0,!1),on())},ni={inputRef:Mt,onInputKeyDown:Xt,onInputMouseDown:er,onInputChange:Nr,onInputPaste:yn,onInputCompositionStart:Jt,onInputCompositionEnd:ar},Ii=Hr==="multiple"||Hr==="tags"?v.createElement(et,(0,pe.Z)({},Ie,ni)):v.createElement(qe,(0,pe.Z)({},Ie,ni));return v.createElement("div",{ref:Kn,className:"".concat(nr,"-selector"),onClick:Bn,onMouseDown:ci},Ii)},Ot=v.forwardRef(kt);Ot.displayName="Selector";var sr=Ot,rr=C(35593),br=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],lr=function(Ie){var Nt=Ie===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Nt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Nt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Nt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Nt,adjustY:1},htmlRegion:"scroll"}}},V=function(Ie,Nt){var Mt=Ie.prefixCls,Sr=Ie.disabled,nr=Ie.visible,Dr=Ie.children,Hr=Ie.popupElement,an=Ie.animation,jr=Ie.transitionName,Rr=Ie.dropdownStyle,en=Ie.dropdownClassName,wn=Ie.direction,on=wn===void 0?"ltr":wn,Nn=Ie.placement,Kn=Ie.builtinPlacements,fi=Ie.dropdownMatchSelectWidth,On=Ie.dropdownRender,Xn=Ie.dropdownAlign,Vt=Ie.getPopupContainer,Xt=Ie.empty,er=Ie.getTriggerDOMNode,fr=Ie.onPopupVisibleChange,Rt=Ie.onPopupMouseEnter,Jt=(0,W.Z)(Ie,br),ar="".concat(Mt,"-dropdown"),Nr=Hr;On&&(Nr=On(Hr));var yn=v.useMemo(function(){return Kn||lr(fi)},[Kn,fi]),Bn=an?"".concat(ar,"-").concat(an):jr,ci=typeof fi=="number",ni=v.useMemo(function(){return ci?null:fi===!1?"minWidth":"width"},[fi,ci]),Ii=Rr;ci&&(Ii=(0,Ne.Z)((0,Ne.Z)({},Ii),{},{width:fi}));var qn=v.useRef(null);return v.useImperativeHandle(Nt,function(){return{getPopupElement:function(){return qn.current}}}),v.createElement(rr.Z,(0,pe.Z)({},Jt,{showAction:fr?["click"]:[],hideAction:fr?["click"]:[],popupPlacement:Nn||(on==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:yn,prefixCls:ar,popupTransitionName:Bn,popup:v.createElement("div",{ref:qn,onMouseEnter:Rt},Nr),stretch:ni,popupAlign:Xn,popupVisible:nr,getPopupContainer:Vt,popupClassName:_()(en,(0,P.Z)({},"".concat(ar,"-empty"),Xt)),popupStyle:Ii,getTriggerDOMNode:er,onPopupVisibleChange:fr}),Dr)},dt=v.forwardRef(V);dt.displayName="SelectTrigger";var I=dt,p=C(66712);function f(Me,Ie){var Nt=Me.key,Mt;return"value"in Me&&(Mt=Me.value),Nt!=null?Nt:Mt!==void 0?Mt:"rc-index-key-".concat(Ie)}function x(Me,Ie){var Nt=Me||{},Mt=Nt.label,Sr=Nt.value,nr=Nt.options,Dr=Nt.groupLabel,Hr=Mt||(Ie?"children":"label");return{label:Hr,value:Sr||"value",options:nr||"options",groupLabel:Dr||Hr}}function Y(Me){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Nt=Ie.fieldNames,Mt=Ie.childrenAsData,Sr=[],nr=x(Nt,!1),Dr=nr.label,Hr=nr.value,an=nr.options,jr=nr.groupLabel;function Rr(en,wn){en.forEach(function(on){if(wn||!(an in on)){var Nn=on[Hr];Sr.push({key:f(on,Sr.length),groupOption:wn,data:on,label:on[Dr],value:Nn})}else{var Kn=on[jr];Kn===void 0&&Mt&&(Kn=on.label),Sr.push({key:f(on,Sr.length),group:!0,data:on,label:Kn}),Rr(on[an],!0)}})}return Rr(Me,!1),Sr}function Be(Me){var Ie=(0,Ne.Z)({},Me);return"props"in Ie||Object.defineProperty(Ie,"props",{get:function(){return(0,F.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ie}}),Ie}function H(Me,Ie){if(!Ie||!Ie.length)return null;var Nt=!1;function Mt(nr,Dr){var Hr=(0,p.Z)(Dr),an=Hr[0],jr=Hr.slice(1);if(!an)return[nr];var Rr=nr.split(an);return Nt=Nt||Rr.length>1,Rr.reduce(function(en,wn){return[].concat((0,Ae.Z)(en),(0,Ae.Z)(Mt(wn,jr)))},[]).filter(function(en){return en})}var Sr=Mt(Me,Ie);return Nt?Sr:null}var ie=["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"],Qe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function ye(Me){return Me==="tags"||Me==="multiple"}var be=v.forwardRef(function(Me,Ie){var Nt,Mt,Sr=Me.id,nr=Me.prefixCls,Dr=Me.className,Hr=Me.showSearch,an=Me.tagRender,jr=Me.direction,Rr=Me.omitDomProps,en=Me.displayValues,wn=Me.onDisplayValuesChange,on=Me.emptyOptions,Nn=Me.notFoundContent,Kn=Nn===void 0?"Not Found":Nn,fi=Me.onClear,On=Me.mode,Xn=Me.disabled,Vt=Me.loading,Xt=Me.getInputElement,er=Me.getRawInputElement,fr=Me.open,Rt=Me.defaultOpen,Jt=Me.onDropdownVisibleChange,ar=Me.activeValue,Nr=Me.onActiveValueChange,yn=Me.activeDescendantId,Bn=Me.searchValue,ci=Me.autoClearSearchValue,ni=Me.onSearch,Ii=Me.onSearchSplit,qn=Me.tokenSeparators,zn=Me.allowClear,xi=Me.suffixIcon,wi=Me.clearIcon,Ci=Me.OptionList,Ai=Me.animation,Bi=Me.transitionName,Xi=Me.dropdownStyle,ri=Me.dropdownClassName,Ti=Me.dropdownMatchSelectWidth,Ha=Me.dropdownRender,li=Me.dropdownAlign,pn=Me.placement,ln=Me.builtinPlacements,Jn=Me.getPopupContainer,Hn=Me.showAction,hi=Hn===void 0?[]:Hn,qi=Me.onFocus,Li=Me.onBlur,Ua=Me.onKeyUp,Aa=Me.onKeyDown,Bo=Me.onMouseDown,Wn=(0,W.Z)(Me,ie),Fn=ye(On),Ni=(Hr!==void 0?Hr:Fn)||On==="combobox",Ji=(0,Ne.Z)({},Wn);Qe.forEach(function(Ca){delete Ji[Ca]}),Rr==null||Rr.forEach(function(Ca){delete Ji[Ca]});var Fa=v.useState(!1),Is=(0,te.Z)(Fa,2),za=Is[0],fa=Is[1];v.useEffect(function(){fa((0,O.Z)())},[]);var Io=v.useRef(null),So=v.useRef(null),Po=v.useRef(null),Os=v.useRef(null),po=v.useRef(null),bs=G(),Ps=(0,te.Z)(bs,3),$s=Ps[0],To=Ps[1],Uo=Ps[2];v.useImperativeHandle(Ie,function(){var Ca,ya;return{focus:(Ca=Os.current)===null||Ca===void 0?void 0:Ca.focus,blur:(ya=Os.current)===null||ya===void 0?void 0:ya.blur,scrollTo:function(go){var jo;return(jo=po.current)===null||jo===void 0?void 0:jo.scrollTo(go)}}});var ys=v.useMemo(function(){var Ca;if(On!=="combobox")return Bn;var ya=(Ca=en[0])===null||Ca===void 0?void 0:Ca.value;return typeof ya=="string"||typeof ya=="number"?String(ya):""},[Bn,On,en]),el=On==="combobox"&&typeof Xt=="function"&&Xt()||null,vl=typeof er=="function"&&er(),ic=(0,L.x1)(So,vl==null||(Nt=vl.props)===null||Nt===void 0?void 0:Nt.ref),ac=v.useState(!1),Ql=(0,te.Z)(ac,2),Zs=Ql[0],Dc=Ql[1];(0,M.Z)(function(){Dc(!0)},[]);var Kl=(0,g.Z)(!1,{defaultValue:Rt,value:fr}),Hl=(0,te.Z)(Kl,2),Vs=Hl[0],as=Hl[1],ii=Zs?Vs:!1,la=!Kn&&on;(Xn||la&&ii&&On==="combobox")&&(ii=!1);var ta=la?!1:ii,oa=v.useCallback(function(Ca){var ya=Ca!==void 0?Ca:!ii;Xn||(as(ya),ii!==ya&&(Jt==null||Jt(ya)))},[Xn,ii,as,Jt]),Da=v.useMemo(function(){return(qn||[]).some(function(Ca){return[`
`,`\r
`].includes(Ca)})},[qn]),so=function(ya,ts,go){var jo=!0,zo=ya;Nr==null||Nr(null);var No=go?null:H(ya,qn);return On!=="combobox"&&No&&(zo="",Ii==null||Ii(No),oa(!1),jo=!1),ni&&ys!==zo&&ni(zo,{source:ts?"typing":"effect"}),jo},Ws=function(ya){!ya||!ya.trim()||ni(ya,{source:"submit"})};v.useEffect(function(){!ii&&!Fn&&On!=="combobox"&&so("",!1,!1)},[ii]),v.useEffect(function(){Vs&&Xn&&as(!1),Xn&&To(!1)},[Xn]);var ws=K(),xs=(0,te.Z)(ws,2),ms=xs[0],eo=xs[1],Ra=function(ya){var ts=ms(),go=ya.which;if(go===T.Z.ENTER&&(On!=="combobox"&&ya.preventDefault(),ii||oa(!0)),eo(!!ys),go===T.Z.BACKSPACE&&!ts&&Fn&&!ys&&en.length){for(var jo=(0,Ae.Z)(en),zo=null,No=jo.length-1;No>=0;No-=1){var Cs=jo[No];if(!Cs.disabled){jo.splice(No,1),zo=Cs;break}}zo&&wn(jo,{type:"remove",values:[zo]})}for(var oc=arguments.length,Vc=new Array(oc>1?oc-1:0),Xs=1;Xs<oc;Xs++)Vc[Xs-1]=arguments[Xs];if(ii&&po.current){var bA;(bA=po.current).onKeyDown.apply(bA,[ya].concat(Vc))}Aa==null||Aa.apply(void 0,[ya].concat(Vc))},os=function(ya){for(var ts=arguments.length,go=new Array(ts>1?ts-1:0),jo=1;jo<ts;jo++)go[jo-1]=arguments[jo];if(ii&&po.current){var zo;(zo=po.current).onKeyUp.apply(zo,[ya].concat(go))}Ua==null||Ua.apply(void 0,[ya].concat(go))},ss=function(ya){var ts=en.filter(function(go){return go!==ya});wn(ts,{type:"remove",values:[ya]})},Fs=v.useRef(!1),Go=function(){To(!0),Xn||(qi&&!Fs.current&&qi.apply(void 0,arguments),hi.includes("focus")&&oa(!0)),Fs.current=!0},Fo=function(){To(!1,function(){Fs.current=!1,oa(!1)}),!Xn&&(ys&&(On==="tags"?ni(ys,{source:"submit"}):On==="multiple"&&ni("",{source:"blur"})),Li&&Li.apply(void 0,arguments))},pA=[];v.useEffect(function(){return function(){pA.forEach(function(Ca){return clearTimeout(Ca)}),pA.splice(0,pA.length)}},[]);var tu=function(ya){var ts,go=ya.target,jo=(ts=Po.current)===null||ts===void 0?void 0:ts.getPopupElement();if(jo&&jo.contains(go)){var zo=setTimeout(function(){var Vc=pA.indexOf(zo);if(Vc!==-1&&pA.splice(Vc,1),Uo(),!za&&!jo.contains(document.activeElement)){var Xs;(Xs=Os.current)===null||Xs===void 0||Xs.focus()}});pA.push(zo)}for(var No=arguments.length,Cs=new Array(No>1?No-1:0),oc=1;oc<No;oc++)Cs[oc-1]=arguments[oc];Bo==null||Bo.apply(void 0,[ya].concat(Cs))},Ac=v.useState({}),mA=(0,te.Z)(Ac,2),ll=mA[1];function gA(){ll({})}var tl;vl&&(tl=function(ya){oa(ya)}),le(function(){var Ca;return[Io.current,(Ca=Po.current)===null||Ca===void 0?void 0:Ca.getPopupElement()]},ta,oa,!!vl);var gs=v.useMemo(function(){return(0,Ne.Z)((0,Ne.Z)({},Me),{},{notFoundContent:Kn,open:ii,triggerOpen:ta,id:Sr,showSearch:Ni,multiple:Fn,toggleOpen:oa})},[Me,Kn,ta,ii,Sr,Ni,Fn,oa]),qc=!!xi||Vt,Ts;qc&&(Ts=v.createElement(R,{className:_()("".concat(nr,"-arrow"),(0,P.Z)({},"".concat(nr,"-arrow-loading"),Vt)),customizeIcon:xi,customizeIconProps:{loading:Vt,searchValue:ys,open:ii,focused:$s,showSearch:Ni}}));var OA=function(){var ya;fi==null||fi(),(ya=Os.current)===null||ya===void 0||ya.focus(),wn([],{type:"clear",values:en}),so("",!1,!1)},uc=se(nr,OA,en,zn,wi,Xn,ys,On),jl=uc.allowClear,to=uc.clearIcon,Gs=v.createElement(Ci,{ref:po}),vA=_()(nr,Dr,(Mt={},(0,P.Z)(Mt,"".concat(nr,"-focused"),$s),(0,P.Z)(Mt,"".concat(nr,"-multiple"),Fn),(0,P.Z)(Mt,"".concat(nr,"-single"),!Fn),(0,P.Z)(Mt,"".concat(nr,"-allow-clear"),zn),(0,P.Z)(Mt,"".concat(nr,"-show-arrow"),qc),(0,P.Z)(Mt,"".concat(nr,"-disabled"),Xn),(0,P.Z)(Mt,"".concat(nr,"-loading"),Vt),(0,P.Z)(Mt,"".concat(nr,"-open"),ii),(0,P.Z)(Mt,"".concat(nr,"-customize-input"),el),(0,P.Z)(Mt,"".concat(nr,"-show-search"),Ni),Mt)),Su=v.createElement(I,{ref:Po,disabled:Xn,prefixCls:nr,visible:ta,popupElement:Gs,animation:Ai,transitionName:Bi,dropdownStyle:Xi,dropdownClassName:ri,direction:jr,dropdownMatchSelectWidth:Ti,dropdownRender:Ha,dropdownAlign:li,placement:pn,builtinPlacements:ln,getPopupContainer:Jn,empty:on,getTriggerDOMNode:function(){return So.current},onPopupVisibleChange:tl,onPopupMouseEnter:gA},vl?v.cloneElement(vl,{ref:ic}):v.createElement(sr,(0,pe.Z)({},Me,{domRef:So,prefixCls:nr,inputElement:el,ref:Os,id:Sr,showSearch:Ni,autoClearSearchValue:ci,mode:On,activeDescendantId:yn,tagRender:an,values:en,open:ii,onToggleOpen:oa,activeValue:ar,searchValue:ys,onSearch:so,onSearchSubmit:Ws,onRemove:ss,tokenWithEnter:Da}))),ls;return vl?ls=Su:ls=v.createElement("div",(0,pe.Z)({className:vA},Ji,{ref:Io,onMouseDown:tu,onKeyDown:Ra,onKeyUp:os,onFocus:Go,onBlur:Fo}),$s&&!ii&&v.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(en.map(function(Ca){var ya=Ca.label,ts=Ca.value;return["number","string"].includes((0,S.Z)(ya))?ya:ts}).join(", "))),Su,Ts,jl&&to),v.createElement(ne.Provider,{value:gs},ls)}),ze=be,gt=function(Me,Ie){var Nt=v.useRef({values:new Map,options:new Map}),Mt=v.useMemo(function(){var nr=Nt.current,Dr=nr.values,Hr=nr.options,an=Me.map(function(en){if(en.label===void 0){var wn;return(0,Ne.Z)((0,Ne.Z)({},en),{},{label:(wn=Dr.get(en.value))===null||wn===void 0?void 0:wn.label})}return en}),jr=new Map,Rr=new Map;return an.forEach(function(en){jr.set(en.value,en),Rr.set(en.value,Ie.get(en.value)||Hr.get(en.value))}),Nt.current.values=jr,Nt.current.options=Rr,an},[Me,Ie]),Sr=v.useCallback(function(nr){return Ie.get(nr)||Nt.current.options.get(nr)},[Ie]);return[Mt,Sr]};function fe(Me,Ie){return de(Me).join("").toUpperCase().includes(Ie)}var at=function(Me,Ie,Nt,Mt,Sr){return v.useMemo(function(){if(!Nt||Mt===!1)return Me;var nr=Ie.options,Dr=Ie.label,Hr=Ie.value,an=[],jr=typeof Mt=="function",Rr=Nt.toUpperCase(),en=jr?Mt:function(on,Nn){return Sr?fe(Nn[Sr],Rr):Nn[nr]?fe(Nn[Dr!=="children"?Dr:"label"],Rr):fe(Nn[Hr],Rr)},wn=jr?function(on){return Be(on)}:function(on){return on};return Me.forEach(function(on){if(on[nr]){var Nn=en(Nt,wn(on));if(Nn)an.push(on);else{var Kn=on[nr].filter(function(fi){return en(Nt,wn(fi))});Kn.length&&an.push((0,Ne.Z)((0,Ne.Z)({},on),{},(0,P.Z)({},nr,Kn)))}return}en(Nt,wn(on))&&an.push(on)}),an},[Me,Mt,Sr,Nt,Ie])},rt=C(17115),Le=C(11592),Fe=["children","value"],ct=["children"];function Tt(Me){var Ie=Me,Nt=Ie.key,Mt=Ie.props,Sr=Mt.children,nr=Mt.value,Dr=(0,W.Z)(Mt,Fe);return(0,Ne.Z)({key:Nt,value:nr!==void 0?nr:Nt,children:Sr},Dr)}function Pt(Me){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Le.Z)(Me).map(function(Nt,Mt){if(!v.isValidElement(Nt)||!Nt.type)return null;var Sr=Nt,nr=Sr.type.isSelectOptGroup,Dr=Sr.key,Hr=Sr.props,an=Hr.children,jr=(0,W.Z)(Hr,ct);return Ie||!nr?Tt(Nt):(0,Ne.Z)((0,Ne.Z)({key:"__RC_SELECT_GRP__".concat(Dr===null?Mt:Dr,"__"),label:Dr},jr),{},{options:Pt(an)})}).filter(function(Nt){return Nt})}function Yt(Me,Ie,Nt,Mt,Sr){return v.useMemo(function(){var nr=Me,Dr=!Me;Dr&&(nr=Pt(Ie));var Hr=new Map,an=new Map,jr=function(wn,on,Nn){Nn&&typeof Nn=="string"&&wn.set(on[Nn],on)};function Rr(en){for(var wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,on=0;on<en.length;on+=1){var Nn=en[on];!Nn[Nt.options]||wn?(Hr.set(Nn[Nt.value],Nn),jr(an,Nn,Nt.label),jr(an,Nn,Mt),jr(an,Nn,Sr)):Rr(Nn[Nt.options],!0)}}return Rr(nr),{options:nr,valueOptions:Hr,labelOptions:an}},[Me,Ie,Nt,Mt,Sr])}function Fr(Me){var Ie=v.useRef();Ie.current=Me;var Nt=v.useCallback(function(){return Ie.current.apply(Ie,arguments)},[]);return Nt}var Lr=function(){return null};Lr.isSelectOptGroup=!0;var Or=Lr,kr=function(){return null};kr.isSelectOption=!0;var yr=kr,ur=C(80547),Kr=C(2738),fn=C(48911),Un=v.createContext(null),hn=Un;function Dn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Qi=["disabled","title","children","style","className"];function Pr(Me){return typeof Me=="string"||typeof Me=="number"}var xn=function(Ie,Nt){var Mt=J(),Sr=Mt.prefixCls,nr=Mt.id,Dr=Mt.open,Hr=Mt.multiple,an=Mt.mode,jr=Mt.searchValue,Rr=Mt.toggleOpen,en=Mt.notFoundContent,wn=Mt.onPopupScroll,on=v.useContext(hn),Nn=on.flattenOptions,Kn=on.onActiveValue,fi=on.defaultActiveFirstOption,On=on.onSelect,Xn=on.menuItemSelectedIcon,Vt=on.rawValues,Xt=on.fieldNames,er=on.virtual,fr=on.direction,Rt=on.listHeight,Jt=on.listItemHeight,ar="".concat(Sr,"-item"),Nr=(0,ur.Z)(function(){return Nn},[Dr,Nn],function(li,pn){return pn[0]&&li[1]!==pn[1]}),yn=v.useRef(null),Bn=function(pn){pn.preventDefault()},ci=function(pn){yn.current&&yn.current.scrollTo(typeof pn=="number"?{index:pn}:pn)},ni=function(pn){for(var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Jn=Nr.length,Hn=0;Hn<Jn;Hn+=1){var hi=(pn+Hn*ln+Jn)%Jn,qi=Nr[hi],Li=qi.group,Ua=qi.data;if(!Li&&!Ua.disabled)return hi}return-1},Ii=v.useState(function(){return ni(0)}),qn=(0,te.Z)(Ii,2),zn=qn[0],xi=qn[1],wi=function(pn){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;xi(pn);var Jn={source:ln?"keyboard":"mouse"},Hn=Nr[pn];if(!Hn){Kn(null,-1,Jn);return}Kn(Hn.value,pn,Jn)};(0,v.useEffect)(function(){wi(fi!==!1?ni(0):-1)},[Nr.length,jr]);var Ci=v.useCallback(function(li){return Vt.has(li)&&an!=="combobox"},[an,(0,Ae.Z)(Vt).toString(),Vt.size]);(0,v.useEffect)(function(){var li=setTimeout(function(){if(!Hr&&Dr&&Vt.size===1){var ln=Array.from(Vt)[0],Jn=Nr.findIndex(function(Hn){var hi=Hn.data;return hi.value===ln});Jn!==-1&&(wi(Jn),ci(Jn))}});if(Dr){var pn;(pn=yn.current)===null||pn===void 0||pn.scrollTo(void 0)}return function(){return clearTimeout(li)}},[Dr,jr,Nn.length]);var Ai=function(pn){pn!==void 0&&On(pn,{selected:!Vt.has(pn)}),Hr||Rr(!1)};if(v.useImperativeHandle(Nt,function(){return{onKeyDown:function(pn){var ln=pn.which,Jn=pn.ctrlKey;switch(ln){case T.Z.N:case T.Z.P:case T.Z.UP:case T.Z.DOWN:{var Hn=0;if(ln===T.Z.UP?Hn=-1:ln===T.Z.DOWN?Hn=1:Dn()&&Jn&&(ln===T.Z.N?Hn=1:ln===T.Z.P&&(Hn=-1)),Hn!==0){var hi=ni(zn+Hn,Hn);ci(hi),wi(hi,!0)}break}case T.Z.ENTER:{var qi=Nr[zn];qi&&!qi.data.disabled?Ai(qi.value):Ai(void 0),Dr&&pn.preventDefault();break}case T.Z.ESC:Rr(!1),Dr&&pn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(pn){ci(pn)}}}),Nr.length===0)return v.createElement("div",{role:"listbox",id:"".concat(nr,"_list"),className:"".concat(ar,"-empty"),onMouseDown:Bn},en);var Bi=Object.keys(Xt).map(function(li){return Xt[li]}),Xi=function(pn){return pn.label};function ri(li,pn){var ln=li.group;return{role:ln?"presentation":"option",id:"".concat(nr,"_list_").concat(pn)}}var Ti=function(pn){var ln=Nr[pn];if(!ln)return null;var Jn=ln.data||{},Hn=Jn.value,hi=ln.group,qi=(0,me.Z)(Jn,!0),Li=Xi(ln);return ln?v.createElement("div",(0,pe.Z)({"aria-label":typeof Li=="string"&&!hi?Li:null},qi,{key:pn},ri(ln,pn),{"aria-selected":Ci(Hn)}),Hn):null},Ha={role:"listbox",id:"".concat(nr,"_list")};return v.createElement(v.Fragment,null,er&&v.createElement("div",(0,pe.Z)({},Ha,{style:{height:0,width:0,overflow:"hidden"}}),Ti(zn-1),Ti(zn),Ti(zn+1)),v.createElement(fn.Z,{itemKey:"key",ref:yn,data:Nr,height:Rt,itemHeight:Jt,fullHeight:!1,onMouseDown:Bn,onScroll:wn,virtual:er,direction:fr,innerProps:er?null:Ha},function(li,pn){var ln,Jn=li.group,Hn=li.groupOption,hi=li.data,qi=li.label,Li=li.value,Ua=hi.key;if(Jn){var Aa,Bo=(Aa=hi.title)!==null&&Aa!==void 0?Aa:Pr(qi)?qi.toString():void 0;return v.createElement("div",{className:_()(ar,"".concat(ar,"-group")),title:Bo},qi!==void 0?qi:Ua)}var Wn=hi.disabled,Fn=hi.title,Ni=hi.children,Ji=hi.style,Fa=hi.className,Is=(0,W.Z)(hi,Qi),za=(0,Kr.Z)(Is,Bi),fa=Ci(Li),Io="".concat(ar,"-option"),So=_()(ar,Io,Fa,(ln={},(0,P.Z)(ln,"".concat(Io,"-grouped"),Hn),(0,P.Z)(ln,"".concat(Io,"-active"),zn===pn&&!Wn),(0,P.Z)(ln,"".concat(Io,"-disabled"),Wn),(0,P.Z)(ln,"".concat(Io,"-selected"),fa),ln)),Po=Xi(li),Os=!Xn||typeof Xn=="function"||fa,po=typeof Po=="number"?Po:Po||Li,bs=Pr(po)?po.toString():void 0;return Fn!==void 0&&(bs=Fn),v.createElement("div",(0,pe.Z)({},(0,me.Z)(za),er?{}:ri(li,pn),{"aria-selected":fa,className:So,title:bs,onMouseMove:function(){zn===pn||Wn||wi(pn)},onClick:function(){Wn||Ai(Li)},style:Ji}),v.createElement("div",{className:"".concat(Io,"-content")},po),v.isValidElement(Xn)||fa,Os&&v.createElement(R,{className:"".concat(ar,"-option-state"),customizeIcon:Xn,customizeIconProps:{isSelected:fa}},fa?"\u2713":null))}))},Ei=v.forwardRef(xn);Ei.displayName="OptionList";var di=Ei;function Zi(Me){var Ie=Me.mode,Nt=Me.options,Mt=Me.children,Sr=Me.backfill,nr=Me.allowClear,Dr=Me.placeholder,Hr=Me.getInputElement,an=Me.showSearch,jr=Me.onSearch,Rr=Me.defaultOpen,en=Me.autoFocus,wn=Me.labelInValue,on=Me.value,Nn=Me.inputValue,Kn=Me.optionLabelProp,fi=isMultiple(Ie),On=an!==void 0?an:fi||Ie==="combobox",Xn=Nt||convertChildrenToData(Mt);if(warning(Ie!=="tags"||Xn.every(function(fr){return!fr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ie==="tags"||Ie==="combobox"){var Vt=Xn.some(function(fr){return fr.options?fr.options.some(function(Rt){return typeof("value"in Rt?Rt.value:Rt.key)=="number"}):typeof("value"in fr?fr.value:fr.key)=="number"});warning(!Vt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ie!=="combobox"||!Kn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ie==="combobox"||!Sr,"`backfill` only works with `combobox` mode."),warning(Ie==="combobox"||!Hr,"`getInputElement` only work with `combobox` mode."),noteOnce(Ie!=="combobox"||!Hr||!nr||!Dr,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),jr&&!On&&Ie!=="combobox"&&Ie!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Rr||en,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),on!=null){var Xt=toArray(on);warning(!wn||Xt.every(function(fr){return _typeof(fr)==="object"&&("key"in fr||"value"in fr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!fi||Array.isArray(on),"`value` should be array when `mode` is `multiple` or `tags`")}if(Mt){var er=null;toNodeArray(Mt).some(function(fr){if(!React.isValidElement(fr)||!fr.type)return!1;var Rt=fr,Jt=Rt.type;if(Jt.isSelectOption)return!1;if(Jt.isSelectOptGroup){var ar=toNodeArray(fr.props.children).every(function(Nr){return!React.isValidElement(Nr)||!fr.type||Nr.type.isSelectOption?!0:(er=Nr.type,!1)});return!ar}return er=Jt,!0}),er&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(er.displayName||er.name||er,"`.")),warning(Nn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function _i(Me,Ie){if(Me){var Nt=function Mt(Sr){for(var nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Dr=0;Dr<Sr.length;Dr++){var Hr=Sr[Dr];if(Hr[Ie==null?void 0:Ie.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!nr&&Array.isArray(Hr[Ie==null?void 0:Ie.options])&&Mt(Hr[Ie==null?void 0:Ie.options],!0))break}};Nt(Me)}}var ji=null,qa=["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"],Ki=["inputValue"];function ti(Me){return!Me||(0,S.Z)(Me)!=="object"}var gi=v.forwardRef(function(Me,Ie){var Nt=Me.id,Mt=Me.mode,Sr=Me.prefixCls,nr=Sr===void 0?"rc-select":Sr,Dr=Me.backfill,Hr=Me.fieldNames,an=Me.inputValue,jr=Me.searchValue,Rr=Me.onSearch,en=Me.autoClearSearchValue,wn=en===void 0?!0:en,on=Me.onSelect,Nn=Me.onDeselect,Kn=Me.dropdownMatchSelectWidth,fi=Kn===void 0?!0:Kn,On=Me.filterOption,Xn=Me.filterSort,Vt=Me.optionFilterProp,Xt=Me.optionLabelProp,er=Me.options,fr=Me.children,Rt=Me.defaultActiveFirstOption,Jt=Me.menuItemSelectedIcon,ar=Me.virtual,Nr=Me.direction,yn=Me.listHeight,Bn=yn===void 0?200:yn,ci=Me.listItemHeight,ni=ci===void 0?20:ci,Ii=Me.value,qn=Me.defaultValue,zn=Me.labelInValue,xi=Me.onChange,wi=(0,W.Z)(Me,qa),Ci=(0,rt.ZP)(Nt),Ai=ye(Mt),Bi=!!(!er&&fr),Xi=v.useMemo(function(){return On===void 0&&Mt==="combobox"?!1:On},[On,Mt]),ri=v.useMemo(function(){return x(Hr,Bi)},[JSON.stringify(Hr),Bi]),Ti=(0,g.Z)("",{value:jr!==void 0?jr:an,postState:function(la){return la||""}}),Ha=(0,te.Z)(Ti,2),li=Ha[0],pn=Ha[1],ln=Yt(er,fr,ri,Vt,Xt),Jn=ln.valueOptions,Hn=ln.labelOptions,hi=ln.options,qi=v.useCallback(function(ii){var la=de(ii);return la.map(function(ta){var oa,Da,so,Ws,ws;if(ti(ta))oa=ta;else{var xs;so=ta.key,Da=ta.label,oa=(xs=ta.value)!==null&&xs!==void 0?xs:so}var ms=Jn.get(oa);if(ms){var eo;if(Da===void 0&&(Da=ms==null?void 0:ms[Xt||ri.label]),so===void 0&&(so=(eo=ms==null?void 0:ms.key)!==null&&eo!==void 0?eo:oa),Ws=ms==null?void 0:ms.disabled,ws=ms==null?void 0:ms.title,0)var Ra}return{label:Da,value:oa,key:so,disabled:Ws,title:ws}})},[ri,Xt,Jn]),Li=(0,g.Z)(qn,{value:Ii}),Ua=(0,te.Z)(Li,2),Aa=Ua[0],Bo=Ua[1],Wn=v.useMemo(function(){var ii,la=qi(Aa);return Mt==="combobox"&&xe((ii=la[0])===null||ii===void 0?void 0:ii.value)?[]:la},[Aa,qi,Mt]),Fn=gt(Wn,Jn),Ni=(0,te.Z)(Fn,2),Ji=Ni[0],Fa=Ni[1],Is=v.useMemo(function(){if(!Mt&&Ji.length===1){var ii=Ji[0];if(ii.value===null&&(ii.label===null||ii.label===void 0))return[]}return Ji.map(function(la){var ta;return(0,Ne.Z)((0,Ne.Z)({},la),{},{label:(ta=la.label)!==null&&ta!==void 0?ta:la.value})})},[Mt,Ji]),za=v.useMemo(function(){return new Set(Ji.map(function(ii){return ii.value}))},[Ji]);v.useEffect(function(){if(Mt==="combobox"){var ii,la=(ii=Ji[0])===null||ii===void 0?void 0:ii.value;pn(ke(la)?String(la):"")}},[Ji]);var fa=Fr(function(ii,la){var ta,oa=la!=null?la:ii;return ta={},(0,P.Z)(ta,ri.value,ii),(0,P.Z)(ta,ri.label,oa),ta}),Io=v.useMemo(function(){if(Mt!=="tags")return hi;var ii=(0,Ae.Z)(hi),la=function(oa){return Jn.has(oa)};return(0,Ae.Z)(Ji).sort(function(ta,oa){return ta.value<oa.value?-1:1}).forEach(function(ta){var oa=ta.value;la(oa)||ii.push(fa(oa,ta.label))}),ii},[fa,hi,Jn,Ji,Mt]),So=at(Io,ri,li,Xi,Vt),Po=v.useMemo(function(){return Mt!=="tags"||!li||So.some(function(ii){return ii[Vt||"value"]===li})||So.some(function(ii){return ii[ri.value]===li})?So:[fa(li)].concat((0,Ae.Z)(So))},[fa,Vt,Mt,So,li,ri]),Os=v.useMemo(function(){return Xn?(0,Ae.Z)(Po).sort(function(ii,la){return Xn(ii,la)}):Po},[Po,Xn]),po=v.useMemo(function(){return Y(Os,{fieldNames:ri,childrenAsData:Bi})},[Os,ri,Bi]),bs=function(la){var ta=qi(la);if(Bo(ta),xi&&(ta.length!==Ji.length||ta.some(function(so,Ws){var ws;return((ws=Ji[Ws])===null||ws===void 0?void 0:ws.value)!==(so==null?void 0:so.value)}))){var oa=zn?ta:ta.map(function(so){return so.value}),Da=ta.map(function(so){return Be(Fa(so.value))});xi(Ai?oa:oa[0],Ai?Da:Da[0])}},Ps=v.useState(null),$s=(0,te.Z)(Ps,2),To=$s[0],Uo=$s[1],ys=v.useState(0),el=(0,te.Z)(ys,2),vl=el[0],ic=el[1],ac=Rt!==void 0?Rt:Mt!=="combobox",Ql=v.useCallback(function(ii,la){var ta=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},oa=ta.source,Da=oa===void 0?"keyboard":oa;ic(la),Dr&&Mt==="combobox"&&ii!==null&&Da==="keyboard"&&Uo(String(ii))},[Dr,Mt]),Zs=function(la,ta,oa){var Da=function(){var Fs,Go=Fa(la);return[zn?{label:Go==null?void 0:Go[ri.label],value:la,key:(Fs=Go==null?void 0:Go.key)!==null&&Fs!==void 0?Fs:la}:la,Be(Go)]};if(ta&&on){var so=Da(),Ws=(0,te.Z)(so,2),ws=Ws[0],xs=Ws[1];on(ws,xs)}else if(!ta&&Nn&&oa!=="clear"){var ms=Da(),eo=(0,te.Z)(ms,2),Ra=eo[0],os=eo[1];Nn(Ra,os)}},Dc=Fr(function(ii,la){var ta,oa=Ai?la.selected:!0;oa?ta=Ai?[].concat((0,Ae.Z)(Ji),[ii]):[ii]:ta=Ji.filter(function(Da){return Da.value!==ii}),bs(ta),Zs(ii,oa),Mt==="combobox"?Uo(""):(!ye||wn)&&(pn(""),Uo(""))}),Kl=function(la,ta){bs(la);var oa=ta.type,Da=ta.values;(oa==="remove"||oa==="clear")&&Da.forEach(function(so){Zs(so.value,!1,oa)})},Hl=function(la,ta){if(pn(la),Uo(null),ta.source==="submit"){var oa=(la||"").trim();if(oa){var Da=Array.from(new Set([].concat((0,Ae.Z)(za),[oa])));bs(Da),Zs(oa,!0),pn("")}return}ta.source!=="blur"&&(Mt==="combobox"&&bs(la),Rr==null||Rr(la))},Vs=function(la){var ta=la;Mt!=="tags"&&(ta=la.map(function(Da){var so=Hn.get(Da);return so==null?void 0:so.value}).filter(function(Da){return Da!==void 0}));var oa=Array.from(new Set([].concat((0,Ae.Z)(za),(0,Ae.Z)(ta))));bs(oa),oa.forEach(function(Da){Zs(Da,!0)})},as=v.useMemo(function(){var ii=ar!==!1&&fi!==!1;return(0,Ne.Z)((0,Ne.Z)({},ln),{},{flattenOptions:po,onActiveValue:Ql,defaultActiveFirstOption:ac,onSelect:Dc,menuItemSelectedIcon:Jt,rawValues:za,fieldNames:ri,virtual:ii,direction:Nr,listHeight:Bn,listItemHeight:ni,childrenAsData:Bi})},[ln,po,Ql,ac,Dc,Jt,za,ri,ar,fi,Bn,ni,Bi]);return v.createElement(hn.Provider,{value:as},v.createElement(ze,(0,pe.Z)({},wi,{id:Ci,prefixCls:nr,ref:Ie,omitDomProps:Ki,mode:Mt,displayValues:Is,onDisplayValuesChange:Kl,direction:Nr,searchValue:li,onSearch:Hl,autoClearSearchValue:wn,onSearchSplit:Vs,dropdownMatchSelectWidth:fi,OptionList:di,emptyOptions:!po.length,activeValue:To,activeDescendantId:"".concat(Ci,"_list_").concat(vl)})))}),yi=gi;yi.Option=yr,yi.OptGroup=Or;var $e=yi,_e=$e},9296:function(dn,Ut,C){"use strict";C.r(Ut),C.d(Ut,{ResizableTextArea:function(){return Ue},default:function(){return xe}});var pe=C(54476),Ae=C(33885),P=C(20068),Ne=C(76190),te=C(42978),W=C(75931),S=C(94480),g=C(92310),F=C.n(g),v=C(93681),$=C(5643),_=C(18929),M=C(59301),O=C(29301),T=C(34280),L=C(16089),q=`
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;
`,R=["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={},ne;function J(Te){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,De=Te.getAttribute("id")||Te.getAttribute("data-reactid")||Te.getAttribute("name");if(ve&&se[De])return se[De];var he=window.getComputedStyle(Te),Se=he.getPropertyValue("box-sizing")||he.getPropertyValue("-moz-box-sizing")||he.getPropertyValue("-webkit-box-sizing"),Xe=parseFloat(he.getPropertyValue("padding-bottom"))+parseFloat(he.getPropertyValue("padding-top")),et=parseFloat(he.getPropertyValue("border-bottom-width"))+parseFloat(he.getPropertyValue("border-top-width")),je=R.map(function(Et){return"".concat(Et,":").concat(he.getPropertyValue(Et))}).join(";"),qe={sizingStyle:je,paddingSize:Xe,borderSize:et,boxSizing:Se};return ve&&De&&(se[De]=qe),qe}function G(Te){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,he=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ne||(ne=document.createElement("textarea"),ne.setAttribute("tab-index","-1"),ne.setAttribute("aria-hidden","true"),document.body.appendChild(ne)),Te.getAttribute("wrap")?ne.setAttribute("wrap",Te.getAttribute("wrap")):ne.removeAttribute("wrap");var Se=J(Te,ve),Xe=Se.paddingSize,et=Se.borderSize,je=Se.boxSizing,qe=Se.sizingStyle;ne.setAttribute("style","".concat(qe,";").concat(q)),ne.value=Te.value||Te.placeholder||"";var Et=void 0,kt=void 0,Ot,sr=ne.scrollHeight;if(je==="border-box"?sr+=et:je==="content-box"&&(sr-=Xe),De!==null||he!==null){ne.value=" ";var rr=ne.scrollHeight-Xe;De!==null&&(Et=rr*De,je==="border-box"&&(Et=Et+Xe+et),sr=Math.max(Et,sr)),he!==null&&(kt=rr*he,je==="border-box"&&(kt=kt+Xe+et),Ot=sr>kt?"":"hidden",sr=Math.min(kt,sr))}var br={height:sr,overflowY:Ot,resize:"none"};return Et&&(br.minHeight=Et),kt&&(br.maxHeight=kt),br}var K=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],le=0,me=1,Oe=2,Ce=M.forwardRef(function(Te,ve){var De=Te,he=De.prefixCls,Se=De.onPressEnter,Xe=De.defaultValue,et=De.value,je=De.autoSize,qe=De.onResize,Et=De.className,kt=De.style,Ot=De.disabled,sr=De.onChange,rr=De.onInternalAutoSize,br=(0,W.Z)(De,K),lr=(0,_.Z)(Xe,{value:et,postState:function(Or){return Or!=null?Or:""}}),V=(0,te.Z)(lr,2),dt=V[0],I=V[1],p=function(Or){I(Or.target.value),sr==null||sr(Or)},f=M.useRef();M.useImperativeHandle(ve,function(){return{textArea:f.current}});var x=M.useMemo(function(){return je&&(0,Ne.Z)(je)==="object"?[je.minRows,je.maxRows]:[]},[je]),Y=(0,te.Z)(x,2),Be=Y[0],H=Y[1],ie=!!je,Qe=function(){try{if(document.activeElement===f.current){var Or=f.current,kr=Or.selectionStart,yr=Or.selectionEnd,ur=Or.scrollTop;f.current.setSelectionRange(kr,yr),f.current.scrollTop=ur}}catch(Kr){}},ye=M.useState(Oe),be=(0,te.Z)(ye,2),ze=be[0],gt=be[1],fe=M.useState(),at=(0,te.Z)(fe,2),rt=at[0],Le=at[1],Fe=function(){gt(le)};(0,T.Z)(function(){ie&&Fe()},[et,Be,H,ie]),(0,T.Z)(function(){if(ze===le)gt(me);else if(ze===me){var Lr=G(f.current,!1,Be,H);gt(Oe),Le(Lr)}else Qe()},[ze]);var ct=M.useRef(),Tt=function(){L.Z.cancel(ct.current)},Pt=function(Or){ze===Oe&&(qe==null||qe(Or),je&&(Tt(),ct.current=(0,L.Z)(function(){Fe()})))};M.useEffect(function(){return Tt},[]);var Yt=ie?rt:null,Fr=(0,Ae.Z)((0,Ae.Z)({},kt),Yt);return(ze===le||ze===me)&&(Fr.overflowY="hidden",Fr.overflowX="hidden"),M.createElement(O.Z,{onResize:Pt,disabled:!(je||qe)},M.createElement("textarea",(0,pe.Z)({},br,{ref:f,style:Fr,className:F()(he,Et,(0,P.Z)({},"".concat(he,"-disabled"),Ot)),disabled:Ot,value:dt,onChange:p})))}),Ue=Ce,ee=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function de(Te,ve){return(0,S.Z)(Te||"").slice(0,ve).join("")}function D(Te,ve,De,he){var Se=De;return Te?Se=de(De,he):(0,S.Z)(ve||"").length<De.length&&(0,S.Z)(De||"").length>he&&(Se=ve),Se}var Ye=M.forwardRef(function(Te,ve){var De,he=Te.defaultValue,Se=Te.value,Xe=Te.onFocus,et=Te.onBlur,je=Te.onChange,qe=Te.allowClear,Et=Te.maxLength,kt=Te.onCompositionStart,Ot=Te.onCompositionEnd,sr=Te.suffix,rr=Te.prefixCls,br=rr===void 0?"rc-textarea":rr,lr=Te.classes,V=Te.showCount,dt=Te.className,I=Te.style,p=Te.disabled,f=Te.hidden,x=Te.classNames,Y=Te.styles,Be=Te.onResize,H=(0,W.Z)(Te,ee),ie=(0,_.Z)(he,{value:Se,defaultValue:he}),Qe=(0,te.Z)(ie,2),ye=Qe[0],be=Qe[1],ze=(0,M.useRef)(null),gt=M.useState(!1),fe=(0,te.Z)(gt,2),at=fe[0],rt=fe[1],Le=M.useState(!1),Fe=(0,te.Z)(Le,2),ct=Fe[0],Tt=Fe[1],Pt=M.useRef(),Yt=M.useRef(0),Fr=M.useState(null),Lr=(0,te.Z)(Fr,2),Or=Lr[0],kr=Lr[1],yr=function(){var ti;(ti=ze.current)===null||ti===void 0||ti.textArea.focus()};(0,M.useImperativeHandle)(ve,function(){return{resizableTextArea:ze.current,focus:yr,blur:function(){var ti;(ti=ze.current)===null||ti===void 0||ti.textArea.blur()}}}),(0,M.useEffect)(function(){rt(function(Ki){return!p&&Ki})},[p]);var ur=Number(Et)>0,Kr=function(ti){Tt(!0),Pt.current=ye,Yt.current=ti.currentTarget.selectionStart,kt==null||kt(ti)},fn=function(ti){Tt(!1);var gi=ti.currentTarget.value;if(ur){var yi,$e=Yt.current>=Et+1||Yt.current===((yi=Pt.current)===null||yi===void 0?void 0:yi.length);gi=D($e,Pt.current,gi,Et)}gi!==ye&&(be(gi),(0,$.rJ)(ti.currentTarget,ti,je,gi)),Ot==null||Ot(ti)},Un=function(ti){var gi=ti.target.value;if(!ct&&ur){var yi=ti.target.selectionStart>=Et+1||ti.target.selectionStart===gi.length||!ti.target.selectionStart;gi=D(yi,ye,gi,Et)}be(gi),(0,$.rJ)(ti.currentTarget,ti,je,gi)},hn=function(ti){var gi=H.onPressEnter,yi=H.onKeyDown;ti.key==="Enter"&&gi&&gi(ti),yi==null||yi(ti)},Dn=function(ti){rt(!0),Xe==null||Xe(ti)},Qi=function(ti){rt(!1),et==null||et(ti)},Pr=function(ti){var gi;be(""),yr(),(0,$.rJ)((gi=ze.current)===null||gi===void 0?void 0:gi.textArea,ti,je)},xn=(0,$.D7)(ye);!ct&&ur&&Se==null&&(xn=de(xn,Et));var Ei=sr,di;if(V){var Zi=(0,S.Z)(xn).length;(0,Ne.Z)(V)==="object"?di=V.formatter({value:xn,count:Zi,maxLength:Et}):di="".concat(Zi).concat(ur?" / ".concat(Et):""),Ei=M.createElement(M.Fragment,null,Ei,M.createElement("span",{className:F()("".concat(br,"-data-count"),x==null?void 0:x.count),style:Y==null?void 0:Y.count},di))}var _i=function(ti){var gi;Be==null||Be(ti),(gi=ze.current)!==null&&gi!==void 0&&gi.textArea.style.height&&kr(!0)},ji=!H.autoSize&&!V&&!qe,qa=M.createElement(v.BaseInput,{value:xn,allowClear:qe,handleReset:Pr,suffix:Ei,prefixCls:br,classes:{affixWrapper:F()(lr==null?void 0:lr.affixWrapper,(De={},(0,P.Z)(De,"".concat(br,"-show-count"),V),(0,P.Z)(De,"".concat(br,"-textarea-allow-clear"),qe),De))},disabled:p,focused:at,className:dt,style:(0,Ae.Z)((0,Ae.Z)({},I),Or&&!ji?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof di=="string"?di:void 0}},hidden:f,inputElement:M.createElement(Ue,(0,pe.Z)({},H,{onKeyDown:hn,onChange:Un,onFocus:Dn,onBlur:Qi,onCompositionStart:Kr,onCompositionEnd:fn,className:x==null?void 0:x.textarea,style:(0,Ae.Z)((0,Ae.Z)({},Y==null?void 0:Y.textarea),{},{resize:I==null?void 0:I.resize}),disabled:p,prefixCls:br,onResize:_i,ref:ze}))});return qa}),ke=Ye,xe=ke},39417:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return me}});var pe=C(54476),Ae=C(20068),P=C(75931),Ne=C(33885),te=C(67732),W=C(83652),S=C(31226),g=C(42403),F=C(158),v=C(92310),$=C.n(v),_=C(26112),M=C(59301),O=C(39378),T=function(Ce){for(var Ue=Ce.prefixCls,ee=Ce.level,de=Ce.isStart,D=Ce.isEnd,Ye="".concat(Ue,"-indent-unit"),ke=[],xe=0;xe<ee;xe+=1){var Te;ke.push(M.createElement("span",{key:xe,className:$()(Ye,(Te={},(0,Ae.Z)(Te,"".concat(Ye,"-start"),de[xe]),(0,Ae.Z)(Te,"".concat(Ye,"-end"),D[xe]),Te))}))}return M.createElement("span",{"aria-hidden":"true",className:"".concat(Ue,"-indent")},ke)},L=M.memo(T),q=C(67841),R=C(71430),se=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ne="open",J="close",G="---",K=function(Oe){(0,g.Z)(Ue,Oe);var Ce=(0,F.Z)(Ue);function Ue(){var ee;(0,te.Z)(this,Ue);for(var de=arguments.length,D=new Array(de),Ye=0;Ye<de;Ye++)D[Ye]=arguments[Ye];return ee=Ce.call.apply(Ce,[this].concat(D)),ee.state={dragNodeHighlight:!1},ee.selectHandle=void 0,ee.cacheIndent=void 0,ee.onSelectorClick=function(ke){var xe=ee.props.context.onNodeClick;xe(ke,(0,R.F)(ee.props)),ee.isSelectable()?ee.onSelect(ke):ee.onCheck(ke)},ee.onSelectorDoubleClick=function(ke){var xe=ee.props.context.onNodeDoubleClick;xe(ke,(0,R.F)(ee.props))},ee.onSelect=function(ke){if(!ee.isDisabled()){var xe=ee.props.context.onNodeSelect;xe(ke,(0,R.F)(ee.props))}},ee.onCheck=function(ke){if(!ee.isDisabled()){var xe=ee.props,Te=xe.disableCheckbox,ve=xe.checked,De=ee.props.context.onNodeCheck;if(!(!ee.isCheckable()||Te)){var he=!ve;De(ke,(0,R.F)(ee.props),he)}}},ee.onMouseEnter=function(ke){var xe=ee.props.context.onNodeMouseEnter;xe(ke,(0,R.F)(ee.props))},ee.onMouseLeave=function(ke){var xe=ee.props.context.onNodeMouseLeave;xe(ke,(0,R.F)(ee.props))},ee.onContextMenu=function(ke){var xe=ee.props.context.onNodeContextMenu;xe(ke,(0,R.F)(ee.props))},ee.onDragStart=function(ke){var xe=ee.props.context.onNodeDragStart;ke.stopPropagation(),ee.setState({dragNodeHighlight:!0}),xe(ke,(0,S.Z)(ee));try{ke.dataTransfer.setData("text/plain","")}catch(Te){}},ee.onDragEnter=function(ke){var xe=ee.props.context.onNodeDragEnter;ke.preventDefault(),ke.stopPropagation(),xe(ke,(0,S.Z)(ee))},ee.onDragOver=function(ke){var xe=ee.props.context.onNodeDragOver;ke.preventDefault(),ke.stopPropagation(),xe(ke,(0,S.Z)(ee))},ee.onDragLeave=function(ke){var xe=ee.props.context.onNodeDragLeave;ke.stopPropagation(),xe(ke,(0,S.Z)(ee))},ee.onDragEnd=function(ke){var xe=ee.props.context.onNodeDragEnd;ke.stopPropagation(),ee.setState({dragNodeHighlight:!1}),xe(ke,(0,S.Z)(ee))},ee.onDrop=function(ke){var xe=ee.props.context.onNodeDrop;ke.preventDefault(),ke.stopPropagation(),ee.setState({dragNodeHighlight:!1}),xe(ke,(0,S.Z)(ee))},ee.onExpand=function(ke){var xe=ee.props,Te=xe.loading,ve=xe.context.onNodeExpand;Te||ve(ke,(0,R.F)(ee.props))},ee.setSelectHandle=function(ke){ee.selectHandle=ke},ee.getNodeState=function(){var ke=ee.props.expanded;return ee.isLeaf()?null:ke?ne:J},ee.hasChildren=function(){var ke=ee.props.eventKey,xe=ee.props.context.keyEntities,Te=(0,q.Z)(xe,ke)||{},ve=Te.children;return!!(ve||[]).length},ee.isLeaf=function(){var ke=ee.props,xe=ke.isLeaf,Te=ke.loaded,ve=ee.props.context.loadData,De=ee.hasChildren();return xe===!1?!1:xe||!ve&&!De||ve&&Te&&!De},ee.isDisabled=function(){var ke=ee.props.disabled,xe=ee.props.context.disabled;return!!(xe||ke)},ee.isCheckable=function(){var ke=ee.props.checkable,xe=ee.props.context.checkable;return!xe||ke===!1?!1:xe},ee.syncLoadData=function(ke){var xe=ke.expanded,Te=ke.loading,ve=ke.loaded,De=ee.props.context,he=De.loadData,Se=De.onNodeLoad;Te||he&&xe&&!ee.isLeaf()&&!ee.hasChildren()&&!ve&&Se((0,R.F)(ee.props))},ee.isDraggable=function(){var ke=ee.props,xe=ke.data,Te=ke.context.draggable;return!!(Te&&(!Te.nodeDraggable||Te.nodeDraggable(xe)))},ee.renderDragHandler=function(){var ke=ee.props.context,xe=ke.draggable,Te=ke.prefixCls;return xe!=null&&xe.icon?M.createElement("span",{className:"".concat(Te,"-draggable-icon")},xe.icon):null},ee.renderSwitcherIconDom=function(ke){var xe=ee.props.switcherIcon,Te=ee.props.context.switcherIcon,ve=xe||Te;return typeof ve=="function"?ve((0,Ne.Z)((0,Ne.Z)({},ee.props),{},{isLeaf:ke})):ve},ee.renderSwitcher=function(){var ke=ee.props.expanded,xe=ee.props.context.prefixCls;if(ee.isLeaf()){var Te=ee.renderSwitcherIconDom(!0);return Te!==!1?M.createElement("span",{className:$()("".concat(xe,"-switcher"),"".concat(xe,"-switcher-noop"))},Te):null}var ve=$()("".concat(xe,"-switcher"),"".concat(xe,"-switcher_").concat(ke?ne:J)),De=ee.renderSwitcherIconDom(!1);return De!==!1?M.createElement("span",{onClick:ee.onExpand,className:ve},De):null},ee.renderCheckbox=function(){var ke=ee.props,xe=ke.checked,Te=ke.halfChecked,ve=ke.disableCheckbox,De=ee.props.context.prefixCls,he=ee.isDisabled(),Se=ee.isCheckable();if(!Se)return null;var Xe=typeof Se!="boolean"?Se:null;return M.createElement("span",{className:$()("".concat(De,"-checkbox"),xe&&"".concat(De,"-checkbox-checked"),!xe&&Te&&"".concat(De,"-checkbox-indeterminate"),(he||ve)&&"".concat(De,"-checkbox-disabled")),onClick:ee.onCheck},Xe)},ee.renderIcon=function(){var ke=ee.props.loading,xe=ee.props.context.prefixCls;return M.createElement("span",{className:$()("".concat(xe,"-iconEle"),"".concat(xe,"-icon__").concat(ee.getNodeState()||"docu"),ke&&"".concat(xe,"-icon_loading"))})},ee.renderSelector=function(){var ke=ee.state.dragNodeHighlight,xe=ee.props,Te=xe.title,ve=Te===void 0?G:Te,De=xe.selected,he=xe.icon,Se=xe.loading,Xe=xe.data,et=ee.props.context,je=et.prefixCls,qe=et.showIcon,Et=et.icon,kt=et.loadData,Ot=et.titleRender,sr=ee.isDisabled(),rr="".concat(je,"-node-content-wrapper"),br;if(qe){var lr=he||Et;br=lr?M.createElement("span",{className:$()("".concat(je,"-iconEle"),"".concat(je,"-icon__customize"))},typeof lr=="function"?lr(ee.props):lr):ee.renderIcon()}else kt&&Se&&(br=ee.renderIcon());var V;typeof ve=="function"?V=ve(Xe):Ot?V=Ot(Xe):V=ve;var dt=M.createElement("span",{className:"".concat(je,"-title")},V);return M.createElement("span",{ref:ee.setSelectHandle,title:typeof ve=="string"?ve:"",className:$()("".concat(rr),"".concat(rr,"-").concat(ee.getNodeState()||"normal"),!sr&&(De||ke)&&"".concat(je,"-node-selected")),onMouseEnter:ee.onMouseEnter,onMouseLeave:ee.onMouseLeave,onContextMenu:ee.onContextMenu,onClick:ee.onSelectorClick,onDoubleClick:ee.onSelectorDoubleClick},br,dt,ee.renderDropIndicator())},ee.renderDropIndicator=function(){var ke=ee.props,xe=ke.disabled,Te=ke.eventKey,ve=ee.props.context,De=ve.draggable,he=ve.dropLevelOffset,Se=ve.dropPosition,Xe=ve.prefixCls,et=ve.indent,je=ve.dropIndicatorRender,qe=ve.dragOverNodeKey,Et=ve.direction,kt=!!De,Ot=!xe&&kt&&qe===Te,sr=et!=null?et:ee.cacheIndent;return ee.cacheIndent=et,Ot?je({dropPosition:Se,dropLevelOffset:he,indent:sr,prefixCls:Xe,direction:Et}):null},ee}return(0,W.Z)(Ue,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var de=this.props.selectable,D=this.props.context.selectable;return typeof de=="boolean"?de:D}},{key:"render",value:function(){var de,D=this.props,Ye=D.eventKey,ke=D.className,xe=D.style,Te=D.dragOver,ve=D.dragOverGapTop,De=D.dragOverGapBottom,he=D.isLeaf,Se=D.isStart,Xe=D.isEnd,et=D.expanded,je=D.selected,qe=D.checked,Et=D.halfChecked,kt=D.loading,Ot=D.domRef,sr=D.active,rr=D.data,br=D.onMouseMove,lr=D.selectable,V=(0,P.Z)(D,se),dt=this.props.context,I=dt.prefixCls,p=dt.filterTreeNode,f=dt.keyEntities,x=dt.dropContainerKey,Y=dt.dropTargetKey,Be=dt.draggingNodeKey,H=this.isDisabled(),ie=(0,_.Z)(V,{aria:!0,data:!0}),Qe=(0,q.Z)(f,Ye)||{},ye=Qe.level,be=Xe[Xe.length-1],ze=this.isDraggable(),gt=!H&&ze,fe=Be===Ye,at=lr!==void 0?{"aria-selected":!!lr}:void 0;return M.createElement("div",(0,pe.Z)({ref:Ot,className:$()(ke,"".concat(I,"-treenode"),(de={},(0,Ae.Z)(de,"".concat(I,"-treenode-disabled"),H),(0,Ae.Z)(de,"".concat(I,"-treenode-switcher-").concat(et?"open":"close"),!he),(0,Ae.Z)(de,"".concat(I,"-treenode-checkbox-checked"),qe),(0,Ae.Z)(de,"".concat(I,"-treenode-checkbox-indeterminate"),Et),(0,Ae.Z)(de,"".concat(I,"-treenode-selected"),je),(0,Ae.Z)(de,"".concat(I,"-treenode-loading"),kt),(0,Ae.Z)(de,"".concat(I,"-treenode-active"),sr),(0,Ae.Z)(de,"".concat(I,"-treenode-leaf-last"),be),(0,Ae.Z)(de,"".concat(I,"-treenode-draggable"),ze),(0,Ae.Z)(de,"dragging",fe),(0,Ae.Z)(de,"drop-target",Y===Ye),(0,Ae.Z)(de,"drop-container",x===Ye),(0,Ae.Z)(de,"drag-over",!H&&Te),(0,Ae.Z)(de,"drag-over-gap-top",!H&&ve),(0,Ae.Z)(de,"drag-over-gap-bottom",!H&&De),(0,Ae.Z)(de,"filter-node",p&&p((0,R.F)(this.props))),de)),style:xe,draggable:gt,"aria-grabbed":fe,onDragStart:gt?this.onDragStart:void 0,onDragEnter:ze?this.onDragEnter:void 0,onDragOver:ze?this.onDragOver:void 0,onDragLeave:ze?this.onDragLeave:void 0,onDrop:ze?this.onDrop:void 0,onDragEnd:ze?this.onDragEnd:void 0,onMouseMove:br},at,ie),M.createElement(L,{prefixCls:I,level:ye,isStart:Se,isEnd:Xe}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Ue}(M.Component),le=function(Ce){return M.createElement(O.k.Consumer,null,function(Ue){return M.createElement(K,(0,pe.Z)({},Ce,{context:Ue}))})};le.displayName="TreeNode",le.isTreeNode=1;var me=le},39378:function(dn,Ut,C){"use strict";C.d(Ut,{k:function(){return Ae}});var pe=C(59301),Ae=pe.createContext(null)},60091:function(dn,Ut,C){"use strict";C.d(Ut,{O:function(){return me.Z},Z:function(){return dt}});var pe=C(54476),Ae=C(20068),P=C(76190),Ne=C(33885),te=C(94480),W=C(67732),S=C(83652),g=C(31226),F=C(42403),v=C(158),$=C(92310),_=C.n($),M=C(10228),O=C(26112),T=C(48736),L=C(59301),q=C(39378);function R(I){var p=I.dropPosition,f=I.dropLevelOffset,x=I.indent,Y={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(p){case-1:Y.top=0,Y.left=-f*x;break;case 1:Y.bottom=0,Y.left=-f*x;break;case 0:Y.bottom=0,Y.left=x;break}return L.createElement("div",{style:Y})}function se(I){if(I==null)throw new TypeError("Cannot destructure "+I)}var ne=C(42978),J=C(75931),G=C(34280),K=C(48911),le=C(77900),me=C(39417);function Oe(I,p){var f=L.useState(!1),x=(0,ne.Z)(f,2),Y=x[0],Be=x[1];L.useLayoutEffect(function(){if(Y)return I(),function(){p()}},[Y]),L.useLayoutEffect(function(){return Be(!0),function(){Be(!1)}},[])}var Ce=C(71430),Ue=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ee=function(p,f){var x=p.className,Y=p.style,Be=p.motion,H=p.motionNodes,ie=p.motionType,Qe=p.onMotionStart,ye=p.onMotionEnd,be=p.active,ze=p.treeNodeRequiredProps,gt=(0,J.Z)(p,Ue),fe=L.useState(!0),at=(0,ne.Z)(fe,2),rt=at[0],Le=at[1],Fe=L.useContext(q.k),ct=Fe.prefixCls,Tt=H&&ie!=="hide";(0,G.Z)(function(){H&&Tt!==rt&&Le(Tt)},[H]);var Pt=function(){H&&Qe()},Yt=L.useRef(!1),Fr=function(){H&&!Yt.current&&(Yt.current=!0,ye())};Oe(Pt,Fr);var Lr=function(kr){Tt===kr&&Fr()};return H?L.createElement(le.default,(0,pe.Z)({ref:f,visible:rt},Be,{motionAppear:ie==="show",onVisibleChanged:Lr}),function(Or,kr){var yr=Or.className,ur=Or.style;return L.createElement("div",{ref:kr,className:_()("".concat(ct,"-treenode-motion"),yr),style:ur},H.map(function(Kr){var fn=(0,pe.Z)({},(se(Kr.data),Kr.data)),Un=Kr.title,hn=Kr.key,Dn=Kr.isStart,Qi=Kr.isEnd;delete fn.children;var Pr=(0,Ce.H8)(hn,ze);return L.createElement(me.Z,(0,pe.Z)({},fn,Pr,{title:Un,active:be,data:Kr.data,key:hn,isStart:Dn,isEnd:Qi}))}))}):L.createElement(me.Z,(0,pe.Z)({domRef:f,className:x,style:Y},gt,{active:be}))};ee.displayName="MotionTreeNode";var de=L.forwardRef(ee),D=de;function Ye(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],f=I.length,x=p.length;if(Math.abs(f-x)!==1)return{add:!1,key:null};function Y(Be,H){var ie=new Map;Be.forEach(function(ye){ie.set(ye,!0)});var Qe=H.filter(function(ye){return!ie.has(ye)});return Qe.length===1?Qe[0]:null}return f<x?{add:!0,key:Y(I,p)}:{add:!1,key:Y(p,I)}}function ke(I,p,f){var x=I.findIndex(function(ie){return ie.key===f}),Y=I[x+1],Be=p.findIndex(function(ie){return ie.key===f});if(Y){var H=p.findIndex(function(ie){return ie.key===Y.key});return p.slice(Be+1,H)}return p.slice(Be+1)}var xe=["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"],Te={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ve=function(){},De="RC_TREE_MOTION_".concat(Math.random()),he={key:De},Se={key:De,level:0,index:0,pos:"0",node:he,nodes:[he]},Xe={parent:null,children:[],pos:Se.pos,data:he,title:null,key:De,isStart:[],isEnd:[]};function et(I,p,f,x){return p===!1||!f?I:I.slice(0,Math.ceil(f/x)+1)}function je(I){var p=I.key,f=I.pos;return(0,Ce.km)(p,f)}function qe(I){for(var p=String(I.data.key),f=I;f.parent;)f=f.parent,p="".concat(f.data.key," > ").concat(p);return p}var Et=L.forwardRef(function(I,p){var f=I.prefixCls,x=I.data,Y=I.selectable,Be=I.checkable,H=I.expandedKeys,ie=I.selectedKeys,Qe=I.checkedKeys,ye=I.loadedKeys,be=I.loadingKeys,ze=I.halfCheckedKeys,gt=I.keyEntities,fe=I.disabled,at=I.dragging,rt=I.dragOverNodeKey,Le=I.dropPosition,Fe=I.motion,ct=I.height,Tt=I.itemHeight,Pt=I.virtual,Yt=I.focusable,Fr=I.activeItem,Lr=I.focused,Or=I.tabIndex,kr=I.onKeyDown,yr=I.onFocus,ur=I.onBlur,Kr=I.onActiveChange,fn=I.onListChangeStart,Un=I.onListChangeEnd,hn=(0,J.Z)(I,xe),Dn=L.useRef(null),Qi=L.useRef(null);L.useImperativeHandle(p,function(){return{scrollTo:function(en){Dn.current.scrollTo(en)},getIndentWidth:function(){return Qi.current.offsetWidth}}});var Pr=L.useState(H),xn=(0,ne.Z)(Pr,2),Ei=xn[0],di=xn[1],Zi=L.useState(x),_i=(0,ne.Z)(Zi,2),ji=_i[0],qa=_i[1],Ki=L.useState(x),ti=(0,ne.Z)(Ki,2),gi=ti[0],yi=ti[1],$e=L.useState([]),_e=(0,ne.Z)($e,2),Me=_e[0],Ie=_e[1],Nt=L.useState(null),Mt=(0,ne.Z)(Nt,2),Sr=Mt[0],nr=Mt[1],Dr=L.useRef(x);Dr.current=x;function Hr(){var Rr=Dr.current;qa(Rr),yi(Rr),Ie([]),nr(null),Un()}(0,G.Z)(function(){di(H);var Rr=Ye(Ei,H);if(Rr.key!==null)if(Rr.add){var en=ji.findIndex(function(On){var Xn=On.key;return Xn===Rr.key}),wn=et(ke(ji,x,Rr.key),Pt,ct,Tt),on=ji.slice();on.splice(en+1,0,Xe),yi(on),Ie(wn),nr("show")}else{var Nn=x.findIndex(function(On){var Xn=On.key;return Xn===Rr.key}),Kn=et(ke(x,ji,Rr.key),Pt,ct,Tt),fi=x.slice();fi.splice(Nn+1,0,Xe),yi(fi),Ie(Kn),nr("hide")}else ji!==x&&(qa(x),yi(x))},[H,x]),L.useEffect(function(){at||Hr()},[at]);var an=Fe?gi:x,jr={expandedKeys:H,selectedKeys:ie,loadedKeys:ye,loadingKeys:be,checkedKeys:Qe,halfCheckedKeys:ze,dragOverNodeKey:rt,dropPosition:Le,keyEntities:gt};return L.createElement(L.Fragment,null,Lr&&Fr&&L.createElement("span",{style:Te,"aria-live":"assertive"},qe(Fr)),L.createElement("div",null,L.createElement("input",{style:Te,disabled:Yt===!1||fe,tabIndex:Yt!==!1?Or:null,onKeyDown:kr,onFocus:yr,onBlur:ur,value:"",onChange:ve,"aria-label":"for screen reader"})),L.createElement("div",{className:"".concat(f,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},L.createElement("div",{className:"".concat(f,"-indent")},L.createElement("div",{ref:Qi,className:"".concat(f,"-indent-unit")}))),L.createElement(K.Z,(0,pe.Z)({},hn,{data:an,itemKey:je,height:ct,fullHeight:!1,virtual:Pt,itemHeight:Tt,prefixCls:"".concat(f,"-list"),ref:Dn,onVisibleChange:function(en,wn){var on=new Set(en),Nn=wn.filter(function(Kn){return!on.has(Kn)});Nn.some(function(Kn){return je(Kn)===De})&&Hr()}}),function(Rr){var en=Rr.pos,wn=(0,pe.Z)({},(se(Rr.data),Rr.data)),on=Rr.title,Nn=Rr.key,Kn=Rr.isStart,fi=Rr.isEnd,On=(0,Ce.km)(Nn,en);delete wn.key,delete wn.children;var Xn=(0,Ce.H8)(On,jr);return L.createElement(D,(0,pe.Z)({},wn,Xn,{title:on,active:!!Fr&&Nn===Fr.key,pos:en,data:Rr.data,isStart:Kn,isEnd:fi,motion:Fe,motionNodes:Nn===De?Me:null,motionType:Sr,onMotionStart:fn,onMotionEnd:Hr,treeNodeRequiredProps:jr,onMouseMove:function(){Kr(null)}}))}))});Et.displayName="NodeList";var kt=Et,Ot=C(35654),sr=C(90782),rr=C(67841),br=10,lr=function(I){(0,F.Z)(f,I);var p=(0,v.Z)(f);function f(){var x;(0,W.Z)(this,f);for(var Y=arguments.length,Be=new Array(Y),H=0;H<Y;H++)Be[H]=arguments[H];return x=p.call.apply(p,[this].concat(Be)),x.destroyed=!1,x.delayedDragEnterLogic=void 0,x.loadingRetryTimes={},x.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,Ce.w$)()},x.dragStartMousePosition=null,x.dragNode=void 0,x.currentMouseOverDroppableNodeKey=null,x.listRef=L.createRef(),x.onNodeDragStart=function(ie,Qe){var ye=x.state,be=ye.expandedKeys,ze=ye.keyEntities,gt=x.props.onDragStart,fe=Qe.props.eventKey;x.dragNode=Qe,x.dragStartMousePosition={x:ie.clientX,y:ie.clientY};var at=(0,Ot._5)(be,fe);x.setState({draggingNodeKey:fe,dragChildrenKeys:(0,Ot.wA)(fe,ze),indent:x.listRef.current.getIndentWidth()}),x.setExpandedKeys(at),window.addEventListener("dragend",x.onWindowDragEnd),gt==null||gt({event:ie,node:(0,Ce.F)(Qe.props)})},x.onNodeDragEnter=function(ie,Qe){var ye=x.state,be=ye.expandedKeys,ze=ye.keyEntities,gt=ye.dragChildrenKeys,fe=ye.flattenNodes,at=ye.indent,rt=x.props,Le=rt.onDragEnter,Fe=rt.onExpand,ct=rt.allowDrop,Tt=rt.direction,Pt=Qe.props,Yt=Pt.pos,Fr=Pt.eventKey,Lr=(0,g.Z)(x),Or=Lr.dragNode;if(x.currentMouseOverDroppableNodeKey!==Fr&&(x.currentMouseOverDroppableNodeKey=Fr),!Or){x.resetDragState();return}var kr=(0,Ot.OM)(ie,Or,Qe,at,x.dragStartMousePosition,ct,fe,ze,be,Tt),yr=kr.dropPosition,ur=kr.dropLevelOffset,Kr=kr.dropTargetKey,fn=kr.dropContainerKey,Un=kr.dropTargetPos,hn=kr.dropAllowed,Dn=kr.dragOverNodeKey;if(gt.indexOf(Kr)!==-1||!hn){x.resetDragState();return}if(x.delayedDragEnterLogic||(x.delayedDragEnterLogic={}),Object.keys(x.delayedDragEnterLogic).forEach(function(Qi){clearTimeout(x.delayedDragEnterLogic[Qi])}),Or.props.eventKey!==Qe.props.eventKey&&(ie.persist(),x.delayedDragEnterLogic[Yt]=window.setTimeout(function(){if(x.state.draggingNodeKey!==null){var Qi=(0,te.Z)(be),Pr=(0,rr.Z)(ze,Qe.props.eventKey);Pr&&(Pr.children||[]).length&&(Qi=(0,Ot.L0)(be,Qe.props.eventKey)),"expandedKeys"in x.props||x.setExpandedKeys(Qi),Fe==null||Fe(Qi,{node:(0,Ce.F)(Qe.props),expanded:!0,nativeEvent:ie.nativeEvent})}},800)),Or.props.eventKey===Kr&&ur===0){x.resetDragState();return}x.setState({dragOverNodeKey:Dn,dropPosition:yr,dropLevelOffset:ur,dropTargetKey:Kr,dropContainerKey:fn,dropTargetPos:Un,dropAllowed:hn}),Le==null||Le({event:ie,node:(0,Ce.F)(Qe.props),expandedKeys:be})},x.onNodeDragOver=function(ie,Qe){var ye=x.state,be=ye.dragChildrenKeys,ze=ye.flattenNodes,gt=ye.keyEntities,fe=ye.expandedKeys,at=ye.indent,rt=x.props,Le=rt.onDragOver,Fe=rt.allowDrop,ct=rt.direction,Tt=(0,g.Z)(x),Pt=Tt.dragNode;if(Pt){var Yt=(0,Ot.OM)(ie,Pt,Qe,at,x.dragStartMousePosition,Fe,ze,gt,fe,ct),Fr=Yt.dropPosition,Lr=Yt.dropLevelOffset,Or=Yt.dropTargetKey,kr=Yt.dropContainerKey,yr=Yt.dropAllowed,ur=Yt.dropTargetPos,Kr=Yt.dragOverNodeKey;be.indexOf(Or)!==-1||!yr||(Pt.props.eventKey===Or&&Lr===0?x.state.dropPosition===null&&x.state.dropLevelOffset===null&&x.state.dropTargetKey===null&&x.state.dropContainerKey===null&&x.state.dropTargetPos===null&&x.state.dropAllowed===!1&&x.state.dragOverNodeKey===null||x.resetDragState():Fr===x.state.dropPosition&&Lr===x.state.dropLevelOffset&&Or===x.state.dropTargetKey&&kr===x.state.dropContainerKey&&ur===x.state.dropTargetPos&&yr===x.state.dropAllowed&&Kr===x.state.dragOverNodeKey||x.setState({dropPosition:Fr,dropLevelOffset:Lr,dropTargetKey:Or,dropContainerKey:kr,dropTargetPos:ur,dropAllowed:yr,dragOverNodeKey:Kr}),Le==null||Le({event:ie,node:(0,Ce.F)(Qe.props)}))}},x.onNodeDragLeave=function(ie,Qe){x.currentMouseOverDroppableNodeKey===Qe.props.eventKey&&!ie.currentTarget.contains(ie.relatedTarget)&&(x.resetDragState(),x.currentMouseOverDroppableNodeKey=null);var ye=x.props.onDragLeave;ye==null||ye({event:ie,node:(0,Ce.F)(Qe.props)})},x.onWindowDragEnd=function(ie){x.onNodeDragEnd(ie,null,!0),window.removeEventListener("dragend",x.onWindowDragEnd)},x.onNodeDragEnd=function(ie,Qe){var ye=x.props.onDragEnd;x.setState({dragOverNodeKey:null}),x.cleanDragState(),ye==null||ye({event:ie,node:(0,Ce.F)(Qe.props)}),x.dragNode=null,window.removeEventListener("dragend",x.onWindowDragEnd)},x.onNodeDrop=function(ie,Qe){var ye,be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ze=x.state,gt=ze.dragChildrenKeys,fe=ze.dropPosition,at=ze.dropTargetKey,rt=ze.dropTargetPos,Le=ze.dropAllowed;if(Le){var Fe=x.props.onDrop;if(x.setState({dragOverNodeKey:null}),x.cleanDragState(),at!==null){var ct=(0,Ne.Z)((0,Ne.Z)({},(0,Ce.H8)(at,x.getTreeNodeRequiredProps())),{},{active:((ye=x.getActiveItem())===null||ye===void 0?void 0:ye.key)===at,data:(0,rr.Z)(x.state.keyEntities,at).node}),Tt=gt.indexOf(at)!==-1;(0,T.ZP)(!Tt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Pt=(0,Ot.yx)(rt),Yt={event:ie,node:(0,Ce.F)(ct),dragNode:x.dragNode?(0,Ce.F)(x.dragNode.props):null,dragNodesKeys:[x.dragNode.props.eventKey].concat(gt),dropToGap:fe!==0,dropPosition:fe+Number(Pt[Pt.length-1])};be||Fe==null||Fe(Yt),x.dragNode=null}}},x.cleanDragState=function(){var ie=x.state.draggingNodeKey;ie!==null&&x.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),x.dragStartMousePosition=null,x.currentMouseOverDroppableNodeKey=null},x.triggerExpandActionExpand=function(ie,Qe){var ye=x.state,be=ye.expandedKeys,ze=ye.flattenNodes,gt=Qe.expanded,fe=Qe.key,at=Qe.isLeaf;if(!(at||ie.shiftKey||ie.metaKey||ie.ctrlKey)){var rt=ze.filter(function(Fe){return Fe.key===fe})[0],Le=(0,Ce.F)((0,Ne.Z)((0,Ne.Z)({},(0,Ce.H8)(fe,x.getTreeNodeRequiredProps())),{},{data:rt.data}));x.setExpandedKeys(gt?(0,Ot._5)(be,fe):(0,Ot.L0)(be,fe)),x.onNodeExpand(ie,Le)}},x.onNodeClick=function(ie,Qe){var ye=x.props,be=ye.onClick,ze=ye.expandAction;ze==="click"&&x.triggerExpandActionExpand(ie,Qe),be==null||be(ie,Qe)},x.onNodeDoubleClick=function(ie,Qe){var ye=x.props,be=ye.onDoubleClick,ze=ye.expandAction;ze==="doubleClick"&&x.triggerExpandActionExpand(ie,Qe),be==null||be(ie,Qe)},x.onNodeSelect=function(ie,Qe){var ye=x.state.selectedKeys,be=x.state,ze=be.keyEntities,gt=be.fieldNames,fe=x.props,at=fe.onSelect,rt=fe.multiple,Le=Qe.selected,Fe=Qe[gt.key],ct=!Le;ct?rt?ye=(0,Ot.L0)(ye,Fe):ye=[Fe]:ye=(0,Ot._5)(ye,Fe);var Tt=ye.map(function(Pt){var Yt=(0,rr.Z)(ze,Pt);return Yt?Yt.node:null}).filter(function(Pt){return Pt});x.setUncontrolledState({selectedKeys:ye}),at==null||at(ye,{event:"select",selected:ct,node:Qe,selectedNodes:Tt,nativeEvent:ie.nativeEvent})},x.onNodeCheck=function(ie,Qe,ye){var be=x.state,ze=be.keyEntities,gt=be.checkedKeys,fe=be.halfCheckedKeys,at=x.props,rt=at.checkStrictly,Le=at.onCheck,Fe=Qe.key,ct,Tt={event:"check",node:Qe,checked:ye,nativeEvent:ie.nativeEvent};if(rt){var Pt=ye?(0,Ot.L0)(gt,Fe):(0,Ot._5)(gt,Fe),Yt=(0,Ot._5)(fe,Fe);ct={checked:Pt,halfChecked:Yt},Tt.checkedNodes=Pt.map(function(ur){return(0,rr.Z)(ze,ur)}).filter(function(ur){return ur}).map(function(ur){return ur.node}),x.setUncontrolledState({checkedKeys:Pt})}else{var Fr=(0,sr.S)([].concat((0,te.Z)(gt),[Fe]),!0,ze),Lr=Fr.checkedKeys,Or=Fr.halfCheckedKeys;if(!ye){var kr=new Set(Lr);kr.delete(Fe);var yr=(0,sr.S)(Array.from(kr),{checked:!1,halfCheckedKeys:Or},ze);Lr=yr.checkedKeys,Or=yr.halfCheckedKeys}ct=Lr,Tt.checkedNodes=[],Tt.checkedNodesPositions=[],Tt.halfCheckedKeys=Or,Lr.forEach(function(ur){var Kr=(0,rr.Z)(ze,ur);if(Kr){var fn=Kr.node,Un=Kr.pos;Tt.checkedNodes.push(fn),Tt.checkedNodesPositions.push({node:fn,pos:Un})}}),x.setUncontrolledState({checkedKeys:Lr},!1,{halfCheckedKeys:Or})}Le==null||Le(ct,Tt)},x.onNodeLoad=function(ie){var Qe=ie.key,ye=new Promise(function(be,ze){x.setState(function(gt){var fe=gt.loadedKeys,at=fe===void 0?[]:fe,rt=gt.loadingKeys,Le=rt===void 0?[]:rt,Fe=x.props,ct=Fe.loadData,Tt=Fe.onLoad;if(!ct||at.indexOf(Qe)!==-1||Le.indexOf(Qe)!==-1)return null;var Pt=ct(ie);return Pt.then(function(){var Yt=x.state.loadedKeys,Fr=(0,Ot.L0)(Yt,Qe);Tt==null||Tt(Fr,{event:"load",node:ie}),x.setUncontrolledState({loadedKeys:Fr}),x.setState(function(Lr){return{loadingKeys:(0,Ot._5)(Lr.loadingKeys,Qe)}}),be()}).catch(function(Yt){if(x.setState(function(Lr){return{loadingKeys:(0,Ot._5)(Lr.loadingKeys,Qe)}}),x.loadingRetryTimes[Qe]=(x.loadingRetryTimes[Qe]||0)+1,x.loadingRetryTimes[Qe]>=br){var Fr=x.state.loadedKeys;(0,T.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),x.setUncontrolledState({loadedKeys:(0,Ot.L0)(Fr,Qe)}),be()}ze(Yt)}),{loadingKeys:(0,Ot.L0)(Le,Qe)}})});return ye.catch(function(){}),ye},x.onNodeMouseEnter=function(ie,Qe){var ye=x.props.onMouseEnter;ye==null||ye({event:ie,node:Qe})},x.onNodeMouseLeave=function(ie,Qe){var ye=x.props.onMouseLeave;ye==null||ye({event:ie,node:Qe})},x.onNodeContextMenu=function(ie,Qe){var ye=x.props.onRightClick;ye&&(ie.preventDefault(),ye({event:ie,node:Qe}))},x.onFocus=function(){var ie=x.props.onFocus;x.setState({focused:!0});for(var Qe=arguments.length,ye=new Array(Qe),be=0;be<Qe;be++)ye[be]=arguments[be];ie==null||ie.apply(void 0,ye)},x.onBlur=function(){var ie=x.props.onBlur;x.setState({focused:!1}),x.onActiveChange(null);for(var Qe=arguments.length,ye=new Array(Qe),be=0;be<Qe;be++)ye[be]=arguments[be];ie==null||ie.apply(void 0,ye)},x.getTreeNodeRequiredProps=function(){var ie=x.state,Qe=ie.expandedKeys,ye=ie.selectedKeys,be=ie.loadedKeys,ze=ie.loadingKeys,gt=ie.checkedKeys,fe=ie.halfCheckedKeys,at=ie.dragOverNodeKey,rt=ie.dropPosition,Le=ie.keyEntities;return{expandedKeys:Qe||[],selectedKeys:ye||[],loadedKeys:be||[],loadingKeys:ze||[],checkedKeys:gt||[],halfCheckedKeys:fe||[],dragOverNodeKey:at,dropPosition:rt,keyEntities:Le}},x.setExpandedKeys=function(ie){var Qe=x.state,ye=Qe.treeData,be=Qe.fieldNames,ze=(0,Ce.oH)(ye,ie,be);x.setUncontrolledState({expandedKeys:ie,flattenNodes:ze},!0)},x.onNodeExpand=function(ie,Qe){var ye=x.state.expandedKeys,be=x.state,ze=be.listChanging,gt=be.fieldNames,fe=x.props,at=fe.onExpand,rt=fe.loadData,Le=Qe.expanded,Fe=Qe[gt.key];if(!ze){var ct=ye.indexOf(Fe),Tt=!Le;if((0,T.ZP)(Le&&ct!==-1||!Le&&ct===-1,"Expand state not sync with index check"),Tt?ye=(0,Ot.L0)(ye,Fe):ye=(0,Ot._5)(ye,Fe),x.setExpandedKeys(ye),at==null||at(ye,{node:Qe,expanded:Tt,nativeEvent:ie.nativeEvent}),Tt&&rt){var Pt=x.onNodeLoad(Qe);Pt&&Pt.then(function(){var Yt=(0,Ce.oH)(x.state.treeData,ye,gt);x.setUncontrolledState({flattenNodes:Yt})}).catch(function(){var Yt=x.state.expandedKeys,Fr=(0,Ot._5)(Yt,Fe);x.setExpandedKeys(Fr)})}}},x.onListChangeStart=function(){x.setUncontrolledState({listChanging:!0})},x.onListChangeEnd=function(){setTimeout(function(){x.setUncontrolledState({listChanging:!1})})},x.onActiveChange=function(ie){var Qe=x.state.activeKey,ye=x.props.onActiveChange;Qe!==ie&&(x.setState({activeKey:ie}),ie!==null&&x.scrollTo({key:ie}),ye==null||ye(ie))},x.getActiveItem=function(){var ie=x.state,Qe=ie.activeKey,ye=ie.flattenNodes;return Qe===null?null:ye.find(function(be){var ze=be.key;return ze===Qe})||null},x.offsetActiveKey=function(ie){var Qe=x.state,ye=Qe.flattenNodes,be=Qe.activeKey,ze=ye.findIndex(function(at){var rt=at.key;return rt===be});ze===-1&&ie<0&&(ze=ye.length),ze=(ze+ie+ye.length)%ye.length;var gt=ye[ze];if(gt){var fe=gt.key;x.onActiveChange(fe)}else x.onActiveChange(null)},x.onKeyDown=function(ie){var Qe=x.state,ye=Qe.activeKey,be=Qe.expandedKeys,ze=Qe.checkedKeys,gt=Qe.fieldNames,fe=x.props,at=fe.onKeyDown,rt=fe.checkable,Le=fe.selectable;switch(ie.which){case M.Z.UP:{x.offsetActiveKey(-1),ie.preventDefault();break}case M.Z.DOWN:{x.offsetActiveKey(1),ie.preventDefault();break}}var Fe=x.getActiveItem();if(Fe&&Fe.data){var ct=x.getTreeNodeRequiredProps(),Tt=Fe.data.isLeaf===!1||!!(Fe.data[gt.children]||[]).length,Pt=(0,Ce.F)((0,Ne.Z)((0,Ne.Z)({},(0,Ce.H8)(ye,ct)),{},{data:Fe.data,active:!0}));switch(ie.which){case M.Z.LEFT:{Tt&&be.includes(ye)?x.onNodeExpand({},Pt):Fe.parent&&x.onActiveChange(Fe.parent.key),ie.preventDefault();break}case M.Z.RIGHT:{Tt&&!be.includes(ye)?x.onNodeExpand({},Pt):Fe.children&&Fe.children.length&&x.onActiveChange(Fe.children[0].key),ie.preventDefault();break}case M.Z.ENTER:case M.Z.SPACE:{rt&&!Pt.disabled&&Pt.checkable!==!1&&!Pt.disableCheckbox?x.onNodeCheck({},Pt,!ze.includes(ye)):!rt&&Le&&!Pt.disabled&&Pt.selectable!==!1&&x.onNodeSelect({},Pt);break}}}at==null||at(ie)},x.setUncontrolledState=function(ie){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!x.destroyed){var be=!1,ze=!0,gt={};Object.keys(ie).forEach(function(fe){if(fe in x.props){ze=!1;return}be=!0,gt[fe]=ie[fe]}),be&&(!Qe||ze)&&x.setState((0,Ne.Z)((0,Ne.Z)({},gt),ye))}},x.scrollTo=function(ie){x.listRef.current.scrollTo(ie)},x}return(0,S.Z)(f,[{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,Be=this.state,H=Be.focused,ie=Be.flattenNodes,Qe=Be.keyEntities,ye=Be.draggingNodeKey,be=Be.activeKey,ze=Be.dropLevelOffset,gt=Be.dropContainerKey,fe=Be.dropTargetKey,at=Be.dropPosition,rt=Be.dragOverNodeKey,Le=Be.indent,Fe=this.props,ct=Fe.prefixCls,Tt=Fe.className,Pt=Fe.style,Yt=Fe.showLine,Fr=Fe.focusable,Lr=Fe.tabIndex,Or=Lr===void 0?0:Lr,kr=Fe.selectable,yr=Fe.showIcon,ur=Fe.icon,Kr=Fe.switcherIcon,fn=Fe.draggable,Un=Fe.checkable,hn=Fe.checkStrictly,Dn=Fe.disabled,Qi=Fe.motion,Pr=Fe.loadData,xn=Fe.filterTreeNode,Ei=Fe.height,di=Fe.itemHeight,Zi=Fe.virtual,_i=Fe.titleRender,ji=Fe.dropIndicatorRender,qa=Fe.onContextMenu,Ki=Fe.onScroll,ti=Fe.direction,gi=Fe.rootClassName,yi=Fe.rootStyle,$e=(0,O.Z)(this.props,{aria:!0,data:!0}),_e;return fn&&((0,P.Z)(fn)==="object"?_e=fn:typeof fn=="function"?_e={nodeDraggable:fn}:_e={}),L.createElement(q.k.Provider,{value:{prefixCls:ct,selectable:kr,showIcon:yr,icon:ur,switcherIcon:Kr,draggable:_e,draggingNodeKey:ye,checkable:Un,checkStrictly:hn,disabled:Dn,keyEntities:Qe,dropLevelOffset:ze,dropContainerKey:gt,dropTargetKey:fe,dropPosition:at,dragOverNodeKey:rt,indent:Le,direction:ti,dropIndicatorRender:ji,loadData:Pr,filterTreeNode:xn,titleRender:_i,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}},L.createElement("div",{role:"tree",className:_()(ct,Tt,gi,(Y={},(0,Ae.Z)(Y,"".concat(ct,"-show-line"),Yt),(0,Ae.Z)(Y,"".concat(ct,"-focused"),H),(0,Ae.Z)(Y,"".concat(ct,"-active-focused"),be!==null),Y)),style:yi},L.createElement(kt,(0,pe.Z)({ref:this.listRef,prefixCls:ct,style:Pt,data:ie,disabled:Dn,selectable:kr,checkable:!!Un,motion:Qi,dragging:ye!==null,height:Ei,itemHeight:di,virtual:Zi,focusable:Fr,focused:H,tabIndex:Or,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:qa,onScroll:Ki},this.getTreeNodeRequiredProps(),$e))))}}],[{key:"getDerivedStateFromProps",value:function(Y,Be){var H=Be.prevProps,ie={prevProps:Y};function Qe(Fr){return!H&&Fr in Y||H&&H[Fr]!==Y[Fr]}var ye,be=Be.fieldNames;if(Qe("fieldNames")&&(be=(0,Ce.w$)(Y.fieldNames),ie.fieldNames=be),Qe("treeData")?ye=Y.treeData:Qe("children")&&((0,T.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ye=(0,Ce.zn)(Y.children)),ye){ie.treeData=ye;var ze=(0,Ce.I8)(ye,{fieldNames:be});ie.keyEntities=(0,Ne.Z)((0,Ae.Z)({},De,Se),ze.keyEntities)}var gt=ie.keyEntities||Be.keyEntities;if(Qe("expandedKeys")||H&&Qe("autoExpandParent"))ie.expandedKeys=Y.autoExpandParent||!H&&Y.defaultExpandParent?(0,Ot.r7)(Y.expandedKeys,gt):Y.expandedKeys;else if(!H&&Y.defaultExpandAll){var fe=(0,Ne.Z)({},gt);delete fe[De],ie.expandedKeys=Object.keys(fe).map(function(Fr){return fe[Fr].key})}else!H&&Y.defaultExpandedKeys&&(ie.expandedKeys=Y.autoExpandParent||Y.defaultExpandParent?(0,Ot.r7)(Y.defaultExpandedKeys,gt):Y.defaultExpandedKeys);if(ie.expandedKeys||delete ie.expandedKeys,ye||ie.expandedKeys){var at=(0,Ce.oH)(ye||Be.treeData,ie.expandedKeys||Be.expandedKeys,be);ie.flattenNodes=at}if(Y.selectable&&(Qe("selectedKeys")?ie.selectedKeys=(0,Ot.BT)(Y.selectedKeys,Y):!H&&Y.defaultSelectedKeys&&(ie.selectedKeys=(0,Ot.BT)(Y.defaultSelectedKeys,Y))),Y.checkable){var rt;if(Qe("checkedKeys")?rt=(0,Ot.E6)(Y.checkedKeys)||{}:!H&&Y.defaultCheckedKeys?rt=(0,Ot.E6)(Y.defaultCheckedKeys)||{}:ye&&(rt=(0,Ot.E6)(Y.checkedKeys)||{checkedKeys:Be.checkedKeys,halfCheckedKeys:Be.halfCheckedKeys}),rt){var Le=rt,Fe=Le.checkedKeys,ct=Fe===void 0?[]:Fe,Tt=Le.halfCheckedKeys,Pt=Tt===void 0?[]:Tt;if(!Y.checkStrictly){var Yt=(0,sr.S)(ct,!0,gt);ct=Yt.checkedKeys,Pt=Yt.halfCheckedKeys}ie.checkedKeys=ct,ie.halfCheckedKeys=Pt}}return Qe("loadedKeys")&&(ie.loadedKeys=Y.loadedKeys),ie}}]),f}(L.Component);lr.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:R,allowDrop:function(){return!0},expandAction:!1},lr.TreeNode=me.Z;var V=lr,dt=V},35654:function(dn,Ut,C){"use strict";C.d(Ut,{BT:function(){return L},E6:function(){return se},L0:function(){return v},OM:function(){return T},_5:function(){return F},r7:function(){return ne},wA:function(){return _},yx:function(){return $}});var pe=C(94480),Ae=C(76190),P=C(48736),Ne=C(59301),te=C(39417),W=C(67841),S=C(71430),g=null;function F(J,G){if(!J)return[];var K=J.slice(),le=K.indexOf(G);return le>=0&&K.splice(le,1),K}function v(J,G){var K=(J||[]).slice();return K.indexOf(G)===-1&&K.push(G),K}function $(J){return J.split("-")}function _(J,G){var K=[],le=(0,W.Z)(G,J);function me(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Oe.forEach(function(Ce){var Ue=Ce.key,ee=Ce.children;K.push(Ue),me(ee)})}return me(le.children),K}function M(J){if(J.parent){var G=$(J.pos);return Number(G[G.length-1])===J.parent.children.length-1}return!1}function O(J){var G=$(J.pos);return Number(G[G.length-1])===0}function T(J,G,K,le,me,Oe,Ce,Ue,ee,de){var D,Ye=J.clientX,ke=J.clientY,xe=J.target.getBoundingClientRect(),Te=xe.top,ve=xe.height,De=(de==="rtl"?-1:1)*(((me==null?void 0:me.x)||0)-Ye),he=(De-12)/le,Se=(0,W.Z)(Ue,K.props.eventKey);if(ke<Te+ve/2){var Xe=Ce.findIndex(function(dt){return dt.key===Se.key}),et=Xe<=0?0:Xe-1,je=Ce[et].key;Se=(0,W.Z)(Ue,je)}var qe=Se.key,Et=Se,kt=Se.key,Ot=0,sr=0;if(!ee.includes(qe))for(var rr=0;rr<he&&M(Se);rr+=1)Se=Se.parent,sr+=1;var br=G.props.data,lr=Se.node,V=!0;return O(Se)&&Se.level===0&&ke<Te+ve/2&&Oe({dragNode:br,dropNode:lr,dropPosition:-1})&&Se.key===K.props.eventKey?Ot=-1:(Et.children||[]).length&&ee.includes(kt)?Oe({dragNode:br,dropNode:lr,dropPosition:0})?Ot=0:V=!1:sr===0?he>-1.5?Oe({dragNode:br,dropNode:lr,dropPosition:1})?Ot=1:V=!1:Oe({dragNode:br,dropNode:lr,dropPosition:0})?Ot=0:Oe({dragNode:br,dropNode:lr,dropPosition:1})?Ot=1:V=!1:Oe({dragNode:br,dropNode:lr,dropPosition:1})?Ot=1:V=!1,{dropPosition:Ot,dropLevelOffset:sr,dropTargetKey:Se.key,dropTargetPos:Se.pos,dragOverNodeKey:kt,dropContainerKey:Ot===0?null:((D=Se.parent)===null||D===void 0?void 0:D.key)||null,dropAllowed:V}}function L(J,G){if(J){var K=G.multiple;return K?J.slice():J.length?[J[0]]:J}}var q=function(G){return G};function R(J,G){if(!J)return[];var K=G||{},le=K.processProps,me=le===void 0?q:le,Oe=Array.isArray(J)?J:[J];return Oe.map(function(Ce){var Ue=Ce.children,ee=_objectWithoutProperties(Ce,g),de=R(Ue,G);return React.createElement(TreeNode,_extends({key:ee.key},me(ee)),de)})}function se(J){if(!J)return null;var G;if(Array.isArray(J))G={checkedKeys:J,halfCheckedKeys:void 0};else if((0,Ae.Z)(J)==="object")G={checkedKeys:J.checked||void 0,halfCheckedKeys:J.halfChecked||void 0};else return(0,P.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return G}function ne(J,G){var K=new Set;function le(me){if(!K.has(me)){var Oe=(0,W.Z)(G,me);if(Oe){K.add(me);var Ce=Oe.parent,Ue=Oe.node;Ue.disabled||Ce&&le(Ce.key)}}}return(J||[]).forEach(function(me){le(me)}),(0,pe.Z)(K)}},90782:function(dn,Ut,C){"use strict";C.d(Ut,{S:function(){return S}});var pe=C(48736),Ae=C(67841);function P(g,F){var v=new Set;return g.forEach(function($){F.has($)||v.add($)}),v}function Ne(g){var F=g||{},v=F.disabled,$=F.disableCheckbox,_=F.checkable;return!!(v||$)||_===!1}function te(g,F,v,$){for(var _=new Set(g),M=new Set,O=0;O<=v;O+=1){var T=F.get(O)||new Set;T.forEach(function(se){var ne=se.key,J=se.node,G=se.children,K=G===void 0?[]:G;_.has(ne)&&!$(J)&&K.filter(function(le){return!$(le.node)}).forEach(function(le){_.add(le.key)})})}for(var L=new Set,q=v;q>=0;q-=1){var R=F.get(q)||new Set;R.forEach(function(se){var ne=se.parent,J=se.node;if(!($(J)||!se.parent||L.has(se.parent.key))){if($(se.parent.node)){L.add(ne.key);return}var G=!0,K=!1;(ne.children||[]).filter(function(le){return!$(le.node)}).forEach(function(le){var me=le.key,Oe=_.has(me);G&&!Oe&&(G=!1),!K&&(Oe||M.has(me))&&(K=!0)}),G&&_.add(ne.key),K&&M.add(ne.key),L.add(ne.key)}})}return{checkedKeys:Array.from(_),halfCheckedKeys:Array.from(P(M,_))}}function W(g,F,v,$,_){for(var M=new Set(g),O=new Set(F),T=0;T<=$;T+=1){var L=v.get(T)||new Set;L.forEach(function(ne){var J=ne.key,G=ne.node,K=ne.children,le=K===void 0?[]:K;!M.has(J)&&!O.has(J)&&!_(G)&&le.filter(function(me){return!_(me.node)}).forEach(function(me){M.delete(me.key)})})}O=new Set;for(var q=new Set,R=$;R>=0;R-=1){var se=v.get(R)||new Set;se.forEach(function(ne){var J=ne.parent,G=ne.node;if(!(_(G)||!ne.parent||q.has(ne.parent.key))){if(_(ne.parent.node)){q.add(J.key);return}var K=!0,le=!1;(J.children||[]).filter(function(me){return!_(me.node)}).forEach(function(me){var Oe=me.key,Ce=M.has(Oe);K&&!Ce&&(K=!1),!le&&(Ce||O.has(Oe))&&(le=!0)}),K||M.delete(J.key),le&&O.add(J.key),q.add(J.key)}})}return{checkedKeys:Array.from(M),halfCheckedKeys:Array.from(P(O,M))}}function S(g,F,v,$){var _=[],M;$?M=$:M=Ne;var O=new Set(g.filter(function(R){var se=!!(0,Ae.Z)(v,R);return se||_.push(R),se})),T=new Map,L=0;Object.keys(v).forEach(function(R){var se=v[R],ne=se.level,J=T.get(ne);J||(J=new Set,T.set(ne,J)),J.add(se),L=Math.max(L,ne)}),(0,pe.ZP)(!_.length,"Tree missing follow keys: ".concat(_.slice(0,100).map(function(R){return"'".concat(R,"'")}).join(", ")));var q;return F===!0?q=te(O,T,L,M):q=W(O,F.halfCheckedKeys,T,L,M),q}},67841:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return pe}});function pe(Ae,P){return Ae[P]}},71430:function(dn,Ut,C){"use strict";C.d(Ut,{F:function(){return ne},H8:function(){return se},I8:function(){return R},km:function(){return _},oH:function(){return L},w$:function(){return M},zn:function(){return T}});var pe=C(76190),Ae=C(94480),P=C(33885),Ne=C(75931),te=C(11592),W=C(2738),S=C(48736),g=C(67841),F=["children"];function v(J,G){return"".concat(J,"-").concat(G)}function $(J){return J&&J.type&&J.type.isTreeNode}function _(J,G){return J!=null?J:G}function M(J){var G=J||{},K=G.title,le=G._title,me=G.key,Oe=G.children,Ce=K||"title";return{title:Ce,_title:le||[Ce],key:me||"key",children:Oe||"children"}}function O(J,G){var K=new Map;function le(me){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(me||[]).forEach(function(Ce){var Ue=Ce[G.key],ee=Ce[G.children];warning(Ue!=null,"Tree node must have a certain key: [".concat(Oe).concat(Ue,"]"));var de=String(Ue);warning(!K.has(de)||Ue===null||Ue===void 0,"Same 'key' exist in the Tree: ".concat(de)),K.set(de,!0),le(ee,"".concat(Oe).concat(de," > "))})}le(J)}function T(J){function G(K){var le=(0,te.Z)(K);return le.map(function(me){if(!$(me))return(0,S.ZP)(!me,"Tree/TreeNode can only accept TreeNode as children."),null;var Oe=me.key,Ce=me.props,Ue=Ce.children,ee=(0,Ne.Z)(Ce,F),de=(0,P.Z)({key:Oe},ee),D=G(Ue);return D.length&&(de.children=D),de}).filter(function(me){return me})}return G(J)}function L(J,G,K){var le=M(K),me=le._title,Oe=le.key,Ce=le.children,Ue=new Set(G===!0?[]:G),ee=[];function de(D){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return D.map(function(ke,xe){for(var Te=v(Ye?Ye.pos:"0",xe),ve=_(ke[Oe],Te),De,he=0;he<me.length;he+=1){var Se=me[he];if(ke[Se]!==void 0){De=ke[Se];break}}var Xe=(0,P.Z)((0,P.Z)({},(0,W.Z)(ke,[].concat((0,Ae.Z)(me),[Oe,Ce]))),{},{title:De,key:ve,parent:Ye,pos:Te,children:null,data:ke,isStart:[].concat((0,Ae.Z)(Ye?Ye.isStart:[]),[xe===0]),isEnd:[].concat((0,Ae.Z)(Ye?Ye.isEnd:[]),[xe===D.length-1])});return ee.push(Xe),G===!0||Ue.has(ve)?Xe.children=de(ke[Ce]||[],Xe):Xe.children=[],Xe})}return de(J),ee}function q(J,G,K){var le={};(0,pe.Z)(K)==="object"?le=K:le={externalGetKey:K},le=le||{};var me=le,Oe=me.childrenPropName,Ce=me.externalGetKey,Ue=me.fieldNames,ee=M(Ue),de=ee.key,D=ee.children,Ye=Oe||D,ke;Ce?typeof Ce=="string"?ke=function(ve){return ve[Ce]}:typeof Ce=="function"&&(ke=function(ve){return Ce(ve)}):ke=function(ve,De){return _(ve[de],De)};function xe(Te,ve,De,he){var Se=Te?Te[Ye]:J,Xe=Te?v(De.pos,ve):"0",et=Te?[].concat((0,Ae.Z)(he),[Te]):[];if(Te){var je=ke(Te,Xe),qe={node:Te,index:ve,pos:Xe,key:je,parentPos:De.node?De.pos:null,level:De.level+1,nodes:et};G(qe)}Se&&Se.forEach(function(Et,kt){xe(Et,kt,{node:Te,pos:Xe,level:De?De.level+1:-1},et)})}xe(null)}function R(J){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=G.initWrapper,le=G.processEntity,me=G.onProcessFinished,Oe=G.externalGetKey,Ce=G.childrenPropName,Ue=G.fieldNames,ee=arguments.length>2?arguments[2]:void 0,de=Oe||ee,D={},Ye={},ke={posEntities:D,keyEntities:Ye};return K&&(ke=K(ke)||ke),q(J,function(xe){var Te=xe.node,ve=xe.index,De=xe.pos,he=xe.key,Se=xe.parentPos,Xe=xe.level,et=xe.nodes,je={node:Te,nodes:et,index:ve,key:he,pos:De,level:Xe},qe=_(he,De);D[De]=je,Ye[qe]=je,je.parent=D[Se],je.parent&&(je.parent.children=je.parent.children||[],je.parent.children.push(je)),le&&le(je,ke)},{externalGetKey:de,childrenPropName:Ce,fieldNames:Ue}),me&&me(ke),ke}function se(J,G){var K=G.expandedKeys,le=G.selectedKeys,me=G.loadedKeys,Oe=G.loadingKeys,Ce=G.checkedKeys,Ue=G.halfCheckedKeys,ee=G.dragOverNodeKey,de=G.dropPosition,D=G.keyEntities,Ye=(0,g.Z)(D,J),ke={eventKey:J,expanded:K.indexOf(J)!==-1,selected:le.indexOf(J)!==-1,loaded:me.indexOf(J)!==-1,loading:Oe.indexOf(J)!==-1,checked:Ce.indexOf(J)!==-1,halfChecked:Ue.indexOf(J)!==-1,pos:String(Ye?Ye.pos:""),dragOver:ee===J&&de===0,dragOverGapTop:ee===J&&de===-1,dragOverGapBottom:ee===J&&de===1};return ke}function ne(J){var G=J.data,K=J.expanded,le=J.selected,me=J.checked,Oe=J.loaded,Ce=J.loading,Ue=J.halfChecked,ee=J.dragOver,de=J.dragOverGapTop,D=J.dragOverGapBottom,Ye=J.pos,ke=J.active,xe=J.eventKey,Te=(0,P.Z)((0,P.Z)({},G),{},{expanded:K,selected:le,checked:me,loaded:Oe,loading:Ce,halfChecked:Ue,dragOver:ee,dragOverGapTop:de,dragOverGapBottom:D,pos:Ye,active:ke,key:xe});return"props"in Te||Object.defineProperty(Te,"props",{get:function(){return(0,S.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),J}}),Te}},8224:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return Ae}});var pe=C(4676);function Ae(P,Ne,te,W){var S=pe.unstable_batchedUpdates?function(F){pe.unstable_batchedUpdates(te,F)}:te;return P!=null&&P.addEventListener&&P.addEventListener(Ne,S,W),{remove:function(){P!=null&&P.removeEventListener&&P.removeEventListener(Ne,S,W)}}}},55468:function(dn,Ut,C){"use strict";C.d(Ut,{g1:function(){return $},os:function(){return M}});var pe=/margin|padding|width|height|max|min|offset/,Ae={left:!0,top:!0},P={cssFloat:1,styleFloat:1,float:1};function Ne(O){return O.nodeType===1?O.ownerDocument.defaultView.getComputedStyle(O,null):{}}function te(O,T,L){if(T=T.toLowerCase(),L==="auto"){if(T==="height")return O.offsetHeight;if(T==="width")return O.offsetWidth}return T in Ae||(Ae[T]=pe.test(T)),Ae[T]?parseFloat(L)||0:L}function W(O,T){var L=arguments.length,q=Ne(O);return T=P[T]?"cssFloat"in O.style?"cssFloat":"styleFloat":T,L===1?q:te(O,T,q[T]||O.style[T])}function S(O,T,L){var q=arguments.length;if(T=P[T]?"cssFloat"in O.style?"cssFloat":"styleFloat":T,q===3)return typeof L=="number"&&pe.test(T)&&(L="".concat(L,"px")),O.style[T]=L,L;for(var R in T)T.hasOwnProperty(R)&&S(O,R,T[R]);return Ne(O)}function g(O){return O===document.body?document.documentElement.clientWidth:O.offsetWidth}function F(O){return O===document.body?window.innerHeight||document.documentElement.clientHeight:O.offsetHeight}function v(){var O=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),T=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:O,height:T}}function $(){var O=document.documentElement.clientWidth,T=window.innerHeight||document.documentElement.clientHeight;return{width:O,height:T}}function _(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function M(O){var T=O.getBoundingClientRect(),L=document.documentElement;return{left:T.left+(window.pageXOffset||L.scrollLeft)-(L.clientLeft||document.body.clientLeft||0),top:T.top+(window.pageYOffset||L.scrollTop)-(L.clientTop||document.body.clientTop||0)}}},3465:function(dn,Ut,C){"use strict";C.d(Ut,{G:function(){return Ne}});var pe=C(47273),Ae=function(W){if((0,pe.Z)()&&window.document.documentElement){var S=Array.isArray(W)?W:[W],g=window.document.documentElement;return S.some(function(F){return F in g.style})}return!1},P=function(W,S){if(!Ae(W))return!1;var g=document.createElement("div"),F=g.style[W];return g.style[W]=S,g.style[W]!==F};function Ne(te,W){return!Array.isArray(te)&&W!==void 0?P(te,W):Ae(te)}},48911:function(dn,Ut,C){"use strict";C.d(Ut,{Z:function(){return lr}});var pe=C(54476),Ae=C(76190),P=C(33885),Ne=C(20068),te=C(42978),W=C(75931),S=C(92310),g=C.n(S),F=C(29301),v=C(70425),$=C(34280),_=C(59301),M=C(4676),O=_.forwardRef(function(V,dt){var I=V.height,p=V.offsetY,f=V.offsetX,x=V.children,Y=V.prefixCls,Be=V.onInnerResize,H=V.innerProps,ie=V.rtl,Qe=V.extra,ye={},be={display:"flex",flexDirection:"column"};return p!==void 0&&(ye={height:I,position:"relative",overflow:"hidden"},be=(0,P.Z)((0,P.Z)({},be),{},(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({transform:"translateY(".concat(p,"px)")},ie?"marginRight":"marginLeft",-f),"position","absolute"),"left",0),"right",0),"top",0))),_.createElement("div",{style:ye},_.createElement(F.Z,{onResize:function(gt){var fe=gt.offsetHeight;fe&&Be&&Be()}},_.createElement("div",(0,pe.Z)({style:be,className:g()((0,Ne.Z)({},"".concat(Y,"-holder-inner"),Y)),ref:dt},H),x,Qe)))});O.displayName="Filler";var T=O;function L(V){var dt=V.children,I=V.setRef,p=_.useCallback(function(f){I(f)},[]);return _.cloneElement(dt,{ref:p})}function q(V,dt,I,p,f,x,Y,Be){var H=Be.getKey;return V.slice(dt,I+1).map(function(ie,Qe){var ye=dt+Qe,be=Y(ie,ye,{style:{width:p},offsetX:f}),ze=H(ie);return _.createElement(L,{key:ze,setRef:function(fe){return x(ie,fe)}},be)})}function R(V,dt,I,p){var f=I-V,x=dt-I,Y=Math.min(f,x)*2;if(p<=Y){var Be=Math.floor(p/2);return p%2?I+Be+1:I-Be}return f>x?I-(p-x):I+(p-f)}function se(V,dt,I){var p=V.length,f=dt.length,x,Y;if(p===0&&f===0)return null;p<f?(x=V,Y=dt):(x=dt,Y=V);var Be={__EMPTY_ITEM__:!0};function H(gt){return gt!==void 0?I(gt):Be}for(var ie=null,Qe=Math.abs(p-f)!==1,ye=0;ye<Y.length;ye+=1){var be=H(x[ye]),ze=H(Y[ye]);if(be!==ze){ie=ye,Qe=Qe||be!==H(Y[ye+1]);break}}return ie===null?null:{index:ie,multiple:Qe}}function ne(V,dt,I){var p=_.useState(V),f=(0,te.Z)(p,2),x=f[0],Y=f[1],Be=_.useState(null),H=(0,te.Z)(Be,2),ie=H[0],Qe=H[1];return _.useEffect(function(){var ye=se(x||[],V||[],dt);(ye==null?void 0:ye.index)!==void 0&&(I==null||I(ye.index),Qe(V[ye.index])),Y(V)},[V]),[ie]}var J=C(16089),G=(typeof navigator=="undefined"?"undefined":(0,Ae.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),K=G,le=function(V,dt,I,p){var f=(0,_.useRef)(!1),x=(0,_.useRef)(null);function Y(){clearTimeout(x.current),f.current=!0,x.current=setTimeout(function(){f.current=!1},50)}var Be=(0,_.useRef)({top:V,bottom:dt,left:I,right:p});return Be.current.top=V,Be.current.bottom=dt,Be.current.left=I,Be.current.right=p,function(H,ie){var Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ye=H?ie<0&&Be.current.left||ie>0&&Be.current.right:ie<0&&Be.current.top||ie>0&&Be.current.bottom;return Qe&&ye?(clearTimeout(x.current),f.current=!1):(!ye||f.current)&&Y(),!f.current&&ye}};function me(V,dt,I,p,f,x,Y){var Be=(0,_.useRef)(0),H=(0,_.useRef)(null),ie=(0,_.useRef)(null),Qe=(0,_.useRef)(!1),ye=le(dt,I,p,f);function be(Le,Fe){if(J.Z.cancel(H.current),!ye(!1,Fe)){var ct=Le;if(!ct._virtualHandled)ct._virtualHandled=!0;else return;Be.current+=Fe,ie.current=Fe,K||ct.preventDefault(),H.current=(0,J.Z)(function(){var Tt=Qe.current?10:1;Y(Be.current*Tt,!1),Be.current=0})}}function ze(Le,Fe){Y(Fe,!0),K||Le.preventDefault()}var gt=(0,_.useRef)(null),fe=(0,_.useRef)(null);function at(Le){if(V){J.Z.cancel(fe.current),fe.current=(0,J.Z)(function(){gt.current=null},2);var Fe=Le.deltaX,ct=Le.deltaY,Tt=Le.shiftKey,Pt=Fe,Yt=ct;(gt.current==="sx"||!gt.current&&Tt&&ct&&!Fe)&&(Pt=ct,Yt=0,gt.current="sx");var Fr=Math.abs(Pt),Lr=Math.abs(Yt);gt.current===null&&(gt.current=x&&Fr>Lr?"x":"y"),gt.current==="y"?be(Le,Yt):ze(Le,Pt)}}function rt(Le){V&&(Qe.current=Le.detail===ie.current)}return[at,rt]}function Oe(V,dt,I,p){var f=_.useMemo(function(){return[new Map,[]]},[V,I.id,p]),x=(0,te.Z)(f,2),Y=x[0],Be=x[1],H=function(Qe){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qe,be=Y.get(Qe),ze=Y.get(ye);if(be===void 0||ze===void 0)for(var gt=V.length,fe=Be.length;fe<gt;fe+=1){var at,rt=V[fe],Le=dt(rt);Y.set(Le,fe);var Fe=(at=I.get(Le))!==null&&at!==void 0?at:p;if(Be[fe]=(Be[fe-1]||0)+Fe,Le===Qe&&(be=fe),Le===ye&&(ze=fe),be!==void 0&&ze!==void 0)break}return{top:Be[be-1]||0,bottom:Be[ze]}};return H}var Ce=C(67732),Ue=C(83652),ee=function(){function V(){(0,Ce.Z)(this,V),(0,Ne.Z)(this,"maps",void 0),(0,Ne.Z)(this,"id",0),(0,Ne.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Ue.Z)(V,[{key:"set",value:function(I,p){this.diffRecords.set(I,this.maps[I]),this.maps[I]=p,this.id+=1}},{key:"get",value:function(I){return this.maps[I]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),V}(),de=ee;function D(V){var dt=parseFloat(V);return isNaN(dt)?0:dt}function Ye(V,dt,I){var p=_.useState(0),f=(0,te.Z)(p,2),x=f[0],Y=f[1],Be=(0,_.useRef)(new Map),H=(0,_.useRef)(new de),ie=(0,_.useRef)(0);function Qe(){ie.current+=1}function ye(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Qe();var gt=function(){var rt=!1;Be.current.forEach(function(Le,Fe){if(Le&&Le.offsetParent){var ct=Le.offsetHeight,Tt=getComputedStyle(Le),Pt=Tt.marginTop,Yt=Tt.marginBottom,Fr=D(Pt),Lr=D(Yt),Or=ct+Fr+Lr;H.current.get(Fe)!==Or&&(H.current.set(Fe,Or),rt=!0)}}),rt&&Y(function(Le){return Le+1})};if(ze)gt();else{ie.current+=1;var fe=ie.current;Promise.resolve().then(function(){fe===ie.current&&gt()})}}function be(ze,gt){var fe=V(ze),at=Be.current.get(fe);gt?(Be.current.set(fe,gt),ye()):Be.current.delete(fe),!at!=!gt&&(gt?dt==null||dt(ze):I==null||I(ze))}return(0,_.useEffect)(function(){return Qe},[]),[be,ye,H.current,x]}var ke=14/15;function xe(V,dt,I){var p=(0,_.useRef)(!1),f=(0,_.useRef)(0),x=(0,_.useRef)(0),Y=(0,_.useRef)(null),Be=(0,_.useRef)(null),H,ie=function(ze){if(p.current){var gt=Math.ceil(ze.touches[0].pageX),fe=Math.ceil(ze.touches[0].pageY),at=f.current-gt,rt=x.current-fe,Le=Math.abs(at)>Math.abs(rt);Le?f.current=gt:x.current=fe;var Fe=I(Le,Le?at:rt,!1,ze);Fe&&ze.preventDefault(),clearInterval(Be.current),Fe&&(Be.current=setInterval(function(){Le?at*=ke:rt*=ke;var ct=Math.floor(Le?at:rt);(!I(Le,ct,!0)||Math.abs(ct)<=.1)&&clearInterval(Be.current)},16))}},Qe=function(){p.current=!1,H()},ye=function(ze){H(),ze.touches.length===1&&!p.current&&(p.current=!0,f.current=Math.ceil(ze.touches[0].pageX),x.current=Math.ceil(ze.touches[0].pageY),Y.current=ze.target,Y.current.addEventListener("touchmove",ie,{passive:!1}),Y.current.addEventListener("touchend",Qe,{passive:!0}))};H=function(){Y.current&&(Y.current.removeEventListener("touchmove",ie),Y.current.removeEventListener("touchend",Qe))},(0,$.Z)(function(){return V&&dt.current.addEventListener("touchstart",ye,{passive:!0}),function(){var be;(be=dt.current)===null||be===void 0||be.removeEventListener("touchstart",ye),H(),clearInterval(Be.current)}},[V])}function Te(V){return Math.floor(Math.pow(V,.5))}function ve(V,dt){var I="touches"in V?V.touches[0]:V;return I[dt?"pageX":"pageY"]-window[dt?"scrollX":"scrollY"]}function De(V,dt,I){_.useEffect(function(){var p=dt.current;if(V&&p){var f=!1,x,Y,Be=function(){J.Z.cancel(x)},H=function be(){Be(),x=(0,J.Z)(function(){I(Y),be()})},ie=function(){f=!1,Be()},Qe=function(ze){if(!(ze.target.draggable||ze.button!==0)){var gt=ze;gt._virtualHandled||(gt._virtualHandled=!0,f=!0)}},ye=function(ze){if(f){var gt=ve(ze,!1),fe=p.getBoundingClientRect(),at=fe.top,rt=fe.bottom;if(gt<=at){var Le=at-gt;Y=-Te(Le),H()}else if(gt>=rt){var Fe=gt-rt;Y=Te(Fe),H()}else Be()}};return p.addEventListener("mousedown",Qe),p.ownerDocument.addEventListener("mouseup",ie),p.ownerDocument.addEventListener("mousemove",ye),p.ownerDocument.addEventListener("dragend",ie),function(){p.removeEventListener("mousedown",Qe),p.ownerDocument.removeEventListener("mouseup",ie),p.ownerDocument.removeEventListener("mousemove",ye),p.ownerDocument.removeEventListener("dragend",ie),Be()}}},[V])}var he=10;function Se(V,dt,I,p,f,x,Y,Be){var H=_.useRef(),ie=_.useState(null),Qe=(0,te.Z)(ie,2),ye=Qe[0],be=Qe[1];return(0,$.Z)(function(){if(ye&&ye.times<he){if(!V.current){be(function(Qi){return(0,P.Z)({},Qi)});return}x();var ze=ye.targetAlign,gt=ye.originAlign,fe=ye.index,at=ye.offset,rt=V.current.clientHeight,Le=!1,Fe=ze,ct=null;if(rt){for(var Tt=ze||gt,Pt=0,Yt=0,Fr=0,Lr=Math.min(dt.length-1,fe),Or=0;Or<=Lr;Or+=1){var kr=f(dt[Or]);Yt=Pt;var yr=I.get(kr);Fr=Yt+(yr===void 0?p:yr),Pt=Fr}for(var ur=Tt==="top"?at:rt-at,Kr=Lr;Kr>=0;Kr-=1){var fn=f(dt[Kr]),Un=I.get(fn);if(Un===void 0){Le=!0;break}if(ur-=Un,ur<=0)break}switch(Tt){case"top":ct=Yt-at;break;case"bottom":ct=Fr-rt+at;break;default:{var hn=V.current.scrollTop,Dn=hn+rt;Yt<hn?Fe="top":Fr>Dn&&(Fe="bottom")}}ct!==null&&Y(ct),ct!==ye.lastTop&&(Le=!0)}Le&&be((0,P.Z)((0,P.Z)({},ye),{},{times:ye.times+1,targetAlign:Fe,lastTop:ct}))}},[ye,V.current]),function(ze){if(ze==null){Be();return}if(J.Z.cancel(H.current),typeof ze=="number")Y(ze);else if(ze&&(0,Ae.Z)(ze)==="object"){var gt,fe=ze.align;"index"in ze?gt=ze.index:gt=dt.findIndex(function(Le){return f(Le)===ze.key});var at=ze.offset,rt=at===void 0?0:at;be({times:0,index:gt,offset:rt,originAlign:fe})}}}var Xe=_.forwardRef(function(V,dt){var I=V.prefixCls,p=V.rtl,f=V.scrollOffset,x=V.scrollRange,Y=V.onStartMove,Be=V.onStopMove,H=V.onScroll,ie=V.horizontal,Qe=V.spinSize,ye=V.containerSize,be=V.style,ze=V.thumbStyle,gt=V.showScrollBar,fe=_.useState(!1),at=(0,te.Z)(fe,2),rt=at[0],Le=at[1],Fe=_.useState(null),ct=(0,te.Z)(Fe,2),Tt=ct[0],Pt=ct[1],Yt=_.useState(null),Fr=(0,te.Z)(Yt,2),Lr=Fr[0],Or=Fr[1],kr=!p,yr=_.useRef(),ur=_.useRef(),Kr=_.useState(gt),fn=(0,te.Z)(Kr,2),Un=fn[0],hn=fn[1],Dn=_.useRef(),Qi=function(){gt===!0||gt===!1||(clearTimeout(Dn.current),hn(!0),Dn.current=setTimeout(function(){hn(!1)},3e3))},Pr=x-ye||0,xn=ye-Qe||0,Ei=_.useMemo(function(){if(f===0||Pr===0)return 0;var yi=f/Pr;return yi*xn},[f,Pr,xn]),di=function($e){$e.stopPropagation(),$e.preventDefault()},Zi=_.useRef({top:Ei,dragging:rt,pageY:Tt,startTop:Lr});Zi.current={top:Ei,dragging:rt,pageY:Tt,startTop:Lr};var _i=function($e){Le(!0),Pt(ve($e,ie)),Or(Zi.current.top),Y(),$e.stopPropagation(),$e.preventDefault()};_.useEffect(function(){var yi=function(Ie){Ie.preventDefault()},$e=yr.current,_e=ur.current;return $e.addEventListener("touchstart",yi,{passive:!1}),_e.addEventListener("touchstart",_i,{passive:!1}),function(){$e.removeEventListener("touchstart",yi),_e.removeEventListener("touchstart",_i)}},[]);var ji=_.useRef();ji.current=Pr;var qa=_.useRef();qa.current=xn,_.useEffect(function(){if(rt){var yi,$e=function(Ie){var Nt=Zi.current,Mt=Nt.dragging,Sr=Nt.pageY,nr=Nt.startTop;J.Z.cancel(yi);var Dr=yr.current.getBoundingClientRect(),Hr=ye/(ie?Dr.width:Dr.height);if(Mt){var an=(ve(Ie,ie)-Sr)*Hr,jr=nr;!kr&&ie?jr-=an:jr+=an;var Rr=ji.current,en=qa.current,wn=en?jr/en:0,on=Math.ceil(wn*Rr);on=Math.max(on,0),on=Math.min(on,Rr),yi=(0,J.Z)(function(){H(on,ie)})}},_e=function(){Le(!1),Be()};return window.addEventListener("mousemove",$e,{passive:!0}),window.addEventListener("touchmove",$e,{passive:!0}),window.addEventListener("mouseup",_e,{passive:!0}),window.addEventListener("touchend",_e,{passive:!0}),function(){window.removeEventListener("mousemove",$e),window.removeEventListener("touchmove",$e),window.removeEventListener("mouseup",_e),window.removeEventListener("touchend",_e),J.Z.cancel(yi)}}},[rt]),_.useEffect(function(){return Qi(),function(){clearTimeout(Dn.current)}},[f]),_.useImperativeHandle(dt,function(){return{delayHidden:Qi}});var Ki="".concat(I,"-scrollbar"),ti={position:"absolute",visibility:Un?null:"hidden"},gi={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return ie?(Object.assign(ti,{height:8,left:0,right:0,bottom:0}),Object.assign(gi,(0,Ne.Z)({height:"100%",width:Qe},kr?"left":"right",Ei))):(Object.assign(ti,(0,Ne.Z)({width:8,top:0,bottom:0},kr?"right":"left",0)),Object.assign(gi,{width:"100%",height:Qe,top:Ei})),_.createElement("div",{ref:yr,className:g()(Ki,(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({},"".concat(Ki,"-horizontal"),ie),"".concat(Ki,"-vertical"),!ie),"".concat(Ki,"-visible"),Un)),style:(0,P.Z)((0,P.Z)({},ti),be),onMouseDown:di,onMouseMove:Qi},_.createElement("div",{ref:ur,className:g()("".concat(Ki,"-thumb"),(0,Ne.Z)({},"".concat(Ki,"-thumb-moving"),rt)),style:(0,P.Z)((0,P.Z)({},gi),ze),onMouseDown:_i}))}),et=Xe,je=20;function qe(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,I=V/dt*V;return isNaN(I)&&(I=0),I=Math.max(I,je),Math.floor(I)}var Et=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],kt=[],Ot={overflowY:"auto",overflowAnchor:"none"};function sr(V,dt){var I=V.prefixCls,p=I===void 0?"rc-virtual-list":I,f=V.className,x=V.height,Y=V.itemHeight,Be=V.fullHeight,H=Be===void 0?!0:Be,ie=V.style,Qe=V.data,ye=V.children,be=V.itemKey,ze=V.virtual,gt=V.direction,fe=V.scrollWidth,at=V.component,rt=at===void 0?"div":at,Le=V.onScroll,Fe=V.onVirtualScroll,ct=V.onVisibleChange,Tt=V.innerProps,Pt=V.extraRender,Yt=V.styles,Fr=V.showScrollBar,Lr=Fr===void 0?"optional":Fr,Or=(0,W.Z)(V,Et),kr=_.useCallback(function(Wn){return typeof be=="function"?be(Wn):Wn==null?void 0:Wn[be]},[be]),yr=Ye(kr,null,null),ur=(0,te.Z)(yr,4),Kr=ur[0],fn=ur[1],Un=ur[2],hn=ur[3],Dn=!!(ze!==!1&&x&&Y),Qi=_.useMemo(function(){return Object.values(Un.maps).reduce(function(Wn,Fn){return Wn+Fn},0)},[Un.id,Un.maps]),Pr=Dn&&Qe&&(Math.max(Y*Qe.length,Qi)>x||!!fe),xn=gt==="rtl",Ei=g()(p,(0,Ne.Z)({},"".concat(p,"-rtl"),xn),f),di=Qe||kt,Zi=(0,_.useRef)(),_i=(0,_.useRef)(),ji=(0,_.useRef)(),qa=(0,_.useState)(0),Ki=(0,te.Z)(qa,2),ti=Ki[0],gi=Ki[1],yi=(0,_.useState)(0),$e=(0,te.Z)(yi,2),_e=$e[0],Me=$e[1],Ie=(0,_.useState)(!1),Nt=(0,te.Z)(Ie,2),Mt=Nt[0],Sr=Nt[1],nr=function(){Sr(!0)},Dr=function(){Sr(!1)},Hr={getKey:kr};function an(Wn){gi(function(Fn){var Ni;typeof Wn=="function"?Ni=Wn(Fn):Ni=Wn;var Ji=ni(Ni);return Zi.current.scrollTop=Ji,Ji})}var jr=(0,_.useRef)({start:0,end:di.length}),Rr=(0,_.useRef)(),en=ne(di,kr),wn=(0,te.Z)(en,1),on=wn[0];Rr.current=on;var Nn=_.useMemo(function(){if(!Dn)return{scrollHeight:void 0,start:0,end:di.length-1,offset:void 0};if(!Pr){var Wn;return{scrollHeight:((Wn=_i.current)===null||Wn===void 0?void 0:Wn.offsetHeight)||0,start:0,end:di.length-1,offset:void 0}}for(var Fn=0,Ni,Ji,Fa,Is=di.length,za=0;za<Is;za+=1){var fa=di[za],Io=kr(fa),So=Un.get(Io),Po=Fn+(So===void 0?Y:So);Po>=ti&&Ni===void 0&&(Ni=za,Ji=Fn),Po>ti+x&&Fa===void 0&&(Fa=za),Fn=Po}return Ni===void 0&&(Ni=0,Ji=0,Fa=Math.ceil(x/Y)),Fa===void 0&&(Fa=di.length-1),Fa=Math.min(Fa+1,di.length-1),{scrollHeight:Fn,start:Ni,end:Fa,offset:Ji}},[Pr,Dn,ti,di,hn,x]),Kn=Nn.scrollHeight,fi=Nn.start,On=Nn.end,Xn=Nn.offset;jr.current.start=fi,jr.current.end=On,_.useLayoutEffect(function(){var Wn=Un.getRecord();if(Wn.size===1){var Fn=Array.from(Wn.keys())[0],Ni=Wn.get(Fn),Ji=di[fi];if(Ji&&Ni===void 0){var Fa=kr(Ji);if(Fa===Fn){var Is=Un.get(Fn),za=Is-Y;an(function(fa){return fa+za})}}}Un.resetRecord()},[Kn]);var Vt=_.useState({width:0,height:x}),Xt=(0,te.Z)(Vt,2),er=Xt[0],fr=Xt[1],Rt=function(Fn){fr({width:Fn.offsetWidth,height:Fn.offsetHeight})},Jt=(0,_.useRef)(),ar=(0,_.useRef)(),Nr=_.useMemo(function(){return qe(er.width,fe)},[er.width,fe]),yn=_.useMemo(function(){return qe(er.height,Kn)},[er.height,Kn]),Bn=Kn-x,ci=(0,_.useRef)(Bn);ci.current=Bn;function ni(Wn){var Fn=Wn;return Number.isNaN(ci.current)||(Fn=Math.min(Fn,ci.current)),Fn=Math.max(Fn,0),Fn}var Ii=ti<=0,qn=ti>=Bn,zn=_e<=0,xi=_e>=fe,wi=le(Ii,qn,zn,xi),Ci=function(){return{x:xn?-_e:_e,y:ti}},Ai=(0,_.useRef)(Ci()),Bi=(0,v.useEvent)(function(Wn){if(Fe){var Fn=(0,P.Z)((0,P.Z)({},Ci()),Wn);(Ai.current.x!==Fn.x||Ai.current.y!==Fn.y)&&(Fe(Fn),Ai.current=Fn)}});function Xi(Wn,Fn){var Ni=Wn;Fn?((0,M.flushSync)(function(){Me(Ni)}),Bi()):an(Ni)}function ri(Wn){var Fn=Wn.currentTarget.scrollTop;Fn!==ti&&an(Fn),Le==null||Le(Wn),Bi()}var Ti=function(Fn){var Ni=Fn,Ji=fe?fe-er.width:0;return Ni=Math.max(Ni,0),Ni=Math.min(Ni,Ji),Ni},Ha=(0,v.useEvent)(function(Wn,Fn){Fn?((0,M.flushSync)(function(){Me(function(Ni){var Ji=Ni+(xn?-Wn:Wn);return Ti(Ji)})}),Bi()):an(function(Ni){var Ji=Ni+Wn;return Ji})}),li=me(Dn,Ii,qn,zn,xi,!!fe,Ha),pn=(0,te.Z)(li,2),ln=pn[0],Jn=pn[1];xe(Dn,Zi,function(Wn,Fn,Ni,Ji){var Fa=Ji;return wi(Wn,Fn,Ni)?!1:!Fa||!Fa._virtualHandled?(Fa&&(Fa._virtualHandled=!0),ln({preventDefault:function(){},deltaX:Wn?Fn:0,deltaY:Wn?0:Fn}),!0):!1}),De(Pr,Zi,function(Wn){an(function(Fn){return Fn+Wn})}),(0,$.Z)(function(){function Wn(Ni){var Ji=Ii&&Ni.detail<0,Fa=qn&&Ni.detail>0;Dn&&!Ji&&!Fa&&Ni.preventDefault()}var Fn=Zi.current;return Fn.addEventListener("wheel",ln,{passive:!1}),Fn.addEventListener("DOMMouseScroll",Jn,{passive:!0}),Fn.addEventListener("MozMousePixelScroll",Wn,{passive:!1}),function(){Fn.removeEventListener("wheel",ln),Fn.removeEventListener("DOMMouseScroll",Jn),Fn.removeEventListener("MozMousePixelScroll",Wn)}},[Dn,Ii,qn]),(0,$.Z)(function(){if(fe){var Wn=Ti(_e);Me(Wn),Bi({x:Wn})}},[er.width,fe]);var Hn=function(){var Fn,Ni;(Fn=Jt.current)===null||Fn===void 0||Fn.delayHidden(),(Ni=ar.current)===null||Ni===void 0||Ni.delayHidden()},hi=Se(Zi,di,Un,Y,kr,function(){return fn(!0)},an,Hn);_.useImperativeHandle(dt,function(){return{nativeElement:ji.current,getScrollInfo:Ci,scrollTo:function(Fn){function Ni(Ji){return Ji&&(0,Ae.Z)(Ji)==="object"&&("left"in Ji||"top"in Ji)}Ni(Fn)?(Fn.left!==void 0&&Me(Ti(Fn.left)),hi(Fn.top)):hi(Fn)}}}),(0,$.Z)(function(){if(ct){var Wn=di.slice(fi,On+1);ct(Wn,di)}},[fi,On,di]);var qi=Oe(di,kr,Un,Y),Li=Pt==null?void 0:Pt({start:fi,end:On,virtual:Pr,offsetX:_e,offsetY:Xn,rtl:xn,getSize:qi}),Ua=q(di,fi,On,fe,_e,Kr,ye,Hr),Aa=null;x&&(Aa=(0,P.Z)((0,Ne.Z)({},H?"height":"maxHeight",x),Ot),Dn&&(Aa.overflowY="hidden",fe&&(Aa.overflowX="hidden"),Mt&&(Aa.pointerEvents="none")));var Bo={};return xn&&(Bo.dir="rtl"),_.createElement("div",(0,pe.Z)({ref:ji,style:(0,P.Z)((0,P.Z)({},ie),{},{position:"relative"}),className:Ei},Bo,Or),_.createElement(F.Z,{onResize:Rt},_.createElement(rt,{className:"".concat(p,"-holder"),style:Aa,ref:Zi,onScroll:ri,onMouseEnter:Hn},_.createElement(T,{prefixCls:p,height:Kn,offsetX:_e,offsetY:Xn,scrollWidth:fe,onInnerResize:fn,ref:_i,innerProps:Tt,rtl:xn,extra:Li},Ua))),Pr&&Kn>x&&_.createElement(et,{ref:Jt,prefixCls:p,scrollOffset:ti,scrollRange:Kn,rtl:xn,onScroll:Xi,onStartMove:nr,onStopMove:Dr,spinSize:yn,containerSize:er.height,style:Yt==null?void 0:Yt.verticalScrollBar,thumbStyle:Yt==null?void 0:Yt.verticalScrollBarThumb,showScrollBar:Lr}),Pr&&fe>er.width&&_.createElement(et,{ref:ar,prefixCls:p,scrollOffset:_e,scrollRange:fe,rtl:xn,onScroll:Xi,onStartMove:nr,onStopMove:Dr,spinSize:Nr,containerSize:er.width,horizontal:!0,style:Yt==null?void 0:Yt.horizontalScrollBar,thumbStyle:Yt==null?void 0:Yt.horizontalScrollBarThumb,showScrollBar:Lr}))}var rr=_.forwardRef(sr);rr.displayName="List";var br=rr,lr=br},45614:function(dn){"use strict";dn.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(dn){"use strict";dn.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(dn,Ut,C){"use strict";var pe=Object.defineProperty,Ae=Object.defineProperties,P=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,S=(e,t,r)=>t in e?pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,g=(e,t)=>{for(var r in t||(t={}))te.call(t,r)&&S(e,r,t[r]);if(Ne)for(var r of Ne(t))W.call(t,r)&&S(e,r,t[r]);return e},F=(e,t)=>Ae(e,P(t)),v=e=>typeof e=="symbol"?e:e+"",$=(e,t)=>{var r={};for(var i in e)te.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&Ne)for(var i of Ne(e))t.indexOf(i)<0&&W.call(e,i)&&(r[i]=e[i]);return r};function _(e){return Array.isArray(e)}var M={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 O(){return"window"in globalThis&&"document"in globalThis}function T(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function L(){return typeof navigator.vibrate=="function"}function q(){var e,t;if(!O())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 R(){if(!O())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 ne={strings:M,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return ne._locale||(ne._locale=O()?navigator.language.slice(0,5):"en-US"),ne._locale},set locale(e){ne._locale=e,ne._numberFormatter=void 0,ne.dirty=!0},get numberFormatter(){return ne._numberFormatter||(ne._numberFormatter=new Intl.NumberFormat(ne.locale)),ne._numberFormatter},merge(e,t){if(typeof e=="string"&&t)ne.strings[e]=g(g({},ne.strings[e]),t),ne.dirty=!0;else for(const r of Object.keys(e))ne.merge(r,e[r])},get dirty(){return ne._dirty},set dirty(e){ne._dirty||ne._dirty===e||(ne._dirty=!0,setTimeout(()=>{ne._dirty=!1,this._subscribers.forEach(t=>t==null?void 0:t())},0))},subscribe(e){return ne._subscribers.push(e),ne._subscribers.length-1},unsubscribe(e){e<0||e>=ne._subscribers.length||(ne._subscribers[e]=void 0)},update(e){let t=e.querySelectorAll("[data-l10n-tooltip]");for(const r of t){const i=r.getAttribute("data-l10n-tooltip");if(i){const s=J(i);s&&r.setAttribute("data-tooltip",s)}}t=e.querySelectorAll("[data-l10n-arial-label]");for(const r of t){const i=r.getAttribute("data-l10n-arial-label");if(i){const s=J(i);s&&r.setAttribute("aria-label",s)}}}};function J(e,...t){if(e===void 0)return;let r="";const i=ne.locale;ne.strings[i]&&(r=ne.strings[i][e]);const s=i.slice(0,2);if(!r&&ne.strings[s]&&(r=ne.strings[s][e]),r||(r=ne.strings.en[e]),!r)return;const c=/(%@|%([0-9]+)\$@)/g;let u=c.exec(r),k=0;for(;u;){if(t[k++]){const X=u[2]?parseInt(u[2],10)-1:k-1;let ce=t[X];typeof ce=="number"&&(ce=ne.numberFormatter.format(ce)),r=r.replace(u[1],ce)}u=c.exec(r)}return r=r.replace(/%%/g,"%"),r}var G={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},K={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"},me={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"},Oe={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"},Ce={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 Ue(e){var t,r,i,s,c,u;const k=e.split("!");let j,X,ce,Pe=255,nt=255,vt=255,St=-1;const Cr=k.length>0&&k[0].startsWith("-");Cr&&(k[0]=k[0].slice(1));for(let _n=0;_n<k.length;_n++){j=Pe,X=nt,ce=vt;const wr=(t=k[_n].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:t[1],nn=wr==null?void 0:wr.toLowerCase(),Ln=wr&&(u=(c=(s=(i=(r=me[nn])!=null?r:me[Oe[wr]])!=null?i:K[wr])!=null?s:Ce[wr])!=null?c:G[wr])!=null?u:k[_n].trim();let An=Ln.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(An!=null&&An[1]&&An[2]&&An[3])Pe=Math.max(0,Math.min(255,Number.parseInt(An[1],16))),nt=Math.max(0,Math.min(255,Number.parseInt(An[2],16))),vt=Math.max(0,Math.min(255,Number.parseInt(An[3],16)));else if(An=Ln.match(/^#([\da-f]{3})$/i),An!=null&&An[1]){const Si=Number.parseInt(An[1][0],16),ra=Number.parseInt(An[1][1],16),Hi=Number.parseInt(An[1][2],16);Pe=Math.max(0,Math.min(255,Si*16+Si)),nt=Math.max(0,Math.min(255,ra*16+ra)),vt=Math.max(0,Math.min(255,Hi*16+Hi))}else if(An=Ln.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),An!=null&&An[1]&&An[2]&&An[3])Pe=Math.max(0,Math.min(255,Number.parseInt(An[1]))),nt=Math.max(0,Math.min(255,Number.parseInt(An[2]))),vt=Math.max(0,Math.min(255,Number.parseInt(An[3])));else return;St>=0&&(Pe=(1-St)*Pe+St*j,nt=(1-St)*nt+St*X,vt=(1-St)*vt+St*ce,St=-1),_n+1<k.length&&(St=Math.max(0,Math.min(100,Number.parseInt(k[++_n])))/100)}return St>=0&&(Pe=St*Pe+(1-St)*j,nt=St*nt+(1-St)*X,vt=St*vt+(1-St)*ce),Cr&&(Pe=255-Pe,nt=255-nt,vt=255-vt),"#"+("00"+Math.round(Pe).toString(16)).slice(-2)+("00"+Math.round(nt).toString(16)).slice(-2)+("00"+Math.round(vt).toString(16)).slice(-2)}function ee(e){var t,r;return e=e.trim(),(r=(t=le[e.toLowerCase()])!=null?t:le[Oe[e]])!=null?r:Ue(e)}function de(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 Ye(e){let[t,r,i]=[e.h,e.s,e.l];t=(t+360)%360/60,i=Math.max(0,Math.min(i,1)),r=Math.max(0,Math.min(r,1));const s=i<=.5?i*(r+1):i+r-i*r,c=i*2-s;return{r:Math.round(255*D(c,s,t+2)),g:Math.round(255*D(c,s,t)),b:Math.round(255*D(c,s,t-2))}}function ke(e){return e<0?0:e>255?255:Math.round(e)}function xe(e){const{r:t,g:r,b:i}=e;let s=((1<<24)+(ke(t)<<16)+(ke(r)<<8)+ke(i)).toString(16).slice(1);return s[0]===s[1]&&s[2]===s[3]&&s[4]===s[5]&&s[6]===s[7]&&(s=s[0]+s[2]+s[4]),"#"+s}function Te(e){let{r:t,g:r,b:i}=e;t=t/255,r=r/255,i=i/255;const s=Math.min(t,r,i),c=Math.max(t,r,i),u=c-s;let k,j;c===s?k=0:t===c?k=(r-i)/u:r===c?k=2+(i-t)/u:i===c&&(k=4+(t-r)/u),k=Math.min(k*60,360),k<0&&(k+=360);const X=(s+c)/2;return c===s?j=0:X<=.5?j=u/(c+s):j=u/(2-c-s),{h:k,s:j,l:X}}function ve(e){let t=de(e);if(!t)return e;let{h:r,s:i,l:s}=Te(t);return i+=.1,s-=.1,xe(Ye({h:r,s:i,l:s}))}var De={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"},he={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},Se=[{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 Xe(e,t,r){if(!/[A-Za-z\d]/.test(e)||(r==="up"&&(r=void 0),!t&&!r))return e;const i=e.codePointAt(0);if(i===void 0)return e;for(const s of Se)if((!t||s.variant===t)&&(!r||s.style===r)&&i>=s.offset&&i<s.offset+s.len){const c=s.start+i-s.offset;return String.fromCodePoint(he[c]||c)}return e}function et(e){var t;if((e<119808||e>120831)&&(e<8448||e>8527))return{char:String.fromCodePoint(e)};for(const r in he)if(he[r]===e){e=(t=r.codePointAt(0))!=null?t:0;break}for(const r of Se)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 je(e){var t;let r="";for(const i of e){if("{}<>[]$&#^_%:'\u02DC".includes(i)){r+=i;continue}const s=(t=i.codePointAt(0))!=null?t:0;let c=De[s];if(c)c.startsWith("\\")?r+=c+" ":r+=c;else{const{char:u,variant:k,style:j}=et(s);switch(c=u,k){case"double-struck":c=`\\mathbb{${c}}`;break;case"fraktur":c=`\\mathfrak{${c}}`;break;case"script":c=`\\mathscr{${c}}`;break;case"sans-serif":c=`\\mathsf{${c}}`;break;case"monospace":c=`\\mathtt{${c}}`;break;case"calligraphic":c=`\\mathcal{${c}}`;break}switch(j){case"bold":c=`\\mathbf{${c}}`;break;case"italic":c=`\\mathit{${c}}`;break;case"bolditalic":c=`\\mathbfit{${c}}`;break}r+=c}}return r}function qe(e){return e?Array.isArray(e)?e:typeof e=="object"&&"group"in e?e.group:[]:[]}var Et={},kt=g({},De),Ot={},sr={},rr={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}"},br={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}},lr={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}},V={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:lr},"amsmath.sty":{package:br,primitive:!0},"texvc.sty":{package:rr,primitive:!1}},dt={" ":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},I=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,p,f;R()?(p=new RegExp("\\p{Letter}","u"),f=new RegExp("[0-9\\p{Letter}]","u")):(p=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,f=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function x(e,t,r="mord",i){t!==void 0&&(Et[e]={definitionType:"symbol",type:r,variant:i,codepoint:t},kt[t]||(kt[t]=e))}function Y(e,t,r){if(typeof e=="string"){for(let i=0;i<e.length;i++){const s=e.charAt(i);x(s,s.codePointAt(0))}return}for(const[i,s,c,u]of e)x(i,s,c!=null?c:t,u!=null?u:r)}function Be(e,t){for(let r=e;r<=t;r++)x(String.fromCodePoint(r),r)}function H(e){var t;return(t=sr[e])!=null?t:null}function ie(e,t){var r,i;if(t.length===0||t==="\\"||!t.startsWith("\\"))return[];const s=[];for(const u in Ot)u.startsWith(t)&&!Ot[u].infix&&s.push({match:u,frequency:(r=Ot[u].frequency)!=null?r:0});for(const u in Et)u.startsWith(t)&&s.push({match:u,frequency:(i=Et[u].frequency)!=null?i:0});const c=t.substring(1);for(const u of Object.keys(e.options.macros))u.startsWith(c)&&s.push({match:"\\"+u,frequency:0});return s.sort((u,k)=>{var j,X;return u.frequency===k.frequency?u.match.length===k.match.length?u.match<k.match?-1:1:u.match.length-k.match.length:((j=k.frequency)!=null?j:0)-((X=u.frequency)!=null?X:0)}),s.map(u=>u.match)}function Qe(e){let t="auto";const r=e.match(/:([^=]+)/);return r&&(t=r[1].trim()),t}function ye(e){if(!e)return[];const t=[];let r=e.split("]");if(r[0].startsWith("[")){t.push({isOptional:!0,type:Qe(r[0].slice(1))});for(let i=1;i<=r.length;i++)t.push(...ye(r[i]))}else if(r=e.split("}"),r[0].startsWith("{")){t.push({isOptional:!1,type:Qe(r[0].slice(1))});for(let i=1;i<=r.length;i++)t.push(...ye(r[i]))}return t}function be(e){if(!e)return"";let t="",r=!0;for(const i of e)typeof i.value=="string"?t+=i.value:r=!1;return r?t:""}function ze(e,t){typeof e=="string"&&(e=[e]);const r={tabular:!1,params:[],createAtom:t};for(const i of e)sr[i]=r}function gt(e,t,r){typeof e=="string"&&(e=[e]);const s={tabular:!0,params:ye(t),createAtom:r};for(const c of e)sr[c]=s}function fe(e,t,r){var i,s;r||(r={});const c={definitionType:"function",params:ye(t),ifMode:r.ifMode,isFunction:(i=r.isFunction)!=null?i:!1,applyMode:r.applyMode,infix:(s=r.infix)!=null?s:!1,parse:r.parse,createAtom:r.createAtom,applyStyle:r.applyStyle,serialize:r.serialize,render:r.render};if(typeof e=="string")Ot["\\"+e]=c;else for(const u of e)Ot["\\"+u]=c}var at;function rt(e){return at||(at=Fe(V)),e?Fe(g(g({},at),e)):at}function Le(e,t){var r,i,s,c;if(typeof e=="string"){let u=0;const k=e;return/(^|[^\\])#1/.test(k)&&(u=1),/(^|[^\\])#2/.test(k)&&(u=2),/(^|[^\\])#3/.test(k)&&(u=3),/(^|[^\\])#4/.test(k)&&(u=4),/(^|[^\\])#5/.test(k)&&(u=5),/(^|[^\\])#6/.test(k)&&(u=6),/(^|[^\\])#7/.test(k)&&(u=7),/(^|[^\\])#8/.test(k)&&(u=8),/(^|[^\\])#9/.test(k)&&(u=9),{expand:(r=t==null?void 0:t.expand)!=null?r:!0,captureSelection:(i=t==null?void 0:t.captureSelection)!=null?i:!0,args:u,def:k}}return g({expand:(s=t==null?void 0:t.expand)!=null?s:!0,captureSelection:(c=t==null?void 0:t.captureSelection)!=null?c:!0,args:0},e)}function Fe(e){if(!e)return{};const t={};for(const r of Object.keys(e)){const i=e[r];if(i==null)delete t[r];else if(typeof i=="object"&&"package"in i)for(const s of Object.keys(i.package))t[s]=Le(i.package[s],{expand:!i.primitive,captureSelection:i.captureSelection});else t[r]=Le(i)}return t}function ct(e,t="math"){if(!e||e.length===0)return null;let r=null;if(e.startsWith("\\")){if(r=Ot[e],r)return!r.ifMode||r.ifMode===t?r:null;t==="math"?r=Et[e]:dt[e]&&(r={definitionType:"symbol",type:"mord",codepoint:dt[e]})}else if(t==="math"){if(r=Et[e],!r&&e.length===1){const i=Pt("math",e.codePointAt(0));return i.startsWith("\\")?F(g({},ct(i,"math")),{command:i}):null}}else dt[e]?r={definitionType:"symbol",type:"mord",codepoint:dt[e]}:t==="text"&&(r={definitionType:"symbol",type:"mord",codepoint:e.codePointAt(0)});return r!=null?r:null}function Tt(e,t){if(!e.startsWith("\\"))return null;const r=e.slice(1);return t[r]}function Pt(e,t){if(t===void 0)return"";if(e==="math"&&kt[t])return kt[t];if(e==="text"){const r=Object.keys(dt).find(i=>dt[i]===t);return r||String.fromCodePoint(t)}return String.fromCodePoint(t)}var Yt=[0,.68889,0,0,.72222],Fr=[0,.68889,0,0,.66667],Lr=[0,.68889,0,0,.77778],Or=[0,.68889,0,0,.61111],kr=[.16667,.68889,0,0,.77778],yr=[0,.68889,0,0,.55556],ur=[0,0,0,0,.25],Kr=[0,.825,0,0,2.33334],fn=[0,.9,0,0,2.33334],Un=[0,.68889,0,0,.54028],hn=[-.03598,.46402,0,0,.5],Dn=[-.13313,.36687,0,0,1],Qi=[.01354,.52239,0,0,1],Pr=[.01354,.52239,0,0,1.11111],xn=[0,.54986,0,0,1],Ei=[0,.69224,0,0,.5],di=[0,.43056,0,0,1],Zi=[.08198,.58198,0,0,.77778],_i=[.19444,.69224,0,0,.41667],ji=[.1808,.675,0,0,1],qa=[.19444,.69224,0,0,.83334],Ki=[.13667,.63667,0,0,1],ti=[-.064,.437,0,0,1.334],gi=[.08167,.58167,0,0,.77778],yi=[0,.69224,0,0,.72222],$e=[0,.69224,0,0,.66667],_e=[-.13313,.36687,0,0,.77778],Me=[.06062,.54986,0,0,.77778],Ie=[0,.69224,0,0,.77778],Nt=[.25583,.75583,0,0,.77778],Mt=[.25142,.75726,0,0,.77778],Sr=[.20576,.70576,0,0,.77778],nr=[.30274,.79383,0,0,.77778],Dr=[.22958,.72958,0,0,.77778],Hr=[.1808,.675,0,0,.77778],an=[.13667,.63667,0,0,.77778],jr=[.13597,.63597,0,0,.77778],Rr=[.03517,.54986,0,0,.77778],en=[0,.675,0,0,.77778],wn=[.19444,.69224,0,0,.61111],on=[0,.54986,0,0,.76042],Nn=[0,.54986,0,0,.66667],Kn=[.0391,.5391,0,0,.77778],fi=[.03517,.54986,0,0,1.33334],On=[.38569,.88569,0,0,.77778],Xn=[.23222,.74111,0,0,.77778],Vt=[.19444,.69224,0,0,.77778],Xt=[0,.37788,0,0,.5],er=[0,.54986,0,0,.72222],fr=[0,.69224,0,0,.83334],Rt=[.11111,.69224,0,0,.66667],Jt=[.26167,.75726,0,0,.77778],ar=[.48256,.98256,0,0,.77778],Nr=[.28481,.79383,0,0,.77778],yn=[.08167,.58167,0,0,.22222],Bn=[.08167,.58167,0,0,.38889],ci=[0,.43056,.04028,0,.66667],ni=[.41951,.91951,0,0,.77778],Ii=[.24982,.74947,0,0,.38865],qn=[.08319,.58283,0,0,.75623],zn=[0,.10803,0,0,.27764],xi=[0,.47534,0,0,.50181],wi=[.18906,.47534,0,0,.50181],Ci=[0,.69141,0,0,.50181],Ai=[.24982,.74947,0,0,.27764],Bi=[0,.69141,0,0,.21471],Xi=[.25,.75,0,0,.44722],ri=[0,.64444,0,0,.575],Ti=[.08556,.58556,0,0,.89444],Ha=[0,.69444,0,0,.89444],li=[0,.68611,0,0,.9],pn=[0,.68611,0,0,.86944],ln=[.25,.75,0,0,.575],Jn=[.25,.75,0,0,.31944],Hn=[0,.69444,0,0,.63889],hi=[0,.69444,0,0,.31944],qi=[0,.44444,0,0,.63889],Li=[0,.44444,0,0,.51111],Ua=[0,.69444,0,0,.575],Aa=[.13333,.63333,0,0,.89444],Bo=[0,.44444,0,0,.31944],Wn=[0,.69444,0,0,.86944],Fn=[0,.68611,0,0,.69166],Ni=[0,.68611,0,0,.83055],Ji=[0,.68611,0,0,.89444],Fa=[0,.69444,0,0,.60278],Is=[.19444,.69444,0,0,.51111],za=[0,.69444,0,0,.83055],fa=[-.10889,.39111,0,0,1.14999],Io=[.19444,.69444,0,0,.575],So=[.19444,.69444,0,0,1.14999],Po=[.19444,.69444,0,0,.70277],Os=[.05556,.75,0,0,.575],po=[0,.68611,0,0,.95833],bs=[.08556,.58556,0,0,.76666],Ps=[-.02639,.47361,0,0,.575],$s=[0,.44444,0,0,.89444],To=[0,.55556,0,0,.76666],Uo=[-.10889,.39111,0,0,.89444],ys=[.00222,.50222,0,0,.89444],el=[.19667,.69667,0,0,.89444],vl=[.08556,.58556,0,0,1.14999],ic=[0,.69444,0,0,.70277],ac=[-.02778,.47222,0,0,.575],Ql=[.25,.75,0,0,.51111],Zs=[-.13889,.36111,0,0,1.14999],Dc=[.19444,.69444,0,0,1.02222],Kl=[.12963,.69444,0,0,.89444],Hl=[.19444,.69444,0,0,.44722],Vs=[0,.64444,.13167,0,.59111],as=[.19444,.64444,.13167,0,.59111],ii=[0,.68611,.17208,0,.8961],la=[.19444,.44444,.105,0,.53222],ta=[0,.44444,.085,0,.82666],oa=[0,.69444,.06709,0,.59111],Da=[0,.69444,.12945,0,.35555],so=[0,.69444,0,0,.94888],Ws=[0,.69444,.11472,0,.59111],ws=[0,.68611,.10778,0,.88555],xs=[0,.69444,.07939,0,.62055],ms=[0,.69444,.12417,0,.30667],eo=[0,.64444,.13556,0,.51111],Ra=[.19444,.64444,.13556,0,.51111],os=[0,.68333,.16389,0,.74333],ss=[.19444,.43056,.08847,0,.46],Fs=[0,.43056,.07514,0,.71555],Go=[0,.69444,.06646,0,.51111],Fo=[0,.69444,0,0,.83129],pA=[0,.69444,.1225,0,.51111],tu=[0,.68333,.09403,0,.76666],Ac=[0,.68333,.11111,0,.76666],mA=[0,.69444,.06961,0,.51444],ll=[0,.69444,0,0,.27778],gA=[.25,.75,0,0,.38889],tl=[0,.64444,0,0,.5],gs=[0,.69444,0,0,.77778],qc=[0,.68333,0,0,.75],Ts=[0,.68333,0,0,.77778],OA=[0,.68333,0,0,.68056],uc=[0,.68333,0,0,.72222],jl=[.25,.75,0,0,.5],to=[.25,.75,0,0,.27778],Gs=[0,.69444,0,0,.5],vA=[0,.69444,0,0,.55556],Su=[0,.43056,0,0,.44445],ls=[0,.43056,0,0,.5],Ca=[.19444,.43056,0,0,.55556],ya=[0,.43056,0,0,.55556],ts=[.08333,.58333,0,0,.77778],go=[0,.43056,0,0,.27778],jo=[0,.66786,0,0,.27778],zo=[0,.69444,0,0,.75],No=[0,.66786,0,0,.5],Cs=[0,.68333,0,0,.625],oc=[.19444,.69444,0,0,.44445],Vc=[0,.69444,0,0,.72222],Xs=[.19444,.69444,0,0,.5],bA=[.19444,.69444,0,0,1],xl=[.011,.511,0,0,1.126],eA=[.19444,.69444,0,0,.61111],rl=[.05556,.75,0,0,.5],Id=[0,.68333,0,0,.83334],ru=[.0391,.5391,0,0,.66667],jA=[-.05555,.44445,0,0,.5],cf=[0,.43056,0,0,.77778],Wc=[0,.55556,0,0,.66667],Yu=[-.03625,.46375,0,0,.77778],Nc=[-.01688,.48312,0,0,.77778],Fd=[.0391,.5391,0,0,1],Xo=[0,.69444,0,0,.61111],Oo=[-.03472,.46528,0,0,.5],Jo=[.25,.75,0,0,.44445],yc=[-.14236,.35764,0,0,1],zl=[.244,.744,0,0,.412],qu=[.19444,.69444,0,0,.88889],yA=[.12963,.69444,0,0,.77778],zA=[.19444,.69444,0,0,.38889],Md=[.011,.511,0,0,1.638],Ld=[.19444,.69444,0,0,0],$A=[0,.44444,0,0,.575],ZA=[.19444,.44444,0,0,.575],Mo=[0,.68611,0,0,.75555],wA=[0,.69444,0,0,.66759],VA=[0,.68611,0,0,.80555],y0=[0,.68611,.08229,0,.98229],nu=[0,.68611,0,0,.76666],xh=[0,.44444,0,0,.58472],Af=[.19444,.44444,0,0,.6118],kd=[.19444,.43056,0,0,.5],Kf=[0,.68333,.02778,.08334,.76278],Ch=[0,.68333,.08125,.05556,.83125],Eu=[0,.43056,0,.05556,.48472],uf=[.19444,.43056,0,.08334,.51702],Cl=[.25,.75,0,0,.42778],Bl=[0,.69444,0,0,.55],Oc=[0,.69444,0,0,.73334],Pc=[0,.69444,0,0,.79445],w0=[0,.69444,0,0,.51945],_u=[0,.69444,0,0,.70278],Bh=[0,.69444,0,0,.76389],Iu=[.25,.75,0,0,.34306],Dd=[0,.69444,0,0,.56111],Vp=[0,.69444,0,0,.25556],iu=[.19444,.45833,0,0,.56111],tA=[0,.45833,0,0,.56111],wc=[0,.69444,0,0,.30556],$o=[0,.69444,0,0,.58056],ed=[0,.69444,0,0,.67223],Hf=[0,.69444,0,0,.85556],jf=[0,.69444,0,0,.55834],Tc=[0,.65556,.11156,0,.5],td=[0,.69444,.08094,0,.70834],df=[.17014,0,0,0,.44445],rd=[0,.69444,.0799,0,.5],x0=[0,.69444,0,0,.73752],C0=[0,.69444,.09205,0,.5],$l=[0,.69444,.09031,0,.77778],nd=[0,.69444,.07816,0,.27778],B0=[0,.69444,.00316,0,.5],ue=[.19444,.69444,0,0,.83334],we=[.05556,.75,0,0,.83334],Je=[0,.75,0,0,.5],lt=[.125,.08333,0,0,.27778],Ct=[0,.08333,0,0,.27778],bt=[0,.65556,0,0,.5],$t=[0,.69444,0,0,.47222],zt=[0,.69444,0,0,.66667],Kt=[0,.69444,0,0,.59722],Ar=[0,.69444,0,0,.54167],Er=[0,.69444,0,0,.70834],pr=[.25,.75,0,0,.28889],tn=[0,.69444,0,0,.51667],Vr=[0,.44444,0,0,.44445],Yr=[.19444,.44444,0,0,.51667],Pn=[0,.44444,0,0,.38333],Cn=[0,.44444,0,0,.51667],Mn=[0,.69444,0,0,.83334],Sn=[.35001,.85,0,0,.45834],$n=[.35001,.85,0,0,.57778],Ui=[.35001,.85,0,0,.41667],zi=[.35001,.85,0,0,.58334],pi=[0,.72222,0,0,.55556],na=[1e-5,.6,0,0,.66667],wa=[1e-5,.6,0,0,.77778],Yn=[.25001,.75,0,0,.94445],bi=[.306,.805,.19445,0,.47222],ai=[.30612,.805,.19445,0,.47222],Tn=[.25001,.75,0,0,.83334],oi=[.35001,.85,0,0,.47222],Vi=[.25001,.75,0,0,1.11111],Na=[.65002,1.15,0,0,.59722],pa=[.65002,1.15,0,0,.81111],Wi=[.65002,1.15,0,0,.47222],_a=[.65002,1.15,0,0,.66667],Qa=[0,.75,0,0,1],Yo=[.55001,1.05,0,0,1.27778],lo=[.862,1.36,.44445,0,.55556],vs=[.86225,1.36,.44445,0,.55556],cs=[.55001,1.05,0,0,1.11111],ma=[.65002,1.15,0,0,.52778],al=[.65002,1.15,0,0,.61111],mo=[.55001,1.05,0,0,1.51112],qo=[.95003,1.45,0,0,.73611],rs=[.95003,1.45,0,0,1.04445],xc=[.95003,1.45,0,0,.52778],si=[.95003,1.45,0,0,.75],Gi=[0,.75,0,0,1.44445],$i=[.95003,1.45,0,0,.58334],Oi=[1.25003,1.75,0,0,.79167],vo=[1.25003,1.75,0,0,1.27778],Pi=[1.25003,1.75,0,0,.58334],ca=[1.25003,1.75,0,0,.80556],ja=[0,.825,0,0,1.8889],$a=[1.25003,1.75,0,0,.63889],Ml=[.64502,1.155,0,0,.875],nl=[1e-5,.6,0,0,.875],Gc=[-99e-5,.601,0,0,.66667],Us=[.64502,1.155,0,0,.66667],Uc=[1e-5,.9,0,0,.88889],jn=[.65002,1.15,0,0,.88889],dc=[.90001,0,0,0,.88889],Fu=[-.00499,.605,0,0,1.05556],co=[0,.12,0,0,.45],mn=[0,.61111,0,0,.525],Lo=[.08333,.69444,0,0,.525],cl=[-.08056,.53055,0,0,.525],As=[-.05556,.55556,0,0,.525],ia=[0,.43056,0,0,.525],Sl=[.22222,.43056,0,0,.525],Zl=[0,0,0,0,.525],Rc={"AMS-Regular":{32:ur,65:Yt,66:Fr,67:Yt,68:Yt,69:Fr,70:Or,71:Lr,72:Lr,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:Lr,76:Fr,77:[0,.68889,0,0,.94445],78:Yt,79:kr,80:Or,81:kr,82:Yt,83:yr,84:Fr,85:Yt,86:Yt,87:[0,.68889,0,0,1],88:Yt,89:Yt,90:Fr,107:yr,160:ur,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:yr,295:Un,710:Kr,732:fn,770:Kr,771:fn,989:gi,1008:ci,8245:[0,.54986,0,0,.275],8463:Un,8487:Yt,8498:yr,8502:Fr,8503:[0,.68889,0,0,.44445],8504:Fr,8513:[0,.68889,0,0,.63889],8592:hn,8594:hn,8602:Dn,8603:Dn,8606:Qi,8608:Qi,8610:Pr,8611:Pr,8619:xn,8620:xn,8621:[-.13313,.37788,0,0,1.38889],8622:Dn,8624:Ei,8625:Ei,8630:di,8631:di,8634:Zi,8635:Zi,8638:_i,8639:_i,8642:_i,8643:_i,8644:ji,8646:ji,8647:ji,8648:qa,8649:ji,8650:qa,8651:Qi,8652:Qi,8653:Dn,8654:Dn,8655:Dn,8666:Ki,8667:Ki,8669:[-.13313,.37788,0,0,1],8672:ti,8674:ti,8705:[0,.825,0,0,.5],8708:yr,8709:gi,8717:[0,.43056,0,0,.42917],8722:hn,8724:[.08198,.69224,0,0,.77778],8726:gi,8733:Ie,8736:yi,8737:yi,8738:[.03517,.52239,0,0,.72222],8739:yn,8740:[.25142,.74111,0,0,.27778],8741:Bn,8742:[.25142,.74111,0,0,.5],8756:$e,8757:$e,8764:_e,8765:[-.13313,.37788,0,0,.77778],8769:_e,8770:Yu,8774:nr,8776:Nc,8778:gi,8782:Me,8783:Me,8785:Zi,8786:Zi,8787:Zi,8790:Ie,8791:Dr,8796:[.08198,.91667,0,0,.77778],8806:Nt,8807:Nt,8808:Mt,8809:Mt,8812:[.25583,.75583,0,0,.5],8814:Sr,8815:Sr,8816:nr,8817:nr,8818:Dr,8819:Dr,8822:Hr,8823:Hr,8828:an,8829:an,8830:Dr,8831:Dr,8832:Sr,8833:Sr,8840:nr,8841:nr,8842:jr,8843:jr,8847:Rr,8848:Rr,8858:Zi,8859:Zi,8861:Zi,8862:en,8863:en,8864:en,8865:en,8872:[0,.69224,0,0,.61111],8873:yi,8874:[0,.69224,0,0,.88889],8876:Or,8877:Or,8878:Yt,8879:Yt,8882:Rr,8883:Rr,8884:an,8885:an,8888:[0,.54986,0,0,1.11111],8890:Ca,8891:wn,8892:wn,8901:[0,.54986,0,0,.27778],8903:gi,8905:gi,8906:gi,8907:Ie,8908:Ie,8909:[-.03598,.46402,0,0,.77778],8910:on,8911:on,8912:Rr,8913:Rr,8914:Nn,8915:Nn,8916:$e,8918:Kn,8919:Kn,8920:fi,8921:fi,8922:On,8923:On,8926:an,8927:an,8928:nr,8929:nr,8934:Xn,8935:Xn,8936:Xn,8937:Xn,8938:Sr,8939:Sr,8940:nr,8941:nr,8994:Vt,8995:Vt,9416:[.15559,.69224,0,0,.90222],9484:Ei,9488:Ei,9492:Xt,9496:Xt,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:en,9633:en,9650:er,9651:er,9654:Rr,9660:er,9661:er,9664:Rr,9674:Rt,9733:[.19444,.69224,0,0,.94445],10003:fr,10016:fr,10731:Rt,10846:[.19444,.75583,0,0,.61111],10877:an,10878:an,10885:Nt,10886:Nt,10887:jr,10888:jr,10889:Jt,10890:Jt,10891:ar,10892:ar,10901:an,10902:an,10933:Mt,10934:Mt,10935:Jt,10936:Jt,10937:Jt,10938:Jt,10949:Nt,10950:Nt,10955:Nr,10956:Nr,57350:yn,57351:Bn,57352:gi,57353:ci,57356:Mt,57357:Mt,57358:ni,57359:nr,57360:nr,57361:ni,57366:Mt,57367:Mt,57368:Mt,57369:Mt,57370:jr,57371:jr},"Caligraphic-Regular":{32:ur,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:ur},"Fraktur-Regular":{32:ur,33:[0,.69141,0,0,.29574],34:Bi,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:Ii,41:Ii,42:[0,.62119,0,0,.27764],43:qn,44:zn,45:qn,46:zn,47:[.24982,.74947,0,0,.50181],48:xi,49:xi,50:xi,51:wi,52:wi,53:wi,54:Ci,55:wi,56:Ci,57:wi,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:Ai,93:Ai,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:ur,8216:Bi,8217:Bi,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:ur,33:[0,.69444,0,0,.35],34:Fa,35:[.19444,.69444,0,0,.95833],36:Os,37:[.05556,.75,0,0,.95833],38:Ha,39:hi,40:Xi,41:Xi,42:[0,.75,0,0,.575],43:Aa,44:[.19444,.15556,0,0,.31944],45:Pn,46:[0,.15556,0,0,.31944],47:ln,48:ri,49:ri,50:ri,51:ri,52:ri,53:ri,54:ri,55:ri,56:ri,57:ri,58:Bo,59:[.19444,.44444,0,0,.31944],60:Ti,61:Uo,62:Ti,63:[0,.69444,0,0,.54305],64:Ha,65:pn,66:[0,.68611,0,0,.81805],67:Ni,68:[0,.68611,0,0,.88194],69:Mo,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:li,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:Fn,77:[0,.68611,0,0,1.09166],78:li,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:pn,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Jn,92:ln,93:Jn,94:Ua,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:Hn,99:Li,100:Hn,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:Hn,105:hi,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:hi,109:[0,.44444,0,0,.95833],110:qi,111:$A,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:qi,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:Li,123:ln,124:Jn,125:ln,126:[.35,.34444,0,0,.575],160:ur,163:[0,.69444,0,0,.86853],168:Ua,172:[0,.44444,0,0,.76666],176:Wn,177:Aa,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:Aa,216:[.04861,.73472,0,0,.89444],223:Kt,230:[0,.44444,0,0,.83055],247:Aa,248:[.09722,.54167,0,0,.575],305:Bo,338:[0,.68611,0,0,1.16944],339:$s,567:[.19444,.44444,0,0,.35139],710:Ua,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:Ua,715:Ua,728:Ua,729:hi,730:Wn,732:Ua,733:Ua,915:Fn,916:po,920:Ji,923:VA,926:nu,928:li,931:Ni,933:Ji,934:Ni,936:Ji,937:Ni,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:hi,8217:hi,8220:Fa,8221:Fa,8224:Is,8225:Is,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:wA,8465:za,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:za,8501:ic,8592:fa,8593:Io,8594:fa,8595:Io,8596:fa,8597:ln,8598:So,8599:So,8600:So,8601:So,8636:fa,8637:fa,8640:fa,8641:fa,8656:fa,8657:Po,8658:fa,8659:Po,8660:fa,8661:[.25,.75,0,0,.70277],8704:Hn,8706:[0,.69444,.06389,0,.62847],8707:Hn,8709:Os,8711:po,8712:bs,8715:bs,8722:Aa,8723:Aa,8725:ln,8726:ln,8727:ac,8728:Ps,8729:Ps,8730:[.18,.82,0,0,.95833],8733:$s,8734:[0,.44444,0,0,1.14999],8736:yi,8739:Jn,8741:ln,8743:To,8744:To,8745:To,8746:To,8747:[.19444,.69444,.12778,0,.56875],8764:Uo,8768:[.19444,.69444,0,0,.31944],8771:ys,8776:[.02444,.52444,0,0,.89444],8781:ys,8801:ys,8804:el,8805:el,8810:vl,8811:vl,8826:Ti,8827:Ti,8834:Ti,8835:Ti,8838:el,8839:el,8846:To,8849:el,8850:el,8851:To,8852:To,8853:Aa,8854:Aa,8855:Aa,8856:Aa,8857:Aa,8866:ic,8867:ic,8868:Ha,8869:Ha,8900:Ps,8901:[-.02639,.47361,0,0,.31944],8902:ac,8968:Ql,8969:Ql,8970:Ql,8971:Ql,8994:Zs,8995:Zs,9651:Dc,9657:ac,9661:Dc,9667:ac,9711:So,9824:Kl,9825:Kl,9826:Kl,9827:Kl,9837:[0,.75,0,0,.44722],9838:Hl,9839:Hl,10216:Xi,10217:Xi,10815:li,10927:el,10928:el,57376:Ld},"Main-BoldItalic":{32:ur,33:[0,.69444,.11417,0,.38611],34:xs,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:Vs,49:Vs,50:Vs,51:Vs,52:as,53:Vs,54:Vs,55:as,56:Vs,57:Vs,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:Ws,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:ii,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:ii,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:oa,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:la,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:la,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:ur,168:[0,.69444,.11473,0,.59111],176:so,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:ta,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:ta,567:[.19444,.44444,.04611,0,.385],710:oa,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:so,732:Ws,733:Ws,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:ii,931:[0,.68611,.11431,0,.82666],933:ws,934:[0,.68611,.05632,0,.82666],936:ws,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:xs},"Main-Italic":{32:ur,33:ms,34:mA,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:ms,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:eo,49:eo,50:eo,51:eo,52:Ra,53:eo,54:eo,55:Ra,56:eo,57:eo,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:pA,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:os,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:os,79:tu,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:os,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:Go,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:ss,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:ss,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:ur,168:[0,.66786,.10474,0,.51111],176:Fo,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:Fs,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:Fs,710:Go,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:Fo,732:[0,.66786,.11585,0,.51111],733:pA,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:tu,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:os,931:[0,.68333,.12028,0,.71555],933:Ac,934:[0,.68333,.05986,0,.71555],936:Ac,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:ms,8217:ms,8220:[0,.69444,.1685,0,.51444],8221:mA,8463:Un},"Main-Regular":{32:ur,33:ll,34:Gs,35:ue,36:rl,37:we,38:gs,39:ll,40:gA,41:gA,42:Je,43:ts,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:jl,48:tl,49:tl,50:tl,51:tl,52:tl,53:tl,54:tl,55:tl,56:tl,57:tl,58:go,59:[.19444,.43056,0,0,.27778],60:Kn,61:_e,62:Kn,63:$t,64:gs,65:qc,66:[0,.68333,0,0,.70834],67:uc,68:[0,.68333,0,0,.76389],69:OA,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:qc,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:Ts,76:Cs,77:[0,.68333,0,0,.91667],78:qc,79:Ts,80:OA,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:uc,85:qc,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:qc,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:to,92:jl,93:to,94:Gs,95:[.31,.12056,.02778,0,.5],97:ls,98:vA,99:Su,100:vA,101:Su,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:vA,105:jo,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:ll,109:[0,.43056,0,0,.83334],110:ya,111:ls,112:Ca,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:ya,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:Su,123:jl,124:to,125:jl,126:[.35,.31786,0,0,.5],160:ur,163:[0,.69444,0,0,.76909],167:oc,168:No,172:[0,.43056,0,0,.66667],176:zo,177:ts,182:eA,184:df,198:[0,.68333,0,0,.90278],215:ts,216:[.04861,.73194,0,0,.77778],223:Gs,230:[0,.43056,0,0,.72222],247:ts,248:[.09722,.52778,0,0,.5],305:go,338:[0,.68333,0,0,1.01389],339:cf,567:[.19444,.43056,0,0,.30556],710:Gs,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:Gs,715:Gs,728:Gs,729:jo,730:zo,732:No,733:Gs,915:Cs,916:Id,920:Ts,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:qc,931:uc,933:Ts,934:uc,936:Ts,937:uc,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:ll,8217:ll,8220:Gs,8221:Gs,8224:oc,8225:oc,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:Un,8465:Vc,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:Vc,8501:Xo,8592:Dn,8593:Xs,8594:Dn,8595:Xs,8596:Dn,8597:jl,8598:bA,8599:bA,8600:bA,8601:bA,8614:[.011,.511,0,0,1],8617:xl,8618:xl,8636:Dn,8637:Dn,8640:Dn,8641:Dn,8652:[.011,.671,0,0,1],8656:Dn,8657:eA,8658:Dn,8659:eA,8660:Dn,8661:[.25,.75,0,0,.61111],8704:vA,8706:[0,.69444,.05556,.08334,.5309],8707:vA,8709:rl,8711:Id,8712:ru,8715:ru,8722:ts,8723:ts,8725:jl,8726:jl,8727:Oo,8728:jA,8729:jA,8730:[.2,.8,0,0,.83334],8733:cf,8734:di,8736:yi,8739:to,8741:jl,8743:Wc,8744:Wc,8745:Wc,8746:Wc,8747:[.19444,.69444,.11111,0,.41667],8764:_e,8768:[.19444,.69444,0,0,.27778],8771:Yu,8773:[-.022,.589,0,0,1],8776:Nc,8781:Yu,8784:[-.133,.67,0,0,.778],8801:Yu,8804:jr,8805:jr,8810:Fd,8811:Fd,8826:Kn,8827:Kn,8834:Kn,8835:Kn,8838:jr,8839:jr,8846:Wc,8849:jr,8850:jr,8851:Wc,8852:Wc,8853:ts,8854:ts,8855:ts,8856:ts,8857:ts,8866:Xo,8867:Xo,8868:gs,8869:gs,8872:[.249,.75,0,0,.867],8900:jA,8901:[-.05555,.44445,0,0,.27778],8902:Oo,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:Jo,8969:Jo,8970:Jo,8971:Jo,8994:yc,8995:yc,9136:zl,9137:zl,9651:qu,9657:Oo,9661:qu,9667:Oo,9711:bA,9824:yA,9825:yA,9826:yA,9827:yA,9837:[0,.75,0,0,.38889],9838:zA,9839:zA,10216:gA,10217:gA,10222:zl,10223:zl,10229:[.011,.511,0,0,1.609],10230:Md,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:Md,10815:qc,10927:jr,10928:jr,57376:Ld},"Math-BoldItalic":{32:ur,48:$A,49:$A,50:$A,51:ZA,52:ZA,53:ZA,54:ri,55:ZA,56:ri,57:ZA,65:pn,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:y0,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:Mo,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:wA,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:xh,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:ur,915:[0,.68611,.15972,0,.65694],916:po,920:[0,.68611,.03194,0,.86722],923:VA,926:[0,.68611,.07458,0,.84125],928:y0,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:nu,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:xh,960:[0,.44444,.03704,0,.68241],961:Af,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:Af,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:ur,48:ls,49:ls,50:ls,51:kd,52:kd,53:kd,54:tl,55:kd,56:tl,57:kd,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:Ch,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:Kf,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:Eu,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:ur,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:Kf,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:Ch,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:Eu,960:[0,.43056,.03588,0,.57003],961:uf,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:uf,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:ur,33:[0,.69444,0,0,.36667],34:jf,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:wc,40:Cl,41:Cl,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:Bl,49:Bl,50:Bl,51:Bl,52:Bl,53:Bl,54:Bl,55:Bl,56:Bl,57:Bl,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:w0,64:Oc,65:Oc,66:Oc,67:_u,68:Pc,69:[0,.69444,0,0,.64167],70:Xo,71:Oc,72:Pc,73:[0,.69444,0,0,.33056],74:w0,75:Bh,76:$o,77:[0,.69444,0,0,.97778],78:Pc,79:Pc,80:_u,81:[.10556,.69444,0,0,.79445],82:_u,83:Xo,84:Oc,85:Bh,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:Oc,89:[0,.69444,.0275,0,.73334],90:ed,91:Iu,93:Iu,94:Bl,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:Dd,99:[0,.45833,0,0,.48889],100:Dd,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:Dd,105:Vp,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:Vp,109:[0,.45833,0,0,.86667],110:tA,111:[0,.45833,0,0,.55],112:iu,113:iu,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:tA,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:ur,168:Bl,176:Oc,180:Bl,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:Bl,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:Bl,729:wc,730:Oc,732:Bl,733:Bl,915:$o,916:[0,.69444,0,0,.91667],920:Hf,923:ed,926:Oc,928:Pc,931:Pc,933:Hf,934:Pc,936:Hf,937:Pc,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:wc,8217:wc,8220:jf,8221:jf},"SansSerif-Italic":{32:ur,33:[0,.69444,.05733,0,.31945],34:B0,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:nd,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:lt,45:[0,.44444,.01946,0,.33333],46:Ct,47:[.25,.75,.13164,0,.5],48:Tc,49:Tc,50:Tc,51:Tc,52:Tc,53:Tc,54:Tc,55:Tc,56:Tc,57:Tc,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:zt,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:td,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:Ar,77:[0,.69444,.08094,0,.875],78:td,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:rd,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:ur,168:[0,.67937,.06385,0,.5],176:x0,184:df,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:rd,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:C0,715:Gs,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:x0,732:[0,.67659,.08826,0,.5],733:C0,915:[0,.69444,.13372,0,.54167],916:Mn,920:[0,.69444,.07555,0,.77778],923:Xo,926:[0,.69444,.12816,0,.66667],928:td,931:[0,.69444,.11983,0,.72222],933:$l,934:[0,.69444,.04603,0,.72222],936:$l,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:nd,8217:nd,8220:[0,.69444,.14205,0,.5],8221:B0},"SansSerif-Regular":{32:ur,33:[0,.69444,0,0,.31945],34:Gs,35:ue,36:rl,37:we,38:[0,.69444,0,0,.75834],39:ll,40:gA,41:gA,42:Je,43:ts,44:lt,45:[0,.44444,0,0,.33333],46:Ct,47:jl,48:bt,49:bt,50:bt,51:bt,52:bt,53:bt,54:bt,55:bt,56:bt,57:bt,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:$t,64:zt,65:zt,66:zt,67:Hn,68:[0,.69444,0,0,.72223],69:Kt,70:[0,.69444,0,0,.56945],71:zt,72:Er,73:ll,74:$t,75:[0,.69444,0,0,.69445],76:Ar,77:[0,.69444,0,0,.875],78:Er,79:[0,.69444,0,0,.73611],80:Hn,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:vA,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:zt,89:[0,.69444,.025,0,.66667],90:Xo,91:pr,93:pr,94:Gs,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:tn,99:Vr,100:tn,101:Vr,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:tn,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:Cn,111:[0,.44444,0,0,.5],112:Yr,113:Yr,114:[0,.44444,.01389,0,.34167],115:Pn,116:[0,.57143,0,0,.36111],117:Cn,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:ur,168:[0,.67937,0,0,.5],176:zt,184:df,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:Gs,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:Gs,715:Gs,728:Gs,729:[0,.67937,0,0,.27778],730:zt,732:[0,.67659,0,0,.5],733:Gs,915:Ar,916:Mn,920:gs,923:Xo,926:zt,928:Er,931:Vc,933:gs,934:Vc,936:gs,937:Vc,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:ll,8217:ll,8220:Gs,8221:Gs},"Script-Regular":{32:ur,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:ur},"Size1-Regular":{32:ur,40:Sn,41:Sn,47:$n,91:Ui,92:$n,93:Ui,123:zi,125:zi,160:ur,710:pi,732:pi,770:pi,771:pi,8214:[-99e-5,.601,0,0,.77778],8593:na,8595:na,8657:wa,8659:wa,8719:Yn,8720:Yn,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:ai,8748:bi,8749:bi,8750:ai,8896:Tn,8897:Tn,8898:Tn,8899:Tn,8968:oi,8969:oi,8970:oi,8971:oi,9168:Gc,10216:oi,10217:oi,10752:Vi,10753:Vi,10754:Vi,10756:Tn,10758:Tn},"Size2-Regular":{32:ur,40:Na,41:Na,47:pa,91:Wi,92:pa,93:Wi,123:_a,125:_a,160:ur,710:Qa,732:Qa,770:Qa,771:Qa,8719:Yo,8720:Yo,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:vs,8748:lo,8749:lo,8750:vs,8896:cs,8897:cs,8898:cs,8899:cs,8968:ma,8969:ma,8970:ma,8971:ma,10216:al,10217:al,10752:mo,10753:mo,10754:mo,10756:cs,10758:cs},"Size3-Regular":{32:ur,40:qo,41:qo,47:rs,91:xc,92:rs,93:xc,123:si,125:si,160:ur,710:Gi,732:Gi,770:Gi,771:Gi,8730:[.95003,1.45,0,0,1],8968:$i,8969:$i,8970:$i,8971:$i,10216:si,10217:si},"Size4-Regular":{32:ur,40:Oi,41:Oi,47:vo,91:Pi,92:vo,93:Pi,123:ca,125:ca,160:ur,710:ja,732:ja,770:ja,771:ja,8730:[1.25003,1.75,0,0,1],8968:$a,8969:$a,8970:$a,8971:$a,9115:Ml,9116:nl,9117:Ml,9118:Ml,9119:nl,9120:Ml,9121:Us,9122:Gc,9123:Us,9124:Us,9125:Gc,9126:Us,9127:Uc,9128:jn,9129:dc,9130:[0,.3,0,0,.88889],9131:Uc,9132:jn,9133:dc,9143:[.88502,.915,0,0,1.05556],10216:ca,10217:ca,57344:Fu,57345:Fu,57680:co,57681:co,57682:co,57683:co},"Typewriter-Regular":{32:Zl,33:mn,34:mn,35:mn,36:Lo,37:Lo,38:mn,39:mn,40:Lo,41:Lo,42:[0,.52083,0,0,.525],43:cl,44:[.13889,.125,0,0,.525],45:cl,46:[0,.125,0,0,.525],47:Lo,48:mn,49:mn,50:mn,51:mn,52:mn,53:mn,54:mn,55:mn,56:mn,57:mn,58:ia,59:[.13889,.43056,0,0,.525],60:As,61:[-.19549,.41562,0,0,.525],62:As,63:mn,64:mn,65:mn,66:mn,67:mn,68:mn,69:mn,70:mn,71:mn,72:mn,73:mn,74:mn,75:mn,76:mn,77:mn,78:mn,79:mn,80:mn,81:[.13889,.61111,0,0,.525],82:mn,83:mn,84:mn,85:mn,86:mn,87:mn,88:mn,89:mn,90:mn,91:Lo,92:Lo,93:Lo,94:mn,95:[.09514,0,0,0,.525],96:mn,97:ia,98:mn,99:ia,100:mn,101:ia,102:mn,103:Sl,104:mn,105:mn,106:[.22222,.61111,0,0,.525],107:mn,108:mn,109:ia,110:ia,111:ia,112:Sl,113:Sl,114:ia,115:ia,116:[0,.55358,0,0,.525],117:ia,118:ia,119:ia,120:ia,121:Sl,122:ia,123:Lo,124:Lo,125:Lo,126:mn,127:mn,160:Zl,176:mn,184:[.19445,0,0,0,.525],305:ia,567:Sl,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:mn,715:mn,728:mn,730:mn,770:mn,771:mn,776:mn,915:mn,916:mn,920:mn,923:mn,926:mn,928:mn,931:mn,933:mn,934:mn,936:mn,937:mn,8216:mn,8217:mn,8242:mn,9251:[.11111,.21944,0,0,.525]}},Cc=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,El=10,Al=.25,au=1.2,Ll=.431,Rs={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[Ll,Ll,Ll],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:[Al,Al,Al],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]},_l=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],il=5,Ms={"\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 Bc(e,t){e===void 0&&(e=77);const r=Rc[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 i=String.fromCodePoint(e);if(i in Ms)e=Ms[i].codePointAt(0);else if(Cc.test(i))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 xA={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]},PA={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]},CA={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 ff(e){if(PA[e]){const[X,ce,Pe]=PA[e],nt=`<span class="stretchy" style="height:${Pe}em"><svg width="100%" height="${Pe}em" viewBox="0 0 ${X} ${ce}" preserveAspectRatio="none" ><path fill="currentcolor" d="${CA[e]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*Pe/2)/100}em;min-width:0">${nt}</span>`}const[t,r,i,s]=xA[e];let c,u;const k=i/1e3;t.length===3?(c=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],u=["xMinYMin","xMidYMin","xMaxYMin"]):t.length===2?(c=["slice-1-of-2","slice-2-of-2"],u=["xMinYMin","xMaxYMin"]):(c=["slice-1-of-1"],u=[s]);const j=t.map((X,ce)=>`<span class="${c[ce]}" style=height:${k}em><svg width=400em height=${k}em viewBox="0 0 400000 ${i}" preserveAspectRatio="${u[ce]} slice"><path fill="currentcolor" d="${CA[X]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${k}em;min-width:${r}em;">${j}</span>`}function zf(e){return xA[e]?xA[e][2]/1e3:PA[e][2]}function ao(e){const t=[];for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if(i===13&&e.charCodeAt(r+1)===10&&(i=10,r++),(i===13||i===12)&&(i=10),i===0&&(i=65533),i>=55296&&i<=56319){const s=e.charCodeAt(r+1);if(s>=56320&&s<=57343){const c=i-55296,u=s-56320;i=wh(2,16)+c*wh(2,10)+u,r++}}t.push(i)}return t}var Zo=8205,Vl=[[Zo,1],[65038,2],[127995,5],[129456,4],[917536,96]],us,kl=[127462,127487];function Wl(e){var t;if(us===void 0){us={};for(const r of Vl)for(let i=r[0];i<=r[0]+r[1]-1;i++)us[i]=!0}return(t=us[e])!=null?t:!1}function Js(e){return e>=kl[0]&&e<=kl[1]}function BA(e){if(/^[\u0020-\u00FF]*$/.test(e))return e;const t=[],r=ao(e);let i=0;for(;i<r.length;){const s=r[i++],c=r[i];if(c===Zo){const u=i-1;for(i+=2;r[i]===Zo;)i+=2;t.push(String.fromCodePoint(...r.slice(u,i-u+1)))}else if(Wl(c)){const u=i-1;for(;Wl(r[i]);)i+=r[i]===Zo?2:1;t.push(String.fromCodePoint(...r.slice(u,2*i-u-1)))}else Js(s)?(i+=1,t.push(String.fromCodePoint(...r.slice(i-2,2)))):t.push(String.fromCodePoint(s))}return t}var hf=class{constructor(e){this.obeyspaces=!1,this.pos=0,this.s=BA(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 pf(e,t){var r,i,s,c;const u=[];let k=e.next();if(k&&k!=="\\relax"){if(k==="\\noexpand")k=e.next(),k&&u.push(k);else if(k==="\\obeyspaces")e.obeyspaces=!0;else if(k==="\\bgroup")u.push("<{>");else if(k==="\\egroup")u.push("<}>");else if(k==="\\string"){if(k=e.next(),k)if(k.startsWith("\\"))for(const j of k)u.push(j==="\\"?"\\backslash":j);else k==="<{>"?u.push("\\{"):k==="<space>"?u.push("~"):k==="<}>"&&u.push("\\}")}else if(k==="\\csname"){for(;e.peek()==="<space>";)e.next();let j="",X=!1,ce=[];do{if(ce.length===0)if(/^#[\d?@]$/.test(e.peek())){const Pe=e.get().slice(1);ce=id((i=(r=t==null?void 0:t(Pe))!=null?r:t==null?void 0:t("?"))!=null?i:"\\placeholder{}",t),k=ce[0]}else k=e.next(),ce=k?[k]:[];X=ce.length===0,!X&&k==="\\endcsname"&&(X=!0,ce.shift()),X||(X=k==="<$>"||k==="<$$>"||k==="<{>"||k==="<}>"||typeof k=="string"&&k.length>1&&k.startsWith("\\")),X||(j+=ce.shift())}while(!X);j&&u.push("\\"+j),u.push(...ce)}else if(k!=="\\endcsname")if(k.length>1&&k.startsWith("#")){const j=k.slice(1);u.push(...id((c=(s=t==null?void 0:t(j))!=null?s:t==null?void 0:t("?"))!=null?c:"\\placeholder{}",t))}else u.push(k)}return u}function id(e,t=null){const r=[];let i="";for(const u of e.toString().split(/\r?\n/)){i&&r.push(i),i=" ";const k=u.match(/((?:\\%)|[^%])*/);k!==null&&r.push(k[0])}const s=new hf(je(r.join(""))),c=[];do c.push(...pf(s,t));while(!s.end());return c}function Ao(e){let t="";const r=[];for(const i of e)i&&(t&&/^[a-zA-Z\*]/.test(i)&&r.push(t),r.push(i),/^\\[a-zA-Z]+\*?[\"\'][^\ ]+$/.test(i)&&r.push(" "),t=/\\[a-zA-Z]+\*?$/.test(i)?" ":"");return r.join("")}function Bs(e,...t){return console.assert(e.startsWith("\\")),t.length===0?e:Ao([e,...t.map(r=>`{${r}}`)])}function SA(e){return Ao(e.map(t=>{var r;return(r={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[t])!=null?r:t}))}var EA=class gg{constructor(t){gg._registry[t]=this}static createAtom(t,r,i){return gg._registry[t].createAtom(r,ct(r,t),i)}static serialize(t,r){var i;if(!t||t.length===0)return"";if((i=r.skipStyles)!=null&&i){const s=[];for(const c of $f(t)){const u=gg._registry[c[0].mode];s.push(...u.serialize(c,r))}return Ao(s)}return Ao(ad(t,r))}static getFont(t,r,i){return gg._registry[t].getFont(r,i)}};EA._registry={};var Gl=EA;function $f(e){const t=[];let r=[],i="NONE";for(const s of e)s.type!=="first"&&(s.mode!==i?(r.length>0&&t.push(r),r=[s],i=s.mode):r.push(s));return r.length>0&&t.push(r),t}function TA(e,t){const r=[];let i=[],s;for(const c of e)if(c.type!=="first"&&c.style){let u;t==="variant"?(u=c.style.variant,c.style.variantStyle&&c.style.variantStyle!=="up"&&(u+="-"+c.style.variantStyle)):u=c.style[t],u===s?i.push(c):(i.length>0&&r.push(i),i=[c],s=u)}return i.length>0&&r.push(i),r}function Zf(e,t){var r;const{parent:i}=e[0],s=i==null?void 0:i.computedStyle.color,c=[];for(const u of $f(e)){const k=t.defaultMode;for(const j of TA(u,"color")){const X=j[0].computedStyle,ce=Gl._registry[j[0].mode].serialize(j,F(g({},t),{defaultMode:k==="text"?"text":"math"}));!t.skipStyles&&X.color&&X.color!=="none"&&(!i||s!==X.color)?c.push(Bs("\\textcolor",(r=X.verbatimColor)!=null?r:X.color,Ao(ce))):c.push(Ao(ce))}}return c}function Vf(e,t){const{parent:r}=e[0],i=r==null?void 0:r.computedStyle.backgroundColor;return TA(e,"backgroundColor").map(s=>{var c;if(s.length>0||s[0].type!=="box"){const u=s[0].computedStyle;if(u.backgroundColor&&u.backgroundColor!=="none"&&(!r||i!==u.backgroundColor))return Bs("\\colorbox",(c=u.verbatimBackgroundColor)!=null?c:u.backgroundColor,Ao(Zf(s,F(g({},t),{defaultMode:"text"}))))}return Ao(Zf(s,t))})}function ad(e,t){if(e.length===0)return[];const{parent:r}=e[0],i=r==null?void 0:r.computedStyle.fontSize,s=[];for(const c of TA(e,"fontSize")){const u=c[0].computedStyle.fontSize,k=Vf(c,t);k&&(u&&u!=="auto"&&(!r||i!==u)?s.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][u],...k):s.push(...k))}return s}function Nd(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 Od(e){if(e.length===0)return"ord";const t=Nd(e[0].type),r=Nd(e[e.length-1].type);return t&&t===r?t:"ord"}function od(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 zr=class N1{constructor(t,r){var i,s,c,u,k;if(typeof t=="number"?this.value=String.fromCodePoint(t):typeof t=="string"?this.value=t:_(t)?this.children=t.filter(X=>X!==null):t&&t instanceof N1&&(this.children=[t]),this.children)for(const X of this.children)X.parent=this;this.type=(i=r==null?void 0:r.type)!=null?i:"ignore",this.isSelected=(r==null?void 0:r.isSelected)===!0,r!=null&&r.caret&&(this.caret=r.caret),this.classes=(s=r==null?void 0:r.classes)!=null?s:"",this.isTight=(c=r==null?void 0:r.isTight)!=null?c:!1,r!=null&&r.attributes&&(this.attributes=r.attributes);let j=r==null?void 0:r.fontFamily;r!=null&&r.style&&this.value&&(j=(k=Gl.getFont((u=r.mode)!=null?u:"math",this,F(g({variant:"normal"},r.style),{letterShapeStyle:r.letterShapeStyle})))!=null?k:void 0),j||(j="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),Sh(this,j)}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,i){if(r===void 0)return;const s=od(r,i);s.length>0&&(this.cssProperties||(this.cssProperties={}),this.cssProperties[t]=s)}setTop(t){Number.isFinite(t)&&Math.abs(t)>.01&&(this.cssProperties||(this.cssProperties={}),this.cssProperties.top=od(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"]=od(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"]=od(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"]=od(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 i=t.color;i&&i!==r.color&&this.setStyle("color",i);let s=t.backgroundColor;this.isSelected&&(s=ve(s)),s&&s!==r.backgroundColor&&(this.setStyle("background-color",s),this.setStyle("display","inline-block"));const c=t.scalingFactor;return this.scale=c,this.skew*=c,this.italic*=c,this}toMarkup(){var t,r,i,s;let c=(t=this.value)!=null?t:"";if(this.children)for(const vt of this.children)c+=vt.toMarkup();let u="";if(this.svgBody)u=ff(this.svgBody);else if(this.svgOverlay){u='<span style="',u+="display: inline-block;",u+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,u+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,u+='">',u+=c,u+="</span>",u+='<svg style="position:absolute;overflow:visible;',u+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const vt=(r=this.cssProperties)==null?void 0:r.padding;vt?(u+=`top:${vt};`,u+=`left:${vt};`,u+=`width:calc(100% - 2 * ${vt} );`):u+="top:0;left:0;width:100%;",u+="z-index:2;",u+='"',this.svgStyle&&(u+=this.svgStyle),u+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,u+=`>${this.svgOverlay}</svg>`}let k="";const j=this.classes.split(" ");j.push((i={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?i:""),this.caret==="latex"&&j.push("ML__latex-caret"),this.isSelected&&j.push("ML__selected");const X=j.length===1?j[0]:j.filter((vt,St,Cr)=>vt.length>0&&Cr.indexOf(vt)===St).join(" ");if(X.length>0&&(k+=` class="${X}"`),this.id&&(k+=` data-atom-id=${this.id}`),this.cssId&&(k+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(k+=" "+Object.keys(this.attributes).map(vt=>`${vt}="${this.attributes[vt]}"`).join(" ")),this.htmlData){const vt=this.htmlData.split(",");for(const St of vt){const Cr=St.match(/([^=]+)=(.+$)/);if(Cr){const _n=Cr[1].trim().replace(/ /g,"-");_n&&(k+=` data-${_n}="${Cr[2]}" `)}else{const _n=St.trim().replace(/ /g,"-");_n&&(k+=` data-${_n} `)}}}const ce=(s=this.cssProperties)!=null?s:{};this.hasExplicitWidth&&ce.width===void 0&&(ce.width=`${Math.ceil(this._width*100)/100}em`);const Pe=Object.keys(ce).map(vt=>`${vt}:${ce[vt]}`);if(this.scale!==void 0&&this.scale!==1&&(c.length>0||u.length>0)&&Pe.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const vt=this.htmlStyle.split(";");let St="";for(const Cr of vt){const _n=Cr.match(/([^=]+):(.+$)/);if(_n){const wr=_n[1].trim().replace(/ /g,"-");wr&&(St+=`${wr}:${_n[2]};`)}}St&&(k+=` style="${St}"`)}Pe.length>0&&(k+=` style="${Pe.join(";")}"`);let nt="";return k.length>0||u.length>0?nt=`<span${k}>${c}${u}</span>`:nt=c,this.caret==="text"?nt+='<span class="ML__text-caret"></span>':this.caret==="math"&&(nt+='<span class="ML__caret"></span>'),nt}tryCoalesceWith(t){if(this.svgBody||!this.value||t.svgBody||!t.value)return!1;const r=this.children&&this.children.length>0,i=t.children&&t.children.length>0;if(r||i)return!1;if(t.cssProperties||this.cssProperties){for(const j of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(t.cssProperties&&j in t.cssProperties||this.cssProperties&&j in this.cssProperties)return!1}const s=this.cssProperties?Object.keys(this.cssProperties).length:0,c=t.cssProperties?Object.keys(t.cssProperties).length:0;if(s!==c)return!1;if(s>0){for(const j of Object.keys(this.cssProperties))if(this.cssProperties[j]!==t.cssProperties[j])return!1}const u=this.classes.trim().replace(/\s+/g," ").split(" "),k=t.classes.trim().replace(/\s+/g," ").split(" ");if(u.length!==k.length)return!1;u.sort(),k.sort();for(const[j,X]of u.entries())if(X==="vertical-separator"||X!==k[j])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 Pd(e){if(!e||e.length===0)return[];e[0].children=Pd(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=Pd(e[r].children),t.push(e[r]));return t}function mf(e){return e.children&&(e.children=Pd(e.children)),e}function Wf(e,t){if(!e)return new zr(null,t);const r=new zr(null,{classes:"ML__strut",type:"ignore"});r.setStyle("height",Math.max(0,e.height),"em");const i=[r];if(e.depth!==0){const s=new zr(null,{classes:"ML__strut--bottom",type:"ignore"});s.setStyle("height",e.height+e.depth,"em"),s.setStyle("vertical-align",-e.depth,"em"),i.push(s)}return i.push(e),new zr(i,F(g({},t),{type:"lift"}))}function gf(e){const t=zf(e)/2,r=new zr(null,{maxFontSize:0});return r.height=t+.166,r.depth=t-.166,r.svgBody=e,r}function Sh(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 i=0;i<e.value.length;i++){const s=Bc(e.value.codePointAt(i),t);e.height=Math.max(e.height,s.height),e.depth=Math.max(e.depth,s.depth),e._width+=s.width,e.skew=s.skew,e.italic=s.italic}return}if(e.children&&e.children.length>0){let i=-1/0,s=-1/0,c=0;for(const u of e.children)u.height>i&&(i=u.height),u.depth>s&&(s=u.depth),c=Math.max(c,(r=u.maxFontSize)!=null?r:0);e.height=i,e.depth=s,e._width=e.children.reduce((u,k)=>u+k.width,0),e.maxFontSize=c}}function Eh(e){if("individualShift"in e){const t=e.individualShift;let r=t[0];const i=[r],s=-r.shift-r.box.depth;let c=s;for(let u=1;u<t.length;u++){const k=t[u],j=-k.shift-c-k.box.depth,X=j-(r.box.height+r.box.depth);c=c+j,i.push(X),i.push(k),r=k}return[i,s]}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 Gf(e){var t;const[r,i]=Eh(e);if(!r)return[[],0,0];const s=new zr(null,{classes:"pstrut"});let c=0;for(const St of r)if(typeof St!="number"){const Cr=St.box;c=Math.max(c,Cr.maxFontSize,Cr.height)}c+=2,s.height=c,s.setStyle("height",c,"em");const u=[];let k=i,j=i,X=i,ce=0;for(const St of r){if(typeof St=="number")X+=St;else{const Cr=St.box,_n=(t=St.classes)!=null?t:[],wr=new zr([s,Cr],{classes:_n.join(" "),style:St.style});Cr.setStyle("height",Cr.height+Cr.depth,"em"),Cr.setStyle("display","inline-block"),wr.setStyle("top",-c-X-Cr.depth,"em"),St.marginLeft&&wr.setStyle("margin-left",St.marginLeft,"em"),St.marginRight&&wr.setStyle("margin-right",St.marginRight,"em"),u.push(wr),X+=Cr.height+Cr.depth,ce=Math.max(ce,wr.width)}k=Math.min(k,X),j=Math.max(j,X)}u.forEach(St=>{St.softWidth=ce});const Pe=new zr(u,{classes:"vlist"});if(Pe.softWidth=ce,Pe.height=j,Pe.setStyle("height",j,"em"),k>=0)return[[new zr(Pe,{classes:"vlist-r"})],j,-k];const nt=new zr(new zr(null),{classes:"vlist"});nt.height=-k,nt.setStyle("height",-k,"em");const vt=new zr(8203,{classes:"vlist-s",maxFontSize:0});return vt.softWidth=0,vt.height=0,vt.depth=0,[[new zr([Pe,vt],{classes:"vlist-r"}),new zr(nt,{classes:"vlist-r"})],j,-k]}var bl=class extends zr{constructor(e,t){var r;const[i,s,c]=Gf(e);super(i.length===1?i[0]:i,{type:t==null?void 0:t.type,classes:((r=t==null?void 0:t.classes)!=null?r:"")+" vlist-t"+(i.length===2?" vlist-t2":"")}),this.height=s,this.depth=c,this.softWidth=i.reduce((u,k)=>Math.max(u,k.width),0)}};function Mu(e,t){var r,i,s,c,u;const k=e.metrics,j=new zr(t.base),X=(r=t.baseShift)!=null?r:0,ce=(i=t.slant)!=null?i:0;let Pe=0,nt=0;t.above&&(Pe=(s=t.aboveShift)!=null?s:Math.max(k.bigOpSpacing1,k.bigOpSpacing3-t.above.depth)),t.below&&(nt=(c=t.belowShift)!=null?c:Math.max(k.bigOpSpacing2,k.bigOpSpacing4-t.below.height));let vt=null;if(t.below&&t.above){const St=k.bigOpSpacing5+t.below.height+t.below.depth+nt+j.depth+X;vt=new bl({bottom:St,children:[k.bigOpSpacing5,{box:t.below,marginLeft:-ce,classes:["ML__center"]},nt,{box:j,classes:["ML__center"]},Pe,{box:t.above,marginLeft:ce,classes:["ML__center"]},k.bigOpSpacing5]}).wrap(e)}else if(t.below&&!t.above)vt=new bl({top:j.height-X,children:[k.bigOpSpacing5,{box:t.below,marginLeft:-ce,classes:["ML__center"]},nt,{box:j,classes:["ML__center"]}]}).wrap(e);else if(!t.below&&t.above){const St=j.depth+X;vt=new bl({bottom:St,children:[{box:j,classes:["ML__center"]},Pe,{box:t.above,marginLeft:ce,classes:["ML__center"]},k.bigOpSpacing5]}).wrap(e)}else{const St=j.depth+X;vt=new bl({bottom:St,children:[{box:j},k.bigOpSpacing5]}).wrap(e)}return new zr(vt,{type:(u=t.type)!=null?u:"op"})}var vf=7,sd=6,bf=5,UA=4,ou=3,ds=2,Qc=1,Xl=0,Lu=class{constructor(e,t,r){this.id=e,this.sizeDelta=t,this.cramped=r;const i={"-4":2,"-3":1,0:0}[t];this.metrics=Object.keys(Rs).reduce((s,c)=>F(g({},s),{[c]:Rs[c][i]}),{})}getFontSize(e){return Math.max(1,e+this.sizeDelta)}get sup(){return bo[[Xl,Qc,Xl,Qc,ds,ou,ds,ou][this.id]]}get sub(){return bo[[Xl,Xl,Xl,Xl,ds,ds,ds,ds][this.id]]}get fracNum(){return bo[[Xl,Qc,Xl,Qc,ds,ou,UA,bf][this.id]]}get fracDen(){return bo[[Xl,Xl,Xl,Xl,ds,ds,UA,UA][this.id]]}get cramp(){return bo[[Xl,Xl,ds,ds,UA,UA,sd,sd][this.id]]}get isTight(){return this.sizeDelta<0}},uo={7:new Lu(vf,0,!1),6:new Lu(sd,0,!0),5:new Lu(bf,0,!1),4:new Lu(UA,0,!0),3:new Lu(ou,-3,!1),2:new Lu(ds,-3,!0),1:new Lu(Qc,-4,!1),0:new Lu(Xl,-4,!0)},bo=F(g({},uo),{displaystyle:uo[vf],textstyle:uo[bf],scriptstyle:uo[ou],scriptscriptstyle:uo[Qc]});function rA(e,t){var r;if(!e)return 0;const i={pt:1,mm:7227/2540,cm:7227/254,ex:35271/8192,px:3/4,em:El,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 s=wh(10,t);return Math.round(e.dimension/El*i*s)/s}return e.dimension*i}function su(e,t){if(e===null)return 0;const r=rA(e)/El;if(Number.isFinite(t)){const i=wh(10,t);return Math.round(r*i)/i}return r}function WA(e){var t;return`${e.dimension}${(t=e.unit)!=null?t:"pt"}`}function S0(e){let t=WA(e.glue);return e.grow&&e.grow.dimension!==0&&(t+=` plus ${WA(e.grow)}`),e.shrink&&e.shrink.dimension!==0&&(t+=` minus ${WA(e.shrink)}`),t}function Dl(e){var t,r;if(e==null)return null;let i="";if("dimension"in e&&(i=`${e.dimension}${(t=e.unit)!=null?t:"pt"}`),"glue"in e&&(i=S0(e)),"number"in e)if(!("base"in e)||e.base==="decimal")i=Number(e.number).toString();else if(e.base==="alpha")i=`\`${String.fromCodePoint(e.number)}`;else{const s=Math.round(e.number)>>>0;e.base==="hexadecimal"?(i=Number(s).toString(16).toUpperCase(),s<=255?i=i.padStart(2,"0"):s<=65535?i=i.padStart(4,"0"):s<=16777215?i=i.padStart(6,"0"):i=i.padStart(8,"0"),i=`"${i}`):e.base==="octal"&&(i=Number(s).toString(8),s<=63?i=i.padStart(2,"0"):s<=30583?i=i.padStart(4,"0"):i=i.padStart(8,"0"),i=`'${i}`)}return"register"in e&&("factor"in e&&(e.factor===-1?i="-":e.factor!==1&&(i=Number(e.factor).toString())),"global"in e&&e.global&&(i+="\\global"),i+=`\\${e.register}`),"string"in e&&(i=e.string),(r=e.relax)!=null&&r&&(i+="\\relax"),i}function _A(e,t){return e==null?null:"number"in e?F(g({},e),{number:e.number*t}):"register"in e?"factor"in e&&e.factor?F(g({},e),{factor:e.factor*t}):F(g({},e),{factor:t}):"dimension"in e?F(g({},e),{dimension:e.dimension*t}):"glue"in e?e.shrink&&e.grow?{glue:_A(e.glue,t),shrink:_A(e.shrink,t),grow:_A(e.grow,t)}:e.shrink?{glue:_A(e.glue,t),shrink:_A(e.shrink,t)}:e.grow?{glue:_A(e.glue,t),grow:_A(e.grow,t)}:{glue:_A(e.glue,t)}:null}var _h={"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 Xf(){return g({},_h)}function E0(){return{registers:Xf(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:ne.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:Ue,backgroundColorMap:ee,getMacro:e=>Tt(e,rt())}}var Eo=class O1{constructor(t,r){var i,s,c,u,k,j,X,ce,Pe,nt,vt,St,Cr,_n,wr;let nn;t!=null&&t.parent?(this.parent=t.parent,nn=t.parent,this.registers={}):(nn=g(g({},E0()),(i=t==null?void 0:t.from)!=null?i:{}),this.registers=nn.registers),nn.atomIdsSettings&&(this.atomIdsSettings=g({},nn.atomIdsSettings)),this.renderPlaceholder=nn.renderPlaceholder,this.isPhantom=(u=(c=t==null?void 0:t.isPhantom)!=null?c:(s=this.parent)==null?void 0:s.isPhantom)!=null?u:!1,this.letterShapeStyle=nn.letterShapeStyle,this.minFontScale=nn.minFontScale,r!=null&&r.color&&r.color!=="none"?this.color=r.color:this.color=(j=(k=this.parent)==null?void 0:k.color)!=null?j:"",r!=null&&r.backgroundColor&&r.backgroundColor!=="none"?this.backgroundColor=r.backgroundColor:this.backgroundColor=(ce=(X=this.parent)==null?void 0:X.backgroundColor)!=null?ce:"",r!=null&&r.fontSize&&r.fontSize!=="auto"&&r.fontSize!==((Pe=this.parent)==null?void 0:Pe.size)?this.size=r.fontSize:this.size=(vt=(nt=this.parent)==null?void 0:nt.size)!=null?vt:il;let Ln=(Cr=(St=this.parent)==null?void 0:St.mathstyle)!=null?Cr:bo.displaystyle;if(typeof(t==null?void 0:t.mathstyle)=="string"){if(nn instanceof O1)switch(t.mathstyle){case"cramp":Ln=Ln.cramp;break;case"superscript":Ln=Ln.sup;break;case"subscript":Ln=Ln.sub;break;case"numerator":Ln=Ln.fracNum;break;case"denominator":Ln=Ln.fracDen;break}switch(t.mathstyle){case"textstyle":Ln=bo.textstyle;break;case"displaystyle":Ln=bo.displaystyle;break;case"scriptstyle":Ln=bo.scriptstyle;break;case"scriptscriptstyle":Ln=bo.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=Ln,this.smartFence=nn.smartFence,this.placeholderSymbol=nn.placeholderSymbol,this.colorMap=(_n=nn.colorMap)!=null?_n:An=>An,this.backgroundColorMap=(wr=nn.backgroundColorMap)!=null?wr:An=>An,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===vf||this.mathstyle.id===sd}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(_l[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 i=this.registers[t];return typeof i=="object"&&"glue"in i?i:typeof i=="object"&&"dimension"in i?{glue:{dimension:i.dimension}}:typeof i=="number"?{glue:{dimension:i}}:void 0}if(this.parent)return this.parent.getRegisterAsGlue(t)}getRegisterAsEm(t,r){return su(this.getRegisterAsDimension(t),r)}getRegisterAsDimension(t){var r;if((r=this.registers)!=null&&r[t]){const i=this.registers[t];return typeof i=="object"&&"glue"in i?i.glue:typeof i=="object"&&"dimension"in i?i:typeof i=="number"?{dimension:i}: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 i=1;"factor"in t&&t.factor!==1&&t.factor!==void 0&&(i=t.factor);const s=r.getRegister(t.register);if(s===void 0)return;if(typeof s=="string")return{string:Number(s).toString()+s};if(typeof s=="number")return{number:i*s};const c=r.evaluate(s);if(c!==void 0)return"string"in c?{string:Number(s).toString()+c.string}:"number"in c?{number:i*c.number}:"dimension"in c?F(g({},c),{dimension:i*c.dimension}):"glue"in c?F(g({},c),{glue:F(g({},c.glue),{dimension:i*c.glue.dimension}),shrink:c.shrink?F(g({},c.shrink),{dimension:i*c.shrink.dimension}):void 0,grow:c.grow?F(g({},c.grow),{dimension:i*c.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 i=this.toDimension(t);return i===null?0:rA(i,r)/El}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,i;if(t===null)return null;const s=this.evaluate(t);return s===void 0?null:"string"in s?(i=(r=this.colorMap)==null?void 0:r.call(this,s.string))!=null?i:s.string:null}toBackgroundColor(t){var r,i;if(t===null)return null;const s=this.evaluate(t);return s===void 0?null:"string"in s?(i=(r=this.backgroundColorMap)==null?void 0:r.call(this,s.string))!=null?i:s.string:null}},yf=["body","above","below","superscript","subscript"];function Td(e){return typeof e=="string"&&yf.includes(e)}function Jf(e){return e!==void 0&&Array.isArray(e)&&e.length===2}var Ur=class v0{constructor(t){var r,i,s,c,u,k;this.type=t.type,typeof t.value=="string"&&(this.value=t.value),this.command=(i=(r=t.command)!=null?r:this.value)!=null?i:"",this.mode=(s=t.mode)!=null?s:"math",t.isFunction&&(this.isFunction=!0),t.limits&&(this.subsupPlacement=t.limits),this.style=g({},t.style),this.displayContainsHighlight=(c=t.displayContainsHighlight)!=null?c:!1,this.captureSelection=(u=t.captureSelection)!=null?u:!1,this.skipBoundary=(k=t.skipBoundary)!=null?k:!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,i){var s;if(!r)return null;const c=Dm(r),u=[];for(const j of c){const X=j[0].style,ce=Nm(t,j,{style:{color:X.color,backgroundColor:X.backgroundColor,fontSize:X.fontSize}});ce&&u.push(ce)}if(u.length===0)return null;const k=((s=i==null?void 0:i.classes)!=null?s:"").trim();return u.length===1&&!k&&!(i!=null&&i.type)?u[0].wrap(t):new zr(u,{classes:k,type:i==null?void 0:i.type}).wrap(t)}static serialize(t,r){return Gl.serialize(t,r)}static commonAncestor(t,r){if(t===r||t.parent===r.parent)return t.parent;const i=new WeakSet;let{parent:s}=t;for(;s;)i.add(s),s=s.parent;for(s=r.parent;s;){if(i.has(s))return s;s=s.parent}console.assert(!!s)}static fromJson(t){return typeof t=="string"?new v0({type:"mord",value:t,mode:"math"}):new v0(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=g({},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=I0(this.args)),this._branches)for(const r of Object.keys(this._branches))this._branches[r]&&(t[r]=this._branches[r].filter(i=>i.type!=="first").map(i=>i.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=ct(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):this.body&&this.command?Ao([Bs(this.command,this.bodyToLatex(t)),this.supsubToLatex(t)]):this.body?Ao([this.bodyToLatex(t),this.supsubToLatex(t)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(t){var r;return Gl.serialize(this.body,F(g({},t),{defaultMode:(r=t.defaultMode)!=null?r:this.latexMode}))}aboveToLatex(t){return Gl.serialize(this.above,t)}belowToLatex(t){return Gl.serialize(this.below,t)}supsubToLatex(t){let r="";if(t=F(g({},t),{defaultMode:"math"}),this.branch("subscript")!==void 0){const i=Gl.serialize(this.subscript,t);i.length===0?r+="_{}":i.length===1?/^[0-9]$/.test(i)?r+=`_${i}`:r+=`_{${i}}`:r+=`_{${i}}`}if(this.branch("superscript")!==void 0){const i=Gl.serialize(this.superscript,t);i.length===0?r+="^{}":i.length===1?i==="\u2032"?r+="^\\prime ":i==="\u2033"?r+="^\\doubleprime ":/^[0-9]$/.test(i)?r+=`^${i}`:r+=`^{${i}}`:r+=`^{${i}}`}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(Td(t)&&this._branches)return this._branches[t]}get branches(){if(!this._branches)return[];const t=[];for(const r of yf)this._branches[r]&&t.push(r);return t}createBranch(t){return console.assert(Td(t)),Td(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 Jf(this.parentBranch)?this.parentBranch[0]:-1}get col(){return Jf(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 i=typeof this.style.verbatimColor=="string",s=typeof this.style.verbatimBackgroundColor=="string",c=g(g({},(r=(t=this.parent)==null?void 0:t.computedStyle)!=null?r:{}),this.style);return delete c.variant,delete c.variantStyle,s||delete c.verbatimBackgroundColor,i||delete c.verbatimColor,c}applyStyle(t){this.isDirty=!0,this.style=g(g({},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,i;return this.hasEmptyBranch("body")?this:(console.assert(((t=this.body)==null?void 0:t[0].type)==="first"),(i=(r=this.body[1])==null?void 0:r.getInitialBaseElement())!=null?i: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 i;if(!t||(console.assert(Td(r)),!Td(r)))return;console.assert(((i=t[0])==null?void 0:i.type)!=="first");const s=[this.makeFirstAtom(r),...t];this._branches?this._branches[r]=s:this._branches={[r]:s};for(const c of t)c.parent=this,c.parentBranch=r;this.isDirty=!0}makeFirstAtom(t){const r=new v0({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 i=this.createBranch(r.parentBranch);i.splice(i.indexOf(r),0,t),this.isDirty=!0,t.parent=this,t.parentBranch=r.parentBranch}addChildAfter(t,r){console.assert(r.parentBranch!==void 0);const i=this.createBranch(r.parentBranch);i.splice(i.indexOf(r)+1,0,t),this.isDirty=!0,t.parent=this,t.parentBranch=r.parentBranch}addChildren(t,r){const i=this.createBranch(r);for(const s of t)s.parent=this,s.parentBranch=r,i.push(s);this.isDirty=!0}addChildrenAfter(t,r){console.assert(t.length===0||t[0].type!=="first"),console.assert(r.parentBranch!==void 0);const i=this.createBranch(r.parentBranch);i.splice(i.indexOf(r)+1,0,...t),this.isDirty=!0;for(const s of t)s.parent=this,s.parentBranch=r.parentBranch;return t[t.length-1]}removeBranch(t){const r=this.branch(t);if(Td(t)&&(this._branches[t]=void 0),!r)return[];for(const i of r)i.parent=void 0,i.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),i=r.indexOf(t);console.assert(i>=0),r.splice(i,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 yf)if(this._branches[r])for(const i of this._branches[r])t.push(...i.children),t.push(i);return this._children=t,t}render(t){if(this.type==="first"&&!t.atomIdsSettings)return null;const r=ct(this.command,this.mode);if(r!=null&&r.render)return r.render(this,t);const i=new Eo({parent:t},this.style);let s=this.createBox(i,{classes:this.parent?"":"ML__base"});return s?(!this.subsupPlacement&&(this.superscript||this.subscript)&&(s=this.attachSupsub(i,{base:s})),s.wrap(i)):null}attachSupsub(t,r){var i;const s=r.base,c=this.superscript,u=this.subscript;if(!c&&!u)return s;let k=null,j=null;const X=(i=r.isCharacterBox)!=null?i:this.isCharacterBox();let ce=0;if(c){const Cr=new Eo({parent:t,mathstyle:"superscript"});k=v0.createBox(Cr,c),X||(ce=s.height-t.metrics.supDrop*Cr.scalingFactor)}let Pe=0;if(u){const Cr=new Eo({parent:t,mathstyle:"subscript"});j=v0.createBox(Cr,u),X||(Pe=s.depth+t.metrics.subDrop*Cr.scalingFactor)}let nt;t.isDisplayStyle?nt=t.metrics.sup1:t.isCramped?nt=t.metrics.sup3:nt=t.metrics.sup2;const vt=.5/El/t.scalingFactor;let St=null;if(j&&k){ce=Math.max(ce,nt,k.depth+.25*t.metrics.xHeight),Pe=Math.max(Pe,t.metrics.sub2);const Cr=t.metrics.defaultRuleThickness;if(ce-k.depth-(j.height-Pe)<4*Cr){Pe=4*Cr-(ce-k.depth)+j.height;const wr=.8*t.metrics.xHeight-(ce-k.depth);wr>0&&(ce+=wr,Pe-=wr)}const _n=this.isExtensibleSymbol&&s.italic?-s.italic:0;St=new bl({individualShift:[{box:j,shift:Pe,marginLeft:_n},{box:k,shift:-ce}]}).wrap(t)}else j&&!k?(Pe=Math.max(Pe,t.metrics.sub1,j.height-.8*Ll),St=new bl({shift:Pe,children:[{box:j,marginRight:vt,marginLeft:this.isCharacterBox()?-s.italic:0}]})):!j&&k&&(ce=Math.max(ce,nt,k.depth+.25*Ll),St=new bl({shift:-ce,children:[{box:k,marginRight:vt}]}));return new zr([s,new zr(St,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:r.type})}attachLimits(t,r){const i=this.superscript?v0.createBox(new Eo({parent:t,mathstyle:"superscript"},this.style),this.superscript):null,s=this.subscript?v0.createBox(new Eo({parent:t,mathstyle:"subscript"},this.style),this.subscript):null;return!i&&!s?r.base.wrap(t):Mu(t,F(g({},r),{above:i,below:s}))}bind(t,r){if(!r||t.isPhantom||this.value==="\u200B")return r;let i=this.parent;for(;i&&!i.captureSelection;)i=i.parent;return i!=null&&i.captureSelection||(this.id||(this.id=t.makeID()),r.atomID=this.id),r}createBox(t,r){var i,s,c,u;const k=(i=this.value)!=null?i:this.body,j=(s=r==null?void 0:r.boxType)!=null?s:Nd(this.type);let X=(c=r==null?void 0:r.classes)!=null?c:"";this.mode==="text"&&(X+=" ML__text");const ce=typeof k=="string"||k===void 0?new zr(k!=null?k:null,{type:j,isSelected:this.isSelected,mode:this.mode,maxFontSize:t.scalingFactor,style:F(g({variant:"normal"},this.style),{fontSize:Math.max(1,t.size+t.mathstyle.sizeDelta)}),letterShapeStyle:t.letterShapeStyle,classes:X}):(u=v0.createBox(t,k,{type:j,classes:X}))!=null?u:new zr(null);return t.isTight&&(ce.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(ce.italic=0),ce.right=ce.italic,this.bind(t,ce),this.caret&&!this.superscript&&!this.subscript&&(ce.caret=this.caret),ce}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 Dm(e){let t;const r=[];let i=[];for(const s of e)if(!t&&!s.style)i.push(s);else{const c=s.computedStyle;t&&c.color===t.color&&c.backgroundColor===t.backgroundColor&&c.fontSize===t.fontSize?i.push(s):(i.length>0&&r.push(i),i=[s],t=c)}return i.length>0&&r.push(i),r}function Nm(e,t,r){var i,s,c,u,k;if(!t||t.length===0)return null;const j=new Eo({parent:e},r.style),X=!((i=j.atomIdsSettings)!=null&&i.groupNumbers);let ce=[];if(t.length===1){const nt=t[0],vt=nt.render(j);vt&&(X&&nt.isSelected&&vt.selected(!0),ce=[vt])}else{let nt="",vt=!0;for(const St of t){(s=j.atomIdsSettings)!=null&&s.groupNumbers&&nt&&(vt&&St.isDigit()||!vt&&_0(St))&&(j.atomIdsSettings.overrideID=nt);const Cr=St.render(j);j.atomIdsSettings&&(j.atomIdsSettings.overrideID=void 0),Cr&&((c=j.atomIdsSettings)!=null&&c.groupNumbers&&((St.isDigit()||_0(St))&&(!nt||vt!==St.isDigit())&&(vt=St.isDigit(),nt=(u=St.id)!=null?u:""),nt&&(!(St.isDigit()||_0(St))||!St.hasEmptyBranch("superscript")||!St.hasEmptyBranch("subscript"))&&(nt="")),X&&St.isSelected&&Cr.selected(!0),ce.push(Cr))}}if(ce.length===0)return null;const Pe=new zr(ce,F(g({isTight:j.isTight},r),{type:(k=r.type)!=null?k:"lift"}));return Pe.isSelected=ce.every(nt=>nt.isSelected),Pe.wrap(j)}function _0(e){return e.mode==="text"}function I0(e){return e.map(t=>t===null?"<null>":Array.isArray(t)&&t[0]instanceof Ur?{atoms:t.map(r=>r.toJson())}:typeof t=="object"&&"group"in t?{group:t.group.map(r=>r.toJson())}:t)}var Ud=class P1 extends Ur{constructor(t,r,i){super({type:"text",command:t,mode:"text",displayContainsHighlight:!0}),this.value=r,this.verbatimLatex=r,this.applyStyle(i)}static fromJson(t){return new P1(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:Pt("text",this.value.codePointAt(0))}};function Ih(e,t){if(e.direction===t.direction){const r=e.ranges.length;if(t.ranges.length===r){let i=0;for(;i<r&&F0(e.ranges[i],t.ranges[i])==="equal";)i++;return i===r?"equal":"different"}}return"different"}function F0(e,t){return e[0]===t[0]&&e[1]===t[1]?"equal":"different"}function Jl(e){let t=1/0,r=-1/0;for(const i of e.ranges)t=Math.min(t,i[0],i[1]),r=Math.max(r,i[0],i[1]);return[t,r]}function ld(e){return typeof e=="number"&&!Number.isNaN(e)}function Yf(e){return Array.isArray(e)&&e.length===2}function Fh(e){return e!=null&&typeof e=="object"&&"ranges"in e&&Array.isArray(e.ranges)}function Mh(e,t){const r=e.at(t);let i;if(r){i=r.mode;let s=r.parent;for(;!i&&s;)s&&(i=s.mode),s=s.parent}return i}function qf(e,t){if(!t)return"";if(typeof t=="string")return t;if(!e||t.after===void 0)return t.value;let r=!1,i=!1,s=!1,c=!1,u=!1,k=!1,j=!1,X=!1,ce=!1,Pe=!1,nt=!1,vt=!1,St=!1,Cr=!1,_n=!1,wr=e[0],nn=0;for(;wr!=null&&wr.type&&/^(subsup|placeholder)$/.test(wr.type);)nn+=1,wr=e[nn];return r=!wr||wr.type==="first",wr&&(Cr=wr.mode==="text",i=!Cr&&wr.type==="mord"&&p.test(wr.value),s=!Cr&&wr.type==="mord"&&/\d+$/.test(wr.value),c=!Cr&&wr.isFunction,u=wr.type==="genfrac",k=wr.type==="surd",j=wr.type==="mbin",X=wr.type==="mrel",ce=wr.type==="mop"||wr.type==="operator"||wr.type==="extensible-symbol",Pe=wr.type==="mpunct"||wr.type==="minner",nt=wr.type==="array",vt=wr.type==="mopen",St=wr.type==="mclose"||wr.type==="leftright",_n=wr.type==="space"),t.after.includes("nothing")&&r||t.after.includes("letter")&&i||t.after.includes("digit")&&s||t.after.includes("function")&&c||t.after.includes("frac")&&u||t.after.includes("surd")&&k||t.after.includes("binop")&&j||t.after.includes("relop")&&X||t.after.includes("operator")&&ce||t.after.includes("punct")&&Pe||t.after.includes("array")&&nt||t.after.includes("openfence")&&vt||t.after.includes("closefence")&&St||t.after.includes("text")&&Cr||t.after.includes("space")&&_n?t.value:""}function M0(e,t,r){return r?qf(e,r[t]):""}var pp={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\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 L0(e,t){var r;let i=(r=t==null?void 0:t.format)!=null?r:"auto";return i==="auto"&&([i,e]=Om(e)),i==="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",nA(e,{inlineShortcuts:t==null?void 0:t.inlineShortcuts})]):["latex",e]}function nA(e,t){var r,i,s;if(!e)return"";let c=!1,u;const k=(r=t.inlineShortcuts)!=null?r:pp;if(!c&&(e.startsWith("^")||e.startsWith("_"))&&(u=Rd(e.slice(1),{inlineShortcuts:k,noWrap:!0}),e=e[0]+"{"+u.match+"}",e+=nA(u.rest,t),c=!0),c||(u=e.match(/^(sqrt|\u221A)(.*)/),u&&(u=Rd(u[2],{inlineShortcuts:k,noWrap:!0}),e="\\sqrt{"+((i=u.match)!=null?i:"\\placeholder{}")+"}",e+=nA(u.rest,t),c=!0)),c||(u=e.match(/^(\\cbrt|\u221B)(.*)/),u&&(u=Rd(u[2],{inlineShortcuts:k,noWrap:!0}),e="\\sqrt[3]{"+((s=u.match)!=null?s:"\\placeholder{}")+"}",e+=nA(u.rest,t),c=!0)),c||(u=e.match(/^abs(.*)/),u&&(u=Rd(u[1],{inlineShortcuts:k,noWrap:!0}),e="\\left|"+u.match+"\\right|",e+=nA(u.rest,t),c=!0)),c||(u=e.match(/^["”“](.*?)["”“](.*)/),u&&(e="\\text{"+u[1]+"}",e+=nA(u[2],t),c=!0)),c||(u=e.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),u&&(e=wf(u[1],k),e+=nA(u[2],t),c=!0)),!c&&/^([fgh])[^a-zA-Z]/.test(e)&&(u=Rd(e.slice(1),{inlineShortcuts:k,noWrap:!0}),e=e[1]==="("?e[0]+"\\left("+u.match+"\\right)":e[0]+u.match,e+=nA(u.rest,t),c=!0),c||(u=e.match(/^([a-zA-Z]+)(.*)/),u&&(e=wf(u[1],k),e+=nA(u[2],t),c=!0)),!c)if(u=Rd(e,{inlineShortcuts:k,noWrap:!0}),u.match&&u.rest[0]==="/"){const j=Rd(u.rest.slice(1),{inlineShortcuts:k,noWrap:!0});j.match&&(e="\\frac{"+u.match+"}{"+j.match+"}"+nA(j.rest,t)),c=!0}else u.match&&(e=e.startsWith("(")?"\\left("+u.match+"\\right)"+nA(u.rest,t):u.match+nA(u.rest,t),c=!0);return c||(u=e.match(/^(\s+)(.*)$/),u&&(e=" "+nA(u[2],t),c=!0)),e}function Rd(e,t){let r="";e=e.trim();let i=e,s=e.charAt(0),c={"(":")","{":"}","[":"]"}[s];if(c){let u=1,k=1;for(;k<e.length&&u>0;)e[k]===s&&u++,e[k]===c&&u--,k++;u===0?(t.noWrap&&s==="("?r=nA(e.substring(1,k-1),t):(s==="{"&&c==="}"&&(s="\\{",c="\\}"),r="\\left"+s+nA(e.substring(1,k-1),t)+"\\right"+c),i=e.slice(Math.max(0,k))):(r=e.substring(1,k),i="")}else{let u=e.match(/^([a-zA-Z]+)/);if(u){let k=M0(null,e,t.inlineShortcuts);if(k)return k=k.replace("_{#?}",""),k=k.replace("^{#?}",""),{match:k,rest:e.slice(k.length)}}if(u=e.match(/^([a-zA-Z])/),u)return{match:u[1],rest:e.slice(1)};if(u=e.match(/^(-)?\d+(\.\d*)?/),u)return{match:u[0],rest:e.slice(u[0].length)};/^\\(left|right)/.test(e)||(u=e.match(/^(\\[a-zA-Z]+)/),u&&(i=e.slice(u[1].length),r=u[1]))}return{match:r,rest:i}}function wf(e,t){let r=M0(null,e,t);return r?(r=r.replace("_{#?}",""),r=r.replace("^{#?}",""),r+=" "):r=e,r}var k0=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function eh(e){const t=e.trim();for(const r of k0)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 Om(e){if(e=e.trim(),e.length<=1)return["latex",e];let t;return[t,e]=eh(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 Pm="$$",Tm="$$",Um=(e,t,r)=>(k0.some(i=>t.startsWith(i[0])&&t.endsWith(i[1]))||(t=`${Pm} ${t} ${Tm}`),t),mp=class Xg{constructor(t){Xg._modes[t]=this}static onPaste(t,r,i){var s;if(!r.contentEditable&&r.userSelect==="none")return r.model.announce("plonk"),!1;if(typeof i=="string"){const u=new DataTransfer;u.setData("text/plain",i),i=u}const c=new ClipboardEvent("paste",{clipboardData:i,cancelable:!0});return(s=r.host)!=null&&s.dispatchEvent(c)?Xg._modes[t].onPaste(r,i):!1}static copyToClipboard(t,r){if(!t.contentEditable&&t.userSelect==="none"){t.model.announce("plonk");return}const i=t.model,s=i.selectionIsCollapsed?[0,i.lastOffset]:Jl(i.selection),c=i.getValue(s,r);navigator.clipboard.writeText(c).then(()=>{},()=>t.model.announce("plonk"))}static onCopy(t,r){var i;if(!r.clipboardData)return;if(!t.contentEditable&&t.userSelect==="none"){t.model.announce("plonk");return}const s=t.model,c=s.selectionIsCollapsed?[0,s.lastOffset]:Jl(s.selection);let u=s.getAtoms(c);if(u.every(k=>k.mode==="text"||!k.mode))r.clipboardData.setData("text/plain",u.filter(k=>k instanceof Ud).map(k=>k.value).join(""));else if(u.every(k=>k.mode==="latex"))r.clipboardData.setData("text/plain",s.getAtoms(c,{includeChildren:!0}).map(k=>{var j;return(j=k.value)!=null?j:""}).join(""));else{let k;u.length===1&&u[0].verbatimLatex!==void 0?k=u[0].verbatimLatex:k=s.getValue(c,"latex-expanded"),r.clipboardData.setData("application/x-latex",k);try{r.clipboardData.setData("text/plain",t.options.onExport(t,k,c))}catch(j){}if(u.length===1){const j=u[0];(j.type==="root"||j.type==="group")&&(u=j.body.filter(X=>X.type!=="first"))}try{r.clipboardData.setData("application/json+mathlive",JSON.stringify(u.map(j=>j.toJson())))}catch(j){}if((i=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&i.ComputeEngine){const j=window.MathfieldElement.computeEngine;if(j)try{const X=j.jsonSerializationOptions;j.jsonSerializationOptions={metadata:["latex"]};const ce=j.parse(s.getValue(c,"latex-unstyled"));j.jsonSerializationOptions=X;const Pe=JSON.stringify(ce.json);Pe&&r.clipboardData.setData("application/json",Pe)}catch(X){}}}r.preventDefault()}static insert(t,r,i={}){var s;const c=i.mode==="auto"?t.mode:(s=i.mode)!=null?s:t.mode;return Xg._modes[c].insert(t,r,i)}onPaste(t,r){return!1}insert(t,r,i){return!1}};mp._modes={};var Ls=mp,Wp=[{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","^"]}],Gp={"\\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 cd(e){var t;return((t=e.element)==null?void 0:t.mathfield)===e}function Xp(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 th(e){const t=Xp(e);if(!t)return null;const r=t.getBoundingClientRect();return{x:r.right,y:r.bottom,height:r.height}}function gp(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 rh(e,t,r){if(!t)return null;const i=e.field.getBoundingClientRect(),s=t.right-t.left,c=t.bottom-t.top,u=Math.ceil(t.left-i.left+e.field.scrollLeft*r),k=Math.ceil(t.top-i.top);return{left:u,right:u+s,top:k,bottom:k+c}}function Lh(e){const t=e.getBoundingClientRect(),r=parseInt(getComputedStyle(e).marginRight),i={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 i;for(const s of e.children)if(s.nodeType===1&&"atomId"in s.dataset&&!s.classList.contains("pstrut")){const c=Lh(s);i.left=Math.min(i.left,c.left),i.right=Math.max(i.right,c.right),i.top=Math.min(i.top,c.top),i.bottom=Math.max(i.bottom,c.bottom)}return i}function nh(e,t){var r,i;if(!t.id)return null;let s=(i=(r=e.atomBoundsCache)==null?void 0:r.get(t.id))!=null?i:null;if(s!==null)return s;const c=e.field.querySelector(`[data-atom-id="${t.id}"]`);return s=c?Lh(c):null,e.atomBoundsCache&&(s?e.atomBoundsCache.set(t.id,s):e.atomBoundsCache.delete(t.id)),s!=null?s:null}function Jp(e,t,r){const i=new Map;for(const s of e.model.getAtoms(t,{includeChildren:!0})){if(r!=null&&r.excludeAtomsWithBackground&&s.style.backgroundColor)continue;const c=e.field,u=c.offsetWidth;let j=Math.floor(c.getBoundingClientRect().width)/u;j=isNaN(j)?1:j;const X=rh(e,nh(e,s),j);if(X){const ce=gp(s);if(i.has(ce)){const Pe=i.get(ce);i.set(ce,{left:Math.min(Pe.left,X.left),right:Math.max(Pe.right,X.right),top:Math.min(Pe.top,X.top),bottom:Math.max(Pe.bottom,X.bottom)})}else i.set(ce,X)}}return[...i.values()]}function Rm(e,t){return e.model.selection.ranges.reduce((r,i)=>r.concat(...Jp(e,i,t)),[])}function kh(e,t){return e==="*"||t==="none"?!0:t==="same-origin"?!window.origin||e===window.origin:typeof t=="function"?t(e):!1}function D0(e){let t=0,r=0;const i=e.offsetWidth,s=e.offsetHeight;for(;e instanceof HTMLElement;)t+=e.offsetTop,r+=e.offsetLeft,e=e.offsetParent;return new DOMRect(r,t,i,s)}var Qm=`@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;
}
`,Yp=`.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);
}
`,xf=`#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);
}
`,Km=`/* 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;
}
`,Nl=`/* 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);*/
}
`,Qd=`.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));
}
`,Cf=`: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;
}
`,Ad=`.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;
}
`,Xc;function lu(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=Yp;break;case"mathfield":t=Qm;break;case"environment-popover":t=xf;break;case"suggestion-popover":t=Km;break;case"keystroke-caption":t=Nl;break;case"virtual-keyboard":t=Qd;break;case"ui":t=Cf;break;case"menu":t=Ad;break;default:debugger}return t}function IA(e){return Xc||(Xc={}),Xc[e]||(Xc[e]=new CSSStyleSheet,Xc[e].replaceSync(lu(e))),Xc[e]}var ku;function ud(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(lu(e))),window.document.head.appendChild(r);return}if(ku||(ku={}),((t=ku[e])!=null?t:0)!==0)ku[e]+=1;else{const r=IA(e);document.adoptedStyleSheets=[...document.adoptedStyleSheets,r],ku[e]=1}}function dd(e){if("adoptedStyleSheets"in document&&ku!=null&&ku[e]&&(ku[e]-=1,ku[e]<=0)){const t=Xc[e];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(r=>r!==t)}}var ih=class T1 extends Ur{constructor(t){var r;super(F(g({},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 T1(t)}toJson(){return F(g({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(t){var r;const i=new Eo({parent:t,mathstyle:"cramp"},this.style),s=(r=Ur.createBox(i,this.body))!=null?r:new zr("\u25A2",{style:this.style});let c=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(c=s.skew);let u=Math.min(s.height,Ll),k;if(this.svgAccent)k=gf(this.svgAccent),u=i.metrics.bigOpSpacing1-u;else if(this.accent){const X=new zr(this.accent,{fontFamily:"Main-Regular"});X.italic=0;const ce=this.accent===8407?" ML__accent-vec":"";k=new zr(new zr(X),{classes:"ML__accent-body"+ce})}k=new bl({shift:0,children:[{box:new zr(s)},-u,{box:k,marginLeft:s.left+2*c,classes:["ML__center"]}]});const j=new zr(k,{type:"lift"});return this.caret&&(j.caret=this.caret),this.bind(i,j.wrap(i)),this.attachSupsub(i,{base:j})}},Kd={"(":")","{":"}","[":"]","|":"|","\\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"},Dh=Object.fromEntries(Object.entries(Kd).map(([e,t])=>[t,e]));function N0(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 Nh(e,t,r,i){var s;const u=new zr(N0(e),{fontFamily:"Main-Regular",isSelected:i.isSelected,classes:"ML__small-delim "+((s=i.classes)!=null?s:"")}).wrap(t);return r&&u.setTop((1-t.scalingFactor)*Al),u}function qp(e,t,r,i,s){var c,u;const k=new Eo({parent:i,mathstyle:"textstyle"},s==null?void 0:s.style),j=new zr(N0(e),{fontFamily:`Size${t}-Regular`,isSelected:s.isSelected,classes:((c=s.classes)!=null?c:"")+` ML__delim-size${t}`,type:(u=s.type)!=null?u:"ignore"}).wrap(k);return r&&j.setTop((1-k.scalingFactor)*Al),j}function vp(e,t,r,i,s){var c;let u,k,j,X;u=j=X=N0(e),k=null;let ce="Size1-Regular";e==="\\vert"||e==="\\lvert"||e==="\\rvert"||e==="\\mvert"||e==="\\mid"?j=u=X=8739:e==="\\Vert"||e==="\\lVert"||e==="\\rVert"||e==="\\mVert"||e==="\\|"?j=u=X=8741:e==="\\uparrow"?j=X=9168:e==="\\Uparrow"?j=X=8214:e==="\\downarrow"?u=j=9168:e==="\\Downarrow"?u=j=8214:e==="\\updownarrow"?(u=8593,j=9168,X=8595):e==="\\Updownarrow"?(u=8657,j=8214,X=8659):e==="["||e==="\\lbrack"?(u=9121,j=9122,X=9123,ce="Size4-Regular"):e==="]"||e==="\\rbrack"?(u=9124,j=9125,X=9126,ce="Size4-Regular"):e==="\\lfloor"||e==="\u230A"?(j=u=9122,X=9123,ce="Size4-Regular"):e==="\\lceil"||e==="\u2308"?(u=9121,j=X=9122,ce="Size4-Regular"):e==="\\rfloor"||e==="\u230B"?(j=u=9125,X=9126,ce="Size4-Regular"):e==="\\rceil"||e==="\u2309"?(u=9124,j=X=9125,ce="Size4-Regular"):e==="("||e==="\\lparen"?(u=9115,j=9116,X=9117,ce="Size4-Regular"):e===")"||e==="\\rparen"?(u=9118,j=9119,X=9120,ce="Size4-Regular"):e==="\\{"||e==="\\lbrace"?(u=9127,k=9128,X=9129,j=9130,ce="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(u=9131,k=9132,X=9133,j=9130,ce="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(u=9127,X=9129,j=9130,ce="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(u=9131,X=9133,j=9130,ce="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(u=9127,X=9133,j=9130,ce="Size4-Regular"):e==="\\rmoustache"||e==="\u23B1"?(u=9131,X=9129,j=9130,ce="Size4-Regular"):e==="\\surd"?(u=57345,X=9143,j=57344,ce="Size4-Regular"):e==="\\ulcorner"?(u=9484,j=X=32):e==="\\urcorner"?(u=9488,j=X=32):e==="\\llcorner"?(X=9492,j=u=32):e==="\\lrcorner"&&(u=9496,j=u=32);const Pe=Bc(u,ce),nt=Pe.height+Pe.depth,vt=Bc(j,ce),St=vt.height+vt.depth,Cr=Bc(X,ce),_n=Cr.height+Cr.depth;let wr=0,nn=1;if(k!==null){const Ge=Bc(k,ce);wr=Ge.height+Ge.depth,nn=2}const Ln=nt+_n+wr,An=Math.max(0,Math.ceil((t-Ln)/(nn*St))),Si=Ln+An*nn*St;let ra=Al;r&&(ra=ra*i.scalingFactor);const Hi=Si/2-ra,h=.008,B=[];B.push({box:new zr(X,{fontFamily:ce})}),B.push(-h);const Q=new zr(j,{fontFamily:ce});if(k===null)for(let Ge=0;Ge<An;Ge++)B.push({box:Q});else{for(let Ge=0;Ge<An;Ge++)B.push({box:Q});B.push(-h),B.push({box:new zr(k,{fontFamily:ce})}),B.push(-h);for(let Ge=0;Ge<An;Ge++)B.push({box:Q})}B.push(-h),B.push({box:new zr(u,{fontFamily:ce})});let ge="";ce==="Size1-Regular"?ge=" delim-size1":ce==="Size4-Regular"&&(ge=" delim-size4");const Ke=new bl({bottom:Hi,children:B},{classes:ge});return new zr(Ke,F(g({},s!=null?s:{}),{classes:((c=s==null?void 0:s.classes)!=null?c:"")+" ML__delim-mult"}))}var em=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),Oh=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),Hm=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),O0=[0,1.2,1.8,2.4,3];function jm(e,t,r,i){return e===void 0||e==="."?oh(r,i.classes):(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),em.has(e)||Hm.has(e)?qp(e,t,!1,r,i):Oh.has(e)?vp(e,O0[t],!1,r,i):(console.assert(!1,"Unknown delimiter '"+e+"'"),null))}var tm=[{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}],rm=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],nm=[{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 im(e){return e.type==="small"?"Main-Regular":e.type==="large"?"Size"+e.size+"-Regular":(console.assert(e.type==="stack"),"Size4-Regular")}function bp(e,t,r,i){const s={"-4":0,"-3":1,0:2}[i.mathstyle.sizeDelta];for(let c=s;c<r.length&&r[c].type!=="stack";c++){const u=Bc(e,im(r[c]));if(u.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let k=u.height+u.depth;if(r[c].type==="small"&&(r[c].mathstyle==="scriptscriptstyle"?k*=Math.max(_l[Math.max(1,i.size-2)],i.minFontScale):r[c].mathstyle==="scriptstyle"&&(k*=Math.max(_l[Math.max(1,i.size-1)],i.minFontScale))),k>t)return r[c]}return r[r.length-1]}function Bf(e,t,r,i,s,c){if(!t||t.length===0||t===".")return oh(s);t==="<"||t==="\\lt"?t="\\langle":(t===">"||t==="\\gt")&&(t="\\rangle");let u;Hm.has(t)?u=tm:em.has(t)?u=nm:u=rm;const k=bp(N0(t),r,u,s),j=new Eo({parent:s,mathstyle:k.mathstyle},c==null?void 0:c.style);return k.type==="small"?Nh(t,j,i,F(g({},c),{type:e})):k.type==="large"?qp(t,k.size,i,j,F(g({},c),{type:e})):(console.assert(k.type==="stack"),vp(t,r,i,j,F(g({},c),{type:e})))}function ah(e,t,r,i,s,c){if(t===".")return oh(s,c==null?void 0:c.classes);const u=Al*s.scalingFactor,k=901,j=5/El,X=Math.max(r-u,i+u),ce=Math.max(X/500*k,2*X-j);return Bf(e,t,ce,!0,s,c)}function oh(e,t){const r=new zr(null,{classes:" nulldelimiter "+(t!=null?t:""),type:"ignore"});return r.width=e.getRegisterAsEm("nulldelimiterspace"),r.wrap(new Eo({parent:e,mathstyle:"textstyle"}))}var Du=class U1 extends Ur{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 U1(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{}"}},yp=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],FA=["cases","dcases","rcases"],P0=["align","align*","aligned","gather","gathered","split"],am=["array","subequations","eqnarray"];function wp(e){return am.concat(P0).concat(FA).concat(yp).includes(e)}function Ph(e){return yp.includes(e)}function Th(e){return FA.includes(e)}function zm(e){return P0.includes(e)}function xp(e,t,r){let i=0;for(const X of r)"align"in X&&(i+=1);let s=0;const c=[];for(const X of t){let ce=0;for(s=Math.max(s,Math.min(X.length,i));ce<X.length;){const Pe=[],nt=Math.min(X.length,ce+i);for(;ce<nt;){const vt=X[ce];vt.length===0?Pe.push([new Ur({type:"first",mode:e.mode})]):vt[0].type!=="first"?Pe.push([new Ur({type:"first",mode:e.mode}),...vt]):(console.assert(!vt.slice(1).some(St=>St.type==="first")),Pe.push(vt)),ce+=1}c.push(Pe)}}c.length>0&&c[c.length-1].length===1&&c[c.length-1][0].length===1&&c[c.length-1][0][0].type==="first"&&c.pop();const u=[];for(const X of c){if(X.length!==s)for(let ce=X.length;ce<s;ce++)X.push([new Ur({type:"first",mode:e.mode}),new Du]);u.push(X)}let k=0,j=0;for(const X of u){j=0;for(const ce of X){for(const Pe of ce)Pe.parent=e,Pe.parentBranch=[k,j];j+=1}k+=1}return e.isDirty=!0,u}var fs=class R1 extends Ur{constructor(t,r,i,s={}){var c;super({type:"array"}),this.environmentName=t,this.rowGaps=i,s.mathstyleName&&(this.mathstyleName=s.mathstyleName),s.columns&&(s.columns.length===0?this.colFormat=[{align:"l"}]:this.colFormat=s.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=xp(this,r,this.colFormat),s.leftDelim&&(this.leftDelim=s.leftDelim),s.rightDelim&&(this.rightDelim=s.rightDelim),s.arraycolsep!==void 0&&(this.arraycolsep=s.arraycolsep),this.colSeparationType=s.colSeparationType,s.arraystretch!==void 0&&(this.arraystretch=s.arraystretch),this.minColumns=(c=s.minColumns)!=null?c:1}static fromJson(t){return new R1(t.environmentName,t.array,t.rowGaps,t)}toJson(){const t=F(g({},super.toJson()),{environmentName:this.environmentName,array:this.array.map(r=>r.map(i=>i.map(s=>s.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(Jf(t))return(r=this.array[t[0]][t[1]])!=null?r:void 0}createBranch(t){var r;return Jf(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(Td(t))return super.removeBranch(t);const r=this.branch(t);return this.array[t[0]][t[1]]=void 0,r.forEach(i=>{i.parent=void 0,i.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 i of r)if(i)for(const s of i)t.push(...s.children),t.push(s);return[...t,...super.children]}render(t){var r,i,s,c,u,k;const j=new Eo({parent:t,mathstyle:this.mathstyleName},this.style),X=j.getRegisterAsEm("arrayrulewidth"),ce=j.getRegisterAsEm("arraycolsep"),Pe=j.getRegisterAsEm("doublerulesep"),nt=(i=(r=this.arraystretch)!=null?r:j.getRegisterAsNumber("arraystretch"))!=null?i:1;let vt=typeof this.arraycolsep=="number"?this.arraycolsep:ce;this.colSeparationType==="small"&&(vt=.2778*(new Eo({parent:t,mathstyle:"scriptstyle"}).scalingFactor/t.scalingFactor));const St=nt*au,Cr=.7*St,_n=.3*St;let wr=0;const nn=[];let Ln=0;const An=this.array.length;for(let ft=0;ft<An;++ft){const Ht=this.array[ft];Ln=Math.max(Ln,Ht.length);const vr=new Eo({parent:j,mathstyle:this.mathstyleName},this.style);let xt=Cr/vr.scalingFactor,ir=_n/vr.scalingFactor;const mr={cells:[],height:0,depth:0,pos:0};for(const Br of Ht){const cn=(s=Ur.createBox(vr,Br,{type:"ignore"}))!=null?s:new zr(null,{type:"ignore"});ir=Math.max(ir,cn.depth),xt=Math.max(xt,cn.height),mr.cells.push(cn)}let Xr=(c=su(this.rowGaps[ft]))!=null?c:0;Xr>0&&(Xr+=_n,ir=Math.max(ir,Xr),Xr=0),ft<An-1&&!Ph(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(ir+=j.getRegisterAsEm("jot")),mr.height=xt,mr.depth=ir,wr+=xt,mr.pos=wr,wr+=ir+Xr,nn.push(mr)}const Si=wr/2+Al,ra=[];for(let ft=0;ft<Ln;ft++){const Ht=[];for(const vr of nn){const xt=vr.cells[ft];xt.depth=vr.depth,xt.height=vr.height,Ht.push({box:xt,shift:vr.pos-Si})}Ht.length>0&&ra.push(new bl({individualShift:Ht}))}const Hi=[];let h=!1,B=!1,Q=0,ge=!this.leftDelim;const{colFormat:Ke}=this;for(const ft of Ke){if("align"in ft&&Q>=ra.length)break;if("align"in ft)h?Hi.push(Nu(2*vt)):(B||ge)&&Hi.push(Nu(vt)),Hi.push(new zr(ra[Q],{classes:"col-align-"+ft.align})),Q++,h=!0,B=!1,ge=!1;else if("gap"in ft){if(typeof ft.gap=="number")Hi.push(Nu(ft.gap));else{const Ht=T0(t,nn,Si,ft.gap);Ht&&Hi.push(Ht)}h=!1,B=!1,ge=!1}else if("separator"in ft){const Ht=new zr(null,{classes:"vertical-separator"});Ht.height=wr,Ht.setStyle("height",wr,"em"),Ht.setStyle("border-right",`${X}em ${ft.separator} currentColor`),Ht.setStyle("vertical-align",-(wr-Si),"em");let vr=0;B?vr=Pe-X:h&&(vr=vt-X),Ht.left=vr,Hi.push(Ht),h=!1,B=!0,ge=!1}}h&&!this.rightDelim&&Hi.push(Nu(vt));const Ve=new zr(Hi,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(Ve.caret=this.caret),this.bind(t,Ve);const Ge=Ve.height,ot=Ve.depth,At=this.bind(t,new zr([this.bind(t,ah("open",(u=this.leftDelim)!=null?u:".",Ge,ot,j,{isSelected:this.isSelected})),Ve,this.bind(t,ah("close",(k=this.rightDelim)!=null?k:".",Ge,ot,j,{isSelected:this.isSelected}))],{type:"ord"}));return At?(At.setStyle("display","inline-block"),this.caret&&(At.caret=this.caret),this.bind(t,this.attachSupsub(t,{base:At}))):null}_serialize(t){var r;const i=[];if(this.environmentName==="lines"?i.push("{\\displaylines"):i.push(`\\begin{${this.environmentName}}`),this.environmentName==="array"){if(i.push("{"),this.colFormat!==void 0)for(const s of this.colFormat)"align"in s&&typeof s.align=="string"?i.push(s.align):"separator"in s&&s.separator==="solid"?i.push("|"):"separator"in s&&s.separator==="dashed"&&i.push(":");i.push("}")}for(let s=0;s<this.array.length;s++){for(let c=0;c<this.array[s].length;c++)c>0&&i.push(" & "),i.push(Ur.serialize(this.array[s][c],t));if(s<this.array.length-1){const c=this.rowGaps[s];c!=null&&c.dimension?i.push(`\\\\[${c.dimension} ${(r=c.unit)!=null?r:"pt"}] `):i.push("\\\\ ")}}return this.environmentName==="lines"?i.push("}"):i.push(`\\end{${this.environmentName}}`),Ao(i)}getCell(t,r){return this.array[t][r]}setCell(t,r,i){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.array[t][r]!==void 0);for(const c of this.array[t][r])c.parent=void 0,c.parentBranch=void 0;let s=i;(i.length===0||i[0].type!=="first")&&(s=[new Ur({type:"first",mode:this.mode}),...i]),this.array[t][r]=s;for(const c of s)c.parent=this,c.parentBranch=[t,r];this.isDirty=!0}addRowBefore(t){console.assert(this.type==="array"&&Array.isArray(this.array));const r=[];for(let i=0;i<this.colCount;i++)r.push(ki(this));this.array.splice(t,0,r);for(let i=t;i<this.rowCount;i++)for(let s=0;s<this.colCount;s++){const c=this.array[i][s];if(c)for(const u of c)u.parentBranch=[i,s]}this.isDirty=!0}addRowAfter(t){console.assert(this.type==="array"&&Array.isArray(this.array));const r=[];for(let i=0;i<this.colCount;i++)r.push(ki(this));this.array.splice(t+1,0,r);for(let i=t+1;i<this.rowCount;i++)for(let s=0;s<this.colCount;s++){const c=this.array[i][s];if(c)for(const u of c)u.parentBranch=[i,s]}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 i of r)for(const s of i)if(s)for(const c of s)c.parent=void 0,c.parentBranch=void 0;for(let i=t;i<this.rowCount;i++)for(let s=0;s<this.colCount;s++){const c=this.array[i][s];if(c)for(const u of c)u.parentBranch=[i,s]}this.isDirty=!0}addColumnBefore(t){console.assert(this.type==="array"&&Array.isArray(this.array));for(const r of this.array)r.splice(t,0,ki(this));for(let r=0;r<this.rowCount;r++)for(let i=t;i<this.colCount;i++){const s=this.array[r][i];if(s)for(const c of s)c.parentBranch=[r,i]}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,ki(this));for(let r=0;r<this.rowCount;r++)for(let i=t+1;i<this.colCount;i++){const s=this.array[r][i];if(s)for(const c of s)c.parentBranch=[r,i]}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 i=r.splice(t,1);for(const s of i)if(s)for(const c of s)c.parent=void 0,c.parentBranch=void 0}for(let r=0;r<this.rowCount;r++)for(let i=t;i<this.colCount;i++){const s=this.array[r][i];if(s)for(const c of s)c.parentBranch=[r,i]}this.isDirty=!0}get cells(){const t=[];for(const r of this.array)for(const i of r)i&&t.push(i.filter(s=>s.type!=="first"));return t}};function ki(e){const t=new Ur({type:"first",mode:e.mode});t.parent=e;const r=new Du;return r.parent=e,[t,r]}function Nu(e){const t=new zr(null,{classes:"arraycolsep"});return t.width=e,t}function T0(e,t,r,i){if(!i)return null;const s=[];for(const c of t){const u=Ur.createBox(e,i,{type:"ignore"});u&&(u.depth=c.depth,u.height=c.height,s.push({box:u,shift:c.pos-r}))}return new bl({individualShift:s}).wrap(e)}var fc=class Q1 extends Ur{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 Q1(t)}toJson(){return F(g({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(t){var r,i,s,c;const u=Ur.createBox(t,this.body,{type:"lift"});if(!u)return null;const k=t.toEm((r=this.offset)!=null?r:{dimension:0});u.depth+=k,u.setStyle("display","inline-block"),u.setStyle("position","relative"),u.setStyle("height",Math.floor(100*u.height+u.depth)/100,"em"),u.setStyle("vertical-align",-Math.floor(100*u.height)/100,"em");const j=new Eo({parent:t},this.style),X=j.toEm((i=this.padding)!=null?i:{register:"fboxsep"}),ce=new zr(null,{classes:"ML__box"});ce.height=u.height+X,ce.depth=u.depth+X,ce.setStyle("box-sizing","border-box"),ce.setStyle("position","absolute"),ce.setStyle("top",-X+.3,"em"),ce.setStyle("left",0),ce.setStyle("height",ce.height+ce.depth,"em"),ce.setStyle("width","100%"),this.backgroundcolor&&ce.setStyle("background-color",(s=j.toColor(this.backgroundcolor))!=null?s:"transparent"),this.framecolor&&ce.setStyle("border",`${j.getRegisterAsEm("fboxrule",2)}em solid ${(c=j.toColor(this.framecolor))!=null?c:"black"}`),this.border&&ce.setStyle("border",this.border);const Pe=new zr([ce,u],{type:"lift"});return Pe.setStyle("display","inline-block"),Pe.setStyle("position","relative"),Pe.setStyle("line-height",0),Pe.height=u.height+X+(k>0?k:0),Pe.depth=u.depth+X+(k<0?-k:0),Pe.setStyle("padding-left",X,"em"),Pe.setStyle("padding-right",X,"em"),Pe.setStyle("height",Math.floor(100*(u.height+u.depth+2*X+Math.abs(k)))/100,"em"),Pe.setStyle("margin-top",-X,"em"),Pe.setStyle("top",Math.floor(100*(u.depth-u.height+2*X-k))/100,"em"),Pe.setStyle("vertical-align",Math.floor(100*(u.depth+2*X))/100,"em"),this.caret&&(Pe.caret=this.caret),this.attachSupsub(t,{base:Pe})}_serialize(t){return t.skipStyles?Ao([this.bodyToLatex(t),this.supsubToLatex(t)]):super._serialize(t)}},om=class K1 extends Ur{constructor(t,r){var i;super({type:"composition",mode:(i=r==null?void 0:r.mode)!=null?i:"math",value:t})}static fromJson(t){return new K1(t.value,t)}toJson(){return super.toJson()}get computedStyle(){return{}}render(t){const r=new zr(this.value,{classes:"ML__composition",type:"composition"});return this.bind(t,r),this.caret&&(r.caret=this.caret),r}_serialize(t){return""}},Vo=class H1 extends Ur{constructor(t){super({type:"error",value:t,command:t,mode:"math"}),this.verbatimLatex=t}static fromJson(t){return new H1(t.command)}toJson(){return super.toJson()}render(t){const r=this.createBox(t,{classes:"ML__error"});return this.caret&&(r.caret=this.caret),r}},ol=class j1 extends Ur{constructor(t,r,i){super({type:"group",mode:r,style:i}),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 j1(t.body,t.mode,t.style)}render(t){const r=Ur.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=ct(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):`{${this.bodyToLatex(t)}}`}},Ys=class z1 extends Ur{constructor(t,r,i){super({type:"leftright",style:i.style,displayContainsHighlight:!0}),this.variant=t,this.body=r,this.leftDelim=i.leftDelim,this.rightDelim=i.rightDelim}static fromJson(t){var r;return new z1((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,i;const s=this.matchingRightDelim();return this.variant==="left...right"?Ao(["\\left",(r=this.leftDelim)!=null?r:".",this.bodyToLatex(t),"\\right",s]):this.variant==="mleft...mright"?Ao(["\\mleft",(i=this.leftDelim)!=null?i:".",this.bodyToLatex(t),"\\mright",s]):Ao([!this.leftDelim||this.leftDelim==="."?"":this.leftDelim,this.bodyToLatex(t),s])}matchingRightDelim(){var t,r;if(this.rightDelim&&this.rightDelim!=="?")return this.rightDelim;const i=(t=this.leftDelim)!=null?t:".";return(r=Kd[i])!=null?r:i}render(t){var r,i;const s=new Eo({parent:t},this.style);console.assert(this.body!==void 0);const c=new Eo({parent:t,mathstyle:"textstyle"},this.style),u=(r=Ur.createBox(s,this.body,{type:"inner"}))!=null?r:new zr(null,{type:"inner"}),k=u.height/c.scalingFactor,j=u.depth/c.scalingFactor,X=[];if(this.leftDelim&&X.push(this.bind(c,ah("open",this.leftDelim,k,j,c,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),u&&($m(u.children,this,s,k,j),X.push(u)),this.rightDelim){let vt=this.containsCaret?" ML__contains-caret":"",St=this.rightDelim;St==="?"&&(s.smartFence?(St=this.matchingRightDelim(),vt+=" ML__smart-fence__close"):St="."),X.push(this.bind(c,ah("close",St,k,j,c,{isSelected:this.isSelected,classes:vt+" ML__close",mode:this.mode,style:this.style})))}let ce=this.variant==="mleft...mright";const Pe=this.leftSibling;Pe&&(!ce&&Pe.isFunction&&(ce=!0),!ce&&Pe.type==="subsup"&&((i=Pe.leftSibling)!=null&&i.isFunction)&&(ce=!0));const nt=new zr(X,{type:ce?"close":"inner",classes:"left-right"});return nt.setStyle("margin-top",`${-u.depth}em`),nt.setStyle("height",`${u.height+u.depth}em`),this.caret&&(nt.caret=this.caret),this.bind(s,nt.wrap(s))}};function $m(e,t,r,i,s){if(e)for(let c=0;c<e.length;c++){const u=e[c];u.type==="middle"?(e[c]=t.bind(r,ah("inner",u.value,i,s,r,{isSelected:t.isSelected})),e[c].caret=u.caret,e[c].isSelected=u.isSelected,e[c].cssId=u.cssId,e[c].htmlData=u.htmlData,e[c].htmlStyle=u.htmlStyle,e[c].attributes=u.attributes,e[c].cssProperties=u.cssProperties):u.children&&$m(u.children,t,r,i,s)}}var U0=class $1 extends Ur{constructor(t,r){var i;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=(i=r.expand)!=null?i:!1}static fromJson(t){return new $1(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=Ur.createBox(t,this.body);return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}},Za=class Z1 extends Ur{constructor(){super({type:"macro-argument"})}static fromJson(t){return new Z1}toJson(){return super.toJson()}_serialize(t){return""}render(t){return null}},Sf=class V1 extends Ur{constructor(t,r,i=!1,s,c){var u;super({type:"prompt",mode:(u=c==null?void 0:c.mode)!=null?u:"math",style:c==null?void 0:c.style,command:"\\placeholder"}),this.body=s,this.correctness=r,this.placeholderId=t,this.locked=i,this.captureSelection=this.locked}static fromJson(t){return new V1(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 Eo({parent:t}),i=r.getRegisterAsEm("fboxsep"),s=i,c=i,u=Ur.createBox(t,this.body);if(!u)return null;u.height||(u.height=r.metrics.xHeight),u.setStyle("vertical-align",-u.height,"em"),this.correctness==="correct"?u.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&u.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const k=new zr(u,{type:"ord"});k.setStyle("display","inline-block"),k.setStyle("height",u.height+u.depth,"em"),k.setStyle("vertical-align",-c,"em");let j="ML__prompt ";this.locked?j+=" ML__lockedPromptBox ":j+=" ML__editablePromptBox ",this.correctness==="correct"?j+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(j+=" ML__incorrectPromptBox "),this.containsCaret&&(j+=" ML__focusedPromptBox ");const X=new zr(null,{classes:j,attributes:{part:"prompt"}});X.height=k.height+c,X.depth=k.depth+c,X.width=k.width+2*s,X.setStyle("box-sizing","border-box"),X.setStyle("position","absolute"),X.setStyle("height",k.height+k.depth+2*c,"em"),s===0&&X.setStyle("width","100%"),s!==0&&(X.setStyle("width",`calc(100% + ${2*s}em)`),X.setStyle("top",i,"em"),X.setStyle("left",-s,"em")),(!this.body||this.body.length===1)&&(X.width=3*s,X.setStyle("width",`calc(100% + ${3*s}em)`),X.setStyle("left",-1.5*s,"em"));let ce="";this.correctness==="incorrect"&&(ce+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),ce&&(X.svgOverlay=ce);const Pe=new zr([X,k],{classes:"ML__prompt-atom"});return Pe.setStyle("position","relative"),Pe.setStyle("display","inline-block"),Pe.setStyle("line-height",0),Pe.height=k.height+c+.2,Pe.depth=k.depth+c,Pe.left=s,Pe.right=s,Pe.setStyle("height",k.height+c,"em"),Pe.setStyle("top",k.depth-k.height,"em"),Pe.setStyle("vertical-align",k.depth+c,"em"),Pe.setStyle("margin-left",.5,"em"),Pe.setStyle("margin-right",.5,"em"),this.caret&&(Pe.caret=this.caret),this.bind(r,this.attachSupsub(t,{base:Pe}))}_serialize(t){var r;const i=(r=this.bodyToLatex(t))!=null?r:"";if(t.skipPlaceholders)return i;let s="\\placeholder";return this.placeholderId&&(s+=`[${this.placeholderId}]`),this.correctness==="correct"?s+="[correct]":this.correctness==="incorrect"&&(s+="[incorrect]"),this.locked&&(s+="[locked]"),Bs(s,i)}},ks=class W1 extends Ur{constructor(t){super({type:"subsup",style:t==null?void 0:t.style}),this.subsupPlacement="auto"}static fromJson(t){const r=new W1(t);for(const i of yf)t[i]&&r.setChildren(t[i],i);return r}render(t){var r;const i=new Eo({parent:t,isPhantom:!0}),s=this.leftSibling,c=(r=s.render(i))!=null?r:new zr(null),u=new zr(null);return u.height=c.height,u.depth=c.depth,this.attachSupsub(t,{base:u,isCharacterBox:s.isCharacterBox(),type:"ignore"})}_serialize(t){return this.supsubToLatex(t)}};function Hd(e){return e?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(e):!1}var R0=class{constructor(e,t,r){this.errors=[],this.index=0,this.endCount=0;var i,s,c,u;r!=null||(r={}),this.tokens=e,this.context=t instanceof Eo&&!(r!=null&&r.parseMode)&&!r.mathstyle?t:new Eo({from:t,mathstyle:r.mathstyle},r.style),this.args=(i=r.args)!=null?i:void 0,this.smartFence=this.context.smartFence,this.parsingContext={parent:void 0,mathlist:[],style:(s=r.style)!=null?s:{},parseMode:(c=r.parseMode)!=null?c:"math",mathstyle:(u=r.mathstyle)!=null?u:"displaystyle",tabular:!1}}beginContext(e){var t,r,i;const s=this.parsingContext,c={parent:s,mathlist:[],style:g({},s.style),parseMode:(t=e==null?void 0:e.mode)!=null?t:s.parseMode,mathstyle:(r=e==null?void 0:e.mathstyle)!=null?r:s.mathstyle,tabular:(i=e==null?void 0:e.tabular)!=null?i:!1};this.parsingContext=c}endContext(){this.parsingContext=this.parsingContext.parent}onError(e){this.errors.push(g({before:SA(this.tokens.slice(this.index,this.index+10)),after:SA(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 g({},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 ks({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=ct(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?hc(t,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new Du({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(),i="";for(;!r;){const c=this.get();Hd(c)?(i+=c,r=this.end()||i.length>=e.length):r=!0}const s=e.toUpperCase()===i.toUpperCase();return s||(this.index=t),s}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(Hd(t))e+=t;else return e;this.next()}return e}scanBalancedString(){let e="",t=this.end(),r=1;for(;!t;){const i=this.get();i==="<space>"?e+=" ":i==="<{>"?(e+="{",r+=1):i==="<}>"?(r-=1,r>0?e+="}":this.index-=1):i==="<$>"?e+="$":i==="<$$>"?e+="$$":e+=i,t=r===0||this.end()}return e}scanLiteralGroup(){var e;if(!this.match("<{>"))return"";let t="",r=1;for(;r>0&&!this.end();){const i=this.get();i==="<}>"?(r-=1,r>0&&(t+="}")):i==="<{>"?(r+=1,t+="{"):(/\\[a-zA-Z]+$/.test(t)&&/^[a-zA-Z]/.test(i)&&(t+=" "),t+=(e={"<space>":" ","<$$>":"$$","<$>":"$"}[i])!=null?e:i)}return t}scanNumber(e=!0){var t,r;let i=!1,s=this.peek();for(;s==="<space>"||s==="+"||s==="-";)this.get(),s==="-"&&(i=!i),s=this.peek();e=!!e;let c=10,u=/\d/;if(this.match("'"))c=8,u=/[0-7]/,e=!0;else if(this.match('"'))c=16,u=/[\dA-F]/,e=!0;else if(this.match("x"))c=16,u=/[\dA-Fa-f]/,e=!0;else if(this.match("`"))return s=this.get(),s?s.length===2&&s.startsWith("\\")?{number:(i?-1:1)*((t=s.codePointAt(1))!=null?t:0),base:"alpha"}:{number:(i?-1:1)*((r=s.codePointAt(0))!=null?r:0),base:"alpha"}:null;let k="";for(;this.hasPattern(u);)k+=this.get();if(!e&&(this.match(".")||this.match(",")))for(k+=".";this.hasPattern(u);)k+=this.get();const j=e?Number.parseInt(k,c):Number.parseFloat(k);return Number.isNaN(j)?null:{number:i?-j:j,base:c===16?"hexadecimal":c===8?"octal":"decimal"}}scanRegister(){var e;const t=this.index,r=this.scanNumber(!1);if(this.skipWhitespace(),this.match("\\relax"))return r;let i=!1;if(r===null)for(;;){const c=this.peek();if(c==="-")i=!i;else if(c!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const c=this.get();return c.startsWith("\\")?r?{register:c,global:!0,factor:(i?-1:1)*r.number}:i?{register:c,global:!0,factor:-1}:{register:c,global:!0}:(this.index=t,null)}let s=this.get();return s!=null&&s.startsWith("\\")?(s=s.substring(1),this.context.registers[s]?!i||r!==null?{register:s,factor:(i?-1:1)*((e=r==null?void 0:r.number)!=null?e:1)}:{register:s}:(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 i=this.scanNumber();if(i)return i;if(this.end()||!Hd(this.peek()))return null;const s=this.scanString();return s.length>0?{string:s}: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 k of t.params)if(k.isOptional)r.push(this.scanOptionalArgument(k.type));else{const j=this.scanArgument(k.type);j||this.onError({code:"missing-argument",arg:e}),r.push(j)}this.beginContext({tabular:t.tabular});const i=[],s=[];let c=[],u=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:e}),u=!0),!u&&this.match("\\end")&&(this.scanArgument("string")!==e&&this.onError({code:"unbalanced-environment",arg:e}),u=!0),!u)if(this.matchColumnSeparator())c.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){c.push(this.mathlist),this.mathlist=[];let k=null;this.skipWhitespace(),this.match("[")&&(k=this.scanDimen(),this.skipWhitespace(),this.match("]")),s.push(k!=null?k:{dimension:0}),i.push(c),c=[]}else this.mathlist.push(...this.scan(k=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(k)));while(!u);return c.push(this.mathlist),c.length>0&&i.push(c),this.endContext(),t.createAtom(e,i,s,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=u=>u==="<}>");let t="",r=null,i=[],s=null;for(;!this.end()&&!e(this.peek());)this.hasInfixCommand()&&!t?(t=this.get(),r=ct(t,"math"),r&&(i=this.scanArguments(r)[1]),s=this.mathlist,this.mathlist=[]):this.parseExpression();let c;return t?(console.assert(!!r),i.unshift(this.mathlist),s&&i.unshift(s),c=[r.createAtom({command:t,args:i,style:this.style,mode:this.parseMode})]):c=this.mathlist,this.endContext(),c}scanGroup(){const e=this.index;if(!this.match("<{>"))return null;const t=this.scan(i=>i==="<}>");this.match("<}>")||this.onError({code:"unbalanced-braces"});const r=new ol(t,this.parseMode,this.style);return r.verbatimLatex=SA(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 Ys("",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(!Hd(e)&&!e.startsWith("\\"))return null;this.next();const t=ct(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 Vo("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new Vo("\\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 Vo(t==="\\right"?"\\left":"\\mleft");for(this.beginContext();!this.end()&&!this.match(t);)this.parseExpression();const i=this.mathlist;this.endContext();const s=(e=this.scanDelim())!=null?e:".";return new Ys(t==="\\right"?"left...right":"mleft...mright",i,{leftDelim:r,rightDelim:s,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 Ur({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):t.addChild(new Ur({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&t.addChildren(qe(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 i=this.mathlist.length>0?this.mathlist[this.mathlist.length-1]:null;return i===null?!1:(i.explicitSubsupPlacement=!0,e&&(i.subsupPlacement="over-under"),t&&(i.subsupPlacement="adjacent"),r&&(i.subsupPlacement="auto"),!0)}scanArguments(e){if(!(e!=null&&e.params))return[void 0,[]];let t;const r=[];let i=e.infix?2:0;for(;i<e.params.length;){const s=e.params[i];s.type==="rest"?r.push(this.scan(c=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(c))):s.isOptional?r.push(this.scanOptionalArgument(s.type)):s.type.endsWith("*")?t=s.type.slice(0,-1):r.push(this.scanArgument(s.type)),i+=1}return[t,r]}scanSymbolOrLiteral(){const e=this.peek();if(!e)return null;this.next();let t;if(Hd(e)){const r=Gl.createAtom(this.parseMode,e,g({},this.style));return r?[r]:null}if(t=this.scanMacro(e),t)return[t];if(e.startsWith("\\")){const r=ct(e,this.parseMode);if(!r)return this.onError({code:"unknown-command",arg:e}),[new Vo(e)];if(r.definitionType==="symbol"){const i=g({},this.style);r.variant&&(i.variant=r.variant),t=new Ur({type:r.type,command:e,style:i,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 Vo(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 s=this.scanSymbolOrLiteral();return e!==r&&this.endContext(),s}if(e==="text"){e!==r&&this.beginContext({mode:"text"});const s=this.scanSymbolOrLiteral();return e!==r&&this.endContext(),s}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 s=this.mathlist;return this.endContext(),{group:s}}if(e==="math"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const s=this.mathlist;return this.endContext(),{group:s}}let i=null;if(e==="expression"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const s=this.mathlist;return this.endContext(),{group:s}}return e==="string"?i=this.scanString():e==="balanced-string"?i=this.scanBalancedString():e==="colspec"?i=this.scanColspec():e==="value"&&(i=this.scanValue()),this.skipUntilToken("<}>"),i}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={},i=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const s of i){const c=s.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(c)r.padding={dimension:parseInt(c[1]),unit:c[2]};else{const u=s.match(/^\s*border\s*:\s*(.*)/);u?r.border=u[1]:r.backgroundcolor={string:s}}}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,i;if(e==="\\placeholder"){const k=this.scanOptionalArgument("string"),j=this.scanOptionalArgument("math"),X=Ur.serialize(j,{defaultMode:"math"});let ce=[],Pe;!Pe&&X==="correct"?Pe="correct":!Pe&&X==="incorrect"?Pe="incorrect":X!==""&&(ce=j);const nt=this.scanOptionalArgument("string")==="locked",vt=this.scanArgument("auto");let St;return vt&&Array.isArray(vt)&&vt.length>0?St=vt:vt&&typeof vt=="object"&&"group"in vt?St=vt.group:St=ce,k?[new Sf(k,Pe,nt,St!=null?St:ce,{mode:this.parseMode,style:this.style})]:[new Du({mode:this.parseMode,style:this.style})]}if(e==="\\renewcommand"||e==="\\newcommand"||e==="\\providecommand"||e==="\\def"){const k=this.index,j=this.scanLiteralGroup()||this.next();if(!j)return null;if(this.context.registers[j.substring(1)]){const X=this.scanArgument("string");X!==null&&(this.context.registers[j.substring(1)]=X);const ce=Ao([e,SA(this.tokens.slice(k,this.index))]);return[new Ur({type:"text",value:"",verbatimLatex:ce})]}}let s=this.scanMacro(e);if(s)return[s];const c=ct(e,this.parseMode);if(!c)return this.parseMode==="text"?(/[a-zA-Z]/.test((t=this.peek())!=null?t:"")&&(e+=" "),[...e].map(k=>new Ur({type:"text",value:k,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:e}),[new Vo(e)]);const u=this.index;if(c.definitionType==="symbol"){const k=g({},this.style);c.variant&&(k.variant=c.variant),s=new Ur({type:c.type,command:e,style:k,value:String.fromCodePoint(c.codepoint),mode:this.parseMode})}else{if(c.ifMode&&!c.ifMode.includes(this.parseMode))return[];const k=this.parseMode;c.applyMode&&(this.parseMode=c.applyMode);let j,X=[];if(c.parse?X=c.parse(this):[j,X]=this.scanArguments(c),this.parseMode=k,c.applyMode&&!c.applyStyle&&!c.createAtom)return qe(X[0]);if(c.infix)return this.onError({code:"too-many-infix-commands",arg:e}),null;if(typeof c.createAtom=="function")s=c.createAtom({command:e,args:X,style:this.style,mode:this.parseMode}),j&&(s.body=qe(this.scanArgument(j)));else if(typeof c.applyStyle=="function"){const ce=g(g({},this.style),c.applyStyle(e,X,this.context)),Pe=this.parseMode;if(c.applyMode&&(this.parseMode=c.applyMode),j){const nt=this.style;this.style=ce;const vt=this.scanArgument(j);return this.style=nt,this.parseMode=Pe,qe(vt)}this.style=ce}else s=new Ur({type:"mord",command:(r=c.command)!=null?r:e,style:g({},this.style),value:e,mode:(i=c.applyMode)!=null?i:this.parseMode})}if(!s)return null;if(s instanceof Ur&&s.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(e)){const k=Ao([e,SA(this.tokens.slice(u,this.index))]);k&&(s.verbatimLatex=k)}if(s.verbatimLatex===null&&(s.verbatimLatex=void 0),s.isFunction&&this.smartFence){const k=this.scanSmartFence();if(k)return[s,k]}return[s]}scanSymbolCommandOrLiteral(){const e=this.get();if(!e)return null;if(Hd(e)){const t=Gl.createAtom(this.parseMode,e,g({},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 Ud(" "," ",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 i=this.index,s=r.args,c={"?":(t=this.args)==null?void 0:t.call(this,"?")};for(let u=1;u<=s;u++){let k=this.scanLiteralGroup();if(!k){const j=this.index;this.scanExpression(),k=SA(this.tokens.slice(j,this.index))}c[u]=k}return new U0(e,{expand:r.expand,captureSelection:r.captureSelection,args:i===this.index?null:SA(this.tokens.slice(i,this.index)),style:this.parsingContext.style,body:hc(r.def,{context:this.context,parseMode:this.parseMode,args:u=>c[u],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var e,t,r,i;let s=(i=(r=(t=(e=this.scanEnvironment())!=null?e:this.scanModeShift())!=null?t:this.scanModeSet())!=null?r:this.scanGroup())!=null?i:this.scanLeftRight();if(s===null){if(this.parseSupSub()||this.parseLimits())return!0;s=this.scanSymbolCommandOrLiteral()}return s?(Array.isArray(s)?this.mathlist.push(...s):this.mathlist.push(s),!0):!1}};function hc(e,t){var r,i,s,c;const u=(r=t==null?void 0:t.args)!=null?r:void 0,k=new R0(id(e,u),t==null?void 0:t.context,{args:u,mathstyle:(i=t==null?void 0:t.mathstyle)!=null?i:"displaystyle",parseMode:(s=t==null?void 0:t.parseMode)!=null?s:"math",style:(c=t==null?void 0:t.style)!=null?c:{}}),j=[];for(;!k.end();)j.push(...k.scan(()=>!1));return j}function fd(e,t){var r;const i=new R0(id(e,null),t==null?void 0:t.context,{mathstyle:"displaystyle",parseMode:(r=t==null?void 0:t.parseMode)!=null?r:"math"});for(;!i.end();)i.scan();return i.errors}var Cp=class G1 extends Ur{constructor(t,r){super({type:"chem"},{command:t,mode:"math"});const i=Qs.go(vn.go(r,t==="\\pu"?"pu":"ce"),!1);this.body=hc(i),this._verbatimLatex=t+"{"+r+"}",this.arg=r,this.captureSelection=!0}static fromJson(t){return new G1(t.command,t.arg)}set verbatimLatex(t){}get verbatimLatex(){return this._verbatimLatex}toJson(){return F(g({},super.toJson()),{arg:this.arg})}render(t){const r=Ur.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}};fe(["ce","pu"],"{chemformula:balanced-string}",{createAtom:e=>{var t;return new Cp(e.command,(t=e.args[0])!=null?t:"")}});var vn={go:function(e,t){if(!e)return[];t===void 0&&(t="ce");var r="0",i={};i.parenthesisLevel=0,e=e.replace(/\n/g," "),e=e.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),e=e.replace(/[\u2026]/g,"...");for(var s,c=10,u=[];;){s!==e?(c=10,s=e):c--;var k=vn.stateMachines[t],j=k.transitions[r]||k.transitions["*"];e:for(var X=0;X<j.length;X++){var ce=vn.patterns.match_(j[X].pattern,e);if(ce){for(var Pe=j[X].task,nt=0;nt<Pe.action_.length;nt++){var vt;if(k.actions[Pe.action_[nt].type_])vt=k.actions[Pe.action_[nt].type_](i,ce.match_,Pe.action_[nt].option);else if(vn.actions[Pe.action_[nt].type_])vt=vn.actions[Pe.action_[nt].type_](i,ce.match_,Pe.action_[nt].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+Pe.action_[nt].type_+")"];vn.concatArray(u,vt)}if(r=Pe.nextState||r,e.length>0){if(Pe.revisit||(e=ce.remainder),!Pe.toContinue)break e}else return u}}if(c<=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=vn.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 vn.patterns.findObserveGroups(e,"^{","","","}")},"^($...$)":function(e){return vn.patterns.findObserveGroups(e,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(e){return vn.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(e){return vn.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(e){return vn.patterns.findObserveGroups(e,"_{","","","}")},"_($...$)":function(e){return vn.patterns.findObserveGroups(e,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(e){return vn.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(e){return vn.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(e){return vn.patterns.findObserveGroups(e,"","{","}","")},"{(...)}":function(e){return vn.patterns.findObserveGroups(e,"{","","","}")},"$...$":function(e){return vn.patterns.findObserveGroups(e,"","$","$","")},"${(...)}$":function(e){return vn.patterns.findObserveGroups(e,"${","","","}$")},"$(...)$":function(e){return vn.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 vn.patterns.findObserveGroups(e,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(e){return vn.patterns.findObserveGroups(e,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(e){return vn.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(e){return vn.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 vn.patterns.findObserveGroups(e,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(e){return vn.patterns.findObserveGroups(e,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(e){return vn.patterns.findObserveGroups(e,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(e){return vn.patterns.findObserveGroups(e,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(e){return vn.patterns.findObserveGroups(e,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(e){return vn.patterns.findObserveGroups(e,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(e){return vn.patterns.findObserveGroups(e,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(e){return vn.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=vn.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,i,s,c,u,k,j,X){var ce=function(wr,nn){if(typeof nn=="string")return wr.indexOf(nn)!==0?null:nn;var Ln=wr.match(nn);return Ln?Ln[0]:null},Pe=function(wr,nn,Ln){for(var An=0;nn<wr.length;){var Si=wr.charAt(nn),ra=ce(wr.substr(nn),Ln);if(ra!==null&&An===0)return{endMatchBegin:nn,endMatchEnd:nn+ra.length};if(Si==="{")An++;else if(Si==="}"){if(An===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];An--}nn++}return An>0,null},nt=ce(e,t);if(nt===null||(e=e.substr(nt.length),nt=ce(e,r),nt===null))return null;var vt=Pe(e,nt.length,i||s);if(vt===null)return null;var St=e.substring(0,i?vt.endMatchEnd:vt.endMatchBegin);if(c||u){var Cr=this.findObserveGroups(e.substr(vt.endMatchEnd),c,u,k,j);if(Cr===null)return null;var _n=[St,Cr.match_];return{match_:X?_n.join(""):_n,remainder:Cr.remainder}}else return{match_:St,remainder:e.substr(vt.endMatchEnd)}},match_:function(e,t){var r=vn.patterns.patterns[e];if(r===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+e+")"];if(typeof r=="function")return vn.patterns.patterns[e](t);var i=t.match(r);if(i){var s;return i[2]?s=[i[1],i[2]]:i[1]?s=i[1]:s=i[0],{match_:s,remainder:t.substr(i[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 vn.go(t,"text")},"{text}":function(e,t){var r=["{"];return vn.concatArray(r,vn.go(t,"text")),r.push("}"),r},"tex-math":function(e,t){return vn.go(t,"tex-math")},"tex-math tight":function(e,t){return vn.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 vn.go(t)},"1/2":function(e,t){var r=[];t.match(/^[+\-]/)&&(r.push(t.substr(0,1)),t=t.substr(1));var i=t.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return i[1]=i[1].replace(/\$/g,""),r.push({type_:"frac",p1:i[1],p2:i[2]}),i[3]&&(i[3]=i[3].replace(/\$/g,""),r.push({type_:"tex-math",p1:i[3]})),r},"9,9":function(e,t){return vn.go(t,"9,9")}},createTransitions:function(e){var t,r,i,s,c={};for(t in e)for(r in e[t])for(i=r.split("|"),e[t][r].stateArray=i,s=0;s<i.length;s++)c[i[s]]=[];for(t in e)for(r in e[t])for(i=e[t][r].stateArray||[],s=0;s<i.length;s++){var u=e[t][r];if(u.action_){u.action_=[].concat(u.action_);for(var k=0;k<u.action_.length;k++)typeof u.action_[k]=="string"&&(u.action_[k]={type_:u.action_[k]})}else u.action_=[];for(var j=t.split("|"),X=0;X<j.length;X++)if(i[s]==="*")for(var ce in c)c[ce].push({pattern:j[X],task:u});else c[i[s]].push({pattern:j[X],task:u})}return c},stateMachines:{}};vn.stateMachines={ce:{transitions:vn.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 i=e.d;e.d=void 0,r=this.output(e),e.b=i}else r=this.output(e);return vn.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 vn.concatArray(r,this.output(e)),vn.concatArray(r,vn.actions.bond(e,t,"-")),r}else e.d=t},"- after o/d":function(e,t,r){var i=vn.patterns.match_("orbital",e.o||""),s=vn.patterns.match_("one lowercase greek letter $",e.o||""),c=vn.patterns.match_("one lowercase latin letter $",e.o||""),u=vn.patterns.match_("$one lowercase latin letter$ $",e.o||""),k=t==="-"&&(i&&i.remainder===""||s||c||u);k&&!e.a&&!e.b&&!e.p&&!e.d&&!e.q&&!i&&c&&(e.o="$"+e.o+"$");var j=[];return k?(vn.concatArray(j,this.output(e)),j.push({type_:"hyphen"})):(i=vn.patterns.match_("digits",e.d||""),r&&i&&i.remainder===""?(vn.concatArray(j,vn.actions["d="](e,t)),vn.concatArray(j,this.output(e))):(vn.concatArray(j,this.output(e)),vn.concatArray(j,vn.actions.bond(e,t,"-")))),j},"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:vn.go(t,"o")}},comma:function(e,t){var r=t.replace(/\s*$/,""),i=r!==t;return i&&e.parenthesisLevel===0?{type_:"comma enumeration L",p1:r}:{type_:"comma enumeration M",p1:r}},output:function(e,t,r){var i;if(!e.r)i=[],!e.a&&!e.b&&!e.p&&!e.o&&!e.q&&!e.d&&!r||(e.sb&&i.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"&&vn.patterns.match_("d-oxidation$",e.d||"")?e.dType="oxidation":e.o&&e.dType==="kv"&&!e.q&&(e.dType=void 0),i.push({type_:"chemfive",a:vn.go(e.a,"a"),b:vn.go(e.b,"bd"),p:vn.go(e.p,"pq"),o:vn.go(e.o,"o"),q:vn.go(e.q,"pq"),d:vn.go(e.d,e.dType==="oxidation"?"oxidation":"bd"),dType:e.dType}));else{var s;e.rdt==="M"?s=vn.go(e.rd,"tex-math"):e.rdt==="T"?s=[{type_:"text",p1:e.rd||""}]:s=vn.go(e.rd);var c;e.rqt==="M"?c=vn.go(e.rq,"tex-math"):e.rqt==="T"?c=[{type_:"text",p1:e.rq||""}]:c=vn.go(e.rq),i={type_:"arrow",r:e.r,rd:s,rq:c}}for(var u in e)u!=="parenthesisLevel"&&u!=="beginsWithBond"&&delete e[u];return i},"oxidation-output":function(e,t){var r=["{"];return vn.concatArray(r,vn.go(t,"oxidation")),r.push("}"),r},"frac-output":function(e,t){return{type_:"frac-ce",p1:vn.go(t[0]),p2:vn.go(t[1])}},"overset-output":function(e,t){return{type_:"overset",p1:vn.go(t[0]),p2:vn.go(t[1])}},"underset-output":function(e,t){return{type_:"underset",p1:vn.go(t[0]),p2:vn.go(t[1])}},"underbrace-output":function(e,t){return{type_:"underbrace",p1:vn.go(t[0]),p2:vn.go(t[1])}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:vn.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:vn.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:vn.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:vn.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:vn.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:vn.go(t,"o")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:vn.go(t[1],"pq")}}}},bd:{transitions:vn.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:vn.go(t[1],"bd")}}}},oxidation:{transitions:vn.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:vn.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:vn.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:vn.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:vn.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]&&(vn.concatArray(r,vn.go(t[1],"pu-9,9")),t[2]&&(t[2].match(/[,.]/)?vn.concatArray(r,vn.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]),vn.concatArray(r,vn.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=vn.patterns.match_("{(...)}",e.d||"");r&&r.remainder===""&&(e.d=r.match_);var i=vn.patterns.match_("{(...)}",e.q||"");if(i&&i.remainder===""&&(e.q=i.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 s={d:vn.go(e.d,"pu"),q:vn.go(e.q,"pu")};e.o==="//"?t={type_:"pu-frac",p1:s.d,p2:s.q}:(t=s.d,s.d.length>1||s.q.length>1?t.push({type_:" / "}):t.push({type_:"/"}),vn.concatArray(t,s.q))}else t=vn.go(e.d,"pu-2");for(var c in e)delete e[c];return t}}},"pu-2":{transitions:vn.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=vn.patterns.match_("{(...)}",e.rm||"");r&&r.remainder===""?t=vn.go(r.match_,"pu"):t={type_:"rm",p1:e.rm}}for(var i in e)delete e[i];return t}}},"pu-9,9":{transitions:vn.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 i=e.text_.length-3;i>0;i-=3)t.push(e.text_.substr(i,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(0,r)),t.reverse()}else t.push(e.text_);for(var s in e)delete e[s];return t},"output-o":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){for(var r=e.text_.length-3,i=0;i<r;i+=3)t.push(e.text_.substr(i,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(i))}else t.push(e.text_);for(var s in e)delete e[s];return t}}}};var Qs={go:function(e,t){if(!e)return"";for(var r="",i=!1,s=0;s<e.length;s++){var c=e[s];typeof c=="string"?r+=c:(r+=Qs._go2(c),c.type_==="1st-level escape"&&(i=!0))}return!t&&!i&&r&&(r="{"+r+"}"),r},_goInner:function(e){return e&&Qs.go(e,!0)},_go2:function(e){var t;switch(e.type_){case"chemfive":t="";var r={a:Qs._goInner(e.a),b:Qs._goInner(e.b),p:Qs._goInner(e.p),o:Qs._goInner(e.o),q:Qs._goInner(e.q),d:Qs._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 "+Qs._goInner(e.p1);break;case"state of aggregation subscript":t="\\mskip1mu "+Qs._goInner(e.p1);break;case"bond":if(t=Qs._getBond(e.kind_),!t)throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+e.kind_+")"];break;case"frac":var i="\\frac{"+e.p1+"}{"+e.p2+"}";t="\\mathchoice{\\textstyle"+i+"}{"+i+"}{"+i+"}{"+i+"}";break;case"pu-frac":var s="\\frac{"+Qs._goInner(e.p1)+"}{"+Qs._goInner(e.p2)+"}";t="\\mathchoice{\\textstyle"+s+"}{"+s+"}{"+s+"}{"+s+"}";break;case"tex-math":t=e.p1+" ";break;case"frac-ce":t="\\frac{"+Qs._goInner(e.p1)+"}{"+Qs._goInner(e.p2)+"}";break;case"overset":t="\\overset{"+Qs._goInner(e.p1)+"}{"+Qs._goInner(e.p2)+"}";break;case"underset":t="\\underset{"+Qs._goInner(e.p1)+"}{"+Qs._goInner(e.p2)+"}";break;case"underbrace":t="\\underbrace{"+Qs._goInner(e.p1)+"}_{"+Qs._goInner(e.p2)+"}";break;case"color":t="{\\color{"+e.color1+"}{"+Qs._goInner(e.color2)+"}}";break;case"color0":t="\\color{"+e.color+"}";break;case"arrow":var c={rd:Qs._goInner(e.rd),rq:Qs._goInner(e.rq)},u=Qs._getArrow(e.r);c.rd||c.rq?e.r==="<=>"||e.r==="<=>>"||e.r==="<<=>"||e.r==="<-->"?(u="\\long"+u,c.rd&&(u="\\overset{"+c.rd+"}{"+u+"}"),c.rq&&(e.r==="<-->"?u="\\underset{\\lower2mu{"+c.rq+"}}{"+u+"}":u="\\underset{\\lower6mu{"+c.rq+"}}{"+u+"}"),u=" {}\\mathrel{"+u+"}{} "):(c.rq&&(u+="[{"+c.rq+"}]"),u+="{"+c.rd+"}",u=" {}\\mathrel{\\x"+u+"}{} "):u=" {}\\mathrel{\\long"+u+"}{} ",t=u;break;case"operator":t=Qs._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 Q0(e){}function K0(e){}var Kc=class X1 extends Ur{constructor(t){super(F(g({},t),{type:"delim"})),this.value=t.delim,this.size=t.size}static fromJson(t){return new X1(t)}toJson(){return F(g({},super.toJson()),{delim:this.value,size:this.size})}render(t){return new zr(this.value,{type:"middle"})}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=ct(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):Bs(this.command,this.value)}},Sc=class J1 extends Ur{constructor(t){super(F(g({},t),{type:"sizeddelim",value:t.delim})),this.delimType=t.delimType,this.size=t.size}static fromJson(t){return new J1(t)}toJson(){return F(g({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(t){let r=jm(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=ct(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):Bs(this.command,this.value)}},sc=class Y1 extends Ur{constructor(t,r,i,s){var c,u;super({type:"enclose",command:t,style:s.style}),this.body=r,this.backgroundcolor=s.backgroundcolor,i.updiagonalarrow&&(i.updiagonalstrike=!1),i.box&&(i.left=!1,i.right=!1,i.bottom=!1,i.top=!1),this.notation=i,this.shadow=(c=s.shadow)!=null?c:"none",this.strokeWidth=(u=s.strokeWidth)!=null?u:"0.06em",this.strokeWidth||(this.strokeWidth="0.06em"),this.strokeStyle=s.strokeStyle,this.svgStrokeStyle=s.svgStrokeStyle,this.strokeColor=s.strokeColor,this.borderStyle=s.borderStyle,this.padding=s.padding,this.captureSelection=!1}static fromJson(t){return new Y1(t.command,t.body,t.notation,t)}toJson(){return F(g({},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 i=ct(this.command,this.mode);if(i!=null&&i.serialize)return i.serialize(this,t);let s=(r=this.command)!=null?r:"";if(this.command==="\\enclose"){s+="{"+Object.keys(this.notation).join(" ")+"}";let c="",u="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(c+=u+'mathbackground="'+this.backgroundcolor+'"',u=","),this.shadow&&this.shadow!=="auto"&&(c+=u+'shadow="'+this.shadow+'"',u=","),this.strokeWidth||this.strokeStyle!=="solid"?(c+=u+this.borderStyle,u=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(c+=u+'mathcolor="'+this.strokeColor+'"',u=","),c&&(s+=`[${c}]`)}return Bs(s,this.bodyToLatex(t))}render(t){const r=new Eo({parent:t},this.style),i=Ur.createBox(r,this.body);if(!i)return null;const s=sm(this.borderStyle),c=r.toEm(!this.padding||this.padding==="auto"?{register:"fboxsep"}:{string:this.padding});i.setStyle("position","relative"),i.setStyle("display","inline-block"),i.setStyle("top",c,"em"),i.setStyle("height",i.height+i.depth,"em"),i.setStyle("width",i.width,"em");const u=new zr(null,{classes:"ML__notation"});let k=i.height+i.depth+2*c;const j=i.width+2*c;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(c.toString(),(c+i.depth+i.height).toString(),(c+i.width).toString(),c.toString());const St=.03*Math.sqrt(j*j+k*k)*1,Cr=i.width*St,_n=(i.depth+i.height)*St,wr=c+i.width;let nn=c;nn+_n-.4*Cr<0&&(nn=.4*Cr-_n),X+='<polygon points="',X+=`${wr},${nn} ${wr-Cr-.4*_n},${nn+_n-.4*Cr} `,X+=`${wr-.7*Cr},${nn+.7*_n} ${wr-Cr+.4*_n},${nn+_n+.4*Cr} `,X+=`${wr},${nn}`,X+=`" stroke='none' fill="${this.strokeColor}"`,X+="/>"}let ce=0;if(this.notation.phasorangle){const nt=MA(r),vt=(i.height+i.depth+2*nt+c).toString(),St=(i.height+i.depth)/2;X+=this.line(c.toString(),vt,(c+St+i.width).toString(),vt),X+=this.line(c.toString(),vt,(c+St).toString(),(c-nt).toString()),k+=nt,ce=St,i.left+=k/2-c}if(this.notation.longdiv){const nt=MA(r);k+=nt,X+=this.line(c.toString(),c.toString(),(c+i.width).toString(),c.toString());const vt=.3;ce=vt+nt,i.left+=vt+nt,i.setTop(c+nt),X+='<path d="',X+=`M ${c} ${c} a${vt} ${(i.depth+i.height+2*nt)/2}, 0, 1, 1, 0 ${i.depth+i.height+2*nt} "`,X+=` stroke-width="${H0(r)}" stroke="${this.strokeColor}" fill="none"`,X+="/>"}if(u.width=i.width+2*c+ce,u.height=i.height+c,u.depth=i.depth+c,u.setStyle("box-sizing","border-box"),u.setStyle("left",`calc(-${s} / 2 )`),u.setStyle("height",`${Math.floor(100*k)/100}em`),u.setStyle("top",`calc(${s} / 2 )`),this.backgroundcolor&&u.setStyle("background-color",this.backgroundcolor),this.notation.box&&u.setStyle("border","1px solid red"),this.notation.actuarial&&(u.setStyle("border-top",this.borderStyle),u.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(u.setStyle("border-bottom",this.borderStyle),u.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(u.setStyle("border-radius","8px"),u.setStyle("border",this.borderStyle)),this.notation.circle&&(u.setStyle("border-radius","50%"),u.setStyle("border",this.borderStyle)),this.notation.top&&u.setStyle("border-top",this.borderStyle),this.notation.left&&u.setStyle("border-left",this.borderStyle),this.notation.right&&u.setStyle("border-right",this.borderStyle),this.notation.bottom&&u.setStyle("border-bottom",this.borderStyle),X){let nt="";this.shadow==="auto"&&(nt+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(nt+=`filter: drop-shadow(${this.shadow})`),nt+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,nt+=' stroke-linecap="round"',this.svgStrokeStyle&&(nt+=` stroke-dasharray="${this.svgStrokeStyle}"`),u.svgStyle=nt,u.svgOverlay=X}const Pe=new zr([u,i]);return Pe.setStyle("position","relative"),Pe.setStyle("vertical-align",c,"em"),Pe.setStyle("height",`${Math.floor(100*(i.height+i.depth+2*c))/100}em`),Pe.setStyle("display","inline-block"),Pe.height=u.height,Pe.depth=u.depth,Pe.width=u.width-2*c,Pe.left=c,Pe.right=c,this.caret&&(Pe.caret=this.caret),Pe.wrap(r)}line(t,r,i,s){return`<line x1="${pc(t)}" y1="${pc(r)}" x2="${pc(i)}" y2="${pc(s)}" vector-effect="non-scaling-stroke"></line>`}};function pc(e){return typeof e=="number"?`${Math.floor(100*e)/100}%`:e}function sm(e){if(!e)return"1px";const t=e.match(/([0-9][a-zA-Z\%]+)/);return t===null?"1px":t[1]}function H0(e){return(Math.floor(100*e.metrics.sqrtRuleThickness/e.scalingFactor)/100/10).toString()+"em"}function MA(e){const t=e.isDisplayStyle?Ll:e.metrics.defaultRuleThickness;return e.metrics.defaultRuleThickness+e.scalingFactor*t/4}var Ef=class q1 extends Ur{constructor(t,r,i){var s,c;super(F(g({},i),{type:"genfrac",displayContainsHighlight:!0})),this.above=t,this.below=r,this.hasBarLine=(s=i==null?void 0:i.hasBarLine)!=null?s:!0,this.continuousFraction=(c=i==null?void 0:i.continuousFraction)!=null?c:!1,this.numerPrefix=i==null?void 0:i.numerPrefix,this.denomPrefix=i==null?void 0:i.denomPrefix,this.mathstyleName=i==null?void 0:i.mathstyleName,this.leftDelim=i==null?void 0:i.leftDelim,this.rightDelim=i==null?void 0:i.rightDelim,this.fractionNavigationOrder=i==null?void 0:i.fractionNavigationOrder}static fromJson(t){return new q1(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),g(g({},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,i;const s=new Eo({parent:t,mathstyle:this.mathstyleName},this.style),c=s.metrics,u=new Eo({parent:s,mathstyle:this.continuousFraction?"":"numerator"},this.style),k=this.numerPrefix?new zr([new zr(this.numerPrefix),Ur.createBox(u,this.above)],{isTight:u.isTight,type:"ignore"}):(r=Ur.createBox(u,this.above,{type:"ignore"}))!=null?r:new zr(null,{type:"ignore"}),j=new Eo({parent:s,mathstyle:this.continuousFraction?"":"denominator"},this.style),X=this.denomPrefix?new zr([new zr(this.denomPrefix),Ur.createBox(j,this.below,{type:"ignore"})]):(i=Ur.createBox(j,this.below,{type:"ignore"}))!=null?i:new zr(null,{type:"ignore"}),ce=this.hasBarLine?c.defaultRuleThickness:0;let Pe,nt=0,vt;s.isDisplayStyle?(Pe=u.metrics.num1,nt=ce>0?3*ce:7*ce,vt=j.metrics.denom1):(ce>0?(Pe=u.metrics.num2,nt=ce):(Pe=u.metrics.num3,nt=3*c.defaultRuleThickness),vt=j.metrics.denom2);const St=[];this.isSelected&&St.push("ML__selected");const Cr=k.depth,_n=X.height;let wr;if(ce<=0){const Hi=Pe-Cr-(_n-vt);Hi<nt&&(Pe+=(nt-Hi)/2,vt+=(nt-Hi)/2),wr=new bl({individualShift:[{box:k,shift:-Pe,classes:[...St,"ML__center"]},{box:X,shift:vt,classes:[...St,"ML__center"]}]}).wrap(s)}else{const Hi=new zr(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});Hi.softWidth=Math.max(k.width,X.width),Hi.height=ce/2,Hi.depth=ce/2;const h=Al+ce/2;Pe<nt+Cr+h&&(Pe=nt+Cr+h);const B=Al-ce/2;vt<nt+_n-B&&(vt=nt+_n-B),wr=new bl({individualShift:[{box:X,shift:vt,classes:[...St,"ML__center"]},{box:Hi,shift:-B,classes:St},{box:k,shift:-Pe,classes:[...St,"ML__center"]}]}).wrap(s)}const nn=s.isDisplayStyle?c.delim1:c.delim2,Ln=this.leftDelim?this.bind(t,Bf("open",this.leftDelim,nn,!0,t,{style:this.style,mode:this.mode,isSelected:this.isSelected})):oh(s,"open");let An=null;this.continuousFraction?An=new zr(null,{type:"close"}):this.rightDelim?An=this.bind(t,Bf("close",this.rightDelim,nn,!0,t,{style:this.style,mode:this.mode,isSelected:this.isSelected})):An=oh(s,"close");const Si=new zr([Ln,wr,An],{isTight:s.isTight,type:"inner",classes:"mfrac"}),ra=this.bind(t,Si);return this.caret&&(ra.caret=this.caret),this.attachSupsub(t,{base:ra})}},Ol=class ev extends Ur{constructor(t,r){var i;super({type:"latex",value:t,mode:"latex"}),this.isSuggestion=(i=r==null?void 0:r.isSuggestion)!=null?i:!1,this.isError=!1}static fromJson(t){const r=new ev(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),g({type:"latex",value:this.value},t)}get computedStyle(){return{}}render(t){const r=new zr(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}},_f=class tv extends Ur{constructor(t){super({type:"latexgroup",mode:"latex"}),this.body=[...t].map(r=>new Ol(r)),this.skipBoundary=!1}static fromJson(t){return new tv("")}toJson(){return super.toJson()}render(t){const r=Ur.createBox(t,this.body);return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}_serialize(t){var r,i;return(i=(r=this.body)==null?void 0:r.map(s=>s.value).join(""))!=null?i:""}},Bp=class rv extends Ur{constructor(t,r){super(F(g({},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 rv(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 i=t.isDisplayStyle&&this.value!=="\\smallint",s=new zr(this.value,{fontFamily:i?"Size2-Regular":"Size1-Regular",classes:"op-symbol "+(i?"large-op":"small-op"),type:"op",maxFontSize:t.scalingFactor,isSelected:this.isSelected});if(!s)return null;s.right=s.italic;const c=(s.height-s.depth)/2-Al*t.scalingFactor,u=s.italic;s.setTop(c);let k=s;if(this.superscript||this.subscript){const j=(r=this.subsupPlacement)!=null?r:"auto";k=j==="over-under"||j==="auto"&&t.isDisplayStyle?this.attachLimits(t,{base:s,baseShift:c,slant:u}):this.attachSupsub(t,{base:s})}return new zr(this.bind(t,k),{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=ct(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const i=[];return i.push(this.command),this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&i.push("\\limits"),this.subsupPlacement==="adjacent"&&i.push("\\nolimits"),this.subsupPlacement==="auto"&&i.push("\\displaylimits")),i.push(this.supsubToLatex(t)),Ao(i)}},Jc=class nv extends Ur{constructor(t){const r=t.body;super(F(g({},t),{type:"overlap",body:typeof r=="string"?[new Ur({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 nv(t)}toJson(){const t={};return this.align&&(t.align=this.align),this.boxType&&(t.boxType=this.boxType),g(g({},super.toJson()),t)}render(t){const r=Ur.createBox(t,this.body,{classes:"inner"});return r?(this.caret&&(r.caret=this.caret),this.bind(t,new zr([r,new zr(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},mc=class iv extends Ur{constructor(t){var r,i,s,c;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=(i=t.boxType)!=null?i:"ord",this.paddedBody=(s=t.paddedBody)!=null?s:!1,this.paddedLabels=(c=t.paddedLabels)!=null?c:!1}static fromJson(t){return new iv(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?gf(this.svgBody):Ur.createBox(t,this.body,{type:"ignore"});const i=new Eo({parent:t,mathstyle:"scriptstyle"},this.style);let s=null;this.svgAbove?s=gf(this.svgAbove):this.above&&(s=Ur.createBox(i,this.above,{type:"ignore"}));let c=null;this.svgBelow?c=gf(this.svgBelow):this.below&&(c=Ur.createBox(i,this.below,{type:"ignore"})),this.paddedBody&&(r=new zr([oh(t,"open"),r,oh(t,"close")],{type:"ignore"}));let u=Uh(t,{base:r,above:s,below:c,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return u?(this.subsupPlacement==="over-under"?u=this.attachLimits(t,{base:u,type:u.type}):u=this.attachSupsub(t,{base:u}),this.caret&&(u.caret=this.caret),this.bind(t,u)):null}};function Uh(e,t){if(!t.base)return null;if(!t.above&&!t.below){const k=new zr(t.base,{type:t.type});return k.setStyle("position","relative"),k}let r=0;t.above&&(r=e.metrics.bigOpSpacing5);let i=null;const s=t.base,c=0,u=["ML__center"];if(t.paddedAboveBelow&&u.push("ML__label_padding"),t.below&&t.above){const k=e.metrics.bigOpSpacing5+t.below.height+t.below.depth+s.depth+c;i=new bl({bottom:k,children:[e.metrics.bigOpSpacing5,{box:t.below,classes:u},{box:s,classes:["ML__center"]},r,{box:t.above,classes:u},e.metrics.bigOpSpacing5]})}else t.below?i=new bl({top:s.height-c,children:[e.metrics.bigOpSpacing5,{box:t.below,classes:u},{box:s,classes:["ML__center"]}]}):t.above&&(i=new bl({bottom:s.depth+c,children:[{box:s,classes:["ML__center"]},r,{box:t.above,classes:u},e.metrics.bigOpSpacing5]}));return new zr(i,{type:t.type})}var Ou=class av extends Ur{constructor(t){var r,i,s,c;super(F(g({},t),{type:"phantom"})),this.captureSelection=!0,this.isInvisible=(r=t.isInvisible)!=null?r:!1,this.smashDepth=(i=t.smashDepth)!=null?i:!1,this.smashHeight=(s=t.smashHeight)!=null?s:!1,this.smashWidth=(c=t.smashWidth)!=null?c:!1}static fromJson(t){return new av(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),g(g({},super.toJson()),t)}render(t){const r=new Eo({parent:t,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),Ur.createBox(r,this.body,{classes:"inner"});const i=Ur.createBox(this.isInvisible?r:t,this.body);if(!i)return null;if(this.smashWidth){const s=new zr(null,{classes:"fix"});return new zr([i,s],{classes:"rlap"}).wrap(t)}if(!this.smashHeight&&!this.smashDepth)return i;if(this.smashHeight&&(i.height=0),this.smashDepth&&(i.depth=0),i.children)for(const s of i.children)this.smashHeight&&(s.height=0),this.smashDepth&&(s.depth=0);return new bl({firstBaseline:[{box:i}]},{type:i.type}).wrap(t)}},iA=class ov extends Ur{constructor(t){var r;super(g({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 ov(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 zr(this.mode==="math"?null:" ");let i;if(this.width!==void 0)i=new zr(null,{classes:"mspace"}),i.left=t.toEm(this.width);else{const s=(r={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\>":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.command])!=null?r:"mediumspace";i=new zr(null,{classes:s})}return i=this.bind(t,i),this.caret&&(i.caret=this.caret),i}_serialize(t){var r;if(!t.expandMacro&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const i=ct(this.command,this.mode);if(i!=null&&i.serialize)return i.serialize(this,t);const s=(r=this.command)!=null?r:"";return this.width===void 0?s:this._braced&&!("register"in this.width)?`${s}{${Dl(this.width)}}`:`${s}${Dl(this.width)}`}},Sp=class sv extends Ur{constructor(t){var r;super(F(g({},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 sv(F(g({},t),{index:t.above}))}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=ct(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const i=this.command,s=this.bodyToLatex(t);return this.above&&!this.hasEmptyBranch("above")?Bs(`${i}[${this.aboveToLatex(t)}]`,s):/^[0-9]$/.test(s)?`${i}${s}`:Bs(i,s)}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 i=new Eo({parent:t,mathstyle:"cramp"},this.style),s=(r=Ur.createBox(i,this.body,{type:"inner"}))!=null?r:new zr(null),c=i.scalingFactor,u=i.metrics.defaultRuleThickness/c,k=t.isDisplayStyle?Ll:u,j=new zr(null,{classes:"ML__sqrt-line",style:this.style});j.height=u,j.softWidth=s.width;let X=c*(u+k/4);const Pe=Math.max(c*2*k,s.height+s.depth)+X+u,nt=new Eo({parent:t},this.style),vt=this.bind(nt,new zr(Bf("inner","\\surd",Pe,!1,nt,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!vt)return null;const St=vt.height+vt.depth-u;St>s.height+s.depth+X&&(X=(X+St-(s.height+s.depth))/2),vt.setTop(vt.height-s.height-X);const Cr=this.bind(t,new bl({firstBaseline:[{box:new zr(s)},X-2*u,{box:j},u]})),_n=Ur.createBox(new Eo({parent:t,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!_n){const Ln=new zr([vt,Cr],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return Ln.setStyle("display","inline-block"),Ln.setStyle("height",Ln.height+Ln.depth,"em"),this.caret&&(Ln.caret=this.caret),this.bind(t,Ln)}const wr=new bl({shift:-.6*(Math.max(vt.height,Cr.height)-Math.max(vt.depth,Cr.depth)),children:[{box:_n}]}),nn=new zr([new zr(wr,{classes:"ML__sqrt-index",type:"ignore"}),vt,Cr],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return nn.height=vt.height,nn.depth=vt.depth,this.caret&&(nn.caret=this.caret),this.bind(t,nn)}},Rh=class extends zr{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 sh(e,t){if(!e.parent)return;const r=e.parent.children,i=r.indexOf(e);let s=i-1;for(;s>=0&&r[s].type==="ignore";)s-=1;if(s<0&&e.parent.parent&&e.parent.type==="lift"){sh(e.parent,t);return}i>0&&r[i-1].type==="skip"?r[i-1].width+=t:r.splice(i,0,new Rh(t))}var jd={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}},zd={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function ua(e){If(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 sl(e,t){if(!e.children)return e;const r=e.children;ua(r);const i=t.getRegisterAsEm("thinmuskip"),s=t.getRegisterAsEm("medmuskip"),c=t.getRegisterAsEm("thickmuskip");return If(r,(u,k)=>{var j,X,ce;if(!u)return;const Pe=u.type,nt=k.isTight?(j=zd[Pe])!=null?j:null:(X=jd[Pe])!=null?X:null,vt=(ce=nt==null?void 0:nt[k.type])!=null?ce:null;vt===3&&sh(k,i),vt===4&&sh(k,s),vt===5&&sh(k,c)}),e}function If(e,t,r=void 0){if(!e)return r;e=[...e];for(const i of e)i.type==="lift"?r=If(i.children,t,r):i.type==="ignore"?If(i.children,t):(t(r,i),If(i.children,t),r=i);return r}var hd=class lv extends Ur{constructor(t){super({type:"tooltip",command:t.command,mode:t.mode,style:t.style,body:t.body,displayContainsHighlight:!0}),this.tooltip=new Ur({type:"root",mode:t.content,body:t.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(t){return new lv(F(g({},t),{tooltip:La(t.tooltip)}))}toJson(){var t;const r=(t=this.tooltip.body)==null?void 0:t.filter(i=>i.type!=="first").map(i=>i.toJson());return F(g({},super.toJson()),{tooltip:r})}render(t){const r=Ur.createBox(new Eo,this.body);if(!r)return null;const i=new Eo({parent:t,mathstyle:"displaystyle"},{fontSize:il}),s=mf(sl(new zr(this.tooltip.render(i),{classes:"ML__tooltip-content"}),i)),c=new zr([s,r],{classes:"ML__tooltip-container"});return this.caret&&(c.caret=this.caret),this.bind(t,c)}},GA=class cv extends Ur{constructor(t,r){super(F(g({},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 cv(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 i=new zr(this.value,{type:"op",mode:"math",maxFontSize:t.scalingFactor,style:{variant:this.variant,variantStyle:this.variantStyle},isSelected:this.isSelected,letterShapeStyle:t.letterShapeStyle});let s=i;if(this.superscript||this.subscript){const c=(r=this.subsupPlacement)!=null?r:"auto";s=c==="over-under"||c==="auto"&&t.isDisplayStyle?this.attachLimits(t,{base:i}):this.attachSupsub(t,{base:i})}return new zr(this.bind(t,s),{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=ct(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const i=[this.command];return this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&i.push("\\limits"),this.subsupPlacement==="adjacent"&&i.push("\\nolimits"),this.subsupPlacement==="auto"&&i.push("\\displaylimits")),i.push(this.supsubToLatex(t)),Ao(i)}};function La(e){if(_(e))return e.map(i=>La(i));if(typeof e=="string")return Ur.fromJson(e);e=g({},e);for(const i of yf)e[i]&&(e[i]=La(e[i]));e.args&&(e.args=$d(e.args)),e.array&&(e.array=La(e.array));const t=e.type;let r;t==="accent"&&(r=ih.fromJson(e)),t==="array"&&(r=fs.fromJson(e)),t==="box"&&(r=fc.fromJson(e)),t==="chem"&&(r=Cp.fromJson(e)),t==="composition"&&(r=om.fromJson(e)),t==="delim"&&(r=Kc.fromJson(e)),t==="enclose"&&(r=sc.fromJson(e)),t==="error"&&(r=Vo.fromJson(e)),t==="extensible-symbol"&&(r=Bp.fromJson(e)),t==="genfrac"&&(r=Ef.fromJson(e)),t==="group"&&(r=ol.fromJson(e)),t==="latex"&&(r=Ol.fromJson(e)),t==="latexgroup"&&(r=_f.fromJson(e)),t==="leftright"&&(r=Ys.fromJson(e)),t==="macro"&&(r=U0.fromJson(e)),t==="macro-argument"&&(r=Za.fromJson(e)),t==="operator"&&(r=GA.fromJson(e)),t==="overlap"&&(r=Jc.fromJson(e)),t==="overunder"&&(r=mc.fromJson(e)),t==="placeholder"&&(r=Du.fromJson(e)),t==="prompt"&&(r=Sf.fromJson(e)),t==="phantom"&&(r=Ou.fromJson(e)),t==="sizeddelim"&&(r=Sc.fromJson(e)),t==="spacing"&&(r=iA.fromJson(e)),t==="subsup"&&(r=ks.fromJson(e)),t==="surd"&&(r=Sp.fromJson(e)),t==="text"&&(r=Ud.fromJson(e)),t==="tooltip"&&(r=hd.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=Ur.fromJson(e));for(const i of yf)e[i]&&r.setChildren(e[i],i);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 $d(e){if(e&&Array.isArray(e))return e.map(t=>t==="<null>"?null:typeof t=="object"&&"group"in t?{group:t.group.map(r=>La(r))}:typeof t=="object"&&"atoms"in t?t.atoms.map(r=>La(r)):t)}var aA={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"]},j0={"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]$/,Zm=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,Vm=[/^[a-z]$/,/^[A-Z]$/,cu,Zm],Wm={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},Yl=class extends Gl{constructor(){super("math")}createAtom(e,t,r){var i,s,c,u;if(t===null)return new Ur({type:"mord",mode:"math",command:e,value:e,style:r});const k=window.MathfieldElement.isFunction((i=t.command)!=null?i:e);if(t.definitionType==="symbol"){const X=new Ur({type:(s=t.type)!=null?s:"mord",mode:"math",command:(c=t.command)!=null?c:e,value:String.fromCodePoint(t.codepoint),style:r});return k&&(X.isFunction=!0),e.startsWith("\\")&&(X.verbatimLatex=e),X}const j=new Ur({type:"mord",mode:"math",command:(u=t.command)!=null?u:e,value:e,style:r});return k&&(j.isFunction=!0),e.startsWith("\\")&&(j.verbatimLatex=e),j}serialize(e,t){const r=b(e,F(g({},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:i}=t;r==="normal"&&!i&&/[\u00A3\u0131\u0237]/.test(e.value)&&(r="main",i="italic"),r==="normal"&&!i&&e.value.length===1&&Vm.forEach((k,j)=>{var X;k.test(e.value)&&Wm[(X=t.letterShapeStyle)!=null?X:"tex"][j]==="it"&&(i="italic")}),i==="up"&&(i=void 0);const s=i?r+"-"+i:r;console.assert(aA[s]!==void 0);const[c,u]=aA[s];return j0[r]&&!j0[r].test(e.value)?(e.value=Xe(e.value,r,i),null):(cu.test(e.value)&&(e.classes+=" lcGreek"),u&&(e.classes+=" "+u),c)}};function b(e,t){const{parent:r}=e[0],i=d(r);return TA(e,"variant").map(s=>{const c=d(s[0]);let u="";c&&c!==i&&(u={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"}[c],console.assert(u!==void 0));const k=Ao(s.map(j=>j._serialize(t)));return u?Bs(u,k):k})}function d(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 Yl;function w(e,t){return e.map(r=>r._serialize(t))}function y(e,t){return TA(e,"fontShape").map(r=>{const i=w(r,t),{fontShape:s}=r[0].style;let c="";return s==="it"&&(c="\\textit"),s==="sl"&&(c="\\textsl"),s==="sc"&&(c="\\textsc"),s==="n"&&(c="\\textup"),!c&&s?`{${Bs("\\fontshape",s)}${Ao(i)}}`:c?Bs(c,Ao(i)):Ao(i)})}function re(e,t){return TA(e,"fontSeries").map(r=>{const i=y(r,t),{fontSeries:s}=r[0].style;let c="";return s==="b"&&(c="\\textbf"),s==="l"&&(c="\\textlf"),s==="m"&&(c="\\textmd"),s&&!c?`{${Bs("\\fontseries",s)}${Ao(i)}}`:c?Bs(c,Ao(i)):Ao(i)})}function Ee(e,t){return TA(e,"fontSize").map(r=>{var i,s;const c=re(r,t),u=(s=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(i=r[0].style.fontSize)!=null?i:""])!=null?s:"";return u?`${u} ${Ao(c)}`:Ao(c)})}function We(e,t,r){return TA(e,"fontFamily").map(i=>{var s,c;const u=Ee(i,t),k=(c={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(s=i[0].style.fontFamily)!=null?s:""])!=null?c:"";return k?`\\${k}{${Ao(u)}}`:i[0].style.fontFamily?`{\\fontfamily{${i[0].style.fontFamily}} ${Ao(u)}}`:r?`\\text{${Ao(u)}}`:Ao(u)})}var ht={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},pt=class extends Gl{constructor(){super("text")}createAtom(e,t,r){return t&&t.definitionType==="symbol"?new Ud(e,String.fromCodePoint(t.codepoint),r!=null?r:{}):null}serialize(e,t){return We(e,F(g({},t),{defaultMode:"text"}),t.defaultMode!=="text")}getFont(e,t){var r,i,s,c,u;const{fontFamily:k}=t;if(ht[k]?e.classes+=" "+ht[k]:k&&e.setStyle("font-family",k),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 j=t.fontSeries.match(/(.?[lbm])?(.?[cx])?/);j&&(e.classes+=" ",e.classes+=(s={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"}[(i=j[1])!=null?i:""])!=null?s:"",e.classes+=" ",e.classes+=(u={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"}[(c=j[2])!=null?c:""])!=null?u:"")}return"Main-Regular"}};new pt;var tr=class extends Gl{constructor(){super("latex")}createAtom(e){return new Ol(e)}serialize(e,t){return e.filter(r=>r instanceof Ol&&!r.isSuggestion).map(r=>r.value)}getFont(){return null}};new tr;var cr={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:["","=","","="]}},hr={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:["","=","","="]}},qr={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:["\\","|","",""]}},Ri={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:[")",")",")",")"]}},Rn={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:["=","=","=","="]}},mi={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:["<",">","",""]}},Va={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"]}},ea={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:["=","=","=","="]}},Yi={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:["<",">","|",""]}},Oa={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:[".",".",".","."]}},oo={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"]}},Ia={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:["<",">","",""]}},Di={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 ko(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 Xa(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 Pa={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]"},ei=[],Ec;function oA(){switch(q()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function yo(e){(!e.platform||e.platform===oA())&&ei.push(e)}function _c(e,t){var r;const i={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:""};if(!e)return i;for(const[s,c]of Object.entries(t.mapping)){if(c[0]===e)return i.key=`[${s}]`,i;if(c[1]===e)return i.shift=!0,i.key=`[${s}]`,i;if(c[2]===e)return i.alt=!0,i.key=`[${s}]`,i;if(c[3]===e)return i.shift=!0,i.alt=!0,i.key=`[${s}]`,i}return i.key=(r=Pa[e])!=null?r:"",i}function pd(e){if(e.code)return e;const t=Object.entries(Au().mapping);let r=!1,i=!1,s="";for(let c=0;c<4;c++){for(const[u,k]of t)if(k[c]===e.key){s=u,c===3?(r=!0,i=!0):c===2?r=!0:c===1&&(i=!0);break}if(s)break}return new KeyboardEvent(e.type,F(g({},e),{altKey:r,shiftKey:i,code:s}))}function Yc(e){var t,r;if(!e||e.key==="Unidentified"||e.key==="Dead")return;const i=e.shiftKey&&e.altKey?3:e.altKey?2:e.shiftKey?1:0;for(const s of ei)((t=s.mapping[e.code])==null?void 0:t[i])===e.key?s.score+=1:(r=s.mapping[e.code])!=null&&r[i]&&(s.score=0);ei.sort((s,c)=>c.score-s.score)}function sA(e){Ec=ei.find(t=>e.startsWith(t.locale))}function Au(){return Ec!=null?Ec:ei[0]}function XA(){switch(oA()){case"apple":return hr;case"windows":return qr;case"linux":return Ri}return hr}switch(oA()){case"apple":yo(hr),yo(Rn),yo(oo),yo(ea);break;case"windows":yo(qr),yo(mi),yo(Ia),yo(Yi);break;case"linux":yo(Ri),yo(Va),yo(Di),yo(Oa);break}yo(cr);function uu(e){var t;const r=/macos|ios/.test(q()),i=e.split("+");let s="";for(const c of i)s&&(s+=r?"\u2009":'<span class="ML__shortcut-join">+</span>'),c.startsWith("[Key")?s+=c.slice(4,5):c.startsWith("Key")?s+=c.slice(3,4):c.startsWith("[Digit")?s+=c.slice(6,7):c.startsWith("Digit")?s+=c.slice(5,6):s+=(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"}[c.toLowerCase()])!=null?t:c.toUpperCase();return s}function Pu(e){if(e instanceof MouseEvent||e instanceof PointerEvent)return{x:e.clientX,y:e.clientY};if(e instanceof TouchEvent){const t=[...e.touches].reduce((i,s)=>({x:i.x+s.clientX,y:i.y+s.clientY}),{x:0,y:0}),r=e.touches.length;return{x:t.x/r,y:t.y/r}}}function LA(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 Tu(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 Zd=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 JA(e){return e.ctrlKey||e.metaKey||["Dead","Process"].includes(e.key)?!1:e.code===""?!0:Zd.has(e.code)}function md(){var e;let t=document.activeElement;for(;(e=t==null?void 0:t.shadowRoot)!=null&&e.activeElement;)t=t.shadowRoot.activeElement;return t}var Hc=class b0{static get scrim(){return b0._scrim||(b0._scrim=new b0),b0._scrim}static open(t){b0.scrim.open(t)}static close(){b0.scrim.close()}static get state(){return b0.scrim.state}static get element(){return b0.scrim.element}constructor(t){var r,i;this.lightDismiss=(r=t==null?void 0:t.lightDismiss)!=null?r:!0,this.translucent=(i=t==null?void 0:t.translucent)!=null?i:!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=md();const{element:i}=this;((r=t==null?void 0:t.root)!=null?r:document.body).appendChild(i),i.addEventListener("click",this),document.addEventListener("touchmove",this,!1),document.addEventListener("scroll",this,!1);const s=window.innerWidth-document.documentElement.clientWidth;this.savedMarginRight=document.body.style.marginRight,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden";const c=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${c+s}px`,t!=null&&t.child&&i.append(t.child),this.state="open"}close(){var t,r,i,s;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:c}=this;c.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),c.remove(),document.body.style.overflow=(t=this.savedOverflow)!=null?t:"",document.body.style.marginRight=(r=this.savedMarginRight)!=null?r:"",md()!==this.savedActiveElement&&((s=(i=this.savedActiveElement)==null?void 0:i.focus)==null||s.call(i)),c.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 vg(e,t,r){let i=null,s=null,c=!1,u=!1,k=!1;const j=new AbortController,X=j.signal;return e.addEventListener("keydown",ce=>{if(c||ce.key==="Process"||ce.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(ce.code)){i=null;return}i=ce,s=null,r.onKeystroke(ce)?e.textContent="":i=null},{capture:!0,signal:X}),e.addEventListener("keypress",ce=>{c||(i&&s&&r.onKeystroke(i),s=ce)},{capture:!0,signal:X}),e.addEventListener("compositionstart",ce=>{e.textContent="",c=!0,r.onCompositionStart(ce.data)},{capture:!0,signal:X}),e.addEventListener("compositionupdate",ce=>{c&&r.onCompositionUpdate(ce.data)},{capture:!0,signal:X}),e.addEventListener("compositionend",ce=>{e.textContent="",c&&(c=!1,r.onCompositionEnd(ce.data))},{capture:!0,signal:X}),e.addEventListener("beforeinput",ce=>ce.stopImmediatePropagation(),{signal:X}),e.addEventListener("input",ce=>{var Pe;if(!c&&(e.textContent="",ce.inputType!=="insertCompositionText")){if(ce.inputType==="insertFromPaste"){ce.preventDefault(),ce.stopPropagation();return}r.onInput((Pe=ce.data)!=null?Pe:""),ce.preventDefault(),ce.stopPropagation()}},{signal:X}),e.addEventListener("paste",ce=>{e.focus({preventScroll:!0}),e.textContent="",r.onPaste(ce)||ce.preventDefault(),ce.stopImmediatePropagation()},{signal:X}),e.addEventListener("cut",ce=>r.onCut(ce),{capture:!0,signal:X}),e.addEventListener("copy",ce=>r.onCopy(ce),{capture:!0,signal:X}),e.addEventListener("blur",ce=>{var Pe,nt;if(((nt=(Pe=ce.relatedTarget)==null?void 0:Pe._mathfield)==null?void 0:nt.element)===t){e.focus({preventScroll:!0}),ce.preventDefault(),ce.stopPropagation();return}const vt=Hc.state;if(vt==="open"||vt==="opening"){ce.preventDefault(),ce.stopPropagation();return}if(ce.relatedTarget===ce.target.getRootNode().host){ce.preventDefault(),ce.stopPropagation();return}k||u||(k=!0,i=null,s=null,r.onBlur(),k=!1)},{capture:!0,signal:X}),e.addEventListener("focus",ce=>{k||u||(u=!0,r.onFocus(),u=!1)},{capture:!0,signal:X}),{dispose:()=>j.abort(),cancelComposition:()=>{c&&(e.blur(),requestAnimationFrame(()=>e.focus({preventScroll:!0})))},blur:()=>{typeof e.blur=="function"&&e.blur()},focus:()=>{!u&&typeof e.focus=="function"&&e.focus({preventScroll:!0})},hasFocus:()=>md()===e,setAriaLabel:ce=>e.setAttribute("aria-label",ce),setValue:ce=>{var Pe;e.textContent=ce,e.style.left="-1000px",(Pe=window.getSelection())==null||Pe.selectAllChildren(e)},moveTo:(ce,Pe)=>{e.style.top=`${Pe}px`,e.style.left=`${ce}px`}}}function Qh(e){var t;if(!e||!JA(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 Kh(e){e=pd(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 lm(e){if(O()){const t=q(),r=e.startsWith("!"),i=e.endsWith(t);if(r&&!i||!r&&i)return!0}return e==="!other"?!1:e==="other"}function bg(e,t,r){if(e.length===0)return"";const i=Xa(ko(Kh(r))),s=Xa({key:r.key,shift:r.shiftKey,alt:r.altKey,ctrl:r.ctrlKey,meta:r.metaKey||r.ctrlKey&&/macos|ios/.test(q()),cmd:!1,win:!1});for(let c=e.length-1;c>=0;c--)if((e[c].key===i||e[c].key===s)&&(!e[c].ifMode||e[c].ifMode===t))return e[c].command;return""}function Gm(e){let t=e;return _(t)&&(t=t.length>0?t[0]+"("+t.slice(1).join("")+")":""),t}function yg(e,t){let r=[];if(typeof t=="string"){const c=Gp[t];_(c)?r=c.slice():c&&r.push(c)}const i=Gm(t),s=new RegExp("^"+i.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const c of e)s.test(Gm(c.command))&&r.push(c.key);return r.map(uu)}function Xm(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=ko(e.key);let i=e.ifPlatform;if(r.cmd){if(i&&i!=="macos"&&i!=="ios")throw new Error('Unexpected "cmd" modifier with platform "'+i+`"
"cmd" modifier can only be used with macOS or iOS platform.`);i||(i=q()==="ios"?"ios":"macos"),r.win=!1,r.cmd=!1,r.meta=!0}if(r.win){if(i&&i!=="windows")throw new Error('Unexpected "win" modifier with platform "'+i+`"
"win" modifier can only be used with Windows platform.`);i="windows",r.win=!1,r.cmd=!1,r.meta=!0}if(i&&!lm(i))return;if(/^\[.+\]$/.test(r.key))return F(g({},e),{key:Xa(r)});const s=_c(r.key,t);if(!s)return F(g({},e),{key:Xa(r)});if(s.shift&&r.shift||s.alt&&r.alt)throw new Error(`The keybinding ${e.key} (${cm(e.command)}) is conflicting with the key combination ${Xa(s)} using the ${t.displayName} keyboard layout`);return s.shift=s.shift||r.shift,s.alt=s.alt||r.alt,s.meta=r.meta,s.ctrl=r.ctrl,F(g({},e),{key:Xa(s)})}function cm(e){if(Array.isArray(e)){const t=[...e];return t.shift()+"("+t.map(r=>typeof r=="string"?`"${r}"`:r.toString()).join(", ")+")"}return e}function Jg(e,t){const r=[],i=[];for(const s of e)try{const c=Xm(s,t);if(!c)continue;const u=i.find(k=>k.key===c.key&&k.ifMode===c.ifMode);if(u)throw new Error(`Ambiguous key binding ${s.key} (${cm(s.command)}) matches ${u.key} (${cm(u.command)}) with the ${t.displayName} keyboard layout`);i.push(c)}catch(c){c instanceof Error&&r.push(c.message)}return[i,r]}var wg=class extends Ls{constructor(){super("latex")}createAtom(e){return new Ol(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"}),Il(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:i}=e;r.silenceNotifications&&(e.silenceNotifications=!0);const s=e.silenceNotifications;e.silenceNotifications=!0,r.insertionMode==="replaceSelection"&&!e.selectionIsCollapsed?e.deleteAtoms(Jl(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 c=[];for(const j of t)I.test(j)&&c.push(new Ol(j));let u=e.at(e.position);if(u instanceof _f&&(u=u.lastChild),!(u.parent instanceof _f)){const j=new _f("");u.parent.addChildAfter(j,u),u=j.firstChild}const k=u.parent.addChildrenAfter(c,u);return e.silenceNotifications=s,r.selectionMode==="before"||(r.selectionMode==="item"?e.setSelection(e.anchor,e.offsetOf(k)):k&&(e.position=e.offsetOf(k))),e.contentDidChange({data:t,inputType:"insertText"}),e.silenceNotifications=i,!0}};function xg(e){return e.atoms.find(t=>t.type==="latexgroup")}function z0(e){var t,r;const i=e.atoms.find(s=>s.type==="latexgroup");return i?(r=(t=i.body)==null?void 0:t.filter(s=>s.type==="latex"))!=null?r:[]:[]}function Jm(e,t){var r;let i=0,s=!1;const c=Number.isFinite(t==null?void 0:t.before)?(r=t==null?void 0:t.before)!=null?r:0:e.lastOffset;for(;i<=c&&!s;){const j=e.at(i);s=j instanceof Ol&&j.isSuggestion,s||i++}if(!s)return[void 0,void 0];let u=i,k=!1;for(;u<=c&&!k;){const j=e.at(u);k=!(j instanceof Ol&&j.isSuggestion),k||u++}return[i-1,u-1]}new wg;function Am(e){const t=z0(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 Ep(e,t){var r;const{model:i}=e;Am(e);for(const ce of z0(i))ce.isError=!1;if(!i.selectionIsCollapsed||e.options.popoverPolicy==="off"){kA(e);return}const s=[];let c=i.at(i.position);for(;c&&c instanceof Ol&&/^[a-zA-Z\*]$/.test(c.value);)c=c.leftSibling;if(c&&c instanceof Ol&&c.value==="\\")for(s.push(c),c=c.rightSibling;c&&c instanceof Ol&&/^[a-zA-Z\*]$/.test(c.value);)s.push(c),c=c.rightSibling;const u=s.map(ce=>ce.value).join(""),k=ie(e,u);if(k.length===0){if(/^\\[a-zA-Z\*]+$/.test(u))for(const ce of s)ce.isError=!0;kA(e);return}const j=(r=t==null?void 0:t.atIndex)!=null?r:0;e.suggestionIndex=j<0?k.length-1:j%k.length;const X=k[e.suggestionIndex];if(X!==u){const ce=s[s.length-1];ce.parent.addChildrenAfter([...X.slice(u.length-X.length)].map(Pe=>new Ol(Pe,{isSuggestion:!0})),ce),jh(e,{interactive:!0})}qm(e,k)}function um(e){const[t,r]=Jm(e,{before:e.position});if(t===void 0||r===void 0)return!1;let i=!1;return e.getAtoms([t,r]).forEach(s=>{s.isSuggestion&&(s.isSuggestion=!1,i=!0)}),i}function Hh(e,t="accept",r){var i,s;kA(e);const c=xg(e.model);if(!c)return!1;if(t==="accept-suggestion"||t==="accept-all"){const X=z0(e.model).filter(ce=>ce.isSuggestion);if(X.length!==0){for(const ce of X)ce.isSuggestion=!1;e.model.position=e.model.offsetOf(X[X.length-1])}if(t==="accept-suggestion")return X.length!==0}const k=z0(e.model).filter(X=>!X.isSuggestion).map(X=>X.value).join(""),j=c.leftSibling;return c.parent.removeChild(c),e.model.position=e.model.offsetOf(j),e.switchMode((i=r==null?void 0:r.mode)!=null?i:"math"),t==="reject"||(Ls.insert(e.model,k,{selectionMode:(s=r==null?void 0:r.selectItem)!=null&&s?"item":"placeholder",format:"latex",mode:"math"}),e.snapshot(),e.model.announce("replacement"),e.switchMode("math")),!0}function _p(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 Ym(e){var t;const r=document.getElementById(e);if(!r)return;const i=Number.parseInt((t=r.getAttribute("data-refcount"))!=null?t:"0");i<=1?r.remove():r.dataset.refcount=Number(i-1).toString()}function Cg(e,t){const r=new Eo({from:e.context}),i=new Ur({mode:"math",type:"root",body:hc(t,{context:r})}),s=mf(sl(new zr(i.render(r),{classes:"ML__base"}),r));return Wf(s,{classes:"ML__latex"}).toMarkup()}function qm(e,t){var r;if(t.length===0){kA(e);return}let i="";for(const[c,u]of t.entries()){const k=u,j=Cg(e,u),X=yg(e.keybindings,k).join("<br>");i+=`<li role="button" data-command="${k}" ${c===e.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${k}</span><span class="ML__popover__command">${j}</span>`,X&&(i+=`<span class="ML__popover__keybinding">${X}</span>`),i+="</li>"}const s=lh(e,`<ul>${i}</ul>`);du()&&((r=s.querySelector(".ML__popover__current"))==null||r.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var c;s&&!du()&&(s.classList.add("is-visible"),Ip(e),(c=s.querySelector(".ML__popover__current"))==null||c.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function du(){const e=document.getElementById("mathlive-suggestion-popover");return e?e.classList.contains("is-visible"):!1}function Ip(e,t){var r;if(!e.element||e.element.mathfield!==e||!du())return;if(((r=e.model.at(e.model.position))==null?void 0:r.type)!=="latex"){kA(e);return}if(t!=null&&t.deferred){setTimeout(()=>Ip(e),32);return}const i=th(e.field);if(!i)return;const s=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,u=window.innerWidth-document.documentElement.clientWidth,k=window.innerHeight-document.documentElement.clientHeight,j=window.mathVirtualKeyboard.boundingRect.height,X=document.getElementById("mathlive-suggestion-popover");i.x+X.offsetWidth/2>c-u?X.style.left=`${c-X.offsetWidth-u}px`:i.x-X.offsetWidth/2<0?X.style.left="0":X.style.left=`${i.x-X.offsetWidth/2}px`;const ce=i.y-i.height;s-k-j-i.y<ce?(X.classList.add("ML__popover--reverse-direction"),X.classList.remove("top-tip"),X.classList.add("bottom-tip"),X.style.top=`${i.y-i.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=`${i.y+15}px`)}function kA(e){e.suggestionIndex=0;const t=document.getElementById("mathlive-suggestion-popover");t&&(t.classList.remove("is-visible"),t.innerHTML="")}function lh(e,t){let r=document.getElementById("mathlive-suggestion-popover");return r||(r=_p("mathlive-suggestion-popover"),ud("suggestion-popover"),ud("core"),r.addEventListener("pointerdown",i=>i.preventDefault()),r.addEventListener("click",i=>{let s=i.target;for(;s&&!s.dataset.command;)s=s.parentElement;s&&(Hh(e,"reject"),Ls.insert(e.model,s.dataset.command,{selectionMode:"placeholder",format:"latex",mode:"math"}),e.dirty=!0,e.focus())})),r.innerHTML=window.MathfieldElement.createHTML(t),r}function Yg(){document.getElementById("mathlive-suggestion-popover")&&(Ym("mathlive-suggestion-popover"),dd("suggestion-popover"),dd("core"))}function qg(){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 fu=null,Bg,eg,dm=((eg=(Bg=globalThis==null?void 0:globalThis.document)==null?void 0:Bg.currentScript)==null?void 0:eg.src)||qg();function Sg(e){return hp(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(e))return new URL(e).href;if(fu===null)try{const t=yield fetch(dm,{method:"HEAD"});t.status===200&&(fu=t.url)}catch(t){console.error(`Invalid URL "${e}" (relative to "${dm}")`)}return new URL(e,fu!=null?fu:dm).href})}function e1(e,t,r={}){return new FontFace(e,`url(${t}.woff2) format('woff2')`,r)}var hu="not-loaded";function t1(){return hp(this,null,function*(){return hu="not-loaded",fm()})}function fm(){return hp(this,null,function*(){var e;if(hu!=="not-loaded")return;if(hu="loading",(e=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?e:!1){hu="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"],i=Array.from(document.fonts).map(u=>u.family);if(r.every(u=>i.includes(u))){hu="ready";return}if(!window.MathfieldElement.fontsDirectory){hu="not-loaded";return}const s=yield Sg(window.MathfieldElement.fontsDirectory);if(!s){document.body.classList.add("ML__fonts-did-not-load"),hu="error";return}const c=[["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(u=>e1(u[0].replace(/-[a-zA-Z]+$/,""),`${s}/${u[0]}`,u[1]));try{(yield Promise.all(c.map(k=>{try{return k.load()}catch(j){}}))).forEach(k=>document.fonts.add(k)),hu="ready";return}catch(u){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${s}"`,{cause:u}),document.body.classList.add("ML__fonts-did-not-load")}hu="error"}})}function r1(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 Il(e,t){e&&(e.dirty||(e.dirty=!0,requestAnimationFrame(()=>{cd(e)&&e.dirty&&(e.atomBoundsCache=new Map,jh(e,t),e.atomBoundsCache=void 0)})))}function Eg(e,t){var r;t=t!=null?t:{};const i=new Eo({from:F(g({},e.context),{atomIdsSettings:{seed:t.forHighlighting?r1(Ur.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"}),s=e.model.root.render(i);return Wf(sl(s,i),{classes:e.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function _g(e,t){const{model:r}=e;r.root.caret=void 0,r.root.isSelected=!1,r.root.containsCaret=!0;for(const s of r.atoms)s.caret=void 0,s.isSelected=!1,s.containsCaret=!1;if(r.selectionIsCollapsed){const s=r.at(r.position);s.caret=e.model.mode;let c=s.parent;for(;c;)c.containsCaret=!0,c=c.parent}else{const s=r.getAtoms(r.selection,{includeChildren:!0});for(const c of s)c.isSelected=!0}return Eg(e,t).toMarkup()}function jh(e,t){if(!cd(e))return;t!=null||(t={});const r=e.element.querySelector("[part=virtual-keyboard-toggle]");r&&(r.style.display=e.hasEditableContent?"":"none");const i=e.field;if(!i)return;const s=e.isSelectionEditable&&e.hasFocus(),c=i.classList.contains("ML__focused");c&&!s?i.classList.remove("ML__focused"):!c&&s&&i.classList.add("ML__focused");let u=_g(e,t);const k=e.element.querySelector("[part=menu-toggle]");if(k&&(e.model.atoms.length<=1||e.disabled||e.readOnly&&!e.hasEditableContent||e.userSelect==="none"?k.style.display="none":k.style.display=""),e.model.atoms.length<=1){const j=e.options.contentPlaceholder;j&&(u+=`<span part=placeholder class="ML__content-placeholder">${Ul(j)}</span>`)}i.innerHTML=window.MathfieldElement.createHTML(u),hm(e,t.interactive),e.dirty=!1}function hm(e,t){const r=e.field;if(!r)return;for(const k of r.querySelectorAll(".ML__selection, .ML__contains-highlight"))k.remove();!(t!=null&&t)&&hu!=="error"&&hu!=="ready"&&setTimeout(()=>{hu==="ready"?hm(e):setTimeout(()=>hm(e),128)},32);const i=e.model,s=r.offsetWidth,c=r.getBoundingClientRect().width;let u=Math.floor(c)/s;if(u=isNaN(u)?1:u,i.selectionIsCollapsed){Ip(e,{deferred:!0});let k=i.at(i.position);for(;k&&k.type!=="prompt"&&!(k.containsCaret&&k.displayContainsHighlight);)k=k.parent;if(k!=null&&k.containsCaret&&k.displayContainsHighlight){const j=rh(e,nh(e,k),u);if(j){j.left/=u,j.right/=u,j.top/=u,j.bottom/=u;const X=document.createElement("div");X.classList.add("ML__contains-highlight"),X.style.position="absolute",X.style.left=`${j.left+1}px`,X.style.top=`${Math.ceil(j.top)}px`,X.style.width=`${Math.ceil(j.right-j.left)}px`,X.style.height=`${Math.ceil(j.bottom-j.top)}px`,r.insertBefore(X,r.childNodes[0])}}return}for(const k of n1(Rm(e,{excludeAtomsWithBackground:!0}))){k.left/=u,k.right/=u,k.top/=u,k.bottom/=u;const j=document.createElement("div");j.classList.add("ML__selection"),j.style.position="absolute",j.style.left=`${k.left}px`,j.style.top=`${k.top}px`,j.style.width=`${Math.ceil(k.right-k.left)}px`,j.style.height=`${Math.ceil(k.bottom-k.top-1)}px`,r.insertBefore(j,r.childNodes[0])}}function n1(e){let t=[];for(const r of e){let i=!1;for(const s of t)if(r.left===s.left&&r.right===s.right&&r.top===s.top&&r.bottom===s.bottom){i=!0;break}i||t.push(r)}e=t,t=[];for(const r of e){let i=0;for(const s of e)if(r.left>=s.left&&r.right<=s.right&&r.top>=s.top&&r.bottom<=s.bottom&&(i+=1,i>1))break;i===1&&t.push(r)}return t}var Ig=3,n;function o(e,t){t=g({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},t!=null?t:{}),n||(n={});for(const r of Object.keys(e))console.assert(!n[r],"Selector already defined: ",r),n[r]=F(g({},t),{fn:e[r]})}function a(e){let t;if(Array.isArray(e)){if(e[0]==="performWithFeedback")return a(e[1]);t=e[0]}else t=e;return t=t.replace(/-\w/g,r=>r[1].toUpperCase()),n[t]}function l(e){var t;return(t=a(e))==null?void 0:t.target}function A(e,t){var r;if(!t)return!1;let i,s=[],c=!1,u=!1;_(t)?(i=t[0],s=t.slice(1)):i=t,i=i.replace(/-\w/g,X=>X[1].toUpperCase());const k=n[i],j=k==null?void 0:k.target;if(j==="model"){if(!e.isSelectionEditable&&(k!=null&&k.changeContent))return e.model.announce("plonk"),!1;/^(delete|add)/.test(i)&&(i!=="deleteBackward"&&e.flushInlineShortcutBuffer(),e.snapshot(i)),/^complete/.test(i)||Am(e),n[i].fn(e.model,...s),Ep(e),u=!0,c=!0}else if(j==="virtual-keyboard")u=(r=window.mathVirtualKeyboard.executeCommand(t))!=null?r:!1,c=!0;else if(n[i]){if(!e.isSelectionEditable&&(k!=null&&k.changeContent))return e.model.announce("plonk"),!1;/^(undo|redo)/.test(i)&&e.flushInlineShortcutBuffer(),u=n[i].fn(e,...s),c=!0}else throw new Error(`Unknown command "${i}"`);return j!=="virtual-keyboard"&&(!e.model.selectionIsCollapsed||k!=null&&k.changeSelection&&t!=="deleteBackward")&&(e.flushInlineShortcutBuffer(),k!=null&&k.changeContent||e.stopCoalescingUndo(),e.defaultStyle={}),u&&Il(e),c}function m(e,t){var r;if(!e)return!1;e.focus(),Tg.keypressVibration&&L()&&navigator.vibrate(Ig);const i=a(t);window.MathfieldElement.playSound((r=i==null?void 0:i.audioFeedback)!=null?r:"keypress");const s=e.executeCommand(t);return e.scrollIntoView(),s}o({performWithFeedback:(e,t)=>m(e,t)});function N(e){return Ep(e,{atIndex:e.suggestionIndex+1}),!1}function E(e){return Ep(e,{atIndex:e.suggestionIndex-1}),!1}o({complete:Hh},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),o({nextSuggestion:N,previousSuggestion:E},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var U="mathlive#virtual-keyboard-message";function Z(e){var t;return e.type!=="message"?!1:((t=e.data)==null?void 0:t.type)===U}var oe=class Av{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 Av),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,i){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,i){this.listeners[t]&&this.listeners[t].delete(r)}handleEvent(t){if(Z(t)){if(!kh(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:i}=t;l(i)==="virtual-keyboard"&&this.executeCommand(i);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(g({type:U,action:t},r),this.targetOrigin)}},Re={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]"]]}},Ze={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"}]},ae;function mt(e,t){var r,i,s;const c=Qr.singleton;if(!c)return;const u=_r(e),k=(i=(r=c.getKeycap(u==null?void 0:u.id))==null?void 0:r.variants)!=null?i:"";if(typeof k=="string"&&!st(k)||Array.isArray(k)&&k.length===0){t==null||t();return}const j={};let X="";for(const Cr of Gt(k)){const _n=En(Cr),wr=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);j[wr]=_n;const[nn,Ln]=Gr(_n);X+=`<div id=${wr} class="item ${Ln}">${nn}</div>`}const ce=document.createElement("div");ce.setAttribute("aria-hidden","true"),ce.className="MLK__variant-panel",ce.style.height="auto";const Pe=Object.keys(j).length;let nt=5;Pe===1?nt=1:Pe===2||Pe===4?nt=2:Pe===3||Pe===5||Pe===6?nt=3:Pe>=7&&Pe<14&&(nt=4),ce.style.width=`calc(var(--variant-keycap-length) * ${nt} + 12px)`,ce.innerHTML=Tg.createHTML(X),Hc.open({root:(s=c==null?void 0:c.container)==null?void 0:s.querySelector(".ML__keyboard"),child:ce}),ae=new AbortController;const{signal:vt}=ae,St=e==null?void 0:e.getBoundingClientRect();if(St){St.top-ce.clientHeight<0&&(ce.style.width="auto",Pe<=6?ce.style.height="56px":Pe<=12?ce.style.height="108px":Pe<=18?ce.style.height="205px":ce.classList.add("compact"));const Cr=Math.max(0,Math.min(window.innerWidth-ce.offsetWidth,(St.left+St.right-ce.offsetWidth)/2)),_n=St.top-ce.clientHeight+5;ce.style.transform=`translate(${Cr}px, ${_n}px)`,ce.classList.add("is-visible"),requestAnimationFrame(()=>{ce.addEventListener("pointerup",wr=>{const nn=_r(wr.target);!(nn!=null&&nn.id)||!j[nn.id]||(qt(j[nn.id]),ut(),t==null||t(),wr.preventDefault())},{capture:!0,passive:!1,signal:vt}),ce.addEventListener("pointerenter",wr=>{const nn=_r(wr.target);!(nn!=null&&nn.id)||!j[nn.id]||nn.classList.add("is-active")},{capture:!0,signal:vt}),ce.addEventListener("pointerleave",wr=>{const nn=_r(wr.target);!(nn!=null&&nn.id)||!j[nn.id]||nn.classList.remove("is-active")},{capture:!0,signal:vt}),window.addEventListener("pointercancel",()=>{ut(),t==null||t()},{signal:vt}),window.addEventListener("pointerup",()=>{ut(),t==null||t()},{signal:vt})})}}function ut(){ae==null||ae.abort(),ae=null,Hc.state==="open"&&Hc.close()}function yt(e){if(e==="foreground-color"){const t=[];for(const r of Object.keys(me))t.push({class:"swatch-button",label:'<span style="border: 3px solid '+me[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 st(e){return Ze[e]!==void 0}function Gt(e){var t;return typeof e!="string"?e:(Ze[e]||(Ze[e]=(t=yt(e))!=null?t:[]),Ze[e])}function Qt(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r} !important`).join(";")}function It(e){return Object.keys(e).map(t=>`${t} {${Qt(e[t])}}`).join("")}function Ir(e){if(!e)return"";const t=new Eo,r=new Ur({mode:"math",type:"root",body:hc(e,{context:t,args:s=>s==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),i=mf(sl(new zr(r.render(t),{classes:"ML__base"}),t));return Wf(i,{classes:"ML__latex"}).toMarkup()}function rn(e){var t;if(Array.isArray(e))return e.map(i=>rn(i)).flat();const r=typeof e=="string"?{markup:e}:e;return"rows"in r&&Array.isArray(r.rows)&&(r.rows=r.rows.map(i=>i.map(s=>En(s)))),(t=r.id)!=null||(r.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36)),[r]}function Wr(){var e,t;let i=window.mathVirtualKeyboard.alphabeticLayout;if(i==="auto"){const k=Au();k&&(i=k.virtualLayout),(!i||i==="auto")&&(i=(e={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[ne.locale.slice(0,2)])!=null?e:"qwerty")}const s={qwerty:["qwertyuiop"," asdfghjkl ","^zxcvbnm~"],azerty:["azertyuiop","qsdfghjklm","^ wxcvbn ~"],qwertz:["qwertzuiop"," asdfghjkl ","^yxcvbnm~"],dvorak:["^ pyfgcrl ","aoeuidhtns","qjkxbmwvz~"],colemak:[" qwfpgjluy ","arstdhneio","^zxcvbkm~"]},c=(t=s[i])!=null?t:s.qwerty,u=i==="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 k of c){const j=[];for(const X of k)/[a-z]/.test(X)?j.push({label:X,class:"hide-shift",shift:{label:X.toUpperCase()},variants:st(X)?X:void 0}):X==="~"?i!=="dvorak"?j.push("[backspace]"):j.push({label:"[backspace]",width:1}):X==="^"?j.push("[shift]"):X===" "&&j.push("[separator-5]");u.push(j)}return u.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:rn({rows:u})}}function or(e){if(e==="alphabetic")return Wr();if(typeof e=="string")return console.assert(Re[e]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${e}"`),or(Re[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 s=e,{rows:c}=s,u=$(s,["rows"]);t=F(g({},u),{layers:rn({rows:e.rows})})}else if("markup"in e&&typeof e.markup=="string"){const s=e,{markup:c}=s,u=$(s,["markup"]);t=F(g({},u),{layers:rn(e.markup)})}else t=g({},e),"layers"in e?t.layers=rn(e.layers):console.error('MathLive 0.98.5: provide either a "rows", "markup" or "layers" property');let r=!1,i=!1;for(const s of t.layers)if(s.rows)for(const c of s.rows.flat()){$r(c)&&(r=!0);const u=c.command;typeof u=="string"&&["undo","redo","cut","copy","paste"].includes(u)&&(i=!0)}return(!("displayShiftedKeycaps"in e)||e.displayShiftedKeycaps===void 0)&&(t.displayShiftedKeycaps=r),(!("displayEditToolbar"in e)||e.displayEditToolbar===void 0)&&(t.displayEditToolbar=!i),t}function Lt(e,t){var r,i;let s='<div class="left">';if(e.normalizedLayouts.length>1)for(const[c,u]of e.normalizedLayouts.entries()){const k=u,j=[c===t?"selected":"layer-switch"];k.tooltip&&j.push("MLK__tooltip"),k.labelClass&&j.push(...k.labelClass.split(" ")),s+=`<div class="${j.join(" ")}"`,k.tooltip&&(s+=" data-tooltip='"+((r=J(k.tooltip))!=null?r:k.tooltip)+"' "),c!==t&&(s+=`data-layer="${k.layers[0].id}"`),s+=`>${(i=k.label)!=null?i:"untitled"}</div>`}return s+="</div>",s}function xr(e,t){let r="";if(e.editToolbar==="none")return"";const s=[];t.selectionIsCollapsed?s.push("undo","redo","pasteFromClipboard"):s.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const c={undo:`<div class='action ${t.canUndo===!1?"disabled":""}'
data-command='"undo"'
data-tooltip='${J("tooltip.undo")}'>
<svg><use xlink:href='#svg-undo' /></svg>
</div>`,redo:`<div class='action ${t.canRedo===!1?"disabled":""}'
data-command='"redo"'
data-tooltip='${J("tooltip.redo")}'>
<svg><use xlink:href='#svg-redo' /></svg>
</div>`,cutToClipboard:`
<div class='action'
data-command='"cutToClipboard"'
data-tooltip='${J("tooltip.cut to clipboard")}'>
<svg><use xlink:href='#svg-cut' /></svg>
</div>
`,copyToClipboard:`
<div class='action'
data-command='"copyToClipboard"'
data-tooltip='${J("tooltip.copy to clipboard")}'>
<svg><use xlink:href='#svg-copy' /></svg>
</div>
`,pasteFromClipboard:`
<div class='action'
data-command='"pasteFromClipboard"'
data-tooltip='${J("tooltip.paste from clipboard")}'>
<svg><use xlink:href='#svg-paste' /></svg>
</div>
`};return r+=s.map(u=>c[u]).join(""),r}function it(e){for(const t of e)wt(t)}function wt(e){const t=Qr.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(i){}e.id=t.registerKeycap(r)}if(!e.innerHTML){const[i,s]=Gr(r);e.innerHTML=window.MathfieldElement.createHTML(i)}}function Wt(){ud("virtual-keyboard"),ud("core"),fm()}function jt(){dd("core"),dd("virtual-keyboard")}var Tr=`<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 Zr(e){e.resetKeycapRegistry(),Wt();const t=document.createElement("div");t.className="ML__keyboard";const r=document.createElement("div");r.className="MLK__plate",r.innerHTML=window.MathfieldElement.createHTML(Tr+e.normalizedLayouts.map((u,k)=>Jr(e,u,k)).join(""));const i=document.createElement("div");i.className="MLK__backdrop",i.appendChild(r),t.appendChild(i),t.addEventListener("pointerdown",_t,{passive:!1});const s=t.querySelectorAll(".ML__edit-toolbar");if(s)for(const u of s)u.addEventListener("click",k=>{var j,X;let ce=k.target,Pe="";for(;ce&&!Pe;)Pe=(j=ce==null?void 0:ce.getAttribute("data-command"))!=null?j:"",ce=(X=ce==null?void 0:ce.parentElement)!=null?X:null;Pe&&e.executeCommand(JSON.parse(Pe))});it(t.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const c=t.querySelectorAll(".MLK__layer");console.assert(c.length>0,"No virtual keyboards available");for(const u of c)u.addEventListener("pointerdown",k=>k.preventDefault());return e.currentLayer=e.latentLayer,t}function Jr(e,t,r){const i=[];if(!("layers"in t))return"";for(const s of t.layers)i.push(`<div tabindex="-1" class="MLK__layer" id="${s.id}">`),(e.normalizedLayouts.length>1||t.displayEditToolbar)&&(i.push("<div class='MLK__toolbar' role='toolbar'>"),i.push(Lt(e,r)),t.displayEditToolbar&&i.push('<div class="ML__edit-toolbar right"></div>'),i.push("</div>")),i.push(Mr(e,s)),i.push("</div>");return i.join("")}function Mr(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>${It(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 i of t.rows){r+="<div dir='ltr' class=MLK__row>";for(const s of i)if(s){const c=e.registerKeycap(s),[u,k]=Gr(s);/(^|\s)separator/.test(k)?r+=`<div class="${k}"`:r+=`<div tabindex="-1" id="${c}" class="${k}"`,s.tooltip&&(r+=` data-tooltip="${s.tooltip}"`),r+=`>${u}</div>`}r+="</div>"}r+="</div>"}else t.markup&&(r+=t.markup);return t.container&&(r+="</div>"),t.backdrop&&(r+="</div>"),r}function Gr(e,t={shifted:!1}){var r,i,s,c,u,k,j;let X="",ce=(r=e.class)!=null?r:"";if(t.shifted&&$r(e)&&(ce+=" is-active"),t.shifted&&"shift"in e)typeof e.shift=="string"?X=Ir(e.shift):typeof e.shift=="object"&&(X=e.shift.label?e.shift.label:(i=Ir(e.shift.latex||e.shift.insert||"")||e.shift.key)!=null?i:""),typeof e.shift=="object"&&(ce=(c=(s=e.shift.class)!=null?s:e.class)!=null?c:"");else{if(X=e.label?e.label:(u=Ir(e.latex||e.insert||"")||e.key)!=null?u:"",e.shift){let Pe;typeof e.shift=="string"?Pe=Ir(e.shift):e.shift.label?Pe=e.shift.label:Pe=(k=Ir(e.shift.latex||e.shift.insert||"")||e.shift.key)!=null?k:"",X+=`<span class="MLK__shift">${Pe}</span>`}e.aside&&(X+=`<aside>${e.aside}</aside>`)}return e.layer&&!/layer-switch/.test(ce)&&(ce+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(ce)||(ce+=" MLK__keycap"),!/\bw[0-9]+\b/.test(ce)&&e.width&&(ce+=(j={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[e.width])!=null?j:""),[X,ce||"MLK__keycap"]}var Zn={"[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 En(e){var t;if(typeof e=="string"){if(e==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(e="[,]"),!Zn[e])return{latex:e};e={label:e}}let r;return"label"in e&&e.label&&Zn[e.label]&&(r=F(g(g({},Zn[e.label]),e),{label:Zn[e.label].label})),"key"in e&&e.key&&Zn[e.key]&&(r=F(g(g({},Zn[e.key]),e),{key:Zn[e.key].key})),r?(r.command==="insertDecimalSeparator"&&(r.label=(t=window.MathfieldElement.decimalSeparator)!=null?t:"."),e.label==="[action]"&&(r=g(g({},r),window.mathVirtualKeyboard.actionKeycap)),e.label==="[shift]"&&(r=g(g({},r),window.mathVirtualKeyboard.shiftKeycap)),e.label==="[backspace]"&&(r=g(g({},r),window.mathVirtualKeyboard.backspaceKeycap)),e.label==="[tab]"&&(r=g(g({},r),window.mathVirtualKeyboard.tabKeycap)),r):e}var tt;function _t(e){var t;if(e.button!==0)return;const r=Qr.singleton;if(!r)return;let i=e.target;for(;i&&!i.getAttribute("data-layer");)i=i.parentElement;if(i){r.currentLayer=(t=i.getAttribute("data-layer"))!=null?t:"",e.preventDefault();return}const s=_r(e.target);if(!(s!=null&&s.id))return;const c=r.getKeycap(s.id);if(!c)return;console.assert(e.type==="pointerdown");const u=new AbortController,k=u.signal;s.classList.add("is-pressed"),s.addEventListener("pointerenter",Dt(u),{capture:!0,signal:k}),s.addEventListener("pointerleave",Dt(u),{capture:!0,signal:k}),s.addEventListener("pointercancel",Dt(u),{signal:k}),s.addEventListener("pointerup",Dt(u),{signal:k}),$r(c)&&(s.classList.add("is-active"),r.shiftPressCount++),c.variants&&(tt&&clearTimeout(tt),tt=setTimeout(()=>{s.classList.contains("is-pressed")&&(s.classList.remove("is-pressed"),s.classList.add("is-active"),e.target&&"releasePointerCapture"in e.target&&e.target.releasePointerCapture(e.pointerId),mt(s,()=>{u.abort(),s==null||s.classList.remove("is-active")}))},300)),e.preventDefault()}function Dt(e){return t=>{const r=_r(t.target);if(!(r!=null&&r.id))return;const i=Qr.singleton;if(!i)return;const s=i.getKeycap(r.id);if(s){if(t.type==="pointerenter"&&t.target===r&&t.isPrimary&&r.classList.add("is-pressed"),t.type==="pointercancel"){r.classList.remove("is-pressed"),$r(s)&&(i.shiftPressCount--,r.classList.toggle("is-active",i.isShifted)),e.abort();return}if(t.type==="pointerleave"&&t.target===r){r.classList.remove("is-pressed"),$r(s)&&(i.shiftPressCount--,r.classList.toggle("is-active",i.isShifted));return}if(t.type==="pointerup"){tt&&clearTimeout(tt),$r(s)?r.classList.toggle("is-active",i.isShifted):r.classList.contains("is-pressed")&&(r.classList.remove("is-pressed"),i.isShifted&&s.shift?typeof s.shift=="string"?i.executeCommand(["insert",s.shift,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]):qt(s.shift):qt(s),i.shiftPressCount===1&&!t.shiftKey&&(i.shiftPressCount=0)),e.abort(),t.preventDefault();return}}}}function qt(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=Qr.singleton)==null||t.executeCommand(r)}function dr(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 _r(e){if(!e)return;let t=e;for(;t&&!dr(t);)t=t.parentElement;return t!=null?t:void 0}function $r(e){return!!e.class&&/(^|\s)shift($|\s)/.test(e.class)}var Qr=class uv{constructor(){this.originalContainerBottomPadding=null,this.keycapRegistry={},this._shiftPressCount=0;var t,r,i;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(s=>{this.adjustBoundingRect(),this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect})}),this.listeners={};try{(i=window.top)==null||i.addEventListener("message",this)}catch(s){window.addEventListener("message",this)}document.body.addEventListener("focusin",s=>{const c=s.target;c!=null&&c.isConnected&&setTimeout(()=>{const u=gn();u&&!u.readOnly&&u.mathVirtualKeyboardPolicy==="auto"&&T()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",s=>{s.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{gn()||this.hide()},300)})}get currentLayer(){var t,r,i;return(i=(r=(t=this._element)==null?void 0:t.querySelector(".MLK__layer.is-visible"))==null?void 0:r.id)!=null?i:""}set currentLayer(t){var r;if(!this._element){this.latentLayer=t;return}let i=t?this._element.querySelector(`#${t}.MLK__layer`):null;i||(i=this._element.querySelector(".MLK__layer")),i&&((r=this._element.querySelector(".MLK__layer.is-visible"))==null||r.classList.remove("is-visible"),i.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 i of r)for(const s of i.layers)if(s.id===t)return s}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],i=r.findIndex(s=>s==="default");i>=0&&r.splice(i,1,"numeric","symbols","alphabetic","greek"),this._layouts=Object.freeze(r),this._normalizedLayouts=r.map(s=>or(s))}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 uv}catch(t){this._singleton=null}return this._singleton}get style(){return this._style}addEventListener(t,r,i){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,i){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 i=this.boundingRect.height;if(this.container===document.body){(t=this._element)==null||t.style.setProperty("--_keyboard-height",`calc(${i}px + var(--_padding-top) + var(--_padding-bottom) + env(safe-area-inset-bottom, 0))`);const s=i-1;this.container.style.paddingBottom=this.originalContainerBottomPadding?`calc(${this.originalContainerBottomPadding} + ${s}px)`:`${s}px`}else(r=this._element)==null||r.style.setProperty("--_keyboard-height",`${i}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 i of r){const s=this.getKeycap(i.id);if(s){const[c,u]=Gr(s,{shifted:this.isShifted});i.innerHTML=window.MathfieldElement.createHTML(c),i.className=u}}}show(t){var r;if(this._visible)return;const i=this.container;if(i&&window.mathVirtualKeyboard&&this.stateWillChange(!0)){if(this._element||(this.buildAndAttachElement(),this.adjustBoundingRect()),!this._visible){const s=this._element.getElementsByClassName("MLK__plate")[0];if(s&&this.observer.observe(s),i===window.document.body){const c=i.style.paddingBottom;this.originalContainerBottomPadding=c;const u=s.offsetHeight-1;i.style.paddingBottom=c?`calc(${c} + ${u}px)`:`${u}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 s;return(s=this._element)==null?void 0:s.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 i=this.container;if(i&&this._visible&&this.stateWillChange(!1)){if(this._visible=!1,this._element){this.latentLayer=this.currentLayer;const s=this._element.getElementsByClassName("MLK__plate")[0];s&&this.observer.unobserve(s),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}),ut(),jt(),(r=this._element)==null||r.remove(),this._element=void 0,this.originalContainerBottomPadding!==null&&(i.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=Zr(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",r=>{r.shiftKey||((r.ctrlKey||r.button===2)&&mt(r.target),r.preventDefault(),r.stopPropagation())},{capture:!0}),(t=this.container)==null||t.appendChild(this.element)}handleEvent(t){if(Z(t)){if(!kh(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:i}=t;if(i==="execute-command"){const{command:s}=t,c=l(s);if(window.top!==void 0&&c!=="virtual-keyboard")return;this.executeCommand(s);return}if((i==="connect"||i==="show")&&this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},r),i!=="disconnect"&&window===window.top){if(i==="show"){typeof t.animate!="undefined"?this.show({animate:t.animate}):this.show();return}if(i==="hide"){typeof t.animate!="undefined"?this.hide({animate:t.animate}):this.hide();return}if(i==="update-setting"){t.alphabeticLayout&&(this.alphabeticLayout=t.alphabeticLayout),t.layouts&&(this.layouts=t.layouts),t.editToolbar&&(this.editToolbar=t.editToolbar);return}if(i==="proxy-created"){this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},r);return}}}sendMessage(t,r,i){if(i||(i=this.connectedMathfieldWindow),this.targetOrigin===null||this.targetOrigin==="null"||i===window){window.dispatchEvent(new MessageEvent("message",{source:window,data:g({type:U,action:t},r)}));return}if(i)i.postMessage(g({type:U,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 s=r.command[1].split("");for(const c of s)this.dispatchEvent(new KeyboardEvent("keydown",{key:c,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:c,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 i=r.querySelectorAll(".ML__edit-toolbar");if(i)for(const s of i)s.innerHTML=xr(this,t)}update(t){this._style=t.style,this.updateToolbar(t)}connect(){this.connectedMathfieldWindow=window}disconnect(){this.connectedMathfieldWindow=void 0}executeCommand(t){let r,i=[],s=l(t);return _(t)?(r=t[0],r==="performWithFeedback"&&(t=t.slice(1),s=l(t)),i=t.slice(1)):r=t,r=r.replace(/-\w/g,c=>c[1].toUpperCase()),s==="virtual-keyboard"?n[r].fn(void 0,...i):(this.sendMessage("execute-command",{command:t}),!1)}dispose(){window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("message",this)}};function gn(){var e,t;let r=md(),i=null;for(;r;){if("host"in r&&((t=(e=r.host)==null?void 0:e.tagName)==null?void 0:t.toLowerCase())==="math-field"){i=r.host;break}r=r.parentNode}return i}if(O()&&!("mathVirtualKeyboard"in window))if(window===window.top){const e=Qr.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>e})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>oe.singleton,configurable:!0});function Qn(e){const t={};for(const r of Object.keys(e))switch(r){case"scriptDepth":const i=e.scriptDepth;if(_(i))t.scriptDepth=[i[0],i[1]];else if(typeof i=="number")t.scriptDepth=[i,i];else if(typeof i=="string"){const[c,u]=i.split(",").map(k=>parseInt(k.trim()));t.scriptDepth=[c,u]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let s=e.mathVirtualKeyboardPolicy.toLowerCase();if(s==="sandboxed"){if(window!==window.top){const c=Qr.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>c})}s="manual"}t.mathVirtualKeyboardPolicy=s;break;case"letterShapeStyle":e.letterShapeStyle==="auto"?ne.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=Fe(e.macros);break;default:_(e[r])?t[r]=[...e[r]]:typeof e[r]=="object"&&!(e[r]instanceof Element)&&r!=="computeEngine"?t[r]=g({},e[r]):t[r]=e[r]}return t}function vi(e,t){let r;typeof t=="string"?r=[t]:t===void 0?r=Object.keys(e):r=t;const i={};for(const s of r)e[s]===null?i[s]=null:_(e[s])?i[s]=[...e[s]]:typeof e[s]=="object"&&!(e[s]instanceof Element)&&s!=="computeEngine"?i[s]=g({},e[s]):i[s]=e[s];return typeof t=="string"?i[t]:i}function Fi(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:Ue,backgroundColorMap:ee,letterShapeStyle:ne.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:Wp,inlineShortcuts:pp,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:Um,value:""}}function sn(e){return e.defaultMode==="inline-math"?"math":e.defaultMode}function Ft(e,t){!e||!t||(_(e)?e.forEach(r=>Ft(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),Ft(e.body,t),Ft(e.above,t),Ft(e.below,t),Ft(e.subscript,t),Ft(e.superscript,t)))}function Wo(e,t,r,i){function s(u,k){for(const j of c)if(j.style[u]!==k)return!1;return!0}if(t=e.normalizeRange(t),t[0]===t[1])return!1;const c=e.getAtoms(t,{includeChildren:!0});i.operation==="toggle"&&(r.color&&s("color",r.color)&&(r.color="none",delete r.verbatimColor),r.backgroundColor&&s("backgroundColor",r.backgroundColor)&&(r.backgroundColor="none",delete r.verbatimBackgroundColor),r.fontFamily&&s("fontFamily",r.fontFamily)&&(r.fontFamily="none"),r.fontSeries&&s("fontSeries",r.fontSeries)&&(r.fontSeries="auto"),r.fontShape&&s("fontShape",r.fontShape)&&(r.fontShape="auto"),r.fontSize&&s("fontSize",r.fontSize)&&(r.fontSize=il),r.variant&&s("variant",r.variant)&&(r.variant="normal"),r.variantStyle&&s("variantStyle",r.variantStyle)&&(r.variantStyle=""));for(const u of c)u.applyStyle(r);return!0}function _o(e,t){const r=e.at(e.position);if(r.type==="composition")r.value=t;else{const{caret:i}=r;r.caret=void 0;const s=new om(t,{mode:r.mode});s.caret=i,r.parent.addChildAfter(s,r),e.position+=1}}function Ta(e){const t=e.at(e.position);t.type==="composition"&&(t.parent.removeChild(t),e.position-=1)}ze(["math","displaymath"],ui),ze("center",ui),fe("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(i=>["<}>","&","\\cr","\\\\","\\tabularnewline"].includes(i)))}while(!0);return e.endContext(),t.push([r]),t},createAtom:e=>new fs("lines",e.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),gt("array","{columns:colspec}",(e,t,r,i)=>new fs(e,xa(t),r,{columns:i[0],mathstyleName:"textstyle"})),gt(["equation","equation*","subequations"],"",(e,t,r)=>new fs(e,xa(t),r,{columns:[{align:"c"}]})),gt(["multline","multline*"],"",ui),gt(["align","align*","aligned","eqnarray"],"",ui),gt("split","",ui),gt(["gather","gathered"],"",ui),gt(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",ui),gt(["smallmatrix","smallmatrix*"],"[columns:colspec]",ui),gt(["cases","dcases","rcases"],"",ui);function Gn(e){for(const t of e)for(const r of t)if(r.length>0)return!1;return!0}function xa(e,t=1){return Gn(e)?Array(t).fill([[new Ur({type:"first"}),new Du]]):e.map(r=>r.length===0?[[new Ur({type:"first"})]]:r.map(i=>i.length===0?[new Ur({type:"first"})]:(i[0].type!=="first"&&i.unshift(new Ur({type:"first"})),i)))}function ui(e,t=[[[]]],r=[],i=[]){switch(t=xa(t,["split","align","align*","aligned","eqnarray"].includes(e)?2:1),e){case"math":return new fs(e,t,r,{mathstyleName:"textstyle"});case"displaymath":return new fs(e,t,r,{mathstyleName:"textstyle"});case"center":return new fs(e,t,r,{columns:[{align:"c"}]});case"multline":case"multline*":return new fs(e,t,r,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new fs(e,t,r,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new fs(e,t,r,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new fs(e,t,r,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:Ja(i[0])});case"bmatrix":case"bmatrix*":return new fs(e,t,r,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:Ja(i[0])});case"Bmatrix":case"Bmatrix*":return new fs(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:Ja(i[0])});case"vmatrix":case"vmatrix*":return new fs(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:Ja(i[0])});case"Vmatrix":case"Vmatrix*":return new fs(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:Ja(i[0])});case"matrix":case"matrix*":return new fs(e,t,r,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:Ja(i==null?void 0:i[0])});case"smallmatrix":case"smallmatrix*":return new fs(e,t,r,{mathstyleName:"scriptstyle",columns:Ja(i==null?void 0:i[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new fs(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 fs(e,t,r,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new fs(e,t,r,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let s=0;for(const k of t)s=Math.max(s,k.length);const c=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let u=2;for(;u<s;)c.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),u+=2;return c.push({gap:0}),new fs(e,t,r,{arraycolsep:0,columns:c,minColumns:2})}}return new fs(e,t,r,{mathstyleName:"textstyle"})}function Ja(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 Ma(e,t){let r=e.at(e.position);for(;r&&!(r.parent instanceof fs);)r=r.parent;if(r&&r.type==="array"&&r.environmentName,!r||!(r.parent instanceof fs)){const i=e.at(e.position);if(r=i,!r.parent.parent){let s=e.extractAtoms([e.position,e.lastOffset]),c=e.extractAtoms([0,e.position]);c.length===0&&(c=ka()),s.length===0&&(s=ka());let u;return t.endsWith("column")?(u=ui("split",[[c,s]]),e.root=u,es(u,0,0)?Wa(e,u,0,0):es(u,0,1)?Wa(e,u,0,1):e.position=e.offsetOf(i)):(u=ui("lines",[[c],[s]]),e.root=u,es(u,0,0)?Wa(e,u,0,0):es(u,1,0)?Wa(e,u,1,0):e.position=e.offsetOf(i)),[void 0,[0,0]]}if(r.parent instanceof Ys){const s=r.parent;let c=e.extractAtoms([e.position,e.offsetOf(s.lastChild)]),u=e.extractAtoms([e.offsetOf(s.firstChild),e.position]);u.length===0&&(u=ka()),c.length===0&&(c=ka());let k="pmatrix";const j=s.leftDelim,X=s.rightDelim;j==="("&&(X===")"||X==="?")?k="pmatrix":(j==="["||j==="\\lbrack")&&(X==="]"||X==="\\rbrack"||X==="?")?k="bmatrix":j==="\\vert"&&X==="\\vert"?k="vmatrix":j==="\\Vert"&&X==="\\Vert"?k="Vmatrix":(j==="{"||j==="\\lbrace")&&(X==="."||X==="?")&&(k="cases");const ce=ui(k,t.endsWith("column")?[[u,c]]:[[u],[c]]);return s.parent.addChildBefore(ce,s),s.parent.removeChild(s),es(ce,0,0)?Wa(e,ce,0,0):t.endsWith("column")?es(ce,0,1)?Wa(e,ce,0,1):e.position=e.offsetOf(r):es(ce,1,0)?Wa(e,ce,1,0):e.position=e.offsetOf(r),[void 0,[0,0]]}}return r&&r.parent instanceof fs?[r.parent,r.parentBranch]:[void 0,[0,0]]}function es(e,t,r){const i=e.getCell(t,r);return!i||i.length!==2?!1:i[1].type==="placeholder"}function wo(e,t,r,i){const s=t.getCell(r,i);return s?[e.offsetOf(s[0]),e.offsetOf(s[s.length-1])]:-1}function Wa(e,t,r,i){const s=wo(e,t,r,i);typeof s!="number"&&e.setSelection(s)}function Ks(e,t,r,i,s){const c=t.getCell(r,i);c&&e.setPositionHandlingPlaceholder(e.offsetOf(c[s==="start"?0:c.length-1]))}function fo(e,t){const[r,[i,s]]=Ma(e,t);if(r)switch(t){case"after row":r.addRowAfter(i),Ks(e,r,i+1,0,"end");break;case"after column":if(r.maxColumns<=r.colCount){e.announce("plonk");return}r.addColumnAfter(s),Ks(e,r,i,s+1,"end");break;case"before row":r.addRowBefore(i),Ks(e,r,i,0,"start");break;case"before column":if(r.maxColumns<=r.colCount){e.announce("plonk");return}r.addColumnBefore(s),Ks(e,r,i,s,"start");break}}function Ba(e){return e.contentWillChange({inputType:"insertText"})?(fo(e,"after row"),e.contentDidChange({inputType:"insertText"}),!0):!1}function ro(e){return e.contentWillChange({inputType:"insertText"})?(fo(e,"before row"),e.contentDidChange({inputType:"insertText"}),!0):!1}function Sa(e){return e.contentWillChange({inputType:"insertText"})?(fo(e,"after column"),e.contentDidChange({inputType:"insertText"}),!0):!1}function yl(e){return e.contentWillChange({inputType:"insertText"})?(fo(e,"before column"),e.contentDidChange({inputType:"insertText"}),!0):!1}function Ds(e,t){if(!e.contentWillChange({}))return!1;e.mathfield.snapshot();let r=".",i=".";switch(t){case"pmatrix":case"pmatrix*":r="(",i=")";break;case"bmatrix":case"bmatrix*":r="[",i="]";break;case"Bmatrix":case"Bmatrix*":r="\\lbrace",i="\\rbrace";break;case"vmatrix":case"vmatrix*":r="\\vert",i="\\vert";break;case"Vmatrix":case"Vmatrix*":r="\\Vert",i="\\Vert";break;case"matrix":case"matrix*":r=".",i=".";break;case"cases":case"dcases":r="\\lbrace";break;case"rcases":i="\\rbrace";break}const s=e.at(e.position),c=s.type==="array"?s:e.parentEnvironment;return c.environmentName=t,c.leftDelim=r,c.rightDelim=i,e.contentDidChange({}),!0}function ga(e,t){let r=e.at(e.position);for(;r&&!(Array.isArray(r.parentBranch)&&r.parent instanceof fs);)r=r.parent;if(Array.isArray(r==null?void 0:r.parentBranch)&&(r==null?void 0:r.parent)instanceof fs){const i=r.parent,s=r.parentBranch;let c;switch(t){case"row":if(i.rowCount>1){i.removeRow(s[0]);const u=i.getCell(Math.max(0,s[0]-1),s[1]);c=e.offsetOf(u[u.length-1])}break;case"column":if(i.colCount>i.minColumns){i.removeColumn(s[1]);const u=i.getCell(s[0],Math.max(0,s[1]-1));c=e.offsetOf(u[u.length-1])}break}c&&e.setPositionHandlingPlaceholder(c)}}function xo(e){return e.contentWillChange({inputType:"deleteContent"})?(ga(e,"row"),e.contentDidChange({inputType:"deleteContent"}),!0):!1}function ul(e){return e.contentWillChange({inputType:"deleteContent"})?(ga(e,"column"),e.contentDidChange({inputType:"deleteContent"}),!0):!1}o({addRowAfter:Ba,addColumnAfter:Sa,addRowBefore:ro,addColumnBefore:yl,removeRow:xo,removeColumn:ul,setEnvironment:Ds},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function ka(){return[new Du]}var ns=class dv{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>dv.maximumDepth&&(this.stack.shift(),this.index-=1),this.lastOp=t!=null?t:"",!0):!1}};ns.maximumDepth=1e3;var Co=ns;function ql(e,t,r){if(e.at(t).mode!=="text")return t;const i=r==="backward"?-1:1;let s;if(f.test(e.at(t).value)){let c=t,u;do u=e.at(c).mode==="text"&&f.test(e.at(c).value),c+=i;while(e.at(c)&&u);s=e.at(c)?c-2*i:c-i}else if(/\s/.test(e.at(t).value)){let c=t;for(;e.at(c)&&e.at(c).mode==="text"&&/\s/.test(e.at(c).value);)c+=i;if(!e.at(c))s=c-i;else{let u=!0;do u=e.at(c).mode==="text"&&!/\s/.test(e.at(c).value),c+=i;while(e.at(c)&&u);s=e.at(c)?c-2*i:c-i}}else{let c=t;for(;e.at(c)&&e.at(c).mode==="text"&&!/\s/.test(e.at(c).value);)c+=i;s=e.at(c)?c:c-i;let u=!0;for(;e.at(c)&&u;)u=e.at(c).mode==="text"&&/\s/.test(e.at(c).value),u&&(s=c),c+=i;s=e.at(c)?c-2*i:c-i}return s-(i>0?0:1)}function Pl(e,t,r){var i,s,c,u,k,j,X;const ce=e.position;(i=r==null?void 0:r.extend)!=null&&i||e.collapseSelection(t);let Pe=e.at(e.position);if(t==="forward"&&(Pe.type==="subsup"?(Pe=Pe.rightSibling,Pe||(Pe=e.at(e.position+1))):Pe=e.at(e.position+1)),!Pe)return e.announce("plonk"),!1;let nt=e.offsetOf(Pe);if(Pe instanceof Ud)nt=ql(e,nt,t);else if(Pe instanceof Ol)if(Pe.isSuggestion)for(console.assert(t==="forward");Pe&&Pe instanceof Ol;)Pe.isSuggestion=!1,nt=e.offsetOf(Pe),Pe=Pe.rightSibling;else if(t==="forward"){if(Pe=Pe.rightSibling,!Pe||!(Pe instanceof Ol))return e.announce("plonk"),!1;for(;Pe&&Pe instanceof Ol&&/[a-zA-Z\*]/.test(Pe.value);)nt=e.offsetOf(Pe),Pe=Pe.rightSibling}else{if(Pe=Pe.leftSibling,!Pe||!(Pe instanceof Ol))return e.announce("plonk"),!1;for(;Pe&&Pe instanceof Ol&&/[a-zA-Z\*]/.test(Pe.value);)nt=e.offsetOf(Pe),Pe=Pe.leftSibling}else if(t==="forward"&&Pe.type==="mopen"){let vt=0;do Pe.type==="mopen"?vt+=1:Pe.type==="mclose"&&(vt-=1),Pe=Pe.rightSibling;while(!Pe.isLastSibling&&vt!==0);nt=e.offsetOf(Pe.leftSibling)}else if(t==="backward"&&Pe.type==="mclose"){let vt=0;do Pe.type==="mopen"?vt+=1:Pe.type==="mclose"&&(vt-=1),Pe=Pe.leftSibling;while(!Pe.isFirstSibling&&vt!==0);nt=e.offsetOf(Pe)}else if(t==="backward")if(Pe.type==="first")for(;nt>0&&Pe.type==="first";)nt-=1,Pe=e.at(nt);else{const vt=Pe.type;Pe.type==="subsup"&&(nt=e.offsetOf(e.at(nt).leftSibling)),nt-=1;let St=(s=e.at(nt))==null?void 0:s.type;for(;nt>=0&&St===vt;)((c=e.at(nt))==null?void 0:c.type)==="subsup"?nt=e.offsetOf(e.at(nt).leftSibling):nt-=1,St=e.at(nt).type}else{const{type:vt}=Pe;let St=(u=e.at(nt))==null?void 0:u.type;const{lastOffset:Cr}=e;for(;nt<=Cr&&(St===vt||St==="subsup");){for(;((k=e.at(nt).rightSibling)==null?void 0:k.type)==="subsup";)nt=e.offsetOf(e.at(nt).rightSibling);nt+=1,St=(j=e.at(nt))==null?void 0:j.type}nt-=1}if((X=r==null?void 0:r.extend)!=null&&X){if(!e.setSelection(e.anchor,nt))return e.announce("plonk"),!1}else{if(nt===e.position)return e.announce("plonk"),!1;e.position=nt}return e.announce("move",ce),e.mathfield.stopCoalescingUndo(),!0}function is(e,t,r){var i,s;if(r=r!=null?r:{extend:!1},e.mathfield.adoptStyle=t==="backward"?"right":"left",t!=="forward"){const[k,j]=Jm(e);k!==void 0&&j!==void 0&&e.deleteAtoms([k,j])}if(t==="upward")return Ff(e,r);if(t==="downward")return Vd(e,r);if(r.extend){let k=Ya(e,e.position,t);k<0&&(k=0),k>e.lastOffset&&(k=e.lastOffset);const j=e.setSelection(e.anchor,k);return e.mathfield.stopCoalescingUndo(),j}if(e.selectionIsPlaceholder){e.collapseSelection(t);const k=is(e,t);return e.mathfield.stopCoalescingUndo(),k}let c=e.position;const u=c;if(e.collapseSelection(t)?(c=e.position,Hs(e,c)||(c=Ya(e,c,t))):c=Ya(e,c,t),c<0||c>e.lastOffset){let k=!0;return e.silenceNotifications||(k=(s=(i=e.mathfield.host)==null?void 0:i.dispatchEvent(new CustomEvent("move-out",{detail:{direction:t},cancelable:!0,bubbles:!0,composed:!0})))!=null?s:!0),k&&e.announce("plonk"),k}return e.setPositionHandlingPlaceholder(c),e.mathfield.stopCoalescingUndo(),e.announce("move",u),!0}function Ya(e,t,r){return t=t+(r==="forward"?1:-1),t<0||t>e.lastOffset||Hs(e,t)?t:Ya(e,t,r)}function Hs(e,t){var r;const i=e.at(t);let s=i.parent;for(;s&&!s.inCaptureSelection;)s=s.parent;return!(s!=null&&s.inCaptureSelection||(r=i.parent)!=null&&r.skipBoundary&&(!i.isFirstSibling&&i.isLastSibling||i.type==="first")||e.mathfield.hasEditablePrompts&&!i.parentPrompt)}function zh(e,t,r){let i=1/0,s=0;for(;s<t.length;s++){const c=D0(e.getHTMLElement(t[s])).right,u=Math.abs(r-c);if(u<=i)i=u;else break}return t[s-1]}function jc(e,t,r,i,s){const c=e.mathfield.hasEditablePrompts,u=c?r.filter(X=>X.type==="prompt"&&!X.captureSelection):r,k=D0(e.mathfield.getHTMLElement(t)).right,j=e.offsetOf(zh(e.mathfield,u,k))-(c?1:0);if(i){const[X,ce]=e.selection.ranges[0];let Pe;j<(s==="up"?X:ce)?Pe={ranges:[[j,ce]],direction:"backward"}:Pe={ranges:[[X,j]],direction:"forward"},e.setSelection(Pe)}else e.setPositionHandlingPlaceholder(j);e.announce(`move ${s}`)}function Ff(e,t){var r,i;const s=(r=t==null?void 0:t.extend)!=null?r:!1;s||e.collapseSelection("backward");const c=()=>{var j,X;let ce=!0;return e.silenceNotifications||(ce=(X=(j=e.mathfield.host)==null?void 0:j.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?X:!0),e.announce(ce?"plonk":"line"),ce},u=e.at(e.position);let k=u;for(;k&&k.parentBranch!=="below"&&!(Array.isArray(k.parentBranch)&&k.parent instanceof fs);)k=k.parent;if(Array.isArray(k==null?void 0:k.parentBranch)&&k.parent instanceof fs){const j=k.parent;if(k.parentBranch[0]<1)return c();const X=k.parentBranch[0]-1,ce=j.array[X][k.parentBranch[1]];if(!ce.some(nt=>nt.type==="prompt"&&!nt.captureSelection)&&e.mathfield.hasEditablePrompts)return c();jc(e,u,ce,s,"up")}else if(k){const j=(i=k.parent.branch("above"))!=null?i:k.parent.createBranch("above");if(!j.some(ce=>ce.type==="prompt"&&ce.placeholderId)&&e.mathfield.hasEditablePrompts)return c();jc(e,u,j,s,"up")}else return c();return e.mathfield.stopCoalescingUndo(),!0}function Vd(e,t){var r,i;const s=(r=t==null?void 0:t.extend)!=null?r:!1;s||e.collapseSelection("forward");const c=()=>{var j,X;let ce=!0;return e.silenceNotifications||(ce=(X=(j=e.mathfield.host)==null?void 0:j.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?X:!0),e.announce(ce?"plonk":"line"),ce},u=e.at(e.position);let k=u;for(;k&&k.parentBranch!=="above"&&!(Array.isArray(k.parentBranch)&&k.parent instanceof fs);)k=k.parent;if(Array.isArray(k==null?void 0:k.parentBranch)&&k.parent instanceof fs){const j=k.parent;if(k.parentBranch[0]+1>j.array.length-1)return c();const X=k.parentBranch[0]+1,ce=j.array[X][k.parentBranch[1]];if(!ce.some(nt=>nt.type==="prompt"&&!nt.captureSelection)&&e.mathfield.hasEditablePrompts)return c();jc(e,u,ce,s,"down")}else if(k){const j=(i=k.parent.branch("below"))!=null?i:k.parent.createBranch("below");if(!j.some(ce=>ce.type==="prompt")&&e.mathfield.hasEditablePrompts)return c();jc(e,u,j,s,"down")}else return c();return!0}function Ka(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 Mf(e){let t=0,r=e.at(e.position),i=!1;for(;r;)(!r.hasEmptyBranch("superscript")||!r.hasEmptyBranch("subscript"))&&(t+=1),r.hasEmptyBranch("superscript")?r.hasEmptyBranch("subscript")||(i=!1):i=!0,r=r.parent;return i?t:0}function Lf(e){let t=0,r=e.at(e.position),i=!1;for(;r;)(!r.hasEmptyBranch("superscript")||!r.hasEmptyBranch("subscript"))&&(t+=1),r.hasEmptyBranch("superscript")?r.hasEmptyBranch("subscript")||(i=!0):i=!1,r=r.parent;return i?t:0}function pu(e){var t;if(e.collapseSelection(),Mf(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 ks({style:r.computedStyle}),r),r=r.rightSibling),r.createBranch("superscript"),e.setSelection(e.getSiblingsRange(e.offsetOf(r.superscript[0]))),!0}function mu(e){var t;if(e.collapseSelection(),Lf(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 ks({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 lc(){function e(j){const X=[],ce=[];return[...j.querySelectorAll(`input, select, textarea, a[href], button,
[tabindex], audio[controls], video[controls],
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(t).forEach((nt,vt)=>{const St=i(nt);St===0?X.push(nt):ce.push({documentOrder:vt,tabIndex:St,node:nt})}),ce.sort((nt,vt)=>nt.tabIndex===vt.tabIndex?nt.documentOrder-vt.documentOrder:nt.tabIndex-vt.tabIndex).map(nt=>nt.node).concat(X)}function t(j){return!(!r(j)||s(j)||i(j)<0)}function r(j){return!(j.disabled||j.type==="hidden"&&j.tagName.toUpperCase()==="INPUT"||k(j))}function i(j){var X;const ce=Number.parseInt((X=j.getAttribute("tabindex"))!=null?X:"NaN",10);return Number.isNaN(ce)?j.contentEditable==="true"||(j.nodeName==="AUDIO"||j.nodeName==="VIDEO")&&j.getAttribute("tabindex")===null?0:j.tabIndex:ce}function s(j){return j.tagName.toUpperCase()==="INPUT"&&j.type==="radio"&&!u(j)}function c(j,X){for(const ce of j)if(ce.checked&&ce.form===X)return ce;return null}function u(j){var X;if(!j.name)return!0;const Pe=((X=j.form)!=null?X:j.ownerDocument).querySelectorAll('input[type="radio"][name="'+j.name+'"]'),nt=c(Pe,j.form);return!nt||nt===j}function k(j){if(!O()||j===document.activeElement||j.contains(document.activeElement))return!1;if(getComputedStyle(j).visibility==="hidden")return!0;const X=j.getBoundingClientRect();if(X.width===0||X.height===0)return!0;for(;j;){if(getComputedStyle(j).display==="none")return!0;j=j.parentElement}return!1}return O()?e(document.body):[]}function Ss(e,t,r="forward"){const i=e.position;if(Array.isArray(t)){const s=e.offsetOf(t[0]),c=e.offsetOf(t[t.length-1]);return r==="forward"?e.setSelection(s,c):e.setSelection(c,s),e.announce("move",i),e.mathfield.stopCoalescingUndo(),!0}return r==="forward"?Ss(e,[t.leftSibling,t]):Ss(e,[t,t.leftSibling])}function dl(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 i=e.offsetOf(t);t.type==="placeholder"?e.setSelection(i-1,i):e.position=i}return e.announce("move",r),e.mathfield.stopCoalescingUndo(),!0}function Wd(e,t,r=!0){var i,s;const c=t==="forward"?1:-1;e.at(e.anchor).type==="placeholder"&&is(e,t);let u;const k=e.at(e.anchor).parentPrompt;k?t==="forward"?u=e.offsetOf(k)+1:u=e.offsetOf(k.leftSibling):u=Math.max(e.position+c,0);const j=Gd(e,u,t);if(!j||t==="forward"&&e.offsetOf(j)<u||t==="backward"&&e.offsetOf(j)>u){if(!r||!((s=(i=e.mathfield.host)==null?void 0:i.dispatchEvent(new CustomEvent("move-out",{detail:{direction:t},cancelable:!0,bubbles:!0,composed:!0})))==null||s))return e.announce("plonk"),!1;const ce=lc();if(!document.activeElement||ce.length<=1)return e.announce("plonk"),!1;let Pe=ce.indexOf(document.activeElement)+c;return Pe<0&&(Pe=ce.length-1),Pe>=ce.length&&(Pe=0),ce[Pe].focus(),e.mathfield.stopCoalescingUndo(),!0}return dl(e,j),!0}function Gd(e,t=0,r="forward"){return e.findAtom(i=>i.type==="placeholder"||i.type==="prompt"||!e.mathfield.readOnly&&i.treeDepth>2&&i.isFirstSibling&&i.isLastSibling,t,r)}o({moveToOpposite:e=>{const t={superscript:"subscript",subscript:"superscript",above:"below",below:"above"},r=e.at(e.position),{parent:i}=r;if(!i)return e.announce("plonk"),!1;const s=r.parentBranch;let c;if(typeof s=="string"&&(c=t[s]),!c){const k=r.subsupPlacement?mu(e):pu(e);return e.mathfield.stopCoalescingUndo(),k}i.branch(c)||i.createBranch(c);const u=e.setSelection(e.getBranchRange(e.offsetOf(i),c));return e.mathfield.stopCoalescingUndo(),u},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=>Ka(e),moveToNextChar:e=>is(e,"forward"),moveToPreviousChar:e=>is(e,"backward"),moveUp:e=>is(e,"upward"),moveDown:e=>is(e,"downward"),moveToNextWord:e=>Pl(e,"forward"),moveToPreviousWord:e=>Pl(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,i,s;if(e.position===e.lastOffset&&e.anchor===e.lastOffset)return Wd(e,"forward");const c=e.at(e.position);if(c.mode==="text"){if(e.selectionIsCollapsed){let nt=c;for(;nt&&nt.mode==="text";)nt=nt.leftSibling;let vt=c;for(;((t=vt.rightSibling)==null?void 0:t.mode)==="text";)vt=vt.rightSibling;if(nt&&vt)return Ss(e,[nt,vt])}if(c.rightSibling.mode==="text"){let nt=c;for(;nt&&nt.mode==="text";)nt=nt.rightSibling;return nt?(dl(e,(r=nt.leftSibling)!=null?r:nt),e.mathfield.switchMode("math"),!0):dl(e,e.lastOffset)}}const k=e.at(e.anchor).parentPrompt,j=k?e.offsetOf(k)+1:Math.max(e.position+1,0),X=Gd(e,j,"forward");if(X)return dl(e,X);const ce=Uu(e,c,nt=>nt.type==="leftright"||nt.type==="text","forward");if(ce){if(ce.mode==="text"){let nt=ce;for(;nt&&nt.mode==="text";)nt=nt.rightSibling;return Ss(e,[(i=ce.leftSibling)!=null?i:ce,(s=nt.leftSibling)!=null?s:nt])}return Ss(e,ce)}const Pe=c.parent;if(Pe){if(Pe.type==="leftright"||Pe.type==="surd")return Ss(e,Pe);if(c.parentBranch==="superscript"&&Pe.subscript)return Ss(e,Pe.subscript);if(c.parentBranch==="above"&&Pe.below)return Ss(e,Pe.below);if(c.parentBranch==="superscript"||c.parentBranch==="subscript")return dl(e,Pe);if(c.parentBranch==="above"||c.parentBranch==="below")return Ss(e,Pe)}return dl(e,e.lastOffset)},moveToPreviousGroup:e=>{var t;if(e.position===0&&e.anchor===0)return Wd(e,"backward");let r=e.at(e.position);const i=r.mode;if(i==="text"){if(e.selectionIsCollapsed){let k=r;for(;k&&k.mode==="text";)k=k.leftSibling;let j=r;for(;((t=j.rightSibling)==null?void 0:t.mode)==="text";)j=j.rightSibling;if(k&&j)return Ss(e,[k,j])}for(;r&&r.mode==="text";)r=r.leftSibling;return r?dl(e,r):dl(e,0)}const s=e.at(e.anchor).parentPrompt,c=s?e.offsetOf(s.leftSibling):Math.max(e.position-1,0),u=Gd(e,c,"backward");if(u)return dl(e,u);if(i==="math"){const k=Uu(e,r,X=>X.type==="leftright"||X.type==="text","backward");if(k){if(k.mode==="text"){let X=k;for(;X&&X.mode==="text";)X=X.leftSibling;return Ss(e,[k,X])}return Ss(e,k)}const j=r.parent;if(j){if(j.type==="leftright"||j.type==="surd")return Ss(e,j);if(r.parentBranch==="subscript"&&j.superscript)return Ss(e,j.superscript);if(r.parentBranch==="below"&&j.above)return Ss(e,j.above);if(r.parentBranch==="superscript"||r.parentBranch==="subscript")return dl(e,j);if(r.parentBranch==="above"||r.parentBranch==="below")return Ss(e,j)}return dl(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:pu,moveToSubscript:mu},{target:"model",changeSelection:!0}),o({moveToNextPlaceholder:e=>Wd(e,"forward"),moveToPreviousPlaceholder:e=>Wd(e,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function Uu(e,t,r,i){if(i==="forward"){let c=t.rightSibling;for(;c&&!r(c);)c=c.rightSibling;return c}let s=t.leftSibling;for(;s&&!r(s);)s=s.leftSibling;return s}function gu(e,t,r){typeof t=="function"&&(r=t,t=1/0),t===void 0&&(t=1/0);let i=e.position,s=!1,c="";for(;!s;){const u=e.at(i);s=t===0||u===void 0||u.type==="first"||u.mode!=="math"||!(u.type&&/mord|mpunct|operator/.test(u.type)||u.type==="mop"&&/[a-zA-Z ]+/.test(u.value))||!u.hasEmptyBranch("superscript")||!u.hasEmptyBranch("subscript")||typeof r=="function"&&!r(u),s||(u.mode="text",u.command=u.value,u.verbatimLatex=void 0,c+=u.value),i-=1,t-=1}e.contentDidChange({data:c,inputType:"insertText"})}function lA(e,t,r){typeof t=="function"&&(r=t,t=1/0),t===void 0&&(t=1/0);let i=e.position,s=!1;const c=[];for(;!s;){const u=e.at(i);s=t===0||!u||u.type==="first"||u.isFirstSibling||u.mode!=="text"||u.value===" "||typeof r=="function"&&!r(u),s||(c.push(Ur.serialize([u],{defaultMode:"math"})),u.mode="math"),i-=1,t-=1}vu(e),e.contentDidChange({data:Ao(c),inputType:"insertText"})}function vu(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 i=e.silenceNotifications;e.silenceNotifications=!0,e.position-=1,e.silenceNotifications=i,e.contentDidChange({inputType:"deleteContent"})}}function Ru(e){let t="",r=e.position,i=!1;for(;!i;){const s=e.at(r);i=!(s&&(s.mode==="text"||s.mode==="math"&&s.type&&/mord|mpunct/.test(s.type))),i||(t=s.value+t),r-=1}return t}function $h(e,t,r){const{model:i}=e;if(i.mode==="latex"||!i.at(i.position).isLastSibling||!r||!JA(r))return!1;const s=Qh(r);if(!i.selectionIsCollapsed)return!!(e.model.mode==="text"&&/[/_^]/.test(s));const c=Ru(i)+s;if(e.model.mode==="text"){if(t==="Esc"||/[/\\]/.test(s))return!0;if(/[\^_]/.test(s))return/(^|\s)[a-zA-Z][^_]$/.test(c)&&lA(i,1),!0;const u={")":"(","}":"{","]":"["}[s],{parent:k}=i.at(i.position);if(u&&k instanceof Ys&&k.leftDelim===u)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(c))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(s))return!0;if(/(^|[^a-zA-Z'])[a-zA-Z] $/.test(c))return lA(i,1),!1;if(/\D\.[^\d\s]$/.test(c)){lA(i,1);const j=i.at(i.position);return j.value="\u22C5",j.style.variant="normal",j.command="\\cdot",j.verbatimLatex=void 0,i.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(c)||/\.\d$/.test(c)||/\([\d+\-.]$/.test(c))return lA(i,1),!0;if(/\([a-z][,;]$/.test(c))return lA(i,2),!0;if(/[\d+\-=><*|]$/.test(s))return vu(i),!0}else{if(t==="[Space]")return gu(i,void 0,u=>/[a-z][:,;.]$/.test(u.value)),!0;if(/[a-zA-Z]{3,}$/.test(c)&&!/(dxd|abc|xyz|uvw)$/.test(c))return gu(i,void 0,u=>/[a-zA-Z]/.test(u.value)),!0;if(/(^|\W)(if)$/i.test(c))return gu(i,1),!0;if(/(\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5){3,}$/u.test(c)&&!/(αβγ)$/.test(c))return gu(i,void 0,u=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(u.value)),!0;if(s==="?"||s==="."&&!/[\d-+]\.$/.test(c))return!0}return!1}function Xd(e,t){if(!e.isSelectionEditable||!e.keystrokeCaptionVisible)return;const r=Vh(),i=e.element.getBoundingClientRect();r.style.left=`${i.left}px`,r.style.top=`${i.top-64}px`,r.innerHTML=window.MathfieldElement.createHTML("<span>"+(uu(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 Zh(e){if(e.keystrokeCaptionVisible=!e.keystrokeCaptionVisible,e.keystrokeCaptionVisible){const t=Vh();t.innerHTML=""}else{const t=_p("mathlive-keystroke-caption-panel");t.style.visibility="hidden"}return!1}function Vh(){const e=document.getElementById("mathlive-keystroke-caption-panel");return e||(ud("keystroke-caption"),ud("core"),_p("mathlive-keystroke-caption-panel"))}function $0(){document.getElementById("mathlive-keystroke-caption-panel")&&(Ym("mathlive-keystroke-caption-panel"),dd("core"),dd("keystroke-caption"))}function Wh(e,t){var r,i,s;const{model:c}=e,u=Kh(t);if(t.isTrusted){Yc(t);const vt=Au();e.keyboardLayout!==vt.id&&(e.keyboardLayout=vt.id,e._keybindings=void 0)}if(clearTimeout(e.inlineShortcutBufferFlushTimer),e.inlineShortcutBufferFlushTimer=0,Xd(e,u),t.isTrusted&&t.defaultPrevented)return e.flushInlineShortcutBuffer(),!1;let k,j="",X;const ce=e.inlineShortcutBuffer;if(e.isSelectionEditable){if(c.mode==="math")if(u==="[Backspace]")ce.pop();else if(!JA(t))e.flushInlineShortcutBuffer();else{const vt=Qh(t),St=[...(i=(r=ce[ce.length-1])==null?void 0:r.keystrokes)!=null?i:[],vt];ce.push({state:c.getState(),keystrokes:St,leftSiblings:Mp(e)});let Cr=0,_n="";for(;!k&&Cr<St.length;)X=ce.length-(St.length-Cr),_n=St.slice(Cr).join(""),k=M0(ce[X].leftSiblings,_n,e.options.inlineShortcuts),!k&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(_n)&&(k=e.options.onInlineShortcut(e,_n)),Cr+=1;e.flushInlineShortcutBuffer({defer:!0})}e.options.smartMode&&(k?e.switchMode("math"):$h(e,u,t)&&(e.switchMode({math:"text",text:"math"}[c.mode]),j=""))}if(!k){if(j||(j=bg(e.keybindings,c.mode,t)),!j&&(u==="[Enter]"||u==="[Return]")){let vt=!1;return c.contentWillChange({inputType:"insertLineBreak"})&&(e.host&&(vt=!e.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),vt||t.preventDefault&&(t.preventDefault(),t.stopPropagation()),c.contentDidChange({inputType:"insertLineBreak"})),vt}if((!j||u==="[Space]")&&c.mode==="math"){if(u==="[Space]"){if(e.adoptStyle="none",e.flushInlineShortcutBuffer(),e.options.mathModeSpace)return Ls.insert(c,e.options.mathModeSpace,{format:"latex",mode:"math"}),e.snapshot("insert-space"),j="",e.dirty=!0,e.scrollIntoView(),t.preventDefault&&(t.preventDefault(),t.stopPropagation()),!1;const vt=c.at(c.position+1),St=c.at(c.position-1);if((vt==null?void 0:vt.mode)==="text"||(St==null?void 0:St.mode)==="text")return Ls.insert(c," ",{mode:"text"}),e.snapshot("insert-space"),e.dirty=!0,e.scrollIntoView(),!1}(s=c.at(c.position))!=null&&s.isDigit()&&window.MathfieldElement.decimalSeparator===","&&Qh(t)===","&&(j="insertDecimalSeparator")}}if(!k&&!j){if(c.mathfield.smartFence){if(YA(c,Qh(t),e.effectiveStyle))return e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}else{const{parent:vt}=c.at(c.position);if(vt instanceof Ys&&vt.rightDelim==="?"&&c.at(c.position).isLastSibling&&/^[)}\]|]$/.test(u))return e.snapshot(),vt.isDirty=!0,vt.rightDelim=u,c.position+=1,c.selectionDidChange(),c.contentDidChange({data:Qh(t),inputType:"insertText"}),e.snapshot("insert-fence"),e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1;if(!c.selectionIsCollapsed){const St=Qh(t);if(St==="("||St==="{"||St==="["){const Cr={"(":"(","{":"\\lbrace","[":"\\lbrack"}[St],_n={"(":")","{":"\\rbrace","[":"\\rbrack"}[St],[wr,nn]=Jl(c.selection);return e.snapshot(),c.position=nn,Ls.insert(c,_n,{format:"latex"}),c.position=wr,Ls.insert(c,Cr,{format:"latex"}),c.setSelection(wr+1,nn+1),c.contentDidChange({data:St,inputType:"insertText"}),e.snapshot("insert-fence"),e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}}}return!0}const Pe=c.at(Math.max(c.position,c.anchor)),{parent:nt}=Pe;if(j==="moveAfterParent"&&(nt==null?void 0:nt.type)==="leftright"&&Pe.isLastSibling&&e.options.smartFence&&YA(c,".",e.defaultStyle)&&(j="",Il(e)),e.keyboardDelegate.cancelComposition(),j)e.executeCommand(j);else if(k){const vt=e.effectiveStyle;c.setState(ce[X].state);const St=ce[ce.length-1].keystrokes;for(const Cr of St)Ls.insert(c,Cr,{silenceNotifications:!0,style:vt});e.snapshot("insert-shortcut"),c.setState(ce[X].state),c.deferNotifications({content:!0,selection:!0,data:k,type:"insertText"},()=>(Ls.insert(c,k,{format:"latex",style:vt}),vu(e.model),k.endsWith(" ")&&(e.switchMode("text"),Ls.insert(c," ",{style:vt,mode:"text"})),e.snapshot(),c.selectionIsCollapsed||e.flushInlineShortcutBuffer(),!0)),e.dirty=!0,c.announce("replacement")}return e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}function Fp(e,t,r){const{model:i}=e;if(!e.isSelectionEditable){i.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 s=BA(t);const c=window.mathVirtualKeyboard;if(c!=null&&c.isShifted&&(s=typeof s=="string"?s.toUpperCase():s.map(j=>j.toUpperCase())),r.simulateKeystroke){let j=!0;for(const X of s)Wh(e,new KeyboardEvent("keypress",{key:X}))&&(j=!1);if(j)return}const u=i.at(i.position),k=g(g({},u.computedStyle),e.defaultStyle);if(i.selectionIsCollapsed||(i.deleteAtoms(Jl(i.selection)),e.snapshot("delete")),i.mode==="latex")i.deferNotifications({content:!0,selection:!0,data:t,type:"insertText"},()=>{Am(e);for(const j of s)Ls.insert(i,j);e.snapshot("insert-latex"),Ep(e)});else if(i.mode==="text"){for(const j of s)Ls.insert(i,j,{style:k});e.snapshot("insert-text")}else if(i.mode==="math")for(const j of s)pm(e,j,k,u);e.dirty=!0,e.scrollIntoView()}function Mp(e){const t=e.model,r=[];let i=t.at(Math.min(t.position,t.anchor));for(;i.type!=="first";)r.push(i),i=i.leftSibling;return r}function pm(e,t,r,i){const s=e.model;let c={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[t];if(t===" "&&e.options.mathModeSpace&&(c=["insert",e.options.mathModeSpace]),c){e.executeCommand(c);return}if(/\d/.test(t)&&e.options.smartSuperscript&&i.parentBranch==="superscript"&&i.parent.type!=="mop"&&i.parent.type!=="operator"&&i.parent.type!=="extensible-symbol"&&i.hasNoSiblings){mm(s),Ls.insert(s,t,{style:r}),e.snapshot(),Ka(s),e.snapshot();return}if(/[a-zA-Z0-9]/.test(t)&&e.adoptStyle!=="none"){const u=e.adoptStyle==="left"?i:i.parent?i.rightSibling:null;(u==null?void 0:u.type)==="mord"&&/[a-zA-Z0-9]/.test(u.value)&&(r=g({},r),u.style.variant&&(r.variant=u.style.variant),u.style.variantStyle&&(r.variantStyle=u.style.variantStyle))}Ls.insert(s,t,{style:r}),e.snapshot(`insert-${s.at(s.position).type}`)}function mm(e){e.selectionIsCollapsed||(e.deleteAtoms(Jl(e.selection)),e.mathfield.snapshot("delete"))}function YA(e,t,r){if(!t||e.mode!=="math")return!1;const i=e.at(e.position),{parent:s}=i,c={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[t];if(!c)return!1;const u=Dh[c],k=Kd[c];if(!e.selectionIsCollapsed){e.mathfield.snapshot();const[j,X]=Jl(e.selection),ce=e.extractAtoms([j,X]),Pe=s.addChildrenAfter([new Ys("left...right",ce,{leftDelim:c,rightDelim:k})],e.at(j));return e.setSelection(e.offsetOf(Pe.firstChild),e.offsetOf(Pe.lastChild)),e.mathfield.snapshot("insert-fence"),e.contentDidChange({data:c,inputType:"insertText"}),!0}if(c==="|"){const j=s instanceof Ys?s.leftDelim+s.rightDelim:"";if(j==="\\lbrace\\rbrace"||j==="\\{\\}"||j==="\\lbrace?")return e.mathfield.snapshot(),Ls.insert(e,"\\,\\middle\\vert\\,",{format:"latex",style:r}),e.mathfield.snapshot("insert-fence"),e.contentDidChange({data:c,inputType:"insertText"}),!0}if(k){if(s instanceof Ys&&s.firstChild===i&&(s.leftDelim==="?"||s.leftDelim==="."))return s.leftDelim=c,s.isDirty=!0,e.mathfield.snapshot(),e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;if(!(s instanceof Ys)){let Pe=i;for(;Pe&&!(Pe.type==="mclose"&&Pe.value===k);)Pe=Pe.rightSibling;if(Pe){e.mathfield.snapshot();const nt=e.extractAtoms([e.offsetOf(i),e.offsetOf(Pe)]);return nt.pop(),s.addChildrenAfter([new Ys("left...right",nt,{leftDelim:c,rightDelim:k})],i),e.position=e.offsetOf(s.firstChild)+1,e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}}const j=e.offsetOf(i.lastSibling);let X;for(X=e.position;X<=j;X++){const Pe=e.at(X);if(Pe instanceof Ys&&(Pe.leftDelim==="?"||Pe.leftDelim===".")&&Lp(c,Pe.rightDelim))break}const ce=e.at(X);if(X<=j&&ce instanceof Ys){ce.leftDelim=c,e.mathfield.snapshot();let Pe=e.extractAtoms([e.position,X-1]);return Pe=Pe.filter(nt=>nt.type!=="first"),ce.addChildren(Pe,ce.parentBranch),e.position+=1,e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}if(s instanceof Ys&&(s.leftDelim==="?"||s.leftDelim===".")&&Lp(c,s.rightDelim)){s.isDirty=!0,s.leftDelim=c,e.mathfield.snapshot();const Pe=e.extractAtoms([e.offsetOf(i.firstSibling),e.position]);for(const nt of Pe)s.parent.addChildBefore(nt,s);return e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}if(!(s instanceof Ys&&s.leftDelim==="|")){if(e.mathfield.snapshot(),Ls.insert(e,`\\left${c}\\right?`,{format:"latex",style:r}),i.lastSibling.type!=="first"){const Pe=e.offsetOf(i.lastSibling),nt=e.extractAtoms([e.position,Pe]);e.at(e.position).body=nt,e.position-=1}return e.mathfield.snapshot("insert-fence"),!0}}if(u){let j=i;for(;j;){if(j.type==="mopen"&&j.value===u){e.mathfield.snapshot();const vt=j.leftSibling,St=e.extractAtoms([e.offsetOf(j.leftSibling),e.offsetOf(i)]);St.shift();const Cr=new Ys("left...right",St,{leftDelim:u,rightDelim:c});return s.addChildrenAfter([Cr],vt),e.position=e.offsetOf(Cr),e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}j=j.leftSibling}if(s instanceof Ys&&i.isLastSibling&&Gh(s.leftDelim,c))return e.mathfield.snapshot(),s.isDirty=!0,s.rightDelim=c,e.position+=1,e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;const X=e.offsetOf(i.firstSibling);let ce;for(ce=e.position;ce>=X;ce--){const vt=e.at(ce);if(vt instanceof Ys&&(vt.rightDelim==="?"||vt.rightDelim===".")&&Gh(vt.leftDelim,c))break}const Pe=e.at(ce);if(ce>=X&&Pe instanceof Ys)return e.mathfield.snapshot(),Pe.rightDelim=c,Pe.addChildren(e.extractAtoms([ce,e.position]),Pe.parentBranch),e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;if(s instanceof Ys&&(s.rightDelim==="?"||s.rightDelim===".")&&Gh(s.leftDelim,c))return e.mathfield.snapshot(),s.isDirty=!0,s.rightDelim=c,s.parent.addChildren(e.extractAtoms([e.position,e.offsetOf(i.lastSibling)]),s.parentBranch),e.position=e.offsetOf(s),e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;const nt=s.parent;return nt instanceof Ys&&(nt.rightDelim==="?"||nt.rightDelim===".")&&e.at(e.position).isLastSibling?(e.position=e.offsetOf(nt),YA(e,c,r)):!1}return!1}function Gh(e,t){return e?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(e)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(t):Kd[e]===t:!0}function Lp(e,t){return t?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(t)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(e):Dh[t]===e:!0}o({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:Zh,toggleContextMenu:e=>{const t=e.toggleContextMenu();return t||e.model.announce("plonk"),t},plonk:e=>(e.model.announce("plonk"),!0),switchMode:(e,t,r,i)=>(e.switchMode(t,r,i),!0),insert:(e,t,r)=>e.insert(t,r),typedText:(e,t,r)=>(Fp(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 i=e.getPrompts();let s="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),c=0;for(;i.includes(s)&&c<100;){if(c===99)return console.error("could not find a unique ID after 100 tries"),!1;s="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),c++}return e.insert(`\\placeholder[${t!=null?t:s}]{}`,r),!0}}),o({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"}),o({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})&&(Ep(e),e.startRecording(),e.snapshot("paste"),e.model.contentDidChange({inputType:"insertFromPaste"}),Il(e))):e.model.announce("plonk"),e.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function kp(e,t){e.flushInlineShortcutBuffer(),e.stopCoalescingUndo();const r=Z0(e,t),{model:i}=e;return i.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=g(g({},e.defaultStyle),r)):e.model.deferNotifications({content:!0,type:"insertText"},()=>{i.selection.ranges.forEach(s=>Wo(i,s,r,{operation:"toggle"})),e.snapshot("style-change")}),!0}o({applyStyle:kp},{target:"mathfield",canUndo:!0,changeContent:!0});function Z0(e,t){var r,i,s,c,u,k,j,X,ce,Pe;const nt={};if(typeof t.color=="string"){const St=(i=e.colorMap((r=t.color)!=null?r:t.verbatimColor))!=null?i:"none";St!==t.color&&(nt.verbatimColor=(s=t.verbatimColor)!=null?s:t.color),nt.color=St}if(typeof t.backgroundColor=="string"){const St=(u=e.backgroundColorMap((c=t.backgroundColor)!=null?c:t.verbatimBackgroundColor))!=null?u:"none";St!==t.backgroundColor&&(nt.verbatimBackgroundColor=(k=t.verbatimBackgroundColor)!=null?k:t.backgroundColor),nt.backgroundColor=St}typeof t.fontFamily=="string"&&(nt.fontFamily=t.fontFamily),typeof t.series=="string"&&(nt.fontSeries=t.series),typeof t.fontSeries=="string"&&(nt.fontSeries=t.fontSeries.toLowerCase()),nt.fontSeries&&(nt.fontSeries=(j={bold:"b",medium:"m",normal:"m"}[nt.fontSeries])!=null?j:nt.fontSeries),typeof t.shape=="string"&&(nt.fontShape=t.shape),typeof t.fontShape=="string"&&(nt.fontShape=t.fontShape.toLowerCase()),nt.fontShape&&(nt.fontShape=(X={italic:"it",up:"n",upright:"n",normal:"n"}[nt.fontShape])!=null?X:nt.fontShape),t.variant&&(nt.variant=t.variant.toLowerCase()),t.variantStyle&&(nt.variantStyle=t.variantStyle.toLowerCase());const vt=(ce=t.size)!=null?ce:t.fontSize;return typeof vt=="number"?nt.fontSize=Math.max(1,Math.min(10,vt)):typeof vt=="string"&&(nt.fontSize=(Pe={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[vt.toLowerCase()])!=null?Pe:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[vt]),nt}function V0(e){let[t,r]=Jl(e.selection);if(t=Dp(e,t,"backward"),r=Dp(e,r,"forward"),t===r){const i=e.at(t);if(i.type==="leftright")return e.setSelection(e.offsetOf(i.firstChild)-1,r);if(i.type==="first"&&(i.parent.type==="leftright"||i.parent.type==="surd"))return e.setSelection(t-1,e.offsetOf(i.parent.lastChild)+1);e.setSelection(t-1,r)}else e.setSelection(t,r);return!0}function Dp(e,t,r){var i,s,c;let u=e.at(t);if(!u)return t;const k=r==="forward"?1:-1;if(u.mode==="text"){for(;u&&!(u.mode!=="text"||!f.test(u.value));)t+=k,u=e.at(t);return r==="backward"?t-1:t}if(u.mode==="latex"){if(/[a-zA-Z\*]/.test(u.value))if(r==="backward")for(;u&&u.mode==="latex"&&u.value!=="\\"&&/[a-zA-Z]/.test(u.value);)t+=k,u=e.at(t);else for(;u&&u.mode==="latex"&&/[a-zA-Z\*]/.test(u.value);)t+=k,u=e.at(t);else if(u.value==="{"){if(r==="forward"){for(;u&&u.mode==="latex"&&u.value!=="}";)t+=k,u=e.at(t);return t}return t-1}else if(u.value==="}"){if(r==="backward"){for(;u&&u.mode==="latex"&&u.value!=="{";)t+=k,u=e.at(t);return t-1}return t}return t-1}if(u.mode==="math"){if(u.isDigit()){for(;(i=e.at(t+k))!=null&&i.isDigit();)t+=k;return r==="backward"?t-1:t}if(u.style.variant||u.style.variantStyle){let j=(s=e.at(t))==null?void 0:s.style;for(;j&&j.variant===u.style.variant&&j.variantStyle===u.style.variantStyle;)j=(c=e.at(t+k))==null?void 0:c.style,t+=k;return r==="backward"?t-1:t}return t}return t}o({selectGroup:e=>{const t=V0(e);return t||e.announce("plonk"),t},selectAll:e=>e.setSelection(0,e.lastOffset),extendSelectionForward:e=>is(e,"forward",{extend:!0}),extendSelectionBackward:e=>is(e,"backward",{extend:!0}),extendToNextWord:e=>Pl(e,"forward",{extend:!0}),extendToPreviousWord:e=>Pl(e,"backward",{extend:!0}),extendSelectionUpward:e=>is(e,"upward",{extend:!0}),extendSelectionDownward:e=>is(e,"downward",{extend:!0}),extendToNextBoundary:e=>Pl(e,"forward",{extend:!0}),extendToPreviousBoundary:e=>Pl(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 Qu=null,Xh=0,ec=class lf{static start(t,r,i,s){var c;lf.element=t,(c=lf.controller)==null||c.abort(),lf.controller=new AbortController;const u={signal:lf.controller.signal};"PointerEvent"in window?(t.addEventListener("pointermove",i,u),t.addEventListener("pointerup",s,u),t.addEventListener("pointercancel",s,u),W0(r)&&(lf.pointerId=r.pointerId,t.setPointerCapture(r.pointerId))):(window.addEventListener("mousemove",i,u),window.addEventListener("blur",s,u),window.addEventListener("mouseup",s,u))}static stop(){var t;(t=lf.controller)==null||t.abort(),lf.controller=void 0,typeof lf.pointerId=="number"&&(lf.element.releasePointerCapture(lf.pointerId),lf.pointerId=void 0)}};function W0(e){return e!==null&&globalThis.PointerEvent!==void 0&&e instanceof PointerEvent}function Np(e,t){var r;if(t.buttons>1)return;e.atomBoundsCache=new Map;const i=e;let s,c=!1,u=!1,k="none",j=!1,X=!1;const ce=t.clientX,Pe=t.clientY,nt=Date.now(),vt=i.field,St=setInterval(()=>{j?vt.scroll({top:0,left:vt.scrollLeft-16}):X&&vt.scroll({top:0,left:vt.scrollLeft+16})},32);function Cr(){ec.stop(),c=!1,clearInterval(St),e.element.classList.remove("tracking"),t&&t.preventDefault()}function _n(nn){if(!i.hasFocus()){Cr();return}const Ln=nn.clientX,An=nn.clientY,Si=W0(nn)&&nn.pointerType==="touch"?20:5;if(Date.now()<nt+500&&Math.abs(ce-Ln)<Si&&Math.abs(Pe-An)<Si){nn.preventDefault(),nn.stopPropagation();return}const ra=vt.getBoundingClientRect();X=Ln>ra.right,j=Ln<ra.left;let Hi=s;W0(nn)&&(nn.isPrimary||(Hi=vd(i,nn.clientX,nn.clientY,{bias:0})));const h=vd(i,Ln,An,{bias:Ln<=ce?Ln===ce?0:-1:1});Hi>=0&&h>=0&&(i.model.extendSelectionTo(Hi,h),Il(e)),u&&V0(i.model)}Qu&&Math.abs(Qu.x-ce)<5&&Math.abs(Qu.y-Pe)<5&&Date.now()<Qu.time+500?(Xh+=1,Qu.time=nt):(Qu={x:ce,y:Pe,time:nt},Xh=1);const wr=vt.getBoundingClientRect();if(ce>=wr.left&&ce<=wr.right&&Pe>=wr.top&&Pe<=wr.bottom){if(e.flushInlineShortcutBuffer(),e.adoptStyle="left",s=vd(e,ce,Pe,{bias:0}),s>=0){if(e.element.classList.add("tracking"),t.shiftKey){const nn=e.model.selectionIsCollapsed;e.model.extendSelectionTo(e.model.anchor,s),um(e.model)||nn?k="all":k="selection"}else e.model.at(s).type==="placeholder"?(e.model.setSelection(s-1,s),k="selection"):((r=e.model.at(s).rightSibling)==null?void 0:r.type)==="placeholder"?(e.model.setSelection(s,s+1),k="selection"):(e.model.position=s,um(e.model)?k="all":k="selection");e.defaultStyle={},t.detail===3||Xh>2?(Cr(),(t.detail===3||Xh===3)&&(e.model.selection={ranges:[[0,e.model.lastOffset]]},k="all")):c||(c=!0,ec.start(vt,t,_n,Cr),(t.detail===2||Xh===2)&&(u=!0,V0(e.model),k="all"))}e.hasFocus()||(k="none",e.focus({preventScroll:!0}))}else Qu=null;e.stopCoalescingUndo(),k!=="none"&&(e.model.selectionIsCollapsed&&(k="all"),Il(e)),t.preventDefault()}function kf(e,t,r){if(e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom)return 0;const i=e-(r.left+r.right)/2,s=t-(r.top+r.bottom)/2;return i*i+s*s}function ch(e,t,r,i,s){if(!r.id)return[1/0,null];if(t.has(r.id))return t.get(r.id);const c=nh(e,r);if(!c)return[1/0,null];let u=[1/0,null];if(r.hasChildren&&!r.captureSelection&&i>=c.left&&i<=c.right)for(const k of r.children){const j=ch(e,t,k,i,s);j[0]<=u[0]&&(u=j)}return u[1]||(u=[kf(i,s,c),r]),t.set(r.id,u),u}function gd(e,t,r){const[,i]=ch(e,new Map,e.model.root,t,r);return i}function vd(e,t,r,i){var s;const c=e.field.querySelector(".ML__latex").getBoundingClientRect();if(!c)return 0;if(t>c.right||r>c.bottom+8)return e.model.lastOffset;if(t<c.left||r<c.top-8)return 0;i=i!=null?i:{},i.bias=(s=i.bias)!=null?s:0;let u=gd(e,t,r);const k=[];let j=u;for(;j;)k.unshift(j),j=j.parent;for(const ce of k)if(ce.captureSelection){u=ce;break}let X=e.model.offsetOf(u);if(X<0)return-1;if(u.leftSibling)if(i.bias===0&&u.type!=="placeholder"){const ce=nh(e,u);ce&&t<(ce.left+ce.right)/2&&(X=e.model.offsetOf(u.leftSibling))}else i.bias<0&&(X=e.model.offsetOf(u.leftSibling));return X}var gc=class extends Ls{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="",i="auto",s=typeof t!="string"?t.getData("application/json+mathlive"):"";if(s)try{const c=JSON.parse(s);if(c&&Array.isArray(c)){e.snapshot();const u=La(c),{model:k}=e;k.selectionIsCollapsed||k.deleteAtoms(Jl(k.selection));const j=k.at(k.position);if(j.parent instanceof fs){console.assert(j.parentBranch!==void 0);const X=[];let ce=[];u[0].type==="first"&&u.shift(),u[u.length-1].type==="first"&&u.pop();for(const St of u)St.type==="first"&&ce.length>0?(X.push(ce),ce=[St]):ce.push(St);ce.length>0&&X.push(ce);let Pe=Number(j.parentBranch[0]),nt=Number(j.parentBranch[1]);const vt=j.parent.maxColumns;for(;j.parent.colCount-nt<X.length&&j.parent.colCount<vt;)j.parent.addColumn();j.parent.addChildrenAfter(X[0],j);for(let St=1;St<X.length;St++)nt++,nt>=vt&&(nt=0,j.parent.addRowAfter(Pe),Pe++),j.parent.setCell(Pe,nt,X[St])}else j.parent.addChildrenAfter(u.filter(X=>X.type!=="first"),j);return k.position=k.offsetOf(u[u.length-1]),k.contentDidChange({inputType:"insertFromPaste"}),Il(e),!0}}catch(c){}if(s=typeof t!="string"?t.getData("application/json"):"",s&&window.MathfieldElement.computeEngine)try{const c=JSON.parse(s);if(typeof c=="object"&&"latex"in c&&c.latex&&(r=c.latex),!r){const u=window.MathfieldElement.computeEngine.box(c);u&&!u.has("Error")&&(r=u.latex)}r||(i="latex")}catch(c){}if(!r&&typeof t!="string"&&(r=t.getData("application/x-latex"),r&&(i="latex")),r||(r=typeof t=="string"?t:t.getData("text/plain")),r){let c;return[c,r]=eh(r),i==="auto"&&c&&(i="latex"),e.stopCoalescingUndo(),e.stopRecording(),this.insert(e.model,r,{format:i})&&(e.startRecording(),e.snapshot("paste"),Il(e)),e.startRecording(),!0}return!1}insert(e,t,r){var i,s;const c=typeof t=="string"?t:(s=(i=window.MathfieldElement.computeEngine)==null?void 0:i.box(t).latex)!=null?s:"";if(!r.silenceNotifications&&!e.contentWillChange({data:c,inputType:"insertText"}))return!1;r.insertionMode||(r.insertionMode="replaceSelection"),r.selectionMode||(r.selectionMode="placeholder"),r.format||(r.format="auto");const{silenceNotifications:u}=e;r.silenceNotifications&&(e.silenceNotifications=!0);const k=e.silenceNotifications;e.silenceNotifications=!0;const j={"?":"\\placeholder{}","@":"\\placeholder{}"};j[0]=r.insertionMode==="replaceAll"?"":e.getValue(e.selection,"latex-unstyled"),r.insertionMode==="replaceSelection"&&!e.selectionIsCollapsed?e.deleteAtoms(Jl(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;j[0]?j["@"]=j[0]:typeof t=="string"&&/(^|[^\\])#@/.test(t)&&(X=rg(e),X>=0&&(j["@"]=e.getValue(X,e.position,"latex"))),j[0]||(j[0]=j["?"]);let ce=!1;const Pe=Ln=>(ce=!0,j[Ln]);let[nt,vt]=G0(e,t,Pe,r);if(!vt)return!1;const St=vt.length===1&&vt[0].type==="genfrac";St&&X>=0&&typeof e.mathfield.options.isImplicitFunction=="function"&&e.mathfield.options.isImplicitFunction(e.at(e.position).command)?(j["@"]=j["?"],ce=!1,[nt,vt]=G0(e,t,Pe,r)):X>=0&&e.deleteAtoms([X,e.position]);const{parent:Cr}=e.at(e.position),_n=Cr.hasEmptyBranch("body");if(St&&nt!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&Cr instanceof Ys&&Cr.leftDelim==="("&&_n){const Ln=Cr.parent,An=Cr.parentBranch;Ln.removeChild(Cr),Ln.setChildren(vt,An)}const wr=e.at(e.position);wr.parent.addChildrenAfter(vt,wr),nt==="latex"&&typeof t=="string"&&(Cr==null?void 0:Cr.type)==="root"&&_n&&!ce&&(Cr.verbatimLatex=t),e.silenceNotifications=k;const nn=vt[vt.length-1];if(r.selectionMode==="placeholder"){const Ln=vt.flatMap(An=>[An,...An.children]).find(An=>An.type==="placeholder");if(Ln){const An=e.offsetOf(Ln);e.setSelection(An-1,An),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:c,inputType:"insertText"}),e.silenceNotifications=u,!0}};function G0(e,t,r,i){var s;let c,u=[];if(typeof t!="string"||i.format==="math-json"){const k=window.MathfieldElement.computeEngine;if(!k)return["math-json",[]];[c,t]=["latex",k.box(t).latex],u=hc(t,{context:e.mathfield.context})}else typeof t=="string"&&i.format==="ascii-math"?([c,t]=L0(t,{format:"ascii-math",inlineShortcuts:e.mathfield.options.inlineShortcuts}),u=hc(t,{context:e.mathfield.context}),c!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&X0(u)):(i.format==="auto"||(s=i.format)!=null&&s.startsWith("latex"))&&(i.format==="auto"&&([c,t]=L0(t,{format:"auto",inlineShortcuts:e.mathfield.options.inlineShortcuts})),i.format==="latex"&&([,t]=eh(t)),u=hc(t,{context:e.mathfield.context,args:r}),i.format!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&X0(u));return Ft(u,i.style),[c!=null?c:"latex",u]}function tg(e){if(!e||(console.assert(e[0].type==="first"),e.length>1))return null;const t=e[0];return t instanceof Ys&&t.leftDelim==="("&&t.rightDelim===")"?t.removeBranch("body"):null}function X0(e){if(e){for(let t=0;e[t];t++){const r=e[t];if(r instanceof Ys&&r.leftDelim==="("){let i=0,s=0,c=0;for(let u=0;r.body[u];u++)r.body[u].type==="genfrac"&&(i++,s=u),c++;c===0&&i===1&&(e[t]=r.body[s])}}for(const t of e){for(const r of t.branches)if(!t.hasEmptyBranch(r)){X0(t.branch(r));const i=tg(t.branch(r));i&&t.setChildren(i,r)}if(t instanceof fs)for(const r of t.cells)X0(r)}}}function rg(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 i=!1;if(t.type==="mclose"){const s=Dh[t.value];for(;!t.isFirstSibling&&!(t.type==="mopen"&&t.value===s);)t=t.leftSibling;t.isFirstSibling||(t=t.leftSibling),i=!0}else t.type==="leftright"&&(t=t.leftSibling,i=!0);if(i)for(;!t.isFirstSibling&&(t.isFunction||bd(t));)t=t.leftSibling;else{const s=[];for(;!t.isFirstSibling&&(bd(t)||s.length>0);)t.type==="mclose"&&s.unshift(t.value),t.type==="mopen"&&s.length>0&&t.value===Dh[s[0]]&&s.shift(),t=t.leftSibling}return r===t?-1:e.offsetOf(t)}function bd(e){return e.isDigit()?!0:e.type&&/^(mord|surd|subsup|leftright|mop|mclose)$/.test(e.type)?!e.isExtensibleSymbol:!1}new gc;var gm=class extends Ls{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"),Il(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:i}=e;r.silenceNotifications&&(e.silenceNotifications=!0);const s=e.silenceNotifications;e.silenceNotifications=!0,r.insertionMode==="replaceSelection"&&!e.selectionIsCollapsed?e.deleteAtoms(Jl(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 c=vm(t,e.mathfield.context);if(Ft(c,r.style),!c)return!1;const u=e.at(e.position),k=u.parent.addChildrenAfter(c,u);return e.silenceNotifications=s,r.selectionMode==="before"||(r.selectionMode==="item"?e.setSelection(e.anchor,e.offsetOf(k)):k&&(e.position=e.offsetOf(k))),e.contentDidChange({data:t,inputType:"insertText"}),e.silenceNotifications=i,!0}};function vm(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 "),hc(e,{context:t,parseMode:"text"})}new gm;function cA(e){return{value:e.model.getValue(),selectionIsCollapsed:e.model.selectionIsCollapsed,canUndo:e.canUndo(),canRedo:e.canRedo(),style:e.selectionStyle,mode:e.model.mode}}var Es=4,AA=20,Tl=2*(AA+Es),J0=(e,t)=>`
<line x1="${e+AA}" y1="${t+AA}"
x2="${e>t?e+AA:7*AA+10*Es}"
y2="${e<t?t+AA:7*AA+10*Es}"/>
<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>`,Y0=(e,t)=>`
<line x1="${e+AA}" y1="${t+AA}"
x2="${e>t?e+AA:7*AA+10*Es}"
y2="${e<t?t+AA:7*AA+10*Es}"/>
<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>`,Jd=(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>`,Ah=`
<svg class="MLEP__array-buttons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox=
"-2 -2 ${8*AA+10*Es+5} ${8*AA+10*Es+5}">
<rect
class="MLEP__array-insert-background rows"
x="0"
y="${Tl+Es}"
height="${3*Tl}"
width="${Tl}"
rx="${Tl/2}"/>
<rect
class="MLEP__array-insert-background columns"
x="${Tl+Es}"
y="0"
height="${Tl}"
width="${3*Tl}"
rx="${Tl/2}"/>
<g data-command='"moveDown"'>
${Jd(2*(Es+Tl),2*Es+3*Tl,0)}
</g>
<g data-command='"moveUp"'>
${Jd(2*(Es+Tl),2*Es+Tl,180)}
</g>
<g data-command='"moveToNextWord"'>
${Jd(2*Es+3*Tl,2*(Es+Tl),-90)}
</g>
<g data-command='"moveToPreviousWord"'>
${Jd(2*Es+Tl,2*(Es+Tl),90)}
</g>
<g>
<g data-command='"addColumnBefore"'>
${J0(2*Es+Tl,Es)}
</g>
<g data-command='"removeColumn"'>
${Y0(2*Es+2*Tl,Es)}
</g>
<g data-command='"addColumnAfter"'>
${J0(2*Es+3*Tl,Es)}
</g>
<g data-command='"addRowBefore"'>
${J0(Es,2*Es+Tl)}
</g>
<g data-command='"removeRow"'>
${Y0(Es,2*Es+2*Tl)}
</g>
<g data-command='"addRowAfter"'>
${J0(Es,2*Es+3*Tl)}
</g>
</svg>`,ng=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>`,Jh=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>`,q0=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>`,ho=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>`,ig=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>`,ag=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>`,og=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>`,sg=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>`,yd={matrix:ng,pmatrix:Jh,bmatrix:ho,Bmatrix:q0,vmatrix:ig,Vmatrix:ag},wd={cases:og,rcases:sg,Bmatrix:q0};function lg(e){var t,r;const i=(t=e.model.parentEnvironment)==null?void 0:t.array;if(!i)return;let s=0;i.forEach(St=>{(!s||St.length>s)&&(s=St.length)});let c=document.getElementById("mathlive-environment-popover");c||(c=_p("mathlive-environment-popover"),ud("environment-popover"),ud("core"),c.setAttribute("aria-hidden","true"));let u;const k=c.querySelector(".MLEP__environment-controls");k?u=k:(u=document.createElement("div"),c.innerHTML="",c.appendChild(u)),u.className="MLEP__environment-controls",u.style.display="flex",u.style.width="100%",u.style.height="100%",u.style.boxSizing="border-box",u.innerHTML=Ah;let j=[],X="";const ce=e.model.parentEnvironment.environmentName;if(Ph(ce)){const St=Yh(ce);X=yd[St]("active");const Cr=yd,{[St]:_n}=Cr,wr=$(Cr,[v(St)]);j=Object.values(wr).map(nn=>nn("inactive"))}else if(Th(ce)){const St=tp(ce);X=wd[St]("active");const Cr=wd,{[St]:_n}=Cr,wr=$(Cr,[v(St)]);j=Object.values(wr).map(nn=>nn("inactive"))}else zm(ce)&&(X=yd.matrix("active"),j=Object.values(wd).map(St=>St("inactive")));const Pe=document.createElement("div");Pe.className="MLEP__environment-delimiter-controls",Pe.style.display="flex",Pe.style.flexDirection="column",Pe.innerHTML=`
<div class='MLEP__array-delimiter-options'>
${X}
${j.join("")}
</div>`,X&&u.appendChild(Pe),u.querySelectorAll("[data-command]").forEach(St=>{const Cr=St.dataset.command;let _n=Cr;try{_n=JSON.parse(Cr)}catch(wr){}St.addEventListener("mousedown",wr=>wr.preventDefault()),_n&&St.addEventListener("click",()=>e.executeCommand(_n))});const vt=(r=e.field)==null?void 0:r.getBoundingClientRect();vt&&(c.style.top=`${window.scrollY+(vt.top-c.clientHeight-15)}px`,c.style.left=`${vt.left+20}px`,c.classList.add("is-visible"))}function Op(){const e=document.getElementById("mathlive-environment-popover");e==null||e.classList.remove("is-visible")}function ep(){document.getElementById("mathlive-environment-popover")&&(Ym("mathlive-environment-popover"),dd("environment-popover"),dd("core"))}function uh(e){if(!e.hasFocus())return;let t=!1;if(e.model.mode==="math"){const r=e.model.parentEnvironment;if(r!=null&&r.array&&wp(r.environmentName)){const i=e.options.environmentPopoverPolicy;t=i==="auto"||i==="on"}}t?lg(e):Op()}function Yh(e){return e.replace("*","")}function tp(e){return e==="dcases"?"cases":e}function qh(e){const t=getComputedStyle(e).direction;return t==="ltr"||t==="rtl"?t:"ltr"}function bm(e,t,r){return t==="left"||t==="leading"&&r==="ltr"||t==="trailing"&&r==="rtl"?e.left:e.right}function e0(e,t,r,i){return r==="middle"?e-t/2:r==="start"&&i==="rtl"||r==="end"&&i==="ltr"||r==="top"||r==="right"?Math.max(0,e-t):e}function Pp(e,t,r,i){return r==="middle"?e-t/2:r==="start"&&i==="ltr"||r==="end"&&i==="rtl"||r==="top"||r==="right"?e:e-t}function t0(e,t){var r,i,s;const c=(r=qh(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 u=e.getBoundingClientRect(),k=Number.isFinite(t.maxHeight)?Math.min(t.maxHeight,window.innerHeight):window.innerHeight;let j=Math.min(k,(i=t.height)!=null?i:u.height),X=e0(t.location.y,j,t.verticalPos,c);X+j>window.innerHeight-8&&(t.alternateLocation?(X=e0(t.alternateLocation.y,j,t.verticalPos,c),X+j>window.innerHeight-8&&(X=void 0)):X=void 0),Number.isFinite(X)||(X=Math.max(8,window.innerHeight-8-j),8+j>window.innerHeight-8&&(e.style.bottom="8px")),j=Math.min(X+j,window.innerHeight-8)-X;const ce=Number.isFinite(t.maxWidth)?Math.min(t.maxWidth,window.innerWidth):window.innerWidth;let Pe=Math.min(ce,(s=t.width)!=null?s:u.width),nt=e0(t.location.x,Pe,t.horizontalPos,c);nt+Pe>window.innerWidth-8&&(t.alternateLocation?(nt=Pp(t.alternateLocation.x,Pe,t.verticalPos,c),nt+Pe>window.innerWidth-8&&(nt=void 0)):nt=void 0),Number.isFinite(nt)||(nt=Math.max(8,window.innerWidth-8-Pe),8+Pe>window.innerWidth-8&&(e.style.right="8px")),Pe=Math.min(nt+Pe,window.innerWidth-8)-nt,c==="rtl"?e.style.right=`${Math.ceil(window.innerWidth-nt-Pe).toString()}px`:e.style.left=`${Math.ceil(nt).toString()}px`,e.style.top=`${Math.ceil(X).toString()}px`,j!==u.height&&(e.style.height=`${Math.ceil(j).toString()}px`),Pe!==u.width&&(e.style.width=`${Math.ceil(Pe).toString()}px`)}function r0(e,t){return Math.hypot(t.x-e.x,t.y-e.y)}function Yd(e){return"submenu"in e}function RA(e){return"type"in e&&e.type==="command"||"onMenuSelect"in e||"id"in e}function n0(e){return"type"in e&&e.type==="divider"}function Df(e){return"type"in e&&e.type==="heading"}var Tp={};function rp(e){let t=Tp[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 i=document.createElement("template");i.innerHTML=r,Tp[e]=i,t=i}}if(t){if("content"in t)return t.content.cloneNode(!0);const r=document.createElement("svg");return r.innerHTML=t.innerHTML,r}}var qd=80,ef=class{constructor(e,t){this._element=null;var r;this.parentMenu=t,this._declaration=e,Yd(e)?(this.type="submenu",this.submenu=new dh(e.submenu,{parentMenu:t,submenuClass:e.submenuClass,columnCount:e.columnCount})):this.type=(r=e.type)!=null?r:"command",this.hasCheck=RA(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,i;const s=this._declaration;if(n0(s)){this.enabled=!1,this.checked=!1;return}Df(s)&&(this.enabled=!1,this.checked=!1,this.visible=!0),RA(s)&&(this.checked=RA(s)&&((t=Nf(s.checked,e))!=null?t:!1)),(RA(s)||Yd(s))&&(this.enabled=(r=Nf(s.enabled,e))!=null?r:!0,this.visible=(i=Nf(s.visible,e))!=null?i:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(e),this.submenu.visible||(this.visible=!1))),(RA(s)||Df(s)||Yd(s))&&(this.label=Nf(s.label,e),this.tooltip=Nf(s.tooltip,e),this.ariaLabel=Nf(s.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(rp("checkmark"))):this.checked==="mixed"?(e.setAttribute("aria-checked","mixed"),e.append(rp("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),RA(this._declaration)&&this._declaration.keyboardShortcut){const r=document.createElement("kbd");r.innerHTML=uu(this._declaration.keyboardShortcut),e.append(r)}this.type==="submenu"&&e.append(rp("trailing-chevron"))}get element(){if(this._element)return this._element;if(n0(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,(RA(this._declaration)||Df(this._declaration)||Yd(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(!RA(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()},qd)},qd)}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(),i=qh(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:bm(r,"trailing",i),y:r.top-4},alternateLocation:{x:bm(r,"leading",i),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 i=e.clientX-t.clientX;if(ym(i,t.clientY-e.clientY,r)<=.2)return!1;let c="right";if(this.submenu.element){const u=this.submenu.element.getBoundingClientRect(),k=this.element.getBoundingClientRect();u.left<k.left+k.width/2&&(c="left")}return c==="right"?i>0:i<0}};function ym(e,t,r){return Math.hypot(e,t)/r}function Nf(e,t){return e===void 0||typeof e!="function"?e:(t!=null||(t={alt:!1,control:!1,shift:!1,meta:!1}),e(t))}var dh=class km{constructor(t,r){this._element=null,this._activeMenuItem=null,this._dirty=!0;var i,s;this.parentMenu=(i=r==null?void 0:r.parentMenu)!=null?i:null,this._submenuClass=r==null?void 0:r.submenuClass,this.columnCount=(s=r==null?void 0:r.columnCount)!=null?s: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(i=>i.onCreate?i.onCreate(i,this):new ef(i,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,i,s;this._menuItems.forEach(X=>X.updateState(t));const c=this.hasCheck;this.hasCheck=this._menuItems.some(X=>X.visible&&X.hasCheck),this.hasCheck!==c&&this._menuItems.forEach(X=>X.updateState(t));let u,k=0;for(const X of this._menuItems)X.type==="heading"?(u&&k===0&&(u.visible=!1),u=X,k=0):X.type==="divider"&&u?(u.visible=k>0,u=void 0,k=0):u&&X.visible&&(k+=1);u&&(u.visible=k>0);let j=!0;for(const X of this._menuItems)X.type==="divider"?(X.visible=!j,j=!0):X.visible&&(j=!1);(r=this.activeMenuItem)!=null&&r.visible||(this.activeMenuItem=null),!((i=this.activeMenuItem)!=null&&i.enabled)&&((s=this.activeMenuItem)==null?void 0:s.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:i}of this._menuItems)r&&i&&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,i,s,c;if(this.rootMenu.cancelDelayedOperation(),t!==this._activeMenuItem){if(this.activeMenuItem){const u=this.activeMenuItem;u.active=!1,(r=u.submenu)==null||r.hide()}if(!((i=t==null?void 0:t.visible)==null||i)){this._activeMenuItem=null;return}this._activeMenuItem=t,t&&(t.active=!0)}t?(s=t.element)==null||s.focus({preventScroll:!0}):(c=this._element)==null||c.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let t=0,r=!1;const i=this._menuItems;for(;!r&&t<=i.length-1;){const s=i[t];r=s.type!=="divider"&&s.visible&&s.enabled,t+=1}return r?i[t-1]:null}get lastMenuItem(){this.updateIfDirty();const t=this._menuItems;let r=t.length-1,i=!1;for(;!i&&r>=0;){const s=t[r];i=s.type!=="divider"&&s.visible&&s.enabled,r-=1}return i?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),i=this._menuItems.indexOf(this.lastMenuItem);let s=this._menuItems.indexOf(this._activeMenuItem),c=1;for(;s>=r&&s<=i;){s+=t>0?1:-1;const u=this._menuItems[s];if(!u)break;if(u.visible&&u.enabled){if(c===Math.abs(t))return this._menuItems[s];c+=1}}return t>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(t){this.updateIfDirty();const i=this._menuItems.filter(s=>s.visible&&s.enabled).indexOf(t);return i<0?-1:i%this.columnCount}static get collator(){return km._collator||(km._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),km._collator}findMenuItem(t){var r;this.updateIfDirty();const i=this._menuItems.filter(k=>k.type!=="divider"&&k.visible&&k.enabled);if(i.length===0)return null;const s=Math.max(...i.map(k=>k.label.length))-t.length;if(s<0)return null;let c=null,u=0;for(;u<s&&!c;)c=(r=i.find(k=>km.collator.compare(t,k.label.substring(u,t.length))===0))!=null?r:null,u++;return c}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&&t0(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,i,s,c;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),se()&&((t=this._element)!=null&&t.popover)&&this.element.hidePopover(),(i=(r=this.parentMenu)==null?void 0:r.element)==null||i.focus(),(c=(s=this._element)==null?void 0:s.parentNode)==null||c.removeChild(this._element)}set openSubmenu(t){var r,i,s,c;const u=t!==null;((r=this.activeMenuItem)==null?void 0:r.type)==="submenu"&&((i=this.activeMenuItem.element)==null||i.setAttribute("aria-expanded",u.toString())),(c=(s=this.activeMenuItem)==null?void 0:s.element)==null||c.classList.toggle("is-submenu-open",u),this.isSubmenuOpen=u}},Up=class fv extends dh{constructor(t,r){var i;super(t),this.state="closed",this.typingBufferResetTimer=0,this.hysteresisTimer=0,this._updating=!1,this._host=(i=r==null?void 0:r.host)!=null?i:null,this.isDynamic=t.some(He),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(t){Tu(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=LA(t)),t.stopImmediatePropagation()}handleKeydownEvent(t){var r,i,s;if(t.key==="Tab"||t.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=LA(t));let c=!0;const u=this.activeSubmenu,k=u.activeMenuItem;switch(t.key){case" ":case"Space":case"Return":case"Enter":k==null||k.select(LA(t));break;case"ArrowRight":if((k==null?void 0:k.type)==="submenu")k.select(LA(t)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!k)u.activeMenuItem=u.firstMenuItem;else{const j=(r=u.getMenuItemColumn(k))!=null?r:-1;if(j>=0&&j<((i=u.columnCount)!=null?i:1)-1){const X=u.nextMenuItem(1);X&&(u.activeMenuItem=X)}}break;case"ArrowLeft":if(u===this.rootMenu)k||(u.activeMenuItem=u.firstMenuItem);else if((k&&(s=u.getMenuItemColumn(k))!=null?s:-1)<=0||!k){u.hide();const X=u.parentMenu.activeMenuItem;if(X){const{element:ce}=X;ce==null||ce.focus(),ce==null||ce.classList.remove("is-submenu-open")}}else{const X=u.nextMenuItem(-1);X&&(u.activeMenuItem=X)}break;case"ArrowDown":u.activeMenuItem=u.nextMenuItem(u.columnCount);break;case"ArrowUp":u.activeMenuItem=u.nextMenuItem(-u.columnCount);break;case"Home":case"PageUp":u.activeMenuItem=u.firstMenuItem;break;case"End":case"PageDown":u.activeMenuItem=u.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const j=u.findMenuItem(this.typingBuffer);j&&(u.activeMenuItem=j),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(JA(t)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=t.key;const j=u.findMenuItem(this.typingBuffer);j&&(u.activeMenuItem=j),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else c=!1}c&&(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 Hc.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),Hc.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),Hc.state==="open"&&Hc.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(F(g({},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,Hc.element.parentElement.focus(),super.hide(),this.state="closed",this.disconnectScrim()),this._onDismiss&&(this._onDismiss(),this._onDismiss=void 0))}scheduleOperation(t){this.cancelDelayedOperation();const r=fv.SUBMENU_DELAY;if(r<=0){t();return}this.hysteresisTimer=setTimeout(()=>{this.hysteresisTimer=0,t()},r)}cancelDelayedOperation(){this.hysteresisTimer&&(clearTimeout(this.hysteresisTimer),this.hysteresisTimer=0)}};Up.SUBMENU_DELAY=120;var z=Up;function He(e){return n0(e)?!1:typeof e.label=="function"||typeof e.ariaLabel=="function"||typeof e.tooltip=="function"||(RA(e)||Yd(e))&&(typeof e.enabled=="function"||typeof e.visible=="function")||RA(e)&&typeof e.checked=="function"?!0:Yd(e)?e.submenu.some(He):!1}var Bt=class{};Bt.DELAY=300,Bt.MAX_DISTANCE=10;function Zt(e){return new Promise((t,r)=>{const i=Pu(e);i||t(!1);let s=i;const c=setTimeout(()=>{u.abort(),t(r0(s,i)<Bt.MAX_DISTANCE)},Bt.DELAY),u=new AbortController,k=u.signal;for(const j of["pointermove","pointerup","pointercancel"])window.addEventListener(j,X=>{if(X.type==="pointerup"||X.type==="pointercancel")clearTimeout(c),u.abort(),t(!1);else if(X.type==="pointermove"){const ce=Pu(X);ce&&(s=ce)}},{passive:!0,signal:k})})}function gr(e,t,r){return hp(this,null,function*(){if(e.type==="contextmenu"){const i=e;if(r.show({target:t,location:Pu(i),modifiers:LA(i)}))return e.preventDefault(),e.stopPropagation(),!0}if(e.type==="keydown"){const i=e;if(i.code==="ContextMenu"||i.code==="F10"&&i.shiftKey){const s=t==null?void 0:t.getBoundingClientRect();if(s&&r.show({target:t,location:{x:Math.ceil(s.left+s.width/2),y:Math.ceil(s.top+s.height/2)},modifiers:LA(i)}))return e.preventDefault(),e.stopPropagation(),!0}}if(e.type==="pointerdown"&&e.pointerType!=="mouse"&&e.button===0){let i=e.target;for(;i&&t!==i;)i=i.parentNode;if(!i||!r.visible)return!1;const s=Pu(e);if(yield Zt(e))return r.state!=="closed"?!1:(r.show({target:t,location:s}),!0)}return!1})}var un={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};fe(Object.keys(un),"{body:auto}",{createAtom:e=>new ih(F(g({},e),{body:qe(e.args[0]),accentChar:un[e.command.slice(1)]}))}),fe(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:e=>{const t=be(qe(e.args[0]));return new ih(F(g({},e),{body:qe(e.args[0]),svgAccent:e.command.slice(1)+(t.length>5?"4":["1","1","2","2","3","3"][t.length])}))}}),fe(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:e=>new ih(F(g({},e),{body:qe(e.args[0]),svgAccent:"overarc"}))}),fe(["underarc","underparen"],"{body:auto}",{createAtom:e=>new mc(F(g({},e),{body:qe(e.args[0]),svgBelow:"underarc"}))}),fe("utilde","{body:auto}",{createAtom:e=>{const t=qe(e.args[0]),r=be(t),i="widetilde"+(r.length>5?"4":["1","1","2","2","3","3"][r.length]);return new mc(F(g({},e),{body:t,svgBelow:i,boxType:Od(t)}))}}),fe("^","{:string}",{createAtom:e=>{var t;return new Ur(F(g({},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:"^"}))}}),fe("`","{:string}",{createAtom:e=>{var t;return new Ur(F(g({},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:"`"}))}}),fe("'","{:string}",{createAtom:e=>{var t;return new Ur(F(g({},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:"'"}))}}),fe('"',"{:string}",{createAtom:e=>{var t,r;return new Ur(F(g({},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]:'"'}))}}),fe(".","{:string}",{createAtom:e=>{var t,r;return new Ur(F(g({},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]:"."}))}}),fe("=","{:string}",{createAtom:e=>{var t,r;return new Ur(F(g({},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]:"="}))}}),fe("~","{:string}",{createAtom:e=>{var t;return new Ur(F(g({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"}))}}),fe("c","{:string}",{createAtom:e=>{var t;return new Ur(F(g({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={c:"\xE7",C:"\xC7"}[e.args[0]])!=null?t:""}))}}),fe("enclose","{notation:string}[style:string]{body:auto}",{createAtom:e=>{var t,r;const i=e.args,s={strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"none",svgStrokeStyle:void 0,borderStyle:void 0,style:(t=e.style)!=null?t:{}};if(i[1]){const u=i[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const k of u){const j=k.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(j)s.strokeWidth=j[1],s.strokeStyle=j[2],s.strokeColor=j[3];else{const X=k.match(/\s*([a-z]*)\s*=\s*"(.*)"/);X&&(X[1]==="mathbackground"?s.backgroundcolor=X[2]:X[1]==="mathcolor"?s.strokeColor=X[2]:X[1]==="padding"?s.padding=X[2]:X[1]==="shadow"&&(s.shadow=X[2]))}}s.strokeStyle==="dashed"?s.svgStrokeStyle="5,5":s.strokeStyle==="dotted"&&(s.svgStrokeStyle="1,5")}s.borderStyle=`${s.strokeWidth} ${s.strokeStyle} ${s.strokeColor}`;const c={};return((r=i[0])!=null?r:"").split(/[, ]/).filter(u=>u.length>0).forEach(u=>{c[u.toLowerCase()]=!0}),new sc(e.command,qe(i[2]),c,s)}}),fe("cancel","{body:auto}",{createAtom:e=>{var t;return new sc(e.command,qe(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:{}})}}),fe("bcancel","{body:auto}",{createAtom:e=>{var t;return new sc(e.command,qe(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:{}})}}),fe("xcancel","{body:auto}",{createAtom:e=>{var t;return new sc(e.command,qe(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:{}})}}),fe(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:e=>{var t;return new mc(F(g({},e),{body:qe((t=e.args)==null?void 0:t[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:e.command.slice(1)}))}}),fe("overbrace","{:auto}",{createAtom:e=>new mc(F(g({},e),{body:qe(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:e.command.slice(1)}))}),fe(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:e=>new mc(F(g({},e),{body:qe(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:e.command.slice(1)}))}),fe(["underbrace"],"{:auto}",{createAtom:e=>new mc(F(g({},e),{body:qe(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:e.command.slice(1)}))}),fe(["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,i,s,c;return new mc(F(g({},e),{svgBody:e.command.slice(1),above:((r=qe((t=e.args)==null?void 0:t[1]))==null?void 0:r.length)===0?void 0:qe((i=e.args)==null?void 0:i[1]),below:(c=qe((s=e.args)==null?void 0:s[0]))!=null?c: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)}`}),fe(["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 GA(e.command.slice(1),F(g({},e),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),fe(["liminf","limsup"],"",{ifMode:"math",createAtom:e=>new GA({"\\liminf":"lim inf","\\limsup":"lim sup"}[e.command],F(g({},e),{limits:"over-under",variant:"main"}))}),fe(["lim","mod"],"",{ifMode:"math",createAtom:e=>new GA(e.command.slice(1),F(g({},e),{limits:"over-under",variant:"main"}))}),fe(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:e=>new GA(e.command.slice(1),F(g({},e),{limits:"over-under",isFunction:!0,variant:"main"}))}),fe(["ang"],"{:math}",{ifMode:"math",createAtom:e=>new Ur(F(g({},e),{body:qe(e.args[0])})),serialize:(e,t)=>`\\ang{${e.bodyToLatex(t)}}`,render:(e,t)=>{const r=e.createBox(t),i=r.caret;r.caret=void 0;const s=new zr("\xB0",{style:F(g({},e.style),{variant:"normal",variantStyle:"up"})});return new zr([r,s],{type:"inner",isSelected:e.isSelected,caret:i})}}),fe("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:e=>new Sp(F(g({},e),{body:qe(e.args[1]),index:e.args[0]?qe(e.args[0]):void 0}))}),fe(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:e=>{const t=g({},e),r=e.command,i=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 Ef(i[0]?qe(i[0]):[new Du],i[1]?qe(i[1]):[new Du],t)},serialize:(e,t)=>{const r=e.aboveToLatex(t),i=e.belowToLatex(t);return/^[0-9]$/.test(r)&&/^[0-9]$/.test(i)?`${e.command}${r}${i}`:Bs(e.command,r,i)}}),fe(["brace","brack"],"",{infix:!0,createAtom:e=>new Ef(qe(e.args[0]),qe(e.args[1]),F(g({},e),{hasBarLine:!1,leftDelim:e.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:e.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(e,t)=>Ao([e.aboveToLatex(t),e.command,e.belowToLatex(t)])}),fe(["over","atop","choose"],"",{infix:!0,createAtom:e=>{let t,r;const i=e.args;return e.command==="\\choose"&&(t="(",r=")"),new Ef(qe(i[0]),qe(i[1]),F(g({},e),{hasBarLine:e.command==="\\over",leftDelim:t,rightDelim:r}))},serialize:(e,t)=>Ao([e.aboveToLatex(t),e.command,e.belowToLatex(t)])}),fe(["overwithdelims","atopwithdelims"],"{numer:auto}{denom:auto}{left-delim:delim}{right-delim:delim}",{infix:!0,createAtom:e=>{var t,r;const i=e.args;return new Ef(qe(i[0]),qe(i[1]),F(g({},e),{leftDelim:(t=i[2])!=null?t:".",rightDelim:(r=i[3])!=null?r:".",hasBarLine:!1}))},serialize:(e,t)=>`${e.aboveToLatex(t)} ${e.command}${e.leftDelim}${e.rightDelim}${e.belowToLatex(t)}`}),fe("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:e=>new Ef(qe(e.args[0]),qe(e.args[1]),F(g({},e),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),fe(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:e=>new Bp({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)],F(g({},e),{limits:"auto",variant:"main"}))}),fe("smallint","",{ifMode:"math",createAtom:e=>new GA("\u222B",F(g({},e),{limits:"adjacent",variant:"main"}))});var In={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"};fe(Object.keys(In),"",{ifMode:"math",createAtom:e=>{const t=e.command,r=In[t.slice(1)];return new Bp(r,F(g({},e),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[r]}))}}),fe(["Re","Im"],"",{ifMode:"math",createAtom:e=>new GA({"\\Re":"\u211C","\\Im":"\u2111"}[e.command],F(g({},e),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),fe("middle","{:delim}",{ifMode:"math",createAtom:e=>{var t;return new Kc(F(g({},e),{delim:(t=e.args[0])!=null?t:"|",size:1}))}}),fe("the","{:value}",{createAtom:e=>new Ur(F(g({},e),{captureSelection:!0,verbatimLatex:null})),render:(e,t)=>{var r;const i=new Eo({parent:t},e.style);let s="";e.isSelected&&(s+=" ML__selected");const c=i.evaluate(e.args[0]);return new zr(((r=Dl(c))!=null?r:"").split("").map(u=>new zr(u,{type:"ord",classes:s,mode:e.mode,isSelected:e.isSelected,style:g({variant:"main"},e.style)})),{type:"lift",style:e.style,caret:e.caret,isSelected:e.isSelected,classes:s}).wrap(i)},serialize:e=>{var t;return`\\the${(t=Dl(e.args[0]))!=null?t:"\\relax"}`}}),fe("mathtip","{:auto}{:math}",{createAtom:e=>new hd(F(g({},e),{body:qe(e.args[0]),tooltip:qe(e.args[1]),content:"math"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${Ur.serialize([e.tooltip],F(g({},t),{defaultMode:"math"}))}}`}),fe("texttip","{:auto}{:text}",{createAtom:e=>new hd(F(g({},e),{body:qe(e.args[0]),tooltip:qe(e.args[1]),content:"text"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${Ur.serialize([e.tooltip],F(g({},t),{defaultMode:"text"}))}}`}),fe("error","{:math}",{createAtom:e=>new Ur(F(g({},e),{body:qe(e.args[0])})),serialize:(e,t)=>`\\error{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__error"})}),fe("ensuremath","{:math}",{createAtom:e=>new Ur(F(g({},e),{body:qe(e.args[0])})),serialize:(e,t)=>`${e.command}{${e.bodyToLatex(F(g({},t),{defaultMode:"math"}))}}`}),fe("color","{:value}",{applyStyle:(e,t,r)=>{var i,s;return{verbatimColor:(i=Dl(t[0]))!=null?i:void 0,color:r.toColor((s=t[0])!=null?s:{string:"red"})}}}),fe("textcolor","{:value}{content:auto*}",{applyStyle:(e,t,r)=>{var i,s;return{verbatimColor:(i=Dl(t[0]))!=null?i:void 0,color:r.toColor((s=t[0])!=null?s:{string:"red"})}}}),fe("boxed","{content:math}",{createAtom:e=>new fc(F(g({},e),{body:qe(e.args[0]),framecolor:{string:"black"}}))}),fe("colorbox","{:value}{:text*}",{applyStyle:(e,t,r)=>{var i,s;return{verbatimBackgroundColor:(i=Dl(t[0]))!=null?i:void 0,backgroundColor:r.toBackgroundColor((s=t[0])!=null?s:{string:"yellow"})}}}),fe("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:e=>{var t,r;return new fc(F(g({},e),{body:qe(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,i;return t.skipStyles?e.bodyToLatex(F(g({},t),{defaultMode:"text"})):Bs(e.command,(r=Dl(e.framecolor))!=null?r:"",(i=Dl(e.backgroundcolor))!=null?i:"",e.bodyToLatex(F(g({},t),{defaultMode:"text"})))}}),fe("bbox","[:bbox]{body:auto}",{createAtom:e=>{var t;const r=e.args[0],i=qe(e.args[1]);return r?new fc(F(g({},e),{body:i,padding:r.padding,border:r.border,backgroundcolor:(t=r.backgroundcolor)!=null?t:void 0})):new fc(F(g({},e),{body:i}))},serialize:(e,t)=>{var r,i;if(t.skipStyles)return e.bodyToLatex(t);let s=e.command;if(Number.isFinite(e.padding)||e.border!==void 0||e.backgroundcolor!==void 0){const c=[];e.padding&&c.push((r=Dl(e.padding))!=null?r:""),e.border&&c.push(`border: ${e.border}`),e.backgroundcolor&&c.push((i=Dl(e.backgroundcolor))!=null?i:""),s+=`[${c.join(",")}]`}return Bs(s,e.bodyToLatex(t))}}),fe(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:e=>new Ur(F(g({},e),{body:qe(e.args[0])})),render:(e,t)=>{const r=new Eo({parent:t,mathstyle:e.command.slice(1)},e.style),i=Ur.createBox(r,e.body,{type:"lift"});return e.caret&&(i.caret=e.caret),e.bind(t,i)},serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`{${Ao([e.command,e.bodyToLatex(t)])}}`}),fe(["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]})}),fe("fontseries","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontSeries:(r=t[0])!=null?r:"auto"}}}),fe("fontshape","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontShape:(r=t[0])!=null?r:"auto"}}}),fe("fontfamily","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontFamily:(r=t[0])!=null?r:"roman"}}}),fe("selectfont","",{ifMode:"text",applyStyle:()=>({})}),fe("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),fe(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:e=>new Ur(F(g({},e),{body:qe(e.args[0])})),serialize:(e,t)=>`${e.command}{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__boldsymbol"})}),fe("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),fe("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),fe("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),fe("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),fe("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),fe("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),fe("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),fe("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),fe("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),fe("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),fe("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),fe("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),fe("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),fe("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),fe("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),fe("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),fe("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),fe("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),fe("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),fe("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),fe("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),fe("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),fe("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),fe("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),fe("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),fe("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),fe("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),fe(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),fe(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),fe("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),fe("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),fe("mbox","{:text}",{ifMode:"math",createAtom:e=>new Ur(F(g({},e),{type:"mord",body:qe(e.args[0]),mode:"math"})),serialize:(e,t)=>Bs("\\mbox",e.bodyToLatex(F(g({},t),{defaultMode:"text"})))}),fe("text","{:text}",{ifMode:"math",applyMode:"text"}),fe(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:e=>new Ur(F(g({},e),{body:qe(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:""})}}),fe(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:e=>new Ur(F(g({},e),{body:qe(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 i=e.createBox(t);return i.cssId=(r=e.args[0])!=null?r:"",i}}),fe("htmlData","{data:string}{content:auto}",{createAtom:e=>new Ur(F(g({},e),{body:qe(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 i=e.createBox(t);return i.htmlData=(r=e.args[0])!=null?r:"",i}}),fe(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:e=>new Ur(F(g({},e),{body:qe(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 i=e.createBox(t);return i.htmlStyle=(r=e.args[0])!=null?r:"",i}}),fe("em","{:rest}",{createAtom:e=>new Ur(F(g({},e),{body:qe(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"})}),fe("emph","{:auto}",{createAtom:e=>new Ur(F(g({},e),{body:qe(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 aa={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}};fe(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:e=>{var t;return new Sc(F(g({},e),{delim:(t=e.args[0])!=null?t:".",size:aa[e.command].size,delimType:aa[e.command].mclass}))}}),fe(["hspace","hspace*"],"{width:value}",{createAtom:e=>{var t;return new iA(F(g({},e),{width:(t=e.args[0])!=null?t:{dimension:0}}))}}),fe(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:e=>{var t;return new iA(F(g({},e),{width:(t=e.args[0])!=null?t:{dimension:0}}))}}),fe("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:e=>new Ur(e),render:(e,t)=>{let r=0;const i=t.mathstyle.id;(i===bf||i===UA)&&(r=1),(i===ou||i===ds)&&(r=2),(i===Qc||i===Xl)&&(r=3);const s=qe(e.args[r]);return Ur.createBox(t,s)},serialize:(e,t)=>`\\mathchoice{${Ur.serialize(e.args[0],t)}}{${Ur.serialize(e.args[1],t)}}{${Ur.serialize(e.args[2],t)}}{${Ur.serialize(e.args[3],t)}}`}),fe("mathop","{:auto}",{createAtom:e=>new Ur(F(g({},e),{type:"mop",body:qe(e.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(e,t)=>{var r;let i=Ur.createBox(t,e.body);if(e.superscript||e.subscript){const s=(r=e.subsupPlacement)!=null?r:"auto";i=s==="over-under"||s==="auto"&&t.isDisplayStyle?e.attachLimits(t,{base:i}):e.attachSupsub(t,{base:i})}return new zr(e.bind(t,i),{type:"op",isSelected:e.isSelected,classes:"op-group"})},serialize:(e,t)=>{const r=[Bs(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)),Ao(r)}}),fe(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:e=>new Ur(F(g({},e),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[e.command],body:qe(e.args[0])}))}),fe(["operatorname","operatorname*"],"{operator:math}",{createAtom:e=>{const t=qe(e.args[0]).map(r=>{var i;return r.type!=="first"&&(r.type="mord",r.value=(i={"\u2217":"*","\u2212":"-"}[r.value])!=null?i:r.value,r.isFunction=!1,!r.style.variant&&!r.style.variantStyle&&(r.style.variant="main",r.style.variantStyle="up")),r});return new Ur(F(g({},e),{type:"mop",body:t,isFunction:!0,limits:e.command==="\\operatorname"?"adjacent":"over-under"}))},render:(e,t)=>{var r;let i=Ur.createBox(t,e.body);if(e.superscript||e.subscript){const s=(r=e.subsupPlacement)!=null?r:"auto";i=s==="over-under"||s==="auto"&&t.isDisplayStyle?e.attachLimits(t,{base:i}):e.attachSupsub(t,{base:i})}return e.caret&&(i.caret=e.caret),new zr(e.bind(t,i),{type:"op",isSelected:e.isSelected,classes:"op-group"})},serialize:(e,t)=>{const r=[Bs(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)),Ao(r)}}),fe(["char","unicode"],"{charcode:value}",{createAtom:e=>new Ur(F(g({},e),{type:e.mode==="text"?"text":"mord"})),serialize:e=>{var t;return`${e.command}${Dl((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)}}),fe("rule","[raise:value]{width:value}{thickness:value}",{createAtom:e=>new Ur(e),render:(e,t)=>{var r,i,s;const c=new Eo({parent:t,mathstyle:"textstyle"},e.style),u=c.toEm((r=e.args[0])!=null?r:{dimension:0}),k=c.toEm((i=e.args[1])!=null?i:{dimension:10}),j=c.toEm((s=e.args[2])!=null?s:{dimension:10}),X=new zr(null,{classes:"rule",type:"ord"});return X.width=k,X.height=j+u,X.depth=-u,X.setStyle("border-right-width",k,"em"),X.setStyle("border-top-width",j,"em"),X.setStyle("border-color",e.style.color),X.setStyle("vertical-align",u,"em"),e.isSelected&&X.setStyle("opacity","50%"),e.bind(c,X),e.caret&&(X.caret=e.caret),X.wrap(t)},serialize:e=>`\\rule${e.args[0]?`[${Dl(e.args[0])}]`:""}{${Dl(e.args[1])}}{${Dl(e.args[2])}}`}),fe(["overline","underline"],"{:auto}",{createAtom:e=>new Ur(F(g({},e),{body:qe(e.args[0])})),render:(e,t)=>{const r=e.command.substring(1),i=new Eo({parent:t,mathstyle:"cramp"},e.style),s=Ur.createBox(i,e.body);if(!s)return null;const c=i.metrics.defaultRuleThickness/i.scalingFactor,u=new zr(null,{classes:r+"-line"});u.height=c,u.maxFontSize=c*1.125*i.scalingFactor;let k;return r==="overline"?k=new bl({shift:0,children:[{box:s},3*c,{box:u},c]}):k=new bl({top:s.height,children:[c,{box:u},3*c,{box:s}]}),e.caret&&(k.caret=e.caret),new zr(k,{classes:r,type:"ignore"})}}),fe("overset","{:auto}{base:auto}",{createAtom:e=>{const t=qe(e.args[1]);return new mc(F(g({},e),{above:qe(e.args[0]),body:t,skipBoundary:!1,boxType:Od(t)}))},serialize:(e,t)=>Bs(e.command,e.aboveToLatex(t),e.bodyToLatex(t))}),fe("underset","{:auto}{base:auto}",{createAtom:e=>{const t=qe(e.args[1]);return new mc(F(g({},e),{below:qe(e.args[0]),body:t,skipBoundary:!1,boxType:Od(t)}))},serialize:(e,t)=>Bs(e.command,e.belowToLatex(t),e.bodyToLatex(t))}),fe("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:e=>{const t=qe(e.args[2]);return new mc(F(g({},e),{above:qe(e.args[0]),below:qe(e.args[1]),body:t,skipBoundary:!1,boxType:Od(t)}))},serialize:(e,t)=>Bs(e.command,e.belowToLatex(t),e.bodyToLatex(t))}),fe(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:e=>new mc(F(g({},e),{body:qe(e.args[2]),above:qe(e.args[1]),below:qe(e.args[0]),skipBoundary:!1,boxType:e.command==="\\stackrel"?"rel":"bin"})),serialize:(e,t)=>Bs(e.command,e.aboveToLatex(t),e.bodyToLatex(t))}),fe("smash","[:string]{:auto}",{createAtom:e=>{var t,r,i,s;return new Ou(F(g({},e),{body:qe(e.args[1]),smashHeight:(r=(t=e.args[0])==null?void 0:t.includes("t"))!=null?r:!0,smashDepth:(s=(i=e.args[0])==null?void 0:i.includes("b"))!=null?s:!0}))}}),fe(["vphantom"],"{:auto}",{createAtom:e=>new Ou(F(g({},e),{body:qe(e.args[0]),isInvisible:!0,smashWidth:!0}))}),fe(["hphantom"],"{:auto}",{createAtom:e=>new Ou(F(g({},e),{body:qe(e.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),fe(["phantom"],"{:auto}",{createAtom:e=>new Ou(F(g({},e),{body:qe(e.args[0]),isInvisible:!0}))}),fe("not","{:math}",{createAtom:e=>{const t=qe(e.args[0]);return t.length===0?new Ur(F(g({},e),{type:"mrel",value:"\uE020"})):new Ur(F(g({},e),{body:[new Jc(F(g({},e),{body:"\uE020",align:"right"})),...t],captureSelection:!0}))},serialize:(e,t)=>{const r=e.args[0],i=r&&typeof r=="object"&&"group"in r;return e.value!=="\uE020"?i?`\\not{${Ur.serialize(r.group,t)}}`:`\\not${Ur.serialize(r,t)}`:i?"\\not{}":"\\not"},render:(e,t)=>{if(e.value)return e.createBox(t);const i=e.args[0]&&typeof e.args[0]=="object"&&"group"in e.args[0]?"ord":Od(qe(e.args[0])),s=Ur.createBox(t,e.body,{type:i});return e.caret&&(s.caret=e.caret),e.bind(t,s)}}),fe(["ne","neq"],"",{createAtom:e=>new Ur(F(g({},e),{type:"mrel",body:[new Jc(F(g({},e),{body:"\uE020",align:"right",boxType:"rel"})),new Ur(F(g({},e),{value:"="}))],captureSelection:!0})),serialize:e=>e.command}),fe("rlap","{:auto}",{createAtom:e=>new Jc(F(g({},e),{body:qe(e.args[0]),align:"right"}))}),fe("llap","{:auto}",{createAtom:e=>new Jc(F(g({},e),{body:qe(e.args[0]),align:"left"}))}),fe("mathrlap","{:math}",{createAtom:e=>new Jc(F(g({},e),{body:qe(e.args[0]),align:"left"}))}),fe("mathllap","{:math}",{createAtom:e=>new Jc(F(g({},e),{body:qe(e.args[0]),align:"left"}))}),fe("raisebox","{:value}{:text}",{createAtom:e=>{var t;return new fc(F(g({},e),{body:qe(e.args[1]),padding:{dimension:0},offset:(t=e.args[0])!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r;return Bs("\\raisebox",(r=Dl(e.offset))!=null?r:"0pt",e.bodyToLatex(t))}}),fe("raise","{:value}{:auto}",{createAtom:e=>{var t;return new fc(F(g({},e),{body:qe(e.args[1]),padding:{dimension:0},offset:(t=e.args[0])!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r;return Bs("\\raise",(r=Dl(e.offset))!=null?r:"0pt",e.bodyToLatex(t))}}),fe("lower","{:value}{:auto}",{createAtom:e=>{var t;return new fc(F(g({},e),{body:qe(e.args[1]),padding:{dimension:0},offset:(t=_A(e.args[0],-1))!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r,i;return Bs("\\lower",(i=Dl(_A((r=e.offset)!=null?r:{dimension:0},-1)))!=null?i:"0pt",e.bodyToLatex(t))}}),Y("0123456789/@.?!"),Be(65,90),Be(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"),fe(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:e=>new iA(e)}),fe("space","",{createAtom:e=>new iA(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 ha="<mo>&#x2061;</mo>",Ga="<mo>&#8290;</mo>";function no(e){return e.replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function da(e,t){return!e||!t.generateID?"":` extid="${e}"`}function tc(e,t,r){var i,s,c,u,k,j,X,ce,Pe,nt,vt;let St=!1;t=t!=null?t:e.atoms.length;let Cr="",_n="",wr=e.atoms[e.index];const nn=(s=(i=wr.style)==null?void 0:i.variant)!=null?s:"",Ln=(u=(c=wr.style)==null?void 0:c.variantStyle)!=null?u:"";let An="";if(nn||Ln){const ra=Xe(wr.value,(k=wr.style)==null?void 0:k.variant,(j=wr.style)==null?void 0:j.variantStyle);if(ra!==wr.value)return e.index+=1,Cr=`<mi${da(wr.id,r)}>${ra}</mi>`,fl(Cr,e,r)||(e.mathML+=Cr,e.lastType="mi"),!0;An=(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"}[Ln+nn])!=null?X:"",An=` mathvariant="${An}"`}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(wr.command==="!")return e.index+=1,Cr="<mo>!</mo>",fl(Cr,e,r)||(e.mathML+=Cr,e.lastType="mo"),!0;if(Si[wr.command]){e.index+=1;let ra=`<mi${da(wr.id,r)}${An}>${Si[wr.command]}</mi>`;return(e.lastType==="mi"||e.lastType==="mn"||e.lastType==="mtext"||e.lastType==="fence")&&(ra=Ga+ra),fl(ra,e,r)||(e.mathML+=ra,e.lastType="mi"),!0}if(wr.command==="\\operatorname")_n=ju(wr.body),e.index+=1;else if(nn||Ln)for(;e.index<t&&(wr.type==="mord"||wr.type==="macro")&&!wr.isDigit()&&nn===((Pe=(ce=wr.style)==null?void 0:ce.variant)!=null?Pe:"")&&Ln===((vt=(nt=wr.style)==null?void 0:nt.variantStyle)!=null?vt:"");)_n+=ju([wr]),e.index+=1,wr=e.atoms[e.index];else(wr.type==="mord"||wr.type==="macro")&&!wr.isDigit()&&(_n+=ju([wr]),e.index+=1);if(_n.length>0){St=!0,Cr=`<mi${An}>${_n}</mi>`;const ra=e.lastType;Cr.endsWith(">f</mi>")||Cr.endsWith(">g</mi>")?(Cr+=ha,e.lastType="applyfunction"):e.lastType=/^<mo>(.*)<\/mo>$/.test(Cr)?"mo":"mi",fl(Cr,e,r)||((ra==="mi"||ra==="mn"||ra==="mtext"||ra==="fence")&&(Cr=Ga+Cr),e.mathML+=Cr)}return St}function Ic(e){return e.index<e.atoms.length&&e.atoms[e.index].superscript&&e.atoms[e.index].type==="subsup"}function wl(e){let t=-1,r=e.index,i=!1,s=!1;for(;r<e.atoms.length&&!i&&!s;){const c=e.atoms[r];i=!c.isDigit(),s=!i&&c.superscript!==void 0,r++}return s&&(t=r-1),t}function fl(e,t,r){var i;let s=t.atoms[t.index-1];if(!s)return!1;if(!s.superscript&&!s.subscript)if(((i=t.atoms[t.index])==null?void 0:i.type)==="subsup")s=t.atoms[t.index],t.index+=1;else return!1;const c=t.lastType;t.lastType="";const u=Ro(s.superscript,r);t.lastType="";const k=Ro(s.subscript,r);if(t.lastType=c,!u&&!k)return!1;let j="";return u&&k?j=`<msubsup>${e}${k}${u}</msubsup>`:u?j=`<msup>${e}${u}</msup>`:k&&(j=`<msub>${e}${k}</msub>`),t.mathML+=j,t.lastType="",!0}function Fc(e,t,r){t=t!=null?t:e.atoms.length;const i=e.index;let s="";for(;e.index<t&&e.atoms[e.index].mode==="text";)s+=e.atoms[e.index].value?e.atoms[e.index].value:" ",e.index+=1;return s.length>0?(e.mathML+=`<mtext ${da(e.atoms[i].id,r)}>${s}</mtext>`,e.lastType="mtext",!0):!1}function uA(e,t,r){t=t!=null?t:e.atoms.length;const i=e.index;let s="",c=wl(e);for(c>=0&&c<t&&(t=c);e.index<t&&e.atoms[e.index].isDigit();)s+=e.atoms[e.index].asDigit(),e.index+=1;return s.length<=0?!1:(s="<mn"+da(e.atoms[i].id,r)+">"+s+"</mn>",c<0&&Ic(e)&&(c=e.index,e.index+=1),fl(s,e,r)||(e.mathML+=s,e.lastType="mn"),!0)}function Ku(e,t,r){let i=!1;t=t!=null?t:e.atoms.length;let s="",c="";if(e.index<t&&e.atoms[e.index].type==="mopen"){let u=!1,k=0;const j=e.index;let X=-1,ce=j+1;for(;ce<t&&!u;)e.atoms[ce].type==="mopen"?k+=1:e.atoms[ce].type==="mclose"&&(k-=1),k===-1&&(u=!0,X=ce),ce+=1;u&&(s="<mrow>",s+=Hu(e.atoms[j],r),s+=Ro(e.atoms,r,j+1,X),s+=Hu(e.atoms[X],r),s+="</mrow>",e.index=X+1,(e.lastType==="mi"||e.lastType==="mn"||e.lastType==="mfrac"||e.lastType==="fence")&&(e.mathML+=Ga),fl(s,e,r)&&(i=!0,e.lastType="",s=""),c="fence")}return s.length>0&&(i=!0,e.mathML+=s,e.lastType=c),i}function qA(e,t,r){let i=!1;t=t!=null?t:e.atoms.length;let s="",c="";const u=e.atoms[e.index];if(!u)return!1;const k={"\\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(k[u.command]){e.index+=1;const j=`<mo${da(u.id,r)}>${k[u.command]}</mo>`;return fl(j,e,r)||(e.mathML+=j,e.lastType="mo"),!0}if(e.index<t&&(u.type==="mbin"||u.type==="mrel"))s+=tf(e.atoms[e.index],r),e.index+=1,c="mo";else if(e.index<t&&(u.type==="mop"||u.type==="operator"||u.type==="extensible-symbol")){if(u.subsupPlacement==="over-under"&&(u.superscript||u.subscript)){const j=Hu(u,r);return u.superscript&&u.subscript?(s+="<munderover>"+j,s+=Ro(u.subscript,r),s+=Ro(u.superscript,r),s+="</munderover>"):u.superscript?(s+="<mover>"+j,s+=Ro(u.superscript,r),s+="</mover>"):u.subscript&&(s+="<munder>"+j,s+=Ro(u.subscript,r),s+="</munder>"),e.mathML+=s,e.lastType="mo",e.index+=1,!0}{const j=e.atoms[e.index],X=j.value==="\\operatorname",ce=X?'<mi class="MathML-Unit"'+da(j.id,r)+">"+ju(j.value)+"</mi>":Hu(j,r);s+=ce,!X&&!/^<mo>(.*)<\/mo>$/.test(ce)?(s+=ha,c="applyfunction"):c=X?"mi":"mo"}(e.lastType==="mi"||e.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(s)&&(s=Ga+s),e.index+=1}return s.length>0&&(i=!0,fl(s,e,r)||(e.mathML+=s,e.lastType=c)),i}function Ro(e,t,r,i){t!=null||(t={});const s={atoms:[],index:r!=null?r:0,mathML:"",lastType:""};if(typeof e=="number"||typeof e=="boolean")s.mathML=e.toString();else if(typeof e=="string")s.mathML=e;else if(e instanceof Ur)s.mathML=tf(e,t);else if(Array.isArray(e)){s.atoms=e;let c=0;for(i=i||(e?e.length:0);s.index<i;)if(Fc(s,i,t)||uA(s,i,t)||tc(s,i,t)||qA(s,i,t)||Ku(s,i,t))c+=1;else if(s.index<i){let u=tf(s.atoms[s.index],t);s.lastType==="mn"&&u.length>0&&s.atoms[s.index].type==="genfrac"&&(u="<mo>&#x2064;</mo>"+u),s.atoms[s.index].type==="genfrac"?s.lastType="mfrac":s.lastType="",s.index+=1,fl(u,s,t)?c+=1:u.length>0&&(s.mathML+=u,c+=1)}c>1&&(s.mathML="<mrow>"+s.mathML+"</mrow>")}return s.mathML}function Hu(e,t){let r="";const i=ju(e.value);return i&&(r="<mo"+da(e.id,t)+">"+i+"</mo>"),r}function ju(e){if(!e)return"";if(typeof e=="string")return no(e);if(!Array.isArray(e)&&typeof e.body=="string")return no(e.body);let t="";for(const r of e)typeof r.value=="string"&&(t+=r.value);return no(t)}function tf(e,t){var r,i,s,c,u,k,j,X,ce,Pe,nt,vt,St,Cr,_n,wr,nn,Ln,An,Si,ra,Hi;if(e.mode==="text")return`<mi${da(e.id,t)}>${e.value}</mi>`;const h={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"},B={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let Q="",ge="",Ke,Ve,Ge,ot,At,ft;const{command:Ht}=e;if(e.command==="\\error")return`<merror${da(e.id,t)}>${Ro(e.body,t)}</merror>`;const vr={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},xt={"\\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":Q=Ro(e.body,t);break;case"array":if((e.leftDelim&&e.leftDelim!=="."||e.rightDelim&&e.rightDelim!==".")&&(Q+="<mrow>",e.leftDelim&&e.leftDelim!=="."&&(Q+="<mo>"+(vr[e.leftDelim]||e.leftDelim)+"</mo>")),Q+="<mtable",e.colFormat){for(Q+=' columnalign="',Ge=0;Ge<e.colFormat.length;Ge++)e.colFormat[Ge].align&&(Q+={l:"left",c:"center",r:"right"}[e.colFormat[Ge].align]+" ");Q+='"'}for(Q+=">",Ve=0;Ve<e.array.length;Ve++){for(Q+="<mtr>",Ke=0;Ke<e.array[Ve].length;Ke++)Q+="<mtd>"+Ro(e.array[Ve][Ke],t)+"</mtd>";Q+="</mtr>"}Q+="</mtable>",(e.leftDelim&&e.leftDelim!=="."||e.rightDelim&&e.rightDelim!==".")&&(e.rightDelim&&e.rightDelim!=="."&&(Q+="<mo>"+(vr[e.leftDelim]||e.rightDelim)+"</mo>"),Q+="</mrow>");break;case"genfrac":(e.leftDelim||e.rightDelim)&&(Q+="<mrow>"),e.leftDelim&&e.leftDelim!=="."&&(Q+="<mo"+da(e.id,t)+">"+(vr[e.leftDelim]||e.leftDelim)+"</mo>"),e.hasBarLine?(Q+="<mfrac>",Q+=Ro(e.above,t)||"<mi>&nbsp;</mi>",Q+=Ro(e.below,t)||"<mi>&nbsp;</mi>",Q+="</mfrac>"):(Q+="<mtable"+da(e.id,t)+">",Q+="<mtr>"+Ro(e.above,t)+"</mtr>",Q+="<mtr>"+Ro(e.below,t)+"</mtr>",Q+="</mtable>"),e.rightDelim&&e.rightDelim!=="."&&(Q+="<mo"+da(e.id,t)+">"+(vr[e.rightDelim]||e.rightDelim)+"</mo>"),(e.leftDelim||e.rightDelim)&&(Q+="</mrow>");break;case"surd":e.hasEmptyBranch("above")?(Q+="<msqrt"+da(e.id,t)+">",Q+=Ro(e.body,t),Q+="</msqrt>"):(Q+="<mroot"+da(e.id,t)+">",Q+=Ro(e.body,t),Q+=Ro(e.above,t),Q+="</mroot>");break;case"leftright":const ir=e,mr=ir.leftDelim;Q="<mrow>",mr&&mr!=="."&&(Q+=`<mo${da(e.id,t)}>${(r=vr[mr])!=null?r:mr}</mo>`),e.body&&(Q+=Ro(e.body,t));const Xr=ir.matchingRightDelim();Xr&&Xr!=="."&&(Q+=`<mo${da(e.id,t)}>${(i=vr[Xr])!=null?i:Xr}</mo>`),Q+="</mrow>";break;case"sizeddelim":case"delim":Q+=`<mo${da(e.id,t)}>${vr[e.value]||e.value}</mo>`;break;case"accent":Q+='<mover accent="true"'+da(e.id,t)+">",Q+=Ro(e.body,t),Q+="<mo>"+(xt[Ht]||e.accent)+"</mo>",Q+="</mover>";break;case"line":case"overlap":break;case"overunder":At=e.above,ot=e.below,(e.svgAbove||At)&&(e.svgBelow||ot)?ft=e.body:At&&At.length>0?(ft=e.body,(c=(s=e.body)==null?void 0:s[0])!=null&&c.below?(ot=e.body[0].below,ft=e.body[0].body):((k=(u=e.body)==null?void 0:u[0])==null?void 0:k.type)==="first"&&((X=(j=e.body)==null?void 0:j[1])!=null&&X.below)&&(ot=e.body[1].below,ft=e.body[1].body)):ot&&ot.length>0&&(ft=e.body,(Pe=(ce=e.body)==null?void 0:ce[0])!=null&&Pe.above?(At=e.body[0].above,ft=e.body[0].body):((vt=(nt=e.body)==null?void 0:nt[0])==null?void 0:vt.type)==="first"&&((Cr=(St=e.body)==null?void 0:St[1])!=null&&Cr.above)&&(At=e.body[1].overscript,ft=e.body[1].body)),(e.svgAbove||At)&&(e.svgBelow||ot)?(Q+=`<munderover ${da(e.id,t)}>`,Q+=(_n=h[e.svgBody])!=null?_n:Ro(ft,t),Q+=(wr=h[e.svgBelow])!=null?wr:Ro(ot,t),Q+=(nn=h[e.svgAbove])!=null?nn:Ro(At,t),Q+="</munderover>"):e.svgAbove||At?(Q+=`<mover ${da(e.id,t)}>`+((Ln=h[e.svgBody])!=null?Ln:Ro(ft,t)),Q+=(An=h[e.svgAbove])!=null?An:Ro(At,t),Q+="</mover>"):(e.svgBelow||ot)&&(Q+=`<munder ${da(e.id,t)}>`+((Si=h[e.svgBody])!=null?Si:Ro(ft,t)),Q+=(ra=h[e.svgBelow])!=null?ra:Ro(ot,t),Q+="</munder>");break;case"placeholder":Q+="?";break;case"mord":{Q=typeof e.value=="string"?e.value:Ht,Ht==="\\char"?Q="&#x"+("000000"+e.args[0].number.toString(16)).slice(-4)+";":Q.length>0&&Q.startsWith("\\")&&(typeof e.value=="string"&&e.value.charCodeAt(0)>255?Q="&#x"+("000000"+e.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof e.value=="string"?Q=e.value.charAt(0):(console.error("Did not expect this"),Q=""));const Br=/\d/.test(Q)?"mn":"mi";Q=`<${Br}${da(e.id,t)}>${no(Q)}</${Br}>`;break}case"mbin":case"mrel":case"minner":Q=Hu(e,t);break;case"mpunct":Q='<mo separator="true"'+da(e.id,t)+">"+Ht+"</mo>";break;case"mop":case"operator":case"extensible-symbol":e.body!=="\u200B"&&(Q="<mo"+da(e.id,t)+">",Q+=Ht==="\\operatorname"?e.body:Ht||e.body,Q+="</mo>");break;case"box":Q='<menclose notation="box"',e.backgroundcolor&&(Q+=' mathbackground="'+e.backgroundcolor+'"'),Q+=da(e.id,t)+">"+Ro(e.body,t)+"</menclose>";break;case"spacing":Q+='<mspace width="'+((Hi=B[Ht])!=null?Hi:0)+'em"/>';break;case"enclose":Q='<menclose notation="';for(const Br in e.notation)Object.prototype.hasOwnProperty.call(e.notation,Br)&&e.notation[Br]&&(Q+=ge+Br,ge=" ");Q+=da(e.id,t)+'">'+Ro(e.body,t)+"</menclose>";break;case"prompt":Q='<menclose notation="roundexbox""">'+Ro(e.body,t)+"</menclose>";break;case"space":Q+="&nbsp;";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":Q+=Hu(e,t);break;case"mclose":Q+=Hu(e,t);break;case"macro":{const Br=e.command+ju(e.macroArgs);Br&&(Q+=`<mo ${da(e.id,t)}>${Br}</mo>`)}break;case"latexgroup":Q+=Ro(e.body,t);break;case"latex":Q+="<mtext"+da(e.id,t)+">"+e.value+"</mtext>";break;case"tooltip":Q+=Ro(e.body,t);break;case"text":Q+=`<mtext ${da(e.id,t)}x>${e.value}</mtext>`;break;default:if(e.command==="\\displaystyle")return`<mrow ${da(e.id,t)} displaystyle="true">${Ro(e.body,t)}</mrow>`;if(e.command==="\\textstyle")return`<mrow ${da(e.id,t)} displaystyle="false">${Ro(e.body,t)}</mrow>`;console.info("Unexpected element in conversion to MathML:",e)}return Q}var zu={"\\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"},Of={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 i0(e){let t="";return e.startsWith("\\")&&(t=" "+e.replace("\\","")+" "),t}function Mc(e){let t=0;if(_(e))for(const r of e)r.type!=="first"&&(t+=1);return t===1}function a0(e){if(_(e)){for(const t of e)if(t.type!=="first"&&t.id)return t.id.toString()}return""}function fh(e){let t="";if(_(e))for(const r of e)r.type!=="first"&&typeof r.value=="string"&&(t+=r.value);return t}function Rp(e){return e?e.map(t=>t.value).join(""):""}function io(e,t){var r,i,s,c,u;function k(ce){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(ce)?` <say-as interpret-as="character">${ce}</say-as>`:/[A-Z]/.test(ce)?`capital <say-as interpret-as="character">${ce.toLowerCase()}</say-as>`:ce:/[a-z]/.test(ce)?" '"+ce.toUpperCase()+"'":/[A-Z]/.test(ce)?" 'capital "+ce.toUpperCase()+"'":ce}function j(ce){return"<emphasis>"+ce+"</emphasis>"}if(!t)return"";let X="";if(_(t)){let ce=!1,Pe=!1;for(let nt=0;nt<t.length;nt++)t[nt].type!=="first"&&(t[nt].mode!=="text"&&(Pe=!1),nt<t.length-2&&t[nt].type==="mopen"&&t[nt+2].type==="mclose"&&t[nt+1].type==="mord"?(X+=" of ",X+=j(io(e,t[nt+1])),nt+=2):t[nt].mode==="text"?Pe?X+=(r=t[nt].value)!=null?r:" ":(Pe=!0,X+=io("text",t[nt])):t[nt].isDigit()?ce?X+=t[nt].asDigit():(ce=!0,X+=io(e,t[nt])):(ce=!1,X+=io(e,t[nt])))}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 ce="",Pe="",nt="",vt=!1;const{command:St}=t;switch(St){case"\\vec":return"vector "+io(e,t.body);case"\\acute":return io(e,t.body)+" acute";case"\\grave":return io(e,t.body)+" grave";case"\\dot":return"dot over"+io(e,t.body);case"\\ddot":return"double dot over"+io(e,t.body);case"\\mathring":return"ring over"+io(e,t.body);case"\\tilde":case"\\widetilde":return"tilde over"+io(e,t.body);case"\\bar":return io(e,t.body)+" bar";case"\\breve":return io(e,t.body)+" breve";case"\\check":case"\\widecheck":return"check over "+io(e,t.body);case"\\hat":case"\\widehat":return"hat over"+io(e,t.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+io(e,t.body);case"\\underarc":case"\\underparen":return"arc under "+io(e,t.body)}switch(t.type){case"prompt":const Cr=t.body.length>1?'start input . <break time="500ms"/> '+io(e,t.body)+'. <break time="500ms"/> end input':"blank";X+=' <break time="300ms"/> '+Cr+'. <break time="700ms"/>'+((i=t.correctness)!=null?i:"")+' . <break time="700ms"/> ';break;case"array":const _n=t.array,wr=t.environmentName;if(Object.keys(Of).includes(wr)){X+=` begin ${Of[wr]} `;for(let An=0;An<_n.length;An++){An>0&&(X+=","),X+=` row ${An+1} `;for(let Si=0;Si<_n[An].length;Si++)Si>0&&(X+=","),X+=` column ${Si+1}: `,X+=io("math",_n[An][Si])}X+=` end ${Of[wr]} `}break;case"group":St==="\\ne"?X+=" not equal ":(St==="\\not"&&(X+=" not "),X+=io("math",t.body));break;case"root":X+=io("math",t.body);break;case"genfrac":if(ce=io("math",t.above),Pe=io("math",t.below),Mc(t.above)&&Mc(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 "}[fh(t.above)+"/"+fh(t.below)];Si?X=Si:X+=ce+" over "+Pe}else X+=' the fraction <break time="150ms"/>'+ce+' over <break time="150ms"/>'+Pe+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(nt=io("math",t.body),t.hasEmptyBranch("above"))X+=Mc(t.body)?" the square root of "+nt+" , ":' the square root of <break time="200ms"/>'+nt+'. <break time="200ms"/> End square root';else{let An=io("math",t.above);An=An.trim();const Si=An.replace(/<mark([^/]*)\/>/g,"");Si==="3"?X+=' the cube root of <break time="200ms"/>'+nt+'. <break time="200ms"/> End cube root':Si==="n"?X+=' the nth root of <break time="200ms"/>'+nt+'. <break time="200ms"/> End root':X+=' the root with index: <break time="200ms"/>'+An+', of <break time="200ms"/>'+nt+'. <break time="200ms"/> End root'}break;case"leftright":{const An=t;X+=(s=An.leftDelim?zu[An.leftDelim]:void 0)!=null?s:An.leftDelim,X+=io("math",t.body),X+=(c=An.rightDelim?zu[An.rightDelim]:void 0)!=null?c:An.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const nn=St.replace(/^\\/g,""),Ln=rt()[nn];Ln&&(Ln!=null&&Ln.expand?X+=io("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(St==="\\mathbin"||St==="\\mathrel"||St==="\\mathopen"||St==="\\mathclose"||St==="\\mathpunct"||St==="\\mathord"||St==="\\mathinner"){X=io(e,t.body);break}let An=t.isDigit()?t.asDigit():t.value,Si=t.command;if((t.type==="delim"||t.type==="sizeddelim")&&(Si=t.value,An=Si),e==="text")X+=An;else{if(t.type==="mbin"&&(X+='<break time="150ms"/>'),An){const ra=zu[An]||(Si?zu[Si.trim()]:"");if(ra)X+=" "+ra;else{const Hi=Si?i0(Si.trim()):"";X+=Hi||k(An)}}else X+=io("math",t.body);t.type==="mbin"&&(X+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(t.value!=="\u200B"){const An=t.command;if(An==="\\sum")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Si=io("math",t.superscript);Si=Si.trim();let ra=io("math",t.subscript);ra=ra.trim(),X+=' the summation from <break time="200ms"/>'+ra+'<break time="200ms"/> to <break time="200ms"/>'+Si+'<break time="200ms"/> of <break time="150ms"/>',vt=!0}else if(t.hasEmptyBranch("subscript"))X+=" the summation of";else{let Si=io("math",t.subscript);Si=Si.trim(),X+=' the summation from <break time="200ms"/>'+Si+'<break time="200ms"/> of <break time="150ms"/>',vt=!0}else if(An==="\\prod")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Si=io("math",t.superscript);Si=Si.trim();let ra=io("math",t.subscript);ra=ra.trim(),X+=' the product from <break time="200ms"/>'+ra+'<break time="200ms"/> to <break time="200ms"/>'+Si+'<break time="200ms"/> of <break time="150ms"/>',vt=!0}else if(t.hasEmptyBranch("subscript"))X+=" the product of ";else{let Si=io("math",t.subscript);Si=Si.trim(),X+=' the product from <break time="200ms"/>'+Si+'<break time="200ms"/> of <break time="150ms"/>',vt=!0}else if(An==="\\int")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Si=io("math",t.superscript);Si=Si.trim();let ra=io("math",t.subscript);ra=ra.trim(),X+=' the integral from <break time="200ms"/>'+j(ra)+'<break time="200ms"/> to <break time="200ms"/>'+j(Si)+' <break time="200ms"/> of ',vt=!0}else X+=' the integral of <break time="200ms"/> ';else if(typeof t.value=="string"){const Si=(u=zu[t.value])!=null?u:t.command?zu[t.command]:void 0;X+=Si||" "+t.value}else t.command&&(t.command==="\\mathop"?X+=io("math",t.body):t.command==="\\operatorname"?X+=Rp(t.body):X+=t.command.startsWith("\\")?" "+t.command.slice(1):" "+t.command)}break;case"enclose":nt=io("math",t.body),X+=" crossed out "+nt+". End crossed out.";break;case"space":case"spacing":break}if(!vt&&!t.hasEmptyBranch("superscript")){let Cr=io(e,t.superscript);Cr=Cr.trim();const _n=Cr.replace(/<[^>]*>/g,"");if(Mc(t.superscript)){if(e==="math"){const wr=a0(t.superscript);wr&&(X+='<mark name="'+wr+'"/>')}_n==="\u2032"?X+=" prime ":_n==="2"?X+=" squared ":_n==="3"?X+=" cubed ":Number.isNaN(Number.parseInt(_n))?X+=" to the "+Cr+"; ":X+=' to the <say-as interpret-as="ordinal">'+_n+"</say-as> power; "}else Number.isNaN(Number.parseInt(_n))?X+=" raised to the "+Cr+"; ":X+=' raised to the <say-as interpret-as="ordinal">'+_n+"</say-as> power; "}if(!vt&&!t.hasEmptyBranch("subscript")){let Cr=io("math",t.subscript);Cr=Cr.trim(),X+=Mc(t.subscript)?" sub "+Cr:" subscript "+Cr+". End subscript. "}}return X}function hl(e){var t,r;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const s=Ro(e);if(s){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(t=window.MathfieldElement.textToSpeechRulesOptions)!=null?t:{},window.MathfieldElement.textToSpeechRulesOptions=F(g({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=F(g({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=F(g({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const c=(r=window.SRE)!=null?r:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&c.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let u="";try{u=c.toSpeech(s)}catch(k){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",k)}return u}return""}let i=io("math",e);if(window.MathfieldElement.textToSpeechMarkup==="ssml"){let s="";window.MathfieldElement.speechEngineRate&&(s='<prosody rate="'+window.MathfieldElement.speechEngineRate+'">'),i='<?xml version="1.0"?><speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"><amazon:auto-breaths>'+s+"<p><s>"+i+"</s></p>"+(s?"</prosody>":"")+"</amazon:auto-breaths></speak>"}else window.MathfieldElement.textToSpeechMarkup==="mac"&&q()==="macos"?i=i.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,""):i=i.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return i}var bu={"\\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"},rf={"\\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 wm(e){let t="";for(const r of e){const i=t[t.length-1];i!==void 0&&/\d/.test(i)&&/^\d/.test(r)&&(t+=" "),t+=r}return t}function hs(e){var t,r,i,s,c,u,k,j,X,ce,Pe,nt,vt;if(!e)return"";if(_(e)){if(e.length===0)return"";if(e[0].mode==="latex")return e.map(hs).join("");if(e[0].mode==="text"){let Ln=0,An="";for(;((t=e[Ln])==null?void 0:t.mode)==="text";)An+=e[Ln].body?hs(e[Ln].body):e[Ln].value,Ln++;return`"${An}" ${hs(e.slice(Ln))}`}let wr=0;const nn=[];for(;e[wr]&&e[wr].mode==="math";){let Ln="";for(;e[wr]&&e[wr].type==="mord"&&/\d/.test(e[wr].value);)Ln+=e[wr++].value;Ln?nn.push(Ln):nn.push(hs(e[wr++]))}return nn.push(hs(e.slice(wr))),wm(nn)}if(e.mode==="text")return`"${e.value}"`;let St="";const{command:Cr}=e;let _n;if(Cr==="\\placeholder")return`(${hs(e.body)})`;switch(e.type){case"accent":const wr={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[Cr];St=`${wr!=null?wr:""} ${hs(e.body)} `;break;case"first":return"";case"latexgroup":return e.body.map(Hi=>Hi.value).join("");case"group":case"root":St=(r=bu[Cr])!=null?r:hs(e.body);break;case"genfrac":{const Hi=e;(Hi.leftDelim||Hi.rightDelim)&&(St=Hi.leftDelim==="."||!Hi.leftDelim?"{:":Hi.leftDelim),Hi.hasBarLine?(St+="(",St+=hs(Hi.above),St+=")/(",St+=hs(Hi.below),St+=")"):(St+="("+hs(Hi.above)+"),",St+="("+hs(Hi.below)+")"),(Hi.leftDelim||Hi.rightDelim)&&(St+=Hi.rightDelim==="."||!Hi.rightDelim?"{:":Hi.rightDelim)}break;case"surd":St+=e.hasEmptyBranch("above")?"sqrt("+hs(e.body)+")":"root("+hs(e.above)+")("+hs(e.body)+")";break;case"latex":St=e.value;break;case"leftright":{const Hi=e,h=Hi.leftDelim;St+=h==="."||!h?"{:":h,St+=hs(Hi.body);const B=Hi.matchingRightDelim();St+=B==="."||!B?":}":B}break;case"sizeddelim":case"delim":St=e.value;break;case"overlap":break;case"overunder":break;case"mord":St=(s=(i=bu[Cr])!=null?i:Cr)!=null?s:typeof e.value=="string"?e.value:"",St.startsWith("\\")&&(St+=" "),_n=Cr?Cr.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,_n?St=String.fromCodePoint(Number.parseInt("0x"+_n[1])):St.length>0&&St.startsWith("\\")&&(St=typeof e.value=="string"?e.value.charAt(0):e.command),St=o0(St,e.style);break;case"mbin":case"mrel":case"minner":St=(u=(c=bu[Cr])!=null?c:rf[Cr])!=null?u:e.value;break;case"mopen":case"mclose":St=e.value;break;case"mpunct":St=(k=rf[Cr])!=null?k:Cr;break;case"mop":case"operator":case"extensible-symbol":e.value!=="\u200B"&&(rf[Cr]?St=rf[Cr]:St=Cr==="\\operatorname"?hs(e.body):(j=e.value)!=null?j:Cr,St+=" ");break;case"array":const nn=e.array,Ln=e.environmentName,An=(X={bmatrix:["[","]"],"bmatrix*":["[","]"]}[Ln])!=null?X:["(",")"],Si=[];for(const Hi of nn){const h=[];for(const B of Hi)h.push(An[0]+hs(B)+An[1]);Si.push(h.join(","))}const ra=(ce={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[Ln])!=null?ce:["(",")"];St=ra[0]+Si.join(",")+ra[1];break;case"box":break;case"spacing":St=(Pe=bu[Cr])!=null?Pe:" ";break;case"enclose":St="("+hs(e.body)+")";break;case"space":St=" ";break;case"subsup":St="";break;case"macro":St=(vt=(nt=bu[Cr])!=null?nt:rf[Cr])!=null?vt:hs(e.body);break}if(!e.hasEmptyBranch("subscript")){St+="_";const wr=hs(e.subscript);St+=wr.length!==1?`(${wr})`:wr}if(!e.hasEmptyBranch("superscript")){St+="^";const wr=hs(e.superscript);St+=wr.length!==1?`(${wr})`:wr}return St}function o0(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 Ul(e,t){var r,i;t!=null||(t={}),t.mathstyle=(r=t.mathstyle)!=null?r:"displaystyle";const s=new Eo({from:F(g({},E0()),{renderPlaceholder:()=>new zr(160,{maxFontSize:1}),letterShapeStyle:(i=t==null?void 0:t.letterShapeStyle)!=null?i:"tex"}),mathstyle:t.mathstyle}),u=new Ur({mode:"math",type:"root",body:hc(e,{context:s,parseMode:"math",mathstyle:t.mathstyle})}).render(s);return u?(mf(sl(u,s)),Wf(u,{classes:"ML__latex"}).toMarkup()):""}function xm(e){return fd(e,{context:E0()})}function hh(e,t={}){return Ro(hc(e,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),t)}function s0(e){const t=hc(e,{parseMode:"math",mathstyle:"displaystyle"});return hl(t)}var DA;function yu(e){var t,r;if(!DA){const i=(t=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:t.ComputeEngine;i?DA=new i: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=DA==null?void 0:DA.box(e).latex)!=null?r:""}function l0(e,t="math"){return hs(new Ur({type:"root",body:hc(e,{parseMode:t})}))}function ph(e){return L0(e,{format:"ascii-math"})[1]}function nf(e){if(typeof e=="string"){const t=np(e);if(!t)throw new Error(`Invalid color: ${e}`);return t}return"C"in e?Qp(e):"a"in e?ip(e):e}function af(e){return e<0?0:e>255?255:Math.round(e)}function np(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 rc(e){const[t,r,i]=[e.L,e.C,e.H],s=i*Math.PI/180,c={L:t,a:r*Math.cos(s),b:r*Math.sin(s)};return e.alpha!==void 0&&(c.alpha=e.alpha),c}function Cm(e){const[t,r,i]=[e.L,e.a,e.b],s=Math.sqrt(r*r+i*i),u=Math.atan2(i,r)*180/Math.PI,k={L:t,C:s,H:u};return e.alpha!==void 0&&(k.alpha=e.alpha),k}function $u(e){const[t,r,i]=[e.L,e.a,e.b],s=Math.pow(.9999999984505198*t+.39633779217376786*r+.2158037580607588*i,3),c=Math.pow(1.00000000888176*t-.10556134232365635*r-.0638541747717059*i,3),u=Math.pow(t*1.000000054672411-.0894841820949657*r-1.2914855378640917*i,3),k=4.076741661347994*s-3.307711590408193*c+.230969928729428*u,j=-1.2684380040921763*s+2.6097574006633715*c-.3413193963102197*u,X=-.004196086541837188*s-.7034186144594493*c+1.7076147009309444*u,ce=Pe=>{const nt=Math.abs(Pe);return nt<=.0031308?Pe*12.92:(Math.sign(Pe)||1)*(1.055*Math.pow(nt,1/2.4)-.055)};return[ce(k),ce(j),ce(X)]}function Zu(e){const[t,r,i]=e;return t>=0&&t<=1&&r>=0&&r<=1&&i>=0&&i<=1}function c0(e,t){let[r,i,s]=e;return r=af(r*255),i=af(i*255),s=af(s*255),t!==void 0?{r,g:i,b:s,alpha:t}:{r,g:i,b:s}}function ip(e){let[t,r,i]=$u(e);if(Zu([t,r,i]))return c0([t,r,i],e.alpha);const s=Cm(e);if(s.C=0,[t,r,i]=$u(rc(s)),!Zu([t,r,i]))return c0([t,r,i],e.alpha);let c=0,u=e.L,k=(c+u)/2;s.C=k;const j=.36/Math.pow(2,12);for(;u-c>j;)k=(c+u)/2,s.C=k,[t,r,i]=$u(rc(s)),Zu([t,r,i])?c=k:u=k;return c0([t,r,i],e.alpha)}function Qp(e){return ip(rc(e))}function ap(e,t){const r=nf(e),i=nf(t),s=.56,c=.57,u=.62,k=.65,j=.022,X=1.414,ce=.1,Pe=5e-4,nt=1.14,vt=.027,St=1.14,Cr=.027;function _n(Hi){return Hi>=j?Hi:Hi+wh(j-Hi,X)}function wr(Hi){return(Hi<0?-1:1)*Math.pow(Math.abs(Hi),2.4)}const nn=_n(wr(i.r/255)*.2126729+wr(i.g/255)*.7151522+wr(i.b/255)*.072175),Ln=_n(wr(r.r/255)*.2126729+wr(r.g/255)*.7151522+wr(r.b/255)*.072175);let An,Si,ra;return Math.abs(Ln-nn)<Pe?Si=0:Ln>nn?(An=wh(Ln,s)-wh(nn,c),Si=An*nt):(An=wh(Ln,k)-wh(nn,u),Si=An*St),Math.abs(Si)<ce?ra=0:Si>0?ra=Si-Cr:ra=Si+vt,ra*100}function Pf(e,t,r){r!=null||(r="#fff"),t!=null||(t="#000");const i=ap(e,r),s=ap(e,t);return Math.abs(i)>Math.abs(s)?r:t}function mh(e){const t=nf(e);let r=((1<<24)+(af(t.r)<<16)+(af(t.g)<<8)+af(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=gh(e);let r="";for(const i of t){if(typeof i.value!="string")return"";r+=i.value}return r}function gh(e){const r=e.model.selection.ranges;return r.length!==1?[]:e.model.getAtoms(r[0])}function vh(e,t){const r=gh(e);if(r.length!==1)return!1;const i=j0[t];return i?!!i.test(r[0].value):!1}function A0(e,t){return ps(e).length>0}function Vu(e){return[Sm(e,"double-struck","mathbb","tooltip.blackboard"),Sm(e,"fraktur","mathfrak","tooltip.fraktur"),Sm(e,"calligraphic","mathcal","tooltip.caligraphic"),Em(e,"up","mathrm","tooltip.roman-upright"),Em(e,"bold","mathbf","tooltip.bold"),Em(e,"italic","mathit","tooltip.italic")]}function of(e){return[{label:()=>Ul(`\\vec{${ps(e)}}`),visible:()=>ps(e).length===1,onMenuSelect:()=>e.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\overrightarrow{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\overleftarrow{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\dot{${ps(e)}}`),visible:()=>ps(e).length===1,onMenuSelect:()=>e.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\ddot{${ps(e)}}`),visible:()=>ps(e).length===1,onMenuSelect:()=>e.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\bar{${ps(e)}}`),visible:()=>ps(e).length===1,onMenuSelect:()=>e.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\overline{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\overgroup{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\overbrace{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\underline{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\undergroup{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\underbrace{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function qs(e){return[{label:()=>Ul(`\\boxed{${e.getValue(e.model.selection)}}}`),onMenuSelect:()=>e.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\bbox[5px, border: 2px solid red]{${e.getValue(e.model.selection)}}`),onMenuSelect:()=>e.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\bbox[5px, border: 2px dashed black]{${e.getValue(e.model.selection)}}`),onMenuSelect:()=>e.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function pl(e){const t=[];for(const r of Object.keys(le))t.push({class:(mh(Pf(le[r]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${le[r]} "></span>`,ariaLabel:()=>{var i;return(i=J(r))!=null?i:r},checked:()=>{var i;return{some:"mixed",all:!0}[(i=e.queryStyle({backgroundColor:r}))!=null?i:!1]},onMenuSelect:()=>{e.applyStyle({backgroundColor:r},{operation:"toggle"}),e.adoptStyle="none"}});return t}function vc(e){const t=[];for(const r of Object.keys(me))t.push({class:(Pf(me[r])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${me[r]} "></span>`,ariaLabel:()=>{var i;return(i=J(r))!=null?i:r},checked:()=>{var i;return{some:"mixed",all:!0}[(i=e.queryStyle({color:r}))!=null?i:!1]},onMenuSelect:()=>{e.applyStyle({color:r},{operation:"toggle"}),e.adoptStyle="none"}});return t}var zc=class extends ef{constructor(e,t,r,i){super(e,t),this.row=r,this.col=i}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 Tf(e){const t=[];for(let r=1;r<=5;r++)for(let i=1;i<=5;i++)t.push({onCreate:(s,c)=>new zc(s,c,r,i),label:"\u2610",tooltip:()=>J("tooltip.row-by-col",r,i),data:{row:r,col:i},onMenuSelect:()=>{e.insert(`\\begin{pmatrix}${Array(r).fill(Array(i).fill("#?").join(" & ")).join("\\\\")}\\end{pmatrix}`,{selectionMode:"item"})}});return t}function Kp(e){return[{label:()=>J("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>e.executeCommand("addRowBefore"),visible:()=>Wu(e)},{label:()=>J("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>e.executeCommand("addRowAfter"),visible:()=>Wu(e)},{label:()=>J("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>e.executeCommand("addColumnBefore"),visible:()=>Wu(e),enabled:()=>{const t=e.model.parentEnvironment;if(!t)return!1;const[r,i]=Fg(e);return r<t.maxColumns}},{label:()=>J("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>e.executeCommand("addColumnAfter"),visible:()=>Wu(e)},{type:"divider"},{label:()=>J("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>e.executeCommand("removeRow"),visible:()=>Wu(e)},{label:()=>J("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>e.executeCommand("removeColumn"),visible:()=>Wu(e)},{type:"divider"},{label:()=>J("menu.borders"),visible:()=>(Bm(e)||Wu(e))&&e.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>op(e,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>op(e,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>op(e,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>op(e,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>op(e,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>J("menu.insert matrix"),id:"insert-matrix",visible:()=>e.isSelectionEditable,submenu:Tf(e),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>J("menu.mode"),id:"mode",visible:()=>e.isSelectionEditable&&e.model.selectionIsCollapsed,submenu:[{label:()=>J("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{Hh(e,"accept-all"),e.executeCommand(["switchMode","math"])},checked:()=>e.model.mode==="math"},{label:()=>J("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{Hh(e,"accept-all"),e.executeCommand(["switchMode","text"])},checked:()=>e.model.mode==="text"},{label:()=>J("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>e.executeCommand(["switchMode","latex"]),checked:()=>e.model.mode==="latex"}]},{type:"divider"},{label:()=>J("menu.font-style"),id:"variant",visible:()=>e.isSelectionEditable,submenu:Vu(e),submenuClass:"variant-submenu"},{label:()=>J("menu.color"),id:"color",visible:()=>e.isSelectionEditable,submenu:vc(e),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>J("menu.background-color"),id:"background-color",visible:()=>e.isSelectionEditable,submenu:pl(e),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>J("menu.accent"),id:"accent",visible:()=>e.isSelectionEditable,submenu:of(e),submenuClass:"variant-submenu"},{label:()=>J("menu.decoration"),id:"decoration",visible:()=>e.isSelectionEditable&&ps(e).length>0,submenu:qs(e),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>J("menu.evaluate"),id:"ce-evaluate",visible:()=>e.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{const t=Mg(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:()=>J("menu.simplify"),id:"ce-simplify",visible:()=>e.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{var t,r;if(e.model.selectionIsCollapsed){const i=(t=e.expression)==null?void 0:t.simplify();if(e.model.position=e.model.lastOffset,!i){e.model.announce("plonk");return}e.insert(`=${i.latex}`,{insertionMode:"insertAfter",selectionMode:"item"})}else{const i=(r=window.MathfieldElement.computeEngine)==null?void 0:r.parse(e.getValue(e.model.selection)).simplify();if(!i){e.model.announce("plonk");return}e.insert(i.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?J("menu.solve-for",Ul(r)):J("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,i=r==null?void 0:r.unknowns[0],s=(t=r.solve(i))==null?void 0:t.map(c=>{var u;return(u=c.simplify().latex)!=null?u:""});if(!s){e.model.announce("plonk");return}e.insert(`${i}=${s.length===1?s[0]:"\\left\\lbrace"+(s==null?void 0:s.join(", "))+"\\right\\rbrace"}`,{insertionMode:"replaceAll",selectionMode:"item"})}},{type:"divider"},{label:()=>J("menu.cut"),onMenuSelect:()=>e.executeCommand("cutToClipboard"),visible:()=>!e.options.readOnly&&e.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>J("menu.copy"),id:"copy",submenu:[{label:()=>J("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>Ls.copyToClipboard(e,"latex"),keyboardShortcut:"meta+C"},{label:()=>J("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>Ls.copyToClipboard(e,"ascii-math")},{label:()=>J("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>Ls.copyToClipboard(e,"math-ml")}]},{label:()=>J("menu.paste"),id:"paste",onMenuSelect:()=>e.executeCommand("pasteFromClipboard"),visible:()=>e.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>J("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>e.executeCommand("selectAll")}]}function Wu(e){var t;return!!((t=e.model.parentEnvironment)!=null&&t.array)}function Bm(e){return e.model.at(e.model.position).type==="array"}function Fg(e){var t;const r=(t=e.model.parentEnvironment)==null?void 0:t.array;return r?[r.length,r.reduce((i,s)=>Math.max(i,s.length),0)]:[0,0]}function op(e,t){Am(e),e.flushInlineShortcutBuffer(),Ds(e.model,t),Il(e)}function Mg(e){var t,r;let i;if(e.model.selectionIsCollapsed?i=(t=window.MathfieldElement.computeEngine)==null?void 0:t.parse(e.getValue(),{canonical:!1}):i=(r=window.MathfieldElement.computeEngine)==null?void 0:r.parse(e.getValue(e.model.selection),{canonical:!1}),!i)return"";let s=i.evaluate();return s.isSame(i)&&(s=i.N()),s.latex}function Sm(e,t,r,i){return{label:()=>Ul(`\\${r}{${ps(e)}}`),tooltip:()=>{var s;return(s=J(i))!=null?s:i},visible:()=>vh(e,t),checked:()=>{var s;return{some:"mixed",all:!0}[(s=e.queryStyle({variant:t}))!=null?s:!1]},onMenuSelect:()=>{e.applyStyle({variant:t},{operation:"toggle"}),e.adoptStyle="none"}}}function Em(e,t,r,i){return{label:()=>Ul(`\\${r}{${ps(e)}}`),tooltip:()=>{var s;return(s=J(i))!=null?s:i},visible:()=>A0(e,t),checked:()=>{var s;return{some:"mixed",all:!0}[(s=e.queryStyle({variantStyle:t}))!=null?s:!1]},onMenuSelect:()=>{e.applyStyle({variantStyle:t},{operation:"toggle"}),e.adoptStyle="none"}}}function u0(e,t){return e+hl(t)}o({speak:(e,t,r)=>Hp(e,t,r)},{target:"mathfield"});function Hp(e,t,r){var i,s;r=r!=null?r:{withHighlighting:!1};const{model:c}=e;function u(ce){let Pe=null;switch(ce){case"all":Pe=c.root;break;case"selection":Pe=c.getAtoms(c.selection);break;case"left":{Pe=c.getAtoms(c.offsetOf(c.at(c.position).leftSibling),c.position);break}case"right":{Pe=c.getAtoms(c.position,c.offsetOf(c.at(c.position).rightSibling));break}case"group":Pe=c.getAtoms(c.getSiblingsRange(c.position));break;case"parent":{const{parent:nt}=c.at(c.position);nt!=null&&nt.parent?Pe=nt:Pe=c.root;break}default:Pe=c.root}return Pe}function k(ce){let Pe="";switch(ce){case"all":console.log("Internal failure: speak all failed");break;case"selection":Pe="no selection";break;case"left":Pe="at start";break;case"right":Pe="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":Pe="no parent";break;default:console.log('unknown speak_ param value: "'+ce+'"');break}return Pe}const j=u(t);if(j===null)return(s=(i=window.MathfieldElement).speakHook)==null||s.call(i,k(t)),!1;(r.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const X=hl(j);return O()&&r.withHighlighting?(NA().readAloudMathfield=e,jh(e,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(e.field,X)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(X),!1}function Lg(e){var t,r;if(!O()){console.log("Speak:",e);return}if(!window.MathfieldElement.speechEngine||window.MathfieldElement.speechEngine==="local"){const i=new SpeechSynthesisUtterance(e);window.speechSynthesis.speak(i)}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 i=new window.AWS.Polly({apiVersion:"2016-06-10"}),s={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"};i.synthesizeSpeech(s,(c,u)=>{if(c)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${c}`);else if(u!=null&&u.AudioStream){const k=new Uint8Array(u.AudioStream),j=new Blob([k.buffer],{type:"audio/mpeg"}),X=URL.createObjectURL(j);new Audio(X).play().catch(Pe=>console.log(Pe))}else console.log("polly.synthesizeSpeech():",u)})}else window.MathfieldElement.speechEngine==="google"&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.")}function cg(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 kg(e,t,r,i){let s="";if(t==="plonk")window.MathfieldElement.playSound("plonk"),e.flushInlineShortcutBuffer();else if(t==="delete")s=u0("deleted: ",i);else if(t==="focus"||t.includes("move"))s=Dg(e.model,r)+(e.model.selectionIsCollapsed?"":"selected: ")+Ng(e.model);else if(t==="replacement")s=u0("",e.model.at(e.model.position));else if(t==="line"){const c=u0("",e.model.root);e.keyboardDelegate.setAriaLabel(c)}else s=i?u0(t+" ",i):t;if(s){const c=e.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";e.ariaLiveText.textContent=s+c}}function Dg(e,t){if(Number.isNaN(t))return"";const r=e.at(t);if(!r||r.treeDepth<=e.at(e.position).treeDepth)return"";let i="",s=r.parent;const c=e.at(e.position).parent;for(;s!==e.root&&s!==c;)i+=`out of ${cg(s)};`,s=s.parent;return i}function Ng(e){if(!e.selectionIsCollapsed)return u0("",e.getAtoms(e.selection));let t="";const r=e.at(e.position),i=cg(r);return r.isFirstSibling&&(t=(i?"start of "+i:"unknown")+": "),r.isLastSibling?r.isFirstSibling||(t+=i?"end of "+i:"unknown"):t+=u0("",r),t}var Og=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 i=this.silenceNotifications;this.silenceNotifications=(r=t==null?void 0:t.silenceNotifications)!=null?r:!0;let s={};if((t==null?void 0:t.type)==="undo"&&(s={inputType:"historyUndo"}),(t==null?void 0:t.type)==="redo"&&(s={inputType:"historyRedo"}),this.contentWillChange(s)){const c=this.silenceNotifications;this.silenceNotifications=!0,this.mode=e.mode,this.root=La(e.content),this.selection=e.selection,this.silenceNotifications=c,this.contentDidChange(s)}this.silenceNotifications=i}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,i,s;const c=this.normalizeSelection(e,t);if(c===void 0)throw new TypeError("Invalid selection");if(c.ranges.length===1&&c.ranges[0][0]===c.ranges[0][1]){const ce=c.ranges[0][0];if(!this.mathfield.dirty&&!((r=this.at(ce))!=null&&r.parentPrompt)&&this.mathfield.hasEditablePrompts){if((i=this.at(ce-1))!=null&&i.parentPrompt){this._anchor=this.normalizeOffset(ce-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((s=this.at(ce+1))!=null&&s.parentPrompt){this._anchor=this.normalizeOffset(ce+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=ce,this._position=ce,this._selection=c;return}const u=Jl(c);c.direction==="backward"?[this._position,this._anchor]=u:[this._anchor,this._position]=u;const k=this.at(u[0]+1),j=this.at(u[1]),X=Ur.commonAncestor(k,j);(X==null?void 0:X.type)==="array"&&k.parent===X&&j.parent===X?this._selection={ranges:[u],direction:c.direction}:this._selection={ranges:[u],direction:c.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 Ol&&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 i=t.parent.branch(t.parentBranch);return[this.offsetOf(i[0]),this.offsetOf(i[i.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 i=r!=null?r:{};if(Fh(e)){if(i=t!=null?t:{},e.ranges.length>1)return e.ranges.reduce((X,ce)=>[...X,...this.getAtoms(ce,i)],[]);e=e.ranges[0]}let s,c;if(ld(e)){if(s=e,!ld(t))return[];c=t}else[s,c]=e,i=t!=null?t:{};if(!Number.isFinite(s))return[];i.includeChildren===void 0&&(i.includeChildren=!1),s<0&&(s=this.lastOffset-s+1),c<0&&(c=this.lastOffset-c+1);const u=Math.min(s,c)+1,k=Math.max(s,c);if(!i.includeChildren&&u===1&&k===this.lastOffset)return[this.root];let j=[];for(let X=u;X<=k;X++){const ce=this.atoms[X];Ag(this,ce,u,k)&&j.push(ce)}return i.includeChildren||(j=j.filter(X=>{let ce=!1,{parent:Pe}=X;for(;Pe&&!ce;)ce=Ag(this,Pe,u,k),Pe=Pe.parent;return!ce})),j}getAllAtoms(e=0){const t=[],r=this.lastOffset;for(let i=e;i<=r;i++)t.push(this.atoms[i]);for(let i=0;i<e;i++)t.push(this.atoms[i]);return t}findAtom(e,t=0,r="forward"){let i;const s=this.lastOffset;if(r==="forward"){for(let c=t;c<=s;c++)if(i=this.atoms[c],e(i))return i;for(let c=0;c<t;c++)if(i=this.atoms[c],e(i))return i;return}for(let c=t;c>=0;c--)if(i=this.atoms[c],e(i))return i;for(let c=s;c>t;c--)if(i=this.atoms[c],e(i))return i}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 Ur({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 Ur.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 Ro(e);if(r==="spoken")return hl(e);if(r==="spoken-text"){const i=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const s=hl(e);return window.MathfieldElement.textToSpeechMarkup=i,s}if(r==="spoken-ssml"||r==="spoken-ssml-with-highlighting"){const i=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="ssml";const s=hl(e);return window.MathfieldElement.textToSpeechMarkup=i,s}return r==="ascii-math"?hs(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 i,s;if(ld(e)&&ld(t)?(i=[this.normalizeRange([e,t])],s=r):Yf(e)?(i=[this.normalizeRange(e)],s=t):Fh(e)?(i=e.ranges,s=t):(i=[this.normalizeRange([0,-1])],s=e),s!=null||(s="latex"),s==="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 c=this.getValue({ranges:i},"latex-unstyled");try{const u=window.MathfieldElement.computeEngine.parse(c);return JSON.stringify(u.json)}catch(u){return JSON.stringify(["Error",`'${u.toString()}'`])}}if(s.startsWith("latex")){const c={expandMacro:s==="latex-expanded",skipStyles:s==="latex-unstyled",skipPlaceholders:s==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return Ao(i.map(u=>Ur.serialize(this.getAtoms(u),c)))}return i.map(c=>this.getAtoms(c).map(u=>this.atomToString(u,s)).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[i,s]=r,{parent:c}=this.at(s);if(c&&(c.type==="genfrac"||c.type==="subsup"))for(;c!==this.root&&_m(this,c,[i,s]);)s=this.offsetOf(c),c=c.parent;for(c=this.at(i).parent;c!==this.root&&_m(this,c,[i,s]);)i=this.offsetOf(c.leftSibling),c=c.parent;if(c=this.at(s).parent,(c==null?void 0:c.type)==="genfrac")for(;c!==this.root&&_m(this,c,[i,s]);)s=this.offsetOf(c),console.assert(s>=0),c=c.parent;this._position=this.normalizeOffset(t),this._selection={ranges:[[i,s]],direction:"none"}})}announce(e,t,r=[]){var i,s;((s=(i=this.mathfield.host)==null?void 0:i.dispatchEvent(new CustomEvent("announce",{detail:{command:e,previousPosition:t,atoms:r},cancelable:!0,bubbles:!0,composed:!0})))!=null?s:!0)&&kg(this.mathfield,e,t,r)}deferNotifications(e,t){const r=this._selection,i=this._anchor,s=this._position,c=this.silenceNotifications;this.silenceNotifications=!0;const u=this.root.changeCounter;t();const k=this.root.changeCounter!==u,j=i!==this._anchor||s!==this._position||Ih(this._selection,r)==="different";return this.silenceNotifications=c,e.content&&k&&this.contentDidChange({inputType:e.type}),e.selection&&j&&this.selectionDidChange(),k||j}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 i;if(ld(e)){const s=this.normalizeOffset(e);if(ld(t)){const c=this.normalizeOffset(t);i=s<=c?{ranges:[[s,c]],direction:"none"}:{ranges:[[c,s]],direction:"backward"}}else i={ranges:[[s,s]],direction:"none"}}else if(Yf(e)){const s=this.normalizeOffset(e[0]),c=this.normalizeOffset(e[1]);i=s<=c?{ranges:[[s,c]],direction:"none"}:{ranges:[[c,s]],direction:"backward"}}else Fh(e)&&(i={ranges:e.ranges.map(s=>this.normalizeRange(s)),direction:(r=e.direction)!=null?r:"none"});return console.assert(i!==void 0),i}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(cA(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const r=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",F(g({},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(cA(this.mathfield)),this.silenceNotifications))return;const e=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=e}};function Ag(e,t,r,i){const s=e.offsetOf(t);if(s<r||s>i)return!1;if(!t.hasChildren)return!0;const c=e.offsetOf(t.firstChild);if(c>=r&&c<=i){const u=e.offsetOf(t.lastChild);if(u>=r&&u<=i)return!0}return!1}function _m(e,t,r){if(!(t!=null&&t.hasChildren))return!1;const[i,s]=r,c=e.offsetOf(t.firstChild),u=e.offsetOf(t.lastChild);return c>=i&&c<=s&&u>=c&&u<=s}function d0(e,t,r,i){var s,c,u,k,j,X;const ce=r.parent;if(ce&&r instanceof Ys){const Pe=!i&&t==="forward"||i==="body"&&t==="backward";let nt=Pe?e.offsetOf(r.firstChild):e.offsetOf(r.lastChild);return Pe?r.rightDelim!=="?"&&r.rightDelim!=="."?(r.leftDelim=".",r.isDirty=!0):(ce.addChildrenAfter(r.removeBranch("body"),r),ce.removeChild(r),nt--):r.leftDelim!=="?"&&r.leftDelim!=="."?(r.rightDelim=".",r.isDirty=!0):(ce.addChildrenAfter(r.removeBranch("body"),r),ce.removeChild(r),nt--),e.position=nt,!0}if(ce&&r.type==="surd"){if(t==="forward"&&!i||t==="backward"&&i==="body"){const Pe=r.leftSibling;r.hasChildren&&ce.addChildrenAfter(r.removeBranch("body"),r),ce.removeChild(r),e.position=e.offsetOf(Pe)}else t==="forward"&&i==="body"?e.position=e.offsetOf(r):!i&&t==="backward"?r.hasChildren?e.position=e.offsetOf(r.lastChild):(e.position=Math.max(0,e.offsetOf(r)-1),ce.removeChild(r)):i==="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(ce&&(r.type==="box"||r.type==="enclose")){const Pe=i&&t==="backward"||!i&&t==="forward"?r.leftSibling:r.lastChild;return ce.addChildrenAfter(r.removeBranch("body"),r),ce.removeChild(r),e.position=e.offsetOf(Pe),!0}if(r.type==="genfrac"||r.type==="overunder"){if(!i)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 Pe=f0.fractionNavigationOrder==="numerator-denominator"?"above":"below",nt=Pe==="above"?"below":"above";if(ce&&(t==="forward"&&i===Pe||t==="backward"&&i===nt)){const vt=r.removeBranch(Pe),St=r.removeBranch(nt);return ce.addChildrenAfter([...vt,...St],r),ce.removeChild(r),e.position=e.offsetOf(vt.length>0?vt[vt.length-1]:St[0]),!0}return t==="backward"?e.position=e.offsetOf(r.leftSibling):e.position=e.offsetOf(r),!0}if(r.isExtensibleSymbol||r.type==="subsup"){if(!i&&t==="forward")return!1;if(!i){if(r.subscript||r.superscript){const Pe=t==="forward"?(u=(s=r.superscript)==null?void 0:s[0])!=null?u:(c=r.subscript)==null?void 0:c[0]:(X=(k=r.subscript)==null?void 0:k[0].lastSibling)!=null?X:(j=r.superscript)==null?void 0:j[0].lastSibling;return Pe&&(e.position=e.offsetOf(Pe)),!0}return!1}if(!r.hasChildren&&r.type==="subsup"){const Pe=t==="forward"?e.offsetOf(r):Math.max(0,e.offsetOf(r)-1);return r.parent.removeChild(r),e.position=Pe,!0}if(i==="superscript")if(t==="backward"){const Pe=e.offsetOf(r.firstChild)-1;console.assert(Pe>=0),e.position=Pe}else r.subscript?e.position=e.offsetOf(r.subscript[0]):e.position=e.offsetOf(r);else i==="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(i&&r.hasEmptyBranch(i)&&(r.removeBranch(i),r.type==="subsup"&&!r.subscript&&!r.superscript)){const Pe=t==="forward"?e.offsetOf(r):Math.max(0,e.offsetOf(r)-1);r.parent.removeChild(r),e.position=Pe}return!0}if((ce==null?void 0:ce.type)==="genfrac"&&!i&&r.type!=="first"){let Pe=e.offsetOf(r.leftSibling);return ce.removeChild(r),ce.hasEmptyBranch("above")&&ce.hasEmptyBranch("below")?(Pe=e.offsetOf(ce.leftSibling),ce.parent.removeChild(ce),e.announce("delete",void 0,[ce]),e.position=Pe,!0):(e.announce("delete",void 0,[r]),e.position=Pe,!0)}if(t==="backward"&&((ce==null?void 0:ce.command)==="\\ln"||(ce==null?void 0:ce.command)==="\\log")&&r.parentBranch!=="body"){const Pe=e.offsetOf(ce.leftSibling);return ce.parent.removeChild(ce),e.announce("delete",void 0,[ce]),e.position=Pe,!0}return!1}function Im(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&&d0(e,"backward",t))){if(t!=null&&t.isFirstSibling){if(d0(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])}}):bc(e,Jl(e.selection),"deleteContentBackward")}function wu(e){return!e.mathfield.isSelectionEditable||!e.contentWillChange({inputType:"deleteContentForward"})?!1:e.selectionIsCollapsed?e.deferNotifications({content:!0,selection:!0,type:"deleteContentForward"},()=>{var t,r;let i=e.at(e.position).rightSibling;if(i&&d0(e,"forward",i))return;if(i){if(e.at(e.position).isLastSibling&&d0(e,"forward",i.parent,i.parentBranch))return}else{if(i=e.at(e.position),i.isLastSibling&&d0(e,"forward",i.parent,i.parentBranch))return;i=void 0}if(e.position===e.lastOffset||!i){e.announce("plonk");return}i.parent.removeChild(i);let s=(t=e.at(e.position))==null?void 0:t.rightSibling;for(;(s==null?void 0:s.type)==="subsup";)s.parent.removeChild(s),s=(r=e.at(e.position))==null?void 0:r.rightSibling;e.announce("delete",void 0,[i])}):bc(e,Jl(e.selection),"deleteContentForward")}function bc(e,t,r){const i=e.getAtoms(t);if(i.length>0&&i[0].parent){let s=i[0].parent.firstChild;s.type==="first"&&(s=s.rightSibling);const c=i[i.length-1].parent.lastChild;let u=i[0];u.type==="first"&&(u=u.rightSibling);const k=i[i.length-1];if(u===s&&k===c){const j=i[0].parent;j.parent&&j.type!=="prompt"&&(t=[e.offsetOf(j.leftSibling),e.offsetOf(j)])}if(i.length===1&&i[0].type==="placeholder"&&i[0].parent.type==="genfrac"){const j=i[0].parent,X=i[0].parentBranch==="below"?"above":"below",ce=e.offsetOf(j.leftSibling);return e.deferNotifications({content:!0,selection:!0,type:r},()=>{var Pe,nt;const vt=j.removeBranch(X);if(vt.length===1&&vt[0].type==="placeholder")(nt=j.parent)==null||nt.removeChild(j),e.position=Math.max(0,ce);else{const St=j.parent.addChildrenAfter(vt,j);(Pe=j.parent)==null||Pe.removeChild(j),e.position=e.offsetOf(St)}})}}return e.deferNotifications({content:!0,selection:!0,type:r},()=>e.deleteAtoms(t))}o({deleteAll:e=>e.contentWillChange({inputType:"deleteContent"})&&bc(e,[0,-1],"deleteContent"),deleteForward:e=>wu(e),deleteBackward:e=>Im(e),deleteNextWord:e=>e.contentWillChange({inputType:"deleteWordForward"})&&bc(e,[e.anchor,ql(e,e.position,"forward")],"deleteWordForward"),deletePreviousWord:e=>e.contentWillChange({inputType:"deleteWordBackward"})&&bc(e,[e.anchor,ql(e,e.position,"backward")],"deleteWordBackward"),deleteToGroupStart:e=>e.contentWillChange({inputType:"deleteSoftLineBackward"})&&bc(e,[e.anchor,e.offsetOf(e.at(e.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:e=>e.contentWillChange({inputType:"deleteSoftLineForward"})&&bc(e,[e.anchor,e.offsetOf(e.at(e.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:e=>e.contentWillChange({inputType:"deleteHardLineBackward"})&&bc(e,[e.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:e=>e.contentWillChange({inputType:"deleteHardLineForward"})&&bc(e,[e.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var Fm=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${J("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>`,Mm=`<svg xmlns="http://www.w3.org/2000/svg" style="height: 18px;" viewBox="0 0 448 512" role="img" aria-label="${J("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>`,Pg=class{constructor(e,t){this.focusBlurInProgress=!1;var r,i,s;this.options=g(F(g({},Fi()),{macros:rt(),registers:Xf()}),Qn(t)),this.eventController=new AbortController;const c=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 u=(i=(r=t.value)!=null?r:this.element.textContent)!=null?i:"";u=u.trim();const k=sn(this.options),j=new Ur({type:"root",mode:k,body:hc(u,{context:this.context})});this.model=new Og(this,k,j),this.undoManager=new Co(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(_g(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(Fm),X.push("</div>")),X.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),X.push(Mm),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=ne.subscribe(()=>ne.update(this.element)),ne.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",Pe=>Pe.stopImmediatePropagation(),{capture:!1,signal:c}),this.field.addEventListener("wheel",this,{passive:!1,signal:c}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:c}):this.field.addEventListener("mousedown",this,{signal:c}),(s=this.element.querySelector("[part=virtual-keyboard-toggle]"))==null||s.addEventListener("click",()=>{window.mathVirtualKeyboard.visible?window.mathVirtualKeyboard.hide():(window.mathVirtualKeyboard.show({animate:!0}),window.mathVirtualKeyboard.update(cA(this)))},{signal:c}),this._menu=new z(Kp(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:c});const ce=this.element.querySelector("[part=menu-toggle]");ce==null||ce.addEventListener("pointerdown",Pe=>{if(Pe.currentTarget!==ce||this._menu.state!=="closed")return;this.element.classList.add("tracking");const nt=ce.getBoundingClientRect();this._menu.modifiers=LA(Pe),this._menu.show({target:ce,location:{x:nt.left,y:nt.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),Pe.preventDefault(),Pe.stopPropagation()},{signal:c}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(ce.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=vg(this.element.querySelector(".ML__keyboard-sink"),this.element,this),window.addEventListener("resize",this,{signal:c}),document.addEventListener("scroll",this,{signal:c}),this.resizeObserver=new ResizeObserver(()=>Il(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:c}),Ec&&!ne.locale.startsWith(Ec.locale)&&sA(ne.locale),hu!=="ready"&&document.fonts.ready.then(()=>hm(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(cA(this)),uh(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,Op())}showMenu(e){var t,r;const i=(r=(t=e==null?void 0:e.location)!=null?t:th(this.field))!=null?r:void 0,s=e==null?void 0:e.modifiers,c=this.element.querySelector("[part=container]");return this._menu.show({target:c,location:i,modifiers:s})}get colorMap(){return e=>{var t,r,i;return(i=(r=(t=this.options).colorMap)==null?void 0:r.call(t,e))!=null?i:Ue(e)}}get backgroundColorMap(){return e=>{var t,r,i,s,c,u;return(u=(c=(r=(t=this.options).backgroundColorMap)==null?void 0:r.call(t,e))!=null?c:(s=(i=this.options).colorMap)==null?void 0:s.call(i,e))!=null?u:ee(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=Ur.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=g({},e[0].style);for(const r of e)for(const[i,s]of Object.entries(r.style))t[i]!==s&&delete t[i];return t}queryStyle(e){const t=Z0(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 j of Object.keys(t)){const X=this.queryStyle({[j]:t[j]});if(X==="none")return"none";if(X==="some")return"some"}return"all"}const i=Object.keys(t)[0],s=t[i];if(this.model.selectionIsCollapsed)return this.effectiveStyle[i]===s?"all":"none";const c=this.model.getAtoms(this.model.selection,{includeChildren:!0});let u=c.length;if(u===0)return"none";let k=0;for(const j of c){if(j.type==="first"){u-=1;continue}j.style[i]===s&&(k+=1)}return k===0?"none":k===u?"all":"some"}get keybindings(){var e,t;if(this._keybindings)return this._keybindings;const[r,i]=Jg(this.options.keybindings,(e=Au())!=null?e:XA());return((t=Au())==null?void 0:t.score)>0&&(this._keybindings=r,i.length>0&&console.error("MathLive 0.98.5: Invalid keybindings for current keyboard layout",i)),r}get menu(){return this._menu}setOptions(e){var t;this.options=g(g({},this.options),Qn(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 i=Ur.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in e||this.model.getValue()!==i)&&Ls.insert(this.model,i,{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)&&Il(this)}getOptions(e){return vi(this.options,e)}getOption(e){return vi(this.options,e)}handleEvent(e){return hp(this,null,function*(){var t;if(cd(this)){if(Z(e)){if(!kh(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 i=e.data.command;if(l(i)==="virtual-keyboard")return;this.executeCommand(i)}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"&&Np(this,e);break;case"pointerdown":this.userSelect!=="none"&&(Np(this,e),e.shiftKey===!1&&(yield gr(e,this.element.querySelector("[part=container]"),this._menu))&&ec.stop());break;case"contextmenu":this.userSelect!=="none"&&e.shiftKey===!1&&(yield gr(e,this.element.querySelector("[part=container]"),this._menu))&&ec.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&uh(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>cd(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>cd(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(e);break;default:console.warn("Unexpected event type",e.type)}}})}dispose(){if(!cd(this))return;ne.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,$0(),Yg(),ep()}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 l(e)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(e),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(cA(this))),!1):A(this,e)}get errors(){return fd(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=Mh(this.model,this.model.position))!=null?r:"math");const i=this.undoManager.canUndo();Ls.insert(this.model,e,t)&&(Il(this),i||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 i=window.mathVirtualKeyboard.boundingRect,s=this.host.getBoundingClientRect();s.bottom>i.top&&((e=window.document.scrollingElement)==null||e.scrollBy(0,s.bottom-i.top+8))}}this.dirty&&jh(this,{interactive:!0});const t=this.field.getBoundingClientRect();let r=null;if(this.model.selectionIsCollapsed)r=th(this.field);else{const i=Rm(this);if(i.length>0){let s=-1/0,c=-1/0;for(const u of i)u.right>s&&(s=u.right),u.top<c&&(c=u.top);r={x:s+t.left-this.field.scrollLeft,y:c+t.top-this.field.scrollTop,height:0}}}if(this.host&&r){const i=this.host.getBoundingClientRect(),s=r.y;let c=this.host.scrollTop;s<i.top?c=s-i.top+this.host.scrollTop:s>i.bottom&&(c=s-i.bottom+this.host.scrollTop+r.height),this.host.scroll({top:c,left:0})}if(r){const i=r.x-window.scrollX;let s=this.field.scrollLeft;i<t.left?s=i-t.left+this.field.scrollLeft-20:i>t.right&&(s=i-t.right+this.field.scrollLeft+20),this.field.scroll({top:this.field.scrollTop,left:s})}}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&&L()&&navigator.vibrate(Ig),window.MathfieldElement.playSound("keypress")),e==="\\\\"?Ba(this.model):e==="&"?Sa(this.model):this.model.selectionIsCollapsed?Ls.insert(this.model,e,g({style:this.model.at(this.model.position).computedStyle},t)):Ls.insert(this.model,e,t),this.snapshot(`insert-${this.model.at(this.model.position).type}`),Il(this),t.scrollIntoView&&this.scrollIntoView(),!0)}switchMode(e,t="",r=""){var i;if(this.model.mode===e||!this.hasEditableContent||!this.contentEditable||this.disabled)return;const s=this.model.mode;if(this.model.mode=e,!((i=this.host)!=null&&i.dispatchEvent(new Event("mode-change",{bubbles:!0,composed:!0,cancelable:!0})))){this.model.mode=s;return}const c=this.model.mode,{model:u}=this;u.deferNotifications({content:!!r||!!t,selection:!0,type:"insertText"},()=>{let k=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),t&&e!=="latex"){const j=hc(t,{context:this.context,parseMode:e});u.collapseSelection("forward");const X=u.at(u.position);u.position=u.offsetOf(X.parent.addChildrenAfter(j,X)),k=!0}if(this.model.mode=e,e==="latex"){let j=u.selectionIsCollapsed;Hh(this,"accept");let X,ce=u.at(u.position);if(j)X="\\";else{const nt=Jl(u.selection);X=this.model.getValue(nt,"latex");const vt=this.model.extractAtoms(nt);vt.length===1&&vt[0].type==="placeholder"&&(X=t,j=!0),ce=u.at(nt[0])}const Pe=new _f(X);ce.parent.addChildAfter(Pe,ce),j?u.position=u.offsetOf(Pe.lastChild):u.setSelection(u.offsetOf(Pe.firstChild),u.offsetOf(Pe.lastChild))}else z0(u).forEach(j=>{j.isError=!1});if(r){const j=hc(r,{context:this.context,parseMode:c});u.collapseSelection("forward");const X=u.at(u.position);u.position=u.offsetOf(X.parent.addChildrenAfter(j,X)),k=!0}return Il(this),this.undoManager.snapshot(e==="latex"?"insert-latex":"insert"),k}),this.model.mode=e,window.mathVirtualKeyboard.update(cA(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,i;const s={operation:"set",silenceNotifications:!1};Yf(t)?s.range=t:(t.operation==="toggle"&&(s.operation="toggle"),s.range=t.range,s.silenceNotifications=(r=t.silenceNotifications)!=null?r:!1);const c=Z0(this,e),u=(i=s.operation)!=null?i:"set";if(s.range===void 0&&this.model.selectionIsCollapsed){if(u==="set"){this.defaultStyle=g(g({},this.defaultStyle),c);return}const k=g({},this.defaultStyle);for(const j of Object.keys(c))k[j]===c[j]?(j==="color"&&delete k.verbatimColor,j==="backgroundColor"&&delete k.verbatimBackgroundColor,delete k[j]):k[j]=c[j];this.defaultStyle=k;return}this.model.deferNotifications({content:!s.silenceNotifications,type:"insertText"},()=>{if(s.range===void 0)for(const k of this.model.selection.ranges)Wo(this.model,k,c,{operation:u});else Wo(this.model,s.range,c,{operation:u})}),Il(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=th(this.field);return e?{x:e.x,y:e.y}:null}setCaretPoint(e,t){const r=vd(this,e,t,{bias:0});if(r<0)return!1;const i=this.model.position;return this.model.position=r,this.model.announce("move",i),Il(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 i=this.model.offsetOf(r.firstChild),s=this.model.offsetOf(r.lastChild);return this.model.getValue(i,s,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 i=this.getPrompt(e);if(!i){console.error(`MathLive 0.98.5: unknown prompt ${e}`);return}const s=this.model.getBranchRange(this.model.offsetOf(i),"body");this.model.setSelection(s),this.insert(t,F(g({},r),{insertionMode:"replaceSelection"}))}r!=null&&r.silenceNotifications&&(this.valueOnFocus=this.getValue()),Il(this)}setPromptState(e,t,r){const i=this.getPrompt(e);if(!i){console.error(`MathLive 0.98.5: unknown prompt ${e}`);return}t==="undefined"?i.correctness=void 0:typeof t=="string"&&(i.correctness=t),typeof r=="boolean"&&(i.locked=r,i.captureSelection=r),Il(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(cA(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(cA(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(cA(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 i=r.at(r.position),s=(e=i.mode)!=null?e:sn(this.options);this.model.mode!==s&&(this.model.mode==="latex"?(Hh(this,"accept",{mode:s}),r.position=r.offsetOf(i)):this.switchMode(s))}(t=this.host)==null||t.dispatchEvent(new Event("selection-change",{bubbles:!0,composed:!0})),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(cA(this)),uh(this)}onContentWillChange(e){var t,r,i;return(i=(r=this.host)==null?void 0:r.dispatchEvent(new InputEvent("beforeinput",F(g({},e),{data:e.data?e.data:(t=e.inputType)!=null?t:"",cancelable:!0,bubbles:!0,composed:!0}))))!=null?i:!0}onFocus(){this.focusBlurInProgress||!this.blurred||(this.focusBlurInProgress=!0,this.blurred=!1,this.keyboardDelegate.focus(),this.stopCoalescingUndo(),jh(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="",kA(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})),Il(this),this.focusBlurInProgress=!1,Op();const i=new AbortController,s=i.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{cd(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:s})},{once:!0,signal:s}),setTimeout(()=>i.abort(),100)}onInput(e){Fp(this,e)}onKeystroke(e){return Wh(this,e)}onCompositionStart(e){this.model.deleteAtoms(Jl(this.model.selection));const t=th(this.field);t&&requestAnimationFrame(()=>{jh(this),this.keyboardDelegate.moveTo(t.x,t.y-t.height)})}onCompositionUpdate(e){_o(this.model,e),Il(this)}onCompositionEnd(e){Ta(this.model),Fp(this,e,{simulateKeystroke:!0})}onCut(e){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),Ls.onCopy(this,e),bc(this.model,Jl(this.model.selection),"deleteByCut"),this.snapshot("cut"),Il(this))}onCopy(e){Ls.onCopy(this,e)}onPaste(e){let t=this.isSelectionEditable;return t&&(t=Ls.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(),Ip(this),uh(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=>Tt(r,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}};function jp(e){if(e&&(e.classList.remove("ML__highlight"),e.children))for(const t of e.children)jp(t)}function sp(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(i=>{i instanceof HTMLElement&&sp(i)})):(e.classList.remove("ML__highlight"),e.children&&e.children.length>0&&[...e.children].forEach(i=>{i instanceof HTMLElement&&sp(i,t)})))}function ug(e,t){var r;if(!O())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 i=new window.AWS.Polly({apiVersion:"2016-06-10"}),s={OutputFormat:"json",VoiceId:(r=window.MathfieldElement.speechEngineVoice)!=null?r:"Joanna",Engine:"standard",Text:t,TextType:"ssml",SpeechMarkTypes:["ssml"]};NA().readAloudElement=e,i.synthesizeSpeech(s,(c,u)=>{if(c){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${c}`);return}if(!(u!=null&&u.AudioStream)){console.log("polly.synthesizeSpeech():",u);return}const k=new TextDecoder("utf-8").decode(new Uint8Array(u.AudioStream));NA().readAloudMarks=k.split(`
`).map(j=>j?JSON.parse(j):{}),NA().readAloudTokens=[];for(const j of NA().readAloudMarks)j.value&&NA().readAloudTokens.push(j.value);NA().readAloudCurrentMark="",s.OutputFormat="mp3",s.SpeechMarkTypes=[],i.synthesizeSpeech(s,(j,X)=>{if(j){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${t}") error:${j}`);return}if(!(X!=null&&X.AudioStream))return;const ce=new Uint8Array(X.AudioStream),Pe=new Blob([ce.buffer],{type:"audio/mpeg"}),nt=URL.createObjectURL(Pe),vt=NA();vt.readAloudAudio?vt.readAloudAudio.pause():(vt.readAloudAudio=new Audio,vt.readAloudAudio.addEventListener("ended",()=>{const St=vt.readAloudMathfield;vt.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),St?(jh(St),vt.readAloudElement=null,vt.readAloudMathfield=null,vt.readAloudTokens=[],vt.readAloudMarks=[],vt.readAloudCurrentMark=""):jp(vt.readAloudElement)}),vt.readAloudAudio.addEventListener("timeupdate",()=>{let St="";const Cr=vt.readAloudAudio.currentTime*1e3+100;for(const _n of vt.readAloudMarks)_n.time<Cr&&(St=_n.value);vt.readAloudCurrentMark!==St&&(vt.readAloudCurrentToken=St,St&&St===vt.readAloudFinalToken?vt.readAloudAudio.pause():(vt.readAloudCurrentMark=St,sp(vt.readAloudElement,vt.readAloudCurrentMark)))})),vt.readAloudAudio.src=nt,vt.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),vt.readAloudAudio.play()})})}O()||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 Qo=new WeakMap,dg=.5,sf={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 = ..."},cc=class Zp extends HTMLElement{static get formAssociated(){return h0()}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,t1())}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,i,s;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:(i=t.return)!=null?i:t.default,delete:(s=t.delete)!=null?s: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 ne.locale}static set locale(t){t==="auto"&&(t=navigator.language.slice(0,5)),ne.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 ne.strings}static set strings(t){ne.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 i=(t=window[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:t.ComputeEngine;if(!i)return null;this._computeEngine=new i,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 hp(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 i=this.soundsDirectory;if(!(i==null||i==="null"||r==="none"||r==="null"))try{const c=yield(yield fetch(yield Sg(`${i}/${r}`))).arrayBuffer(),u=yield this.audioContext.decodeAudioData(c);this.audioBuffers[t]=u}catch(s){}})}static playSound(t){return hp(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 i=this.audioContext.createGain();i.gain.value=dg,r.connect(i).connect(this.audioContext.destination),r.start()})}constructor(t){if(super(),t){const r=[];for(const i of Object.keys(t))if(sf[i])if(sf[i].startsWith("mf."))if(sf[i].startsWith(`mf.${i}`))r.push(`Option \`${i}\` cannot be used as a constructor option. Use ${sf[i]}`);else{const s=sf[i].match(/([a-zA-Z]+) =/);r.push(`Option \`${i}\` has been renamed \`${s[1]}\``)}else r.push(`Option \`${i}\` cannot be used as a constructor option. Use ${sf[i]}`);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 i of r)console.warn(i);console.groupEnd()}}if(h0()&&(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=[IA("core"),IA("mathfield"),IA("mathfield-element"),IA("ui"),IA("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>"+lu("core")+lu("mathfield")+lu("mathfield-element")+lu("ui")+lu("menu")+'</style><span></span><slot style="display:none"></slot>';t&&this._setOptions(t),this.shadowRoot.addEventListener("slotchange",()=>{var r;const i=this.shadowRoot.querySelector("slot:not([name])");this.value=(r=i==null?void 0:i.assignedNodes().map(s=>s.nodeType===3?s.textContent:"").join("").trim())!=null?r:""})}showMenu(t){var r,i;return(i=(r=this._mathfield)==null?void 0:r.showMenu(t))!=null?i:!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 i,s;return(s=(i=this._mathfield)==null?void 0:i.getPromptValue(t,r))!=null?s:""}setPromptValue(t,r,i){var s;(s=this._mathfield)==null||s.setPromptValue(t,r,i)}getPromptRange(t){var r,i;return(i=(r=this._mathfield)==null?void 0:r.getPromptRange(t))!=null?i:null}getPrompts(t){var r,i;return(i=(r=this._mathfield)==null?void 0:r.getPrompts(t))!=null?i:[]}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,i;if(!this._mathfield)return;const s=(i=(r=Zp.computeEngine)==null?void 0:r.box(t).latex)!=null?i:null;s!==null&&this._mathfield.setValue(s),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?vi(this._mathfield.options,t):Qo.has(this)?g({},vi(g(g({},Fi()),Qn(Qo.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?vi(this._mathfield.options,t):Qo.has(this)?vi(g(g({},Fi()),Qn(Qo.get(this).options)),t):null}reflectAttributes(){const t=Fi(),r=this._getOptions();Object.keys(Zp.optionsAttributes).forEach(i=>{const s=Uf(i);Zp.optionsAttributes[i]==="on/off"?t[s]!==r[s]?this.setAttribute(i,r[s]?"on":"off"):this.removeAttribute(i):t[s]!==r[s]&&(Zp.optionsAttributes[i]==="boolean"?r[s]?this.setAttribute(i,""):this.removeAttribute(i):(typeof r[s]=="string"||typeof r[s]=="number")&&this.setAttribute(i,r[s].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(Qo.has(this)){const r=g(g({},Qo.get(this).options),t);Qo.set(this,F(g({},Qo.get(this)),{selection:{ranges:r.readOnly?[[0,0]]:[[0,-1]]},options:r}))}else Qo.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))sf[r]&&console.warn(`\`mf.setOptions({${r}:...})\` -> ${sf[r]}`);console.groupEnd(),this._setOptions(t)}executeCommand(t){var r,i;return(i=(r=this._mathfield)==null?void 0:r.executeCommand(t))!=null?i:!1}getValue(t,r,i){var s,c;if(this._mathfield)return this._mathfield.model.getValue(t,r,i);if(Qo.has(this)){let u,k,j;if(Fh(t)?([u,k]=t.ranges[0],j=r):Yf(t)?([u,k]=t,j=r):ld(t)&&ld(r)?(u=t,k=r,j=i):(u=0,k=-1,j=t),(j===void 0||j==="latex")&&u===0&&k===-1)return(c=(s=Qo.get(this).value)!=null?s:this.textContent)!=null?c:""}return""}setValue(t,r){if(this._mathfield&&t!==void 0){r!=null||(r={silenceNotifications:!0,mode:"math"}),this._mathfield.setValue(t,r);return}if(Qo.has(this)){const s=Qo.get(this).options;Qo.set(this,{value:t,selection:{ranges:[[-1,-1]],direction:"forward"},options:s,menuItems:void 0});return}const i=zp(this);Qo.set(this,{value:t,selection:{ranges:[[-1,-1]],direction:"forward"},options:i,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 i,s;return(s=(i=this._mathfield)==null?void 0:i.insert(t,r))!=null?s:!1}applyStyle(t,r){var i;return(i=this._mathfield)==null?void 0:i.applyStyle(t,r)}queryStyle(t){var r,i;return(i=(r=this._mathfield)==null?void 0:r.queryStyle(t))!=null?i:"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 i,s;return(s=(i=this._mathfield)==null?void 0:i.setCaretPoint(t,r))!=null?s:!1}offsetFromPoint(t,r,i){return this._mathfield?vd(this._mathfield,t,r,i):-1}hitboxFromOffset(t){if(!this._mathfield)return null;const r=this._mathfield.model.at(t);if(!r)return null;const i=nh(this._mathfield,r);return i?new DOMRect(i.left,i.top,i.right-i.left,i.bottom-i.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,i,s,c;Hc.state==="closed"&&((i=(r=this._mathfield)==null?void 0:r.menu)==null?void 0:i.state)==="closed"&&(t.type==="pointerdown"&&this.onPointerDown(),t.type==="focus"&&((s=this._mathfield)==null||s.focus()),t.type==="blur"&&((c=this._mathfield)==null||c.blur()))}connectedCallback(){var t,r,i,s;const c=window.getComputedStyle(this),u=this.shadowRoot,k=c.userSelect!=="none";if(k)u.host.addEventListener("pointerdown",this,!0);else{const ce=u.querySelector("span");ce.style.pointerEvents="none"}u.host.addEventListener("focus",this,!0),u.host.addEventListener("blur",this,!0),h0()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),k&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const j=u.querySelector("slot:not([name])");if(j)try{this._style=j.assignedElements().filter(ce=>ce.tagName.toLowerCase()==="style").map(ce=>ce.textContent).join("")}catch(ce){console.error(ce)}if(this._style){const ce=document.createElement("style");ce.textContent=this._style,u.appendChild(ce)}let X="";if(this.hasAttribute("value")?X=this.getAttribute("value"):X=(t=j==null?void 0:j.assignedNodes().map(ce=>ce.nodeType===3?ce.textContent:"").join("").trim())!=null?t:"",this._mathfield=new Pg(u.querySelector(":host > span"),F(g({},(i=(r=Qo.get(this))==null?void 0:r.options)!=null?i:zp(this)),{eventSink:this,value:X})),!Qo.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const ce of Object.keys(Zp.optionsAttributes))this.upgradeProperty(Uf(ce))}if(!((s=this._mathfield)!=null&&s.model)){this._mathfield=null;return}if(Qo.has(this)){const ce=this._mathfield,Pe=Qo.get(this),nt=Pe.menuItems;ce.model.deferNotifications({content:!1,selection:!1},()=>{const vt=Pe.value;vt!==void 0&&ce.setValue(vt),ce.model.selection=Pe.selection,Qo.delete(this)}),nt&&(this.menuItems=nt)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),fm()}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 i=vi(this._mathfield.options,Object.keys(Zp.optionsAttributes).map(s=>Uf(s)));Qo.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:i}),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,i){if(r===i)return;const s=i!==null;switch(t){case"contenteditable":Il(this._mathfield);break;case"disabled":this.disabled=s;break;case"read-only":case"readonly":this.readOnly=s;break;default:}}get readonly(){return this.hasAttribute("readonly")||this.hasAttribute("read-only")}set readonly(t){const r=!!t;r?(this.setAttribute("readonly",""),h0()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(h0()?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 i=!!t;i?this.setAttribute("disabled",""):this.removeAttribute("disabled"),h0()?this._internals.ariaDisabled=i?"true":"false":this.setAttribute("aria-disabled",i?"true":"false"),i&&((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,i)=>{if(typeof i=="string")return t._getOption("registers")[i]},set(r,i,s){return typeof i!="string"?!1:(t._setOptions({registers:F(g({},t._getOption("registers")),{[i]:s})}),!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,i;return this._mathfield?(t=this._mathfield.menu._menuItems.map(s=>s.menuItem))!=null?t:[]:(i=(r=Qo.get(this))==null?void 0:r.menuItems)!=null?i:[]}set menuItems(t){var r;if(this._mathfield){const i=(r=this._mathfield.element)==null?void 0:r.querySelector("[part=menu-toggle]");i&&(i.style.display=t.length===0?"none":""),this._mathfield.menu.menuItems=t}Qo.has(this)?Qo.set(this,F(g({},Qo.get(this)),{menuItems:t})):Qo.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:zp(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,i){var s;(s=this._mathfield)==null||s.setPromptState(t,r,i)}getPromptState(t){var r,i;return(i=(r=this._mathfield)==null?void 0:r.getPromptState(t))!=null?i:[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:Qo.has(this)?Qo.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,Il(this._mathfield);return}if(Qo.has(this)){Qo.set(this,F(g({},Qo.get(this)),{selection:t}));return}Qo.set(this,{value:void 0,selection:t,options:zp(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:Qo.has(this)?Qo.get(this).selection.ranges[0][0]:0}set position(t){if(this._mathfield&&(this._mathfield.model.position=t,Il(this._mathfield)),Qo.has(this)){Qo.set(this,F(g({},Qo.get(this)),{selection:{ranges:[[t,t]]}}));return}Qo.set(this,{value:void 0,selection:{ranges:[[t,t]]},options:zp(this),menuItems:void 0})}getOffsetDepth(t){var r,i;return this._mathfield?((i=(r=this._mathfield.model.at(t))==null?void 0:r.treeDepth)!=null?i:2)-2:0}get lastOffset(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.model.lastOffset)!=null?r:-1}};cc.version="0.98.5",cc._fontsDirectory="./fonts",cc._soundsDirectory="./sounds",cc.keypressVibration=!0,cc._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},cc._plonkSound="plonk.wav",cc.audioBuffers={},cc.createHTML=e=>e,cc._speechEngineRate="100%",cc._speechEngineVoice="Joanna",cc._textToSpeechMarkup="",cc._textToSpeechRules="mathlive",cc._textToSpeechRulesOptions={},cc.speakHook=Lg,cc.readAloudHook=ug,cc._decimalSeparator=".",cc.fractionNavigationOrder="numerator-denominator",cc._isFunction=e=>{var t,r;const i=window.MathfieldElement.computeEngine;return(r=(t=i==null?void 0:i.parse(e).domain)==null?void 0:t.isFunction)!=null?r:!1};var f0=cc;function Uf(e){return e.replace(/[^a-zA-Z\d]+(.)/g,(t,r)=>r.toUpperCase())}function zp(e){const t={readOnly:!1},r=f0.optionsAttributes;return Object.keys(r).forEach(i=>{if(e.hasAttribute(i)){const s=e.getAttribute(i);i==="placeholder"?t.contentPlaceholder=s!=null?s:"":r[i]==="boolean"?t[Uf(i)]=!0:r[i]==="on/off"?s==="on"?t[Uf(i)]=!0:s==="off"?t[Uf(i)]=!1:t[Uf(i)]=void 0:r[i]==="number"?t[Uf(i)]=Number.parseFloat(s!=null?s:"0"):t[Uf(i)]=s}}),t}function h0(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var Tg=f0,Ug,Rg,Qg,Kg;if(O()&&!((Ug=window.customElements)!=null&&Ug.get("math-field"))){(Qg=window[Rg=Symbol.for("io.cortexjs.mathlive")])!=null||(window[Rg]={});const e=window[Symbol.for("io.cortexjs.mathlive")];e.version="0.98.5",window.MathfieldElement=f0,(Kg=window.customElements)==null||Kg.define("math-field",f0)}function fg(e,t,r){let i=r,s=0;const c=e.length;for(;i<t.length;){const u=t[i];if(s<=0&&t.slice(i,i+c)===e)return i;u==="\\"?i++:u==="{"?s++:u==="}"&&s--,i++}return-1}function lp(e,t,r,i,s="latex"){const c=[];for(const u of e)if(u.type==="text"){const k=u.data;let j=!0,X=0,ce;ce=k.indexOf(t),ce!==-1&&(X=ce,X>0&&c.push({type:"text",data:k.slice(0,X)}),j=!1);let Pe=!1;for(;!Pe;){if(j){if(ce=k.indexOf(t,X),ce===-1){Pe=!0;break}X!==ce&&c.push({type:"text",data:k.slice(X,ce)}),X=ce}else{if(ce=fg(r,k,X+t.length),ce===-1){Pe=!0;break}let nt=k.slice(X+t.length,ce);s==="ascii-math"&&([,nt]=L0(nt,{format:"ascii-math"})),c.push({type:"math",data:nt,rawData:k.slice(X,ce+r.length),mathstyle:i}),X=ce+r.length}j=!j}X<k.length&&c.push({type:"text",data:k.slice(X)})}else c.push(u);return c}function cp(e,t,r){let i=[{type:"text",data:e}];return t!=null&&t.inline&&t.inline.forEach(([s,c])=>{i=lp(i,s,c,"textstyle")}),t!=null&&t.display&&t.display.forEach(([s,c])=>{i=lp(i,s,c,"displaystyle")}),r!=null&&r.inline&&r.inline.forEach(([s,c])=>{i=lp(i,s,c,"textstyle","ascii-math")}),r!=null&&r.display&&r.display.forEach(([s,c])=>{i=lp(i,s,c,"displaystyle","ascii-math")}),i}function i1(e,t){const r=document.createElement("span");r.setAttribute("translate","no");try{const i="<math xmlns='http://www.w3.org/1998/Math/MathML'>"+t.renderToMathML(e)+"</math>";r.innerHTML=window.MathfieldElement.createHTML(i)}catch(i){console.error(`MathLive 0.98.5: Could not convert "${e}"' to MathML with ${i}`),r.textContent=e}return r.className="ML__sr-only",r}function a1(e,t,r,i){try{const s=t.renderToMarkup(e,{mathstyle:r,format:"html"}),c=document.createElement("span");return c.dataset.latex=e,c.style.display=r==="displaystyle"?"flex":"inline-flex",c.setAttribute("aria-hidden","true"),c.setAttribute("translate","no"),c.innerHTML=window.MathfieldElement.createHTML(s),c}catch(s){if(console.error("Could not parse'"+e+"' with ",s),i)return document.createTextNode(e)}return null}function p0(e,t,r,i){var s;const c=a1(e,r,t||"textstyle",i),u=(s=r.renderAccessibleContent)!=null?s:"";if(c&&/\b(mathml|speakable-text)\b/i.test(u)){const k=document.createElement("span");if(/\bmathml\b/i.test(u)&&r.renderToMathML&&k.append(i1(e,r)),/\bspeakable-text\b/i.test(u)&&r.renderToSpeakableText){const j=document.createElement("span");j.setAttribute("translate","no");const X=r.renderToSpeakableText(e);j.innerHTML=window.MathfieldElement.createHTML(X),j.className="ML__sr-only",k.append(j)}return k.append(c),k}return c}function o1(e,t){var r,i,s;let c=null;if((r=t.TeX)!=null&&r.processEnvironments&&/^\s*\\begin/.test(e)){c=document.createDocumentFragment();const u=p0(e,"",t,!0);u&&c.appendChild(u)}else{if(!e.trim())return null;const u=cp(e,(i=t.TeX)==null?void 0:i.delimiters,(s=t.asciiMath)==null?void 0:s.delimiters);if(u.length===1&&u[0].type==="text")return null;c=document.createDocumentFragment();for(const k of u)if(k.type==="text")c.appendChild(document.createTextNode(k.data));else{const j=p0(k.data,k.mathstyle==="textstyle"?"textstyle":"displaystyle",t,!0);j&&c.appendChild(j)}}return c}function Hg(e,t){var r,i,s,c,u,k,j,X,ce,Pe,nt,vt,St,Cr,_n,wr;if(e.childNodes.length===1&&e.childNodes[0].nodeType===3){const nn=(r=e.childNodes[0].textContent)!=null?r:"";if((i=t.TeX)!=null&&i.processEnvironments&&/^\s*\\begin/.test(nn)){e.textContent="";const An=p0(nn,"",t,!0);An&&e.append(An);return}const Ln=cp(nn,(s=t.TeX)==null?void 0:s.delimiters,(c=t.asciiMath)==null?void 0:c.delimiters);if(Ln.length===1&&Ln[0].type==="math"){e.textContent="";const An=p0(Ln[0].data,Ln[0].mathstyle==="textstyle"?"textstyle":"displaystyle",t,!0);An&&e.append(An);return}if(Ln.length===1&&Ln[0].type==="text")return}for(let nn=e.childNodes.length-1;nn>=0;nn--){const Ln=e.childNodes[nn];if(Ln.nodeType===3){const An=o1((u=Ln.textContent)!=null?u:"",t);An&&(nn+=An.childNodes.length-1,Ln.replaceWith(An))}else if(Ln.nodeType===1){const An=Ln,Si=Ln.nodeName.toLowerCase();if(Si==="script"){const ra=Ln;let Hi;if((k=t.processScriptTypePattern)!=null&&k.test(ra.type))Hi=(j=ra.textContent)!=null?j:"";else if((X=t.processMathJSONScriptTypePattern)!=null&&X.test(ra.type))try{Hi=(Pe=t.serializeToLatex)==null?void 0:Pe.call(t,JSON.parse((ce=ra.textContent)!=null?ce:""))}catch(h){console.error(h)}if(Hi){let h="textstyle";for(const Q of ra.type.split(";")){const[ge,Ke]=Q.toLowerCase().split("=");ge.trim()==="mode"&&(h=Ke.trim()==="display"?"displaystyle":"textstyle")}const B=p0(Hi,h,t,!0);B&&ra.parentNode.replaceChild(B,ra)}}else if(((vt=(nt=t.processClassPattern)==null?void 0:nt.test(An.className))!=null?vt:!1)||!((Cr=(St=t.skipTags)==null?void 0:St.includes(Si))!=null&&Cr||(wr=(_n=t.ignoreClassPattern)==null?void 0:_n.test(An.className))!=null&&wr))if(e.childNodes.length===1&&e.childNodes[0].nodeType===3){const Hi=e.textContent;e.textContent="";const h=p0(Hi!=null?Hi:"","displaystyle",t,!0);h&&e.append(h)}else Hg(An,t)}}}var s1={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 l1(e,t){var r,i,s,c;try{const u=g(g({},s1),t);u.ignoreClassPattern=new RegExp((r=u.ignoreClass)!=null?r:""),u.processClassPattern=new RegExp((i=u.processClass)!=null?i:""),u.processScriptTypePattern=new RegExp((s=u.processScriptType)!=null?s:""),u.processMathJSONScriptTypePattern=new RegExp((c=u.processMathJSONScriptType)!=null?c:""),fm(),ud("core"),Hg(e,u)}catch(u){u instanceof Error?console.error("renderMathInElement(): "+u.message):console.error("renderMathInElement(): Could not render math for element",e)}}function bh(e,t){const r=Qr.singleton;return r?(r.show(),ut(),r.currentLayer=t,r.render(),r.focus(),!0):!1}function xd(){const e=window.mathVirtualKeyboard;return e.visible?e.hide({animate:!0}):e.show({animate:!0}),!1}o({switchKeyboardLayer:bh,toggleVirtualKeyboard:xd,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function NA(){var e,t;return(t=globalThis[e=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[e]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function y1(){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 c1(e){Gu(document.body,e)}function yh(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 Gu(e,t){var r,i,s,c;const u=yh(e);if(!u)return;const k=t!=null?t:{};(r=k.renderToMarkup)!=null||(k.renderToMarkup=Ul),(i=k.renderToMathML)!=null||(k.renderToMathML=hh),(s=k.renderToSpeakableText)!=null||(k.renderToSpeakableText=s0),(c=k.serializeToLatex)!=null||(k.serializeToLatex=yu),l1(u,k)}var w1={mathlive:"0.98.5"}}}]);
}());