|
|
!(function(){var Tu=Math.pow;var gd=(bn,Xt,w)=>new Promise((pe,ue)=>{var R=V=>{try{te(w.next(V))}catch(B){ue(B)}},Ne=V=>{try{te(w.throw(V))}catch(B){ue(B)}},te=V=>V.done?pe(V.value):Promise.resolve(V.value).then(R,Ne);te((w=w.apply(bn,Xt)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[3247],{89489:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return f}});var pe=w(14809),ue=w(59301),R={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=R,te=w(7657),V=function(h,z){return ue.createElement(te.Z,(0,pe.Z)({},h,{ref:z,icon:Ne}))},B=ue.forwardRef(V),f=B},59477:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return f}});var pe=w(14809),ue=w(59301),R={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=R,te=w(7657),V=function(h,z){return ue.createElement(te.Z,(0,pe.Z)({},h,{ref:z,icon:Ne}))},B=ue.forwardRef(V),f=B},40001:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return f}});var pe=w(14809),ue=w(59301),R={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=R,te=w(7657),V=function(h,z){return ue.createElement(te.Z,(0,pe.Z)({},h,{ref:z,icon:Ne}))},B=ue.forwardRef(V),f=B},49198:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return f}});var pe=w(14809),ue=w(59301),R={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=R,te=w(7657),V=function(h,z){return ue.createElement(te.Z,(0,pe.Z)({},h,{ref:z,icon:Ne}))},B=ue.forwardRef(V),f=B},84105:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return f}});var pe=w(14809),ue=w(59301),R={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=R,te=w(7657),V=function(h,z){return ue.createElement(te.Z,(0,pe.Z)({},h,{ref:z,icon:Ne}))},B=ue.forwardRef(V),f=B},18785:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return f}});var pe=w(14809),ue=w(59301),R={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=R,te=w(7657),V=function(h,z){return ue.createElement(te.Z,(0,pe.Z)({},h,{ref:z,icon:Ne}))},B=ue.forwardRef(V),f=B},73331:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return f}});var pe=w(14809),ue=w(59301),R={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=R,te=w(7657),V=function(h,z){return ue.createElement(te.Z,(0,pe.Z)({},h,{ref:z,icon:Ne}))},B=ue.forwardRef(V),f=B},15277:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return f}});var pe=w(14809),ue=w(59301),R={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=R,te=w(7657),V=function(h,z){return ue.createElement(te.Z,(0,pe.Z)({},h,{ref:z,icon:Ne}))},B=ue.forwardRef(V),f=B},52671:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return f}});var pe=w(14809),ue=w(59301),R={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=R,te=w(7657),V=function(h,z){return ue.createElement(te.Z,(0,pe.Z)({},h,{ref:z,icon:Ne}))},B=ue.forwardRef(V),f=B},8657:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return f}});var pe=w(14809),ue=w(59301),R={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=R,te=w(7657),V=function(h,z){return ue.createElement(te.Z,(0,pe.Z)({},h,{ref:z,icon:Ne}))},B=ue.forwardRef(V),f=B},56082:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return f}});var pe=w(14809),ue=w(59301),R={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=R,te=w(7657),V=function(h,z){return ue.createElement(te.Z,(0,pe.Z)({},h,{ref:z,icon:Ne}))},B=ue.forwardRef(V),f=B},33853:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return f}});var pe=w(14809),ue=w(59301),R={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=R,te=w(7657),V=function(h,z){return ue.createElement(te.Z,(0,pe.Z)({},h,{ref:z,icon:Ne}))},B=ue.forwardRef(V),f=B},15075:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return f}});var pe=w(14809),ue=w(59301),R={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=R,te=w(7657),V=function(h,z){return ue.createElement(te.Z,(0,pe.Z)({},h,{ref:z,icon:Ne}))},B=ue.forwardRef(V),f=B},62772:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return f}});var pe=w(14809),ue=w(59301),R={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=R,te=w(7657),V=function(h,z){return ue.createElement(te.Z,(0,pe.Z)({},h,{ref:z,icon:Ne}))},B=ue.forwardRef(V),f=B},43531:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return f}});var pe=w(14809),ue=w(59301),R={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=R,te=w(7657),V=function(h,z){return ue.createElement(te.Z,(0,pe.Z)({},h,{ref:z,icon:Ne}))},B=ue.forwardRef(V),f=B},38819:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return f}});var pe=w(14809),ue=w(59301),R={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=R,te=w(7657),V=function(h,z){return ue.createElement(te.Z,(0,pe.Z)({},h,{ref:z,icon:Ne}))},B=ue.forwardRef(V),f=B},47472:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return f}});var pe=w(14809),ue=w(59301),R={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=R,te=w(7657),V=function(h,z){return ue.createElement(te.Z,(0,pe.Z)({},h,{ref:z,icon:Ne}))},B=ue.forwardRef(V),f=B},87395:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return f}});var pe=w(14809),ue=w(59301),R={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=R,te=w(7657),V=function(h,z){return ue.createElement(te.Z,(0,pe.Z)({},h,{ref:z,icon:Ne}))},B=ue.forwardRef(V),f=B},99587:function(bn,Xt){"use strict";Xt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},51359:function(bn,Xt,w){"use strict";var pe=w(59301),ue=Object.defineProperty,R=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,V=(E,h,z)=>h in E?ue(E,h,{enumerable:!0,configurable:!0,writable:!0,value:z}):E[h]=z,B=(E,h)=>{for(var z in h||(h={}))Ne.call(h,z)&&V(E,z,h[z]);if(R)for(var z of R(h))te.call(h,z)&&V(E,z,h[z]);return E};const f=E=>React.createElement("svg",B({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},E),React.createElement("title",null,"\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"}));Xt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzQgMGE2Ljc0IDYuNzQgMCAxIDAgMCAxMy40OEE2Ljc0IDYuNzQgMCAwIDAgNi43NCAwWm0zLjYzNiA1LjAxN0w1LjgxNyA5LjU3NmMtLjA5LjA5LS4yNDYuMDgtLjM0OC0uMDIzbC0uMzA2LS4zMDVMMy4xMiA3LjIwNGEuMjYzLjI2MyAwIDAgMSAwLS4zNzJsLjU1Ny0uNTU3YS4yNjIuMjYyIDAgMCAxIC4zNzIgMGwxLjYwNSAxLjYwNiAzLjc5NC0zLjc5M2MuMDktLjA5LjI0Ni0uMDguMzQ4LjAyMmwuNTU3LjU1N2MuMTAzLjEwMy4xMTMuMjU5LjAyMy4zNDlaIiBmaWxsPSIjNjhDNzlGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="},12327:function(bn,Xt,w){"use strict";var pe=w(59301),ue=Object.defineProperty,R=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,V=(E,h,z)=>h in E?ue(E,h,{enumerable:!0,configurable:!0,writable:!0,value:z}):E[h]=z,B=(E,h)=>{for(var z in h||(h={}))Ne.call(h,z)&&V(E,z,h[z]);if(R)for(var z of R(h))te.call(h,z)&&V(E,z,h[z]);return E};const f=E=>React.createElement("svg",B({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},E),React.createElement("title",null,"\u7F16\u7EC4 18"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("circle",{fill:"#FCB041",cx:7,cy:7,r:7}),React.createElement("path",{d:"M7.531 9.638a.616.616 0 1 1-1.231 0v-.02a.616.616 0 1 1 1.231 0v.02Zm0-2.25a.616.616 0 1 1-1.231 0V4.117a.616.616 0 1 1 1.231 0v3.273Z",fill:"#FFF",fillRule:"nonzero"})));Xt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},84842:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return N}});var pe=w(3113),ue=w(59301),R=Object.defineProperty,Ne=Object.defineProperties,te=Object.getOwnPropertyDescriptors,V=Object.getOwnPropertySymbols,B=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,E=(Q,I,Y)=>I in Q?R(Q,I,{enumerable:!0,configurable:!0,writable:!0,value:Y}):Q[I]=Y,h=(Q,I)=>{for(var Y in I||(I={}))B.call(I,Y)&&E(Q,Y,I[Y]);if(V)for(var Y of V(I))f.call(I,Y)&&E(Q,Y,I[Y]);return Q},z=(Q,I)=>Ne(Q,te(I)),S=(Q,I)=>{var Y={};for(var K in Q)B.call(Q,K)&&I.indexOf(K)<0&&(Y[K]=Q[K]);if(Q!=null&&V)for(var K of V(Q))I.indexOf(K)<0&&f.call(Q,K)&&(Y[K]=Q[K]);return Y},_=(Q,I,Y)=>new Promise((K,ce)=>{var G=j=>{try{W(Y.next(j))}catch(se){ce(se)}},J=j=>{try{W(Y.throw(j))}catch(se){ce(se)}},W=j=>j.done?K(j.value):Promise.resolve(j.value).then(G,J);W((Y=Y.apply(Q,I)).next())});const N=Q=>{var I=Q,{children:Y}=I,K=S(I,["children"]);const[ce,G]=(0,ue.useState)(!1);return ue.createElement(pe.ZP,z(h({},K),{loading:ce,onClick:J=>_(void 0,null,function*(){try{G(!0),yield K.onClick(J),G(!1)}catch(W){console.error(W),G(!1)}})}),Y)}},19105:function(bn,Xt,w){"use strict";var pe=w(59301),ue=w(99587),R=w(48136),Ne=w(76562),te=w(43418),V=w(59301);const B=(0,pe.forwardRef)(({callback:f,width:E,onChange:h,disabled:z,readOnly:S,type:_="",value:N="",style:Q={}},I)=>{const Y=(0,pe.useRef)(),K=(0,pe.useRef)(),[ce,G]=(0,pe.useState)(0),[J,W]=(0,pe.useState)(0),[j,se]=(0,pe.useState)(!1),he=()=>{var X=document.createElement("div");X.innerHTML=Y.current.getValue();var de=X.innerText;return f&&f(de),de};(0,pe.useImperativeHandle)(I,()=>({getData:he}));const Oe=X=>{X.preventDefault();const de=X.clientX-ce,L=X.clientY-J;document.body.onmousemove=rt=>{let De=rt.clientX-de,we=rt.clientY-L;const He=document.getElementsByClassName("markdown-popup-form")[0],ge=window.innerWidth-He.offsetWidth,Le=window.innerHeight-He.offsetHeight;De=Math.max(0,Math.min(De,ge)),we=Math.max(0,Math.min(we,Le)),Be(rt.clientX,rt.clientY,de,L)&&(G(De),W(we))},document.body.onmouseup=function(){document.body.onmousemove=null}},Be=(X,de,L,rt)=>{const De=document.body.clientHeight,we=document.body.clientWidth;return X<20&&L>X||X>we-20&&L<X||de<20&&rt>de||de>De-20&&rt<de?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,pe.useEffect)(()=>{j&&setTimeout(()=>{const X=document.getElementsByClassName("markdown-popup-form")[0],de=window.innerWidth/2-X.offsetWidth/2,L=window.innerHeight/2-X.offsetHeight/2;G(de),W(L)},0)},[j]);const je=()=>{z||S||se(!0)};return V.createElement("div",{style:Q},V.createElement("div",{style:{width:E||"100%",position:"relative"},className:`${ue.Z.mathFillWrap} ${z||S?"cursorDefault":""}`,onClick:()=>je()},V.createElement("math-field",{disabled:z,locale:"zh_cn",class:`${ue.Z.mathField} ${_}`,readOnly:S,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:Y,style:{width:"100%",fontSize:N?18:14},value:N||""})),V.createElement(te.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:ce,top:J},title:V.createElement("div",{style:{cursor:"move"},onMouseDown:Oe},"\u8F93\u5165\u516C\u5F0F"),open:j,onOk:()=>{const X=K.current.getData();Y.current.setValue(X),h(X),se(!1)},onCancel:()=>{se(!1)},destroyOnClose:!0,className:"markdown-popup-form"},V.createElement(Ne.Z,{value:N,ref:K,onChange:h,showSaveButton:!1})))});Xt.Z=B},76562:function(bn,Xt,w){"use strict";var pe=w(59301),ue=w(95237),R=w(43604),Ne=w(99313),te=w(3113),V=w(91842),B=w(99587),f=w(48136),E=w(59301);const h=(0,pe.forwardRef)(({callback:z,showSaveButton:S,value:_=""},N)=>{const Q=(0,pe.useRef)(),I=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],Y=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
|
y=b + r\\text{sin}\\theta \r
|
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\left\\{\\begin{matrix} \r
|
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
|
\\end{matrix}\\right. \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\perp \\alpha \\ \r
|
|
|
b \\perp \\alpha \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
|
a \\perp m,a \\perp n \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
|
a^{2}+b^{2}=c^{2} \r
|
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R^{+} \\ \r
|
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R \\ \r
|
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
|
P \\left( S \\right) =1 \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
\\forall A \\in S \\\\ \r
|
|
|
P \\left( A \\right) \\ge 0 \r
|
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
P_{n}=n! \\\\ \r
|
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
|
\\end{array}`}]}]}],K=J=>{Q.current.setValue(Q.current.getValue()+" "+J.value+" ")},ce=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:E.createElement(ue.Z,{className:B.Z.lists,gutter:[10,10]},I.map((J,W)=>E.createElement(R.Z,{flex:"110px",className:B.Z.item},E.createElement("div",null,E.createElement(V.Z,{value:`$$${J.value}$$`}),J.name),E.createElement("div",{className:B.Z.children},J.children.map((j,se)=>E.createElement("div",{key:se},E.createElement("h1",null,j.name),E.createElement(ue.Z,{gutter:[10,10]},j.data.map((he,Oe)=>E.createElement(R.Z,{key:Oe,onClick:()=>K(he),className:B.Z.diamond},E.createElement(V.Z,{value:"`$$"+he.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:E.createElement(ue.Z,{className:B.Z.lists,gutter:[10,10]},Y.map((J,W)=>E.createElement(R.Z,{flex:"110px",className:B.Z.item},E.createElement("div",null,E.createElement(V.Z,{value:"`$$"+J.value+"$$`"}),J.name),E.createElement("div",{className:B.Z.children},J.children.map((j,se)=>E.createElement("div",{key:se},j.name&&E.createElement("h1",null,j.name),E.createElement(ue.Z,{gutter:[10,10]},j.data.map((he,Oe)=>E.createElement(R.Z,{key:Oe,onClick:()=>K(he),className:B.Z.diamond},E.createElement(V.Z,{value:"`$$"+he.value+"$$`"}))))))))))}],G=()=>{var J=document.createElement("div");J.innerHTML=Q.current.getValue();var W=J.innerText;return z&&z(W),W};return(0,pe.useImperativeHandle)(N,()=>({getData:G})),E.createElement("div",{className:B.Z.mathWrap},E.createElement(Ne.default,{defaultActiveKey:"1",items:ce}),E.createElement("math-field",{locale:"zh_cn",className:B.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Q,style:{width:800,marginTop:30,fontSize:18}},_||""),S&&E.createElement("div",{className:B.Z.button},E.createElement(te.ZP,{size:"large",onClick:G,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Xt.Z=h},44751:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return B}});var pe=w(59301),ue={sendToClass:"sendToClass___le_BX"},R="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==",Ne="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",te=w(3113),B=({createState:f,refreshLoading:E,onRefresh:h=()=>{},onCreate:z=()=>{}})=>pe.createElement("div",{className:ue.sendToClass},f?pe.createElement(pe.Fragment,null,pe.createElement("img",{src:R,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(te.ZP,{onClick:z,type:"primary",ghost:!0},"\u7ACB\u5373\u521B\u5EFA")):pe.createElement(pe.Fragment,null,pe.createElement("img",{src:Ne,alt:"\u7A7A"}),pe.createElement("div",null,"\u5DF2\u521B\u5EFA\u6559\u5B66\u8BFE\u5802\uFF1F\u8BF7\u5237\u65B0\u5217\u8868"),pe.createElement(te.ZP,{loading:E,onClick:h,type:"primary",ghost:!0},"\u7ACB\u5373\u5237\u65B0")))},3039:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return f}});var pe=w(59301),ue={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"},R=w(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",V=(E,h,z)=>new Promise((S,_)=>{var N=Y=>{try{I(z.next(Y))}catch(K){_(K)}},Q=Y=>{try{I(z.throw(Y))}catch(K){_(K)}},I=Y=>Y.done?S(Y.value):Promise.resolve(Y.value).then(N,Q);I((z=z.apply(E,h)).next())}),f=({type:E,resdata:h,onok:z,oktext:S,okloading:_})=>{const[N,Q]=(0,pe.useState)(!1),{can_copy_list:I,can_copy_num:Y,challenge_type:K,course_data_list:ce,no_copy_list:G,no_copy_num:J,no_use_list:W,no_use_num:j,repeat_shixun_num:se,student_count:he,total_num:Oe,use_num:Be}=h;let je=Y>0||E==="exercise";(0,pe.useEffect)(()=>{(h==null?void 0:h.student_count)>0&&Q(!0)},[h]),console.log("---11",_),(0,pe.useEffect)(()=>{_||Q(!1)},[_]);const X=()=>{if(E==="exercise"&&K===1)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",pe.createElement("span",{className:ue.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(E==="exercise"&&K===2)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",pe.createElement("span",{className:ue.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",pe.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(E==="shixun"&&K===1)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(E==="shixun"&&K===2)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",pe.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(E==="subject"&&K===1)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",pe.createElement("span",{className:ue.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(E==="subject"&&K===2)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",pe.createElement("span",{className:ue.orangeColor},he)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",pe.createElement("span",{className:ue.orangeColor},Be)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",pe.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(E==="exercisepush")return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",pe.createElement("span",{className:ue.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",pe.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(E==="shixunpush"&&K===1)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",pe.createElement("span",{className:ue.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(E==="shixunpush"&&K===2)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",pe.createElement("span",{className:ue.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",pe.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},de=()=>{if(E==="exercise"||E==="subject"||E==="exercisepush"||E==="shixunpush")return pe.createElement("div",{style:{marginTop:20}},J>0&&pe.createElement("div",null,pe.createElement("span",{className:ue.flex},pe.createElement("img",{src:te,style:{width:14}}),pe.createElement("span",{className:ue.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),pe.createElement("div",{className:ue.statusbody},E==="exercise"&&pe.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe.createElement("span",{className:ue.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(E==="subject"||E==="exercisepush")&&pe.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",je&&pe.createElement("span",{className:ue.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),E==="shixunpush"&&pe.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",je&&pe.createElement("span",{className:ue.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,G==null?void 0:G.map((L,rt)=>pe.createElement("a",{href:`/shixuns/${L.identifier}/challenges`,target:"_blank"},"\u300A",L==null?void 0:L.name,"\u300B",rt+1!==J&&"\u3001"))))),Y>0&&pe.createElement("div",{style:{marginTop:20}},pe.createElement("span",{className:ue.flex},pe.createElement("img",{src:Ne,style:{width:14}}),pe.createElement("span",{className:ue.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),pe.createElement("div",{className:ue.statusbody},E==="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"),(E==="subject"||E==="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"),E==="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,I==null?void 0:I.map((L,rt)=>pe.createElement("a",{href:`/shixuns/${L.identifier}/challenges`,target:"_blank"},"\u300A",L==null?void 0:L.name,"\u300B",rt+1!==Y&&"\u3001"))))));if(E==="shixun")return pe.createElement("div",{style:{marginTop:20}},Y>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(R.default,{open:N,onCancel:()=>{Q(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!je&&"none"}},zIndex:1003,confirmLoading:_,okText:je?S:"\u6211\u77E5\u9053\u4E86",onOk:()=>V(void 0,null,function*(){je?yield z([...I,...W]):Q(!1)})},pe.createElement("div",{style:{maxHeight:600,overflow:"auto"}},X(),de()))}},16107:function(bn,Xt,w){"use strict";var pe=w(59301),ue=w(43418),R=w(1710);const Ne=({dataSource:te,visible:V,onClose:B=()=>{},onSuccess:f=()=>{},text:E,okText:h})=>{var z;return pe.createElement(ue.default,{centered:!0,destroyOnClose:!0,open:!!V,title:"\u63D0\u793A",width:"600px",okText:h,cancelText:"\u53D6\u6D88",onCancel:B,onOk:f},V==="single"&&pe.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",pe.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},(z=te==null?void 0:te[0])==null?void 0:z.total_score),"\u5206\uFF0C\u8BF7\u786E\u8BA4",E),V==="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",E),pe.createElement(R.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})))};Xt.Z=Ne},70564:function(bn,Xt,w){"use strict";w.d(Xt,{B:function(){return E},F:function(){return f}});var pe=w(44164),ue=w.n(pe),R=w(86129),Ne=w.n(R),te=(h,z,S)=>new Promise((_,N)=>{var Q=K=>{try{Y(S.next(K))}catch(ce){N(ce)}},I=K=>{try{Y(S.throw(K))}catch(ce){N(ce)}},Y=K=>K.done?_(K.value):Promise.resolve(K.value).then(Q,I);Y((S=S.apply(h,z)).next())});const V=()=>{document.body.scrollIntoView()},B=()=>{document.querySelectorAll("canvas").forEach(h=>{(!h.clientWidth||!h.clientHeight)&&h.remove()})},f=(h,z)=>te(void 0,null,function*(){V(),B();const S={margin:[0,1,0,0],image:{type:"png",quality:.95},html2canvas:{letterRendering:!0,useCORS:!0,allowTaint:!1,width:810},jsPDF:{unit:"in",format:"letter",orientation:"portrait"}};let _=ue()();for(let Q=0;Q<h.length;Q++)yield _.set(S).from(h[Q]).toContainer().toCanvas().toPdf().get("pdf").then(I=>te(void 0,null,function*(){Q<h.length-1&&(yield I.addPage())}));const N=new(Ne());N.file(`${z}.pdf`,_.output("blob"),{base64:!1}),N.generateAsync({type:"blob"}).then(function(Q){const I=document.createElement("a");I.href=window.URL.createObjectURL(Q),I.download=`${z}.zip`,document.body.appendChild(I);const Y=new MouseEvent("click");I.dispatchEvent(Y),document.body.removeChild(I)})}),E=(h,z)=>te(void 0,null,function*(){V(),B();const S={margin:[0,0],html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}};let _=ue()();for(let N=0;N<h.length;N++)yield _.set(S).from(h[N]).toContainer().toCanvas().toPdf().get("pdf").then(Q=>te(void 0,null,function*(){N<h.length-1&&(yield Q.addPage())}));_.save(`${z}.pdf`)})},64226:function(bn,Xt,w){"use strict";w.r(Xt),w.d(Xt,{default:function(){return ot}});var pe=w(59301),ue=w(25690),R=w(92832),Ne=w(8591),te=w(1710),V=w(6848),B=w(95237),f=w(43604),E=w(5112),h=w(28103),z=w(71418),S=w(66104),_=w(3113),N=w(38854),Q=w(43418),I={flex_box_center:"flex_box_center___maKAy",flex_space_between:"flex_space_between___vD_VZ",flex_box_vertical_center:"flex_box_vertical_center___kwkiV",flex_box_center_end:"flex_box_center_end___BdkbU",flex_box_column:"flex_box_column___meEQB",bg:"bg___vBzoO",wrap:"wrap___rrSkg",programTitle:"programTitle___kPWjL",btnWrapper:"btnWrapper___F_tyj",btn:"btn___ToWSe",titleForExport:"titleForExport___lhBnq",flexRow:"flexRow___cvXQo",flexColumn:"flexColumn___cTDFf",flexJustifyBetween:"flexJustifyBetween___vy_7r",relative:"relative____B_F8",questionNumber:"questionNumber___V4g28",score:"score___dNKpj",selectTopicButton:"selectTopicButton___NO9DO",line:"line___j553x",dragTip:"dragTip___AaESI",typeActive:"typeActive___dLHVW",mouseTypeActive:"mouseTypeActive___N_Yv8",typeName:"typeName___bdcw3",typeNumber:"typeNumber___B6Fic",typeAction:"typeAction___O3dpz",setScore:"setScore___GA5cK",delete:"delete___O2OvN",modal:"modal___0ENtb",table:"table___ZRr4b",glassSeal:"glassSeal___C7Vpa",export_type_modal:"export_type_modal___ldAtg",export_type_modal_con:"export_type_modal_con___Y9iST",type_item:"type_item___cWirW",img_warp:"img_warp___G7xtB",img_warp_active:"img_warp_active___rw33a",divname:"divname___RLHHc"},Y=w(90537),K=w(70564),ce=w(93629),G=w(32162),J=w(40133),W=w(51257),j=w(81722),se=w(91842),he=w(24334),Oe=w(34269),Be=w(19105),je=w(84842),X=w(38986),de=w(59301),L=Object.defineProperty,rt=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,He=(ct,It,Tt)=>It in ct?L(ct,It,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):ct[It]=Tt,ge=(ct,It)=>{for(var Tt in It||(It={}))De.call(It,Tt)&&He(ct,Tt,It[Tt]);if(rt)for(var Tt of rt(It))we.call(It,Tt)&&He(ct,Tt,It[Tt]);return ct},Le=(ct,It,Tt)=>new Promise((Ht,pr)=>{var sr=k=>{try{fr(Tt.next(k))}catch(nt){pr(nt)}},Br=k=>{try{fr(Tt.throw(k))}catch(nt){pr(nt)}},fr=k=>k.done?Ht(k.value):Promise.resolve(k.value).then(sr,Br);fr((Tt=Tt.apply(ct,It)).next())});const{TextArea:fe}=R.default,Ee={0:"\u5355\u9009\u9898",1:"\u591A\u9009\u9898",2:"\u5224\u65AD\u9898",3:"\u586B\u7A7A\u9898",4:"\u7B80\u7B54\u9898"},At=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"],ft=({newExercisePaper:ct,isExportBlank:It=!1,paperlibrary:Tt,user:Ht,globalSetting:pr,loading:sr,dispatch:Br})=>{var fr,k,nt,P,m,d,x,ee,Ce,H,ne,Ge,xe;const be=(0,ue.useLocation)(),qe=(0,ue.useParams)(),[Et]=(0,ue.useSearchParams)(),[me,pt]=(0,pe.useState)(),lt=(0,pe.useRef)(),[Me,Pe]=(0,pe.useState)(),[gt,zt]=(0,pe.useState)(),[Ut,ir]=(0,pe.useState)([]),[Dr,mr]=(0,pe.useState)(!1),[Mr,Lr]=(0,pe.useState)(""),[vr,ur]=(0,pe.useState)(!1),[$r,cn]=(0,pe.useState)(!1),Sn=Et.get("isIntelligentAssistant");(0,pe.useEffect)(()=>(Br({type:"globalSetting/footerToggle",payload:!1}),()=>{Br({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,pe.useEffect)(()=>{lt.current=qe==null?void 0:qe.id,pt(Et.get("defaultActiveKey")||"0"),Er(),Bn(),nn()},[qe==null?void 0:qe.id]),(0,pe.useEffect)(()=>{var ve;if((ve=ct.exerciseExportHeadData)!=null&&ve.title){const Te=ct.exerciseExportHeadData;Pe(ge({},Te||{}));const{table:ke}=Te||{};let it,$t;(ke!=null&&ke.total_singles_scores||ke!=null&&ke.total_doubles_scores||ke!=null&&ke.total_nulls_scores||ke!=null&&ke.total_judges_scores||ke!=null&&ke.total_pros_scores||ke!=null&&ke.total_shixuns_scores||ke!=null&&ke.total_mains_scores||ke!=null&&ke.total_combination_scores||ke!=null&&ke.total_bpros_scores)&&(it=Number(ke==null?void 0:ke.total_singles_scores)+Number(ke==null?void 0:ke.total_doubles_scores)+Number(ke==null?void 0:ke.total_nulls_scores)+Number(ke==null?void 0:ke.total_judges_scores)+Number(ke==null?void 0:ke.total_pros_scores)+Number(ke==null?void 0:ke.total_shixuns_scores)+Number(ke==null?void 0:ke.total_mains_scores)+Number(ke==null?void 0:ke.total_combination_scores)+Number(ke==null?void 0:ke.total_bpros_scores)),(ke!=null&&ke.singles_scores||ke!=null&&ke.doubles_scores||ke!=null&&ke.nulls_scores||ke!=null&&ke.judges_scores||ke!=null&&ke.pros_scores||ke!=null&&ke.bpros_scores||ke!=null&&ke.shixuns_scores||ke!=null&&ke.mains_scores||ke!=null&&ke.combination_scores)&&($t=Number(ke==null?void 0:ke.singles_scores)+Number(ke==null?void 0:ke.doubles_scores)+Number(ke==null?void 0:ke.nulls_scores)+Number(ke==null?void 0:ke.judges_scores)+Number(ke==null?void 0:ke.pros_scores)+Number(ke==null?void 0:ke.bpros_scores)+Number(ke==null?void 0:ke.shixuns_scores)+Number(ke==null?void 0:ke.mains_scores)+Number(ke==null?void 0:ke.combination_scores));const Qt=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:ke==null?void 0:ke.total_singles_scores,doubles_score:ke==null?void 0:ke.total_doubles_scores,nulls_score:ke==null?void 0:ke.total_nulls_scores,judges_score:ke==null?void 0:ke.total_judges_scores,pros_score:ke==null?void 0:ke.total_pros_scores,bpros_score:ke==null?void 0:ke.total_bpros_scores,shixuns_score:ke==null?void 0:ke.total_shixuns_scores,mains_score:ke==null?void 0:ke.total_mains_scores,combinations_score:ke==null?void 0:ke.total_combination_scores,total_score:it},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:ke==null?void 0:ke.singles_scores,doubles_score:ke==null?void 0:ke.doubles_scores,nulls_score:ke==null?void 0:ke.nulls_scores,judges_score:ke==null?void 0:ke.judges_scores,pros_score:ke==null?void 0:ke.pros_scores,bpros_score:ke==null?void 0:ke.bpros_scores,shixuns_score:ke==null?void 0:ke.shixuns_scores,mains_score:ke==null?void 0:ke.mains_scores,combinations_score:ke==null?void 0:ke.combination_scores,total_score:$t},{key:"3",name:"\u8BC4\u5377\u4EBA"}],Sr=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:ke==null?void 0:ke.total_singles_scores,doubles_score:ke==null?void 0:ke.total_doubles_scores,nulls_score:ke==null?void 0:ke.total_nulls_scores,judges_score:ke==null?void 0:ke.total_judges_scores,pros_score:ke==null?void 0:ke.total_pros_scores,bpros_score:ke==null?void 0:ke.total_bpros_scores,shixuns_score:ke==null?void 0:ke.total_shixuns_scores,mains_score:ke==null?void 0:ke.total_mains_scores,combinations_score:ke==null?void 0:ke.combination_scores,total_score:it},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}];zt([...It?Sr:Qt])}},[ct.exerciseExportHeadData]);const nn=()=>Le(void 0,null,function*(){var ve;const Te=yield(0,ce.cV)({id:qe.id});Te.status==0&&ir(Te.data),yield Bn(),Et.get("exportPDF")&&((ve=Tt.paperData)!=null&&ve.questionList)&&(Ne.ZP.info("\u6B63\u5728\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377pdf"),(0,K.F)(oi.current.children,"\u5BFC\u51FA\u8BD5\u5377"))}),Bn=()=>Le(void 0,null,function*(){const ve=yield(0,ce.Dq)(qe.id);Pe(ve||{});const{table:Te}=ve||{};let ke,it;(Te!=null&&Te.total_singles_scores||Te!=null&&Te.total_doubles_scores||Te!=null&&Te.total_nulls_scores||Te!=null&&Te.total_judges_scores||Te!=null&&Te.total_pros_scores||Te!=null&&Te.total_shixuns_scores||Te!=null&&Te.total_mains_scores||Te!=null&&Te.total_combination_scores||Te!=null&&Te.total_bpros_scores)&&(ke=Number(Te==null?void 0:Te.total_singles_scores)+Number(Te==null?void 0:Te.total_doubles_scores)+Number(Te==null?void 0:Te.total_nulls_scores)+Number(Te==null?void 0:Te.total_judges_scores)+Number(Te==null?void 0:Te.total_pros_scores)+Number(Te==null?void 0:Te.total_shixuns_scores)+Number(Te==null?void 0:Te.total_mains_scores)+Number(Te==null?void 0:Te.total_combination_scores)+Number(Te==null?void 0:Te.total_bpros_scores)),(Te!=null&&Te.singles_scores||Te!=null&&Te.doubles_scores||Te!=null&&Te.nulls_scores||Te!=null&&Te.judges_scores||Te!=null&&Te.pros_scores||Te!=null&&Te.bpros_scores||Te!=null&&Te.shixuns_scores||Te!=null&&Te.mains_scores||Te!=null&&Te.combinations_score)&&(it=Number(Te==null?void 0:Te.singles_scores)+Number(Te==null?void 0:Te.doubles_scores)+Number(Te==null?void 0:Te.nulls_scores)+Number(Te==null?void 0:Te.judges_scores)+Number(Te==null?void 0:Te.pros_scores)+Number(Te==null?void 0:Te.bpros_scores)+Number(Te==null?void 0:Te.shixuns_scores)+Number(Te==null?void 0:Te.mains_scores)+Number(Te==null?void 0:Te.combinations_score));const $t=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:Te==null?void 0:Te.total_singles_scores,doubles_score:Te==null?void 0:Te.total_doubles_scores,nulls_score:Te==null?void 0:Te.total_nulls_scores,judges_score:Te==null?void 0:Te.total_judges_scores,pros_score:Te==null?void 0:Te.total_pros_scores,bpros_score:Te==null?void 0:Te.total_bpros_scores,shixuns_score:Te==null?void 0:Te.total_shixuns_scores,combinations_score:Te==null?void 0:Te.total_combination_scores,mains_score:Te==null?void 0:Te.total_mains_scores,total_score:ke},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:Te==null?void 0:Te.singles_scores,doubles_score:Te==null?void 0:Te.doubles_scores,nulls_score:Te==null?void 0:Te.nulls_scores,judges_score:Te==null?void 0:Te.judges_scores,pros_score:Te==null?void 0:Te.pros_scores,bpros_score:Te==null?void 0:Te.bpros_scores,shixuns_score:Te==null?void 0:Te.shixuns_scores,mains_score:Te==null?void 0:Te.mains_scores,combinations_score:Te==null?void 0:Te.combination_scores,total_score:it},{key:"3",name:"\u8BC4\u5377\u4EBA"}];return zt(It?[{key:"1",name:"\u5E94\u5F97\u5206"},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}]:$t),ve}),ri=[{width:"9%",title:"\u9898\u578B",align:"center",dataIndex:"name",render:ve=>de.createElement("a",null,ve)},{width:"9%",title:((fr=Ut.find(ve=>ve.value==G.fw[0].nameType))==null?void 0:fr.name)||G.fw[0].name,align:"center",dataIndex:"singles_score",render:ve=>de.createElement("a",null,ve==="0.0"?0:ve)},{width:"9%",title:((k=Ut.find(ve=>ve.value==G.fw[1].nameType))==null?void 0:k.name)||G.fw[1].name,align:"center",dataIndex:"doubles_score",render:ve=>de.createElement("a",null,ve==="0.0"?0:ve)},{width:"9%",title:((nt=Ut.find(ve=>ve.value==G.fw[3].nameType))==null?void 0:nt.name)||G.fw[3].name,align:"center",dataIndex:"nulls_score",render:ve=>de.createElement("a",null,ve==="0.0"?0:ve)},{width:"9%",title:((P=Ut.find(ve=>ve.value==G.fw[2].nameType))==null?void 0:P.name)||G.fw[2].name,align:"center",dataIndex:"judges_score",render:ve=>de.createElement("a",null,ve==="0.0"?0:ve)},{width:"9%",title:((m=Ut.find(ve=>ve.value==G.fw[6].nameType))==null?void 0:m.name)||G.fw[6].name,align:"center",dataIndex:"pros_score",render:ve=>de.createElement("a",null,ve==="0.0"?0:ve)},{width:"9%",title:((d=Ut.find(ve=>ve.value==G.fw[5].nameType))==null?void 0:d.name)||G.fw[5].name,align:"center",dataIndex:"shixuns_score",render:ve=>de.createElement("a",null,ve==="0.0"?0:ve)},{width:"9%",title:((x=Ut.find(ve=>ve.value==G.fw[4].nameType))==null?void 0:x.name)||G.fw[4].name,align:"center",dataIndex:"mains_score",render:ve=>de.createElement("a",null,ve==="0.0"?0:ve)},{width:"9%",title:((ee=Ut.find(ve=>ve.value==G.fw[7].nameType))==null?void 0:ee.name)||G.fw[7].name,align:"center",dataIndex:"combinations_score",render:ve=>de.createElement("a",null,ve==="0.0"?0:ve)},{width:"10%",title:((Ce=Ut.find(ve=>ve.value==G.fw[8].nameType))==null?void 0:Ce.name)||G.fw[8].name,align:"center",dataIndex:"bpros_score",render:ve=>de.createElement("a",null,ve==="0.0"?0:ve)},{width:"9%",title:"\u603B\u5206",align:"center",dataIndex:"total_score",render:ve=>de.createElement("a",null,ve==="0.0"?0:ve?parseFloat(ve).toFixed(1):"")}],Er=ve=>{Br({type:"paperlibrary/getPaperData",payload:ge({id:lt.current},ve)})},ni=(ve,Te)=>Le(void 0,null,function*(){if(!ve.destination||!ve.source)return;const ke=Te.questions[ve.source.index].id,it=ve.destination.index+1;(yield Br({type:"paperlibrary/adjustPosition",payload:{id:lt.current,itemId:ke,position:it}})).status!==-1&&Er()}),Li=()=>{var ve,Te,ke,it;Br({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-SendToClass",params:{id:lt.current,data:{is_random:!1},dataSource:[{name:(Te=(ve=Tt.paperData)==null?void 0:ve.exam)==null?void 0:Te.name,total_score:(it=(ke=Tt.paperData)==null?void 0:ke.exam)==null?void 0:it.all_score}],type:"single"}}})},oi=(0,pe.useRef)(),[Ti,Ui]=(0,pe.useState)(!0),Xi=()=>Le(void 0,null,function*(){Ui(!1),Lr(""),mr(!0)}),Ha=()=>Le(void 0,null,function*(){Ui(!0),Lr(""),mr(!0)}),Ji=()=>Le(void 0,null,function*(){var ve;ur(!0);const Te=yield(0,j.Mb)({categoryId:lt.current});ur(!1),Te!=null&&Te.exercise_id&&(0,W.xg)(`/classrooms/coursesId/exercise/${Te.exercise_id}/${(ve=Ht.userInfo)==null?void 0:ve.login}/initate_answer`)}),pi=(ve,Te,ke)=>{var it,$t,Qt,Sr,dr,Hr,Wr,en,Vr,jr,Yr,mn,tn,Dn,Qn,ui,Tn,sn,Kt,Zt,qt;return de.createElement(de.Fragment,null,!ke&&de.createElement("div",{style:{display:"flex"},className:I.programTitle},de.createElement("span",{style:{flexShrink:0},className:"font18"},Te+1,"."),de.createElement(se.Z,{style:{maxWidth:1100},value:ve.name||(ve==null?void 0:ve.shixun_name)}),de.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",(ve==null?void 0:ve.question_type)===7?`\u5171${ve==null?void 0:ve.sub_count}\u5C0F\u9898`:""," ",ve.score,"\u5206\uFF09")),(ve==null?void 0:ve.question_type)===8&&de.createElement(se.Z,{showProgramFill:!0,disabledFill:!0,value:he.Base64.decode(((it=ve==null?void 0:ve.program_attr)==null?void 0:it.code)||"")}),(ve==null?void 0:ve.question_type)===5&&de.createElement("div",null,($t=ve==null?void 0:ve.examination_bank_shixun_challenges)==null?void 0:$t.map((er,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"},er.challenge_name))))),(ve==null?void 0:ve.question_type)===6&&de.createElement("div",null,de.createElement("div",{style:{fontWeight:600,marginTop:4}},"\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00\uFF1A",(Sr=(Qt=ve==null?void 0:ve.program_attr)==null?void 0:Qt.languages)==null?void 0:Sr.join("/")),((Hr=(dr=Tt==null?void 0:Tt.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:(er,Jt,Qr)=>Qr+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(er,Jt,Qr)=>de.createElement(V.Z,{title:de.createElement("pre",null,er)},de.createElement("div",{className:I.divname},er))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(er,Jt,Qr)=>de.createElement(V.Z,{title:de.createElement("pre",null,er)}," ",de.createElement("div",{className:I.divname},er))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:(Wr=ve==null?void 0:ve.program_attr)==null?void 0:Wr.hack_sets})),((Vr=(en=Tt==null?void 0:Tt.paperData)==null?void 0:en.exam)==null?void 0:Vr.show_hack_description)&&de.createElement("div",null,de.createElement(se.Z,{className:I.content,value:((jr=ve==null?void 0:ve.program_attr)==null?void 0:jr.description)||"- -"}))),ve.question_type===Oe.c.Single&&de.createElement(de.Fragment,null,(Yr=ve.choices)==null?void 0:Yr.map(function(er,Jt){return de.createElement(B.Z,{key:Jt},de.createElement(f.Z,{flex:"1"},de.createElement("div",{style:{display:"flex"}},de.createElement("div",{style:{lineHeight:"24px",flexShrink:0}},At[Jt]),de.createElement(se.Z,{value:er.choice_text||""}))))})),ve.question_type===Oe.c.Multiple&&de.createElement(de.Fragment,null,(mn=ve.choices)==null?void 0:mn.map(function(er,Jt){return de.createElement(B.Z,{key:Jt},de.createElement(f.Z,{flex:"1"},de.createElement("div",{style:{display:"flex"}},de.createElement("div",{style:{lineHeight:"24px",flexShrink:0}},At[Jt]),de.createElement(se.Z,{value:er.choice_text||""}))))})),ve.question_type===Oe.c.Judge&&de.createElement("div",{className:I.flexRow},(tn=ve.choices)==null?void 0:tn.map(function(er,Jt){return de.createElement(B.Z,{key:Jt},de.createElement(f.Z,{flex:"25px"},de.createElement("div",{style:{width:25,overflow:"hidden"}},de.createElement(E.ZP,{disabled:!0,style:{width:25,marginLeft:Jt===1&&10}}))),de.createElement(f.Z,{flex:"1",style:{marginLeft:Jt===1&&10}},er.choice_text))})),ve.question_type===Oe.c.Combine&&de.createElement(de.Fragment,null,(Dn=ve.sub_questions)==null?void 0:Dn.map(function(er,Jt){return de.createElement("div",{style:{marginLeft:10}},de.createElement("div",{style:{display:"flex"},className:I.programTitle},de.createElement("span",{style:{flexShrink:0},className:"font18"},Te+1,".",Jt+1),de.createElement(se.Z,{value:er.name||(er==null?void 0:er.shixun_name)}),de.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",er.score,"\u5206\uFF09")),pi(er,Jt,!0))})),Ti&&de.createElement("div",{style:{marginTop:10}},(ve==null?void 0:ve.question_type)<3&&(ve==null?void 0:ve.standard_answer_show)&&de.createElement("span",{className:"font16 "},"\u6B63\u786E\u7B54\u6848\uFF1A",ve==null?void 0:ve.standard_answer_show),!!((Qn=ve==null?void 0:ve.standard_answer)!=null&&Qn.length)&&Ti&&(ve==null?void 0:ve.question_type)===3&&de.createElement("div",null,(ui=ve==null?void 0:ve.standard_answer)==null?void 0:ui.map((er,Jt)=>de.createElement("div",null,de.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",Jt+1,"\uFF09:"),de.createElement("div",null,er.answer_text.map(function(Qr,kr){return de.createElement(f.Z,{span:24,key:kr},(er==null?void 0:er.model)===1?de.createElement(fe,{autoSize:!0,disabled:!0,value:Qr}):de.createElement(Be.Z,{value:Qr,disabled:!0}))}))))),!!((Tn=ve==null?void 0:ve.standard_answer)!=null&&Tn.length)&&Ti&&(ve==null?void 0:ve.question_type)===8&&de.createElement("div",null,(sn=ve==null?void 0:ve.standard_answer)==null?void 0:sn.map((er,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(fe,{autoSize:!0,disabled:!0,value:(er==null?void 0:er.answer_text)||""}))))),!!((Kt=ve==null?void 0:ve.answer_texts)!=null&&Kt.length)&&(ve==null?void 0:ve.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(se.Z,{value:(Zt=ve==null?void 0:ve.answer_texts)==null?void 0:Zt[0]}))),(ve==null?void 0:ve.question_type)===6&&de.createElement("div",null,de.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A",!(ve!=null&&ve.answer_text)&&"\u6682\u65E0"),(ve==null?void 0:ve.answer_text)&&de.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},de.createElement(se.Z,{value:ve==null?void 0:ve.answer_text}))),(ve==null?void 0:ve.question_type)<=4&&((ve==null?void 0:ve.standard_answer_show)||((qt=ve==null?void 0:ve.standard_answer)==null?void 0:qt.length)>0)&&de.createElement(B.Z,{style:{marginTop:14}},de.createElement("span",{className:"font16 "},"\u89E3\u6790\uFF1A"),de.createElement(se.Z,{className:I.renderHtml,value:(ve==null?void 0:ve.analysis)||"\u6682\u65E0\u89E3\u6790"}))),!ke&&de.createElement(h.Z,null))},ki=(0,pe.useCallback)(()=>{var ve,Te;return de.createElement("div",null,de.createElement("div",{className:I.titleForExport},(Te=(ve=Tt.paperData)==null?void 0:ve.exam)==null?void 0:Te.name),de.createElement("div",{style:{textAlign:"center",fontSize:"15px"}},"\u5171:\u3010",Me==null?void 0:Me.large_counts,"\u5927\u9898\u3011\u3010",Me==null?void 0:Me.total_count,"\u5C0F\u9898\u3011\u3010 \u6EE1\u5206",Me==null?void 0:Me.score,"\u5206\u3011 \u8003\u8BD5\u65F6\u95F4\uFF1A\u3010",(Me==null?void 0:Me.time)>-1?`${Me==null?void 0:Me.time}\u5206\u949F`:"\u4E0D\u9650","\u3011"),!!(Me!=null&&Me.exercise_description)&&de.createElement("pre",{style:{fontSize:14,marginBottom:30,marginTop:20,textAlign:"left",color:"#3A3A3A"}},de.createElement("b",null,"\u8BD5\u5377\u987B\u77E5\uFF1A"),Me==null?void 0:Me.exercise_description),de.createElement(te.default,{style:{margin:"20px auto"},className:I.table,columns:ri,dataSource:[...gt||[]],bordered:!0,pagination:!1}))},[Tt.paperData]),Ni=()=>Le(void 0,null,function*(){const ve=yield(0,X.ZP)("/api/intelligent_imports/save_recognize_papers.json",{method:"post",body:{examination_bank_id:qe==null?void 0:qe.id}});(ve==null?void 0:ve.status)===0&&ue.history.replace("/paperlibrary")});return de.createElement("section",{className:I.bg},de.createElement(z.Z,{spinning:sr["paperlibrary/getPaperData"]},de.createElement(B.Z,{className:"pt20",justify:"space-between"},de.createElement(S.Z,{separator:">"},de.createElement(S.Z.Item,{href:"/paperlibrary"},"\u8BD5\u5377\u5E93"),de.createElement(S.Z.Item,{href:`/paperlibrary?defaultActiveKey=${me}`},me==="1"?"\u516C\u5F00":me==="2"?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684"),de.createElement(S.Z.Item,null,"\u8BD5\u5377\u8BE6\u60C5")),de.createElement("div",{className:I.btnWrapper},!Sn&&de.createElement(_.ZP,{onClick:Li,className:I.btn,icon:de.createElement("i",{className:"iconfont icon-fasongtongzhi font14"})},"\u53D1\u9001\u81F3\u8BFE\u5802"),de.createElement(_.ZP,{onClick:()=>ue.history.push(`/paperlibrary/add/${lt.current}?type=2${Sn?"&isIntelligentAssistant=true":""}`),className:I.btn,icon:de.createElement("i",{className:"iconfont icon-bianji10 font14"})},"\u7F16\u8F91\u8BD5\u5377"),de.createElement(_.ZP,{loading:vr,onClick:Ji,className:I.btn,icon:de.createElement("i",{className:"iconfont icon-monikaoshi2 font14"})},"\u6A21\u62DF\u8003\u8BD5"),!Sn&&de.createElement(N.Z,{menu:{items:[{key:"1",label:de.createElement("div",{onClick:Ha},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377+\u7B54\u6848")},{key:"2",label:de.createElement("div",{onClick:Xi},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377")}]}},de.createElement(_.ZP,{type:"primary",icon:de.createElement("i",{className:"iconfont icon-daochu1 font14"})},"\u5BFC\u51FA")),Sn&&de.createElement(je.Z,{onClick:Ni,type:"primary",icon:de.createElement("i",{className:"iconfont icon-baocun1 font14"})},"\u4FDD\u5B58\u8BD5\u5377"))),de.createElement("div",{className:`${I.wrap} pt20 pb20`,ref:oi,id:"paperDomRef"},!((ne=(H=Tt.paperData)==null?void 0:H.questionList)!=null&&ne.length)&&ki(),(xe=(Ge=Tt.paperData)==null?void 0:Ge.questionList)==null?void 0:xe.map((ve,Te)=>{var ke;return de.createElement(de.Fragment,null,(ke=ve.questions)==null?void 0:ke.map((it,$t)=>{const Qt=Math.floor($t/10);return $t%10===0?de.createElement("div",{className:"abc",key:`group-${Qt}`},Te===0&&$t===0&&ki(),$t===0&&de.createElement("div",null,de.createElement("span",{className:"font16 c-light-primary"},ve.number,"\u3001",ve.name),de.createElement("span",{className:"c-grey-999"},"\uFF08\u5171",ve.questions_count,"\u9898\uFF0C",(ve==null?void 0:ve.question_type)===7?`\u5305\u542B${ve==null?void 0:ve.sub_count}\u5C0F\u9898\uFF1B`:"","\u5171",ve.questions_score,"\u5206\uFF09")),ve.questions.slice($t,$t+10).map((Sr,dr)=>de.createElement("div",{key:Sr.id},pi(Sr,$t+dr)))):null}))}))),de.createElement(Y.Z,null),de.createElement(Q.default,{width:450,title:"\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u683C\u5F0F",open:Dr,onCancel:()=>{if($r){Ne.ZP.info("\u5BFC\u51FA\u4E2D\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3");return}mr(!1)},okButtonProps:{loading:$r},onOk:()=>Le(void 0,null,function*(){var ve,Te;if(cn(!0),Mr==""){cn(!1),Ne.ZP.info("\u8BF7\u9009\u62E9\u4E00\u79CD\u5BFC\u51FA\u683C\u5F0F");return}else Mr=="pdf"?yield(0,K.F)(oi.current.children,(Te=(ve=Tt.paperData)==null?void 0:ve.exam)==null?void 0:Te.name):Mr=="word"&&(0,J.ON)({id:lt.current,middle_export:1,export_type:Ti?1:0});cn(!1),mr(!1)})},de.createElement("div",{className:I.export_type_modal},de.createElement("div",{className:I.export_type_modal_con},de.createElement("div",{className:I.type_item},de.createElement("div",{className:`${I.img_warp} ${Mr=="pdf"?I.img_warp_active:""}`,onClick:()=>Lr("pdf")},de.createElement("img",{src:w(45614),width:70,height:70})),"pdf\u683C\u5F0F"),de.createElement("div",{className:I.type_item},de.createElement("div",{className:`${I.img_warp} ${Mr=="word"?I.img_warp_active:""}`,onClick:()=>Lr("word")},de.createElement("img",{src:w(38347),width:70,height:70})),"word\u683C\u5F0F")))))};var ot=(0,ue.connect)(({paperlibrary:ct,user:It,loading:Tt,globalSetting:Ht,newExercisePaper:pr})=>({paperlibrary:ct,user:It,globalSetting:Ht,loading:Tt.effects,newExercisePaper:pr}))(ft)},90537:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return je}});var pe=w(59301),ue=w(25690),R=w(92832),Ne=w(8591),te=w(43418),V=w(5871),B=w(61621),f=w(1710),E=w(3113),h=w(12327),z=w(51359),S={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"},_=w(51257),N=w(44751),Q=w(75736),I=w(84842),Y=w(89392),K=w(3039),ce=w(16107),G=w(59301),J=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,se=(X,de)=>{var L={};for(var rt in X)W.call(X,rt)&&de.indexOf(rt)<0&&(L[rt]=X[rt]);if(X!=null&&J)for(var rt of J(X))de.indexOf(rt)<0&&j.call(X,rt)&&(L[rt]=X[rt]);return L},he=(X,de,L)=>new Promise((rt,De)=>{var we=Le=>{try{ge(L.next(Le))}catch(fe){De(fe)}},He=Le=>{try{ge(L.throw(Le))}catch(fe){De(fe)}},ge=Le=>Le.done?rt(Le.value):Promise.resolve(Le.value).then(we,He);ge((L=L.apply(X,de)).next())});const Oe=R.default.Search,Be=X=>{var de=X,{paperlibrary:L,globalSetting:rt,loading:De,dispatch:we}=de,He=se(de,["paperlibrary","globalSetting","loading","dispatch"]),ge,Le,fe,Ee;const[At,ft]=(0,pe.useState)(""),[ot,ct]=(0,pe.useState)([]),[It,Tt]=(0,pe.useState)([]),[Ht,pr]=(0,pe.useState)(!1),[sr,Br]=(0,pe.useState)(!0),[fr,k]=(0,pe.useState)(!0),[nt,P]=(0,pe.useState)(!0),[m,d]=(0,pe.useState)(!1),[x,ee]=(0,pe.useState)(!1),Ce=(fe=(Le=(ge=L.actionTabs)==null?void 0:ge.params)==null?void 0:Le.data)==null?void 0:fe.is_random,[H,ne]=(0,pe.useState)(!1),[Ge,xe]=(0,pe.useState)({}),[be,qe]=(0,pe.useState)(!1),[Et,me]=(0,pe.useState)(!1),[pt,lt]=(0,pe.useState)([]);(0,pe.useEffect)(()=>{var mr;if(L.actionTabs.key==="Paperlibrary-SendToClass"){const{dataSource:Mr=[],type:Lr}=((mr=L.actionTabs)==null?void 0:mr.params)||{},vr=Mr.filter(ur=>![100,120,150].includes(ur.total_score));vr.length?(me(Lr),lt(vr)):qe(!0)}},[(Ee=L==null?void 0:L.actionTabs)==null?void 0:Ee.key]),(0,pe.useEffect)(()=>{Pe()},[]);const Me=()=>{Tt([]),ft(""),Pe(!0),qe(!1),me(!1),we({type:"paperlibrary/setActionTabs",payload:{}})},Pe=mr=>he(void 0,null,function*(){k(!0);const Mr=yield we({type:"paperlibrary/getCourseList",payload:{search:mr?"":At}});Mr&&(ct((Mr==null?void 0:Mr.courses)||[]),Br(!0),d(!1)),k(!1),P(!1)}),gt=mr=>{const Mr=parseInt(mr);return(0,Y.isNaN)(Mr)?"":Mr},zt=()=>he(void 0,null,function*(){var mr,Mr,Lr,vr,ur,$r,cn;if(!It.length){Ne.ZP.info("\u60A8\u9700\u8981\u9009\u62E9\u8BFE\u5802\uFF0C\u624D\u80FD\u53D1\u9001"),pr(!0);return}const Sn=yield we({type:"paperlibrary/postExistCourse",payload:{course_id:Ce?It==null?void 0:It[0]:It,examination_bank_ids:((Mr=(mr=L.actionTabs)==null?void 0:mr.params)==null?void 0:Mr.examination_bank_ids)||((vr=(Lr=L.actionTabs)==null?void 0:Lr.params)==null?void 0:vr.id)}}),nn=()=>he(void 0,null,function*(){var Bn,ri,Er,ni,Li,oi;ee(!0);let Ti=yield(0,Q.Tr)({id:(ri=(Bn=L.actionTabs)==null?void 0:Bn.params)==null?void 0:ri.id,course_id:Ce?It==null?void 0:It[0]:It,type:(ni=(Er=L.actionTabs)==null?void 0:Er.params)!=null&&ni.isBatch?"batch_examination_bank":"examination_bank",examination_bank_ids:(oi=(Li=L.actionTabs)==null?void 0:Li.params)==null?void 0:oi.examination_bank_ids});ee(!1),(Ti==null?void 0:Ti.student_count)===0?yield Ut([]):xe(Ti),yield new Promise(Ui=>setTimeout(()=>Ui(),1e3))});if(Sn.status==0&&((ur=Sn.data)==null?void 0:ur.count)>0){te.default.confirm({icon:null,title:"\u63D0\u793A",centered:!0,width:596,content:G.createElement("div",{style:{userSelect:"none"}},"\u5F53\u524D\u6559\u5B66\u8BFE\u5802\u4E2D\u5DF2\u5B58\u5728\u8BD5\u5377",(cn=($r=Sn.data)==null?void 0:$r.list)==null?void 0:cn.map((Bn,ri)=>{var Er;return G.createElement(G.Fragment,null,G.createElement("span",{style:{color:"#FA6400"}},"\u300A",Bn==null?void 0:Bn.name,"\u300B"),ri!==((Er=Sn.data)==null?void 0:Er.count)-1&&G.createElement("span",null,"\u3001"))}),"\uFF0C\u8BF7\u786E\u5B9A\u662F\u5426\u9700\u8981\u91CD\u590D\u53D1\u9001\uFF1F"),onOk:()=>he(void 0,null,function*(){yield nn()})}),yield new Promise(Bn=>setTimeout(()=>Bn(),1e3));return}yield nn()}),Ut=mr=>he(void 0,null,function*(){var Mr,Lr,vr,ur,$r,cn;if(!Ce){ne(!0);const ri=yield we({type:(Lr=(Mr=L.actionTabs)==null?void 0:Mr.params)!=null&&Lr.isBatch?"paperlibrary/postBatchSendToCourse":"paperlibrary/sendToClass",payload:{course_id:Ce?It==null?void 0:It[0]:It,id:(ur=(vr=L.actionTabs)==null?void 0:vr.params)==null?void 0:ur.id,examination_bank_ids:(cn=($r=L.actionTabs)==null?void 0:$r.params)==null?void 0:cn.examination_bank_ids,shixuns_info:mr.map(Er=>({shixun_id:Er.id,is_copy:Er.is_copy,is_use:Er.is_use,course_id:Er.course_id}))}});ne(!1),ri&&ri.status===0&&(qe(!1),we({type:"paperlibrary/setActionTabs",payload:{}}),Tt([]),te.default.confirm({title:"\u63D0\u793A",okText:"\u7ACB\u5373\u524D\u5F80",cancelText:"\u7A0D\u540E\u518D\u8BF4",width:480,centered:!0,closable:!0,onOk:()=>{window.location.href=`${ri.data[0].first_category_url}`},content:G.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}ne(!0),setTimeout(()=>{ne(!1)},500);const Sn=ot.find(ri=>ri.course_id===(It==null?void 0:It[0]));let nn=1,Bn=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:G.createElement("div",{className:S.modalColumn},G.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},G.createElement("img",{style:{marginRight:5},src:h.Z}),"\u968F\u673A\u7EC4\u5377\u7C7B\u578B\u7684\u8BD5\u5377\u6309\u7167\u51FA\u5377\u6570\u91CF\u5BF9\u6307\u5B9A\u8BFE\u5802\u751F\u6210\u4E0D\u91CD\u590D\u7684\u8BD5\u5377\u3002"),G.createElement("div",{style:{paddingLeft:18}},"\u8BFE\u5802\u540D\u79F0: ",Sn==null?void 0:Sn.course_name),G.createElement("div",{style:{paddingLeft:9},className:S.modalRow},G.createElement("sup",{className:S.sup},"*"),G.createElement("span",{style:{flexShrink:0}},"\u968F\u673A\u51FA\u5377\u6570\u91CF\uFF1A"),G.createElement(V.Z,{parser:gt,style:{width:120},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u6570\u91CF",min:1,defaultValue:nn,onChange:ri=>{nn=ri;const Er=document.getElementById("model_error");nn<1||nn>50?Er.style.display="block":Er.style.display="none"}})),G.createElement("div",{style:{display:"none",marginLeft:115},id:"model_error",className:"c-red"},"\u8BF7\u8F93\u51651-50\u4E4B\u95F4\u7684\u6574\u6570")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onCancel:Me,onOk:()=>he(void 0,null,function*(){var ri,Er;if(nn<1||nn>50){const Li=document.getElementById("model_error");return Li.style.display="block",Promise.reject()}Bn.update({cancelButtonProps:{disabled:!0}});const ni=yield we({type:"paperlibrary/sendToClass",payload:{course_id:It==null?void 0:It[0],id:(Er=(ri=L.actionTabs)==null?void 0:ri.params)==null?void 0:Er.id,num:nn,shixuns_info:mr.map(Li=>({shixun_id:Li.id,is_copy:Li.is_copy,is_use:Li.is_use}))}});Bn.update({cancelButtonProps:{disabled:!1}}),ni&&ni.status===0&&(te.default.destroyAll(),te.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,title:"\u63D0\u793A",content:G.createElement("div",{className:S.modalColumn},G.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},G.createElement("img",{style:{marginRight:5},src:z.Z}),"\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:()=>{Me()},onOk:()=>{Me(),setTimeout(()=>{var Li,oi;const Ti=(oi=(Li=ni==null?void 0:ni.first_category_url)==null?void 0:Li.split("/"))==null?void 0:oi[2];(0,_.xg)(`/classrooms/${Ti}/exercise`)},1e3)}}))})})}),ir=()=>he(void 0,null,function*(){d(!0),yield Pe()}),Dr=[{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"course_name",ellipsis:!0},{title:"\u5206\u73ED\u6570\u91CF",dataIndex:"course_group_count",width:90,ellipsis:!0},{title:"\u5B66\u5458\u4EBA\u6570",dataIndex:"course_member_count",width:90,ellipsis:!0}];return G.createElement("div",null,G.createElement(te.default,{centered:!0,keyboard:!1,closable:!1,open:be,title:"\u53D1\u9001\u81F3\u8BFE\u5802",maskClosable:!1,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:De["paperlibrary/sendToClass"]||x||!!De["paperlibrary/postExistCourse"],width:752,footer:!1,onOk:zt,destroyOnClose:!0,onCancel:Me},G.createElement("div",{className:S.wrap},G.createElement("div",{className:"mb10"},G.createElement(Oe,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:At,className:S.search,onChange:mr=>{ft(mr.target.value),mr.target.value||Pe(!0)},onSearch:mr=>{ft(mr),Pe(),Tt([])}})),G.createElement(B.Z,{loading:nt},ot.length?G.createElement("div",{className:S.radioWrap},G.createElement(f.default,{bordered:!1,scroll:(ot==null?void 0:ot.length)<=7?{}:{y:350},loading:fr,rowKey:"course_id",pagination:!1,dataSource:ot,columns:Dr,onRow:mr=>({onClick:Mr=>{if(Ce)Tt([mr==null?void 0:mr.course_id]);else{if(!Ce&&!It.includes(mr.course_id)&&It.length>0)return;It!=null&&It.includes(mr==null?void 0:mr.course_id)?Tt(It==null?void 0:It.filter(Lr=>Lr!==(mr==null?void 0:mr.course_id))):Tt([...It,mr==null?void 0:mr.course_id])}}}),rowSelection:{type:"radio",hideSelectAll:!0,selectedRowKeys:It,onChange:mr=>{Tt(mr),pr(!1)}}})):!At&&!fr&&G.createElement(N.Z,{createState:sr,refreshLoading:m,onRefresh:ir,onCreate:()=>{Br(!1),(0,_.xg)("/classrooms/new")}})),Ht&&G.createElement("div",{className:S.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u8BFE\u5802"),G.createElement("div",{className:S.bottom,style:{display:"flex",alignItems:"center"}},G.createElement("div",{style:{flex:1}},G.createElement("div",{className:S.title},G.createElement("img",{src:h.Z,style:{objectFit:"contain"}}),"\u9009\u62E9\u7684\u8BD5\u5377\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802\u5E76\u4E3A\u73ED\u7EA7\u5B66\u5458\u751F\u6210\u8003\u8BD5\u8BD5\u5377")),G.createElement("div",null,G.createElement(E.ZP,{onClick:Me,className:S.no,style:{marginRight:20}},"\u53D6\u6D88"),G.createElement(I.Z,{onClick:zt,className:S.yes},"\u786E\u8BA4"))))),G.createElement(K.Z,{resdata:Ge,type:"exercise",okloading:H,oktext:(Ge==null?void 0:Ge.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:mr=>{Ut(mr)}}),G.createElement(ce.Z,{text:"\u662F\u5426\u7EE7\u7EED\u53D1\u9001\u5230\u6559\u5B66\u8BFE\u5802\u4E2D\uFF1F",okText:"\u786E\u8BA4\u53D1\u9001",visible:Et,dataSource:pt,onSuccess:()=>{me(!1),qe(!0)},onClose:Me}))};var je=(0,ue.connect)(({paperlibrary:X,loading:de,globalSetting:L})=>({paperlibrary:X,globalSetting:L,loading:de.effects}))(Be)},34269:function(bn,Xt,w){"use strict";w.d(Xt,{c:function(){return ue}});var pe=(R=>(R.FirstPage="firstPage",R.PrevPage="prevPage",R.NextPage="nextPage",R))(pe||{}),ue=(R=>(R[R.Single=0]="Single",R[R.Multiple=1]="Multiple",R[R.Judge=2]="Judge",R[R.Fill=3]="Fill",R[R.Subjective=4]="Subjective",R[R.Shixun=5]="Shixun",R[R.Program=6]="Program",R[R.Combine=7]="Combine",R))(ue||{})},40133:function(bn,Xt,w){"use strict";w.d(Xt,{AD:function(){return rt},D9:function(){return fe},Hp:function(){return j},IM:function(){return At},Iy:function(){return se},KM:function(){return fr},MJ:function(){return he},Ne:function(){return Ee},ON:function(){return Tt},Uj:function(){return sr},VY:function(){return ct},YO:function(){return pr},YX:function(){return Ht},Zn:function(){return Q},_g:function(){return G},_k:function(){return ge},c6:function(){return de},cr:function(){return I},eV:function(){return L},fi:function(){return Y},gh:function(){return je},hS:function(){return ft},iA:function(){return K},j6:function(){return J},je:function(){return He},jj:function(){return W},kS:function(){return It},o6:function(){return X},pO:function(){return Br},rQ:function(){return De},sA:function(){return Be},xm:function(){return Le},xo:function(){return ot},y8:function(){return we},yd:function(){return ce}});var pe=w(82264),ue=w(25690),R=w(51257),Ne=w(8591),te=w(346),V=Object.defineProperty,B=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,h=(k,nt,P)=>nt in k?V(k,nt,{enumerable:!0,configurable:!0,writable:!0,value:P}):k[nt]=P,z=(k,nt)=>{for(var P in nt||(nt={}))f.call(nt,P)&&h(k,P,nt[P]);if(B)for(var P of B(nt))E.call(nt,P)&&h(k,P,nt[P]);return k},S=(k,nt,P)=>new Promise((m,d)=>{var x=H=>{try{Ce(P.next(H))}catch(ne){d(ne)}},ee=H=>{try{Ce(P.throw(H))}catch(ne){d(ne)}},Ce=H=>H.done?m(H.value):Promise.resolve(H.value).then(x,ee);Ce((P=P.apply(k,nt)).next())});const _=()=>{(0,ue.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},N=()=>{(0,ue.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},Q=k=>S(void 0,null,function*(){_(),(yield(0,pe.YR)(z({},k))).status===0&&(yield(0,R.QH)("",(0,R.NY)({url:te.Z.API_SERVER+`/api/courses/${k.coursesId}/export_couser_info.json`,query:k}))),N()}),I=k=>S(void 0,null,function*(){const nt=yield(0,pe.yS)(z({},k));if(nt.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${k.coursesId}/exportlist/course_member_act_score`);else{if(nt.status===-2)return nt;nt.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${k.coursesId}/exportlist/course_member_act_score`))}}),Y=k=>S(void 0,null,function*(){const nt=yield(0,pe.W0)(z({},k));if(nt.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${k.coursesId}/exportlist/course_total_score`);else{if(nt.status===-4)return nt;nt.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${k.coursesId}/exportlist/course_total_score`))}}),K=k=>S(void 0,null,function*(){const nt=yield(0,pe.Nl)(z({},k));if(nt.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${k.coursesId}/exportlist/course_total_exercise_and_other`);else{if(nt.status===-4)return nt;nt.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${k.coursesId}/exportlist/course_total_exercise_and_other`))}}),ce=k=>S(void 0,null,function*(){const nt=yield(0,pe.IU)(z({},k));if(nt.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${k.coursesId}/exportlist/export_star_user`);else{if(nt.status===-4)return nt;nt.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${k.coursesId}/exportlist/export_star_user`))}}),G=k=>S(void 0,null,function*(){const nt=yield(0,pe.td)(z({},k));if(nt.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${k.coursesId}/exportlist/course_total_exercise_and_other`);else{if(nt.status===-2)return nt;if(nt.status===-3)(0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${k.coursesId}/exportlist/course_total_exercise_and_other`);else if(nt.status===-4)return nt}}),J=k=>S(void 0,null,function*(){const nt=yield(0,pe.QX)(z({},k));if(nt.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${k.coursesId}/exportlist/course_total_homework`);else{if(nt.status===-4)return nt;nt.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${k.coursesId}/exportlist/course_total_homework`))}}),W=(k,nt)=>S(void 0,null,function*(){const P=yield(0,pe.o_)(z({},k));P.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"),ue.history.push(`/classrooms/${k.coursesId}/exportlist/${nt}`)):P.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${k.coursesId}/exportlist/${nt}`))}),j=(k,nt)=>S(void 0,null,function*(){const P=yield(0,pe.ZL)(z({},k));P.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"),ue.history.push(`/classrooms/${k.coursesId}/exportlist/${nt}`)):P.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${k.coursesId}/exportlist/${nt}`))}),se=(k,nt)=>S(void 0,null,function*(){const P=yield(0,pe.aP)(z({},k));P.status===0?(Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${k.coursesId}/exportlist/${nt}`)):P.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${k.coursesId}/exportlist/${nt}`))}),he=(k,nt)=>S(void 0,null,function*(){const P=yield(0,pe.vV)(z({},k));P.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"),ue.history.push(`/classrooms/${k.coursesId}/exportlist/${nt}`)):P.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${k.coursesId}/exportlist/${nt}`))}),Oe=k=>S(void 0,null,function*(){_(),(yield exportCourseWorkListAppendix(z({},k))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${k.categoryId}/works_list.zip`,query:k}))),N()}),Be=k=>S(void 0,null,function*(){_(),yield(0,R.QH)("",te.Z.API_SERVER+`/api/polls/${k.categoryId}/commit_result.xlsx`),N()}),je=k=>S(void 0,null,function*(){yield(0,R.FH)("",(0,R.NY)({url:te.Z.API_SERVER+`/api/courses/${k.coursesId}/attendances/export_xlsx_data.xlsx`,query:k}))}),X=k=>S(void 0,null,function*(){yield(0,R.FH)("",(0,R.NY)({url:te.Z.API_SERVER+`/api/courses/${k.coursesId}/video_study_statics.xlsx`,query:k}))}),de=k=>S(void 0,null,function*(){yield(0,R.FH)("",(0,R.NY)({url:te.Z.API_SERVER+`/api/courses/${k.coursesId}/export_video_study.xlsx`,query:k}))}),L=k=>S(void 0,null,function*(){yield(0,R.FH)("",(0,R.NY)({url:te.Z.API_SERVER+`/api/courses/${k.coursesId}/export_course_students_info.xlsx`,query:k}))}),rt=k=>S(void 0,null,function*(){yield(0,R.FH)("",(0,R.NY)({url:te.Z.API_SERVER+"/api/school_manages/students.xlsx",query:k}))}),De=k=>S(void 0,null,function*(){yield(0,R.FH)("",(0,R.NY)({url:te.Z.API_SERVER+"/api/item_banks/export.xlsx",query:k}))}),we=k=>S(void 0,null,function*(){yield(0,R.FH)("",(0,R.NY)({url:te.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:k}))}),He=k=>S(void 0,null,function*(){const nt=yield(0,pe.Uy)(z({},k));nt.status===0?(Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${k.coursesId}/exportlist/exercise_score,export_exercise_users`)):nt.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${k.coursesId}/exportlist/exercise_score,export_exercise_users`))}),ge=k=>S(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,R.FH)("",(0,R.NY)({url:te.Z.API_SERVER+`/api/export_records/${k.id}.xlsx`,query:k}))}),Le=k=>S(void 0,null,function*(){yield(0,R.FH)("",(0,R.NY)({url:te.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:k}))}),fe=k=>S(void 0,null,function*(){yield(0,R.FH)("",(0,R.NY)({url:te.Z.API_SERVER+`/api/courses/${k==null?void 0:k.coursesId}/${k.menuKey}_statistic.xlsx?${k.checkedList.map(nt=>`course_group_id[]=${nt}`).join("&")}`,query:k}))}),Ee=k=>S(void 0,null,function*(){yield(0,R.FH)("",(0,R.NY)({url:te.Z.API_SERVER+`/api/ec_years/${k==null?void 0:k.ec_year_id}/ec_training_objectives.xlsx`,query:k}))}),At=k=>S(void 0,null,function*(){yield(0,R.FH)(k==null?void 0:k.name,(0,R.NY)({url:te.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:k}))}),ft=k=>S(void 0,null,function*(){yield(0,R.FH)("",(0,R.NY)({url:te.Z.API_SERVER+`/api/ec_years/${k==null?void 0:k.ec_year_id}/ec_courses.xlsx`,query:k}))}),ot=k=>S(void 0,null,function*(){yield(0,R.FH)("",(0,R.NY)({url:te.Z.API_SERVER+`/api/ec_years/${k==null?void 0:k.ec_year_id}/ec_graduation_requirements.xlsx`,query:k}))}),ct=k=>S(void 0,null,function*(){yield(0,R.FH)("",(0,R.NY)({url:te.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:k}))}),It=k=>S(void 0,null,function*(){yield(0,R.FH)("",(0,R.NY)({url:te.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:k}))}),Tt=k=>S(void 0,null,function*(){yield(0,R.FH)("",(0,R.NY)({url:te.Z.API_SERVER+`/api/examination_banks/${k.id}.json`,query:k}))}),Ht=k=>S(void 0,null,function*(){yield(0,R.FH)("",(0,R.NY)({url:te.Z.API_SERVER+`/api/exercises/${k.categoryId}.json`,query:k}))}),pr=k=>S(void 0,null,function*(){yield(0,R.FH)("",(0,R.NY)({url:te.Z.API_SERVER+`/api/polls/${k==null?void 0:k.id}/commit_result.json`,query:k}))}),sr=k=>S(void 0,null,function*(){yield(0,R.FH)("",(0,R.NY)({url:te.Z.API_SERVER+"/api/paths/get_task_pass.json",query:k}))}),Br=(k,nt)=>S(void 0,null,function*(){yield(0,R.FH)(nt||"",(0,R.NY)({url:te.Z.API_SERVER+`/api/exercises/${k==null?void 0:k.exercise_id}/consult_exercise.json`,query:k}))}),fr=k=>S(void 0,null,function*(){yield(0,R.FH)("",(0,R.NY)({url:te.Z.API_SERVER+`/api/competitions/${k==null?void 0:k.identifier}/competition_commit_records/member_works.xlsx`,query:k}))})},50371:function(bn,Xt){"use strict";function w(){const pe=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ue=1;ue<arguments.length;ue++){const R=ue<0||arguments.length<=ue?void 0:arguments[ue];R&&Object.keys(R).forEach(Ne=>{const te=R[Ne];te!==void 0&&(pe[Ne]=te)})}return pe}Xt.Z=w},13845:function(bn,Xt,w){"use strict";w.d(Xt,{F:function(){return pe},Z:function(){return ue}});function pe(R){return R!=null&&R===R.window}function ue(R,Ne){var te,V;if(typeof window=="undefined")return 0;const B=Ne?"scrollTop":"scrollLeft";let f=0;return pe(R)?f=R[Ne?"pageYOffset":"pageXOffset"]:R instanceof Document?f=R.documentElement[B]:(R instanceof HTMLElement||R)&&(f=R[B]),R&&!pe(R)&&typeof f!="number"&&(f=(V=((te=R.ownerDocument)!==null&&te!==void 0?te:R).documentElement)===null||V===void 0?void 0:V[B]),f}},56762:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return ue}});var pe=w(59301);function ue(){const[,R]=pe.useReducer(Ne=>Ne+1,0);return R}},68031:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return Ne}});var pe=w(16089);function ue(te,V,B,f){const E=B-V;return te/=f/2,te<1?E/2*te*te*te+V:E/2*((te-=2)*te*te+2)+V}var R=w(13845);function Ne(te){let V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:B=()=>window,callback:f,duration:E=450}=V,h=B(),z=(0,R.Z)(h,!0),S=Date.now(),_=()=>{const Q=Date.now()-S,I=ue(Q>E?E:Q,z,te,E);(0,R.F)(h)?h.scrollTo(window.pageXOffset,I):h instanceof Document||h.constructor.name==="HTMLDocument"?h.documentElement.scrollTop=I:h.scrollTop=I,Q<E?(0,pe.Z)(_):typeof f=="function"&&f()};(0,pe.Z)(_)}},19080:function(bn,Xt,w){"use strict";w.d(Xt,{F:function(){return te},Z:function(){return Ne}});var pe=w(92310),ue=w.n(pe);const R=null;function Ne(V,B,f){return ue()({[`${V}-status-success`]:B==="success",[`${V}-status-warning`]:B==="warning",[`${V}-status-error`]:B==="error",[`${V}-status-validating`]:B==="validating",[`${V}-has-feedback`]:f})}const te=(V,B)=>B||V},66104:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return rt}});var pe=w(92310),ue=w.n(pe),R=w(11592),Ne=w(26112),te=w(59301),V=w(92343),B=w(36355),f=w(84105),E=w(91857);const h=De=>{let{children:we}=De;const{getPrefixCls:He}=te.useContext(B.E_),ge=He("breadcrumb");return te.createElement("li",{className:`${ge}-separator`,"aria-hidden":"true"},we===""?we:we||"/")};h.__ANT_BREADCRUMB_SEPARATOR=!0;var z=h,S=function(De,we){var He={};for(var ge in De)Object.prototype.hasOwnProperty.call(De,ge)&&we.indexOf(ge)<0&&(He[ge]=De[ge]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,ge=Object.getOwnPropertySymbols(De);Le<ge.length;Le++)we.indexOf(ge[Le])<0&&Object.prototype.propertyIsEnumerable.call(De,ge[Le])&&(He[ge[Le]]=De[ge[Le]]);return He};function _(De,we){if(De.title===void 0||De.title===null)return null;const He=Object.keys(we).join("|");return typeof De.title=="object"?De.title:String(De.title).replace(new RegExp(`:(${He})`,"g"),(ge,Le)=>we[Le]||ge)}function N(De,we,He,ge){if(He==null)return null;const{className:Le,onClick:fe}=we,Ee=S(we,["className","onClick"]),At=Object.assign(Object.assign({},(0,Ne.Z)(Ee,{data:!0,aria:!0})),{onClick:fe});return ge!==void 0?te.createElement("a",Object.assign({},At,{className:ue()(`${De}-link`,Le),href:ge}),He):te.createElement("span",Object.assign({},At,{className:ue()(`${De}-link`,Le)}),He)}function Q(De,we){return(ge,Le,fe,Ee,At)=>{if(we)return we(ge,Le,fe,Ee);const ft=_(ge,Le);return N(De,ge,ft,At)}}var I=function(De,we){var He={};for(var ge in De)Object.prototype.hasOwnProperty.call(De,ge)&&we.indexOf(ge)<0&&(He[ge]=De[ge]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,ge=Object.getOwnPropertySymbols(De);Le<ge.length;Le++)we.indexOf(ge[Le])<0&&Object.prototype.propertyIsEnumerable.call(De,ge[Le])&&(He[ge[Le]]=De[ge[Le]]);return He};const Y=De=>{const{prefixCls:we,separator:He="/",children:ge,menu:Le,overlay:fe,dropdownProps:Ee,href:At}=De,ot=(ct=>{if(Le||fe){const It=Object.assign({},Ee);if(Le){const Tt=Le||{},{items:Ht}=Tt,pr=I(Tt,["items"]);It.menu=Object.assign(Object.assign({},pr),{items:Ht==null?void 0:Ht.map((sr,Br)=>{var{key:fr,title:k,label:nt,path:P}=sr,m=I(sr,["key","title","label","path"]);let d=nt!=null?nt:k;return P&&(d=te.createElement("a",{href:`${At}${P}`},d)),Object.assign(Object.assign({},m),{key:fr!=null?fr:Br,label:d})})})}else fe&&(It.overlay=fe);return te.createElement(E.Z,Object.assign({placement:"bottom"},It),te.createElement("span",{className:`${we}-overlay-link`},ct,te.createElement(f.Z,null)))}return ct})(ge);return ot!=null?te.createElement(te.Fragment,null,te.createElement("li",null,ot),He&&te.createElement(z,null,He)):null},K=De=>{const{prefixCls:we,children:He,href:ge}=De,Le=I(De,["prefixCls","children","href"]),{getPrefixCls:fe}=te.useContext(B.E_),Ee=fe("breadcrumb",we);return te.createElement(Y,Object.assign({},Le,{prefixCls:Ee}),N(Ee,Le,He,ge))};K.__ANT_BREADCRUMB_ITEM=!0;var ce=K,G=w(17313),J=w(83116),W=w(37613);const j=De=>{const{componentCls:we,iconCls:He}=De;return{[we]:Object.assign(Object.assign({},(0,G.Wf)(De)),{color:De.itemColor,fontSize:De.fontSize,[He]:{fontSize:De.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:De.linkColor,transition:`color ${De.motionDurationMid}`,padding:`0 ${De.paddingXXS}px`,borderRadius:De.borderRadiusSM,height:De.lineHeight*De.fontSize,display:"inline-block",marginInline:-De.marginXXS,"&:hover":{color:De.linkHoverColor,backgroundColor:De.colorBgTextHover}},(0,G.Qy)(De)),"li:last-child":{color:De.lastItemColor},[`${we}-separator`]:{marginInline:De.separatorMargin,color:De.separatorColor},[`${we}-link`]:{[`
|
|
|
> ${He} + span,
|
|
|
> ${He} + a
|
|
|
`]:{marginInlineStart:De.marginXXS}},[`${we}-overlay-link`]:{borderRadius:De.borderRadiusSM,height:De.lineHeight*De.fontSize,display:"inline-block",padding:`0 ${De.paddingXXS}px`,marginInline:-De.marginXXS,[`> ${He}`]:{marginInlineStart:De.marginXXS,fontSize:De.fontSizeIcon},"&:hover":{color:De.linkHoverColor,backgroundColor:De.colorBgTextHover,a:{color:De.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${De.componentCls}-rtl`]:{direction:"rtl"}})}};var se=(0,J.Z)("Breadcrumb",De=>{const we=(0,W.TS)(De,{});return[j(we)]},De=>({itemColor:De.colorTextDescription,lastItemColor:De.colorText,iconFontSize:De.fontSize,linkColor:De.colorTextDescription,linkHoverColor:De.colorText,separatorColor:De.colorTextDescription,separatorMargin:De.marginXS})),he=function(De,we){var He={};for(var ge in De)Object.prototype.hasOwnProperty.call(De,ge)&&we.indexOf(ge)<0&&(He[ge]=De[ge]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,ge=Object.getOwnPropertySymbols(De);Le<ge.length;Le++)we.indexOf(ge[Le])<0&&Object.prototype.propertyIsEnumerable.call(De,ge[Le])&&(He[ge[Le]]=De[ge[Le]]);return He};function Oe(De){const{breadcrumbName:we,children:He}=De,ge=he(De,["breadcrumbName","children"]),Le=Object.assign({title:we},ge);return He&&(Le.menu={items:He.map(fe=>{var{breadcrumbName:Ee}=fe,At=he(fe,["breadcrumbName"]);return Object.assign(Object.assign({},At),{title:Ee})})}),Le}function Be(De,we){return(0,te.useMemo)(()=>De||(we?we.map(Oe):null),[De,we])}var je=function(De,we){var He={};for(var ge in De)Object.prototype.hasOwnProperty.call(De,ge)&&we.indexOf(ge)<0&&(He[ge]=De[ge]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,ge=Object.getOwnPropertySymbols(De);Le<ge.length;Le++)we.indexOf(ge[Le])<0&&Object.prototype.propertyIsEnumerable.call(De,ge[Le])&&(He[ge[Le]]=De[ge[Le]]);return He};const X=(De,we)=>{if(we===void 0)return we;let He=(we||"").replace(/^\//,"");return Object.keys(De).forEach(ge=>{He=He.replace(`:${ge}`,De[ge])}),He},de=De=>{const{prefixCls:we,separator:He="/",style:ge,className:Le,rootClassName:fe,routes:Ee,items:At,children:ft,itemRender:ot,params:ct={}}=De,It=je(De,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Tt,direction:Ht,breadcrumb:pr}=te.useContext(B.E_);let sr;const Br=Tt("breadcrumb",we),[fr,k]=se(Br),nt=Be(At,Ee),P=Q(Br,ot);if(nt&&nt.length>0){const x=[],ee=At||Ee;sr=nt.map((Ce,H)=>{const{path:ne,key:Ge,type:xe,menu:be,overlay:qe,onClick:Et,className:me,separator:pt,dropdownProps:lt}=Ce,Me=X(ct,ne);Me!==void 0&&x.push(Me);const Pe=Ge!=null?Ge:H;if(xe==="separator")return te.createElement(z,{key:Pe},pt);const gt={},zt=H===nt.length-1;be?gt.menu=be:qe&&(gt.overlay=qe);let{href:Ut}=Ce;return x.length&&Me!==void 0&&(Ut=`#/${x.join("/")}`),te.createElement(Y,Object.assign({key:Pe},gt,(0,Ne.Z)(Ce,{data:!0,aria:!0}),{className:me,dropdownProps:lt,href:Ut,separator:zt?"":He,onClick:Et,prefixCls:Br}),P(Ce,ct,ee,x,Ut))})}else if(ft){const x=(0,R.Z)(ft).length;sr=(0,R.Z)(ft).map((ee,Ce)=>{if(!ee)return ee;const H=Ce===x-1;return(0,V.Tm)(ee,{separator:H?"":He,key:Ce})})}const m=ue()(Br,pr==null?void 0:pr.className,{[`${Br}-rtl`]:Ht==="rtl"},Le,fe,k),d=Object.assign(Object.assign({},pr==null?void 0:pr.style),ge);return fr(te.createElement("nav",Object.assign({className:m,style:d},It),te.createElement("ol",null,sr)))};de.Item=ce,de.Separator=z;var L=de,rt=L},24905:function(bn,Xt,w){"use strict";w.d(Xt,{default:function(){return se}});var pe=w(92310),ue=w.n(pe),R=w(5630),Ne=w(59301),te=w(36355),V=w(1684),B=w(32441),E=Ne.createContext(null),h=w(98447),z=w(14088),S=w(4572),_=function(he,Oe){var Be={};for(var je in he)Object.prototype.hasOwnProperty.call(he,je)&&Oe.indexOf(je)<0&&(Be[je]=he[je]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,je=Object.getOwnPropertySymbols(he);X<je.length;X++)Oe.indexOf(je[X])<0&&Object.prototype.propertyIsEnumerable.call(he,je[X])&&(Be[je[X]]=he[je[X]]);return Be};const N=(he,Oe)=>{var Be;const{prefixCls:je,className:X,rootClassName:de,children:L,indeterminate:rt=!1,style:De,onMouseEnter:we,onMouseLeave:He,skipGroup:ge=!1,disabled:Le}=he,fe=_(he,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ee,direction:At,checkbox:ft}=Ne.useContext(te.E_),ot=Ne.useContext(E),{isFormItemInput:ct}=Ne.useContext(B.aM),It=Ne.useContext(V.Z),Tt=(Be=(ot==null?void 0:ot.disabled)||Le)!==null&&Be!==void 0?Be:It,Ht=Ne.useRef(fe.value);Ne.useEffect(()=>{ot==null||ot.registerValue(fe.value)},[]),Ne.useEffect(()=>{if(!ge)return fe.value!==Ht.current&&(ot==null||ot.cancelValue(Ht.current),ot==null||ot.registerValue(fe.value),Ht.current=fe.value),()=>ot==null?void 0:ot.cancelValue(fe.value)},[fe.value]);const pr=Ee("checkbox",je),[sr,Br]=(0,h.ZP)(pr),fr=Object.assign({},fe);ot&&!ge&&(fr.onChange=function(){fe.onChange&&fe.onChange.apply(fe,arguments),ot.toggleOption&&ot.toggleOption({label:L,value:fe.value})},fr.name=ot.name,fr.checked=ot.value.includes(fe.value));const k=ue()(`${pr}-wrapper`,{[`${pr}-rtl`]:At==="rtl",[`${pr}-wrapper-checked`]:fr.checked,[`${pr}-wrapper-disabled`]:Tt,[`${pr}-wrapper-in-form-item`]:ct},ft==null?void 0:ft.className,X,de,Br),nt=ue()({[`${pr}-indeterminate`]:rt},S.A,Br),P=rt?"mixed":void 0;return sr(Ne.createElement(z.Z,{component:"Checkbox",disabled:Tt},Ne.createElement("label",{className:k,style:Object.assign(Object.assign({},ft==null?void 0:ft.style),De),onMouseEnter:we,onMouseLeave:He},Ne.createElement(R.Z,Object.assign({"aria-checked":P},fr,{prefixCls:pr,className:nt,disabled:Tt,ref:Oe})),L!==void 0&&Ne.createElement("span",null,L))))};var I=Ne.forwardRef(N),Y=w(95190),K=w(2738),ce=function(he,Oe){var Be={};for(var je in he)Object.prototype.hasOwnProperty.call(he,je)&&Oe.indexOf(je)<0&&(Be[je]=he[je]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,je=Object.getOwnPropertySymbols(he);X<je.length;X++)Oe.indexOf(je[X])<0&&Object.prototype.propertyIsEnumerable.call(he,je[X])&&(Be[je[X]]=he[je[X]]);return Be};const G=(he,Oe)=>{const{defaultValue:Be,children:je,options:X=[],prefixCls:de,className:L,rootClassName:rt,style:De,onChange:we}=he,He=ce(he,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ge,direction:Le}=Ne.useContext(te.E_),[fe,Ee]=Ne.useState(He.value||Be||[]),[At,ft]=Ne.useState([]);Ne.useEffect(()=>{"value"in He&&Ee(He.value||[])},[He.value]);const ot=Ne.useMemo(()=>X.map(m=>typeof m=="string"||typeof m=="number"?{label:m,value:m}:m),[X]),ct=m=>{ft(d=>d.filter(x=>x!==m))},It=m=>{ft(d=>[].concat((0,Y.Z)(d),[m]))},Tt=m=>{const d=fe.indexOf(m.value),x=(0,Y.Z)(fe);d===-1?x.push(m.value):x.splice(d,1),"value"in He||Ee(x),we==null||we(x.filter(ee=>At.includes(ee)).sort((ee,Ce)=>{const H=ot.findIndex(Ge=>Ge.value===ee),ne=ot.findIndex(Ge=>Ge.value===Ce);return H-ne}))},Ht=ge("checkbox",de),pr=`${Ht}-group`,[sr,Br]=(0,h.ZP)(Ht),fr=(0,K.Z)(He,["value","disabled"]),k=X.length?ot.map(m=>Ne.createElement(I,{prefixCls:Ht,key:m.value.toString(),disabled:"disabled"in m?m.disabled:He.disabled,value:m.value,checked:fe.includes(m.value),onChange:m.onChange,className:`${pr}-item`,style:m.style,title:m.title},m.label)):je,nt={toggleOption:Tt,value:fe,disabled:He.disabled,name:He.name,registerValue:It,cancelValue:ct},P=ue()(pr,{[`${pr}-rtl`]:Le==="rtl"},L,rt,Br);return sr(Ne.createElement("div",Object.assign({className:P,style:De},fr,{ref:Oe}),Ne.createElement(E.Provider,{value:nt},k)))},J=Ne.forwardRef(G);var W=Ne.memo(J);const j=I;j.Group=W,j.__ANT_CHECKBOX=!0;var se=j},98447:function(bn,Xt,w){"use strict";w.d(Xt,{C2:function(){return te}});var pe=w(17313),ue=w(37613),R=w(83116);const Ne=V=>{const{checkboxCls:B}=V,f=`${B}-wrapper`;return[{[`${B}-group`]:Object.assign(Object.assign({},(0,pe.Wf)(V)),{display:"inline-flex",flexWrap:"wrap",columnGap:V.marginXS,[`> ${V.antCls}-row`]:{flex:1}}),[f]:Object.assign(Object.assign({},(0,pe.Wf)(V)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${f}`]:{marginInlineStart:0},[`&${f}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[B]:Object.assign(Object.assign({},(0,pe.Wf)(V)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:V.borderRadiusSM,alignSelf:"center",[`${B}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${B}-inner`]:Object.assign({},(0,pe.oN)(V))},[`${B}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:V.checkboxSize,height:V.checkboxSize,direction:"ltr",backgroundColor:V.colorBgContainer,border:`${V.lineWidth}px ${V.lineType} ${V.colorBorder}`,borderRadius:V.borderRadiusSM,borderCollapse:"separate",transition:`all ${V.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:V.checkboxSize/14*5,height:V.checkboxSize/14*8,border:`${V.lineWidthBold}px solid ${V.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${V.motionDurationFast} ${V.motionEaseInBack}, opacity ${V.motionDurationFast}`}},"& + span":{paddingInlineStart:V.paddingXS,paddingInlineEnd:V.paddingXS}})},{[`
|
|
|
${f}:not(${f}-disabled),
|
|
|
${B}:not(${B}-disabled)
|
|
|
`]:{[`&:hover ${B}-inner`]:{borderColor:V.colorPrimary}},[`${f}:not(${f}-disabled)`]:{[`&:hover ${B}-checked:not(${B}-disabled) ${B}-inner`]:{backgroundColor:V.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${B}-checked:not(${B}-disabled):after`]:{borderColor:V.colorPrimaryHover}}},{[`${B}-checked`]:{[`${B}-inner`]:{backgroundColor:V.colorPrimary,borderColor:V.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${V.motionDurationMid} ${V.motionEaseOutBack} ${V.motionDurationFast}`}}},[`
|
|
|
${f}-checked:not(${f}-disabled),
|
|
|
${B}-checked:not(${B}-disabled)
|
|
|
`]:{[`&:hover ${B}-inner`]:{backgroundColor:V.colorPrimaryHover,borderColor:"transparent"}}},{[B]:{"&-indeterminate":{[`${B}-inner`]:{backgroundColor:V.colorBgContainer,borderColor:V.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:V.fontSizeLG/2,height:V.fontSizeLG/2,backgroundColor:V.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${f}-disabled`]:{cursor:"not-allowed"},[`${B}-disabled`]:{[`&, ${B}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${B}-inner`]:{background:V.colorBgContainerDisabled,borderColor:V.colorBorder,"&:after":{borderColor:V.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:V.colorTextDisabled},[`&${B}-indeterminate ${B}-inner::after`]:{background:V.colorTextDisabled}}}]};function te(V,B){const f=(0,ue.TS)(B,{checkboxCls:`.${V}`,checkboxSize:B.controlInteractiveSize});return[Ne(f)]}Xt.ZP=(0,R.Z)("Checkbox",(V,B)=>{let{prefixCls:f}=B;return[te(f,V)]})},93891:function(bn,Xt,w){"use strict";var pe=w(59301),ue=w(36355),R=w(64165);const Ne=te=>{const{componentName:V}=te,{getPrefixCls:B}=(0,pe.useContext)(ue.E_),f=B("empty");switch(V){case"Table":case"List":return pe.createElement(R.Z,{image:R.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return pe.createElement(R.Z,{image:R.Z.PRESENTED_IMAGE_SIMPLE,className:`${f}-small`});default:return pe.createElement(R.Z,null)}};Xt.Z=Ne},28103:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return S}});var pe=w(92310),ue=w.n(pe),R=w(59301),Ne=w(36355),te=w(17313),V=w(83116),B=w(37613);const f=_=>{const{componentCls:N,sizePaddingEdgeHorizontal:Q,colorSplit:I,lineWidth:Y,textPaddingInline:K,orientationMargin:ce,verticalMarginInline:G}=_;return{[N]:Object.assign(Object.assign({},(0,te.Wf)(_)),{borderBlockStart:`${Y}px solid ${I}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:G,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Y}px solid ${I}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${_.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${N}-with-text`]:{display:"flex",alignItems:"center",margin:`${_.dividerHorizontalWithTextGutterMargin}px 0`,color:_.colorTextHeading,fontWeight:500,fontSize:_.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${I}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Y}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${N}-with-text-left`]:{"&::before":{width:`${ce*100}%`},"&::after":{width:`${100-ce*100}%`}},[`&-horizontal${N}-with-text-right`]:{"&::before":{width:`${100-ce*100}%`},"&::after":{width:`${ce*100}%`}},[`${N}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:K},"&-dashed":{background:"none",borderColor:I,borderStyle:"dashed",borderWidth:`${Y}px 0 0`},[`&-horizontal${N}-with-text${N}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${N}-dashed`]:{borderInlineStartWidth:Y,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${N}-with-text`]:{color:_.colorText,fontWeight:"normal",fontSize:_.fontSize},[`&-horizontal${N}-with-text-left${N}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${N}-inner-text`]:{paddingInlineStart:Q}},[`&-horizontal${N}-with-text-right${N}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${N}-inner-text`]:{paddingInlineEnd:Q}}})}};var E=(0,V.Z)("Divider",_=>{const N=(0,B.TS)(_,{dividerHorizontalWithTextGutterMargin:_.margin,dividerHorizontalGutterMargin:_.marginLG,sizePaddingEdgeHorizontal:0});return[f(N)]},_=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:_.marginXS})),h=function(_,N){var Q={};for(var I in _)Object.prototype.hasOwnProperty.call(_,I)&&N.indexOf(I)<0&&(Q[I]=_[I]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,I=Object.getOwnPropertySymbols(_);Y<I.length;Y++)N.indexOf(I[Y])<0&&Object.prototype.propertyIsEnumerable.call(_,I[Y])&&(Q[I[Y]]=_[I[Y]]);return Q},S=_=>{const{getPrefixCls:N,direction:Q,divider:I}=R.useContext(Ne.E_),{prefixCls:Y,type:K="horizontal",orientation:ce="center",orientationMargin:G,className:J,rootClassName:W,children:j,dashed:se,plain:he,style:Oe}=_,Be=h(_,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),je=N("divider",Y),[X,de]=E(je),L=ce.length>0?`-${ce}`:ce,rt=!!j,De=ce==="left"&&G!=null,we=ce==="right"&&G!=null,He=ue()(je,I==null?void 0:I.className,de,`${je}-${K}`,{[`${je}-with-text`]:rt,[`${je}-with-text${L}`]:rt,[`${je}-dashed`]:!!se,[`${je}-plain`]:!!he,[`${je}-rtl`]:Q==="rtl",[`${je}-no-default-orientation-margin-left`]:De,[`${je}-no-default-orientation-margin-right`]:we},J,W),ge=R.useMemo(()=>typeof G=="number"?G:/^\d+$/.test(G)?Number(G):G,[G]),Le=Object.assign(Object.assign({},De&&{marginLeft:ge}),we&&{marginRight:ge});return X(R.createElement("div",Object.assign({className:He,style:Object.assign(Object.assign({},I==null?void 0:I.style),Oe)},Be,{role:"separator"}),j&&K!=="vertical"&&R.createElement("span",{className:`${je}-inner-text`,style:Le},j)))}},91857:function(bn,Xt,w){"use strict";var pe=w(59301),ue=w(38819),R=w(92310),Ne=w.n(R),te=w(31561),V=w(70425),B=w(18929),f=w(2738),E=w(79676),h=w(53487),z=w(92343),S=w(36355),_=w(20834),N=w(40875),Q=w(88088),I=w(47211);const Y=null,K=W=>{const{menu:j,arrow:se,prefixCls:he,children:Oe,trigger:Be,disabled:je,dropdownRender:X,getPopupContainer:de,overlayClassName:L,rootClassName:rt,open:De,onOpenChange:we,visible:He,onVisibleChange:ge,mouseEnterDelay:Le=.15,mouseLeaveDelay:fe=.1,autoAdjustOverflow:Ee=!0,placement:At="",overlay:ft,transitionName:ot}=W,{getPopupContainer:ct,getPrefixCls:It,direction:Tt}=pe.useContext(S.E_),Ht=pe.useMemo(()=>{const be=It();return ot!==void 0?ot:At.includes("top")?`${be}-slide-down`:`${be}-slide-up`},[It,At,ot]),pr=pe.useMemo(()=>At?At.includes("Center")?At.slice(0,At.indexOf("Center")):At:Tt==="rtl"?"bottomRight":"bottomLeft",[At,Tt]),sr=It("dropdown",he),[Br,fr]=(0,I.Z)(sr),[,k]=(0,Q.Z)(),nt=pe.Children.only(Oe),P=(0,z.Tm)(nt,{className:Ne()(`${sr}-trigger`,{[`${sr}-rtl`]:Tt==="rtl"},nt.props.className),disabled:je}),m=je?[]:Be;let d;m&&m.includes("contextMenu")&&(d=!0);const[x,ee]=(0,B.Z)(!1,{value:De!=null?De:He}),Ce=(0,V.useEvent)(be=>{we==null||we(be),ge==null||ge(be),ee(be)}),H=Ne()(L,rt,fr,{[`${sr}-rtl`]:Tt==="rtl"}),ne=(0,E.Z)({arrowPointAtCenter:typeof se=="object"&&se.pointAtCenter,autoAdjustOverflow:Ee,offset:k.marginXXS,arrowWidth:se?k.sizePopupArrow:0,borderRadius:k.borderRadius}),Ge=pe.useCallback(()=>{ee(!1)},[]),xe=()=>{let be;return j!=null&&j.items?be=pe.createElement(_.default,Object.assign({},j)):typeof ft=="function"?be=ft():be=ft,X&&(be=X(be)),be=pe.Children.only(typeof be=="string"?pe.createElement("span",null,be):be),pe.createElement(N.J,{prefixCls:`${sr}-menu`,expandIcon:pe.createElement("span",{className:`${sr}-menu-submenu-arrow`},pe.createElement(ue.Z,{className:`${sr}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ge,validator:qe=>{let{mode:Et}=qe}},be)};return Br(pe.createElement(te.Z,Object.assign({alignPoint:d},(0,f.Z)(W,["rootClassName"]),{mouseEnterDelay:Le,mouseLeaveDelay:fe,visible:x,builtinPlacements:ne,arrow:!!se,overlayClassName:H,prefixCls:sr,getPopupContainer:de||ct,transitionName:Ht,trigger:m,overlay:xe,placement:pr,onVisibleChange:Ce}),P))};function ce(W){return Object.assign(Object.assign({},W),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const G=(0,h.Z)(K,"dropdown",W=>W,ce),J=W=>pe.createElement(G,Object.assign({},W),pe.createElement("span",null));K._InternalPanelDoNotUseOrYouWillBeFired=J,Xt.Z=K},38854:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return Q}});var pe=w(91857),ue=w(92310),R=w.n(ue),Ne=w(59301),te=w(18785),V=w(3113),B=w(36355),f=w(81327),E=w(33234),h=w(47211),z=function(I,Y){var K={};for(var ce in I)Object.prototype.hasOwnProperty.call(I,ce)&&Y.indexOf(ce)<0&&(K[ce]=I[ce]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,ce=Object.getOwnPropertySymbols(I);G<ce.length;G++)Y.indexOf(ce[G])<0&&Object.prototype.propertyIsEnumerable.call(I,ce[G])&&(K[ce[G]]=I[ce[G]]);return K};const S=I=>{const{getPopupContainer:Y,getPrefixCls:K,direction:ce}=Ne.useContext(B.E_),{prefixCls:G,type:J="default",danger:W,disabled:j,loading:se,onClick:he,htmlType:Oe,children:Be,className:je,menu:X,arrow:de,autoFocus:L,overlay:rt,trigger:De,align:we,open:He,onOpenChange:ge,placement:Le,getPopupContainer:fe,href:Ee,icon:At=Ne.createElement(te.Z,null),title:ft,buttonsRender:ot=xe=>xe,mouseEnterDelay:ct,mouseLeaveDelay:It,overlayClassName:Tt,overlayStyle:Ht,destroyPopupOnHide:pr,dropdownRender:sr}=I,Br=z(I,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),fr=K("dropdown",G),k=`${fr}-button`,[nt,P]=(0,h.Z)(fr),m={menu:X,arrow:de,autoFocus:L,align:we,disabled:j,trigger:j?[]:De,onOpenChange:ge,getPopupContainer:fe||Y,mouseEnterDelay:ct,mouseLeaveDelay:It,overlayClassName:Tt,overlayStyle:Ht,destroyPopupOnHide:pr,dropdownRender:sr},{compactSize:d,compactItemClassnames:x}=(0,E.ri)(fr,ce),ee=R()(k,x,je,P);"overlay"in I&&(m.overlay=rt),"open"in I&&(m.open=He),"placement"in I?m.placement=Le:m.placement=ce==="rtl"?"bottomLeft":"bottomRight";const Ce=Ne.createElement(V.ZP,{type:J,danger:W,disabled:j,loading:se,onClick:he,htmlType:Oe,href:Ee,title:ft},Be),H=Ne.createElement(V.ZP,{type:J,danger:W,icon:At}),[ne,Ge]=ot([Ce,H]);return nt(Ne.createElement(f.Z.Compact,Object.assign({className:ee,size:d,block:!0},Br),ne,Ne.createElement(pe.Z,Object.assign({},m),Ge)))};S.__ANT_BUTTON=!0;var _=S;const N=pe.Z;N.Button=_;var Q=N},47211:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return z}});var pe=w(17313),ue=w(13826),R=w(92899),Ne=w(29878),te=w(19447),V=w(83116),B=w(37613),E=S=>{const{componentCls:_,menuCls:N,colorError:Q,colorTextLightSolid:I}=S,Y=`${N}-item`;return{[`${_}, ${_}-menu-submenu`]:{[`${N} ${Y}`]:{[`&${Y}-danger:not(${Y}-disabled)`]:{color:Q,"&:hover":{color:I,backgroundColor:Q}}}}}};const h=S=>{const{componentCls:_,menuCls:N,zIndexPopup:Q,dropdownArrowDistance:I,sizePopupArrow:Y,antCls:K,iconCls:ce,motionDurationMid:G,dropdownPaddingVertical:J,fontSize:W,dropdownEdgeChildPadding:j,colorTextDisabled:se,fontSizeIcon:he,controlPaddingHorizontal:Oe,colorBgElevated:Be}=S;return[{[_]:Object.assign(Object.assign({},(0,pe.Wf)(S)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Q,display:"block","&::before":{position:"absolute",insetBlock:-I+Y/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${K}-btn`]:{[`& > ${ce}-down, & > ${K}-btn-icon > ${ce}-down`]:{fontSize:he}},[`${_}-wrap`]:{position:"relative",[`${K}-btn > ${ce}-down`]:{fontSize:he},[`${ce}-down::before`]:{transition:`transform ${G}`}},[`${_}-wrap-open`]:{[`${ce}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${K}-slide-down-enter${K}-slide-down-enter-active${_}-placement-bottomLeft,
|
|
|
&${K}-slide-down-appear${K}-slide-down-appear-active${_}-placement-bottomLeft,
|
|
|
&${K}-slide-down-enter${K}-slide-down-enter-active${_}-placement-bottom,
|
|
|
&${K}-slide-down-appear${K}-slide-down-appear-active${_}-placement-bottom,
|
|
|
&${K}-slide-down-enter${K}-slide-down-enter-active${_}-placement-bottomRight,
|
|
|
&${K}-slide-down-appear${K}-slide-down-appear-active${_}-placement-bottomRight`]:{animationName:ue.fJ},[`&${K}-slide-up-enter${K}-slide-up-enter-active${_}-placement-topLeft,
|
|
|
&${K}-slide-up-appear${K}-slide-up-appear-active${_}-placement-topLeft,
|
|
|
&${K}-slide-up-enter${K}-slide-up-enter-active${_}-placement-top,
|
|
|
&${K}-slide-up-appear${K}-slide-up-appear-active${_}-placement-top,
|
|
|
&${K}-slide-up-enter${K}-slide-up-enter-active${_}-placement-topRight,
|
|
|
&${K}-slide-up-appear${K}-slide-up-appear-active${_}-placement-topRight`]:{animationName:ue.Qt},[`&${K}-slide-down-leave${K}-slide-down-leave-active${_}-placement-bottomLeft,
|
|
|
&${K}-slide-down-leave${K}-slide-down-leave-active${_}-placement-bottom,
|
|
|
&${K}-slide-down-leave${K}-slide-down-leave-active${_}-placement-bottomRight`]:{animationName:ue.Uw},[`&${K}-slide-up-leave${K}-slide-up-leave-active${_}-placement-topLeft,
|
|
|
&${K}-slide-up-leave${K}-slide-up-leave-active${_}-placement-top,
|
|
|
&${K}-slide-up-leave${K}-slide-up-leave-active${_}-placement-topRight`]:{animationName:ue.ly}})},(0,te.ZP)(S,{colorBg:Be,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${_} ${N}`]:{position:"relative",margin:0},[`${N}-submenu-popup`]:{position:"absolute",zIndex:Q,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${_}, ${_}-menu-submenu`]:{[N]:Object.assign(Object.assign({padding:j,listStyleType:"none",backgroundColor:Be,backgroundClip:"padding-box",borderRadius:S.borderRadiusLG,outline:"none",boxShadow:S.boxShadowSecondary},(0,pe.Qy)(S)),{[`${N}-item-group-title`]:{padding:`${J}px ${Oe}px`,color:S.colorTextDescription,transition:`all ${G}`},[`${N}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${N}-item-icon`]:{minWidth:W,marginInlineEnd:S.marginXS,fontSize:S.fontSizeSM},[`${N}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${G}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${N}-item, ${N}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${J}px ${Oe}px`,color:S.colorText,fontWeight:"normal",fontSize:W,lineHeight:S.lineHeight,cursor:"pointer",transition:`all ${G}`,borderRadius:S.borderRadiusSM,"&:hover, &-active":{backgroundColor:S.controlItemBgHover}},(0,pe.Qy)(S)),{"&-selected":{color:S.colorPrimary,backgroundColor:S.controlItemBgActive,"&:hover, &-active":{backgroundColor:S.controlItemBgActiveHover}},"&-disabled":{color:se,cursor:"not-allowed","&:hover":{color:se,backgroundColor:Be,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${S.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:S.colorSplit},[`${_}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:S.paddingXS,[`${_}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:S.colorTextDescription,fontSize:he,fontStyle:"normal"}}}),[`${N}-item-group-list`]:{margin:`0 ${S.marginXS}px`,padding:0,listStyle:"none"},[`${N}-submenu-title`]:{paddingInlineEnd:Oe+S.fontSizeSM},[`${N}-submenu-vertical`]:{position:"relative"},[`${N}-submenu${N}-submenu-disabled ${_}-menu-submenu-title`]:{[`&, ${_}-menu-submenu-arrow-icon`]:{color:se,backgroundColor:Be,cursor:"not-allowed"}},[`${N}-submenu-selected ${_}-menu-submenu-title`]:{color:S.colorPrimary}})}},[(0,ue.oN)(S,"slide-up"),(0,ue.oN)(S,"slide-down"),(0,R.Fm)(S,"move-up"),(0,R.Fm)(S,"move-down"),(0,Ne._y)(S,"zoom-big")]]};var z=(0,V.Z)("Dropdown",(S,_)=>{let{rootPrefixCls:N}=_;const{marginXXS:Q,sizePopupArrow:I,controlHeight:Y,fontSize:K,lineHeight:ce,paddingXXS:G,componentCls:J,borderRadiusLG:W}=S,j=(Y-K*ce)/2,{dropdownArrowOffset:se}=(0,te.fS)({contentRadius:W}),he=(0,B.TS)(S,{menuCls:`${J}-menu`,rootPrefixCls:N,dropdownArrowDistance:I/2+Q,dropdownArrowOffset:se,dropdownPaddingVertical:j,dropdownEdgeChildPadding:G});return[h(he),E(he)]},S=>({zIndexPopup:S.zIndexPopupBase+50}))},64165:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return G}});var pe=w(92310),ue=w.n(pe),R=w(59301),Ne=w(36355),te=w(9763),V=w(64993),B=w(88088),E=()=>{const[,J]=(0,B.Z)(),j=new V.C(J.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return R.createElement("svg",{style:j,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},R.createElement("g",{fill:"none",fillRule:"evenodd"},R.createElement("g",{transform:"translate(24 31.67)"},R.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),R.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"}),R.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)"}),R.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"}),R.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"})),R.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"}),R.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},R.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),R.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},z=()=>{const[,J]=(0,B.Z)(),{colorFill:W,colorFillTertiary:j,colorFillQuaternary:se,colorBgContainer:he}=J,{borderColor:Oe,shadowColor:Be,contentColor:je}=(0,R.useMemo)(()=>({borderColor:new V.C(W).onBackground(he).toHexShortString(),shadowColor:new V.C(j).onBackground(he).toHexShortString(),contentColor:new V.C(se).onBackground(he).toHexShortString()}),[W,j,se,he]);return R.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},R.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},R.createElement("ellipse",{fill:Be,cx:"32",cy:"33",rx:"32",ry:"7"}),R.createElement("g",{fillRule:"nonzero",stroke:Oe},R.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"}),R.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:je}))))},S=w(83116),_=w(37613);const N=J=>{const{componentCls:W,margin:j,marginXS:se,marginXL:he,fontSize:Oe,lineHeight:Be}=J;return{[W]:{marginInline:se,fontSize:Oe,lineHeight:Be,textAlign:"center",[`${W}-image`]:{height:J.emptyImgHeight,marginBottom:se,opacity:J.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${W}-description`]:{color:J.colorText},[`${W}-footer`]:{marginTop:j},"&-normal":{marginBlock:he,color:J.colorTextDisabled,[`${W}-description`]:{color:J.colorTextDisabled},[`${W}-image`]:{height:J.emptyImgHeightMD}},"&-small":{marginBlock:se,color:J.colorTextDisabled,[`${W}-image`]:{height:J.emptyImgHeightSM}}}}};var Q=(0,S.Z)("Empty",J=>{const{componentCls:W,controlHeightLG:j}=J,se=(0,_.TS)(J,{emptyImgCls:`${W}-img`,emptyImgHeight:j*2.5,emptyImgHeightMD:j,emptyImgHeightSM:j*.875});return[N(se)]}),I=function(J,W){var j={};for(var se in J)Object.prototype.hasOwnProperty.call(J,se)&&W.indexOf(se)<0&&(j[se]=J[se]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,se=Object.getOwnPropertySymbols(J);he<se.length;he++)W.indexOf(se[he])<0&&Object.prototype.propertyIsEnumerable.call(J,se[he])&&(j[se[he]]=J[se[he]]);return j};const Y=R.createElement(E,null),K=R.createElement(z,null),ce=J=>{var{className:W,rootClassName:j,prefixCls:se,image:he=Y,description:Oe,children:Be,imageStyle:je,style:X}=J,de=I(J,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:L,direction:rt,empty:De}=R.useContext(Ne.E_),we=L("empty",se),[He,ge]=Q(we),[Le]=(0,te.Z)("Empty"),fe=typeof Oe!="undefined"?Oe:Le==null?void 0:Le.description,Ee=typeof fe=="string"?fe:"empty";let At=null;return typeof he=="string"?At=R.createElement("img",{alt:Ee,src:he}):At=he,He(R.createElement("div",Object.assign({className:ue()(ge,we,De==null?void 0:De.className,{[`${we}-normal`]:he===K,[`${we}-rtl`]:rt==="rtl"},W,j),style:Object.assign(Object.assign({},De==null?void 0:De.style),X)},de),R.createElement("div",{className:`${we}-image`,style:je},At),fe&&R.createElement("div",{className:`${we}-description`},fe),Be&&R.createElement("div",{className:`${we}-footer`},Be)))};ce.PRESENTED_IMAGE_DEFAULT=Y,ce.PRESENTED_IMAGE_SIMPLE=K;var G=ce},8628:function(bn,Xt,w){"use strict";var pe=w(59301),ue=w(34280),R=w(56762),Ne=w(69507);function te(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const B=(0,pe.useRef)({}),f=(0,R.Z)(),E=(0,Ne.ZP)();return(0,ue.Z)(()=>{const h=E.subscribe(z=>{B.current=z,V&&f()});return()=>E.unsubscribe(h)},[]),B.current}Xt.Z=te},5871:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return lt}});var pe=w(84105),ue=w(87395),R=w(92310),Ne=w.n(R),te=w(14809),V=w(4635),B=w(93664),f=w(50298),E=w(62646),h=w(99153),z=w(84851);function S(){return typeof BigInt=="function"}function _(Me){return!Me&&Me!==0&&!Number.isNaN(Me)||!String(Me).trim()}function N(Me){var Pe=Me.trim(),gt=Pe.startsWith("-");gt&&(Pe=Pe.slice(1)),Pe=Pe.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Pe.startsWith(".")&&(Pe="0".concat(Pe));var zt=Pe||"0",Ut=zt.split("."),ir=Ut[0]||"0",Dr=Ut[1]||"0";ir==="0"&&Dr==="0"&&(gt=!1);var mr=gt?"-":"";return{negative:gt,negativeStr:mr,trimStr:zt,integerStr:ir,decimalStr:Dr,fullStr:"".concat(mr).concat(zt)}}function Q(Me){var Pe=String(Me);return!Number.isNaN(Number(Pe))&&Pe.includes("e")}function I(Me){var Pe=String(Me);if(Q(Me)){var gt=Number(Pe.slice(Pe.indexOf("e-")+2)),zt=Pe.match(/\.(\d+)/);return zt!=null&&zt[1]&&(gt+=zt[1].length),gt}return Pe.includes(".")&&K(Pe)?Pe.length-Pe.indexOf(".")-1:0}function Y(Me){var Pe=String(Me);if(Q(Me)){if(Me>Number.MAX_SAFE_INTEGER)return String(S()?BigInt(Me).toString():Number.MAX_SAFE_INTEGER);if(Me<Number.MIN_SAFE_INTEGER)return String(S()?BigInt(Me).toString():Number.MIN_SAFE_INTEGER);Pe=Me.toFixed(I(Pe))}return N(Pe).fullStr}function K(Me){return typeof Me=="number"?!Number.isNaN(Me):Me?/^\s*-?\d+(\.\d+)?\s*$/.test(Me)||/^\s*-?\d+\.\s*$/.test(Me)||/^\s*-?\.\d+\s*$/.test(Me):!1}var ce=function(){function Me(Pe){if((0,h.Z)(this,Me),(0,V.Z)(this,"origin",""),(0,V.Z)(this,"negative",void 0),(0,V.Z)(this,"integer",void 0),(0,V.Z)(this,"decimal",void 0),(0,V.Z)(this,"decimalLen",void 0),(0,V.Z)(this,"empty",void 0),(0,V.Z)(this,"nan",void 0),_(Pe)){this.empty=!0;return}if(this.origin=String(Pe),Pe==="-"||Number.isNaN(Pe)){this.nan=!0;return}var gt=Pe;if(Q(gt)&&(gt=Number(gt)),gt=typeof gt=="string"?gt:Y(gt),K(gt)){var zt=N(gt);this.negative=zt.negative;var Ut=zt.trimStr.split(".");this.integer=BigInt(Ut[0]);var ir=Ut[1]||"0";this.decimal=BigInt(ir),this.decimalLen=ir.length}else this.nan=!0}return(0,z.Z)(Me,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(gt){var zt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(gt,"0"));return BigInt(zt)}},{key:"negate",value:function(){var gt=new Me(this.toString());return gt.negative=!gt.negative,gt}},{key:"cal",value:function(gt,zt,Ut){var ir=Math.max(this.getDecimalStr().length,gt.getDecimalStr().length),Dr=this.alignDecimal(ir),mr=gt.alignDecimal(ir),Mr=zt(Dr,mr).toString(),Lr=Ut(ir),vr=N(Mr),ur=vr.negativeStr,$r=vr.trimStr,cn="".concat(ur).concat($r.padStart(Lr+1,"0"));return new Me("".concat(cn.slice(0,-Lr),".").concat(cn.slice(-Lr)))}},{key:"add",value:function(gt){if(this.isInvalidate())return new Me(gt);var zt=new Me(gt);return zt.isInvalidate()?this:this.cal(zt,function(Ut,ir){return Ut+ir},function(Ut){return Ut})}},{key:"multi",value:function(gt){var zt=new Me(gt);return this.isInvalidate()||zt.isInvalidate()?new Me(NaN):this.cal(zt,function(Ut,ir){return Ut*ir},function(Ut){return Ut*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(gt){return this.toString()===(gt==null?void 0:gt.toString())}},{key:"lessEquals",value:function(gt){return this.add(gt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return gt?this.isInvalidate()?"":N("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Me}(),G=function(){function Me(Pe){if((0,h.Z)(this,Me),(0,V.Z)(this,"origin",""),(0,V.Z)(this,"number",void 0),(0,V.Z)(this,"empty",void 0),_(Pe)){this.empty=!0;return}this.origin=String(Pe),this.number=Number(Pe)}return(0,z.Z)(Me,[{key:"negate",value:function(){return new Me(-this.toNumber())}},{key:"add",value:function(gt){if(this.isInvalidate())return new Me(gt);var zt=Number(gt);if(Number.isNaN(zt))return this;var Ut=this.number+zt;if(Ut>Number.MAX_SAFE_INTEGER)return new Me(Number.MAX_SAFE_INTEGER);if(Ut<Number.MIN_SAFE_INTEGER)return new Me(Number.MIN_SAFE_INTEGER);var ir=Math.max(I(this.number),I(zt));return new Me(Ut.toFixed(ir))}},{key:"multi",value:function(gt){var zt=Number(gt);if(this.isInvalidate()||Number.isNaN(zt))return new Me(NaN);var Ut=this.number*zt;if(Ut>Number.MAX_SAFE_INTEGER)return new Me(Number.MAX_SAFE_INTEGER);if(Ut<Number.MIN_SAFE_INTEGER)return new Me(Number.MIN_SAFE_INTEGER);var ir=Math.max(I(this.number),I(zt));return new Me(Ut.toFixed(ir))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(gt){return this.toNumber()===(gt==null?void 0:gt.toNumber())}},{key:"lessEquals",value:function(gt){return this.add(gt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return gt?this.isInvalidate()?"":Y(this.number):this.origin}}]),Me}();function J(Me){return S()?new ce(Me):new G(Me)}function W(Me,Pe,gt){var zt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Me==="")return"";var Ut=N(Me),ir=Ut.negativeStr,Dr=Ut.integerStr,mr=Ut.decimalStr,Mr="".concat(Pe).concat(mr),Lr="".concat(ir).concat(Dr);if(gt>=0){var vr=Number(mr[gt]);if(vr>=5&&!zt){var ur=J(Me).add("".concat(ir,"0.").concat("0".repeat(gt)).concat(10-vr));return W(ur.toString(),Pe,gt,zt)}return gt===0?Lr:"".concat(Lr).concat(Pe).concat(mr.padEnd(gt,"0").slice(0,gt))}return Mr===".0"?Lr:"".concat(Lr).concat(Mr)}var j=J,se=w(93681),he=w(34280),Oe=w(8654),Be=w(59301),je=w(48736);function X(Me,Pe){var gt=(0,Be.useRef)(null);function zt(){try{var ir=Me.selectionStart,Dr=Me.selectionEnd,mr=Me.value,Mr=mr.substring(0,ir),Lr=mr.substring(Dr);gt.current={start:ir,end:Dr,value:mr,beforeTxt:Mr,afterTxt:Lr}}catch(vr){}}function Ut(){if(Me&>.current&&Pe)try{var ir=Me.value,Dr=gt.current,mr=Dr.beforeTxt,Mr=Dr.afterTxt,Lr=Dr.start,vr=ir.length;if(ir.endsWith(Mr))vr=ir.length-gt.current.afterTxt.length;else if(ir.startsWith(mr))vr=mr.length;else{var ur=mr[Lr-1],$r=ir.indexOf(ur,Lr-1);$r!==-1&&(vr=$r+1)}Me.setSelectionRange(vr,vr)}catch(cn){(0,je.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(cn.message))}}return[zt,Ut]}var de=w(49658),L=function(){var Pe=(0,Be.useState)(!1),gt=(0,f.Z)(Pe,2),zt=gt[0],Ut=gt[1];return(0,he.Z)(function(){Ut((0,de.Z)())},[]),zt},rt=L,De=w(16089),we=200,He=600;function ge(Me){var Pe=Me.prefixCls,gt=Me.upNode,zt=Me.downNode,Ut=Me.upDisabled,ir=Me.downDisabled,Dr=Me.onStep,mr=Be.useRef(),Mr=Be.useRef([]),Lr=Be.useRef();Lr.current=Dr;var vr=function(){clearTimeout(mr.current)},ur=function(ni,Li){ni.preventDefault(),vr(),Lr.current(Li);function oi(){Lr.current(Li),mr.current=setTimeout(oi,we)}mr.current=setTimeout(oi,He)};Be.useEffect(function(){return function(){vr(),Mr.current.forEach(function(Er){return De.Z.cancel(Er)})}},[]);var $r=rt();if($r)return null;var cn="".concat(Pe,"-handler"),Sn=Ne()(cn,"".concat(cn,"-up"),(0,V.Z)({},"".concat(cn,"-up-disabled"),Ut)),nn=Ne()(cn,"".concat(cn,"-down"),(0,V.Z)({},"".concat(cn,"-down-disabled"),ir)),Bn=function(){return Mr.current.push((0,De.Z)(vr))},ri={unselectable:"on",role:"button",onMouseUp:Bn,onMouseLeave:Bn};return Be.createElement("div",{className:"".concat(cn,"-wrap")},Be.createElement("span",(0,te.Z)({},ri,{onMouseDown:function(ni){ur(ni,!0)},"aria-label":"Increase Value","aria-disabled":Ut,className:Sn}),gt||Be.createElement("span",{unselectable:"on",className:"".concat(Pe,"-handler-up-inner")})),Be.createElement("span",(0,te.Z)({},ri,{onMouseDown:function(ni){ur(ni,!1)},"aria-label":"Decrease Value","aria-disabled":ir,className:nn}),zt||Be.createElement("span",{unselectable:"on",className:"".concat(Pe,"-handler-down-inner")})))}function Le(Me){var Pe=typeof Me=="number"?Y(Me):N(Me).fullStr,gt=Pe.includes(".");return gt?N(Pe.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Me+"0"}var fe=w(5643),Ee=function(){var Me=(0,Be.useRef)(0),Pe=function(){De.Z.cancel(Me.current)};return(0,Be.useEffect)(function(){return Pe},[]),function(gt){Pe(),Me.current=(0,De.Z)(function(){gt()})}},At=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],ft=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],ot=function(Pe,gt){return Pe||gt.isEmpty()?gt.toString():gt.toNumber()},ct=function(Pe){var gt=j(Pe);return gt.isInvalidate()?null:gt},It=Be.forwardRef(function(Me,Pe){var gt,zt=Me.prefixCls,Ut=zt===void 0?"rc-input-number":zt,ir=Me.className,Dr=Me.style,mr=Me.min,Mr=Me.max,Lr=Me.step,vr=Lr===void 0?1:Lr,ur=Me.defaultValue,$r=Me.value,cn=Me.disabled,Sn=Me.readOnly,nn=Me.upHandler,Bn=Me.downHandler,ri=Me.keyboard,Er=Me.controls,ni=Er===void 0?!0:Er,Li=Me.classNames,oi=Me.stringMode,Ti=Me.parser,Ui=Me.formatter,Xi=Me.precision,Ha=Me.decimalSeparator,Ji=Me.onChange,pi=Me.onInput,ki=Me.onPressEnter,Ni=Me.onStep,ve=(0,E.Z)(Me,At),Te="".concat(Ut,"-input"),ke=Be.useRef(null),it=Be.useState(!1),$t=(0,f.Z)(it,2),Qt=$t[0],Sr=$t[1],dr=Be.useRef(!1),Hr=Be.useRef(!1),Wr=Be.useRef(!1),en=Be.useState(function(){return j($r!=null?$r:ur)}),Vr=(0,f.Z)(en,2),jr=Vr[0],Yr=Vr[1];function mn(An){$r===void 0&&Yr(An)}var tn=Be.useCallback(function(An,rn){if(!rn)return Xi>=0?Xi:Math.max(I(An),I(vr))},[Xi,vr]),Dn=Be.useCallback(function(An){var rn=String(An);if(Ti)return Ti(rn);var Un=rn;return Ha&&(Un=Un.replace(Ha,".")),Un.replace(/[^\w.-]+/g,"")},[Ti,Ha]),Qn=Be.useRef(""),ui=Be.useCallback(function(An,rn){if(Ui)return Ui(An,{userTyping:rn,input:String(Qn.current)});var Un=typeof An=="number"?Y(An):An;if(!rn){var xn=tn(Un,rn);if(K(Un)&&(Ha||xn>=0)){var jn=Ha||".";Un=W(Un,jn,xn)}}return Un},[Ui,tn,Ha]),Tn=Be.useState(function(){var An=ur!=null?ur:$r;return jr.isInvalidate()&&["string","number"].includes((0,B.Z)(An))?Number.isNaN(An)?"":An:ui(jr.toString(),!1)}),sn=(0,f.Z)(Tn,2),Kt=sn[0],Zt=sn[1];Qn.current=Kt;function qt(An,rn){Zt(ui(An.isInvalidate()?An.toString(!1):An.toString(!rn),rn))}var er=Be.useMemo(function(){return ct(Mr)},[Mr,Xi]),Jt=Be.useMemo(function(){return ct(mr)},[mr,Xi]),Qr=Be.useMemo(function(){return!er||!jr||jr.isInvalidate()?!1:er.lessEquals(jr)},[er,jr]),kr=Be.useMemo(function(){return!Jt||!jr||jr.isInvalidate()?!1:jr.lessEquals(Jt)},[Jt,jr]),Gr=X(ke.current,Qt),Mn=(0,f.Z)(Gr,2),Pn=Mn[0],si=Mn[1],qn=function(rn){return er&&!rn.lessEquals(er)?er:Jt&&!Jt.lessEquals(rn)?Jt:null},bi=function(rn){return!qn(rn)},Jn=function(rn,Un){var xn=rn,jn=bi(xn)||xn.isEmpty();if(!xn.isEmpty()&&!Un&&(xn=qn(xn)||xn,jn=!0),!Sn&&!cn&&jn){var ci=xn.toString(),wi=tn(ci,Un);return wi>=0&&(xn=j(W(ci,".",wi)),bi(xn)||(xn=j(W(ci,".",wi,!0)))),xn.equals(jr)||(mn(xn),Ji==null||Ji(xn.isEmpty()?null:ot(oi,xn)),$r===void 0&&qt(xn,Un)),xn}return jr},Hn=Ee(),on=function An(rn){if(Pn(),Qn.current=rn,Zt(rn),!Hr.current){var Un=Dn(rn),xn=j(Un);xn.isNaN()||Jn(xn,!0)}pi==null||pi(rn),Hn(function(){var jn=rn;Ti||(jn=rn.replace(/。/g,".")),jn!==rn&&An(jn)})},mi=function(){Hr.current=!0},Ln=function(){Hr.current=!1,on(ke.current.value)},ei=function(rn){on(rn.target.value)},vi=function(rn){var Un;if(!(rn&&Qr||!rn&&kr)){dr.current=!1;var xn=j(Wr.current?Le(vr):vr);rn||(xn=xn.negate());var jn=(jr||j(0)).add(xn.toString()),ci=Jn(jn,!1);Ni==null||Ni(ot(oi,ci),{offset:Wr.current?Le(vr):vr,type:rn?"up":"down"}),(Un=ke.current)===null||Un===void 0||Un.focus()}},Ei=function(rn){var Un=j(Dn(Kt)),xn=Un;Un.isNaN()?xn=Jn(jr,rn):xn=Jn(Un,rn),$r!==void 0?qt(jr,!1):xn.isNaN()||qt(xn,!1)},Xn=function(){dr.current=!0},Bi=function(rn){var Un=rn.key,xn=rn.shiftKey;dr.current=!0,Wr.current=xn,Un==="Enter"&&(Hr.current||(dr.current=!1),Ei(!1),ki==null||ki(rn)),ri!==!1&&!Hr.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Un)&&(vi(Un==="Up"||Un==="ArrowUp"),rn.preventDefault())},ra=function(){dr.current=!1,Wr.current=!1},ii=function(){Ei(!1),Sr(!1),dr.current=!1};return(0,he.o)(function(){jr.isInvalidate()||qt(jr,!1)},[Xi]),(0,he.o)(function(){var An=j($r);Yr(An);var rn=j(Dn(Kt));(!An.equals(rn)||!dr.current||Ui)&&qt(An,dr.current)},[$r]),(0,he.o)(function(){Ui&&si()},[Kt]),Be.createElement("div",{className:Ne()(Ut,Li==null?void 0:Li.input,ir,(gt={},(0,V.Z)(gt,"".concat(Ut,"-focused"),Qt),(0,V.Z)(gt,"".concat(Ut,"-disabled"),cn),(0,V.Z)(gt,"".concat(Ut,"-readonly"),Sn),(0,V.Z)(gt,"".concat(Ut,"-not-a-number"),jr.isNaN()),(0,V.Z)(gt,"".concat(Ut,"-out-of-range"),!jr.isInvalidate()&&!bi(jr)),gt)),style:Dr,onFocus:function(){Sr(!0)},onBlur:ii,onKeyDown:Bi,onKeyUp:ra,onCompositionStart:mi,onCompositionEnd:Ln,onBeforeInput:Xn},ni&&Be.createElement(ge,{prefixCls:Ut,upNode:nn,downNode:Bn,upDisabled:Qr,downDisabled:kr,onStep:vi}),Be.createElement("div",{className:"".concat(Te,"-wrap")},Be.createElement("input",(0,te.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":mr,"aria-valuemax":Mr,"aria-valuenow":jr.isInvalidate()?null:jr.toString(),step:vr},ve,{ref:(0,Oe.sQ)(ke,Pe),className:Te,value:Kt,onChange:ei,disabled:cn,readOnly:Sn}))))}),Tt=Be.forwardRef(function(Me,Pe){var gt=Me.disabled,zt=Me.style,Ut=Me.prefixCls,ir=Me.value,Dr=Me.prefix,mr=Me.suffix,Mr=Me.addonBefore,Lr=Me.addonAfter,vr=Me.classes,ur=Me.className,$r=Me.classNames,cn=(0,E.Z)(Me,ft),Sn=Be.useRef(null),nn=function(ri){Sn.current&&(0,fe.nH)(Sn.current,ri)};return Be.createElement(se.BaseInput,{inputElement:Be.createElement(It,(0,te.Z)({prefixCls:Ut,disabled:gt,classNames:$r,ref:(0,Oe.sQ)(Sn,Pe)},cn)),className:ur,triggerFocus:nn,prefixCls:Ut,value:ir,disabled:gt,style:zt,prefix:Dr,suffix:mr,addonAfter:Lr,addonBefore:Mr,classes:vr,classNames:$r,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});Tt.displayName="InputNumber";var Ht=Tt,pr=Ht,sr=w(19080),Br=w(36355),fr=w(92736),k=w(1684),nt=w(19716),P=w(32441),m=w(33234),d=w(9937),x=w(17313),ee=w(74207),Ce=w(83116),H=w(37613);const ne=(Me,Pe)=>{let{componentCls:gt,borderRadiusSM:zt,borderRadiusLG:Ut}=Me;const ir=Pe==="lg"?Ut:zt;return{[`&-${Pe}`]:{[`${gt}-handler-wrap`]:{borderStartEndRadius:ir,borderEndEndRadius:ir},[`${gt}-handler-up`]:{borderStartEndRadius:ir},[`${gt}-handler-down`]:{borderEndEndRadius:ir}}}},Ge=Me=>{const{componentCls:Pe,lineWidth:gt,lineType:zt,colorBorder:Ut,borderRadius:ir,fontSizeLG:Dr,controlHeightLG:mr,controlHeightSM:Mr,colorError:Lr,paddingInlineSM:vr,colorTextDescription:ur,motionDurationMid:$r,handleHoverColor:cn,paddingInline:Sn,paddingBlock:nn,handleBg:Bn,handleActiveBg:ri,colorTextDisabled:Er,borderRadiusSM:ni,borderRadiusLG:Li,controlWidth:oi,handleVisible:Ti,handleBorderColor:Ui}=Me;return[{[Pe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,x.Wf)(Me)),(0,d.ik)(Me)),(0,d.bi)(Me,Pe)),{display:"inline-block",width:oi,margin:0,padding:0,border:`${gt}px ${zt} ${Ut}`,borderRadius:ir,"&-rtl":{direction:"rtl",[`${Pe}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Dr,borderRadius:Li,[`input${Pe}-input`]:{height:mr-2*gt}},"&-sm":{padding:0,borderRadius:ni,[`input${Pe}-input`]:{height:Mr-2*gt,padding:`0 ${vr}px`}},"&:hover":Object.assign({},(0,d.pU)(Me)),"&-focused":Object.assign({},(0,d.M1)(Me)),"&-out-of-range":{[`${Pe}-input-wrap`]:{input:{color:Lr}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,x.Wf)(Me)),(0,d.s7)(Me)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Pe}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Pe}-group-addon`]:{borderRadius:Li,fontSize:Me.fontSizeLG}},"&-sm":{[`${Pe}-group-addon`]:{borderRadius:ni}},[`${Pe}-wrapper-disabled > ${Pe}-group-addon`]:Object.assign({},(0,d.Xy)(Me))}}),[`&-disabled ${Pe}-input`]:{cursor:"not-allowed"},[Pe]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,x.Wf)(Me)),{width:"100%",padding:`${nn}px ${Sn}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:ir,outline:0,transition:`all ${$r} linear`,appearance:"textfield",fontSize:"inherit"}),(0,d.nz)(Me.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[Pe]:Object.assign(Object.assign(Object.assign({[`&:hover ${Pe}-handler-wrap, &-focused ${Pe}-handler-wrap`]:{opacity:1},[`${Pe}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Me.handleWidth,height:"100%",background:Bn,borderStartStartRadius:0,borderStartEndRadius:ir,borderEndEndRadius:ir,borderEndStartRadius:0,opacity:Ti===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${$r} linear ${$r}`,[`${Pe}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${Pe}-handler-up-inner,
|
|
|
${Pe}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:Me.handleFontSize}}},[`${Pe}-handler`]:{height:"50%",overflow:"hidden",color:ur,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${gt}px ${zt} ${Ui}`,transition:`all ${$r} linear`,"&:active":{background:ri},"&:hover":{height:"60%",[`
|
|
|
${Pe}-handler-up-inner,
|
|
|
${Pe}-handler-down-inner
|
|
|
`]:{color:cn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,x.Ro)()),{color:ur,transition:`all ${$r} linear`,userSelect:"none"})},[`${Pe}-handler-up`]:{borderStartEndRadius:ir},[`${Pe}-handler-down`]:{borderBlockStart:`${gt}px ${zt} ${Ui}`,borderEndEndRadius:ir}},ne(Me,"lg")),ne(Me,"sm")),{"&-disabled, &-readonly":{[`${Pe}-handler-wrap`]:{display:"none"},[`${Pe}-input`]:{color:"inherit"}},[`
|
|
|
${Pe}-handler-up-disabled,
|
|
|
${Pe}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${Pe}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${Pe}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:Er}})},{[`${Pe}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${Pe}-handler-down`]:{borderBlockStartWidth:0}}}]},xe=Me=>{const{componentCls:Pe,paddingBlock:gt,paddingInline:zt,inputAffixPadding:Ut,controlWidth:ir,borderRadiusLG:Dr,borderRadiusSM:mr}=Me;return{[`${Pe}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,d.ik)(Me)),(0,d.bi)(Me,`${Pe}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:ir,padding:0,paddingInlineStart:zt,"&-lg":{borderRadius:Dr},"&-sm":{borderRadius:mr},[`&:not(${Pe}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,d.pU)(Me)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Pe}-disabled`]:{background:"transparent"},[`> div${Pe}`]:{width:"100%",border:"none",outline:"none",[`&${Pe}-focused`]:{boxShadow:"none !important"}},[`input${Pe}-input`]:{padding:`${gt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Pe}-handler-wrap`]:{zIndex:2},[Pe]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Ut},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:zt,marginInlineStart:Ut}}})}};var be=(0,Ce.Z)("InputNumber",Me=>{const Pe=(0,H.TS)(Me,(0,d.e5)(Me));return[Ge(Pe),xe(Pe),(0,ee.c)(Pe)]},Me=>Object.assign(Object.assign({},(0,d.TM)(Me)),{controlWidth:90,handleWidth:Me.controlHeightSM-Me.lineWidth*2,handleFontSize:Me.fontSize/2,handleVisible:"auto",handleActiveBg:Me.colorFillAlter,handleBg:Me.colorBgContainer,handleHoverColor:Me.colorPrimary,handleBorderColor:Me.colorBorder})),qe=function(Me,Pe){var gt={};for(var zt in Me)Object.prototype.hasOwnProperty.call(Me,zt)&&Pe.indexOf(zt)<0&&(gt[zt]=Me[zt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,zt=Object.getOwnPropertySymbols(Me);Ut<zt.length;Ut++)Pe.indexOf(zt[Ut])<0&&Object.prototype.propertyIsEnumerable.call(Me,zt[Ut])&&(gt[zt[Ut]]=Me[zt[Ut]]);return gt};const Et=Be.forwardRef((Me,Pe)=>{const{getPrefixCls:gt,direction:zt}=Be.useContext(Br.E_),Ut=Be.useRef(null);Be.useImperativeHandle(Pe,()=>Ut.current);const{className:ir,rootClassName:Dr,size:mr,disabled:Mr,prefixCls:Lr,addonBefore:vr,addonAfter:ur,prefix:$r,bordered:cn=!0,readOnly:Sn,status:nn,controls:Bn}=Me,ri=qe(Me,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Er=gt("input-number",Lr),[ni,Li]=be(Er),{compactSize:oi,compactItemClassnames:Ti}=(0,m.ri)(Er,zt);let Ui=Be.createElement(ue.Z,{className:`${Er}-handler-up-inner`}),Xi=Be.createElement(pe.Z,{className:`${Er}-handler-down-inner`});const Ha=typeof Bn=="boolean"?Bn:void 0;typeof Bn=="object"&&(Ui=typeof Bn.upIcon=="undefined"?Ui:Be.createElement("span",{className:`${Er}-handler-up-inner`},Bn.upIcon),Xi=typeof Bn.downIcon=="undefined"?Xi:Be.createElement("span",{className:`${Er}-handler-down-inner`},Bn.downIcon));const{hasFeedback:Ji,status:pi,isFormItemInput:ki,feedbackIcon:Ni}=Be.useContext(P.aM),ve=(0,sr.F)(pi,nn),Te=(0,nt.Z)(dr=>{var Hr;return(Hr=mr!=null?mr:oi)!==null&&Hr!==void 0?Hr:dr}),ke=Be.useContext(k.Z),it=Mr!=null?Mr:ke,$t=Ne()({[`${Er}-lg`]:Te==="large",[`${Er}-sm`]:Te==="small",[`${Er}-rtl`]:zt==="rtl",[`${Er}-borderless`]:!cn,[`${Er}-in-form-item`]:ki},(0,sr.Z)(Er,ve),Ti,Li),Qt=`${Er}-group`,Sr=Be.createElement(pr,Object.assign({ref:Ut,disabled:it,className:Ne()(ir,Dr),upHandler:Ui,downHandler:Xi,prefixCls:Er,readOnly:Sn,controls:Ha,prefix:$r,suffix:Ji&&Ni,addonAfter:ur&&Be.createElement(m.BR,null,Be.createElement(P.Ux,{override:!0,status:!0},ur)),addonBefore:vr&&Be.createElement(m.BR,null,Be.createElement(P.Ux,{override:!0,status:!0},vr)),classNames:{input:$t},classes:{affixWrapper:Ne()((0,sr.Z)(`${Er}-affix-wrapper`,ve,Ji),{[`${Er}-affix-wrapper-sm`]:Te==="small",[`${Er}-affix-wrapper-lg`]:Te==="large",[`${Er}-affix-wrapper-rtl`]:zt==="rtl",[`${Er}-affix-wrapper-borderless`]:!cn},Li),wrapper:Ne()({[`${Qt}-rtl`]:zt==="rtl",[`${Er}-wrapper-disabled`]:it},Li),group:Ne()({[`${Er}-group-wrapper-sm`]:Te==="small",[`${Er}-group-wrapper-lg`]:Te==="large",[`${Er}-group-wrapper-rtl`]:zt==="rtl"},(0,sr.Z)(`${Er}-group-wrapper`,ve,Ji),Li)}},ri));return ni(Sr)}),me=Et,pt=Me=>Be.createElement(fr.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Be.createElement(Et,Object.assign({},Me)));me._InternalPanelDoNotUseOrYouWillBeFired=pt;var lt=me},9432:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return ce},n:function(){return Y}});var pe=w(19248),ue=w(92310),R=w.n(ue),Ne=w(93681),te=w(8654),V=w(59301),B=w(19080),f=w(36355),E=w(1684),h=w(19716),z=w(32441),S=w(33234),_=w(59412),N=w(9937);function Q(G){return!!(G.prefix||G.suffix||G.allowClear)}var I=function(G,J){var W={};for(var j in G)Object.prototype.hasOwnProperty.call(G,j)&&J.indexOf(j)<0&&(W[j]=G[j]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,j=Object.getOwnPropertySymbols(G);se<j.length;se++)J.indexOf(j[se])<0&&Object.prototype.propertyIsEnumerable.call(G,j[se])&&(W[j[se]]=G[j[se]]);return W};function Y(G,J){if(!G)return;G.focus(J);const{cursor:W}=J||{};if(W){const j=G.value.length;switch(W){case"start":G.setSelectionRange(0,0);break;case"end":G.setSelectionRange(j,j);break;default:G.setSelectionRange(0,j);break}}}var ce=(0,V.forwardRef)((G,J)=>{var W;const{prefixCls:j,bordered:se=!0,status:he,size:Oe,disabled:Be,onBlur:je,onFocus:X,suffix:de,allowClear:L,addonAfter:rt,addonBefore:De,className:we,style:He,styles:ge,rootClassName:Le,onChange:fe,classNames:Ee}=G,At=I(G,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:ft,direction:ot,input:ct}=V.useContext(f.E_),It=ft("input",j),Tt=(0,V.useRef)(null),[Ht,pr]=(0,N.ZP)(It),{compactSize:sr,compactItemClassnames:Br}=(0,S.ri)(It,ot),fr=(0,h.Z)(Et=>{var me;return(me=Oe!=null?Oe:sr)!==null&&me!==void 0?me:Et}),k=V.useContext(E.Z),nt=Be!=null?Be:k,{status:P,hasFeedback:m,feedbackIcon:d}=(0,V.useContext)(z.aM),x=(0,B.F)(P,he),ee=Q(G)||!!m,Ce=(0,V.useRef)(ee);(0,V.useEffect)(()=>{var Et;ee&&Ce.current,Ce.current=ee},[ee]);const H=(0,_.Z)(Tt,!0),ne=Et=>{H(),je==null||je(Et)},Ge=Et=>{H(),X==null||X(Et)},xe=Et=>{H(),fe==null||fe(Et)},be=(m||de)&&V.createElement(V.Fragment,null,de,m&&d);let qe;return typeof L=="object"&&(L!=null&&L.clearIcon)?qe=L:L&&(qe={clearIcon:V.createElement(pe.Z,null)}),Ht(V.createElement(Ne.default,Object.assign({ref:(0,te.sQ)(J,Tt),prefixCls:It,autoComplete:ct==null?void 0:ct.autoComplete},At,{disabled:nt,onBlur:ne,onFocus:Ge,style:Object.assign(Object.assign({},ct==null?void 0:ct.style),He),styles:Object.assign(Object.assign({},ct==null?void 0:ct.styles),ge),suffix:be,allowClear:qe,className:R()(we,Le,Br,ct==null?void 0:ct.className),onChange:xe,addonAfter:rt&&V.createElement(S.BR,null,V.createElement(z.Ux,{override:!0,status:!0},rt)),addonBefore:De&&V.createElement(S.BR,null,V.createElement(z.Ux,{override:!0,status:!0},De)),classNames:Object.assign(Object.assign(Object.assign({},Ee),ct==null?void 0:ct.classNames),{input:R()({[`${It}-sm`]:fr==="small",[`${It}-lg`]:fr==="large",[`${It}-rtl`]:ot==="rtl",[`${It}-borderless`]:!se},!ee&&(0,B.Z)(It,x),Ee==null?void 0:Ee.input,(W=ct==null?void 0:ct.classNames)===null||W===void 0?void 0:W.input,pr)}),classes:{affixWrapper:R()({[`${It}-affix-wrapper-sm`]:fr==="small",[`${It}-affix-wrapper-lg`]:fr==="large",[`${It}-affix-wrapper-rtl`]:ot==="rtl",[`${It}-affix-wrapper-borderless`]:!se},(0,B.Z)(`${It}-affix-wrapper`,x,m),pr),wrapper:R()({[`${It}-group-rtl`]:ot==="rtl"},pr),group:R()({[`${It}-group-wrapper-sm`]:fr==="small",[`${It}-group-wrapper-lg`]:fr==="large",[`${It}-group-wrapper-rtl`]:ot==="rtl",[`${It}-group-wrapper-disabled`]:nt},(0,B.Z)(`${It}-group-wrapper`,x,m),pr)}})))})},1643:function(bn,Xt,w){"use strict";var pe=w(19248),ue=w(92310),R=w.n(ue),Ne=w(9296),te=w(59301),V=w(19080),B=w(36355),f=w(1684),E=w(19716),h=w(32441),z=w(9432),S=w(9937),_=function(Q,I){var Y={};for(var K in Q)Object.prototype.hasOwnProperty.call(Q,K)&&I.indexOf(K)<0&&(Y[K]=Q[K]);if(Q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,K=Object.getOwnPropertySymbols(Q);ce<K.length;ce++)I.indexOf(K[ce])<0&&Object.prototype.propertyIsEnumerable.call(Q,K[ce])&&(Y[K[ce]]=Q[K[ce]]);return Y};const N=(0,te.forwardRef)((Q,I)=>{const{prefixCls:Y,bordered:K=!0,size:ce,disabled:G,status:J,allowClear:W,showCount:j,classNames:se,rootClassName:he,className:Oe}=Q,Be=_(Q,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:je,direction:X}=te.useContext(B.E_),de=(0,E.Z)(ce),L=te.useContext(f.Z),rt=G!=null?G:L,{status:De,hasFeedback:we,feedbackIcon:He}=te.useContext(h.aM),ge=(0,V.F)(De,J),Le=te.useRef(null);te.useImperativeHandle(I,()=>{var ot;return{resizableTextArea:(ot=Le.current)===null||ot===void 0?void 0:ot.resizableTextArea,focus:ct=>{var It,Tt;(0,z.n)((Tt=(It=Le.current)===null||It===void 0?void 0:It.resizableTextArea)===null||Tt===void 0?void 0:Tt.textArea,ct)},blur:()=>{var ct;return(ct=Le.current)===null||ct===void 0?void 0:ct.blur()}}});const fe=je("input",Y);let Ee;typeof W=="object"&&(W!=null&&W.clearIcon)?Ee=W:W&&(Ee={clearIcon:te.createElement(pe.Z,null)});const[At,ft]=(0,S.ZP)(fe);return At(te.createElement(Ne.default,Object.assign({},Be,{disabled:rt,allowClear:Ee,className:R()(Oe,he),classes:{affixWrapper:R()(`${fe}-textarea-affix-wrapper`,{[`${fe}-affix-wrapper-rtl`]:X==="rtl",[`${fe}-affix-wrapper-borderless`]:!K,[`${fe}-affix-wrapper-sm`]:de==="small",[`${fe}-affix-wrapper-lg`]:de==="large",[`${fe}-textarea-show-count`]:j},(0,V.Z)(`${fe}-affix-wrapper`,ge),ft)},classNames:Object.assign(Object.assign({},se),{textarea:R()({[`${fe}-borderless`]:!K,[`${fe}-sm`]:de==="small",[`${fe}-lg`]:de==="large"},(0,V.Z)(fe,ge),ft,se==null?void 0:se.textarea)}),prefixCls:fe,suffix:we&&te.createElement("span",{className:`${fe}-textarea-suffix`},He),showCount:j,ref:Le})))});Xt.Z=N},59412:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return ue}});var pe=w(59301);function ue(R,Ne){const te=(0,pe.useRef)([]),V=()=>{te.current.push(setTimeout(()=>{var B,f,E,h;!((B=R.current)===null||B===void 0)&&B.input&&((f=R.current)===null||f===void 0?void 0:f.input.getAttribute("type"))==="password"&&(!((E=R.current)===null||E===void 0)&&E.input.hasAttribute("value"))&&((h=R.current)===null||h===void 0||h.input.removeAttribute("value"))}))};return(0,pe.useEffect)(()=>(Ne&&V(),()=>te.current.forEach(B=>{B&&clearTimeout(B)})),[]),V}},92832:function(bn,Xt,w){"use strict";w.d(Xt,{default:function(){return de}});var pe=w(92310),ue=w.n(pe),R=w(59301),Ne=w(36355),te=w(32441),V=w(9937),f=L=>{const{getPrefixCls:rt,direction:De}=(0,R.useContext)(Ne.E_),{prefixCls:we,className:He}=L,ge=rt("input-group",we),Le=rt("input"),[fe,Ee]=(0,V.ZP)(Le),At=ue()(ge,{[`${ge}-lg`]:L.size==="large",[`${ge}-sm`]:L.size==="small",[`${ge}-compact`]:L.compact,[`${ge}-rtl`]:De==="rtl"},Ee,He),ft=(0,R.useContext)(te.aM),ot=(0,R.useMemo)(()=>Object.assign(Object.assign({},ft),{isFormItemInput:!1}),[ft]);return fe(R.createElement("span",{className:At,style:L.style,onMouseEnter:L.onMouseEnter,onMouseLeave:L.onMouseLeave,onFocus:L.onFocus,onBlur:L.onBlur},R.createElement(te.aM.Provider,{value:ot},L.children)))},E=w(9432),h=w(73331),z=w(15277),S=w(2738),_=w(8654),N=w(59412),Q=function(L,rt){var De={};for(var we in L)Object.prototype.hasOwnProperty.call(L,we)&&rt.indexOf(we)<0&&(De[we]=L[we]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,we=Object.getOwnPropertySymbols(L);He<we.length;He++)rt.indexOf(we[He])<0&&Object.prototype.propertyIsEnumerable.call(L,we[He])&&(De[we[He]]=L[we[He]]);return De};const I=L=>L?R.createElement(z.Z,null):R.createElement(h.Z,null),Y={click:"onClick",hover:"onMouseOver"};var ce=R.forwardRef((L,rt)=>{const{visibilityToggle:De=!0}=L,we=typeof De=="object"&&De.visible!==void 0,[He,ge]=(0,R.useState)(()=>we?De.visible:!1),Le=(0,R.useRef)(null);R.useEffect(()=>{we&&ge(De.visible)},[we,De]);const fe=(0,N.Z)(Le),Ee=()=>{const{disabled:nt}=L;nt||(He&&fe(),ge(P=>{var m;const d=!P;return typeof De=="object"&&((m=De.onVisibleChange)===null||m===void 0||m.call(De,d)),d}))},At=nt=>{const{action:P="click",iconRender:m=I}=L,d=Y[P]||"",x=m(He),ee={[d]:Ee,className:`${nt}-icon`,key:"passwordIcon",onMouseDown:Ce=>{Ce.preventDefault()},onMouseUp:Ce=>{Ce.preventDefault()}};return R.cloneElement(R.isValidElement(x)?x:R.createElement("span",null,x),ee)},{className:ft,prefixCls:ot,inputPrefixCls:ct,size:It}=L,Tt=Q(L,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Ht}=R.useContext(Ne.E_),pr=Ht("input",ct),sr=Ht("input-password",ot),Br=De&&At(sr),fr=ue()(sr,ft,{[`${sr}-${It}`]:!!It}),k=Object.assign(Object.assign({},(0,S.Z)(Tt,["suffix","iconRender","visibilityToggle"])),{type:He?"text":"password",className:fr,prefixCls:pr,suffix:Br});return It&&(k.size=It),R.createElement(E.Z,Object.assign({ref:(0,_.sQ)(rt,Le)},k))}),G=w(47472),J=w(92343),W=w(3113),j=w(19716),se=w(33234),he=function(L,rt){var De={};for(var we in L)Object.prototype.hasOwnProperty.call(L,we)&&rt.indexOf(we)<0&&(De[we]=L[we]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,we=Object.getOwnPropertySymbols(L);He<we.length;He++)rt.indexOf(we[He])<0&&Object.prototype.propertyIsEnumerable.call(L,we[He])&&(De[we[He]]=L[we[He]]);return De},Be=R.forwardRef((L,rt)=>{const{prefixCls:De,inputPrefixCls:we,className:He,size:ge,suffix:Le,enterButton:fe=!1,addonAfter:Ee,loading:At,disabled:ft,onSearch:ot,onChange:ct,onCompositionStart:It,onCompositionEnd:Tt}=L,Ht=he(L,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:pr,direction:sr}=R.useContext(Ne.E_),Br=R.useRef(!1),fr=pr("input-search",De),k=pr("input",we),{compactSize:nt}=(0,se.ri)(fr,sr),P=(0,j.Z)(pt=>{var lt;return(lt=ge!=null?ge:nt)!==null&<!==void 0?lt:pt}),m=R.useRef(null),d=pt=>{pt&&pt.target&&pt.type==="click"&&ot&&ot(pt.target.value,pt,{source:"clear"}),ct&&ct(pt)},x=pt=>{var lt;document.activeElement===((lt=m.current)===null||lt===void 0?void 0:lt.input)&&pt.preventDefault()},ee=pt=>{var lt,Me;ot&&ot((Me=(lt=m.current)===null||lt===void 0?void 0:lt.input)===null||Me===void 0?void 0:Me.value,pt,{source:"input"})},Ce=pt=>{Br.current||At||ee(pt)},H=typeof fe=="boolean"?R.createElement(G.Z,null):null,ne=`${fr}-button`;let Ge;const xe=fe||{},be=xe.type&&xe.type.__ANT_BUTTON===!0;be||xe.type==="button"?Ge=(0,J.Tm)(xe,Object.assign({onMouseDown:x,onClick:pt=>{var lt,Me;(Me=(lt=xe==null?void 0:xe.props)===null||lt===void 0?void 0:lt.onClick)===null||Me===void 0||Me.call(lt,pt),ee(pt)},key:"enterButton"},be?{className:ne,size:P}:{})):Ge=R.createElement(W.ZP,{className:ne,type:fe?"primary":void 0,size:P,disabled:ft,key:"enterButton",onMouseDown:x,onClick:ee,loading:At,icon:H},fe),Ee&&(Ge=[Ge,(0,J.Tm)(Ee,{key:"addonAfter"})]);const qe=ue()(fr,{[`${fr}-rtl`]:sr==="rtl",[`${fr}-${P}`]:!!P,[`${fr}-with-button`]:!!fe},He),Et=pt=>{Br.current=!0,It==null||It(pt)},me=pt=>{Br.current=!1,Tt==null||Tt(pt)};return R.createElement(E.Z,Object.assign({ref:(0,_.sQ)(m,rt),onPressEnter:Ce},Ht,{size:P,onCompositionStart:Et,onCompositionEnd:me,prefixCls:k,addonAfter:Ge,suffix:Le,onChange:d,className:qe,disabled:ft}))}),je=w(1643);const X=E.Z;X.Group=f,X.Search=Be,X.TextArea=je.Z,X.Password=ce;var de=X},9937:function(bn,Xt,w){"use strict";w.d(Xt,{M1:function(){return B},TM:function(){return J},Xy:function(){return f},bi:function(){return z},e5:function(){return G},ik:function(){return S},nz:function(){return te},pU:function(){return V},s7:function(){return _},x0:function(){return h}});var pe=w(17313),ue=w(74207),R=w(37613),Ne=w(83116);const te=W=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:W,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),V=W=>({borderColor:W.hoverBorderColor}),B=W=>({borderColor:W.activeBorderColor,boxShadow:W.activeShadow,outline:0}),f=W=>({color:W.colorTextDisabled,backgroundColor:W.colorBgContainerDisabled,borderColor:W.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},V((0,R.TS)(W,{hoverBorderColor:W.colorBorder})))}),E=W=>{const{paddingBlockLG:j,fontSizeLG:se,lineHeightLG:he,borderRadiusLG:Oe,paddingInlineLG:Be}=W;return{padding:`${j}px ${Be}px`,fontSize:se,lineHeight:he,borderRadius:Oe}},h=W=>({padding:`${W.paddingBlockSM}px ${W.paddingInlineSM}px`,borderRadius:W.borderRadiusSM}),z=(W,j)=>{const{componentCls:se,colorError:he,colorWarning:Oe,errorActiveShadow:Be,warningActiveShadow:je,colorErrorBorderHover:X,colorWarningBorderHover:de}=W;return{[`&-status-error:not(${j}-disabled):not(${j}-borderless)${j}`]:{borderColor:he,"&:hover":{borderColor:X},"&:focus, &-focused":Object.assign({},B((0,R.TS)(W,{activeBorderColor:he,activeShadow:Be}))),[`${se}-prefix, ${se}-suffix`]:{color:he}},[`&-status-warning:not(${j}-disabled):not(${j}-borderless)${j}`]:{borderColor:Oe,"&:hover":{borderColor:de},"&:focus, &-focused":Object.assign({},B((0,R.TS)(W,{activeBorderColor:Oe,activeShadow:je}))),[`${se}-prefix, ${se}-suffix`]:{color:Oe}}}},S=W=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${W.paddingBlock}px ${W.paddingInline}px`,color:W.colorText,fontSize:W.fontSize,lineHeight:W.lineHeight,backgroundColor:W.colorBgContainer,backgroundImage:"none",borderWidth:W.lineWidth,borderStyle:W.lineType,borderColor:W.colorBorder,borderRadius:W.borderRadius,transition:`all ${W.motionDurationMid}`},te(W.colorTextPlaceholder)),{"&:hover":Object.assign({},V(W)),"&:focus, &-focused":Object.assign({},B(W)),"&-disabled, &[disabled]":Object.assign({},f(W)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:W.controlHeight,lineHeight:W.lineHeight,verticalAlign:"bottom",transition:`all ${W.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},E(W)),"&-sm":Object.assign({},h(W)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),_=W=>{const{componentCls:j,antCls:se}=W;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:W.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${j}, &-lg > ${j}-group-addon`]:Object.assign({},E(W)),[`&-sm ${j}, &-sm > ${j}-group-addon`]:Object.assign({},h(W)),[`&-lg ${se}-select-single ${se}-select-selector`]:{height:W.controlHeightLG},[`&-sm ${se}-select-single ${se}-select-selector`]:{height:W.controlHeightSM},[`> ${j}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${j}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${W.paddingInline}px`,color:W.colorText,fontWeight:"normal",fontSize:W.fontSize,textAlign:"center",backgroundColor:W.colorFillAlter,border:`${W.lineWidth}px ${W.lineType} ${W.colorBorder}`,borderRadius:W.borderRadius,transition:`all ${W.motionDurationSlow}`,lineHeight:1,[`${se}-select`]:{margin:`-${W.paddingBlock+1}px -${W.paddingInline}px`,[`&${se}-select-single:not(${se}-select-customize-input)`]:{[`${se}-select-selector`]:{backgroundColor:"inherit",border:`${W.lineWidth}px ${W.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${se}-select-selector`]:{color:W.colorPrimary}}},[`${se}-cascader-picker`]:{margin:`-9px -${W.paddingInline}px`,backgroundColor:"transparent",[`${se}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${j}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${j}-search-with-button &`]:{zIndex:0}}},[`> ${j}:first-child, ${j}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${se}-select ${se}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${j}-affix-wrapper`]:{[`&:not(:first-child) ${j}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${j}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${j}:last-child, ${j}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${se}-select ${se}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${j}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${j}-search &`]:{borderStartStartRadius:W.borderRadius,borderEndStartRadius:W.borderRadius}},[`&:not(:first-child), ${j}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${j}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,pe.dF)()),{[`${j}-group-addon, ${j}-group-wrap, > ${j}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:W.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${j}-affix-wrapper,
|
|
|
& > ${j}-number-affix-wrapper,
|
|
|
& > ${se}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-W.lineWidth,borderInlineEndWidth:W.lineWidth},[`${j}`]:{float:"none"},[`& > ${se}-select > ${se}-select-selector,
|
|
|
& > ${se}-select-auto-complete ${j},
|
|
|
& > ${se}-cascader-picker ${j},
|
|
|
& > ${j}-group-wrapper ${j}`]:{borderInlineEndWidth:W.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${se}-select-focused`]:{zIndex:1},[`& > ${se}-select > ${se}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${se}-select:first-child > ${se}-select-selector,
|
|
|
& > ${se}-select-auto-complete:first-child ${j},
|
|
|
& > ${se}-cascader-picker:first-child ${j}`]:{borderStartStartRadius:W.borderRadius,borderEndStartRadius:W.borderRadius},[`& > *:last-child,
|
|
|
& > ${se}-select:last-child > ${se}-select-selector,
|
|
|
& > ${se}-cascader-picker:last-child ${j},
|
|
|
& > ${se}-cascader-picker-focused:last-child ${j}`]:{borderInlineEndWidth:W.lineWidth,borderStartEndRadius:W.borderRadius,borderEndEndRadius:W.borderRadius},[`& > ${se}-select-auto-complete ${j}`]:{verticalAlign:"top"},[`${j}-group-wrapper + ${j}-group-wrapper`]:{marginInlineStart:-W.lineWidth,[`${j}-affix-wrapper`]:{borderRadius:0}},[`${j}-group-wrapper:not(:last-child)`]:{[`&${j}-search > ${j}-group`]:{[`& > ${j}-group-addon > ${j}-search-button`]:{borderRadius:0},[`& > ${j}`]:{borderStartStartRadius:W.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:W.borderRadius}}}})}},N=W=>{const{componentCls:j,controlHeightSM:se,lineWidth:he}=W,Be=(se-he*2-16)/2;return{[j]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,pe.Wf)(W)),S(W)),z(W,j)),{'&[type="color"]':{height:W.controlHeight,[`&${j}-lg`]:{height:W.controlHeightLG},[`&${j}-sm`]:{height:se,paddingTop:Be,paddingBottom:Be}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Q=W=>{const{componentCls:j}=W;return{[`${j}-clear-icon`]:{margin:0,color:W.colorTextQuaternary,fontSize:W.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${W.motionDurationSlow}`,"&:hover":{color:W.colorTextTertiary},"&:active":{color:W.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${W.inputAffixPadding}px`}}}},I=W=>{const{componentCls:j,inputAffixPadding:se,colorTextDescription:he,motionDurationSlow:Oe,colorIcon:Be,colorIconHover:je,iconCls:X}=W;return{[`${j}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},S(W)),{display:"inline-flex",[`&:not(${j}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},V(W)),{zIndex:1,[`${j}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${j}[disabled]`]:{background:"transparent"}},[`> input${j}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${j}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:W.paddingXS}},"&-show-count-suffix":{color:he},"&-show-count-has-suffix":{marginInlineEnd:W.paddingXXS},"&-prefix":{marginInlineEnd:se},"&-suffix":{marginInlineStart:se}}}),Q(W)),{[`${X}${j}-password-icon`]:{color:Be,cursor:"pointer",transition:`all ${Oe}`,"&:hover":{color:je}}}),z(W,`${j}-affix-wrapper`))}},Y=W=>{const{componentCls:j,colorError:se,colorWarning:he,borderRadiusLG:Oe,borderRadiusSM:Be}=W;return{[`${j}-group`]:Object.assign(Object.assign(Object.assign({},(0,pe.Wf)(W)),_(W)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${j}-group-addon`]:{borderRadius:Oe,fontSize:W.fontSizeLG}},"&-sm":{[`${j}-group-addon`]:{borderRadius:Be}},"&-status-error":{[`${j}-group-addon`]:{color:se,borderColor:se}},"&-status-warning":{[`${j}-group-addon`]:{color:he,borderColor:he}},"&-disabled":{[`${j}-group-addon`]:Object.assign({},f(W))},[`&:not(${j}-compact-first-item):not(${j}-compact-last-item)${j}-compact-item`]:{[`${j}, ${j}-group-addon`]:{borderRadius:0}},[`&:not(${j}-compact-last-item)${j}-compact-first-item`]:{[`${j}, ${j}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${j}-compact-first-item)${j}-compact-last-item`]:{[`${j}, ${j}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},K=W=>{const{componentCls:j,antCls:se}=W,he=`${j}-search`;return{[he]:{[`${j}`]:{"&:hover, &:focus":{borderColor:W.colorPrimaryHover,[`+ ${j}-group-addon ${he}-button:not(${se}-btn-primary)`]:{borderInlineStartColor:W.colorPrimaryHover}}},[`${j}-affix-wrapper`]:{borderRadius:0},[`${j}-lg`]:{lineHeight:W.lineHeightLG-2e-4},[`> ${j}-group`]:{[`> ${j}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${he}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:W.borderRadius,borderEndEndRadius:W.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${he}-button:not(${se}-btn-primary)`]:{color:W.colorTextDescription,"&:hover":{color:W.colorPrimaryHover},"&:active":{color:W.colorPrimaryActive},[`&${se}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${he}-button`]:{height:W.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${he}-button`]:{height:W.controlHeightLG},[`&-small ${he}-button`]:{height:W.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${j}-compact-item`]:{[`&:not(${j}-compact-last-item)`]:{[`${j}-group-addon`]:{[`${j}-search-button`]:{marginInlineEnd:-W.lineWidth,borderRadius:0}}},[`&:not(${j}-compact-first-item)`]:{[`${j},${j}-affix-wrapper`]:{borderRadius:0}},[`> ${j}-group-addon ${j}-search-button,
|
|
|
> ${j},
|
|
|
${j}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${j}-affix-wrapper-focused`]:{zIndex:2}}}}},ce=W=>{const{componentCls:j,paddingLG:se}=W,he=`${j}-textarea`;return{[he]:{position:"relative","&-show-count":{[`> ${j}`]:{height:"100%"},[`${j}-data-count`]:{position:"absolute",bottom:-W.fontSize*W.lineHeight,insetInlineEnd:0,color:W.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${j}`]:{paddingInlineEnd:se}},[`&-affix-wrapper${he}-has-feedback`]:{[`${j}`]:{paddingInlineEnd:se}},[`&-affix-wrapper${j}-affix-wrapper`]:{padding:0,[`> textarea${j}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${j}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${j}-clear-icon`]:{position:"absolute",insetInlineEnd:W.paddingXS,insetBlockStart:W.paddingXS},[`${he}-suffix`]:{position:"absolute",top:0,insetInlineEnd:W.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function G(W){return(0,R.TS)(W,{inputAffixPadding:W.paddingXXS})}const J=W=>{const{controlHeight:j,fontSize:se,lineHeight:he,lineWidth:Oe,controlHeightSM:Be,controlHeightLG:je,fontSizeLG:X,lineHeightLG:de,paddingSM:L,controlPaddingHorizontalSM:rt,controlPaddingHorizontal:De,colorFillAlter:we,colorPrimaryHover:He,controlOutlineWidth:ge,controlOutline:Le,colorErrorOutline:fe,colorWarningOutline:Ee}=W;return{paddingBlock:Math.max(Math.round((j-se*he)/2*10)/10-Oe,3),paddingBlockSM:Math.max(Math.round((Be-se*he)/2*10)/10-Oe,0),paddingBlockLG:Math.ceil((je-X*de)/2*10)/10-Oe,paddingInline:L-Oe,paddingInlineSM:rt-Oe,paddingInlineLG:De-Oe,addonBg:we,activeBorderColor:He,hoverBorderColor:He,activeShadow:`0 0 0 ${ge}px ${Le}`,errorActiveShadow:`0 0 0 ${ge}px ${fe}`,warningActiveShadow:`0 0 0 ${ge}px ${Ee}`}};Xt.ZP=(0,Ne.Z)("Input",W=>{const j=(0,R.TS)(W,G(W));return[N(j),ce(j),I(j),Y(j),K(j),(0,ue.c)(j)]},J)},45818:function(bn,Xt,w){"use strict";w.d(Xt,{D:function(){return G},Z:function(){return j}});var pe=w(14809),ue=w(59301),R={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=R,te=w(7657),V=function(he,Oe){return ue.createElement(te.Z,(0,pe.Z)({},he,{ref:Oe,icon:Ne}))},B=ue.forwardRef(V),f=B,E=w(33853),h=w(38819),z=w(92310),S=w.n(z),_=w(2738),Q=se=>!isNaN(parseFloat(se))&&isFinite(se),I=w(36355),Y=w(84966),K=function(se,he){var Oe={};for(var Be in se)Object.prototype.hasOwnProperty.call(se,Be)&&he.indexOf(Be)<0&&(Oe[Be]=se[Be]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Be=Object.getOwnPropertySymbols(se);je<Be.length;je++)he.indexOf(Be[je])<0&&Object.prototype.propertyIsEnumerable.call(se,Be[je])&&(Oe[Be[je]]=se[Be[je]]);return Oe};const ce={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},G=ue.createContext({}),J=(()=>{let se=0;return function(){let he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return se+=1,`${he}${se}`}})();var j=ue.forwardRef((se,he)=>{const{prefixCls:Oe,className:Be,trigger:je,children:X,defaultCollapsed:de=!1,theme:L="dark",style:rt={},collapsible:De=!1,reverseArrow:we=!1,width:He=200,collapsedWidth:ge=80,zeroWidthTriggerStyle:Le,breakpoint:fe,onCollapse:Ee,onBreakpoint:At}=se,ft=K(se,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ot}=(0,ue.useContext)(Y.Gs),[ct,It]=(0,ue.useState)("collapsed"in se?se.collapsed:de),[Tt,Ht]=(0,ue.useState)(!1);(0,ue.useEffect)(()=>{"collapsed"in se&&It(se.collapsed)},[se.collapsed]);const pr=(P,m)=>{"collapsed"in se||It(P),Ee==null||Ee(P,m)},sr=(0,ue.useRef)();sr.current=P=>{Ht(P.matches),At==null||At(P.matches),ct!==P.matches&&pr(P.matches,"responsive")},(0,ue.useEffect)(()=>{function P(d){return sr.current(d)}let m;if(typeof window!="undefined"){const{matchMedia:d}=window;if(d&&fe&&fe in ce){m=d(`(max-width: ${ce[fe]})`);try{m.addEventListener("change",P)}catch(x){m.addListener(P)}P(m)}}return()=>{try{m==null||m.removeEventListener("change",P)}catch(d){m==null||m.removeListener(P)}}},[fe]),(0,ue.useEffect)(()=>{const P=J("ant-sider-");return ot.addSider(P),()=>ot.removeSider(P)},[]);const Br=()=>{pr(!ct,"clickTrigger")},{getPrefixCls:fr}=(0,ue.useContext)(I.E_),k=()=>{const P=fr("layout-sider",Oe),m=(0,_.Z)(ft,["collapsed"]),d=ct?ge:He,x=Q(d)?`${d}px`:String(d),ee=parseFloat(String(ge||0))===0?ue.createElement("span",{onClick:Br,className:S()(`${P}-zero-width-trigger`,`${P}-zero-width-trigger-${we?"right":"left"}`),style:Le},je||ue.createElement(f,null)):null,ne={expanded:we?ue.createElement(h.Z,null):ue.createElement(E.Z,null),collapsed:we?ue.createElement(E.Z,null):ue.createElement(h.Z,null)}[ct?"collapsed":"expanded"],Ge=je!==null?ee||ue.createElement("div",{className:`${P}-trigger`,onClick:Br,style:{width:x}},je||ne):null,xe=Object.assign(Object.assign({},rt),{flex:`0 0 ${x}`,maxWidth:x,minWidth:x,width:x}),be=S()(P,`${P}-${L}`,{[`${P}-collapsed`]:!!ct,[`${P}-has-trigger`]:De&&je!==null&&!ee,[`${P}-below`]:!!Tt,[`${P}-zero-width`]:parseFloat(x)===0},Be);return ue.createElement("aside",Object.assign({className:be},m,{style:xe,ref:he}),ue.createElement("div",{className:`${P}-children`},X),De||Tt&&ee?Ge:null)},nt=ue.useMemo(()=>({siderCollapsed:ct}),[ct]);return ue.createElement(G.Provider,{value:nt},k())})},84966:function(bn,Xt,w){"use strict";w.d(Xt,{VY:function(){return G},$_:function(){return ce},h4:function(){return K},Gs:function(){return _},ZP:function(){return J}});var pe=w(95190),ue=w(92310),R=w.n(ue),Ne=w(2738),te=w(59301),V=w(36355),B=w(83116),E=W=>{const{componentCls:j,bodyBg:se,lightSiderBg:he,lightTriggerBg:Oe,lightTriggerColor:Be}=W;return{[`${j}-sider-light`]:{background:he,[`${j}-sider-trigger`]:{color:Be,background:Oe},[`${j}-sider-zero-width-trigger`]:{color:Be,background:Oe,border:`1px solid ${se}`,borderInlineStart:0}}}};const h=W=>{const{antCls:j,componentCls:se,colorText:he,triggerColor:Oe,footerBg:Be,triggerBg:je,headerHeight:X,headerPadding:de,headerColor:L,footerPadding:rt,triggerHeight:De,zeroTriggerHeight:we,zeroTriggerWidth:He,motionDurationMid:ge,motionDurationSlow:Le,fontSize:fe,borderRadius:Ee,bodyBg:At,headerBg:ft,siderBg:ot}=W;return{[se]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:At,"&, *":{boxSizing:"border-box"},[`&${se}-has-sider`]:{flexDirection:"row",[`> ${se}, > ${se}-content`]:{width:0}},[`${se}-header, &${se}-footer`]:{flex:"0 0 auto"},[`${se}-sider`]:{position:"relative",minWidth:0,background:ot,transition:`all ${ge}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${j}-menu${j}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:De},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:De,color:Oe,lineHeight:`${De}px`,textAlign:"center",background:je,cursor:"pointer",transition:`all ${ge}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:X,insetInlineEnd:-He,zIndex:1,width:He,height:we,color:Oe,fontSize:W.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ot,borderStartStartRadius:0,borderStartEndRadius:Ee,borderEndEndRadius:Ee,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Le} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Le}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-He,borderStartStartRadius:Ee,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ee}}}}},E(W)),{"&-rtl":{direction:"rtl"}}),[`${se}-header`]:{height:X,padding:de,color:L,lineHeight:`${X}px`,background:ft,[`${j}-menu`]:{lineHeight:"inherit"}},[`${se}-footer`]:{padding:rt,color:he,fontSize:fe,background:Be},[`${se}-content`]:{flex:"auto",minHeight:0}}};var z=(0,B.Z)("Layout",W=>[h(W)],W=>{const{colorBgLayout:j,controlHeight:se,controlHeightLG:he,colorText:Oe,controlHeightSM:Be,marginXXS:je,colorTextLightSolid:X,colorBgContainer:de}=W,L=he*1.25;return{colorBgHeader:"#001529",colorBgBody:j,colorBgTrigger:"#002140",bodyBg:j,headerBg:"#001529",headerHeight:se*2,headerPadding:`0 ${L}px`,headerColor:Oe,footerPadding:`${Be}px ${L}px`,footerBg:j,siderBg:"#001529",triggerHeight:he+je*2,triggerBg:"#002140",triggerColor:X,zeroTriggerWidth:he,zeroTriggerHeight:he,lightSiderBg:de,lightTriggerBg:de,lightTriggerColor:Oe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),S=function(W,j){var se={};for(var he in W)Object.prototype.hasOwnProperty.call(W,he)&&j.indexOf(he)<0&&(se[he]=W[he]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,he=Object.getOwnPropertySymbols(W);Oe<he.length;Oe++)j.indexOf(he[Oe])<0&&Object.prototype.propertyIsEnumerable.call(W,he[Oe])&&(se[he[Oe]]=W[he[Oe]]);return se};const _=te.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function N(W){let{suffixCls:j,tagName:se,displayName:he}=W;return Oe=>te.forwardRef((je,X)=>te.createElement(Oe,Object.assign({ref:X,suffixCls:j,tagName:se},je)))}const Q=te.forwardRef((W,j)=>{const{prefixCls:se,suffixCls:he,className:Oe,tagName:Be}=W,je=S(W,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:X}=te.useContext(V.E_),de=X("layout",se),[L,rt]=z(de),De=he?`${de}-${he}`:de;return L(te.createElement(Be,Object.assign({className:R()(se||De,Oe,rt),ref:j},je)))}),I=te.forwardRef((W,j)=>{const{direction:se}=te.useContext(V.E_),[he,Oe]=te.useState([]),{prefixCls:Be,className:je,rootClassName:X,children:de,hasSider:L,tagName:rt,style:De}=W,we=S(W,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),He=(0,Ne.Z)(we,["suffixCls"]),{getPrefixCls:ge,layout:Le}=te.useContext(V.E_),fe=ge("layout",Be),[Ee,At]=z(fe),ft=R()(fe,{[`${fe}-has-sider`]:typeof L=="boolean"?L:he.length>0,[`${fe}-rtl`]:se==="rtl"},Le==null?void 0:Le.className,je,X,At),ot=te.useMemo(()=>({siderHook:{addSider:ct=>{Oe(It=>[].concat((0,pe.Z)(It),[ct]))},removeSider:ct=>{Oe(It=>It.filter(Tt=>Tt!==ct))}}}),[]);return Ee(te.createElement(_.Provider,{value:ot},te.createElement(rt,Object.assign({ref:j,className:ft,style:Object.assign(Object.assign({},Le==null?void 0:Le.style),De)},He),de)))}),Y=N({tagName:"div",displayName:"Layout"})(I),K=N({suffixCls:"header",tagName:"header",displayName:"Header"})(Q),ce=N({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Q),G=N({suffixCls:"content",tagName:"main",displayName:"Content"})(Q);var J=Y},40875:function(bn,Xt,w){"use strict";w.d(Xt,{J:function(){return V}});var pe=w(59301),ue=w(33234),R=w(70425),Ne=function(B,f){var E={};for(var h in B)Object.prototype.hasOwnProperty.call(B,h)&&f.indexOf(h)<0&&(E[h]=B[h]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,h=Object.getOwnPropertySymbols(B);z<h.length;z++)f.indexOf(h[z])<0&&Object.prototype.propertyIsEnumerable.call(B,h[z])&&(E[h[z]]=B[h[z]]);return E};const te=pe.createContext(null),V=pe.forwardRef((B,f)=>{const{children:E}=B,h=Ne(B,["children"]),z=pe.useContext(te),S=pe.useMemo(()=>Object.assign(Object.assign({},z),h),[z,h.prefixCls,h.mode,h.selectable]);return pe.createElement(te.Provider,{value:S},pe.createElement(ue.BR,null,(0,R.supportNodeRef)(E)?pe.cloneElement(E,{ref:f}):E))});Xt.Z=te},20834:function(bn,Xt,w){"use strict";w.d(Xt,{default:function(){return nt}});var pe=w(15285),ue=w(59301),R=w(45818),Ne=w(92310),te=w.n(Ne),V=w(36355),B=function(P,m){var d={};for(var x in P)Object.prototype.hasOwnProperty.call(P,x)&&m.indexOf(x)<0&&(d[x]=P[x]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,x=Object.getOwnPropertySymbols(P);ee<x.length;ee++)m.indexOf(x[ee])<0&&Object.prototype.propertyIsEnumerable.call(P,x[ee])&&(d[x[ee]]=P[x[ee]]);return d},E=P=>{const{prefixCls:m,className:d,dashed:x}=P,ee=B(P,["prefixCls","className","dashed"]),{getPrefixCls:Ce}=ue.useContext(V.E_),H=Ce("menu",m),ne=te()({[`${H}-item-divider-dashed`]:!!x},d);return ue.createElement(pe.iz,Object.assign({className:ne},ee))},h=w(11592),z=w(2738),S=w(6848),_=w(92343),Q=(0,ue.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Y=P=>{var m;const{className:d,children:x,icon:ee,title:Ce,danger:H}=P,{prefixCls:ne,firstLevel:Ge,direction:xe,disableMenuItemTitleTooltip:be,inlineCollapsed:qe}=ue.useContext(Q),Et=gt=>{const zt=ue.createElement("span",{className:`${ne}-title-content`},x);return(!ee||(0,_.l$)(x)&&x.type==="span")&&x&>&&Ge&&typeof x=="string"?ue.createElement("div",{className:`${ne}-inline-collapsed-noicon`},x.charAt(0)):zt},{siderCollapsed:me}=ue.useContext(R.D);let pt=Ce;typeof Ce=="undefined"?pt=Ge?x:"":Ce===!1&&(pt="");const lt={title:pt};!me&&!qe&&(lt.title=null,lt.open=!1);const Me=(0,h.Z)(x).length;let Pe=ue.createElement(pe.ck,Object.assign({},(0,z.Z)(P,["title","icon","danger"]),{className:te()({[`${ne}-item-danger`]:H,[`${ne}-item-only-child`]:(ee?Me+1:Me)===1},d),title:typeof Ce=="string"?Ce:void 0}),(0,_.Tm)(ee,{className:te()((0,_.l$)(ee)?(m=ee.props)===null||m===void 0?void 0:m.className:"",`${ne}-item-icon`)}),Et(qe));return be||(Pe=ue.createElement(S.Z,Object.assign({},lt,{placement:xe==="rtl"?"left":"right",overlayClassName:`${ne}-inline-collapsed-tooltip`}),Pe)),Pe},ce=P=>{var m;const{popupClassName:d,icon:x,title:ee,theme:Ce}=P,H=ue.useContext(Q),{prefixCls:ne,inlineCollapsed:Ge,theme:xe}=H,be=(0,pe.Xl)();let qe;if(!x)qe=Ge&&!be.length&&ee&&typeof ee=="string"?ue.createElement("div",{className:`${ne}-inline-collapsed-noicon`},ee.charAt(0)):ue.createElement("span",{className:`${ne}-title-content`},ee);else{const me=(0,_.l$)(ee)&&ee.type==="span";qe=ue.createElement(ue.Fragment,null,(0,_.Tm)(x,{className:te()((0,_.l$)(x)?(m=x.props)===null||m===void 0?void 0:m.className:"",`${ne}-item-icon`)}),me?ee:ue.createElement("span",{className:`${ne}-title-content`},ee))}const Et=ue.useMemo(()=>Object.assign(Object.assign({},H),{firstLevel:!1}),[H]);return ue.createElement(Q.Provider,{value:Et},ue.createElement(pe.Wd,Object.assign({},(0,z.Z)(P,["icon"]),{title:qe,popupClassName:te()(ne,d,`${ne}-${Ce||xe}`)})))},G=w(18785),J=w(70425),W=w(62892),j=w(40875),se=function(P,m){var d={};for(var x in P)Object.prototype.hasOwnProperty.call(P,x)&&m.indexOf(x)<0&&(d[x]=P[x]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,x=Object.getOwnPropertySymbols(P);ee<x.length;ee++)m.indexOf(x[ee])<0&&Object.prototype.propertyIsEnumerable.call(P,x[ee])&&(d[x[ee]]=P[x[ee]]);return d};function he(P){return(P||[]).map((m,d)=>{if(m&&typeof m=="object"){const x=m,{label:ee,children:Ce,key:H,type:ne}=x,Ge=se(x,["label","children","key","type"]),xe=H!=null?H:`tmp-${d}`;return Ce||ne==="group"?ne==="group"?ue.createElement(pe.BW,Object.assign({key:xe},Ge,{title:ee}),he(Ce)):ue.createElement(ce,Object.assign({key:xe},Ge,{title:ee}),he(Ce)):ne==="divider"?ue.createElement(E,Object.assign({key:xe},Ge)):ue.createElement(Y,Object.assign({key:xe},Ge),ee)}return null}).filter(m=>m)}function Oe(P){return ue.useMemo(()=>P&&he(P),[P])}var Be=w(64993),je=w(17313),X=w(8378),de=w(13826),L=w(29878),rt=w(83116),De=w(37613),He=P=>{const{componentCls:m,motionDurationSlow:d,horizontalLineHeight:x,colorSplit:ee,lineWidth:Ce,lineType:H,itemPaddingInline:ne}=P;return{[`${m}-horizontal`]:{lineHeight:x,border:0,borderBottom:`${Ce}px ${H} ${ee}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${m}-item, ${m}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ne},[`> ${m}-item:hover,
|
|
|
> ${m}-item-active,
|
|
|
> ${m}-submenu ${m}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${m}-item, ${m}-submenu-title`]:{transition:[`border-color ${d}`,`background ${d}`].join(",")},[`${m}-submenu-arrow`]:{display:"none"}}}},Le=P=>{let{componentCls:m,menuArrowOffset:d}=P;return{[`${m}-rtl`]:{direction:"rtl"},[`${m}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${m}-rtl${m}-vertical,
|
|
|
${m}-submenu-rtl ${m}-vertical`]:{[`${m}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${d})`},"&::after":{transform:`rotate(45deg) translateY(${d})`}}}}};const fe=P=>Object.assign({},(0,je.oN)(P));var At=(P,m)=>{const{componentCls:d,itemColor:x,itemSelectedColor:ee,groupTitleColor:Ce,itemBg:H,subMenuItemBg:ne,itemSelectedBg:Ge,activeBarHeight:xe,activeBarWidth:be,activeBarBorderWidth:qe,motionDurationSlow:Et,motionEaseInOut:me,motionEaseOut:pt,itemPaddingInline:lt,motionDurationMid:Me,itemHoverColor:Pe,lineType:gt,colorSplit:zt,itemDisabledColor:Ut,dangerItemColor:ir,dangerItemHoverColor:Dr,dangerItemSelectedColor:mr,dangerItemActiveBg:Mr,dangerItemSelectedBg:Lr,itemHoverBg:vr,itemActiveBg:ur,menuSubMenuBg:$r,horizontalItemSelectedColor:cn,horizontalItemSelectedBg:Sn,horizontalItemBorderRadius:nn,horizontalItemHoverBg:Bn,popupBg:ri}=P;return{[`${d}-${m}, ${d}-${m} > ${d}`]:{color:x,background:H,[`&${d}-root:focus-visible`]:Object.assign({},fe(P)),[`${d}-item-group-title`]:{color:Ce},[`${d}-submenu-selected`]:{[`> ${d}-submenu-title`]:{color:ee}},[`${d}-item-disabled, ${d}-submenu-disabled`]:{color:`${Ut} !important`},[`${d}-item:not(${d}-item-selected):not(${d}-submenu-selected)`]:{[`&:hover, > ${d}-submenu-title:hover`]:{color:Pe}},[`&:not(${d}-horizontal)`]:{[`${d}-item:not(${d}-item-selected)`]:{"&:hover":{backgroundColor:vr},"&:active":{backgroundColor:ur}},[`${d}-submenu-title`]:{"&:hover":{backgroundColor:vr},"&:active":{backgroundColor:ur}}},[`${d}-item-danger`]:{color:ir,[`&${d}-item:hover`]:{[`&:not(${d}-item-selected):not(${d}-submenu-selected)`]:{color:Dr}},[`&${d}-item:active`]:{background:Mr}},[`${d}-item a`]:{"&, &:hover":{color:"inherit"}},[`${d}-item-selected`]:{color:ee,[`&${d}-item-danger`]:{color:mr},"a, a:hover":{color:"inherit"}},[`& ${d}-item-selected`]:{backgroundColor:Ge,[`&${d}-item-danger`]:{backgroundColor:Lr}},[`${d}-item, ${d}-submenu-title`]:{[`&:not(${d}-item-disabled):focus-visible`]:Object.assign({},fe(P))},[`&${d}-submenu > ${d}`]:{backgroundColor:$r},[`&${d}-popup > ${d}`]:{backgroundColor:ri},[`&${d}-horizontal`]:Object.assign(Object.assign({},m==="dark"?{borderBottom:0}:{}),{[`> ${d}-item, > ${d}-submenu`]:{top:qe,marginTop:-qe,marginBottom:0,borderRadius:nn,"&::after":{position:"absolute",insetInline:lt,bottom:0,borderBottom:`${xe}px solid transparent`,transition:`border-color ${Et} ${me}`,content:'""'},"&:hover, &-active, &-open":{background:Bn,"&::after":{borderBottomWidth:xe,borderBottomColor:cn}},"&-selected":{color:cn,backgroundColor:Sn,"&:hover":{backgroundColor:Sn},"&::after":{borderBottomWidth:xe,borderBottomColor:cn}}}}),[`&${d}-root`]:{[`&${d}-inline, &${d}-vertical`]:{borderInlineEnd:`${qe}px ${gt} ${zt}`}},[`&${d}-inline`]:{[`${d}-sub${d}-inline`]:{background:ne},[`${d}-item, ${d}-submenu-title`]:qe&&be?{width:`calc(100% + ${qe}px)`}:{},[`${d}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${be}px solid ${ee}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Me} ${pt}`,`opacity ${Me} ${pt}`].join(","),content:'""'},[`&${d}-item-danger`]:{"&::after":{borderInlineEndColor:mr}}},[`${d}-selected, ${d}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Me} ${me}`,`opacity ${Me} ${me}`].join(",")}}}}}};const ft=P=>{const{componentCls:m,itemHeight:d,itemMarginInline:x,padding:ee,menuArrowSize:Ce,marginXS:H,itemMarginBlock:ne}=P,Ge=ee+Ce+H;return{[`${m}-item`]:{position:"relative",overflow:"hidden"},[`${m}-item, ${m}-submenu-title`]:{height:d,lineHeight:`${d}px`,paddingInline:ee,overflow:"hidden",textOverflow:"ellipsis",marginInline:x,marginBlock:ne,width:`calc(100% - ${x*2}px)`},[`> ${m}-item,
|
|
|
> ${m}-submenu > ${m}-submenu-title`]:{height:d,lineHeight:`${d}px`},[`${m}-item-group-list ${m}-submenu-title,
|
|
|
${m}-submenu-title`]:{paddingInlineEnd:Ge}}};var ct=P=>{const{componentCls:m,iconCls:d,itemHeight:x,colorTextLightSolid:ee,dropdownWidth:Ce,controlHeightLG:H,motionDurationMid:ne,motionEaseOut:Ge,paddingXL:xe,itemMarginInline:be,fontSizeLG:qe,motionDurationSlow:Et,paddingXS:me,boxShadowSecondary:pt,collapsedWidth:lt,collapsedIconSize:Me}=P,Pe={height:x,lineHeight:`${x}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[m]:{"&-inline, &-vertical":Object.assign({[`&${m}-root`]:{boxShadow:"none"}},ft(P))},[`${m}-submenu-popup`]:{[`${m}-vertical`]:Object.assign(Object.assign({},ft(P)),{boxShadow:pt})}},{[`${m}-submenu-popup ${m}-vertical${m}-sub`]:{minWidth:Ce,maxHeight:`calc(100vh - ${H*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${m}-inline`]:{width:"100%",[`&${m}-root`]:{[`${m}-item, ${m}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Et}`,`background ${Et}`,`padding ${ne} ${Ge}`].join(","),[`> ${m}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${m}-sub${m}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${m}-submenu > ${m}-submenu-title`]:Pe,[`& ${m}-item-group-title`]:{paddingInlineStart:xe}},[`${m}-item`]:Pe}},{[`${m}-inline-collapsed`]:{width:lt,[`&${m}-root`]:{[`${m}-item, ${m}-submenu ${m}-submenu-title`]:{[`> ${m}-inline-collapsed-noicon`]:{fontSize:qe,textAlign:"center"}}},[`> ${m}-item,
|
|
|
> ${m}-item-group > ${m}-item-group-list > ${m}-item,
|
|
|
> ${m}-item-group > ${m}-item-group-list > ${m}-submenu > ${m}-submenu-title,
|
|
|
> ${m}-submenu > ${m}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${qe/2}px - ${be}px)`,textOverflow:"clip",[`
|
|
|
${m}-submenu-arrow,
|
|
|
${m}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${m}-item-icon, ${d}`]:{margin:0,fontSize:Me,lineHeight:`${x}px`,"+ span":{display:"inline-block",opacity:0}}},[`${m}-item-icon, ${d}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${m}-item-icon, ${d}`]:{display:"none"},"a, a:hover":{color:ee}},[`${m}-item-group-title`]:Object.assign(Object.assign({},je.vS),{paddingInline:me})}}]};const It=P=>{const{componentCls:m,motionDurationSlow:d,motionDurationMid:x,motionEaseInOut:ee,motionEaseOut:Ce,iconCls:H,iconSize:ne,iconMarginInlineEnd:Ge}=P;return{[`${m}-item, ${m}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${d}`,`background ${d}`,`padding ${d} ${ee}`].join(","),[`${m}-item-icon, ${H}`]:{minWidth:ne,fontSize:ne,transition:[`font-size ${x} ${Ce}`,`margin ${d} ${ee}`,`color ${d}`].join(","),"+ span":{marginInlineStart:Ge,opacity:1,transition:[`opacity ${d} ${ee}`,`margin ${d}`,`color ${d}`].join(",")}},[`${m}-item-icon`]:Object.assign({},(0,je.Ro)()),[`&${m}-item-only-child`]:{[`> ${H}, > ${m}-item-icon`]:{marginInlineEnd:0}}},[`${m}-item-disabled, ${m}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${m}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Tt=P=>{const{componentCls:m,motionDurationSlow:d,motionEaseInOut:x,borderRadius:ee,menuArrowSize:Ce,menuArrowOffset:H}=P;return{[`${m}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:P.margin,width:Ce,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${d} ${x}, opacity ${d}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ce*.6,height:Ce*.15,backgroundColor:"currentcolor",borderRadius:ee,transition:[`background ${d} ${x}`,`transform ${d} ${x}`,`top ${d} ${x}`,`color ${d} ${x}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${H})`},"&::after":{transform:`rotate(-45deg) translateY(${H})`}}}}},Ht=P=>{const{antCls:m,componentCls:d,fontSize:x,motionDurationSlow:ee,motionDurationMid:Ce,motionEaseInOut:H,paddingXS:ne,padding:Ge,colorSplit:xe,lineWidth:be,zIndexPopup:qe,borderRadiusLG:Et,subMenuItemBorderRadius:me,menuArrowSize:pt,menuArrowOffset:lt,lineType:Me,menuPanelMaskInset:Pe,groupTitleLineHeight:gt,groupTitleFontSize:zt}=P;return[{"":{[`${d}`]:Object.assign(Object.assign({},(0,je.dF)()),{"&-hidden":{display:"none"}})},[`${d}-submenu-hidden`]:{display:"none"}},{[d]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,je.Wf)(P)),(0,je.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:x,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ee} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${d}-item`]:{flex:"none"}},[`${d}-item, ${d}-submenu, ${d}-submenu-title`]:{borderRadius:P.itemBorderRadius},[`${d}-item-group-title`]:{padding:`${ne}px ${Ge}px`,fontSize:zt,lineHeight:gt,transition:`all ${ee}`},[`&-horizontal ${d}-submenu`]:{transition:[`border-color ${ee} ${H}`,`background ${ee} ${H}`].join(",")},[`${d}-submenu, ${d}-submenu-inline`]:{transition:[`border-color ${ee} ${H}`,`background ${ee} ${H}`,`padding ${Ce} ${H}`].join(",")},[`${d}-submenu ${d}-sub`]:{cursor:"initial",transition:[`background ${ee} ${H}`,`padding ${ee} ${H}`].join(",")},[`${d}-title-content`]:{transition:`color ${ee}`},[`${d}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${d}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:xe,borderStyle:Me,borderWidth:0,borderTopWidth:be,marginBlock:be,padding:0,"&-dashed":{borderStyle:"dashed"}}}),It(P)),{[`${d}-item-group`]:{[`${d}-item-group-list`]:{margin:0,padding:0,[`${d}-item, ${d}-submenu-title`]:{paddingInline:`${x*2}px ${Ge}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:qe,borderRadius:Et,boxShadow:"none",transformOrigin:"0 0",[`&${d}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Pe}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Pe},"\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:P.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:P.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:P.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:P.paddingXS},[`> ${d}`]:Object.assign(Object.assign(Object.assign({borderRadius:Et},It(P)),Tt(P)),{[`${d}-item, ${d}-submenu > ${d}-submenu-title`]:{borderRadius:me},[`${d}-submenu-title::after`]:{transition:`transform ${ee} ${H}`}})}}),Tt(P)),{[`&-inline-collapsed ${d}-submenu-arrow,
|
|
|
&-inline ${d}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${lt})`},"&::after":{transform:`rotate(45deg) translateX(-${lt})`}},[`${d}-submenu-open${d}-submenu-inline > ${d}-submenu-title > ${d}-submenu-arrow`]:{transform:`translateY(-${pt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${lt})`},"&::before":{transform:`rotate(45deg) translateX(${lt})`}}})},{[`${m}-layout-header`]:{[d]:{lineHeight:"inherit"}}}]};var pr=(P,m)=>(0,rt.Z)("Menu",x=>{if(m===!1)return[];const{colorBgElevated:ee,colorPrimary:Ce,colorTextLightSolid:H,controlHeightLG:ne,fontSize:Ge,darkItemColor:xe,darkDangerItemColor:be,darkItemBg:qe,darkSubMenuItemBg:Et,darkItemSelectedColor:me,darkItemSelectedBg:pt,darkDangerItemSelectedBg:lt,darkItemHoverBg:Me,darkGroupTitleColor:Pe,darkItemHoverColor:gt,darkItemDisabledColor:zt,darkDangerItemHoverColor:Ut,darkDangerItemSelectedColor:ir,darkDangerItemActiveBg:Dr}=x,mr=Ge/7*5,Mr=(0,De.TS)(x,{menuArrowSize:mr,menuHorizontalHeight:ne*1.15,menuArrowOffset:`${mr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:ee}),Lr=(0,De.TS)(Mr,{itemColor:xe,itemHoverColor:gt,groupTitleColor:Pe,itemSelectedColor:me,itemBg:qe,popupBg:qe,subMenuItemBg:Et,itemActiveBg:"transparent",itemSelectedBg:pt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Me,itemDisabledColor:zt,dangerItemColor:be,dangerItemHoverColor:Ut,dangerItemSelectedColor:ir,dangerItemActiveBg:Dr,dangerItemSelectedBg:lt,menuSubMenuBg:Et,horizontalItemSelectedColor:H,horizontalItemSelectedBg:Ce});return[Ht(Mr),He(Mr),ct(Mr),At(Mr,"light"),At(Lr,"dark"),Le(Mr),(0,X.Z)(Mr),(0,de.oN)(Mr,"slide-up"),(0,de.oN)(Mr,"slide-down"),(0,L._y)(Mr,"zoom-big")]},x=>{const{colorPrimary:ee,colorError:Ce,colorTextDisabled:H,colorErrorBg:ne,colorText:Ge,colorTextDescription:xe,colorBgContainer:be,colorFillAlter:qe,colorFillContent:Et,lineWidth:me,lineWidthBold:pt,controlItemBgActive:lt,colorBgTextHover:Me,controlHeightLG:Pe,lineHeight:gt,colorBgElevated:zt,marginXXS:Ut,padding:ir,fontSize:Dr,controlHeightSM:mr,fontSizeLG:Mr,colorTextLightSolid:Lr,colorErrorHover:vr}=x,ur=new Be.C(Lr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:x.zIndexPopupBase+50,radiusItem:x.borderRadiusLG,itemBorderRadius:x.borderRadiusLG,radiusSubMenuItem:x.borderRadiusSM,subMenuItemBorderRadius:x.borderRadiusSM,colorItemText:Ge,itemColor:Ge,colorItemTextHover:Ge,itemHoverColor:Ge,colorItemTextHoverHorizontal:ee,horizontalItemHoverColor:ee,colorGroupTitle:xe,groupTitleColor:xe,colorItemTextSelected:ee,itemSelectedColor:ee,colorItemTextSelectedHorizontal:ee,horizontalItemSelectedColor:ee,colorItemBg:be,itemBg:be,colorItemBgHover:Me,itemHoverBg:Me,colorItemBgActive:Et,itemActiveBg:lt,colorSubItemBg:qe,subMenuItemBg:qe,colorItemBgSelected:lt,itemSelectedBg:lt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:pt,activeBarHeight:pt,colorActiveBarBorderSize:me,activeBarBorderWidth:me,colorItemTextDisabled:H,itemDisabledColor:H,colorDangerItemText:Ce,dangerItemColor:Ce,colorDangerItemTextHover:Ce,dangerItemHoverColor:Ce,colorDangerItemTextSelected:Ce,dangerItemSelectedColor:Ce,colorDangerItemBgActive:ne,dangerItemActiveBg:ne,colorDangerItemBgSelected:ne,dangerItemSelectedBg:ne,itemMarginInline:x.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Pe,groupTitleLineHeight:gt,collapsedWidth:Pe*2,popupBg:zt,itemMarginBlock:Ut,itemPaddingInline:ir,horizontalLineHeight:`${Pe*1.15}px`,iconSize:Dr,iconMarginInlineEnd:mr-Dr,collapsedIconSize:Mr,groupTitleFontSize:Dr,darkItemDisabledColor:new Be.C(Lr).setAlpha(.25).toRgbString(),darkItemColor:ur,darkDangerItemColor:Ce,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Lr,darkItemSelectedBg:ee,darkDangerItemSelectedBg:Ce,darkItemHoverBg:"transparent",darkGroupTitleColor:ur,darkItemHoverColor:Lr,darkDangerItemHoverColor:vr,darkDangerItemSelectedColor:Lr,darkDangerItemActiveBg:Ce}},{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"]]})(P),sr=function(P,m){var d={};for(var x in P)Object.prototype.hasOwnProperty.call(P,x)&&m.indexOf(x)<0&&(d[x]=P[x]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,x=Object.getOwnPropertySymbols(P);ee<x.length;ee++)m.indexOf(x[ee])<0&&Object.prototype.propertyIsEnumerable.call(P,x[ee])&&(d[x[ee]]=P[x[ee]]);return d},fr=(0,ue.forwardRef)((P,m)=>{var d,x;const ee=ue.useContext(j.Z),Ce=ee||{},{getPrefixCls:H,getPopupContainer:ne,direction:Ge,menu:xe}=ue.useContext(V.E_),be=H(),{prefixCls:qe,className:Et,style:me,theme:pt="light",expandIcon:lt,_internalDisableMenuItemTitleTooltip:Me,inlineCollapsed:Pe,siderCollapsed:gt,items:zt,children:Ut,rootClassName:ir,mode:Dr,selectable:mr,onClick:Mr,overflowedIndicatorPopupClassName:Lr}=P,vr=sr(P,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ur=(0,z.Z)(vr,["collapsedWidth"]),$r=Oe(zt)||Ut;(d=Ce.validator)===null||d===void 0||d.call(Ce,{mode:Dr});const cn=(0,J.useEvent)(function(){var Xi;Mr==null||Mr.apply(void 0,arguments),(Xi=Ce.onClick)===null||Xi===void 0||Xi.call(Ce)}),Sn=Ce.mode||Dr,nn=mr!=null?mr:Ce.selectable,Bn=ue.useMemo(()=>gt!==void 0?gt:Pe,[Pe,gt]),ri={horizontal:{motionName:`${be}-slide-up`},inline:(0,W.Z)(be),other:{motionName:`${be}-zoom-big`}},Er=H("menu",qe||Ce.prefixCls),[ni,Li]=pr(Er,!ee),oi=te()(`${Er}-${pt}`,xe==null?void 0:xe.className,Et);let Ti;if(typeof lt=="function")Ti=lt;else if(lt===null||lt===!1)Ti=null;else if(Ce.expandIcon===null||Ce.expandIcon===!1)Ti=null;else{const Xi=lt!=null?lt:Ce.expandIcon;Ti=(0,_.Tm)(Xi,{className:te()(`${Er}-submenu-expand-icon`,(0,_.l$)(Xi)?(x=Xi.props)===null||x===void 0?void 0:x.className:"")})}const Ui=ue.useMemo(()=>({prefixCls:Er,inlineCollapsed:Bn||!1,direction:Ge,firstLevel:!0,theme:pt,mode:Sn,disableMenuItemTitleTooltip:Me}),[Er,Bn,Ge,Me,pt]);return ni(ue.createElement(j.Z.Provider,{value:null},ue.createElement(Q.Provider,{value:Ui},ue.createElement(pe.ZP,Object.assign({getPopupContainer:ne,overflowedIndicator:ue.createElement(G.Z,null),overflowedIndicatorPopupClassName:te()(Er,`${Er}-${pt}`,Lr),mode:Sn,selectable:nn,onClick:cn},ur,{inlineCollapsed:Bn,style:Object.assign(Object.assign({},xe==null?void 0:xe.style),me),className:oi,prefixCls:Er,direction:Ge,defaultMotions:ri,expandIcon:Ti,ref:m,rootClassName:te()(ir,Li)}),$r))))});const k=(0,ue.forwardRef)((P,m)=>{const d=(0,ue.useRef)(null),x=ue.useContext(R.D);return(0,ue.useImperativeHandle)(m,()=>({menu:d.current,focus:ee=>{var Ce;(Ce=d.current)===null||Ce===void 0||Ce.focus(ee)}})),ue.createElement(fr,Object.assign({ref:d},P,x))});k.Item=Y,k.SubMenu=ce,k.Divider=E,k.ItemGroup=pe.BW;var nt=k},58421:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return Ce}});var pe=w(14809),ue=w(59301),R={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=R,te=w(7657),V=function(ne,Ge){return ue.createElement(te.Z,(0,pe.Z)({},ne,{ref:Ge,icon:Ne}))},B=ue.forwardRef(V),f=B,E=w(49198),h=w(33853),z=w(38819),S=w(92310),_=w.n(S),N=w(4635),Q=w(20439),I=w(99153),Y=w(84851),K=w(19257),ce=w(93046),G=w(26112),J={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},W=J,j=w(91735),se=function(H){(0,K.Z)(Ge,H);var ne=(0,ce.Z)(Ge);function Ge(){var xe;(0,I.Z)(this,Ge);for(var be=arguments.length,qe=new Array(be),Et=0;Et<be;Et++)qe[Et]=arguments[Et];return xe=ne.call.apply(ne,[this].concat(qe)),xe.state={goInputText:""},xe.getValidValue=function(){var me=xe.state.goInputText;return!me||Number.isNaN(me)?void 0:Number(me)},xe.buildOptionText=function(me){return"".concat(me," ").concat(xe.props.locale.items_per_page)},xe.changeSize=function(me){xe.props.changeSize(Number(me))},xe.handleChange=function(me){xe.setState({goInputText:me.target.value})},xe.handleBlur=function(me){var pt=xe.props,lt=pt.goButton,Me=pt.quickGo,Pe=pt.rootPrefixCls,gt=xe.state.goInputText;lt||gt===""||(xe.setState({goInputText:""}),!(me.relatedTarget&&(me.relatedTarget.className.indexOf("".concat(Pe,"-item-link"))>=0||me.relatedTarget.className.indexOf("".concat(Pe,"-item"))>=0))&&Me(xe.getValidValue()))},xe.go=function(me){var pt=xe.state.goInputText;pt!==""&&(me.keyCode===W.ENTER||me.type==="click")&&(xe.setState({goInputText:""}),xe.props.quickGo(xe.getValidValue()))},xe}return(0,Y.Z)(Ge,[{key:"getPageSizeOptions",value:function(){var be=this.props,qe=be.pageSize,Et=be.pageSizeOptions;return Et.some(function(me){return me.toString()===qe.toString()})?Et:Et.concat([qe.toString()]).sort(function(me,pt){var lt=Number.isNaN(Number(me))?0:Number(me),Me=Number.isNaN(Number(pt))?0:Number(pt);return lt-Me})}},{key:"render",value:function(){var be=this,qe=this.props,Et=qe.pageSize,me=qe.locale,pt=qe.rootPrefixCls,lt=qe.changeSize,Me=qe.quickGo,Pe=qe.goButton,gt=qe.selectComponentClass,zt=qe.buildOptionText,Ut=qe.selectPrefixCls,ir=qe.disabled,Dr=this.state.goInputText,mr="".concat(pt,"-options"),Mr=gt,Lr=null,vr=null,ur=null;if(!lt&&!Me)return null;var $r=this.getPageSizeOptions();if(lt&&Mr){var cn=$r.map(function(Sn,nn){return ue.createElement(Mr.Option,{key:nn,value:Sn.toString()},(zt||be.buildOptionText)(Sn))});Lr=ue.createElement(Mr,{disabled:ir,prefixCls:Ut,showSearch:!1,className:"".concat(mr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Et||$r[0]).toString(),onChange:this.changeSize,getPopupContainer:function(nn){return nn.parentNode},"aria-label":me.page_size,defaultOpen:!1},cn)}return Me&&(Pe&&(ur=typeof Pe=="boolean"?ue.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:ir,className:"".concat(mr,"-quick-jumper-button")},me.jump_to_confirm):ue.createElement("span",{onClick:this.go,onKeyUp:this.go},Pe)),vr=ue.createElement("div",{className:"".concat(mr,"-quick-jumper")},me.jump_to,ue.createElement("input",{disabled:ir,type:"text",value:Dr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":me.page}),me.page,ur)),ue.createElement("li",{className:"".concat(mr)},Lr,vr)}}]),Ge}(ue.Component);se.defaultProps={pageSizeOptions:["10","20","50","100"]};var he=se,Oe=function(ne){var Ge,xe=ne.rootPrefixCls,be=ne.page,qe=ne.active,Et=ne.className,me=ne.showTitle,pt=ne.onClick,lt=ne.onKeyPress,Me=ne.itemRender,Pe="".concat(xe,"-item"),gt=_()(Pe,"".concat(Pe,"-").concat(be),(Ge={},(0,N.Z)(Ge,"".concat(Pe,"-active"),qe),(0,N.Z)(Ge,"".concat(Pe,"-disabled"),!be),(0,N.Z)(Ge,ne.className,Et),Ge)),zt=function(){pt(be)},Ut=function(mr){lt(mr,pt,be)},ir=Me(be,"page",ue.createElement("a",{rel:"nofollow"},be));return ir?ue.createElement("li",{title:me?be.toString():null,className:gt,onClick:zt,onKeyPress:Ut,tabIndex:0},ir):null},Be=Oe;function je(){}function X(H){var ne=Number(H);return typeof ne=="number"&&!Number.isNaN(ne)&&isFinite(ne)&&Math.floor(ne)===ne}var de=function(ne,Ge,xe){return xe};function L(H,ne,Ge){var xe=typeof H=="undefined"?ne.pageSize:H;return Math.floor((Ge.total-1)/xe)+1}var rt=function(H){(0,K.Z)(Ge,H);var ne=(0,ce.Z)(Ge);function Ge(xe){var be;(0,I.Z)(this,Ge),be=ne.call(this,xe),be.paginationNode=ue.createRef(),be.getJumpPrevPage=function(){return Math.max(1,be.state.current-(be.props.showLessItems?3:5))},be.getJumpNextPage=function(){return Math.min(L(void 0,be.state,be.props),be.state.current+(be.props.showLessItems?3:5))},be.getItemIcon=function(lt,Me){var Pe=be.props.prefixCls,gt=lt||ue.createElement("button",{type:"button","aria-label":Me,className:"".concat(Pe,"-item-link")});return typeof lt=="function"&&(gt=ue.createElement(lt,(0,Q.Z)({},be.props))),gt},be.isValid=function(lt){var Me=be.props.total;return X(lt)&<!==be.state.current&&X(Me)&&Me>0},be.shouldDisplayQuickJumper=function(){var lt=be.props,Me=lt.showQuickJumper,Pe=lt.total,gt=be.state.pageSize;return Pe<=gt?!1:Me},be.handleKeyDown=function(lt){(lt.keyCode===W.ARROW_UP||lt.keyCode===W.ARROW_DOWN)&<.preventDefault()},be.handleKeyUp=function(lt){var Me=be.getValidValue(lt),Pe=be.state.currentInputValue;Me!==Pe&&be.setState({currentInputValue:Me}),lt.keyCode===W.ENTER?be.handleChange(Me):lt.keyCode===W.ARROW_UP?be.handleChange(Me-1):lt.keyCode===W.ARROW_DOWN&&be.handleChange(Me+1)},be.handleBlur=function(lt){var Me=be.getValidValue(lt);be.handleChange(Me)},be.changePageSize=function(lt){var Me=be.state.current,Pe=L(lt,be.state,be.props);Me=Me>Pe?Pe:Me,Pe===0&&(Me=be.state.current),typeof lt=="number"&&("pageSize"in be.props||be.setState({pageSize:lt}),"current"in be.props||be.setState({current:Me,currentInputValue:Me})),be.props.onShowSizeChange(Me,lt),"onChange"in be.props&&be.props.onChange&&be.props.onChange(Me,lt)},be.handleChange=function(lt){var Me=be.props,Pe=Me.disabled,gt=Me.onChange,zt=be.state,Ut=zt.pageSize,ir=zt.current,Dr=zt.currentInputValue;if(be.isValid(lt)&&!Pe){var mr=L(void 0,be.state,be.props),Mr=lt;return lt>mr?Mr=mr:lt<1&&(Mr=1),"current"in be.props||be.setState({current:Mr}),Mr!==Dr&&be.setState({currentInputValue:Mr}),gt(Mr,Ut),Mr}return ir},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<L(void 0,be.state,be.props)},be.runIfEnter=function(lt,Me){if(lt.key==="Enter"||lt.charCode===13){for(var Pe=arguments.length,gt=new Array(Pe>2?Pe-2:0),zt=2;zt<Pe;zt++)gt[zt-2]=arguments[zt];Me.apply(void 0,gt)}},be.runIfEnterPrev=function(lt){be.runIfEnter(lt,be.prev)},be.runIfEnterNext=function(lt){be.runIfEnter(lt,be.next)},be.runIfEnterJumpPrev=function(lt){be.runIfEnter(lt,be.jumpPrev)},be.runIfEnterJumpNext=function(lt){be.runIfEnter(lt,be.jumpNext)},be.handleGoTO=function(lt){(lt.keyCode===W.ENTER||lt.type==="click")&&be.handleChange(be.state.currentInputValue)},be.renderPrev=function(lt){var Me=be.props,Pe=Me.prevIcon,gt=Me.itemRender,zt=gt(lt,"prev",be.getItemIcon(Pe,"prev page")),Ut=!be.hasPrev();return(0,ue.isValidElement)(zt)?(0,ue.cloneElement)(zt,{disabled:Ut}):zt},be.renderNext=function(lt){var Me=be.props,Pe=Me.nextIcon,gt=Me.itemRender,zt=gt(lt,"next",be.getItemIcon(Pe,"next page")),Ut=!be.hasNext();return(0,ue.isValidElement)(zt)?(0,ue.cloneElement)(zt,{disabled:Ut}):zt};var qe=xe.onChange!==je,Et="current"in xe;Et&&!qe&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var me=xe.defaultCurrent;"current"in xe&&(me=xe.current);var pt=xe.defaultPageSize;return"pageSize"in xe&&(pt=xe.pageSize),me=Math.min(me,L(pt,void 0,xe)),be.state={current:me,currentInputValue:me,pageSize:pt},be}return(0,Y.Z)(Ge,[{key:"componentDidUpdate",value:function(be,qe){var Et=this.props.prefixCls;if(qe.current!==this.state.current&&this.paginationNode.current){var me=this.paginationNode.current.querySelector(".".concat(Et,"-item-").concat(qe.current));if(me&&document.activeElement===me){var pt;me==null||(pt=me.blur)===null||pt===void 0||pt.call(me)}}}},{key:"getValidValue",value:function(be){var qe=be.target.value,Et=L(void 0,this.state,this.props),me=this.state.currentInputValue,pt;return qe===""?pt=qe:Number.isNaN(Number(qe))?pt=me:qe>=Et?pt=Et:pt=Number(qe),pt}},{key:"getShowSizeChanger",value:function(){var be=this.props,qe=be.showSizeChanger,Et=be.total,me=be.totalBoundaryShowSizeChanger;return typeof qe!="undefined"?qe:Et>me}},{key:"render",value:function(){var be=this.props,qe=be.prefixCls,Et=be.className,me=be.style,pt=be.disabled,lt=be.hideOnSinglePage,Me=be.total,Pe=be.locale,gt=be.showQuickJumper,zt=be.showLessItems,Ut=be.showTitle,ir=be.showTotal,Dr=be.simple,mr=be.itemRender,Mr=be.showPrevNextJumpers,Lr=be.jumpPrevIcon,vr=be.jumpNextIcon,ur=be.selectComponentClass,$r=be.selectPrefixCls,cn=be.pageSizeOptions,Sn=this.state,nn=Sn.current,Bn=Sn.pageSize,ri=Sn.currentInputValue;if(lt===!0&&Me<=Bn)return null;var Er=L(void 0,this.state,this.props),ni=[],Li=null,oi=null,Ti=null,Ui=null,Xi=null,Ha=gt&>.goButton,Ji=zt?1:2,pi=nn-1>0?nn-1:0,ki=nn+1<Er?nn+1:Er,Ni=(0,G.Z)(this.props,{aria:!0,data:!0}),ve=ir&&ue.createElement("li",{className:"".concat(qe,"-total-text")},ir(Me,[Me===0?0:(nn-1)*Bn+1,nn*Bn>Me?Me:nn*Bn]));if(Dr){Ha&&(typeof Ha=="boolean"?Xi=ue.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Pe.jump_to_confirm):Xi=ue.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ha),Xi=ue.createElement("li",{title:Ut?"".concat(Pe.jump_to).concat(nn,"/").concat(Er):null,className:"".concat(qe,"-simple-pager")},Xi));var Te=this.renderPrev(pi);return ue.createElement("ul",(0,pe.Z)({className:_()(qe,"".concat(qe,"-simple"),(0,N.Z)({},"".concat(qe,"-disabled"),pt),Et),style:me,ref:this.paginationNode},Ni),ve,Te?ue.createElement("li",{title:Ut?Pe.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:_()("".concat(qe,"-prev"),(0,N.Z)({},"".concat(qe,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Te):null,ue.createElement("li",{title:Ut?"".concat(nn,"/").concat(Er):null,className:"".concat(qe,"-simple-pager")},ue.createElement("input",{type:"text",value:ri,disabled:pt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ue.createElement("span",{className:"".concat(qe,"-slash")},"/"),Er),ue.createElement("li",{title:Ut?Pe.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:_()("".concat(qe,"-next"),(0,N.Z)({},"".concat(qe,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(ki)),Xi)}if(Er<=3+Ji*2){var ke={locale:Pe,rootPrefixCls:qe,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Ut,itemRender:mr};Er||ni.push(ue.createElement(Be,(0,pe.Z)({},ke,{key:"noPager",page:1,className:"".concat(qe,"-item-disabled")})));for(var it=1;it<=Er;it+=1){var $t=nn===it;ni.push(ue.createElement(Be,(0,pe.Z)({},ke,{key:it,page:it,active:$t})))}}else{var Qt=zt?Pe.prev_3:Pe.prev_5,Sr=zt?Pe.next_3:Pe.next_5,dr=mr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Lr,"prev page")),Hr=mr(this.getJumpNextPage(),"jump-next",this.getItemIcon(vr,"next page"));Mr&&(Li=dr?ue.createElement("li",{title:Ut?Qt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:_()("".concat(qe,"-jump-prev"),(0,N.Z)({},"".concat(qe,"-jump-prev-custom-icon"),!!Lr))},dr):null,oi=Hr?ue.createElement("li",{title:Ut?Sr:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:_()("".concat(qe,"-jump-next"),(0,N.Z)({},"".concat(qe,"-jump-next-custom-icon"),!!vr))},Hr):null),Ui=ue.createElement(Be,{locale:Pe,last:!0,rootPrefixCls:qe,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Er,page:Er,active:!1,showTitle:Ut,itemRender:mr}),Ti=ue.createElement(Be,{locale:Pe,rootPrefixCls:qe,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Ut,itemRender:mr});var Wr=Math.max(1,nn-Ji),en=Math.min(nn+Ji,Er);nn-1<=Ji&&(en=1+Ji*2),Er-nn<=Ji&&(Wr=Er-Ji*2);for(var Vr=Wr;Vr<=en;Vr+=1){var jr=nn===Vr;ni.push(ue.createElement(Be,{locale:Pe,rootPrefixCls:qe,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Vr,page:Vr,active:jr,showTitle:Ut,itemRender:mr}))}nn-1>=Ji*2&&nn!==3&&(ni[0]=(0,ue.cloneElement)(ni[0],{className:"".concat(qe,"-item-after-jump-prev")}),ni.unshift(Li)),Er-nn>=Ji*2&&nn!==Er-2&&(ni[ni.length-1]=(0,ue.cloneElement)(ni[ni.length-1],{className:"".concat(qe,"-item-before-jump-next")}),ni.push(oi)),Wr!==1&&ni.unshift(Ti),en!==Er&&ni.push(Ui)}var Yr=!this.hasPrev()||!Er,mn=!this.hasNext()||!Er,tn=this.renderPrev(pi),Dn=this.renderNext(ki);return ue.createElement("ul",(0,pe.Z)({className:_()(qe,Et,(0,N.Z)({},"".concat(qe,"-disabled"),pt)),style:me,ref:this.paginationNode},Ni),ve,tn?ue.createElement("li",{title:Ut?Pe.prev_page:null,onClick:this.prev,tabIndex:Yr?null:0,onKeyPress:this.runIfEnterPrev,className:_()("".concat(qe,"-prev"),(0,N.Z)({},"".concat(qe,"-disabled"),Yr)),"aria-disabled":Yr},tn):null,ni,Dn?ue.createElement("li",{title:Ut?Pe.next_page:null,onClick:this.next,tabIndex:mn?null:0,onKeyPress:this.runIfEnterNext,className:_()("".concat(qe,"-next"),(0,N.Z)({},"".concat(qe,"-disabled"),mn)),"aria-disabled":mn},Dn):null,ue.createElement(he,{disabled:pt,locale:Pe,rootPrefixCls:qe,selectComponentClass:ur,selectPrefixCls:$r,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:nn,pageSize:Bn,pageSizeOptions:cn,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ha}))}}],[{key:"getDerivedStateFromProps",value:function(be,qe){var Et={};if("current"in be&&(Et.current=be.current,be.current!==qe.current&&(Et.currentInputValue=Et.current)),"pageSize"in be&&be.pageSize!==qe.pageSize){var me=qe.current,pt=L(be.pageSize,qe,be);me=me>pt?pt:me,"current"in be||(Et.current=me,Et.currentInputValue=me),Et.pageSize=be.pageSize}return Et}}]),Ge}(ue.Component);rt.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:je,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:je,locale:j.Z,style:{},itemRender:de,totalBoundaryShowSizeChanger:50};var De=rt,we=w(22075),He=w(36355),ge=w(19716),Le=w(8628),fe=w(9763),Ee=w(57809);const At=H=>ue.createElement(Ee.default,Object.assign({},H,{showSearch:!0,size:"small"})),ft=H=>ue.createElement(Ee.default,Object.assign({},H,{showSearch:!0,size:"middle"}));At.Option=Ee.default.Option,ft.Option=Ee.default.Option;var ot=w(9937),ct=w(17313),It=w(83116),Tt=w(37613);const Ht=H=>{const{componentCls:ne}=H;return{[`${ne}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${ne}-item-link`]:{color:H.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${ne}-item-link`]:{color:H.colorTextDisabled,cursor:"not-allowed"}}},[`&${ne}-disabled`]:{cursor:"not-allowed",[`${ne}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:H.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:H.colorBorder,backgroundColor:H.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:H.itemActiveBgDisabled},a:{color:H.itemActiveColorDisabled}}},[`${ne}-item-link`]:{color:H.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${ne}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${ne}-simple-pager`]:{color:H.colorTextDisabled},[`${ne}-jump-prev, ${ne}-jump-next`]:{[`${ne}-item-link-icon`]:{opacity:0},[`${ne}-item-ellipsis`]:{opacity:1}}},[`&${ne}-simple`]:{[`${ne}-prev, ${ne}-next`]:{[`&${ne}-disabled ${ne}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},pr=H=>{const{componentCls:ne}=H;return{[`&${ne}-mini ${ne}-total-text, &${ne}-mini ${ne}-simple-pager`]:{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`},[`&${ne}-mini ${ne}-item`]:{minWidth:H.itemSizeSM,height:H.itemSizeSM,margin:0,lineHeight:`${H.itemSizeSM-2}px`},[`&${ne}-mini:not(${ne}-disabled) ${ne}-item:not(${ne}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:H.colorBgTextHover},"&:active":{backgroundColor:H.colorBgTextActive}},[`&${ne}-mini ${ne}-prev, &${ne}-mini ${ne}-next`]:{minWidth:H.itemSizeSM,height:H.itemSizeSM,margin:0,lineHeight:`${H.itemSizeSM}px`},[`&${ne}-mini:not(${ne}-disabled)`]:{[`${ne}-prev, ${ne}-next`]:{[`&:hover ${ne}-item-link`]:{backgroundColor:H.colorBgTextHover},[`&:active ${ne}-item-link`]:{backgroundColor:H.colorBgTextActive},[`&${ne}-disabled:hover ${ne}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${ne}-mini ${ne}-prev ${ne}-item-link,
|
|
|
&${ne}-mini ${ne}-next ${ne}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`}},[`&${ne}-mini ${ne}-jump-prev, &${ne}-mini ${ne}-jump-next`]:{height:H.itemSizeSM,marginInlineEnd:0,lineHeight:`${H.itemSizeSM}px`},[`&${ne}-mini ${ne}-options`]:{marginInlineStart:H.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:H.miniOptionsSizeChangerTop},"&-quick-jumper":{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,ot.x0)(H)),{width:H.paginationMiniQuickJumperInputWidth,height:H.controlHeightSM})}}}},sr=H=>{const{componentCls:ne}=H;return{[`
|
|
|
&${ne}-simple ${ne}-prev,
|
|
|
&${ne}-simple ${ne}-next
|
|
|
`]:{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`,verticalAlign:"top",[`${ne}-item-link`]:{height:H.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:H.colorBgTextHover},"&:active":{backgroundColor:H.colorBgTextActive},"&::after":{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`}}},[`&${ne}-simple ${ne}-simple-pager`]:{display:"inline-block",height:H.itemSizeSM,marginInlineEnd:H.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:H.marginXS,padding:`0 ${H.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:H.itemInputBg,border:`${H.lineWidth}px ${H.lineType} ${H.colorBorder}`,borderRadius:H.borderRadius,outline:"none",transition:`border-color ${H.motionDurationMid}`,color:"inherit","&:hover":{borderColor:H.colorPrimary},"&:focus":{borderColor:H.colorPrimaryHover,boxShadow:`${H.inputOutlineOffset}px 0 ${H.controlOutlineWidth}px ${H.controlOutline}`},"&[disabled]":{color:H.colorTextDisabled,backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,cursor:"not-allowed"}}}}},Br=H=>{const{componentCls:ne}=H;return{[`${ne}-jump-prev, ${ne}-jump-next`]:{outline:0,[`${ne}-item-container`]:{position:"relative",[`${ne}-item-link-icon`]:{color:H.colorPrimary,fontSize:H.fontSizeSM,opacity:0,transition:`all ${H.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${ne}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:H.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:H.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:H.paginationEllipsisTextIndent,opacity:1,transition:`all ${H.motionDurationMid}`}},"&:hover":{[`${ne}-item-link-icon`]:{opacity:1},[`${ne}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${ne}-prev,
|
|
|
${ne}-jump-prev,
|
|
|
${ne}-jump-next
|
|
|
`]:{marginInlineEnd:H.marginXS},[`
|
|
|
${ne}-prev,
|
|
|
${ne}-next,
|
|
|
${ne}-jump-prev,
|
|
|
${ne}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:H.itemSize,height:H.itemSize,color:H.colorText,fontFamily:H.fontFamily,lineHeight:`${H.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:H.borderRadius,cursor:"pointer",transition:`all ${H.motionDurationMid}`},[`${ne}-prev, ${ne}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:H.colorText,cursor:"pointer",userSelect:"none"},[`${ne}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:H.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${H.lineWidth}px ${H.lineType} transparent`,borderRadius:H.borderRadius,outline:"none",transition:`all ${H.motionDurationMid}`},[`&:hover ${ne}-item-link`]:{backgroundColor:H.colorBgTextHover},[`&:active ${ne}-item-link`]:{backgroundColor:H.colorBgTextActive},[`&${ne}-disabled:hover`]:{[`${ne}-item-link`]:{backgroundColor:"transparent"}}},[`${ne}-slash`]:{marginInlineEnd:H.paginationSlashMarginInlineEnd,marginInlineStart:H.paginationSlashMarginInlineStart},[`${ne}-options`]:{display:"inline-block",marginInlineStart:H.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:H.controlHeight,marginInlineStart:H.marginXS,lineHeight:`${H.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,ot.ik)(H)),{width:H.controlHeightLG*1.25,height:H.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:H.marginXS,marginInlineEnd:H.marginXS})}}}},fr=H=>{const{componentCls:ne}=H;return{[`${ne}-item`]:{display:"inline-block",minWidth:H.itemSize,height:H.itemSize,marginInlineEnd:H.marginXS,fontFamily:H.fontFamily,lineHeight:`${H.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${H.lineWidth}px ${H.lineType} transparent`,borderRadius:H.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${H.paginationItemPaddingInline}px`,color:H.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${ne}-item-active)`]:{"&:hover":{transition:`all ${H.motionDurationMid}`,backgroundColor:H.colorBgTextHover},"&:active":{backgroundColor:H.colorBgTextActive}},"&-active":{fontWeight:H.fontWeightStrong,backgroundColor:H.itemActiveBg,borderColor:H.colorPrimary,a:{color:H.colorPrimary},"&:hover":{borderColor:H.colorPrimaryHover},"&:hover a":{color:H.colorPrimaryHover}}}}},k=H=>{const{componentCls:ne}=H;return{[ne]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ct.Wf)(H)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${ne}-total-text`]:{display:"inline-block",height:H.itemSize,marginInlineEnd:H.marginXS,lineHeight:`${H.itemSize-2}px`,verticalAlign:"middle"}}),fr(H)),Br(H)),sr(H)),pr(H)),Ht(H)),{[`@media only screen and (max-width: ${H.screenLG}px)`]:{[`${ne}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${H.screenSM}px)`]:{[`${ne}-options`]:{display:"none"}}}),[`&${H.componentCls}-rtl`]:{direction:"rtl"}}},nt=H=>{const{componentCls:ne}=H;return{[`${ne}${ne}-disabled:not(${ne}-mini)`]:{"&, &:hover":{[`${ne}-item-link`]:{borderColor:H.colorBorder}},"&:focus-visible":{[`${ne}-item-link`]:{borderColor:H.colorBorder}},[`${ne}-item, ${ne}-item-link`]:{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,[`&:hover:not(${ne}-item-active)`]:{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,a:{color:H.colorTextDisabled}},[`&${ne}-item-active`]:{backgroundColor:H.itemActiveBgDisabled}},[`${ne}-prev, ${ne}-next`]:{"&:hover button":{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,color:H.colorTextDisabled},[`${ne}-item-link`]:{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder}}},[`${ne}:not(${ne}-mini)`]:{[`${ne}-prev, ${ne}-next`]:{"&:hover button":{borderColor:H.colorPrimaryHover,backgroundColor:H.itemBg},[`${ne}-item-link`]:{backgroundColor:H.itemLinkBg,borderColor:H.colorBorder},[`&:hover ${ne}-item-link`]:{borderColor:H.colorPrimary,backgroundColor:H.itemBg,color:H.colorPrimary},[`&${ne}-disabled`]:{[`${ne}-item-link`]:{borderColor:H.colorBorder,color:H.colorTextDisabled}}},[`${ne}-item`]:{backgroundColor:H.itemBg,border:`${H.lineWidth}px ${H.lineType} ${H.colorBorder}`,[`&:hover:not(${ne}-item-active)`]:{borderColor:H.colorPrimary,backgroundColor:H.itemBg,a:{color:H.colorPrimary}},"&-active":{borderColor:H.colorPrimary}}}}},P=H=>{const{componentCls:ne}=H;return{[`${ne}:not(${ne}-disabled)`]:{[`${ne}-item`]:Object.assign({},(0,ct.Qy)(H)),[`${ne}-jump-prev, ${ne}-jump-next`]:{"&:focus-visible":Object.assign({[`${ne}-item-link-icon`]:{opacity:1},[`${ne}-item-ellipsis`]:{opacity:0}},(0,ct.oN)(H))},[`${ne}-prev, ${ne}-next`]:{[`&:focus-visible ${ne}-item-link`]:Object.assign({},(0,ct.oN)(H))}}}};var m=(0,It.Z)("Pagination",H=>{const ne=(0,Tt.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,ot.e5)(H),(0,ot.TM)(H));return[k(ne),P(ne),H.wireframe&&nt(ne)]},H=>({itemBg:H.colorBgContainer,itemSize:H.controlHeight,itemSizeSM:H.controlHeightSM,itemActiveBg:H.colorBgContainer,itemLinkBg:H.colorBgContainer,itemActiveColorDisabled:H.colorTextDisabled,itemActiveBgDisabled:H.controlItemBgActiveDisabled,itemInputBg:H.colorBgContainer,miniOptionsSizeChangerTop:0})),d=function(H,ne){var Ge={};for(var xe in H)Object.prototype.hasOwnProperty.call(H,xe)&&ne.indexOf(xe)<0&&(Ge[xe]=H[xe]);if(H!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,xe=Object.getOwnPropertySymbols(H);be<xe.length;be++)ne.indexOf(xe[be])<0&&Object.prototype.propertyIsEnumerable.call(H,xe[be])&&(Ge[xe[be]]=H[xe[be]]);return Ge},ee=H=>{const{prefixCls:ne,selectPrefixCls:Ge,className:xe,rootClassName:be,style:qe,size:Et,locale:me,selectComponentClass:pt,responsive:lt,showSizeChanger:Me}=H,Pe=d(H,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:gt}=(0,Le.Z)(lt),{getPrefixCls:zt,direction:Ut,pagination:ir={}}=ue.useContext(He.E_),Dr=zt("pagination",ne),[mr,Mr]=m(Dr),Lr=Me!=null?Me:ir.showSizeChanger,vr=ue.useMemo(()=>{const Er=ue.createElement("span",{className:`${Dr}-item-ellipsis`},"\u2022\u2022\u2022"),ni=ue.createElement("button",{className:`${Dr}-item-link`,type:"button",tabIndex:-1},Ut==="rtl"?ue.createElement(z.Z,null):ue.createElement(h.Z,null)),Li=ue.createElement("button",{className:`${Dr}-item-link`,type:"button",tabIndex:-1},Ut==="rtl"?ue.createElement(h.Z,null):ue.createElement(z.Z,null)),oi=ue.createElement("a",{className:`${Dr}-item-link`},ue.createElement("div",{className:`${Dr}-item-container`},Ut==="rtl"?ue.createElement(E.Z,{className:`${Dr}-item-link-icon`}):ue.createElement(f,{className:`${Dr}-item-link-icon`}),Er)),Ti=ue.createElement("a",{className:`${Dr}-item-link`},ue.createElement("div",{className:`${Dr}-item-container`},Ut==="rtl"?ue.createElement(f,{className:`${Dr}-item-link-icon`}):ue.createElement(E.Z,{className:`${Dr}-item-link-icon`}),Er));return{prevIcon:ni,nextIcon:Li,jumpPrevIcon:oi,jumpNextIcon:Ti}},[Ut,Dr]),[ur]=(0,fe.Z)("Pagination",we.Z),$r=Object.assign(Object.assign({},ur),me),cn=(0,ge.Z)(Et),Sn=cn==="small"||!!(gt&&!cn&<),nn=zt("select",Ge),Bn=_()({[`${Dr}-mini`]:Sn,[`${Dr}-rtl`]:Ut==="rtl"},ir==null?void 0:ir.className,xe,be,Mr),ri=Object.assign(Object.assign({},ir==null?void 0:ir.style),qe);return mr(ue.createElement(De,Object.assign({},vr,Pe,{style:ri,prefixCls:Dr,selectPrefixCls:nn,className:Bn,selectComponentClass:pt||(Sn?At:ft),locale:$r,showSizeChanger:Lr})))},Ce=ee},5112:function(bn,Xt,w){"use strict";w.d(Xt,{ZP:function(){return Le}});var pe=w(92310),ue=w.n(pe),R=w(18929),Ne=w(26112),te=w(59301),V=w(36355),B=w(19716);const f=te.createContext(null),E=f.Provider;var h=f;const z=te.createContext(null),S=z.Provider;var _=w(5630),N=w(8654),Q=w(1684),I=w(32441),Y=w(17313),K=w(83116),ce=w(37613);const G=fe=>{const{componentCls:Ee,antCls:At}=fe,ft=`${Ee}-group`;return{[ft]:Object.assign(Object.assign({},(0,Y.Wf)(fe)),{display:"inline-block",fontSize:0,[`&${ft}-rtl`]:{direction:"rtl"},[`${At}-badge ${At}-badge-count`]:{zIndex:1},[`> ${At}-badge:not(:first-child) > ${At}-button-wrapper`]:{borderInlineStart:"none"}})}},J=fe=>{const{componentCls:Ee,wrapperMarginInlineEnd:At,colorPrimary:ft,radioSize:ot,motionDurationSlow:ct,motionDurationMid:It,motionEaseInOutCirc:Tt,colorBgContainer:Ht,colorBorder:pr,lineWidth:sr,dotSize:Br,colorBgContainerDisabled:fr,colorTextDisabled:k,paddingXS:nt,dotColorDisabled:P,lineType:m,radioDotDisabledSize:d,wireframe:x,colorWhite:ee}=fe,Ce=`${Ee}-inner`;return{[`${Ee}-wrapper`]:Object.assign(Object.assign({},(0,Y.Wf)(fe)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:At,cursor:"pointer",[`&${Ee}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:fe.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${Ee}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${sr}px ${m} ${ft}`,borderRadius:"50%",visibility:"hidden",content:'""'},[Ee]:Object.assign(Object.assign({},(0,Y.Wf)(fe)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Ee}-wrapper:hover &,
|
|
|
&:hover ${Ce}`]:{borderColor:ft},[`${Ee}-input:focus-visible + ${Ce}`]:Object.assign({},(0,Y.oN)(fe)),[`${Ee}:hover::after, ${Ee}-wrapper:hover &::after`]:{visibility:"visible"},[`${Ee}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:ot,height:ot,marginBlockStart:ot/-2,marginInlineStart:ot/-2,backgroundColor:x?ft:ee,borderBlockStart:0,borderInlineStart:0,borderRadius:ot,transform:"scale(0)",opacity:0,transition:`all ${ct} ${Tt}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:ot,height:ot,backgroundColor:Ht,borderColor:pr,borderStyle:"solid",borderWidth:sr,borderRadius:"50%",transition:`all ${It}`},[`${Ee}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Ee}-checked`]:{[Ce]:{borderColor:ft,backgroundColor:x?Ht:ft,"&::after":{transform:`scale(${Br/ot})`,opacity:1,transition:`all ${ct} ${Tt}`}}},[`${Ee}-disabled`]:{cursor:"not-allowed",[Ce]:{backgroundColor:fr,borderColor:pr,cursor:"not-allowed","&::after":{backgroundColor:P}},[`${Ee}-input`]:{cursor:"not-allowed"},[`${Ee}-disabled + span`]:{color:k,cursor:"not-allowed"},[`&${Ee}-checked`]:{[Ce]:{"&::after":{transform:`scale(${d/ot})`}}}},[`span${Ee} + *`]:{paddingInlineStart:nt,paddingInlineEnd:nt}})}},W=fe=>{const{buttonColor:Ee,controlHeight:At,componentCls:ft,lineWidth:ot,lineType:ct,colorBorder:It,motionDurationSlow:Tt,motionDurationMid:Ht,buttonPaddingInline:pr,fontSize:sr,buttonBg:Br,fontSizeLG:fr,controlHeightLG:k,controlHeightSM:nt,paddingXS:P,borderRadius:m,borderRadiusSM:d,borderRadiusLG:x,buttonCheckedBg:ee,buttonSolidCheckedColor:Ce,colorTextDisabled:H,colorBgContainerDisabled:ne,buttonCheckedBgDisabled:Ge,buttonCheckedColorDisabled:xe,colorPrimary:be,colorPrimaryHover:qe,colorPrimaryActive:Et,buttonSolidCheckedBg:me,buttonSolidCheckedHoverBg:pt,buttonSolidCheckedActiveBg:lt}=fe;return{[`${ft}-button-wrapper`]:{position:"relative",display:"inline-block",height:At,margin:0,paddingInline:pr,paddingBlock:0,color:Ee,fontSize:sr,lineHeight:`${At-ot*2}px`,background:Br,border:`${ot}px ${ct} ${It}`,borderBlockStartWidth:ot+.02,borderInlineStartWidth:0,borderInlineEndWidth:ot,cursor:"pointer",transition:[`color ${Ht}`,`background ${Ht}`,`box-shadow ${Ht}`].join(","),a:{color:Ee},[`> ${ft}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-ot,insetInlineStart:-ot,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:ot,paddingInline:0,backgroundColor:It,transition:`background-color ${Tt}`,content:'""'}},"&:first-child":{borderInlineStart:`${ot}px ${ct} ${It}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${ft}-group-large &`]:{height:k,fontSize:fr,lineHeight:`${k-ot*2}px`,"&:first-child":{borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x}},[`${ft}-group-small &`]:{height:nt,paddingInline:P-ot,paddingBlock:0,lineHeight:`${nt-ot*2}px`,"&:first-child":{borderStartStartRadius:d,borderEndStartRadius:d},"&:last-child":{borderStartEndRadius:d,borderEndEndRadius:d}},"&:hover":{position:"relative",color:be},"&:has(:focus-visible)":Object.assign({},(0,Y.oN)(fe)),[`${ft}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${ft}-button-wrapper-disabled)`]:{zIndex:1,color:be,background:ee,borderColor:be,"&::before":{backgroundColor:be},"&:first-child":{borderColor:be},"&:hover":{color:qe,borderColor:qe,"&::before":{backgroundColor:qe}},"&:active":{color:Et,borderColor:Et,"&::before":{backgroundColor:Et}}},[`${ft}-group-solid &-checked:not(${ft}-button-wrapper-disabled)`]:{color:Ce,background:me,borderColor:me,"&:hover":{color:Ce,background:pt,borderColor:pt},"&:active":{color:Ce,background:lt,borderColor:lt}},"&-disabled":{color:H,backgroundColor:ne,borderColor:It,cursor:"not-allowed","&:first-child, &:hover":{color:H,backgroundColor:ne,borderColor:It}},[`&-disabled${ft}-button-wrapper-checked`]:{color:xe,backgroundColor:Ge,borderColor:It,boxShadow:"none"}}}},j=fe=>fe-4*2;var se=(0,K.Z)("Radio",fe=>{const{controlOutline:Ee,controlOutlineWidth:At,radioSize:ft}=fe,ot=`0 0 0 ${At}px ${Ee}`,ct=ot,It=j(ft),Tt=(0,ce.TS)(fe,{radioDotDisabledSize:It,radioFocusShadow:ot,radioButtonFocusShadow:ct});return[G(Tt),J(Tt),W(Tt)]},fe=>{const{wireframe:Ee,padding:At,marginXS:ft,lineWidth:ot,fontSizeLG:ct,colorText:It,colorBgContainer:Tt,colorTextDisabled:Ht,controlItemBgActiveDisabled:pr,colorTextLightSolid:sr,colorPrimary:Br,colorPrimaryHover:fr,colorPrimaryActive:k}=fe,nt=4,P=ct,m=Ee?j(P):P-(nt+ot)*2;return{radioSize:P,dotSize:m,dotColorDisabled:Ht,buttonSolidCheckedColor:sr,buttonSolidCheckedBg:Br,buttonSolidCheckedHoverBg:fr,buttonSolidCheckedActiveBg:k,buttonBg:Tt,buttonCheckedBg:Tt,buttonColor:It,buttonCheckedBgDisabled:pr,buttonCheckedColorDisabled:Ht,buttonPaddingInline:At-ot,wrapperMarginInlineEnd:ft}}),he=w(14088),Oe=w(4572),Be=function(fe,Ee){var At={};for(var ft in fe)Object.prototype.hasOwnProperty.call(fe,ft)&&Ee.indexOf(ft)<0&&(At[ft]=fe[ft]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,ft=Object.getOwnPropertySymbols(fe);ot<ft.length;ot++)Ee.indexOf(ft[ot])<0&&Object.prototype.propertyIsEnumerable.call(fe,ft[ot])&&(At[ft[ot]]=fe[ft[ot]]);return At};const je=(fe,Ee)=>{var At,ft;const ot=te.useContext(h),ct=te.useContext(z),{getPrefixCls:It,direction:Tt,radio:Ht}=te.useContext(V.E_),pr=te.useRef(null),sr=(0,N.sQ)(Ee,pr),{isFormItemInput:Br}=te.useContext(I.aM),fr=Et=>{var me,pt;(me=fe.onChange)===null||me===void 0||me.call(fe,Et),(pt=ot==null?void 0:ot.onChange)===null||pt===void 0||pt.call(ot,Et)},{prefixCls:k,className:nt,rootClassName:P,children:m,style:d}=fe,x=Be(fe,["prefixCls","className","rootClassName","children","style"]),ee=It("radio",k),Ce=((ot==null?void 0:ot.optionType)||ct)==="button",H=Ce?`${ee}-button`:ee,[ne,Ge]=se(ee),xe=Object.assign({},x),be=te.useContext(Q.Z);ot&&(xe.name=ot.name,xe.onChange=fr,xe.checked=fe.value===ot.value,xe.disabled=(At=xe.disabled)!==null&&At!==void 0?At:ot.disabled),xe.disabled=(ft=xe.disabled)!==null&&ft!==void 0?ft:be;const qe=ue()(`${H}-wrapper`,{[`${H}-wrapper-checked`]:xe.checked,[`${H}-wrapper-disabled`]:xe.disabled,[`${H}-wrapper-rtl`]:Tt==="rtl",[`${H}-wrapper-in-form-item`]:Br},Ht==null?void 0:Ht.className,nt,P,Ge);return ne(te.createElement(he.Z,{component:"Radio",disabled:xe.disabled},te.createElement("label",{className:qe,style:Object.assign(Object.assign({},Ht==null?void 0:Ht.style),d),onMouseEnter:fe.onMouseEnter,onMouseLeave:fe.onMouseLeave},te.createElement(_.Z,Object.assign({},xe,{className:ue()(xe.className,!Ce&&Oe.A),type:"radio",prefixCls:H,ref:sr})),m!==void 0?te.createElement("span",null,m):null)))};var de=te.forwardRef(je);const L=te.forwardRef((fe,Ee)=>{const{getPrefixCls:At,direction:ft}=te.useContext(V.E_),[ot,ct]=(0,R.Z)(fe.defaultValue,{value:fe.value}),It=me=>{const pt=ot,lt=me.target.value;"value"in fe||ct(lt);const{onChange:Me}=fe;Me&<!==pt&&Me(me)},{prefixCls:Tt,className:Ht,rootClassName:pr,options:sr,buttonStyle:Br="outline",disabled:fr,children:k,size:nt,style:P,id:m,onMouseEnter:d,onMouseLeave:x,onFocus:ee,onBlur:Ce}=fe,H=At("radio",Tt),ne=`${H}-group`,[Ge,xe]=se(H);let be=k;sr&&sr.length>0&&(be=sr.map(me=>typeof me=="string"||typeof me=="number"?te.createElement(de,{key:me.toString(),prefixCls:H,disabled:fr,value:me,checked:ot===me},me):te.createElement(de,{key:`radio-group-value-options-${me.value}`,prefixCls:H,disabled:me.disabled||fr,value:me.value,checked:ot===me.value,title:me.title,style:me.style},me.label)));const qe=(0,B.Z)(nt),Et=ue()(ne,`${ne}-${Br}`,{[`${ne}-${qe}`]:qe,[`${ne}-rtl`]:ft==="rtl"},Ht,pr,xe);return Ge(te.createElement("div",Object.assign({},(0,Ne.Z)(fe,{aria:!0,data:!0}),{className:Et,style:P,onMouseEnter:d,onMouseLeave:x,onFocus:ee,onBlur:Ce,id:m,ref:Ee}),te.createElement(E,{value:{onChange:It,value:ot,disabled:fe.disabled,name:fe.name,optionType:fe.optionType}},be)))});var rt=te.memo(L),De=function(fe,Ee){var At={};for(var ft in fe)Object.prototype.hasOwnProperty.call(fe,ft)&&Ee.indexOf(ft)<0&&(At[ft]=fe[ft]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,ft=Object.getOwnPropertySymbols(fe);ot<ft.length;ot++)Ee.indexOf(ft[ot])<0&&Object.prototype.propertyIsEnumerable.call(fe,ft[ot])&&(At[ft[ot]]=fe[ft[ot]]);return At};const we=(fe,Ee)=>{const{getPrefixCls:At}=te.useContext(V.E_),{prefixCls:ft}=fe,ot=De(fe,["prefixCls"]),ct=At("radio",ft);return te.createElement(S,{value:"button"},te.createElement(de,Object.assign({prefixCls:ct},ot,{type:"radio",ref:Ee})))};var He=te.forwardRef(we);const ge=de;ge.Button=He,ge.Group=rt,ge.__ANT_RADIO=!0;var Le=ge},57809:function(bn,Xt,w){"use strict";var pe=w(92310),ue=w.n(pe),R=w(77861),Ne=w(2738),te=w(59301),V=w(53487),B=w(62892),f=w(19080),E=w(36355),h=w(1684),z=w(93891),S=w(19716),_=w(32441),N=w(33234),Q=w(14154),I=w(58582),Y=w(84443),K=w(66339),ce=function(se,he){var Oe={};for(var Be in se)Object.prototype.hasOwnProperty.call(se,Be)&&he.indexOf(Be)<0&&(Oe[Be]=se[Be]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Be=Object.getOwnPropertySymbols(se);je<Be.length;je++)he.indexOf(Be[je])<0&&Object.prototype.propertyIsEnumerable.call(se,Be[je])&&(Oe[Be[je]]=se[Be[je]]);return Oe};const G="SECRET_COMBOBOX_MODE_DO_NOT_USE",J=(se,he)=>{var Oe,{prefixCls:Be,bordered:je=!0,className:X,rootClassName:de,getPopupContainer:L,popupClassName:rt,dropdownClassName:De,listHeight:we=256,placement:He,listItemHeight:ge=24,size:Le,disabled:fe,notFoundContent:Ee,status:At,builtinPlacements:ft,dropdownMatchSelectWidth:ot,popupMatchSelectWidth:ct,direction:It,style:Tt,allowClear:Ht}=se,pr=ce(se,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:sr,getPrefixCls:Br,renderEmpty:fr,direction:k,virtual:nt,popupMatchSelectWidth:P,popupOverflow:m,select:d}=te.useContext(E.E_),x=Br("select",Be),ee=Br(),Ce=It!=null?It:k,{compactSize:H,compactItemClassnames:ne}=(0,N.ri)(x,Ce),[Ge,xe]=(0,Q.Z)(x),be=te.useMemo(()=>{const{mode:ri}=pr;if(ri!=="combobox")return ri===G?"combobox":ri},[pr.mode]),qe=be==="multiple"||be==="tags",Et=(0,Y.Z)(pr.suffixIcon,pr.showArrow),me=(Oe=ct!=null?ct:ot)!==null&&Oe!==void 0?Oe:P,{status:pt,hasFeedback:lt,isFormItemInput:Me,feedbackIcon:Pe}=te.useContext(_.aM),gt=(0,f.F)(pt,At);let zt;Ee!==void 0?zt=Ee:be==="combobox"?zt=null:zt=(fr==null?void 0:fr("Select"))||te.createElement(z.Z,{componentName:"Select"});const{suffixIcon:Ut,itemIcon:ir,removeIcon:Dr,clearIcon:mr}=(0,K.Z)(Object.assign(Object.assign({},pr),{multiple:qe,hasFeedback:lt,feedbackIcon:Pe,showSuffixIcon:Et,prefixCls:x,showArrow:pr.showArrow,componentName:"Select"})),Mr=Ht===!0?{clearIcon:mr}:Ht,Lr=(0,Ne.Z)(pr,["suffixIcon","itemIcon"]),vr=ue()(rt||De,{[`${x}-dropdown-${Ce}`]:Ce==="rtl"},de,xe),ur=(0,S.Z)(ri=>{var Er;return(Er=Le!=null?Le:H)!==null&&Er!==void 0?Er:ri}),$r=te.useContext(h.Z),cn=fe!=null?fe:$r,Sn=ue()({[`${x}-lg`]:ur==="large",[`${x}-sm`]:ur==="small",[`${x}-rtl`]:Ce==="rtl",[`${x}-borderless`]:!je,[`${x}-in-form-item`]:Me},(0,f.Z)(x,gt,lt),ne,d==null?void 0:d.className,X,de,xe),nn=te.useMemo(()=>He!==void 0?He:Ce==="rtl"?"bottomRight":"bottomLeft",[He,Ce]),Bn=(0,I.Z)(ft,m);return Ge(te.createElement(R.ZP,Object.assign({ref:he,virtual:nt,showSearch:d==null?void 0:d.showSearch},Lr,{style:Object.assign(Object.assign({},d==null?void 0:d.style),Tt),dropdownMatchSelectWidth:me,builtinPlacements:Bn,transitionName:(0,B.m)(ee,"slide-up",pr.transitionName),listHeight:we,listItemHeight:ge,mode:be,prefixCls:x,placement:nn,direction:Ce,suffixIcon:Ut,menuItemSelectedIcon:ir,removeIcon:Dr,allowClear:Mr,notFoundContent:zt,className:Sn,getPopupContainer:L||sr,dropdownClassName:vr,disabled:cn})))},W=te.forwardRef(J),j=(0,V.Z)(W);W.SECRET_COMBOBOX_MODE_DO_NOT_USE=G,W.Option=R.Wx,W.OptGroup=R.Xo,W._InternalPanelDoNotUseOrYouWillBeFired=j,Xt.default=W},14154:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return W}});var pe=w(17313),ue=w(74207),R=w(37613),Ne=w(83116),te=w(13826),V=w(92899);const B=j=>{const{optionHeight:se,optionFontSize:he,optionLineHeight:Oe,optionPadding:Be}=j;return{position:"relative",display:"block",minHeight:se,padding:Be,color:j.colorText,fontWeight:"normal",fontSize:he,lineHeight:Oe,boxSizing:"border-box"}};var E=j=>{const{antCls:se,componentCls:he}=j,Oe=`${he}-item`,Be=`&${se}-slide-up-enter${se}-slide-up-enter-active`,je=`&${se}-slide-up-appear${se}-slide-up-appear-active`,X=`&${se}-slide-up-leave${se}-slide-up-leave-active`,de=`${he}-dropdown-placement-`;return[{[`${he}-dropdown`]:Object.assign(Object.assign({},(0,pe.Wf)(j)),{position:"absolute",top:-9999,zIndex:j.zIndexPopup,boxSizing:"border-box",padding:j.paddingXXS,overflow:"hidden",fontSize:j.fontSize,fontVariant:"initial",backgroundColor:j.colorBgElevated,borderRadius:j.borderRadiusLG,outline:"none",boxShadow:j.boxShadowSecondary,[`
|
|
|
${Be}${de}bottomLeft,
|
|
|
${je}${de}bottomLeft
|
|
|
`]:{animationName:te.fJ},[`
|
|
|
${Be}${de}topLeft,
|
|
|
${je}${de}topLeft,
|
|
|
${Be}${de}topRight,
|
|
|
${je}${de}topRight
|
|
|
`]:{animationName:te.Qt},[`${X}${de}bottomLeft`]:{animationName:te.Uw},[`
|
|
|
${X}${de}topLeft,
|
|
|
${X}${de}topRight
|
|
|
`]:{animationName:te.ly},"&-hidden":{display:"none"},[`${Oe}`]:Object.assign(Object.assign({},B(j)),{cursor:"pointer",transition:`background ${j.motionDurationSlow} ease`,borderRadius:j.borderRadiusSM,"&-group":{color:j.colorTextDescription,fontSize:j.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},pe.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Oe}-option-disabled)`]:{backgroundColor:j.optionActiveBg},[`&-selected:not(${Oe}-option-disabled)`]:{color:j.optionSelectedColor,fontWeight:j.optionSelectedFontWeight,backgroundColor:j.optionSelectedBg,[`${Oe}-option-state`]:{color:j.colorPrimary}},"&-disabled":{[`&${Oe}-option-selected`]:{backgroundColor:j.colorBgContainerDisabled},color:j.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:j.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,te.oN)(j,"slide-up"),(0,te.oN)(j,"slide-down"),(0,V.Fm)(j,"move-up"),(0,V.Fm)(j,"move-down")]};const h=2,z=j=>{let{controlHeightSM:se,controlHeight:he,lineWidth:Oe}=j;const Be=(he-se)/2-Oe,je=Math.ceil(Be/2);return[Be,je]};function S(j,se){const{componentCls:he,iconCls:Oe}=j,Be=`${he}-selection-overflow`,je=j.multipleSelectItemHeight,[X]=z(j),de=se?`${he}-${se}`:"";return{[`${he}-multiple${de}`]:{fontSize:j.fontSize,[Be]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${he}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${X-h}px ${h*2}px`,borderRadius:j.borderRadius,[`${he}-show-search&`]:{cursor:"text"},[`${he}-disabled&`]:{background:j.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${h}px 0`,lineHeight:`${je}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${he}-show-arrow ${he}-selector,
|
|
|
&${he}-allow-clear ${he}-selector
|
|
|
`]:{paddingInlineEnd:j.fontSizeIcon+j.controlPaddingHorizontal},[`${he}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:je,marginTop:h,marginBottom:h,lineHeight:`${je-j.lineWidth*2}px`,background:j.multipleItemBg,border:`${j.lineWidth}px ${j.lineType} ${j.multipleItemBorderColor}`,borderRadius:j.borderRadiusSM,cursor:"default",transition:`font-size ${j.motionDurationSlow}, line-height ${j.motionDurationSlow}, height ${j.motionDurationSlow}`,userSelect:"none",marginInlineEnd:h*2,paddingInlineStart:j.paddingXS,paddingInlineEnd:j.paddingXS/2,[`${he}-disabled&`]:{color:j.multipleItemColorDisabled,borderColor:j.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:j.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,pe.Ro)()),{display:"inline-flex",alignItems:"center",color:j.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Oe}`]:{verticalAlign:"-0.2em"},"&:hover":{color:j.colorIconHover}})},[`${Be}-item + ${Be}-item`]:{[`${he}-selection-search`]:{marginInlineStart:0}},[`${he}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:j.inputPaddingHorizontalBase-X,"\n &-input,\n &-mirror\n ":{height:je,fontFamily:j.fontFamily,lineHeight:`${je}px`,transition:`all ${j.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${he}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:j.inputPaddingHorizontalBase,insetInlineEnd:j.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${j.motionDurationSlow}`}}}}var N=j=>{const{componentCls:se}=j,he=(0,R.TS)(j,{controlHeight:j.controlHeightSM,multipleSelectItemHeight:j.controlHeightXS,borderRadius:j.borderRadiusSM,borderRadiusSM:j.borderRadiusXS}),Oe=(0,R.TS)(j,{fontSize:j.fontSizeLG,controlHeight:j.controlHeightLG,multipleSelectItemHeight:j.multipleItemHeightLG,borderRadius:j.borderRadiusLG,borderRadiusSM:j.borderRadius}),[,Be]=z(j);return[S(j),S(he,"sm"),{[`${se}-multiple${se}-sm`]:{[`${se}-selection-placeholder`]:{insetInline:j.controlPaddingHorizontalSM-j.lineWidth},[`${se}-selection-search`]:{marginInlineStart:Be}}},S(Oe,"lg")]};function Q(j,se){const{componentCls:he,inputPaddingHorizontalBase:Oe,borderRadius:Be}=j,je=j.controlHeight-j.lineWidth*2,X=Math.ceil(j.fontSize*1.25),de=se?`${he}-${se}`:"";return{[`${he}-single${de}`]:{fontSize:j.fontSize,[`${he}-selector`]:Object.assign(Object.assign({},(0,pe.Wf)(j)),{display:"flex",borderRadius:Be,[`${he}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Oe,insetInlineEnd:Oe,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${he}-selection-item,
|
|
|
${he}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${je}px`,transition:`all ${j.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${je}px`}},[`${he}-selection-item`]:{position:"relative",userSelect:"none"},[`${he}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${he}-selection-item:after`,`${he}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${he}-show-arrow ${he}-selection-item,
|
|
|
&${he}-show-arrow ${he}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:X},[`&${he}-open ${he}-selection-item`]:{color:j.colorTextPlaceholder},[`&:not(${he}-customize-input)`]:{[`${he}-selector`]:{width:"100%",height:j.controlHeight,padding:`0 ${Oe}px`,[`${he}-selection-search-input`]:{height:je},"&:after":{lineHeight:`${je}px`}}},[`&${he}-customize-input`]:{[`${he}-selector`]:{"&:after":{display:"none"},[`${he}-selection-search`]:{position:"static",width:"100%"},[`${he}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Oe}px`,"&:after":{display:"none"}}}}}}}function I(j){const{componentCls:se}=j,he=j.controlPaddingHorizontalSM-j.lineWidth;return[Q(j),Q((0,R.TS)(j,{controlHeight:j.controlHeightSM,borderRadius:j.borderRadiusSM}),"sm"),{[`${se}-single${se}-sm`]:{[`&:not(${se}-customize-input)`]:{[`${se}-selection-search`]:{insetInlineStart:he,insetInlineEnd:he},[`${se}-selector`]:{padding:`0 ${he}px`},[`&${se}-show-arrow ${se}-selection-search`]:{insetInlineEnd:he+j.fontSize*1.5},[`
|
|
|
&${se}-show-arrow ${se}-selection-item,
|
|
|
&${se}-show-arrow ${se}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:j.fontSize*1.5}}}},Q((0,R.TS)(j,{controlHeight:j.singleItemHeightLG,fontSize:j.fontSizeLG,borderRadius:j.borderRadiusLG}),"lg")]}const Y=j=>{const{componentCls:se,selectorBg:he}=j;return{position:"relative",backgroundColor:he,border:`${j.lineWidth}px ${j.lineType} ${j.colorBorder}`,transition:`all ${j.motionDurationMid} ${j.motionEaseInOut}`,input:{cursor:"pointer"},[`${se}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${se}-disabled&`]:{color:j.colorTextDisabled,background:j.colorBgContainerDisabled,cursor:"not-allowed",[`${se}-multiple&`]:{background:j.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},K=function(j,se){let he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Oe,borderHoverColor:Be,outlineColor:je,antCls:X}=se,de=he?{[`${Oe}-selector`]:{borderColor:Be}}:{};return{[j]:{[`&:not(${Oe}-disabled):not(${Oe}-customize-input):not(${X}-pagination-size-changer)`]:Object.assign(Object.assign({},de),{[`${Oe}-focused& ${Oe}-selector`]:{borderColor:Be,boxShadow:`0 0 0 ${se.controlOutlineWidth}px ${je}`,outline:0},[`&:hover ${Oe}-selector`]:{borderColor:Be}})}}},ce=j=>{const{componentCls:se}=j;return{[`${se}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},G=j=>{const{componentCls:se,inputPaddingHorizontalBase:he,iconCls:Oe}=j;return{[se]:Object.assign(Object.assign({},(0,pe.Wf)(j)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${se}-customize-input) ${se}-selector`]:Object.assign(Object.assign({},Y(j)),ce(j)),[`${se}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},pe.vS),[`${se}-selection-placeholder`]:Object.assign(Object.assign({},pe.vS),{flex:1,color:j.colorTextPlaceholder,pointerEvents:"none"}),[`${se}-arrow`]:Object.assign(Object.assign({},(0,pe.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:he,height:j.fontSizeIcon,marginTop:-j.fontSizeIcon/2,color:j.colorTextQuaternary,fontSize:j.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Oe]:{verticalAlign:"top",transition:`transform ${j.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${se}-suffix)`]:{pointerEvents:"auto"}},[`${se}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${se}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:he,zIndex:1,display:"inline-block",width:j.fontSizeIcon,height:j.fontSizeIcon,marginTop:-j.fontSizeIcon/2,color:j.colorTextQuaternary,fontSize:j.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:j.clearBg,cursor:"pointer",opacity:0,transition:`color ${j.motionDurationMid} ease, opacity ${j.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:j.colorTextTertiary}},"&:hover":{[`${se}-clear`]:{opacity:1}}}),[`${se}-has-feedback`]:{[`${se}-clear`]:{insetInlineEnd:he+j.fontSize+j.paddingXS}}}},J=j=>{const{componentCls:se}=j;return[{[se]:{[`&-borderless ${se}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${se}-in-form-item`]:{width:"100%"}}},G(j),I(j),N(j),E(j),{[`${se}-rtl`]:{direction:"rtl"}},K(se,(0,R.TS)(j,{borderHoverColor:j.colorPrimaryHover,outlineColor:j.controlOutline})),K(`${se}-status-error`,(0,R.TS)(j,{borderHoverColor:j.colorErrorHover,outlineColor:j.colorErrorOutline}),!0),K(`${se}-status-warning`,(0,R.TS)(j,{borderHoverColor:j.colorWarningHover,outlineColor:j.colorWarningOutline}),!0),(0,ue.c)(j,{borderElCls:`${se}-selector`,focusElCls:`${se}-focused`})]};var W=(0,Ne.Z)("Select",(j,se)=>{let{rootPrefixCls:he}=se;const Oe=(0,R.TS)(j,{rootPrefixCls:he,inputPaddingHorizontalBase:j.paddingSM-1,multipleSelectItemHeight:j.multipleItemHeight});return[J(Oe)]},j=>{const{fontSize:se,lineHeight:he,controlHeight:Oe,controlPaddingHorizontal:Be,zIndexPopupBase:je,colorText:X,fontWeightStrong:de,controlItemBgActive:L,controlItemBgHover:rt,colorBgContainer:De,colorFillSecondary:we,controlHeightLG:He,controlHeightSM:ge,colorBgContainerDisabled:Le,colorTextDisabled:fe}=j;return{zIndexPopup:je+50,optionSelectedColor:X,optionSelectedFontWeight:de,optionSelectedBg:L,optionActiveBg:rt,optionPadding:`${(Oe-se*he)/2}px ${Be}px`,optionFontSize:se,optionLineHeight:he,optionHeight:Oe,selectorBg:De,clearBg:De,singleItemHeightLG:He,multipleItemBg:we,multipleItemBorderColor:"transparent",multipleItemHeight:ge,multipleItemHeightLG:Oe,multipleSelectorBgDisabled:Le,multipleItemColorDisabled:fe,multipleItemBorderColorDisabled:"transparent"}})},58582:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return ue}});const pe=R=>{const te={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:R==="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 ue(R,Ne){return R||pe(Ne)}},84443:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return pe}});function pe(ue,R){return R!==void 0?R:ue!==null}},66339:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return f}});var pe=w(40001),ue=w(19248),R=w(99267),Ne=w(84105),te=w(58617),V=w(47472),B=w(59301);function f(E){let{suffixIcon:h,clearIcon:z,menuItemSelectedIcon:S,removeIcon:_,loading:N,multiple:Q,hasFeedback:I,prefixCls:Y,showSuffixIcon:K,feedbackIcon:ce,showArrow:G,componentName:J}=E;const W=z!=null?z:B.createElement(ue.Z,null),j=Be=>h===null&&!I&&!G?null:B.createElement(B.Fragment,null,K!==!1&&Be,I&&ce);let se=null;if(h!==void 0)se=j(h);else if(N)se=j(B.createElement(te.Z,{spin:!0}));else{const Be=`${Y}-suffix`;se=je=>{let{open:X,showSearch:de}=je;return j(X&&de?B.createElement(V.Z,{className:Be}):B.createElement(Ne.Z,{className:Be}))}}let he=null;S!==void 0?he=S:Q?he=B.createElement(pe.Z,null):he=null;let Oe=null;return _!==void 0?Oe=_:Oe=B.createElement(R.Z,null),{clearIcon:W,suffixIcon:se,itemIcon:he,removeIcon:Oe}}},61621:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return m}});var pe=w(92310),ue=w.n(pe),R=w(59301),Ne=w(36355),te=w(2738),B=d=>{const{prefixCls:x,className:ee,style:Ce,size:H,shape:ne}=d,Ge=ue()({[`${x}-lg`]:H==="large",[`${x}-sm`]:H==="small"}),xe=ue()({[`${x}-circle`]:ne==="circle",[`${x}-square`]:ne==="square",[`${x}-round`]:ne==="round"}),be=R.useMemo(()=>typeof H=="number"?{width:H,height:H,lineHeight:`${H}px`}:{},[H]);return R.createElement("span",{className:ue()(x,Ge,xe,ee),style:Object.assign(Object.assign({},be),Ce)})},f=w(93083),E=w(83116),h=w(37613);const z=new f.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),S=d=>({height:d,lineHeight:`${d}px`}),_=d=>Object.assign({width:d},S(d)),N=d=>({background:d.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:z,animationDuration:d.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Q=d=>Object.assign({width:d*5,minWidth:d*5},S(d)),I=d=>{const{skeletonAvatarCls:x,gradientFromColor:ee,controlHeight:Ce,controlHeightLG:H,controlHeightSM:ne}=d;return{[`${x}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ee},_(Ce)),[`${x}${x}-circle`]:{borderRadius:"50%"},[`${x}${x}-lg`]:Object.assign({},_(H)),[`${x}${x}-sm`]:Object.assign({},_(ne))}},Y=d=>{const{controlHeight:x,borderRadiusSM:ee,skeletonInputCls:Ce,controlHeightLG:H,controlHeightSM:ne,gradientFromColor:Ge}=d;return{[`${Ce}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ge,borderRadius:ee},Q(x)),[`${Ce}-lg`]:Object.assign({},Q(H)),[`${Ce}-sm`]:Object.assign({},Q(ne))}},K=d=>Object.assign({width:d},S(d)),ce=d=>{const{skeletonImageCls:x,imageSizeBase:ee,gradientFromColor:Ce,borderRadiusSM:H}=d;return{[`${x}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Ce,borderRadius:H},K(ee*2)),{[`${x}-path`]:{fill:"#bfbfbf"},[`${x}-svg`]:Object.assign(Object.assign({},K(ee)),{maxWidth:ee*4,maxHeight:ee*4}),[`${x}-svg${x}-svg-circle`]:{borderRadius:"50%"}}),[`${x}${x}-circle`]:{borderRadius:"50%"}}},G=(d,x,ee)=>{const{skeletonButtonCls:Ce}=d;return{[`${ee}${Ce}-circle`]:{width:x,minWidth:x,borderRadius:"50%"},[`${ee}${Ce}-round`]:{borderRadius:x}}},J=d=>Object.assign({width:d*2,minWidth:d*2},S(d)),W=d=>{const{borderRadiusSM:x,skeletonButtonCls:ee,controlHeight:Ce,controlHeightLG:H,controlHeightSM:ne,gradientFromColor:Ge}=d;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${ee}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ge,borderRadius:x,width:Ce*2,minWidth:Ce*2},J(Ce))},G(d,Ce,ee)),{[`${ee}-lg`]:Object.assign({},J(H))}),G(d,H,`${ee}-lg`)),{[`${ee}-sm`]:Object.assign({},J(ne))}),G(d,ne,`${ee}-sm`))},j=d=>{const{componentCls:x,skeletonAvatarCls:ee,skeletonTitleCls:Ce,skeletonParagraphCls:H,skeletonButtonCls:ne,skeletonInputCls:Ge,skeletonImageCls:xe,controlHeight:be,controlHeightLG:qe,controlHeightSM:Et,gradientFromColor:me,padding:pt,marginSM:lt,borderRadius:Me,titleHeight:Pe,blockRadius:gt,paragraphLiHeight:zt,controlHeightXS:Ut,paragraphMarginTop:ir}=d;return{[`${x}`]:{display:"table",width:"100%",[`${x}-header`]:{display:"table-cell",paddingInlineEnd:pt,verticalAlign:"top",[`${ee}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:me},_(be)),[`${ee}-circle`]:{borderRadius:"50%"},[`${ee}-lg`]:Object.assign({},_(qe)),[`${ee}-sm`]:Object.assign({},_(Et))},[`${x}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Ce}`]:{width:"100%",height:Pe,background:me,borderRadius:gt,[`+ ${H}`]:{marginBlockStart:Et}},[`${H}`]:{padding:0,"> li":{width:"100%",height:zt,listStyle:"none",background:me,borderRadius:gt,"+ li":{marginBlockStart:Ut}}},[`${H}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${x}-content`]:{[`${Ce}, ${H} > li`]:{borderRadius:Me}}},[`${x}-with-avatar ${x}-content`]:{[`${Ce}`]:{marginBlockStart:lt,[`+ ${H}`]:{marginBlockStart:ir}}},[`${x}${x}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},W(d)),I(d)),Y(d)),ce(d)),[`${x}${x}-block`]:{width:"100%",[`${ne}`]:{width:"100%"},[`${Ge}`]:{width:"100%"}},[`${x}${x}-active`]:{[`
|
|
|
${Ce},
|
|
|
${H} > li,
|
|
|
${ee},
|
|
|
${ne},
|
|
|
${Ge},
|
|
|
${xe}
|
|
|
`]:Object.assign({},N(d))}}};var se=(0,E.Z)("Skeleton",d=>{const{componentCls:x}=d,ee=(0,h.TS)(d,{skeletonAvatarCls:`${x}-avatar`,skeletonTitleCls:`${x}-title`,skeletonParagraphCls:`${x}-paragraph`,skeletonButtonCls:`${x}-button`,skeletonInputCls:`${x}-input`,skeletonImageCls:`${x}-image`,imageSizeBase:d.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${d.gradientFromColor} 25%, ${d.gradientToColor} 37%, ${d.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[j(ee)]},d=>{const{colorFillContent:x,colorFill:ee}=d,Ce=x,H=ee;return{color:Ce,colorGradientEnd:H,gradientFromColor:Ce,gradientToColor:H,titleHeight:d.controlHeight/2,blockRadius:d.borderRadiusSM,paragraphMarginTop:d.marginLG+d.marginXXS,paragraphLiHeight:d.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Oe=d=>{const{prefixCls:x,className:ee,rootClassName:Ce,active:H,shape:ne="circle",size:Ge="default"}=d,{getPrefixCls:xe}=R.useContext(Ne.E_),be=xe("skeleton",x),[qe,Et]=se(be),me=(0,te.Z)(d,["prefixCls","className"]),pt=ue()(be,`${be}-element`,{[`${be}-active`]:H},ee,Ce,Et);return qe(R.createElement("div",{className:pt},R.createElement(B,Object.assign({prefixCls:`${be}-avatar`,shape:ne,size:Ge},me))))},je=d=>{const{prefixCls:x,className:ee,rootClassName:Ce,active:H,block:ne=!1,size:Ge="default"}=d,{getPrefixCls:xe}=R.useContext(Ne.E_),be=xe("skeleton",x),[qe,Et]=se(be),me=(0,te.Z)(d,["prefixCls"]),pt=ue()(be,`${be}-element`,{[`${be}-active`]:H,[`${be}-block`]:ne},ee,Ce,Et);return qe(R.createElement("div",{className:pt},R.createElement(B,Object.assign({prefixCls:`${be}-button`,size:Ge},me))))};const X="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 L=d=>{const{prefixCls:x,className:ee,rootClassName:Ce,style:H,active:ne}=d,{getPrefixCls:Ge}=R.useContext(Ne.E_),xe=Ge("skeleton",x),[be,qe]=se(xe),Et=ue()(xe,`${xe}-element`,{[`${xe}-active`]:ne},ee,Ce,qe);return be(R.createElement("div",{className:Et},R.createElement("div",{className:ue()(`${xe}-image`,ee),style:H},R.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${xe}-image-svg`},R.createElement("path",{d:X,className:`${xe}-image-path`})))))},De=d=>{const{prefixCls:x,className:ee,rootClassName:Ce,active:H,block:ne,size:Ge="default"}=d,{getPrefixCls:xe}=R.useContext(Ne.E_),be=xe("skeleton",x),[qe,Et]=se(be),me=(0,te.Z)(d,["prefixCls"]),pt=ue()(be,`${be}-element`,{[`${be}-active`]:H,[`${be}-block`]:ne},ee,Ce,Et);return qe(R.createElement("div",{className:pt},R.createElement(B,Object.assign({prefixCls:`${be}-input`,size:Ge},me))))},we=w(14809),He={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"},ge=He,Le=w(7657),fe=function(x,ee){return R.createElement(Le.Z,(0,we.Z)({},x,{ref:ee,icon:ge}))},Ee=R.forwardRef(fe),At=Ee,ot=d=>{const{prefixCls:x,className:ee,rootClassName:Ce,style:H,active:ne,children:Ge}=d,{getPrefixCls:xe}=R.useContext(Ne.E_),be=xe("skeleton",x),[qe,Et]=se(be),me=ue()(be,`${be}-element`,{[`${be}-active`]:ne},Et,ee,Ce),pt=Ge!=null?Ge:R.createElement(At,null);return qe(R.createElement("div",{className:me},R.createElement("div",{className:ue()(`${be}-image`,ee),style:H},pt)))},ct=w(95190),Tt=d=>{const x=xe=>{const{width:be,rows:qe=2}=d;if(Array.isArray(be))return be[xe];if(qe-1===xe)return be},{prefixCls:ee,className:Ce,style:H,rows:ne}=d,Ge=(0,ct.Z)(Array(ne)).map((xe,be)=>R.createElement("li",{key:be,style:{width:x(be)}}));return R.createElement("ul",{className:ue()(ee,Ce),style:H},Ge)},pr=d=>{let{prefixCls:x,className:ee,width:Ce,style:H}=d;return R.createElement("h3",{className:ue()(x,ee),style:Object.assign({width:Ce},H)})};function sr(d){return d&&typeof d=="object"?d:{}}function Br(d,x){return d&&!x?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function fr(d,x){return!d&&x?{width:"38%"}:d&&x?{width:"50%"}:{}}function k(d,x){const ee={};return(!d||!x)&&(ee.width="61%"),!d&&x?ee.rows=3:ee.rows=2,ee}const nt=d=>{const{prefixCls:x,loading:ee,className:Ce,rootClassName:H,style:ne,children:Ge,avatar:xe=!1,title:be=!0,paragraph:qe=!0,active:Et,round:me}=d,{getPrefixCls:pt,direction:lt,skeleton:Me}=R.useContext(Ne.E_),Pe=pt("skeleton",x),[gt,zt]=se(Pe);if(ee||!("loading"in d)){const Ut=!!xe,ir=!!be,Dr=!!qe;let mr;if(Ut){const vr=Object.assign(Object.assign({prefixCls:`${Pe}-avatar`},Br(ir,Dr)),sr(xe));mr=R.createElement("div",{className:`${Pe}-header`},R.createElement(B,Object.assign({},vr)))}let Mr;if(ir||Dr){let vr;if(ir){const $r=Object.assign(Object.assign({prefixCls:`${Pe}-title`},fr(Ut,Dr)),sr(be));vr=R.createElement(pr,Object.assign({},$r))}let ur;if(Dr){const $r=Object.assign(Object.assign({prefixCls:`${Pe}-paragraph`},k(Ut,ir)),sr(qe));ur=R.createElement(Tt,Object.assign({},$r))}Mr=R.createElement("div",{className:`${Pe}-content`},vr,ur)}const Lr=ue()(Pe,{[`${Pe}-with-avatar`]:Ut,[`${Pe}-active`]:Et,[`${Pe}-rtl`]:lt==="rtl",[`${Pe}-round`]:me},Me==null?void 0:Me.className,Ce,H,zt);return gt(R.createElement("div",{className:Lr,style:Object.assign(Object.assign({},Me==null?void 0:Me.style),ne)},mr,Mr))}return typeof Ge!="undefined"?Ge:null};nt.Button=je,nt.Avatar=Oe,nt.Input=De,nt.Image=L,nt.Node=ot;var P=nt,m=P},81327:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return Y}});var pe=w(59301),ue=w(92310),R=w.n(ue),Ne=w(11592),te=w(36355),V=w(33234);const B=pe.createContext({latestIndex:0}),f=B.Provider;var h=K=>{let{className:ce,index:G,children:J,split:W,style:j}=K;const{latestIndex:se}=pe.useContext(B);return J==null?null:pe.createElement(pe.Fragment,null,pe.createElement("div",{className:ce,style:j},J),G<se&&W&&pe.createElement("span",{className:`${ce}-split`},W))},z=w(2856);function S(K){return["small","middle","large"].includes(K)}function _(K){return K?typeof K=="number"&&!Number.isNaN(K):!1}var N=function(K,ce){var G={};for(var J in K)Object.prototype.hasOwnProperty.call(K,J)&&ce.indexOf(J)<0&&(G[J]=K[J]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,J=Object.getOwnPropertySymbols(K);W<J.length;W++)ce.indexOf(J[W])<0&&Object.prototype.propertyIsEnumerable.call(K,J[W])&&(G[J[W]]=K[J[W]]);return G};const I=pe.forwardRef((K,ce)=>{var G,J;const{getPrefixCls:W,space:j,direction:se}=pe.useContext(te.E_),{size:he=(j==null?void 0:j.size)||"small",align:Oe,className:Be,rootClassName:je,children:X,direction:de="horizontal",prefixCls:L,split:rt,style:De,wrap:we=!1,classNames:He,styles:ge}=K,Le=N(K,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[fe,Ee]=Array.isArray(he)?he:[he,he],At=S(Ee),ft=S(fe),ot=_(Ee),ct=_(fe),It=(0,Ne.Z)(X,{keepEmpty:!0}),Tt=Oe===void 0&&de==="horizontal"?"center":Oe,Ht=W("space",L),[pr,sr]=(0,z.Z)(Ht),Br=R()(Ht,j==null?void 0:j.className,sr,`${Ht}-${de}`,{[`${Ht}-rtl`]:se==="rtl",[`${Ht}-align-${Tt}`]:Tt,[`${Ht}-gap-row-${Ee}`]:At,[`${Ht}-gap-col-${fe}`]:ft},Be,je),fr=R()(`${Ht}-item`,(G=He==null?void 0:He.item)!==null&&G!==void 0?G:(J=j==null?void 0:j.classNames)===null||J===void 0?void 0:J.item);let k=0;const nt=It.map((d,x)=>{var ee,Ce;d!=null&&(k=x);const H=d&&d.key||`${fr}-${x}`;return pe.createElement(h,{className:fr,key:H,index:x,split:rt,style:(ee=ge==null?void 0:ge.item)!==null&&ee!==void 0?ee:(Ce=j==null?void 0:j.styles)===null||Ce===void 0?void 0:Ce.item},d)}),P=pe.useMemo(()=>({latestIndex:k}),[k]);if(It.length===0)return null;const m={};return we&&(m.flexWrap="wrap"),!ft&&ct&&(m.columnGap=fe),!At&&ot&&(m.rowGap=Ee),pr(pe.createElement("div",Object.assign({ref:ce,className:Br,style:Object.assign(Object.assign(Object.assign({},m),j==null?void 0:j.style),De)},Le),pe.createElement(f,{value:P},nt)))});I.Compact=V.ZP;var Y=I},8378:function(bn,Xt){"use strict";const w=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`}}});Xt.Z=w},92899:function(bn,Xt,w){"use strict";w.d(Xt,{Fm:function(){return S}});var pe=w(93083),ue=w(95406);const R=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}}),V=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}}),B=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}}),f=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}}),E=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}}),h=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}}),z={"move-up":{inKeyframes:E,outKeyframes:h},"move-down":{inKeyframes:R,outKeyframes:Ne},"move-left":{inKeyframes:te,outKeyframes:V},"move-right":{inKeyframes:B,outKeyframes:f}},S=(_,N)=>{const{antCls:Q}=_,I=`${Q}-${N}`,{inKeyframes:Y,outKeyframes:K}=z[N];return[(0,ue.R)(I,Y,K,_.motionDurationMid),{[`
|
|
|
${I}-enter,
|
|
|
${I}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:_.motionEaseOutCirc},[`${I}-leave`]:{animationTimingFunction:_.motionEaseInOutCirc}}]}},13826:function(bn,Xt,w){"use strict";w.d(Xt,{Qt:function(){return te},Uw:function(){return Ne},fJ:function(){return R},ly:function(){return V},oN:function(){return S}});var pe=w(93083),ue=w(95406);const R=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}}),V=new pe.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),B=new pe.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),f=new pe.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),E=new pe.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),h=new pe.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),z={"slide-up":{inKeyframes:R,outKeyframes:Ne},"slide-down":{inKeyframes:te,outKeyframes:V},"slide-left":{inKeyframes:B,outKeyframes:f},"slide-right":{inKeyframes:E,outKeyframes:h}},S=(_,N)=>{const{antCls:Q}=_,I=`${Q}-${N}`,{inKeyframes:Y,outKeyframes:K}=z[N];return[(0,ue.R)(I,Y,K,_.motionDurationMid),{[`
|
|
|
${I}-enter,
|
|
|
${I}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:_.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${I}-leave`]:{animationTimingFunction:_.motionEaseInQuint}}]}},15969:function(bn,Xt,w){"use strict";w.d(Xt,{N:function(){return pe}});const pe=ue=>({color:ue.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${ue.motionDurationSlow}`,"&:focus, &:hover":{color:ue.colorLinkHover},"&:active":{color:ue.colorLinkActive}})},1710:function(bn,Xt,w){"use strict";w.d(Xt,{default:function(){return rr}});var pe={},ue="rc-table-internal-hook",R=w(50298),Ne=w(6089),te=w(34280),V=w(13697),B=w(59301),f=w(4676);function E(U){var re=B.createContext(void 0),Se=function(Ke){var Xe=Ke.value,dt=Ke.children,St=B.useRef(Xe);St.current=Xe;var le=B.useState(function(){return{getValue:function(){return St.current},listeners:new Set}}),Re=(0,R.Z)(le,1),Ye=Re[0];return(0,te.Z)(function(){(0,f.unstable_batchedUpdates)(function(){Ye.listeners.forEach(function(et){et(Xe)})})},[Xe]),B.createElement(re.Provider,{value:Ye},dt)};return{Context:re,Provider:Se,defaultValue:U}}function h(U,re){var Se=(0,Ne.Z)(typeof re=="function"?re:function(et){if(re===void 0)return et;if(!Array.isArray(re))return et[re];var bt={};return re.forEach(function(_t){bt[_t]=et[_t]}),bt}),Ue=B.useContext(U==null?void 0:U.Context),Ke=Ue||{},Xe=Ke.listeners,dt=Ke.getValue,St=B.useRef();St.current=Se(Ue?dt():U==null?void 0:U.defaultValue);var le=B.useState({}),Re=(0,R.Z)(le,2),Ye=Re[1];return(0,te.Z)(function(){if(!Ue)return;function et(bt){var _t=Se(bt);(0,V.Z)(St.current,_t,!0)||Ye({})}return Xe.add(et),function(){Xe.delete(et)}},[Ue]),St.current}var z=w(14809),S=w(8654);function _(){var U=B.createContext(null);function re(){return B.useContext(U)}function Se(Ke,Xe){var dt=(0,S.Yr)(Ke),St=function(Re,Ye){var et=dt?{ref:Ye}:{},bt=B.useRef(0),_t=B.useRef(Re),Mt=re();return Mt!==null?B.createElement(Ke,(0,z.Z)({},Re,et)):((!Xe||Xe(_t.current,Re))&&(bt.current+=1),_t.current=Re,B.createElement(U.Provider,{value:bt.current},B.createElement(Ke,(0,z.Z)({},Re,et))))};return dt?B.forwardRef(St):St}function Ue(Ke,Xe){var dt=(0,S.Yr)(Ke),St=function(Re,Ye){var et=dt?{ref:Ye}:{};return re(),B.createElement(Ke,(0,z.Z)({},Re,et))};return dt?B.memo(B.forwardRef(St),Xe):B.memo(St,Xe)}return{makeImmutable:Se,responseImmutable:Ue,useImmutableMark:re}}var N=_(),Q=N.makeImmutable,I=N.responseImmutable,Y=N.useImmutableMark,K=_(),ce=K.makeImmutable,G=K.responseImmutable,J=K.useImmutableMark,W=E(),j=W;function se(U,re){var Se=B.useRef(0);Se.current+=1;var Ue=B.useRef(U),Ke=[];Object.keys(U||{}).map(function(dt){var St;(U==null?void 0:U[dt])!==((St=Ue.current)===null||St===void 0?void 0:St[dt])&&Ke.push(dt)}),Ue.current=U;var Xe=B.useRef([]);return Ke.length&&(Xe.current=Ke),B.useDebugValue(Se.current),B.useDebugValue(Xe.current.join(", ")),re&&console.log("".concat(re,":"),Se.current,Xe.current),Se.current}var he=null,Oe=B.memo(function(){var U=se();return B.createElement("h1",null,"Render Times: ",U)});Oe.displayName="RenderBlock";var Be=w(93664),je=w(20439),X=w(4635),de=w(92310),L=w.n(de),rt=w(80547),De=w(97938),we=w(48736),He=B.createContext({renderWithProps:!1}),ge=He,Le="RC_TABLE_KEY";function fe(U){return U==null?[]:Array.isArray(U)?U:[U]}function Ee(U){var re=[],Se={};return U.forEach(function(Ue){for(var Ke=Ue||{},Xe=Ke.key,dt=Ke.dataIndex,St=Xe||fe(dt).join("-")||Le;Se[St];)St="".concat(St,"_next");Se[St]=!0,re.push(St)}),re}function At(U){return U!=null}function ft(U){return U&&(0,Be.Z)(U)==="object"&&!Array.isArray(U)&&!B.isValidElement(U)}function ot(U,re,Se,Ue,Ke,Xe){var dt=B.useContext(ge),St=J(),le=(0,rt.Z)(function(){if(At(Ue))return[Ue];var Re=re==null||re===""?[]:Array.isArray(re)?re:[re],Ye=(0,De.Z)(U,Re),et=Ye,bt=void 0;if(Ke){var _t=Ke(Ye,U,Se);ft(_t)?(et=_t.children,bt=_t.props,dt.renderWithProps=!0):et=_t}return[et,bt]},[St,U,Ue,re,Ke,Se],function(Re,Ye){if(Xe){var et=(0,R.Z)(Re,2),bt=et[1],_t=(0,R.Z)(Ye,2),Mt=_t[1];return Xe(Mt,bt)}return dt.renderWithProps?!0:!(0,V.Z)(Re,Ye,!0)});return le}function ct(U,re,Se,Ue){var Ke=U+re-1;return U<=Ue&&Ke>=Se}function It(U,re){return h(j,function(Se){var Ue=ct(U,re||1,Se.hoverStartRow,Se.hoverEndRow);return[Ue,Se.onHover]})}var Tt=function(re){var Se=re.ellipsis,Ue=re.rowType,Ke=re.children,Xe,dt=Se===!0?{showTitle:!0}:Se;return dt&&(dt.showTitle||Ue==="header")&&(typeof Ke=="string"||typeof Ke=="number"?Xe=Ke.toString():B.isValidElement(Ke)&&typeof Ke.props.children=="string"&&(Xe=Ke.props.children)),Xe};function Ht(U){var re,Se,Ue,Ke,Xe,dt,St,le,Re=U.component,Ye=U.children,et=U.ellipsis,bt=U.scope,_t=U.prefixCls,Mt=U.className,Rt=U.align,lr=U.record,Ar=U.render,gr=U.dataIndex,_r=U.renderIndex,dn=U.shouldCellUpdate,or=U.index,yt=U.rowType,Fn=U.colSpan,gn=U.rowSpan,yr=U.fixLeft,Tr=U.fixRight,Ur=U.firstFixLeft,wr=U.lastFixLeft,Zr=U.firstFixRight,Cn=U.lastFixRight,Gn=U.appendNode,Zn=U.additionalProps,On=Zn===void 0?{}:Zn,di=U.isSticky,zn="".concat(_t,"-cell"),Fi=h(j,["supportSticky","allColumnsFixedLeft"]),vn=Fi.supportSticky,_a=Fi.allColumnsFixedLeft,Hi=ot(lr,gr,_r,Ye,Ar,dn),Ri=(0,R.Z)(Hi,2),ia=Ri[0],Ki=Ri[1],Qa={},Wi=typeof yr=="number"&&vn,As=typeof Tr=="number"&&vn;Wi&&(Qa.position="sticky",Qa.left=yr),As&&(Qa.position="sticky",Qa.right=Tr);var En=(re=(Se=(Ue=Ki==null?void 0:Ki.colSpan)!==null&&Ue!==void 0?Ue:On.colSpan)!==null&&Se!==void 0?Se:Fn)!==null&&re!==void 0?re:1,fi=(Ke=(Xe=(dt=Ki==null?void 0:Ki.rowSpan)!==null&&dt!==void 0?dt:On.rowSpan)!==null&&Xe!==void 0?Xe:gn)!==null&&Ke!==void 0?Ke:1,gi=It(or,fi),$n=(0,R.Z)(gi,2),ai=$n[0],kn=$n[1],Qi=function(wn){var no;lr&&kn(or,or+fi-1),On==null||(no=On.onMouseEnter)===null||no===void 0||no.call(On,wn)},Gi=function(wn){var no;lr&&kn(-1,-1),On==null||(no=On.onMouseLeave)===null||no===void 0||no.call(On,wn)};if(En===0||fi===0)return null;var qi=(St=On.title)!==null&&St!==void 0?St:Tt({rowType:yt,ellipsis:et,children:ia}),Mo=L()(zn,Mt,(le={},(0,X.Z)(le,"".concat(zn,"-fix-left"),Wi&&vn),(0,X.Z)(le,"".concat(zn,"-fix-left-first"),Ur&&vn),(0,X.Z)(le,"".concat(zn,"-fix-left-last"),wr&&vn),(0,X.Z)(le,"".concat(zn,"-fix-left-all"),wr&&_a&&vn),(0,X.Z)(le,"".concat(zn,"-fix-right"),As&&vn),(0,X.Z)(le,"".concat(zn,"-fix-right-first"),Zr&&vn),(0,X.Z)(le,"".concat(zn,"-fix-right-last"),Cn&&vn),(0,X.Z)(le,"".concat(zn,"-ellipsis"),et),(0,X.Z)(le,"".concat(zn,"-with-append"),Gn),(0,X.Z)(le,"".concat(zn,"-fix-sticky"),(Wi||As)&&di&&vn),(0,X.Z)(le,"".concat(zn,"-row-hover"),!Ki&&ai),le),On.className,Ki==null?void 0:Ki.className),Ii={};Rt&&(Ii.textAlign=Rt);var ns=(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)({},Qa),On.style),Ii),Ki==null?void 0:Ki.style),ro=ia;return(0,Be.Z)(ro)==="object"&&!Array.isArray(ro)&&!B.isValidElement(ro)&&(ro=null),et&&(wr||Zr)&&(ro=B.createElement("span",{className:"".concat(zn,"-content")},ro)),B.createElement(Re,(0,z.Z)({},Ki,On,{className:Mo,style:ns,title:qi,scope:bt,onMouseEnter:Qi,onMouseLeave:Gi,colSpan:En!==1?En:null,rowSpan:fi!==1?fi:null}),Gn,ro)}var pr=B.memo(Ht);function sr(U,re,Se,Ue,Ke,Xe){var dt=Se[U]||{},St=Se[re]||{},le,Re;dt.fixed==="left"?le=Ue.left[Ke==="rtl"?re:U]:St.fixed==="right"&&(Re=Ue.right[Ke==="rtl"?U:re]);var Ye=!1,et=!1,bt=!1,_t=!1,Mt=Se[re+1],Rt=Se[U-1],lr=!(Xe!=null&&Xe.children);if(Ke==="rtl"){if(le!==void 0){var Ar=Rt&&Rt.fixed==="left";_t=!Ar&&lr}else if(Re!==void 0){var gr=Mt&&Mt.fixed==="right";bt=!gr&&lr}}else if(le!==void 0){var _r=Mt&&Mt.fixed==="left";Ye=!_r&&lr}else if(Re!==void 0){var dn=Rt&&Rt.fixed==="right";et=!dn&&lr}return{fixLeft:le,fixRight:Re,lastFixLeft:Ye,firstFixRight:et,lastFixRight:bt,firstFixLeft:_t,isSticky:Ue.isSticky}}var Br=B.createContext({}),fr=Br;function k(U){var re=U.className,Se=U.index,Ue=U.children,Ke=U.colSpan,Xe=Ke===void 0?1:Ke,dt=U.rowSpan,St=U.align,le=h(j,["prefixCls","direction"]),Re=le.prefixCls,Ye=le.direction,et=B.useContext(fr),bt=et.scrollColumnIndex,_t=et.stickyOffsets,Mt=et.flattenColumns,Rt=et.columns,lr=Se+Xe-1,Ar=lr+1===bt?Xe+1:Xe,gr=sr(Se,Se+Ar-1,Mt,_t,Ye,Rt==null?void 0:Rt[Se]);return B.createElement(pr,(0,z.Z)({className:re,index:Se,component:"td",prefixCls:Re,record:null,dataIndex:null,align:St,colSpan:Ar,rowSpan:dt,render:function(){return Ue}},gr))}var nt=w(62646),P=["children"];function m(U){var re=U.children,Se=(0,nt.Z)(U,P);return B.createElement("tr",Se,re)}function d(U){var re=U.children;return re}d.Row=m,d.Cell=k;var x=d;function ee(U){var re=U.children,Se=U.stickyOffsets,Ue=U.flattenColumns,Ke=U.columns,Xe=h(j,"prefixCls"),dt=Ue.length-1,St=Ue[dt],le=B.useMemo(function(){return{stickyOffsets:Se,flattenColumns:Ue,scrollColumnIndex:St!=null&&St.scrollbar?dt:null,columns:Ke}},[St,Ue,dt,Se,Ke]);return B.createElement(fr.Provider,{value:le},B.createElement("tfoot",{className:"".concat(Xe,"-summary")},re))}var Ce=G(ee),H=x,ne=w(70425),Ge=w(29301),xe=w(29194),be=w(24514),qe=w(75152),Et=w(26112);function me(U,re,Se,Ue,Ke,Xe,dt){U.push({record:re,indent:Se,index:dt});var St=Xe(re),le=Ke==null?void 0:Ke.has(St);if(re&&Array.isArray(re[Ue])&&le)for(var Re=0;Re<re[Ue].length;Re+=1)me(U,re[Ue][Re],Se+1,Ue,Ke,Xe,Re)}function pt(U,re,Se,Ue){var Ke=B.useMemo(function(){if(Se!=null&&Se.size){for(var Xe=[],dt=0;dt<(U==null?void 0:U.length);dt+=1){var St=U[dt];me(Xe,St,0,re,Se,Ue,dt)}return Xe}return U==null?void 0:U.map(function(le,Re){return{record:le,indent:0,index:Re}})},[U,re,Se,Ue]);return Ke}function lt(U){var re=U.prefixCls,Se=U.children,Ue=U.component,Ke=U.cellComponent,Xe=U.className,dt=U.expanded,St=U.colSpan,le=U.isEmpty,Re=h(j,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Ye=Re.scrollbarSize,et=Re.fixHeader,bt=Re.fixColumn,_t=Re.componentWidth,Mt=Re.horizonScroll,Rt=Se;return(le?Mt&&_t:bt)&&(Rt=B.createElement("div",{style:{width:_t-(et?Ye:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(re,"-expanded-row-fixed")},Rt)),B.createElement(Ue,{className:Xe,style:{display:dt?null:"none"}},B.createElement(pr,{component:Ke,prefixCls:re,colSpan:St},Rt))}var Me=lt;function Pe(U,re,Se,Ue){var Ke=h(j,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Xe=Ke.flattenColumns,dt=Ke.expandableType,St=Ke.expandedKeys,le=Ke.childrenColumnName,Re=Ke.onTriggerExpand,Ye=Ke.rowExpandable,et=Ke.onRow,bt=Ke.expandRowByClick,_t=Ke.rowClassName,Mt=dt==="nest",Rt=dt==="row"&&(!Ye||Ye(U)),lr=Rt||Mt,Ar=St&&St.has(re),gr=le&&U&&U[le],_r=(0,ne.useEvent)(Re),dn=et==null?void 0:et(U,Se),or=dn==null?void 0:dn.onClick,yt=function(Tr){bt&&lr&&Re(U,Tr);for(var Ur=arguments.length,wr=new Array(Ur>1?Ur-1:0),Zr=1;Zr<Ur;Zr++)wr[Zr-1]=arguments[Zr];or==null||or.apply(void 0,[Tr].concat(wr))},Fn;typeof _t=="string"?Fn=_t:typeof _t=="function"&&(Fn=_t(U,Se,Ue));var gn=Ee(Xe);return(0,je.Z)((0,je.Z)({},Ke),{},{columnsKey:gn,nestExpandable:Mt,expanded:Ar,hasNestChildren:gr,record:U,onTriggerExpand:_r,rowSupportExpand:Rt,expandable:lr,rowProps:(0,je.Z)((0,je.Z)({},dn),{},{className:L()(Fn,dn==null?void 0:dn.className),onClick:yt})})}function gt(U,re,Se,Ue,Ke){var Xe=U.record,dt=U.prefixCls,St=U.columnsKey,le=U.fixedInfoList,Re=U.expandIconColumnIndex,Ye=U.nestExpandable,et=U.indentSize,bt=U.expandIcon,_t=U.expanded,Mt=U.hasNestChildren,Rt=U.onTriggerExpand,lr=St[Se],Ar=le[Se],gr;Se===(Re||0)&&Ye&&(gr=B.createElement(B.Fragment,null,B.createElement("span",{style:{paddingLeft:"".concat(et*Ue,"px")},className:"".concat(dt,"-row-indent indent-level-").concat(Ue)}),bt({prefixCls:dt,expanded:_t,expandable:Mt,record:Xe,onExpand:Rt})));var _r;return re.onCell&&(_r=re.onCell(Xe,Ke)),{key:lr,fixedInfo:Ar,appendCellNode:gr,additionalCellProps:_r||{}}}function zt(U){var re=U.className,Se=U.style,Ue=U.record,Ke=U.index,Xe=U.renderIndex,dt=U.rowKey,St=U.indent,le=St===void 0?0:St,Re=U.rowComponent,Ye=U.cellComponent,et=U.scopeCellComponent,bt=Pe(Ue,dt,Ke,le),_t=bt.prefixCls,Mt=bt.flattenColumns,Rt=bt.expandedRowClassName,lr=bt.expandedRowRender,Ar=bt.rowProps,gr=bt.expanded,_r=bt.rowSupportExpand,dn=B.useState(!1),or=(0,R.Z)(dn,2),yt=or[0],Fn=or[1];B.useEffect(function(){gr&&Fn(!0)},[gr]);var gn=B.createElement(Re,(0,z.Z)({},Ar,{"data-row-key":dt,className:L()(re,"".concat(_t,"-row"),"".concat(_t,"-row-level-").concat(le),Ar==null?void 0:Ar.className),style:(0,je.Z)((0,je.Z)({},Se),Ar==null?void 0:Ar.style)}),Mt.map(function(wr,Zr){var Cn=wr.render,Gn=wr.dataIndex,Zn=wr.className,On=gt(bt,wr,Zr,le,Ke),di=On.key,zn=On.fixedInfo,Fi=On.appendCellNode,vn=On.additionalCellProps;return B.createElement(pr,(0,z.Z)({className:Zn,ellipsis:wr.ellipsis,align:wr.align,scope:wr.rowScope,component:wr.rowScope?et:Ye,prefixCls:_t,key:di,record:Ue,index:Ke,renderIndex:Xe,dataIndex:Gn,render:Cn,shouldCellUpdate:wr.shouldCellUpdate},zn,{appendNode:Fi,additionalProps:vn}))})),yr;if(_r&&(yt||gr)){var Tr=lr(Ue,Ke,le+1,gr),Ur=Rt&&Rt(Ue,Ke,le);yr=B.createElement(Me,{expanded:gr,className:L()("".concat(_t,"-expanded-row"),"".concat(_t,"-expanded-row-level-").concat(le+1),Ur),prefixCls:_t,component:Re,cellComponent:Ye,colSpan:Mt.length,isEmpty:!1},Tr)}return B.createElement(B.Fragment,null,gn,yr)}zt.displayName="BodyRow";var Ut=G(zt);function ir(U){var re=U.columnKey,Se=U.onColumnResize,Ue=B.useRef();return B.useEffect(function(){Ue.current&&Se(re,Ue.current.offsetWidth)},[]),B.createElement(Ge.Z,{data:re},B.createElement("td",{ref:Ue,style:{padding:0,border:0,height:0}},B.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Dr(U){var re=U.prefixCls,Se=U.columnsKey,Ue=U.onColumnResize;return B.createElement("tr",{"aria-hidden":"true",className:"".concat(re,"-measure-row"),style:{height:0,fontSize:0}},B.createElement(Ge.Z.Collection,{onBatchResize:function(Xe){Xe.forEach(function(dt){var St=dt.data,le=dt.size;Ue(St,le.offsetWidth)})}},Se.map(function(Ke){return B.createElement(ir,{key:Ke,columnKey:Ke,onColumnResize:Ue})})))}function mr(U){var re=U.data,Se=U.measureColumnWidth,Ue=h(j,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Ke=Ue.prefixCls,Xe=Ue.getComponent,dt=Ue.onColumnResize,St=Ue.flattenColumns,le=Ue.getRowKey,Re=Ue.expandedKeys,Ye=Ue.childrenColumnName,et=Ue.emptyNode,bt=pt(re,Ye,Re,le),_t=B.useRef({renderWithProps:!1}),Mt=Xe(["body","wrapper"],"tbody"),Rt=Xe(["body","row"],"tr"),lr=Xe(["body","cell"],"td"),Ar=Xe(["body","cell"],"th"),gr;re.length?gr=bt.map(function(dn,or){var yt=dn.record,Fn=dn.indent,gn=dn.index,yr=le(yt,or);return B.createElement(Ut,{key:yr,rowKey:yr,record:yt,index:or,renderIndex:gn,rowComponent:Rt,cellComponent:lr,scopeCellComponent:Ar,getRowKey:le,indent:Fn})}):gr=B.createElement(Me,{expanded:!0,className:"".concat(Ke,"-placeholder"),prefixCls:Ke,component:Rt,cellComponent:lr,colSpan:St.length,isEmpty:!0},et);var _r=Ee(St);return B.createElement(ge.Provider,{value:_t.current},B.createElement(Mt,{className:"".concat(Ke,"-tbody")},Se&&B.createElement(Dr,{prefixCls:Ke,columnsKey:_r,onColumnResize:dt}),gr))}mr.displayName="Body";var Mr=G(mr),Lr=["expandable"],vr="RC_TABLE_INTERNAL_COL_DEFINE";function ur(U){var re=U.expandable,Se=(0,nt.Z)(U,Lr),Ue;return"expandable"in U?Ue=(0,je.Z)((0,je.Z)({},Se),re):Ue=Se,Ue.showExpandColumn===!1&&(Ue.expandIconColumnIndex=-1),Ue}var $r=["columnType"];function cn(U){for(var re=U.colWidths,Se=U.columns,Ue=U.columCount,Ke=[],Xe=Ue||Se.length,dt=!1,St=Xe-1;St>=0;St-=1){var le=re[St],Re=Se&&Se[St],Ye=Re&&Re[vr];if(le||Ye||dt){var et=Ye||{},bt=et.columnType,_t=(0,nt.Z)(et,$r);Ke.unshift(B.createElement("col",(0,z.Z)({key:St,style:{width:le}},_t))),dt=!0}}return B.createElement("colgroup",null,Ke)}var Sn=cn,nn=w(95190),Bn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ri(U,re){return(0,B.useMemo)(function(){for(var Se=[],Ue=0;Ue<re;Ue+=1){var Ke=U[Ue];if(Ke!==void 0)Se[Ue]=Ke;else return null}return Se},[U.join("_"),re])}var Er=B.forwardRef(function(U,re){var Se=U.className,Ue=U.noData,Ke=U.columns,Xe=U.flattenColumns,dt=U.colWidths,St=U.columCount,le=U.stickyOffsets,Re=U.direction,Ye=U.fixHeader,et=U.stickyTopOffset,bt=U.stickyBottomOffset,_t=U.stickyClassName,Mt=U.onScroll,Rt=U.maxContentScroll,lr=U.children,Ar=(0,nt.Z)(U,Bn),gr=h(j,["prefixCls","scrollbarSize","isSticky"]),_r=gr.prefixCls,dn=gr.scrollbarSize,or=gr.isSticky,yt=or&&!Ye?0:dn,Fn=B.useRef(null),gn=B.useCallback(function(Zn){(0,S.mH)(re,Zn),(0,S.mH)(Fn,Zn)},[]);B.useEffect(function(){var Zn;function On(di){var zn=di,Fi=zn.currentTarget,vn=zn.deltaX;vn&&(Mt({currentTarget:Fi,scrollLeft:Fi.scrollLeft+vn}),di.preventDefault())}return(Zn=Fn.current)===null||Zn===void 0||Zn.addEventListener("wheel",On),function(){var di;(di=Fn.current)===null||di===void 0||di.removeEventListener("wheel",On)}},[]);var yr=B.useMemo(function(){return Xe.every(function(Zn){return Zn.width})},[Xe]),Tr=Xe[Xe.length-1],Ur={fixed:Tr?Tr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(_r,"-cell-scrollbar")}}},wr=(0,B.useMemo)(function(){return yt?[].concat((0,nn.Z)(Ke),[Ur]):Ke},[yt,Ke]),Zr=(0,B.useMemo)(function(){return yt?[].concat((0,nn.Z)(Xe),[Ur]):Xe},[yt,Xe]),Cn=(0,B.useMemo)(function(){var Zn=le.right,On=le.left;return(0,je.Z)((0,je.Z)({},le),{},{left:Re==="rtl"?[].concat((0,nn.Z)(On.map(function(di){return di+yt})),[0]):On,right:Re==="rtl"?Zn:[].concat((0,nn.Z)(Zn.map(function(di){return di+yt})),[0]),isSticky:or})},[yt,le,or]),Gn=ri(dt,St);return B.createElement("div",{style:(0,je.Z)({overflow:"hidden"},or?{top:et,bottom:bt}:{}),ref:gn,className:L()(Se,(0,X.Z)({},_t,!!_t))},B.createElement("table",{style:{tableLayout:"fixed",visibility:Ue||Gn?null:"hidden"}},(!Ue||!Rt||yr)&&B.createElement(Sn,{colWidths:Gn?[].concat((0,nn.Z)(Gn),[yt]):[],columCount:St+1,columns:Zr}),lr((0,je.Z)((0,je.Z)({},Ar),{},{stickyOffsets:Cn,columns:wr,flattenColumns:Zr}))))});Er.displayName="FixedHolder";var ni=B.memo(Er);function Li(U){var re=U.cells,Se=U.stickyOffsets,Ue=U.flattenColumns,Ke=U.rowComponent,Xe=U.cellComponent,dt=U.tdCellComponent,St=U.onHeaderRow,le=U.index,Re=h(j,["prefixCls","direction"]),Ye=Re.prefixCls,et=Re.direction,bt;St&&(bt=St(re.map(function(Mt){return Mt.column}),le));var _t=Ee(re.map(function(Mt){return Mt.column}));return B.createElement(Ke,bt,re.map(function(Mt,Rt){var lr=Mt.column,Ar=sr(Mt.colStart,Mt.colEnd,Ue,Se,et,lr),gr;return lr&&lr.onHeaderCell&&(gr=Mt.column.onHeaderCell(lr)),B.createElement(pr,(0,z.Z)({},Mt,{scope:lr.title?Mt.colSpan>1?"colgroup":"col":null,ellipsis:lr.ellipsis,align:lr.align,component:lr.title?Xe:dt,prefixCls:Ye,key:_t[Rt]},Ar,{additionalProps:gr,rowType:"header"}))}))}Li.displayName="HeaderRow";var oi=Li;function Ti(U){var re=[];function Se(dt,St){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;re[le]=re[le]||[];var Re=St,Ye=dt.filter(Boolean).map(function(et){var bt={key:et.key,className:et.className||"",children:et.title,column:et,colStart:Re},_t=1,Mt=et.children;return Mt&&Mt.length>0&&(_t=Se(Mt,Re,le+1).reduce(function(Rt,lr){return Rt+lr},0),bt.hasSubColumns=!0),"colSpan"in et&&(_t=et.colSpan),"rowSpan"in et&&(bt.rowSpan=et.rowSpan),bt.colSpan=_t,bt.colEnd=bt.colStart+_t-1,re[le].push(bt),Re+=_t,_t});return Ye}Se(U,0);for(var Ue=re.length,Ke=function(St){re[St].forEach(function(le){!("rowSpan"in le)&&!le.hasSubColumns&&(le.rowSpan=Ue-St)})},Xe=0;Xe<Ue;Xe+=1)Ke(Xe);return re}function Ui(U){var re=U.stickyOffsets,Se=U.columns,Ue=U.flattenColumns,Ke=U.onHeaderRow,Xe=h(j,["prefixCls","getComponent"]),dt=Xe.prefixCls,St=Xe.getComponent,le=B.useMemo(function(){return Ti(Se)},[Se]),Re=St(["header","wrapper"],"thead"),Ye=St(["header","row"],"tr"),et=St(["header","cell"],"th"),bt=St(["header","cell"],"td");return B.createElement(Re,{className:"".concat(dt,"-thead")},le.map(function(_t,Mt){var Rt=B.createElement(oi,{key:Mt,flattenColumns:Ue,cells:_t,stickyOffsets:re,rowComponent:Ye,cellComponent:et,tdCellComponent:bt,onHeaderRow:Ke,index:Mt});return Rt}))}var Xi=G(Ui),Ha=w(11592);function Ji(U){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof re=="number"?re:re.endsWith("%")?U*parseFloat(re)/100:null}function pi(U,re){return B.useMemo(function(){if(re&&re>0){var Se=0,Ue=0;U.forEach(function(Re){var Ye=Ji(re,Re.width);Ye?Se+=Ye:Ue+=1});var Ke=re-Se,Xe=Ue,dt=Ke/Ue,St=0,le=U.map(function(Re){var Ye=(0,je.Z)({},Re),et=Ji(re,Ye.width);if(et)Ye.width=et;else{var bt=Math.floor(dt);Ye.width=Xe===1?Ke:bt,Ke-=bt,Xe-=1}return St+=Ye.width,Ye});return[le,St]}return[U,re]},[U,re])}var ki=["children"],Ni=["fixed"];function ve(U){return(0,Ha.Z)(U).filter(function(re){return B.isValidElement(re)}).map(function(re){var Se=re.key,Ue=re.props,Ke=Ue.children,Xe=(0,nt.Z)(Ue,ki),dt=(0,je.Z)({key:Se},Xe);return Ke&&(dt.children=ve(Ke)),dt})}function Te(U){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return U.filter(function(Se){return Se&&(0,Be.Z)(Se)==="object"}).reduce(function(Se,Ue,Ke){var Xe=Ue.fixed,dt=Xe===!0?"left":Xe,St="".concat(re,"-").concat(Ke),le=Ue.children;return le&&le.length>0?[].concat((0,nn.Z)(Se),(0,nn.Z)(Te(le,St).map(function(Re){return(0,je.Z)({fixed:dt},Re)}))):[].concat((0,nn.Z)(Se),[(0,je.Z)((0,je.Z)({key:St},Ue),{},{fixed:dt})])},[])}function ke(U){for(var re=!0,Se=0;Se<U.length;Se+=1){var Ue=U[Se];if(re&&Ue.fixed!=="left")re=!1;else if(!re&&Ue.fixed==="left"){warning(!1,"Index ".concat(Se-1," of `columns` missing `fixed='left'` prop."));break}}for(var Ke=!0,Xe=U.length-1;Xe>=0;Xe-=1){var dt=U[Xe];if(Ke&&dt.fixed!=="right")Ke=!1;else if(!Ke&&dt.fixed==="right"){warning(!1,"Index ".concat(Xe+1," of `columns` missing `fixed='right'` prop."));break}}}function it(U){return U.map(function(re){var Se=re.fixed,Ue=(0,nt.Z)(re,Ni),Ke=Se;return Se==="left"?Ke="right":Se==="right"&&(Ke="left"),(0,je.Z)({fixed:Ke},Ue)})}function $t(U,re){var Se=U.prefixCls,Ue=U.columns,Ke=U.children,Xe=U.expandable,dt=U.expandedKeys,St=U.columnTitle,le=U.getRowKey,Re=U.onTriggerExpand,Ye=U.expandIcon,et=U.rowExpandable,bt=U.expandIconColumnIndex,_t=U.direction,Mt=U.expandRowByClick,Rt=U.columnWidth,lr=U.fixed,Ar=U.scrollWidth,gr=B.useMemo(function(){return Ue||ve(Ke)},[Ue,Ke]),_r=B.useMemo(function(){if(Xe){var Tr,Ur=gr.slice();if(!Ur.includes(pe)){var wr=bt||0;wr>=0&&Ur.splice(wr,0,pe)}var Zr=Ur.indexOf(pe);Ur=Ur.filter(function(On,di){return On!==pe||di===Zr});var Cn=gr[Zr],Gn;(lr==="left"||lr)&&!bt?Gn="left":(lr==="right"||lr)&&bt===gr.length?Gn="right":Gn=Cn?Cn.fixed:null;var Zn=(Tr={},(0,X.Z)(Tr,vr,{className:"".concat(Se,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,X.Z)(Tr,"title",St),(0,X.Z)(Tr,"fixed",Gn),(0,X.Z)(Tr,"className","".concat(Se,"-row-expand-icon-cell")),(0,X.Z)(Tr,"width",Rt),(0,X.Z)(Tr,"render",function(di,zn,Fi){var vn=le(zn,Fi),_a=dt.has(vn),Hi=et?et(zn):!0,Ri=Ye({prefixCls:Se,expanded:_a,expandable:Hi,record:zn,onExpand:Re});return Mt?B.createElement("span",{onClick:function(Ki){return Ki.stopPropagation()}},Ri):Ri}),Tr);return Ur.map(function(On){return On===pe?Zn:On})}return gr.filter(function(On){return On!==pe})},[Xe,gr,le,dt,Ye,_t]),dn=B.useMemo(function(){var Tr=_r;return re&&(Tr=re(Tr)),Tr.length||(Tr=[{render:function(){return null}}]),Tr},[re,_r,_t]),or=B.useMemo(function(){return _t==="rtl"?it(Te(dn)):Te(dn)},[dn,_t,Ar]),yt=pi(or,Ar),Fn=(0,R.Z)(yt,2),gn=Fn[0],yr=Fn[1];return[dn,gn,yr]}var Qt=$t;function Sr(U){var re,Se=U.prefixCls,Ue=U.record,Ke=U.onExpand,Xe=U.expanded,dt=U.expandable,St="".concat(Se,"-row-expand-icon");if(!dt)return B.createElement("span",{className:L()(St,"".concat(Se,"-row-spaced"))});var le=function(Ye){Ke(Ue,Ye),Ye.stopPropagation()};return B.createElement("span",{className:L()(St,(re={},(0,X.Z)(re,"".concat(Se,"-row-expanded"),Xe),(0,X.Z)(re,"".concat(Se,"-row-collapsed"),!Xe),re)),onClick:le})}function dr(U,re,Se){var Ue=[];function Ke(Xe){(Xe||[]).forEach(function(dt,St){Ue.push(re(dt,St)),Ke(dt[Se])})}return Ke(U),Ue}function Hr(U,re,Se){var Ue=ur(U),Ke=Ue.expandIcon,Xe=Ue.expandedRowKeys,dt=Ue.defaultExpandedRowKeys,St=Ue.defaultExpandAllRows,le=Ue.expandedRowRender,Re=Ue.onExpand,Ye=Ue.onExpandedRowsChange,et=Ue.childrenColumnName,bt=Ke||Sr,_t=et||"children",Mt=B.useMemo(function(){return le?"row":U.expandable&&U.internalHooks===ue&&U.expandable.__PARENT_RENDER_ICON__||re.some(function(or){return or&&(0,Be.Z)(or)==="object"&&or[_t]})?"nest":!1},[!!le,re]),Rt=B.useState(function(){return dt||(St?dr(re,Se,_t):[])}),lr=(0,R.Z)(Rt,2),Ar=lr[0],gr=lr[1],_r=B.useMemo(function(){return new Set(Xe||Ar||[])},[Xe,Ar]),dn=B.useCallback(function(or){var yt=Se(or,re.indexOf(or)),Fn,gn=_r.has(yt);gn?(_r.delete(yt),Fn=(0,nn.Z)(_r)):Fn=[].concat((0,nn.Z)(_r),[yt]),gr(Fn),Re&&Re(!gn,or),Ye&&Ye(Fn)},[Se,_r,re,Re,Ye]);return[Ue,Mt,_r,bt,_t,dn]}function Wr(U,re,Se,Ue){var Ke=U.map(function(Xe,dt){return sr(dt,dt,U,re,Se,Ue==null?void 0:Ue[dt])});return(0,rt.Z)(function(){return Ke},[Ke],function(Xe,dt){return!(0,V.Z)(Xe,dt)})}function en(U){var re=(0,B.useRef)(U),Se=(0,B.useState)({}),Ue=(0,R.Z)(Se,2),Ke=Ue[1],Xe=(0,B.useRef)(null),dt=(0,B.useRef)([]);function St(le){dt.current.push(le);var Re=Promise.resolve();Xe.current=Re,Re.then(function(){if(Xe.current===Re){var Ye=dt.current,et=re.current;dt.current=[],Ye.forEach(function(bt){re.current=bt(re.current)}),Xe.current=null,et!==re.current&&Ke({})}})}return(0,B.useEffect)(function(){return function(){Xe.current=null}},[]),[re.current,St]}function Vr(U){var re=(0,B.useRef)(U||null),Se=(0,B.useRef)();function Ue(){window.clearTimeout(Se.current)}function Ke(dt){re.current=dt,Ue(),Se.current=window.setTimeout(function(){re.current=null,Se.current=void 0},100)}function Xe(){return re.current}return(0,B.useEffect)(function(){return Ue},[]),[Ke,Xe]}function jr(){var U=B.useState(-1),re=(0,R.Z)(U,2),Se=re[0],Ue=re[1],Ke=B.useState(-1),Xe=(0,R.Z)(Ke,2),dt=Xe[0],St=Xe[1],le=B.useCallback(function(Re,Ye){Ue(Re),St(Ye)},[]);return[Se,dt,le]}var Yr=w(47273),mn=(0,Yr.Z)()?window:null;function tn(U,re){var Se=(0,Be.Z)(U)==="object"?U:{},Ue=Se.offsetHeader,Ke=Ue===void 0?0:Ue,Xe=Se.offsetSummary,dt=Xe===void 0?0:Xe,St=Se.offsetScroll,le=St===void 0?0:St,Re=Se.getContainer,Ye=Re===void 0?function(){return mn}:Re,et=Ye()||mn;return B.useMemo(function(){var bt=!!U;return{isSticky:bt,stickyClassName:bt?"".concat(re,"-sticky-holder"):"",offsetHeader:Ke,offsetSummary:dt,offsetScroll:le,container:et}},[le,Ke,dt,re,et])}function Dn(U,re,Se){var Ue=(0,B.useMemo)(function(){for(var Ke=[],Xe=[],dt=0,St=0,le=0;le<re;le+=1)if(Se==="rtl"){Xe[le]=St,St+=U[le]||0;var Re=re-le-1;Ke[Re]=dt,dt+=U[Re]||0}else{Ke[le]=dt,dt+=U[le]||0;var Ye=re-le-1;Xe[Ye]=St,St+=U[Ye]||0}return{left:Ke,right:Xe}},[U,re,Se]);return Ue}var Qn=Dn;function ui(U){var re=U.className,Se=U.children;return B.createElement("div",{className:re},Se)}var Tn=ui,sn=w(8224),Kt=w(55468),Zt=function(re,Se){var Ue,Ke,Xe=re.scrollBodyRef,dt=re.onScroll,St=re.offsetScroll,le=re.container,Re=h(j,"prefixCls"),Ye=((Ue=Xe.current)===null||Ue===void 0?void 0:Ue.scrollWidth)||0,et=((Ke=Xe.current)===null||Ke===void 0?void 0:Ke.clientWidth)||0,bt=Ye&&et*(et/Ye),_t=B.useRef(),Mt=en({scrollLeft:0,isHiddenScrollBar:!1}),Rt=(0,R.Z)(Mt,2),lr=Rt[0],Ar=Rt[1],gr=B.useRef({delta:0,x:0}),_r=B.useState(!1),dn=(0,R.Z)(_r,2),or=dn[0],yt=dn[1],Fn=function(){yt(!1)},gn=function(Zr){Zr.persist(),gr.current.delta=Zr.pageX-lr.scrollLeft,gr.current.x=0,yt(!0),Zr.preventDefault()},yr=function(Zr){var Cn,Gn=Zr||((Cn=window)===null||Cn===void 0?void 0:Cn.event),Zn=Gn.buttons;if(!or||Zn===0){or&&yt(!1);return}var On=gr.current.x+Zr.pageX-gr.current.x-gr.current.delta;On<=0&&(On=0),On+bt>=et&&(On=et-bt),dt({scrollLeft:On/et*(Ye+2)}),gr.current.x=Zr.pageX},Tr=function(){if(Xe.current){var Zr=(0,Kt.os)(Xe.current).top,Cn=Zr+Xe.current.offsetHeight,Gn=le===window?document.documentElement.scrollTop+window.innerHeight:(0,Kt.os)(le).top+le.clientHeight;Cn-(0,qe.Z)()<=Gn||Zr>=Gn-St?Ar(function(Zn){return(0,je.Z)((0,je.Z)({},Zn),{},{isHiddenScrollBar:!0})}):Ar(function(Zn){return(0,je.Z)((0,je.Z)({},Zn),{},{isHiddenScrollBar:!1})})}},Ur=function(Zr){Ar(function(Cn){return(0,je.Z)((0,je.Z)({},Cn),{},{scrollLeft:Zr/Ye*et||0})})};return B.useImperativeHandle(Se,function(){return{setScrollLeft:Ur}}),B.useEffect(function(){var wr=(0,sn.Z)(document.body,"mouseup",Fn,!1),Zr=(0,sn.Z)(document.body,"mousemove",yr,!1);return Tr(),function(){wr.remove(),Zr.remove()}},[bt,or]),B.useEffect(function(){var wr=(0,sn.Z)(le,"scroll",Tr,!1),Zr=(0,sn.Z)(window,"resize",Tr,!1);return function(){wr.remove(),Zr.remove()}},[le]),B.useEffect(function(){lr.isHiddenScrollBar||Ar(function(wr){var Zr=Xe.current;return Zr?(0,je.Z)((0,je.Z)({},wr),{},{scrollLeft:Zr.scrollLeft/Zr.scrollWidth*Zr.clientWidth}):wr})},[lr.isHiddenScrollBar]),Ye<=et||!bt||lr.isHiddenScrollBar?null:B.createElement("div",{style:{height:(0,qe.Z)(),width:et,bottom:St},className:"".concat(Re,"-sticky-scroll")},B.createElement("div",{onMouseDown:gn,ref:_t,className:L()("".concat(Re,"-sticky-scroll-bar"),(0,X.Z)({},"".concat(Re,"-sticky-scroll-bar-active"),or)),style:{width:"".concat(bt,"px"),transform:"translate3d(".concat(lr.scrollLeft,"px, 0, 0)")}}))},qt=B.forwardRef(Zt);function er(U){return null}var Jt=er;function Qr(U){return null}var kr=Qr,Gr="rc-table",Mn=[],Pn={};function si(){return"No Data"}function qn(U){var re,Se=(0,je.Z)({rowKey:"key",prefixCls:Gr,emptyText:si},U),Ue=Se.prefixCls,Ke=Se.className,Xe=Se.rowClassName,dt=Se.style,St=Se.data,le=Se.rowKey,Re=Se.scroll,Ye=Se.tableLayout,et=Se.direction,bt=Se.title,_t=Se.footer,Mt=Se.summary,Rt=Se.caption,lr=Se.id,Ar=Se.showHeader,gr=Se.components,_r=Se.emptyText,dn=Se.onRow,or=Se.onHeaderRow,yt=Se.internalHooks,Fn=Se.transformColumns,gn=Se.internalRefs,yr=Se.tailor,Tr=Se.sticky,Ur=St||Mn,wr=!!Ur.length,Zr=yt===ue,Cn=B.useCallback(function(va,Ba){return(0,De.Z)(gr,va)||Ba},[gr]),Gn=B.useMemo(function(){return typeof le=="function"?le:function(va){var Ba=va&&va[le];return Ba}},[le]),Zn=Cn(["body"]),On=jr(),di=(0,R.Z)(On,3),zn=di[0],Fi=di[1],vn=di[2],_a=Hr(Se,Ur,Gn),Hi=(0,R.Z)(_a,6),Ri=Hi[0],ia=Hi[1],Ki=Hi[2],Qa=Hi[3],Wi=Hi[4],As=Hi[5],En=Re==null?void 0:Re.x,fi=B.useState(0),gi=(0,R.Z)(fi,2),$n=gi[0],ai=gi[1],kn=Qt((0,je.Z)((0,je.Z)((0,je.Z)({},Se),Ri),{},{expandable:!!Ri.expandedRowRender,columnTitle:Ri.columnTitle,expandedKeys:Ki,getRowKey:Gn,onTriggerExpand:As,expandIcon:Qa,expandIconColumnIndex:Ri.expandIconColumnIndex,direction:et,scrollWidth:Zr&&yr&&typeof En=="number"?En:null}),Zr?Fn:null),Qi=(0,R.Z)(kn,3),Gi=Qi[0],qi=Qi[1],Mo=Qi[2],Ii=Mo!=null?Mo:En,ns=B.useMemo(function(){return{columns:Gi,flattenColumns:qi}},[Gi,qi]),ro=B.useRef(),Qo=B.useRef(),wn=B.useRef(),no=B.useRef(),Cs=B.useRef(),ga=B.useState(!1),qr=(0,R.Z)(ga,2),fa=qr[0],so=qr[1],Va=B.useState(!1),Si=(0,R.Z)(Va,2),bo=Si[0],Ko=Si[1],Bs=en(new Map),gs=(0,R.Z)(Bs,2),is=gs[0],us=gs[1],bl=Ee(qi),as=bl.map(function(va){return is.get(va)}),$s=B.useMemo(function(){return as},[as.join("_")]),ds=Qn($s,qi.length,et),Lo=Re&&At(Re.y),wo=Re&&At(Ii)||!!Ri.fixed,qs=wo&&qi.some(function(va){var Ba=va.fixed;return Ba}),Nl=B.useRef(),zl=tn(Tr,Ue),wl=zl.isSticky,BA=zl.offsetHeader,Xc=zl.offsetSummary,xa=zl.offsetScroll,ea=zl.stickyClassName,vs=zl.container,go=B.useMemo(function(){return Mt==null?void 0:Mt(Ur)},[Mt,Ur]),fs=(Lo||wl)&&B.isValidElement(go)&&go.type===x&&go.props.fixed,Ss,Es,_s;Lo&&(Es={overflowY:"scroll",maxHeight:Re.y}),wo&&(Ss={overflowX:"auto"},Lo||(Es={overflowY:"hidden"}),_s={width:Ii===!0?"auto":Ii,minWidth:"100%"});var Dc=B.useCallback(function(va,Ba){(0,xe.Z)(ro.current)&&us(function(Zs){if(Zs.get(va)!==Ba){var Wl=new Map(Zs);return Wl.set(va,Ba),Wl}return Zs})},[]),ll=Vr(null),gc=(0,R.Z)(ll,2),Ca=gc[0],So=gc[1];function xl(va,Ba){Ba&&(typeof Ba=="function"?Ba(va):Ba.scrollLeft!==va&&(Ba.scrollLeft=va,Ba.scrollLeft!==va&&setTimeout(function(){Ba.scrollLeft=va},0)))}var rc=(0,Ne.Z)(function(va){var Ba=va.currentTarget,Zs=va.scrollLeft,Wl=et==="rtl",Ol=typeof Zs=="number"?Zs:Ba.scrollLeft,VA=Ba||Pn;if(!So()||So()===VA){var os;Ca(VA),xl(Ol,Qo.current),xl(Ol,wn.current),xl(Ol,Cs.current),xl(Ol,(os=Nl.current)===null||os===void 0?void 0:os.setScrollLeft)}var ys=Ba||Qo.current;if(ys){var ac=ys.scrollWidth,FA=ys.clientWidth;if(ac===FA){so(!1),Ko(!1);return}Wl?(so(-Ol<ac-FA),Ko(-Ol>0)):(so(Ol>0),Ko(Ol<ac-FA))}}),Ns=function(){wo&&wn.current?rc({currentTarget:wn.current}):(so(!1),Ko(!1))},HA=function(Ba){var Zs=Ba.width;Zs!==$n&&(Ns(),ai(ro.current?ro.current.offsetWidth:Zs))},Cl=B.useRef(!1);B.useEffect(function(){Cl.current&&Ns()},[wo,St,Gi.length]),B.useEffect(function(){Cl.current=!0},[]);var jA=B.useState(0),zA=(0,R.Z)(jA,2),Jc=zA[0],$l=zA[1],vc=B.useState(!0),nc=(0,R.Z)(vc,2),fn=nc[0],Fs=nc[1];B.useEffect(function(){(!yr||!Zr)&&(wn.current instanceof Element?$l((0,qe.o)(wn.current).width):$l((0,qe.o)(no.current).width)),Fs((0,be.G)("position","sticky"))},[]),B.useEffect(function(){Zr&&gn&&(gn.body.current=wn.current)});var SA=B.useCallback(function(va){return B.createElement(B.Fragment,null,B.createElement(Xi,va),fs==="top"&&B.createElement(Ce,va,go))},[fs,go]),AA=B.useCallback(function(va){return B.createElement(Ce,va,go)},[go]),sa=Cn(["table"],"table"),EA=B.useMemo(function(){return Ye||(qs?Ii==="max-content"?"auto":"fixed":Lo||wl||qi.some(function(va){var Ba=va.ellipsis;return Ba})?"fixed":"auto")},[Lo,qs,qi,Ye,wl]),$A,Zl={colWidths:$s,columCount:qi.length,stickyOffsets:ds,onHeaderRow:or,fixHeader:Lo,scroll:Re},Xo=B.useMemo(function(){return wr?null:typeof _r=="function"?_r():_r},[wr,_r]),ZA=B.createElement(Mr,{data:Ur,measureColumnWidth:Lo||wo||wl}),Pc=B.createElement(Sn,{colWidths:qi.map(function(va){var Ba=va.width;return Ba}),columns:qi}),yc=Rt!=null?B.createElement("caption",{className:"".concat(Ue,"-caption")},Rt):void 0,_A=(0,Et.Z)(Se,{data:!0}),Vl=(0,Et.Z)(Se,{aria:!0});if(Lo||wl){var ic;typeof Zn=="function"?(ic=Zn(Ur,{scrollbarSize:Jc,ref:wn,onScroll:rc}),Zl.colWidths=qi.map(function(va,Ba){var Zs=va.width,Wl=Ba===qi.length-1?Zs-Jc:Zs;return typeof Wl=="number"&&!Number.isNaN(Wl)?Wl:0})):ic=B.createElement("div",{style:(0,je.Z)((0,je.Z)({},Ss),Es),onScroll:rc,ref:wn,className:L()("".concat(Ue,"-body"))},B.createElement(sa,(0,z.Z)({style:(0,je.Z)((0,je.Z)({},_s),{},{tableLayout:EA})},Vl),yc,Pc,ZA,!fs&&go&&B.createElement(Ce,{stickyOffsets:ds,flattenColumns:qi,columns:Gi},go)));var lo=(0,je.Z)((0,je.Z)((0,je.Z)({noData:!Ur.length,maxContentScroll:wo&&Ii==="max-content"},Zl),ns),{},{direction:et,stickyClassName:ea,onScroll:rc});$A=B.createElement(B.Fragment,null,Ar!==!1&&B.createElement(ni,(0,z.Z)({},lo,{stickyTopOffset:BA,className:"".concat(Ue,"-header"),ref:Qo}),SA),ic,fs&&fs!=="top"&&B.createElement(ni,(0,z.Z)({},lo,{stickyBottomOffset:Xc,className:"".concat(Ue,"-summary"),ref:Cs}),AA),wl&&B.createElement(qt,{ref:Nl,offsetScroll:xa,scrollBodyRef:wn,onScroll:rc,container:vs}))}else $A=B.createElement("div",{style:(0,je.Z)((0,je.Z)({},Ss),Es),className:L()("".concat(Ue,"-content")),onScroll:rc,ref:wn},B.createElement(sa,(0,z.Z)({style:(0,je.Z)((0,je.Z)({},_s),{},{tableLayout:EA})},Vl),yc,Pc,Ar!==!1&&B.createElement(Xi,(0,z.Z)({},Zl,ns)),ZA,go&&B.createElement(Ce,{stickyOffsets:ds,flattenColumns:qi,columns:Gi},go)));var Os=B.createElement("div",(0,z.Z)({className:L()(Ue,Ke,(re={},(0,X.Z)(re,"".concat(Ue,"-rtl"),et==="rtl"),(0,X.Z)(re,"".concat(Ue,"-ping-left"),fa),(0,X.Z)(re,"".concat(Ue,"-ping-right"),bo),(0,X.Z)(re,"".concat(Ue,"-layout-fixed"),Ye==="fixed"),(0,X.Z)(re,"".concat(Ue,"-fixed-header"),Lo),(0,X.Z)(re,"".concat(Ue,"-fixed-column"),qs),(0,X.Z)(re,"".concat(Ue,"-scroll-horizontal"),wo),(0,X.Z)(re,"".concat(Ue,"-has-fix-left"),qi[0]&&qi[0].fixed),(0,X.Z)(re,"".concat(Ue,"-has-fix-right"),qi[qi.length-1]&&qi[qi.length-1].fixed==="right"),re)),style:dt,id:lr,ref:ro},_A),bt&&B.createElement(Tn,{className:"".concat(Ue,"-title")},bt(Ur)),B.createElement("div",{ref:no,className:"".concat(Ue,"-container")},$A),_t&&B.createElement(Tn,{className:"".concat(Ue,"-footer")},_t(Ur)));wo&&(Os=B.createElement(Ge.Z,{onResize:HA},Os));var ts=Wr(qi,ds,et,Gi),bc=B.useMemo(function(){return{scrollX:Ii,prefixCls:Ue,getComponent:Cn,scrollbarSize:Jc,direction:et,fixedInfoList:ts,isSticky:wl,supportSticky:fn,componentWidth:$n,fixHeader:Lo,fixColumn:qs,horizonScroll:wo,tableLayout:EA,rowClassName:Xe,expandedRowClassName:Ri.expandedRowClassName,expandIcon:Qa,expandableType:ia,expandRowByClick:Ri.expandRowByClick,expandedRowRender:Ri.expandedRowRender,onTriggerExpand:As,expandIconColumnIndex:Ri.expandIconColumnIndex,indentSize:Ri.indentSize,allColumnsFixedLeft:qi.every(function(va){return va.fixed==="left"}),emptyNode:Xo,columns:Gi,flattenColumns:qi,onColumnResize:Dc,hoverStartRow:zn,hoverEndRow:Fi,onHover:vn,rowExpandable:Ri.rowExpandable,onRow:dn,getRowKey:Gn,expandedKeys:Ki,childrenColumnName:Wi}},[Ii,Ue,Cn,Jc,et,ts,wl,fn,$n,Lo,qs,wo,EA,Xe,Ri.expandedRowClassName,Qa,ia,Ri.expandRowByClick,Ri.expandedRowRender,As,Ri.expandIconColumnIndex,Ri.indentSize,Xo,Gi,qi,Dc,zn,Fi,vn,Ri.rowExpandable,dn,Gn,Ki,Wi]);return B.createElement(j.Provider,{value:bc},Os)}function bi(U){return ce(qn,U)}var Jn=bi();Jn.EXPAND_COLUMN=pe,Jn.INTERNAL_HOOKS=ue,Jn.Column=Jt,Jn.ColumnGroup=kr,Jn.Summary=H;var Hn=Jn,on=w(6790),mi=E(null),Ln=E(null);function ei(U,re,Se){var Ue=re||1;return Se[U+Ue]-(Se[U]||0)}function vi(U){var re=U.rowInfo,Se=U.column,Ue=U.colIndex,Ke=U.indent,Xe=U.index,dt=U.renderIndex,St=U.record,le=U.style,Re=U.className,Ye=U.inverse,et=U.getHeight,bt=Se.render,_t=Se.dataIndex,Mt=Se.className,Rt=Se.width,lr=h(Ln,["columnsOffset"]),Ar=lr.columnsOffset,gr=gt(re,Se,Ue,Ke,Xe),_r=gr.key,dn=gr.fixedInfo,or=gr.appendCellNode,yt=gr.additionalCellProps,Fn=yt.style,gn=yt.colSpan,yr=gn===void 0?1:gn,Tr=yt.rowSpan,Ur=Tr===void 0?1:Tr,wr=Ue-1,Zr=ei(wr,yr,Ar),Cn=yr>1?Rt-Zr:0,Gn=(0,je.Z)((0,je.Z)((0,je.Z)({},Fn),le),{},{flex:"0 0 ".concat(Zr,"px"),width:"".concat(Zr,"px"),marginRight:Cn,pointerEvents:"auto"}),Zn=B.useMemo(function(){return Ye?Ur<=1:yr===0||Ur===0||Ur>1},[Ur,yr,Ye]);Zn?Gn.visibility="hidden":Ye&&(Gn.height=et==null?void 0:et(Ur));var On=Zn?function(){return null}:bt,di={};return(Ur===0||yr===0)&&(di.rowSpan=1,di.colSpan=1),B.createElement(pr,(0,z.Z)({className:L()(Mt,Re),ellipsis:Se.ellipsis,align:Se.align,scope:Se.rowScope,component:"div",prefixCls:re.prefixCls,key:_r,record:St,index:Xe,renderIndex:dt,dataIndex:_t,render:On,shouldCellUpdate:Se.shouldCellUpdate},dn,{appendNode:or,additionalProps:(0,je.Z)((0,je.Z)({},yt),{},{style:Gn},di)}))}var Ei=vi,Xn=["data","index","className","rowKey","style","extra","getHeight"],Bi=B.forwardRef(function(U,re){var Se=U.data,Ue=U.index,Ke=U.className,Xe=U.rowKey,dt=U.style,St=U.extra,le=U.getHeight,Re=(0,nt.Z)(U,Xn),Ye=Se.record,et=Se.indent,bt=Se.index,_t=h(j,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Mt=_t.scrollX,Rt=_t.flattenColumns,lr=_t.prefixCls,Ar=_t.fixColumn,gr=_t.componentWidth,_r=Pe(Ye,Xe,Ue,et),dn=_r.rowSupportExpand,or=_r.expanded,yt=_r.rowProps,Fn=_r.expandedRowRender,gn=_r.expandedRowClassName,yr;if(dn&&or){var Tr=Fn(Ye,Ue,et+1,or),Ur=gn==null?void 0:gn(Ye,Ue,et),wr={};Ar&&(wr={style:(0,X.Z)({},"--virtual-width","".concat(gr,"px"))});var Zr="".concat(lr,"-expanded-row-cell");yr=B.createElement("div",{className:L()("".concat(lr,"-expanded-row"),"".concat(lr,"-expanded-row-level-").concat(et+1),Ur)},B.createElement(pr,{component:"div",prefixCls:lr,className:L()(Zr,(0,X.Z)({},"".concat(Zr,"-fixed"),Ar)),additionalProps:wr},Tr))}var Cn=(0,je.Z)((0,je.Z)({},dt),{},{width:Mt});St&&(Cn.position="absolute",Cn.pointerEvents="none");var Gn=B.createElement("div",(0,z.Z)({},yt,Re,{ref:dn?null:re,className:L()(Ke,"".concat(lr,"-row"),yt==null?void 0:yt.className,(0,X.Z)({},"".concat(lr,"-row-extra"),St)),style:(0,je.Z)((0,je.Z)({},Cn),yt==null?void 0:yt.style)}),Rt.map(function(Zn,On){return B.createElement(Ei,{key:On,rowInfo:_r,column:Zn,colIndex:On,indent:et,index:Ue,renderIndex:bt,record:Ye,inverse:St,getHeight:le})}));return dn?B.createElement("div",{ref:re},Gn,yr):Gn}),ra=G(Bi),ii=ra,An=B.forwardRef(function(U,re){var Se=U.data,Ue=U.onScroll,Ke=h(j,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Xe=Ke.flattenColumns,dt=Ke.onColumnResize,St=Ke.getRowKey,le=Ke.expandedKeys,Re=Ke.prefixCls,Ye=Ke.childrenColumnName,et=Ke.emptyNode,bt=Ke.scrollX,_t=h(mi),Mt=_t.scrollY,Rt=_t.listItemHeight,lr=B.useRef(),Ar=pt(Se,Ye,le,St),gr=B.useMemo(function(){var yr=0;return Xe.map(function(Tr){var Ur=Tr.width,wr=Tr.key;return yr+=Ur,[wr,Ur,yr]})},[Xe]),_r=B.useMemo(function(){return gr.map(function(yr){return yr[2]})},[gr]);B.useEffect(function(){gr.forEach(function(yr){var Tr=(0,R.Z)(yr,2),Ur=Tr[0],wr=Tr[1];dt(Ur,wr)})},[gr]),B.useImperativeHandle(re,function(){var yr={};return Object.defineProperty(yr,"scrollLeft",{get:function(){var Ur;return((Ur=lr.current)===null||Ur===void 0?void 0:Ur.getScrollInfo().x)||0},set:function(Ur){var wr;(wr=lr.current)===null||wr===void 0||wr.scrollTo({left:Ur})}}),yr});var dn=function(Tr,Ur){var wr,Zr=(wr=Ar[Ur])===null||wr===void 0?void 0:wr.record,Cn=Tr.onCell;if(Cn){var Gn,Zn=Cn(Zr,Ur);return(Gn=Zn==null?void 0:Zn.rowSpan)!==null&&Gn!==void 0?Gn:1}return 1},or=function(Tr){var Ur=Tr.start,wr=Tr.end,Zr=Tr.getSize,Cn=Tr.offsetY;if(wr<0)return null;for(var Gn=Xe.filter(function(En){return dn(En,Ur)===0}),Zn=Ur,On=function(fi){if(Gn=Gn.filter(function(gi){return dn(gi,fi)===0}),!Gn.length)return Zn=fi,"break"},di=Ur;di>=0;di-=1){var zn=On(di);if(zn==="break")break}for(var Fi=Xe.filter(function(En){return dn(En,wr)!==1}),vn=wr,_a=function(fi){if(Fi=Fi.filter(function(gi){return dn(gi,fi)!==1}),!Fi.length)return vn=Math.max(fi-1,wr),"break"},Hi=wr;Hi<Ar.length;Hi+=1){var Ri=_a(Hi);if(Ri==="break")break}for(var ia=[],Ki=function(fi){var gi=Ar[fi];if(!gi)return"continue";Xe.some(function($n){return dn($n,fi)>1})&&ia.push(fi)},Qa=Zn;Qa<=vn;Qa+=1)var Wi=Ki(Qa);var As=ia.map(function(En){var fi=Ar[En],gi=St(fi.record,En),$n=function(Qi){var Gi=En+Qi-1,qi=St(Ar[Gi].record,Gi),Mo=Zr(gi,qi);return Mo.bottom-Mo.top},ai=Zr(gi);return B.createElement(ii,{key:En,data:fi,rowKey:gi,index:En,style:{top:-Cn+ai.top},extra:!0,getHeight:$n})});return As},yt=B.useMemo(function(){return{columnsOffset:_r}},[_r]),Fn="".concat(Re,"-tbody"),gn;return Ar.length?gn=B.createElement(on.Z,{fullHeight:!1,ref:lr,className:L()(Fn,"".concat(Fn,"-virtual")),height:Mt,itemHeight:Rt||24,data:Ar,itemKey:function(Tr){return St(Tr.record)},scrollWidth:bt,onVirtualScroll:function(Tr){var Ur=Tr.x;Ue({scrollLeft:Ur})},extraRender:or},function(yr,Tr,Ur){var wr=St(yr.record,Tr);return B.createElement(ii,(0,z.Z)({data:yr,rowKey:wr,index:Tr},Ur))}):gn=B.createElement("div",{className:L()("".concat(Re,"-placeholder"))},B.createElement(pr,{component:"div",prefixCls:Re},et)),B.createElement(Ln.Provider,{value:yt},gn)}),rn=G(An),Un=rn,xn=function(re,Se){var Ue=Se.ref,Ke=Se.onScroll;return B.createElement(Un,{ref:Ue,data:re,onScroll:Ke})},jn=100;function ci(U){var re=U.columns,Se=U.scroll,Ue=U.prefixCls,Ke=Ue===void 0?Gr:Ue,Xe=U.className,dt=U.listItemHeight,St=Se||{},le=St.x,Re=St.y;typeof le!="number"&&(le=((re||[]).length+1)*jn),typeof Re!="number"&&(Re=500);var Ye=B.useMemo(function(){return{scrollY:Re,listItemHeight:dt}},[Re,dt]);return B.createElement(mi.Provider,{value:Ye},B.createElement(Hn,(0,z.Z)({},U,{className:L()(Xe,"".concat(Ke,"-virtual")),scroll:(0,je.Z)((0,je.Z)({},Se),{},{x:le}),components:{body:xn},columns:re,internalHooks:ue,tailor:!0})))}function wi(U){return ce(ci,U)}var Aa=wi(),Yi=null;function ao(U){return null}var Yn=ao;function Nn(U){return null}var _i=Nn,xi=w(2738),ha=w(68031),No=w(36355),na=w(93891),$i=w(19716),ja=w(8628),Ma=w(31724),eo=w(58421),vo=w(71418),ba=w(88088);function Ai(U){return function(Se){let{prefixCls:Ue,onExpand:Ke,record:Xe,expanded:dt,expandable:St}=Se;const le=`${Ue}-row-expand-icon`;return B.createElement("button",{type:"button",onClick:Re=>{Ke(Xe,Re),Re.stopPropagation()},className:L()(le,{[`${le}-spaced`]:!St,[`${le}-expanded`]:St&&dt,[`${le}-collapsed`]:St&&!dt}),"aria-label":dt?U.collapse:U.expand,"aria-expanded":dt})}}var ua=Ai;function Do(U,re){return"key"in U&&U.key!==void 0&&U.key!==null?U.key:U.dataIndex?Array.isArray(U.dataIndex)?U.dataIndex.join("."):U.dataIndex:re}function uo(U,re){return re?`${re}-${U}`:`${U}`}function Xa(U,re){return typeof U=="function"?U(re):U}function Di(U,re){const Se=Xa(U,re);return Object.prototype.toString.call(Se)==="[object Object]"?"":Se}var Po={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},fo=Po,il=w(7657),$o=function(re,Se){return B.createElement(il.Z,(0,z.Z)({},re,{ref:Se,icon:fo}))},Hs=B.forwardRef($o),Zo=Hs,vl=w(56762);function za(U){const re=B.useRef(U),Se=(0,vl.Z)();return[()=>re.current,Ue=>{re.current=Ue,Se()}]}var Ra=w(3113),Ea=w(24905),js=w(38854),yi=w(64165),Zi=w(20834),Pi=w(40875),Vi=w(5112),da=w(17574),La=w(47472),Vo=w(92832);function _o(U){let{value:re,onChange:Se,filterSearch:Ue,tablePrefixCls:Ke,locale:Xe}=U;return Ue?B.createElement("div",{className:`${Ke}-filter-dropdown-search`},B.createElement(Vo.default,{prefix:B.createElement(La.Z,null),placeholder:Xe.filterSearchPlaceholder,onChange:Se,value:re,htmlSize:1,className:`${Ke}-filter-dropdown-search-input`})):null}var Bo=_o,$a=w(10228);const wa=U=>{const{keyCode:re}=U;re===$a.Z.ENTER&&U.stopPropagation()};var Na=B.forwardRef((U,re)=>B.createElement("div",{className:U.className,onClick:Se=>Se.stopPropagation(),onKeyDown:wa,ref:re},U.children));function Ja(U){let re=[];return(U||[]).forEach(Se=>{let{value:Ue,children:Ke}=Se;re.push(Ue),Ke&&(re=[].concat((0,nn.Z)(re),(0,nn.Z)(Ja(Ke))))}),re}function oo(U){return U.some(re=>{let{children:Se}=re;return Se})}function Ta(U,re){return typeof re=="string"||typeof re=="number"?re==null?void 0:re.toString().toLowerCase().includes(U.trim().toLowerCase()):!1}function ka(U){let{filters:re,prefixCls:Se,filteredKeys:Ue,filterMultiple:Ke,searchValue:Xe,filterSearch:dt}=U;return re.map((St,le)=>{const Re=String(St.value);if(St.children)return{key:Re||le,label:St.text,popupClassName:`${Se}-dropdown-submenu`,children:ka({filters:St.children,prefixCls:Se,filteredKeys:Ue,filterMultiple:Ke,searchValue:Xe,filterSearch:dt})};const Ye=Ke?Ea.default:Vi.ZP,et={key:St.value!==void 0?Re:le,label:B.createElement(B.Fragment,null,B.createElement(Ye,{checked:Ue.includes(Re)}),B.createElement("span",null,St.text))};return Xe.trim()?typeof dt=="function"?dt(Xe,St)?et:null:Ta(Xe,St.text)?et:null:et})}function Fo(U){var re,Se;const{tablePrefixCls:Ue,prefixCls:Ke,column:Xe,dropdownPrefixCls:dt,columnKey:St,filterMultiple:le,filterMode:Re="menu",filterSearch:Ye=!1,filterState:et,triggerFilter:bt,locale:_t,children:Mt,getPopupContainer:Rt}=U,{filterDropdownOpen:lr,onFilterDropdownOpenChange:Ar,filterResetToDefaultFilteredValue:gr,defaultFilteredValue:_r,filterDropdownVisible:dn,onFilterDropdownVisibleChange:or}=Xe,[yt,Fn]=B.useState(!1),gn=!!(et&&(!((re=et.filteredKeys)===null||re===void 0)&&re.length||et.forceFiltered)),yr=kn=>{Fn(kn),Ar==null||Ar(kn),or==null||or(kn)},Tr=(Se=lr!=null?lr:dn)!==null&&Se!==void 0?Se:yt,Ur=et==null?void 0:et.filteredKeys,[wr,Zr]=za(Ur||[]),Cn=kn=>{let{selectedKeys:Qi}=kn;Zr(Qi)},Gn=(kn,Qi)=>{let{node:Gi,checked:qi}=Qi;Cn(le?{selectedKeys:kn}:{selectedKeys:qi&&Gi.key?[Gi.key]:[]})};B.useEffect(()=>{yt&&Cn({selectedKeys:Ur||[]})},[Ur]);const[Zn,On]=B.useState([]),di=kn=>{On(kn)},[zn,Fi]=B.useState(""),vn=kn=>{const{value:Qi}=kn.target;Fi(Qi)};B.useEffect(()=>{yt||Fi("")},[yt]);const _a=kn=>{const Qi=kn&&kn.length?kn:null;if(Qi===null&&(!et||!et.filteredKeys)||(0,V.Z)(Qi,et==null?void 0:et.filteredKeys,!0))return null;bt({column:Xe,key:St,filteredKeys:Qi})},Hi=()=>{yr(!1),_a(wr())},Ri=function(){let{confirm:kn,closeDropdown:Qi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};kn&&_a([]),Qi&&yr(!1),Fi(""),Zr(gr?(_r||[]).map(Gi=>String(Gi)):[])},ia=function(){let{closeDropdown:kn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};kn&&yr(!1),_a(wr())},Ki=kn=>{kn&&Ur!==void 0&&Zr(Ur||[]),yr(kn),!kn&&!Xe.filterDropdown&&Hi()},Qa=L()({[`${dt}-menu-without-submenu`]:!oo(Xe.filters||[])}),Wi=kn=>{if(kn.target.checked){const Qi=Ja(Xe==null?void 0:Xe.filters).map(Gi=>String(Gi));Zr(Qi)}else Zr([])},As=kn=>{let{filters:Qi}=kn;return(Qi||[]).map((Gi,qi)=>{const Mo=String(Gi.value),Ii={title:Gi.text,key:Gi.value!==void 0?Mo:qi};return Gi.children&&(Ii.children=As({filters:Gi.children})),Ii})},En=kn=>{var Qi;return Object.assign(Object.assign({},kn),{text:kn.title,value:kn.key,children:((Qi=kn.children)===null||Qi===void 0?void 0:Qi.map(Gi=>En(Gi)))||[]})};let fi;if(typeof Xe.filterDropdown=="function")fi=Xe.filterDropdown({prefixCls:`${dt}-custom`,setSelectedKeys:kn=>Cn({selectedKeys:kn}),selectedKeys:wr(),confirm:ia,clearFilters:Ri,filters:Xe.filters,visible:Tr,close:()=>{yr(!1)}});else if(Xe.filterDropdown)fi=Xe.filterDropdown;else{const kn=wr()||[],Qi=()=>(Xe.filters||[]).length===0?B.createElement(yi.Z,{image:yi.Z.PRESENTED_IMAGE_SIMPLE,description:_t.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Re==="tree"?B.createElement(B.Fragment,null,B.createElement(Bo,{filterSearch:Ye,value:zn,onChange:vn,tablePrefixCls:Ue,locale:_t}),B.createElement("div",{className:`${Ue}-filter-dropdown-tree`},le?B.createElement(Ea.default,{checked:kn.length===Ja(Xe.filters).length,indeterminate:kn.length>0&&kn.length<Ja(Xe.filters).length,className:`${Ue}-filter-dropdown-checkall`,onChange:Wi},_t.filterCheckall):null,B.createElement(da.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:le,checkStrictly:!le,className:`${dt}-menu`,onCheck:Gn,checkedKeys:kn,selectedKeys:kn,showIcon:!1,treeData:As({filters:Xe.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:zn.trim()?qi=>typeof Ye=="function"?Ye(zn,En(qi)):Ta(zn,qi.title):void 0}))):B.createElement(B.Fragment,null,B.createElement(Bo,{filterSearch:Ye,value:zn,onChange:vn,tablePrefixCls:Ue,locale:_t}),B.createElement(Zi.default,{selectable:!0,multiple:le,prefixCls:`${dt}-menu`,className:Qa,onSelect:Cn,onDeselect:Cn,selectedKeys:kn,getPopupContainer:Rt,openKeys:Zn,onOpenChange:di,items:ka({filters:Xe.filters||[],filterSearch:Ye,prefixCls:Ke,filteredKeys:wr(),filterMultiple:le,searchValue:zn})})),Gi=()=>gr?(0,V.Z)((_r||[]).map(qi=>String(qi)),kn,!0):kn.length===0;fi=B.createElement(B.Fragment,null,Qi(),B.createElement("div",{className:`${Ke}-dropdown-btns`},B.createElement(Ra.ZP,{type:"link",size:"small",disabled:Gi(),onClick:()=>Ri()},_t.filterReset),B.createElement(Ra.ZP,{type:"primary",size:"small",onClick:Hi},_t.filterConfirm)))}Xe.filterDropdown&&(fi=B.createElement(Pi.J,{selectable:void 0},fi));const gi=()=>B.createElement(Na,{className:`${Ke}-dropdown`},fi);let $n;typeof Xe.filterIcon=="function"?$n=Xe.filterIcon(gn):Xe.filterIcon?$n=Xe.filterIcon:$n=B.createElement(Zo,null);const{direction:ai}=B.useContext(No.E_);return B.createElement("div",{className:`${Ke}-column`},B.createElement("span",{className:`${Ue}-column-title`},Mt),B.createElement(js.Z,{dropdownRender:gi,trigger:["click"],open:Tr,onOpenChange:Ki,getPopupContainer:Rt,placement:ai==="rtl"?"bottomLeft":"bottomRight"},B.createElement("span",{role:"button",tabIndex:-1,className:L()(`${Ke}-trigger`,{active:gn}),onClick:kn=>{kn.stopPropagation()}},$n)))}var Ll=Fo;function cs(U,re,Se){let Ue=[];return(U||[]).forEach((Ke,Xe)=>{var dt;const St=uo(Xe,Se);if(Ke.filters||"filterDropdown"in Ke||"onFilter"in Ke)if("filteredValue"in Ke){let le=Ke.filteredValue;"filterDropdown"in Ke||(le=(dt=le==null?void 0:le.map(String))!==null&&dt!==void 0?dt:le),Ue.push({column:Ke,key:Do(Ke,St),filteredKeys:le,forceFiltered:Ke.filtered})}else Ue.push({column:Ke,key:Do(Ke,St),filteredKeys:re&&Ke.defaultFilteredValue?Ke.defaultFilteredValue:void 0,forceFiltered:Ke.filtered});"children"in Ke&&(Ue=[].concat((0,nn.Z)(Ue),(0,nn.Z)(cs(Ke.children,re,St))))}),Ue}function dl(U,re,Se,Ue,Ke,Xe,dt,St){return Se.map((le,Re)=>{const Ye=uo(Re,St),{filterMultiple:et=!0,filterMode:bt,filterSearch:_t}=le;let Mt=le;if(Mt.filters||Mt.filterDropdown){const Rt=Do(Mt,Ye),lr=Ue.find(Ar=>{let{key:gr}=Ar;return Rt===gr});Mt=Object.assign(Object.assign({},Mt),{title:Ar=>B.createElement(Ll,{tablePrefixCls:U,prefixCls:`${U}-filter`,dropdownPrefixCls:re,column:Mt,columnKey:Rt,filterState:lr,filterMultiple:et,filterMode:bt,filterSearch:_t,triggerFilter:Xe,locale:Ke,getPopupContainer:dt},Xa(le.title,Ar))})}return"children"in Mt&&(Mt=Object.assign(Object.assign({},Mt),{children:dl(U,re,Mt.children,Ue,Ke,Xe,dt,Ye)})),Mt})}function Oo(U){const re={};return U.forEach(Se=>{let{key:Ue,filteredKeys:Ke,column:Xe}=Se;const{filters:dt,filterDropdown:St}=Xe;if(St)re[Ue]=Ke||null;else if(Array.isArray(Ke)){const le=Ja(dt);re[Ue]=le.filter(Re=>Ke.includes(String(Re)))}else re[Ue]=null}),re}function ks(U,re){return re.reduce((Se,Ue)=>{const{column:{onFilter:Ke,filters:Xe},filteredKeys:dt}=Ue;return Ke&&dt&&dt.length?Se.filter(St=>dt.some(le=>{const Re=Ja(Xe),Ye=Re.findIndex(bt=>String(bt)===String(le)),et=Ye!==-1?Re[Ye]:le;return Ke(et,St)})):Se},U)}const Io=U=>U.flatMap(re=>"children"in re?[re].concat((0,nn.Z)(Io(re.children||[]))):[re]);function Kn(U){let{prefixCls:re,dropdownPrefixCls:Se,mergedColumns:Ue,onFilterChange:Ke,getPopupContainer:Xe,locale:dt}=U;const St=B.useMemo(()=>Io(Ue||[]),[Ue]),[le,Re]=B.useState(()=>cs(St,!0)),Ye=B.useMemo(()=>{const Mt=cs(St,!1);if(Mt.length===0)return Mt;let Rt=!0,lr=!0;if(Mt.forEach(Ar=>{let{filteredKeys:gr}=Ar;gr!==void 0?Rt=!1:lr=!1}),Rt){const Ar=(St||[]).map((gr,_r)=>Do(gr,uo(_r)));return le.filter(gr=>{let{key:_r}=gr;return Ar.includes(_r)}).map(gr=>{const _r=St[Ar.findIndex(dn=>dn===gr.key)];return Object.assign(Object.assign({},gr),{column:Object.assign(Object.assign({},gr.column),_r),forceFiltered:_r.filtered})})}return Mt},[St,le]),et=B.useMemo(()=>Oo(Ye),[Ye]),bt=Mt=>{const Rt=Ye.filter(lr=>{let{key:Ar}=lr;return Ar!==Mt.key});Rt.push(Mt),Re(Rt),Ke(Oo(Rt),Rt)};return[Mt=>dl(re,Se,Mt,Ye,dt,bt,Xe),Ye,et]}var kl=Kn;function To(U,re,Se){const Ue=B.useRef({});function Ke(Xe){if(!Ue.current||Ue.current.data!==U||Ue.current.childrenColumnName!==re||Ue.current.getRowKey!==Se){let St=function(le){le.forEach((Re,Ye)=>{const et=Se(Re,Ye);dt.set(et,Re),Re&&typeof Re=="object"&&re in Re&&St(Re[re]||[])})};const dt=new Map;St(U),Ue.current={data:U,childrenColumnName:re,kvMap:dt,getRowKey:Se}}return Ue.current.kvMap.get(Xe)}return[Ke]}var Hl=w(50371),zs=function(U,re){var Se={};for(var Ue in U)Object.prototype.hasOwnProperty.call(U,Ue)&&re.indexOf(Ue)<0&&(Se[Ue]=U[Ue]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,Ue=Object.getOwnPropertySymbols(U);Ke<Ue.length;Ke++)re.indexOf(Ue[Ke])<0&&Object.prototype.propertyIsEnumerable.call(U,Ue[Ke])&&(Se[Ue[Ke]]=U[Ue[Ke]]);return Se};const ms=10;function Da(U,re){const Se={current:U.current,pageSize:U.pageSize};return Object.keys(re&&typeof re=="object"?re:{}).forEach(Ke=>{const Xe=U[Ke];typeof Xe!="function"&&(Se[Ke]=Xe)}),Se}function Uo(U,re,Se){const Ue=Se&&typeof Se=="object"?Se:{},{total:Ke=0}=Ue,Xe=zs(Ue,["total"]),[dt,St]=(0,B.useState)(()=>({current:"defaultCurrent"in Xe?Xe.defaultCurrent:1,pageSize:"defaultPageSize"in Xe?Xe.defaultPageSize:ms})),le=(0,Hl.Z)(dt,Xe,{total:Ke>0?Ke:U}),Re=Math.ceil((Ke||U)/le.pageSize);le.current>Re&&(le.current=Re||1);const Ye=(bt,_t)=>{St({current:bt!=null?bt:1,pageSize:_t||le.pageSize})},et=(bt,_t)=>{var Mt;Se&&((Mt=Se.onChange)===null||Mt===void 0||Mt.call(Se,bt,_t)),Ye(bt,_t),re(bt,_t||(le==null?void 0:le.pageSize))};return Se===!1?[{},()=>{}]:[Object.assign(Object.assign({},le),{onChange:et}),Ye]}var jl=Uo,tc=w(84105),fl=w(35654),ma=w(90782),oa=w(71430),ho=w(18929);const Za={},to="SELECT_ALL",Ro="SELECT_INVERT",Ya="SELECT_NONE",Wo=[],Ds=(U,re)=>{let Se=[];return(re||[]).forEach(Ue=>{Se.push(Ue),Ue&&typeof Ue=="object"&&U in Ue&&(Se=[].concat((0,nn.Z)(Se),(0,nn.Z)(Ds(U,Ue[U]))))}),Se};var Xs=(U,re)=>{const{preserveSelectedRowKeys:Se,selectedRowKeys:Ue,defaultSelectedRowKeys:Ke,getCheckboxProps:Xe,onChange:dt,onSelect:St,onSelectAll:le,onSelectInvert:Re,onSelectNone:Ye,onSelectMultiple:et,columnWidth:bt,type:_t,selections:Mt,fixed:Rt,renderCell:lr,hideSelectAll:Ar,checkStrictly:gr=!0}=re||{},{prefixCls:_r,data:dn,pageData:or,getRecordByKey:yt,getRowKey:Fn,expandType:gn,childrenColumnName:yr,locale:Tr,getPopupContainer:Ur}=U,[wr,Zr]=(0,ho.Z)(Ue||Ke||Wo,{value:Ue}),Cn=B.useRef(new Map),Gn=(0,B.useCallback)(En=>{if(Se){const fi=new Map;En.forEach(gi=>{let $n=yt(gi);!$n&&Cn.current.has(gi)&&($n=Cn.current.get(gi)),fi.set(gi,$n)}),Cn.current=fi}},[yt,Se]);B.useEffect(()=>{Gn(wr)},[wr]);const{keyEntities:Zn}=(0,B.useMemo)(()=>{if(gr)return{keyEntities:null};let En=dn;if(Se){const fi=new Set(dn.map(($n,ai)=>Fn($n,ai))),gi=Array.from(Cn.current).reduce(($n,ai)=>{let[kn,Qi]=ai;return fi.has(kn)?$n:$n.concat(Qi)},[]);En=[].concat((0,nn.Z)(En),(0,nn.Z)(gi))}return(0,oa.I8)(En,{externalGetKey:Fn,childrenPropName:yr})},[dn,Fn,gr,yr,Se]),On=(0,B.useMemo)(()=>Ds(yr,or),[yr,or]),di=(0,B.useMemo)(()=>{const En=new Map;return On.forEach((fi,gi)=>{const $n=Fn(fi,gi),ai=(Xe?Xe(fi):null)||{};En.set($n,ai)}),En},[On,Fn,Xe]),zn=(0,B.useCallback)(En=>{var fi;return!!(!((fi=di.get(Fn(En)))===null||fi===void 0)&&fi.disabled)},[di,Fn]),[Fi,vn]=(0,B.useMemo)(()=>{if(gr)return[wr||[],[]];const{checkedKeys:En,halfCheckedKeys:fi}=(0,ma.S)(wr,!0,Zn,zn);return[En||[],fi]},[wr,gr,Zn,zn]),_a=(0,B.useMemo)(()=>{const En=_t==="radio"?Fi.slice(0,1):Fi;return new Set(En)},[Fi,_t]),Hi=(0,B.useMemo)(()=>_t==="radio"?new Set:new Set(vn),[vn,_t]),[Ri,ia]=(0,B.useState)(null);B.useEffect(()=>{re||Zr(Wo)},[!!re]);const Ki=(0,B.useCallback)((En,fi)=>{let gi,$n;Gn(En),Se?(gi=En,$n=En.map(ai=>Cn.current.get(ai))):(gi=[],$n=[],En.forEach(ai=>{const kn=yt(ai);kn!==void 0&&(gi.push(ai),$n.push(kn))})),Zr(gi),dt==null||dt(gi,$n,{type:fi})},[Zr,yt,dt,Se]),Qa=(0,B.useCallback)((En,fi,gi,$n)=>{if(St){const ai=gi.map(kn=>yt(kn));St(yt(En),fi,ai,$n)}Ki(gi,"single")},[St,yt,Ki]),Wi=(0,B.useMemo)(()=>!Mt||Ar?null:(Mt===!0?[to,Ro,Ya]:Mt).map(fi=>fi===to?{key:"all",text:Tr.selectionAll,onSelect(){Ki(dn.map((gi,$n)=>Fn(gi,$n)).filter(gi=>{const $n=di.get(gi);return!($n!=null&&$n.disabled)||_a.has(gi)}),"all")}}:fi===Ro?{key:"invert",text:Tr.selectInvert,onSelect(){const gi=new Set(_a);or.forEach((ai,kn)=>{const Qi=Fn(ai,kn),Gi=di.get(Qi);Gi!=null&&Gi.disabled||(gi.has(Qi)?gi.delete(Qi):gi.add(Qi))});const $n=Array.from(gi);Re&&Re($n),Ki($n,"invert")}}:fi===Ya?{key:"none",text:Tr.selectNone,onSelect(){Ye==null||Ye(),Ki(Array.from(_a).filter(gi=>{const $n=di.get(gi);return $n==null?void 0:$n.disabled}),"none")}}:fi).map(fi=>Object.assign(Object.assign({},fi),{onSelect:function(){for(var gi,$n,ai=arguments.length,kn=new Array(ai),Qi=0;Qi<ai;Qi++)kn[Qi]=arguments[Qi];($n=fi.onSelect)===null||$n===void 0||(gi=$n).call.apply(gi,[fi].concat(kn)),ia(null)}})),[Mt,_a,or,Fn,Re,Ki]);return[(0,B.useCallback)(En=>{var fi;if(!re)return En.filter(ga=>ga!==Za);let gi=(0,nn.Z)(En);const $n=new Set(_a),ai=On.map(Fn).filter(ga=>!di.get(ga).disabled),kn=ai.every(ga=>$n.has(ga)),Qi=ai.some(ga=>$n.has(ga)),Gi=()=>{const ga=[];kn?ai.forEach(fa=>{$n.delete(fa),ga.push(fa)}):ai.forEach(fa=>{$n.has(fa)||($n.add(fa),ga.push(fa))});const qr=Array.from($n);le==null||le(!kn,qr.map(fa=>yt(fa)),ga.map(fa=>yt(fa))),Ki(qr,"all"),ia(null)};let qi;if(_t!=="radio"){let ga;if(Wi){const Si={getPopupContainer:Ur,items:Wi.map((bo,Ko)=>{const{key:Bs,text:gs,onSelect:is}=bo;return{key:Bs!=null?Bs:Ko,onClick:()=>{is==null||is(ai)},label:gs}})};ga=B.createElement("div",{className:`${_r}-selection-extra`},B.createElement(js.Z,{menu:Si,getPopupContainer:Ur},B.createElement("span",null,B.createElement(tc.Z,null))))}const qr=On.map((Si,bo)=>{const Ko=Fn(Si,bo),Bs=di.get(Ko)||{};return Object.assign({checked:$n.has(Ko)},Bs)}).filter(Si=>{let{disabled:bo}=Si;return bo}),fa=!!qr.length&&qr.length===On.length,so=fa&&qr.every(Si=>{let{checked:bo}=Si;return bo}),Va=fa&&qr.some(Si=>{let{checked:bo}=Si;return bo});qi=!Ar&&B.createElement("div",{className:`${_r}-selection`},B.createElement(Ea.default,{checked:fa?so:!!On.length&&kn,indeterminate:fa?!so&&Va:!kn&&Qi,onChange:Gi,disabled:On.length===0||fa,"aria-label":ga?"Custom selection":"Select all",skipGroup:!0}),ga)}let Mo;_t==="radio"?Mo=(ga,qr,fa)=>{const so=Fn(qr,fa),Va=$n.has(so);return{node:B.createElement(Vi.ZP,Object.assign({},di.get(so),{checked:Va,onClick:Si=>Si.stopPropagation(),onChange:Si=>{$n.has(so)||Qa(so,!0,[so],Si.nativeEvent)}})),checked:Va}}:Mo=(ga,qr,fa)=>{var so;const Va=Fn(qr,fa),Si=$n.has(Va),bo=Hi.has(Va),Ko=di.get(Va);let Bs;return gn==="nest"?Bs=bo:Bs=(so=Ko==null?void 0:Ko.indeterminate)!==null&&so!==void 0?so:bo,{node:B.createElement(Ea.default,Object.assign({},Ko,{indeterminate:Bs,checked:Si,skipGroup:!0,onClick:gs=>gs.stopPropagation(),onChange:gs=>{let{nativeEvent:is}=gs;const{shiftKey:us}=is;let bl=-1,as=-1;if(us&&gr){const $s=new Set([Ri,Va]);ai.some((ds,Lo)=>{if($s.has(ds))if(bl===-1)bl=Lo;else return as=Lo,!0;return!1})}if(as!==-1&&bl!==as&&gr){const $s=ai.slice(bl,as+1),ds=[];Si?$s.forEach(wo=>{$n.has(wo)&&(ds.push(wo),$n.delete(wo))}):$s.forEach(wo=>{$n.has(wo)||(ds.push(wo),$n.add(wo))});const Lo=Array.from($n);et==null||et(!Si,Lo.map(wo=>yt(wo)),ds.map(wo=>yt(wo))),Ki(Lo,"multiple")}else{const $s=Fi;if(gr){const ds=Si?(0,fl._5)($s,Va):(0,fl.L0)($s,Va);Qa(Va,!Si,ds,is)}else{const ds=(0,ma.S)([].concat((0,nn.Z)($s),[Va]),!0,Zn,zn),{checkedKeys:Lo,halfCheckedKeys:wo}=ds;let qs=Lo;if(Si){const Nl=new Set(Lo);Nl.delete(Va),qs=(0,ma.S)(Array.from(Nl),{checked:!1,halfCheckedKeys:wo},Zn,zn).checkedKeys}Qa(Va,!Si,qs,is)}}ia(Si?null:Va)}})),checked:Si}};const Ii=(ga,qr,fa)=>{const{node:so,checked:Va}=Mo(ga,qr,fa);return lr?lr(Va,qr,fa,so):so};if(!gi.includes(Za))if(gi.findIndex(ga=>{var qr;return((qr=ga[vr])===null||qr===void 0?void 0:qr.columnType)==="EXPAND_COLUMN"})===0){const[ga,...qr]=gi;gi=[ga,Za].concat((0,nn.Z)(qr))}else gi=[Za].concat((0,nn.Z)(gi));const ns=gi.indexOf(Za);gi=gi.filter((ga,qr)=>ga!==Za||qr===ns);const ro=gi[ns-1],Qo=gi[ns+1];let wn=Rt;wn===void 0&&((Qo==null?void 0:Qo.fixed)!==void 0?wn=Qo.fixed:(ro==null?void 0:ro.fixed)!==void 0&&(wn=ro.fixed)),wn&&ro&&((fi=ro[vr])===null||fi===void 0?void 0:fi.columnType)==="EXPAND_COLUMN"&&ro.fixed===void 0&&(ro.fixed=wn);const no=L()(`${_r}-selection-col`,{[`${_r}-selection-col-with-dropdown`]:Mt&&_t==="checkbox"}),Cs={fixed:wn,width:bt,className:`${_r}-selection-column`,title:re.columnTitle||qi,render:Ii,onCell:re.onCell,[vr]:{className:no}};return gi.map(ga=>ga===Za?Cs:ga)},[Fn,On,re,Fi,_a,Hi,bt,Wi,gn,Ri,di,et,Qa,zn]),_a]},al=w(89489),Wc=w(59477),Dl=w(6848);const Js="ascend",lA="descend";function cA(U){return typeof U.sorter=="object"&&typeof U.sorter.multiple=="number"?U.sorter.multiple:!1}function hc(U){return typeof U=="function"?U:U&&typeof U=="object"&&U.compare?U.compare:!1}function wA(U,re){return re?U[U.indexOf(re)+1]:U[0]}function Pl(U,re,Se){let Ue=[];function Ke(Xe,dt){Ue.push({column:Xe,key:Do(Xe,dt),multiplePriority:cA(Xe),sortOrder:Xe.sortOrder})}return(U||[]).forEach((Xe,dt)=>{const St=uo(dt,Se);Xe.children?("sortOrder"in Xe&&Ke(Xe,St),Ue=[].concat((0,nn.Z)(Ue),(0,nn.Z)(Pl(Xe.children,re,St)))):Xe.sorter&&("sortOrder"in Xe?Ke(Xe,St):re&&Xe.defaultSortOrder&&Ue.push({column:Xe,key:Do(Xe,St),multiplePriority:cA(Xe),sortOrder:Xe.defaultSortOrder}))}),Ue}function Ys(U,re,Se,Ue,Ke,Xe,dt,St){return(re||[]).map((le,Re)=>{const Ye=uo(Re,St);let et=le;if(et.sorter){const bt=et.sortDirections||Ke,_t=et.showSorterTooltip===void 0?dt:et.showSorterTooltip,Mt=Do(et,Ye),Rt=Se.find(gn=>{let{key:yr}=gn;return yr===Mt}),lr=Rt?Rt.sortOrder:null,Ar=wA(bt,lr);let gr;if(le.sortIcon)gr=le.sortIcon({sortOrder:lr});else{const gn=bt.includes(Js)&&B.createElement(Wc.Z,{className:L()(`${U}-column-sorter-up`,{active:lr===Js})}),yr=bt.includes(lA)&&B.createElement(al.Z,{className:L()(`${U}-column-sorter-down`,{active:lr===lA})});gr=B.createElement("span",{className:L()(`${U}-column-sorter`,{[`${U}-column-sorter-full`]:!!(gn&&yr)})},B.createElement("span",{className:`${U}-column-sorter-inner`,"aria-hidden":"true"},gn,yr))}const{cancelSort:_r,triggerAsc:dn,triggerDesc:or}=Xe||{};let yt=_r;Ar===lA?yt=or:Ar===Js&&(yt=dn);const Fn=typeof _t=="object"?_t:{title:yt};et=Object.assign(Object.assign({},et),{className:L()(et.className,{[`${U}-column-sort`]:lr}),title:gn=>{const yr=B.createElement("div",{className:`${U}-column-sorters`},B.createElement("span",{className:`${U}-column-title`},Xa(le.title,gn)),gr);return _t?B.createElement(Dl.Z,Object.assign({},Fn),yr):yr},onHeaderCell:gn=>{const yr=le.onHeaderCell&&le.onHeaderCell(gn)||{},Tr=yr.onClick,Ur=yr.onKeyDown;yr.onClick=Cn=>{Ue({column:le,key:Mt,sortOrder:Ar,multiplePriority:cA(le)}),Tr==null||Tr(Cn)},yr.onKeyDown=Cn=>{Cn.keyCode===$a.Z.ENTER&&(Ue({column:le,key:Mt,sortOrder:Ar,multiplePriority:cA(le)}),Ur==null||Ur(Cn))};const wr=Di(le.title,{}),Zr=wr==null?void 0:wr.toString();return lr?yr["aria-sort"]=lr==="ascend"?"ascending":"descending":yr["aria-label"]=Zr||"",yr.className=L()(yr.className,`${U}-column-has-sorters`),yr.tabIndex=0,le.ellipsis&&(yr.title=(wr!=null?wr:"").toString()),yr}})}return"children"in et&&(et=Object.assign(Object.assign({},et),{children:Ys(U,et.children,Se,Ue,Ke,Xe,dt,Ye)})),et})}function ol(U){const{column:re,sortOrder:Se}=U;return{column:re,order:Se,field:re.dataIndex,columnKey:re.key}}function sl(U){const re=U.filter(Se=>{let{sortOrder:Ue}=Se;return Ue}).map(ol);return re.length===0&&U.length?Object.assign(Object.assign({},ol(U[U.length-1])),{column:void 0}):re.length<=1?re[0]||{}:re}function Oa(U,re,Se){const Ue=re.slice().sort((dt,St)=>St.multiplePriority-dt.multiplePriority),Ke=U.slice(),Xe=Ue.filter(dt=>{let{column:{sorter:St},sortOrder:le}=dt;return hc(St)&&le});return Xe.length?Ke.sort((dt,St)=>{for(let le=0;le<Xe.length;le+=1){const Re=Xe[le],{column:{sorter:Ye},sortOrder:et}=Re,bt=hc(Ye);if(bt&&et){const _t=bt(dt,St,et);if(_t!==0)return et===Js?_t:-_t}}return 0}).map(dt=>{const St=dt[Se];return St?Object.assign(Object.assign({},dt),{[Se]:Oa(St,re,Se)}):dt}):Ke}function po(U){let{prefixCls:re,mergedColumns:Se,onSorterChange:Ue,sortDirections:Ke,tableLocale:Xe,showSorterTooltip:dt}=U;const[St,le]=B.useState(Pl(Se,!0)),Re=B.useMemo(()=>{let Mt=!0;const Rt=Pl(Se,!1);if(!Rt.length)return St;const lr=[];function Ar(_r){Mt?lr.push(_r):lr.push(Object.assign(Object.assign({},_r),{sortOrder:null}))}let gr=null;return Rt.forEach(_r=>{gr===null?(Ar(_r),_r.sortOrder&&(_r.multiplePriority===!1?Mt=!1:gr=!0)):(gr&&_r.multiplePriority!==!1||(Mt=!1),Ar(_r))}),lr},[Se,St]),Ye=B.useMemo(()=>{const Mt=Re.map(Rt=>{let{column:lr,sortOrder:Ar}=Rt;return{column:lr,order:Ar}});return{sortColumns:Mt,sortColumn:Mt[0]&&Mt[0].column,sortOrder:Mt[0]&&Mt[0].order}},[Re]);function et(Mt){let Rt;Mt.multiplePriority===!1||!Re.length||Re[0].multiplePriority===!1?Rt=[Mt]:Rt=[].concat((0,nn.Z)(Re.filter(lr=>{let{key:Ar}=lr;return Ar!==Mt.key})),[Mt]),le(Rt),Ue(sl(Rt),Rt)}return[Mt=>Ys(re,Mt,Re,et,Ke,Xe,dt),Re,Ye,()=>sl(Re)]}function mo(U,re){return U.map(Se=>{const Ue=Object.assign({},Se);return Ue.title=Xa(Se.title,re),"children"in Ue&&(Ue.children=mo(Ue.children,re)),Ue})}function Go(U){return[B.useCallback(Se=>mo(Se,U),[U])]}var Ps=bi((U,re)=>{const{_renderTimes:Se}=U,{_renderTimes:Ue}=re;return Se!==Ue}),kc=wi((U,re)=>{const{_renderTimes:Se}=U,{_renderTimes:Ue}=re;return Se!==Ue}),yl=w(64993),Gc=w(17313),xA=w(83116),CA=w(37613),mc=U=>{const{componentCls:re}=U,Se=`${U.lineWidth}px ${U.lineType} ${U.tableBorderColor}`,Ue=(Ke,Xe,dt)=>({[`&${re}-${Ke}`]:{[`> ${re}-container`]:{[`> ${re}-content, > ${re}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${re}-expanded-row-fixed`]:{margin:`-${Xe}px -${dt+U.lineWidth}px`}}}}}});return{[`${re}-wrapper`]:{[`${re}${re}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${re}-title`]:{border:Se,borderBottom:0},[`> ${re}-container`]:{borderInlineStart:Se,borderTop:Se,[`
|
|
|
> ${re}-content,
|
|
|
> ${re}-header,
|
|
|
> ${re}-body,
|
|
|
> ${re}-summary
|
|
|
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:Se},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Se},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${re}-cell-fix-right-first::after`]:{borderInlineEnd:Se}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${re}-expanded-row-fixed`]:{margin:`-${U.tablePaddingVertical}px -${U.tablePaddingHorizontal+U.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:U.lineWidth,bottom:0,borderInlineEnd:Se,content:'""'}}}}}},[`&${re}-scroll-horizontal`]:{[`> ${re}-container > ${re}-body`]:{"> table > tbody":{[`
|
|
|
> tr${re}-expanded-row,
|
|
|
> tr${re}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Ue("middle",U.tablePaddingVerticalMiddle,U.tablePaddingHorizontalMiddle)),Ue("small",U.tablePaddingVerticalSmall,U.tablePaddingHorizontalSmall)),{[`> ${re}-footer`]:{border:Se,borderTop:0}}),[`${re}-cell`]:{[`${re}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${U.lineWidth}px 0 ${U.lineWidth}px ${U.tableHeaderBg}`}},[`${re}-bordered ${re}-cell-scrollbar`]:{borderInlineEnd:Se}}}},KA=U=>{const{componentCls:re}=U;return{[`${re}-wrapper`]:{[`${re}-cell-ellipsis`]:Object.assign(Object.assign({},Gc.vS),{wordBreak:"keep-all",[`
|
|
|
&${re}-cell-fix-left-last,
|
|
|
&${re}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${re}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${re}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},td=U=>{const{componentCls:re}=U;return{[`${re}-wrapper`]:{[`${re}-tbody > tr${re}-placeholder`]:{textAlign:"center",color:U.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:U.colorBgContainer}}}}},lu=w(15969),Ru=U=>{const{componentCls:re,antCls:Se,controlInteractiveSize:Ue,motionDurationSlow:Ke,lineWidth:Xe,paddingXS:dt,lineType:St,tableBorderColor:le,tableExpandIconBg:Re,tableExpandColumnWidth:Ye,borderRadius:et,fontSize:bt,fontSizeSM:_t,lineHeight:Mt,tablePaddingVertical:Rt,tablePaddingHorizontal:lr,tableExpandedRowBg:Ar,paddingXXS:gr}=U,_r=Ue/2-Xe,dn=_r*2+Xe*3,or=`${Xe}px ${St} ${le}`,yt=gr-Xe;return{[`${re}-wrapper`]:{[`${re}-expand-icon-col`]:{width:Ye},[`${re}-row-expand-icon-cell`]:{textAlign:"center",[`${re}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${re}-row-indent`]:{height:1,float:"left"},[`${re}-row-expand-icon`]:Object.assign(Object.assign({},(0,lu.N)(U)),{position:"relative",float:"left",boxSizing:"border-box",width:dn,height:dn,padding:0,color:"inherit",lineHeight:`${dn}px`,background:Re,border:or,borderRadius:et,transform:`scale(${Ue/dn})`,transition:`all ${Ke}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Ke} ease-out`,content:'""'},"&::before":{top:_r,insetInlineEnd:yt,insetInlineStart:yt,height:Xe},"&::after":{top:yt,bottom:yt,insetInlineStart:_r,width:Xe,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${re}-row-indent + ${re}-row-expand-icon`]:{marginTop:(bt*Mt-Xe*3)/2-Math.ceil((_t*1.4-Xe*3)/2),marginInlineEnd:dt},[`tr${re}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Ar}},[`${Se}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${re}-expanded-row-fixed`]:{position:"relative",margin:`-${Rt}px -${lr}px`,padding:`${Rt}px ${lr}px`}}}},c=U=>{const{componentCls:re,antCls:Se,iconCls:Ue,tableFilterDropdownWidth:Ke,tableFilterDropdownSearchWidth:Xe,paddingXXS:dt,paddingXS:St,colorText:le,lineWidth:Re,lineType:Ye,tableBorderColor:et,tableHeaderIconColor:bt,fontSizeSM:_t,tablePaddingHorizontal:Mt,borderRadius:Rt,motionDurationSlow:lr,colorTextDescription:Ar,colorPrimary:gr,tableHeaderFilterActiveBg:_r,colorTextDisabled:dn,tableFilterDropdownBg:or,tableFilterDropdownHeight:yt,controlItemBgHover:Fn,controlItemBgActive:gn,boxShadowSecondary:yr,filterDropdownMenuBg:Tr}=U,Ur=`${Se}-dropdown`,wr=`${re}-filter-dropdown`,Zr=`${Se}-tree`,Cn=`${Re}px ${Ye} ${et}`;return[{[`${re}-wrapper`]:{[`${re}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${re}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-dt,marginInline:`${dt}px ${-Mt/2}px`,padding:`0 ${dt}px`,color:bt,fontSize:_t,borderRadius:Rt,cursor:"pointer",transition:`all ${lr}`,"&:hover":{color:Ar,background:_r},"&.active":{color:gr}}}},{[`${Se}-dropdown`]:{[wr]:Object.assign(Object.assign({},(0,Gc.Wf)(U)),{minWidth:Ke,backgroundColor:or,borderRadius:Rt,boxShadow:yr,overflow:"hidden",[`${Ur}-menu`]:{maxHeight:yt,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Tr,"&:empty::after":{display:"block",padding:`${St}px 0`,color:dn,fontSize:_t,textAlign:"center",content:'"Not Found"'}},[`${wr}-tree`]:{paddingBlock:`${St}px 0`,paddingInline:St,[Zr]:{padding:0},[`${Zr}-treenode ${Zr}-node-content-wrapper:hover`]:{backgroundColor:Fn},[`${Zr}-treenode-checkbox-checked ${Zr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:gn}}},[`${wr}-search`]:{padding:St,borderBottom:Cn,"&-input":{input:{minWidth:Xe},[Ue]:{color:dn}}},[`${wr}-checkall`]:{width:"100%",marginBottom:dt,marginInlineStart:dt},[`${wr}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${St-Re}px ${St}px`,overflow:"hidden",borderTop:Cn}})}},{[`${Se}-dropdown ${wr}, ${wr}-submenu`]:{[`${Se}-checkbox-wrapper + span`]:{paddingInlineStart:St,color:le},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},l=U=>{const{componentCls:re,lineWidth:Se,colorSplit:Ue,motionDurationSlow:Ke,zIndexTableFixed:Xe,tableBg:dt,zIndexTableSticky:St}=U,le=Ue;return{[`${re}-wrapper`]:{[`
|
|
|
${re}-cell-fix-left,
|
|
|
${re}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:Xe,background:dt},[`
|
|
|
${re}-cell-fix-left-first::after,
|
|
|
${re}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Se,width:30,transform:"translateX(100%)",transition:`box-shadow ${Ke}`,content:'""',pointerEvents:"none"},[`${re}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${re}-cell-fix-right-first::after,
|
|
|
${re}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-Se,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Ke}`,content:'""',pointerEvents:"none"},[`${re}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:St+1,width:30,transition:`box-shadow ${Ke}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${re}-ping-left`]:{[`&:not(${re}-has-fix-left) ${re}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${le}`}},[`
|
|
|
${re}-cell-fix-left-first::after,
|
|
|
${re}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${le}`},[`${re}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${re}-ping-right`]:{[`&:not(${re}-has-fix-right) ${re}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${le}`}},[`
|
|
|
${re}-cell-fix-right-first::after,
|
|
|
${re}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${le}`}}}}},F=U=>{const{componentCls:re,antCls:Se}=U;return{[`${re}-wrapper`]:{[`${re}-pagination${Se}-pagination`]:{margin:`${U.margin}px 0`},[`${re}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:U.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},T=U=>{const{componentCls:re,tableRadius:Se}=U;return{[`${re}-wrapper`]:{[re]:{[`${re}-title, ${re}-header`]:{borderRadius:`${Se}px ${Se}px 0 0`},[`${re}-title + ${re}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${re}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Se,borderStartEndRadius:Se,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Se},"> *:last-child":{borderStartEndRadius:Se}}},"&-footer":{borderRadius:`0 0 ${Se}px ${Se}px`}}}}},ae=U=>{const{componentCls:re}=U;return{[`${re}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${re}-pagination-left`]:{justifyContent:"flex-end"},[`${re}-pagination-right`]:{justifyContent:"flex-start"},[`${re}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${re}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${re}-row-indent`]:{float:"right"}}}}},$e=U=>{const{componentCls:re,antCls:Se,iconCls:Ue,fontSizeIcon:Ke,padding:Xe,paddingXS:dt,tableHeaderIconColor:St,tableHeaderIconColorHover:le,tableSelectionColumnWidth:Re}=U;return{[`${re}-wrapper`]:{[`${re}-selection-col`]:{width:Re,[`&${re}-selection-col-with-dropdown`]:{width:Re+Ke+Xe/4}},[`${re}-bordered ${re}-selection-col`]:{width:Re+dt*2,[`&${re}-selection-col-with-dropdown`]:{width:Re+Ke+Xe/4+dt*2}},[`
|
|
|
table tr th${re}-selection-column,
|
|
|
table tr td${re}-selection-column
|
|
|
`]:{paddingInlineEnd:U.paddingXS,paddingInlineStart:U.paddingXS,textAlign:"center",[`${Se}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${re}-selection-column${re}-cell-fix-left`]:{zIndex:U.zIndexTableFixed+1},[`table tr th${re}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${re}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${re}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${U.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${U.tablePaddingHorizontal/4}px`,[Ue]:{color:St,fontSize:Ke,verticalAlign:"baseline","&:hover":{color:le}}}}}},at=U=>{const{componentCls:re}=U,Se=(Ue,Ke,Xe,dt)=>({[`${re}${re}-${Ue}`]:{fontSize:dt,[`
|
|
|
${re}-title,
|
|
|
${re}-footer,
|
|
|
${re}-cell,
|
|
|
${re}-thead > tr > th,
|
|
|
${re}-tbody > tr > th,
|
|
|
${re}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${Ke}px ${Xe}px`},[`${re}-filter-trigger`]:{marginInlineEnd:`-${Xe/2}px`},[`${re}-expanded-row-fixed`]:{margin:`-${Ke}px -${Xe}px`},[`${re}-tbody`]:{[`${re}-wrapper:only-child ${re}`]:{marginBlock:`-${Ke}px`,marginInline:`${U.tableExpandColumnWidth-Xe}px -${Xe}px`}},[`${re}-selection-column`]:{paddingInlineStart:`${Xe/4}px`}}});return{[`${re}-wrapper`]:Object.assign(Object.assign({},Se("middle",U.tablePaddingVerticalMiddle,U.tablePaddingHorizontalMiddle,U.tableFontSizeMiddle)),Se("small",U.tablePaddingVerticalSmall,U.tablePaddingHorizontalSmall,U.tableFontSizeSmall))}},kt=U=>{const{componentCls:re,marginXXS:Se,fontSizeIcon:Ue,tableHeaderIconColor:Ke,tableHeaderIconColorHover:Xe}=U;return{[`${re}-wrapper`]:{[`${re}-thead th${re}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${U.motionDurationSlow}`,"&:hover":{background:U.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:U.colorPrimary},[`
|
|
|
&${re}-cell-fix-left:hover,
|
|
|
&${re}-cell-fix-right:hover
|
|
|
`]:{background:U.tableFixedHeaderSortActiveBg}},[`${re}-thead th${re}-column-sort`]:{background:U.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${re}-column-sort`]:{background:U.tableBodySortBg},[`${re}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${re}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${re}-column-sorter`]:{marginInlineStart:Se,color:Ke,fontSize:0,transition:`color ${U.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Ue,"&.active":{color:U.colorPrimary}},[`${re}-column-sorter-up + ${re}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${re}-column-sorters:hover ${re}-column-sorter`]:{color:Xe}}}},Dt=U=>{const{componentCls:re,opacityLoading:Se,tableScrollThumbBg:Ue,tableScrollThumbBgHover:Ke,tableScrollThumbSize:Xe,tableScrollBg:dt,zIndexTableSticky:St,stickyScrollBarBorderRadius:le}=U,Re=`${U.lineWidth}px ${U.lineType} ${U.tableBorderColor}`;return{[`${re}-wrapper`]:{[`${re}-sticky`]:{"&-holder":{position:"sticky",zIndex:St,background:U.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Xe}px !important`,zIndex:St,display:"flex",alignItems:"center",background:dt,borderTop:Re,opacity:Se,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Xe,backgroundColor:Ue,borderRadius:le,transition:`all ${U.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Ke}}}}}}},Pt=U=>{const{componentCls:re,lineWidth:Se,tableBorderColor:Ue}=U,Ke=`${Se}px ${U.lineType} ${Ue}`;return{[`${re}-wrapper`]:{[`${re}-summary`]:{position:"relative",zIndex:U.zIndexTableFixed,background:U.tableBg,"> tr":{"> th, > td":{borderBottom:Ke}}},[`div${re}-summary`]:{boxShadow:`0 -${Se}px 0 ${Ue}`}}}},xr=U=>{const{componentCls:re}=U,Se=`${U.lineWidth}px ${U.lineType} ${U.tableBorderColor}`,Ue=`${re}-expanded-row-cell`;return{[`${re}-wrapper`]:{[`${re}-tbody-virtual`]:{[`${re}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${re}-cell`]:{borderBottom:Se},[`${re}-expanded-row`]:{[`${Ue}${Ue}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${U.lineWidth}px)`,borderInlineEnd:"none"}}},[`${re}-bordered`]:{[`${re}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Se,position:"absolute"},[`${re}-cell`]:{borderInlineEnd:Se,[`&${re}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-U.lineWidth,borderInlineStart:Se}}}}}}};const Kr=U=>{const{componentCls:re,fontWeightStrong:Se,tablePaddingVertical:Ue,tablePaddingHorizontal:Ke,lineWidth:Xe,lineType:dt,tableBorderColor:St,tableFontSize:le,tableBg:Re,tableRadius:Ye,tableHeaderTextColor:et,motionDurationMid:bt,tableHeaderBg:_t,tableHeaderCellSplitColor:Mt,tableRowHoverBg:Rt,tableSelectedRowBg:lr,tableSelectedRowHoverBg:Ar,tableFooterTextColor:gr,tableFooterBg:_r,paddingContentVerticalLG:dn}=U,or=`${Xe}px ${dt} ${St}`;return{[`${re}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Gc.dF)()),{[re]:Object.assign(Object.assign({},(0,Gc.Wf)(U)),{fontSize:le,background:Re,borderRadius:`${Ye}px ${Ye}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Ye}px ${Ye}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${re}-cell,
|
|
|
${re}-thead > tr > th,
|
|
|
${re}-tbody > tr > th,
|
|
|
${re}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${dn}px ${Ke}px`,overflowWrap:"break-word"},[`${re}-title`]:{padding:`${Ue}px ${Ke}px`},[`${re}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:et,fontWeight:Se,textAlign:"start",background:_t,borderBottom:or,transition:`background ${bt} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${re}-selection-column):not(${re}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Mt,transform:"translateY(-50%)",transition:`background-color ${bt}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${re}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${bt}, border-color ${bt}`,borderBottom:or,[`
|
|
|
> ${re}-wrapper:only-child,
|
|
|
> ${re}-expanded-row-fixed > ${re}-wrapper:only-child
|
|
|
`]:{[re]:{marginBlock:`-${Ue}px`,marginInline:`${U.tableExpandColumnWidth-Ke}px -${Ke}px`,[`${re}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:et,fontWeight:Se,textAlign:"start",background:_t,borderBottom:or,transition:`background ${bt} ease`},[`
|
|
|
&${re}-row:hover > th,
|
|
|
&${re}-row:hover > td,
|
|
|
> th${re}-cell-row-hover,
|
|
|
> td${re}-cell-row-hover
|
|
|
`]:{background:Rt},[`&${re}-row-selected`]:{"> th, > td":{background:lr},"&:hover > th, &:hover > td":{background:Ar}}}},[`${re}-footer`]:{padding:`${Ue}px ${Ke}px`,color:gr,background:_r}})}};var hn=(0,xA.Z)("Table",U=>{const{colorTextHeading:re,colorSplit:Se,colorIcon:Ue,colorIconHover:Ke,opacityLoading:Xe,colorBgContainer:dt,controlInteractiveSize:St,headerBg:le,headerColor:Re,headerSortActiveBg:Ye,headerSortHoverBg:et,bodySortBg:bt,rowHoverBg:_t,rowSelectedBg:Mt,rowSelectedHoverBg:Rt,rowExpandedBg:lr,cellPaddingBlock:Ar,cellPaddingInline:gr,cellPaddingBlockMD:_r,cellPaddingInlineMD:dn,cellPaddingBlockSM:or,cellPaddingInlineSM:yt,borderColor:Fn,footerBg:gn,footerColor:yr,headerBorderRadius:Tr,cellFontSize:Ur,cellFontSizeMD:wr,cellFontSizeSM:Zr,headerSplitColor:Cn,fixedHeaderSortActiveBg:Gn,headerFilterHoverBg:Zn,filterDropdownBg:On,expandIconBg:di,selectionColumnWidth:zn,stickyScrollBarBg:Fi}=U,vn=new yl.C(Ue),_a=new yl.C(Ke),Hi=2,Ri=(0,CA.TS)(U,{tableFontSize:Ur,tableBg:dt,tableRadius:Tr,tablePaddingVertical:Ar,tablePaddingHorizontal:gr,tablePaddingVerticalMiddle:_r,tablePaddingHorizontalMiddle:dn,tablePaddingVerticalSmall:or,tablePaddingHorizontalSmall:yt,tableBorderColor:Fn,tableHeaderTextColor:Re,tableHeaderBg:le,tableFooterTextColor:yr,tableFooterBg:gn,tableHeaderCellSplitColor:Cn,tableHeaderSortBg:Ye,tableHeaderSortHoverBg:et,tableHeaderIconColor:vn.clone().setAlpha(vn.getAlpha()*Xe).toRgbString(),tableHeaderIconColorHover:_a.clone().setAlpha(_a.getAlpha()*Xe).toRgbString(),tableBodySortBg:bt,tableFixedHeaderSortActiveBg:Gn,tableHeaderFilterActiveBg:Zn,tableFilterDropdownBg:On,tableRowHoverBg:_t,tableSelectedRowBg:Mt,tableSelectedRowHoverBg:Rt,zIndexTableFixed:Hi,zIndexTableSticky:Hi+1,tableFontSizeMiddle:wr,tableFontSizeSmall:Zr,tableSelectionColumnWidth:zn,tableExpandIconBg:di,tableExpandColumnWidth:St+2*U.padding,tableExpandedRowBg:lr,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Fi,tableScrollThumbBgHover:re,tableScrollBg:Se});return[Kr(Ri),F(Ri),Pt(Ri),kt(Ri),c(Ri),mc(Ri),T(Ri),Ru(Ri),Pt(Ri),td(Ri),$e(Ri),l(Ri),Dt(Ri),KA(Ri),at(Ri),ae(Ri),xr(Ri)]},U=>{const{colorFillAlter:re,colorBgContainer:Se,colorTextHeading:Ue,colorFillSecondary:Ke,colorFillContent:Xe,controlItemBgActive:dt,controlItemBgActiveHover:St,padding:le,paddingSM:Re,paddingXS:Ye,colorBorderSecondary:et,borderRadiusLG:bt,fontSize:_t,controlHeight:Mt,colorTextPlaceholder:Rt}=U,lr=new yl.C(Ke).onBackground(Se).toHexShortString(),Ar=new yl.C(Xe).onBackground(Se).toHexShortString(),gr=new yl.C(re).onBackground(Se).toHexShortString();return{headerBg:gr,headerColor:Ue,headerSortActiveBg:lr,headerSortHoverBg:Ar,bodySortBg:gr,rowHoverBg:gr,rowSelectedBg:dt,rowSelectedHoverBg:St,rowExpandedBg:re,cellPaddingBlock:le,cellPaddingInline:le,cellPaddingBlockMD:Re,cellPaddingInlineMD:Ye,cellPaddingBlockSM:Ye,cellPaddingInlineSM:Ye,borderColor:et,headerBorderRadius:bt,footerBg:gr,footerColor:Ue,cellFontSize:_t,cellFontSizeMD:_t,cellFontSizeSM:_t,headerSplitColor:et,fixedHeaderSortActiveBg:lr,headerFilterHoverBg:Xe,filterDropdownMenuBg:Se,filterDropdownBg:Se,expandIconBg:Se,selectionColumnWidth:Mt,stickyScrollBarBg:Rt,stickyScrollBarBorderRadius:100}});const Ir=[],Vt=(U,re)=>{const{prefixCls:Se,className:Ue,rootClassName:Ke,style:Xe,size:dt,bordered:St,dropdownPrefixCls:le,dataSource:Re,pagination:Ye,rowSelection:et,rowKey:bt="key",rowClassName:_t,columns:Mt,children:Rt,childrenColumnName:lr,onChange:Ar,getPopupContainer:gr,loading:_r,expandIcon:dn,expandable:or,expandedRowRender:yt,expandIconColumnIndex:Fn,indentSize:gn,scroll:yr,sortDirections:Tr,locale:Ur,showSorterTooltip:wr=!0,virtual:Zr}=U,Cn=B.useMemo(()=>Mt||ve(Rt),[Mt,Rt]),Gn=B.useMemo(()=>Cn.some(xa=>xa.responsive),[Cn]),Zn=(0,ja.Z)(Gn),On=B.useMemo(()=>{const xa=new Set(Object.keys(Zn).filter(ea=>Zn[ea]));return Cn.filter(ea=>!ea.responsive||ea.responsive.some(vs=>xa.has(vs)))},[Cn,Zn]),di=(0,xi.Z)(U,["className","style","columns"]),{locale:zn=Ma.Z,direction:Fi,table:vn,renderEmpty:_a,getPrefixCls:Hi,getPopupContainer:Ri}=B.useContext(No.E_),ia=(0,$i.Z)(dt),Ki=Object.assign(Object.assign({},zn.Table),Ur),Qa=Re||Ir,Wi=Hi("table",Se),As=Hi("dropdown",le),En=Object.assign({childrenColumnName:lr,expandIconColumnIndex:Fn},or),{childrenColumnName:fi="children"}=En,gi=B.useMemo(()=>Qa.some(xa=>xa==null?void 0:xa[fi])?"nest":yt||or&&or.expandedRowRender?"row":null,[Qa]),$n={body:B.useRef()},ai=B.useMemo(()=>typeof bt=="function"?bt:xa=>xa==null?void 0:xa[bt],[bt]),[kn]=To(Qa,fi,ai),Qi={},Gi=function(xa,ea){let vs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var go,fs,Ss;const Es=Object.assign(Object.assign({},Qi),xa);vs&&((go=Qi.resetPagination)===null||go===void 0||go.call(Qi),!((fs=Es.pagination)===null||fs===void 0)&&fs.current&&(Es.pagination.current=1),Ye&&Ye.onChange&&Ye.onChange(1,(Ss=Es.pagination)===null||Ss===void 0?void 0:Ss.pageSize)),yr&&yr.scrollToFirstRowOnChange!==!1&&$n.body.current&&(0,ha.Z)(0,{getContainer:()=>$n.body.current}),Ar==null||Ar(Es.pagination,Es.filters,Es.sorter,{currentDataSource:ks(Oa(Qa,Es.sorterStates,fi),Es.filterStates),action:ea})},qi=(xa,ea)=>{Gi({sorter:xa,sorterStates:ea},"sort",!1)},[Mo,Ii,ns,ro]=po({prefixCls:Wi,mergedColumns:On,onSorterChange:qi,sortDirections:Tr||["ascend","descend"],tableLocale:Ki,showSorterTooltip:wr}),Qo=B.useMemo(()=>Oa(Qa,Ii,fi),[Qa,Ii]);Qi.sorter=ro(),Qi.sorterStates=Ii;const wn=(xa,ea)=>{Gi({filters:xa,filterStates:ea},"filter",!0)},[no,Cs,ga]=kl({prefixCls:Wi,locale:Ki,dropdownPrefixCls:As,mergedColumns:On,onFilterChange:wn,getPopupContainer:gr||Ri}),qr=ks(Qo,Cs);Qi.filters=ga,Qi.filterStates=Cs;const fa=B.useMemo(()=>{const xa={};return Object.keys(ga).forEach(ea=>{ga[ea]!==null&&(xa[ea]=ga[ea])}),Object.assign(Object.assign({},ns),{filters:xa})},[ns,ga]),[so]=Go(fa),Va=(xa,ea)=>{Gi({pagination:Object.assign(Object.assign({},Qi.pagination),{current:xa,pageSize:ea})},"paginate")},[Si,bo]=jl(qr.length,Va,Ye);Qi.pagination=Ye===!1?{}:Da(Si,Ye),Qi.resetPagination=bo;const Ko=B.useMemo(()=>{if(Ye===!1||!Si.pageSize)return qr;const{current:xa=1,total:ea,pageSize:vs=ms}=Si;return qr.length<ea?qr.length>vs?qr.slice((xa-1)*vs,xa*vs):qr:qr.slice((xa-1)*vs,xa*vs)},[!!Ye,qr,Si&&Si.current,Si&&Si.pageSize,Si&&Si.total]),[Bs,gs]=Xs({prefixCls:Wi,data:qr,pageData:Ko,getRowKey:ai,getRecordByKey:kn,expandType:gi,childrenColumnName:fi,locale:Ki,getPopupContainer:gr||Ri},et),is=(xa,ea,vs)=>{let go;return typeof _t=="function"?go=L()(_t(xa,ea,vs)):go=L()(_t),L()({[`${Wi}-row-selected`]:gs.has(ai(xa,ea))},go)};En.__PARENT_RENDER_ICON__=En.expandIcon,En.expandIcon=En.expandIcon||dn||ua(Ki),gi==="nest"&&En.expandIconColumnIndex===void 0?En.expandIconColumnIndex=et?1:0:En.expandIconColumnIndex>0&&et&&(En.expandIconColumnIndex-=1),typeof En.indentSize!="number"&&(En.indentSize=typeof gn=="number"?gn:15);const us=B.useCallback(xa=>so(Bs(no(Mo(xa)))),[Mo,no,Bs]);let bl,as;if(Ye!==!1&&(Si!=null&&Si.total)){let xa;Si.size?xa=Si.size:xa=ia==="small"||ia==="middle"?"small":void 0;const ea=fs=>B.createElement(eo.Z,Object.assign({},Si,{className:L()(`${Wi}-pagination ${Wi}-pagination-${fs}`,Si.className),size:xa})),vs=Fi==="rtl"?"left":"right",{position:go}=Si;if(go!==null&&Array.isArray(go)){const fs=go.find(_s=>_s.includes("top")),Ss=go.find(_s=>_s.includes("bottom")),Es=go.every(_s=>`${_s}`=="none");!fs&&!Ss&&!Es&&(as=ea(vs)),fs&&(bl=ea(fs.toLowerCase().replace("top",""))),Ss&&(as=ea(Ss.toLowerCase().replace("bottom","")))}else as=ea(vs)}let $s;typeof _r=="boolean"?$s={spinning:_r}:typeof _r=="object"&&($s=Object.assign({spinning:!0},_r));const[ds,Lo]=hn(Wi),[,wo]=(0,ba.Z)(),qs=L()(`${Wi}-wrapper`,vn==null?void 0:vn.className,{[`${Wi}-wrapper-rtl`]:Fi==="rtl"},Ue,Ke,Lo),Nl=Object.assign(Object.assign({},vn==null?void 0:vn.style),Xe),zl=Ur&&Ur.emptyText||(_a==null?void 0:_a("Table"))||B.createElement(na.Z,{componentName:"Table"}),wl=Zr?kc:Ps,BA={},Xc=B.useMemo(()=>{const{fontSize:xa,lineHeight:ea,padding:vs,paddingXS:go,paddingSM:fs}=wo,Ss=Math.floor(xa*ea);switch(ia){case"large":return vs*2+Ss;case"small":return go*2+Ss;default:return fs*2+Ss}},[wo,ia]);return Zr&&(BA.listItemHeight=Xc),ds(B.createElement("div",{ref:re,className:qs,style:Nl},B.createElement(vo.Z,Object.assign({spinning:!1},$s),bl,B.createElement(wl,Object.assign({},BA,di,{columns:On,direction:Fi,expandable:En,prefixCls:Wi,className:L()({[`${Wi}-middle`]:ia==="middle",[`${Wi}-small`]:ia==="small",[`${Wi}-bordered`]:St,[`${Wi}-empty`]:Qa.length===0}),data:Ko,rowKey:ai,rowClassName:is,emptyText:zl,internalHooks:ue,internalRefs:$n,transformColumns:us})),as)))};var Pr=B.forwardRef(Vt);const Jr=(U,re)=>{const Se=B.useRef(0);return Se.current+=1,B.createElement(Pr,Object.assign({},U,{ref:re,_renderTimes:Se.current}))},vt=B.forwardRef(Jr);vt.SELECTION_COLUMN=Za,vt.EXPAND_COLUMN=pe,vt.SELECTION_ALL=to,vt.SELECTION_INVERT=Ro,vt.SELECTION_NONE=Ya,vt.Column=Yn,vt.ColumnGroup=_i,vt.Summary=H;var Ct=vt,rr=Ct},99313:function(bn,Xt,w){"use strict";w.d(Xt,{default:function(){return Ni}});var pe=w(99267),ue=w(18785),R=w(62772),Ne=w(92310),te=w.n(Ne),V=w(14809),B=w(4635),f=w(20439),E=w(50298),h=w(93664),z=w(62646),S=w(59301),_=w(49658),N=w(18929),Q=w(77900),I=(0,S.createContext)(null),Y=S.forwardRef(function(ve,Te){var ke=ve.prefixCls,it=ve.className,$t=ve.style,Qt=ve.id,Sr=ve.active,dr=ve.tabKey,Hr=ve.children;return S.createElement("div",{id:Qt&&"".concat(Qt,"-panel-").concat(dr),role:"tabpanel",tabIndex:Sr?0:-1,"aria-labelledby":Qt&&"".concat(Qt,"-tab-").concat(dr),"aria-hidden":!Sr,style:$t,className:te()(ke,Sr&&"".concat(ke,"-active"),it),ref:Te},Hr)}),K=Y,ce=["key","forceRender","style","className"];function G(ve){var Te=ve.id,ke=ve.activeKey,it=ve.animated,$t=ve.tabPosition,Qt=ve.destroyInactiveTabPane,Sr=S.useContext(I),dr=Sr.prefixCls,Hr=Sr.tabs,Wr=it.tabPane,en="".concat(dr,"-tabpane");return S.createElement("div",{className:te()("".concat(dr,"-content-holder"))},S.createElement("div",{className:te()("".concat(dr,"-content"),"".concat(dr,"-content-").concat($t),(0,B.Z)({},"".concat(dr,"-content-animated"),Wr))},Hr.map(function(Vr){var jr=Vr.key,Yr=Vr.forceRender,mn=Vr.style,tn=Vr.className,Dn=(0,z.Z)(Vr,ce),Qn=jr===ke;return S.createElement(Q.default,(0,V.Z)({key:jr,visible:Qn,forceRender:Yr,removeOnLeave:!!Qt,leavedClassName:"".concat(en,"-hidden")},it.tabPaneMotion),function(ui,Tn){var sn=ui.style,Kt=ui.className;return S.createElement(K,(0,V.Z)({},Dn,{prefixCls:en,id:Te,tabKey:jr,animated:Wr,active:Qn,style:(0,f.Z)((0,f.Z)({},mn),sn),className:te()(tn,Kt),ref:Tn}))})})))}var J=w(95190),W=w(29301),j=w(6089),se=w(8654),he={width:0,height:0,left:0,top:0};function Oe(ve,Te,ke){return(0,S.useMemo)(function(){for(var it,$t=new Map,Qt=Te.get((it=ve[0])===null||it===void 0?void 0:it.key)||he,Sr=Qt.left+Qt.width,dr=0;dr<ve.length;dr+=1){var Hr=ve[dr].key,Wr=Te.get(Hr);if(!Wr){var en;Wr=Te.get((en=ve[dr-1])===null||en===void 0?void 0:en.key)||he}var Vr=$t.get(Hr)||(0,f.Z)({},Wr);Vr.right=Sr-Vr.left-Vr.width,$t.set(Hr,Vr)}return $t},[ve.map(function(it){return it.key}).join("_"),Te,ke])}function Be(ve,Te){var ke=S.useRef(ve),it=S.useState({}),$t=(0,E.Z)(it,2),Qt=$t[1];function Sr(dr){var Hr=typeof dr=="function"?dr(ke.current):dr;Hr!==ke.current&&Te(Hr,ke.current),ke.current=Hr,Qt({})}return[ke.current,Sr]}var je=.1,X=.01,de=20,L=Math.pow(.995,de);function rt(ve,Te){var ke=(0,S.useState)(),it=(0,E.Z)(ke,2),$t=it[0],Qt=it[1],Sr=(0,S.useState)(0),dr=(0,E.Z)(Sr,2),Hr=dr[0],Wr=dr[1],en=(0,S.useState)(0),Vr=(0,E.Z)(en,2),jr=Vr[0],Yr=Vr[1],mn=(0,S.useState)(),tn=(0,E.Z)(mn,2),Dn=tn[0],Qn=tn[1],ui=(0,S.useRef)();function Tn(Jt){var Qr=Jt.touches[0],kr=Qr.screenX,Gr=Qr.screenY;Qt({x:kr,y:Gr}),window.clearInterval(ui.current)}function sn(Jt){if($t){Jt.preventDefault();var Qr=Jt.touches[0],kr=Qr.screenX,Gr=Qr.screenY;Qt({x:kr,y:Gr});var Mn=kr-$t.x,Pn=Gr-$t.y;Te(Mn,Pn);var si=Date.now();Wr(si),Yr(si-Hr),Qn({x:Mn,y:Pn})}}function Kt(){if($t&&(Qt(null),Qn(null),Dn)){var Jt=Dn.x/jr,Qr=Dn.y/jr,kr=Math.abs(Jt),Gr=Math.abs(Qr);if(Math.max(kr,Gr)<je)return;var Mn=Jt,Pn=Qr;ui.current=window.setInterval(function(){if(Math.abs(Mn)<X&&Math.abs(Pn)<X){window.clearInterval(ui.current);return}Mn*=L,Pn*=L,Te(Mn*de,Pn*de)},de)}}var Zt=(0,S.useRef)();function qt(Jt){var Qr=Jt.deltaX,kr=Jt.deltaY,Gr=0,Mn=Math.abs(Qr),Pn=Math.abs(kr);Mn===Pn?Gr=Zt.current==="x"?Qr:kr:Mn>Pn?(Gr=Qr,Zt.current="x"):(Gr=kr,Zt.current="y"),Te(-Gr,-Gr)&&Jt.preventDefault()}var er=(0,S.useRef)(null);er.current={onTouchStart:Tn,onTouchMove:sn,onTouchEnd:Kt,onWheel:qt},S.useEffect(function(){function Jt(Mn){er.current.onTouchStart(Mn)}function Qr(Mn){er.current.onTouchMove(Mn)}function kr(Mn){er.current.onTouchEnd(Mn)}function Gr(Mn){er.current.onWheel(Mn)}return document.addEventListener("touchmove",Qr,{passive:!1}),document.addEventListener("touchend",kr,{passive:!1}),ve.current.addEventListener("touchstart",Jt,{passive:!1}),ve.current.addEventListener("wheel",Gr),function(){document.removeEventListener("touchmove",Qr),document.removeEventListener("touchend",kr)}},[])}var De=w(34280);function we(ve){var Te=(0,S.useState)(0),ke=(0,E.Z)(Te,2),it=ke[0],$t=ke[1],Qt=(0,S.useRef)(0),Sr=(0,S.useRef)();return Sr.current=ve,(0,De.o)(function(){var dr;(dr=Sr.current)===null||dr===void 0||dr.call(Sr)},[it]),function(){Qt.current===it&&(Qt.current+=1,$t(Qt.current))}}function He(ve){var Te=(0,S.useRef)([]),ke=(0,S.useState)({}),it=(0,E.Z)(ke,2),$t=it[1],Qt=(0,S.useRef)(typeof ve=="function"?ve():ve),Sr=we(function(){var Hr=Qt.current;Te.current.forEach(function(Wr){Hr=Wr(Hr)}),Te.current=[],Qt.current=Hr,$t({})});function dr(Hr){Te.current.push(Hr),Sr()}return[Qt.current,dr]}var ge={width:0,height:0,left:0,top:0,right:0};function Le(ve,Te,ke,it,$t,Qt,Sr){var dr=Sr.tabs,Hr=Sr.tabPosition,Wr=Sr.rtl,en,Vr,jr;return["top","bottom"].includes(Hr)?(en="width",Vr=Wr?"right":"left",jr=Math.abs(ke)):(en="height",Vr="top",jr=-ke),(0,S.useMemo)(function(){if(!dr.length)return[0,0];for(var Yr=dr.length,mn=Yr,tn=0;tn<Yr;tn+=1){var Dn=ve.get(dr[tn].key)||ge;if(Dn[Vr]+Dn[en]>jr+Te){mn=tn-1;break}}for(var Qn=0,ui=Yr-1;ui>=0;ui-=1){var Tn=ve.get(dr[ui].key)||ge;if(Tn[Vr]<jr){Qn=ui+1;break}}return Qn>=mn?[0,0]:[Qn,mn]},[ve,Te,it,$t,Qt,jr,Hr,dr.map(function(Yr){return Yr.key}).join("_"),Wr])}function fe(ve){var Te;return ve instanceof Map?(Te={},ve.forEach(function(ke,it){Te[it]=ke})):Te=ve,JSON.stringify(Te)}var Ee="TABS_DQ";function At(ve){return String(ve).replace(/"/g,Ee)}function ft(ve,Te,ke,it){return!(!ke||it||ve===!1||ve===void 0&&(Te===!1||Te===null))}function ot(ve,Te){var ke=ve.prefixCls,it=ve.editable,$t=ve.locale,Qt=ve.style;return!it||it.showAdd===!1?null:S.createElement("button",{ref:Te,type:"button",className:"".concat(ke,"-nav-add"),style:Qt,"aria-label":($t==null?void 0:$t.addAriaLabel)||"Add tab",onClick:function(dr){it.onEdit("add",{event:dr})}},it.addIcon||"+")}var ct=S.forwardRef(ot),It=S.forwardRef(function(ve,Te){var ke=ve.position,it=ve.prefixCls,$t=ve.extra;if(!$t)return null;var Qt,Sr={};return(0,h.Z)($t)==="object"&&!S.isValidElement($t)?Sr=$t:Sr.right=$t,ke==="right"&&(Qt=Sr.right),ke==="left"&&(Qt=Sr.left),Qt?S.createElement("div",{className:"".concat(it,"-extra-content"),ref:Te},Qt):null}),Tt=It,Ht=w(31561),pr=w(15285),sr=w(10228);function Br(ve,Te){var ke=ve.prefixCls,it=ve.id,$t=ve.tabs,Qt=ve.locale,Sr=ve.mobile,dr=ve.moreIcon,Hr=dr===void 0?"More":dr,Wr=ve.moreTransitionName,en=ve.style,Vr=ve.className,jr=ve.editable,Yr=ve.tabBarGutter,mn=ve.rtl,tn=ve.removeAriaLabel,Dn=ve.onTabClick,Qn=ve.getPopupContainer,ui=ve.popupClassName,Tn=(0,S.useState)(!1),sn=(0,E.Z)(Tn,2),Kt=sn[0],Zt=sn[1],qt=(0,S.useState)(null),er=(0,E.Z)(qt,2),Jt=er[0],Qr=er[1],kr="".concat(it,"-more-popup"),Gr="".concat(ke,"-dropdown"),Mn=Jt!==null?"".concat(kr,"-").concat(Jt):null,Pn=Qt==null?void 0:Qt.dropdownAriaLabel;function si(Ln,ei){Ln.preventDefault(),Ln.stopPropagation(),jr.onEdit("remove",{key:ei,event:Ln})}var qn=S.createElement(pr.ZP,{onClick:function(ei){var vi=ei.key,Ei=ei.domEvent;Dn(vi,Ei),Zt(!1)},prefixCls:"".concat(Gr,"-menu"),id:kr,tabIndex:-1,role:"listbox","aria-activedescendant":Mn,selectedKeys:[Jt],"aria-label":Pn!==void 0?Pn:"expanded dropdown"},$t.map(function(Ln){var ei=Ln.closable,vi=Ln.disabled,Ei=Ln.closeIcon,Xn=Ln.key,Bi=Ln.label,ra=ft(ei,Ei,jr,vi);return S.createElement(pr.sN,{key:Xn,id:"".concat(kr,"-").concat(Xn),role:"option","aria-controls":it&&"".concat(it,"-panel-").concat(Xn),disabled:vi},S.createElement("span",null,Bi),ra&&S.createElement("button",{type:"button","aria-label":tn||"remove",tabIndex:0,className:"".concat(Gr,"-menu-item-remove"),onClick:function(An){An.stopPropagation(),si(An,Xn)}},Ei||jr.removeIcon||"\xD7"))}));function bi(Ln){for(var ei=$t.filter(function(ra){return!ra.disabled}),vi=ei.findIndex(function(ra){return ra.key===Jt})||0,Ei=ei.length,Xn=0;Xn<Ei;Xn+=1){vi=(vi+Ln+Ei)%Ei;var Bi=ei[vi];if(!Bi.disabled){Qr(Bi.key);return}}}function Jn(Ln){var ei=Ln.which;if(!Kt){[sr.Z.DOWN,sr.Z.SPACE,sr.Z.ENTER].includes(ei)&&(Zt(!0),Ln.preventDefault());return}switch(ei){case sr.Z.UP:bi(-1),Ln.preventDefault();break;case sr.Z.DOWN:bi(1),Ln.preventDefault();break;case sr.Z.ESC:Zt(!1);break;case sr.Z.SPACE:case sr.Z.ENTER:Jt!==null&&Dn(Jt,Ln);break}}(0,S.useEffect)(function(){var Ln=document.getElementById(Mn);Ln&&Ln.scrollIntoView&&Ln.scrollIntoView(!1)},[Jt]),(0,S.useEffect)(function(){Kt||Qr(null)},[Kt]);var Hn=(0,B.Z)({},mn?"marginRight":"marginLeft",Yr);$t.length||(Hn.visibility="hidden",Hn.order=1);var on=te()((0,B.Z)({},"".concat(Gr,"-rtl"),mn)),mi=Sr?null:S.createElement(Ht.Z,{prefixCls:Gr,overlay:qn,trigger:["hover"],visible:$t.length?Kt:!1,transitionName:Wr,onVisibleChange:Zt,overlayClassName:te()(on,ui),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Qn},S.createElement("button",{type:"button",className:"".concat(ke,"-nav-more"),style:Hn,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":kr,id:"".concat(it,"-more"),"aria-expanded":Kt,onKeyDown:Jn},Hr));return S.createElement("div",{className:te()("".concat(ke,"-nav-operations"),Vr),style:en,ref:Te},mi,S.createElement(ct,{prefixCls:ke,locale:Qt,editable:jr}))}var fr=S.memo(S.forwardRef(Br),function(ve,Te){return Te.tabMoving});function k(ve){var Te,ke=ve.prefixCls,it=ve.id,$t=ve.active,Qt=ve.tab,Sr=Qt.key,dr=Qt.label,Hr=Qt.disabled,Wr=Qt.closeIcon,en=ve.closable,Vr=ve.renderWrapper,jr=ve.removeAriaLabel,Yr=ve.editable,mn=ve.onClick,tn=ve.onFocus,Dn=ve.style,Qn="".concat(ke,"-tab"),ui=ft(en,Wr,Yr,Hr);function Tn(Zt){Hr||mn(Zt)}function sn(Zt){Zt.preventDefault(),Zt.stopPropagation(),Yr.onEdit("remove",{key:Sr,event:Zt})}var Kt=S.createElement("div",{key:Sr,"data-node-key":At(Sr),className:te()(Qn,(Te={},(0,B.Z)(Te,"".concat(Qn,"-with-remove"),ui),(0,B.Z)(Te,"".concat(Qn,"-active"),$t),(0,B.Z)(Te,"".concat(Qn,"-disabled"),Hr),Te)),style:Dn,onClick:Tn},S.createElement("div",{role:"tab","aria-selected":$t,id:it&&"".concat(it,"-tab-").concat(Sr),className:"".concat(Qn,"-btn"),"aria-controls":it&&"".concat(it,"-panel-").concat(Sr),"aria-disabled":Hr,tabIndex:Hr?null:0,onClick:function(qt){qt.stopPropagation(),Tn(qt)},onKeyDown:function(qt){[sr.Z.SPACE,sr.Z.ENTER].includes(qt.which)&&(qt.preventDefault(),Tn(qt))},onFocus:tn},dr),ui&&S.createElement("button",{type:"button","aria-label":jr||"remove",tabIndex:0,className:"".concat(Qn,"-remove"),onClick:function(qt){qt.stopPropagation(),sn(qt)}},Wr||Yr.removeIcon||"\xD7"));return Vr?Vr(Kt):Kt}var nt=k,P=w(16089),m=function(Te){var ke=Te.activeTabOffset,it=Te.horizontal,$t=Te.rtl,Qt=Te.indicatorSize,Sr=(0,S.useState)(),dr=(0,E.Z)(Sr,2),Hr=dr[0],Wr=dr[1],en=(0,S.useRef)(),Vr=function(mn){return typeof Qt=="function"?Qt(mn):typeof Qt=="number"?Qt:mn};function jr(){P.Z.cancel(en.current)}return(0,S.useEffect)(function(){var Yr={};return ke&&(it?($t?(Yr.right=ke.right+ke.width/2,Yr.transform="translateX(50%)"):(Yr.left=ke.left+ke.width/2,Yr.transform="translateX(-50%)"),Yr.width=Vr(ke.width)):(Yr.top=ke.top+ke.height/2,Yr.transform="translateY(-50%)",Yr.height=Vr(ke.height))),jr(),en.current=(0,P.Z)(function(){Wr(Yr)}),jr},[ke,it,$t,Qt]),{style:Hr}},d=m,x=function(Te){var ke=Te.current||{},it=ke.offsetWidth,$t=it===void 0?0:it,Qt=ke.offsetHeight,Sr=Qt===void 0?0:Qt;return[$t,Sr]},ee=function(Te,ke){return Te[ke?0:1]};function Ce(ve,Te){var ke,it=S.useContext(I),$t=it.prefixCls,Qt=it.tabs,Sr=ve.className,dr=ve.style,Hr=ve.id,Wr=ve.animated,en=ve.activeKey,Vr=ve.rtl,jr=ve.extra,Yr=ve.editable,mn=ve.locale,tn=ve.tabPosition,Dn=ve.tabBarGutter,Qn=ve.children,ui=ve.onTabClick,Tn=ve.onTabScroll,sn=ve.indicatorSize,Kt=(0,S.useRef)(),Zt=(0,S.useRef)(),qt=(0,S.useRef)(),er=(0,S.useRef)(),Jt=(0,S.useRef)(),Qr=(0,S.useRef)(),kr=(0,S.useRef)(),Gr=tn==="top"||tn==="bottom",Mn=Be(0,function(wa,pa){Gr&&Tn&&Tn({direction:wa>pa?"left":"right"})}),Pn=(0,E.Z)(Mn,2),si=Pn[0],qn=Pn[1],bi=Be(0,function(wa,pa){!Gr&&Tn&&Tn({direction:wa>pa?"top":"bottom"})}),Jn=(0,E.Z)(bi,2),Hn=Jn[0],on=Jn[1],mi=(0,S.useState)([0,0]),Ln=(0,E.Z)(mi,2),ei=Ln[0],vi=Ln[1],Ei=(0,S.useState)([0,0]),Xn=(0,E.Z)(Ei,2),Bi=Xn[0],ra=Xn[1],ii=(0,S.useState)([0,0]),An=(0,E.Z)(ii,2),rn=An[0],Un=An[1],xn=(0,S.useState)([0,0]),jn=(0,E.Z)(xn,2),ci=jn[0],wi=jn[1],Aa=He(new Map),Yi=(0,E.Z)(Aa,2),ao=Yi[0],Yn=Yi[1],Nn=Oe(Qt,ao,Bi[0]),_i=ee(ei,Gr),xi=ee(Bi,Gr),ha=ee(rn,Gr),No=ee(ci,Gr),na=_i<xi+ha,$i=na?_i-No:_i-ha,ja="".concat($t,"-nav-operations-hidden"),Ma=0,eo=0;Gr&&Vr?(Ma=0,eo=Math.max(0,xi-$i)):(Ma=Math.min(0,$i-xi),eo=0);function vo(wa){return wa<Ma?Ma:wa>eo?eo:wa}var ba=(0,S.useRef)(),Ai=(0,S.useState)(),ua=(0,E.Z)(Ai,2),Do=ua[0],uo=ua[1];function Xa(){uo(Date.now())}function Di(){window.clearTimeout(ba.current)}rt(er,function(wa,pa){function Na(Ja,oo){Ja(function(Ta){var ka=vo(Ta+oo);return ka})}return na?(Gr?Na(qn,wa):Na(on,pa),Di(),Xa(),!0):!1}),(0,S.useEffect)(function(){return Di(),Do&&(ba.current=window.setTimeout(function(){uo(0)},100)),Di},[Do]);var Po=Le(Nn,$i,Gr?si:Hn,xi,ha,No,(0,f.Z)((0,f.Z)({},ve),{},{tabs:Qt})),fo=(0,E.Z)(Po,2),il=fo[0],$o=fo[1],Hs=(0,j.Z)(function(){var wa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:en,pa=Nn.get(wa)||{width:0,height:0,left:0,right:0,top:0};if(Gr){var Na=si;Vr?pa.right<si?Na=pa.right:pa.right+pa.width>si+$i&&(Na=pa.right+pa.width-$i):pa.left<-si?Na=-pa.left:pa.left+pa.width>-si+$i&&(Na=-(pa.left+pa.width-$i)),on(0),qn(vo(Na))}else{var Ja=Hn;pa.top<-Hn?Ja=-pa.top:pa.top+pa.height>-Hn+$i&&(Ja=-(pa.top+pa.height-$i)),qn(0),on(vo(Ja))}}),Zo={};tn==="top"||tn==="bottom"?Zo[Vr?"marginRight":"marginLeft"]=Dn:Zo.marginTop=Dn;var vl=Qt.map(function(wa,pa){var Na=wa.key;return S.createElement(nt,{id:Hr,prefixCls:$t,key:Na,tab:wa,style:pa===0?void 0:Zo,closable:wa.closable,editable:Yr,active:Na===en,renderWrapper:Qn,removeAriaLabel:mn==null?void 0:mn.removeAriaLabel,onClick:function(oo){ui(Na,oo)},onFocus:function(){Hs(Na),Xa(),er.current&&(Vr||(er.current.scrollLeft=0),er.current.scrollTop=0)}})}),za=function(){return Yn(function(){var pa=new Map;return Qt.forEach(function(Na){var Ja,oo=Na.key,Ta=(Ja=Jt.current)===null||Ja===void 0?void 0:Ja.querySelector('[data-node-key="'.concat(At(oo),'"]'));Ta&&pa.set(oo,{width:Ta.offsetWidth,height:Ta.offsetHeight,left:Ta.offsetLeft,top:Ta.offsetTop})}),pa})};(0,S.useEffect)(function(){za()},[Qt.map(function(wa){return wa.key}).join("_")]);var Ra=we(function(){var wa=x(Kt),pa=x(Zt),Na=x(qt);vi([wa[0]-pa[0]-Na[0],wa[1]-pa[1]-Na[1]]);var Ja=x(kr);Un(Ja);var oo=x(Qr);wi(oo);var Ta=x(Jt);ra([Ta[0]-Ja[0],Ta[1]-Ja[1]]),za()}),Ea=Qt.slice(0,il),js=Qt.slice($o+1),yi=[].concat((0,J.Z)(Ea),(0,J.Z)(js)),Zi=Nn.get(en),Pi=d({activeTabOffset:Zi,horizontal:Gr,rtl:Vr,indicatorSize:sn}),Vi=Pi.style;(0,S.useEffect)(function(){Hs()},[en,Ma,eo,fe(Zi),fe(Nn),Gr]),(0,S.useEffect)(function(){Ra()},[Vr]);var da=!!yi.length,La="".concat($t,"-nav-wrap"),Vo,_o,Bo,$a;return Gr?Vr?(_o=si>0,Vo=si!==eo):(Vo=si<0,_o=si!==Ma):(Bo=Hn<0,$a=Hn!==Ma),S.createElement(W.Z,{onResize:Ra},S.createElement("div",{ref:(0,se.x1)(Te,Kt),role:"tablist",className:te()("".concat($t,"-nav"),Sr),style:dr,onKeyDown:function(){Xa()}},S.createElement(Tt,{ref:Zt,position:"left",extra:jr,prefixCls:$t}),S.createElement(W.Z,{onResize:Ra},S.createElement("div",{className:te()(La,(ke={},(0,B.Z)(ke,"".concat(La,"-ping-left"),Vo),(0,B.Z)(ke,"".concat(La,"-ping-right"),_o),(0,B.Z)(ke,"".concat(La,"-ping-top"),Bo),(0,B.Z)(ke,"".concat(La,"-ping-bottom"),$a),ke)),ref:er},S.createElement(W.Z,{onResize:Ra},S.createElement("div",{ref:Jt,className:"".concat($t,"-nav-list"),style:{transform:"translate(".concat(si,"px, ").concat(Hn,"px)"),transition:Do?"none":void 0}},vl,S.createElement(ct,{ref:kr,prefixCls:$t,locale:mn,editable:Yr,style:(0,f.Z)((0,f.Z)({},vl.length===0?void 0:Zo),{},{visibility:da?"hidden":null})}),S.createElement("div",{className:te()("".concat($t,"-ink-bar"),(0,B.Z)({},"".concat($t,"-ink-bar-animated"),Wr.inkBar)),style:Vi}))))),S.createElement(fr,(0,V.Z)({},ve,{removeAriaLabel:mn==null?void 0:mn.removeAriaLabel,ref:Qr,prefixCls:$t,tabs:yi,className:!da&&ja,tabMoving:!!Do})),S.createElement(Tt,{ref:qt,position:"right",extra:jr,prefixCls:$t})))}var H=S.forwardRef(Ce),ne=["renderTabBar"],Ge=["label","key"];function xe(ve){var Te=ve.renderTabBar,ke=(0,z.Z)(ve,ne),it=S.useContext(I),$t=it.tabs;if(Te){var Qt=(0,f.Z)((0,f.Z)({},ke),{},{panes:$t.map(function(Sr){var dr=Sr.label,Hr=Sr.key,Wr=(0,z.Z)(Sr,Ge);return S.createElement(K,(0,V.Z)({tab:dr,key:Hr,tabKey:Hr},Wr))})});return Te(Qt,H)}return S.createElement(H,ke)}var be=w(48736);function qe(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Te;return ve===!1?Te={inkBar:!1,tabPane:!1}:ve===!0?Te={inkBar:!0,tabPane:!1}:Te=(0,f.Z)({inkBar:!0},(0,h.Z)(ve)==="object"?ve:{}),Te.tabPaneMotion&&Te.tabPane===void 0&&(Te.tabPane=!0),!Te.tabPaneMotion&&Te.tabPane&&(Te.tabPane=!1),Te}var Et=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],me=0;function pt(ve,Te){var ke,it=ve.id,$t=ve.prefixCls,Qt=$t===void 0?"rc-tabs":$t,Sr=ve.className,dr=ve.items,Hr=ve.direction,Wr=ve.activeKey,en=ve.defaultActiveKey,Vr=ve.editable,jr=ve.animated,Yr=ve.tabPosition,mn=Yr===void 0?"top":Yr,tn=ve.tabBarGutter,Dn=ve.tabBarStyle,Qn=ve.tabBarExtraContent,ui=ve.locale,Tn=ve.moreIcon,sn=ve.moreTransitionName,Kt=ve.destroyInactiveTabPane,Zt=ve.renderTabBar,qt=ve.onChange,er=ve.onTabClick,Jt=ve.onTabScroll,Qr=ve.getPopupContainer,kr=ve.popupClassName,Gr=ve.indicatorSize,Mn=(0,z.Z)(ve,Et),Pn=S.useMemo(function(){return(dr||[]).filter(function(wi){return wi&&(0,h.Z)(wi)==="object"&&"key"in wi})},[dr]),si=Hr==="rtl",qn=qe(jr),bi=(0,S.useState)(!1),Jn=(0,E.Z)(bi,2),Hn=Jn[0],on=Jn[1];(0,S.useEffect)(function(){on((0,_.Z)())},[]);var mi=(0,N.Z)(function(){var wi;return(wi=Pn[0])===null||wi===void 0?void 0:wi.key},{value:Wr,defaultValue:en}),Ln=(0,E.Z)(mi,2),ei=Ln[0],vi=Ln[1],Ei=(0,S.useState)(function(){return Pn.findIndex(function(wi){return wi.key===ei})}),Xn=(0,E.Z)(Ei,2),Bi=Xn[0],ra=Xn[1];(0,S.useEffect)(function(){var wi=Pn.findIndex(function(Yi){return Yi.key===ei});if(wi===-1){var Aa;wi=Math.max(0,Math.min(Bi,Pn.length-1)),vi((Aa=Pn[wi])===null||Aa===void 0?void 0:Aa.key)}ra(wi)},[Pn.map(function(wi){return wi.key}).join("_"),ei,Bi]);var ii=(0,N.Z)(null,{value:it}),An=(0,E.Z)(ii,2),rn=An[0],Un=An[1];(0,S.useEffect)(function(){it||(Un("rc-tabs-".concat(me)),me+=1)},[]);function xn(wi,Aa){er==null||er(wi,Aa);var Yi=wi!==ei;vi(wi),Yi&&(qt==null||qt(wi))}var jn={id:rn,activeKey:ei,animated:qn,tabPosition:mn,rtl:si,mobile:Hn},ci=(0,f.Z)((0,f.Z)({},jn),{},{editable:Vr,locale:ui,moreIcon:Tn,moreTransitionName:sn,tabBarGutter:tn,onTabClick:xn,onTabScroll:Jt,extra:Qn,style:Dn,panes:null,getPopupContainer:Qr,popupClassName:kr,indicatorSize:Gr});return S.createElement(I.Provider,{value:{tabs:Pn,prefixCls:Qt}},S.createElement("div",(0,V.Z)({ref:Te,id:it,className:te()(Qt,"".concat(Qt,"-").concat(mn),(ke={},(0,B.Z)(ke,"".concat(Qt,"-mobile"),Hn),(0,B.Z)(ke,"".concat(Qt,"-editable"),Vr),(0,B.Z)(ke,"".concat(Qt,"-rtl"),si),ke),Sr)},Mn),S.createElement(xe,(0,V.Z)({},ci,{renderTabBar:Zt})),S.createElement(G,(0,V.Z)({destroyInactiveTabPane:Kt},jn,{animated:qn}))))}var lt=S.forwardRef(pt),Me=lt,Pe=Me,gt=w(36355),zt=w(19716),ir=()=>null,Dr=w(62892);const mr={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Mr(ve){let Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},ke;return Te===!1?ke={inkBar:!1,tabPane:!1}:Te===!0?ke={inkBar:!0,tabPane:!0}:ke=Object.assign({inkBar:!0},typeof Te=="object"?Te:{}),ke.tabPane&&(ke.tabPaneMotion=Object.assign(Object.assign({},mr),{motionName:(0,Dr.m)(ve,"switch")})),ke}var Lr=w(11592),vr=function(ve,Te){var ke={};for(var it in ve)Object.prototype.hasOwnProperty.call(ve,it)&&Te.indexOf(it)<0&&(ke[it]=ve[it]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,it=Object.getOwnPropertySymbols(ve);$t<it.length;$t++)Te.indexOf(it[$t])<0&&Object.prototype.propertyIsEnumerable.call(ve,it[$t])&&(ke[it[$t]]=ve[it[$t]]);return ke};function ur(ve){return ve.filter(Te=>Te)}function $r(ve,Te){if(ve)return ve;const ke=(0,Lr.Z)(Te).map(it=>{if(S.isValidElement(it)){const{key:$t,props:Qt}=it,Sr=Qt||{},{tab:dr}=Sr,Hr=vr(Sr,["tab"]);return Object.assign(Object.assign({key:String($t)},Hr),{label:dr})}return null});return ur(ke)}var cn=w(17313),Sn=w(83116),nn=w(37613),Bn=w(13826),Er=ve=>{const{componentCls:Te,motionDurationSlow:ke}=ve;return[{[Te]:{[`${Te}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${ke}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${ke}`}}}}},[(0,Bn.oN)(ve,"slide-up"),(0,Bn.oN)(ve,"slide-down")]]};const ni=ve=>{const{componentCls:Te,tabsCardPadding:ke,cardBg:it,cardGutter:$t,colorBorderSecondary:Qt,itemSelectedColor:Sr}=ve;return{[`${Te}-card`]:{[`> ${Te}-nav, > div > ${Te}-nav`]:{[`${Te}-tab`]:{margin:0,padding:ke,background:it,border:`${ve.lineWidth}px ${ve.lineType} ${Qt}`,transition:`all ${ve.motionDurationSlow} ${ve.motionEaseInOut}`},[`${Te}-tab-active`]:{color:Sr,background:ve.colorBgContainer},[`${Te}-ink-bar`]:{visibility:"hidden"}},[`&${Te}-top, &${Te}-bottom`]:{[`> ${Te}-nav, > div > ${Te}-nav`]:{[`${Te}-tab + ${Te}-tab`]:{marginLeft:{_skip_check_:!0,value:`${$t}px`}}}},[`&${Te}-top`]:{[`> ${Te}-nav, > div > ${Te}-nav`]:{[`${Te}-tab`]:{borderRadius:`${ve.borderRadiusLG}px ${ve.borderRadiusLG}px 0 0`},[`${Te}-tab-active`]:{borderBottomColor:ve.colorBgContainer}}},[`&${Te}-bottom`]:{[`> ${Te}-nav, > div > ${Te}-nav`]:{[`${Te}-tab`]:{borderRadius:`0 0 ${ve.borderRadiusLG}px ${ve.borderRadiusLG}px`},[`${Te}-tab-active`]:{borderTopColor:ve.colorBgContainer}}},[`&${Te}-left, &${Te}-right`]:{[`> ${Te}-nav, > div > ${Te}-nav`]:{[`${Te}-tab + ${Te}-tab`]:{marginTop:`${$t}px`}}},[`&${Te}-left`]:{[`> ${Te}-nav, > div > ${Te}-nav`]:{[`${Te}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ve.borderRadiusLG}px 0 0 ${ve.borderRadiusLG}px`}},[`${Te}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:ve.colorBgContainer}}}},[`&${Te}-right`]:{[`> ${Te}-nav, > div > ${Te}-nav`]:{[`${Te}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ve.borderRadiusLG}px ${ve.borderRadiusLG}px 0`}},[`${Te}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:ve.colorBgContainer}}}}}}},Li=ve=>{const{componentCls:Te,itemHoverColor:ke,dropdownEdgeChildVerticalPadding:it}=ve;return{[`${Te}-dropdown`]:Object.assign(Object.assign({},(0,cn.Wf)(ve)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ve.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Te}-dropdown-menu`]:{maxHeight:ve.tabsDropdownHeight,margin:0,padding:`${it}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:ve.colorBgContainer,backgroundClip:"padding-box",borderRadius:ve.borderRadiusLG,outline:"none",boxShadow:ve.boxShadowSecondary,"&-item":Object.assign(Object.assign({},cn.vS),{display:"flex",alignItems:"center",minWidth:ve.tabsDropdownWidth,margin:0,padding:`${ve.paddingXXS}px ${ve.paddingSM}px`,color:ve.colorText,fontWeight:"normal",fontSize:ve.fontSize,lineHeight:ve.lineHeight,cursor:"pointer",transition:`all ${ve.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:ve.marginSM},color:ve.colorTextDescription,fontSize:ve.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:ke}},"&:hover":{background:ve.controlItemBgHover},"&-disabled":{"&, &:hover":{color:ve.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},oi=ve=>{const{componentCls:Te,margin:ke,colorBorderSecondary:it,horizontalMargin:$t,verticalItemPadding:Qt,verticalItemMargin:Sr}=ve;return{[`${Te}-top, ${Te}-bottom`]:{flexDirection:"column",[`> ${Te}-nav, > div > ${Te}-nav`]:{margin:$t,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ve.lineWidth}px ${ve.lineType} ${it}`,content:"''"},[`${Te}-ink-bar`]:{height:ve.lineWidthBold,"&-animated":{transition:`width ${ve.motionDurationSlow}, left ${ve.motionDurationSlow},
|
|
|
right ${ve.motionDurationSlow}`}},[`${Te}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:ve.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:ve.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:ve.boxShadowTabsOverflowRight},[`&${Te}-nav-wrap-ping-left::before`]:{opacity:1},[`&${Te}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${Te}-top`]:{[`> ${Te}-nav,
|
|
|
> div > ${Te}-nav`]:{"&::before":{bottom:0},[`${Te}-ink-bar`]:{bottom:0}}},[`${Te}-bottom`]:{[`> ${Te}-nav, > div > ${Te}-nav`]:{order:1,marginTop:`${ke}px`,marginBottom:0,"&::before":{top:0},[`${Te}-ink-bar`]:{top:0}},[`> ${Te}-content-holder, > div > ${Te}-content-holder`]:{order:0}},[`${Te}-left, ${Te}-right`]:{[`> ${Te}-nav, > div > ${Te}-nav`]:{flexDirection:"column",minWidth:ve.controlHeight*1.25,[`${Te}-tab`]:{padding:Qt,textAlign:"center"},[`${Te}-tab + ${Te}-tab`]:{margin:Sr},[`${Te}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:ve.controlHeight},"&::before":{top:0,boxShadow:ve.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:ve.boxShadowTabsOverflowBottom},[`&${Te}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Te}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Te}-ink-bar`]:{width:ve.lineWidthBold,"&-animated":{transition:`height ${ve.motionDurationSlow}, top ${ve.motionDurationSlow}`}},[`${Te}-nav-list, ${Te}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${Te}-left`]:{[`> ${Te}-nav, > div > ${Te}-nav`]:{[`${Te}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${Te}-content-holder, > div > ${Te}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${ve.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${ve.lineWidth}px ${ve.lineType} ${ve.colorBorder}`},[`> ${Te}-content > ${Te}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:ve.paddingLG}}}},[`${Te}-right`]:{[`> ${Te}-nav, > div > ${Te}-nav`]:{order:1,[`${Te}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${Te}-content-holder, > div > ${Te}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-ve.lineWidth},borderRight:{_skip_check_:!0,value:`${ve.lineWidth}px ${ve.lineType} ${ve.colorBorder}`},[`> ${Te}-content > ${Te}-tabpane`]:{paddingRight:{_skip_check_:!0,value:ve.paddingLG}}}}}},Ti=ve=>{const{componentCls:Te,cardPaddingSM:ke,cardPaddingLG:it,horizontalItemPaddingSM:$t,horizontalItemPaddingLG:Qt}=ve;return{[Te]:{"&-small":{[`> ${Te}-nav`]:{[`${Te}-tab`]:{padding:$t,fontSize:ve.titleFontSizeSM}}},"&-large":{[`> ${Te}-nav`]:{[`${Te}-tab`]:{padding:Qt,fontSize:ve.titleFontSizeLG}}}},[`${Te}-card`]:{[`&${Te}-small`]:{[`> ${Te}-nav`]:{[`${Te}-tab`]:{padding:ke}},[`&${Te}-bottom`]:{[`> ${Te}-nav ${Te}-tab`]:{borderRadius:`0 0 ${ve.borderRadius}px ${ve.borderRadius}px`}},[`&${Te}-top`]:{[`> ${Te}-nav ${Te}-tab`]:{borderRadius:`${ve.borderRadius}px ${ve.borderRadius}px 0 0`}},[`&${Te}-right`]:{[`> ${Te}-nav ${Te}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ve.borderRadius}px ${ve.borderRadius}px 0`}}},[`&${Te}-left`]:{[`> ${Te}-nav ${Te}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ve.borderRadius}px 0 0 ${ve.borderRadius}px`}}}},[`&${Te}-large`]:{[`> ${Te}-nav`]:{[`${Te}-tab`]:{padding:it}}}}}},Ui=ve=>{const{componentCls:Te,itemActiveColor:ke,itemHoverColor:it,iconCls:$t,tabsHorizontalItemMargin:Qt,horizontalItemPadding:Sr,itemSelectedColor:dr,itemColor:Hr}=ve,Wr=`${Te}-tab`;return{[Wr]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Sr,fontSize:ve.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:Hr,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:ke}},(0,cn.Qy)(ve)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-ve.marginXXS},marginLeft:{_skip_check_:!0,value:ve.marginXS},color:ve.colorTextDescription,fontSize:ve.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${ve.motionDurationSlow}`,"&:hover":{color:ve.colorTextHeading}},"&:hover":{color:it},[`&${Wr}-active ${Wr}-btn`]:{color:dr,textShadow:ve.tabsActiveTextShadow},[`&${Wr}-disabled`]:{color:ve.colorTextDisabled,cursor:"not-allowed"},[`&${Wr}-disabled ${Wr}-btn, &${Wr}-disabled ${Te}-remove`]:{"&:focus, &:active":{color:ve.colorTextDisabled}},[`& ${Wr}-remove ${$t}`]:{margin:0},[$t]:{marginRight:{_skip_check_:!0,value:ve.marginSM}}},[`${Wr} + ${Wr}`]:{margin:{_skip_check_:!0,value:Qt}}}},Xi=ve=>{const{componentCls:Te,tabsHorizontalItemMarginRTL:ke,iconCls:it,cardGutter:$t}=ve;return{[`${Te}-rtl`]:{direction:"rtl",[`${Te}-nav`]:{[`${Te}-tab`]:{margin:{_skip_check_:!0,value:ke},[`${Te}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[it]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${ve.marginSM}px`}},[`${Te}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${ve.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${ve.marginXXS}px`},[it]:{margin:0}}}},[`&${Te}-left`]:{[`> ${Te}-nav`]:{order:1},[`> ${Te}-content-holder`]:{order:0}},[`&${Te}-right`]:{[`> ${Te}-nav`]:{order:0},[`> ${Te}-content-holder`]:{order:1}},[`&${Te}-card${Te}-top, &${Te}-card${Te}-bottom`]:{[`> ${Te}-nav, > div > ${Te}-nav`]:{[`${Te}-tab + ${Te}-tab`]:{marginRight:{_skip_check_:!0,value:$t},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Te}-dropdown-rtl`]:{direction:"rtl"},[`${Te}-menu-item`]:{[`${Te}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ha=ve=>{const{componentCls:Te,tabsCardPadding:ke,cardHeight:it,cardGutter:$t,itemHoverColor:Qt,itemActiveColor:Sr,colorBorderSecondary:dr}=ve;return{[Te]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,cn.Wf)(ve)),{display:"flex",[`> ${Te}-nav, > div > ${Te}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${Te}-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 ${ve.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Te}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${ve.motionDurationSlow}`},[`${Te}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Te}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Te}-nav-more`]:{position:"relative",padding:ke,background:"transparent",border:0,color:ve.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:ve.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${Te}-nav-add`]:Object.assign({minWidth:it,marginLeft:{_skip_check_:!0,value:$t},padding:`0 ${ve.paddingXS}px`,background:"transparent",border:`${ve.lineWidth}px ${ve.lineType} ${dr}`,borderRadius:`${ve.borderRadiusLG}px ${ve.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:ve.colorText,transition:`all ${ve.motionDurationSlow} ${ve.motionEaseInOut}`,"&:hover":{color:Qt},"&:active, &:focus:not(:focus-visible)":{color:Sr}},(0,cn.Qy)(ve))},[`${Te}-extra-content`]:{flex:"none"},[`${Te}-ink-bar`]:{position:"absolute",background:ve.inkBarColor,pointerEvents:"none"}}),Ui(ve)),{[`${Te}-content`]:{position:"relative",width:"100%"},[`${Te}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${Te}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${Te}-centered`]:{[`> ${Te}-nav, > div > ${Te}-nav`]:{[`${Te}-nav-wrap`]:{[`&:not([class*='${Te}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Ji=(0,Sn.Z)("Tabs",ve=>{const Te=(0,nn.TS)(ve,{tabsCardPadding:ve.cardPadding||`${(ve.cardHeight-Math.round(ve.fontSize*ve.lineHeight))/2-ve.lineWidth}px ${ve.padding}px`,dropdownEdgeChildVerticalPadding:ve.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ve.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${ve.horizontalItemGutter}px`});return[Ti(Te),Xi(Te),oi(Te),Li(Te),ni(Te),Ha(Te),Er(Te)]},ve=>{const Te=ve.controlHeightLG;return{zIndexPopup:ve.zIndexPopupBase+50,cardBg:ve.colorFillAlter,cardHeight:Te,cardPadding:"",cardPaddingSM:`${ve.paddingXXS*1.5}px ${ve.padding}px`,cardPaddingLG:`${ve.paddingXS}px ${ve.padding}px ${ve.paddingXXS*1.5}px`,titleFontSize:ve.fontSize,titleFontSizeLG:ve.fontSizeLG,titleFontSizeSM:ve.fontSize,inkBarColor:ve.colorPrimary,horizontalMargin:`0 0 ${ve.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${ve.paddingSM}px 0`,horizontalItemPaddingSM:`${ve.paddingXS}px 0`,horizontalItemPaddingLG:`${ve.padding}px 0`,verticalItemPadding:`${ve.paddingXS}px ${ve.paddingLG}px`,verticalItemMargin:`${ve.margin}px 0 0 0`,itemColor:ve.colorText,itemSelectedColor:ve.colorPrimary,itemHoverColor:ve.colorPrimaryHover,itemActiveColor:ve.colorPrimaryActive,cardGutter:ve.marginXXS/2}}),pi=function(ve,Te){var ke={};for(var it in ve)Object.prototype.hasOwnProperty.call(ve,it)&&Te.indexOf(it)<0&&(ke[it]=ve[it]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,it=Object.getOwnPropertySymbols(ve);$t<it.length;$t++)Te.indexOf(it[$t])<0&&Object.prototype.propertyIsEnumerable.call(ve,it[$t])&&(ke[it[$t]]=ve[it[$t]]);return ke};const ki=ve=>{const{type:Te,className:ke,rootClassName:it,size:$t,onEdit:Qt,hideAdd:Sr,centered:dr,addIcon:Hr,popupClassName:Wr,children:en,items:Vr,animated:jr,style:Yr,indicatorSize:mn}=ve,tn=pi(ve,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:Dn,moreIcon:Qn=S.createElement(ue.Z,null)}=tn,{direction:ui,tabs:Tn,getPrefixCls:sn,getPopupContainer:Kt}=S.useContext(gt.E_),Zt=sn("tabs",Dn),[qt,er]=Ji(Zt);let Jt;Te==="editable-card"&&(Jt={onEdit:(si,qn)=>{let{key:bi,event:Jn}=qn;Qt==null||Qt(si==="add"?Jn:bi,si)},removeIcon:S.createElement(pe.Z,null),addIcon:Hr||S.createElement(R.Z,null),showAdd:Sr!==!0});const Qr=sn(),kr=$r(Vr,en),Gr=Mr(Zt,jr),Mn=(0,zt.Z)($t),Pn=Object.assign(Object.assign({},Tn==null?void 0:Tn.style),Yr);return qt(S.createElement(Pe,Object.assign({direction:ui,getPopupContainer:Kt,moreTransitionName:`${Qr}-slide-up`},tn,{items:kr,className:te()({[`${Zt}-${Mn}`]:Mn,[`${Zt}-card`]:["card","editable-card"].includes(Te),[`${Zt}-editable-card`]:Te==="editable-card",[`${Zt}-centered`]:dr},Tn==null?void 0:Tn.className,ke,it,er),popupClassName:te()(Wr,er),style:Pn,editable:Jt,moreIcon:Qn,prefixCls:Zt,animated:Gr,indicatorSize:mn!=null?mn:Tn==null?void 0:Tn.indicatorSize})))};ki.TabPane=ir;var Ni=ki},17574:function(bn,Xt,w){"use strict";w.d(Xt,{default:function(){return Le}});var pe=w(79556),ue=w(95190),R=w(52671),Ne=w(8657),te=w(14809),V=w(59301),B={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},f=B,E=w(7657),h=function(Ee,At){return V.createElement(E.Z,(0,te.Z)({},Ee,{ref:At,icon:f}))},z=V.forwardRef(h),S=z,_=w(92310),N=w.n(_),Q=w(35654),I=w(71430),Y=w(36355),K=w(56082),ce=w(62892),G=w(20648);const J=4;function W(fe){const{dropPosition:Ee,dropLevelOffset:At,prefixCls:ft,indent:ot,direction:ct="ltr"}=fe,It=ct==="ltr"?"left":"right",Tt=ct==="ltr"?"right":"left",Ht={[It]:-At*ot+J,[Tt]:0};switch(Ee){case-1:Ht.top=-3;break;case 1:Ht.bottom=-3;break;default:Ht.bottom=-3,Ht[It]=ot+J;break}return V.createElement("div",{style:Ht,className:`${ft}-drop-indicator`})}var j=w(71997),he=V.forwardRef((fe,Ee)=>{const{getPrefixCls:At,direction:ft,virtual:ot,tree:ct}=V.useContext(Y.E_),{prefixCls:It,className:Tt,showIcon:Ht=!1,showLine:pr,switcherIcon:sr,blockNode:Br=!1,children:fr,checkable:k=!1,selectable:nt=!0,draggable:P,motion:m,style:d}=fe,x=At("tree",It),ee=At(),Ce=m!=null?m:Object.assign(Object.assign({},(0,ce.Z)(ee)),{motionAppear:!1}),H=Object.assign(Object.assign({},fe),{checkable:k,selectable:nt,showIcon:Ht,motion:Ce,blockNode:Br,showLine:!!pr,dropIndicatorRender:W}),[ne,Ge]=(0,G.ZP)(x),xe=V.useMemo(()=>{if(!P)return!1;let qe={};switch(typeof P){case"function":qe.nodeDraggable=P;break;case"object":qe=Object.assign({},P);break;default:break}return qe.icon!==!1&&(qe.icon=qe.icon||V.createElement(K.Z,null)),qe},[P]),be=qe=>V.createElement(j.Z,{prefixCls:x,switcherIcon:sr,treeNodeProps:qe,showLine:pr});return ne(V.createElement(pe.Z,Object.assign({itemHeight:20,ref:Ee,virtual:ot},H,{style:Object.assign(Object.assign({},ct==null?void 0:ct.style),d),prefixCls:x,className:N()({[`${x}-icon-hide`]:!Ht,[`${x}-block-node`]:Br,[`${x}-unselectable`]:!nt,[`${x}-rtl`]:ft==="rtl"},ct==null?void 0:ct.className,Tt,Ge),direction:ft,checkable:k&&V.createElement("span",{className:`${x}-checkbox-inner`}),selectable:nt,switcherIcon:be,draggable:xe}),fr))}),Oe;(function(fe){fe[fe.None=0]="None",fe[fe.Start=1]="Start",fe[fe.End=2]="End"})(Oe||(Oe={}));function Be(fe,Ee){function At(ft){const{key:ot,children:ct}=ft;Ee(ot,ft)!==!1&&Be(ct||[],Ee)}fe.forEach(At)}function je(fe){let{treeData:Ee,expandedKeys:At,startKey:ft,endKey:ot}=fe;const ct=[];let It=Oe.None;if(ft&&ft===ot)return[ft];if(!ft||!ot)return[];function Tt(Ht){return Ht===ft||Ht===ot}return Be(Ee,Ht=>{if(It===Oe.End)return!1;if(Tt(Ht)){if(ct.push(Ht),It===Oe.None)It=Oe.Start;else if(It===Oe.Start)return It=Oe.End,!1}else It===Oe.Start&&ct.push(Ht);return At.includes(Ht)}),ct}function X(fe,Ee){const At=(0,ue.Z)(Ee),ft=[];return Be(fe,(ot,ct)=>{const It=At.indexOf(ot);return It!==-1&&(ft.push(ct),At.splice(It,1)),!!At.length}),ft}var de=function(fe,Ee){var At={};for(var ft in fe)Object.prototype.hasOwnProperty.call(fe,ft)&&Ee.indexOf(ft)<0&&(At[ft]=fe[ft]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,ft=Object.getOwnPropertySymbols(fe);ot<ft.length;ot++)Ee.indexOf(ft[ot])<0&&Object.prototype.propertyIsEnumerable.call(fe,ft[ot])&&(At[ft[ot]]=fe[ft[ot]]);return At};function L(fe){const{isLeaf:Ee,expanded:At}=fe;return Ee?V.createElement(R.Z,null):At?V.createElement(Ne.Z,null):V.createElement(S,null)}function rt(fe){let{treeData:Ee,children:At}=fe;return Ee||(0,I.zn)(At)}const De=(fe,Ee)=>{var{defaultExpandAll:At,defaultExpandParent:ft,defaultExpandedKeys:ot}=fe,ct=de(fe,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const It=V.useRef(),Tt=V.useRef(),Ht=()=>{const{keyEntities:xe}=(0,I.I8)(rt(ct));let be;return At?be=Object.keys(xe):ft?be=(0,Q.r7)(ct.expandedKeys||ot||[],xe):be=ct.expandedKeys||ot,be},[pr,sr]=V.useState(ct.selectedKeys||ct.defaultSelectedKeys||[]),[Br,fr]=V.useState(()=>Ht());V.useEffect(()=>{"selectedKeys"in ct&&sr(ct.selectedKeys)},[ct.selectedKeys]),V.useEffect(()=>{"expandedKeys"in ct&&fr(ct.expandedKeys)},[ct.expandedKeys]);const k=(xe,be)=>{var qe;return"expandedKeys"in ct||fr(xe),(qe=ct.onExpand)===null||qe===void 0?void 0:qe.call(ct,xe,be)},nt=(xe,be)=>{var qe;const{multiple:Et}=ct,{node:me,nativeEvent:pt}=be,{key:lt=""}=me,Me=rt(ct),Pe=Object.assign(Object.assign({},be),{selected:!0}),gt=(pt==null?void 0:pt.ctrlKey)||(pt==null?void 0:pt.metaKey),zt=pt==null?void 0:pt.shiftKey;let Ut;Et&>?(Ut=xe,It.current=lt,Tt.current=Ut,Pe.selectedNodes=X(Me,Ut)):Et&&zt?(Ut=Array.from(new Set([].concat((0,ue.Z)(Tt.current||[]),(0,ue.Z)(je({treeData:Me,expandedKeys:Br,startKey:lt,endKey:It.current}))))),Pe.selectedNodes=X(Me,Ut)):(Ut=[lt],It.current=lt,Tt.current=Ut,Pe.selectedNodes=X(Me,Ut)),(qe=ct.onSelect)===null||qe===void 0||qe.call(ct,Ut,Pe),"selectedKeys"in ct||sr(Ut)},{getPrefixCls:P,direction:m}=V.useContext(Y.E_),{prefixCls:d,className:x,showIcon:ee=!0,expandAction:Ce="click"}=ct,H=de(ct,["prefixCls","className","showIcon","expandAction"]),ne=P("tree",d),Ge=N()(`${ne}-directory`,{[`${ne}-directory-rtl`]:m==="rtl"},x);return V.createElement(he,Object.assign({icon:L,ref:Ee,blockNode:!0},H,{showIcon:ee,expandAction:Ce,prefixCls:ne,className:Ge,expandedKeys:Br,selectedKeys:pr,onSelect:nt,onExpand:k}))};var He=V.forwardRef(De);const ge=he;ge.DirectoryTree=He,ge.TreeNode=pe.O;var Le=ge},20648:function(bn,Xt,w){"use strict";w.d(Xt,{TM:function(){return _},Yk:function(){return S}});var pe=w(93083),ue=w(98447),R=w(17313),Ne=w(8378),te=w(37613),V=w(83116);const B=new pe.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),f=(N,Q)=>({[`.${N}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Q.motionDurationSlow}`}}}),E=(N,Q)=>({[`.${N}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Q.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Q.lineWidthBold}px solid ${Q.colorPrimary}`,borderRadius:"50%",content:'""'}}}),h=(N,Q)=>{const{treeCls:I,treeNodeCls:Y,treeNodePadding:K,titleHeight:ce,nodeSelectedBg:G,nodeHoverBg:J}=Q,W=Q.paddingXS;return{[I]:Object.assign(Object.assign({},(0,R.Wf)(Q)),{background:Q.colorBgContainer,borderRadius:Q.borderRadius,transition:`background-color ${Q.motionDurationSlow}`,[`&${I}-rtl`]:{[`${I}-switcher`]:{"&_close":{[`${I}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${I}-active-focused)`]:Object.assign({},(0,R.oN)(Q)),[`${I}-list-holder-inner`]:{alignItems:"flex-start"},[`&${I}-block-node`]:{[`${I}-list-holder-inner`]:{alignItems:"stretch",[`${I}-node-content-wrapper`]:{flex:"auto"},[`${Y}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:K,insetInlineStart:0,border:`1px solid ${Q.colorPrimary}`,opacity:0,animationName:B,animationDuration:Q.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${Y}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${K}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${I}-node-content-wrapper`]:{color:Q.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${I}-node-content-wrapper`]:Object.assign({},(0,R.oN)(Q)),[`&:not(${Y}-disabled).filter-node ${I}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${I}-draggable-icon`]:{flexShrink:0,width:ce,lineHeight:`${ce}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${Q.motionDurationSlow}`,[`${Y}:hover &`]:{opacity:.45}},[`&${Y}-disabled`]:{[`${I}-draggable-icon`]:{visibility:"hidden"}}}},[`${I}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:ce}},[`${I}-draggable-icon`]:{visibility:"hidden"},[`${I}-switcher`]:Object.assign(Object.assign({},f(N,Q)),{position:"relative",flex:"none",alignSelf:"stretch",width:ce,margin:0,lineHeight:`${ce}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${I}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:Q.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ce/2,bottom:-K,marginInlineStart:-1,borderInlineEnd:`1px solid ${Q.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:ce/2*.8,height:ce/2,borderBottom:`1px solid ${Q.colorBorder}`,content:'""'}}}),[`${I}-checkbox`]:{top:"initial",marginInlineEnd:W},[`${I}-node-content-wrapper, ${I}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:ce,margin:0,padding:`0 ${Q.paddingXS/2}px`,color:"inherit",lineHeight:`${ce}px`,background:"transparent",borderRadius:Q.borderRadius,cursor:"pointer",transition:`all ${Q.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:J},[`&${I}-node-selected`]:{backgroundColor:G},[`${I}-iconEle`]:{display:"inline-block",width:ce,height:ce,lineHeight:`${ce}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${I}-unselectable ${I}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${I}-node-content-wrapper`]:Object.assign({lineHeight:`${ce}px`,userSelect:"none"},E(N,Q)),[`${Y}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${Q.colorPrimary}`}},"&-show-line":{[`${I}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ce/2,bottom:-K,borderInlineEnd:`1px solid ${Q.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${I}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Y}-leaf-last`]:{[`${I}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${ce/2}px !important`}}}}})}},z=N=>{const{treeCls:Q,treeNodeCls:I,treeNodePadding:Y,directoryNodeSelectedBg:K,directoryNodeSelectedColor:ce}=N;return{[`${Q}${Q}-directory`]:{[I]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:Y,insetInlineStart:0,transition:`background-color ${N.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:N.controlItemBgHover}},"> *":{zIndex:1},[`${Q}-switcher`]:{transition:`color ${N.motionDurationMid}`},[`${Q}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${Q}-node-selected`]:{color:ce,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:K},[`${Q}-switcher`]:{color:ce},[`${Q}-node-content-wrapper`]:{color:ce,background:"transparent"}}}}}},S=(N,Q)=>{const I=`.${N}`,Y=`${I}-treenode`,K=Q.paddingXS/2,ce=(0,te.TS)(Q,{treeCls:I,treeNodeCls:Y,treeNodePadding:K});return[h(N,ce),z(ce)]},_=N=>{const{controlHeightSM:Q}=N;return{titleHeight:Q,nodeHoverBg:N.controlItemBgHover,nodeSelectedBg:N.controlItemBgActive}};Xt.ZP=(0,V.Z)("Tree",(N,Q)=>{let{prefixCls:I}=Q;return[{[N.componentCls]:(0,ue.C2)(`${I}-checkbox`,N)},S(I,N),(0,Ne.Z)(N)]},N=>{const{colorTextLightSolid:Q,colorPrimary:I}=N;return Object.assign(Object.assign({},_(N)),{directoryNodeSelectedColor:Q,directoryNodeSelectedBg:I})})},71997:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return Y}});var pe=w(14809),ue=w(59301),R={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=R,te=w(7657),V=function(ce,G){return ue.createElement(te.Z,(0,pe.Z)({},ce,{ref:G,icon:Ne}))},B=ue.forwardRef(V),f=B,E=w(52671),h=w(58617),z=w(15075),S=w(43531),_=w(92310),N=w.n(_),Q=w(92343),Y=K=>{const{prefixCls:ce,switcherIcon:G,treeNodeProps:J,showLine:W}=K,{isLeaf:j,expanded:se,loading:he}=J;if(he)return ue.createElement(h.Z,{className:`${ce}-switcher-loading-icon`});let Oe;if(W&&typeof W=="object"&&(Oe=W.showLeafIcon),j){if(!W)return null;if(typeof Oe!="boolean"&&Oe){const X=typeof Oe=="function"?Oe(J):Oe,de=`${ce}-switcher-line-custom-icon`;return(0,Q.l$)(X)?(0,Q.Tm)(X,{className:N()(X.props.className||"",de)}):X}return Oe?ue.createElement(E.Z,{className:`${ce}-switcher-line-icon`}):ue.createElement("span",{className:`${ce}-switcher-leaf-line`})}const Be=`${ce}-switcher-icon`,je=typeof G=="function"?G(J):G;return(0,Q.l$)(je)?(0,Q.Tm)(je,{className:N()(je.props.className||"",Be)}):je!==void 0?je:W?se?ue.createElement(z.Z,{className:`${ce}-switcher-line-icon`}):ue.createElement(S.Z,{className:`${ce}-switcher-line-icon`}):ue.createElement(f,{className:Be})}},86251:function(bn,Xt){"use strict";Xt.byteLength=B,Xt.toByteArray=E,Xt.fromByteArray=S;for(var w=[],pe=[],ue=typeof Uint8Array!="undefined"?Uint8Array:Array,R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ne=0,te=R.length;Ne<te;++Ne)w[Ne]=R[Ne],pe[R.charCodeAt(Ne)]=Ne;pe[45]=62,pe[95]=63;function V(_){var N=_.length;if(N%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Q=_.indexOf("=");Q===-1&&(Q=N);var I=Q===N?0:4-Q%4;return[Q,I]}function B(_){var N=V(_),Q=N[0],I=N[1];return(Q+I)*3/4-I}function f(_,N,Q){return(N+Q)*3/4-Q}function E(_){var N,Q=V(_),I=Q[0],Y=Q[1],K=new ue(f(_,I,Y)),ce=0,G=Y>0?I-4:I,J;for(J=0;J<G;J+=4)N=pe[_.charCodeAt(J)]<<18|pe[_.charCodeAt(J+1)]<<12|pe[_.charCodeAt(J+2)]<<6|pe[_.charCodeAt(J+3)],K[ce++]=N>>16&255,K[ce++]=N>>8&255,K[ce++]=N&255;return Y===2&&(N=pe[_.charCodeAt(J)]<<2|pe[_.charCodeAt(J+1)]>>4,K[ce++]=N&255),Y===1&&(N=pe[_.charCodeAt(J)]<<10|pe[_.charCodeAt(J+1)]<<4|pe[_.charCodeAt(J+2)]>>2,K[ce++]=N>>8&255,K[ce++]=N&255),K}function h(_){return w[_>>18&63]+w[_>>12&63]+w[_>>6&63]+w[_&63]}function z(_,N,Q){for(var I,Y=[],K=N;K<Q;K+=3)I=(_[K]<<16&16711680)+(_[K+1]<<8&65280)+(_[K+2]&255),Y.push(h(I));return Y.join("")}function S(_){for(var N,Q=_.length,I=Q%3,Y=[],K=16383,ce=0,G=Q-I;ce<G;ce+=K)Y.push(z(_,ce,ce+K>G?G:ce+K));return I===1?(N=_[Q-1],Y.push(w[N>>2]+w[N<<4&63]+"==")):I===2&&(N=(_[Q-2]<<8)+_[Q-1],Y.push(w[N>>10]+w[N>>4&63]+w[N<<2&63]+"=")),Y.join("")}},19208:function(bn,Xt,w){"use strict";var pe;var ue=w(86251),R=w(67467),Ne=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Xt.lW=f,pe=ce,Xt.h2=50;var te=2147483647;pe=te,f.TYPED_ARRAY_SUPPORT=V(),!f.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function V(){try{var P=new Uint8Array(1),m={foo:function(){return 42}};return Object.setPrototypeOf(m,Uint8Array.prototype),Object.setPrototypeOf(P,m),P.foo()===42}catch(d){return!1}}Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}});function B(P){if(P>te)throw new RangeError('The value "'+P+'" is invalid for option "size"');var m=new Uint8Array(P);return Object.setPrototypeOf(m,f.prototype),m}function f(P,m,d){if(typeof P=="number"){if(typeof m=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(P)}return E(P,m,d)}f.poolSize=8192;function E(P,m,d){if(typeof P=="string")return _(P,m);if(ArrayBuffer.isView(P))return Q(P);if(P==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof P);if(fr(P,ArrayBuffer)||P&&fr(P.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(fr(P,SharedArrayBuffer)||P&&fr(P.buffer,SharedArrayBuffer)))return I(P,m,d);if(typeof P=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var x=P.valueOf&&P.valueOf();if(x!=null&&x!==P)return f.from(x,m,d);var ee=Y(P);if(ee)return ee;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof P[Symbol.toPrimitive]=="function")return f.from(P[Symbol.toPrimitive]("string"),m,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof P)}f.from=function(P,m,d){return E(P,m,d)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array);function h(P){if(typeof P!="number")throw new TypeError('"size" argument must be of type number');if(P<0)throw new RangeError('The value "'+P+'" is invalid for option "size"')}function z(P,m,d){return h(P),P<=0?B(P):m!==void 0?typeof d=="string"?B(P).fill(m,d):B(P).fill(m):B(P)}f.alloc=function(P,m,d){return z(P,m,d)};function S(P){return h(P),B(P<0?0:K(P)|0)}f.allocUnsafe=function(P){return S(P)},f.allocUnsafeSlow=function(P){return S(P)};function _(P,m){if((typeof m!="string"||m==="")&&(m="utf8"),!f.isEncoding(m))throw new TypeError("Unknown encoding: "+m);var d=G(P,m)|0,x=B(d),ee=x.write(P,m);return ee!==d&&(x=x.slice(0,ee)),x}function N(P){for(var m=P.length<0?0:K(P.length)|0,d=B(m),x=0;x<m;x+=1)d[x]=P[x]&255;return d}function Q(P){if(fr(P,Uint8Array)){var m=new Uint8Array(P);return I(m.buffer,m.byteOffset,m.byteLength)}return N(P)}function I(P,m,d){if(m<0||P.byteLength<m)throw new RangeError('"offset" is outside of buffer bounds');if(P.byteLength<m+(d||0))throw new RangeError('"length" is outside of buffer bounds');var x;return m===void 0&&d===void 0?x=new Uint8Array(P):d===void 0?x=new Uint8Array(P,m):x=new Uint8Array(P,m,d),Object.setPrototypeOf(x,f.prototype),x}function Y(P){if(f.isBuffer(P)){var m=K(P.length)|0,d=B(m);return d.length===0||P.copy(d,0,0,m),d}if(P.length!==void 0)return typeof P.length!="number"||k(P.length)?B(0):N(P);if(P.type==="Buffer"&&Array.isArray(P.data))return N(P.data)}function K(P){if(P>=te)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+te.toString(16)+" bytes");return P|0}function ce(P){return+P!=P&&(P=0),f.alloc(+P)}f.isBuffer=function(m){return m!=null&&m._isBuffer===!0&&m!==f.prototype},f.compare=function(m,d){if(fr(m,Uint8Array)&&(m=f.from(m,m.offset,m.byteLength)),fr(d,Uint8Array)&&(d=f.from(d,d.offset,d.byteLength)),!f.isBuffer(m)||!f.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(m===d)return 0;for(var x=m.length,ee=d.length,Ce=0,H=Math.min(x,ee);Ce<H;++Ce)if(m[Ce]!==d[Ce]){x=m[Ce],ee=d[Ce];break}return x<ee?-1:ee<x?1:0},f.isEncoding=function(m){switch(String(m).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(m,d){if(!Array.isArray(m))throw new TypeError('"list" argument must be an Array of Buffers');if(m.length===0)return f.alloc(0);var x;if(d===void 0)for(d=0,x=0;x<m.length;++x)d+=m[x].length;var ee=f.allocUnsafe(d),Ce=0;for(x=0;x<m.length;++x){var H=m[x];if(fr(H,Uint8Array))Ce+H.length>ee.length?f.from(H).copy(ee,Ce):Uint8Array.prototype.set.call(ee,H,Ce);else if(f.isBuffer(H))H.copy(ee,Ce);else throw new TypeError('"list" argument must be an Array of Buffers');Ce+=H.length}return ee};function G(P,m){if(f.isBuffer(P))return P.length;if(ArrayBuffer.isView(P)||fr(P,ArrayBuffer))return P.byteLength;if(typeof P!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof P);var d=P.length,x=arguments.length>2&&arguments[2]===!0;if(!x&&d===0)return 0;for(var ee=!1;;)switch(m){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return Tt(P).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return sr(P).length;default:if(ee)return x?-1:Tt(P).length;m=(""+m).toLowerCase(),ee=!0}}f.byteLength=G;function J(P,m,d){var x=!1;if((m===void 0||m<0)&&(m=0),m>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,m>>>=0,d<=m))return"";for(P||(P="utf8");;)switch(P){case"hex":return ge(this,m,d);case"utf8":case"utf-8":return L(this,m,d);case"ascii":return we(this,m,d);case"latin1":case"binary":return He(this,m,d);case"base64":return de(this,m,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Le(this,m,d);default:if(x)throw new TypeError("Unknown encoding: "+P);P=(P+"").toLowerCase(),x=!0}}f.prototype._isBuffer=!0;function W(P,m,d){var x=P[m];P[m]=P[d],P[d]=x}f.prototype.swap16=function(){var m=this.length;if(m%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var d=0;d<m;d+=2)W(this,d,d+1);return this},f.prototype.swap32=function(){var m=this.length;if(m%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var d=0;d<m;d+=4)W(this,d,d+3),W(this,d+1,d+2);return this},f.prototype.swap64=function(){var m=this.length;if(m%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var d=0;d<m;d+=8)W(this,d,d+7),W(this,d+1,d+6),W(this,d+2,d+5),W(this,d+3,d+4);return this},f.prototype.toString=function(){var m=this.length;return m===0?"":arguments.length===0?L(this,0,m):J.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(m){if(!f.isBuffer(m))throw new TypeError("Argument must be a Buffer");return this===m?!0:f.compare(this,m)===0},f.prototype.inspect=function(){var m="",d=Xt.h2;return m=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(m+=" ... "),"<Buffer "+m+">"},Ne&&(f.prototype[Ne]=f.prototype.inspect),f.prototype.compare=function(m,d,x,ee,Ce){if(fr(m,Uint8Array)&&(m=f.from(m,m.offset,m.byteLength)),!f.isBuffer(m))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof m);if(d===void 0&&(d=0),x===void 0&&(x=m?m.length:0),ee===void 0&&(ee=0),Ce===void 0&&(Ce=this.length),d<0||x>m.length||ee<0||Ce>this.length)throw new RangeError("out of range index");if(ee>=Ce&&d>=x)return 0;if(ee>=Ce)return-1;if(d>=x)return 1;if(d>>>=0,x>>>=0,ee>>>=0,Ce>>>=0,this===m)return 0;for(var H=Ce-ee,ne=x-d,Ge=Math.min(H,ne),xe=this.slice(ee,Ce),be=m.slice(d,x),qe=0;qe<Ge;++qe)if(xe[qe]!==be[qe]){H=xe[qe],ne=be[qe];break}return H<ne?-1:ne<H?1:0};function j(P,m,d,x,ee){if(P.length===0)return-1;if(typeof d=="string"?(x=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,k(d)&&(d=ee?0:P.length-1),d<0&&(d=P.length+d),d>=P.length){if(ee)return-1;d=P.length-1}else if(d<0)if(ee)d=0;else return-1;if(typeof m=="string"&&(m=f.from(m,x)),f.isBuffer(m))return m.length===0?-1:se(P,m,d,x,ee);if(typeof m=="number")return m=m&255,typeof Uint8Array.prototype.indexOf=="function"?ee?Uint8Array.prototype.indexOf.call(P,m,d):Uint8Array.prototype.lastIndexOf.call(P,m,d):se(P,[m],d,x,ee);throw new TypeError("val must be string, number or Buffer")}function se(P,m,d,x,ee){var Ce=1,H=P.length,ne=m.length;if(x!==void 0&&(x=String(x).toLowerCase(),x==="ucs2"||x==="ucs-2"||x==="utf16le"||x==="utf-16le")){if(P.length<2||m.length<2)return-1;Ce=2,H/=2,ne/=2,d/=2}function Ge(me,pt){return Ce===1?me[pt]:me.readUInt16BE(pt*Ce)}var xe;if(ee){var be=-1;for(xe=d;xe<H;xe++)if(Ge(P,xe)===Ge(m,be===-1?0:xe-be)){if(be===-1&&(be=xe),xe-be+1===ne)return be*Ce}else be!==-1&&(xe-=xe-be),be=-1}else for(d+ne>H&&(d=H-ne),xe=d;xe>=0;xe--){for(var qe=!0,Et=0;Et<ne;Et++)if(Ge(P,xe+Et)!==Ge(m,Et)){qe=!1;break}if(qe)return xe}return-1}f.prototype.includes=function(m,d,x){return this.indexOf(m,d,x)!==-1},f.prototype.indexOf=function(m,d,x){return j(this,m,d,x,!0)},f.prototype.lastIndexOf=function(m,d,x){return j(this,m,d,x,!1)};function he(P,m,d,x){d=Number(d)||0;var ee=P.length-d;x?(x=Number(x),x>ee&&(x=ee)):x=ee;var Ce=m.length;x>Ce/2&&(x=Ce/2);for(var H=0;H<x;++H){var ne=parseInt(m.substr(H*2,2),16);if(k(ne))return H;P[d+H]=ne}return H}function Oe(P,m,d,x){return Br(Tt(m,P.length-d),P,d,x)}function Be(P,m,d,x){return Br(Ht(m),P,d,x)}function je(P,m,d,x){return Br(sr(m),P,d,x)}function X(P,m,d,x){return Br(pr(m,P.length-d),P,d,x)}f.prototype.write=function(m,d,x,ee){if(d===void 0)ee="utf8",x=this.length,d=0;else if(x===void 0&&typeof d=="string")ee=d,x=this.length,d=0;else if(isFinite(d))d=d>>>0,isFinite(x)?(x=x>>>0,ee===void 0&&(ee="utf8")):(ee=x,x=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ce=this.length-d;if((x===void 0||x>Ce)&&(x=Ce),m.length>0&&(x<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");ee||(ee="utf8");for(var H=!1;;)switch(ee){case"hex":return he(this,m,d,x);case"utf8":case"utf-8":return Oe(this,m,d,x);case"ascii":case"latin1":case"binary":return Be(this,m,d,x);case"base64":return je(this,m,d,x);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,m,d,x);default:if(H)throw new TypeError("Unknown encoding: "+ee);ee=(""+ee).toLowerCase(),H=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function de(P,m,d){return m===0&&d===P.length?ue.fromByteArray(P):ue.fromByteArray(P.slice(m,d))}function L(P,m,d){d=Math.min(P.length,d);for(var x=[],ee=m;ee<d;){var Ce=P[ee],H=null,ne=Ce>239?4:Ce>223?3:Ce>191?2:1;if(ee+ne<=d){var Ge,xe,be,qe;switch(ne){case 1:Ce<128&&(H=Ce);break;case 2:Ge=P[ee+1],(Ge&192)===128&&(qe=(Ce&31)<<6|Ge&63,qe>127&&(H=qe));break;case 3:Ge=P[ee+1],xe=P[ee+2],(Ge&192)===128&&(xe&192)===128&&(qe=(Ce&15)<<12|(Ge&63)<<6|xe&63,qe>2047&&(qe<55296||qe>57343)&&(H=qe));break;case 4:Ge=P[ee+1],xe=P[ee+2],be=P[ee+3],(Ge&192)===128&&(xe&192)===128&&(be&192)===128&&(qe=(Ce&15)<<18|(Ge&63)<<12|(xe&63)<<6|be&63,qe>65535&&qe<1114112&&(H=qe))}}H===null?(H=65533,ne=1):H>65535&&(H-=65536,x.push(H>>>10&1023|55296),H=56320|H&1023),x.push(H),ee+=ne}return De(x)}var rt=4096;function De(P){var m=P.length;if(m<=rt)return String.fromCharCode.apply(String,P);for(var d="",x=0;x<m;)d+=String.fromCharCode.apply(String,P.slice(x,x+=rt));return d}function we(P,m,d){var x="";d=Math.min(P.length,d);for(var ee=m;ee<d;++ee)x+=String.fromCharCode(P[ee]&127);return x}function He(P,m,d){var x="";d=Math.min(P.length,d);for(var ee=m;ee<d;++ee)x+=String.fromCharCode(P[ee]);return x}function ge(P,m,d){var x=P.length;(!m||m<0)&&(m=0),(!d||d<0||d>x)&&(d=x);for(var ee="",Ce=m;Ce<d;++Ce)ee+=nt[P[Ce]];return ee}function Le(P,m,d){for(var x=P.slice(m,d),ee="",Ce=0;Ce<x.length-1;Ce+=2)ee+=String.fromCharCode(x[Ce]+x[Ce+1]*256);return ee}f.prototype.slice=function(m,d){var x=this.length;m=~~m,d=d===void 0?x:~~d,m<0?(m+=x,m<0&&(m=0)):m>x&&(m=x),d<0?(d+=x,d<0&&(d=0)):d>x&&(d=x),d<m&&(d=m);var ee=this.subarray(m,d);return Object.setPrototypeOf(ee,f.prototype),ee};function fe(P,m,d){if(P%1!==0||P<0)throw new RangeError("offset is not uint");if(P+m>d)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUintLE=f.prototype.readUIntLE=function(m,d,x){m=m>>>0,d=d>>>0,x||fe(m,d,this.length);for(var ee=this[m],Ce=1,H=0;++H<d&&(Ce*=256);)ee+=this[m+H]*Ce;return ee},f.prototype.readUintBE=f.prototype.readUIntBE=function(m,d,x){m=m>>>0,d=d>>>0,x||fe(m,d,this.length);for(var ee=this[m+--d],Ce=1;d>0&&(Ce*=256);)ee+=this[m+--d]*Ce;return ee},f.prototype.readUint8=f.prototype.readUInt8=function(m,d){return m=m>>>0,d||fe(m,1,this.length),this[m]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(m,d){return m=m>>>0,d||fe(m,2,this.length),this[m]|this[m+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(m,d){return m=m>>>0,d||fe(m,2,this.length),this[m]<<8|this[m+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(m,d){return m=m>>>0,d||fe(m,4,this.length),(this[m]|this[m+1]<<8|this[m+2]<<16)+this[m+3]*16777216},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(m,d){return m=m>>>0,d||fe(m,4,this.length),this[m]*16777216+(this[m+1]<<16|this[m+2]<<8|this[m+3])},f.prototype.readIntLE=function(m,d,x){m=m>>>0,d=d>>>0,x||fe(m,d,this.length);for(var ee=this[m],Ce=1,H=0;++H<d&&(Ce*=256);)ee+=this[m+H]*Ce;return Ce*=128,ee>=Ce&&(ee-=Math.pow(2,8*d)),ee},f.prototype.readIntBE=function(m,d,x){m=m>>>0,d=d>>>0,x||fe(m,d,this.length);for(var ee=d,Ce=1,H=this[m+--ee];ee>0&&(Ce*=256);)H+=this[m+--ee]*Ce;return Ce*=128,H>=Ce&&(H-=Math.pow(2,8*d)),H},f.prototype.readInt8=function(m,d){return m=m>>>0,d||fe(m,1,this.length),this[m]&128?(255-this[m]+1)*-1:this[m]},f.prototype.readInt16LE=function(m,d){m=m>>>0,d||fe(m,2,this.length);var x=this[m]|this[m+1]<<8;return x&32768?x|4294901760:x},f.prototype.readInt16BE=function(m,d){m=m>>>0,d||fe(m,2,this.length);var x=this[m+1]|this[m]<<8;return x&32768?x|4294901760:x},f.prototype.readInt32LE=function(m,d){return m=m>>>0,d||fe(m,4,this.length),this[m]|this[m+1]<<8|this[m+2]<<16|this[m+3]<<24},f.prototype.readInt32BE=function(m,d){return m=m>>>0,d||fe(m,4,this.length),this[m]<<24|this[m+1]<<16|this[m+2]<<8|this[m+3]},f.prototype.readFloatLE=function(m,d){return m=m>>>0,d||fe(m,4,this.length),R.read(this,m,!0,23,4)},f.prototype.readFloatBE=function(m,d){return m=m>>>0,d||fe(m,4,this.length),R.read(this,m,!1,23,4)},f.prototype.readDoubleLE=function(m,d){return m=m>>>0,d||fe(m,8,this.length),R.read(this,m,!0,52,8)},f.prototype.readDoubleBE=function(m,d){return m=m>>>0,d||fe(m,8,this.length),R.read(this,m,!1,52,8)};function Ee(P,m,d,x,ee,Ce){if(!f.isBuffer(P))throw new TypeError('"buffer" argument must be a Buffer instance');if(m>ee||m<Ce)throw new RangeError('"value" argument is out of bounds');if(d+x>P.length)throw new RangeError("Index out of range")}f.prototype.writeUintLE=f.prototype.writeUIntLE=function(m,d,x,ee){if(m=+m,d=d>>>0,x=x>>>0,!ee){var Ce=Math.pow(2,8*x)-1;Ee(this,m,d,x,Ce,0)}var H=1,ne=0;for(this[d]=m&255;++ne<x&&(H*=256);)this[d+ne]=m/H&255;return d+x},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(m,d,x,ee){if(m=+m,d=d>>>0,x=x>>>0,!ee){var Ce=Math.pow(2,8*x)-1;Ee(this,m,d,x,Ce,0)}var H=x-1,ne=1;for(this[d+H]=m&255;--H>=0&&(ne*=256);)this[d+H]=m/ne&255;return d+x},f.prototype.writeUint8=f.prototype.writeUInt8=function(m,d,x){return m=+m,d=d>>>0,x||Ee(this,m,d,1,255,0),this[d]=m&255,d+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(m,d,x){return m=+m,d=d>>>0,x||Ee(this,m,d,2,65535,0),this[d]=m&255,this[d+1]=m>>>8,d+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(m,d,x){return m=+m,d=d>>>0,x||Ee(this,m,d,2,65535,0),this[d]=m>>>8,this[d+1]=m&255,d+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(m,d,x){return m=+m,d=d>>>0,x||Ee(this,m,d,4,4294967295,0),this[d+3]=m>>>24,this[d+2]=m>>>16,this[d+1]=m>>>8,this[d]=m&255,d+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(m,d,x){return m=+m,d=d>>>0,x||Ee(this,m,d,4,4294967295,0),this[d]=m>>>24,this[d+1]=m>>>16,this[d+2]=m>>>8,this[d+3]=m&255,d+4},f.prototype.writeIntLE=function(m,d,x,ee){if(m=+m,d=d>>>0,!ee){var Ce=Math.pow(2,8*x-1);Ee(this,m,d,x,Ce-1,-Ce)}var H=0,ne=1,Ge=0;for(this[d]=m&255;++H<x&&(ne*=256);)m<0&&Ge===0&&this[d+H-1]!==0&&(Ge=1),this[d+H]=(m/ne>>0)-Ge&255;return d+x},f.prototype.writeIntBE=function(m,d,x,ee){if(m=+m,d=d>>>0,!ee){var Ce=Math.pow(2,8*x-1);Ee(this,m,d,x,Ce-1,-Ce)}var H=x-1,ne=1,Ge=0;for(this[d+H]=m&255;--H>=0&&(ne*=256);)m<0&&Ge===0&&this[d+H+1]!==0&&(Ge=1),this[d+H]=(m/ne>>0)-Ge&255;return d+x},f.prototype.writeInt8=function(m,d,x){return m=+m,d=d>>>0,x||Ee(this,m,d,1,127,-128),m<0&&(m=255+m+1),this[d]=m&255,d+1},f.prototype.writeInt16LE=function(m,d,x){return m=+m,d=d>>>0,x||Ee(this,m,d,2,32767,-32768),this[d]=m&255,this[d+1]=m>>>8,d+2},f.prototype.writeInt16BE=function(m,d,x){return m=+m,d=d>>>0,x||Ee(this,m,d,2,32767,-32768),this[d]=m>>>8,this[d+1]=m&255,d+2},f.prototype.writeInt32LE=function(m,d,x){return m=+m,d=d>>>0,x||Ee(this,m,d,4,2147483647,-2147483648),this[d]=m&255,this[d+1]=m>>>8,this[d+2]=m>>>16,this[d+3]=m>>>24,d+4},f.prototype.writeInt32BE=function(m,d,x){return m=+m,d=d>>>0,x||Ee(this,m,d,4,2147483647,-2147483648),m<0&&(m=4294967295+m+1),this[d]=m>>>24,this[d+1]=m>>>16,this[d+2]=m>>>8,this[d+3]=m&255,d+4};function At(P,m,d,x,ee,Ce){if(d+x>P.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function ft(P,m,d,x,ee){return m=+m,d=d>>>0,ee||At(P,m,d,4,34028234663852886e22,-34028234663852886e22),R.write(P,m,d,x,23,4),d+4}f.prototype.writeFloatLE=function(m,d,x){return ft(this,m,d,!0,x)},f.prototype.writeFloatBE=function(m,d,x){return ft(this,m,d,!1,x)};function ot(P,m,d,x,ee){return m=+m,d=d>>>0,ee||At(P,m,d,8,17976931348623157e292,-17976931348623157e292),R.write(P,m,d,x,52,8),d+8}f.prototype.writeDoubleLE=function(m,d,x){return ot(this,m,d,!0,x)},f.prototype.writeDoubleBE=function(m,d,x){return ot(this,m,d,!1,x)},f.prototype.copy=function(m,d,x,ee){if(!f.isBuffer(m))throw new TypeError("argument should be a Buffer");if(x||(x=0),!ee&&ee!==0&&(ee=this.length),d>=m.length&&(d=m.length),d||(d=0),ee>0&&ee<x&&(ee=x),ee===x||m.length===0||this.length===0)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(x<0||x>=this.length)throw new RangeError("Index out of range");if(ee<0)throw new RangeError("sourceEnd out of bounds");ee>this.length&&(ee=this.length),m.length-d<ee-x&&(ee=m.length-d+x);var Ce=ee-x;return this===m&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(d,x,ee):Uint8Array.prototype.set.call(m,this.subarray(x,ee),d),Ce},f.prototype.fill=function(m,d,x,ee){if(typeof m=="string"){if(typeof d=="string"?(ee=d,d=0,x=this.length):typeof x=="string"&&(ee=x,x=this.length),ee!==void 0&&typeof ee!="string")throw new TypeError("encoding must be a string");if(typeof ee=="string"&&!f.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee);if(m.length===1){var Ce=m.charCodeAt(0);(ee==="utf8"&&Ce<128||ee==="latin1")&&(m=Ce)}}else typeof m=="number"?m=m&255:typeof m=="boolean"&&(m=Number(m));if(d<0||this.length<d||this.length<x)throw new RangeError("Out of range index");if(x<=d)return this;d=d>>>0,x=x===void 0?this.length:x>>>0,m||(m=0);var H;if(typeof m=="number")for(H=d;H<x;++H)this[H]=m;else{var ne=f.isBuffer(m)?m:f.from(m,ee),Ge=ne.length;if(Ge===0)throw new TypeError('The value "'+m+'" is invalid for argument "value"');for(H=0;H<x-d;++H)this[H+d]=ne[H%Ge]}return this};var ct=/[^+/0-9A-Za-z-_]/g;function It(P){if(P=P.split("=")[0],P=P.trim().replace(ct,""),P.length<2)return"";for(;P.length%4!==0;)P=P+"=";return P}function Tt(P,m){m=m||1/0;for(var d,x=P.length,ee=null,Ce=[],H=0;H<x;++H){if(d=P.charCodeAt(H),d>55295&&d<57344){if(!ee){if(d>56319){(m-=3)>-1&&Ce.push(239,191,189);continue}else if(H+1===x){(m-=3)>-1&&Ce.push(239,191,189);continue}ee=d;continue}if(d<56320){(m-=3)>-1&&Ce.push(239,191,189),ee=d;continue}d=(ee-55296<<10|d-56320)+65536}else ee&&(m-=3)>-1&&Ce.push(239,191,189);if(ee=null,d<128){if((m-=1)<0)break;Ce.push(d)}else if(d<2048){if((m-=2)<0)break;Ce.push(d>>6|192,d&63|128)}else if(d<65536){if((m-=3)<0)break;Ce.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((m-=4)<0)break;Ce.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return Ce}function Ht(P){for(var m=[],d=0;d<P.length;++d)m.push(P.charCodeAt(d)&255);return m}function pr(P,m){for(var d,x,ee,Ce=[],H=0;H<P.length&&!((m-=2)<0);++H)d=P.charCodeAt(H),x=d>>8,ee=d%256,Ce.push(ee),Ce.push(x);return Ce}function sr(P){return ue.toByteArray(It(P))}function Br(P,m,d,x){for(var ee=0;ee<x&&!(ee+d>=m.length||ee>=P.length);++ee)m[ee+d]=P[ee];return ee}function fr(P,m){return P instanceof m||P!=null&&P.constructor!=null&&P.constructor.name!=null&&P.constructor.name===m.name}function k(P){return P!==P}var nt=function(){for(var P="0123456789abcdef",m=new Array(256),d=0;d<16;++d)for(var x=d*16,ee=0;ee<16;++ee)m[x+ee]=P[d]+P[ee];return m}()},64270:function(bn){(function(Xt,w){bn.exports=w()})(this,function(){"use strict";var Xt=function(p,u){return Xt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,v){y.__proto__=v}||function(y,v){for(var ie in v)Object.prototype.hasOwnProperty.call(v,ie)&&(y[ie]=v[ie])},Xt(p,u)};function w(p,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");Xt(p,u);function y(){this.constructor=p}p.prototype=u===null?Object.create(u):(y.prototype=u.prototype,new y)}var pe=function(){return pe=Object.assign||function(u){for(var y,v=1,ie=arguments.length;v<ie;v++){y=arguments[v];for(var Fe in y)Object.prototype.hasOwnProperty.call(y,Fe)&&(u[Fe]=y[Fe])}return u},pe.apply(this,arguments)};function ue(p,u,y,v){function ie(Fe){return Fe instanceof y?Fe:new y(function(tt){tt(Fe)})}return new(y||(y=Promise))(function(Fe,tt){function xt(hr){try{nr(v.next(hr))}catch(a){tt(a)}}function Bt(hr){try{nr(v.throw(hr))}catch(a){tt(a)}}function nr(hr){hr.done?Fe(hr.value):ie(hr.value).then(xt,Bt)}nr((v=v.apply(p,u||[])).next())})}function R(p,u){var y={label:0,sent:function(){if(Fe[0]&1)throw Fe[1];return Fe[1]},trys:[],ops:[]},v,ie,Fe,tt;return tt={next:xt(0),throw:xt(1),return:xt(2)},typeof Symbol=="function"&&(tt[Symbol.iterator]=function(){return this}),tt;function xt(nr){return function(hr){return Bt([nr,hr])}}function Bt(nr){if(v)throw new TypeError("Generator is already executing.");for(;y;)try{if(v=1,ie&&(Fe=nr[0]&2?ie.return:nr[0]?ie.throw||((Fe=ie.return)&&Fe.call(ie),0):ie.next)&&!(Fe=Fe.call(ie,nr[1])).done)return Fe;switch(ie=0,Fe&&(nr=[nr[0]&2,Fe.value]),nr[0]){case 0:case 1:Fe=nr;break;case 4:return y.label++,{value:nr[1],done:!1};case 5:y.label++,ie=nr[1],nr=[0];continue;case 7:nr=y.ops.pop(),y.trys.pop();continue;default:if(Fe=y.trys,!(Fe=Fe.length>0&&Fe[Fe.length-1])&&(nr[0]===6||nr[0]===2)){y=0;continue}if(nr[0]===3&&(!Fe||nr[1]>Fe[0]&&nr[1]<Fe[3])){y.label=nr[1];break}if(nr[0]===6&&y.label<Fe[1]){y.label=Fe[1],Fe=nr;break}if(Fe&&y.label<Fe[2]){y.label=Fe[2],y.ops.push(nr);break}Fe[2]&&y.ops.pop(),y.trys.pop();continue}nr=u.call(p,y)}catch(hr){nr=[6,hr],ie=0}finally{v=Fe=0}if(nr[0]&5)throw nr[1];return{value:nr[0]?nr[1]:void 0,done:!0}}}function Ne(p,u,y){if(y||arguments.length===2)for(var v=0,ie=u.length,Fe;v<ie;v++)(Fe||!(v in u))&&(Fe||(Fe=Array.prototype.slice.call(u,0,v)),Fe[v]=u[v]);return p.concat(Fe||u)}for(var te=function(){function p(u,y,v,ie){this.left=u,this.top=y,this.width=v,this.height=ie}return p.prototype.add=function(u,y,v,ie){return new p(this.left+u,this.top+y,this.width+v,this.height+ie)},p.fromClientRect=function(u,y){return new p(y.left+u.windowBounds.left,y.top+u.windowBounds.top,y.width,y.height)},p.fromDOMRectList=function(u,y){var v=Array.from(y).find(function(ie){return ie.width!==0});return v?new p(v.left+u.windowBounds.left,v.top+u.windowBounds.top,v.width,v.height):p.EMPTY},p.EMPTY=new p(0,0,0,0),p}(),V=function(p,u){return te.fromClientRect(p,u.getBoundingClientRect())},B=function(p){var u=p.body,y=p.documentElement;if(!u||!y)throw new Error("Unable to get document size");var v=Math.max(Math.max(u.scrollWidth,y.scrollWidth),Math.max(u.offsetWidth,y.offsetWidth),Math.max(u.clientWidth,y.clientWidth)),ie=Math.max(Math.max(u.scrollHeight,y.scrollHeight),Math.max(u.offsetHeight,y.offsetHeight),Math.max(u.clientHeight,y.clientHeight));return new te(0,0,v,ie)},f=function(p){for(var u=[],y=0,v=p.length;y<v;){var ie=p.charCodeAt(y++);if(ie>=55296&&ie<=56319&&y<v){var Fe=p.charCodeAt(y++);(Fe&64512)===56320?u.push(((ie&1023)<<10)+(Fe&1023)+65536):(u.push(ie),y--)}else u.push(ie)}return u},E=function(){for(var p=[],u=0;u<arguments.length;u++)p[u]=arguments[u];if(String.fromCodePoint)return String.fromCodePoint.apply(String,p);var y=p.length;if(!y)return"";for(var v=[],ie=-1,Fe="";++ie<y;){var tt=p[ie];tt<=65535?v.push(tt):(tt-=65536,v.push((tt>>10)+55296,tt%1024+56320)),(ie+1===y||v.length>16384)&&(Fe+=String.fromCharCode.apply(String,v),v.length=0)}return Fe},h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),S=0;S<h.length;S++)z[h.charCodeAt(S)]=S;for(var _="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Q=0;Q<_.length;Q++)N[_.charCodeAt(Q)]=Q;for(var I=function(p){var u=p.length*.75,y=p.length,v,ie=0,Fe,tt,xt,Bt;p[p.length-1]==="="&&(u--,p[p.length-2]==="="&&u--);var nr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(u):new Array(u),hr=Array.isArray(nr)?nr:new Uint8Array(nr);for(v=0;v<y;v+=4)Fe=N[p.charCodeAt(v)],tt=N[p.charCodeAt(v+1)],xt=N[p.charCodeAt(v+2)],Bt=N[p.charCodeAt(v+3)],hr[ie++]=Fe<<2|tt>>4,hr[ie++]=(tt&15)<<4|xt>>2,hr[ie++]=(xt&3)<<6|Bt&63;return nr},Y=function(p){for(var u=p.length,y=[],v=0;v<u;v+=2)y.push(p[v+1]<<8|p[v]);return y},K=function(p){for(var u=p.length,y=[],v=0;v<u;v+=4)y.push(p[v+3]<<24|p[v+2]<<16|p[v+1]<<8|p[v]);return y},ce=5,G=11,J=2,W=G-ce,j=65536>>ce,se=1<<ce,he=se-1,Oe=1024>>ce,Be=j+Oe,je=Be,X=32,de=je+X,L=65536>>G,rt=1<<W,De=rt-1,we=function(p,u,y){return p.slice?p.slice(u,y):new Uint16Array(Array.prototype.slice.call(p,u,y))},He=function(p,u,y){return p.slice?p.slice(u,y):new Uint32Array(Array.prototype.slice.call(p,u,y))},ge=function(p,u){var y=I(p),v=Array.isArray(y)?K(y):new Uint32Array(y),ie=Array.isArray(y)?Y(y):new Uint16Array(y),Fe=24,tt=we(ie,Fe/2,v[4]/2),xt=v[5]===2?we(ie,(Fe+v[4])/2):He(v,Math.ceil((Fe+v[4])/4));return new Le(v[0],v[1],v[2],v[3],tt,xt)},Le=function(){function p(u,y,v,ie,Fe,tt){this.initialValue=u,this.errorValue=y,this.highStart=v,this.highValueIndex=ie,this.index=Fe,this.data=tt}return p.prototype.get=function(u){var y;if(u>=0){if(u<55296||u>56319&&u<=65535)return y=this.index[u>>ce],y=(y<<J)+(u&he),this.data[y];if(u<=65535)return y=this.index[j+(u-55296>>ce)],y=(y<<J)+(u&he),this.data[y];if(u<this.highStart)return y=de-L+(u>>G),y=this.index[y],y+=u>>ce&De,y=this.index[y],y=(y<<J)+(u&he),this.data[y];if(u<=1114111)return this.data[this.highValueIndex]}return this.errorValue},p}(),fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ee=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),At=0;At<fe.length;At++)Ee[fe.charCodeAt(At)]=At;var ft="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==",ot=50,ct=1,It=2,Tt=3,Ht=4,pr=5,sr=7,Br=8,fr=9,k=10,nt=11,P=12,m=13,d=14,x=15,ee=16,Ce=17,H=18,ne=19,Ge=20,xe=21,be=22,qe=23,Et=24,me=25,pt=26,lt=27,Me=28,Pe=29,gt=30,zt=31,Ut=32,ir=33,Dr=34,mr=35,Mr=36,Lr=37,vr=38,ur=39,$r=40,cn=41,Sn=42,nn=43,Bn=[9001,65288],ri="!",Er="\xD7",ni="\xF7",Li=ge(ft),oi=[gt,Mr],Ti=[ct,It,Tt,pr],Ui=[k,Br],Xi=[lt,pt],Ha=Ti.concat(Ui),Ji=[vr,ur,$r,Dr,mr],pi=[x,m],ki=function(p,u){u===void 0&&(u="strict");var y=[],v=[],ie=[];return p.forEach(function(Fe,tt){var xt=Li.get(Fe);if(xt>ot?(ie.push(!0),xt-=ot):ie.push(!1),["normal","auto","loose"].indexOf(u)!==-1&&[8208,8211,12316,12448].indexOf(Fe)!==-1)return v.push(tt),y.push(ee);if(xt===Ht||xt===nt){if(tt===0)return v.push(tt),y.push(gt);var Bt=y[tt-1];return Ha.indexOf(Bt)===-1?(v.push(v[tt-1]),y.push(Bt)):(v.push(tt),y.push(gt))}if(v.push(tt),xt===zt)return y.push(u==="strict"?xe:Lr);if(xt===Sn||xt===Pe)return y.push(gt);if(xt===nn)return Fe>=131072&&Fe<=196605||Fe>=196608&&Fe<=262141?y.push(Lr):y.push(gt);y.push(xt)}),[v,y,ie]},Ni=function(p,u,y,v){var ie=v[y];if(Array.isArray(p)?p.indexOf(ie)!==-1:p===ie)for(var Fe=y;Fe<=v.length;){Fe++;var tt=v[Fe];if(tt===u)return!0;if(tt!==k)break}if(ie===k)for(var Fe=y;Fe>0;){Fe--;var xt=v[Fe];if(Array.isArray(p)?p.indexOf(xt)!==-1:p===xt)for(var Bt=y;Bt<=v.length;){Bt++;var tt=v[Bt];if(tt===u)return!0;if(tt!==k)break}if(xt!==k)break}return!1},ve=function(p,u){for(var y=p;y>=0;){var v=u[y];if(v===k)y--;else return v}return 0},Te=function(p,u,y,v,ie){if(y[v]===0)return Er;var Fe=v-1;if(Array.isArray(ie)&&ie[Fe]===!0)return Er;var tt=Fe-1,xt=Fe+1,Bt=u[Fe],nr=tt>=0?u[tt]:0,hr=u[xt];if(Bt===It&&hr===Tt)return Er;if(Ti.indexOf(Bt)!==-1)return ri;if(Ti.indexOf(hr)!==-1||Ui.indexOf(hr)!==-1)return Er;if(ve(Fe,u)===Br)return ni;if(Li.get(p[Fe])===nt||(Bt===Ut||Bt===ir)&&Li.get(p[xt])===nt||Bt===sr||hr===sr||Bt===fr||[k,m,x].indexOf(Bt)===-1&&hr===fr||[Ce,H,ne,Et,Me].indexOf(hr)!==-1||ve(Fe,u)===be||Ni(qe,be,Fe,u)||Ni([Ce,H],xe,Fe,u)||Ni(P,P,Fe,u))return Er;if(Bt===k)return ni;if(Bt===qe||hr===qe)return Er;if(hr===ee||Bt===ee)return ni;if([m,x,xe].indexOf(hr)!==-1||Bt===d||nr===Mr&&pi.indexOf(Bt)!==-1||Bt===Me&&hr===Mr||hr===Ge||oi.indexOf(hr)!==-1&&Bt===me||oi.indexOf(Bt)!==-1&&hr===me||Bt===lt&&[Lr,Ut,ir].indexOf(hr)!==-1||[Lr,Ut,ir].indexOf(Bt)!==-1&&hr===pt||oi.indexOf(Bt)!==-1&&Xi.indexOf(hr)!==-1||Xi.indexOf(Bt)!==-1&&oi.indexOf(hr)!==-1||[lt,pt].indexOf(Bt)!==-1&&(hr===me||[be,x].indexOf(hr)!==-1&&u[xt+1]===me)||[be,x].indexOf(Bt)!==-1&&hr===me||Bt===me&&[me,Me,Et].indexOf(hr)!==-1)return Er;if([me,Me,Et,Ce,H].indexOf(hr)!==-1)for(var a=Fe;a>=0;){var g=u[a];if(g===me)return Er;if([Me,Et].indexOf(g)!==-1)a--;else break}if([lt,pt].indexOf(hr)!==-1)for(var a=[Ce,H].indexOf(Bt)!==-1?tt:Fe;a>=0;){var g=u[a];if(g===me)return Er;if([Me,Et].indexOf(g)!==-1)a--;else break}if(vr===Bt&&[vr,ur,Dr,mr].indexOf(hr)!==-1||[ur,Dr].indexOf(Bt)!==-1&&[ur,$r].indexOf(hr)!==-1||[$r,mr].indexOf(Bt)!==-1&&hr===$r||Ji.indexOf(Bt)!==-1&&[Ge,pt].indexOf(hr)!==-1||Ji.indexOf(hr)!==-1&&Bt===lt||oi.indexOf(Bt)!==-1&&oi.indexOf(hr)!==-1||Bt===Et&&oi.indexOf(hr)!==-1||oi.concat(me).indexOf(Bt)!==-1&&hr===be&&Bn.indexOf(p[xt])===-1||oi.concat(me).indexOf(hr)!==-1&&Bt===H)return Er;if(Bt===cn&&hr===cn){for(var O=y[Fe],oe=1;O>0&&(O--,u[O]===cn);)oe++;if(oe%2!==0)return Er}return Bt===Ut&&hr===ir?Er:ni},ke=function(p,u){u||(u={lineBreak:"normal",wordBreak:"normal"});var y=ki(p,u.lineBreak),v=y[0],ie=y[1],Fe=y[2];(u.wordBreak==="break-all"||u.wordBreak==="break-word")&&(ie=ie.map(function(xt){return[me,gt,Sn].indexOf(xt)!==-1?Lr:xt}));var tt=u.wordBreak==="keep-all"?Fe.map(function(xt,Bt){return xt&&p[Bt]>=19968&&p[Bt]<=40959}):void 0;return[v,ie,tt]},it=function(){function p(u,y,v,ie){this.codePoints=u,this.required=y===ri,this.start=v,this.end=ie}return p.prototype.slice=function(){return E.apply(void 0,this.codePoints.slice(this.start,this.end))},p}(),$t=function(p,u){var y=f(p),v=ke(y,u),ie=v[0],Fe=v[1],tt=v[2],xt=y.length,Bt=0,nr=0;return{next:function(){if(nr>=xt)return{done:!0,value:null};for(var hr=Er;nr<xt&&(hr=Te(y,Fe,ie,++nr,tt))===Er;);if(hr!==Er||nr===xt){var a=new it(y,hr,Bt,nr);return Bt=nr,{value:a,done:!1}}return{done:!0,value:null}}}},Qt=1,Sr=2,dr=4,Hr=8,Wr=10,en=47,Vr=92,jr=9,Yr=32,mn=34,tn=61,Dn=35,Qn=36,ui=37,Tn=39,sn=40,Kt=41,Zt=95,qt=45,er=33,Jt=60,Qr=62,kr=64,Gr=91,Mn=93,Pn=61,si=123,qn=63,bi=125,Jn=124,Hn=126,on=128,mi=65533,Ln=42,ei=43,vi=44,Ei=58,Xn=59,Bi=46,ra=0,ii=8,An=11,rn=14,Un=31,xn=127,jn=-1,ci=48,wi=97,Aa=101,Yi=102,ao=117,Yn=122,Nn=65,_i=69,xi=70,ha=85,No=90,na=function(p){return p>=ci&&p<=57},$i=function(p){return p>=55296&&p<=57343},ja=function(p){return na(p)||p>=Nn&&p<=xi||p>=wi&&p<=Yi},Ma=function(p){return p>=wi&&p<=Yn},eo=function(p){return p>=Nn&&p<=No},vo=function(p){return Ma(p)||eo(p)},ba=function(p){return p>=on},Ai=function(p){return p===Wr||p===jr||p===Yr},ua=function(p){return vo(p)||ba(p)||p===Zt},Do=function(p){return ua(p)||na(p)||p===qt},uo=function(p){return p>=ra&&p<=ii||p===An||p>=rn&&p<=Un||p===xn},Xa=function(p,u){return p!==Vr?!1:u!==Wr},Di=function(p,u,y){return p===qt?ua(u)||Xa(u,y):ua(p)?!0:!!(p===Vr&&Xa(p,u))},Po=function(p,u,y){return p===ei||p===qt?na(u)?!0:u===Bi&&na(y):na(p===Bi?u:p)},fo=function(p){var u=0,y=1;(p[u]===ei||p[u]===qt)&&(p[u]===qt&&(y=-1),u++);for(var v=[];na(p[u]);)v.push(p[u++]);var ie=v.length?parseInt(E.apply(void 0,v),10):0;p[u]===Bi&&u++;for(var Fe=[];na(p[u]);)Fe.push(p[u++]);var tt=Fe.length,xt=tt?parseInt(E.apply(void 0,Fe),10):0;(p[u]===_i||p[u]===Aa)&&u++;var Bt=1;(p[u]===ei||p[u]===qt)&&(p[u]===qt&&(Bt=-1),u++);for(var nr=[];na(p[u]);)nr.push(p[u++]);var hr=nr.length?parseInt(E.apply(void 0,nr),10):0;return y*(ie+xt*Math.pow(10,-tt))*Math.pow(10,Bt*hr)},il={type:2},$o={type:3},Hs={type:4},Zo={type:13},vl={type:8},za={type:21},Ra={type:9},Ea={type:10},js={type:11},yi={type:12},Zi={type:14},Pi={type:23},Vi={type:1},da={type:25},La={type:24},Vo={type:26},_o={type:27},Bo={type:28},$a={type:29},wa={type:31},pa={type:32},Na=function(){function p(){this._value=[]}return p.prototype.write=function(u){this._value=this._value.concat(f(u))},p.prototype.read=function(){for(var u=[],y=this.consumeToken();y!==pa;)u.push(y),y=this.consumeToken();return u},p.prototype.consumeToken=function(){var u=this.consumeCodePoint();switch(u){case mn:return this.consumeStringToken(mn);case Dn:var y=this.peekCodePoint(0),v=this.peekCodePoint(1),ie=this.peekCodePoint(2);if(Do(y)||Xa(v,ie)){var Fe=Di(y,v,ie)?Sr:Qt,tt=this.consumeName();return{type:5,value:tt,flags:Fe}}break;case Qn:if(this.peekCodePoint(0)===tn)return this.consumeCodePoint(),Zo;break;case Tn:return this.consumeStringToken(Tn);case sn:return il;case Kt:return $o;case Ln:if(this.peekCodePoint(0)===tn)return this.consumeCodePoint(),Zi;break;case ei:if(Po(u,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(u),this.consumeNumericToken();break;case vi:return Hs;case qt:var xt=u,Bt=this.peekCodePoint(0),nr=this.peekCodePoint(1);if(Po(xt,Bt,nr))return this.reconsumeCodePoint(u),this.consumeNumericToken();if(Di(xt,Bt,nr))return this.reconsumeCodePoint(u),this.consumeIdentLikeToken();if(Bt===qt&&nr===Qr)return this.consumeCodePoint(),this.consumeCodePoint(),La;break;case Bi:if(Po(u,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(u),this.consumeNumericToken();break;case en:if(this.peekCodePoint(0)===Ln)for(this.consumeCodePoint();;){var hr=this.consumeCodePoint();if(hr===Ln&&(hr=this.consumeCodePoint(),hr===en))return this.consumeToken();if(hr===jn)return this.consumeToken()}break;case Ei:return Vo;case Xn:return _o;case Jt:if(this.peekCodePoint(0)===er&&this.peekCodePoint(1)===qt&&this.peekCodePoint(2)===qt)return this.consumeCodePoint(),this.consumeCodePoint(),da;break;case kr:var a=this.peekCodePoint(0),g=this.peekCodePoint(1),O=this.peekCodePoint(2);if(Di(a,g,O)){var tt=this.consumeName();return{type:7,value:tt}}break;case Gr:return Bo;case Vr:if(Xa(u,this.peekCodePoint(0)))return this.reconsumeCodePoint(u),this.consumeIdentLikeToken();break;case Mn:return $a;case Pn:if(this.peekCodePoint(0)===tn)return this.consumeCodePoint(),vl;break;case si:return js;case bi:return yi;case ao:case ha:var oe=this.peekCodePoint(0),Ie=this.peekCodePoint(1);return oe===ei&&(ja(Ie)||Ie===qn)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(u),this.consumeIdentLikeToken();case Jn:if(this.peekCodePoint(0)===tn)return this.consumeCodePoint(),Ra;if(this.peekCodePoint(0)===Jn)return this.consumeCodePoint(),za;break;case Hn:if(this.peekCodePoint(0)===tn)return this.consumeCodePoint(),Ea;break;case jn:return pa}return Ai(u)?(this.consumeWhiteSpace(),wa):na(u)?(this.reconsumeCodePoint(u),this.consumeNumericToken()):ua(u)?(this.reconsumeCodePoint(u),this.consumeIdentLikeToken()):{type:6,value:E(u)}},p.prototype.consumeCodePoint=function(){var u=this._value.shift();return typeof u=="undefined"?-1:u},p.prototype.reconsumeCodePoint=function(u){this._value.unshift(u)},p.prototype.peekCodePoint=function(u){return u>=this._value.length?-1:this._value[u]},p.prototype.consumeUnicodeRangeToken=function(){for(var u=[],y=this.consumeCodePoint();ja(y)&&u.length<6;)u.push(y),y=this.consumeCodePoint();for(var v=!1;y===qn&&u.length<6;)u.push(y),y=this.consumeCodePoint(),v=!0;if(v){var ie=parseInt(E.apply(void 0,u.map(function(Bt){return Bt===qn?ci:Bt})),16),Fe=parseInt(E.apply(void 0,u.map(function(Bt){return Bt===qn?xi:Bt})),16);return{type:30,start:ie,end:Fe}}var tt=parseInt(E.apply(void 0,u),16);if(this.peekCodePoint(0)===qt&&ja(this.peekCodePoint(1))){this.consumeCodePoint(),y=this.consumeCodePoint();for(var xt=[];ja(y)&&xt.length<6;)xt.push(y),y=this.consumeCodePoint();var Fe=parseInt(E.apply(void 0,xt),16);return{type:30,start:tt,end:Fe}}else return{type:30,start:tt,end:tt}},p.prototype.consumeIdentLikeToken=function(){var u=this.consumeName();return u.toLowerCase()==="url"&&this.peekCodePoint(0)===sn?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===sn?(this.consumeCodePoint(),{type:19,value:u}):{type:20,value:u}},p.prototype.consumeUrlToken=function(){var u=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===jn)return{type:22,value:""};var y=this.peekCodePoint(0);if(y===Tn||y===mn){var v=this.consumeStringToken(this.consumeCodePoint());return v.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===jn||this.peekCodePoint(0)===Kt)?(this.consumeCodePoint(),{type:22,value:v.value}):(this.consumeBadUrlRemnants(),Pi)}for(;;){var ie=this.consumeCodePoint();if(ie===jn||ie===Kt)return{type:22,value:E.apply(void 0,u)};if(Ai(ie))return this.consumeWhiteSpace(),this.peekCodePoint(0)===jn||this.peekCodePoint(0)===Kt?(this.consumeCodePoint(),{type:22,value:E.apply(void 0,u)}):(this.consumeBadUrlRemnants(),Pi);if(ie===mn||ie===Tn||ie===sn||uo(ie))return this.consumeBadUrlRemnants(),Pi;if(ie===Vr)if(Xa(ie,this.peekCodePoint(0)))u.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Pi;else u.push(ie)}},p.prototype.consumeWhiteSpace=function(){for(;Ai(this.peekCodePoint(0));)this.consumeCodePoint()},p.prototype.consumeBadUrlRemnants=function(){for(;;){var u=this.consumeCodePoint();if(u===Kt||u===jn)return;Xa(u,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},p.prototype.consumeStringSlice=function(u){for(var y=5e4,v="";u>0;){var ie=Math.min(y,u);v+=E.apply(void 0,this._value.splice(0,ie)),u-=ie}return this._value.shift(),v},p.prototype.consumeStringToken=function(u){var y="",v=0;do{var ie=this._value[v];if(ie===jn||ie===void 0||ie===u)return y+=this.consumeStringSlice(v),{type:0,value:y};if(ie===Wr)return this._value.splice(0,v),Vi;if(ie===Vr){var Fe=this._value[v+1];Fe!==jn&&Fe!==void 0&&(Fe===Wr?(y+=this.consumeStringSlice(v),v=-1,this._value.shift()):Xa(ie,Fe)&&(y+=this.consumeStringSlice(v),y+=E(this.consumeEscapedCodePoint()),v=-1))}v++}while(!0)},p.prototype.consumeNumber=function(){var u=[],y=dr,v=this.peekCodePoint(0);for((v===ei||v===qt)&&u.push(this.consumeCodePoint());na(this.peekCodePoint(0));)u.push(this.consumeCodePoint());v=this.peekCodePoint(0);var ie=this.peekCodePoint(1);if(v===Bi&&na(ie))for(u.push(this.consumeCodePoint(),this.consumeCodePoint()),y=Hr;na(this.peekCodePoint(0));)u.push(this.consumeCodePoint());v=this.peekCodePoint(0),ie=this.peekCodePoint(1);var Fe=this.peekCodePoint(2);if((v===_i||v===Aa)&&((ie===ei||ie===qt)&&na(Fe)||na(ie)))for(u.push(this.consumeCodePoint(),this.consumeCodePoint()),y=Hr;na(this.peekCodePoint(0));)u.push(this.consumeCodePoint());return[fo(u),y]},p.prototype.consumeNumericToken=function(){var u=this.consumeNumber(),y=u[0],v=u[1],ie=this.peekCodePoint(0),Fe=this.peekCodePoint(1),tt=this.peekCodePoint(2);if(Di(ie,Fe,tt)){var xt=this.consumeName();return{type:15,number:y,flags:v,unit:xt}}return ie===ui?(this.consumeCodePoint(),{type:16,number:y,flags:v}):{type:17,number:y,flags:v}},p.prototype.consumeEscapedCodePoint=function(){var u=this.consumeCodePoint();if(ja(u)){for(var y=E(u);ja(this.peekCodePoint(0))&&y.length<6;)y+=E(this.consumeCodePoint());Ai(this.peekCodePoint(0))&&this.consumeCodePoint();var v=parseInt(y,16);return v===0||$i(v)||v>1114111?mi:v}return u===jn?mi:u},p.prototype.consumeName=function(){for(var u="";;){var y=this.consumeCodePoint();if(Do(y))u+=E(y);else if(Xa(y,this.peekCodePoint(0)))u+=E(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(y),u}},p}(),Ja=function(){function p(u){this._tokens=u}return p.create=function(u){var y=new Na;return y.write(u),new p(y.read())},p.parseValue=function(u){return p.create(u).parseComponentValue()},p.parseValues=function(u){return p.create(u).parseComponentValues()},p.prototype.parseComponentValue=function(){for(var u=this.consumeToken();u.type===31;)u=this.consumeToken();if(u.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(u);var y=this.consumeComponentValue();do u=this.consumeToken();while(u.type===31);if(u.type===32)return y;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},p.prototype.parseComponentValues=function(){for(var u=[];;){var y=this.consumeComponentValue();if(y.type===32)return u;u.push(y),u.push()}},p.prototype.consumeComponentValue=function(){var u=this.consumeToken();switch(u.type){case 11:case 28:case 2:return this.consumeSimpleBlock(u.type);case 19:return this.consumeFunction(u)}return u},p.prototype.consumeSimpleBlock=function(u){for(var y={type:u,values:[]},v=this.consumeToken();;){if(v.type===32||ks(v,u))return y;this.reconsumeToken(v),y.values.push(this.consumeComponentValue()),v=this.consumeToken()}},p.prototype.consumeFunction=function(u){for(var y={name:u.value,values:[],type:18};;){var v=this.consumeToken();if(v.type===32||v.type===3)return y;this.reconsumeToken(v),y.values.push(this.consumeComponentValue())}},p.prototype.consumeToken=function(){var u=this._tokens.shift();return typeof u=="undefined"?pa:u},p.prototype.reconsumeToken=function(u){this._tokens.unshift(u)},p}(),oo=function(p){return p.type===15},Ta=function(p){return p.type===17},ka=function(p){return p.type===20},Fo=function(p){return p.type===0},Ll=function(p,u){return ka(p)&&p.value===u},cs=function(p){return p.type!==31},dl=function(p){return p.type!==31&&p.type!==4},Oo=function(p){var u=[],y=[];return p.forEach(function(v){if(v.type===4){if(y.length===0)throw new Error("Error parsing function args, zero tokens for arg");u.push(y),y=[];return}v.type!==31&&y.push(v)}),y.length&&u.push(y),u},ks=function(p,u){return u===11&&p.type===12||u===28&&p.type===29?!0:u===2&&p.type===3},Io=function(p){return p.type===17||p.type===15},Kn=function(p){return p.type===16||Io(p)},kl=function(p){return p.length>1?[p[0],p[1]]:[p[0]]},To={type:17,number:0,flags:dr},Hl={type:16,number:50,flags:dr},zs={type:16,number:100,flags:dr},ms=function(p,u,y){var v=p[0],ie=p[1];return[Da(v,u),Da(typeof ie!="undefined"?ie:v,y)]},Da=function(p,u){if(p.type===16)return p.number/100*u;if(oo(p))switch(p.unit){case"rem":case"em":return 16*p.number;case"px":default:return p.number}return p.number},Uo="deg",jl="grad",tc="rad",fl="turn",ma={name:"angle",parse:function(p,u){if(u.type===15)switch(u.unit){case Uo:return Math.PI*u.number/180;case jl:return Math.PI/200*u.number;case tc:return u.number;case fl:return Math.PI*2*u.number}throw new Error("Unsupported angle type")}},oa=function(p){return p.type===15&&(p.unit===Uo||p.unit===jl||p.unit===tc||p.unit===fl)},ho=function(p){var u=p.filter(ka).map(function(y){return y.value}).join(" ");switch(u){case"to bottom right":case"to right bottom":case"left top":case"top left":return[To,To];case"to top":case"bottom":return Za(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[To,zs];case"to right":case"left":return Za(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[zs,zs];case"to bottom":case"top":return Za(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[zs,To];case"to left":case"right":return Za(270)}return 0},Za=function(p){return Math.PI*p/180},to={name:"color",parse:function(p,u){if(u.type===18){var y=Wc[u.name];if(typeof y=="undefined")throw new Error('Attempting to parse an unsupported color function "'+u.name+'"');return y(p,u.values)}if(u.type===5){if(u.value.length===3){var v=u.value.substring(0,1),ie=u.value.substring(1,2),Fe=u.value.substring(2,3);return Wo(parseInt(v+v,16),parseInt(ie+ie,16),parseInt(Fe+Fe,16),1)}if(u.value.length===4){var v=u.value.substring(0,1),ie=u.value.substring(1,2),Fe=u.value.substring(2,3),tt=u.value.substring(3,4);return Wo(parseInt(v+v,16),parseInt(ie+ie,16),parseInt(Fe+Fe,16),parseInt(tt+tt,16)/255)}if(u.value.length===6){var v=u.value.substring(0,2),ie=u.value.substring(2,4),Fe=u.value.substring(4,6);return Wo(parseInt(v,16),parseInt(ie,16),parseInt(Fe,16),1)}if(u.value.length===8){var v=u.value.substring(0,2),ie=u.value.substring(2,4),Fe=u.value.substring(4,6),tt=u.value.substring(6,8);return Wo(parseInt(v,16),parseInt(ie,16),parseInt(Fe,16),parseInt(tt,16)/255)}}if(u.type===20){var xt=Js[u.value.toUpperCase()];if(typeof xt!="undefined")return xt}return Js.TRANSPARENT}},Ro=function(p){return(255&p)===0},Ya=function(p){var u=255&p,y=255&p>>8,v=255&p>>16,ie=255&p>>24;return u<255?"rgba("+ie+","+v+","+y+","+u/255+")":"rgb("+ie+","+v+","+y+")"},Wo=function(p,u,y,v){return(p<<24|u<<16|y<<8|Math.round(v*255)<<0)>>>0},Ds=function(p,u){if(p.type===17)return p.number;if(p.type===16){var y=u===3?1:255;return u===3?p.number/100*y:Math.round(p.number/100*y)}return 0},hl=function(p,u){var y=u.filter(dl);if(y.length===3){var v=y.map(Ds),ie=v[0],Fe=v[1],tt=v[2];return Wo(ie,Fe,tt,1)}if(y.length===4){var xt=y.map(Ds),ie=xt[0],Fe=xt[1],tt=xt[2],Bt=xt[3];return Wo(ie,Fe,tt,Bt)}return 0};function Xs(p,u,y){return y<0&&(y+=1),y>=1&&(y-=1),y<1/6?(u-p)*y*6+p:y<1/2?u:y<2/3?(u-p)*6*(2/3-y)+p:p}var al=function(p,u){var y=u.filter(dl),v=y[0],ie=y[1],Fe=y[2],tt=y[3],xt=(v.type===17?Za(v.number):ma.parse(p,v))/(Math.PI*2),Bt=Kn(ie)?ie.number/100:0,nr=Kn(Fe)?Fe.number/100:0,hr=typeof tt!="undefined"&&Kn(tt)?Da(tt,1):1;if(Bt===0)return Wo(nr*255,nr*255,nr*255,1);var a=nr<=.5?nr*(Bt+1):nr+Bt-nr*Bt,g=nr*2-a,O=Xs(g,a,xt+1/3),oe=Xs(g,a,xt),Ie=Xs(g,a,xt-1/3);return Wo(O*255,oe*255,Ie*255,hr)},Wc={hsl:al,hsla:al,rgb:hl,rgba:hl},Dl=function(p,u){return to.parse(p,Ja.create(u).parseComponentValue())},Js={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},lA={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(p,u){return u.map(function(y){if(ka(y))switch(y.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},cA={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},hc=function(p,u){var y=to.parse(p,u[0]),v=u[1];return v&&Kn(v)?{color:y,stop:v}:{color:y,stop:null}},wA=function(p,u){var y=p[0],v=p[p.length-1];y.stop===null&&(y.stop=To),v.stop===null&&(v.stop=zs);for(var ie=[],Fe=0,tt=0;tt<p.length;tt++){var xt=p[tt].stop;if(xt!==null){var Bt=Da(xt,u);Bt>Fe?ie.push(Bt):ie.push(Fe),Fe=Bt}else ie.push(null)}for(var nr=null,tt=0;tt<ie.length;tt++){var hr=ie[tt];if(hr===null)nr===null&&(nr=tt);else if(nr!==null){for(var a=tt-nr,g=ie[nr-1],O=(hr-g)/(a+1),oe=1;oe<=a;oe++)ie[nr+oe-1]=O*oe;nr=null}}return p.map(function(Ie,Ve){var ze=Ie.color;return{color:ze,stop:Math.max(Math.min(1,ie[Ve]/u),0)}})},Pl=function(p,u,y){var v=u/2,ie=y/2,Fe=Da(p[0],u)-v,tt=ie-Da(p[1],y);return(Math.atan2(tt,Fe)+Math.PI*2)%(Math.PI*2)},Ys=function(p,u,y){var v=typeof p=="number"?p:Pl(p,u,y),ie=Math.abs(u*Math.sin(v))+Math.abs(y*Math.cos(v)),Fe=u/2,tt=y/2,xt=ie/2,Bt=Math.sin(v-Math.PI/2)*xt,nr=Math.cos(v-Math.PI/2)*xt;return[ie,Fe-nr,Fe+nr,tt-Bt,tt+Bt]},ol=function(p,u){return Math.sqrt(p*p+u*u)},sl=function(p,u,y,v,ie){var Fe=[[0,0],[0,u],[p,0],[p,u]];return Fe.reduce(function(tt,xt){var Bt=xt[0],nr=xt[1],hr=ol(y-Bt,v-nr);return(ie?hr<tt.optimumDistance:hr>tt.optimumDistance)?{optimumCorner:xt,optimumDistance:hr}:tt},{optimumDistance:ie?1/0:-1/0,optimumCorner:null}).optimumCorner},Oa=function(p,u,y,v,ie){var Fe=0,tt=0;switch(p.size){case 0:p.shape===0?Fe=tt=Math.min(Math.abs(u),Math.abs(u-v),Math.abs(y),Math.abs(y-ie)):p.shape===1&&(Fe=Math.min(Math.abs(u),Math.abs(u-v)),tt=Math.min(Math.abs(y),Math.abs(y-ie)));break;case 2:if(p.shape===0)Fe=tt=Math.min(ol(u,y),ol(u,y-ie),ol(u-v,y),ol(u-v,y-ie));else if(p.shape===1){var xt=Math.min(Math.abs(y),Math.abs(y-ie))/Math.min(Math.abs(u),Math.abs(u-v)),Bt=sl(v,ie,u,y,!0),nr=Bt[0],hr=Bt[1];Fe=ol(nr-u,(hr-y)/xt),tt=xt*Fe}break;case 1:p.shape===0?Fe=tt=Math.max(Math.abs(u),Math.abs(u-v),Math.abs(y),Math.abs(y-ie)):p.shape===1&&(Fe=Math.max(Math.abs(u),Math.abs(u-v)),tt=Math.max(Math.abs(y),Math.abs(y-ie)));break;case 3:if(p.shape===0)Fe=tt=Math.max(ol(u,y),ol(u,y-ie),ol(u-v,y),ol(u-v,y-ie));else if(p.shape===1){var xt=Math.max(Math.abs(y),Math.abs(y-ie))/Math.max(Math.abs(u),Math.abs(u-v)),a=sl(v,ie,u,y,!1),nr=a[0],hr=a[1];Fe=ol(nr-u,(hr-y)/xt),tt=xt*Fe}break}return Array.isArray(p.size)&&(Fe=Da(p.size[0],v),tt=p.size.length===2?Da(p.size[1],ie):Fe),[Fe,tt]},po=function(p,u){var y=Za(180),v=[];return Oo(u).forEach(function(ie,Fe){if(Fe===0){var tt=ie[0];if(tt.type===20&&tt.value==="to"){y=ho(ie);return}else if(oa(tt)){y=ma.parse(p,tt);return}}var xt=hc(p,ie);v.push(xt)}),{angle:y,stops:v,type:1}},mo=function(p,u){var y=Za(180),v=[];return Oo(u).forEach(function(ie,Fe){if(Fe===0){var tt=ie[0];if(tt.type===20&&["top","left","right","bottom"].indexOf(tt.value)!==-1){y=ho(ie);return}else if(oa(tt)){y=(ma.parse(p,tt)+Za(270))%Za(360);return}}var xt=hc(p,ie);v.push(xt)}),{angle:y,stops:v,type:1}},Go=function(p,u){var y=Za(180),v=[],ie=1,Fe=0,tt=3,xt=[];return Oo(u).forEach(function(Bt,nr){var hr=Bt[0];if(nr===0){if(ka(hr)&&hr.value==="linear"){ie=1;return}else if(ka(hr)&&hr.value==="radial"){ie=2;return}}if(hr.type===18){if(hr.name==="from"){var a=to.parse(p,hr.values[0]);v.push({stop:To,color:a})}else if(hr.name==="to"){var a=to.parse(p,hr.values[0]);v.push({stop:zs,color:a})}else if(hr.name==="color-stop"){var g=hr.values.filter(dl);if(g.length===2){var a=to.parse(p,g[1]),O=g[0];Ta(O)&&v.push({stop:{type:16,number:O.number*100,flags:O.flags},color:a})}}}}),ie===1?{angle:(y+Za(180))%Za(360),stops:v,type:ie}:{size:tt,shape:Fe,stops:v,position:xt,type:ie}},Ps="closest-side",kc="farthest-side",yl="closest-corner",Gc="farthest-corner",xA="circle",CA="ellipse",pc="cover",mc="contain",Uu=function(p,u){var y=0,v=3,ie=[],Fe=[];return Oo(u).forEach(function(tt,xt){var Bt=!0;if(xt===0){var nr=!1;Bt=tt.reduce(function(a,g){if(nr)if(ka(g))switch(g.value){case"center":return Fe.push(Hl),a;case"top":case"left":return Fe.push(To),a;case"right":case"bottom":return Fe.push(zs),a}else(Kn(g)||Io(g))&&Fe.push(g);else if(ka(g))switch(g.value){case xA:return y=0,!1;case CA:return y=1,!1;case"at":return nr=!0,!1;case Ps:return v=0,!1;case pc:case kc:return v=1,!1;case mc:case yl:return v=2,!1;case Gc:return v=3,!1}else if(Io(g)||Kn(g))return Array.isArray(v)||(v=[]),v.push(g),!1;return a},Bt)}if(Bt){var hr=hc(p,tt);ie.push(hr)}}),{size:v,shape:y,stops:ie,position:Fe,type:2}},KA=function(p,u){var y=0,v=3,ie=[],Fe=[];return Oo(u).forEach(function(tt,xt){var Bt=!0;if(xt===0?Bt=tt.reduce(function(hr,a){if(ka(a))switch(a.value){case"center":return Fe.push(Hl),!1;case"top":case"left":return Fe.push(To),!1;case"right":case"bottom":return Fe.push(zs),!1}else if(Kn(a)||Io(a))return Fe.push(a),!1;return hr},Bt):xt===1&&(Bt=tt.reduce(function(hr,a){if(ka(a))switch(a.value){case xA:return y=0,!1;case CA:return y=1,!1;case mc:case Ps:return v=0,!1;case kc:return v=1,!1;case yl:return v=2,!1;case pc:case Gc:return v=3,!1}else if(Io(a)||Kn(a))return Array.isArray(v)||(v=[]),v.push(a),!1;return hr},Bt)),Bt){var nr=hc(p,tt);ie.push(nr)}}),{size:v,shape:y,stops:ie,position:Fe,type:2}},ed=function(p){return p.type===1},td=function(p){return p.type===2},lu={name:"image",parse:function(p,u){if(u.type===22){var y={url:u.value,type:0};return p.cache.addImage(u.value),y}if(u.type===18){var v=Ru[u.name];if(typeof v=="undefined")throw new Error('Attempting to parse an unsupported image function "'+u.name+'"');return v(p,u.values)}throw new Error("Unsupported image type "+u.type)}};function vd(p){return!(p.type===20&&p.value==="none")&&(p.type!==18||!!Ru[p.name])}var Ru={"linear-gradient":po,"-moz-linear-gradient":mo,"-ms-linear-gradient":mo,"-o-linear-gradient":mo,"-webkit-linear-gradient":mo,"radial-gradient":Uu,"-moz-radial-gradient":KA,"-ms-radial-gradient":KA,"-o-radial-gradient":KA,"-webkit-radial-gradient":KA,"-webkit-gradient":Go},cu={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(p,u){if(u.length===0)return[];var y=u[0];return y.type===20&&y.value==="none"?[]:u.filter(function(v){return dl(v)&&vd(v)}).map(function(v){return lu.parse(p,v)})}},c={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(p,u){return u.map(function(y){if(ka(y))switch(y.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},o={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(p,u){return Oo(u).map(function(y){return y.filter(Kn)}).map(kl)}},l={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(p,u){return Oo(u).map(function(y){return y.filter(ka).map(function(v){return v.value}).join(" ")}).map(b)}},b=function(p){switch(p){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},F;(function(p){p.AUTO="auto",p.CONTAIN="contain",p.COVER="cover"})(F||(F={}));var C={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(p,u){return Oo(u).map(function(y){return y.filter(T)})}},T=function(p){return ka(p)||Kn(p)},Z=function(p){return{name:"border-"+p+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},ae=Z("top"),_e=Z("right"),$e=Z("bottom"),Ze=Z("left"),at=function(p){return{name:"border-radius-"+p,initialValue:"0 0",prefix:!1,type:1,parse:function(u,y){return kl(y.filter(Kn))}}},ye=at("top-left"),kt=at("top-right"),wt=at("bottom-right"),Dt=at("bottom-left"),ht=function(p){return{name:"border-"+p+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(u,y){switch(y){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Pt=ht("top"),ar=ht("right"),xr=ht("bottom"),Kr=ht("left"),hn=function(p){return{name:"border-"+p+"-width",initialValue:"0",type:0,prefix:!1,parse:function(u,y){return oo(y)?y.number:0}}},Ir=hn("top"),Vt=hn("right"),Pr=hn("bottom"),Jr=hn("left"),vt={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ct={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(p,u){switch(u){case"rtl":return 1;case"ltr":default:return 0}}},rr={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(p,u){return u.filter(ka).reduce(function(y,v){return y|U(v.value)},0)}},U=function(p){switch(p){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},re={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(p,u){switch(u){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Se={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(p,u){return u.type===20&&u.value==="normal"?0:u.type===17||u.type===15?u.number:0}},Ue;(function(p){p.NORMAL="normal",p.STRICT="strict"})(Ue||(Ue={}));var Ke={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(p,u){switch(u){case"strict":return Ue.STRICT;case"normal":default:return Ue.NORMAL}}},Xe={name:"line-height",initialValue:"normal",prefix:!1,type:4},dt=function(p,u){return ka(p)&&p.value==="normal"?1.2*u:p.type===17?u*p.number:Kn(p)?Da(p,u):u},St={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(p,u){return u.type===20&&u.value==="none"?null:lu.parse(p,u)}},le={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(p,u){switch(u){case"inside":return 0;case"outside":default:return 1}}},Re={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(p,u){switch(u){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Ye=function(p){return{name:"margin-"+p,initialValue:"0",prefix:!1,type:4}},et=Ye("top"),bt=Ye("right"),_t=Ye("bottom"),Mt=Ye("left"),Rt={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(p,u){return u.filter(ka).map(function(y){switch(y.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},lr={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(p,u){switch(u){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ar=function(p){return{name:"padding-"+p,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},gr=Ar("top"),_r=Ar("right"),dn=Ar("bottom"),or=Ar("left"),yt={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(p,u){switch(u){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Fn={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(p,u){switch(u){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},gn={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(p,u){return u.length===1&&Ll(u[0],"none")?[]:Oo(u).map(function(y){for(var v={color:Js.TRANSPARENT,offsetX:To,offsetY:To,blur:To},ie=0,Fe=0;Fe<y.length;Fe++){var tt=y[Fe];Io(tt)?(ie===0?v.offsetX=tt:ie===1?v.offsetY=tt:v.blur=tt,ie++):v.color=to.parse(p,tt)}return v})}},yr={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(p,u){switch(u){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Tr={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(p,u){if(u.type===20&&u.value==="none")return null;if(u.type===18){var y=Zr[u.name];if(typeof y=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+u.name+'"');return y(u.values)}return null}},Ur=function(p){var u=p.filter(function(y){return y.type===17}).map(function(y){return y.number});return u.length===6?u:null},wr=function(p){var u=p.filter(function(Bt){return Bt.type===17}).map(function(Bt){return Bt.number}),y=u[0],v=u[1];u[2],u[3];var ie=u[4],Fe=u[5];u[6],u[7],u[8],u[9],u[10],u[11];var tt=u[12],xt=u[13];return u[14],u[15],u.length===16?[y,v,ie,Fe,tt,xt]:null},Zr={matrix:Ur,matrix3d:wr},Cn={type:16,number:50,flags:dr},Gn=[Cn,Cn],Zn={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(p,u){var y=u.filter(Kn);return y.length!==2?Gn:[y[0],y[1]]}},On={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(p,u){switch(u){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},di;(function(p){p.NORMAL="normal",p.BREAK_ALL="break-all",p.KEEP_ALL="keep-all"})(di||(di={}));for(var zn={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(p,u){switch(u){case"break-all":return di.BREAK_ALL;case"keep-all":return di.KEEP_ALL;case"normal":default:return di.NORMAL}}},Fi={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(p,u){if(u.type===20)return{auto:!0,order:0};if(Ta(u))return{auto:!1,order:u.number};throw new Error("Invalid z-index number parsed")}},vn={name:"time",parse:function(p,u){if(u.type===15)switch(u.unit.toLowerCase()){case"s":return 1e3*u.number;case"ms":return u.number}throw new Error("Unsupported time type")}},_a={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(p,u){return Ta(u)?u.number:1}},Hi={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ri={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(p,u){return u.filter(ka).map(function(y){switch(y.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(y){return y!==0})}},ia={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(p,u){var y=[],v=[];return u.forEach(function(ie){switch(ie.type){case 20:case 0:y.push(ie.value);break;case 17:y.push(ie.number.toString());break;case 4:v.push(y.join(" ")),y.length=0;break}}),y.length&&v.push(y.join(" ")),v.map(function(ie){return ie.indexOf(" ")===-1?ie:"'"+ie+"'"})}},Ki={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Qa={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(p,u){if(Ta(u))return u.number;if(ka(u))switch(u.value){case"bold":return 700;case"normal":default:return 400}return 400}},Wi={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(p,u){return u.filter(ka).map(function(y){return y.value})}},As={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(p,u){switch(u){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},En=function(p,u){return(p&u)!==0},fi={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(p,u){if(u.length===0)return[];var y=u[0];return y.type===20&&y.value==="none"?[]:u}},gi={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(p,u){if(u.length===0)return null;var y=u[0];if(y.type===20&&y.value==="none")return null;for(var v=[],ie=u.filter(cs),Fe=0;Fe<ie.length;Fe++){var tt=ie[Fe],xt=ie[Fe+1];if(tt.type===20){var Bt=xt&&Ta(xt)?xt.number:1;v.push({counter:tt.value,increment:Bt})}}return v}},$n={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(p,u){if(u.length===0)return[];for(var y=[],v=u.filter(cs),ie=0;ie<v.length;ie++){var Fe=v[ie],tt=v[ie+1];if(ka(Fe)&&Fe.value!=="none"){var xt=tt&&Ta(tt)?tt.number:0;y.push({counter:Fe.value,reset:xt})}}return y}},ai={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(p,u){return u.filter(oo).map(function(y){return vn.parse(p,y)})}},kn={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(p,u){if(u.length===0)return null;var y=u[0];if(y.type===20&&y.value==="none")return null;var v=[],ie=u.filter(Fo);if(ie.length%2!==0)return null;for(var Fe=0;Fe<ie.length;Fe+=2){var tt=ie[Fe].value,xt=ie[Fe+1].value;v.push({open:tt,close:xt})}return v}},Qi=function(p,u,y){if(!p)return"";var v=p[Math.min(u,p.length-1)];return v?y?v.open:v.close:""},Gi={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(p,u){return u.length===1&&Ll(u[0],"none")?[]:Oo(u).map(function(y){for(var v={color:255,offsetX:To,offsetY:To,blur:To,spread:To,inset:!1},ie=0,Fe=0;Fe<y.length;Fe++){var tt=y[Fe];Ll(tt,"inset")?v.inset=!0:Io(tt)?(ie===0?v.offsetX=tt:ie===1?v.offsetY=tt:ie===2?v.blur=tt:v.spread=tt,ie++):v.color=to.parse(p,tt)}return v})}},qi={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(p,u){var y=[0,1,2],v=[];return u.filter(ka).forEach(function(ie){switch(ie.value){case"stroke":v.push(1);break;case"fill":v.push(0);break;case"markers":v.push(2);break}}),y.forEach(function(ie){v.indexOf(ie)===-1&&v.push(ie)}),v}},Mo={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Ii={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(p,u){return oo(u)?u.number:0}},ns=function(){function p(u,y){var v,ie;this.animationDuration=wn(u,ai,y.animationDuration),this.backgroundClip=wn(u,lA,y.backgroundClip),this.backgroundColor=wn(u,cA,y.backgroundColor),this.backgroundImage=wn(u,cu,y.backgroundImage),this.backgroundOrigin=wn(u,c,y.backgroundOrigin),this.backgroundPosition=wn(u,o,y.backgroundPosition),this.backgroundRepeat=wn(u,l,y.backgroundRepeat),this.backgroundSize=wn(u,C,y.backgroundSize),this.borderTopColor=wn(u,ae,y.borderTopColor),this.borderRightColor=wn(u,_e,y.borderRightColor),this.borderBottomColor=wn(u,$e,y.borderBottomColor),this.borderLeftColor=wn(u,Ze,y.borderLeftColor),this.borderTopLeftRadius=wn(u,ye,y.borderTopLeftRadius),this.borderTopRightRadius=wn(u,kt,y.borderTopRightRadius),this.borderBottomRightRadius=wn(u,wt,y.borderBottomRightRadius),this.borderBottomLeftRadius=wn(u,Dt,y.borderBottomLeftRadius),this.borderTopStyle=wn(u,Pt,y.borderTopStyle),this.borderRightStyle=wn(u,ar,y.borderRightStyle),this.borderBottomStyle=wn(u,xr,y.borderBottomStyle),this.borderLeftStyle=wn(u,Kr,y.borderLeftStyle),this.borderTopWidth=wn(u,Ir,y.borderTopWidth),this.borderRightWidth=wn(u,Vt,y.borderRightWidth),this.borderBottomWidth=wn(u,Pr,y.borderBottomWidth),this.borderLeftWidth=wn(u,Jr,y.borderLeftWidth),this.boxShadow=wn(u,Gi,y.boxShadow),this.color=wn(u,vt,y.color),this.direction=wn(u,Ct,y.direction),this.display=wn(u,rr,y.display),this.float=wn(u,re,y.cssFloat),this.fontFamily=wn(u,ia,y.fontFamily),this.fontSize=wn(u,Ki,y.fontSize),this.fontStyle=wn(u,As,y.fontStyle),this.fontVariant=wn(u,Wi,y.fontVariant),this.fontWeight=wn(u,Qa,y.fontWeight),this.letterSpacing=wn(u,Se,y.letterSpacing),this.lineBreak=wn(u,Ke,y.lineBreak),this.lineHeight=wn(u,Xe,y.lineHeight),this.listStyleImage=wn(u,St,y.listStyleImage),this.listStylePosition=wn(u,le,y.listStylePosition),this.listStyleType=wn(u,Re,y.listStyleType),this.marginTop=wn(u,et,y.marginTop),this.marginRight=wn(u,bt,y.marginRight),this.marginBottom=wn(u,_t,y.marginBottom),this.marginLeft=wn(u,Mt,y.marginLeft),this.opacity=wn(u,_a,y.opacity);var Fe=wn(u,Rt,y.overflow);this.overflowX=Fe[0],this.overflowY=Fe[Fe.length>1?1:0],this.overflowWrap=wn(u,lr,y.overflowWrap),this.paddingTop=wn(u,gr,y.paddingTop),this.paddingRight=wn(u,_r,y.paddingRight),this.paddingBottom=wn(u,dn,y.paddingBottom),this.paddingLeft=wn(u,or,y.paddingLeft),this.paintOrder=wn(u,qi,y.paintOrder),this.position=wn(u,Fn,y.position),this.textAlign=wn(u,yt,y.textAlign),this.textDecorationColor=wn(u,Hi,(v=y.textDecorationColor)!==null&&v!==void 0?v:y.color),this.textDecorationLine=wn(u,Ri,(ie=y.textDecorationLine)!==null&&ie!==void 0?ie:y.textDecoration),this.textShadow=wn(u,gn,y.textShadow),this.textTransform=wn(u,yr,y.textTransform),this.transform=wn(u,Tr,y.transform),this.transformOrigin=wn(u,Zn,y.transformOrigin),this.visibility=wn(u,On,y.visibility),this.webkitTextStrokeColor=wn(u,Mo,y.webkitTextStrokeColor),this.webkitTextStrokeWidth=wn(u,Ii,y.webkitTextStrokeWidth),this.wordBreak=wn(u,zn,y.wordBreak),this.zIndex=wn(u,Fi,y.zIndex)}return p.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},p.prototype.isTransparent=function(){return Ro(this.backgroundColor)},p.prototype.isTransformed=function(){return this.transform!==null},p.prototype.isPositioned=function(){return this.position!==0},p.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},p.prototype.isFloating=function(){return this.float!==0},p.prototype.isInlineLevel=function(){return En(this.display,4)||En(this.display,33554432)||En(this.display,268435456)||En(this.display,536870912)||En(this.display,67108864)||En(this.display,134217728)},p}(),ro=function(){function p(u,y){this.content=wn(u,fi,y.content),this.quotes=wn(u,kn,y.quotes)}return p}(),Qo=function(){function p(u,y){this.counterIncrement=wn(u,gi,y.counterIncrement),this.counterReset=wn(u,$n,y.counterReset)}return p}(),wn=function(p,u,y){var v=new Na,ie=y!==null&&typeof y!="undefined"?y.toString():u.initialValue;v.write(ie);var Fe=new Ja(v.read());switch(u.type){case 2:var tt=Fe.parseComponentValue();return u.parse(p,ka(tt)?tt.value:u.initialValue);case 0:return u.parse(p,Fe.parseComponentValue());case 1:return u.parse(p,Fe.parseComponentValues());case 4:return Fe.parseComponentValue();case 3:switch(u.format){case"angle":return ma.parse(p,Fe.parseComponentValue());case"color":return to.parse(p,Fe.parseComponentValue());case"image":return lu.parse(p,Fe.parseComponentValue());case"length":var xt=Fe.parseComponentValue();return Io(xt)?xt:To;case"length-percentage":var Bt=Fe.parseComponentValue();return Kn(Bt)?Bt:To;case"time":return vn.parse(p,Fe.parseComponentValue())}break}},no="data-html2canvas-debug",Cs=function(p){var u=p.getAttribute(no);switch(u){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ga=function(p,u){var y=Cs(p);return y===1||u===y},qr=function(){function p(u,y){if(this.context=u,this.textNodes=[],this.elements=[],this.flags=0,ga(y,3))debugger;this.styles=new ns(u,window.getComputedStyle(y,null)),Xr(y)&&(this.styles.animationDuration.some(function(v){return v>0})&&(y.style.animationDuration="0s"),this.styles.transform!==null&&(y.style.transform="none")),this.bounds=V(this.context,y),ga(y,4)&&(this.flags|=16)}return p}(),fa="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",so="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Va=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Si=0;Si<so.length;Si++)Va[so.charCodeAt(Si)]=Si;for(var bo=function(p){var u=p.length*.75,y=p.length,v,ie=0,Fe,tt,xt,Bt;p[p.length-1]==="="&&(u--,p[p.length-2]==="="&&u--);var nr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(u):new Array(u),hr=Array.isArray(nr)?nr:new Uint8Array(nr);for(v=0;v<y;v+=4)Fe=Va[p.charCodeAt(v)],tt=Va[p.charCodeAt(v+1)],xt=Va[p.charCodeAt(v+2)],Bt=Va[p.charCodeAt(v+3)],hr[ie++]=Fe<<2|tt>>4,hr[ie++]=(tt&15)<<4|xt>>2,hr[ie++]=(xt&3)<<6|Bt&63;return nr},Ko=function(p){for(var u=p.length,y=[],v=0;v<u;v+=2)y.push(p[v+1]<<8|p[v]);return y},Bs=function(p){for(var u=p.length,y=[],v=0;v<u;v+=4)y.push(p[v+3]<<24|p[v+2]<<16|p[v+1]<<8|p[v]);return y},gs=5,is=11,us=2,bl=is-gs,as=65536>>gs,$s=1<<gs,ds=$s-1,Lo=1024>>gs,wo=as+Lo,qs=wo,Nl=32,zl=qs+Nl,wl=65536>>is,BA=1<<bl,Xc=BA-1,xa=function(p,u,y){return p.slice?p.slice(u,y):new Uint16Array(Array.prototype.slice.call(p,u,y))},ea=function(p,u,y){return p.slice?p.slice(u,y):new Uint32Array(Array.prototype.slice.call(p,u,y))},vs=function(p,u){var y=bo(p),v=Array.isArray(y)?Bs(y):new Uint32Array(y),ie=Array.isArray(y)?Ko(y):new Uint16Array(y),Fe=24,tt=xa(ie,Fe/2,v[4]/2),xt=v[5]===2?xa(ie,(Fe+v[4])/2):ea(v,Math.ceil((Fe+v[4])/4));return new go(v[0],v[1],v[2],v[3],tt,xt)},go=function(){function p(u,y,v,ie,Fe,tt){this.initialValue=u,this.errorValue=y,this.highStart=v,this.highValueIndex=ie,this.index=Fe,this.data=tt}return p.prototype.get=function(u){var y;if(u>=0){if(u<55296||u>56319&&u<=65535)return y=this.index[u>>gs],y=(y<<us)+(u&ds),this.data[y];if(u<=65535)return y=this.index[as+(u-55296>>gs)],y=(y<<us)+(u&ds),this.data[y];if(u<this.highStart)return y=zl-wl+(u>>is),y=this.index[y],y+=u>>gs&Xc,y=this.index[y],y=(y<<us)+(u&ds),this.data[y];if(u<=1114111)return this.data[this.highValueIndex]}return this.errorValue},p}(),fs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ss=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Es=0;Es<fs.length;Es++)Ss[fs.charCodeAt(Es)]=Es;var _s=1,Dc=2,ll=3,gc=4,Ca=5,So=7,xl=8,rc=9,Ns=10,HA=11,Cl=12,jA=13,zA=14,Jc=15,$l=function(p){for(var u=[],y=0,v=p.length;y<v;){var ie=p.charCodeAt(y++);if(ie>=55296&&ie<=56319&&y<v){var Fe=p.charCodeAt(y++);(Fe&64512)===56320?u.push(((ie&1023)<<10)+(Fe&1023)+65536):(u.push(ie),y--)}else u.push(ie)}return u},vc=function(){for(var p=[],u=0;u<arguments.length;u++)p[u]=arguments[u];if(String.fromCodePoint)return String.fromCodePoint.apply(String,p);var y=p.length;if(!y)return"";for(var v=[],ie=-1,Fe="";++ie<y;){var tt=p[ie];tt<=65535?v.push(tt):(tt-=65536,v.push((tt>>10)+55296,tt%1024+56320)),(ie+1===y||v.length>16384)&&(Fe+=String.fromCharCode.apply(String,v),v.length=0)}return Fe},nc=vs(fa),fn="\xD7",Fs="\xF7",SA=function(p){return nc.get(p)},AA=function(p,u,y){var v=y-2,ie=u[v],Fe=u[y-1],tt=u[y];if(Fe===Dc&&tt===ll)return fn;if(Fe===Dc||Fe===ll||Fe===gc||tt===Dc||tt===ll||tt===gc)return Fs;if(Fe===xl&&[xl,rc,HA,Cl].indexOf(tt)!==-1||(Fe===HA||Fe===rc)&&(tt===rc||tt===Ns)||(Fe===Cl||Fe===Ns)&&tt===Ns||tt===jA||tt===Ca||tt===So||Fe===_s)return fn;if(Fe===jA&&tt===zA){for(;ie===Ca;)ie=u[--v];if(ie===zA)return fn}if(Fe===Jc&&tt===Jc){for(var xt=0;ie===Jc;)xt++,ie=u[--v];if(xt%2===0)return fn}return Fs},sa=function(p){var u=$l(p),y=u.length,v=0,ie=0,Fe=u.map(SA);return{next:function(){if(v>=y)return{done:!0,value:null};for(var tt=fn;v<y&&(tt=AA(u,Fe,++v))===fn;);if(tt!==fn||v===y){var xt=vc.apply(null,u.slice(ie,v));return ie=v,{value:xt,done:!1}}return{done:!0,value:null}}}},EA=function(p){for(var u=sa(p),y=[],v;!(v=u.next()).done;)v.value&&y.push(v.value.slice());return y},$A=function(p){var u=123;if(p.createRange){var y=p.createRange();if(y.getBoundingClientRect){var v=p.createElement("boundtest");v.style.height=u+"px",v.style.display="block",p.body.appendChild(v),y.selectNode(v);var ie=y.getBoundingClientRect(),Fe=Math.round(ie.height);if(p.body.removeChild(v),Fe===u)return!0}}return!1},Zl=function(p){var u=p.createElement("boundtest");u.style.width="50px",u.style.display="block",u.style.fontSize="12px",u.style.letterSpacing="0px",u.style.wordSpacing="0px",p.body.appendChild(u);var y=p.createRange();u.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var v=u.firstChild,ie=f(v.data).map(function(Bt){return E(Bt)}),Fe=0,tt={},xt=ie.every(function(Bt,nr){y.setStart(v,Fe),y.setEnd(v,Fe+Bt.length);var hr=y.getBoundingClientRect();Fe+=Bt.length;var a=hr.x>tt.x||hr.y>tt.y;return tt=hr,nr===0?!0:a});return p.body.removeChild(u),xt},Xo=function(){return typeof new Image().crossOrigin!="undefined"},ZA=function(){return typeof new XMLHttpRequest().responseType=="string"},Pc=function(p){var u=new Image,y=p.createElement("canvas"),v=y.getContext("2d");if(!v)return!1;u.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{v.drawImage(u,0,0),y.toDataURL()}catch(ie){return!1}return!0},yc=function(p){return p[0]===0&&p[1]===255&&p[2]===0&&p[3]===255},_A=function(p){var u=p.createElement("canvas"),y=100;u.width=y,u.height=y;var v=u.getContext("2d");if(!v)return Promise.reject(!1);v.fillStyle="rgb(0, 255, 0)",v.fillRect(0,0,y,y);var ie=new Image,Fe=u.toDataURL();ie.src=Fe;var tt=Vl(y,y,0,0,ie);return v.fillStyle="red",v.fillRect(0,0,y,y),ic(tt).then(function(xt){v.drawImage(xt,0,0);var Bt=v.getImageData(0,0,y,y).data;v.fillStyle="red",v.fillRect(0,0,y,y);var nr=p.createElement("div");return nr.style.backgroundImage="url("+Fe+")",nr.style.height=y+"px",yc(Bt)?ic(Vl(y,y,0,0,nr)):Promise.reject(!1)}).then(function(xt){return v.drawImage(xt,0,0),yc(v.getImageData(0,0,y,y).data)}).catch(function(){return!1})},Vl=function(p,u,y,v,ie){var Fe="http://www.w3.org/2000/svg",tt=document.createElementNS(Fe,"svg"),xt=document.createElementNS(Fe,"foreignObject");return tt.setAttributeNS(null,"width",p.toString()),tt.setAttributeNS(null,"height",u.toString()),xt.setAttributeNS(null,"width","100%"),xt.setAttributeNS(null,"height","100%"),xt.setAttributeNS(null,"x",y.toString()),xt.setAttributeNS(null,"y",v.toString()),xt.setAttributeNS(null,"externalResourcesRequired","true"),tt.appendChild(xt),xt.appendChild(ie),tt},ic=function(p){return new Promise(function(u,y){var v=new Image;v.onload=function(){return u(v)},v.onerror=y,v.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(p))})},lo={get SUPPORT_RANGE_BOUNDS(){var p=$A(document);return Object.defineProperty(lo,"SUPPORT_RANGE_BOUNDS",{value:p}),p},get SUPPORT_WORD_BREAKING(){var p=lo.SUPPORT_RANGE_BOUNDS&&Zl(document);return Object.defineProperty(lo,"SUPPORT_WORD_BREAKING",{value:p}),p},get SUPPORT_SVG_DRAWING(){var p=Pc(document);return Object.defineProperty(lo,"SUPPORT_SVG_DRAWING",{value:p}),p},get SUPPORT_FOREIGNOBJECT_DRAWING(){var p=typeof Array.from=="function"&&typeof window.fetch=="function"?_A(document):Promise.resolve(!1);return Object.defineProperty(lo,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:p}),p},get SUPPORT_CORS_IMAGES(){var p=Xo();return Object.defineProperty(lo,"SUPPORT_CORS_IMAGES",{value:p}),p},get SUPPORT_RESPONSE_TYPE(){var p=ZA();return Object.defineProperty(lo,"SUPPORT_RESPONSE_TYPE",{value:p}),p},get SUPPORT_CORS_XHR(){var p="withCredentials"in new XMLHttpRequest;return Object.defineProperty(lo,"SUPPORT_CORS_XHR",{value:p}),p},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var p=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(lo,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:p}),p}},Os=function(){function p(u,y){this.text=u,this.bounds=y}return p}(),ts=function(p,u,y,v){var ie=Wl(u,y),Fe=[],tt=0;return ie.forEach(function(xt){if(y.textDecorationLine.length||xt.trim().length>0)if(lo.SUPPORT_RANGE_BOUNDS){var Bt=va(v,tt,xt.length).getClientRects();if(Bt.length>1){var nr=Ba(xt),hr=0;nr.forEach(function(g){Fe.push(new Os(g,te.fromDOMRectList(p,va(v,hr+tt,g.length).getClientRects()))),hr+=g.length})}else Fe.push(new Os(xt,te.fromDOMRectList(p,Bt)))}else{var a=v.splitText(xt.length);Fe.push(new Os(xt,bc(p,v))),v=a}else lo.SUPPORT_RANGE_BOUNDS||(v=v.splitText(xt.length));tt+=xt.length}),Fe},bc=function(p,u){var y=u.ownerDocument;if(y){var v=y.createElement("html2canvaswrapper");v.appendChild(u.cloneNode(!0));var ie=u.parentNode;if(ie){ie.replaceChild(v,u);var Fe=V(p,v);return v.firstChild&&ie.replaceChild(v.firstChild,v),Fe}}return te.EMPTY},va=function(p,u,y){var v=p.ownerDocument;if(!v)throw new Error("Node has no owner document");var ie=v.createRange();return ie.setStart(p,u),ie.setEnd(p,u+y),ie},Ba=function(p){if(lo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var u=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(u.segment(p)).map(function(y){return y.segment})}return EA(p)},Zs=function(p,u){if(lo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var y=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(y.segment(p)).map(function(v){return v.segment})}return VA(p,u)},Wl=function(p,u){return u.letterSpacing!==0?Ba(p):Zs(p,u)},Ol=[32,160,4961,65792,65793,4153,4241],VA=function(p,u){for(var y=$t(p,{lineBreak:u.lineBreak,wordBreak:u.overflowWrap==="break-word"?"break-word":u.wordBreak}),v=[],ie,Fe=function(){if(ie.value){var tt=ie.value.slice(),xt=f(tt),Bt="";xt.forEach(function(nr){Ol.indexOf(nr)===-1?Bt+=E(nr):(Bt.length&&v.push(Bt),v.push(E(nr)),Bt="")}),Bt.length&&v.push(Bt)}};!(ie=y.next()).done;)Fe();return v},os=function(){function p(u,y,v){this.text=ys(y.data,v.textTransform),this.textBounds=ts(u,this.text,v,y)}return p}(),ys=function(p,u){switch(u){case 1:return p.toLowerCase();case 3:return p.replace(ac,FA);case 2:return p.toUpperCase();default:return p}},ac=/(^|\s|:|-|\(|\))([a-z])/g,FA=function(p,u,y){return p.length>0?u+y.toUpperCase():p},Nc=function(p){w(u,p);function u(y,v){var ie=p.call(this,y,v)||this;return ie.src=v.currentSrc||v.src,ie.intrinsicWidth=v.naturalWidth,ie.intrinsicHeight=v.naturalHeight,ie.context.cache.addImage(ie.src),ie}return u}(qr),la=function(p){w(u,p);function u(y,v){var ie=p.call(this,y,v)||this;return ie.canvas=v,ie.intrinsicWidth=v.width,ie.intrinsicHeight=v.height,ie}return u}(qr),Oc=function(p){w(u,p);function u(y,v){var ie=p.call(this,y,v)||this,Fe=new XMLSerializer,tt=V(y,v);return v.setAttribute("width",tt.width+"px"),v.setAttribute("height",tt.height+"px"),ie.svg="data:image/svg+xml,"+encodeURIComponent(Fe.serializeToString(v)),ie.intrinsicWidth=v.width.baseVal.value,ie.intrinsicHeight=v.height.baseVal.value,ie.context.cache.addImage(ie.svg),ie}return u}(qr),Gl=function(p){w(u,p);function u(y,v){var ie=p.call(this,y,v)||this;return ie.value=v.value,ie}return u}(qr),IA=function(p){w(u,p);function u(y,v){var ie=p.call(this,y,v)||this;return ie.start=v.start,ie.reversed=typeof v.reversed=="boolean"&&v.reversed===!0,ie}return u}(qr),zr=[{type:15,flags:0,unit:"px",number:3}],yd=[{type:16,flags:0,number:50}],Qu=function(p){return p.width>p.height?new te(p.left+(p.width-p.height)/2,p.top,p.height,p.height):p.width<p.height?new te(p.left,p.top+(p.height-p.width)/2,p.width,p.width):p},WA=function(p){var u=p.type===Ku?new Array(p.value.length+1).join("\u2022"):p.value;return u.length===0?p.placeholder||"":u},GA="checkbox",oc="radio",Ku="password",Au=707406591,Is=function(p){w(u,p);function u(y,v){var ie=p.call(this,y,v)||this;switch(ie.type=v.type.toLowerCase(),ie.checked=v.checked,ie.value=WA(v),(ie.type===GA||ie.type===oc)&&(ie.styles.backgroundColor=3739148031,ie.styles.borderTopColor=ie.styles.borderRightColor=ie.styles.borderBottomColor=ie.styles.borderLeftColor=2779096575,ie.styles.borderTopWidth=ie.styles.borderRightWidth=ie.styles.borderBottomWidth=ie.styles.borderLeftWidth=1,ie.styles.borderTopStyle=ie.styles.borderRightStyle=ie.styles.borderBottomStyle=ie.styles.borderLeftStyle=1,ie.styles.backgroundClip=[0],ie.styles.backgroundOrigin=[0],ie.bounds=Qu(ie.bounds)),ie.type){case GA:ie.styles.borderTopRightRadius=ie.styles.borderTopLeftRadius=ie.styles.borderBottomRightRadius=ie.styles.borderBottomLeftRadius=zr;break;case oc:ie.styles.borderTopRightRadius=ie.styles.borderTopLeftRadius=ie.styles.borderBottomRightRadius=ie.styles.borderBottomLeftRadius=yd;break}return ie}return u}(qr),Tc=function(p){w(u,p);function u(y,v){var ie=p.call(this,y,v)||this,Fe=v.options[v.selectedIndex||0];return ie.value=Fe&&Fe.text||"",ie}return u}(qr),Yc=function(p){w(u,p);function u(y,v){var ie=p.call(this,y,v)||this;return ie.value=v.value,ie}return u}(qr),Uc=function(p){w(u,p);function u(y,v){var ie=p.call(this,y,v)||this;ie.src=v.src,ie.width=parseInt(v.width,10)||0,ie.height=parseInt(v.height,10)||0,ie.backgroundColor=ie.styles.backgroundColor;try{if(v.contentWindow&&v.contentWindow.document&&v.contentWindow.document.documentElement){ie.tree=D(y,v.contentWindow.document.documentElement);var Fe=v.contentWindow.document.documentElement?Dl(y,getComputedStyle(v.contentWindow.document.documentElement).backgroundColor):Js.TRANSPARENT,tt=v.contentWindow.document.body?Dl(y,getComputedStyle(v.contentWindow.document.body).backgroundColor):Js.TRANSPARENT;ie.backgroundColor=Ro(Fe)?Ro(tt)?ie.styles.backgroundColor:tt:Fe}}catch(xt){}return ie}return u}(qr),Hu=["OL","UL","MENU"],Rc=function(p,u,y,v){for(var ie=u.firstChild,Fe=void 0;ie;ie=Fe)if(Fe=ie.nextSibling,Yt(ie)&&ie.data.trim().length>0)y.textNodes.push(new os(p,ie,y.styles));else if(br(ie))if(qc(ie)&&ie.assignedNodes)ie.assignedNodes().forEach(function(xt){return Rc(p,xt,y,v)});else{var tt=MA(p,ie);tt.styles.isVisible()&&(We(ie,tt,v)?tt.flags|=4:Lt(tt.styles)&&(tt.flags|=2),Hu.indexOf(ie.tagName)!==-1&&(tt.flags|=8),y.elements.push(tt),ie.slot,ie.shadowRoot?Rc(p,ie.shadowRoot,tt,v):!Xl(ie)&&!co(ie)&&!LA(ie)&&Rc(p,ie,tt,v))}},MA=function(p,u){return hs(u)?new Nc(p,u):bs(u)?new la(p,u):co(u)?new Oc(p,u):Mi(u)?new Gl(p,u):ta(u)?new IA(p,u):Pa(u)?new Is(p,u):LA(u)?new Tc(p,u):Xl(u)?new Yc(p,u):el(u)?new Uc(p,u):new qr(p,u)},D=function(p,u){var y=MA(p,u);return y.flags|=4,Rc(p,u,y,y),y},We=function(p,u,y){return u.styles.isPositionedWithZIndex()||u.styles.opacity<1||u.styles.isTransformed()||aa(p)&&y.styles.isTransparent()},Lt=function(p){return p.isPositioned()||p.isFloating()},Yt=function(p){return p.nodeType===Node.TEXT_NODE},br=function(p){return p.nodeType===Node.ELEMENT_NODE},Xr=function(p){return br(p)&&typeof p.style!="undefined"&&!_n(p)},_n=function(p){return typeof p.className=="object"},Mi=function(p){return p.tagName==="LI"},ta=function(p){return p.tagName==="OL"},Pa=function(p){return p.tagName==="INPUT"},Fa=function(p){return p.tagName==="HTML"},co=function(p){return p.tagName==="svg"},aa=function(p){return p.tagName==="BODY"},bs=function(p){return p.tagName==="CANVAS"},Ts=function(p){return p.tagName==="VIDEO"},hs=function(p){return p.tagName==="IMG"},el=function(p){return p.tagName==="IFRAME"},Bl=function(p){return p.tagName==="STYLE"},sc=function(p){return p.tagName==="SCRIPT"},Xl=function(p){return p.tagName==="TEXTAREA"},LA=function(p){return p.tagName==="SELECT"},qc=function(p){return p.tagName==="SLOT"},uu=function(p){return p.tagName.indexOf("-")>0},XA=function(){function p(){this.counters={}}return p.prototype.getCounterValue=function(u){var y=this.counters[u];return y&&y.length?y[y.length-1]:1},p.prototype.getCounterValues=function(u){var y=this.counters[u];return y||[]},p.prototype.pop=function(u){var y=this;u.forEach(function(v){return y.counters[v].pop()})},p.prototype.parse=function(u){var y=this,v=u.counterIncrement,ie=u.counterReset,Fe=!0;v!==null&&v.forEach(function(xt){var Bt=y.counters[xt.counter];Bt&&xt.increment!==0&&(Fe=!1,Bt.length||Bt.push(1),Bt[Math.max(0,Bt.length-1)]+=xt.increment)});var tt=[];return Fe&&ie.forEach(function(xt){var Bt=y.counters[xt.counter];tt.push(xt.counter),Bt||(Bt=y.counters[xt.counter]=[]),Bt.push(xt.reset)}),tt},p}(),kA={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},JA={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},du={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},pl={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},Qc=function(p,u,y,v,ie,Fe){return p<u||p>y?Yl(p,ie,Fe.length>0):v.integers.reduce(function(tt,xt,Bt){for(;p>=xt;)p-=xt,tt+=v.values[Bt];return tt},"")+Fe},YA=function(p,u,y,v){var ie="";do y||p--,ie=v(p)+ie,p/=u;while(p*u>=u);return ie},rs=function(p,u,y,v,ie){var Fe=y-u+1;return(p<0?"-":"")+(YA(Math.abs(p),Fe,v,function(tt){return E(Math.floor(tt%Fe)+u)})+ie)},Kc=function(p,u,y){y===void 0&&(y=". ");var v=u.length;return YA(Math.abs(p),v,!1,function(ie){return u[Math.floor(ie%v)]})+y},tl=1,eA=2,rl=4,Jl=8,ss=function(p,u,y,v,ie,Fe){if(p<-9999||p>9999)return Yl(p,4,ie.length>0);var tt=Math.abs(p),xt=ie;if(tt===0)return u[0]+xt;for(var Bt=0;tt>0&&Bt<=4;Bt++){var nr=tt%10;nr===0&&En(Fe,tl)&&xt!==""?xt=u[nr]+xt:nr>1||nr===1&&Bt===0||nr===1&&Bt===1&&En(Fe,eA)||nr===1&&Bt===1&&En(Fe,rl)&&p>100||nr===1&&Bt>1&&En(Fe,Jl)?xt=u[nr]+(Bt>0?y[Bt-1]:"")+xt:nr===1&&Bt>0&&(xt=y[Bt-1]+xt),tt=Math.floor(tt/10)}return(p<0?v:"")+xt},Tl="\u5341\u767E\u5343\u842C",lc="\u62FE\u4F70\u4EDF\u842C",wc="\u30DE\u30A4\u30CA\u30B9",cc="\uB9C8\uC774\uB108\uC2A4",Yl=function(p,u,y){var v=y?". ":"",ie=y?"\u3001":"",Fe=y?", ":"",tt=y?" ":"";switch(u){case 0:return"\u2022"+tt;case 1:return"\u25E6"+tt;case 2:return"\u25FE"+tt;case 5:var xt=rs(p,48,57,!0,v);return xt.length<4?"0"+xt:xt;case 4:return Kc(p,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",ie);case 6:return Qc(p,1,3999,kA,3,v).toLowerCase();case 7:return Qc(p,1,3999,kA,3,v);case 8:return rs(p,945,969,!1,v);case 9:return rs(p,97,122,!1,v);case 10:return rs(p,65,90,!1,v);case 11:return rs(p,1632,1641,!0,v);case 12:case 49:return Qc(p,1,9999,JA,3,v);case 35:return Qc(p,1,9999,JA,3,v).toLowerCase();case 13:return rs(p,2534,2543,!0,v);case 14:case 30:return rs(p,6112,6121,!0,v);case 15:return Kc(p,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",ie);case 16:return Kc(p,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",ie);case 17:case 48:return ss(p,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Tl,"\u8CA0",ie,eA|rl|Jl);case 47:return ss(p,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",lc,"\u8CA0",ie,tl|eA|rl|Jl);case 42:return ss(p,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Tl,"\u8D1F",ie,eA|rl|Jl);case 41:return ss(p,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",lc,"\u8D1F",ie,tl|eA|rl|Jl);case 26:return ss(p,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",wc,ie,0);case 25:return ss(p,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",wc,ie,tl|eA|rl);case 31:return ss(p,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",cc,Fe,tl|eA|rl);case 33:return ss(p,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",cc,Fe,0);case 32:return ss(p,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",cc,Fe,tl|eA|rl);case 18:return rs(p,2406,2415,!0,v);case 20:return Qc(p,1,19999,pl,3,v);case 21:return rs(p,2790,2799,!0,v);case 22:return rs(p,2662,2671,!0,v);case 22:return Qc(p,1,10999,du,3,v);case 23:return Kc(p,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Kc(p,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return rs(p,3302,3311,!0,v);case 28:return Kc(p,"\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",ie);case 29:return Kc(p,"\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",ie);case 34:return rs(p,3792,3801,!0,v);case 37:return rs(p,6160,6169,!0,v);case 38:return rs(p,4160,4169,!0,v);case 39:return rs(p,2918,2927,!0,v);case 40:return rs(p,1776,1785,!0,v);case 43:return rs(p,3046,3055,!0,v);case 44:return rs(p,3174,3183,!0,v);case 45:return rs(p,3664,3673,!0,v);case 46:return rs(p,3872,3881,!0,v);case 3:default:return rs(p,48,57,!0,v)}},cl="data-html2canvas-ignore",nl=function(){function p(u,y,v){if(this.context=u,this.options=v,this.scrolledElements=[],this.referenceElement=y,this.counters=new XA,this.quoteDepth=0,!y.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(y.ownerDocument.documentElement,!1)}return p.prototype.toIFrame=function(u,y){var v=this,ie=tA(u,y);if(!ie.contentWindow)return Promise.reject("Unable to find iframe window");var Fe=u.defaultView.pageXOffset,tt=u.defaultView.pageYOffset,xt=ie.contentWindow,Bt=xt.document,nr=uA(ie).then(function(){return ue(v,void 0,void 0,function(){var hr,a;return R(this,function(g){switch(g.label){case 0:return this.scrolledElements.forEach(fu),xt&&(xt.scrollTo(y.left,y.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(xt.scrollY!==y.top||xt.scrollX!==y.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(xt.scrollX-y.left,xt.scrollY-y.top,0,0))),hr=this.options.onclone,a=this.clonedReferenceElement,typeof a=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:Bt.fonts&&Bt.fonts.ready?[4,Bt.fonts.ready]:[3,2];case 1:g.sent(),g.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,qA(Bt)]:[3,4];case 3:g.sent(),g.label=4;case 4:return typeof hr=="function"?[2,Promise.resolve().then(function(){return hr(Bt,a)}).then(function(){return ie})]:[2,ie]}})})});return Bt.open(),Bt.write(Ul(document.doctype)+"<html></html>"),Cc(this.referenceElement.ownerDocument,Fe,tt),Bt.replaceChild(Bt.adoptNode(this.documentElement),Bt.documentElement),Bt.close(),nr},p.prototype.createElementClone=function(u){if(ga(u,2))debugger;if(bs(u))return this.createCanvasClone(u);if(Ts(u))return this.createVideoClone(u);if(Bl(u))return this.createStyleClone(u);var y=u.cloneNode(!1);return hs(y)&&(hs(u)&&u.currentSrc&&u.currentSrc!==u.src&&(y.src=u.currentSrc,y.srcset=""),y.loading==="lazy"&&(y.loading="eager")),uu(y)?this.createCustomElementClone(y):y},p.prototype.createCustomElementClone=function(u){var y=document.createElement("html2canvascustomelement");return eu(u.style,y),y},p.prototype.createStyleClone=function(u){try{var y=u.sheet;if(y&&y.cssRules){var v=[].slice.call(y.cssRules,0).reduce(function(Fe,tt){return tt&&typeof tt.cssText=="string"?Fe+tt.cssText:Fe},""),ie=u.cloneNode(!1);return ie.textContent=v,ie}}catch(Fe){if(this.context.logger.error("Unable to access cssRules property",Fe),Fe.name!=="SecurityError")throw Fe}return u.cloneNode(!1)},p.prototype.createCanvasClone=function(u){var y;if(this.options.inlineImages&&u.ownerDocument){var v=u.ownerDocument.createElement("img");try{return v.src=u.toDataURL(),v}catch(nr){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",u)}}var ie=u.cloneNode(!1);try{ie.width=u.width,ie.height=u.height;var Fe=u.getContext("2d"),tt=ie.getContext("2d");if(tt)if(!this.options.allowTaint&&Fe)tt.putImageData(Fe.getImageData(0,0,u.width,u.height),0,0);else{var xt=(y=u.getContext("webgl2"))!==null&&y!==void 0?y:u.getContext("webgl");if(xt){var Bt=xt.getContextAttributes();(Bt==null?void 0:Bt.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",u)}tt.drawImage(u,0,0)}return ie}catch(nr){this.context.logger.info("Unable to clone canvas as it is tainted",u)}return ie},p.prototype.createVideoClone=function(u){var y=u.ownerDocument.createElement("canvas");y.width=u.offsetWidth,y.height=u.offsetHeight;var v=y.getContext("2d");try{return v&&(v.drawImage(u,0,0,y.width,y.height),this.options.allowTaint||v.getImageData(0,0,y.width,y.height)),y}catch(Fe){this.context.logger.info("Unable to clone video as it is tainted",u)}var ie=u.ownerDocument.createElement("canvas");return ie.width=u.offsetWidth,ie.height=u.offsetHeight,ie},p.prototype.appendChildNode=function(u,y,v){(!br(y)||!sc(y)&&!y.hasAttribute(cl)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(y)))&&(!this.options.copyStyles||!br(y)||!Bl(y))&&u.appendChild(this.cloneNode(y,v))},p.prototype.cloneChildNodes=function(u,y,v){for(var ie=this,Fe=u.shadowRoot?u.shadowRoot.firstChild:u.firstChild;Fe;Fe=Fe.nextSibling)if(br(Fe)&&qc(Fe)&&typeof Fe.assignedNodes=="function"){var tt=Fe.assignedNodes();tt.length&&tt.forEach(function(xt){return ie.appendChildNode(y,xt,v)})}else this.appendChildNode(y,Fe,v)},p.prototype.cloneNode=function(u,y){if(Yt(u))return document.createTextNode(u.data);if(!u.ownerDocument)return u.cloneNode(!1);var v=u.ownerDocument.defaultView;if(v&&br(u)&&(Xr(u)||_n(u))){var ie=this.createElementClone(u);ie.style.transitionProperty="none";var Fe=v.getComputedStyle(u),tt=v.getComputedStyle(u,":before"),xt=v.getComputedStyle(u,":after");this.referenceElement===u&&Xr(ie)&&(this.clonedReferenceElement=ie),aa(ie)&&uc(ie);var Bt=this.counters.parse(new Qo(this.context,Fe)),nr=this.resolvePseudoContent(u,ie,tt,xc.BEFORE);uu(u)&&(y=!0),Ts(u)||this.cloneChildNodes(u,ie,y),nr&&ie.insertBefore(nr,ie.firstChild);var hr=this.resolvePseudoContent(u,ie,xt,xc.AFTER);return hr&&ie.appendChild(hr),this.counters.pop(Bt),(Fe&&(this.options.copyStyles||_n(u))&&!el(u)||y)&&eu(Fe,ie),(u.scrollTop!==0||u.scrollLeft!==0)&&this.scrolledElements.push([ie,u.scrollLeft,u.scrollTop]),(Xl(u)||LA(u))&&(Xl(ie)||LA(ie))&&(ie.value=u.value),ie}return u.cloneNode(!1)},p.prototype.resolvePseudoContent=function(u,y,v,ie){var Fe=this;if(v){var tt=v.content,xt=y.ownerDocument;if(!(!xt||!tt||tt==="none"||tt==="-moz-alt-content"||v.display==="none")){this.counters.parse(new Qo(this.context,v));var Bt=new ro(this.context,v),nr=xt.createElement("html2canvaspseudoelement");eu(v,nr),Bt.content.forEach(function(a){if(a.type===0)nr.appendChild(xt.createTextNode(a.value));else if(a.type===22){var g=xt.createElement("img");g.src=a.value,g.style.opacity="1",nr.appendChild(g)}else if(a.type===18){if(a.name==="attr"){var O=a.values.filter(ka);O.length&&nr.appendChild(xt.createTextNode(u.getAttribute(O[0].value)||""))}else if(a.name==="counter"){var oe=a.values.filter(dl),Ie=oe[0],Ve=oe[1];if(Ie&&ka(Ie)){var ze=Fe.counters.getCounterValue(Ie.value),Je=Ve&&ka(Ve)?Re.parse(Fe.context,Ve.value):3;nr.appendChild(xt.createTextNode(Yl(ze,Je,!1)))}}else if(a.name==="counters"){var st=a.values.filter(dl),Ie=st[0],mt=st[1],Ve=st[2];if(Ie&&ka(Ie)){var Ot=Fe.counters.getCounterValues(Ie.value),jt=Ve&&ka(Ve)?Re.parse(Fe.context,Ve.value):3,cr=mt&&mt.type===0?mt.value:"",Wt=Ot.map(function(Gt){return Yl(Gt,jt,!1)}).join(cr);nr.appendChild(xt.createTextNode(Wt))}}}else if(a.type===20)switch(a.value){case"open-quote":nr.appendChild(xt.createTextNode(Qi(Bt.quotes,Fe.quoteDepth++,!0)));break;case"close-quote":nr.appendChild(xt.createTextNode(Qi(Bt.quotes,--Fe.quoteDepth,!1)));break;default:nr.appendChild(xt.createTextNode(a.value))}}),nr.className=dA+" "+Bc;var hr=ie===xc.BEFORE?" "+dA:" "+Bc;return _n(y)?y.className.baseValue+=hr:y.className+=hr,nr}}},p.destroy=function(u){return u.parentNode?(u.parentNode.removeChild(u),!0):!1},p}(),xc;(function(p){p[p.BEFORE=0]="BEFORE",p[p.AFTER=1]="AFTER"})(xc||(xc={}));var tA=function(p,u){var y=p.createElement("iframe");return y.className="html2canvas-container",y.style.visibility="hidden",y.style.position="fixed",y.style.left="-10000px",y.style.top="0px",y.style.border="0",y.width=u.width.toString(),y.height=u.height.toString(),y.scrolling="no",y.setAttribute(cl,"true"),p.body.appendChild(y),y},rA=function(p){return new Promise(function(u){if(p.complete){u();return}if(!p.src){u();return}p.onload=u,p.onerror=u})},qA=function(p){return Promise.all([].slice.call(p.images,0).map(rA))},uA=function(p){return new Promise(function(u,y){var v=p.contentWindow;if(!v)return y("No window assigned for iframe");var ie=v.document;v.onload=p.onload=function(){v.onload=p.onload=null;var Fe=setInterval(function(){ie.body.childNodes.length>0&&ie.readyState==="complete"&&(clearInterval(Fe),u(p))},50)}})},Ms=["all","d","content"],eu=function(p,u){for(var y=p.length-1;y>=0;y--){var v=p.item(y);Ms.indexOf(v)===-1&&u.style.setProperty(v,p.getPropertyValue(v))}return u},Ul=function(p){var u="";return p&&(u+="<!DOCTYPE ",p.name&&(u+=p.name),p.internalSubset&&(u+=p.internalSubset),p.publicId&&(u+='"'+p.publicId+'"'),p.systemId&&(u+='"'+p.systemId+'"'),u+=">"),u},Cc=function(p,u,y){p&&p.defaultView&&(u!==p.defaultView.pageXOffset||y!==p.defaultView.pageYOffset)&&p.defaultView.scrollTo(u,y)},fu=function(p){var u=p[0],y=p[1],v=p[2];u.scrollLeft=y,u.scrollTop=v},rd=":before",ju=":after",dA="___html2canvas___pseudoelement_before",Bc="___html2canvas___pseudoelement_after",Ac=`{
|
|
|
content: "" !important;
|
|
|
display: none !important;
|
|
|
}`,uc=function(p){ql(p,"."+dA+rd+Ac+`
|
|
|
.`+Bc+ju+Ac)},ql=function(p,u){var y=p.ownerDocument;if(y){var v=y.createElement("style");v.textContent=u,p.appendChild(v)}},fA=function(){function p(){}return p.getOrigin=function(u){var y=p._link;return y?(y.href=u,y.href=y.href,y.protocol+y.hostname+y.port):"about:blank"},p.isSameOrigin=function(u){return p.getOrigin(u)===p._origin},p.setContext=function(u){p._link=u.document.createElement("a"),p._origin=p.getOrigin(u.location.href)},p._origin="about:blank",p}(),hA=function(){function p(u,y){this.context=u,this._options=y,this._cache={}}return p.prototype.addImage=function(u){var y=Promise.resolve();return this.has(u)||(Rs(u)||Jo(u))&&(this._cache[u]=this.loadImage(u)).catch(function(){}),y},p.prototype.match=function(u){return this._cache[u]},p.prototype.loadImage=function(u){return ue(this,void 0,void 0,function(){var y,v,ie,Fe,tt=this;return R(this,function(xt){switch(xt.label){case 0:return y=fA.isSameOrigin(u),v=!Ho(u)&&this._options.useCORS===!0&&lo.SUPPORT_CORS_IMAGES&&!y,ie=!Ho(u)&&!y&&!Rs(u)&&typeof this._options.proxy=="string"&&lo.SUPPORT_CORS_XHR&&!v,!y&&this._options.allowTaint===!1&&!Ho(u)&&!Rs(u)&&!ie&&!v?[2]:(Fe=u,ie?[4,this.proxy(Fe)]:[3,2]);case 1:Fe=xt.sent(),xt.label=2;case 2:return this.context.logger.debug("Added image "+u.substring(0,256)),[4,new Promise(function(Bt,nr){var hr=new Image;hr.onload=function(){return Bt(hr)},hr.onerror=nr,(Us(Fe)||v)&&(hr.crossOrigin="anonymous"),hr.src=Fe,hr.complete===!0&&setTimeout(function(){return Bt(hr)},500),tt._options.imageTimeout>0&&setTimeout(function(){return nr("Timed out ("+tt._options.imageTimeout+"ms) loading image")},tt._options.imageTimeout)})];case 3:return[2,xt.sent()]}})})},p.prototype.has=function(u){return typeof this._cache[u]!="undefined"},p.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},p.prototype.proxy=function(u){var y=this,v=this._options.proxy;if(!v)throw new Error("No proxy defined");var ie=u.substring(0,256);return new Promise(function(Fe,tt){var xt=lo.SUPPORT_RESPONSE_TYPE?"blob":"text",Bt=new XMLHttpRequest;Bt.onload=function(){if(Bt.status===200)if(xt==="text")Fe(Bt.response);else{var a=new FileReader;a.addEventListener("load",function(){return Fe(a.result)},!1),a.addEventListener("error",function(g){return tt(g)},!1),a.readAsDataURL(Bt.response)}else tt("Failed to proxy resource "+ie+" with status code "+Bt.status)},Bt.onerror=tt;var nr=v.indexOf("?")>-1?"&":"?";if(Bt.open("GET",""+v+nr+"url="+encodeURIComponent(u)+"&responseType="+xt),xt!=="text"&&Bt instanceof XMLHttpRequest&&(Bt.responseType=xt),y._options.imageTimeout){var hr=y._options.imageTimeout;Bt.timeout=hr,Bt.ontimeout=function(){return tt("Timed out ("+hr+"ms) proxying "+ie)}}Bt.send()})},p}(),hu=/^data:image\/svg\+xml/i,Sc=/^data:image\/.*;base64,/i,Ec=/^data:image\/.*/i,Jo=function(p){return lo.SUPPORT_SVG_DRAWING||!Ua(p)},Ho=function(p){return Ec.test(p)},Us=function(p){return Sc.test(p)},Rs=function(p){return p.substr(0,4)==="blob"},Ua=function(p){return p.substr(-3).toLowerCase()==="svg"||hu.test(p)},hi=function(){function p(u,y){this.type=0,this.x=u,this.y=y}return p.prototype.add=function(u,y){return new p(this.x+u,this.y+y)},p}(),ec=function(p,u,y){return new hi(p.x+(u.x-p.x)*y,p.y+(u.y-p.y)*y)},tu=function(){function p(u,y,v,ie){this.type=1,this.start=u,this.startControl=y,this.endControl=v,this.end=ie}return p.prototype.subdivide=function(u,y){var v=ec(this.start,this.startControl,u),ie=ec(this.startControl,this.endControl,u),Fe=ec(this.endControl,this.end,u),tt=ec(v,ie,u),xt=ec(ie,Fe,u),Bt=ec(tt,xt,u);return y?new p(this.start,v,tt,Bt):new p(Bt,xt,Fe,this.end)},p.prototype.add=function(u,y){return new p(this.start.add(u,y),this.startControl.add(u,y),this.endControl.add(u,y),this.end.add(u,y))},p.prototype.reverse=function(){return new p(this.end,this.endControl,this.startControl,this.start)},p}(),Qs=function(p){return p.type===1},zu=function(){function p(u){var y=u.styles,v=u.bounds,ie=ms(y.borderTopLeftRadius,v.width,v.height),Fe=ie[0],tt=ie[1],xt=ms(y.borderTopRightRadius,v.width,v.height),Bt=xt[0],nr=xt[1],hr=ms(y.borderBottomRightRadius,v.width,v.height),a=hr[0],g=hr[1],O=ms(y.borderBottomLeftRadius,v.width,v.height),oe=O[0],Ie=O[1],Ve=[];Ve.push((Fe+Bt)/v.width),Ve.push((oe+a)/v.width),Ve.push((tt+Ie)/v.height),Ve.push((nr+g)/v.height);var ze=Math.max.apply(Math,Ve);ze>1&&(Fe/=ze,tt/=ze,Bt/=ze,nr/=ze,a/=ze,g/=ze,oe/=ze,Ie/=ze);var Je=v.width-Bt,st=v.height-g,mt=v.width-a,Ot=v.height-Ie,jt=y.borderTopWidth,cr=y.borderRightWidth,Wt=y.borderBottomWidth,Nr=y.borderLeftWidth,Or=Da(y.paddingTop,u.bounds.width),Gt=Da(y.paddingRight,u.bounds.width),tr=Da(y.paddingBottom,u.bounds.width),Rr=Da(y.paddingLeft,u.bounds.width);this.topLeftBorderDoubleOuterBox=Fe>0||tt>0?Ao(v.left+Nr/3,v.top+jt/3,Fe-Nr/3,tt-jt/3,ya.TOP_LEFT):new hi(v.left+Nr/3,v.top+jt/3),this.topRightBorderDoubleOuterBox=Fe>0||tt>0?Ao(v.left+Je,v.top+jt/3,Bt-cr/3,nr-jt/3,ya.TOP_RIGHT):new hi(v.left+v.width-cr/3,v.top+jt/3),this.bottomRightBorderDoubleOuterBox=a>0||g>0?Ao(v.left+mt,v.top+st,a-cr/3,g-Wt/3,ya.BOTTOM_RIGHT):new hi(v.left+v.width-cr/3,v.top+v.height-Wt/3),this.bottomLeftBorderDoubleOuterBox=oe>0||Ie>0?Ao(v.left+Nr/3,v.top+Ot,oe-Nr/3,Ie-Wt/3,ya.BOTTOM_LEFT):new hi(v.left+Nr/3,v.top+v.height-Wt/3),this.topLeftBorderDoubleInnerBox=Fe>0||tt>0?Ao(v.left+Nr*2/3,v.top+jt*2/3,Fe-Nr*2/3,tt-jt*2/3,ya.TOP_LEFT):new hi(v.left+Nr*2/3,v.top+jt*2/3),this.topRightBorderDoubleInnerBox=Fe>0||tt>0?Ao(v.left+Je,v.top+jt*2/3,Bt-cr*2/3,nr-jt*2/3,ya.TOP_RIGHT):new hi(v.left+v.width-cr*2/3,v.top+jt*2/3),this.bottomRightBorderDoubleInnerBox=a>0||g>0?Ao(v.left+mt,v.top+st,a-cr*2/3,g-Wt*2/3,ya.BOTTOM_RIGHT):new hi(v.left+v.width-cr*2/3,v.top+v.height-Wt*2/3),this.bottomLeftBorderDoubleInnerBox=oe>0||Ie>0?Ao(v.left+Nr*2/3,v.top+Ot,oe-Nr*2/3,Ie-Wt*2/3,ya.BOTTOM_LEFT):new hi(v.left+Nr*2/3,v.top+v.height-Wt*2/3),this.topLeftBorderStroke=Fe>0||tt>0?Ao(v.left+Nr/2,v.top+jt/2,Fe-Nr/2,tt-jt/2,ya.TOP_LEFT):new hi(v.left+Nr/2,v.top+jt/2),this.topRightBorderStroke=Fe>0||tt>0?Ao(v.left+Je,v.top+jt/2,Bt-cr/2,nr-jt/2,ya.TOP_RIGHT):new hi(v.left+v.width-cr/2,v.top+jt/2),this.bottomRightBorderStroke=a>0||g>0?Ao(v.left+mt,v.top+st,a-cr/2,g-Wt/2,ya.BOTTOM_RIGHT):new hi(v.left+v.width-cr/2,v.top+v.height-Wt/2),this.bottomLeftBorderStroke=oe>0||Ie>0?Ao(v.left+Nr/2,v.top+Ot,oe-Nr/2,Ie-Wt/2,ya.BOTTOM_LEFT):new hi(v.left+Nr/2,v.top+v.height-Wt/2),this.topLeftBorderBox=Fe>0||tt>0?Ao(v.left,v.top,Fe,tt,ya.TOP_LEFT):new hi(v.left,v.top),this.topRightBorderBox=Bt>0||nr>0?Ao(v.left+Je,v.top,Bt,nr,ya.TOP_RIGHT):new hi(v.left+v.width,v.top),this.bottomRightBorderBox=a>0||g>0?Ao(v.left+mt,v.top+st,a,g,ya.BOTTOM_RIGHT):new hi(v.left+v.width,v.top+v.height),this.bottomLeftBorderBox=oe>0||Ie>0?Ao(v.left,v.top+Ot,oe,Ie,ya.BOTTOM_LEFT):new hi(v.left,v.top+v.height),this.topLeftPaddingBox=Fe>0||tt>0?Ao(v.left+Nr,v.top+jt,Math.max(0,Fe-Nr),Math.max(0,tt-jt),ya.TOP_LEFT):new hi(v.left+Nr,v.top+jt),this.topRightPaddingBox=Bt>0||nr>0?Ao(v.left+Math.min(Je,v.width-cr),v.top+jt,Je>v.width+cr?0:Math.max(0,Bt-cr),Math.max(0,nr-jt),ya.TOP_RIGHT):new hi(v.left+v.width-cr,v.top+jt),this.bottomRightPaddingBox=a>0||g>0?Ao(v.left+Math.min(mt,v.width-Nr),v.top+Math.min(st,v.height-Wt),Math.max(0,a-cr),Math.max(0,g-Wt),ya.BOTTOM_RIGHT):new hi(v.left+v.width-cr,v.top+v.height-Wt),this.bottomLeftPaddingBox=oe>0||Ie>0?Ao(v.left+Nr,v.top+Math.min(Ot,v.height-Wt),Math.max(0,oe-Nr),Math.max(0,Ie-Wt),ya.BOTTOM_LEFT):new hi(v.left+Nr,v.top+v.height-Wt),this.topLeftContentBox=Fe>0||tt>0?Ao(v.left+Nr+Rr,v.top+jt+Or,Math.max(0,Fe-(Nr+Rr)),Math.max(0,tt-(jt+Or)),ya.TOP_LEFT):new hi(v.left+Nr+Rr,v.top+jt+Or),this.topRightContentBox=Bt>0||nr>0?Ao(v.left+Math.min(Je,v.width+Nr+Rr),v.top+jt+Or,Je>v.width+Nr+Rr?0:Bt-Nr+Rr,nr-(jt+Or),ya.TOP_RIGHT):new hi(v.left+v.width-(cr+Gt),v.top+jt+Or),this.bottomRightContentBox=a>0||g>0?Ao(v.left+Math.min(mt,v.width-(Nr+Rr)),v.top+Math.min(st,v.height+jt+Or),Math.max(0,a-(cr+Gt)),g-(Wt+tr),ya.BOTTOM_RIGHT):new hi(v.left+v.width-(cr+Gt),v.top+v.height-(Wt+tr)),this.bottomLeftContentBox=oe>0||Ie>0?Ao(v.left+Nr+Rr,v.top+Ot,Math.max(0,oe-(Nr+Rr)),Ie-(Wt+tr),ya.BOTTOM_LEFT):new hi(v.left+Nr+Rr,v.top+v.height-(Wt+tr))}return p}(),ya;(function(p){p[p.TOP_LEFT=0]="TOP_LEFT",p[p.TOP_RIGHT=1]="TOP_RIGHT",p[p.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",p[p.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(ya||(ya={}));var Ao=function(p,u,y,v,ie){var Fe=4*((Math.sqrt(2)-1)/3),tt=y*Fe,xt=v*Fe,Bt=p+y,nr=u+v;switch(ie){case ya.TOP_LEFT:return new tu(new hi(p,nr),new hi(p,nr-xt),new hi(Bt-tt,u),new hi(Bt,u));case ya.TOP_RIGHT:return new tu(new hi(p,u),new hi(p+tt,u),new hi(Bt,nr-xt),new hi(Bt,nr));case ya.BOTTOM_RIGHT:return new tu(new hi(Bt,u),new hi(Bt,u+xt),new hi(p+tt,nr),new hi(p,nr));case ya.BOTTOM_LEFT:default:return new tu(new hi(Bt,nr),new hi(Bt-tt,nr),new hi(p,u+xt),new hi(p,u))}},ko=function(p){return[p.topLeftBorderBox,p.topRightBorderBox,p.bottomRightBorderBox,p.bottomLeftBorderBox]},$u=function(p){return[p.topLeftContentBox,p.topRightContentBox,p.bottomRightContentBox,p.bottomLeftContentBox]},pu=function(p){return[p.topLeftPaddingBox,p.topRightPaddingBox,p.bottomRightPaddingBox,p.bottomLeftPaddingBox]},nd=function(){function p(u,y,v){this.offsetX=u,this.offsetY=y,this.matrix=v,this.type=0,this.target=6}return p}(),DA=function(){function p(u,y){this.path=u,this.target=y,this.type=1}return p}(),mu=function(){function p(u){this.opacity=u,this.type=2,this.target=6}return p}(),ru=function(p){return p.type===0},Zu=function(p){return p.type===1},Al=function(p){return p.type===2},gu=function(p,u){return p.length===u.length?p.some(function(y,v){return y===u[v]}):!1},id=function(p,u,y,v,ie){return p.map(function(Fe,tt){switch(tt){case 0:return Fe.add(u,y);case 1:return Fe.add(u+v,y);case 2:return Fe.add(u+v,y+ie);case 3:return Fe.add(u,y+ie)}return Fe})},yn=function(){function p(u){this.element=u,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return p}(),jo=function(){function p(u,y){if(this.container=u,this.parent=y,this.effects=[],this.curves=new zu(this.container),this.container.styles.opacity<1&&this.effects.push(new mu(this.container.styles.opacity)),this.container.styles.transform!==null){var v=this.container.bounds.left+this.container.styles.transformOrigin[0].number,ie=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Fe=this.container.styles.transform;this.effects.push(new nd(v,ie,Fe))}if(this.container.styles.overflowX!==0){var tt=ko(this.curves),xt=pu(this.curves);gu(tt,xt)?this.effects.push(new DA(tt,6)):(this.effects.push(new DA(tt,2)),this.effects.push(new DA(xt,4)))}}return p.prototype.getEffects=function(u){for(var y=[2,3].indexOf(this.container.styles.position)===-1,v=this.parent,ie=this.effects.slice(0);v;){var Fe=v.effects.filter(function(Bt){return!Zu(Bt)});if(y||v.container.styles.position!==0||!v.parent){if(ie.unshift.apply(ie,Fe),y=[2,3].indexOf(v.container.styles.position)===-1,v.container.styles.overflowX!==0){var tt=ko(v.curves),xt=pu(v.curves);gu(tt,xt)||ie.unshift(new DA(xt,6))}}else ie.unshift.apply(ie,Fe);v=v.parent}return ie.filter(function(Bt){return En(Bt.target,u)})},p}(),bd=function(p,u,y,v){p.container.elements.forEach(function(ie){var Fe=En(ie.flags,4),tt=En(ie.flags,2),xt=new jo(ie,p);En(ie.styles.display,2048)&&v.push(xt);var Bt=En(ie.flags,8)?[]:v;if(Fe||tt){var nr=Fe||ie.styles.isPositioned()?y:u,hr=new yn(xt);if(ie.styles.isPositioned()||ie.styles.opacity<1||ie.styles.isTransformed()){var a=ie.styles.zIndex.order;if(a<0){var g=0;nr.negativeZIndex.some(function(oe,Ie){return a>oe.element.container.styles.zIndex.order?(g=Ie,!1):g>0}),nr.negativeZIndex.splice(g,0,hr)}else if(a>0){var O=0;nr.positiveZIndex.some(function(oe,Ie){return a>=oe.element.container.styles.zIndex.order?(O=Ie+1,!1):O>0}),nr.positiveZIndex.splice(O,0,hr)}else nr.zeroOrAutoZIndexOrTransformedOrOpacity.push(hr)}else ie.styles.isFloating()?nr.nonPositionedFloats.push(hr):nr.nonPositionedInlineLevel.push(hr);bd(xt,hr,Fe?hr:y,Bt)}else ie.styles.isInlineLevel()?u.inlineLevel.push(xt):u.nonInlineLevel.push(xt),bd(xt,u,y,Bt);En(ie.flags,8)&&gf(ie,Bt)})},gf=function(p,u){for(var y=p instanceof IA?p.start:1,v=p instanceof IA?p.reversed:!1,ie=0;ie<u.length;ie++){var Fe=u[ie];Fe.container instanceof Gl&&typeof Fe.container.value=="number"&&Fe.container.value!==0&&(y=Fe.container.value),Fe.listValue=Yl(y,Fe.container.styles.listStyleType,!0),y+=v?-1:1}},Zd=function(p){var u=new jo(p,null),y=new yn(u),v=[];return bd(u,y,y,v),gf(u.container,v),y},wd=function(p,u){switch(u){case 0:return ml(p.topLeftBorderBox,p.topLeftPaddingBox,p.topRightBorderBox,p.topRightPaddingBox);case 1:return ml(p.topRightBorderBox,p.topRightPaddingBox,p.bottomRightBorderBox,p.bottomRightPaddingBox);case 2:return ml(p.bottomRightBorderBox,p.bottomRightPaddingBox,p.bottomLeftBorderBox,p.bottomLeftPaddingBox);case 3:default:return ml(p.bottomLeftBorderBox,p.bottomLeftPaddingBox,p.topLeftBorderBox,p.topLeftPaddingBox)}},Vu=function(p,u){switch(u){case 0:return ml(p.topLeftBorderBox,p.topLeftBorderDoubleOuterBox,p.topRightBorderBox,p.topRightBorderDoubleOuterBox);case 1:return ml(p.topRightBorderBox,p.topRightBorderDoubleOuterBox,p.bottomRightBorderBox,p.bottomRightBorderDoubleOuterBox);case 2:return ml(p.bottomRightBorderBox,p.bottomRightBorderDoubleOuterBox,p.bottomLeftBorderBox,p.bottomLeftBorderDoubleOuterBox);case 3:default:return ml(p.bottomLeftBorderBox,p.bottomLeftBorderDoubleOuterBox,p.topLeftBorderBox,p.topLeftBorderDoubleOuterBox)}},ad=function(p,u){switch(u){case 0:return ml(p.topLeftBorderDoubleInnerBox,p.topLeftPaddingBox,p.topRightBorderDoubleInnerBox,p.topRightPaddingBox);case 1:return ml(p.topRightBorderDoubleInnerBox,p.topRightPaddingBox,p.bottomRightBorderDoubleInnerBox,p.bottomRightPaddingBox);case 2:return ml(p.bottomRightBorderDoubleInnerBox,p.bottomRightPaddingBox,p.bottomLeftBorderDoubleInnerBox,p.bottomLeftPaddingBox);case 3:default:return ml(p.bottomLeftBorderDoubleInnerBox,p.bottomLeftPaddingBox,p.topLeftBorderDoubleInnerBox,p.topLeftPaddingBox)}},xd=function(p,u){switch(u){case 0:return vu(p.topLeftBorderStroke,p.topRightBorderStroke);case 1:return vu(p.topRightBorderStroke,p.bottomRightBorderStroke);case 2:return vu(p.bottomRightBorderStroke,p.bottomLeftBorderStroke);case 3:default:return vu(p.bottomLeftBorderStroke,p.topLeftBorderStroke)}},vu=function(p,u){var y=[];return Qs(p)?y.push(p.subdivide(.5,!1)):y.push(p),Qs(u)?y.push(u.subdivide(.5,!0)):y.push(u),y},ml=function(p,u,y,v){var ie=[];return Qs(p)?ie.push(p.subdivide(.5,!1)):ie.push(p),Qs(y)?ie.push(y.subdivide(.5,!0)):ie.push(y),Qs(v)?ie.push(v.subdivide(.5,!0).reverse()):ie.push(v),Qs(u)?ie.push(u.subdivide(.5,!1).reverse()):ie.push(u),ie},nu=function(p){var u=p.bounds,y=p.styles;return u.add(y.borderLeftWidth,y.borderTopWidth,-(y.borderRightWidth+y.borderLeftWidth),-(y.borderTopWidth+y.borderBottomWidth))},Ls=function(p){var u=p.styles,y=p.bounds,v=Da(u.paddingLeft,y.width),ie=Da(u.paddingRight,y.width),Fe=Da(u.paddingTop,y.width),tt=Da(u.paddingBottom,y.width);return y.add(v+u.borderLeftWidth,Fe+u.borderTopWidth,-(u.borderRightWidth+u.borderLeftWidth+v+ie),-(u.borderTopWidth+u.borderBottomWidth+Fe+tt))},yu=function(p,u){return p===0?u.bounds:p===2?Ls(u):nu(u)},Cd=function(p,u){return p===0?u.bounds:p===2?Ls(u):nu(u)},pA=function(p,u,y){var v=yu(Vs(p.styles.backgroundOrigin,u),p),ie=Cd(Vs(p.styles.backgroundClip,u),p),Fe=_c(Vs(p.styles.backgroundSize,u),y,v),tt=Fe[0],xt=Fe[1],Bt=ms(Vs(p.styles.backgroundPosition,u),v.width-tt,v.height-xt),nr=nA(Vs(p.styles.backgroundRepeat,u),Bt,Fe,v,ie),hr=Math.round(v.left+Bt[0]),a=Math.round(v.top+Bt[1]);return[nr,hr,a,tt,xt]},gl=function(p){return ka(p)&&p.value===F.AUTO},od=function(p){return typeof p=="number"},_c=function(p,u,y){var v=u[0],ie=u[1],Fe=u[2],tt=p[0],xt=p[1];if(!tt)return[0,0];if(Kn(tt)&&xt&&Kn(xt))return[Da(tt,y.width),Da(xt,y.height)];var Bt=od(Fe);if(ka(tt)&&(tt.value===F.CONTAIN||tt.value===F.COVER)){if(od(Fe)){var nr=y.width/y.height;return nr<Fe!=(tt.value===F.COVER)?[y.width,y.width/Fe]:[y.height*Fe,y.height]}return[y.width,y.height]}var hr=od(v),a=od(ie),g=hr||a;if(gl(tt)&&(!xt||gl(xt))){if(hr&&a)return[v,ie];if(!Bt&&!g)return[y.width,y.height];if(g&&Bt){var O=hr?v:ie*Fe,oe=a?ie:v/Fe;return[O,oe]}var Ie=hr?v:y.width,Ve=a?ie:y.height;return[Ie,Ve]}if(Bt){var ze=0,Je=0;return Kn(tt)?ze=Da(tt,y.width):Kn(xt)&&(Je=Da(xt,y.height)),gl(tt)?ze=Je*Fe:(!xt||gl(xt))&&(Je=ze/Fe),[ze,Je]}var st=null,mt=null;if(Kn(tt)?st=Da(tt,y.width):xt&&Kn(xt)&&(mt=Da(xt,y.height)),st!==null&&(!xt||gl(xt))&&(mt=hr&&a?st/v*ie:y.height),mt!==null&&gl(tt)&&(st=hr&&a?mt/ie*v:y.width),st!==null&&mt!==null)return[st,mt];throw new Error("Unable to calculate background-size for element")},Vs=function(p,u){var y=p[u];return typeof y=="undefined"?p[0]:y},nA=function(p,u,y,v,ie){var Fe=u[0],tt=u[1],xt=y[0],Bt=y[1];switch(p){case 2:return[new hi(Math.round(v.left),Math.round(v.top+tt)),new hi(Math.round(v.left+v.width),Math.round(v.top+tt)),new hi(Math.round(v.left+v.width),Math.round(Bt+v.top+tt)),new hi(Math.round(v.left),Math.round(Bt+v.top+tt))];case 3:return[new hi(Math.round(v.left+Fe),Math.round(v.top)),new hi(Math.round(v.left+Fe+xt),Math.round(v.top)),new hi(Math.round(v.left+Fe+xt),Math.round(v.height+v.top)),new hi(Math.round(v.left+Fe),Math.round(v.height+v.top))];case 1:return[new hi(Math.round(v.left+Fe),Math.round(v.top+tt)),new hi(Math.round(v.left+Fe+xt),Math.round(v.top+tt)),new hi(Math.round(v.left+Fe+xt),Math.round(v.top+tt+Bt)),new hi(Math.round(v.left+Fe),Math.round(v.top+tt+Bt))];default:return[new hi(Math.round(ie.left),Math.round(ie.top)),new hi(Math.round(ie.left+ie.width),Math.round(ie.top)),new hi(Math.round(ie.left+ie.width),Math.round(ie.height+ie.top)),new hi(Math.round(ie.left),Math.round(ie.height+ie.top))]}},vf="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bu="Hidden Text",PA=function(){function p(u){this._data={},this._document=u}return p.prototype.parseMetrics=function(u,y){var v=this._document.createElement("div"),ie=this._document.createElement("img"),Fe=this._document.createElement("span"),tt=this._document.body;v.style.visibility="hidden",v.style.fontFamily=u,v.style.fontSize=y,v.style.margin="0",v.style.padding="0",v.style.whiteSpace="nowrap",tt.appendChild(v),ie.src=vf,ie.width=1,ie.height=1,ie.style.margin="0",ie.style.padding="0",ie.style.verticalAlign="baseline",Fe.style.fontFamily=u,Fe.style.fontSize=y,Fe.style.margin="0",Fe.style.padding="0",Fe.appendChild(this._document.createTextNode(bu)),v.appendChild(Fe),v.appendChild(ie);var xt=ie.offsetTop-Fe.offsetTop+2;v.removeChild(Fe),v.appendChild(this._document.createTextNode(bu)),v.style.lineHeight="normal",ie.style.verticalAlign="super";var Bt=ie.offsetTop-v.offsetTop+2;return tt.removeChild(v),{baseline:xt,middle:Bt}},p.prototype.getMetrics=function(u,y){var v=u+" "+y;return typeof this._data[v]=="undefined"&&(this._data[v]=this.parseMetrics(u,y)),this._data[v]},p}(),dc=function(){function p(u,y){this.context=u,this.options=y}return p}(),yf=1e4,Wu=function(p){w(u,p);function u(y,v){var ie=p.call(this,y,v)||this;return ie._activeEffects=[],ie.canvas=v.canvas?v.canvas:document.createElement("canvas"),ie.ctx=ie.canvas.getContext("2d"),v.canvas||(ie.canvas.width=Math.floor(v.width*v.scale),ie.canvas.height=Math.floor(v.height*v.scale),ie.canvas.style.width=v.width+"px",ie.canvas.style.height=v.height+"px"),ie.fontMetrics=new PA(document),ie.ctx.scale(ie.options.scale,ie.options.scale),ie.ctx.translate(-v.x,-v.y),ie.ctx.textBaseline="bottom",ie._activeEffects=[],ie.context.logger.debug("Canvas renderer initialized ("+v.width+"x"+v.height+") with scale "+v.scale),ie}return u.prototype.applyEffects=function(y){for(var v=this;this._activeEffects.length;)this.popEffect();y.forEach(function(ie){return v.applyEffect(ie)})},u.prototype.applyEffect=function(y){this.ctx.save(),Al(y)&&(this.ctx.globalAlpha=y.opacity),ru(y)&&(this.ctx.translate(y.offsetX,y.offsetY),this.ctx.transform(y.matrix[0],y.matrix[1],y.matrix[2],y.matrix[3],y.matrix[4],y.matrix[5]),this.ctx.translate(-y.offsetX,-y.offsetY)),Zu(y)&&(this.path(y.path),this.ctx.clip()),this._activeEffects.push(y)},u.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},u.prototype.renderStack=function(y){return ue(this,void 0,void 0,function(){var v;return R(this,function(ie){switch(ie.label){case 0:return v=y.element.container.styles,v.isVisible()?[4,this.renderStackContent(y)]:[3,2];case 1:ie.sent(),ie.label=2;case 2:return[2]}})})},u.prototype.renderNode=function(y){return ue(this,void 0,void 0,function(){return R(this,function(v){switch(v.label){case 0:if(En(y.container.flags,16))debugger;return y.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(y)]:[3,3];case 1:return v.sent(),[4,this.renderNodeContent(y)];case 2:v.sent(),v.label=3;case 3:return[2]}})})},u.prototype.renderTextWithLetterSpacing=function(y,v,ie){var Fe=this;if(v===0)this.ctx.fillText(y.text,y.bounds.left,y.bounds.top+ie);else{var tt=Ba(y.text);tt.reduce(function(xt,Bt){return Fe.ctx.fillText(Bt,xt,y.bounds.top+ie),xt+Fe.ctx.measureText(Bt).width},y.bounds.left)}},u.prototype.createFontStyle=function(y){var v=y.fontVariant.filter(function(tt){return tt==="normal"||tt==="small-caps"}).join(""),ie=bf(y.fontFamily).join(", "),Fe=oo(y.fontSize)?""+y.fontSize.number+y.fontSize.unit:y.fontSize.number+"px";return[[y.fontStyle,v,y.fontWeight,Fe,ie].join(" "),ie,Fe]},u.prototype.renderTextNode=function(y,v){return ue(this,void 0,void 0,function(){var ie,Fe,tt,xt,Bt,nr,hr,a,g=this;return R(this,function(O){return ie=this.createFontStyle(v),Fe=ie[0],tt=ie[1],xt=ie[2],this.ctx.font=Fe,this.ctx.direction=v.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",Bt=this.fontMetrics.getMetrics(tt,xt),nr=Bt.baseline,hr=Bt.middle,a=v.paintOrder,y.textBounds.forEach(function(oe){a.forEach(function(Ie){switch(Ie){case 0:g.ctx.fillStyle=Ya(v.color),g.renderTextWithLetterSpacing(oe,v.letterSpacing,nr);var Ve=v.textShadow;Ve.length&&oe.text.trim().length&&(Ve.slice(0).reverse().forEach(function(ze){g.ctx.shadowColor=Ya(ze.color),g.ctx.shadowOffsetX=ze.offsetX.number*g.options.scale,g.ctx.shadowOffsetY=ze.offsetY.number*g.options.scale,g.ctx.shadowBlur=ze.blur.number,g.renderTextWithLetterSpacing(oe,v.letterSpacing,nr)}),g.ctx.shadowColor="",g.ctx.shadowOffsetX=0,g.ctx.shadowOffsetY=0,g.ctx.shadowBlur=0),v.textDecorationLine.length&&(g.ctx.fillStyle=Ya(v.textDecorationColor||v.color),v.textDecorationLine.forEach(function(ze){switch(ze){case 1:g.ctx.fillRect(oe.bounds.left,Math.round(oe.bounds.top+nr),oe.bounds.width,1);break;case 2:g.ctx.fillRect(oe.bounds.left,Math.round(oe.bounds.top),oe.bounds.width,1);break;case 3:g.ctx.fillRect(oe.bounds.left,Math.ceil(oe.bounds.top+hr),oe.bounds.width,1);break}}));break;case 1:v.webkitTextStrokeWidth&&oe.text.trim().length&&(g.ctx.strokeStyle=Ya(v.webkitTextStrokeColor),g.ctx.lineWidth=v.webkitTextStrokeWidth,g.ctx.lineJoin=window.chrome?"miter":"round",g.ctx.strokeText(oe.text,oe.bounds.left,oe.bounds.top+nr)),g.ctx.strokeStyle="",g.ctx.lineWidth=0,g.ctx.lineJoin="miter";break}})}),[2]})})},u.prototype.renderReplacedElement=function(y,v,ie){if(ie&&y.intrinsicWidth>0&&y.intrinsicHeight>0){var Fe=Ls(y),tt=pu(v);this.path(tt),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(ie,0,0,y.intrinsicWidth,y.intrinsicHeight,Fe.left,Fe.top,Fe.width,Fe.height),this.ctx.restore()}},u.prototype.renderNodeContent=function(y){return ue(this,void 0,void 0,function(){var v,ie,Fe,tt,xt,Bt,Je,Je,nr,hr,a,g,mt,O,oe,Ot,Ie,Ve,ze,Je,st,mt,Ot;return R(this,function(jt){switch(jt.label){case 0:this.applyEffects(y.getEffects(4)),v=y.container,ie=y.curves,Fe=v.styles,tt=0,xt=v.textNodes,jt.label=1;case 1:return tt<xt.length?(Bt=xt[tt],[4,this.renderTextNode(Bt,Fe)]):[3,4];case 2:jt.sent(),jt.label=3;case 3:return tt++,[3,1];case 4:if(!(v instanceof Nc))return[3,8];jt.label=5;case 5:return jt.trys.push([5,7,,8]),[4,this.context.cache.match(v.src)];case 6:return Je=jt.sent(),this.renderReplacedElement(v,ie,Je),[3,8];case 7:return jt.sent(),this.context.logger.error("Error loading image "+v.src),[3,8];case 8:if(v instanceof la&&this.renderReplacedElement(v,ie,v.canvas),!(v instanceof Oc))return[3,12];jt.label=9;case 9:return jt.trys.push([9,11,,12]),[4,this.context.cache.match(v.svg)];case 10:return Je=jt.sent(),this.renderReplacedElement(v,ie,Je),[3,12];case 11:return jt.sent(),this.context.logger.error("Error loading svg "+v.svg.substring(0,255)),[3,12];case 12:return v instanceof Uc&&v.tree?(nr=new u(this.context,{scale:this.options.scale,backgroundColor:v.backgroundColor,x:0,y:0,width:v.width,height:v.height}),[4,nr.render(v.tree)]):[3,14];case 13:hr=jt.sent(),v.width&&v.height&&this.ctx.drawImage(hr,0,0,v.width,v.height,v.bounds.left,v.bounds.top,v.bounds.width,v.bounds.height),jt.label=14;case 14:if(v instanceof Is&&(a=Math.min(v.bounds.width,v.bounds.height),v.type===GA?v.checked&&(this.ctx.save(),this.path([new hi(v.bounds.left+a*.39363,v.bounds.top+a*.79),new hi(v.bounds.left+a*.16,v.bounds.top+a*.5549),new hi(v.bounds.left+a*.27347,v.bounds.top+a*.44071),new hi(v.bounds.left+a*.39694,v.bounds.top+a*.5649),new hi(v.bounds.left+a*.72983,v.bounds.top+a*.23),new hi(v.bounds.left+a*.84,v.bounds.top+a*.34085),new hi(v.bounds.left+a*.39363,v.bounds.top+a*.79)]),this.ctx.fillStyle=Ya(Au),this.ctx.fill(),this.ctx.restore()):v.type===oc&&v.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(v.bounds.left+a/2,v.bounds.top+a/2,a/4,0,Math.PI*2,!0),this.ctx.fillStyle=Ya(Au),this.ctx.fill(),this.ctx.restore())),wu(v)&&v.value.length){switch(g=this.createFontStyle(Fe),mt=g[0],O=g[1],oe=this.fontMetrics.getMetrics(mt,O).baseline,this.ctx.font=mt,this.ctx.fillStyle=Ya(Fe.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=NA(v.styles.textAlign),Ot=Ls(v),Ie=0,v.styles.textAlign){case 1:Ie+=Ot.width/2;break;case 2:Ie+=Ot.width;break}Ve=Ot.add(Ie,0,0,-Ot.height/2+1),this.ctx.save(),this.path([new hi(Ot.left,Ot.top),new hi(Ot.left+Ot.width,Ot.top),new hi(Ot.left+Ot.width,Ot.top+Ot.height),new hi(Ot.left,Ot.top+Ot.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Os(v.value,Ve),Fe.letterSpacing,oe),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!En(v.styles.display,2048))return[3,20];if(v.styles.listStyleImage===null)return[3,19];if(ze=v.styles.listStyleImage,ze.type!==0)return[3,18];Je=void 0,st=ze.url,jt.label=15;case 15:return jt.trys.push([15,17,,18]),[4,this.context.cache.match(st)];case 16:return Je=jt.sent(),this.ctx.drawImage(Je,v.bounds.left-(Je.width+10),v.bounds.top),[3,18];case 17:return jt.sent(),this.context.logger.error("Error loading list-style-image "+st),[3,18];case 18:return[3,20];case 19:y.listValue&&v.styles.listStyleType!==-1&&(mt=this.createFontStyle(Fe)[0],this.ctx.font=mt,this.ctx.fillStyle=Ya(Fe.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Ot=new te(v.bounds.left,v.bounds.top+Da(v.styles.paddingTop,v.bounds.width),v.bounds.width,dt(Fe.lineHeight,Fe.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Os(y.listValue,Ot),Fe.letterSpacing,dt(Fe.lineHeight,Fe.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),jt.label=20;case 20:return[2]}})})},u.prototype.renderStackContent=function(y){return ue(this,void 0,void 0,function(){var v,ie,ze,Fe,tt,ze,xt,Bt,ze,nr,hr,ze,a,g,ze,O,oe,ze,Ie,Ve,ze;return R(this,function(Je){switch(Je.label){case 0:if(En(y.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(y.element)];case 1:Je.sent(),v=0,ie=y.negativeZIndex,Je.label=2;case 2:return v<ie.length?(ze=ie[v],[4,this.renderStack(ze)]):[3,5];case 3:Je.sent(),Je.label=4;case 4:return v++,[3,2];case 5:return[4,this.renderNodeContent(y.element)];case 6:Je.sent(),Fe=0,tt=y.nonInlineLevel,Je.label=7;case 7:return Fe<tt.length?(ze=tt[Fe],[4,this.renderNode(ze)]):[3,10];case 8:Je.sent(),Je.label=9;case 9:return Fe++,[3,7];case 10:xt=0,Bt=y.nonPositionedFloats,Je.label=11;case 11:return xt<Bt.length?(ze=Bt[xt],[4,this.renderStack(ze)]):[3,14];case 12:Je.sent(),Je.label=13;case 13:return xt++,[3,11];case 14:nr=0,hr=y.nonPositionedInlineLevel,Je.label=15;case 15:return nr<hr.length?(ze=hr[nr],[4,this.renderStack(ze)]):[3,18];case 16:Je.sent(),Je.label=17;case 17:return nr++,[3,15];case 18:a=0,g=y.inlineLevel,Je.label=19;case 19:return a<g.length?(ze=g[a],[4,this.renderNode(ze)]):[3,22];case 20:Je.sent(),Je.label=21;case 21:return a++,[3,19];case 22:O=0,oe=y.zeroOrAutoZIndexOrTransformedOrOpacity,Je.label=23;case 23:return O<oe.length?(ze=oe[O],[4,this.renderStack(ze)]):[3,26];case 24:Je.sent(),Je.label=25;case 25:return O++,[3,23];case 26:Ie=0,Ve=y.positiveZIndex,Je.label=27;case 27:return Ie<Ve.length?(ze=Ve[Ie],[4,this.renderStack(ze)]):[3,30];case 28:Je.sent(),Je.label=29;case 29:return Ie++,[3,27];case 30:return[2]}})})},u.prototype.mask=function(y){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(y.slice(0).reverse()),this.ctx.closePath()},u.prototype.path=function(y){this.ctx.beginPath(),this.formatPath(y),this.ctx.closePath()},u.prototype.formatPath=function(y){var v=this;y.forEach(function(ie,Fe){var tt=Qs(ie)?ie.start:ie;Fe===0?v.ctx.moveTo(tt.x,tt.y):v.ctx.lineTo(tt.x,tt.y),Qs(ie)&&v.ctx.bezierCurveTo(ie.startControl.x,ie.startControl.y,ie.endControl.x,ie.endControl.y,ie.end.x,ie.end.y)})},u.prototype.renderRepeat=function(y,v,ie,Fe){this.path(y),this.ctx.fillStyle=v,this.ctx.translate(ie,Fe),this.ctx.fill(),this.ctx.translate(-ie,-Fe)},u.prototype.resizeImage=function(y,v,ie){var Fe;if(y.width===v&&y.height===ie)return y;var tt=(Fe=this.canvas.ownerDocument)!==null&&Fe!==void 0?Fe:document,xt=tt.createElement("canvas");xt.width=Math.max(1,v),xt.height=Math.max(1,ie);var Bt=xt.getContext("2d");return Bt.drawImage(y,0,0,y.width,y.height,0,0,v,ie),xt},u.prototype.renderBackgroundImage=function(y){return ue(this,void 0,void 0,function(){var v,ie,Fe,tt,xt,Bt;return R(this,function(nr){switch(nr.label){case 0:v=y.styles.backgroundImage.length-1,ie=function(hr){var a,g,O,Or,li,Wn,Rr,ln,Wt,oe,Or,li,Wn,Rr,ln,Ie,Ve,ze,Je,st,mt,Ot,jt,cr,Wt,Nr,Or,Gt,tr,Rr,ln,un,li,Wn,zi,ti,Ka,qa,Sa,Ia,xo,Wa;return R(this,function(ca){switch(ca.label){case 0:if(hr.type!==0)return[3,5];a=void 0,g=hr.url,ca.label=1;case 1:return ca.trys.push([1,3,,4]),[4,Fe.context.cache.match(g)];case 2:return a=ca.sent(),[3,4];case 3:return ca.sent(),Fe.context.logger.error("Error loading background-image "+g),[3,4];case 4:return a&&(O=pA(y,v,[a.width,a.height,a.width/a.height]),Or=O[0],li=O[1],Wn=O[2],Rr=O[3],ln=O[4],Wt=Fe.ctx.createPattern(Fe.resizeImage(a,Rr,ln),"repeat"),Fe.renderRepeat(Or,Wt,li,Wn)),[3,6];case 5:ed(hr)?(oe=pA(y,v,[null,null,null]),Or=oe[0],li=oe[1],Wn=oe[2],Rr=oe[3],ln=oe[4],Ie=Ys(hr.angle,Rr,ln),Ve=Ie[0],ze=Ie[1],Je=Ie[2],st=Ie[3],mt=Ie[4],Ot=document.createElement("canvas"),Ot.width=Rr,Ot.height=ln,jt=Ot.getContext("2d"),cr=jt.createLinearGradient(ze,st,Je,mt),wA(hr.stops,Ve).forEach(function(Co){return cr.addColorStop(Co.stop,Ya(Co.color))}),jt.fillStyle=cr,jt.fillRect(0,0,Rr,ln),Rr>0&&ln>0&&(Wt=Fe.ctx.createPattern(Ot,"repeat"),Fe.renderRepeat(Or,Wt,li,Wn))):td(hr)&&(Nr=pA(y,v,[null,null,null]),Or=Nr[0],Gt=Nr[1],tr=Nr[2],Rr=Nr[3],ln=Nr[4],un=hr.position.length===0?[Hl]:hr.position,li=Da(un[0],Rr),Wn=Da(un[un.length-1],ln),zi=Oa(hr,li,Wn,Rr,ln),ti=zi[0],Ka=zi[1],ti>0&&Ka>0&&(qa=Fe.ctx.createRadialGradient(Gt+li,tr+Wn,0,Gt+li,tr+Wn,ti),wA(hr.stops,ti*2).forEach(function(Co){return qa.addColorStop(Co.stop,Ya(Co.color))}),Fe.path(Or),Fe.ctx.fillStyle=qa,ti!==Ka?(Sa=y.bounds.left+.5*y.bounds.width,Ia=y.bounds.top+.5*y.bounds.height,xo=Ka/ti,Wa=1/xo,Fe.ctx.save(),Fe.ctx.translate(Sa,Ia),Fe.ctx.transform(1,0,0,xo,0,0),Fe.ctx.translate(-Sa,-Ia),Fe.ctx.fillRect(Gt,Wa*(tr-Ia)+Ia,Rr,ln*Wa),Fe.ctx.restore()):Fe.ctx.fill())),ca.label=6;case 6:return v--,[2]}})},Fe=this,tt=0,xt=y.styles.backgroundImage.slice(0).reverse(),nr.label=1;case 1:return tt<xt.length?(Bt=xt[tt],[5,ie(Bt)]):[3,4];case 2:nr.sent(),nr.label=3;case 3:return tt++,[3,1];case 4:return[2]}})})},u.prototype.renderSolidBorder=function(y,v,ie){return ue(this,void 0,void 0,function(){return R(this,function(Fe){return this.path(wd(ie,v)),this.ctx.fillStyle=Ya(y),this.ctx.fill(),[2]})})},u.prototype.renderDoubleBorder=function(y,v,ie,Fe){return ue(this,void 0,void 0,function(){var tt,xt;return R(this,function(Bt){switch(Bt.label){case 0:return v<3?[4,this.renderSolidBorder(y,ie,Fe)]:[3,2];case 1:return Bt.sent(),[2];case 2:return tt=Vu(Fe,ie),this.path(tt),this.ctx.fillStyle=Ya(y),this.ctx.fill(),xt=ad(Fe,ie),this.path(xt),this.ctx.fill(),[2]}})})},u.prototype.renderNodeBackgroundAndBorders=function(y){return ue(this,void 0,void 0,function(){var v,ie,Fe,tt,xt,Bt,nr,hr,a=this;return R(this,function(g){switch(g.label){case 0:return this.applyEffects(y.getEffects(2)),v=y.container.styles,ie=!Ro(v.backgroundColor)||v.backgroundImage.length,Fe=[{style:v.borderTopStyle,color:v.borderTopColor,width:v.borderTopWidth},{style:v.borderRightStyle,color:v.borderRightColor,width:v.borderRightWidth},{style:v.borderBottomStyle,color:v.borderBottomColor,width:v.borderBottomWidth},{style:v.borderLeftStyle,color:v.borderLeftColor,width:v.borderLeftWidth}],tt=sd(Vs(v.backgroundClip,0),y.curves),ie||v.boxShadow.length?(this.ctx.save(),this.path(tt),this.ctx.clip(),Ro(v.backgroundColor)||(this.ctx.fillStyle=Ya(v.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(y.container)]):[3,2];case 1:g.sent(),this.ctx.restore(),v.boxShadow.slice(0).reverse().forEach(function(O){a.ctx.save();var oe=ko(y.curves),Ie=O.inset?0:yf,Ve=id(oe,-Ie+(O.inset?1:-1)*O.spread.number,(O.inset?1:-1)*O.spread.number,O.spread.number*(O.inset?-2:2),O.spread.number*(O.inset?-2:2));O.inset?(a.path(oe),a.ctx.clip(),a.mask(Ve)):(a.mask(oe),a.ctx.clip(),a.path(Ve)),a.ctx.shadowOffsetX=O.offsetX.number+Ie,a.ctx.shadowOffsetY=O.offsetY.number,a.ctx.shadowColor=Ya(O.color),a.ctx.shadowBlur=O.blur.number,a.ctx.fillStyle=O.inset?Ya(O.color):"rgba(0,0,0,1)",a.ctx.fill(),a.ctx.restore()}),g.label=2;case 2:xt=0,Bt=0,nr=Fe,g.label=3;case 3:return Bt<nr.length?(hr=nr[Bt],hr.style!==0&&!Ro(hr.color)&&hr.width>0?hr.style!==2?[3,5]:[4,this.renderDashedDottedBorder(hr.color,hr.width,xt,y.curves,2)]:[3,11]):[3,13];case 4:return g.sent(),[3,11];case 5:return hr.style!==3?[3,7]:[4,this.renderDashedDottedBorder(hr.color,hr.width,xt,y.curves,3)];case 6:return g.sent(),[3,11];case 7:return hr.style!==4?[3,9]:[4,this.renderDoubleBorder(hr.color,hr.width,xt,y.curves)];case 8:return g.sent(),[3,11];case 9:return[4,this.renderSolidBorder(hr.color,xt,y.curves)];case 10:g.sent(),g.label=11;case 11:xt++,g.label=12;case 12:return Bt++,[3,3];case 13:return[2]}})})},u.prototype.renderDashedDottedBorder=function(y,v,ie,Fe,tt){return ue(this,void 0,void 0,function(){var xt,Bt,nr,hr,a,g,O,oe,Ie,Ve,ze,Je,st,mt,Ot,jt,Ot,jt;return R(this,function(cr){return this.ctx.save(),xt=xd(Fe,ie),Bt=wd(Fe,ie),tt===2&&(this.path(Bt),this.ctx.clip()),Qs(Bt[0])?(nr=Bt[0].start.x,hr=Bt[0].start.y):(nr=Bt[0].x,hr=Bt[0].y),Qs(Bt[1])?(a=Bt[1].end.x,g=Bt[1].end.y):(a=Bt[1].x,g=Bt[1].y),ie===0||ie===2?O=Math.abs(nr-a):O=Math.abs(hr-g),this.ctx.beginPath(),tt===3?this.formatPath(xt):this.formatPath(Bt.slice(0,2)),oe=v<3?v*3:v*2,Ie=v<3?v*2:v,tt===3&&(oe=v,Ie=v),Ve=!0,O<=oe*2?Ve=!1:O<=oe*2+Ie?(ze=O/(2*oe+Ie),oe*=ze,Ie*=ze):(Je=Math.floor((O+Ie)/(oe+Ie)),st=(O-Je*oe)/(Je-1),mt=(O-(Je+1)*oe)/Je,Ie=mt<=0||Math.abs(Ie-st)<Math.abs(Ie-mt)?st:mt),Ve&&(tt===3?this.ctx.setLineDash([0,oe+Ie]):this.ctx.setLineDash([oe,Ie])),tt===3?(this.ctx.lineCap="round",this.ctx.lineWidth=v):this.ctx.lineWidth=v*2+1.1,this.ctx.strokeStyle=Ya(y),this.ctx.stroke(),this.ctx.setLineDash([]),tt===2&&(Qs(Bt[0])&&(Ot=Bt[3],jt=Bt[0],this.ctx.beginPath(),this.formatPath([new hi(Ot.end.x,Ot.end.y),new hi(jt.start.x,jt.start.y)]),this.ctx.stroke()),Qs(Bt[1])&&(Ot=Bt[1],jt=Bt[2],this.ctx.beginPath(),this.formatPath([new hi(Ot.end.x,Ot.end.y),new hi(jt.start.x,jt.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},u.prototype.render=function(y){return ue(this,void 0,void 0,function(){var v;return R(this,function(ie){switch(ie.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Ya(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),v=Zd(y),[4,this.renderStack(v)];case 1:return ie.sent(),this.applyEffects([]),[2,this.canvas]}})})},u}(dc),wu=function(p){return p instanceof Yc||p instanceof Tc?!0:p instanceof Is&&p.type!==oc&&p.type!==GA},sd=function(p,u){switch(p){case 0:return ko(u);case 2:return $u(u);case 1:default:return pu(u)}},NA=function(p){switch(p){case 1:return"center";case 2:return"right";case 0:default:return"left"}},mA=["-apple-system","system-ui"],bf=function(p){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?p.filter(function(u){return mA.indexOf(u)===-1}):p},Gu=function(p){w(u,p);function u(y,v){var ie=p.call(this,y,v)||this;return ie.canvas=v.canvas?v.canvas:document.createElement("canvas"),ie.ctx=ie.canvas.getContext("2d"),ie.options=v,ie.canvas.width=Math.floor(v.width*v.scale),ie.canvas.height=Math.floor(v.height*v.scale),ie.canvas.style.width=v.width+"px",ie.canvas.style.height=v.height+"px",ie.ctx.scale(ie.options.scale,ie.options.scale),ie.ctx.translate(-v.x,-v.y),ie.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+v.width+"x"+v.height+" at "+v.x+","+v.y+") with scale "+v.scale),ie}return u.prototype.render=function(y){return ue(this,void 0,void 0,function(){var v,ie;return R(this,function(Fe){switch(Fe.label){case 0:return v=Vl(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,y),[4,xu(v)];case 1:return ie=Fe.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Ya(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(ie,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},u}(dc),xu=function(p){return new Promise(function(u,y){var v=new Image;v.onload=function(){u(v)},v.onerror=y,v.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(p))})},Cu=function(){function p(u){var y=u.id,v=u.enabled;this.id=y,this.enabled=v,this.start=Date.now()}return p.prototype.debug=function(){for(var u=[],y=0;y<arguments.length;y++)u[y]=arguments[y];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Ne([this.id,this.getTime()+"ms"],u)):this.info.apply(this,u))},p.prototype.getTime=function(){return Date.now()-this.start},p.prototype.info=function(){for(var u=[],y=0;y<arguments.length;y++)u[y]=arguments[y];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Ne([this.id,this.getTime()+"ms"],u))},p.prototype.warn=function(){for(var u=[],y=0;y<arguments.length;y++)u[y]=arguments[y];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Ne([this.id,this.getTime()+"ms"],u)):this.info.apply(this,u))},p.prototype.error=function(){for(var u=[],y=0;y<arguments.length;y++)u[y]=arguments[y];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Ne([this.id,this.getTime()+"ms"],u)):this.info.apply(this,u))},p.instances={},p}(),Bd=function(){function p(u,y){var v;this.windowBounds=y,this.instanceName="#"+p.instanceCount++,this.logger=new Cu({id:this.instanceName,enabled:u.logging}),this.cache=(v=u.cache)!==null&&v!==void 0?v:new hA(this,u)}return p.instanceCount=1,p}(),Vd=function(p,u){return u===void 0&&(u={}),wf(p,u)};typeof window!="undefined"&&fA.setContext(window);var wf=function(p,u){return ue(void 0,void 0,void 0,function(){var y,v,ie,Fe,tt,xt,Bt,nr,hr,a,g,O,oe,Ie,Ve,ze,Je,st,mt,Ot,cr,jt,cr,Wt,Nr,Or,Gt,tr,Rr,ln,un,li,Wn,zi,ti,Ka,qa,Sa,Ia,xo;return R(this,function(Wa){switch(Wa.label){case 0:if(!p||typeof p!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(y=p.ownerDocument,!y)throw new Error("Element is not attached to a Document");if(v=y.defaultView,!v)throw new Error("Document is not attached to a Window");return ie={allowTaint:(Wt=u.allowTaint)!==null&&Wt!==void 0?Wt:!1,imageTimeout:(Nr=u.imageTimeout)!==null&&Nr!==void 0?Nr:15e3,proxy:u.proxy,useCORS:(Or=u.useCORS)!==null&&Or!==void 0?Or:!1},Fe=pe({logging:(Gt=u.logging)!==null&&Gt!==void 0?Gt:!0,cache:u.cache},ie),tt={windowWidth:(tr=u.windowWidth)!==null&&tr!==void 0?tr:v.innerWidth,windowHeight:(Rr=u.windowHeight)!==null&&Rr!==void 0?Rr:v.innerHeight,scrollX:(ln=u.scrollX)!==null&&ln!==void 0?ln:v.pageXOffset,scrollY:(un=u.scrollY)!==null&&un!==void 0?un:v.pageYOffset},xt=new te(tt.scrollX,tt.scrollY,tt.windowWidth,tt.windowHeight),Bt=new Bd(Fe,xt),nr=(li=u.foreignObjectRendering)!==null&&li!==void 0?li:!1,hr={allowTaint:(Wn=u.allowTaint)!==null&&Wn!==void 0?Wn:!1,onclone:u.onclone,ignoreElements:u.ignoreElements,inlineImages:nr,copyStyles:nr},Bt.logger.debug("Starting document clone with size "+xt.width+"x"+xt.height+" scrolled to "+-xt.left+","+-xt.top),a=new nl(Bt,p,hr),g=a.clonedReferenceElement,g?[4,a.toIFrame(y,xt)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return O=Wa.sent(),oe=aa(g)||Fa(g)?B(g.ownerDocument):V(Bt,g),Ie=oe.width,Ve=oe.height,ze=oe.left,Je=oe.top,st=Wd(Bt,g,u.backgroundColor),mt={canvas:u.canvas,backgroundColor:st,scale:(ti=(zi=u.scale)!==null&&zi!==void 0?zi:v.devicePixelRatio)!==null&&ti!==void 0?ti:1,x:((Ka=u.x)!==null&&Ka!==void 0?Ka:0)+ze,y:((qa=u.y)!==null&&qa!==void 0?qa:0)+Je,width:(Sa=u.width)!==null&&Sa!==void 0?Sa:Math.ceil(Ie),height:(Ia=u.height)!==null&&Ia!==void 0?Ia:Math.ceil(Ve)},nr?(Bt.logger.debug("Document cloned, using foreign object rendering"),cr=new Gu(Bt,mt),[4,cr.render(g)]):[3,3];case 2:return Ot=Wa.sent(),[3,5];case 3:return Bt.logger.debug("Document cloned, element located at "+ze+","+Je+" with size "+Ie+"x"+Ve+" using computed rendering"),Bt.logger.debug("Starting DOM parsing"),jt=D(Bt,g),st===jt.styles.backgroundColor&&(jt.styles.backgroundColor=Js.TRANSPARENT),Bt.logger.debug("Starting renderer for element at "+mt.x+","+mt.y+" with size "+mt.width+"x"+mt.height),cr=new Wu(Bt,mt),[4,cr.render(jt)];case 4:Ot=Wa.sent(),Wa.label=5;case 5:return(!((xo=u.removeContainer)!==null&&xo!==void 0)||xo)&&(nl.destroy(O)||Bt.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),Bt.logger.debug("Finished rendering"),[2,Ot]}})})},Wd=function(p,u,y){var v=u.ownerDocument,ie=v.documentElement?Dl(p,getComputedStyle(v.documentElement).backgroundColor):Js.TRANSPARENT,Fe=v.body?Dl(p,getComputedStyle(v.body).backgroundColor):Js.TRANSPARENT,tt=typeof y=="string"?Dl(p,y):y===null?Js.TRANSPARENT:4294967295;return u===v.documentElement?Ro(ie)?Ro(Fe)?tt:Fe:ie:tt};return Vd})},44164:function(bn,Xt,w){var pe=w(97671);(function(R,Ne){bn.exports=Ne(w(7348),w(64270))})(self,function(ue,R){return function(){var Ne={"./src/plugin/hyperlinks.js":function(f,E,h){"use strict";h.r(E);var z=h("./node_modules/core-js/modules/web.dom-collections.for-each.js"),S=h.n(z),_=h("./node_modules/core-js/modules/es.string.link.js"),N=h.n(_),Q=h("./src/worker.js"),I=h("./src/utils.js"),Y=[],K={toContainer:Q.default.prototype.toContainer,toPdf:Q.default.prototype.toPdf};Q.default.prototype.toContainer=function(){return K.toContainer.call(this).then(function(){if(this.opt.enableLinks){var J=this.prop.container,W=J.querySelectorAll("a"),j=(0,I.unitConvert)(J.getBoundingClientRect(),this.prop.pageSize.k);Y=[],Array.prototype.forEach.call(W,function(se){for(var he=se.getClientRects(),Oe=0;Oe<he.length;Oe++){var Be=(0,I.unitConvert)(he[Oe],this.prop.pageSize.k);Be.left-=j.left,Be.top-=j.top;var je=Math.floor(Be.top/this.prop.pageSize.inner.height)+1,X=this.opt.margin[0]+Be.top%this.prop.pageSize.inner.height,de=this.opt.margin[1]+Be.left;Y.push({page:je,top:X,left:de,clientRect:Be,link:se})}},this)}})},Q.default.prototype.toPdf=function(){return K.toPdf.call(this).then(function(){if(this.opt.enableLinks){Y.forEach(function(W){this.prop.pdf.setPage(W.page),this.prop.pdf.link(W.left,W.top,W.clientRect.width,W.clientRect.height,{url:W.link.href})},this);var J=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(J)}})}},"./src/plugin/jspdf-plugin.js":function(f,E,h){"use strict";h.r(E);var z=h("./node_modules/core-js/modules/es.symbol.js"),S=h.n(z),_=h("./node_modules/core-js/modules/es.symbol.description.js"),N=h.n(_),Q=h("./node_modules/core-js/modules/es.object.to-string.js"),I=h.n(Q),Y=h("./node_modules/core-js/modules/es.symbol.iterator.js"),K=h.n(Y),ce=h("./node_modules/core-js/modules/es.array.iterator.js"),G=h.n(ce),J=h("./node_modules/core-js/modules/es.string.iterator.js"),W=h.n(J),j=h("./node_modules/core-js/modules/web.dom-collections.iterator.js"),se=h.n(j),he=h("jspdf"),Oe=h.n(he);function Be(je){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Be=function(de){return typeof de}:Be=function(de){return de&&typeof Symbol=="function"&&de.constructor===Symbol&&de!==Symbol.prototype?"symbol":typeof de},Be(je)}he.jsPDF.getPageSize=function(je,X,de){if(Be(je)==="object"){var L=je;je=L.orientation,X=L.unit||X,de=L.format||de}X=X||"mm",de=de||"a4",je=(""+(je||"P")).toLowerCase();var rt=(""+de).toLowerCase(),De={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(X){case"pt":var we=1;break;case"mm":var we=72/25.4;break;case"cm":var we=72/2.54;break;case"in":var we=72;break;case"px":var we=72/96;break;case"pc":var we=12;break;case"em":var we=12;break;case"ex":var we=6;break;default:throw"Invalid unit: "+X}if(De.hasOwnProperty(rt))var He=De[rt][1]/we,ge=De[rt][0]/we;else try{var He=de[1],ge=de[0]}catch(Ee){throw new Error("Invalid format: "+de)}if(je==="p"||je==="portrait"){if(je="p",ge>He){var Le=ge;ge=He,He=Le}}else if(je==="l"||je==="landscape"){if(je="l",He>ge){var Le=ge;ge=He,He=Le}}else throw"Invalid orientation: "+je;var fe={width:ge,height:He,unit:X,k:we};return fe},E.default=he.jsPDF},"./src/plugin/pagebreaks.js":function(f,E,h){"use strict";h.r(E);var z=h("./node_modules/core-js/modules/es.array.concat.js"),S=h.n(z),_=h("./node_modules/core-js/modules/es.array.slice.js"),N=h.n(_),Q=h("./node_modules/core-js/modules/es.array.join.js"),I=h.n(Q),Y=h("./node_modules/core-js/modules/web.dom-collections.for-each.js"),K=h.n(Y),ce=h("./node_modules/core-js/modules/es.object.keys.js"),G=h.n(ce),J=h("./src/worker.js"),W=h("./src/utils.js"),j={toContainer:J.default.prototype.toContainer};J.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},J.default.prototype.toContainer=function(){return j.toContainer.call(this).then(function(){var Oe=this.prop.container,Be=this.prop.pageSize.inner.px.height,je=[].concat(this.opt.pagebreak.mode),X={avoidAll:je.indexOf("avoid-all")!==-1,css:je.indexOf("css")!==-1,legacy:je.indexOf("legacy")!==-1},de={},L=this;["before","after","avoid"].forEach(function(we){var He=X.avoidAll&&we==="avoid";de[we]=He?[]:[].concat(L.opt.pagebreak[we]||[]),de[we].length>0&&(de[we]=Array.prototype.slice.call(Oe.querySelectorAll(de[we].join(", "))))});var rt=Oe.querySelectorAll(".html2pdf__page-break");rt=Array.prototype.slice.call(rt);var De=Oe.querySelectorAll("*");Array.prototype.forEach.call(De,function(He){var ge={before:!1,after:X.legacy&&rt.indexOf(He)!==-1,avoid:X.avoidAll};if(X.css){var Le=window.getComputedStyle(He),fe=["always","page","left","right"],Ee=["avoid","avoid-page"];ge={before:ge.before||fe.indexOf(Le.breakBefore||Le.pageBreakBefore)!==-1,after:ge.after||fe.indexOf(Le.breakAfter||Le.pageBreakAfter)!==-1,avoid:ge.avoid||Ee.indexOf(Le.breakInside||Le.pageBreakInside)!==-1}}Object.keys(ge).forEach(function(Tt){ge[Tt]=ge[Tt]||de[Tt].indexOf(He)!==-1});var At=He.getBoundingClientRect();if(ge.avoid&&!ge.before){var ft=Math.floor(At.top/Be),ot=Math.floor(At.bottom/Be),ct=Math.abs(At.bottom-At.top)/Be;ot!==ft&&ct<=1&&(ge.before=!0)}if(ge.before){var It=(0,W.createElement)("div",{style:{display:"block",height:Be-At.top%Be+"px"}});He.parentNode.insertBefore(It,He)}if(ge.after){var It=(0,W.createElement)("div",{style:{display:"block",height:Be-At.bottom%Be+"px"}});He.parentNode.insertBefore(It,He.nextSibling)}})})}},"./src/utils.js":function(f,E,h){"use strict";h.r(E),h.d(E,{objType:function(){return je},createElement:function(){return X},cloneNode:function(){return de},unitConvert:function(){return L},toPx:function(){return rt}});var z=h("./node_modules/core-js/modules/es.number.constructor.js"),S=h.n(z),_=h("./node_modules/core-js/modules/es.symbol.js"),N=h.n(_),Q=h("./node_modules/core-js/modules/es.symbol.description.js"),I=h.n(Q),Y=h("./node_modules/core-js/modules/es.object.to-string.js"),K=h.n(Y),ce=h("./node_modules/core-js/modules/es.symbol.iterator.js"),G=h.n(ce),J=h("./node_modules/core-js/modules/es.array.iterator.js"),W=h.n(J),j=h("./node_modules/core-js/modules/es.string.iterator.js"),se=h.n(j),he=h("./node_modules/core-js/modules/web.dom-collections.iterator.js"),Oe=h.n(he);function Be(De){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Be=function(He){return typeof He}:Be=function(He){return He&&typeof Symbol=="function"&&He.constructor===Symbol&&He!==Symbol.prototype?"symbol":typeof He},Be(De)}var je=function(we){var He=Be(we);return He==="undefined"?"undefined":He==="string"||we instanceof String?"string":He==="number"||we instanceof Number?"number":He==="function"||we instanceof Function?"function":we&&we.constructor===Array?"array":we&&we.nodeType===1?"element":He==="object"?"object":"unknown"},X=function(we,He){var ge=document.createElement(we);if(He.className&&(ge.className=He.className),He.innerHTML){ge.innerHTML=He.innerHTML;for(var Le=ge.getElementsByTagName("script"),fe=Le.length;fe-- >0;null)Le[fe].parentNode.removeChild(Le[fe])}for(var Ee in He.style)ge.style[Ee]=He.style[Ee];return ge},de=function De(we,He){for(var ge=we.nodeType===3?document.createTextNode(we.nodeValue):we.cloneNode(!1),Le=we.firstChild;Le;Le=Le.nextSibling)(He===!0||Le.nodeType!==1||Le.nodeName!=="SCRIPT")&&ge.appendChild(De(Le,He));return we.nodeType===1&&(we.nodeName==="CANVAS"?(ge.width=we.width,ge.height=we.height,ge.getContext("2d").drawImage(we,0,0)):(we.nodeName==="TEXTAREA"||we.nodeName==="SELECT")&&(ge.value=we.value),ge.addEventListener("load",function(){ge.scrollTop=we.scrollTop,ge.scrollLeft=we.scrollLeft},!0)),ge},L=function(we,He){if(je(we)==="number")return we*72/96/He;var ge={};for(var Le in we)ge[Le]=we[Le]*72/96/He;return ge},rt=function(we,He){return Math.floor(we*He/72*96)}},"./src/worker.js":function(f,E,h){"use strict";h.r(E);var z=h("./node_modules/core-js/modules/es.object.assign.js"),S=h.n(z),_=h("./node_modules/core-js/modules/es.array.map.js"),N=h.n(_),Q=h("./node_modules/core-js/modules/es.object.keys.js"),I=h.n(Q),Y=h("./node_modules/core-js/modules/es.array.concat.js"),K=h.n(Y),ce=h("./node_modules/core-js/modules/es.object.to-string.js"),G=h.n(ce),J=h("./node_modules/core-js/modules/es.regexp.to-string.js"),W=h.n(J),j=h("./node_modules/core-js/modules/es.function.name.js"),se=h.n(j),he=h("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Oe=h.n(he),Be=h("jspdf"),je=h.n(Be),X=h("html2canvas"),de=h.n(X),L=h("./src/utils.js"),rt=h("./node_modules/es6-promise/dist/es6-promise.js"),De=h.n(rt),we=De().Promise,He=function ge(Le){var fe=Object.assign(ge.convert(we.resolve()),JSON.parse(JSON.stringify(ge.template))),Ee=ge.convert(we.resolve(),fe);return Ee=Ee.setProgress(1,ge,1,[ge]),Ee=Ee.set(Le),Ee};He.prototype=Object.create(we.prototype),He.prototype.constructor=He,He.convert=function(Le,fe){return Le.__proto__=fe||He.prototype,Le},He.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:{}}},He.prototype.from=function(Le,fe){function Ee(At){switch((0,L.objType)(At)){case"string":return"string";case"element":return At.nodeName.toLowerCase&&At.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(fe=fe||Ee(Le),fe){case"string":return this.set({src:(0,L.createElement)("div",{innerHTML:Le})});case"element":return this.set({src:Le});case"canvas":return this.set({canvas:Le});case"img":return this.set({img:Le});default:return this.error("Unknown source type.")}})},He.prototype.to=function(Le){switch(Le){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.")}},He.prototype.toContainer=function(){var Le=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(Le).then(function(){var Ee={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},At={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};Ee.opacity=0;var ft=(0,L.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,L.createElement)("div",{className:"html2pdf__overlay",style:Ee}),this.prop.container=(0,L.createElement)("div",{className:"html2pdf__container",style:At}),this.prop.container.appendChild(ft),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},He.prototype.toCanvas=function(){var Le=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Le).then(function(){var Ee=Object.assign({},this.opt.html2canvas);return delete Ee.onrendered,X(this.prop.container,Ee)}).then(function(Ee){var At=this.opt.html2canvas.onrendered||function(){};At(Ee),this.prop.canvas=Ee,document.body.removeChild(this.prop.overlay)})},He.prototype.toImg=function(){var Le=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(Le).then(function(){var Ee=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Ee})},He.prototype.toPdf=function(){var Le=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(Le).then(function(){var Ee=this.prop.canvas,At=this.opt,ft=Ee.height,ot=Math.floor(Ee.width*this.prop.pageSize.inner.ratio),ct=Math.ceil(ft/ot),It=this.prop.pageSize.inner.height,Tt=document.createElement("canvas"),Ht=Tt.getContext("2d");Tt.width=Ee.width,Tt.height=ot,this.prop.pdf=this.prop.pdf||new Be.jsPDF(At.jsPDF);for(var pr=0;pr<ct;pr++){pr===ct-1&&ft%ot!==0&&(Tt.height=ft%ot,It=Tt.height*this.prop.pageSize.inner.width/Tt.width);var sr=Tt.width,Br=Tt.height;Ht.fillStyle="white",Ht.fillRect(0,0,sr,Br),Ht.drawImage(Ee,0,pr*ot,sr,Br,0,0,sr,Br),pr&&this.prop.pdf.addPage();var fr=Tt.toDataURL("image/"+At.image.type,At.image.quality);this.prop.pdf.addImage(fr,At.image.type,At.margin[1],At.margin[0],this.prop.pageSize.inner.width,It)}})},He.prototype.output=function(Le,fe,Ee){return Ee=Ee||"pdf",Ee.toLowerCase()==="img"||Ee.toLowerCase()==="image"?this.outputImg(Le,fe):this.outputPdf(Le,fe)},He.prototype.outputPdf=function(Le,fe){var Ee=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(Ee).then(function(){return this.prop.pdf.output(Le,fe)})},He.prototype.outputImg=function(Le,fe){var Ee=[function(){return this.prop.img||this.toImg()}];return this.thenList(Ee).then(function(){switch(Le){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 "'+Le+'" is not supported.'}})},He.prototype.save=function(Le){var fe=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(fe).set(Le?{filename:Le}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},He.prototype.set=function(Le){if((0,L.objType)(Le)!=="object")return this;var fe=Object.keys(Le||{}).map(function(Ee){switch(Ee){case"margin":return this.setMargin.bind(this,Le.margin);case"jsPDF":return function(){return this.opt.jsPDF=Le.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,Le.pageSize);default:return Ee in He.template.prop?function(){this.prop[Ee]=Le[Ee]}:function(){this.opt[Ee]=Le[Ee]}}},this);return this.then(function(){return this.thenList(fe)})},He.prototype.get=function(Le,fe){return this.then(function(){var At=Le in He.template.prop?this.prop[Le]:this.opt[Le];return fe?fe(At):At})},He.prototype.setMargin=function(Le){return this.then(function(){switch((0,L.objType)(Le)){case"number":Le=[Le,Le,Le,Le];case"array":if(Le.length===2&&(Le=[Le[0],Le[1],Le[0],Le[1]]),Le.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=Le}).then(this.setPageSize)},He.prototype.setPageSize=function(Le){return this.then(function(){Le=Le||Be.jsPDF.getPageSize(this.opt.jsPDF),Le.hasOwnProperty("inner")||(Le.inner={width:Le.width-this.opt.margin[1]-this.opt.margin[3],height:Le.height-this.opt.margin[0]-this.opt.margin[2]},Le.inner.px={width:(0,L.toPx)(Le.inner.width,Le.k),height:(0,L.toPx)(Le.inner.height,Le.k)},Le.inner.ratio=Le.inner.height/Le.inner.width),this.prop.pageSize=Le})},He.prototype.setProgress=function(Le,fe,Ee,At){return Le!=null&&(this.progress.val=Le),fe!=null&&(this.progress.state=fe),Ee!=null&&(this.progress.n=Ee),At!=null&&(this.progress.stack=At),this.progress.ratio=this.progress.val/this.progress.state,this},He.prototype.updateProgress=function(Le,fe,Ee,At){return this.setProgress(Le?this.progress.val+Le:null,fe||null,Ee?this.progress.n+Ee:null,At?this.progress.stack.concat(At):null)},He.prototype.then=function(Le,fe){var Ee=this;return this.thenCore(Le,fe,function(ft,ot){return Ee.updateProgress(null,null,1,[ft]),we.prototype.then.call(this,function(It){return Ee.updateProgress(null,ft),It}).then(ft,ot).then(function(It){return Ee.updateProgress(1),It})})},He.prototype.thenCore=function(Le,fe,Ee){Ee=Ee||we.prototype.then;var At=this;Le&&(Le=Le.bind(At)),fe&&(fe=fe.bind(At));var ft=we.toString().indexOf("[native code]")!==-1&&we.name==="Promise",ot=ft?At:He.convert(Object.assign({},At),we.prototype),ct=Ee.call(ot,Le,fe);return He.convert(ct,At.__proto__)},He.prototype.thenExternal=function(Le,fe){return we.prototype.then.call(this,Le,fe)},He.prototype.thenList=function(Le){var fe=this;return Le.forEach(function(At){fe=fe.thenCore(At)}),fe},He.prototype.catch=function(ge){ge&&(ge=ge.bind(this));var Le=we.prototype.catch.call(this,ge);return He.convert(Le,this)},He.prototype.catchExternal=function(Le){return we.prototype.catch.call(this,Le)},He.prototype.error=function(Le){return this.then(function(){throw new Error(Le)})},He.prototype.using=He.prototype.set,He.prototype.saveAs=He.prototype.save,He.prototype.export=He.prototype.output,He.prototype.run=He.prototype.then,E.default=He},"./node_modules/core-js/internals/a-function.js":function(f){f.exports=function(E){if(typeof E!="function")throw TypeError(String(E)+" is not a function");return E}},"./node_modules/core-js/internals/a-possible-prototype.js":function(f,E,h){var z=h("./node_modules/core-js/internals/is-object.js");f.exports=function(S){if(!z(S)&&S!==null)throw TypeError("Can't set "+String(S)+" as a prototype");return S}},"./node_modules/core-js/internals/add-to-unscopables.js":function(f,E,h){var z=h("./node_modules/core-js/internals/well-known-symbol.js"),S=h("./node_modules/core-js/internals/object-create.js"),_=h("./node_modules/core-js/internals/object-define-property.js"),N=z("unscopables"),Q=Array.prototype;Q[N]==null&&_.f(Q,N,{configurable:!0,value:S(null)}),f.exports=function(I){Q[N][I]=!0}},"./node_modules/core-js/internals/an-object.js":function(f,E,h){var z=h("./node_modules/core-js/internals/is-object.js");f.exports=function(S){if(!z(S))throw TypeError(String(S)+" is not an object");return S}},"./node_modules/core-js/internals/array-for-each.js":function(f,E,h){"use strict";var z=h("./node_modules/core-js/internals/array-iteration.js").forEach,S=h("./node_modules/core-js/internals/array-method-is-strict.js"),_=S("forEach");f.exports=_?[].forEach:function(Q){return z(this,Q,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(f,E,h){var z=h("./node_modules/core-js/internals/to-indexed-object.js"),S=h("./node_modules/core-js/internals/to-length.js"),_=h("./node_modules/core-js/internals/to-absolute-index.js"),N=function(Q){return function(I,Y,K){var ce=z(I),G=S(ce.length),J=_(K,G),W;if(Q&&Y!=Y){for(;G>J;)if(W=ce[J++],W!=W)return!0}else for(;G>J;J++)if((Q||J in ce)&&ce[J]===Y)return Q||J||0;return!Q&&-1}};f.exports={includes:N(!0),indexOf:N(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(f,E,h){var z=h("./node_modules/core-js/internals/function-bind-context.js"),S=h("./node_modules/core-js/internals/indexed-object.js"),_=h("./node_modules/core-js/internals/to-object.js"),N=h("./node_modules/core-js/internals/to-length.js"),Q=h("./node_modules/core-js/internals/array-species-create.js"),I=[].push,Y=function(K){var ce=K==1,G=K==2,J=K==3,W=K==4,j=K==6,se=K==7,he=K==5||j;return function(Oe,Be,je,X){for(var de=_(Oe),L=S(de),rt=z(Be,je,3),De=N(L.length),we=0,He=X||Q,ge=ce?He(Oe,De):G||se?He(Oe,0):void 0,Le,fe;De>we;we++)if((he||we in L)&&(Le=L[we],fe=rt(Le,we,de),K))if(ce)ge[we]=fe;else if(fe)switch(K){case 3:return!0;case 5:return Le;case 6:return we;case 2:I.call(ge,Le)}else switch(K){case 4:return!1;case 7:I.call(ge,Le)}return j?-1:J||W?W:ge}};f.exports={forEach:Y(0),map:Y(1),filter:Y(2),some:Y(3),every:Y(4),find:Y(5),findIndex:Y(6),filterReject:Y(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(f,E,h){var z=h("./node_modules/core-js/internals/fails.js"),S=h("./node_modules/core-js/internals/well-known-symbol.js"),_=h("./node_modules/core-js/internals/engine-v8-version.js"),N=S("species");f.exports=function(Q){return _>=51||!z(function(){var I=[],Y=I.constructor={};return Y[N]=function(){return{foo:1}},I[Q](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(f,E,h){"use strict";var z=h("./node_modules/core-js/internals/fails.js");f.exports=function(S,_){var N=[][S];return!!N&&z(function(){N.call(null,_||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(f,E,h){var z=h("./node_modules/core-js/internals/is-object.js"),S=h("./node_modules/core-js/internals/is-array.js"),_=h("./node_modules/core-js/internals/well-known-symbol.js"),N=_("species");f.exports=function(Q){var I;return S(Q)&&(I=Q.constructor,typeof I=="function"&&(I===Array||S(I.prototype))?I=void 0:z(I)&&(I=I[N],I===null&&(I=void 0))),I===void 0?Array:I}},"./node_modules/core-js/internals/array-species-create.js":function(f,E,h){var z=h("./node_modules/core-js/internals/array-species-constructor.js");f.exports=function(S,_){return new(z(S))(_===0?0:_)}},"./node_modules/core-js/internals/classof-raw.js":function(f){var E={}.toString;f.exports=function(h){return E.call(h).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(f,E,h){var z=h("./node_modules/core-js/internals/to-string-tag-support.js"),S=h("./node_modules/core-js/internals/classof-raw.js"),_=h("./node_modules/core-js/internals/well-known-symbol.js"),N=_("toStringTag"),Q=S(function(){return arguments}())=="Arguments",I=function(Y,K){try{return Y[K]}catch(ce){}};f.exports=z?S:function(Y){var K,ce,G;return Y===void 0?"Undefined":Y===null?"Null":typeof(ce=I(K=Object(Y),N))=="string"?ce:Q?S(K):(G=S(K))=="Object"&&typeof K.callee=="function"?"Arguments":G}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(f,E,h){var z=h("./node_modules/core-js/internals/has.js"),S=h("./node_modules/core-js/internals/own-keys.js"),_=h("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),N=h("./node_modules/core-js/internals/object-define-property.js");f.exports=function(Q,I){for(var Y=S(I),K=N.f,ce=_.f,G=0;G<Y.length;G++){var J=Y[G];z(Q,J)||K(Q,J,ce(I,J))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(f,E,h){var z=h("./node_modules/core-js/internals/fails.js");f.exports=!z(function(){function S(){}return S.prototype.constructor=null,Object.getPrototypeOf(new S)!==S.prototype})},"./node_modules/core-js/internals/create-html.js":function(f,E,h){var z=h("./node_modules/core-js/internals/require-object-coercible.js"),S=h("./node_modules/core-js/internals/to-string.js"),_=/"/g;f.exports=function(N,Q,I,Y){var K=S(z(N)),ce="<"+Q;return I!==""&&(ce+=" "+I+'="'+S(Y).replace(_,""")+'"'),ce+">"+K+"</"+Q+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(f,E,h){"use strict";var z=h("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,S=h("./node_modules/core-js/internals/object-create.js"),_=h("./node_modules/core-js/internals/create-property-descriptor.js"),N=h("./node_modules/core-js/internals/set-to-string-tag.js"),Q=h("./node_modules/core-js/internals/iterators.js"),I=function(){return this};f.exports=function(Y,K,ce){var G=K+" Iterator";return Y.prototype=S(z,{next:_(1,ce)}),N(Y,G,!1,!0),Q[G]=I,Y}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(f,E,h){var z=h("./node_modules/core-js/internals/descriptors.js"),S=h("./node_modules/core-js/internals/object-define-property.js"),_=h("./node_modules/core-js/internals/create-property-descriptor.js");f.exports=z?function(N,Q,I){return S.f(N,Q,_(1,I))}:function(N,Q,I){return N[Q]=I,N}},"./node_modules/core-js/internals/create-property-descriptor.js":function(f){f.exports=function(E,h){return{enumerable:!(E&1),configurable:!(E&2),writable:!(E&4),value:h}}},"./node_modules/core-js/internals/create-property.js":function(f,E,h){"use strict";var z=h("./node_modules/core-js/internals/to-property-key.js"),S=h("./node_modules/core-js/internals/object-define-property.js"),_=h("./node_modules/core-js/internals/create-property-descriptor.js");f.exports=function(N,Q,I){var Y=z(Q);Y in N?S.f(N,Y,_(0,I)):N[Y]=I}},"./node_modules/core-js/internals/define-iterator.js":function(f,E,h){"use strict";var z=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/create-iterator-constructor.js"),_=h("./node_modules/core-js/internals/object-get-prototype-of.js"),N=h("./node_modules/core-js/internals/object-set-prototype-of.js"),Q=h("./node_modules/core-js/internals/set-to-string-tag.js"),I=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),Y=h("./node_modules/core-js/internals/redefine.js"),K=h("./node_modules/core-js/internals/well-known-symbol.js"),ce=h("./node_modules/core-js/internals/is-pure.js"),G=h("./node_modules/core-js/internals/iterators.js"),J=h("./node_modules/core-js/internals/iterators-core.js"),W=J.IteratorPrototype,j=J.BUGGY_SAFARI_ITERATORS,se=K("iterator"),he="keys",Oe="values",Be="entries",je=function(){return this};f.exports=function(X,de,L,rt,De,we,He){S(L,de,rt);var ge=function(Ht){if(Ht===De&&ft)return ft;if(!j&&Ht in Ee)return Ee[Ht];switch(Ht){case he:return function(){return new L(this,Ht)};case Oe:return function(){return new L(this,Ht)};case Be:return function(){return new L(this,Ht)}}return function(){return new L(this)}},Le=de+" Iterator",fe=!1,Ee=X.prototype,At=Ee[se]||Ee["@@iterator"]||De&&Ee[De],ft=!j&&At||ge(De),ot=de=="Array"&&Ee.entries||At,ct,It,Tt;if(ot&&(ct=_(ot.call(new X)),W!==Object.prototype&&ct.next&&(!ce&&_(ct)!==W&&(N?N(ct,W):typeof ct[se]!="function"&&I(ct,se,je)),Q(ct,Le,!0,!0),ce&&(G[Le]=je))),De==Oe&&At&&At.name!==Oe&&(fe=!0,ft=function(){return At.call(this)}),(!ce||He)&&Ee[se]!==ft&&I(Ee,se,ft),G[de]=ft,De)if(It={values:ge(Oe),keys:we?ft:ge(he),entries:ge(Be)},He)for(Tt in It)(j||fe||!(Tt in Ee))&&Y(Ee,Tt,It[Tt]);else z({target:de,proto:!0,forced:j||fe},It);return It}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(f,E,h){var z=h("./node_modules/core-js/internals/path.js"),S=h("./node_modules/core-js/internals/has.js"),_=h("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),N=h("./node_modules/core-js/internals/object-define-property.js").f;f.exports=function(Q){var I=z.Symbol||(z.Symbol={});S(I,Q)||N(I,Q,{value:_.f(Q)})}},"./node_modules/core-js/internals/descriptors.js":function(f,E,h){var z=h("./node_modules/core-js/internals/fails.js");f.exports=!z(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(f,E,h){var z=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/is-object.js"),_=z.document,N=S(_)&&S(_.createElement);f.exports=function(Q){return N?_.createElement(Q):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(f){f.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(f,E,h){var z=h("./node_modules/core-js/internals/get-built-in.js");f.exports=z("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(f,E,h){var z=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/engine-user-agent.js"),_=z.process,N=z.Deno,Q=_&&_.versions||N&&N.version,I=Q&&Q.v8,Y,K;I?(Y=I.split("."),K=Y[0]<4?1:Y[0]+Y[1]):S&&(Y=S.match(/Edge\/(\d+)/),(!Y||Y[1]>=74)&&(Y=S.match(/Chrome\/(\d+)/),Y&&(K=Y[1]))),f.exports=K&&+K},"./node_modules/core-js/internals/enum-bug-keys.js":function(f){f.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(f,E,h){var z=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,_=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),N=h("./node_modules/core-js/internals/redefine.js"),Q=h("./node_modules/core-js/internals/set-global.js"),I=h("./node_modules/core-js/internals/copy-constructor-properties.js"),Y=h("./node_modules/core-js/internals/is-forced.js");f.exports=function(K,ce){var G=K.target,J=K.global,W=K.stat,j,se,he,Oe,Be,je;if(J?se=z:W?se=z[G]||Q(G,{}):se=(z[G]||{}).prototype,se)for(he in ce){if(Be=ce[he],K.noTargetGet?(je=S(se,he),Oe=je&&je.value):Oe=se[he],j=Y(J?he:G+(W?".":"#")+he,K.forced),!j&&Oe!==void 0){if(typeof Be==typeof Oe)continue;I(Be,Oe)}(K.sham||Oe&&Oe.sham)&&_(Be,"sham",!0),N(se,he,Be,K)}}},"./node_modules/core-js/internals/fails.js":function(f){f.exports=function(E){try{return!!E()}catch(h){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(f,E,h){var z=h("./node_modules/core-js/internals/a-function.js");f.exports=function(S,_,N){if(z(S),_===void 0)return S;switch(N){case 0:return function(){return S.call(_)};case 1:return function(Q){return S.call(_,Q)};case 2:return function(Q,I){return S.call(_,Q,I)};case 3:return function(Q,I,Y){return S.call(_,Q,I,Y)}}return function(){return S.apply(_,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(f,E,h){var z=h("./node_modules/core-js/internals/global.js"),S=function(_){return typeof _=="function"?_:void 0};f.exports=function(_,N){return arguments.length<2?S(z[_]):z[_]&&z[_][N]}},"./node_modules/core-js/internals/global.js":function(f){var E=function(h){return h&&h.Math==Math&&h};f.exports=E(typeof globalThis=="object"&&globalThis)||E(typeof window=="object"&&window)||E(typeof self=="object"&&self)||E(typeof w.g=="object"&&w.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(f,E,h){var z=h("./node_modules/core-js/internals/to-object.js"),S={}.hasOwnProperty;f.exports=Object.hasOwn||function(N,Q){return S.call(z(N),Q)}},"./node_modules/core-js/internals/hidden-keys.js":function(f){f.exports={}},"./node_modules/core-js/internals/html.js":function(f,E,h){var z=h("./node_modules/core-js/internals/get-built-in.js");f.exports=z("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(f,E,h){var z=h("./node_modules/core-js/internals/descriptors.js"),S=h("./node_modules/core-js/internals/fails.js"),_=h("./node_modules/core-js/internals/document-create-element.js");f.exports=!z&&!S(function(){return Object.defineProperty(_("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(f,E,h){var z=h("./node_modules/core-js/internals/fails.js"),S=h("./node_modules/core-js/internals/classof-raw.js"),_="".split;f.exports=z(function(){return!Object("z").propertyIsEnumerable(0)})?function(N){return S(N)=="String"?_.call(N,""):Object(N)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(f,E,h){var z=h("./node_modules/core-js/internals/is-object.js"),S=h("./node_modules/core-js/internals/object-set-prototype-of.js");f.exports=function(_,N,Q){var I,Y;return S&&typeof(I=N.constructor)=="function"&&I!==Q&&z(Y=I.prototype)&&Y!==Q.prototype&&S(_,Y),_}},"./node_modules/core-js/internals/inspect-source.js":function(f,E,h){var z=h("./node_modules/core-js/internals/shared-store.js"),S=Function.toString;typeof z.inspectSource!="function"&&(z.inspectSource=function(_){return S.call(_)}),f.exports=z.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(f,E,h){var z=h("./node_modules/core-js/internals/native-weak-map.js"),S=h("./node_modules/core-js/internals/global.js"),_=h("./node_modules/core-js/internals/is-object.js"),N=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),Q=h("./node_modules/core-js/internals/has.js"),I=h("./node_modules/core-js/internals/shared-store.js"),Y=h("./node_modules/core-js/internals/shared-key.js"),K=h("./node_modules/core-js/internals/hidden-keys.js"),ce="Object already initialized",G=S.WeakMap,J,W,j,se=function(L){return j(L)?W(L):J(L,{})},he=function(L){return function(rt){var De;if(!_(rt)||(De=W(rt)).type!==L)throw TypeError("Incompatible receiver, "+L+" required");return De}};if(z||I.state){var Oe=I.state||(I.state=new G),Be=Oe.get,je=Oe.has,X=Oe.set;J=function(L,rt){if(je.call(Oe,L))throw new TypeError(ce);return rt.facade=L,X.call(Oe,L,rt),rt},W=function(L){return Be.call(Oe,L)||{}},j=function(L){return je.call(Oe,L)}}else{var de=Y("state");K[de]=!0,J=function(L,rt){if(Q(L,de))throw new TypeError(ce);return rt.facade=L,N(L,de,rt),rt},W=function(L){return Q(L,de)?L[de]:{}},j=function(L){return Q(L,de)}}f.exports={set:J,get:W,has:j,enforce:se,getterFor:he}},"./node_modules/core-js/internals/is-array.js":function(f,E,h){var z=h("./node_modules/core-js/internals/classof-raw.js");f.exports=Array.isArray||function(_){return z(_)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(f,E,h){var z=h("./node_modules/core-js/internals/fails.js"),S=/#|\.prototype\./,_=function(K,ce){var G=Q[N(K)];return G==Y?!0:G==I?!1:typeof ce=="function"?z(ce):!!ce},N=_.normalize=function(K){return String(K).replace(S,".").toLowerCase()},Q=_.data={},I=_.NATIVE="N",Y=_.POLYFILL="P";f.exports=_},"./node_modules/core-js/internals/is-object.js":function(f){f.exports=function(E){return typeof E=="object"?E!==null:typeof E=="function"}},"./node_modules/core-js/internals/is-pure.js":function(f){f.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(f,E,h){var z=h("./node_modules/core-js/internals/get-built-in.js"),S=h("./node_modules/core-js/internals/use-symbol-as-uid.js");f.exports=S?function(_){return typeof _=="symbol"}:function(_){var N=z("Symbol");return typeof N=="function"&&Object(_)instanceof N}},"./node_modules/core-js/internals/iterators-core.js":function(f,E,h){"use strict";var z=h("./node_modules/core-js/internals/fails.js"),S=h("./node_modules/core-js/internals/object-get-prototype-of.js"),_=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),N=h("./node_modules/core-js/internals/has.js"),Q=h("./node_modules/core-js/internals/well-known-symbol.js"),I=h("./node_modules/core-js/internals/is-pure.js"),Y=Q("iterator"),K=!1,ce=function(){return this},G,J,W;[].keys&&(W=[].keys(),"next"in W?(J=S(S(W)),J!==Object.prototype&&(G=J)):K=!0);var j=G==null||z(function(){var se={};return G[Y].call(se)!==se});j&&(G={}),(!I||j)&&!N(G,Y)&&_(G,Y,ce),f.exports={IteratorPrototype:G,BUGGY_SAFARI_ITERATORS:K}},"./node_modules/core-js/internals/iterators.js":function(f){f.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(f,E,h){var z=h("./node_modules/core-js/internals/engine-v8-version.js"),S=h("./node_modules/core-js/internals/fails.js");f.exports=!!Object.getOwnPropertySymbols&&!S(function(){var _=Symbol();return!String(_)||!(Object(_)instanceof Symbol)||!Symbol.sham&&z&&z<41})},"./node_modules/core-js/internals/native-weak-map.js":function(f,E,h){var z=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/inspect-source.js"),_=z.WeakMap;f.exports=typeof _=="function"&&/native code/.test(S(_))},"./node_modules/core-js/internals/object-assign.js":function(f,E,h){"use strict";var z=h("./node_modules/core-js/internals/descriptors.js"),S=h("./node_modules/core-js/internals/fails.js"),_=h("./node_modules/core-js/internals/object-keys.js"),N=h("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Q=h("./node_modules/core-js/internals/object-property-is-enumerable.js"),I=h("./node_modules/core-js/internals/to-object.js"),Y=h("./node_modules/core-js/internals/indexed-object.js"),K=Object.assign,ce=Object.defineProperty;f.exports=!K||S(function(){if(z&&K({b:1},K(ce({},"a",{enumerable:!0,get:function(){ce(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var G={},J={},W=Symbol(),j="abcdefghijklmnopqrst";return G[W]=7,j.split("").forEach(function(se){J[se]=se}),K({},G)[W]!=7||_(K({},J)).join("")!=j})?function(J,W){for(var j=I(J),se=arguments.length,he=1,Oe=N.f,Be=Q.f;se>he;)for(var je=Y(arguments[he++]),X=Oe?_(je).concat(Oe(je)):_(je),de=X.length,L=0,rt;de>L;)rt=X[L++],(!z||Be.call(je,rt))&&(j[rt]=je[rt]);return j}:K},"./node_modules/core-js/internals/object-create.js":function(f,E,h){var z=h("./node_modules/core-js/internals/an-object.js"),S=h("./node_modules/core-js/internals/object-define-properties.js"),_=h("./node_modules/core-js/internals/enum-bug-keys.js"),N=h("./node_modules/core-js/internals/hidden-keys.js"),Q=h("./node_modules/core-js/internals/html.js"),I=h("./node_modules/core-js/internals/document-create-element.js"),Y=h("./node_modules/core-js/internals/shared-key.js"),K=">",ce="<",G="prototype",J="script",W=Y("IE_PROTO"),j=function(){},se=function(X){return ce+J+K+X+ce+"/"+J+K},he=function(X){X.write(se("")),X.close();var de=X.parentWindow.Object;return X=null,de},Oe=function(){var X=I("iframe"),de="java"+J+":",L;if(X.style)return X.style.display="none",Q.appendChild(X),X.src=String(de),L=X.contentWindow.document,L.open(),L.write(se("document.F=Object")),L.close(),L.F},Be,je=function(){try{Be=new ActiveXObject("htmlfile")}catch(de){}je=document.domain&&Be?he(Be):Oe()||he(Be);for(var X=_.length;X--;)delete je[G][_[X]];return je()};N[W]=!0,f.exports=Object.create||function(de,L){var rt;return de!==null?(j[G]=z(de),rt=new j,j[G]=null,rt[W]=de):rt=je(),L===void 0?rt:S(rt,L)}},"./node_modules/core-js/internals/object-define-properties.js":function(f,E,h){var z=h("./node_modules/core-js/internals/descriptors.js"),S=h("./node_modules/core-js/internals/object-define-property.js"),_=h("./node_modules/core-js/internals/an-object.js"),N=h("./node_modules/core-js/internals/object-keys.js");f.exports=z?Object.defineProperties:function(I,Y){_(I);for(var K=N(Y),ce=K.length,G=0,J;ce>G;)S.f(I,J=K[G++],Y[J]);return I}},"./node_modules/core-js/internals/object-define-property.js":function(f,E,h){var z=h("./node_modules/core-js/internals/descriptors.js"),S=h("./node_modules/core-js/internals/ie8-dom-define.js"),_=h("./node_modules/core-js/internals/an-object.js"),N=h("./node_modules/core-js/internals/to-property-key.js"),Q=Object.defineProperty;E.f=z?Q:function(Y,K,ce){if(_(Y),K=N(K),_(ce),S)try{return Q(Y,K,ce)}catch(G){}if("get"in ce||"set"in ce)throw TypeError("Accessors not supported");return"value"in ce&&(Y[K]=ce.value),Y}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(f,E,h){var z=h("./node_modules/core-js/internals/descriptors.js"),S=h("./node_modules/core-js/internals/object-property-is-enumerable.js"),_=h("./node_modules/core-js/internals/create-property-descriptor.js"),N=h("./node_modules/core-js/internals/to-indexed-object.js"),Q=h("./node_modules/core-js/internals/to-property-key.js"),I=h("./node_modules/core-js/internals/has.js"),Y=h("./node_modules/core-js/internals/ie8-dom-define.js"),K=Object.getOwnPropertyDescriptor;E.f=z?K:function(G,J){if(G=N(G),J=Q(J),Y)try{return K(G,J)}catch(W){}if(I(G,J))return _(!S.f.call(G,J),G[J])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(f,E,h){var z=h("./node_modules/core-js/internals/to-indexed-object.js"),S=h("./node_modules/core-js/internals/object-get-own-property-names.js").f,_={}.toString,N=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Q=function(I){try{return S(I)}catch(Y){return N.slice()}};f.exports.f=function(Y){return N&&_.call(Y)=="[object Window]"?Q(Y):S(z(Y))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(f,E,h){var z=h("./node_modules/core-js/internals/object-keys-internal.js"),S=h("./node_modules/core-js/internals/enum-bug-keys.js"),_=S.concat("length","prototype");E.f=Object.getOwnPropertyNames||function(Q){return z(Q,_)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(f,E){E.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(f,E,h){var z=h("./node_modules/core-js/internals/has.js"),S=h("./node_modules/core-js/internals/to-object.js"),_=h("./node_modules/core-js/internals/shared-key.js"),N=h("./node_modules/core-js/internals/correct-prototype-getter.js"),Q=_("IE_PROTO"),I=Object.prototype;f.exports=N?Object.getPrototypeOf:function(Y){return Y=S(Y),z(Y,Q)?Y[Q]:typeof Y.constructor=="function"&&Y instanceof Y.constructor?Y.constructor.prototype:Y instanceof Object?I:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(f,E,h){var z=h("./node_modules/core-js/internals/has.js"),S=h("./node_modules/core-js/internals/to-indexed-object.js"),_=h("./node_modules/core-js/internals/array-includes.js").indexOf,N=h("./node_modules/core-js/internals/hidden-keys.js");f.exports=function(Q,I){var Y=S(Q),K=0,ce=[],G;for(G in Y)!z(N,G)&&z(Y,G)&&ce.push(G);for(;I.length>K;)z(Y,G=I[K++])&&(~_(ce,G)||ce.push(G));return ce}},"./node_modules/core-js/internals/object-keys.js":function(f,E,h){var z=h("./node_modules/core-js/internals/object-keys-internal.js"),S=h("./node_modules/core-js/internals/enum-bug-keys.js");f.exports=Object.keys||function(N){return z(N,S)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(f,E){"use strict";var h={}.propertyIsEnumerable,z=Object.getOwnPropertyDescriptor,S=z&&!h.call({1:2},1);E.f=S?function(N){var Q=z(this,N);return!!Q&&Q.enumerable}:h},"./node_modules/core-js/internals/object-set-prototype-of.js":function(f,E,h){var z=h("./node_modules/core-js/internals/an-object.js"),S=h("./node_modules/core-js/internals/a-possible-prototype.js");f.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var _=!1,N={},Q;try{Q=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,Q.call(N,[]),_=N instanceof Array}catch(I){}return function(Y,K){return z(Y),S(K),_?Q.call(Y,K):Y.__proto__=K,Y}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(f,E,h){"use strict";var z=h("./node_modules/core-js/internals/to-string-tag-support.js"),S=h("./node_modules/core-js/internals/classof.js");f.exports=z?{}.toString:function(){return"[object "+S(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(f,E,h){var z=h("./node_modules/core-js/internals/is-object.js");f.exports=function(S,_){var N,Q;if(_==="string"&&typeof(N=S.toString)=="function"&&!z(Q=N.call(S))||typeof(N=S.valueOf)=="function"&&!z(Q=N.call(S))||_!=="string"&&typeof(N=S.toString)=="function"&&!z(Q=N.call(S)))return Q;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(f,E,h){var z=h("./node_modules/core-js/internals/get-built-in.js"),S=h("./node_modules/core-js/internals/object-get-own-property-names.js"),_=h("./node_modules/core-js/internals/object-get-own-property-symbols.js"),N=h("./node_modules/core-js/internals/an-object.js");f.exports=z("Reflect","ownKeys")||function(I){var Y=S.f(N(I)),K=_.f;return K?Y.concat(K(I)):Y}},"./node_modules/core-js/internals/path.js":function(f,E,h){var z=h("./node_modules/core-js/internals/global.js");f.exports=z},"./node_modules/core-js/internals/redefine.js":function(f,E,h){var z=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),_=h("./node_modules/core-js/internals/has.js"),N=h("./node_modules/core-js/internals/set-global.js"),Q=h("./node_modules/core-js/internals/inspect-source.js"),I=h("./node_modules/core-js/internals/internal-state.js"),Y=I.get,K=I.enforce,ce=String(String).split("String");(f.exports=function(G,J,W,j){var se=j?!!j.unsafe:!1,he=j?!!j.enumerable:!1,Oe=j?!!j.noTargetGet:!1,Be;if(typeof W=="function"&&(typeof J=="string"&&!_(W,"name")&&S(W,"name",J),Be=K(W),Be.source||(Be.source=ce.join(typeof J=="string"?J:""))),G===z){he?G[J]=W:N(J,W);return}else se?!Oe&&G[J]&&(he=!0):delete G[J];he?G[J]=W:S(G,J,W)})(Function.prototype,"toString",function(){return typeof this=="function"&&Y(this).source||Q(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(f,E,h){"use strict";var z=h("./node_modules/core-js/internals/an-object.js");f.exports=function(){var S=z(this),_="";return S.global&&(_+="g"),S.ignoreCase&&(_+="i"),S.multiline&&(_+="m"),S.dotAll&&(_+="s"),S.unicode&&(_+="u"),S.sticky&&(_+="y"),_}},"./node_modules/core-js/internals/require-object-coercible.js":function(f){f.exports=function(E){if(E==null)throw TypeError("Can't call method on "+E);return E}},"./node_modules/core-js/internals/set-global.js":function(f,E,h){var z=h("./node_modules/core-js/internals/global.js");f.exports=function(S,_){try{Object.defineProperty(z,S,{value:_,configurable:!0,writable:!0})}catch(N){z[S]=_}return _}},"./node_modules/core-js/internals/set-to-string-tag.js":function(f,E,h){var z=h("./node_modules/core-js/internals/object-define-property.js").f,S=h("./node_modules/core-js/internals/has.js"),_=h("./node_modules/core-js/internals/well-known-symbol.js"),N=_("toStringTag");f.exports=function(Q,I,Y){Q&&!S(Q=Y?Q:Q.prototype,N)&&z(Q,N,{configurable:!0,value:I})}},"./node_modules/core-js/internals/shared-key.js":function(f,E,h){var z=h("./node_modules/core-js/internals/shared.js"),S=h("./node_modules/core-js/internals/uid.js"),_=z("keys");f.exports=function(N){return _[N]||(_[N]=S(N))}},"./node_modules/core-js/internals/shared-store.js":function(f,E,h){var z=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/set-global.js"),_="__core-js_shared__",N=z[_]||S(_,{});f.exports=N},"./node_modules/core-js/internals/shared.js":function(f,E,h){var z=h("./node_modules/core-js/internals/is-pure.js"),S=h("./node_modules/core-js/internals/shared-store.js");(f.exports=function(_,N){return S[_]||(S[_]=N!==void 0?N:{})})("versions",[]).push({version:"3.16.0",mode:z?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(f,E,h){var z=h("./node_modules/core-js/internals/fails.js");f.exports=function(S){return z(function(){var _=""[S]('"');return _!==_.toLowerCase()||_.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(f,E,h){var z=h("./node_modules/core-js/internals/to-integer.js"),S=h("./node_modules/core-js/internals/to-string.js"),_=h("./node_modules/core-js/internals/require-object-coercible.js"),N=function(Q){return function(I,Y){var K=S(_(I)),ce=z(Y),G=K.length,J,W;return ce<0||ce>=G?Q?"":void 0:(J=K.charCodeAt(ce),J<55296||J>56319||ce+1===G||(W=K.charCodeAt(ce+1))<56320||W>57343?Q?K.charAt(ce):J:Q?K.slice(ce,ce+2):(J-55296<<10)+(W-56320)+65536)}};f.exports={codeAt:N(!1),charAt:N(!0)}},"./node_modules/core-js/internals/string-trim.js":function(f,E,h){var z=h("./node_modules/core-js/internals/require-object-coercible.js"),S=h("./node_modules/core-js/internals/to-string.js"),_=h("./node_modules/core-js/internals/whitespaces.js"),N="["+_+"]",Q=RegExp("^"+N+N+"*"),I=RegExp(N+N+"*$"),Y=function(K){return function(ce){var G=S(z(ce));return K&1&&(G=G.replace(Q,"")),K&2&&(G=G.replace(I,"")),G}};f.exports={start:Y(1),end:Y(2),trim:Y(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(f,E,h){var z=h("./node_modules/core-js/internals/to-integer.js"),S=Math.max,_=Math.min;f.exports=function(N,Q){var I=z(N);return I<0?S(I+Q,0):_(I,Q)}},"./node_modules/core-js/internals/to-indexed-object.js":function(f,E,h){var z=h("./node_modules/core-js/internals/indexed-object.js"),S=h("./node_modules/core-js/internals/require-object-coercible.js");f.exports=function(_){return z(S(_))}},"./node_modules/core-js/internals/to-integer.js":function(f){var E=Math.ceil,h=Math.floor;f.exports=function(z){return isNaN(z=+z)?0:(z>0?h:E)(z)}},"./node_modules/core-js/internals/to-length.js":function(f,E,h){var z=h("./node_modules/core-js/internals/to-integer.js"),S=Math.min;f.exports=function(_){return _>0?S(z(_),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(f,E,h){var z=h("./node_modules/core-js/internals/require-object-coercible.js");f.exports=function(S){return Object(z(S))}},"./node_modules/core-js/internals/to-primitive.js":function(f,E,h){var z=h("./node_modules/core-js/internals/is-object.js"),S=h("./node_modules/core-js/internals/is-symbol.js"),_=h("./node_modules/core-js/internals/ordinary-to-primitive.js"),N=h("./node_modules/core-js/internals/well-known-symbol.js"),Q=N("toPrimitive");f.exports=function(I,Y){if(!z(I)||S(I))return I;var K=I[Q],ce;if(K!==void 0){if(Y===void 0&&(Y="default"),ce=K.call(I,Y),!z(ce)||S(ce))return ce;throw TypeError("Can't convert object to primitive value")}return Y===void 0&&(Y="number"),_(I,Y)}},"./node_modules/core-js/internals/to-property-key.js":function(f,E,h){var z=h("./node_modules/core-js/internals/to-primitive.js"),S=h("./node_modules/core-js/internals/is-symbol.js");f.exports=function(_){var N=z(_,"string");return S(N)?N:String(N)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(f,E,h){var z=h("./node_modules/core-js/internals/well-known-symbol.js"),S=z("toStringTag"),_={};_[S]="z",f.exports=String(_)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(f,E,h){var z=h("./node_modules/core-js/internals/is-symbol.js");f.exports=function(S){if(z(S))throw TypeError("Cannot convert a Symbol value to a string");return String(S)}},"./node_modules/core-js/internals/uid.js":function(f){var E=0,h=Math.random();f.exports=function(z){return"Symbol("+String(z===void 0?"":z)+")_"+(++E+h).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(f,E,h){var z=h("./node_modules/core-js/internals/native-symbol.js");f.exports=z&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(f,E,h){var z=h("./node_modules/core-js/internals/well-known-symbol.js");E.f=z},"./node_modules/core-js/internals/well-known-symbol.js":function(f,E,h){var z=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/shared.js"),_=h("./node_modules/core-js/internals/has.js"),N=h("./node_modules/core-js/internals/uid.js"),Q=h("./node_modules/core-js/internals/native-symbol.js"),I=h("./node_modules/core-js/internals/use-symbol-as-uid.js"),Y=S("wks"),K=z.Symbol,ce=I?K:K&&K.withoutSetter||N;f.exports=function(G){return(!_(Y,G)||!(Q||typeof Y[G]=="string"))&&(Q&&_(K,G)?Y[G]=K[G]:Y[G]=ce("Symbol."+G)),Y[G]}},"./node_modules/core-js/internals/whitespaces.js":function(f){f.exports=`
|
|
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},"./node_modules/core-js/modules/es.array.concat.js":function(f,E,h){"use strict";var z=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/fails.js"),_=h("./node_modules/core-js/internals/is-array.js"),N=h("./node_modules/core-js/internals/is-object.js"),Q=h("./node_modules/core-js/internals/to-object.js"),I=h("./node_modules/core-js/internals/to-length.js"),Y=h("./node_modules/core-js/internals/create-property.js"),K=h("./node_modules/core-js/internals/array-species-create.js"),ce=h("./node_modules/core-js/internals/array-method-has-species-support.js"),G=h("./node_modules/core-js/internals/well-known-symbol.js"),J=h("./node_modules/core-js/internals/engine-v8-version.js"),W=G("isConcatSpreadable"),j=9007199254740991,se="Maximum allowed index exceeded",he=J>=51||!S(function(){var X=[];return X[W]=!1,X.concat()[0]!==X}),Oe=ce("concat"),Be=function(X){if(!N(X))return!1;var de=X[W];return de!==void 0?!!de:_(X)},je=!he||!Oe;z({target:"Array",proto:!0,forced:je},{concat:function(de){var L=Q(this),rt=K(L,0),De=0,we,He,ge,Le,fe;for(we=-1,ge=arguments.length;we<ge;we++)if(fe=we===-1?L:arguments[we],Be(fe)){if(Le=I(fe.length),De+Le>j)throw TypeError(se);for(He=0;He<Le;He++,De++)He in fe&&Y(rt,De,fe[He])}else{if(De>=j)throw TypeError(se);Y(rt,De++,fe)}return rt.length=De,rt}})},"./node_modules/core-js/modules/es.array.iterator.js":function(f,E,h){"use strict";var z=h("./node_modules/core-js/internals/to-indexed-object.js"),S=h("./node_modules/core-js/internals/add-to-unscopables.js"),_=h("./node_modules/core-js/internals/iterators.js"),N=h("./node_modules/core-js/internals/internal-state.js"),Q=h("./node_modules/core-js/internals/define-iterator.js"),I="Array Iterator",Y=N.set,K=N.getterFor(I);f.exports=Q(Array,"Array",function(ce,G){Y(this,{type:I,target:z(ce),index:0,kind:G})},function(){var ce=K(this),G=ce.target,J=ce.kind,W=ce.index++;return!G||W>=G.length?(ce.target=void 0,{value:void 0,done:!0}):J=="keys"?{value:W,done:!1}:J=="values"?{value:G[W],done:!1}:{value:[W,G[W]],done:!1}},"values"),_.Arguments=_.Array,S("keys"),S("values"),S("entries")},"./node_modules/core-js/modules/es.array.join.js":function(f,E,h){"use strict";var z=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/indexed-object.js"),_=h("./node_modules/core-js/internals/to-indexed-object.js"),N=h("./node_modules/core-js/internals/array-method-is-strict.js"),Q=[].join,I=S!=Object,Y=N("join",",");z({target:"Array",proto:!0,forced:I||!Y},{join:function(ce){return Q.call(_(this),ce===void 0?",":ce)}})},"./node_modules/core-js/modules/es.array.map.js":function(f,E,h){"use strict";var z=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/array-iteration.js").map,_=h("./node_modules/core-js/internals/array-method-has-species-support.js"),N=_("map");z({target:"Array",proto:!0,forced:!N},{map:function(I){return S(this,I,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(f,E,h){"use strict";var z=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/is-object.js"),_=h("./node_modules/core-js/internals/is-array.js"),N=h("./node_modules/core-js/internals/to-absolute-index.js"),Q=h("./node_modules/core-js/internals/to-length.js"),I=h("./node_modules/core-js/internals/to-indexed-object.js"),Y=h("./node_modules/core-js/internals/create-property.js"),K=h("./node_modules/core-js/internals/well-known-symbol.js"),ce=h("./node_modules/core-js/internals/array-method-has-species-support.js"),G=ce("slice"),J=K("species"),W=[].slice,j=Math.max;z({target:"Array",proto:!0,forced:!G},{slice:function(he,Oe){var Be=I(this),je=Q(Be.length),X=N(he,je),de=N(Oe===void 0?je:Oe,je),L,rt,De;if(_(Be)&&(L=Be.constructor,typeof L=="function"&&(L===Array||_(L.prototype))?L=void 0:S(L)&&(L=L[J],L===null&&(L=void 0)),L===Array||L===void 0))return W.call(Be,X,de);for(rt=new(L===void 0?Array:L)(j(de-X,0)),De=0;X<de;X++,De++)X in Be&&Y(rt,De,Be[X]);return rt.length=De,rt}})},"./node_modules/core-js/modules/es.function.name.js":function(f,E,h){var z=h("./node_modules/core-js/internals/descriptors.js"),S=h("./node_modules/core-js/internals/object-define-property.js").f,_=Function.prototype,N=_.toString,Q=/^\s*function ([^ (]*)/,I="name";z&&!(I in _)&&S(_,I,{configurable:!0,get:function(){try{return N.call(this).match(Q)[1]}catch(Y){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(f,E,h){"use strict";var z=h("./node_modules/core-js/internals/descriptors.js"),S=h("./node_modules/core-js/internals/global.js"),_=h("./node_modules/core-js/internals/is-forced.js"),N=h("./node_modules/core-js/internals/redefine.js"),Q=h("./node_modules/core-js/internals/has.js"),I=h("./node_modules/core-js/internals/classof-raw.js"),Y=h("./node_modules/core-js/internals/inherit-if-required.js"),K=h("./node_modules/core-js/internals/is-symbol.js"),ce=h("./node_modules/core-js/internals/to-primitive.js"),G=h("./node_modules/core-js/internals/fails.js"),J=h("./node_modules/core-js/internals/object-create.js"),W=h("./node_modules/core-js/internals/object-get-own-property-names.js").f,j=h("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,se=h("./node_modules/core-js/internals/object-define-property.js").f,he=h("./node_modules/core-js/internals/string-trim.js").trim,Oe="Number",Be=S[Oe],je=Be.prototype,X=I(J(je))==Oe,de=function(He){if(K(He))throw TypeError("Cannot convert a Symbol value to a number");var ge=ce(He,"number"),Le,fe,Ee,At,ft,ot,ct,It;if(typeof ge=="string"&&ge.length>2){if(ge=he(ge),Le=ge.charCodeAt(0),Le===43||Le===45){if(fe=ge.charCodeAt(2),fe===88||fe===120)return NaN}else if(Le===48){switch(ge.charCodeAt(1)){case 66:case 98:Ee=2,At=49;break;case 79:case 111:Ee=8,At=55;break;default:return+ge}for(ft=ge.slice(2),ot=ft.length,ct=0;ct<ot;ct++)if(It=ft.charCodeAt(ct),It<48||It>At)return NaN;return parseInt(ft,Ee)}}return+ge};if(_(Oe,!Be(" 0o1")||!Be("0b1")||Be("+0x1"))){for(var L=function(ge){var Le=arguments.length<1?0:ge,fe=this;return fe instanceof L&&(X?G(function(){je.valueOf.call(fe)}):I(fe)!=Oe)?Y(new Be(de(Le)),fe,L):de(Le)},rt=z?W(Be):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),De=0,we;rt.length>De;De++)Q(Be,we=rt[De])&&!Q(L,we)&&se(L,we,j(Be,we));L.prototype=je,je.constructor=L,N(S,Oe,L)}},"./node_modules/core-js/modules/es.object.assign.js":function(f,E,h){var z=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/object-assign.js");z({target:"Object",stat:!0,forced:Object.assign!==S},{assign:S})},"./node_modules/core-js/modules/es.object.keys.js":function(f,E,h){var z=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/to-object.js"),_=h("./node_modules/core-js/internals/object-keys.js"),N=h("./node_modules/core-js/internals/fails.js"),Q=N(function(){_(1)});z({target:"Object",stat:!0,forced:Q},{keys:function(Y){return _(S(Y))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(f,E,h){var z=h("./node_modules/core-js/internals/to-string-tag-support.js"),S=h("./node_modules/core-js/internals/redefine.js"),_=h("./node_modules/core-js/internals/object-to-string.js");z||S(Object.prototype,"toString",_,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(f,E,h){"use strict";var z=h("./node_modules/core-js/internals/redefine.js"),S=h("./node_modules/core-js/internals/an-object.js"),_=h("./node_modules/core-js/internals/to-string.js"),N=h("./node_modules/core-js/internals/fails.js"),Q=h("./node_modules/core-js/internals/regexp-flags.js"),I="toString",Y=RegExp.prototype,K=Y[I],ce=N(function(){return K.call({source:"a",flags:"b"})!="/a/b"}),G=K.name!=I;(ce||G)&&z(RegExp.prototype,I,function(){var W=S(this),j=_(W.source),se=W.flags,he=_(se===void 0&&W instanceof RegExp&&!("flags"in Y)?Q.call(W):se);return"/"+j+"/"+he},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(f,E,h){"use strict";var z=h("./node_modules/core-js/internals/string-multibyte.js").charAt,S=h("./node_modules/core-js/internals/to-string.js"),_=h("./node_modules/core-js/internals/internal-state.js"),N=h("./node_modules/core-js/internals/define-iterator.js"),Q="String Iterator",I=_.set,Y=_.getterFor(Q);N(String,"String",function(K){I(this,{type:Q,string:S(K),index:0})},function(){var ce=Y(this),G=ce.string,J=ce.index,W;return J>=G.length?{value:void 0,done:!0}:(W=z(G,J),ce.index+=W.length,{value:W,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(f,E,h){"use strict";var z=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/create-html.js"),_=h("./node_modules/core-js/internals/string-html-forced.js");z({target:"String",proto:!0,forced:_("link")},{link:function(Q){return S(this,"a","href",Q)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(f,E,h){"use strict";var z=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/descriptors.js"),_=h("./node_modules/core-js/internals/global.js"),N=h("./node_modules/core-js/internals/has.js"),Q=h("./node_modules/core-js/internals/is-object.js"),I=h("./node_modules/core-js/internals/object-define-property.js").f,Y=h("./node_modules/core-js/internals/copy-constructor-properties.js"),K=_.Symbol;if(S&&typeof K=="function"&&(!("description"in K.prototype)||K().description!==void 0)){var ce={},G=function(){var Oe=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),Be=this instanceof G?new K(Oe):Oe===void 0?K():K(Oe);return Oe===""&&(ce[Be]=!0),Be};Y(G,K);var J=G.prototype=K.prototype;J.constructor=G;var W=J.toString,j=String(K("test"))=="Symbol(test)",se=/^Symbol\((.*)\)[^)]+$/;I(J,"description",{configurable:!0,get:function(){var Oe=Q(this)?this.valueOf():this,Be=W.call(Oe);if(N(ce,Oe))return"";var je=j?Be.slice(7,-1):Be.replace(se,"$1");return je===""?void 0:je}}),z({global:!0,forced:!0},{Symbol:G})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(f,E,h){var z=h("./node_modules/core-js/internals/define-well-known-symbol.js");z("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(f,E,h){"use strict";var z=h("./node_modules/core-js/internals/export.js"),S=h("./node_modules/core-js/internals/global.js"),_=h("./node_modules/core-js/internals/get-built-in.js"),N=h("./node_modules/core-js/internals/is-pure.js"),Q=h("./node_modules/core-js/internals/descriptors.js"),I=h("./node_modules/core-js/internals/native-symbol.js"),Y=h("./node_modules/core-js/internals/fails.js"),K=h("./node_modules/core-js/internals/has.js"),ce=h("./node_modules/core-js/internals/is-array.js"),G=h("./node_modules/core-js/internals/is-object.js"),J=h("./node_modules/core-js/internals/is-symbol.js"),W=h("./node_modules/core-js/internals/an-object.js"),j=h("./node_modules/core-js/internals/to-object.js"),se=h("./node_modules/core-js/internals/to-indexed-object.js"),he=h("./node_modules/core-js/internals/to-property-key.js"),Oe=h("./node_modules/core-js/internals/to-string.js"),Be=h("./node_modules/core-js/internals/create-property-descriptor.js"),je=h("./node_modules/core-js/internals/object-create.js"),X=h("./node_modules/core-js/internals/object-keys.js"),de=h("./node_modules/core-js/internals/object-get-own-property-names.js"),L=h("./node_modules/core-js/internals/object-get-own-property-names-external.js"),rt=h("./node_modules/core-js/internals/object-get-own-property-symbols.js"),De=h("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),we=h("./node_modules/core-js/internals/object-define-property.js"),He=h("./node_modules/core-js/internals/object-property-is-enumerable.js"),ge=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),Le=h("./node_modules/core-js/internals/redefine.js"),fe=h("./node_modules/core-js/internals/shared.js"),Ee=h("./node_modules/core-js/internals/shared-key.js"),At=h("./node_modules/core-js/internals/hidden-keys.js"),ft=h("./node_modules/core-js/internals/uid.js"),ot=h("./node_modules/core-js/internals/well-known-symbol.js"),ct=h("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),It=h("./node_modules/core-js/internals/define-well-known-symbol.js"),Tt=h("./node_modules/core-js/internals/set-to-string-tag.js"),Ht=h("./node_modules/core-js/internals/internal-state.js"),pr=h("./node_modules/core-js/internals/array-iteration.js").forEach,sr=Ee("hidden"),Br="Symbol",fr="prototype",k=ot("toPrimitive"),nt=Ht.set,P=Ht.getterFor(Br),m=Object[fr],d=S.Symbol,x=_("JSON","stringify"),ee=De.f,Ce=we.f,H=L.f,ne=He.f,Ge=fe("symbols"),xe=fe("op-symbols"),be=fe("string-to-symbol-registry"),qe=fe("symbol-to-string-registry"),Et=fe("wks"),me=S.QObject,pt=!me||!me[fr]||!me[fr].findChild,lt=Q&&Y(function(){return je(Ce({},"a",{get:function(){return Ce(this,"a",{value:7}).a}})).a!=7})?function(Lr,vr,ur){var $r=ee(m,vr);$r&&delete m[vr],Ce(Lr,vr,ur),$r&&Lr!==m&&Ce(m,vr,$r)}:Ce,Me=function(Lr,vr){var ur=Ge[Lr]=je(d[fr]);return nt(ur,{type:Br,tag:Lr,description:vr}),Q||(ur.description=vr),ur},Pe=function(vr,ur,$r){vr===m&&Pe(xe,ur,$r),W(vr);var cn=he(ur);return W($r),K(Ge,cn)?($r.enumerable?(K(vr,sr)&&vr[sr][cn]&&(vr[sr][cn]=!1),$r=je($r,{enumerable:Be(0,!1)})):(K(vr,sr)||Ce(vr,sr,Be(1,{})),vr[sr][cn]=!0),lt(vr,cn,$r)):Ce(vr,cn,$r)},gt=function(vr,ur){W(vr);var $r=se(ur),cn=X($r).concat(mr($r));return pr(cn,function(Sn){(!Q||Ut.call($r,Sn))&&Pe(vr,Sn,$r[Sn])}),vr},zt=function(vr,ur){return ur===void 0?je(vr):gt(je(vr),ur)},Ut=function(vr){var ur=he(vr),$r=ne.call(this,ur);return this===m&&K(Ge,ur)&&!K(xe,ur)?!1:$r||!K(this,ur)||!K(Ge,ur)||K(this,sr)&&this[sr][ur]?$r:!0},ir=function(vr,ur){var $r=se(vr),cn=he(ur);if(!($r===m&&K(Ge,cn)&&!K(xe,cn))){var Sn=ee($r,cn);return Sn&&K(Ge,cn)&&!(K($r,sr)&&$r[sr][cn])&&(Sn.enumerable=!0),Sn}},Dr=function(vr){var ur=H(se(vr)),$r=[];return pr(ur,function(cn){!K(Ge,cn)&&!K(At,cn)&&$r.push(cn)}),$r},mr=function(vr){var ur=vr===m,$r=H(ur?xe:se(vr)),cn=[];return pr($r,function(Sn){K(Ge,Sn)&&(!ur||K(m,Sn))&&cn.push(Ge[Sn])}),cn};if(I||(d=function(){if(this instanceof d)throw TypeError("Symbol is not a constructor");var vr=!arguments.length||arguments[0]===void 0?void 0:Oe(arguments[0]),ur=ft(vr),$r=function(cn){this===m&&$r.call(xe,cn),K(this,sr)&&K(this[sr],ur)&&(this[sr][ur]=!1),lt(this,ur,Be(1,cn))};return Q&&pt&<(m,ur,{configurable:!0,set:$r}),Me(ur,vr)},Le(d[fr],"toString",function(){return P(this).tag}),Le(d,"withoutSetter",function(Lr){return Me(ft(Lr),Lr)}),He.f=Ut,we.f=Pe,De.f=ir,de.f=L.f=Dr,rt.f=mr,ct.f=function(Lr){return Me(ot(Lr),Lr)},Q&&(Ce(d[fr],"description",{configurable:!0,get:function(){return P(this).description}}),N||Le(m,"propertyIsEnumerable",Ut,{unsafe:!0}))),z({global:!0,wrap:!0,forced:!I,sham:!I},{Symbol:d}),pr(X(Et),function(Lr){It(Lr)}),z({target:Br,stat:!0,forced:!I},{for:function(Lr){var vr=Oe(Lr);if(K(be,vr))return be[vr];var ur=d(vr);return be[vr]=ur,qe[ur]=vr,ur},keyFor:function(vr){if(!J(vr))throw TypeError(vr+" is not a symbol");if(K(qe,vr))return qe[vr]},useSetter:function(){pt=!0},useSimple:function(){pt=!1}}),z({target:"Object",stat:!0,forced:!I,sham:!Q},{create:zt,defineProperty:Pe,defineProperties:gt,getOwnPropertyDescriptor:ir}),z({target:"Object",stat:!0,forced:!I},{getOwnPropertyNames:Dr,getOwnPropertySymbols:mr}),z({target:"Object",stat:!0,forced:Y(function(){rt.f(1)})},{getOwnPropertySymbols:function(vr){return rt.f(j(vr))}}),x){var Mr=!I||Y(function(){var Lr=d();return x([Lr])!="[null]"||x({a:Lr})!="{}"||x(Object(Lr))!="{}"});z({target:"JSON",stat:!0,forced:Mr},{stringify:function(vr,ur,$r){for(var cn=[vr],Sn=1,nn;arguments.length>Sn;)cn.push(arguments[Sn++]);if(nn=ur,!(!G(ur)&&vr===void 0||J(vr)))return ce(ur)||(ur=function(Bn,ri){if(typeof nn=="function"&&(ri=nn.call(this,Bn,ri)),!J(ri))return ri}),cn[1]=ur,x.apply(null,cn)}})}d[fr][k]||ge(d[fr],k,d[fr].valueOf),Tt(d,Br),At[sr]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(f,E,h){var z=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/dom-iterables.js"),_=h("./node_modules/core-js/internals/array-for-each.js"),N=h("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var Q in S){var I=z[Q],Y=I&&I.prototype;if(Y&&Y.forEach!==_)try{N(Y,"forEach",_)}catch(K){Y.forEach=_}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(f,E,h){var z=h("./node_modules/core-js/internals/global.js"),S=h("./node_modules/core-js/internals/dom-iterables.js"),_=h("./node_modules/core-js/modules/es.array.iterator.js"),N=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),Q=h("./node_modules/core-js/internals/well-known-symbol.js"),I=Q("iterator"),Y=Q("toStringTag"),K=_.values;for(var ce in S){var G=z[ce],J=G&&G.prototype;if(J){if(J[I]!==K)try{N(J,I,K)}catch(j){J[I]=K}if(J[Y]||N(J,Y,ce),S[ce]){for(var W in _)if(J[W]!==_[W])try{N(J,W,_[W])}catch(j){J[W]=_[W]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(f){(function(E,h){f.exports=h()})(this,function(){"use strict";function E(me){var pt=typeof me;return me!==null&&(pt==="object"||pt==="function")}function h(me){return typeof me=="function"}var z=void 0;Array.isArray?z=Array.isArray:z=function(me){return Object.prototype.toString.call(me)==="[object Array]"};var S=z,_=0,N=void 0,Q=void 0,I=function(pt,lt){X[_]=pt,X[_+1]=lt,_+=2,_===2&&(Q?Q(de):rt())};function Y(me){Q=me}function K(me){I=me}var ce=typeof window!="undefined"?window:void 0,G=ce||{},J=G.MutationObserver||G.WebKitMutationObserver,W=typeof self=="undefined"&&typeof pe!="undefined"&&{}.toString.call(pe)==="[object process]",j=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function se(){return function(){return pe.nextTick(de)}}function he(){return typeof N!="undefined"?function(){N(de)}:je()}function Oe(){var me=0,pt=new J(de),lt=document.createTextNode("");return pt.observe(lt,{characterData:!0}),function(){lt.data=me=++me%2}}function Be(){var me=new MessageChannel;return me.port1.onmessage=de,function(){return me.port2.postMessage(0)}}function je(){var me=setTimeout;return function(){return me(de,1)}}var X=new Array(1e3);function de(){for(var me=0;me<_;me+=2){var pt=X[me],lt=X[me+1];pt(lt),X[me]=void 0,X[me+1]=void 0}_=0}function L(){try{var me=Function("return this")().require("vertx");return N=me.runOnLoop||me.runOnContext,he()}catch(pt){return je()}}var rt=void 0;W?rt=se():J?rt=Oe():j?rt=Be():ce===void 0?rt=L():rt=je();function De(me,pt){var lt=this,Me=new this.constructor(ge);Me[He]===void 0&&x(Me);var Pe=lt._state;if(Pe){var gt=arguments[Pe-1];I(function(){return nt(Pe,Me,gt,lt._result)})}else fr(lt,Me,me,pt);return Me}function we(me){var pt=this;if(me&&typeof me=="object"&&me.constructor===pt)return me;var lt=new pt(ge);return Ht(lt,me),lt}var He=Math.random().toString(36).substring(2);function ge(){}var Le=void 0,fe=1,Ee=2;function At(){return new TypeError("You cannot resolve a promise with itself")}function ft(){return new TypeError("A promises callback cannot return that same promise.")}function ot(me,pt,lt,Me){try{me.call(pt,lt,Me)}catch(Pe){return Pe}}function ct(me,pt,lt){I(function(Me){var Pe=!1,gt=ot(lt,pt,function(zt){Pe||(Pe=!0,pt!==zt?Ht(Me,zt):sr(Me,zt))},function(zt){Pe||(Pe=!0,Br(Me,zt))},"Settle: "+(Me._label||" unknown promise"));!Pe&>&&(Pe=!0,Br(Me,gt))},me)}function It(me,pt){pt._state===fe?sr(me,pt._result):pt._state===Ee?Br(me,pt._result):fr(pt,void 0,function(lt){return Ht(me,lt)},function(lt){return Br(me,lt)})}function Tt(me,pt,lt){pt.constructor===me.constructor&<===De&&pt.constructor.resolve===we?It(me,pt):lt===void 0?sr(me,pt):h(lt)?ct(me,pt,lt):sr(me,pt)}function Ht(me,pt){if(me===pt)Br(me,At());else if(E(pt)){var lt=void 0;try{lt=pt.then}catch(Me){Br(me,Me);return}Tt(me,pt,lt)}else sr(me,pt)}function pr(me){me._onerror&&me._onerror(me._result),k(me)}function sr(me,pt){me._state===Le&&(me._result=pt,me._state=fe,me._subscribers.length!==0&&I(k,me))}function Br(me,pt){me._state===Le&&(me._state=Ee,me._result=pt,I(pr,me))}function fr(me,pt,lt,Me){var Pe=me._subscribers,gt=Pe.length;me._onerror=null,Pe[gt]=pt,Pe[gt+fe]=lt,Pe[gt+Ee]=Me,gt===0&&me._state&&I(k,me)}function k(me){var pt=me._subscribers,lt=me._state;if(pt.length!==0){for(var Me=void 0,Pe=void 0,gt=me._result,zt=0;zt<pt.length;zt+=3)Me=pt[zt],Pe=pt[zt+lt],Me?nt(lt,Me,Pe,gt):Pe(gt);me._subscribers.length=0}}function nt(me,pt,lt,Me){var Pe=h(lt),gt=void 0,zt=void 0,Ut=!0;if(Pe){try{gt=lt(Me)}catch(ir){Ut=!1,zt=ir}if(pt===gt){Br(pt,ft());return}}else gt=Me;pt._state!==Le||(Pe&&Ut?Ht(pt,gt):Ut===!1?Br(pt,zt):me===fe?sr(pt,gt):me===Ee&&Br(pt,gt))}function P(me,pt){try{pt(function(Me){Ht(me,Me)},function(Me){Br(me,Me)})}catch(lt){Br(me,lt)}}var m=0;function d(){return m++}function x(me){me[He]=m++,me._state=void 0,me._result=void 0,me._subscribers=[]}function ee(){return new Error("Array Methods must be provided an Array")}var Ce=function(){function me(pt,lt){this._instanceConstructor=pt,this.promise=new pt(ge),this.promise[He]||x(this.promise),S(lt)?(this.length=lt.length,this._remaining=lt.length,this._result=new Array(this.length),this.length===0?sr(this.promise,this._result):(this.length=this.length||0,this._enumerate(lt),this._remaining===0&&sr(this.promise,this._result))):Br(this.promise,ee())}return me.prototype._enumerate=function(lt){for(var Me=0;this._state===Le&&Me<lt.length;Me++)this._eachEntry(lt[Me],Me)},me.prototype._eachEntry=function(lt,Me){var Pe=this._instanceConstructor,gt=Pe.resolve;if(gt===we){var zt=void 0,Ut=void 0,ir=!1;try{zt=lt.then}catch(mr){ir=!0,Ut=mr}if(zt===De&<._state!==Le)this._settledAt(lt._state,Me,lt._result);else if(typeof zt!="function")this._remaining--,this._result[Me]=lt;else if(Pe===qe){var Dr=new Pe(ge);ir?Br(Dr,Ut):Tt(Dr,lt,zt),this._willSettleAt(Dr,Me)}else this._willSettleAt(new Pe(function(mr){return mr(lt)}),Me)}else this._willSettleAt(gt(lt),Me)},me.prototype._settledAt=function(lt,Me,Pe){var gt=this.promise;gt._state===Le&&(this._remaining--,lt===Ee?Br(gt,Pe):this._result[Me]=Pe),this._remaining===0&&sr(gt,this._result)},me.prototype._willSettleAt=function(lt,Me){var Pe=this;fr(lt,void 0,function(gt){return Pe._settledAt(fe,Me,gt)},function(gt){return Pe._settledAt(Ee,Me,gt)})},me}();function H(me){return new Ce(this,me).promise}function ne(me){var pt=this;return S(me)?new pt(function(lt,Me){for(var Pe=me.length,gt=0;gt<Pe;gt++)pt.resolve(me[gt]).then(lt,Me)}):new pt(function(lt,Me){return Me(new TypeError("You must pass an array to race."))})}function Ge(me){var pt=this,lt=new pt(ge);return Br(lt,me),lt}function xe(){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 qe=function(){function me(pt){this[He]=d(),this._result=this._state=void 0,this._subscribers=[],ge!==pt&&(typeof pt!="function"&&xe(),this instanceof me?P(this,pt):be())}return me.prototype.catch=function(lt){return this.then(null,lt)},me.prototype.finally=function(lt){var Me=this,Pe=Me.constructor;return h(lt)?Me.then(function(gt){return Pe.resolve(lt()).then(function(){return gt})},function(gt){return Pe.resolve(lt()).then(function(){throw gt})}):Me.then(lt,lt)},me}();qe.prototype.then=De,qe.all=H,qe.race=ne,qe.resolve=we,qe.reject=Ge,qe._setScheduler=Y,qe._setAsap=K,qe._asap=I;function Et(){var me=void 0;if(typeof w.g!="undefined")me=w.g;else if(typeof self!="undefined")me=self;else try{me=Function("return this")()}catch(Me){throw new Error("polyfill failed because global object is unavailable in this environment")}var pt=me.Promise;if(pt){var lt=null;try{lt=Object.prototype.toString.call(pt.resolve())}catch(Me){}if(lt==="[object Promise]"&&!pt.cast)return}me.Promise=qe}return qe.polyfill=Et,qe.Promise=qe,qe})},html2canvas:function(f){"use strict";f.exports=R},jspdf:function(f){"use strict";f.exports=ue}},te={};function V(f){var E=te[f];if(E!==void 0)return E.exports;var h=te[f]={exports:{}};return Ne[f].call(h.exports,h,h.exports,V),h.exports}(function(){V.n=function(f){var E=f&&f.__esModule?function(){return f.default}:function(){return f};return V.d(E,{a:E}),E}})(),function(){V.d=function(f,E){for(var h in E)V.o(E,h)&&!V.o(f,h)&&Object.defineProperty(f,h,{enumerable:!0,get:E[h]})}}(),function(){V.o=function(f,E){return Object.prototype.hasOwnProperty.call(f,E)}}(),function(){V.r=function(f){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})}}();var B={};return function(){"use strict";V.r(B);var f=V("./src/worker.js"),E=V("./src/plugin/jspdf-plugin.js"),h=V("./src/plugin/pagebreaks.js"),z=V("./src/plugin/hyperlinks.js"),S=function _(N,Q){var I=new _.Worker(Q);return N?I.from(N).save():I};S.Worker=f.default,B.default=S}(),B=B.default,B}()})},67467:function(bn,Xt){Xt.read=function(w,pe,ue,R,Ne){var te,V,B=Ne*8-R-1,f=(1<<B)-1,E=f>>1,h=-7,z=ue?Ne-1:0,S=ue?-1:1,_=w[pe+z];for(z+=S,te=_&(1<<-h)-1,_>>=-h,h+=B;h>0;te=te*256+w[pe+z],z+=S,h-=8);for(V=te&(1<<-h)-1,te>>=-h,h+=R;h>0;V=V*256+w[pe+z],z+=S,h-=8);if(te===0)te=1-E;else{if(te===f)return V?NaN:(_?-1:1)*(1/0);V=V+Math.pow(2,R),te=te-E}return(_?-1:1)*V*Math.pow(2,te-R)},Xt.write=function(w,pe,ue,R,Ne,te){var V,B,f,E=te*8-Ne-1,h=(1<<E)-1,z=h>>1,S=Ne===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=R?0:te-1,N=R?1:-1,Q=pe<0||pe===0&&1/pe<0?1:0;for(pe=Math.abs(pe),isNaN(pe)||pe===1/0?(B=isNaN(pe)?1:0,V=h):(V=Math.floor(Math.log(pe)/Math.LN2),pe*(f=Math.pow(2,-V))<1&&(V--,f*=2),V+z>=1?pe+=S/f:pe+=S*Math.pow(2,1-z),pe*f>=2&&(V++,f/=2),V+z>=h?(B=0,V=h):V+z>=1?(B=(pe*f-1)*Math.pow(2,Ne),V=V+z):(B=pe*Math.pow(2,z-1)*Math.pow(2,Ne),V=0));Ne>=8;w[ue+_]=B&255,_+=N,B/=256,Ne-=8);for(V=V<<Ne|B,E+=Ne;E>0;w[ue+_]=V&255,_+=N,V/=256,E-=8);w[ue+_-N]|=Q*128}},24334:function(bn,Xt,w){var pe,ue;(function(R,Ne){bn.exports=Ne(R)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof w.g!="undefined"?w.g:this,function(R){"use strict";R=R||{};var Ne=R.Base64,te="2.6.4",V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",B=function(L){for(var rt={},De=0,we=L.length;De<we;De++)rt[L.charAt(De)]=De;return rt}(V),f=String.fromCharCode,E=function(L){if(L.length<2){var rt=L.charCodeAt(0);return rt<128?L:rt<2048?f(192|rt>>>6)+f(128|rt&63):f(224|rt>>>12&15)+f(128|rt>>>6&63)+f(128|rt&63)}else{var rt=65536+(L.charCodeAt(0)-55296)*1024+(L.charCodeAt(1)-56320);return f(240|rt>>>18&7)+f(128|rt>>>12&63)+f(128|rt>>>6&63)+f(128|rt&63)}},h=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,z=function(L){return L.replace(h,E)},S=function(L){var rt=[0,2,1][L.length%3],De=L.charCodeAt(0)<<16|(L.length>1?L.charCodeAt(1):0)<<8|(L.length>2?L.charCodeAt(2):0),we=[V.charAt(De>>>18),V.charAt(De>>>12&63),rt>=2?"=":V.charAt(De>>>6&63),rt>=1?"=":V.charAt(De&63)];return we.join("")},_=R.btoa&&typeof R.btoa=="function"?function(L){return R.btoa(L)}:function(L){if(L.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return L.replace(/[\s\S]{1,3}/g,S)},N=function(L){return _(z(String(L)))},Q=function(L){return L.replace(/[+\/]/g,function(rt){return rt=="+"?"-":"_"}).replace(/=/g,"")},I=function(L,rt){return rt?Q(N(L)):N(L)},Y=function(L){return I(L,!0)},K;R.Uint8Array&&(K=function(L,rt){for(var De="",we=0,He=L.length;we<He;we+=3){var ge=L[we],Le=L[we+1],fe=L[we+2],Ee=ge<<16|Le<<8|fe;De+=V.charAt(Ee>>>18)+V.charAt(Ee>>>12&63)+(typeof Le!="undefined"?V.charAt(Ee>>>6&63):"=")+(typeof fe!="undefined"?V.charAt(Ee&63):"=")}return rt?Q(De):De});var ce=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,G=function(L){switch(L.length){case 4:var rt=(7&L.charCodeAt(0))<<18|(63&L.charCodeAt(1))<<12|(63&L.charCodeAt(2))<<6|63&L.charCodeAt(3),De=rt-65536;return f((De>>>10)+55296)+f((De&1023)+56320);case 3:return f((15&L.charCodeAt(0))<<12|(63&L.charCodeAt(1))<<6|63&L.charCodeAt(2));default:return f((31&L.charCodeAt(0))<<6|63&L.charCodeAt(1))}},J=function(L){return L.replace(ce,G)},W=function(L){var rt=L.length,De=rt%4,we=(rt>0?B[L.charAt(0)]<<18:0)|(rt>1?B[L.charAt(1)]<<12:0)|(rt>2?B[L.charAt(2)]<<6:0)|(rt>3?B[L.charAt(3)]:0),He=[f(we>>>16),f(we>>>8&255),f(we&255)];return He.length-=[0,0,2,1][De],He.join("")},j=R.atob&&typeof R.atob=="function"?function(L){return R.atob(L)}:function(L){return L.replace(/\S{1,4}/g,W)},se=function(L){return j(String(L).replace(/[^A-Za-z0-9\+\/]/g,""))},he=function(L){return J(j(L))},Oe=function(L){return String(L).replace(/[-_]/g,function(rt){return rt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Be=function(L){return he(Oe(L))},je;R.Uint8Array&&(je=function(L){return Uint8Array.from(se(Oe(L)),function(rt){return rt.charCodeAt(0)})});var X=function(){var L=R.Base64;return R.Base64=Ne,L};if(R.Base64={VERSION:te,atob:se,btoa:_,fromBase64:Be,toBase64:I,utob:z,encode:I,encodeURI:Y,btou:J,decode:Be,noConflict:X,fromUint8Array:K,toUint8Array:je},typeof Object.defineProperty=="function"){var de=function(L){return{value:L,enumerable:!1,writable:!0,configurable:!0}};R.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",de(function(){return Be(this)})),Object.defineProperty(String.prototype,"toBase64",de(function(L){return I(this,L)})),Object.defineProperty(String.prototype,"toBase64URI",de(function(){return I(this,!0)}))}}return R.Meteor&&(Base64=R.Base64),bn.exports?bn.exports.Base64=R.Base64:(pe=[],ue=function(){return R.Base64}.apply(Xt,pe),ue!==void 0&&(bn.exports=ue)),{Base64:R.Base64}})},7348:function(bn,Xt,w){"use strict";w.r(Xt),w.d(Xt,{AcroForm:function(){return To},AcroFormAppearance:function(){return Kn},AcroFormButton:function(){return Fo},AcroFormCheckBox:function(){return Oo},AcroFormChoiceField:function(){return Ja},AcroFormComboBox:function(){return Ta},AcroFormEditBox:function(){return ka},AcroFormListBox:function(){return oo},AcroFormPasswordField:function(){return Io},AcroFormPushButton:function(){return Ll},AcroFormRadioButton:function(){return cs},AcroFormTextField:function(){return ks},GState:function(){return Ma},ShadingPattern:function(){return vo},TilingPattern:function(){return ba},default:function(){return Ai},jsPDF:function(){return Ai}});var pe=w(93664),ue={},R=function(c,o,l,b,F){var C=new Worker(ue[o]||(ue[o]=URL.createObjectURL(new Blob([c+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return C.onmessage=function(T){var Z=T.data,ae=Z.$e$;if(ae){var _e=new Error(ae[0]);_e.code=ae[1],_e.stack=ae[2],F(_e,null)}else F(null,Z)},C.postMessage(l,b),C},Ne=Uint8Array,te=Uint16Array,V=Int32Array,B=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]),f=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]),E=new Ne([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),h=function(c,o){for(var l=new te(31),b=0;b<31;++b)l[b]=o+=1<<c[b-1];for(var F=new V(l[30]),b=1;b<30;++b)for(var C=l[b];C<l[b+1];++C)F[C]=C-l[b]<<5|b;return{b:l,r:F}},z=h(B,2),S=z.b,_=z.r;S[28]=258,_[258]=28;for(var N=h(f,0),Q=N.b,I=N.r,Y=new te(32768),K=0;K<32768;++K){var ce=(K&43690)>>1|(K&21845)<<1;ce=(ce&52428)>>2|(ce&13107)<<2,ce=(ce&61680)>>4|(ce&3855)<<4,Y[K]=((ce&65280)>>8|(ce&255)<<8)>>1}for(var G=function(c,o,l){for(var b=c.length,F=0,C=new te(o);F<b;++F)c[F]&&++C[c[F]-1];var T=new te(o);for(F=1;F<o;++F)T[F]=T[F-1]+C[F-1]<<1;var Z;if(l){Z=new te(1<<o);var ae=15-o;for(F=0;F<b;++F)if(c[F])for(var _e=F<<4|c[F],$e=o-c[F],Ze=T[c[F]-1]++<<$e,at=Ze|(1<<$e)-1;Ze<=at;++Ze)Z[Y[Ze]>>ae]=_e}else for(Z=new te(b),F=0;F<b;++F)c[F]&&(Z[F]=Y[T[c[F]-1]++]>>15-c[F]);return Z},J=new Ne(288),K=0;K<144;++K)J[K]=8;for(var K=144;K<256;++K)J[K]=9;for(var K=256;K<280;++K)J[K]=7;for(var K=280;K<288;++K)J[K]=8;for(var W=new Ne(32),K=0;K<32;++K)W[K]=5;var j=G(J,9,0),se=G(J,9,1),he=G(W,5,0),Oe=G(W,5,1),Be=function(c){for(var o=c[0],l=1;l<c.length;++l)c[l]>o&&(o=c[l]);return o},je=function(c,o,l){var b=o/8|0;return(c[b]|c[b+1]<<8)>>(o&7)&l},X=function(c,o){var l=o/8|0;return(c[l]|c[l+1]<<8|c[l+2]<<16)>>(o&7)},de=function(c){return(c+7)/8|0},L=function(c,o,l){return(o==null||o<0)&&(o=0),(l==null||l>c.length)&&(l=c.length),new Ne(c.subarray(o,l))},rt={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},De=["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"],we=function(c,o,l){var b=new Error(o||De[c]);if(b.code=c,Error.captureStackTrace&&Error.captureStackTrace(b,we),!l)throw b;return b},He=function(c,o,l,b){var F=c.length,C=b?b.length:0;if(!F||o.f&&!o.l)return l||new Ne(0);var T=!l,Z=T||o.i!=2,ae=o.i;T&&(l=new Ne(F*3));var _e=function(Ar){var gr=l.length;if(Ar>gr){var _r=new Ne(Math.max(gr*2,Ar));_r.set(l),l=_r}},$e=o.f||0,Ze=o.p||0,at=o.b||0,ye=o.l,kt=o.d,wt=o.m,Dt=o.n,ht=F*8;do{if(!ye){$e=je(c,Ze,1);var Pt=je(c,Ze+1,3);if(Ze+=3,Pt)if(Pt==1)ye=se,kt=Oe,wt=9,Dt=5;else if(Pt==2){var hn=je(c,Ze,31)+257,Ir=je(c,Ze+10,15)+4,Vt=hn+je(c,Ze+5,31)+1;Ze+=14;for(var Pr=new Ne(Vt),Jr=new Ne(19),vt=0;vt<Ir;++vt)Jr[E[vt]]=je(c,Ze+vt*3,7);Ze+=Ir*3;for(var Ct=Be(Jr),rr=(1<<Ct)-1,U=G(Jr,Ct,1),vt=0;vt<Vt;){var re=U[je(c,Ze,rr)];Ze+=re&15;var ar=re>>4;if(ar<16)Pr[vt++]=ar;else{var Se=0,Ue=0;for(ar==16?(Ue=3+je(c,Ze,3),Ze+=2,Se=Pr[vt-1]):ar==17?(Ue=3+je(c,Ze,7),Ze+=3):ar==18&&(Ue=11+je(c,Ze,127),Ze+=7);Ue--;)Pr[vt++]=Se}}var Ke=Pr.subarray(0,hn),Xe=Pr.subarray(hn);wt=Be(Ke),Dt=Be(Xe),ye=G(Ke,wt,1),kt=G(Xe,Dt,1)}else we(1);else{var ar=de(Ze)+4,xr=c[ar-4]|c[ar-3]<<8,Kr=ar+xr;if(Kr>F){ae&&we(0);break}Z&&_e(at+xr),l.set(c.subarray(ar,Kr),at),o.b=at+=xr,o.p=Ze=Kr*8,o.f=$e;continue}if(Ze>ht){ae&&we(0);break}}Z&&_e(at+131072);for(var dt=(1<<wt)-1,St=(1<<Dt)-1,le=Ze;;le=Ze){var Se=ye[X(c,Ze)&dt],Re=Se>>4;if(Ze+=Se&15,Ze>ht){ae&&we(0);break}if(Se||we(2),Re<256)l[at++]=Re;else if(Re==256){le=Ze,ye=null;break}else{var Ye=Re-254;if(Re>264){var vt=Re-257,et=B[vt];Ye=je(c,Ze,(1<<et)-1)+S[vt],Ze+=et}var bt=kt[X(c,Ze)&St],_t=bt>>4;bt||we(3),Ze+=bt&15;var Xe=Q[_t];if(_t>3){var et=f[_t];Xe+=X(c,Ze)&(1<<et)-1,Ze+=et}if(Ze>ht){ae&&we(0);break}Z&&_e(at+131072);var Mt=at+Ye;if(at<Xe){var Rt=C-Xe,lr=Math.min(Xe,Mt);for(Rt+at<0&&we(3);at<lr;++at)l[at]=b[Rt+at]}for(;at<Mt;++at)l[at]=l[at-Xe]}}o.l=ye,o.p=le,o.b=at,o.f=$e,ye&&($e=1,o.m=wt,o.d=kt,o.n=Dt)}while(!$e);return at!=l.length&&T?L(l,0,at):l.subarray(0,at)},ge=function(c,o,l){l<<=o&7;var b=o/8|0;c[b]|=l,c[b+1]|=l>>8},Le=function(c,o,l){l<<=o&7;var b=o/8|0;c[b]|=l,c[b+1]|=l>>8,c[b+2]|=l>>16},fe=function(c,o){for(var l=[],b=0;b<c.length;++b)c[b]&&l.push({s:b,f:c[b]});var F=l.length,C=l.slice();if(!F)return{t:Tt,l:0};if(F==1){var T=new Ne(l[0].s+1);return T[l[0].s]=1,{t:T,l:1}}l.sort(function(Kr,hn){return Kr.f-hn.f}),l.push({s:-1,f:25001});var Z=l[0],ae=l[1],_e=0,$e=1,Ze=2;for(l[0]={s:-1,f:Z.f+ae.f,l:Z,r:ae};$e!=F-1;)Z=l[l[_e].f<l[Ze].f?_e++:Ze++],ae=l[_e!=$e&&l[_e].f<l[Ze].f?_e++:Ze++],l[$e++]={s:-1,f:Z.f+ae.f,l:Z,r:ae};for(var at=C[0].s,b=1;b<F;++b)C[b].s>at&&(at=C[b].s);var ye=new te(at+1),kt=Ee(l[$e-1],ye,0);if(kt>o){var b=0,wt=0,Dt=kt-o,ht=1<<Dt;for(C.sort(function(hn,Ir){return ye[Ir.s]-ye[hn.s]||hn.f-Ir.f});b<F;++b){var Pt=C[b].s;if(ye[Pt]>o)wt+=ht-(1<<kt-ye[Pt]),ye[Pt]=o;else break}for(wt>>=Dt;wt>0;){var ar=C[b].s;ye[ar]<o?wt-=1<<o-ye[ar]++-1:++b}for(;b>=0&&wt;--b){var xr=C[b].s;ye[xr]==o&&(--ye[xr],++wt)}kt=o}return{t:new Ne(ye),l:kt}},Ee=function(c,o,l){return c.s==-1?Math.max(Ee(c.l,o,l+1),Ee(c.r,o,l+1)):o[c.s]=l},At=function(c){for(var o=c.length;o&&!c[--o];);for(var l=new te(++o),b=0,F=c[0],C=1,T=function(ae){l[b++]=ae},Z=1;Z<=o;++Z)if(c[Z]==F&&Z!=o)++C;else{if(!F&&C>2){for(;C>138;C-=138)T(32754);C>2&&(T(C>10?C-11<<5|28690:C-3<<5|12305),C=0)}else if(C>3){for(T(F),--C;C>6;C-=6)T(8304);C>2&&(T(C-3<<5|8208),C=0)}for(;C--;)T(F);C=1,F=c[Z]}return{c:l.subarray(0,b),n:o}},ft=function(c,o){for(var l=0,b=0;b<o.length;++b)l+=c[b]*o[b];return l},ot=function(c,o,l){var b=l.length,F=de(o+2);c[F]=b&255,c[F+1]=b>>8,c[F+2]=c[F]^255,c[F+3]=c[F+1]^255;for(var C=0;C<b;++C)c[F+C+4]=l[C];return(F+4+b)*8},ct=function(c,o,l,b,F,C,T,Z,ae,_e,$e){ge(o,$e++,l),++F[256];for(var Ze=fe(F,15),at=Ze.t,ye=Ze.l,kt=fe(C,15),wt=kt.t,Dt=kt.l,ht=At(at),Pt=ht.c,ar=ht.n,xr=At(wt),Kr=xr.c,hn=xr.n,Ir=new te(19),Vt=0;Vt<Pt.length;++Vt)++Ir[Pt[Vt]&31];for(var Vt=0;Vt<Kr.length;++Vt)++Ir[Kr[Vt]&31];for(var Pr=fe(Ir,7),Jr=Pr.t,vt=Pr.l,Ct=19;Ct>4&&!Jr[E[Ct-1]];--Ct);var rr=_e+5<<3,U=ft(F,J)+ft(C,W)+T,re=ft(F,at)+ft(C,wt)+T+14+3*Ct+ft(Ir,Jr)+2*Ir[16]+3*Ir[17]+7*Ir[18];if(ae>=0&&rr<=U&&rr<=re)return ot(o,$e,c.subarray(ae,ae+_e));var Se,Ue,Ke,Xe;if(ge(o,$e,1+(re<U)),$e+=2,re<U){Se=G(at,ye,0),Ue=at,Ke=G(wt,Dt,0),Xe=wt;var dt=G(Jr,vt,0);ge(o,$e,ar-257),ge(o,$e+5,hn-1),ge(o,$e+10,Ct-4),$e+=14;for(var Vt=0;Vt<Ct;++Vt)ge(o,$e+3*Vt,Jr[E[Vt]]);$e+=3*Ct;for(var St=[Pt,Kr],le=0;le<2;++le)for(var Re=St[le],Vt=0;Vt<Re.length;++Vt){var Ye=Re[Vt]&31;ge(o,$e,dt[Ye]),$e+=Jr[Ye],Ye>15&&(ge(o,$e,Re[Vt]>>5&127),$e+=Re[Vt]>>12)}}else Se=j,Ue=J,Ke=he,Xe=W;for(var Vt=0;Vt<Z;++Vt){var et=b[Vt];if(et>255){var Ye=et>>18&31;Le(o,$e,Se[Ye+257]),$e+=Ue[Ye+257],Ye>7&&(ge(o,$e,et>>23&31),$e+=B[Ye]);var bt=et&31;Le(o,$e,Ke[bt]),$e+=Xe[bt],bt>3&&(Le(o,$e,et>>5&8191),$e+=f[bt])}else Le(o,$e,Se[et]),$e+=Ue[et]}return Le(o,$e,Se[256]),$e+Ue[256]},It=new V([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Tt=new Ne(0),Ht=function(c,o,l,b,F,C){var T=C.z||c.length,Z=new Ne(b+T+5*(1+Math.ceil(T/7e3))+F),ae=Z.subarray(b,Z.length-F),_e=C.l,$e=(C.r||0)&7;if(o){$e&&(ae[0]=C.r>>3);for(var Ze=It[o-1],at=Ze>>13,ye=Ze&8191,kt=(1<<l)-1,wt=C.p||new te(32768),Dt=C.h||new te(kt+1),ht=Math.ceil(l/3),Pt=2*ht,ar=function(dn){return(c[dn]^c[dn+1]<<ht^c[dn+2]<<Pt)&kt},xr=new V(25e3),Kr=new te(288),hn=new te(32),Ir=0,Vt=0,Pr=C.i||0,Jr=0,vt=C.w||0,Ct=0;Pr+2<T;++Pr){var rr=ar(Pr),U=Pr&32767,re=Dt[rr];if(wt[U]=re,Dt[rr]=U,vt<=Pr){var Se=T-Pr;if((Ir>7e3||Jr>24576)&&(Se>423||!_e)){$e=ct(c,ae,0,xr,Kr,hn,Vt,Jr,Ct,Pr-Ct,$e),Jr=Ir=Vt=0,Ct=Pr;for(var Ue=0;Ue<286;++Ue)Kr[Ue]=0;for(var Ue=0;Ue<30;++Ue)hn[Ue]=0}var Ke=2,Xe=0,dt=ye,St=U-re&32767;if(Se>2&&rr==ar(Pr-St))for(var le=Math.min(at,Se)-1,Re=Math.min(32767,Pr),Ye=Math.min(258,Se);St<=Re&&--dt&&U!=re;){if(c[Pr+Ke]==c[Pr+Ke-St]){for(var et=0;et<Ye&&c[Pr+et]==c[Pr+et-St];++et);if(et>Ke){if(Ke=et,Xe=St,et>le)break;for(var bt=Math.min(St,et-2),_t=0,Ue=0;Ue<bt;++Ue){var Mt=Pr-St+Ue&32767,Rt=wt[Mt],lr=Mt-Rt&32767;lr>_t&&(_t=lr,re=Mt)}}}U=re,re=wt[U],St+=U-re&32767}if(Xe){xr[Jr++]=268435456|_[Ke]<<18|I[Xe];var Ar=_[Ke]&31,gr=I[Xe]&31;Vt+=B[Ar]+f[gr],++Kr[257+Ar],++hn[gr],vt=Pr+Ke,++Ir}else xr[Jr++]=c[Pr],++Kr[c[Pr]]}}for(Pr=Math.max(Pr,vt);Pr<T;++Pr)xr[Jr++]=c[Pr],++Kr[c[Pr]];$e=ct(c,ae,_e,xr,Kr,hn,Vt,Jr,Ct,Pr-Ct,$e),_e||(C.r=$e&7|ae[$e/8|0]<<3,$e-=7,C.h=Dt,C.p=wt,C.i=Pr,C.w=vt)}else{for(var Pr=C.w||0;Pr<T+_e;Pr+=65535){var _r=Pr+65535;_r>=T&&(ae[$e/8|0]=_e,_r=T),$e=ot(ae,$e+1,c.subarray(Pr,_r))}C.i=T}return L(Z,0,b+de($e)+F)},pr=null,sr=function(){var c=-1;return{p:function(o){for(var l=c,b=0;b<o.length;++b)l=pr[l&255^o[b]]^l>>>8;c=l},d:function(){return~c}}},Br=function(){var c=1,o=0;return{p:function(l){for(var b=c,F=o,C=l.length|0,T=0;T!=C;){for(var Z=Math.min(T+2655,C);T<Z;++T)F+=b+=l[T];b=(b&65535)+15*(b>>16),F=(F&65535)+15*(F>>16)}c=b,o=F},d:function(){return c%=65521,o%=65521,(c&255)<<24|(c&65280)<<8|(o&255)<<8|o>>8}}},fr=function(c,o,l,b,F){if(!F&&(F={l:1},o.dictionary)){var C=o.dictionary.subarray(-32768),T=new Ne(C.length+c.length);T.set(C),T.set(c,C.length),c=T,F.w=C.length}return Ht(c,o.level==null?6:o.level,o.mem==null?F.l?Math.ceil(Math.max(8,Math.min(13,Math.log(c.length)))*1.5):20:12+o.mem,l,b,F)},k=function(c,o){var l={};for(var b in c)l[b]=c[b];for(var b in o)l[b]=o[b];return l},nt=function(c,o,l){for(var b=c(),F=c.toString(),C=F.slice(F.indexOf("[")+1,F.lastIndexOf("]")).replace(/\s+/g,"").split(","),T=0;T<b.length;++T){var Z=b[T],ae=C[T];if(typeof Z=="function"){o+=";"+ae+"=";var _e=Z.toString();if(Z.prototype)if(_e.indexOf("[native code]")!=-1){var $e=_e.indexOf(" ",8)+1;o+=_e.slice($e,_e.indexOf("(",$e))}else{o+=_e;for(var Ze in Z.prototype)o+=";"+ae+".prototype."+Ze+"="+Z.prototype[Ze].toString()}else o+=_e}else l[ae]=Z}return o},P=null,m=function(c){var o=[];for(var l in c)c[l].buffer&&o.push((c[l]=new c[l].constructor(c[l])).buffer);return o},d=function(c,o,l,b){if(!P[l]){for(var F="",C={},T=c.length-1,Z=0;Z<T;++Z)F=nt(c[Z],F,C);P[l]={c:nt(c[T],F,C),e:C}}var ae=k({},P[l].e);return R(P[l].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+o.toString()+"}",l,ae,m(ae),b)},x=function(){return[Ne,te,V,B,f,E,S,Q,se,Oe,Y,De,G,Be,je,X,de,L,we,He,Bn,xe,be]},ee=function(){return[Ne,te,V,B,f,E,_,I,j,J,he,W,Y,It,Tt,G,ge,Le,fe,Ee,At,ft,ot,ct,de,L,Ht,fr,$r,xe]},Ce=function(){return[gt,ir,Pe,sr,pr]},H=function(){return[zt,Ut]},ne=function(){return[Dr,Pe,Br]},Ge=function(){return[mr]},xe=function(c){return postMessage(c,[c.buffer])},be=function(c){return c&&{out:c.size&&new Ne(c.size),dictionary:c.dictionary}},qe=function(c,o,l,b,F,C){var T=d(l,b,F,function(Z,ae){T.terminate(),C(Z,ae)});return T.postMessage([c,o],o.consume?[c.buffer]:[]),function(){T.terminate()}},Et=function(c){return c.ondata=function(o,l){return postMessage([o,l],[o.buffer])},function(o){o.data.length?(c.push(o.data[0],o.data[1]),postMessage([o.data[0].length])):c.flush()}},me=function(c,o,l,b,F,C,T){var Z,ae=d(c,b,F,function(_e,$e){_e?(ae.terminate(),o.ondata.call(o,_e)):Array.isArray($e)?$e.length==1?(o.queuedSize-=$e[0],o.ondrain&&o.ondrain($e[0])):($e[1]&&ae.terminate(),o.ondata.call(o,_e,$e[0],$e[1])):T($e)});ae.postMessage(l),o.queuedSize=0,o.push=function(_e,$e){o.ondata||we(5),Z&&o.ondata(we(4,0,1),null,!!$e),o.queuedSize+=_e.length,ae.postMessage([_e,Z=$e],[_e.buffer])},o.terminate=function(){ae.terminate()},C&&(o.flush=function(){ae.postMessage([])})},pt=function(c,o){return c[o]|c[o+1]<<8},lt=function(c,o){return(c[o]|c[o+1]<<8|c[o+2]<<16|c[o+3]<<24)>>>0},Me=function(c,o){return lt(c,o)+lt(c,o+4)*4294967296},Pe=function(c,o,l){for(;l;++o)c[o]=l,l>>>=8},gt=function(c,o){var l=o.filename;if(c[0]=31,c[1]=139,c[2]=8,c[8]=o.level<2?4:o.level==9?2:0,c[9]=3,o.mtime!=0&&Pe(c,4,Math.floor(new Date(o.mtime||Date.now())/1e3)),l){c[3]=8;for(var b=0;b<=l.length;++b)c[b+10]=l.charCodeAt(b)}},zt=function(c){(c[0]!=31||c[1]!=139||c[2]!=8)&&we(6,"invalid gzip data");var o=c[3],l=10;o&4&&(l+=(c[10]|c[11]<<8)+2);for(var b=(o>>3&1)+(o>>4&1);b>0;b-=!c[l++]);return l+(o&2)},Ut=function(c){var o=c.length;return(c[o-4]|c[o-3]<<8|c[o-2]<<16|c[o-1]<<24)>>>0},ir=function(c){return 10+(c.filename?c.filename.length+1:0)},Dr=function(c,o){var l=o.level,b=l==0?0:l<6?1:l==9?3:2;if(c[0]=120,c[1]=b<<6|(o.dictionary&&32),c[1]|=31-(c[0]<<8|c[1])%31,o.dictionary){var F=Br();F.p(o.dictionary),Pe(c,2,F.d())}},mr=function(c,o){return((c[0]&15)!=8||c[0]>>4>7||(c[0]<<8|c[1])%31)&&we(6,"invalid zlib data"),(c[1]>>5&1)==+!o&&we(6,"invalid zlib data: "+(c[1]&32?"need":"unexpected")+" dictionary"),(c[1]>>3&4)+2};function Mr(c,o){return typeof c=="function"&&(o=c,c={}),this.ondata=o,c}var Lr=null,vr=null;function ur(c,o,l){return l||(l=o,o={}),typeof l!="function"&&we(7),qe(c,o,[ee],function(b){return xe($r(b.data[0],b.data[1]))},0,l)}function $r(c,o){return fr(c,o||{},0,0)}var cn=null,Sn=null;function nn(c,o,l){return l||(l=o,o={}),typeof l!="function"&&we(7),qe(c,o,[x],function(b){return xe(Bn(b.data[0],be(b.data[1])))},1,l)}function Bn(c,o){return He(c,{i:2},o&&o.out,o&&o.dictionary)}var ri=null,Er=null;function ni(c,o,l){return l||(l=o,o={}),typeof l!="function"&&we(7),qe(c,o,[ee,Ce,function(){return[Li]}],function(b){return xe(Li(b.data[0],b.data[1]))},2,l)}function Li(c,o){o||(o={});var l=sr(),b=c.length;l.p(c);var F=fr(c,o,ir(o),8),C=F.length;return gt(F,o),Pe(F,C-8,l.d()),Pe(F,C-4,b),F}var oi=null,Ti=null;function Ui(c,o,l){return l||(l=o,o={}),typeof l!="function"&&we(7),qe(c,o,[x,H,function(){return[Xi]}],function(b){return xe(Xi(b.data[0],b.data[1]))},3,l)}function Xi(c,o){var l=zt(c);return l+8>c.length&&we(6,"invalid gzip data"),He(c.subarray(l,-8),{i:2},o&&o.out||new Ne(Ut(c)),o&&o.dictionary)}var Ha=null,Ji=null;function pi(c,o,l){return l||(l=o,o={}),typeof l!="function"&&we(7),qe(c,o,[ee,ne,function(){return[ki]}],function(b){return xe(ki(b.data[0],b.data[1]))},4,l)}function ki(c,o){o||(o={});var l=Br();l.p(c);var b=fr(c,o,o.dictionary?6:2,4);return Dr(b,o),Pe(b,b.length-4,l.d()),b}var Ni=null,ve=null;function Te(c,o,l){return l||(l=o,o={}),typeof l!="function"&&we(7),qe(c,o,[x,Ge,function(){return[ke]}],function(b){return xe(ke(b.data[0],be(b.data[1])))},5,l)}function ke(c,o){return He(c.subarray(mr(c,o&&o.dictionary),-4),{i:2},o&&o.out,o&&o.dictionary)}var it=null,$t=null;function Qt(c,o,l){return l||(l=o,o={}),typeof l!="function"&&we(7),c[0]==31&&c[1]==139&&c[2]==8?Ui(c,o,l):(c[0]&15)!=8||c[0]>>4>7||(c[0]<<8|c[1])%31?nn(c,o,l):Te(c,o,l)}function Sr(c,o){return c[0]==31&&c[1]==139&&c[2]==8?Xi(c,o):(c[0]&15)!=8||c[0]>>4>7||(c[0]<<8|c[1])%31?Bn(c,o):ke(c,o)}var dr=function(c,o,l,b){for(var F in c){var C=c[F],T=o+F,Z=b;Array.isArray(C)&&(Z=k(b,C[1]),C=C[0]),C instanceof Ne?l[T]=[C,Z]:(l[T+="/"]=[new Ne(0),Z],dr(C,T,l,b))}},Hr=typeof TextEncoder!="undefined"&&new TextEncoder,Wr=typeof TextDecoder!="undefined"&&new TextDecoder,en=0;try{Wr.decode(Tt,{stream:!0}),en=1}catch(c){}var Vr=function(c){for(var o="",l=0;;){var b=c[l++],F=(b>127)+(b>223)+(b>239);if(l+F>c.length)return{s:o,r:L(c,l-1)};F?F==3?(b=((b&15)<<18|(c[l++]&63)<<12|(c[l++]&63)<<6|c[l++]&63)-65536,o+=String.fromCharCode(55296|b>>10,56320|b&1023)):F&1?o+=String.fromCharCode((b&31)<<6|c[l++]&63):o+=String.fromCharCode((b&15)<<12|(c[l++]&63)<<6|c[l++]&63):o+=String.fromCharCode(b)}},jr=null,Yr=null;function mn(c,o){if(o){for(var l=new Ne(c.length),b=0;b<c.length;++b)l[b]=c.charCodeAt(b);return l}if(Hr)return Hr.encode(c);for(var F=c.length,C=new Ne(c.length+(c.length>>1)),T=0,Z=function($e){C[T++]=$e},b=0;b<F;++b){if(T+5>C.length){var ae=new Ne(T+8+(F-b<<1));ae.set(C),C=ae}var _e=c.charCodeAt(b);_e<128||o?Z(_e):_e<2048?(Z(192|_e>>6),Z(128|_e&63)):_e>55295&&_e<57344?(_e=65536+(_e&1047552)|c.charCodeAt(++b)&1023,Z(240|_e>>18),Z(128|_e>>12&63),Z(128|_e>>6&63),Z(128|_e&63)):(Z(224|_e>>12),Z(128|_e>>6&63),Z(128|_e&63))}return L(C,0,T)}function tn(c,o){if(o){for(var l="",b=0;b<c.length;b+=16384)l+=String.fromCharCode.apply(null,c.subarray(b,b+16384));return l}else{if(Wr)return Wr.decode(c);var F=Vr(c),C=F.s,l=F.r;return l.length&&we(8),C}}var Dn=function(c){return c==1?3:c<6?2:c==9?1:0},Qn=function(c,o){return o+30+pt(c,o+26)+pt(c,o+28)},ui=function(c,o,l){var b=pt(c,o+28),F=tn(c.subarray(o+46,o+46+b),!(pt(c,o+8)&2048)),C=o+46+b,T=lt(c,o+20),Z=l&&T==4294967295?Tn(c,C):[T,lt(c,o+24),lt(c,o+42)],ae=Z[0],_e=Z[1],$e=Z[2];return[pt(c,o+10),ae,_e,F,C+pt(c,o+30)+pt(c,o+32),$e]},Tn=function(c,o){for(;pt(c,o)!=1;o+=4+pt(c,o+2));return[Me(c,o+12),Me(c,o+4),Me(c,o+20)]},sn=function(c){var o=0;if(c)for(var l in c){var b=c[l].length;b>65535&&we(9),o+=b+4}return o},Kt=function(c,o,l,b,F,C,T,Z){var ae=b.length,_e=l.extra,$e=Z&&Z.length,Ze=sn(_e);Pe(c,o,T!=null?33639248:67324752),o+=4,T!=null&&(c[o++]=20,c[o++]=l.os),c[o]=20,o+=2,c[o++]=l.flag<<1|(C<0&&8),c[o++]=F&&8,c[o++]=l.compression&255,c[o++]=l.compression>>8;var at=new Date(l.mtime==null?Date.now():l.mtime),ye=at.getFullYear()-1980;if((ye<0||ye>119)&&we(10),Pe(c,o,ye<<25|at.getMonth()+1<<21|at.getDate()<<16|at.getHours()<<11|at.getMinutes()<<5|at.getSeconds()>>1),o+=4,C!=-1&&(Pe(c,o,l.crc),Pe(c,o+4,C<0?-C-2:C),Pe(c,o+8,l.size)),Pe(c,o+12,ae),Pe(c,o+14,Ze),o+=16,T!=null&&(Pe(c,o,$e),Pe(c,o+6,l.attrs),Pe(c,o+10,T),o+=14),c.set(b,o),o+=ae,Ze)for(var kt in _e){var wt=_e[kt],Dt=wt.length;Pe(c,o,+kt),Pe(c,o+2,Dt),c.set(wt,o+4),o+=4+Dt}return $e&&(c.set(Z,o),o+=$e),o},Zt=function(c,o,l,b,F){Pe(c,o,101010256),Pe(c,o+8,l),Pe(c,o+10,l),Pe(c,o+12,b),Pe(c,o+16,F)},qt=null,er=null,Jt=null,Qr=null;function kr(c,o,l){l||(l=o,o={}),typeof l!="function"&&we(7);var b={};dr(c,"",b,o);var F=Object.keys(b),C=F.length,T=0,Z=0,ae=C,_e=new Array(C),$e=[],Ze=function(){for(var Dt=0;Dt<$e.length;++Dt)$e[Dt]()},at=function(Dt,ht){bi(function(){l(Dt,ht)})};bi(function(){at=l});var ye=function(){var Dt=new Ne(Z+22),ht=T,Pt=Z-T;Z=0;for(var ar=0;ar<ae;++ar){var xr=_e[ar];try{var Kr=xr.c.length;Kt(Dt,Z,xr,xr.f,xr.u,Kr);var hn=30+xr.f.length+sn(xr.extra),Ir=Z+hn;Dt.set(xr.c,Ir),Kt(Dt,T,xr,xr.f,xr.u,Kr,Z,xr.m),T+=16+hn+(xr.m?xr.m.length:0),Z=Ir+Kr}catch(Vt){return at(Vt,null)}}Zt(Dt,T,_e.length,Pt,ht),at(null,Dt)};C||ye();for(var kt=function(Dt){var ht=F[Dt],Pt=b[ht],ar=Pt[0],xr=Pt[1],Kr=sr(),hn=ar.length;Kr.p(ar);var Ir=mn(ht),Vt=Ir.length,Pr=xr.comment,Jr=Pr&&mn(Pr),vt=Jr&&Jr.length,Ct=sn(xr.extra),rr=xr.level==0?0:8,U=function(re,Se){if(re)Ze(),at(re,null);else{var Ue=Se.length;_e[Dt]=k(xr,{size:hn,crc:Kr.d(),c:Se,f:Ir,m:Jr,u:Vt!=ht.length||Jr&&Pr.length!=vt,compression:rr}),T+=30+Vt+Ct+Ue,Z+=76+2*(Vt+Ct)+(vt||0)+Ue,--C||ye()}};if(Vt>65535&&U(we(11,0,1),null),!rr)U(null,ar);else if(hn<16e4)try{U(null,$r(ar,xr))}catch(re){U(re,null)}else $e.push(ur(ar,xr,U))},wt=0;wt<ae;++wt)kt(wt);return Ze}function Gr(c,o){o||(o={});var l={},b=[];dr(c,"",l,o);var F=0,C=0;for(var T in l){var Z=l[T],ae=Z[0],_e=Z[1],$e=_e.level==0?0:8,Ze=mn(T),at=Ze.length,ye=_e.comment,kt=ye&&mn(ye),wt=kt&&kt.length,Dt=sn(_e.extra);at>65535&&we(11);var ht=$e?$r(ae,_e):ae,Pt=ht.length,ar=sr();ar.p(ae),b.push(k(_e,{size:ae.length,crc:ar.d(),c:ht,f:Ze,m:kt,u:at!=T.length||kt&&ye.length!=wt,o:F,compression:$e})),F+=30+at+Dt+Pt,C+=76+2*(at+Dt)+(wt||0)+Pt}for(var xr=new Ne(C+22),Kr=F,hn=C-F,Ir=0;Ir<b.length;++Ir){var Ze=b[Ir];Kt(xr,Ze.o,Ze,Ze.f,Ze.u,Ze.c.length);var Vt=30+Ze.f.length+sn(Ze.extra);xr.set(Ze.c,Ze.o+Vt),Kt(xr,F,Ze,Ze.f,Ze.u,Ze.c.length,Ze.o,Ze.m),F+=16+Vt+(Ze.m?Ze.m.length:0)}return Zt(xr,F,b.length,hn,Kr),xr}var Mn=null,Pn=null,si=null,qn=null,bi=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(c){c()};function Jn(c,o,l){l||(l=o,o={}),typeof l!="function"&&we(7);var b=[],F=function(){for(var Dt=0;Dt<b.length;++Dt)b[Dt]()},C={},T=function(Dt,ht){bi(function(){l(Dt,ht)})};bi(function(){T=l});for(var Z=c.length-22;lt(c,Z)!=101010256;--Z)if(!Z||c.length-Z>65558)return T(we(13,0,1),null),F;var ae=pt(c,Z+8);if(ae){var _e=ae,$e=lt(c,Z+16),Ze=$e==4294967295||_e==65535;if(Ze){var at=lt(c,Z-12);Ze=lt(c,at)==101075792,Ze&&(_e=ae=lt(c,at+32),$e=lt(c,at+48))}for(var ye=o&&o.filter,kt=function(Dt){var ht=ui(c,$e,Ze),Pt=ht[0],ar=ht[1],xr=ht[2],Kr=ht[3],hn=ht[4],Ir=ht[5],Vt=Qn(c,Ir);$e=hn;var Pr=function(vt,Ct){vt?(F(),T(vt,null)):(Ct&&(C[Kr]=Ct),--ae||T(null,C))};if(!ye||ye({name:Kr,size:ar,originalSize:xr,compression:Pt}))if(!Pt)Pr(null,L(c,Vt,Vt+ar));else if(Pt==8){var Jr=c.subarray(Vt,Vt+ar);if(xr<524288||ar>.8*xr)try{Pr(null,Bn(Jr,{out:new Ne(xr)}))}catch(vt){Pr(vt,null)}else b.push(nn(Jr,{size:xr},Pr))}else Pr(we(14,"unknown compression type "+Pt,1),null);else Pr(null,null)},wt=0;wt<_e;++wt)kt(wt)}else T(null,{});return F}function Hn(c,o){for(var l={},b=c.length-22;lt(c,b)!=101010256;--b)(!b||c.length-b>65558)&&we(13);var F=pt(c,b+8);if(!F)return{};var C=lt(c,b+16),T=C==4294967295||F==65535;if(T){var Z=lt(c,b-12);T=lt(c,Z)==101075792,T&&(F=lt(c,Z+32),C=lt(c,Z+48))}for(var ae=o&&o.filter,_e=0;_e<F;++_e){var $e=ui(c,C,T),Ze=$e[0],at=$e[1],ye=$e[2],kt=$e[3],wt=$e[4],Dt=$e[5],ht=Qn(c,Dt);C=wt,(!ae||ae({name:kt,size:at,originalSize:ye,compression:Ze}))&&(Ze?Ze==8?l[kt]=Bn(c.subarray(ht,ht+at),{out:new Ne(ye)}):we(14,"unknown compression type "+Ze):l[kt]=L(c,ht,ht+at))}return l}var on=function(){return typeof window!="undefined"?window:typeof w.g!="undefined"?w.g:typeof self!="undefined"?self:this}();function mi(){on.console&&typeof on.console.log=="function"&&on.console.log.apply(on.console,arguments)}var Ln={log:mi,warn:function(c){on.console&&(typeof on.console.warn=="function"?on.console.warn.apply(on.console,arguments):mi.call(null,arguments))},error:function(c){on.console&&(typeof on.console.error=="function"?on.console.error.apply(on.console,arguments):mi(c))}};function ei(c,o,l){var b=new XMLHttpRequest;b.open("GET",c),b.responseType="blob",b.onload=function(){ra(b.response,o,l)},b.onerror=function(){Ln.error("could not download file")},b.send()}function vi(c){var o=new XMLHttpRequest;o.open("HEAD",c,!1);try{o.send()}catch(l){}return o.status>=200&&o.status<=299}function Ei(c){try{c.dispatchEvent(new MouseEvent("click"))}catch(l){var o=document.createEvent("MouseEvents");o.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(o)}}var Xn,Bi,ra=on.saveAs||((typeof window=="undefined"?"undefined":(0,pe.Z)(window))!=="object"||window!==on?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(c,o,l){var b=on.URL||on.webkitURL,F=document.createElement("a");o=o||c.name||"download",F.download=o,F.rel="noopener",typeof c=="string"?(F.href=c,F.origin!==location.origin?vi(F.href)?ei(c,o,l):Ei(F,F.target="_blank"):Ei(F)):(F.href=b.createObjectURL(c),setTimeout(function(){b.revokeObjectURL(F.href)},4e4),setTimeout(function(){Ei(F)},0))}:"msSaveOrOpenBlob"in navigator?function(c,o,l){if(o=o||c.name||"download",typeof c=="string")if(vi(c))ei(c,o,l);else{var b=document.createElement("a");b.href=c,b.target="_blank",setTimeout(function(){Ei(b)})}else navigator.msSaveOrOpenBlob(function(F,C){return C===void 0?C={autoBom:!1}:(0,pe.Z)(C)!=="object"&&(Ln.warn("Deprecated: Expected third argument to be a object"),C={autoBom:!C}),C.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(F.type)?new Blob(["\uFEFF",F],{type:F.type}):F}(c,l),o)}:function(c,o,l,b){if((b=b||open("","_blank"))&&(b.document.title=b.document.body.innerText="downloading..."),typeof c=="string")return ei(c,o,l);var F=c.type==="application/octet-stream",C=/constructor/i.test(on.HTMLElement)||on.safari,T=/CriOS\/[\d]+/.test(navigator.userAgent);if((T||F&&C)&&(typeof FileReader=="undefined"?"undefined":(0,pe.Z)(FileReader))==="object"){var Z=new FileReader;Z.onloadend=function(){var $e=Z.result;$e=T?$e:$e.replace(/^data:[^;]*;/,"data:attachment/file;"),b?b.location.href=$e:location=$e,b=null},Z.readAsDataURL(c)}else{var ae=on.URL||on.webkitURL,_e=ae.createObjectURL(c);b?b.location=_e:location.href=_e,b=null,setTimeout(function(){ae.revokeObjectURL(_e)},4e4)}});function ii(c){var o;c=c||"",this.ok=!1,c.charAt(0)=="#"&&(c=c.substr(1,6)),c={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[c=(c=c.replace(/ /g,"")).toLowerCase()]||c;for(var l=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(Z){return[parseInt(Z[1]),parseInt(Z[2]),parseInt(Z[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(Z){return[parseInt(Z[1],16),parseInt(Z[2],16),parseInt(Z[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(Z){return[parseInt(Z[1]+Z[1],16),parseInt(Z[2]+Z[2],16),parseInt(Z[3]+Z[3],16)]}}],b=0;b<l.length;b++){var F=l[b].re,C=l[b].process,T=F.exec(c);T&&(o=C(T),this.r=o[0],this.g=o[1],this.b=o[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var Z=this.r.toString(16),ae=this.g.toString(16),_e=this.b.toString(16);return Z.length==1&&(Z="0"+Z),ae.length==1&&(ae="0"+ae),_e.length==1&&(_e="0"+_e),"#"+Z+ae+_e}}function An(c,o){var l=c[0],b=c[1],F=c[2],C=c[3];l=Un(l,b,F,C,o[0],7,-680876936),C=Un(C,l,b,F,o[1],12,-389564586),F=Un(F,C,l,b,o[2],17,606105819),b=Un(b,F,C,l,o[3],22,-1044525330),l=Un(l,b,F,C,o[4],7,-176418897),C=Un(C,l,b,F,o[5],12,1200080426),F=Un(F,C,l,b,o[6],17,-1473231341),b=Un(b,F,C,l,o[7],22,-45705983),l=Un(l,b,F,C,o[8],7,1770035416),C=Un(C,l,b,F,o[9],12,-1958414417),F=Un(F,C,l,b,o[10],17,-42063),b=Un(b,F,C,l,o[11],22,-1990404162),l=Un(l,b,F,C,o[12],7,1804603682),C=Un(C,l,b,F,o[13],12,-40341101),F=Un(F,C,l,b,o[14],17,-1502002290),l=xn(l,b=Un(b,F,C,l,o[15],22,1236535329),F,C,o[1],5,-165796510),C=xn(C,l,b,F,o[6],9,-1069501632),F=xn(F,C,l,b,o[11],14,643717713),b=xn(b,F,C,l,o[0],20,-373897302),l=xn(l,b,F,C,o[5],5,-701558691),C=xn(C,l,b,F,o[10],9,38016083),F=xn(F,C,l,b,o[15],14,-660478335),b=xn(b,F,C,l,o[4],20,-405537848),l=xn(l,b,F,C,o[9],5,568446438),C=xn(C,l,b,F,o[14],9,-1019803690),F=xn(F,C,l,b,o[3],14,-187363961),b=xn(b,F,C,l,o[8],20,1163531501),l=xn(l,b,F,C,o[13],5,-1444681467),C=xn(C,l,b,F,o[2],9,-51403784),F=xn(F,C,l,b,o[7],14,1735328473),l=jn(l,b=xn(b,F,C,l,o[12],20,-1926607734),F,C,o[5],4,-378558),C=jn(C,l,b,F,o[8],11,-2022574463),F=jn(F,C,l,b,o[11],16,1839030562),b=jn(b,F,C,l,o[14],23,-35309556),l=jn(l,b,F,C,o[1],4,-1530992060),C=jn(C,l,b,F,o[4],11,1272893353),F=jn(F,C,l,b,o[7],16,-155497632),b=jn(b,F,C,l,o[10],23,-1094730640),l=jn(l,b,F,C,o[13],4,681279174),C=jn(C,l,b,F,o[0],11,-358537222),F=jn(F,C,l,b,o[3],16,-722521979),b=jn(b,F,C,l,o[6],23,76029189),l=jn(l,b,F,C,o[9],4,-640364487),C=jn(C,l,b,F,o[12],11,-421815835),F=jn(F,C,l,b,o[15],16,530742520),l=ci(l,b=jn(b,F,C,l,o[2],23,-995338651),F,C,o[0],6,-198630844),C=ci(C,l,b,F,o[7],10,1126891415),F=ci(F,C,l,b,o[14],15,-1416354905),b=ci(b,F,C,l,o[5],21,-57434055),l=ci(l,b,F,C,o[12],6,1700485571),C=ci(C,l,b,F,o[3],10,-1894986606),F=ci(F,C,l,b,o[10],15,-1051523),b=ci(b,F,C,l,o[1],21,-2054922799),l=ci(l,b,F,C,o[8],6,1873313359),C=ci(C,l,b,F,o[15],10,-30611744),F=ci(F,C,l,b,o[6],15,-1560198380),b=ci(b,F,C,l,o[13],21,1309151649),l=ci(l,b,F,C,o[4],6,-145523070),C=ci(C,l,b,F,o[11],10,-1120210379),F=ci(F,C,l,b,o[2],15,718787259),b=ci(b,F,C,l,o[9],21,-343485551),c[0]=xi(l,c[0]),c[1]=xi(b,c[1]),c[2]=xi(F,c[2]),c[3]=xi(C,c[3])}function rn(c,o,l,b,F,C){return o=xi(xi(o,c),xi(b,C)),xi(o<<F|o>>>32-F,l)}function Un(c,o,l,b,F,C,T){return rn(o&l|~o&b,c,o,F,C,T)}function xn(c,o,l,b,F,C,T){return rn(o&b|l&~b,c,o,F,C,T)}function jn(c,o,l,b,F,C,T){return rn(o^l^b,c,o,F,C,T)}function ci(c,o,l,b,F,C,T){return rn(l^(o|~b),c,o,F,C,T)}function wi(c){var o,l=c.length,b=[1732584193,-271733879,-1732584194,271733878];for(o=64;o<=c.length;o+=64)An(b,Aa(c.substring(o-64,o)));c=c.substring(o-64);var F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(o=0;o<c.length;o++)F[o>>2]|=c.charCodeAt(o)<<(o%4<<3);if(F[o>>2]|=128<<(o%4<<3),o>55)for(An(b,F),o=0;o<16;o++)F[o]=0;return F[14]=8*l,An(b,F),b}function Aa(c){var o,l=[];for(o=0;o<64;o+=4)l[o>>2]=c.charCodeAt(o)+(c.charCodeAt(o+1)<<8)+(c.charCodeAt(o+2)<<16)+(c.charCodeAt(o+3)<<24);return l}Xn=on.atob.bind(on),Bi=on.btoa.bind(on);var Yi="0123456789abcdef".split("");function ao(c){for(var o="",l=0;l<4;l++)o+=Yi[c>>8*l+4&15]+Yi[c>>8*l&15];return o}function Yn(c){return String.fromCharCode((255&c)>>0,(65280&c)>>8,(16711680&c)>>16,(4278190080&c)>>24)}function Nn(c){return wi(c).map(Yn).join("")}var _i=function(c){for(var o=0;o<c.length;o++)c[o]=ao(c[o]);return c.join("")}(wi("hello"))!="5d41402abc4b2a76b9719d911017c592";function xi(c,o){if(_i){var l=(65535&c)+(65535&o);return(c>>16)+(o>>16)+(l>>16)<<16|65535&l}return c+o&4294967295}function ha(c,o){var l,b,F,C;if(c!==l){for(var T=(F=c,C=1+(256/c.length>>0),new Array(C+1).join(F)),Z=[],ae=0;ae<256;ae++)Z[ae]=ae;var _e=0;for(ae=0;ae<256;ae++){var $e=Z[ae];_e=(_e+$e+T.charCodeAt(ae))%256,Z[ae]=Z[_e],Z[_e]=$e}l=c,b=Z}else Z=b;var Ze=o.length,at=0,ye=0,kt="";for(ae=0;ae<Ze;ae++)ye=(ye+($e=Z[at=(at+1)%256]))%256,Z[at]=Z[ye],Z[ye]=$e,T=Z[(Z[at]+Z[ye])%256],kt+=String.fromCharCode(o.charCodeAt(ae)^T);return kt}var No={print:4,modify:8,copy:16,"annot-forms":32};function na(c,o,l,b){this.v=1,this.r=2;var F=192;c.forEach(function(Z){if(No.perm!==void 0)throw new Error("Invalid permission: "+Z);F+=No[Z]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var C=(o+this.padding).substr(0,32),T=(l+this.padding).substr(0,32);this.O=this.processOwnerPassword(C,T),this.P=-(1+(255^F)),this.encryptionKey=Nn(C+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(b)).substr(0,5),this.U=ha(this.encryptionKey,this.padding)}function $i(c){if(/[^\u0000-\u00ff]/.test(c))throw new Error("Invalid PDF Name Object: "+c+", Only accept ASCII characters.");for(var o="",l=c.length,b=0;b<l;b++){var F=c.charCodeAt(b);F<33||F===35||F===37||F===40||F===41||F===47||F===60||F===62||F===91||F===93||F===123||F===125||F>126?o+="#"+("0"+F.toString(16)).slice(-2):o+=c[b]}return o}function ja(c){if((0,pe.Z)(c)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var o={};this.subscribe=function(l,b,F){if(F=F||!1,typeof l!="string"||typeof b!="function"||typeof F!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");o.hasOwnProperty(l)||(o[l]={});var C=Math.random().toString(35);return o[l][C]=[b,!!F],C},this.unsubscribe=function(l){for(var b in o)if(o[b][l])return delete o[b][l],Object.keys(o[b]).length===0&&delete o[b],!0;return!1},this.publish=function(l){if(o.hasOwnProperty(l)){var b=Array.prototype.slice.call(arguments,1),F=[];for(var C in o[l]){var T=o[l][C];try{T[0].apply(c,b)}catch(Z){on.console&&Ln.error("jsPDF PubSub Error",Z.message,Z)}T[1]&&F.push(C)}F.length&&F.forEach(this.unsubscribe)}},this.getTopics=function(){return o}}function Ma(c){if(!(this instanceof Ma))return new Ma(c);var o="opacity,stroke-opacity".split(",");for(var l in c)c.hasOwnProperty(l)&&o.indexOf(l)>=0&&(this[l]=c[l]);this.id="",this.objectNumber=-1}function eo(c,o){this.gState=c,this.matrix=o,this.id="",this.objectNumber=-1}function vo(c,o,l,b,F){if(!(this instanceof vo))return new vo(c,o,l,b,F);this.type=c==="axial"?2:3,this.coords=o,this.colors=l,eo.call(this,b,F)}function ba(c,o,l,b,F){if(!(this instanceof ba))return new ba(c,o,l,b,F);this.boundingBox=c,this.xStep=o,this.yStep=l,this.stream="",this.cloneIndex=0,eo.call(this,b,F)}function Ai(c){var o,l=typeof arguments[0]=="string"?arguments[0]:"p",b=arguments[1],F=arguments[2],C=arguments[3],T=[],Z=1,ae=16,_e="S",$e=null;(0,pe.Z)(c=c||{})==="object"&&(l=c.orientation,b=c.unit||b,F=c.format||F,C=c.compress||c.compressPdf||C,($e=c.encryption||null)!==null&&($e.userPassword=$e.userPassword||"",$e.ownerPassword=$e.ownerPassword||"",$e.userPermissions=$e.userPermissions||[]),Z=typeof c.userUnit=="number"?Math.abs(c.userUnit):1,c.precision!==void 0&&(o=c.precision),c.floatPrecision!==void 0&&(ae=c.floatPrecision),_e=c.defaultPathOperation||"S"),T=c.filters||(C===!0?["FlateEncode"]:T),b=b||"mm",l=(""+(l||"P")).toLowerCase();var Ze=c.putOnlyUsedFonts||!1,at={},ye={internal:{},__private__:{}};ye.__private__.PubSub=ja;var kt="1.3",wt=ye.__private__.getPdfVersion=function(){return kt};ye.__private__.setPdfVersion=function(D){kt=D};var Dt={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]};ye.__private__.getPageFormats=function(){return Dt};var ht=ye.__private__.getPageFormat=function(D){return Dt[D]};F=F||"a4";var Pt={COMPAT:"compat",ADVANCED:"advanced"},ar=Pt.COMPAT;function xr(){this.saveGraphicsState(),yt(new Ii(vn,0,0,-vn,0,Rc()*vn).toString()+" cm"),this.setFontSize(this.getFontSize()/vn),_e="n",ar=Pt.ADVANCED}function Kr(){this.restoreGraphicsState(),_e="S",ar=Pt.COMPAT}var hn=ye.__private__.combineFontStyleAndFontWeight=function(D,We){if(D=="bold"&&We=="normal"||D=="bold"&&We==400||D=="normal"&&We=="italic"||D=="bold"&&We=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return We&&(D=We==400||We==="normal"?D==="italic"?"italic":"normal":We!=700&&We!=="bold"||D!=="normal"?(We==700?"bold":We)+""+D:"bold"),D};ye.advancedAPI=function(D){var We=ar===Pt.COMPAT;return We&&xr.call(this),typeof D!="function"||(D(this),We&&Kr.call(this)),this},ye.compatAPI=function(D){var We=ar===Pt.ADVANCED;return We&&Kr.call(this),typeof D!="function"||(D(this),We&&xr.call(this)),this},ye.isAdvancedAPI=function(){return ar===Pt.ADVANCED};var Ir,Vt=function(D){if(ar!==Pt.ADVANCED)throw new Error(D+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Pr=ye.roundToPrecision=ye.__private__.roundToPrecision=function(D,We){var Lt=o||We;if(isNaN(D)||isNaN(Lt))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return D.toFixed(Lt).replace(/0+$/,"")};Ir=ye.hpf=ye.__private__.hpf=typeof ae=="number"?function(D){if(isNaN(D))throw new Error("Invalid argument passed to jsPDF.hpf");return Pr(D,ae)}:ae==="smart"?function(D){if(isNaN(D))throw new Error("Invalid argument passed to jsPDF.hpf");return Pr(D,D>-1&&D<1?16:5)}:function(D){if(isNaN(D))throw new Error("Invalid argument passed to jsPDF.hpf");return Pr(D,16)};var Jr=ye.f2=ye.__private__.f2=function(D){if(isNaN(D))throw new Error("Invalid argument passed to jsPDF.f2");return Pr(D,2)},vt=ye.__private__.f3=function(D){if(isNaN(D))throw new Error("Invalid argument passed to jsPDF.f3");return Pr(D,3)},Ct=ye.scale=ye.__private__.scale=function(D){if(isNaN(D))throw new Error("Invalid argument passed to jsPDF.scale");return ar===Pt.COMPAT?D*vn:ar===Pt.ADVANCED?D:void 0},rr=function(D){return ar===Pt.COMPAT?Rc()-D:ar===Pt.ADVANCED?D:void 0},U=function(D){return Ct(rr(D))};ye.__private__.setPrecision=ye.setPrecision=function(D){typeof parseInt(D,10)=="number"&&(o=parseInt(D,10))};var re,Se="00000000000000000000000000000000",Ue=ye.__private__.getFileId=function(){return Se},Ke=ye.__private__.setFileId=function(D){return Se=D!==void 0&&/^[a-fA-F0-9]{32}$/.test(D)?D.toUpperCase():Se.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),$e!==null&&(Fs=new na($e.userPermissions,$e.userPassword,$e.ownerPassword,Se)),Se};ye.setFileId=function(D){return Ke(D),this},ye.getFileId=function(){return Ue()};var Xe=ye.__private__.convertDateToPDFDate=function(D){var We=D.getTimezoneOffset(),Lt=We<0?"+":"-",Yt=Math.floor(Math.abs(We/60)),br=Math.abs(We%60),Xr=[Lt,Ye(Yt),"'",Ye(br),"'"].join("");return["D:",D.getFullYear(),Ye(D.getMonth()+1),Ye(D.getDate()),Ye(D.getHours()),Ye(D.getMinutes()),Ye(D.getSeconds()),Xr].join("")},dt=ye.__private__.convertPDFDateToDate=function(D){var We=parseInt(D.substr(2,4),10),Lt=parseInt(D.substr(6,2),10)-1,Yt=parseInt(D.substr(8,2),10),br=parseInt(D.substr(10,2),10),Xr=parseInt(D.substr(12,2),10),_n=parseInt(D.substr(14,2),10);return new Date(We,Lt,Yt,br,Xr,_n,0)},St=ye.__private__.setCreationDate=function(D){var We;if(D===void 0&&(D=new Date),D instanceof Date)We=Xe(D);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(D))throw new Error("Invalid argument passed to jsPDF.setCreationDate");We=D}return re=We},le=ye.__private__.getCreationDate=function(D){var We=re;return D==="jsDate"&&(We=dt(re)),We};ye.setCreationDate=function(D){return St(D),this},ye.getCreationDate=function(D){return le(D)};var Re,Ye=ye.__private__.padd2=function(D){return("0"+parseInt(D)).slice(-2)},et=ye.__private__.padd2Hex=function(D){return("00"+(D=D.toString())).substr(D.length)},bt=0,_t=[],Mt=[],Rt=0,lr=[],Ar=[],gr=!1,_r=Mt,dn=function(){bt=0,Rt=0,Mt=[],_t=[],lr=[],qr=no(),fa=no()};ye.__private__.setCustomOutputDestination=function(D){gr=!0,_r=D};var or=function(D){gr||(_r=D)};ye.__private__.resetCustomOutputDestination=function(){gr=!1,_r=Mt};var yt=ye.__private__.out=function(D){return D=D.toString(),Rt+=D.length+1,_r.push(D),_r},Fn=ye.__private__.write=function(D){return yt(arguments.length===1?D.toString():Array.prototype.join.call(arguments," "))},gn=ye.__private__.getArrayBuffer=function(D){for(var We=D.length,Lt=new ArrayBuffer(We),Yt=new Uint8Array(Lt);We--;)Yt[We]=D.charCodeAt(We);return Lt},yr=[["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]];ye.__private__.getStandardFonts=function(){return yr};var Tr=c.fontSize||16;ye.__private__.setFontSize=ye.setFontSize=function(D){return Tr=ar===Pt.ADVANCED?D/vn:D,this};var Ur,wr=ye.__private__.getFontSize=ye.getFontSize=function(){return ar===Pt.COMPAT?Tr:Tr*vn},Zr=c.R2L||!1;ye.__private__.setR2L=ye.setR2L=function(D){return Zr=D,this},ye.__private__.getR2L=ye.getR2L=function(){return Zr};var Cn,Gn=ye.__private__.setZoomMode=function(D){var We=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(D))Ur=D;else if(isNaN(D)){if(We.indexOf(D)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+D+'" is not recognized.');Ur=D}else Ur=parseInt(D,10)};ye.__private__.getZoomMode=function(){return Ur};var Zn,On=ye.__private__.setPageMode=function(D){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(D)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+D+'" is not recognized.');Cn=D};ye.__private__.getPageMode=function(){return Cn};var di=ye.__private__.setLayoutMode=function(D){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(D)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+D+'" is not recognized.');Zn=D};ye.__private__.getLayoutMode=function(){return Zn},ye.__private__.setDisplayMode=ye.setDisplayMode=function(D,We,Lt){return Gn(D),di(We),On(Lt),this};var zn={title:"",subject:"",author:"",keywords:"",creator:""};ye.__private__.getDocumentProperty=function(D){if(Object.keys(zn).indexOf(D)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return zn[D]},ye.__private__.getDocumentProperties=function(){return zn},ye.__private__.setDocumentProperties=ye.setProperties=ye.setDocumentProperties=function(D){for(var We in zn)zn.hasOwnProperty(We)&&D[We]&&(zn[We]=D[We]);return this},ye.__private__.setDocumentProperty=function(D,We){if(Object.keys(zn).indexOf(D)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return zn[D]=We};var Fi,vn,_a,Hi,Ri,ia={},Ki={},Qa=[],Wi={},As={},En={},fi={},gi=null,$n=0,ai=[],kn=new ja(ye),Qi=c.hotfixes||[],Gi={},qi={},Mo=[],Ii=function D(We,Lt,Yt,br,Xr,_n){if(!(this instanceof D))return new D(We,Lt,Yt,br,Xr,_n);isNaN(We)&&(We=1),isNaN(Lt)&&(Lt=0),isNaN(Yt)&&(Yt=0),isNaN(br)&&(br=1),isNaN(Xr)&&(Xr=0),isNaN(_n)&&(_n=0),this._matrix=[We,Lt,Yt,br,Xr,_n]};Object.defineProperty(Ii.prototype,"sx",{get:function(){return this._matrix[0]},set:function(D){this._matrix[0]=D}}),Object.defineProperty(Ii.prototype,"shy",{get:function(){return this._matrix[1]},set:function(D){this._matrix[1]=D}}),Object.defineProperty(Ii.prototype,"shx",{get:function(){return this._matrix[2]},set:function(D){this._matrix[2]=D}}),Object.defineProperty(Ii.prototype,"sy",{get:function(){return this._matrix[3]},set:function(D){this._matrix[3]=D}}),Object.defineProperty(Ii.prototype,"tx",{get:function(){return this._matrix[4]},set:function(D){this._matrix[4]=D}}),Object.defineProperty(Ii.prototype,"ty",{get:function(){return this._matrix[5]},set:function(D){this._matrix[5]=D}}),Object.defineProperty(Ii.prototype,"a",{get:function(){return this._matrix[0]},set:function(D){this._matrix[0]=D}}),Object.defineProperty(Ii.prototype,"b",{get:function(){return this._matrix[1]},set:function(D){this._matrix[1]=D}}),Object.defineProperty(Ii.prototype,"c",{get:function(){return this._matrix[2]},set:function(D){this._matrix[2]=D}}),Object.defineProperty(Ii.prototype,"d",{get:function(){return this._matrix[3]},set:function(D){this._matrix[3]=D}}),Object.defineProperty(Ii.prototype,"e",{get:function(){return this._matrix[4]},set:function(D){this._matrix[4]=D}}),Object.defineProperty(Ii.prototype,"f",{get:function(){return this._matrix[5]},set:function(D){this._matrix[5]=D}}),Object.defineProperty(Ii.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ii.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ii.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ii.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Ii.prototype.join=function(D){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Ir).join(D)},Ii.prototype.multiply=function(D){var We=D.sx*this.sx+D.shy*this.shx,Lt=D.sx*this.shy+D.shy*this.sy,Yt=D.shx*this.sx+D.sy*this.shx,br=D.shx*this.shy+D.sy*this.sy,Xr=D.tx*this.sx+D.ty*this.shx+this.tx,_n=D.tx*this.shy+D.ty*this.sy+this.ty;return new Ii(We,Lt,Yt,br,Xr,_n)},Ii.prototype.decompose=function(){var D=this.sx,We=this.shy,Lt=this.shx,Yt=this.sy,br=this.tx,Xr=this.ty,_n=Math.sqrt(D*D+We*We),Mi=(D/=_n)*Lt+(We/=_n)*Yt;Lt-=D*Mi,Yt-=We*Mi;var ta=Math.sqrt(Lt*Lt+Yt*Yt);return Mi/=ta,D*(Yt/=ta)<We*(Lt/=ta)&&(D=-D,We=-We,Mi=-Mi,_n=-_n),{scale:new Ii(_n,0,0,ta,0,0),translate:new Ii(1,0,0,1,br,Xr),rotate:new Ii(D,We,-We,D,0,0),skew:new Ii(1,0,Mi,1,0,0)}},Ii.prototype.toString=function(D){return this.join(" ")},Ii.prototype.inversed=function(){var D=this.sx,We=this.shy,Lt=this.shx,Yt=this.sy,br=this.tx,Xr=this.ty,_n=1/(D*Yt-We*Lt),Mi=Yt*_n,ta=-We*_n,Pa=-Lt*_n,Fa=D*_n;return new Ii(Mi,ta,Pa,Fa,-Mi*br-Pa*Xr,-ta*br-Fa*Xr)},Ii.prototype.applyToPoint=function(D){var We=D.x*this.sx+D.y*this.shx+this.tx,Lt=D.x*this.shy+D.y*this.sy+this.ty;return new oc(We,Lt)},Ii.prototype.applyToRectangle=function(D){var We=this.applyToPoint(D),Lt=this.applyToPoint(new oc(D.x+D.w,D.y+D.h));return new Ku(We.x,We.y,Lt.x-We.x,Lt.y-We.y)},Ii.prototype.clone=function(){var D=this.sx,We=this.shy,Lt=this.shx,Yt=this.sy,br=this.tx,Xr=this.ty;return new Ii(D,We,Lt,Yt,br,Xr)},ye.Matrix=Ii;var ns=ye.matrixMult=function(D,We){return We.multiply(D)},ro=new Ii(1,0,0,1,0,0);ye.unitMatrix=ye.identityMatrix=ro;var Qo=function(D,We){if(!As[D]){var Lt=(We instanceof vo?"Sh":"P")+(Object.keys(Wi).length+1).toString(10);We.id=Lt,As[D]=Lt,Wi[Lt]=We,kn.publish("addPattern",We)}};ye.ShadingPattern=vo,ye.TilingPattern=ba,ye.addShadingPattern=function(D,We){return Vt("addShadingPattern()"),Qo(D,We),this},ye.beginTilingPattern=function(D){Vt("beginTilingPattern()"),Is(D.boundingBox[0],D.boundingBox[1],D.boundingBox[2]-D.boundingBox[0],D.boundingBox[3]-D.boundingBox[1],D.matrix)},ye.endTilingPattern=function(D,We){Vt("endTilingPattern()"),We.stream=Ar[Re].join(`
|
|
|
`),Qo(D,We),kn.publish("endTilingPattern",We),Mo.pop().restore()};var wn=ye.__private__.newObject=function(){var D=no();return Cs(D,!0),D},no=ye.__private__.newObjectDeferred=function(){return bt++,_t[bt]=function(){return Rt},bt},Cs=function(D,We){return We=typeof We=="boolean"&&We,_t[D]=Rt,We&&yt(D+" 0 obj"),D},ga=ye.__private__.newAdditionalObject=function(){var D={objId:no(),content:""};return lr.push(D),D},qr=no(),fa=no(),so=ye.__private__.decodeColorString=function(D){var We=D.split(" ");if(We.length!==2||We[1]!=="g"&&We[1]!=="G")We.length===5&&(We[4]==="k"||We[4]==="K")&&(We=[(1-We[0])*(1-We[3]),(1-We[1])*(1-We[3]),(1-We[2])*(1-We[3]),"r"]);else{var Lt=parseFloat(We[0]);We=[Lt,Lt,Lt,"r"]}for(var Yt="#",br=0;br<3;br++)Yt+=("0"+Math.floor(255*parseFloat(We[br])).toString(16)).slice(-2);return Yt},Va=ye.__private__.encodeColorString=function(D){var We;typeof D=="string"&&(D={ch1:D});var Lt=D.ch1,Yt=D.ch2,br=D.ch3,Xr=D.ch4,_n=D.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Lt=="string"&&Lt.charAt(0)!=="#"){var Mi=new ii(Lt);if(Mi.ok)Lt=Mi.toHex();else if(!/^\d*\.?\d*$/.test(Lt))throw new Error('Invalid color "'+Lt+'" passed to jsPDF.encodeColorString.')}if(typeof Lt=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Lt)&&(Lt="#"+Lt[1]+Lt[1]+Lt[2]+Lt[2]+Lt[3]+Lt[3]),typeof Lt=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Lt)){var ta=parseInt(Lt.substr(1),16);Lt=ta>>16&255,Yt=ta>>8&255,br=255&ta}if(Yt===void 0||Xr===void 0&&Lt===Yt&&Yt===br)if(typeof Lt=="string")We=Lt+" "+_n[0];else switch(D.precision){case 2:We=Jr(Lt/255)+" "+_n[0];break;case 3:default:We=vt(Lt/255)+" "+_n[0]}else if(Xr===void 0||(0,pe.Z)(Xr)==="object"){if(Xr&&!isNaN(Xr.a)&&Xr.a===0)return We=["1.","1.","1.",_n[1]].join(" ");if(typeof Lt=="string")We=[Lt,Yt,br,_n[1]].join(" ");else switch(D.precision){case 2:We=[Jr(Lt/255),Jr(Yt/255),Jr(br/255),_n[1]].join(" ");break;default:case 3:We=[vt(Lt/255),vt(Yt/255),vt(br/255),_n[1]].join(" ")}}else if(typeof Lt=="string")We=[Lt,Yt,br,Xr,_n[2]].join(" ");else switch(D.precision){case 2:We=[Jr(Lt),Jr(Yt),Jr(br),Jr(Xr),_n[2]].join(" ");break;case 3:default:We=[vt(Lt),vt(Yt),vt(br),vt(Xr),_n[2]].join(" ")}return We},Si=ye.__private__.getFilters=function(){return T},bo=ye.__private__.putStream=function(D){var We=(D=D||{}).data||"",Lt=D.filters||Si(),Yt=D.alreadyAppliedFilters||[],br=D.addLength1||!1,Xr=We.length,_n=D.objectId,Mi=function(hs){return hs};if($e!==null&&_n===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");$e!==null&&(Mi=Fs.encryptor(_n,0));var ta={};Lt===!0&&(Lt=["FlateEncode"]);var Pa=D.additionalKeyValues||[],Fa=(ta=Ai.API.processDataByFilters!==void 0?Ai.API.processDataByFilters(We,Lt):{data:We,reverseChain:[]}).reverseChain+(Array.isArray(Yt)?Yt.join(" "):Yt.toString());if(ta.data.length!==0&&(Pa.push({key:"Length",value:ta.data.length}),br===!0&&Pa.push({key:"Length1",value:Xr})),Fa.length!=0)if(Fa.split("/").length-1==1)Pa.push({key:"Filter",value:Fa});else{Pa.push({key:"Filter",value:"["+Fa+"]"});for(var co=0;co<Pa.length;co+=1)if(Pa[co].key==="DecodeParms"){for(var aa=[],bs=0;bs<ta.reverseChain.split("/").length-1;bs+=1)aa.push("null");aa.push(Pa[co].value),Pa[co].value="["+aa.join(" ")+"]"}}yt("<<");for(var Ts=0;Ts<Pa.length;Ts++)yt("/"+Pa[Ts].key+" "+Pa[Ts].value);yt(">>"),ta.data.length!==0&&(yt("stream"),yt(Mi(ta.data)),yt("endstream"))},Ko=ye.__private__.putPage=function(D){var We=D.number,Lt=D.data,Yt=D.objId,br=D.contentsObjId;Cs(Yt,!0),yt("<</Type /Page"),yt("/Parent "+D.rootDictionaryObjId+" 0 R"),yt("/Resources "+D.resourceDictionaryObjId+" 0 R"),yt("/MediaBox ["+parseFloat(Ir(D.mediaBox.bottomLeftX))+" "+parseFloat(Ir(D.mediaBox.bottomLeftY))+" "+Ir(D.mediaBox.topRightX)+" "+Ir(D.mediaBox.topRightY)+"]"),D.cropBox!==null&&yt("/CropBox ["+Ir(D.cropBox.bottomLeftX)+" "+Ir(D.cropBox.bottomLeftY)+" "+Ir(D.cropBox.topRightX)+" "+Ir(D.cropBox.topRightY)+"]"),D.bleedBox!==null&&yt("/BleedBox ["+Ir(D.bleedBox.bottomLeftX)+" "+Ir(D.bleedBox.bottomLeftY)+" "+Ir(D.bleedBox.topRightX)+" "+Ir(D.bleedBox.topRightY)+"]"),D.trimBox!==null&&yt("/TrimBox ["+Ir(D.trimBox.bottomLeftX)+" "+Ir(D.trimBox.bottomLeftY)+" "+Ir(D.trimBox.topRightX)+" "+Ir(D.trimBox.topRightY)+"]"),D.artBox!==null&&yt("/ArtBox ["+Ir(D.artBox.bottomLeftX)+" "+Ir(D.artBox.bottomLeftY)+" "+Ir(D.artBox.topRightX)+" "+Ir(D.artBox.topRightY)+"]"),typeof D.userUnit=="number"&&D.userUnit!==1&&yt("/UserUnit "+D.userUnit),kn.publish("putPage",{objId:Yt,pageContext:ai[We],pageNumber:We,page:Lt}),yt("/Contents "+br+" 0 R"),yt(">>"),yt("endobj");var Xr=Lt.join(`
|
|
|
`);return ar===Pt.ADVANCED&&(Xr+=`
|
|
|
Q`),Cs(br,!0),bo({data:Xr,filters:Si(),objectId:br}),yt("endobj"),Yt},Bs=ye.__private__.putPages=function(){var D,We,Lt=[];for(D=1;D<=$n;D++)ai[D].objId=no(),ai[D].contentsObjId=no();for(D=1;D<=$n;D++)Lt.push(Ko({number:D,data:Ar[D],objId:ai[D].objId,contentsObjId:ai[D].contentsObjId,mediaBox:ai[D].mediaBox,cropBox:ai[D].cropBox,bleedBox:ai[D].bleedBox,trimBox:ai[D].trimBox,artBox:ai[D].artBox,userUnit:ai[D].userUnit,rootDictionaryObjId:qr,resourceDictionaryObjId:fa}));Cs(qr,!0),yt("<</Type /Pages");var Yt="/Kids [";for(We=0;We<$n;We++)Yt+=Lt[We]+" 0 R ";yt(Yt+"]"),yt("/Count "+$n),yt(">>"),yt("endobj"),kn.publish("postPutPages")},gs=function(D){kn.publish("putFont",{font:D,out:yt,newObject:wn,putStream:bo}),D.isAlreadyPutted!==!0&&(D.objectNumber=wn(),yt("<<"),yt("/Type /Font"),yt("/BaseFont /"+$i(D.postScriptName)),yt("/Subtype /Type1"),typeof D.encoding=="string"&&yt("/Encoding /"+D.encoding),yt("/FirstChar 32"),yt("/LastChar 255"),yt(">>"),yt("endobj"))},is=function(){for(var D in ia)ia.hasOwnProperty(D)&&(Ze===!1||Ze===!0&&at.hasOwnProperty(D))&&gs(ia[D])},us=function(D){D.objectNumber=wn();var We=[];We.push({key:"Type",value:"/XObject"}),We.push({key:"Subtype",value:"/Form"}),We.push({key:"BBox",value:"["+[Ir(D.x),Ir(D.y),Ir(D.x+D.width),Ir(D.y+D.height)].join(" ")+"]"}),We.push({key:"Matrix",value:"["+D.matrix.toString()+"]"});var Lt=D.pages[1].join(`
|
|
|
`);bo({data:Lt,additionalKeyValues:We,objectId:D.objectNumber}),yt("endobj")},bl=function(){for(var D in Gi)Gi.hasOwnProperty(D)&&us(Gi[D])},as=function(D,We){var Lt,Yt=[],br=1/(We-1);for(Lt=0;Lt<1;Lt+=br)Yt.push(Lt);if(Yt.push(1),D[0].offset!=0){var Xr={offset:0,color:D[0].color};D.unshift(Xr)}if(D[D.length-1].offset!=1){var _n={offset:1,color:D[D.length-1].color};D.push(_n)}for(var Mi="",ta=0,Pa=0;Pa<Yt.length;Pa++){for(Lt=Yt[Pa];Lt>D[ta+1].offset;)ta++;var Fa=D[ta].offset,co=(Lt-Fa)/(D[ta+1].offset-Fa),aa=D[ta].color,bs=D[ta+1].color;Mi+=et(Math.round((1-co)*aa[0]+co*bs[0]).toString(16))+et(Math.round((1-co)*aa[1]+co*bs[1]).toString(16))+et(Math.round((1-co)*aa[2]+co*bs[2]).toString(16))}return Mi.trim()},$s=function(D,We){We||(We=21);var Lt=wn(),Yt=as(D.colors,We),br=[];br.push({key:"FunctionType",value:"0"}),br.push({key:"Domain",value:"[0.0 1.0]"}),br.push({key:"Size",value:"["+We+"]"}),br.push({key:"BitsPerSample",value:"8"}),br.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),br.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),bo({data:Yt,additionalKeyValues:br,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Lt}),yt("endobj"),D.objectNumber=wn(),yt("<< /ShadingType "+D.type),yt("/ColorSpace /DeviceRGB");var Xr="/Coords ["+Ir(parseFloat(D.coords[0]))+" "+Ir(parseFloat(D.coords[1]))+" ";D.type===2?Xr+=Ir(parseFloat(D.coords[2]))+" "+Ir(parseFloat(D.coords[3])):Xr+=Ir(parseFloat(D.coords[2]))+" "+Ir(parseFloat(D.coords[3]))+" "+Ir(parseFloat(D.coords[4]))+" "+Ir(parseFloat(D.coords[5])),yt(Xr+="]"),D.matrix&&yt("/Matrix ["+D.matrix.toString()+"]"),yt("/Function "+Lt+" 0 R"),yt("/Extend [true true]"),yt(">>"),yt("endobj")},ds=function(D,We){var Lt=no(),Yt=wn();We.push({resourcesOid:Lt,objectOid:Yt}),D.objectNumber=Yt;var br=[];br.push({key:"Type",value:"/Pattern"}),br.push({key:"PatternType",value:"1"}),br.push({key:"PaintType",value:"1"}),br.push({key:"TilingType",value:"1"}),br.push({key:"BBox",value:"["+D.boundingBox.map(Ir).join(" ")+"]"}),br.push({key:"XStep",value:Ir(D.xStep)}),br.push({key:"YStep",value:Ir(D.yStep)}),br.push({key:"Resources",value:Lt+" 0 R"}),D.matrix&&br.push({key:"Matrix",value:"["+D.matrix.toString()+"]"}),bo({data:D.stream,additionalKeyValues:br,objectId:D.objectNumber}),yt("endobj")},Lo=function(D){var We;for(We in Wi)Wi.hasOwnProperty(We)&&(Wi[We]instanceof vo?$s(Wi[We]):Wi[We]instanceof ba&&ds(Wi[We],D))},wo=function(D){for(var We in D.objectNumber=wn(),yt("<<"),D)switch(We){case"opacity":yt("/ca "+Jr(D[We]));break;case"stroke-opacity":yt("/CA "+Jr(D[We]))}yt(">>"),yt("endobj")},qs=function(){var D;for(D in En)En.hasOwnProperty(D)&&wo(En[D])},Nl=function(){for(var D in yt("/XObject <<"),Gi)Gi.hasOwnProperty(D)&&Gi[D].objectNumber>=0&&yt("/"+D+" "+Gi[D].objectNumber+" 0 R");kn.publish("putXobjectDict"),yt(">>")},zl=function(){Fs.oid=wn(),yt("<<"),yt("/Filter /Standard"),yt("/V "+Fs.v),yt("/R "+Fs.r),yt("/U <"+Fs.toHexString(Fs.U)+">"),yt("/O <"+Fs.toHexString(Fs.O)+">"),yt("/P "+Fs.P),yt(">>"),yt("endobj")},wl=function(){for(var D in yt("/Font <<"),ia)ia.hasOwnProperty(D)&&(Ze===!1||Ze===!0&&at.hasOwnProperty(D))&&yt("/"+D+" "+ia[D].objectNumber+" 0 R");yt(">>")},BA=function(){if(Object.keys(Wi).length>0){for(var D in yt("/Shading <<"),Wi)Wi.hasOwnProperty(D)&&Wi[D]instanceof vo&&Wi[D].objectNumber>=0&&yt("/"+D+" "+Wi[D].objectNumber+" 0 R");kn.publish("putShadingPatternDict"),yt(">>")}},Xc=function(D){if(Object.keys(Wi).length>0){for(var We in yt("/Pattern <<"),Wi)Wi.hasOwnProperty(We)&&Wi[We]instanceof ye.TilingPattern&&Wi[We].objectNumber>=0&&Wi[We].objectNumber<D&&yt("/"+We+" "+Wi[We].objectNumber+" 0 R");kn.publish("putTilingPatternDict"),yt(">>")}},xa=function(){if(Object.keys(En).length>0){var D;for(D in yt("/ExtGState <<"),En)En.hasOwnProperty(D)&&En[D].objectNumber>=0&&yt("/"+D+" "+En[D].objectNumber+" 0 R");kn.publish("putGStateDict"),yt(">>")}},ea=function(D){Cs(D.resourcesOid,!0),yt("<<"),yt("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),wl(),BA(),Xc(D.objectOid),xa(),Nl(),yt(">>"),yt("endobj")},vs=function(){var D=[];is(),qs(),bl(),Lo(D),kn.publish("putResources"),D.forEach(ea),ea({resourcesOid:fa,objectOid:Number.MAX_SAFE_INTEGER}),kn.publish("postPutResources")},go=function(){kn.publish("putAdditionalObjects");for(var D=0;D<lr.length;D++){var We=lr[D];Cs(We.objId,!0),yt(We.content),yt("endobj")}kn.publish("postPutAdditionalObjects")},fs=function(D){Ki[D.fontName]=Ki[D.fontName]||{},Ki[D.fontName][D.fontStyle]=D.id},Ss=function(D,We,Lt,Yt,br){var Xr={id:"F"+(Object.keys(ia).length+1).toString(10),postScriptName:D,fontName:We,fontStyle:Lt,encoding:Yt,isStandardFont:br||!1,metadata:{}};return kn.publish("addFont",{font:Xr,instance:this}),ia[Xr.id]=Xr,fs(Xr),Xr.id},Es=function(D){for(var We=0,Lt=yr.length;We<Lt;We++){var Yt=Ss.call(this,D[We][0],D[We][1],D[We][2],yr[We][3],!0);Ze===!1&&(at[Yt]=!0);var br=D[We][0].split("-");fs({id:Yt,fontName:br[0],fontStyle:br[1]||""})}kn.publish("addFonts",{fonts:ia,dictionary:Ki})},_s=function(D){return D.foo=function(){try{return D.apply(this,arguments)}catch(Yt){var We=Yt.stack||"";~We.indexOf(" at ")&&(We=We.split(" at ")[1]);var Lt="Error in function "+We.split(`
|
|
|
`)[0].split("<")[0]+": "+Yt.message;if(!on.console)throw new Error(Lt);on.console.error(Lt,Yt),on.alert&&alert(Lt)}},D.foo.bar=D,D.foo},Dc=function(D,We){var Lt,Yt,br,Xr,_n,Mi,ta,Pa,Fa;if(br=(We=We||{}).sourceEncoding||"Unicode",_n=We.outputEncoding,(We.autoencode||_n)&&ia[Fi].metadata&&ia[Fi].metadata[br]&&ia[Fi].metadata[br].encoding&&(Xr=ia[Fi].metadata[br].encoding,!_n&&ia[Fi].encoding&&(_n=ia[Fi].encoding),!_n&&Xr.codePages&&(_n=Xr.codePages[0]),typeof _n=="string"&&(_n=Xr[_n]),_n)){for(ta=!1,Mi=[],Lt=0,Yt=D.length;Lt<Yt;Lt++)(Pa=_n[D.charCodeAt(Lt)])?Mi.push(String.fromCharCode(Pa)):Mi.push(D[Lt]),Mi[Lt].charCodeAt(0)>>8&&(ta=!0);D=Mi.join("")}for(Lt=D.length;ta===void 0&&Lt!==0;)D.charCodeAt(Lt-1)>>8&&(ta=!0),Lt--;if(!ta)return D;for(Mi=We.noBOM?[]:[254,255],Lt=0,Yt=D.length;Lt<Yt;Lt++){if((Fa=(Pa=D.charCodeAt(Lt))>>8)>>8)throw new Error("Character at position "+Lt+" of string '"+D+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Mi.push(Fa),Mi.push(Pa-(Fa<<8))}return String.fromCharCode.apply(void 0,Mi)},ll=ye.__private__.pdfEscape=ye.pdfEscape=function(D,We){return Dc(D,We).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},gc=ye.__private__.beginPage=function(D){Ar[++$n]=[],ai[$n]={objId:0,contentsObjId:0,userUnit:Number(Z),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(D[0]),topRightY:Number(D[1])}},xl($n),or(Ar[Re])},Ca=function(D,We){var Lt,Yt,br;switch(l=We||l,typeof D=="string"&&(Lt=ht(D.toLowerCase()),Array.isArray(Lt)&&(Yt=Lt[0],br=Lt[1])),Array.isArray(D)&&(Yt=D[0]*vn,br=D[1]*vn),isNaN(Yt)&&(Yt=F[0],br=F[1]),(Yt>14400||br>14400)&&(Ln.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Yt=Math.min(14400,Yt),br=Math.min(14400,br)),F=[Yt,br],l.substr(0,1)){case"l":br>Yt&&(F=[br,Yt]);break;case"p":Yt>br&&(F=[br,Yt])}gc(F),Wl(Ba),yt(la),Qu!==0&&yt(Qu+" J"),WA!==0&&yt(WA+" j"),kn.publish("addPage",{pageNumber:$n})},So=function(D){D>0&&D<=$n&&(Ar.splice(D,1),ai.splice(D,1),$n--,Re>$n&&(Re=$n),this.setPage(Re))},xl=function(D){D>0&&D<=$n&&(Re=D)},rc=ye.__private__.getNumberOfPages=ye.getNumberOfPages=function(){return Ar.length-1},Ns=function(D,We,Lt){var Yt,br=void 0;return Lt=Lt||{},D=D!==void 0?D:ia[Fi].fontName,We=We!==void 0?We:ia[Fi].fontStyle,Yt=D.toLowerCase(),Ki[Yt]!==void 0&&Ki[Yt][We]!==void 0?br=Ki[Yt][We]:Ki[D]!==void 0&&Ki[D][We]!==void 0?br=Ki[D][We]:Lt.disableWarning===!1&&Ln.warn("Unable to look up font label for font '"+D+"', '"+We+"'. Refer to getFontList() for available fonts."),br||Lt.noFallback||(br=Ki.times[We])==null&&(br=Ki.times.normal),br},HA=ye.__private__.putInfo=function(){var D=wn(),We=function(Yt){return Yt};for(var Lt in $e!==null&&(We=Fs.encryptor(D,0)),yt("<<"),yt("/Producer ("+ll(We("jsPDF "+Ai.version))+")"),zn)zn.hasOwnProperty(Lt)&&zn[Lt]&&yt("/"+Lt.substr(0,1).toUpperCase()+Lt.substr(1)+" ("+ll(We(zn[Lt]))+")");yt("/CreationDate ("+ll(We(re))+")"),yt(">>"),yt("endobj")},Cl=ye.__private__.putCatalog=function(D){var We=(D=D||{}).rootDictionaryObjId||qr;switch(wn(),yt("<<"),yt("/Type /Catalog"),yt("/Pages "+We+" 0 R"),Ur||(Ur="fullwidth"),Ur){case"fullwidth":yt("/OpenAction [3 0 R /FitH null]");break;case"fullheight":yt("/OpenAction [3 0 R /FitV null]");break;case"fullpage":yt("/OpenAction [3 0 R /Fit]");break;case"original":yt("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Lt=""+Ur;Lt.substr(Lt.length-1)==="%"&&(Ur=parseInt(Ur)/100),typeof Ur=="number"&&yt("/OpenAction [3 0 R /XYZ null null "+Jr(Ur)+"]")}switch(Zn||(Zn="continuous"),Zn){case"continuous":yt("/PageLayout /OneColumn");break;case"single":yt("/PageLayout /SinglePage");break;case"two":case"twoleft":yt("/PageLayout /TwoColumnLeft");break;case"tworight":yt("/PageLayout /TwoColumnRight")}Cn&&yt("/PageMode /"+Cn),kn.publish("putCatalog"),yt(">>"),yt("endobj")},jA=ye.__private__.putTrailer=function(){yt("trailer"),yt("<<"),yt("/Size "+(bt+1)),yt("/Root "+bt+" 0 R"),yt("/Info "+(bt-1)+" 0 R"),$e!==null&&yt("/Encrypt "+Fs.oid+" 0 R"),yt("/ID [ <"+Se+"> <"+Se+"> ]"),yt(">>")},zA=ye.__private__.putHeader=function(){yt("%PDF-"+kt),yt("%\xBA\xDF\xAC\xE0")},Jc=ye.__private__.putXRef=function(){var D="0000000000";yt("xref"),yt("0 "+(bt+1)),yt("0000000000 65535 f ");for(var We=1;We<=bt;We++)typeof _t[We]=="function"?yt((D+_t[We]()).slice(-10)+" 00000 n "):_t[We]!==void 0?yt((D+_t[We]).slice(-10)+" 00000 n "):yt("0000000000 00000 n ")},$l=ye.__private__.buildDocument=function(){dn(),or(Mt),kn.publish("buildDocument"),zA(),Bs(),go(),vs(),$e!==null&&zl(),HA(),Cl();var D=Rt;return Jc(),jA(),yt("startxref"),yt(""+D),yt("%%EOF"),or(Ar[Re]),Mt.join(`
|
|
|
`)},vc=ye.__private__.getBlob=function(D){return new Blob([gn(D)],{type:"application/pdf"})},nc=ye.output=ye.__private__.output=_s(function(D,We){switch(typeof(We=We||{})=="string"?We={filename:We}:We.filename=We.filename||"generated.pdf",D){case void 0:return $l();case"save":ye.save(We.filename);break;case"arraybuffer":return gn($l());case"blob":return vc($l());case"bloburi":case"bloburl":if(on.URL!==void 0&&typeof on.URL.createObjectURL=="function")return on.URL&&on.URL.createObjectURL(vc($l()))||void 0;Ln.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Lt="",Yt=$l();try{Lt=Bi(Yt)}catch(bs){Lt=Bi(unescape(encodeURIComponent(Yt)))}return"data:application/pdf;filename="+We.filename+";base64,"+Lt;case"pdfobjectnewwindow":if(Object.prototype.toString.call(on)==="[object Window]"){var br="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Xr=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';We.pdfObjectUrl&&(br=We.pdfObjectUrl,Xr="");var _n='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+br+'"'+Xr+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(We)+");<\/script></body></html>",Mi=on.open();return Mi!==null&&Mi.document.write(_n),Mi}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(on)==="[object Window]"){var ta='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(We.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+We.filename+'" width="500px" height="400px" /></body></html>',Pa=on.open();if(Pa!==null){Pa.document.write(ta);var Fa=this;Pa.document.documentElement.querySelector("#pdfViewer").onload=function(){Pa.document.title=We.filename,Pa.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Fa.output("bloburl"))}}return Pa}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(on)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var co='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",We)+'"></iframe></body></html>',aa=on.open();if(aa!==null&&(aa.document.write(co),aa.document.title=We.filename),aa||typeof safari=="undefined")return aa;break;case"datauri":case"dataurl":return on.document.location.href=this.output("datauristring",We);default:return null}}),fn=function(D){return Array.isArray(Qi)===!0&&Qi.indexOf(D)>-1};switch(b){case"pt":vn=1;break;case"mm":vn=72/25.4;break;case"cm":vn=72/2.54;break;case"in":vn=72;break;case"px":vn=fn("px_scaling")==1?.75:96/72;break;case"pc":case"em":vn=12;break;case"ex":vn=6;break;default:if(typeof b!="number")throw new Error("Invalid unit: "+b);vn=b}var Fs=null;St(),Ke();var SA=function(D){return $e!==null?Fs.encryptor(D,0):function(We){return We}},AA=ye.__private__.getPageInfo=ye.getPageInfo=function(D){if(isNaN(D)||D%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:ai[D].objId,pageNumber:D,pageContext:ai[D]}},sa=ye.__private__.getPageInfoByObjId=function(D){if(isNaN(D)||D%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var We in ai)if(ai[We].objId===D)break;return AA(We)},EA=ye.__private__.getCurrentPageInfo=ye.getCurrentPageInfo=function(){return{objId:ai[Re].objId,pageNumber:Re,pageContext:ai[Re]}};ye.addPage=function(){return Ca.apply(this,arguments),this},ye.setPage=function(){return xl.apply(this,arguments),or.call(this,Ar[Re]),this},ye.insertPage=function(D){return this.addPage(),this.movePage(Re,D),this},ye.movePage=function(D,We){var Lt,Yt;if(D>We){Lt=Ar[D],Yt=ai[D];for(var br=D;br>We;br--)Ar[br]=Ar[br-1],ai[br]=ai[br-1];Ar[We]=Lt,ai[We]=Yt,this.setPage(We)}else if(D<We){Lt=Ar[D],Yt=ai[D];for(var Xr=D;Xr<We;Xr++)Ar[Xr]=Ar[Xr+1],ai[Xr]=ai[Xr+1];Ar[We]=Lt,ai[We]=Yt,this.setPage(We)}return this},ye.deletePage=function(){return So.apply(this,arguments),this},ye.__private__.text=ye.text=function(D,We,Lt,Yt,br){var Xr,_n,Mi,ta,Pa,Fa,co,aa,bs,Ts=(Yt=Yt||{}).scope||this;if(typeof D=="number"&&typeof We=="number"&&(typeof Lt=="string"||Array.isArray(Lt))){var hs=Lt;Lt=We,We=D,D=hs}if(arguments[3]instanceof Ii?(Vt("The transform parameter of text() with a Matrix value"),bs=br):(Mi=arguments[4],ta=arguments[5],(0,pe.Z)(co=arguments[3])==="object"&&co!==null||(typeof Mi=="string"&&(ta=Mi,Mi=null),typeof co=="string"&&(ta=co,co=null),typeof co=="number"&&(Mi=co,co=null),Yt={flags:co,angle:Mi,align:ta})),isNaN(We)||isNaN(Lt)||D==null)throw new Error("Invalid arguments passed to jsPDF.text");if(D.length===0)return Ts;var el="",Bl=!1,sc=typeof Yt.lineHeightFactor=="number"?Yt.lineHeightFactor:va,Xl=Ts.internal.scaleFactor;function LA(Jo){return Jo=Jo.split(" ").join(Array(Yt.TabLen||9).join(" ")),ll(Jo,co)}function qc(Jo){for(var Ho,Us=Jo.concat(),Rs=[],Ua=Us.length;Ua--;)typeof(Ho=Us.shift())=="string"?Rs.push(Ho):Array.isArray(Jo)&&(Ho.length===1||Ho[1]===void 0&&Ho[2]===void 0)?Rs.push(Ho[0]):Rs.push([Ho[0],Ho[1],Ho[2]]);return Rs}function uu(Jo,Ho){var Us;if(typeof Jo=="string")Us=Ho(Jo)[0];else if(Array.isArray(Jo)){for(var Rs,Ua,hi=Jo.concat(),ec=[],tu=hi.length;tu--;)typeof(Rs=hi.shift())=="string"?ec.push(Ho(Rs)[0]):Array.isArray(Rs)&&typeof Rs[0]=="string"&&(Ua=Ho(Rs[0],Rs[1],Rs[2]),ec.push([Ua[0],Ua[1],Ua[2]]));Us=ec}return Us}var XA=!1,kA=!0;if(typeof D=="string")XA=!0;else if(Array.isArray(D)){var JA=D.concat();_n=[];for(var du,pl=JA.length;pl--;)(typeof(du=JA.shift())!="string"||Array.isArray(du)&&typeof du[0]!="string")&&(kA=!1);XA=kA}if(XA===!1)throw new Error('Type of text must be string or Array. "'+D+'" is not recognized.');typeof D=="string"&&(D=D.match(/[\r?\n]/)?D.split(/\r\n|\r|\n/g):[D]);var Qc=Tr/Ts.internal.scaleFactor,YA=Qc*(sc-1);switch(Yt.baseline){case"bottom":Lt-=YA;break;case"top":Lt+=Qc-YA;break;case"hanging":Lt+=Qc-2*YA;break;case"middle":Lt+=Qc/2-YA}if((Fa=Yt.maxWidth||0)>0&&(typeof D=="string"?D=Ts.splitTextToSize(D,Fa):Object.prototype.toString.call(D)==="[object Array]"&&(D=D.reduce(function(Jo,Ho){return Jo.concat(Ts.splitTextToSize(Ho,Fa))},[]))),Xr={text:D,x:We,y:Lt,options:Yt,mutex:{pdfEscape:ll,activeFontKey:Fi,fonts:ia,activeFontSize:Tr}},kn.publish("preProcessText",Xr),D=Xr.text,Mi=(Yt=Xr.options).angle,!(bs instanceof Ii)&&Mi&&typeof Mi=="number"){Mi*=Math.PI/180,Yt.rotationDirection===0&&(Mi=-Mi),ar===Pt.ADVANCED&&(Mi=-Mi);var rs=Math.cos(Mi),Kc=Math.sin(Mi);bs=new Ii(rs,Kc,-Kc,rs,0,0)}else Mi&&Mi instanceof Ii&&(bs=Mi);ar!==Pt.ADVANCED||bs||(bs=ro),(Pa=Yt.charSpace||zr)!==void 0&&(el+=Ir(Ct(Pa))+` Tc
|
|
|
`,this.setCharSpace(this.getCharSpace()||0)),(aa=Yt.horizontalScale)!==void 0&&(el+=Ir(100*aa)+` Tz
|
|
|
`),Yt.lang;var tl=-1,eA=Yt.renderingMode!==void 0?Yt.renderingMode:Yt.stroke,rl=Ts.internal.getCurrentPageInfo().pageContext;switch(eA){case 0:case!1:case"fill":tl=0;break;case 1:case!0:case"stroke":tl=1;break;case 2:case"fillThenStroke":tl=2;break;case 3:case"invisible":tl=3;break;case 4:case"fillAndAddForClipping":tl=4;break;case 5:case"strokeAndAddPathForClipping":tl=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":tl=6;break;case 7:case"addToPathForClipping":tl=7}var Jl=rl.usedRenderingMode!==void 0?rl.usedRenderingMode:-1;tl!==-1?el+=tl+` Tr
|
|
|
`:Jl!==-1&&(el+=`0 Tr
|
|
|
`),tl!==-1&&(rl.usedRenderingMode=tl),ta=Yt.align||"left";var ss,Tl=Tr*sc,lc=Ts.internal.pageSize.getWidth(),wc=ia[Fi];Pa=Yt.charSpace||zr,Fa=Yt.maxWidth||0,co=Object.assign({autoencode:!0,noBOM:!0},Yt.flags);var cc=[],Yl=function(Jo){return Ts.getStringUnitWidth(Jo,{font:wc,charSpace:Pa,fontSize:Tr,doKerning:!1})*Tr/Xl};if(Object.prototype.toString.call(D)==="[object Array]"){var cl;_n=qc(D),ta!=="left"&&(ss=_n.map(Yl));var nl,xc=0;if(ta==="right"){We-=ss[0],D=[],pl=_n.length;for(var tA=0;tA<pl;tA++)tA===0?(nl=ys(We),cl=ac(Lt)):(nl=Ct(xc-ss[tA]),cl=-Tl),D.push([_n[tA],nl,cl]),xc=ss[tA]}else if(ta==="center"){We-=ss[0]/2,D=[],pl=_n.length;for(var rA=0;rA<pl;rA++)rA===0?(nl=ys(We),cl=ac(Lt)):(nl=Ct((xc-ss[rA])/2),cl=-Tl),D.push([_n[rA],nl,cl]),xc=ss[rA]}else if(ta==="left"){D=[],pl=_n.length;for(var qA=0;qA<pl;qA++)D.push(_n[qA])}else if(ta==="justify"&&wc.encoding==="Identity-H"){D=[],pl=_n.length,Fa=Fa!==0?Fa:lc;for(var uA=0,Ms=0;Ms<pl;Ms++)if(cl=Ms===0?ac(Lt):-Tl,nl=Ms===0?ys(We):uA,Ms<pl-1){var eu=Ct((Fa-ss[Ms])/(_n[Ms].split(" ").length-1)),Ul=_n[Ms].split(" ");D.push([Ul[0]+" ",nl,cl]),uA=0;for(var Cc=1;Cc<Ul.length;Cc++){var fu=(Yl(Ul[Cc-1]+" "+Ul[Cc])-Yl(Ul[Cc]))*Xl+eu;Cc==Ul.length-1?D.push([Ul[Cc],fu,0]):D.push([Ul[Cc]+" ",fu,0]),uA-=fu}}else D.push([_n[Ms],nl,cl]);D.push(["",uA,0])}else{if(ta!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(D=[],pl=_n.length,Fa=Fa!==0?Fa:lc,Ms=0;Ms<pl;Ms++)cl=Ms===0?ac(Lt):-Tl,nl=Ms===0?ys(We):0,Ms<pl-1?cc.push(Ir(Ct((Fa-ss[Ms])/(_n[Ms].split(" ").length-1)))):cc.push(0),D.push([_n[Ms],nl,cl])}}var rd=typeof Yt.R2L=="boolean"?Yt.R2L:Zr;rd===!0&&(D=uu(D,function(Jo,Ho,Us){return[Jo.split("").reverse().join(""),Ho,Us]})),Xr={text:D,x:We,y:Lt,options:Yt,mutex:{pdfEscape:ll,activeFontKey:Fi,fonts:ia,activeFontSize:Tr}},kn.publish("postProcessText",Xr),D=Xr.text,Bl=Xr.mutex.isHex||!1;var ju=ia[Fi].encoding;ju!=="WinAnsiEncoding"&&ju!=="StandardEncoding"||(D=uu(D,function(Jo,Ho,Us){return[LA(Jo),Ho,Us]})),_n=qc(D),D=[];for(var dA,Bc,Ac,uc=0,ql=1,fA=Array.isArray(_n[0])?ql:uc,hA="",hu=function(Jo,Ho,Us){var Rs="";return Us instanceof Ii?(Us=typeof Yt.angle=="number"?ns(Us,new Ii(1,0,0,1,Jo,Ho)):ns(new Ii(1,0,0,1,Jo,Ho),Us),ar===Pt.ADVANCED&&(Us=ns(new Ii(1,0,0,-1,0,0),Us)),Rs=Us.join(" ")+` Tm
|
|
|
`):Rs=Ir(Jo)+" "+Ir(Ho)+` Td
|
|
|
`,Rs},Sc=0;Sc<_n.length;Sc++){switch(hA="",fA){case ql:Ac=(Bl?"<":"(")+_n[Sc][0]+(Bl?">":")"),dA=parseFloat(_n[Sc][1]),Bc=parseFloat(_n[Sc][2]);break;case uc:Ac=(Bl?"<":"(")+_n[Sc]+(Bl?">":")"),dA=ys(We),Bc=ac(Lt)}cc!==void 0&&cc[Sc]!==void 0&&(hA=cc[Sc]+` Tw
|
|
|
`),Sc===0?D.push(hA+hu(dA,Bc,bs)+Ac):fA===uc?D.push(hA+Ac):fA===ql&&D.push(hA+hu(dA,Bc,bs)+Ac)}D=fA===uc?D.join(` Tj
|
|
|
T* `):D.join(` Tj
|
|
|
`),D+=` Tj
|
|
|
`;var Ec=`BT
|
|
|
/`;return Ec+=Fi+" "+Tr+` Tf
|
|
|
`,Ec+=Ir(Tr*sc)+` TL
|
|
|
`,Ec+=Gl+`
|
|
|
`,Ec+=el,Ec+=D,yt(Ec+="ET"),at[Fi]=!0,Ts};var $A=ye.__private__.clip=ye.clip=function(D){return yt(D==="evenodd"?"W*":"W"),this};ye.clipEvenOdd=function(){return $A("evenodd")},ye.__private__.discardPath=ye.discardPath=function(){return yt("n"),this};var Zl=ye.__private__.isValidStyle=function(D){var We=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(D)!==-1&&(We=!0),We};ye.__private__.setDefaultPathOperation=ye.setDefaultPathOperation=function(D){return Zl(D)&&(_e=D),this};var Xo=ye.__private__.getStyle=ye.getStyle=function(D){var We=_e;switch(D){case"D":case"S":We="S";break;case"F":We="f";break;case"FD":case"DF":We="B";break;case"f":case"f*":case"B":case"B*":We=D}return We},ZA=ye.close=function(){return yt("h"),this};ye.stroke=function(){return yt("S"),this},ye.fill=function(D){return Pc("f",D),this},ye.fillEvenOdd=function(D){return Pc("f*",D),this},ye.fillStroke=function(D){return Pc("B",D),this},ye.fillStrokeEvenOdd=function(D){return Pc("B*",D),this};var Pc=function(D,We){(0,pe.Z)(We)==="object"?Vl(We,D):yt(D)},yc=function(D){D===null||ar===Pt.ADVANCED&&D===void 0||(D=Xo(D),yt(D))};function _A(D,We,Lt,Yt,br){var Xr=new ba(We||this.boundingBox,Lt||this.xStep,Yt||this.yStep,this.gState,br||this.matrix);Xr.stream=this.stream;var _n=D+"$$"+this.cloneIndex+++"$$";return Qo(_n,Xr),Xr}var Vl=function(D,We){var Lt=As[D.key],Yt=Wi[Lt];if(Yt instanceof vo)yt("q"),yt(ic(We)),Yt.gState&&ye.setGState(Yt.gState),yt(D.matrix.toString()+" cm"),yt("/"+Lt+" sh"),yt("Q");else if(Yt instanceof ba){var br=new Ii(1,0,0,-1,0,Rc());D.matrix&&(br=br.multiply(D.matrix||ro),Lt=_A.call(Yt,D.key,D.boundingBox,D.xStep,D.yStep,br).id),yt("q"),yt("/Pattern cs"),yt("/"+Lt+" scn"),Yt.gState&&ye.setGState(Yt.gState),yt(We),yt("Q")}},ic=function(D){switch(D){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},lo=ye.moveTo=function(D,We){return yt(Ir(Ct(D))+" "+Ir(U(We))+" m"),this},Os=ye.lineTo=function(D,We){return yt(Ir(Ct(D))+" "+Ir(U(We))+" l"),this},ts=ye.curveTo=function(D,We,Lt,Yt,br,Xr){return yt([Ir(Ct(D)),Ir(U(We)),Ir(Ct(Lt)),Ir(U(Yt)),Ir(Ct(br)),Ir(U(Xr)),"c"].join(" ")),this};ye.__private__.line=ye.line=function(D,We,Lt,Yt,br){if(isNaN(D)||isNaN(We)||isNaN(Lt)||isNaN(Yt)||!Zl(br))throw new Error("Invalid arguments passed to jsPDF.line");return ar===Pt.COMPAT?this.lines([[Lt-D,Yt-We]],D,We,[1,1],br||"S"):this.lines([[Lt-D,Yt-We]],D,We,[1,1]).stroke()},ye.__private__.lines=ye.lines=function(D,We,Lt,Yt,br,Xr){var _n,Mi,ta,Pa,Fa,co,aa,bs,Ts,hs,el,Bl;if(typeof D=="number"&&(Bl=Lt,Lt=We,We=D,D=Bl),Yt=Yt||[1,1],Xr=Xr||!1,isNaN(We)||isNaN(Lt)||!Array.isArray(D)||!Array.isArray(Yt)||!Zl(br)||typeof Xr!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(lo(We,Lt),_n=Yt[0],Mi=Yt[1],Pa=D.length,hs=We,el=Lt,ta=0;ta<Pa;ta++)(Fa=D[ta]).length===2?(hs=Fa[0]*_n+hs,el=Fa[1]*Mi+el,Os(hs,el)):(co=Fa[0]*_n+hs,aa=Fa[1]*Mi+el,bs=Fa[2]*_n+hs,Ts=Fa[3]*Mi+el,hs=Fa[4]*_n+hs,el=Fa[5]*Mi+el,ts(co,aa,bs,Ts,hs,el));return Xr&&ZA(),yc(br),this},ye.path=function(D){for(var We=0;We<D.length;We++){var Lt=D[We],Yt=Lt.c;switch(Lt.op){case"m":lo(Yt[0],Yt[1]);break;case"l":Os(Yt[0],Yt[1]);break;case"c":ts.apply(this,Yt);break;case"h":ZA()}}return this},ye.__private__.rect=ye.rect=function(D,We,Lt,Yt,br){if(isNaN(D)||isNaN(We)||isNaN(Lt)||isNaN(Yt)||!Zl(br))throw new Error("Invalid arguments passed to jsPDF.rect");return ar===Pt.COMPAT&&(Yt=-Yt),yt([Ir(Ct(D)),Ir(U(We)),Ir(Ct(Lt)),Ir(Ct(Yt)),"re"].join(" ")),yc(br),this},ye.__private__.triangle=ye.triangle=function(D,We,Lt,Yt,br,Xr,_n){if(isNaN(D)||isNaN(We)||isNaN(Lt)||isNaN(Yt)||isNaN(br)||isNaN(Xr)||!Zl(_n))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Lt-D,Yt-We],[br-Lt,Xr-Yt],[D-br,We-Xr]],D,We,[1,1],_n,!0),this},ye.__private__.roundedRect=ye.roundedRect=function(D,We,Lt,Yt,br,Xr,_n){if(isNaN(D)||isNaN(We)||isNaN(Lt)||isNaN(Yt)||isNaN(br)||isNaN(Xr)||!Zl(_n))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Mi=4/3*(Math.SQRT2-1);return br=Math.min(br,.5*Lt),Xr=Math.min(Xr,.5*Yt),this.lines([[Lt-2*br,0],[br*Mi,0,br,Xr-Xr*Mi,br,Xr],[0,Yt-2*Xr],[0,Xr*Mi,-br*Mi,Xr,-br,Xr],[2*br-Lt,0],[-br*Mi,0,-br,-Xr*Mi,-br,-Xr],[0,2*Xr-Yt],[0,-Xr*Mi,br*Mi,-Xr,br,-Xr]],D+br,We,[1,1],_n,!0),this},ye.__private__.ellipse=ye.ellipse=function(D,We,Lt,Yt,br){if(isNaN(D)||isNaN(We)||isNaN(Lt)||isNaN(Yt)||!Zl(br))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Xr=4/3*(Math.SQRT2-1)*Lt,_n=4/3*(Math.SQRT2-1)*Yt;return lo(D+Lt,We),ts(D+Lt,We-_n,D+Xr,We-Yt,D,We-Yt),ts(D-Xr,We-Yt,D-Lt,We-_n,D-Lt,We),ts(D-Lt,We+_n,D-Xr,We+Yt,D,We+Yt),ts(D+Xr,We+Yt,D+Lt,We+_n,D+Lt,We),yc(br),this},ye.__private__.circle=ye.circle=function(D,We,Lt,Yt){if(isNaN(D)||isNaN(We)||isNaN(Lt)||!Zl(Yt))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(D,We,Lt,Lt,Yt)},ye.setFont=function(D,We,Lt){return Lt&&(We=hn(We,Lt)),Fi=Ns(D,We,{disableWarning:!1}),this};var bc=ye.__private__.getFont=ye.getFont=function(){return ia[Ns.apply(ye,arguments)]};ye.__private__.getFontList=ye.getFontList=function(){var D,We,Lt={};for(D in Ki)if(Ki.hasOwnProperty(D))for(We in Lt[D]=[],Ki[D])Ki[D].hasOwnProperty(We)&&Lt[D].push(We);return Lt},ye.addFont=function(D,We,Lt,Yt,br){var Xr=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Xr.indexOf(arguments[3])!==-1?br=arguments[3]:arguments[3]&&Xr.indexOf(arguments[3])==-1&&(Lt=hn(Lt,Yt)),br=br||"Identity-H",Ss.call(this,D,We,Lt,br)};var va,Ba=c.lineWidth||.200025,Zs=ye.__private__.getLineWidth=ye.getLineWidth=function(){return Ba},Wl=ye.__private__.setLineWidth=ye.setLineWidth=function(D){return Ba=D,yt(Ir(Ct(D))+" w"),this};ye.__private__.setLineDash=Ai.API.setLineDash=Ai.API.setLineDashPattern=function(D,We){if(D=D||[],We=We||0,isNaN(We)||!Array.isArray(D))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return D=D.map(function(Lt){return Ir(Ct(Lt))}).join(" "),We=Ir(Ct(We)),yt("["+D+"] "+We+" d"),this};var Ol=ye.__private__.getLineHeight=ye.getLineHeight=function(){return Tr*va};ye.__private__.getLineHeight=ye.getLineHeight=function(){return Tr*va};var VA=ye.__private__.setLineHeightFactor=ye.setLineHeightFactor=function(D){return typeof(D=D||1.15)=="number"&&(va=D),this},os=ye.__private__.getLineHeightFactor=ye.getLineHeightFactor=function(){return va};VA(c.lineHeight);var ys=ye.__private__.getHorizontalCoordinate=function(D){return Ct(D)},ac=ye.__private__.getVerticalCoordinate=function(D){return ar===Pt.ADVANCED?D:ai[Re].mediaBox.topRightY-ai[Re].mediaBox.bottomLeftY-Ct(D)},FA=ye.__private__.getHorizontalCoordinateString=ye.getHorizontalCoordinateString=function(D){return Ir(ys(D))},Nc=ye.__private__.getVerticalCoordinateString=ye.getVerticalCoordinateString=function(D){return Ir(ac(D))},la=c.strokeColor||"0 G";ye.__private__.getStrokeColor=ye.getDrawColor=function(){return so(la)},ye.__private__.setStrokeColor=ye.setDrawColor=function(D,We,Lt,Yt){return la=Va({ch1:D,ch2:We,ch3:Lt,ch4:Yt,pdfColorType:"draw",precision:2}),yt(la),this};var Oc=c.fillColor||"0 g";ye.__private__.getFillColor=ye.getFillColor=function(){return so(Oc)},ye.__private__.setFillColor=ye.setFillColor=function(D,We,Lt,Yt){return Oc=Va({ch1:D,ch2:We,ch3:Lt,ch4:Yt,pdfColorType:"fill",precision:2}),yt(Oc),this};var Gl=c.textColor||"0 g",IA=ye.__private__.getTextColor=ye.getTextColor=function(){return so(Gl)};ye.__private__.setTextColor=ye.setTextColor=function(D,We,Lt,Yt){return Gl=Va({ch1:D,ch2:We,ch3:Lt,ch4:Yt,pdfColorType:"text",precision:3}),this};var zr=c.charSpace,yd=ye.__private__.getCharSpace=ye.getCharSpace=function(){return parseFloat(zr||0)};ye.__private__.setCharSpace=ye.setCharSpace=function(D){if(isNaN(D))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return zr=D,this};var Qu=0;ye.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},ye.__private__.setLineCap=ye.setLineCap=function(D){var We=ye.CapJoinStyles[D];if(We===void 0)throw new Error("Line cap style of '"+D+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Qu=We,yt(We+" J"),this};var WA=0;ye.__private__.setLineJoin=ye.setLineJoin=function(D){var We=ye.CapJoinStyles[D];if(We===void 0)throw new Error("Line join style of '"+D+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return WA=We,yt(We+" j"),this},ye.__private__.setLineMiterLimit=ye.__private__.setMiterLimit=ye.setLineMiterLimit=ye.setMiterLimit=function(D){if(D=D||0,isNaN(D))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return yt(Ir(Ct(D))+" M"),this},ye.GState=Ma,ye.setGState=function(D){(D=typeof D=="string"?En[fi[D]]:GA(null,D)).equals(gi)||(yt("/"+D.id+" gs"),gi=D)};var GA=function(D,We){if(!D||!fi[D]){var Lt=!1;for(var Yt in En)if(En.hasOwnProperty(Yt)&&En[Yt].equals(We)){Lt=!0;break}if(Lt)We=En[Yt];else{var br="GS"+(Object.keys(En).length+1).toString(10);En[br]=We,We.id=br}return D&&(fi[D]=We.id),kn.publish("addGState",We),We}};ye.addGState=function(D,We){return GA(D,We),this},ye.saveGraphicsState=function(){return yt("q"),Qa.push({key:Fi,size:Tr,color:Gl}),this},ye.restoreGraphicsState=function(){yt("Q");var D=Qa.pop();return Fi=D.key,Tr=D.size,Gl=D.color,gi=null,this},ye.setCurrentTransformationMatrix=function(D){return yt(D.toString()+" cm"),this},ye.comment=function(D){return yt("#"+D),this};var oc=function(D,We){var Lt=D||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Lt},set:function(Xr){isNaN(Xr)||(Lt=parseFloat(Xr))}});var Yt=We||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Yt},set:function(Xr){isNaN(Xr)||(Yt=parseFloat(Xr))}});var br="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return br},set:function(Xr){br=Xr.toString()}}),this},Ku=function(D,We,Lt,Yt){oc.call(this,D,We),this.type="rect";var br=Lt||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return br},set:function(_n){isNaN(_n)||(br=parseFloat(_n))}});var Xr=Yt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Xr},set:function(_n){isNaN(_n)||(Xr=parseFloat(_n))}}),this},Au=function(){this.page=$n,this.currentPage=Re,this.pages=Ar.slice(0),this.pagesContext=ai.slice(0),this.x=_a,this.y=Hi,this.matrix=Ri,this.width=Uc(Re),this.height=Rc(Re),this.outputDestination=_r,this.id="",this.objectNumber=-1};Au.prototype.restore=function(){$n=this.page,Re=this.currentPage,ai=this.pagesContext,Ar=this.pages,_a=this.x,Hi=this.y,Ri=this.matrix,Hu(Re,this.width),MA(Re,this.height),_r=this.outputDestination};var Is=function(D,We,Lt,Yt,br){Mo.push(new Au),$n=Re=0,Ar=[],_a=D,Hi=We,Ri=br,gc([Lt,Yt])},Tc=function(D){if(qi[D])Mo.pop().restore();else{var We=new Au,Lt="Xo"+(Object.keys(Gi).length+1).toString(10);We.id=Lt,qi[D]=Lt,Gi[Lt]=We,kn.publish("addFormObject",We),Mo.pop().restore()}};for(var Yc in ye.beginFormObject=function(D,We,Lt,Yt,br){return Is(D,We,Lt,Yt,br),this},ye.endFormObject=function(D){return Tc(D),this},ye.doFormObject=function(D,We){var Lt=Gi[qi[D]];return yt("q"),yt(We.toString()+" cm"),yt("/"+Lt.id+" Do"),yt("Q"),this},ye.getFormObject=function(D){var We=Gi[qi[D]];return{x:We.x,y:We.y,width:We.width,height:We.height,matrix:We.matrix}},ye.save=function(D,We){return D=D||"generated.pdf",(We=We||{}).returnPromise=We.returnPromise||!1,We.returnPromise===!1?(ra(vc($l()),D),typeof ra.unload=="function"&&on.setTimeout&&setTimeout(ra.unload,911),this):new Promise(function(Lt,Yt){try{var br=ra(vc($l()),D);typeof ra.unload=="function"&&on.setTimeout&&setTimeout(ra.unload,911),Lt(br)}catch(Xr){Yt(Xr.message)}})},Ai.API)Ai.API.hasOwnProperty(Yc)&&(Yc==="events"&&Ai.API.events.length?function(D,We){var Lt,Yt,br;for(br=We.length-1;br!==-1;br--)Lt=We[br][0],Yt=We[br][1],D.subscribe.apply(D,[Lt].concat(typeof Yt=="function"?[Yt]:Yt))}(kn,Ai.API.events):ye[Yc]=Ai.API[Yc]);var Uc=ye.getPageWidth=function(D){return(ai[D=D||Re].mediaBox.topRightX-ai[D].mediaBox.bottomLeftX)/vn},Hu=ye.setPageWidth=function(D,We){ai[D].mediaBox.topRightX=We*vn+ai[D].mediaBox.bottomLeftX},Rc=ye.getPageHeight=function(D){return(ai[D=D||Re].mediaBox.topRightY-ai[D].mediaBox.bottomLeftY)/vn},MA=ye.setPageHeight=function(D,We){ai[D].mediaBox.topRightY=We*vn+ai[D].mediaBox.bottomLeftY};return ye.internal={pdfEscape:ll,getStyle:Xo,getFont:bc,getFontSize:wr,getCharSpace:yd,getTextColor:IA,getLineHeight:Ol,getLineHeightFactor:os,getLineWidth:Zs,write:Fn,getHorizontalCoordinate:ys,getVerticalCoordinate:ac,getCoordinateString:FA,getVerticalCoordinateString:Nc,collections:{},newObject:wn,newAdditionalObject:ga,newObjectDeferred:no,newObjectDeferredBegin:Cs,getFilters:Si,putStream:bo,events:kn,scaleFactor:vn,pageSize:{getWidth:function(){return Uc(Re)},setWidth:function(D){Hu(Re,D)},getHeight:function(){return Rc(Re)},setHeight:function(D){MA(Re,D)}},encryptionOptions:$e,encryption:Fs,getEncryptor:SA,output:nc,getNumberOfPages:rc,pages:Ar,out:yt,f2:Jr,f3:vt,getPageInfo:AA,getPageInfoByObjId:sa,getCurrentPageInfo:EA,getPDFVersion:wt,Point:oc,Rectangle:Ku,Matrix:Ii,hasHotfix:fn},Object.defineProperty(ye.internal.pageSize,"width",{get:function(){return Uc(Re)},set:function(D){Hu(Re,D)},enumerable:!0,configurable:!0}),Object.defineProperty(ye.internal.pageSize,"height",{get:function(){return Rc(Re)},set:function(D){MA(Re,D)},enumerable:!0,configurable:!0}),Es.call(ye,yr),Fi="F1",Ca(F,l),kn.publish("initialized"),ye}na.prototype.lsbFirstWord=function(c){return String.fromCharCode(c>>0&255,c>>8&255,c>>16&255,c>>24&255)},na.prototype.toHexString=function(c){return c.split("").map(function(o){return("0"+(255&o.charCodeAt(0)).toString(16)).slice(-2)}).join("")},na.prototype.hexToBytes=function(c){for(var o=[],l=0;l<c.length;l+=2)o.push(String.fromCharCode(parseInt(c.substr(l,2),16)));return o.join("")},na.prototype.processOwnerPassword=function(c,o){return ha(Nn(o).substr(0,5),c)},na.prototype.encryptor=function(c,o){var l=Nn(this.encryptionKey+String.fromCharCode(255&c,c>>8&255,c>>16&255,255&o,o>>8&255)).substr(0,10);return function(b){return ha(l,b)}},Ma.prototype.equals=function(c){var o,l="id,objectNumber,equals";if(!c||(0,pe.Z)(c)!==(0,pe.Z)(this))return!1;var b=0;for(o in this)if(!(l.indexOf(o)>=0)){if(this.hasOwnProperty(o)&&!c.hasOwnProperty(o)||this[o]!==c[o])return!1;b++}for(o in c)c.hasOwnProperty(o)&&l.indexOf(o)<0&&b--;return b===0},Ai.API={events:[]},Ai.version="3.0.1";var ua=Ai.API,Do=1,uo=function(c){return c.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Xa=function(c){return c.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Di=function(c){return c.toFixed(2)},Po=function(c){return c.toFixed(5)};ua.__acroform__={};var fo=function(c,o){c.prototype=Object.create(o.prototype),c.prototype.constructor=c},il=function(c){return c*Do},$o=function(c){var o=new wa,l=Kn.internal.getHeight(c)||0,b=Kn.internal.getWidth(c)||0;return o.BBox=[0,0,Number(Di(b)),Number(Di(l))],o},Hs=ua.__acroform__.setBit=function(c,o){if(c=c||0,o=o||0,isNaN(c)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return c|=1<<o},Zo=ua.__acroform__.clearBit=function(c,o){if(c=c||0,o=o||0,isNaN(c)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return c&=~(1<<o)},vl=ua.__acroform__.getBit=function(c,o){if(isNaN(c)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return c&1<<o?1:0},za=ua.__acroform__.getBitForPdf=function(c,o){if(isNaN(c)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return vl(c,o-1)},Ra=ua.__acroform__.setBitForPdf=function(c,o){if(isNaN(c)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Hs(c,o-1)},Ea=ua.__acroform__.clearBitForPdf=function(c,o){if(isNaN(c)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Zo(c,o-1)},js=ua.__acroform__.calculateCoordinates=function(c,o){var l=o.internal.getHorizontalCoordinate,b=o.internal.getVerticalCoordinate,F=c[0],C=c[1],T=c[2],Z=c[3],ae={};return ae.lowerLeft_X=l(F)||0,ae.lowerLeft_Y=b(C+Z)||0,ae.upperRight_X=l(F+T)||0,ae.upperRight_Y=b(C)||0,[Number(Di(ae.lowerLeft_X)),Number(Di(ae.lowerLeft_Y)),Number(Di(ae.upperRight_X)),Number(Di(ae.upperRight_Y))]},yi=function(c){if(c.appearanceStreamContent)return c.appearanceStreamContent;if(c.V||c.DV){var o=[],l=c._V||c.DV,b=Zi(c,l),F=c.scope.internal.getFont(c.fontName,c.fontStyle).id;o.push("/Tx BMC"),o.push("q"),o.push("BT"),o.push(c.scope.__private__.encodeColorString(c.color)),o.push("/"+F+" "+Di(b.fontSize)+" Tf"),o.push("1 0 0 1 0 0 Tm"),o.push(b.text),o.push("ET"),o.push("Q"),o.push("EMC");var C=$o(c);return C.scope=c.scope,C.stream=o.join(`
|
|
|
`),C}},Zi=function(c,o){var l=c.fontSize===0?c.maxFontSize:c.fontSize,b={text:"",fontSize:""},F=(o=(o=o.substr(0,1)=="("?o.substr(1):o).substr(o.length-1)==")"?o.substr(0,o.length-1):o).split(" ");F=c.multiline?F.map(function(vt){return vt.split(`
|
|
|
`)}):F.map(function(vt){return[vt]});var C=l,T=Kn.internal.getHeight(c)||0;T=T<0?-T:T;var Z=Kn.internal.getWidth(c)||0;Z=Z<0?-Z:Z;var ae=function(vt,Ct,rr){if(vt+1<F.length){var U=Ct+" "+F[vt+1][0];return Pi(U,c,rr).width<=Z-4}return!1};C++;e:for(;C>0;){o="",C--;var _e,$e,Ze=Pi("3",c,C).height,at=c.multiline?T-C:(T-Ze)/2,ye=at+=2,kt=0,wt=0,Dt=0;if(C<=0){o=`(...) Tj
|
|
|
`,o+="% Width of Text: "+Pi(o,c,C=12).width+", FieldWidth:"+Z+`
|
|
|
`;break}for(var ht="",Pt=0,ar=0;ar<F.length;ar++)if(F.hasOwnProperty(ar)){var xr=!1;if(F[ar].length!==1&&Dt!==F[ar].length-1){if((Ze+2)*(Pt+2)+2>T)continue e;ht+=F[ar][Dt],xr=!0,wt=ar,ar--}else{ht=(ht+=F[ar][Dt]+" ").substr(ht.length-1)==" "?ht.substr(0,ht.length-1):ht;var Kr=parseInt(ar),hn=ae(Kr,ht,C),Ir=ar>=F.length-1;if(hn&&!Ir){ht+=" ",Dt=0;continue}if(hn||Ir){if(Ir)wt=Kr;else if(c.multiline&&(Ze+2)*(Pt+2)+2>T)continue e}else{if(!c.multiline||(Ze+2)*(Pt+2)+2>T)continue e;wt=Kr}}for(var Vt="",Pr=kt;Pr<=wt;Pr++){var Jr=F[Pr];if(c.multiline){if(Pr===wt){Vt+=Jr[Dt]+" ",Dt=(Dt+1)%Jr.length;continue}if(Pr===kt){Vt+=Jr[Jr.length-1]+" ";continue}}Vt+=Jr[0]+" "}switch(Vt=Vt.substr(Vt.length-1)==" "?Vt.substr(0,Vt.length-1):Vt,$e=Pi(Vt,c,C).width,c.textAlign){case"right":_e=Z-$e-2;break;case"center":_e=(Z-$e)/2;break;case"left":default:_e=2}o+=Di(_e)+" "+Di(ye)+` Td
|
|
|
`,o+="("+uo(Vt)+`) Tj
|
|
|
`,o+=-Di(_e)+` 0 Td
|
|
|
`,ye=-(C+2),$e=0,kt=xr?wt:wt+1,Pt++,ht=""}break}return b.text=o,b.fontSize=C,b},Pi=function(c,o,l){var b=o.scope.internal.getFont(o.fontName,o.fontStyle),F=o.scope.getStringUnitWidth(c,{font:b,fontSize:parseFloat(l),charSpace:0})*parseFloat(l);return{height:o.scope.getStringUnitWidth("3",{font:b,fontSize:parseFloat(l),charSpace:0})*parseFloat(l)*1.5,width:F}},Vi={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},da=function(c,o){var l={type:"reference",object:c};o.internal.getPageInfo(c.page).pageContext.annotations.find(function(b){return b.type===l.type&&b.object===l.object})===void 0&&o.internal.getPageInfo(c.page).pageContext.annotations.push(l)},La=function(c,o){for(var l in c)if(c.hasOwnProperty(l)){var b=l,F=c[l];o.internal.newObjectDeferredBegin(F.objId,!0),(0,pe.Z)(F)==="object"&&typeof F.putStream=="function"&&F.putStream(),delete c[b]}},Vo=function(c,o){if(o.scope=c,c.internal!==void 0&&(c.internal.acroformPlugin===void 0||c.internal.acroformPlugin.isInitialized===!1)){if(Na.FieldNum=0,c.internal.acroformPlugin=JSON.parse(JSON.stringify(Vi)),c.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Do=c.internal.scaleFactor,c.internal.acroformPlugin.acroFormDictionaryRoot=new pa,c.internal.acroformPlugin.acroFormDictionaryRoot.scope=c,c.internal.acroformPlugin.acroFormDictionaryRoot._eventID=c.internal.events.subscribe("postPutResources",function(){(function(l){l.internal.events.unsubscribe(l.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete l.internal.acroformPlugin.acroFormDictionaryRoot._eventID,l.internal.acroformPlugin.printedOut=!0})(c)}),c.internal.events.subscribe("buildDocument",function(){(function(l){l.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var b=l.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var F in b)if(b.hasOwnProperty(F)){var C=b[F];C.objId=void 0,C.hasAnnotation&&da(C,l)}})(c)}),c.internal.events.subscribe("putCatalog",function(){(function(l){if(l.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");l.internal.write("/AcroForm "+l.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(c)}),c.internal.events.subscribe("postPutPages",function(l){(function(b,F){var C=!b;for(var T in b||(F.internal.newObjectDeferredBegin(F.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),F.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),b=b||F.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(b.hasOwnProperty(T)){var Z=b[T],ae=[],_e=Z.Rect;if(Z.Rect&&(Z.Rect=js(Z.Rect,F)),F.internal.newObjectDeferredBegin(Z.objId,!0),Z.DA=Kn.createDefaultAppearanceStream(Z),(0,pe.Z)(Z)==="object"&&typeof Z.getKeyValueListForStream=="function"&&(ae=Z.getKeyValueListForStream()),Z.Rect=_e,Z.hasAppearanceStream&&!Z.appearanceStreamContent){var $e=yi(Z);ae.push({key:"AP",value:"<</N "+$e+">>"}),F.internal.acroformPlugin.xForms.push($e)}if(Z.appearanceStreamContent){var Ze="";for(var at in Z.appearanceStreamContent)if(Z.appearanceStreamContent.hasOwnProperty(at)){var ye=Z.appearanceStreamContent[at];if(Ze+="/"+at+" ",Ze+="<<",Object.keys(ye).length>=1||Array.isArray(ye)){for(var T in ye)if(ye.hasOwnProperty(T)){var kt=ye[T];typeof kt=="function"&&(kt=kt.call(F,Z)),Ze+="/"+T+" "+kt+" ",F.internal.acroformPlugin.xForms.indexOf(kt)>=0||F.internal.acroformPlugin.xForms.push(kt)}}else typeof(kt=ye)=="function"&&(kt=kt.call(F,Z)),Ze+="/"+T+" "+kt,F.internal.acroformPlugin.xForms.indexOf(kt)>=0||F.internal.acroformPlugin.xForms.push(kt);Ze+=">>"}ae.push({key:"AP",value:`<<
|
|
|
`+Ze+">>"})}F.internal.putStream({additionalKeyValues:ae,objectId:Z.objId}),F.internal.out("endobj")}C&&La(F.internal.acroformPlugin.xForms,F)})(l,c)}),c.internal.acroformPlugin.isInitialized=!0}},_o=ua.__acroform__.arrayToPdfArray=function(c,o,l){var b=function(T){return T};if(Array.isArray(c)){for(var F="[",C=0;C<c.length;C++)switch(C!==0&&(F+=" "),(0,pe.Z)(c[C])){case"boolean":case"number":case"object":F+=c[C].toString();break;case"string":c[C].substr(0,1)!=="/"?(o!==void 0&&l&&(b=l.internal.getEncryptor(o)),F+="("+uo(b(c[C].toString()))+")"):F+=c[C].toString()}return F+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Bo=function(c,o,l){var b=function(F){return F};return o!==void 0&&l&&(b=l.internal.getEncryptor(o)),(c=c||"").toString(),c="("+uo(b(c))+")"},$a=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(c){this._objId=c}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};$a.prototype.toString=function(){return this.objId+" 0 R"},$a.prototype.putStream=function(){var c=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:c,objectId:this.objId}),this.scope.internal.out("endobj")},$a.prototype.getKeyValueListForStream=function(){var c=[],o=Object.getOwnPropertyNames(this).filter(function(C){return C!="content"&&C!="appearanceStreamContent"&&C!="scope"&&C!="objId"&&C.substring(0,1)!="_"});for(var l in o)if(Object.getOwnPropertyDescriptor(this,o[l]).configurable===!1){var b=o[l],F=this[b];F&&(Array.isArray(F)?c.push({key:b,value:_o(F,this.objId,this.scope)}):F instanceof $a?(F.scope=this.scope,c.push({key:b,value:F.objId+" 0 R"})):typeof F!="function"&&c.push({key:b,value:F}))}return c};var wa=function(){$a.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var c,o=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return o},set:function(l){o=l}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(l){c=l.trim()},get:function(){return c||null}})};fo(wa,$a);var pa=function(){$a.call(this);var c,o=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return o.length>0?o:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return o}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(c){var l=function(b){return b};return this.scope&&(l=this.scope.internal.getEncryptor(this.objId)),"("+uo(l(c))+")"}},set:function(l){c=l}})};fo(pa,$a);var Na=function c(){$a.call(this);var o=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return o},set:function(ht){if(isNaN(ht))throw new Error('Invalid value "'+ht+'" for attribute F supplied.');o=ht}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!za(o,3)},set:function(ht){ht?this.F=Ra(o,3):this.F=Ea(o,3)}});var l=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return l},set:function(ht){if(isNaN(ht))throw new Error('Invalid value "'+ht+'" for attribute Ff supplied.');l=ht}});var b=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(b.length!==0)return b},set:function(ht){b=ht!==void 0?ht:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!b||isNaN(b[0])?0:b[0]},set:function(ht){b[0]=ht}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!b||isNaN(b[1])?0:b[1]},set:function(ht){b[1]=ht}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!b||isNaN(b[2])?0:b[2]},set:function(ht){b[2]=ht}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!b||isNaN(b[3])?0:b[3]},set:function(ht){b[3]=ht}});var F="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return F},set:function(ht){switch(ht){case"/Btn":case"/Tx":case"/Ch":case"/Sig":F=ht;break;default:throw new Error('Invalid value "'+ht+'" for attribute FT supplied.')}}});var C=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!C||C.length<1){if(this instanceof dl)return;C="FieldObject"+c.FieldNum++}var ht=function(Pt){return Pt};return this.scope&&(ht=this.scope.internal.getEncryptor(this.objId)),"("+uo(ht(C))+")"},set:function(ht){C=ht.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return C},set:function(ht){C=ht}});var T="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return T},set:function(ht){T=ht}});var Z="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return Z},set:function(ht){Z=ht}});var ae=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return ae},set:function(ht){ae=ht}});var _e=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return _e===void 0?50/Do:_e},set:function(ht){_e=ht}});var $e="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return $e},set:function(ht){$e=ht}});var Ze="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Ze||this instanceof dl||this instanceof ks))return Bo(Ze,this.objId,this.scope)},set:function(ht){ht=ht.toString(),Ze=ht}});var at=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(at)return this instanceof Fo?at:Bo(at,this.objId,this.scope)},set:function(ht){ht=ht.toString(),at=this instanceof Fo?ht:ht.substr(0,1)==="("?Xa(ht.substr(1,ht.length-2)):Xa(ht)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Fo?Xa(at.substr(1,at.length-1)):at},set:function(ht){ht=ht.toString(),at=this instanceof Fo?"/"+ht:ht}});var ye=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(ye)return ye},set:function(ht){this.V=ht}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(ye)return this instanceof Fo?ye:Bo(ye,this.objId,this.scope)},set:function(ht){ht=ht.toString(),ye=this instanceof Fo?ht:ht.substr(0,1)==="("?Xa(ht.substr(1,ht.length-2)):Xa(ht)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Fo?Xa(ye.substr(1,ye.length-1)):ye},set:function(ht){ht=ht.toString(),ye=this instanceof Fo?"/"+ht:ht}}),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 kt,wt=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return wt},set:function(ht){ht=!!ht,wt=ht}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(kt)return kt},set:function(ht){kt=ht}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,1)},set:function(ht){ht?this.Ff=Ra(this.Ff,1):this.Ff=Ea(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,2)},set:function(ht){ht?this.Ff=Ra(this.Ff,2):this.Ff=Ea(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,3)},set:function(ht){ht?this.Ff=Ra(this.Ff,3):this.Ff=Ea(this.Ff,3)}});var Dt=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(Dt!==null)return Dt},set:function(ht){if([0,1,2].indexOf(ht)===-1)throw new Error('Invalid value "'+ht+'" for attribute Q supplied.');Dt=ht}}),Object.defineProperty(this,"textAlign",{get:function(){var ht;switch(Dt){case 0:default:ht="left";break;case 1:ht="center";break;case 2:ht="right"}return ht},configurable:!0,enumerable:!0,set:function(ht){switch(ht){case"right":case 2:Dt=2;break;case"center":case 1:Dt=1;break;case"left":case 0:default:Dt=0}}})};fo(Na,$a);var Ja=function(){Na.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var c=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return c},set:function(l){c=l}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return c},set:function(l){c=l}});var o=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return _o(o,this.objId,this.scope)},set:function(l){var b,F;F=[],typeof(b=l)=="string"&&(F=function(C,T,Z){Z||(Z=1);for(var ae,_e=[];ae=T.exec(C);)_e.push(ae[Z]);return _e}(b,/\((.*?)\)/g)),o=F}}),this.getOptions=function(){return o},this.setOptions=function(l){o=l,this.sort&&o.sort()},this.addOption=function(l){l=(l=l||"").toString(),o.push(l),this.sort&&o.sort()},this.removeOption=function(l,b){for(b=b||!1,l=(l=l||"").toString();o.indexOf(l)!==-1&&(o.splice(o.indexOf(l),1),b!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,18)},set:function(l){l?this.Ff=Ra(this.Ff,18):this.Ff=Ea(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,19)},set:function(l){this.combo===!0&&(l?this.Ff=Ra(this.Ff,19):this.Ff=Ea(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,20)},set:function(l){l?(this.Ff=Ra(this.Ff,20),o.sort()):this.Ff=Ea(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,22)},set:function(l){l?this.Ff=Ra(this.Ff,22):this.Ff=Ea(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,23)},set:function(l){l?this.Ff=Ra(this.Ff,23):this.Ff=Ea(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,27)},set:function(l){l?this.Ff=Ra(this.Ff,27):this.Ff=Ea(this.Ff,27)}}),this.hasAppearanceStream=!1};fo(Ja,Na);var oo=function(){Ja.call(this),this.fontName="helvetica",this.combo=!1};fo(oo,Ja);var Ta=function(){oo.call(this),this.combo=!0};fo(Ta,oo);var ka=function(){Ta.call(this),this.edit=!0};fo(ka,Ta);var Fo=function(){Na.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,15)},set:function(l){l?this.Ff=Ra(this.Ff,15):this.Ff=Ea(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,16)},set:function(l){l?this.Ff=Ra(this.Ff,16):this.Ff=Ea(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,17)},set:function(l){l?this.Ff=Ra(this.Ff,17):this.Ff=Ea(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,26)},set:function(l){l?this.Ff=Ra(this.Ff,26):this.Ff=Ea(this.Ff,26)}});var c,o={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var l=function(C){return C};if(this.scope&&(l=this.scope.internal.getEncryptor(this.objId)),Object.keys(o).length!==0){var b,F=[];for(b in F.push("<<"),o)F.push("/"+b+" ("+uo(l(o[b]))+")");return F.push(">>"),F.join(`
|
|
|
`)}},set:function(l){(0,pe.Z)(l)==="object"&&(o=l)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return o.CA||""},set:function(l){typeof l=="string"&&(o.CA=l)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return c},set:function(l){c=l}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return c.substr(1,c.length-1)},set:function(l){c="/"+l}})};fo(Fo,Na);var Ll=function(){Fo.call(this),this.pushButton=!0};fo(Ll,Fo);var cs=function(){Fo.call(this),this.radio=!0,this.pushButton=!1;var c=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return c},set:function(o){c=o!==void 0?o:[]}})};fo(cs,Fo);var dl=function(){var c,o;Na.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return c},set:function(F){c=F}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return o},set:function(F){o=F}});var l,b={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var F=function(Z){return Z};this.scope&&(F=this.scope.internal.getEncryptor(this.objId));var C,T=[];for(C in T.push("<<"),b)T.push("/"+C+" ("+uo(F(b[C]))+")");return T.push(">>"),T.join(`
|
|
|
`)},set:function(F){(0,pe.Z)(F)==="object"&&(b=F)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return b.CA||""},set:function(F){typeof F=="string"&&(b.CA=F)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return l},set:function(F){l=F}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return l.substr(1,l.length-1)},set:function(F){l="/"+F}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Kn.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};fo(dl,Na),cs.prototype.setAppearance=function(c){if(!("createAppearanceStream"in c)||!("getCA"in c))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var o in this.Kids)if(this.Kids.hasOwnProperty(o)){var l=this.Kids[o];l.appearanceStreamContent=c.createAppearanceStream(l.optionName),l.caption=c.getCA()}},cs.prototype.createOption=function(c){var o=new dl;return o.Parent=this,o.optionName=c,this.Kids.push(o),kl.call(this.scope,o),o};var Oo=function(){Fo.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Kn.CheckBox.createAppearanceStream()};fo(Oo,Fo);var ks=function(){Na.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,13)},set:function(o){o?this.Ff=Ra(this.Ff,13):this.Ff=Ea(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,21)},set:function(o){o?this.Ff=Ra(this.Ff,21):this.Ff=Ea(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,23)},set:function(o){o?this.Ff=Ra(this.Ff,23):this.Ff=Ea(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,24)},set:function(o){o?this.Ff=Ra(this.Ff,24):this.Ff=Ea(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,25)},set:function(o){o?this.Ff=Ra(this.Ff,25):this.Ff=Ea(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,26)},set:function(o){o?this.Ff=Ra(this.Ff,26):this.Ff=Ea(this.Ff,26)}});var c=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return c},set:function(o){c=o}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return c},set:function(o){Number.isInteger(o)&&(c=o)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};fo(ks,Na);var Io=function(){ks.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!za(this.Ff,14)},set:function(c){c?this.Ff=Ra(this.Ff,14):this.Ff=Ea(this.Ff,14)}}),this.password=!0};fo(Io,ks);var Kn={CheckBox:{createAppearanceStream:function(){return{N:{On:Kn.CheckBox.YesNormal},D:{On:Kn.CheckBox.YesPushDown,Off:Kn.CheckBox.OffPushDown}}},YesPushDown:function(c){var o=$o(c);o.scope=c.scope;var l=[],b=c.scope.internal.getFont(c.fontName,c.fontStyle).id,F=c.scope.__private__.encodeColorString(c.color),C=Zi(c,c.caption);return l.push("0.749023 g"),l.push("0 0 "+Di(Kn.internal.getWidth(c))+" "+Di(Kn.internal.getHeight(c))+" re"),l.push("f"),l.push("BMC"),l.push("q"),l.push("0 0 1 rg"),l.push("/"+b+" "+Di(C.fontSize)+" Tf "+F),l.push("BT"),l.push(C.text),l.push("ET"),l.push("Q"),l.push("EMC"),o.stream=l.join(`
|
|
|
`),o},YesNormal:function(c){var o=$o(c);o.scope=c.scope;var l=c.scope.internal.getFont(c.fontName,c.fontStyle).id,b=c.scope.__private__.encodeColorString(c.color),F=[],C=Kn.internal.getHeight(c),T=Kn.internal.getWidth(c),Z=Zi(c,c.caption);return F.push("1 g"),F.push("0 0 "+Di(T)+" "+Di(C)+" re"),F.push("f"),F.push("q"),F.push("0 0 1 rg"),F.push("0 0 "+Di(T-1)+" "+Di(C-1)+" re"),F.push("W"),F.push("n"),F.push("0 g"),F.push("BT"),F.push("/"+l+" "+Di(Z.fontSize)+" Tf "+b),F.push(Z.text),F.push("ET"),F.push("Q"),o.stream=F.join(`
|
|
|
`),o},OffPushDown:function(c){var o=$o(c);o.scope=c.scope;var l=[];return l.push("0.749023 g"),l.push("0 0 "+Di(Kn.internal.getWidth(c))+" "+Di(Kn.internal.getHeight(c))+" re"),l.push("f"),o.stream=l.join(`
|
|
|
`),o}},RadioButton:{Circle:{createAppearanceStream:function(c){var o={D:{Off:Kn.RadioButton.Circle.OffPushDown},N:{}};return o.N[c]=Kn.RadioButton.Circle.YesNormal,o.D[c]=Kn.RadioButton.Circle.YesPushDown,o},getCA:function(){return"l"},YesNormal:function(c){var o=$o(c);o.scope=c.scope;var l=[],b=Kn.internal.getWidth(c)<=Kn.internal.getHeight(c)?Kn.internal.getWidth(c)/4:Kn.internal.getHeight(c)/4;b=Number((.9*b).toFixed(5));var F=Kn.internal.Bezier_C,C=Number((b*F).toFixed(5));return l.push("q"),l.push("1 0 0 1 "+Po(Kn.internal.getWidth(c)/2)+" "+Po(Kn.internal.getHeight(c)/2)+" cm"),l.push(b+" 0 m"),l.push(b+" "+C+" "+C+" "+b+" 0 "+b+" c"),l.push("-"+C+" "+b+" -"+b+" "+C+" -"+b+" 0 c"),l.push("-"+b+" -"+C+" -"+C+" -"+b+" 0 -"+b+" c"),l.push(C+" -"+b+" "+b+" -"+C+" "+b+" 0 c"),l.push("f"),l.push("Q"),o.stream=l.join(`
|
|
|
`),o},YesPushDown:function(c){var o=$o(c);o.scope=c.scope;var l=[],b=Kn.internal.getWidth(c)<=Kn.internal.getHeight(c)?Kn.internal.getWidth(c)/4:Kn.internal.getHeight(c)/4;b=Number((.9*b).toFixed(5));var F=Number((2*b).toFixed(5)),C=Number((F*Kn.internal.Bezier_C).toFixed(5)),T=Number((b*Kn.internal.Bezier_C).toFixed(5));return l.push("0.749023 g"),l.push("q"),l.push("1 0 0 1 "+Po(Kn.internal.getWidth(c)/2)+" "+Po(Kn.internal.getHeight(c)/2)+" cm"),l.push(F+" 0 m"),l.push(F+" "+C+" "+C+" "+F+" 0 "+F+" c"),l.push("-"+C+" "+F+" -"+F+" "+C+" -"+F+" 0 c"),l.push("-"+F+" -"+C+" -"+C+" -"+F+" 0 -"+F+" c"),l.push(C+" -"+F+" "+F+" -"+C+" "+F+" 0 c"),l.push("f"),l.push("Q"),l.push("0 g"),l.push("q"),l.push("1 0 0 1 "+Po(Kn.internal.getWidth(c)/2)+" "+Po(Kn.internal.getHeight(c)/2)+" cm"),l.push(b+" 0 m"),l.push(b+" "+T+" "+T+" "+b+" 0 "+b+" c"),l.push("-"+T+" "+b+" -"+b+" "+T+" -"+b+" 0 c"),l.push("-"+b+" -"+T+" -"+T+" -"+b+" 0 -"+b+" c"),l.push(T+" -"+b+" "+b+" -"+T+" "+b+" 0 c"),l.push("f"),l.push("Q"),o.stream=l.join(`
|
|
|
`),o},OffPushDown:function(c){var o=$o(c);o.scope=c.scope;var l=[],b=Kn.internal.getWidth(c)<=Kn.internal.getHeight(c)?Kn.internal.getWidth(c)/4:Kn.internal.getHeight(c)/4;b=Number((.9*b).toFixed(5));var F=Number((2*b).toFixed(5)),C=Number((F*Kn.internal.Bezier_C).toFixed(5));return l.push("0.749023 g"),l.push("q"),l.push("1 0 0 1 "+Po(Kn.internal.getWidth(c)/2)+" "+Po(Kn.internal.getHeight(c)/2)+" cm"),l.push(F+" 0 m"),l.push(F+" "+C+" "+C+" "+F+" 0 "+F+" c"),l.push("-"+C+" "+F+" -"+F+" "+C+" -"+F+" 0 c"),l.push("-"+F+" -"+C+" -"+C+" -"+F+" 0 -"+F+" c"),l.push(C+" -"+F+" "+F+" -"+C+" "+F+" 0 c"),l.push("f"),l.push("Q"),o.stream=l.join(`
|
|
|
`),o}},Cross:{createAppearanceStream:function(c){var o={D:{Off:Kn.RadioButton.Cross.OffPushDown},N:{}};return o.N[c]=Kn.RadioButton.Cross.YesNormal,o.D[c]=Kn.RadioButton.Cross.YesPushDown,o},getCA:function(){return"8"},YesNormal:function(c){var o=$o(c);o.scope=c.scope;var l=[],b=Kn.internal.calculateCross(c);return l.push("q"),l.push("1 1 "+Di(Kn.internal.getWidth(c)-2)+" "+Di(Kn.internal.getHeight(c)-2)+" re"),l.push("W"),l.push("n"),l.push(Di(b.x1.x)+" "+Di(b.x1.y)+" m"),l.push(Di(b.x2.x)+" "+Di(b.x2.y)+" l"),l.push(Di(b.x4.x)+" "+Di(b.x4.y)+" m"),l.push(Di(b.x3.x)+" "+Di(b.x3.y)+" l"),l.push("s"),l.push("Q"),o.stream=l.join(`
|
|
|
`),o},YesPushDown:function(c){var o=$o(c);o.scope=c.scope;var l=Kn.internal.calculateCross(c),b=[];return b.push("0.749023 g"),b.push("0 0 "+Di(Kn.internal.getWidth(c))+" "+Di(Kn.internal.getHeight(c))+" re"),b.push("f"),b.push("q"),b.push("1 1 "+Di(Kn.internal.getWidth(c)-2)+" "+Di(Kn.internal.getHeight(c)-2)+" re"),b.push("W"),b.push("n"),b.push(Di(l.x1.x)+" "+Di(l.x1.y)+" m"),b.push(Di(l.x2.x)+" "+Di(l.x2.y)+" l"),b.push(Di(l.x4.x)+" "+Di(l.x4.y)+" m"),b.push(Di(l.x3.x)+" "+Di(l.x3.y)+" l"),b.push("s"),b.push("Q"),o.stream=b.join(`
|
|
|
`),o},OffPushDown:function(c){var o=$o(c);o.scope=c.scope;var l=[];return l.push("0.749023 g"),l.push("0 0 "+Di(Kn.internal.getWidth(c))+" "+Di(Kn.internal.getHeight(c))+" re"),l.push("f"),o.stream=l.join(`
|
|
|
`),o}}},createDefaultAppearanceStream:function(c){var o=c.scope.internal.getFont(c.fontName,c.fontStyle).id,l=c.scope.__private__.encodeColorString(c.color);return"/"+o+" "+c.fontSize+" Tf "+l}};Kn.internal={Bezier_C:.551915024494,calculateCross:function(c){var o=Kn.internal.getWidth(c),l=Kn.internal.getHeight(c),b=Math.min(o,l);return{x1:{x:(o-b)/2,y:(l-b)/2+b},x2:{x:(o-b)/2+b,y:(l-b)/2},x3:{x:(o-b)/2,y:(l-b)/2},x4:{x:(o-b)/2+b,y:(l-b)/2+b}}}},Kn.internal.getWidth=function(c){var o=0;return(0,pe.Z)(c)==="object"&&(o=il(c.Rect[2])),o},Kn.internal.getHeight=function(c){var o=0;return(0,pe.Z)(c)==="object"&&(o=il(c.Rect[3])),o};var kl=ua.addField=function(c){if(Vo(this,c),!(c instanceof Na))throw new Error("Invalid argument passed to jsPDF.addField.");var o;return(o=c).scope.internal.acroformPlugin.printedOut&&(o.scope.internal.acroformPlugin.printedOut=!1,o.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),o.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(o),c.page=c.scope.internal.getCurrentPageInfo().pageNumber,this};ua.AcroFormChoiceField=Ja,ua.AcroFormListBox=oo,ua.AcroFormComboBox=Ta,ua.AcroFormEditBox=ka,ua.AcroFormButton=Fo,ua.AcroFormPushButton=Ll,ua.AcroFormRadioButton=cs,ua.AcroFormCheckBox=Oo,ua.AcroFormTextField=ks,ua.AcroFormPasswordField=Io,ua.AcroFormAppearance=Kn,ua.AcroForm={ChoiceField:Ja,ListBox:oo,ComboBox:Ta,EditBox:ka,Button:Fo,PushButton:Ll,RadioButton:cs,CheckBox:Oo,TextField:ks,PasswordField:Io,Appearance:Kn},Ai.AcroForm={ChoiceField:Ja,ListBox:oo,ComboBox:Ta,EditBox:ka,Button:Fo,PushButton:Ll,RadioButton:cs,CheckBox:Oo,TextField:ks,PasswordField:Io,Appearance:Kn};var To=Ai.AcroForm;function Hl(c){return c.reduce(function(o,l,b){return o[l]=b,o},{})}(function(c){c.__addimage__={};var o="UNKNOWN",l={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},b=c.__addimage__.getImageFileTypeByImageData=function(vt,Ct){var rr,U,re,Se,Ue,Ke=o;if((Ct=Ct||o)==="RGBA"||vt.data!==void 0&&vt.data instanceof Uint8ClampedArray&&"height"in vt&&"width"in vt)return"RGBA";if(hn(vt))for(Ue in l)for(re=l[Ue],rr=0;rr<re.length;rr+=1){for(Se=!0,U=0;U<re[rr].length;U+=1)if(re[rr][U]!==void 0&&re[rr][U]!==vt[U]){Se=!1;break}if(Se===!0){Ke=Ue;break}}else for(Ue in l)for(re=l[Ue],rr=0;rr<re.length;rr+=1){for(Se=!0,U=0;U<re[rr].length;U+=1)if(re[rr][U]!==void 0&&re[rr][U]!==vt.charCodeAt(U)){Se=!1;break}if(Se===!0){Ke=Ue;break}}return Ke===o&&Ct!==o&&(Ke=Ct),Ke},F=function vt(Ct){for(var rr=this.internal.write,U=this.internal.putStream,re=(0,this.internal.getFilters)();re.indexOf("FlateEncode")!==-1;)re.splice(re.indexOf("FlateEncode"),1);Ct.objectId=this.internal.newObject();var Se=[];if(Se.push({key:"Type",value:"/XObject"}),Se.push({key:"Subtype",value:"/Image"}),Se.push({key:"Width",value:Ct.width}),Se.push({key:"Height",value:Ct.height}),Ct.colorSpace===Dt.INDEXED?Se.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Ct.palette.length/3-1)+" "+("sMask"in Ct&&Ct.sMask!==void 0?Ct.objectId+2:Ct.objectId+1)+" 0 R]"}):(Se.push({key:"ColorSpace",value:"/"+Ct.colorSpace}),Ct.colorSpace===Dt.DEVICE_CMYK&&Se.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Se.push({key:"BitsPerComponent",value:Ct.bitsPerComponent}),"decodeParameters"in Ct&&Ct.decodeParameters!==void 0&&Se.push({key:"DecodeParms",value:"<<"+Ct.decodeParameters+">>"}),"transparency"in Ct&&Array.isArray(Ct.transparency)){for(var Ue="",Ke=0,Xe=Ct.transparency.length;Ke<Xe;Ke++)Ue+=Ct.transparency[Ke]+" "+Ct.transparency[Ke]+" ";Se.push({key:"Mask",value:"["+Ue+"]"})}Ct.sMask!==void 0&&Se.push({key:"SMask",value:Ct.objectId+1+" 0 R"});var dt=Ct.filter!==void 0?["/"+Ct.filter]:void 0;if(U({data:Ct.data,additionalKeyValues:Se,alreadyAppliedFilters:dt,objectId:Ct.objectId}),rr("endobj"),"sMask"in Ct&&Ct.sMask!==void 0){var St="/Predictor "+Ct.predictor+" /Colors 1 /BitsPerComponent "+Ct.bitsPerComponent+" /Columns "+Ct.width,le={width:Ct.width,height:Ct.height,colorSpace:"DeviceGray",bitsPerComponent:Ct.bitsPerComponent,decodeParameters:St,data:Ct.sMask};"filter"in Ct&&(le.filter=Ct.filter),vt.call(this,le)}if(Ct.colorSpace===Dt.INDEXED){var Re=this.internal.newObject();U({data:Vt(new Uint8Array(Ct.palette)),objectId:Re}),rr("endobj")}},C=function(){var vt=this.internal.collections.addImage_images;for(var Ct in vt)F.call(this,vt[Ct])},T=function(){var vt,Ct=this.internal.collections.addImage_images,rr=this.internal.write;for(var U in Ct)rr("/I"+(vt=Ct[U]).index,vt.objectId,"0","R")},Z=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",C),this.internal.events.subscribe("putXobjectDict",T))},ae=function(){var vt=this.internal.collections.addImage_images;return Z.call(this),vt},_e=function(){return Object.keys(this.internal.collections.addImage_images).length},$e=function(vt){return typeof c["process"+vt.toUpperCase()]=="function"},Ze=function(vt){return(0,pe.Z)(vt)==="object"&&vt.nodeType===1},at=function(vt,Ct){if(vt.nodeName==="IMG"&&vt.hasAttribute("src")){var rr=""+vt.getAttribute("src");if(rr.indexOf("data:image/")===0)return Xn(unescape(rr).split("base64,").pop());var U=c.loadFile(rr,!0);if(U!==void 0)return U}if(vt.nodeName==="CANVAS"){if(vt.width===0||vt.height===0)throw new Error("Given canvas must have data. Canvas width: "+vt.width+", height: "+vt.height);var re;switch(Ct){case"PNG":re="image/png";break;case"WEBP":re="image/webp";break;case"JPEG":case"JPG":default:re="image/jpeg"}return Xn(vt.toDataURL(re,1).split("base64,").pop())}},ye=function(vt){var Ct=this.internal.collections.addImage_images;if(Ct){for(var rr in Ct)if(vt===Ct[rr].alias)return Ct[rr]}},kt=function(vt,Ct,rr){return vt||Ct||(vt=-96,Ct=-96),vt<0&&(vt=-1*rr.width*72/vt/this.internal.scaleFactor),Ct<0&&(Ct=-1*rr.height*72/Ct/this.internal.scaleFactor),vt===0&&(vt=Ct*rr.width/rr.height),Ct===0&&(Ct=vt*rr.height/rr.width),[vt,Ct]},wt=function(vt,Ct,rr,U,re,Se){var Ue=kt.call(this,rr,U,re),Ke=this.internal.getCoordinateString,Xe=this.internal.getVerticalCoordinateString,dt=ae.call(this);if(rr=Ue[0],U=Ue[1],dt[re.index]=re,Se){Se*=Math.PI/180;var St=Math.cos(Se),le=Math.sin(Se),Re=function(et){return et.toFixed(4)},Ye=[Re(St),Re(le),Re(-1*le),Re(St),0,0,"cm"]}this.internal.write("q"),Se?(this.internal.write([1,"0","0",1,Ke(vt),Xe(Ct+U),"cm"].join(" ")),this.internal.write(Ye.join(" ")),this.internal.write([Ke(rr),"0","0",Ke(U),"0","0","cm"].join(" "))):this.internal.write([Ke(rr),"0","0",Ke(U),Ke(vt),Xe(Ct+U),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+re.index+" Do"),this.internal.write("Q")},Dt=c.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};c.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var ht=c.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Pt=c.__addimage__.sHashCode=function(vt){var Ct,rr,U=0;if(typeof vt=="string")for(rr=vt.length,Ct=0;Ct<rr;Ct++)U=(U<<5)-U+vt.charCodeAt(Ct),U|=0;else if(hn(vt))for(rr=vt.byteLength/2,Ct=0;Ct<rr;Ct++)U=(U<<5)-U+vt[Ct],U|=0;return U},ar=c.__addimage__.validateStringAsBase64=function(vt){(vt=vt||"").toString().trim();var Ct=!0;return vt.length===0&&(Ct=!1),vt.length%4!=0&&(Ct=!1),/^[A-Za-z0-9+/]+$/.test(vt.substr(0,vt.length-2))===!1&&(Ct=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(vt.substr(-2))===!1&&(Ct=!1),Ct},xr=c.__addimage__.extractImageFromDataUrl=function(vt){if(vt==null||!(vt=vt.trim()).startsWith("data:"))return null;var Ct=vt.indexOf(",");return Ct<0?null:vt.substring(0,Ct).trim().endsWith("base64")?vt.substring(Ct+1):null},Kr=c.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};c.__addimage__.isArrayBuffer=function(vt){return Kr()&&vt instanceof ArrayBuffer};var hn=c.__addimage__.isArrayBufferView=function(vt){return Kr()&&typeof Uint32Array!="undefined"&&(vt instanceof Int8Array||vt instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&vt instanceof Uint8ClampedArray||vt instanceof Int16Array||vt instanceof Uint16Array||vt instanceof Int32Array||vt instanceof Uint32Array||vt instanceof Float32Array||vt instanceof Float64Array)},Ir=c.__addimage__.binaryStringToUint8Array=function(vt){for(var Ct=vt.length,rr=new Uint8Array(Ct),U=0;U<Ct;U++)rr[U]=vt.charCodeAt(U);return rr},Vt=c.__addimage__.arrayBufferToBinaryString=function(vt){for(var Ct="",rr=hn(vt)?vt:new Uint8Array(vt),U=0;U<rr.length;U+=8192)Ct+=String.fromCharCode.apply(null,rr.subarray(U,U+8192));return Ct};c.addImage=function(){var vt,Ct,rr,U,re,Se,Ue,Ke,Xe;if(typeof arguments[1]=="number"?(Ct=o,rr=arguments[1],U=arguments[2],re=arguments[3],Se=arguments[4],Ue=arguments[5],Ke=arguments[6],Xe=arguments[7]):(Ct=arguments[1],rr=arguments[2],U=arguments[3],re=arguments[4],Se=arguments[5],Ue=arguments[6],Ke=arguments[7],Xe=arguments[8]),(0,pe.Z)(vt=arguments[0])==="object"&&!Ze(vt)&&"imageData"in vt){var dt=vt;vt=dt.imageData,Ct=dt.format||Ct||o,rr=dt.x||rr||0,U=dt.y||U||0,re=dt.w||dt.width||re,Se=dt.h||dt.height||Se,Ue=dt.alias||Ue,Ke=dt.compression||Ke,Xe=dt.rotation||dt.angle||Xe}var St=this.internal.getFilters();if(Ke===void 0&&St.indexOf("FlateEncode")!==-1&&(Ke="SLOW"),isNaN(rr)||isNaN(U))throw new Error("Invalid coordinates passed to jsPDF.addImage");Z.call(this);var le=Pr.call(this,vt,Ct,Ue,Ke);return wt.call(this,rr,U,re,Se,le,Xe),this};var Pr=function(vt,Ct,rr,U){var re,Se,Ue;if(typeof vt=="string"&&b(vt)===o){vt=unescape(vt);var Ke=Jr(vt,!1);(Ke!==""||(Ke=c.loadFile(vt,!0))!==void 0)&&(vt=Ke)}if(Ze(vt)&&(vt=at(vt,Ct)),Ct=b(vt,Ct),!$e(Ct))throw new Error("addImage does not support files of type '"+Ct+"', please ensure that a plugin for '"+Ct+"' support is added.");if(((Ue=rr)==null||Ue.length===0)&&(rr=function(Xe){return typeof Xe=="string"||hn(Xe)?Pt(Xe):hn(Xe.data)?Pt(Xe.data):null}(vt)),(re=ye.call(this,rr))||(Kr()&&(vt instanceof Uint8Array||Ct==="RGBA"||(Se=vt,vt=Ir(vt))),re=this["process"+Ct.toUpperCase()](vt,_e.call(this),rr,function(Xe){return Xe&&typeof Xe=="string"&&(Xe=Xe.toUpperCase()),Xe in c.image_compression?Xe:ht.NONE}(U),Se)),!re)throw new Error("An unknown error occurred whilst processing the image.");return re},Jr=c.__addimage__.convertBase64ToBinaryString=function(vt,Ct){Ct=typeof Ct!="boolean"||Ct;var rr,U="";if(typeof vt=="string"){var re;rr=(re=xr(vt))!==null&&re!==void 0?re:vt;try{U=Xn(rr)}catch(Se){if(Ct)throw ar(rr)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Se.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return U};c.getImageProperties=function(vt){var Ct,rr,U="";if(Ze(vt)&&(vt=at(vt)),typeof vt=="string"&&b(vt)===o&&((U=Jr(vt,!1))===""&&(U=c.loadFile(vt)||""),vt=U),rr=b(vt),!$e(rr))throw new Error("addImage does not support files of type '"+rr+"', please ensure that a plugin for '"+rr+"' support is added.");if(!Kr()||vt instanceof Uint8Array||(vt=Ir(vt)),!(Ct=this["process"+rr.toUpperCase()](vt)))throw new Error("An unknown error occurred whilst processing the image");return Ct.fileType=rr,Ct}})(Ai.API),function(c){var o=function(l){if(l!==void 0&&l!="")return!0};Ai.API.events.push(["addPage",function(l){this.internal.getPageInfo(l.pageNumber).pageContext.annotations=[]}]),c.events.push(["putPage",function(l){for(var b,F,C,T=this.internal.getCoordinateString,Z=this.internal.getVerticalCoordinateString,ae=this.internal.getPageInfoByObjId(l.objId),_e=l.pageContext.annotations,$e=!1,Ze=0;Ze<_e.length&&!$e;Ze++)switch((b=_e[Ze]).type){case"link":(o(b.options.url)||o(b.options.pageNumber))&&($e=!0);break;case"reference":case"text":case"freetext":$e=!0}if($e!=0){this.internal.write("/Annots [");for(var at=0;at<_e.length;at++){b=_e[at];var ye=this.internal.pdfEscape,kt=this.internal.getEncryptor(l.objId);switch(b.type){case"reference":this.internal.write(" "+b.object.objId+" 0 R ");break;case"text":var wt=this.internal.newAdditionalObject(),Dt=this.internal.newAdditionalObject(),ht=this.internal.getEncryptor(wt.objId),Pt=b.title||"Note";C="<</Type /Annot /Subtype /Text "+(F="/Rect ["+T(b.bounds.x)+" "+Z(b.bounds.y+b.bounds.h)+" "+T(b.bounds.x+b.bounds.w)+" "+Z(b.bounds.y)+"] ")+"/Contents ("+ye(ht(b.contents))+")",C+=" /Popup "+Dt.objId+" 0 R",C+=" /P "+ae.objId+" 0 R",C+=" /T ("+ye(ht(Pt))+") >>",wt.content=C;var ar=wt.objId+" 0 R";C="<</Type /Annot /Subtype /Popup "+(F="/Rect ["+T(b.bounds.x+30)+" "+Z(b.bounds.y+b.bounds.h)+" "+T(b.bounds.x+b.bounds.w+30)+" "+Z(b.bounds.y)+"] ")+" /Parent "+ar,b.open&&(C+=" /Open true"),C+=" >>",Dt.content=C,this.internal.write(wt.objId,"0 R",Dt.objId,"0 R");break;case"freetext":F="/Rect ["+T(b.bounds.x)+" "+Z(b.bounds.y)+" "+T(b.bounds.x+b.bounds.w)+" "+Z(b.bounds.y+b.bounds.h)+"] ";var xr=b.color||"#000000";C="<</Type /Annot /Subtype /FreeText "+F+"/Contents ("+ye(kt(b.contents))+")",C+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+xr+")",C+=" /Border [0 0 0]",C+=" >>",this.internal.write(C);break;case"link":if(b.options.name){var Kr=this.annotations._nameMap[b.options.name];b.options.pageNumber=Kr.page,b.options.top=Kr.y}else b.options.top||(b.options.top=0);if(F="/Rect ["+b.finalBounds.x+" "+b.finalBounds.y+" "+b.finalBounds.w+" "+b.finalBounds.h+"] ",C="",b.options.url)C="<</Type /Annot /Subtype /Link "+F+"/Border [0 0 0] /A <</S /URI /URI ("+ye(kt(b.options.url))+") >>";else if(b.options.pageNumber)switch(C="<</Type /Annot /Subtype /Link "+F+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(b.options.pageNumber).objId+" 0 R",b.options.magFactor=b.options.magFactor||"XYZ",b.options.magFactor){case"Fit":C+=" /Fit]";break;case"FitH":C+=" /FitH "+b.options.top+"]";break;case"FitV":b.options.left=b.options.left||0,C+=" /FitV "+b.options.left+"]";break;case"XYZ":default:var hn=Z(b.options.top);b.options.left=b.options.left||0,b.options.zoom===void 0&&(b.options.zoom=0),C+=" /XYZ "+b.options.left+" "+hn+" "+b.options.zoom+"]"}C!=""&&(C+=" >>",this.internal.write(C))}}this.internal.write("]")}}]),c.createAnnotation=function(l){var b=this.internal.getCurrentPageInfo();switch(l.type){case"link":this.link(l.bounds.x,l.bounds.y,l.bounds.w,l.bounds.h,l);break;case"text":case"freetext":b.pageContext.annotations.push(l)}},c.link=function(l,b,F,C,T){var Z=this.internal.getCurrentPageInfo(),ae=this.internal.getCoordinateString,_e=this.internal.getVerticalCoordinateString;Z.pageContext.annotations.push({finalBounds:{x:ae(l),y:_e(b),w:ae(l+F),h:_e(b+C)},options:T,type:"link"})},c.textWithLink=function(l,b,F,C){var T,Z,ae=this.getTextWidth(l),_e=this.internal.getLineHeight()/this.internal.scaleFactor;if(C.maxWidth!==void 0){Z=C.maxWidth;var $e=this.splitTextToSize(l,Z).length;T=Math.ceil(_e*$e)}else Z=ae,T=_e;return this.text(l,b,F,C),F+=.2*_e,C.align==="center"&&(b-=ae/2),C.align==="right"&&(b-=ae),this.link(b,F-_e,Z,T,C),ae},c.getTextWidth=function(l){var b=this.internal.getFontSize();return this.getStringUnitWidth(l)*b/this.internal.scaleFactor}}(Ai.API),function(c){var o={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},l={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},b={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},F=[1570,1571,1573,1575];c.__arabicParser__={};var C=c.__arabicParser__.isInArabicSubstitutionA=function(wt){return o[wt.charCodeAt(0)]!==void 0},T=c.__arabicParser__.isArabicLetter=function(wt){return typeof wt=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(wt)},Z=c.__arabicParser__.isArabicEndLetter=function(wt){return T(wt)&&C(wt)&&o[wt.charCodeAt(0)].length<=2},ae=c.__arabicParser__.isArabicAlfLetter=function(wt){return T(wt)&&F.indexOf(wt.charCodeAt(0))>=0};c.__arabicParser__.arabicLetterHasIsolatedForm=function(wt){return T(wt)&&C(wt)&&o[wt.charCodeAt(0)].length>=1};var _e=c.__arabicParser__.arabicLetterHasFinalForm=function(wt){return T(wt)&&C(wt)&&o[wt.charCodeAt(0)].length>=2};c.__arabicParser__.arabicLetterHasInitialForm=function(wt){return T(wt)&&C(wt)&&o[wt.charCodeAt(0)].length>=3};var $e=c.__arabicParser__.arabicLetterHasMedialForm=function(wt){return T(wt)&&C(wt)&&o[wt.charCodeAt(0)].length==4},Ze=c.__arabicParser__.resolveLigatures=function(wt){var Dt=0,ht=l,Pt="",ar=0;for(Dt=0;Dt<wt.length;Dt+=1)ht[wt.charCodeAt(Dt)]!==void 0?(ar++,typeof(ht=ht[wt.charCodeAt(Dt)])=="number"&&(Pt+=String.fromCharCode(ht),ht=l,ar=0),Dt===wt.length-1&&(ht=l,Pt+=wt.charAt(Dt-(ar-1)),Dt-=ar-1,ar=0)):(ht=l,Pt+=wt.charAt(Dt-ar),Dt-=ar,ar=0);return Pt};c.__arabicParser__.isArabicDiacritic=function(wt){return wt!==void 0&&b[wt.charCodeAt(0)]!==void 0};var at=c.__arabicParser__.getCorrectForm=function(wt,Dt,ht){return T(wt)?C(wt)===!1?-1:!_e(wt)||!T(Dt)&&!T(ht)||!T(ht)&&Z(Dt)||Z(wt)&&!T(Dt)||Z(wt)&&ae(Dt)||Z(wt)&&Z(Dt)?0:$e(wt)&&T(Dt)&&!Z(Dt)&&T(ht)&&_e(ht)?3:Z(wt)||!T(ht)?1:2:-1},ye=function(wt){var Dt=0,ht=0,Pt=0,ar="",xr="",Kr="",hn=(wt=wt||"").split("\\s+"),Ir=[];for(Dt=0;Dt<hn.length;Dt+=1){for(Ir.push(""),ht=0;ht<hn[Dt].length;ht+=1)ar=hn[Dt][ht],xr=hn[Dt][ht-1],Kr=hn[Dt][ht+1],T(ar)?(Pt=at(ar,xr,Kr),Ir[Dt]+=Pt!==-1?String.fromCharCode(o[ar.charCodeAt(0)][Pt]):ar):Ir[Dt]+=ar;Ir[Dt]=Ze(Ir[Dt])}return Ir.join(" ")},kt=c.__arabicParser__.processArabic=c.processArabic=function(){var wt,Dt=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,ht=[];if(Array.isArray(Dt)){var Pt=0;for(ht=[],Pt=0;Pt<Dt.length;Pt+=1)Array.isArray(Dt[Pt])?ht.push([ye(Dt[Pt][0]),Dt[Pt][1],Dt[Pt][2]]):ht.push([ye(Dt[Pt])]);wt=ht}else wt=ye(Dt);return typeof arguments[0]=="string"?wt:(arguments[0].text=wt,arguments[0])};c.events.push(["preProcessText",kt])}(Ai.API),Ai.API.autoPrint=function(c){var o;switch((c=c||{}).variant=c.variant||"non-conform",c.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){o=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+o+" 0 R")})}return this},function(c){var o=function(){var l=void 0;Object.defineProperty(this,"pdf",{get:function(){return l},set:function(Z){l=Z}});var b=150;Object.defineProperty(this,"width",{get:function(){return b},set:function(Z){b=isNaN(Z)||Number.isInteger(Z)===!1||Z<0?150:Z,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=b+1)}});var F=300;Object.defineProperty(this,"height",{get:function(){return F},set:function(Z){F=isNaN(Z)||Number.isInteger(Z)===!1||Z<0?300:Z,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=F+1)}});var C=[];Object.defineProperty(this,"childNodes",{get:function(){return C},set:function(Z){C=Z}});var T={};Object.defineProperty(this,"style",{get:function(){return T},set:function(Z){T=Z}}),Object.defineProperty(this,"parentNode",{})};o.prototype.getContext=function(l,b){var F;if((l=l||"2d")!=="2d")return null;for(F in b)this.pdf.context2d.hasOwnProperty(F)&&(this.pdf.context2d[F]=b[F]);return this.pdf.context2d._canvas=this,this.pdf.context2d},o.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},c.events.push(["initialized",function(){this.canvas=new o,this.canvas.pdf=this}])}(Ai.API),function(c){var o={left:0,top:0,bottom:0,right:0},l=!1,b=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},o),this.internal.__cell__.margins.width=this.getPageWidth(),F.call(this))},F=function(){this.internal.__cell__.lastCell=new C,this.internal.__cell__.pages=1},C=function(){var ae=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ae},set:function(wt){ae=wt}});var _e=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return _e},set:function(wt){_e=wt}});var $e=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return $e},set:function(wt){$e=wt}});var Ze=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return Ze},set:function(wt){Ze=wt}});var at=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return at},set:function(wt){at=wt}});var ye=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return ye},set:function(wt){ye=wt}});var kt=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return kt},set:function(wt){kt=wt}}),this};C.prototype.clone=function(){return new C(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},C.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},c.setHeaderFunction=function(ae){return b.call(this),this.internal.__cell__.headerFunction=typeof ae=="function"?ae:void 0,this},c.getTextDimensions=function(ae,_e){b.call(this);var $e=(_e=_e||{}).fontSize||this.getFontSize(),Ze=_e.font||this.getFont(),at=_e.scaleFactor||this.internal.scaleFactor,ye=0,kt=0,wt=0,Dt=this;if(!Array.isArray(ae)&&typeof ae!="string"){if(typeof ae!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");ae=String(ae)}var ht=_e.maxWidth;ht>0?typeof ae=="string"?ae=this.splitTextToSize(ae,ht):Object.prototype.toString.call(ae)==="[object Array]"&&(ae=ae.reduce(function(ar,xr){return ar.concat(Dt.splitTextToSize(xr,ht))},[])):ae=Array.isArray(ae)?ae:[ae];for(var Pt=0;Pt<ae.length;Pt++)ye<(wt=this.getStringUnitWidth(ae[Pt],{font:Ze})*$e)&&(ye=wt);return ye!==0&&(kt=ae.length),{w:ye/=at,h:Math.max((kt*$e*this.getLineHeightFactor()-$e*(this.getLineHeightFactor()-1))/at,0)}},c.cellAddPage=function(){b.call(this),this.addPage();var ae=this.internal.__cell__.margins||o;return this.internal.__cell__.lastCell=new C(ae.left,ae.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var T=c.cell=function(){var ae;ae=arguments[0]instanceof C?arguments[0]:new C(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),b.call(this);var _e=this.internal.__cell__.lastCell,$e=this.internal.__cell__.padding,Ze=this.internal.__cell__.margins||o,at=this.internal.__cell__.tableHeaderRow,ye=this.internal.__cell__.printHeaders;return _e.lineNumber!==void 0&&(_e.lineNumber===ae.lineNumber?(ae.x=(_e.x||0)+(_e.width||0),ae.y=_e.y||0):_e.y+_e.height+ae.height+Ze.bottom>this.getPageHeight()?(this.cellAddPage(),ae.y=Ze.top,ye&&at&&(this.printHeaderRow(ae.lineNumber,!0),ae.y+=at[0].height)):ae.y=_e.y+_e.height||ae.y),ae.text[0]!==void 0&&(this.rect(ae.x,ae.y,ae.width,ae.height,l===!0?"FD":void 0),ae.align==="right"?this.text(ae.text,ae.x+ae.width-$e,ae.y+$e,{align:"right",baseline:"top"}):ae.align==="center"?this.text(ae.text,ae.x+ae.width/2,ae.y+$e,{align:"center",baseline:"top",maxWidth:ae.width-$e-$e}):this.text(ae.text,ae.x+$e,ae.y+$e,{align:"left",baseline:"top",maxWidth:ae.width-$e-$e})),this.internal.__cell__.lastCell=ae,this};c.table=function(ae,_e,$e,Ze,at){if(b.call(this),!$e)throw new Error("No data for PDF table.");var ye,kt,wt,Dt,ht=[],Pt=[],ar=[],xr={},Kr={},hn=[],Ir=[],Vt=(at=at||{}).autoSize||!1,Pr=at.printHeaders!==!1,Jr=at.css&&at.css["font-size"]!==void 0?16*at.css["font-size"]:at.fontSize||12,vt=at.margins||Object.assign({width:this.getPageWidth()},o),Ct=typeof at.padding=="number"?at.padding:3,rr=at.headerBackgroundColor||"#c8c8c8",U=at.headerTextColor||"#000";if(F.call(this),this.internal.__cell__.printHeaders=Pr,this.internal.__cell__.margins=vt,this.internal.__cell__.table_font_size=Jr,this.internal.__cell__.padding=Ct,this.internal.__cell__.headerBackgroundColor=rr,this.internal.__cell__.headerTextColor=U,this.setFontSize(Jr),Ze==null)Pt=ht=Object.keys($e[0]),ar=ht.map(function(){return"left"});else if(Array.isArray(Ze)&&(0,pe.Z)(Ze[0])==="object")for(ht=Ze.map(function(dt){return dt.name}),Pt=Ze.map(function(dt){return dt.prompt||dt.name||""}),ar=Ze.map(function(dt){return dt.align||"left"}),ye=0;ye<Ze.length;ye+=1)Kr[Ze[ye].name]=Ze[ye].width*(19.049976/25.4);else Array.isArray(Ze)&&typeof Ze[0]=="string"&&(Pt=ht=Ze,ar=ht.map(function(){return"left"}));if(Vt||Array.isArray(Ze)&&typeof Ze[0]=="string")for(ye=0;ye<ht.length;ye+=1){for(xr[Dt=ht[ye]]=$e.map(function(dt){return dt[Dt]}),this.setFont(void 0,"bold"),hn.push(this.getTextDimensions(Pt[ye],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),kt=xr[Dt],this.setFont(void 0,"normal"),wt=0;wt<kt.length;wt+=1)hn.push(this.getTextDimensions(kt[wt],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Kr[Dt]=Math.max.apply(null,hn)+Ct+Ct,hn=[]}if(Pr){var re={};for(ye=0;ye<ht.length;ye+=1)re[ht[ye]]={},re[ht[ye]].text=Pt[ye],re[ht[ye]].align=ar[ye];var Se=Z.call(this,re,Kr);Ir=ht.map(function(dt){return new C(ae,_e,Kr[dt],Se,re[dt].text,void 0,re[dt].align)}),this.setTableHeaderRow(Ir),this.printHeaderRow(1,!1)}var Ue=Ze.reduce(function(dt,St){return dt[St.name]=St.align,dt},{});for(ye=0;ye<$e.length;ye+=1){"rowStart"in at&&at.rowStart instanceof Function&&at.rowStart({row:ye,data:$e[ye]},this);var Ke=Z.call(this,$e[ye],Kr);for(wt=0;wt<ht.length;wt+=1){var Xe=$e[ye][ht[wt]];"cellStart"in at&&at.cellStart instanceof Function&&at.cellStart({row:ye,col:wt,data:Xe},this),T.call(this,new C(ae,_e,Kr[ht[wt]],Ke,Xe,ye+2,Ue[ht[wt]]))}}return this.internal.__cell__.table_x=ae,this.internal.__cell__.table_y=_e,this};var Z=function(ae,_e){var $e=this.internal.__cell__.padding,Ze=this.internal.__cell__.table_font_size,at=this.internal.scaleFactor;return Object.keys(ae).map(function(ye){var kt=ae[ye];return this.splitTextToSize(kt.hasOwnProperty("text")?kt.text:kt,_e[ye]-$e-$e)},this).map(function(ye){return this.getLineHeightFactor()*ye.length*Ze/at+$e+$e},this).reduce(function(ye,kt){return Math.max(ye,kt)},0)};c.setTableHeaderRow=function(ae){b.call(this),this.internal.__cell__.tableHeaderRow=ae},c.printHeaderRow=function(ae,_e){if(b.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var $e;if(l=!0,typeof this.internal.__cell__.headerFunction=="function"){var Ze=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new C(Ze[0],Ze[1],Ze[2],Ze[3],void 0,-1)}this.setFont(void 0,"bold");for(var at=[],ye=0;ye<this.internal.__cell__.tableHeaderRow.length;ye+=1){$e=this.internal.__cell__.tableHeaderRow[ye].clone(),_e&&($e.y=this.internal.__cell__.margins.top||0,at.push($e)),$e.lineNumber=ae;var kt=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),T.call(this,$e),this.setTextColor(kt)}at.length>0&&this.setTableHeaderRow(at),this.setFont(void 0,"normal"),l=!1}}(Ai.API);var zs={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},ms=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Da=Hl(ms),Uo=[100,200,300,400,500,600,700,800,900],jl=Hl(Uo);function tc(c){var o=c.family.replace(/"|'/g,"").toLowerCase(),l=function(C){return zs[C=C||"normal"]?C:"normal"}(c.style),b=function(C){if(!C)return 400;if(typeof C=="number")return C>=100&&C<=900&&C%100==0?C:400;if(/^\d00$/.test(C))return parseInt(C);switch(C){case"bold":return 700;case"normal":default:return 400}}(c.weight),F=function(C){return typeof Da[C=C||"normal"]=="number"?C:"normal"}(c.stretch);return{family:o,style:l,weight:b,stretch:F,src:c.src||[],ref:c.ref||{name:o,style:[F,l,b].join(" ")}}}function fl(c,o,l,b){var F;for(F=l;F>=0&&F<o.length;F+=b)if(c[o[F]])return c[o[F]];for(F=l;F>=0&&F<o.length;F-=b)if(c[o[F]])return c[o[F]]}var ma={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},oa={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function ho(c){return[c.stretch,c.style,c.weight,c.family].join(" ")}function Za(c,o,l){for(var b=(l=l||{}).defaultFontFamily||"times",F=Object.assign({},ma,l.genericFontFamilies||{}),C=null,T=null,Z=0;Z<o.length;++Z)if(F[(C=tc(o[Z])).family]&&(C.family=F[C.family]),c.hasOwnProperty(C.family)){T=c[C.family];break}if(!(T=T||c[b]))throw new Error("Could not find a font-family for the rule '"+ho(C)+"' and default family '"+b+"'.");if(T=function(ae,_e){if(_e[ae])return _e[ae];var $e=Da[ae],Ze=$e<=Da.normal?-1:1,at=fl(_e,ms,$e,Ze);if(!at)throw new Error("Could not find a matching font-stretch value for "+ae);return at}(C.stretch,T),T=function(ae,_e){if(_e[ae])return _e[ae];for(var $e=zs[ae],Ze=0;Ze<$e.length;++Ze)if(_e[$e[Ze]])return _e[$e[Ze]];throw new Error("Could not find a matching font-style for "+ae)}(C.style,T),!(T=function(ae,_e){if(_e[ae])return _e[ae];if(ae===400&&_e[500])return _e[500];if(ae===500&&_e[400])return _e[400];var $e=jl[ae],Ze=fl(_e,Uo,$e,ae<400?-1:1);if(!Ze)throw new Error("Could not find a matching font-weight for value "+ae);return Ze}(C.weight,T)))throw new Error("Failed to resolve a font for the rule '"+ho(C)+"'.");return T}function to(c){return c.trimLeft()}function Ro(c,o){for(var l=0;l<c.length;){if(c.charAt(l)===o)return[c.substring(0,l),c.substring(l+1)];l+=1}return null}function Ya(c){var o=c.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return o===null?null:[o[0],c.substring(o[0].length)]}var Wo,Ds,hl,Xs=["times"];(function(c){var o,l,b,F,C,T,Z,ae,_e,$e=function(le){return le=le||{},this.isStrokeTransparent=le.isStrokeTransparent||!1,this.strokeOpacity=le.strokeOpacity||1,this.strokeStyle=le.strokeStyle||"#000000",this.fillStyle=le.fillStyle||"#000000",this.isFillTransparent=le.isFillTransparent||!1,this.fillOpacity=le.fillOpacity||1,this.font=le.font||"10px sans-serif",this.textBaseline=le.textBaseline||"alphabetic",this.textAlign=le.textAlign||"left",this.lineWidth=le.lineWidth||1,this.lineJoin=le.lineJoin||"miter",this.lineCap=le.lineCap||"butt",this.path=le.path||[],this.transform=le.transform!==void 0?le.transform.clone():new ae,this.globalCompositeOperation=le.globalCompositeOperation||"normal",this.globalAlpha=le.globalAlpha||1,this.clip_path=le.clip_path||[],this.currentPoint=le.currentPoint||new T,this.miterLimit=le.miterLimit||10,this.lastPoint=le.lastPoint||new T,this.lineDashOffset=le.lineDashOffset||0,this.lineDash=le.lineDash||[],this.margin=le.margin||[0,0,0,0],this.prevPageLastElemOffset=le.prevPageLastElemOffset||0,this.ignoreClearRect=typeof le.ignoreClearRect!="boolean"||le.ignoreClearRect,this};c.events.push(["initialized",function(){this.context2d=new Ze(this),o=this.internal.f2,l=this.internal.getCoordinateString,b=this.internal.getVerticalCoordinateString,F=this.internal.getHorizontalCoordinate,C=this.internal.getVerticalCoordinate,T=this.internal.Point,Z=this.internal.Rectangle,ae=this.internal.Matrix,_e=new $e}]);var Ze=function(le){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var Re=le;Object.defineProperty(this,"pdf",{get:function(){return Re}});var Ye=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Ye},set:function(or){Ye=!!or}});var et=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return et},set:function(or){et=!!or}});var bt=0;Object.defineProperty(this,"posX",{get:function(){return bt},set:function(or){isNaN(or)||(bt=or)}});var _t=0;Object.defineProperty(this,"posY",{get:function(){return _t},set:function(or){isNaN(or)||(_t=or)}}),Object.defineProperty(this,"margin",{get:function(){return _e.margin},set:function(or){var yt;typeof or=="number"?yt=[or,or,or,or]:((yt=new Array(4))[0]=or[0],yt[1]=or.length>=2?or[1]:yt[0],yt[2]=or.length>=3?or[2]:yt[0],yt[3]=or.length>=4?or[3]:yt[1]),_e.margin=yt}});var Mt=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Mt},set:function(or){Mt=or}});var Rt=0;Object.defineProperty(this,"lastBreak",{get:function(){return Rt},set:function(or){Rt=or}});var lr=[];Object.defineProperty(this,"pageBreaks",{get:function(){return lr},set:function(or){lr=or}}),Object.defineProperty(this,"ctx",{get:function(){return _e},set:function(or){or instanceof $e&&(_e=or)}}),Object.defineProperty(this,"path",{get:function(){return _e.path},set:function(or){_e.path=or}});var Ar=[];Object.defineProperty(this,"ctxStack",{get:function(){return Ar},set:function(or){Ar=or}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(or){var yt;yt=at(or),this.ctx.fillStyle=yt.style,this.ctx.isFillTransparent=yt.a===0,this.ctx.fillOpacity=yt.a,this.pdf.setFillColor(yt.r,yt.g,yt.b,{a:yt.a}),this.pdf.setTextColor(yt.r,yt.g,yt.b,{a:yt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(or){var yt=at(or);this.ctx.strokeStyle=yt.style,this.ctx.isStrokeTransparent=yt.a===0,this.ctx.strokeOpacity=yt.a,yt.a===0?this.pdf.setDrawColor(255,255,255):(yt.a,this.pdf.setDrawColor(yt.r,yt.g,yt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(or){["butt","round","square"].indexOf(or)!==-1&&(this.ctx.lineCap=or,this.pdf.setLineCap(or))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(or){isNaN(or)||(this.ctx.lineWidth=or,this.pdf.setLineWidth(or))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(or){["bevel","round","miter"].indexOf(or)!==-1&&(this.ctx.lineJoin=or,this.pdf.setLineJoin(or))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(or){isNaN(or)||(this.ctx.miterLimit=or,this.pdf.setMiterLimit(or))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(or){this.ctx.textBaseline=or}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(or){["right","end","center","left","start"].indexOf(or)!==-1&&(this.ctx.textAlign=or)}});var gr=null;function _r(or,yt){if(gr===null){var Fn=function(gn){var yr=[];return Object.keys(gn).forEach(function(Tr){gn[Tr].forEach(function(Ur){var wr=null;switch(Ur){case"bold":wr={family:Tr,weight:"bold"};break;case"italic":wr={family:Tr,style:"italic"};break;case"bolditalic":wr={family:Tr,weight:"bold",style:"italic"};break;case"":case"normal":wr={family:Tr}}wr!==null&&(wr.ref={name:Tr,style:Ur},yr.push(wr))})}),yr}(or.getFontList());gr=function(gn){for(var yr={},Tr=0;Tr<gn.length;++Tr){var Ur=tc(gn[Tr]),wr=Ur.family,Zr=Ur.stretch,Cn=Ur.style,Gn=Ur.weight;yr[wr]=yr[wr]||{},yr[wr][Zr]=yr[wr][Zr]||{},yr[wr][Zr][Cn]=yr[wr][Zr][Cn]||{},yr[wr][Zr][Cn][Gn]=Ur}return yr}(Fn.concat(yt))}return gr}var dn=null;Object.defineProperty(this,"fontFaces",{get:function(){return dn},set:function(or){gr=null,dn=or}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(or){var yt;if(this.ctx.font=or,(yt=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(or))!==null){var Fn=yt[1];yt[2];var gn=yt[3],yr=yt[4];yt[5];var Tr=yt[6],Ur=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(yr)[2];yr=Math.floor(Ur==="px"?parseFloat(yr)*this.pdf.internal.scaleFactor:Ur==="em"?parseFloat(yr)*this.pdf.getFontSize():parseFloat(yr)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(yr);var wr=function(zn){var Fi,vn,_a=[],Hi=zn.trim();if(Hi==="")return Xs;if(Hi in oa)return[oa[Hi]];for(;Hi!=="";){switch(vn=null,Fi=(Hi=to(Hi)).charAt(0)){case'"':case"'":vn=Ro(Hi.substring(1),Fi);break;default:vn=Ya(Hi)}if(vn===null||(_a.push(vn[0]),(Hi=to(vn[1]))!==""&&Hi.charAt(0)!==","))return Xs;Hi=Hi.replace(/^,/,"")}return _a}(Tr);if(this.fontFaces){var Zr=Za(_r(this.pdf,this.fontFaces),wr.map(function(zn){return{family:zn,stretch:"normal",weight:gn,style:Fn}}));this.pdf.setFont(Zr.ref.name,Zr.ref.style)}else{var Cn="";(gn==="bold"||parseInt(gn,10)>=700||Fn==="bold")&&(Cn="bold"),Fn==="italic"&&(Cn+="italic"),Cn.length===0&&(Cn="normal");for(var Gn="",Zn={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"},On=0;On<wr.length;On++){if(this.pdf.internal.getFont(wr[On],Cn,{noFallback:!0,disableWarning:!0})!==void 0){Gn=wr[On];break}if(Cn==="bolditalic"&&this.pdf.internal.getFont(wr[On],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Gn=wr[On],Cn="bold";else if(this.pdf.internal.getFont(wr[On],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Gn=wr[On],Cn="normal";break}}if(Gn===""){for(var di=0;di<wr.length;di++)if(Zn[wr[di]]){Gn=Zn[wr[di]];break}}Gn=Gn===""?"Times":Gn,this.pdf.setFont(Gn,Cn)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(or){this.ctx.globalCompositeOperation=or}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(or){this.ctx.globalAlpha=or}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(or){this.ctx.lineDashOffset=or,St.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(or){this.ctx.lineDash=or,St.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(or){this.ctx.ignoreClearRect=!!or}})};Ze.prototype.setLineDash=function(le){this.lineDash=le},Ze.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Ze.prototype.fill=function(){xr.call(this,"fill",!1)},Ze.prototype.stroke=function(){xr.call(this,"stroke",!1)},Ze.prototype.beginPath=function(){this.path=[{type:"begin"}]},Ze.prototype.moveTo=function(le,Re){if(isNaN(le)||isNaN(Re))throw Ln.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var Ye=this.ctx.transform.applyToPoint(new T(le,Re));this.path.push({type:"mt",x:Ye.x,y:Ye.y}),this.ctx.lastPoint=new T(le,Re)},Ze.prototype.closePath=function(){var le=new T(0,0),Re=0;for(Re=this.path.length-1;Re!==-1;Re--)if(this.path[Re].type==="begin"&&(0,pe.Z)(this.path[Re+1])==="object"&&typeof this.path[Re+1].x=="number"){le=new T(this.path[Re+1].x,this.path[Re+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new T(le.x,le.y)},Ze.prototype.lineTo=function(le,Re){if(isNaN(le)||isNaN(Re))throw Ln.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var Ye=this.ctx.transform.applyToPoint(new T(le,Re));this.path.push({type:"lt",x:Ye.x,y:Ye.y}),this.ctx.lastPoint=new T(Ye.x,Ye.y)},Ze.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),xr.call(this,null,!0)},Ze.prototype.quadraticCurveTo=function(le,Re,Ye,et){if(isNaN(Ye)||isNaN(et)||isNaN(le)||isNaN(Re))throw Ln.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var bt=this.ctx.transform.applyToPoint(new T(Ye,et)),_t=this.ctx.transform.applyToPoint(new T(le,Re));this.path.push({type:"qct",x1:_t.x,y1:_t.y,x:bt.x,y:bt.y}),this.ctx.lastPoint=new T(bt.x,bt.y)},Ze.prototype.bezierCurveTo=function(le,Re,Ye,et,bt,_t){if(isNaN(bt)||isNaN(_t)||isNaN(le)||isNaN(Re)||isNaN(Ye)||isNaN(et))throw Ln.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Mt=this.ctx.transform.applyToPoint(new T(bt,_t)),Rt=this.ctx.transform.applyToPoint(new T(le,Re)),lr=this.ctx.transform.applyToPoint(new T(Ye,et));this.path.push({type:"bct",x1:Rt.x,y1:Rt.y,x2:lr.x,y2:lr.y,x:Mt.x,y:Mt.y}),this.ctx.lastPoint=new T(Mt.x,Mt.y)},Ze.prototype.arc=function(le,Re,Ye,et,bt,_t){if(isNaN(le)||isNaN(Re)||isNaN(Ye)||isNaN(et)||isNaN(bt))throw Ln.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(_t=!!_t,!this.ctx.transform.isIdentity){var Mt=this.ctx.transform.applyToPoint(new T(le,Re));le=Mt.x,Re=Mt.y;var Rt=this.ctx.transform.applyToPoint(new T(0,Ye)),lr=this.ctx.transform.applyToPoint(new T(0,0));Ye=Math.sqrt(Math.pow(Rt.x-lr.x,2)+Math.pow(Rt.y-lr.y,2))}Math.abs(bt-et)>=2*Math.PI&&(et=0,bt=2*Math.PI),this.path.push({type:"arc",x:le,y:Re,radius:Ye,startAngle:et,endAngle:bt,counterclockwise:_t})},Ze.prototype.arcTo=function(le,Re,Ye,et,bt){throw new Error("arcTo not implemented.")},Ze.prototype.rect=function(le,Re,Ye,et){if(isNaN(le)||isNaN(Re)||isNaN(Ye)||isNaN(et))throw Ln.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(le,Re),this.lineTo(le+Ye,Re),this.lineTo(le+Ye,Re+et),this.lineTo(le,Re+et),this.lineTo(le,Re),this.lineTo(le+Ye,Re),this.lineTo(le,Re)},Ze.prototype.fillRect=function(le,Re,Ye,et){if(isNaN(le)||isNaN(Re)||isNaN(Ye)||isNaN(et))throw Ln.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!ye.call(this)){var bt={};this.lineCap!=="butt"&&(bt.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(bt.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(le,Re,Ye,et),this.fill(),bt.hasOwnProperty("lineCap")&&(this.lineCap=bt.lineCap),bt.hasOwnProperty("lineJoin")&&(this.lineJoin=bt.lineJoin)}},Ze.prototype.strokeRect=function(le,Re,Ye,et){if(isNaN(le)||isNaN(Re)||isNaN(Ye)||isNaN(et))throw Ln.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");kt.call(this)||(this.beginPath(),this.rect(le,Re,Ye,et),this.stroke())},Ze.prototype.clearRect=function(le,Re,Ye,et){if(isNaN(le)||isNaN(Re)||isNaN(Ye)||isNaN(et))throw Ln.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(le,Re,Ye,et))},Ze.prototype.save=function(le){le=typeof le!="boolean"||le;for(var Re=this.pdf.internal.getCurrentPageInfo().pageNumber,Ye=0;Ye<this.pdf.internal.getNumberOfPages();Ye++)this.pdf.setPage(Ye+1),this.pdf.internal.out("q");if(this.pdf.setPage(Re),le){this.ctx.fontSize=this.pdf.internal.getFontSize();var et=new $e(this.ctx);this.ctxStack.push(this.ctx),this.ctx=et}},Ze.prototype.restore=function(le){le=typeof le!="boolean"||le;for(var Re=this.pdf.internal.getCurrentPageInfo().pageNumber,Ye=0;Ye<this.pdf.internal.getNumberOfPages();Ye++)this.pdf.setPage(Ye+1),this.pdf.internal.out("Q");this.pdf.setPage(Re),le&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},Ze.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var at=function(le){var Re,Ye,et,bt;if(le.isCanvasGradient===!0&&(le=le.getColor()),!le)return{r:0,g:0,b:0,a:0,style:le};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(le))Re=0,Ye=0,et=0,bt=0;else{var _t=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(le);if(_t!==null)Re=parseInt(_t[1]),Ye=parseInt(_t[2]),et=parseInt(_t[3]),bt=1;else if((_t=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(le))!==null)Re=parseInt(_t[1]),Ye=parseInt(_t[2]),et=parseInt(_t[3]),bt=parseFloat(_t[4]);else{if(bt=1,typeof le=="string"&&le.charAt(0)!=="#"){var Mt=new ii(le);le=Mt.ok?Mt.toHex():"#000000"}le.length===4?(Re=le.substring(1,2),Re+=Re,Ye=le.substring(2,3),Ye+=Ye,et=le.substring(3,4),et+=et):(Re=le.substring(1,3),Ye=le.substring(3,5),et=le.substring(5,7)),Re=parseInt(Re,16),Ye=parseInt(Ye,16),et=parseInt(et,16)}}return{r:Re,g:Ye,b:et,a:bt,style:le}},ye=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},kt=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Ze.prototype.fillText=function(le,Re,Ye,et){if(isNaN(Re)||isNaN(Ye)||typeof le!="string")throw Ln.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(et=isNaN(et)?void 0:et,!ye.call(this)){var bt=Ke(this.ctx.transform.rotation),_t=this.ctx.transform.scaleX;Ct.call(this,{text:le,x:Re,y:Ye,scale:_t,angle:bt,align:this.textAlign,maxWidth:et})}},Ze.prototype.strokeText=function(le,Re,Ye,et){if(isNaN(Re)||isNaN(Ye)||typeof le!="string")throw Ln.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!kt.call(this)){et=isNaN(et)?void 0:et;var bt=Ke(this.ctx.transform.rotation),_t=this.ctx.transform.scaleX;Ct.call(this,{text:le,x:Re,y:Ye,scale:_t,renderingMode:"stroke",angle:bt,align:this.textAlign,maxWidth:et})}},Ze.prototype.measureText=function(le){if(typeof le!="string")throw Ln.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Re=this.pdf,Ye=this.pdf.internal.scaleFactor,et=Re.internal.getFontSize(),bt=Re.getStringUnitWidth(le)*et/Re.internal.scaleFactor,_t=function(Mt){var Rt=(Mt=Mt||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Rt}}),this};return new _t({width:bt*=Math.round(96*Ye/72*1e4)/1e4})},Ze.prototype.scale=function(le,Re){if(isNaN(le)||isNaN(Re))throw Ln.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var Ye=new ae(le,0,0,Re,0,0);this.ctx.transform=this.ctx.transform.multiply(Ye)},Ze.prototype.rotate=function(le){if(isNaN(le))throw Ln.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Re=new ae(Math.cos(le),Math.sin(le),-Math.sin(le),Math.cos(le),0,0);this.ctx.transform=this.ctx.transform.multiply(Re)},Ze.prototype.translate=function(le,Re){if(isNaN(le)||isNaN(Re))throw Ln.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var Ye=new ae(1,0,0,1,le,Re);this.ctx.transform=this.ctx.transform.multiply(Ye)},Ze.prototype.transform=function(le,Re,Ye,et,bt,_t){if(isNaN(le)||isNaN(Re)||isNaN(Ye)||isNaN(et)||isNaN(bt)||isNaN(_t))throw Ln.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Mt=new ae(le,Re,Ye,et,bt,_t);this.ctx.transform=this.ctx.transform.multiply(Mt)},Ze.prototype.setTransform=function(le,Re,Ye,et,bt,_t){le=isNaN(le)?1:le,Re=isNaN(Re)?0:Re,Ye=isNaN(Ye)?0:Ye,et=isNaN(et)?1:et,bt=isNaN(bt)?0:bt,_t=isNaN(_t)?0:_t,this.ctx.transform=new ae(le,Re,Ye,et,bt,_t)};var wt=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Ze.prototype.drawImage=function(le,Re,Ye,et,bt,_t,Mt,Rt,lr){var Ar=this.pdf.getImageProperties(le),gr=1,_r=1,dn=1,or=1;et!==void 0&&Rt!==void 0&&(dn=Rt/et,or=lr/bt,gr=Ar.width/et*Rt/et,_r=Ar.height/bt*lr/bt),_t===void 0&&(_t=Re,Mt=Ye,Re=0,Ye=0),et!==void 0&&Rt===void 0&&(Rt=et,lr=bt),et===void 0&&Rt===void 0&&(Rt=Ar.width,lr=Ar.height);for(var yt,Fn=this.ctx.transform.decompose(),gn=Ke(Fn.rotate.shx),yr=new ae,Tr=(yr=(yr=(yr=yr.multiply(Fn.translate)).multiply(Fn.skew)).multiply(Fn.scale)).applyToRectangle(new Z(_t-Re*dn,Mt-Ye*or,et*gr,bt*_r)),Ur=Dt.call(this,Tr),wr=[],Zr=0;Zr<Ur.length;Zr+=1)wr.indexOf(Ur[Zr])===-1&&wr.push(Ur[Zr]);if(ar(wr),this.autoPaging)for(var Cn=wr[0],Gn=wr[wr.length-1],Zn=Cn;Zn<Gn+1;Zn++){this.pdf.setPage(Zn);var On=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],di=Zn===1?this.posY+this.margin[0]:this.margin[0],zn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Fi=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],vn=Zn===1?0:zn+(Zn-2)*Fi;if(this.ctx.clip_path.length!==0){var _a=this.path;yt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Pt(yt,this.posX+this.margin[3],-vn+di+this.ctx.prevPageLastElemOffset),Kr.call(this,"fill",!0),this.path=_a}var Hi=JSON.parse(JSON.stringify(Tr));Hi=Pt([Hi],this.posX+this.margin[3],-vn+di+this.ctx.prevPageLastElemOffset)[0];var Ri=(Zn>Cn||Zn<Gn)&&wt.call(this);Ri&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],On,Fi,null).clip().discardPath()),this.pdf.addImage(le,"JPEG",Hi.x,Hi.y,Hi.w,Hi.h,null,null,gn),Ri&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(le,"JPEG",Tr.x,Tr.y,Tr.w,Tr.h,null,null,gn)};var Dt=function(le,Re,Ye){var et=[];Re=Re||this.pdf.internal.pageSize.width,Ye=Ye||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var bt=this.posY+this.ctx.prevPageLastElemOffset;switch(le.type){default:case"mt":case"lt":et.push(Math.floor((le.y+bt)/Ye)+1);break;case"arc":et.push(Math.floor((le.y+bt-le.radius)/Ye)+1),et.push(Math.floor((le.y+bt+le.radius)/Ye)+1);break;case"qct":var _t=Xe(this.ctx.lastPoint.x,this.ctx.lastPoint.y,le.x1,le.y1,le.x,le.y);et.push(Math.floor((_t.y+bt)/Ye)+1),et.push(Math.floor((_t.y+_t.h+bt)/Ye)+1);break;case"bct":var Mt=dt(this.ctx.lastPoint.x,this.ctx.lastPoint.y,le.x1,le.y1,le.x2,le.y2,le.x,le.y);et.push(Math.floor((Mt.y+bt)/Ye)+1),et.push(Math.floor((Mt.y+Mt.h+bt)/Ye)+1);break;case"rect":et.push(Math.floor((le.y+bt)/Ye)+1),et.push(Math.floor((le.y+le.h+bt)/Ye)+1)}for(var Rt=0;Rt<et.length;Rt+=1)for(;this.pdf.internal.getNumberOfPages()<et[Rt];)ht.call(this);return et},ht=function(){var le=this.fillStyle,Re=this.strokeStyle,Ye=this.font,et=this.lineCap,bt=this.lineWidth,_t=this.lineJoin;this.pdf.addPage(),this.fillStyle=le,this.strokeStyle=Re,this.font=Ye,this.lineCap=et,this.lineWidth=bt,this.lineJoin=_t},Pt=function(le,Re,Ye){for(var et=0;et<le.length;et++)switch(le[et].type){case"bct":le[et].x2+=Re,le[et].y2+=Ye;case"qct":le[et].x1+=Re,le[et].y1+=Ye;case"mt":case"lt":case"arc":default:le[et].x+=Re,le[et].y+=Ye}return le},ar=function(le){return le.sort(function(Re,Ye){return Re-Ye})},xr=function(le,Re){for(var Ye,et,bt=this.fillStyle,_t=this.strokeStyle,Mt=this.lineCap,Rt=this.lineWidth,lr=Math.abs(Rt*this.ctx.transform.scaleX),Ar=this.lineJoin,gr=JSON.parse(JSON.stringify(this.path)),_r=JSON.parse(JSON.stringify(this.path)),dn=[],or=0;or<_r.length;or++)if(_r[or].x!==void 0)for(var yt=Dt.call(this,_r[or]),Fn=0;Fn<yt.length;Fn+=1)dn.indexOf(yt[Fn])===-1&&dn.push(yt[Fn]);for(var gn=0;gn<dn.length;gn++)for(;this.pdf.internal.getNumberOfPages()<dn[gn];)ht.call(this);if(ar(dn),this.autoPaging)for(var yr=dn[0],Tr=dn[dn.length-1],Ur=yr;Ur<Tr+1;Ur++){this.pdf.setPage(Ur),this.fillStyle=bt,this.strokeStyle=_t,this.lineCap=Mt,this.lineWidth=lr,this.lineJoin=Ar;var wr=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Zr=Ur===1?this.posY+this.margin[0]:this.margin[0],Cn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Gn=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Zn=Ur===1?0:Cn+(Ur-2)*Gn;if(this.ctx.clip_path.length!==0){var On=this.path;Ye=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Pt(Ye,this.posX+this.margin[3],-Zn+Zr+this.ctx.prevPageLastElemOffset),Kr.call(this,le,!0),this.path=On}if(et=JSON.parse(JSON.stringify(gr)),this.path=Pt(et,this.posX+this.margin[3],-Zn+Zr+this.ctx.prevPageLastElemOffset),Re===!1||Ur===0){var di=(Ur>yr||Ur<Tr)&&wt.call(this);di&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],wr,Gn,null).clip().discardPath()),Kr.call(this,le,Re),di&&this.pdf.restoreGraphicsState()}this.lineWidth=Rt}else this.lineWidth=lr,Kr.call(this,le,Re),this.lineWidth=Rt;this.path=gr},Kr=function(le,Re){if((le!=="stroke"||Re||!kt.call(this))&&(le==="stroke"||Re||!ye.call(this))){for(var Ye,et,bt=[],_t=this.path,Mt=0;Mt<_t.length;Mt++){var Rt=_t[Mt];switch(Rt.type){case"begin":bt.push({begin:!0});break;case"close":bt.push({close:!0});break;case"mt":bt.push({start:Rt,deltas:[],abs:[]});break;case"lt":var lr=bt.length;if(_t[Mt-1]&&!isNaN(_t[Mt-1].x)&&(Ye=[Rt.x-_t[Mt-1].x,Rt.y-_t[Mt-1].y],lr>0)){for(;lr>=0;lr--)if(bt[lr-1].close!==!0&&bt[lr-1].begin!==!0){bt[lr-1].deltas.push(Ye),bt[lr-1].abs.push(Rt);break}}break;case"bct":Ye=[Rt.x1-_t[Mt-1].x,Rt.y1-_t[Mt-1].y,Rt.x2-_t[Mt-1].x,Rt.y2-_t[Mt-1].y,Rt.x-_t[Mt-1].x,Rt.y-_t[Mt-1].y],bt[bt.length-1].deltas.push(Ye);break;case"qct":var Ar=_t[Mt-1].x+2/3*(Rt.x1-_t[Mt-1].x),gr=_t[Mt-1].y+2/3*(Rt.y1-_t[Mt-1].y),_r=Rt.x+2/3*(Rt.x1-Rt.x),dn=Rt.y+2/3*(Rt.y1-Rt.y),or=Rt.x,yt=Rt.y;Ye=[Ar-_t[Mt-1].x,gr-_t[Mt-1].y,_r-_t[Mt-1].x,dn-_t[Mt-1].y,or-_t[Mt-1].x,yt-_t[Mt-1].y],bt[bt.length-1].deltas.push(Ye);break;case"arc":bt.push({deltas:[],abs:[],arc:!0}),Array.isArray(bt[bt.length-1].abs)&&bt[bt.length-1].abs.push(Rt)}}et=Re?null:le==="stroke"?"stroke":"fill";for(var Fn=!1,gn=0;gn<bt.length;gn++)if(bt[gn].arc)for(var yr=bt[gn].abs,Tr=0;Tr<yr.length;Tr++){var Ur=yr[Tr];Ur.type==="arc"?Vt.call(this,Ur.x,Ur.y,Ur.radius,Ur.startAngle,Ur.endAngle,Ur.counterclockwise,void 0,Re,!Fn):rr.call(this,Ur.x,Ur.y),Fn=!0}else if(bt[gn].close===!0)this.pdf.internal.out("h"),Fn=!1;else if(bt[gn].begin!==!0){var wr=bt[gn].start.x,Zr=bt[gn].start.y;U.call(this,bt[gn].deltas,wr,Zr),Fn=!0}et&&Pr.call(this,et),Re&&Jr.call(this)}},hn=function(le){var Re=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Ye=Re*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return le-Ye;case"top":return le+Re-Ye;case"hanging":return le+Re-2*Ye;case"middle":return le+Re/2-Ye;case"ideographic":return le;case"alphabetic":default:return le}},Ir=function(le){return le+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Ze.prototype.createLinearGradient=function(){var le=function(){};return le.colorStops=[],le.addColorStop=function(Re,Ye){this.colorStops.push([Re,Ye])},le.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},le.isCanvasGradient=!0,le},Ze.prototype.createPattern=function(){return this.createLinearGradient()},Ze.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Vt=function(le,Re,Ye,et,bt,_t,Mt,Rt,lr){for(var Ar=Se.call(this,Ye,et,bt,_t),gr=0;gr<Ar.length;gr++){var _r=Ar[gr];gr===0&&(lr?vt.call(this,_r.x1+le,_r.y1+Re):rr.call(this,_r.x1+le,_r.y1+Re)),re.call(this,le,Re,_r.x2,_r.y2,_r.x3,_r.y3,_r.x4,_r.y4)}Rt?Jr.call(this):Pr.call(this,Mt)},Pr=function(le){switch(le){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Jr=function(){this.pdf.clip(),this.pdf.discardPath()},vt=function(le,Re){this.pdf.internal.out(l(le)+" "+b(Re)+" m")},Ct=function(le){var Re;switch(le.align){case"right":case"end":Re="right";break;case"center":Re="center";break;case"left":case"start":default:Re="left"}var Ye=this.pdf.getTextDimensions(le.text),et=hn.call(this,le.y),bt=Ir.call(this,et)-Ye.h,_t=this.ctx.transform.applyToPoint(new T(le.x,et)),Mt=this.ctx.transform.decompose(),Rt=new ae;Rt=(Rt=(Rt=Rt.multiply(Mt.translate)).multiply(Mt.skew)).multiply(Mt.scale);for(var lr,Ar,gr,_r=this.ctx.transform.applyToRectangle(new Z(le.x,et,Ye.w,Ye.h)),dn=Rt.applyToRectangle(new Z(le.x,bt,Ye.w,Ye.h)),or=Dt.call(this,dn),yt=[],Fn=0;Fn<or.length;Fn+=1)yt.indexOf(or[Fn])===-1&&yt.push(or[Fn]);if(ar(yt),this.autoPaging)for(var gn=yt[0],yr=yt[yt.length-1],Tr=gn;Tr<yr+1;Tr++){this.pdf.setPage(Tr);var Ur=Tr===1?this.posY+this.margin[0]:this.margin[0],wr=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Zr=this.pdf.internal.pageSize.height-this.margin[2],Cn=Zr-this.margin[0],Gn=this.pdf.internal.pageSize.width-this.margin[1],Zn=Gn-this.margin[3],On=Tr===1?0:wr+(Tr-2)*Cn;if(this.ctx.clip_path.length!==0){var di=this.path;lr=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Pt(lr,this.posX+this.margin[3],-1*On+Ur),Kr.call(this,"fill",!0),this.path=di}var zn=Pt([JSON.parse(JSON.stringify(dn))],this.posX+this.margin[3],-On+Ur+this.ctx.prevPageLastElemOffset)[0];le.scale>=.01&&(Ar=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Ar*le.scale),gr=this.lineWidth,this.lineWidth=gr*le.scale);var Fi=this.autoPaging!=="text";if(Fi||zn.y+zn.h<=Zr){if(Fi||zn.y>=Ur&&zn.x<=Gn){var vn=Fi?le.text:this.pdf.splitTextToSize(le.text,le.maxWidth||Gn-zn.x)[0],_a=Pt([JSON.parse(JSON.stringify(_r))],this.posX+this.margin[3],-On+Ur+this.ctx.prevPageLastElemOffset)[0],Hi=Fi&&(Tr>gn||Tr<yr)&&wt.call(this);Hi&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Zn,Cn,null).clip().discardPath()),this.pdf.text(vn,_a.x,_a.y,{angle:le.angle,align:Re,renderingMode:le.renderingMode}),Hi&&this.pdf.restoreGraphicsState()}}else zn.y<Zr&&(this.ctx.prevPageLastElemOffset+=Zr-zn.y);le.scale>=.01&&(this.pdf.setFontSize(Ar),this.lineWidth=gr)}else le.scale>=.01&&(Ar=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Ar*le.scale),gr=this.lineWidth,this.lineWidth=gr*le.scale),this.pdf.text(le.text,_t.x+this.posX,_t.y+this.posY,{angle:le.angle,align:Re,renderingMode:le.renderingMode,maxWidth:le.maxWidth}),le.scale>=.01&&(this.pdf.setFontSize(Ar),this.lineWidth=gr)},rr=function(le,Re,Ye,et){Ye=Ye||0,et=et||0,this.pdf.internal.out(l(le+Ye)+" "+b(Re+et)+" l")},U=function(le,Re,Ye){return this.pdf.lines(le,Re,Ye,null,null)},re=function(le,Re,Ye,et,bt,_t,Mt,Rt){this.pdf.internal.out([o(F(Ye+le)),o(C(et+Re)),o(F(bt+le)),o(C(_t+Re)),o(F(Mt+le)),o(C(Rt+Re)),"c"].join(" "))},Se=function(le,Re,Ye,et){for(var bt=2*Math.PI,_t=Math.PI/2;Re>Ye;)Re-=bt;var Mt=Math.abs(Ye-Re);Mt<bt&&et&&(Mt=bt-Mt);for(var Rt=[],lr=et?-1:1,Ar=Re;Mt>1e-5;){var gr=Ar+lr*Math.min(Mt,_t);Rt.push(Ue.call(this,le,Ar,gr)),Mt-=Math.abs(gr-Ar),Ar=gr}return Rt},Ue=function(le,Re,Ye){var et=(Ye-Re)/2,bt=le*Math.cos(et),_t=le*Math.sin(et),Mt=bt,Rt=-_t,lr=Mt*Mt+Rt*Rt,Ar=lr+Mt*bt+Rt*_t,gr=4/3*(Math.sqrt(2*lr*Ar)-Ar)/(Mt*_t-Rt*bt),_r=Mt-gr*Rt,dn=Rt+gr*Mt,or=_r,yt=-dn,Fn=et+Re,gn=Math.cos(Fn),yr=Math.sin(Fn);return{x1:le*Math.cos(Re),y1:le*Math.sin(Re),x2:_r*gn-dn*yr,y2:_r*yr+dn*gn,x3:or*gn-yt*yr,y3:or*yr+yt*gn,x4:le*Math.cos(Ye),y4:le*Math.sin(Ye)}},Ke=function(le){return 180*le/Math.PI},Xe=function(le,Re,Ye,et,bt,_t){var Mt=le+.5*(Ye-le),Rt=Re+.5*(et-Re),lr=bt+.5*(Ye-bt),Ar=_t+.5*(et-_t),gr=Math.min(le,bt,Mt,lr),_r=Math.max(le,bt,Mt,lr),dn=Math.min(Re,_t,Rt,Ar),or=Math.max(Re,_t,Rt,Ar);return new Z(gr,dn,_r-gr,or-dn)},dt=function(le,Re,Ye,et,bt,_t,Mt,Rt){var lr,Ar,gr,_r,dn,or,yt,Fn,gn,yr,Tr,Ur,wr,Zr,Cn=Ye-le,Gn=et-Re,Zn=bt-Ye,On=_t-et,di=Mt-bt,zn=Rt-_t;for(Ar=0;Ar<41;Ar++)gn=(yt=(gr=le+(lr=Ar/40)*Cn)+lr*((dn=Ye+lr*Zn)-gr))+lr*(dn+lr*(bt+lr*di-dn)-yt),yr=(Fn=(_r=Re+lr*Gn)+lr*((or=et+lr*On)-_r))+lr*(or+lr*(_t+lr*zn-or)-Fn),Ar==0?(Tr=gn,Ur=yr,wr=gn,Zr=yr):(Tr=Math.min(Tr,gn),Ur=Math.min(Ur,yr),wr=Math.max(wr,gn),Zr=Math.max(Zr,yr));return new Z(Math.round(Tr),Math.round(Ur),Math.round(wr-Tr),Math.round(Zr-Ur))},St=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var le,Re,Ye=(le=this.ctx.lineDash,Re=this.ctx.lineDashOffset,JSON.stringify({lineDash:le,lineDashOffset:Re}));this.prevLineDash!==Ye&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Ye)}}})(Ai.API),function(c){var o=function(C){var T,Z,ae,_e,$e,Ze,at,ye,kt,wt;for(/[^\x00-\xFF]/.test(C),Z=[],ae=0,_e=(C+=T="\0\0\0\0".slice(C.length%4||4)).length;_e>ae;ae+=4)($e=(C.charCodeAt(ae)<<24)+(C.charCodeAt(ae+1)<<16)+(C.charCodeAt(ae+2)<<8)+C.charCodeAt(ae+3))!==0?(Ze=($e=(($e=(($e=(($e=($e-(wt=$e%85))/85)-(kt=$e%85))/85)-(ye=$e%85))/85)-(at=$e%85))/85)%85,Z.push(Ze+33,at+33,ye+33,kt+33,wt+33)):Z.push(122);return function(Dt,ht){for(var Pt=ht;Pt>0;Pt--)Dt.pop()}(Z,T.length),String.fromCharCode.apply(String,Z)+"~>"},l=function(C){var T,Z,ae,_e,$e,Ze=String,at="length",ye=255,kt="charCodeAt",wt="slice",Dt="replace";for(C[wt](-2),C=C[wt](0,-2)[Dt](/\s/g,"")[Dt]("z","!!!!!"),ae=[],_e=0,$e=(C+=T="uuuuu"[wt](C[at]%5||5))[at];$e>_e;_e+=5)Z=52200625*(C[kt](_e)-33)+614125*(C[kt](_e+1)-33)+7225*(C[kt](_e+2)-33)+85*(C[kt](_e+3)-33)+(C[kt](_e+4)-33),ae.push(ye&Z>>24,ye&Z>>16,ye&Z>>8,ye&Z);return function(ht,Pt){for(var ar=Pt;ar>0;ar--)ht.pop()}(ae,T[at]),Ze.fromCharCode.apply(Ze,ae)},b=function(C){var T=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((C=C.replace(/\s/g,"")).indexOf(">")!==-1&&(C=C.substr(0,C.indexOf(">"))),C.length%2&&(C+="0"),T.test(C)===!1)return"";for(var Z="",ae=0;ae<C.length;ae+=2)Z+=String.fromCharCode("0x"+(C[ae]+C[ae+1]));return Z},F=function(C){for(var T=new Uint8Array(C.length),Z=C.length;Z--;)T[Z]=C.charCodeAt(Z);return C=(T=ki(T)).reduce(function(ae,_e){return ae+String.fromCharCode(_e)},"")};c.processDataByFilters=function(C,T){var Z=0,ae=C||"",_e=[];for(typeof(T=T||[])=="string"&&(T=[T]),Z=0;Z<T.length;Z+=1)switch(T[Z]){case"ASCII85Decode":case"/ASCII85Decode":ae=l(ae),_e.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":ae=o(ae),_e.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":ae=b(ae),_e.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":ae=ae.split("").map(function($e){return("0"+$e.charCodeAt().toString(16)).slice(-2)}).join("")+">",_e.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":ae=F(ae),_e.push("/FlateDecode");break;default:throw new Error('The filter: "'+T[Z]+'" is not implemented')}return{data:ae,reverseChain:_e.reverse().join(" ")}}}(Ai.API),function(c){c.loadFile=function(o,l,b){return function(F,C,T){C=C!==!1,T=typeof T=="function"?T:function(){};var Z=void 0;try{Z=function(ae,_e,$e){var Ze=new XMLHttpRequest,at=0,ye=function(kt){var wt=kt.length,Dt=[],ht=String.fromCharCode;for(at=0;at<wt;at+=1)Dt.push(ht(255&kt.charCodeAt(at)));return Dt.join("")};if(Ze.open("GET",ae,!_e),Ze.overrideMimeType("text/plain; charset=x-user-defined"),_e===!1&&(Ze.onload=function(){Ze.status===200?$e(ye(this.responseText)):$e(void 0)}),Ze.send(null),_e&&Ze.status===200)return ye(Ze.responseText)}(F,C,T)}catch(ae){}return Z}(o,l,b)},c.loadImageFile=c.loadFile}(Ai.API),function(c){function o(){return(on.html2canvas?Promise.resolve(on.html2canvas):Promise.resolve().then(w.t.bind(w,64270,23))).catch(function(T){return Promise.reject(new Error("Could not load html2canvas: "+T))}).then(function(T){return T.default?T.default:T})}function l(){return(on.DOMPurify?Promise.resolve(on.DOMPurify):w.e(2364).then(w.bind(w,12364))).catch(function(T){return Promise.reject(new Error("Could not load dompurify: "+T))}).then(function(T){return T.default?T.default:T})}var b=function(T){var Z=(0,pe.Z)(T);return Z==="undefined"?"undefined":Z==="string"||T instanceof String?"string":Z==="number"||T instanceof Number?"number":Z==="function"||T instanceof Function?"function":T&&T.constructor===Array?"array":T&&T.nodeType===1?"element":Z==="object"?"object":"unknown"},F=function(T,Z){var ae=document.createElement(T);for(var _e in Z.className&&(ae.className=Z.className),Z.innerHTML&&Z.dompurify&&(ae.innerHTML=Z.dompurify.sanitize(Z.innerHTML)),Z.style)ae.style[_e]=Z.style[_e];return ae},C=function T(Z){var ae=Object.assign(T.convert(Promise.resolve()),JSON.parse(JSON.stringify(T.template))),_e=T.convert(Promise.resolve(),ae);return _e=(_e=_e.setProgress(1,T,1,[T])).set(Z)};(C.prototype=Object.create(Promise.prototype)).constructor=C,C.convert=function(T,Z){return T.__proto__=Z||C.prototype,T},C.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},C.prototype.from=function(T,Z){return this.then(function(){switch(Z=Z||function(ae){switch(b(ae)){case"string":return"string";case"element":return ae.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(T)){case"string":return this.then(l).then(function(ae){return this.set({src:F("div",{innerHTML:T,dompurify:ae})})});case"element":return this.set({src:T});case"canvas":return this.set({canvas:T});case"img":return this.set({img:T});default:return this.error("Unknown source type.")}})},C.prototype.to=function(T){switch(T){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},C.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var T={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},Z=function ae(_e,$e){for(var Ze=_e.nodeType===3?document.createTextNode(_e.nodeValue):_e.cloneNode(!1),at=_e.firstChild;at;at=at.nextSibling)$e!==!0&&at.nodeType===1&&at.nodeName==="SCRIPT"||Ze.appendChild(ae(at,$e));return _e.nodeType===1&&(_e.nodeName==="CANVAS"?(Ze.width=_e.width,Ze.height=_e.height,Ze.getContext("2d").drawImage(_e,0,0)):_e.nodeName!=="TEXTAREA"&&_e.nodeName!=="SELECT"||(Ze.value=_e.value),Ze.addEventListener("load",function(){Ze.scrollTop=_e.scrollTop,Ze.scrollLeft=_e.scrollLeft},!0)),Ze}(this.prop.src,this.opt.html2canvas.javascriptEnabled);Z.tagName==="BODY"&&(T.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=F("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=F("div",{className:"html2pdf__container",style:T}),this.prop.container.appendChild(Z),this.prop.container.firstChild.appendChild(F("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},C.prototype.toCanvas=function(){var T=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(T).then(o).then(function(Z){var ae=Object.assign({},this.opt.html2canvas);return delete ae.onrendered,Z(this.prop.container,ae)}).then(function(Z){(this.opt.html2canvas.onrendered||function(){})(Z),this.prop.canvas=Z,document.body.removeChild(this.prop.overlay)})},C.prototype.toContext2d=function(){var T=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(T).then(o).then(function(Z){var ae=this.opt.jsPDF,_e=this.opt.fontFaces,$e=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,Ze=Object.assign({async:!0,allowTaint:!0,scale:$e,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete Ze.onrendered,ae.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,ae.context2d.posX=this.opt.x,ae.context2d.posY=this.opt.y,ae.context2d.margin=this.opt.margin,ae.context2d.fontFaces=_e,_e)for(var at=0;at<_e.length;++at){var ye=_e[at],kt=ye.src.find(function(wt){return wt.format==="truetype"});kt&&ae.addFont(kt.url,ye.ref.name,ye.ref.style)}return Ze.windowHeight=Ze.windowHeight||0,Ze.windowHeight=Ze.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Ze.windowHeight,ae.context2d.save(!0),Z(this.prop.container,Ze)}).then(function(Z){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(Z),this.prop.canvas=Z,document.body.removeChild(this.prop.overlay)})},C.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var T=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=T})},C.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},C.prototype.output=function(T,Z,ae){return(ae=ae||"pdf").toLowerCase()==="img"||ae.toLowerCase()==="image"?this.outputImg(T,Z):this.outputPdf(T,Z)},C.prototype.outputPdf=function(T,Z){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(T,Z)})},C.prototype.outputImg=function(T){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(T){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+T+'" is not supported.'}})},C.prototype.save=function(T){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(T?{filename:T}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},C.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},C.prototype.set=function(T){if(b(T)!=="object")return this;var Z=Object.keys(T||{}).map(function(ae){if(ae in C.template.prop)return function(){this.prop[ae]=T[ae]};switch(ae){case"margin":return this.setMargin.bind(this,T.margin);case"jsPDF":return function(){return this.opt.jsPDF=T.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,T.pageSize);default:return function(){this.opt[ae]=T[ae]}}},this);return this.then(function(){return this.thenList(Z)})},C.prototype.get=function(T,Z){return this.then(function(){var ae=T in C.template.prop?this.prop[T]:this.opt[T];return Z?Z(ae):ae})},C.prototype.setMargin=function(T){return this.then(function(){switch(b(T)){case"number":T=[T,T,T,T];case"array":if(T.length===2&&(T=[T[0],T[1],T[0],T[1]]),T.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=T}).then(this.setPageSize)},C.prototype.setPageSize=function(T){function Z(ae,_e){return Math.floor(ae*_e/72*96)}return this.then(function(){(T=T||Ai.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(T.inner={width:T.width-this.opt.margin[1]-this.opt.margin[3],height:T.height-this.opt.margin[0]-this.opt.margin[2]},T.inner.px={width:Z(T.inner.width,T.k),height:Z(T.inner.height,T.k)},T.inner.ratio=T.inner.height/T.inner.width),this.prop.pageSize=T})},C.prototype.setProgress=function(T,Z,ae,_e){return T!=null&&(this.progress.val=T),Z!=null&&(this.progress.state=Z),ae!=null&&(this.progress.n=ae),_e!=null&&(this.progress.stack=_e),this.progress.ratio=this.progress.val/this.progress.state,this},C.prototype.updateProgress=function(T,Z,ae,_e){return this.setProgress(T?this.progress.val+T:null,Z||null,ae?this.progress.n+ae:null,_e?this.progress.stack.concat(_e):null)},C.prototype.then=function(T,Z){var ae=this;return this.thenCore(T,Z,function(_e,$e){return ae.updateProgress(null,null,1,[_e]),Promise.prototype.then.call(this,function(Ze){return ae.updateProgress(null,_e),Ze}).then(_e,$e).then(function(Ze){return ae.updateProgress(1),Ze})})},C.prototype.thenCore=function(T,Z,ae){ae=ae||Promise.prototype.then,T&&(T=T.bind(this)),Z&&(Z=Z.bind(this));var _e=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:C.convert(Object.assign({},this),Promise.prototype),$e=ae.call(_e,T,Z);return C.convert($e,this.__proto__)},C.prototype.thenExternal=function(T,Z){return Promise.prototype.then.call(this,T,Z)},C.prototype.thenList=function(T){var Z=this;return T.forEach(function(ae){Z=Z.thenCore(ae)}),Z},C.prototype.catch=function(T){T&&(T=T.bind(this));var Z=Promise.prototype.catch.call(this,T);return C.convert(Z,this)},C.prototype.catchExternal=function(T){return Promise.prototype.catch.call(this,T)},C.prototype.error=function(T){return this.then(function(){throw new Error(T)})},C.prototype.using=C.prototype.set,C.prototype.saveAs=C.prototype.save,C.prototype.export=C.prototype.output,C.prototype.run=C.prototype.then,Ai.getPageSize=function(T,Z,ae){if((0,pe.Z)(T)==="object"){var _e=T;T=_e.orientation,Z=_e.unit||Z,ae=_e.format||ae}Z=Z||"mm",ae=ae||"a4",T=(""+(T||"P")).toLowerCase();var $e,Ze=(""+ae).toLowerCase(),at={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(Z){case"pt":$e=1;break;case"mm":$e=72/25.4;break;case"cm":$e=72/2.54;break;case"in":$e=72;break;case"px":$e=.75;break;case"pc":case"em":$e=12;break;case"ex":$e=6;break;default:throw"Invalid unit: "+Z}var ye,kt=0,wt=0;if(at.hasOwnProperty(Ze))kt=at[Ze][1]/$e,wt=at[Ze][0]/$e;else try{kt=ae[1],wt=ae[0]}catch(Dt){throw new Error("Invalid format: "+ae)}if(T==="p"||T==="portrait")T="p",wt>kt&&(ye=wt,wt=kt,kt=ye);else{if(T!=="l"&&T!=="landscape")throw"Invalid orientation: "+T;T="l",kt>wt&&(ye=wt,wt=kt,kt=ye)}return{width:wt,height:kt,unit:Z,k:$e,orientation:T}},c.html=function(T,Z){(Z=Z||{}).callback=Z.callback||function(){},Z.html2canvas=Z.html2canvas||{},Z.html2canvas.canvas=Z.html2canvas.canvas||this.canvas,Z.jsPDF=Z.jsPDF||this,Z.fontFaces=Z.fontFaces?Z.fontFaces.map(tc):null;var ae=new C(Z);return Z.worker?ae:ae.from(T).doCallback()}}(Ai.API),Ai.API.addJS=function(c){return hl=c,this.internal.events.subscribe("postPutResources",function(){Wo=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Wo+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Ds=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+hl+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Wo!==void 0&&Ds!==void 0&&this.internal.out("/Names <</JavaScript "+Wo+" 0 R>>")}),this},function(c){var o;c.events.push(["postPutResources",function(){var l=this,b=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var F=l.outline.render().split(/\r\n/),C=0;C<F.length;C++){var T=F[C],Z=b.exec(T);if(Z!=null){var ae=Z[1];l.internal.newObjectDeferredBegin(ae,!1)}l.internal.write(T)}if(this.outline.createNamedDestinations){var _e=this.internal.pages.length,$e=[];for(C=0;C<_e;C++){var Ze=l.internal.newObject();$e.push(Ze);var at=l.internal.getPageInfo(C+1);l.internal.write("<< /D["+at.objId+" 0 R /XYZ null null null]>> endobj")}var ye=l.internal.newObject();for(l.internal.write("<< /Names [ "),C=0;C<$e.length;C++)l.internal.write("(page_"+(C+1)+")"+$e[C]+" 0 R");l.internal.write(" ] >>","endobj"),o=l.internal.newObject(),l.internal.write("<< /Dests "+ye+" 0 R"),l.internal.write(">>","endobj")}}]),c.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+o+" 0 R"))}]),c.events.push(["initialized",function(){var l=this;l.outline={createNamedDestinations:!1,root:{children:[]}},l.outline.add=function(b,F,C){var T={title:F,options:C,children:[]};return b==null&&(b=this.root),b.children.push(T),T},l.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=l,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},l.outline.genIds_r=function(b){b.id=l.internal.newObjectDeferred();for(var F=0;F<b.children.length;F++)this.genIds_r(b.children[F])},l.outline.renderRoot=function(b){this.objStart(b),this.line("/Type /Outlines"),b.children.length>0&&(this.line("/First "+this.makeRef(b.children[0])),this.line("/Last "+this.makeRef(b.children[b.children.length-1]))),this.line("/Count "+this.count_r({count:0},b)),this.objEnd()},l.outline.renderItems=function(b){for(var F=this.ctx.pdf.internal.getVerticalCoordinateString,C=0;C<b.children.length;C++){var T=b.children[C];this.objStart(T),this.line("/Title "+this.makeString(T.title)),this.line("/Parent "+this.makeRef(b)),C>0&&this.line("/Prev "+this.makeRef(b.children[C-1])),C<b.children.length-1&&this.line("/Next "+this.makeRef(b.children[C+1])),T.children.length>0&&(this.line("/First "+this.makeRef(T.children[0])),this.line("/Last "+this.makeRef(T.children[T.children.length-1])));var Z=this.count=this.count_r({count:0},T);if(Z>0&&this.line("/Count "+Z),T.options&&T.options.pageNumber){var ae=l.internal.getPageInfo(T.options.pageNumber);this.line("/Dest ["+ae.objId+" 0 R /XYZ 0 "+F(0)+" 0]")}this.objEnd()}for(var _e=0;_e<b.children.length;_e++)this.renderItems(b.children[_e])},l.outline.line=function(b){this.ctx.val+=b+`\r
|
|
|
`},l.outline.makeRef=function(b){return b.id+" 0 R"},l.outline.makeString=function(b){return"("+l.internal.pdfEscape(b)+")"},l.outline.objStart=function(b){this.ctx.val+=`\r
|
|
|
`+b.id+` 0 obj\r
|
|
|
<<\r
|
|
|
`},l.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
|
endobj\r
|
|
|
`},l.outline.count_r=function(b,F){for(var C=0;C<F.children.length;C++)b.count++,this.count_r(b,F.children[C]);return b.count}}])}(Ai.API),function(c){var o=[192,193,194,195,196,197,198,199];c.processJPEG=function(l,b,F,C,T,Z){var ae,_e=this.decode.DCT_DECODE,$e=null;if(typeof l=="string"||this.__addimage__.isArrayBuffer(l)||this.__addimage__.isArrayBufferView(l)){switch(l=T||l,l=this.__addimage__.isArrayBuffer(l)?new Uint8Array(l):l,(ae=function(Ze){for(var at,ye=256*Ze.charCodeAt(4)+Ze.charCodeAt(5),kt=Ze.length,wt={width:0,height:0,numcomponents:1},Dt=4;Dt<kt;Dt+=2){if(Dt+=ye,o.indexOf(Ze.charCodeAt(Dt+1))!==-1){at=256*Ze.charCodeAt(Dt+5)+Ze.charCodeAt(Dt+6),wt={width:256*Ze.charCodeAt(Dt+7)+Ze.charCodeAt(Dt+8),height:at,numcomponents:Ze.charCodeAt(Dt+9)};break}ye=256*Ze.charCodeAt(Dt+2)+Ze.charCodeAt(Dt+3)}return wt}(l=this.__addimage__.isArrayBufferView(l)?this.__addimage__.arrayBufferToBinaryString(l):l)).numcomponents){case 1:Z=this.color_spaces.DEVICE_GRAY;break;case 4:Z=this.color_spaces.DEVICE_CMYK;break;case 3:Z=this.color_spaces.DEVICE_RGB}$e={data:l,width:ae.width,height:ae.height,colorSpace:Z,bitsPerComponent:8,filter:_e,index:b,alias:F}}return $e}}(Ai.API);var al,Wc,Dl,Js,lA,cA=function(){var c,o,l;function b(C){var T,Z,ae,_e,$e,Ze,at,ye,kt,wt,Dt,ht,Pt,ar;for(this.data=C,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},Ze=null;;){switch(T=this.readUInt32(),kt=function(){var xr,Kr;for(Kr=[],xr=0;xr<4;++xr)Kr.push(String.fromCharCode(this.data[this.pos++]));return Kr}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(T);break;case"fcTL":Ze&&this.animation.frames.push(Ze),this.pos+=4,Ze={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},$e=this.readUInt16(),_e=this.readUInt16()||100,Ze.delay=1e3*$e/_e,Ze.disposeOp=this.data[this.pos++],Ze.blendOp=this.data[this.pos++],Ze.data=[];break;case"IDAT":case"fdAT":for(kt==="fdAT"&&(this.pos+=4,T-=4),C=(Ze!=null?Ze.data:void 0)||this.imgData,ht=0;0<=T?ht<T:ht>T;0<=T?++ht:--ht)C.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(ae=this.palette.length/3,this.transparency.indexed=this.read(T),this.transparency.indexed.length>ae)throw new Error("More transparent colors than palette size");if((wt=ae-this.transparency.indexed.length)>0)for(Pt=0;0<=wt?Pt<wt:Pt>wt;0<=wt?++Pt:--Pt)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(T)[0];break;case 2:this.transparency.rgb=this.read(T)}break;case"tEXt":at=(Dt=this.read(T)).indexOf(0),ye=String.fromCharCode.apply(String,Dt.slice(0,at)),this.text[ye]=String.fromCharCode.apply(String,Dt.slice(at+1));break;case"IEND":return Ze&&this.animation.frames.push(Ze),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(ar=this.colorType)===4||ar===6,Z=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*Z,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=T}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}b.prototype.read=function(C){var T,Z;for(Z=[],T=0;0<=C?T<C:T>C;0<=C?++T:--T)Z.push(this.data[this.pos++]);return Z},b.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},b.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},b.prototype.decodePixels=function(C){var T=this.pixelBitlength/8,Z=new Uint8Array(this.width*this.height*T),ae=0,_e=this;if(C==null&&(C=this.imgData),C.length===0)return new Uint8Array(0);function $e(Ze,at,ye,kt){var wt,Dt,ht,Pt,ar,xr,Kr,hn,Ir,Vt,Pr,Jr,vt,Ct,rr,U,re,Se,Ue,Ke,Xe,dt=Math.ceil((_e.width-Ze)/ye),St=Math.ceil((_e.height-at)/kt),le=_e.width==dt&&_e.height==St;for(Ct=T*dt,Jr=le?Z:new Uint8Array(Ct*St),xr=C.length,vt=0,Dt=0;vt<St&&ae<xr;){switch(C[ae++]){case 0:for(Pt=re=0;re<Ct;Pt=re+=1)Jr[Dt++]=C[ae++];break;case 1:for(Pt=Se=0;Se<Ct;Pt=Se+=1)wt=C[ae++],ar=Pt<T?0:Jr[Dt-T],Jr[Dt++]=(wt+ar)%256;break;case 2:for(Pt=Ue=0;Ue<Ct;Pt=Ue+=1)wt=C[ae++],ht=(Pt-Pt%T)/T,rr=vt&&Jr[(vt-1)*Ct+ht*T+Pt%T],Jr[Dt++]=(rr+wt)%256;break;case 3:for(Pt=Ke=0;Ke<Ct;Pt=Ke+=1)wt=C[ae++],ht=(Pt-Pt%T)/T,ar=Pt<T?0:Jr[Dt-T],rr=vt&&Jr[(vt-1)*Ct+ht*T+Pt%T],Jr[Dt++]=(wt+Math.floor((ar+rr)/2))%256;break;case 4:for(Pt=Xe=0;Xe<Ct;Pt=Xe+=1)wt=C[ae++],ht=(Pt-Pt%T)/T,ar=Pt<T?0:Jr[Dt-T],vt===0?rr=U=0:(rr=Jr[(vt-1)*Ct+ht*T+Pt%T],U=ht&&Jr[(vt-1)*Ct+(ht-1)*T+Pt%T]),Kr=ar+rr-U,hn=Math.abs(Kr-ar),Vt=Math.abs(Kr-rr),Pr=Math.abs(Kr-U),Ir=hn<=Vt&&hn<=Pr?ar:Vt<=Pr?rr:U,Jr[Dt++]=(wt+Ir)%256;break;default:throw new Error("Invalid filter algorithm: "+C[ae-1])}if(!le){var Re=((at+vt*kt)*_e.width+Ze)*T,Ye=vt*Ct;for(Pt=0;Pt<dt;Pt+=1){for(var et=0;et<T;et+=1)Z[Re++]=Jr[Ye++];Re+=(ye-1)*T}}vt++}}return C=ke(C),_e.interlaceMethod==1?($e(0,0,8,8),$e(4,0,8,8),$e(0,4,4,8),$e(2,0,4,4),$e(0,2,2,4),$e(1,0,2,2),$e(0,1,1,2)):$e(0,0,1,1),Z},b.prototype.decodePalette=function(){var C,T,Z,ae,_e,$e,Ze,at,ye;for(Z=this.palette,$e=this.transparency.indexed||[],_e=new Uint8Array(($e.length||0)+Z.length),ae=0,C=0,T=Ze=0,at=Z.length;Ze<at;T=Ze+=3)_e[ae++]=Z[T],_e[ae++]=Z[T+1],_e[ae++]=Z[T+2],_e[ae++]=(ye=$e[C++])!=null?ye:255;return _e},b.prototype.copyToImageData=function(C,T){var Z,ae,_e,$e,Ze,at,ye,kt,wt,Dt,ht;if(ae=this.colors,wt=null,Z=this.hasAlphaChannel,this.palette.length&&(wt=(ht=this._decodedPalette)!=null?ht:this._decodedPalette=this.decodePalette(),ae=4,Z=!0),kt=(_e=C.data||C).length,Ze=wt||T,$e=at=0,ae===1)for(;$e<kt;)ye=wt?4*T[$e/4]:at,Dt=Ze[ye++],_e[$e++]=Dt,_e[$e++]=Dt,_e[$e++]=Dt,_e[$e++]=Z?Ze[ye++]:255,at=ye;else for(;$e<kt;)ye=wt?4*T[$e/4]:at,_e[$e++]=Ze[ye++],_e[$e++]=Ze[ye++],_e[$e++]=Ze[ye++],_e[$e++]=Z?Ze[ye++]:255,at=ye},b.prototype.decode=function(){var C;return C=new Uint8Array(this.width*this.height*4),this.copyToImageData(C,this.decodePixels()),C};var F=function(){if(Object.prototype.toString.call(on)==="[object Window]"){try{o=on.document.createElement("canvas"),l=o.getContext("2d")}catch(C){return!1}return!0}return!1};return F(),c=function(C){var T;if(F()===!0)return l.width=C.width,l.height=C.height,l.clearRect(0,0,C.width,C.height),l.putImageData(C,0,0),(T=new Image).src=o.toDataURL(),T;throw new Error("This method requires a Browser with Canvas-capability.")},b.prototype.decodeFrames=function(C){var T,Z,ae,_e,$e,Ze,at,ye;if(this.animation){for(ye=[],Z=$e=0,Ze=(at=this.animation.frames).length;$e<Ze;Z=++$e)T=at[Z],ae=C.createImageData(T.width,T.height),_e=this.decodePixels(new Uint8Array(T.data)),this.copyToImageData(ae,_e),T.imageData=ae,ye.push(T.image=c(ae));return ye}},b.prototype.renderFrame=function(C,T){var Z,ae,_e;return Z=(ae=this.animation.frames)[T],_e=ae[T-1],T===0&&C.clearRect(0,0,this.width,this.height),(_e!=null?_e.disposeOp:void 0)===1?C.clearRect(_e.xOffset,_e.yOffset,_e.width,_e.height):(_e!=null?_e.disposeOp:void 0)===2&&C.putImageData(_e.imageData,_e.xOffset,_e.yOffset),Z.blendOp===0&&C.clearRect(Z.xOffset,Z.yOffset,Z.width,Z.height),C.drawImage(Z.image,Z.xOffset,Z.yOffset)},b.prototype.animate=function(C){var T,Z,ae,_e,$e,Ze,at=this;return Z=0,Ze=this.animation,_e=Ze.numFrames,ae=Ze.frames,$e=Ze.numPlays,(T=function(){var ye,kt;if(ye=Z++%_e,kt=ae[ye],at.renderFrame(C,ye),_e>1&&Z/_e<$e)return at.animation._timeout=setTimeout(T,kt.delay)})()},b.prototype.stopAnimation=function(){var C;return clearTimeout((C=this.animation)!=null?C._timeout:void 0)},b.prototype.render=function(C){var T,Z;return C._png&&C._png.stopAnimation(),C._png=this,C.width=this.width,C.height=this.height,T=C.getContext("2d"),this.animation?(this.decodeFrames(T),this.animate(T)):(Z=T.createImageData(this.width,this.height),this.copyToImageData(Z,this.decodePixels()),T.putImageData(Z,0,0))},b}();function hc(c){var o=0;if(c[o++]!==71||c[o++]!==73||c[o++]!==70||c[o++]!==56||(c[o++]+1&253)!=56||c[o++]!==97)throw new Error("Invalid GIF 87a/89a header.");var l=c[o++]|c[o++]<<8,b=c[o++]|c[o++]<<8,F=c[o++],C=F>>7,T=1<<(7&F)+1;c[o++],c[o++];var Z=null,ae=null;C&&(Z=o,ae=T,o+=3*T);var _e=!0,$e=[],Ze=0,at=null,ye=0,kt=null;for(this.width=l,this.height=b;_e&&o<c.length;)switch(c[o++]){case 33:switch(c[o++]){case 255:if(c[o]!==11||c[o+1]==78&&c[o+2]==69&&c[o+3]==84&&c[o+4]==83&&c[o+5]==67&&c[o+6]==65&&c[o+7]==80&&c[o+8]==69&&c[o+9]==50&&c[o+10]==46&&c[o+11]==48&&c[o+12]==3&&c[o+13]==1&&c[o+16]==0)o+=14,kt=c[o++]|c[o++]<<8,o++;else for(o+=12;;){if(!((vt=c[o++])>=0))throw Error("Invalid block size");if(vt===0)break;o+=vt}break;case 249:if(c[o++]!==4||c[o+4]!==0)throw new Error("Invalid graphics extension block.");var wt=c[o++];Ze=c[o++]|c[o++]<<8,at=c[o++],!(1&wt)&&(at=null),ye=wt>>2&7,o++;break;case 254:for(;;){if(!((vt=c[o++])>=0))throw Error("Invalid block size");if(vt===0)break;o+=vt}break;default:throw new Error("Unknown graphic control label: 0x"+c[o-1].toString(16))}break;case 44:var Dt=c[o++]|c[o++]<<8,ht=c[o++]|c[o++]<<8,Pt=c[o++]|c[o++]<<8,ar=c[o++]|c[o++]<<8,xr=c[o++],Kr=xr>>6&1,hn=1<<(7&xr)+1,Ir=Z,Vt=ae,Pr=!1;xr>>7&&(Pr=!0,Ir=o,Vt=hn,o+=3*hn);var Jr=o;for(o++;;){var vt;if(!((vt=c[o++])>=0))throw Error("Invalid block size");if(vt===0)break;o+=vt}$e.push({x:Dt,y:ht,width:Pt,height:ar,has_local_palette:Pr,palette_offset:Ir,palette_size:Vt,data_offset:Jr,data_length:o-Jr,transparent_index:at,interlaced:!!Kr,delay:Ze,disposal:ye});break;case 59:_e=!1;break;default:throw new Error("Unknown gif block: 0x"+c[o-1].toString(16))}this.numFrames=function(){return $e.length},this.loopCount=function(){return kt},this.frameInfo=function(Ct){if(Ct<0||Ct>=$e.length)throw new Error("Frame index out of range.");return $e[Ct]},this.decodeAndBlitFrameBGRA=function(Ct,rr){var U=this.frameInfo(Ct),re=U.width*U.height,Se=new Uint8Array(re);wA(c,U.data_offset,Se,re);var Ue=U.palette_offset,Ke=U.transparent_index;Ke===null&&(Ke=256);var Xe=U.width,dt=l-Xe,St=Xe,le=4*(U.y*l+U.x),Re=4*((U.y+U.height)*l+U.x),Ye=le,et=4*dt;U.interlaced===!0&&(et+=4*l*7);for(var bt=8,_t=0,Mt=Se.length;_t<Mt;++_t){var Rt=Se[_t];if(St===0&&(St=Xe,(Ye+=et)>=Re&&(et=4*dt+4*l*(bt-1),Ye=le+(Xe+dt)*(bt<<1),bt>>=1)),Rt===Ke)Ye+=4;else{var lr=c[Ue+3*Rt],Ar=c[Ue+3*Rt+1],gr=c[Ue+3*Rt+2];rr[Ye++]=gr,rr[Ye++]=Ar,rr[Ye++]=lr,rr[Ye++]=255}--St}},this.decodeAndBlitFrameRGBA=function(Ct,rr){var U=this.frameInfo(Ct),re=U.width*U.height,Se=new Uint8Array(re);wA(c,U.data_offset,Se,re);var Ue=U.palette_offset,Ke=U.transparent_index;Ke===null&&(Ke=256);var Xe=U.width,dt=l-Xe,St=Xe,le=4*(U.y*l+U.x),Re=4*((U.y+U.height)*l+U.x),Ye=le,et=4*dt;U.interlaced===!0&&(et+=4*l*7);for(var bt=8,_t=0,Mt=Se.length;_t<Mt;++_t){var Rt=Se[_t];if(St===0&&(St=Xe,(Ye+=et)>=Re&&(et=4*dt+4*l*(bt-1),Ye=le+(Xe+dt)*(bt<<1),bt>>=1)),Rt===Ke)Ye+=4;else{var lr=c[Ue+3*Rt],Ar=c[Ue+3*Rt+1],gr=c[Ue+3*Rt+2];rr[Ye++]=lr,rr[Ye++]=Ar,rr[Ye++]=gr,rr[Ye++]=255}--St}}}function wA(c,o,l,b){for(var F=c[o++],C=1<<F,T=C+1,Z=T+1,ae=F+1,_e=(1<<ae)-1,$e=0,Ze=0,at=0,ye=c[o++],kt=new Int32Array(4096),wt=null;;){for(;$e<16&&ye!==0;)Ze|=c[o++]<<$e,$e+=8,ye===1?ye=c[o++]:--ye;if($e<ae)break;var Dt=Ze&_e;if(Ze>>=ae,$e-=ae,Dt!==C){if(Dt===T)break;for(var ht=Dt<Z?Dt:wt,Pt=0,ar=ht;ar>C;)ar=kt[ar]>>8,++Pt;var xr=ar;if(at+Pt+(ht!==Dt?1:0)>b)return void Ln.log("Warning, gif stream longer than expected.");l[at++]=xr;var Kr=at+=Pt;for(ht!==Dt&&(l[at++]=xr),ar=ht;Pt--;)ar=kt[ar],l[--Kr]=255&ar,ar>>=8;wt!==null&&Z<4096&&(kt[Z++]=wt<<8|xr,Z>=_e+1&&ae<12&&(++ae,_e=_e<<1|1)),wt=Dt}else Z=T+1,_e=(1<<(ae=F+1))-1,wt=null}return at!==b&&Ln.log("Warning, gif stream shorter than expected."),l}function Pl(c){var o,l,b,F,C,T=Math.floor,Z=new Array(64),ae=new Array(64),_e=new Array(64),$e=new Array(64),Ze=new Array(65535),at=new Array(65535),ye=new Array(64),kt=new Array(64),wt=[],Dt=0,ht=7,Pt=new Array(64),ar=new Array(64),xr=new Array(64),Kr=new Array(256),hn=new Array(2048),Ir=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Vt=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Pr=[0,1,2,3,4,5,6,7,8,9,10,11],Jr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],vt=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],Ct=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],rr=[0,1,2,3,4,5,6,7,8,9,10,11],U=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],re=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function Se(le,Re){for(var Ye=0,et=0,bt=new Array,_t=1;_t<=16;_t++){for(var Mt=1;Mt<=le[_t];Mt++)bt[Re[et]]=[],bt[Re[et]][0]=Ye,bt[Re[et]][1]=_t,et++,Ye++;Ye*=2}return bt}function Ue(le){for(var Re=le[0],Ye=le[1]-1;Ye>=0;)Re&1<<Ye&&(Dt|=1<<ht),Ye--,--ht<0&&(Dt==255?(Ke(255),Ke(0)):Ke(Dt),ht=7,Dt=0)}function Ke(le){wt.push(le)}function Xe(le){Ke(le>>8&255),Ke(255&le)}function dt(le,Re,Ye,et,bt){for(var _t,Mt=bt[0],Rt=bt[240],lr=function(yr,Tr){var Ur,wr,Zr,Cn,Gn,Zn,On,di,zn,Fi,vn=0;for(zn=0;zn<8;++zn){Ur=yr[vn],wr=yr[vn+1],Zr=yr[vn+2],Cn=yr[vn+3],Gn=yr[vn+4],Zn=yr[vn+5],On=yr[vn+6];var _a=Ur+(di=yr[vn+7]),Hi=Ur-di,Ri=wr+On,ia=wr-On,Ki=Zr+Zn,Qa=Zr-Zn,Wi=Cn+Gn,As=Cn-Gn,En=_a+Wi,fi=_a-Wi,gi=Ri+Ki,$n=Ri-Ki;yr[vn]=En+gi,yr[vn+4]=En-gi;var ai=.707106781*($n+fi);yr[vn+2]=fi+ai,yr[vn+6]=fi-ai;var kn=.382683433*((En=As+Qa)-($n=ia+Hi)),Qi=.5411961*En+kn,Gi=1.306562965*$n+kn,qi=.707106781*(gi=Qa+ia),Mo=Hi+qi,Ii=Hi-qi;yr[vn+5]=Ii+Qi,yr[vn+3]=Ii-Qi,yr[vn+1]=Mo+Gi,yr[vn+7]=Mo-Gi,vn+=8}for(vn=0,zn=0;zn<8;++zn){Ur=yr[vn],wr=yr[vn+8],Zr=yr[vn+16],Cn=yr[vn+24],Gn=yr[vn+32],Zn=yr[vn+40],On=yr[vn+48];var ns=Ur+(di=yr[vn+56]),ro=Ur-di,Qo=wr+On,wn=wr-On,no=Zr+Zn,Cs=Zr-Zn,ga=Cn+Gn,qr=Cn-Gn,fa=ns+ga,so=ns-ga,Va=Qo+no,Si=Qo-no;yr[vn]=fa+Va,yr[vn+32]=fa-Va;var bo=.707106781*(Si+so);yr[vn+16]=so+bo,yr[vn+48]=so-bo;var Ko=.382683433*((fa=qr+Cs)-(Si=wn+ro)),Bs=.5411961*fa+Ko,gs=1.306562965*Si+Ko,is=.707106781*(Va=Cs+wn),us=ro+is,bl=ro-is;yr[vn+40]=bl+Bs,yr[vn+24]=bl-Bs,yr[vn+8]=us+gs,yr[vn+56]=us-gs,vn++}for(zn=0;zn<64;++zn)Fi=yr[zn]*Tr[zn],ye[zn]=Fi>0?Fi+.5|0:Fi-.5|0;return ye}(le,Re),Ar=0;Ar<64;++Ar)kt[Ir[Ar]]=lr[Ar];var gr=kt[0]-Ye;Ye=kt[0],gr==0?Ue(et[0]):(Ue(et[at[_t=32767+gr]]),Ue(Ze[_t]));for(var _r=63;_r>0&&kt[_r]==0;)_r--;if(_r==0)return Ue(Mt),Ye;for(var dn,or=1;or<=_r;){for(var yt=or;kt[or]==0&&or<=_r;)++or;var Fn=or-yt;if(Fn>=16){dn=Fn>>4;for(var gn=1;gn<=dn;++gn)Ue(Rt);Fn&=15}_t=32767+kt[or],Ue(bt[(Fn<<4)+at[_t]]),Ue(Ze[_t]),or++}return _r!=63&&Ue(Mt),Ye}function St(le){le=Math.min(Math.max(le,1),100),C!=le&&(function(Re){for(var Ye=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],et=0;et<64;et++){var bt=T((Ye[et]*Re+50)/100);bt=Math.min(Math.max(bt,1),255),Z[Ir[et]]=bt}for(var _t=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],Mt=0;Mt<64;Mt++){var Rt=T((_t[Mt]*Re+50)/100);Rt=Math.min(Math.max(Rt,1),255),ae[Ir[Mt]]=Rt}for(var lr=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Ar=0,gr=0;gr<8;gr++)for(var _r=0;_r<8;_r++)_e[Ar]=1/(Z[Ir[Ar]]*lr[gr]*lr[_r]*8),$e[Ar]=1/(ae[Ir[Ar]]*lr[gr]*lr[_r]*8),Ar++}(le<50?Math.floor(5e3/le):Math.floor(200-2*le)),C=le)}this.encode=function(le,Re){Re&&St(Re),wt=new Array,Dt=0,ht=7,Xe(65496),Xe(65504),Xe(16),Ke(74),Ke(70),Ke(73),Ke(70),Ke(0),Ke(1),Ke(1),Ke(0),Xe(1),Xe(1),Ke(0),Ke(0),function(){Xe(65499),Xe(132),Ke(0);for(var wr=0;wr<64;wr++)Ke(Z[wr]);Ke(1);for(var Zr=0;Zr<64;Zr++)Ke(ae[Zr])}(),function(wr,Zr){Xe(65472),Xe(17),Ke(8),Xe(Zr),Xe(wr),Ke(3),Ke(1),Ke(17),Ke(0),Ke(2),Ke(17),Ke(1),Ke(3),Ke(17),Ke(1)}(le.width,le.height),function(){Xe(65476),Xe(418),Ke(0);for(var wr=0;wr<16;wr++)Ke(Vt[wr+1]);for(var Zr=0;Zr<=11;Zr++)Ke(Pr[Zr]);Ke(16);for(var Cn=0;Cn<16;Cn++)Ke(Jr[Cn+1]);for(var Gn=0;Gn<=161;Gn++)Ke(vt[Gn]);Ke(1);for(var Zn=0;Zn<16;Zn++)Ke(Ct[Zn+1]);for(var On=0;On<=11;On++)Ke(rr[On]);Ke(17);for(var di=0;di<16;di++)Ke(U[di+1]);for(var zn=0;zn<=161;zn++)Ke(re[zn])}(),Xe(65498),Xe(12),Ke(3),Ke(1),Ke(0),Ke(2),Ke(17),Ke(3),Ke(17),Ke(0),Ke(63),Ke(0);var Ye=0,et=0,bt=0;Dt=0,ht=7,this.encode.displayName="_encode_";for(var _t,Mt,Rt,lr,Ar,gr,_r,dn,or,yt=le.data,Fn=le.width,gn=le.height,yr=4*Fn,Tr=0;Tr<gn;){for(_t=0;_t<yr;){for(Ar=yr*Tr+_t,_r=-1,dn=0,or=0;or<64;or++)gr=Ar+(dn=or>>3)*yr+(_r=4*(7&or)),Tr+dn>=gn&&(gr-=yr*(Tr+1+dn-gn)),_t+_r>=yr&&(gr-=_t+_r-yr+4),Mt=yt[gr++],Rt=yt[gr++],lr=yt[gr++],Pt[or]=(hn[Mt]+hn[Rt+256>>0]+hn[lr+512>>0]>>16)-128,ar[or]=(hn[Mt+768>>0]+hn[Rt+1024>>0]+hn[lr+1280>>0]>>16)-128,xr[or]=(hn[Mt+1280>>0]+hn[Rt+1536>>0]+hn[lr+1792>>0]>>16)-128;Ye=dt(Pt,_e,Ye,o,b),et=dt(ar,$e,et,l,F),bt=dt(xr,$e,bt,l,F),_t+=32}Tr+=8}if(ht>=0){var Ur=[];Ur[1]=ht+1,Ur[0]=(1<<ht+1)-1,Ue(Ur)}return Xe(65497),new Uint8Array(wt)},c=c||50,function(){for(var le=String.fromCharCode,Re=0;Re<256;Re++)Kr[Re]=le(Re)}(),o=Se(Vt,Pr),l=Se(Ct,rr),b=Se(Jr,vt),F=Se(U,re),function(){for(var le=1,Re=2,Ye=1;Ye<=15;Ye++){for(var et=le;et<Re;et++)at[32767+et]=Ye,Ze[32767+et]=[],Ze[32767+et][1]=Ye,Ze[32767+et][0]=et;for(var bt=-(Re-1);bt<=-le;bt++)at[32767+bt]=Ye,Ze[32767+bt]=[],Ze[32767+bt][1]=Ye,Ze[32767+bt][0]=Re-1+bt;le<<=1,Re<<=1}}(),function(){for(var le=0;le<256;le++)hn[le]=19595*le,hn[le+256>>0]=38470*le,hn[le+512>>0]=7471*le+32768,hn[le+768>>0]=-11059*le,hn[le+1024>>0]=-21709*le,hn[le+1280>>0]=32768*le+8421375,hn[le+1536>>0]=-27439*le,hn[le+1792>>0]=-5329*le}(),St(c)}function Ys(c,o){if(this.pos=0,this.buffer=c,this.datav=new DataView(c.buffer),this.is_with_alpha=!!o,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function ol(c){function o(Vt){if(!Vt)throw Error("assert :P")}function l(Vt,Pr,Jr){for(var vt=0;4>vt;vt++)if(Vt[Pr+vt]!=Jr.charCodeAt(vt))return!0;return!1}function b(Vt,Pr,Jr,vt,Ct){for(var rr=0;rr<Ct;rr++)Vt[Pr+rr]=Jr[vt+rr]}function F(Vt,Pr,Jr,vt){for(var Ct=0;Ct<vt;Ct++)Vt[Pr+Ct]=Jr}function C(Vt){return new Int32Array(Vt)}function T(Vt,Pr){for(var Jr=[],vt=0;vt<Vt;vt++)Jr.push(new Pr);return Jr}function Z(Vt,Pr){var Jr=[];return function vt(Ct,rr,U){for(var re=U[rr],Se=0;Se<re&&(Ct.push(U.length>rr+1?[]:new Pr),!(U.length<rr+1));Se++)vt(Ct[Se],rr+1,U)}(Jr,0,Vt),Jr}var ae=function(){var Vt=this;function Pr(a,g){for(var O=1<<g-1>>>0;a&O;)O>>>=1;return O?(a&O-1)+O:a}function Jr(a,g,O,oe,Ie){o(!(oe%O));do a[g+(oe-=O)]=Ie;while(0<oe)}function vt(a,g,O,oe,Ie){if(o(2328>=Ie),512>=Ie)var Ve=C(512);else if((Ve=C(Ie))==null)return 0;return function(ze,Je,st,mt,Ot,jt){var cr,Wt,Nr=Je,Or=1<<st,Gt=C(16),tr=C(16);for(o(Ot!=0),o(mt!=null),o(ze!=null),o(0<st),Wt=0;Wt<Ot;++Wt){if(15<mt[Wt])return 0;++Gt[mt[Wt]]}if(Gt[0]==Ot)return 0;for(tr[1]=0,cr=1;15>cr;++cr){if(Gt[cr]>1<<cr)return 0;tr[cr+1]=tr[cr]+Gt[cr]}for(Wt=0;Wt<Ot;++Wt)cr=mt[Wt],0<mt[Wt]&&(jt[tr[cr]++]=Wt);if(tr[15]==1)return(mt=new Ct).g=0,mt.value=jt[0],Jr(ze,Nr,1,Or,mt),Or;var Rr,ln=-1,un=Or-1,li=0,Wn=1,zi=1,ti=1<<st;for(Wt=0,cr=1,Ot=2;cr<=st;++cr,Ot<<=1){if(Wn+=zi<<=1,0>(zi-=Gt[cr]))return 0;for(;0<Gt[cr];--Gt[cr])(mt=new Ct).g=cr,mt.value=jt[Wt++],Jr(ze,Nr+li,Ot,ti,mt),li=Pr(li,cr)}for(cr=st+1,Ot=2;15>=cr;++cr,Ot<<=1){if(Wn+=zi<<=1,0>(zi-=Gt[cr]))return 0;for(;0<Gt[cr];--Gt[cr]){if(mt=new Ct,(li&un)!=ln){for(Nr+=ti,Rr=1<<(ln=cr)-st;15>ln&&!(0>=(Rr-=Gt[ln]));)++ln,Rr<<=1;Or+=ti=1<<(Rr=ln-st),ze[Je+(ln=li&un)].g=Rr+st,ze[Je+ln].value=Nr-Je-ln}mt.g=cr-st,mt.value=jt[Wt++],Jr(ze,Nr+(li>>st),Ot,ti,mt),li=Pr(li,cr)}}return Wn!=2*tr[15]-1?0:Or}(a,g,O,oe,Ie,Ve)}function Ct(){this.value=this.g=0}function rr(){this.value=this.g=0}function U(){this.G=T(5,Ct),this.H=C(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=T(pl,rr)}function re(a,g,O,oe){o(a!=null),o(g!=null),o(2147483648>oe),a.Ca=254,a.I=0,a.b=-8,a.Ka=0,a.oa=g,a.pa=O,a.Jd=g,a.Yc=O+oe,a.Zc=4<=oe?O+oe-4+1:O,_t(a)}function Se(a,g){for(var O=0;0<g--;)O|=Rt(a,128)<<g;return O}function Ue(a,g){var O=Se(a,g);return Mt(a)?-O:O}function Ke(a,g,O,oe){var Ie,Ve=0;for(o(a!=null),o(g!=null),o(4294967288>oe),a.Sb=oe,a.Ra=0,a.u=0,a.h=0,4<oe&&(oe=4),Ie=0;Ie<oe;++Ie)Ve+=g[O+Ie]<<8*Ie;a.Ra=Ve,a.bb=oe,a.oa=g,a.pa=O}function Xe(a){for(;8<=a.u&&a.bb<a.Sb;)a.Ra>>>=8,a.Ra+=a.oa[a.pa+a.bb]<<rs-8>>>0,++a.bb,a.u-=8;Ye(a)&&(a.h=1,a.u=0)}function dt(a,g){if(o(0<=g),!a.h&&g<=YA){var O=Re(a)&Qc[g];return a.u+=g,Xe(a),O}return a.h=1,a.u=0}function St(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function le(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function Re(a){return a.Ra>>>(a.u&rs-1)>>>0}function Ye(a){return o(a.bb<=a.Sb),a.h||a.bb==a.Sb&&a.u>rs}function et(a,g){a.u=g,a.h=Ye(a)}function bt(a){a.u>=Kc&&(o(a.u>=Kc),Xe(a))}function _t(a){o(a!=null&&a.oa!=null),a.pa<a.Zc?(a.I=(a.oa[a.pa++]|a.I<<8)>>>0,a.b+=8):(o(a!=null&&a.oa!=null),a.pa<a.Yc?(a.b+=8,a.I=a.oa[a.pa++]|a.I<<8):a.Ka?a.b=0:(a.I<<=8,a.b+=8,a.Ka=1))}function Mt(a){return Se(a,1)}function Rt(a,g){var O=a.Ca;0>a.b&&_t(a);var oe=a.b,Ie=O*g>>>8,Ve=(a.I>>>oe>Ie)+0;for(Ve?(O-=Ie,a.I-=Ie+1<<oe>>>0):O=Ie+1,oe=O,Ie=0;256<=oe;)Ie+=8,oe>>=8;return oe=7^Ie+tl[oe],a.b-=oe,a.Ca=(O<<oe)-1,Ve}function lr(a,g,O){a[g+0]=O>>24&255,a[g+1]=O>>16&255,a[g+2]=O>>8&255,a[g+3]=O>>0&255}function Ar(a,g){return a[g+0]<<0|a[g+1]<<8}function gr(a,g){return Ar(a,g)|a[g+2]<<16}function _r(a,g){return Ar(a,g)|Ar(a,g+2)<<16}function dn(a,g){var O=1<<g;return o(a!=null),o(0<g),a.X=C(O),a.X==null?0:(a.Mb=32-g,a.Xa=g,1)}function or(a,g){o(a!=null),o(g!=null),o(a.Xa==g.Xa),b(g.X,0,a.X,0,1<<g.Xa)}function yt(){this.X=[],this.Xa=this.Mb=0}function Fn(a,g,O,oe){o(O!=null),o(oe!=null);var Ie=O[0],Ve=oe[0];return Ie==0&&(Ie=(a*Ve+g/2)/g),Ve==0&&(Ve=(g*Ie+a/2)/a),0>=Ie||0>=Ve?0:(O[0]=Ie,oe[0]=Ve,1)}function gn(a,g){return a+(1<<g)-1>>>g}function yr(a,g){return((4278255360&a)+(4278255360&g)>>>0&4278255360)+((16711935&a)+(16711935&g)>>>0&16711935)>>>0}function Tr(a,g){Vt[g]=function(O,oe,Ie,Ve,ze,Je,st){var mt;for(mt=0;mt<ze;++mt){var Ot=Vt[a](Je[st+mt-1],Ie,Ve+mt);Je[st+mt]=yr(O[oe+mt],Ot)}}}function Ur(){this.ud=this.hd=this.jd=0}function wr(a,g){return((4278124286&(a^g))>>>1)+(a&g)>>>0}function Zr(a){return 0<=a&&256>a?a:0>a?0:255<a?255:void 0}function Cn(a,g){return Zr(a+(a-g+.5>>1))}function Gn(a,g,O){return Math.abs(g-O)-Math.abs(a-O)}function Zn(a,g,O,oe,Ie,Ve,ze){for(oe=Ve[ze-1],O=0;O<Ie;++O)Ve[ze+O]=oe=yr(a[g+O],oe)}function On(a,g,O,oe,Ie){var Ve;for(Ve=0;Ve<O;++Ve){var ze=a[g+Ve],Je=ze>>8&255,st=16711935&(st=(st=16711935&ze)+((Je<<16)+Je));oe[Ie+Ve]=(4278255360&ze)+st>>>0}}function di(a,g){g.jd=a>>0&255,g.hd=a>>8&255,g.ud=a>>16&255}function zn(a,g,O,oe,Ie,Ve){var ze;for(ze=0;ze<oe;++ze){var Je=g[O+ze],st=Je>>>8,mt=Je,Ot=255&(Ot=(Ot=Je>>>16)+((a.jd<<24>>24)*(st<<24>>24)>>>5));mt=255&(mt=(mt=mt+((a.hd<<24>>24)*(st<<24>>24)>>>5))+((a.ud<<24>>24)*(Ot<<24>>24)>>>5)),Ie[Ve+ze]=(4278255360&Je)+(Ot<<16)+mt}}function Fi(a,g,O,oe,Ie){Vt[g]=function(Ve,ze,Je,st,mt,Ot,jt,cr,Wt){for(st=jt;st<cr;++st)for(jt=0;jt<Wt;++jt)mt[Ot++]=Ie(Je[oe(Ve[ze++])])},Vt[a]=function(Ve,ze,Je,st,mt,Ot,jt){var cr=8>>Ve.b,Wt=Ve.Ea,Nr=Ve.K[0],Or=Ve.w;if(8>cr)for(Ve=(1<<Ve.b)-1,Or=(1<<cr)-1;ze<Je;++ze){var Gt,tr=0;for(Gt=0;Gt<Wt;++Gt)Gt&Ve||(tr=oe(st[mt++])),Ot[jt++]=Ie(Nr[tr&Or]),tr>>=cr}else Vt["VP8LMapColor"+O](st,mt,Nr,Or,Ot,jt,ze,Je,Wt)}}function vn(a,g,O,oe,Ie){for(O=g+O;g<O;){var Ve=a[g++];oe[Ie++]=Ve>>16&255,oe[Ie++]=Ve>>8&255,oe[Ie++]=Ve>>0&255}}function _a(a,g,O,oe,Ie){for(O=g+O;g<O;){var Ve=a[g++];oe[Ie++]=Ve>>16&255,oe[Ie++]=Ve>>8&255,oe[Ie++]=Ve>>0&255,oe[Ie++]=Ve>>24&255}}function Hi(a,g,O,oe,Ie){for(O=g+O;g<O;){var Ve=(ze=a[g++])>>16&240|ze>>12&15,ze=ze>>0&240|ze>>28&15;oe[Ie++]=Ve,oe[Ie++]=ze}}function Ri(a,g,O,oe,Ie){for(O=g+O;g<O;){var Ve=(ze=a[g++])>>16&248|ze>>13&7,ze=ze>>5&224|ze>>3&31;oe[Ie++]=Ve,oe[Ie++]=ze}}function ia(a,g,O,oe,Ie){for(O=g+O;g<O;){var Ve=a[g++];oe[Ie++]=Ve>>0&255,oe[Ie++]=Ve>>8&255,oe[Ie++]=Ve>>16&255}}function Ki(a,g,O,oe,Ie,Ve){if(Ve==0)for(O=g+O;g<O;)lr(oe,((Ve=a[g++])[0]>>24|Ve[1]>>8&65280|Ve[2]<<8&16711680|Ve[3]<<24)>>>0),Ie+=32;else b(oe,Ie,a,g,O)}function Qa(a,g){Vt[g][0]=Vt[a+"0"],Vt[g][1]=Vt[a+"1"],Vt[g][2]=Vt[a+"2"],Vt[g][3]=Vt[a+"3"],Vt[g][4]=Vt[a+"4"],Vt[g][5]=Vt[a+"5"],Vt[g][6]=Vt[a+"6"],Vt[g][7]=Vt[a+"7"],Vt[g][8]=Vt[a+"8"],Vt[g][9]=Vt[a+"9"],Vt[g][10]=Vt[a+"10"],Vt[g][11]=Vt[a+"11"],Vt[g][12]=Vt[a+"12"],Vt[g][13]=Vt[a+"13"],Vt[g][14]=Vt[a+"0"],Vt[g][15]=Vt[a+"0"]}function Wi(a){return a==Zu||a==Al||a==gu||a==id}function As(){this.eb=[],this.size=this.A=this.fb=0}function En(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function fi(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new As,this.f.kb=new En,this.sd=null}function gi(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function $n(){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 ai(a){return alert("todo:WebPSamplerProcessPlane"),a.T}function kn(a,g){var O=a.T,oe=g.ba.f.RGBA,Ie=oe.eb,Ve=oe.fb+a.ka*oe.A,ze=dc[g.ba.S],Je=a.y,st=a.O,mt=a.f,Ot=a.N,jt=a.ea,cr=a.W,Wt=g.cc,Nr=g.dc,Or=g.Mc,Gt=g.Nc,tr=a.ka,Rr=a.ka+a.T,ln=a.U,un=ln+1>>1;for(tr==0?ze(Je,st,null,null,mt,Ot,jt,cr,mt,Ot,jt,cr,Ie,Ve,null,null,ln):(ze(g.ec,g.fc,Je,st,Wt,Nr,Or,Gt,mt,Ot,jt,cr,Ie,Ve-oe.A,Ie,Ve,ln),++O);tr+2<Rr;tr+=2)Wt=mt,Nr=Ot,Or=jt,Gt=cr,Ot+=a.Rc,cr+=a.Rc,Ve+=2*oe.A,ze(Je,(st+=2*a.fa)-a.fa,Je,st,Wt,Nr,Or,Gt,mt,Ot,jt,cr,Ie,Ve-oe.A,Ie,Ve,ln);return st+=a.fa,a.j+Rr<a.o?(b(g.ec,g.fc,Je,st,ln),b(g.cc,g.dc,mt,Ot,un),b(g.Mc,g.Nc,jt,cr,un),O--):1&Rr||ze(Je,st,null,null,mt,Ot,jt,cr,mt,Ot,jt,cr,Ie,Ve+oe.A,null,null,ln),O}function Qi(a,g,O){var oe=a.F,Ie=[a.J];if(oe!=null){var Ve=a.U,ze=g.ba.S,Je=ze==DA||ze==gu;g=g.ba.f.RGBA;var st=[0],mt=a.ka;st[0]=a.T,a.Kb&&(mt==0?--st[0]:(--mt,Ie[0]-=a.width),a.j+a.ka+a.T==a.o&&(st[0]=a.o-a.j-mt));var Ot=g.eb;mt=g.fb+mt*g.A,a=Ho(oe,Ie[0],a.width,Ve,st,Ot,mt+(Je?0:3),g.A),o(O==st),a&&Wi(ze)&&Ec(Ot,mt,Je,Ve,st,g.A)}return 0}function Gi(a){var g=a.ma,O=g.ba.S,oe=11>O,Ie=O==$u||O==nd||O==DA||O==mu||O==12||Wi(O);if(g.memory=null,g.Ib=null,g.Jb=null,g.Nd=null,!kA(g.Oa,a,Ie?11:12))return 0;if(Ie&&Wi(O)&&_n(),a.da)alert("todo:use_scaling");else{if(oe){if(g.Ib=ai,a.Kb){if(O=a.U+1>>1,g.memory=C(a.U+2*O),g.memory==null)return 0;g.ec=g.memory,g.fc=0,g.cc=g.ec,g.dc=g.fc+a.U,g.Mc=g.cc,g.Nc=g.dc+O,g.Ib=kn,_n()}}else alert("todo:EmitYUV");Ie&&(g.Jb=Qi,oe&&br())}if(oe&&!Wd){for(a=0;256>a;++a)p[a]=89858*(a-128)+xu>>Gu,v[a]=-22014*(a-128)+xu,y[a]=-45773*(a-128),u[a]=113618*(a-128)+xu>>Gu;for(a=Cu;a<Bd;++a)g=76283*(a-16)+xu>>Gu,ie[a-Cu]=sc(g,255),Fe[a-Cu]=sc(g+8>>4,15);Wd=1}return 1}function qi(a){var g=a.ma,O=a.U,oe=a.T;return o(!(1&a.ka)),0>=O||0>=oe?0:(O=g.Ib(a,g),g.Jb!=null&&g.Jb(a,g,O),g.Dc+=O,1)}function Mo(a){a.ma.memory=null}function Ii(a,g,O,oe){return dt(a,8)!=47?0:(g[0]=dt(a,14)+1,O[0]=dt(a,14)+1,oe[0]=dt(a,1),dt(a,3)!=0?0:!a.h)}function ns(a,g){if(4>a)return a+1;var O=a-2>>1;return(2+(1&a)<<O)+dt(g,O)+1}function ro(a,g){return 120<g?g-120:1<=(O=((O=wd[g-1])>>4)*a+(8-(15&O)))?O:1;var O}function Qo(a,g,O){var oe=Re(O),Ie=a[g+=255&oe].g-8;return 0<Ie&&(et(O,O.u+8),oe=Re(O),g+=a[g].value,g+=oe&(1<<Ie)-1),et(O,O.u+a[g].g),a[g].value}function wn(a,g,O){return O.g+=a.g,O.value+=a.value<<g>>>0,o(8>=O.g),a.g}function no(a,g,O){var oe=a.xc;return o((g=oe==0?0:a.vc[a.md*(O>>oe)+(g>>oe)])<a.Wb),a.Ya[g]}function Cs(a,g,O,oe){var Ie=a.ab,Ve=a.c*g,ze=a.C;g=ze+g;var Je=O,st=oe;for(oe=a.Ta,O=a.Ua;0<Ie--;){var mt=a.gc[Ie],Ot=ze,jt=g,cr=Je,Wt=st,Nr=(st=oe,Je=O,mt.Ea);switch(o(Ot<jt),o(jt<=mt.nc),mt.hc){case 2:Jl(cr,Wt,(jt-Ot)*Nr,st,Je);break;case 0:var Or=Ot,Gt=jt,tr=st,Rr=Je,ln=(ti=mt).Ea;Or==0&&(eA(cr,Wt,null,null,1,tr,Rr),Zn(cr,Wt+1,0,0,ln-1,tr,Rr+1),Wt+=ln,Rr+=ln,++Or);for(var un=1<<ti.b,li=un-1,Wn=gn(ln,ti.b),zi=ti.K,ti=ti.w+(Or>>ti.b)*Wn;Or<Gt;){var Ka=zi,qa=ti,Sa=1;for(rl(cr,Wt,tr,Rr-ln,1,tr,Rr);Sa<ln;){var Ia=(Sa&~li)+un;Ia>ln&&(Ia=ln),(0,cc[Ka[qa++]>>8&15])(cr,Wt+ +Sa,tr,Rr+Sa-ln,Ia-Sa,tr,Rr+Sa),Sa=Ia}Wt+=ln,Rr+=ln,++Or&li||(ti+=Wn)}jt!=mt.nc&&b(st,Je-Nr,st,Je+(jt-Ot-1)*Nr,Nr);break;case 1:for(Nr=cr,Gt=Wt,ln=(cr=mt.Ea)-(Rr=cr&~(tr=(Wt=1<<mt.b)-1)),Or=gn(cr,mt.b),un=mt.K,mt=mt.w+(Ot>>mt.b)*Or;Ot<jt;){for(li=un,Wn=mt,zi=new Ur,ti=Gt+Rr,Ka=Gt+cr;Gt<ti;)di(li[Wn++],zi),Yl(zi,Nr,Gt,Wt,st,Je),Gt+=Wt,Je+=Wt;Gt<Ka&&(di(li[Wn++],zi),Yl(zi,Nr,Gt,ln,st,Je),Gt+=ln,Je+=ln),++Ot&tr||(mt+=Or)}break;case 3:if(cr==st&&Wt==Je&&0<mt.b){for(Gt=st,cr=Nr=Je+(jt-Ot)*Nr-(Rr=(jt-Ot)*gn(mt.Ea,mt.b)),Wt=st,tr=Je,Or=[],Rr=(ln=Rr)-1;0<=Rr;--Rr)Or[Rr]=Wt[tr+Rr];for(Rr=ln-1;0<=Rr;--Rr)Gt[cr+Rr]=Or[Rr];ss(mt,Ot,jt,st,Nr,st,Je)}else ss(mt,Ot,jt,cr,Wt,st,Je)}Je=oe,st=O}st!=O&&b(oe,O,Je,st,Ve)}function ga(a,g){var O=a.V,oe=a.Ba+a.c*a.C,Ie=g-a.C;if(o(g<=a.l.o),o(16>=Ie),0<Ie){var Ve=a.l,ze=a.Ta,Je=a.Ua,st=Ve.width;if(Cs(a,Ie,O,oe),Ie=Je=[Je],o((O=a.C)<(oe=g)),o(Ve.v<Ve.va),oe>Ve.o&&(oe=Ve.o),O<Ve.j){var mt=Ve.j-O;O=Ve.j,Ie[0]+=mt*st}if(O>=oe?O=0:(Ie[0]+=4*Ve.v,Ve.ka=O-Ve.j,Ve.U=Ve.va-Ve.v,Ve.T=oe-O,O=1),O){if(Je=Je[0],11>(O=a.ca).S){var Ot=O.f.RGBA,jt=(oe=O.S,Ie=Ve.U,Ve=Ve.T,mt=Ot.eb,Ot.A),cr=Ve;for(Ot=Ot.fb+a.Ma*Ot.A;0<cr--;){var Wt=ze,Nr=Je,Or=Ie,Gt=mt,tr=Ot;switch(oe){case ko:cl(Wt,Nr,Or,Gt,tr);break;case $u:nl(Wt,Nr,Or,Gt,tr);break;case Zu:nl(Wt,Nr,Or,Gt,tr),Ec(Gt,tr,0,Or,1,0);break;case pu:rA(Wt,Nr,Or,Gt,tr);break;case nd:Ki(Wt,Nr,Or,Gt,tr,1);break;case Al:Ki(Wt,Nr,Or,Gt,tr,1),Ec(Gt,tr,0,Or,1,0);break;case DA:Ki(Wt,Nr,Or,Gt,tr,0);break;case gu:Ki(Wt,Nr,Or,Gt,tr,0),Ec(Gt,tr,1,Or,1,0);break;case mu:xc(Wt,Nr,Or,Gt,tr);break;case id:xc(Wt,Nr,Or,Gt,tr),Jo(Gt,tr,Or,1,0);break;case ru:tA(Wt,Nr,Or,Gt,tr);break;default:o(0)}Je+=st,Ot+=jt}a.Ma+=Ve}else alert("todo:EmitRescaledRowsYUVA");o(a.Ma<=O.height)}}a.C=g,o(a.C<=a.i)}function qr(a){var g;if(0<a.ua)return 0;for(g=0;g<a.Wb;++g){var O=a.Ya[g].G,oe=a.Ya[g].H;if(0<O[1][oe[1]+0].g||0<O[2][oe[2]+0].g||0<O[3][oe[3]+0].g)return 0}return 1}function fa(a,g,O,oe,Ie,Ve){if(a.Z!=0){var ze=a.qd,Je=a.rd;for(o(PA[a.Z]!=null);g<O;++g)PA[a.Z](ze,Je,oe,Ie,oe,Ie,Ve),ze=oe,Je=Ie,Ie+=Ve;a.qd=ze,a.rd=Je}}function so(a,g){var O=a.l.ma,oe=O.Z==0||O.Z==1?a.l.j:a.C;if(oe=a.C<oe?oe:a.C,o(g<=a.l.o),g>oe){var Ie=a.l.width,Ve=O.ca,ze=O.tb+Ie*oe,Je=a.V,st=a.Ba+a.c*oe,mt=a.gc;o(a.ab==1),o(mt[0].hc==3),lc(mt[0],oe,g,Je,st,Ve,ze),fa(O,oe,g,Ve,ze,Ie)}a.C=a.Ma=g}function Va(a,g,O,oe,Ie,Ve,ze){var Je=a.$/oe,st=a.$%oe,mt=a.m,Ot=a.s,jt=O+a.$,cr=jt;Ie=O+oe*Ie;var Wt=O+oe*Ve,Nr=280+Ot.ua,Or=a.Pb?Je:16777216,Gt=0<Ot.ua?Ot.Wa:null,tr=Ot.wc,Rr=jt<Wt?no(Ot,st,Je):null;o(a.C<Ve),o(Wt<=Ie);var ln=!1;e:for(;;){for(;ln||jt<Wt;){var un=0;if(Je>=Or){var li=jt-O;o((Or=a).Pb),Or.wd=Or.m,Or.xd=li,0<Or.s.ua&&or(Or.s.Wa,Or.s.vb),Or=Je+ad}if(st&tr||(Rr=no(Ot,st,Je)),o(Rr!=null),Rr.Qb&&(g[jt]=Rr.qb,ln=!0),!ln)if(bt(mt),Rr.jc){un=mt,li=g;var Wn=jt,zi=Rr.pd[Re(un)&pl-1];o(Rr.jc),256>zi.g?(et(un,un.u+zi.g),li[Wn]=zi.value,un=0):(et(un,un.u+zi.g-256),o(256<=zi.value),un=zi.value),un==0&&(ln=!0)}else un=Qo(Rr.G[0],Rr.H[0],mt);if(mt.h)break;if(ln||256>un){if(!ln)if(Rr.nd)g[jt]=(Rr.qb|un<<8)>>>0;else{if(bt(mt),ln=Qo(Rr.G[1],Rr.H[1],mt),bt(mt),li=Qo(Rr.G[2],Rr.H[2],mt),Wn=Qo(Rr.G[3],Rr.H[3],mt),mt.h)break;g[jt]=(Wn<<24|ln<<16|un<<8|li)>>>0}if(ln=!1,++jt,++st>=oe&&(st=0,++Je,ze!=null&&Je<=Ve&&!(Je%16)&&ze(a,Je),Gt!=null))for(;cr<jt;)un=g[cr++],Gt.X[(506832829*un&4294967295)>>>Gt.Mb]=un}else if(280>un){if(un=ns(un-256,mt),li=Qo(Rr.G[4],Rr.H[4],mt),bt(mt),li=ro(oe,li=ns(li,mt)),mt.h)break;if(jt-O<li||Ie-jt<un)break e;for(Wn=0;Wn<un;++Wn)g[jt+Wn]=g[jt+Wn-li];for(jt+=un,st+=un;st>=oe;)st-=oe,++Je,ze!=null&&Je<=Ve&&!(Je%16)&&ze(a,Je);if(o(jt<=Ie),st&tr&&(Rr=no(Ot,st,Je)),Gt!=null)for(;cr<jt;)un=g[cr++],Gt.X[(506832829*un&4294967295)>>>Gt.Mb]=un}else{if(!(un<Nr))break e;for(ln=un-280,o(Gt!=null);cr<jt;)un=g[cr++],Gt.X[(506832829*un&4294967295)>>>Gt.Mb]=un;un=jt,o(!(ln>>>(li=Gt).Xa)),g[un]=li.X[ln],ln=!0}ln||o(mt.h==Ye(mt))}if(a.Pb&&mt.h&&jt<Ie)o(a.m.h),a.a=5,a.m=a.wd,a.$=a.xd,0<a.s.ua&&or(a.s.vb,a.s.Wa);else{if(mt.h)break e;ze!=null&&ze(a,Je>Ve?Ve:Je),a.a=0,a.$=jt-O}return 1}return a.a=3,0}function Si(a){o(a!=null),a.vc=null,a.yc=null,a.Ya=null;var g=a.Wa;g!=null&&(g.X=null),a.vb=null,o(a!=null)}function bo(){var a=new Tc;return a==null?null:(a.a=0,a.xb=bu,Qa("Predictor","VP8LPredictors"),Qa("Predictor","VP8LPredictors_C"),Qa("PredictorAdd","VP8LPredictorsAdd"),Qa("PredictorAdd","VP8LPredictorsAdd_C"),Jl=On,Yl=zn,cl=vn,nl=_a,xc=Hi,tA=Ri,rA=ia,Vt.VP8LMapColor32b=Tl,Vt.VP8LMapColor8b=wc,a)}function Ko(a,g,O,oe,Ie){var Ve=1,ze=[a],Je=[g],st=oe.m,mt=oe.s,Ot=null,jt=0;e:for(;;){if(O)for(;Ve&&dt(st,1);){var cr=ze,Wt=Je,Nr=oe,Or=1,Gt=Nr.m,tr=Nr.gc[Nr.ab],Rr=dt(Gt,2);if(Nr.Oc&1<<Rr)Ve=0;else{switch(Nr.Oc|=1<<Rr,tr.hc=Rr,tr.Ea=cr[0],tr.nc=Wt[0],tr.K=[null],++Nr.ab,o(4>=Nr.ab),Rr){case 0:case 1:tr.b=dt(Gt,3)+2,Or=Ko(gn(tr.Ea,tr.b),gn(tr.nc,tr.b),0,Nr,tr.K),tr.K=tr.K[0];break;case 3:var ln,un=dt(Gt,8)+1,li=16<un?0:4<un?1:2<un?2:3;if(cr[0]=gn(tr.Ea,li),tr.b=li,ln=Or=Ko(un,1,0,Nr,tr.K)){var Wn,zi=un,ti=tr,Ka=1<<(8>>ti.b),qa=C(Ka);if(qa==null)ln=0;else{var Sa=ti.K[0],Ia=ti.w;for(qa[0]=ti.K[0][0],Wn=1;Wn<1*zi;++Wn)qa[Wn]=yr(Sa[Ia+Wn],qa[Wn-1]);for(;Wn<4*Ka;++Wn)qa[Wn]=0;ti.K[0]=null,ti.K[0]=qa,ln=1}}Or=ln;break;case 2:break;default:o(0)}Ve=Or}}if(ze=ze[0],Je=Je[0],Ve&&dt(st,1)&&!(Ve=1<=(jt=dt(st,4))&&11>=jt)){oe.a=3;break e}var xo;if(xo=Ve)t:{var Wa,ca,Co,Fc=oe,ws=ze,fc=Je,Yo=jt,Hc=O,Ic=Fc.m,Sl=Fc.s,Rl=[null],Ql=1,iA=0,OA=Vu[Yo];r:for(;;){if(Hc&&dt(Ic,1)){var El=dt(Ic,3)+2,jc=gn(ws,El),Bu=gn(fc,El),iu=jc*Bu;if(!Ko(jc,Bu,0,Fc,Rl))break r;for(Rl=Rl[0],Sl.xc=El,Wa=0;Wa<iu;++Wa){var aA=Rl[Wa]>>8&65535;Rl[Wa]=aA,aA>=Ql&&(Ql=aA+1)}}if(Ic.h)break r;for(ca=0;5>ca;++ca){var Ks=bd[ca];!ca&&0<Yo&&(Ks+=1<<Yo),iA<Ks&&(iA=Ks)}var Su=T(Ql*OA,Ct),Sd=Ql,Gd=T(Sd,U);if(Gd==null)var Xd=null;else o(65536>=Sd),Xd=Gd;var Ed=C(iA);if(Xd==null||Ed==null||Su==null){Fc.a=1;break r}var ld=Su;for(Wa=Co=0;Wa<Ql;++Wa){var Mc=Xd[Wa],gA=Mc.G,cd=Mc.H,Hf=0,Jd=1,_d=0;for(ca=0;5>ca;++ca){Ks=bd[ca],gA[ca]=ld,cd[ca]=Co,!ca&&0<Yo&&(Ks+=1<<Yo);i:{var Fd,Yd=Ks,Ad=Fc,ud=Ed,m0=ld,zc=Co,xf=0,vA=Ad.m,g0=dt(vA,1);if(F(ud,0,0,Yd),g0){var xs=dt(vA,1)+1,v0=dt(vA,1),Cf=dt(vA,v0==0?1:8);ud[Cf]=1,xs==2&&(ud[Cf=dt(vA,8)]=1);var TA=1}else{var Id=C(19),jf=dt(vA,4)+4;if(19<jf){Ad.a=3;var Md=0;break i}for(Fd=0;Fd<jf;++Fd)Id[Zd[Fd]]=dt(vA,3);var oA=void 0,_l=void 0,qd=Ad,dd=Id,ef=Yd,zf=ud,Bf=0,Eu=qd.m,Ld=8,tf=T(128,Ct);n:for(;vt(tf,0,7,dd,19);){if(dt(Eu,1)){var y0=2+2*dt(Eu,3);if((oA=2+dt(Eu,y0))>ef)break n}else oA=ef;for(_l=0;_l<ef&&oA--;){bt(Eu);var Sf=tf[0+(127&Re(Eu))];et(Eu,Eu.u+Sf.g);var au=Sf.value;if(16>au)zf[_l++]=au,au!=0&&(Ld=au);else{var kd=au==16,Ef=au-16,Dd=jo[Ef],$f=dt(Eu,yn[Ef])+Dd;if(_l+$f>ef)break n;for(var Zf=kd?Ld:0;0<$f--;)zf[_l++]=Zf}}Bf=1;break n}Bf||(qd.a=3),TA=Bf}(TA=TA&&!vA.h)&&(xf=vt(m0,zc,8,ud,Yd)),TA&&xf!=0?Md=xf:(Ad.a=3,Md=0)}if(Md==0)break r;if(Jd&&gf[ca]==1&&(Jd=ld[Co].g==0),Hf+=ld[Co].g,Co+=Md,3>=ca){var Pd,_f=Ed[0];for(Pd=1;Pd<Ks;++Pd)Ed[Pd]>_f&&(_f=Ed[Pd]);_d+=_f}}if(Mc.nd=Jd,Mc.Qb=0,Jd&&(Mc.qb=(gA[3][cd[3]+0].value<<24|gA[1][cd[1]+0].value<<16|gA[2][cd[2]+0].value)>>>0,Hf==0&&256>gA[0][cd[0]+0].value&&(Mc.Qb=1,Mc.qb+=gA[0][cd[0]+0].value<<8)),Mc.jc=!Mc.Qb&&6>_d,Mc.jc){var rf,$c=Mc;for(rf=0;rf<pl;++rf){var sA=rf,_u=$c.pd[sA],Nd=$c.G[0][$c.H[0]+sA];256<=Nd.value?(_u.g=Nd.g+256,_u.value=Nd.value):(_u.g=0,_u.value=0,sA>>=wn(Nd,8,_u),sA>>=wn($c.G[1][$c.H[1]+sA],16,_u),sA>>=wn($c.G[2][$c.H[2]+sA],0,_u),wn($c.G[3][$c.H[3]+sA],24,_u))}}}Sl.vc=Rl,Sl.Wb=Ql,Sl.Ya=Xd,Sl.yc=Su,xo=1;break t}xo=0}if(!(Ve=xo)){oe.a=3;break e}if(0<jt){if(mt.ua=1<<jt,!dn(mt.Wa,jt)){oe.a=1,Ve=0;break e}}else mt.ua=0;var Ff=oe,Vf=ze,b0=Je,If=Ff.s,Mf=If.xc;if(Ff.c=Vf,Ff.i=b0,If.md=gn(Vf,Mf),If.wc=Mf==0?-1:(1<<Mf)-1,O){oe.xb=vf;break e}if((Ot=C(ze*Je))==null){oe.a=1,Ve=0;break e}Ve=(Ve=Va(oe,Ot,0,ze,Je,Je,null))&&!st.h;break e}return Ve?(Ie!=null?Ie[0]=Ot:(o(Ot==null),o(O)),oe.$=0,O||Si(mt)):Si(mt),Ve}function Bs(a,g){var O=a.c*a.i,oe=O+g+16*g;return o(a.c<=g),a.V=C(oe),a.V==null?(a.Ta=null,a.Ua=0,a.a=1,0):(a.Ta=a.V,a.Ua=a.Ba+O+g,1)}function gs(a,g){var O=a.C,oe=g-O,Ie=a.V,Ve=a.Ba+a.c*O;for(o(g<=a.l.o);0<oe;){var ze=16<oe?16:oe,Je=a.l.ma,st=a.l.width,mt=st*ze,Ot=Je.ca,jt=Je.tb+st*O,cr=a.Ta,Wt=a.Ua;Cs(a,ze,Ie,Ve),Us(cr,Wt,Ot,jt,mt),fa(Je,O,O+ze,Ot,jt,st),oe-=ze,Ie+=ze*a.c,O+=ze}o(O==g),a.C=a.Ma=g}function is(){this.ub=this.yd=this.td=this.Rb=0}function us(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function bl(){this.Fb=this.Bb=this.Cb=0,this.Zb=C(4),this.Lb=C(4)}function as(){this.Yb=function(){var a=[];return function g(O,oe,Ie){for(var Ve=Ie[oe],ze=0;ze<Ve&&(O.push(Ie.length>oe+1?[]:0),!(Ie.length<oe+1));ze++)g(O[ze],oe+1,Ie)}(a,0,[3,11]),a}()}function $s(){this.jb=C(3),this.Wc=Z([4,8],as),this.Xc=Z([4,17],as)}function ds(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new C(4),this.od=new C(4)}function Lo(){this.ld=this.La=this.dd=this.tc=0}function wo(){this.Na=this.la=0}function qs(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Nl(){this.ad=C(384),this.Za=0,this.Ob=C(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function zl(){this.uc=this.M=this.Nb=0,this.wa=Array(new Lo),this.Y=0,this.ya=Array(new Nl),this.aa=0,this.l=new Xc}function wl(){this.y=C(16),this.f=C(8),this.ea=C(8)}function BA(){this.cb=this.a=0,this.sc="",this.m=new St,this.Od=new is,this.Kc=new us,this.ed=new ds,this.Qa=new bl,this.Ic=this.$c=this.Aa=0,this.D=new zl,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=T(8,St),this.ia=0,this.pb=T(4,qs),this.Pa=new $s,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new wl),this.Hd=0,this.rb=Array(new wo),this.sb=0,this.wa=Array(new Lo),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Nl),this.L=this.aa=0,this.gd=Z([4,2],Lo),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Xc(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function xa(){var a=new BA;return a!=null&&(a.a=0,a.sc="OK",a.cb=0,a.Xb=0,ml||(ml=fs)),a}function ea(a,g,O){return a.a==0&&(a.a=g,a.sc=O,a.cb=0),0}function vs(a,g,O){return 3<=O&&a[g+0]==157&&a[g+1]==1&&a[g+2]==42}function go(a,g){if(a==null)return 0;if(a.a=0,a.sc="OK",g==null)return ea(a,2,"null VP8Io passed to VP8GetHeaders()");var O=g.data,oe=g.w,Ie=g.ha;if(4>Ie)return ea(a,7,"Truncated header.");var Ve=O[oe+0]|O[oe+1]<<8|O[oe+2]<<16,ze=a.Od;if(ze.Rb=!(1&Ve),ze.td=Ve>>1&7,ze.yd=Ve>>4&1,ze.ub=Ve>>5,3<ze.td)return ea(a,3,"Incorrect keyframe parameters.");if(!ze.yd)return ea(a,4,"Frame not displayable.");oe+=3,Ie-=3;var Je=a.Kc;if(ze.Rb){if(7>Ie)return ea(a,7,"cannot parse picture header");if(!vs(O,oe,Ie))return ea(a,3,"Bad code word");Je.c=16383&(O[oe+4]<<8|O[oe+3]),Je.Td=O[oe+4]>>6,Je.i=16383&(O[oe+6]<<8|O[oe+5]),Je.Ud=O[oe+6]>>6,oe+=7,Ie-=7,a.za=Je.c+15>>4,a.Ub=Je.i+15>>4,g.width=Je.c,g.height=Je.i,g.Da=0,g.j=0,g.v=0,g.va=g.width,g.o=g.height,g.da=0,g.ib=g.width,g.hb=g.height,g.U=g.width,g.T=g.height,F((Ve=a.Pa).jb,0,255,Ve.jb.length),o((Ve=a.Qa)!=null),Ve.Cb=0,Ve.Bb=0,Ve.Fb=1,F(Ve.Zb,0,0,Ve.Zb.length),F(Ve.Lb,0,0,Ve.Lb)}if(ze.ub>Ie)return ea(a,7,"bad partition length");re(Ve=a.m,O,oe,ze.ub),oe+=ze.ub,Ie-=ze.ub,ze.Rb&&(Je.Ld=Mt(Ve),Je.Kd=Mt(Ve)),Je=a.Qa;var st,mt=a.Pa;if(o(Ve!=null),o(Je!=null),Je.Cb=Mt(Ve),Je.Cb){if(Je.Bb=Mt(Ve),Mt(Ve)){for(Je.Fb=Mt(Ve),st=0;4>st;++st)Je.Zb[st]=Mt(Ve)?Ue(Ve,7):0;for(st=0;4>st;++st)Je.Lb[st]=Mt(Ve)?Ue(Ve,6):0}if(Je.Bb)for(st=0;3>st;++st)mt.jb[st]=Mt(Ve)?Se(Ve,8):255}else Je.Bb=0;if(Ve.Ka)return ea(a,3,"cannot parse segment header");if((Je=a.ed).zd=Mt(Ve),Je.Tb=Se(Ve,6),Je.wb=Se(Ve,3),Je.Pc=Mt(Ve),Je.Pc&&Mt(Ve)){for(mt=0;4>mt;++mt)Mt(Ve)&&(Je.vd[mt]=Ue(Ve,6));for(mt=0;4>mt;++mt)Mt(Ve)&&(Je.od[mt]=Ue(Ve,6))}if(a.L=Je.Tb==0?0:Je.zd?1:2,Ve.Ka)return ea(a,3,"cannot parse filter header");var Ot=Ie;if(Ie=st=oe,oe=st+Ot,Je=Ot,a.Xb=(1<<Se(a.m,2))-1,Ot<3*(mt=a.Xb))O=7;else{for(st+=3*mt,Je-=3*mt,Ot=0;Ot<mt;++Ot){var jt=O[Ie+0]|O[Ie+1]<<8|O[Ie+2]<<16;jt>Je&&(jt=Je),re(a.Jc[+Ot],O,st,jt),st+=jt,Je-=jt,Ie+=3}re(a.Jc[+mt],O,st,Je),O=st<oe?0:5}if(O!=0)return ea(a,O,"cannot parse partitions");for(O=Se(st=a.m,7),Ie=Mt(st)?Ue(st,4):0,oe=Mt(st)?Ue(st,4):0,Je=Mt(st)?Ue(st,4):0,mt=Mt(st)?Ue(st,4):0,st=Mt(st)?Ue(st,4):0,Ot=a.Qa,jt=0;4>jt;++jt){if(Ot.Cb){var cr=Ot.Zb[jt];Ot.Fb||(cr+=O)}else{if(0<jt){a.pb[jt]=a.pb[0];continue}cr=O}var Wt=a.pb[jt];Wt.Sc[0]=xd[sc(cr+Ie,127)],Wt.Sc[1]=vu[sc(cr+0,127)],Wt.Eb[0]=2*xd[sc(cr+oe,127)],Wt.Eb[1]=101581*vu[sc(cr+Je,127)]>>16,8>Wt.Eb[1]&&(Wt.Eb[1]=8),Wt.Qc[0]=xd[sc(cr+mt,117)],Wt.Qc[1]=vu[sc(cr+st,127)],Wt.lc=cr+st}if(!ze.Rb)return ea(a,4,"Not a key frame.");for(Mt(Ve),ze=a.Pa,O=0;4>O;++O){for(Ie=0;8>Ie;++Ie)for(oe=0;3>oe;++oe)for(Je=0;11>Je;++Je)mt=Rt(Ve,gl[O][Ie][oe][Je])?Se(Ve,8):Cd[O][Ie][oe][Je],ze.Wc[O][Ie].Yb[oe][Je]=mt;for(Ie=0;17>Ie;++Ie)ze.Xc[O][Ie]=ze.Wc[O][od[Ie]]}return a.kc=Mt(Ve),a.kc&&(a.Bd=Se(Ve,8)),a.cb=1}function fs(a,g,O,oe,Ie,Ve,ze){var Je=g[Ie].Yb[O];for(O=0;16>Ie;++Ie){if(!Rt(a,Je[O+0]))return Ie;for(;!Rt(a,Je[O+1]);)if(Je=g[++Ie].Yb[0],O=0,Ie==16)return 16;var st=g[Ie+1].Yb;if(Rt(a,Je[O+2])){var mt=a,Ot=0;if(Rt(mt,(cr=Je)[(jt=O)+3]))if(Rt(mt,cr[jt+6])){for(Je=0,jt=2*(Ot=Rt(mt,cr[jt+8]))+(cr=Rt(mt,cr[jt+9+Ot])),Ot=0,cr=nu[jt];cr[Je];++Je)Ot+=Ot+Rt(mt,cr[Je]);Ot+=3+(8<<jt)}else Rt(mt,cr[jt+7])?(Ot=7+2*Rt(mt,165),Ot+=Rt(mt,145)):Ot=5+Rt(mt,159);else Ot=Rt(mt,cr[jt+4])?3+Rt(mt,cr[jt+5]):2;Je=st[2]}else Ot=1,Je=st[1];st=ze+Ls[Ie],0>(mt=a).b&&_t(mt);var jt,cr=mt.b,Wt=(jt=mt.Ca>>1)-(mt.I>>cr)>>31;--mt.b,mt.Ca+=Wt,mt.Ca|=1,mt.I-=(jt+1&Wt)<<cr,Ve[st]=((Ot^Wt)-Wt)*oe[(0<Ie)+0]}return 16}function Ss(a){var g=a.rb[a.sb-1];g.la=0,g.Na=0,F(a.zc,0,0,a.zc.length),a.ja=0}function Es(a,g){if(a==null)return 0;if(g==null)return ea(a,2,"NULL VP8Io parameter in VP8Decode().");if(!a.cb&&!go(a,g))return 0;if(o(a.cb),g.ac==null||g.ac(g)){g.ob&&(a.L=0);var O=xt[a.L];if(a.L==2?(a.yb=0,a.zb=0):(a.yb=g.v-O>>4,a.zb=g.j-O>>4,0>a.yb&&(a.yb=0),0>a.zb&&(a.zb=0)),a.Va=g.o+15+O>>4,a.Hb=g.va+15+O>>4,a.Hb>a.za&&(a.Hb=a.za),a.Va>a.Ub&&(a.Va=a.Ub),0<a.L){var oe=a.ed;for(O=0;4>O;++O){var Ie;if(a.Qa.Cb){var Ve=a.Qa.Lb[O];a.Qa.Fb||(Ve+=oe.Tb)}else Ve=oe.Tb;for(Ie=0;1>=Ie;++Ie){var ze=a.gd[O][Ie],Je=Ve;if(oe.Pc&&(Je+=oe.vd[0],Ie&&(Je+=oe.od[0])),0<(Je=0>Je?0:63<Je?63:Je)){var st=Je;0<oe.wb&&(st=4<oe.wb?st>>2:st>>1)>9-oe.wb&&(st=9-oe.wb),1>st&&(st=1),ze.dd=st,ze.tc=2*Je+st,ze.ld=40<=Je?2:15<=Je?1:0}else ze.tc=0;ze.La=Ie}}}O=0}else ea(a,6,"Frame setup failed"),O=a.a;if(O=O==0){if(O){a.$c=0,0<a.Aa||(a.Ic=nr);e:{O=a.Ic,oe=4*(st=a.za);var mt=32*st,Ot=st+1,jt=0<a.L?st*(0<a.Aa?2:1):0,cr=(a.Aa==2?2:1)*st;if((ze=oe+832+(Ie=3*(16*O+xt[a.L])/2*mt)+(Ve=a.Fa!=null&&0<a.Fa.length?a.Kc.c*a.Kc.i:0))!=ze)O=0;else{if(ze>a.Vb){if(a.Vb=0,a.Ec=C(ze),a.Fc=0,a.Ec==null){O=ea(a,1,"no memory during frame initialization.");break e}a.Vb=ze}ze=a.Ec,Je=a.Fc,a.Ac=ze,a.Bc=Je,Je+=oe,a.Gd=T(mt,wl),a.Hd=0,a.rb=T(Ot+1,wo),a.sb=1,a.wa=jt?T(jt,Lo):null,a.Y=0,a.D.Nb=0,a.D.wa=a.wa,a.D.Y=a.Y,0<a.Aa&&(a.D.Y+=st),o(!0),a.oc=ze,a.pc=Je,Je+=832,a.ya=T(cr,Nl),a.aa=0,a.D.ya=a.ya,a.D.aa=a.aa,a.Aa==2&&(a.D.aa+=st),a.R=16*st,a.B=8*st,st=(mt=xt[a.L])*a.R,mt=mt/2*a.B,a.sa=ze,a.ta=Je+st,a.qa=a.sa,a.ra=a.ta+16*O*a.R+mt,a.Ha=a.qa,a.Ia=a.ra+8*O*a.B+mt,a.$c=0,Je+=Ie,a.mb=Ve?ze:null,a.nb=Ve?Je:null,o(Je+Ve<=a.Fc+a.Vb),Ss(a),F(a.Ac,a.Bc,0,oe),O=1}}if(O){if(g.ka=0,g.y=a.sa,g.O=a.ta,g.f=a.qa,g.N=a.ra,g.ea=a.Ha,g.Vd=a.Ia,g.fa=a.R,g.Rc=a.B,g.F=null,g.J=0,!tu){for(O=-255;255>=O;++O)Rs[255+O]=0>O?-O:O;for(O=-1020;1020>=O;++O)Ua[1020+O]=-128>O?-128:127<O?127:O;for(O=-112;112>=O;++O)hi[112+O]=-16>O?-16:15<O?15:O;for(O=-255;510>=O;++O)ec[255+O]=0>O?0:255<O?255:O;tu=1}qA=HA,uA=So,eu=xl,Ul=rc,Cc=Ns,Ms=Ca,fu=Oc,rd=Gl,ju=yd,dA=Qu,Bc=IA,Ac=zr,uc=WA,ql=GA,fA=os,hA=ys,hu=ac,Sc=FA,Vs[0]=Zl,Vs[1]=jA,Vs[2]=EA,Vs[3]=$A,Vs[4]=Xo,Vs[5]=Pc,Vs[6]=ZA,Vs[7]=yc,Vs[8]=Vl,Vs[9]=_A,_c[0]=fn,_c[1]=Jc,_c[2]=$l,_c[3]=vc,_c[4]=Fs,_c[5]=SA,_c[6]=AA,nA[0]=ts,nA[1]=zA,nA[2]=ic,nA[3]=lo,nA[4]=va,nA[5]=bc,nA[6]=Ba,O=1}else O=0}O&&(O=function(Wt,Nr){for(Wt.M=0;Wt.M<Wt.Va;++Wt.M){var Or,Gt=Wt.Jc[Wt.M&Wt.Xb],tr=Wt.m,Rr=Wt;for(Or=0;Or<Rr.za;++Or){var ln=tr,un=Rr,li=un.Ac,Wn=un.Bc+4*Or,zi=un.zc,ti=un.ya[un.aa+Or];if(un.Qa.Bb?ti.$b=Rt(ln,un.Pa.jb[0])?2+Rt(ln,un.Pa.jb[2]):Rt(ln,un.Pa.jb[1]):ti.$b=0,un.kc&&(ti.Ad=Rt(ln,un.Bd)),ti.Za=!Rt(ln,145)+0,ti.Za){var Ka=ti.Ob,qa=0;for(un=0;4>un;++un){var Sa,Ia=zi[0+un];for(Sa=0;4>Sa;++Sa){Ia=pA[li[Wn+Sa]][Ia];for(var xo=yu[Rt(ln,Ia[0])];0<xo;)xo=yu[2*xo+Rt(ln,Ia[xo])];Ia=-xo,li[Wn+Sa]=Ia}b(Ka,qa,li,Wn,4),qa+=4,zi[0+un]=Ia}}else Ia=Rt(ln,156)?Rt(ln,128)?1:3:Rt(ln,163)?2:0,ti.Ob[0]=Ia,F(li,Wn,Ia,4),F(zi,0,Ia,4);ti.Dd=Rt(ln,142)?Rt(ln,114)?Rt(ln,183)?1:3:2:0}if(Rr.m.Ka)return ea(Wt,7,"Premature end-of-partition0 encountered.");for(;Wt.ja<Wt.za;++Wt.ja){if(Rr=Gt,ln=(tr=Wt).rb[tr.sb-1],li=tr.rb[tr.sb+tr.ja],Or=tr.ya[tr.aa+tr.ja],Wn=tr.kc?Or.Ad:0)ln.la=li.la=0,Or.Za||(ln.Na=li.Na=0),Or.Hc=0,Or.Gc=0,Or.ia=0;else{var Wa,ca;if(ln=li,li=Rr,Wn=tr.Pa.Xc,zi=tr.ya[tr.aa+tr.ja],ti=tr.pb[zi.$b],un=zi.ad,Ka=0,qa=tr.rb[tr.sb-1],Ia=Sa=0,F(un,Ka,0,384),zi.Za)var Co=0,Fc=Wn[3];else{xo=C(16);var ws=ln.Na+qa.Na;if(ws=ml(li,Wn[1],ws,ti.Eb,0,xo,0),ln.Na=qa.Na=(0<ws)+0,1<ws)qA(xo,0,un,Ka);else{var fc=xo[0]+3>>3;for(xo=0;256>xo;xo+=16)un[Ka+xo]=fc}Co=1,Fc=Wn[0]}var Yo=15&ln.la,Hc=15&qa.la;for(xo=0;4>xo;++xo){var Ic=1&Hc;for(fc=ca=0;4>fc;++fc)Yo=Yo>>1|(Ic=(ws=ml(li,Fc,ws=Ic+(1&Yo),ti.Sc,Co,un,Ka))>Co)<<7,ca=ca<<2|(3<ws?3:1<ws?2:un[Ka+0]!=0),Ka+=16;Yo>>=4,Hc=Hc>>1|Ic<<7,Sa=(Sa<<8|ca)>>>0}for(Fc=Yo,Co=Hc>>4,Wa=0;4>Wa;Wa+=2){for(ca=0,Yo=ln.la>>4+Wa,Hc=qa.la>>4+Wa,xo=0;2>xo;++xo){for(Ic=1&Hc,fc=0;2>fc;++fc)ws=Ic+(1&Yo),Yo=Yo>>1|(Ic=0<(ws=ml(li,Wn[2],ws,ti.Qc,0,un,Ka)))<<3,ca=ca<<2|(3<ws?3:1<ws?2:un[Ka+0]!=0),Ka+=16;Yo>>=2,Hc=Hc>>1|Ic<<5}Ia|=ca<<4*Wa,Fc|=Yo<<4<<Wa,Co|=(240&Hc)<<Wa}ln.la=Fc,qa.la=Co,zi.Hc=Sa,zi.Gc=Ia,zi.ia=43690&Ia?0:ti.ia,Wn=!(Sa|Ia)}if(0<tr.L&&(tr.wa[tr.Y+tr.ja]=tr.gd[Or.$b][Or.Za],tr.wa[tr.Y+tr.ja].La|=!Wn),Rr.Ka)return ea(Wt,7,"Premature end-of-file encountered.")}if(Ss(Wt),tr=Nr,Rr=1,Or=(Gt=Wt).D,ln=0<Gt.L&&Gt.M>=Gt.zb&&Gt.M<=Gt.Va,Gt.Aa==0)e:{if(Or.M=Gt.M,Or.uc=ln,uu(Gt,Or),Rr=1,Or=(ca=Gt.D).Nb,ln=(Ia=xt[Gt.L])*Gt.R,li=Ia/2*Gt.B,xo=16*Or*Gt.R,fc=8*Or*Gt.B,Wn=Gt.sa,zi=Gt.ta-ln+xo,ti=Gt.qa,un=Gt.ra-li+fc,Ka=Gt.Ha,qa=Gt.Ia-li+fc,Hc=(Yo=ca.M)==0,Sa=Yo>=Gt.Va-1,Gt.Aa==2&&uu(Gt,ca),ca.uc)for(Ic=(ws=Gt).D.M,o(ws.D.uc),ca=ws.yb;ca<ws.Hb;++ca){Co=ca,Fc=Ic;var Sl=(Rl=(Ks=ws).D).Nb;Wa=Ks.R;var Rl=Rl.wa[Rl.Y+Co],Ql=Ks.sa,iA=Ks.ta+16*Sl*Wa+16*Co,OA=Rl.dd,El=Rl.tc;if(El!=0)if(o(3<=El),Ks.L==1)0<Co&&hA(Ql,iA,Wa,El+4),Rl.La&&Sc(Ql,iA,Wa,El),0<Fc&&fA(Ql,iA,Wa,El+4),Rl.La&&hu(Ql,iA,Wa,El);else{var jc=Ks.B,Bu=Ks.qa,iu=Ks.ra+8*Sl*jc+8*Co,aA=Ks.Ha,Ks=Ks.Ia+8*Sl*jc+8*Co;Sl=Rl.ld,0<Co&&(rd(Ql,iA,Wa,El+4,OA,Sl),dA(Bu,iu,aA,Ks,jc,El+4,OA,Sl)),Rl.La&&(Ac(Ql,iA,Wa,El,OA,Sl),ql(Bu,iu,aA,Ks,jc,El,OA,Sl)),0<Fc&&(fu(Ql,iA,Wa,El+4,OA,Sl),ju(Bu,iu,aA,Ks,jc,El+4,OA,Sl)),Rl.La&&(Bc(Ql,iA,Wa,El,OA,Sl),uc(Bu,iu,aA,Ks,jc,El,OA,Sl))}}if(Gt.ia&&alert("todo:DitherRow"),tr.put!=null){if(ca=16*Yo,Yo=16*(Yo+1),Hc?(tr.y=Gt.sa,tr.O=Gt.ta+xo,tr.f=Gt.qa,tr.N=Gt.ra+fc,tr.ea=Gt.Ha,tr.W=Gt.Ia+fc):(ca-=Ia,tr.y=Wn,tr.O=zi,tr.f=ti,tr.N=un,tr.ea=Ka,tr.W=qa),Sa||(Yo-=Ia),Yo>tr.o&&(Yo=tr.o),tr.F=null,tr.J=null,Gt.Fa!=null&&0<Gt.Fa.length&&ca<Yo&&(tr.J=MA(Gt,tr,ca,Yo-ca),tr.F=Gt.mb,tr.F==null&&tr.F.length==0)){Rr=ea(Gt,3,"Could not decode alpha data.");break e}ca<tr.j&&(Ia=tr.j-ca,ca=tr.j,o(!(1&Ia)),tr.O+=Gt.R*Ia,tr.N+=Gt.B*(Ia>>1),tr.W+=Gt.B*(Ia>>1),tr.F!=null&&(tr.J+=tr.width*Ia)),ca<Yo&&(tr.O+=tr.v,tr.N+=tr.v>>1,tr.W+=tr.v>>1,tr.F!=null&&(tr.J+=tr.v),tr.ka=ca-tr.j,tr.U=tr.va-tr.v,tr.T=Yo-ca,Rr=tr.put(tr))}Or+1!=Gt.Ic||Sa||(b(Gt.sa,Gt.ta-ln,Wn,zi+16*Gt.R,ln),b(Gt.qa,Gt.ra-li,ti,un+8*Gt.B,li),b(Gt.Ha,Gt.Ia-li,Ka,qa+8*Gt.B,li))}if(!Rr)return ea(Wt,6,"Output aborted.")}return 1}(a,g)),g.bc!=null&&g.bc(g),O&=1}return O?(a.cb=0,O):0}function _s(a,g,O,oe,Ie){Ie=a[g+O+32*oe]+(Ie>>3),a[g+O+32*oe]=-256&Ie?0>Ie?0:255:Ie}function Dc(a,g,O,oe,Ie,Ve){_s(a,g,0,O,oe+Ie),_s(a,g,1,O,oe+Ve),_s(a,g,2,O,oe-Ve),_s(a,g,3,O,oe-Ie)}function ll(a){return(20091*a>>16)+a}function gc(a,g,O,oe){var Ie,Ve=0,ze=C(16);for(Ie=0;4>Ie;++Ie){var Je=a[g+0]+a[g+8],st=a[g+0]-a[g+8],mt=(35468*a[g+4]>>16)-ll(a[g+12]),Ot=ll(a[g+4])+(35468*a[g+12]>>16);ze[Ve+0]=Je+Ot,ze[Ve+1]=st+mt,ze[Ve+2]=st-mt,ze[Ve+3]=Je-Ot,Ve+=4,g++}for(Ie=Ve=0;4>Ie;++Ie)Je=(a=ze[Ve+0]+4)+ze[Ve+8],st=a-ze[Ve+8],mt=(35468*ze[Ve+4]>>16)-ll(ze[Ve+12]),_s(O,oe,0,0,Je+(Ot=ll(ze[Ve+4])+(35468*ze[Ve+12]>>16))),_s(O,oe,1,0,st+mt),_s(O,oe,2,0,st-mt),_s(O,oe,3,0,Je-Ot),Ve++,oe+=32}function Ca(a,g,O,oe){var Ie=a[g+0]+4,Ve=35468*a[g+4]>>16,ze=ll(a[g+4]),Je=35468*a[g+1]>>16;Dc(O,oe,0,Ie+ze,a=ll(a[g+1]),Je),Dc(O,oe,1,Ie+Ve,a,Je),Dc(O,oe,2,Ie-Ve,a,Je),Dc(O,oe,3,Ie-ze,a,Je)}function So(a,g,O,oe,Ie){gc(a,g,O,oe),Ie&&gc(a,g+16,O,oe+4)}function xl(a,g,O,oe){uA(a,g+0,O,oe,1),uA(a,g+32,O,oe+128,1)}function rc(a,g,O,oe){var Ie;for(a=a[g+0]+4,Ie=0;4>Ie;++Ie)for(g=0;4>g;++g)_s(O,oe,g,Ie,a)}function Ns(a,g,O,oe){a[g+0]&&Ul(a,g+0,O,oe),a[g+16]&&Ul(a,g+16,O,oe+4),a[g+32]&&Ul(a,g+32,O,oe+128),a[g+48]&&Ul(a,g+48,O,oe+128+4)}function HA(a,g,O,oe){var Ie,Ve=C(16);for(Ie=0;4>Ie;++Ie){var ze=a[g+0+Ie]+a[g+12+Ie],Je=a[g+4+Ie]+a[g+8+Ie],st=a[g+4+Ie]-a[g+8+Ie],mt=a[g+0+Ie]-a[g+12+Ie];Ve[0+Ie]=ze+Je,Ve[8+Ie]=ze-Je,Ve[4+Ie]=mt+st,Ve[12+Ie]=mt-st}for(Ie=0;4>Ie;++Ie)ze=(a=Ve[0+4*Ie]+3)+Ve[3+4*Ie],Je=Ve[1+4*Ie]+Ve[2+4*Ie],st=Ve[1+4*Ie]-Ve[2+4*Ie],mt=a-Ve[3+4*Ie],O[oe+0]=ze+Je>>3,O[oe+16]=mt+st>>3,O[oe+32]=ze-Je>>3,O[oe+48]=mt-st>>3,oe+=64}function Cl(a,g,O){var oe,Ie=g-32,Ve=ya,ze=255-a[Ie-1];for(oe=0;oe<O;++oe){var Je,st=Ve,mt=ze+a[g-1];for(Je=0;Je<O;++Je)a[g+Je]=st[mt+a[Ie+Je]];g+=32}}function jA(a,g){Cl(a,g,4)}function zA(a,g){Cl(a,g,8)}function Jc(a,g){Cl(a,g,16)}function $l(a,g){var O;for(O=0;16>O;++O)b(a,g+32*O,a,g-32,16)}function vc(a,g){var O;for(O=16;0<O;--O)F(a,g,a[g-1],16),g+=32}function nc(a,g,O){var oe;for(oe=0;16>oe;++oe)F(g,O+32*oe,a,16)}function fn(a,g){var O,oe=16;for(O=0;16>O;++O)oe+=a[g-1+32*O]+a[g+O-32];nc(oe>>5,a,g)}function Fs(a,g){var O,oe=8;for(O=0;16>O;++O)oe+=a[g-1+32*O];nc(oe>>4,a,g)}function SA(a,g){var O,oe=8;for(O=0;16>O;++O)oe+=a[g+O-32];nc(oe>>4,a,g)}function AA(a,g){nc(128,a,g)}function sa(a,g,O){return a+2*g+O+2>>2}function EA(a,g){var O,oe=g-32;for(oe=new Uint8Array([sa(a[oe-1],a[oe+0],a[oe+1]),sa(a[oe+0],a[oe+1],a[oe+2]),sa(a[oe+1],a[oe+2],a[oe+3]),sa(a[oe+2],a[oe+3],a[oe+4])]),O=0;4>O;++O)b(a,g+32*O,oe,0,oe.length)}function $A(a,g){var O=a[g-1],oe=a[g-1+32],Ie=a[g-1+64],Ve=a[g-1+96];lr(a,g+0,16843009*sa(a[g-1-32],O,oe)),lr(a,g+32,16843009*sa(O,oe,Ie)),lr(a,g+64,16843009*sa(oe,Ie,Ve)),lr(a,g+96,16843009*sa(Ie,Ve,Ve))}function Zl(a,g){var O,oe=4;for(O=0;4>O;++O)oe+=a[g+O-32]+a[g-1+32*O];for(oe>>=3,O=0;4>O;++O)F(a,g+32*O,oe,4)}function Xo(a,g){var O=a[g-1+0],oe=a[g-1+32],Ie=a[g-1+64],Ve=a[g-1-32],ze=a[g+0-32],Je=a[g+1-32],st=a[g+2-32],mt=a[g+3-32];a[g+0+96]=sa(oe,Ie,a[g-1+96]),a[g+1+96]=a[g+0+64]=sa(O,oe,Ie),a[g+2+96]=a[g+1+64]=a[g+0+32]=sa(Ve,O,oe),a[g+3+96]=a[g+2+64]=a[g+1+32]=a[g+0+0]=sa(ze,Ve,O),a[g+3+64]=a[g+2+32]=a[g+1+0]=sa(Je,ze,Ve),a[g+3+32]=a[g+2+0]=sa(st,Je,ze),a[g+3+0]=sa(mt,st,Je)}function ZA(a,g){var O=a[g+1-32],oe=a[g+2-32],Ie=a[g+3-32],Ve=a[g+4-32],ze=a[g+5-32],Je=a[g+6-32],st=a[g+7-32];a[g+0+0]=sa(a[g+0-32],O,oe),a[g+1+0]=a[g+0+32]=sa(O,oe,Ie),a[g+2+0]=a[g+1+32]=a[g+0+64]=sa(oe,Ie,Ve),a[g+3+0]=a[g+2+32]=a[g+1+64]=a[g+0+96]=sa(Ie,Ve,ze),a[g+3+32]=a[g+2+64]=a[g+1+96]=sa(Ve,ze,Je),a[g+3+64]=a[g+2+96]=sa(ze,Je,st),a[g+3+96]=sa(Je,st,st)}function Pc(a,g){var O=a[g-1+0],oe=a[g-1+32],Ie=a[g-1+64],Ve=a[g-1-32],ze=a[g+0-32],Je=a[g+1-32],st=a[g+2-32],mt=a[g+3-32];a[g+0+0]=a[g+1+64]=Ve+ze+1>>1,a[g+1+0]=a[g+2+64]=ze+Je+1>>1,a[g+2+0]=a[g+3+64]=Je+st+1>>1,a[g+3+0]=st+mt+1>>1,a[g+0+96]=sa(Ie,oe,O),a[g+0+64]=sa(oe,O,Ve),a[g+0+32]=a[g+1+96]=sa(O,Ve,ze),a[g+1+32]=a[g+2+96]=sa(Ve,ze,Je),a[g+2+32]=a[g+3+96]=sa(ze,Je,st),a[g+3+32]=sa(Je,st,mt)}function yc(a,g){var O=a[g+0-32],oe=a[g+1-32],Ie=a[g+2-32],Ve=a[g+3-32],ze=a[g+4-32],Je=a[g+5-32],st=a[g+6-32],mt=a[g+7-32];a[g+0+0]=O+oe+1>>1,a[g+1+0]=a[g+0+64]=oe+Ie+1>>1,a[g+2+0]=a[g+1+64]=Ie+Ve+1>>1,a[g+3+0]=a[g+2+64]=Ve+ze+1>>1,a[g+0+32]=sa(O,oe,Ie),a[g+1+32]=a[g+0+96]=sa(oe,Ie,Ve),a[g+2+32]=a[g+1+96]=sa(Ie,Ve,ze),a[g+3+32]=a[g+2+96]=sa(Ve,ze,Je),a[g+3+64]=sa(ze,Je,st),a[g+3+96]=sa(Je,st,mt)}function _A(a,g){var O=a[g-1+0],oe=a[g-1+32],Ie=a[g-1+64],Ve=a[g-1+96];a[g+0+0]=O+oe+1>>1,a[g+2+0]=a[g+0+32]=oe+Ie+1>>1,a[g+2+32]=a[g+0+64]=Ie+Ve+1>>1,a[g+1+0]=sa(O,oe,Ie),a[g+3+0]=a[g+1+32]=sa(oe,Ie,Ve),a[g+3+32]=a[g+1+64]=sa(Ie,Ve,Ve),a[g+3+64]=a[g+2+64]=a[g+0+96]=a[g+1+96]=a[g+2+96]=a[g+3+96]=Ve}function Vl(a,g){var O=a[g-1+0],oe=a[g-1+32],Ie=a[g-1+64],Ve=a[g-1+96],ze=a[g-1-32],Je=a[g+0-32],st=a[g+1-32],mt=a[g+2-32];a[g+0+0]=a[g+2+32]=O+ze+1>>1,a[g+0+32]=a[g+2+64]=oe+O+1>>1,a[g+0+64]=a[g+2+96]=Ie+oe+1>>1,a[g+0+96]=Ve+Ie+1>>1,a[g+3+0]=sa(Je,st,mt),a[g+2+0]=sa(ze,Je,st),a[g+1+0]=a[g+3+32]=sa(O,ze,Je),a[g+1+32]=a[g+3+64]=sa(oe,O,ze),a[g+1+64]=a[g+3+96]=sa(Ie,oe,O),a[g+1+96]=sa(Ve,Ie,oe)}function ic(a,g){var O;for(O=0;8>O;++O)b(a,g+32*O,a,g-32,8)}function lo(a,g){var O;for(O=0;8>O;++O)F(a,g,a[g-1],8),g+=32}function Os(a,g,O){var oe;for(oe=0;8>oe;++oe)F(g,O+32*oe,a,8)}function ts(a,g){var O,oe=8;for(O=0;8>O;++O)oe+=a[g+O-32]+a[g-1+32*O];Os(oe>>4,a,g)}function bc(a,g){var O,oe=4;for(O=0;8>O;++O)oe+=a[g+O-32];Os(oe>>3,a,g)}function va(a,g){var O,oe=4;for(O=0;8>O;++O)oe+=a[g-1+32*O];Os(oe>>3,a,g)}function Ba(a,g){Os(128,a,g)}function Zs(a,g,O){var oe=a[g-O],Ie=a[g+0],Ve=3*(Ie-oe)+Qs[1020+a[g-2*O]-a[g+O]],ze=zu[112+(Ve+4>>3)];a[g-O]=ya[255+oe+zu[112+(Ve+3>>3)]],a[g+0]=ya[255+Ie-ze]}function Wl(a,g,O,oe){var Ie=a[g+0],Ve=a[g+O];return Ao[255+a[g-2*O]-a[g-O]]>oe||Ao[255+Ve-Ie]>oe}function Ol(a,g,O,oe){return 4*Ao[255+a[g-O]-a[g+0]]+Ao[255+a[g-2*O]-a[g+O]]<=oe}function VA(a,g,O,oe,Ie){var Ve=a[g-3*O],ze=a[g-2*O],Je=a[g-O],st=a[g+0],mt=a[g+O],Ot=a[g+2*O],jt=a[g+3*O];return 4*Ao[255+Je-st]+Ao[255+ze-mt]>oe?0:Ao[255+a[g-4*O]-Ve]<=Ie&&Ao[255+Ve-ze]<=Ie&&Ao[255+ze-Je]<=Ie&&Ao[255+jt-Ot]<=Ie&&Ao[255+Ot-mt]<=Ie&&Ao[255+mt-st]<=Ie}function os(a,g,O,oe){var Ie=2*oe+1;for(oe=0;16>oe;++oe)Ol(a,g+oe,O,Ie)&&Zs(a,g+oe,O)}function ys(a,g,O,oe){var Ie=2*oe+1;for(oe=0;16>oe;++oe)Ol(a,g+oe*O,1,Ie)&&Zs(a,g+oe*O,1)}function ac(a,g,O,oe){var Ie;for(Ie=3;0<Ie;--Ie)os(a,g+=4*O,O,oe)}function FA(a,g,O,oe){var Ie;for(Ie=3;0<Ie;--Ie)ys(a,g+=4,O,oe)}function Nc(a,g,O,oe,Ie,Ve,ze,Je){for(Ve=2*Ve+1;0<Ie--;){if(VA(a,g,O,Ve,ze))if(Wl(a,g,O,Je))Zs(a,g,O);else{var st=a,mt=g,Ot=O,jt=st[mt-2*Ot],cr=st[mt-Ot],Wt=st[mt+0],Nr=st[mt+Ot],Or=st[mt+2*Ot],Gt=27*(Rr=Qs[1020+3*(Wt-cr)+Qs[1020+jt-Nr]])+63>>7,tr=18*Rr+63>>7,Rr=9*Rr+63>>7;st[mt-3*Ot]=ya[255+st[mt-3*Ot]+Rr],st[mt-2*Ot]=ya[255+jt+tr],st[mt-Ot]=ya[255+cr+Gt],st[mt+0]=ya[255+Wt-Gt],st[mt+Ot]=ya[255+Nr-tr],st[mt+2*Ot]=ya[255+Or-Rr]}g+=oe}}function la(a,g,O,oe,Ie,Ve,ze,Je){for(Ve=2*Ve+1;0<Ie--;){if(VA(a,g,O,Ve,ze))if(Wl(a,g,O,Je))Zs(a,g,O);else{var st=a,mt=g,Ot=O,jt=st[mt-Ot],cr=st[mt+0],Wt=st[mt+Ot],Nr=zu[112+((Or=3*(cr-jt))+4>>3)],Or=zu[112+(Or+3>>3)],Gt=Nr+1>>1;st[mt-2*Ot]=ya[255+st[mt-2*Ot]+Gt],st[mt-Ot]=ya[255+jt+Or],st[mt+0]=ya[255+cr-Nr],st[mt+Ot]=ya[255+Wt-Gt]}g+=oe}}function Oc(a,g,O,oe,Ie,Ve){Nc(a,g,O,1,16,oe,Ie,Ve)}function Gl(a,g,O,oe,Ie,Ve){Nc(a,g,1,O,16,oe,Ie,Ve)}function IA(a,g,O,oe,Ie,Ve){var ze;for(ze=3;0<ze;--ze)la(a,g+=4*O,O,1,16,oe,Ie,Ve)}function zr(a,g,O,oe,Ie,Ve){var ze;for(ze=3;0<ze;--ze)la(a,g+=4,1,O,16,oe,Ie,Ve)}function yd(a,g,O,oe,Ie,Ve,ze,Je){Nc(a,g,Ie,1,8,Ve,ze,Je),Nc(O,oe,Ie,1,8,Ve,ze,Je)}function Qu(a,g,O,oe,Ie,Ve,ze,Je){Nc(a,g,1,Ie,8,Ve,ze,Je),Nc(O,oe,1,Ie,8,Ve,ze,Je)}function WA(a,g,O,oe,Ie,Ve,ze,Je){la(a,g+4*Ie,Ie,1,8,Ve,ze,Je),la(O,oe+4*Ie,Ie,1,8,Ve,ze,Je)}function GA(a,g,O,oe,Ie,Ve,ze,Je){la(a,g+4,1,Ie,8,Ve,ze,Je),la(O,oe+4,1,Ie,8,Ve,ze,Je)}function oc(){this.ba=new fi,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new $n,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Ku(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Au(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Is(){this.ua=0,this.Wa=new yt,this.vb=new yt,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new U,this.yc=new Ct}function Tc(){this.xb=this.a=0,this.l=new Xc,this.ca=new fi,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new le,this.Pb=0,this.wd=new le,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Is,this.ab=0,this.gc=T(4,Au),this.Oc=0}function Yc(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Xc,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Uc(a,g,O,oe,Ie,Ve,ze){for(a=a==null?0:a[g+0],g=0;g<ze;++g)Ie[Ve+g]=a+O[oe+g]&255,a=Ie[Ve+g]}function Hu(a,g,O,oe,Ie,Ve,ze){var Je;if(a==null)Uc(null,null,O,oe,Ie,Ve,ze);else for(Je=0;Je<ze;++Je)Ie[Ve+Je]=a[g+Je]+O[oe+Je]&255}function Rc(a,g,O,oe,Ie,Ve,ze){if(a==null)Uc(null,null,O,oe,Ie,Ve,ze);else{var Je,st=a[g+0],mt=st,Ot=st;for(Je=0;Je<ze;++Je)mt=Ot+(st=a[g+Je])-mt,Ot=O[oe+Je]+(-256&mt?0>mt?0:255:mt)&255,mt=st,Ie[Ve+Je]=Ot}}function MA(a,g,O,oe){var Ie=g.width,Ve=g.o;if(o(a!=null&&g!=null),0>O||0>=oe||O+oe>Ve)return null;if(!a.Cc){if(a.ga==null){var ze;if(a.ga=new Yc,(ze=a.ga==null)||(ze=g.width*g.o,o(a.Gb.length==0),a.Gb=C(ze),a.Uc=0,a.Gb==null?ze=0:(a.mb=a.Gb,a.nb=a.Uc,a.rc=null,ze=1),ze=!ze),!ze){ze=a.ga;var Je=a.Fa,st=a.P,mt=a.qc,Ot=a.mb,jt=a.nb,cr=st+1,Wt=mt-1,Nr=ze.l;if(o(Je!=null&&Ot!=null&&g!=null),PA[0]=null,PA[1]=Uc,PA[2]=Hu,PA[3]=Rc,ze.ca=Ot,ze.tb=jt,ze.c=g.width,ze.i=g.height,o(0<ze.c&&0<ze.i),1>=mt)g=0;else if(ze.$a=Je[st+0]>>0&3,ze.Z=Je[st+0]>>2&3,ze.Lc=Je[st+0]>>4&3,st=Je[st+0]>>6&3,0>ze.$a||1<ze.$a||4<=ze.Z||1<ze.Lc||st)g=0;else if(Nr.put=qi,Nr.ac=Gi,Nr.bc=Mo,Nr.ma=ze,Nr.width=g.width,Nr.height=g.height,Nr.Da=g.Da,Nr.v=g.v,Nr.va=g.va,Nr.j=g.j,Nr.o=g.o,ze.$a)e:{o(ze.$a==1),g=bo();t:for(;;){if(g==null){g=0;break e}if(o(ze!=null),ze.mc=g,g.c=ze.c,g.i=ze.i,g.l=ze.l,g.l.ma=ze,g.l.width=ze.c,g.l.height=ze.i,g.a=0,Ke(g.m,Je,cr,Wt),!Ko(ze.c,ze.i,1,g,null)||(g.ab==1&&g.gc[0].hc==3&&qr(g.s)?(ze.ic=1,Je=g.c*g.i,g.Ta=null,g.Ua=0,g.V=C(Je),g.Ba=0,g.V==null?(g.a=1,g=0):g=1):(ze.ic=0,g=Bs(g,ze.c)),!g))break t;g=1;break e}ze.mc=null,g=0}else g=Wt>=ze.c*ze.i;ze=!g}if(ze)return null;a.ga.Lc!=1?a.Ga=0:oe=Ve-O}o(a.ga!=null),o(O+oe<=Ve);e:{if(g=(Je=a.ga).c,Ve=Je.l.o,Je.$a==0){if(cr=a.rc,Wt=a.Vc,Nr=a.Fa,st=a.P+1+O*g,mt=a.mb,Ot=a.nb+O*g,o(st<=a.P+a.qc),Je.Z!=0)for(o(PA[Je.Z]!=null),ze=0;ze<oe;++ze)PA[Je.Z](cr,Wt,Nr,st,mt,Ot,g),cr=mt,Wt=Ot,Ot+=g,st+=g;else for(ze=0;ze<oe;++ze)b(mt,Ot,Nr,st,g),cr=mt,Wt=Ot,Ot+=g,st+=g;a.rc=cr,a.Vc=Wt}else{if(o(Je.mc!=null),g=O+oe,o((ze=Je.mc)!=null),o(g<=ze.i),ze.C>=g)g=1;else if(Je.ic||br(),Je.ic){Je=ze.V,cr=ze.Ba,Wt=ze.c;var Or=ze.i,Gt=(Nr=1,st=ze.$/Wt,mt=ze.$%Wt,Ot=ze.m,jt=ze.s,ze.$),tr=Wt*Or,Rr=Wt*g,ln=jt.wc,un=Gt<Rr?no(jt,mt,st):null;o(Gt<=tr),o(g<=Or),o(qr(jt));t:for(;;){for(;!Ot.h&&Gt<Rr;){if(mt&ln||(un=no(jt,mt,st)),o(un!=null),bt(Ot),256>(Or=Qo(un.G[0],un.H[0],Ot)))Je[cr+Gt]=Or,++Gt,++mt>=Wt&&(mt=0,++st<=g&&!(st%16)&&so(ze,st));else{if(!(280>Or)){Nr=0;break t}Or=ns(Or-256,Ot);var li,Wn=Qo(un.G[4],un.H[4],Ot);if(bt(Ot),!(Gt>=(Wn=ro(Wt,Wn=ns(Wn,Ot)))&&tr-Gt>=Or)){Nr=0;break t}for(li=0;li<Or;++li)Je[cr+Gt+li]=Je[cr+Gt+li-Wn];for(Gt+=Or,mt+=Or;mt>=Wt;)mt-=Wt,++st<=g&&!(st%16)&&so(ze,st);Gt<Rr&&mt&ln&&(un=no(jt,mt,st))}o(Ot.h==Ye(Ot))}so(ze,st>g?g:st);break t}!Nr||Ot.h&&Gt<tr?(Nr=0,ze.a=Ot.h?5:3):ze.$=Gt,g=Nr}else g=Va(ze,ze.V,ze.Ba,ze.c,ze.i,g,gs);if(!g){oe=0;break e}}O+oe>=Ve&&(a.Cc=1),oe=1}if(!oe)return null;if(a.Cc&&((oe=a.ga)!=null&&(oe.mc=null),a.ga=null,0<a.Ga))return alert("todo:WebPDequantizeLevels"),null}return a.nb+O*Ie}function D(a,g,O,oe,Ie,Ve){for(;0<Ie--;){var ze,Je=a,st=g+(O?1:0),mt=a,Ot=g+(O?0:3);for(ze=0;ze<oe;++ze){var jt=mt[Ot+4*ze];jt!=255&&(jt*=32897,Je[st+4*ze+0]=Je[st+4*ze+0]*jt>>23,Je[st+4*ze+1]=Je[st+4*ze+1]*jt>>23,Je[st+4*ze+2]=Je[st+4*ze+2]*jt>>23)}g+=Ve}}function We(a,g,O,oe,Ie){for(;0<oe--;){var Ve;for(Ve=0;Ve<O;++Ve){var ze=a[g+2*Ve+0],Je=15&(mt=a[g+2*Ve+1]),st=4369*Je,mt=(240&mt|mt>>4)*st>>16;a[g+2*Ve+0]=(240&ze|ze>>4)*st>>16&240|(15&ze|ze<<4)*st>>16>>4&15,a[g+2*Ve+1]=240&mt|Je}g+=Ie}}function Lt(a,g,O,oe,Ie,Ve,ze,Je){var st,mt,Ot=255;for(mt=0;mt<Ie;++mt){for(st=0;st<oe;++st){var jt=a[g+st];Ve[ze+4*st]=jt,Ot&=jt}g+=O,ze+=Je}return Ot!=255}function Yt(a,g,O,oe,Ie){var Ve;for(Ve=0;Ve<Ie;++Ve)O[oe+Ve]=a[g+Ve]>>8}function br(){Ec=D,Jo=We,Ho=Lt,Us=Yt}function Xr(a,g,O){Vt[a]=function(oe,Ie,Ve,ze,Je,st,mt,Ot,jt,cr,Wt,Nr,Or,Gt,tr,Rr,ln){var un,li=ln-1>>1,Wn=Je[st+0]|mt[Ot+0]<<16,zi=jt[cr+0]|Wt[Nr+0]<<16;o(oe!=null);var ti=3*Wn+zi+131074>>2;for(g(oe[Ie+0],255&ti,ti>>16,Or,Gt),Ve!=null&&(ti=3*zi+Wn+131074>>2,g(Ve[ze+0],255&ti,ti>>16,tr,Rr)),un=1;un<=li;++un){var Ka=Je[st+un]|mt[Ot+un]<<16,qa=jt[cr+un]|Wt[Nr+un]<<16,Sa=Wn+Ka+zi+qa+524296,Ia=Sa+2*(Ka+zi)>>3;ti=Ia+Wn>>1,Wn=(Sa=Sa+2*(Wn+qa)>>3)+Ka>>1,g(oe[Ie+2*un-1],255&ti,ti>>16,Or,Gt+(2*un-1)*O),g(oe[Ie+2*un-0],255&Wn,Wn>>16,Or,Gt+(2*un-0)*O),Ve!=null&&(ti=Sa+zi>>1,Wn=Ia+qa>>1,g(Ve[ze+2*un-1],255&ti,ti>>16,tr,Rr+(2*un-1)*O),g(Ve[ze+2*un+0],255&Wn,Wn>>16,tr,Rr+(2*un+0)*O)),Wn=Ka,zi=qa}1&ln||(ti=3*Wn+zi+131074>>2,g(oe[Ie+ln-1],255&ti,ti>>16,Or,Gt+(ln-1)*O),Ve!=null&&(ti=3*zi+Wn+131074>>2,g(Ve[ze+ln-1],255&ti,ti>>16,tr,Rr+(ln-1)*O)))}}function _n(){dc[ko]=yf,dc[$u]=wu,dc[pu]=Wu,dc[nd]=sd,dc[DA]=NA,dc[mu]=mA,dc[ru]=bf,dc[Zu]=wu,dc[Al]=sd,dc[gu]=NA,dc[id]=mA}function Mi(a){return a&~wf?0>a?0:255:a>>Vd}function ta(a,g){return Mi((19077*a>>8)+(26149*g>>8)-14234)}function Pa(a,g,O){return Mi((19077*a>>8)-(6419*g>>8)-(13320*O>>8)+8708)}function Fa(a,g){return Mi((19077*a>>8)+(33050*g>>8)-17685)}function co(a,g,O,oe,Ie){oe[Ie+0]=ta(a,O),oe[Ie+1]=Pa(a,g,O),oe[Ie+2]=Fa(a,g)}function aa(a,g,O,oe,Ie){oe[Ie+0]=Fa(a,g),oe[Ie+1]=Pa(a,g,O),oe[Ie+2]=ta(a,O)}function bs(a,g,O,oe,Ie){var Ve=Pa(a,g,O);g=Ve<<3&224|Fa(a,g)>>3,oe[Ie+0]=248&ta(a,O)|Ve>>5,oe[Ie+1]=g}function Ts(a,g,O,oe,Ie){var Ve=240&Fa(a,g)|15;oe[Ie+0]=240&ta(a,O)|Pa(a,g,O)>>4,oe[Ie+1]=Ve}function hs(a,g,O,oe,Ie){oe[Ie+0]=255,co(a,g,O,oe,Ie+1)}function el(a,g,O,oe,Ie){aa(a,g,O,oe,Ie),oe[Ie+3]=255}function Bl(a,g,O,oe,Ie){co(a,g,O,oe,Ie),oe[Ie+3]=255}function sc(a,g){return 0>a?0:a>g?g:a}function Xl(a,g,O){Vt[a]=function(oe,Ie,Ve,ze,Je,st,mt,Ot,jt){for(var cr=Ot+(-2&jt)*O;Ot!=cr;)g(oe[Ie+0],Ve[ze+0],Je[st+0],mt,Ot),g(oe[Ie+1],Ve[ze+0],Je[st+0],mt,Ot+O),Ie+=2,++ze,++st,Ot+=2*O;1&jt&&g(oe[Ie+0],Ve[ze+0],Je[st+0],mt,Ot)}}function LA(a,g,O){return O==0?a==0?g==0?6:5:g==0?4:0:O}function qc(a,g,O,oe,Ie){switch(a>>>30){case 3:uA(g,O,oe,Ie,0);break;case 2:Ms(g,O,oe,Ie);break;case 1:Ul(g,O,oe,Ie)}}function uu(a,g){var O,oe,Ie=g.M,Ve=g.Nb,ze=a.oc,Je=a.pc+40,st=a.oc,mt=a.pc+584,Ot=a.oc,jt=a.pc+600;for(O=0;16>O;++O)ze[Je+32*O-1]=129;for(O=0;8>O;++O)st[mt+32*O-1]=129,Ot[jt+32*O-1]=129;for(0<Ie?ze[Je-1-32]=st[mt-1-32]=Ot[jt-1-32]=129:(F(ze,Je-32-1,127,21),F(st,mt-32-1,127,9),F(Ot,jt-32-1,127,9)),oe=0;oe<a.za;++oe){var cr=g.ya[g.aa+oe];if(0<oe){for(O=-1;16>O;++O)b(ze,Je+32*O-4,ze,Je+32*O+12,4);for(O=-1;8>O;++O)b(st,mt+32*O-4,st,mt+32*O+4,4),b(Ot,jt+32*O-4,Ot,jt+32*O+4,4)}var Wt=a.Gd,Nr=a.Hd+oe,Or=cr.ad,Gt=cr.Hc;if(0<Ie&&(b(ze,Je-32,Wt[Nr].y,0,16),b(st,mt-32,Wt[Nr].f,0,8),b(Ot,jt-32,Wt[Nr].ea,0,8)),cr.Za){var tr=ze,Rr=Je-32+16;for(0<Ie&&(oe>=a.za-1?F(tr,Rr,Wt[Nr].y[15],4):b(tr,Rr,Wt[Nr+1].y,0,4)),O=0;4>O;O++)tr[Rr+128+O]=tr[Rr+256+O]=tr[Rr+384+O]=tr[Rr+0+O];for(O=0;16>O;++O,Gt<<=2)tr=ze,Rr=Je+tt[O],Vs[cr.Ob[O]](tr,Rr),qc(Gt,Or,16*+O,tr,Rr)}else if(tr=LA(oe,Ie,cr.Ob[0]),_c[tr](ze,Je),Gt!=0)for(O=0;16>O;++O,Gt<<=2)qc(Gt,Or,16*+O,ze,Je+tt[O]);for(O=cr.Gc,tr=LA(oe,Ie,cr.Dd),nA[tr](st,mt),nA[tr](Ot,jt),Gt=Or,tr=st,Rr=mt,255&(cr=O>>0)&&(170&cr?eu(Gt,256,tr,Rr):Cc(Gt,256,tr,Rr)),cr=Ot,Gt=jt,255&(O>>=8)&&(170&O?eu(Or,320,cr,Gt):Cc(Or,320,cr,Gt)),Ie<a.Ub-1&&(b(Wt[Nr].y,0,ze,Je+480,16),b(Wt[Nr].f,0,st,mt+224,8),b(Wt[Nr].ea,0,Ot,jt+224,8)),O=8*Ve*a.B,Wt=a.sa,Nr=a.ta+16*oe+16*Ve*a.R,Or=a.qa,cr=a.ra+8*oe+O,Gt=a.Ha,tr=a.Ia+8*oe+O,O=0;16>O;++O)b(Wt,Nr+O*a.R,ze,Je+32*O,16);for(O=0;8>O;++O)b(Or,cr+O*a.B,st,mt+32*O,8),b(Gt,tr+O*a.B,Ot,jt+32*O,8)}}function XA(a,g,O,oe,Ie,Ve,ze,Je,st){var mt=[0],Ot=[0],jt=0,cr=st!=null?st.kd:0,Wt=st!=null?st:new Ku;if(a==null||12>O)return 7;Wt.data=a,Wt.w=g,Wt.ha=O,g=[g],O=[O],Wt.gb=[Wt.gb];e:{var Nr=g,Or=O,Gt=Wt.gb;if(o(a!=null),o(Or!=null),o(Gt!=null),Gt[0]=0,12<=Or[0]&&!l(a,Nr[0],"RIFF")){if(l(a,Nr[0]+8,"WEBP")){Gt=3;break e}var tr=_r(a,Nr[0]+4);if(12>tr||4294967286<tr){Gt=3;break e}if(cr&&tr>Or[0]-8){Gt=7;break e}Gt[0]=tr,Nr[0]+=12,Or[0]-=12}Gt=0}if(Gt!=0)return Gt;for(tr=0<Wt.gb[0],O=O[0];;){e:{var Rr=a;Or=g,Gt=O;var ln=mt,un=Ot,li=Nr=[0];if((ti=jt=[jt])[0]=0,8>Gt[0])Gt=7;else{if(!l(Rr,Or[0],"VP8X")){if(_r(Rr,Or[0]+4)!=10){Gt=3;break e}if(18>Gt[0]){Gt=7;break e}var Wn=_r(Rr,Or[0]+8),zi=1+gr(Rr,Or[0]+12);if(2147483648<=zi*(Rr=1+gr(Rr,Or[0]+15))){Gt=3;break e}li!=null&&(li[0]=Wn),ln!=null&&(ln[0]=zi),un!=null&&(un[0]=Rr),Or[0]+=18,Gt[0]-=18,ti[0]=1}Gt=0}}if(jt=jt[0],Nr=Nr[0],Gt!=0)return Gt;if(Or=!!(2&Nr),!tr&&jt)return 3;if(Ve!=null&&(Ve[0]=!!(16&Nr)),ze!=null&&(ze[0]=Or),Je!=null&&(Je[0]=0),ze=mt[0],Nr=Ot[0],jt&&Or&&st==null){Gt=0;break}if(4>O){Gt=7;break}if(tr&&jt||!tr&&!jt&&!l(a,g[0],"ALPH")){O=[O],Wt.na=[Wt.na],Wt.P=[Wt.P],Wt.Sa=[Wt.Sa];e:{Wn=a,Gt=g,tr=O;var ti=Wt.gb;ln=Wt.na,un=Wt.P,li=Wt.Sa,zi=22,o(Wn!=null),o(tr!=null),Rr=Gt[0];var Ka=tr[0];for(o(ln!=null),o(li!=null),ln[0]=null,un[0]=null,li[0]=0;;){if(Gt[0]=Rr,tr[0]=Ka,8>Ka){Gt=7;break e}var qa=_r(Wn,Rr+4);if(4294967286<qa){Gt=3;break e}var Sa=8+qa+1&-2;if(zi+=Sa,0<ti&&zi>ti){Gt=3;break e}if(!l(Wn,Rr,"VP8 ")||!l(Wn,Rr,"VP8L")){Gt=0;break e}if(Ka[0]<Sa){Gt=7;break e}l(Wn,Rr,"ALPH")||(ln[0]=Wn,un[0]=Rr+8,li[0]=qa),Rr+=Sa,Ka-=Sa}}if(O=O[0],Wt.na=Wt.na[0],Wt.P=Wt.P[0],Wt.Sa=Wt.Sa[0],Gt!=0)break}O=[O],Wt.Ja=[Wt.Ja],Wt.xa=[Wt.xa];e:if(ti=a,Gt=g,tr=O,ln=Wt.gb[0],un=Wt.Ja,li=Wt.xa,Wn=Gt[0],Rr=!l(ti,Wn,"VP8 "),zi=!l(ti,Wn,"VP8L"),o(ti!=null),o(tr!=null),o(un!=null),o(li!=null),8>tr[0])Gt=7;else{if(Rr||zi){if(ti=_r(ti,Wn+4),12<=ln&&ti>ln-12){Gt=3;break e}if(cr&&ti>tr[0]-8){Gt=7;break e}un[0]=ti,Gt[0]+=8,tr[0]-=8,li[0]=zi}else li[0]=5<=tr[0]&&ti[Wn+0]==47&&!(ti[Wn+4]>>5),un[0]=tr[0];Gt=0}if(O=O[0],Wt.Ja=Wt.Ja[0],Wt.xa=Wt.xa[0],g=g[0],Gt!=0)break;if(4294967286<Wt.Ja)return 3;if(Je==null||Or||(Je[0]=Wt.xa?2:1),ze=[ze],Nr=[Nr],Wt.xa){if(5>O){Gt=7;break}Je=ze,cr=Nr,Or=Ve,a==null||5>O?a=0:5<=O&&a[g+0]==47&&!(a[g+4]>>5)?(tr=[0],ti=[0],ln=[0],Ke(un=new le,a,g,O),Ii(un,tr,ti,ln)?(Je!=null&&(Je[0]=tr[0]),cr!=null&&(cr[0]=ti[0]),Or!=null&&(Or[0]=ln[0]),a=1):a=0):a=0}else{if(10>O){Gt=7;break}Je=Nr,a==null||10>O||!vs(a,g+3,O-3)?a=0:(cr=a[g+0]|a[g+1]<<8|a[g+2]<<16,Or=16383&(a[g+7]<<8|a[g+6]),a=16383&(a[g+9]<<8|a[g+8]),1&cr||3<(cr>>1&7)||!(cr>>4&1)||cr>>5>=Wt.Ja||!Or||!a?a=0:(ze&&(ze[0]=Or),Je&&(Je[0]=a),a=1))}if(!a||(ze=ze[0],Nr=Nr[0],jt&&(mt[0]!=ze||Ot[0]!=Nr)))return 3;st!=null&&(st[0]=Wt,st.offset=g-st.w,o(4294967286>g-st.w),o(st.offset==st.ha-O));break}return Gt==0||Gt==7&&jt&&st==null?(Ve!=null&&(Ve[0]|=Wt.na!=null&&0<Wt.na.length),oe!=null&&(oe[0]=ze),Ie!=null&&(Ie[0]=Nr),0):Gt}function kA(a,g,O){var oe=g.width,Ie=g.height,Ve=0,ze=0,Je=oe,st=Ie;if(g.Da=a!=null&&0<a.Da,g.Da&&(Je=a.cd,st=a.bd,Ve=a.v,ze=a.j,11>O||(Ve&=-2,ze&=-2),0>Ve||0>ze||0>=Je||0>=st||Ve+Je>oe||ze+st>Ie))return 0;if(g.v=Ve,g.j=ze,g.va=Ve+Je,g.o=ze+st,g.U=Je,g.T=st,g.da=a!=null&&0<a.da,g.da){if(!Fn(Je,st,O=[a.ib],Ve=[a.hb]))return 0;g.ib=O[0],g.hb=Ve[0]}return g.ob=a!=null&&a.ob,g.Kb=a==null||!a.Sd,g.da&&(g.ob=g.ib<3*oe/4&&g.hb<3*Ie/4,g.Kb=0),1}function JA(a){if(a==null)return 2;if(11>a.S){var g=a.f.RGBA;g.fb+=(a.height-1)*g.A,g.A=-g.A}else g=a.f.kb,a=a.height,g.O+=(a-1)*g.fa,g.fa=-g.fa,g.N+=(a-1>>1)*g.Ab,g.Ab=-g.Ab,g.W+=(a-1>>1)*g.Db,g.Db=-g.Db,g.F!=null&&(g.J+=(a-1)*g.lb,g.lb=-g.lb);return 0}function du(a,g,O,oe){if(oe==null||0>=a||0>=g)return 2;if(O!=null){if(O.Da){var Ie=O.cd,Ve=O.bd,ze=-2&O.v,Je=-2&O.j;if(0>ze||0>Je||0>=Ie||0>=Ve||ze+Ie>a||Je+Ve>g)return 2;a=Ie,g=Ve}if(O.da){if(!Fn(a,g,Ie=[O.ib],Ve=[O.hb]))return 2;a=Ie[0],g=Ve[0]}}oe.width=a,oe.height=g;e:{var st=oe.width,mt=oe.height;if(a=oe.S,0>=st||0>=mt||!(a>=ko&&13>a))a=2;else{if(0>=oe.Rd&&oe.sd==null){ze=Ve=Ie=g=0;var Ot=(Je=st*hr[a])*mt;if(11>a||(Ve=(mt+1)/2*(g=(st+1)/2),a==12&&(ze=(Ie=st)*mt)),(mt=C(Ot+2*Ve+ze))==null){a=1;break e}oe.sd=mt,11>a?((st=oe.f.RGBA).eb=mt,st.fb=0,st.A=Je,st.size=Ot):((st=oe.f.kb).y=mt,st.O=0,st.fa=Je,st.Fd=Ot,st.f=mt,st.N=0+Ot,st.Ab=g,st.Cd=Ve,st.ea=mt,st.W=0+Ot+Ve,st.Db=g,st.Ed=Ve,a==12&&(st.F=mt,st.J=0+Ot+2*Ve),st.Tc=ze,st.lb=Ie)}if(g=1,Ie=oe.S,Ve=oe.width,ze=oe.height,Ie>=ko&&13>Ie)if(11>Ie)a=oe.f.RGBA,g&=(Je=Math.abs(a.A))*(ze-1)+Ve<=a.size,g&=Je>=Ve*hr[Ie],g&=a.eb!=null;else{a=oe.f.kb,Je=(Ve+1)/2,Ot=(ze+1)/2,st=Math.abs(a.fa),mt=Math.abs(a.Ab);var jt=Math.abs(a.Db),cr=Math.abs(a.lb),Wt=cr*(ze-1)+Ve;g&=st*(ze-1)+Ve<=a.Fd,g&=mt*(Ot-1)+Je<=a.Cd,g=(g&=jt*(Ot-1)+Je<=a.Ed)&st>=Ve&mt>=Je&jt>=Je,g&=a.y!=null,g&=a.f!=null,g&=a.ea!=null,Ie==12&&(g&=cr>=Ve,g&=Wt<=a.Tc,g&=a.F!=null)}else g=0;a=g?0:2}}return a!=0||O!=null&&O.fd&&(a=JA(oe)),a}var pl=64,Qc=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],YA=24,rs=32,Kc=8,tl=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Tr("Predictor0","PredictorAdd0"),Vt.Predictor0=function(){return 4278190080},Vt.Predictor1=function(a){return a},Vt.Predictor2=function(a,g,O){return g[O+0]},Vt.Predictor3=function(a,g,O){return g[O+1]},Vt.Predictor4=function(a,g,O){return g[O-1]},Vt.Predictor5=function(a,g,O){return wr(wr(a,g[O+1]),g[O+0])},Vt.Predictor6=function(a,g,O){return wr(a,g[O-1])},Vt.Predictor7=function(a,g,O){return wr(a,g[O+0])},Vt.Predictor8=function(a,g,O){return wr(g[O-1],g[O+0])},Vt.Predictor9=function(a,g,O){return wr(g[O+0],g[O+1])},Vt.Predictor10=function(a,g,O){return wr(wr(a,g[O-1]),wr(g[O+0],g[O+1]))},Vt.Predictor11=function(a,g,O){var oe=g[O+0];return 0>=Gn(oe>>24&255,a>>24&255,(g=g[O-1])>>24&255)+Gn(oe>>16&255,a>>16&255,g>>16&255)+Gn(oe>>8&255,a>>8&255,g>>8&255)+Gn(255&oe,255&a,255&g)?oe:a},Vt.Predictor12=function(a,g,O){var oe=g[O+0];return(Zr((a>>24&255)+(oe>>24&255)-((g=g[O-1])>>24&255))<<24|Zr((a>>16&255)+(oe>>16&255)-(g>>16&255))<<16|Zr((a>>8&255)+(oe>>8&255)-(g>>8&255))<<8|Zr((255&a)+(255&oe)-(255&g)))>>>0},Vt.Predictor13=function(a,g,O){var oe=g[O-1];return(Cn((a=wr(a,g[O+0]))>>24&255,oe>>24&255)<<24|Cn(a>>16&255,oe>>16&255)<<16|Cn(a>>8&255,oe>>8&255)<<8|Cn(a>>0&255,oe>>0&255))>>>0};var eA=Vt.PredictorAdd0;Vt.PredictorAdd1=Zn,Tr("Predictor2","PredictorAdd2"),Tr("Predictor3","PredictorAdd3"),Tr("Predictor4","PredictorAdd4"),Tr("Predictor5","PredictorAdd5"),Tr("Predictor6","PredictorAdd6"),Tr("Predictor7","PredictorAdd7"),Tr("Predictor8","PredictorAdd8"),Tr("Predictor9","PredictorAdd9"),Tr("Predictor10","PredictorAdd10"),Tr("Predictor11","PredictorAdd11"),Tr("Predictor12","PredictorAdd12"),Tr("Predictor13","PredictorAdd13");var rl=Vt.PredictorAdd2;Fi("ColorIndexInverseTransform","MapARGB","32b",function(a){return a>>8&255},function(a){return a}),Fi("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(a){return a},function(a){return a>>8&255});var Jl,ss=Vt.ColorIndexInverseTransform,Tl=Vt.MapARGB,lc=Vt.VP8LColorIndexInverseTransformAlpha,wc=Vt.MapAlpha,cc=Vt.VP8LPredictorsAdd=[];cc.length=16,(Vt.VP8LPredictors=[]).length=16,(Vt.VP8LPredictorsAdd_C=[]).length=16,(Vt.VP8LPredictors_C=[]).length=16;var Yl,cl,nl,xc,tA,rA,qA,uA,Ms,eu,Ul,Cc,fu,rd,ju,dA,Bc,Ac,uc,ql,fA,hA,hu,Sc,Ec,Jo,Ho,Us,Rs=C(511),Ua=C(2041),hi=C(225),ec=C(767),tu=0,Qs=Ua,zu=hi,ya=ec,Ao=Rs,ko=0,$u=1,pu=2,nd=3,DA=4,mu=5,ru=6,Zu=7,Al=8,gu=9,id=10,yn=[2,3,7],jo=[3,3,11],bd=[280,256,256,256,40],gf=[0,1,1,1,0],Zd=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],wd=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Vu=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ad=8,xd=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],vu=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ml=null,nu=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Ls=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],yu=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Cd=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],pA=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],gl=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],od=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],_c=[],Vs=[],nA=[],vf=1,bu=2,PA=[],dc=[];Xr("UpsampleRgbLinePair",co,3),Xr("UpsampleBgrLinePair",aa,3),Xr("UpsampleRgbaLinePair",Bl,4),Xr("UpsampleBgraLinePair",el,4),Xr("UpsampleArgbLinePair",hs,4),Xr("UpsampleRgba4444LinePair",Ts,2),Xr("UpsampleRgb565LinePair",bs,2);var yf=Vt.UpsampleRgbLinePair,Wu=Vt.UpsampleBgrLinePair,wu=Vt.UpsampleRgbaLinePair,sd=Vt.UpsampleBgraLinePair,NA=Vt.UpsampleArgbLinePair,mA=Vt.UpsampleRgba4444LinePair,bf=Vt.UpsampleRgb565LinePair,Gu=16,xu=1<<Gu-1,Cu=-227,Bd=482,Vd=6,wf=(256<<Vd)-1,Wd=0,p=C(256),u=C(256),y=C(256),v=C(256),ie=C(Bd-Cu),Fe=C(Bd-Cu);Xl("YuvToRgbRow",co,3),Xl("YuvToBgrRow",aa,3),Xl("YuvToRgbaRow",Bl,4),Xl("YuvToBgraRow",el,4),Xl("YuvToArgbRow",hs,4),Xl("YuvToRgba4444Row",Ts,2),Xl("YuvToRgb565Row",bs,2);var tt=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],xt=[0,2,8],Bt=[8,7,6,4,4,2,2,2,1,1,1,1],nr=1;this.WebPDecodeRGBA=function(a,g,O,oe,Ie){var Ve=$u,ze=new oc,Je=new fi;ze.ba=Je,Je.S=Ve,Je.width=[Je.width],Je.height=[Je.height];var st=Je.width,mt=Je.height,Ot=new gi;if(Ot==null||a==null)var jt=2;else o(Ot!=null),jt=XA(a,g,O,Ot.width,Ot.height,Ot.Pd,Ot.Qd,Ot.format,null);if(jt!=0?st=0:(st!=null&&(st[0]=Ot.width[0]),mt!=null&&(mt[0]=Ot.height[0]),st=1),st){Je.width=Je.width[0],Je.height=Je.height[0],oe!=null&&(oe[0]=Je.width),Ie!=null&&(Ie[0]=Je.height);e:{if(oe=new Xc,(Ie=new Ku).data=a,Ie.w=g,Ie.ha=O,Ie.kd=1,g=[0],o(Ie!=null),((a=XA(Ie.data,Ie.w,Ie.ha,null,null,null,g,null,Ie))==0||a==7)&&g[0]&&(a=4),(g=a)==0){if(o(ze!=null),oe.data=Ie.data,oe.w=Ie.w+Ie.offset,oe.ha=Ie.ha-Ie.offset,oe.put=qi,oe.ac=Gi,oe.bc=Mo,oe.ma=ze,Ie.xa){if((a=bo())==null){ze=1;break e}if(function(cr,Wt){var Nr=[0],Or=[0],Gt=[0];t:for(;;){if(cr==null)return 0;if(Wt==null)return cr.a=2,0;if(cr.l=Wt,cr.a=0,Ke(cr.m,Wt.data,Wt.w,Wt.ha),!Ii(cr.m,Nr,Or,Gt)){cr.a=3;break t}if(cr.xb=bu,Wt.width=Nr[0],Wt.height=Or[0],!Ko(Nr[0],Or[0],1,cr,null))break t;return 1}return o(cr.a!=0),0}(a,oe)){if(oe=(g=du(oe.width,oe.height,ze.Oa,ze.ba))==0){t:{oe=a;r:for(;;){if(oe==null){oe=0;break t}if(o(oe.s.yc!=null),o(oe.s.Ya!=null),o(0<oe.s.Wb),o((O=oe.l)!=null),o((Ie=O.ma)!=null),oe.xb!=0){if(oe.ca=Ie.ba,oe.tb=Ie.tb,o(oe.ca!=null),!kA(Ie.Oa,O,nd)){oe.a=2;break r}if(!Bs(oe,O.width)||O.da)break r;if((O.da||Wi(oe.ca.S))&&br(),11>oe.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),oe.ca.f.kb.F!=null&&br()),oe.Pb&&0<oe.s.ua&&oe.s.vb.X==null&&!dn(oe.s.vb,oe.s.Wa.Xa)){oe.a=1;break r}oe.xb=0}if(!Va(oe,oe.V,oe.Ba,oe.c,oe.i,O.o,ga))break r;Ie.Dc=oe.Ma,oe=1;break t}o(oe.a!=0),oe=0}oe=!oe}oe&&(g=a.a)}else g=a.a}else{if((a=new xa)==null){ze=1;break e}if(a.Fa=Ie.na,a.P=Ie.P,a.qc=Ie.Sa,go(a,oe)){if((g=du(oe.width,oe.height,ze.Oa,ze.ba))==0){if(a.Aa=0,O=ze.Oa,o((Ie=a)!=null),O!=null){if(0<(st=0>(st=O.Md)?0:100<st?255:255*st/100)){for(mt=Ot=0;4>mt;++mt)12>(jt=Ie.pb[mt]).lc&&(jt.ia=st*Bt[0>jt.lc?0:jt.lc]>>3),Ot|=jt.ia;Ot&&(alert("todo:VP8InitRandom"),Ie.ia=1)}Ie.Ga=O.Id,100<Ie.Ga?Ie.Ga=100:0>Ie.Ga&&(Ie.Ga=0)}Es(a,oe)||(g=a.a)}}else g=a.a}g==0&&ze.Oa!=null&&ze.Oa.fd&&(g=JA(ze.ba))}ze=g}Ve=ze!=0?null:11>Ve?Je.f.RGBA.eb:Je.f.kb.y}else Ve=null;return Ve};var hr=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function _e(Vt,Pr){for(var Jr="",vt=0;vt<4;vt++)Jr+=String.fromCharCode(Vt[Pr++]);return Jr}function $e(Vt,Pr){return(Vt[Pr+0]<<0|Vt[Pr+1]<<8|Vt[Pr+2]<<16)>>>0}function Ze(Vt,Pr){return(Vt[Pr+0]<<0|Vt[Pr+1]<<8|Vt[Pr+2]<<16|Vt[Pr+3]<<24)>>>0}new ae;var at=[0],ye=[0],kt=[],wt=new ae,Dt=c,ht=function(Vt,Pr){var Jr={},vt=0,Ct=!1,rr=0,U=0;if(Jr.frames=[],!function(Re,Ye,et,bt){for(var _t=0;_t<bt;_t++)if(Re[Ye+_t]!=et.charCodeAt(_t))return!0;return!1}(Vt,Pr,"RIFF",4)){for(Ze(Vt,Pr+=4),Pr+=8;Pr<Vt.length;){var re=_e(Vt,Pr),Se=Ze(Vt,Pr+=4);Pr+=4;var Ue=Se+(1&Se);switch(re){case"VP8 ":case"VP8L":Jr.frames[vt]===void 0&&(Jr.frames[vt]={}),(dt=Jr.frames[vt]).src_off=Ct?U:Pr-8,dt.src_size=rr+Se+8,vt++,Ct&&(Ct=!1,rr=0,U=0);break;case"VP8X":(dt=Jr.header={}).feature_flags=Vt[Pr];var Ke=Pr+4;dt.canvas_width=1+$e(Vt,Ke),Ke+=3,dt.canvas_height=1+$e(Vt,Ke),Ke+=3;break;case"ALPH":Ct=!0,rr=Ue+8,U=Pr-8;break;case"ANIM":(dt=Jr.header).bgcolor=Ze(Vt,Pr),Ke=Pr+4,dt.loop_count=(St=Vt)[(le=Ke)+0]<<0|St[le+1]<<8,Ke+=2;break;case"ANMF":var Xe,dt;(dt=Jr.frames[vt]={}).offset_x=2*$e(Vt,Pr),Pr+=3,dt.offset_y=2*$e(Vt,Pr),Pr+=3,dt.width=1+$e(Vt,Pr),Pr+=3,dt.height=1+$e(Vt,Pr),Pr+=3,dt.duration=$e(Vt,Pr),Pr+=3,Xe=Vt[Pr++],dt.dispose=1&Xe,dt.blend=Xe>>1&1}re!="ANMF"&&(Pr+=Ue)}var St,le;return Jr}}(Dt,0);ht.response=Dt,ht.rgbaoutput=!0,ht.dataurl=!1;var Pt=ht.header?ht.header:null,ar=ht.frames?ht.frames:null;if(Pt){Pt.loop_counter=Pt.loop_count,at=[Pt.canvas_height],ye=[Pt.canvas_width];for(var xr=0;xr<ar.length&&ar[xr].blend!=0;xr++);}var Kr=ar[0],hn=wt.WebPDecodeRGBA(Dt,Kr.src_off,Kr.src_size,ye,at);Kr.rgba=hn,Kr.imgwidth=ye[0],Kr.imgheight=at[0];for(var Ir=0;Ir<ye[0]*at[0]*4;Ir++)kt[Ir]=hn[Ir];return this.width=ye,this.height=at,this.data=kt,this}(function(c){var o=function(){return typeof ki=="function"},l=function(at,ye,kt,wt){var Dt=4,ht=T;switch(wt){case c.image_compression.FAST:Dt=1,ht=C;break;case c.image_compression.MEDIUM:Dt=6,ht=Z;break;case c.image_compression.SLOW:Dt=9,ht=ae}at=b(at,ye,kt,ht);var Pt=ki(at,{level:Dt});return c.__addimage__.arrayBufferToBinaryString(Pt)},b=function(at,ye,kt,wt){for(var Dt,ht,Pt,ar=at.length/ye,xr=new Uint8Array(at.length+ar),Kr=$e(),hn=0;hn<ar;hn+=1){if(Pt=hn*ye,Dt=at.subarray(Pt,Pt+ye),wt)xr.set(wt(Dt,kt,ht),Pt+hn);else{for(var Ir,Vt=Kr.length,Pr=[];Ir<Vt;Ir+=1)Pr[Ir]=Kr[Ir](Dt,kt,ht);var Jr=Ze(Pr.concat());xr.set(Pr[Jr],Pt+hn)}ht=Dt}return xr},F=function(at){var ye=Array.apply([],at);return ye.unshift(0),ye},C=function(at,ye){var kt,wt=[],Dt=at.length;wt[0]=1;for(var ht=0;ht<Dt;ht+=1)kt=at[ht-ye]||0,wt[ht+1]=at[ht]-kt+256&255;return wt},T=function(at,ye,kt){var wt,Dt=[],ht=at.length;Dt[0]=2;for(var Pt=0;Pt<ht;Pt+=1)wt=kt&&kt[Pt]||0,Dt[Pt+1]=at[Pt]-wt+256&255;return Dt},Z=function(at,ye,kt){var wt,Dt,ht=[],Pt=at.length;ht[0]=3;for(var ar=0;ar<Pt;ar+=1)wt=at[ar-ye]||0,Dt=kt&&kt[ar]||0,ht[ar+1]=at[ar]+256-(wt+Dt>>>1)&255;return ht},ae=function(at,ye,kt){var wt,Dt,ht,Pt,ar=[],xr=at.length;ar[0]=4;for(var Kr=0;Kr<xr;Kr+=1)wt=at[Kr-ye]||0,Dt=kt&&kt[Kr]||0,ht=kt&&kt[Kr-ye]||0,Pt=_e(wt,Dt,ht),ar[Kr+1]=at[Kr]-Pt+256&255;return ar},_e=function(at,ye,kt){if(at===ye&&ye===kt)return at;var wt=Math.abs(ye-kt),Dt=Math.abs(at-kt),ht=Math.abs(at+ye-kt-kt);return wt<=Dt&&wt<=ht?at:Dt<=ht?ye:kt},$e=function(){return[F,C,T,Z,ae]},Ze=function(at){var ye=at.map(function(kt){return kt.reduce(function(wt,Dt){return wt+Math.abs(Dt)},0)});return ye.indexOf(Math.min.apply(null,ye))};c.processPNG=function(at,ye,kt,wt){var Dt,ht,Pt,ar,xr,Kr,hn,Ir,Vt,Pr,Jr,vt,Ct,rr,U,re=this.decode.FLATE_DECODE,Se="";if(this.__addimage__.isArrayBuffer(at)&&(at=new Uint8Array(at)),this.__addimage__.isArrayBufferView(at)){if(at=(Pt=new cA(at)).imgData,ht=Pt.bits,Dt=Pt.colorSpace,xr=Pt.colors,[4,6].indexOf(Pt.colorType)!==-1){if(Pt.bits===8){Vt=(Ir=Pt.pixelBitlength==32?new Uint32Array(Pt.decodePixels().buffer):Pt.pixelBitlength==16?new Uint16Array(Pt.decodePixels().buffer):new Uint8Array(Pt.decodePixels().buffer)).length,Jr=new Uint8Array(Vt*Pt.colors),Pr=new Uint8Array(Vt);var Ue,Ke=Pt.pixelBitlength-Pt.bits;for(rr=0,U=0;rr<Vt;rr++){for(Ct=Ir[rr],Ue=0;Ue<Ke;)Jr[U++]=Ct>>>Ue&255,Ue+=Pt.bits;Pr[rr]=Ct>>>Ue&255}}if(Pt.bits===16){Vt=(Ir=new Uint32Array(Pt.decodePixels().buffer)).length,Jr=new Uint8Array(Vt*(32/Pt.pixelBitlength)*Pt.colors),Pr=new Uint8Array(Vt*(32/Pt.pixelBitlength)),vt=Pt.colors>1,rr=0,U=0;for(var Xe=0;rr<Vt;)Ct=Ir[rr++],Jr[U++]=Ct>>>0&255,vt&&(Jr[U++]=Ct>>>16&255,Ct=Ir[rr++],Jr[U++]=Ct>>>0&255),Pr[Xe++]=Ct>>>16&255;ht=8}wt!==c.image_compression.NONE&&o()?(at=l(Jr,Pt.width*Pt.colors,Pt.colors,wt),hn=l(Pr,Pt.width,1,wt)):(at=Jr,hn=Pr,re=void 0)}if(Pt.colorType===3&&(Dt=this.color_spaces.INDEXED,Kr=Pt.palette,Pt.transparency.indexed)){var dt=Pt.transparency.indexed,St=0;for(rr=0,Vt=dt.length;rr<Vt;++rr)St+=dt[rr];if((St/=255)===Vt-1&&dt.indexOf(0)!==-1)ar=[dt.indexOf(0)];else if(St!==Vt){for(Ir=Pt.decodePixels(),Pr=new Uint8Array(Ir.length),rr=0,Vt=Ir.length;rr<Vt;rr++)Pr[rr]=dt[Ir[rr]];hn=l(Pr,Pt.width,1)}}var le=function(Re){var Ye;switch(Re){case c.image_compression.FAST:Ye=11;break;case c.image_compression.MEDIUM:Ye=13;break;case c.image_compression.SLOW:Ye=14;break;default:Ye=12}return Ye}(wt);return re===this.decode.FLATE_DECODE&&(Se="/Predictor "+le+" "),Se+="/Colors "+xr+" /BitsPerComponent "+ht+" /Columns "+Pt.width,(this.__addimage__.isArrayBuffer(at)||this.__addimage__.isArrayBufferView(at))&&(at=this.__addimage__.arrayBufferToBinaryString(at)),(hn&&this.__addimage__.isArrayBuffer(hn)||this.__addimage__.isArrayBufferView(hn))&&(hn=this.__addimage__.arrayBufferToBinaryString(hn)),{alias:kt,data:at,index:ye,filter:re,decodeParameters:Se,transparency:ar,palette:Kr,sMask:hn,predictor:le,width:Pt.width,height:Pt.height,bitsPerComponent:ht,colorSpace:Dt}}}})(Ai.API),function(c){c.processGIF89A=function(o,l,b,F){var C=new hc(o),T=C.width,Z=C.height,ae=[];C.decodeAndBlitFrameRGBA(0,ae);var _e={data:ae,width:T,height:Z},$e=new Pl(100).encode(_e,100);return c.processJPEG.call(this,$e,l,b,F)},c.processGIF87A=c.processGIF89A}(Ai.API),Ys.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var c=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(c);for(var o=0;o<c;o++){var l=this.datav.getUint8(this.pos++,!0),b=this.datav.getUint8(this.pos++,!0),F=this.datav.getUint8(this.pos++,!0),C=this.datav.getUint8(this.pos++,!0);this.palette[o]={red:F,green:b,blue:l,quad:C}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Ys.prototype.parseBGR=function(){this.pos=this.offset;try{var c="bit"+this.bitPP,o=this.width*this.height*4;this.data=new Uint8Array(o),this[c]()}catch(l){Ln.log("bit decode error:"+l)}},Ys.prototype.bit1=function(){var c,o=Math.ceil(this.width/8),l=o%4;for(c=this.height-1;c>=0;c--){for(var b=this.bottom_up?c:this.height-1-c,F=0;F<o;F++)for(var C=this.datav.getUint8(this.pos++,!0),T=b*this.width*4+8*F*4,Z=0;Z<8&&8*F+Z<this.width;Z++){var ae=this.palette[C>>7-Z&1];this.data[T+4*Z]=ae.blue,this.data[T+4*Z+1]=ae.green,this.data[T+4*Z+2]=ae.red,this.data[T+4*Z+3]=255}l!==0&&(this.pos+=4-l)}},Ys.prototype.bit4=function(){for(var c=Math.ceil(this.width/2),o=c%4,l=this.height-1;l>=0;l--){for(var b=this.bottom_up?l:this.height-1-l,F=0;F<c;F++){var C=this.datav.getUint8(this.pos++,!0),T=b*this.width*4+2*F*4,Z=C>>4,ae=15&C,_e=this.palette[Z];if(this.data[T]=_e.blue,this.data[T+1]=_e.green,this.data[T+2]=_e.red,this.data[T+3]=255,2*F+1>=this.width)break;_e=this.palette[ae],this.data[T+4]=_e.blue,this.data[T+4+1]=_e.green,this.data[T+4+2]=_e.red,this.data[T+4+3]=255}o!==0&&(this.pos+=4-o)}},Ys.prototype.bit8=function(){for(var c=this.width%4,o=this.height-1;o>=0;o--){for(var l=this.bottom_up?o:this.height-1-o,b=0;b<this.width;b++){var F=this.datav.getUint8(this.pos++,!0),C=l*this.width*4+4*b;if(F<this.palette.length){var T=this.palette[F];this.data[C]=T.red,this.data[C+1]=T.green,this.data[C+2]=T.blue,this.data[C+3]=255}else this.data[C]=255,this.data[C+1]=255,this.data[C+2]=255,this.data[C+3]=255}c!==0&&(this.pos+=4-c)}},Ys.prototype.bit15=function(){for(var c=this.width%3,o=parseInt("11111",2),l=this.height-1;l>=0;l--){for(var b=this.bottom_up?l:this.height-1-l,F=0;F<this.width;F++){var C=this.datav.getUint16(this.pos,!0);this.pos+=2;var T=(C&o)/o*255|0,Z=(C>>5&o)/o*255|0,ae=(C>>10&o)/o*255|0,_e=C>>15?255:0,$e=b*this.width*4+4*F;this.data[$e]=ae,this.data[$e+1]=Z,this.data[$e+2]=T,this.data[$e+3]=_e}this.pos+=c}},Ys.prototype.bit16=function(){for(var c=this.width%3,o=parseInt("11111",2),l=parseInt("111111",2),b=this.height-1;b>=0;b--){for(var F=this.bottom_up?b:this.height-1-b,C=0;C<this.width;C++){var T=this.datav.getUint16(this.pos,!0);this.pos+=2;var Z=(T&o)/o*255|0,ae=(T>>5&l)/l*255|0,_e=(T>>11)/o*255|0,$e=F*this.width*4+4*C;this.data[$e]=_e,this.data[$e+1]=ae,this.data[$e+2]=Z,this.data[$e+3]=255}this.pos+=c}},Ys.prototype.bit24=function(){for(var c=this.height-1;c>=0;c--){for(var o=this.bottom_up?c:this.height-1-c,l=0;l<this.width;l++){var b=this.datav.getUint8(this.pos++,!0),F=this.datav.getUint8(this.pos++,!0),C=this.datav.getUint8(this.pos++,!0),T=o*this.width*4+4*l;this.data[T]=C,this.data[T+1]=F,this.data[T+2]=b,this.data[T+3]=255}this.pos+=this.width%4}},Ys.prototype.bit32=function(){for(var c=this.height-1;c>=0;c--)for(var o=this.bottom_up?c:this.height-1-c,l=0;l<this.width;l++){var b=this.datav.getUint8(this.pos++,!0),F=this.datav.getUint8(this.pos++,!0),C=this.datav.getUint8(this.pos++,!0),T=this.datav.getUint8(this.pos++,!0),Z=o*this.width*4+4*l;this.data[Z]=C,this.data[Z+1]=F,this.data[Z+2]=b,this.data[Z+3]=T}},Ys.prototype.getData=function(){return this.data},function(c){c.processBMP=function(o,l,b,F){var C=new Ys(o,!1),T=C.width,Z=C.height,ae={data:C.getData(),width:T,height:Z},_e=new Pl(100).encode(ae,100);return c.processJPEG.call(this,_e,l,b,F)}}(Ai.API),ol.prototype.getData=function(){return this.data},function(c){c.processWEBP=function(o,l,b,F){var C=new ol(o),T=C.width,Z=C.height,ae={data:C.getData(),width:T,height:Z},_e=new Pl(100).encode(ae,100);return c.processJPEG.call(this,_e,l,b,F)}}(Ai.API),Ai.API.processRGBA=function(c,o,l){for(var b=c.data,F=b.length,C=new Uint8Array(F/4*3),T=new Uint8Array(F/4),Z=0,ae=0,_e=0;_e<F;_e+=4){var $e=b[_e],Ze=b[_e+1],at=b[_e+2],ye=b[_e+3];C[Z++]=$e,C[Z++]=Ze,C[Z++]=at,T[ae++]=ye}var kt=this.__addimage__.arrayBufferToBinaryString(C);return{alpha:this.__addimage__.arrayBufferToBinaryString(T),data:kt,index:o,alias:l,colorSpace:"DeviceRGB",bitsPerComponent:8,width:c.width,height:c.height}},Ai.API.setLanguage=function(c){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[c]!==void 0&&(this.internal.languageSettings.languageCode=c,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},al=Ai.API,Wc=al.getCharWidthsArray=function(c,o){var l,b,F=(o=o||{}).font||this.internal.getFont(),C=o.fontSize||this.internal.getFontSize(),T=o.charSpace||this.internal.getCharSpace(),Z=o.widths?o.widths:F.metadata.Unicode.widths,ae=Z.fof?Z.fof:1,_e=o.kerning?o.kerning:F.metadata.Unicode.kerning,$e=_e.fof?_e.fof:1,Ze=o.doKerning!==!1,at=0,ye=c.length,kt=0,wt=Z[0]||ae,Dt=[];for(l=0;l<ye;l++)b=c.charCodeAt(l),typeof F.metadata.widthOfString=="function"?Dt.push((F.metadata.widthOfGlyph(F.metadata.characterToGlyph(b))+T*(1e3/C)||0)/1e3):(at=Ze&&(0,pe.Z)(_e[b])==="object"&&!isNaN(parseInt(_e[b][kt],10))?_e[b][kt]/$e:0,Dt.push((Z[b]||wt)/ae+at)),kt=b;return Dt},Dl=al.getStringUnitWidth=function(c,o){var l=(o=o||{}).fontSize||this.internal.getFontSize(),b=o.font||this.internal.getFont(),F=o.charSpace||this.internal.getCharSpace();return al.processArabic&&(c=al.processArabic(c)),typeof b.metadata.widthOfString=="function"?b.metadata.widthOfString(c,l,F)/l:Wc.apply(this,arguments).reduce(function(C,T){return C+T},0)},Js=function(c,o,l,b){for(var F=[],C=0,T=c.length,Z=0;C!==T&&Z+o[C]<l;)Z+=o[C],C++;F.push(c.slice(0,C));var ae=C;for(Z=0;C!==T;)Z+o[C]>b&&(F.push(c.slice(ae,C)),Z=0,ae=C),Z+=o[C],C++;return ae!==C&&F.push(c.slice(ae,C)),F},lA=function(c,o,l){l||(l={});var b,F,C,T,Z,ae,_e,$e=[],Ze=[$e],at=l.textIndent||0,ye=0,kt=0,wt=c.split(" "),Dt=Wc.apply(this,[" ",l])[0];if(ae=l.lineIndent===-1?wt[0].length+2:l.lineIndent||0){var ht=Array(ae).join(" "),Pt=[];wt.map(function(xr){(xr=xr.split(/\s*\n/)).length>1?Pt=Pt.concat(xr.map(function(Kr,hn){return(hn&&Kr.length?`
|
|
|
`:"")+Kr})):Pt.push(xr[0])}),wt=Pt,ae=Dl.apply(this,[ht,l])}for(C=0,T=wt.length;C<T;C++){var ar=0;if(b=wt[C],ae&&b[0]==`
|
|
|
`&&(b=b.substr(1),ar=1),at+ye+(kt=(F=Wc.apply(this,[b,l])).reduce(function(xr,Kr){return xr+Kr},0))>o||ar){if(kt>o){for(Z=Js.apply(this,[b,F,o-(at+ye),o]),$e.push(Z.shift()),$e=[Z.pop()];Z.length;)Ze.push([Z.shift()]);kt=F.slice(b.length-($e[0]?$e[0].length:0)).reduce(function(xr,Kr){return xr+Kr},0)}else $e=[b];Ze.push($e),at=kt+ae,ye=Dt}else $e.push(b),at+=ye+kt,ye=Dt}return _e=ae?function(xr,Kr){return(Kr?ht:"")+xr.join(" ")}:function(xr){return xr.join(" ")},Ze.map(_e)},al.splitTextToSize=function(c,o,l){var b,F=(l=l||{}).fontSize||this.internal.getFontSize(),C=function($e){if($e.widths&&$e.kerning)return{widths:$e.widths,kerning:$e.kerning};var Ze=this.internal.getFont($e.fontName,$e.fontStyle);return Ze.metadata.Unicode?{widths:Ze.metadata.Unicode.widths||{0:1},kerning:Ze.metadata.Unicode.kerning||{}}:{font:Ze.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,l);b=Array.isArray(c)?c:String(c).split(/\r?\n/);var T=1*this.internal.scaleFactor*o/F;C.textIndent=l.textIndent?1*l.textIndent*this.internal.scaleFactor/F:0,C.lineIndent=l.lineIndent;var Z,ae,_e=[];for(Z=0,ae=b.length;Z<ae;Z++)_e=_e.concat(lA.apply(this,[b[Z],T,C]));return _e},function(c){c.__fontmetrics__=c.__fontmetrics__||{};for(var o="klmnopqrstuvwxyz",l={},b={},F=0;F<o.length;F++)l[o[F]]="0123456789abcdef"[F],b["0123456789abcdef"[F]]=o[F];var C=function(Ze){return"0x"+parseInt(Ze,10).toString(16)},T=c.__fontmetrics__.compress=function(Ze){var at,ye,kt,wt,Dt=["{"];for(var ht in Ze){if(at=Ze[ht],isNaN(parseInt(ht,10))?ye="'"+ht+"'":(ht=parseInt(ht,10),ye=(ye=C(ht).slice(2)).slice(0,-1)+b[ye.slice(-1)]),typeof at=="number")at<0?(kt=C(at).slice(3),wt="-"):(kt=C(at).slice(2),wt=""),kt=wt+kt.slice(0,-1)+b[kt.slice(-1)];else{if((0,pe.Z)(at)!=="object")throw new Error("Don't know what to do with value type "+(0,pe.Z)(at)+".");kt=T(at)}Dt.push(ye+kt)}return Dt.push("}"),Dt.join("")},Z=c.__fontmetrics__.uncompress=function(Ze){if(typeof Ze!="string")throw new Error("Invalid argument passed to uncompress.");for(var at,ye,kt,wt,Dt={},ht=1,Pt=Dt,ar=[],xr="",Kr="",hn=Ze.length-1,Ir=1;Ir<hn;Ir+=1)(wt=Ze[Ir])=="'"?at?(kt=at.join(""),at=void 0):at=[]:at?at.push(wt):wt=="{"?(ar.push([Pt,kt]),Pt={},kt=void 0):wt=="}"?((ye=ar.pop())[0][ye[1]]=Pt,kt=void 0,Pt=ye[0]):wt=="-"?ht=-1:kt===void 0?l.hasOwnProperty(wt)?(xr+=l[wt],kt=parseInt(xr,16)*ht,ht=1,xr=""):xr+=wt:l.hasOwnProperty(wt)?(Kr+=l[wt],Pt[kt]=parseInt(Kr,16)*ht,ht=1,kt=void 0,Kr=""):Kr+=wt;return Dt},ae={codePages:["WinAnsiEncoding"],WinAnsiEncoding:Z("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},_e={Unicode:{Courier:ae,"Courier-Bold":ae,"Courier-BoldOblique":ae,"Courier-Oblique":ae,Helvetica:ae,"Helvetica-Bold":ae,"Helvetica-BoldOblique":ae,"Helvetica-Oblique":ae,"Times-Roman":ae,"Times-Bold":ae,"Times-BoldItalic":ae,"Times-Italic":ae}},$e={Unicode:{"Courier-Oblique":Z("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":Z("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":Z("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:Z("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":Z("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":Z("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:Z("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:Z("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":Z("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:Z("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":Z("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":Z("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":Z("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":Z("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};c.events.push(["addFont",function(Ze){var at=Ze.font,ye=$e.Unicode[at.postScriptName];ye&&(at.metadata.Unicode={},at.metadata.Unicode.widths=ye.widths,at.metadata.Unicode.kerning=ye.kerning);var kt=_e.Unicode[at.postScriptName];kt&&(at.metadata.Unicode.encoding=kt,at.encoding=kt.codePages[0])}])}(Ai.API),function(c){var o=function(l){for(var b=l.length,F=new Uint8Array(b),C=0;C<b;C++)F[C]=l.charCodeAt(C);return F};c.API.events.push(["addFont",function(l){var b=void 0,F=l.font,C=l.instance;if(!F.isStandardFont){if(C===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+F.postScriptName+"').");if(typeof(b=C.existsFileInVFS(F.postScriptName)===!1?C.loadFile(F.postScriptName):C.getFileFromVFS(F.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+F.postScriptName+"').");(function(T,Z){Z=/^\x00\x01\x00\x00/.test(Z)?o(Z):o(Xn(Z)),T.metadata=c.API.TTFFont.open(Z),T.metadata.Unicode=T.metadata.Unicode||{encoding:{},kerning:{},widths:[]},T.metadata.glyIdsUsed=[0]})(F,b)}}])}(Ai),function(c){function o(){return(on.canvg?Promise.resolve(on.canvg):w.e(3754).then(w.bind(w,63754))).catch(function(l){return Promise.reject(new Error("Could not load canvg: "+l))}).then(function(l){return l.default?l.default:l})}Ai.API.addSvgAsImage=function(l,b,F,C,T,Z,ae,_e){if(isNaN(b)||isNaN(F))throw Ln.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(C)||isNaN(T))throw Ln.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var $e=document.createElement("canvas");$e.width=C,$e.height=T;var Ze=$e.getContext("2d");Ze.fillStyle="#fff",Ze.fillRect(0,0,$e.width,$e.height);var at={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},ye=this;return o().then(function(kt){return kt.fromString(Ze,l,at)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(kt){return kt.render(at)}).then(function(){ye.addImage($e.toDataURL("image/jpeg",1),b,F,C,T,ae,_e)})}}(),Ai.API.putTotalPages=function(c){var o,l=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(o=new RegExp(c,"g"),l=this.internal.getNumberOfPages()):(o=new RegExp(this.pdfEscape16(c,this.internal.getFont()),"g"),l=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var b=1;b<=this.internal.getNumberOfPages();b++)for(var F=0;F<this.internal.pages[b].length;F++)this.internal.pages[b][F]=this.internal.pages[b][F].replace(o,l);return this},Ai.API.viewerPreferences=function(c,o){var l;c=c||{},o=o||!1;var b,F,C,T={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},Z=Object.keys(T),ae=[],_e=0,$e=0,Ze=0;function at(kt,wt){var Dt,ht=!1;for(Dt=0;Dt<kt.length;Dt+=1)kt[Dt]===wt&&(ht=!0);return ht}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(T)),this.internal.viewerpreferences.isSubscribed=!1),l=this.internal.viewerpreferences.configuration,c==="reset"||o===!0){var ye=Z.length;for(Ze=0;Ze<ye;Ze+=1)l[Z[Ze]].value=l[Z[Ze]].defaultValue,l[Z[Ze]].explicitSet=!1}if((0,pe.Z)(c)==="object"){for(F in c)if(C=c[F],at(Z,F)&&C!==void 0){if(l[F].type==="boolean"&&typeof C=="boolean")l[F].value=C;else if(l[F].type==="name"&&at(l[F].valueSet,C))l[F].value=C;else if(l[F].type==="integer"&&Number.isInteger(C))l[F].value=C;else if(l[F].type==="array"){for(_e=0;_e<C.length;_e+=1)if(b=!0,C[_e].length===1&&typeof C[_e][0]=="number")ae.push(String(C[_e]-1));else if(C[_e].length>1){for($e=0;$e<C[_e].length;$e+=1)typeof C[_e][$e]!="number"&&(b=!1);b===!0&&ae.push([C[_e][0]-1,C[_e][1]-1].join(" "))}l[F].value="["+ae.join(" ")+"]"}else l[F].value=l[F].defaultValue;l[F].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var kt,wt=[];for(kt in l)l[kt].explicitSet===!0&&(l[kt].type==="name"?wt.push("/"+kt+" /"+l[kt].value):wt.push("/"+kt+" "+l[kt].value));wt.length!==0&&this.internal.write(`/ViewerPreferences
|
|
|
<<
|
|
|
`+wt.join(`
|
|
|
`)+`
|
|
|
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=l,this},function(c){var o=function(){var b='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',F=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),C=unescape(encodeURIComponent(b)),T=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),Z=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),ae=unescape(encodeURIComponent("</x:xmpmeta>")),_e=C.length+T.length+Z.length+F.length+ae.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+_e+" >>"),this.internal.write("stream"),this.internal.write(F+C+T+Z+ae),this.internal.write("endstream"),this.internal.write("endobj")},l=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};c.addMetadata=function(b,F){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:b,namespaceuri:F||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",l),this.internal.events.subscribe("postPutResources",o)),this}}(Ai.API),function(c){var o=c.API,l=o.pdfEscape16=function(C,T){for(var Z,ae=T.metadata.Unicode.widths,_e=["","0","00","000","0000"],$e=[""],Ze=0,at=C.length;Ze<at;++Ze){if(Z=T.metadata.characterToGlyph(C.charCodeAt(Ze)),T.metadata.glyIdsUsed.push(Z),T.metadata.toUnicode[Z]=C.charCodeAt(Ze),ae.indexOf(Z)==-1&&(ae.push(Z),ae.push([parseInt(T.metadata.widthOfGlyph(Z),10)])),Z=="0")return $e.join("");Z=Z.toString(16),$e.push(_e[4-Z.length],Z)}return $e.join("")},b=function(C){var T,Z,ae,_e,$e,Ze,at;for($e=`/CIDInit /ProcSet findresource begin
|
|
|
12 dict begin
|
|
|
begincmap
|
|
|
/CIDSystemInfo <<
|
|
|
/Registry (Adobe)
|
|
|
/Ordering (UCS)
|
|
|
/Supplement 0
|
|
|
>> def
|
|
|
/CMapName /Adobe-Identity-UCS def
|
|
|
/CMapType 2 def
|
|
|
1 begincodespacerange
|
|
|
<0000><ffff>
|
|
|
endcodespacerange`,ae=[],Ze=0,at=(Z=Object.keys(C).sort(function(ye,kt){return ye-kt})).length;Ze<at;Ze++)T=Z[Ze],ae.length>=100&&($e+=`
|
|
|
`+ae.length+` beginbfchar
|
|
|
`+ae.join(`
|
|
|
`)+`
|
|
|
endbfchar`,ae=[]),C[T]!==void 0&&C[T]!==null&&typeof C[T].toString=="function"&&(_e=("0000"+C[T].toString(16)).slice(-4),T=("0000"+(+T).toString(16)).slice(-4),ae.push("<"+T+"><"+_e+">"));return ae.length&&($e+=`
|
|
|
`+ae.length+` beginbfchar
|
|
|
`+ae.join(`
|
|
|
`)+`
|
|
|
endbfchar
|
|
|
`),$e+=`endcmap
|
|
|
CMapName currentdict /CMap defineresource pop
|
|
|
end
|
|
|
end`};o.events.push(["putFont",function(C){(function(T){var Z=T.font,ae=T.out,_e=T.newObject,$e=T.putStream;if(Z.metadata instanceof c.API.TTFFont&&Z.encoding==="Identity-H"){for(var Ze=Z.metadata.Unicode.widths,at=Z.metadata.subset.encode(Z.metadata.glyIdsUsed,1),ye="",kt=0;kt<at.length;kt++)ye+=String.fromCharCode(at[kt]);var wt=_e();$e({data:ye,addLength1:!0,objectId:wt}),ae("endobj");var Dt=_e();$e({data:b(Z.metadata.toUnicode),addLength1:!0,objectId:Dt}),ae("endobj");var ht=_e();ae("<<"),ae("/Type /FontDescriptor"),ae("/FontName /"+$i(Z.fontName)),ae("/FontFile2 "+wt+" 0 R"),ae("/FontBBox "+c.API.PDFObject.convert(Z.metadata.bbox)),ae("/Flags "+Z.metadata.flags),ae("/StemV "+Z.metadata.stemV),ae("/ItalicAngle "+Z.metadata.italicAngle),ae("/Ascent "+Z.metadata.ascender),ae("/Descent "+Z.metadata.decender),ae("/CapHeight "+Z.metadata.capHeight),ae(">>"),ae("endobj");var Pt=_e();ae("<<"),ae("/Type /Font"),ae("/BaseFont /"+$i(Z.fontName)),ae("/FontDescriptor "+ht+" 0 R"),ae("/W "+c.API.PDFObject.convert(Ze)),ae("/CIDToGIDMap /Identity"),ae("/DW 1000"),ae("/Subtype /CIDFontType2"),ae("/CIDSystemInfo"),ae("<<"),ae("/Supplement 0"),ae("/Registry (Adobe)"),ae("/Ordering ("+Z.encoding+")"),ae(">>"),ae(">>"),ae("endobj"),Z.objectNumber=_e(),ae("<<"),ae("/Type /Font"),ae("/Subtype /Type0"),ae("/ToUnicode "+Dt+" 0 R"),ae("/BaseFont /"+$i(Z.fontName)),ae("/Encoding /"+Z.encoding),ae("/DescendantFonts ["+Pt+" 0 R]"),ae(">>"),ae("endobj"),Z.isAlreadyPutted=!0}})(C)}]),o.events.push(["putFont",function(C){(function(T){var Z=T.font,ae=T.out,_e=T.newObject,$e=T.putStream;if(Z.metadata instanceof c.API.TTFFont&&Z.encoding==="WinAnsiEncoding"){for(var Ze=Z.metadata.rawData,at="",ye=0;ye<Ze.length;ye++)at+=String.fromCharCode(Ze[ye]);var kt=_e();$e({data:at,addLength1:!0,objectId:kt}),ae("endobj");var wt=_e();$e({data:b(Z.metadata.toUnicode),addLength1:!0,objectId:wt}),ae("endobj");var Dt=_e();ae("<<"),ae("/Descent "+Z.metadata.decender),ae("/CapHeight "+Z.metadata.capHeight),ae("/StemV "+Z.metadata.stemV),ae("/Type /FontDescriptor"),ae("/FontFile2 "+kt+" 0 R"),ae("/Flags 96"),ae("/FontBBox "+c.API.PDFObject.convert(Z.metadata.bbox)),ae("/FontName /"+$i(Z.fontName)),ae("/ItalicAngle "+Z.metadata.italicAngle),ae("/Ascent "+Z.metadata.ascender),ae(">>"),ae("endobj"),Z.objectNumber=_e();for(var ht=0;ht<Z.metadata.hmtx.widths.length;ht++)Z.metadata.hmtx.widths[ht]=parseInt(Z.metadata.hmtx.widths[ht]*(1e3/Z.metadata.head.unitsPerEm));ae("<</Subtype/TrueType/Type/Font/ToUnicode "+wt+" 0 R/BaseFont/"+$i(Z.fontName)+"/FontDescriptor "+Dt+" 0 R/Encoding/"+Z.encoding+" /FirstChar 29 /LastChar 255 /Widths "+c.API.PDFObject.convert(Z.metadata.hmtx.widths)+">>"),ae("endobj"),Z.isAlreadyPutted=!0}})(C)}]);var F=function(C){var T,Z=C.text||"",ae=C.x,_e=C.y,$e=C.options||{},Ze=C.mutex||{},at=Ze.pdfEscape,ye=Ze.activeFontKey,kt=Ze.fonts,wt=ye,Dt="",ht=0,Pt="",ar=kt[wt].encoding;if(kt[wt].encoding!=="Identity-H")return{text:Z,x:ae,y:_e,options:$e,mutex:Ze};for(Pt=Z,wt=ye,Array.isArray(Z)&&(Pt=Z[0]),ht=0;ht<Pt.length;ht+=1)kt[wt].metadata.hasOwnProperty("cmap")&&(T=kt[wt].metadata.cmap.unicode.codeMap[Pt[ht].charCodeAt(0)]),T||Pt[ht].charCodeAt(0)<256&&kt[wt].metadata.hasOwnProperty("Unicode")?Dt+=Pt[ht]:Dt+="";var xr="";return parseInt(wt.slice(1))<14||ar==="WinAnsiEncoding"?xr=at(Dt,wt).split("").map(function(Kr){return Kr.charCodeAt(0).toString(16)}).join(""):ar==="Identity-H"&&(xr=l(Dt,kt[wt])),Ze.isHex=!0,{text:xr,x:ae,y:_e,options:$e,mutex:Ze}};o.events.push(["postProcessText",function(C){var T=C.text||"",Z=[],ae={text:T,x:C.x,y:C.y,options:C.options,mutex:C.mutex};if(Array.isArray(T)){var _e=0;for(_e=0;_e<T.length;_e+=1)Array.isArray(T[_e])&&T[_e].length===3?Z.push([F(Object.assign({},ae,{text:T[_e][0]})).text,T[_e][1],T[_e][2]]):Z.push(F(Object.assign({},ae,{text:T[_e]})).text);C.text=Z}else C.text=F(Object.assign({},ae,{text:T})).text}])}(Ai),function(c){var o=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};c.existsFileInVFS=function(l){return o.call(this),this.internal.vFS[l]!==void 0},c.addFileToVFS=function(l,b){return o.call(this),this.internal.vFS[l]=b,this},c.getFileFromVFS=function(l){return o.call(this),this.internal.vFS[l]!==void 0?this.internal.vFS[l]:null}}(Ai.API),function(c){c.__bidiEngine__=c.prototype.__bidiEngine__=function(b){var F,C,T,Z,ae,_e,$e,Ze=o,at=[[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]],ye=[[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]],kt={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},wt={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},Dt=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],ht=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)$/),Pt=!1,ar=0;this.__bidiEngine__={};var xr=function(vt){var Ct=vt.charCodeAt(),rr=Ct>>8,U=wt[rr];return U!==void 0?Ze[256*U+(255&Ct)]:rr===252||rr===253?"AL":ht.test(rr)?"L":rr===8?"R":"N"},Kr=function(vt){for(var Ct,rr=0;rr<vt.length;rr++){if((Ct=xr(vt.charAt(rr)))==="L")return!1;if(Ct==="R")return!0}return!1},hn=function(vt,Ct,rr,U){var re,Se,Ue,Ke,Xe=Ct[U];switch(Xe){case"L":case"R":Pt=!1;break;case"N":case"AN":break;case"EN":Pt&&(Xe="AN");break;case"AL":Pt=!0,Xe="R";break;case"WS":Xe="N";break;case"CS":U<1||U+1>=Ct.length||(re=rr[U-1])!=="EN"&&re!=="AN"||(Se=Ct[U+1])!=="EN"&&Se!=="AN"?Xe="N":Pt&&(Se="AN"),Xe=Se===re?Se:"N";break;case"ES":Xe=(re=U>0?rr[U-1]:"B")==="EN"&&U+1<Ct.length&&Ct[U+1]==="EN"?"EN":"N";break;case"ET":if(U>0&&rr[U-1]==="EN"){Xe="EN";break}if(Pt){Xe="N";break}for(Ue=U+1,Ke=Ct.length;Ue<Ke&&Ct[Ue]==="ET";)Ue++;Xe=Ue<Ke&&Ct[Ue]==="EN"?"EN":"N";break;case"NSM":if(T&&!Z){for(Ke=Ct.length,Ue=U+1;Ue<Ke&&Ct[Ue]==="NSM";)Ue++;if(Ue<Ke){var dt=vt[U],St=dt>=1425&&dt<=2303||dt===64286;if(re=Ct[Ue],St&&(re==="R"||re==="AL")){Xe="R";break}}}Xe=U<1||(re=Ct[U-1])==="B"?"N":rr[U-1];break;case"B":Pt=!1,F=!0,Xe=ar;break;case"S":C=!0,Xe="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Pt=!1;break;case"BN":Xe="N"}return Xe},Ir=function(vt,Ct,rr){var U=vt.split("");return rr&&Vt(U,rr,{hiLevel:ar}),U.reverse(),Ct&&Ct.reverse(),U.join("")},Vt=function(vt,Ct,rr){var U,re,Se,Ue,Ke,Xe=-1,dt=vt.length,St=0,le=[],Re=ar?ye:at,Ye=[];for(Pt=!1,F=!1,C=!1,re=0;re<dt;re++)Ye[re]=xr(vt[re]);for(Se=0;Se<dt;Se++){if(Ke=St,le[Se]=hn(vt,Ye,le,Se),U=240&(St=Re[Ke][kt[le[Se]]]),St&=15,Ct[Se]=Ue=Re[St][5],U>0)if(U===16){for(re=Xe;re<Se;re++)Ct[re]=1;Xe=-1}else Xe=-1;if(Re[St][6])Xe===-1&&(Xe=Se);else if(Xe>-1){for(re=Xe;re<Se;re++)Ct[re]=Ue;Xe=-1}Ye[Se]==="B"&&(Ct[Se]=0),rr.hiLevel|=Ue}C&&function(et,bt,_t){for(var Mt=0;Mt<_t;Mt++)if(et[Mt]==="S"){bt[Mt]=ar;for(var Rt=Mt-1;Rt>=0&&et[Rt]==="WS";Rt--)bt[Rt]=ar}}(Ye,Ct,dt)},Pr=function(vt,Ct,rr,U,re){if(!(re.hiLevel<vt)){if(vt===1&&ar===1&&!F)return Ct.reverse(),void(rr&&rr.reverse());for(var Se,Ue,Ke,Xe,dt=Ct.length,St=0;St<dt;){if(U[St]>=vt){for(Ke=St+1;Ke<dt&&U[Ke]>=vt;)Ke++;for(Xe=St,Ue=Ke-1;Xe<Ue;Xe++,Ue--)Se=Ct[Xe],Ct[Xe]=Ct[Ue],Ct[Ue]=Se,rr&&(Se=rr[Xe],rr[Xe]=rr[Ue],rr[Ue]=Se);St=Ke}St++}}},Jr=function(vt,Ct,rr){var U=vt.split(""),re={hiLevel:ar};return rr||(rr=[]),Vt(U,rr,re),function(Se,Ue,Ke){if(Ke.hiLevel!==0&&$e)for(var Xe,dt=0;dt<Se.length;dt++)Ue[dt]===1&&(Xe=Dt.indexOf(Se[dt]))>=0&&(Se[dt]=Dt[Xe+1])}(U,rr,re),Pr(2,U,Ct,rr,re),Pr(1,U,Ct,rr,re),U.join("")};return this.__bidiEngine__.doBidiReorder=function(vt,Ct,rr){if(function(re,Se){if(Se)for(var Ue=0;Ue<re.length;Ue++)Se[Ue]=Ue;Z===void 0&&(Z=Kr(re)),_e===void 0&&(_e=Kr(re))}(vt,Ct),T||!ae||_e)if(T&&ae&&Z^_e)ar=Z?1:0,vt=Ir(vt,Ct,rr);else if(!T&&ae&&_e)ar=Z?1:0,vt=Jr(vt,Ct,rr),vt=Ir(vt,Ct);else if(!T||Z||ae||_e){if(T&&!ae&&Z^_e)vt=Ir(vt,Ct),Z?(ar=0,vt=Jr(vt,Ct,rr)):(ar=1,vt=Jr(vt,Ct,rr),vt=Ir(vt,Ct));else if(T&&Z&&!ae&&_e)ar=1,vt=Jr(vt,Ct,rr),vt=Ir(vt,Ct);else if(!T&&!ae&&Z^_e){var U=$e;Z?(ar=1,vt=Jr(vt,Ct,rr),ar=0,$e=!1,vt=Jr(vt,Ct,rr),$e=U):(ar=0,vt=Jr(vt,Ct,rr),vt=Ir(vt,Ct),ar=1,$e=!1,vt=Jr(vt,Ct,rr),$e=U,vt=Ir(vt,Ct))}}else ar=0,vt=Jr(vt,Ct,rr);else ar=Z?1:0,vt=Jr(vt,Ct,rr);return vt},this.__bidiEngine__.setOptions=function(vt){vt&&(T=vt.isInputVisual,ae=vt.isOutputVisual,Z=vt.isInputRtl,_e=vt.isOutputRtl,$e=vt.isSymmetricSwapping)},this.__bidiEngine__.setOptions(b),this.__bidiEngine__};var o=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],l=new c.__bidiEngine__({isInputVisual:!0});c.API.events.push(["postProcessText",function(b){var F=b.text;b.x,b.y;var C=b.options||{};b.mutex,C.lang;var T=[];if(C.isInputVisual=typeof C.isInputVisual!="boolean"||C.isInputVisual,l.setOptions(C),Object.prototype.toString.call(F)==="[object Array]"){var Z=0;for(T=[],Z=0;Z<F.length;Z+=1)Object.prototype.toString.call(F[Z])==="[object Array]"?T.push([l.doBidiReorder(F[Z][0]),F[Z][1],F[Z][2]]):T.push([l.doBidiReorder(F[Z])]);b.text=T}else b.text=l.doBidiReorder(F);l.setOptions({isInputVisual:!0})}])}(Ai),Ai.API.TTFFont=function(){function c(o){var l;if(this.rawData=o,l=this.contents=new Oa(o),this.contents.pos=4,l.readString(4)==="ttcf")throw new Error("TTCF not supported.");l.pos=0,this.parse(),this.subset=new cu(this),this.registerTTF()}return c.open=function(o){return new c(o)},c.prototype.parse=function(){return this.directory=new po(this.contents),this.head=new Ps(this),this.name=new mc(this),this.cmap=new yl(this),this.toUnicode={},this.hhea=new Gc(this),this.maxp=new Uu(this),this.hmtx=new KA(this),this.post=new CA(this),this.os2=new xA(this),this.loca=new Ru(this),this.glyf=new td(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},c.prototype.registerTTF=function(){var o,l,b,F,C;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var T,Z,ae,_e;for(_e=[],T=0,Z=(ae=this.bbox).length;T<Z;T++)o=ae[T],_e.push(Math.round(o*this.scaleFactor));return _e}.call(this),this.stemV=0,this.post.exists?(b=255&(F=this.post.italic_angle),32768&(l=F>>16)&&(l=-(1+(65535^l))),this.italicAngle=+(l+"."+b)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(C=this.familyClass)===1||C===2||C===3||C===4||C===5||C===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},c.prototype.characterToGlyph=function(o){var l;return((l=this.cmap.unicode)!=null?l.codeMap[o]:void 0)||0},c.prototype.widthOfGlyph=function(o){var l;return l=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(o).advance*l},c.prototype.widthOfString=function(o,l,b){var F,C,T,Z;for(T=0,C=0,Z=(o=""+o).length;0<=Z?C<Z:C>Z;C=0<=Z?++C:--C)F=o.charCodeAt(C),T+=this.widthOfGlyph(this.characterToGlyph(F))+b*(1e3/l)||0;return T*(l/1e3)},c.prototype.lineHeight=function(o,l){var b;return l==null&&(l=!1),b=l?this.lineGap:0,(this.ascender+b-this.decender)/1e3*o},c}();var sl,Oa=function(){function c(o){this.data=o!=null?o:[],this.pos=0,this.length=this.data.length}return c.prototype.readByte=function(){return this.data[this.pos++]},c.prototype.writeByte=function(o){return this.data[this.pos++]=o},c.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},c.prototype.writeUInt32=function(o){return this.writeByte(o>>>24&255),this.writeByte(o>>16&255),this.writeByte(o>>8&255),this.writeByte(255&o)},c.prototype.readInt32=function(){var o;return(o=this.readUInt32())>=2147483648?o-4294967296:o},c.prototype.writeInt32=function(o){return o<0&&(o+=4294967296),this.writeUInt32(o)},c.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},c.prototype.writeUInt16=function(o){return this.writeByte(o>>8&255),this.writeByte(255&o)},c.prototype.readInt16=function(){var o;return(o=this.readUInt16())>=32768?o-65536:o},c.prototype.writeInt16=function(o){return o<0&&(o+=65536),this.writeUInt16(o)},c.prototype.readString=function(o){var l,b;for(b=[],l=0;0<=o?l<o:l>o;l=0<=o?++l:--l)b[l]=String.fromCharCode(this.readByte());return b.join("")},c.prototype.writeString=function(o){var l,b,F;for(F=[],l=0,b=o.length;0<=b?l<b:l>b;l=0<=b?++l:--l)F.push(this.writeByte(o.charCodeAt(l)));return F},c.prototype.readShort=function(){return this.readInt16()},c.prototype.writeShort=function(o){return this.writeInt16(o)},c.prototype.readLongLong=function(){var o,l,b,F,C,T,Z,ae;return o=this.readByte(),l=this.readByte(),b=this.readByte(),F=this.readByte(),C=this.readByte(),T=this.readByte(),Z=this.readByte(),ae=this.readByte(),128&o?-1*(72057594037927940*(255^o)+281474976710656*(255^l)+1099511627776*(255^b)+4294967296*(255^F)+16777216*(255^C)+65536*(255^T)+256*(255^Z)+(255^ae)+1):72057594037927940*o+281474976710656*l+1099511627776*b+4294967296*F+16777216*C+65536*T+256*Z+ae},c.prototype.writeLongLong=function(o){var l,b;return l=Math.floor(o/4294967296),b=4294967295&o,this.writeByte(l>>24&255),this.writeByte(l>>16&255),this.writeByte(l>>8&255),this.writeByte(255&l),this.writeByte(b>>24&255),this.writeByte(b>>16&255),this.writeByte(b>>8&255),this.writeByte(255&b)},c.prototype.readInt=function(){return this.readInt32()},c.prototype.writeInt=function(o){return this.writeInt32(o)},c.prototype.read=function(o){var l,b;for(l=[],b=0;0<=o?b<o:b>o;b=0<=o?++b:--b)l.push(this.readByte());return l},c.prototype.write=function(o){var l,b,F,C;for(C=[],b=0,F=o.length;b<F;b++)l=o[b],C.push(this.writeByte(l));return C},c}(),po=function(){var c;function o(l){var b,F,C;for(this.scalarType=l.readInt(),this.tableCount=l.readShort(),this.searchRange=l.readShort(),this.entrySelector=l.readShort(),this.rangeShift=l.readShort(),this.tables={},F=0,C=this.tableCount;0<=C?F<C:F>C;F=0<=C?++F:--F)b={tag:l.readString(4),checksum:l.readInt(),offset:l.readInt(),length:l.readInt()},this.tables[b.tag]=b}return o.prototype.encode=function(l){var b,F,C,T,Z,ae,_e,$e,Ze,at,ye,kt,wt;for(wt in ye=Object.keys(l).length,ae=Math.log(2),Ze=16*Math.floor(Math.log(ye)/ae),T=Math.floor(Ze/ae),$e=16*ye-Ze,(F=new Oa).writeInt(this.scalarType),F.writeShort(ye),F.writeShort(Ze),F.writeShort(T),F.writeShort($e),C=16*ye,_e=F.pos+C,Z=null,kt=[],l)for(at=l[wt],F.writeString(wt),F.writeInt(c(at)),F.writeInt(_e),F.writeInt(at.length),kt=kt.concat(at),wt==="head"&&(Z=_e),_e+=at.length;_e%4;)kt.push(0),_e++;return F.write(kt),b=2981146554-c(F.data),F.pos=Z+8,F.writeUInt32(b),F.data},c=function(l){var b,F,C,T;for(l=ed.call(l);l.length%4;)l.push(0);for(C=new Oa(l),F=0,b=0,T=l.length;b<T;b=b+=4)F+=C.readUInt32();return 4294967295&F},o}(),mo={}.hasOwnProperty,Go=function(c,o){for(var l in o)mo.call(o,l)&&(c[l]=o[l]);function b(){this.constructor=c}return b.prototype=o.prototype,c.prototype=new b,c.__super__=o.prototype,c};sl=function(){function c(o){var l;this.file=o,l=this.file.directory.tables[this.tag],this.exists=!!l,l&&(this.offset=l.offset,this.length=l.length,this.parse(this.file.contents))}return c.prototype.parse=function(){},c.prototype.encode=function(){},c.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},c}();var Ps=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="head",o.prototype.parse=function(l){return l.pos=this.offset,this.version=l.readInt(),this.revision=l.readInt(),this.checkSumAdjustment=l.readInt(),this.magicNumber=l.readInt(),this.flags=l.readShort(),this.unitsPerEm=l.readShort(),this.created=l.readLongLong(),this.modified=l.readLongLong(),this.xMin=l.readShort(),this.yMin=l.readShort(),this.xMax=l.readShort(),this.yMax=l.readShort(),this.macStyle=l.readShort(),this.lowestRecPPEM=l.readShort(),this.fontDirectionHint=l.readShort(),this.indexToLocFormat=l.readShort(),this.glyphDataFormat=l.readShort()},o.prototype.encode=function(l){var b;return(b=new Oa).writeInt(this.version),b.writeInt(this.revision),b.writeInt(this.checkSumAdjustment),b.writeInt(this.magicNumber),b.writeShort(this.flags),b.writeShort(this.unitsPerEm),b.writeLongLong(this.created),b.writeLongLong(this.modified),b.writeShort(this.xMin),b.writeShort(this.yMin),b.writeShort(this.xMax),b.writeShort(this.yMax),b.writeShort(this.macStyle),b.writeShort(this.lowestRecPPEM),b.writeShort(this.fontDirectionHint),b.writeShort(l),b.writeShort(this.glyphDataFormat),b.data},o}(),kc=function(){function c(o,l){var b,F,C,T,Z,ae,_e,$e,Ze,at,ye,kt,wt,Dt,ht,Pt,ar;switch(this.platformID=o.readUInt16(),this.encodingID=o.readShort(),this.offset=l+o.readInt(),Ze=o.pos,o.pos=this.offset,this.format=o.readUInt16(),this.length=o.readUInt16(),this.language=o.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(ae=0;ae<256;++ae)this.codeMap[ae]=o.readByte();break;case 4:for(ye=o.readUInt16(),at=ye/2,o.pos+=6,C=function(){var xr,Kr;for(Kr=[],ae=xr=0;0<=at?xr<at:xr>at;ae=0<=at?++xr:--xr)Kr.push(o.readUInt16());return Kr}(),o.pos+=2,wt=function(){var xr,Kr;for(Kr=[],ae=xr=0;0<=at?xr<at:xr>at;ae=0<=at?++xr:--xr)Kr.push(o.readUInt16());return Kr}(),_e=function(){var xr,Kr;for(Kr=[],ae=xr=0;0<=at?xr<at:xr>at;ae=0<=at?++xr:--xr)Kr.push(o.readUInt16());return Kr}(),$e=function(){var xr,Kr;for(Kr=[],ae=xr=0;0<=at?xr<at:xr>at;ae=0<=at?++xr:--xr)Kr.push(o.readUInt16());return Kr}(),F=(this.length-o.pos+this.offset)/2,Z=function(){var xr,Kr;for(Kr=[],ae=xr=0;0<=F?xr<F:xr>F;ae=0<=F?++xr:--xr)Kr.push(o.readUInt16());return Kr}(),ae=ht=0,ar=C.length;ht<ar;ae=++ht)for(Dt=C[ae],b=Pt=kt=wt[ae];kt<=Dt?Pt<=Dt:Pt>=Dt;b=kt<=Dt?++Pt:--Pt)$e[ae]===0?T=b+_e[ae]:(T=Z[$e[ae]/2+(b-kt)-(at-ae)]||0)!==0&&(T+=_e[ae]),this.codeMap[b]=65535&T}o.pos=Ze}return c.encode=function(o,l){var b,F,C,T,Z,ae,_e,$e,Ze,at,ye,kt,wt,Dt,ht,Pt,ar,xr,Kr,hn,Ir,Vt,Pr,Jr,vt,Ct,rr,U,re,Se,Ue,Ke,Xe,dt,St,le,Re,Ye,et,bt,_t,Mt,Rt,lr,Ar,gr;switch(U=new Oa,T=Object.keys(o).sort(function(_r,dn){return _r-dn}),l){case"macroman":for(wt=0,Dt=function(){var _r=[];for(kt=0;kt<256;++kt)_r.push(0);return _r}(),Pt={0:0},C={},re=0,Xe=T.length;re<Xe;re++)Pt[Rt=o[F=T[re]]]==null&&(Pt[Rt]=++wt),C[F]={old:o[F],new:Pt[o[F]]},Dt[F]=Pt[o[F]];return U.writeUInt16(1),U.writeUInt16(0),U.writeUInt32(12),U.writeUInt16(0),U.writeUInt16(262),U.writeUInt16(0),U.write(Dt),{charMap:C,subtable:U.data,maxGlyphID:wt+1};case"unicode":for(Ct=[],Ze=[],ar=0,Pt={},b={},ht=_e=null,Se=0,dt=T.length;Se<dt;Se++)Pt[Kr=o[F=T[Se]]]==null&&(Pt[Kr]=++ar),b[F]={old:Kr,new:Pt[Kr]},Z=Pt[Kr]-F,ht!=null&&Z===_e||(ht&&Ze.push(ht),Ct.push(F),_e=Z),ht=F;for(ht&&Ze.push(ht),Ze.push(65535),Ct.push(65535),Jr=2*(Pr=Ct.length),Vt=2*Math.pow(Math.log(Pr)/Math.LN2,2),at=Math.log(Vt/2)/Math.LN2,Ir=2*Pr-Vt,ae=[],hn=[],ye=[],kt=Ue=0,St=Ct.length;Ue<St;kt=++Ue){if(vt=Ct[kt],$e=Ze[kt],vt===65535){ae.push(0),hn.push(0);break}if(vt-(rr=b[vt].new)>=32768)for(ae.push(0),hn.push(2*(ye.length+Pr-kt)),F=Ke=vt;vt<=$e?Ke<=$e:Ke>=$e;F=vt<=$e?++Ke:--Ke)ye.push(b[F].new);else ae.push(rr-vt),hn.push(0)}for(U.writeUInt16(3),U.writeUInt16(1),U.writeUInt32(12),U.writeUInt16(4),U.writeUInt16(16+8*Pr+2*ye.length),U.writeUInt16(0),U.writeUInt16(Jr),U.writeUInt16(Vt),U.writeUInt16(at),U.writeUInt16(Ir),_t=0,le=Ze.length;_t<le;_t++)F=Ze[_t],U.writeUInt16(F);for(U.writeUInt16(0),Mt=0,Re=Ct.length;Mt<Re;Mt++)F=Ct[Mt],U.writeUInt16(F);for(lr=0,Ye=ae.length;lr<Ye;lr++)Z=ae[lr],U.writeUInt16(Z);for(Ar=0,et=hn.length;Ar<et;Ar++)xr=hn[Ar],U.writeUInt16(xr);for(gr=0,bt=ye.length;gr<bt;gr++)wt=ye[gr],U.writeUInt16(wt);return{charMap:b,subtable:U.data,maxGlyphID:ar+1}}},c}(),yl=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="cmap",o.prototype.parse=function(l){var b,F,C;for(l.pos=this.offset,this.version=l.readUInt16(),C=l.readUInt16(),this.tables=[],this.unicode=null,F=0;0<=C?F<C:F>C;F=0<=C?++F:--F)b=new kc(l,this.offset),this.tables.push(b),b.isUnicode&&this.unicode==null&&(this.unicode=b);return!0},o.encode=function(l,b){var F,C;return b==null&&(b="macroman"),F=kc.encode(l,b),(C=new Oa).writeUInt16(0),C.writeUInt16(1),F.table=C.data.concat(F.subtable),F},o}(),Gc=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="hhea",o.prototype.parse=function(l){return l.pos=this.offset,this.version=l.readInt(),this.ascender=l.readShort(),this.decender=l.readShort(),this.lineGap=l.readShort(),this.advanceWidthMax=l.readShort(),this.minLeftSideBearing=l.readShort(),this.minRightSideBearing=l.readShort(),this.xMaxExtent=l.readShort(),this.caretSlopeRise=l.readShort(),this.caretSlopeRun=l.readShort(),this.caretOffset=l.readShort(),l.pos+=8,this.metricDataFormat=l.readShort(),this.numberOfMetrics=l.readUInt16()},o}(),xA=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="OS/2",o.prototype.parse=function(l){if(l.pos=this.offset,this.version=l.readUInt16(),this.averageCharWidth=l.readShort(),this.weightClass=l.readUInt16(),this.widthClass=l.readUInt16(),this.type=l.readShort(),this.ySubscriptXSize=l.readShort(),this.ySubscriptYSize=l.readShort(),this.ySubscriptXOffset=l.readShort(),this.ySubscriptYOffset=l.readShort(),this.ySuperscriptXSize=l.readShort(),this.ySuperscriptYSize=l.readShort(),this.ySuperscriptXOffset=l.readShort(),this.ySuperscriptYOffset=l.readShort(),this.yStrikeoutSize=l.readShort(),this.yStrikeoutPosition=l.readShort(),this.familyClass=l.readShort(),this.panose=function(){var b,F;for(F=[],b=0;b<10;++b)F.push(l.readByte());return F}(),this.charRange=function(){var b,F;for(F=[],b=0;b<4;++b)F.push(l.readInt());return F}(),this.vendorID=l.readString(4),this.selection=l.readShort(),this.firstCharIndex=l.readShort(),this.lastCharIndex=l.readShort(),this.version>0&&(this.ascent=l.readShort(),this.descent=l.readShort(),this.lineGap=l.readShort(),this.winAscent=l.readShort(),this.winDescent=l.readShort(),this.codePageRange=function(){var b,F;for(F=[],b=0;b<2;b=++b)F.push(l.readInt());return F}(),this.version>1))return this.xHeight=l.readShort(),this.capHeight=l.readShort(),this.defaultChar=l.readShort(),this.breakChar=l.readShort(),this.maxContext=l.readShort()},o}(),CA=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="post",o.prototype.parse=function(l){var b,F,C;switch(l.pos=this.offset,this.format=l.readInt(),this.italicAngle=l.readInt(),this.underlinePosition=l.readShort(),this.underlineThickness=l.readShort(),this.isFixedPitch=l.readInt(),this.minMemType42=l.readInt(),this.maxMemType42=l.readInt(),this.minMemType1=l.readInt(),this.maxMemType1=l.readInt(),this.format){case 65536:break;case 131072:var T;for(F=l.readUInt16(),this.glyphNameIndex=[],T=0;0<=F?T<F:T>F;T=0<=F?++T:--T)this.glyphNameIndex.push(l.readUInt16());for(this.names=[],C=[];l.pos<this.offset+this.length;)b=l.readByte(),C.push(this.names.push(l.readString(b)));return C;case 151552:return F=l.readUInt16(),this.offsets=l.read(F);case 196608:break;case 262144:return this.map=function(){var Z,ae,_e;for(_e=[],T=Z=0,ae=this.file.maxp.numGlyphs;0<=ae?Z<ae:Z>ae;T=0<=ae?++Z:--Z)_e.push(l.readUInt32());return _e}.call(this)}},o}(),pc=function(c,o){this.raw=c,this.length=c.length,this.platformID=o.platformID,this.encodingID=o.encodingID,this.languageID=o.languageID},mc=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="name",o.prototype.parse=function(l){var b,F,C,T,Z,ae,_e,$e,Ze,at,ye;for(l.pos=this.offset,l.readShort(),b=l.readShort(),ae=l.readShort(),F=[],T=0;0<=b?T<b:T>b;T=0<=b?++T:--T)F.push({platformID:l.readShort(),encodingID:l.readShort(),languageID:l.readShort(),nameID:l.readShort(),length:l.readShort(),offset:this.offset+ae+l.readShort()});for(_e={},T=Ze=0,at=F.length;Ze<at;T=++Ze)C=F[T],l.pos=C.offset,$e=l.readString(C.length),Z=new pc($e,C),_e[ye=C.nameID]==null&&(_e[ye]=[]),_e[C.nameID].push(Z);this.strings=_e,this.copyright=_e[0],this.fontFamily=_e[1],this.fontSubfamily=_e[2],this.uniqueSubfamily=_e[3],this.fontName=_e[4],this.version=_e[5];try{this.postscriptName=_e[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(kt){this.postscriptName=_e[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=_e[7],this.manufacturer=_e[8],this.designer=_e[9],this.description=_e[10],this.vendorUrl=_e[11],this.designerUrl=_e[12],this.license=_e[13],this.licenseUrl=_e[14],this.preferredFamily=_e[15],this.preferredSubfamily=_e[17],this.compatibleFull=_e[18],this.sampleText=_e[19]},o}(),Uu=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="maxp",o.prototype.parse=function(l){return l.pos=this.offset,this.version=l.readInt(),this.numGlyphs=l.readUInt16(),this.maxPoints=l.readUInt16(),this.maxContours=l.readUInt16(),this.maxCompositePoints=l.readUInt16(),this.maxComponentContours=l.readUInt16(),this.maxZones=l.readUInt16(),this.maxTwilightPoints=l.readUInt16(),this.maxStorage=l.readUInt16(),this.maxFunctionDefs=l.readUInt16(),this.maxInstructionDefs=l.readUInt16(),this.maxStackElements=l.readUInt16(),this.maxSizeOfInstructions=l.readUInt16(),this.maxComponentElements=l.readUInt16(),this.maxComponentDepth=l.readUInt16()},o}(),KA=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="hmtx",o.prototype.parse=function(l){var b,F,C,T,Z,ae,_e;for(l.pos=this.offset,this.metrics=[],b=0,ae=this.file.hhea.numberOfMetrics;0<=ae?b<ae:b>ae;b=0<=ae?++b:--b)this.metrics.push({advance:l.readUInt16(),lsb:l.readInt16()});for(C=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var $e,Ze;for(Ze=[],b=$e=0;0<=C?$e<C:$e>C;b=0<=C?++$e:--$e)Ze.push(l.readInt16());return Ze}(),this.widths=function(){var $e,Ze,at,ye;for(ye=[],$e=0,Ze=(at=this.metrics).length;$e<Ze;$e++)T=at[$e],ye.push(T.advance);return ye}.call(this),F=this.widths[this.widths.length-1],_e=[],b=Z=0;0<=C?Z<C:Z>C;b=0<=C?++Z:--Z)_e.push(this.widths.push(F));return _e},o.prototype.forGlyph=function(l){return l in this.metrics?this.metrics[l]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[l-this.metrics.length]}},o}(),ed=[].slice,td=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="glyf",o.prototype.parse=function(){return this.cache={}},o.prototype.glyphFor=function(l){var b,F,C,T,Z,ae,_e,$e,Ze,at;return l in this.cache?this.cache[l]:(T=this.file.loca,b=this.file.contents,F=T.indexOf(l),(C=T.lengthOf(l))===0?this.cache[l]=null:(b.pos=this.offset+F,Z=(ae=new Oa(b.read(C))).readShort(),$e=ae.readShort(),at=ae.readShort(),_e=ae.readShort(),Ze=ae.readShort(),this.cache[l]=Z===-1?new vd(ae,$e,at,_e,Ze):new lu(ae,Z,$e,at,_e,Ze),this.cache[l]))},o.prototype.encode=function(l,b,F){var C,T,Z,ae,_e;for(Z=[],T=[],ae=0,_e=b.length;ae<_e;ae++)C=l[b[ae]],T.push(Z.length),C&&(Z=Z.concat(C.encode(F)));return T.push(Z.length),{table:Z,offsets:T}},o}(),lu=function(){function c(o,l,b,F,C,T){this.raw=o,this.numberOfContours=l,this.xMin=b,this.yMin=F,this.xMax=C,this.yMax=T,this.compound=!1}return c.prototype.encode=function(){return this.raw.data},c}(),vd=function(){function c(o,l,b,F,C){var T,Z;for(this.raw=o,this.xMin=l,this.yMin=b,this.xMax=F,this.yMax=C,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],T=this.raw;Z=T.readShort(),this.glyphOffsets.push(T.pos),this.glyphIDs.push(T.readUInt16()),32&Z;)T.pos+=1&Z?4:2,128&Z?T.pos+=8:64&Z?T.pos+=4:8&Z&&(T.pos+=2)}return c.prototype.encode=function(){var o,l,b;for(l=new Oa(ed.call(this.raw.data)),o=0,b=this.glyphIDs.length;o<b;++o)l.pos=this.glyphOffsets[o];return l.data},c}(),Ru=function(c){function o(){return o.__super__.constructor.apply(this,arguments)}return Go(o,sl),o.prototype.tag="loca",o.prototype.parse=function(l){var b,F;return l.pos=this.offset,b=this.file.head.indexToLocFormat,this.offsets=b===0?function(){var C,T;for(T=[],F=0,C=this.length;F<C;F+=2)T.push(2*l.readUInt16());return T}.call(this):function(){var C,T;for(T=[],F=0,C=this.length;F<C;F+=4)T.push(l.readUInt32());return T}.call(this)},o.prototype.indexOf=function(l){return this.offsets[l]},o.prototype.lengthOf=function(l){return this.offsets[l+1]-this.offsets[l]},o.prototype.encode=function(l,b){for(var F=new Uint32Array(this.offsets.length),C=0,T=0,Z=0;Z<F.length;++Z)if(F[Z]=C,T<b.length&&b[T]==Z){++T,F[Z]=C;var ae=this.offsets[Z],_e=this.offsets[Z+1]-ae;_e>0&&(C+=_e)}for(var $e=new Array(4*F.length),Ze=0;Ze<F.length;++Ze)$e[4*Ze+3]=255&F[Ze],$e[4*Ze+2]=(65280&F[Ze])>>8,$e[4*Ze+1]=(16711680&F[Ze])>>16,$e[4*Ze]=(4278190080&F[Ze])>>24;return $e},o}(),cu=function(){function c(o){this.font=o,this.subset={},this.unicodes={},this.next=33}return c.prototype.generateCmap=function(){var o,l,b,F,C;for(l in F=this.font.cmap.tables[0].codeMap,o={},C=this.subset)b=C[l],o[l]=F[b];return o},c.prototype.glyphsFor=function(o){var l,b,F,C,T,Z,ae;for(F={},T=0,Z=o.length;T<Z;T++)F[C=o[T]]=this.font.glyf.glyphFor(C);for(C in l=[],F)(b=F[C])!=null&&b.compound&&l.push.apply(l,b.glyphIDs);if(l.length>0)for(C in ae=this.glyphsFor(l))b=ae[C],F[C]=b;return F},c.prototype.encode=function(o,l){var b,F,C,T,Z,ae,_e,$e,Ze,at,ye,kt,wt,Dt,ht;for(F in b=yl.encode(this.generateCmap(),"unicode"),T=this.glyphsFor(o),ye={0:0},ht=b.charMap)ye[(ae=ht[F]).old]=ae.new;for(kt in at=b.maxGlyphID,T)kt in ye||(ye[kt]=at++);return $e=function(Pt){var ar,xr;for(ar in xr={},Pt)xr[Pt[ar]]=ar;return xr}(ye),Ze=Object.keys($e).sort(function(Pt,ar){return Pt-ar}),wt=function(){var Pt,ar,xr;for(xr=[],Pt=0,ar=Ze.length;Pt<ar;Pt++)Z=Ze[Pt],xr.push($e[Z]);return xr}(),C=this.font.glyf.encode(T,wt,ye),_e=this.font.loca.encode(C.offsets,wt),Dt={cmap:this.font.cmap.raw(),glyf:C.table,loca:_e,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(l)},this.font.os2.exists&&(Dt["OS/2"]=this.font.os2.raw()),this.font.directory.encode(Dt)},c}();Ai.API.PDFObject=function(){var c;function o(){}return c=function(l,b){return(Array(b+1).join("0")+l).slice(-b)},o.convert=function(l){var b,F,C,T;if(Array.isArray(l))return"["+function(){var Z,ae,_e;for(_e=[],Z=0,ae=l.length;Z<ae;Z++)b=l[Z],_e.push(o.convert(b));return _e}().join(" ")+"]";if(typeof l=="string")return"/"+l;if(l!=null&&l.isString)return"("+l+")";if(l instanceof Date)return"(D:"+c(l.getUTCFullYear(),4)+c(l.getUTCMonth(),2)+c(l.getUTCDate(),2)+c(l.getUTCHours(),2)+c(l.getUTCMinutes(),2)+c(l.getUTCSeconds(),2)+"Z)";if({}.toString.call(l)==="[object Object]"){for(F in C=["<<"],l)T=l[F],C.push("/"+F+" "+o.convert(T));return C.push(">>"),C.join(`
|
|
|
`)}return""+l},o}()},86129:function(bn,Xt,w){var pe=w(19208).lW,ue=w(97671);(function(R){bn.exports=R()})(function(){return function R(Ne,te,V){function B(h,z){if(!te[h]){if(!Ne[h]){var S=void 0;if(!z&&S)return require(h,!0);if(f)return f(h,!0);var _=new Error("Cannot find module '"+h+"'");throw _.code="MODULE_NOT_FOUND",_}var N=te[h]={exports:{}};Ne[h][0].call(N.exports,function(Q){var I=Ne[h][1][Q];return B(I||Q)},N,N.exports,R,Ne,te,V)}return te[h].exports}for(var f=void 0,E=0;E<V.length;E++)B(V[E]);return B}({1:[function(R,Ne,te){"use strict";var V=R("./utils"),B=R("./support"),f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";te.encode=function(E){for(var h,z,S,_,N,Q,I,Y=[],K=0,ce=E.length,G=ce,J=V.getTypeOf(E)!=="string";K<E.length;)G=ce-K,S=J?(h=E[K++],z=K<ce?E[K++]:0,K<ce?E[K++]:0):(h=E.charCodeAt(K++),z=K<ce?E.charCodeAt(K++):0,K<ce?E.charCodeAt(K++):0),_=h>>2,N=(3&h)<<4|z>>4,Q=1<G?(15&z)<<2|S>>6:64,I=2<G?63&S:64,Y.push(f.charAt(_)+f.charAt(N)+f.charAt(Q)+f.charAt(I));return Y.join("")},te.decode=function(E){var h,z,S,_,N,Q,I=0,Y=0,K="data:";if(E.substr(0,K.length)===K)throw new Error("Invalid base64 input, it looks like a data url.");var ce,G=3*(E=E.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(E.charAt(E.length-1)===f.charAt(64)&&G--,E.charAt(E.length-2)===f.charAt(64)&&G--,G%1!=0)throw new Error("Invalid base64 input, bad content length.");for(ce=B.uint8array?new Uint8Array(0|G):new Array(0|G);I<E.length;)h=f.indexOf(E.charAt(I++))<<2|(_=f.indexOf(E.charAt(I++)))>>4,z=(15&_)<<4|(N=f.indexOf(E.charAt(I++)))>>2,S=(3&N)<<6|(Q=f.indexOf(E.charAt(I++))),ce[Y++]=h,N!==64&&(ce[Y++]=z),Q!==64&&(ce[Y++]=S);return ce}},{"./support":30,"./utils":32}],2:[function(R,Ne,te){"use strict";var V=R("./external"),B=R("./stream/DataWorker"),f=R("./stream/Crc32Probe"),E=R("./stream/DataLengthProbe");function h(z,S,_,N,Q){this.compressedSize=z,this.uncompressedSize=S,this.crc32=_,this.compression=N,this.compressedContent=Q}h.prototype={getContentWorker:function(){var z=new B(V.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new E("data_length")),S=this;return z.on("end",function(){if(this.streamInfo.data_length!==S.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),z},getCompressedWorker:function(){return new B(V.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},h.createWorkerFrom=function(z,S,_){return z.pipe(new f).pipe(new E("uncompressedSize")).pipe(S.compressWorker(_)).pipe(new E("compressedSize")).withStreamInfo("compression",S)},Ne.exports=h},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(R,Ne,te){"use strict";var V=R("./stream/GenericWorker");te.STORE={magic:"\0\0",compressWorker:function(){return new V("STORE compression")},uncompressWorker:function(){return new V("STORE decompression")}},te.DEFLATE=R("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(R,Ne,te){"use strict";var V=R("./utils"),B=function(){for(var f,E=[],h=0;h<256;h++){f=h;for(var z=0;z<8;z++)f=1&f?3988292384^f>>>1:f>>>1;E[h]=f}return E}();Ne.exports=function(f,E){return f!==void 0&&f.length?V.getTypeOf(f)!=="string"?function(h,z,S,_){var N=B,Q=_+S;h^=-1;for(var I=_;I<Q;I++)h=h>>>8^N[255&(h^z[I])];return-1^h}(0|E,f,f.length,0):function(h,z,S,_){var N=B,Q=_+S;h^=-1;for(var I=_;I<Q;I++)h=h>>>8^N[255&(h^z.charCodeAt(I))];return-1^h}(0|E,f,f.length,0):0}},{"./utils":32}],5:[function(R,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(R,Ne,te){"use strict";var V=null;V=typeof Promise!="undefined"?Promise:R("lie"),Ne.exports={Promise:V}},{lie:37}],7:[function(R,Ne,te){"use strict";var V=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",B=R("pako"),f=R("./utils"),E=R("./stream/GenericWorker"),h=V?"uint8array":"array";function z(S,_){E.call(this,"FlateWorker/"+S),this._pako=null,this._pakoAction=S,this._pakoOptions=_,this.meta={}}te.magic="\b\0",f.inherits(z,E),z.prototype.processChunk=function(S){this.meta=S.meta,this._pako===null&&this._createPako(),this._pako.push(f.transformTo(h,S.data),!1)},z.prototype.flush=function(){E.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},z.prototype.cleanUp=function(){E.prototype.cleanUp.call(this),this._pako=null},z.prototype._createPako=function(){this._pako=new B[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var S=this;this._pako.onData=function(_){S.push({data:_,meta:S.meta})}},te.compressWorker=function(S){return new z("Deflate",S)},te.uncompressWorker=function(){return new z("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(R,Ne,te){"use strict";function V(N,Q){var I,Y="";for(I=0;I<Q;I++)Y+=String.fromCharCode(255&N),N>>>=8;return Y}function B(N,Q,I,Y,K,ce){var G,J,W=N.file,j=N.compression,se=ce!==h.utf8encode,he=f.transformTo("string",ce(W.name)),Oe=f.transformTo("string",h.utf8encode(W.name)),Be=W.comment,je=f.transformTo("string",ce(Be)),X=f.transformTo("string",h.utf8encode(Be)),de=Oe.length!==W.name.length,L=X.length!==Be.length,rt="",De="",we="",He=W.dir,ge=W.date,Le={crc32:0,compressedSize:0,uncompressedSize:0};Q&&!I||(Le.crc32=N.crc32,Le.compressedSize=N.compressedSize,Le.uncompressedSize=N.uncompressedSize);var fe=0;Q&&(fe|=8),se||!de&&!L||(fe|=2048);var Ee=0,At=0;He&&(Ee|=16),K==="UNIX"?(At=798,Ee|=function(ot,ct){var It=ot;return ot||(It=ct?16893:33204),(65535&It)<<16}(W.unixPermissions,He)):(At=20,Ee|=function(ot){return 63&(ot||0)}(W.dosPermissions)),G=ge.getUTCHours(),G<<=6,G|=ge.getUTCMinutes(),G<<=5,G|=ge.getUTCSeconds()/2,J=ge.getUTCFullYear()-1980,J<<=4,J|=ge.getUTCMonth()+1,J<<=5,J|=ge.getUTCDate(),de&&(De=V(1,1)+V(z(he),4)+Oe,rt+="up"+V(De.length,2)+De),L&&(we=V(1,1)+V(z(je),4)+X,rt+="uc"+V(we.length,2)+we);var ft="";return ft+=`
|
|
|
\0`,ft+=V(fe,2),ft+=j.magic,ft+=V(G,2),ft+=V(J,2),ft+=V(Le.crc32,4),ft+=V(Le.compressedSize,4),ft+=V(Le.uncompressedSize,4),ft+=V(he.length,2),ft+=V(rt.length,2),{fileRecord:S.LOCAL_FILE_HEADER+ft+he+rt,dirRecord:S.CENTRAL_FILE_HEADER+V(At,2)+ft+V(je.length,2)+"\0\0\0\0"+V(Ee,4)+V(Y,4)+he+rt+je}}var f=R("../utils"),E=R("../stream/GenericWorker"),h=R("../utf8"),z=R("../crc32"),S=R("../signature");function _(N,Q,I,Y){E.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=Q,this.zipPlatform=I,this.encodeFileName=Y,this.streamFiles=N,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}f.inherits(_,E),_.prototype.push=function(N){var Q=N.meta.percent||0,I=this.entriesCount,Y=this._sources.length;this.accumulate?this.contentBuffer.push(N):(this.bytesWritten+=N.data.length,E.prototype.push.call(this,{data:N.data,meta:{currentFile:this.currentFile,percent:I?(Q+100*(I-Y-1))/I:100}}))},_.prototype.openedSource=function(N){this.currentSourceOffset=this.bytesWritten,this.currentFile=N.file.name;var Q=this.streamFiles&&!N.file.dir;if(Q){var I=B(N,Q,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:I.fileRecord,meta:{percent:0}})}else this.accumulate=!0},_.prototype.closedSource=function(N){this.accumulate=!1;var Q=this.streamFiles&&!N.file.dir,I=B(N,Q,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(I.dirRecord),Q)this.push({data:function(Y){return S.DATA_DESCRIPTOR+V(Y.crc32,4)+V(Y.compressedSize,4)+V(Y.uncompressedSize,4)}(N),meta:{percent:100}});else for(this.push({data:I.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},_.prototype.flush=function(){for(var N=this.bytesWritten,Q=0;Q<this.dirRecords.length;Q++)this.push({data:this.dirRecords[Q],meta:{percent:100}});var I=this.bytesWritten-N,Y=function(K,ce,G,J,W){var j=f.transformTo("string",W(J));return S.CENTRAL_DIRECTORY_END+"\0\0\0\0"+V(K,2)+V(K,2)+V(ce,4)+V(G,4)+V(j.length,2)+j}(this.dirRecords.length,I,N,this.zipComment,this.encodeFileName);this.push({data:Y,meta:{percent:100}})},_.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},_.prototype.registerPrevious=function(N){this._sources.push(N);var Q=this;return N.on("data",function(I){Q.processChunk(I)}),N.on("end",function(){Q.closedSource(Q.previous.streamInfo),Q._sources.length?Q.prepareNextSource():Q.end()}),N.on("error",function(I){Q.error(I)}),this},_.prototype.resume=function(){return!!E.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},_.prototype.error=function(N){var Q=this._sources;if(!E.prototype.error.call(this,N))return!1;for(var I=0;I<Q.length;I++)try{Q[I].error(N)}catch(Y){}return!0},_.prototype.lock=function(){E.prototype.lock.call(this);for(var N=this._sources,Q=0;Q<N.length;Q++)N[Q].lock()},Ne.exports=_},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(R,Ne,te){"use strict";var V=R("../compressions"),B=R("./ZipFileWorker");te.generateWorker=function(f,E,h){var z=new B(E.streamFiles,h,E.platform,E.encodeFileName),S=0;try{f.forEach(function(_,N){S++;var Q=function(ce,G){var J=ce||G,W=V[J];if(!W)throw new Error(J+" is not a valid compression method !");return W}(N.options.compression,E.compression),I=N.options.compressionOptions||E.compressionOptions||{},Y=N.dir,K=N.date;N._compressWorker(Q,I).withStreamInfo("file",{name:_,dir:Y,date:K,comment:N.comment||"",unixPermissions:N.unixPermissions,dosPermissions:N.dosPermissions}).pipe(z)}),z.entriesCount=S}catch(_){z.error(_)}return z}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(R,Ne,te){"use strict";function V(){if(!(this instanceof V))return new V;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var B=new V;for(var f in this)typeof this[f]!="function"&&(B[f]=this[f]);return B}}(V.prototype=R("./object")).loadAsync=R("./load"),V.support=R("./support"),V.defaults=R("./defaults"),V.version="3.10.1",V.loadAsync=function(B,f){return new V().loadAsync(B,f)},V.external=R("./external"),Ne.exports=V},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(R,Ne,te){"use strict";var V=R("./utils"),B=R("./external"),f=R("./utf8"),E=R("./zipEntries"),h=R("./stream/Crc32Probe"),z=R("./nodejsUtils");function S(_){return new B.Promise(function(N,Q){var I=_.decompressed.getContentWorker().pipe(new h);I.on("error",function(Y){Q(Y)}).on("end",function(){I.streamInfo.crc32!==_.decompressed.crc32?Q(new Error("Corrupted zip : CRC32 mismatch")):N()}).resume()})}Ne.exports=function(_,N){var Q=this;return N=V.extend(N||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:f.utf8decode}),z.isNode&&z.isStream(_)?B.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):V.prepareContent("the loaded zip file",_,!0,N.optimizedBinaryString,N.base64).then(function(I){var Y=new E(N);return Y.load(I),Y}).then(function(I){var Y=[B.Promise.resolve(I)],K=I.files;if(N.checkCRC32)for(var ce=0;ce<K.length;ce++)Y.push(S(K[ce]));return B.Promise.all(Y)}).then(function(I){for(var Y=I.shift(),K=Y.files,ce=0;ce<K.length;ce++){var G=K[ce],J=G.fileNameStr,W=V.resolve(G.fileNameStr);Q.file(W,G.decompressed,{binary:!0,optimizedBinaryString:!0,date:G.date,dir:G.dir,comment:G.fileCommentStr.length?G.fileCommentStr:null,unixPermissions:G.unixPermissions,dosPermissions:G.dosPermissions,createFolders:N.createFolders}),G.dir||(Q.file(W).unsafeOriginalName=J)}return Y.zipComment.length&&(Q.comment=Y.zipComment),Q})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(R,Ne,te){"use strict";var V=R("../utils"),B=R("../stream/GenericWorker");function f(E,h){B.call(this,"Nodejs stream input adapter for "+E),this._upstreamEnded=!1,this._bindStream(h)}V.inherits(f,B),f.prototype._bindStream=function(E){var h=this;(this._stream=E).pause(),E.on("data",function(z){h.push({data:z,meta:{percent:0}})}).on("error",function(z){h.isPaused?this.generatedError=z:h.error(z)}).on("end",function(){h.isPaused?h._upstreamEnded=!0:h.end()})},f.prototype.pause=function(){return!!B.prototype.pause.call(this)&&(this._stream.pause(),!0)},f.prototype.resume=function(){return!!B.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},Ne.exports=f},{"../stream/GenericWorker":28,"../utils":32}],13:[function(R,Ne,te){"use strict";var V=R("readable-stream").Readable;function B(f,E,h){V.call(this,E),this._helper=f;var z=this;f.on("data",function(S,_){z.push(S)||z._helper.pause(),h&&h(_)}).on("error",function(S){z.emit("error",S)}).on("end",function(){z.push(null)})}R("../utils").inherits(B,V),B.prototype._read=function(){this._helper.resume()},Ne.exports=B},{"../utils":32,"readable-stream":16}],14:[function(R,Ne,te){"use strict";Ne.exports={isNode:typeof pe!="undefined",newBufferFrom:function(V,B){if(pe.from&&pe.from!==Uint8Array.from)return pe.from(V,B);if(typeof V=="number")throw new Error('The "data" argument must not be a number');return new pe(V,B)},allocBuffer:function(V){if(pe.alloc)return pe.alloc(V);var B=new pe(V);return B.fill(0),B},isBuffer:function(V){return pe.isBuffer(V)},isStream:function(V){return V&&typeof V.on=="function"&&typeof V.pause=="function"&&typeof V.resume=="function"}}},{}],15:[function(R,Ne,te){"use strict";function V(W,j,se){var he,Oe=f.getTypeOf(j),Be=f.extend(se||{},z);Be.date=Be.date||new Date,Be.compression!==null&&(Be.compression=Be.compression.toUpperCase()),typeof Be.unixPermissions=="string"&&(Be.unixPermissions=parseInt(Be.unixPermissions,8)),Be.unixPermissions&&16384&Be.unixPermissions&&(Be.dir=!0),Be.dosPermissions&&16&Be.dosPermissions&&(Be.dir=!0),Be.dir&&(W=K(W)),Be.createFolders&&(he=Y(W))&&ce.call(this,he,!0);var je=Oe==="string"&&Be.binary===!1&&Be.base64===!1;se&&se.binary!==void 0||(Be.binary=!je),(j instanceof S&&j.uncompressedSize===0||Be.dir||!j||j.length===0)&&(Be.base64=!1,Be.binary=!0,j="",Be.compression="STORE",Oe="string");var X=null;X=j instanceof S||j instanceof E?j:Q.isNode&&Q.isStream(j)?new I(W,j):f.prepareContent(W,j,Be.binary,Be.optimizedBinaryString,Be.base64);var de=new _(W,X,Be);this.files[W]=de}var B=R("./utf8"),f=R("./utils"),E=R("./stream/GenericWorker"),h=R("./stream/StreamHelper"),z=R("./defaults"),S=R("./compressedObject"),_=R("./zipObject"),N=R("./generate"),Q=R("./nodejsUtils"),I=R("./nodejs/NodejsStreamInputAdapter"),Y=function(W){W.slice(-1)==="/"&&(W=W.substring(0,W.length-1));var j=W.lastIndexOf("/");return 0<j?W.substring(0,j):""},K=function(W){return W.slice(-1)!=="/"&&(W+="/"),W},ce=function(W,j){return j=j!==void 0?j:z.createFolders,W=K(W),this.files[W]||V.call(this,W,null,{dir:!0,createFolders:j}),this.files[W]};function G(W){return Object.prototype.toString.call(W)==="[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(W){var j,se,he;for(j in this.files)he=this.files[j],(se=j.slice(this.root.length,j.length))&&j.slice(0,this.root.length)===this.root&&W(se,he)},filter:function(W){var j=[];return this.forEach(function(se,he){W(se,he)&&j.push(he)}),j},file:function(W,j,se){if(arguments.length!==1)return W=this.root+W,V.call(this,W,j,se),this;if(G(W)){var he=W;return this.filter(function(Be,je){return!je.dir&&he.test(Be)})}var Oe=this.files[this.root+W];return Oe&&!Oe.dir?Oe:null},folder:function(W){if(!W)return this;if(G(W))return this.filter(function(Oe,Be){return Be.dir&&W.test(Oe)});var j=this.root+W,se=ce.call(this,j),he=this.clone();return he.root=se.name,he},remove:function(W){W=this.root+W;var j=this.files[W];if(j||(W.slice(-1)!=="/"&&(W+="/"),j=this.files[W]),j&&!j.dir)delete this.files[W];else for(var se=this.filter(function(Oe,Be){return Be.name.slice(0,W.length)===W}),he=0;he<se.length;he++)delete this.files[se[he].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(W){var j,se={};try{if((se=f.extend(W||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:B.utf8encode})).type=se.type.toLowerCase(),se.compression=se.compression.toUpperCase(),se.type==="binarystring"&&(se.type="string"),!se.type)throw new Error("No output type specified.");f.checkSupport(se.type),se.platform!=="darwin"&&se.platform!=="freebsd"&&se.platform!=="linux"&&se.platform!=="sunos"||(se.platform="UNIX"),se.platform==="win32"&&(se.platform="DOS");var he=se.comment||this.comment||"";j=N.generateWorker(this,se,he)}catch(Oe){(j=new E("error")).error(Oe)}return new h(j,se.type||"string",se.mimeType)},generateAsync:function(W,j){return this.generateInternalStream(W).accumulate(j)},generateNodeStream:function(W,j){return(W=W||{}).type||(W.type="nodebuffer"),this.generateInternalStream(W).toNodejsStream(j)}};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(R,Ne,te){"use strict";Ne.exports=R("stream")},{stream:void 0}],17:[function(R,Ne,te){"use strict";var V=R("./DataReader");function B(f){V.call(this,f);for(var E=0;E<this.data.length;E++)f[E]=255&f[E]}R("../utils").inherits(B,V),B.prototype.byteAt=function(f){return this.data[this.zero+f]},B.prototype.lastIndexOfSignature=function(f){for(var E=f.charCodeAt(0),h=f.charCodeAt(1),z=f.charCodeAt(2),S=f.charCodeAt(3),_=this.length-4;0<=_;--_)if(this.data[_]===E&&this.data[_+1]===h&&this.data[_+2]===z&&this.data[_+3]===S)return _-this.zero;return-1},B.prototype.readAndCheckSignature=function(f){var E=f.charCodeAt(0),h=f.charCodeAt(1),z=f.charCodeAt(2),S=f.charCodeAt(3),_=this.readData(4);return E===_[0]&&h===_[1]&&z===_[2]&&S===_[3]},B.prototype.readData=function(f){if(this.checkOffset(f),f===0)return[];var E=this.data.slice(this.zero+this.index,this.zero+this.index+f);return this.index+=f,E},Ne.exports=B},{"../utils":32,"./DataReader":18}],18:[function(R,Ne,te){"use strict";var V=R("../utils");function B(f){this.data=f,this.length=f.length,this.index=0,this.zero=0}B.prototype={checkOffset:function(f){this.checkIndex(this.index+f)},checkIndex:function(f){if(this.length<this.zero+f||f<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+f+"). Corrupted zip ?")},setIndex:function(f){this.checkIndex(f),this.index=f},skip:function(f){this.setIndex(this.index+f)},byteAt:function(){},readInt:function(f){var E,h=0;for(this.checkOffset(f),E=this.index+f-1;E>=this.index;E--)h=(h<<8)+this.byteAt(E);return this.index+=f,h},readString:function(f){return V.transformTo("string",this.readData(f))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var f=this.readInt(4);return new Date(Date.UTC(1980+(f>>25&127),(f>>21&15)-1,f>>16&31,f>>11&31,f>>5&63,(31&f)<<1))}},Ne.exports=B},{"../utils":32}],19:[function(R,Ne,te){"use strict";var V=R("./Uint8ArrayReader");function B(f){V.call(this,f)}R("../utils").inherits(B,V),B.prototype.readData=function(f){this.checkOffset(f);var E=this.data.slice(this.zero+this.index,this.zero+this.index+f);return this.index+=f,E},Ne.exports=B},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(R,Ne,te){"use strict";var V=R("./DataReader");function B(f){V.call(this,f)}R("../utils").inherits(B,V),B.prototype.byteAt=function(f){return this.data.charCodeAt(this.zero+f)},B.prototype.lastIndexOfSignature=function(f){return this.data.lastIndexOf(f)-this.zero},B.prototype.readAndCheckSignature=function(f){return f===this.readData(4)},B.prototype.readData=function(f){this.checkOffset(f);var E=this.data.slice(this.zero+this.index,this.zero+this.index+f);return this.index+=f,E},Ne.exports=B},{"../utils":32,"./DataReader":18}],21:[function(R,Ne,te){"use strict";var V=R("./ArrayReader");function B(f){V.call(this,f)}R("../utils").inherits(B,V),B.prototype.readData=function(f){if(this.checkOffset(f),f===0)return new Uint8Array(0);var E=this.data.subarray(this.zero+this.index,this.zero+this.index+f);return this.index+=f,E},Ne.exports=B},{"../utils":32,"./ArrayReader":17}],22:[function(R,Ne,te){"use strict";var V=R("../utils"),B=R("../support"),f=R("./ArrayReader"),E=R("./StringReader"),h=R("./NodeBufferReader"),z=R("./Uint8ArrayReader");Ne.exports=function(S){var _=V.getTypeOf(S);return V.checkSupport(_),_!=="string"||B.uint8array?_==="nodebuffer"?new h(S):B.uint8array?new z(V.transformTo("uint8array",S)):new f(V.transformTo("array",S)):new E(S)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(R,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(R,Ne,te){"use strict";var V=R("./GenericWorker"),B=R("../utils");function f(E){V.call(this,"ConvertWorker to "+E),this.destType=E}B.inherits(f,V),f.prototype.processChunk=function(E){this.push({data:B.transformTo(this.destType,E.data),meta:E.meta})},Ne.exports=f},{"../utils":32,"./GenericWorker":28}],25:[function(R,Ne,te){"use strict";var V=R("./GenericWorker"),B=R("../crc32");function f(){V.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}R("../utils").inherits(f,V),f.prototype.processChunk=function(E){this.streamInfo.crc32=B(E.data,this.streamInfo.crc32||0),this.push(E)},Ne.exports=f},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(R,Ne,te){"use strict";var V=R("../utils"),B=R("./GenericWorker");function f(E){B.call(this,"DataLengthProbe for "+E),this.propName=E,this.withStreamInfo(E,0)}V.inherits(f,B),f.prototype.processChunk=function(E){if(E){var h=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=h+E.data.length}B.prototype.processChunk.call(this,E)},Ne.exports=f},{"../utils":32,"./GenericWorker":28}],27:[function(R,Ne,te){"use strict";var V=R("../utils"),B=R("./GenericWorker");function f(E){B.call(this,"DataWorker");var h=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,E.then(function(z){h.dataIsReady=!0,h.data=z,h.max=z&&z.length||0,h.type=V.getTypeOf(z),h.isPaused||h._tickAndRepeat()},function(z){h.error(z)})}V.inherits(f,B),f.prototype.cleanUp=function(){B.prototype.cleanUp.call(this),this.data=null},f.prototype.resume=function(){return!!B.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,V.delay(this._tickAndRepeat,[],this)),!0)},f.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(V.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},f.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var E=null,h=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":E=this.data.substring(this.index,h);break;case"uint8array":E=this.data.subarray(this.index,h);break;case"array":case"nodebuffer":E=this.data.slice(this.index,h)}return this.index=h,this.push({data:E,meta:{percent:this.max?this.index/this.max*100:0}})},Ne.exports=f},{"../utils":32,"./GenericWorker":28}],28:[function(R,Ne,te){"use strict";function V(B){this.name=B||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}V.prototype={push:function(B){this.emit("data",B)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(B){this.emit("error",B)}return!0},error:function(B){return!this.isFinished&&(this.isPaused?this.generatedError=B:(this.isFinished=!0,this.emit("error",B),this.previous&&this.previous.error(B),this.cleanUp()),!0)},on:function(B,f){return this._listeners[B].push(f),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(B,f){if(this._listeners[B])for(var E=0;E<this._listeners[B].length;E++)this._listeners[B][E].call(this,f)},pipe:function(B){return B.registerPrevious(this)},registerPrevious:function(B){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=B.streamInfo,this.mergeStreamInfo(),this.previous=B;var f=this;return B.on("data",function(E){f.processChunk(E)}),B.on("end",function(){f.end()}),B.on("error",function(E){f.error(E)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var B=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),B=!0),this.previous&&this.previous.resume(),!B},flush:function(){},processChunk:function(B){this.push(B)},withStreamInfo:function(B,f){return this.extraStreamInfo[B]=f,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var B in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,B)&&(this.streamInfo[B]=this.extraStreamInfo[B])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var B="Worker "+this.name;return this.previous?this.previous+" -> "+B:B}},Ne.exports=V},{}],29:[function(R,Ne,te){"use strict";var V=R("../utils"),B=R("./ConvertWorker"),f=R("./GenericWorker"),E=R("../base64"),h=R("../support"),z=R("../external"),S=null;if(h.nodestream)try{S=R("../nodejs/NodejsStreamOutputAdapter")}catch(Q){}function _(Q,I){return new z.Promise(function(Y,K){var ce=[],G=Q._internalType,J=Q._outputType,W=Q._mimeType;Q.on("data",function(j,se){ce.push(j),I&&I(se)}).on("error",function(j){ce=[],K(j)}).on("end",function(){try{var j=function(se,he,Oe){switch(se){case"blob":return V.newBlob(V.transformTo("arraybuffer",he),Oe);case"base64":return E.encode(he);default:return V.transformTo(se,he)}}(J,function(se,he){var Oe,Be=0,je=null,X=0;for(Oe=0;Oe<he.length;Oe++)X+=he[Oe].length;switch(se){case"string":return he.join("");case"array":return Array.prototype.concat.apply([],he);case"uint8array":for(je=new Uint8Array(X),Oe=0;Oe<he.length;Oe++)je.set(he[Oe],Be),Be+=he[Oe].length;return je;case"nodebuffer":return pe.concat(he);default:throw new Error("concat : unsupported type '"+se+"'")}}(G,ce),W);Y(j)}catch(se){K(se)}ce=[]}).resume()})}function N(Q,I,Y){var K=I;switch(I){case"blob":case"arraybuffer":K="uint8array";break;case"base64":K="string"}try{this._internalType=K,this._outputType=I,this._mimeType=Y,V.checkSupport(K),this._worker=Q.pipe(new B(K)),Q.lock()}catch(ce){this._worker=new f("error"),this._worker.error(ce)}}N.prototype={accumulate:function(Q){return _(this,Q)},on:function(Q,I){var Y=this;return Q==="data"?this._worker.on(Q,function(K){I.call(Y,K.data,K.meta)}):this._worker.on(Q,function(){V.delay(I,arguments,Y)}),this},resume:function(){return V.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(Q){if(V.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new S(this,{objectMode:this._outputType!=="nodebuffer"},Q)}},Ne.exports=N},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(R,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 V=new ArrayBuffer(0);try{te.blob=new Blob([V],{type:"application/zip"}).size===0}catch(f){try{var B=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);B.append(V),te.blob=B.getBlob("application/zip").size===0}catch(E){te.blob=!1}}}try{te.nodestream=!!R("readable-stream").Readable}catch(f){te.nodestream=!1}},{"readable-stream":16}],31:[function(R,Ne,te){"use strict";for(var V=R("./utils"),B=R("./support"),f=R("./nodejsUtils"),E=R("./stream/GenericWorker"),h=new Array(256),z=0;z<256;z++)h[z]=252<=z?6:248<=z?5:240<=z?4:224<=z?3:192<=z?2:1;h[254]=h[254]=1;function S(){E.call(this,"utf-8 decode"),this.leftOver=null}function _(){E.call(this,"utf-8 encode")}te.utf8encode=function(N){return B.nodebuffer?f.newBufferFrom(N,"utf-8"):function(Q){var I,Y,K,ce,G,J=Q.length,W=0;for(ce=0;ce<J;ce++)(64512&(Y=Q.charCodeAt(ce)))==55296&&ce+1<J&&(64512&(K=Q.charCodeAt(ce+1)))==56320&&(Y=65536+(Y-55296<<10)+(K-56320),ce++),W+=Y<128?1:Y<2048?2:Y<65536?3:4;for(I=B.uint8array?new Uint8Array(W):new Array(W),ce=G=0;G<W;ce++)(64512&(Y=Q.charCodeAt(ce)))==55296&&ce+1<J&&(64512&(K=Q.charCodeAt(ce+1)))==56320&&(Y=65536+(Y-55296<<10)+(K-56320),ce++),Y<128?I[G++]=Y:(Y<2048?I[G++]=192|Y>>>6:(Y<65536?I[G++]=224|Y>>>12:(I[G++]=240|Y>>>18,I[G++]=128|Y>>>12&63),I[G++]=128|Y>>>6&63),I[G++]=128|63&Y);return I}(N)},te.utf8decode=function(N){return B.nodebuffer?V.transformTo("nodebuffer",N).toString("utf-8"):function(Q){var I,Y,K,ce,G=Q.length,J=new Array(2*G);for(I=Y=0;I<G;)if((K=Q[I++])<128)J[Y++]=K;else if(4<(ce=h[K]))J[Y++]=65533,I+=ce-1;else{for(K&=ce===2?31:ce===3?15:7;1<ce&&I<G;)K=K<<6|63&Q[I++],ce--;1<ce?J[Y++]=65533:K<65536?J[Y++]=K:(K-=65536,J[Y++]=55296|K>>10&1023,J[Y++]=56320|1023&K)}return J.length!==Y&&(J.subarray?J=J.subarray(0,Y):J.length=Y),V.applyFromCharCode(J)}(N=V.transformTo(B.uint8array?"uint8array":"array",N))},V.inherits(S,E),S.prototype.processChunk=function(N){var Q=V.transformTo(B.uint8array?"uint8array":"array",N.data);if(this.leftOver&&this.leftOver.length){if(B.uint8array){var I=Q;(Q=new Uint8Array(I.length+this.leftOver.length)).set(this.leftOver,0),Q.set(I,this.leftOver.length)}else Q=this.leftOver.concat(Q);this.leftOver=null}var Y=function(ce,G){var J;for((G=G||ce.length)>ce.length&&(G=ce.length),J=G-1;0<=J&&(192&ce[J])==128;)J--;return J<0||J===0?G:J+h[ce[J]]>G?J:G}(Q),K=Q;Y!==Q.length&&(B.uint8array?(K=Q.subarray(0,Y),this.leftOver=Q.subarray(Y,Q.length)):(K=Q.slice(0,Y),this.leftOver=Q.slice(Y,Q.length))),this.push({data:te.utf8decode(K),meta:N.meta})},S.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:te.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},te.Utf8DecodeWorker=S,V.inherits(_,E),_.prototype.processChunk=function(N){this.push({data:te.utf8encode(N.data),meta:N.meta})},te.Utf8EncodeWorker=_},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(R,Ne,te){"use strict";var V=R("./support"),B=R("./base64"),f=R("./nodejsUtils"),E=R("./external");function h(I){return I}function z(I,Y){for(var K=0;K<I.length;++K)Y[K]=255&I.charCodeAt(K);return Y}R("setimmediate"),te.newBlob=function(I,Y){te.checkSupport("blob");try{return new Blob([I],{type:Y})}catch(ce){try{var K=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return K.append(I),K.getBlob(Y)}catch(G){throw new Error("Bug : can't construct the Blob.")}}};var S={stringifyByChunk:function(I,Y,K){var ce=[],G=0,J=I.length;if(J<=K)return String.fromCharCode.apply(null,I);for(;G<J;)Y==="array"||Y==="nodebuffer"?ce.push(String.fromCharCode.apply(null,I.slice(G,Math.min(G+K,J)))):ce.push(String.fromCharCode.apply(null,I.subarray(G,Math.min(G+K,J)))),G+=K;return ce.join("")},stringifyByChar:function(I){for(var Y="",K=0;K<I.length;K++)Y+=String.fromCharCode(I[K]);return Y},applyCanBeUsed:{uint8array:function(){try{return V.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(I){return!1}}(),nodebuffer:function(){try{return V.nodebuffer&&String.fromCharCode.apply(null,f.allocBuffer(1)).length===1}catch(I){return!1}}()}};function _(I){var Y=65536,K=te.getTypeOf(I),ce=!0;if(K==="uint8array"?ce=S.applyCanBeUsed.uint8array:K==="nodebuffer"&&(ce=S.applyCanBeUsed.nodebuffer),ce)for(;1<Y;)try{return S.stringifyByChunk(I,K,Y)}catch(G){Y=Math.floor(Y/2)}return S.stringifyByChar(I)}function N(I,Y){for(var K=0;K<I.length;K++)Y[K]=I[K];return Y}te.applyFromCharCode=_;var Q={};Q.string={string:h,array:function(I){return z(I,new Array(I.length))},arraybuffer:function(I){return Q.string.uint8array(I).buffer},uint8array:function(I){return z(I,new Uint8Array(I.length))},nodebuffer:function(I){return z(I,f.allocBuffer(I.length))}},Q.array={string:_,array:h,arraybuffer:function(I){return new Uint8Array(I).buffer},uint8array:function(I){return new Uint8Array(I)},nodebuffer:function(I){return f.newBufferFrom(I)}},Q.arraybuffer={string:function(I){return _(new Uint8Array(I))},array:function(I){return N(new Uint8Array(I),new Array(I.byteLength))},arraybuffer:h,uint8array:function(I){return new Uint8Array(I)},nodebuffer:function(I){return f.newBufferFrom(new Uint8Array(I))}},Q.uint8array={string:_,array:function(I){return N(I,new Array(I.length))},arraybuffer:function(I){return I.buffer},uint8array:h,nodebuffer:function(I){return f.newBufferFrom(I)}},Q.nodebuffer={string:_,array:function(I){return N(I,new Array(I.length))},arraybuffer:function(I){return Q.nodebuffer.uint8array(I).buffer},uint8array:function(I){return N(I,new Uint8Array(I.length))},nodebuffer:h},te.transformTo=function(I,Y){if(Y=Y||"",!I)return Y;te.checkSupport(I);var K=te.getTypeOf(Y);return Q[K][I](Y)},te.resolve=function(I){for(var Y=I.split("/"),K=[],ce=0;ce<Y.length;ce++){var G=Y[ce];G==="."||G===""&&ce!==0&&ce!==Y.length-1||(G===".."?K.pop():K.push(G))}return K.join("/")},te.getTypeOf=function(I){return typeof I=="string"?"string":Object.prototype.toString.call(I)==="[object Array]"?"array":V.nodebuffer&&f.isBuffer(I)?"nodebuffer":V.uint8array&&I instanceof Uint8Array?"uint8array":V.arraybuffer&&I instanceof ArrayBuffer?"arraybuffer":void 0},te.checkSupport=function(I){if(!V[I.toLowerCase()])throw new Error(I+" is not supported by this platform")},te.MAX_VALUE_16BITS=65535,te.MAX_VALUE_32BITS=-1,te.pretty=function(I){var Y,K,ce="";for(K=0;K<(I||"").length;K++)ce+="\\x"+((Y=I.charCodeAt(K))<16?"0":"")+Y.toString(16).toUpperCase();return ce},te.delay=function(I,Y,K){setImmediate(function(){I.apply(K||null,Y||[])})},te.inherits=function(I,Y){function K(){}K.prototype=Y.prototype,I.prototype=new K},te.extend=function(){var I,Y,K={};for(I=0;I<arguments.length;I++)for(Y in arguments[I])Object.prototype.hasOwnProperty.call(arguments[I],Y)&&K[Y]===void 0&&(K[Y]=arguments[I][Y]);return K},te.prepareContent=function(I,Y,K,ce,G){return E.Promise.resolve(Y).then(function(J){return V.blob&&(J instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(J))!==-1)&&typeof FileReader!="undefined"?new E.Promise(function(W,j){var se=new FileReader;se.onload=function(he){W(he.target.result)},se.onerror=function(he){j(he.target.error)},se.readAsArrayBuffer(J)}):J}).then(function(J){var W=te.getTypeOf(J);return W?(W==="arraybuffer"?J=te.transformTo("uint8array",J):W==="string"&&(G?J=B.decode(J):K&&ce!==!0&&(J=function(j){return z(j,V.uint8array?new Uint8Array(j.length):new Array(j.length))}(J))),J):E.Promise.reject(new Error("Can't read the data of '"+I+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(R,Ne,te){"use strict";var V=R("./reader/readerFor"),B=R("./utils"),f=R("./signature"),E=R("./zipEntry"),h=R("./support");function z(S){this.files=[],this.loadOptions=S}z.prototype={checkSignature:function(S){if(!this.reader.readAndCheckSignature(S)){this.reader.index-=4;var _=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+B.pretty(_)+", expected "+B.pretty(S)+")")}},isSignature:function(S,_){var N=this.reader.index;this.reader.setIndex(S);var Q=this.reader.readString(4)===_;return this.reader.setIndex(N),Q},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var S=this.reader.readData(this.zipCommentLength),_=h.uint8array?"uint8array":"array",N=B.transformTo(_,S);this.zipComment=this.loadOptions.decodeFileName(N)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var S,_,N,Q=this.zip64EndOfCentralSize-44;0<Q;)S=this.reader.readInt(2),_=this.reader.readInt(4),N=this.reader.readData(_),this.zip64ExtensibleData[S]={id:S,length:_,value:N}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var S,_;for(S=0;S<this.files.length;S++)_=this.files[S],this.reader.setIndex(_.localHeaderOffset),this.checkSignature(f.LOCAL_FILE_HEADER),_.readLocalPart(this.reader),_.handleUTF8(),_.processAttributes()},readCentralDir:function(){var S;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(f.CENTRAL_FILE_HEADER);)(S=new E({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(S);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var S=this.reader.lastIndexOfSignature(f.CENTRAL_DIRECTORY_END);if(S<0)throw this.isSignature(0,f.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(S);var _=S;if(this.checkSignature(f.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===B.MAX_VALUE_16BITS||this.diskWithCentralDirStart===B.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===B.MAX_VALUE_16BITS||this.centralDirRecords===B.MAX_VALUE_16BITS||this.centralDirSize===B.MAX_VALUE_32BITS||this.centralDirOffset===B.MAX_VALUE_32BITS){if(this.zip64=!0,(S=this.reader.lastIndexOfSignature(f.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(S),this.checkSignature(f.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,f.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(f.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(f.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var N=this.centralDirOffset+this.centralDirSize;this.zip64&&(N+=20,N+=12+this.zip64EndOfCentralSize);var Q=_-N;if(0<Q)this.isSignature(_,f.CENTRAL_FILE_HEADER)||(this.reader.zero=Q);else if(Q<0)throw new Error("Corrupted zip: missing "+Math.abs(Q)+" bytes.")},prepareReader:function(S){this.reader=V(S)},load:function(S){this.prepareReader(S),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},Ne.exports=z},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(R,Ne,te){"use strict";var V=R("./reader/readerFor"),B=R("./utils"),f=R("./compressedObject"),E=R("./crc32"),h=R("./utf8"),z=R("./compressions"),S=R("./support");function _(N,Q){this.options=N,this.loadOptions=Q}_.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(N){var Q,I;if(N.skip(22),this.fileNameLength=N.readInt(2),I=N.readInt(2),this.fileName=N.readData(this.fileNameLength),N.skip(I),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((Q=function(Y){for(var K in z)if(Object.prototype.hasOwnProperty.call(z,K)&&z[K].magic===Y)return z[K];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+B.pretty(this.compressionMethod)+" unknown (inner file : "+B.transformTo("string",this.fileName)+")");this.decompressed=new f(this.compressedSize,this.uncompressedSize,this.crc32,Q,N.readData(this.compressedSize))},readCentralPart:function(N){this.versionMadeBy=N.readInt(2),N.skip(2),this.bitFlag=N.readInt(2),this.compressionMethod=N.readString(2),this.date=N.readDate(),this.crc32=N.readInt(4),this.compressedSize=N.readInt(4),this.uncompressedSize=N.readInt(4);var Q=N.readInt(2);if(this.extraFieldsLength=N.readInt(2),this.fileCommentLength=N.readInt(2),this.diskNumberStart=N.readInt(2),this.internalFileAttributes=N.readInt(2),this.externalFileAttributes=N.readInt(4),this.localHeaderOffset=N.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");N.skip(Q),this.readExtraFields(N),this.parseZIP64ExtraField(N),this.fileComment=N.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var N=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),N==0&&(this.dosPermissions=63&this.externalFileAttributes),N==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var N=V(this.extraFields[1].value);this.uncompressedSize===B.MAX_VALUE_32BITS&&(this.uncompressedSize=N.readInt(8)),this.compressedSize===B.MAX_VALUE_32BITS&&(this.compressedSize=N.readInt(8)),this.localHeaderOffset===B.MAX_VALUE_32BITS&&(this.localHeaderOffset=N.readInt(8)),this.diskNumberStart===B.MAX_VALUE_32BITS&&(this.diskNumberStart=N.readInt(4))}},readExtraFields:function(N){var Q,I,Y,K=N.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});N.index+4<K;)Q=N.readInt(2),I=N.readInt(2),Y=N.readData(I),this.extraFields[Q]={id:Q,length:I,value:Y};N.setIndex(K)},handleUTF8:function(){var N=S.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=h.utf8decode(this.fileName),this.fileCommentStr=h.utf8decode(this.fileComment);else{var Q=this.findExtraFieldUnicodePath();if(Q!==null)this.fileNameStr=Q;else{var I=B.transformTo(N,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(I)}var Y=this.findExtraFieldUnicodeComment();if(Y!==null)this.fileCommentStr=Y;else{var K=B.transformTo(N,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(K)}}},findExtraFieldUnicodePath:function(){var N=this.extraFields[28789];if(N){var Q=V(N.value);return Q.readInt(1)!==1||E(this.fileName)!==Q.readInt(4)?null:h.utf8decode(Q.readData(N.length-5))}return null},findExtraFieldUnicodeComment:function(){var N=this.extraFields[25461];if(N){var Q=V(N.value);return Q.readInt(1)!==1||E(this.fileComment)!==Q.readInt(4)?null:h.utf8decode(Q.readData(N.length-5))}return null}},Ne.exports=_},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(R,Ne,te){"use strict";function V(Q,I,Y){this.name=Q,this.dir=Y.dir,this.date=Y.date,this.comment=Y.comment,this.unixPermissions=Y.unixPermissions,this.dosPermissions=Y.dosPermissions,this._data=I,this._dataBinary=Y.binary,this.options={compression:Y.compression,compressionOptions:Y.compressionOptions}}var B=R("./stream/StreamHelper"),f=R("./stream/DataWorker"),E=R("./utf8"),h=R("./compressedObject"),z=R("./stream/GenericWorker");V.prototype={internalStream:function(Q){var I=null,Y="string";try{if(!Q)throw new Error("No output type specified.");var K=(Y=Q.toLowerCase())==="string"||Y==="text";Y!=="binarystring"&&Y!=="text"||(Y="string"),I=this._decompressWorker();var ce=!this._dataBinary;ce&&!K&&(I=I.pipe(new E.Utf8EncodeWorker)),!ce&&K&&(I=I.pipe(new E.Utf8DecodeWorker))}catch(G){(I=new z("error")).error(G)}return new B(I,Y,"")},async:function(Q,I){return this.internalStream(Q).accumulate(I)},nodeStream:function(Q,I){return this.internalStream(Q||"nodebuffer").toNodejsStream(I)},_compressWorker:function(Q,I){if(this._data instanceof h&&this._data.compression.magic===Q.magic)return this._data.getCompressedWorker();var Y=this._decompressWorker();return this._dataBinary||(Y=Y.pipe(new E.Utf8EncodeWorker)),h.createWorkerFrom(Y,Q,I)},_decompressWorker:function(){return this._data instanceof h?this._data.getContentWorker():this._data instanceof z?this._data:new f(this._data)}};for(var S=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],_=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},N=0;N<S.length;N++)V.prototype[S[N]]=_;Ne.exports=V},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(R,Ne,te){(function(V){"use strict";var B,f,E=V.MutationObserver||V.WebKitMutationObserver;if(E){var h=0,z=new E(Q),S=V.document.createTextNode("");z.observe(S,{characterData:!0}),B=function(){S.data=h=++h%2}}else if(V.setImmediate||V.MessageChannel===void 0)B="document"in V&&"onreadystatechange"in V.document.createElement("script")?function(){var I=V.document.createElement("script");I.onreadystatechange=function(){Q(),I.onreadystatechange=null,I.parentNode.removeChild(I),I=null},V.document.documentElement.appendChild(I)}:function(){setTimeout(Q,0)};else{var _=new V.MessageChannel;_.port1.onmessage=Q,B=function(){_.port2.postMessage(0)}}var N=[];function Q(){var I,Y;f=!0;for(var K=N.length;K;){for(Y=N,N=[],I=-1;++I<K;)Y[I]();K=N.length}f=!1}Ne.exports=function(I){N.push(I)!==1||f||B()}}).call(this,typeof w.g!="undefined"?w.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(R,Ne,te){"use strict";var V=R("immediate");function B(){}var f={},E=["REJECTED"],h=["FULFILLED"],z=["PENDING"];function S(K){if(typeof K!="function")throw new TypeError("resolver must be a function");this.state=z,this.queue=[],this.outcome=void 0,K!==B&&I(this,K)}function _(K,ce,G){this.promise=K,typeof ce=="function"&&(this.onFulfilled=ce,this.callFulfilled=this.otherCallFulfilled),typeof G=="function"&&(this.onRejected=G,this.callRejected=this.otherCallRejected)}function N(K,ce,G){V(function(){var J;try{J=ce(G)}catch(W){return f.reject(K,W)}J===K?f.reject(K,new TypeError("Cannot resolve promise with itself")):f.resolve(K,J)})}function Q(K){var ce=K&&K.then;if(K&&(typeof K=="object"||typeof K=="function")&&typeof ce=="function")return function(){ce.apply(K,arguments)}}function I(K,ce){var G=!1;function J(se){G||(G=!0,f.reject(K,se))}function W(se){G||(G=!0,f.resolve(K,se))}var j=Y(function(){ce(W,J)});j.status==="error"&&J(j.value)}function Y(K,ce){var G={};try{G.value=K(ce),G.status="success"}catch(J){G.status="error",G.value=J}return G}(Ne.exports=S).prototype.finally=function(K){if(typeof K!="function")return this;var ce=this.constructor;return this.then(function(G){return ce.resolve(K()).then(function(){return G})},function(G){return ce.resolve(K()).then(function(){throw G})})},S.prototype.catch=function(K){return this.then(null,K)},S.prototype.then=function(K,ce){if(typeof K!="function"&&this.state===h||typeof ce!="function"&&this.state===E)return this;var G=new this.constructor(B);return this.state!==z?N(G,this.state===h?K:ce,this.outcome):this.queue.push(new _(G,K,ce)),G},_.prototype.callFulfilled=function(K){f.resolve(this.promise,K)},_.prototype.otherCallFulfilled=function(K){N(this.promise,this.onFulfilled,K)},_.prototype.callRejected=function(K){f.reject(this.promise,K)},_.prototype.otherCallRejected=function(K){N(this.promise,this.onRejected,K)},f.resolve=function(K,ce){var G=Y(Q,ce);if(G.status==="error")return f.reject(K,G.value);var J=G.value;if(J)I(K,J);else{K.state=h,K.outcome=ce;for(var W=-1,j=K.queue.length;++W<j;)K.queue[W].callFulfilled(ce)}return K},f.reject=function(K,ce){K.state=E,K.outcome=ce;for(var G=-1,J=K.queue.length;++G<J;)K.queue[G].callRejected(ce);return K},S.resolve=function(K){return K instanceof this?K:f.resolve(new this(B),K)},S.reject=function(K){var ce=new this(B);return f.reject(ce,K)},S.all=function(K){var ce=this;if(Object.prototype.toString.call(K)!=="[object Array]")return this.reject(new TypeError("must be an array"));var G=K.length,J=!1;if(!G)return this.resolve([]);for(var W=new Array(G),j=0,se=-1,he=new this(B);++se<G;)Oe(K[se],se);return he;function Oe(Be,je){ce.resolve(Be).then(function(X){W[je]=X,++j!==G||J||(J=!0,f.resolve(he,W))},function(X){J||(J=!0,f.reject(he,X))})}},S.race=function(K){var ce=this;if(Object.prototype.toString.call(K)!=="[object Array]")return this.reject(new TypeError("must be an array"));var G=K.length,J=!1;if(!G)return this.resolve([]);for(var W=-1,j=new this(B);++W<G;)se=K[W],ce.resolve(se).then(function(he){J||(J=!0,f.resolve(j,he))},function(he){J||(J=!0,f.reject(j,he))});var se;return j}},{immediate:36}],38:[function(R,Ne,te){"use strict";var V={};(0,R("./lib/utils/common").assign)(V,R("./lib/deflate"),R("./lib/inflate"),R("./lib/zlib/constants")),Ne.exports=V},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(R,Ne,te){"use strict";var V=R("./zlib/deflate"),B=R("./utils/common"),f=R("./utils/strings"),E=R("./zlib/messages"),h=R("./zlib/zstream"),z=Object.prototype.toString,S=0,_=-1,N=0,Q=8;function I(K){if(!(this instanceof I))return new I(K);this.options=B.assign({level:_,method:Q,chunkSize:16384,windowBits:15,memLevel:8,strategy:N,to:""},K||{});var ce=this.options;ce.raw&&0<ce.windowBits?ce.windowBits=-ce.windowBits:ce.gzip&&0<ce.windowBits&&ce.windowBits<16&&(ce.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var G=V.deflateInit2(this.strm,ce.level,ce.method,ce.windowBits,ce.memLevel,ce.strategy);if(G!==S)throw new Error(E[G]);if(ce.header&&V.deflateSetHeader(this.strm,ce.header),ce.dictionary){var J;if(J=typeof ce.dictionary=="string"?f.string2buf(ce.dictionary):z.call(ce.dictionary)==="[object ArrayBuffer]"?new Uint8Array(ce.dictionary):ce.dictionary,(G=V.deflateSetDictionary(this.strm,J))!==S)throw new Error(E[G]);this._dict_set=!0}}function Y(K,ce){var G=new I(ce);if(G.push(K,!0),G.err)throw G.msg||E[G.err];return G.result}I.prototype.push=function(K,ce){var G,J,W=this.strm,j=this.options.chunkSize;if(this.ended)return!1;J=ce===~~ce?ce:ce===!0?4:0,typeof K=="string"?W.input=f.string2buf(K):z.call(K)==="[object ArrayBuffer]"?W.input=new Uint8Array(K):W.input=K,W.next_in=0,W.avail_in=W.input.length;do{if(W.avail_out===0&&(W.output=new B.Buf8(j),W.next_out=0,W.avail_out=j),(G=V.deflate(W,J))!==1&&G!==S)return this.onEnd(G),!(this.ended=!0);W.avail_out!==0&&(W.avail_in!==0||J!==4&&J!==2)||(this.options.to==="string"?this.onData(f.buf2binstring(B.shrinkBuf(W.output,W.next_out))):this.onData(B.shrinkBuf(W.output,W.next_out)))}while((0<W.avail_in||W.avail_out===0)&&G!==1);return J===4?(G=V.deflateEnd(this.strm),this.onEnd(G),this.ended=!0,G===S):J!==2||(this.onEnd(S),!(W.avail_out=0))},I.prototype.onData=function(K){this.chunks.push(K)},I.prototype.onEnd=function(K){K===S&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=B.flattenChunks(this.chunks)),this.chunks=[],this.err=K,this.msg=this.strm.msg},te.Deflate=I,te.deflate=Y,te.deflateRaw=function(K,ce){return(ce=ce||{}).raw=!0,Y(K,ce)},te.gzip=function(K,ce){return(ce=ce||{}).gzip=!0,Y(K,ce)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(R,Ne,te){"use strict";var V=R("./zlib/inflate"),B=R("./utils/common"),f=R("./utils/strings"),E=R("./zlib/constants"),h=R("./zlib/messages"),z=R("./zlib/zstream"),S=R("./zlib/gzheader"),_=Object.prototype.toString;function N(I){if(!(this instanceof N))return new N(I);this.options=B.assign({chunkSize:16384,windowBits:0,to:""},I||{});var Y=this.options;Y.raw&&0<=Y.windowBits&&Y.windowBits<16&&(Y.windowBits=-Y.windowBits,Y.windowBits===0&&(Y.windowBits=-15)),!(0<=Y.windowBits&&Y.windowBits<16)||I&&I.windowBits||(Y.windowBits+=32),15<Y.windowBits&&Y.windowBits<48&&!(15&Y.windowBits)&&(Y.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new z,this.strm.avail_out=0;var K=V.inflateInit2(this.strm,Y.windowBits);if(K!==E.Z_OK)throw new Error(h[K]);this.header=new S,V.inflateGetHeader(this.strm,this.header)}function Q(I,Y){var K=new N(Y);if(K.push(I,!0),K.err)throw K.msg||h[K.err];return K.result}N.prototype.push=function(I,Y){var K,ce,G,J,W,j,se=this.strm,he=this.options.chunkSize,Oe=this.options.dictionary,Be=!1;if(this.ended)return!1;ce=Y===~~Y?Y:Y===!0?E.Z_FINISH:E.Z_NO_FLUSH,typeof I=="string"?se.input=f.binstring2buf(I):_.call(I)==="[object ArrayBuffer]"?se.input=new Uint8Array(I):se.input=I,se.next_in=0,se.avail_in=se.input.length;do{if(se.avail_out===0&&(se.output=new B.Buf8(he),se.next_out=0,se.avail_out=he),(K=V.inflate(se,E.Z_NO_FLUSH))===E.Z_NEED_DICT&&Oe&&(j=typeof Oe=="string"?f.string2buf(Oe):_.call(Oe)==="[object ArrayBuffer]"?new Uint8Array(Oe):Oe,K=V.inflateSetDictionary(this.strm,j)),K===E.Z_BUF_ERROR&&Be===!0&&(K=E.Z_OK,Be=!1),K!==E.Z_STREAM_END&&K!==E.Z_OK)return this.onEnd(K),!(this.ended=!0);se.next_out&&(se.avail_out!==0&&K!==E.Z_STREAM_END&&(se.avail_in!==0||ce!==E.Z_FINISH&&ce!==E.Z_SYNC_FLUSH)||(this.options.to==="string"?(G=f.utf8border(se.output,se.next_out),J=se.next_out-G,W=f.buf2string(se.output,G),se.next_out=J,se.avail_out=he-J,J&&B.arraySet(se.output,se.output,G,J,0),this.onData(W)):this.onData(B.shrinkBuf(se.output,se.next_out)))),se.avail_in===0&&se.avail_out===0&&(Be=!0)}while((0<se.avail_in||se.avail_out===0)&&K!==E.Z_STREAM_END);return K===E.Z_STREAM_END&&(ce=E.Z_FINISH),ce===E.Z_FINISH?(K=V.inflateEnd(this.strm),this.onEnd(K),this.ended=!0,K===E.Z_OK):ce!==E.Z_SYNC_FLUSH||(this.onEnd(E.Z_OK),!(se.avail_out=0))},N.prototype.onData=function(I){this.chunks.push(I)},N.prototype.onEnd=function(I){I===E.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=B.flattenChunks(this.chunks)),this.chunks=[],this.err=I,this.msg=this.strm.msg},te.Inflate=N,te.inflate=Q,te.inflateRaw=function(I,Y){return(Y=Y||{}).raw=!0,Q(I,Y)},te.ungzip=Q},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(R,Ne,te){"use strict";var V=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";te.assign=function(E){for(var h=Array.prototype.slice.call(arguments,1);h.length;){var z=h.shift();if(z){if(typeof z!="object")throw new TypeError(z+"must be non-object");for(var S in z)z.hasOwnProperty(S)&&(E[S]=z[S])}}return E},te.shrinkBuf=function(E,h){return E.length===h?E:E.subarray?E.subarray(0,h):(E.length=h,E)};var B={arraySet:function(E,h,z,S,_){if(h.subarray&&E.subarray)E.set(h.subarray(z,z+S),_);else for(var N=0;N<S;N++)E[_+N]=h[z+N]},flattenChunks:function(E){var h,z,S,_,N,Q;for(h=S=0,z=E.length;h<z;h++)S+=E[h].length;for(Q=new Uint8Array(S),h=_=0,z=E.length;h<z;h++)N=E[h],Q.set(N,_),_+=N.length;return Q}},f={arraySet:function(E,h,z,S,_){for(var N=0;N<S;N++)E[_+N]=h[z+N]},flattenChunks:function(E){return[].concat.apply([],E)}};te.setTyped=function(E){E?(te.Buf8=Uint8Array,te.Buf16=Uint16Array,te.Buf32=Int32Array,te.assign(te,B)):(te.Buf8=Array,te.Buf16=Array,te.Buf32=Array,te.assign(te,f))},te.setTyped(V)},{}],42:[function(R,Ne,te){"use strict";var V=R("./common"),B=!0,f=!0;try{String.fromCharCode.apply(null,[0])}catch(S){B=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(S){f=!1}for(var E=new V.Buf8(256),h=0;h<256;h++)E[h]=252<=h?6:248<=h?5:240<=h?4:224<=h?3:192<=h?2:1;function z(S,_){if(_<65537&&(S.subarray&&f||!S.subarray&&B))return String.fromCharCode.apply(null,V.shrinkBuf(S,_));for(var N="",Q=0;Q<_;Q++)N+=String.fromCharCode(S[Q]);return N}E[254]=E[254]=1,te.string2buf=function(S){var _,N,Q,I,Y,K=S.length,ce=0;for(I=0;I<K;I++)(64512&(N=S.charCodeAt(I)))==55296&&I+1<K&&(64512&(Q=S.charCodeAt(I+1)))==56320&&(N=65536+(N-55296<<10)+(Q-56320),I++),ce+=N<128?1:N<2048?2:N<65536?3:4;for(_=new V.Buf8(ce),I=Y=0;Y<ce;I++)(64512&(N=S.charCodeAt(I)))==55296&&I+1<K&&(64512&(Q=S.charCodeAt(I+1)))==56320&&(N=65536+(N-55296<<10)+(Q-56320),I++),N<128?_[Y++]=N:(N<2048?_[Y++]=192|N>>>6:(N<65536?_[Y++]=224|N>>>12:(_[Y++]=240|N>>>18,_[Y++]=128|N>>>12&63),_[Y++]=128|N>>>6&63),_[Y++]=128|63&N);return _},te.buf2binstring=function(S){return z(S,S.length)},te.binstring2buf=function(S){for(var _=new V.Buf8(S.length),N=0,Q=_.length;N<Q;N++)_[N]=S.charCodeAt(N);return _},te.buf2string=function(S,_){var N,Q,I,Y,K=_||S.length,ce=new Array(2*K);for(N=Q=0;N<K;)if((I=S[N++])<128)ce[Q++]=I;else if(4<(Y=E[I]))ce[Q++]=65533,N+=Y-1;else{for(I&=Y===2?31:Y===3?15:7;1<Y&&N<K;)I=I<<6|63&S[N++],Y--;1<Y?ce[Q++]=65533:I<65536?ce[Q++]=I:(I-=65536,ce[Q++]=55296|I>>10&1023,ce[Q++]=56320|1023&I)}return z(ce,Q)},te.utf8border=function(S,_){var N;for((_=_||S.length)>S.length&&(_=S.length),N=_-1;0<=N&&(192&S[N])==128;)N--;return N<0||N===0?_:N+E[S[N]]>_?N:_}},{"./common":41}],43:[function(R,Ne,te){"use strict";Ne.exports=function(V,B,f,E){for(var h=65535&V|0,z=V>>>16&65535|0,S=0;f!==0;){for(f-=S=2e3<f?2e3:f;z=z+(h=h+B[E++]|0)|0,--S;);h%=65521,z%=65521}return h|z<<16|0}},{}],44:[function(R,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(R,Ne,te){"use strict";var V=function(){for(var B,f=[],E=0;E<256;E++){B=E;for(var h=0;h<8;h++)B=1&B?3988292384^B>>>1:B>>>1;f[E]=B}return f}();Ne.exports=function(B,f,E,h){var z=V,S=h+E;B^=-1;for(var _=h;_<S;_++)B=B>>>8^z[255&(B^f[_])];return-1^B}},{}],46:[function(R,Ne,te){"use strict";var V,B=R("../utils/common"),f=R("./trees"),E=R("./adler32"),h=R("./crc32"),z=R("./messages"),S=0,_=4,N=0,Q=-2,I=-1,Y=4,K=2,ce=8,G=9,J=286,W=30,j=19,se=2*J+1,he=15,Oe=3,Be=258,je=Be+Oe+1,X=42,de=113,L=1,rt=2,De=3,we=4;function He(k,nt){return k.msg=z[nt],nt}function ge(k){return(k<<1)-(4<k?9:0)}function Le(k){for(var nt=k.length;0<=--nt;)k[nt]=0}function fe(k){var nt=k.state,P=nt.pending;P>k.avail_out&&(P=k.avail_out),P!==0&&(B.arraySet(k.output,nt.pending_buf,nt.pending_out,P,k.next_out),k.next_out+=P,nt.pending_out+=P,k.total_out+=P,k.avail_out-=P,nt.pending-=P,nt.pending===0&&(nt.pending_out=0))}function Ee(k,nt){f._tr_flush_block(k,0<=k.block_start?k.block_start:-1,k.strstart-k.block_start,nt),k.block_start=k.strstart,fe(k.strm)}function At(k,nt){k.pending_buf[k.pending++]=nt}function ft(k,nt){k.pending_buf[k.pending++]=nt>>>8&255,k.pending_buf[k.pending++]=255&nt}function ot(k,nt){var P,m,d=k.max_chain_length,x=k.strstart,ee=k.prev_length,Ce=k.nice_match,H=k.strstart>k.w_size-je?k.strstart-(k.w_size-je):0,ne=k.window,Ge=k.w_mask,xe=k.prev,be=k.strstart+Be,qe=ne[x+ee-1],Et=ne[x+ee];k.prev_length>=k.good_match&&(d>>=2),Ce>k.lookahead&&(Ce=k.lookahead);do if(ne[(P=nt)+ee]===Et&&ne[P+ee-1]===qe&&ne[P]===ne[x]&&ne[++P]===ne[x+1]){x+=2,P++;do;while(ne[++x]===ne[++P]&&ne[++x]===ne[++P]&&ne[++x]===ne[++P]&&ne[++x]===ne[++P]&&ne[++x]===ne[++P]&&ne[++x]===ne[++P]&&ne[++x]===ne[++P]&&ne[++x]===ne[++P]&&x<be);if(m=Be-(be-x),x=be-Be,ee<m){if(k.match_start=nt,Ce<=(ee=m))break;qe=ne[x+ee-1],Et=ne[x+ee]}}while((nt=xe[nt&Ge])>H&&--d!=0);return ee<=k.lookahead?ee:k.lookahead}function ct(k){var nt,P,m,d,x,ee,Ce,H,ne,Ge,xe=k.w_size;do{if(d=k.window_size-k.lookahead-k.strstart,k.strstart>=xe+(xe-je)){for(B.arraySet(k.window,k.window,xe,xe,0),k.match_start-=xe,k.strstart-=xe,k.block_start-=xe,nt=P=k.hash_size;m=k.head[--nt],k.head[nt]=xe<=m?m-xe:0,--P;);for(nt=P=xe;m=k.prev[--nt],k.prev[nt]=xe<=m?m-xe:0,--P;);d+=xe}if(k.strm.avail_in===0)break;if(ee=k.strm,Ce=k.window,H=k.strstart+k.lookahead,ne=d,Ge=void 0,Ge=ee.avail_in,ne<Ge&&(Ge=ne),P=Ge===0?0:(ee.avail_in-=Ge,B.arraySet(Ce,ee.input,ee.next_in,Ge,H),ee.state.wrap===1?ee.adler=E(ee.adler,Ce,Ge,H):ee.state.wrap===2&&(ee.adler=h(ee.adler,Ce,Ge,H)),ee.next_in+=Ge,ee.total_in+=Ge,Ge),k.lookahead+=P,k.lookahead+k.insert>=Oe)for(x=k.strstart-k.insert,k.ins_h=k.window[x],k.ins_h=(k.ins_h<<k.hash_shift^k.window[x+1])&k.hash_mask;k.insert&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[x+Oe-1])&k.hash_mask,k.prev[x&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=x,x++,k.insert--,!(k.lookahead+k.insert<Oe)););}while(k.lookahead<je&&k.strm.avail_in!==0)}function It(k,nt){for(var P,m;;){if(k.lookahead<je){if(ct(k),k.lookahead<je&&nt===S)return L;if(k.lookahead===0)break}if(P=0,k.lookahead>=Oe&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+Oe-1])&k.hash_mask,P=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),P!==0&&k.strstart-P<=k.w_size-je&&(k.match_length=ot(k,P)),k.match_length>=Oe)if(m=f._tr_tally(k,k.strstart-k.match_start,k.match_length-Oe),k.lookahead-=k.match_length,k.match_length<=k.max_lazy_match&&k.lookahead>=Oe){for(k.match_length--;k.strstart++,k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+Oe-1])&k.hash_mask,P=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart,--k.match_length!=0;);k.strstart++}else k.strstart+=k.match_length,k.match_length=0,k.ins_h=k.window[k.strstart],k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+1])&k.hash_mask;else m=f._tr_tally(k,0,k.window[k.strstart]),k.lookahead--,k.strstart++;if(m&&(Ee(k,!1),k.strm.avail_out===0))return L}return k.insert=k.strstart<Oe-1?k.strstart:Oe-1,nt===_?(Ee(k,!0),k.strm.avail_out===0?De:we):k.last_lit&&(Ee(k,!1),k.strm.avail_out===0)?L:rt}function Tt(k,nt){for(var P,m,d;;){if(k.lookahead<je){if(ct(k),k.lookahead<je&&nt===S)return L;if(k.lookahead===0)break}if(P=0,k.lookahead>=Oe&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+Oe-1])&k.hash_mask,P=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),k.prev_length=k.match_length,k.prev_match=k.match_start,k.match_length=Oe-1,P!==0&&k.prev_length<k.max_lazy_match&&k.strstart-P<=k.w_size-je&&(k.match_length=ot(k,P),k.match_length<=5&&(k.strategy===1||k.match_length===Oe&&4096<k.strstart-k.match_start)&&(k.match_length=Oe-1)),k.prev_length>=Oe&&k.match_length<=k.prev_length){for(d=k.strstart+k.lookahead-Oe,m=f._tr_tally(k,k.strstart-1-k.prev_match,k.prev_length-Oe),k.lookahead-=k.prev_length-1,k.prev_length-=2;++k.strstart<=d&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+Oe-1])&k.hash_mask,P=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),--k.prev_length!=0;);if(k.match_available=0,k.match_length=Oe-1,k.strstart++,m&&(Ee(k,!1),k.strm.avail_out===0))return L}else if(k.match_available){if((m=f._tr_tally(k,0,k.window[k.strstart-1]))&&Ee(k,!1),k.strstart++,k.lookahead--,k.strm.avail_out===0)return L}else k.match_available=1,k.strstart++,k.lookahead--}return k.match_available&&(m=f._tr_tally(k,0,k.window[k.strstart-1]),k.match_available=0),k.insert=k.strstart<Oe-1?k.strstart:Oe-1,nt===_?(Ee(k,!0),k.strm.avail_out===0?De:we):k.last_lit&&(Ee(k,!1),k.strm.avail_out===0)?L:rt}function Ht(k,nt,P,m,d){this.good_length=k,this.max_lazy=nt,this.nice_length=P,this.max_chain=m,this.func=d}function pr(){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=ce,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new B.Buf16(2*se),this.dyn_dtree=new B.Buf16(2*(2*W+1)),this.bl_tree=new B.Buf16(2*(2*j+1)),Le(this.dyn_ltree),Le(this.dyn_dtree),Le(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new B.Buf16(he+1),this.heap=new B.Buf16(2*J+1),Le(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new B.Buf16(2*J+1),Le(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 sr(k){var nt;return k&&k.state?(k.total_in=k.total_out=0,k.data_type=K,(nt=k.state).pending=0,nt.pending_out=0,nt.wrap<0&&(nt.wrap=-nt.wrap),nt.status=nt.wrap?X:de,k.adler=nt.wrap===2?0:1,nt.last_flush=S,f._tr_init(nt),N):He(k,Q)}function Br(k){var nt=sr(k);return nt===N&&function(P){P.window_size=2*P.w_size,Le(P.head),P.max_lazy_match=V[P.level].max_lazy,P.good_match=V[P.level].good_length,P.nice_match=V[P.level].nice_length,P.max_chain_length=V[P.level].max_chain,P.strstart=0,P.block_start=0,P.lookahead=0,P.insert=0,P.match_length=P.prev_length=Oe-1,P.match_available=0,P.ins_h=0}(k.state),nt}function fr(k,nt,P,m,d,x){if(!k)return Q;var ee=1;if(nt===I&&(nt=6),m<0?(ee=0,m=-m):15<m&&(ee=2,m-=16),d<1||G<d||P!==ce||m<8||15<m||nt<0||9<nt||x<0||Y<x)return He(k,Q);m===8&&(m=9);var Ce=new pr;return(k.state=Ce).strm=k,Ce.wrap=ee,Ce.gzhead=null,Ce.w_bits=m,Ce.w_size=1<<Ce.w_bits,Ce.w_mask=Ce.w_size-1,Ce.hash_bits=d+7,Ce.hash_size=1<<Ce.hash_bits,Ce.hash_mask=Ce.hash_size-1,Ce.hash_shift=~~((Ce.hash_bits+Oe-1)/Oe),Ce.window=new B.Buf8(2*Ce.w_size),Ce.head=new B.Buf16(Ce.hash_size),Ce.prev=new B.Buf16(Ce.w_size),Ce.lit_bufsize=1<<d+6,Ce.pending_buf_size=4*Ce.lit_bufsize,Ce.pending_buf=new B.Buf8(Ce.pending_buf_size),Ce.d_buf=1*Ce.lit_bufsize,Ce.l_buf=3*Ce.lit_bufsize,Ce.level=nt,Ce.strategy=x,Ce.method=P,Br(k)}V=[new Ht(0,0,0,0,function(k,nt){var P=65535;for(P>k.pending_buf_size-5&&(P=k.pending_buf_size-5);;){if(k.lookahead<=1){if(ct(k),k.lookahead===0&&nt===S)return L;if(k.lookahead===0)break}k.strstart+=k.lookahead,k.lookahead=0;var m=k.block_start+P;if((k.strstart===0||k.strstart>=m)&&(k.lookahead=k.strstart-m,k.strstart=m,Ee(k,!1),k.strm.avail_out===0)||k.strstart-k.block_start>=k.w_size-je&&(Ee(k,!1),k.strm.avail_out===0))return L}return k.insert=0,nt===_?(Ee(k,!0),k.strm.avail_out===0?De:we):(k.strstart>k.block_start&&(Ee(k,!1),k.strm.avail_out),L)}),new Ht(4,4,8,4,It),new Ht(4,5,16,8,It),new Ht(4,6,32,32,It),new Ht(4,4,16,16,Tt),new Ht(8,16,32,32,Tt),new Ht(8,16,128,128,Tt),new Ht(8,32,128,256,Tt),new Ht(32,128,258,1024,Tt),new Ht(32,258,258,4096,Tt)],te.deflateInit=function(k,nt){return fr(k,nt,ce,15,8,0)},te.deflateInit2=fr,te.deflateReset=Br,te.deflateResetKeep=sr,te.deflateSetHeader=function(k,nt){return k&&k.state?k.state.wrap!==2?Q:(k.state.gzhead=nt,N):Q},te.deflate=function(k,nt){var P,m,d,x;if(!k||!k.state||5<nt||nt<0)return k?He(k,Q):Q;if(m=k.state,!k.output||!k.input&&k.avail_in!==0||m.status===666&&nt!==_)return He(k,k.avail_out===0?-5:Q);if(m.strm=k,P=m.last_flush,m.last_flush=nt,m.status===X)if(m.wrap===2)k.adler=0,At(m,31),At(m,139),At(m,8),m.gzhead?(At(m,(m.gzhead.text?1:0)+(m.gzhead.hcrc?2:0)+(m.gzhead.extra?4:0)+(m.gzhead.name?8:0)+(m.gzhead.comment?16:0)),At(m,255&m.gzhead.time),At(m,m.gzhead.time>>8&255),At(m,m.gzhead.time>>16&255),At(m,m.gzhead.time>>24&255),At(m,m.level===9?2:2<=m.strategy||m.level<2?4:0),At(m,255&m.gzhead.os),m.gzhead.extra&&m.gzhead.extra.length&&(At(m,255&m.gzhead.extra.length),At(m,m.gzhead.extra.length>>8&255)),m.gzhead.hcrc&&(k.adler=h(k.adler,m.pending_buf,m.pending,0)),m.gzindex=0,m.status=69):(At(m,0),At(m,0),At(m,0),At(m,0),At(m,0),At(m,m.level===9?2:2<=m.strategy||m.level<2?4:0),At(m,3),m.status=de);else{var ee=ce+(m.w_bits-8<<4)<<8;ee|=(2<=m.strategy||m.level<2?0:m.level<6?1:m.level===6?2:3)<<6,m.strstart!==0&&(ee|=32),ee+=31-ee%31,m.status=de,ft(m,ee),m.strstart!==0&&(ft(m,k.adler>>>16),ft(m,65535&k.adler)),k.adler=1}if(m.status===69)if(m.gzhead.extra){for(d=m.pending;m.gzindex<(65535&m.gzhead.extra.length)&&(m.pending!==m.pending_buf_size||(m.gzhead.hcrc&&m.pending>d&&(k.adler=h(k.adler,m.pending_buf,m.pending-d,d)),fe(k),d=m.pending,m.pending!==m.pending_buf_size));)At(m,255&m.gzhead.extra[m.gzindex]),m.gzindex++;m.gzhead.hcrc&&m.pending>d&&(k.adler=h(k.adler,m.pending_buf,m.pending-d,d)),m.gzindex===m.gzhead.extra.length&&(m.gzindex=0,m.status=73)}else m.status=73;if(m.status===73)if(m.gzhead.name){d=m.pending;do{if(m.pending===m.pending_buf_size&&(m.gzhead.hcrc&&m.pending>d&&(k.adler=h(k.adler,m.pending_buf,m.pending-d,d)),fe(k),d=m.pending,m.pending===m.pending_buf_size)){x=1;break}x=m.gzindex<m.gzhead.name.length?255&m.gzhead.name.charCodeAt(m.gzindex++):0,At(m,x)}while(x!==0);m.gzhead.hcrc&&m.pending>d&&(k.adler=h(k.adler,m.pending_buf,m.pending-d,d)),x===0&&(m.gzindex=0,m.status=91)}else m.status=91;if(m.status===91)if(m.gzhead.comment){d=m.pending;do{if(m.pending===m.pending_buf_size&&(m.gzhead.hcrc&&m.pending>d&&(k.adler=h(k.adler,m.pending_buf,m.pending-d,d)),fe(k),d=m.pending,m.pending===m.pending_buf_size)){x=1;break}x=m.gzindex<m.gzhead.comment.length?255&m.gzhead.comment.charCodeAt(m.gzindex++):0,At(m,x)}while(x!==0);m.gzhead.hcrc&&m.pending>d&&(k.adler=h(k.adler,m.pending_buf,m.pending-d,d)),x===0&&(m.status=103)}else m.status=103;if(m.status===103&&(m.gzhead.hcrc?(m.pending+2>m.pending_buf_size&&fe(k),m.pending+2<=m.pending_buf_size&&(At(m,255&k.adler),At(m,k.adler>>8&255),k.adler=0,m.status=de)):m.status=de),m.pending!==0){if(fe(k),k.avail_out===0)return m.last_flush=-1,N}else if(k.avail_in===0&&ge(nt)<=ge(P)&&nt!==_)return He(k,-5);if(m.status===666&&k.avail_in!==0)return He(k,-5);if(k.avail_in!==0||m.lookahead!==0||nt!==S&&m.status!==666){var Ce=m.strategy===2?function(H,ne){for(var Ge;;){if(H.lookahead===0&&(ct(H),H.lookahead===0)){if(ne===S)return L;break}if(H.match_length=0,Ge=f._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++,Ge&&(Ee(H,!1),H.strm.avail_out===0))return L}return H.insert=0,ne===_?(Ee(H,!0),H.strm.avail_out===0?De:we):H.last_lit&&(Ee(H,!1),H.strm.avail_out===0)?L:rt}(m,nt):m.strategy===3?function(H,ne){for(var Ge,xe,be,qe,Et=H.window;;){if(H.lookahead<=Be){if(ct(H),H.lookahead<=Be&&ne===S)return L;if(H.lookahead===0)break}if(H.match_length=0,H.lookahead>=Oe&&0<H.strstart&&(xe=Et[be=H.strstart-1])===Et[++be]&&xe===Et[++be]&&xe===Et[++be]){qe=H.strstart+Be;do;while(xe===Et[++be]&&xe===Et[++be]&&xe===Et[++be]&&xe===Et[++be]&&xe===Et[++be]&&xe===Et[++be]&&xe===Et[++be]&&xe===Et[++be]&&be<qe);H.match_length=Be-(qe-be),H.match_length>H.lookahead&&(H.match_length=H.lookahead)}if(H.match_length>=Oe?(Ge=f._tr_tally(H,1,H.match_length-Oe),H.lookahead-=H.match_length,H.strstart+=H.match_length,H.match_length=0):(Ge=f._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++),Ge&&(Ee(H,!1),H.strm.avail_out===0))return L}return H.insert=0,ne===_?(Ee(H,!0),H.strm.avail_out===0?De:we):H.last_lit&&(Ee(H,!1),H.strm.avail_out===0)?L:rt}(m,nt):V[m.level].func(m,nt);if(Ce!==De&&Ce!==we||(m.status=666),Ce===L||Ce===De)return k.avail_out===0&&(m.last_flush=-1),N;if(Ce===rt&&(nt===1?f._tr_align(m):nt!==5&&(f._tr_stored_block(m,0,0,!1),nt===3&&(Le(m.head),m.lookahead===0&&(m.strstart=0,m.block_start=0,m.insert=0))),fe(k),k.avail_out===0))return m.last_flush=-1,N}return nt!==_?N:m.wrap<=0?1:(m.wrap===2?(At(m,255&k.adler),At(m,k.adler>>8&255),At(m,k.adler>>16&255),At(m,k.adler>>24&255),At(m,255&k.total_in),At(m,k.total_in>>8&255),At(m,k.total_in>>16&255),At(m,k.total_in>>24&255)):(ft(m,k.adler>>>16),ft(m,65535&k.adler)),fe(k),0<m.wrap&&(m.wrap=-m.wrap),m.pending!==0?N:1)},te.deflateEnd=function(k){var nt;return k&&k.state?(nt=k.state.status)!==X&&nt!==69&&nt!==73&&nt!==91&&nt!==103&&nt!==de&&nt!==666?He(k,Q):(k.state=null,nt===de?He(k,-3):N):Q},te.deflateSetDictionary=function(k,nt){var P,m,d,x,ee,Ce,H,ne,Ge=nt.length;if(!k||!k.state||(x=(P=k.state).wrap)===2||x===1&&P.status!==X||P.lookahead)return Q;for(x===1&&(k.adler=E(k.adler,nt,Ge,0)),P.wrap=0,Ge>=P.w_size&&(x===0&&(Le(P.head),P.strstart=0,P.block_start=0,P.insert=0),ne=new B.Buf8(P.w_size),B.arraySet(ne,nt,Ge-P.w_size,P.w_size,0),nt=ne,Ge=P.w_size),ee=k.avail_in,Ce=k.next_in,H=k.input,k.avail_in=Ge,k.next_in=0,k.input=nt,ct(P);P.lookahead>=Oe;){for(m=P.strstart,d=P.lookahead-(Oe-1);P.ins_h=(P.ins_h<<P.hash_shift^P.window[m+Oe-1])&P.hash_mask,P.prev[m&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=m,m++,--d;);P.strstart=m,P.lookahead=Oe-1,ct(P)}return P.strstart+=P.lookahead,P.block_start=P.strstart,P.insert=P.lookahead,P.lookahead=0,P.match_length=P.prev_length=Oe-1,P.match_available=0,k.next_in=Ce,k.input=H,k.avail_in=ee,P.wrap=x,N},te.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(R,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(R,Ne,te){"use strict";Ne.exports=function(V,B){var f,E,h,z,S,_,N,Q,I,Y,K,ce,G,J,W,j,se,he,Oe,Be,je,X,de,L,rt;f=V.state,E=V.next_in,L=V.input,h=E+(V.avail_in-5),z=V.next_out,rt=V.output,S=z-(B-V.avail_out),_=z+(V.avail_out-257),N=f.dmax,Q=f.wsize,I=f.whave,Y=f.wnext,K=f.window,ce=f.hold,G=f.bits,J=f.lencode,W=f.distcode,j=(1<<f.lenbits)-1,se=(1<<f.distbits)-1;e:do{G<15&&(ce+=L[E++]<<G,G+=8,ce+=L[E++]<<G,G+=8),he=J[ce&j];t:for(;;){if(ce>>>=Oe=he>>>24,G-=Oe,(Oe=he>>>16&255)===0)rt[z++]=65535&he;else{if(!(16&Oe)){if(!(64&Oe)){he=J[(65535&he)+(ce&(1<<Oe)-1)];continue t}if(32&Oe){f.mode=12;break e}V.msg="invalid literal/length code",f.mode=30;break e}Be=65535&he,(Oe&=15)&&(G<Oe&&(ce+=L[E++]<<G,G+=8),Be+=ce&(1<<Oe)-1,ce>>>=Oe,G-=Oe),G<15&&(ce+=L[E++]<<G,G+=8,ce+=L[E++]<<G,G+=8),he=W[ce&se];r:for(;;){if(ce>>>=Oe=he>>>24,G-=Oe,!(16&(Oe=he>>>16&255))){if(!(64&Oe)){he=W[(65535&he)+(ce&(1<<Oe)-1)];continue r}V.msg="invalid distance code",f.mode=30;break e}if(je=65535&he,G<(Oe&=15)&&(ce+=L[E++]<<G,(G+=8)<Oe&&(ce+=L[E++]<<G,G+=8)),N<(je+=ce&(1<<Oe)-1)){V.msg="invalid distance too far back",f.mode=30;break e}if(ce>>>=Oe,G-=Oe,(Oe=z-S)<je){if(I<(Oe=je-Oe)&&f.sane){V.msg="invalid distance too far back",f.mode=30;break e}if(de=K,(X=0)===Y){if(X+=Q-Oe,Oe<Be){for(Be-=Oe;rt[z++]=K[X++],--Oe;);X=z-je,de=rt}}else if(Y<Oe){if(X+=Q+Y-Oe,(Oe-=Y)<Be){for(Be-=Oe;rt[z++]=K[X++],--Oe;);if(X=0,Y<Be){for(Be-=Oe=Y;rt[z++]=K[X++],--Oe;);X=z-je,de=rt}}}else if(X+=Y-Oe,Oe<Be){for(Be-=Oe;rt[z++]=K[X++],--Oe;);X=z-je,de=rt}for(;2<Be;)rt[z++]=de[X++],rt[z++]=de[X++],rt[z++]=de[X++],Be-=3;Be&&(rt[z++]=de[X++],1<Be&&(rt[z++]=de[X++]))}else{for(X=z-je;rt[z++]=rt[X++],rt[z++]=rt[X++],rt[z++]=rt[X++],2<(Be-=3););Be&&(rt[z++]=rt[X++],1<Be&&(rt[z++]=rt[X++]))}break}}break}}while(E<h&&z<_);E-=Be=G>>3,ce&=(1<<(G-=Be<<3))-1,V.next_in=E,V.next_out=z,V.avail_in=E<h?h-E+5:5-(E-h),V.avail_out=z<_?_-z+257:257-(z-_),f.hold=ce,f.bits=G}},{}],49:[function(R,Ne,te){"use strict";var V=R("../utils/common"),B=R("./adler32"),f=R("./crc32"),E=R("./inffast"),h=R("./inftrees"),z=1,S=2,_=0,N=-2,Q=1,I=852,Y=592;function K(X){return(X>>>24&255)+(X>>>8&65280)+((65280&X)<<8)+((255&X)<<24)}function ce(){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 V.Buf16(320),this.work=new V.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function G(X){var de;return X&&X.state?(de=X.state,X.total_in=X.total_out=de.total=0,X.msg="",de.wrap&&(X.adler=1&de.wrap),de.mode=Q,de.last=0,de.havedict=0,de.dmax=32768,de.head=null,de.hold=0,de.bits=0,de.lencode=de.lendyn=new V.Buf32(I),de.distcode=de.distdyn=new V.Buf32(Y),de.sane=1,de.back=-1,_):N}function J(X){var de;return X&&X.state?((de=X.state).wsize=0,de.whave=0,de.wnext=0,G(X)):N}function W(X,de){var L,rt;return X&&X.state?(rt=X.state,de<0?(L=0,de=-de):(L=1+(de>>4),de<48&&(de&=15)),de&&(de<8||15<de)?N:(rt.window!==null&&rt.wbits!==de&&(rt.window=null),rt.wrap=L,rt.wbits=de,J(X))):N}function j(X,de){var L,rt;return X?(rt=new ce,(X.state=rt).window=null,(L=W(X,de))!==_&&(X.state=null),L):N}var se,he,Oe=!0;function Be(X){if(Oe){var de;for(se=new V.Buf32(512),he=new V.Buf32(32),de=0;de<144;)X.lens[de++]=8;for(;de<256;)X.lens[de++]=9;for(;de<280;)X.lens[de++]=7;for(;de<288;)X.lens[de++]=8;for(h(z,X.lens,0,288,se,0,X.work,{bits:9}),de=0;de<32;)X.lens[de++]=5;h(S,X.lens,0,32,he,0,X.work,{bits:5}),Oe=!1}X.lencode=se,X.lenbits=9,X.distcode=he,X.distbits=5}function je(X,de,L,rt){var De,we=X.state;return we.window===null&&(we.wsize=1<<we.wbits,we.wnext=0,we.whave=0,we.window=new V.Buf8(we.wsize)),rt>=we.wsize?(V.arraySet(we.window,de,L-we.wsize,we.wsize,0),we.wnext=0,we.whave=we.wsize):(rt<(De=we.wsize-we.wnext)&&(De=rt),V.arraySet(we.window,de,L-rt,De,we.wnext),(rt-=De)?(V.arraySet(we.window,de,L-rt,rt,0),we.wnext=rt,we.whave=we.wsize):(we.wnext+=De,we.wnext===we.wsize&&(we.wnext=0),we.whave<we.wsize&&(we.whave+=De))),0}te.inflateReset=J,te.inflateReset2=W,te.inflateResetKeep=G,te.inflateInit=function(X){return j(X,15)},te.inflateInit2=j,te.inflate=function(X,de){var L,rt,De,we,He,ge,Le,fe,Ee,At,ft,ot,ct,It,Tt,Ht,pr,sr,Br,fr,k,nt,P,m,d=0,x=new V.Buf8(4),ee=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!X||!X.state||!X.output||!X.input&&X.avail_in!==0)return N;(L=X.state).mode===12&&(L.mode=13),He=X.next_out,De=X.output,Le=X.avail_out,we=X.next_in,rt=X.input,ge=X.avail_in,fe=L.hold,Ee=L.bits,At=ge,ft=Le,nt=_;e:for(;;)switch(L.mode){case Q:if(L.wrap===0){L.mode=13;break}for(;Ee<16;){if(ge===0)break e;ge--,fe+=rt[we++]<<Ee,Ee+=8}if(2&L.wrap&&fe===35615){x[L.check=0]=255&fe,x[1]=fe>>>8&255,L.check=f(L.check,x,2,0),Ee=fe=0,L.mode=2;break}if(L.flags=0,L.head&&(L.head.done=!1),!(1&L.wrap)||(((255&fe)<<8)+(fe>>8))%31){X.msg="incorrect header check",L.mode=30;break}if((15&fe)!=8){X.msg="unknown compression method",L.mode=30;break}if(Ee-=4,k=8+(15&(fe>>>=4)),L.wbits===0)L.wbits=k;else if(k>L.wbits){X.msg="invalid window size",L.mode=30;break}L.dmax=1<<k,X.adler=L.check=1,L.mode=512&fe?10:12,Ee=fe=0;break;case 2:for(;Ee<16;){if(ge===0)break e;ge--,fe+=rt[we++]<<Ee,Ee+=8}if(L.flags=fe,(255&L.flags)!=8){X.msg="unknown compression method",L.mode=30;break}if(57344&L.flags){X.msg="unknown header flags set",L.mode=30;break}L.head&&(L.head.text=fe>>8&1),512&L.flags&&(x[0]=255&fe,x[1]=fe>>>8&255,L.check=f(L.check,x,2,0)),Ee=fe=0,L.mode=3;case 3:for(;Ee<32;){if(ge===0)break e;ge--,fe+=rt[we++]<<Ee,Ee+=8}L.head&&(L.head.time=fe),512&L.flags&&(x[0]=255&fe,x[1]=fe>>>8&255,x[2]=fe>>>16&255,x[3]=fe>>>24&255,L.check=f(L.check,x,4,0)),Ee=fe=0,L.mode=4;case 4:for(;Ee<16;){if(ge===0)break e;ge--,fe+=rt[we++]<<Ee,Ee+=8}L.head&&(L.head.xflags=255&fe,L.head.os=fe>>8),512&L.flags&&(x[0]=255&fe,x[1]=fe>>>8&255,L.check=f(L.check,x,2,0)),Ee=fe=0,L.mode=5;case 5:if(1024&L.flags){for(;Ee<16;){if(ge===0)break e;ge--,fe+=rt[we++]<<Ee,Ee+=8}L.length=fe,L.head&&(L.head.extra_len=fe),512&L.flags&&(x[0]=255&fe,x[1]=fe>>>8&255,L.check=f(L.check,x,2,0)),Ee=fe=0}else L.head&&(L.head.extra=null);L.mode=6;case 6:if(1024&L.flags&&(ge<(ot=L.length)&&(ot=ge),ot&&(L.head&&(k=L.head.extra_len-L.length,L.head.extra||(L.head.extra=new Array(L.head.extra_len)),V.arraySet(L.head.extra,rt,we,ot,k)),512&L.flags&&(L.check=f(L.check,rt,ot,we)),ge-=ot,we+=ot,L.length-=ot),L.length))break e;L.length=0,L.mode=7;case 7:if(2048&L.flags){if(ge===0)break e;for(ot=0;k=rt[we+ot++],L.head&&k&&L.length<65536&&(L.head.name+=String.fromCharCode(k)),k&&ot<ge;);if(512&L.flags&&(L.check=f(L.check,rt,ot,we)),ge-=ot,we+=ot,k)break e}else L.head&&(L.head.name=null);L.length=0,L.mode=8;case 8:if(4096&L.flags){if(ge===0)break e;for(ot=0;k=rt[we+ot++],L.head&&k&&L.length<65536&&(L.head.comment+=String.fromCharCode(k)),k&&ot<ge;);if(512&L.flags&&(L.check=f(L.check,rt,ot,we)),ge-=ot,we+=ot,k)break e}else L.head&&(L.head.comment=null);L.mode=9;case 9:if(512&L.flags){for(;Ee<16;){if(ge===0)break e;ge--,fe+=rt[we++]<<Ee,Ee+=8}if(fe!==(65535&L.check)){X.msg="header crc mismatch",L.mode=30;break}Ee=fe=0}L.head&&(L.head.hcrc=L.flags>>9&1,L.head.done=!0),X.adler=L.check=0,L.mode=12;break;case 10:for(;Ee<32;){if(ge===0)break e;ge--,fe+=rt[we++]<<Ee,Ee+=8}X.adler=L.check=K(fe),Ee=fe=0,L.mode=11;case 11:if(L.havedict===0)return X.next_out=He,X.avail_out=Le,X.next_in=we,X.avail_in=ge,L.hold=fe,L.bits=Ee,2;X.adler=L.check=1,L.mode=12;case 12:if(de===5||de===6)break e;case 13:if(L.last){fe>>>=7&Ee,Ee-=7&Ee,L.mode=27;break}for(;Ee<3;){if(ge===0)break e;ge--,fe+=rt[we++]<<Ee,Ee+=8}switch(L.last=1&fe,Ee-=1,3&(fe>>>=1)){case 0:L.mode=14;break;case 1:if(Be(L),L.mode=20,de!==6)break;fe>>>=2,Ee-=2;break e;case 2:L.mode=17;break;case 3:X.msg="invalid block type",L.mode=30}fe>>>=2,Ee-=2;break;case 14:for(fe>>>=7&Ee,Ee-=7&Ee;Ee<32;){if(ge===0)break e;ge--,fe+=rt[we++]<<Ee,Ee+=8}if((65535&fe)!=(fe>>>16^65535)){X.msg="invalid stored block lengths",L.mode=30;break}if(L.length=65535&fe,Ee=fe=0,L.mode=15,de===6)break e;case 15:L.mode=16;case 16:if(ot=L.length){if(ge<ot&&(ot=ge),Le<ot&&(ot=Le),ot===0)break e;V.arraySet(De,rt,we,ot,He),ge-=ot,we+=ot,Le-=ot,He+=ot,L.length-=ot;break}L.mode=12;break;case 17:for(;Ee<14;){if(ge===0)break e;ge--,fe+=rt[we++]<<Ee,Ee+=8}if(L.nlen=257+(31&fe),fe>>>=5,Ee-=5,L.ndist=1+(31&fe),fe>>>=5,Ee-=5,L.ncode=4+(15&fe),fe>>>=4,Ee-=4,286<L.nlen||30<L.ndist){X.msg="too many length or distance symbols",L.mode=30;break}L.have=0,L.mode=18;case 18:for(;L.have<L.ncode;){for(;Ee<3;){if(ge===0)break e;ge--,fe+=rt[we++]<<Ee,Ee+=8}L.lens[ee[L.have++]]=7&fe,fe>>>=3,Ee-=3}for(;L.have<19;)L.lens[ee[L.have++]]=0;if(L.lencode=L.lendyn,L.lenbits=7,P={bits:L.lenbits},nt=h(0,L.lens,0,19,L.lencode,0,L.work,P),L.lenbits=P.bits,nt){X.msg="invalid code lengths set",L.mode=30;break}L.have=0,L.mode=19;case 19:for(;L.have<L.nlen+L.ndist;){for(;Ht=(d=L.lencode[fe&(1<<L.lenbits)-1])>>>16&255,pr=65535&d,!((Tt=d>>>24)<=Ee);){if(ge===0)break e;ge--,fe+=rt[we++]<<Ee,Ee+=8}if(pr<16)fe>>>=Tt,Ee-=Tt,L.lens[L.have++]=pr;else{if(pr===16){for(m=Tt+2;Ee<m;){if(ge===0)break e;ge--,fe+=rt[we++]<<Ee,Ee+=8}if(fe>>>=Tt,Ee-=Tt,L.have===0){X.msg="invalid bit length repeat",L.mode=30;break}k=L.lens[L.have-1],ot=3+(3&fe),fe>>>=2,Ee-=2}else if(pr===17){for(m=Tt+3;Ee<m;){if(ge===0)break e;ge--,fe+=rt[we++]<<Ee,Ee+=8}Ee-=Tt,k=0,ot=3+(7&(fe>>>=Tt)),fe>>>=3,Ee-=3}else{for(m=Tt+7;Ee<m;){if(ge===0)break e;ge--,fe+=rt[we++]<<Ee,Ee+=8}Ee-=Tt,k=0,ot=11+(127&(fe>>>=Tt)),fe>>>=7,Ee-=7}if(L.have+ot>L.nlen+L.ndist){X.msg="invalid bit length repeat",L.mode=30;break}for(;ot--;)L.lens[L.have++]=k}}if(L.mode===30)break;if(L.lens[256]===0){X.msg="invalid code -- missing end-of-block",L.mode=30;break}if(L.lenbits=9,P={bits:L.lenbits},nt=h(z,L.lens,0,L.nlen,L.lencode,0,L.work,P),L.lenbits=P.bits,nt){X.msg="invalid literal/lengths set",L.mode=30;break}if(L.distbits=6,L.distcode=L.distdyn,P={bits:L.distbits},nt=h(S,L.lens,L.nlen,L.ndist,L.distcode,0,L.work,P),L.distbits=P.bits,nt){X.msg="invalid distances set",L.mode=30;break}if(L.mode=20,de===6)break e;case 20:L.mode=21;case 21:if(6<=ge&&258<=Le){X.next_out=He,X.avail_out=Le,X.next_in=we,X.avail_in=ge,L.hold=fe,L.bits=Ee,E(X,ft),He=X.next_out,De=X.output,Le=X.avail_out,we=X.next_in,rt=X.input,ge=X.avail_in,fe=L.hold,Ee=L.bits,L.mode===12&&(L.back=-1);break}for(L.back=0;Ht=(d=L.lencode[fe&(1<<L.lenbits)-1])>>>16&255,pr=65535&d,!((Tt=d>>>24)<=Ee);){if(ge===0)break e;ge--,fe+=rt[we++]<<Ee,Ee+=8}if(Ht&&!(240&Ht)){for(sr=Tt,Br=Ht,fr=pr;Ht=(d=L.lencode[fr+((fe&(1<<sr+Br)-1)>>sr)])>>>16&255,pr=65535&d,!(sr+(Tt=d>>>24)<=Ee);){if(ge===0)break e;ge--,fe+=rt[we++]<<Ee,Ee+=8}fe>>>=sr,Ee-=sr,L.back+=sr}if(fe>>>=Tt,Ee-=Tt,L.back+=Tt,L.length=pr,Ht===0){L.mode=26;break}if(32&Ht){L.back=-1,L.mode=12;break}if(64&Ht){X.msg="invalid literal/length code",L.mode=30;break}L.extra=15&Ht,L.mode=22;case 22:if(L.extra){for(m=L.extra;Ee<m;){if(ge===0)break e;ge--,fe+=rt[we++]<<Ee,Ee+=8}L.length+=fe&(1<<L.extra)-1,fe>>>=L.extra,Ee-=L.extra,L.back+=L.extra}L.was=L.length,L.mode=23;case 23:for(;Ht=(d=L.distcode[fe&(1<<L.distbits)-1])>>>16&255,pr=65535&d,!((Tt=d>>>24)<=Ee);){if(ge===0)break e;ge--,fe+=rt[we++]<<Ee,Ee+=8}if(!(240&Ht)){for(sr=Tt,Br=Ht,fr=pr;Ht=(d=L.distcode[fr+((fe&(1<<sr+Br)-1)>>sr)])>>>16&255,pr=65535&d,!(sr+(Tt=d>>>24)<=Ee);){if(ge===0)break e;ge--,fe+=rt[we++]<<Ee,Ee+=8}fe>>>=sr,Ee-=sr,L.back+=sr}if(fe>>>=Tt,Ee-=Tt,L.back+=Tt,64&Ht){X.msg="invalid distance code",L.mode=30;break}L.offset=pr,L.extra=15&Ht,L.mode=24;case 24:if(L.extra){for(m=L.extra;Ee<m;){if(ge===0)break e;ge--,fe+=rt[we++]<<Ee,Ee+=8}L.offset+=fe&(1<<L.extra)-1,fe>>>=L.extra,Ee-=L.extra,L.back+=L.extra}if(L.offset>L.dmax){X.msg="invalid distance too far back",L.mode=30;break}L.mode=25;case 25:if(Le===0)break e;if(ot=ft-Le,L.offset>ot){if((ot=L.offset-ot)>L.whave&&L.sane){X.msg="invalid distance too far back",L.mode=30;break}ct=ot>L.wnext?(ot-=L.wnext,L.wsize-ot):L.wnext-ot,ot>L.length&&(ot=L.length),It=L.window}else It=De,ct=He-L.offset,ot=L.length;for(Le<ot&&(ot=Le),Le-=ot,L.length-=ot;De[He++]=It[ct++],--ot;);L.length===0&&(L.mode=21);break;case 26:if(Le===0)break e;De[He++]=L.length,Le--,L.mode=21;break;case 27:if(L.wrap){for(;Ee<32;){if(ge===0)break e;ge--,fe|=rt[we++]<<Ee,Ee+=8}if(ft-=Le,X.total_out+=ft,L.total+=ft,ft&&(X.adler=L.check=L.flags?f(L.check,De,ft,He-ft):B(L.check,De,ft,He-ft)),ft=Le,(L.flags?fe:K(fe))!==L.check){X.msg="incorrect data check",L.mode=30;break}Ee=fe=0}L.mode=28;case 28:if(L.wrap&&L.flags){for(;Ee<32;){if(ge===0)break e;ge--,fe+=rt[we++]<<Ee,Ee+=8}if(fe!==(4294967295&L.total)){X.msg="incorrect length check",L.mode=30;break}Ee=fe=0}L.mode=29;case 29:nt=1;break e;case 30:nt=-3;break e;case 31:return-4;case 32:default:return N}return X.next_out=He,X.avail_out=Le,X.next_in=we,X.avail_in=ge,L.hold=fe,L.bits=Ee,(L.wsize||ft!==X.avail_out&&L.mode<30&&(L.mode<27||de!==4))&&je(X,X.output,X.next_out,ft-X.avail_out)?(L.mode=31,-4):(At-=X.avail_in,ft-=X.avail_out,X.total_in+=At,X.total_out+=ft,L.total+=ft,L.wrap&&ft&&(X.adler=L.check=L.flags?f(L.check,De,ft,X.next_out-ft):B(L.check,De,ft,X.next_out-ft)),X.data_type=L.bits+(L.last?64:0)+(L.mode===12?128:0)+(L.mode===20||L.mode===15?256:0),(At==0&&ft===0||de===4)&&nt===_&&(nt=-5),nt)},te.inflateEnd=function(X){if(!X||!X.state)return N;var de=X.state;return de.window&&(de.window=null),X.state=null,_},te.inflateGetHeader=function(X,de){var L;return X&&X.state&&2&(L=X.state).wrap?((L.head=de).done=!1,_):N},te.inflateSetDictionary=function(X,de){var L,rt=de.length;return X&&X.state?(L=X.state).wrap!==0&&L.mode!==11?N:L.mode===11&&B(1,de,rt,0)!==L.check?-3:je(X,de,rt,rt)?(L.mode=31,-4):(L.havedict=1,_):N},te.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(R,Ne,te){"use strict";var V=R("../utils/common"),B=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],f=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],E=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],h=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];Ne.exports=function(z,S,_,N,Q,I,Y,K){var ce,G,J,W,j,se,he,Oe,Be,je=K.bits,X=0,de=0,L=0,rt=0,De=0,we=0,He=0,ge=0,Le=0,fe=0,Ee=null,At=0,ft=new V.Buf16(16),ot=new V.Buf16(16),ct=null,It=0;for(X=0;X<=15;X++)ft[X]=0;for(de=0;de<N;de++)ft[S[_+de]]++;for(De=je,rt=15;1<=rt&&ft[rt]===0;rt--);if(rt<De&&(De=rt),rt===0)return Q[I++]=20971520,Q[I++]=20971520,K.bits=1,0;for(L=1;L<rt&&ft[L]===0;L++);for(De<L&&(De=L),X=ge=1;X<=15;X++)if(ge<<=1,(ge-=ft[X])<0)return-1;if(0<ge&&(z===0||rt!==1))return-1;for(ot[1]=0,X=1;X<15;X++)ot[X+1]=ot[X]+ft[X];for(de=0;de<N;de++)S[_+de]!==0&&(Y[ot[S[_+de]]++]=de);if(se=z===0?(Ee=ct=Y,19):z===1?(Ee=B,At-=257,ct=f,It-=257,256):(Ee=E,ct=h,-1),X=L,j=I,He=de=fe=0,J=-1,W=(Le=1<<(we=De))-1,z===1&&852<Le||z===2&&592<Le)return 1;for(;;){for(he=X-He,Be=Y[de]<se?(Oe=0,Y[de]):Y[de]>se?(Oe=ct[It+Y[de]],Ee[At+Y[de]]):(Oe=96,0),ce=1<<X-He,L=G=1<<we;Q[j+(fe>>He)+(G-=ce)]=he<<24|Oe<<16|Be|0,G!==0;);for(ce=1<<X-1;fe&ce;)ce>>=1;if(ce!==0?(fe&=ce-1,fe+=ce):fe=0,de++,--ft[X]==0){if(X===rt)break;X=S[_+Y[de]]}if(De<X&&(fe&W)!==J){for(He===0&&(He=De),j+=L,ge=1<<(we=X-He);we+He<rt&&!((ge-=ft[we+He])<=0);)we++,ge<<=1;if(Le+=1<<we,z===1&&852<Le||z===2&&592<Le)return 1;Q[J=fe&W]=De<<24|we<<16|j-I|0}}return fe!==0&&(Q[j+fe]=X-He<<24|64<<16|0),K.bits=De,0}},{"../utils/common":41}],51:[function(R,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(R,Ne,te){"use strict";var V=R("../utils/common"),B=0,f=1;function E(d){for(var x=d.length;0<=--x;)d[x]=0}var h=0,z=29,S=256,_=S+1+z,N=30,Q=19,I=2*_+1,Y=15,K=16,ce=7,G=256,J=16,W=17,j=18,se=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],he=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Oe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Be=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],je=new Array(2*(_+2));E(je);var X=new Array(2*N);E(X);var de=new Array(512);E(de);var L=new Array(256);E(L);var rt=new Array(z);E(rt);var De,we,He,ge=new Array(N);function Le(d,x,ee,Ce,H){this.static_tree=d,this.extra_bits=x,this.extra_base=ee,this.elems=Ce,this.max_length=H,this.has_stree=d&&d.length}function fe(d,x){this.dyn_tree=d,this.max_code=0,this.stat_desc=x}function Ee(d){return d<256?de[d]:de[256+(d>>>7)]}function At(d,x){d.pending_buf[d.pending++]=255&x,d.pending_buf[d.pending++]=x>>>8&255}function ft(d,x,ee){d.bi_valid>K-ee?(d.bi_buf|=x<<d.bi_valid&65535,At(d,d.bi_buf),d.bi_buf=x>>K-d.bi_valid,d.bi_valid+=ee-K):(d.bi_buf|=x<<d.bi_valid&65535,d.bi_valid+=ee)}function ot(d,x,ee){ft(d,ee[2*x],ee[2*x+1])}function ct(d,x){for(var ee=0;ee|=1&d,d>>>=1,ee<<=1,0<--x;);return ee>>>1}function It(d,x,ee){var Ce,H,ne=new Array(Y+1),Ge=0;for(Ce=1;Ce<=Y;Ce++)ne[Ce]=Ge=Ge+ee[Ce-1]<<1;for(H=0;H<=x;H++){var xe=d[2*H+1];xe!==0&&(d[2*H]=ct(ne[xe]++,xe))}}function Tt(d){var x;for(x=0;x<_;x++)d.dyn_ltree[2*x]=0;for(x=0;x<N;x++)d.dyn_dtree[2*x]=0;for(x=0;x<Q;x++)d.bl_tree[2*x]=0;d.dyn_ltree[2*G]=1,d.opt_len=d.static_len=0,d.last_lit=d.matches=0}function Ht(d){8<d.bi_valid?At(d,d.bi_buf):0<d.bi_valid&&(d.pending_buf[d.pending++]=d.bi_buf),d.bi_buf=0,d.bi_valid=0}function pr(d,x,ee,Ce){var H=2*x,ne=2*ee;return d[H]<d[ne]||d[H]===d[ne]&&Ce[x]<=Ce[ee]}function sr(d,x,ee){for(var Ce=d.heap[ee],H=ee<<1;H<=d.heap_len&&(H<d.heap_len&&pr(x,d.heap[H+1],d.heap[H],d.depth)&&H++,!pr(x,Ce,d.heap[H],d.depth));)d.heap[ee]=d.heap[H],ee=H,H<<=1;d.heap[ee]=Ce}function Br(d,x,ee){var Ce,H,ne,Ge,xe=0;if(d.last_lit!==0)for(;Ce=d.pending_buf[d.d_buf+2*xe]<<8|d.pending_buf[d.d_buf+2*xe+1],H=d.pending_buf[d.l_buf+xe],xe++,Ce===0?ot(d,H,x):(ot(d,(ne=L[H])+S+1,x),(Ge=se[ne])!==0&&ft(d,H-=rt[ne],Ge),ot(d,ne=Ee(--Ce),ee),(Ge=he[ne])!==0&&ft(d,Ce-=ge[ne],Ge)),xe<d.last_lit;);ot(d,G,x)}function fr(d,x){var ee,Ce,H,ne=x.dyn_tree,Ge=x.stat_desc.static_tree,xe=x.stat_desc.has_stree,be=x.stat_desc.elems,qe=-1;for(d.heap_len=0,d.heap_max=I,ee=0;ee<be;ee++)ne[2*ee]!==0?(d.heap[++d.heap_len]=qe=ee,d.depth[ee]=0):ne[2*ee+1]=0;for(;d.heap_len<2;)ne[2*(H=d.heap[++d.heap_len]=qe<2?++qe:0)]=1,d.depth[H]=0,d.opt_len--,xe&&(d.static_len-=Ge[2*H+1]);for(x.max_code=qe,ee=d.heap_len>>1;1<=ee;ee--)sr(d,ne,ee);for(H=be;ee=d.heap[1],d.heap[1]=d.heap[d.heap_len--],sr(d,ne,1),Ce=d.heap[1],d.heap[--d.heap_max]=ee,d.heap[--d.heap_max]=Ce,ne[2*H]=ne[2*ee]+ne[2*Ce],d.depth[H]=(d.depth[ee]>=d.depth[Ce]?d.depth[ee]:d.depth[Ce])+1,ne[2*ee+1]=ne[2*Ce+1]=H,d.heap[1]=H++,sr(d,ne,1),2<=d.heap_len;);d.heap[--d.heap_max]=d.heap[1],function(Et,me){var pt,lt,Me,Pe,gt,zt,Ut=me.dyn_tree,ir=me.max_code,Dr=me.stat_desc.static_tree,mr=me.stat_desc.has_stree,Mr=me.stat_desc.extra_bits,Lr=me.stat_desc.extra_base,vr=me.stat_desc.max_length,ur=0;for(Pe=0;Pe<=Y;Pe++)Et.bl_count[Pe]=0;for(Ut[2*Et.heap[Et.heap_max]+1]=0,pt=Et.heap_max+1;pt<I;pt++)vr<(Pe=Ut[2*Ut[2*(lt=Et.heap[pt])+1]+1]+1)&&(Pe=vr,ur++),Ut[2*lt+1]=Pe,ir<lt||(Et.bl_count[Pe]++,gt=0,Lr<=lt&&(gt=Mr[lt-Lr]),zt=Ut[2*lt],Et.opt_len+=zt*(Pe+gt),mr&&(Et.static_len+=zt*(Dr[2*lt+1]+gt)));if(ur!==0){do{for(Pe=vr-1;Et.bl_count[Pe]===0;)Pe--;Et.bl_count[Pe]--,Et.bl_count[Pe+1]+=2,Et.bl_count[vr]--,ur-=2}while(0<ur);for(Pe=vr;Pe!==0;Pe--)for(lt=Et.bl_count[Pe];lt!==0;)ir<(Me=Et.heap[--pt])||(Ut[2*Me+1]!==Pe&&(Et.opt_len+=(Pe-Ut[2*Me+1])*Ut[2*Me],Ut[2*Me+1]=Pe),lt--)}}(d,x),It(ne,qe,d.bl_count)}function k(d,x,ee){var Ce,H,ne=-1,Ge=x[1],xe=0,be=7,qe=4;for(Ge===0&&(be=138,qe=3),x[2*(ee+1)+1]=65535,Ce=0;Ce<=ee;Ce++)H=Ge,Ge=x[2*(Ce+1)+1],++xe<be&&H===Ge||(xe<qe?d.bl_tree[2*H]+=xe:H!==0?(H!==ne&&d.bl_tree[2*H]++,d.bl_tree[2*J]++):xe<=10?d.bl_tree[2*W]++:d.bl_tree[2*j]++,ne=H,qe=(xe=0)===Ge?(be=138,3):H===Ge?(be=6,3):(be=7,4))}function nt(d,x,ee){var Ce,H,ne=-1,Ge=x[1],xe=0,be=7,qe=4;for(Ge===0&&(be=138,qe=3),Ce=0;Ce<=ee;Ce++)if(H=Ge,Ge=x[2*(Ce+1)+1],!(++xe<be&&H===Ge)){if(xe<qe)for(;ot(d,H,d.bl_tree),--xe!=0;);else H!==0?(H!==ne&&(ot(d,H,d.bl_tree),xe--),ot(d,J,d.bl_tree),ft(d,xe-3,2)):xe<=10?(ot(d,W,d.bl_tree),ft(d,xe-3,3)):(ot(d,j,d.bl_tree),ft(d,xe-11,7));ne=H,qe=(xe=0)===Ge?(be=138,3):H===Ge?(be=6,3):(be=7,4)}}E(ge);var P=!1;function m(d,x,ee,Ce){ft(d,(h<<1)+(Ce?1:0),3),function(H,ne,Ge,xe){Ht(H),xe&&(At(H,Ge),At(H,~Ge)),V.arraySet(H.pending_buf,H.window,ne,Ge,H.pending),H.pending+=Ge}(d,x,ee,!0)}te._tr_init=function(d){P||(function(){var x,ee,Ce,H,ne,Ge=new Array(Y+1);for(H=Ce=0;H<z-1;H++)for(rt[H]=Ce,x=0;x<1<<se[H];x++)L[Ce++]=H;for(L[Ce-1]=H,H=ne=0;H<16;H++)for(ge[H]=ne,x=0;x<1<<he[H];x++)de[ne++]=H;for(ne>>=7;H<N;H++)for(ge[H]=ne<<7,x=0;x<1<<he[H]-7;x++)de[256+ne++]=H;for(ee=0;ee<=Y;ee++)Ge[ee]=0;for(x=0;x<=143;)je[2*x+1]=8,x++,Ge[8]++;for(;x<=255;)je[2*x+1]=9,x++,Ge[9]++;for(;x<=279;)je[2*x+1]=7,x++,Ge[7]++;for(;x<=287;)je[2*x+1]=8,x++,Ge[8]++;for(It(je,_+1,Ge),x=0;x<N;x++)X[2*x+1]=5,X[2*x]=ct(x,5);De=new Le(je,se,S+1,_,Y),we=new Le(X,he,0,N,Y),He=new Le(new Array(0),Oe,0,Q,ce)}(),P=!0),d.l_desc=new fe(d.dyn_ltree,De),d.d_desc=new fe(d.dyn_dtree,we),d.bl_desc=new fe(d.bl_tree,He),d.bi_buf=0,d.bi_valid=0,Tt(d)},te._tr_stored_block=m,te._tr_flush_block=function(d,x,ee,Ce){var H,ne,Ge=0;0<d.level?(d.strm.data_type===2&&(d.strm.data_type=function(xe){var be,qe=4093624447;for(be=0;be<=31;be++,qe>>>=1)if(1&qe&&xe.dyn_ltree[2*be]!==0)return B;if(xe.dyn_ltree[18]!==0||xe.dyn_ltree[20]!==0||xe.dyn_ltree[26]!==0)return f;for(be=32;be<S;be++)if(xe.dyn_ltree[2*be]!==0)return f;return B}(d)),fr(d,d.l_desc),fr(d,d.d_desc),Ge=function(xe){var be;for(k(xe,xe.dyn_ltree,xe.l_desc.max_code),k(xe,xe.dyn_dtree,xe.d_desc.max_code),fr(xe,xe.bl_desc),be=Q-1;3<=be&&xe.bl_tree[2*Be[be]+1]===0;be--);return xe.opt_len+=3*(be+1)+5+5+4,be}(d),H=d.opt_len+3+7>>>3,(ne=d.static_len+3+7>>>3)<=H&&(H=ne)):H=ne=ee+5,ee+4<=H&&x!==-1?m(d,x,ee,Ce):d.strategy===4||ne===H?(ft(d,2+(Ce?1:0),3),Br(d,je,X)):(ft(d,4+(Ce?1:0),3),function(xe,be,qe,Et){var me;for(ft(xe,be-257,5),ft(xe,qe-1,5),ft(xe,Et-4,4),me=0;me<Et;me++)ft(xe,xe.bl_tree[2*Be[me]+1],3);nt(xe,xe.dyn_ltree,be-1),nt(xe,xe.dyn_dtree,qe-1)}(d,d.l_desc.max_code+1,d.d_desc.max_code+1,Ge+1),Br(d,d.dyn_ltree,d.dyn_dtree)),Tt(d),Ce&&Ht(d)},te._tr_tally=function(d,x,ee){return d.pending_buf[d.d_buf+2*d.last_lit]=x>>>8&255,d.pending_buf[d.d_buf+2*d.last_lit+1]=255&x,d.pending_buf[d.l_buf+d.last_lit]=255&ee,d.last_lit++,x===0?d.dyn_ltree[2*ee]++:(d.matches++,x--,d.dyn_ltree[2*(L[ee]+S+1)]++,d.dyn_dtree[2*Ee(x)]++),d.last_lit===d.lit_bufsize-1},te._tr_align=function(d){ft(d,2,3),ot(d,G,je),function(x){x.bi_valid===16?(At(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)}(d)}},{"../utils/common":41}],53:[function(R,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(R,Ne,te){(function(V){(function(B,f){"use strict";if(!B.setImmediate){var E,h,z,S,_=1,N={},Q=!1,I=B.document,Y=Object.getPrototypeOf&&Object.getPrototypeOf(B);Y=Y&&Y.setTimeout?Y:B,E={}.toString.call(B.process)==="[object process]"?function(J){ue.nextTick(function(){ce(J)})}:function(){if(B.postMessage&&!B.importScripts){var J=!0,W=B.onmessage;return B.onmessage=function(){J=!1},B.postMessage("","*"),B.onmessage=W,J}}()?(S="setImmediate$"+Math.random()+"$",B.addEventListener?B.addEventListener("message",G,!1):B.attachEvent("onmessage",G),function(J){B.postMessage(S+J,"*")}):B.MessageChannel?((z=new MessageChannel).port1.onmessage=function(J){ce(J.data)},function(J){z.port2.postMessage(J)}):I&&"onreadystatechange"in I.createElement("script")?(h=I.documentElement,function(J){var W=I.createElement("script");W.onreadystatechange=function(){ce(J),W.onreadystatechange=null,h.removeChild(W),W=null},h.appendChild(W)}):function(J){setTimeout(ce,0,J)},Y.setImmediate=function(J){typeof J!="function"&&(J=new Function(""+J));for(var W=new Array(arguments.length-1),j=0;j<W.length;j++)W[j]=arguments[j+1];var se={callback:J,args:W};return N[_]=se,E(_),_++},Y.clearImmediate=K}function K(J){delete N[J]}function ce(J){if(Q)setTimeout(ce,0,J);else{var W=N[J];if(W){Q=!0;try{(function(j){var se=j.callback,he=j.args;switch(he.length){case 0:se();break;case 1:se(he[0]);break;case 2:se(he[0],he[1]);break;case 3:se(he[0],he[1],he[2]);break;default:se.apply(f,he)}})(W)}finally{K(J),Q=!1}}}}function G(J){J.source===B&&typeof J.data=="string"&&J.data.indexOf(S)===0&&ce(+J.data.slice(S.length))}})(typeof self=="undefined"?V===void 0?this:V:self)}).call(this,typeof w.g!="undefined"?w.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})},5630:function(bn,Xt,w){"use strict";var pe=w(14809),ue=w(20439),R=w(4635),Ne=w(50298),te=w(62646),V=w(92310),B=w.n(V),f=w(18929),E=w(59301),h=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],z=(0,E.forwardRef)(function(S,_){var N,Q=S.prefixCls,I=Q===void 0?"rc-checkbox":Q,Y=S.className,K=S.style,ce=S.checked,G=S.disabled,J=S.defaultChecked,W=J===void 0?!1:J,j=S.type,se=j===void 0?"checkbox":j,he=S.title,Oe=S.onChange,Be=(0,te.Z)(S,h),je=(0,E.useRef)(null),X=(0,f.Z)(W,{value:ce}),de=(0,Ne.Z)(X,2),L=de[0],rt=de[1];(0,E.useImperativeHandle)(_,function(){return{focus:function(){var ge;(ge=je.current)===null||ge===void 0||ge.focus()},blur:function(){var ge;(ge=je.current)===null||ge===void 0||ge.blur()},input:je.current}});var De=B()(I,Y,(N={},(0,R.Z)(N,"".concat(I,"-checked"),L),(0,R.Z)(N,"".concat(I,"-disabled"),G),N)),we=function(ge){G||("checked"in S||rt(ge.target.checked),Oe==null||Oe({target:(0,ue.Z)((0,ue.Z)({},S),{},{type:se,checked:ge.target.checked}),stopPropagation:function(){ge.stopPropagation()},preventDefault:function(){ge.preventDefault()},nativeEvent:ge.nativeEvent}))};return E.createElement("span",{className:De,title:he,style:K},E.createElement("input",(0,pe.Z)({},Be,{className:"".concat(I,"-input"),ref:je,onChange:we,disabled:G,checked:!!L,type:se})),E.createElement("span",{className:"".concat(I,"-inner")}))});Xt.Z=z},31561:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return se}});var pe=w(14809),ue=w(4635),R=w(50298),Ne=w(62646),te=w(35593),V=w(92310),B=w.n(V),f=w(8654),E=w(59301),h=w(10228),z=w(16089),S=h.Z.ESC,_=h.Z.TAB;function N(he){var Oe=he.visible,Be=he.triggerRef,je=he.onVisibleChange,X=he.autoFocus,de=he.overlayRef,L=E.useRef(!1),rt=function(){if(Oe){var ge,Le;(ge=Be.current)===null||ge===void 0||(Le=ge.focus)===null||Le===void 0||Le.call(ge),je==null||je(!1)}},De=function(){var ge;return(ge=de.current)!==null&&ge!==void 0&&ge.focus?(de.current.focus(),L.current=!0,!0):!1},we=function(ge){switch(ge.keyCode){case S:rt();break;case _:{var Le=!1;L.current||(Le=De()),Le?ge.preventDefault():rt();break}}};E.useEffect(function(){return Oe?(window.addEventListener("keydown",we),X&&(0,z.Z)(De,3),function(){window.removeEventListener("keydown",we),L.current=!1}):function(){L.current=!1}},[Oe])}var Q=(0,E.forwardRef)(function(he,Oe){var Be=he.overlay,je=he.arrow,X=he.prefixCls,de=(0,E.useMemo)(function(){var rt;return typeof Be=="function"?rt=Be():rt=Be,rt},[Be]),L=(0,f.sQ)(Oe,de==null?void 0:de.ref);return E.createElement(E.Fragment,null,je&&E.createElement("div",{className:"".concat(X,"-arrow")}),E.cloneElement(de,{ref:(0,f.Yr)(de)?L:void 0}))}),I=Q,Y={adjustX:1,adjustY:1},K=[0,0],ce={topLeft:{points:["bl","tl"],overflow:Y,offset:[0,-4],targetOffset:K},top:{points:["bc","tc"],overflow:Y,offset:[0,-4],targetOffset:K},topRight:{points:["br","tr"],overflow:Y,offset:[0,-4],targetOffset:K},bottomLeft:{points:["tl","bl"],overflow:Y,offset:[0,4],targetOffset:K},bottom:{points:["tc","bc"],overflow:Y,offset:[0,4],targetOffset:K},bottomRight:{points:["tr","br"],overflow:Y,offset:[0,4],targetOffset:K}},G=ce,J=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function W(he,Oe){var Be,je=he.arrow,X=je===void 0?!1:je,de=he.prefixCls,L=de===void 0?"rc-dropdown":de,rt=he.transitionName,De=he.animation,we=he.align,He=he.placement,ge=He===void 0?"bottomLeft":He,Le=he.placements,fe=Le===void 0?G:Le,Ee=he.getPopupContainer,At=he.showAction,ft=he.hideAction,ot=he.overlayClassName,ct=he.overlayStyle,It=he.visible,Tt=he.trigger,Ht=Tt===void 0?["hover"]:Tt,pr=he.autoFocus,sr=he.overlay,Br=he.children,fr=he.onVisibleChange,k=(0,Ne.Z)(he,J),nt=E.useState(),P=(0,R.Z)(nt,2),m=P[0],d=P[1],x="visible"in he?It:m,ee=E.useRef(null),Ce=E.useRef(null),H=E.useRef(null);E.useImperativeHandle(Oe,function(){return ee.current});var ne=function(Me){d(Me),fr==null||fr(Me)};N({visible:x,triggerRef:H,onVisibleChange:ne,autoFocus:pr,overlayRef:Ce});var Ge=function(Me){var Pe=he.onOverlayClick;d(!1),Pe&&Pe(Me)},xe=function(){return E.createElement(I,{ref:Ce,overlay:sr,prefixCls:L,arrow:X})},be=function(){return typeof sr=="function"?xe:xe()},qe=function(){var Me=he.minOverlayWidthMatchTrigger,Pe=he.alignPoint;return"minOverlayWidthMatchTrigger"in he?Me:!Pe},Et=function(){var Me=he.openClassName;return Me!==void 0?Me:"".concat(L,"-open")},me=E.cloneElement(Br,{className:B()((Be=Br.props)===null||Be===void 0?void 0:Be.className,x&&Et()),ref:(0,f.Yr)(Br)?(0,f.sQ)(H,Br.ref):void 0}),pt=ft;return!pt&&Ht.indexOf("contextMenu")!==-1&&(pt=["click"]),E.createElement(te.Z,(0,pe.Z)({builtinPlacements:fe},k,{prefixCls:L,ref:ee,popupClassName:B()(ot,(0,ue.Z)({},"".concat(L,"-show-arrow"),X)),popupStyle:ct,action:Ht,showAction:At,hideAction:pt,popupPlacement:ge,popupAlign:we,popupTransitionName:rt,popupAnimation:De,popupVisible:x,stretch:qe()?"minWidth":"",popup:be(),onPopupVisibleChange:ne,onPopupClick:Ge,getPopupContainer:Ee}),me)}var j=E.forwardRef(W),se=j},93681:function(bn,Xt,w){"use strict";w.r(Xt),w.d(Xt,{BaseInput:function(){return h},default:function(){return ce}});var pe=w(14809),ue=w(20439),R=w(4635),Ne=w(93664),te=w(92310),V=w.n(te),B=w(59301),f=w(5643),E=function(J){var W,j,se=J.inputElement,he=J.prefixCls,Oe=J.prefix,Be=J.suffix,je=J.addonBefore,X=J.addonAfter,de=J.className,L=J.style,rt=J.disabled,De=J.readOnly,we=J.focused,He=J.triggerFocus,ge=J.allowClear,Le=J.value,fe=J.handleReset,Ee=J.hidden,At=J.classes,ft=J.classNames,ot=J.dataAttrs,ct=J.styles,It=J.components,Tt=(It==null?void 0:It.affixWrapper)||"span",Ht=(It==null?void 0:It.groupWrapper)||"span",pr=(It==null?void 0:It.wrapper)||"span",sr=(It==null?void 0:It.groupAddon)||"span",Br=(0,B.useRef)(null),fr=function(xe){var be;(be=Br.current)!==null&&be!==void 0&&be.contains(xe.target)&&(He==null||He())},k=function(){var xe;if(!ge)return null;var be=!rt&&!De&&Le,qe="".concat(he,"-clear-icon"),Et=(0,Ne.Z)(ge)==="object"&&ge!==null&&ge!==void 0&&ge.clearIcon?ge.clearIcon:"\u2716";return B.createElement("span",{onClick:fe,onMouseDown:function(pt){return pt.preventDefault()},className:V()(qe,(xe={},(0,R.Z)(xe,"".concat(qe,"-hidden"),!be),(0,R.Z)(xe,"".concat(qe,"-has-suffix"),!!Be),xe)),role:"button",tabIndex:-1},Et)},nt=(0,B.cloneElement)(se,{value:Le,hidden:Ee,className:V()((W=se.props)===null||W===void 0?void 0:W.className,!(0,f.X3)(J)&&!(0,f.He)(J)&&de)||null,style:(0,ue.Z)((0,ue.Z)({},(j=se.props)===null||j===void 0?void 0:j.style),!(0,f.X3)(J)&&!(0,f.He)(J)?L:{})});if((0,f.X3)(J)){var P,m="".concat(he,"-affix-wrapper"),d=V()(m,(P={},(0,R.Z)(P,"".concat(m,"-disabled"),rt),(0,R.Z)(P,"".concat(m,"-focused"),we),(0,R.Z)(P,"".concat(m,"-readonly"),De),(0,R.Z)(P,"".concat(m,"-input-with-clear-btn"),Be&&ge&&Le),P),!(0,f.He)(J)&&de,At==null?void 0:At.affixWrapper,ft==null?void 0:ft.affixWrapper),x=(Be||ge)&&B.createElement("span",{className:V()("".concat(he,"-suffix"),ft==null?void 0:ft.suffix),style:ct==null?void 0:ct.suffix},k(),Be);nt=B.createElement(Tt,(0,pe.Z)({className:d,style:(0,ue.Z)((0,ue.Z)({},(0,f.He)(J)?void 0:L),ct==null?void 0:ct.affixWrapper),hidden:!(0,f.He)(J)&&Ee,onClick:fr},ot==null?void 0:ot.affixWrapper,{ref:Br}),Oe&&B.createElement("span",{className:V()("".concat(he,"-prefix"),ft==null?void 0:ft.prefix),style:ct==null?void 0:ct.prefix},Oe),(0,B.cloneElement)(se,{value:Le,hidden:null}),x)}if((0,f.He)(J)){var ee="".concat(he,"-group"),Ce="".concat(ee,"-addon"),H=V()("".concat(he,"-wrapper"),ee,At==null?void 0:At.wrapper),ne=V()("".concat(he,"-group-wrapper"),de,At==null?void 0:At.group);return B.createElement(Ht,{className:ne,style:L,hidden:Ee},B.createElement(pr,{className:H},je&&B.createElement(sr,{className:Ce},je),(0,B.cloneElement)(nt,{hidden:null}),X&&B.createElement(sr,{className:Ce},X)))}return nt},h=E,z=w(95190),S=w(50298),_=w(62646),N=w(18929),Q=w(2738),I=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],Y=(0,B.forwardRef)(function(G,J){var W=G.autoComplete,j=G.onChange,se=G.onFocus,he=G.onBlur,Oe=G.onPressEnter,Be=G.onKeyDown,je=G.prefixCls,X=je===void 0?"rc-input":je,de=G.disabled,L=G.htmlSize,rt=G.className,De=G.maxLength,we=G.suffix,He=G.showCount,ge=G.type,Le=ge===void 0?"text":ge,fe=G.classes,Ee=G.classNames,At=G.styles,ft=(0,_.Z)(G,I),ot=(0,N.Z)(G.defaultValue,{value:G.value}),ct=(0,S.Z)(ot,2),It=ct[0],Tt=ct[1],Ht=(0,B.useState)(!1),pr=(0,S.Z)(Ht,2),sr=pr[0],Br=pr[1],fr=(0,B.useRef)(null),k=function(ne){fr.current&&(0,f.nH)(fr.current,ne)};(0,B.useImperativeHandle)(J,function(){return{focus:k,blur:function(){var ne;(ne=fr.current)===null||ne===void 0||ne.blur()},setSelectionRange:function(ne,Ge,xe){var be;(be=fr.current)===null||be===void 0||be.setSelectionRange(ne,Ge,xe)},select:function(){var ne;(ne=fr.current)===null||ne===void 0||ne.select()},input:fr.current}}),(0,B.useEffect)(function(){Br(function(H){return H&&de?!1:H})},[de]);var nt=function(ne){G.value===void 0&&Tt(ne.target.value),fr.current&&(0,f.rJ)(fr.current,ne,j)},P=function(ne){Oe&&ne.key==="Enter"&&Oe(ne),Be==null||Be(ne)},m=function(ne){Br(!0),se==null||se(ne)},d=function(ne){Br(!1),he==null||he(ne)},x=function(ne){Tt(""),k(),fr.current&&(0,f.rJ)(fr.current,ne,j)},ee=function(){var ne=(0,Q.Z)(G,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return B.createElement("input",(0,pe.Z)({autoComplete:W},ne,{onChange:nt,onFocus:m,onBlur:d,onKeyDown:P,className:V()(X,(0,R.Z)({},"".concat(X,"-disabled"),de),Ee==null?void 0:Ee.input),style:At==null?void 0:At.input,ref:fr,size:L,type:Le}))},Ce=function(){var ne=Number(De)>0;if(we||He){var Ge=(0,f.D7)(It),xe=(0,z.Z)(Ge).length,be=(0,Ne.Z)(He)==="object"?He.formatter({value:Ge,count:xe,maxLength:De}):"".concat(xe).concat(ne?" / ".concat(De):"");return B.createElement(B.Fragment,null,!!He&&B.createElement("span",{className:V()("".concat(X,"-show-count-suffix"),(0,R.Z)({},"".concat(X,"-show-count-has-suffix"),!!we),Ee==null?void 0:Ee.count),style:(0,ue.Z)({},At==null?void 0:At.count)},be),we)}return null};return B.createElement(h,(0,pe.Z)({},ft,{prefixCls:X,className:rt,inputElement:ee(),handleReset:x,value:(0,f.D7)(It),focused:sr,triggerFocus:k,suffix:Ce(),disabled:de,classes:fe,classNames:Ee,styles:At}))}),K=Y,ce=K},5643:function(bn,Xt,w){"use strict";w.d(Xt,{D7:function(){return te},He:function(){return pe},X3:function(){return ue},nH:function(){return Ne},rJ:function(){return R}});function pe(V){return!!(V.addonBefore||V.addonAfter)}function ue(V){return!!(V.prefix||V.suffix||V.allowClear)}function R(V,B,f,E){if(f){var h=B;if(B.type==="click"){var z=V.cloneNode(!0);h=Object.create(B,{target:{value:z},currentTarget:{value:z}}),z.value="",f(h);return}if(E!==void 0){h=Object.create(B,{target:{value:V},currentTarget:{value:V}}),V.value=E,f(h);return}f(h)}}function Ne(V,B){if(V){V.focus(B);var f=B||{},E=f.cursor;if(E){var h=V.value.length;switch(E){case"start":V.setSelectionRange(0,0);break;case"end":V.setSelectionRange(h,h);break;default:V.setSelectionRange(0,h)}}}}function te(V){return typeof V=="undefined"||V===null?"":String(V)}},15285:function(bn,Xt,w){"use strict";w.d(Xt,{iz:function(){return Vr},ck:function(){return nn},BW:function(){return en},sN:function(){return nn},Wd:function(){return Qt},ZP:function(){return sn},Xl:function(){return Be}});var pe=w(14809),ue=w(4635),R=w(20439),Ne=w(95190),te=w(50298),V=w(62646),B=w(92310),f=w.n(B),E=w(11780),h=w(18929),z=w(13697),S=w(48736),_=w(59301),N=w(4676),Q=_.createContext(null);function I(Kt,Zt){return Kt===void 0?null:"".concat(Kt,"-").concat(Zt)}function Y(Kt){var Zt=_.useContext(Q);return I(Zt,Kt)}var K=w(80547),ce=["children","locked"],G=_.createContext(null);function J(Kt,Zt){var qt=(0,R.Z)({},Kt);return Object.keys(Zt).forEach(function(er){var Jt=Zt[er];Jt!==void 0&&(qt[er]=Jt)}),qt}function W(Kt){var Zt=Kt.children,qt=Kt.locked,er=(0,V.Z)(Kt,ce),Jt=_.useContext(G),Qr=(0,K.Z)(function(){return J(Jt,er)},[Jt,er],function(kr,Gr){return!qt&&(kr[0]!==Gr[0]||!(0,z.Z)(kr[1],Gr[1],!0))});return _.createElement(G.Provider,{value:Qr},Zt)}var j=[],se=_.createContext(null);function he(){return _.useContext(se)}var Oe=_.createContext(j);function Be(Kt){var Zt=_.useContext(Oe);return _.useMemo(function(){return Kt!==void 0?[].concat((0,Ne.Z)(Zt),[Kt]):Zt},[Zt,Kt])}var je=_.createContext(null),X=_.createContext({}),de=X,L=w(29194);function rt(Kt){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,L.Z)(Kt)){var qt=Kt.nodeName.toLowerCase(),er=["input","select","textarea","button"].includes(qt)||Kt.isContentEditable||qt==="a"&&!!Kt.getAttribute("href"),Jt=Kt.getAttribute("tabindex"),Qr=Number(Jt),kr=null;return Jt&&!Number.isNaN(Qr)?kr=Qr:er&&kr===null&&(kr=0),er&&Kt.disabled&&(kr=null),kr!==null&&(kr>=0||Zt&&kr<0)}return!1}function De(Kt){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qt=(0,Ne.Z)(Kt.querySelectorAll("*")).filter(function(er){return rt(er,Zt)});return rt(Kt,Zt)&&qt.unshift(Kt),qt}var we=null;function He(){we=document.activeElement}function ge(){we=null}function Le(){if(we)try{we.focus()}catch(Kt){}}function fe(Kt,Zt){if(Zt.keyCode===9){var qt=De(Kt),er=qt[Zt.shiftKey?0:qt.length-1],Jt=er===document.activeElement||Kt===document.activeElement;if(Jt){var Qr=qt[Zt.shiftKey?qt.length-1:0];Qr.focus(),Zt.preventDefault()}}}var Ee=w(10228),At=w(16089),ft=Ee.Z.LEFT,ot=Ee.Z.RIGHT,ct=Ee.Z.UP,It=Ee.Z.DOWN,Tt=Ee.Z.ENTER,Ht=Ee.Z.ESC,pr=Ee.Z.HOME,sr=Ee.Z.END,Br=[ct,It,ft,ot];function fr(Kt,Zt,qt,er){var Jt,Qr,kr,Gr,Mn="prev",Pn="next",si="children",qn="parent";if(Kt==="inline"&&er===Tt)return{inlineTrigger:!0};var bi=(Jt={},(0,ue.Z)(Jt,ct,Mn),(0,ue.Z)(Jt,It,Pn),Jt),Jn=(Qr={},(0,ue.Z)(Qr,ft,qt?Pn:Mn),(0,ue.Z)(Qr,ot,qt?Mn:Pn),(0,ue.Z)(Qr,It,si),(0,ue.Z)(Qr,Tt,si),Qr),Hn=(kr={},(0,ue.Z)(kr,ct,Mn),(0,ue.Z)(kr,It,Pn),(0,ue.Z)(kr,Tt,si),(0,ue.Z)(kr,Ht,qn),(0,ue.Z)(kr,ft,qt?si:qn),(0,ue.Z)(kr,ot,qt?qn:si),kr),on={inline:bi,horizontal:Jn,vertical:Hn,inlineSub:bi,horizontalSub:Hn,verticalSub:Hn},mi=(Gr=on["".concat(Kt).concat(Zt?"":"Sub")])===null||Gr===void 0?void 0:Gr[er];switch(mi){case Mn:return{offset:-1,sibling:!0};case Pn:return{offset:1,sibling:!0};case qn:return{offset:-1,sibling:!1};case si:return{offset:1,sibling:!1};default:return null}}function k(Kt){for(var Zt=Kt;Zt;){if(Zt.getAttribute("data-menu-list"))return Zt;Zt=Zt.parentElement}return null}function nt(Kt,Zt){for(var qt=Kt||document.activeElement;qt;){if(Zt.has(qt))return qt;qt=qt.parentElement}return null}function P(Kt,Zt){var qt=De(Kt,!0);return qt.filter(function(er){return Zt.has(er)})}function m(Kt,Zt,qt){var er=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Kt)return null;var Jt=P(Kt,Zt),Qr=Jt.length,kr=Jt.findIndex(function(Gr){return qt===Gr});return er<0?kr===-1?kr=Qr-1:kr-=1:er>0&&(kr+=1),kr=(kr+Qr)%Qr,Jt[kr]}var d=function(Zt,qt){var er=new Set,Jt=new Map,Qr=new Map;return Zt.forEach(function(kr){var Gr=document.querySelector("[data-menu-id='".concat(I(qt,kr),"']"));Gr&&(er.add(Gr),Qr.set(Gr,kr),Jt.set(kr,Gr))}),{elements:er,key2element:Jt,element2key:Qr}};function x(Kt,Zt,qt,er,Jt,Qr,kr,Gr,Mn,Pn){var si=_.useRef(),qn=_.useRef();qn.current=Zt;var bi=function(){At.Z.cancel(si.current)};return _.useEffect(function(){return function(){bi()}},[]),function(Jn){var Hn=Jn.which;if([].concat(Br,[Tt,Ht,pr,sr]).includes(Hn)){var on=Qr(),mi=d(on,er),Ln=mi,ei=Ln.elements,vi=Ln.key2element,Ei=Ln.element2key,Xn=vi.get(Zt),Bi=nt(Xn,ei),ra=Ei.get(Bi),ii=fr(Kt,kr(ra,!0).length===1,qt,Hn);if(!ii&&Hn!==pr&&Hn!==sr)return;(Br.includes(Hn)||[pr,sr].includes(Hn))&&Jn.preventDefault();var An=function(Yi){if(Yi){var ao=Yi,Yn=Yi.querySelector("a");Yn!=null&&Yn.getAttribute("href")&&(ao=Yn);var Nn=Ei.get(Yi);Gr(Nn),bi(),si.current=(0,At.Z)(function(){qn.current===Nn&&ao.focus()})}};if([pr,sr].includes(Hn)||ii.sibling||!Bi){var rn;!Bi||Kt==="inline"?rn=Jt.current:rn=k(Bi);var Un,xn=P(rn,ei);Hn===pr?Un=xn[0]:Hn===sr?Un=xn[xn.length-1]:Un=m(rn,ei,Bi,ii.offset),An(Un)}else if(ii.inlineTrigger)Mn(ra);else if(ii.offset>0)Mn(ra,!0),bi(),si.current=(0,At.Z)(function(){mi=d(on,er);var Aa=Bi.getAttribute("aria-controls"),Yi=document.getElementById(Aa),ao=m(Yi,mi.elements);An(ao)},5);else if(ii.offset<0){var jn=kr(ra,!0),ci=jn[jn.length-2],wi=vi.get(ci);Mn(ci,!1),An(wi)}}Pn==null||Pn(Jn)}}function ee(Kt){Promise.resolve().then(Kt)}var Ce="__RC_UTIL_PATH_SPLIT__",H=function(Zt){return Zt.join(Ce)},ne=function(Zt){return Zt.split(Ce)},Ge="rc-menu-more";function xe(){var Kt=_.useState({}),Zt=(0,te.Z)(Kt,2),qt=Zt[1],er=(0,_.useRef)(new Map),Jt=(0,_.useRef)(new Map),Qr=_.useState([]),kr=(0,te.Z)(Qr,2),Gr=kr[0],Mn=kr[1],Pn=(0,_.useRef)(0),si=(0,_.useRef)(!1),qn=function(){si.current||qt({})},bi=(0,_.useCallback)(function(vi,Ei){var Xn=H(Ei);Jt.current.set(Xn,vi),er.current.set(vi,Xn),Pn.current+=1;var Bi=Pn.current;ee(function(){Bi===Pn.current&&qn()})},[]),Jn=(0,_.useCallback)(function(vi,Ei){var Xn=H(Ei);Jt.current.delete(Xn),er.current.delete(vi)},[]),Hn=(0,_.useCallback)(function(vi){Mn(vi)},[]),on=(0,_.useCallback)(function(vi,Ei){var Xn=er.current.get(vi)||"",Bi=ne(Xn);return Ei&&Gr.includes(Bi[0])&&Bi.unshift(Ge),Bi},[Gr]),mi=(0,_.useCallback)(function(vi,Ei){return vi.some(function(Xn){var Bi=on(Xn,!0);return Bi.includes(Ei)})},[on]),Ln=function(){var Ei=(0,Ne.Z)(er.current.keys());return Gr.length&&Ei.push(Ge),Ei},ei=(0,_.useCallback)(function(vi){var Ei="".concat(er.current.get(vi)).concat(Ce),Xn=new Set;return(0,Ne.Z)(Jt.current.keys()).forEach(function(Bi){Bi.startsWith(Ei)&&Xn.add(Jt.current.get(Bi))}),Xn},[]);return _.useEffect(function(){return function(){si.current=!0}},[]),{registerPath:bi,unregisterPath:Jn,refreshOverflowKeys:Hn,isSubPathKey:mi,getKeyPath:on,getKeys:Ln,getSubPathKeys:ei}}function be(Kt){var Zt=_.useRef(Kt);Zt.current=Kt;var qt=_.useCallback(function(){for(var er,Jt=arguments.length,Qr=new Array(Jt),kr=0;kr<Jt;kr++)Qr[kr]=arguments[kr];return(er=Zt.current)===null||er===void 0?void 0:er.call.apply(er,[Zt].concat(Qr))},[]);return Kt?qt:void 0}var qe=Math.random().toFixed(5).toString().slice(2),Et=0;function me(Kt){var Zt=(0,h.Z)(Kt,{value:Kt}),qt=(0,te.Z)(Zt,2),er=qt[0],Jt=qt[1];return _.useEffect(function(){Et+=1;var Qr="".concat(qe,"-").concat(Et);Jt("rc-menu-uuid-".concat(Qr))},[]),er}var pt=w(99153),lt=w(84851),Me=w(19257),Pe=w(93046),gt=w(2738),zt=w(8654);function Ut(Kt,Zt,qt,er){var Jt=_.useContext(G),Qr=Jt.activeKey,kr=Jt.onActive,Gr=Jt.onInactive,Mn={active:Qr===Kt};return Zt||(Mn.onMouseEnter=function(Pn){qt==null||qt({key:Kt,domEvent:Pn}),kr(Kt)},Mn.onMouseLeave=function(Pn){er==null||er({key:Kt,domEvent:Pn}),Gr(Kt)}),Mn}function ir(Kt){var Zt=_.useContext(G),qt=Zt.mode,er=Zt.rtl,Jt=Zt.inlineIndent;if(qt!=="inline")return null;var Qr=Kt;return er?{paddingRight:Qr*Jt}:{paddingLeft:Qr*Jt}}function Dr(Kt){var Zt=Kt.icon,qt=Kt.props,er=Kt.children,Jt;return Zt===null||Zt===!1?null:(typeof Zt=="function"?Jt=_.createElement(Zt,(0,R.Z)({},qt)):typeof Zt!="boolean"&&(Jt=Zt),Jt||er||null)}var mr=["item"];function Mr(Kt){var Zt=Kt.item,qt=(0,V.Z)(Kt,mr);return Object.defineProperty(qt,"item",{get:function(){return(0,S.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Zt}}),qt}var Lr=["title","attribute","elementRef"],vr=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ur=["active"],$r=function(Kt){(0,Me.Z)(qt,Kt);var Zt=(0,Pe.Z)(qt);function qt(){return(0,pt.Z)(this,qt),Zt.apply(this,arguments)}return(0,lt.Z)(qt,[{key:"render",value:function(){var Jt=this.props,Qr=Jt.title,kr=Jt.attribute,Gr=Jt.elementRef,Mn=(0,V.Z)(Jt,Lr),Pn=(0,gt.Z)(Mn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,S.ZP)(!kr,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),_.createElement(E.Z.Item,(0,pe.Z)({},kr,{title:typeof Qr=="string"?Qr:void 0},Pn,{ref:Gr}))}}]),qt}(_.Component),cn=_.forwardRef(function(Kt,Zt){var qt,er=Kt.style,Jt=Kt.className,Qr=Kt.eventKey,kr=Kt.warnKey,Gr=Kt.disabled,Mn=Kt.itemIcon,Pn=Kt.children,si=Kt.role,qn=Kt.onMouseEnter,bi=Kt.onMouseLeave,Jn=Kt.onClick,Hn=Kt.onKeyDown,on=Kt.onFocus,mi=(0,V.Z)(Kt,vr),Ln=Y(Qr),ei=_.useContext(G),vi=ei.prefixCls,Ei=ei.onItemClick,Xn=ei.disabled,Bi=ei.overflowDisabled,ra=ei.itemIcon,ii=ei.selectedKeys,An=ei.onActive,rn=_.useContext(de),Un=rn._internalRenderMenuItem,xn="".concat(vi,"-item"),jn=_.useRef(),ci=_.useRef(),wi=Xn||Gr,Aa=(0,zt.x1)(Zt,ci),Yi=Be(Qr),ao=function(ba){return{key:Qr,keyPath:(0,Ne.Z)(Yi).reverse(),item:jn.current,domEvent:ba}},Yn=Mn||ra,Nn=Ut(Qr,wi,qn,bi),_i=Nn.active,xi=(0,V.Z)(Nn,ur),ha=ii.includes(Qr),No=ir(Yi.length),na=function(ba){if(!wi){var Ai=ao(ba);Jn==null||Jn(Mr(Ai)),Ei(Ai)}},$i=function(ba){if(Hn==null||Hn(ba),ba.which===Ee.Z.ENTER){var Ai=ao(ba);Jn==null||Jn(Mr(Ai)),Ei(Ai)}},ja=function(ba){An(Qr),on==null||on(ba)},Ma={};Kt.role==="option"&&(Ma["aria-selected"]=ha);var eo=_.createElement($r,(0,pe.Z)({ref:jn,elementRef:Aa,role:si===null?"none":si||"menuitem",tabIndex:Gr?null:-1,"data-menu-id":Bi&&Ln?null:Ln},mi,xi,Ma,{component:"li","aria-disabled":Gr,style:(0,R.Z)((0,R.Z)({},No),er),className:f()(xn,(qt={},(0,ue.Z)(qt,"".concat(xn,"-active"),_i),(0,ue.Z)(qt,"".concat(xn,"-selected"),ha),(0,ue.Z)(qt,"".concat(xn,"-disabled"),wi),qt),Jt),onClick:na,onKeyDown:$i,onFocus:ja}),Pn,_.createElement(Dr,{props:(0,R.Z)((0,R.Z)({},Kt),{},{isSelected:ha}),icon:Yn}));return Un&&(eo=Un(eo,Kt,{selected:ha})),eo});function Sn(Kt,Zt){var qt=Kt.eventKey,er=he(),Jt=Be(qt);return _.useEffect(function(){if(er)return er.registerPath(qt,Jt),function(){er.unregisterPath(qt,Jt)}},[Jt]),er?null:_.createElement(cn,(0,pe.Z)({},Kt,{ref:Zt}))}var nn=_.forwardRef(Sn),Bn=["className","children"],ri=function(Zt,qt){var er=Zt.className,Jt=Zt.children,Qr=(0,V.Z)(Zt,Bn),kr=_.useContext(G),Gr=kr.prefixCls,Mn=kr.mode,Pn=kr.rtl;return _.createElement("ul",(0,pe.Z)({className:f()(Gr,Pn&&"".concat(Gr,"-rtl"),"".concat(Gr,"-sub"),"".concat(Gr,"-").concat(Mn==="inline"?"inline":"vertical"),er),role:"menu"},Qr,{"data-menu-list":!0,ref:qt}),Jt)},Er=_.forwardRef(ri);Er.displayName="SubMenuList";var ni=Er,Li=w(11592);function oi(Kt,Zt){return(0,Li.Z)(Kt).map(function(qt,er){if(_.isValidElement(qt)){var Jt,Qr,kr=qt.key,Gr=(Jt=(Qr=qt.props)===null||Qr===void 0?void 0:Qr.eventKey)!==null&&Jt!==void 0?Jt:kr,Mn=Gr==null;Mn&&(Gr="tmp_key-".concat([].concat((0,Ne.Z)(Zt),[er]).join("-")));var Pn={key:Gr,eventKey:Gr};return _.cloneElement(qt,Pn)}return qt})}var Ti=w(35593),Ui={adjustX:1,adjustY:1},Xi={topLeft:{points:["bl","tl"],overflow:Ui},topRight:{points:["br","tr"],overflow:Ui},bottomLeft:{points:["tl","bl"],overflow:Ui},bottomRight:{points:["tr","br"],overflow:Ui},leftTop:{points:["tr","tl"],overflow:Ui},leftBottom:{points:["br","bl"],overflow:Ui},rightTop:{points:["tl","tr"],overflow:Ui},rightBottom:{points:["bl","br"],overflow:Ui}},Ha={topLeft:{points:["bl","tl"],overflow:Ui},topRight:{points:["br","tr"],overflow:Ui},bottomLeft:{points:["tl","bl"],overflow:Ui},bottomRight:{points:["tr","br"],overflow:Ui},rightTop:{points:["tr","tl"],overflow:Ui},rightBottom:{points:["br","bl"],overflow:Ui},leftTop:{points:["tl","tr"],overflow:Ui},leftBottom:{points:["bl","br"],overflow:Ui}},Ji=null;function pi(Kt,Zt,qt){if(Zt)return Zt;if(qt)return qt[Kt]||qt.other}var ki={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Ni(Kt){var Zt=Kt.prefixCls,qt=Kt.visible,er=Kt.children,Jt=Kt.popup,Qr=Kt.popupStyle,kr=Kt.popupClassName,Gr=Kt.popupOffset,Mn=Kt.disabled,Pn=Kt.mode,si=Kt.onVisibleChange,qn=_.useContext(G),bi=qn.getPopupContainer,Jn=qn.rtl,Hn=qn.subMenuOpenDelay,on=qn.subMenuCloseDelay,mi=qn.builtinPlacements,Ln=qn.triggerSubMenuAction,ei=qn.forceSubMenuRender,vi=qn.rootClassName,Ei=qn.motion,Xn=qn.defaultMotions,Bi=_.useState(!1),ra=(0,te.Z)(Bi,2),ii=ra[0],An=ra[1],rn=Jn?(0,R.Z)((0,R.Z)({},Ha),mi):(0,R.Z)((0,R.Z)({},Xi),mi),Un=ki[Pn],xn=pi(Pn,Ei,Xn),jn=_.useRef(xn);Pn!=="inline"&&(jn.current=xn);var ci=(0,R.Z)((0,R.Z)({},jn.current),{},{leavedClassName:"".concat(Zt,"-hidden"),removeOnLeave:!1,motionAppear:!0}),wi=_.useRef();return _.useEffect(function(){return wi.current=(0,At.Z)(function(){An(qt)}),function(){At.Z.cancel(wi.current)}},[qt]),_.createElement(Ti.Z,{prefixCls:Zt,popupClassName:f()("".concat(Zt,"-popup"),(0,ue.Z)({},"".concat(Zt,"-rtl"),Jn),kr,vi),stretch:Pn==="horizontal"?"minWidth":null,getPopupContainer:bi,builtinPlacements:rn,popupPlacement:Un,popupVisible:ii,popup:Jt,popupStyle:Qr,popupAlign:Gr&&{offset:Gr},action:Mn?[]:[Ln],mouseEnterDelay:Hn,mouseLeaveDelay:on,onPopupVisibleChange:si,forceRender:ei,popupMotion:ci,fresh:!0},er)}var ve=w(77900);function Te(Kt){var Zt=Kt.id,qt=Kt.open,er=Kt.keyPath,Jt=Kt.children,Qr="inline",kr=_.useContext(G),Gr=kr.prefixCls,Mn=kr.forceSubMenuRender,Pn=kr.motion,si=kr.defaultMotions,qn=kr.mode,bi=_.useRef(!1);bi.current=qn===Qr;var Jn=_.useState(!bi.current),Hn=(0,te.Z)(Jn,2),on=Hn[0],mi=Hn[1],Ln=bi.current?qt:!1;_.useEffect(function(){bi.current&&mi(!1)},[qn]);var ei=(0,R.Z)({},pi(Qr,Pn,si));er.length>1&&(ei.motionAppear=!1);var vi=ei.onVisibleChanged;return ei.onVisibleChanged=function(Ei){return!bi.current&&!Ei&&mi(!0),vi==null?void 0:vi(Ei)},on?null:_.createElement(W,{mode:Qr,locked:!bi.current},_.createElement(ve.default,(0,pe.Z)({visible:Ln},ei,{forceRender:Mn,removeOnLeave:!1,leavedClassName:"".concat(Gr,"-hidden")}),function(Ei){var Xn=Ei.className,Bi=Ei.style;return _.createElement(ni,{id:Zt,className:Xn,style:Bi},Jt)}))}var ke=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],it=["active"],$t=function(Zt){var qt,er=Zt.style,Jt=Zt.className,Qr=Zt.title,kr=Zt.eventKey,Gr=Zt.warnKey,Mn=Zt.disabled,Pn=Zt.internalPopupClose,si=Zt.children,qn=Zt.itemIcon,bi=Zt.expandIcon,Jn=Zt.popupClassName,Hn=Zt.popupOffset,on=Zt.popupStyle,mi=Zt.onClick,Ln=Zt.onMouseEnter,ei=Zt.onMouseLeave,vi=Zt.onTitleClick,Ei=Zt.onTitleMouseEnter,Xn=Zt.onTitleMouseLeave,Bi=(0,V.Z)(Zt,ke),ra=Y(kr),ii=_.useContext(G),An=ii.prefixCls,rn=ii.mode,Un=ii.openKeys,xn=ii.disabled,jn=ii.overflowDisabled,ci=ii.activeKey,wi=ii.selectedKeys,Aa=ii.itemIcon,Yi=ii.expandIcon,ao=ii.onItemClick,Yn=ii.onOpenChange,Nn=ii.onActive,_i=_.useContext(de),xi=_i._internalRenderSubMenuItem,ha=_.useContext(je),No=ha.isSubPathKey,na=Be(),$i="".concat(An,"-submenu"),ja=xn||Mn,Ma=_.useRef(),eo=_.useRef(),vo=qn!=null?qn:Aa,ba=bi!=null?bi:Yi,Ai=Un.includes(kr),ua=!jn&&Ai,Do=No(wi,kr),uo=Ut(kr,ja,Ei,Xn),Xa=uo.active,Di=(0,V.Z)(uo,it),Po=_.useState(!1),fo=(0,te.Z)(Po,2),il=fo[0],$o=fo[1],Hs=function(Bo){ja||$o(Bo)},Zo=function(Bo){Hs(!0),Ln==null||Ln({key:kr,domEvent:Bo})},vl=function(Bo){Hs(!1),ei==null||ei({key:kr,domEvent:Bo})},za=_.useMemo(function(){return Xa||(rn!=="inline"?il||No([ci],kr):!1)},[rn,Xa,ci,il,kr,No]),Ra=ir(na.length),Ea=function(Bo){ja||(vi==null||vi({key:kr,domEvent:Bo}),rn==="inline"&&Yn(kr,!Ai))},js=be(function(_o){mi==null||mi(Mr(_o)),ao(_o)}),yi=function(Bo){rn!=="inline"&&Yn(kr,Bo)},Zi=function(){Nn(kr)},Pi=ra&&"".concat(ra,"-popup"),Vi=_.createElement("div",(0,pe.Z)({role:"menuitem",style:Ra,className:"".concat($i,"-title"),tabIndex:ja?null:-1,ref:Ma,title:typeof Qr=="string"?Qr:null,"data-menu-id":jn&&ra?null:ra,"aria-expanded":ua,"aria-haspopup":!0,"aria-controls":Pi,"aria-disabled":ja,onClick:Ea,onFocus:Zi},Di),Qr,_.createElement(Dr,{icon:rn!=="horizontal"?ba:void 0,props:(0,R.Z)((0,R.Z)({},Zt),{},{isOpen:ua,isSubMenu:!0})},_.createElement("i",{className:"".concat($i,"-arrow")}))),da=_.useRef(rn);if(rn!=="inline"&&na.length>1?da.current="vertical":da.current=rn,!jn){var La=da.current;Vi=_.createElement(Ni,{mode:La,prefixCls:$i,visible:!Pn&&ua&&rn!=="inline",popupClassName:Jn,popupOffset:Hn,popupStyle:on,popup:_.createElement(W,{mode:La==="horizontal"?"vertical":La},_.createElement(ni,{id:Pi,ref:eo},si)),disabled:ja,onVisibleChange:yi},Vi)}var Vo=_.createElement(E.Z.Item,(0,pe.Z)({role:"none"},Bi,{component:"li",style:er,className:f()($i,"".concat($i,"-").concat(rn),Jt,(qt={},(0,ue.Z)(qt,"".concat($i,"-open"),ua),(0,ue.Z)(qt,"".concat($i,"-active"),za),(0,ue.Z)(qt,"".concat($i,"-selected"),Do),(0,ue.Z)(qt,"".concat($i,"-disabled"),ja),qt)),onMouseEnter:Zo,onMouseLeave:vl}),Vi,!jn&&_.createElement(Te,{id:Pi,open:ua,keyPath:na},si));return xi&&(Vo=xi(Vo,Zt,{selected:Do,active:za,open:ua,disabled:ja})),_.createElement(W,{onItemClick:js,mode:rn==="horizontal"?"vertical":rn,itemIcon:vo,expandIcon:ba},Vo)};function Qt(Kt){var Zt=Kt.eventKey,qt=Kt.children,er=Be(Zt),Jt=oi(qt,er),Qr=he();_.useEffect(function(){if(Qr)return Qr.registerPath(Zt,er),function(){Qr.unregisterPath(Zt,er)}},[er]);var kr;return Qr?kr=Jt:kr=_.createElement($t,Kt,Jt),_.createElement(Oe.Provider,{value:er},kr)}var Sr=w(93664),dr=["className","title","eventKey","children"],Hr=["children"],Wr=function(Zt){var qt=Zt.className,er=Zt.title,Jt=Zt.eventKey,Qr=Zt.children,kr=(0,V.Z)(Zt,dr),Gr=_.useContext(G),Mn=Gr.prefixCls,Pn="".concat(Mn,"-item-group");return _.createElement("li",(0,pe.Z)({role:"presentation"},kr,{onClick:function(qn){return qn.stopPropagation()},className:f()(Pn,qt)}),_.createElement("div",{role:"presentation",className:"".concat(Pn,"-title"),title:typeof er=="string"?er:void 0},er),_.createElement("ul",{role:"group",className:"".concat(Pn,"-list")},Qr))};function en(Kt){var Zt=Kt.children,qt=(0,V.Z)(Kt,Hr),er=Be(qt.eventKey),Jt=oi(Zt,er),Qr=he();return Qr?Jt:_.createElement(Wr,(0,gt.Z)(qt,["warnKey"]),Jt)}function Vr(Kt){var Zt=Kt.className,qt=Kt.style,er=_.useContext(G),Jt=er.prefixCls,Qr=he();return Qr?null:_.createElement("li",{role:"separator",className:f()("".concat(Jt,"-item-divider"),Zt),style:qt})}var jr=["label","children","key","type"];function Yr(Kt){return(Kt||[]).map(function(Zt,qt){if(Zt&&(0,Sr.Z)(Zt)==="object"){var er=Zt,Jt=er.label,Qr=er.children,kr=er.key,Gr=er.type,Mn=(0,V.Z)(er,jr),Pn=kr!=null?kr:"tmp-".concat(qt);return Qr||Gr==="group"?Gr==="group"?_.createElement(en,(0,pe.Z)({key:Pn},Mn,{title:Jt}),Yr(Qr)):_.createElement(Qt,(0,pe.Z)({key:Pn},Mn,{title:Jt}),Yr(Qr)):Gr==="divider"?_.createElement(Vr,(0,pe.Z)({key:Pn},Mn)):_.createElement(nn,(0,pe.Z)({key:Pn},Mn),Jt)}return null}).filter(function(Zt){return Zt})}function mn(Kt,Zt,qt){var er=Kt;return Zt&&(er=Yr(Zt)),oi(er,qt)}var tn=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Dn=[],Qn=_.forwardRef(function(Kt,Zt){var qt,er,Jt=Kt,Qr=Jt.prefixCls,kr=Qr===void 0?"rc-menu":Qr,Gr=Jt.rootClassName,Mn=Jt.style,Pn=Jt.className,si=Jt.tabIndex,qn=si===void 0?0:si,bi=Jt.items,Jn=Jt.children,Hn=Jt.direction,on=Jt.id,mi=Jt.mode,Ln=mi===void 0?"vertical":mi,ei=Jt.inlineCollapsed,vi=Jt.disabled,Ei=Jt.disabledOverflow,Xn=Jt.subMenuOpenDelay,Bi=Xn===void 0?.1:Xn,ra=Jt.subMenuCloseDelay,ii=ra===void 0?.1:ra,An=Jt.forceSubMenuRender,rn=Jt.defaultOpenKeys,Un=Jt.openKeys,xn=Jt.activeKey,jn=Jt.defaultActiveFirst,ci=Jt.selectable,wi=ci===void 0?!0:ci,Aa=Jt.multiple,Yi=Aa===void 0?!1:Aa,ao=Jt.defaultSelectedKeys,Yn=Jt.selectedKeys,Nn=Jt.onSelect,_i=Jt.onDeselect,xi=Jt.inlineIndent,ha=xi===void 0?24:xi,No=Jt.motion,na=Jt.defaultMotions,$i=Jt.triggerSubMenuAction,ja=$i===void 0?"hover":$i,Ma=Jt.builtinPlacements,eo=Jt.itemIcon,vo=Jt.expandIcon,ba=Jt.overflowedIndicator,Ai=ba===void 0?"...":ba,ua=Jt.overflowedIndicatorPopupClassName,Do=Jt.getPopupContainer,uo=Jt.onClick,Xa=Jt.onOpenChange,Di=Jt.onKeyDown,Po=Jt.openAnimation,fo=Jt.openTransitionName,il=Jt._internalRenderMenuItem,$o=Jt._internalRenderSubMenuItem,Hs=(0,V.Z)(Jt,tn),Zo=_.useMemo(function(){return mn(Jn,bi,Dn)},[Jn,bi]),vl=_.useState(!1),za=(0,te.Z)(vl,2),Ra=za[0],Ea=za[1],js=_.useRef(),yi=me(on),Zi=Hn==="rtl",Pi=(0,h.Z)(rn,{value:Un,postState:function(po){return po||Dn}}),Vi=(0,te.Z)(Pi,2),da=Vi[0],La=Vi[1],Vo=function(po){var mo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Go(){La(po),Xa==null||Xa(po)}mo?(0,N.flushSync)(Go):Go()},_o=_.useState(da),Bo=(0,te.Z)(_o,2),$a=Bo[0],wa=Bo[1],pa=_.useRef(!1),Na=_.useMemo(function(){return(Ln==="inline"||Ln==="vertical")&&ei?["vertical",ei]:[Ln,!1]},[Ln,ei]),Ja=(0,te.Z)(Na,2),oo=Ja[0],Ta=Ja[1],ka=oo==="inline",Fo=_.useState(oo),Ll=(0,te.Z)(Fo,2),cs=Ll[0],dl=Ll[1],Oo=_.useState(Ta),ks=(0,te.Z)(Oo,2),Io=ks[0],Kn=ks[1];_.useEffect(function(){dl(oo),Kn(Ta),pa.current&&(ka?La($a):Vo(Dn))},[oo,Ta]);var kl=_.useState(0),To=(0,te.Z)(kl,2),Hl=To[0],zs=To[1],ms=Hl>=Zo.length-1||cs!=="horizontal"||Ei;_.useEffect(function(){ka&&wa(da)},[da]),_.useEffect(function(){return pa.current=!0,function(){pa.current=!1}},[]);var Da=xe(),Uo=Da.registerPath,jl=Da.unregisterPath,tc=Da.refreshOverflowKeys,fl=Da.isSubPathKey,ma=Da.getKeyPath,oa=Da.getKeys,ho=Da.getSubPathKeys,Za=_.useMemo(function(){return{registerPath:Uo,unregisterPath:jl}},[Uo,jl]),to=_.useMemo(function(){return{isSubPathKey:fl}},[fl]);_.useEffect(function(){tc(ms?Dn:Zo.slice(Hl+1).map(function(Oa){return Oa.key}))},[Hl,ms]);var Ro=(0,h.Z)(xn||jn&&((qt=Zo[0])===null||qt===void 0?void 0:qt.key),{value:xn}),Ya=(0,te.Z)(Ro,2),Wo=Ya[0],Ds=Ya[1],hl=be(function(Oa){Ds(Oa)}),Xs=be(function(){Ds(void 0)});(0,_.useImperativeHandle)(Zt,function(){return{list:js.current,focus:function(po){var mo,Go=oa(),Ps=d(Go,yi),kc=Ps.elements,yl=Ps.key2element,Gc=Ps.element2key,xA=P(js.current,kc),CA=Wo!=null?Wo:xA[0]?Gc.get(xA[0]):(mo=Zo.find(function(Uu){return!Uu.props.disabled}))===null||mo===void 0?void 0:mo.key,pc=yl.get(CA);if(CA&&pc){var mc;pc==null||(mc=pc.focus)===null||mc===void 0||mc.call(pc,po)}}}});var al=(0,h.Z)(ao||[],{value:Yn,postState:function(po){return Array.isArray(po)?po:po==null?Dn:[po]}}),Wc=(0,te.Z)(al,2),Dl=Wc[0],Js=Wc[1],lA=function(po){if(wi){var mo=po.key,Go=Dl.includes(mo),Ps;Yi?Go?Ps=Dl.filter(function(yl){return yl!==mo}):Ps=[].concat((0,Ne.Z)(Dl),[mo]):Ps=[mo],Js(Ps);var kc=(0,R.Z)((0,R.Z)({},po),{},{selectedKeys:Ps});Go?_i==null||_i(kc):Nn==null||Nn(kc)}!Yi&&da.length&&cs!=="inline"&&Vo(Dn)},cA=be(function(Oa){uo==null||uo(Mr(Oa)),lA(Oa)}),hc=be(function(Oa,po){var mo=da.filter(function(Ps){return Ps!==Oa});if(po)mo.push(Oa);else if(cs!=="inline"){var Go=ho(Oa);mo=mo.filter(function(Ps){return!Go.has(Ps)})}(0,z.Z)(da,mo,!0)||Vo(mo,!0)}),wA=function(po,mo){var Go=mo!=null?mo:!da.includes(po);hc(po,Go)},Pl=x(cs,Wo,Zi,yi,js,oa,ma,Ds,wA,Di);_.useEffect(function(){Ea(!0)},[]);var Ys=_.useMemo(function(){return{_internalRenderMenuItem:il,_internalRenderSubMenuItem:$o}},[il,$o]),ol=cs!=="horizontal"||Ei?Zo:Zo.map(function(Oa,po){return _.createElement(W,{key:Oa.key,overflowDisabled:po>Hl},Oa)}),sl=_.createElement(E.Z,(0,pe.Z)({id:on,ref:js,prefixCls:"".concat(kr,"-overflow"),component:"ul",itemComponent:nn,className:f()(kr,"".concat(kr,"-root"),"".concat(kr,"-").concat(cs),Pn,(er={},(0,ue.Z)(er,"".concat(kr,"-inline-collapsed"),Io),(0,ue.Z)(er,"".concat(kr,"-rtl"),Zi),er),Gr),dir:Hn,style:Mn,role:"menu",tabIndex:qn,data:ol,renderRawItem:function(po){return po},renderRawRest:function(po){var mo=po.length,Go=mo?Zo.slice(-mo):null;return _.createElement(Qt,{eventKey:Ge,title:Ai,disabled:ms,internalPopupClose:mo===0,popupClassName:ua},Go)},maxCount:cs!=="horizontal"||Ei?E.Z.INVALIDATE:E.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(po){zs(po)},onKeyDown:Pl},Hs));return _.createElement(de.Provider,{value:Ys},_.createElement(Q.Provider,{value:yi},_.createElement(W,{prefixCls:kr,rootClassName:Gr,mode:cs,openKeys:da,rtl:Zi,disabled:vi,motion:Ra?No:null,defaultMotions:Ra?na:null,activeKey:Wo,onActive:hl,onInactive:Xs,selectedKeys:Dl,inlineIndent:ha,subMenuOpenDelay:Bi,subMenuCloseDelay:ii,forceSubMenuRender:An,builtinPlacements:Ma,triggerSubMenuAction:ja,getPopupContainer:Do,itemIcon:eo,expandIcon:vo,onItemClick:cA,onOpenChange:hc},_.createElement(je.Provider,{value:to},sl),_.createElement("div",{style:{display:"none"},"aria-hidden":!0},_.createElement(se.Provider,{value:Za},Zo)))))}),ui=Qn,Tn=ui;Tn.Item=nn,Tn.SubMenu=Qt,Tn.ItemGroup=en,Tn.Divider=Vr;var sn=Tn},11780:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return He}});var pe=w(14809),ue=w(20439),R=w(50298),Ne=w(62646),te=w(59301),V=w(92310),B=w.n(V),f=w(29301),E=w(34280),h=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],z=void 0;function S(ge,Le){var fe=ge.prefixCls,Ee=ge.invalidate,At=ge.item,ft=ge.renderItem,ot=ge.responsive,ct=ge.responsiveDisabled,It=ge.registerSize,Tt=ge.itemKey,Ht=ge.className,pr=ge.style,sr=ge.children,Br=ge.display,fr=ge.order,k=ge.component,nt=k===void 0?"div":k,P=(0,Ne.Z)(ge,h),m=ot&&!Br;function d(ne){It(Tt,ne)}te.useEffect(function(){return function(){d(null)}},[]);var x=ft&&At!==z?ft(At,{index:fr}):sr,ee;Ee||(ee={opacity:m?0:1,height:m?0:z,overflowY:m?"hidden":z,order:ot?fr:z,pointerEvents:m?"none":z,position:m?"absolute":z});var Ce={};m&&(Ce["aria-hidden"]=!0);var H=te.createElement(nt,(0,pe.Z)({className:B()(!Ee&&fe,Ht),style:(0,ue.Z)((0,ue.Z)({},ee),pr)},Ce,P,{ref:Le}),x);return ot&&(H=te.createElement(f.Z,{onResize:function(Ge){var xe=Ge.offsetWidth;d(xe)},disabled:ct},H)),H}var _=te.forwardRef(S);_.displayName="Item";var N=_,Q=w(6089),I=w(4676),Y=w(16089);function K(ge){if(typeof MessageChannel=="undefined")(0,Y.Z)(ge);else{var Le=new MessageChannel;Le.port1.onmessage=function(){return ge()},Le.port2.postMessage(void 0)}}function ce(){var ge=te.useRef(null),Le=function(Ee){ge.current||(ge.current=[],K(function(){(0,I.unstable_batchedUpdates)(function(){ge.current.forEach(function(At){At()}),ge.current=null})})),ge.current.push(Ee)};return Le}function G(ge,Le){var fe=te.useState(Le),Ee=(0,R.Z)(fe,2),At=Ee[0],ft=Ee[1],ot=(0,Q.Z)(function(ct){ge(function(){ft(ct)})});return[At,ot]}var J=te.createContext(null),W=["component"],j=["className"],se=["className"],he=function(Le,fe){var Ee=te.useContext(J);if(!Ee){var At=Le.component,ft=At===void 0?"div":At,ot=(0,Ne.Z)(Le,W);return te.createElement(ft,(0,pe.Z)({},ot,{ref:fe}))}var ct=Ee.className,It=(0,Ne.Z)(Ee,j),Tt=Le.className,Ht=(0,Ne.Z)(Le,se);return te.createElement(J.Provider,{value:null},te.createElement(N,(0,pe.Z)({ref:fe,className:B()(ct,Tt)},It,Ht)))},Oe=te.forwardRef(he);Oe.displayName="RawItem";var Be=Oe,je=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],X="responsive",de="invalidate";function L(ge){return"+ ".concat(ge.length," ...")}function rt(ge,Le){var fe=ge.prefixCls,Ee=fe===void 0?"rc-overflow":fe,At=ge.data,ft=At===void 0?[]:At,ot=ge.renderItem,ct=ge.renderRawItem,It=ge.itemKey,Tt=ge.itemWidth,Ht=Tt===void 0?10:Tt,pr=ge.ssr,sr=ge.style,Br=ge.className,fr=ge.maxCount,k=ge.renderRest,nt=ge.renderRawRest,P=ge.suffix,m=ge.component,d=m===void 0?"div":m,x=ge.itemComponent,ee=ge.onVisibleChange,Ce=(0,Ne.Z)(ge,je),H=pr==="full",ne=ce(),Ge=G(ne,null),xe=(0,R.Z)(Ge,2),be=xe[0],qe=xe[1],Et=be||0,me=G(ne,new Map),pt=(0,R.Z)(me,2),lt=pt[0],Me=pt[1],Pe=G(ne,0),gt=(0,R.Z)(Pe,2),zt=gt[0],Ut=gt[1],ir=G(ne,0),Dr=(0,R.Z)(ir,2),mr=Dr[0],Mr=Dr[1],Lr=G(ne,0),vr=(0,R.Z)(Lr,2),ur=vr[0],$r=vr[1],cn=(0,te.useState)(null),Sn=(0,R.Z)(cn,2),nn=Sn[0],Bn=Sn[1],ri=(0,te.useState)(null),Er=(0,R.Z)(ri,2),ni=Er[0],Li=Er[1],oi=te.useMemo(function(){return ni===null&&H?Number.MAX_SAFE_INTEGER:ni||0},[ni,be]),Ti=(0,te.useState)(!1),Ui=(0,R.Z)(Ti,2),Xi=Ui[0],Ha=Ui[1],Ji="".concat(Ee,"-item"),pi=Math.max(zt,mr),ki=fr===X,Ni=ft.length&&ki,ve=fr===de,Te=Ni||typeof fr=="number"&&ft.length>fr,ke=(0,te.useMemo)(function(){var sn=ft;return Ni?be===null&&H?sn=ft:sn=ft.slice(0,Math.min(ft.length,Et/Ht)):typeof fr=="number"&&(sn=ft.slice(0,fr)),sn},[ft,Ht,be,fr,Ni]),it=(0,te.useMemo)(function(){return Ni?ft.slice(oi+1):ft.slice(ke.length)},[ft,ke,Ni,oi]),$t=(0,te.useCallback)(function(sn,Kt){var Zt;return typeof It=="function"?It(sn):(Zt=It&&(sn==null?void 0:sn[It]))!==null&&Zt!==void 0?Zt:Kt},[It]),Qt=(0,te.useCallback)(ot||function(sn){return sn},[ot]);function Sr(sn,Kt,Zt){ni===sn&&(Kt===void 0||Kt===nn)||(Li(sn),Zt||(Ha(sn<ft.length-1),ee==null||ee(sn)),Kt!==void 0&&Bn(Kt))}function dr(sn,Kt){qe(Kt.clientWidth)}function Hr(sn,Kt){Me(function(Zt){var qt=new Map(Zt);return Kt===null?qt.delete(sn):qt.set(sn,Kt),qt})}function Wr(sn,Kt){Mr(Kt),Ut(mr)}function en(sn,Kt){$r(Kt)}function Vr(sn){return lt.get($t(ke[sn],sn))}(0,E.Z)(function(){if(Et&&typeof pi=="number"&&ke){var sn=ur,Kt=ke.length,Zt=Kt-1;if(!Kt){Sr(0,null);return}for(var qt=0;qt<Kt;qt+=1){var er=Vr(qt);if(H&&(er=er||0),er===void 0){Sr(qt-1,void 0,!0);break}if(sn+=er,Zt===0&&sn<=Et||qt===Zt-1&&sn+Vr(Zt)<=Et){Sr(Zt,null);break}else if(sn+pi>Et){Sr(qt-1,sn-er-ur+mr);break}}P&&Vr(0)+ur>Et&&Bn(null)}},[Et,lt,mr,ur,$t,ke]);var jr=Xi&&!!it.length,Yr={};nn!==null&&Ni&&(Yr={position:"absolute",left:nn,top:0});var mn={prefixCls:Ji,responsive:Ni,component:x,invalidate:ve},tn=ct?function(sn,Kt){var Zt=$t(sn,Kt);return te.createElement(J.Provider,{key:Zt,value:(0,ue.Z)((0,ue.Z)({},mn),{},{order:Kt,item:sn,itemKey:Zt,registerSize:Hr,display:Kt<=oi})},ct(sn,Kt))}:function(sn,Kt){var Zt=$t(sn,Kt);return te.createElement(N,(0,pe.Z)({},mn,{order:Kt,key:Zt,item:sn,renderItem:Qt,itemKey:Zt,registerSize:Hr,display:Kt<=oi}))},Dn={order:jr?oi:Number.MAX_SAFE_INTEGER,className:"".concat(Ji,"-rest"),registerSize:Wr,display:jr},Qn=k||L,ui=nt?te.createElement(J.Provider,{value:(0,ue.Z)((0,ue.Z)({},mn),Dn)},nt(it)):te.createElement(N,(0,pe.Z)({},mn,Dn),typeof Qn=="function"?Qn(it):Qn),Tn=te.createElement(d,(0,pe.Z)({className:B()(!ve&&Ee,Br),style:sr,ref:Le},Ce),ke.map(tn),Te?ui:null,P&&te.createElement(N,(0,pe.Z)({},mn,{responsive:ki,responsiveDisabled:!Ni,order:oi,className:"".concat(Ji,"-suffix"),registerSize:en,display:!0,style:Yr}),P));return ki?te.createElement(f.Z,{onResize:dr,disabled:!Ni},Tn):Tn}var De=te.forwardRef(rt);De.displayName="Overflow",De.Item=Be,De.RESPONSIVE=X,De.INVALIDATE=de;var we=De,He=we},17115:function(bn,Xt,w){"use strict";w.d(Xt,{ZP:function(){return B}});var pe=w(50298),ue=w(59301),R=w(47273),Ne=0,te=(0,R.Z)();function V(){var f;return te?(f=Ne,Ne+=1):f="TEST_OR_SSR",f}function B(f){var E=ue.useState(),h=(0,pe.Z)(E,2),z=h[0],S=h[1];return ue.useEffect(function(){S("rc_select_".concat(V()))},[]),f||z}},77861:function(bn,Xt,w){"use strict";w.d(Xt,{Ac:function(){return qe},Xo:function(){return Mr},Wx:function(){return vr},ZP:function(){return Te},lk:function(){return J}});var pe=w(14809),ue=w(95190),R=w(4635),Ne=w(20439),te=w(50298),V=w(62646),B=w(93664),f=w(18929),E=w(48736),h=w(59301),z=w(92310),S=w.n(z),_=w(34280),N=w(49658),Q=w(10228),I=w(8654),Y=function(it){var $t=it.className,Qt=it.customizeIcon,Sr=it.customizeIconProps,dr=it.onMouseDown,Hr=it.onClick,Wr=it.children,en;return typeof Qt=="function"?en=Qt(Sr):en=Qt,h.createElement("span",{className:$t,onMouseDown:function(jr){jr.preventDefault(),dr&&dr(jr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Hr,"aria-hidden":!0},en!==void 0?en:h.createElement("span",{className:S()($t.split(/\s+/).map(function(Vr){return"".concat(Vr,"-icon")}))},Wr))},K=Y;function ce(ke,it,$t,Qt,Sr){var dr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Hr=arguments.length>6?arguments[6]:void 0,Wr=arguments.length>7?arguments[7]:void 0,en=h.useMemo(function(){if((0,B.Z)(Qt)==="object")return Qt.clearIcon;if(Sr)return Sr},[Qt,Sr]),Vr=h.useMemo(function(){return!!(!dr&&Qt&&($t.length||Hr)&&!(Wr==="combobox"&&Hr===""))},[Qt,dr,$t.length,Hr,Wr]);return{allowClear:Vr,clearIcon:h.createElement(K,{className:"".concat(ke,"-clear"),onMouseDown:it,customizeIcon:en},"\xD7")}}var G=h.createContext(null);function J(){return h.useContext(G)}function W(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,it=h.useState(!1),$t=(0,te.Z)(it,2),Qt=$t[0],Sr=$t[1],dr=h.useRef(null),Hr=function(){window.clearTimeout(dr.current)};h.useEffect(function(){return Hr},[]);var Wr=function(Vr,jr){Hr(),dr.current=window.setTimeout(function(){Sr(Vr),jr&&jr()},ke)};return[Qt,Wr,Hr]}function j(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,it=h.useRef(null),$t=h.useRef(null);h.useEffect(function(){return function(){window.clearTimeout($t.current)}},[]);function Qt(Sr){(Sr||it.current===null)&&(it.current=Sr),window.clearTimeout($t.current),$t.current=window.setTimeout(function(){it.current=null},ke)}return[function(){return it.current},Qt]}function se(ke,it,$t,Qt){var Sr=h.useRef(null);Sr.current={open:it,triggerOpen:$t,customizedTrigger:Qt},h.useEffect(function(){function dr(Hr){var Wr;if(!((Wr=Sr.current)!==null&&Wr!==void 0&&Wr.customizedTrigger)){var en=Hr.target;en.shadowRoot&&Hr.composed&&(en=Hr.composedPath()[0]||en),Sr.current.open&&ke().filter(function(Vr){return Vr}).every(function(Vr){return!Vr.contains(en)&&Vr!==en})&&Sr.current.triggerOpen(!1)}}return window.addEventListener("mousedown",dr),function(){return window.removeEventListener("mousedown",dr)}},[])}var he=w(26112),Oe=w(11780),Be=function(it,$t){var Qt,Sr,dr=it.prefixCls,Hr=it.id,Wr=it.inputElement,en=it.disabled,Vr=it.tabIndex,jr=it.autoFocus,Yr=it.autoComplete,mn=it.editable,tn=it.activeDescendantId,Dn=it.value,Qn=it.maxLength,ui=it.onKeyDown,Tn=it.onMouseDown,sn=it.onChange,Kt=it.onPaste,Zt=it.onCompositionStart,qt=it.onCompositionEnd,er=it.open,Jt=it.attrs,Qr=Wr||h.createElement("input",null),kr=Qr,Gr=kr.ref,Mn=kr.props,Pn=Mn.onKeyDown,si=Mn.onChange,qn=Mn.onMouseDown,bi=Mn.onCompositionStart,Jn=Mn.onCompositionEnd,Hn=Mn.style;return(0,E.Kp)(!("maxLength"in Qr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Qr=h.cloneElement(Qr,(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({type:"search"},Mn),{},{id:Hr,ref:(0,I.sQ)($t,Gr),disabled:en,tabIndex:Vr,autoComplete:Yr||"off",autoFocus:jr,className:S()("".concat(dr,"-selection-search-input"),(Qt=Qr)===null||Qt===void 0||(Sr=Qt.props)===null||Sr===void 0?void 0:Sr.className),role:"combobox","aria-label":"Search","aria-expanded":er||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Hr,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Hr,"_list"),"aria-activedescendant":er?tn:void 0},Jt),{},{value:mn?Dn:"",maxLength:Qn,readOnly:!mn,unselectable:mn?null:"on",style:(0,Ne.Z)((0,Ne.Z)({},Hn),{},{opacity:mn?null:0}),onKeyDown:function(mi){ui(mi),Pn&&Pn(mi)},onMouseDown:function(mi){Tn(mi),qn&&qn(mi)},onChange:function(mi){sn(mi),si&&si(mi)},onCompositionStart:function(mi){Zt(mi),bi&&bi(mi)},onCompositionEnd:function(mi){qt(mi),Jn&&Jn(mi)},onPaste:Kt})),Qr},je=h.forwardRef(Be);je.displayName="Input";var X=je;function de(ke){return Array.isArray(ke)?ke:ke!==void 0?[ke]:[]}var L=typeof window!="undefined"&&window.document&&window.document.documentElement,rt=L;function De(ke){return ke!=null}function we(ke){return!ke&&ke!==0}function He(ke){return["string","number"].includes((0,B.Z)(ke))}function ge(ke){var it=void 0;return ke&&(He(ke.title)?it=ke.title.toString():He(ke.label)&&(it=ke.label.toString())),it}function Le(ke,it){rt?h.useLayoutEffect(ke,it):h.useEffect(ke,it)}function fe(ke){var it;return(it=ke.key)!==null&&it!==void 0?it:ke.value}var Ee=function(it){it.preventDefault(),it.stopPropagation()},At=function(it){var $t=it.id,Qt=it.prefixCls,Sr=it.values,dr=it.open,Hr=it.searchValue,Wr=it.autoClearSearchValue,en=it.inputRef,Vr=it.placeholder,jr=it.disabled,Yr=it.mode,mn=it.showSearch,tn=it.autoFocus,Dn=it.autoComplete,Qn=it.activeDescendantId,ui=it.tabIndex,Tn=it.removeIcon,sn=it.maxTagCount,Kt=it.maxTagTextLength,Zt=it.maxTagPlaceholder,qt=Zt===void 0?function(ci){return"+ ".concat(ci.length," ...")}:Zt,er=it.tagRender,Jt=it.onToggleOpen,Qr=it.onRemove,kr=it.onInputChange,Gr=it.onInputPaste,Mn=it.onInputKeyDown,Pn=it.onInputMouseDown,si=it.onInputCompositionStart,qn=it.onInputCompositionEnd,bi=h.useRef(null),Jn=(0,h.useState)(0),Hn=(0,te.Z)(Jn,2),on=Hn[0],mi=Hn[1],Ln=(0,h.useState)(!1),ei=(0,te.Z)(Ln,2),vi=ei[0],Ei=ei[1],Xn="".concat(Qt,"-selection"),Bi=dr||Yr==="multiple"&&Wr===!1||Yr==="tags"?Hr:"",ra=Yr==="tags"||Yr==="multiple"&&Wr===!1||mn&&(dr||vi);Le(function(){mi(bi.current.scrollWidth)},[Bi]);function ii(ci,wi,Aa,Yi,ao){return h.createElement("span",{className:S()("".concat(Xn,"-item"),(0,R.Z)({},"".concat(Xn,"-item-disabled"),Aa)),title:ge(ci)},h.createElement("span",{className:"".concat(Xn,"-item-content")},wi),Yi&&h.createElement(K,{className:"".concat(Xn,"-item-remove"),onMouseDown:Ee,onClick:ao,customizeIcon:Tn},"\xD7"))}function An(ci,wi,Aa,Yi,ao){var Yn=function(_i){Ee(_i),Jt(!dr)};return h.createElement("span",{onMouseDown:Yn},er({label:wi,value:ci,disabled:Aa,closable:Yi,onClose:ao}))}function rn(ci){var wi=ci.disabled,Aa=ci.label,Yi=ci.value,ao=!jr&&!wi,Yn=Aa;if(typeof Kt=="number"&&(typeof Aa=="string"||typeof Aa=="number")){var Nn=String(Yn);Nn.length>Kt&&(Yn="".concat(Nn.slice(0,Kt),"..."))}var _i=function(ha){ha&&ha.stopPropagation(),Qr(ci)};return typeof er=="function"?An(Yi,Yn,wi,ao,_i):ii(ci,Yn,wi,ao,_i)}function Un(ci){var wi=typeof qt=="function"?qt(ci):qt;return ii({title:wi},wi,!1)}var xn=h.createElement("div",{className:"".concat(Xn,"-search"),style:{width:on},onFocus:function(){Ei(!0)},onBlur:function(){Ei(!1)}},h.createElement(X,{ref:en,open:dr,prefixCls:Qt,id:$t,inputElement:null,disabled:jr,autoFocus:tn,autoComplete:Dn,editable:ra,activeDescendantId:Qn,value:Bi,onKeyDown:Mn,onMouseDown:Pn,onChange:kr,onPaste:Gr,onCompositionStart:si,onCompositionEnd:qn,tabIndex:ui,attrs:(0,he.Z)(it,!0)}),h.createElement("span",{ref:bi,className:"".concat(Xn,"-search-mirror"),"aria-hidden":!0},Bi,"\xA0")),jn=h.createElement(Oe.Z,{prefixCls:"".concat(Xn,"-overflow"),data:Sr,renderItem:rn,renderRest:Un,suffix:xn,itemKey:fe,maxCount:sn});return h.createElement(h.Fragment,null,jn,!Sr.length&&!Bi&&h.createElement("span",{className:"".concat(Xn,"-placeholder")},Vr))},ft=At,ot=function(it){var $t=it.inputElement,Qt=it.prefixCls,Sr=it.id,dr=it.inputRef,Hr=it.disabled,Wr=it.autoFocus,en=it.autoComplete,Vr=it.activeDescendantId,jr=it.mode,Yr=it.open,mn=it.values,tn=it.placeholder,Dn=it.tabIndex,Qn=it.showSearch,ui=it.searchValue,Tn=it.activeValue,sn=it.maxLength,Kt=it.onInputKeyDown,Zt=it.onInputMouseDown,qt=it.onInputChange,er=it.onInputPaste,Jt=it.onInputCompositionStart,Qr=it.onInputCompositionEnd,kr=it.title,Gr=h.useState(!1),Mn=(0,te.Z)(Gr,2),Pn=Mn[0],si=Mn[1],qn=jr==="combobox",bi=qn||Qn,Jn=mn[0],Hn=ui||"";qn&&Tn&&!Pn&&(Hn=Tn),h.useEffect(function(){qn&&si(!1)},[qn,Tn]);var on=jr!=="combobox"&&!Yr&&!Qn?!1:!!Hn,mi=kr===void 0?ge(Jn):kr,Ln=function(){if(Jn)return null;var vi=on?{visibility:"hidden"}:void 0;return h.createElement("span",{className:"".concat(Qt,"-selection-placeholder"),style:vi},tn)};return h.createElement(h.Fragment,null,h.createElement("span",{className:"".concat(Qt,"-selection-search")},h.createElement(X,{ref:dr,prefixCls:Qt,id:Sr,open:Yr,inputElement:$t,disabled:Hr,autoFocus:Wr,autoComplete:en,editable:bi,activeDescendantId:Vr,value:Hn,onKeyDown:Kt,onMouseDown:Zt,onChange:function(vi){si(!0),qt(vi)},onPaste:er,onCompositionStart:Jt,onCompositionEnd:Qr,tabIndex:Dn,attrs:(0,he.Z)(it,!0),maxLength:qn?sn:void 0})),!qn&&Jn?h.createElement("span",{className:"".concat(Qt,"-selection-item"),title:mi,style:on?{visibility:"hidden"}:void 0},Jn.label):null,Ln())},ct=ot;function It(ke){return![Q.Z.ESC,Q.Z.SHIFT,Q.Z.BACKSPACE,Q.Z.TAB,Q.Z.WIN_KEY,Q.Z.ALT,Q.Z.META,Q.Z.WIN_KEY_RIGHT,Q.Z.CTRL,Q.Z.SEMICOLON,Q.Z.EQUALS,Q.Z.CAPS_LOCK,Q.Z.CONTEXT_MENU,Q.Z.F1,Q.Z.F2,Q.Z.F3,Q.Z.F4,Q.Z.F5,Q.Z.F6,Q.Z.F7,Q.Z.F8,Q.Z.F9,Q.Z.F10,Q.Z.F11,Q.Z.F12].includes(ke)}var Tt=function(it,$t){var Qt=(0,h.useRef)(null),Sr=(0,h.useRef)(!1),dr=it.prefixCls,Hr=it.open,Wr=it.mode,en=it.showSearch,Vr=it.tokenWithEnter,jr=it.autoClearSearchValue,Yr=it.onSearch,mn=it.onSearchSubmit,tn=it.onToggleOpen,Dn=it.onInputKeyDown,Qn=it.domRef;h.useImperativeHandle($t,function(){return{focus:function(){Qt.current.focus()},blur:function(){Qt.current.blur()}}});var ui=j(0),Tn=(0,te.Z)(ui,2),sn=Tn[0],Kt=Tn[1],Zt=function(Hn){var on=Hn.which;(on===Q.Z.UP||on===Q.Z.DOWN)&&Hn.preventDefault(),Dn&&Dn(Hn),on===Q.Z.ENTER&&Wr==="tags"&&!Sr.current&&!Hr&&(mn==null||mn(Hn.target.value)),It(on)&&tn(!0)},qt=function(){Kt(!0)},er=(0,h.useRef)(null),Jt=function(Hn){Yr(Hn,!0,Sr.current)!==!1&&tn(!0)},Qr=function(){Sr.current=!0},kr=function(Hn){Sr.current=!1,Wr!=="combobox"&&Jt(Hn.target.value)},Gr=function(Hn){var on=Hn.target.value;if(Vr&&er.current&&/[\r\n]/.test(er.current)){var mi=er.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");on=on.replace(mi,er.current)}er.current=null,Jt(on)},Mn=function(Hn){var on=Hn.clipboardData,mi=on.getData("text");er.current=mi},Pn=function(Hn){var on=Hn.target;if(on!==Qt.current){var mi=document.body.style.msTouchAction!==void 0;mi?setTimeout(function(){Qt.current.focus()}):Qt.current.focus()}},si=function(Hn){var on=sn();Hn.target!==Qt.current&&!on&&Wr!=="combobox"&&Hn.preventDefault(),(Wr!=="combobox"&&(!en||!on)||!Hr)&&(Hr&&jr!==!1&&Yr("",!0,!1),tn())},qn={inputRef:Qt,onInputKeyDown:Zt,onInputMouseDown:qt,onInputChange:Gr,onInputPaste:Mn,onInputCompositionStart:Qr,onInputCompositionEnd:kr},bi=Wr==="multiple"||Wr==="tags"?h.createElement(ft,(0,pe.Z)({},it,qn)):h.createElement(ct,(0,pe.Z)({},it,qn));return h.createElement("div",{ref:Qn,className:"".concat(dr,"-selector"),onClick:Pn,onMouseDown:si},bi)},Ht=h.forwardRef(Tt);Ht.displayName="Selector";var pr=Ht,sr=w(35593),Br=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],fr=function(it){var $t=it===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:$t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:$t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:$t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:$t,adjustY:1},htmlRegion:"scroll"}}},k=function(it,$t){var Qt=it.prefixCls,Sr=it.disabled,dr=it.visible,Hr=it.children,Wr=it.popupElement,en=it.animation,Vr=it.transitionName,jr=it.dropdownStyle,Yr=it.dropdownClassName,mn=it.direction,tn=mn===void 0?"ltr":mn,Dn=it.placement,Qn=it.builtinPlacements,ui=it.dropdownMatchSelectWidth,Tn=it.dropdownRender,sn=it.dropdownAlign,Kt=it.getPopupContainer,Zt=it.empty,qt=it.getTriggerDOMNode,er=it.onPopupVisibleChange,Jt=it.onPopupMouseEnter,Qr=(0,V.Z)(it,Br),kr="".concat(Qt,"-dropdown"),Gr=Wr;Tn&&(Gr=Tn(Wr));var Mn=h.useMemo(function(){return Qn||fr(ui)},[Qn,ui]),Pn=en?"".concat(kr,"-").concat(en):Vr,si=typeof ui=="number",qn=h.useMemo(function(){return si?null:ui===!1?"minWidth":"width"},[ui,si]),bi=jr;si&&(bi=(0,Ne.Z)((0,Ne.Z)({},bi),{},{width:ui}));var Jn=h.useRef(null);return h.useImperativeHandle($t,function(){return{getPopupElement:function(){return Jn.current}}}),h.createElement(sr.Z,(0,pe.Z)({},Qr,{showAction:er?["click"]:[],hideAction:er?["click"]:[],popupPlacement:Dn||(tn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Mn,prefixCls:kr,popupTransitionName:Pn,popup:h.createElement("div",{ref:Jn,onMouseEnter:Jt},Gr),stretch:qn,popupAlign:sn,popupVisible:dr,getPopupContainer:Kt,popupClassName:S()(Yr,(0,R.Z)({},"".concat(kr,"-empty"),Zt)),popupStyle:bi,getTriggerDOMNode:qt,onPopupVisibleChange:er}),Hr)},nt=h.forwardRef(k);nt.displayName="SelectTrigger";var P=nt,m=w(21696);function d(ke,it){var $t=ke.key,Qt;return"value"in ke&&(Qt=ke.value),$t!=null?$t:Qt!==void 0?Qt:"rc-index-key-".concat(it)}function x(ke,it){var $t=ke||{},Qt=$t.label,Sr=$t.value,dr=$t.options,Hr=$t.groupLabel,Wr=Qt||(it?"children":"label");return{label:Wr,value:Sr||"value",options:dr||"options",groupLabel:Hr||Wr}}function ee(ke){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$t=it.fieldNames,Qt=it.childrenAsData,Sr=[],dr=x($t,!1),Hr=dr.label,Wr=dr.value,en=dr.options,Vr=dr.groupLabel;function jr(Yr,mn){Yr.forEach(function(tn){if(mn||!(en in tn)){var Dn=tn[Wr];Sr.push({key:d(tn,Sr.length),groupOption:mn,data:tn,label:tn[Hr],value:Dn})}else{var Qn=tn[Vr];Qn===void 0&&Qt&&(Qn=tn.label),Sr.push({key:d(tn,Sr.length),group:!0,data:tn,label:Qn}),jr(tn[en],!0)}})}return jr(ke,!1),Sr}function Ce(ke){var it=(0,Ne.Z)({},ke);return"props"in it||Object.defineProperty(it,"props",{get:function(){return(0,E.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),it}}),it}function H(ke,it){if(!it||!it.length)return null;var $t=!1;function Qt(dr,Hr){var Wr=(0,m.Z)(Hr),en=Wr[0],Vr=Wr.slice(1);if(!en)return[dr];var jr=dr.split(en);return $t=$t||jr.length>1,jr.reduce(function(Yr,mn){return[].concat((0,ue.Z)(Yr),(0,ue.Z)(Qt(mn,Vr)))},[]).filter(function(Yr){return Yr})}var Sr=Qt(ke,it);return $t?Sr:null}var ne=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Ge=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function xe(ke){return ke==="tags"||ke==="multiple"}var be=h.forwardRef(function(ke,it){var $t,Qt,Sr=ke.id,dr=ke.prefixCls,Hr=ke.className,Wr=ke.showSearch,en=ke.tagRender,Vr=ke.direction,jr=ke.omitDomProps,Yr=ke.displayValues,mn=ke.onDisplayValuesChange,tn=ke.emptyOptions,Dn=ke.notFoundContent,Qn=Dn===void 0?"Not Found":Dn,ui=ke.onClear,Tn=ke.mode,sn=ke.disabled,Kt=ke.loading,Zt=ke.getInputElement,qt=ke.getRawInputElement,er=ke.open,Jt=ke.defaultOpen,Qr=ke.onDropdownVisibleChange,kr=ke.activeValue,Gr=ke.onActiveValueChange,Mn=ke.activeDescendantId,Pn=ke.searchValue,si=ke.autoClearSearchValue,qn=ke.onSearch,bi=ke.onSearchSplit,Jn=ke.tokenSeparators,Hn=ke.allowClear,on=ke.suffixIcon,mi=ke.clearIcon,Ln=ke.OptionList,ei=ke.animation,vi=ke.transitionName,Ei=ke.dropdownStyle,Xn=ke.dropdownClassName,Bi=ke.dropdownMatchSelectWidth,ra=ke.dropdownRender,ii=ke.dropdownAlign,An=ke.placement,rn=ke.builtinPlacements,Un=ke.getPopupContainer,xn=ke.showAction,jn=xn===void 0?[]:xn,ci=ke.onFocus,wi=ke.onBlur,Aa=ke.onKeyUp,Yi=ke.onKeyDown,ao=ke.onMouseDown,Yn=(0,V.Z)(ke,ne),Nn=xe(Tn),_i=(Wr!==void 0?Wr:Nn)||Tn==="combobox",xi=(0,Ne.Z)({},Yn);Ge.forEach(function(ma){delete xi[ma]}),jr==null||jr.forEach(function(ma){delete xi[ma]});var ha=h.useState(!1),No=(0,te.Z)(ha,2),na=No[0],$i=No[1];h.useEffect(function(){$i((0,N.Z)())},[]);var ja=h.useRef(null),Ma=h.useRef(null),eo=h.useRef(null),vo=h.useRef(null),ba=h.useRef(null),Ai=W(),ua=(0,te.Z)(Ai,3),Do=ua[0],uo=ua[1],Xa=ua[2];h.useImperativeHandle(it,function(){var ma,oa;return{focus:(ma=vo.current)===null||ma===void 0?void 0:ma.focus,blur:(oa=vo.current)===null||oa===void 0?void 0:oa.blur,scrollTo:function(Za){var to;return(to=ba.current)===null||to===void 0?void 0:to.scrollTo(Za)}}});var Di=h.useMemo(function(){var ma;if(Tn!=="combobox")return Pn;var oa=(ma=Yr[0])===null||ma===void 0?void 0:ma.value;return typeof oa=="string"||typeof oa=="number"?String(oa):""},[Pn,Tn,Yr]),Po=Tn==="combobox"&&typeof Zt=="function"&&Zt()||null,fo=typeof qt=="function"&&qt(),il=(0,I.x1)(Ma,fo==null||($t=fo.props)===null||$t===void 0?void 0:$t.ref),$o=h.useState(!1),Hs=(0,te.Z)($o,2),Zo=Hs[0],vl=Hs[1];(0,_.Z)(function(){vl(!0)},[]);var za=(0,f.Z)(!1,{defaultValue:Jt,value:er}),Ra=(0,te.Z)(za,2),Ea=Ra[0],js=Ra[1],yi=Zo?Ea:!1,Zi=!Qn&&tn;(sn||Zi&&yi&&Tn==="combobox")&&(yi=!1);var Pi=Zi?!1:yi,Vi=h.useCallback(function(ma){var oa=ma!==void 0?ma:!yi;sn||(js(oa),yi!==oa&&(Qr==null||Qr(oa)))},[sn,yi,js,Qr]),da=h.useMemo(function(){return(Jn||[]).some(function(ma){return[`
|
|
|
`,`\r
|
|
|
`].includes(ma)})},[Jn]),La=function(oa,ho,Za){var to=!0,Ro=oa;Gr==null||Gr(null);var Ya=Za?null:H(oa,Jn);return Tn!=="combobox"&&Ya&&(Ro="",bi==null||bi(Ya),Vi(!1),to=!1),qn&&Di!==Ro&&qn(Ro,{source:ho?"typing":"effect"}),to},Vo=function(oa){!oa||!oa.trim()||qn(oa,{source:"submit"})};h.useEffect(function(){!yi&&!Nn&&Tn!=="combobox"&&La("",!1,!1)},[yi]),h.useEffect(function(){Ea&&sn&&js(!1),sn&&uo(!1)},[sn]);var _o=j(),Bo=(0,te.Z)(_o,2),$a=Bo[0],wa=Bo[1],pa=function(oa){var ho=$a(),Za=oa.which;if(Za===Q.Z.ENTER&&(Tn!=="combobox"&&oa.preventDefault(),yi||Vi(!0)),wa(!!Di),Za===Q.Z.BACKSPACE&&!ho&&Nn&&!Di&&Yr.length){for(var to=(0,ue.Z)(Yr),Ro=null,Ya=to.length-1;Ya>=0;Ya-=1){var Wo=to[Ya];if(!Wo.disabled){to.splice(Ya,1),Ro=Wo;break}}Ro&&mn(to,{type:"remove",values:[Ro]})}for(var Ds=arguments.length,hl=new Array(Ds>1?Ds-1:0),Xs=1;Xs<Ds;Xs++)hl[Xs-1]=arguments[Xs];if(yi&&ba.current){var al;(al=ba.current).onKeyDown.apply(al,[oa].concat(hl))}Yi==null||Yi.apply(void 0,[oa].concat(hl))},Na=function(oa){for(var ho=arguments.length,Za=new Array(ho>1?ho-1:0),to=1;to<ho;to++)Za[to-1]=arguments[to];if(yi&&ba.current){var Ro;(Ro=ba.current).onKeyUp.apply(Ro,[oa].concat(Za))}Aa==null||Aa.apply(void 0,[oa].concat(Za))},Ja=function(oa){var ho=Yr.filter(function(Za){return Za!==oa});mn(ho,{type:"remove",values:[oa]})},oo=h.useRef(!1),Ta=function(){uo(!0),sn||(ci&&!oo.current&&ci.apply(void 0,arguments),jn.includes("focus")&&Vi(!0)),oo.current=!0},ka=function(){uo(!1,function(){oo.current=!1,Vi(!1)}),!sn&&(Di&&(Tn==="tags"?qn(Di,{source:"submit"}):Tn==="multiple"&&qn("",{source:"blur"})),wi&&wi.apply(void 0,arguments))},Fo=[];h.useEffect(function(){return function(){Fo.forEach(function(ma){return clearTimeout(ma)}),Fo.splice(0,Fo.length)}},[]);var Ll=function(oa){var ho,Za=oa.target,to=(ho=eo.current)===null||ho===void 0?void 0:ho.getPopupElement();if(to&&to.contains(Za)){var Ro=setTimeout(function(){var hl=Fo.indexOf(Ro);if(hl!==-1&&Fo.splice(hl,1),Xa(),!na&&!to.contains(document.activeElement)){var Xs;(Xs=vo.current)===null||Xs===void 0||Xs.focus()}});Fo.push(Ro)}for(var Ya=arguments.length,Wo=new Array(Ya>1?Ya-1:0),Ds=1;Ds<Ya;Ds++)Wo[Ds-1]=arguments[Ds];ao==null||ao.apply(void 0,[oa].concat(Wo))},cs=h.useState({}),dl=(0,te.Z)(cs,2),Oo=dl[1];function ks(){Oo({})}var Io;fo&&(Io=function(oa){Vi(oa)}),se(function(){var ma;return[ja.current,(ma=eo.current)===null||ma===void 0?void 0:ma.getPopupElement()]},Pi,Vi,!!fo);var Kn=h.useMemo(function(){return(0,Ne.Z)((0,Ne.Z)({},ke),{},{notFoundContent:Qn,open:yi,triggerOpen:Pi,id:Sr,showSearch:_i,multiple:Nn,toggleOpen:Vi})},[ke,Qn,Pi,yi,Sr,_i,Nn,Vi]),kl=!!on||Kt,To;kl&&(To=h.createElement(K,{className:S()("".concat(dr,"-arrow"),(0,R.Z)({},"".concat(dr,"-arrow-loading"),Kt)),customizeIcon:on,customizeIconProps:{loading:Kt,searchValue:Di,open:yi,focused:Do,showSearch:_i}}));var Hl=function(){var oa;ui==null||ui(),(oa=vo.current)===null||oa===void 0||oa.focus(),mn([],{type:"clear",values:Yr}),La("",!1,!1)},zs=ce(dr,Hl,Yr,Hn,mi,sn,Di,Tn),ms=zs.allowClear,Da=zs.clearIcon,Uo=h.createElement(Ln,{ref:ba}),jl=S()(dr,Hr,(Qt={},(0,R.Z)(Qt,"".concat(dr,"-focused"),Do),(0,R.Z)(Qt,"".concat(dr,"-multiple"),Nn),(0,R.Z)(Qt,"".concat(dr,"-single"),!Nn),(0,R.Z)(Qt,"".concat(dr,"-allow-clear"),Hn),(0,R.Z)(Qt,"".concat(dr,"-show-arrow"),kl),(0,R.Z)(Qt,"".concat(dr,"-disabled"),sn),(0,R.Z)(Qt,"".concat(dr,"-loading"),Kt),(0,R.Z)(Qt,"".concat(dr,"-open"),yi),(0,R.Z)(Qt,"".concat(dr,"-customize-input"),Po),(0,R.Z)(Qt,"".concat(dr,"-show-search"),_i),Qt)),tc=h.createElement(P,{ref:eo,disabled:sn,prefixCls:dr,visible:Pi,popupElement:Uo,animation:ei,transitionName:vi,dropdownStyle:Ei,dropdownClassName:Xn,direction:Vr,dropdownMatchSelectWidth:Bi,dropdownRender:ra,dropdownAlign:ii,placement:An,builtinPlacements:rn,getPopupContainer:Un,empty:tn,getTriggerDOMNode:function(){return Ma.current},onPopupVisibleChange:Io,onPopupMouseEnter:ks},fo?h.cloneElement(fo,{ref:il}):h.createElement(pr,(0,pe.Z)({},ke,{domRef:Ma,prefixCls:dr,inputElement:Po,ref:vo,id:Sr,showSearch:_i,autoClearSearchValue:si,mode:Tn,activeDescendantId:Mn,tagRender:en,values:Yr,open:yi,onToggleOpen:Vi,activeValue:kr,searchValue:Di,onSearch:La,onSearchSubmit:Vo,onRemove:Ja,tokenWithEnter:da}))),fl;return fo?fl=tc:fl=h.createElement("div",(0,pe.Z)({className:jl},xi,{ref:ja,onMouseDown:Ll,onKeyDown:pa,onKeyUp:Na,onFocus:Ta,onBlur:ka}),Do&&!yi&&h.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Yr.map(function(ma){var oa=ma.label,ho=ma.value;return["number","string"].includes((0,B.Z)(oa))?oa:ho}).join(", "))),tc,To,ms&&Da),h.createElement(G.Provider,{value:Kn},fl)}),qe=be,Et=function(ke,it){var $t=h.useRef({values:new Map,options:new Map}),Qt=h.useMemo(function(){var dr=$t.current,Hr=dr.values,Wr=dr.options,en=ke.map(function(Yr){if(Yr.label===void 0){var mn;return(0,Ne.Z)((0,Ne.Z)({},Yr),{},{label:(mn=Hr.get(Yr.value))===null||mn===void 0?void 0:mn.label})}return Yr}),Vr=new Map,jr=new Map;return en.forEach(function(Yr){Vr.set(Yr.value,Yr),jr.set(Yr.value,it.get(Yr.value)||Wr.get(Yr.value))}),$t.current.values=Vr,$t.current.options=jr,en},[ke,it]),Sr=h.useCallback(function(dr){return it.get(dr)||$t.current.options.get(dr)},[it]);return[Qt,Sr]};function me(ke,it){return de(ke).join("").toUpperCase().includes(it)}var pt=function(ke,it,$t,Qt,Sr){return h.useMemo(function(){if(!$t||Qt===!1)return ke;var dr=it.options,Hr=it.label,Wr=it.value,en=[],Vr=typeof Qt=="function",jr=$t.toUpperCase(),Yr=Vr?Qt:function(tn,Dn){return Sr?me(Dn[Sr],jr):Dn[dr]?me(Dn[Hr!=="children"?Hr:"label"],jr):me(Dn[Wr],jr)},mn=Vr?function(tn){return Ce(tn)}:function(tn){return tn};return ke.forEach(function(tn){if(tn[dr]){var Dn=Yr($t,mn(tn));if(Dn)en.push(tn);else{var Qn=tn[dr].filter(function(ui){return Yr($t,mn(ui))});Qn.length&&en.push((0,Ne.Z)((0,Ne.Z)({},tn),{},(0,R.Z)({},dr,Qn)))}return}Yr($t,mn(tn))&&en.push(tn)}),en},[ke,Qt,Sr,$t,it])},lt=w(17115),Me=w(11592),Pe=["children","value"],gt=["children"];function zt(ke){var it=ke,$t=it.key,Qt=it.props,Sr=Qt.children,dr=Qt.value,Hr=(0,V.Z)(Qt,Pe);return(0,Ne.Z)({key:$t,value:dr!==void 0?dr:$t,children:Sr},Hr)}function Ut(ke){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Me.Z)(ke).map(function($t,Qt){if(!h.isValidElement($t)||!$t.type)return null;var Sr=$t,dr=Sr.type.isSelectOptGroup,Hr=Sr.key,Wr=Sr.props,en=Wr.children,Vr=(0,V.Z)(Wr,gt);return it||!dr?zt($t):(0,Ne.Z)((0,Ne.Z)({key:"__RC_SELECT_GRP__".concat(Hr===null?Qt:Hr,"__"),label:Hr},Vr),{},{options:Ut(en)})}).filter(function($t){return $t})}function ir(ke,it,$t,Qt,Sr){return h.useMemo(function(){var dr=ke,Hr=!ke;Hr&&(dr=Ut(it));var Wr=new Map,en=new Map,Vr=function(mn,tn,Dn){Dn&&typeof Dn=="string"&&mn.set(tn[Dn],tn)};function jr(Yr){for(var mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tn=0;tn<Yr.length;tn+=1){var Dn=Yr[tn];!Dn[$t.options]||mn?(Wr.set(Dn[$t.value],Dn),Vr(en,Dn,$t.label),Vr(en,Dn,Qt),Vr(en,Dn,Sr)):jr(Dn[$t.options],!0)}}return jr(dr),{options:dr,valueOptions:Wr,labelOptions:en}},[ke,it,$t,Qt,Sr])}function Dr(ke){var it=h.useRef();it.current=ke;var $t=h.useCallback(function(){return it.current.apply(it,arguments)},[]);return $t}var mr=function(){return null};mr.isSelectOptGroup=!0;var Mr=mr,Lr=function(){return null};Lr.isSelectOption=!0;var vr=Lr,ur=w(80547),$r=w(2738),cn=w(6790),Sn=h.createContext(null),nn=Sn;function Bn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ri=["disabled","title","children","style","className"];function Er(ke){return typeof ke=="string"||typeof ke=="number"}var ni=function(it,$t){var Qt=J(),Sr=Qt.prefixCls,dr=Qt.id,Hr=Qt.open,Wr=Qt.multiple,en=Qt.mode,Vr=Qt.searchValue,jr=Qt.toggleOpen,Yr=Qt.notFoundContent,mn=Qt.onPopupScroll,tn=h.useContext(nn),Dn=tn.flattenOptions,Qn=tn.onActiveValue,ui=tn.defaultActiveFirstOption,Tn=tn.onSelect,sn=tn.menuItemSelectedIcon,Kt=tn.rawValues,Zt=tn.fieldNames,qt=tn.virtual,er=tn.direction,Jt=tn.listHeight,Qr=tn.listItemHeight,kr="".concat(Sr,"-item"),Gr=(0,ur.Z)(function(){return Dn},[Hr,Dn],function(ii,An){return An[0]&&ii[1]!==An[1]}),Mn=h.useRef(null),Pn=function(An){An.preventDefault()},si=function(An){Mn.current&&Mn.current.scrollTo(typeof An=="number"?{index:An}:An)},qn=function(An){for(var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Un=Gr.length,xn=0;xn<Un;xn+=1){var jn=(An+xn*rn+Un)%Un,ci=Gr[jn],wi=ci.group,Aa=ci.data;if(!wi&&!Aa.disabled)return jn}return-1},bi=h.useState(function(){return qn(0)}),Jn=(0,te.Z)(bi,2),Hn=Jn[0],on=Jn[1],mi=function(An){var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;on(An);var Un={source:rn?"keyboard":"mouse"},xn=Gr[An];if(!xn){Qn(null,-1,Un);return}Qn(xn.value,An,Un)};(0,h.useEffect)(function(){mi(ui!==!1?qn(0):-1)},[Gr.length,Vr]);var Ln=h.useCallback(function(ii){return Kt.has(ii)&&en!=="combobox"},[en,(0,ue.Z)(Kt).toString(),Kt.size]);(0,h.useEffect)(function(){var ii=setTimeout(function(){if(!Wr&&Hr&&Kt.size===1){var rn=Array.from(Kt)[0],Un=Gr.findIndex(function(xn){var jn=xn.data;return jn.value===rn});Un!==-1&&(mi(Un),si(Un))}});if(Hr){var An;(An=Mn.current)===null||An===void 0||An.scrollTo(void 0)}return function(){return clearTimeout(ii)}},[Hr,Vr,Dn.length]);var ei=function(An){An!==void 0&&Tn(An,{selected:!Kt.has(An)}),Wr||jr(!1)};if(h.useImperativeHandle($t,function(){return{onKeyDown:function(An){var rn=An.which,Un=An.ctrlKey;switch(rn){case Q.Z.N:case Q.Z.P:case Q.Z.UP:case Q.Z.DOWN:{var xn=0;if(rn===Q.Z.UP?xn=-1:rn===Q.Z.DOWN?xn=1:Bn()&&Un&&(rn===Q.Z.N?xn=1:rn===Q.Z.P&&(xn=-1)),xn!==0){var jn=qn(Hn+xn,xn);si(jn),mi(jn,!0)}break}case Q.Z.ENTER:{var ci=Gr[Hn];ci&&!ci.data.disabled?ei(ci.value):ei(void 0),Hr&&An.preventDefault();break}case Q.Z.ESC:jr(!1),Hr&&An.stopPropagation()}},onKeyUp:function(){},scrollTo:function(An){si(An)}}}),Gr.length===0)return h.createElement("div",{role:"listbox",id:"".concat(dr,"_list"),className:"".concat(kr,"-empty"),onMouseDown:Pn},Yr);var vi=Object.keys(Zt).map(function(ii){return Zt[ii]}),Ei=function(An){return An.label};function Xn(ii,An){var rn=ii.group;return{role:rn?"presentation":"option",id:"".concat(dr,"_list_").concat(An)}}var Bi=function(An){var rn=Gr[An];if(!rn)return null;var Un=rn.data||{},xn=Un.value,jn=rn.group,ci=(0,he.Z)(Un,!0),wi=Ei(rn);return rn?h.createElement("div",(0,pe.Z)({"aria-label":typeof wi=="string"&&!jn?wi:null},ci,{key:An},Xn(rn,An),{"aria-selected":Ln(xn)}),xn):null},ra={role:"listbox",id:"".concat(dr,"_list")};return h.createElement(h.Fragment,null,qt&&h.createElement("div",(0,pe.Z)({},ra,{style:{height:0,width:0,overflow:"hidden"}}),Bi(Hn-1),Bi(Hn),Bi(Hn+1)),h.createElement(cn.Z,{itemKey:"key",ref:Mn,data:Gr,height:Jt,itemHeight:Qr,fullHeight:!1,onMouseDown:Pn,onScroll:mn,virtual:qt,direction:er,innerProps:qt?null:ra},function(ii,An){var rn,Un=ii.group,xn=ii.groupOption,jn=ii.data,ci=ii.label,wi=ii.value,Aa=jn.key;if(Un){var Yi,ao=(Yi=jn.title)!==null&&Yi!==void 0?Yi:Er(ci)?ci.toString():void 0;return h.createElement("div",{className:S()(kr,"".concat(kr,"-group")),title:ao},ci!==void 0?ci:Aa)}var Yn=jn.disabled,Nn=jn.title,_i=jn.children,xi=jn.style,ha=jn.className,No=(0,V.Z)(jn,ri),na=(0,$r.Z)(No,vi),$i=Ln(wi),ja="".concat(kr,"-option"),Ma=S()(kr,ja,ha,(rn={},(0,R.Z)(rn,"".concat(ja,"-grouped"),xn),(0,R.Z)(rn,"".concat(ja,"-active"),Hn===An&&!Yn),(0,R.Z)(rn,"".concat(ja,"-disabled"),Yn),(0,R.Z)(rn,"".concat(ja,"-selected"),$i),rn)),eo=Ei(ii),vo=!sn||typeof sn=="function"||$i,ba=typeof eo=="number"?eo:eo||wi,Ai=Er(ba)?ba.toString():void 0;return Nn!==void 0&&(Ai=Nn),h.createElement("div",(0,pe.Z)({},(0,he.Z)(na),qt?{}:Xn(ii,An),{"aria-selected":$i,className:Ma,title:Ai,onMouseMove:function(){Hn===An||Yn||mi(An)},onClick:function(){Yn||ei(wi)},style:xi}),h.createElement("div",{className:"".concat(ja,"-content")},ba),h.isValidElement(sn)||$i,vo&&h.createElement(K,{className:"".concat(kr,"-option-state"),customizeIcon:sn,customizeIconProps:{isSelected:$i}},$i?"\u2713":null))}))},Li=h.forwardRef(ni);Li.displayName="OptionList";var oi=Li;function Ti(ke){var it=ke.mode,$t=ke.options,Qt=ke.children,Sr=ke.backfill,dr=ke.allowClear,Hr=ke.placeholder,Wr=ke.getInputElement,en=ke.showSearch,Vr=ke.onSearch,jr=ke.defaultOpen,Yr=ke.autoFocus,mn=ke.labelInValue,tn=ke.value,Dn=ke.inputValue,Qn=ke.optionLabelProp,ui=isMultiple(it),Tn=en!==void 0?en:ui||it==="combobox",sn=$t||convertChildrenToData(Qt);if(warning(it!=="tags"||sn.every(function(er){return!er.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),it==="tags"||it==="combobox"){var Kt=sn.some(function(er){return er.options?er.options.some(function(Jt){return typeof("value"in Jt?Jt.value:Jt.key)=="number"}):typeof("value"in er?er.value:er.key)=="number"});warning(!Kt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(it!=="combobox"||!Qn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(it==="combobox"||!Sr,"`backfill` only works with `combobox` mode."),warning(it==="combobox"||!Wr,"`getInputElement` only work with `combobox` mode."),noteOnce(it!=="combobox"||!Wr||!dr||!Hr,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Vr&&!Tn&&it!=="combobox"&&it!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!jr||Yr,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),tn!=null){var Zt=toArray(tn);warning(!mn||Zt.every(function(er){return _typeof(er)==="object"&&("key"in er||"value"in er)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!ui||Array.isArray(tn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Qt){var qt=null;toNodeArray(Qt).some(function(er){if(!React.isValidElement(er)||!er.type)return!1;var Jt=er,Qr=Jt.type;if(Qr.isSelectOption)return!1;if(Qr.isSelectOptGroup){var kr=toNodeArray(er.props.children).every(function(Gr){return!React.isValidElement(Gr)||!er.type||Gr.type.isSelectOption?!0:(qt=Gr.type,!1)});return!kr}return qt=Qr,!0}),qt&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(qt.displayName||qt.name||qt,"`.")),warning(Dn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ui(ke,it){if(ke){var $t=function Qt(Sr){for(var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Hr=0;Hr<Sr.length;Hr++){var Wr=Sr[Hr];if(Wr[it==null?void 0:it.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!dr&&Array.isArray(Wr[it==null?void 0:it.options])&&Qt(Wr[it==null?void 0:it.options],!0))break}};$t(ke)}}var Xi=null,Ha=["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"],Ji=["inputValue"];function pi(ke){return!ke||(0,B.Z)(ke)!=="object"}var ki=h.forwardRef(function(ke,it){var $t=ke.id,Qt=ke.mode,Sr=ke.prefixCls,dr=Sr===void 0?"rc-select":Sr,Hr=ke.backfill,Wr=ke.fieldNames,en=ke.inputValue,Vr=ke.searchValue,jr=ke.onSearch,Yr=ke.autoClearSearchValue,mn=Yr===void 0?!0:Yr,tn=ke.onSelect,Dn=ke.onDeselect,Qn=ke.dropdownMatchSelectWidth,ui=Qn===void 0?!0:Qn,Tn=ke.filterOption,sn=ke.filterSort,Kt=ke.optionFilterProp,Zt=ke.optionLabelProp,qt=ke.options,er=ke.children,Jt=ke.defaultActiveFirstOption,Qr=ke.menuItemSelectedIcon,kr=ke.virtual,Gr=ke.direction,Mn=ke.listHeight,Pn=Mn===void 0?200:Mn,si=ke.listItemHeight,qn=si===void 0?20:si,bi=ke.value,Jn=ke.defaultValue,Hn=ke.labelInValue,on=ke.onChange,mi=(0,V.Z)(ke,Ha),Ln=(0,lt.ZP)($t),ei=xe(Qt),vi=!!(!qt&&er),Ei=h.useMemo(function(){return Tn===void 0&&Qt==="combobox"?!1:Tn},[Tn,Qt]),Xn=h.useMemo(function(){return x(Wr,vi)},[JSON.stringify(Wr),vi]),Bi=(0,f.Z)("",{value:Vr!==void 0?Vr:en,postState:function(Zi){return Zi||""}}),ra=(0,te.Z)(Bi,2),ii=ra[0],An=ra[1],rn=ir(qt,er,Xn,Kt,Zt),Un=rn.valueOptions,xn=rn.labelOptions,jn=rn.options,ci=h.useCallback(function(yi){var Zi=de(yi);return Zi.map(function(Pi){var Vi,da,La,Vo,_o;if(pi(Pi))Vi=Pi;else{var Bo;La=Pi.key,da=Pi.label,Vi=(Bo=Pi.value)!==null&&Bo!==void 0?Bo:La}var $a=Un.get(Vi);if($a){var wa;if(da===void 0&&(da=$a==null?void 0:$a[Zt||Xn.label]),La===void 0&&(La=(wa=$a==null?void 0:$a.key)!==null&&wa!==void 0?wa:Vi),Vo=$a==null?void 0:$a.disabled,_o=$a==null?void 0:$a.title,0)var pa}return{label:da,value:Vi,key:La,disabled:Vo,title:_o}})},[Xn,Zt,Un]),wi=(0,f.Z)(Jn,{value:bi}),Aa=(0,te.Z)(wi,2),Yi=Aa[0],ao=Aa[1],Yn=h.useMemo(function(){var yi,Zi=ci(Yi);return Qt==="combobox"&&we((yi=Zi[0])===null||yi===void 0?void 0:yi.value)?[]:Zi},[Yi,ci,Qt]),Nn=Et(Yn,Un),_i=(0,te.Z)(Nn,2),xi=_i[0],ha=_i[1],No=h.useMemo(function(){if(!Qt&&xi.length===1){var yi=xi[0];if(yi.value===null&&(yi.label===null||yi.label===void 0))return[]}return xi.map(function(Zi){var Pi;return(0,Ne.Z)((0,Ne.Z)({},Zi),{},{label:(Pi=Zi.label)!==null&&Pi!==void 0?Pi:Zi.value})})},[Qt,xi]),na=h.useMemo(function(){return new Set(xi.map(function(yi){return yi.value}))},[xi]);h.useEffect(function(){if(Qt==="combobox"){var yi,Zi=(yi=xi[0])===null||yi===void 0?void 0:yi.value;An(De(Zi)?String(Zi):"")}},[xi]);var $i=Dr(function(yi,Zi){var Pi,Vi=Zi!=null?Zi:yi;return Pi={},(0,R.Z)(Pi,Xn.value,yi),(0,R.Z)(Pi,Xn.label,Vi),Pi}),ja=h.useMemo(function(){if(Qt!=="tags")return jn;var yi=(0,ue.Z)(jn),Zi=function(Vi){return Un.has(Vi)};return(0,ue.Z)(xi).sort(function(Pi,Vi){return Pi.value<Vi.value?-1:1}).forEach(function(Pi){var Vi=Pi.value;Zi(Vi)||yi.push($i(Vi,Pi.label))}),yi},[$i,jn,Un,xi,Qt]),Ma=pt(ja,Xn,ii,Ei,Kt),eo=h.useMemo(function(){return Qt!=="tags"||!ii||Ma.some(function(yi){return yi[Kt||"value"]===ii})||Ma.some(function(yi){return yi[Xn.value]===ii})?Ma:[$i(ii)].concat((0,ue.Z)(Ma))},[$i,Kt,Qt,Ma,ii,Xn]),vo=h.useMemo(function(){return sn?(0,ue.Z)(eo).sort(function(yi,Zi){return sn(yi,Zi)}):eo},[eo,sn]),ba=h.useMemo(function(){return ee(vo,{fieldNames:Xn,childrenAsData:vi})},[vo,Xn,vi]),Ai=function(Zi){var Pi=ci(Zi);if(ao(Pi),on&&(Pi.length!==xi.length||Pi.some(function(La,Vo){var _o;return((_o=xi[Vo])===null||_o===void 0?void 0:_o.value)!==(La==null?void 0:La.value)}))){var Vi=Hn?Pi:Pi.map(function(La){return La.value}),da=Pi.map(function(La){return Ce(ha(La.value))});on(ei?Vi:Vi[0],ei?da:da[0])}},ua=h.useState(null),Do=(0,te.Z)(ua,2),uo=Do[0],Xa=Do[1],Di=h.useState(0),Po=(0,te.Z)(Di,2),fo=Po[0],il=Po[1],$o=Jt!==void 0?Jt:Qt!=="combobox",Hs=h.useCallback(function(yi,Zi){var Pi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Vi=Pi.source,da=Vi===void 0?"keyboard":Vi;il(Zi),Hr&&Qt==="combobox"&&yi!==null&&da==="keyboard"&&Xa(String(yi))},[Hr,Qt]),Zo=function(Zi,Pi,Vi){var da=function(){var oo,Ta=ha(Zi);return[Hn?{label:Ta==null?void 0:Ta[Xn.label],value:Zi,key:(oo=Ta==null?void 0:Ta.key)!==null&&oo!==void 0?oo:Zi}:Zi,Ce(Ta)]};if(Pi&&tn){var La=da(),Vo=(0,te.Z)(La,2),_o=Vo[0],Bo=Vo[1];tn(_o,Bo)}else if(!Pi&&Dn&&Vi!=="clear"){var $a=da(),wa=(0,te.Z)($a,2),pa=wa[0],Na=wa[1];Dn(pa,Na)}},vl=Dr(function(yi,Zi){var Pi,Vi=ei?Zi.selected:!0;Vi?Pi=ei?[].concat((0,ue.Z)(xi),[yi]):[yi]:Pi=xi.filter(function(da){return da.value!==yi}),Ai(Pi),Zo(yi,Vi),Qt==="combobox"?Xa(""):(!xe||mn)&&(An(""),Xa(""))}),za=function(Zi,Pi){Ai(Zi);var Vi=Pi.type,da=Pi.values;(Vi==="remove"||Vi==="clear")&&da.forEach(function(La){Zo(La.value,!1,Vi)})},Ra=function(Zi,Pi){if(An(Zi),Xa(null),Pi.source==="submit"){var Vi=(Zi||"").trim();if(Vi){var da=Array.from(new Set([].concat((0,ue.Z)(na),[Vi])));Ai(da),Zo(Vi,!0),An("")}return}Pi.source!=="blur"&&(Qt==="combobox"&&Ai(Zi),jr==null||jr(Zi))},Ea=function(Zi){var Pi=Zi;Qt!=="tags"&&(Pi=Zi.map(function(da){var La=xn.get(da);return La==null?void 0:La.value}).filter(function(da){return da!==void 0}));var Vi=Array.from(new Set([].concat((0,ue.Z)(na),(0,ue.Z)(Pi))));Ai(Vi),Vi.forEach(function(da){Zo(da,!0)})},js=h.useMemo(function(){var yi=kr!==!1&&ui!==!1;return(0,Ne.Z)((0,Ne.Z)({},rn),{},{flattenOptions:ba,onActiveValue:Hs,defaultActiveFirstOption:$o,onSelect:vl,menuItemSelectedIcon:Qr,rawValues:na,fieldNames:Xn,virtual:yi,direction:Gr,listHeight:Pn,listItemHeight:qn,childrenAsData:vi})},[rn,ba,Hs,$o,vl,Qr,na,Xn,kr,ui,Pn,qn,vi]);return h.createElement(nn.Provider,{value:js},h.createElement(qe,(0,pe.Z)({},mi,{id:Ln,prefixCls:dr,ref:it,omitDomProps:Ji,mode:Qt,displayValues:No,onDisplayValuesChange:za,direction:Gr,searchValue:ii,onSearch:Ra,autoClearSearchValue:mn,onSearchSplit:Ea,dropdownMatchSelectWidth:ui,OptionList:oi,emptyOptions:!ba.length,activeValue:uo,activeDescendantId:"".concat(Ln,"_list_").concat(fo)})))}),Ni=ki;Ni.Option=vr,Ni.OptGroup=Mr;var ve=Ni,Te=ve},9296:function(bn,Xt,w){"use strict";w.r(Xt),w.d(Xt,{ResizableTextArea:function(){return je},default:function(){return we}});var pe=w(14809),ue=w(20439),R=w(4635),Ne=w(93664),te=w(50298),V=w(62646),B=w(95190),f=w(92310),E=w.n(f),h=w(93681),z=w(5643),S=w(18929),_=w(59301),N=w(29301),Q=w(34280),I=w(16089),Y=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important;
|
|
|
pointer-events: none !important;
|
|
|
`,K=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],ce={},G;function J(He){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Le=He.getAttribute("id")||He.getAttribute("data-reactid")||He.getAttribute("name");if(ge&&ce[Le])return ce[Le];var fe=window.getComputedStyle(He),Ee=fe.getPropertyValue("box-sizing")||fe.getPropertyValue("-moz-box-sizing")||fe.getPropertyValue("-webkit-box-sizing"),At=parseFloat(fe.getPropertyValue("padding-bottom"))+parseFloat(fe.getPropertyValue("padding-top")),ft=parseFloat(fe.getPropertyValue("border-bottom-width"))+parseFloat(fe.getPropertyValue("border-top-width")),ot=K.map(function(It){return"".concat(It,":").concat(fe.getPropertyValue(It))}).join(";"),ct={sizingStyle:ot,paddingSize:At,borderSize:ft,boxSizing:Ee};return ge&&Le&&(ce[Le]=ct),ct}function W(He){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;G||(G=document.createElement("textarea"),G.setAttribute("tab-index","-1"),G.setAttribute("aria-hidden","true"),document.body.appendChild(G)),He.getAttribute("wrap")?G.setAttribute("wrap",He.getAttribute("wrap")):G.removeAttribute("wrap");var Ee=J(He,ge),At=Ee.paddingSize,ft=Ee.borderSize,ot=Ee.boxSizing,ct=Ee.sizingStyle;G.setAttribute("style","".concat(ct,";").concat(Y)),G.value=He.value||He.placeholder||"";var It=void 0,Tt=void 0,Ht,pr=G.scrollHeight;if(ot==="border-box"?pr+=ft:ot==="content-box"&&(pr-=At),Le!==null||fe!==null){G.value=" ";var sr=G.scrollHeight-At;Le!==null&&(It=sr*Le,ot==="border-box"&&(It=It+At+ft),pr=Math.max(It,pr)),fe!==null&&(Tt=sr*fe,ot==="border-box"&&(Tt=Tt+At+ft),Ht=pr>Tt?"":"hidden",pr=Math.min(Tt,pr))}var Br={height:pr,overflowY:Ht,resize:"none"};return It&&(Br.minHeight=It),Tt&&(Br.maxHeight=Tt),Br}var j=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],se=0,he=1,Oe=2,Be=_.forwardRef(function(He,ge){var Le=He,fe=Le.prefixCls,Ee=Le.onPressEnter,At=Le.defaultValue,ft=Le.value,ot=Le.autoSize,ct=Le.onResize,It=Le.className,Tt=Le.style,Ht=Le.disabled,pr=Le.onChange,sr=Le.onInternalAutoSize,Br=(0,V.Z)(Le,j),fr=(0,S.Z)(At,{value:ft,postState:function(Mr){return Mr!=null?Mr:""}}),k=(0,te.Z)(fr,2),nt=k[0],P=k[1],m=function(Mr){P(Mr.target.value),pr==null||pr(Mr)},d=_.useRef();_.useImperativeHandle(ge,function(){return{textArea:d.current}});var x=_.useMemo(function(){return ot&&(0,Ne.Z)(ot)==="object"?[ot.minRows,ot.maxRows]:[]},[ot]),ee=(0,te.Z)(x,2),Ce=ee[0],H=ee[1],ne=!!ot,Ge=function(){try{if(document.activeElement===d.current){var Mr=d.current,Lr=Mr.selectionStart,vr=Mr.selectionEnd,ur=Mr.scrollTop;d.current.setSelectionRange(Lr,vr),d.current.scrollTop=ur}}catch($r){}},xe=_.useState(Oe),be=(0,te.Z)(xe,2),qe=be[0],Et=be[1],me=_.useState(),pt=(0,te.Z)(me,2),lt=pt[0],Me=pt[1],Pe=function(){Et(se)};(0,Q.Z)(function(){ne&&Pe()},[ft,Ce,H,ne]),(0,Q.Z)(function(){if(qe===se)Et(he);else if(qe===he){var mr=W(d.current,!1,Ce,H);Et(Oe),Me(mr)}else Ge()},[qe]);var gt=_.useRef(),zt=function(){I.Z.cancel(gt.current)},Ut=function(Mr){qe===Oe&&(ct==null||ct(Mr),ot&&(zt(),gt.current=(0,I.Z)(function(){Pe()})))};_.useEffect(function(){return zt},[]);var ir=ne?lt:null,Dr=(0,ue.Z)((0,ue.Z)({},Tt),ir);return(qe===se||qe===he)&&(Dr.overflowY="hidden",Dr.overflowX="hidden"),_.createElement(N.Z,{onResize:Ut,disabled:!(ot||ct)},_.createElement("textarea",(0,pe.Z)({},Br,{ref:d,style:Dr,className:E()(fe,It,(0,R.Z)({},"".concat(fe,"-disabled"),Ht)),disabled:Ht,value:nt,onChange:m})))}),je=Be,X=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function de(He,ge){return(0,B.Z)(He||"").slice(0,ge).join("")}function L(He,ge,Le,fe){var Ee=Le;return He?Ee=de(Le,fe):(0,B.Z)(ge||"").length<Le.length&&(0,B.Z)(Le||"").length>fe&&(Ee=ge),Ee}var rt=_.forwardRef(function(He,ge){var Le,fe=He.defaultValue,Ee=He.value,At=He.onFocus,ft=He.onBlur,ot=He.onChange,ct=He.allowClear,It=He.maxLength,Tt=He.onCompositionStart,Ht=He.onCompositionEnd,pr=He.suffix,sr=He.prefixCls,Br=sr===void 0?"rc-textarea":sr,fr=He.classes,k=He.showCount,nt=He.className,P=He.style,m=He.disabled,d=He.hidden,x=He.classNames,ee=He.styles,Ce=He.onResize,H=(0,V.Z)(He,X),ne=(0,S.Z)(fe,{value:Ee,defaultValue:fe}),Ge=(0,te.Z)(ne,2),xe=Ge[0],be=Ge[1],qe=(0,_.useRef)(null),Et=_.useState(!1),me=(0,te.Z)(Et,2),pt=me[0],lt=me[1],Me=_.useState(!1),Pe=(0,te.Z)(Me,2),gt=Pe[0],zt=Pe[1],Ut=_.useRef(),ir=_.useRef(0),Dr=_.useState(null),mr=(0,te.Z)(Dr,2),Mr=mr[0],Lr=mr[1],vr=function(){var pi;(pi=qe.current)===null||pi===void 0||pi.textArea.focus()};(0,_.useImperativeHandle)(ge,function(){return{resizableTextArea:qe.current,focus:vr,blur:function(){var pi;(pi=qe.current)===null||pi===void 0||pi.textArea.blur()}}}),(0,_.useEffect)(function(){lt(function(Ji){return!m&&Ji})},[m]);var ur=Number(It)>0,$r=function(pi){zt(!0),Ut.current=xe,ir.current=pi.currentTarget.selectionStart,Tt==null||Tt(pi)},cn=function(pi){zt(!1);var ki=pi.currentTarget.value;if(ur){var Ni,ve=ir.current>=It+1||ir.current===((Ni=Ut.current)===null||Ni===void 0?void 0:Ni.length);ki=L(ve,Ut.current,ki,It)}ki!==xe&&(be(ki),(0,z.rJ)(pi.currentTarget,pi,ot,ki)),Ht==null||Ht(pi)},Sn=function(pi){var ki=pi.target.value;if(!gt&&ur){var Ni=pi.target.selectionStart>=It+1||pi.target.selectionStart===ki.length||!pi.target.selectionStart;ki=L(Ni,xe,ki,It)}be(ki),(0,z.rJ)(pi.currentTarget,pi,ot,ki)},nn=function(pi){var ki=H.onPressEnter,Ni=H.onKeyDown;pi.key==="Enter"&&ki&&ki(pi),Ni==null||Ni(pi)},Bn=function(pi){lt(!0),At==null||At(pi)},ri=function(pi){lt(!1),ft==null||ft(pi)},Er=function(pi){var ki;be(""),vr(),(0,z.rJ)((ki=qe.current)===null||ki===void 0?void 0:ki.textArea,pi,ot)},ni=(0,z.D7)(xe);!gt&&ur&&Ee==null&&(ni=de(ni,It));var Li=pr,oi;if(k){var Ti=(0,B.Z)(ni).length;(0,Ne.Z)(k)==="object"?oi=k.formatter({value:ni,count:Ti,maxLength:It}):oi="".concat(Ti).concat(ur?" / ".concat(It):""),Li=_.createElement(_.Fragment,null,Li,_.createElement("span",{className:E()("".concat(Br,"-data-count"),x==null?void 0:x.count),style:ee==null?void 0:ee.count},oi))}var Ui=function(pi){var ki;Ce==null||Ce(pi),(ki=qe.current)!==null&&ki!==void 0&&ki.textArea.style.height&&Lr(!0)},Xi=!H.autoSize&&!k&&!ct,Ha=_.createElement(h.BaseInput,{value:ni,allowClear:ct,handleReset:Er,suffix:Li,prefixCls:Br,classes:{affixWrapper:E()(fr==null?void 0:fr.affixWrapper,(Le={},(0,R.Z)(Le,"".concat(Br,"-show-count"),k),(0,R.Z)(Le,"".concat(Br,"-textarea-allow-clear"),ct),Le))},disabled:m,focused:pt,className:nt,style:(0,ue.Z)((0,ue.Z)({},P),Mr&&!Xi?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof oi=="string"?oi:void 0}},hidden:d,inputElement:_.createElement(je,(0,pe.Z)({},H,{onKeyDown:nn,onChange:Sn,onFocus:Bn,onBlur:ri,onCompositionStart:$r,onCompositionEnd:cn,className:x==null?void 0:x.textarea,style:(0,ue.Z)((0,ue.Z)({},ee==null?void 0:ee.textarea),{},{resize:P==null?void 0:P.resize}),disabled:m,prefixCls:Br,onResize:Ui,ref:qe}))});return Ha}),De=rt,we=De},39417:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return he}});var pe=w(14809),ue=w(4635),R=w(62646),Ne=w(20439),te=w(99153),V=w(84851),B=w(13028),f=w(19257),E=w(93046),h=w(92310),z=w.n(h),S=w(26112),_=w(59301),N=w(39378),Q=function(Be){for(var je=Be.prefixCls,X=Be.level,de=Be.isStart,L=Be.isEnd,rt="".concat(je,"-indent-unit"),De=[],we=0;we<X;we+=1){var He;De.push(_.createElement("span",{key:we,className:z()(rt,(He={},(0,ue.Z)(He,"".concat(rt,"-start"),de[we]),(0,ue.Z)(He,"".concat(rt,"-end"),L[we]),He))}))}return _.createElement("span",{"aria-hidden":"true",className:"".concat(je,"-indent")},De)},I=_.memo(Q),Y=w(67841),K=w(71430),ce=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],G="open",J="close",W="---",j=function(Oe){(0,f.Z)(je,Oe);var Be=(0,E.Z)(je);function je(){var X;(0,te.Z)(this,je);for(var de=arguments.length,L=new Array(de),rt=0;rt<de;rt++)L[rt]=arguments[rt];return X=Be.call.apply(Be,[this].concat(L)),X.state={dragNodeHighlight:!1},X.selectHandle=void 0,X.cacheIndent=void 0,X.onSelectorClick=function(De){var we=X.props.context.onNodeClick;we(De,(0,K.F)(X.props)),X.isSelectable()?X.onSelect(De):X.onCheck(De)},X.onSelectorDoubleClick=function(De){var we=X.props.context.onNodeDoubleClick;we(De,(0,K.F)(X.props))},X.onSelect=function(De){if(!X.isDisabled()){var we=X.props.context.onNodeSelect;we(De,(0,K.F)(X.props))}},X.onCheck=function(De){if(!X.isDisabled()){var we=X.props,He=we.disableCheckbox,ge=we.checked,Le=X.props.context.onNodeCheck;if(!(!X.isCheckable()||He)){var fe=!ge;Le(De,(0,K.F)(X.props),fe)}}},X.onMouseEnter=function(De){var we=X.props.context.onNodeMouseEnter;we(De,(0,K.F)(X.props))},X.onMouseLeave=function(De){var we=X.props.context.onNodeMouseLeave;we(De,(0,K.F)(X.props))},X.onContextMenu=function(De){var we=X.props.context.onNodeContextMenu;we(De,(0,K.F)(X.props))},X.onDragStart=function(De){var we=X.props.context.onNodeDragStart;De.stopPropagation(),X.setState({dragNodeHighlight:!0}),we(De,(0,B.Z)(X));try{De.dataTransfer.setData("text/plain","")}catch(He){}},X.onDragEnter=function(De){var we=X.props.context.onNodeDragEnter;De.preventDefault(),De.stopPropagation(),we(De,(0,B.Z)(X))},X.onDragOver=function(De){var we=X.props.context.onNodeDragOver;De.preventDefault(),De.stopPropagation(),we(De,(0,B.Z)(X))},X.onDragLeave=function(De){var we=X.props.context.onNodeDragLeave;De.stopPropagation(),we(De,(0,B.Z)(X))},X.onDragEnd=function(De){var we=X.props.context.onNodeDragEnd;De.stopPropagation(),X.setState({dragNodeHighlight:!1}),we(De,(0,B.Z)(X))},X.onDrop=function(De){var we=X.props.context.onNodeDrop;De.preventDefault(),De.stopPropagation(),X.setState({dragNodeHighlight:!1}),we(De,(0,B.Z)(X))},X.onExpand=function(De){var we=X.props,He=we.loading,ge=we.context.onNodeExpand;He||ge(De,(0,K.F)(X.props))},X.setSelectHandle=function(De){X.selectHandle=De},X.getNodeState=function(){var De=X.props.expanded;return X.isLeaf()?null:De?G:J},X.hasChildren=function(){var De=X.props.eventKey,we=X.props.context.keyEntities,He=(0,Y.Z)(we,De)||{},ge=He.children;return!!(ge||[]).length},X.isLeaf=function(){var De=X.props,we=De.isLeaf,He=De.loaded,ge=X.props.context.loadData,Le=X.hasChildren();return we===!1?!1:we||!ge&&!Le||ge&&He&&!Le},X.isDisabled=function(){var De=X.props.disabled,we=X.props.context.disabled;return!!(we||De)},X.isCheckable=function(){var De=X.props.checkable,we=X.props.context.checkable;return!we||De===!1?!1:we},X.syncLoadData=function(De){var we=De.expanded,He=De.loading,ge=De.loaded,Le=X.props.context,fe=Le.loadData,Ee=Le.onNodeLoad;He||fe&&we&&!X.isLeaf()&&!X.hasChildren()&&!ge&&Ee((0,K.F)(X.props))},X.isDraggable=function(){var De=X.props,we=De.data,He=De.context.draggable;return!!(He&&(!He.nodeDraggable||He.nodeDraggable(we)))},X.renderDragHandler=function(){var De=X.props.context,we=De.draggable,He=De.prefixCls;return we!=null&&we.icon?_.createElement("span",{className:"".concat(He,"-draggable-icon")},we.icon):null},X.renderSwitcherIconDom=function(De){var we=X.props.switcherIcon,He=X.props.context.switcherIcon,ge=we||He;return typeof ge=="function"?ge((0,Ne.Z)((0,Ne.Z)({},X.props),{},{isLeaf:De})):ge},X.renderSwitcher=function(){var De=X.props.expanded,we=X.props.context.prefixCls;if(X.isLeaf()){var He=X.renderSwitcherIconDom(!0);return He!==!1?_.createElement("span",{className:z()("".concat(we,"-switcher"),"".concat(we,"-switcher-noop"))},He):null}var ge=z()("".concat(we,"-switcher"),"".concat(we,"-switcher_").concat(De?G:J)),Le=X.renderSwitcherIconDom(!1);return Le!==!1?_.createElement("span",{onClick:X.onExpand,className:ge},Le):null},X.renderCheckbox=function(){var De=X.props,we=De.checked,He=De.halfChecked,ge=De.disableCheckbox,Le=X.props.context.prefixCls,fe=X.isDisabled(),Ee=X.isCheckable();if(!Ee)return null;var At=typeof Ee!="boolean"?Ee:null;return _.createElement("span",{className:z()("".concat(Le,"-checkbox"),we&&"".concat(Le,"-checkbox-checked"),!we&&He&&"".concat(Le,"-checkbox-indeterminate"),(fe||ge)&&"".concat(Le,"-checkbox-disabled")),onClick:X.onCheck},At)},X.renderIcon=function(){var De=X.props.loading,we=X.props.context.prefixCls;return _.createElement("span",{className:z()("".concat(we,"-iconEle"),"".concat(we,"-icon__").concat(X.getNodeState()||"docu"),De&&"".concat(we,"-icon_loading"))})},X.renderSelector=function(){var De=X.state.dragNodeHighlight,we=X.props,He=we.title,ge=He===void 0?W:He,Le=we.selected,fe=we.icon,Ee=we.loading,At=we.data,ft=X.props.context,ot=ft.prefixCls,ct=ft.showIcon,It=ft.icon,Tt=ft.loadData,Ht=ft.titleRender,pr=X.isDisabled(),sr="".concat(ot,"-node-content-wrapper"),Br;if(ct){var fr=fe||It;Br=fr?_.createElement("span",{className:z()("".concat(ot,"-iconEle"),"".concat(ot,"-icon__customize"))},typeof fr=="function"?fr(X.props):fr):X.renderIcon()}else Tt&&Ee&&(Br=X.renderIcon());var k;typeof ge=="function"?k=ge(At):Ht?k=Ht(At):k=ge;var nt=_.createElement("span",{className:"".concat(ot,"-title")},k);return _.createElement("span",{ref:X.setSelectHandle,title:typeof ge=="string"?ge:"",className:z()("".concat(sr),"".concat(sr,"-").concat(X.getNodeState()||"normal"),!pr&&(Le||De)&&"".concat(ot,"-node-selected")),onMouseEnter:X.onMouseEnter,onMouseLeave:X.onMouseLeave,onContextMenu:X.onContextMenu,onClick:X.onSelectorClick,onDoubleClick:X.onSelectorDoubleClick},Br,nt,X.renderDropIndicator())},X.renderDropIndicator=function(){var De=X.props,we=De.disabled,He=De.eventKey,ge=X.props.context,Le=ge.draggable,fe=ge.dropLevelOffset,Ee=ge.dropPosition,At=ge.prefixCls,ft=ge.indent,ot=ge.dropIndicatorRender,ct=ge.dragOverNodeKey,It=ge.direction,Tt=!!Le,Ht=!we&&Tt&&ct===He,pr=ft!=null?ft:X.cacheIndent;return X.cacheIndent=ft,Ht?ot({dropPosition:Ee,dropLevelOffset:fe,indent:pr,prefixCls:At,direction:It}):null},X}return(0,V.Z)(je,[{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,L=this.props.context.selectable;return typeof de=="boolean"?de:L}},{key:"render",value:function(){var de,L=this.props,rt=L.eventKey,De=L.className,we=L.style,He=L.dragOver,ge=L.dragOverGapTop,Le=L.dragOverGapBottom,fe=L.isLeaf,Ee=L.isStart,At=L.isEnd,ft=L.expanded,ot=L.selected,ct=L.checked,It=L.halfChecked,Tt=L.loading,Ht=L.domRef,pr=L.active,sr=L.data,Br=L.onMouseMove,fr=L.selectable,k=(0,R.Z)(L,ce),nt=this.props.context,P=nt.prefixCls,m=nt.filterTreeNode,d=nt.keyEntities,x=nt.dropContainerKey,ee=nt.dropTargetKey,Ce=nt.draggingNodeKey,H=this.isDisabled(),ne=(0,S.Z)(k,{aria:!0,data:!0}),Ge=(0,Y.Z)(d,rt)||{},xe=Ge.level,be=At[At.length-1],qe=this.isDraggable(),Et=!H&&qe,me=Ce===rt,pt=fr!==void 0?{"aria-selected":!!fr}:void 0;return _.createElement("div",(0,pe.Z)({ref:Ht,className:z()(De,"".concat(P,"-treenode"),(de={},(0,ue.Z)(de,"".concat(P,"-treenode-disabled"),H),(0,ue.Z)(de,"".concat(P,"-treenode-switcher-").concat(ft?"open":"close"),!fe),(0,ue.Z)(de,"".concat(P,"-treenode-checkbox-checked"),ct),(0,ue.Z)(de,"".concat(P,"-treenode-checkbox-indeterminate"),It),(0,ue.Z)(de,"".concat(P,"-treenode-selected"),ot),(0,ue.Z)(de,"".concat(P,"-treenode-loading"),Tt),(0,ue.Z)(de,"".concat(P,"-treenode-active"),pr),(0,ue.Z)(de,"".concat(P,"-treenode-leaf-last"),be),(0,ue.Z)(de,"".concat(P,"-treenode-draggable"),qe),(0,ue.Z)(de,"dragging",me),(0,ue.Z)(de,"drop-target",ee===rt),(0,ue.Z)(de,"drop-container",x===rt),(0,ue.Z)(de,"drag-over",!H&&He),(0,ue.Z)(de,"drag-over-gap-top",!H&&ge),(0,ue.Z)(de,"drag-over-gap-bottom",!H&&Le),(0,ue.Z)(de,"filter-node",m&&m((0,K.F)(this.props))),de)),style:we,draggable:Et,"aria-grabbed":me,onDragStart:Et?this.onDragStart:void 0,onDragEnter:qe?this.onDragEnter:void 0,onDragOver:qe?this.onDragOver:void 0,onDragLeave:qe?this.onDragLeave:void 0,onDrop:qe?this.onDrop:void 0,onDragEnd:qe?this.onDragEnd:void 0,onMouseMove:Br},pt,ne),_.createElement(I,{prefixCls:P,level:xe,isStart:Ee,isEnd:At}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),je}(_.Component),se=function(Be){return _.createElement(N.k.Consumer,null,function(je){return _.createElement(j,(0,pe.Z)({},Be,{context:je}))})};se.displayName="TreeNode",se.isTreeNode=1;var he=se},39378:function(bn,Xt,w){"use strict";w.d(Xt,{k:function(){return ue}});var pe=w(59301),ue=pe.createContext(null)},79556:function(bn,Xt,w){"use strict";w.d(Xt,{O:function(){return he.Z},Z:function(){return nt}});var pe=w(14809),ue=w(4635),R=w(93664),Ne=w(20439),te=w(95190),V=w(99153),B=w(84851),f=w(13028),E=w(19257),h=w(93046),z=w(92310),S=w.n(z),_=w(10228),N=w(26112),Q=w(48736),I=w(59301),Y=w(39378);function K(P){var m=P.dropPosition,d=P.dropLevelOffset,x=P.indent,ee={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(m){case-1:ee.top=0,ee.left=-d*x;break;case 1:ee.bottom=0,ee.left=-d*x;break;case 0:ee.bottom=0,ee.left=x;break}return I.createElement("div",{style:ee})}function ce(P){if(P==null)throw new TypeError("Cannot destructure "+P)}var G=w(50298),J=w(62646),W=w(34280),j=w(6790),se=w(77900),he=w(39417);function Oe(P,m){var d=I.useState(!1),x=(0,G.Z)(d,2),ee=x[0],Ce=x[1];I.useLayoutEffect(function(){if(ee)return P(),function(){m()}},[ee]),I.useLayoutEffect(function(){return Ce(!0),function(){Ce(!1)}},[])}var Be=w(71430),je=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],X=function(m,d){var x=m.className,ee=m.style,Ce=m.motion,H=m.motionNodes,ne=m.motionType,Ge=m.onMotionStart,xe=m.onMotionEnd,be=m.active,qe=m.treeNodeRequiredProps,Et=(0,J.Z)(m,je),me=I.useState(!0),pt=(0,G.Z)(me,2),lt=pt[0],Me=pt[1],Pe=I.useContext(Y.k),gt=Pe.prefixCls,zt=H&&ne!=="hide";(0,W.Z)(function(){H&&zt!==lt&&Me(zt)},[H]);var Ut=function(){H&&Ge()},ir=I.useRef(!1),Dr=function(){H&&!ir.current&&(ir.current=!0,xe())};Oe(Ut,Dr);var mr=function(Lr){zt===Lr&&Dr()};return H?I.createElement(se.default,(0,pe.Z)({ref:d,visible:lt},Ce,{motionAppear:ne==="show",onVisibleChanged:mr}),function(Mr,Lr){var vr=Mr.className,ur=Mr.style;return I.createElement("div",{ref:Lr,className:S()("".concat(gt,"-treenode-motion"),vr),style:ur},H.map(function($r){var cn=(0,pe.Z)({},(ce($r.data),$r.data)),Sn=$r.title,nn=$r.key,Bn=$r.isStart,ri=$r.isEnd;delete cn.children;var Er=(0,Be.H8)(nn,qe);return I.createElement(he.Z,(0,pe.Z)({},cn,Er,{title:Sn,active:be,data:$r.data,key:nn,isStart:Bn,isEnd:ri}))}))}):I.createElement(he.Z,(0,pe.Z)({domRef:d,className:x,style:ee},Et,{active:be}))};X.displayName="MotionTreeNode";var de=I.forwardRef(X),L=de;function rt(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],d=P.length,x=m.length;if(Math.abs(d-x)!==1)return{add:!1,key:null};function ee(Ce,H){var ne=new Map;Ce.forEach(function(xe){ne.set(xe,!0)});var Ge=H.filter(function(xe){return!ne.has(xe)});return Ge.length===1?Ge[0]:null}return d<x?{add:!0,key:ee(P,m)}:{add:!1,key:ee(m,P)}}function De(P,m,d){var x=P.findIndex(function(ne){return ne.key===d}),ee=P[x+1],Ce=m.findIndex(function(ne){return ne.key===d});if(ee){var H=m.findIndex(function(ne){return ne.key===ee.key});return m.slice(Ce+1,H)}return m.slice(Ce+1)}var we=["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"],He={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ge=function(){},Le="RC_TREE_MOTION_".concat(Math.random()),fe={key:Le},Ee={key:Le,level:0,index:0,pos:"0",node:fe,nodes:[fe]},At={parent:null,children:[],pos:Ee.pos,data:fe,title:null,key:Le,isStart:[],isEnd:[]};function ft(P,m,d,x){return m===!1||!d?P:P.slice(0,Math.ceil(d/x)+1)}function ot(P){var m=P.key,d=P.pos;return(0,Be.km)(m,d)}function ct(P){for(var m=String(P.data.key),d=P;d.parent;)d=d.parent,m="".concat(d.data.key," > ").concat(m);return m}var It=I.forwardRef(function(P,m){var d=P.prefixCls,x=P.data,ee=P.selectable,Ce=P.checkable,H=P.expandedKeys,ne=P.selectedKeys,Ge=P.checkedKeys,xe=P.loadedKeys,be=P.loadingKeys,qe=P.halfCheckedKeys,Et=P.keyEntities,me=P.disabled,pt=P.dragging,lt=P.dragOverNodeKey,Me=P.dropPosition,Pe=P.motion,gt=P.height,zt=P.itemHeight,Ut=P.virtual,ir=P.focusable,Dr=P.activeItem,mr=P.focused,Mr=P.tabIndex,Lr=P.onKeyDown,vr=P.onFocus,ur=P.onBlur,$r=P.onActiveChange,cn=P.onListChangeStart,Sn=P.onListChangeEnd,nn=(0,J.Z)(P,we),Bn=I.useRef(null),ri=I.useRef(null);I.useImperativeHandle(m,function(){return{scrollTo:function(Yr){Bn.current.scrollTo(Yr)},getIndentWidth:function(){return ri.current.offsetWidth}}});var Er=I.useState(H),ni=(0,G.Z)(Er,2),Li=ni[0],oi=ni[1],Ti=I.useState(x),Ui=(0,G.Z)(Ti,2),Xi=Ui[0],Ha=Ui[1],Ji=I.useState(x),pi=(0,G.Z)(Ji,2),ki=pi[0],Ni=pi[1],ve=I.useState([]),Te=(0,G.Z)(ve,2),ke=Te[0],it=Te[1],$t=I.useState(null),Qt=(0,G.Z)($t,2),Sr=Qt[0],dr=Qt[1],Hr=I.useRef(x);Hr.current=x;function Wr(){var jr=Hr.current;Ha(jr),Ni(jr),it([]),dr(null),Sn()}(0,W.Z)(function(){oi(H);var jr=rt(Li,H);if(jr.key!==null)if(jr.add){var Yr=Xi.findIndex(function(Tn){var sn=Tn.key;return sn===jr.key}),mn=ft(De(Xi,x,jr.key),Ut,gt,zt),tn=Xi.slice();tn.splice(Yr+1,0,At),Ni(tn),it(mn),dr("show")}else{var Dn=x.findIndex(function(Tn){var sn=Tn.key;return sn===jr.key}),Qn=ft(De(x,Xi,jr.key),Ut,gt,zt),ui=x.slice();ui.splice(Dn+1,0,At),Ni(ui),it(Qn),dr("hide")}else Xi!==x&&(Ha(x),Ni(x))},[H,x]),I.useEffect(function(){pt||Wr()},[pt]);var en=Pe?ki:x,Vr={expandedKeys:H,selectedKeys:ne,loadedKeys:xe,loadingKeys:be,checkedKeys:Ge,halfCheckedKeys:qe,dragOverNodeKey:lt,dropPosition:Me,keyEntities:Et};return I.createElement(I.Fragment,null,mr&&Dr&&I.createElement("span",{style:He,"aria-live":"assertive"},ct(Dr)),I.createElement("div",null,I.createElement("input",{style:He,disabled:ir===!1||me,tabIndex:ir!==!1?Mr:null,onKeyDown:Lr,onFocus:vr,onBlur:ur,value:"",onChange:ge,"aria-label":"for screen reader"})),I.createElement("div",{className:"".concat(d,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},I.createElement("div",{className:"".concat(d,"-indent")},I.createElement("div",{ref:ri,className:"".concat(d,"-indent-unit")}))),I.createElement(j.Z,(0,pe.Z)({},nn,{data:en,itemKey:ot,height:gt,fullHeight:!1,virtual:Ut,itemHeight:zt,prefixCls:"".concat(d,"-list"),ref:Bn,onVisibleChange:function(Yr,mn){var tn=new Set(Yr),Dn=mn.filter(function(Qn){return!tn.has(Qn)});Dn.some(function(Qn){return ot(Qn)===Le})&&Wr()}}),function(jr){var Yr=jr.pos,mn=(0,pe.Z)({},(ce(jr.data),jr.data)),tn=jr.title,Dn=jr.key,Qn=jr.isStart,ui=jr.isEnd,Tn=(0,Be.km)(Dn,Yr);delete mn.key,delete mn.children;var sn=(0,Be.H8)(Tn,Vr);return I.createElement(L,(0,pe.Z)({},mn,sn,{title:tn,active:!!Dr&&Dn===Dr.key,pos:Yr,data:jr.data,isStart:Qn,isEnd:ui,motion:Pe,motionNodes:Dn===Le?ke:null,motionType:Sr,onMotionStart:cn,onMotionEnd:Wr,treeNodeRequiredProps:Vr,onMouseMove:function(){$r(null)}}))}))});It.displayName="NodeList";var Tt=It,Ht=w(35654),pr=w(90782),sr=w(67841),Br=10,fr=function(P){(0,E.Z)(d,P);var m=(0,h.Z)(d);function d(){var x;(0,V.Z)(this,d);for(var ee=arguments.length,Ce=new Array(ee),H=0;H<ee;H++)Ce[H]=arguments[H];return x=m.call.apply(m,[this].concat(Ce)),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,Be.w$)()},x.dragStartMousePosition=null,x.dragNode=void 0,x.currentMouseOverDroppableNodeKey=null,x.listRef=I.createRef(),x.onNodeDragStart=function(ne,Ge){var xe=x.state,be=xe.expandedKeys,qe=xe.keyEntities,Et=x.props.onDragStart,me=Ge.props.eventKey;x.dragNode=Ge,x.dragStartMousePosition={x:ne.clientX,y:ne.clientY};var pt=(0,Ht._5)(be,me);x.setState({draggingNodeKey:me,dragChildrenKeys:(0,Ht.wA)(me,qe),indent:x.listRef.current.getIndentWidth()}),x.setExpandedKeys(pt),window.addEventListener("dragend",x.onWindowDragEnd),Et==null||Et({event:ne,node:(0,Be.F)(Ge.props)})},x.onNodeDragEnter=function(ne,Ge){var xe=x.state,be=xe.expandedKeys,qe=xe.keyEntities,Et=xe.dragChildrenKeys,me=xe.flattenNodes,pt=xe.indent,lt=x.props,Me=lt.onDragEnter,Pe=lt.onExpand,gt=lt.allowDrop,zt=lt.direction,Ut=Ge.props,ir=Ut.pos,Dr=Ut.eventKey,mr=(0,f.Z)(x),Mr=mr.dragNode;if(x.currentMouseOverDroppableNodeKey!==Dr&&(x.currentMouseOverDroppableNodeKey=Dr),!Mr){x.resetDragState();return}var Lr=(0,Ht.OM)(ne,Mr,Ge,pt,x.dragStartMousePosition,gt,me,qe,be,zt),vr=Lr.dropPosition,ur=Lr.dropLevelOffset,$r=Lr.dropTargetKey,cn=Lr.dropContainerKey,Sn=Lr.dropTargetPos,nn=Lr.dropAllowed,Bn=Lr.dragOverNodeKey;if(Et.indexOf($r)!==-1||!nn){x.resetDragState();return}if(x.delayedDragEnterLogic||(x.delayedDragEnterLogic={}),Object.keys(x.delayedDragEnterLogic).forEach(function(ri){clearTimeout(x.delayedDragEnterLogic[ri])}),Mr.props.eventKey!==Ge.props.eventKey&&(ne.persist(),x.delayedDragEnterLogic[ir]=window.setTimeout(function(){if(x.state.draggingNodeKey!==null){var ri=(0,te.Z)(be),Er=(0,sr.Z)(qe,Ge.props.eventKey);Er&&(Er.children||[]).length&&(ri=(0,Ht.L0)(be,Ge.props.eventKey)),"expandedKeys"in x.props||x.setExpandedKeys(ri),Pe==null||Pe(ri,{node:(0,Be.F)(Ge.props),expanded:!0,nativeEvent:ne.nativeEvent})}},800)),Mr.props.eventKey===$r&&ur===0){x.resetDragState();return}x.setState({dragOverNodeKey:Bn,dropPosition:vr,dropLevelOffset:ur,dropTargetKey:$r,dropContainerKey:cn,dropTargetPos:Sn,dropAllowed:nn}),Me==null||Me({event:ne,node:(0,Be.F)(Ge.props),expandedKeys:be})},x.onNodeDragOver=function(ne,Ge){var xe=x.state,be=xe.dragChildrenKeys,qe=xe.flattenNodes,Et=xe.keyEntities,me=xe.expandedKeys,pt=xe.indent,lt=x.props,Me=lt.onDragOver,Pe=lt.allowDrop,gt=lt.direction,zt=(0,f.Z)(x),Ut=zt.dragNode;if(Ut){var ir=(0,Ht.OM)(ne,Ut,Ge,pt,x.dragStartMousePosition,Pe,qe,Et,me,gt),Dr=ir.dropPosition,mr=ir.dropLevelOffset,Mr=ir.dropTargetKey,Lr=ir.dropContainerKey,vr=ir.dropAllowed,ur=ir.dropTargetPos,$r=ir.dragOverNodeKey;be.indexOf(Mr)!==-1||!vr||(Ut.props.eventKey===Mr&&mr===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():Dr===x.state.dropPosition&&mr===x.state.dropLevelOffset&&Mr===x.state.dropTargetKey&&Lr===x.state.dropContainerKey&&ur===x.state.dropTargetPos&&vr===x.state.dropAllowed&&$r===x.state.dragOverNodeKey||x.setState({dropPosition:Dr,dropLevelOffset:mr,dropTargetKey:Mr,dropContainerKey:Lr,dropTargetPos:ur,dropAllowed:vr,dragOverNodeKey:$r}),Me==null||Me({event:ne,node:(0,Be.F)(Ge.props)}))}},x.onNodeDragLeave=function(ne,Ge){x.currentMouseOverDroppableNodeKey===Ge.props.eventKey&&!ne.currentTarget.contains(ne.relatedTarget)&&(x.resetDragState(),x.currentMouseOverDroppableNodeKey=null);var xe=x.props.onDragLeave;xe==null||xe({event:ne,node:(0,Be.F)(Ge.props)})},x.onWindowDragEnd=function(ne){x.onNodeDragEnd(ne,null,!0),window.removeEventListener("dragend",x.onWindowDragEnd)},x.onNodeDragEnd=function(ne,Ge){var xe=x.props.onDragEnd;x.setState({dragOverNodeKey:null}),x.cleanDragState(),xe==null||xe({event:ne,node:(0,Be.F)(Ge.props)}),x.dragNode=null,window.removeEventListener("dragend",x.onWindowDragEnd)},x.onNodeDrop=function(ne,Ge){var xe,be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,qe=x.state,Et=qe.dragChildrenKeys,me=qe.dropPosition,pt=qe.dropTargetKey,lt=qe.dropTargetPos,Me=qe.dropAllowed;if(Me){var Pe=x.props.onDrop;if(x.setState({dragOverNodeKey:null}),x.cleanDragState(),pt!==null){var gt=(0,Ne.Z)((0,Ne.Z)({},(0,Be.H8)(pt,x.getTreeNodeRequiredProps())),{},{active:((xe=x.getActiveItem())===null||xe===void 0?void 0:xe.key)===pt,data:(0,sr.Z)(x.state.keyEntities,pt).node}),zt=Et.indexOf(pt)!==-1;(0,Q.ZP)(!zt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ut=(0,Ht.yx)(lt),ir={event:ne,node:(0,Be.F)(gt),dragNode:x.dragNode?(0,Be.F)(x.dragNode.props):null,dragNodesKeys:[x.dragNode.props.eventKey].concat(Et),dropToGap:me!==0,dropPosition:me+Number(Ut[Ut.length-1])};be||Pe==null||Pe(ir),x.dragNode=null}}},x.cleanDragState=function(){var ne=x.state.draggingNodeKey;ne!==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(ne,Ge){var xe=x.state,be=xe.expandedKeys,qe=xe.flattenNodes,Et=Ge.expanded,me=Ge.key,pt=Ge.isLeaf;if(!(pt||ne.shiftKey||ne.metaKey||ne.ctrlKey)){var lt=qe.filter(function(Pe){return Pe.key===me})[0],Me=(0,Be.F)((0,Ne.Z)((0,Ne.Z)({},(0,Be.H8)(me,x.getTreeNodeRequiredProps())),{},{data:lt.data}));x.setExpandedKeys(Et?(0,Ht._5)(be,me):(0,Ht.L0)(be,me)),x.onNodeExpand(ne,Me)}},x.onNodeClick=function(ne,Ge){var xe=x.props,be=xe.onClick,qe=xe.expandAction;qe==="click"&&x.triggerExpandActionExpand(ne,Ge),be==null||be(ne,Ge)},x.onNodeDoubleClick=function(ne,Ge){var xe=x.props,be=xe.onDoubleClick,qe=xe.expandAction;qe==="doubleClick"&&x.triggerExpandActionExpand(ne,Ge),be==null||be(ne,Ge)},x.onNodeSelect=function(ne,Ge){var xe=x.state.selectedKeys,be=x.state,qe=be.keyEntities,Et=be.fieldNames,me=x.props,pt=me.onSelect,lt=me.multiple,Me=Ge.selected,Pe=Ge[Et.key],gt=!Me;gt?lt?xe=(0,Ht.L0)(xe,Pe):xe=[Pe]:xe=(0,Ht._5)(xe,Pe);var zt=xe.map(function(Ut){var ir=(0,sr.Z)(qe,Ut);return ir?ir.node:null}).filter(function(Ut){return Ut});x.setUncontrolledState({selectedKeys:xe}),pt==null||pt(xe,{event:"select",selected:gt,node:Ge,selectedNodes:zt,nativeEvent:ne.nativeEvent})},x.onNodeCheck=function(ne,Ge,xe){var be=x.state,qe=be.keyEntities,Et=be.checkedKeys,me=be.halfCheckedKeys,pt=x.props,lt=pt.checkStrictly,Me=pt.onCheck,Pe=Ge.key,gt,zt={event:"check",node:Ge,checked:xe,nativeEvent:ne.nativeEvent};if(lt){var Ut=xe?(0,Ht.L0)(Et,Pe):(0,Ht._5)(Et,Pe),ir=(0,Ht._5)(me,Pe);gt={checked:Ut,halfChecked:ir},zt.checkedNodes=Ut.map(function(ur){return(0,sr.Z)(qe,ur)}).filter(function(ur){return ur}).map(function(ur){return ur.node}),x.setUncontrolledState({checkedKeys:Ut})}else{var Dr=(0,pr.S)([].concat((0,te.Z)(Et),[Pe]),!0,qe),mr=Dr.checkedKeys,Mr=Dr.halfCheckedKeys;if(!xe){var Lr=new Set(mr);Lr.delete(Pe);var vr=(0,pr.S)(Array.from(Lr),{checked:!1,halfCheckedKeys:Mr},qe);mr=vr.checkedKeys,Mr=vr.halfCheckedKeys}gt=mr,zt.checkedNodes=[],zt.checkedNodesPositions=[],zt.halfCheckedKeys=Mr,mr.forEach(function(ur){var $r=(0,sr.Z)(qe,ur);if($r){var cn=$r.node,Sn=$r.pos;zt.checkedNodes.push(cn),zt.checkedNodesPositions.push({node:cn,pos:Sn})}}),x.setUncontrolledState({checkedKeys:mr},!1,{halfCheckedKeys:Mr})}Me==null||Me(gt,zt)},x.onNodeLoad=function(ne){var Ge=ne.key,xe=new Promise(function(be,qe){x.setState(function(Et){var me=Et.loadedKeys,pt=me===void 0?[]:me,lt=Et.loadingKeys,Me=lt===void 0?[]:lt,Pe=x.props,gt=Pe.loadData,zt=Pe.onLoad;if(!gt||pt.indexOf(Ge)!==-1||Me.indexOf(Ge)!==-1)return null;var Ut=gt(ne);return Ut.then(function(){var ir=x.state.loadedKeys,Dr=(0,Ht.L0)(ir,Ge);zt==null||zt(Dr,{event:"load",node:ne}),x.setUncontrolledState({loadedKeys:Dr}),x.setState(function(mr){return{loadingKeys:(0,Ht._5)(mr.loadingKeys,Ge)}}),be()}).catch(function(ir){if(x.setState(function(mr){return{loadingKeys:(0,Ht._5)(mr.loadingKeys,Ge)}}),x.loadingRetryTimes[Ge]=(x.loadingRetryTimes[Ge]||0)+1,x.loadingRetryTimes[Ge]>=Br){var Dr=x.state.loadedKeys;(0,Q.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),x.setUncontrolledState({loadedKeys:(0,Ht.L0)(Dr,Ge)}),be()}qe(ir)}),{loadingKeys:(0,Ht.L0)(Me,Ge)}})});return xe.catch(function(){}),xe},x.onNodeMouseEnter=function(ne,Ge){var xe=x.props.onMouseEnter;xe==null||xe({event:ne,node:Ge})},x.onNodeMouseLeave=function(ne,Ge){var xe=x.props.onMouseLeave;xe==null||xe({event:ne,node:Ge})},x.onNodeContextMenu=function(ne,Ge){var xe=x.props.onRightClick;xe&&(ne.preventDefault(),xe({event:ne,node:Ge}))},x.onFocus=function(){var ne=x.props.onFocus;x.setState({focused:!0});for(var Ge=arguments.length,xe=new Array(Ge),be=0;be<Ge;be++)xe[be]=arguments[be];ne==null||ne.apply(void 0,xe)},x.onBlur=function(){var ne=x.props.onBlur;x.setState({focused:!1}),x.onActiveChange(null);for(var Ge=arguments.length,xe=new Array(Ge),be=0;be<Ge;be++)xe[be]=arguments[be];ne==null||ne.apply(void 0,xe)},x.getTreeNodeRequiredProps=function(){var ne=x.state,Ge=ne.expandedKeys,xe=ne.selectedKeys,be=ne.loadedKeys,qe=ne.loadingKeys,Et=ne.checkedKeys,me=ne.halfCheckedKeys,pt=ne.dragOverNodeKey,lt=ne.dropPosition,Me=ne.keyEntities;return{expandedKeys:Ge||[],selectedKeys:xe||[],loadedKeys:be||[],loadingKeys:qe||[],checkedKeys:Et||[],halfCheckedKeys:me||[],dragOverNodeKey:pt,dropPosition:lt,keyEntities:Me}},x.setExpandedKeys=function(ne){var Ge=x.state,xe=Ge.treeData,be=Ge.fieldNames,qe=(0,Be.oH)(xe,ne,be);x.setUncontrolledState({expandedKeys:ne,flattenNodes:qe},!0)},x.onNodeExpand=function(ne,Ge){var xe=x.state.expandedKeys,be=x.state,qe=be.listChanging,Et=be.fieldNames,me=x.props,pt=me.onExpand,lt=me.loadData,Me=Ge.expanded,Pe=Ge[Et.key];if(!qe){var gt=xe.indexOf(Pe),zt=!Me;if((0,Q.ZP)(Me&>!==-1||!Me&>===-1,"Expand state not sync with index check"),zt?xe=(0,Ht.L0)(xe,Pe):xe=(0,Ht._5)(xe,Pe),x.setExpandedKeys(xe),pt==null||pt(xe,{node:Ge,expanded:zt,nativeEvent:ne.nativeEvent}),zt&<){var Ut=x.onNodeLoad(Ge);Ut&&Ut.then(function(){var ir=(0,Be.oH)(x.state.treeData,xe,Et);x.setUncontrolledState({flattenNodes:ir})}).catch(function(){var ir=x.state.expandedKeys,Dr=(0,Ht._5)(ir,Pe);x.setExpandedKeys(Dr)})}}},x.onListChangeStart=function(){x.setUncontrolledState({listChanging:!0})},x.onListChangeEnd=function(){setTimeout(function(){x.setUncontrolledState({listChanging:!1})})},x.onActiveChange=function(ne){var Ge=x.state.activeKey,xe=x.props.onActiveChange;Ge!==ne&&(x.setState({activeKey:ne}),ne!==null&&x.scrollTo({key:ne}),xe==null||xe(ne))},x.getActiveItem=function(){var ne=x.state,Ge=ne.activeKey,xe=ne.flattenNodes;return Ge===null?null:xe.find(function(be){var qe=be.key;return qe===Ge})||null},x.offsetActiveKey=function(ne){var Ge=x.state,xe=Ge.flattenNodes,be=Ge.activeKey,qe=xe.findIndex(function(pt){var lt=pt.key;return lt===be});qe===-1&&ne<0&&(qe=xe.length),qe=(qe+ne+xe.length)%xe.length;var Et=xe[qe];if(Et){var me=Et.key;x.onActiveChange(me)}else x.onActiveChange(null)},x.onKeyDown=function(ne){var Ge=x.state,xe=Ge.activeKey,be=Ge.expandedKeys,qe=Ge.checkedKeys,Et=Ge.fieldNames,me=x.props,pt=me.onKeyDown,lt=me.checkable,Me=me.selectable;switch(ne.which){case _.Z.UP:{x.offsetActiveKey(-1),ne.preventDefault();break}case _.Z.DOWN:{x.offsetActiveKey(1),ne.preventDefault();break}}var Pe=x.getActiveItem();if(Pe&&Pe.data){var gt=x.getTreeNodeRequiredProps(),zt=Pe.data.isLeaf===!1||!!(Pe.data[Et.children]||[]).length,Ut=(0,Be.F)((0,Ne.Z)((0,Ne.Z)({},(0,Be.H8)(xe,gt)),{},{data:Pe.data,active:!0}));switch(ne.which){case _.Z.LEFT:{zt&&be.includes(xe)?x.onNodeExpand({},Ut):Pe.parent&&x.onActiveChange(Pe.parent.key),ne.preventDefault();break}case _.Z.RIGHT:{zt&&!be.includes(xe)?x.onNodeExpand({},Ut):Pe.children&&Pe.children.length&&x.onActiveChange(Pe.children[0].key),ne.preventDefault();break}case _.Z.ENTER:case _.Z.SPACE:{lt&&!Ut.disabled&&Ut.checkable!==!1&&!Ut.disableCheckbox?x.onNodeCheck({},Ut,!qe.includes(xe)):!lt&&Me&&!Ut.disabled&&Ut.selectable!==!1&&x.onNodeSelect({},Ut);break}}}pt==null||pt(ne)},x.setUncontrolledState=function(ne){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!x.destroyed){var be=!1,qe=!0,Et={};Object.keys(ne).forEach(function(me){if(me in x.props){qe=!1;return}be=!0,Et[me]=ne[me]}),be&&(!Ge||qe)&&x.setState((0,Ne.Z)((0,Ne.Z)({},Et),xe))}},x.scrollTo=function(ne){x.listRef.current.scrollTo(ne)},x}return(0,B.Z)(d,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var ee=this.props.activeKey;ee!==void 0&&ee!==this.state.activeKey&&(this.setState({activeKey:ee}),ee!==null&&this.scrollTo({key:ee}))}},{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 ee,Ce=this.state,H=Ce.focused,ne=Ce.flattenNodes,Ge=Ce.keyEntities,xe=Ce.draggingNodeKey,be=Ce.activeKey,qe=Ce.dropLevelOffset,Et=Ce.dropContainerKey,me=Ce.dropTargetKey,pt=Ce.dropPosition,lt=Ce.dragOverNodeKey,Me=Ce.indent,Pe=this.props,gt=Pe.prefixCls,zt=Pe.className,Ut=Pe.style,ir=Pe.showLine,Dr=Pe.focusable,mr=Pe.tabIndex,Mr=mr===void 0?0:mr,Lr=Pe.selectable,vr=Pe.showIcon,ur=Pe.icon,$r=Pe.switcherIcon,cn=Pe.draggable,Sn=Pe.checkable,nn=Pe.checkStrictly,Bn=Pe.disabled,ri=Pe.motion,Er=Pe.loadData,ni=Pe.filterTreeNode,Li=Pe.height,oi=Pe.itemHeight,Ti=Pe.virtual,Ui=Pe.titleRender,Xi=Pe.dropIndicatorRender,Ha=Pe.onContextMenu,Ji=Pe.onScroll,pi=Pe.direction,ki=Pe.rootClassName,Ni=Pe.rootStyle,ve=(0,N.Z)(this.props,{aria:!0,data:!0}),Te;return cn&&((0,R.Z)(cn)==="object"?Te=cn:typeof cn=="function"?Te={nodeDraggable:cn}:Te={}),I.createElement(Y.k.Provider,{value:{prefixCls:gt,selectable:Lr,showIcon:vr,icon:ur,switcherIcon:$r,draggable:Te,draggingNodeKey:xe,checkable:Sn,checkStrictly:nn,disabled:Bn,keyEntities:Ge,dropLevelOffset:qe,dropContainerKey:Et,dropTargetKey:me,dropPosition:pt,dragOverNodeKey:lt,indent:Me,direction:pi,dropIndicatorRender:Xi,loadData:Er,filterTreeNode:ni,titleRender:Ui,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},I.createElement("div",{role:"tree",className:S()(gt,zt,ki,(ee={},(0,ue.Z)(ee,"".concat(gt,"-show-line"),ir),(0,ue.Z)(ee,"".concat(gt,"-focused"),H),(0,ue.Z)(ee,"".concat(gt,"-active-focused"),be!==null),ee)),style:Ni},I.createElement(Tt,(0,pe.Z)({ref:this.listRef,prefixCls:gt,style:Ut,data:ne,disabled:Bn,selectable:Lr,checkable:!!Sn,motion:ri,dragging:xe!==null,height:Li,itemHeight:oi,virtual:Ti,focusable:Dr,focused:H,tabIndex:Mr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ha,onScroll:Ji},this.getTreeNodeRequiredProps(),ve))))}}],[{key:"getDerivedStateFromProps",value:function(ee,Ce){var H=Ce.prevProps,ne={prevProps:ee};function Ge(Dr){return!H&&Dr in ee||H&&H[Dr]!==ee[Dr]}var xe,be=Ce.fieldNames;if(Ge("fieldNames")&&(be=(0,Be.w$)(ee.fieldNames),ne.fieldNames=be),Ge("treeData")?xe=ee.treeData:Ge("children")&&((0,Q.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),xe=(0,Be.zn)(ee.children)),xe){ne.treeData=xe;var qe=(0,Be.I8)(xe,{fieldNames:be});ne.keyEntities=(0,Ne.Z)((0,ue.Z)({},Le,Ee),qe.keyEntities)}var Et=ne.keyEntities||Ce.keyEntities;if(Ge("expandedKeys")||H&&Ge("autoExpandParent"))ne.expandedKeys=ee.autoExpandParent||!H&&ee.defaultExpandParent?(0,Ht.r7)(ee.expandedKeys,Et):ee.expandedKeys;else if(!H&&ee.defaultExpandAll){var me=(0,Ne.Z)({},Et);delete me[Le],ne.expandedKeys=Object.keys(me).map(function(Dr){return me[Dr].key})}else!H&&ee.defaultExpandedKeys&&(ne.expandedKeys=ee.autoExpandParent||ee.defaultExpandParent?(0,Ht.r7)(ee.defaultExpandedKeys,Et):ee.defaultExpandedKeys);if(ne.expandedKeys||delete ne.expandedKeys,xe||ne.expandedKeys){var pt=(0,Be.oH)(xe||Ce.treeData,ne.expandedKeys||Ce.expandedKeys,be);ne.flattenNodes=pt}if(ee.selectable&&(Ge("selectedKeys")?ne.selectedKeys=(0,Ht.BT)(ee.selectedKeys,ee):!H&&ee.defaultSelectedKeys&&(ne.selectedKeys=(0,Ht.BT)(ee.defaultSelectedKeys,ee))),ee.checkable){var lt;if(Ge("checkedKeys")?lt=(0,Ht.E6)(ee.checkedKeys)||{}:!H&&ee.defaultCheckedKeys?lt=(0,Ht.E6)(ee.defaultCheckedKeys)||{}:xe&&(lt=(0,Ht.E6)(ee.checkedKeys)||{checkedKeys:Ce.checkedKeys,halfCheckedKeys:Ce.halfCheckedKeys}),lt){var Me=lt,Pe=Me.checkedKeys,gt=Pe===void 0?[]:Pe,zt=Me.halfCheckedKeys,Ut=zt===void 0?[]:zt;if(!ee.checkStrictly){var ir=(0,pr.S)(gt,!0,Et);gt=ir.checkedKeys,Ut=ir.halfCheckedKeys}ne.checkedKeys=gt,ne.halfCheckedKeys=Ut}}return Ge("loadedKeys")&&(ne.loadedKeys=ee.loadedKeys),ne}}]),d}(I.Component);fr.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:K,allowDrop:function(){return!0},expandAction:!1},fr.TreeNode=he.Z;var k=fr,nt=k},35654:function(bn,Xt,w){"use strict";w.d(Xt,{BT:function(){return I},E6:function(){return ce},L0:function(){return h},OM:function(){return Q},_5:function(){return E},r7:function(){return G},wA:function(){return S},yx:function(){return z}});var pe=w(95190),ue=w(93664),R=w(48736),Ne=w(59301),te=w(39417),V=w(67841),B=w(71430),f=null;function E(J,W){if(!J)return[];var j=J.slice(),se=j.indexOf(W);return se>=0&&j.splice(se,1),j}function h(J,W){var j=(J||[]).slice();return j.indexOf(W)===-1&&j.push(W),j}function z(J){return J.split("-")}function S(J,W){var j=[],se=(0,V.Z)(W,J);function he(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Oe.forEach(function(Be){var je=Be.key,X=Be.children;j.push(je),he(X)})}return he(se.children),j}function _(J){if(J.parent){var W=z(J.pos);return Number(W[W.length-1])===J.parent.children.length-1}return!1}function N(J){var W=z(J.pos);return Number(W[W.length-1])===0}function Q(J,W,j,se,he,Oe,Be,je,X,de){var L,rt=J.clientX,De=J.clientY,we=J.target.getBoundingClientRect(),He=we.top,ge=we.height,Le=(de==="rtl"?-1:1)*(((he==null?void 0:he.x)||0)-rt),fe=(Le-12)/se,Ee=(0,V.Z)(je,j.props.eventKey);if(De<He+ge/2){var At=Be.findIndex(function(nt){return nt.key===Ee.key}),ft=At<=0?0:At-1,ot=Be[ft].key;Ee=(0,V.Z)(je,ot)}var ct=Ee.key,It=Ee,Tt=Ee.key,Ht=0,pr=0;if(!X.includes(ct))for(var sr=0;sr<fe&&_(Ee);sr+=1)Ee=Ee.parent,pr+=1;var Br=W.props.data,fr=Ee.node,k=!0;return N(Ee)&&Ee.level===0&&De<He+ge/2&&Oe({dragNode:Br,dropNode:fr,dropPosition:-1})&&Ee.key===j.props.eventKey?Ht=-1:(It.children||[]).length&&X.includes(Tt)?Oe({dragNode:Br,dropNode:fr,dropPosition:0})?Ht=0:k=!1:pr===0?fe>-1.5?Oe({dragNode:Br,dropNode:fr,dropPosition:1})?Ht=1:k=!1:Oe({dragNode:Br,dropNode:fr,dropPosition:0})?Ht=0:Oe({dragNode:Br,dropNode:fr,dropPosition:1})?Ht=1:k=!1:Oe({dragNode:Br,dropNode:fr,dropPosition:1})?Ht=1:k=!1,{dropPosition:Ht,dropLevelOffset:pr,dropTargetKey:Ee.key,dropTargetPos:Ee.pos,dragOverNodeKey:Tt,dropContainerKey:Ht===0?null:((L=Ee.parent)===null||L===void 0?void 0:L.key)||null,dropAllowed:k}}function I(J,W){if(J){var j=W.multiple;return j?J.slice():J.length?[J[0]]:J}}var Y=function(W){return W};function K(J,W){if(!J)return[];var j=W||{},se=j.processProps,he=se===void 0?Y:se,Oe=Array.isArray(J)?J:[J];return Oe.map(function(Be){var je=Be.children,X=_objectWithoutProperties(Be,f),de=K(je,W);return React.createElement(TreeNode,_extends({key:X.key},he(X)),de)})}function ce(J){if(!J)return null;var W;if(Array.isArray(J))W={checkedKeys:J,halfCheckedKeys:void 0};else if((0,ue.Z)(J)==="object")W={checkedKeys:J.checked||void 0,halfCheckedKeys:J.halfChecked||void 0};else return(0,R.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return W}function G(J,W){var j=new Set;function se(he){if(!j.has(he)){var Oe=(0,V.Z)(W,he);if(Oe){j.add(he);var Be=Oe.parent,je=Oe.node;je.disabled||Be&&se(Be.key)}}}return(J||[]).forEach(function(he){se(he)}),(0,pe.Z)(j)}},90782:function(bn,Xt,w){"use strict";w.d(Xt,{S:function(){return B}});var pe=w(48736),ue=w(67841);function R(f,E){var h=new Set;return f.forEach(function(z){E.has(z)||h.add(z)}),h}function Ne(f){var E=f||{},h=E.disabled,z=E.disableCheckbox,S=E.checkable;return!!(h||z)||S===!1}function te(f,E,h,z){for(var S=new Set(f),_=new Set,N=0;N<=h;N+=1){var Q=E.get(N)||new Set;Q.forEach(function(ce){var G=ce.key,J=ce.node,W=ce.children,j=W===void 0?[]:W;S.has(G)&&!z(J)&&j.filter(function(se){return!z(se.node)}).forEach(function(se){S.add(se.key)})})}for(var I=new Set,Y=h;Y>=0;Y-=1){var K=E.get(Y)||new Set;K.forEach(function(ce){var G=ce.parent,J=ce.node;if(!(z(J)||!ce.parent||I.has(ce.parent.key))){if(z(ce.parent.node)){I.add(G.key);return}var W=!0,j=!1;(G.children||[]).filter(function(se){return!z(se.node)}).forEach(function(se){var he=se.key,Oe=S.has(he);W&&!Oe&&(W=!1),!j&&(Oe||_.has(he))&&(j=!0)}),W&&S.add(G.key),j&&_.add(G.key),I.add(G.key)}})}return{checkedKeys:Array.from(S),halfCheckedKeys:Array.from(R(_,S))}}function V(f,E,h,z,S){for(var _=new Set(f),N=new Set(E),Q=0;Q<=z;Q+=1){var I=h.get(Q)||new Set;I.forEach(function(G){var J=G.key,W=G.node,j=G.children,se=j===void 0?[]:j;!_.has(J)&&!N.has(J)&&!S(W)&&se.filter(function(he){return!S(he.node)}).forEach(function(he){_.delete(he.key)})})}N=new Set;for(var Y=new Set,K=z;K>=0;K-=1){var ce=h.get(K)||new Set;ce.forEach(function(G){var J=G.parent,W=G.node;if(!(S(W)||!G.parent||Y.has(G.parent.key))){if(S(G.parent.node)){Y.add(J.key);return}var j=!0,se=!1;(J.children||[]).filter(function(he){return!S(he.node)}).forEach(function(he){var Oe=he.key,Be=_.has(Oe);j&&!Be&&(j=!1),!se&&(Be||N.has(Oe))&&(se=!0)}),j||_.delete(J.key),se&&N.add(J.key),Y.add(J.key)}})}return{checkedKeys:Array.from(_),halfCheckedKeys:Array.from(R(N,_))}}function B(f,E,h,z){var S=[],_;z?_=z:_=Ne;var N=new Set(f.filter(function(K){var ce=!!(0,ue.Z)(h,K);return ce||S.push(K),ce})),Q=new Map,I=0;Object.keys(h).forEach(function(K){var ce=h[K],G=ce.level,J=Q.get(G);J||(J=new Set,Q.set(G,J)),J.add(ce),I=Math.max(I,G)}),(0,pe.ZP)(!S.length,"Tree missing follow keys: ".concat(S.slice(0,100).map(function(K){return"'".concat(K,"'")}).join(", ")));var Y;return E===!0?Y=te(N,Q,I,_):Y=V(N,E.halfCheckedKeys,Q,I,_),Y}},67841:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return pe}});function pe(ue,R){return ue[R]}},71430:function(bn,Xt,w){"use strict";w.d(Xt,{F:function(){return G},H8:function(){return ce},I8:function(){return K},km:function(){return S},oH:function(){return I},w$:function(){return _},zn:function(){return Q}});var pe=w(93664),ue=w(95190),R=w(20439),Ne=w(62646),te=w(11592),V=w(2738),B=w(48736),f=w(67841),E=["children"];function h(J,W){return"".concat(J,"-").concat(W)}function z(J){return J&&J.type&&J.type.isTreeNode}function S(J,W){return J!=null?J:W}function _(J){var W=J||{},j=W.title,se=W._title,he=W.key,Oe=W.children,Be=j||"title";return{title:Be,_title:se||[Be],key:he||"key",children:Oe||"children"}}function N(J,W){var j=new Map;function se(he){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(he||[]).forEach(function(Be){var je=Be[W.key],X=Be[W.children];warning(je!=null,"Tree node must have a certain key: [".concat(Oe).concat(je,"]"));var de=String(je);warning(!j.has(de)||je===null||je===void 0,"Same 'key' exist in the Tree: ".concat(de)),j.set(de,!0),se(X,"".concat(Oe).concat(de," > "))})}se(J)}function Q(J){function W(j){var se=(0,te.Z)(j);return se.map(function(he){if(!z(he))return(0,B.ZP)(!he,"Tree/TreeNode can only accept TreeNode as children."),null;var Oe=he.key,Be=he.props,je=Be.children,X=(0,Ne.Z)(Be,E),de=(0,R.Z)({key:Oe},X),L=W(je);return L.length&&(de.children=L),de}).filter(function(he){return he})}return W(J)}function I(J,W,j){var se=_(j),he=se._title,Oe=se.key,Be=se.children,je=new Set(W===!0?[]:W),X=[];function de(L){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return L.map(function(De,we){for(var He=h(rt?rt.pos:"0",we),ge=S(De[Oe],He),Le,fe=0;fe<he.length;fe+=1){var Ee=he[fe];if(De[Ee]!==void 0){Le=De[Ee];break}}var At=(0,R.Z)((0,R.Z)({},(0,V.Z)(De,[].concat((0,ue.Z)(he),[Oe,Be]))),{},{title:Le,key:ge,parent:rt,pos:He,children:null,data:De,isStart:[].concat((0,ue.Z)(rt?rt.isStart:[]),[we===0]),isEnd:[].concat((0,ue.Z)(rt?rt.isEnd:[]),[we===L.length-1])});return X.push(At),W===!0||je.has(ge)?At.children=de(De[Be]||[],At):At.children=[],At})}return de(J),X}function Y(J,W,j){var se={};(0,pe.Z)(j)==="object"?se=j:se={externalGetKey:j},se=se||{};var he=se,Oe=he.childrenPropName,Be=he.externalGetKey,je=he.fieldNames,X=_(je),de=X.key,L=X.children,rt=Oe||L,De;Be?typeof Be=="string"?De=function(ge){return ge[Be]}:typeof Be=="function"&&(De=function(ge){return Be(ge)}):De=function(ge,Le){return S(ge[de],Le)};function we(He,ge,Le,fe){var Ee=He?He[rt]:J,At=He?h(Le.pos,ge):"0",ft=He?[].concat((0,ue.Z)(fe),[He]):[];if(He){var ot=De(He,At),ct={node:He,index:ge,pos:At,key:ot,parentPos:Le.node?Le.pos:null,level:Le.level+1,nodes:ft};W(ct)}Ee&&Ee.forEach(function(It,Tt){we(It,Tt,{node:He,pos:At,level:Le?Le.level+1:-1},ft)})}we(null)}function K(J){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=W.initWrapper,se=W.processEntity,he=W.onProcessFinished,Oe=W.externalGetKey,Be=W.childrenPropName,je=W.fieldNames,X=arguments.length>2?arguments[2]:void 0,de=Oe||X,L={},rt={},De={posEntities:L,keyEntities:rt};return j&&(De=j(De)||De),Y(J,function(we){var He=we.node,ge=we.index,Le=we.pos,fe=we.key,Ee=we.parentPos,At=we.level,ft=we.nodes,ot={node:He,nodes:ft,index:ge,key:fe,pos:Le,level:At},ct=S(fe,Le);L[Le]=ot,rt[ct]=ot,ot.parent=L[Ee],ot.parent&&(ot.parent.children=ot.parent.children||[],ot.parent.children.push(ot)),se&&se(ot,De)},{externalGetKey:de,childrenPropName:Be,fieldNames:je}),he&&he(De),De}function ce(J,W){var j=W.expandedKeys,se=W.selectedKeys,he=W.loadedKeys,Oe=W.loadingKeys,Be=W.checkedKeys,je=W.halfCheckedKeys,X=W.dragOverNodeKey,de=W.dropPosition,L=W.keyEntities,rt=(0,f.Z)(L,J),De={eventKey:J,expanded:j.indexOf(J)!==-1,selected:se.indexOf(J)!==-1,loaded:he.indexOf(J)!==-1,loading:Oe.indexOf(J)!==-1,checked:Be.indexOf(J)!==-1,halfChecked:je.indexOf(J)!==-1,pos:String(rt?rt.pos:""),dragOver:X===J&&de===0,dragOverGapTop:X===J&&de===-1,dragOverGapBottom:X===J&&de===1};return De}function G(J){var W=J.data,j=J.expanded,se=J.selected,he=J.checked,Oe=J.loaded,Be=J.loading,je=J.halfChecked,X=J.dragOver,de=J.dragOverGapTop,L=J.dragOverGapBottom,rt=J.pos,De=J.active,we=J.eventKey,He=(0,R.Z)((0,R.Z)({},W),{},{expanded:j,selected:se,checked:he,loaded:Oe,loading:Be,halfChecked:je,dragOver:X,dragOverGapTop:de,dragOverGapBottom:L,pos:rt,active:De,key:we});return"props"in He||Object.defineProperty(He,"props",{get:function(){return(0,B.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),J}}),He}},8224:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return ue}});var pe=w(4676);function ue(R,Ne,te,V){var B=pe.unstable_batchedUpdates?function(E){pe.unstable_batchedUpdates(te,E)}:te;return R!=null&&R.addEventListener&&R.addEventListener(Ne,B,V),{remove:function(){R!=null&&R.removeEventListener&&R.removeEventListener(Ne,B,V)}}}},55468:function(bn,Xt,w){"use strict";w.d(Xt,{g1:function(){return z},os:function(){return _}});var pe=/margin|padding|width|height|max|min|offset/,ue={left:!0,top:!0},R={cssFloat:1,styleFloat:1,float:1};function Ne(N){return N.nodeType===1?N.ownerDocument.defaultView.getComputedStyle(N,null):{}}function te(N,Q,I){if(Q=Q.toLowerCase(),I==="auto"){if(Q==="height")return N.offsetHeight;if(Q==="width")return N.offsetWidth}return Q in ue||(ue[Q]=pe.test(Q)),ue[Q]?parseFloat(I)||0:I}function V(N,Q){var I=arguments.length,Y=Ne(N);return Q=R[Q]?"cssFloat"in N.style?"cssFloat":"styleFloat":Q,I===1?Y:te(N,Q,Y[Q]||N.style[Q])}function B(N,Q,I){var Y=arguments.length;if(Q=R[Q]?"cssFloat"in N.style?"cssFloat":"styleFloat":Q,Y===3)return typeof I=="number"&&pe.test(Q)&&(I="".concat(I,"px")),N.style[Q]=I,I;for(var K in Q)Q.hasOwnProperty(K)&&B(N,K,Q[K]);return Ne(N)}function f(N){return N===document.body?document.documentElement.clientWidth:N.offsetWidth}function E(N){return N===document.body?window.innerHeight||document.documentElement.clientHeight:N.offsetHeight}function h(){var N=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Q=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:N,height:Q}}function z(){var N=document.documentElement.clientWidth,Q=window.innerHeight||document.documentElement.clientHeight;return{width:N,height:Q}}function S(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function _(N){var Q=N.getBoundingClientRect(),I=document.documentElement;return{left:Q.left+(window.pageXOffset||I.scrollLeft)-(I.clientLeft||document.body.clientLeft||0),top:Q.top+(window.pageYOffset||I.scrollTop)-(I.clientTop||document.body.clientTop||0)}}},24514:function(bn,Xt,w){"use strict";w.d(Xt,{G:function(){return Ne}});var pe=w(47273),ue=function(V){if((0,pe.Z)()&&window.document.documentElement){var B=Array.isArray(V)?V:[V],f=window.document.documentElement;return B.some(function(E){return E in f.style})}return!1},R=function(V,B){if(!ue(V))return!1;var f=document.createElement("div"),E=f.style[V];return f.style[V]=B,f.style[V]!==E};function Ne(te,V){return!Array.isArray(te)&&V!==void 0?R(te,V):ue(te)}},6790:function(bn,Xt,w){"use strict";w.d(Xt,{Z:function(){return fr}});var pe=w(14809),ue=w(93664),R=w(20439),Ne=w(4635),te=w(50298),V=w(62646),B=w(92310),f=w.n(B),E=w(29301),h=w(70425),z=w(34280),S=w(59301),_=w(4676),N=S.forwardRef(function(k,nt){var P=k.height,m=k.offsetY,d=k.offsetX,x=k.children,ee=k.prefixCls,Ce=k.onInnerResize,H=k.innerProps,ne=k.rtl,Ge=k.extra,xe={},be={display:"flex",flexDirection:"column"};return m!==void 0&&(xe={height:P,position:"relative",overflow:"hidden"},be=(0,R.Z)((0,R.Z)({},be),{},(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({transform:"translateY(".concat(m,"px)")},ne?"marginRight":"marginLeft",-d),"position","absolute"),"left",0),"right",0),"top",0))),S.createElement("div",{style:xe},S.createElement(E.Z,{onResize:function(Et){var me=Et.offsetHeight;me&&Ce&&Ce()}},S.createElement("div",(0,pe.Z)({style:be,className:f()((0,Ne.Z)({},"".concat(ee,"-holder-inner"),ee)),ref:nt},H),x,Ge)))});N.displayName="Filler";var Q=N;function I(k){var nt=k.children,P=k.setRef,m=S.useCallback(function(d){P(d)},[]);return S.cloneElement(nt,{ref:m})}function Y(k,nt,P,m,d,x,ee,Ce){var H=Ce.getKey;return k.slice(nt,P+1).map(function(ne,Ge){var xe=nt+Ge,be=ee(ne,xe,{style:{width:m},offsetX:d}),qe=H(ne);return S.createElement(I,{key:qe,setRef:function(me){return x(ne,me)}},be)})}function K(k,nt,P,m){var d=P-k,x=nt-P,ee=Math.min(d,x)*2;if(m<=ee){var Ce=Math.floor(m/2);return m%2?P+Ce+1:P-Ce}return d>x?P-(m-x):P+(m-d)}function ce(k,nt,P){var m=k.length,d=nt.length,x,ee;if(m===0&&d===0)return null;m<d?(x=k,ee=nt):(x=nt,ee=k);var Ce={__EMPTY_ITEM__:!0};function H(Et){return Et!==void 0?P(Et):Ce}for(var ne=null,Ge=Math.abs(m-d)!==1,xe=0;xe<ee.length;xe+=1){var be=H(x[xe]),qe=H(ee[xe]);if(be!==qe){ne=xe,Ge=Ge||be!==H(ee[xe+1]);break}}return ne===null?null:{index:ne,multiple:Ge}}function G(k,nt,P){var m=S.useState(k),d=(0,te.Z)(m,2),x=d[0],ee=d[1],Ce=S.useState(null),H=(0,te.Z)(Ce,2),ne=H[0],Ge=H[1];return S.useEffect(function(){var xe=ce(x||[],k||[],nt);(xe==null?void 0:xe.index)!==void 0&&(P==null||P(xe.index),Ge(k[xe.index])),ee(k)},[k]),[ne]}var J=w(16089),W=(typeof navigator=="undefined"?"undefined":(0,ue.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),j=W,se=function(k,nt,P,m){var d=(0,S.useRef)(!1),x=(0,S.useRef)(null);function ee(){clearTimeout(x.current),d.current=!0,x.current=setTimeout(function(){d.current=!1},50)}var Ce=(0,S.useRef)({top:k,bottom:nt,left:P,right:m});return Ce.current.top=k,Ce.current.bottom=nt,Ce.current.left=P,Ce.current.right=m,function(H,ne){var Ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,xe=H?ne<0&&Ce.current.left||ne>0&&Ce.current.right:ne<0&&Ce.current.top||ne>0&&Ce.current.bottom;return Ge&&xe?(clearTimeout(x.current),d.current=!1):(!xe||d.current)&&ee(),!d.current&&xe}};function he(k,nt,P,m,d,x,ee){var Ce=(0,S.useRef)(0),H=(0,S.useRef)(null),ne=(0,S.useRef)(null),Ge=(0,S.useRef)(!1),xe=se(nt,P,m,d);function be(Me,Pe){if(J.Z.cancel(H.current),!xe(!1,Pe)){var gt=Me;if(!gt._virtualHandled)gt._virtualHandled=!0;else return;Ce.current+=Pe,ne.current=Pe,j||gt.preventDefault(),H.current=(0,J.Z)(function(){var zt=Ge.current?10:1;ee(Ce.current*zt,!1),Ce.current=0})}}function qe(Me,Pe){ee(Pe,!0),j||Me.preventDefault()}var Et=(0,S.useRef)(null),me=(0,S.useRef)(null);function pt(Me){if(k){J.Z.cancel(me.current),me.current=(0,J.Z)(function(){Et.current=null},2);var Pe=Me.deltaX,gt=Me.deltaY,zt=Me.shiftKey,Ut=Pe,ir=gt;(Et.current==="sx"||!Et.current&&zt&>&&!Pe)&&(Ut=gt,ir=0,Et.current="sx");var Dr=Math.abs(Ut),mr=Math.abs(ir);Et.current===null&&(Et.current=x&&Dr>mr?"x":"y"),Et.current==="y"?be(Me,ir):qe(Me,Ut)}}function lt(Me){k&&(Ge.current=Me.detail===ne.current)}return[pt,lt]}function Oe(k,nt,P,m){var d=S.useMemo(function(){return[new Map,[]]},[k,P.id,m]),x=(0,te.Z)(d,2),ee=x[0],Ce=x[1],H=function(Ge){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ge,be=ee.get(Ge),qe=ee.get(xe);if(be===void 0||qe===void 0)for(var Et=k.length,me=Ce.length;me<Et;me+=1){var pt,lt=k[me],Me=nt(lt);ee.set(Me,me);var Pe=(pt=P.get(Me))!==null&&pt!==void 0?pt:m;if(Ce[me]=(Ce[me-1]||0)+Pe,Me===Ge&&(be=me),Me===xe&&(qe=me),be!==void 0&&qe!==void 0)break}return{top:Ce[be-1]||0,bottom:Ce[qe]}};return H}var Be=w(99153),je=w(84851),X=function(){function k(){(0,Be.Z)(this,k),(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,je.Z)(k,[{key:"set",value:function(P,m){this.diffRecords.set(P,this.maps[P]),this.maps[P]=m,this.id+=1}},{key:"get",value:function(P){return this.maps[P]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),k}(),de=X;function L(k){var nt=parseFloat(k);return isNaN(nt)?0:nt}function rt(k,nt,P){var m=S.useState(0),d=(0,te.Z)(m,2),x=d[0],ee=d[1],Ce=(0,S.useRef)(new Map),H=(0,S.useRef)(new de),ne=(0,S.useRef)(0);function Ge(){ne.current+=1}function xe(){var qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ge();var Et=function(){var lt=!1;Ce.current.forEach(function(Me,Pe){if(Me&&Me.offsetParent){var gt=Me.offsetHeight,zt=getComputedStyle(Me),Ut=zt.marginTop,ir=zt.marginBottom,Dr=L(Ut),mr=L(ir),Mr=gt+Dr+mr;H.current.get(Pe)!==Mr&&(H.current.set(Pe,Mr),lt=!0)}}),lt&&ee(function(Me){return Me+1})};if(qe)Et();else{ne.current+=1;var me=ne.current;Promise.resolve().then(function(){me===ne.current&&Et()})}}function be(qe,Et){var me=k(qe),pt=Ce.current.get(me);Et?(Ce.current.set(me,Et),xe()):Ce.current.delete(me),!pt!=!Et&&(Et?nt==null||nt(qe):P==null||P(qe))}return(0,S.useEffect)(function(){return Ge},[]),[be,xe,H.current,x]}var De=14/15;function we(k,nt,P){var m=(0,S.useRef)(!1),d=(0,S.useRef)(0),x=(0,S.useRef)(0),ee=(0,S.useRef)(null),Ce=(0,S.useRef)(null),H,ne=function(qe){if(m.current){var Et=Math.ceil(qe.touches[0].pageX),me=Math.ceil(qe.touches[0].pageY),pt=d.current-Et,lt=x.current-me,Me=Math.abs(pt)>Math.abs(lt);Me?d.current=Et:x.current=me;var Pe=P(Me,Me?pt:lt,!1,qe);Pe&&qe.preventDefault(),clearInterval(Ce.current),Pe&&(Ce.current=setInterval(function(){Me?pt*=De:lt*=De;var gt=Math.floor(Me?pt:lt);(!P(Me,gt,!0)||Math.abs(gt)<=.1)&&clearInterval(Ce.current)},16))}},Ge=function(){m.current=!1,H()},xe=function(qe){H(),qe.touches.length===1&&!m.current&&(m.current=!0,d.current=Math.ceil(qe.touches[0].pageX),x.current=Math.ceil(qe.touches[0].pageY),ee.current=qe.target,ee.current.addEventListener("touchmove",ne,{passive:!1}),ee.current.addEventListener("touchend",Ge,{passive:!0}))};H=function(){ee.current&&(ee.current.removeEventListener("touchmove",ne),ee.current.removeEventListener("touchend",Ge))},(0,z.Z)(function(){return k&&nt.current.addEventListener("touchstart",xe,{passive:!0}),function(){var be;(be=nt.current)===null||be===void 0||be.removeEventListener("touchstart",xe),H(),clearInterval(Ce.current)}},[k])}function He(k){return Math.floor(Math.pow(k,.5))}function ge(k,nt){var P="touches"in k?k.touches[0]:k;return P[nt?"pageX":"pageY"]-window[nt?"scrollX":"scrollY"]}function Le(k,nt,P){S.useEffect(function(){var m=nt.current;if(k&&m){var d=!1,x,ee,Ce=function(){J.Z.cancel(x)},H=function be(){Ce(),x=(0,J.Z)(function(){P(ee),be()})},ne=function(qe){if(!(qe.target.draggable||qe.button!==0)){var Et=qe;Et._virtualHandled||(Et._virtualHandled=!0,d=!0)}},Ge=function(){d=!1,Ce()},xe=function(qe){if(d){var Et=ge(qe,!1),me=m.getBoundingClientRect(),pt=me.top,lt=me.bottom;if(Et<=pt){var Me=pt-Et;ee=-He(Me),H()}else if(Et>=lt){var Pe=Et-lt;ee=He(Pe),H()}else Ce()}};return m.addEventListener("mousedown",ne),m.ownerDocument.addEventListener("mouseup",Ge),m.ownerDocument.addEventListener("mousemove",xe),function(){m.removeEventListener("mousedown",ne),m.ownerDocument.removeEventListener("mouseup",Ge),m.ownerDocument.removeEventListener("mousemove",xe),Ce()}}},[k])}var fe=10;function Ee(k,nt,P,m,d,x,ee,Ce){var H=S.useRef(),ne=S.useState(null),Ge=(0,te.Z)(ne,2),xe=Ge[0],be=Ge[1];return(0,z.Z)(function(){if(xe&&xe.times<fe){if(!k.current){be(function(ri){return(0,R.Z)({},ri)});return}x();var qe=xe.targetAlign,Et=xe.originAlign,me=xe.index,pt=xe.offset,lt=k.current.clientHeight,Me=!1,Pe=qe,gt=null;if(lt){for(var zt=qe||Et,Ut=0,ir=0,Dr=0,mr=Math.min(nt.length-1,me),Mr=0;Mr<=mr;Mr+=1){var Lr=d(nt[Mr]);ir=Ut;var vr=P.get(Lr);Dr=ir+(vr===void 0?m:vr),Ut=Dr}for(var ur=zt==="top"?pt:lt-pt,$r=mr;$r>=0;$r-=1){var cn=d(nt[$r]),Sn=P.get(cn);if(Sn===void 0){Me=!0;break}if(ur-=Sn,ur<=0)break}switch(zt){case"top":gt=ir-pt;break;case"bottom":gt=Dr-lt+pt;break;default:{var nn=k.current.scrollTop,Bn=nn+lt;ir<nn?Pe="top":Dr>Bn&&(Pe="bottom")}}gt!==null&&ee(gt),gt!==xe.lastTop&&(Me=!0)}Me&&be((0,R.Z)((0,R.Z)({},xe),{},{times:xe.times+1,targetAlign:Pe,lastTop:gt}))}},[xe,k.current]),function(qe){if(qe==null){Ce();return}if(J.Z.cancel(H.current),typeof qe=="number")ee(qe);else if(qe&&(0,ue.Z)(qe)==="object"){var Et,me=qe.align;"index"in qe?Et=qe.index:Et=nt.findIndex(function(Me){return d(Me)===qe.key});var pt=qe.offset,lt=pt===void 0?0:pt;be({times:0,index:Et,offset:lt,originAlign:me})}}}var At=S.forwardRef(function(k,nt){var P=k.prefixCls,m=k.rtl,d=k.scrollOffset,x=k.scrollRange,ee=k.onStartMove,Ce=k.onStopMove,H=k.onScroll,ne=k.horizontal,Ge=k.spinSize,xe=k.containerSize,be=k.style,qe=k.thumbStyle,Et=k.showScrollBar,me=S.useState(!1),pt=(0,te.Z)(me,2),lt=pt[0],Me=pt[1],Pe=S.useState(null),gt=(0,te.Z)(Pe,2),zt=gt[0],Ut=gt[1],ir=S.useState(null),Dr=(0,te.Z)(ir,2),mr=Dr[0],Mr=Dr[1],Lr=!m,vr=S.useRef(),ur=S.useRef(),$r=S.useState(Et),cn=(0,te.Z)($r,2),Sn=cn[0],nn=cn[1],Bn=S.useRef(),ri=function(){Et===!0||Et===!1||(clearTimeout(Bn.current),nn(!0),Bn.current=setTimeout(function(){nn(!1)},3e3))},Er=x-xe||0,ni=xe-Ge||0,Li=S.useMemo(function(){if(d===0||Er===0)return 0;var Ni=d/Er;return Ni*ni},[d,Er,ni]),oi=function(ve){ve.stopPropagation(),ve.preventDefault()},Ti=S.useRef({top:Li,dragging:lt,pageY:zt,startTop:mr});Ti.current={top:Li,dragging:lt,pageY:zt,startTop:mr};var Ui=function(ve){Me(!0),Ut(ge(ve,ne)),Mr(Ti.current.top),ee(),ve.stopPropagation(),ve.preventDefault()};S.useEffect(function(){var Ni=function(it){it.preventDefault()},ve=vr.current,Te=ur.current;return ve.addEventListener("touchstart",Ni,{passive:!1}),Te.addEventListener("touchstart",Ui,{passive:!1}),function(){ve.removeEventListener("touchstart",Ni),Te.removeEventListener("touchstart",Ui)}},[]);var Xi=S.useRef();Xi.current=Er;var Ha=S.useRef();Ha.current=ni,S.useEffect(function(){if(lt){var Ni,ve=function(it){var $t=Ti.current,Qt=$t.dragging,Sr=$t.pageY,dr=$t.startTop;J.Z.cancel(Ni);var Hr=vr.current.getBoundingClientRect(),Wr=xe/(ne?Hr.width:Hr.height);if(Qt){var en=(ge(it,ne)-Sr)*Wr,Vr=dr;!Lr&&ne?Vr-=en:Vr+=en;var jr=Xi.current,Yr=Ha.current,mn=Yr?Vr/Yr:0,tn=Math.ceil(mn*jr);tn=Math.max(tn,0),tn=Math.min(tn,jr),Ni=(0,J.Z)(function(){H(tn,ne)})}},Te=function(){Me(!1),Ce()};return window.addEventListener("mousemove",ve,{passive:!0}),window.addEventListener("touchmove",ve,{passive:!0}),window.addEventListener("mouseup",Te,{passive:!0}),window.addEventListener("touchend",Te,{passive:!0}),function(){window.removeEventListener("mousemove",ve),window.removeEventListener("touchmove",ve),window.removeEventListener("mouseup",Te),window.removeEventListener("touchend",Te),J.Z.cancel(Ni)}}},[lt]),S.useEffect(function(){return ri(),function(){clearTimeout(Bn.current)}},[d]),S.useImperativeHandle(nt,function(){return{delayHidden:ri}});var Ji="".concat(P,"-scrollbar"),pi={position:"absolute",visibility:Sn?null:"hidden"},ki={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return ne?(Object.assign(pi,{height:8,left:0,right:0,bottom:0}),Object.assign(ki,(0,Ne.Z)({height:"100%",width:Ge},Lr?"left":"right",Li))):(Object.assign(pi,(0,Ne.Z)({width:8,top:0,bottom:0},Lr?"right":"left",0)),Object.assign(ki,{width:"100%",height:Ge,top:Li})),S.createElement("div",{ref:vr,className:f()(Ji,(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({},"".concat(Ji,"-horizontal"),ne),"".concat(Ji,"-vertical"),!ne),"".concat(Ji,"-visible"),Sn)),style:(0,R.Z)((0,R.Z)({},pi),be),onMouseDown:oi,onMouseMove:ri},S.createElement("div",{ref:ur,className:f()("".concat(Ji,"-thumb"),(0,Ne.Z)({},"".concat(Ji,"-thumb-moving"),lt)),style:(0,R.Z)((0,R.Z)({},ki),qe),onMouseDown:Ui}))}),ft=At,ot=20;function ct(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,P=k/nt*k;return isNaN(P)&&(P=0),P=Math.max(P,ot),Math.floor(P)}var It=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Tt=[],Ht={overflowY:"auto",overflowAnchor:"none"};function pr(k,nt){var P=k.prefixCls,m=P===void 0?"rc-virtual-list":P,d=k.className,x=k.height,ee=k.itemHeight,Ce=k.fullHeight,H=Ce===void 0?!0:Ce,ne=k.style,Ge=k.data,xe=k.children,be=k.itemKey,qe=k.virtual,Et=k.direction,me=k.scrollWidth,pt=k.component,lt=pt===void 0?"div":pt,Me=k.onScroll,Pe=k.onVirtualScroll,gt=k.onVisibleChange,zt=k.innerProps,Ut=k.extraRender,ir=k.styles,Dr=k.showScrollBar,mr=Dr===void 0?"optional":Dr,Mr=(0,V.Z)(k,It),Lr=S.useCallback(function(Yn){return typeof be=="function"?be(Yn):Yn==null?void 0:Yn[be]},[be]),vr=rt(Lr,null,null),ur=(0,te.Z)(vr,4),$r=ur[0],cn=ur[1],Sn=ur[2],nn=ur[3],Bn=!!(qe!==!1&&x&&ee),ri=S.useMemo(function(){return Object.values(Sn.maps).reduce(function(Yn,Nn){return Yn+Nn},0)},[Sn.id,Sn.maps]),Er=Bn&&Ge&&(Math.max(ee*Ge.length,ri)>x||!!me),ni=Et==="rtl",Li=f()(m,(0,Ne.Z)({},"".concat(m,"-rtl"),ni),d),oi=Ge||Tt,Ti=(0,S.useRef)(),Ui=(0,S.useRef)(),Xi=(0,S.useRef)(),Ha=(0,S.useState)(0),Ji=(0,te.Z)(Ha,2),pi=Ji[0],ki=Ji[1],Ni=(0,S.useState)(0),ve=(0,te.Z)(Ni,2),Te=ve[0],ke=ve[1],it=(0,S.useState)(!1),$t=(0,te.Z)(it,2),Qt=$t[0],Sr=$t[1],dr=function(){Sr(!0)},Hr=function(){Sr(!1)},Wr={getKey:Lr};function en(Yn){ki(function(Nn){var _i;typeof Yn=="function"?_i=Yn(Nn):_i=Yn;var xi=qn(_i);return Ti.current.scrollTop=xi,xi})}var Vr=(0,S.useRef)({start:0,end:oi.length}),jr=(0,S.useRef)(),Yr=G(oi,Lr),mn=(0,te.Z)(Yr,1),tn=mn[0];jr.current=tn;var Dn=S.useMemo(function(){if(!Bn)return{scrollHeight:void 0,start:0,end:oi.length-1,offset:void 0};if(!Er){var Yn;return{scrollHeight:((Yn=Ui.current)===null||Yn===void 0?void 0:Yn.offsetHeight)||0,start:0,end:oi.length-1,offset:void 0}}for(var Nn=0,_i,xi,ha,No=oi.length,na=0;na<No;na+=1){var $i=oi[na],ja=Lr($i),Ma=Sn.get(ja),eo=Nn+(Ma===void 0?ee:Ma);eo>=pi&&_i===void 0&&(_i=na,xi=Nn),eo>pi+x&&ha===void 0&&(ha=na),Nn=eo}return _i===void 0&&(_i=0,xi=0,ha=Math.ceil(x/ee)),ha===void 0&&(ha=oi.length-1),ha=Math.min(ha+1,oi.length-1),{scrollHeight:Nn,start:_i,end:ha,offset:xi}},[Er,Bn,pi,oi,nn,x]),Qn=Dn.scrollHeight,ui=Dn.start,Tn=Dn.end,sn=Dn.offset;Vr.current.start=ui,Vr.current.end=Tn,S.useLayoutEffect(function(){var Yn=Sn.getRecord();if(Yn.size===1){var Nn=Array.from(Yn.keys())[0],_i=Yn.get(Nn),xi=oi[ui];if(xi&&_i===void 0){var ha=Lr(xi);if(ha===Nn){var No=Sn.get(Nn),na=No-ee;en(function($i){return $i+na})}}}Sn.resetRecord()},[Qn]);var Kt=S.useState({width:0,height:x}),Zt=(0,te.Z)(Kt,2),qt=Zt[0],er=Zt[1],Jt=function(Nn){er({width:Nn.offsetWidth,height:Nn.offsetHeight})},Qr=(0,S.useRef)(),kr=(0,S.useRef)(),Gr=S.useMemo(function(){return ct(qt.width,me)},[qt.width,me]),Mn=S.useMemo(function(){return ct(qt.height,Qn)},[qt.height,Qn]),Pn=Qn-x,si=(0,S.useRef)(Pn);si.current=Pn;function qn(Yn){var Nn=Yn;return Number.isNaN(si.current)||(Nn=Math.min(Nn,si.current)),Nn=Math.max(Nn,0),Nn}var bi=pi<=0,Jn=pi>=Pn,Hn=Te<=0,on=Te>=me,mi=se(bi,Jn,Hn,on),Ln=function(){return{x:ni?-Te:Te,y:pi}},ei=(0,S.useRef)(Ln()),vi=(0,h.useEvent)(function(Yn){if(Pe){var Nn=(0,R.Z)((0,R.Z)({},Ln()),Yn);(ei.current.x!==Nn.x||ei.current.y!==Nn.y)&&(Pe(Nn),ei.current=Nn)}});function Ei(Yn,Nn){var _i=Yn;Nn?((0,_.flushSync)(function(){ke(_i)}),vi()):en(_i)}function Xn(Yn){var Nn=Yn.currentTarget.scrollTop;Nn!==pi&&en(Nn),Me==null||Me(Yn),vi()}var Bi=function(Nn){var _i=Nn,xi=me?me-qt.width:0;return _i=Math.max(_i,0),_i=Math.min(_i,xi),_i},ra=(0,h.useEvent)(function(Yn,Nn){Nn?((0,_.flushSync)(function(){ke(function(_i){var xi=_i+(ni?-Yn:Yn);return Bi(xi)})}),vi()):en(function(_i){var xi=_i+Yn;return xi})}),ii=he(Bn,bi,Jn,Hn,on,!!me,ra),An=(0,te.Z)(ii,2),rn=An[0],Un=An[1];we(Bn,Ti,function(Yn,Nn,_i,xi){var ha=xi;return mi(Yn,Nn,_i)?!1:!ha||!ha._virtualHandled?(ha&&(ha._virtualHandled=!0),rn({preventDefault:function(){},deltaX:Yn?Nn:0,deltaY:Yn?0:Nn}),!0):!1}),Le(Er,Ti,function(Yn){en(function(Nn){return Nn+Yn})}),(0,z.Z)(function(){function Yn(_i){var xi=bi&&_i.detail<0,ha=Jn&&_i.detail>0;Bn&&!xi&&!ha&&_i.preventDefault()}var Nn=Ti.current;return Nn.addEventListener("wheel",rn,{passive:!1}),Nn.addEventListener("DOMMouseScroll",Un,{passive:!0}),Nn.addEventListener("MozMousePixelScroll",Yn,{passive:!1}),function(){Nn.removeEventListener("wheel",rn),Nn.removeEventListener("DOMMouseScroll",Un),Nn.removeEventListener("MozMousePixelScroll",Yn)}},[Bn,bi,Jn]),(0,z.Z)(function(){if(me){var Yn=Bi(Te);ke(Yn),vi({x:Yn})}},[qt.width,me]);var xn=function(){var Nn,_i;(Nn=Qr.current)===null||Nn===void 0||Nn.delayHidden(),(_i=kr.current)===null||_i===void 0||_i.delayHidden()},jn=Ee(Ti,oi,Sn,ee,Lr,function(){return cn(!0)},en,xn);S.useImperativeHandle(nt,function(){return{nativeElement:Xi.current,getScrollInfo:Ln,scrollTo:function(Nn){function _i(xi){return xi&&(0,ue.Z)(xi)==="object"&&("left"in xi||"top"in xi)}_i(Nn)?(Nn.left!==void 0&&ke(Bi(Nn.left)),jn(Nn.top)):jn(Nn)}}}),(0,z.Z)(function(){if(gt){var Yn=oi.slice(ui,Tn+1);gt(Yn,oi)}},[ui,Tn,oi]);var ci=Oe(oi,Lr,Sn,ee),wi=Ut==null?void 0:Ut({start:ui,end:Tn,virtual:Er,offsetX:Te,offsetY:sn,rtl:ni,getSize:ci}),Aa=Y(oi,ui,Tn,me,Te,$r,xe,Wr),Yi=null;x&&(Yi=(0,R.Z)((0,Ne.Z)({},H?"height":"maxHeight",x),Ht),Bn&&(Yi.overflowY="hidden",me&&(Yi.overflowX="hidden"),Qt&&(Yi.pointerEvents="none")));var ao={};return ni&&(ao.dir="rtl"),S.createElement("div",(0,pe.Z)({ref:Xi,style:(0,R.Z)((0,R.Z)({},ne),{},{position:"relative"}),className:Li},ao,Mr),S.createElement(E.Z,{onResize:Jt},S.createElement(lt,{className:"".concat(m,"-holder"),style:Yi,ref:Ti,onScroll:Xn,onMouseEnter:xn},S.createElement(Q,{prefixCls:m,height:Qn,offsetX:Te,offsetY:sn,scrollWidth:me,onInnerResize:cn,ref:Ui,innerProps:zt,rtl:ni,extra:wi},Aa))),Er&&Qn>x&&S.createElement(ft,{ref:Qr,prefixCls:m,scrollOffset:pi,scrollRange:Qn,rtl:ni,onScroll:Ei,onStartMove:dr,onStopMove:Hr,spinSize:Mn,containerSize:qt.height,style:ir==null?void 0:ir.verticalScrollBar,thumbStyle:ir==null?void 0:ir.verticalScrollBarThumb,showScrollBar:mr}),Er&&me>qt.width&&S.createElement(ft,{ref:kr,prefixCls:m,scrollOffset:Te,scrollRange:me,rtl:ni,onScroll:Ei,onStartMove:dr,onStopMove:Hr,spinSize:Gr,containerSize:qt.width,horizontal:!0,style:ir==null?void 0:ir.horizontalScrollBar,thumbStyle:ir==null?void 0:ir.horizontalScrollBarThumb,showScrollBar:mr}))}var sr=S.forwardRef(pr);sr.displayName="List";var Br=sr,fr=Br},45614:function(bn){"use strict";bn.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(bn){"use strict";bn.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(bn,Xt,w){"use strict";var pe=Object.defineProperty,ue=Object.defineProperties,R=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,B=(e,t,r)=>t in e?pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f=(e,t)=>{for(var r in t||(t={}))te.call(t,r)&&B(e,r,t[r]);if(Ne)for(var r of Ne(t))V.call(t,r)&&B(e,r,t[r]);return e},E=(e,t)=>ue(e,R(t)),h=e=>typeof e=="symbol"?e:e+"",z=(e,t)=>{var r={};for(var n in e)te.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ne)for(var n of Ne(e))t.indexOf(n)<0&&V.call(e,n)&&(r[n]=e[n]);return r};function S(e){return Array.isArray(e)}var _={en:{"keyboard.tooltip.symbols":"\u7B26\u53F7","keyboard.tooltip.greek":"\u5E0C\u814A\u5B57\u6BCD","keyboard.tooltip.numeric":"\u6570\u5B57","keyboard.tooltip.alphabetic":"\u7F57\u9A6C\u5B57\u6BCD","tooltip.cut to clipboard":"\u526A\u5207\u5230\u526A\u8D34\u677F","tooltip.copy to clipboard":"\u590D\u5236\u5230\u526A\u8D34\u677F","tooltip.paste from clipboard":"\u7C98\u8D34","tooltip.redo":"\u91CD\u505A","tooltip.toggle virtual keyboard":"\u5207\u6362\u865A\u62DF\u952E\u76D8","tooltip.undo":"\u64A4\u6D88","menu.insert matrix":"\u63D2\u5165\u77E9\u9635","menu.borders":"\u77E9\u9635\u5206\u9694\u7B26","menu.array.add row above":"\u5728\u540E\u9762\u6DFB\u52A0\u884C","menu.array.add row below":"\u5728\u524D\u9762\u6DFB\u52A0\u884C","menu.array.add column after":"\u5728\u540E\u9762\u6DFB\u52A0\u5217r","menu.array.add column before":"\u5728\u524D\u9762\u6DFB\u52A0\u5217","menu.array.delete row":"\u5220\u9664\u884C","menu.array.delete rows":"\u5220\u9664\u9009\u5B9A\u884C","menu.array.delete column":"\u5220\u9664\u5217","menu.array.delete columns":"\u5220\u9664\u9009\u5B9A\u7684\u5217","menu.mode":"\u6A21\u5F0F","menu.mode-math":"\u6570\u5B66","menu.mode-text":"\u6587\u672C","menu.mode-latex":"LaTeX","tooltip.blackboard":"\u9ED1\u677F","tooltip.bold":"\u7C97\u4F53","tooltip.italic":"\u659C\u4F53","tooltip.fraktur":"Fraktur","tooltip.script":"\u811A\u672C","tooltip.caligraphic":"\u8349\u4E66","tooltip.typewriter":"\u6253\u5B57\u673A","tooltip.roman-upright":"\u7F57\u9A6C\u76F4\u7ACB","tooltip.row-by-col":"%@ \xD7 %@","menu.font-style":"\u5B57\u4F53\u6837\u5F0F","menu.accent":"\u91CD\u97F3","menu.decoration":"\u88C5\u9970","menu.color":"\u989C\u8272","menu.background-color":"\u80CC\u666F","menu.evaluate":"\u8BA1\u7B97","menu.simplify":"\u7B80\u5316","menu.solve":"\u6C42\u89E3","menu.solve-for":"\u6C42\u89E3 %@","menu.cut":"\u526A\u5207","menu.copy":"\u590D\u5236","menu.copy-as-latex":"\u590D\u5236\u4E3A LaTeX","menu.copy-as-ascii-math":"\u590D\u5236\u4E3A ASCII Math","menu.copy-as-mathml":"\u590D\u5236\u4E3A MathML","menu.paste":"\u7C98\u8D34","menu.select-all":"\u5168\u9009","color.red":"\u7EA2\u8272","color.orange":"\u6A59\u8272","color.yellow":"\u9EC4\u8272","color.lime":"\u7EFF\u9EC4\u8272","color.green":"\u7EFF\u8272","color.teal":"\u9752\u8272","color.cyan":"\u84DD\u7EFF\u8272","color.blue":"\u84DD\u8272","color.indigo":"\u975B\u84DD\u8272","color.purple":"\u7D2B\u8272","color.magenta":"\u6D0B\u7EA2\u8272","color.black":"\u9ED1\u8272","color.dark-grey":"\u6DF1\u7070\u8272","color.grey":"\u7070\u8272","color.light-grey":"\u6D45\u7070\u8272","color.white":"\u767D\u8272"}};function N(){return"window"in globalThis&&"document"in globalThis}function Q(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function I(){return typeof navigator.vibrate=="function"}function Y(){var e,t;if(!N())return"other";const r=(t=(e=navigator.userAgentData)==null?void 0:e.platform)!=null?t:navigator.platform;return/^mac/i.test(r)?navigator.maxTouchPoints===5?"ios":"macos":/^win/i.test(r)?"windows":/android/i.test(navigator.userAgent)?"android":/iphone|ipod|ipad/i.test(navigator.userAgent)?"ios":/\bcros\b/i.test(navigator.userAgent)?"chromeos":"other"}function K(){if(!N())return!0;if(/firefox/i.test(navigator.userAgent)){const e=navigator.userAgent.match(/firefox\/(\d+)/i);return e?parseInt(e[1])>=78:!1}if(/trident/i.test(navigator.userAgent))return!1;if(/edge/i.test(navigator.userAgent)){const e=navigator.userAgent.match(/edg\/(\d+)/i);return e?parseInt(e[1])>=79:!1}return!0}function ce(){return HTMLElement.prototype.hasOwnProperty("popover")}var G={strings:_,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return G._locale||(G._locale=N()?navigator.language.slice(0,5):"en-US"),G._locale},set locale(e){G._locale=e,G._numberFormatter=void 0,G.dirty=!0},get numberFormatter(){return G._numberFormatter||(G._numberFormatter=new Intl.NumberFormat(G.locale)),G._numberFormatter},merge(e,t){if(typeof e=="string"&&t)G.strings[e]=f(f({},G.strings[e]),t),G.dirty=!0;else for(const r of Object.keys(e))G.merge(r,e[r])},get dirty(){return G._dirty},set dirty(e){G._dirty||G._dirty===e||(G._dirty=!0,setTimeout(()=>{G._dirty=!1,this._subscribers.forEach(t=>t==null?void 0:t())},0))},subscribe(e){return G._subscribers.push(e),G._subscribers.length-1},unsubscribe(e){e<0||e>=G._subscribers.length||(G._subscribers[e]=void 0)},update(e){let t=e.querySelectorAll("[data-l10n-tooltip]");for(const r of t){const n=r.getAttribute("data-l10n-tooltip");if(n){const i=J(n);i&&r.setAttribute("data-tooltip",i)}}t=e.querySelectorAll("[data-l10n-arial-label]");for(const r of t){const n=r.getAttribute("data-l10n-arial-label");if(n){const i=J(n);i&&r.setAttribute("aria-label",i)}}}};function J(e,...t){if(e===void 0)return;let r="";const n=G.locale;G.strings[n]&&(r=G.strings[n][e]);const i=n.slice(0,2);if(!r&&G.strings[i]&&(r=G.strings[i][e]),r||(r=G.strings.en[e]),!r)return;const s=/(%@|%([0-9]+)\$@)/g;let A=s.exec(r),M=0;for(;A;){if(t[M++]){const q=A[2]?parseInt(A[2],10)-1:M-1;let Ae=t[q];typeof Ae=="number"&&(Ae=G.numberFormatter.format(Ae)),r=r.replace(A[1],Ae)}A=s.exec(r)}return r=r.replace(/%%/g,"%"),r}var W={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},j={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},se={red:"#fbbbb6",orange:"#ffe0c2",yellow:"#fff1c2",lime:"#d0e8b9",green:"#bceac4",teal:"#b9f1f1",cyan:"#b8e5c9",blue:"#b6d9fb",indigo:"#d1c2f0",purple:"#e3baf8",magenta:"#f9c8e0",black:"#353535","dark-grey":"#8C8C8C",grey:"#D0D0D0","light-grey":"#F0F0F0",white:"#ffffff"},he={red:"#d7170b",orange:"#fe8a2b",yellow:"#ffc02b",lime:"#63b215",green:"#21ba3a",teal:"#17cfcf",cyan:"#13a7ec",blue:"#0d80f2",indigo:"#63c",purple:"#a219e6",magenta:"#eb4799",black:"#000","dark-grey":"#666",grey:"#A6A6A6","light-grey":"#d4d5d2",white:"#ffffff"},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"},Be={Apricot:"#FBB982",Aquamarine:"#00B5BE",Bittersweet:"#C04F17",Black:"#221E1F",Blue:"#2D2F92",BlueGreen:"#00B3B8",BlueViolet:"#473992",BrickRed:"#B6321C",Brown:"#792500",BurntOrange:"#F7921D",CadetBlue:"#74729A",CarnationPink:"#F282B4",Cerulean:"#00A2E3",CornflowerBlue:"#41B0E4",Cyan:"#00AEEF",Dandelion:"#FDBC42",DarkOrchid:"#A4538A",Emerald:"#00A99D",ForestGreen:"#009B55",Fuchsia:"#8C368C",Goldenrod:"#FFDF42",Gray:"#949698",Green:"#00A64F",GreenYellow:"#DFE674",JungleGreen:"#00A99A",Lavender:"#F49EC4",Limegreen:"#8DC73E",Magenta:"#EC008C",Mahogany:"#A9341F",Maroon:"#AF3235",Melon:"#F89E7B",MidnightBlue:"#006795",Mulberry:"#A93C93",NavyBlue:"#006EB8",OliveGreen:"#3C8031",Orange:"#F58137",OrangeRed:"#ED135A",Orchid:"#AF72B0",Peach:"#F7965A",Periwinkle:"#7977B8",PineGreen:"#008B72",Plum:"#92268F",ProcessBlue:"#00B0F0",Purple:"#99479B",RawSienna:"#974006",Red:"#ED1B23",RedOrange:"#F26035",RedViolet:"#A1246B",Rhodamine:"#EF559F",RoyalBlue:"#0071BC",RoyalPurple:"#613F99",RubineRed:"#ED017D",Salmon:"#F69289",SeaGreen:"#3FBC9D",Sepia:"#671800",SkyBlue:"#46C5DD",SpringGreen:"#C6DC67",Tan:"#DA9D76",TealBlue:"#00AEB3",Thistle:"#D883B7",Turquoise:"#00B4CE",Violet:"#58429B",VioletRed:"#EF58A0",White:"#FFFFFF",WildStrawberry:"#EE2967",Yellow:"#FFF200",YellowGreen:"#98CC70",YellowOrange:"#FAA21A"};function je(e){var t,r,n,i,s,A;const M=e.split("!");let $,q,Ae,Qe=255,ut=255,Ft=255,Nt=-1;const Fr=M.length>0&&M[0].startsWith("-");Fr&&(M[0]=M[0].slice(1));for(let In=0;In<M.length;In++){$=Qe,q=ut,Ae=Ft;const Cr=(t=M[In].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:t[1],an=Cr==null?void 0:Cr.toLowerCase(),Rn=Cr&&(A=(s=(i=(n=(r=he[an])!=null?r:he[Oe[Cr]])!=null?n:j[Cr])!=null?i:Be[Cr])!=null?s:W[Cr])!=null?A:M[In].trim();let pn=Rn.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(pn!=null&&pn[1]&&pn[2]&&pn[3])Qe=Math.max(0,Math.min(255,Number.parseInt(pn[1],16))),ut=Math.max(0,Math.min(255,Number.parseInt(pn[2],16))),Ft=Math.max(0,Math.min(255,Number.parseInt(pn[3],16)));else if(pn=Rn.match(/^#([\da-f]{3})$/i),pn!=null&&pn[1]){const Ci=Number.parseInt(pn[1][0],16),ji=Number.parseInt(pn[1][1],16),Oi=Number.parseInt(pn[1][2],16);Qe=Math.max(0,Math.min(255,Ci*16+Ci)),ut=Math.max(0,Math.min(255,ji*16+ji)),Ft=Math.max(0,Math.min(255,Oi*16+Oi))}else if(pn=Rn.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),pn!=null&&pn[1]&&pn[2]&&pn[3])Qe=Math.max(0,Math.min(255,Number.parseInt(pn[1]))),ut=Math.max(0,Math.min(255,Number.parseInt(pn[2]))),Ft=Math.max(0,Math.min(255,Number.parseInt(pn[3])));else return;Nt>=0&&(Qe=(1-Nt)*Qe+Nt*$,ut=(1-Nt)*ut+Nt*q,Ft=(1-Nt)*Ft+Nt*Ae,Nt=-1),In+1<M.length&&(Nt=Math.max(0,Math.min(100,Number.parseInt(M[++In])))/100)}return Nt>=0&&(Qe=Nt*Qe+(1-Nt)*$,ut=Nt*ut+(1-Nt)*q,Ft=Nt*Ft+(1-Nt)*Ae),Fr&&(Qe=255-Qe,ut=255-ut,Ft=255-Ft),"#"+("00"+Math.round(Qe).toString(16)).slice(-2)+("00"+Math.round(ut).toString(16)).slice(-2)+("00"+Math.round(Ft).toString(16)).slice(-2)}function X(e){var t,r;return e=e.trim(),(r=(t=se[e.toLowerCase()])!=null?t:se[Oe[e]])!=null?r:je(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 L(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 rt(e){let[t,r,n]=[e.h,e.s,e.l];t=(t+360)%360/60,n=Math.max(0,Math.min(n,1)),r=Math.max(0,Math.min(r,1));const i=n<=.5?n*(r+1):n+r-n*r,s=n*2-i;return{r:Math.round(255*L(s,i,t+2)),g:Math.round(255*L(s,i,t)),b:Math.round(255*L(s,i,t-2))}}function De(e){return e<0?0:e>255?255:Math.round(e)}function we(e){const{r:t,g:r,b:n}=e;let i=((1<<24)+(De(t)<<16)+(De(r)<<8)+De(n)).toString(16).slice(1);return i[0]===i[1]&&i[2]===i[3]&&i[4]===i[5]&&i[6]===i[7]&&(i=i[0]+i[2]+i[4]),"#"+i}function He(e){let{r:t,g:r,b:n}=e;t=t/255,r=r/255,n=n/255;const i=Math.min(t,r,n),s=Math.max(t,r,n),A=s-i;let M,$;s===i?M=0:t===s?M=(r-n)/A:r===s?M=2+(n-t)/A:n===s&&(M=4+(t-r)/A),M=Math.min(M*60,360),M<0&&(M+=360);const q=(i+s)/2;return s===i?$=0:q<=.5?$=A/(s+i):$=A/(2-s-i),{h:M,s:$,l:q}}function ge(e){let t=de(e);if(!t)return e;let{h:r,s:n,l:i}=He(t);return n+=.1,i-=.1,we(rt({h:r,s:n,l:i}))}var Le={60:"\\lt",62:"\\gt",111:"o",38:"\\&",123:"\\lbrace",125:"\\rbrace",91:"\\lbrack",93:"\\rbrack",58:"\\colon",160:"~",172:"\\neg",183:"\\cdot",188:"\\frac{1}{4}",189:"\\frac{1}{2}",190:"\\frac{3}{4}",8304:"^{0}",8305:"^{i}",185:"^{1}",178:"^{2}",179:"^{3}",8224:"\\dagger",8225:"\\ddagger",8230:"\\ldots",8308:"^{4}",8309:"^{5}",8310:"^{6}",8311:"^{7}",8312:"^{8}",8313:"^{9}",8314:"^{+}",8315:"^{-}",8316:"^{=}",8319:"^{n}",8320:"_{0}",8321:"_{1}",8322:"_{2}",8323:"_{3}",8324:"_{4}",8325:"_{5}",8326:"_{6}",8327:"_{7}",8328:"_{8}",8329:"_{9}",8330:"_{+}",8331:"_{-}",8332:"_{=}",8336:"_{a}",8337:"_{e}",8338:"_{o}",8339:"_{x}",8242:"\\prime",39:"\\prime",8592:"\\gets",8594:"\\to",9651:"\\triangle",9661:"\\triangledown",8715:"\\owns",8727:"\\ast",8739:"\\vert",8741:"\\Vert",8743:"\\land",8744:"\\lor",8901:"\\cdot",8904:"\\bowtie",8800:"\\ne",8804:"\\le",8805:"\\ge",8869:"\\bot",10231:"\\biconditional",10232:"\\impliedby",10233:"\\implies",10234:"\\iff",8450:"\\mathbb{C}",8469:"\\mathbb{N}",8473:"\\mathbb{P}",8474:"\\mathbb{Q}",8477:"\\mathbb{R}",8484:"\\mathbb{Z}",8461:"\\mathbb{H}",8476:"\\Re",8465:"\\Im",42:"\\ast",11036:"\\square",9633:"\\square",8720:"\\coprod",8716:"\\not\\ni",9671:"\\diamond",8846:"\\uplus",8851:"\\sqcap",8852:"\\sqcup",8768:"\\wr",8750:"\\oint",8226:"\\textbullet",8722:"-",978:"\\Upsilon"},fe={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},Ee=[{start:119808,len:26,offset:65,style:"bold"},{start:119834,len:26,offset:97,style:"bold"},{start:119860,len:26,offset:65,style:"italic"},{start:119886,len:26,offset:97,style:"italic"},{start:119912,len:26,offset:65,style:"bolditalic"},{start:119938,len:26,offset:97,style:"bolditalic"},{start:119964,len:26,offset:65,variant:"script"},{start:119990,len:26,offset:97,variant:"script"},{start:120016,len:26,offset:65,variant:"script",style:"bold"},{start:120042,len:26,offset:97,variant:"script",style:"bold"},{start:120068,len:26,offset:65,variant:"fraktur"},{start:120094,len:26,offset:97,variant:"fraktur"},{start:120172,len:26,offset:65,variant:"fraktur",style:"bold"},{start:120198,len:26,offset:97,variant:"fraktur",style:"bold"},{start:120120,len:26,offset:65,variant:"double-struck"},{start:120146,len:26,offset:97,variant:"double-struck"},{start:120224,len:26,offset:65,variant:"sans-serif"},{start:120250,len:26,offset:97,variant:"sans-serif"},{start:120276,len:26,offset:65,variant:"sans-serif",style:"bold"},{start:120302,len:26,offset:97,variant:"sans-serif",style:"bold"},{start:120328,len:26,offset:65,variant:"sans-serif",style:"italic"},{start:120354,len:26,offset:97,variant:"sans-serif",style:"italic"},{start:120380,len:26,offset:65,variant:"sans-serif",style:"bolditalic"},{start:120406,len:26,offset:97,variant:"sans-serif",style:"bolditalic"},{start:120432,len:26,offset:65,variant:"monospace"},{start:120458,len:26,offset:97,variant:"monospace"},{start:120488,len:25,offset:913,style:"bold"},{start:120514,len:25,offset:945,style:"bold"},{start:120546,len:25,offset:913,style:"italic"},{start:120572,len:25,offset:945,style:"italic"},{start:120604,len:25,offset:913,style:"bolditalic"},{start:120630,len:25,offset:945,style:"bolditalic"},{start:120662,len:25,offset:913,variant:"sans-serif",style:"bold"},{start:120688,len:25,offset:945,variant:"sans-serif",style:"bold"},{start:120720,len:25,offset:913,variant:"sans-serif",style:"bolditalic"},{start:120746,len:25,offset:945,variant:"sans-serif",style:"bolditalic"},{start:120782,len:10,offset:48,variant:"main",style:"bold"},{start:120792,len:10,offset:48,variant:"double-struck"},{start:120803,len:10,offset:48,variant:"sans-serif"},{start:120812,len:10,offset:48,variant:"sans-serif",style:"bold"},{start:120822,len:10,offset:48,variant:"monospace"}];function At(e,t,r){if(!/[A-Za-z\d]/.test(e)||(r==="up"&&(r=void 0),!t&&!r))return e;const n=e.codePointAt(0);if(n===void 0)return e;for(const i of Ee)if((!t||i.variant===t)&&(!r||i.style===r)&&n>=i.offset&&n<i.offset+i.len){const s=i.start+n-i.offset;return String.fromCodePoint(fe[s]||s)}return e}function ft(e){var t;if((e<119808||e>120831)&&(e<8448||e>8527))return{char:String.fromCodePoint(e)};for(const r in fe)if(fe[r]===e){e=(t=r.codePointAt(0))!=null?t:0;break}for(const r of Ee)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 ot(e){var t;let r="";for(const n of e){if("{}<>[]$&#^_%:'\u02DC".includes(n)){r+=n;continue}const i=(t=n.codePointAt(0))!=null?t:0;let s=Le[i];if(s)s.startsWith("\\")?r+=s+" ":r+=s;else{const{char:A,variant:M,style:$}=ft(i);switch(s=A,M){case"double-struck":s=`\\mathbb{${s}}`;break;case"fraktur":s=`\\mathfrak{${s}}`;break;case"script":s=`\\mathscr{${s}}`;break;case"sans-serif":s=`\\mathsf{${s}}`;break;case"monospace":s=`\\mathtt{${s}}`;break;case"calligraphic":s=`\\mathcal{${s}}`;break}switch($){case"bold":s=`\\mathbf{${s}}`;break;case"italic":s=`\\mathit{${s}}`;break;case"bolditalic":s=`\\mathbfit{${s}}`;break}r+=s}}return r}function ct(e){return e?Array.isArray(e)?e:typeof e=="object"&&"group"in e?e.group:[]:[]}var It={},Tt=f({},Le),Ht={},pr={},sr={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}},fr={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}},k={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:fr},"amsmath.sty":{package:Br,primitive:!0},"texvc.sty":{package:sr,primitive:!1}},nt={" ":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},P=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,m,d;K()?(m=new RegExp("\\p{Letter}","u"),d=new RegExp("[0-9\\p{Letter}]","u")):(m=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,d=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function x(e,t,r="mord",n){t!==void 0&&(It[e]={definitionType:"symbol",type:r,variant:n,codepoint:t},Tt[t]||(Tt[t]=e))}function ee(e,t,r){if(typeof e=="string"){for(let n=0;n<e.length;n++){const i=e.charAt(n);x(i,i.codePointAt(0))}return}for(const[n,i,s,A]of e)x(n,i,s!=null?s:t,A!=null?A:r)}function Ce(e,t){for(let r=e;r<=t;r++)x(String.fromCodePoint(r),r)}function H(e){var t;return(t=pr[e])!=null?t:null}function ne(e,t){var r,n;if(t.length===0||t==="\\"||!t.startsWith("\\"))return[];const i=[];for(const A in Ht)A.startsWith(t)&&!Ht[A].infix&&i.push({match:A,frequency:(r=Ht[A].frequency)!=null?r:0});for(const A in It)A.startsWith(t)&&i.push({match:A,frequency:(n=It[A].frequency)!=null?n:0});const s=t.substring(1);for(const A of Object.keys(e.options.macros))A.startsWith(s)&&i.push({match:"\\"+A,frequency:0});return i.sort((A,M)=>{var $,q;return A.frequency===M.frequency?A.match.length===M.match.length?A.match<M.match?-1:1:A.match.length-M.match.length:(($=M.frequency)!=null?$:0)-((q=A.frequency)!=null?q:0)}),i.map(A=>A.match)}function Ge(e){let t="auto";const r=e.match(/:([^=]+)/);return r&&(t=r[1].trim()),t}function xe(e){if(!e)return[];const t=[];let r=e.split("]");if(r[0].startsWith("[")){t.push({isOptional:!0,type:Ge(r[0].slice(1))});for(let n=1;n<=r.length;n++)t.push(...xe(r[n]))}else if(r=e.split("}"),r[0].startsWith("{")){t.push({isOptional:!1,type:Ge(r[0].slice(1))});for(let n=1;n<=r.length;n++)t.push(...xe(r[n]))}return t}function be(e){if(!e)return"";let t="",r=!0;for(const n of e)typeof n.value=="string"?t+=n.value:r=!1;return r?t:""}function qe(e,t){typeof e=="string"&&(e=[e]);const r={tabular:!1,params:[],createAtom:t};for(const n of e)pr[n]=r}function Et(e,t,r){typeof e=="string"&&(e=[e]);const i={tabular:!0,params:xe(t),createAtom:r};for(const s of e)pr[s]=i}function me(e,t,r){var n,i;r||(r={});const s={definitionType:"function",params:xe(t),ifMode:r.ifMode,isFunction:(n=r.isFunction)!=null?n:!1,applyMode:r.applyMode,infix:(i=r.infix)!=null?i:!1,parse:r.parse,createAtom:r.createAtom,applyStyle:r.applyStyle,serialize:r.serialize,render:r.render};if(typeof e=="string")Ht["\\"+e]=s;else for(const A of e)Ht["\\"+A]=s}var pt;function lt(e){return pt||(pt=Pe(k)),e?Pe(f(f({},pt),e)):pt}function Me(e,t){var r,n,i,s;if(typeof e=="string"){let A=0;const M=e;return/(^|[^\\])#1/.test(M)&&(A=1),/(^|[^\\])#2/.test(M)&&(A=2),/(^|[^\\])#3/.test(M)&&(A=3),/(^|[^\\])#4/.test(M)&&(A=4),/(^|[^\\])#5/.test(M)&&(A=5),/(^|[^\\])#6/.test(M)&&(A=6),/(^|[^\\])#7/.test(M)&&(A=7),/(^|[^\\])#8/.test(M)&&(A=8),/(^|[^\\])#9/.test(M)&&(A=9),{expand:(r=t==null?void 0:t.expand)!=null?r:!0,captureSelection:(n=t==null?void 0:t.captureSelection)!=null?n:!0,args:A,def:M}}return f({expand:(i=t==null?void 0:t.expand)!=null?i:!0,captureSelection:(s=t==null?void 0:t.captureSelection)!=null?s:!0,args:0},e)}function Pe(e){if(!e)return{};const t={};for(const r of Object.keys(e)){const n=e[r];if(n==null)delete t[r];else if(typeof n=="object"&&"package"in n)for(const i of Object.keys(n.package))t[i]=Me(n.package[i],{expand:!n.primitive,captureSelection:n.captureSelection});else t[r]=Me(n)}return t}function gt(e,t="math"){if(!e||e.length===0)return null;let r=null;if(e.startsWith("\\")){if(r=Ht[e],r)return!r.ifMode||r.ifMode===t?r:null;t==="math"?r=It[e]:nt[e]&&(r={definitionType:"symbol",type:"mord",codepoint:nt[e]})}else if(t==="math"){if(r=It[e],!r&&e.length===1){const n=Ut("math",e.codePointAt(0));return n.startsWith("\\")?E(f({},gt(n,"math")),{command:n}):null}}else nt[e]?r={definitionType:"symbol",type:"mord",codepoint:nt[e]}:t==="text"&&(r={definitionType:"symbol",type:"mord",codepoint:e.codePointAt(0)});return r!=null?r:null}function zt(e,t){if(!e.startsWith("\\"))return null;const r=e.slice(1);return t[r]}function Ut(e,t){if(t===void 0)return"";if(e==="math"&&Tt[t])return Tt[t];if(e==="text"){const r=Object.keys(nt).find(n=>nt[n]===t);return r||String.fromCodePoint(t)}return String.fromCodePoint(t)}var ir=[0,.68889,0,0,.72222],Dr=[0,.68889,0,0,.66667],mr=[0,.68889,0,0,.77778],Mr=[0,.68889,0,0,.61111],Lr=[.16667,.68889,0,0,.77778],vr=[0,.68889,0,0,.55556],ur=[0,0,0,0,.25],$r=[0,.825,0,0,2.33334],cn=[0,.9,0,0,2.33334],Sn=[0,.68889,0,0,.54028],nn=[-.03598,.46402,0,0,.5],Bn=[-.13313,.36687,0,0,1],ri=[.01354,.52239,0,0,1],Er=[.01354,.52239,0,0,1.11111],ni=[0,.54986,0,0,1],Li=[0,.69224,0,0,.5],oi=[0,.43056,0,0,1],Ti=[.08198,.58198,0,0,.77778],Ui=[.19444,.69224,0,0,.41667],Xi=[.1808,.675,0,0,1],Ha=[.19444,.69224,0,0,.83334],Ji=[.13667,.63667,0,0,1],pi=[-.064,.437,0,0,1.334],ki=[.08167,.58167,0,0,.77778],Ni=[0,.69224,0,0,.72222],ve=[0,.69224,0,0,.66667],Te=[-.13313,.36687,0,0,.77778],ke=[.06062,.54986,0,0,.77778],it=[0,.69224,0,0,.77778],$t=[.25583,.75583,0,0,.77778],Qt=[.25142,.75726,0,0,.77778],Sr=[.20576,.70576,0,0,.77778],dr=[.30274,.79383,0,0,.77778],Hr=[.22958,.72958,0,0,.77778],Wr=[.1808,.675,0,0,.77778],en=[.13667,.63667,0,0,.77778],Vr=[.13597,.63597,0,0,.77778],jr=[.03517,.54986,0,0,.77778],Yr=[0,.675,0,0,.77778],mn=[.19444,.69224,0,0,.61111],tn=[0,.54986,0,0,.76042],Dn=[0,.54986,0,0,.66667],Qn=[.0391,.5391,0,0,.77778],ui=[.03517,.54986,0,0,1.33334],Tn=[.38569,.88569,0,0,.77778],sn=[.23222,.74111,0,0,.77778],Kt=[.19444,.69224,0,0,.77778],Zt=[0,.37788,0,0,.5],qt=[0,.54986,0,0,.72222],er=[0,.69224,0,0,.83334],Jt=[.11111,.69224,0,0,.66667],Qr=[.26167,.75726,0,0,.77778],kr=[.48256,.98256,0,0,.77778],Gr=[.28481,.79383,0,0,.77778],Mn=[.08167,.58167,0,0,.22222],Pn=[.08167,.58167,0,0,.38889],si=[0,.43056,.04028,0,.66667],qn=[.41951,.91951,0,0,.77778],bi=[.24982,.74947,0,0,.38865],Jn=[.08319,.58283,0,0,.75623],Hn=[0,.10803,0,0,.27764],on=[0,.47534,0,0,.50181],mi=[.18906,.47534,0,0,.50181],Ln=[0,.69141,0,0,.50181],ei=[.24982,.74947,0,0,.27764],vi=[0,.69141,0,0,.21471],Ei=[.25,.75,0,0,.44722],Xn=[0,.64444,0,0,.575],Bi=[.08556,.58556,0,0,.89444],ra=[0,.69444,0,0,.89444],ii=[0,.68611,0,0,.9],An=[0,.68611,0,0,.86944],rn=[.25,.75,0,0,.575],Un=[.25,.75,0,0,.31944],xn=[0,.69444,0,0,.63889],jn=[0,.69444,0,0,.31944],ci=[0,.44444,0,0,.63889],wi=[0,.44444,0,0,.51111],Aa=[0,.69444,0,0,.575],Yi=[.13333,.63333,0,0,.89444],ao=[0,.44444,0,0,.31944],Yn=[0,.69444,0,0,.86944],Nn=[0,.68611,0,0,.69166],_i=[0,.68611,0,0,.83055],xi=[0,.68611,0,0,.89444],ha=[0,.69444,0,0,.60278],No=[.19444,.69444,0,0,.51111],na=[0,.69444,0,0,.83055],$i=[-.10889,.39111,0,0,1.14999],ja=[.19444,.69444,0,0,.575],Ma=[.19444,.69444,0,0,1.14999],eo=[.19444,.69444,0,0,.70277],vo=[.05556,.75,0,0,.575],ba=[0,.68611,0,0,.95833],Ai=[.08556,.58556,0,0,.76666],ua=[-.02639,.47361,0,0,.575],Do=[0,.44444,0,0,.89444],uo=[0,.55556,0,0,.76666],Xa=[-.10889,.39111,0,0,.89444],Di=[.00222,.50222,0,0,.89444],Po=[.19667,.69667,0,0,.89444],fo=[.08556,.58556,0,0,1.14999],il=[0,.69444,0,0,.70277],$o=[-.02778,.47222,0,0,.575],Hs=[.25,.75,0,0,.51111],Zo=[-.13889,.36111,0,0,1.14999],vl=[.19444,.69444,0,0,1.02222],za=[.12963,.69444,0,0,.89444],Ra=[.19444,.69444,0,0,.44722],Ea=[0,.64444,.13167,0,.59111],js=[.19444,.64444,.13167,0,.59111],yi=[0,.68611,.17208,0,.8961],Zi=[.19444,.44444,.105,0,.53222],Pi=[0,.44444,.085,0,.82666],Vi=[0,.69444,.06709,0,.59111],da=[0,.69444,.12945,0,.35555],La=[0,.69444,0,0,.94888],Vo=[0,.69444,.11472,0,.59111],_o=[0,.68611,.10778,0,.88555],Bo=[0,.69444,.07939,0,.62055],$a=[0,.69444,.12417,0,.30667],wa=[0,.64444,.13556,0,.51111],pa=[.19444,.64444,.13556,0,.51111],Na=[0,.68333,.16389,0,.74333],Ja=[.19444,.43056,.08847,0,.46],oo=[0,.43056,.07514,0,.71555],Ta=[0,.69444,.06646,0,.51111],ka=[0,.69444,0,0,.83129],Fo=[0,.69444,.1225,0,.51111],Ll=[0,.68333,.09403,0,.76666],cs=[0,.68333,.11111,0,.76666],dl=[0,.69444,.06961,0,.51444],Oo=[0,.69444,0,0,.27778],ks=[.25,.75,0,0,.38889],Io=[0,.64444,0,0,.5],Kn=[0,.69444,0,0,.77778],kl=[0,.68333,0,0,.75],To=[0,.68333,0,0,.77778],Hl=[0,.68333,0,0,.68056],zs=[0,.68333,0,0,.72222],ms=[.25,.75,0,0,.5],Da=[.25,.75,0,0,.27778],Uo=[0,.69444,0,0,.5],jl=[0,.69444,0,0,.55556],tc=[0,.43056,0,0,.44445],fl=[0,.43056,0,0,.5],ma=[.19444,.43056,0,0,.55556],oa=[0,.43056,0,0,.55556],ho=[.08333,.58333,0,0,.77778],Za=[0,.43056,0,0,.27778],to=[0,.66786,0,0,.27778],Ro=[0,.69444,0,0,.75],Ya=[0,.66786,0,0,.5],Wo=[0,.68333,0,0,.625],Ds=[.19444,.69444,0,0,.44445],hl=[0,.69444,0,0,.72222],Xs=[.19444,.69444,0,0,.5],al=[.19444,.69444,0,0,1],Wc=[.011,.511,0,0,1.126],Dl=[.19444,.69444,0,0,.61111],Js=[.05556,.75,0,0,.5],lA=[0,.68333,0,0,.83334],cA=[.0391,.5391,0,0,.66667],hc=[-.05555,.44445,0,0,.5],wA=[0,.43056,0,0,.77778],Pl=[0,.55556,0,0,.66667],Ys=[-.03625,.46375,0,0,.77778],ol=[-.01688,.48312,0,0,.77778],sl=[.0391,.5391,0,0,1],Oa=[0,.69444,0,0,.61111],po=[-.03472,.46528,0,0,.5],mo=[.25,.75,0,0,.44445],Go=[-.14236,.35764,0,0,1],Ps=[.244,.744,0,0,.412],kc=[.19444,.69444,0,0,.88889],yl=[.12963,.69444,0,0,.77778],Gc=[.19444,.69444,0,0,.38889],xA=[.011,.511,0,0,1.638],CA=[.19444,.69444,0,0,0],pc=[0,.44444,0,0,.575],mc=[.19444,.44444,0,0,.575],Uu=[0,.68611,0,0,.75555],KA=[0,.69444,0,0,.66759],ed=[0,.68611,0,0,.80555],td=[0,.68611,.08229,0,.98229],lu=[0,.68611,0,0,.76666],vd=[0,.44444,0,0,.58472],Ru=[.19444,.44444,0,0,.6118],cu=[.19444,.43056,0,0,.5],c=[0,.68333,.02778,.08334,.76278],o=[0,.68333,.08125,.05556,.83125],l=[0,.43056,0,.05556,.48472],b=[.19444,.43056,0,.08334,.51702],F=[.25,.75,0,0,.42778],C=[0,.69444,0,0,.55],T=[0,.69444,0,0,.73334],Z=[0,.69444,0,0,.79445],ae=[0,.69444,0,0,.51945],_e=[0,.69444,0,0,.70278],$e=[0,.69444,0,0,.76389],Ze=[.25,.75,0,0,.34306],at=[0,.69444,0,0,.56111],ye=[0,.69444,0,0,.25556],kt=[.19444,.45833,0,0,.56111],wt=[0,.45833,0,0,.56111],Dt=[0,.69444,0,0,.30556],ht=[0,.69444,0,0,.58056],Pt=[0,.69444,0,0,.67223],ar=[0,.69444,0,0,.85556],xr=[0,.69444,0,0,.55834],Kr=[0,.65556,.11156,0,.5],hn=[0,.69444,.08094,0,.70834],Ir=[.17014,0,0,0,.44445],Vt=[0,.69444,.0799,0,.5],Pr=[0,.69444,0,0,.73752],Jr=[0,.69444,.09205,0,.5],vt=[0,.69444,.09031,0,.77778],Ct=[0,.69444,.07816,0,.27778],rr=[0,.69444,.00316,0,.5],U=[.19444,.69444,0,0,.83334],re=[.05556,.75,0,0,.83334],Se=[0,.75,0,0,.5],Ue=[.125,.08333,0,0,.27778],Ke=[0,.08333,0,0,.27778],Xe=[0,.65556,0,0,.5],dt=[0,.69444,0,0,.47222],St=[0,.69444,0,0,.66667],le=[0,.69444,0,0,.59722],Re=[0,.69444,0,0,.54167],Ye=[0,.69444,0,0,.70834],et=[.25,.75,0,0,.28889],bt=[0,.69444,0,0,.51667],_t=[0,.44444,0,0,.44445],Mt=[.19444,.44444,0,0,.51667],Rt=[0,.44444,0,0,.38333],lr=[0,.44444,0,0,.51667],Ar=[0,.69444,0,0,.83334],gr=[.35001,.85,0,0,.45834],_r=[.35001,.85,0,0,.57778],dn=[.35001,.85,0,0,.41667],or=[.35001,.85,0,0,.58334],yt=[0,.72222,0,0,.55556],Fn=[1e-5,.6,0,0,.66667],gn=[1e-5,.6,0,0,.77778],yr=[.25001,.75,0,0,.94445],Tr=[.306,.805,.19445,0,.47222],Ur=[.30612,.805,.19445,0,.47222],wr=[.25001,.75,0,0,.83334],Zr=[.35001,.85,0,0,.47222],Cn=[.25001,.75,0,0,1.11111],Gn=[.65002,1.15,0,0,.59722],Zn=[.65002,1.15,0,0,.81111],On=[.65002,1.15,0,0,.47222],di=[.65002,1.15,0,0,.66667],zn=[0,.75,0,0,1],Fi=[.55001,1.05,0,0,1.27778],vn=[.862,1.36,.44445,0,.55556],_a=[.86225,1.36,.44445,0,.55556],Hi=[.55001,1.05,0,0,1.11111],Ri=[.65002,1.15,0,0,.52778],ia=[.65002,1.15,0,0,.61111],Ki=[.55001,1.05,0,0,1.51112],Qa=[.95003,1.45,0,0,.73611],Wi=[.95003,1.45,0,0,1.04445],As=[.95003,1.45,0,0,.52778],En=[.95003,1.45,0,0,.75],fi=[0,.75,0,0,1.44445],gi=[.95003,1.45,0,0,.58334],$n=[1.25003,1.75,0,0,.79167],ai=[1.25003,1.75,0,0,1.27778],kn=[1.25003,1.75,0,0,.58334],Qi=[1.25003,1.75,0,0,.80556],Gi=[0,.825,0,0,1.8889],qi=[1.25003,1.75,0,0,.63889],Mo=[.64502,1.155,0,0,.875],Ii=[1e-5,.6,0,0,.875],ns=[-99e-5,.601,0,0,.66667],ro=[.64502,1.155,0,0,.66667],Qo=[1e-5,.9,0,0,.88889],wn=[.65002,1.15,0,0,.88889],no=[.90001,0,0,0,.88889],Cs=[-.00499,.605,0,0,1.05556],ga=[0,.12,0,0,.45],qr=[0,.61111,0,0,.525],fa=[.08333,.69444,0,0,.525],so=[-.08056,.53055,0,0,.525],Va=[-.05556,.55556,0,0,.525],Si=[0,.43056,0,0,.525],bo=[.22222,.43056,0,0,.525],Ko=[0,0,0,0,.525],Bs={"AMS-Regular":{32:ur,65:ir,66:Dr,67:ir,68:ir,69:Dr,70:Mr,71:mr,72:mr,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:mr,76:Dr,77:[0,.68889,0,0,.94445],78:ir,79:Lr,80:Mr,81:Lr,82:ir,83:vr,84:Dr,85:ir,86:ir,87:[0,.68889,0,0,1],88:ir,89:ir,90:Dr,107:vr,160:ur,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:vr,295:Sn,710:$r,732:cn,770:$r,771:cn,989:ki,1008:si,8245:[0,.54986,0,0,.275],8463:Sn,8487:ir,8498:vr,8502:Dr,8503:[0,.68889,0,0,.44445],8504:Dr,8513:[0,.68889,0,0,.63889],8592:nn,8594:nn,8602:Bn,8603:Bn,8606:ri,8608:ri,8610:Er,8611:Er,8619:ni,8620:ni,8621:[-.13313,.37788,0,0,1.38889],8622:Bn,8624:Li,8625:Li,8630:oi,8631:oi,8634:Ti,8635:Ti,8638:Ui,8639:Ui,8642:Ui,8643:Ui,8644:Xi,8646:Xi,8647:Xi,8648:Ha,8649:Xi,8650:Ha,8651:ri,8652:ri,8653:Bn,8654:Bn,8655:Bn,8666:Ji,8667:Ji,8669:[-.13313,.37788,0,0,1],8672:pi,8674:pi,8705:[0,.825,0,0,.5],8708:vr,8709:ki,8717:[0,.43056,0,0,.42917],8722:nn,8724:[.08198,.69224,0,0,.77778],8726:ki,8733:it,8736:Ni,8737:Ni,8738:[.03517,.52239,0,0,.72222],8739:Mn,8740:[.25142,.74111,0,0,.27778],8741:Pn,8742:[.25142,.74111,0,0,.5],8756:ve,8757:ve,8764:Te,8765:[-.13313,.37788,0,0,.77778],8769:Te,8770:Ys,8774:dr,8776:ol,8778:ki,8782:ke,8783:ke,8785:Ti,8786:Ti,8787:Ti,8790:it,8791:Hr,8796:[.08198,.91667,0,0,.77778],8806:$t,8807:$t,8808:Qt,8809:Qt,8812:[.25583,.75583,0,0,.5],8814:Sr,8815:Sr,8816:dr,8817:dr,8818:Hr,8819:Hr,8822:Wr,8823:Wr,8828:en,8829:en,8830:Hr,8831:Hr,8832:Sr,8833:Sr,8840:dr,8841:dr,8842:Vr,8843:Vr,8847:jr,8848:jr,8858:Ti,8859:Ti,8861:Ti,8862:Yr,8863:Yr,8864:Yr,8865:Yr,8872:[0,.69224,0,0,.61111],8873:Ni,8874:[0,.69224,0,0,.88889],8876:Mr,8877:Mr,8878:ir,8879:ir,8882:jr,8883:jr,8884:en,8885:en,8888:[0,.54986,0,0,1.11111],8890:ma,8891:mn,8892:mn,8901:[0,.54986,0,0,.27778],8903:ki,8905:ki,8906:ki,8907:it,8908:it,8909:[-.03598,.46402,0,0,.77778],8910:tn,8911:tn,8912:jr,8913:jr,8914:Dn,8915:Dn,8916:ve,8918:Qn,8919:Qn,8920:ui,8921:ui,8922:Tn,8923:Tn,8926:en,8927:en,8928:dr,8929:dr,8934:sn,8935:sn,8936:sn,8937:sn,8938:Sr,8939:Sr,8940:dr,8941:dr,8994:Kt,8995:Kt,9416:[.15559,.69224,0,0,.90222],9484:Li,9488:Li,9492:Zt,9496:Zt,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:Yr,9633:Yr,9650:qt,9651:qt,9654:jr,9660:qt,9661:qt,9664:jr,9674:Jt,9733:[.19444,.69224,0,0,.94445],10003:er,10016:er,10731:Jt,10846:[.19444,.75583,0,0,.61111],10877:en,10878:en,10885:$t,10886:$t,10887:Vr,10888:Vr,10889:Qr,10890:Qr,10891:kr,10892:kr,10901:en,10902:en,10933:Qt,10934:Qt,10935:Qr,10936:Qr,10937:Qr,10938:Qr,10949:$t,10950:$t,10955:Gr,10956:Gr,57350:Mn,57351:Pn,57352:ki,57353:si,57356:Qt,57357:Qt,57358:qn,57359:dr,57360:dr,57361:qn,57366:Qt,57367:Qt,57368:Qt,57369:Qt,57370:Vr,57371:Vr},"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:vi,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:bi,41:bi,42:[0,.62119,0,0,.27764],43:Jn,44:Hn,45:Jn,46:Hn,47:[.24982,.74947,0,0,.50181],48:on,49:on,50:on,51:mi,52:mi,53:mi,54:Ln,55:mi,56:Ln,57:mi,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:ei,93:ei,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:vi,8217:vi,58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:ur,33:[0,.69444,0,0,.35],34:ha,35:[.19444,.69444,0,0,.95833],36:vo,37:[.05556,.75,0,0,.95833],38:ra,39:jn,40:Ei,41:Ei,42:[0,.75,0,0,.575],43:Yi,44:[.19444,.15556,0,0,.31944],45:Rt,46:[0,.15556,0,0,.31944],47:rn,48:Xn,49:Xn,50:Xn,51:Xn,52:Xn,53:Xn,54:Xn,55:Xn,56:Xn,57:Xn,58:ao,59:[.19444,.44444,0,0,.31944],60:Bi,61:Xa,62:Bi,63:[0,.69444,0,0,.54305],64:ra,65:An,66:[0,.68611,0,0,.81805],67:_i,68:[0,.68611,0,0,.88194],69:Uu,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:ii,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:Nn,77:[0,.68611,0,0,1.09166],78:ii,79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:An,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Un,92:rn,93:Un,94:Aa,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:xn,99:wi,100:xn,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:xn,105:jn,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:jn,109:[0,.44444,0,0,.95833],110:ci,111:pc,112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:ci,118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:wi,123:rn,124:Un,125:rn,126:[.35,.34444,0,0,.575],160:ur,163:[0,.69444,0,0,.86853],168:Aa,172:[0,.44444,0,0,.76666],176:Yn,177:Yi,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:Yi,216:[.04861,.73472,0,0,.89444],223:le,230:[0,.44444,0,0,.83055],247:Yi,248:[.09722,.54167,0,0,.575],305:ao,338:[0,.68611,0,0,1.16944],339:Do,567:[.19444,.44444,0,0,.35139],710:Aa,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:Aa,715:Aa,728:Aa,729:jn,730:Yn,732:Aa,733:Aa,915:Nn,916:ba,920:xi,923:ed,926:lu,928:ii,931:_i,933:xi,934:_i,936:xi,937:_i,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:jn,8217:jn,8220:ha,8221:ha,8224:No,8225:No,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:KA,8465:na,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:na,8501:il,8592:$i,8593:ja,8594:$i,8595:ja,8596:$i,8597:rn,8598:Ma,8599:Ma,8600:Ma,8601:Ma,8636:$i,8637:$i,8640:$i,8641:$i,8656:$i,8657:eo,8658:$i,8659:eo,8660:$i,8661:[.25,.75,0,0,.70277],8704:xn,8706:[0,.69444,.06389,0,.62847],8707:xn,8709:vo,8711:ba,8712:Ai,8715:Ai,8722:Yi,8723:Yi,8725:rn,8726:rn,8727:$o,8728:ua,8729:ua,8730:[.18,.82,0,0,.95833],8733:Do,8734:[0,.44444,0,0,1.14999],8736:Ni,8739:Un,8741:rn,8743:uo,8744:uo,8745:uo,8746:uo,8747:[.19444,.69444,.12778,0,.56875],8764:Xa,8768:[.19444,.69444,0,0,.31944],8771:Di,8776:[.02444,.52444,0,0,.89444],8781:Di,8801:Di,8804:Po,8805:Po,8810:fo,8811:fo,8826:Bi,8827:Bi,8834:Bi,8835:Bi,8838:Po,8839:Po,8846:uo,8849:Po,8850:Po,8851:uo,8852:uo,8853:Yi,8854:Yi,8855:Yi,8856:Yi,8857:Yi,8866:il,8867:il,8868:ra,8869:ra,8900:ua,8901:[-.02639,.47361,0,0,.31944],8902:$o,8968:Hs,8969:Hs,8970:Hs,8971:Hs,8994:Zo,8995:Zo,9651:vl,9657:$o,9661:vl,9667:$o,9711:Ma,9824:za,9825:za,9826:za,9827:za,9837:[0,.75,0,0,.44722],9838:Ra,9839:Ra,10216:Ei,10217:Ei,10815:ii,10927:Po,10928:Po,57376:CA},"Main-BoldItalic":{32:ur,33:[0,.69444,.11417,0,.38611],34:Bo,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:da,40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:Ea,49:Ea,50:Ea,51:Ea,52:js,53:Ea,54:Ea,55:js,56:Ea,57:Ea,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:Vo,64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:yi,73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:yi,79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:Vi,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:Zi,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:Zi,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:La,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:Pi,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:Pi,567:[.19444,.44444,.04611,0,.385],710:Vi,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:La,732:Vo,733:Vo,915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:yi,931:[0,.68611,.11431,0,.82666],933:_o,934:[0,.68611,.05632,0,.82666],936:_o,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:da,8217:da,8220:[0,.69444,.16772,0,.62055],8221:Bo},"Main-Italic":{32:ur,33:$a,34:dl,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:$a,40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:wa,49:wa,50:wa,51:wa,52:pa,53:wa,54:wa,55:pa,56:wa,57:wa,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:Fo,64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:Na,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:Na,79:Ll,80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:Na,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:Ta,95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:Ja,104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:Ja,114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:ur,168:[0,.66786,.10474,0,.51111],176:ka,184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:oo,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:oo,710:Ta,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:ka,732:[0,.66786,.11585,0,.51111],733:Fo,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:Ll,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:Na,931:[0,.68333,.12028,0,.71555],933:cs,934:[0,.68333,.05986,0,.71555],936:cs,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:$a,8217:$a,8220:[0,.69444,.1685,0,.51444],8221:dl,8463:Sn},"Main-Regular":{32:ur,33:Oo,34:Uo,35:U,36:Js,37:re,38:Kn,39:Oo,40:ks,41:ks,42:Se,43:ho,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:ms,48:Io,49:Io,50:Io,51:Io,52:Io,53:Io,54:Io,55:Io,56:Io,57:Io,58:Za,59:[.19444,.43056,0,0,.27778],60:Qn,61:Te,62:Qn,63:dt,64:Kn,65:kl,66:[0,.68333,0,0,.70834],67:zs,68:[0,.68333,0,0,.76389],69:Hl,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:kl,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:To,76:Wo,77:[0,.68333,0,0,.91667],78:kl,79:To,80:Hl,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:zs,85:kl,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:kl,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:Da,92:ms,93:Da,94:Uo,95:[.31,.12056,.02778,0,.5],97:fl,98:jl,99:tc,100:jl,101:tc,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:jl,105:to,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:Oo,109:[0,.43056,0,0,.83334],110:oa,111:fl,112:ma,113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:oa,118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:tc,123:ms,124:Da,125:ms,126:[.35,.31786,0,0,.5],160:ur,163:[0,.69444,0,0,.76909],167:Ds,168:Ya,172:[0,.43056,0,0,.66667],176:Ro,177:ho,182:Dl,184:Ir,198:[0,.68333,0,0,.90278],215:ho,216:[.04861,.73194,0,0,.77778],223:Uo,230:[0,.43056,0,0,.72222],247:ho,248:[.09722,.52778,0,0,.5],305:Za,338:[0,.68333,0,0,1.01389],339:wA,567:[.19444,.43056,0,0,.30556],710:Uo,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:Uo,715:Uo,728:Uo,729:to,730:Ro,732:Ya,733:Uo,915:Wo,916:lA,920:To,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:kl,931:zs,933:To,934:zs,936:To,937:zs,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:Oo,8217:Oo,8220:Uo,8221:Uo,8224:Ds,8225:Ds,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:Sn,8465:hl,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:hl,8501:Oa,8592:Bn,8593:Xs,8594:Bn,8595:Xs,8596:Bn,8597:ms,8598:al,8599:al,8600:al,8601:al,8614:[.011,.511,0,0,1],8617:Wc,8618:Wc,8636:Bn,8637:Bn,8640:Bn,8641:Bn,8652:[.011,.671,0,0,1],8656:Bn,8657:Dl,8658:Bn,8659:Dl,8660:Bn,8661:[.25,.75,0,0,.61111],8704:jl,8706:[0,.69444,.05556,.08334,.5309],8707:jl,8709:Js,8711:lA,8712:cA,8715:cA,8722:ho,8723:ho,8725:ms,8726:ms,8727:po,8728:hc,8729:hc,8730:[.2,.8,0,0,.83334],8733:wA,8734:oi,8736:Ni,8739:Da,8741:ms,8743:Pl,8744:Pl,8745:Pl,8746:Pl,8747:[.19444,.69444,.11111,0,.41667],8764:Te,8768:[.19444,.69444,0,0,.27778],8771:Ys,8773:[-.022,.589,0,0,1],8776:ol,8781:Ys,8784:[-.133,.67,0,0,.778],8801:Ys,8804:Vr,8805:Vr,8810:sl,8811:sl,8826:Qn,8827:Qn,8834:Qn,8835:Qn,8838:Vr,8839:Vr,8846:Pl,8849:Vr,8850:Vr,8851:Pl,8852:Pl,8853:ho,8854:ho,8855:ho,8856:ho,8857:ho,8866:Oa,8867:Oa,8868:Kn,8869:Kn,8872:[.249,.75,0,0,.867],8900:hc,8901:[-.05555,.44445,0,0,.27778],8902:po,8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:mo,8969:mo,8970:mo,8971:mo,8994:Go,8995:Go,9136:Ps,9137:Ps,9651:kc,9657:po,9661:kc,9667:po,9711:al,9824:yl,9825:yl,9826:yl,9827:yl,9837:[0,.75,0,0,.38889],9838:Gc,9839:Gc,10216:ks,10217:ks,10222:Ps,10223:Ps,10229:[.011,.511,0,0,1.609],10230:xA,10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:xA,10815:kl,10927:Vr,10928:Vr,57376:CA},"Math-BoldItalic":{32:ur,48:pc,49:pc,50:pc,51:mc,52:mc,53:mc,54:Xn,55:mc,56:Xn,57:mc,65:An,66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:td,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:Uu,77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:KA,105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:vd,112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:ur,915:[0,.68611,.15972,0,.65694],916:ba,920:[0,.68611,.03194,0,.86722],923:ed,926:[0,.68611,.07458,0,.84125],928:td,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:lu,936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:vd,960:[0,.44444,.03704,0,.68241],961:Ru,962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:Ru,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:ur,48:fl,49:fl,50:fl,51:cu,52:cu,53:cu,54:Io,55:cu,56:Io,57:cu,65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:o,73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:c,80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:l,112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:ur,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:c,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:o,931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:l,960:[0,.43056,.03588,0,.57003],961:b,962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:b,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:ur,33:[0,.69444,0,0,.36667],34:xr,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:Dt,40:F,41:F,42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:C,49:C,50:C,51:C,52:C,53:C,54:C,55:C,56:C,57:C,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:ae,64:T,65:T,66:T,67:_e,68:Z,69:[0,.69444,0,0,.64167],70:Oa,71:T,72:Z,73:[0,.69444,0,0,.33056],74:ae,75:$e,76:ht,77:[0,.69444,0,0,.97778],78:Z,79:Z,80:_e,81:[.10556,.69444,0,0,.79445],82:_e,83:Oa,84:T,85:$e,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:T,89:[0,.69444,.0275,0,.73334],90:Pt,91:Ze,93:Ze,94:C,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:at,99:[0,.45833,0,0,.48889],100:at,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:at,105:ye,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:ye,109:[0,.45833,0,0,.86667],110:wt,111:[0,.45833,0,0,.55],112:kt,113:kt,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:wt,118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:ur,168:C,176:T,180:C,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:C,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:C,729:Dt,730:T,732:C,733:C,915:ht,916:[0,.69444,0,0,.91667],920:ar,923:Pt,926:T,928:Z,931:Z,933:ar,934:Z,936:ar,937:Z,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:Dt,8217:Dt,8220:xr,8221:xr},"SansSerif-Italic":{32:ur,33:[0,.69444,.05733,0,.31945],34:rr,35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:Ct,40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:Ue,45:[0,.44444,.01946,0,.33333],46:Ke,47:[.25,.75,.13164,0,.5],48:Kr,49:Kr,50:Kr,51:Kr,52:Kr,53:Kr,54:Kr,55:Kr,56:Kr,57:Kr,58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:St,66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:hn,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:Re,77:[0,.69444,.08094,0,.875],78:hn,79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:Vt,95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:ur,168:[0,.67937,.06385,0,.5],176:Pr,184:Ir,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:Vt,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:Jr,715:Uo,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:Pr,732:[0,.67659,.08826,0,.5],733:Jr,915:[0,.69444,.13372,0,.54167],916:Ar,920:[0,.69444,.07555,0,.77778],923:Oa,926:[0,.69444,.12816,0,.66667],928:hn,931:[0,.69444,.11983,0,.72222],933:vt,934:[0,.69444,.04603,0,.72222],936:vt,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:Ct,8217:Ct,8220:[0,.69444,.14205,0,.5],8221:rr},"SansSerif-Regular":{32:ur,33:[0,.69444,0,0,.31945],34:Uo,35:U,36:Js,37:re,38:[0,.69444,0,0,.75834],39:Oo,40:ks,41:ks,42:Se,43:ho,44:Ue,45:[0,.44444,0,0,.33333],46:Ke,47:ms,48:Xe,49:Xe,50:Xe,51:Xe,52:Xe,53:Xe,54:Xe,55:Xe,56:Xe,57:Xe,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:dt,64:St,65:St,66:St,67:xn,68:[0,.69444,0,0,.72223],69:le,70:[0,.69444,0,0,.56945],71:St,72:Ye,73:Oo,74:dt,75:[0,.69444,0,0,.69445],76:Re,77:[0,.69444,0,0,.875],78:Ye,79:[0,.69444,0,0,.73611],80:xn,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:jl,84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:St,89:[0,.69444,.025,0,.66667],90:Oa,91:et,93:et,94:Uo,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:bt,99:_t,100:bt,101:_t,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:bt,105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:lr,111:[0,.44444,0,0,.5],112:Mt,113:Mt,114:[0,.44444,.01389,0,.34167],115:Rt,116:[0,.57143,0,0,.36111],117:lr,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:St,184:Ir,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:Uo,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:Uo,715:Uo,728:Uo,729:[0,.67937,0,0,.27778],730:St,732:[0,.67659,0,0,.5],733:Uo,915:Re,916:Ar,920:Kn,923:Oa,926:St,928:Ye,931:hl,933:Kn,934:hl,936:Kn,937:hl,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:Oo,8217:Oo,8220:Uo,8221:Uo},"Script-Regular":{32: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:gr,41:gr,47:_r,91:dn,92:_r,93:dn,123:or,125:or,160:ur,710:yt,732:yt,770:yt,771:yt,8214:[-99e-5,.601,0,0,.77778],8593:Fn,8595:Fn,8657:gn,8659:gn,8719:yr,8720:yr,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:Ur,8748:Tr,8749:Tr,8750:Ur,8896:wr,8897:wr,8898:wr,8899:wr,8968:Zr,8969:Zr,8970:Zr,8971:Zr,9168:ns,10216:Zr,10217:Zr,10752:Cn,10753:Cn,10754:Cn,10756:wr,10758:wr},"Size2-Regular":{32:ur,40:Gn,41:Gn,47:Zn,91:On,92:Zn,93:On,123:di,125:di,160:ur,710:zn,732:zn,770:zn,771:zn,8719:Fi,8720:Fi,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:_a,8748:vn,8749:vn,8750:_a,8896:Hi,8897:Hi,8898:Hi,8899:Hi,8968:Ri,8969:Ri,8970:Ri,8971:Ri,10216:ia,10217:ia,10752:Ki,10753:Ki,10754:Ki,10756:Hi,10758:Hi},"Size3-Regular":{32:ur,40:Qa,41:Qa,47:Wi,91:As,92:Wi,93:As,123:En,125:En,160:ur,710:fi,732:fi,770:fi,771:fi,8730:[.95003,1.45,0,0,1],8968:gi,8969:gi,8970:gi,8971:gi,10216:En,10217:En},"Size4-Regular":{32:ur,40:$n,41:$n,47:ai,91:kn,92:ai,93:kn,123:Qi,125:Qi,160:ur,710:Gi,732:Gi,770:Gi,771:Gi,8730:[1.25003,1.75,0,0,1],8968:qi,8969:qi,8970:qi,8971:qi,9115:Mo,9116:Ii,9117:Mo,9118:Mo,9119:Ii,9120:Mo,9121:ro,9122:ns,9123:ro,9124:ro,9125:ns,9126:ro,9127:Qo,9128:wn,9129:no,9130:[0,.3,0,0,.88889],9131:Qo,9132:wn,9133:no,9143:[.88502,.915,0,0,1.05556],10216:Qi,10217:Qi,57344:Cs,57345:Cs,57680:ga,57681:ga,57682:ga,57683:ga},"Typewriter-Regular":{32:Ko,33:qr,34:qr,35:qr,36:fa,37:fa,38:qr,39:qr,40:fa,41:fa,42:[0,.52083,0,0,.525],43:so,44:[.13889,.125,0,0,.525],45:so,46:[0,.125,0,0,.525],47:fa,48:qr,49:qr,50:qr,51:qr,52:qr,53:qr,54:qr,55:qr,56:qr,57:qr,58:Si,59:[.13889,.43056,0,0,.525],60:Va,61:[-.19549,.41562,0,0,.525],62:Va,63:qr,64:qr,65:qr,66:qr,67:qr,68:qr,69:qr,70:qr,71:qr,72:qr,73:qr,74:qr,75:qr,76:qr,77:qr,78:qr,79:qr,80:qr,81:[.13889,.61111,0,0,.525],82:qr,83:qr,84:qr,85:qr,86:qr,87:qr,88:qr,89:qr,90:qr,91:fa,92:fa,93:fa,94:qr,95:[.09514,0,0,0,.525],96:qr,97:Si,98:qr,99:Si,100:qr,101:Si,102:qr,103:bo,104:qr,105:qr,106:[.22222,.61111,0,0,.525],107:qr,108:qr,109:Si,110:Si,111:Si,112:bo,113:bo,114:Si,115:Si,116:[0,.55358,0,0,.525],117:Si,118:Si,119:Si,120:Si,121:bo,122:Si,123:fa,124:fa,125:fa,126:qr,127:qr,160:Ko,176:qr,184:[.19445,0,0,0,.525],305:Si,567:bo,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:qr,715:qr,728:qr,730:qr,770:qr,771:qr,776:qr,915:qr,916:qr,920:qr,923:qr,926:qr,928:qr,931:qr,933:qr,934:qr,936:qr,937:qr,8216:qr,8217:qr,8242:qr,9251:[.11111,.21944,0,0,.525]}},gs=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,is=10,us=.25,bl=1.2,as=.431,$s={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[as,as,as],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.5,.732,.925],num2:[.394,.384,.5],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[us,us,us],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04]},ds=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Lo=5,wo={"\xA0":" ","\u200B":" ",\u00C5:"A",\u00C7:"C",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00E7:"c",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function qs(e,t){e===void 0&&(e=77);const r=Bs[t][e];if(r)return{defaultMetrics:!1,depth:r[0],height:r[1],italic:r[2],skew:r[3],width:r[4]};if(e===11034)return{defaultMetrics:!0,depth:.2,height:.8,italic:0,skew:0,width:.8};const n=String.fromCodePoint(e);if(n in wo)e=wo[n].codePointAt(0);else if(gs.test(n))return e=77,{defaultMetrics:!0,depth:.2,height:.9,italic:0,skew:0,width:1};return{defaultMetrics:!0,depth:.2,height:.7,italic:0,skew:0,width:.8}}var Nl={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],longrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],longleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],longleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],longrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],longleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],longleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],longRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716],longLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},zl={widehat1:[1062,239,.24],widehat2:[2364,300,.3],widehat3:[2364,360,.36],widehat4:[2364,420,.42],widecheck1:[1062,239,.24],widecheck2:[2364,300,.3],widecheck3:[2364,360,.36],widecheck4:[2364,420,.42],widetilde1:[600,260,.26],widetilde2:[1033,286,.286],widetilde3:[2339,306,.306],widetilde4:[2340,312,.34],overarc:[1061,159,.3],underarc:[1061,159,.3]},wl={doubleleftarrow:`M262 157
|
|
|
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
|
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
|
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
|
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
|
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
|
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
|
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
|
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
|
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
|
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
|
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
|
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
|
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
|
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
|
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
|
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
|
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
|
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
|
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
|
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
|
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
|
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
|
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
|
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
|
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
|
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,overarc:"M529 0c179 0 524 115 524 115 5 1 9 5 9 10 0 1-1 2-1 3l-4 22c-1 5-5 9-11 9h-2s-338-93-512-92c-174 0-513 92-513 92h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13 0 0 342-115 520-115z",underarc:`m 529 160
|
|
|
c -179 0 -524 -115 -524 -115
|
|
|
c -5 -1 -9 -5 -9 -10
|
|
|
c 0 -1 1 -2 1 -3
|
|
|
l 4 -22
|
|
|
c 1 -5 5 -9 11 -9
|
|
|
h 2
|
|
|
s 338 93 512 92
|
|
|
c 174 0 513 -92 513 -92
|
|
|
h 2
|
|
|
c 5 0 9 4 11 9
|
|
|
l 5 22
|
|
|
c 1 6 -2 12 -8 13
|
|
|
c 0 0 -342 115 -520 115
|
|
|
z
|
|
|
`,leftgroup:`M400000 80
|
|
|
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
|
435 0h399565z`,leftgroupunder:`M400000 262
|
|
|
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
|
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
|
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
|
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
|
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
|
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
|
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
|
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
|
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
|
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
|
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
|
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
|
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
|
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
|
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
|
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
|
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
|
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
|
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
|
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
|
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
|
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
|
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
|
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
|
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
|
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
|
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
|
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
|
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
|
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
|
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
|
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
|
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
|
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
|
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
|
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
|
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
|
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
|
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
|
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
|
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
|
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
|
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
|
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
|
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
|
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
|
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
|
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
|
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
|
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
|
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
|
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
|
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
|
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
|
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
|
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
|
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
|
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
|
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
|
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
|
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
|
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
|
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
|
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
|
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
|
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
|
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
|
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|
|
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
|
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
|
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
|
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
|
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
|
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
|
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
|
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
|
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
|
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
|
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
|
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,widetilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
|
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
|
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
|
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
|
-68.267.847-113-73.952-191-73.952z`,widetilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
|
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
|
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
|
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
|
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,widetilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
|
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
|
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
|
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
|
-338 0-409-156.573-744-156.573z`,widetilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
|
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
|
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
|
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
|
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
|
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
|
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
|
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
|
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
|
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
|
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
|
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
|
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
|
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
|
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
|
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
|
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
|
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
|
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
|
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
|
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
|
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
|
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
|
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
|
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
|
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
|
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
|
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
|
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
|
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
|
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`};function BA(e){if(zl[e]){const[q,Ae,Qe]=zl[e],ut=`<span class="stretchy" style="height:${Qe}em"><svg width="100%" height="${Qe}em" viewBox="0 0 ${q} ${Ae}" preserveAspectRatio="none" ><path fill="currentcolor" d="${wl[e]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*Qe/2)/100}em;min-width:0">${ut}</span>`}const[t,r,n,i]=Nl[e];let s,A;const M=n/1e3;t.length===3?(s=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],A=["xMinYMin","xMidYMin","xMaxYMin"]):t.length===2?(s=["slice-1-of-2","slice-2-of-2"],A=["xMinYMin","xMaxYMin"]):(s=["slice-1-of-1"],A=[i]);const $=t.map((q,Ae)=>`<span class="${s[Ae]}" style=height:${M}em><svg width=400em height=${M}em viewBox="0 0 400000 ${n}" preserveAspectRatio="${A[Ae]} slice"><path fill="currentcolor" d="${wl[q]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${M}em;min-width:${r}em;">${$}</span>`}function Xc(e){return Nl[e]?Nl[e][2]/1e3:zl[e][2]}function xa(e){const t=[];for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(n===13&&e.charCodeAt(r+1)===10&&(n=10,r++),(n===13||n===12)&&(n=10),n===0&&(n=65533),n>=55296&&n<=56319){const i=e.charCodeAt(r+1);if(i>=56320&&i<=57343){const s=n-55296,A=i-56320;n=Tu(2,16)+s*Tu(2,10)+A,r++}}t.push(n)}return t}var ea=8205,vs=[[ea,1],[65038,2],[127995,5],[129456,4],[917536,96]],go,fs=[127462,127487];function Ss(e){var t;if(go===void 0){go={};for(const r of vs)for(let n=r[0];n<=r[0]+r[1]-1;n++)go[n]=!0}return(t=go[e])!=null?t:!1}function Es(e){return e>=fs[0]&&e<=fs[1]}function _s(e){if(/^[\u0020-\u00FF]*$/.test(e))return e;const t=[],r=xa(e);let n=0;for(;n<r.length;){const i=r[n++],s=r[n];if(s===ea){const A=n-1;for(n+=2;r[n]===ea;)n+=2;t.push(String.fromCodePoint(...r.slice(A,n-A+1)))}else if(Ss(s)){const A=n-1;for(;Ss(r[n]);)n+=r[n]===ea?2:1;t.push(String.fromCodePoint(...r.slice(A,2*n-A-1)))}else Es(i)?(n+=1,t.push(String.fromCodePoint(...r.slice(n-2,2)))):t.push(String.fromCodePoint(i))}return t}var Dc=class{constructor(e){this.obeyspaces=!1,this.pos=0,this.s=_s(e)}end(){return this.pos>=this.s.length}get(){return this.pos<this.s.length?this.s[this.pos++]:""}peek(){return this.s[this.pos]}match(e){const t=typeof this.s=="string"?e.exec(this.s.slice(this.pos)):e.exec(this.s.slice(this.pos).join(""));return t!=null&&t[0]?(this.pos+=t[0].length,t[0]):""}next(){if(this.end())return null;if(!this.obeyspaces&&this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]+/)||this.obeyspaces&&this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]/))return"<space>";const e=this.get();if(e==="\\"){if(!this.end()){let t=this.match(/^[a-zA-Z\*]+/);return t?this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]*/):t=this.get(),"\\"+t}}else{if(e==="{")return"<{>";if(e==="}")return"<}>";if(e==="^"){if(this.peek()==="^"){this.get();const t=this.match(/^(\^(\^(\^(\^[\da-f])?[\da-f])?[\da-f])?[\da-f])?[\da-f]{2}/);if(t)return String.fromCodePoint(Number.parseInt(t.slice(t.lastIndexOf("^")+1),16))}return e}else if(e==="#"){if(!this.end()){let t=!1;if(/[\d?@]/.test(this.peek())&&(t=!0,this.pos+1<this.s.length)){const r=this.s[this.pos+1];t=/[^\dA-Za-z]/.test(r)}return t?"#"+this.get():"#"}}else if(e==="$")return this.peek()==="$"?(this.get(),"<$$>"):"<$>"}return e}};function ll(e,t){var r,n,i,s;const A=[];let M=e.next();if(M&&M!=="\\relax"){if(M==="\\noexpand")M=e.next(),M&&A.push(M);else if(M==="\\obeyspaces")e.obeyspaces=!0;else if(M==="\\bgroup")A.push("<{>");else if(M==="\\egroup")A.push("<}>");else if(M==="\\string"){if(M=e.next(),M)if(M.startsWith("\\"))for(const $ of M)A.push($==="\\"?"\\backslash":$);else M==="<{>"?A.push("\\{"):M==="<space>"?A.push("~"):M==="<}>"&&A.push("\\}")}else if(M==="\\csname"){for(;e.peek()==="<space>";)e.next();let $="",q=!1,Ae=[];do{if(Ae.length===0)if(/^#[\d?@]$/.test(e.peek())){const Qe=e.get().slice(1);Ae=gc((n=(r=t==null?void 0:t(Qe))!=null?r:t==null?void 0:t("?"))!=null?n:"\\placeholder{}",t),M=Ae[0]}else M=e.next(),Ae=M?[M]:[];q=Ae.length===0,!q&&M==="\\endcsname"&&(q=!0,Ae.shift()),q||(q=M==="<$>"||M==="<$$>"||M==="<{>"||M==="<}>"||typeof M=="string"&&M.length>1&&M.startsWith("\\")),q||($+=Ae.shift())}while(!q);$&&A.push("\\"+$),A.push(...Ae)}else if(M!=="\\endcsname")if(M.length>1&&M.startsWith("#")){const $=M.slice(1);A.push(...gc((s=(i=t==null?void 0:t($))!=null?i:t==null?void 0:t("?"))!=null?s:"\\placeholder{}",t))}else A.push(M)}return A}function gc(e,t=null){const r=[];let n="";for(const A of e.toString().split(/\r?\n/)){n&&r.push(n),n=" ";const M=A.match(/((?:\\%)|[^%])*/);M!==null&&r.push(M[0])}const i=new Dc(ot(r.join(""))),s=[];do s.push(...ll(i,t));while(!i.end());return s}function Ca(e){let t="";const r=[];for(const n of e)n&&(t&&/^[a-zA-Z\*]/.test(n)&&r.push(t),r.push(n),/^\\[a-zA-Z]+\*?[\"\'][^\ ]+$/.test(n)&&r.push(" "),t=/\\[a-zA-Z]+\*?$/.test(n)?" ":"");return r.join("")}function So(e,...t){return console.assert(e.startsWith("\\")),t.length===0?e:Ca([e,...t.map(r=>`{${r}}`)])}function xl(e){return Ca(e.map(t=>{var r;return(r={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[t])!=null?r:t}))}var rc=class Kf{constructor(t){Kf._registry[t]=this}static createAtom(t,r,n){return Kf._registry[t].createAtom(r,gt(r,t),n)}static serialize(t,r){var n;if(!t||t.length===0)return"";if((n=r.skipStyles)!=null&&n){const i=[];for(const s of HA(t)){const A=Kf._registry[s[0].mode];i.push(...A.serialize(s,r))}return Ca(i)}return Ca(Jc(t,r))}static getFont(t,r,n){return Kf._registry[t].getFont(r,n)}};rc._registry={};var Ns=rc;function HA(e){const t=[];let r=[],n="NONE";for(const i of e)i.type!=="first"&&(i.mode!==n?(r.length>0&&t.push(r),r=[i],n=i.mode):r.push(i));return r.length>0&&t.push(r),t}function Cl(e,t){const r=[];let n=[],i;for(const s of e)if(s.type!=="first"&&s.style){let A;t==="variant"?(A=s.style.variant,s.style.variantStyle&&s.style.variantStyle!=="up"&&(A+="-"+s.style.variantStyle)):A=s.style[t],A===i?n.push(s):(n.length>0&&r.push(n),n=[s],i=A)}return n.length>0&&r.push(n),r}function jA(e,t){var r;const{parent:n}=e[0],i=n==null?void 0:n.computedStyle.color,s=[];for(const A of HA(e)){const M=t.defaultMode;for(const $ of Cl(A,"color")){const q=$[0].computedStyle,Ae=Ns._registry[$[0].mode].serialize($,E(f({},t),{defaultMode:M==="text"?"text":"math"}));!t.skipStyles&&q.color&&q.color!=="none"&&(!n||i!==q.color)?s.push(So("\\textcolor",(r=q.verbatimColor)!=null?r:q.color,Ca(Ae))):s.push(Ca(Ae))}}return s}function zA(e,t){const{parent:r}=e[0],n=r==null?void 0:r.computedStyle.backgroundColor;return Cl(e,"backgroundColor").map(i=>{var s;if(i.length>0||i[0].type!=="box"){const A=i[0].computedStyle;if(A.backgroundColor&&A.backgroundColor!=="none"&&(!r||n!==A.backgroundColor))return So("\\colorbox",(s=A.verbatimBackgroundColor)!=null?s:A.backgroundColor,Ca(jA(i,E(f({},t),{defaultMode:"text"}))))}return Ca(jA(i,t))})}function Jc(e,t){if(e.length===0)return[];const{parent:r}=e[0],n=r==null?void 0:r.computedStyle.fontSize,i=[];for(const s of Cl(e,"fontSize")){const A=s[0].computedStyle.fontSize,M=zA(s,t);M&&(A&&A!=="auto"&&(!r||n!==A)?i.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][A],...M):i.push(...M))}return i}function $l(e){return e?{mord:"ord",mbin:"bin",mop:"op",mrel:"rel",mopen:"open",mclose:"close",mpunct:"punct",minner:"inner",spacing:"ignore",latex:"latex",composition:"inner",error:"inner",placeholder:"ord",supsub:"ignore"}[e]:void 0}function vc(e){if(e.length===0)return"ord";const t=$l(e[0].type),r=$l(e[e.length-1].type);return t&&t===r?t:"ord"}function nc(e,t){if(typeof e=="string")return e;if(typeof e=="number"){console.assert(Number.isFinite(e));const r=Math.ceil(100*e)/100;return r===0?"0":r.toString()+(t!=null?t:"")}return""}var fn=class Gh{constructor(t,r){var n,i,s,A,M;if(typeof t=="number"?this.value=String.fromCodePoint(t):typeof t=="string"?this.value=t:S(t)?this.children=t.filter(q=>q!==null):t&&t instanceof Gh&&(this.children=[t]),this.children)for(const q of this.children)q.parent=this;this.type=(n=r==null?void 0:r.type)!=null?n:"ignore",this.isSelected=(r==null?void 0:r.isSelected)===!0,r!=null&&r.caret&&(this.caret=r.caret),this.classes=(i=r==null?void 0:r.classes)!=null?i:"",this.isTight=(s=r==null?void 0:r.isTight)!=null?s:!1,r!=null&&r.attributes&&(this.attributes=r.attributes);let $=r==null?void 0:r.fontFamily;r!=null&&r.style&&this.value&&($=(M=Ns.getFont((A=r.mode)!=null?A:"math",this,E(f({variant:"normal"},r.style),{letterShapeStyle:r.letterShapeStyle})))!=null?M:void 0),$||($="Main-Regular"),this._height=0,this._depth=0,this._width=0,this.hasExplicitWidth=!1,this.skew=0,this.italic=0,this.maxFontSize=0,this.scale=1,(r==null?void 0:r.maxFontSize)!==void 0&&(this.maxFontSize=r.maxFontSize),EA(this,$)}set atomID(t){t===void 0||t.length===0||(this.id=t)}selected(t){if(this.isSelected!==t&&(this.isSelected=t,this.children))for(const r of this.children)r.selected(t)}setStyle(t,r,n){if(r===void 0)return;const i=nc(r,n);i.length>0&&(this.cssProperties||(this.cssProperties={}),this.cssProperties[t]=i)}setTop(t){Number.isFinite(t)&&Math.abs(t)>.01&&(this.cssProperties||(this.cssProperties={}),this.cssProperties.top=nc(t,"em"),this.height-=t,this.depth+=t)}get left(){var t;return(t=this.cssProperties)!=null&&t["margin-left"]?Number.parseFloat(this.cssProperties["margin-left"]):0}set left(t){Number.isFinite(t)&&(t===0?this.cssProperties&&delete this.cssProperties["margin-left"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-left"]=nc(t,"em")))}set right(t){Number.isFinite(t)&&(t===0?this.cssProperties&&delete this.cssProperties["margin-right"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-right"]=nc(t,"em")))}set bottom(t){Number.isFinite(t)&&(t===0?this.cssProperties&&delete this.cssProperties["margin-bottom"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-bottom"]=nc(t,"em")))}get width(){return this._width*this.scale}set width(t){this._width=t,this.hasExplicitWidth=!0}set softWidth(t){}get height(){return this._height*this.scale}set height(t){this._height=t}get depth(){return this._depth*this.scale}set depth(t){this._depth=t}wrap(t){const r=t.parent;if(!r)return this;t.isPhantom&&this.setStyle("opacity",0);const n=t.color;n&&n!==r.color&&this.setStyle("color",n);let i=t.backgroundColor;this.isSelected&&(i=ge(i)),i&&i!==r.backgroundColor&&(this.setStyle("background-color",i),this.setStyle("display","inline-block"));const s=t.scalingFactor;return this.scale=s,this.skew*=s,this.italic*=s,this}toMarkup(){var t,r,n,i;let s=(t=this.value)!=null?t:"";if(this.children)for(const Ft of this.children)s+=Ft.toMarkup();let A="";if(this.svgBody)A=BA(this.svgBody);else if(this.svgOverlay){A='<span style="',A+="display: inline-block;",A+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,A+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,A+='">',A+=s,A+="</span>",A+='<svg style="position:absolute;overflow:visible;',A+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const Ft=(r=this.cssProperties)==null?void 0:r.padding;Ft?(A+=`top:${Ft};`,A+=`left:${Ft};`,A+=`width:calc(100% - 2 * ${Ft} );`):A+="top:0;left:0;width:100%;",A+="z-index:2;",A+='"',this.svgStyle&&(A+=this.svgStyle),A+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,A+=`>${this.svgOverlay}</svg>`}let M="";const $=this.classes.split(" ");$.push((n={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?n:""),this.caret==="latex"&&$.push("ML__latex-caret"),this.isSelected&&$.push("ML__selected");const q=$.length===1?$[0]:$.filter((Ft,Nt,Fr)=>Ft.length>0&&Fr.indexOf(Ft)===Nt).join(" ");if(q.length>0&&(M+=` class="${q}"`),this.id&&(M+=` data-atom-id=${this.id}`),this.cssId&&(M+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(M+=" "+Object.keys(this.attributes).map(Ft=>`${Ft}="${this.attributes[Ft]}"`).join(" ")),this.htmlData){const Ft=this.htmlData.split(",");for(const Nt of Ft){const Fr=Nt.match(/([^=]+)=(.+$)/);if(Fr){const In=Fr[1].trim().replace(/ /g,"-");In&&(M+=` data-${In}="${Fr[2]}" `)}else{const In=Nt.trim().replace(/ /g,"-");In&&(M+=` data-${In} `)}}}const Ae=(i=this.cssProperties)!=null?i:{};this.hasExplicitWidth&&Ae.width===void 0&&(Ae.width=`${Math.ceil(this._width*100)/100}em`);const Qe=Object.keys(Ae).map(Ft=>`${Ft}:${Ae[Ft]}`);if(this.scale!==void 0&&this.scale!==1&&(s.length>0||A.length>0)&&Qe.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const Ft=this.htmlStyle.split(";");let Nt="";for(const Fr of Ft){const In=Fr.match(/([^=]+):(.+$)/);if(In){const Cr=In[1].trim().replace(/ /g,"-");Cr&&(Nt+=`${Cr}:${In[2]};`)}}Nt&&(M+=` style="${Nt}"`)}Qe.length>0&&(M+=` style="${Qe.join(";")}"`);let ut="";return M.length>0||A.length>0?ut=`<span${M}>${s}${A}</span>`:ut=s,this.caret==="text"?ut+='<span class="ML__text-caret"></span>':this.caret==="math"&&(ut+='<span class="ML__caret"></span>'),ut}tryCoalesceWith(t){if(this.svgBody||!this.value||t.svgBody||!t.value)return!1;const r=this.children&&this.children.length>0,n=t.children&&t.children.length>0;if(r||n)return!1;if(t.cssProperties||this.cssProperties){for(const $ of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(t.cssProperties&&$ in t.cssProperties||this.cssProperties&&$ in this.cssProperties)return!1}const i=this.cssProperties?Object.keys(this.cssProperties).length:0,s=t.cssProperties?Object.keys(t.cssProperties).length:0;if(i!==s)return!1;if(i>0){for(const $ of Object.keys(this.cssProperties))if(this.cssProperties[$]!==t.cssProperties[$])return!1}const A=this.classes.trim().replace(/\s+/g," ").split(" "),M=t.classes.trim().replace(/\s+/g," ").split(" ");if(A.length!==M.length)return!1;A.sort(),M.sort();for(const[$,q]of A.entries())if(q==="vertical-separator"||q!==M[$])return!1;return this.value+=t.value,this.height=Math.max(this.height,t.height),this.depth=Math.max(this.depth,t.depth),this._width=this._width+t._width,this.maxFontSize=Math.max(this.maxFontSize,t.maxFontSize),this.italic=t.italic,!0}};function Fs(e){if(!e||e.length===0)return[];e[0].children=Fs(e[0].children);const t=[e[0]];for(let r=1;r<e.length;r++)t[t.length-1].tryCoalesceWith(e[r])||(e[r].children=Fs(e[r].children),t.push(e[r]));return t}function SA(e){return e.children&&(e.children=Fs(e.children)),e}function AA(e,t){if(!e)return new fn(null,t);const r=new fn(null,{classes:"ML__strut",type:"ignore"});r.setStyle("height",Math.max(0,e.height),"em");const n=[r];if(e.depth!==0){const i=new fn(null,{classes:"ML__strut--bottom",type:"ignore"});i.setStyle("height",e.height+e.depth,"em"),i.setStyle("vertical-align",-e.depth,"em"),n.push(i)}return n.push(e),new fn(n,E(f({},t),{type:"lift"}))}function sa(e){const t=Xc(e)/2,r=new fn(null,{maxFontSize:0});return r.height=t+.166,r.depth=t-.166,r.svgBody=e,r}function EA(e,t){var r;if(e.type==="latex"){e.height=.9,e.depth=.2,e._width=1;return}if(e.value){e.height=-1/0,e.depth=-1/0,e._width=0,e.skew=-1/0,e.italic=-1/0;for(let n=0;n<e.value.length;n++){const i=qs(e.value.codePointAt(n),t);e.height=Math.max(e.height,i.height),e.depth=Math.max(e.depth,i.depth),e._width+=i.width,e.skew=i.skew,e.italic=i.italic}return}if(e.children&&e.children.length>0){let n=-1/0,i=-1/0,s=0;for(const A of e.children)A.height>n&&(n=A.height),A.depth>i&&(i=A.depth),s=Math.max(s,(r=A.maxFontSize)!=null?r:0);e.height=n,e.depth=i,e._width=e.children.reduce((A,M)=>A+M.width,0),e.maxFontSize=s}}function $A(e){if("individualShift"in e){const t=e.individualShift;let r=t[0];const n=[r],i=-r.shift-r.box.depth;let s=i;for(let A=1;A<t.length;A++){const M=t[A],$=-M.shift-s-M.box.depth,q=$-(r.box.height+r.box.depth);s=s+$,n.push(q),n.push(M),r=M}return[n,i]}if("top"in e){let t=e.top;for(const r of e.children)t-=typeof r=="number"?r:r.box.height+r.box.depth;return[e.children,t]}else{if("bottom"in e)return[e.children,-e.bottom];if("firstBaseline"in e){const t=e.firstBaseline[0];if(typeof t=="number")throw new Error("First child must be an element.");return[e.firstBaseline,-t.box.depth]}else if("shift"in e){const t=e.children[0];if(typeof t=="number")throw new Error("First child must be an element.");return[e.children,-t.box.depth-e.shift]}}return[null,0]}function Zl(e){var t;const[r,n]=$A(e);if(!r)return[[],0,0];const i=new fn(null,{classes:"pstrut"});let s=0;for(const Nt of r)if(typeof Nt!="number"){const Fr=Nt.box;s=Math.max(s,Fr.maxFontSize,Fr.height)}s+=2,i.height=s,i.setStyle("height",s,"em");const A=[];let M=n,$=n,q=n,Ae=0;for(const Nt of r){if(typeof Nt=="number")q+=Nt;else{const Fr=Nt.box,In=(t=Nt.classes)!=null?t:[],Cr=new fn([i,Fr],{classes:In.join(" "),style:Nt.style});Fr.setStyle("height",Fr.height+Fr.depth,"em"),Fr.setStyle("display","inline-block"),Cr.setStyle("top",-s-q-Fr.depth,"em"),Nt.marginLeft&&Cr.setStyle("margin-left",Nt.marginLeft,"em"),Nt.marginRight&&Cr.setStyle("margin-right",Nt.marginRight,"em"),A.push(Cr),q+=Fr.height+Fr.depth,Ae=Math.max(Ae,Cr.width)}M=Math.min(M,q),$=Math.max($,q)}A.forEach(Nt=>{Nt.softWidth=Ae});const Qe=new fn(A,{classes:"vlist"});if(Qe.softWidth=Ae,Qe.height=$,Qe.setStyle("height",$,"em"),M>=0)return[[new fn(Qe,{classes:"vlist-r"})],$,-M];const ut=new fn(new fn(null),{classes:"vlist"});ut.height=-M,ut.setStyle("height",-M,"em");const Ft=new fn(8203,{classes:"vlist-s",maxFontSize:0});return Ft.softWidth=0,Ft.height=0,Ft.depth=0,[[new fn([Qe,Ft],{classes:"vlist-r"}),new fn(ut,{classes:"vlist-r"})],$,-M]}var Xo=class extends fn{constructor(e,t){var r;const[n,i,s]=Zl(e);super(n.length===1?n[0]:n,{type:t==null?void 0:t.type,classes:((r=t==null?void 0:t.classes)!=null?r:"")+" vlist-t"+(n.length===2?" vlist-t2":"")}),this.height=i,this.depth=s,this.softWidth=n.reduce((A,M)=>Math.max(A,M.width),0)}};function ZA(e,t){var r,n,i,s,A;const M=e.metrics,$=new fn(t.base),q=(r=t.baseShift)!=null?r:0,Ae=(n=t.slant)!=null?n:0;let Qe=0,ut=0;t.above&&(Qe=(i=t.aboveShift)!=null?i:Math.max(M.bigOpSpacing1,M.bigOpSpacing3-t.above.depth)),t.below&&(ut=(s=t.belowShift)!=null?s:Math.max(M.bigOpSpacing2,M.bigOpSpacing4-t.below.height));let Ft=null;if(t.below&&t.above){const Nt=M.bigOpSpacing5+t.below.height+t.below.depth+ut+$.depth+q;Ft=new Xo({bottom:Nt,children:[M.bigOpSpacing5,{box:t.below,marginLeft:-Ae,classes:["ML__center"]},ut,{box:$,classes:["ML__center"]},Qe,{box:t.above,marginLeft:Ae,classes:["ML__center"]},M.bigOpSpacing5]}).wrap(e)}else if(t.below&&!t.above)Ft=new Xo({top:$.height-q,children:[M.bigOpSpacing5,{box:t.below,marginLeft:-Ae,classes:["ML__center"]},ut,{box:$,classes:["ML__center"]}]}).wrap(e);else if(!t.below&&t.above){const Nt=$.depth+q;Ft=new Xo({bottom:Nt,children:[{box:$,classes:["ML__center"]},Qe,{box:t.above,marginLeft:Ae,classes:["ML__center"]},M.bigOpSpacing5]}).wrap(e)}else{const Nt=$.depth+q;Ft=new Xo({bottom:Nt,children:[{box:$},M.bigOpSpacing5]}).wrap(e)}return new fn(Ft,{type:(A=t.type)!=null?A:"op"})}var Pc=7,yc=6,_A=5,Vl=4,ic=3,lo=2,Os=1,ts=0,bc=class{constructor(e,t,r){this.id=e,this.sizeDelta=t,this.cramped=r;const n={"-4":2,"-3":1,0:0}[t];this.metrics=Object.keys($s).reduce((i,s)=>E(f({},i),{[s]:$s[s][n]}),{})}getFontSize(e){return Math.max(1,e+this.sizeDelta)}get sup(){return Ba[[ts,Os,ts,Os,lo,ic,lo,ic][this.id]]}get sub(){return Ba[[ts,ts,ts,ts,lo,lo,lo,lo][this.id]]}get fracNum(){return Ba[[ts,Os,ts,Os,lo,ic,Vl,_A][this.id]]}get fracDen(){return Ba[[ts,ts,ts,ts,lo,lo,Vl,Vl][this.id]]}get cramp(){return Ba[[ts,ts,lo,lo,Vl,Vl,yc,yc][this.id]]}get isTight(){return this.sizeDelta<0}},va={7:new bc(Pc,0,!1),6:new bc(yc,0,!0),5:new bc(_A,0,!1),4:new bc(Vl,0,!0),3:new bc(ic,-3,!1),2:new bc(lo,-3,!0),1:new bc(Os,-4,!1),0:new bc(ts,-4,!0)},Ba=E(f({},va),{displaystyle:va[Pc],textstyle:va[_A],scriptstyle:va[ic],scriptscriptstyle:va[Os]});function Zs(e,t){var r;if(!e)return 0;const n={pt:1,mm:7227/2540,cm:7227/254,ex:35271/8192,px:3/4,em:is,bp:803/800,dd:1238/1157,pc:12,in:72.27,mu:10/18}[(r=e.unit)!=null?r:"pt"];if(Number.isFinite(t)){const i=Tu(10,t);return Math.round(e.dimension/is*n*i)/i}return e.dimension*n}function Wl(e,t){if(e===null)return 0;const r=Zs(e)/is;if(Number.isFinite(t)){const n=Tu(10,t);return Math.round(r*n)/n}return r}function Ol(e){var t;return`${e.dimension}${(t=e.unit)!=null?t:"pt"}`}function VA(e){let t=Ol(e.glue);return e.grow&&e.grow.dimension!==0&&(t+=` plus ${Ol(e.grow)}`),e.shrink&&e.shrink.dimension!==0&&(t+=` minus ${Ol(e.shrink)}`),t}function os(e){var t,r;if(e==null)return null;let n="";if("dimension"in e&&(n=`${e.dimension}${(t=e.unit)!=null?t:"pt"}`),"glue"in e&&(n=VA(e)),"number"in e)if(!("base"in e)||e.base==="decimal")n=Number(e.number).toString();else if(e.base==="alpha")n=`\`${String.fromCodePoint(e.number)}`;else{const i=Math.round(e.number)>>>0;e.base==="hexadecimal"?(n=Number(i).toString(16).toUpperCase(),i<=255?n=n.padStart(2,"0"):i<=65535?n=n.padStart(4,"0"):i<=16777215?n=n.padStart(6,"0"):n=n.padStart(8,"0"),n=`"${n}`):e.base==="octal"&&(n=Number(i).toString(8),i<=63?n=n.padStart(2,"0"):i<=30583?n=n.padStart(4,"0"):n=n.padStart(8,"0"),n=`'${n}`)}return"register"in e&&("factor"in e&&(e.factor===-1?n="-":e.factor!==1&&(n=Number(e.factor).toString())),"global"in e&&e.global&&(n+="\\global"),n+=`\\${e.register}`),"string"in e&&(n=e.string),(r=e.relax)!=null&&r&&(n+="\\relax"),n}function ys(e,t){return e==null?null:"number"in e?E(f({},e),{number:e.number*t}):"register"in e?"factor"in e&&e.factor?E(f({},e),{factor:e.factor*t}):E(f({},e),{factor:t}):"dimension"in e?E(f({},e),{dimension:e.dimension*t}):"glue"in e?e.shrink&&e.grow?{glue:ys(e.glue,t),shrink:ys(e.shrink,t),grow:ys(e.grow,t)}:e.shrink?{glue:ys(e.glue,t),shrink:ys(e.shrink,t)}:e.grow?{glue:ys(e.glue,t),grow:ys(e.grow,t)}:{glue:ys(e.glue,t)}:null}var ac={"p@":{dimension:1},"z@":{dimension:0},maxdimen:{dimension:16383.99999},hfuzz:{dimension:.1},vfuzz:{dimension:.1},overfullrule:{dimension:5},hsize:{dimension:6.5,unit:"in"},vsize:{dimension:8.9,unit:"in"},parindent:{dimension:20},maxdepth:{dimension:4},splitmaxdepth:{register:"maxdimen"},boxmaxdepth:{register:"maxdimen"},delimitershortfall:{dimension:5},nulldelimiterspace:{dimension:1.2,unit:"pt"},scriptspace:{dimension:.5},topskip:{dimension:10},splittopskip:{dimension:10},normalbaselineskip:{dimension:12},normallineskip:{dimension:1},normallineskiplimit:{dimension:0},jot:{dimension:3},doublerulesep:{dimension:2},arrayrulewidth:{dimension:.4},arraycolsep:{dimension:5},fboxsep:{dimension:3},fboxrule:{dimension:.4},"z@skip":{glue:{dimension:0},shrink:{dimension:0},grow:{dimension:0}},hideskip:{glue:{dimension:-1e3},grow:{dimension:1,unit:"fill"}},"@flushglue":{glue:{dimension:0},grow:{dimension:1,unit:"fill"}},parskip:{glue:{dimension:0},grow:{dimension:1}},abovedisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},abovedisplayshortskip:{glue:{dimension:0},grow:{dimension:3}},belowdisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},belowdisplayshortskip:{glue:{dimension:7},grow:{dimension:3},shrink:{dimension:4}},parfillskip:{glue:{dimension:0},grow:{dimension:1,unit:"fil"}},thinmuskip:{glue:{dimension:3,unit:"mu"}},medmuskip:{glue:{dimension:4,unit:"mu"},grow:{dimension:2,unit:"mu"},shrink:{dimension:4,unit:"mu"}},thickmuskip:{glue:{dimension:5,unit:"mu"},grow:{dimension:5,unit:"mu"}},smallskipamount:{glue:{dimension:3},grow:{dimension:1},shrink:{dimension:1}},medskipamount:{glue:{dimension:6},grow:{dimension:2},shrink:{dimension:3}},bigskipamount:{glue:{dimension:12},grow:{dimension:2},shrink:{dimension:4}},pretolerance:100,tolerance:200,hbadness:1e3,vbadness:1e3,linepenalty:10,hyphenpenalty:50,exhyphenpenalty:50,binoppenalty:700,relpenalty:500,clubpenalty:150,widowpenalty:150,displaywidowpenalty:50,brokenpenalty:100,predisplaypenalty:1e4,doublehyphendemerits:1e4,finalhyphendemerits:5e3,adjdemerits:1e4,tracinglostchars:1,uchyph:1,delimiterfactor:901,defaulthyphenchar:"\\-",defaultskewchar:-1,newlinechar:-1,showboxbreadth:5,showboxdepth:3,errorcontextlines:5,interdisplaylinepenalty:100,interfootnotelinepenalty:100,baselineSkip:1.2,arraystretch:1,month:new Date().getMonth()+1,day:new Date().getDate(),year:new Date().getFullYear()};function FA(){return f({},ac)}function Nc(){return{registers:FA(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:G.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:je,backgroundColorMap:X,getMacro:e=>zt(e,lt())}}var la=class Xh{constructor(t,r){var n,i,s,A,M,$,q,Ae,Qe,ut,Ft,Nt,Fr,In,Cr;let an;t!=null&&t.parent?(this.parent=t.parent,an=t.parent,this.registers={}):(an=f(f({},Nc()),(n=t==null?void 0:t.from)!=null?n:{}),this.registers=an.registers),an.atomIdsSettings&&(this.atomIdsSettings=f({},an.atomIdsSettings)),this.renderPlaceholder=an.renderPlaceholder,this.isPhantom=(A=(s=t==null?void 0:t.isPhantom)!=null?s:(i=this.parent)==null?void 0:i.isPhantom)!=null?A:!1,this.letterShapeStyle=an.letterShapeStyle,this.minFontScale=an.minFontScale,r!=null&&r.color&&r.color!=="none"?this.color=r.color:this.color=($=(M=this.parent)==null?void 0:M.color)!=null?$:"",r!=null&&r.backgroundColor&&r.backgroundColor!=="none"?this.backgroundColor=r.backgroundColor:this.backgroundColor=(Ae=(q=this.parent)==null?void 0:q.backgroundColor)!=null?Ae:"",r!=null&&r.fontSize&&r.fontSize!=="auto"&&r.fontSize!==((Qe=this.parent)==null?void 0:Qe.size)?this.size=r.fontSize:this.size=(Ft=(ut=this.parent)==null?void 0:ut.size)!=null?Ft:Lo;let Rn=(Fr=(Nt=this.parent)==null?void 0:Nt.mathstyle)!=null?Fr:Ba.displaystyle;if(typeof(t==null?void 0:t.mathstyle)=="string"){if(an instanceof Xh)switch(t.mathstyle){case"cramp":Rn=Rn.cramp;break;case"superscript":Rn=Rn.sup;break;case"subscript":Rn=Rn.sub;break;case"numerator":Rn=Rn.fracNum;break;case"denominator":Rn=Rn.fracDen;break}switch(t.mathstyle){case"textstyle":Rn=Ba.textstyle;break;case"displaystyle":Rn=Ba.displaystyle;break;case"scriptstyle":Rn=Ba.scriptstyle;break;case"scriptscriptstyle":Rn=Ba.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=Rn,this.smartFence=an.smartFence,this.placeholderSymbol=an.placeholderSymbol,this.colorMap=(In=an.colorMap)!=null?In:pn=>pn,this.backgroundColorMap=(Cr=an.backgroundColorMap)!=null?Cr:pn=>pn,this.getMacro=an.getMacro,console.assert(this.parent!==void 0||this.registers!==void 0)}makeID(){if(!this.atomIdsSettings)return;if(this.atomIdsSettings.overrideID)return this.atomIdsSettings.overrideID;if(typeof this.atomIdsSettings.seed!="number")return`${Date.now().toString(36).slice(-2)}${Math.floor(Math.random()*1e5).toString(36)}`;const t=this.atomIdsSettings.seed.toString(36);return this.atomIdsSettings.seed+=1,t}scale(t){return t*this.effectiveFontSize}get scalingFactor(){return this.parent?this.effectiveFontSize/this.parent.effectiveFontSize:1}get isDisplayStyle(){return this.mathstyle.id===Pc||this.mathstyle.id===yc}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(ds[Math.max(1,this.size+this.mathstyle.sizeDelta)],this.minFontScale)}getRegister(t){var r;if((r=this.registers)!=null&&r[t])return this.registers[t];if(this.parent)return this.parent.getRegister(t)}getRegisterAsNumber(t){const r=this.getRegister(t);if(typeof r=="number")return r;if(typeof r=="string")return Number(r)}getRegisterAsGlue(t){var r;if((r=this.registers)!=null&&r[t]){const n=this.registers[t];return typeof n=="object"&&"glue"in n?n:typeof n=="object"&&"dimension"in n?{glue:{dimension:n.dimension}}:typeof n=="number"?{glue:{dimension:n}}:void 0}if(this.parent)return this.parent.getRegisterAsGlue(t)}getRegisterAsEm(t,r){return Wl(this.getRegisterAsDimension(t),r)}getRegisterAsDimension(t){var r;if((r=this.registers)!=null&&r[t]){const n=this.registers[t];return typeof n=="object"&&"glue"in n?n.glue:typeof n=="object"&&"dimension"in n?n:typeof n=="number"?{dimension:n}:void 0}if(this.parent)return this.parent.getRegisterAsDimension(t)}setRegister(t,r){if(r===void 0){delete this.registers[t];return}this.registers[t]=r}evaluate(t){if(!t||!("register"in t))return t;let r=this;if("global"in t&&t.global)for(;r.parent;)r=r.parent;let n=1;"factor"in t&&t.factor!==1&&t.factor!==void 0&&(n=t.factor);const i=r.getRegister(t.register);if(i===void 0)return;if(typeof i=="string")return{string:Number(i).toString()+i};if(typeof i=="number")return{number:n*i};const s=r.evaluate(i);if(s!==void 0)return"string"in s?{string:Number(i).toString()+s.string}:"number"in s?{number:n*s.number}:"dimension"in s?E(f({},s),{dimension:n*s.dimension}):"glue"in s?E(f({},s),{glue:E(f({},s.glue),{dimension:n*s.glue.dimension}),shrink:s.shrink?E(f({},s.shrink),{dimension:n*s.shrink.dimension}):void 0,grow:s.grow?E(f({},s.grow),{dimension:n*s.grow.dimension}):void 0}):t}toDimension(t){const r=this.evaluate(t);return r===void 0?null:"dimension"in r?r:"glue"in r?r.glue:"number"in r?{dimension:r.number}:null}toEm(t,r){if(t===null)return 0;const n=this.toDimension(t);return n===null?0:Zs(n,r)/is}toNumber(t){if(t===null)return null;const r=this.evaluate(t);return r===void 0?null:"number"in r?r.number:"dimension"in r?r.dimension:"glue"in r?r.glue.dimension:"string"in r?Number(r.string):null}toColor(t){var r,n;if(t===null)return null;const i=this.evaluate(t);return i===void 0?null:"string"in i?(n=(r=this.colorMap)==null?void 0:r.call(this,i.string))!=null?n:i.string:null}toBackgroundColor(t){var r,n;if(t===null)return null;const i=this.evaluate(t);return i===void 0?null:"string"in i?(n=(r=this.backgroundColorMap)==null?void 0:r.call(this,i.string))!=null?n:i.string:null}},Oc=["body","above","below","superscript","subscript"];function Gl(e){return typeof e=="string"&&Oc.includes(e)}function IA(e){return e!==void 0&&Array.isArray(e)&&e.length===2}var zr=class Yu{constructor(t){var r,n,i,s,A,M;this.type=t.type,typeof t.value=="string"&&(this.value=t.value),this.command=(n=(r=t.command)!=null?r:this.value)!=null?n:"",this.mode=(i=t.mode)!=null?i:"math",t.isFunction&&(this.isFunction=!0),t.limits&&(this.subsupPlacement=t.limits),this.style=f({},t.style),this.displayContainsHighlight=(s=t.displayContainsHighlight)!=null?s:!1,this.captureSelection=(A=t.captureSelection)!=null?A:!1,this.skipBoundary=(M=t.skipBoundary)!=null?M:!1,t.verbatimLatex!==void 0&&t.verbatimLatex!==null&&(this.verbatimLatex=t.verbatimLatex),t.args&&(this.args=t.args),t.body&&(this.body=t.body),this._changeCounter=0}static createBox(t,r,n){var i;if(!r)return null;const s=yd(r),A=[];for(const $ of s){const q=$[0].style,Ae=Qu(t,$,{style:{color:q.color,backgroundColor:q.backgroundColor,fontSize:q.fontSize}});Ae&&A.push(Ae)}if(A.length===0)return null;const M=((i=n==null?void 0:n.classes)!=null?i:"").trim();return A.length===1&&!M&&!(n!=null&&n.type)?A[0].wrap(t):new fn(A,{classes:M,type:n==null?void 0:n.type}).wrap(t)}static serialize(t,r){return Ns.serialize(t,r)}static commonAncestor(t,r){if(t===r||t.parent===r.parent)return t.parent;const n=new WeakSet;let{parent:i}=t;for(;i;)n.add(i),i=i.parent;for(i=r.parent;i;){if(n.has(i))return i;i=i.parent}console.assert(!!i)}static fromJson(t){return typeof t=="string"?new Yu({type:"mord",value:t,mode:"math"}):new Yu(t)}get latexMode(){return this.mode==="math"?"math":"text"}toJson(){const t={};if(this.type&&(t.type=this.type),this.mode!=="math"&&(t.mode=this.mode),this.command&&this.command!==this.value&&(t.command=this.command),this.value!==void 0&&(t.value=this.value),this.style&&Object.keys(this.style).length>0&&(t.style=f({},this.style)),this.verbatimLatex!==void 0&&(t.verbatimLatex=this.verbatimLatex),this.subsupPlacement&&(t.subsupPlacement=this.subsupPlacement),this.explicitSubsupPlacement&&(t.explicitSubsupPlacement=!0),this.isFunction&&(t.isFunction=!0),this.displayContainsHighlight&&(t.displayContainsHighlight=!0),this.isExtensibleSymbol&&(t.isExtensibleSymbol=!0),this.skipBoundary&&(t.skipBoundary=!0),this.captureSelection&&(t.captureSelection=!0),this.args&&(t.args=GA(this.args)),this._branches)for(const r of Object.keys(this._branches))this._branches[r]&&(t[r]=this._branches[r].filter(n=>n.type!=="first").map(n=>n.toJson()));return t.type==="mord"&&Object.keys(t).length===2&&"value"in t?t.value:t}get changeCounter(){return this.parent?this.parent.changeCounter:this._changeCounter}set isDirty(t){if(t){this.parent||this._changeCounter++,"verbatimLatex"in this&&(this.verbatimLatex=void 0),this._children=void 0;let{parent:r}=this;for(;r;)r.parent||r._changeCounter++,"verbatimLatex"in r&&(r.verbatimLatex=void 0),r._children=void 0,r=r.parent}}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=gt(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):this.body&&this.command?Ca([So(this.command,this.bodyToLatex(t)),this.supsubToLatex(t)]):this.body?Ca([this.bodyToLatex(t),this.supsubToLatex(t)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(t){var r;return Ns.serialize(this.body,E(f({},t),{defaultMode:(r=t.defaultMode)!=null?r:this.latexMode}))}aboveToLatex(t){return Ns.serialize(this.above,t)}belowToLatex(t){return Ns.serialize(this.below,t)}supsubToLatex(t){let r="";if(t=E(f({},t),{defaultMode:"math"}),this.branch("subscript")!==void 0){const n=Ns.serialize(this.subscript,t);n.length===0?r+="_{}":n.length===1?/^[0-9]$/.test(n)?r+=`_${n}`:r+=`_{${n}}`:r+=`_{${n}}`}if(this.branch("superscript")!==void 0){const n=Ns.serialize(this.superscript,t);n.length===0?r+="^{}":n.length===1?n==="\u2032"?r+="^\\prime ":n==="\u2033"?r+="^\\doubleprime ":/^[0-9]$/.test(n)?r+=`^${n}`:r+=`^{${n}}`:r+=`^{${n}}`}return r}get treeDepth(){let t=1,r=this.parent;for(;r;)r=r.parent,t+=1;return t}get inCaptureSelection(){let t=this;for(;t;){if(t.captureSelection)return!0;t=t.parent}return!1}get parentPrompt(){let t=this.parent;for(;t;){if(t.type==="prompt"&&!t.captureSelection)return t;t=t.parent}return null}branch(t){if(Gl(t)&&this._branches)return this._branches[t]}get branches(){if(!this._branches)return[];const t=[];for(const r of Oc)this._branches[r]&&t.push(r);return t}createBranch(t){return console.assert(Gl(t)),Gl(t)?(this._branches?this._branches[t]||(this._branches[t]=[this.makeFirstAtom(t)]):this._branches={[t]:[this.makeFirstAtom(t)]},this.isDirty=!0,this._branches[t]):[]}get row(){return IA(this.parentBranch)?this.parentBranch[0]:-1}get col(){return IA(this.parentBranch)?this.parentBranch[1]:-1}get body(){var t;return(t=this._branches)==null?void 0:t.body}set body(t){this.setChildren(t,"body")}get superscript(){var t;return(t=this._branches)==null?void 0:t.superscript}set superscript(t){this.setChildren(t,"superscript")}get subscript(){var t;return(t=this._branches)==null?void 0:t.subscript}set subscript(t){this.setChildren(t,"subscript")}get above(){var t;return(t=this._branches)==null?void 0:t.above}set above(t){this.setChildren(t,"above")}get below(){var t;return(t=this._branches)==null?void 0:t.below}set below(t){this.setChildren(t,"below")}get computedStyle(){var t,r;const n=typeof this.style.verbatimColor=="string",i=typeof this.style.verbatimBackgroundColor=="string",s=f(f({},(r=(t=this.parent)==null?void 0:t.computedStyle)!=null?r:{}),this.style);return delete s.variant,delete s.variantStyle,i||delete s.verbatimBackgroundColor,n||delete s.verbatimColor,s}applyStyle(t){this.isDirty=!0,this.style=f(f({},this.style),t),this.style.fontFamily==="none"&&delete this.style.fontFamily,this.style.fontShape==="auto"&&delete this.style.fontShape,this.style.fontSeries==="auto"&&delete this.style.fontSeries,this.style.color==="none"&&(delete this.style.color,delete this.style.verbatimColor),this.style.backgroundColor==="none"&&(delete this.style.backgroundColor,delete this.style.verbatimBackgroundColor),this.style.fontSize==="auto"&&delete this.style.fontSize;for(const r of this.children)r.applyStyle(t)}getInitialBaseElement(){var t,r,n;return this.hasEmptyBranch("body")?this:(console.assert(((t=this.body)==null?void 0:t[0].type)==="first"),(n=(r=this.body[1])==null?void 0:r.getInitialBaseElement())!=null?n:this)}getFinalBaseElement(){return this.hasEmptyBranch("body")?this:this.body[this.body.length-1].getFinalBaseElement()}isCharacterBox(){return this.type==="leftright"||this.type==="genfrac"||this.type==="subsup"||this.type==="delim"||this.type==="array"||this.type==="surd"?!1:this.getFinalBaseElement().type==="mord"}hasEmptyBranch(t){const r=this.branch(t);return r?(console.assert(r.length>0),console.assert(r[0].type==="first"),r.length===1):!0}setChildren(t,r){var n;if(!t||(console.assert(Gl(r)),!Gl(r)))return;console.assert(((n=t[0])==null?void 0:n.type)!=="first");const i=[this.makeFirstAtom(r),...t];this._branches?this._branches[r]=i:this._branches={[r]:i};for(const s of t)s.parent=this,s.parentBranch=r;this.isDirty=!0}makeFirstAtom(t){const r=new Yu({type:"first",mode:this.mode});return r.parent=this,r.parentBranch=t,r}addChild(t,r){console.assert(t.type!=="first"),this.createBranch(r).push(t),this.isDirty=!0,t.parent=this,t.parentBranch=r}addChildBefore(t,r){console.assert(r.parentBranch!==void 0);const n=this.createBranch(r.parentBranch);n.splice(n.indexOf(r),0,t),this.isDirty=!0,t.parent=this,t.parentBranch=r.parentBranch}addChildAfter(t,r){console.assert(r.parentBranch!==void 0);const n=this.createBranch(r.parentBranch);n.splice(n.indexOf(r)+1,0,t),this.isDirty=!0,t.parent=this,t.parentBranch=r.parentBranch}addChildren(t,r){const n=this.createBranch(r);for(const i of t)i.parent=this,i.parentBranch=r,n.push(i);this.isDirty=!0}addChildrenAfter(t,r){console.assert(t.length===0||t[0].type!=="first"),console.assert(r.parentBranch!==void 0);const n=this.createBranch(r.parentBranch);n.splice(n.indexOf(r)+1,0,...t),this.isDirty=!0;for(const i of t)i.parent=this,i.parentBranch=r.parentBranch;return t[t.length-1]}removeBranch(t){const r=this.branch(t);if(Gl(t)&&(this._branches[t]=void 0),!r)return[];for(const n of r)n.parent=void 0,n.parentBranch=void 0;return console.assert(r[0].type==="first"),r.shift(),this.isDirty=!0,r}removeChild(t){if(console.assert(t.parent===this),t.type==="first")return;const r=this.branch(t.parentBranch),n=r.indexOf(t);console.assert(n>=0),r.splice(n,1),this.isDirty=!0,t.parent=void 0,t.parentBranch=void 0}get siblings(){return this.parent?this.parent.branch(this.parentBranch):[]}get firstSibling(){return this.siblings[0]}get lastSibling(){const{siblings:t}=this;return t[t.length-1]}get isFirstSibling(){return this===this.firstSibling}get isLastSibling(){return this===this.lastSibling}get hasNoSiblings(){return this.siblings.length===1}get leftSibling(){console.assert(this.parent!==void 0);const t=this.parent.branch(this.parentBranch);return t[t.indexOf(this)-1]}get rightSibling(){console.assert(this.parent!==void 0);const t=this.parent.branch(this.parentBranch);return t[t.indexOf(this)+1]}get hasChildren(){return!!(this._branches&&this.children.length>0)}get firstChild(){return console.assert(this.hasChildren),this.children[0]}get lastChild(){console.assert(this.hasChildren);const{children:t}=this;return t[t.length-1]}get children(){if(this._children)return this._children;if(!this._branches)return[];const t=[];for(const r of Oc)if(this._branches[r])for(const n of this._branches[r])t.push(...n.children),t.push(n);return this._children=t,t}render(t){if(this.type==="first"&&!t.atomIdsSettings)return null;const r=gt(this.command,this.mode);if(r!=null&&r.render)return r.render(this,t);const n=new la({parent:t},this.style);let i=this.createBox(n,{classes:this.parent?"":"ML__base"});return i?(!this.subsupPlacement&&(this.superscript||this.subscript)&&(i=this.attachSupsub(n,{base:i})),i.wrap(n)):null}attachSupsub(t,r){var n;const i=r.base,s=this.superscript,A=this.subscript;if(!s&&!A)return i;let M=null,$=null;const q=(n=r.isCharacterBox)!=null?n:this.isCharacterBox();let Ae=0;if(s){const Fr=new la({parent:t,mathstyle:"superscript"});M=Yu.createBox(Fr,s),q||(Ae=i.height-t.metrics.supDrop*Fr.scalingFactor)}let Qe=0;if(A){const Fr=new la({parent:t,mathstyle:"subscript"});$=Yu.createBox(Fr,A),q||(Qe=i.depth+t.metrics.subDrop*Fr.scalingFactor)}let ut;t.isDisplayStyle?ut=t.metrics.sup1:t.isCramped?ut=t.metrics.sup3:ut=t.metrics.sup2;const Ft=.5/is/t.scalingFactor;let Nt=null;if($&&M){Ae=Math.max(Ae,ut,M.depth+.25*t.metrics.xHeight),Qe=Math.max(Qe,t.metrics.sub2);const Fr=t.metrics.defaultRuleThickness;if(Ae-M.depth-($.height-Qe)<4*Fr){Qe=4*Fr-(Ae-M.depth)+$.height;const Cr=.8*t.metrics.xHeight-(Ae-M.depth);Cr>0&&(Ae+=Cr,Qe-=Cr)}const In=this.isExtensibleSymbol&&i.italic?-i.italic:0;Nt=new Xo({individualShift:[{box:$,shift:Qe,marginLeft:In},{box:M,shift:-Ae}]}).wrap(t)}else $&&!M?(Qe=Math.max(Qe,t.metrics.sub1,$.height-.8*as),Nt=new Xo({shift:Qe,children:[{box:$,marginRight:Ft,marginLeft:this.isCharacterBox()?-i.italic:0}]})):!$&&M&&(Ae=Math.max(Ae,ut,M.depth+.25*as),Nt=new Xo({shift:-Ae,children:[{box:M,marginRight:Ft}]}));return new fn([i,new fn(Nt,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:r.type})}attachLimits(t,r){const n=this.superscript?Yu.createBox(new la({parent:t,mathstyle:"superscript"},this.style),this.superscript):null,i=this.subscript?Yu.createBox(new la({parent:t,mathstyle:"subscript"},this.style),this.subscript):null;return!n&&!i?r.base.wrap(t):ZA(t,E(f({},r),{above:n,below:i}))}bind(t,r){if(!r||t.isPhantom||this.value==="\u200B")return r;let n=this.parent;for(;n&&!n.captureSelection;)n=n.parent;return n!=null&&n.captureSelection||(this.id||(this.id=t.makeID()),r.atomID=this.id),r}createBox(t,r){var n,i,s,A;const M=(n=this.value)!=null?n:this.body,$=(i=r==null?void 0:r.boxType)!=null?i:$l(this.type);let q=(s=r==null?void 0:r.classes)!=null?s:"";this.mode==="text"&&(q+=" ML__text");const Ae=typeof M=="string"||M===void 0?new fn(M!=null?M:null,{type:$,isSelected:this.isSelected,mode:this.mode,maxFontSize:t.scalingFactor,style:E(f({variant:"normal"},this.style),{fontSize:Math.max(1,t.size+t.mathstyle.sizeDelta)}),letterShapeStyle:t.letterShapeStyle,classes:q}):(A=Yu.createBox(t,M,{type:$,classes:q}))!=null?A:new fn(null);return t.isTight&&(Ae.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(Ae.italic=0),Ae.right=Ae.italic,this.bind(t,Ae),this.caret&&!this.superscript&&!this.subscript&&(Ae.caret=this.caret),Ae}isDigit(){var t;return this.type==="mord"&&this.value?/^[\d,\.]$/.test(this.value):this.type==="group"&&((t=this.body)==null?void 0:t.length)===2?this.body[0].type==="first"&&this.body[1].value===",":!1}asDigit(){var t;return this.type==="mord"&&this.value&&/^[\d,\.]$/.test(this.value)?this.value:this.type==="group"&&((t=this.body)==null?void 0:t.length)===2&&this.body[0].type==="first"&&this.body[1].value===","?".":""}};function yd(e){let t;const r=[];let n=[];for(const i of e)if(!t&&!i.style)n.push(i);else{const s=i.computedStyle;t&&s.color===t.color&&s.backgroundColor===t.backgroundColor&&s.fontSize===t.fontSize?n.push(i):(n.length>0&&r.push(n),n=[i],t=s)}return n.length>0&&r.push(n),r}function Qu(e,t,r){var n,i,s,A,M;if(!t||t.length===0)return null;const $=new la({parent:e},r.style),q=!((n=$.atomIdsSettings)!=null&&n.groupNumbers);let Ae=[];if(t.length===1){const ut=t[0],Ft=ut.render($);Ft&&(q&&ut.isSelected&&Ft.selected(!0),Ae=[Ft])}else{let ut="",Ft=!0;for(const Nt of t){(i=$.atomIdsSettings)!=null&&i.groupNumbers&&ut&&(Ft&&Nt.isDigit()||!Ft&&WA(Nt))&&($.atomIdsSettings.overrideID=ut);const Fr=Nt.render($);$.atomIdsSettings&&($.atomIdsSettings.overrideID=void 0),Fr&&((s=$.atomIdsSettings)!=null&&s.groupNumbers&&((Nt.isDigit()||WA(Nt))&&(!ut||Ft!==Nt.isDigit())&&(Ft=Nt.isDigit(),ut=(A=Nt.id)!=null?A:""),ut&&(!(Nt.isDigit()||WA(Nt))||!Nt.hasEmptyBranch("superscript")||!Nt.hasEmptyBranch("subscript"))&&(ut="")),q&&Nt.isSelected&&Fr.selected(!0),Ae.push(Fr))}}if(Ae.length===0)return null;const Qe=new fn(Ae,E(f({isTight:$.isTight},r),{type:(M=r.type)!=null?M:"lift"}));return Qe.isSelected=Ae.every(ut=>ut.isSelected),Qe.wrap($)}function WA(e){return e.mode==="text"}function GA(e){return e.map(t=>t===null?"<null>":Array.isArray(t)&&t[0]instanceof zr?{atoms:t.map(r=>r.toJson())}:typeof t=="object"&&"group"in t?{group:t.group.map(r=>r.toJson())}:t)}var oc=class Jh extends zr{constructor(t,r,n){super({type:"text",command:t,mode:"text",displayContainsHighlight:!0}),this.value=r,this.verbatimLatex=r,this.applyStyle(n)}static fromJson(t){return new Jh(t.command,t.value,t.style)}render(t){const r=this.createBox(t);return this.caret&&(r.caret=this.caret),r}_serialize(t){var r;return(r=this.verbatimLatex)!=null?r:Ut("text",this.value.codePointAt(0))}};function Ku(e,t){if(e.direction===t.direction){const r=e.ranges.length;if(t.ranges.length===r){let n=0;for(;n<r&&Au(e.ranges[n],t.ranges[n])==="equal";)n++;return n===r?"equal":"different"}}return"different"}function Au(e,t){return e[0]===t[0]&&e[1]===t[1]?"equal":"different"}function Is(e){let t=1/0,r=-1/0;for(const n of e.ranges)t=Math.min(t,n[0],n[1]),r=Math.max(r,n[0],n[1]);return[t,r]}function Tc(e){return typeof e=="number"&&!Number.isNaN(e)}function Yc(e){return Array.isArray(e)&&e.length===2}function Uc(e){return e!=null&&typeof e=="object"&&"ranges"in e&&Array.isArray(e.ranges)}function Hu(e,t){const r=e.at(t);let n;if(r){n=r.mode;let i=r.parent;for(;!n&&i;)i&&(n=i.mode),i=i.parent}return n}function Rc(e,t){if(!t)return"";if(typeof t=="string")return t;if(!e||t.after===void 0)return t.value;let r=!1,n=!1,i=!1,s=!1,A=!1,M=!1,$=!1,q=!1,Ae=!1,Qe=!1,ut=!1,Ft=!1,Nt=!1,Fr=!1,In=!1,Cr=e[0],an=0;for(;Cr!=null&&Cr.type&&/^(subsup|placeholder)$/.test(Cr.type);)an+=1,Cr=e[an];return r=!Cr||Cr.type==="first",Cr&&(Fr=Cr.mode==="text",n=!Fr&&Cr.type==="mord"&&m.test(Cr.value),i=!Fr&&Cr.type==="mord"&&/\d+$/.test(Cr.value),s=!Fr&&Cr.isFunction,A=Cr.type==="genfrac",M=Cr.type==="surd",$=Cr.type==="mbin",q=Cr.type==="mrel",Ae=Cr.type==="mop"||Cr.type==="operator"||Cr.type==="extensible-symbol",Qe=Cr.type==="mpunct"||Cr.type==="minner",ut=Cr.type==="array",Ft=Cr.type==="mopen",Nt=Cr.type==="mclose"||Cr.type==="leftright",In=Cr.type==="space"),t.after.includes("nothing")&&r||t.after.includes("letter")&&n||t.after.includes("digit")&&i||t.after.includes("function")&&s||t.after.includes("frac")&&A||t.after.includes("surd")&&M||t.after.includes("binop")&&$||t.after.includes("relop")&&q||t.after.includes("operator")&&Ae||t.after.includes("punct")&&Qe||t.after.includes("array")&&ut||t.after.includes("openfence")&&Ft||t.after.includes("closefence")&&Nt||t.after.includes("text")&&Fr||t.after.includes("space")&&In?t.value:""}function MA(e,t,r){return r?Rc(e,r[t]):""}var D={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\doubleprime}","'''":"^{\\prime\\prime\\prime}","''''":"^{\\prime\\prime\\prime\\prime}",alpha:"\\alpha",delta:"\\delta",Delta:"\\Delta",pi:"\\pi",Pi:"\\Pi",theta:"\\theta",Theta:"\\Theta",ii:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryI"},jj:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryJ"},ee:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\exponentialE"},nabla:"\\nabla",grad:"\\nabla",del:"\\partial",deg:{after:"digit+space",value:"\\degree"},infty:"\\infty","\u221E":"\\infty",oo:{after:"nothing+digit+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\infty"},"\u2211":"\\sum",sum:"\\sum_{#?}^{#?}",int:"\\int_{#?}^{#?}",prod:"\\prod_{#?}^{#?}",sqrt:"\\sqrt{#?}","\u2206":"\\differentialD","\u2202":"\\differentialD",arcsin:"\\arcsin",arccos:"\\arccos",arctan:"\\arctan",arcsec:"\\arcsec",arccsc:"\\arccsc",arsinh:"\\arsinh",arcosh:"\\arcosh",artanh:"\\artanh",arcsech:"\\arcsech",arccsch:"\\arccsch",arg:"\\arg",ch:"\\ch",cosec:"\\cosec",cosh:"\\cosh",cot:"\\cot",cotg:"\\cotg",coth:"\\coth",csc:"\\csc",ctg:"\\ctg",cth:"\\cth",sec:"\\sec",sinh:"\\sinh",sh:"\\sh",tanh:"\\tanh",tg:"\\tg",th:"\\th",sin:"\\sin",cos:"\\cos",tan:"\\tan",lg:"\\lg",lb:"\\lb",log:"\\log",ln:"\\ln",exp:"\\exp",lim:"\\lim_{#?}",dx:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD x"},dy:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD y"},dt:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD t"},AA:"\\forall",EE:"\\exists","!EE":"\\nexists","&&":"\\land",xin:{after:"nothing+text+relop+punct+openfence+space",value:"x \\in"},sint:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\sin t"},in:{after:"nothing+letter+closefence",value:"\\in"},"!in":"\\notin",NN:"\\mathbb{N}",ZZ:"\\Z",QQ:"\\Q",RR:"\\R",CC:"\\C",xx:"\\times","+-":"\\pm","\u2260":"\\ne","!=":"\\ne","\u2265":"\\ge",">=":"\\ge","\u2264":"\\le","<=":"\\le","<<":"\\ll",">>":"\\gg","~~":"\\approx","\u2248":"\\approx","?=":"\\questeq","\xF7":"\\div","\xAC":"\\neg",":=":"\\coloneq","::":"\\Colon","(:":"\\langle",":)":"\\rangle",beta:"\\beta",chi:"\\chi",epsilon:"\\epsilon",varepsilon:"\\varepsilon",eta:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\eta"},gamma:"\\gamma",Gamma:"\\Gamma",iota:"\\iota",kappa:"\\kappa",lambda:"\\lambda",Lambda:"\\Lambda",mu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\mu"},nu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\nu"},\u00B5:"\\mu",phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\phi"},Phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Phi"},varphi:"\\varphi",psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\psi"},Psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Psi"},rho:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\rho"},sigma:"\\sigma",Sigma:"\\Sigma",tau:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\tau"},vartheta:"\\vartheta",upsilon:"\\upsilon",xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\xi"},Xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Xi"},zeta:"\\zeta",omega:"\\omega",Omega:"\\Omega",\u03A9:"\\omega",forall:"\\forall",exists:"\\exists","!exists":"\\nexists",":.":"\\therefore",liminf:"\\liminf_{#?}",limsup:"\\limsup_{#?}",argmin:"\\operatorname*{arg~min}_{#?}",argmax:"\\operatorname*{arg~max}_{#?}",det:"\\det",mod:"\\bmod{#?}","(mod":"\\pmod{#?}",max:"\\max",min:"\\min",erf:"\\operatorname{erf}",erfc:"\\operatorname{erfc}",bessel:"\\operatorname{bessel}",mean:"\\operatorname{mean}",median:"\\operatorname{median}",fft:"\\operatorname{fft}",lcm:"\\operatorname{lcm}",gcd:"\\operatorname{gcd}",randomReal:"\\operatorname{randomReal}",randomInteger:"\\operatorname{randomInteger}",Re:"\\operatorname{Re}",Im:"\\operatorname{Im}",mm:{after:"nothing+digit+operator",value:"\\operatorname{mm}"},cm:{after:"nothing+digit+operator",value:"\\operatorname{cm}"},km:{after:"nothing+digit+operator",value:"\\operatorname{km}"},kg:{after:"nothing+digit+operator",value:"\\operatorname{kg}"},"...":"\\ldots","+...":"+\\cdots","-...":"-\\cdots","->...":"\\to\\cdots","-->...":"\\longrightarrow\\cdots","->":"\\to","|->":"\\mapsto","-->":"\\longrightarrow","<--":"\\longleftarrow","=>":"\\Rightarrow","==>":"\\Longrightarrow","<=>":"\\Leftrightarrow","<->":"\\leftrightarrow","(.)":"\\odot","(+)":"\\oplus","(/)":"\\oslash","(*)":"\\otimes","(-)":"\\ominus","||":"\\Vert","*":"\\cdot","**":"\\star","***":"\\ast","//":"\\slash","\\\\":"\\backslash",setminus:"\\backslash","|><":"\\ltimes","><|":"\\rtimes","|><|":"\\bowtie","-:":"\\div",divide:"\\div","@":"\\circ","^^":"\\wedge","^^^":"\\bigwedge",vv:"\\vee",vvv:"\\bigvee",nn:"\\cap",nnn:"\\bigcap",uu:"\\cup",uuu:"\\bigcup","-=":"\\equiv","~=":"\\cong",lt:"<","lt=":"\\leq",gt:">","gt=":"\\geq","-<":"\\prec","-lt":"\\prec","-<=":"\\preceq",">-=":"\\succeq",prop:"\\propto",diamond:"\\diamond",square:"\\square",iff:"\\iff",sub:"\\subset",sup:"\\supset",sube:"\\subseteq",supe:"\\supseteq",uarr:"\\uparrow",darr:"\\downarrow",rarr:"\\rightarrow",rArr:"\\Rightarrow",larr:"\\leftarrow",lArr:"\\Leftarrow",harr:"\\leftrightarrow",hArr:"\\Leftrightarrow",aleph:"\\aleph",and:"\\land",or:"\\lor",not:"\\neg","_|_":"\\bot",TT:"\\top","|--":"\\vdash","|==":"\\models","|__":"\\lfloor","__|":"\\rfloor","|~":"\\lceil","~|":"\\rceil",">->":"\\rightarrowtail","->>":"\\twoheadrightarrow",">->>":"\\twoheadrightarrowtail",frac:"\\frac{#?}{#?}",cbrt:"\\sqrt[3]{#?}",nthroot:"\\sqrt[#?]{#?}"};function We(e,t){var r;let n=(r=t==null?void 0:t.format)!=null?r:"auto";return n==="auto"&&([n,e]=Mi(e)),n==="ascii-math"?(e=e.replace(/\u2061/gu,""),e=e.replace(/\u3016/gu,"{"),e=e.replace(/\u3017/gu,"}"),e=e.replace(/([^\\])sinx/g,"$1\\sin x"),e=e.replace(/([^\\])cosx/g,"$1\\cos x "),e=e.replace(/\u2013/g,"-"),["ascii-math",Lt(e,{inlineShortcuts:t==null?void 0:t.inlineShortcuts})]):["latex",e]}function Lt(e,t){var r,n,i;if(!e)return"";let s=!1,A;const M=(r=t.inlineShortcuts)!=null?r:D;if(!s&&(e.startsWith("^")||e.startsWith("_"))&&(A=Yt(e.slice(1),{inlineShortcuts:M,noWrap:!0}),e=e[0]+"{"+A.match+"}",e+=Lt(A.rest,t),s=!0),s||(A=e.match(/^(sqrt|\u221A)(.*)/),A&&(A=Yt(A[2],{inlineShortcuts:M,noWrap:!0}),e="\\sqrt{"+((n=A.match)!=null?n:"\\placeholder{}")+"}",e+=Lt(A.rest,t),s=!0)),s||(A=e.match(/^(\\cbrt|\u221B)(.*)/),A&&(A=Yt(A[2],{inlineShortcuts:M,noWrap:!0}),e="\\sqrt[3]{"+((i=A.match)!=null?i:"\\placeholder{}")+"}",e+=Lt(A.rest,t),s=!0)),s||(A=e.match(/^abs(.*)/),A&&(A=Yt(A[1],{inlineShortcuts:M,noWrap:!0}),e="\\left|"+A.match+"\\right|",e+=Lt(A.rest,t),s=!0)),s||(A=e.match(/^["”“](.*?)["”“](.*)/),A&&(e="\\text{"+A[1]+"}",e+=Lt(A[2],t),s=!0)),s||(A=e.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),A&&(e=br(A[1],M),e+=Lt(A[2],t),s=!0)),!s&&/^([fgh])[^a-zA-Z]/.test(e)&&(A=Yt(e.slice(1),{inlineShortcuts:M,noWrap:!0}),e=e[1]==="("?e[0]+"\\left("+A.match+"\\right)":e[0]+A.match,e+=Lt(A.rest,t),s=!0),s||(A=e.match(/^([a-zA-Z]+)(.*)/),A&&(e=br(A[1],M),e+=Lt(A[2],t),s=!0)),!s)if(A=Yt(e,{inlineShortcuts:M,noWrap:!0}),A.match&&A.rest[0]==="/"){const $=Yt(A.rest.slice(1),{inlineShortcuts:M,noWrap:!0});$.match&&(e="\\frac{"+A.match+"}{"+$.match+"}"+Lt($.rest,t)),s=!0}else A.match&&(e=e.startsWith("(")?"\\left("+A.match+"\\right)"+Lt(A.rest,t):A.match+Lt(A.rest,t),s=!0);return s||(A=e.match(/^(\s+)(.*)$/),A&&(e=" "+Lt(A[2],t),s=!0)),e}function Yt(e,t){let r="";e=e.trim();let n=e,i=e.charAt(0),s={"(":")","{":"}","[":"]"}[i];if(s){let A=1,M=1;for(;M<e.length&&A>0;)e[M]===i&&A++,e[M]===s&&A--,M++;A===0?(t.noWrap&&i==="("?r=Lt(e.substring(1,M-1),t):(i==="{"&&s==="}"&&(i="\\{",s="\\}"),r="\\left"+i+Lt(e.substring(1,M-1),t)+"\\right"+s),n=e.slice(Math.max(0,M))):(r=e.substring(1,M),n="")}else{let A=e.match(/^([a-zA-Z]+)/);if(A){let M=MA(null,e,t.inlineShortcuts);if(M)return M=M.replace("_{#?}",""),M=M.replace("^{#?}",""),{match:M,rest:e.slice(M.length)}}if(A=e.match(/^([a-zA-Z])/),A)return{match:A[1],rest:e.slice(1)};if(A=e.match(/^(-)?\d+(\.\d*)?/),A)return{match:A[0],rest:e.slice(A[0].length)};/^\\(left|right)/.test(e)||(A=e.match(/^(\\[a-zA-Z]+)/),A&&(n=e.slice(A[1].length),r=A[1]))}return{match:r,rest:n}}function br(e,t){let r=MA(null,e,t);return r?(r=r.replace("_{#?}",""),r=r.replace("^{#?}",""),r+=" "):r=e,r}var Xr=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function _n(e){const t=e.trim();for(const r of Xr)if(t.startsWith(r[0])&&t.endsWith(r[1]))return[!0,t.substring(r[0].length,t.length-r[1].length)];return[!1,e]}function Mi(e){if(e=e.trim(),e.length<=1)return["latex",e];let t;return[t,e]=_n(e),t?["latex",e]:e.startsWith("`")&&e.endsWith("`")?(e=e.substring(1,e.length-1),["ascii-math",e]):e.includes("\\")?["latex",e]:/\$.+\$/.test(e)?["latex",`\\text{${e}}`]:[void 0,e]}var ta="$$",Pa="$$",Fa=(e,t,r)=>(Xr.some(n=>t.startsWith(n[0])&&t.endsWith(n[1]))||(t=`${ta} ${t} ${Pa}`),t),co=class p0{constructor(t){p0._modes[t]=this}static onPaste(t,r,n){var i;if(!r.contentEditable&&r.userSelect==="none")return r.model.announce("plonk"),!1;if(typeof n=="string"){const A=new DataTransfer;A.setData("text/plain",n),n=A}const s=new ClipboardEvent("paste",{clipboardData:n,cancelable:!0});return(i=r.host)!=null&&i.dispatchEvent(s)?p0._modes[t].onPaste(r,n):!1}static copyToClipboard(t,r){if(!t.contentEditable&&t.userSelect==="none"){t.model.announce("plonk");return}const n=t.model,i=n.selectionIsCollapsed?[0,n.lastOffset]:Is(n.selection),s=n.getValue(i,r);navigator.clipboard.writeText(s).then(()=>{},()=>t.model.announce("plonk"))}static onCopy(t,r){var n;if(!r.clipboardData)return;if(!t.contentEditable&&t.userSelect==="none"){t.model.announce("plonk");return}const i=t.model,s=i.selectionIsCollapsed?[0,i.lastOffset]:Is(i.selection);let A=i.getAtoms(s);if(A.every(M=>M.mode==="text"||!M.mode))r.clipboardData.setData("text/plain",A.filter(M=>M instanceof oc).map(M=>M.value).join(""));else if(A.every(M=>M.mode==="latex"))r.clipboardData.setData("text/plain",i.getAtoms(s,{includeChildren:!0}).map(M=>{var $;return($=M.value)!=null?$:""}).join(""));else{let M;A.length===1&&A[0].verbatimLatex!==void 0?M=A[0].verbatimLatex:M=i.getValue(s,"latex-expanded"),r.clipboardData.setData("application/x-latex",M);try{r.clipboardData.setData("text/plain",t.options.onExport(t,M,s))}catch($){}if(A.length===1){const $=A[0];($.type==="root"||$.type==="group")&&(A=$.body.filter(q=>q.type!=="first"))}try{r.clipboardData.setData("application/json+mathlive",JSON.stringify(A.map($=>$.toJson())))}catch($){}if((n=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&n.ComputeEngine){const $=window.MathfieldElement.computeEngine;if($)try{const q=$.jsonSerializationOptions;$.jsonSerializationOptions={metadata:["latex"]};const Ae=$.parse(i.getValue(s,"latex-unstyled"));$.jsonSerializationOptions=q;const Qe=JSON.stringify(Ae.json);Qe&&r.clipboardData.setData("application/json",Qe)}catch(q){}}}r.preventDefault()}static insert(t,r,n={}){var i;const s=n.mode==="auto"?t.mode:(i=n.mode)!=null?i:t.mode;return p0._modes[s].insert(t,r,n)}onPaste(t,r){return!1}insert(t,r,n){return!1}};co._modes={};var aa=co,bs=[{key:"left",command:"moveToPreviousChar"},{key:"right",command:"moveToNextChar"},{key:"up",command:"moveUp"},{key:"down",command:"moveDown"},{key:"shift+[ArrowLeft]",command:"extendSelectionBackward"},{key:"shift+[ArrowRight]",command:"extendSelectionForward"},{key:"shift+[ArrowUp]",command:"extendSelectionUpward"},{key:"shift+[ArrowDown]",command:"extendSelectionDownward"},{key:"[Backspace]",command:"deleteBackward"},{key:"alt+[Delete]",command:"deleteBackward"},{key:"[Delete]",command:"deleteForward"},{key:"alt+[Backspace]",command:"deleteForward"},{key:"alt+[ArrowLeft]",command:"moveToPreviousWord"},{key:"alt+[ArrowRight]",command:"moveToNextWord"},{key:"shift+alt+[ArrowLeft]",command:"extendToPreviousWord"},{key:"shift+alt+[ArrowRight]",command:"extendToNextWord"},{key:"ctrl+[ArrowLeft]",command:"moveToGroupStart"},{key:"ctrl+[ArrowRight]",command:"moveToGroupEnd"},{key:"shift+ctrl+[ArrowLeft]",command:"extendToGroupStart"},{key:"shift+ctrl+[ArrowRight]",command:"extendToGroupEnd"},{key:"[Home]",command:"moveToMathfieldStart"},{key:"cmd+[ArrowLeft]",command:"moveToMathfieldStart"},{key:"shift+[Home]",command:"extendToMathFieldStart"},{key:"shift+cmd+[ArrowLeft]",command:"extendToMathFieldStart"},{key:"[End]",command:"moveToMathfieldEnd"},{key:"cmd+[ArrowRight]",command:"moveToMathfieldEnd"},{key:"shift+[End]",command:"extendToMathFieldEnd"},{key:"shift+cmd+[ArrowRight]",command:"extendToMathFieldEnd"},{key:"[Pageup]",command:"moveToGroupStart"},{key:"[Pagedown]",command:"moveToGroupEnd"},{key:"[Tab]",command:"moveToNextGroup"},{key:"shift+[Tab]",command:"moveToPreviousGroup"},{key:"[Escape]",ifMode:"math",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"text",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"latex",command:["complete","complete",{selectItem:"true"}]},{key:"\\",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[IntlBackslash]",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[Tab]",ifMode:"latex",command:["complete","accept-suggestion"]},{key:"[Return]",ifMode:"latex",command:"complete"},{key:"[Enter]",ifMode:"latex",command:"complete"},{key:"shift+[Escape]",ifMode:"latex",command:["complete","reject"]},{key:"[ArrowDown]",ifMode:"latex",command:"nextSuggestion"},{key:"[ArrowUp]",ifMode:"latex",command:"previousSuggestion"},{key:"ctrl+a",ifPlatform:"!macos",command:"selectAll"},{key:"cmd+a",command:"selectAll"},{key:"[Cut]",command:"cutToClipboard"},{key:"[Copy]",command:"copyToClipboard"},{key:"[Paste]",command:"pasteFromClipboard"},{key:"[Clear]",command:"deleteBackward"},{key:"[Undo]",command:"undo"},{key:"[Redo]",command:"redo"},{key:"[EraseEof]",command:"deleteToGroupEnd"},{key:"ctrl+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"cmd+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"ctrl+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"cmd+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"ctrl+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"cmd+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"ctrl+z",ifPlatform:"!macos",command:"undo"},{key:"cmd+z",command:"undo"},{key:"ctrl+y",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+y",command:"redo"},{key:"shift+ctrl+z",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+z",command:"redo"},{key:"ctrl+b",ifPlatform:"macos",command:"moveToPreviousChar"},{key:"ctrl+f",ifPlatform:"macos",command:"moveToNextChar"},{key:"ctrl+p",ifPlatform:"macos",command:"moveUp"},{key:"ctrl+n",ifPlatform:"macos",command:"moveDown"},{key:"ctrl+a",ifPlatform:"macos",command:"moveToMathfieldStart"},{key:"ctrl+e",ifPlatform:"macos",command:"moveToMathfieldEnd"},{key:"shift+ctrl+b",ifPlatform:"macos",command:"extendSelectionBackward"},{key:"shift+ctrl+f",ifPlatform:"macos",command:"extendSelectionForward"},{key:"shift+ctrl+p",ifPlatform:"macos",command:"extendSelectionUpward"},{key:"shift+ctrl+n",ifPlatform:"macos",command:"extendSelectionDownward"},{key:"shift+ctrl+a",ifPlatform:"macos",command:"extendToMathFieldStart"},{key:"shift+ctrl+e",ifPlatform:"macos",command:"extendToMathFieldEnd"},{key:"alt+ctrl+b",ifPlatform:"macos",command:"moveToPreviousWord"},{key:"alt+ctrl+f",ifPlatform:"macos",command:"moveToNextWord"},{key:"shift+alt+ctrl+b",ifPlatform:"macos",command:"extendToPreviousWord"},{key:"shift+alt+ctrl+f",ifPlatform:"macos",command:"extendToNextWord"},{key:"ctrl+h",ifPlatform:"macos",command:"deleteBackward"},{key:"ctrl+d",ifPlatform:"macos",command:"deleteForward"},{key:"ctrl+l",ifPlatform:"macos",command:"scrollIntoView"},{key:"ctrl+[Digit2]",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"ctrl+[Digit5]",ifMode:"math",command:"moveToOpposite"},{key:"ctrl+[Digit6]",ifMode:"math",command:"moveToSuperscript"},{key:"ctrl+[Return]",ifMode:"math",command:"addRowAfter"},{key:"ctrl+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Return]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"alt+p",ifMode:"math",command:["insert","\\pi"]},{key:"alt+v",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"alt+o",ifMode:"math",command:["insert","\\emptyset"]},{key:"alt+d",ifMode:"math",command:["insert","\\differentialD"]},{key:"shift+alt+o",ifMode:"math",command:["insert","\\varnothing"]},{key:"shift+alt+d",ifMode:"math",command:["insert","\\partial"]},{key:"alt+[Backslash]",ifMode:"math",command:["insert","\\backslash"]},{key:"[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#?}{#@}"]},{key:"shift+alt+k",command:"toggleKeystrokeCaption"},{key:"alt+[Space]",command:"toggleContextMenu"},{key:"alt+shift+[Space]",command:"toggleVirtualKeyboard"},{key:"alt+ctrl+[ArrowUp]",command:["speak","all",{withHighlighting:!1}]},{key:"alt+ctrl+[ArrowDown]",command:["speak","selection",{withHighlighting:!1}]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["switchMode","text","",""]},{key:"shift+alt+[KeyT]",ifMode:"math",command:["switchMode","text","",""]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"text",command:["switchMode","math","",""]},{key:"shift+alt+[KeyT]",ifMode:"text",command:["switchMode","math","",""]},{key:"/",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+shift+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrack #0 \\right\\rbrack"]},{key:"ctrl+[Minus]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"moveToSubscript"},{key:"shift+alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrace #0 \\right\\rbrace"]},{key:"ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"shift+ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"shift+cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"ctrl+[Backspace]",ifMode:"math",command:"removeRow"},{key:"cmd+[Backspace]",ifMode:"math",command:"removeRow"},{key:"alt+[Tab]",ifMode:"math",command:"addColumnAfter"},{key:"shift+alt+[Tab]",ifMode:"math",command:"addColumnBefore"},{key:"alt+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Enter]",ifMode:"math",command:"addRowBefore"},{key:"alt+[Return]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Return]",ifMode:"math",command:"addRowBefore"},{key:"shift+[Backspace]",ifMode:"math",command:"removeColumn"},{key:"alt+[Digit5]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","$\\infty"]},{key:"alt+[Digit9]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","("]},{key:"alt+[Digit0]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert",")"]},{key:"alt+|",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","|"]},{key:"shift+[Backquote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\~"]},{key:"[Backquote]",ifLayout:["windows.french","linux.french"],ifMode:"math",command:["insert","^2"]},{key:"[Backquote]",ifLayout:["windows.german","linux.german"],ifMode:"math",command:["insert","^"]},{key:"[IntlBackslash]",ifLayout:["apple.german"],ifMode:"math",command:["insert","^"]}],Ts={"\\sqrt":["alt+v","ctrl+[Digit2]"],"\\pi":"alt+p","\\infty":"alt+[Digit5]","\\differentialD":"alt+d","\\partial":"shift+alt+d","\\frac":"Slash","\\emptyset":"alt+o","\\varnothing":"shift+alt+o","\\~":"~"};function hs(e){var t;return((t=e.element)==null?void 0:t.mathfield)===e}function el(e){var t,r;return(r=(t=e.querySelector(".ML__caret"))!=null?t:e.querySelector(".ML__text-caret"))!=null?r:e.querySelector(".ML__latex-caret")}function Bl(e){const t=el(e);if(!t)return null;const r=t.getBoundingClientRect();return{x:r.right,y:r.bottom,height:r.height}}function sc(e){var t;if(!e.parent)return"root";let r=(t=e.parent.id)!=null?t:"";return r+=typeof e.parentBranch=="string"?"-"+e.parentBranch:`-${e.parentBranch[0]}/${e.parentBranch[0]}`,r}function Xl(e,t,r){if(!t)return null;const n=e.field.getBoundingClientRect(),i=t.right-t.left,s=t.bottom-t.top,A=Math.ceil(t.left-n.left+e.field.scrollLeft*r),M=Math.ceil(t.top-n.top);return{left:A,right:A+i,top:M,bottom:M+s}}function LA(e){const t=e.getBoundingClientRect(),r=parseInt(getComputedStyle(e).marginRight),n={top:t.top-1,bottom:t.bottom,left:t.left,right:t.right-1+r};if(e.children.length===0||e.tagName.toUpperCase()==="SVG")return n;for(const i of e.children)if(i.nodeType===1&&"atomId"in i.dataset&&!i.classList.contains("pstrut")){const s=LA(i);n.left=Math.min(n.left,s.left),n.right=Math.max(n.right,s.right),n.top=Math.min(n.top,s.top),n.bottom=Math.max(n.bottom,s.bottom)}return n}function qc(e,t){var r,n;if(!t.id)return null;let i=(n=(r=e.atomBoundsCache)==null?void 0:r.get(t.id))!=null?n:null;if(i!==null)return i;const s=e.field.querySelector(`[data-atom-id="${t.id}"]`);return i=s?LA(s):null,e.atomBoundsCache&&(i?e.atomBoundsCache.set(t.id,i):e.atomBoundsCache.delete(t.id)),i!=null?i:null}function uu(e,t,r){const n=new Map;for(const i of e.model.getAtoms(t,{includeChildren:!0})){if(r!=null&&r.excludeAtomsWithBackground&&i.style.backgroundColor)continue;const s=e.field,A=s.offsetWidth;let $=Math.floor(s.getBoundingClientRect().width)/A;$=isNaN($)?1:$;const q=Xl(e,qc(e,i),$);if(q){const Ae=sc(i);if(n.has(Ae)){const Qe=n.get(Ae);n.set(Ae,{left:Math.min(Qe.left,q.left),right:Math.max(Qe.right,q.right),top:Math.min(Qe.top,q.top),bottom:Math.max(Qe.bottom,q.bottom)})}else n.set(Ae,q)}}return[...n.values()]}function XA(e,t){return e.model.selection.ranges.reduce((r,n)=>r.concat(...uu(e,n,t)),[])}function kA(e,t){return e==="*"||t==="none"?!0:t==="same-origin"?!window.origin||e===window.origin:typeof t=="function"?t(e):!1}function JA(e){let t=0,r=0;const n=e.offsetWidth,i=e.offsetHeight;for(;e instanceof HTMLElement;)t+=e.offsetTop,r+=e.offsetLeft,e=e.offsetParent;return new DOMRect(r,t,n,i)}var du=`@keyframes ML__caret-blink {
|
|
|
0%,
|
|
|
100% {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
50% {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
}
|
|
|
.ML__container {
|
|
|
display: inline-flex;
|
|
|
flex-flow: row;
|
|
|
justify-content: space-between;
|
|
|
align-items: flex-end;
|
|
|
min-height: 39px;
|
|
|
/* Need some room for the virtual keyboard toggle */
|
|
|
width: 100%;
|
|
|
/* Encourage browsers to consider allocating a hardware accelerated
|
|
|
layer for this element. */
|
|
|
isolation: isolate;
|
|
|
/* Prevent the browser from trying to interpret touch gestures in the field */
|
|
|
/* "Disabling double-tap to zoom removes the need for browsers to
|
|
|
delay the generation of click events when the user taps the screen." */
|
|
|
touch-action: none;
|
|
|
--_caret-color: var(--caret-color, hsl(var(--_hue), 40%, 49%));
|
|
|
--_selection-color: var(--selection-color, #000);
|
|
|
--_selection-background-color: var(--selection-background-color, hsl(var(--_hue), 70%, 85%));
|
|
|
--_text-highlight-background-color: var(--highlight-text, hsla(var(--_hue), 40%, 50%, 0.1));
|
|
|
--_contains-highlight-background-color: var(--contains-highlight-background-color, hsl(var(--_hue), 40%, 95%));
|
|
|
--_smart-fence-color: var(--smart-fence-color, currentColor);
|
|
|
--_smart-fence-opacity: var(--smart-fence-opacity, 0.5);
|
|
|
--_latex-color: var(--latex-color, hsl(var(--_hue), 80%, 40%));
|
|
|
--_correct-color: var(--correct-color, #10a000);
|
|
|
--_incorrect-color: var(--incorrect-color, #a01b00);
|
|
|
--_composition-background-color: var(--composition-background-color, #fff1c2);
|
|
|
--_composition-text-color: var(--composition-text-color, black);
|
|
|
--_composition-underline-color: var(--composition-underline-color, transparent);
|
|
|
}
|
|
|
/* This is the actual field content (formula) */
|
|
|
.ML__content {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
align-self: center;
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
padding: 2px 3px 2px 1px;
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle,
|
|
|
.ML__menu-toggle {
|
|
|
box-sizing: border-box;
|
|
|
display: flex;
|
|
|
align-self: center;
|
|
|
align-items: center;
|
|
|
flex-shrink: 0;
|
|
|
flex-direction: column;
|
|
|
justify-content: center;
|
|
|
width: 34px;
|
|
|
height: 34px;
|
|
|
padding: 0;
|
|
|
margin-right: 4px;
|
|
|
cursor: pointer;
|
|
|
/* Avoid some weird blinking with :hover */
|
|
|
border-radius: 8px;
|
|
|
border: 1px solid transparent;
|
|
|
transition: background 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
|
|
|
color: hsl(var(--_hue), 40%, 50%);
|
|
|
fill: currentColor;
|
|
|
background: transparent;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle:hover,
|
|
|
.ML__menu-toggle:hover {
|
|
|
background: hsla(0, 0%, 70%, 0.3);
|
|
|
color: #333;
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle > span,
|
|
|
.ML__menu-toggle > span {
|
|
|
display: flex;
|
|
|
align-self: center;
|
|
|
align-items: center;
|
|
|
}
|
|
|
/* The invisible element used to capture keyboard events. We're just trying
|
|
|
really hard to make sure it doesn't show. */
|
|
|
.ML__keyboard-sink {
|
|
|
display: inline-block;
|
|
|
resize: none;
|
|
|
outline: none;
|
|
|
border: none;
|
|
|
/* Need these for Microsoft Edge */
|
|
|
position: fixed;
|
|
|
clip: rect(0 0 0 0);
|
|
|
/* Need this to prevent iOS Safari from auto-zooming */
|
|
|
font-size: 1em;
|
|
|
font-family: KaTeX_Main;
|
|
|
line-height: 0.5;
|
|
|
/* On Chromium, if this is 0, no keyboard events are received */
|
|
|
}
|
|
|
[part="placeholder"] {
|
|
|
color: var(--neutral-400);
|
|
|
}
|
|
|
.ML__composition {
|
|
|
background: var(--_composition-background-color);
|
|
|
color: var(--_composition-text-color);
|
|
|
text-decoration: underline var(--_composition-underline-color);
|
|
|
}
|
|
|
.ML__caret::after {
|
|
|
content: '';
|
|
|
visibility: hidden;
|
|
|
width: 0;
|
|
|
display: inline-block;
|
|
|
height: 0.76em;
|
|
|
--_caret-width: clamp(2px, 0.08em, 10px);
|
|
|
border: none;
|
|
|
border-radius: calc(var(--_caret-width) / 2);
|
|
|
border-right: var(--_caret-width) solid var(--_caret-color);
|
|
|
margin-right: calc(-1 * var(--_caret-width));
|
|
|
position: relative;
|
|
|
left: -0.045em;
|
|
|
bottom: -0.05em;
|
|
|
animation: ML__caret-blink 1.05s step-end forwards infinite;
|
|
|
}
|
|
|
.ML__text-caret::after {
|
|
|
content: '';
|
|
|
visibility: hidden;
|
|
|
width: 0;
|
|
|
display: inline-block;
|
|
|
height: 0.76em;
|
|
|
--_caret-width: clamp(2px, 0.08em, 10px);
|
|
|
border: none;
|
|
|
border-radius: calc(var(--_caret-width) / 2);
|
|
|
border-right: var(--_caret-width) solid var(--_caret-color);
|
|
|
margin-right: calc(-1 * var(--_caret-width));
|
|
|
position: relative;
|
|
|
left: -0.045em;
|
|
|
bottom: -0.05em;
|
|
|
animation: ML__caret-blink 1.05s step-end forwards infinite;
|
|
|
}
|
|
|
.ML__latex-caret::after {
|
|
|
content: '';
|
|
|
visibility: hidden;
|
|
|
--_caret-width: clamp(2px, 0.08em, 10px);
|
|
|
border: none;
|
|
|
border-radius: calc(var(--_caret-width) / 2);
|
|
|
border-right: var(--_caret-width) solid var(--_latex-color);
|
|
|
margin-right: calc(-1 * var(--_caret-width));
|
|
|
position: relative;
|
|
|
left: -0.019em;
|
|
|
animation: ML__caret-blink 1.05s step-end forwards infinite;
|
|
|
}
|
|
|
.ML__focused .ML__latex-caret::after,
|
|
|
.ML__focused .ML__text-caret::after,
|
|
|
.ML__focused .ML__caret::after {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
.ML__focused .ML__text {
|
|
|
background: var(--_text-highlight-background-color);
|
|
|
}
|
|
|
/* When using smartFence, the anticipated closing fence is displayed
|
|
|
with this style */
|
|
|
.ML__smart-fence__close {
|
|
|
opacity: var(--_smart-fence-opacity);
|
|
|
color: var(--_smart-fence-color);
|
|
|
}
|
|
|
.ML__selected,
|
|
|
.ML__focused .ML__selected .ML__contains-caret,
|
|
|
.ML__focused .ML__selected .ML__smart-fence__close,
|
|
|
.ML__focused .ML__selected .ML__placeholder {
|
|
|
color: var(--_selection-color);
|
|
|
opacity: 1;
|
|
|
}
|
|
|
.ML__selection {
|
|
|
box-sizing: border-box;
|
|
|
background: var(--_selection-background-color) !important;
|
|
|
}
|
|
|
.ML__contains-caret.ML__close,
|
|
|
.ML__contains-caret.ML__open,
|
|
|
.ML__contains-caret > .ML__close,
|
|
|
.ML__contains-caret > .ML__open,
|
|
|
.ML__contains-caret .ML__sqrt-sign,
|
|
|
.ML__contains-caret .ML__sqrt-line {
|
|
|
color: var(--_caret-color);
|
|
|
}
|
|
|
.ML__contains-highlight {
|
|
|
box-sizing: border-box;
|
|
|
background: transparent;
|
|
|
}
|
|
|
.ML__focused .ML__contains-highlight {
|
|
|
background: var(--_contains-highlight-background-color);
|
|
|
}
|
|
|
.ML__raw-latex {
|
|
|
font-family: 'Berkeley Mono', 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
|
|
|
font-weight: 400;
|
|
|
font-size: 0.8em;
|
|
|
letter-spacing: -0.05em;
|
|
|
color: var(--_latex-color);
|
|
|
}
|
|
|
.ML__suggestion {
|
|
|
color: var(--neutral-500);
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle.is-visible.is-pressed:hover {
|
|
|
background: hsl(var(--_hue), 25%, 35%);
|
|
|
color: #fafafa;
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle:focus {
|
|
|
outline: none;
|
|
|
border-radius: 8px;
|
|
|
border: 2px solid hsl(var(--_hue), 40%, 50%);
|
|
|
}
|
|
|
.ML__virtual-keyboard-toggle.is-pressed,
|
|
|
.ML__virtual-keyboard-toggle.is-active:hover,
|
|
|
.ML__virtual-keyboard-toggle.is-active {
|
|
|
background: hsl(var(--_hue), 25%, 35%);
|
|
|
color: #fafafa;
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
/* Add an attribute 'data-tooltip' to automatically show a
|
|
|
tooltip over a element on hover.
|
|
|
*/
|
|
|
[data-tooltip] {
|
|
|
position: relative;
|
|
|
}
|
|
|
[data-tooltip]::after {
|
|
|
content: attr(data-tooltip);
|
|
|
position: absolute;
|
|
|
display: block;
|
|
|
z-index: 2;
|
|
|
pointer-events: none;
|
|
|
right: auto;
|
|
|
top: calc(-100% - 4px);
|
|
|
width: max-content;
|
|
|
max-width: 200px;
|
|
|
padding: 8px 8px;
|
|
|
border-radius: 4px;
|
|
|
background: #616161;
|
|
|
color: #fff;
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
|
text-align: center;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-style: normal;
|
|
|
font-weight: 400;
|
|
|
font-size: 13px;
|
|
|
/* Phone */
|
|
|
opacity: 0;
|
|
|
transform: scale(0.5);
|
|
|
}
|
|
|
@media only screen and (max-width: 767px) {
|
|
|
[data-tooltip]::after {
|
|
|
padding: 8px 16px;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
}
|
|
|
menu [data-tooltip]::after {
|
|
|
left: 100%;
|
|
|
top: 0%;
|
|
|
}
|
|
|
menu .ML__base {
|
|
|
cursor: default;
|
|
|
}
|
|
|
/** Don't display if we're tracking, i.e. have the pointer down */
|
|
|
.tracking [data-tooltip]:hover::after {
|
|
|
/* Use visibility, not display. Display will remove the after from the DOM, and the override below will not work */
|
|
|
visibility: hidden;
|
|
|
}
|
|
|
/** But do display if tracking and inside a menu */
|
|
|
.tracking menu li[data-tooltip]:hover::after,
|
|
|
[data-tooltip]:hover::after {
|
|
|
visibility: visible;
|
|
|
opacity: 1;
|
|
|
transform: scale(1);
|
|
|
transition-property: opacity, scale;
|
|
|
transition-duration: 0.15s;
|
|
|
transition-delay: 1s;
|
|
|
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
|
}
|
|
|
.ML__prompt {
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
.ML__editablePromptBox {
|
|
|
outline: 1px solid #acacac;
|
|
|
border-radius: 2px;
|
|
|
z-index: -1;
|
|
|
}
|
|
|
.ML__focusedPromptBox {
|
|
|
outline: highlight auto 1px;
|
|
|
}
|
|
|
.ML__lockedPromptBox {
|
|
|
background-color: rgba(142, 142, 141, 0.4);
|
|
|
z-index: -1;
|
|
|
}
|
|
|
.ML__correctPromptBox {
|
|
|
outline: 1px solid var(--_correct-color);
|
|
|
box-shadow: 0 0 5px var(--_correct-color);
|
|
|
}
|
|
|
.ML__incorrectPromptBox {
|
|
|
outline: 1px solid var(--_incorrect-color);
|
|
|
box-shadow: 0 0 5px var(--_incorrect-color);
|
|
|
}
|
|
|
.variant-submenu {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
padding: 8px;
|
|
|
}
|
|
|
.variant-submenu [part=menu-item] {
|
|
|
font-size: 2rem;
|
|
|
text-align: center;
|
|
|
margin: 0;
|
|
|
}
|
|
|
.insert-matrix-submenu {
|
|
|
display: grid;
|
|
|
padding: 8px;
|
|
|
align-content: center;
|
|
|
justify-content: center;
|
|
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
|
}
|
|
|
.insert-matrix-submenu [part=menu-item] {
|
|
|
font-size: 21px;
|
|
|
border: none;
|
|
|
border-radius: 0;
|
|
|
line-height: 21px;
|
|
|
text-align: center;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
}
|
|
|
.border-submenu [part=menu-item] {
|
|
|
font-size: 2rem;
|
|
|
line-height: 1.2;
|
|
|
text-align: center;
|
|
|
}
|
|
|
.swatches-submenu {
|
|
|
--_swatch-size: 2rem;
|
|
|
--_columns: 4;
|
|
|
display: flex;
|
|
|
flex-flow: wrap;
|
|
|
padding: 8px;
|
|
|
max-width: calc(var(--_columns) * (var(--_swatch-size) + 18px) + 16px);
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.menu-swatch {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
box-sizing: border-box;
|
|
|
width: fit-content;
|
|
|
height: fit-content;
|
|
|
margin: 2px;
|
|
|
padding: 0;
|
|
|
background: var(--neutral-200);
|
|
|
}
|
|
|
.menu-swatch > .label {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
line-height: 0;
|
|
|
}
|
|
|
.menu-swatch > .label > span {
|
|
|
display: inline-block;
|
|
|
margin: 6px;
|
|
|
min-width: var(--_swatch-size);
|
|
|
min-height: var(--_swatch-size);
|
|
|
border-radius: 50%;
|
|
|
}
|
|
|
.menu-swatch.active {
|
|
|
background: var(--neutral-100);
|
|
|
scale: 1.4;
|
|
|
}
|
|
|
.menu-swatch.active > .label > span {
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
.menu-swatch .ui-checkmark,
|
|
|
.menu-swatch .ui-mixedmark {
|
|
|
position: absolute;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
color: white;
|
|
|
}
|
|
|
.menu-swatch.dark-contrast .ui-checkmark,
|
|
|
.menu-swatch.dark-contrast .ui-mixedmark {
|
|
|
color: #000;
|
|
|
}
|
|
|
`,pl=`.ML__container {
|
|
|
min-height: auto !important;
|
|
|
--_hue: var(--hue, 212);
|
|
|
--_placeholder-color: var(--placeholder-color, hsl(var(--_hue), 40%, 49%));
|
|
|
--_placeholder-opacity: var(--placeholder-opacity, 0.4);
|
|
|
--_text-font-family: var(--text-font-family, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif);
|
|
|
}
|
|
|
.ML__sr-only {
|
|
|
position: absolute;
|
|
|
width: 1px;
|
|
|
height: 1px;
|
|
|
margin: -1px;
|
|
|
padding: 0;
|
|
|
overflow: hidden;
|
|
|
clip: rect(0, 0, 0, 0);
|
|
|
clip-path: inset(50%);
|
|
|
white-space: nowrap;
|
|
|
border: 0;
|
|
|
}
|
|
|
.ML__is-inline {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__base {
|
|
|
visibility: inherit;
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
cursor: text;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
box-sizing: content-box;
|
|
|
border: 0;
|
|
|
outline: 0;
|
|
|
vertical-align: baseline;
|
|
|
font-weight: inherit;
|
|
|
font-family: inherit;
|
|
|
font-style: inherit;
|
|
|
text-decoration: none;
|
|
|
width: min-content;
|
|
|
}
|
|
|
.ML__strut,
|
|
|
.ML__strut--bottom {
|
|
|
display: inline-block;
|
|
|
min-height: 0.5em;
|
|
|
}
|
|
|
.ML__small-delim {
|
|
|
font-family: KaTeX_Main;
|
|
|
}
|
|
|
/* Text mode */
|
|
|
.ML__text {
|
|
|
font-family: var(--_text-font-family);
|
|
|
white-space: pre;
|
|
|
}
|
|
|
/* Use cmr for 'math upright' */
|
|
|
.ML__cmr {
|
|
|
font-family: KaTeX_Main;
|
|
|
font-style: normal;
|
|
|
}
|
|
|
.ML__mathit {
|
|
|
font-family: KaTeX_Math;
|
|
|
/* The KaTeX_Math font is italic by default, so the font-style below is only
|
|
|
useful when a fallback font is used
|
|
|
*/
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__mathbf {
|
|
|
font-family: KaTeX_Main;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
/* Lowercase greek symbols should stick to math font when \\mathbf is applied
|
|
|
to match TeX idiosyncratic behavior */
|
|
|
.lcGreek.ML__mathbf {
|
|
|
font-family: KaTeX_Math;
|
|
|
font-weight: normal;
|
|
|
}
|
|
|
.ML__mathbfit {
|
|
|
font-family: KaTeX_Math;
|
|
|
font-weight: bold;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__ams {
|
|
|
font-family: KaTeX_AMS;
|
|
|
}
|
|
|
/* Blackboard */
|
|
|
.ML__bb {
|
|
|
font-family: KaTeX_AMS;
|
|
|
}
|
|
|
.ML__cal {
|
|
|
font-family: KaTeX_Caligraphic;
|
|
|
}
|
|
|
.ML__frak {
|
|
|
font-family: KaTeX_Fraktur;
|
|
|
}
|
|
|
.ML__tt {
|
|
|
font-family: KaTeX_Typewriter;
|
|
|
}
|
|
|
.ML__script {
|
|
|
font-family: KaTeX_Script;
|
|
|
}
|
|
|
.ML__sans {
|
|
|
font-family: KaTeX_SansSerif;
|
|
|
}
|
|
|
.ML__series_ul {
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.ML__series_el {
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.ML__series_l {
|
|
|
font-weight: 200;
|
|
|
}
|
|
|
.ML__series_sl {
|
|
|
font-weight: 300;
|
|
|
}
|
|
|
.ML__series_sb {
|
|
|
font-weight: 500;
|
|
|
}
|
|
|
.ML__bold,
|
|
|
.ML__boldsymbol {
|
|
|
font-weight: 700;
|
|
|
}
|
|
|
.ML__series_eb {
|
|
|
font-weight: 800;
|
|
|
}
|
|
|
.ML__series_ub {
|
|
|
font-weight: 900;
|
|
|
}
|
|
|
.ML__series_uc {
|
|
|
font-stretch: ultra-condensed;
|
|
|
}
|
|
|
.ML__series_ec {
|
|
|
font-stretch: extra-condensed;
|
|
|
}
|
|
|
.ML__series_c {
|
|
|
font-stretch: condensed;
|
|
|
}
|
|
|
.ML__series_sc {
|
|
|
font-stretch: semi-condensed;
|
|
|
}
|
|
|
.ML__series_sx {
|
|
|
font-stretch: semi-expanded;
|
|
|
}
|
|
|
.ML__series_x {
|
|
|
font-stretch: expanded;
|
|
|
}
|
|
|
.ML__series_ex {
|
|
|
font-stretch: extra-expanded;
|
|
|
}
|
|
|
.ML__series_ux {
|
|
|
font-stretch: ultra-expanded;
|
|
|
}
|
|
|
.ML__it {
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__shape_ol {
|
|
|
-webkit-text-stroke: 1px black;
|
|
|
text-stroke: 1px black;
|
|
|
color: transparent;
|
|
|
}
|
|
|
.ML__shape_sc {
|
|
|
font-variant: small-caps;
|
|
|
}
|
|
|
.ML__shape_sl {
|
|
|
font-style: oblique;
|
|
|
}
|
|
|
/* First level emphasis */
|
|
|
.ML__emph {
|
|
|
color: #bc2612;
|
|
|
}
|
|
|
/* Second level emphasis */
|
|
|
.ML__emph .ML__emph {
|
|
|
color: #0c7f99;
|
|
|
}
|
|
|
.ML__highlight {
|
|
|
color: #007cb2;
|
|
|
background: #edd1b0;
|
|
|
}
|
|
|
.ML__center {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__label_padding {
|
|
|
padding: 0 0.5em;
|
|
|
}
|
|
|
.ML__frac-line {
|
|
|
width: 100%;
|
|
|
min-height: 1px;
|
|
|
}
|
|
|
.ML__frac-line:after {
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: max(-1px, -0.04em);
|
|
|
min-height: max(1px, 0.04em);
|
|
|
/* Ensure the line is visible when printing even if "turn off background images" is on*/
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
/* There's a bug since Chrome 62 where
|
|
|
sub-pixel border lines don't draw at some zoom
|
|
|
levels (110%, 90%).
|
|
|
Setting the min-height used to work around it, but that workaround
|
|
|
broke in Chrome 84 or so.
|
|
|
Setting the background (and the min-height) seems to work for now.
|
|
|
*/
|
|
|
background: currentColor;
|
|
|
box-sizing: content-box;
|
|
|
/* Vuetify sets the box-sizing to inherit
|
|
|
causes the fraction line to not draw at all sizes (see #26) */
|
|
|
/* On some versions of Firefox on Windows, the line fails to
|
|
|
draw at some zoom levels, but setting the transform triggers
|
|
|
the hardware accelerated path, which works */
|
|
|
transform: translate(0, 0);
|
|
|
}
|
|
|
.ML__sqrt {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__sqrt-sign {
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__sqrt-line {
|
|
|
display: inline-block;
|
|
|
height: max(1px, 0.04em);
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__sqrt-line:before {
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: min(-1px, -0.04em);
|
|
|
min-height: max(1px, 0.04em);
|
|
|
/* Ensure the line is visible when printing even if "turn off background images" is on*/
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
background: currentColor;
|
|
|
/* On some versions of Firefox on Windows, the line fails to
|
|
|
draw at some zoom levels, but setting the transform triggers
|
|
|
the hardware accelerated path, which works */
|
|
|
transform: translate(0, 0);
|
|
|
}
|
|
|
.ML__sqrt-line:after {
|
|
|
border-bottom-width: 1px;
|
|
|
content: ' ';
|
|
|
display: block;
|
|
|
margin-top: -0.1em;
|
|
|
}
|
|
|
.ML__sqrt-index {
|
|
|
margin-left: 0.27777778em;
|
|
|
margin-right: -0.55555556em;
|
|
|
}
|
|
|
.ML__delim-size1 {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__delim-size2 {
|
|
|
font-family: KaTeX_Size2;
|
|
|
}
|
|
|
.ML__delim-size3 {
|
|
|
font-family: KaTeX_Size3;
|
|
|
}
|
|
|
.ML__delim-size4 {
|
|
|
font-family: KaTeX_Size4;
|
|
|
}
|
|
|
.ML__delim-mult .delim-size1 > span {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__delim-mult .delim-size4 > span {
|
|
|
font-family: KaTeX_Size4;
|
|
|
}
|
|
|
.ML__accent-body > span {
|
|
|
font-family: KaTeX_Main;
|
|
|
width: 0;
|
|
|
}
|
|
|
.ML__accent-vec {
|
|
|
position: relative;
|
|
|
left: 0.24em;
|
|
|
}
|
|
|
/** The markup for a LaTeX formula, either in an editable mathfield or
|
|
|
in a static display.
|
|
|
*/
|
|
|
.ML__latex {
|
|
|
display: inline-block;
|
|
|
direction: ltr;
|
|
|
text-align: left;
|
|
|
text-indent: 0;
|
|
|
text-rendering: auto;
|
|
|
font-family: KaTeX_Main, 'Times New Roman', serif;
|
|
|
font-style: normal;
|
|
|
font-size-adjust: none;
|
|
|
font-stretch: normal;
|
|
|
font-variant-caps: normal;
|
|
|
letter-spacing: normal;
|
|
|
line-height: 1.2;
|
|
|
word-wrap: normal;
|
|
|
word-spacing: normal;
|
|
|
white-space: nowrap;
|
|
|
text-shadow: none;
|
|
|
-webkit-user-select: none;
|
|
|
user-select: none;
|
|
|
width: min-content;
|
|
|
}
|
|
|
.ML__latex .style-wrap {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .mfrac {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .left-right {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .vlist-t {
|
|
|
display: inline-table;
|
|
|
table-layout: fixed;
|
|
|
border-collapse: collapse;
|
|
|
}
|
|
|
.ML__latex .vlist-r {
|
|
|
display: table-row;
|
|
|
}
|
|
|
.ML__latex .vlist {
|
|
|
display: table-cell;
|
|
|
vertical-align: bottom;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .vlist > span {
|
|
|
display: block;
|
|
|
height: 0;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .vlist > span > span {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .vlist > span > .pstrut {
|
|
|
overflow: hidden;
|
|
|
width: 0;
|
|
|
}
|
|
|
.ML__latex .vlist-t2 {
|
|
|
margin-right: -2px;
|
|
|
}
|
|
|
.ML__latex .vlist-s {
|
|
|
display: table-cell;
|
|
|
vertical-align: bottom;
|
|
|
font-size: 1px;
|
|
|
width: 2px;
|
|
|
min-width: 2px;
|
|
|
}
|
|
|
.ML__latex .msubsup {
|
|
|
text-align: left;
|
|
|
}
|
|
|
.ML__latex .negativethinspace {
|
|
|
display: inline-block;
|
|
|
margin-left: -0.16667em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .thinspace {
|
|
|
display: inline-block;
|
|
|
width: 0.16667em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .mediumspace {
|
|
|
display: inline-block;
|
|
|
width: 0.22222em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .thickspace {
|
|
|
display: inline-block;
|
|
|
width: 0.27778em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .enspace {
|
|
|
display: inline-block;
|
|
|
width: 0.5em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .quad {
|
|
|
display: inline-block;
|
|
|
width: 1em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .qquad {
|
|
|
display: inline-block;
|
|
|
width: 2em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .llap,
|
|
|
.ML__latex .rlap {
|
|
|
width: 0;
|
|
|
position: relative;
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .llap > .inner,
|
|
|
.ML__latex .rlap > .inner {
|
|
|
position: absolute;
|
|
|
}
|
|
|
.ML__latex .llap > .fix,
|
|
|
.ML__latex .rlap > .fix {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .llap > .inner {
|
|
|
right: 0;
|
|
|
}
|
|
|
.ML__latex .rlap > .inner {
|
|
|
left: 0;
|
|
|
}
|
|
|
.ML__latex .rule {
|
|
|
display: inline-block;
|
|
|
border: solid 0;
|
|
|
position: relative;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line,
|
|
|
.ML__latex .underline .underline-line {
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line:before,
|
|
|
.ML__latex .underline .underline-line:before {
|
|
|
content: '';
|
|
|
border-bottom-style: solid;
|
|
|
border-bottom-width: max(1px, 0.04em);
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
display: block;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line:after,
|
|
|
.ML__latex .underline .underline-line:after {
|
|
|
border-bottom-style: solid;
|
|
|
border-bottom-width: max(1px, 0.04em);
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: -1px;
|
|
|
}
|
|
|
.ML__latex .stretchy {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
left: 0;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .stretchy:before,
|
|
|
.ML__latex .stretchy:after {
|
|
|
content: '';
|
|
|
}
|
|
|
.ML__latex .stretchy svg {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
height: inherit;
|
|
|
fill: currentColor;
|
|
|
stroke: currentColor;
|
|
|
fill-rule: nonzero;
|
|
|
fill-opacity: 1;
|
|
|
stroke-width: 1;
|
|
|
stroke-linecap: butt;
|
|
|
stroke-linejoin: miter;
|
|
|
stroke-miterlimit: 4;
|
|
|
stroke-dasharray: none;
|
|
|
stroke-dashoffset: 0;
|
|
|
stroke-opacity: 1;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-2 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
width: 50.2%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-2-of-2 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
right: 0;
|
|
|
width: 50.2%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
width: 25.1%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-2-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 25%;
|
|
|
width: 50%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-3-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
right: 0;
|
|
|
width: 25.1%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-1 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
left: 0;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .nulldelimiter {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .op-group {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .op-symbol {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .op-symbol.small-op {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__latex .op-symbol.large-op {
|
|
|
font-family: KaTeX_Size2;
|
|
|
}
|
|
|
.ML__latex .mtable .vertical-separator {
|
|
|
display: inline-block;
|
|
|
min-width: 1px;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ML__latex .mtable .arraycolsep {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-m > .vlist-t {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-c > .vlist-t {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-l > .vlist-t {
|
|
|
text-align: left;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-r > .vlist-t {
|
|
|
text-align: right;
|
|
|
}
|
|
|
.ML__error {
|
|
|
display: inline-block;
|
|
|
background-image: radial-gradient(ellipse at center, hsl(341, 100%, 40%), rgba(0, 0, 0, 0) 70%);
|
|
|
background-color: hsla(341, 100%, 40%, 0.1);
|
|
|
background-repeat: repeat-x;
|
|
|
background-size: 3px 3px;
|
|
|
padding-bottom: 3px;
|
|
|
background-position: 0 100%;
|
|
|
}
|
|
|
.ML__error > .ML__error {
|
|
|
background: transparent;
|
|
|
padding: 0;
|
|
|
}
|
|
|
.ML__placeholder {
|
|
|
color: var(--_placeholder-color);
|
|
|
opacity: var(--_placeholder-opacity);
|
|
|
padding-left: 0.4ex;
|
|
|
padding-right: 0.4ex;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
}
|
|
|
.ML__notation {
|
|
|
position: absolute;
|
|
|
box-sizing: border-box;
|
|
|
line-height: 0;
|
|
|
}
|
|
|
/* This class is used to implement the \`\\mathtip\` and \`\\texttip\` commands
|
|
|
For UI elements, see \`[data-ML__tooltip]\`
|
|
|
*/
|
|
|
.ML__tooltip-container {
|
|
|
position: relative;
|
|
|
transform: scale(0);
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content {
|
|
|
position: fixed;
|
|
|
display: inline-table;
|
|
|
visibility: hidden;
|
|
|
z-index: 2;
|
|
|
width: max-content;
|
|
|
max-width: 400px;
|
|
|
padding: 12px 12px;
|
|
|
border-radius: 8px;
|
|
|
background: #616161;
|
|
|
--_selection-color: #fff;
|
|
|
color: #fff;
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
|
opacity: 0;
|
|
|
transition: opacity 0.15s cubic-bezier(0.4, 0, 1, 1);
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content .ML__text {
|
|
|
white-space: normal;
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content .ML__base {
|
|
|
display: contents;
|
|
|
}
|
|
|
.ML__tooltip-container:hover .ML__tooltip-content {
|
|
|
visibility: visible;
|
|
|
opacity: 1;
|
|
|
font-size: 0.75em;
|
|
|
transform: scale(1) translate(0, 3em);
|
|
|
}
|
|
|
`,Qc=`#mathlive-environment-popover.is-visible {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
#mathlive-environment-popover {
|
|
|
--_environment-panel-height: var(--environment-panel-height, 70px);
|
|
|
--_accent-color: var(--accent-color, #aaa);
|
|
|
--_background: var(--environment-panel-background, #fff);
|
|
|
--_button-background: var(--environment-panel-button-background, white);
|
|
|
--_button-background-hover: var(--environment-panel-button-background-hover, #f5f5f7);
|
|
|
--_button-background-active: var(--environment-panel-button-background-active, #f5f5f7);
|
|
|
--_button-text: var(--environment-panel-button-text, #e3e4e8);
|
|
|
position: absolute;
|
|
|
width: calc(var(--_environment-panel-height) * 2);
|
|
|
height: var(--_environment-panel-height);
|
|
|
border-radius: 4px;
|
|
|
border: 1.5px solid var(--_accent-color);
|
|
|
background-color: var(--_background);
|
|
|
box-shadow: 0 0 30px 0 var(--environment-shadow, rgba(0, 0, 0, 0.4));
|
|
|
pointer-events: all;
|
|
|
visibility: hidden;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons {
|
|
|
height: calc(var(--_environment-panel-height) * 5/4);
|
|
|
width: calc(var(--_environment-panel-height) * 5/4);
|
|
|
margin-left: calc(0px - var(--_environment-panel-height) * 0.16);
|
|
|
margin-top: calc(0px - var(--_environment-panel-height) * 0.19);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons .font {
|
|
|
fill: white;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons circle {
|
|
|
fill: #7f7f7f;
|
|
|
transition: fill 300ms;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons .MLEP__array-insert-background {
|
|
|
fill-opacity: 1;
|
|
|
fill: var(--_background);
|
|
|
stroke: var(--_accent-color);
|
|
|
stroke-width: 3px;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons line {
|
|
|
stroke: var(--_accent-color);
|
|
|
stroke-opacity: 0;
|
|
|
stroke-width: 40;
|
|
|
pointer-events: none;
|
|
|
transition: stroke-opacity 300ms;
|
|
|
stroke-linecap: round;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover circle {
|
|
|
fill: var(--_accent-color);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover line {
|
|
|
stroke-opacity: 1;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls {
|
|
|
height: 100%;
|
|
|
width: 50%;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options {
|
|
|
width: var(--_environment-panel-height);
|
|
|
height: var(--_environment-panel-height);
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-around;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg {
|
|
|
pointer-events: all;
|
|
|
margin-top: 2px;
|
|
|
width: calc(var(--_environment-panel-height) / 3 * 28 / 24);
|
|
|
height: calc(var(--_environment-panel-height) / 3 - 2px);
|
|
|
border-radius: calc(var(--_environment-panel-height) / 25);
|
|
|
background-color: var(--_button-background);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg:hover {
|
|
|
background-color: var(--_button-background-hover);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg line {
|
|
|
stroke: var(--_button-text);
|
|
|
stroke-width: 2;
|
|
|
stroke-linecap: round;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg rect,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path {
|
|
|
fill-opacity: 0;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active {
|
|
|
pointer-events: none;
|
|
|
background-color: var(--_button-background-active);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active path,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active line {
|
|
|
stroke: var(--_accent-color);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active circle {
|
|
|
fill: var(--_accent-color);
|
|
|
}
|
|
|
`,YA=`/* The element that display info while in latex mode */
|
|
|
#mathlive-suggestion-popover {
|
|
|
background-color: rgba(97, 97, 97);
|
|
|
color: #fff;
|
|
|
text-align: center;
|
|
|
border-radius: 8px;
|
|
|
position: fixed;
|
|
|
z-index: 1;
|
|
|
display: none;
|
|
|
flex-direction: column;
|
|
|
justify-content: center;
|
|
|
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
|
|
|
}
|
|
|
#mathlive-suggestion-popover.top-tip::after {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
top: -15px;
|
|
|
left: calc(50% - 15px);
|
|
|
width: 0;
|
|
|
height: 0;
|
|
|
border-left: 15px solid transparent;
|
|
|
border-right: 15px solid transparent;
|
|
|
border-bottom: 15px solid rgba(97, 97, 97);
|
|
|
font-size: 1rem;
|
|
|
}
|
|
|
#mathlive-suggestion-popover.bottom-tip::after {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
bottom: -15px;
|
|
|
left: calc(50% - 15px);
|
|
|
width: 0;
|
|
|
height: 0;
|
|
|
border-left: 15px solid transparent;
|
|
|
border-right: 15px solid transparent;
|
|
|
border-top: 15px solid rgba(97, 97, 97);
|
|
|
font-size: 1rem;
|
|
|
}
|
|
|
#mathlive-suggestion-popover.is-animated {
|
|
|
transition: all 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
|
|
|
animation: ML__fade-in cubic-bezier(0, 0, 0.2, 1) 0.15s;
|
|
|
}
|
|
|
#mathlive-suggestion-popover.is-visible {
|
|
|
display: flex;
|
|
|
}
|
|
|
@keyframes ML__fade-in {
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
/* The wrapper class for the entire content of the popover panel */
|
|
|
#mathlive-suggestion-popover ul {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
list-style: none;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
align-items: flex-start;
|
|
|
max-height: 400px;
|
|
|
overflow-y: auto;
|
|
|
}
|
|
|
#mathlive-suggestion-popover li {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
margin: 8px;
|
|
|
padding: 8px;
|
|
|
width: calc(100% - 16px - 16px);
|
|
|
column-gap: 1em;
|
|
|
border-radius: 8px;
|
|
|
cursor: pointer;
|
|
|
/* Since the content can be clicked on, provide feedback on hover */
|
|
|
}
|
|
|
#mathlive-suggestion-popover li a {
|
|
|
color: #5ea6fd;
|
|
|
padding-top: 0.3em;
|
|
|
margin-top: 0.4em;
|
|
|
display: block;
|
|
|
}
|
|
|
#mathlive-suggestion-popover li a:hover {
|
|
|
color: #5ea6fd;
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
#mathlive-suggestion-popover li:hover,
|
|
|
#mathlive-suggestion-popover li.is-pressed,
|
|
|
#mathlive-suggestion-popover li.is-active {
|
|
|
background: rgba(255, 255, 255, 0.1);
|
|
|
}
|
|
|
/* The command inside a popover (inside a #mathlive-suggestion-popover) */
|
|
|
.ML__popover__command {
|
|
|
font-size: 1.6rem;
|
|
|
font-family: KaTeX_Main;
|
|
|
}
|
|
|
.ML__popover__current {
|
|
|
background: #5ea6fd;
|
|
|
color: #fff;
|
|
|
}
|
|
|
.ML__popover__latex {
|
|
|
font-family: 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
|
|
|
align-self: center;
|
|
|
}
|
|
|
/* The keyboard shortcuts for a symbol as displayed in the popover */
|
|
|
.ML__popover__keybinding {
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 0.8em;
|
|
|
opacity: 0.7;
|
|
|
}
|
|
|
/* Style for the character that joins the modifiers of a keyboard shortcut
|
|
|
(usually a "+" sign)*/
|
|
|
.ML__shortcut-join {
|
|
|
opacity: 0.5;
|
|
|
}
|
|
|
`,rs=`/* The element that displays the keys as the user type them */
|
|
|
#mathlive-keystroke-caption-panel {
|
|
|
visibility: hidden;
|
|
|
/*min-width: 160px;*/
|
|
|
/*background-color: rgba(97, 97, 200, .95);*/
|
|
|
background: var(--secondary, hsl(var(--_hue), 19%, 26%));
|
|
|
border-color: var(--secondary-border, hsl(0, 0%, 91%));
|
|
|
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
|
|
|
text-align: center;
|
|
|
border-radius: 6px;
|
|
|
padding: 16px;
|
|
|
position: absolute;
|
|
|
z-index: 1;
|
|
|
display: flex;
|
|
|
flex-direction: row-reverse;
|
|
|
justify-content: center;
|
|
|
--keystroke: white;
|
|
|
--on-keystroke: #555;
|
|
|
--keystroke-border: #f7f7f7;
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
body:not([theme='light']) #mathlive-keystroke-caption-panel {
|
|
|
--keystroke: hsl(var(--_hue), 50%, 30%);
|
|
|
--on-keystroke: hsl(0, 0%, 98%);
|
|
|
--keystroke-border: hsl(var(--_hue), 50%, 25%);
|
|
|
}
|
|
|
}
|
|
|
body[theme='dark'] #mathlive-keystroke-caption-panel {
|
|
|
--keystroke: hsl(var(--_hue), 50%, 30%);
|
|
|
--on-keystroke: hsl(0, 0%, 98%);
|
|
|
--keystroke-border: hsl(var(--_hue), 50%, 25%);
|
|
|
}
|
|
|
#mathlive-keystroke-caption-panel > span {
|
|
|
min-width: 14px;
|
|
|
/*height: 8px;*/
|
|
|
margin: 0 8px 0 0;
|
|
|
padding: 4px;
|
|
|
background-color: var(--keystroke);
|
|
|
color: var(--on-keystroke);
|
|
|
fill: currentColor;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 1em;
|
|
|
border-radius: 6px;
|
|
|
border: 2px solid var(--keystroke-border);
|
|
|
/*box-shadow: 0 7px 14px rgba(0,0,0,0.25), 0 5px 5px rgba(0,0,0,0.22);*/
|
|
|
}
|
|
|
`,Kc=`.ML__keyboard {
|
|
|
--_keyboard-height: 0;
|
|
|
--_keyboard-zindex: var(--keyboard-zindex, 105);
|
|
|
--_accent-color: var(--keyboard-accent-color, #0c75d8);
|
|
|
--_background: var(--keyboard-background, #cacfd7);
|
|
|
--_border: var(--keyboard-border, #ddd);
|
|
|
--_padding-horizontal: var(--keyboard-padding-horizontal, 0px);
|
|
|
--_padding-top: var(--keyboard-padding-top, 5px);
|
|
|
--_padding-bottom: var(--keyboard-padding-bottom, 0px);
|
|
|
--_row-padding-left: var(--keyboard-row-padding-left, 0px);
|
|
|
--_row-padding-right: var(--keyboard-row-padding-right, 0px);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);
|
|
|
--_toolbar-text-active: var(--keyboard-toolbar-text-active, var(--_accent-color));
|
|
|
--_toolbar-background: var(--keyboard-toolbar-background, transparent);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);
|
|
|
--_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);
|
|
|
--_toolbar-font-size: var(--keyboard-toolbar-font-size, '135%');
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);
|
|
|
--_keycap-background: var(--keycap-background, white);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);
|
|
|
--_keycap-background-active: var(--keycap-background-active, var(--_accent-color));
|
|
|
--_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));
|
|
|
--_keycap-border: var(--keycap-border, #e5e6e9);
|
|
|
--_keycap-border-bottom: var(--keycap-border-bottom, #8d8f92);
|
|
|
--_keycap-text: var(--keycap-text, #000);
|
|
|
--_keycap-text-active: var(--keycap-text-active, #fff);
|
|
|
--_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));
|
|
|
--_keycap-text-pressed: var(--keycap-text-pressed, #fff);
|
|
|
--_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));
|
|
|
--_keycap-primary-background: var(--keycap-primary-background, var(--_accent-color));
|
|
|
--_keycap-primary-text: var(--keycap-primary-text, #ddd);
|
|
|
--_keycap-primary-background-hover: var(--keycap-primary-background-hover, #0d80f2);
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #060707);
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);
|
|
|
--_keycap-height: var(--keycap-height, 60px);
|
|
|
/* Keycap width (incl. margin) */
|
|
|
--_keycap-max-width: var(--keycap-max-width, 100px);
|
|
|
--_keycap-gap: var(--keycap-gap, 8px);
|
|
|
--_keycap-font-size: var(--keycap-font-size, clamp(16px, 4cqw, 24px));
|
|
|
--_keycap-small-font-size: var(--keycap-small-font-size, calc(var(--keycap-font-size) * 0.8));
|
|
|
--_keycap-extra-small-font-size: var(--keycap-extra-small-font-size, calc(var(--keycap-font-size) / 1.42));
|
|
|
--_variant-panel-background: var(--variant-panel-background, #fff);
|
|
|
--_variant-keycap-text: var(--variant-keycap-text, var(--_keycap-text));
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));
|
|
|
--_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 70px);
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 30px);
|
|
|
--_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 12px);
|
|
|
--_keycap-shift-font-size: var(--keycap-shift-font-size, 16px);
|
|
|
--_keycap-shift-color: var(--keycap-shift-color, var(--_accent-color));
|
|
|
--_box-placeholder-color: var(--box-placeholder-color, var(--_accent-color));
|
|
|
--_box-placeholder-pressed-color: var(--box-placeholder-pressed-color, var(--keycap-text-pressed));
|
|
|
}
|
|
|
.is-math-mode .MLK__rows .if-text-mode,
|
|
|
.is-text-mode .MLK__rows .if-math-mode {
|
|
|
display: none;
|
|
|
}
|
|
|
.if-can-undo,
|
|
|
.if-can-redo,
|
|
|
.if-can-copy,
|
|
|
.if-can-cut,
|
|
|
.if-can-paste {
|
|
|
opacity: 0.4;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.can-undo .if-can-undo,
|
|
|
.can-redo .if-can-redo,
|
|
|
.can-copy .if-can-copy,
|
|
|
.can-cut .if-can-cut,
|
|
|
.can-paste .if-can-paste {
|
|
|
opacity: 1;
|
|
|
pointer-events: all;
|
|
|
}
|
|
|
body > .ML__keyboard {
|
|
|
position: fixed;
|
|
|
--_padding-bottom: calc(var(--keyboard-padding-bottom, 0px) + env(safe-area-inset-bottom, 0));
|
|
|
}
|
|
|
body > .ML__keyboard.is-visible > .MLK__backdrop {
|
|
|
box-shadow: 0 -5px 6px rgba(0, 0, 0, 0.08);
|
|
|
border-top: 1px solid var(--_border);
|
|
|
}
|
|
|
body > .ML__keyboard.backdrop-is-transparent.is-visible > .MLK__backdrop {
|
|
|
box-shadow: none;
|
|
|
border: none;
|
|
|
}
|
|
|
body > .ML__keyboard.is-visible.animate > .MLK__backdrop {
|
|
|
transition: 0.28s cubic-bezier(0, 0, 0.2, 1);
|
|
|
transition-property: transform, opacity;
|
|
|
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
|
}
|
|
|
.ML__keyboard {
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
height: 100%;
|
|
|
width: 100%;
|
|
|
z-index: var(--_keyboard-zindex);
|
|
|
box-sizing: border-box;
|
|
|
outline: none;
|
|
|
border: none;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
line-height: 1;
|
|
|
overflow-wrap: unset;
|
|
|
text-align: left;
|
|
|
vertical-align: baseline;
|
|
|
cursor: auto;
|
|
|
white-space: pre;
|
|
|
box-shadow: none;
|
|
|
opacity: 1;
|
|
|
transform: none;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.ML__keyboard :where(div) {
|
|
|
box-sizing: border-box;
|
|
|
outline: none;
|
|
|
border: none;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
line-height: 1;
|
|
|
overflow-wrap: unset;
|
|
|
text-align: left;
|
|
|
vertical-align: baseline;
|
|
|
cursor: auto;
|
|
|
white-space: pre;
|
|
|
box-shadow: none;
|
|
|
transform: none;
|
|
|
}
|
|
|
.MLK__backdrop {
|
|
|
position: absolute;
|
|
|
bottom: calc(-1 * var(--_keyboard-height));
|
|
|
width: 100%;
|
|
|
height: var(--_keyboard-height);
|
|
|
box-sizing: border-box;
|
|
|
padding-top: var(--_padding-top);
|
|
|
padding-bottom: var(--_padding-bottom);
|
|
|
padding-left: var(--_padding-horizontal);
|
|
|
padding-right: var(--_padding-horizontal);
|
|
|
opacity: 0;
|
|
|
visibility: hidden;
|
|
|
transform: translate(0, 0);
|
|
|
background: var(--_background);
|
|
|
}
|
|
|
.backdrop-is-transparent .MLK__backdrop {
|
|
|
background: transparent;
|
|
|
}
|
|
|
/* If a custom layout has a custom container/backdrop
|
|
|
(backdrop-is-transparent), make sure to let pointer event go through. */
|
|
|
.backdrop-is-transparent .MLK__plate {
|
|
|
background: transparent;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
/* If a custom layout has a custom container/backdrop, make sure to
|
|
|
allow pointer events on it. */
|
|
|
.backdrop-is-transparent .MLK__layer > div > div {
|
|
|
pointer-events: all;
|
|
|
}
|
|
|
.ML__keyboard.is-visible > .MLK__backdrop {
|
|
|
transform: translate(0, calc(-1 * var(--_keyboard-height)));
|
|
|
opacity: 1;
|
|
|
visibility: visible;
|
|
|
}
|
|
|
.caps-lock-indicator {
|
|
|
display: none;
|
|
|
width: 8px;
|
|
|
height: 8px;
|
|
|
background: #0cbc0c;
|
|
|
box-shadow: inset 0 0 4px 0 #13ca13, 0 0 4px 0 #a9ef48;
|
|
|
border-radius: 8px;
|
|
|
right: 8px;
|
|
|
top: 8px;
|
|
|
position: absolute;
|
|
|
}
|
|
|
.ML__keyboard.is-caps-lock .caps-lock-indicator {
|
|
|
display: block;
|
|
|
}
|
|
|
.ML__keyboard.is-caps-lock .shift {
|
|
|
background: var(--_keycap-background-active);
|
|
|
color: var(--_keycap-text-active);
|
|
|
}
|
|
|
.MLK__plate {
|
|
|
position: absolute;
|
|
|
top: var(--_padding-top);
|
|
|
left: var(--_padding-horizontal);
|
|
|
width: calc(100% - 2 * var(--_padding-horizontal));
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
box-sizing: border-box;
|
|
|
container-type: inline-size;
|
|
|
touch-action: none;
|
|
|
-webkit-user-select: none;
|
|
|
user-select: none;
|
|
|
pointer-events: all;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 16px;
|
|
|
/* Size of toolbar labels */
|
|
|
font-weight: 400;
|
|
|
text-shadow: none;
|
|
|
}
|
|
|
.ML__box-placeholder {
|
|
|
color: var(--_box-placeholder-color);
|
|
|
}
|
|
|
.MLK__tex {
|
|
|
font-family: KaTeX_Main, KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
}
|
|
|
.MLK__tex-math {
|
|
|
font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.MLK__layer {
|
|
|
display: none;
|
|
|
outline: none;
|
|
|
}
|
|
|
.MLK__layer.is-visible {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
}
|
|
|
/* Keyboard layouts are made or rows of keys... */
|
|
|
.MLK__rows {
|
|
|
--_keycap-width: min(var(--_keycap-max-width), 10cqw);
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
align-items: center;
|
|
|
border-collapse: separate;
|
|
|
clear: both;
|
|
|
border: 0;
|
|
|
margin: 0;
|
|
|
margin-bottom: var(--_keycap-gap);
|
|
|
gap: var(--_keycap-gap);
|
|
|
/* If the styling include, e.g., some shadows, they will be
|
|
|
cut off by the overflow. In that case, set the padding to
|
|
|
compensate. */
|
|
|
padding-left: var(--_row-padding-left);
|
|
|
padding-right: var(--_row-padding-right);
|
|
|
overflow: visible;
|
|
|
touch-action: none;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row {
|
|
|
display: flex;
|
|
|
flex-flow: row;
|
|
|
justify-content: center;
|
|
|
width: 100%;
|
|
|
gap: var(--_keycap-gap);
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
/* For the alignment of the text on some modifiers (e.g. shift) */
|
|
|
/* Extra spacing between two adjacent keys */
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .tex {
|
|
|
font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .tex-math {
|
|
|
font-family: KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .big-op {
|
|
|
font-size: calc(1.25 * var(--_keycap-font-size));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .small {
|
|
|
font-size: var(--_keycap-small-font-size);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .bottom {
|
|
|
justify-content: flex-end;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .left {
|
|
|
align-items: flex-start;
|
|
|
padding-left: 12px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .right {
|
|
|
align-items: flex-end;
|
|
|
padding-right: 12px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w0 {
|
|
|
width: 0;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w5 {
|
|
|
width: calc(0.5 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w15 {
|
|
|
width: calc(1.5 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w20 {
|
|
|
width: calc(2 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w40 {
|
|
|
width: calc(4 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .w50 {
|
|
|
width: calc(5 * var(--_keycap-width) - var(--_keycap-gap));
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .MLK__keycap.w50 {
|
|
|
font-size: 80%;
|
|
|
padding-top: 10px;
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .separator {
|
|
|
background: transparent;
|
|
|
border: none;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .horizontal-rule {
|
|
|
height: 6px;
|
|
|
margin-top: 3px;
|
|
|
margin-bottom: 0;
|
|
|
width: 100%;
|
|
|
border-radius: 0;
|
|
|
border-top: var(--_horizontal-rule);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .ghost {
|
|
|
background: var(--_toolbar-background);
|
|
|
border: none;
|
|
|
color: var(--_toolbar-text);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .ghost:hover {
|
|
|
background: var(--_toolbar-background-hover);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .bigfnbutton {
|
|
|
font-size: var(--_keycap-extra-small-font-size);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift,
|
|
|
.MLK__rows > .MLK__row .action {
|
|
|
color: var(--_keycap-secondary-text);
|
|
|
background: var(--_keycap-secondary-background);
|
|
|
border-color: var(--_keycap-secondary-border);
|
|
|
border-bottom-color: var(--_keycap-secondary-border-bottom);
|
|
|
line-height: 0.8;
|
|
|
font-size: min(1rem, var(--_keycap-small-font-size));
|
|
|
font-weight: 600;
|
|
|
padding: 8px 12px 8px 12px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift:hover,
|
|
|
.MLK__rows > .MLK__row .action:hover {
|
|
|
background: var(--_keycap-secondary-background-hover);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .action.primary {
|
|
|
background: var(--_keycap-primary-background);
|
|
|
color: var(--_keycap-primary-text);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .action.primary:hover {
|
|
|
background: var(--_keycap-primary-background-hover);
|
|
|
color: var(--_keycap-primary-text);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift.selected,
|
|
|
.MLK__rows > .MLK__row .action.selected {
|
|
|
color: var(--_toolbar-text-active);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .shift.selected.is-pressed,
|
|
|
.MLK__rows > .MLK__row .action.selected.is-pressed,
|
|
|
.MLK__rows > .MLK__row .shift.selected.is-active,
|
|
|
.MLK__rows > .MLK__row .action.selected.is-active {
|
|
|
color: white;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .warning {
|
|
|
background: #cd0030;
|
|
|
color: white;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row .warning svg.svg-glyph {
|
|
|
width: 24px;
|
|
|
height: 24px;
|
|
|
min-height: 24px;
|
|
|
}
|
|
|
/** A regular keycap
|
|
|
* Use the :where() pseudo-class to give it a very low specifity,
|
|
|
* so that it can be overriden by custom style.
|
|
|
*/
|
|
|
:where(.MLK__rows > .MLK__row div) {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
align-items: center;
|
|
|
justify-content: space-evenly;
|
|
|
width: calc(var(--_keycap-width) - var(--_keycap-gap));
|
|
|
height: var(--_keycap-height);
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
vertical-align: top;
|
|
|
text-align: center;
|
|
|
float: left;
|
|
|
color: var(--_keycap-text);
|
|
|
fill: currentColor;
|
|
|
font-size: var(--_keycap-font-size);
|
|
|
background: var(--_keycap-background);
|
|
|
border: 1px solid var(--_keycap-border);
|
|
|
border-bottom-color: var(--_keycap-border-bottom);
|
|
|
border-radius: 6px;
|
|
|
cursor: pointer;
|
|
|
touch-action: none;
|
|
|
/* Keys with a variants panel */
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
-webkit-user-select: none;
|
|
|
user-select: none;
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div):hover {
|
|
|
overflow: visible;
|
|
|
background: var(--_keycap-background-hover);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) .ML__latex {
|
|
|
pointer-events: none;
|
|
|
touch-action: none;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) svg.svg-glyph {
|
|
|
margin: 8px 0;
|
|
|
width: 20px;
|
|
|
height: 20px;
|
|
|
min-height: 20px;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) svg.svg-glyph-lg {
|
|
|
margin: 8px 0;
|
|
|
width: 24px;
|
|
|
height: 24px;
|
|
|
min-height: 24px;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__tex-math {
|
|
|
font-size: 25px;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).is-pressed {
|
|
|
background: var(--_keycap-background-pressed);
|
|
|
color: var(--_keycap-text-pressed);
|
|
|
--_box-placeholder-color: var(--_box-placeholder-pressed-color);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed {
|
|
|
z-index: calc(var(--_keyboard-zindex) - 5);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active aside,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active aside,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed aside,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed aside {
|
|
|
display: none;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active .MLK__shift,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active .MLK__shift,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed .MLK__shift,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed .MLK__shift {
|
|
|
display: none;
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).shift.is-pressed,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-pressed {
|
|
|
background: var(--_keycap-background-pressed);
|
|
|
color: var(--_keycap-text-pressed);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div).shift.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,
|
|
|
:where(.MLK__rows > .MLK__row div).action.is-active {
|
|
|
background: var(--_keycap-background-active);
|
|
|
color: var(--_keycap-text-active);
|
|
|
--_box-placeholder-color: var(--_box-placeholder-pressed-color);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) small {
|
|
|
color: var(--_keycap-secondary-text);
|
|
|
}
|
|
|
:where(.MLK__rows > .MLK__row div) aside {
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-size: 10px;
|
|
|
line-height: 10px;
|
|
|
color: var(--_keycap-secondary-text);
|
|
|
}
|
|
|
/* Add an attribute 'data-tooltip' to display a tooltip on hover.
|
|
|
Note there are a different set of tooltip rules for the keyboard toggle
|
|
|
(it's in a different CSS tree) */
|
|
|
.ML__keyboard [data-tooltip] {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__keyboard [data-tooltip]::after {
|
|
|
position: absolute;
|
|
|
display: inline-table;
|
|
|
content: attr(data-tooltip);
|
|
|
top: inherit;
|
|
|
bottom: 100%;
|
|
|
width: max-content;
|
|
|
max-width: 200px;
|
|
|
padding: 8px 8px;
|
|
|
background: #616161;
|
|
|
color: #fff;
|
|
|
text-align: center;
|
|
|
z-index: 2;
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
|
border-radius: 2px;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
font-weight: 400;
|
|
|
font-size: 12px;
|
|
|
transition: all 0.15s cubic-bezier(0.4, 0, 1, 1) 1s;
|
|
|
opacity: 0;
|
|
|
transform: scale(0.5);
|
|
|
}
|
|
|
.ML__keyboard [data-tooltip]:hover {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__keyboard [data-tooltip]:hover::after {
|
|
|
opacity: 1;
|
|
|
transform: scale(1);
|
|
|
}
|
|
|
.MLK__toolbar {
|
|
|
align-self: center;
|
|
|
display: flex;
|
|
|
flex-flow: row;
|
|
|
justify-content: space-between;
|
|
|
width: 100%;
|
|
|
max-width: 996px;
|
|
|
min-height: 32px;
|
|
|
/* Icons for undo/redo, etc. */
|
|
|
}
|
|
|
.MLK__toolbar svg {
|
|
|
height: 20px;
|
|
|
width: 20px;
|
|
|
}
|
|
|
.MLK__toolbar > .left {
|
|
|
position: relative;
|
|
|
display: flex;
|
|
|
justify-content: flex-start;
|
|
|
flex-flow: row;
|
|
|
}
|
|
|
.MLK__toolbar > .right {
|
|
|
display: flex;
|
|
|
justify-content: flex-end;
|
|
|
flex-flow: row;
|
|
|
}
|
|
|
.MLK__toolbar > div > div {
|
|
|
/* "button" in the toolbar */
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
color: var(--_toolbar-text);
|
|
|
fill: currentColor;
|
|
|
background: var(--_toolbar-background);
|
|
|
font-size: var(--_toolbar-font-size);
|
|
|
padding: 4px 15px;
|
|
|
cursor: pointer;
|
|
|
width: max-content;
|
|
|
min-width: 42px;
|
|
|
min-height: 34px;
|
|
|
border: none;
|
|
|
padding-left: 10px;
|
|
|
padding-right: 10px;
|
|
|
padding-bottom: 8px;
|
|
|
padding-top: 8px;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 4px;
|
|
|
margin-left: 4px;
|
|
|
margin-right: 4px;
|
|
|
border-radius: 8px;
|
|
|
box-shadow: none;
|
|
|
border-bottom: 2px solid transparent;
|
|
|
}
|
|
|
.MLK__toolbar > div > div:not(.disabled):not(.selected):hover {
|
|
|
background: var(--_toolbar-background-hover);
|
|
|
}
|
|
|
.MLK__toolbar > div > div.disabled svg,
|
|
|
.MLK__toolbar > div > div.disabled:hover svg,
|
|
|
.MLK__toolbar > div > div.disabled.is-pressed svg {
|
|
|
color: var(--_toolbar-text);
|
|
|
opacity: 0.2;
|
|
|
}
|
|
|
.MLK__toolbar > div > div:hover,
|
|
|
.MLK__toolbar > div > div:active,
|
|
|
.MLK__toolbar > div > div.is-pressed,
|
|
|
.MLK__toolbar > div > div.is-active {
|
|
|
color: var(--_toolbar-text-active);
|
|
|
}
|
|
|
.MLK__toolbar > div > div.selected {
|
|
|
color: var(--_toolbar-text-active);
|
|
|
background: var(--_toolbar-background-selected);
|
|
|
border-radius: 0;
|
|
|
border-bottom-color: var(--_toolbar-text-active);
|
|
|
padding-bottom: 4px;
|
|
|
margin-bottom: 8px;
|
|
|
}
|
|
|
/* This is the element that displays variants on press+hold */
|
|
|
.MLK__variant-panel {
|
|
|
visibility: hidden;
|
|
|
position: fixed;
|
|
|
display: flex;
|
|
|
flex-flow: row wrap-reverse;
|
|
|
justify-content: center;
|
|
|
align-content: center;
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
bottom: auto;
|
|
|
top: 0;
|
|
|
box-sizing: content-box;
|
|
|
transform: none;
|
|
|
z-index: calc(var(--_keyboard-zindex) + 1);
|
|
|
touch-action: none;
|
|
|
max-width: 350px;
|
|
|
background: var(--_variant-panel-background);
|
|
|
text-align: center;
|
|
|
border-radius: 6px;
|
|
|
padding: 6px;
|
|
|
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
|
|
|
transition: none;
|
|
|
}
|
|
|
.MLK__variant-panel.is-visible {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
.MLK__variant-panel.compact {
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 50px);
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
|
|
|
--_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 10px);
|
|
|
}
|
|
|
.MLK__variant-panel .item {
|
|
|
display: flex;
|
|
|
flex-flow: column;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
font-size: var(--_variant-keycap-font-size);
|
|
|
height: var(--_variant-keycap-length);
|
|
|
width: var(--_variant-keycap-length);
|
|
|
margin: 0;
|
|
|
box-sizing: border-box;
|
|
|
border-radius: 5px;
|
|
|
border: 1px solid transparent;
|
|
|
background: transparent;
|
|
|
pointer-events: all;
|
|
|
cursor: pointer;
|
|
|
color: var(--_variant-keycap-text);
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
@media (max-height: 412px) {
|
|
|
.MLK__variant-panel .item {
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 50px);
|
|
|
}
|
|
|
}
|
|
|
.MLK__variant-panel .item .ML__latex {
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
.MLK__variant-panel .item.is-active {
|
|
|
background: var(--_variant-keycap-background-active);
|
|
|
color: var(--_variant-keycap-text-active);
|
|
|
}
|
|
|
.MLK__variant-panel .item.is-pressed {
|
|
|
background: var(--_variant-keycap-background-pressed);
|
|
|
color: var(--_variant-keycap-text-pressed);
|
|
|
}
|
|
|
.MLK__variant-panel .item.small {
|
|
|
font-size: var(--_keycap-small-font-size);
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button {
|
|
|
box-sizing: border-box;
|
|
|
background: #fbfbfb;
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button > span {
|
|
|
display: inline-block;
|
|
|
margin: 6px;
|
|
|
width: calc(100% - 12px);
|
|
|
height: calc(100% - 12px);
|
|
|
border-radius: 50%;
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button:hover {
|
|
|
background: #f0f0f0;
|
|
|
}
|
|
|
.MLK__variant-panel .item.swatch-button:hover > span {
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
.MLK__variant-panel .item.box > div,
|
|
|
.MLK__variant-panel .item.box > span {
|
|
|
border: 1px dashed rgba(0, 0, 0, 0.24);
|
|
|
}
|
|
|
.MLK__variant-panel .item .warning {
|
|
|
min-height: 60px;
|
|
|
min-width: 60px;
|
|
|
background: #cd0030;
|
|
|
color: white;
|
|
|
padding: 5px;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
border-radius: 5px;
|
|
|
}
|
|
|
.MLK__variant-panel .item .warning.is-pressed,
|
|
|
.MLK__variant-panel .item .warning.is-active {
|
|
|
background: red;
|
|
|
}
|
|
|
.MLK__variant-panel .item .warning svg.svg-glyph {
|
|
|
width: 50px;
|
|
|
height: 50px;
|
|
|
}
|
|
|
.MLK__variant-panel .item aside {
|
|
|
font-size: var(--_variant-keycap-aside-font-size);
|
|
|
line-height: 12px;
|
|
|
opacity: 0.78;
|
|
|
padding-top: 2px;
|
|
|
}
|
|
|
.MLK__keycap {
|
|
|
position: relative;
|
|
|
}
|
|
|
.MLK__shift {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
right: 4px;
|
|
|
top: 4px;
|
|
|
font-size: var(--_keycap-shift-font-size);
|
|
|
color: var(--_keycap-shift-color);
|
|
|
}
|
|
|
.hide-shift .MLK__shift {
|
|
|
display: none;
|
|
|
}
|
|
|
@media (max-width: 414px) {
|
|
|
.MLK__variant-panel {
|
|
|
max-width: 350px;
|
|
|
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
|
|
|
--_variant-keycap-length: var(--variant-keycap-length, 50px);
|
|
|
}
|
|
|
}
|
|
|
/* @xs breakpoint: iPhone 5 */
|
|
|
@container (max-width: 414px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-gap: max(var(--_keycap-gap, 2px), 2px);
|
|
|
--_keycap-height: max(var(--_keycap-height), 42px);
|
|
|
--_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);
|
|
|
}
|
|
|
.MLK__toolbar > div > div {
|
|
|
font-size: 100%;
|
|
|
margin-left: 2px;
|
|
|
margin-right: 2px;
|
|
|
}
|
|
|
.MLK__rows .shift,
|
|
|
.MLK__rows .action {
|
|
|
font-size: 65%;
|
|
|
}
|
|
|
.MLK__rows .warning svg.svg-glyph {
|
|
|
width: 14px;
|
|
|
height: 14px;
|
|
|
min-height: 14px;
|
|
|
}
|
|
|
}
|
|
|
@container (max-width: 744px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-gap: max(var(--keycap-gap, 2px), 2px);
|
|
|
--_keycap-height: max(var(--keycap-height, 52px), 52px);
|
|
|
--_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);
|
|
|
}
|
|
|
.MLK__toolbar > div > div {
|
|
|
padding-left: 0;
|
|
|
padding-right: 0;
|
|
|
}
|
|
|
.MLK__tooltip::after {
|
|
|
padding: 8px 16px;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div.fnbutton {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div.bigfnbutton {
|
|
|
font-size: calc(var(--_keycap-extra-small-font-size) / 1.55);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div.small {
|
|
|
font-size: 13px;
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div > aside {
|
|
|
display: none;
|
|
|
}
|
|
|
.MLK__shift {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
/* Medium breakpoint: larger phones */
|
|
|
@container (max-width: 768px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-height: max(var(--keycap-height, 42px), 42px);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div > small {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
}
|
|
|
@media (max-height: 768px) {
|
|
|
.MLK__rows {
|
|
|
--_keycap-height: max(var(--keycap-height, 42px), 42px);
|
|
|
}
|
|
|
.MLK__rows > .MLK__row > div > small {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
}
|
|
|
@container (max-width: 1444px) {
|
|
|
.MLK__rows .if-wide {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
.ML__keyboard {
|
|
|
--_accent-color: var(--keyboard-accent-color, #0b5c9c);
|
|
|
--_background: var(--keyboard-background, #151515);
|
|
|
--_border: var(--keyboard-border, transparent);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);
|
|
|
--keyboard-toolbar-background-hover: #303030;
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);
|
|
|
--_keycap-background: var(--keycap-background, #1f2022);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #2f3032);
|
|
|
--_keycap-border: var(--_keycap-border, transparent);
|
|
|
--_keycap-border-bottom: var(--_keycap-border-bottom, transparent);
|
|
|
--_keycap-text: var(--keycap-text, #e3e4e8);
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);
|
|
|
--keycap-secondary-border: transparent;
|
|
|
--keycap-secondary-border-bottom: transparent;
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, transparent);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);
|
|
|
--_variant-panel-background: var(--variant-panel-background, #303030);
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);
|
|
|
}
|
|
|
}
|
|
|
/* Same as the media query, but with a class */
|
|
|
[theme='dark'] .ML__keyboard {
|
|
|
--_accent-color: var(--keyboard-accent-color, #0b5c9c);
|
|
|
--_background: var(--keyboard-background, #151515);
|
|
|
--_border: var(--keyboard-border, transparent);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);
|
|
|
--keyboard-toolbar-background-hover: #303030;
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);
|
|
|
--_keycap-background: var(--keycap-background, #1f2022);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #2f3032);
|
|
|
--_keycap-border: var(--_keycap-border, transparent);
|
|
|
--_keycap-border-bottom: var(--_keycap-border-bottom, transparent);
|
|
|
--_keycap-text: var(--keycap-text, #e3e4e8);
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);
|
|
|
--keycap-secondary-border: transparent;
|
|
|
--keycap-secondary-border-bottom: transparent;
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, transparent);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);
|
|
|
--_variant-panel-background: var(--variant-panel-background, #303030);
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);
|
|
|
}
|
|
|
[theme='light'] .ML__keyboard {
|
|
|
--_accent-color: var(--keyboard-accent-color, #0c75d8);
|
|
|
--_background: var(--keyboard-background, #cacfd7);
|
|
|
--_border: var(--keyboard-border, #ddd);
|
|
|
--_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);
|
|
|
--_toolbar-background: var(--keyboard-toolbar-background, transparent);
|
|
|
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);
|
|
|
--_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);
|
|
|
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);
|
|
|
--_keycap-background: var(--keycap-background, white);
|
|
|
--_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);
|
|
|
--_keycap-background-active: var(--keycap-background-active, var(--_accent-color));
|
|
|
--_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));
|
|
|
--_keycap-border: var(--_keycap-border, #e5e6e9);
|
|
|
--_keycap-border-bottom: var(--_keycap-border-bottom, #8d8f92);
|
|
|
--_keycap-text: var(--keycap-text, #000);
|
|
|
--_keycap-text-active: var(--keycap-text-active, #fff);
|
|
|
--_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));
|
|
|
--_keycap-text-pressed: var(--keycap-text-pressed, #fff);
|
|
|
--_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));
|
|
|
--_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);
|
|
|
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);
|
|
|
--_keycap-secondary-text: var(--keycap-secondary-text, #060707);
|
|
|
--_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);
|
|
|
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);
|
|
|
--_variant-panel-background: var(--variant-panel-background, #fff);
|
|
|
--_variant-keycap-text: var(--variant-keycap-textvar, var(--_keycap-text));
|
|
|
--_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));
|
|
|
--_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));
|
|
|
}
|
|
|
`,tl=`:host {
|
|
|
--primary-color: #5898ff;
|
|
|
--primary-color-dimmed: #c0c0f0;
|
|
|
--primary-color-dark: var(--blue-500);
|
|
|
--primary-color-light: var(--blue-100);
|
|
|
--primary-color-reverse: #ffffff;
|
|
|
--secondary-color: #ff8a65;
|
|
|
--secondary-color-dimmed: #f0d5c5;
|
|
|
--secondary-color-dark: var(--orange-500);
|
|
|
--secondary-color-light: var(--orange-100);
|
|
|
--secondary-color-reverse: #ffffff;
|
|
|
--link-color: #5898ff;
|
|
|
--link-color-dimmed: #c5c5c5;
|
|
|
--link-color-dark: #121212;
|
|
|
--link-color-light: #e2e2e2;
|
|
|
--link-color-reverse: #ffffff;
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--neutral-100: #f5f5f5;
|
|
|
--neutral-200: #eeeeee;
|
|
|
--neutral-300: #e0e0e0;
|
|
|
--neutral-400: #bdbdbd;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #757575;
|
|
|
--neutral-700: #616161;
|
|
|
--neutral-800: #424242;
|
|
|
--neutral-900: #212121;
|
|
|
--red-25: #fff8f7;
|
|
|
--red-50: #fff1ef;
|
|
|
--red-100: #ffeae6;
|
|
|
--red-200: #ffcac1;
|
|
|
--red-300: #ffa495;
|
|
|
--red-400: #ff7865;
|
|
|
--red-500: #f21c0d;
|
|
|
--red-600: #e50018;
|
|
|
--red-700: #d30024;
|
|
|
--red-800: #bd002c;
|
|
|
--red-900: #a1002f;
|
|
|
--orange-25: #fffbf8;
|
|
|
--orange-50: #fff7f1;
|
|
|
--orange-100: #fff3ea;
|
|
|
--orange-200: #ffe1c9;
|
|
|
--orange-300: #ffcca2;
|
|
|
--orange-400: #ffb677;
|
|
|
--orange-500: #fe9310;
|
|
|
--orange-600: #f58700;
|
|
|
--orange-700: #ea7c00;
|
|
|
--orange-800: #dc6d00;
|
|
|
--orange-900: #ca5b00;
|
|
|
--brown-25: #fff8ef;
|
|
|
--brown-50: #fff1df;
|
|
|
--brown-100: #ffe9ce;
|
|
|
--brown-200: #ebcca6;
|
|
|
--brown-300: #cdaf8a;
|
|
|
--brown-400: #af936f;
|
|
|
--brown-500: #856a47;
|
|
|
--brown-600: #7f5e34;
|
|
|
--brown-700: #78511f;
|
|
|
--brown-800: #6e4200;
|
|
|
--brown-900: #593200;
|
|
|
--yellow-25: #fffdf9;
|
|
|
--yellow-50: #fffcf2;
|
|
|
--yellow-100: #fffaec;
|
|
|
--yellow-200: #fff2ce;
|
|
|
--yellow-300: #ffe8ab;
|
|
|
--yellow-400: #ffdf85;
|
|
|
--yellow-500: #ffcf33;
|
|
|
--yellow-600: #f1c000;
|
|
|
--yellow-700: #dfb200;
|
|
|
--yellow-800: #c9a000;
|
|
|
--yellow-900: #ad8a00;
|
|
|
--lime-25: #f4ffee;
|
|
|
--lime-50: #e9ffdd;
|
|
|
--lime-100: #ddffca;
|
|
|
--lime-200: #a8fb6f;
|
|
|
--lime-300: #94e659;
|
|
|
--lime-400: #80d142;
|
|
|
--lime-500: #63b215;
|
|
|
--lime-600: #45a000;
|
|
|
--lime-700: #268e00;
|
|
|
--lime-800: #007417;
|
|
|
--lime-900: #005321;
|
|
|
--green-25: #f5fff5;
|
|
|
--green-50: #ebffea;
|
|
|
--green-100: #e0ffdf;
|
|
|
--green-200: #a7ffa7;
|
|
|
--green-300: #5afa65;
|
|
|
--green-400: #45e953;
|
|
|
--green-500: #17cf36;
|
|
|
--green-600: #00b944;
|
|
|
--green-700: #00a34a;
|
|
|
--green-800: #008749;
|
|
|
--green-900: #00653e;
|
|
|
--teal-25: #f3ffff;
|
|
|
--teal-50: #e6fffe;
|
|
|
--teal-100: #d9fffe;
|
|
|
--teal-200: #8dfffe;
|
|
|
--teal-300: #57f4f4;
|
|
|
--teal-400: #43e5e5;
|
|
|
--teal-500: #17cfcf;
|
|
|
--teal-600: #00c2c0;
|
|
|
--teal-700: #00b5b1;
|
|
|
--teal-800: #00a49e;
|
|
|
--teal-900: #009087;
|
|
|
--cyan-25: #f7fcff;
|
|
|
--cyan-50: #eff8ff;
|
|
|
--cyan-100: #e7f5ff;
|
|
|
--cyan-200: #c2e6ff;
|
|
|
--cyan-300: #95d5ff;
|
|
|
--cyan-400: #61c4ff;
|
|
|
--cyan-500: #13a7ec;
|
|
|
--cyan-600: #069eda;
|
|
|
--cyan-700: #0095c9;
|
|
|
--cyan-800: #0088b2;
|
|
|
--cyan-900: #0a7897;
|
|
|
--blue-25: #f7faff;
|
|
|
--blue-50: #eef5ff;
|
|
|
--blue-100: #e5f1ff;
|
|
|
--blue-200: #bfdbff;
|
|
|
--blue-300: #92c2ff;
|
|
|
--blue-400: #63a8ff;
|
|
|
--blue-500: #0d80f2;
|
|
|
--blue-600: #0077db;
|
|
|
--blue-700: #006dc4;
|
|
|
--blue-800: #0060a7;
|
|
|
--blue-900: #005086;
|
|
|
--indigo-25: #f8f7ff;
|
|
|
--indigo-50: #f1efff;
|
|
|
--indigo-100: #eae7ff;
|
|
|
--indigo-200: #ccc3ff;
|
|
|
--indigo-300: #ac99ff;
|
|
|
--indigo-400: #916aff;
|
|
|
--indigo-500: #63c;
|
|
|
--indigo-600: #5a21b2;
|
|
|
--indigo-700: #4e0b99;
|
|
|
--indigo-800: #3b0071;
|
|
|
--indigo-900: #220040;
|
|
|
--purple-25: #fbf7ff;
|
|
|
--purple-50: #f8f0ff;
|
|
|
--purple-100: #f4e8ff;
|
|
|
--purple-200: #e4c4ff;
|
|
|
--purple-300: #d49aff;
|
|
|
--purple-400: #c36aff;
|
|
|
--purple-500: #a219e6;
|
|
|
--purple-600: #9000c4;
|
|
|
--purple-700: #7c009f;
|
|
|
--purple-800: #600073;
|
|
|
--purple-900: #3d0043;
|
|
|
--magenta-25: #fff8fb;
|
|
|
--magenta-50: #fff2f6;
|
|
|
--magenta-100: #ffebf2;
|
|
|
--magenta-200: #ffcddf;
|
|
|
--magenta-300: #ffa8cb;
|
|
|
--magenta-400: #ff7fb7;
|
|
|
--magenta-500: #eb4799;
|
|
|
--magenta-600: #da3689;
|
|
|
--magenta-700: #c82179;
|
|
|
--magenta-800: #b00065;
|
|
|
--magenta-900: #8a004c;
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--semantic-bg-blue: var(--blue-25);
|
|
|
--semantic-bg-red: var(--red-25);
|
|
|
--semantic-bg-orange: var(--orange-25);
|
|
|
--semantic-bg-green: var(--green-25);
|
|
|
--neutral-100: #121212;
|
|
|
--neutral-200: #424242;
|
|
|
--neutral-300: #616161;
|
|
|
--neutral-400: #757575;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #bdbdbd;
|
|
|
--neutral-700: #e0e0e0;
|
|
|
--neutral-800: #eeeeee;
|
|
|
--neutral-900: #f5f5f5;
|
|
|
}
|
|
|
}
|
|
|
:host([theme='dark']) {
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--semantic-bg-blue: var(--blue-25);
|
|
|
--semantic-bg-red: var(--red-25);
|
|
|
--semantic-bg-orange: var(--orange-25);
|
|
|
--semantic-bg-green: var(--green-25);
|
|
|
--neutral-100: #121212;
|
|
|
--neutral-200: #424242;
|
|
|
--neutral-300: #616161;
|
|
|
--neutral-400: #757575;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #bdbdbd;
|
|
|
--neutral-700: #e0e0e0;
|
|
|
--neutral-800: #eeeeee;
|
|
|
--neutral-900: #f5f5f5;
|
|
|
}
|
|
|
/* @media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--label-color: #fff;
|
|
|
--active-label-color: #000;
|
|
|
--menu-bg: #525252;
|
|
|
--active-bg: #5898ff;
|
|
|
--active-bg-dimmed: #5c5c5c;
|
|
|
}
|
|
|
} */
|
|
|
:host {
|
|
|
--ui-font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
|
|
|
'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
|
|
|
'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
|
--ui-font-size: 14px;
|
|
|
--ui-line-height: 1.5;
|
|
|
--ui-letter-spacing: 0.007em;
|
|
|
--mono-font-family: 'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono',
|
|
|
'Source Code Pro', Menlo, Monaco, 'Courier New', monospace;
|
|
|
--ui-layer-1: var(--neutral-100);
|
|
|
--ui-layer-2: var(--neutral-200);
|
|
|
--ui-layer-3: var(--neutral-300);
|
|
|
--ui-layer-4: var(--neutral-400);
|
|
|
--ui-layer-5: var(--neutral-500);
|
|
|
--ui-layer-6: var(--neutral-600);
|
|
|
--ui-border-color: var(--primary-color);
|
|
|
--ui-border-radius: 4px;
|
|
|
--ui-text: var(--neutral-900);
|
|
|
--ui-text-secondary: var(--neutral-700);
|
|
|
--ui-text-placeholder: var(--neutral-500);
|
|
|
--ui-text-muted: var(--neutral-300);
|
|
|
/** A field is a UI element in which a user can type data, for
|
|
|
* example an input or textarea element.
|
|
|
*/
|
|
|
--ui-field-bg: var(--neutral-100);
|
|
|
--ui-field-bg-hover: var(--neutral-100);
|
|
|
--ui-field-bg-disabled: var(--neutral-300);
|
|
|
--ui-field-bg-invalid: var(--red-100);
|
|
|
--ui-field-bg-focus: var(--neutral-100);
|
|
|
--ui-field-border: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-hover: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-disabled: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-invalid: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-focus: 0.5px solid var(--border-color);
|
|
|
--ui-menu-bg: var(--neutral-100);
|
|
|
--ui-menu-text: var(--neutral-900);
|
|
|
--ui-menu-bg-hover: var(--neutral-200);
|
|
|
--ui-menu-text-hover: var(--neutral-900);
|
|
|
/** The \`active\` state is used for the state of menu items
|
|
|
* when they are selected.
|
|
|
*/
|
|
|
--ui-menu-bg-active: var(--primary-color);
|
|
|
--ui-menu-text-active: var(--primary-color-reverse);
|
|
|
/** The \`active-muted\` set is used for the state of
|
|
|
* submenus when they are open.
|
|
|
*/
|
|
|
--ui-menu-bg-active-muted: var(--neutral-300);
|
|
|
--ui-menu-text-active-muted: var(--neutral-900);
|
|
|
/* --ui-menu-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.302),
|
|
|
0 2px 6px 2px rgba(60, 64, 67, 0.149); */
|
|
|
--ui-menu-shadow: 0 0 2px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.2);
|
|
|
--ui-menu-divider: 0.5px solid #c7c7c7;
|
|
|
/* var(--neutral-300); */
|
|
|
--ui-menu-z-index: 10000;
|
|
|
--page-bg: var(--neutral-100);
|
|
|
--content-bg: var(--neutral-200);
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--ui-menu-bg: var(--neutral-200);
|
|
|
}
|
|
|
}
|
|
|
:host([theme='dark']) {
|
|
|
--ui-menu-bg: var(--neutral-200);
|
|
|
}
|
|
|
/* PingFang SC is a macOS font. Microsoft Yahei is a Windows font.
|
|
|
Noto is a Linux/Android font.
|
|
|
*/
|
|
|
:lang(zh-cn),
|
|
|
:lang(zh-sg),
|
|
|
:lang(zh-my),
|
|
|
:lang(zh) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'PingFang SC', 'Hiragino Sans GB',
|
|
|
'Noto Sans CJK SC', 'Noto Sans SC', 'Noto Sans', 'Microsoft Yahei UI',
|
|
|
'Microsoft YaHei New', 'Microsoft Yahei', '\u5FAE\u8F6F\u96C5\u9ED1', SimSun, '\u5B8B\u4F53',
|
|
|
STXihei, '\u534E\u6587\u7EC6\u9ED1', sans-serif;
|
|
|
}
|
|
|
:lang(zh-tw),
|
|
|
:lang(zh-hk),
|
|
|
:lang(zh-mo) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans',
|
|
|
'Microsoft JhengHei UI', 'Microsoft JhengHei', '\u5FAE\u8EDF\u6B63\u9ED1\u9AD4', '\u65B0\u7D30\u660E\u9AD4',
|
|
|
'PMingLiU', '\u7D30\u660E\u9AD4', 'MingLiU', sans-serif;
|
|
|
}
|
|
|
:lang(ja),
|
|
|
:lang(ja-jp),
|
|
|
:lang(ja-jp-mac) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Hiragino Sans',
|
|
|
'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', 'Noto Sans JP', 'Noto Sans',
|
|
|
'\u6E38\u30B4\u30B7\u30C3\u30AF', '\u6E38\u30B4\u30B7\u30C3\u30AF\u4F53', YuGothic, 'Yu Gothic', '\u30E1\u30A4\u30EA\u30AA', Meiryo,
|
|
|
'\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF', 'MS PGothic', sans-serif;
|
|
|
}
|
|
|
:lang(ko),
|
|
|
:lang(ko-kr),
|
|
|
:lang(ko-kr-std) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
|
|
|
'Noto Sans', 'Malgun Gothic', '\uB9D1\uC740 \uACE0\uB515', 'Apple SD Gothic Neo',
|
|
|
'\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo', 'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
|
|
|
}
|
|
|
:lang(ko-kr-apple) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
|
|
|
'Noto Sans', 'Apple SD Gothic Neo', '\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo',
|
|
|
'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
|
|
|
}
|
|
|
:lang(zh-cn),
|
|
|
:lang(zh-sg),
|
|
|
:lang(zh-my),
|
|
|
:lang(zh),
|
|
|
:lang(zh-tw),
|
|
|
:lang(zh-hk),
|
|
|
:lang(zh-mo),
|
|
|
:lang(ja),
|
|
|
:lang(ja-jp),
|
|
|
:lang(ja-jp-mac),
|
|
|
:lang(ko),
|
|
|
:lang(ko-kr),
|
|
|
:lang(ko-kr-std),
|
|
|
:lang(ko-kr-apple) {
|
|
|
--ui-font-size: 1rem;
|
|
|
--ui-line-height: 1.7;
|
|
|
--ui-letter-spacing: 0;
|
|
|
}
|
|
|
:dir(rtl) {
|
|
|
--ui-line-height: auto;
|
|
|
--ui-letter-spacing: 0;
|
|
|
}
|
|
|
`,eA=`.ui-menu *,
|
|
|
.ui-menu ::before,
|
|
|
.ui-menu ::after {
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ui-menu {
|
|
|
display: none;
|
|
|
color-scheme: light dark;
|
|
|
-webkit-user-select: none;
|
|
|
/* Important: Safari iOS doesn't respect user-select */
|
|
|
user-select: none;
|
|
|
cursor: default;
|
|
|
-webkit-touch-callout: none;
|
|
|
-webkit-tap-highlight-color: rgba(0 0 0 0);
|
|
|
--active-label-color: #fff;
|
|
|
/* ui-menu-text-active */
|
|
|
--label-color: #121212;
|
|
|
/* ui-menu-text */
|
|
|
--menu-bg: #e2e2e2;
|
|
|
/* ui-menu-background */
|
|
|
--active-bg: #5898ff;
|
|
|
/* ui-menu-background-active */
|
|
|
--active-bg-dimmed: #c5c5c5;
|
|
|
/* ui-menu-background-active-muted */
|
|
|
}
|
|
|
/** Use the :where pseudo selector to make the specificity of the
|
|
|
* selector 0, so that it can be overridden by the user.
|
|
|
*/
|
|
|
:where(.ui-menu-container) {
|
|
|
position: absolute;
|
|
|
overflow: visible;
|
|
|
width: auto;
|
|
|
height: auto;
|
|
|
z-index: 10000;
|
|
|
border-radius: 8px;
|
|
|
background: var(--ui-menu-bg);
|
|
|
box-shadow: var(--ui-menu-shadow);
|
|
|
list-style: none;
|
|
|
padding: 6px 0 6px 0;
|
|
|
margin: 0;
|
|
|
user-select: none;
|
|
|
cursor: default;
|
|
|
color: var(--ui-menu-text);
|
|
|
font-weight: normal;
|
|
|
font-style: normal;
|
|
|
text-shadow: none;
|
|
|
text-transform: none;
|
|
|
letter-spacing: 0;
|
|
|
outline: none;
|
|
|
opacity: 1;
|
|
|
/* The [popover] elements have a 1px solid black border. Ugh. */
|
|
|
border: none;
|
|
|
width: fit-content;
|
|
|
height: fit-content;
|
|
|
}
|
|
|
:where(.ui-menu-container > li) {
|
|
|
display: flex;
|
|
|
flex-flow: row;
|
|
|
align-items: center;
|
|
|
padding: 1px 7px 1px 7px;
|
|
|
margin-top: 0;
|
|
|
margin-left: 6px;
|
|
|
margin-right: 6px;
|
|
|
border-radius: 4px;
|
|
|
white-space: nowrap;
|
|
|
position: relative;
|
|
|
outline: none;
|
|
|
fill: currentColor;
|
|
|
user-select: none;
|
|
|
cursor: default;
|
|
|
text-align: left;
|
|
|
color: inherit;
|
|
|
font-family: var(--ui-font-family);
|
|
|
font-size: var(--ui-font-size);
|
|
|
line-height: var(--ui-line-height);
|
|
|
letter-spacing: var(--ui-letter-spacing);
|
|
|
}
|
|
|
:where(.ui-menu-container > li > .label) {
|
|
|
appearance: none;
|
|
|
background: none;
|
|
|
outline: none;
|
|
|
width: 100%;
|
|
|
margin: 0;
|
|
|
padding: 1px 2px 1px 1px;
|
|
|
overflow: visible;
|
|
|
border: 1px solid transparent;
|
|
|
white-space: nowrap;
|
|
|
text-align: start;
|
|
|
}
|
|
|
:where(.ui-menu-container > li:has(.heading)) {
|
|
|
margin-top: 0.5em;
|
|
|
}
|
|
|
:where(.ui-menu-container > li > .label.heading) {
|
|
|
font-weight: bold;
|
|
|
opacity: 0.4;
|
|
|
}
|
|
|
:where(.ui-menu-container > li.indent > .label) {
|
|
|
margin-inline-start: 12px;
|
|
|
}
|
|
|
:where(.ui-menu-container > li > .label.indent) {
|
|
|
margin-inline-start: 12px;
|
|
|
}
|
|
|
:where(.ui-menu-container > li[role='divider']) {
|
|
|
border-bottom: 1px solid var(--ui-menu-divider);
|
|
|
border-radius: 0;
|
|
|
padding: 0;
|
|
|
margin-left: 15px;
|
|
|
margin-right: 15px;
|
|
|
padding-top: 5px;
|
|
|
margin-bottom: 5px;
|
|
|
width: calc(100% - 30px);
|
|
|
/** 100% - (margin-left + margin-right) */
|
|
|
}
|
|
|
:where(.ui-menu-container > li[aria-disabled='true']) {
|
|
|
opacity: 0.5;
|
|
|
}
|
|
|
:where(.ui-menu-container > li.active) {
|
|
|
background: var(--ui-menu-bg-active);
|
|
|
background: -apple-system-control-accent;
|
|
|
color: var(--ui-menu-text-active);
|
|
|
}
|
|
|
:where(.ui-menu-container > li.active.is-submenu-open) {
|
|
|
background: var(--ui-menu-bg-active-muted);
|
|
|
color: inherit;
|
|
|
}
|
|
|
:where(.ui-menu-container > li[aria-haspopup='true'] > .label) {
|
|
|
padding-inline-end: 0;
|
|
|
}
|
|
|
:where(.ui-menu-container > li[aria-haspopup='true'].active::after) {
|
|
|
color: var(--ui-menu-text-active);
|
|
|
}
|
|
|
/** Keyboard shortcut */
|
|
|
:where(.ui-menu-container > li > kbd) {
|
|
|
font-family: var(--ui-font-family);
|
|
|
margin-inline-start: 12px;
|
|
|
opacity: 0.4;
|
|
|
}
|
|
|
:where(.ui-menu-container > li.active > kbd) {
|
|
|
opacity: 0.85;
|
|
|
}
|
|
|
.ui-trailing-chevron {
|
|
|
display: flex;
|
|
|
margin-inline-start: 24px;
|
|
|
width: 10px;
|
|
|
height: 10px;
|
|
|
margin-bottom: 4px;
|
|
|
}
|
|
|
.ui-trailing-chevron:dir(rtl) {
|
|
|
transform: scaleX(-1);
|
|
|
}
|
|
|
.ui-checkmark {
|
|
|
display: flex;
|
|
|
margin-inline-end: -11px;
|
|
|
margin-inline-start: -4px;
|
|
|
margin-top: 2px;
|
|
|
width: 16px;
|
|
|
height: 16px;
|
|
|
}
|
|
|
.ui-mixedmark {
|
|
|
display: flex;
|
|
|
margin-inline-end: -11px;
|
|
|
margin-inline-start: -4px;
|
|
|
margin-top: 2px;
|
|
|
width: 16px;
|
|
|
height: 16px;
|
|
|
}
|
|
|
`,rl;function Jl(e){let t="";switch(e){case"mathfield-element":t=`
|
|
|
:host { display: inline-block; background-color: field; color: fieldtext; border-width: 1px; border-style: solid; border-color: #acacac; border-radius: 2px; padding:4px;}
|
|
|
:host([hidden]) { display: none; }
|
|
|
:host([disabled]), :host([disabled]:focus), :host([disabled]:focus-within) { outline: none; opacity: .5; }
|
|
|
:host(:focus), :host(:focus-within) {
|
|
|
outline: Highlight auto 1px; /* For Firefox */
|
|
|
outline: -webkit-focus-ring-color auto 1px;
|
|
|
}
|
|
|
:host([readonly]:focus), :host([readonly]:focus-within),
|
|
|
:host([read-only]:focus), :host([read-only]:focus-within) {
|
|
|
outline: none;
|
|
|
}
|
|
|
@media (hover: none) and (pointer: coarse) {
|
|
|
:host(:not(:focus)) :first-child { pointer-events: none !important; }
|
|
|
}`;break;case"core":t=pl;break;case"mathfield":t=du;break;case"environment-popover":t=Qc;break;case"suggestion-popover":t=YA;break;case"keystroke-caption":t=rs;break;case"virtual-keyboard":t=Kc;break;case"ui":t=tl;break;case"menu":t=eA;break;default:debugger}return t}function ss(e){return rl||(rl={}),rl[e]||(rl[e]=new CSSStyleSheet,rl[e].replaceSync(Jl(e))),rl[e]}var Tl;function lc(e){var t;if(!("adoptedStyleSheets"in document)){if(window.document.getElementById(`mathlive-style-${e}`))return;const r=window.document.createElement("style");r.id=`mathlive-style-${e}`,r.append(window.document.createTextNode(Jl(e))),window.document.head.appendChild(r);return}if(Tl||(Tl={}),((t=Tl[e])!=null?t:0)!==0)Tl[e]+=1;else{const r=ss(e);document.adoptedStyleSheets=[...document.adoptedStyleSheets,r],Tl[e]=1}}function wc(e){if("adoptedStyleSheets"in document&&Tl!=null&&Tl[e]&&(Tl[e]-=1,Tl[e]<=0)){const t=rl[e];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(r=>r!==t)}}var cc=class Yh extends zr{constructor(t){var r;super(E(f({},t),{type:"accent",body:(r=t.body)!=null?r:void 0})),t.accentChar?this.accent=t.accentChar:this.svgAccent=t==null?void 0:t.svgAccent,this.skipBoundary=!0,this.captureSelection=!0}static fromJson(t){return new Yh(t)}toJson(){return E(f({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(t){var r;const n=new la({parent:t,mathstyle:"cramp"},this.style),i=(r=zr.createBox(n,this.body))!=null?r:new fn("\u25A2",{style:this.style});let s=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(s=i.skew);let A=Math.min(i.height,as),M;if(this.svgAccent)M=sa(this.svgAccent),A=n.metrics.bigOpSpacing1-A;else if(this.accent){const q=new fn(this.accent,{fontFamily:"Main-Regular"});q.italic=0;const Ae=this.accent===8407?" ML__accent-vec":"";M=new fn(new fn(q),{classes:"ML__accent-body"+Ae})}M=new Xo({shift:0,children:[{box:new fn(i)},-A,{box:M,marginLeft:i.left+2*s,classes:["ML__center"]}]});const $=new fn(M,{type:"lift"});return this.caret&&($.caret=this.caret),this.bind(n,$.wrap(n)),this.attachSupsub(n,{base:$})}},Yl={"(":")","{":"}","[":"]","|":"|","\\lbrace":"\\rbrace","\\lparen":"\\rparen","\\{":"\\}","\\langle":"\\rangle","\\lfloor":"\\rfloor","\\lceil":"\\rceil","\\vert":"\\vert","\\lvert":"\\rvert","\\Vert":"\\Vert","\\lVert":"\\rVert","\\lbrack":"\\rbrack","\\ulcorner":"\\urcorner","\\llcorner":"\\lrcorner","\\lgroup":"\\rgroup","\\lmoustache":"\\rmoustache"},cl=Object.fromEntries(Object.entries(Yl).map(([e,t])=>[t,e]));function nl(e){var t;return(t={"[":91,"]":93,"(":40,")":41,"\\mid":8739,"|":8739,"\u2223":8739,"\u2225":8741,"\\|":8739,"\\{":123,"\\}":125,"\\lbrace":123,"\\rbrace":125,"\\lparen":40,"\\rparen":41,"\\lbrack":91,"\\rbrack":93,"\\vert":8739,"\\lvert":8739,"\\mvert":8739,"\\rvert":8739,"\\Vert":8741,"\\lVert":8741,"\\mVert":8741,"\\rVert":8741,"\\parallel":8741,"\\shortparallel":8741,"\\langle":10216,"\\rangle":10217,"\\lfloor":8970,"\\rfloor":8971,"\\lceil":8968,"\\rceil":8969,"\\ulcorner":9484,"\\urcorner":9488,"\\llcorner":9492,"\\lrcorner":9496,"\\lgroup":10222,"\\rgroup":10223,"\\lmoustache":9136,"\\rmoustache":9137,"\\surd":8730}[e])!=null?t:e.codePointAt(0)}function xc(e,t,r,n){var i;const A=new fn(nl(e),{fontFamily:"Main-Regular",isSelected:n.isSelected,classes:"ML__small-delim "+((i=n.classes)!=null?i:"")}).wrap(t);return r&&A.setTop((1-t.scalingFactor)*us),A}function tA(e,t,r,n,i){var s,A;const M=new la({parent:n,mathstyle:"textstyle"},i==null?void 0:i.style),$=new fn(nl(e),{fontFamily:`Size${t}-Regular`,isSelected:i.isSelected,classes:((s=i.classes)!=null?s:"")+` ML__delim-size${t}`,type:(A=i.type)!=null?A:"ignore"}).wrap(M);return r&&$.setTop((1-M.scalingFactor)*us),$}function rA(e,t,r,n,i){var s;let A,M,$,q;A=$=q=nl(e),M=null;let Ae="Size1-Regular";e==="\\vert"||e==="\\lvert"||e==="\\rvert"||e==="\\mvert"||e==="\\mid"?$=A=q=8739:e==="\\Vert"||e==="\\lVert"||e==="\\rVert"||e==="\\mVert"||e==="\\|"?$=A=q=8741:e==="\\uparrow"?$=q=9168:e==="\\Uparrow"?$=q=8214:e==="\\downarrow"?A=$=9168:e==="\\Downarrow"?A=$=8214:e==="\\updownarrow"?(A=8593,$=9168,q=8595):e==="\\Updownarrow"?(A=8657,$=8214,q=8659):e==="["||e==="\\lbrack"?(A=9121,$=9122,q=9123,Ae="Size4-Regular"):e==="]"||e==="\\rbrack"?(A=9124,$=9125,q=9126,Ae="Size4-Regular"):e==="\\lfloor"||e==="\u230A"?($=A=9122,q=9123,Ae="Size4-Regular"):e==="\\lceil"||e==="\u2308"?(A=9121,$=q=9122,Ae="Size4-Regular"):e==="\\rfloor"||e==="\u230B"?($=A=9125,q=9126,Ae="Size4-Regular"):e==="\\rceil"||e==="\u2309"?(A=9124,$=q=9125,Ae="Size4-Regular"):e==="("||e==="\\lparen"?(A=9115,$=9116,q=9117,Ae="Size4-Regular"):e===")"||e==="\\rparen"?(A=9118,$=9119,q=9120,Ae="Size4-Regular"):e==="\\{"||e==="\\lbrace"?(A=9127,M=9128,q=9129,$=9130,Ae="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(A=9131,M=9132,q=9133,$=9130,Ae="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(A=9127,q=9129,$=9130,Ae="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(A=9131,q=9133,$=9130,Ae="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(A=9127,q=9133,$=9130,Ae="Size4-Regular"):e==="\\rmoustache"||e==="\u23B1"?(A=9131,q=9129,$=9130,Ae="Size4-Regular"):e==="\\surd"?(A=57345,q=9143,$=57344,Ae="Size4-Regular"):e==="\\ulcorner"?(A=9484,$=q=32):e==="\\urcorner"?(A=9488,$=q=32):e==="\\llcorner"?(q=9492,$=A=32):e==="\\lrcorner"&&(A=9496,$=A=32);const Qe=qs(A,Ae),ut=Qe.height+Qe.depth,Ft=qs($,Ae),Nt=Ft.height+Ft.depth,Fr=qs(q,Ae),In=Fr.height+Fr.depth;let Cr=0,an=1;if(M!==null){const Il=qs(M,Ae);Cr=Il.height+Il.depth,an=2}const Rn=ut+In+Cr,pn=Math.max(0,Math.ceil((t-Rn)/(an*Nt))),Ci=Rn+pn*an*Nt;let ji=us;r&&(ji=ji*n.scalingFactor);const Oi=Ci/2-ji,io=.008,zo=[];zo.push({box:new fn(q,{fontFamily:Ae})}),zo.push(-io);const Vn=new fn($,{fontFamily:Ae});if(M===null)for(let Il=0;Il<pn;Il++)zo.push({box:Vn});else{for(let Il=0;Il<pn;Il++)zo.push({box:Vn});zo.push(-io),zo.push({box:new fn(M,{fontFamily:Ae})}),zo.push(-io);for(let Il=0;Il<pn;Il++)zo.push({box:Vn})}zo.push(-io),zo.push({box:new fn(A,{fontFamily:Ae})});let yA="";Ae==="Size1-Regular"?yA=" delim-size1":Ae==="Size4-Regular"&&(yA=" delim-size4");const ku=new Xo({bottom:Oi,children:zo},{classes:yA});return new fn(ku,E(f({},i!=null?i:{}),{classes:((s=i==null?void 0:i.classes)!=null?s:"")+" ML__delim-mult"}))}var qA=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),uA=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),Ms=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),eu=[0,1.2,1.8,2.4,3];function Ul(e,t,r,n){return e===void 0||e==="."?uc(r,n.classes):(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),qA.has(e)||Ms.has(e)?tA(e,t,!1,r,n):uA.has(e)?rA(e,eu[t],!1,r,n):(console.assert(!1,"Unknown delimiter '"+e+"'"),null))}var Cc=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],fu=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],rd=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}];function ju(e){return e.type==="small"?"Main-Regular":e.type==="large"?"Size"+e.size+"-Regular":(console.assert(e.type==="stack"),"Size4-Regular")}function dA(e,t,r,n){const i={"-4":0,"-3":1,0:2}[n.mathstyle.sizeDelta];for(let s=i;s<r.length&&r[s].type!=="stack";s++){const A=qs(e,ju(r[s]));if(A.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let M=A.height+A.depth;if(r[s].type==="small"&&(r[s].mathstyle==="scriptscriptstyle"?M*=Math.max(ds[Math.max(1,n.size-2)],n.minFontScale):r[s].mathstyle==="scriptstyle"&&(M*=Math.max(ds[Math.max(1,n.size-1)],n.minFontScale))),M>t)return r[s]}return r[r.length-1]}function Bc(e,t,r,n,i,s){if(!t||t.length===0||t===".")return uc(i);t==="<"||t==="\\lt"?t="\\langle":(t===">"||t==="\\gt")&&(t="\\rangle");let A;Ms.has(t)?A=Cc:qA.has(t)?A=rd:A=fu;const M=dA(nl(t),r,A,i),$=new la({parent:i,mathstyle:M.mathstyle},s==null?void 0:s.style);return M.type==="small"?xc(t,$,n,E(f({},s),{type:e})):M.type==="large"?tA(t,M.size,n,$,E(f({},s),{type:e})):(console.assert(M.type==="stack"),rA(t,r,n,$,E(f({},s),{type:e})))}function Ac(e,t,r,n,i,s){if(t===".")return uc(i,s==null?void 0:s.classes);const A=us*i.scalingFactor,M=901,$=5/is,q=Math.max(r-A,n+A),Ae=Math.max(q/500*M,2*q-$);return Bc(e,t,Ae,!0,i,s)}function uc(e,t){const r=new fn(null,{classes:" nulldelimiter "+(t!=null?t:""),type:"ignore"});return r.width=e.getRegisterAsEm("nulldelimiterspace"),r.wrap(new la({parent:e,mathstyle:"textstyle"}))}var ql=class qh extends zr{constructor(t){var r;super({type:"placeholder",command:"\\placeholder",mode:(r=t==null?void 0:t.mode)!=null?r:"math",style:t==null?void 0:t.style}),this.captureSelection=!0}static fromJson(t){return new qh(t)}toJson(){return super.toJson()}render(t){let r;return this.value=t.placeholderSymbol,typeof t.renderPlaceholder=="function"?r=t.renderPlaceholder(t):r=this.createBox(t),this.caret&&(r.classes+=" ML__placeholder-selected"),r}_serialize(t){return t.skipPlaceholders?"":"\\placeholder{}"}},fA=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],hA=["cases","dcases","rcases"],hu=["align","align*","aligned","gather","gathered","split"],Sc=["array","subequations","eqnarray"];function Ec(e){return Sc.concat(hu).concat(hA).concat(fA).includes(e)}function Jo(e){return fA.includes(e)}function Ho(e){return hA.includes(e)}function Us(e){return hu.includes(e)}function Rs(e,t,r){let n=0;for(const q of r)"align"in q&&(n+=1);let i=0;const s=[];for(const q of t){let Ae=0;for(i=Math.max(i,Math.min(q.length,n));Ae<q.length;){const Qe=[],ut=Math.min(q.length,Ae+n);for(;Ae<ut;){const Ft=q[Ae];Ft.length===0?Qe.push([new zr({type:"first",mode:e.mode})]):Ft[0].type!=="first"?Qe.push([new zr({type:"first",mode:e.mode}),...Ft]):(console.assert(!Ft.slice(1).some(Nt=>Nt.type==="first")),Qe.push(Ft)),Ae+=1}s.push(Qe)}}s.length>0&&s[s.length-1].length===1&&s[s.length-1][0].length===1&&s[s.length-1][0][0].type==="first"&&s.pop();const A=[];for(const q of s){if(q.length!==i)for(let Ae=q.length;Ae<i;Ae++)q.push([new zr({type:"first",mode:e.mode}),new ql]);A.push(q)}let M=0,$=0;for(const q of A){$=0;for(const Ae of q){for(const Qe of Ae)Qe.parent=e,Qe.parentBranch=[M,$];$+=1}M+=1}return e.isDirty=!0,A}var Ua=class ep extends zr{constructor(t,r,n,i={}){var s;super({type:"array"}),this.environmentName=t,this.rowGaps=n,i.mathstyleName&&(this.mathstyleName=i.mathstyleName),i.columns&&(i.columns.length===0?this.colFormat=[{align:"l"}]:this.colFormat=i.columns),this.colFormat||(this.colFormat=[{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"}]),this.array=Rs(this,r,this.colFormat),i.leftDelim&&(this.leftDelim=i.leftDelim),i.rightDelim&&(this.rightDelim=i.rightDelim),i.arraycolsep!==void 0&&(this.arraycolsep=i.arraycolsep),this.colSeparationType=i.colSeparationType,i.arraystretch!==void 0&&(this.arraystretch=i.arraystretch),this.minColumns=(s=i.minColumns)!=null?s:1}static fromJson(t){return new ep(t.environmentName,t.array,t.rowGaps,t)}toJson(){const t=E(f({},super.toJson()),{environmentName:this.environmentName,array:this.array.map(r=>r.map(n=>n.map(i=>i.toJson()))),rowGaps:this.rowGaps,columns:this.colFormat,colSeparationType:this.colSeparationType});return this.arraystretch!==void 0&&(t.arraystretch=this.arraystretch),this.arraycolsep!==void 0&&(t.arraycolsep=this.arraycolsep),this.leftDelim&&(t.leftDelim=this.leftDelim),this.rightDelim&&(t.rightDelim=this.rightDelim),t}branch(t){var r;if(IA(t))return(r=this.array[t[0]][t[1]])!=null?r:void 0}createBranch(t){var r;return IA(t)?(this.isDirty=!0,(r=this.branch(t))!=null?r:[]):[]}get rowCount(){return this.array.length}get colCount(){return this.array[0].length}get maxColumns(){return this.colFormat.filter(t=>!!t.align).length}removeBranch(t){if(Gl(t))return super.removeBranch(t);const r=this.branch(t);return this.array[t[0]][t[1]]=void 0,r.forEach(n=>{n.parent=void 0,n.parentBranch=void 0}),console.assert(r[0].type==="first"),r.shift(),this.isDirty=!0,r}get hasChildren(){return this.children.length>0}get children(){const t=[];for(const r of this.array)for(const n of r)if(n)for(const i of n)t.push(...i.children),t.push(i);return[...t,...super.children]}render(t){var r,n,i,s,A,M;const $=new la({parent:t,mathstyle:this.mathstyleName},this.style),q=$.getRegisterAsEm("arrayrulewidth"),Ae=$.getRegisterAsEm("arraycolsep"),Qe=$.getRegisterAsEm("doublerulesep"),ut=(n=(r=this.arraystretch)!=null?r:$.getRegisterAsNumber("arraystretch"))!=null?n:1;let Ft=typeof this.arraycolsep=="number"?this.arraycolsep:Ae;this.colSeparationType==="small"&&(Ft=.2778*(new la({parent:t,mathstyle:"scriptstyle"}).scalingFactor/t.scalingFactor));const Nt=ut*bl,Fr=.7*Nt,In=.3*Nt;let Cr=0;const an=[];let Rn=0;const pn=this.array.length;for(let es=0;es<pn;++es){const Gs=this.array[es];Rn=Math.max(Rn,Gs.length);const Ml=new la({parent:$,mathstyle:this.mathstyleName},this.style);let Du=Fr/Ml.scalingFactor,Pu=In/Ml.scalingFactor;const Nu={cells:[],height:0,depth:0,pos:0};for(const su of Gs){const J0=(i=zr.createBox(Ml,su,{type:"ignore"}))!=null?i:new fn(null,{type:"ignore"});Pu=Math.max(Pu,J0.depth),Du=Math.max(Du,J0.height),Nu.cells.push(J0)}let Ou=(s=Wl(this.rowGaps[es]))!=null?s:0;Ou>0&&(Ou+=In,Pu=Math.max(Pu,Ou),Ou=0),es<pn-1&&!Jo(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(Pu+=$.getRegisterAsEm("jot")),Nu.height=Du,Nu.depth=Pu,Cr+=Du,Nu.pos=Cr,Cr+=Pu+Ou,an.push(Nu)}const Ci=Cr/2+us,ji=[];for(let es=0;es<Rn;es++){const Gs=[];for(const Ml of an){const Du=Ml.cells[es];Du.depth=Ml.depth,Du.height=Ml.height,Gs.push({box:Du,shift:Ml.pos-Ci})}Gs.length>0&&ji.push(new Xo({individualShift:Gs}))}const Oi=[];let io=!1,zo=!1,Vn=0,yA=!this.leftDelim;const{colFormat:ku}=this;for(const es of ku){if("align"in es&&Vn>=ji.length)break;if("align"in es)io?Oi.push(ec(2*Ft)):(zo||yA)&&Oi.push(ec(Ft)),Oi.push(new fn(ji[Vn],{classes:"col-align-"+es.align})),Vn++,io=!0,zo=!1,yA=!1;else if("gap"in es){if(typeof es.gap=="number")Oi.push(ec(es.gap));else{const Gs=tu(t,an,Ci,es.gap);Gs&&Oi.push(Gs)}io=!1,zo=!1,yA=!1}else if("separator"in es){const Gs=new fn(null,{classes:"vertical-separator"});Gs.height=Cr,Gs.setStyle("height",Cr,"em"),Gs.setStyle("border-right",`${q}em ${es.separator} currentColor`),Gs.setStyle("vertical-align",-(Cr-Ci),"em");let Ml=0;zo?Ml=Qe-q:io&&(Ml=Ft-q),Gs.left=Ml,Oi.push(Gs),io=!1,zo=!0,yA=!1}}io&&!this.rightDelim&&Oi.push(ec(Ft));const RA=new fn(Oi,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(RA.caret=this.caret),this.bind(t,RA);const Il=RA.height,bA=RA.depth,Vc=this.bind(t,new fn([this.bind(t,Ac("open",(A=this.leftDelim)!=null?A:".",Il,bA,$,{isSelected:this.isSelected})),RA,this.bind(t,Ac("close",(M=this.rightDelim)!=null?M:".",Il,bA,$,{isSelected:this.isSelected}))],{type:"ord"}));return Vc?(Vc.setStyle("display","inline-block"),this.caret&&(Vc.caret=this.caret),this.bind(t,this.attachSupsub(t,{base:Vc}))):null}_serialize(t){var r;const n=[];if(this.environmentName==="lines"?n.push("{\\displaylines"):n.push(`\\begin{${this.environmentName}}`),this.environmentName==="array"){if(n.push("{"),this.colFormat!==void 0)for(const i of this.colFormat)"align"in i&&typeof i.align=="string"?n.push(i.align):"separator"in i&&i.separator==="solid"?n.push("|"):"separator"in i&&i.separator==="dashed"&&n.push(":");n.push("}")}for(let i=0;i<this.array.length;i++){for(let s=0;s<this.array[i].length;s++)s>0&&n.push(" & "),n.push(zr.serialize(this.array[i][s],t));if(i<this.array.length-1){const s=this.rowGaps[i];s!=null&&s.dimension?n.push(`\\\\[${s.dimension} ${(r=s.unit)!=null?r:"pt"}] `):n.push("\\\\ ")}}return this.environmentName==="lines"?n.push("}"):n.push(`\\end{${this.environmentName}}`),Ca(n)}getCell(t,r){return this.array[t][r]}setCell(t,r,n){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.array[t][r]!==void 0);for(const s of this.array[t][r])s.parent=void 0,s.parentBranch=void 0;let i=n;(n.length===0||n[0].type!=="first")&&(i=[new zr({type:"first",mode:this.mode}),...n]),this.array[t][r]=i;for(const s of i)s.parent=this,s.parentBranch=[t,r];this.isDirty=!0}addRowBefore(t){console.assert(this.type==="array"&&Array.isArray(this.array));const r=[];for(let n=0;n<this.colCount;n++)r.push(hi(this));this.array.splice(t,0,r);for(let n=t;n<this.rowCount;n++)for(let i=0;i<this.colCount;i++){const s=this.array[n][i];if(s)for(const A of s)A.parentBranch=[n,i]}this.isDirty=!0}addRowAfter(t){console.assert(this.type==="array"&&Array.isArray(this.array));const r=[];for(let n=0;n<this.colCount;n++)r.push(hi(this));this.array.splice(t+1,0,r);for(let n=t+1;n<this.rowCount;n++)for(let i=0;i<this.colCount;i++){const s=this.array[n][i];if(s)for(const A of s)A.parentBranch=[n,i]}this.isDirty=!0}removeRow(t){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.rowCount>t);const r=this.array.splice(t,1);for(const n of r)for(const i of n)if(i)for(const s of i)s.parent=void 0,s.parentBranch=void 0;for(let n=t;n<this.rowCount;n++)for(let i=0;i<this.colCount;i++){const s=this.array[n][i];if(s)for(const A of s)A.parentBranch=[n,i]}this.isDirty=!0}addColumnBefore(t){console.assert(this.type==="array"&&Array.isArray(this.array));for(const r of this.array)r.splice(t,0,hi(this));for(let r=0;r<this.rowCount;r++)for(let n=t;n<this.colCount;n++){const i=this.array[r][n];if(i)for(const s of i)s.parentBranch=[r,n]}this.isDirty=!0}addColumnAfter(t){console.assert(this.type==="array"&&Array.isArray(this.array));for(const r of this.array)r.splice(t+1,0,hi(this));for(let r=0;r<this.rowCount;r++)for(let n=t+1;n<this.colCount;n++){const i=this.array[r][n];if(i)for(const s of i)s.parentBranch=[r,n]}this.isDirty=!0}addColumn(){this.addColumnAfter(this.colCount-1)}removeColumn(t){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.colCount>t);for(const r of this.array){const n=r.splice(t,1);for(const i of n)if(i)for(const s of i)s.parent=void 0,s.parentBranch=void 0}for(let r=0;r<this.rowCount;r++)for(let n=t;n<this.colCount;n++){const i=this.array[r][n];if(i)for(const s of i)s.parentBranch=[r,n]}this.isDirty=!0}get cells(){const t=[];for(const r of this.array)for(const n of r)n&&t.push(n.filter(i=>i.type!=="first"));return t}};function hi(e){const t=new zr({type:"first",mode:e.mode});t.parent=e;const r=new ql;return r.parent=e,[t,r]}function ec(e){const t=new fn(null,{classes:"arraycolsep"});return t.width=e,t}function tu(e,t,r,n){if(!n)return null;const i=[];for(const s of t){const A=zr.createBox(e,n,{type:"ignore"});A&&(A.depth=s.depth,A.height=s.height,i.push({box:A,shift:s.pos-r}))}return new Xo({individualShift:i}).wrap(e)}var Qs=class tp extends zr{constructor(t){super({mode:t.mode,command:t.command,style:t.style,body:t.body,type:"box"}),this.framecolor=t.framecolor,this.backgroundcolor=t.backgroundcolor,this.padding=t.padding,this.offset=t.offset,this.border=t.border}static fromJson(t){return new tp(t)}toJson(){return E(f({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(t){var r,n,i,s;const A=zr.createBox(t,this.body,{type:"lift"});if(!A)return null;const M=t.toEm((r=this.offset)!=null?r:{dimension:0});A.depth+=M,A.setStyle("display","inline-block"),A.setStyle("position","relative"),A.setStyle("height",Math.floor(100*A.height+A.depth)/100,"em"),A.setStyle("vertical-align",-Math.floor(100*A.height)/100,"em");const $=new la({parent:t},this.style),q=$.toEm((n=this.padding)!=null?n:{register:"fboxsep"}),Ae=new fn(null,{classes:"ML__box"});Ae.height=A.height+q,Ae.depth=A.depth+q,Ae.setStyle("box-sizing","border-box"),Ae.setStyle("position","absolute"),Ae.setStyle("top",-q+.3,"em"),Ae.setStyle("left",0),Ae.setStyle("height",Ae.height+Ae.depth,"em"),Ae.setStyle("width","100%"),this.backgroundcolor&&Ae.setStyle("background-color",(i=$.toColor(this.backgroundcolor))!=null?i:"transparent"),this.framecolor&&Ae.setStyle("border",`${$.getRegisterAsEm("fboxrule",2)}em solid ${(s=$.toColor(this.framecolor))!=null?s:"black"}`),this.border&&Ae.setStyle("border",this.border);const Qe=new fn([Ae,A],{type:"lift"});return Qe.setStyle("display","inline-block"),Qe.setStyle("position","relative"),Qe.setStyle("line-height",0),Qe.height=A.height+q+(M>0?M:0),Qe.depth=A.depth+q+(M<0?-M:0),Qe.setStyle("padding-left",q,"em"),Qe.setStyle("padding-right",q,"em"),Qe.setStyle("height",Math.floor(100*(A.height+A.depth+2*q+Math.abs(M)))/100,"em"),Qe.setStyle("margin-top",-q,"em"),Qe.setStyle("top",Math.floor(100*(A.depth-A.height+2*q-M))/100,"em"),Qe.setStyle("vertical-align",Math.floor(100*(A.depth+2*q))/100,"em"),this.caret&&(Qe.caret=this.caret),this.attachSupsub(t,{base:Qe})}_serialize(t){return t.skipStyles?Ca([this.bodyToLatex(t),this.supsubToLatex(t)]):super._serialize(t)}},zu=class rp extends zr{constructor(t,r){var n;super({type:"composition",mode:(n=r==null?void 0:r.mode)!=null?n:"math",value:t})}static fromJson(t){return new rp(t.value,t)}toJson(){return super.toJson()}get computedStyle(){return{}}render(t){const r=new fn(this.value,{classes:"ML__composition",type:"composition"});return this.bind(t,r),this.caret&&(r.caret=this.caret),r}_serialize(t){return""}},ya=class np extends zr{constructor(t){super({type:"error",value:t,command:t,mode:"math"}),this.verbatimLatex=t}static fromJson(t){return new np(t.command)}toJson(){return super.toJson()}render(t){const r=this.createBox(t,{classes:"ML__error"});return this.caret&&(r.caret=this.caret),r}},Ao=class ip extends zr{constructor(t,r,n){super({type:"group",mode:r,style:n}),this.body=t,this.boxType=t.length>1?"ord":"ignore",this.skipBoundary=!0,this.displayContainsHighlight=!1,t&&t.length===1&&t[0].command===","&&(this.captureSelection=!0)}static fromJson(t){return new ip(t.body,t.mode,t.style)}render(t){const r=zr.createBox(t,this.body,{type:this.boxType});return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=gt(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):`{${this.bodyToLatex(t)}}`}},ko=class ap extends zr{constructor(t,r,n){super({type:"leftright",style:n.style,displayContainsHighlight:!0}),this.variant=t,this.body=r,this.leftDelim=n.leftDelim,this.rightDelim=n.rightDelim}static fromJson(t){var r;return new ap((r=t.variant)!=null?r:"",t.body,t)}toJson(){const t=super.toJson();return this.variant&&(t.variant=this.variant),this.leftDelim&&(t.leftDelim=this.leftDelim),this.rightDelim&&(t.rightDelim=this.rightDelim),t}_serialize(t){var r,n;const i=this.matchingRightDelim();return this.variant==="left...right"?Ca(["\\left",(r=this.leftDelim)!=null?r:".",this.bodyToLatex(t),"\\right",i]):this.variant==="mleft...mright"?Ca(["\\mleft",(n=this.leftDelim)!=null?n:".",this.bodyToLatex(t),"\\mright",i]):Ca([!this.leftDelim||this.leftDelim==="."?"":this.leftDelim,this.bodyToLatex(t),i])}matchingRightDelim(){var t,r;if(this.rightDelim&&this.rightDelim!=="?")return this.rightDelim;const n=(t=this.leftDelim)!=null?t:".";return(r=Yl[n])!=null?r:n}render(t){var r,n;const i=new la({parent:t},this.style);console.assert(this.body!==void 0);const s=new la({parent:t,mathstyle:"textstyle"},this.style),A=(r=zr.createBox(i,this.body,{type:"inner"}))!=null?r:new fn(null,{type:"inner"}),M=A.height/s.scalingFactor,$=A.depth/s.scalingFactor,q=[];if(this.leftDelim&&q.push(this.bind(s,Ac("open",this.leftDelim,M,$,s,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),A&&($u(A.children,this,i,M,$),q.push(A)),this.rightDelim){let Ft=this.containsCaret?" ML__contains-caret":"",Nt=this.rightDelim;Nt==="?"&&(i.smartFence?(Nt=this.matchingRightDelim(),Ft+=" ML__smart-fence__close"):Nt="."),q.push(this.bind(s,Ac("close",Nt,M,$,s,{isSelected:this.isSelected,classes:Ft+" ML__close",mode:this.mode,style:this.style})))}let Ae=this.variant==="mleft...mright";const Qe=this.leftSibling;Qe&&(!Ae&&Qe.isFunction&&(Ae=!0),!Ae&&Qe.type==="subsup"&&((n=Qe.leftSibling)!=null&&n.isFunction)&&(Ae=!0));const ut=new fn(q,{type:Ae?"close":"inner",classes:"left-right"});return ut.setStyle("margin-top",`${-A.depth}em`),ut.setStyle("height",`${A.height+A.depth}em`),this.caret&&(ut.caret=this.caret),this.bind(i,ut.wrap(i))}};function $u(e,t,r,n,i){if(e)for(let s=0;s<e.length;s++){const A=e[s];A.type==="middle"?(e[s]=t.bind(r,Ac("inner",A.value,n,i,r,{isSelected:t.isSelected})),e[s].caret=A.caret,e[s].isSelected=A.isSelected,e[s].cssId=A.cssId,e[s].htmlData=A.htmlData,e[s].htmlStyle=A.htmlStyle,e[s].attributes=A.attributes,e[s].cssProperties=A.cssProperties):A.children&&$u(A.children,t,r,n,i)}}var pu=class op extends zr{constructor(t,r){var n;super({type:"macro",command:t,style:r.style}),this.body=r.body,r.captureSelection===void 0?r.args?this.captureSelection=!1:this.captureSelection=!0:this.captureSelection=r.captureSelection,this.macroArgs=r.args,this.expand=(n=r.expand)!=null?n:!1}static fromJson(t){return new op(t.command,t)}toJson(){const t=super.toJson();return this.expand&&(t.expand=!0),this.captureSelection!==void 0&&(t.captureSelection=this.captureSelection),this.macroArgs&&(t.args=this.macroArgs),t}_serialize(t){var r;return t.expandMacro&&this.expand?this.bodyToLatex(t):this.command+((r=this.macroArgs)!=null?r:"")}render(t){const r=zr.createBox(t,this.body);return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}},nd=class sp extends zr{constructor(){super({type:"macro-argument"})}static fromJson(t){return new sp}toJson(){return super.toJson()}_serialize(t){return""}render(t){return null}},DA=class lp extends zr{constructor(t,r,n=!1,i,s){var A;super({type:"prompt",mode:(A=s==null?void 0:s.mode)!=null?A:"math",style:s==null?void 0:s.style,command:"\\placeholder"}),this.body=i,this.correctness=r,this.placeholderId=t,this.locked=n,this.captureSelection=this.locked}static fromJson(t){return new lp(t.placeholderId,t.correctness,t.locked,t.body,t)}toJson(){const t=super.toJson();return this.placeholderId&&(t.placeholderId=this.placeholderId),this.body||delete t.body,this.body&&(t.body=this.body.filter(r=>r.type!=="first").map(r=>r.toJson())),this.correctness&&(t.correctness=this.correctness),t.locked=this.locked,t}render(t){const r=new la({parent:t}),n=r.getRegisterAsEm("fboxsep"),i=n,s=n,A=zr.createBox(t,this.body);if(!A)return null;A.height||(A.height=r.metrics.xHeight),A.setStyle("vertical-align",-A.height,"em"),this.correctness==="correct"?A.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&A.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const M=new fn(A,{type:"ord"});M.setStyle("display","inline-block"),M.setStyle("height",A.height+A.depth,"em"),M.setStyle("vertical-align",-s,"em");let $="ML__prompt ";this.locked?$+=" ML__lockedPromptBox ":$+=" ML__editablePromptBox ",this.correctness==="correct"?$+=" ML__correctPromptBox ":this.correctness==="incorrect"&&($+=" ML__incorrectPromptBox "),this.containsCaret&&($+=" ML__focusedPromptBox ");const q=new fn(null,{classes:$,attributes:{part:"prompt"}});q.height=M.height+s,q.depth=M.depth+s,q.width=M.width+2*i,q.setStyle("box-sizing","border-box"),q.setStyle("position","absolute"),q.setStyle("height",M.height+M.depth+2*s,"em"),i===0&&q.setStyle("width","100%"),i!==0&&(q.setStyle("width",`calc(100% + ${2*i}em)`),q.setStyle("top",n,"em"),q.setStyle("left",-i,"em")),(!this.body||this.body.length===1)&&(q.width=3*i,q.setStyle("width",`calc(100% + ${3*i}em)`),q.setStyle("left",-1.5*i,"em"));let Ae="";this.correctness==="incorrect"&&(Ae+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),Ae&&(q.svgOverlay=Ae);const Qe=new fn([q,M],{classes:"ML__prompt-atom"});return Qe.setStyle("position","relative"),Qe.setStyle("display","inline-block"),Qe.setStyle("line-height",0),Qe.height=M.height+s+.2,Qe.depth=M.depth+s,Qe.left=i,Qe.right=i,Qe.setStyle("height",M.height+s,"em"),Qe.setStyle("top",M.depth-M.height,"em"),Qe.setStyle("vertical-align",M.depth+s,"em"),Qe.setStyle("margin-left",.5,"em"),Qe.setStyle("margin-right",.5,"em"),this.caret&&(Qe.caret=this.caret),this.bind(r,this.attachSupsub(t,{base:Qe}))}_serialize(t){var r;const n=(r=this.bodyToLatex(t))!=null?r:"";if(t.skipPlaceholders)return n;let i="\\placeholder";return this.placeholderId&&(i+=`[${this.placeholderId}]`),this.correctness==="correct"?i+="[correct]":this.correctness==="incorrect"&&(i+="[incorrect]"),this.locked&&(i+="[locked]"),So(i,n)}},mu=class cp extends zr{constructor(t){super({type:"subsup",style:t==null?void 0:t.style}),this.subsupPlacement="auto"}static fromJson(t){const r=new cp(t);for(const n of Oc)t[n]&&r.setChildren(t[n],n);return r}render(t){var r;const n=new la({parent:t,isPhantom:!0}),i=this.leftSibling,s=(r=i.render(n))!=null?r:new fn(null),A=new fn(null);return A.height=s.height,A.depth=s.depth,this.attachSupsub(t,{base:A,isCharacterBox:i.isCharacterBox(),type:"ignore"})}_serialize(t){return this.supsubToLatex(t)}};function ru(e){return e?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(e):!1}var Zu=class{constructor(e,t,r){this.errors=[],this.index=0,this.endCount=0;var n,i,s,A;r!=null||(r={}),this.tokens=e,this.context=t instanceof la&&!(r!=null&&r.parseMode)&&!r.mathstyle?t:new la({from:t,mathstyle:r.mathstyle},r.style),this.args=(n=r.args)!=null?n:void 0,this.smartFence=this.context.smartFence,this.parsingContext={parent:void 0,mathlist:[],style:(i=r.style)!=null?i:{},parseMode:(s=r.parseMode)!=null?s:"math",mathstyle:(A=r.mathstyle)!=null?A:"displaystyle",tabular:!1}}beginContext(e){var t,r,n;const i=this.parsingContext,s={parent:i,mathlist:[],style:f({},i.style),parseMode:(t=e==null?void 0:e.mode)!=null?t:i.parseMode,mathstyle:(r=e==null?void 0:e.mathstyle)!=null?r:i.mathstyle,tabular:(n=e==null?void 0:e.tabular)!=null?n:!1};this.parsingContext=s}endContext(){this.parsingContext=this.parsingContext.parent}onError(e){this.errors.push(f({before:xl(this.tokens.slice(this.index,this.index+10)),after:xl(this.tokens.slice(Math.max(0,this.index-10),this.index))},e))}get mathlist(){return this.parsingContext.mathlist}set mathlist(e){this.parsingContext.mathlist=e}get parseMode(){return this.parsingContext.parseMode}set parseMode(e){this.parsingContext.parseMode=e}get tabularMode(){return this.parsingContext.tabular}get style(){let e=this.parsingContext;for(;e;){if(e.style)return f({},e.style);e=e.parent}return{}}set style(e){this.parsingContext.style=e}end(){return this.endCount++,this.index>=this.tokens.length||this.endCount>1e3}next(){this.index+=1}get(){return this.endCount=0,this.index<this.tokens.length?this.tokens[this.index++]:""}peek(){return this.tokens[this.index]}match(e){return this.tokens[this.index]===e?(this.index++,!0):!1}lastSubsupAtom(){let e;return this.mathlist.length>0&&(e=this.mathlist[this.mathlist.length-1],e.type==="subsup"||e.subsupPlacement!==void 0)||(e=new mu({style:this.style}),this.mathlist.push(e)),e}hasPattern(e){return e.test(this.tokens[this.index])}hasInfixCommand(){var e;const{index:t}=this;if(t<this.tokens.length&&this.tokens[t].startsWith("\\")){const r=gt(this.tokens[t],this.parseMode);return!r||r.definitionType==="symbol"||r.ifMode&&!r.ifMode.includes(this.parseMode)?!1:(e=r.infix)!=null?e:!1}return!1}matchColumnSeparator(){return!this.tabularMode||this.peek()!=="&"?!1:(this.index++,!0)}matchRowSeparator(){if(!this.tabularMode)return!1;const e=this.peek();return e!=="\\\\"&&e!=="\\cr"&&e!=="\\tabularnewline"?!1:(this.index++,!0)}placeholder(){var e;const t=(e=this.args)==null?void 0:e.call(this,"?");return t?Al(t,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new ql({mode:this.parseMode,style:this.style})]}skipWhitespace(){for(;this.match("<space>"););}skipUntilToken(e){let t=this.tokens[this.index];for(;t&&t!==e;)t=this.tokens[++this.index];t===e&&this.index++}skipFiller(){for(;this.match("\\relax")||this.match("<space>"););}matchKeyword(e){const t=this.index;let r=this.end(),n="";for(;!r;){const s=this.get();ru(s)?(n+=s,r=this.end()||n.length>=e.length):r=!0}const i=e.toUpperCase()===n.toUpperCase();return i||(this.index=t),i}scanString(){let e="";for(;!this.end();){const t=this.peek();if(t==="]")return e;if(t==="<space>")e+=" ";else if(t.startsWith("\\"))this.onError({code:"unexpected-command-in-string"}),e+=t.substring(1);else if(ru(t))e+=t;else return e;this.next()}return e}scanBalancedString(){let e="",t=this.end(),r=1;for(;!t;){const n=this.get();n==="<space>"?e+=" ":n==="<{>"?(e+="{",r+=1):n==="<}>"?(r-=1,r>0?e+="}":this.index-=1):n==="<$>"?e+="$":n==="<$$>"?e+="$$":e+=n,t=r===0||this.end()}return e}scanLiteralGroup(){var e;if(!this.match("<{>"))return"";let t="",r=1;for(;r>0&&!this.end();){const n=this.get();n==="<}>"?(r-=1,r>0&&(t+="}")):n==="<{>"?(r+=1,t+="{"):(/\\[a-zA-Z]+$/.test(t)&&/^[a-zA-Z]/.test(n)&&(t+=" "),t+=(e={"<space>":" ","<$$>":"$$","<$>":"$"}[n])!=null?e:n)}return t}scanNumber(e=!0){var t,r;let n=!1,i=this.peek();for(;i==="<space>"||i==="+"||i==="-";)this.get(),i==="-"&&(n=!n),i=this.peek();e=!!e;let s=10,A=/\d/;if(this.match("'"))s=8,A=/[0-7]/,e=!0;else if(this.match('"'))s=16,A=/[\dA-F]/,e=!0;else if(this.match("x"))s=16,A=/[\dA-Fa-f]/,e=!0;else if(this.match("`"))return i=this.get(),i?i.length===2&&i.startsWith("\\")?{number:(n?-1:1)*((t=i.codePointAt(1))!=null?t:0),base:"alpha"}:{number:(n?-1:1)*((r=i.codePointAt(0))!=null?r:0),base:"alpha"}:null;let M="";for(;this.hasPattern(A);)M+=this.get();if(!e&&(this.match(".")||this.match(",")))for(M+=".";this.hasPattern(A);)M+=this.get();const $=e?Number.parseInt(M,s):Number.parseFloat(M);return Number.isNaN($)?null:{number:n?-$:$,base:s===16?"hexadecimal":s===8?"octal":"decimal"}}scanRegister(){var e;const t=this.index,r=this.scanNumber(!1);if(this.skipWhitespace(),this.match("\\relax"))return r;let n=!1;if(r===null)for(;;){const s=this.peek();if(s==="-")n=!n;else if(s!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const s=this.get();return s.startsWith("\\")?r?{register:s,global:!0,factor:(n?-1:1)*r.number}:n?{register:s,global:!0,factor:-1}:{register:s,global:!0}:(this.index=t,null)}let i=this.get();return i!=null&&i.startsWith("\\")?(i=i.substring(1),this.context.registers[i]?!n||r!==null?{register:i,factor:(n?-1:1)*((e=r==null?void 0:r.number)!=null?e:1)}:{register:i}:(this.index=t,null)):(this.index=t,null)}scanValue(){const e=this.scanRegister();if(e)return e;const t=this.index,r=this.scanGlueOrDimen();if(r&&("unit"in r||"glue"in r&&"unit"in r.glue))return r;this.index=t;const n=this.scanNumber();if(n)return n;if(this.end()||!ru(this.peek()))return null;const i=this.scanString();return i.length>0?{string:i}:null}scanDimen(){const e=this.scanNumber(!1);if(e===null)return null;const t=e.number;this.skipWhitespace(),this.matchKeyword("true"),this.skipWhitespace();let r;return this.matchKeyword("pt")?r="pt":this.matchKeyword("mm")?r="mm":this.matchKeyword("cm")?r="cm":this.matchKeyword("ex")?r="ex":this.matchKeyword("px")?r="px":this.matchKeyword("em")?r="em":this.matchKeyword("bp")?r="bp":this.matchKeyword("dd")?r="dd":this.matchKeyword("pc")?r="pc":this.matchKeyword("in")?r="in":this.matchKeyword("mu")&&(r="mu"),r?{dimension:t,unit:r}:{dimension:t}}scanGlueOrDimen(){const e=this.scanDimen();if(e===null)return null;if(this.skipWhitespace(),this.match("\\relax"))return e;const t={glue:e};if(this.matchKeyword("plus")){const r=this.scanDimen();if(r)t.grow=r;else return t}if(this.skipWhitespace(),this.match("\\relax"))return t;if(this.skipWhitespace(),this.matchKeyword("minus")){const r=this.scanDimen();if(r)t.shrink=r;else return t}return!t.grow&&!t.shrink?e:t}scanColspec(){this.skipWhitespace();const e=[];for(;!this.end()&&!(this.peek()==="<}>"||this.peek()==="]");){const t=this.get();t==="c"||t==="r"||t==="l"?e.push({align:t}):t==="|"?e.push({separator:"solid"}):t===":"?e.push({separator:"dashed"}):t==="@"&&(this.match("<{>")&&(this.beginContext({mode:"math"}),e.push({gap:this.scan(r=>r==="<}>")}),this.endContext()),this.match("<}>")||this.onError({code:"unbalanced-braces"}))}return e}scanModeSet(){let e;if(this.match("\\(")&&(e="textstyle"),!e&&this.match("\\[")&&(e="displaystyle"),!e)return null;this.beginContext({mode:"math",mathstyle:e});const t=this.scan(r=>r===(e==="displaystyle"?"\\]":"\\)"));return this.match(e==="displaystyle"?"\\]":"\\)")||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),t}scanModeShift(){let e="";if(this.match("<$>")&&(e="<$>"),!e&&this.match("<$$>")&&(e="<$$>"),!e)return null;this.beginContext({mode:"math",mathstyle:"textstyle"});const t=this.scan(r=>r===e);return this.match(e)||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),t}scanEnvironment(){if(!this.match("\\begin"))return null;const e=this.scanArgument("string");if(!e)return null;const t=H(e);if(!t)return this.onError({code:"unknown-environment",arg:e}),null;const r=[];if(t.params)for(const M of t.params)if(M.isOptional)r.push(this.scanOptionalArgument(M.type));else{const $=this.scanArgument(M.type);$||this.onError({code:"missing-argument",arg:e}),r.push($)}this.beginContext({tabular:t.tabular});const n=[],i=[];let s=[],A=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:e}),A=!0),!A&&this.match("\\end")&&(this.scanArgument("string")!==e&&this.onError({code:"unbalanced-environment",arg:e}),A=!0),!A)if(this.matchColumnSeparator())s.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){s.push(this.mathlist),this.mathlist=[];let M=null;this.skipWhitespace(),this.match("[")&&(M=this.scanDimen(),this.skipWhitespace(),this.match("]")),i.push(M!=null?M:{dimension:0}),n.push(s),s=[]}else this.mathlist.push(...this.scan(M=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(M)));while(!A);return s.push(this.mathlist),s.length>0&&n.push(s),this.endContext(),t.createAtom(e,n,i,r)}scanExpression(){const e=this.mathlist;if(this.mathlist=[],this.parseExpression()){const t=this.mathlist;return this.mathlist=e,t}return this.mathlist=e,null}scan(e){this.beginContext(),e||(e=A=>A==="<}>");let t="",r=null,n=[],i=null;for(;!this.end()&&!e(this.peek());)this.hasInfixCommand()&&!t?(t=this.get(),r=gt(t,"math"),r&&(n=this.scanArguments(r)[1]),i=this.mathlist,this.mathlist=[]):this.parseExpression();let s;return t?(console.assert(!!r),n.unshift(this.mathlist),i&&n.unshift(i),s=[r.createAtom({command:t,args:n,style:this.style,mode:this.parseMode})]):s=this.mathlist,this.endContext(),s}scanGroup(){const e=this.index;if(!this.match("<{>"))return null;const t=this.scan(n=>n==="<}>");this.match("<}>")||this.onError({code:"unbalanced-braces"});const r=new Ao(t,this.parseMode,this.style);return r.verbatimLatex=xl(this.tokens.slice(e,this.index)),r}scanSmartFence(){if(this.skipWhitespace(),!this.match("("))return null;this.beginContext();let e=1;for(;!this.end()&&e!==0;)this.match("(")&&(e+=1),this.match(")")&&(e-=1),e!==0&&this.parseExpression();const t=new ko("",this.mathlist,{leftDelim:"(",rightDelim:e===0?")":"?"});return this.endContext(),t}scanDelim(){this.skipWhitespace();const e=this.peek();if(!e)return this.onError({code:"unexpected-end-of-string"}),null;if(!ru(e)&&!e.startsWith("\\"))return null;this.next();const t=gt(e,"math");return t?t.definitionType==="function"&&t.ifMode&&!t.ifMode.includes(this.parseMode)?(this.onError({code:"unexpected-delimiter",arg:e}),null):t.definitionType==="symbol"&&(t.type==="mopen"||t.type==="mclose")||/^(\.|\?|\||<|>|\\vert|\\Vert|\\\||\\surd|\\uparrow|\\downarrow|\\Uparrow|\\Downarrow|\\updownarrow|\\Updownarrow|\\mid|\\mvert|\\mVert)$/.test(e)?e:(this.onError({code:"unexpected-delimiter",arg:e}),null):(this.onError({code:"unknown-command",arg:e}),null)}scanLeftRight(){var e;if(this.match("\\right"))return this.onError({code:"unbalanced-braces"}),new ya("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new ya("\\mright");let t="\\right";if(!this.match("\\left")){if(!this.match("\\mleft"))return null;t="\\mright"}const r=this.scanDelim();if(!r)return this.onError({code:"unexpected-delimiter"}),new ya(t==="\\right"?"\\left":"\\mleft");for(this.beginContext();!this.end()&&!this.match(t);)this.parseExpression();const n=this.mathlist;this.endContext();const i=(e=this.scanDelim())!=null?e:".";return new ko(t==="\\right"?"left...right":"mleft...mright",n,{leftDelim:r,rightDelim:i,style:this.style})}parseSupSub(){if(this.parseMode!=="math")return!1;let e=this.peek();if(e!=="^"&&e!=="_"&&e!=="'")return!1;const t=this.lastSubsupAtom();for(;e==="^"||e==="_"||e==="'";)this.match("'")?this.match("'")?t.addChild(new zr({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):t.addChild(new zr({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&t.addChildren(ct(this.scanArgument("expression")),e==="_"?"subscript":"superscript"),e=this.peek();return!0}parseLimits(){if(this.parseMode!=="math")return!1;const e=this.match("\\limits"),t=!e&&this.match("\\nolimits"),r=!t&&!e&&this.match("\\displaylimits");if(!e&&!t&&!r)return!1;const n=this.mathlist.length>0?this.mathlist[this.mathlist.length-1]:null;return n===null?!1:(n.explicitSubsupPlacement=!0,e&&(n.subsupPlacement="over-under"),t&&(n.subsupPlacement="adjacent"),r&&(n.subsupPlacement="auto"),!0)}scanArguments(e){if(!(e!=null&&e.params))return[void 0,[]];let t;const r=[];let n=e.infix?2:0;for(;n<e.params.length;){const i=e.params[n];i.type==="rest"?r.push(this.scan(s=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(s))):i.isOptional?r.push(this.scanOptionalArgument(i.type)):i.type.endsWith("*")?t=i.type.slice(0,-1):r.push(this.scanArgument(i.type)),n+=1}return[t,r]}scanSymbolOrLiteral(){const e=this.peek();if(!e)return null;this.next();let t;if(ru(e)){const r=Ns.createAtom(this.parseMode,e,f({},this.style));return r?[r]:null}if(t=this.scanMacro(e),t)return[t];if(e.startsWith("\\")){const r=gt(e,this.parseMode);if(!r)return this.onError({code:"unknown-command",arg:e}),[new ya(e)];if(r.definitionType==="symbol"){const n=f({},this.style);r.variant&&(n.variant=r.variant),t=new zr({type:r.type,command:e,style:n,value:String.fromCodePoint(r.codepoint),mode:this.parseMode,verbatimLatex:e})}else{if(r.applyMode||r.applyStyle||r.infix)return this.onError({code:"invalid-command",arg:e}),[new ya(e)];r.createAtom&&(t=r.createAtom({command:e,args:[],style:this.style,mode:this.parseMode}))}}return t?[t]:null}scanArgument(e){var t;this.skipFiller();const r=this.parseMode;if(e==="auto"&&(e=r),!this.match("<{>")){if(e==="string")return this.scanString();if(e==="value")return this.scanValue();if(e==="delim")return(t=this.scanDelim())!=null?t:".";if(e==="expression")return this.scanExpression();if(e==="math"){e!==r&&this.beginContext({mode:"math"});const i=this.scanSymbolOrLiteral();return e!==r&&this.endContext(),i}if(e==="text"){e!==r&&this.beginContext({mode:"text"});const i=this.scanSymbolOrLiteral();return e!==r&&this.endContext(),i}return e==="balanced-string"||console.assert(!1),null}if(e==="text"){this.beginContext({mode:"text"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const i=this.mathlist;return this.endContext(),{group:i}}if(e==="math"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const i=this.mathlist;return this.endContext(),{group:i}}let n=null;if(e==="expression"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const i=this.mathlist;return this.endContext(),{group:i}}return e==="string"?n=this.scanString():e==="balanced-string"?n=this.scanBalancedString():e==="colspec"?n=this.scanColspec():e==="value"&&(n=this.scanValue()),this.skipUntilToken("<}>"),n}scanOptionalArgument(e){if(e=e==="auto"?this.parseMode:e,this.skipFiller(),!this.match("["))return null;let t=null;for(;!this.end()&&!this.match("]");)if(e==="string")t=this.scanString();else if(e==="value")t=this.scanValue();else if(e==="colspec")t=this.scanColspec();else if(e==="bbox"){const r={},n=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const i of n){const s=i.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(s)r.padding={dimension:parseInt(s[1]),unit:s[2]};else{const A=i.match(/^\s*border\s*:\s*(.*)/);A?r.border=A[1]:r.backgroundcolor={string:i}}}t=r}else e==="math"&&(this.beginContext({mode:"math"}),t=this.mathlist.concat(this.scan(r=>r==="]")),this.endContext());return t}scanSymbolOrCommand(e){var t,r,n;if(e==="\\placeholder"){const M=this.scanOptionalArgument("string"),$=this.scanOptionalArgument("math"),q=zr.serialize($,{defaultMode:"math"});let Ae=[],Qe;!Qe&&q==="correct"?Qe="correct":!Qe&&q==="incorrect"?Qe="incorrect":q!==""&&(Ae=$);const ut=this.scanOptionalArgument("string")==="locked",Ft=this.scanArgument("auto");let Nt;return Ft&&Array.isArray(Ft)&&Ft.length>0?Nt=Ft:Ft&&typeof Ft=="object"&&"group"in Ft?Nt=Ft.group:Nt=Ae,M?[new DA(M,Qe,ut,Nt!=null?Nt:Ae,{mode:this.parseMode,style:this.style})]:[new ql({mode:this.parseMode,style:this.style})]}if(e==="\\renewcommand"||e==="\\newcommand"||e==="\\providecommand"||e==="\\def"){const M=this.index,$=this.scanLiteralGroup()||this.next();if(!$)return null;if(this.context.registers[$.substring(1)]){const q=this.scanArgument("string");q!==null&&(this.context.registers[$.substring(1)]=q);const Ae=Ca([e,xl(this.tokens.slice(M,this.index))]);return[new zr({type:"text",value:"",verbatimLatex:Ae})]}}let i=this.scanMacro(e);if(i)return[i];const s=gt(e,this.parseMode);if(!s)return this.parseMode==="text"?(/[a-zA-Z]/.test((t=this.peek())!=null?t:"")&&(e+=" "),[...e].map(M=>new zr({type:"text",value:M,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:e}),[new ya(e)]);const A=this.index;if(s.definitionType==="symbol"){const M=f({},this.style);s.variant&&(M.variant=s.variant),i=new zr({type:s.type,command:e,style:M,value:String.fromCodePoint(s.codepoint),mode:this.parseMode})}else{if(s.ifMode&&!s.ifMode.includes(this.parseMode))return[];const M=this.parseMode;s.applyMode&&(this.parseMode=s.applyMode);let $,q=[];if(s.parse?q=s.parse(this):[$,q]=this.scanArguments(s),this.parseMode=M,s.applyMode&&!s.applyStyle&&!s.createAtom)return ct(q[0]);if(s.infix)return this.onError({code:"too-many-infix-commands",arg:e}),null;if(typeof s.createAtom=="function")i=s.createAtom({command:e,args:q,style:this.style,mode:this.parseMode}),$&&(i.body=ct(this.scanArgument($)));else if(typeof s.applyStyle=="function"){const Ae=f(f({},this.style),s.applyStyle(e,q,this.context)),Qe=this.parseMode;if(s.applyMode&&(this.parseMode=s.applyMode),$){const ut=this.style;this.style=Ae;const Ft=this.scanArgument($);return this.style=ut,this.parseMode=Qe,ct(Ft)}this.style=Ae}else i=new zr({type:"mord",command:(r=s.command)!=null?r:e,style:f({},this.style),value:e,mode:(n=s.applyMode)!=null?n:this.parseMode})}if(!i)return null;if(i instanceof zr&&i.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(e)){const M=Ca([e,xl(this.tokens.slice(A,this.index))]);M&&(i.verbatimLatex=M)}if(i.verbatimLatex===null&&(i.verbatimLatex=void 0),i.isFunction&&this.smartFence){const M=this.scanSmartFence();if(M)return[i,M]}return[i]}scanSymbolCommandOrLiteral(){const e=this.get();if(!e)return null;if(ru(e)){const t=Ns.createAtom(this.parseMode,e,f({},this.style));if(!t)return null;if(t.isFunction&&this.smartFence){const r=this.scanSmartFence();if(r)return[t,r]}return[t]}return e.startsWith("\\")?this.scanSymbolOrCommand(e):e==="<space>"?this.parseMode==="text"?[new oc(" "," ",this.style)]:null:(e==="<}>"?this.onError({latex:"",code:"unbalanced-braces"}):this.onError({latex:"",code:"unexpected-token",arg:e}),null)}scanMacro(e){var t;const r=this.context.getMacro(e);if(!r)return null;const n=this.index,i=r.args,s={"?":(t=this.args)==null?void 0:t.call(this,"?")};for(let A=1;A<=i;A++){let M=this.scanLiteralGroup();if(!M){const $=this.index;this.scanExpression(),M=xl(this.tokens.slice($,this.index))}s[A]=M}return new pu(e,{expand:r.expand,captureSelection:r.captureSelection,args:n===this.index?null:xl(this.tokens.slice(n,this.index)),style:this.parsingContext.style,body:Al(r.def,{context:this.context,parseMode:this.parseMode,args:A=>s[A],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var e,t,r,n;let i=(n=(r=(t=(e=this.scanEnvironment())!=null?e:this.scanModeShift())!=null?t:this.scanModeSet())!=null?r:this.scanGroup())!=null?n:this.scanLeftRight();if(i===null){if(this.parseSupSub()||this.parseLimits())return!0;i=this.scanSymbolCommandOrLiteral()}return i?(Array.isArray(i)?this.mathlist.push(...i):this.mathlist.push(i),!0):!1}};function Al(e,t){var r,n,i,s;const A=(r=t==null?void 0:t.args)!=null?r:void 0,M=new Zu(gc(e,A),t==null?void 0:t.context,{args:A,mathstyle:(n=t==null?void 0:t.mathstyle)!=null?n:"displaystyle",parseMode:(i=t==null?void 0:t.parseMode)!=null?i:"math",style:(s=t==null?void 0:t.style)!=null?s:{}}),$=[];for(;!M.end();)$.push(...M.scan(()=>!1));return $}function gu(e,t){var r;const n=new Zu(gc(e,null),t==null?void 0:t.context,{mathstyle:"displaystyle",parseMode:(r=t==null?void 0:t.parseMode)!=null?r:"math"});for(;!n.end();)n.scan();return n.errors}var id=class Ap extends zr{constructor(t,r){super({type:"chem"},{command:t,mode:"math"});const n=jo.go(yn.go(r,t==="\\pu"?"pu":"ce"),!1);this.body=Al(n),this._verbatimLatex=t+"{"+r+"}",this.arg=r,this.captureSelection=!0}static fromJson(t){return new Ap(t.command,t.arg)}set verbatimLatex(t){}get verbatimLatex(){return this._verbatimLatex}toJson(){return E(f({},super.toJson()),{arg:this.arg})}render(t){const r=zr.createBox(t,this.body,{type:"inner"});return this.caret&&(r.caret=this.caret),this.bind(t,r)}_serialize(t){return console.assert(this.verbatimLatex!==void 0),this.verbatimLatex}};me(["ce","pu"],"{chemformula:balanced-string}",{createAtom:e=>{var t;return new id(e.command,(t=e.args[0])!=null?t:"")}});var yn={go:function(e,t){if(!e)return[];t===void 0&&(t="ce");var r="0",n={};n.parenthesisLevel=0,e=e.replace(/\n/g," "),e=e.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),e=e.replace(/[\u2026]/g,"...");for(var i,s=10,A=[];;){i!==e?(s=10,i=e):s--;var M=yn.stateMachines[t],$=M.transitions[r]||M.transitions["*"];e:for(var q=0;q<$.length;q++){var Ae=yn.patterns.match_($[q].pattern,e);if(Ae){for(var Qe=$[q].task,ut=0;ut<Qe.action_.length;ut++){var Ft;if(M.actions[Qe.action_[ut].type_])Ft=M.actions[Qe.action_[ut].type_](n,Ae.match_,Qe.action_[ut].option);else if(yn.actions[Qe.action_[ut].type_])Ft=yn.actions[Qe.action_[ut].type_](n,Ae.match_,Qe.action_[ut].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+Qe.action_[ut].type_+")"];yn.concatArray(A,Ft)}if(r=Qe.nextState||r,e.length>0){if(Qe.revisit||(e=Ae.remainder),!Qe.toContinue)break e}else return A}}if(s<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(e,t){if(t)if(Object.prototype.toString.call(t)==="[object Array]")for(var r=0;r<t.length;r++)e.push(t[r]);else e.push(t)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(e){var t=e.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:(?:([eE])|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return t&&t[0]?{match_:t.slice(1),remainder:e.substr(t[0].length)}:null},"(-)(9)^(-9)":function(e){var t=e.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/);return t&&t[0]?{match_:t.slice(1),remainder:e.substr(t[0].length)}:null},"state of aggregation $":function(e){var t=yn.patterns.findObserveGroups(e,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(t&&t.remainder.match(/^($|[\s,;\)\]\}])/))return t;var r=e.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return r?{match_:r[0],remainder:e.substr(r[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". ":/^([.\u22C5\u00B7\u2022])\s*/,"...":/^\.\.\.(?=$|[^.])/,"* ":/^([*])\s*/,"^{(...)}":function(e){return yn.patterns.findObserveGroups(e,"^{","","","}")},"^($...$)":function(e){return yn.patterns.findObserveGroups(e,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(e){return yn.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(e){return yn.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(e){return yn.patterns.findObserveGroups(e,"_{","","","}")},"_($...$)":function(e){return yn.patterns.findObserveGroups(e,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(e){return yn.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(e){return yn.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(e){return yn.patterns.findObserveGroups(e,"","{","}","")},"{(...)}":function(e){return yn.patterns.findObserveGroups(e,"{","","","}")},"$...$":function(e){return yn.patterns.findObserveGroups(e,"","$","$","")},"${(...)}$":function(e){return yn.patterns.findObserveGroups(e,"${","","","}$")},"$(...)$":function(e){return yn.patterns.findObserveGroups(e,"$","","","$")},"=<>":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(e){return yn.patterns.findObserveGroups(e,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(e){return yn.patterns.findObserveGroups(e,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(e){return yn.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(e){return yn.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(e){return yn.patterns.findObserveGroups(e,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(e){return yn.patterns.findObserveGroups(e,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(e){return yn.patterns.findObserveGroups(e,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(e){return yn.patterns.findObserveGroups(e,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(e){return yn.patterns.findObserveGroups(e,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(e){return yn.patterns.findObserveGroups(e,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(e){return yn.patterns.findObserveGroups(e,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(e){return yn.patterns.findObserveGroups(e,"\\ce{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(e){var t;if(t=e.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/),t)return{match_:t[0],remainder:e.substr(t[0].length)};var r=yn.patterns.findObserveGroups(e,"","$","$","");return r&&(t=r.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/),t)?{match_:t[0],remainder:e.substr(t[0].length)}:null},amount2:function(e){return this.amount(e)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(e){if(e.match(/^\([a-z]+\)$/))return null;var t=e.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return t?{match_:t[0],remainder:e.substr(t[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(e,t,r,n,i,s,A,M,$,q){var Ae=function(Cr,an){if(typeof an=="string")return Cr.indexOf(an)!==0?null:an;var Rn=Cr.match(an);return Rn?Rn[0]:null},Qe=function(Cr,an,Rn){for(var pn=0;an<Cr.length;){var Ci=Cr.charAt(an),ji=Ae(Cr.substr(an),Rn);if(ji!==null&&pn===0)return{endMatchBegin:an,endMatchEnd:an+ji.length};if(Ci==="{")pn++;else if(Ci==="}"){if(pn===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];pn--}an++}return pn>0,null},ut=Ae(e,t);if(ut===null||(e=e.substr(ut.length),ut=Ae(e,r),ut===null))return null;var Ft=Qe(e,ut.length,n||i);if(Ft===null)return null;var Nt=e.substring(0,n?Ft.endMatchEnd:Ft.endMatchBegin);if(s||A){var Fr=this.findObserveGroups(e.substr(Ft.endMatchEnd),s,A,M,$);if(Fr===null)return null;var In=[Nt,Fr.match_];return{match_:q?In.join(""):In,remainder:Fr.remainder}}else return{match_:Nt,remainder:e.substr(Ft.endMatchEnd)}},match_:function(e,t){var r=yn.patterns.patterns[e];if(r===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+e+")"];if(typeof r=="function")return yn.patterns.patterns[e](t);var n=t.match(r);if(n){var i;return n[2]?i=[n[1],n[2]]:n[1]?i=n[1]:i=n[0],{match_:i,remainder:t.substr(n[0].length)}}return null}},actions:{"a=":function(e,t){e.a=(e.a||"")+t},"b=":function(e,t){e.b=(e.b||"")+t},"p=":function(e,t){e.p=(e.p||"")+t},"o=":function(e,t){e.o=(e.o||"")+t},"q=":function(e,t){e.q=(e.q||"")+t},"d=":function(e,t){e.d=(e.d||"")+t},"rm=":function(e,t){e.rm=(e.rm||"")+t},"text=":function(e,t){e.text_=(e.text_||"")+t},insert:function(e,t,r){return{type_:r}},"insert+p1":function(e,t,r){return{type_:r,p1:t}},"insert+p1+p2":function(e,t,r){return{type_:r,p1:t[0],p2:t[1]}},copy:function(e,t){return t},rm:function(e,t){return{type_:"rm",p1:t||""}},text:function(e,t){return yn.go(t,"text")},"{text}":function(e,t){var r=["{"];return yn.concatArray(r,yn.go(t,"text")),r.push("}"),r},"tex-math":function(e,t){return yn.go(t,"tex-math")},"tex-math tight":function(e,t){return yn.go(t,"tex-math tight")},bond:function(e,t,r){return{type_:"bond",kind_:r||t}},"color0-output":function(e,t){return{type_:"color0",color:t[0]}},ce:function(e,t){return yn.go(t)},"1/2":function(e,t){var r=[];t.match(/^[+\-]/)&&(r.push(t.substr(0,1)),t=t.substr(1));var n=t.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return n[1]=n[1].replace(/\$/g,""),r.push({type_:"frac",p1:n[1],p2:n[2]}),n[3]&&(n[3]=n[3].replace(/\$/g,""),r.push({type_:"tex-math",p1:n[3]})),r},"9,9":function(e,t){return yn.go(t,"9,9")}},createTransitions:function(e){var t,r,n,i,s={};for(t in e)for(r in e[t])for(n=r.split("|"),e[t][r].stateArray=n,i=0;i<n.length;i++)s[n[i]]=[];for(t in e)for(r in e[t])for(n=e[t][r].stateArray||[],i=0;i<n.length;i++){var A=e[t][r];if(A.action_){A.action_=[].concat(A.action_);for(var M=0;M<A.action_.length;M++)typeof A.action_[M]=="string"&&(A.action_[M]={type_:A.action_[M]})}else A.action_=[];for(var $=t.split("|"),q=0;q<$.length;q++)if(n[i]==="*")for(var Ae in s)s[Ae].push({pattern:$[q],task:A});else s[n[i]].push({pattern:$[q],task:A})}return s},stateMachines:{}};yn.stateMachines={ce:{transitions:yn.createTransitions({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:!0,toContinue:!0}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{}},space:{a:{nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". |* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}0":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(e,t){var r;if((e.d||"").match(/^[0-9]+$/)){var n=e.d;e.d=void 0,r=this.output(e),e.b=n}else r=this.output(e);return yn.actions["o="](e,t),r},"d= kv":function(e,t){e.d=t,e.dType="kv"},"charge or bond":function(e,t){if(e.beginsWithBond){var r=[];return yn.concatArray(r,this.output(e)),yn.concatArray(r,yn.actions.bond(e,t,"-")),r}else e.d=t},"- after o/d":function(e,t,r){var n=yn.patterns.match_("orbital",e.o||""),i=yn.patterns.match_("one lowercase greek letter $",e.o||""),s=yn.patterns.match_("one lowercase latin letter $",e.o||""),A=yn.patterns.match_("$one lowercase latin letter$ $",e.o||""),M=t==="-"&&(n&&n.remainder===""||i||s||A);M&&!e.a&&!e.b&&!e.p&&!e.d&&!e.q&&!n&&s&&(e.o="$"+e.o+"$");var $=[];return M?(yn.concatArray($,this.output(e)),$.push({type_:"hyphen"})):(n=yn.patterns.match_("digits",e.d||""),r&&n&&n.remainder===""?(yn.concatArray($,yn.actions["d="](e,t)),yn.concatArray($,this.output(e))):(yn.concatArray($,this.output(e)),yn.concatArray($,yn.actions.bond(e,t,"-")))),$},"a to o":function(e){e.o=e.a,e.a=void 0},"sb=true":function(e){e.sb=!0},"sb=false":function(e){e.sb=!1},"beginsWithBond=true":function(e){e.beginsWithBond=!0},"beginsWithBond=false":function(e){e.beginsWithBond=!1},"parenthesisLevel++":function(e){e.parenthesisLevel++},"parenthesisLevel--":function(e){e.parenthesisLevel--},"state of aggregation":function(e,t){return{type_:"state of aggregation",p1:yn.go(t,"o")}},comma:function(e,t){var r=t.replace(/\s*$/,""),n=r!==t;return n&&e.parenthesisLevel===0?{type_:"comma enumeration L",p1:r}:{type_:"comma enumeration M",p1:r}},output:function(e,t,r){var n;if(!e.r)n=[],!e.a&&!e.b&&!e.p&&!e.o&&!e.q&&!e.d&&!r||(e.sb&&n.push({type_:"entitySkip"}),!e.o&&!e.q&&!e.d&&!e.b&&!e.p&&r!==2?(e.o=e.a,e.a=void 0):!e.o&&!e.q&&!e.d&&(e.b||e.p)?(e.o=e.a,e.d=e.b,e.q=e.p,e.a=e.b=e.p=void 0):e.o&&e.dType==="kv"&&yn.patterns.match_("d-oxidation$",e.d||"")?e.dType="oxidation":e.o&&e.dType==="kv"&&!e.q&&(e.dType=void 0),n.push({type_:"chemfive",a:yn.go(e.a,"a"),b:yn.go(e.b,"bd"),p:yn.go(e.p,"pq"),o:yn.go(e.o,"o"),q:yn.go(e.q,"pq"),d:yn.go(e.d,e.dType==="oxidation"?"oxidation":"bd"),dType:e.dType}));else{var i;e.rdt==="M"?i=yn.go(e.rd,"tex-math"):e.rdt==="T"?i=[{type_:"text",p1:e.rd||""}]:i=yn.go(e.rd);var s;e.rqt==="M"?s=yn.go(e.rq,"tex-math"):e.rqt==="T"?s=[{type_:"text",p1:e.rq||""}]:s=yn.go(e.rq),n={type_:"arrow",r:e.r,rd:i,rq:s}}for(var A in e)A!=="parenthesisLevel"&&A!=="beginsWithBond"&&delete e[A];return n},"oxidation-output":function(e,t){var r=["{"];return yn.concatArray(r,yn.go(t,"oxidation")),r.push("}"),r},"frac-output":function(e,t){return{type_:"frac-ce",p1:yn.go(t[0]),p2:yn.go(t[1])}},"overset-output":function(e,t){return{type_:"overset",p1:yn.go(t[0]),p2:yn.go(t[1])}},"underset-output":function(e,t){return{type_:"underset",p1:yn.go(t[0]),p2:yn.go(t[1])}},"underbrace-output":function(e,t){return{type_:"underbrace",p1:yn.go(t[0]),p2:yn.go(t[1])}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:yn.go(t[1])}},"r=":function(e,t){e.r=t},"rdt=":function(e,t){e.rdt=t},"rd=":function(e,t){e.rd=t},"rqt=":function(e,t){e.rqt=t},"rq=":function(e,t){e.rq=t},operator:function(e,t,r){return{type_:"operator",kind_:r||t}}}},a:{transitions:yn.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},"$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:yn.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"{text}"}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:yn.createTransitions({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(e){if(e.text_){var t={type_:"text",p1:e.text_};for(var r in e)delete e[r];return t}}}},pq:{transitions:yn.createTransitions({empty:{"*":{}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"!f",revisit:!0}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(e,t){return{type_:"state of aggregation subscript",p1:yn.go(t,"o")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:yn.go(t[1],"pq")}}}},bd:{transitions:yn.createTransitions({empty:{"*":{}},x$:{0:{nextState:"!f",revisit:!0}},formula$:{0:{nextState:"f",revisit:!0}},else:{0:{nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(e,t){return{type_:"color",color1:t[0],color2:yn.go(t[1],"bd")}}}},oxidation:{transitions:yn.createTransitions({empty:{"*":{}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(e,t){return{type_:"roman numeral",p1:t||""}}}},"tex-math":{transitions:yn.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e)delete e[r];return t}}}},"tex-math tight":{transitions:yn.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(e,t){e.o=(e.o||"")+"{"+t+"}"},output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e)delete e[r];return t}}}},"9,9":{transitions:yn.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:yn.createTransitions({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(e,t){var r=[];return t[0]==="+-"||t[0]==="+/-"?r.push("\\pm "):t[0]&&r.push(t[0]),t[1]&&(yn.concatArray(r,yn.go(t[1],"pu-9,9")),t[2]&&(t[2].match(/[,.]/)?yn.concatArray(r,yn.go(t[2],"pu-9,9")):r.push(t[2])),(t[3]||t[4])&&(t[3]==="e"||t[4]==="*"?r.push({type_:"cdot"}):r.push({type_:"times"}))),t[5]&&r.push("10^{"+t[5]+"}"),r},"number^":function(e,t){var r=[];return t[0]==="+-"||t[0]==="+/-"?r.push("\\pm "):t[0]&&r.push(t[0]),yn.concatArray(r,yn.go(t[1],"pu-9,9")),r.push("^{"+t[2]+"}"),r},operator:function(e,t,r){return{type_:"operator",kind_:r||t}},space:function(){return{type_:"pu-space-1"}},output:function(e){var t,r=yn.patterns.match_("{(...)}",e.d||"");r&&r.remainder===""&&(e.d=r.match_);var n=yn.patterns.match_("{(...)}",e.q||"");if(n&&n.remainder===""&&(e.q=n.match_),e.d&&(e.d=e.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.d=e.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),e.q){e.q=e.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.q=e.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var i={d:yn.go(e.d,"pu"),q:yn.go(e.q,"pu")};e.o==="//"?t={type_:"pu-frac",p1:i.d,p2:i.q}:(t=i.d,i.d.length>1||i.q.length>1?t.push({type_:" / "}):t.push({type_:"/"}),yn.concatArray(t,i.q))}else t=yn.go(e.d,"pu-2");for(var s in e)delete e[s];return t}}},"pu-2":{transitions:yn.createTransitions({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(e,t){e.rm+="^{"+t+"}"},space:function(){return{type_:"pu-space-2"}},output:function(e){var t=[];if(e.rm){var r=yn.patterns.match_("{(...)}",e.rm||"");r&&r.remainder===""?t=yn.go(r.match_,"pu"):t={type_:"rm",p1:e.rm}}for(var n in e)delete e[n];return t}}},"pu-9,9":{transitions:yn.createTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){var r=e.text_.length%3;r===0&&(r=3);for(var n=e.text_.length-3;n>0;n-=3)t.push(e.text_.substr(n,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(0,r)),t.reverse()}else t.push(e.text_);for(var i in e)delete e[i];return t},"output-o":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){for(var r=e.text_.length-3,n=0;n<r;n+=3)t.push(e.text_.substr(n,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(n))}else t.push(e.text_);for(var i in e)delete e[i];return t}}}};var jo={go:function(e,t){if(!e)return"";for(var r="",n=!1,i=0;i<e.length;i++){var s=e[i];typeof s=="string"?r+=s:(r+=jo._go2(s),s.type_==="1st-level escape"&&(n=!0))}return!t&&!n&&r&&(r="{"+r+"}"),r},_goInner:function(e){return e&&jo.go(e,!0)},_go2:function(e){var t;switch(e.type_){case"chemfive":t="";var r={a:jo._goInner(e.a),b:jo._goInner(e.b),p:jo._goInner(e.p),o:jo._goInner(e.o),q:jo._goInner(e.q),d:jo._goInner(e.d)};r.a&&(r.a.match(/^[+\-]/)&&(r.a="{"+r.a+"}"),t+=r.a+"\\,"),(r.b||r.p)&&(t+="{\\vphantom{X}}",t+="^{\\hphantom{"+(r.b||"")+"}}_{\\hphantom{"+(r.p||"")+"}}",t+="{\\vphantom{X}}",t+="^{\\smash[t]{\\vphantom{2}}\\llap{"+(r.b||"")+"}}",t+="_{\\vphantom{2}\\llap{\\smash[t]{"+(r.p||"")+"}}}"),r.o&&(r.o.match(/^[+\-]/)&&(r.o="{"+r.o+"}"),t+=r.o),e.dType==="kv"?((r.d||r.q)&&(t+="{\\vphantom{X}}"),r.d&&(t+="^{"+r.d+"}"),r.q&&(t+="_{\\smash[t]{"+r.q+"}}")):e.dType==="oxidation"?(r.d&&(t+="{\\vphantom{X}}",t+="^{"+r.d+"}"),r.q&&(t+="{\\vphantom{X}}",t+="_{\\smash[t]{"+r.q+"}}")):(r.q&&(t+="{\\vphantom{X}}",t+="_{\\smash[t]{"+r.q+"}}"),r.d&&(t+="{\\vphantom{X}}",t+="^{"+r.d+"}"));break;case"rm":t="\\mathrm{"+e.p1+"}";break;case"text":e.p1.match(/[\^_]/)?(e.p1=e.p1.replace(" ","~").replace("-","\\text{-}"),t="\\mathrm{"+e.p1+"}"):t="\\text{"+e.p1+"}";break;case"roman numeral":t="\\mathrm{"+e.p1+"}";break;case"state of aggregation":t="\\mskip2mu "+jo._goInner(e.p1);break;case"state of aggregation subscript":t="\\mskip1mu "+jo._goInner(e.p1);break;case"bond":if(t=jo._getBond(e.kind_),!t)throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+e.kind_+")"];break;case"frac":var n="\\frac{"+e.p1+"}{"+e.p2+"}";t="\\mathchoice{\\textstyle"+n+"}{"+n+"}{"+n+"}{"+n+"}";break;case"pu-frac":var i="\\frac{"+jo._goInner(e.p1)+"}{"+jo._goInner(e.p2)+"}";t="\\mathchoice{\\textstyle"+i+"}{"+i+"}{"+i+"}{"+i+"}";break;case"tex-math":t=e.p1+" ";break;case"frac-ce":t="\\frac{"+jo._goInner(e.p1)+"}{"+jo._goInner(e.p2)+"}";break;case"overset":t="\\overset{"+jo._goInner(e.p1)+"}{"+jo._goInner(e.p2)+"}";break;case"underset":t="\\underset{"+jo._goInner(e.p1)+"}{"+jo._goInner(e.p2)+"}";break;case"underbrace":t="\\underbrace{"+jo._goInner(e.p1)+"}_{"+jo._goInner(e.p2)+"}";break;case"color":t="{\\color{"+e.color1+"}{"+jo._goInner(e.color2)+"}}";break;case"color0":t="\\color{"+e.color+"}";break;case"arrow":var s={rd:jo._goInner(e.rd),rq:jo._goInner(e.rq)},A=jo._getArrow(e.r);s.rd||s.rq?e.r==="<=>"||e.r==="<=>>"||e.r==="<<=>"||e.r==="<-->"?(A="\\long"+A,s.rd&&(A="\\overset{"+s.rd+"}{"+A+"}"),s.rq&&(e.r==="<-->"?A="\\underset{\\lower2mu{"+s.rq+"}}{"+A+"}":A="\\underset{\\lower6mu{"+s.rq+"}}{"+A+"}"),A=" {}\\mathrel{"+A+"}{} "):(s.rq&&(A+="[{"+s.rq+"}]"),A+="{"+s.rd+"}",A=" {}\\mathrel{\\x"+A+"}{} "):A=" {}\\mathrel{\\long"+A+"}{} ",t=A;break;case"operator":t=jo._getOperator(e.kind_);break;case"1st-level escape":t=e.p1+" ";break;case"space":t=" ";break;case"entitySkip":t="~";break;case"pu-space-1":t="~";break;case"pu-space-2":t="\\mkern3mu ";break;case"1000 separator":t="\\mkern2mu ";break;case"commaDecimal":t="{,}";break;case"comma enumeration L":t="{"+e.p1+"}\\mkern6mu ";break;case"comma enumeration M":t="{"+e.p1+"}\\mkern3mu ";break;case"comma enumeration S":t="{"+e.p1+"}\\mkern1mu ";break;case"hyphen":t="\\text{-}";break;case"addition compound":t="\\,{\\cdot}\\,";break;case"electron dot":t="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":t="{\\times}";break;case"prime":t="\\prime ";break;case"cdot":t="\\cdot ";break;case"tight cdot":t="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":t="\\times ";break;case"circa":t="{\\sim}";break;case"^":t="uparrow";break;case"v":t="downarrow";break;case"ellipsis":t="\\ldots ";break;case"/":t="/";break;case" / ":t="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return t},_getArrow:function(e){switch(e){case"->":return"rightarrow";case"\u2192":return"rightarrow";case"\u27F6":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<-->":return"leftrightarrows";case"<=>":return"rightleftharpoons";case"\u21CC":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(e){switch(e){case"-":return"{-}";case"1":return"{-}";case"=":return"{=}";case"2":return"{=}";case"#":return"{\\equiv}";case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(e){switch(e){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":return" {}\\approx{} ";case"$\\approx$":return" {}\\approx{} ";case"v":return" \\downarrow{} ";case"(v)":return" \\downarrow{} ";case"^":return" \\uparrow{} ";case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};function bd(e){}function gf(e){}var Zd=class up extends zr{constructor(t){super(E(f({},t),{type:"delim"})),this.value=t.delim,this.size=t.size}static fromJson(t){return new up(t)}toJson(){return E(f({},super.toJson()),{delim:this.value,size:this.size})}render(t){return new fn(this.value,{type:"middle"})}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=gt(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):So(this.command,this.value)}},wd=class dp extends zr{constructor(t){super(E(f({},t),{type:"sizeddelim",value:t.delim})),this.delimType=t.delimType,this.size=t.size}static fromJson(t){return new dp(t)}toJson(){return E(f({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(t){let r=Ul(this.value,this.size,t,{classes:{open:"mopen",close:"mclose"}[this.delimType],type:this.delimType,isSelected:this.isSelected});return r?(r=this.bind(t,r),this.caret&&(r.caret=this.caret),r):null}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=gt(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):So(this.command,this.value)}},Vu=class fp extends zr{constructor(t,r,n,i){var s,A;super({type:"enclose",command:t,style:i.style}),this.body=r,this.backgroundcolor=i.backgroundcolor,n.updiagonalarrow&&(n.updiagonalstrike=!1),n.box&&(n.left=!1,n.right=!1,n.bottom=!1,n.top=!1),this.notation=n,this.shadow=(s=i.shadow)!=null?s:"none",this.strokeWidth=(A=i.strokeWidth)!=null?A:"0.06em",this.strokeWidth||(this.strokeWidth="0.06em"),this.strokeStyle=i.strokeStyle,this.svgStrokeStyle=i.svgStrokeStyle,this.strokeColor=i.strokeColor,this.borderStyle=i.borderStyle,this.padding=i.padding,this.captureSelection=!1}static fromJson(t){return new fp(t.command,t.body,t.notation,t)}toJson(){return E(f({},super.toJson()),{notation:this.notation,shadow:this.shadow,strokeWidth:this.strokeWidth,strokeStyle:this.strokeStyle,svgStrokeStyle:this.svgStrokeStyle,strokeColor:this.strokeColor,borderStyle:this.borderStyle,padding:this.padding})}_serialize(t){var r;if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const n=gt(this.command,this.mode);if(n!=null&&n.serialize)return n.serialize(this,t);let i=(r=this.command)!=null?r:"";if(this.command==="\\enclose"){i+="{"+Object.keys(this.notation).join(" ")+"}";let s="",A="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(s+=A+'mathbackground="'+this.backgroundcolor+'"',A=","),this.shadow&&this.shadow!=="auto"&&(s+=A+'shadow="'+this.shadow+'"',A=","),this.strokeWidth||this.strokeStyle!=="solid"?(s+=A+this.borderStyle,A=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(s+=A+'mathcolor="'+this.strokeColor+'"',A=","),s&&(i+=`[${s}]`)}return So(i,this.bodyToLatex(t))}render(t){const r=new la({parent:t},this.style),n=zr.createBox(r,this.body);if(!n)return null;const i=xd(this.borderStyle),s=r.toEm(!this.padding||this.padding==="auto"?{register:"fboxsep"}:{string:this.padding});n.setStyle("position","relative"),n.setStyle("display","inline-block"),n.setStyle("top",s,"em"),n.setStyle("height",n.height+n.depth,"em"),n.setStyle("width",n.width,"em");const A=new fn(null,{classes:"ML__notation"});let M=n.height+n.depth+2*s;const $=n.width+2*s;let q="";if(this.notation.horizontalstrike&&(q+=this.line(3,50,97,50)),this.notation.verticalstrike&&(q+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(q+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(q+=this.line(3,3,97,97)),this.notation.updiagonalarrow){q+=this.line(s.toString(),(s+n.depth+n.height).toString(),(s+n.width).toString(),s.toString());const Nt=.03*Math.sqrt($*$+M*M)*1,Fr=n.width*Nt,In=(n.depth+n.height)*Nt,Cr=s+n.width;let an=s;an+In-.4*Fr<0&&(an=.4*Fr-In),q+='<polygon points="',q+=`${Cr},${an} ${Cr-Fr-.4*In},${an+In-.4*Fr} `,q+=`${Cr-.7*Fr},${an+.7*In} ${Cr-Fr+.4*In},${an+In+.4*Fr} `,q+=`${Cr},${an}`,q+=`" stroke='none' fill="${this.strokeColor}"`,q+="/>"}let Ae=0;if(this.notation.phasorangle){const ut=ml(r),Ft=(n.height+n.depth+2*ut+s).toString(),Nt=(n.height+n.depth)/2;q+=this.line(s.toString(),Ft,(s+Nt+n.width).toString(),Ft),q+=this.line(s.toString(),Ft,(s+Nt).toString(),(s-ut).toString()),M+=ut,Ae=Nt,n.left+=M/2-s}if(this.notation.longdiv){const ut=ml(r);M+=ut,q+=this.line(s.toString(),s.toString(),(s+n.width).toString(),s.toString());const Ft=.3;Ae=Ft+ut,n.left+=Ft+ut,n.setTop(s+ut),q+='<path d="',q+=`M ${s} ${s} a${Ft} ${(n.depth+n.height+2*ut)/2}, 0, 1, 1, 0 ${n.depth+n.height+2*ut} "`,q+=` stroke-width="${vu(r)}" stroke="${this.strokeColor}" fill="none"`,q+="/>"}if(A.width=n.width+2*s+Ae,A.height=n.height+s,A.depth=n.depth+s,A.setStyle("box-sizing","border-box"),A.setStyle("left",`calc(-${i} / 2 )`),A.setStyle("height",`${Math.floor(100*M)/100}em`),A.setStyle("top",`calc(${i} / 2 )`),this.backgroundcolor&&A.setStyle("background-color",this.backgroundcolor),this.notation.box&&A.setStyle("border","1px solid red"),this.notation.actuarial&&(A.setStyle("border-top",this.borderStyle),A.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(A.setStyle("border-bottom",this.borderStyle),A.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(A.setStyle("border-radius","8px"),A.setStyle("border",this.borderStyle)),this.notation.circle&&(A.setStyle("border-radius","50%"),A.setStyle("border",this.borderStyle)),this.notation.top&&A.setStyle("border-top",this.borderStyle),this.notation.left&&A.setStyle("border-left",this.borderStyle),this.notation.right&&A.setStyle("border-right",this.borderStyle),this.notation.bottom&&A.setStyle("border-bottom",this.borderStyle),q){let ut="";this.shadow==="auto"&&(ut+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(ut+=`filter: drop-shadow(${this.shadow})`),ut+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,ut+=' stroke-linecap="round"',this.svgStrokeStyle&&(ut+=` stroke-dasharray="${this.svgStrokeStyle}"`),A.svgStyle=ut,A.svgOverlay=q}const Qe=new fn([A,n]);return Qe.setStyle("position","relative"),Qe.setStyle("vertical-align",s,"em"),Qe.setStyle("height",`${Math.floor(100*(n.height+n.depth+2*s))/100}em`),Qe.setStyle("display","inline-block"),Qe.height=A.height,Qe.depth=A.depth,Qe.width=A.width-2*s,Qe.left=s,Qe.right=s,this.caret&&(Qe.caret=this.caret),Qe.wrap(r)}line(t,r,n,i){return`<line x1="${ad(t)}" y1="${ad(r)}" x2="${ad(n)}" y2="${ad(i)}" vector-effect="non-scaling-stroke"></line>`}};function ad(e){return typeof e=="number"?`${Math.floor(100*e)/100}%`:e}function xd(e){if(!e)return"1px";const t=e.match(/([0-9][a-zA-Z\%]+)/);return t===null?"1px":t[1]}function vu(e){return(Math.floor(100*e.metrics.sqrtRuleThickness/e.scalingFactor)/100/10).toString()+"em"}function ml(e){const t=e.isDisplayStyle?as:e.metrics.defaultRuleThickness;return e.metrics.defaultRuleThickness+e.scalingFactor*t/4}var nu=class hp extends zr{constructor(t,r,n){var i,s;super(E(f({},n),{type:"genfrac",displayContainsHighlight:!0})),this.above=t,this.below=r,this.hasBarLine=(i=n==null?void 0:n.hasBarLine)!=null?i:!0,this.continuousFraction=(s=n==null?void 0:n.continuousFraction)!=null?s:!1,this.numerPrefix=n==null?void 0:n.numerPrefix,this.denomPrefix=n==null?void 0:n.denomPrefix,this.mathstyleName=n==null?void 0:n.mathstyleName,this.leftDelim=n==null?void 0:n.leftDelim,this.rightDelim=n==null?void 0:n.rightDelim,this.fractionNavigationOrder=n==null?void 0:n.fractionNavigationOrder}static fromJson(t){return new hp(t.above,t.below,t)}toJson(){const t={};return this.continuousFraction&&(t.continuousFraction=!0),this.numerPrefix&&(t.numerPrefix=this.numerPrefix),this.denomPrefix&&(t.denomPrefix=this.denomPrefix),this.leftDelim&&(t.leftDelim=this.leftDelim),this.rightDelim&&(t.rightDelim=this.rightDelim),this.hasBarLine||(t.hasBarLine=!1),this.mathstyleName&&(t.mathstyleName=this.mathstyleName),this.fractionNavigationOrder&&(t.fractionNavigationOrder=this.fractionNavigationOrder),f(f({},super.toJson()),t)}get children(){if(this._children)return this._children;const t=[];if(this.fractionNavigationOrder==="denominator-numerator"){for(const r of this.below)t.push(...r.children),t.push(r);for(const r of this.above)t.push(...r.children),t.push(r)}else{for(const r of this.above)t.push(...r.children),t.push(r);for(const r of this.below)t.push(...r.children),t.push(r)}return this._children=t,t}render(t){var r,n;const i=new la({parent:t,mathstyle:this.mathstyleName},this.style),s=i.metrics,A=new la({parent:i,mathstyle:this.continuousFraction?"":"numerator"},this.style),M=this.numerPrefix?new fn([new fn(this.numerPrefix),zr.createBox(A,this.above)],{isTight:A.isTight,type:"ignore"}):(r=zr.createBox(A,this.above,{type:"ignore"}))!=null?r:new fn(null,{type:"ignore"}),$=new la({parent:i,mathstyle:this.continuousFraction?"":"denominator"},this.style),q=this.denomPrefix?new fn([new fn(this.denomPrefix),zr.createBox($,this.below,{type:"ignore"})]):(n=zr.createBox($,this.below,{type:"ignore"}))!=null?n:new fn(null,{type:"ignore"}),Ae=this.hasBarLine?s.defaultRuleThickness:0;let Qe,ut=0,Ft;i.isDisplayStyle?(Qe=A.metrics.num1,ut=Ae>0?3*Ae:7*Ae,Ft=$.metrics.denom1):(Ae>0?(Qe=A.metrics.num2,ut=Ae):(Qe=A.metrics.num3,ut=3*s.defaultRuleThickness),Ft=$.metrics.denom2);const Nt=[];this.isSelected&&Nt.push("ML__selected");const Fr=M.depth,In=q.height;let Cr;if(Ae<=0){const Oi=Qe-Fr-(In-Ft);Oi<ut&&(Qe+=(ut-Oi)/2,Ft+=(ut-Oi)/2),Cr=new Xo({individualShift:[{box:M,shift:-Qe,classes:[...Nt,"ML__center"]},{box:q,shift:Ft,classes:[...Nt,"ML__center"]}]}).wrap(i)}else{const Oi=new fn(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});Oi.softWidth=Math.max(M.width,q.width),Oi.height=Ae/2,Oi.depth=Ae/2;const io=us+Ae/2;Qe<ut+Fr+io&&(Qe=ut+Fr+io);const zo=us-Ae/2;Ft<ut+In-zo&&(Ft=ut+In-zo),Cr=new Xo({individualShift:[{box:q,shift:Ft,classes:[...Nt,"ML__center"]},{box:Oi,shift:-zo,classes:Nt},{box:M,shift:-Qe,classes:[...Nt,"ML__center"]}]}).wrap(i)}const an=i.isDisplayStyle?s.delim1:s.delim2,Rn=this.leftDelim?this.bind(t,Bc("open",this.leftDelim,an,!0,t,{style:this.style,mode:this.mode,isSelected:this.isSelected})):uc(i,"open");let pn=null;this.continuousFraction?pn=new fn(null,{type:"close"}):this.rightDelim?pn=this.bind(t,Bc("close",this.rightDelim,an,!0,t,{style:this.style,mode:this.mode,isSelected:this.isSelected})):pn=uc(i,"close");const Ci=new fn([Rn,Cr,pn],{isTight:i.isTight,type:"inner",classes:"mfrac"}),ji=this.bind(t,Ci);return this.caret&&(ji.caret=this.caret),this.attachSupsub(t,{base:ji})}},Ls=class pp extends zr{constructor(t,r){var n;super({type:"latex",value:t,mode:"latex"}),this.isSuggestion=(n=r==null?void 0:r.isSuggestion)!=null?n:!1,this.isError=!1}static fromJson(t){const r=new pp(t.value);return t.isSuggestion&&(r.isSuggestion=!0),t.isError&&(r.isError=!0),r}toJson(){const t={};return this.isSuggestion&&(t.isSuggestion=!0),this.isError&&(t.isError=!0),f({type:"latex",value:this.value},t)}get computedStyle(){return{}}render(t){const r=new fn(this.value,{classes:this.isSuggestion?"ML__suggestion":this.isError?"ML__error":"",type:"latex",maxFontSize:1});return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}},yu=class mp extends zr{constructor(t){super({type:"latexgroup",mode:"latex"}),this.body=[...t].map(r=>new Ls(r)),this.skipBoundary=!1}static fromJson(t){return new mp("")}toJson(){return super.toJson()}render(t){const r=zr.createBox(t,this.body);return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}_serialize(t){var r,n;return(n=(r=this.body)==null?void 0:r.map(i=>i.value).join(""))!=null?n:""}},Cd=class gp extends zr{constructor(t,r){super(E(f({},r),{type:"extensible-symbol",isFunction:r==null?void 0:r.isFunction})),this.value=t,this.variant=r==null?void 0:r.variant,this.subsupPlacement=r==null?void 0:r.limits}static fromJson(t){return new gp(t.symbol,t)}toJson(){const t=super.toJson();return this.variant&&(t.variant=this.variant),this.subsupPlacement&&(t.limits=this.subsupPlacement),this.isExtensibleSymbol&&(t.isExtensibleSymbol=!0),this.value&&(t.symbol=this.value),t}render(t){var r;const n=t.isDisplayStyle&&this.value!=="\\smallint",i=new fn(this.value,{fontFamily:n?"Size2-Regular":"Size1-Regular",classes:"op-symbol "+(n?"large-op":"small-op"),type:"op",maxFontSize:t.scalingFactor,isSelected:this.isSelected});if(!i)return null;i.right=i.italic;const s=(i.height-i.depth)/2-us*t.scalingFactor,A=i.italic;i.setTop(s);let M=i;if(this.superscript||this.subscript){const $=(r=this.subsupPlacement)!=null?r:"auto";M=$==="over-under"||$==="auto"&&t.isDisplayStyle?this.attachLimits(t,{base:i,baseShift:s,slant:A}):this.attachSupsub(t,{base:i})}return new fn(this.bind(t,M),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(t)}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=gt(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const n=[];return n.push(this.command),this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&n.push("\\limits"),this.subsupPlacement==="adjacent"&&n.push("\\nolimits"),this.subsupPlacement==="auto"&&n.push("\\displaylimits")),n.push(this.supsubToLatex(t)),Ca(n)}},pA=class vp extends zr{constructor(t){const r=t.body;super(E(f({},t),{type:"overlap",body:typeof r=="string"?[new zr({value:r})]:r,style:t==null?void 0:t.style})),this.skipBoundary=!0,this.align=t==null?void 0:t.align,this.boxType=t==null?void 0:t.boxType}static fromJson(t){return new vp(t)}toJson(){const t={};return this.align&&(t.align=this.align),this.boxType&&(t.boxType=this.boxType),f(f({},super.toJson()),t)}render(t){const r=zr.createBox(t,this.body,{classes:"inner"});return r?(this.caret&&(r.caret=this.caret),this.bind(t,new fn([r,new fn(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},gl=class yp extends zr{constructor(t){var r,n,i,s;super({type:"overunder",command:t.command,style:t.style,mode:t.mode,body:t.body,skipBoundary:(r=t.skipBoundary)!=null?r:!0}),this.subsupPlacement=t.supsubPlacement,this.svgAbove=t.svgAbove,this.svgBelow=t.svgBelow,this.svgBody=t.svgBody,this.above=t.above,this.below=t.below,this.boxType=(n=t.boxType)!=null?n:"ord",this.paddedBody=(i=t.paddedBody)!=null?i:!1,this.paddedLabels=(s=t.paddedLabels)!=null?s:!1}static fromJson(t){return new yp(t)}toJson(){const t=super.toJson();return this.skipBoundary||(t.skipBoundary=!1),this.subsupPlacement&&(t.subsupPlacement=this.subsupPlacement),this.svgAbove&&(t.svgAbove=this.svgAbove),this.svgBelow&&(t.svgBelow=this.svgBelow),this.svgBody&&(t.svgBody=this.svgBody),this.boxType!=="ord"&&(t.boxType=this.boxType),this.paddedBody&&(t.paddedBody=!0),this.paddedLabels&&(t.paddedLabels=!0),t}render(t){let r=this.svgBody?sa(this.svgBody):zr.createBox(t,this.body,{type:"ignore"});const n=new la({parent:t,mathstyle:"scriptstyle"},this.style);let i=null;this.svgAbove?i=sa(this.svgAbove):this.above&&(i=zr.createBox(n,this.above,{type:"ignore"}));let s=null;this.svgBelow?s=sa(this.svgBelow):this.below&&(s=zr.createBox(n,this.below,{type:"ignore"})),this.paddedBody&&(r=new fn([uc(t,"open"),r,uc(t,"close")],{type:"ignore"}));let A=od(t,{base:r,above:i,below:s,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return A?(this.subsupPlacement==="over-under"?A=this.attachLimits(t,{base:A,type:A.type}):A=this.attachSupsub(t,{base:A}),this.caret&&(A.caret=this.caret),this.bind(t,A)):null}};function od(e,t){if(!t.base)return null;if(!t.above&&!t.below){const M=new fn(t.base,{type:t.type});return M.setStyle("position","relative"),M}let r=0;t.above&&(r=e.metrics.bigOpSpacing5);let n=null;const i=t.base,s=0,A=["ML__center"];if(t.paddedAboveBelow&&A.push("ML__label_padding"),t.below&&t.above){const M=e.metrics.bigOpSpacing5+t.below.height+t.below.depth+i.depth+s;n=new Xo({bottom:M,children:[e.metrics.bigOpSpacing5,{box:t.below,classes:A},{box:i,classes:["ML__center"]},r,{box:t.above,classes:A},e.metrics.bigOpSpacing5]})}else t.below?n=new Xo({top:i.height-s,children:[e.metrics.bigOpSpacing5,{box:t.below,classes:A},{box:i,classes:["ML__center"]}]}):t.above&&(n=new Xo({bottom:i.depth+s,children:[{box:i,classes:["ML__center"]},r,{box:t.above,classes:A},e.metrics.bigOpSpacing5]}));return new fn(n,{type:t.type})}var _c=class bp extends zr{constructor(t){var r,n,i,s;super(E(f({},t),{type:"phantom"})),this.captureSelection=!0,this.isInvisible=(r=t.isInvisible)!=null?r:!1,this.smashDepth=(n=t.smashDepth)!=null?n:!1,this.smashHeight=(i=t.smashHeight)!=null?i:!1,this.smashWidth=(s=t.smashWidth)!=null?s:!1}static fromJson(t){return new bp(t)}toJson(){const t={};return this.isInvisible&&(t.isInvisible=!0),this.smashDepth&&(t.smashDepth=!0),this.smashHeight&&(t.smashHeight=!0),this.smashWidth&&(t.smashWidth=!0),f(f({},super.toJson()),t)}render(t){const r=new la({parent:t,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),zr.createBox(r,this.body,{classes:"inner"});const n=zr.createBox(this.isInvisible?r:t,this.body);if(!n)return null;if(this.smashWidth){const i=new fn(null,{classes:"fix"});return new fn([n,i],{classes:"rlap"}).wrap(t)}if(!this.smashHeight&&!this.smashDepth)return n;if(this.smashHeight&&(n.height=0),this.smashDepth&&(n.depth=0),n.children)for(const i of n.children)this.smashHeight&&(i.height=0),this.smashDepth&&(i.depth=0);return new Xo({firstBaseline:[{box:n}]},{type:n.type}).wrap(t)}},Vs=class wp extends zr{constructor(t){var r;super(f({type:"spacing"},t)),this.width=t==null?void 0:t.width,this._braced=(r=t==null?void 0:t.braced)!=null?r:!1}static fromJson(t){return new wp(t)}toJson(){const t=super.toJson();return this.width!==void 0&&(t.width=this.width),this._braced&&(t.braced=!0),t}render(t){var r;if(this.command==="space")return new fn(this.mode==="math"?null:" ");let n;if(this.width!==void 0)n=new fn(null,{classes:"mspace"}),n.left=t.toEm(this.width);else{const i=(r={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\>":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.command])!=null?r:"mediumspace";n=new fn(null,{classes:i})}return n=this.bind(t,n),this.caret&&(n.caret=this.caret),n}_serialize(t){var r;if(!t.expandMacro&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const n=gt(this.command,this.mode);if(n!=null&&n.serialize)return n.serialize(this,t);const i=(r=this.command)!=null?r:"";return this.width===void 0?i:this._braced&&!("register"in this.width)?`${i}{${os(this.width)}}`:`${i}${os(this.width)}`}},nA=class xp extends zr{constructor(t){var r;super(E(f({},t),{type:"surd",mode:(r=t.mode)!=null?r:"math",style:t.style,displayContainsHighlight:!0,body:t.body})),this.above=t.index}static fromJson(t){return new xp(E(f({},t),{index:t.above}))}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=gt(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const n=this.command,i=this.bodyToLatex(t);return this.above&&!this.hasEmptyBranch("above")?So(`${n}[${this.aboveToLatex(t)}]`,i):/^[0-9]$/.test(i)?`${n}${i}`:So(n,i)}get children(){if(this._children)return this._children;const t=[];if(this.above)for(const r of this.above)t.push(...r.children),t.push(r);if(this.body)for(const r of this.body)t.push(...r.children),t.push(r);return this._children=t,t}render(t){var r;const n=new la({parent:t,mathstyle:"cramp"},this.style),i=(r=zr.createBox(n,this.body,{type:"inner"}))!=null?r:new fn(null),s=n.scalingFactor,A=n.metrics.defaultRuleThickness/s,M=t.isDisplayStyle?as:A,$=new fn(null,{classes:"ML__sqrt-line",style:this.style});$.height=A,$.softWidth=i.width;let q=s*(A+M/4);const Qe=Math.max(s*2*M,i.height+i.depth)+q+A,ut=new la({parent:t},this.style),Ft=this.bind(ut,new fn(Bc("inner","\\surd",Qe,!1,ut,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!Ft)return null;const Nt=Ft.height+Ft.depth-A;Nt>i.height+i.depth+q&&(q=(q+Nt-(i.height+i.depth))/2),Ft.setTop(Ft.height-i.height-q);const Fr=this.bind(t,new Xo({firstBaseline:[{box:new fn(i)},q-2*A,{box:$},A]})),In=zr.createBox(new la({parent:t,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!In){const Rn=new fn([Ft,Fr],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return Rn.setStyle("display","inline-block"),Rn.setStyle("height",Rn.height+Rn.depth,"em"),this.caret&&(Rn.caret=this.caret),this.bind(t,Rn)}const Cr=new Xo({shift:-.6*(Math.max(Ft.height,Fr.height)-Math.max(Ft.depth,Fr.depth)),children:[{box:In}]}),an=new fn([new fn(Cr,{classes:"ML__sqrt-index",type:"ignore"}),Ft,Fr],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return an.height=Ft.height,an.depth=Ft.depth,this.caret&&(an.caret=this.caret),this.bind(t,an)}},vf=class extends fn{constructor(e){super(null,{type:"skip"}),this._width=e}toMarkup(){return`<span style="display:inline-block;width:${Math.ceil(this.width*100)/100}em"></span>`}};function bu(e,t){if(!e.parent)return;const r=e.parent.children,n=r.indexOf(e);let i=n-1;for(;i>=0&&r[i].type==="ignore";)i-=1;if(i<0&&e.parent.parent&&e.parent.type==="lift"){bu(e.parent,t);return}n>0&&r[n-1].type==="skip"?r[n-1].width+=t:r.splice(n,0,new vf(t))}var PA={ord:{op:3,bin:4,rel:5,inner:3},op:{ord:3,op:3,rel:5,inner:3},bin:{ord:4,op:4,open:4,inner:4},rel:{ord:5,op:5,open:5,inner:5},close:{op:3,bin:4,rel:5,inner:3},punct:{ord:3,op:3,rel:3,open:3,punct:3,inner:3},inner:{ord:3,op:3,bin:4,rel:5,open:3,punct:3,inner:3}},dc={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function yf(e){wu(e,(t,r)=>{r.type==="bin"&&(!t||/^(middle|bin|op|rel|open|punct)$/.test(t.type))&&(r.type="ord"),(t==null?void 0:t.type)==="bin"&&/^(rel|close|punct)$/.test(r.type)&&(t.type="ord"),r.type!=="ignore"&&(t=r)})}function Wu(e,t){if(!e.children)return e;const r=e.children;yf(r);const n=t.getRegisterAsEm("thinmuskip"),i=t.getRegisterAsEm("medmuskip"),s=t.getRegisterAsEm("thickmuskip");return wu(r,(A,M)=>{var $,q,Ae;if(!A)return;const Qe=A.type,ut=M.isTight?($=dc[Qe])!=null?$:null:(q=PA[Qe])!=null?q:null,Ft=(Ae=ut==null?void 0:ut[M.type])!=null?Ae:null;Ft===3&&bu(M,n),Ft===4&&bu(M,i),Ft===5&&bu(M,s)}),e}function wu(e,t,r=void 0){if(!e)return r;e=[...e];for(const n of e)n.type==="lift"?r=wu(n.children,t,r):n.type==="ignore"?wu(n.children,t):(t(r,n),wu(n.children,t),r=n);return r}var sd=class Cp extends zr{constructor(t){super({type:"tooltip",command:t.command,mode:t.mode,style:t.style,body:t.body,displayContainsHighlight:!0}),this.tooltip=new zr({type:"root",mode:t.content,body:t.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(t){return new Cp(E(f({},t),{tooltip:mA(t.tooltip)}))}toJson(){var t;const r=(t=this.tooltip.body)==null?void 0:t.filter(n=>n.type!=="first").map(n=>n.toJson());return E(f({},super.toJson()),{tooltip:r})}render(t){const r=zr.createBox(new la,this.body);if(!r)return null;const n=new la({parent:t,mathstyle:"displaystyle"},{fontSize:Lo}),i=SA(Wu(new fn(this.tooltip.render(n),{classes:"ML__tooltip-content"}),n)),s=new fn([i,r],{classes:"ML__tooltip-container"});return this.caret&&(s.caret=this.caret),this.bind(t,s)}},NA=class Bp extends zr{constructor(t,r){super(E(f({},r),{type:"operator",isFunction:r==null?void 0:r.isFunction})),this.value=t,this.variant=r==null?void 0:r.variant,this.variantStyle=r==null?void 0:r.variantStyle,this.subsupPlacement=r==null?void 0:r.limits}static fromJson(t){return new Bp(t.symbol,t)}toJson(){const t=super.toJson();return this.variant&&(t.variant=this.variant),this.variantStyle&&(t.variantStyle=this.variantStyle),this.subsupPlacement&&(t.limits=this.subsupPlacement),this.value&&(t.symbol=this.value),t}render(t){var r;const n=new fn(this.value,{type:"op",mode:"math",maxFontSize:t.scalingFactor,style:{variant:this.variant,variantStyle:this.variantStyle},isSelected:this.isSelected,letterShapeStyle:t.letterShapeStyle});let i=n;if(this.superscript||this.subscript){const s=(r=this.subsupPlacement)!=null?r:"auto";i=s==="over-under"||s==="auto"&&t.isDisplayStyle?this.attachLimits(t,{base:n}):this.attachSupsub(t,{base:n})}return new fn(this.bind(t,i),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(t)}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=gt(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const n=[this.command];return this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&n.push("\\limits"),this.subsupPlacement==="adjacent"&&n.push("\\nolimits"),this.subsupPlacement==="auto"&&n.push("\\displaylimits")),n.push(this.supsubToLatex(t)),Ca(n)}};function mA(e){if(S(e))return e.map(n=>mA(n));if(typeof e=="string")return zr.fromJson(e);e=f({},e);for(const n of Oc)e[n]&&(e[n]=mA(e[n]));e.args&&(e.args=bf(e.args)),e.array&&(e.array=mA(e.array));const t=e.type;let r;t==="accent"&&(r=cc.fromJson(e)),t==="array"&&(r=Ua.fromJson(e)),t==="box"&&(r=Qs.fromJson(e)),t==="chem"&&(r=id.fromJson(e)),t==="composition"&&(r=zu.fromJson(e)),t==="delim"&&(r=Zd.fromJson(e)),t==="enclose"&&(r=Vu.fromJson(e)),t==="error"&&(r=ya.fromJson(e)),t==="extensible-symbol"&&(r=Cd.fromJson(e)),t==="genfrac"&&(r=nu.fromJson(e)),t==="group"&&(r=Ao.fromJson(e)),t==="latex"&&(r=Ls.fromJson(e)),t==="latexgroup"&&(r=yu.fromJson(e)),t==="leftright"&&(r=ko.fromJson(e)),t==="macro"&&(r=pu.fromJson(e)),t==="macro-argument"&&(r=nd.fromJson(e)),t==="operator"&&(r=NA.fromJson(e)),t==="overlap"&&(r=pA.fromJson(e)),t==="overunder"&&(r=gl.fromJson(e)),t==="placeholder"&&(r=ql.fromJson(e)),t==="prompt"&&(r=DA.fromJson(e)),t==="phantom"&&(r=_c.fromJson(e)),t==="sizeddelim"&&(r=wd.fromJson(e)),t==="spacing"&&(r=Vs.fromJson(e)),t==="subsup"&&(r=mu.fromJson(e)),t==="surd"&&(r=nA.fromJson(e)),t==="text"&&(r=oc.fromJson(e)),t==="tooltip"&&(r=sd.fromJson(e)),r||(console.assert(!t||["first","mbin","mrel","mclose","minner","mop","mopen","mord","mpunct","root","space"].includes(t),`MathLive 0.98.5: an unexpected atom type "${t}" was encountered. Add new atom constructors to \`fromJson()\` in "atom.ts"`),r=zr.fromJson(e));for(const n of Oc)e[n]&&r.setChildren(e[n],n);return e.verbatimLatex!==void 0&&(r.verbatimLatex=e.verbatimLatex),e.subsupPlacement&&(r.subsupPlacement=e.subsupPlacement),e.explicitSubsupPlacement&&(r.explicitSubsupPlacement=!0),e.isFunction&&(r.isFunction=!0),e.isExtensibleSymbol&&(r.isExtensibleSymbol=!0),e.skipBoundary&&(r.skipBoundary=!0),e.captureSelection&&(r.captureSelection=!0),r}function bf(e){if(e&&Array.isArray(e))return e.map(t=>t==="<null>"?null:typeof t=="object"&&"group"in t?{group:t.group.map(r=>mA(r))}:typeof t=="object"&&"atoms"in t?t.atoms.map(r=>mA(r)):t)}var Gu={main:["Main-Regular","ML__cmr"],"main-italic":["Main-Italic","ML__cmr ML__it"],"main-bold":["Main-Bold","ML__cmr ML__bold"],"main-bolditalic":["Main-BoldItalic","ML__cmr ML__bold ML__it"],normal:["Main-Regular","ML__cmr"],"normal-bold":["Main-Bold","ML__mathbf"],"normal-italic":["Math-Italic","ML__mathit"],"normal-bolditalic":["Math-BoldItalic","ML__mathbfit"],ams:["AMS-Regular","ML__ams"],"ams-bold":["AMS-Regular","ML__ams"],"ams-italic":["AMS-Regular","ML__ams"],"ams-bolditalic":["AMS-Regular","ML__ams"],"sans-serif":["SansSerif-Regular","ML__sans"],"sans-serif-bold":["SansSerif-Regular","ML__sans ML__bold"],"sans-serif-italic":["SansSerif-Regular","ML__sans"],"sans-serif-bolditalic":["SansSerif-Regular","ML__sans"],calligraphic:["Caligraphic-Regular","ML__cal"],"calligraphic-bold":["Caligraphic-Regular","ML__cal ML__bold"],"calligraphic-italic":["Caligraphic-Regular","ML__cal ML__it"],"calligraphic-bolditalic":["Caligraphic-Regular","ML__cal ML__bold ML__it"],script:["Script-Regular","ML__script"],"script-bold":["Script-Regular","ML__script ML__bold"],"script-italic":["Script-Regular","ML__script ML__it"],"script-bolditalic":["Script-Regular","ML__script ML__bold ML__it"],fraktur:["Fraktur-Regular","ML__frak"],"fraktur-bold":["Fraktur-Regular","ML__frak"],"fraktur-italic":["Fraktur-Regular","ML__frak"],"fraktur-bolditalic":["Fraktur-Regular","ML__frak"],monospace:["Typewriter-Regular","ML__tt"],"monospace-bold":["Typewriter-Regular","ML__tt ML__bold"],"monospace-italic":["Typewriter-Regular","ML__tt ML__it"],"monospace-bolditalic":["Typewriter-Regular","ML__tt ML__bold ML__it"],"double-struck":["AMS-Regular","ML__bb"],"double-struck-bold":["AMS-Regular","ML__bb"],"double-struck-italic":["AMS-Regular","ML__bb"],"double-struck-bolditalic":["AMS-Regular","ML__bb"]},xu={"double-struck":/^[A-Z ]$/,script:/^[A-Z ]$/,calligraphic:/^[\dA-Z ]$/,fraktur:/^[\dA-Za-z ]$|^[!"#$%&'()*+,\-./:;=?[]^’‘]$/,monospace:/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/,"sans-serif":/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/},Cu=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,Bd=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,Vd=[/^[a-z]$/,/^[A-Z]$/,Cu,Bd],wf={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},Wd=class extends Ns{constructor(){super("math")}createAtom(e,t,r){var n,i,s,A;if(t===null)return new zr({type:"mord",mode:"math",command:e,value:e,style:r});const M=window.MathfieldElement.isFunction((n=t.command)!=null?n:e);if(t.definitionType==="symbol"){const q=new zr({type:(i=t.type)!=null?i:"mord",mode:"math",command:(s=t.command)!=null?s:e,value:String.fromCodePoint(t.codepoint),style:r});return M&&(q.isFunction=!0),e.startsWith("\\")&&(q.verbatimLatex=e),q}const $=new zr({type:"mord",mode:"math",command:(A=t.command)!=null?A:e,value:e,style:r});return M&&($.isFunction=!0),e.startsWith("\\")&&($.verbatimLatex=e),$}serialize(e,t){const r=p(e,E(f({},t),{defaultMode:"math"}));return r.length===0||t.defaultMode!=="text"?r:["$ ",...r," $"]}getFont(e,t){console.assert(t.variant!==void 0);let{variant:r}=t,{variantStyle:n}=t;r==="normal"&&!n&&/[\u00A3\u0131\u0237]/.test(e.value)&&(r="main",n="italic"),r==="normal"&&!n&&e.value.length===1&&Vd.forEach((M,$)=>{var q;M.test(e.value)&&wf[(q=t.letterShapeStyle)!=null?q:"tex"][$]==="it"&&(n="italic")}),n==="up"&&(n=void 0);const i=n?r+"-"+n:r;console.assert(Gu[i]!==void 0);const[s,A]=Gu[i];return xu[r]&&!xu[r].test(e.value)?(e.value=At(e.value,r,n),null):(Cu.test(e.value)&&(e.classes+=" lcGreek"),A&&(e.classes+=" "+A),s)}};function p(e,t){const{parent:r}=e[0],n=u(r);return Cl(e,"variant").map(i=>{const s=u(i[0]);let A="";s&&s!==n&&(A={calligraphic:"\\mathcal",fraktur:"\\mathfrak","double-struck":"\\mathbb",script:"\\mathscr",monospace:"\\mathtt","sans-serif":"\\mathsf",normal:"\\mathrm","normal-italic":"\\mathnormal","normal-bold":"\\mathbf","normal-bolditalic":"\\mathbfit",ams:"","ams-italic":"\\mathit","ams-bold":"\\mathbf","ams-bolditalic":"\\mathbfit",main:"","main-italic":"\\mathit","main-bold":"\\mathbf","main-bolditalic":"\\mathbfit"}[s],console.assert(A!==void 0));const M=Ca(i.map($=>$._serialize(t)));return A?So(A,M):M})}function u(e){if(!e)return"";const{style:t}=e;if(t.variant===void 0)return"";let r=t.variant;return!["calligraphic","fraktur","double-struck","script","monospace","sans-serif"].includes(t.variant)&&t.variantStyle&&t.variantStyle!=="up"&&(r+="-"+t.variantStyle),r}new Wd;function y(e,t){return e.map(r=>r._serialize(t))}function v(e,t){return Cl(e,"fontShape").map(r=>{const n=y(r,t),{fontShape:i}=r[0].style;let s="";return i==="it"&&(s="\\textit"),i==="sl"&&(s="\\textsl"),i==="sc"&&(s="\\textsc"),i==="n"&&(s="\\textup"),!s&&i?`{${So("\\fontshape",i)}${Ca(n)}}`:s?So(s,Ca(n)):Ca(n)})}function ie(e,t){return Cl(e,"fontSeries").map(r=>{const n=v(r,t),{fontSeries:i}=r[0].style;let s="";return i==="b"&&(s="\\textbf"),i==="l"&&(s="\\textlf"),i==="m"&&(s="\\textmd"),i&&!s?`{${So("\\fontseries",i)}${Ca(n)}}`:s?So(s,Ca(n)):Ca(n)})}function Fe(e,t){return Cl(e,"fontSize").map(r=>{var n,i;const s=ie(r,t),A=(i=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(n=r[0].style.fontSize)!=null?n:""])!=null?i:"";return A?`${A} ${Ca(s)}`:Ca(s)})}function tt(e,t,r){return Cl(e,"fontFamily").map(n=>{var i,s;const A=Fe(n,t),M=(s={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(i=n[0].style.fontFamily)!=null?i:""])!=null?s:"";return M?`\\${M}{${Ca(A)}}`:n[0].style.fontFamily?`{\\fontfamily{${n[0].style.fontFamily}} ${Ca(A)}}`:r?`\\text{${Ca(A)}}`:Ca(A)})}var xt={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},Bt=class extends Ns{constructor(){super("text")}createAtom(e,t,r){return t&&t.definitionType==="symbol"?new oc(e,String.fromCodePoint(t.codepoint),r!=null?r:{}):null}serialize(e,t){return tt(e,E(f({},t),{defaultMode:"text"}),t.defaultMode!=="text")}getFont(e,t){var r,n,i,s,A;const{fontFamily:M}=t;if(xt[M]?e.classes+=" "+xt[M]:M&&e.setStyle("font-family",M),t.fontShape&&(e.classes+=" ",e.classes+=(r={it:"ML__it",sl:"ML__shape_sl",sc:"ML__shape_sc",ol:"ML__shape_ol"}[t.fontShape])!=null?r:""),t.fontSeries){const $=t.fontSeries.match(/(.?[lbm])?(.?[cx])?/);$&&(e.classes+=" ",e.classes+=(i={ul:"ML__series_ul",el:"ML__series_el",l:"ML__series_l",sl:"ML__series_sl",m:"",sb:"ML__series_sb",b:"ML__bold",eb:"ML__series_eb",ub:"ML__series_ub"}[(n=$[1])!=null?n:""])!=null?i:"",e.classes+=" ",e.classes+=(A={uc:"ML__series_uc",ec:"ML__series_ec",c:"ML__series_c",sc:"ML__series_sc",n:"",sx:"ML__series_sx",x:"ML__series_x",ex:"ML__series_ex",ux:"ML__series_ux"}[(s=$[2])!=null?s:""])!=null?A:"")}return"Main-Regular"}};new Bt;var nr=class extends Ns{constructor(){super("latex")}createAtom(e){return new Ls(e)}serialize(e,t){return e.filter(r=>r instanceof Ls&&!r.isSuggestion).map(r=>r.value)}getFont(){return null}};new nr;var hr={id:"dvorak",locale:"en",displayName:"Dvorak",virtualLayout:"dvorak",platform:"",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["x","X","\u2248","\u02DB"],KeyC:["j","J","\u2206","\xD4"],KeyD:["e","E","\xB4","\xB4"],KeyE:[".",">","\u2265","\u02D8"],KeyF:["u","U","\xA8","\xA8"],KeyG:["i","I","\u02C6","\u02C6"],KeyH:["d","D","\u2202","\xCE"],KeyI:["c","C","\xE7","\xC7"],KeyJ:["h","H","\u02D9","\xD3"],KeyK:["t","T","\u2020","\u02C7"],KeyL:["n","N","\u02DC","\u02DC"],KeyM:["m","M","\xB5","\xC2"],KeyN:["b","B","\u222B","\u0131"],KeyO:["r","R","\xAE","\u2030"],KeyP:["l","L","\xAC","\xD2"],KeyQ:["'",'"',"\xE6","\xC6"],KeyR:["p","P","\u03C0","\u220F"],KeyS:["o","O","\xF8","\xD8"],KeyT:["y","Y","\xA5","\xC1"],KeyU:["g","G","\xA9","\u02DD"],KeyV:["k","K","\u02DA","\uF8FF"],KeyW:[",","<","\u2264","\xAF"],KeyX:["q","Q","\u0153","\u0152"],KeyY:["f","F","\u0192","\xCF"],KeyZ:[";",":","\u2026","\xDA"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["[","{","\u201C","\u201D"],Equal:["]","}","\u2018","\u2019"],BracketLeft:["/","?","\xF7","\xBF"],BracketRight:["=","+","\u2260","\xB1"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:["s","S","\xDF","\xCD"],Quote:["-","_","\u2013","\u2014"],Backquote:["`","~","`","`"],Comma:["w","W","\u2211","\u201E"],Period:["v","V","\u221A","\u25CA"],Slash:["z","Z","\u03A9","\xB8"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},a={id:"apple.en-intl",displayName:"English (international)",virtualLayout:"qwerty",platform:"apple",locale:"en",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u0131"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\xCE"],KeyE:["e","E","\xB4","\xB4"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\u02DD"],KeyH:["h","H","\u02D9","\xD3"],KeyI:["i","I","\u02C6","\u02C6"],KeyJ:["j","J","\u2206","\xD4"],KeyK:["k","K","\u02DA","\uF8FF"],KeyL:["l","L","\xAC","\xD2"],KeyM:["m","M","\xB5","\xC2"],KeyN:["n","N","\u02DC","\u02DC"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE","\u2030"],KeyS:["s","S","\xDF","\xCD"],KeyT:["t","T","\u2020","\u02C7"],KeyU:["u","U","\xA8","\xA8"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\u02DB"],KeyY:["y","Y","\xA5","\xC1"],KeyZ:["z","Z","\u03A9","\xB8"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["-","_","\u2013","\u2014"],Equal:["=","+","\u2260","\xB1"],BracketLeft:["[","{","\u201C","\u201D"],BracketRight:["]","}","\u2018","\u2019"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:[";",":","\u2026","\xDA"],Quote:["'",'"',"\xE6","\xC6"],Backquote:["`","\u02DC","`","`"],Comma:[",","<","\u2264","\xAF"],Period:[".",">","\u2265","\u02D8"],Slash:["/","?","\xF7","\xBF"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},g={id:"windows.en-intl",displayName:"English (international)",platform:"windows",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","\xE1","\xC1"],KeyB:["b","B","",""],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\xE9","\xC9"],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","\xED","\xCD"],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","\xF8","\xD8"],KeyM:["m","M","\xB5",""],KeyN:["n","N","\xF1","\xD1"],KeyO:["o","O","\xF3","\xD3"],KeyP:["p","P","\xF6","\xD6"],KeyQ:["q","Q","\xE4","\xC4"],KeyR:["r","R","\xAE",""],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\xFE","\xDE"],KeyU:["u","U","\xFA","\xDA"],KeyV:["v","V","",""],KeyW:["w","W","\xE5","\xC5"],KeyX:["x","X","",""],KeyY:["y","Y","\xFC","\xDC"],KeyZ:["z","Z","\xE6","\xC6"],Digit1:["1","!","\xA1","\xB9"],Digit2:["2","@","\xB2",""],Digit3:["3","#","\xB3",""],Digit4:["4","$","\xA4","\xA3"],Digit5:["5","%","\u20AC",""],Digit6:["6","^","\xBC",""],Digit7:["7","&","\xBD",""],Digit8:["8","*","\xBE",""],Digit9:["9","(","\u2018",""],Digit0:["0",")","\u2019",""],Space:[" "," ","",""],Minus:["-","_","\xA5",""],Equal:["=","+","\xD7","\xF7"],BracketLeft:["[","{","\xAB",""],BracketRight:["]","}","\xBB",""],Backslash:["\\","|","\xAC","\xA6"],Semicolon:[";",":","\xB6","\xB0"],Quote:["'",'"',"\xB4","\xA8"],Backquote:["`","~","",""],Comma:[",","<","\xE7","\xC7"],Period:[".",">","",""],Slash:["/","?","\xBF",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["\\","|","",""]}},O={id:"linux.en",displayName:"English",platform:"linux",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","a","A"],KeyB:["b","B","b","B"],KeyC:["c","C","c","C"],KeyD:["d","D","d","D"],KeyE:["e","E","e","E"],KeyF:["f","F","f","F"],KeyG:["g","G","g","G"],KeyH:["h","H","h","H"],KeyI:["i","I","i","I"],KeyJ:["j","J","j","J"],KeyK:["k","K","k","K"],KeyL:["l","L","l","L"],KeyM:["m","M","m","M"],KeyN:["n","N","n","N"],KeyO:["o","O","o","O"],KeyP:["p","P","p","P"],KeyQ:["q","Q","q","Q"],KeyR:["r","R","r","R"],KeyS:["s","S","s","S"],KeyT:["t","T","t","T"],KeyU:["u","U","u","U"],KeyV:["v","V","v","V"],KeyW:["w","W","w","W"],KeyX:["x","X","x","X"],KeyY:["y","Y","y","Y"],KeyZ:["z","Z","z","Z"],Digit1:["1","!","1","!"],Digit2:["2","@","2","@"],Digit3:["3","#","3","#"],Digit4:["4","$","4","$"],Digit5:["5","%","5","%"],Digit6:["6","^","6","^"],Digit7:["7","&","7","&"],Digit8:["8","*","8","*"],Digit9:["9","(","9","("],Digit0:["0",")","0",")"],Space:[" "," "," "," "],Minus:["-","_","-","_"],Equal:["=","+","=","+"],BracketLeft:["[","{","[","{"],BracketRight:["]","}","]","}"],Backslash:["\\","|","\\","|"],Semicolon:[";",":",";",":"],Quote:["'",'"',"'",'"'],Backquote:["`","~","`","~"],Comma:[",","<",",","<"],Period:[".",">",".",">"],Slash:["/","?","/","?"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}},oe={id:"apple.french",locale:"fr",displayName:"French",platform:"apple",virtualLayout:"azerty",score:0,mapping:{KeyA:["q","Q","\u2021","\u03A9"],KeyB:["b","B","\xDF","\u222B"],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\xEA","\xCA"],KeyF:["f","F","\u0192","\xB7"],KeyG:["g","G","\uFB01","\uFB02"],KeyH:["h","H","\xCC","\xCE"],KeyI:["i","I","\xEE","\xEF"],KeyJ:["j","J","\xCF","\xCD"],KeyK:["k","K","\xC8","\xCB"],KeyL:["l","L","\xAC","|"],KeyM:[",","?","\u221E","\xBF"],KeyN:["n","N","~","\u0131"],KeyO:["o","O","\u0153","\u0152"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xAE","\u201A"],KeyS:["s","S","\xD2","\u2211"],KeyT:["t","T","\u2020","\u2122"],KeyU:["u","U","\xBA","\xAA"],KeyV:["v","V","\u25CA","\u221A"],KeyW:["z","Z","\xC2","\xC5"],KeyX:["x","X","\u2248","\u2044"],KeyY:["y","Y","\xDA","\u0178"],KeyZ:["w","W","\u2039","\u203A"],Digit1:["&","1","\uF8FF","\xB4"],Digit2:["\xE9","2","\xEB","\u201E"],Digit3:['"',"3","\u201C","\u201D"],Digit4:["'","4","\u2018","\u2019"],Digit5:["(","5","{","["],Digit6:["\xA7","6","\xB6","\xE5"],Digit7:["\xE8","7","\xAB","\xBB"],Digit8:["!","8","\xA1","\xDB"],Digit9:["\xE7","9","\xC7","\xC1"],Digit0:["\xE0","0","\xF8","\xD8"],Space:[" "," "," "," "],Minus:[")","\xB0","}","]"],Equal:["-","_","\u2014","\u2013"],BracketLeft:["^","\xA8","\xF4","\xD4"],BracketRight:["$","*","\u20AC","\xA5"],Backslash:["`","\xA3","@","#"],Semicolon:["m","M","\xB5","\xD3"],Quote:["\xF9","%","\xD9","\u2030"],Backquote:["<",">","\u2264","\u2265"],Comma:[";",".","\u2026","\u2022"],Period:[":","/","\xF7","\\"],Slash:["=","+","\u2260","\xB1"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",".",",","."],IntlBackslash:["@","#","\u2022","\u0178"],NumpadEqual:["=","=","=","="]}},Ie={id:"windows.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"windows",score:0,mapping:{KeyA:["q","Q","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:[",","?","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["a","A","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["z","Z","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["w","W","",""],Digit1:["&","1","",""],Digit2:["\xE9","2","~",""],Digit3:['"',"3","#",""],Digit4:["'","4","{",""],Digit5:["(","5","[",""],Digit6:["-","6","|",""],Digit7:["\xE8","7","`",""],Digit8:["_","8","\\",""],Digit9:["\xE7","9","^",""],Digit0:["\xE0","0","@",""],Space:[" "," ","",""],Minus:[")","\xB0","]",""],Equal:["=","+","}",""],BracketLeft:["^","\xA8","",""],BracketRight:["$","\xA3","\xA4",""],Backslash:["*","\xB5","",""],Semicolon:["m","M","",""],Quote:["\xF9","%","",""],Backquote:["\xB2","","",""],Comma:[";",".","",""],Period:[":","/","",""],Slash:["!","\xA7","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},Ve={id:"linux.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"linux",score:0,mapping:{KeyA:["q","Q","@","\u03A9"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:[",","?","\u0301","\u030B"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["z","Z","\xAB","<"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["w","W","\u0142","\u0141"],Digit1:["&","1","\xB9","\xA1"],Digit2:["\xE9","2","~","\u215B"],Digit3:['"',"3","#","\xA3"],Digit4:["'","4","{","$"],Digit5:["(","5","[","\u215C"],Digit6:["-","6","|","\u215D"],Digit7:["\xE8","7","`","\u215E"],Digit8:["_","8","\\","\u2122"],Digit9:["\xE7","9","^","\xB1"],Digit0:["\xE0","0","@","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:[")","\xB0","]","\xBF"],Equal:["=","+","}","\u0328"],BracketLeft:["\u0302","\u0308","\u0308","\u030A"],BracketRight:["$","\xA3","\xA4","\u0304"],Backslash:["*","\xB5","\u0300","\u0306"],Semicolon:["m","M","\xB5","\xBA"],Quote:["\xF9","%","\u0302","\u030C"],Backquote:["\xB2","~","\xAC","\xAC"],Comma:[";",".","\u2500","\xD7"],Period:[":","/","\xB7","\xF7"],Slash:["!","\xA7","\u0323","\u0307"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"]}},ze={id:"apple.german",locale:"de",displayName:"German",virtualLayout:"qwertz",platform:"apple",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u2039"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\u2122"],KeyE:["e","E","\u20AC","\u2030"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\xCC"],KeyH:["h","H","\xAA","\xD3"],KeyI:["i","I","\u2044","\xDB"],KeyJ:["j","J","\xBA","\u0131"],KeyK:["k","K","\u2206","\u02C6"],KeyL:["l","L","@","\uFB02"],KeyM:["m","M","\xB5","\u02D8"],KeyN:["n","N","~","\u203A"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\xAB","\xBB"],KeyR:["r","R","\xAE","\xB8"],KeyS:["s","S","\u201A","\xCD"],KeyT:["t","T","\u2020","\u02DD"],KeyU:["u","U","\xA8","\xC1"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\xD9"],KeyY:["z","Z","\u03A9","\u02C7"],KeyZ:["y","Y","\xA5","\u2021"],Digit1:["1","!","\xA1","\xAC"],Digit2:["2",'"',"\u201C","\u201D"],Digit3:["3","\xA7","\xB6","#"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","[","\uFB01"],Digit6:["6","&","]","^"],Digit7:["7","/","|","\\"],Digit8:["8","(","{","\u02DC"],Digit9:["9",")","}","\xB7"],Digit0:["0","=","\u2260","\xAF"],Space:[" "," "," "," "],Minus:["\xDF","?","\xBF","\u02D9"],Equal:["\xB4","`","'","\u02DA"],BracketLeft:["\xFC","\xDC","\u2022","\xB0"],BracketRight:["+","*","\xB1","\uF8FF"],Backslash:["#","'","\u2018","\u2019"],Semicolon:["\xF6","\xD6","\u0153","\u0152"],Quote:["\xE4","\xC4","\xE6","\xC6"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u221E","\u02DB"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",",",".","."],IntlBackslash:["^","\xB0","\u201E","\u201C"],NumpadEqual:["=","=","=","="]}},Je={id:"windows.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","\xB5",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","@",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["z","Z","",""],KeyZ:["y","Y","",""],Digit1:["1","!","",""],Digit2:["2",'"',"\xB2",""],Digit3:["3","\xA7","\xB3",""],Digit4:["4","$","",""],Digit5:["5","%","",""],Digit6:["6","&","",""],Digit7:["7","/","{",""],Digit8:["8","(","[",""],Digit9:["9",")","]",""],Digit0:["0","=","}",""],Space:[" "," ","",""],Minus:["\xDF","?","\\","\u1E9E"],Equal:["\xB4","`","",""],BracketLeft:["\xFC","\xDC","",""],BracketRight:["+","*","~",""],Backslash:["#","'","",""],Semicolon:["\xF6","\xD6","",""],Quote:["\xE4","\xC4","",""],Backquote:["^","\xB0","",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","|",""]}},st={id:"linux.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201C","\u2018"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0323","\u0307"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","\u201D","\u2019"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\u017F","\u1E9E"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201E","\u201A"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xAB","\u2039"],KeyY:["z","Z","\u2190","\xA5"],KeyZ:["y","Y","\xBB","\u203A"],Digit1:["1","!","\xB9","\xA1"],Digit2:["2",'"',"\xB2","\u215B"],Digit3:["3","\xA7","\xB3","\xA3"],Digit4:["4","$","\xBC","\xA4"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["\xDF","?","\\","\xBF"],Equal:["\u0301","\u0300","\u0327","\u0328"],BracketLeft:["\xFC","\xDC","\u0308","\u030A"],BracketRight:["+","*","~","\xAF"],Backslash:["#","'","\u2019","\u0306"],Semicolon:["\xF6","\xD6","\u030B","\u0323"],Quote:["\xE4","\xC4","\u0302","\u030C"],Backquote:["\u0302","\xB0","\u2032","\u2033"],Comma:[",",";","\xB7","\xD7"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],PrintScreen:["","","",""],PageUp:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",",","",","],IntlBackslash:["<",">","|","\u0331"],AltRight:["\r","\r","\r","\r"],MetaRight:[".",".",".","."]}},mt={id:"apple.spanish",locale:"es",displayName:"Spanish ISO",platform:"apple",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\xDF",""],KeyC:["c","C","\xA9"," "],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0192","\uFB01"],KeyG:["g","G","\uF8FF","\uFB02"],KeyH:["h","H","\u2122"," "],KeyI:["i","I"," "," "],KeyJ:["j","J","\xB6","\xAF"],KeyK:["k","K","\xA7","\u02C7"],KeyL:["l","L"," ","\u02D8"],KeyM:["m","M","\xB5","\u02DA"],KeyN:["n","N"," ","\u02D9"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE"," "],KeyS:["s","S","\u222B"," "],KeyT:["t","T","\u2020","\u2021"],KeyU:["u","U"," "," "],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\xE6","\xC6"],KeyX:["x","X","\u2211","\u203A"],KeyY:["y","Y","\xA5"," "],KeyZ:["z","Z","\u03A9","\u2039"],Digit1:["1","!","|","\u0131"],Digit2:["2",'"',"@","\u02DD"],Digit3:["3","\xB7","#","\u2022"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","\u221E","\u2030"],Digit6:["6","&","\xAC"," "],Digit7:["7","/","\xF7","\u2044"],Digit8:["8","(","\u201C","\u2018"],Digit9:["9",")","\u201D","\u2019"],Digit0:["0","=","\u2260","\u2248"],Space:[" "," "," "," "],Minus:["'","?","\xB4","\xB8"],Equal:["\xA1","\xBF","\u201A","\u02DB"],BracketLeft:["`","^","[","\u02C6"],BracketRight:["+","*","]","\xB1"],Backslash:["\xE7","\xC7","}","\xBB"],Semicolon:["\xF1","\xD1","~","\u02DC"],Quote:["\xB4","\xA8","{","\xAB"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u201E",""],Period:[".",":","\u2026","\u2026"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[",",",",",",","],IntlBackslash:["\xBA","\xAA","\\","\xB0"]}},Ot={id:"windows.spanish",locale:"es",displayName:"Spanish",platform:"windows",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["z","Z","",""],Digit1:["1","!","|",""],Digit2:["2",'"',"@",""],Digit3:["3","\xB7","#",""],Digit4:["4","$","~",""],Digit5:["5","%","\u20AC",""],Digit6:["6","&","\xAC",""],Digit7:["7","/","",""],Digit8:["8","(","",""],Digit9:["9",")","",""],Digit0:["0","=","",""],Space:[" "," ","",""],Minus:["'","?","",""],Equal:["\xA1","\xBF","",""],BracketLeft:["`","^","[",""],BracketRight:["+","*","]",""],Backslash:["\xE7","\xC7","}",""],Semicolon:["\xF1","\xD1","",""],Quote:["\xB4","\xA8","{",""],Backquote:["\xBA","\xAA","\\",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},jt={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 cr(e){const t=e.split("+"),r={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:t.pop()};return t.includes("shift")&&(r.shift=!0),t.includes("alt")&&(r.alt=!0),t.includes("ctrl")&&(r.ctrl=!0),t.includes("cmd")&&(r.cmd=!0),t.includes("win")&&(r.win=!0),t.includes("meta")&&(r.meta=!0),r}function Wt(e){let t="";return e.shift&&(t+="shift+"),e.alt&&(t+="alt+"),e.ctrl&&(t+="ctrl+"),e.cmd&&(t+="cmd+"),e.win&&(t+="win+"),e.meta&&(t+="meta+"),t+e.key}var Nr={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]"},Or=[],Gt;function tr(){switch(Y()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function Rr(e){(!e.platform||e.platform===tr())&&Or.push(e)}function ln(e,t){var r;const n={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:""};if(!e)return n;for(const[i,s]of Object.entries(t.mapping)){if(s[0]===e)return n.key=`[${i}]`,n;if(s[1]===e)return n.shift=!0,n.key=`[${i}]`,n;if(s[2]===e)return n.alt=!0,n.key=`[${i}]`,n;if(s[3]===e)return n.shift=!0,n.alt=!0,n.key=`[${i}]`,n}return n.key=(r=Nr[e])!=null?r:"",n}function un(e){if(e.code)return e;const t=Object.entries(zi().mapping);let r=!1,n=!1,i="";for(let s=0;s<4;s++){for(const[A,M]of t)if(M[s]===e.key){i=A,s===3?(r=!0,n=!0):s===2?r=!0:s===1&&(n=!0);break}if(i)break}return new KeyboardEvent(e.type,E(f({},e),{altKey:r,shiftKey:n,code:i}))}function li(e){var t,r;if(!e||e.key==="Unidentified"||e.key==="Dead")return;const n=e.shiftKey&&e.altKey?3:e.altKey?2:e.shiftKey?1:0;for(const i of Or)((t=i.mapping[e.code])==null?void 0:t[n])===e.key?i.score+=1:(r=i.mapping[e.code])!=null&&r[n]&&(i.score=0);Or.sort((i,s)=>s.score-i.score)}function Wn(e){Gt=Or.find(t=>e.startsWith(t.locale))}function zi(){return Gt!=null?Gt:Or[0]}function ti(){switch(tr()){case"apple":return a;case"windows":return g;case"linux":return O}return a}switch(tr()){case"apple":Rr(a),Rr(oe),Rr(mt),Rr(ze);break;case"windows":Rr(g),Rr(Ie),Rr(Ot),Rr(Je);break;case"linux":Rr(O),Rr(Ve),Rr(jt),Rr(st);break}Rr(hr);function Ka(e){var t;const r=/macos|ios/.test(Y()),n=e.split("+");let i="";for(const s of n)i&&(i+=r?"\u2009":'<span class="ML__shortcut-join">+</span>'),s.startsWith("[Key")?i+=s.slice(4,5):s.startsWith("Key")?i+=s.slice(3,4):s.startsWith("[Digit")?i+=s.slice(6,7):s.startsWith("Digit")?i+=s.slice(5,6):i+=(t={cmd:"\u2318",meta:r?"\u2318":"Ctrl",shift:r?"\u21E7":"Shift",alt:r?"\u2325":"Alt",ctrl:r?"\u2303":"Ctrl","\n":r?"\u23CE":"Return","[return]":r?"\u23CE":"Return","[enter]":r?"\u2324":"Enter","[tab]":r?"\u21E5":"Tab","[escape]":"Esc","[backspace]":r?"\u232B":"Backspace","[delete]":r?"\u2326":"Del","[pageup]":r?"\u21DE":"Page Up","[pagedown]":r?"\u21DF":"Page Down","[home]":r?"\u2912":"Home","[end]":r?"\u2913":"End","[space]":"Space","[equal]":"=","[minus]":"-","[comma]":",","[slash]":"/","[backslash]":"\\","[bracketleft]":"[","[bracketright]":"]",semicolon:";",period:".",comma:",",minus:"-",equal:"=",quote:"'",backslash:"\\",intlbackslash:"\\",backquote:"`",slash:"/",numpadmultiply:"* 🔢",numpaddivide:"/ 🔢",numpadsubtract:"- 🔢",numpadadd:"+ 🔢",numpaddecimal:". 🔢",numpadcomma:", 🔢",help:"help",left:"\u21E0",up:"\u21E1",right:"\u21E2",down:"\u21E3","[arrowleft]":"\u21E0","[arrowup]":"\u21E1","[arrowright]":"\u21E2","[arrowdown]":"\u21E3"}[s.toLowerCase()])!=null?t:s.toUpperCase();return i}function qa(e){if(e instanceof MouseEvent||e instanceof PointerEvent)return{x:e.clientX,y:e.clientY};if(e instanceof TouchEvent){const t=[...e.touches].reduce((n,i)=>({x:n.x+i.clientX,y:n.y+i.clientY}),{x:0,y:0}),r=e.touches.length;return{x:t.x/r,y:t.y/r}}}function Sa(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 Ia(e,t){return!e&&t||e&&!t?!1:!e||!t?!0:e.alt===t.alt&&e.control===t.control&&e.shift===t.shift&&e.meta===t.meta}var xo=new Set(["Backquote","Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Minus","Equal","IntlYen","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Backslash","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","IntlBackslash","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","IntlRo","Space","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9","NumpadAdd","NumpadComma","NumpadDecimal","NumpadDivide","NumpadEqual","NumpadHash","NumpadMultiply","NumpadParenLeft","NumpadParenRight","NumpadStar","NumpadSubstract"]);function Wa(e){return e.ctrlKey||e.metaKey||["Dead","Process"].includes(e.key)?!1:e.code===""?!0:xo.has(e.code)}function ca(){var e;let t=document.activeElement;for(;(e=t==null?void 0:t.shadowRoot)!=null&&e.activeElement;)t=t.shadowRoot.activeElement;return t}var Co=class qu{static get scrim(){return qu._scrim||(qu._scrim=new qu),qu._scrim}static open(t){qu.scrim.open(t)}static close(){qu.scrim.close()}static get state(){return qu.scrim.state}static get element(){return qu.scrim.element}constructor(t){var r,n;this.lightDismiss=(r=t==null?void 0:t.lightDismiss)!=null?r:!0,this.translucent=(n=t==null?void 0:t.translucent)!=null?n:!1,this.state="closed"}get element(){if(this._element)return this._element;const t=document.createElement("div");return t.setAttribute("role","presentation"),t.style.position="fixed",t.style.contain="content",t.style.top="0",t.style.left="0",t.style.right="0",t.style.bottom="0",t.style.zIndex="var(--scrim-zindex, 10099)",t.style.outline="none",this.translucent?(t.style.background="rgba(255, 255, 255, .2)",t.style.backdropFilter="contrast(40%)"):t.style.background="transparent",this._element=t,t}open(t){var r;if(this.state!=="closed")return;this.state="opening",this.onDismiss=t==null?void 0:t.onDismiss,this.savedActiveElement=ca();const{element:n}=this;((r=t==null?void 0:t.root)!=null?r:document.body).appendChild(n),n.addEventListener("click",this),document.addEventListener("touchmove",this,!1),document.addEventListener("scroll",this,!1);const i=window.innerWidth-document.documentElement.clientWidth;this.savedMarginRight=document.body.style.marginRight,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden";const s=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${s+i}px`,t!=null&&t.child&&n.append(t.child),this.state="open"}close(){var t,r,n,i;if(this.state!=="open"){console.assert(this.element.parentElement!==null);return}this.state="closing",typeof this.onDismiss=="function"&&this.onDismiss(),this.onDismiss=void 0;const{element:s}=this;s.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),s.remove(),document.body.style.overflow=(t=this.savedOverflow)!=null?t:"",document.body.style.marginRight=(r=this.savedMarginRight)!=null?r:"",ca()!==this.savedActiveElement&&((i=(n=this.savedActiveElement)==null?void 0:n.focus)==null||i.call(n)),s.innerHTML="",this.state="closed"}handleEvent(t){this.lightDismiss&&(t.target===this._element&&t.type==="click"?(this.close(),t.preventDefault(),t.stopPropagation()):t.target===document&&(t.type==="touchmove"||t.type==="scroll")&&(this.close(),t.preventDefault(),t.stopPropagation()))}};function Fc(e,t,r){let n=null,i=null,s=!1,A=!1,M=!1;const $=new AbortController,q=$.signal;return e.addEventListener("keydown",Ae=>{if(s||Ae.key==="Process"||Ae.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(Ae.code)){n=null;return}n=Ae,i=null,r.onKeystroke(Ae)?e.textContent="":n=null},{capture:!0,signal:q}),e.addEventListener("keypress",Ae=>{s||(n&&i&&r.onKeystroke(n),i=Ae)},{capture:!0,signal:q}),e.addEventListener("compositionstart",Ae=>{e.textContent="",s=!0,r.onCompositionStart(Ae.data)},{capture:!0,signal:q}),e.addEventListener("compositionupdate",Ae=>{s&&r.onCompositionUpdate(Ae.data)},{capture:!0,signal:q}),e.addEventListener("compositionend",Ae=>{e.textContent="",s&&(s=!1,r.onCompositionEnd(Ae.data))},{capture:!0,signal:q}),e.addEventListener("beforeinput",Ae=>Ae.stopImmediatePropagation(),{signal:q}),e.addEventListener("input",Ae=>{var Qe;if(!s&&(e.textContent="",Ae.inputType!=="insertCompositionText")){if(Ae.inputType==="insertFromPaste"){Ae.preventDefault(),Ae.stopPropagation();return}r.onInput((Qe=Ae.data)!=null?Qe:""),Ae.preventDefault(),Ae.stopPropagation()}},{signal:q}),e.addEventListener("paste",Ae=>{e.focus({preventScroll:!0}),e.textContent="",r.onPaste(Ae)||Ae.preventDefault(),Ae.stopImmediatePropagation()},{signal:q}),e.addEventListener("cut",Ae=>r.onCut(Ae),{capture:!0,signal:q}),e.addEventListener("copy",Ae=>r.onCopy(Ae),{capture:!0,signal:q}),e.addEventListener("blur",Ae=>{var Qe,ut;if(((ut=(Qe=Ae.relatedTarget)==null?void 0:Qe._mathfield)==null?void 0:ut.element)===t){e.focus({preventScroll:!0}),Ae.preventDefault(),Ae.stopPropagation();return}const Ft=Co.state;if(Ft==="open"||Ft==="opening"){Ae.preventDefault(),Ae.stopPropagation();return}if(Ae.relatedTarget===Ae.target.getRootNode().host){Ae.preventDefault(),Ae.stopPropagation();return}M||A||(M=!0,n=null,i=null,r.onBlur(),M=!1)},{capture:!0,signal:q}),e.addEventListener("focus",Ae=>{M||A||(A=!0,r.onFocus(),A=!1)},{capture:!0,signal:q}),{dispose:()=>$.abort(),cancelComposition:()=>{s&&(e.blur(),requestAnimationFrame(()=>e.focus({preventScroll:!0})))},blur:()=>{typeof e.blur=="function"&&e.blur()},focus:()=>{!A&&typeof e.focus=="function"&&e.focus({preventScroll:!0})},hasFocus:()=>ca()===e,setAriaLabel:Ae=>e.setAttribute("aria-label",Ae),setValue:Ae=>{var Qe;e.textContent=Ae,e.style.left="-1000px",(Qe=window.getSelection())==null||Qe.selectAllChildren(e)},moveTo:(Ae,Qe)=>{e.style.top=`${Qe}px`,e.style.left=`${Ae}px`}}}function ws(e){var t;if(!e||!Wa(e))return"";let r;return e.key==="Unidentified"&&e.target&&(r=e.target.value),r=(t=r!=null?r:e.key)!=null?t:e.code,/^(Dead|Return|Enter|Tab|Escape|Delete|PageUp|PageDown|Home|End|Help|ArrowLeft|ArrowRight|ArrowUp|ArrowDown)$/.test(r)&&(r=""),r}function fc(e){e=un(e);const t=[];return e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),e.altKey&&t.push("alt"),e.shiftKey&&t.push("shift"),t.length===0?`[${e.code}]`:(t.push(`[${e.code}]`),t.join("+"))}function Yo(e){if(N()){const t=Y(),r=e.startsWith("!"),n=e.endsWith(t);if(r&&!n||!r&&n)return!0}return e==="!other"?!1:e==="other"}function Hc(e,t,r){if(e.length===0)return"";const n=Wt(cr(fc(r))),i=Wt({key:r.key,shift:r.shiftKey,alt:r.altKey,ctrl:r.ctrlKey,meta:r.metaKey||r.ctrlKey&&/macos|ios/.test(Y()),cmd:!1,win:!1});for(let s=e.length-1;s>=0;s--)if((e[s].key===n||e[s].key===i)&&(!e[s].ifMode||e[s].ifMode===t))return e[s].command;return""}function Ic(e){let t=e;return S(t)&&(t=t.length>0?t[0]+"("+t.slice(1).join("")+")":""),t}function Sl(e,t){let r=[];if(typeof t=="string"){const s=Ts[t];S(s)?r=s.slice():s&&r.push(s)}const n=Ic(t),i=new RegExp("^"+n.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const s of e)i.test(Ic(s.command))&&r.push(s.key);return r.map(Ka)}function Rl(e,t){if(e.ifPlatform&&!/^!?(macos|windows|android|ios|chromeos|other)$/.test(e.ifPlatform))throw new Error(`Unexpected platform "${e.ifPlatform}" for keybinding ${e.key}`);if(e.ifLayout!==void 0&&(t.score===0||!e.ifLayout.includes(t.id)))return;const r=cr(e.key);let n=e.ifPlatform;if(r.cmd){if(n&&n!=="macos"&&n!=="ios")throw new Error('Unexpected "cmd" modifier with platform "'+n+`"
|
|
|
"cmd" modifier can only be used with macOS or iOS platform.`);n||(n=Y()==="ios"?"ios":"macos"),r.win=!1,r.cmd=!1,r.meta=!0}if(r.win){if(n&&n!=="windows")throw new Error('Unexpected "win" modifier with platform "'+n+`"
|
|
|
"win" modifier can only be used with Windows platform.`);n="windows",r.win=!1,r.cmd=!1,r.meta=!0}if(n&&!Yo(n))return;if(/^\[.+\]$/.test(r.key))return E(f({},e),{key:Wt(r)});const i=ln(r.key,t);if(!i)return E(f({},e),{key:Wt(r)});if(i.shift&&r.shift||i.alt&&r.alt)throw new Error(`The keybinding ${e.key} (${Ql(e.command)}) is conflicting with the key combination ${Wt(i)} using the ${t.displayName} keyboard layout`);return i.shift=i.shift||r.shift,i.alt=i.alt||r.alt,i.meta=r.meta,i.ctrl=r.ctrl,E(f({},e),{key:Wt(i)})}function Ql(e){if(Array.isArray(e)){const t=[...e];return t.shift()+"("+t.map(r=>typeof r=="string"?`"${r}"`:r.toString()).join(", ")+")"}return e}function iA(e,t){const r=[],n=[];for(const i of e)try{const s=Rl(i,t);if(!s)continue;const A=n.find(M=>M.key===s.key&&M.ifMode===s.ifMode);if(A)throw new Error(`Ambiguous key binding ${i.key} (${Ql(i.command)}) matches ${A.key} (${Ql(A.command)}) with the ${t.displayName} keyboard layout`);n.push(s)}catch(s){s instanceof Error&&r.push(s.message)}return[n,r]}var OA=class extends aa{constructor(){super("latex")}createAtom(e){return new Ls(e)}onPaste(e,t){if(!t)return!1;const r=typeof t=="string"?t:t.getData("application/x-latex")||t.getData("text/plain");return r&&e.model.contentWillChange({inputType:"insertFromPaste",data:r})?(e.stopCoalescingUndo(),e.stopRecording(),this.insert(e.model,r)&&(e.startRecording(),e.snapshot("paste"),e.model.contentDidChange({inputType:"insertFromPaste"}),xs(e)),e.startRecording(),!0):!1}insert(e,t,r){if(!e.contentWillChange({data:t,inputType:"insertText"}))return!1;r||(r={}),r.insertionMode||(r.insertionMode="replaceSelection"),r.selectionMode||(r.selectionMode="placeholder");const{silenceNotifications:n}=e;r.silenceNotifications&&(e.silenceNotifications=!0);const i=e.silenceNotifications;e.silenceNotifications=!0,r.insertionMode==="replaceSelection"&&!e.selectionIsCollapsed?e.deleteAtoms(Is(e.selection)):r.insertionMode==="replaceAll"?(e.root.setChildren([],"body"),e.position=0):r.insertionMode==="insertBefore"?e.collapseSelection("backward"):r.insertionMode==="insertAfter"&&e.collapseSelection("forward");const s=[];for(const $ of t)P.test($)&&s.push(new Ls($));let A=e.at(e.position);if(A instanceof yu&&(A=A.lastChild),!(A.parent instanceof yu)){const $=new yu("");A.parent.addChildAfter($,A),A=$.firstChild}const M=A.parent.addChildrenAfter(s,A);return e.silenceNotifications=i,r.selectionMode==="before"||(r.selectionMode==="item"?e.setSelection(e.anchor,e.offsetOf(M)):M&&(e.position=e.offsetOf(M))),e.contentDidChange({data:t,inputType:"insertText"}),e.silenceNotifications=n,!0}};function El(e){return e.atoms.find(t=>t.type==="latexgroup")}function jc(e){var t,r;const n=e.atoms.find(i=>i.type==="latexgroup");return n?(r=(t=n.body)==null?void 0:t.filter(i=>i.type==="latex"))!=null?r:[]:[]}function Bu(e,t){var r;let n=0,i=!1;const s=Number.isFinite(t==null?void 0:t.before)?(r=t==null?void 0:t.before)!=null?r:0:e.lastOffset;for(;n<=s&&!i;){const $=e.at(n);i=$ instanceof Ls&&$.isSuggestion,i||n++}if(!i)return[void 0,void 0];let A=n,M=!1;for(;A<=s&&!M;){const $=e.at(A);M=!($ instanceof Ls&&$.isSuggestion),M||A++}return[n-1,A-1]}new OA;function iu(e){const t=jc(e.model).filter(r=>r.isSuggestion);if(t.length!==0){e.model.position=e.model.offsetOf(t[0].leftSibling);for(const r of t)r.parent.removeChild(r)}}function aA(e,t){var r;const{model:n}=e;iu(e);for(const Ae of jc(n))Ae.isError=!1;if(!n.selectionIsCollapsed||e.options.popoverPolicy==="off"){gA(e);return}const i=[];let s=n.at(n.position);for(;s&&s instanceof Ls&&/^[a-zA-Z\*]$/.test(s.value);)s=s.leftSibling;if(s&&s instanceof Ls&&s.value==="\\")for(i.push(s),s=s.rightSibling;s&&s instanceof Ls&&/^[a-zA-Z\*]$/.test(s.value);)i.push(s),s=s.rightSibling;const A=i.map(Ae=>Ae.value).join(""),M=ne(e,A);if(M.length===0){if(/^\\[a-zA-Z\*]+$/.test(A))for(const Ae of i)Ae.isError=!0;gA(e);return}const $=(r=t==null?void 0:t.atIndex)!=null?r:0;e.suggestionIndex=$<0?M.length-1:$%M.length;const q=M[e.suggestionIndex];if(q!==A){const Ae=i[i.length-1];Ae.parent.addChildrenAfter([...q.slice(A.length-q.length)].map(Qe=>new Ls(Qe,{isSuggestion:!0})),Ae),TA(e,{interactive:!0})}Ed(e,M)}function Ks(e){const[t,r]=Bu(e,{before:e.position});if(t===void 0||r===void 0)return!1;let n=!1;return e.getAtoms([t,r]).forEach(i=>{i.isSuggestion&&(i.isSuggestion=!1,n=!0)}),n}function Su(e,t="accept",r){var n,i;gA(e);const s=El(e.model);if(!s)return!1;if(t==="accept-suggestion"||t==="accept-all"){const q=jc(e.model).filter(Ae=>Ae.isSuggestion);if(q.length!==0){for(const Ae of q)Ae.isSuggestion=!1;e.model.position=e.model.offsetOf(q[q.length-1])}if(t==="accept-suggestion")return q.length!==0}const M=jc(e.model).filter(q=>!q.isSuggestion).map(q=>q.value).join(""),$=s.leftSibling;return s.parent.removeChild(s),e.model.position=e.model.offsetOf($),e.switchMode((n=r==null?void 0:r.mode)!=null?n:"math"),t==="reject"||(aa.insert(e.model,M,{selectionMode:(i=r==null?void 0:r.selectItem)!=null&&i?"item":"placeholder",format:"latex",mode:"math"}),e.snapshot(),e.model.announce("replacement"),e.switchMode("math")),!0}function Sd(e){var t;let r=document.getElementById(e);return r?r.dataset.refcount=Number(Number.parseInt((t=r.dataset.refcount)!=null?t:"0")+1).toString():(r=document.createElement("div"),r.setAttribute("aria-hidden","true"),r.dataset.refcount="1",r.id=e,document.body.append(r)),r}function Gd(e){var t;const r=document.getElementById(e);if(!r)return;const n=Number.parseInt((t=r.getAttribute("data-refcount"))!=null?t:"0");n<=1?r.remove():r.dataset.refcount=Number(n-1).toString()}function Xd(e,t){const r=new la({from:e.context}),n=new zr({mode:"math",type:"root",body:Al(t,{context:r})}),i=SA(Wu(new fn(n.render(r),{classes:"ML__base"}),r));return AA(i,{classes:"ML__latex"}).toMarkup()}function Ed(e,t){var r;if(t.length===0){gA(e);return}let n="";for(const[s,A]of t.entries()){const M=A,$=Xd(e,A),q=Sl(e.keybindings,M).join("<br>");n+=`<li role="button" data-command="${M}" ${s===e.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${M}</span><span class="ML__popover__command">${$}</span>`,q&&(n+=`<span class="ML__popover__keybinding">${q}</span>`),n+="</li>"}const i=cd(e,`<ul>${n}</ul>`);ld()&&((r=i.querySelector(".ML__popover__current"))==null||r.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var s;i&&!ld()&&(i.classList.add("is-visible"),Mc(e),(s=i.querySelector(".ML__popover__current"))==null||s.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function ld(){const e=document.getElementById("mathlive-suggestion-popover");return e?e.classList.contains("is-visible"):!1}function Mc(e,t){var r;if(!e.element||e.element.mathfield!==e||!ld())return;if(((r=e.model.at(e.model.position))==null?void 0:r.type)!=="latex"){gA(e);return}if(t!=null&&t.deferred){setTimeout(()=>Mc(e),32);return}const n=Bl(e.field);if(!n)return;const i=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,s=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,A=window.innerWidth-document.documentElement.clientWidth,M=window.innerHeight-document.documentElement.clientHeight,$=window.mathVirtualKeyboard.boundingRect.height,q=document.getElementById("mathlive-suggestion-popover");n.x+q.offsetWidth/2>s-A?q.style.left=`${s-q.offsetWidth-A}px`:n.x-q.offsetWidth/2<0?q.style.left="0":q.style.left=`${n.x-q.offsetWidth/2}px`;const Ae=n.y-n.height;i-M-$-n.y<Ae?(q.classList.add("ML__popover--reverse-direction"),q.classList.remove("top-tip"),q.classList.add("bottom-tip"),q.style.top=`${n.y-n.height-q.offsetHeight-15}px`):(q.classList.remove("ML__popover--reverse-direction"),q.classList.add("top-tip"),q.classList.remove("bottom-tip"),q.style.top=`${n.y+15}px`)}function gA(e){e.suggestionIndex=0;const t=document.getElementById("mathlive-suggestion-popover");t&&(t.classList.remove("is-visible"),t.innerHTML="")}function cd(e,t){let r=document.getElementById("mathlive-suggestion-popover");return r||(r=Sd("mathlive-suggestion-popover"),lc("suggestion-popover"),lc("core"),r.addEventListener("pointerdown",n=>n.preventDefault()),r.addEventListener("click",n=>{let i=n.target;for(;i&&!i.dataset.command;)i=i.parentElement;i&&(Su(e,"reject"),aa.insert(e.model,i.dataset.command,{selectionMode:"placeholder",format:"latex",mode:"math"}),e.dirty=!0,e.focus())})),r.innerHTML=window.MathfieldElement.createHTML(t),r}function Hf(){document.getElementById("mathlive-suggestion-popover")&&(Gd("mathlive-suggestion-popover"),wc("suggestion-popover"),wc("core"))}function Jd(){const e=String(new Error().stack).replace(/^Error.*\n/,"").split(`
|
|
|
`);if(e.length===0)return console.error(`Can't use relative paths to specify assets location because the sourcefile location could not be determined (unexpected stack trace format "${new Error().stack}").`),"";let t=e[1],r=t.match(/http.*\.ts[\?:]/);return r&&(t=e[2]),r=t.match(/(https?:.*):[0-9]+:[0-9]+/),r||(r=t.match(/at (.*(\.ts))[\?:]/),r||(r=t.match(/at (.*(\.mjs|\.js))[\?:]/))),r?r[1]:(console.error(e),console.error(`Can't use relative paths to specify assets location because the source file location could not be determined (unexpected location "${t}").`),"")}var _d=null,Fd,Yd,Ad=((Yd=(Fd=globalThis==null?void 0:globalThis.document)==null?void 0:Fd.currentScript)==null?void 0:Yd.src)||Jd();function ud(e){return gd(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(e))return new URL(e).href;if(_d===null)try{const t=yield fetch(Ad,{method:"HEAD"});t.status===200&&(_d=t.url)}catch(t){console.error(`Invalid URL "${e}" (relative to "${Ad}")`)}return new URL(e,_d!=null?_d:Ad).href})}function m0(e,t,r={}){return new FontFace(e,`url(${t}.woff2) format('woff2')`,r)}var zc="not-loaded";function xf(){return gd(this,null,function*(){return zc="not-loaded",vA()})}function vA(){return gd(this,null,function*(){var e;if(zc!=="not-loaded")return;if(zc="loading",(e=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?e:!1){zc="ready";return}if(document.body.classList.remove("ML__fonts-did-not-load"),"fonts"in document){const r=["KaTeX_Main","KaTeX_Math","KaTeX_AMS","KaTeX_Caligraphic","KaTeX_Fraktur","KaTeX_SansSerif","KaTeX_Script","KaTeX_Typewriter","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4"],n=Array.from(document.fonts).map(A=>A.family);if(r.every(A=>n.includes(A))){zc="ready";return}if(!window.MathfieldElement.fontsDirectory){zc="not-loaded";return}const i=yield ud(window.MathfieldElement.fontsDirectory);if(!i){document.body.classList.add("ML__fonts-did-not-load"),zc="error";return}const s=[["KaTeX_Main-Regular"],["KaTeX_Main-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_Main-Bold",{weight:"bold"}],["KaTeX_Main-Italic",{style:"italic"}],["KaTeX_Math-Italic",{style:"italic"}],["KaTeX_Math-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_AMS-Regular"],["KaTeX_Caligraphic-Regular"],["KaTeX_Caligraphic-Bold",{weight:"bold"}],["KaTeX_Fraktur-Regular"],["KaTeX_Fraktur-Bold",{weight:"bold"}],["KaTeX_SansSerif-Regular"],["KaTeX_SansSerif-Bold",{weight:"bold"}],["KaTeX_SansSerif-Italic",{style:"italic"}],["KaTeX_Script-Regular"],["KaTeX_Typewriter-Regular"],["KaTeX_Size1-Regular"],["KaTeX_Size2-Regular"],["KaTeX_Size3-Regular"],["KaTeX_Size4-Regular"]].map(A=>m0(A[0].replace(/-[a-zA-Z]+$/,""),`${i}/${A[0]}`,A[1]));try{(yield Promise.all(s.map(M=>{try{return M.load()}catch($){}}))).forEach(M=>document.fonts.add(M)),zc="ready";return}catch(A){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${i}"`,{cause:A}),document.body.classList.add("ML__fonts-did-not-load")}zc="error"}})}function g0(e){let t=0;for(let r=0;r<e.length;r++)t=t*31+e.charCodeAt(r),t=t|0;return Math.abs(t)}function xs(e,t){e&&(e.dirty||(e.dirty=!0,requestAnimationFrame(()=>{hs(e)&&e.dirty&&(e.atomBoundsCache=new Map,TA(e,t),e.atomBoundsCache=void 0)})))}function v0(e,t){var r;t=t!=null?t:{};const n=new la({from:E(f({},e.context),{atomIdsSettings:{seed:t.forHighlighting?g0(zr.serialize([e.model.root],{expandMacro:!1,defaultMode:e.options.defaultMode})):"random",groupNumbers:(r=t.forHighlighting)!=null?r:!1},letterShapeStyle:e.options.letterShapeStyle}),mathstyle:e.options.defaultMode==="inline-math"?"textstyle":"displaystyle"}),i=e.model.root.render(n);return AA(Wu(i,n),{classes:e.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function Cf(e,t){const{model:r}=e;r.root.caret=void 0,r.root.isSelected=!1,r.root.containsCaret=!0;for(const i of r.atoms)i.caret=void 0,i.isSelected=!1,i.containsCaret=!1;if(r.selectionIsCollapsed){const i=r.at(r.position);i.caret=e.model.mode;let s=i.parent;for(;s;)s.containsCaret=!0,s=s.parent}else{const i=r.getAtoms(r.selection,{includeChildren:!0});for(const s of i)s.isSelected=!0}return v0(e,t).toMarkup()}function TA(e,t){if(!hs(e))return;t!=null||(t={});const r=e.element.querySelector("[part=virtual-keyboard-toggle]");r&&(r.style.display=e.hasEditableContent?"":"none");const n=e.field;if(!n)return;const i=e.isSelectionEditable&&e.hasFocus(),s=n.classList.contains("ML__focused");s&&!i?n.classList.remove("ML__focused"):!s&&i&&n.classList.add("ML__focused");let A=Cf(e,t);const M=e.element.querySelector("[part=menu-toggle]");if(M&&(e.model.atoms.length<=1||e.disabled||e.readOnly&&!e.hasEditableContent||e.userSelect==="none"?M.style.display="none":M.style.display=""),e.model.atoms.length<=1){const $=e.options.contentPlaceholder;$&&(A+=`<span part=placeholder class="ML__content-placeholder">${Fl($)}</span>`)}n.innerHTML=window.MathfieldElement.createHTML(A),Id(e,t.interactive),e.dirty=!1}function Id(e,t){const r=e.field;if(!r)return;for(const M of r.querySelectorAll(".ML__selection, .ML__contains-highlight"))M.remove();!(t!=null&&t)&&zc!=="error"&&zc!=="ready"&&setTimeout(()=>{zc==="ready"?Id(e):setTimeout(()=>Id(e),128)},32);const n=e.model,i=r.offsetWidth,s=r.getBoundingClientRect().width;let A=Math.floor(s)/i;if(A=isNaN(A)?1:A,n.selectionIsCollapsed){Mc(e,{deferred:!0});let M=n.at(n.position);for(;M&&M.type!=="prompt"&&!(M.containsCaret&&M.displayContainsHighlight);)M=M.parent;if(M!=null&&M.containsCaret&&M.displayContainsHighlight){const $=Xl(e,qc(e,M),A);if($){$.left/=A,$.right/=A,$.top/=A,$.bottom/=A;const q=document.createElement("div");q.classList.add("ML__contains-highlight"),q.style.position="absolute",q.style.left=`${$.left+1}px`,q.style.top=`${Math.ceil($.top)}px`,q.style.width=`${Math.ceil($.right-$.left)}px`,q.style.height=`${Math.ceil($.bottom-$.top)}px`,r.insertBefore(q,r.childNodes[0])}}return}for(const M of jf(XA(e,{excludeAtomsWithBackground:!0}))){M.left/=A,M.right/=A,M.top/=A,M.bottom/=A;const $=document.createElement("div");$.classList.add("ML__selection"),$.style.position="absolute",$.style.left=`${M.left}px`,$.style.top=`${M.top}px`,$.style.width=`${Math.ceil(M.right-M.left)}px`,$.style.height=`${Math.ceil(M.bottom-M.top-1)}px`,r.insertBefore($,r.childNodes[0])}}function jf(e){let t=[];for(const r of e){let n=!1;for(const i of t)if(r.left===i.left&&r.right===i.right&&r.top===i.top&&r.bottom===i.bottom){n=!0;break}n||t.push(r)}e=t,t=[];for(const r of e){let n=0;for(const i of e)if(r.left>=i.left&&r.right<=i.right&&r.top>=i.top&&r.bottom<=i.bottom&&(n+=1,n>1))break;n===1&&t.push(r)}return t}var Md=3,oA;function _l(e,t){t=f({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},t!=null?t:{}),oA||(oA={});for(const r of Object.keys(e))console.assert(!oA[r],"Selector already defined: ",r),oA[r]=E(f({},t),{fn:e[r]})}function qd(e){let t;if(Array.isArray(e)){if(e[0]==="performWithFeedback")return qd(e[1]);t=e[0]}else t=e;return t=t.replace(/-\w/g,r=>r[1].toUpperCase()),oA[t]}function dd(e){var t;return(t=qd(e))==null?void 0:t.target}function ef(e,t){var r;if(!t)return!1;let n,i=[],s=!1,A=!1;S(t)?(n=t[0],i=t.slice(1)):n=t,n=n.replace(/-\w/g,q=>q[1].toUpperCase());const M=oA[n],$=M==null?void 0:M.target;if($==="model"){if(!e.isSelectionEditable&&(M!=null&&M.changeContent))return e.model.announce("plonk"),!1;/^(delete|add)/.test(n)&&(n!=="deleteBackward"&&e.flushInlineShortcutBuffer(),e.snapshot(n)),/^complete/.test(n)||iu(e),oA[n].fn(e.model,...i),aA(e),A=!0,s=!0}else if($==="virtual-keyboard")A=(r=window.mathVirtualKeyboard.executeCommand(t))!=null?r:!1,s=!0;else if(oA[n]){if(!e.isSelectionEditable&&(M!=null&&M.changeContent))return e.model.announce("plonk"),!1;/^(undo|redo)/.test(n)&&e.flushInlineShortcutBuffer(),A=oA[n].fn(e,...i),s=!0}else throw new Error(`Unknown command "${n}"`);return $!=="virtual-keyboard"&&(!e.model.selectionIsCollapsed||M!=null&&M.changeSelection&&t!=="deleteBackward")&&(e.flushInlineShortcutBuffer(),M!=null&&M.changeContent||e.stopCoalescingUndo(),e.defaultStyle={}),A&&xs(e),s}function zf(e,t){var r;if(!e)return!1;e.focus(),Hh.keypressVibration&&I()&&navigator.vibrate(Md);const n=qd(t);window.MathfieldElement.playSound((r=n==null?void 0:n.audioFeedback)!=null?r:"keypress");const i=e.executeCommand(t);return e.scrollIntoView(),i}_l({performWithFeedback:(e,t)=>zf(e,t)});function Bf(e){return aA(e,{atIndex:e.suggestionIndex+1}),!1}function Eu(e){return aA(e,{atIndex:e.suggestionIndex-1}),!1}_l({complete:Su},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),_l({nextSuggestion:Bf,previousSuggestion:Eu},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var Ld="mathlive#virtual-keyboard-message";function tf(e){var t;return e.type!=="message"?!1:((t=e.data)==null?void 0:t.type)===Ld}var y0=class Sp{constructor(){this.targetOrigin=window.origin,this.originValidator="none",this._boundingRect=new DOMRect(0,0,0,0),this._isShifted=!1,window.addEventListener("message",this),this.sendMessage("proxy-created"),this.listeners={}}static get singleton(){return this._singleton||(this._singleton=new Sp),this._singleton}set alphabeticLayout(t){this.sendMessage("update-setting",{alphabeticLayout:t})}set layouts(t){this.sendMessage("update-setting",{layouts:t})}get normalizedLayouts(){return[]}set editToolbar(t){this.sendMessage("update-setting",{editToolbar:t})}set actionKeycap(t){this.sendMessage("update-setting",{actionKeycap:t})}set shiftKeycap(t){this.sendMessage("update-setting",{shiftKeycap:t})}set backspaceKeycap(t){this.sendMessage("update-setting",{backspaceKeycap:t})}set tabKeycap(t){this.sendMessage("update-setting",{tabKeycap:t})}set container(t){throw new Error("Container inside an iframe cannot be changed")}show(t){this.sendMessage("show",t)}hide(t){this.sendMessage("hide",t)}get isShifted(){return this._isShifted}get visible(){return this._boundingRect.height>0}set visible(t){t?this.show():this.hide()}get boundingRect(){return this._boundingRect}executeCommand(t){return this.sendMessage("execute-command",{command:t}),!0}updateToolbar(t){this.sendMessage("update-toolbar",t)}update(t){this.sendMessage("update-setting",t)}connect(){this.sendMessage("connect")}disconnect(){this.sendMessage("disconnect")}addEventListener(t,r,n){this.listeners[t]||(this.listeners[t]=new Set),this.listeners[t].has(r)||this.listeners[t].add(r)}dispatchEvent(t){return!this.listeners[t.type]||this.listeners[t.type].size===0?!0:(this.listeners[t.type].forEach(r=>{typeof r=="function"?r(t):r==null||r.handleEvent(t)}),!t.defaultPrevented)}removeEventListener(t,r,n){this.listeners[t]&&this.listeners[t].delete(r)}handleEvent(t){if(tf(t)){if(!kA(t.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${t.origin}) cannot be handled`,"SecurityError");this.handleMessage(t.data)}}handleMessage(t){const{action:r}=t;if(r==="execute-command"){const{command:n}=t;dd(n)==="virtual-keyboard"&&this.executeCommand(n);return}if(r==="synchronize-proxy"){this._boundingRect=t.boundingRect,this._isShifted=t.isShifted;return}if(r==="geometry-changed"){this._boundingRect=t.boundingRect,this.dispatchEvent(new Event("geometrychange"));return}}sendMessage(t,r={}){if(!window.top)throw new DOMException("A frame does not have access to the top window and can\u2018t communicate with the keyboard. Review virtualKeyboardTargetOrigin and originValidator on mathfields embedded in an iframe","SecurityError");window.top.postMessage(f({type:Ld,action:t},r),this.targetOrigin)}},Sf={numeric:{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",rows:[[{latex:"x",shift:"y",variants:["y","z","t","r","x^2","x^n","x^{#?}","x_n","x_i","x_{#?}",{latex:"f(#?)",class:"small"},{latex:"g(#?)",class:"small"}]},{latex:"n",shift:"a",variants:["i","j","p","k","a","u"]},"[separator-5]","[7]","[8]","[9]","[/]","[separator-5]",{latex:"\\exponentialE",shift:"\\ln",variants:["\\exp","\\times 10^{#?}","\\ln","\\log_{10}","\\log"]},{latex:"\\imaginaryI",variants:["\\Re","\\Im","\\imaginaryJ","\\Vert #0 \\Vert"]},{latex:"\\pi",shift:"\\sin",variants:["\\prod",{latex:"\\theta",aside:"theta"},{latex:"\\rho",aside:"rho"},{latex:"\\tau",aside:"tau"},"\\sin","\\cos","\\tan"]}],[{label:"<",latex:"<",class:"hide-shift",shift:{latex:"\\le",label:"\u2264"}},{label:">",latex:">",class:"hide-shift",shift:{latex:"\\ge",label:"\u2265"}},"[separator-5]","[4]","[5]","[6]","[*]","[separator-5]",{class:"hide-shift",latex:"#@^2}",shift:"#@^{\\prime}}"},{latex:"#@^{#0}}",class:"hide-shift",shift:"#@_{#?}"},{class:"hide-shift",latex:"\\sqrt{#0}",shift:{latex:"\\sqrt[#0]{#?}}"}}],["[(]","[)]","[separator-5]","[1]","[2]","[3]","[-]","[separator-5]",{latex:"\\int^{\\infty}_{0}\\!#?\\,\\mathrm{d}x",class:"small hide-shift",shift:"\\int",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{class:"hide-shift",latex:"\\forall",shift:"\\exists"},{label:"[backspace]",width:1}],[{label:"[shift]",width:2},"[separator-5]","[0]","[.]","[=]","[+]","[separator-5]","[left]","[right]",{label:"[action]",width:1}]]},greek:{label:"αβγ",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.greek",rows:[[{label:"<i>φ</i>",class:"MLK__tex hide-shift",insert:"\\varphi",aside:"phi var.",shift:"\\Phi"},{label:"<i>ς</i>",class:"MLK__tex hide-shift",insert:"\\varsigma",aside:"sigma var.",shift:"\\Sigma"},{label:"<i>ϵ</i>",class:"MLK__tex hide-shift",insert:"\\epsilon",aside:"espilon",shift:'\\char"0190'},{label:"<i>ρ</i>",class:"MLK__tex hide-shift",insert:"\\rho",aside:"rho",shift:'\\char"3A1'},{label:"<i>τ</i>",class:"MLK__tex hide-shift",insert:"\\tau",aside:"tau",shift:'\\char"3A4'},{label:"<i>υ</i>",class:"MLK__tex hide-shift",insert:"\\upsilon",aside:"upsilon",shift:"\\Upsilon"},{label:"<i>θ</i>",class:"MLK__tex hide-shift",insert:"\\theta",aside:"theta",shift:"\\Theta"},{label:"<i>ι</i>",class:"MLK__tex hide-shift",insert:"\\iota",aside:"iota",shift:'\\char"399'},{label:"<i>ο</i>",class:"MLK__tex hide-shift",insert:"\\omicron",aside:"omicron",shift:'\\char"39F'},{label:"<i>π</i>",class:"MLK__tex hide-shift",insert:"\\pi",aside:"pi",shift:"\\Pi"}],["[separator-5]",{label:"<i>α</i>",class:"MLK__tex hide-shift",insert:"\\alpha",aside:"alpha",shift:'\\char"391'},{label:"<i>σ</i>",class:"MLK__tex hide-shift",insert:"\\sigma",aside:"sigma",shift:"\\Sigma"},{label:"<i>δ</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>γ</i>",class:"MLK__tex hide-shift",insert:"\\gamma",aside:"gamma",shift:"\\Gamma"},{label:"<i>η</i>",class:"MLK__tex hide-shift",insert:"\\eta",aside:"eta",shift:'\\char"397'},{label:"<i>ξ</i>",class:"MLK__tex hide-shift",insert:"\\xi",aside:"xi",shift:"\\Xi"},{label:"<i>κ</i>",class:"MLK__tex hide-shift",insert:"\\kappa",aside:"kappa",shift:"\\Kappa"},{label:"<i>λ</i>",class:"MLK__tex hide-shift",insert:"\\lambda",aside:"lambda",shift:"\\Lambda"},"[separator-5]"],["[shift]",{label:"<i>ζ</i>",class:"MLK__tex hide-shift",insert:"\\zeta",aside:"zeta",shift:'\\char"396'},{label:"<i>χ</i>",class:"MLK__tex hide-shift",insert:"\\chi",aside:"chi",shift:'\\char"3A7'},{label:"<i>ψ</i>",class:"MLK__tex hide-shift",insert:"\\psi",aside:"zeta",shift:"\\Psi"},{label:"<i>ω</i>",class:"MLK__tex hide-shift",insert:"\\omega",aside:"omega",shift:"\\Omega"},{label:"<i>β</i>",class:"MLK__tex hide-shift",insert:"\\beta",aside:"beta",shift:'\\char"392'},{label:"<i>ν</i>",class:"MLK__tex hide-shift",insert:"\\nu",aside:"nu",shift:'\\char"39D'},{label:"<i>μ</i>",class:"MLK__tex hide-shift",insert:"\\mu",aside:"mu",shift:'\\char"39C'},"[backspace]"],["[separator]",{label:"<i>ε</i>",class:"MLK__tex",insert:"\\varepsilon",aside:"espilon var."},{label:"<i>ϑ</i>",class:"MLK__tex",insert:"\\vartheta",aside:"theta var."},{label:"<i>ϰ</i>",class:"MLK__tex",insert:"\\varkappa",aside:"kappa var."},{label:"<i>ϖ</i>",class:"MLK__tex",insert:"\\varpi",aside:"pi var."},{label:"<i>ϱ</i>",class:"MLK__tex",insert:"\\varrho",aside:"rho var."},"[left]","[right]","[action]"]]},symbols:{label:"∞\u2260\u2208",labelClass:"MLK__tex",tooltip:"keyboard.tooltip.symbols",rows:[[{latex:"\\sin",shift:"\\sin^{-1}",variants:[{class:"small",latex:"\\sinh"},{class:"small",latex:"\\sin^{-1}"},{class:"small",latex:"\\arsinh"}]},"\\ln",{latex:"\\mathrm{abs}",insert:"\\mathrm{abs}\\left(#0\\right)"},{latex:"\\rarr",shift:"\\rArr",variants:[{latex:"\\implies",aside:"implies"},{latex:"\\to",aside:"to"},"\\dashv",{latex:"\\roundimplies",aside:"round implies"}]},{latex:"\\exists",variants:["\\nexists"],shift:"\\nexists"},{latex:"\\in",shift:"\\notin",variants:["\\notin","\\owns"]},"\\cup",{latex:"\\overrightarrow{#@}",shift:"\\overleftarrow{#@}",variants:["\\overleftarrow{#@}","\\bar{#@}","\\vec{#@}","\\hat{#@}","\\check{#@}","\\dot{#@}","\\ddot{#@}","\\mathring{#@}","\\breve{#@}","\\acute{#@}","\\tilde{#@}","\\grave{#@}"]},{class:"small",latex:"\\lim_{#?}",shift:"\\lim_{x\\to\\infty}",variants:[{class:"small",latex:"\\liminf_{#?}"},{class:"small",latex:"\\limsup_{#?}"}]},"\\exponentialE"],[{latex:"\\cos",shift:"\\cos^{-1}",variants:[{class:"small",latex:"\\cosh"},{class:"small",latex:"\\cos^{-1}"},{class:"small",latex:"\\arcosh"}]},{latex:"\\log",shift:"\\log_{10}",variants:["\\log_{#0}","\\log_{10}"]},"\\left\\vert#0\\right\\vert",{latex:"\\larr",shift:"\\lArr",variants:[{latex:"\\impliedby",aside:"implied by"},{latex:"\\gets",aside:"gets"},"\\lArr","\\vdash",{latex:"\\models",aside:"models"}]},{latex:"\\forall",shift:"\\lnot",variants:[{latex:"\\land",aside:"and"},{latex:"\\lor",aside:"or"},{latex:"\\oplus",aside:"xor"},{latex:"\\lnot",aside:"not"},{latex:"\\downarrow",aside:"nor"},{latex:"\\uparrow",aside:"nand"},{latex:"\\curlywedge",aside:"nor"},{latex:"\\bar\\curlywedge",aside:"nand"}]},{latex:"\\ni",shift:"\\not\\owns"},"\\cap",{latex:"\\overline{#@}",shift:"\\underline{#@}",variants:["\\overbrace{#@}","\\overlinesegment{#@}","\\overleftrightarrow{#@}","\\overrightarrow{#@}","\\overleftarrow{#@}","\\overgroup{#@}","\\underbrace{#@}","\\underlinesegment{#@}","\\underleftrightarrow{#@}","\\underrightarrow{#@}","\\underleftarrow{#@}","\\undergroup{#@}"]},{class:"hide-shift",latex:"\\int",shift:"\\iint",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\smallint",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\intop","\\iiint","\\oiint","\\oiiint","\\intclockwise","\\varointclockwise","\\ointctrclockwise","\\intctrclockwise"]},{latex:"\\pi",shift:"\\tau",variants:["\\tau"]}],[{latex:"\\tan",shift:"\\tan^{-1}",variants:[{class:"small",latex:"\\tanh"},{class:"small",latex:"\\tan^{-1}"},{class:"small",latex:"\\artanh"},{class:"small",latex:"\\arctan"},{class:"small",latex:"\\arctg"},{class:"small",latex:"\\tg"}]},{latex:"\\exp",insert:"\\exp\\left(#0\\right)",variants:["\\exponentialE^{#0}"]},"\\left\\Vert#0\\right\\Vert",{latex:"\\lrArr",shift:"\\leftrightarrow",variants:[{latex:"\\iff",aside:"if and only if"},"\\leftrightarrow","\\leftrightarrows","\\Leftrightarrow",{latex:"^\\biconditional",aside:"biconditional"}]},{latex:"\\vert",shift:"!"},{latex:"#@^{\\complement}",aside:"complement",variants:[{latex:"\\setminus",aside:"set minus"},{latex:"\\smallsetminus",aside:"small set minus"}]},{latex:"\\subset",shift:"\\subseteq",variants:["\\subset","\\subseteq","\\subsetneq","\\varsubsetneq","\\subsetneqq","\\nsubset","\\nsubseteq","\\supset","\\supseteq","\\supsetneq","\\supsetneqq","\\nsupset","\\nsupseteq"]},{latex:"#@^{\\prime}",shift:"#@^{\\doubleprime}",variants:["#@^{\\doubleprime}","#@\\degree"]},{latex:"\\mathrm{d}",shift:"\\partial",variants:["\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{latex:"\\infty",variants:["\\aleph_0","\\aleph_1","\\omega","\\mathfrak{m}"]}],[{label:"[shift]",width:2},{class:"box",latex:",",shift:";",variants:[";","?"]},{class:"box",latex:"\\colon",shift:"\\Colon",variants:[{latex:"\\Colon",aside:"such that",class:"box"},{latex:":",aside:"ratio",class:"box"},{latex:"\\vdots",aside:"",class:"box"},{latex:"\\ddots",aside:"",class:"box"},{latex:"\\ldotp",aside:"low dot",class:"box"},{latex:"\\cdotp",aside:"center dot",class:"box"},{latex:"\\ldots",aside:"low ellipsis",class:"box"},{latex:"\\cdots",aside:"center ellipsis",class:"box"},{latex:"\\therefore",aside:"therefore",class:"box"},{latex:"\\because",aside:"because",class:"box"}]},{class:"box",latex:"\\cdot",aside:"centered dot",shift:"\\ast",variants:["\\circ","\\bigcirc","\\bullet","\\odot","\\oslash","\\circledcirc","\\ast","\\star","\\times","\\doteq","\\doteqdot"]},"[separator]","[left]","[right]",{label:"[backspace]",width:1,class:"action hide-shift"},{label:"[action]",width:1}]]},compact:{label:"compact",rows:[["[+]","[-]","[*]","[/]","[=]","[.]","[(]","[)]","\\sqrt{#0}","#@^{#?}"],["[1]","[2]","[3]","[4]","[5]","[6]","[7]","[8]","[9]","[0]"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]},minimalist:{label:"minimalist",layers:[{style:`
|
|
|
.minimalist-backdrop {
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
}
|
|
|
.minimalist-container {
|
|
|
--keycap-height: 40px;
|
|
|
--keycap-max-width: 53px;
|
|
|
--keycap-small-font-size: 12px;
|
|
|
background: var(--keyboard-background);
|
|
|
padding: 20px;
|
|
|
border-top-left-radius: 8px;
|
|
|
border-top-right-radius: 8px;
|
|
|
border: 1px solid var(--keyboard-border);
|
|
|
box-shadow: 0 0 32px rgb(0 0 0 / 30%);
|
|
|
}
|
|
|
`,backdrop:"minimalist-backdrop",container:"minimalist-container",rows:[["+","-","\\times",{latex:"\\frac{#@}{#0}",class:"small"},"=","[.]","(",")",{latex:"\\sqrt{#0}",class:"small"},{latex:"#@^{#?}",class:"small"}],["1","2","3","4","5","6","7","8","9","0"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]}]},"numeric-only":{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",id:"numeric-only",rows:[["7","8","9","[separator]",{label:"[backspace]",width:2}],["4","5","6","[separator]","[separator]","[separator]"],["1","2","3","[separator]","[separator]","[separator]"],["0",{label:"[.]",variants:[]},"-","[separator]","[left]","[right]"]]}},au={0:["\\varnothing","\\infty"],1:["\\frac{1}{#@}","#@^{-1}","\\times 10^{#?}","\\phi","\\imaginaryI"],2:["\\frac{1}{2}","#@^2","\\sqrt2","\\exponentialE"],3:["\\frac{1}{3}","#@^3","\\sqrt3","\\pi"],4:["\\frac{1}{4}","#@^4"],5:["\\frac{1}{5}","#@^5","\\sqrt5"],6:["\\frac{1}{6}","#@^6"],7:["\\frac{1}{7}","#@^7"],8:["\\frac{1}{8}","#@^8"],9:["\\frac{1}{9}","#@^9"],".":[".",",",";","\\colon"],",":["{,}",".",";","\\colon"],a:[{latex:"\\aleph",aside:"aleph"},{latex:"\\forall",aside:"for all"},"\xE0","\xE1","\xE2","\xE4","\xE6"],b:[{latex:"\\beth",aside:"beth"}],c:[{latex:"\\C",aside:"set of complex numbers"},"\xE7"],d:[{latex:"\\daleth",aside:"daleth"}],e:[{latex:"\\exponentialE",aside:"exponential e"},{latex:"\\exists",aside:"there is"},{latex:"\\nexists",aside:"there isn\u2019t"},"\xE8","\xE9","\xEA","\xEB"],g:[{latex:"\\gimel",aside:"gimel"}],h:[{latex:"\\hbar",aside:"h bar"},{latex:"\\hslash",aside:"h slash"}],i:[{latex:"\\imaginaryI",aside:"imaginary i"},"\xEC","\xED","\xEE","\xEF"],j:[{latex:"\\imaginaryJ",aside:"imaginary j"}],l:[{latex:"\\ell",aside:"ell"}],n:[{latex:"\\mathbb{N}",aside:"set of natural numbers"},"\xF1"],o:["\xF8","\u0153","\xF2","\xF3","\xF4","\xF6","\u0153"],p:[{latex:"\\mathbb{P}",aside:"set of primes"}],q:[{latex:"\\mathbb{Q}",aside:"set of rational numbers"}],r:[{latex:"\\mathbb{R}",aside:"set of real numbers"}],u:["\xF9","\xFA","\xFB","\xFC"],z:[{latex:"\\mathbb{Z}",aside:"set of integers"}],y:["\xFD","\xFF"],space:[{latex:'\\char"203A\\!\\char"2039',insert:"\\!",aside:"negative thin space<br>\u207B\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\,\\char"2039',insert:"\\,",aside:"thin space<br>\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\:\\char"2039',insert:"\\:",aside:"medium space<br>\u2074\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\;\\char"2039',insert:"\\;",aside:"thick space<br>\u2075\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\ \\char"2039',insert:"\\ ",aside:"\u2153 em"},{latex:'\\char"203A\\enspace\\char"2039',insert:"\\enspace",aside:"\xBD em"},{latex:'\\char"203A\\quad\\char"2039',insert:"\\quad",aside:"1 em"},{latex:'\\char"203A\\qquad\\char"2039',insert:"\\qquad",aside:"2 em"}]},kd;function Ef(e,t){var r,n,i;const s=fd.singleton;if(!s)return;const A=nf(e),M=(n=(r=s.getKeycap(A==null?void 0:A.id))==null?void 0:r.variants)!=null?n:"";if(typeof M=="string"&&!Zf(M)||Array.isArray(M)&&M.length===0){t==null||t();return}const $={};let q="";for(const Fr of Pd(M)){const In=Y0(Fr),Cr=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);$[Cr]=In;const[an,Rn]=Wf(In);q+=`<div id=${Cr} class="item ${Rn}">${an}</div>`}const Ae=document.createElement("div");Ae.setAttribute("aria-hidden","true"),Ae.className="MLK__variant-panel",Ae.style.height="auto";const Qe=Object.keys($).length;let ut=5;Qe===1?ut=1:Qe===2||Qe===4?ut=2:Qe===3||Qe===5||Qe===6?ut=3:Qe>=7&&Qe<14&&(ut=4),Ae.style.width=`calc(var(--variant-keycap-length) * ${ut} + 12px)`,Ae.innerHTML=Hh.createHTML(q),Co.open({root:(i=s==null?void 0:s.container)==null?void 0:i.querySelector(".ML__keyboard"),child:Ae}),kd=new AbortController;const{signal:Ft}=kd,Nt=e==null?void 0:e.getBoundingClientRect();if(Nt){Nt.top-Ae.clientHeight<0&&(Ae.style.width="auto",Qe<=6?Ae.style.height="56px":Qe<=12?Ae.style.height="108px":Qe<=18?Ae.style.height="205px":Ae.classList.add("compact"));const Fr=Math.max(0,Math.min(window.innerWidth-Ae.offsetWidth,(Nt.left+Nt.right-Ae.offsetWidth)/2)),In=Nt.top-Ae.clientHeight+5;Ae.style.transform=`translate(${Fr}px, ${In}px)`,Ae.classList.add("is-visible"),requestAnimationFrame(()=>{Ae.addEventListener("pointerup",Cr=>{const an=nf(Cr.target);!(an!=null&&an.id)||!$[an.id]||(w0($[an.id]),Dd(),t==null||t(),Cr.preventDefault())},{capture:!0,passive:!1,signal:Ft}),Ae.addEventListener("pointerenter",Cr=>{const an=nf(Cr.target);!(an!=null&&an.id)||!$[an.id]||an.classList.add("is-active")},{capture:!0,signal:Ft}),Ae.addEventListener("pointerleave",Cr=>{const an=nf(Cr.target);!(an!=null&&an.id)||!$[an.id]||an.classList.remove("is-active")},{capture:!0,signal:Ft}),window.addEventListener("pointercancel",()=>{Dd(),t==null||t()},{signal:Ft}),window.addEventListener("pointerup",()=>{Dd(),t==null||t()},{signal:Ft})})}}function Dd(){kd==null||kd.abort(),kd=null,Co.state==="open"&&Co.close()}function $f(e){if(e==="foreground-color"){const t=[];for(const r of Object.keys(he))t.push({class:"swatch-button",label:'<span style="border: 3px solid '+he[r]+'"></span>',command:["applyStyle",{color:r}]});return t}if(e==="background-color"){const t=[];for(const r of Object.keys(se))t.push({class:"swatch-button",label:'<span style="background:'+se[r]+'"></span>',command:["applyStyle",{backgroundColor:r}]});return t}}function Zf(e){return au[e]!==void 0}function Pd(e){var t;return typeof e!="string"?e:(au[e]||(au[e]=(t=$f(e))!=null?t:[]),au[e])}function _f(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r} !important`).join(";")}function rf(e){return Object.keys(e).map(t=>`${t} {${_f(e[t])}}`).join("")}function $c(e){if(!e)return"";const t=new la,r=new zr({mode:"math",type:"root",body:Al(e,{context:t,args:i=>i==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),n=SA(Wu(new fn(r.render(t),{classes:"ML__base"}),t));return AA(n,{classes:"ML__latex"}).toMarkup()}function sA(e){var t;if(Array.isArray(e))return e.map(n=>sA(n)).flat();const r=typeof e=="string"?{markup:e}:e;return"rows"in r&&Array.isArray(r.rows)&&(r.rows=r.rows.map(n=>n.map(i=>Y0(i)))),(t=r.id)!=null||(r.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36)),[r]}function _u(){var e,t;let n=window.mathVirtualKeyboard.alphabeticLayout;if(n==="auto"){const M=zi();M&&(n=M.virtualLayout),(!n||n==="auto")&&(n=(e={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[G.locale.slice(0,2)])!=null?e:"qwerty")}const i={qwerty:["qwertyuiop"," asdfghjkl ","^zxcvbnm~"],azerty:["azertyuiop","qsdfghjklm","^ wxcvbn ~"],qwertz:["qwertzuiop"," asdfghjkl ","^yxcvbnm~"],dvorak:["^ pyfgcrl ","aoeuidhtns","qjkxbmwvz~"],colemak:[" qwfpgjluy ","arstdhneio","^zxcvbkm~"]},s=(t=i[n])!=null?t:i.qwerty,A=n==="azerty"?[[{label:"1",variants:"1"},{label:"2",shift:{latex:"\xE9"},variants:"2"},{label:"3",shift:{latex:"\xF9"},variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{label:"(",latex:"("},variants:"5"},{label:"6",shift:{label:")",latex:")"},variants:"6"},{label:"7",shift:{latex:"\xE8"},variants:"7"},{label:"8",shift:{latex:"\xEA"},variants:"8"},{label:"9",shift:{latex:"\xE7"},variants:"9"},{label:"0",shift:{latex:"\xE0"},variants:"0"}]]:[[{label:"1",variants:"1"},{label:"2",variants:"2"},{label:"3",variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{latex:"\\frac{#@}{#?}"},variants:"5"},{label:"6",shift:{latex:"#@^#?"},variants:"6"},{label:"7",variants:"7"},{label:"8",shift:{latex:"\\times"},variants:"8"},{label:"9",shift:{label:"(",latex:"("},variants:"9"},{label:"0",shift:{label:")",latex:")"},variants:"0"}]];for(const M of s){const $=[];for(const q of M)/[a-z]/.test(q)?$.push({label:q,class:"hide-shift",shift:{label:q.toUpperCase()},variants:Zf(q)?q:void 0}):q==="~"?n!=="dvorak"?$.push("[backspace]"):$.push({label:"[backspace]",width:1}):q==="^"?$.push("[shift]"):q===" "&&$.push("[separator-5]");A.push($)}return A.push(["[-]","[+]","[=]",{label:" ",width:1.5},{label:",",shift:";",variants:".",class:"hide-shift"},"[.]","[left]","[right]",{label:"[action]",width:1.5}]),{label:"abc",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.alphabetic",layers:sA({rows:A})}}function Nd(e){if(e==="alphabetic")return _u();if(typeof e=="string")return console.assert(Sf[e]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${e}"`),Nd(Sf[e]);let t;if("rows"in e&&Array.isArray(e.rows)){console.assert(!("layers"in e||"markup"in e),'MathLive 0.98.5: when providing a "rows" property, "layers" and "markup" are ignored');const i=e,{rows:s}=i,A=z(i,["rows"]);t=E(f({},A),{layers:sA({rows:e.rows})})}else if("markup"in e&&typeof e.markup=="string"){const i=e,{markup:s}=i,A=z(i,["markup"]);t=E(f({},A),{layers:sA(e.markup)})}else t=f({},e),"layers"in e?t.layers=sA(e.layers):console.error('MathLive 0.98.5: provide either a "rows", "markup" or "layers" property');let r=!1,n=!1;for(const i of t.layers)if(i.rows)for(const s of i.rows.flat()){af(s)&&(r=!0);const A=s.command;typeof A=="string"&&["undo","redo","cut","copy","paste"].includes(A)&&(n=!0)}return(!("displayShiftedKeycaps"in e)||e.displayShiftedKeycaps===void 0)&&(t.displayShiftedKeycaps=r),(!("displayEditToolbar"in e)||e.displayEditToolbar===void 0)&&(t.displayEditToolbar=!n),t}function Ff(e,t){var r,n;let i='<div class="left">';if(e.normalizedLayouts.length>1)for(const[s,A]of e.normalizedLayouts.entries()){const M=A,$=[s===t?"selected":"layer-switch"];M.tooltip&&$.push("MLK__tooltip"),M.labelClass&&$.push(...M.labelClass.split(" ")),i+=`<div class="${$.join(" ")}"`,M.tooltip&&(i+=" data-tooltip='"+((r=J(M.tooltip))!=null?r:M.tooltip)+"' "),s!==t&&(i+=`data-layer="${M.layers[0].id}"`),i+=`>${(n=M.label)!=null?n:"untitled"}</div>`}return i+="</div>",i}function Vf(e,t){let r="";if(e.editToolbar==="none")return"";const i=[];t.selectionIsCollapsed?i.push("undo","redo","pasteFromClipboard"):i.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const s={undo:`<div class='action ${t.canUndo===!1?"disabled":""}'
|
|
|
data-command='"undo"'
|
|
|
data-tooltip='${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+=i.map(A=>s[A]).join(""),r}function b0(e){for(const t of e)If(t)}function If(e){const t=fd.singleton;if(!t)return;const r={};if(!e.id){if(e.hasAttribute("data-label")&&(r.label=e.dataset.label),e.hasAttribute("data-latex")&&(r.latex=e.dataset.latex),e.hasAttribute("data-key")&&(r.key=e.dataset.key),e.hasAttribute("data-insert")&&(r.insert=e.dataset.insert),e.hasAttribute("data-variants")&&(r.variants=e.dataset.variants),e.hasAttribute("data-aside")&&(r.aside=e.dataset.aside),e.className&&(r.class=e.className),!r.label&&!r.latex&&!r.key&&!r.insert&&(r.latex=e.innerText,r.label=e.innerHTML),e.hasAttribute("data-command"))try{r.command=JSON.parse(e.dataset.command)}catch(n){}e.id=t.registerKeycap(r)}if(!e.innerHTML){const[n,i]=Wf(r);e.innerHTML=window.MathfieldElement.createHTML(n)}}function Mf(){lc("virtual-keyboard"),lc("core"),vA()}function Ip(){wc("core"),wc("virtual-keyboard")}var Mp=`<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
|
|
|
|
|
<symbol id="svg-delete-backward" viewBox="0 0 576 512">
|
|
|
<path d="M432.1 208.1L385.9 256L432.1 303C442.3 312.4 442.3 327.6 432.1 336.1C423.6 346.3 408.4 346.3 399 336.1L352 289.9L304.1 336.1C295.6 346.3 280.4 346.3 271 336.1C261.7 327.6 261.7 312.4 271 303L318.1 256L271 208.1C261.7 199.6 261.7 184.4 271 175C280.4 165.7 295.6 165.7 304.1 175L352 222.1L399 175C408.4 165.7 423.6 165.7 432.1 175C442.3 184.4 442.3 199.6 432.1 208.1V208.1zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H205.3C188.3 448 172 441.3 160 429.3L9.372 278.6C3.371 272.6 0 264.5 0 256C0 247.5 3.372 239.4 9.372 233.4L160 82.75C172 70.74 188.3 64 205.3 64L512 64zM528 128C528 119.2 520.8 112 512 112H205.3C201 112 196.9 113.7 193.9 116.7L54.63 256L193.9 395.3C196.9 398.3 201 400 205.3 400H512C520.8 400 528 392.8 528 384V128z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-shift" viewBox="0 0 384 512">
|
|
|
<path d="M2.438 252.3C7.391 264.2 19.06 272 32 272h80v160c0 26.51 21.49 48 48 48h64C250.5 480 272 458.5 272 432v-160H352c12.94 0 24.61-7.797 29.56-19.75c4.953-11.97 2.219-25.72-6.938-34.88l-160-176C208.4 35.13 200.2 32 192 32S175.6 35.13 169.4 41.38l-160 176C.2188 226.5-2.516 240.3 2.438 252.3zM192 86.63L313.4 224H224v208H160V224H70.63L192 86.63z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-commit" viewBox="0 0 512 512">
|
|
|
<path d="M135 432.1l-128-128C2.344 300.3 0 294.2 0 288s2.344-12.28 7.031-16.97l128-128c9.375-9.375 24.56-9.375 33.94 0s9.375 24.56 0 33.94L81.94 264H464v-208C464 42.75 474.8 32 488 32S512 42.75 512 56V288c0 13.25-10.75 24-24 24H81.94l87.03 87.03c9.375 9.375 9.375 24.56 0 33.94S144.4 442.3 135 432.1z"/>
|
|
|
</symbol>
|
|
|
|
|
|
|
|
|
<symbol id="circle-plus" viewBox="0 0 512 512"><path d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344c0 13.3 10.7 24 24 24s24-10.7 24-24V280h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H280V168c0-13.3-10.7-24-24-24s-24 10.7-24 24v64H168c-13.3 0-24 10.7-24 24s10.7 24 24 24h64v64z"/></symbol>
|
|
|
|
|
|
<symbol id="svg-command" viewBox="0 0 640 512">
|
|
|
<path d="M34.495 36.465l211.051 211.05c4.686 4.686 4.686 12.284 0 16.971L34.495 475.535c-4.686 4.686-12.284 4.686-16.97 0l-7.071-7.07c-4.686-4.686-4.686-12.284 0-16.971L205.947 256 10.454 60.506c-4.686-4.686-4.686-12.284 0-16.971l7.071-7.07c4.686-4.687 12.284-4.687 16.97 0zM640 468v-10c0-6.627-5.373-12-12-12H300c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h328c6.627 0 12-5.373 12-12z"/>
|
|
|
</symbol>
|
|
|
|
|
|
<symbol id="svg-undo" viewBox="0 0 512 512">
|
|
|
<path d="M20 8h10c6.627 0 12 5.373 12 12v110.625C85.196 57.047 165.239 7.715 256.793 8.001 393.18 8.428 504.213 120.009 504 256.396 503.786 393.181 392.834 504 256 504c-63.926 0-122.202-24.187-166.178-63.908-5.113-4.618-5.354-12.561-.482-17.433l7.069-7.069c4.503-4.503 11.749-4.714 16.482-.454C150.782 449.238 200.935 470 256 470c117.744 0 214-95.331 214-214 0-117.744-95.331-214-214-214-82.862 0-154.737 47.077-190.289 116H180c6.627 0 12 5.373 12 12v10c0 6.627-5.373 12-12 12H20c-6.627 0-12-5.373-12-12V20c0-6.627 5.373-12 12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-redo" viewBox="0 0 512 512">
|
|
|
<path d="M492 8h-10c-6.627 0-12 5.373-12 12v110.625C426.804 57.047 346.761 7.715 255.207 8.001 118.82 8.428 7.787 120.009 8 256.396 8.214 393.181 119.166 504 256 504c63.926 0 122.202-24.187 166.178-63.908 5.113-4.618 5.354-12.561.482-17.433l-7.069-7.069c-4.503-4.503-11.749-4.714-16.482-.454C361.218 449.238 311.065 470 256 470c-117.744 0-214-95.331-214-214 0-117.744 95.331-214 214-214 82.862 0 154.737 47.077 190.289 116H332c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h160c6.627 0 12-5.373 12-12V20c0-6.627-5.373-12-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-arrow-left" viewBox="0 0 320 512">
|
|
|
<path d="M206.7 464.6l-183.1-191.1C18.22 267.1 16 261.1 16 256s2.219-11.97 6.688-16.59l183.1-191.1c9.152-9.594 24.34-9.906 33.9-.7187c9.625 9.125 9.938 24.37 .7187 33.91L73.24 256l168 175.4c9.219 9.5 8.906 24.78-.7187 33.91C231 474.5 215.8 474.2 206.7 464.6z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-arrow-right" viewBox="0 0 320 512">
|
|
|
<path d="M113.3 47.41l183.1 191.1c4.469 4.625 6.688 10.62 6.688 16.59s-2.219 11.97-6.688 16.59l-183.1 191.1c-9.152 9.594-24.34 9.906-33.9 .7187c-9.625-9.125-9.938-24.38-.7187-33.91l168-175.4L78.71 80.6c-9.219-9.5-8.906-24.78 .7187-33.91C88.99 37.5 104.2 37.82 113.3 47.41z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-tab" viewBox="0 0 448 512">
|
|
|
<path d="M32 217.1c0-8.8 7.2-16 16-16h144v-93.9c0-7.1 8.6-10.7 13.6-5.7l143.5 143.1c6.3 6.3 6.3 16.4 0 22.7L205.6 410.4c-5 5-13.6 1.5-13.6-5.7v-93.9H48c-8.8 0-16-7.2-16-16v-77.7m-32 0v77.7c0 26.5 21.5 48 48 48h112v61.9c0 35.5 43 53.5 68.2 28.3l143.6-143c18.8-18.8 18.8-49.2 0-68L228.2 78.9c-25.1-25.1-68.2-7.3-68.2 28.3v61.9H48c-26.5 0-48 21.6-48 48zM436 64h-8c-6.6 0-12 5.4-12 12v360c0 6.6 5.4 12 12 12h8c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-paste" viewBox="0 0 512 512"><path d="M160 32c11.6 0 21.3 8.2 23.5 19.2C185 58.6 191.6 64 199.2 64H208c8.8 0 16 7.2 16 16V96H96V80c0-8.8 7.2-16 16-16h8.8c7.6 0 14.2-5.4 15.7-12.8C138.7 40.2 148.4 32 160 32zM64 64h2.7C65 69 64 74.4 64 80V96c0 17.7 14.3 32 32 32H224c17.7 0 32-14.3 32-32V80c0-5.6-1-11-2.7-16H256c17.7 0 32 14.3 32 32h32c0-35.3-28.7-64-64-64H210.6c-9-18.9-28.3-32-50.6-32s-41.6 13.1-50.6 32H64C28.7 32 0 60.7 0 96V384c0 35.3 28.7 64 64 64H192V416H64c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM288 480c-17.7 0-32-14.3-32-32V192c0-17.7 14.3-32 32-32h96v56c0 22.1 17.9 40 40 40h56V448c0 17.7-14.3 32-32 32H288zM416 165.3L474.7 224H424c-4.4 0-8-3.6-8-8V165.3zM448 512c35.3 0 64-28.7 64-64V235.9c0-12.7-5.1-24.9-14.1-33.9l-59.9-59.9c-9-9-21.2-14.1-33.9-14.1H288c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H448z"/></symbol>
|
|
|
<symbol id="svg-cut" viewBox="0 0 512 512"><path d="M485.6 444.2L333.6 314.9C326.9 309.2 326.1 299.1 331.8 292.4C337.5 285.6 347.6 284.8 354.4 290.5L506.4 419.8C513.1 425.5 513.9 435.6 508.2 442.4C502.5 449.1 492.4 449.9 485.6 444.2zM485.7 67.76C492.5 62.07 502.5 62.94 508.2 69.69C513.9 76.45 513.1 86.55 506.3 92.24L208.5 343.1C218.3 359.7 224 379.2 224 400C224 461.9 173.9 512 112 512C50.14 512 0 461.9 0 400C0 338.1 50.14 288 112 288C141.5 288 168.4 299.4 188.4 318.1L262.2 256L188.4 193.9C168.4 212.6 141.5 224 112 224C50.14 224 0 173.9 0 112C0 50.14 50.14 0 112 0C173.9 0 224 50.14 224 112C224 132.8 218.3 152.3 208.5 168.9L287 235.1L485.7 67.76zM32 112C32 156.2 67.82 192 112 192C156.2 192 192 156.2 192 112C192 67.82 156.2 32 112 32C67.82 32 32 67.82 32 112zM112 480C156.2 480 192 444.2 192 400C192 355.8 156.2 320 112 320C67.82 320 32 355.8 32 400C32 444.2 67.82 480 112 480z"/></symbol>
|
|
|
<symbol id="svg-copy" viewBox="0 0 512 512"><path d="M272 416C263.2 416 256 423.2 256 432V448c0 17.67-14.33 32-32 32H64c-17.67 0-32-14.33-32-32V192c0-17.67 14.33-32 32-32h112C184.8 160 192 152.8 192 144C192 135.2 184.8 128 176 128H63.99c-35.35 0-64 28.65-64 64l.0098 256C0 483.3 28.65 512 64 512h160c35.35 0 64-28.65 64-64v-16C288 423.2 280.8 416 272 416zM502.6 86.63l-77.25-77.25C419.4 3.371 411.2 0 402.7 0H288C252.7 0 224 28.65 224 64v256c0 35.35 28.65 64 64 64h160c35.35 0 64-28.65 64-64V109.3C512 100.8 508.6 92.63 502.6 86.63zM416 45.25L466.7 96H416V45.25zM480 320c0 17.67-14.33 32-32 32h-160c-17.67 0-32-14.33-32-32V64c0-17.67 14.33-32 32-32h96l.0026 64c0 17.67 14.33 32 32 32H480V320z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-angle-double-right" viewBox="0 0 512 512"><path d="M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-angle-double-left" viewBox="0 0 512 512"><path d="M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L301.3 256 438.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-trash" viewBox="0 0 448 512">
|
|
|
<path d="M336 64l-33.6-44.8C293.3 7.1 279.1 0 264 0h-80c-15.1 0-29.3 7.1-38.4 19.2L112 64H24C10.7 64 0 74.7 0 88v2c0 3.3 2.7 6 6 6h26v368c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V96h26c3.3 0 6-2.7 6-6v-2c0-13.3-10.7-24-24-24h-88zM184 32h80c5 0 9.8 2.4 12.8 6.4L296 64H152l19.2-25.6c3-4 7.8-6.4 12.8-6.4zm200 432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V96h320v368zm-176-44V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm-80 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm160 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12z"/>
|
|
|
</symbol>
|
|
|
<symbol id="svg-keyboard-down" viewBox="0 0 576 512"><path d="M64 48c-8.8 0-16 7.2-16 16V240c0 8.8 7.2 16 16 16H512c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H64zM0 64C0 28.7 28.7 0 64 0H512c35.3 0 64 28.7 64 64V240c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zM159 359c9.4-9.4 24.6-9.4 33.9 0l95 95 95-95c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L305 505c-4.5 4.5-10.6 7-17 7s-12.5-2.5-17-7L159 393c-9.4-9.4-9.4-24.6 0-33.9zm1-167c0-8.8 7.2-16 16-16H400c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V192zM120 88h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H120c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H200c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H280c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H360c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H440c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16z"/></symbol>
|
|
|
</svg>`;function Lp(e){e.resetKeycapRegistry(),Mf();const t=document.createElement("div");t.className="ML__keyboard";const r=document.createElement("div");r.className="MLK__plate",r.innerHTML=window.MathfieldElement.createHTML(Mp+e.normalizedLayouts.map((A,M)=>kp(e,A,M)).join(""));const n=document.createElement("div");n.className="MLK__backdrop",n.appendChild(r),t.appendChild(n),t.addEventListener("pointerdown",Pp,{passive:!1});const i=t.querySelectorAll(".ML__edit-toolbar");if(i)for(const A of i)A.addEventListener("click",M=>{var $,q;let Ae=M.target,Qe="";for(;Ae&&!Qe;)Qe=($=Ae==null?void 0:Ae.getAttribute("data-command"))!=null?$:"",Ae=(q=Ae==null?void 0:Ae.parentElement)!=null?q:null;Qe&&e.executeCommand(JSON.parse(Qe))});b0(t.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const s=t.querySelectorAll(".MLK__layer");console.assert(s.length>0,"No virtual keyboards available");for(const A of s)A.addEventListener("pointerdown",M=>M.preventDefault());return e.currentLayer=e.latentLayer,t}function kp(e,t,r){const n=[];if(!("layers"in t))return"";for(const i of t.layers)n.push(`<div tabindex="-1" class="MLK__layer" id="${i.id}">`),(e.normalizedLayouts.length>1||t.displayEditToolbar)&&(n.push("<div class='MLK__toolbar' role='toolbar'>"),n.push(Ff(e,r)),t.displayEditToolbar&&n.push('<div class="ML__edit-toolbar right"></div>'),n.push("</div>")),n.push(Dp(e,i)),n.push("</div>");return n.join("")}function Dp(e,t){if(typeof t=="string")return t;let r="";if(typeof t.style=="string"?r+=`<style>${t.style}</style>`:typeof t.style=="object"&&(r+=`<style>${rf(t.style)}</style>`),t.backdrop&&(r+=`<div class='${t.backdrop}'>`),t.container&&(r+=`<div class='${t.container}'>`),t.rows){r+="<div class=MLK__rows>";for(const n of t.rows){r+="<div dir='ltr' class=MLK__row>";for(const i of n)if(i){const s=e.registerKeycap(i),[A,M]=Wf(i);/(^|\s)separator/.test(M)?r+=`<div class="${M}"`:r+=`<div tabindex="-1" id="${s}" class="${M}"`,i.tooltip&&(r+=` data-tooltip="${i.tooltip}"`),r+=`>${A}</div>`}r+="</div>"}r+="</div>"}else t.markup&&(r+=t.markup);return t.container&&(r+="</div>"),t.backdrop&&(r+="</div>"),r}function Wf(e,t={shifted:!1}){var r,n,i,s,A,M,$;let q="",Ae=(r=e.class)!=null?r:"";if(t.shifted&&af(e)&&(Ae+=" is-active"),t.shifted&&"shift"in e)typeof e.shift=="string"?q=$c(e.shift):typeof e.shift=="object"&&(q=e.shift.label?e.shift.label:(n=$c(e.shift.latex||e.shift.insert||"")||e.shift.key)!=null?n:""),typeof e.shift=="object"&&(Ae=(s=(i=e.shift.class)!=null?i:e.class)!=null?s:"");else{if(q=e.label?e.label:(A=$c(e.latex||e.insert||"")||e.key)!=null?A:"",e.shift){let Qe;typeof e.shift=="string"?Qe=$c(e.shift):e.shift.label?Qe=e.shift.label:Qe=(M=$c(e.shift.latex||e.shift.insert||"")||e.shift.key)!=null?M:"",q+=`<span class="MLK__shift">${Qe}</span>`}e.aside&&(q+=`<aside>${e.aside}</aside>`)}return e.layer&&!/layer-switch/.test(Ae)&&(Ae+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(Ae)||(Ae+=" MLK__keycap"),!/\bw[0-9]+\b/.test(Ae)&&e.width&&(Ae+=($={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[e.width])!=null?$:""),[q,Ae||"MLK__keycap"]}var Od={"[left]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-left /></svg>",command:["performWithFeedback","moveToPreviousChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-left /></svg>",command:["performWithFeedback","extendSelectionBackward"]}},"[right]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-right /></svg>",command:["performWithFeedback","moveToNextChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-right /></svg>",command:["performWithFeedback","extendSelectionForward"]}},"[up]":{class:"action hide-shift",label:"\u2191",command:["performWithFeedback","moveUp"],shift:{label:"\u219F",command:["performWithFeedback","extendSelectionUpward"]}},"[down]":{class:"action hide-shift",label:"\u2193",command:["performWithFeedback","moveDown"],shift:{label:"\u21A1",command:["performWithFeedback","extendSelectionDownward"]}},"[return]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[action]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{label:"<svg class=svg-glyph><use xlink:href=#circle-plus /></svg>",command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[hr]":{class:"separator horizontal-rule"},"[hide-keyboard]":{class:"action",command:["hideVirtualKeyboard"],width:1.5,label:"<svg class=svg-glyph-lg><use xlink:href=#svg-keyboard-down /></svg>"},"[.]":{variants:".",command:["performWithFeedback","insertDecimalSeparator"],shift:",",class:"big-op hide-shift",label:"."},"[,]":{variants:",",command:["performWithFeedback","insertDecimalSeparator"],shift:".",class:"big-op hide-shift",label:","},"[+]":{variants:[{latex:"\\sum_{#0}^{#0}",class:"small"},"\\oplus"],latex:"+",label:"+",class:"big-op hide-shift",shift:{latex:"\\sum",insert:"\\sum",class:"small"}},"[-]":{variants:["\\pm","\\ominus"],latex:"-",label:"−",shift:"\\pm",class:"big-op hide-shift"},"[/]":{class:"big-op hide-shift",shift:{class:"",latex:"\\frac{1}{#@}"},variants:["/","\\div","\\%","\\oslash"],latex:"\\frac{#@}{#?}",label:"÷"},"[*]":{variants:[{latex:"\\prod_{#0}^{#0}",class:"small"},"\\otimes","\\cdot"],latex:"\\cdot",label:"×",shift:{latex:"\\times"},class:"big-op hide-shift"},"[=]":{variants:["\\neq","\\equiv","\\varpropto","\\thickapprox","\\lt","\\gt","\\le","\\ge"],latex:"=",label:"=",shift:{label:"\u2260",latex:"\\ne"},class:"big-op hide-shift"},"[backspace]":{class:"action bottom right hide-shift",width:1.5,command:["performWithFeedback","deleteBackward"],label:"<svg class=svg-glyph><use xlink:href=#svg-delete-backward /></svg>",shift:{class:"action warning",label:"<svg class=svg-glyph><use xlink:href=#svg-trash /></svg>",command:"deleteAll"}},"[undo]":{class:"ghost if-can-undo",command:"undo",label:"<svg class=svg-glyph><use xlink:href=#svg-undo /></svg>",tooltip:"tooltip.undo"},"[redo]":{class:"ghost if-can-redo",command:"redo",label:"<svg class=svg-glyph><use xlink:href=#svg-redo /></svg>",tooltip:"tooltip.redo"},"[(]":{variants:[{latex:"\\lbrack",key:"["},"\\langle","\\lfloor","\\lceil",{latex:"\\lbrace",key:"{"}],key:"(",label:"(",shift:{label:"[",key:"["},class:"hide-shift"},"[)]":{variants:[{latex:"\\rbrack",key:"]"},"\\rangle","\\rfloor","\\rceil",{latex:"\\rbrace",key:"]"}],key:")",label:")",shift:{label:"]",latex:"\\rbrack"},class:"hide-shift"},"[0]":{variants:"0",latex:"0",label:"0",shift:"\\infty",class:"hide-shift"},"[1]":{variants:"1",latex:"1",label:"1",shift:"#@^{-1}",class:"hide-shift"},"[2]":{variants:"2",latex:"2",label:"2",shift:"#@^2",class:"hide-shift"},"[3]":{variants:"3",latex:"3",label:"3",shift:"#@^3",class:"hide-shift"},"[4]":{variants:"4",latex:"4",label:"4",shift:"#@^4",class:"hide-shift"},"[5]":{variants:"5",latex:"5",label:"5",shift:"#@^5",class:"hide-shift"},"[6]":{variants:"6",latex:"6",label:"6",shift:"#@^6",class:"hide-shift"},"[7]":{variants:"7",latex:"7",label:"7",shift:"#@^7",class:"hide-shift"},"[8]":{variants:"8",latex:"8",label:"8",shift:"#@^8",class:"hide-shift"},"[9]":{variants:"9",latex:"9",label:"9",shift:"#@^9",class:"hide-shift"},"[separator-5]":{class:"separator",width:.5},"[separator]":{class:"separator"},"[separator-10]":{class:"separator"},"[separator-15]":{class:"separator",width:1.5},"[separator-20]":{class:"separator",width:2},"[separator-50]":{class:"separator",width:5},"[shift]":{class:"shift bottom left",width:1.5,label:"<span class=caps-lock-indicator></span><svg class=svg-glyph><use xlink:href=#svg-shift /></svg>"},"[foreground-color]":{variants:"foreground-color",command:["applyStyle",{color:"red"}],label:"<span style='border-radius: 50%;width:22px;height:22px; border: 3px solid #cc2428; box-sizing: border-box'>"},"[background-color]":{variants:"background-color",command:["applyStyle",{backgroundColor:"yellow"}],label:"<span style='border-radius: 50%;width:22px;height:22px; background:#fff590; box-sizing: border-box'></span>"}};function Y0(e){var t;if(typeof e=="string"){if(e==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(e="[,]"),!Od[e])return{latex:e};e={label:e}}let r;return"label"in e&&e.label&&Od[e.label]&&(r=E(f(f({},Od[e.label]),e),{label:Od[e.label].label})),"key"in e&&e.key&&Od[e.key]&&(r=E(f(f({},Od[e.key]),e),{key:Od[e.key].key})),r?(r.command==="insertDecimalSeparator"&&(r.label=(t=window.MathfieldElement.decimalSeparator)!=null?t:"."),e.label==="[action]"&&(r=f(f({},r),window.mathVirtualKeyboard.actionKeycap)),e.label==="[shift]"&&(r=f(f({},r),window.mathVirtualKeyboard.shiftKeycap)),e.label==="[backspace]"&&(r=f(f({},r),window.mathVirtualKeyboard.backspaceKeycap)),e.label==="[tab]"&&(r=f(f({},r),window.mathVirtualKeyboard.tabKeycap)),r):e}var Lf;function Pp(e){var t;if(e.button!==0)return;const r=fd.singleton;if(!r)return;let n=e.target;for(;n&&!n.getAttribute("data-layer");)n=n.parentElement;if(n){r.currentLayer=(t=n.getAttribute("data-layer"))!=null?t:"",e.preventDefault();return}const i=nf(e.target);if(!(i!=null&&i.id))return;const s=r.getKeycap(i.id);if(!s)return;console.assert(e.type==="pointerdown");const A=new AbortController,M=A.signal;i.classList.add("is-pressed"),i.addEventListener("pointerenter",Gf(A),{capture:!0,signal:M}),i.addEventListener("pointerleave",Gf(A),{capture:!0,signal:M}),i.addEventListener("pointercancel",Gf(A),{signal:M}),i.addEventListener("pointerup",Gf(A),{signal:M}),af(s)&&(i.classList.add("is-active"),r.shiftPressCount++),s.variants&&(Lf&&clearTimeout(Lf),Lf=setTimeout(()=>{i.classList.contains("is-pressed")&&(i.classList.remove("is-pressed"),i.classList.add("is-active"),e.target&&"releasePointerCapture"in e.target&&e.target.releasePointerCapture(e.pointerId),Ef(i,()=>{A.abort(),i==null||i.classList.remove("is-active")}))},300)),e.preventDefault()}function Gf(e){return t=>{const r=nf(t.target);if(!(r!=null&&r.id))return;const n=fd.singleton;if(!n)return;const i=n.getKeycap(r.id);if(i){if(t.type==="pointerenter"&&t.target===r&&t.isPrimary&&r.classList.add("is-pressed"),t.type==="pointercancel"){r.classList.remove("is-pressed"),af(i)&&(n.shiftPressCount--,r.classList.toggle("is-active",n.isShifted)),e.abort();return}if(t.type==="pointerleave"&&t.target===r){r.classList.remove("is-pressed"),af(i)&&(n.shiftPressCount--,r.classList.toggle("is-active",n.isShifted));return}if(t.type==="pointerup"){Lf&&clearTimeout(Lf),af(i)?r.classList.toggle("is-active",n.isShifted):r.classList.contains("is-pressed")&&(r.classList.remove("is-pressed"),n.isShifted&&i.shift?typeof i.shift=="string"?n.executeCommand(["insert",i.shift,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]):w0(i.shift):w0(i),n.shiftPressCount===1&&!t.shiftKey&&(n.shiftPressCount=0)),e.abort(),t.preventDefault();return}}}}function w0(e){var t;let r=e.command;!r&&e.insert&&(r=["insert",e.insert,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),!r&&e.key&&(r=["typedText",e.key,{focus:!0,feedback:!0,simulateKeystroke:!0}]),!r&&e.latex&&(r=["insert",e.latex,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),r||(r=["typedText",e.label,{focus:!0,feedback:!0,simulateKeystroke:!0}]),(t=fd.singleton)==null||t.executeCommand(r)}function Np(e){if(e.nodeType!==1)return!1;const t=e.classList;return t.contains("MLK__keycap")||t.contains("shift")||t.contains("action")||t.contains("fnbutton")||t.contains("bigfnbutton")}function nf(e){if(!e)return;let t=e;for(;t&&!Np(t);)t=t.parentElement;return t!=null?t:void 0}function af(e){return!!e.class&&/(^|\s)shift($|\s)/.test(e.class)}var fd=class Ep{constructor(){this.originalContainerBottomPadding=null,this.keycapRegistry={},this._shiftPressCount=0;var t,r,n;this.targetOrigin=window.origin,this.originValidator="none",this._alphabeticLayout="auto",this._layouts=Object.freeze(["default"]),this._editToolbar="default",this._container=(r=(t=window.document)==null?void 0:t.body)!=null?r:null,this._visible=!1,this._rebuilding=!1,this.observer=new ResizeObserver(i=>{this.adjustBoundingRect(),this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect})}),this.listeners={};try{(n=window.top)==null||n.addEventListener("message",this)}catch(i){window.addEventListener("message",this)}document.body.addEventListener("focusin",i=>{const s=i.target;s!=null&&s.isConnected&&setTimeout(()=>{const A=q0();A&&!A.readOnly&&A.mathVirtualKeyboardPolicy==="auto"&&Q()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",i=>{i.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{q0()||this.hide()},300)})}get currentLayer(){var t,r,n;return(n=(r=(t=this._element)==null?void 0:t.querySelector(".MLK__layer.is-visible"))==null?void 0:r.id)!=null?n:""}set currentLayer(t){var r;if(!this._element){this.latentLayer=t;return}let n=t?this._element.querySelector(`#${t}.MLK__layer`):null;n||(n=this._element.querySelector(".MLK__layer")),n&&((r=this._element.querySelector(".MLK__layer.is-visible"))==null||r.classList.remove("is-visible"),n.classList.add("is-visible")),this.render()}get shiftPressCount(){return this._shiftPressCount}set shiftPressCount(t){var r;this._shiftPressCount=t>2||t<0?0:t,(r=this._element)==null||r.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.render()}get isShifted(){return this._shiftPressCount>0}resetKeycapRegistry(){this.keycapRegistry={}}registerKeycap(t){const r="ML__k"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);return this.keycapRegistry[r]=t,r}getKeycap(t){return t?this.keycapRegistry[t]:void 0}getLayer(t){const r=this.normalizedLayouts;for(const n of r)for(const i of n.layers)if(i.id===t)return i}get alphabeticLayout(){return this._alphabeticLayout}set alphabeticLayout(t){this._alphabeticLayout=t,this.rebuild()}get actionKeycap(){return this._actionKeycap}set actionKeycap(t){this._actionKeycap=typeof t=="string"?{label:t}:t}get shiftKeycap(){return this._shiftKeycap}set shiftKeycap(t){this._shiftKeycap=typeof t=="string"?{label:t}:t}get backspaceKeycap(){return this._backspaceKeycap}set backspaceKeycap(t){this._backspaceKeycap=typeof t=="string"?{label:t}:t}get tabKeycap(){return this._tabKeycap}set tabKeycap(t){this._tabKeycap=typeof t=="string"?{label:t}:t}get layouts(){return this._layouts}set layouts(t){this.updateNormalizedLayouts(t),this.rebuild()}updateNormalizedLayouts(t){const r=Array.isArray(t)?[...t]:[t],n=r.findIndex(i=>i==="default");n>=0&&r.splice(n,1,"numeric","symbols","alphabetic","greek"),this._layouts=Object.freeze(r),this._normalizedLayouts=r.map(i=>Nd(i))}get normalizedLayouts(){return this._normalizedLayouts||this.updateNormalizedLayouts(this._layouts),this._normalizedLayouts}get editToolbar(){return this._editToolbar}set editToolbar(t){this._editToolbar=t,this.rebuild()}get container(){return this._container}set container(t){this._container=t,this.rebuild()}static get singleton(){if(this._singleton===void 0)try{this._singleton=new Ep}catch(t){this._singleton=null}return this._singleton}get style(){return this._style}addEventListener(t,r,n){this.listeners[t]||(this.listeners[t]=new Set),this.listeners[t].has(r)||this.listeners[t].add(r)}dispatchEvent(t){return!this.listeners[t.type]||this.listeners[t.type].size===0?!0:(this.listeners[t.type].forEach(r=>{typeof r=="function"?r(t):r==null||r.handleEvent(t)}),!t.defaultPrevented)}removeEventListener(t,r,n){this.listeners[t]&&this.listeners[t].delete(r)}get element(){return this._element}set element(t){var r;this._element!==t&&((r=this._element)==null||r.remove(),this._element=t)}get visible(){return this._visible}set visible(t){t?this.show():this.hide()}get boundingRect(){var t;if(!this._visible)return new DOMRect;const r=(t=this._element)==null?void 0:t.getElementsByClassName("MLK__plate")[0];return r?r.getBoundingClientRect():new DOMRect}adjustBoundingRect(){var t,r;const n=this.boundingRect.height;if(this.container===document.body){(t=this._element)==null||t.style.setProperty("--_keyboard-height",`calc(${n}px + var(--_padding-top) + var(--_padding-bottom) + env(safe-area-inset-bottom, 0))`);const i=n-1;this.container.style.paddingBottom=this.originalContainerBottomPadding?`calc(${this.originalContainerBottomPadding} + ${i}px)`:`${i}px`}else(r=this._element)==null||r.style.setProperty("--_keyboard-height",`${n}px`)}rebuild(){if(this._rebuilding||!this._element)return;this._rebuilding=!0;const t=this.currentLayer;requestAnimationFrame(()=>{this._rebuilding=!1,this._element&&(this._element.remove(),this._element=void 0),this.visible&&(this.buildAndAttachElement(),this.currentLayer=t,this.render(),this.adjustBoundingRect(),this._element.classList.add("is-visible"))})}render(){if(!this._element)return;const t=this.getLayer(this.currentLayer);this._element.classList.toggle("backdrop-is-transparent",!!(t&&(t.backdrop||t.container)));const r=this._element.querySelectorAll(".MLK__layer.is-visible .MLK__keycap, .MLK__layer.is-visible .action, .fnbutton, .MLK__layer.is-visible .bigfnbutton, .MLK__layer.is-visible .shift");if(r)for(const n of r){const i=this.getKeycap(n.id);if(i){const[s,A]=Wf(i,{shifted:this.isShifted});n.innerHTML=window.MathfieldElement.createHTML(s),n.className=A}}}show(t){var r;if(this._visible)return;const n=this.container;if(n&&window.mathVirtualKeyboard&&this.stateWillChange(!0)){if(this._element||(this.buildAndAttachElement(),this.adjustBoundingRect()),!this._visible){const i=this._element.getElementsByClassName("MLK__plate")[0];if(i&&this.observer.observe(i),n===window.document.body){const s=n.style.paddingBottom;this.originalContainerBottomPadding=s;const A=i.offsetHeight-1;n.style.paddingBottom=s?`calc(${s} + ${A}px)`:`${A}px`}window.addEventListener("mouseup",this),window.addEventListener("blur",this),window.addEventListener("keydown",this,{capture:!0}),window.addEventListener("keyup",this,{capture:!0}),(r=this._element)==null||r.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.currentLayer=this.latentLayer}this._visible=!0,t!=null&&t.animate?requestAnimationFrame(()=>{this._element&&(this._element.classList.add("animate"),this._element.addEventListener("transitionend",()=>{var i;return(i=this._element)==null?void 0:i.classList.remove("animate")},{once:!0}),this._element.classList.add("is-visible"),this.stateChanged())}):(this._element.classList.add("is-visible"),this.stateChanged())}}hide(t){var r;const n=this.container;if(n&&this._visible&&this.stateWillChange(!1)){if(this._visible=!1,this._element){this.latentLayer=this.currentLayer;const i=this._element.getElementsByClassName("MLK__plate")[0];i&&this.observer.unobserve(i),window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("keydown",this,{capture:!0}),window.removeEventListener("keyup",this,{capture:!0}),window.removeEventListener("contextmenu",this,{capture:!0}),Dd(),Ip(),(r=this._element)==null||r.remove(),this._element=void 0,this.originalContainerBottomPadding!==null&&(n.style.paddingBottom=this.originalContainerBottomPadding)}this.stateChanged()}}get height(){var t,r;return(r=(t=this.element)==null?void 0:t.offsetHeight)!=null?r:0}buildAndAttachElement(){var t;console.assert(!this.element),this.element=Lp(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",r=>{r.shiftKey||((r.ctrlKey||r.button===2)&&Ef(r.target),r.preventDefault(),r.stopPropagation())},{capture:!0}),(t=this.container)==null||t.appendChild(this.element)}handleEvent(t){if(tf(t)){if(!kA(t.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${t.origin}) cannot be handled`,"SecurityError");t.data.action==="disconnect"?this.connectedMathfieldWindow=void 0:t.data.action!=="update-setting"&&t.data.action!=="proxy-created"&&t.data.action!=="execute-command"&&(console.assert(t.source!==void 0),this.connectedMathfieldWindow=t.source),this.handleMessage(t.data,t.source)}if(this._element)switch(t.type){case"mouseup":case"blur":document.body.style.userSelect="",this.shiftPressCount=0;break;case"contextmenu":t.button!==2&&t.preventDefault();break;case"keydown":{t.key==="Shift"&&!t.repeat&&(this.shiftPressCount=1);break}case"keyup":{(t.key==="Shift"||!t.getModifierState("Shift")&&this.shiftPressCount!==2)&&(this.shiftPressCount=0);break}}}handleMessage(t,r){const{action:n}=t;if(n==="execute-command"){const{command:i}=t,s=dd(i);if(window.top!==void 0&&s!=="virtual-keyboard")return;this.executeCommand(i);return}if((n==="connect"||n==="show")&&this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},r),n!=="disconnect"&&window===window.top){if(n==="show"){typeof t.animate!="undefined"?this.show({animate:t.animate}):this.show();return}if(n==="hide"){typeof t.animate!="undefined"?this.hide({animate:t.animate}):this.hide();return}if(n==="update-setting"){t.alphabeticLayout&&(this.alphabeticLayout=t.alphabeticLayout),t.layouts&&(this.layouts=t.layouts),t.editToolbar&&(this.editToolbar=t.editToolbar);return}if(n==="proxy-created"){this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},r);return}}}sendMessage(t,r,n){if(n||(n=this.connectedMathfieldWindow),this.targetOrigin===null||this.targetOrigin==="null"||n===window){window.dispatchEvent(new MessageEvent("message",{source:window,data:f({type:Ld,action:t},r)}));return}if(n)n.postMessage(f({type:Ld,action:t},r),{targetOrigin:this.targetOrigin});else if(r.command&&this.dispatchEvent(new CustomEvent("math-virtual-keyboard-command",{detail:r.command})),t==="execute-command"&&Array.isArray(r.command)&&r.command[0]==="insert"){const i=r.command[1].split("");for(const s of i)this.dispatchEvent(new KeyboardEvent("keydown",{key:s,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:s,bubbles:!0}))}}stateWillChange(t){return this.dispatchEvent(new CustomEvent("before-virtual-keyboard-toggle",{detail:{visible:t},bubbles:!0,cancelable:!0,composed:!0}))}stateChanged(){this.dispatchEvent(new Event("virtual-keyboard-toggle")),this._visible||(this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect}))}focus(){this.sendMessage("focus",{})}blur(){this.sendMessage("blur",{})}updateToolbar(t){const r=this._element;if(!r)return;r.classList.toggle("is-math-mode",t.mode==="math"),r.classList.toggle("is-text-mode",t.mode==="text"),r.classList.toggle("can-undo",t.canUndo),r.classList.toggle("can-redo",t.canRedo),r.classList.toggle("can-copy",!t.selectionIsCollapsed),r.classList.toggle("can-copy",!t.selectionIsCollapsed),r.classList.toggle("can-paste",!0);const n=r.querySelectorAll(".ML__edit-toolbar");if(n)for(const i of n)i.innerHTML=Vf(this,t)}update(t){this._style=t.style,this.updateToolbar(t)}connect(){this.connectedMathfieldWindow=window}disconnect(){this.connectedMathfieldWindow=void 0}executeCommand(t){let r,n=[],i=dd(t);return S(t)?(r=t[0],r==="performWithFeedback"&&(t=t.slice(1),i=dd(t)),n=t.slice(1)):r=t,r=r.replace(/-\w/g,s=>s[1].toUpperCase()),i==="virtual-keyboard"?oA[r].fn(void 0,...n):(this.sendMessage("execute-command",{command:t}),!1)}dispose(){window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("message",this)}};function q0(){var e,t;let r=ca(),n=null;for(;r;){if("host"in r&&((t=(e=r.host)==null?void 0:e.tagName)==null?void 0:t.toLowerCase())==="math-field"){n=r.host;break}r=r.parentNode}return n}if(N()&&!("mathVirtualKeyboard"in window))if(window===window.top){const e=fd.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>e})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>y0.singleton,configurable:!0});function Xf(e){const t={};for(const r of Object.keys(e))switch(r){case"scriptDepth":const n=e.scriptDepth;if(S(n))t.scriptDepth=[n[0],n[1]];else if(typeof n=="number")t.scriptDepth=[n,n];else if(typeof n=="string"){const[s,A]=n.split(",").map(M=>parseInt(M.trim()));t.scriptDepth=[s,A]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let i=e.mathVirtualKeyboardPolicy.toLowerCase();if(i==="sandboxed"){if(window!==window.top){const s=fd.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>s})}i="manual"}t.mathVirtualKeyboardPolicy=i;break;case"letterShapeStyle":e.letterShapeStyle==="auto"?G.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=Pe(e.macros);break;default:S(e[r])?t[r]=[...e[r]]:typeof e[r]=="object"&&!(e[r]instanceof Element)&&r!=="computeEngine"?t[r]=f({},e[r]):t[r]=e[r]}return t}function Td(e,t){let r;typeof t=="string"?r=[t]:t===void 0?r=Object.keys(e):r=t;const n={};for(const i of r)e[i]===null?n[i]=null:S(e[i])?n[i]=[...e[i]]:typeof e[i]=="object"&&!(e[i]instanceof Element)&&i!=="computeEngine"?n[i]=f({},e[i]):n[i]=e[i];return typeof t=="string"?n[t]:n}function Jf(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:je,backgroundColorMap:X,letterShapeStyle:G.locale.startsWith("fr")?"french":"tex",minFontScale:0,smartMode:!1,smartFence:!0,smartSuperscript:!0,scriptDepth:[1/0,1/0],removeExtraneousParentheses:!0,isImplicitFunction:e=>["\\sin","\\cos","\\tan","\\arcsin","\\arccos","\\arctan","\\arcsec","\\arccsc","\\arsinh","\\arcosh","\\artanh","\\arcsech","\\arccsch","\\arg","\\ch","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\sec","\\sinh","\\sh","\\tanh","\\tg","\\th","\\lg","\\lb","\\log","\\ln"].includes(e),mathModeSpace:"",placeholderSymbol:"\u25A2",contentPlaceholder:"",popoverPolicy:"auto",environmentPopoverPolicy:"off",keybindings:bs,inlineShortcuts:D,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:Fa,value:""}}function eh(e){return e.defaultMode==="inline-math"?"math":e.defaultMode}function hd(e,t){!e||!t||(S(e)?e.forEach(r=>hd(r,t)):typeof e=="object"&&!e.style.color&&!e.style.backgroundColor&&!e.style.fontFamily&&!e.style.fontShape&&!e.style.fontSeries&&!e.style.fontSize&&!e.style.variant&&!e.style.variantStyle&&(e.applyStyle(t),hd(e.body,t),hd(e.above,t),hd(e.below,t),hd(e.subscript,t),hd(e.superscript,t)))}function x0(e,t,r,n){function i(A,M){for(const $ of s)if($.style[A]!==M)return!1;return!0}if(t=e.normalizeRange(t),t[0]===t[1])return!1;const s=e.getAtoms(t,{includeChildren:!0});n.operation==="toggle"&&(r.color&&i("color",r.color)&&(r.color="none",delete r.verbatimColor),r.backgroundColor&&i("backgroundColor",r.backgroundColor)&&(r.backgroundColor="none",delete r.verbatimBackgroundColor),r.fontFamily&&i("fontFamily",r.fontFamily)&&(r.fontFamily="none"),r.fontSeries&&i("fontSeries",r.fontSeries)&&(r.fontSeries="auto"),r.fontShape&&i("fontShape",r.fontShape)&&(r.fontShape="auto"),r.fontSize&&i("fontSize",r.fontSize)&&(r.fontSize=Lo),r.variant&&i("variant",r.variant)&&(r.variant="normal"),r.variantStyle&&i("variantStyle",r.variantStyle)&&(r.variantStyle=""));for(const A of s)A.applyStyle(r);return!0}function Op(e,t){const r=e.at(e.position);if(r.type==="composition")r.value=t;else{const{caret:n}=r;r.caret=void 0;const i=new zu(t,{mode:r.mode});i.caret=n,r.parent.addChildAfter(i,r),e.position+=1}}function Tp(e){const t=e.at(e.position);t.type==="composition"&&(t.parent.removeChild(t),e.position-=1)}qe(["math","displaymath"],UA),qe("center",UA),me("displaylines","",{parse:e=>{const t=[];let r=[];e.beginContext({tabular:!0});do{if(e.end()||e.match("<}>"))break;e.matchColumnSeparator()||e.matchRowSeparator()?(t.push([r]),r=[]):r.push(...e.scan(n=>["<}>","&","\\cr","\\\\","\\tabularnewline"].includes(n)))}while(!0);return e.endContext(),t.push([r]),t},createAtom:e=>new Ua("lines",e.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),Et("array","{columns:colspec}",(e,t,r,n)=>new Ua(e,C0(t),r,{columns:n[0],mathstyleName:"textstyle"})),Et(["equation","equation*","subequations"],"",(e,t,r)=>new Ua(e,C0(t),r,{columns:[{align:"c"}]})),Et(["multline","multline*"],"",UA),Et(["align","align*","aligned","eqnarray"],"",UA),Et("split","",UA),Et(["gather","gathered"],"",UA),Et(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",UA),Et(["smallmatrix","smallmatrix*"],"[columns:colspec]",UA),Et(["cases","dcases","rcases"],"",UA);function Up(e){for(const t of e)for(const r of t)if(r.length>0)return!1;return!0}function C0(e,t=1){return Up(e)?Array(t).fill([[new zr({type:"first"}),new ql]]):e.map(r=>r.length===0?[[new zr({type:"first"})]]:r.map(n=>n.length===0?[new zr({type:"first"})]:(n[0].type!=="first"&&n.unshift(new zr({type:"first"})),n)))}function UA(e,t=[[[]]],r=[],n=[]){switch(t=C0(t,["split","align","align*","aligned","eqnarray"].includes(e)?2:1),e){case"math":return new Ua(e,t,r,{mathstyleName:"textstyle"});case"displaymath":return new Ua(e,t,r,{mathstyleName:"textstyle"});case"center":return new Ua(e,t,r,{columns:[{align:"c"}]});case"multline":case"multline*":return new Ua(e,t,r,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new Ua(e,t,r,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new Ua(e,t,r,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new Ua(e,t,r,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:Ud(n[0])});case"bmatrix":case"bmatrix*":return new Ua(e,t,r,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:Ud(n[0])});case"Bmatrix":case"Bmatrix*":return new Ua(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:Ud(n[0])});case"vmatrix":case"vmatrix*":return new Ua(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:Ud(n[0])});case"Vmatrix":case"Vmatrix*":return new Ua(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:Ud(n[0])});case"matrix":case"matrix*":return new Ua(e,t,r,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:Ud(n==null?void 0:n[0])});case"smallmatrix":case"smallmatrix*":return new Ua(e,t,r,{mathstyleName:"scriptstyle",columns:Ud(n==null?void 0:n[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new Ua(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 Ua(e,t,r,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new Ua(e,t,r,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let i=0;for(const M of t)i=Math.max(i,M.length);const s=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let A=2;for(;A<i;)s.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),A+=2;return s.push({gap:0}),new Ua(e,t,r,{arraycolsep:0,columns:s,minColumns:2})}}return new Ua(e,t,r,{mathstyleName:"textstyle"})}function Ud(e){return e!=null?e:[{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"}]}function Rp(e,t){let r=e.at(e.position);for(;r&&!(r.parent instanceof Ua);)r=r.parent;if(r&&r.type==="array"&&r.environmentName,!r||!(r.parent instanceof Ua)){const n=e.at(e.position);if(r=n,!r.parent.parent){let i=e.extractAtoms([e.position,e.lastOffset]),s=e.extractAtoms([0,e.position]);s.length===0&&(s=e0()),i.length===0&&(i=e0());let A;return t.endsWith("column")?(A=UA("split",[[s,i]]),e.root=A,Rd(A,0,0)?Qd(e,A,0,0):Rd(A,0,1)?Qd(e,A,0,1):e.position=e.offsetOf(n)):(A=UA("lines",[[s],[i]]),e.root=A,Rd(A,0,0)?Qd(e,A,0,0):Rd(A,1,0)?Qd(e,A,1,0):e.position=e.offsetOf(n)),[void 0,[0,0]]}if(r.parent instanceof ko){const i=r.parent;let s=e.extractAtoms([e.position,e.offsetOf(i.lastChild)]),A=e.extractAtoms([e.offsetOf(i.firstChild),e.position]);A.length===0&&(A=e0()),s.length===0&&(s=e0());let M="pmatrix";const $=i.leftDelim,q=i.rightDelim;$==="("&&(q===")"||q==="?")?M="pmatrix":($==="["||$==="\\lbrack")&&(q==="]"||q==="\\rbrack"||q==="?")?M="bmatrix":$==="\\vert"&&q==="\\vert"?M="vmatrix":$==="\\Vert"&&q==="\\Vert"?M="Vmatrix":($==="{"||$==="\\lbrace")&&(q==="."||q==="?")&&(M="cases");const Ae=UA(M,t.endsWith("column")?[[A,s]]:[[A],[s]]);return i.parent.addChildBefore(Ae,i),i.parent.removeChild(i),Rd(Ae,0,0)?Qd(e,Ae,0,0):t.endsWith("column")?Rd(Ae,0,1)?Qd(e,Ae,0,1):e.position=e.offsetOf(r):Rd(Ae,1,0)?Qd(e,Ae,1,0):e.position=e.offsetOf(r),[void 0,[0,0]]}}return r&&r.parent instanceof Ua?[r.parent,r.parentBranch]:[void 0,[0,0]]}function Rd(e,t,r){const n=e.getCell(t,r);return!n||n.length!==2?!1:n[1].type==="placeholder"}function Qp(e,t,r,n){const i=t.getCell(r,n);return i?[e.offsetOf(i[0]),e.offsetOf(i[i.length-1])]:-1}function Qd(e,t,r,n){const i=Qp(e,t,r,n);typeof i!="number"&&e.setSelection(i)}function Yf(e,t,r,n,i){const s=t.getCell(r,n);s&&e.setPositionHandlingPlaceholder(e.offsetOf(s[i==="start"?0:s.length-1]))}function qf(e,t){const[r,[n,i]]=Rp(e,t);if(r)switch(t){case"after row":r.addRowAfter(n),Yf(e,r,n+1,0,"end");break;case"after column":if(r.maxColumns<=r.colCount){e.announce("plonk");return}r.addColumnAfter(i),Yf(e,r,n,i+1,"end");break;case"before row":r.addRowBefore(n),Yf(e,r,n,0,"start");break;case"before column":if(r.maxColumns<=r.colCount){e.announce("plonk");return}r.addColumnBefore(i),Yf(e,r,n,i,"start");break}}function th(e){return e.contentWillChange({inputType:"insertText"})?(qf(e,"after row"),e.contentDidChange({inputType:"insertText"}),!0):!1}function Kp(e){return e.contentWillChange({inputType:"insertText"})?(qf(e,"before row"),e.contentDidChange({inputType:"insertText"}),!0):!1}function rh(e){return e.contentWillChange({inputType:"insertText"})?(qf(e,"after column"),e.contentDidChange({inputType:"insertText"}),!0):!1}function Hp(e){return e.contentWillChange({inputType:"insertText"})?(qf(e,"before column"),e.contentDidChange({inputType:"insertText"}),!0):!1}function nh(e,t){if(!e.contentWillChange({}))return!1;e.mathfield.snapshot();let r=".",n=".";switch(t){case"pmatrix":case"pmatrix*":r="(",n=")";break;case"bmatrix":case"bmatrix*":r="[",n="]";break;case"Bmatrix":case"Bmatrix*":r="\\lbrace",n="\\rbrace";break;case"vmatrix":case"vmatrix*":r="\\vert",n="\\vert";break;case"Vmatrix":case"Vmatrix*":r="\\Vert",n="\\Vert";break;case"matrix":case"matrix*":r=".",n=".";break;case"cases":case"dcases":r="\\lbrace";break;case"rcases":n="\\rbrace";break}const i=e.at(e.position),s=i.type==="array"?i:e.parentEnvironment;return s.environmentName=t,s.leftDelim=r,s.rightDelim=n,e.contentDidChange({}),!0}function ih(e,t){let r=e.at(e.position);for(;r&&!(Array.isArray(r.parentBranch)&&r.parent instanceof Ua);)r=r.parent;if(Array.isArray(r==null?void 0:r.parentBranch)&&(r==null?void 0:r.parent)instanceof Ua){const n=r.parent,i=r.parentBranch;let s;switch(t){case"row":if(n.rowCount>1){n.removeRow(i[0]);const A=n.getCell(Math.max(0,i[0]-1),i[1]);s=e.offsetOf(A[A.length-1])}break;case"column":if(n.colCount>n.minColumns){n.removeColumn(i[1]);const A=n.getCell(i[0],Math.max(0,i[1]-1));s=e.offsetOf(A[A.length-1])}break}s&&e.setPositionHandlingPlaceholder(s)}}function jp(e){return e.contentWillChange({inputType:"deleteContent"})?(ih(e,"row"),e.contentDidChange({inputType:"deleteContent"}),!0):!1}function zp(e){return e.contentWillChange({inputType:"deleteContent"})?(ih(e,"column"),e.contentDidChange({inputType:"deleteContent"}),!0):!1}_l({addRowAfter:th,addColumnAfter:rh,addRowBefore:Kp,addColumnBefore:Hp,removeRow:jp,removeColumn:zp,setEnvironment:nh},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function e0(){return[new ql]}var ah=class _p{constructor(t){this.recording=!1,this.model=t,this.reset()}reset(){this.stack=[],this.index=-1,this.lastOp=""}startRecording(){this.recording=!0}stopRecording(){this.recording=!1}canUndo(){return this.index-1>=0}canRedo(){return this.stack.length-1>this.index}stopCoalescing(t){t&&this.index>=0&&(this.stack[this.index].selection=t),this.lastOp=""}undo(){return this.canUndo()?(this.model.setState(this.stack[this.index-1],{silenceNotifications:!1,type:"undo"}),this.index-=1,this.lastOp="",!0):!1}redo(){return this.canRedo()?(this.index+=1,this.model.setState(this.stack[this.index],{silenceNotifications:!1,type:"redo"}),this.lastOp="",!0):!1}pop(){this.canUndo()&&(this.stack.splice(this.index,this.stack.length-this.index),this.index-=1)}snapshot(t){return this.recording?(t&&t===this.lastOp&&this.pop(),this.stack.splice(this.index+1,this.stack.length-this.index-1),this.stack.push(this.model.getState()),this.index+=1,this.stack.length>_p.maximumDepth&&(this.stack.shift(),this.index-=1),this.lastOp=t!=null?t:"",!0):!1}};ah.maximumDepth=1e3;var $p=ah;function B0(e,t,r){if(e.at(t).mode!=="text")return t;const n=r==="backward"?-1:1;let i;if(d.test(e.at(t).value)){let s=t,A;do A=e.at(s).mode==="text"&&d.test(e.at(s).value),s+=n;while(e.at(s)&&A);i=e.at(s)?s-2*n:s-n}else if(/\s/.test(e.at(t).value)){let s=t;for(;e.at(s)&&e.at(s).mode==="text"&&/\s/.test(e.at(s).value);)s+=n;if(!e.at(s))i=s-n;else{let A=!0;do A=e.at(s).mode==="text"&&!/\s/.test(e.at(s).value),s+=n;while(e.at(s)&&A);i=e.at(s)?s-2*n:s-n}}else{let s=t;for(;e.at(s)&&e.at(s).mode==="text"&&!/\s/.test(e.at(s).value);)s+=n;i=e.at(s)?s:s-n;let A=!0;for(;e.at(s)&&A;)A=e.at(s).mode==="text"&&/\s/.test(e.at(s).value),A&&(i=s),s+=n;i=e.at(s)?s-2*n:s-n}return i-(n>0?0:1)}function of(e,t,r){var n,i,s,A,M,$,q;const Ae=e.position;(n=r==null?void 0:r.extend)!=null&&n||e.collapseSelection(t);let Qe=e.at(e.position);if(t==="forward"&&(Qe.type==="subsup"?(Qe=Qe.rightSibling,Qe||(Qe=e.at(e.position+1))):Qe=e.at(e.position+1)),!Qe)return e.announce("plonk"),!1;let ut=e.offsetOf(Qe);if(Qe instanceof oc)ut=B0(e,ut,t);else if(Qe instanceof Ls)if(Qe.isSuggestion)for(console.assert(t==="forward");Qe&&Qe instanceof Ls;)Qe.isSuggestion=!1,ut=e.offsetOf(Qe),Qe=Qe.rightSibling;else if(t==="forward"){if(Qe=Qe.rightSibling,!Qe||!(Qe instanceof Ls))return e.announce("plonk"),!1;for(;Qe&&Qe instanceof Ls&&/[a-zA-Z\*]/.test(Qe.value);)ut=e.offsetOf(Qe),Qe=Qe.rightSibling}else{if(Qe=Qe.leftSibling,!Qe||!(Qe instanceof Ls))return e.announce("plonk"),!1;for(;Qe&&Qe instanceof Ls&&/[a-zA-Z\*]/.test(Qe.value);)ut=e.offsetOf(Qe),Qe=Qe.leftSibling}else if(t==="forward"&&Qe.type==="mopen"){let Ft=0;do Qe.type==="mopen"?Ft+=1:Qe.type==="mclose"&&(Ft-=1),Qe=Qe.rightSibling;while(!Qe.isLastSibling&&Ft!==0);ut=e.offsetOf(Qe.leftSibling)}else if(t==="backward"&&Qe.type==="mclose"){let Ft=0;do Qe.type==="mopen"?Ft+=1:Qe.type==="mclose"&&(Ft-=1),Qe=Qe.leftSibling;while(!Qe.isFirstSibling&&Ft!==0);ut=e.offsetOf(Qe)}else if(t==="backward")if(Qe.type==="first")for(;ut>0&&Qe.type==="first";)ut-=1,Qe=e.at(ut);else{const Ft=Qe.type;Qe.type==="subsup"&&(ut=e.offsetOf(e.at(ut).leftSibling)),ut-=1;let Nt=(i=e.at(ut))==null?void 0:i.type;for(;ut>=0&&Nt===Ft;)((s=e.at(ut))==null?void 0:s.type)==="subsup"?ut=e.offsetOf(e.at(ut).leftSibling):ut-=1,Nt=e.at(ut).type}else{const{type:Ft}=Qe;let Nt=(A=e.at(ut))==null?void 0:A.type;const{lastOffset:Fr}=e;for(;ut<=Fr&&(Nt===Ft||Nt==="subsup");){for(;((M=e.at(ut).rightSibling)==null?void 0:M.type)==="subsup";)ut=e.offsetOf(e.at(ut).rightSibling);ut+=1,Nt=($=e.at(ut))==null?void 0:$.type}ut-=1}if((q=r==null?void 0:r.extend)!=null&&q){if(!e.setSelection(e.anchor,ut))return e.announce("plonk"),!1}else{if(ut===e.position)return e.announce("plonk"),!1;e.position=ut}return e.announce("move",Ae),e.mathfield.stopCoalescingUndo(),!0}function Fu(e,t,r){var n,i;if(r=r!=null?r:{extend:!1},e.mathfield.adoptStyle=t==="backward"?"right":"left",t!=="forward"){const[M,$]=Bu(e);M!==void 0&&$!==void 0&&e.deleteAtoms([M,$])}if(t==="upward")return Vp(e,r);if(t==="downward")return Wp(e,r);if(r.extend){let M=t0(e,e.position,t);M<0&&(M=0),M>e.lastOffset&&(M=e.lastOffset);const $=e.setSelection(e.anchor,M);return e.mathfield.stopCoalescingUndo(),$}if(e.selectionIsPlaceholder){e.collapseSelection(t);const M=Fu(e,t);return e.mathfield.stopCoalescingUndo(),M}let s=e.position;const A=s;if(e.collapseSelection(t)?(s=e.position,oh(e,s)||(s=t0(e,s,t))):s=t0(e,s,t),s<0||s>e.lastOffset){let M=!0;return e.silenceNotifications||(M=(i=(n=e.mathfield.host)==null?void 0:n.dispatchEvent(new CustomEvent("move-out",{detail:{direction:t},cancelable:!0,bubbles:!0,composed:!0})))!=null?i:!0),M&&e.announce("plonk"),M}return e.setPositionHandlingPlaceholder(s),e.mathfield.stopCoalescingUndo(),e.announce("move",A),!0}function t0(e,t,r){return t=t+(r==="forward"?1:-1),t<0||t>e.lastOffset||oh(e,t)?t:t0(e,t,r)}function oh(e,t){var r;const n=e.at(t);let i=n.parent;for(;i&&!i.inCaptureSelection;)i=i.parent;return!(i!=null&&i.inCaptureSelection||(r=n.parent)!=null&&r.skipBoundary&&(!n.isFirstSibling&&n.isLastSibling||n.type==="first")||e.mathfield.hasEditablePrompts&&!n.parentPrompt)}function Zp(e,t,r){let n=1/0,i=0;for(;i<t.length;i++){const s=JA(e.getHTMLElement(t[i])).right,A=Math.abs(r-s);if(A<=n)n=A;else break}return t[i-1]}function r0(e,t,r,n,i){const s=e.mathfield.hasEditablePrompts,A=s?r.filter(q=>q.type==="prompt"&&!q.captureSelection):r,M=JA(e.mathfield.getHTMLElement(t)).right,$=e.offsetOf(Zp(e.mathfield,A,M))-(s?1:0);if(n){const[q,Ae]=e.selection.ranges[0];let Qe;$<(i==="up"?q:Ae)?Qe={ranges:[[$,Ae]],direction:"backward"}:Qe={ranges:[[q,$]],direction:"forward"},e.setSelection(Qe)}else e.setPositionHandlingPlaceholder($);e.announce(`move ${i}`)}function Vp(e,t){var r,n;const i=(r=t==null?void 0:t.extend)!=null?r:!1;i||e.collapseSelection("backward");const s=()=>{var $,q;let Ae=!0;return e.silenceNotifications||(Ae=(q=($=e.mathfield.host)==null?void 0:$.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?q:!0),e.announce(Ae?"plonk":"line"),Ae},A=e.at(e.position);let M=A;for(;M&&M.parentBranch!=="below"&&!(Array.isArray(M.parentBranch)&&M.parent instanceof Ua);)M=M.parent;if(Array.isArray(M==null?void 0:M.parentBranch)&&M.parent instanceof Ua){const $=M.parent;if(M.parentBranch[0]<1)return s();const q=M.parentBranch[0]-1,Ae=$.array[q][M.parentBranch[1]];if(!Ae.some(ut=>ut.type==="prompt"&&!ut.captureSelection)&&e.mathfield.hasEditablePrompts)return s();r0(e,A,Ae,i,"up")}else if(M){const $=(n=M.parent.branch("above"))!=null?n:M.parent.createBranch("above");if(!$.some(Ae=>Ae.type==="prompt"&&Ae.placeholderId)&&e.mathfield.hasEditablePrompts)return s();r0(e,A,$,i,"up")}else return s();return e.mathfield.stopCoalescingUndo(),!0}function Wp(e,t){var r,n;const i=(r=t==null?void 0:t.extend)!=null?r:!1;i||e.collapseSelection("forward");const s=()=>{var $,q;let Ae=!0;return e.silenceNotifications||(Ae=(q=($=e.mathfield.host)==null?void 0:$.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?q:!0),e.announce(Ae?"plonk":"line"),Ae},A=e.at(e.position);let M=A;for(;M&&M.parentBranch!=="above"&&!(Array.isArray(M.parentBranch)&&M.parent instanceof Ua);)M=M.parent;if(Array.isArray(M==null?void 0:M.parentBranch)&&M.parent instanceof Ua){const $=M.parent;if(M.parentBranch[0]+1>$.array.length-1)return s();const q=M.parentBranch[0]+1,Ae=$.array[q][M.parentBranch[1]];if(!Ae.some(ut=>ut.type==="prompt"&&!ut.captureSelection)&&e.mathfield.hasEditablePrompts)return s();r0(e,A,Ae,i,"down")}else if(M){const $=(n=M.parent.branch("below"))!=null?n:M.parent.createBranch("below");if(!$.some(Ae=>Ae.type==="prompt")&&e.mathfield.hasEditablePrompts)return s();r0(e,A,$,i,"down")}else return s();return!0}function sh(e){const t=e.position,r=e.at(t).parent;return r!=null&&r.parent?(e.position=e.offsetOf(r),e.mathfield.stopCoalescingUndo(),e.announce("move",t),!0):(e.announce("plonk"),!1)}function Gp(e){let t=0,r=e.at(e.position),n=!1;for(;r;)(!r.hasEmptyBranch("superscript")||!r.hasEmptyBranch("subscript"))&&(t+=1),r.hasEmptyBranch("superscript")?r.hasEmptyBranch("subscript")||(n=!1):n=!0,r=r.parent;return n?t:0}function Xp(e){let t=0,r=e.at(e.position),n=!1;for(;r;)(!r.hasEmptyBranch("superscript")||!r.hasEmptyBranch("subscript"))&&(t+=1),r.hasEmptyBranch("superscript")?r.hasEmptyBranch("subscript")||(n=!0):n=!1,r=r.parent;return n?t:0}function lh(e){var t;if(e.collapseSelection(),Gp(e)>=e.mathfield.options.scriptDepth[1])return e.announce("plonk"),!1;let r=e.at(e.position);return r.subsupPlacement===void 0&&(((t=r.rightSibling)==null?void 0:t.type)!=="subsup"&&r.parent.addChildAfter(new mu({style:r.computedStyle}),r),r=r.rightSibling),r.createBranch("superscript"),e.setSelection(e.getSiblingsRange(e.offsetOf(r.superscript[0]))),!0}function ch(e){var t;if(e.collapseSelection(),Xp(e)>=e.mathfield.options.scriptDepth[0])return e.announce("plonk"),!1;let r=e.at(e.position);return r.subsupPlacement===void 0&&(((t=e.at(e.position+1))==null?void 0:t.type)!=="subsup"&&r.parent.addChildAfter(new mu({style:e.at(e.position).computedStyle}),r),r=e.at(e.position+1)),r.createBranch("subscript"),e.setSelection(e.getSiblingsRange(e.offsetOf(r.subscript[0]))),!0}function Jp(){function e($){const q=[],Ae=[];return[...$.querySelectorAll(`input, select, textarea, a[href], button,
|
|
|
[tabindex], audio[controls], video[controls],
|
|
|
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(t).forEach((ut,Ft)=>{const Nt=n(ut);Nt===0?q.push(ut):Ae.push({documentOrder:Ft,tabIndex:Nt,node:ut})}),Ae.sort((ut,Ft)=>ut.tabIndex===Ft.tabIndex?ut.documentOrder-Ft.documentOrder:ut.tabIndex-Ft.tabIndex).map(ut=>ut.node).concat(q)}function t($){return!(!r($)||i($)||n($)<0)}function r($){return!($.disabled||$.type==="hidden"&&$.tagName.toUpperCase()==="INPUT"||M($))}function n($){var q;const Ae=Number.parseInt((q=$.getAttribute("tabindex"))!=null?q:"NaN",10);return Number.isNaN(Ae)?$.contentEditable==="true"||($.nodeName==="AUDIO"||$.nodeName==="VIDEO")&&$.getAttribute("tabindex")===null?0:$.tabIndex:Ae}function i($){return $.tagName.toUpperCase()==="INPUT"&&$.type==="radio"&&!A($)}function s($,q){for(const Ae of $)if(Ae.checked&&Ae.form===q)return Ae;return null}function A($){var q;if(!$.name)return!0;const Qe=((q=$.form)!=null?q:$.ownerDocument).querySelectorAll('input[type="radio"][name="'+$.name+'"]'),ut=s(Qe,$.form);return!ut||ut===$}function M($){if(!N()||$===document.activeElement||$.contains(document.activeElement))return!1;if(getComputedStyle($).visibility==="hidden")return!0;const q=$.getBoundingClientRect();if(q.width===0||q.height===0)return!0;for(;$;){if(getComputedStyle($).display==="none")return!0;$=$.parentElement}return!1}return N()?e(document.body):[]}function Lc(e,t,r="forward"){const n=e.position;if(Array.isArray(t)){const i=e.offsetOf(t[0]),s=e.offsetOf(t[t.length-1]);return r==="forward"?e.setSelection(i,s):e.setSelection(s,i),e.announce("move",n),e.mathfield.stopCoalescingUndo(),!0}return r==="forward"?Lc(e,[t.leftSibling,t]):Lc(e,[t,t.leftSibling])}function ou(e,t){const r=e.position;if(typeof t=="number"&&(t=e.at(t)),t.type==="prompt")e.setSelection(e.offsetOf(t.firstChild),e.offsetOf(t.lastChild));else{const n=e.offsetOf(t);t.type==="placeholder"?e.setSelection(n-1,n):e.position=n}return e.announce("move",r),e.mathfield.stopCoalescingUndo(),!0}function n0(e,t,r=!0){var n,i;const s=t==="forward"?1:-1;e.at(e.anchor).type==="placeholder"&&Fu(e,t);let A;const M=e.at(e.anchor).parentPrompt;M?t==="forward"?A=e.offsetOf(M)+1:A=e.offsetOf(M.leftSibling):A=Math.max(e.position+s,0);const $=S0(e,A,t);if(!$||t==="forward"&&e.offsetOf($)<A||t==="backward"&&e.offsetOf($)>A){if(!r||!((i=(n=e.mathfield.host)==null?void 0:n.dispatchEvent(new CustomEvent("move-out",{detail:{direction:t},cancelable:!0,bubbles:!0,composed:!0})))==null||i))return e.announce("plonk"),!1;const Ae=Jp();if(!document.activeElement||Ae.length<=1)return e.announce("plonk"),!1;let Qe=Ae.indexOf(document.activeElement)+s;return Qe<0&&(Qe=Ae.length-1),Qe>=Ae.length&&(Qe=0),Ae[Qe].focus(),e.mathfield.stopCoalescingUndo(),!0}return ou(e,$),!0}function S0(e,t=0,r="forward"){return e.findAtom(n=>n.type==="placeholder"||n.type==="prompt"||!e.mathfield.readOnly&&n.treeDepth>2&&n.isFirstSibling&&n.isLastSibling,t,r)}_l({moveToOpposite:e=>{const t={superscript:"subscript",subscript:"superscript",above:"below",below:"above"},r=e.at(e.position),{parent:n}=r;if(!n)return e.announce("plonk"),!1;const i=r.parentBranch;let s;if(typeof i=="string"&&(s=t[i]),!s){const M=r.subsupPlacement?ch(e):lh(e);return e.mathfield.stopCoalescingUndo(),M}n.branch(s)||n.createBranch(s);const A=e.setSelection(e.getBranchRange(e.offsetOf(n),s));return e.mathfield.stopCoalescingUndo(),A},moveBeforeParent:e=>{const{parent:t}=e.at(e.position);return t?(e.position=e.offsetOf(t),e.mathfield.stopCoalescingUndo(),!0):(e.announce("plonk"),!1)},moveAfterParent:e=>sh(e),moveToNextChar:e=>Fu(e,"forward"),moveToPreviousChar:e=>Fu(e,"backward"),moveUp:e=>Fu(e,"upward"),moveDown:e=>Fu(e,"downward"),moveToNextWord:e=>of(e,"forward"),moveToPreviousWord:e=>of(e,"backward"),moveToGroupStart:e=>{const t=e.offsetOf(e.at(e.position).firstSibling);return t===e.position?(e.announce("plonk"),!1):(e.position=t,e.mathfield.stopCoalescingUndo(),!0)},moveToGroupEnd:e=>{const t=e.offsetOf(e.at(e.position).lastSibling);return t===e.position?(e.announce("plonk"),!1):(e.position=t,e.mathfield.stopCoalescingUndo(),!0)},moveToNextGroup:e=>{var t,r,n,i;if(e.position===e.lastOffset&&e.anchor===e.lastOffset)return n0(e,"forward");const s=e.at(e.position);if(s.mode==="text"){if(e.selectionIsCollapsed){let ut=s;for(;ut&&ut.mode==="text";)ut=ut.leftSibling;let Ft=s;for(;((t=Ft.rightSibling)==null?void 0:t.mode)==="text";)Ft=Ft.rightSibling;if(ut&&Ft)return Lc(e,[ut,Ft])}if(s.rightSibling.mode==="text"){let ut=s;for(;ut&&ut.mode==="text";)ut=ut.rightSibling;return ut?(ou(e,(r=ut.leftSibling)!=null?r:ut),e.mathfield.switchMode("math"),!0):ou(e,e.lastOffset)}}const M=e.at(e.anchor).parentPrompt,$=M?e.offsetOf(M)+1:Math.max(e.position+1,0),q=S0(e,$,"forward");if(q)return ou(e,q);const Ae=Ah(e,s,ut=>ut.type==="leftright"||ut.type==="text","forward");if(Ae){if(Ae.mode==="text"){let ut=Ae;for(;ut&&ut.mode==="text";)ut=ut.rightSibling;return Lc(e,[(n=Ae.leftSibling)!=null?n:Ae,(i=ut.leftSibling)!=null?i:ut])}return Lc(e,Ae)}const Qe=s.parent;if(Qe){if(Qe.type==="leftright"||Qe.type==="surd")return Lc(e,Qe);if(s.parentBranch==="superscript"&&Qe.subscript)return Lc(e,Qe.subscript);if(s.parentBranch==="above"&&Qe.below)return Lc(e,Qe.below);if(s.parentBranch==="superscript"||s.parentBranch==="subscript")return ou(e,Qe);if(s.parentBranch==="above"||s.parentBranch==="below")return Lc(e,Qe)}return ou(e,e.lastOffset)},moveToPreviousGroup:e=>{var t;if(e.position===0&&e.anchor===0)return n0(e,"backward");let r=e.at(e.position);const n=r.mode;if(n==="text"){if(e.selectionIsCollapsed){let M=r;for(;M&&M.mode==="text";)M=M.leftSibling;let $=r;for(;((t=$.rightSibling)==null?void 0:t.mode)==="text";)$=$.rightSibling;if(M&&$)return Lc(e,[M,$])}for(;r&&r.mode==="text";)r=r.leftSibling;return r?ou(e,r):ou(e,0)}const i=e.at(e.anchor).parentPrompt,s=i?e.offsetOf(i.leftSibling):Math.max(e.position-1,0),A=S0(e,s,"backward");if(A)return ou(e,A);if(n==="math"){const M=Ah(e,r,q=>q.type==="leftright"||q.type==="text","backward");if(M){if(M.mode==="text"){let q=M;for(;q&&q.mode==="text";)q=q.leftSibling;return Lc(e,[M,q])}return Lc(e,M)}const $=r.parent;if($){if($.type==="leftright"||$.type==="surd")return Lc(e,$);if(r.parentBranch==="subscript"&&$.superscript)return Lc(e,$.superscript);if(r.parentBranch==="below"&&$.above)return Lc(e,$.above);if(r.parentBranch==="superscript"||r.parentBranch==="subscript")return ou(e,$);if(r.parentBranch==="above"||r.parentBranch==="below")return Lc(e,$)}return ou(e,0)}return!1},moveToMathfieldStart:e=>e.selectionIsCollapsed&&e.position===0?(e.announce("plonk"),!1):(e.position=0,e.mathfield.stopCoalescingUndo(),!0),moveToMathfieldEnd:e=>e.selectionIsCollapsed&&e.position===e.lastOffset?(e.announce("plonk"),!1):(e.position=e.lastOffset,e.mathfield.stopCoalescingUndo(),!0),moveToSuperscript:lh,moveToSubscript:ch},{target:"model",changeSelection:!0}),_l({moveToNextPlaceholder:e=>n0(e,"forward"),moveToPreviousPlaceholder:e=>n0(e,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function Ah(e,t,r,n){if(n==="forward"){let s=t.rightSibling;for(;s&&!r(s);)s=s.rightSibling;return s}let i=t.leftSibling;for(;i&&!r(i);)i=i.leftSibling;return i}function i0(e,t,r){typeof t=="function"&&(r=t,t=1/0),t===void 0&&(t=1/0);let n=e.position,i=!1,s="";for(;!i;){const A=e.at(n);i=t===0||A===void 0||A.type==="first"||A.mode!=="math"||!(A.type&&/mord|mpunct|operator/.test(A.type)||A.type==="mop"&&/[a-zA-Z ]+/.test(A.value))||!A.hasEmptyBranch("superscript")||!A.hasEmptyBranch("subscript")||typeof r=="function"&&!r(A),i||(A.mode="text",A.command=A.value,A.verbatimLatex=void 0,s+=A.value),n-=1,t-=1}e.contentDidChange({data:s,inputType:"insertText"})}function Kd(e,t,r){typeof t=="function"&&(r=t,t=1/0),t===void 0&&(t=1/0);let n=e.position,i=!1;const s=[];for(;!i;){const A=e.at(n);i=t===0||!A||A.type==="first"||A.isFirstSibling||A.mode!=="text"||A.value===" "||typeof r=="function"&&!r(A),i||(s.push(zr.serialize([A],{defaultMode:"math"})),A.mode="math"),n-=1,t-=1}E0(e),e.contentDidChange({data:Ca(s),inputType:"insertText"})}function E0(e){var t;let r=e.position-1;for(;r>=0&&((t=e.at(r))==null?void 0:t.mode)==="math";)r-=1;if(!(r<0)&&e.at(r).mode==="text"&&e.at(r).value===" "&&e.at(r-1).mode==="math"){e.at(r-1).parent.removeChild(e.at(r-1));const n=e.silenceNotifications;e.silenceNotifications=!0,e.position-=1,e.silenceNotifications=n,e.contentDidChange({inputType:"deleteContent"})}}function Yp(e){let t="",r=e.position,n=!1;for(;!n;){const i=e.at(r);n=!(i&&(i.mode==="text"||i.mode==="math"&&i.type&&/mord|mpunct/.test(i.type))),n||(t=i.value+t),r-=1}return t}function qp(e,t,r){const{model:n}=e;if(n.mode==="latex"||!n.at(n.position).isLastSibling||!r||!Wa(r))return!1;const i=ws(r);if(!n.selectionIsCollapsed)return!!(e.model.mode==="text"&&/[/_^]/.test(i));const s=Yp(n)+i;if(e.model.mode==="text"){if(t==="Esc"||/[/\\]/.test(i))return!0;if(/[\^_]/.test(i))return/(^|\s)[a-zA-Z][^_]$/.test(s)&&Kd(n,1),!0;const A={")":"(","}":"{","]":"["}[i],{parent:M}=n.at(n.position);if(A&&M instanceof ko&&M.leftDelim===A)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(s))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(i))return!0;if(/(^|[^a-zA-Z'’])[a-zA-Z] $/.test(s))return Kd(n,1),!1;if(/\D\.[^\d\s]$/.test(s)){Kd(n,1);const $=n.at(n.position);return $.value="\u22C5",$.style.variant="normal",$.command="\\cdot",$.verbatimLatex=void 0,n.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(s)||/\.\d$/.test(s)||/\([\d+\-.]$/.test(s))return Kd(n,1),!0;if(/\([a-z][,;]$/.test(s))return Kd(n,2),!0;if(/[\d+\-=><*|]$/.test(i))return E0(n),!0}else{if(t==="[Space]")return i0(n,void 0,A=>/[a-z][:,;.]$/.test(A.value)),!0;if(/[a-zA-Z]{3,}$/.test(s)&&!/(dxd|abc|xyz|uvw)$/.test(s))return i0(n,void 0,A=>/[a-zA-Z]/.test(A.value)),!0;if(/(^|\W)(if)$/i.test(s))return i0(n,1),!0;if(/(\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5){3,}$/u.test(s)&&!/(αβγ)$/.test(s))return i0(n,void 0,A=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(A.value)),!0;if(i==="?"||i==="."&&!/[\d-+]\.$/.test(s))return!0}return!1}function em(e,t){if(!e.isSelectionEditable||!e.keystrokeCaptionVisible)return;const r=uh(),n=e.element.getBoundingClientRect();r.style.left=`${n.left}px`,r.style.top=`${n.top-64}px`,r.innerHTML=window.MathfieldElement.createHTML("<span>"+(Ka(t)||t)+"</span>"+r.innerHTML),r.style.visibility="visible",setTimeout(()=>{r.childNodes.length>0&&r.childNodes[r.childNodes.length-1].remove(),r.childNodes.length===0&&(r.style.visibility="hidden")},3e3)}function tm(e){if(e.keystrokeCaptionVisible=!e.keystrokeCaptionVisible,e.keystrokeCaptionVisible){const t=uh();t.innerHTML=""}else{const t=Sd("mathlive-keystroke-caption-panel");t.style.visibility="hidden"}return!1}function uh(){const e=document.getElementById("mathlive-keystroke-caption-panel");return e||(lc("keystroke-caption"),lc("core"),Sd("mathlive-keystroke-caption-panel"))}function rm(){document.getElementById("mathlive-keystroke-caption-panel")&&(Gd("mathlive-keystroke-caption-panel"),wc("core"),wc("keystroke-caption"))}function dh(e,t){var r,n,i;const{model:s}=e,A=fc(t);if(t.isTrusted){li(t);const Ft=zi();e.keyboardLayout!==Ft.id&&(e.keyboardLayout=Ft.id,e._keybindings=void 0)}if(clearTimeout(e.inlineShortcutBufferFlushTimer),e.inlineShortcutBufferFlushTimer=0,em(e,A),t.isTrusted&&t.defaultPrevented)return e.flushInlineShortcutBuffer(),!1;let M,$="",q;const Ae=e.inlineShortcutBuffer;if(e.isSelectionEditable){if(s.mode==="math")if(A==="[Backspace]")Ae.pop();else if(!Wa(t))e.flushInlineShortcutBuffer();else{const Ft=ws(t),Nt=[...(n=(r=Ae[Ae.length-1])==null?void 0:r.keystrokes)!=null?n:[],Ft];Ae.push({state:s.getState(),keystrokes:Nt,leftSiblings:nm(e)});let Fr=0,In="";for(;!M&&Fr<Nt.length;)q=Ae.length-(Nt.length-Fr),In=Nt.slice(Fr).join(""),M=MA(Ae[q].leftSiblings,In,e.options.inlineShortcuts),!M&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(In)&&(M=e.options.onInlineShortcut(e,In)),Fr+=1;e.flushInlineShortcutBuffer({defer:!0})}e.options.smartMode&&(M?e.switchMode("math"):qp(e,A,t)&&(e.switchMode({math:"text",text:"math"}[s.mode]),$=""))}if(!M){if($||($=Hc(e.keybindings,s.mode,t)),!$&&(A==="[Enter]"||A==="[Return]")){let Ft=!1;return s.contentWillChange({inputType:"insertLineBreak"})&&(e.host&&(Ft=!e.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),Ft||t.preventDefault&&(t.preventDefault(),t.stopPropagation()),s.contentDidChange({inputType:"insertLineBreak"})),Ft}if((!$||A==="[Space]")&&s.mode==="math"){if(A==="[Space]"){if(e.adoptStyle="none",e.flushInlineShortcutBuffer(),e.options.mathModeSpace)return aa.insert(s,e.options.mathModeSpace,{format:"latex",mode:"math"}),e.snapshot("insert-space"),$="",e.dirty=!0,e.scrollIntoView(),t.preventDefault&&(t.preventDefault(),t.stopPropagation()),!1;const Ft=s.at(s.position+1),Nt=s.at(s.position-1);if((Ft==null?void 0:Ft.mode)==="text"||(Nt==null?void 0:Nt.mode)==="text")return aa.insert(s," ",{mode:"text"}),e.snapshot("insert-space"),e.dirty=!0,e.scrollIntoView(),!1}(i=s.at(s.position))!=null&&i.isDigit()&&window.MathfieldElement.decimalSeparator===","&&ws(t)===","&&($="insertDecimalSeparator")}}if(!M&&!$){if(s.mathfield.smartFence){if(F0(s,ws(t),e.effectiveStyle))return e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}else{const{parent:Ft}=s.at(s.position);if(Ft instanceof ko&&Ft.rightDelim==="?"&&s.at(s.position).isLastSibling&&/^[)}\]|]$/.test(A))return e.snapshot(),Ft.isDirty=!0,Ft.rightDelim=A,s.position+=1,s.selectionDidChange(),s.contentDidChange({data:ws(t),inputType:"insertText"}),e.snapshot("insert-fence"),e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1;if(!s.selectionIsCollapsed){const Nt=ws(t);if(Nt==="("||Nt==="{"||Nt==="["){const Fr={"(":"(","{":"\\lbrace","[":"\\lbrack"}[Nt],In={"(":")","{":"\\rbrace","[":"\\rbrack"}[Nt],[Cr,an]=Is(s.selection);return e.snapshot(),s.position=an,aa.insert(s,In,{format:"latex"}),s.position=Cr,aa.insert(s,Fr,{format:"latex"}),s.setSelection(Cr+1,an+1),s.contentDidChange({data:Nt,inputType:"insertText"}),e.snapshot("insert-fence"),e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}}}return!0}const Qe=s.at(Math.max(s.position,s.anchor)),{parent:ut}=Qe;if($==="moveAfterParent"&&(ut==null?void 0:ut.type)==="leftright"&&Qe.isLastSibling&&e.options.smartFence&&F0(s,".",e.defaultStyle)&&($="",xs(e)),e.keyboardDelegate.cancelComposition(),$)e.executeCommand($);else if(M){const Ft=e.effectiveStyle;s.setState(Ae[q].state);const Nt=Ae[Ae.length-1].keystrokes;for(const Fr of Nt)aa.insert(s,Fr,{silenceNotifications:!0,style:Ft});e.snapshot("insert-shortcut"),s.setState(Ae[q].state),s.deferNotifications({content:!0,selection:!0,data:M,type:"insertText"},()=>(aa.insert(s,M,{format:"latex",style:Ft}),E0(e.model),M.endsWith(" ")&&(e.switchMode("text"),aa.insert(s," ",{style:Ft,mode:"text"})),e.snapshot(),s.selectionIsCollapsed||e.flushInlineShortcutBuffer(),!0)),e.dirty=!0,s.announce("replacement")}return e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}function _0(e,t,r){const{model:n}=e;if(!e.isSelectionEditable){n.announce("plonk");return}r!=null||(r={}),r.focus&&e.focus(),r.feedback&&window.MathfieldElement.playSound("keypress"),typeof r.mode=="string"&&(e.switchMode(r.mode),e.snapshot());let i=_s(t);const s=window.mathVirtualKeyboard;if(s!=null&&s.isShifted&&(i=typeof i=="string"?i.toUpperCase():i.map($=>$.toUpperCase())),r.simulateKeystroke){let $=!0;for(const q of i)dh(e,new KeyboardEvent("keypress",{key:q}))&&($=!1);if($)return}const A=n.at(n.position),M=f(f({},A.computedStyle),e.defaultStyle);if(n.selectionIsCollapsed||(n.deleteAtoms(Is(n.selection)),e.snapshot("delete")),n.mode==="latex")n.deferNotifications({content:!0,selection:!0,data:t,type:"insertText"},()=>{iu(e);for(const $ of i)aa.insert(n,$);e.snapshot("insert-latex"),aA(e)});else if(n.mode==="text"){for(const $ of i)aa.insert(n,$,{style:M});e.snapshot("insert-text")}else if(n.mode==="math")for(const $ of i)im(e,$,M,A);e.dirty=!0,e.scrollIntoView()}function nm(e){const t=e.model,r=[];let n=t.at(Math.min(t.position,t.anchor));for(;n.type!=="first";)r.push(n),n=n.leftSibling;return r}function im(e,t,r,n){const i=e.model;let s={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[t];if(t===" "&&e.options.mathModeSpace&&(s=["insert",e.options.mathModeSpace]),s){e.executeCommand(s);return}if(/\d/.test(t)&&e.options.smartSuperscript&&n.parentBranch==="superscript"&&n.parent.type!=="mop"&&n.parent.type!=="operator"&&n.parent.type!=="extensible-symbol"&&n.hasNoSiblings){am(i),aa.insert(i,t,{style:r}),e.snapshot(),sh(i),e.snapshot();return}if(/[a-zA-Z0-9]/.test(t)&&e.adoptStyle!=="none"){const A=e.adoptStyle==="left"?n:n.parent?n.rightSibling:null;(A==null?void 0:A.type)==="mord"&&/[a-zA-Z0-9]/.test(A.value)&&(r=f({},r),A.style.variant&&(r.variant=A.style.variant),A.style.variantStyle&&(r.variantStyle=A.style.variantStyle))}aa.insert(i,t,{style:r}),e.snapshot(`insert-${i.at(i.position).type}`)}function am(e){e.selectionIsCollapsed||(e.deleteAtoms(Is(e.selection)),e.mathfield.snapshot("delete"))}function F0(e,t,r){if(!t||e.mode!=="math")return!1;const n=e.at(e.position),{parent:i}=n,s={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[t];if(!s)return!1;const A=cl[s],M=Yl[s];if(!e.selectionIsCollapsed){e.mathfield.snapshot();const[$,q]=Is(e.selection),Ae=e.extractAtoms([$,q]),Qe=i.addChildrenAfter([new ko("left...right",Ae,{leftDelim:s,rightDelim:M})],e.at($));return e.setSelection(e.offsetOf(Qe.firstChild),e.offsetOf(Qe.lastChild)),e.mathfield.snapshot("insert-fence"),e.contentDidChange({data:s,inputType:"insertText"}),!0}if(s==="|"){const $=i instanceof ko?i.leftDelim+i.rightDelim:"";if($==="\\lbrace\\rbrace"||$==="\\{\\}"||$==="\\lbrace?")return e.mathfield.snapshot(),aa.insert(e,"\\,\\middle\\vert\\,",{format:"latex",style:r}),e.mathfield.snapshot("insert-fence"),e.contentDidChange({data:s,inputType:"insertText"}),!0}if(M){if(i instanceof ko&&i.firstChild===n&&(i.leftDelim==="?"||i.leftDelim==="."))return i.leftDelim=s,i.isDirty=!0,e.mathfield.snapshot(),e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;if(!(i instanceof ko)){let Qe=n;for(;Qe&&!(Qe.type==="mclose"&&Qe.value===M);)Qe=Qe.rightSibling;if(Qe){e.mathfield.snapshot();const ut=e.extractAtoms([e.offsetOf(n),e.offsetOf(Qe)]);return ut.pop(),i.addChildrenAfter([new ko("left...right",ut,{leftDelim:s,rightDelim:M})],n),e.position=e.offsetOf(i.firstChild)+1,e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}}const $=e.offsetOf(n.lastSibling);let q;for(q=e.position;q<=$;q++){const Qe=e.at(q);if(Qe instanceof ko&&(Qe.leftDelim==="?"||Qe.leftDelim===".")&&fh(s,Qe.rightDelim))break}const Ae=e.at(q);if(q<=$&&Ae instanceof ko){Ae.leftDelim=s,e.mathfield.snapshot();let Qe=e.extractAtoms([e.position,q-1]);return Qe=Qe.filter(ut=>ut.type!=="first"),Ae.addChildren(Qe,Ae.parentBranch),e.position+=1,e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}if(i instanceof ko&&(i.leftDelim==="?"||i.leftDelim===".")&&fh(s,i.rightDelim)){i.isDirty=!0,i.leftDelim=s,e.mathfield.snapshot();const Qe=e.extractAtoms([e.offsetOf(n.firstSibling),e.position]);for(const ut of Qe)i.parent.addChildBefore(ut,i);return e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}if(!(i instanceof ko&&i.leftDelim==="|")){if(e.mathfield.snapshot(),aa.insert(e,`\\left${s}\\right?`,{format:"latex",style:r}),n.lastSibling.type!=="first"){const Qe=e.offsetOf(n.lastSibling),ut=e.extractAtoms([e.position,Qe]);e.at(e.position).body=ut,e.position-=1}return e.mathfield.snapshot("insert-fence"),!0}}if(A){let $=n;for(;$;){if($.type==="mopen"&&$.value===A){e.mathfield.snapshot();const Ft=$.leftSibling,Nt=e.extractAtoms([e.offsetOf($.leftSibling),e.offsetOf(n)]);Nt.shift();const Fr=new ko("left...right",Nt,{leftDelim:A,rightDelim:s});return i.addChildrenAfter([Fr],Ft),e.position=e.offsetOf(Fr),e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}$=$.leftSibling}if(i instanceof ko&&n.isLastSibling&&I0(i.leftDelim,s))return e.mathfield.snapshot(),i.isDirty=!0,i.rightDelim=s,e.position+=1,e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;const q=e.offsetOf(n.firstSibling);let Ae;for(Ae=e.position;Ae>=q;Ae--){const Ft=e.at(Ae);if(Ft instanceof ko&&(Ft.rightDelim==="?"||Ft.rightDelim===".")&&I0(Ft.leftDelim,s))break}const Qe=e.at(Ae);if(Ae>=q&&Qe instanceof ko)return e.mathfield.snapshot(),Qe.rightDelim=s,Qe.addChildren(e.extractAtoms([Ae,e.position]),Qe.parentBranch),e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;if(i instanceof ko&&(i.rightDelim==="?"||i.rightDelim===".")&&I0(i.leftDelim,s))return e.mathfield.snapshot(),i.isDirty=!0,i.rightDelim=s,i.parent.addChildren(e.extractAtoms([e.position,e.offsetOf(n.lastSibling)]),i.parentBranch),e.position=e.offsetOf(i),e.contentDidChange({data:s,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;const ut=i.parent;return ut instanceof ko&&(ut.rightDelim==="?"||ut.rightDelim===".")&&e.at(e.position).isLastSibling?(e.position=e.offsetOf(ut),F0(e,s,r)):!1}return!1}function I0(e,t){return e?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(e)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(t):Yl[e]===t:!0}function fh(e,t){return t?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(t)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(e):cl[t]===e:!0}_l({undo:e=>(e.undo(),!0),redo:e=>(e.redo(),!0),scrollIntoView:e=>(e.scrollIntoView(),!0),scrollToStart:e=>(e.field.scroll(0,0),!0),scrollToEnd:e=>{const t=e.field.getBoundingClientRect();return e.field.scroll(t.left-window.scrollX,0),!0},toggleKeystrokeCaption:tm,toggleContextMenu:e=>{const t=e.toggleContextMenu();return t||e.model.announce("plonk"),t},plonk:e=>(e.model.announce("plonk"),!0),switchMode:(e,t,r,n)=>(e.switchMode(t,r,n),!0),insert:(e,t,r)=>e.insert(t,r),typedText:(e,t,r)=>(_0(e,t,r),!0),insertDecimalSeparator:e=>{const t=e.model;return t.mode==="math"&&window.MathfieldElement.decimalSeparator===","&&t.at(Math.max(t.position,t.anchor)).isDigit()?(e.insert("{,}",{format:"latex"}),e.snapshot("insert-mord"),!0):(e.insert("."),!0)},commit:e=>{var t;return e.model.contentWillChange({inputType:"insertLineBreak"})&&((t=e.host)==null||t.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),e.model.contentDidChange({inputType:"insertLineBreak"})),!0},insertPrompt:(e,t,r)=>{const n=e.getPrompts();let i="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),s=0;for(;n.includes(i)&&s<100;){if(s===99)return console.error("could not find a unique ID after 100 tries"),!1;i="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),s++}return e.insert(`\\placeholder[${t!=null?t:i}]{}`,r),!0}}),_l({copyToClipboard:e=>(e.focus(),e.model.selectionIsCollapsed&&e.select(),"queryCommandSupported"in document&&document.queryCommandSupported("copy")?document.execCommand("copy"):e.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("copy",{bubbles:!0,composed:!0})),!1)},{target:"mathfield"}),_l({cutToClipboard:e=>(e.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("cut")?document.execCommand("cut"):e.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("cut",{bubbles:!0,composed:!0})),!0),pasteFromClipboard:e=>(e.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("paste")?(document.execCommand("paste"),!0):(navigator.clipboard.readText().then(t=>{t&&e.model.contentWillChange({inputType:"insertFromPaste",data:t})?(e.stopCoalescingUndo(),e.stopRecording(),e.insert(t,{mode:e.model.mode})&&(aA(e),e.startRecording(),e.snapshot("paste"),e.model.contentDidChange({inputType:"insertFromPaste"}),xs(e))):e.model.announce("plonk"),e.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function om(e,t){e.flushInlineShortcutBuffer(),e.stopCoalescingUndo();const r=M0(e,t),{model:n}=e;return n.selectionIsCollapsed?(e.defaultStyle.fontSeries&&r.fontSeries===e.defaultStyle.fontSeries&&(r.fontSeries="auto"),r.fontShape&&r.fontShape===e.defaultStyle.fontShape&&(r.fontShape="auto"),r.color&&r.color===e.defaultStyle.color&&(r.color="none"),r.backgroundColor&&r.backgroundColor===e.defaultStyle.backgroundColor&&(r.backgroundColor="none"),r.fontSize&&r.fontSize===e.defaultStyle.fontSize&&(r.fontSize="auto"),e.defaultStyle=f(f({},e.defaultStyle),r)):e.model.deferNotifications({content:!0,type:"insertText"},()=>{n.selection.ranges.forEach(i=>x0(n,i,r,{operation:"toggle"})),e.snapshot("style-change")}),!0}_l({applyStyle:om},{target:"mathfield",canUndo:!0,changeContent:!0});function M0(e,t){var r,n,i,s,A,M,$,q,Ae,Qe;const ut={};if(typeof t.color=="string"){const Nt=(n=e.colorMap((r=t.color)!=null?r:t.verbatimColor))!=null?n:"none";Nt!==t.color&&(ut.verbatimColor=(i=t.verbatimColor)!=null?i:t.color),ut.color=Nt}if(typeof t.backgroundColor=="string"){const Nt=(A=e.backgroundColorMap((s=t.backgroundColor)!=null?s:t.verbatimBackgroundColor))!=null?A:"none";Nt!==t.backgroundColor&&(ut.verbatimBackgroundColor=(M=t.verbatimBackgroundColor)!=null?M:t.backgroundColor),ut.backgroundColor=Nt}typeof t.fontFamily=="string"&&(ut.fontFamily=t.fontFamily),typeof t.series=="string"&&(ut.fontSeries=t.series),typeof t.fontSeries=="string"&&(ut.fontSeries=t.fontSeries.toLowerCase()),ut.fontSeries&&(ut.fontSeries=($={bold:"b",medium:"m",normal:"m"}[ut.fontSeries])!=null?$:ut.fontSeries),typeof t.shape=="string"&&(ut.fontShape=t.shape),typeof t.fontShape=="string"&&(ut.fontShape=t.fontShape.toLowerCase()),ut.fontShape&&(ut.fontShape=(q={italic:"it",up:"n",upright:"n",normal:"n"}[ut.fontShape])!=null?q:ut.fontShape),t.variant&&(ut.variant=t.variant.toLowerCase()),t.variantStyle&&(ut.variantStyle=t.variantStyle.toLowerCase());const Ft=(Ae=t.size)!=null?Ae:t.fontSize;return typeof Ft=="number"?ut.fontSize=Math.max(1,Math.min(10,Ft)):typeof Ft=="string"&&(ut.fontSize=(Qe={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[Ft.toLowerCase()])!=null?Qe:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[Ft]),ut}function L0(e){let[t,r]=Is(e.selection);if(t=hh(e,t,"backward"),r=hh(e,r,"forward"),t===r){const n=e.at(t);if(n.type==="leftright")return e.setSelection(e.offsetOf(n.firstChild)-1,r);if(n.type==="first"&&(n.parent.type==="leftright"||n.parent.type==="surd"))return e.setSelection(t-1,e.offsetOf(n.parent.lastChild)+1);e.setSelection(t-1,r)}else e.setSelection(t,r);return!0}function hh(e,t,r){var n,i,s;let A=e.at(t);if(!A)return t;const M=r==="forward"?1:-1;if(A.mode==="text"){for(;A&&!(A.mode!=="text"||!d.test(A.value));)t+=M,A=e.at(t);return r==="backward"?t-1:t}if(A.mode==="latex"){if(/[a-zA-Z\*]/.test(A.value))if(r==="backward")for(;A&&A.mode==="latex"&&A.value!=="\\"&&/[a-zA-Z]/.test(A.value);)t+=M,A=e.at(t);else for(;A&&A.mode==="latex"&&/[a-zA-Z\*]/.test(A.value);)t+=M,A=e.at(t);else if(A.value==="{"){if(r==="forward"){for(;A&&A.mode==="latex"&&A.value!=="}";)t+=M,A=e.at(t);return t}return t-1}else if(A.value==="}"){if(r==="backward"){for(;A&&A.mode==="latex"&&A.value!=="{";)t+=M,A=e.at(t);return t-1}return t}return t-1}if(A.mode==="math"){if(A.isDigit()){for(;(n=e.at(t+M))!=null&&n.isDigit();)t+=M;return r==="backward"?t-1:t}if(A.style.variant||A.style.variantStyle){let $=(i=e.at(t))==null?void 0:i.style;for(;$&&$.variant===A.style.variant&&$.variantStyle===A.style.variantStyle;)$=(s=e.at(t+M))==null?void 0:s.style,t+=M;return r==="backward"?t-1:t}return t}return t}_l({selectGroup:e=>{const t=L0(e);return t||e.announce("plonk"),t},selectAll:e=>e.setSelection(0,e.lastOffset),extendSelectionForward:e=>Fu(e,"forward",{extend:!0}),extendSelectionBackward:e=>Fu(e,"backward",{extend:!0}),extendToNextWord:e=>of(e,"forward",{extend:!0}),extendToPreviousWord:e=>of(e,"backward",{extend:!0}),extendSelectionUpward:e=>Fu(e,"upward",{extend:!0}),extendSelectionDownward:e=>Fu(e,"downward",{extend:!0}),extendToNextBoundary:e=>of(e,"forward",{extend:!0}),extendToPreviousBoundary:e=>of(e,"backward",{extend:!0}),extendToGroupStart:e=>{const t=e.setSelection(e.anchor,e.offsetOf(e.at(e.position).firstSibling));return t||e.announce("plonk"),t},extendToGroupEnd:e=>{const t=e.setSelection(e.anchor,e.offsetOf(e.at(e.position).lastSibling));return t||e.announce("plonk"),t},extendToMathFieldStart:e=>{const t=e.setSelection(e.anchor,0);return t||e.announce("plonk"),t},extendToMathFieldEnd:e=>{const t=e.setSelection(e.anchor,e.lastOffset);return t||e.announce("plonk"),t}},{target:"model",changeSelection:!0});var Hd=null,kf=0,a0=class QA{static start(t,r,n,i){var s;QA.element=t,(s=QA.controller)==null||s.abort(),QA.controller=new AbortController;const A={signal:QA.controller.signal};"PointerEvent"in window?(t.addEventListener("pointermove",n,A),t.addEventListener("pointerup",i,A),t.addEventListener("pointercancel",i,A),k0(r)&&(QA.pointerId=r.pointerId,t.setPointerCapture(r.pointerId))):(window.addEventListener("mousemove",n,A),window.addEventListener("blur",i,A),window.addEventListener("mouseup",i,A))}static stop(){var t;(t=QA.controller)==null||t.abort(),QA.controller=void 0,typeof QA.pointerId=="number"&&(QA.element.releasePointerCapture(QA.pointerId),QA.pointerId=void 0)}};function k0(e){return e!==null&&globalThis.PointerEvent!==void 0&&e instanceof PointerEvent}function ph(e,t){var r;if(t.buttons>1)return;e.atomBoundsCache=new Map;const n=e;let i,s=!1,A=!1,M="none",$=!1,q=!1;const Ae=t.clientX,Qe=t.clientY,ut=Date.now(),Ft=n.field,Nt=setInterval(()=>{$?Ft.scroll({top:0,left:Ft.scrollLeft-16}):q&&Ft.scroll({top:0,left:Ft.scrollLeft+16})},32);function Fr(){a0.stop(),s=!1,clearInterval(Nt),e.element.classList.remove("tracking"),t&&t.preventDefault()}function In(an){if(!n.hasFocus()){Fr();return}const Rn=an.clientX,pn=an.clientY,Ci=k0(an)&&an.pointerType==="touch"?20:5;if(Date.now()<ut+500&&Math.abs(Ae-Rn)<Ci&&Math.abs(Qe-pn)<Ci){an.preventDefault(),an.stopPropagation();return}const ji=Ft.getBoundingClientRect();q=Rn>ji.right,$=Rn<ji.left;let Oi=i;k0(an)&&(an.isPrimary||(Oi=Df(n,an.clientX,an.clientY,{bias:0})));const io=Df(n,Rn,pn,{bias:Rn<=Ae?Rn===Ae?0:-1:1});Oi>=0&&io>=0&&(n.model.extendSelectionTo(Oi,io),xs(e)),A&&L0(n.model)}Hd&&Math.abs(Hd.x-Ae)<5&&Math.abs(Hd.y-Qe)<5&&Date.now()<Hd.time+500?(kf+=1,Hd.time=ut):(Hd={x:Ae,y:Qe,time:ut},kf=1);const Cr=Ft.getBoundingClientRect();if(Ae>=Cr.left&&Ae<=Cr.right&&Qe>=Cr.top&&Qe<=Cr.bottom){if(e.flushInlineShortcutBuffer(),e.adoptStyle="left",i=Df(e,Ae,Qe,{bias:0}),i>=0){if(e.element.classList.add("tracking"),t.shiftKey){const an=e.model.selectionIsCollapsed;e.model.extendSelectionTo(e.model.anchor,i),Ks(e.model)||an?M="all":M="selection"}else e.model.at(i).type==="placeholder"?(e.model.setSelection(i-1,i),M="selection"):((r=e.model.at(i).rightSibling)==null?void 0:r.type)==="placeholder"?(e.model.setSelection(i,i+1),M="selection"):(e.model.position=i,Ks(e.model)?M="all":M="selection");e.defaultStyle={},t.detail===3||kf>2?(Fr(),(t.detail===3||kf===3)&&(e.model.selection={ranges:[[0,e.model.lastOffset]]},M="all")):s||(s=!0,a0.start(Ft,t,In,Fr),(t.detail===2||kf===2)&&(A=!0,L0(e.model),M="all"))}e.hasFocus()||(M="none",e.focus({preventScroll:!0}))}else Hd=null;e.stopCoalescingUndo(),M!=="none"&&(e.model.selectionIsCollapsed&&(M="all"),xs(e)),t.preventDefault()}function sm(e,t,r){if(e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom)return 0;const n=e-(r.left+r.right)/2,i=t-(r.top+r.bottom)/2;return n*n+i*i}function mh(e,t,r,n,i){if(!r.id)return[1/0,null];if(t.has(r.id))return t.get(r.id);const s=qc(e,r);if(!s)return[1/0,null];let A=[1/0,null];if(r.hasChildren&&!r.captureSelection&&n>=s.left&&n<=s.right)for(const M of r.children){const $=mh(e,t,M,n,i);$[0]<=A[0]&&(A=$)}return A[1]||(A=[sm(n,i,s),r]),t.set(r.id,A),A}function lm(e,t,r){const[,n]=mh(e,new Map,e.model.root,t,r);return n}function Df(e,t,r,n){var i;const s=e.field.querySelector(".ML__latex").getBoundingClientRect();if(!s)return 0;if(t>s.right||r>s.bottom+8)return e.model.lastOffset;if(t<s.left||r<s.top-8)return 0;n=n!=null?n:{},n.bias=(i=n.bias)!=null?i:0;let A=lm(e,t,r);const M=[];let $=A;for(;$;)M.unshift($),$=$.parent;for(const Ae of M)if(Ae.captureSelection){A=Ae;break}let q=e.model.offsetOf(A);if(q<0)return-1;if(A.leftSibling)if(n.bias===0&&A.type!=="placeholder"){const Ae=qc(e,A);Ae&&t<(Ae.left+Ae.right)/2&&(q=e.model.offsetOf(A.leftSibling))}else n.bias<0&&(q=e.model.offsetOf(A.leftSibling));return q}var cm=class extends aa{constructor(){super("math")}onPaste(e,t){if(!t||!e.model.contentWillChange({data:typeof t=="string"?t:null,dataTransfer:typeof t=="string"?null:t,inputType:"insertFromPaste"}))return!1;let r="",n="auto",i=typeof t!="string"?t.getData("application/json+mathlive"):"";if(i)try{const s=JSON.parse(i);if(s&&Array.isArray(s)){e.snapshot();const A=mA(s),{model:M}=e;M.selectionIsCollapsed||M.deleteAtoms(Is(M.selection));const $=M.at(M.position);if($.parent instanceof Ua){console.assert($.parentBranch!==void 0);const q=[];let Ae=[];A[0].type==="first"&&A.shift(),A[A.length-1].type==="first"&&A.pop();for(const Nt of A)Nt.type==="first"&&Ae.length>0?(q.push(Ae),Ae=[Nt]):Ae.push(Nt);Ae.length>0&&q.push(Ae);let Qe=Number($.parentBranch[0]),ut=Number($.parentBranch[1]);const Ft=$.parent.maxColumns;for(;$.parent.colCount-ut<q.length&&$.parent.colCount<Ft;)$.parent.addColumn();$.parent.addChildrenAfter(q[0],$);for(let Nt=1;Nt<q.length;Nt++)ut++,ut>=Ft&&(ut=0,$.parent.addRowAfter(Qe),Qe++),$.parent.setCell(Qe,ut,q[Nt])}else $.parent.addChildrenAfter(A.filter(q=>q.type!=="first"),$);return M.position=M.offsetOf(A[A.length-1]),M.contentDidChange({inputType:"insertFromPaste"}),xs(e),!0}}catch(s){}if(i=typeof t!="string"?t.getData("application/json"):"",i&&window.MathfieldElement.computeEngine)try{const s=JSON.parse(i);if(typeof s=="object"&&"latex"in s&&s.latex&&(r=s.latex),!r){const A=window.MathfieldElement.computeEngine.box(s);A&&!A.has("Error")&&(r=A.latex)}r||(n="latex")}catch(s){}if(!r&&typeof t!="string"&&(r=t.getData("application/x-latex"),r&&(n="latex")),r||(r=typeof t=="string"?t:t.getData("text/plain")),r){let s;return[s,r]=_n(r),n==="auto"&&s&&(n="latex"),e.stopCoalescingUndo(),e.stopRecording(),this.insert(e.model,r,{format:n})&&(e.startRecording(),e.snapshot("paste"),xs(e)),e.startRecording(),!0}return!1}insert(e,t,r){var n,i;const s=typeof t=="string"?t:(i=(n=window.MathfieldElement.computeEngine)==null?void 0:n.box(t).latex)!=null?i:"";if(!r.silenceNotifications&&!e.contentWillChange({data:s,inputType:"insertText"}))return!1;r.insertionMode||(r.insertionMode="replaceSelection"),r.selectionMode||(r.selectionMode="placeholder"),r.format||(r.format="auto");const{silenceNotifications:A}=e;r.silenceNotifications&&(e.silenceNotifications=!0);const M=e.silenceNotifications;e.silenceNotifications=!0;const $={"?":"\\placeholder{}","@":"\\placeholder{}"};$[0]=r.insertionMode==="replaceAll"?"":e.getValue(e.selection,"latex-unstyled"),r.insertionMode==="replaceSelection"&&!e.selectionIsCollapsed?e.deleteAtoms(Is(e.selection)):r.insertionMode==="replaceAll"?(e.root.setChildren([],"body"),e.position=0):r.insertionMode==="insertBefore"?e.collapseSelection("backward"):r.insertionMode==="insertAfter"&&e.collapseSelection("forward"),!e.at(e.position).isLastSibling&&e.at(e.position+1).type==="placeholder"?e.deleteAtoms([e.position,e.position+1]):e.at(e.position).type==="placeholder"&&e.deleteAtoms([e.position-1,e.position]);let q=-1;$[0]?$["@"]=$[0]:typeof t=="string"&&/(^|[^\\])#@/.test(t)&&(q=um(e),q>=0&&($["@"]=e.getValue(q,e.position,"latex"))),$[0]||($[0]=$["?"]);let Ae=!1;const Qe=Rn=>(Ae=!0,$[Rn]);let[ut,Ft]=gh(e,t,Qe,r);if(!Ft)return!1;const Nt=Ft.length===1&&Ft[0].type==="genfrac";Nt&&q>=0&&typeof e.mathfield.options.isImplicitFunction=="function"&&e.mathfield.options.isImplicitFunction(e.at(e.position).command)?($["@"]=$["?"],Ae=!1,[ut,Ft]=gh(e,t,Qe,r)):q>=0&&e.deleteAtoms([q,e.position]);const{parent:Fr}=e.at(e.position),In=Fr.hasEmptyBranch("body");if(Nt&&ut!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&Fr instanceof ko&&Fr.leftDelim==="("&&In){const Rn=Fr.parent,pn=Fr.parentBranch;Rn.removeChild(Fr),Rn.setChildren(Ft,pn)}const Cr=e.at(e.position);Cr.parent.addChildrenAfter(Ft,Cr),ut==="latex"&&typeof t=="string"&&(Fr==null?void 0:Fr.type)==="root"&&In&&!Ae&&(Fr.verbatimLatex=t),e.silenceNotifications=M;const an=Ft[Ft.length-1];if(r.selectionMode==="placeholder"){const Rn=Ft.flatMap(pn=>[pn,...pn.children]).find(pn=>pn.type==="placeholder");if(Rn){const pn=e.offsetOf(Rn);e.setSelection(pn-1,pn),e.announce("move")}else an&&(e.position=e.offsetOf(an))}else r.selectionMode==="before"||(r.selectionMode==="after"?an&&(e.position=e.offsetOf(an)):r.selectionMode==="item"&&e.setSelection(e.anchor,e.offsetOf(an)));return e.contentDidChange({data:s,inputType:"insertText"}),e.silenceNotifications=A,!0}};function gh(e,t,r,n){var i;let s,A=[];if(typeof t!="string"||n.format==="math-json"){const M=window.MathfieldElement.computeEngine;if(!M)return["math-json",[]];[s,t]=["latex",M.box(t).latex],A=Al(t,{context:e.mathfield.context})}else typeof t=="string"&&n.format==="ascii-math"?([s,t]=We(t,{format:"ascii-math",inlineShortcuts:e.mathfield.options.inlineShortcuts}),A=Al(t,{context:e.mathfield.context}),s!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&o0(A)):(n.format==="auto"||(i=n.format)!=null&&i.startsWith("latex"))&&(n.format==="auto"&&([s,t]=We(t,{format:"auto",inlineShortcuts:e.mathfield.options.inlineShortcuts})),n.format==="latex"&&([,t]=_n(t)),A=Al(t,{context:e.mathfield.context,args:r}),n.format!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&o0(A));return hd(A,n.style),[s!=null?s:"latex",A]}function Am(e){if(!e||(console.assert(e[0].type==="first"),e.length>1))return null;const t=e[0];return t instanceof ko&&t.leftDelim==="("&&t.rightDelim===")"?t.removeBranch("body"):null}function o0(e){if(e){for(let t=0;e[t];t++){const r=e[t];if(r instanceof ko&&r.leftDelim==="("){let n=0,i=0,s=0;for(let A=0;r.body[A];A++)r.body[A].type==="genfrac"&&(n++,i=A),s++;s===0&&n===1&&(e[t]=r.body[i])}}for(const t of e){for(const r of t.branches)if(!t.hasEmptyBranch(r)){o0(t.branch(r));const n=Am(t.branch(r));n&&t.setChildren(n,r)}if(t instanceof Ua)for(const r of t.cells)o0(r)}}}function um(e){let t=e.at(e.position);if(t.mode==="text"){for(;!t.isFirstSibling&&t.mode==="text";)t=t.leftSibling;return e.offsetOf(t)}const r=t;let n=!1;if(t.type==="mclose"){const i=cl[t.value];for(;!t.isFirstSibling&&!(t.type==="mopen"&&t.value===i);)t=t.leftSibling;t.isFirstSibling||(t=t.leftSibling),n=!0}else t.type==="leftright"&&(t=t.leftSibling,n=!0);if(n)for(;!t.isFirstSibling&&(t.isFunction||vh(t));)t=t.leftSibling;else{const i=[];for(;!t.isFirstSibling&&(vh(t)||i.length>0);)t.type==="mclose"&&i.unshift(t.value),t.type==="mopen"&&i.length>0&&t.value===cl[i[0]]&&i.shift(),t=t.leftSibling}return r===t?-1:e.offsetOf(t)}function vh(e){return e.isDigit()?!0:e.type&&/^(mord|surd|subsup|leftright|mop|mclose)$/.test(e.type)?!e.isExtensibleSymbol:!1}new cm;var dm=class extends aa{constructor(){super("text")}onPaste(e,t){if(!t)return!1;const r=typeof t=="string"?t:t.getData("text/plain");return r&&e.model.contentWillChange({inputType:"insertFromPaste",data:r})?(e.stopCoalescingUndo(),e.stopRecording(),this.insert(e.model,r)&&(e.model.contentDidChange({inputType:"insertFromPaste"}),e.startRecording(),e.snapshot("paste"),xs(e)),e.startRecording(),!0):!1}insert(e,t,r={}){if(!e.contentWillChange({data:t,inputType:"insertText"}))return!1;r.insertionMode||(r.insertionMode="replaceSelection"),r.selectionMode||(r.selectionMode="placeholder"),r.format||(r.format="auto");const{silenceNotifications:n}=e;r.silenceNotifications&&(e.silenceNotifications=!0);const i=e.silenceNotifications;e.silenceNotifications=!0,r.insertionMode==="replaceSelection"&&!e.selectionIsCollapsed?e.deleteAtoms(Is(e.selection)):r.insertionMode==="replaceAll"?(e.root.setChildren([],"body"),e.position=0):r.insertionMode==="insertBefore"?e.collapseSelection("backward"):r.insertionMode==="insertAfter"&&e.collapseSelection("forward");const s=fm(t,e.mathfield.context);if(hd(s,r.style),!s)return!1;const A=e.at(e.position),M=A.parent.addChildrenAfter(s,A);return e.silenceNotifications=i,r.selectionMode==="before"||(r.selectionMode==="item"?e.setSelection(e.anchor,e.offsetOf(M)):M&&(e.position=e.offsetOf(M))),e.contentDidChange({data:t,inputType:"insertText"}),e.silenceNotifications=n,!0}};function fm(e,t){return e=e.replace(/\\/g,"\\textbackslash "),e=e.replace(/#/g,"\\#"),e=e.replace(/\$/g,"\\$"),e=e.replace(/%/g,"\\%"),e=e.replace(/&/g,"\\&"),e=e.replace(/_/g,"\\_"),e=e.replace(/{/g,"\\textbraceleft "),e=e.replace(/}/g,"\\textbraceright "),e=e.replace(/lbrace/g,"\\textbraceleft "),e=e.replace(/rbrace/g,"\\textbraceright "),e=e.replace(/\^/g,"\\textasciicircum "),e=e.replace(/~/g,"\\textasciitilde "),e=e.replace(/£/g,"\\textsterling "),Al(e,{context:t,parseMode:"text"})}new dm;function Iu(e){return{value:e.model.getValue(),selectionIsCollapsed:e.model.selectionIsCollapsed,canUndo:e.canUndo(),canRedo:e.canRedo(),style:e.selectionStyle,mode:e.model.mode}}var ls=4,Zc=20,ul=2*(Zc+ls),s0=(e,t)=>`
|
|
|
<line x1="${e+Zc}" y1="${t+Zc}"
|
|
|
x2="${e>t?e+Zc:7*Zc+10*ls}"
|
|
|
y2="${e<t?t+Zc:7*Zc+10*ls}"/>
|
|
|
<svg id="plus" viewBox="0 0 40 40" x="${e}" y="${t}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<path class="font" d="m33.33,20c0,1.84-1.49,3.34-3.33,3.34h-6.67v6.66c0,1.84-1.49,3.34-3.33,3.34s-3.34-1.5-3.34-3.34v-6.66h-6.66c-1.84,0-3.34-1.5-3.34-3.34s1.5-3.33,3.34-3.33h6.66v-6.67c0-1.84,1.5-3.33,3.34-3.33s3.33,1.49,3.33,3.33v6.67h6.67c1.84,0,3.33,1.49,3.33,3.33Z"/>
|
|
|
</svg>`,yh=(e,t)=>`
|
|
|
<line x1="${e+Zc}" y1="${t+Zc}"
|
|
|
x2="${e>t?e+Zc:7*Zc+10*ls}"
|
|
|
y2="${e<t?t+Zc:7*Zc+10*ls}"/>
|
|
|
<svg id="minus" viewBox="0 0 40 40" x="${e}" y="${t}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<path class="font" d="m33.33,20c0,1.84-1.49,3.33-3.33,3.33H10c-1.84,0-3.34-1.49-3.34-3.33s1.5-3.34,3.34-3.34h20c1.84,0,3.33,1.5,3.33,3.34Z"/>
|
|
|
</svg>`,l0=(e,t,r)=>`
|
|
|
<svg id="arrow" viewBox="0 0 40 40" x="${e}" y="${t}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<g transform="rotate(${r})" transform-origin="20 20">
|
|
|
<path class="font" d="m17.7,7.23h4.6c.52,0,.94.42.94.94v13.82c0,.52.42.94.94.94h3.39c.83,0,1.25,1.01.66,1.6l-7.56,7.56c-.37.37-.96.37-1.32,0l-7.56-7.56c-.59-.59-.17-1.6.66-1.6h3.39c.52,0,.94-.42.94-.94v-13.82c0-.52.42-.94.94-.94Z"/>
|
|
|
</g>
|
|
|
</svg>`,hm=`
|
|
|
<svg class="MLEP__array-buttons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
|
viewBox=
|
|
|
"-2 -2 ${8*Zc+10*ls+5} ${8*Zc+10*ls+5}">
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background rows"
|
|
|
x="0"
|
|
|
y="${ul+ls}"
|
|
|
height="${3*ul}"
|
|
|
width="${ul}"
|
|
|
rx="${ul/2}"/>
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background columns"
|
|
|
x="${ul+ls}"
|
|
|
y="0"
|
|
|
height="${ul}"
|
|
|
width="${3*ul}"
|
|
|
rx="${ul/2}"/>
|
|
|
<g data-command='"moveDown"'>
|
|
|
${l0(2*(ls+ul),2*ls+3*ul,0)}
|
|
|
</g>
|
|
|
<g data-command='"moveUp"'>
|
|
|
${l0(2*(ls+ul),2*ls+ul,180)}
|
|
|
</g>
|
|
|
<g data-command='"moveToNextWord"'>
|
|
|
${l0(2*ls+3*ul,2*(ls+ul),-90)}
|
|
|
</g>
|
|
|
<g data-command='"moveToPreviousWord"'>
|
|
|
${l0(2*ls+ul,2*(ls+ul),90)}
|
|
|
</g>
|
|
|
<g>
|
|
|
|
|
|
<g data-command='"addColumnBefore"'>
|
|
|
${s0(2*ls+ul,ls)}
|
|
|
</g>
|
|
|
<g data-command='"removeColumn"'>
|
|
|
${yh(2*ls+2*ul,ls)}
|
|
|
</g>
|
|
|
<g data-command='"addColumnAfter"'>
|
|
|
${s0(2*ls+3*ul,ls)}
|
|
|
</g>
|
|
|
<g data-command='"addRowBefore"'>
|
|
|
${s0(ls,2*ls+ul)}
|
|
|
</g>
|
|
|
<g data-command='"removeRow"'>
|
|
|
${yh(ls,2*ls+2*ul)}
|
|
|
</g>
|
|
|
<g data-command='"addRowAfter"'>
|
|
|
${s0(ls,2*ls+3*ul)}
|
|
|
</g>
|
|
|
</svg>`,pm=e=>`
|
|
|
<svg id="matrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","matrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/></svg>`,mm=e=>`
|
|
|
<svg id="pmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","pmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4c-3.96,4.6-3.96,11.4,0,16"/>
|
|
|
<path class="cls-2" d="m22,4c3.96,4.6,3.96,11.4,0,16"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/></svg>`,bh=e=>`
|
|
|
<svg id="Bmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","Bmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
|
|
|
<path class="cls-2" d="m22,4c1.1,0,2,.9,2,2v3c0,1.66.9,3,2,3-1.1,0-2,1.34-2,3v3c0,1.1-.9,2-2,2"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
</svg>`,gm=e=>`
|
|
|
<svg id="bmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","bmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4h-3v16h3"/>
|
|
|
<path class="cls-2" d="m22,4h3v16h-3"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
</svg>`,vm=e=>`
|
|
|
<svg id="vmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","vmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
<line class="cls-2" x1="4" y1="4" x2="4" y2="20"/>
|
|
|
<line class="cls-2" x1="24" y1="4" x2="24" y2="20"/>
|
|
|
</svg>`,ym=e=>`
|
|
|
<svg id="Vmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="-3.5 -3 35 30"
|
|
|
data-command='["setEnvironment","Vmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
<line class="cls-2" x1="6" y1="4" x2="6" y2="20"/>
|
|
|
<line class="cls-2" x1="22" y1="4" x2="22" y2="20"/>
|
|
|
<line class="cls-2" x1="2" y1="4" x2="2" y2="20"/>
|
|
|
<line class="cls-2" x1="26" y1="4" x2="26" y2="20"/>
|
|
|
</svg>`,bm=e=>`
|
|
|
<svg id="cases" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","cases"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m10,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
|
|
|
<circle cx="13" cy="8" r="1"/>
|
|
|
<circle cx="13" cy="16" r="1"/>
|
|
|
<circle cx="21" cy="8" r="1"/>
|
|
|
<circle cx="21" cy="16" r="1"/>
|
|
|
</svg>`,wm=e=>`
|
|
|
<svg id="rcases" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","rcases"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m18,20c1.1,0,2-.9,2-2v-3c0-1.66.9-3,2-3-1.1,0-2-1.34-2-3v-3c0-1.1-.9-2-2-2"/>
|
|
|
<circle cx="15" cy="8" r="1"/>
|
|
|
<circle cx="15" cy="16" r="1"/>
|
|
|
<circle cx="7" cy="8" r="1"/>
|
|
|
<circle cx="7" cy="16" r="1"/>
|
|
|
</svg>`,D0={matrix:pm,pmatrix:mm,bmatrix:gm,Bmatrix:bh,vmatrix:vm,Vmatrix:ym},P0={cases:bm,rcases:wm,Bmatrix:bh};function xm(e){var t,r;const n=(t=e.model.parentEnvironment)==null?void 0:t.array;if(!n)return;let i=0;n.forEach(Nt=>{(!i||Nt.length>i)&&(i=Nt.length)});let s=document.getElementById("mathlive-environment-popover");s||(s=Sd("mathlive-environment-popover"),lc("environment-popover"),lc("core"),s.setAttribute("aria-hidden","true"));let A;const M=s.querySelector(".MLEP__environment-controls");M?A=M:(A=document.createElement("div"),s.innerHTML="",s.appendChild(A)),A.className="MLEP__environment-controls",A.style.display="flex",A.style.width="100%",A.style.height="100%",A.style.boxSizing="border-box",A.innerHTML=hm;let $=[],q="";const Ae=e.model.parentEnvironment.environmentName;if(Jo(Ae)){const Nt=Bm(Ae);q=D0[Nt]("active");const Fr=D0,{[Nt]:In}=Fr,Cr=z(Fr,[h(Nt)]);$=Object.values(Cr).map(an=>an("inactive"))}else if(Ho(Ae)){const Nt=Sm(Ae);q=P0[Nt]("active");const Fr=P0,{[Nt]:In}=Fr,Cr=z(Fr,[h(Nt)]);$=Object.values(Cr).map(an=>an("inactive"))}else Us(Ae)&&(q=D0.matrix("active"),$=Object.values(P0).map(Nt=>Nt("inactive")));const Qe=document.createElement("div");Qe.className="MLEP__environment-delimiter-controls",Qe.style.display="flex",Qe.style.flexDirection="column",Qe.innerHTML=`
|
|
|
<div class='MLEP__array-delimiter-options'>
|
|
|
${q}
|
|
|
${$.join("")}
|
|
|
</div>`,q&&A.appendChild(Qe),A.querySelectorAll("[data-command]").forEach(Nt=>{const Fr=Nt.dataset.command;let In=Fr;try{In=JSON.parse(Fr)}catch(Cr){}Nt.addEventListener("mousedown",Cr=>Cr.preventDefault()),In&&Nt.addEventListener("click",()=>e.executeCommand(In))});const Ft=(r=e.field)==null?void 0:r.getBoundingClientRect();Ft&&(s.style.top=`${window.scrollY+(Ft.top-s.clientHeight-15)}px`,s.style.left=`${Ft.left+20}px`,s.classList.add("is-visible"))}function N0(){const e=document.getElementById("mathlive-environment-popover");e==null||e.classList.remove("is-visible")}function Cm(){document.getElementById("mathlive-environment-popover")&&(Gd("mathlive-environment-popover"),wc("environment-popover"),wc("core"))}function c0(e){if(!e.hasFocus())return;let t=!1;if(e.model.mode==="math"){const r=e.model.parentEnvironment;if(r!=null&&r.array&&Ec(r.environmentName)){const n=e.options.environmentPopoverPolicy;t=n==="auto"||n==="on"}}t?xm(e):N0()}function Bm(e){return e.replace("*","")}function Sm(e){return e==="dcases"?"cases":e}function wh(e){const t=getComputedStyle(e).direction;return t==="ltr"||t==="rtl"?t:"ltr"}function xh(e,t,r){return t==="left"||t==="leading"&&r==="ltr"||t==="trailing"&&r==="rtl"?e.left:e.right}function O0(e,t,r,n){return r==="middle"?e-t/2:r==="start"&&n==="rtl"||r==="end"&&n==="ltr"||r==="top"||r==="right"?Math.max(0,e-t):e}function Em(e,t,r,n){return r==="middle"?e-t/2:r==="start"&&n==="ltr"||r==="end"&&n==="rtl"||r==="top"||r==="right"?e:e-t}function _m(e,t){var r,n,i;const s=(r=wh(e))!=null?r:"ltr";e.style.position="fixed",e.style.left="",e.style.top="",e.style.right="",e.style.bottom="",e.style.height="",e.style.width="";const A=e.getBoundingClientRect(),M=Number.isFinite(t.maxHeight)?Math.min(t.maxHeight,window.innerHeight):window.innerHeight;let $=Math.min(M,(n=t.height)!=null?n:A.height),q=O0(t.location.y,$,t.verticalPos,s);q+$>window.innerHeight-8&&(t.alternateLocation?(q=O0(t.alternateLocation.y,$,t.verticalPos,s),q+$>window.innerHeight-8&&(q=void 0)):q=void 0),Number.isFinite(q)||(q=Math.max(8,window.innerHeight-8-$),8+$>window.innerHeight-8&&(e.style.bottom="8px")),$=Math.min(q+$,window.innerHeight-8)-q;const Ae=Number.isFinite(t.maxWidth)?Math.min(t.maxWidth,window.innerWidth):window.innerWidth;let Qe=Math.min(Ae,(i=t.width)!=null?i:A.width),ut=O0(t.location.x,Qe,t.horizontalPos,s);ut+Qe>window.innerWidth-8&&(t.alternateLocation?(ut=Em(t.alternateLocation.x,Qe,t.verticalPos,s),ut+Qe>window.innerWidth-8&&(ut=void 0)):ut=void 0),Number.isFinite(ut)||(ut=Math.max(8,window.innerWidth-8-Qe),8+Qe>window.innerWidth-8&&(e.style.right="8px")),Qe=Math.min(ut+Qe,window.innerWidth-8)-ut,s==="rtl"?e.style.right=`${Math.ceil(window.innerWidth-ut-Qe).toString()}px`:e.style.left=`${Math.ceil(ut).toString()}px`,e.style.top=`${Math.ceil(q).toString()}px`,$!==A.height&&(e.style.height=`${Math.ceil($).toString()}px`),Qe!==A.width&&(e.style.width=`${Math.ceil(Qe).toString()}px`)}function Fm(e,t){return Math.hypot(t.x-e.x,t.y-e.y)}function sf(e){return"submenu"in e}function Mu(e){return"type"in e&&e.type==="command"||"onMenuSelect"in e||"id"in e}function T0(e){return"type"in e&&e.type==="divider"}function U0(e){return"type"in e&&e.type==="heading"}var Ch={};function R0(e){let t=Ch[e];if(!t){let r;switch(e){case"checkmark":r=`<span aria-hidden="true" class="ui-checkmark"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z"></path></svg>
|
|
|
</span>`;break;case"trailing-chevron":r='<span aria-hidden="true" class="ui-trailing-chevron"><svg focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path></svg></span>';break;case"mixedmark":r='<span aria-hidden="true" class="ui-mixedmark"><svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 512 512"><path fill="currentColor" d="M0 256c0-13.3 10.7-24 24-24H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.3 0-24-10.7-24-24z"/></svg></span>'}if(r){const n=document.createElement("template");n.innerHTML=r,Ch[e]=n,t=n}}if(t){if("content"in t)return t.content.cloneNode(!0);const r=document.createElement("svg");return r.innerHTML=t.innerHTML,r}}var Bh=80,Sh=class{constructor(e,t){this._element=null;var r;this.parentMenu=t,this._declaration=e,sf(e)?(this.type="submenu",this.submenu=new Eh(e.submenu,{parentMenu:t,submenuClass:e.submenuClass,columnCount:e.columnCount})):this.type=(r=e.type)!=null?r:"command",this.hasCheck=Mu(e)&&e.checked!==void 0}get rootMenu(){return this.parentMenu.rootMenu}get abortController(){return this._abortController||(this._abortController=new AbortController),this._abortController}dispose(){var e,t;(e=this._abortController)==null||e.abort(),this._abortController=void 0,(t=this._element)==null||t.remove(),this._element=null,this.submenu&&this.submenu.dispose(),this.submenu=void 0}get menuItem(){return this._declaration}get label(){var e;return(e=this._label)!=null?e:""}set label(e){e===void 0&&(e=""),e!==this._label&&(this._label=e,this.dirty=!0)}get visible(){return this._visible}set visible(e){e!==this._visible&&(this._visible=e,this.dirty=!0)}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.element&&(e?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")),this.dirty=!0}get checked(){return this._checked}set checked(e){this._checked=e,this.dirty=!0}get tooltip(){return this._tooltip}set tooltip(e){e!==this._tooltip&&(this._tooltip=e,this.dirty=!0)}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){e!==this._ariaLabel&&(this._ariaLabel=e,this.dirty=!0)}get active(){var e,t;return(t=(e=this.element)==null?void 0:e.classList.contains("active"))!=null?t:!1}set active(e){this.element&&this.element.classList.toggle("active",e)}updateState(e){var t,r,n;const i=this._declaration;if(T0(i)){this.enabled=!1,this.checked=!1;return}U0(i)&&(this.enabled=!1,this.checked=!1,this.visible=!0),Mu(i)&&(this.checked=Mu(i)&&((t=lf(i.checked,e))!=null?t:!1)),(Mu(i)||sf(i))&&(this.enabled=(r=lf(i.enabled,e))!=null?r:!0,this.visible=(n=lf(i.visible,e))!=null?n:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(e),this.submenu.visible||(this.visible=!1))),(Mu(i)||U0(i)||sf(i))&&(this.label=lf(i.label,e),this.tooltip=lf(i.tooltip,e),this.ariaLabel=lf(i.ariaLabel,e)),this._element&&this.updateElement()}set dirty(e){console.assert(e===!0),e&&this.parentMenu&&(this.parentMenu.dirty=!0)}updateElement(){if(!this.visible||!this.element)return;const e=this.element;e.textContent="",this.enabled?e.removeAttribute("aria-disabled"):e.setAttribute("aria-disabled","true"),this.checked===!0?(e.setAttribute("aria-checked","true"),e.append(R0("checkmark"))):this.checked==="mixed"?(e.setAttribute("aria-checked","mixed"),e.append(R0("mixedmark"))):e.removeAttribute("aria-checked"),this.ariaLabel&&e.setAttribute("aria-label",this.ariaLabel);const t=document.createElement("span");if(t.className=this.parentMenu.hasCheck?"label indent":"label",this.type==="heading"&&t.classList.add("heading"),t.innerHTML=this.label,e.append(t),this._tooltip&&e.setAttribute("data-tooltip",this._tooltip),Mu(this._declaration)&&this._declaration.keyboardShortcut){const r=document.createElement("kbd");r.innerHTML=Ka(this._declaration.keyboardShortcut),e.append(r)}this.type==="submenu"&&e.append(R0("trailing-chevron"))}get element(){if(this._element)return this._element;if(T0(this._declaration)){const r=document.createElement("li");return r.setAttribute("part","menu-divider"),r.setAttribute("role","divider"),this._element=r,r}const e=document.createElement("li");this._element=e,(Mu(this._declaration)||U0(this._declaration)||sf(this._declaration))&&this._declaration.class&&(e.className=this._declaration.class),e.setAttribute("part","menu-item"),e.setAttribute("tabindex","-1"),this.hasCheck?e.setAttribute("role","menuitemcheckbox"):e.setAttribute("role","menuitem"),this.type==="submenu"&&(e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded","false"));const t=this.abortController.signal;return e.addEventListener("pointerenter",this,{signal:t}),e.addEventListener("pointerleave",this,{signal:t}),e.addEventListener("pointerup",this,{signal:t}),e.addEventListener("click",this,{signal:t}),this._element}dispatchSelect(){if(!Mu(this._declaration))return;const e=new CustomEvent("menu-select",{cancelable:!0,bubbles:!0,detail:{modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data}});this.parentMenu.dispatchEvent(e)&&typeof this._declaration.onMenuSelect=="function"&&this._declaration.onMenuSelect({modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data})}handleEvent(e){var t;if(!(!this.visible||!this.enabled)){if(e.type==="click"){this.rootMenu.state==="modal"&&this.select(),e.stopPropagation(),e.preventDefault();return}if(e.type==="pointerenter"){const r=e;this.rootMenu.cancelDelayedOperation(),this.parentMenu.isSubmenuOpen&&((t=this.parentMenu.activeMenuItem)!=null&&t.movingTowardSubmenu(r))?this.rootMenu.scheduleOperation(()=>{this.parentMenu.activeMenuItem=this,this.openSubmenu()}):(this.parentMenu.activeMenuItem=this,this.openSubmenu({withDelay:!0}));return}if(e.type==="pointerleave"){this.rootMenu.activeSubmenu===this.parentMenu&&(this.parentMenu.activeMenuItem=null);return}if(e.type==="pointerup"){this.rootMenu.state!=="modal"&&this.select(),e.stopPropagation(),e.preventDefault();return}}}select(){if(this.rootMenu.cancelDelayedOperation(),this.type==="submenu"){this.openSubmenu();return}this.active=!1,setTimeout(()=>{this.active=!0,setTimeout(()=>{this.rootMenu.hide(),this.dispatchSelect()},Bh)},Bh)}openSubmenu(e){var t;if(this.type!=="submenu"||!this.element)return;if((t=e==null?void 0:e.withDelay)!=null&&t){this.rootMenu.scheduleOperation(()=>this.openSubmenu());return}const r=this.element.getBoundingClientRect(),n=wh(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:xh(r,"trailing",n),y:r.top-4},alternateLocation:{x:xh(r,"leading",n),y:r.top-4}})}movingTowardSubmenu(e){if(!this.element||this.type!=="submenu")return!1;const t=this.rootMenu.lastMoveEvent;if(!t)return!1;const r=e.timeStamp-t.timeStamp;if(r>500)return!1;const n=e.clientX-t.clientX;if(Im(n,t.clientY-e.clientY,r)<=.2)return!1;let s="right";if(this.submenu.element){const A=this.submenu.element.getBoundingClientRect(),M=this.element.getBoundingClientRect();A.left<M.left+M.width/2&&(s="left")}return s==="right"?n>0:n<0}};function Im(e,t,r){return Math.hypot(e,t)/r}function lf(e,t){return e===void 0||typeof e!="function"?e:(t!=null||(t={alt:!1,control:!1,shift:!1,meta:!1}),e(t))}var Eh=class mf{constructor(t,r){this._element=null,this._activeMenuItem=null,this._dirty=!0;var n,i;this.parentMenu=(n=r==null?void 0:r.parentMenu)!=null?n:null,this._submenuClass=r==null?void 0:r.submenuClass,this.columnCount=(i=r==null?void 0:r.columnCount)!=null?i:1,this.isSubmenuOpen=!1,this.menuItems=t}get children(){return this._menuItems}set menuItems(t){const r=this.parentMenu;this.dispose(),this.parentMenu=r,t=[...t],this._menuItems=t.map(n=>n.onCreate?n.onCreate(n,this):new Sh(n,this)),this.hasCheck=void 0,this.dirty=!0}dispose(){var t;this.hide(),this._element&&this._element.remove(),this._abortController&&this._abortController.abort(),(t=this._menuItems)==null||t.forEach(r=>r.dispose()),this._menuItems=[],this._activeMenuItem=null,this.parentMenu=null}handleEvent(t){if(t.type==="wheel"&&this._element){const r=t;this._element.scrollBy(0,r.deltaY),t.stopPropagation()}}dispatchEvent(t){return this.rootMenu.dispatchEvent(t)}get rootMenu(){return this.parentMenu.rootMenu}updateState(t){var r,n,i;this._menuItems.forEach(q=>q.updateState(t));const s=this.hasCheck;this.hasCheck=this._menuItems.some(q=>q.visible&&q.hasCheck),this.hasCheck!==s&&this._menuItems.forEach(q=>q.updateState(t));let A,M=0;for(const q of this._menuItems)q.type==="heading"?(A&&M===0&&(A.visible=!1),A=q,M=0):q.type==="divider"&&A?(A.visible=M>0,A=void 0,M=0):A&&q.visible&&(M+=1);A&&(A.visible=M>0);let $=!0;for(const q of this._menuItems)q.type==="divider"?(q.visible=!$,$=!0):q.visible&&($=!1);(r=this.activeMenuItem)!=null&&r.visible||(this.activeMenuItem=null),!((n=this.activeMenuItem)!=null&&n.enabled)&&((i=this.activeMenuItem)==null?void 0:i.type)==="submenu"&&this._activeMenuItem.submenu.hide(),this._dirty=!1}get enabled(){return this.updateIfDirty(),this._menuItems.some(t=>t.type!=="divider"&&t.visible&&t.enabled)}get visible(){return this.updateIfDirty(),this._menuItems.some(t=>t.type!=="divider"&&t.visible)}set dirty(t){console.assert(t===!0),this._dirty!==t&&t&&this.parentMenu&&(this._dirty=!0,this.parentMenu.dirty=!0)}updateIfDirty(){this._dirty&&this.updateState(this.rootMenu.modifiers)}updateElement(){var t;if(this._element){this._element.textContent="";for(const{element:r,visible:n}of this._menuItems)r&&n&&this._element.append(r);(t=this._element.querySelector("li:first-of-type"))==null||t.setAttribute("tabindex","0")}}get element(){if(this._element)return this._element;const t=document.createElement("menu");t.setAttribute("role","menu"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-orientation","vertical"),t.setAttribute("part","ui-menu-container"),this._submenuClass&&t.classList.add(this._submenuClass),t.classList.add("ui-menu-container"),this._abortController||(this._abortController=new AbortController);const r=this._abortController.signal;return t.addEventListener("focus",this,{signal:r}),t.addEventListener("wheel",this,{passive:!0,signal:r}),this._element=t,this.updateElement(),t}get activeMenuItem(){return this._activeMenuItem}set activeMenuItem(t){var r,n,i,s;if(this.rootMenu.cancelDelayedOperation(),t!==this._activeMenuItem){if(this.activeMenuItem){const A=this.activeMenuItem;A.active=!1,(r=A.submenu)==null||r.hide()}if(!((n=t==null?void 0:t.visible)==null||n)){this._activeMenuItem=null;return}this._activeMenuItem=t,t&&(t.active=!0)}t?(i=t.element)==null||i.focus({preventScroll:!0}):(s=this._element)==null||s.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let t=0,r=!1;const n=this._menuItems;for(;!r&&t<=n.length-1;){const i=n[t];r=i.type!=="divider"&&i.visible&&i.enabled,t+=1}return r?n[t-1]:null}get lastMenuItem(){this.updateIfDirty();const t=this._menuItems;let r=t.length-1,n=!1;for(;!n&&r>=0;){const i=t[r];n=i.type!=="divider"&&i.visible&&i.enabled,r-=1}return n?t[r+1]:null}nextMenuItem(t){if(t===0)return this._activeMenuItem;if(!this._activeMenuItem)return t>0?this.firstMenuItem:this.lastMenuItem;if(!this.firstMenuItem||!this.lastMenuItem||!this._activeMenuItem)return null;this.updateIfDirty();const r=this._menuItems.indexOf(this.firstMenuItem),n=this._menuItems.indexOf(this.lastMenuItem);let i=this._menuItems.indexOf(this._activeMenuItem),s=1;for(;i>=r&&i<=n;){i+=t>0?1:-1;const A=this._menuItems[i];if(!A)break;if(A.visible&&A.enabled){if(s===Math.abs(t))return this._menuItems[i];s+=1}}return t>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(t){this.updateIfDirty();const n=this._menuItems.filter(i=>i.visible&&i.enabled).indexOf(t);return n<0?-1:n%this.columnCount}static get collator(){return mf._collator||(mf._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),mf._collator}findMenuItem(t){var r;this.updateIfDirty();const n=this._menuItems.filter(M=>M.type!=="divider"&&M.visible&&M.enabled);if(n.length===0)return null;const i=Math.max(...n.map(M=>M.label.length))-t.length;if(i<0)return null;let s=null,A=0;for(;A<i&&!s;)s=(r=n.find(M=>mf.collator.compare(t,M.label.substring(A,t.length))===0))!=null?r:null,A++;return s}show(t){return!this.visible||!t.container?!1:(this.updateElement(),t.container.appendChild(this.element),ce()&&(this.element.popover="manual",this.element.showPopover()),t.location&&_m(this.element,{location:t.location,alternateLocation:t.alternateLocation,verticalPos:"bottom",horizontalPos:"start"}),this.element.focus({preventScroll:!0}),this.parentMenu&&(this.parentMenu.openSubmenu=this),!0)}hide(){var t,r,n,i,s;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),ce()&&((t=this._element)!=null&&t.popover)&&this.element.hidePopover(),(n=(r=this.parentMenu)==null?void 0:r.element)==null||n.focus(),(s=(i=this._element)==null?void 0:i.parentNode)==null||s.removeChild(this._element)}set openSubmenu(t){var r,n,i,s;const A=t!==null;((r=this.activeMenuItem)==null?void 0:r.type)==="submenu"&&((n=this.activeMenuItem.element)==null||n.setAttribute("aria-expanded",A.toString())),(s=(i=this.activeMenuItem)==null?void 0:i.element)==null||s.classList.toggle("is-submenu-open",A),this.isSubmenuOpen=A}},_h=class Fp extends Eh{constructor(t,r){var n;super(t),this.state="closed",this.typingBufferResetTimer=0,this.hysteresisTimer=0,this._updating=!1,this._host=(n=r==null?void 0:r.host)!=null?n:null,this.isDynamic=t.some(Fh),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(t){Ia(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=Sa(t)),t.stopImmediatePropagation()}handleKeydownEvent(t){var r,n,i;if(t.key==="Tab"||t.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=Sa(t));let s=!0;const A=this.activeSubmenu,M=A.activeMenuItem;switch(t.key){case" ":case"Space":case"Return":case"Enter":M==null||M.select(Sa(t));break;case"ArrowRight":if((M==null?void 0:M.type)==="submenu")M.select(Sa(t)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!M)A.activeMenuItem=A.firstMenuItem;else{const $=(r=A.getMenuItemColumn(M))!=null?r:-1;if($>=0&&$<((n=A.columnCount)!=null?n:1)-1){const q=A.nextMenuItem(1);q&&(A.activeMenuItem=q)}}break;case"ArrowLeft":if(A===this.rootMenu)M||(A.activeMenuItem=A.firstMenuItem);else if((M&&(i=A.getMenuItemColumn(M))!=null?i:-1)<=0||!M){A.hide();const q=A.parentMenu.activeMenuItem;if(q){const{element:Ae}=q;Ae==null||Ae.focus(),Ae==null||Ae.classList.remove("is-submenu-open")}}else{const q=A.nextMenuItem(-1);q&&(A.activeMenuItem=q)}break;case"ArrowDown":A.activeMenuItem=A.nextMenuItem(A.columnCount);break;case"ArrowUp":A.activeMenuItem=A.nextMenuItem(-A.columnCount);break;case"Home":case"PageUp":A.activeMenuItem=A.firstMenuItem;break;case"End":case"PageDown":A.activeMenuItem=A.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const $=A.findMenuItem(this.typingBuffer);$&&(A.activeMenuItem=$),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(Wa(t)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=t.key;const $=A.findMenuItem(this.typingBuffer);$&&(A.activeMenuItem=$),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else s=!1}s&&(t.preventDefault(),t.stopPropagation())}handleEvent(t){if(t.type==="keydown")this.handleKeydownEvent(t);else if(t.type==="keyup")this.handleKeyupEvent(t);else if(t.type==="pointermove")this.lastMoveEvent=t;else if(t.type==="pointerup"&&t.target===this.scrim)Number.isFinite(this.rootMenu._openTimestamp)&&Date.now()-this.rootMenu._openTimestamp<120?this.state="modal":this.state==="modal"&&this.hide();else if(t.type==="contextmenu"){t.preventDefault(),t.stopPropagation();return}super.handleEvent(t)}dispatchEvent(t){return this._host?this._host.dispatchEvent(t):!0}get scrim(){return Co.element}connectScrim(t){const r=this.scrim;r.addEventListener("pointerup",this),r.addEventListener("contextmenu",this),r.addEventListener("keydown",this),r.addEventListener("keyup",this),r.addEventListener("pointermove",this),Co.open({root:t,onDismiss:()=>this.hide()})}disconnectScrim(){const t=this.scrim;t.removeEventListener("pointerup",this),t.removeEventListener("contextmenu",this),t.removeEventListener("keydown",this),t.removeEventListener("keyup",this),t.removeEventListener("pointermove",this),Co.state==="open"&&Co.scrim.close()}get rootMenu(){return this}show(t){return this._onDismiss=t==null?void 0:t.onDismiss,t!=null&&t.modifiers&&(this.modifiers=t.modifiers),this.updateState(),this.connectScrim(t==null?void 0:t.target),super.show(E(f({},t),{container:this.scrim}))?(this._openTimestamp=Date.now(),this.state="open",!0):(this.disconnectScrim(),!1)}hide(){this.cancelDelayedOperation(),this.state!==void 0&&(this.state!=="closed"&&(this.activeMenuItem=null,Co.element.parentElement.focus(),super.hide(),this.state="closed",this.disconnectScrim()),this._onDismiss&&(this._onDismiss(),this._onDismiss=void 0))}scheduleOperation(t){this.cancelDelayedOperation();const r=Fp.SUBMENU_DELAY;if(r<=0){t();return}this.hysteresisTimer=setTimeout(()=>{this.hysteresisTimer=0,t()},r)}cancelDelayedOperation(){this.hysteresisTimer&&(clearTimeout(this.hysteresisTimer),this.hysteresisTimer=0)}};_h.SUBMENU_DELAY=120;var Mm=_h;function Fh(e){return T0(e)?!1:typeof e.label=="function"||typeof e.ariaLabel=="function"||typeof e.tooltip=="function"||(Mu(e)||sf(e))&&(typeof e.enabled=="function"||typeof e.visible=="function")||Mu(e)&&typeof e.checked=="function"?!0:sf(e)?e.submenu.some(Fh):!1}var A0=class{};A0.DELAY=300,A0.MAX_DISTANCE=10;function Lm(e){return new Promise((t,r)=>{const n=qa(e);n||t(!1);let i=n;const s=setTimeout(()=>{A.abort(),t(Fm(i,n)<A0.MAX_DISTANCE)},A0.DELAY),A=new AbortController,M=A.signal;for(const $ of["pointermove","pointerup","pointercancel"])window.addEventListener($,q=>{if(q.type==="pointerup"||q.type==="pointercancel")clearTimeout(s),A.abort(),t(!1);else if(q.type==="pointermove"){const Ae=qa(q);Ae&&(i=Ae)}},{passive:!0,signal:M})})}function Ih(e,t,r){return gd(this,null,function*(){if(e.type==="contextmenu"){const n=e;if(r.show({target:t,location:qa(n),modifiers:Sa(n)}))return e.preventDefault(),e.stopPropagation(),!0}if(e.type==="keydown"){const n=e;if(n.code==="ContextMenu"||n.code==="F10"&&n.shiftKey){const i=t==null?void 0:t.getBoundingClientRect();if(i&&r.show({target:t,location:{x:Math.ceil(i.left+i.width/2),y:Math.ceil(i.top+i.height/2)},modifiers:Sa(n)}))return e.preventDefault(),e.stopPropagation(),!0}}if(e.type==="pointerdown"&&e.pointerType!=="mouse"&&e.button===0){let n=e.target;for(;n&&t!==n;)n=n.parentNode;if(!n||!r.visible)return!1;const i=qa(e);if(yield Lm(e))return r.state!=="closed"?!1:(r.show({target:t,location:i}),!0)}return!1})}var Mh={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};me(Object.keys(Mh),"{body:auto}",{createAtom:e=>new cc(E(f({},e),{body:ct(e.args[0]),accentChar:Mh[e.command.slice(1)]}))}),me(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:e=>{const t=be(ct(e.args[0]));return new cc(E(f({},e),{body:ct(e.args[0]),svgAccent:e.command.slice(1)+(t.length>5?"4":["1","1","2","2","3","3"][t.length])}))}}),me(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:e=>new cc(E(f({},e),{body:ct(e.args[0]),svgAccent:"overarc"}))}),me(["underarc","underparen"],"{body:auto}",{createAtom:e=>new gl(E(f({},e),{body:ct(e.args[0]),svgBelow:"underarc"}))}),me("utilde","{body:auto}",{createAtom:e=>{const t=ct(e.args[0]),r=be(t),n="widetilde"+(r.length>5?"4":["1","1","2","2","3","3"][r.length]);return new gl(E(f({},e),{body:t,svgBelow:n,boxType:vc(t)}))}}),me("^","{:string}",{createAtom:e=>{var t;return new zr(E(f({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={a:"\xE2",e:"\xEA",i:"\xEE",o:"\xF4",u:"\xFB",A:"\xC2",E:"\xCA",I:"\xCE",O:"\xD4",U:"\xDB"}[e.args[0]])!=null?t:"^"}))}}),me("`","{:string}",{createAtom:e=>{var t;return new zr(E(f({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={a:"\xE0",e:"\xE8",i:"\xEC",o:"\xF2",u:"\xF9",A:"\xC0",E:"\xC8",I:"\xCC",O:"\xD2",U:"\xD9"}[e.args[0]])!=null?t:"`"}))}}),me("'","{:string}",{createAtom:e=>{var t;return new zr(E(f({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={a:"\xE1",e:"\xE9",i:"\xED",o:"\xF3",u:"\xFA",A:"\xC1",E:"\xC9",I:"\xCD",O:"\xD3",U:"\xDA"}[e.args[0]])!=null?t:"'"}))}}),me('"',"{:string}",{createAtom:e=>{var t,r;return new zr(E(f({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:(t=e.args)!=null&&t[0]?(r={a:"\xE4",e:"\xEB",i:"\xEF",o:"\xF6",u:"\xFC",A:"\xC4",E:"\xCB",I:"\xCB",O:"\xD6",U:"\xDC"}[e.args[0]])!=null?r:'"'+e.args[0]:'"'}))}}),me(".","{:string}",{createAtom:e=>{var t,r;return new zr(E(f({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:(t=e.args)!=null&&t[0]?(r={a:"\u0227",e:"\u0117",i:"\u0307i",o:"\u022F",u:"\u0307u",A:"\u0226",E:"\u0116",I:"\u0130",O:"\u022E",U:"\u0307U"}[e.args[0]])!=null?r:"."+e.args[0]:"."}))}}),me("=","{:string}",{createAtom:e=>{var t,r;return new zr(E(f({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:(t=e.args)!=null&&t[0]?(r={a:"\u0101",e:"\u0113",i:"\u012B",o:"\u014D",u:"\u016B",A:"\u0100",E:"\u0112",I:"\u012A",O:"\u014C",U:"\u016A"}[e.args[0]])!=null?r:"="+e.args[0]:"="}))}}),me("~","{:string}",{createAtom:e=>{var t;return new zr(E(f({type:"mord"},e),{isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={n:"\xF1",N:"\xD1",a:"\xE3",o:"\xF5",A:"\xC3",O:"\xD5"}[e.args[0]])!=null?t:"\xB4"}))}}),me("c","{:string}",{createAtom:e=>{var t;return new zr(E(f({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={c:"\xE7",C:"\xC7"}[e.args[0]])!=null?t:""}))}}),me("enclose","{notation:string}[style:string]{body:auto}",{createAtom:e=>{var t,r;const n=e.args,i={strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"none",svgStrokeStyle:void 0,borderStyle:void 0,style:(t=e.style)!=null?t:{}};if(n[1]){const A=n[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const M of A){const $=M.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if($)i.strokeWidth=$[1],i.strokeStyle=$[2],i.strokeColor=$[3];else{const q=M.match(/\s*([a-z]*)\s*=\s*"(.*)"/);q&&(q[1]==="mathbackground"?i.backgroundcolor=q[2]:q[1]==="mathcolor"?i.strokeColor=q[2]:q[1]==="padding"?i.padding=q[2]:q[1]==="shadow"&&(i.shadow=q[2]))}}i.strokeStyle==="dashed"?i.svgStrokeStyle="5,5":i.strokeStyle==="dotted"&&(i.svgStrokeStyle="1,5")}i.borderStyle=`${i.strokeWidth} ${i.strokeStyle} ${i.strokeColor}`;const s={};return((r=n[0])!=null?r:"").split(/[, ]/).filter(A=>A.length>0).forEach(A=>{s[A.toLowerCase()]=!0}),new Vu(e.command,ct(n[2]),s,i)}}),me("cancel","{body:auto}",{createAtom:e=>{var t;return new Vu(e.command,ct(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:{}})}}),me("bcancel","{body:auto}",{createAtom:e=>{var t;return new Vu(e.command,ct(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:{}})}}),me("xcancel","{body:auto}",{createAtom:e=>{var t;return new Vu(e.command,ct(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:{}})}}),me(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:e=>{var t;return new gl(E(f({},e),{body:ct((t=e.args)==null?void 0:t[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:e.command.slice(1)}))}}),me("overbrace","{:auto}",{createAtom:e=>new gl(E(f({},e),{body:ct(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:e.command.slice(1)}))}),me(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:e=>new gl(E(f({},e),{body:ct(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:e.command.slice(1)}))}),me(["underbrace"],"{:auto}",{createAtom:e=>new gl(E(f({},e),{body:ct(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:e.command.slice(1)}))}),me(["xrightarrow","longrightarrow","xleftarrow","longleftarrow","xRightarrow","xLeftarrow","xleftharpoonup","xleftharpoondown","xrightharpoonup","xrightharpoondown","xlongequal","xtwoheadleftarrow","xtwoheadrightarrow","xleftrightarrow","longleftrightarrow","xLeftrightarrow","xrightleftharpoons","longrightleftharpoons","xleftrightharpoons","xhookleftarrow","xhookrightarrow","xmapsto","xtofrom","xleftrightarrows","longleftrightarrows","xRightleftharpoons","longRightleftharpoons","xLeftrightharpoons","longLeftrightharpoons"],"[:auto]{:auto}",{createAtom:e=>{var t,r,n,i,s;return new gl(E(f({},e),{svgBody:e.command.slice(1),above:((r=ct((t=e.args)==null?void 0:t[1]))==null?void 0:r.length)===0?void 0:ct((n=e.args)==null?void 0:n[1]),below:(s=ct((i=e.args)==null?void 0:i[0]))!=null?s:null,skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,paddedLabels:!0,boxType:"rel"}))},serialize:(e,t)=>e.command+(e.hasEmptyBranch("below")?"":`[${e.belowToLatex(t)}]`)+`{${e.aboveToLatex(t)}}${e.supsubToLatex(t)}`}),me(["arccos","arcsin","arctan","arctg","arcctg","arg","ch","cos","cosh","cot","cotg","coth","ctg","cth","csc","cosec","deg","dim","exp","gcd","hom","inf","ker","lb","lg","ln","log","Pr","sec","sh","sin","sinh","sup","tan","tanh","tg","th","arcsec","arccsc","arsinh","arcosh","artanh","arcsech","arccsch"],"",{isFunction:!0,ifMode:"math",createAtom:e=>new NA(e.command.slice(1),E(f({},e),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),me(["liminf","limsup"],"",{ifMode:"math",createAtom:e=>new NA({"\\liminf":"lim inf","\\limsup":"lim sup"}[e.command],E(f({},e),{limits:"over-under",variant:"main"}))}),me(["lim","mod"],"",{ifMode:"math",createAtom:e=>new NA(e.command.slice(1),E(f({},e),{limits:"over-under",variant:"main"}))}),me(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:e=>new NA(e.command.slice(1),E(f({},e),{limits:"over-under",isFunction:!0,variant:"main"}))}),me(["ang"],"{:math}",{ifMode:"math",createAtom:e=>new zr(E(f({},e),{body:ct(e.args[0])})),serialize:(e,t)=>`\\ang{${e.bodyToLatex(t)}}`,render:(e,t)=>{const r=e.createBox(t),n=r.caret;r.caret=void 0;const i=new fn("\xB0",{style:E(f({},e.style),{variant:"normal",variantStyle:"up"})});return new fn([r,i],{type:"inner",isSelected:e.isSelected,caret:n})}}),me("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:e=>new nA(E(f({},e),{body:ct(e.args[1]),index:e.args[0]?ct(e.args[0]):void 0}))}),me(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:e=>{const t=f({},e),r=e.command,n=e.args;switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":t.hasBarLine=!0;break;case"\\atopfrac":t.hasBarLine=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":t.hasBarLine=!1,t.leftDelim="(",t.rightDelim=")";break;case"\\cfrac":t.hasBarLine=!0,t.continuousFraction=!0;break;default:}switch(r){case"\\dfrac":case"\\dbinom":t.mathstyleName="displaystyle";break;case"\\tfrac":case"\\tbinom":t.mathstyleName="textstyle";break;default:}return new nu(n[0]?ct(n[0]):[new ql],n[1]?ct(n[1]):[new ql],t)},serialize:(e,t)=>{const r=e.aboveToLatex(t),n=e.belowToLatex(t);return/^[0-9]$/.test(r)&&/^[0-9]$/.test(n)?`${e.command}${r}${n}`:So(e.command,r,n)}}),me(["brace","brack"],"",{infix:!0,createAtom:e=>new nu(ct(e.args[0]),ct(e.args[1]),E(f({},e),{hasBarLine:!1,leftDelim:e.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:e.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(e,t)=>Ca([e.aboveToLatex(t),e.command,e.belowToLatex(t)])}),me(["over","atop","choose"],"",{infix:!0,createAtom:e=>{let t,r;const n=e.args;return e.command==="\\choose"&&(t="(",r=")"),new nu(ct(n[0]),ct(n[1]),E(f({},e),{hasBarLine:e.command==="\\over",leftDelim:t,rightDelim:r}))},serialize:(e,t)=>Ca([e.aboveToLatex(t),e.command,e.belowToLatex(t)])}),me(["overwithdelims","atopwithdelims"],"{numer:auto}{denom:auto}{left-delim:delim}{right-delim:delim}",{infix:!0,createAtom:e=>{var t,r;const n=e.args;return new nu(ct(n[0]),ct(n[1]),E(f({},e),{leftDelim:(t=n[2])!=null?t:".",rightDelim:(r=n[3])!=null?r:".",hasBarLine:!1}))},serialize:(e,t)=>`${e.aboveToLatex(t)} ${e.command}${e.leftDelim}${e.rightDelim}${e.belowToLatex(t)}`}),me("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:e=>new nu(ct(e.args[0]),ct(e.args[1]),E(f({},e),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),me(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:e=>new Cd({coprod:"\u2210",bigvee:"\u22C1",bigwedge:"\u22C0",biguplus:"\u2A04",bigcap:"\u22C2",bigcup:"\u22C3",intop:"\u222B",prod:"\u220F",sum:"\u2211",bigotimes:"\u2A02",bigoplus:"\u2A01",bigodot:"\u2A00",bigsqcup:"\u2A06",smallint:"\u222B"}[e.command.slice(1)],E(f({},e),{limits:"auto",variant:"main"}))}),me("smallint","",{ifMode:"math",createAtom:e=>new NA("\u222B",E(f({},e),{limits:"adjacent",variant:"main"}))});var Lh={int:"\u222B",iint:"\u222C",iiint:"\u222D",oint:"\u222E",oiint:"\u222F",oiiint:"\u2230",intclockwise:"\u2231",varointclockwise:"\u2232",ointctrclockwise:"\u2233",intctrclockwise:"\u2A11",sqcup:"\u2294",sqcap:"\u2293",uplus:"\u228E",wr:"\u2240",amalg:"\u2A3F",Cap:"\u22D2",Cup:"\u22D3",doublecap:"\u22D2",doublecup:"\u22D3"};me(Object.keys(Lh),"",{ifMode:"math",createAtom:e=>{const t=e.command,r=Lh[t.slice(1)];return new Cd(r,E(f({},e),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[r]}))}}),me(["Re","Im"],"",{ifMode:"math",createAtom:e=>new NA({"\\Re":"\u211C","\\Im":"\u2111"}[e.command],E(f({},e),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),me("middle","{:delim}",{ifMode:"math",createAtom:e=>{var t;return new Zd(E(f({},e),{delim:(t=e.args[0])!=null?t:"|",size:1}))}}),me("the","{:value}",{createAtom:e=>new zr(E(f({},e),{captureSelection:!0,verbatimLatex:null})),render:(e,t)=>{var r;const n=new la({parent:t},e.style);let i="";e.isSelected&&(i+=" ML__selected");const s=n.evaluate(e.args[0]);return new fn(((r=os(s))!=null?r:"").split("").map(A=>new fn(A,{type:"ord",classes:i,mode:e.mode,isSelected:e.isSelected,style:f({variant:"main"},e.style)})),{type:"lift",style:e.style,caret:e.caret,isSelected:e.isSelected,classes:i}).wrap(n)},serialize:e=>{var t;return`\\the${(t=os(e.args[0]))!=null?t:"\\relax"}`}}),me("mathtip","{:auto}{:math}",{createAtom:e=>new sd(E(f({},e),{body:ct(e.args[0]),tooltip:ct(e.args[1]),content:"math"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${zr.serialize([e.tooltip],E(f({},t),{defaultMode:"math"}))}}`}),me("texttip","{:auto}{:text}",{createAtom:e=>new sd(E(f({},e),{body:ct(e.args[0]),tooltip:ct(e.args[1]),content:"text"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${zr.serialize([e.tooltip],E(f({},t),{defaultMode:"text"}))}}`}),me("error","{:math}",{createAtom:e=>new zr(E(f({},e),{body:ct(e.args[0])})),serialize:(e,t)=>`\\error{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__error"})}),me("ensuremath","{:math}",{createAtom:e=>new zr(E(f({},e),{body:ct(e.args[0])})),serialize:(e,t)=>`${e.command}{${e.bodyToLatex(E(f({},t),{defaultMode:"math"}))}}`}),me("color","{:value}",{applyStyle:(e,t,r)=>{var n,i;return{verbatimColor:(n=os(t[0]))!=null?n:void 0,color:r.toColor((i=t[0])!=null?i:{string:"red"})}}}),me("textcolor","{:value}{content:auto*}",{applyStyle:(e,t,r)=>{var n,i;return{verbatimColor:(n=os(t[0]))!=null?n:void 0,color:r.toColor((i=t[0])!=null?i:{string:"red"})}}}),me("boxed","{content:math}",{createAtom:e=>new Qs(E(f({},e),{body:ct(e.args[0]),framecolor:{string:"black"}}))}),me("colorbox","{:value}{:text*}",{applyStyle:(e,t,r)=>{var n,i;return{verbatimBackgroundColor:(n=os(t[0]))!=null?n:void 0,backgroundColor:r.toBackgroundColor((i=t[0])!=null?i:{string:"yellow"})}}}),me("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:e=>{var t,r;return new Qs(E(f({},e),{body:ct(e.args[2]),framecolor:(t=e.args[0])!=null?t:{string:"blue"},backgroundcolor:(r=e.args[1])!=null?r:{string:"yellow"}}))},serialize:(e,t)=>{var r,n;return t.skipStyles?e.bodyToLatex(E(f({},t),{defaultMode:"text"})):So(e.command,(r=os(e.framecolor))!=null?r:"",(n=os(e.backgroundcolor))!=null?n:"",e.bodyToLatex(E(f({},t),{defaultMode:"text"})))}}),me("bbox","[:bbox]{body:auto}",{createAtom:e=>{var t;const r=e.args[0],n=ct(e.args[1]);return r?new Qs(E(f({},e),{body:n,padding:r.padding,border:r.border,backgroundcolor:(t=r.backgroundcolor)!=null?t:void 0})):new Qs(E(f({},e),{body:n}))},serialize:(e,t)=>{var r,n;if(t.skipStyles)return e.bodyToLatex(t);let i=e.command;if(Number.isFinite(e.padding)||e.border!==void 0||e.backgroundcolor!==void 0){const s=[];e.padding&&s.push((r=os(e.padding))!=null?r:""),e.border&&s.push(`border: ${e.border}`),e.backgroundcolor&&s.push((n=os(e.backgroundcolor))!=null?n:""),i+=`[${s.join(",")}]`}return So(i,e.bodyToLatex(t))}}),me(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:e=>new zr(E(f({},e),{body:ct(e.args[0])})),render:(e,t)=>{const r=new la({parent:t,mathstyle:e.command.slice(1)},e.style),n=zr.createBox(r,e.body,{type:"lift"});return e.caret&&(n.caret=e.caret),e.bind(t,n)},serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`{${Ca([e.command,e.bodyToLatex(t)])}}`}),me(["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]})}),me("fontseries","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontSeries:(r=t[0])!=null?r:"auto"}}}),me("fontshape","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontShape:(r=t[0])!=null?r:"auto"}}}),me("fontfamily","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontFamily:(r=t[0])!=null?r:"roman"}}}),me("selectfont","",{ifMode:"text",applyStyle:()=>({})}),me("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),me(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:e=>new zr(E(f({},e),{body:ct(e.args[0])})),serialize:(e,t)=>`${e.command}{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__boldsymbol"})}),me("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),me("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),me("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),me("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),me("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),me("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),me("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),me("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),me("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),me("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),me("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),me("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),me("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),me("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),me("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),me("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),me("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),me("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),me("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),me("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),me("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),me("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),me("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),me("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),me("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),me("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),me("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),me(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),me(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),me("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),me("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),me("mbox","{:text}",{ifMode:"math",createAtom:e=>new zr(E(f({},e),{type:"mord",body:ct(e.args[0]),mode:"math"})),serialize:(e,t)=>So("\\mbox",e.bodyToLatex(E(f({},t),{defaultMode:"text"})))}),me("text","{:text}",{ifMode:"math",applyMode:"text"}),me(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:e=>new zr(E(f({},e),{body:ct(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:""})}}),me(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:e=>new zr(E(f({},e),{body:ct(e.args[1])})),serialize:(e,t)=>{var r;return!((r=e.args)!=null&&r[0])||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var r;const n=e.createBox(t);return n.cssId=(r=e.args[0])!=null?r:"",n}}),me("htmlData","{data:string}{content:auto}",{createAtom:e=>new zr(E(f({},e),{body:ct(e.args[1])})),serialize:(e,t)=>{var r;return!((r=e.args)!=null&&r[0])||t.skipStyles?e.bodyToLatex(t):`\\htmlData{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var r;const n=e.createBox(t);return n.htmlData=(r=e.args[0])!=null?r:"",n}}),me(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:e=>new zr(E(f({},e),{body:ct(e.args[1])})),serialize:(e,t)=>{var r;return!((r=e.args)!=null&&r[0])||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var r;const n=e.createBox(t);return n.htmlStyle=(r=e.args[0])!=null?r:"",n}}),me("em","{:rest}",{createAtom:e=>new zr(E(f({},e),{body:ct(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"})}),me("emph","{:auto}",{createAtom:e=>new zr(E(f({},e),{body:ct(e.args[1])})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\emph{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__emph",boxType:"lift"})});var kh={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}};me(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:e=>{var t;return new wd(E(f({},e),{delim:(t=e.args[0])!=null?t:".",size:kh[e.command].size,delimType:kh[e.command].mclass}))}}),me(["hspace","hspace*"],"{width:value}",{createAtom:e=>{var t;return new Vs(E(f({},e),{width:(t=e.args[0])!=null?t:{dimension:0}}))}}),me(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:e=>{var t;return new Vs(E(f({},e),{width:(t=e.args[0])!=null?t:{dimension:0}}))}}),me("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:e=>new zr(e),render:(e,t)=>{let r=0;const n=t.mathstyle.id;(n===_A||n===Vl)&&(r=1),(n===ic||n===lo)&&(r=2),(n===Os||n===ts)&&(r=3);const i=ct(e.args[r]);return zr.createBox(t,i)},serialize:(e,t)=>`\\mathchoice{${zr.serialize(e.args[0],t)}}{${zr.serialize(e.args[1],t)}}{${zr.serialize(e.args[2],t)}}{${zr.serialize(e.args[3],t)}}`}),me("mathop","{:auto}",{createAtom:e=>new zr(E(f({},e),{type:"mop",body:ct(e.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(e,t)=>{var r;let n=zr.createBox(t,e.body);if(e.superscript||e.subscript){const i=(r=e.subsupPlacement)!=null?r:"auto";n=i==="over-under"||i==="auto"&&t.isDisplayStyle?e.attachLimits(t,{base:n}):e.attachSupsub(t,{base:n})}return new fn(e.bind(t,n),{type:"op",isSelected:e.isSelected,classes:"op-group"})},serialize:(e,t)=>{const r=[So(e.command,e.bodyToLatex(t))];return e.explicitSubsupPlacement&&(e.subsupPlacement==="over-under"&&r.push("\\limits"),e.subsupPlacement==="adjacent"&&r.push("\\nolimits"),e.subsupPlacement==="auto"&&r.push("\\displaylimits")),r.push(e.supsubToLatex(t)),Ca(r)}}),me(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:e=>new zr(E(f({},e),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[e.command],body:ct(e.args[0])}))}),me(["operatorname","operatorname*"],"{operator:math}",{createAtom:e=>{const t=ct(e.args[0]).map(r=>{var n;return r.type!=="first"&&(r.type="mord",r.value=(n={"\u2217":"*","\u2212":"-"}[r.value])!=null?n:r.value,r.isFunction=!1,!r.style.variant&&!r.style.variantStyle&&(r.style.variant="main",r.style.variantStyle="up")),r});return new zr(E(f({},e),{type:"mop",body:t,isFunction:!0,limits:e.command==="\\operatorname"?"adjacent":"over-under"}))},render:(e,t)=>{var r;let n=zr.createBox(t,e.body);if(e.superscript||e.subscript){const i=(r=e.subsupPlacement)!=null?r:"auto";n=i==="over-under"||i==="auto"&&t.isDisplayStyle?e.attachLimits(t,{base:n}):e.attachSupsub(t,{base:n})}return e.caret&&(n.caret=e.caret),new fn(e.bind(t,n),{type:"op",isSelected:e.isSelected,classes:"op-group"})},serialize:(e,t)=>{const r=[So(e.command,e.bodyToLatex(t))];return e.explicitSubsupPlacement&&(e.subsupPlacement==="over-under"&&r.push("\\limits"),e.subsupPlacement==="adjacent"&&r.push("\\nolimits"),e.subsupPlacement==="auto"&&r.push("\\displaylimits")),r.push(e.supsubToLatex(t)),Ca(r)}}),me(["char","unicode"],"{charcode:value}",{createAtom:e=>new zr(E(f({},e),{type:e.mode==="text"?"text":"mord"})),serialize:e=>{var t;return`${e.command}${os((t=e.args[0])!=null?t:{number:10067,base:"hexadecimal"})}`},render:(e,t)=>{let r=t.evaluate(e.args[0]);return(!r||!("number"in r))&&(r={number:10067,base:"hexadecimal"}),e.value=String.fromCodePoint(r.number),e.createBox(t)}}),me("rule","[raise:value]{width:value}{thickness:value}",{createAtom:e=>new zr(e),render:(e,t)=>{var r,n,i;const s=new la({parent:t,mathstyle:"textstyle"},e.style),A=s.toEm((r=e.args[0])!=null?r:{dimension:0}),M=s.toEm((n=e.args[1])!=null?n:{dimension:10}),$=s.toEm((i=e.args[2])!=null?i:{dimension:10}),q=new fn(null,{classes:"rule",type:"ord"});return q.width=M,q.height=$+A,q.depth=-A,q.setStyle("border-right-width",M,"em"),q.setStyle("border-top-width",$,"em"),q.setStyle("border-color",e.style.color),q.setStyle("vertical-align",A,"em"),e.isSelected&&q.setStyle("opacity","50%"),e.bind(s,q),e.caret&&(q.caret=e.caret),q.wrap(t)},serialize:e=>`\\rule${e.args[0]?`[${os(e.args[0])}]`:""}{${os(e.args[1])}}{${os(e.args[2])}}`}),me(["overline","underline"],"{:auto}",{createAtom:e=>new zr(E(f({},e),{body:ct(e.args[0])})),render:(e,t)=>{const r=e.command.substring(1),n=new la({parent:t,mathstyle:"cramp"},e.style),i=zr.createBox(n,e.body);if(!i)return null;const s=n.metrics.defaultRuleThickness/n.scalingFactor,A=new fn(null,{classes:r+"-line"});A.height=s,A.maxFontSize=s*1.125*n.scalingFactor;let M;return r==="overline"?M=new Xo({shift:0,children:[{box:i},3*s,{box:A},s]}):M=new Xo({top:i.height,children:[s,{box:A},3*s,{box:i}]}),e.caret&&(M.caret=e.caret),new fn(M,{classes:r,type:"ignore"})}}),me("overset","{:auto}{base:auto}",{createAtom:e=>{const t=ct(e.args[1]);return new gl(E(f({},e),{above:ct(e.args[0]),body:t,skipBoundary:!1,boxType:vc(t)}))},serialize:(e,t)=>So(e.command,e.aboveToLatex(t),e.bodyToLatex(t))}),me("underset","{:auto}{base:auto}",{createAtom:e=>{const t=ct(e.args[1]);return new gl(E(f({},e),{below:ct(e.args[0]),body:t,skipBoundary:!1,boxType:vc(t)}))},serialize:(e,t)=>So(e.command,e.belowToLatex(t),e.bodyToLatex(t))}),me("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:e=>{const t=ct(e.args[2]);return new gl(E(f({},e),{above:ct(e.args[0]),below:ct(e.args[1]),body:t,skipBoundary:!1,boxType:vc(t)}))},serialize:(e,t)=>So(e.command,e.belowToLatex(t),e.bodyToLatex(t))}),me(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:e=>new gl(E(f({},e),{body:ct(e.args[2]),above:ct(e.args[1]),below:ct(e.args[0]),skipBoundary:!1,boxType:e.command==="\\stackrel"?"rel":"bin"})),serialize:(e,t)=>So(e.command,e.aboveToLatex(t),e.bodyToLatex(t))}),me("smash","[:string]{:auto}",{createAtom:e=>{var t,r,n,i;return new _c(E(f({},e),{body:ct(e.args[1]),smashHeight:(r=(t=e.args[0])==null?void 0:t.includes("t"))!=null?r:!0,smashDepth:(i=(n=e.args[0])==null?void 0:n.includes("b"))!=null?i:!0}))}}),me(["vphantom"],"{:auto}",{createAtom:e=>new _c(E(f({},e),{body:ct(e.args[0]),isInvisible:!0,smashWidth:!0}))}),me(["hphantom"],"{:auto}",{createAtom:e=>new _c(E(f({},e),{body:ct(e.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),me(["phantom"],"{:auto}",{createAtom:e=>new _c(E(f({},e),{body:ct(e.args[0]),isInvisible:!0}))}),me("not","{:math}",{createAtom:e=>{const t=ct(e.args[0]);return t.length===0?new zr(E(f({},e),{type:"mrel",value:"\uE020"})):new zr(E(f({},e),{body:[new pA(E(f({},e),{body:"\uE020",align:"right"})),...t],captureSelection:!0}))},serialize:(e,t)=>{const r=e.args[0],n=r&&typeof r=="object"&&"group"in r;return e.value!=="\uE020"?n?`\\not{${zr.serialize(r.group,t)}}`:`\\not${zr.serialize(r,t)}`:n?"\\not{}":"\\not"},render:(e,t)=>{if(e.value)return e.createBox(t);const n=e.args[0]&&typeof e.args[0]=="object"&&"group"in e.args[0]?"ord":vc(ct(e.args[0])),i=zr.createBox(t,e.body,{type:n});return e.caret&&(i.caret=e.caret),e.bind(t,i)}}),me(["ne","neq"],"",{createAtom:e=>new zr(E(f({},e),{type:"mrel",body:[new pA(E(f({},e),{body:"\uE020",align:"right",boxType:"rel"})),new zr(E(f({},e),{value:"="}))],captureSelection:!0})),serialize:e=>e.command}),me("rlap","{:auto}",{createAtom:e=>new pA(E(f({},e),{body:ct(e.args[0]),align:"right"}))}),me("llap","{:auto}",{createAtom:e=>new pA(E(f({},e),{body:ct(e.args[0]),align:"left"}))}),me("mathrlap","{:math}",{createAtom:e=>new pA(E(f({},e),{body:ct(e.args[0]),align:"left"}))}),me("mathllap","{:math}",{createAtom:e=>new pA(E(f({},e),{body:ct(e.args[0]),align:"left"}))}),me("raisebox","{:value}{:text}",{createAtom:e=>{var t;return new Qs(E(f({},e),{body:ct(e.args[1]),padding:{dimension:0},offset:(t=e.args[0])!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r;return So("\\raisebox",(r=os(e.offset))!=null?r:"0pt",e.bodyToLatex(t))}}),me("raise","{:value}{:auto}",{createAtom:e=>{var t;return new Qs(E(f({},e),{body:ct(e.args[1]),padding:{dimension:0},offset:(t=e.args[0])!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r;return So("\\raise",(r=os(e.offset))!=null?r:"0pt",e.bodyToLatex(t))}}),me("lower","{:value}{:auto}",{createAtom:e=>{var t;return new Qs(E(f({},e),{body:ct(e.args[1]),padding:{dimension:0},offset:(t=ys(e.args[0],-1))!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r,n;return So("\\lower",(n=os(ys((r=e.offset)!=null?r:{dimension:0},-1)))!=null?n:"0pt",e.bodyToLatex(t))}}),ee("0123456789/@.?!"),Ce(65,90),Ce(97,122),ee([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),ee([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),ee([["\\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]]),ee([["\\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"),ee([["\\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"]]),ee([["\\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"]]),ee([["\\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"),ee([["+",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"),ee([["\\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"),ee([["\\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]]),ee([["=",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"),ee([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),ee([["\\wp",8472],["\\aleph",8501]]),ee([["\\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"),ee([["\\ ",160],["~",160]],"space"),me(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:e=>new Vs(e)}),me("space","",{createAtom:e=>new Vs(e)}),ee([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),ee([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),ee([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var Dh="<mo>⁡</mo>",u0="<mo>⁢</mo>";function d0(e){return e.replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function qo(e,t){return!e||!t.generateID?"":` extid="${e}"`}function km(e,t,r){var n,i,s,A,M,$,q,Ae,Qe,ut,Ft;let Nt=!1;t=t!=null?t:e.atoms.length;let Fr="",In="",Cr=e.atoms[e.index];const an=(i=(n=Cr.style)==null?void 0:n.variant)!=null?i:"",Rn=(A=(s=Cr.style)==null?void 0:s.variantStyle)!=null?A:"";let pn="";if(an||Rn){const ji=At(Cr.value,(M=Cr.style)==null?void 0:M.variant,($=Cr.style)==null?void 0:$.variantStyle);if(ji!==Cr.value)return e.index+=1,Fr=`<mi${qo(Cr.id,r)}>${ji}</mi>`,Xu(Fr,e,r)||(e.mathML+=Fr,e.lastType="mi"),!0;pn=(q={upnormal:"normal",boldnormal:"bold",italicmain:"italic",bolditalicmain:"bold-italic","updouble-struck":"double-struck","double-struck":"double-struck",boldfraktur:"bold-fraktur",calligraphic:"script",upcalligraphic:"script",script:"script",boldscript:"bold-script",boldcalligraphic:"bold-script",fraktur:"fraktur","upsans-serif":"sans-serif","boldsans-serif":"bold-sans-serif","italicsans-serif":"sans-serif-italic","bolditalicsans-serif":"sans-serif-bold-italic",monospace:"monospace"}[Rn+an])!=null?q:"",pn=` mathvariant="${pn}"`}const Ci={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(Cr.command==="!")return e.index+=1,Fr="<mo>!</mo>",Xu(Fr,e,r)||(e.mathML+=Fr,e.lastType="mo"),!0;if(Ci[Cr.command]){e.index+=1;let ji=`<mi${qo(Cr.id,r)}${pn}>${Ci[Cr.command]}</mi>`;return(e.lastType==="mi"||e.lastType==="mn"||e.lastType==="mtext"||e.lastType==="fence")&&(ji=u0+ji),Xu(ji,e,r)||(e.mathML+=ji,e.lastType="mi"),!0}if(Cr.command==="\\operatorname")In=cf(Cr.body),e.index+=1;else if(an||Rn)for(;e.index<t&&(Cr.type==="mord"||Cr.type==="macro")&&!Cr.isDigit()&&an===((Qe=(Ae=Cr.style)==null?void 0:Ae.variant)!=null?Qe:"")&&Rn===((Ft=(ut=Cr.style)==null?void 0:ut.variantStyle)!=null?Ft:"");)In+=cf([Cr]),e.index+=1,Cr=e.atoms[e.index];else(Cr.type==="mord"||Cr.type==="macro")&&!Cr.isDigit()&&(In+=cf([Cr]),e.index+=1);if(In.length>0){Nt=!0,Fr=`<mi${pn}>${In}</mi>`;const ji=e.lastType;Fr.endsWith(">f</mi>")||Fr.endsWith(">g</mi>")?(Fr+=Dh,e.lastType="applyfunction"):e.lastType=/^<mo>(.*)<\/mo>$/.test(Fr)?"mo":"mi",Xu(Fr,e,r)||((ji==="mi"||ji==="mn"||ji==="mtext"||ji==="fence")&&(Fr=u0+Fr),e.mathML+=Fr)}return Nt}function Dm(e){return e.index<e.atoms.length&&e.atoms[e.index].superscript&&e.atoms[e.index].type==="subsup"}function Pm(e){let t=-1,r=e.index,n=!1,i=!1;for(;r<e.atoms.length&&!n&&!i;){const s=e.atoms[r];n=!s.isDigit(),i=!n&&s.superscript!==void 0,r++}return i&&(t=r-1),t}function Xu(e,t,r){var n;let i=t.atoms[t.index-1];if(!i)return!1;if(!i.superscript&&!i.subscript)if(((n=t.atoms[t.index])==null?void 0:n.type)==="subsup")i=t.atoms[t.index],t.index+=1;else return!1;const s=t.lastType;t.lastType="";const A=Eo(i.superscript,r);t.lastType="";const M=Eo(i.subscript,r);if(t.lastType=s,!A&&!M)return!1;let $="";return A&&M?$=`<msubsup>${e}${M}${A}</msubsup>`:A?$=`<msup>${e}${A}</msup>`:M&&($=`<msub>${e}${M}</msub>`),t.mathML+=$,t.lastType="",!0}function Nm(e,t,r){t=t!=null?t:e.atoms.length;const n=e.index;let i="";for(;e.index<t&&e.atoms[e.index].mode==="text";)i+=e.atoms[e.index].value?e.atoms[e.index].value:" ",e.index+=1;return i.length>0?(e.mathML+=`<mtext ${qo(e.atoms[n].id,r)}>${i}</mtext>`,e.lastType="mtext",!0):!1}function Om(e,t,r){t=t!=null?t:e.atoms.length;const n=e.index;let i="",s=Pm(e);for(s>=0&&s<t&&(t=s);e.index<t&&e.atoms[e.index].isDigit();)i+=e.atoms[e.index].asDigit(),e.index+=1;return i.length<=0?!1:(i="<mn"+qo(e.atoms[n].id,r)+">"+i+"</mn>",s<0&&Dm(e)&&(s=e.index,e.index+=1),Xu(i,e,r)||(e.mathML+=i,e.lastType="mn"),!0)}function Tm(e,t,r){let n=!1;t=t!=null?t:e.atoms.length;let i="",s="";if(e.index<t&&e.atoms[e.index].type==="mopen"){let A=!1,M=0;const $=e.index;let q=-1,Ae=$+1;for(;Ae<t&&!A;)e.atoms[Ae].type==="mopen"?M+=1:e.atoms[Ae].type==="mclose"&&(M-=1),M===-1&&(A=!0,q=Ae),Ae+=1;A&&(i="<mrow>",i+=jd(e.atoms[$],r),i+=Eo(e.atoms,r,$+1,q),i+=jd(e.atoms[q],r),i+="</mrow>",e.index=q+1,(e.lastType==="mi"||e.lastType==="mn"||e.lastType==="mfrac"||e.lastType==="fence")&&(e.mathML+=u0),Xu(i,e,r)&&(n=!0,e.lastType="",i=""),s="fence")}return i.length>0&&(n=!0,e.mathML+=i,e.lastType=s),n}function Um(e,t,r){let n=!1;t=t!=null?t:e.atoms.length;let i="",s="";const A=e.atoms[e.index];if(!A)return!1;const M={"\\ne":"≠","\\neq":"&neq;","\\pm":"±","\\times":"×","\\colon":":","\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lbrack":"[","\\rbrack":"]","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"};if(M[A.command]){e.index+=1;const $=`<mo${qo(A.id,r)}>${M[A.command]}</mo>`;return Xu($,e,r)||(e.mathML+=$,e.lastType="mo"),!0}if(e.index<t&&(A.type==="mbin"||A.type==="mrel"))i+=Q0(e.atoms[e.index],r),e.index+=1,s="mo";else if(e.index<t&&(A.type==="mop"||A.type==="operator"||A.type==="extensible-symbol")){if(A.subsupPlacement==="over-under"&&(A.superscript||A.subscript)){const $=jd(A,r);return A.superscript&&A.subscript?(i+="<munderover>"+$,i+=Eo(A.subscript,r),i+=Eo(A.superscript,r),i+="</munderover>"):A.superscript?(i+="<mover>"+$,i+=Eo(A.superscript,r),i+="</mover>"):A.subscript&&(i+="<munder>"+$,i+=Eo(A.subscript,r),i+="</munder>"),e.mathML+=i,e.lastType="mo",e.index+=1,!0}{const $=e.atoms[e.index],q=$.value==="\\operatorname",Ae=q?'<mi class="MathML-Unit"'+qo($.id,r)+">"+cf($.value)+"</mi>":jd($,r);i+=Ae,!q&&!/^<mo>(.*)<\/mo>$/.test(Ae)?(i+=Dh,s="applyfunction"):s=q?"mi":"mo"}(e.lastType==="mi"||e.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(i)&&(i=u0+i),e.index+=1}return i.length>0&&(n=!0,Xu(i,e,r)||(e.mathML+=i,e.lastType=s)),n}function Eo(e,t,r,n){t!=null||(t={});const i={atoms:[],index:r!=null?r:0,mathML:"",lastType:""};if(typeof e=="number"||typeof e=="boolean")i.mathML=e.toString();else if(typeof e=="string")i.mathML=e;else if(e instanceof zr)i.mathML=Q0(e,t);else if(Array.isArray(e)){i.atoms=e;let s=0;for(n=n||(e?e.length:0);i.index<n;)if(Nm(i,n,t)||Om(i,n,t)||km(i,n,t)||Um(i,n,t)||Tm(i,n,t))s+=1;else if(i.index<n){let A=Q0(i.atoms[i.index],t);i.lastType==="mn"&&A.length>0&&i.atoms[i.index].type==="genfrac"&&(A="<mo>⁤</mo>"+A),i.atoms[i.index].type==="genfrac"?i.lastType="mfrac":i.lastType="",i.index+=1,Xu(A,i,t)?s+=1:A.length>0&&(i.mathML+=A,s+=1)}s>1&&(i.mathML="<mrow>"+i.mathML+"</mrow>")}return i.mathML}function jd(e,t){let r="";const n=cf(e.value);return n&&(r="<mo"+qo(e.id,t)+">"+n+"</mo>"),r}function cf(e){if(!e)return"";if(typeof e=="string")return d0(e);if(!Array.isArray(e)&&typeof e.body=="string")return d0(e.body);let t="";for(const r of e)typeof r.value=="string"&&(t+=r.value);return d0(t)}function Q0(e,t){var r,n,i,s,A,M,$,q,Ae,Qe,ut,Ft,Nt,Fr,In,Cr,an,Rn,pn,Ci,ji,Oi;if(e.mode==="text")return`<mi${qo(e.id,t)}>${e.value}</mi>`;const io={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",longleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",longrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",longrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xleftrightarrows:"\u21C4",xRightleftharpoons:"\u21CC",longRightleftharpoons:"\u21CC",xLeftrightharpoons:"\u21CB",longLeftrightharpoons:"\u21CB"},zo={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let Vn="",yA="",ku,RA,Il,bA,Vc,es;const{command:Gs}=e;if(e.command==="\\error")return`<merror${qo(e.id,t)}>${Eo(e.body,t)}</merror>`;const Ml={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},Du={"\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};switch(e.type){case"first":break;case"group":case"root":Vn=Eo(e.body,t);break;case"array":if((e.leftDelim&&e.leftDelim!=="."||e.rightDelim&&e.rightDelim!==".")&&(Vn+="<mrow>",e.leftDelim&&e.leftDelim!=="."&&(Vn+="<mo>"+(Ml[e.leftDelim]||e.leftDelim)+"</mo>")),Vn+="<mtable",e.colFormat){for(Vn+=' columnalign="',Il=0;Il<e.colFormat.length;Il++)e.colFormat[Il].align&&(Vn+={l:"left",c:"center",r:"right"}[e.colFormat[Il].align]+" ");Vn+='"'}for(Vn+=">",RA=0;RA<e.array.length;RA++){for(Vn+="<mtr>",ku=0;ku<e.array[RA].length;ku++)Vn+="<mtd>"+Eo(e.array[RA][ku],t)+"</mtd>";Vn+="</mtr>"}Vn+="</mtable>",(e.leftDelim&&e.leftDelim!=="."||e.rightDelim&&e.rightDelim!==".")&&(e.rightDelim&&e.rightDelim!=="."&&(Vn+="<mo>"+(Ml[e.leftDelim]||e.rightDelim)+"</mo>"),Vn+="</mrow>");break;case"genfrac":(e.leftDelim||e.rightDelim)&&(Vn+="<mrow>"),e.leftDelim&&e.leftDelim!=="."&&(Vn+="<mo"+qo(e.id,t)+">"+(Ml[e.leftDelim]||e.leftDelim)+"</mo>"),e.hasBarLine?(Vn+="<mfrac>",Vn+=Eo(e.above,t)||"<mi> </mi>",Vn+=Eo(e.below,t)||"<mi> </mi>",Vn+="</mfrac>"):(Vn+="<mtable"+qo(e.id,t)+">",Vn+="<mtr>"+Eo(e.above,t)+"</mtr>",Vn+="<mtr>"+Eo(e.below,t)+"</mtr>",Vn+="</mtable>"),e.rightDelim&&e.rightDelim!=="."&&(Vn+="<mo"+qo(e.id,t)+">"+(Ml[e.rightDelim]||e.rightDelim)+"</mo>"),(e.leftDelim||e.rightDelim)&&(Vn+="</mrow>");break;case"surd":e.hasEmptyBranch("above")?(Vn+="<msqrt"+qo(e.id,t)+">",Vn+=Eo(e.body,t),Vn+="</msqrt>"):(Vn+="<mroot"+qo(e.id,t)+">",Vn+=Eo(e.body,t),Vn+=Eo(e.above,t),Vn+="</mroot>");break;case"leftright":const Pu=e,Nu=Pu.leftDelim;Vn="<mrow>",Nu&&Nu!=="."&&(Vn+=`<mo${qo(e.id,t)}>${(r=Ml[Nu])!=null?r:Nu}</mo>`),e.body&&(Vn+=Eo(e.body,t));const Ou=Pu.matchingRightDelim();Ou&&Ou!=="."&&(Vn+=`<mo${qo(e.id,t)}>${(n=Ml[Ou])!=null?n:Ou}</mo>`),Vn+="</mrow>";break;case"sizeddelim":case"delim":Vn+=`<mo${qo(e.id,t)}>${Ml[e.value]||e.value}</mo>`;break;case"accent":Vn+='<mover accent="true"'+qo(e.id,t)+">",Vn+=Eo(e.body,t),Vn+="<mo>"+(Du[Gs]||e.accent)+"</mo>",Vn+="</mover>";break;case"line":case"overlap":break;case"overunder":Vc=e.above,bA=e.below,(e.svgAbove||Vc)&&(e.svgBelow||bA)?es=e.body:Vc&&Vc.length>0?(es=e.body,(s=(i=e.body)==null?void 0:i[0])!=null&&s.below?(bA=e.body[0].below,es=e.body[0].body):((M=(A=e.body)==null?void 0:A[0])==null?void 0:M.type)==="first"&&((q=($=e.body)==null?void 0:$[1])!=null&&q.below)&&(bA=e.body[1].below,es=e.body[1].body)):bA&&bA.length>0&&(es=e.body,(Qe=(Ae=e.body)==null?void 0:Ae[0])!=null&&Qe.above?(Vc=e.body[0].above,es=e.body[0].body):((Ft=(ut=e.body)==null?void 0:ut[0])==null?void 0:Ft.type)==="first"&&((Fr=(Nt=e.body)==null?void 0:Nt[1])!=null&&Fr.above)&&(Vc=e.body[1].overscript,es=e.body[1].body)),(e.svgAbove||Vc)&&(e.svgBelow||bA)?(Vn+=`<munderover ${qo(e.id,t)}>`,Vn+=(In=io[e.svgBody])!=null?In:Eo(es,t),Vn+=(Cr=io[e.svgBelow])!=null?Cr:Eo(bA,t),Vn+=(an=io[e.svgAbove])!=null?an:Eo(Vc,t),Vn+="</munderover>"):e.svgAbove||Vc?(Vn+=`<mover ${qo(e.id,t)}>`+((Rn=io[e.svgBody])!=null?Rn:Eo(es,t)),Vn+=(pn=io[e.svgAbove])!=null?pn:Eo(Vc,t),Vn+="</mover>"):(e.svgBelow||bA)&&(Vn+=`<munder ${qo(e.id,t)}>`+((Ci=io[e.svgBody])!=null?Ci:Eo(es,t)),Vn+=(ji=io[e.svgBelow])!=null?ji:Eo(bA,t),Vn+="</munder>");break;case"placeholder":Vn+="?";break;case"mord":{Vn=typeof e.value=="string"?e.value:Gs,Gs==="\\char"?Vn="&#x"+("000000"+e.args[0].number.toString(16)).slice(-4)+";":Vn.length>0&&Vn.startsWith("\\")&&(typeof e.value=="string"&&e.value.charCodeAt(0)>255?Vn="&#x"+("000000"+e.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof e.value=="string"?Vn=e.value.charAt(0):(console.error("Did not expect this"),Vn=""));const su=/\d/.test(Vn)?"mn":"mi";Vn=`<${su}${qo(e.id,t)}>${d0(Vn)}</${su}>`;break}case"mbin":case"mrel":case"minner":Vn=jd(e,t);break;case"mpunct":Vn='<mo separator="true"'+qo(e.id,t)+">"+Gs+"</mo>";break;case"mop":case"operator":case"extensible-symbol":e.body!=="\u200B"&&(Vn="<mo"+qo(e.id,t)+">",Vn+=Gs==="\\operatorname"?e.body:Gs||e.body,Vn+="</mo>");break;case"box":Vn='<menclose notation="box"',e.backgroundcolor&&(Vn+=' mathbackground="'+e.backgroundcolor+'"'),Vn+=qo(e.id,t)+">"+Eo(e.body,t)+"</menclose>";break;case"spacing":Vn+='<mspace width="'+((Oi=zo[Gs])!=null?Oi:0)+'em"/>';break;case"enclose":Vn='<menclose notation="';for(const su in e.notation)Object.prototype.hasOwnProperty.call(e.notation,su)&&e.notation[su]&&(Vn+=yA+su,yA=" ");Vn+=qo(e.id,t)+'">'+Eo(e.body,t)+"</menclose>";break;case"prompt":Vn='<menclose notation="roundexbox""">'+Eo(e.body,t)+"</menclose>";break;case"space":Vn+=" ";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":Vn+=jd(e,t);break;case"mclose":Vn+=jd(e,t);break;case"macro":{const su=e.command+cf(e.macroArgs);su&&(Vn+=`<mo ${qo(e.id,t)}>${su}</mo>`)}break;case"latexgroup":Vn+=Eo(e.body,t);break;case"latex":Vn+="<mtext"+qo(e.id,t)+">"+e.value+"</mtext>";break;case"tooltip":Vn+=Eo(e.body,t);break;case"text":Vn+=`<mtext ${qo(e.id,t)}x>${e.value}</mtext>`;break;default:if(e.command==="\\displaystyle")return`<mrow ${qo(e.id,t)} displaystyle="true">${Eo(e.body,t)}</mrow>`;if(e.command==="\\textstyle")return`<mrow ${qo(e.id,t)} displaystyle="false">${Eo(e.body,t)}</mrow>`;console.info("Unexpected element in conversion to MathML:",e)}return Vn}var Af={"\\alpha":"alpha ","\\mu":"mew ","\\sigma":"sigma ","\\pi":"pie ","\\imaginaryI":"imaginary eye ","\\imaginaryJ":"imaginary jay ","\\sum":"Summation ","\\prod":"Product ","+":"plus ","-":"minus ",";":'<break time="150ms"/> semi-colon <break time="150ms"/>',",":'<break time="150ms"/> comma <break time="150ms"/>',"|":'<break time="150ms"/>Vertical bar<break time="150ms"/>',"(":'<break time="150ms"/>Open paren. <break time="150ms"/>',")":'<break time="150ms"/> Close paren. <break time="150ms"/>',"=":"equals ","<":"is less than ","\\lt":"is less than ","<=":"is less than or equal to ","\\le":"is less than or equal to ","\\gt":"is greater than ",">":"is greater than ","\\pm":"plus or minus","\\mp":"minus or plus","\\ge":"is greater than or equal to ","\\geq":"is greater than or equal to ","\\leq":"is less than or equal to ","\\ne":"is not equal to ","\\neq":"is not equal to ","!":"factorial ","\\sin":"sine ","\\cos":"cosine ","\u200B":"","\u2212":"minus ",":":'<break time="150ms"/> such that <break time="200ms"/> ',"\\colon":'<break time="150ms"/> such that <break time="200ms"/> ',"\\hbar":"etch bar ","\\iff":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\Longleftrightarrow":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\land":"and ","\\lor":"or ","\\neg":"not ","\\div":"divided by ","\\forall":"for all ","\\exists":"there exists ","\\nexists":"there does not exists ","\\in":"element of ","\\N":'the set <break time="150ms"/><say-as interpret-as="character">n</say-as>',"\\C":'the set <break time="150ms"/><say-as interpret-as="character">c</say-as>',"\\Z":'the set <break time="150ms"/><say-as interpret-as="character">z</say-as>',"\\Q":'the set <break time="150ms"/><say-as interpret-as="character">q</say-as>',"\\infty":"infinity ","\\nabla":"nabla ","\\partial":"partial derivative of ","\\cdot":"times ","\\cdots":"dot dot dot ","\\Rightarrow":"implies ","\\lparen":'<break time="150ms"/>open paren<break time="150ms"/>',"\\rparen":'<break time="150ms"/>close paren<break time="150ms"/>',"\\lbrace":'<break time="150ms"/>open brace<break time="150ms"/>',"\\{":'<break time="150ms"/>open brace<break time="150ms"/>',"\\rbrace":'<break time="150ms"/>close brace<break time="150ms"/>',"\\}":'<break time="150ms"/>close brace<break time="150ms"/>',"\\langle":'<break time="150ms"/>left angle bracket<break time="150ms"/>',"\\rangle":'<break time="150ms"/>right angle bracket<break time="150ms"/>',"\\lfloor":'<break time="150ms"/>open floor<break time="150ms"/>',"\\rfloor":'<break time="150ms"/>close floor<break time="150ms"/>',"\\lceil":'<break time="150ms"/>open ceiling<break time="150ms"/>',"\\rceil":'<break time="150ms"/>close ceiling<break time="150ms"/>',"\\vert":'<break time="150ms"/>vertical bar<break time="150ms"/>',"\\mvert":'<break time="150ms"/>divides<break time="150ms"/>',"\\lvert":'<break time="150ms"/>left vertical bar<break time="150ms"/>',"\\rvert":'<break time="150ms"/>right vertical bar<break time="150ms"/>',"\\lbrack":'<break time="150ms"/> open square bracket <break time="150ms"/>',"\\rbrack":'<break time="150ms"/> close square bracket <break time="150ms"/>',mm:"millimeters",cm:"centimeters",km:"kilometers",kg:"kilograms"},K0={array:"array",matrix:"matrix",pmatrix:"parenthesis matrix",bmatrix:"square brackets matrix",Bmatrix:"braces matrix",vmatrix:"bars matrix",Vmatrix:"double bars matrix","matrix*":"matrix",smallmatrix:"small matrix"};function Rm(e){let t="";return e.startsWith("\\")&&(t=" "+e.replace("\\","")+" "),t}function Pf(e){let t=0;if(S(e))for(const r of e)r.type!=="first"&&(t+=1);return t===1}function Qm(e){if(S(e)){for(const t of e)if(t.type!=="first"&&t.id)return t.id.toString()}return""}function Ph(e){let t="";if(S(e))for(const r of e)r.type!=="first"&&typeof r.value=="string"&&(t+=r.value);return t}function Km(e){return e?e.map(t=>t.value).join(""):""}function Ga(e,t){var r,n,i,s,A;function M(Ae){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(Ae)?` <say-as interpret-as="character">${Ae}</say-as>`:/[A-Z]/.test(Ae)?`capital <say-as interpret-as="character">${Ae.toLowerCase()}</say-as>`:Ae:/[a-z]/.test(Ae)?" '"+Ae.toUpperCase()+"'":/[A-Z]/.test(Ae)?" 'capital "+Ae.toUpperCase()+"'":Ae}function $(Ae){return"<emphasis>"+Ae+"</emphasis>"}if(!t)return"";let q="";if(S(t)){let Ae=!1,Qe=!1;for(let ut=0;ut<t.length;ut++)t[ut].type!=="first"&&(t[ut].mode!=="text"&&(Qe=!1),ut<t.length-2&&t[ut].type==="mopen"&&t[ut+2].type==="mclose"&&t[ut+1].type==="mord"?(q+=" of ",q+=$(Ga(e,t[ut+1])),ut+=2):t[ut].mode==="text"?Qe?q+=(r=t[ut].value)!=null?r:" ":(Qe=!0,q+=Ga("text",t[ut])):t[ut].isDigit()?Ae?q+=t[ut].asDigit():(Ae=!0,q+=Ga(e,t[ut])):(Ae=!1,q+=Ga(e,t[ut])))}else if(t.mode==="text")t.id&&e==="math"&&(q+='<mark name="'+t.id.toString()+'"/>'),q+=t.value;else{t.id&&e==="math"&&(q+='<mark name="'+t.id.toString()+'"/>');let Ae="",Qe="",ut="",Ft=!1;const{command:Nt}=t;switch(Nt){case"\\vec":return"vector "+Ga(e,t.body);case"\\acute":return Ga(e,t.body)+" acute";case"\\grave":return Ga(e,t.body)+" grave";case"\\dot":return"dot over"+Ga(e,t.body);case"\\ddot":return"double dot over"+Ga(e,t.body);case"\\mathring":return"ring over"+Ga(e,t.body);case"\\tilde":case"\\widetilde":return"tilde over"+Ga(e,t.body);case"\\bar":return Ga(e,t.body)+" bar";case"\\breve":return Ga(e,t.body)+" breve";case"\\check":case"\\widecheck":return"check over "+Ga(e,t.body);case"\\hat":case"\\widehat":return"hat over"+Ga(e,t.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+Ga(e,t.body);case"\\underarc":case"\\underparen":return"arc under "+Ga(e,t.body)}switch(t.type){case"prompt":const Fr=t.body.length>1?'start input . <break time="500ms"/> '+Ga(e,t.body)+'. <break time="500ms"/> end input':"blank";q+=' <break time="300ms"/> '+Fr+'. <break time="700ms"/>'+((n=t.correctness)!=null?n:"")+' . <break time="700ms"/> ';break;case"array":const In=t.array,Cr=t.environmentName;if(Object.keys(K0).includes(Cr)){q+=` begin ${K0[Cr]} `;for(let pn=0;pn<In.length;pn++){pn>0&&(q+=","),q+=` row ${pn+1} `;for(let Ci=0;Ci<In[pn].length;Ci++)Ci>0&&(q+=","),q+=` column ${Ci+1}: `,q+=Ga("math",In[pn][Ci])}q+=` end ${K0[Cr]} `}break;case"group":Nt==="\\ne"?q+=" not equal ":(Nt==="\\not"&&(q+=" not "),q+=Ga("math",t.body));break;case"root":q+=Ga("math",t.body);break;case"genfrac":if(Ae=Ga("math",t.above),Qe=Ga("math",t.below),Pf(t.above)&&Pf(t.below)){const Ci={"1/2":" half ","1/3":" one third ","2/3":" two third","1/4":" one quarter ","3/4":" three quarter ","1/5":" one fifth ","2/5":" two fifths ","3/5":" three fifths ","4/5":" four fifths ","1/6":" one sixth ","5/6":" five sixths ","1/8":" one eight ","3/8":" three eights ","5/8":" five eights ","7/8":" seven eights ","1/9":" one ninth ","2/9":" two ninths ","4/9":" four ninths ","5/9":" five ninths ","7/9":" seven ninths ","8/9":" eight ninths "}[Ph(t.above)+"/"+Ph(t.below)];Ci?q=Ci:q+=Ae+" over "+Qe}else q+=' the fraction <break time="150ms"/>'+Ae+' over <break time="150ms"/>'+Qe+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(ut=Ga("math",t.body),t.hasEmptyBranch("above"))q+=Pf(t.body)?" the square root of "+ut+" , ":' the square root of <break time="200ms"/>'+ut+'. <break time="200ms"/> End square root';else{let pn=Ga("math",t.above);pn=pn.trim();const Ci=pn.replace(/<mark([^/]*)\/>/g,"");Ci==="3"?q+=' the cube root of <break time="200ms"/>'+ut+'. <break time="200ms"/> End cube root':Ci==="n"?q+=' the nth root of <break time="200ms"/>'+ut+'. <break time="200ms"/> End root':q+=' the root with index: <break time="200ms"/>'+pn+', of <break time="200ms"/>'+ut+'. <break time="200ms"/> End root'}break;case"leftright":{const pn=t;q+=(i=pn.leftDelim?Af[pn.leftDelim]:void 0)!=null?i:pn.leftDelim,q+=Ga("math",t.body),q+=(s=pn.rightDelim?Af[pn.rightDelim]:void 0)!=null?s:pn.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const an=Nt.replace(/^\\/g,""),Rn=lt()[an];Rn&&(Rn!=null&&Rn.expand?q+=Ga("math",t.body):q+=`${an} `);break;case"placeholder":q+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(Nt==="\\mathbin"||Nt==="\\mathrel"||Nt==="\\mathopen"||Nt==="\\mathclose"||Nt==="\\mathpunct"||Nt==="\\mathord"||Nt==="\\mathinner"){q=Ga(e,t.body);break}let pn=t.isDigit()?t.asDigit():t.value,Ci=t.command;if((t.type==="delim"||t.type==="sizeddelim")&&(Ci=t.value,pn=Ci),e==="text")q+=pn;else{if(t.type==="mbin"&&(q+='<break time="150ms"/>'),pn){const ji=Af[pn]||(Ci?Af[Ci.trim()]:"");if(ji)q+=" "+ji;else{const Oi=Ci?Rm(Ci.trim()):"";q+=Oi||M(pn)}}else q+=Ga("math",t.body);t.type==="mbin"&&(q+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(t.value!=="\u200B"){const pn=t.command;if(pn==="\\sum")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Ci=Ga("math",t.superscript);Ci=Ci.trim();let ji=Ga("math",t.subscript);ji=ji.trim(),q+=' the summation from <break time="200ms"/>'+ji+'<break time="200ms"/> to <break time="200ms"/>'+Ci+'<break time="200ms"/> of <break time="150ms"/>',Ft=!0}else if(t.hasEmptyBranch("subscript"))q+=" the summation of";else{let Ci=Ga("math",t.subscript);Ci=Ci.trim(),q+=' the summation from <break time="200ms"/>'+Ci+'<break time="200ms"/> of <break time="150ms"/>',Ft=!0}else if(pn==="\\prod")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Ci=Ga("math",t.superscript);Ci=Ci.trim();let ji=Ga("math",t.subscript);ji=ji.trim(),q+=' the product from <break time="200ms"/>'+ji+'<break time="200ms"/> to <break time="200ms"/>'+Ci+'<break time="200ms"/> of <break time="150ms"/>',Ft=!0}else if(t.hasEmptyBranch("subscript"))q+=" the product of ";else{let Ci=Ga("math",t.subscript);Ci=Ci.trim(),q+=' the product from <break time="200ms"/>'+Ci+'<break time="200ms"/> of <break time="150ms"/>',Ft=!0}else if(pn==="\\int")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Ci=Ga("math",t.superscript);Ci=Ci.trim();let ji=Ga("math",t.subscript);ji=ji.trim(),q+=' the integral from <break time="200ms"/>'+$(ji)+'<break time="200ms"/> to <break time="200ms"/>'+$(Ci)+' <break time="200ms"/> of ',Ft=!0}else q+=' the integral of <break time="200ms"/> ';else if(typeof t.value=="string"){const Ci=(A=Af[t.value])!=null?A:t.command?Af[t.command]:void 0;q+=Ci||" "+t.value}else t.command&&(t.command==="\\mathop"?q+=Ga("math",t.body):t.command==="\\operatorname"?q+=Km(t.body):q+=t.command.startsWith("\\")?" "+t.command.slice(1):" "+t.command)}break;case"enclose":ut=Ga("math",t.body),q+=" crossed out "+ut+". End crossed out.";break;case"space":case"spacing":break}if(!Ft&&!t.hasEmptyBranch("superscript")){let Fr=Ga(e,t.superscript);Fr=Fr.trim();const In=Fr.replace(/<[^>]*>/g,"");if(Pf(t.superscript)){if(e==="math"){const Cr=Qm(t.superscript);Cr&&(q+='<mark name="'+Cr+'"/>')}In==="\u2032"?q+=" prime ":In==="2"?q+=" squared ":In==="3"?q+=" cubed ":Number.isNaN(Number.parseInt(In))?q+=" to the "+Fr+"; ":q+=' to the <say-as interpret-as="ordinal">'+In+"</say-as> power; "}else Number.isNaN(Number.parseInt(In))?q+=" raised to the "+Fr+"; ":q+=' raised to the <say-as interpret-as="ordinal">'+In+"</say-as> power; "}if(!Ft&&!t.hasEmptyBranch("subscript")){let Fr=Ga("math",t.subscript);Fr=Fr.trim(),q+=Pf(t.subscript)?" sub "+Fr:" subscript "+Fr+". End subscript. "}}return q}function uf(e){var t,r;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const i=Eo(e);if(i){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(t=window.MathfieldElement.textToSpeechRulesOptions)!=null?t:{},window.MathfieldElement.textToSpeechRulesOptions=E(f({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=E(f({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=E(f({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const s=(r=window.SRE)!=null?r:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&s.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let A="";try{A=s.toSpeech(i)}catch(M){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",M)}return A}return""}let n=Ga("math",e);if(window.MathfieldElement.textToSpeechMarkup==="ssml"){let i="";window.MathfieldElement.speechEngineRate&&(i='<prosody rate="'+window.MathfieldElement.speechEngineRate+'">'),n='<?xml version="1.0"?><speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"><amazon:auto-breaths>'+i+"<p><s>"+n+"</s></p>"+(i?"</prosody>":"")+"</amazon:auto-breaths></speak>"}else window.MathfieldElement.textToSpeechMarkup==="mac"&&Y()==="macos"?n=n.replace(/<mark([^/]*)\/>/g,"").replace(/<emphasis>/g,"[[emph+]]").replace(/<\/emphasis>/g,"").replace(/<break time="(\d*)ms"\/>/g,"[[slc $1]]").replace(/<say-as[^>]*>/g,"").replace(/<\/say-as>/g,""):n=n.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return n}var Nf={"\\ne":"\u2260","\\neq":"\u2260","\u2212":"-","-":"-","\\alpha":"alpha","\\beta":"beta","\\gamma":"gamma","\\delta":"delta","\\epsilon":"epsilon","\\varepsilon":"varepsilon","\\zeta":"zeta","\\eta":"eta","\\theta":"theta","\\vartheta":"vartheta","\\iota":"iota","\\kappa":"kappa","\\lambda":"lambda","\\mu":"mu","\\nu":"nu","\\xi":"xi","\\pi":"pi","\\rho":"rho","\\sigma":"sigma","\\tau":"tau","\\upsilon":"upsilon","\\phi":"phi","\\varphi":"varphi","\\chi":"chi","\\psi":"psi","\\omega":"omega","\\Gamma":"Gamma","\\Delta":"Delta","\\Theta":"Theta","\\Lambda":"Lambda","\\Xi":"Xi","\\Pi":"Pi","\\Sigma":"Sigma","\\Phi":"Phi","\\Psi":"Psi","\\Omega":"Omega","\\exponentialE":"e","\\imaginaryI":"i","\\imaginaryJ":"j","\\!":" ","\\,":" ","\\:":" ","\\>":" ","\\;":" ","\\enskip":" ","\\enspace":" ","\\qquad":" ","\\quad":" ","\\infty":"oo"},Of={"\\pm":"+-","\\colon":":","\\vert":"|","\\Vert":"||","\\mid":"|","\\lbrack":"[","\\rbrack":"]","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"(:","\\rangle":":)","\\sum":" sum ","\\prod":" prod ","\\bigcap":" nnn ","\\bigcup":" uuu ","\\int":" int ","\\oint":" oint ","\\ge":">=","\\le":"<=","\\ne":"!=","\\neq":"!=","\\lt":"<","\\gt":">","\\gets":"<-","\\to":"->","\\land":" and ","\\lor":" or ","\\lnot":" not ","\\forall":" AA ","\\exists":" EE ","\\in":" in ","\\notin":" !in ","\\mapsto":"|->","\\implies":"=>","\\iff":"<=>","\\cdot":"*","\\ast":"**","\\star":"***","\\times":"xx","\\div":"-:","\\ltimes":"|><","\\rtimes":"><|","\\bowtie":"|><|","\\circ":"@"};function Hm(e){let t="";for(const r of e){const n=t[t.length-1];n!==void 0&&/\d/.test(n)&&/^\d/.test(r)&&(t+=" "),t+=r}return t}function Ws(e){var t,r,n,i,s,A,M,$,q,Ae,Qe,ut,Ft;if(!e)return"";if(S(e)){if(e.length===0)return"";if(e[0].mode==="latex")return e.map(Ws).join("");if(e[0].mode==="text"){let Rn=0,pn="";for(;((t=e[Rn])==null?void 0:t.mode)==="text";)pn+=e[Rn].body?Ws(e[Rn].body):e[Rn].value,Rn++;return`"${pn}" ${Ws(e.slice(Rn))}`}let Cr=0;const an=[];for(;e[Cr]&&e[Cr].mode==="math";){let Rn="";for(;e[Cr]&&e[Cr].type==="mord"&&/\d/.test(e[Cr].value);)Rn+=e[Cr++].value;Rn?an.push(Rn):an.push(Ws(e[Cr++]))}return an.push(Ws(e.slice(Cr))),Hm(an)}if(e.mode==="text")return`"${e.value}"`;let Nt="";const{command:Fr}=e;let In;if(Fr==="\\placeholder")return`(${Ws(e.body)})`;switch(e.type){case"accent":const Cr={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[Fr];Nt=`${Cr!=null?Cr:""} ${Ws(e.body)} `;break;case"first":return"";case"latexgroup":return e.body.map(Oi=>Oi.value).join("");case"group":case"root":Nt=(r=Nf[Fr])!=null?r:Ws(e.body);break;case"genfrac":{const Oi=e;(Oi.leftDelim||Oi.rightDelim)&&(Nt=Oi.leftDelim==="."||!Oi.leftDelim?"{:":Oi.leftDelim),Oi.hasBarLine?(Nt+="(",Nt+=Ws(Oi.above),Nt+=")/(",Nt+=Ws(Oi.below),Nt+=")"):(Nt+="("+Ws(Oi.above)+"),",Nt+="("+Ws(Oi.below)+")"),(Oi.leftDelim||Oi.rightDelim)&&(Nt+=Oi.rightDelim==="."||!Oi.rightDelim?"{:":Oi.rightDelim)}break;case"surd":Nt+=e.hasEmptyBranch("above")?"sqrt("+Ws(e.body)+")":"root("+Ws(e.above)+")("+Ws(e.body)+")";break;case"latex":Nt=e.value;break;case"leftright":{const Oi=e,io=Oi.leftDelim;Nt+=io==="."||!io?"{:":io,Nt+=Ws(Oi.body);const zo=Oi.matchingRightDelim();Nt+=zo==="."||!zo?":}":zo}break;case"sizeddelim":case"delim":Nt=e.value;break;case"overlap":break;case"overunder":break;case"mord":Nt=(i=(n=Nf[Fr])!=null?n:Fr)!=null?i:typeof e.value=="string"?e.value:"",Nt.startsWith("\\")&&(Nt+=" "),In=Fr?Fr.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,In?Nt=String.fromCodePoint(Number.parseInt("0x"+In[1])):Nt.length>0&&Nt.startsWith("\\")&&(Nt=typeof e.value=="string"?e.value.charAt(0):e.command),Nt=jm(Nt,e.style);break;case"mbin":case"mrel":case"minner":Nt=(A=(s=Nf[Fr])!=null?s:Of[Fr])!=null?A:e.value;break;case"mopen":case"mclose":Nt=e.value;break;case"mpunct":Nt=(M=Of[Fr])!=null?M:Fr;break;case"mop":case"operator":case"extensible-symbol":e.value!=="\u200B"&&(Of[Fr]?Nt=Of[Fr]:Nt=Fr==="\\operatorname"?Ws(e.body):($=e.value)!=null?$:Fr,Nt+=" ");break;case"array":const an=e.array,Rn=e.environmentName,pn=(q={bmatrix:["[","]"],"bmatrix*":["[","]"]}[Rn])!=null?q:["(",")"],Ci=[];for(const Oi of an){const io=[];for(const zo of Oi)io.push(pn[0]+Ws(zo)+pn[1]);Ci.push(io.join(","))}const ji=(Ae={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[Rn])!=null?Ae:["(",")"];Nt=ji[0]+Ci.join(",")+ji[1];break;case"box":break;case"spacing":Nt=(Qe=Nf[Fr])!=null?Qe:" ";break;case"enclose":Nt="("+Ws(e.body)+")";break;case"space":Nt=" ";break;case"subsup":Nt="";break;case"macro":Nt=(Ft=(ut=Nf[Fr])!=null?ut:Of[Fr])!=null?Ft:Ws(e.body);break}if(!e.hasEmptyBranch("subscript")){Nt+="_";const Cr=Ws(e.subscript);Nt+=Cr.length!==1?`(${Cr})`:Cr}if(!e.hasEmptyBranch("superscript")){Nt+="^";const Cr=Ws(e.superscript);Nt+=Cr.length!==1?`(${Cr})`:Cr}return Nt}function jm(e,t){if(!t)return e;let r=e;return t.variant==="double-struck"&&(r=`bbb "${r}"`),t.variant==="script"&&(r=`cc "${r}"`),t.variant==="fraktur"&&(r=`fr "${r}"`),t.variant==="sans-serif"&&(r=`sf "${r}"`),t.variant==="monospace"&&(r=`tt "${r}"`),t.variantStyle==="bold"&&(r=`bb "${r}"`),t.color?`color({${t.color}})(${r})`:r}function Fl(e,t){var r,n;t!=null||(t={}),t.mathstyle=(r=t.mathstyle)!=null?r:"displaystyle";const i=new la({from:E(f({},Nc()),{renderPlaceholder:()=>new fn(160,{maxFontSize:1}),letterShapeStyle:(n=t==null?void 0:t.letterShapeStyle)!=null?n:"tex"}),mathstyle:t.mathstyle}),A=new zr({mode:"math",type:"root",body:Al(e,{context:i,parseMode:"math",mathstyle:t.mathstyle})}).render(i);return A?(SA(Wu(A,i)),AA(A,{classes:"ML__latex"}).toMarkup()):""}function Dg(e){return gu(e,{context:Nc()})}function zm(e,t={}){return Eo(Al(e,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),t)}function $m(e){const t=Al(e,{parseMode:"math",mathstyle:"displaystyle"});return uf(t)}var f0;function Zm(e){var t,r;if(!f0){const n=(t=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:t.ComputeEngine;n?f0=new n:console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
|
|
|
|
|
|
Load the library, for example with:
|
|
|
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}return(r=f0==null?void 0:f0.box(e).latex)!=null?r:""}function Pg(e,t="math"){return Ws(new zr({type:"root",body:Al(e,{parseMode:t})}))}function Ng(e){return We(e,{format:"ascii-math"})[1]}function H0(e){if(typeof e=="string"){const t=Vm(e);if(!t)throw new Error(`Invalid color: ${e}`);return t}return"C"in e?Gm(e):"a"in e?Nh(e):e}function df(e){return e<0?0:e>255?255:Math.round(e)}function Vm(e){if(!e||e[0]!=="#")return;e=e.slice(1);let t;return e.length<=4?(t={r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16)},e.length===4&&(t.a=parseInt(e[3]+e[3],16)/255)):(t={r:parseInt(e[0]+e[1],16),g:parseInt(e[2]+e[3],16),b:parseInt(e[4]+e[5],16)},e.length===8&&(t.a=parseInt(e[6]+e[7],16)/255)),t&&typeof t.a=="undefined"&&(t.a=1),t}function j0(e){const[t,r,n]=[e.L,e.C,e.H],i=n*Math.PI/180,s={L:t,a:r*Math.cos(i),b:r*Math.sin(i)};return e.alpha!==void 0&&(s.alpha=e.alpha),s}function Wm(e){const[t,r,n]=[e.L,e.a,e.b],i=Math.sqrt(r*r+n*n),A=Math.atan2(n,r)*180/Math.PI,M={L:t,C:i,H:A};return e.alpha!==void 0&&(M.alpha=e.alpha),M}function z0(e){const[t,r,n]=[e.L,e.a,e.b],i=Math.pow(.9999999984505198*t+.39633779217376786*r+.2158037580607588*n,3),s=Math.pow(1.00000000888176*t-.10556134232365635*r-.0638541747717059*n,3),A=Math.pow(t*1.000000054672411-.0894841820949657*r-1.2914855378640917*n,3),M=4.076741661347994*i-3.307711590408193*s+.230969928729428*A,$=-1.2684380040921763*i+2.6097574006633715*s-.3413193963102197*A,q=-.004196086541837188*i-.7034186144594493*s+1.7076147009309444*A,Ae=Qe=>{const ut=Math.abs(Qe);return ut<=.0031308?Qe*12.92:(Math.sign(Qe)||1)*(1.055*Math.pow(ut,1/2.4)-.055)};return[Ae(M),Ae($),Ae(q)]}function $0(e){const[t,r,n]=e;return t>=0&&t<=1&&r>=0&&r<=1&&n>=0&&n<=1}function Z0(e,t){let[r,n,i]=e;return r=df(r*255),n=df(n*255),i=df(i*255),t!==void 0?{r,g:n,b:i,alpha:t}:{r,g:n,b:i}}function Nh(e){let[t,r,n]=z0(e);if($0([t,r,n]))return Z0([t,r,n],e.alpha);const i=Wm(e);if(i.C=0,[t,r,n]=z0(j0(i)),!$0([t,r,n]))return Z0([t,r,n],e.alpha);let s=0,A=e.L,M=(s+A)/2;i.C=M;const $=.36/Math.pow(2,12);for(;A-s>$;)M=(s+A)/2,i.C=M,[t,r,n]=z0(j0(i)),$0([t,r,n])?s=M:A=M;return Z0([t,r,n],e.alpha)}function Gm(e){return Nh(j0(e))}function Oh(e,t){const r=H0(e),n=H0(t),i=.56,s=.57,A=.62,M=.65,$=.022,q=1.414,Ae=.1,Qe=5e-4,ut=1.14,Ft=.027,Nt=1.14,Fr=.027;function In(Oi){return Oi>=$?Oi:Oi+Tu($-Oi,q)}function Cr(Oi){return(Oi<0?-1:1)*Math.pow(Math.abs(Oi),2.4)}const an=In(Cr(n.r/255)*.2126729+Cr(n.g/255)*.7151522+Cr(n.b/255)*.072175),Rn=In(Cr(r.r/255)*.2126729+Cr(r.g/255)*.7151522+Cr(r.b/255)*.072175);let pn,Ci,ji;return Math.abs(Rn-an)<Qe?Ci=0:Rn>an?(pn=Tu(Rn,i)-Tu(an,s),Ci=pn*ut):(pn=Tu(Rn,M)-Tu(an,A),Ci=pn*Nt),Math.abs(Ci)<Ae?ji=0:Ci>0?ji=Ci-Fr:ji=Ci+Ft,ji*100}function Th(e,t,r){r!=null||(r="#fff"),t!=null||(t="#000");const n=Oh(e,r),i=Oh(e,t);return Math.abs(n)>Math.abs(i)?r:t}function Xm(e){const t=H0(e);let r=((1<<24)+(df(t.r)<<16)+(df(t.g)<<8)+df(t.b)).toString(16).slice(1);return t.alpha!==void 0&&t.alpha<1&&(r+=("00"+Math.round(t.alpha*255).toString(16)).slice(-2)),r[0]===r[1]&&r[2]===r[3]&&r[4]===r[5]&&r[6]===r[7]&&(r=r[0]+r[2]+r[4]+(t.alpha!==void 0&&t.alpha<1?r[6]:"")),"#"+r}function ps(e){const t=Uh(e);let r="";for(const n of t){if(typeof n.value!="string")return"";r+=n.value}return r}function Uh(e){const r=e.model.selection.ranges;return r.length!==1?[]:e.model.getAtoms(r[0])}function Jm(e,t){const r=Uh(e);if(r.length!==1)return!1;const n=xu[t];return n?!!n.test(r[0].value):!1}function Ym(e,t){return ps(e).length>0}function qm(e){return[V0(e,"double-struck","mathbb","tooltip.blackboard"),V0(e,"fraktur","mathfrak","tooltip.fraktur"),V0(e,"calligraphic","mathcal","tooltip.caligraphic"),W0(e,"up","mathrm","tooltip.roman-upright"),W0(e,"bold","mathbf","tooltip.bold"),W0(e,"italic","mathit","tooltip.italic")]}function eg(e){return[{label:()=>Fl(`\\vec{${ps(e)}}`),visible:()=>ps(e).length===1,onMenuSelect:()=>e.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\overrightarrow{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\overleftarrow{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\dot{${ps(e)}}`),visible:()=>ps(e).length===1,onMenuSelect:()=>e.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\ddot{${ps(e)}}`),visible:()=>ps(e).length===1,onMenuSelect:()=>e.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\bar{${ps(e)}}`),visible:()=>ps(e).length===1,onMenuSelect:()=>e.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\overline{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\overgroup{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\overbrace{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\underline{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\undergroup{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\underbrace{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function tg(e){return[{label:()=>Fl(`\\boxed{${e.getValue(e.model.selection)}}}`),onMenuSelect:()=>e.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\bbox[5px, border: 2px solid red]{${e.getValue(e.model.selection)}}`),onMenuSelect:()=>e.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>Fl(`\\bbox[5px, border: 2px dashed black]{${e.getValue(e.model.selection)}}`),onMenuSelect:()=>e.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function rg(e){const t=[];for(const r of Object.keys(se))t.push({class:(Xm(Th(se[r]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${se[r]} "></span>`,ariaLabel:()=>{var n;return(n=J(r))!=null?n:r},checked:()=>{var n;return{some:"mixed",all:!0}[(n=e.queryStyle({backgroundColor:r}))!=null?n:!1]},onMenuSelect:()=>{e.applyStyle({backgroundColor:r},{operation:"toggle"}),e.adoptStyle="none"}});return t}function ng(e){const t=[];for(const r of Object.keys(he))t.push({class:(Th(he[r])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${he[r]} "></span>`,ariaLabel:()=>{var n;return(n=J(r))!=null?n:r},checked:()=>{var n;return{some:"mixed",all:!0}[(n=e.queryStyle({color:r}))!=null?n:!1]},onMenuSelect:()=>{e.applyStyle({color:r},{operation:"toggle"}),e.adoptStyle="none"}});return t}var ig=class extends Sh{constructor(e,t,r,n){super(e,t),this.row=r,this.col=n}set active(e){const t=this.parentMenu.children;if(e)for(const r of t)r.element.classList.toggle("active",r.row<=this.row&&r.col<=this.col);else for(const r of t)r.element.classList.remove("active")}};function ag(e){const t=[];for(let r=1;r<=5;r++)for(let n=1;n<=5;n++)t.push({onCreate:(i,s)=>new ig(i,s,r,n),label:"\u2610",tooltip:()=>J("tooltip.row-by-col",r,n),data:{row:r,col:n},onMenuSelect:()=>{e.insert(`\\begin{pmatrix}${Array(r).fill(Array(n).fill("#?").join(" & ")).join("\\\\")}\\end{pmatrix}`,{selectionMode:"item"})}});return t}function og(e){return[{label:()=>J("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>e.executeCommand("addRowBefore"),visible:()=>zd(e)},{label:()=>J("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>e.executeCommand("addRowAfter"),visible:()=>zd(e)},{label:()=>J("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>e.executeCommand("addColumnBefore"),visible:()=>zd(e),enabled:()=>{const t=e.model.parentEnvironment;if(!t)return!1;const[r,n]=lg(e);return r<t.maxColumns}},{label:()=>J("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>e.executeCommand("addColumnAfter"),visible:()=>zd(e)},{type:"divider"},{label:()=>J("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>e.executeCommand("removeRow"),visible:()=>zd(e)},{label:()=>J("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>e.executeCommand("removeColumn"),visible:()=>zd(e)},{type:"divider"},{label:()=>J("menu.borders"),visible:()=>(sg(e)||zd(e))&&e.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>Tf(e,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>Tf(e,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>Tf(e,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>Tf(e,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>Tf(e,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>J("menu.insert matrix"),id:"insert-matrix",visible:()=>e.isSelectionEditable,submenu:ag(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:()=>{Su(e,"accept-all"),e.executeCommand(["switchMode","math"])},checked:()=>e.model.mode==="math"},{label:()=>J("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{Su(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:qm(e),submenuClass:"variant-submenu"},{label:()=>J("menu.color"),id:"color",visible:()=>e.isSelectionEditable,submenu:ng(e),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>J("menu.background-color"),id:"background-color",visible:()=>e.isSelectionEditable,submenu:rg(e),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>J("menu.accent"),id:"accent",visible:()=>e.isSelectionEditable,submenu:eg(e),submenuClass:"variant-submenu"},{label:()=>J("menu.decoration"),id:"decoration",visible:()=>e.isSelectionEditable&&ps(e).length>0,submenu:tg(e),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>J("menu.evaluate"),id:"ce-evaluate",visible:()=>e.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{const t=cg(e);if(!t){e.model.announce("plonk");return}e.model.selectionIsCollapsed?(e.model.position=e.model.lastOffset,e.insert(`=${t}`,{insertionMode:"insertAfter",selectionMode:"item"})):e.insert(t,{insertionMode:"replaceSelection",selectionMode:"item"})}},{label:()=>J("menu.simplify"),id:"ce-simplify",visible:()=>e.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{var t,r;if(e.model.selectionIsCollapsed){const n=(t=e.expression)==null?void 0:t.simplify();if(e.model.position=e.model.lastOffset,!n){e.model.announce("plonk");return}e.insert(`=${n.latex}`,{insertionMode:"insertAfter",selectionMode:"item"})}else{const n=(r=window.MathfieldElement.computeEngine)==null?void 0:r.parse(e.getValue(e.model.selection)).simplify();if(!n){e.model.announce("plonk");return}e.insert(n.latex,{insertionMode:"replaceSelection",selectionMode:"item"})}}},{label:()=>{var t;if(window.MathfieldElement.computeEngine===null)return"";const r=(t=e.expression)==null?void 0:t.unknowns[0];return r?J("menu.solve-for",Fl(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,n=r==null?void 0:r.unknowns[0],i=(t=r.solve(n))==null?void 0:t.map(s=>{var A;return(A=s.simplify().latex)!=null?A:""});if(!i){e.model.announce("plonk");return}e.insert(`${n}=${i.length===1?i[0]:"\\left\\lbrace"+(i==null?void 0:i.join(", "))+"\\right\\rbrace"}`,{insertionMode:"replaceAll",selectionMode:"item"})}},{type:"divider"},{label:()=>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:()=>aa.copyToClipboard(e,"latex"),keyboardShortcut:"meta+C"},{label:()=>J("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>aa.copyToClipboard(e,"ascii-math")},{label:()=>J("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>aa.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 zd(e){var t;return!!((t=e.model.parentEnvironment)!=null&&t.array)}function sg(e){return e.model.at(e.model.position).type==="array"}function lg(e){var t;const r=(t=e.model.parentEnvironment)==null?void 0:t.array;return r?[r.length,r.reduce((n,i)=>Math.max(n,i.length),0)]:[0,0]}function Tf(e,t){iu(e),e.flushInlineShortcutBuffer(),nh(e.model,t),xs(e)}function cg(e){var t,r;let n;if(e.model.selectionIsCollapsed?n=(t=window.MathfieldElement.computeEngine)==null?void 0:t.parse(e.getValue(),{canonical:!1}):n=(r=window.MathfieldElement.computeEngine)==null?void 0:r.parse(e.getValue(e.model.selection),{canonical:!1}),!n)return"";let i=n.evaluate();return i.isSame(n)&&(i=n.N()),i.latex}function V0(e,t,r,n){return{label:()=>Fl(`\\${r}{${ps(e)}}`),tooltip:()=>{var i;return(i=J(n))!=null?i:n},visible:()=>Jm(e,t),checked:()=>{var i;return{some:"mixed",all:!0}[(i=e.queryStyle({variant:t}))!=null?i:!1]},onMenuSelect:()=>{e.applyStyle({variant:t},{operation:"toggle"}),e.adoptStyle="none"}}}function W0(e,t,r,n){return{label:()=>Fl(`\\${r}{${ps(e)}}`),tooltip:()=>{var i;return(i=J(n))!=null?i:n},visible:()=>Ym(e,t),checked:()=>{var i;return{some:"mixed",all:!0}[(i=e.queryStyle({variantStyle:t}))!=null?i:!1]},onMenuSelect:()=>{e.applyStyle({variantStyle:t},{operation:"toggle"}),e.adoptStyle="none"}}}function ff(e,t){return e+uf(t)}_l({speak:(e,t,r)=>Ag(e,t,r)},{target:"mathfield"});function Ag(e,t,r){var n,i;r=r!=null?r:{withHighlighting:!1};const{model:s}=e;function A(Ae){let Qe=null;switch(Ae){case"all":Qe=s.root;break;case"selection":Qe=s.getAtoms(s.selection);break;case"left":{Qe=s.getAtoms(s.offsetOf(s.at(s.position).leftSibling),s.position);break}case"right":{Qe=s.getAtoms(s.position,s.offsetOf(s.at(s.position).rightSibling));break}case"group":Qe=s.getAtoms(s.getSiblingsRange(s.position));break;case"parent":{const{parent:ut}=s.at(s.position);ut!=null&&ut.parent?Qe=ut:Qe=s.root;break}default:Qe=s.root}return Qe}function M(Ae){let Qe="";switch(Ae){case"all":console.log("Internal failure: speak all failed");break;case"selection":Qe="no selection";break;case"left":Qe="at start";break;case"right":Qe="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":Qe="no parent";break;default:console.log('unknown speak_ param value: "'+Ae+'"');break}return Qe}const $=A(t);if($===null)return(i=(n=window.MathfieldElement).speakHook)==null||i.call(n,M(t)),!1;(r.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const q=uf($);return N()&&r.withHighlighting?(md().readAloudMathfield=e,TA(e,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(e.field,q)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(q),!1}function ug(e){var t,r;if(!N()){console.log("Speak:",e);return}if(!window.MathfieldElement.speechEngine||window.MathfieldElement.speechEngine==="local"){const n=new SpeechSynthesisUtterance(e);window.speechSynthesis.speak(n)}else if(window.MathfieldElement.speechEngine==="amazon")if(!("AWS"in window))console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");else{const n=new window.AWS.Polly({apiVersion:"2016-06-10"}),i={OutputFormat:"mp3",VoiceId:(t=window.MathfieldElement.speechEngineVoice)!=null?t:"Joanna",Engine:["Amy","Emma","Brian","Ivy","Joanna","Kendra","Kimberly","Salli","Joey","Justin","Matthew"].includes((r=window.MathfieldElement.speechEngineVoice)!=null?r:"Joanna")?"neural":"standard",Text:e,TextType:"ssml"};n.synthesizeSpeech(i,(s,A)=>{if(s)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${s}`);else if(A!=null&&A.AudioStream){const M=new Uint8Array(A.AudioStream),$=new Blob([M.buffer],{type:"audio/mpeg"}),q=URL.createObjectURL($);new Audio(q).play().catch(Qe=>console.log(Qe))}else console.log("polly.synthesizeSpeech():",A)})}else window.MathfieldElement.speechEngine==="google"&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.")}function Rh(e){var t;let r;if(e.parent.type==="prompt")e.parentBranch==="body"&&(r="prompt");else if(e.parentBranch==="body")r=e.type&&(t={enclose:"cross out",leftright:"delimiter",surd:"square root",root:"math field",mop:"operator",first:"first"}[e.type])!=null?t:"parent";else if(e.parent.type==="genfrac"){if(e.parentBranch==="above")return"numerator";if(e.parentBranch==="below")return"denominator"}else e.parent.type==="surd"?e.parentBranch==="above"&&(r="index"):e.parentBranch==="superscript"?r="superscript":e.parentBranch==="subscript"&&(r="subscript");return r||console.log("unknown relationship"),r!=null?r:"parent"}function dg(e,t,r,n){let i="";if(t==="plonk")window.MathfieldElement.playSound("plonk"),e.flushInlineShortcutBuffer();else if(t==="delete")i=ff("deleted: ",n);else if(t==="focus"||t.includes("move"))i=fg(e.model,r)+(e.model.selectionIsCollapsed?"":"selected: ")+hg(e.model);else if(t==="replacement")i=ff("",e.model.at(e.model.position));else if(t==="line"){const s=ff("",e.model.root);e.keyboardDelegate.setAriaLabel(s)}else i=n?ff(t+" ",n):t;if(i){const s=e.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";e.ariaLiveText.textContent=i+s}}function fg(e,t){if(Number.isNaN(t))return"";const r=e.at(t);if(!r||r.treeDepth<=e.at(e.position).treeDepth)return"";let n="",i=r.parent;const s=e.at(e.position).parent;for(;i!==e.root&&i!==s;)n+=`out of ${Rh(i)};`,i=i.parent;return n}function hg(e){if(!e.selectionIsCollapsed)return ff("",e.getAtoms(e.selection));let t="";const r=e.at(e.position),n=Rh(r);return r.isFirstSibling&&(t=(n?"start of "+n:"unknown")+": "),r.isLastSibling?r.isFirstSibling||(t+=n?"end of "+n:"unknown"):t+=ff("",r),t}var pg=class{constructor(e,t,r){this.mathfield=e,this.mode=t,this.silenceNotifications=!1,this._selection={ranges:[[0,0]],direction:"none"},this._anchor=0,this._position=0,this.root=r}dispose(){this.mathfield=void 0}getState(){const e={ranges:[...this._selection.ranges]};return this.selection.direction&&this.selection.direction!=="none"&&(e.direction=this.selection.direction),{content:this.root.toJson(),selection:e,mode:this.mode}}setState(e,t){var r;const n=this.silenceNotifications;this.silenceNotifications=(r=t==null?void 0:t.silenceNotifications)!=null?r:!0;let i={};if((t==null?void 0:t.type)==="undo"&&(i={inputType:"historyUndo"}),(t==null?void 0:t.type)==="redo"&&(i={inputType:"historyRedo"}),this.contentWillChange(i)){const s=this.silenceNotifications;this.silenceNotifications=!0,this.mode=e.mode,this.root=mA(e.content),this.selection=e.selection,this.silenceNotifications=s,this.contentDidChange(i)}this.silenceNotifications=n}get atoms(){return this.root.children}get selection(){return this._selection}set selection(e){this.setSelection(e)}setSelection(e,t){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{var r,n,i;const s=this.normalizeSelection(e,t);if(s===void 0)throw new TypeError("Invalid selection");if(s.ranges.length===1&&s.ranges[0][0]===s.ranges[0][1]){const Ae=s.ranges[0][0];if(!this.mathfield.dirty&&!((r=this.at(Ae))!=null&&r.parentPrompt)&&this.mathfield.hasEditablePrompts){if((n=this.at(Ae-1))!=null&&n.parentPrompt){this._anchor=this.normalizeOffset(Ae-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((i=this.at(Ae+1))!=null&&i.parentPrompt){this._anchor=this.normalizeOffset(Ae+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=Ae,this._position=Ae,this._selection=s;return}const A=Is(s);s.direction==="backward"?[this._position,this._anchor]=A:[this._anchor,this._position]=A;const M=this.at(A[0]+1),$=this.at(A[1]),q=zr.commonAncestor(M,$);(q==null?void 0:q.type)==="array"&&M.parent===q&&$.parent===q?this._selection={ranges:[A],direction:s.direction}:this._selection={ranges:[A],direction:s.direction},console.assert(this._position>=0&&this._position<=this.lastOffset)})}setPositionHandlingPlaceholder(e){var t;const r=this.at(e);(r==null?void 0:r.type)==="placeholder"?this.setSelection(e-1,e):((t=r==null?void 0:r.rightSibling)==null?void 0:t.type)==="placeholder"?this.setSelection(e,e+1):this.position=e,r instanceof Ls&&r.isSuggestion&&(r.isSuggestion=!1),this.mathfield.stopCoalescingUndo()}get position(){return this._position}set position(e){this.setSelection(e,e)}get anchor(){return this._anchor}get selectionIsCollapsed(){return this._anchor===this._position}get selectionIsPlaceholder(){return Math.abs(this._anchor-this._position)===1?this.at(Math.max(this._anchor,this._position)).type==="placeholder":!1}collapseSelection(e="forward"){return this._anchor===this._position?!1:(e==="backward"?this.position=Math.min(this._anchor,this._position):this.position=Math.max(this._anchor,this._position),!0)}get lastOffset(){return this.atoms.length-1}at(e){return this.atoms[e]}offsetOf(e){return this.atoms.indexOf(e)}getSiblingsRange(e){const t=this.at(e),{parent:r}=t;if(!r)return[0,this.lastOffset];const n=t.parent.branch(t.parentBranch);return[this.offsetOf(n[0]),this.offsetOf(n[n.length-1])]}getBranchRange(e,t){const r=this.at(e).branch(t);return[this.offsetOf(r[0]),this.offsetOf(r[r.length-1])]}getAtoms(e,t,r){let n=r!=null?r:{};if(Uc(e)){if(n=t!=null?t:{},e.ranges.length>1)return e.ranges.reduce((q,Ae)=>[...q,...this.getAtoms(Ae,n)],[]);e=e.ranges[0]}let i,s;if(Tc(e)){if(i=e,!Tc(t))return[];s=t}else[i,s]=e,n=t!=null?t:{};if(!Number.isFinite(i))return[];n.includeChildren===void 0&&(n.includeChildren=!1),i<0&&(i=this.lastOffset-i+1),s<0&&(s=this.lastOffset-s+1);const A=Math.min(i,s)+1,M=Math.max(i,s);if(!n.includeChildren&&A===1&&M===this.lastOffset)return[this.root];let $=[];for(let q=A;q<=M;q++){const Ae=this.atoms[q];Qh(this,Ae,A,M)&&$.push(Ae)}return n.includeChildren||($=$.filter(q=>{let Ae=!1,{parent:Qe}=q;for(;Qe&&!Ae;)Ae=Qh(this,Qe,A,M),Qe=Qe.parent;return!Ae})),$}getAllAtoms(e=0){const t=[],r=this.lastOffset;for(let n=e;n<=r;n++)t.push(this.atoms[n]);for(let n=0;n<e;n++)t.push(this.atoms[n]);return t}findAtom(e,t=0,r="forward"){let n;const i=this.lastOffset;if(r==="forward"){for(let s=t;s<=i;s++)if(n=this.atoms[s],e(n))return n;for(let s=0;s<t;s++)if(n=this.atoms[s],e(n))return n;return}for(let s=t;s>=0;s--)if(n=this.atoms[s],e(n))return n;for(let s=i;s>t;s--)if(n=this.atoms[s],e(n))return n}extractAtoms(e){let t=this.getAtoms(e);if(t.length===1&&!t[0].parent)if(t[0].type==="root")t=[...t[0].body],t.shift();else return t=this.root.cells.flat(),this.root=new zr({type:"root",body:[]}),t;for(const r of t)r.parent.removeChild(r);return t}deleteAtoms(e){this.extractAtoms(e),this.position=e[0]}atomToString(e,t){const r=t!=null?t:"latex";if(r.startsWith("latex"))return zr.serialize([e],{expandMacro:r==="latex-expanded",skipStyles:r==="latex-unstyled",skipPlaceholders:r==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode});if(r==="math-ml")return Eo(e);if(r==="spoken")return uf(e);if(r==="spoken-text"){const n=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const i=uf(e);return window.MathfieldElement.textToSpeechMarkup=n,i}if(r==="spoken-ssml"||r==="spoken-ssml-with-highlighting"){const n=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="ssml";const i=uf(e);return window.MathfieldElement.textToSpeechMarkup=n,i}return r==="ascii-math"?Ws(e):(console.error(`MathLive 0.98.5: Unexpected format "${r}`),"")}getValue(e,t,r){if(e===void 0)return this.atomToString(this.root,"latex");if(typeof e=="string"&&e!=="math-json")return this.atomToString(this.root,e);let n,i;if(Tc(e)&&Tc(t)?(n=[this.normalizeRange([e,t])],i=r):Yc(e)?(n=[this.normalizeRange(e)],i=t):Uc(e)?(n=e.ranges,i=t):(n=[this.normalizeRange([0,-1])],i=e),i!=null||(i="latex"),i==="math-json"){if(!window.MathfieldElement.computeEngine)return window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`The CortexJS Compute Engine library is not available.
|
|
|
Load the library, for example with:
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`),'["Error", "compute-engine-not-available"]';const s=this.getValue({ranges:n},"latex-unstyled");try{const A=window.MathfieldElement.computeEngine.parse(s);return JSON.stringify(A.json)}catch(A){return JSON.stringify(["Error",`'${A.toString()}'`])}}if(i.startsWith("latex")){const s={expandMacro:i==="latex-expanded",skipStyles:i==="latex-unstyled",skipPlaceholders:i==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return Ca(n.map(A=>zr.serialize(this.getAtoms(A),s)))}return n.map(s=>this.getAtoms(s).map(A=>this.atomToString(A,i)).join("")).join("")}extendSelectionTo(e,t){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{const r=this.normalizeRange([e,t]);let[n,i]=r,{parent:s}=this.at(i);if(s&&(s.type==="genfrac"||s.type==="subsup"))for(;s!==this.root&&G0(this,s,[n,i]);)i=this.offsetOf(s),s=s.parent;for(s=this.at(n).parent;s!==this.root&&G0(this,s,[n,i]);)n=this.offsetOf(s.leftSibling),s=s.parent;if(s=this.at(i).parent,(s==null?void 0:s.type)==="genfrac")for(;s!==this.root&&G0(this,s,[n,i]);)i=this.offsetOf(s),console.assert(i>=0),s=s.parent;this._position=this.normalizeOffset(t),this._selection={ranges:[[n,i]],direction:"none"}})}announce(e,t,r=[]){var n,i;((i=(n=this.mathfield.host)==null?void 0:n.dispatchEvent(new CustomEvent("announce",{detail:{command:e,previousPosition:t,atoms:r},cancelable:!0,bubbles:!0,composed:!0})))!=null?i:!0)&&dg(this.mathfield,e,t,r)}deferNotifications(e,t){const r=this._selection,n=this._anchor,i=this._position,s=this.silenceNotifications;this.silenceNotifications=!0;const A=this.root.changeCounter;t();const M=this.root.changeCounter!==A,$=n!==this._anchor||i!==this._position||Ku(this._selection,r)==="different";return this.silenceNotifications=s,e.content&&M&&this.contentDidChange({inputType:e.type}),e.selection&&$&&this.selectionDidChange(),M||$}normalizeOffset(e){return e>0?e=Math.min(e,this.lastOffset):e<0&&(e=this.lastOffset+e+1),e}normalizeRange(e){let[t,r]=e;return t=this.normalizeOffset(t),r=this.normalizeOffset(r),t<r?[t,r]:[r,t]}normalizeSelection(e,t){var r;let n;if(Tc(e)){const i=this.normalizeOffset(e);if(Tc(t)){const s=this.normalizeOffset(t);n=i<=s?{ranges:[[i,s]],direction:"none"}:{ranges:[[s,i]],direction:"backward"}}else n={ranges:[[i,i]],direction:"none"}}else if(Yc(e)){const i=this.normalizeOffset(e[0]),s=this.normalizeOffset(e[1]);n=i<=s?{ranges:[[i,s]],direction:"none"}:{ranges:[[s,i]],direction:"backward"}}else Uc(e)&&(n={ranges:e.ranges.map(i=>this.normalizeRange(i)),direction:(r=e.direction)!=null?r:"none"});return console.assert(n!==void 0),n}get parentEnvironment(){let e=this.at(this.position).parent;if(e){for(;e.parent&&e.type!=="array";)e=e.parent;if(e.type==="array")return e}}get cell(){var e;let t=this.at(this.position);if(t){for(;t&&((e=t.parent)==null?void 0:e.type)!=="array";)t=t.parent;if(!(!(t!=null&&t.parent)||t.parent.type!=="array"))return t.parentBranch}}contentWillChange(e={}){if(this.silenceNotifications||!this.mathfield)return!0;const t=this.silenceNotifications;this.silenceNotifications=!0;const r=this.mathfield.onContentWillChange(e);return this.silenceNotifications=t,r}contentDidChange(e){var t;if(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Iu(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const r=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",E(f({},e),{data:e.data?e.data:(t=e.inputType)!=null?t:"",bubbles:!0,composed:!0}))),this.silenceNotifications=r}selectionDidChange(){if(!this.mathfield||(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Iu(this.mathfield)),this.silenceNotifications))return;const e=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=e}};function Qh(e,t,r,n){const i=e.offsetOf(t);if(i<r||i>n)return!1;if(!t.hasChildren)return!0;const s=e.offsetOf(t.firstChild);if(s>=r&&s<=n){const A=e.offsetOf(t.lastChild);if(A>=r&&A<=n)return!0}return!1}function G0(e,t,r){if(!(t!=null&&t.hasChildren))return!1;const[n,i]=r,s=e.offsetOf(t.firstChild),A=e.offsetOf(t.lastChild);return s>=n&&s<=i&&A>=s&&A<=i}function Uf(e,t,r,n){var i,s,A,M,$,q;const Ae=r.parent;if(Ae&&r instanceof ko){const Qe=!n&&t==="forward"||n==="body"&&t==="backward";let ut=Qe?e.offsetOf(r.firstChild):e.offsetOf(r.lastChild);return Qe?r.rightDelim!=="?"&&r.rightDelim!=="."?(r.leftDelim=".",r.isDirty=!0):(Ae.addChildrenAfter(r.removeBranch("body"),r),Ae.removeChild(r),ut--):r.leftDelim!=="?"&&r.leftDelim!=="."?(r.rightDelim=".",r.isDirty=!0):(Ae.addChildrenAfter(r.removeBranch("body"),r),Ae.removeChild(r),ut--),e.position=ut,!0}if(Ae&&r.type==="surd"){if(t==="forward"&&!n||t==="backward"&&n==="body"){const Qe=r.leftSibling;r.hasChildren&&Ae.addChildrenAfter(r.removeBranch("body"),r),Ae.removeChild(r),e.position=e.offsetOf(Qe)}else t==="forward"&&n==="body"?e.position=e.offsetOf(r):!n&&t==="backward"?r.hasChildren?e.position=e.offsetOf(r.lastChild):(e.position=Math.max(0,e.offsetOf(r)-1),Ae.removeChild(r)):n==="above"&&(r.hasEmptyBranch("above")&&r.removeBranch("above"),t==="backward"?e.position=e.offsetOf(r.leftSibling):e.position=e.offsetOf(r.body[0]));return!0}if(Ae&&(r.type==="box"||r.type==="enclose")){const Qe=n&&t==="backward"||!n&&t==="forward"?r.leftSibling:r.lastChild;return Ae.addChildrenAfter(r.removeBranch("body"),r),Ae.removeChild(r),e.position=e.offsetOf(Qe),!0}if(r.type==="genfrac"||r.type==="overunder"){if(!n)return r.type==="overunder"&&r.hasEmptyBranch("body")||r.type==="genfrac"&&r.hasEmptyBranch("below")&&r.hasEmptyBranch("above")?!1:(e.position=e.offsetOf(t==="forward"?r.firstChild:r.lastChild),!0);const Qe=Rf.fractionNavigationOrder==="numerator-denominator"?"above":"below",ut=Qe==="above"?"below":"above";if(Ae&&(t==="forward"&&n===Qe||t==="backward"&&n===ut)){const Ft=r.removeBranch(Qe),Nt=r.removeBranch(ut);return Ae.addChildrenAfter([...Ft,...Nt],r),Ae.removeChild(r),e.position=e.offsetOf(Ft.length>0?Ft[Ft.length-1]:Nt[0]),!0}return t==="backward"?e.position=e.offsetOf(r.leftSibling):e.position=e.offsetOf(r),!0}if(r.isExtensibleSymbol||r.type==="subsup"){if(!n&&t==="forward")return!1;if(!n){if(r.subscript||r.superscript){const Qe=t==="forward"?(A=(i=r.superscript)==null?void 0:i[0])!=null?A:(s=r.subscript)==null?void 0:s[0]:(q=(M=r.subscript)==null?void 0:M[0].lastSibling)!=null?q:($=r.superscript)==null?void 0:$[0].lastSibling;return Qe&&(e.position=e.offsetOf(Qe)),!0}return!1}if(!r.hasChildren&&r.type==="subsup"){const Qe=t==="forward"?e.offsetOf(r):Math.max(0,e.offsetOf(r)-1);return r.parent.removeChild(r),e.position=Qe,!0}if(n==="superscript")if(t==="backward"){const Qe=e.offsetOf(r.firstChild)-1;console.assert(Qe>=0),e.position=Qe}else r.subscript?e.position=e.offsetOf(r.subscript[0]):e.position=e.offsetOf(r);else n==="subscript"&&(t==="backward"&&r.superscript?e.position=e.offsetOf(r.superscript[0].lastSibling):t==="backward"?e.position=e.offsetOf(r.firstChild)-1:e.position=e.offsetOf(r));if(n&&r.hasEmptyBranch(n)&&(r.removeBranch(n),r.type==="subsup"&&!r.subscript&&!r.superscript)){const Qe=t==="forward"?e.offsetOf(r):Math.max(0,e.offsetOf(r)-1);r.parent.removeChild(r),e.position=Qe}return!0}if((Ae==null?void 0:Ae.type)==="genfrac"&&!n&&r.type!=="first"){let Qe=e.offsetOf(r.leftSibling);return Ae.removeChild(r),Ae.hasEmptyBranch("above")&&Ae.hasEmptyBranch("below")?(Qe=e.offsetOf(Ae.leftSibling),Ae.parent.removeChild(Ae),e.announce("delete",void 0,[Ae]),e.position=Qe,!0):(e.announce("delete",void 0,[r]),e.position=Qe,!0)}if(t==="backward"&&((Ae==null?void 0:Ae.command)==="\\ln"||(Ae==null?void 0:Ae.command)==="\\log")&&r.parentBranch!=="body"){const Qe=e.offsetOf(Ae.leftSibling);return Ae.parent.removeChild(Ae),e.announce("delete",void 0,[Ae]),e.position=Qe,!0}return!1}function mg(e){return!e.mathfield.isSelectionEditable||!e.contentWillChange({inputType:"deleteContentBackward"})?!1:e.selectionIsCollapsed?e.deferNotifications({content:!0,selection:!0,type:"deleteContentBackward"},()=>{let t=e.at(e.position);if(!(t&&Uf(e,"backward",t))){if(t!=null&&t.isFirstSibling){if(Uf(e,"backward",t.parent,t.parentBranch))return;t=null}if(!t){e.announce("plonk");return}e.position=e.offsetOf(t.leftSibling),t.parent.removeChild(t),e.announce("delete",void 0,[t])}}):Lu(e,Is(e.selection),"deleteContentBackward")}function gg(e){return!e.mathfield.isSelectionEditable||!e.contentWillChange({inputType:"deleteContentForward"})?!1:e.selectionIsCollapsed?e.deferNotifications({content:!0,selection:!0,type:"deleteContentForward"},()=>{var t,r;let n=e.at(e.position).rightSibling;if(n&&Uf(e,"forward",n))return;if(n){if(e.at(e.position).isLastSibling&&Uf(e,"forward",n.parent,n.parentBranch))return}else{if(n=e.at(e.position),n.isLastSibling&&Uf(e,"forward",n.parent,n.parentBranch))return;n=void 0}if(e.position===e.lastOffset||!n){e.announce("plonk");return}n.parent.removeChild(n);let i=(t=e.at(e.position))==null?void 0:t.rightSibling;for(;(i==null?void 0:i.type)==="subsup";)i.parent.removeChild(i),i=(r=e.at(e.position))==null?void 0:r.rightSibling;e.announce("delete",void 0,[n])}):Lu(e,Is(e.selection),"deleteContentForward")}function Lu(e,t,r){const n=e.getAtoms(t);if(n.length>0&&n[0].parent){let i=n[0].parent.firstChild;i.type==="first"&&(i=i.rightSibling);const s=n[n.length-1].parent.lastChild;let A=n[0];A.type==="first"&&(A=A.rightSibling);const M=n[n.length-1];if(A===i&&M===s){const $=n[0].parent;$.parent&&$.type!=="prompt"&&(t=[e.offsetOf($.leftSibling),e.offsetOf($)])}if(n.length===1&&n[0].type==="placeholder"&&n[0].parent.type==="genfrac"){const $=n[0].parent,q=n[0].parentBranch==="below"?"above":"below",Ae=e.offsetOf($.leftSibling);return e.deferNotifications({content:!0,selection:!0,type:r},()=>{var Qe,ut;const Ft=$.removeBranch(q);if(Ft.length===1&&Ft[0].type==="placeholder")(ut=$.parent)==null||ut.removeChild($),e.position=Math.max(0,Ae);else{const Nt=$.parent.addChildrenAfter(Ft,$);(Qe=$.parent)==null||Qe.removeChild($),e.position=e.offsetOf(Nt)}})}}return e.deferNotifications({content:!0,selection:!0,type:r},()=>e.deleteAtoms(t))}_l({deleteAll:e=>e.contentWillChange({inputType:"deleteContent"})&&Lu(e,[0,-1],"deleteContent"),deleteForward:e=>gg(e),deleteBackward:e=>mg(e),deleteNextWord:e=>e.contentWillChange({inputType:"deleteWordForward"})&&Lu(e,[e.anchor,B0(e,e.position,"forward")],"deleteWordForward"),deletePreviousWord:e=>e.contentWillChange({inputType:"deleteWordBackward"})&&Lu(e,[e.anchor,B0(e,e.position,"backward")],"deleteWordBackward"),deleteToGroupStart:e=>e.contentWillChange({inputType:"deleteSoftLineBackward"})&&Lu(e,[e.anchor,e.offsetOf(e.at(e.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:e=>e.contentWillChange({inputType:"deleteSoftLineForward"})&&Lu(e,[e.anchor,e.offsetOf(e.at(e.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:e=>e.contentWillChange({inputType:"deleteHardLineBackward"})&&Lu(e,[e.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:e=>e.contentWillChange({inputType:"deleteHardLineForward"})&&Lu(e,[e.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var vg=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${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>`,yg=`<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>`,bg=class{constructor(e,t){this.focusBlurInProgress=!1;var r,n,i;this.options=f(E(f({},Jf()),{macros:lt(),registers:FA()}),Xf(t)),this.eventController=new AbortController;const s=this.eventController.signal;t.eventSink&&(this.host=t.eventSink),this.element=e,e.mathfield=this,this.blurred=!0,this.keystrokeCaptionVisible=!1,this.suggestionIndex=0,this.inlineShortcutBuffer=[],this.inlineShortcutBufferFlushTimer=0,this.defaultStyle={},this.adoptStyle="left",this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline"),this.dirty=!1;let A=(n=(r=t.value)!=null?r:this.element.textContent)!=null?n:"";A=A.trim();const M=eh(this.options),$=new zr({type:"root",mode:M,body:Al(A,{context:this.context})});this.model=new pg(this,M,$),this.undoManager=new $p(this.model);const q=[];if(q.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>"),q.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),q.push("<span part=content class=ML__content>"),q.push(Cf(this)),q.push("</span>"),window.mathVirtualKeyboard&&(q.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">`),q.push(vg),q.push("</div>")),q.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),q.push(yg),q.push("</div>"),q.push("</span>"),q.push("<span class=ML__sr-only>"),q.push("<span role=status aria-live=assertive aria-atomic=true></span>"),q.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(q.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=G.subscribe(()=>G.update(this.element)),G.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",Qe=>Qe.stopImmediatePropagation(),{capture:!1,signal:s}),this.field.addEventListener("wheel",this,{passive:!1,signal:s}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:s}):this.field.addEventListener("mousedown",this,{signal:s}),(i=this.element.querySelector("[part=virtual-keyboard-toggle]"))==null||i.addEventListener("click",()=>{window.mathVirtualKeyboard.visible?window.mathVirtualKeyboard.hide():(window.mathVirtualKeyboard.show({animate:!0}),window.mathVirtualKeyboard.update(Iu(this)))},{signal:s}),this._menu=new Mm(og(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:s});const Ae=this.element.querySelector("[part=menu-toggle]");Ae==null||Ae.addEventListener("pointerdown",Qe=>{if(Qe.currentTarget!==Ae||this._menu.state!=="closed")return;this.element.classList.add("tracking");const ut=Ae.getBoundingClientRect();this._menu.modifiers=Sa(Qe),this._menu.show({target:Ae,location:{x:ut.left,y:ut.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),Qe.preventDefault(),Qe.stopPropagation()},{signal:s}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(Ae.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=Fc(this.element.querySelector(".ML__keyboard-sink"),this.element,this),window.addEventListener("resize",this,{signal:s}),document.addEventListener("scroll",this,{signal:s}),this.resizeObserver=new ResizeObserver(()=>xs(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:s}),Gt&&!G.locale.startsWith(Gt.locale)&&Wn(G.locale),zc!=="ready"&&document.fonts.ready.then(()=>Id(this)),e.querySelector("[part=container]").style.removeProperty("visibility"),this.undoManager.startRecording(),this.undoManager.snapshot("set-value")}get defaultStyle(){return this._defaultStyle}set defaultStyle(e){this._defaultStyle=e}get effectiveStyle(){if(this.adoptStyle==="none")return this.defaultStyle;const e=this.model.at(this.model.position),t=this.adoptStyle==="right"?e.rightSibling:e;if(!t)return this.defaultStyle;if(t.type==="group"){const r=t.branch("body");return!r||r.length<2?{}:this.adoptStyle==="right"?r[1].computedStyle:r[r.length-1].computedStyle}return t.computedStyle}connectToVirtualKeyboard(){this.connectedToVirtualKeyboard||(this.connectedToVirtualKeyboard=!0,window.addEventListener("message",this,{signal:this.eventController.signal}),window.mathVirtualKeyboard.connect(),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Iu(this)),c0(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,N0())}showMenu(e){var t,r;const n=(r=(t=e==null?void 0:e.location)!=null?t:Bl(this.field))!=null?r:void 0,i=e==null?void 0:e.modifiers,s=this.element.querySelector("[part=container]");return this._menu.show({target:s,location:n,modifiers:i})}get colorMap(){return e=>{var t,r,n;return(n=(r=(t=this.options).colorMap)==null?void 0:r.call(t,e))!=null?n:je(e)}}get backgroundColorMap(){return e=>{var t,r,n,i,s,A;return(A=(s=(r=(t=this.options).backgroundColorMap)==null?void 0:r.call(t,e))!=null?s:(i=(n=this.options).colorMap)==null?void 0:i.call(n,e))!=null?A:X(e)}}get smartFence(){var e;return(e=this.options.smartFence)!=null?e:!1}get readOnly(){var e;return(e=this.options.readOnly)!=null?e:!1}get disabled(){var e,t;return(t=(e=this.host)==null?void 0:e.disabled)!=null?t:!1}get contentEditable(){return this.host?this.host.getAttribute("contenteditable")!=="false":!1}get userSelect(){if(!this.host)return"";const e=getComputedStyle(this.host);return e.getPropertyValue("user-select")||e.getPropertyValue("-webkit-user-select")}get hasEditableContent(){return this.disabled||!this.contentEditable?!1:!this.readOnly||this.hasEditablePrompts}get hasEditablePrompts(){return this.readOnly&&!this.disabled&&this.contentEditable&&this.model.findAtom(e=>e.type==="prompt"&&!e.locked)!==void 0}get isSelectionEditable(){if(this.disabled||!this.contentEditable)return!1;if(!this.readOnly)return!0;const e=this.model.at(this.model.anchor),t=this.model.at(this.model.position),r=zr.commonAncestor(e,t);return!!((r==null?void 0:r.type)==="prompt"||r!=null&&r.parentPrompt)}get letterShapeStyle(){var e;return(e=this.options.letterShapeStyle)!=null?e:"tex"}get minFontScale(){return this.options.minFontScale}get selectionStyle(){if(this.model.selectionIsCollapsed)return this.effectiveStyle;const e=this.model.getAtoms(this.model.selection);if(e.length===0)return{};const t=f({},e[0].style);for(const r of e)for(const[n,i]of Object.entries(r.style))t[n]!==i&&delete t[n];return t}queryStyle(e){const t=M0(this,e);"verbatimColor"in t&&delete t.verbatimColor,"verbatimBackgroundColor"in t&&delete t.verbatimBackgroundColor;const r=Object.keys(t).length;if(r===0)return"all";if(r>1){for(const $ of Object.keys(t)){const q=this.queryStyle({[$]:t[$]});if(q==="none")return"none";if(q==="some")return"some"}return"all"}const n=Object.keys(t)[0],i=t[n];if(this.model.selectionIsCollapsed)return this.effectiveStyle[n]===i?"all":"none";const s=this.model.getAtoms(this.model.selection,{includeChildren:!0});let A=s.length;if(A===0)return"none";let M=0;for(const $ of s){if($.type==="first"){A-=1;continue}$.style[n]===i&&(M+=1)}return M===0?"none":M===A?"all":"some"}get keybindings(){var e,t;if(this._keybindings)return this._keybindings;const[r,n]=iA(this.options.keybindings,(e=zi())!=null?e:ti());return((t=zi())==null?void 0:t.score)>0&&(this._keybindings=r,n.length>0&&console.error("MathLive 0.98.5: Invalid keybindings for current keyboard layout",n)),r}get menu(){return this._menu}setOptions(e){var t;this.options=f(f({},this.options),Xf(e)),this._keybindings=void 0,this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline");let r=this.options.defaultMode;r==="inline-math"&&(r="math"),((t=this.model.root.firstChild)==null?void 0:t.mode)!==r&&(this.model.root.firstChild.mode=r),this.options.readOnly&&this.hasFocus()&&window.mathVirtualKeyboard.visible&&this.executeCommand("hideVirtualKeyboard");const n=zr.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in e||this.model.getValue()!==n)&&aa.insert(this.model,n,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",silenceNotifications:!0,mode:"math"}),("value"in e||"macros"in e||"registers"in e||"colorMap"in e||"backgroundColorMap"in e||"letterShapeStyle"in e||"minFontScale"in e||"readOnly"in e||"placeholderSymbol"in e)&&xs(this)}getOptions(e){return Td(this.options,e)}getOption(e){return Td(this.options,e)}handleEvent(e){return gd(this,null,function*(){var t;if(hs(this)){if(tf(e)){if(!kA(e.origin,(t=this.options.originValidator)!=null?t:"none"))throw new DOMException(`Message from unknown origin (${e.origin}) cannot be handled`,"SecurityError");const{action:r}=e.data;if(r==="execute-command"){const n=e.data.command;if(dd(n)==="virtual-keyboard")return;this.executeCommand(n)}else r==="update-state"||(r==="focus"?this.focus({preventScroll:!0}):r==="blur"&&this.blur());return}switch(e.type){case"focus":this.onFocus();break;case"blur":this.onBlur();break;case"mousedown":this.userSelect!=="none"&&ph(this,e);break;case"pointerdown":this.userSelect!=="none"&&(ph(this,e),e.shiftKey===!1&&(yield Ih(e,this.element.querySelector("[part=container]"),this._menu))&&a0.stop());break;case"contextmenu":this.userSelect!=="none"&&e.shiftKey===!1&&(yield Ih(e,this.element.querySelector("[part=container]"),this._menu))&&a0.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&c0(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>hs(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>hs(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(e);break;default:console.warn("Unexpected event type",e.type)}}})}dispose(){if(!hs(this))return;G.unsubscribe(this._l10Subscription),this.keyboardDelegate.dispose(),this.keyboardDelegate=void 0,this.eventController.abort(),this.eventController=void 0,this.resizeObserver.disconnect(),window.mathVirtualKeyboard.removeEventListener("virtual-keyboard-toggle",this),this.disconnectFromVirtualKeyboard(),this.model.dispose();const e=this.element;delete e.mathfield,this.element=void 0,this.host=void 0,this.field=void 0,this.ariaLiveText=void 0,rm(),Hf(),Cm()}flushInlineShortcutBuffer(e){if(e!=null||(e={defer:!1}),!e.defer){this.inlineShortcutBuffer=[],clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=0;return}this.options.inlineShortcutTimeout>0&&(clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=setTimeout(()=>this.flushInlineShortcutBuffer(),this.options.inlineShortcutTimeout))}executeCommand(e){return dd(e)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(e),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(Iu(this))),!1):ef(this,e)}get errors(){return gu(this.model.getValue(),{context:this.context})}getValue(e,t,r){return this.model.getValue(e,t,r)}setValue(e,t){var r;t=t!=null?t:{mode:"math"},t.insertionMode===void 0&&(t.insertionMode="replaceAll"),(t.format===void 0||t.format==="auto")&&(t.format="latex"),(t.mode===void 0||t.mode==="auto")&&(t.mode=(r=Hu(this.model,this.model.position))!=null?r:"math");const n=this.undoManager.canUndo();aa.insert(this.model,e,t)&&(xs(this),n||this.undoManager.reset(),this.undoManager.snapshot("set-value"))}get expression(){const e=window.MathfieldElement.computeEngine;return e?e.box(e.parse(this.model.getValue("latex-unstyled"))):(console.error("MathLive 0.98.5: no compute engine available. Make sure the Compute Engine library is loaded."),null)}scrollIntoView(){var e;if(!this.element)return;if(this.host){if(this.options.onScrollIntoView)this.options.onScrollIntoView(this);else if(this.host.scrollIntoView({block:"nearest",inline:"nearest"}),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.container===window.document.body){const n=window.mathVirtualKeyboard.boundingRect,i=this.host.getBoundingClientRect();i.bottom>n.top&&((e=window.document.scrollingElement)==null||e.scrollBy(0,i.bottom-n.top+8))}}this.dirty&&TA(this,{interactive:!0});const t=this.field.getBoundingClientRect();let r=null;if(this.model.selectionIsCollapsed)r=Bl(this.field);else{const n=XA(this);if(n.length>0){let i=-1/0,s=-1/0;for(const A of n)A.right>i&&(i=A.right),A.top<s&&(s=A.top);r={x:i+t.left-this.field.scrollLeft,y:s+t.top-this.field.scrollTop,height:0}}}if(this.host&&r){const n=this.host.getBoundingClientRect(),i=r.y;let s=this.host.scrollTop;i<n.top?s=i-n.top+this.host.scrollTop:i>n.bottom&&(s=i-n.bottom+this.host.scrollTop+r.height),this.host.scroll({top:s,left:0})}if(r){const n=r.x-window.scrollX;let i=this.field.scrollLeft;n<t.left?i=n-t.left+this.field.scrollLeft-20:n>t.right&&(i=n-t.right+this.field.scrollLeft+20),this.field.scroll({top:this.field.scrollTop,left:i})}}insert(e,t){return typeof e!="string"||e.length===0&&((t==null?void 0:t.insertionMode)==="insertBefore"||(t==null?void 0:t.insertionMode)==="insertAfter")||e.length===0&&this.model.selectionIsCollapsed?!1:(this.flushInlineShortcutBuffer(),t=t!=null?t:{mode:"math"},t.focus&&this.focus(),t.feedback&&(window.MathfieldElement.keypressVibration&&I()&&navigator.vibrate(Md),window.MathfieldElement.playSound("keypress")),e==="\\\\"?th(this.model):e==="&"?rh(this.model):this.model.selectionIsCollapsed?aa.insert(this.model,e,f({style:this.model.at(this.model.position).computedStyle},t)):aa.insert(this.model,e,t),this.snapshot(`insert-${this.model.at(this.model.position).type}`),xs(this),t.scrollIntoView&&this.scrollIntoView(),!0)}switchMode(e,t="",r=""){var n;if(this.model.mode===e||!this.hasEditableContent||!this.contentEditable||this.disabled)return;const i=this.model.mode;if(this.model.mode=e,!((n=this.host)!=null&&n.dispatchEvent(new Event("mode-change",{bubbles:!0,composed:!0,cancelable:!0})))){this.model.mode=i;return}const s=this.model.mode,{model:A}=this;A.deferNotifications({content:!!r||!!t,selection:!0,type:"insertText"},()=>{let M=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),t&&e!=="latex"){const $=Al(t,{context:this.context,parseMode:e});A.collapseSelection("forward");const q=A.at(A.position);A.position=A.offsetOf(q.parent.addChildrenAfter($,q)),M=!0}if(this.model.mode=e,e==="latex"){let $=A.selectionIsCollapsed;Su(this,"accept");let q,Ae=A.at(A.position);if($)q="\\";else{const ut=Is(A.selection);q=this.model.getValue(ut,"latex");const Ft=this.model.extractAtoms(ut);Ft.length===1&&Ft[0].type==="placeholder"&&(q=t,$=!0),Ae=A.at(ut[0])}const Qe=new yu(q);Ae.parent.addChildAfter(Qe,Ae),$?A.position=A.offsetOf(Qe.lastChild):A.setSelection(A.offsetOf(Qe.firstChild),A.offsetOf(Qe.lastChild))}else jc(A).forEach($=>{$.isError=!1});if(r){const $=Al(r,{context:this.context,parseMode:s});A.collapseSelection("forward");const q=A.at(A.position);A.position=A.offsetOf(q.parent.addChildrenAfter($,q)),M=!0}return xs(this),this.undoManager.snapshot(e==="latex"?"insert-latex":"insert"),M}),this.model.mode=e,window.mathVirtualKeyboard.update(Iu(this))}hasFocus(){return!this.blurred}focus(e){var t;this.hasFocus()||(this.keyboardDelegate.focus(),this.connectToVirtualKeyboard(),this.onFocus(),this.model.announce("line")),(t=e==null?void 0:e.preventScroll)!=null&&t||this.scrollIntoView()}blur(){this.disconnectFromVirtualKeyboard(),this.hasFocus()&&this.keyboardDelegate.blur()}select(){this.model.selection={ranges:[[0,this.model.lastOffset]]},this.focus()}applyStyle(e,t={}){var r,n;const i={operation:"set",silenceNotifications:!1};Yc(t)?i.range=t:(t.operation==="toggle"&&(i.operation="toggle"),i.range=t.range,i.silenceNotifications=(r=t.silenceNotifications)!=null?r:!1);const s=M0(this,e),A=(n=i.operation)!=null?n:"set";if(i.range===void 0&&this.model.selectionIsCollapsed){if(A==="set"){this.defaultStyle=f(f({},this.defaultStyle),s);return}const M=f({},this.defaultStyle);for(const $ of Object.keys(s))M[$]===s[$]?($==="color"&&delete M.verbatimColor,$==="backgroundColor"&&delete M.verbatimBackgroundColor,delete M[$]):M[$]=s[$];this.defaultStyle=M;return}this.model.deferNotifications({content:!i.silenceNotifications,type:"insertText"},()=>{if(i.range===void 0)for(const M of this.model.selection.ranges)x0(this.model,M,s,{operation:A});else x0(this.model,i.range,s,{operation:A})}),xs(this)}toggleContextMenu(){var e;return this._menu.visible?this._menu.state==="open"?(this._menu.hide(),!0):(this._menu.show({target:this.element.querySelector("[part=container]"),location:(e=this.getCaretPoint())!=null?e:void 0,onDismiss:()=>{var t;return(t=this.element)==null?void 0:t.focus()}}),!0):!1}getCaretPoint(){const e=Bl(this.field);return e?{x:e.x,y:e.y}:null}setCaretPoint(e,t){const r=Df(this,e,t,{bias:0});if(r<0)return!1;const n=this.model.position;return this.model.position=r,this.model.announce("move",n),xs(this),!0}getPrompt(e){const t=this.model.findAtom(r=>r.type==="prompt"&&r.placeholderId===e);return console.assert(t!==void 0,"MathLive 0.98.5: no prompts with matching ID found"),t}getPromptValue(e,t){const r=this.getPrompt(e);if(!r)return"";const n=this.model.offsetOf(r.firstChild),i=this.model.offsetOf(r.lastChild);return this.model.getValue(n,i,t)}getPrompts(e){return this.model.getAllAtoms().filter(t=>t.type!=="prompt"?!1:e?!(e.id&&t.placeholderId!==e.id||e.locked&&t.locked!==e.locked||e.correctness==="undefined"&&t.correctness||e.correctness&&t.correctness!==e.correctness):!0).map(t=>t.placeholderId)}setPromptValue(e,t,r){if(t!==void 0){const n=this.getPrompt(e);if(!n){console.error(`MathLive 0.98.5: unknown prompt ${e}`);return}const i=this.model.getBranchRange(this.model.offsetOf(n),"body");this.model.setSelection(i),this.insert(t,E(f({},r),{insertionMode:"replaceSelection"}))}r!=null&&r.silenceNotifications&&(this.valueOnFocus=this.getValue()),xs(this)}setPromptState(e,t,r){const n=this.getPrompt(e);if(!n){console.error(`MathLive 0.98.5: unknown prompt ${e}`);return}t==="undefined"?n.correctness=void 0:typeof t=="string"&&(n.correctness=t),typeof r=="boolean"&&(n.locked=r,n.captureSelection=r),xs(this)}getPromptState(e){const t=this.getPrompt(e);return t?[t.correctness,t.locked]:(console.error(`MathLive 0.98.5: unknown prompt ${e}`),[void 0,!0])}getPromptRange(e){const t=this.getPrompt(e);return t?this.model.getBranchRange(this.model.offsetOf(t),"body"):(console.error(`MathLive 0.98.5: unknown prompt ${e}`),[0,0])}canUndo(){return this.undoManager.canUndo()}canRedo(){return this.undoManager.canRedo()}popUndoStack(){this.undoManager.pop()}snapshot(e){var t;this.undoManager.snapshot(e)&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Iu(this)),(t=this.host)==null||t.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"snapshot"}})))}stopCoalescingUndo(){this.undoManager.stopCoalescing(this.model.selection)}stopRecording(){this.undoManager.stopRecording()}startRecording(){this.undoManager.startRecording()}undo(){var e;this.undoManager.undo()&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Iu(this)),(e=this.host)==null||e.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}redo(){var e;this.undoManager.redo()&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Iu(this)),(e=this.host)==null||e.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}resetUndo(){var e;(e=this.undoManager)==null||e.reset()}onSelectionDidChange(){var e,t;const r=this.model;this.keyboardDelegate.setValue(r.getValue(this.model.selection,"latex-expanded"));{const n=r.at(r.position),i=(e=n.mode)!=null?e:eh(this.options);this.model.mode!==i&&(this.model.mode==="latex"?(Su(this,"accept",{mode:i}),r.position=r.offsetOf(n)):this.switchMode(i))}(t=this.host)==null||t.dispatchEvent(new Event("selection-change",{bubbles:!0,composed:!0})),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Iu(this)),c0(this)}onContentWillChange(e){var t,r,n;return(n=(r=this.host)==null?void 0:r.dispatchEvent(new InputEvent("beforeinput",E(f({},e),{data:e.data?e.data:(t=e.inputType)!=null?t:"",cancelable:!0,bubbles:!0,composed:!0}))))!=null?n:!0}onFocus(){this.focusBlurInProgress||!this.blurred||(this.focusBlurInProgress=!0,this.blurred=!1,this.keyboardDelegate.focus(),this.stopCoalescingUndo(),TA(this,{interactive:!0}),this.valueOnFocus=this.model.getValue(),this.hasEditablePrompts&&!this.model.at(this.model.anchor).parentPrompt&&this.executeCommand("moveToNextPlaceholder"),this.focusBlurInProgress=!1)}onBlur(){var e,t,r;if(this.focusBlurInProgress||this.blurred)return;this.focusBlurInProgress=!0,this.stopCoalescingUndo(),this.blurred=!0,this.ariaLiveText.textContent="",gA(this),this.model.getValue()!==this.valueOnFocus&&((e=this.host)==null||e.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),this.disconnectFromVirtualKeyboard(),(t=this.host)==null||t.dispatchEvent(new Event("blur",{bubbles:!1,composed:!0})),(r=this.host)==null||r.dispatchEvent(new UIEvent("focusout",{bubbles:!0,composed:!0})),xs(this),this.focusBlurInProgress=!1,N0();const n=new AbortController,i=n.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{hs(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:i})},{once:!0,signal:i}),setTimeout(()=>n.abort(),100)}onInput(e){_0(this,e)}onKeystroke(e){return dh(this,e)}onCompositionStart(e){this.model.deleteAtoms(Is(this.model.selection));const t=Bl(this.field);t&&requestAnimationFrame(()=>{TA(this),this.keyboardDelegate.moveTo(t.x,t.y-t.height)})}onCompositionUpdate(e){Op(this.model,e),xs(this)}onCompositionEnd(e){Tp(this.model),_0(this,e,{simulateKeystroke:!0})}onCut(e){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),aa.onCopy(this,e),Lu(this.model,Is(this.model.selection),"deleteByCut"),this.snapshot("cut"),xs(this))}onCopy(e){aa.onCopy(this,e)}onPaste(e){let t=this.isSelectionEditable;return t&&(t=aa.onPaste(this.model.at(this.model.position).mode,this,e.clipboardData)),t||this.model.announce("plonk"),e.preventDefault(),e.stopPropagation(),t}onGeometryChange(){this._menu.hide(),Mc(this),c0(this)}onWheel(e){const t=5*e.deltaX;if(!Number.isFinite(t)||t===0)return;const r=this.field;t<0&&r.scrollLeft===0||t>0&&r.offsetWidth+r.scrollLeft>=r.scrollWidth||(r.scrollBy({top:0,left:t}),e.preventDefault(),e.stopPropagation())}getHTMLElement(e){let t=e;for(;!t.id&&t.hasChildren;)t=e.children[0];return this.field.querySelector(`[data-atom-id="${t.id}"]`)}get context(){var e,t;return{registers:(e=this.options.registers)!=null?e:{},smartFence:this.smartFence,letterShapeStyle:this.letterShapeStyle,minFontScale:this.minFontScale,placeholderSymbol:(t=this.options.placeholderSymbol)!=null?t:"\u25A2",colorMap:r=>this.colorMap(r),backgroundColorMap:r=>this.backgroundColorMap(r),getMacro:r=>zt(r,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}};function Kh(e){if(e&&(e.classList.remove("ML__highlight"),e.children))for(const t of e.children)Kh(t)}function X0(e,t){var r;e&&(!t||((r=e.dataset)==null?void 0:r.atomId)===t?(e.classList.add("ML__highlight"),e.children&&e.children.length>0&&[...e.children].forEach(n=>{n instanceof HTMLElement&&X0(n)})):(e.classList.remove("ML__highlight"),e.children&&e.children.length>0&&[...e.children].forEach(n=>{n instanceof HTMLElement&&X0(n,t)})))}function wg(e,t){var r;if(!N())return;if(window.MathfieldElement.speechEngine!=="amazon"){console.error("MathLive 0.98.5: Use Amazon TTS Engine for synchronized highlighting"),typeof window.MathfieldElement.speakHook=="function"&&window.MathfieldElement.speakHook(t);return}if(!window.AWS){console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");return}const n=new window.AWS.Polly({apiVersion:"2016-06-10"}),i={OutputFormat:"json",VoiceId:(r=window.MathfieldElement.speechEngineVoice)!=null?r:"Joanna",Engine:"standard",Text:t,TextType:"ssml",SpeechMarkTypes:["ssml"]};md().readAloudElement=e,n.synthesizeSpeech(i,(s,A)=>{if(s){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${s}`);return}if(!(A!=null&&A.AudioStream)){console.log("polly.synthesizeSpeech():",A);return}const M=new TextDecoder("utf-8").decode(new Uint8Array(A.AudioStream));md().readAloudMarks=M.split(`
|
|
|
`).map($=>$?JSON.parse($):{}),md().readAloudTokens=[];for(const $ of md().readAloudMarks)$.value&&md().readAloudTokens.push($.value);md().readAloudCurrentMark="",i.OutputFormat="mp3",i.SpeechMarkTypes=[],n.synthesizeSpeech(i,($,q)=>{if($){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${t}") error:${$}`);return}if(!(q!=null&&q.AudioStream))return;const Ae=new Uint8Array(q.AudioStream),Qe=new Blob([Ae.buffer],{type:"audio/mpeg"}),ut=URL.createObjectURL(Qe),Ft=md();Ft.readAloudAudio?Ft.readAloudAudio.pause():(Ft.readAloudAudio=new Audio,Ft.readAloudAudio.addEventListener("ended",()=>{const Nt=Ft.readAloudMathfield;Ft.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Nt?(TA(Nt),Ft.readAloudElement=null,Ft.readAloudMathfield=null,Ft.readAloudTokens=[],Ft.readAloudMarks=[],Ft.readAloudCurrentMark=""):Kh(Ft.readAloudElement)}),Ft.readAloudAudio.addEventListener("timeupdate",()=>{let Nt="";const Fr=Ft.readAloudAudio.currentTime*1e3+100;for(const In of Ft.readAloudMarks)In.time<Fr&&(Nt=In.value);Ft.readAloudCurrentMark!==Nt&&(Ft.readAloudCurrentToken=Nt,Nt&&Nt===Ft.readAloudFinalToken?Ft.readAloudAudio.pause():(Ft.readAloudCurrentMark=Nt,X0(Ft.readAloudElement,Ft.readAloudCurrentMark)))})),Ft.readAloudAudio.src=ut,Ft.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Ft.readAloudAudio.play()})})}N()||console.error('MathLive 0.98.5: this version of the MathLive library is for use in the browser. A subset of the API is available on the server side in the "mathlive-ssr" library. If using server side rendering (with React for example) you may want to do a dynamic import of the MathLive library inside a `useEffect()` call.');var yo=new WeakMap,xg=.5,pd={letterShapeStyle:"mf.letterShapeStyle = ...",horizontalSpacingScale:'Removed. Use `"thinmuskip"`, `"medmuskip"`, and `"thickmuskip"` registers ',macros:"mf.macros = ...",registers:"mf.registers = ...",backgroundColorMap:"mf.backgroundColorMap = ...",colorMap:"mf.colorMap = ...",enablePopover:"mf.popoverPolicy = ...",mathModeSpace:"mf.mathModeSpace = ...",placeholderSymbol:"mf.placeholderSymbol = ...",readOnly:"mf.readOnly = ...",removeExtraneousParentheses:"mf.removeExtraneousParentheses = ...",scriptDepth:"mf.scriptDepth = ...",smartFence:"mf.smartFence = ...",smartMode:"mf.smartMode = ...",smartSuperscript:"mf.smartSuperscript = ...",inlineShortcutTimeout:"mf.inlineShortcutTimeout = ...",inlineShortcuts:"mf.inlineShortcuts = ...",keybindings:"mf.keybindings = ...",virtualKeyboardMode:"mf.mathVirtualKeyboardPolicy = ...",customVirtualKeyboardLayers:"mathVirtualKeyboard.layers = ...",customVirtualKeyboards:"mathVirtualKeyboard.layouts = ...",keypressSound:"mathVirtualKeyboard.keypressSound = ...",keypressVibration:"mathVirtualKeyboard.keypressVibration = ...",plonkSound:"mathVirtualKeyboard.plonkSound = ...",virtualKeyboardContainer:"mathVirtualKeyboard.container = ...",virtualKeyboardLayout:"mathVirtualKeyboard.alphabeticLayout = ...",virtualKeyboardTheme:"No longer supported",virtualKeyboardToggleGlyph:"No longer supported",virtualKeyboardToolbar:"mathVirtualKeyboard.editToolbar = ...",virtualKeyboards:"Use `mathVirtualKeyboard.layouts`",speechEngine:"`MathfieldElement.speechEngine`",speechEngineRate:"`MathfieldElement.speechEngineRate`",speechEngineVoice:"`MathfieldElement.speechEngineVoice`",textToSpeechMarkup:"`MathfieldElement.textToSpeechMarkup`",textToSpeechRules:"`MathfieldElement.textToSpeechRules`",textToSpeechRulesOptions:"`MathfieldElement.textToSpeechRulesOptions`",readAloudHook:"`MathfieldElement.readAloudHook`",speakHook:"`MathfieldElement.speakHook`",computeEngine:"`MathfieldElement.computeEngine`",fontsDirectory:"`MathfieldElement.fontsDirectory`",soundsDirectory:"`MathfieldElement.soundsDirectory`",createHTML:"`MathfieldElement.createHTML`",onExport:"`MathfieldElement.onExport`",onInlineShortcut:"`MathfieldElement.onInlineShortcut`",onScrollIntoView:"`MathfieldElement.onScrollIntoView`",locale:"MathfieldElement.locale = ...",strings:"MathfieldElement.strings = ...",decimalSeparator:"MathfieldElement.decimalSeparator = ...",fractionNavigationOrder:"MathfieldElement.fractionNavigationOrder = ..."},Kl=class $d extends HTMLElement{static get formAssociated(){return hf()}static get optionsAttributes(){return{"default-mode":"string","letter-shape-style":"string","min-font-scale":"number","popover-policy":"string","math-mode-space":"string","read-only":"boolean","remove-extraneous-parentheses":"on/off","smart-fence":"on/off","smart-mode":"on/off","smart-superscript":"on/off","inline-shortcut-timeout":"string","script-depth":"string",placeholder:"string","virtual-keyboard-target-origin":"string","math-virtual-keyboard-policy":"string"}}static get observedAttributes(){return[...Object.keys(this.optionsAttributes),"contenteditable","disabled","readonly","read-only"]}static get fontsDirectory(){return this._fontsDirectory}static set fontsDirectory(t){t!==this._fontsDirectory&&(this._fontsDirectory=t,xf())}get fontsDirectory(){throw new Error("Use MathfieldElement.fontsDirectory instead")}set fontsDirectory(t){throw new Error("Use MathfieldElement.fontsDirectory instead")}static get soundsDirectory(){return this._soundsDirectory}static set soundsDirectory(t){this._soundsDirectory=t,this.audioBuffers={}}get soundsDirectory(){throw new Error("Use MathfieldElement.soundsDirectory instead")}set soundsDirectory(t){throw new Error("Use MathfieldElement.soundsDirectory instead")}static get keypressSound(){return this._keypressSound}static set keypressSound(t){var r,n,i;this.audioBuffers={},t===null?this._keypressSound={spacebar:null,return:null,delete:null,default:null}:typeof t=="string"?this._keypressSound={spacebar:t,return:t,delete:t,default:t}:typeof t=="object"&&"default"in t&&(this._keypressSound={spacebar:(r=t.spacebar)!=null?r:t.default,return:(n=t.return)!=null?n:t.default,delete:(i=t.delete)!=null?i:t.default,default:t.default})}static get plonkSound(){return this._plonkSound}static set plonkSound(t){this.audioBuffers={},this._plonkSound=t}static get audioContext(){return this._audioContext||(this._audioContext=new AudioContext),this._audioContext}static get speechEngine(){return this._speechEngine}static set speechEngine(t){this._speechEngine=t}static get speechEngineRate(){return this._speechEngineRate}static set speechEngineRate(t){this._speechEngineRate=t}static get speechEngineVoice(){return this._speechEngineVoice}static set speechEngineVoice(t){this._speechEngineVoice=t}static get textToSpeechMarkup(){return this._textToSpeechMarkup}static set textToSpeechMarkup(t){this._textToSpeechMarkup=t}static get textToSpeechRules(){return this._textToSpeechRules}static set textToSpeechRules(t){this._textToSpeechRules=t}static get textToSpeechRulesOptions(){return this._textToSpeechRulesOptions}static set textToSpeechRulesOptions(t){this._textToSpeechRulesOptions=t}static get locale(){return G.locale}static set locale(t){t==="auto"&&(t=navigator.language.slice(0,5)),G.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 G.strings}static set strings(t){G.merge(t)}get strings(){throw new Error("Use MathfieldElement.strings instead")}set strings(t){throw new Error("Use MathfieldElement.strings instead")}static get decimalSeparator(){return this._decimalSeparator}static set decimalSeparator(t){this._decimalSeparator=t,this._computeEngine&&(this._computeEngine.latexOptions.decimalMarker=this.decimalSeparator===","?"{,}":".")}get decimalSeparator(){throw new Error("Use MathfieldElement.decimalSeparator instead")}set decimalSeparator(t){throw new Error("Use MathfieldElement.decimalSeparator instead")}static get computeEngine(){var t,r;if(this._computeEngine===void 0){const n=(t=window[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:t.ComputeEngine;if(!n)return null;this._computeEngine=new n,this._computeEngine&&this.decimalSeparator===","&&(this._computeEngine.latexOptions.decimalMarker="{,}")}return(r=this._computeEngine)!=null?r:null}static set computeEngine(t){this._computeEngine=t}get computeEngine(){throw new Error("Use MathfieldElement.computeEngine instead")}set computeEngine(t){throw new Error("Use MathfieldElement.computeEngine instead")}static get isFunction(){return typeof this._isFunction!="function"?()=>!1:this._isFunction}static set isFunction(t){this._isFunction=t}static loadSound(t){return gd(this,null,function*(){delete this.audioBuffers[t];let r="";switch(t){case"keypress":r=this._keypressSound.default;break;case"return":r=this._keypressSound.return;break;case"spacebar":r=this._keypressSound.spacebar;break;case"delete":r=this._keypressSound.delete;break;case"plonk":r=this.plonkSound;break}if(typeof r!="string")return;r=r.trim();const n=this.soundsDirectory;if(!(n==null||n==="null"||r==="none"||r==="null"))try{const s=yield(yield fetch(yield ud(`${n}/${r}`))).arrayBuffer(),A=yield this.audioContext.decodeAudioData(s);this.audioBuffers[t]=A}catch(i){}})}static playSound(t){return gd(this,null,function*(){if((this.audioContext.state==="suspended"||this.audioContext.state==="interrupted")&&(yield this.audioContext.resume()),this.audioBuffers[t]||(yield this.loadSound(t)),!this.audioBuffers[t])return;const r=this.audioContext.createBufferSource();r.buffer=this.audioBuffers[t];const n=this.audioContext.createGain();n.gain.value=xg,r.connect(n).connect(this.audioContext.destination),r.start()})}constructor(t){if(super(),t){const r=[];for(const n of Object.keys(t))if(pd[n])if(pd[n].startsWith("mf."))if(pd[n].startsWith(`mf.${n}`))r.push(`Option \`${n}\` cannot be used as a constructor option. Use ${pd[n]}`);else{const i=pd[n].match(/([a-zA-Z]+) =/);r.push(`Option \`${n}\` has been renamed \`${i[1]}\``)}else r.push(`Option \`${n}\` cannot be used as a constructor option. Use ${pd[n]}`);if(r.length>0){console.group("%cMathLive 0.98.5: %cInvalid Options","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn("Some of the options passed to `new MathfieldElement(...)` are invalid. \n See https://cortexjs.io/mathlive/changelog/ for details.");for(const n of r)console.warn(n);console.groupEnd()}}if(hf()&&(this._internals=this.attachInternals(),this._internals.role="math",this._internals.ariaLabel="math input field",this._internals.ariaMultiLine="false"),this.attachShadow({mode:"open",delegatesFocus:!0}),this.shadowRoot&&"adoptedStyleSheets"in this.shadowRoot){this.shadowRoot.adoptedStyleSheets=[ss("core"),ss("mathfield"),ss("mathfield-element"),ss("ui"),ss("menu")],this.shadowRoot.appendChild(document.createElement("span"));const r=document.createElement("slot");r.style.display="none",this.shadowRoot.appendChild(r)}else this.shadowRoot.innerHTML="<style>"+Jl("core")+Jl("mathfield")+Jl("mathfield-element")+Jl("ui")+Jl("menu")+'</style><span></span><slot style="display:none"></slot>';t&&this._setOptions(t),this.shadowRoot.addEventListener("slotchange",()=>{var r;const n=this.shadowRoot.querySelector("slot:not([name])");this.value=(r=n==null?void 0:n.assignedNodes().map(i=>i.nodeType===3?i.textContent:"").join("").trim())!=null?r:""})}showMenu(t){var r,n;return(n=(r=this._mathfield)==null?void 0:r.showMenu(t))!=null?n:!1}get mathVirtualKeyboard(){throw new Error("The `mathVirtualKeyboard` property is not available on the MathfieldElement. Use `window.mathVirtualKeyboard` instead.")}onPointerDown(){window.addEventListener("pointerup",t=>{var r;t.target===this&&!((r=this._mathfield)!=null&&r.disabled)&&this.dispatchEvent(new MouseEvent("click",{altKey:t.altKey,button:t.button,buttons:t.buttons,clientX:t.clientX,clientY:t.clientY,ctrlKey:t.ctrlKey,metaKey:t.metaKey,movementX:t.movementX,movementY:t.movementY,relatedTarget:t.relatedTarget,screenX:t.screenX,screenY:t.screenY,shiftKey:t.shiftKey}))},{once:!0})}getPromptValue(t,r){var n,i;return(i=(n=this._mathfield)==null?void 0:n.getPromptValue(t,r))!=null?i:""}setPromptValue(t,r,n){var i;(i=this._mathfield)==null||i.setPromptValue(t,r,n)}getPromptRange(t){var r,n;return(n=(r=this._mathfield)==null?void 0:r.getPromptRange(t))!=null?n:null}getPrompts(t){var r,n;return(n=(r=this._mathfield)==null?void 0:r.getPrompts(t))!=null?n:[]}get form(){var t;return(t=this._internals)==null?void 0:t.form}get name(){var t;return(t=this.getAttribute("name"))!=null?t:""}get type(){return this.localName}get mode(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.model.mode)!=null?r:this.defaultMode==="text"?"text":"math"}set mode(t){var r;(r=this._mathfield)==null||r.switchMode(t)}get expression(){if(this._mathfield)return window[Symbol.for("io.cortexjs.compute-engine")]?this._mathfield.expression:(console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
|
|
|
|
|
|
Load the library, for example with:
|
|
|
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`),null)}set expression(t){var r,n;if(!this._mathfield)return;const i=(n=(r=$d.computeEngine)==null?void 0:r.box(t).latex)!=null?n:null;i!==null&&this._mathfield.setValue(i),window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
|
|
|
|
|
|
Load the library, for example with:
|
|
|
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}get errors(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.errors)!=null?r:[]}_getOptions(t){return this._mathfield?Td(this._mathfield.options,t):yo.has(this)?f({},Td(f(f({},Jf()),Xf(yo.get(this).options)),t)):null}getOptions(t){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOptions()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._mathfield?Td(this._mathfield.options,t):yo.has(this)?Td(f(f({},Jf()),Xf(yo.get(this).options)),t):null}reflectAttributes(){const t=Jf(),r=this._getOptions();Object.keys($d.optionsAttributes).forEach(n=>{const i=Ju(n);$d.optionsAttributes[n]==="on/off"?t[i]!==r[i]?this.setAttribute(n,r[i]?"on":"off"):this.removeAttribute(n):t[i]!==r[i]&&($d.optionsAttributes[n]==="boolean"?r[i]?this.setAttribute(n,""):this.removeAttribute(n):(typeof r[i]=="string"||typeof r[i]=="number")&&this.setAttribute(n,r[i].toString()))})}getOption(t){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOption()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._getOptions([t])[t]}_getOption(t){return this._getOptions([t])[t]}_setOptions(t){if(this._mathfield)this._mathfield.setOptions(t);else if(yo.has(this)){const r=f(f({},yo.get(this).options),t);yo.set(this,E(f({},yo.get(this)),{selection:{ranges:r.readOnly?[[0,0]]:[[0,-1]]},options:r}))}else yo.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:t,menuItems:void 0});this.reflectAttributes()}setOptions(t){console.group("%cMathLive 0.98.5: %cDeprecated Usage","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn(" `mf.setOptions()` is deprecated. Set the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.");for(const r of Object.keys(t))pd[r]&&console.warn(`\`mf.setOptions({${r}:...})\` -> ${pd[r]}`);console.groupEnd(),this._setOptions(t)}executeCommand(t){var r,n;return(n=(r=this._mathfield)==null?void 0:r.executeCommand(t))!=null?n:!1}getValue(t,r,n){var i,s;if(this._mathfield)return this._mathfield.model.getValue(t,r,n);if(yo.has(this)){let A,M,$;if(Uc(t)?([A,M]=t.ranges[0],$=r):Yc(t)?([A,M]=t,$=r):Tc(t)&&Tc(r)?(A=t,M=r,$=n):(A=0,M=-1,$=t),($===void 0||$==="latex")&&A===0&&M===-1)return(s=(i=yo.get(this).value)!=null?i:this.textContent)!=null?s:""}return""}setValue(t,r){if(this._mathfield&&t!==void 0){r!=null||(r={silenceNotifications:!0,mode:"math"}),this._mathfield.setValue(t,r);return}if(yo.has(this)){const i=yo.get(this).options;yo.set(this,{value:t,selection:{ranges:[[-1,-1]],direction:"forward"},options:i,menuItems:void 0});return}const n=Qf(this);yo.set(this,{value:t,selection:{ranges:[[-1,-1]],direction:"forward"},options:n,menuItems:void 0})}hasFocus(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.hasFocus())!=null?r:!1}focus(){var t;(t=this._mathfield)==null||t.focus()}blur(){var t;(t=this._mathfield)==null||t.blur()}select(){var t;(t=this._mathfield)==null||t.select()}insert(t,r){var n,i;return(i=(n=this._mathfield)==null?void 0:n.insert(t,r))!=null?i:!1}applyStyle(t,r){var n;return(n=this._mathfield)==null?void 0:n.applyStyle(t,r)}queryStyle(t){var r,n;return(n=(r=this._mathfield)==null?void 0:r.queryStyle(t))!=null?n:"none"}get caretPoint(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.getCaretPoint())!=null?r:null}set caretPoint(t){var r;t&&((r=this._mathfield)==null||r.setCaretPoint(t.x,t.y))}setCaretPoint(t,r){var n,i;return(i=(n=this._mathfield)==null?void 0:n.setCaretPoint(t,r))!=null?i:!1}offsetFromPoint(t,r,n){return this._mathfield?Df(this._mathfield,t,r,n):-1}hitboxFromOffset(t){if(!this._mathfield)return null;const r=this._mathfield.model.at(t);if(!r)return null;const n=qc(this._mathfield,r);return n?new DOMRect(n.left,n.top,n.right-n.left,n.bottom-n.top):null}resetUndo(){var t;(t=this._mathfield)==null||t.resetUndo()}canUndo(){return this._mathfield?this._mathfield.canUndo():!1}canRedo(){return this._mathfield?this._mathfield.canRedo():!1}handleEvent(t){var r,n,i,s;Co.state==="closed"&&((n=(r=this._mathfield)==null?void 0:r.menu)==null?void 0:n.state)==="closed"&&(t.type==="pointerdown"&&this.onPointerDown(),t.type==="focus"&&((i=this._mathfield)==null||i.focus()),t.type==="blur"&&((s=this._mathfield)==null||s.blur()))}connectedCallback(){var t,r,n,i;const s=window.getComputedStyle(this),A=this.shadowRoot,M=s.userSelect!=="none";if(M)A.host.addEventListener("pointerdown",this,!0);else{const Ae=A.querySelector("span");Ae.style.pointerEvents="none"}A.host.addEventListener("focus",this,!0),A.host.addEventListener("blur",this,!0),hf()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),M&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const $=A.querySelector("slot:not([name])");if($)try{this._style=$.assignedElements().filter(Ae=>Ae.tagName.toLowerCase()==="style").map(Ae=>Ae.textContent).join("")}catch(Ae){console.error(Ae)}if(this._style){const Ae=document.createElement("style");Ae.textContent=this._style,A.appendChild(Ae)}let q="";if(this.hasAttribute("value")?q=this.getAttribute("value"):q=(t=$==null?void 0:$.assignedNodes().map(Ae=>Ae.nodeType===3?Ae.textContent:"").join("").trim())!=null?t:"",this._mathfield=new bg(A.querySelector(":host > span"),E(f({},(n=(r=yo.get(this))==null?void 0:r.options)!=null?n:Qf(this)),{eventSink:this,value:q})),!yo.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const Ae of Object.keys($d.optionsAttributes))this.upgradeProperty(Ju(Ae))}if(!((i=this._mathfield)!=null&&i.model)){this._mathfield=null;return}if(yo.has(this)){const Ae=this._mathfield,Qe=yo.get(this),ut=Qe.menuItems;Ae.model.deferNotifications({content:!1,selection:!1},()=>{const Ft=Qe.value;Ft!==void 0&&Ae.setValue(Ft),Ae.model.selection=Qe.selection,yo.delete(this)}),ut&&(this.menuItems=ut)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),vA()}disconnectedCallback(){var t,r;if(this.shadowRoot.host.removeEventListener("pointerdown",this,!0),!this._mathfield)return;window.queueMicrotask(()=>this.dispatchEvent(new Event("unmount",{cancelable:!1,bubbles:!0,composed:!0})));const n=Td(this._mathfield.options,Object.keys($d.optionsAttributes).map(i=>Ju(i)));yo.set(this,{value:this._mathfield.getValue(),selection:this._mathfield.model.selection,menuItems:(r=(t=this._mathfield.menu)==null?void 0:t.menuItems)!=null?r:void 0,options:n}),this._mathfield.dispose(),this._mathfield=null}upgradeProperty(t){if(this.hasOwnProperty(t)){const r=this[t];delete this[t],(t==="readonly"||t==="read-only")&&(t="readOnly"),this[t]=r}}attributeChangedCallback(t,r,n){if(r===n)return;const i=n!==null;switch(t){case"contenteditable":xs(this._mathfield);break;case"disabled":this.disabled=i;break;case"read-only":case"readonly":this.readOnly=i;break;default:}}get readonly(){return this.hasAttribute("readonly")||this.hasAttribute("read-only")}set readonly(t){const r=!!t;r?(this.setAttribute("readonly",""),hf()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(hf()?this._internals.ariaReadOnly="false":this.removeAttribute("aria-readonly"),this.removeAttribute("readonly"),this.removeAttribute("read-only")),this._setOptions({readOnly:r})}get disabled(){return this.hasAttribute("disabled")}set disabled(t){var r;const n=!!t;n?this.setAttribute("disabled",""):this.removeAttribute("disabled"),hf()?this._internals.ariaDisabled=n?"true":"false":this.setAttribute("aria-disabled",n?"true":"false"),n&&((r=this._mathfield)!=null&&r.hasFocus)&&window.mathVirtualKeyboard.visible&&this._mathfield.executeCommand("hideVirtualKeyboard")}get value(){return this.getValue()}set value(t){this.setValue(t)}get defaultMode(){return this._getOption("defaultMode")}set defaultMode(t){this._setOptions({defaultMode:t})}get macros(){return this._getOption("macros")}set macros(t){this._setOptions({macros:t})}get registers(){const t=this;return new Proxy({},{get:(r,n)=>{if(typeof n=="string")return t._getOption("registers")[n]},set(r,n,i){return typeof n!="string"?!1:(t._setOptions({registers:E(f({},t._getOption("registers")),{[n]:i})}),!0)}})}set registers(t){this._setOptions({registers:t})}get colorMap(){return this._getOption("colorMap")}set colorMap(t){this._setOptions({colorMap:t})}get backgroundColorMap(){return this._getOption("backgroundColorMap")}set backgroundColorMap(t){this._setOptions({backgroundColorMap:t})}get letterShapeStyle(){return this._getOption("letterShapeStyle")}set letterShapeStyle(t){this._setOptions({letterShapeStyle:t})}get minFontScale(){return this._getOption("minFontScale")}set minFontScale(t){this._setOptions({minFontScale:t})}get smartMode(){return this._getOption("smartMode")}set smartMode(t){this._setOptions({smartMode:t})}get smartFence(){return this._getOption("smartFence")}set smartFence(t){this._setOptions({smartFence:t})}get smartSuperscript(){return this._getOption("smartSuperscript")}set smartSuperscript(t){this._setOptions({smartSuperscript:t})}get scriptDepth(){return this._getOption("scriptDepth")}set scriptDepth(t){this._setOptions({scriptDepth:t})}get removeExtraneousParentheses(){return this._getOption("removeExtraneousParentheses")}set removeExtraneousParentheses(t){this._setOptions({removeExtraneousParentheses:t})}get mathModeSpace(){return this._getOption("mathModeSpace")}set mathModeSpace(t){this._setOptions({mathModeSpace:t})}get placeholderSymbol(){return this._getOption("placeholderSymbol")}set placeholderSymbol(t){this._setOptions({placeholderSymbol:t})}get popoverPolicy(){return this._getOption("popoverPolicy")}set popoverPolicy(t){this._setOptions({popoverPolicy:t})}get environmentPopoverPolicy(){return this._getOption("environmentPopoverPolicy")}set environmentPopoverPolicy(t){this._setOptions({environmentPopoverPolicy:t})}get menuItems(){var t,r,n;return this._mathfield?(t=this._mathfield.menu._menuItems.map(i=>i.menuItem))!=null?t:[]:(n=(r=yo.get(this))==null?void 0:r.menuItems)!=null?n:[]}set menuItems(t){var r;if(this._mathfield){const n=(r=this._mathfield.element)==null?void 0:r.querySelector("[part=menu-toggle]");n&&(n.style.display=t.length===0?"none":""),this._mathfield.menu.menuItems=t}yo.has(this)?yo.set(this,E(f({},yo.get(this)),{menuItems:t})):yo.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:Qf(this),menuItems:t})}get mathVirtualKeyboardPolicy(){return this._getOption("mathVirtualKeyboardPolicy")}set mathVirtualKeyboardPolicy(t){this._setOptions({mathVirtualKeyboardPolicy:t})}get inlineShortcuts(){return this._getOption("inlineShortcuts")}set inlineShortcuts(t){this._setOptions({inlineShortcuts:t})}get inlineShortcutTimeout(){return this._getOption("inlineShortcutTimeout")}set inlineShortcutTimeout(t){this._setOptions({inlineShortcutTimeout:t})}get keybindings(){return this._getOption("keybindings")}set keybindings(t){this._setOptions({keybindings:t})}get onInlineShortcut(){return this._getOption("onInlineShortcut")}set onInlineShortcut(t){this._setOptions({onInlineShortcut:t})}get onScrollIntoView(){return this._getOption("onScrollIntoView")}set onScrollIntoView(t){this._setOptions({onScrollIntoView:t})}get onExport(){return this._getOption("onExport")}set onExport(t){this._setOptions({onExport:t})}get readOnly(){return this._getOption("readOnly")}set readOnly(t){this._setOptions({readOnly:t})}get isSelectionEditable(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.isSelectionEditable)!=null?r:!1}setPromptState(t,r,n){var i;(i=this._mathfield)==null||i.setPromptState(t,r,n)}getPromptState(t){var r,n;return(n=(r=this._mathfield)==null?void 0:r.getPromptState(t))!=null?n:[void 0,!0]}get virtualKeyboardTargetOrigin(){return this._getOption("virtualKeyboardTargetOrigin")}set virtualKeyboardTargetOrigin(t){this._setOptions({virtualKeyboardTargetOrigin:t})}get selection(){return this._mathfield?this._mathfield.model.selection:yo.has(this)?yo.get(this).selection:{ranges:[[0,0]],direction:"forward"}}set selection(t){if(typeof t=="number"&&(t={ranges:[[t,t]]}),this._mathfield){this._mathfield.model.selection=t,xs(this._mathfield);return}if(yo.has(this)){yo.set(this,E(f({},yo.get(this)),{selection:t}));return}yo.set(this,{value:void 0,selection:t,options:Qf(this),menuItems:void 0})}get selectionIsCollapsed(){const t=this.selection;return t.ranges.length===1&&t.ranges[0][0]===t.ranges[0][1]}get position(){return this._mathfield?this._mathfield.model.position:yo.has(this)?yo.get(this).selection.ranges[0][0]:0}set position(t){if(this._mathfield&&(this._mathfield.model.position=t,xs(this._mathfield)),yo.has(this)){yo.set(this,E(f({},yo.get(this)),{selection:{ranges:[[t,t]]}}));return}yo.set(this,{value:void 0,selection:{ranges:[[t,t]]},options:Qf(this),menuItems:void 0})}getOffsetDepth(t){var r,n;return this._mathfield?((n=(r=this._mathfield.model.at(t))==null?void 0:r.treeDepth)!=null?n:2)-2:0}get lastOffset(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.model.lastOffset)!=null?r:-1}};Kl.version="0.98.5",Kl._fontsDirectory="./fonts",Kl._soundsDirectory="./sounds",Kl.keypressVibration=!0,Kl._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},Kl._plonkSound="plonk.wav",Kl.audioBuffers={},Kl.createHTML=e=>e,Kl._speechEngineRate="100%",Kl._speechEngineVoice="Joanna",Kl._textToSpeechMarkup="",Kl._textToSpeechRules="mathlive",Kl._textToSpeechRulesOptions={},Kl.speakHook=ug,Kl.readAloudHook=wg,Kl._decimalSeparator=".",Kl.fractionNavigationOrder="numerator-denominator",Kl._isFunction=e=>{var t,r;const n=window.MathfieldElement.computeEngine;return(r=(t=n==null?void 0:n.parse(e).domain)==null?void 0:t.isFunction)!=null?r:!1};var Rf=Kl;function Ju(e){return e.replace(/[^a-zA-Z\d]+(.)/g,(t,r)=>r.toUpperCase())}function Qf(e){const t={readOnly:!1},r=Rf.optionsAttributes;return Object.keys(r).forEach(n=>{if(e.hasAttribute(n)){const i=e.getAttribute(n);n==="placeholder"?t.contentPlaceholder=i!=null?i:"":r[n]==="boolean"?t[Ju(n)]=!0:r[n]==="on/off"?i==="on"?t[Ju(n)]=!0:i==="off"?t[Ju(n)]=!1:t[Ju(n)]=void 0:r[n]==="number"?t[Ju(n)]=Number.parseFloat(i!=null?i:"0"):t[Ju(n)]=i}}),t}function hf(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var Hh=Rf,jh,zh,$h,Zh;if(N()&&!((jh=window.customElements)!=null&&jh.get("math-field"))){($h=window[zh=Symbol.for("io.cortexjs.mathlive")])!=null||(window[zh]={});const e=window[Symbol.for("io.cortexjs.mathlive")];e.version="0.98.5",window.MathfieldElement=Rf,(Zh=window.customElements)==null||Zh.define("math-field",Rf)}function Cg(e,t,r){let n=r,i=0;const s=e.length;for(;n<t.length;){const A=t[n];if(i<=0&&t.slice(n,n+s)===e)return n;A==="\\"?n++:A==="{"?i++:A==="}"&&i--,n++}return-1}function h0(e,t,r,n,i="latex"){const s=[];for(const A of e)if(A.type==="text"){const M=A.data;let $=!0,q=0,Ae;Ae=M.indexOf(t),Ae!==-1&&(q=Ae,q>0&&s.push({type:"text",data:M.slice(0,q)}),$=!1);let Qe=!1;for(;!Qe;){if($){if(Ae=M.indexOf(t,q),Ae===-1){Qe=!0;break}q!==Ae&&s.push({type:"text",data:M.slice(q,Ae)}),q=Ae}else{if(Ae=Cg(r,M,q+t.length),Ae===-1){Qe=!0;break}let ut=M.slice(q+t.length,Ae);i==="ascii-math"&&([,ut]=We(ut,{format:"ascii-math"})),s.push({type:"math",data:ut,rawData:M.slice(q,Ae+r.length),mathstyle:n}),q=Ae+r.length}$=!$}q<M.length&&s.push({type:"text",data:M.slice(q)})}else s.push(A);return s}function Vh(e,t,r){let n=[{type:"text",data:e}];return t!=null&&t.inline&&t.inline.forEach(([i,s])=>{n=h0(n,i,s,"textstyle")}),t!=null&&t.display&&t.display.forEach(([i,s])=>{n=h0(n,i,s,"displaystyle")}),r!=null&&r.inline&&r.inline.forEach(([i,s])=>{n=h0(n,i,s,"textstyle","ascii-math")}),r!=null&&r.display&&r.display.forEach(([i,s])=>{n=h0(n,i,s,"displaystyle","ascii-math")}),n}function Bg(e,t){const r=document.createElement("span");r.setAttribute("translate","no");try{const n="<math xmlns='http://www.w3.org/1998/Math/MathML'>"+t.renderToMathML(e)+"</math>";r.innerHTML=window.MathfieldElement.createHTML(n)}catch(n){console.error(`MathLive 0.98.5: Could not convert "${e}"' to MathML with ${n}`),r.textContent=e}return r.className="ML__sr-only",r}function Sg(e,t,r,n){try{const i=t.renderToMarkup(e,{mathstyle:r,format:"html"}),s=document.createElement("span");return s.dataset.latex=e,s.style.display=r==="displaystyle"?"flex":"inline-flex",s.setAttribute("aria-hidden","true"),s.setAttribute("translate","no"),s.innerHTML=window.MathfieldElement.createHTML(i),s}catch(i){if(console.error("Could not parse'"+e+"' with ",i),n)return document.createTextNode(e)}return null}function pf(e,t,r,n){var i;const s=Sg(e,r,t||"textstyle",n),A=(i=r.renderAccessibleContent)!=null?i:"";if(s&&/\b(mathml|speakable-text)\b/i.test(A)){const M=document.createElement("span");if(/\bmathml\b/i.test(A)&&r.renderToMathML&&M.append(Bg(e,r)),/\bspeakable-text\b/i.test(A)&&r.renderToSpeakableText){const $=document.createElement("span");$.setAttribute("translate","no");const q=r.renderToSpeakableText(e);$.innerHTML=window.MathfieldElement.createHTML(q),$.className="ML__sr-only",M.append($)}return M.append(s),M}return s}function Eg(e,t){var r,n,i;let s=null;if((r=t.TeX)!=null&&r.processEnvironments&&/^\s*\\begin/.test(e)){s=document.createDocumentFragment();const A=pf(e,"",t,!0);A&&s.appendChild(A)}else{if(!e.trim())return null;const A=Vh(e,(n=t.TeX)==null?void 0:n.delimiters,(i=t.asciiMath)==null?void 0:i.delimiters);if(A.length===1&&A[0].type==="text")return null;s=document.createDocumentFragment();for(const M of A)if(M.type==="text")s.appendChild(document.createTextNode(M.data));else{const $=pf(M.data,M.mathstyle==="textstyle"?"textstyle":"displaystyle",t,!0);$&&s.appendChild($)}}return s}function Wh(e,t){var r,n,i,s,A,M,$,q,Ae,Qe,ut,Ft,Nt,Fr,In,Cr;if(e.childNodes.length===1&&e.childNodes[0].nodeType===3){const an=(r=e.childNodes[0].textContent)!=null?r:"";if((n=t.TeX)!=null&&n.processEnvironments&&/^\s*\\begin/.test(an)){e.textContent="";const pn=pf(an,"",t,!0);pn&&e.append(pn);return}const Rn=Vh(an,(i=t.TeX)==null?void 0:i.delimiters,(s=t.asciiMath)==null?void 0:s.delimiters);if(Rn.length===1&&Rn[0].type==="math"){e.textContent="";const pn=pf(Rn[0].data,Rn[0].mathstyle==="textstyle"?"textstyle":"displaystyle",t,!0);pn&&e.append(pn);return}if(Rn.length===1&&Rn[0].type==="text")return}for(let an=e.childNodes.length-1;an>=0;an--){const Rn=e.childNodes[an];if(Rn.nodeType===3){const pn=Eg((A=Rn.textContent)!=null?A:"",t);pn&&(an+=pn.childNodes.length-1,Rn.replaceWith(pn))}else if(Rn.nodeType===1){const pn=Rn,Ci=Rn.nodeName.toLowerCase();if(Ci==="script"){const ji=Rn;let Oi;if((M=t.processScriptTypePattern)!=null&&M.test(ji.type))Oi=($=ji.textContent)!=null?$:"";else if((q=t.processMathJSONScriptTypePattern)!=null&&q.test(ji.type))try{Oi=(Qe=t.serializeToLatex)==null?void 0:Qe.call(t,JSON.parse((Ae=ji.textContent)!=null?Ae:""))}catch(io){console.error(io)}if(Oi){let io="textstyle";for(const Vn of ji.type.split(";")){const[yA,ku]=Vn.toLowerCase().split("=");yA.trim()==="mode"&&(io=ku.trim()==="display"?"displaystyle":"textstyle")}const zo=pf(Oi,io,t,!0);zo&&ji.parentNode.replaceChild(zo,ji)}}else if(((Ft=(ut=t.processClassPattern)==null?void 0:ut.test(pn.className))!=null?Ft:!1)||!((Fr=(Nt=t.skipTags)==null?void 0:Nt.includes(Ci))!=null&&Fr||(Cr=(In=t.ignoreClassPattern)==null?void 0:In.test(pn.className))!=null&&Cr))if(e.childNodes.length===1&&e.childNodes[0].nodeType===3){const Oi=e.textContent;e.textContent="";const io=pf(Oi!=null?Oi:"","displaystyle",t,!0);io&&e.append(io)}else Wh(pn,t)}}}var _g={skipTags:["math-field","noscript","style","textarea","pre","code","annotation","annotation-xml"],processScriptType:"math/tex",processMathJSONScriptType:"math/json",ignoreClass:"tex2jax_ignore",processClass:"tex2jax_process",renderAccessibleContent:"mathml",asciiMath:{delimiters:{inline:[["`","`"]]}},TeX:{processEnvironments:!0,delimiters:{inline:[["\\(","\\)"]],display:[["$$","$$"],["\\[","\\]"]]}}};function Fg(e,t){var r,n,i,s;try{const A=f(f({},_g),t);A.ignoreClassPattern=new RegExp((r=A.ignoreClass)!=null?r:""),A.processClassPattern=new RegExp((n=A.processClass)!=null?n:""),A.processScriptTypePattern=new RegExp((i=A.processScriptType)!=null?i:""),A.processMathJSONScriptTypePattern=new RegExp((s=A.processMathJSONScriptType)!=null?s:""),vA(),lc("core"),Wh(e,A)}catch(A){A instanceof Error?console.error("renderMathInElement(): "+A.message):console.error("renderMathInElement(): Could not render math for element",e)}}function Ig(e,t){const r=fd.singleton;return r?(r.show(),Dd(),r.currentLayer=t,r.render(),r.focus(),!0):!1}function Mg(){const e=window.mathVirtualKeyboard;return e.visible?e.hide({animate:!0}):e.show({animate:!0}),!1}_l({switchKeyboardLayer:Ig,toggleVirtualKeyboard:Mg,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function md(){var e,t;return(t=globalThis[e=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[e]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function Og(){return console.warn("%cMathLive 0.98.5: %cmakeSharedVirtualKeyboard() is deprecated. \n Use `window.mathVirtualKeyboard` to access the virtual keyboard instance.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),window.mathVirtualKeyboard}function Tg(e){kg(document.body,e)}function Lg(e){if(typeof e=="string"){const t=document.getElementById(e);if(t===null)throw new Error(`The element with ID "${e}" could not be found.`);return t}return typeof e=="string"?null:e}function kg(e,t){var r,n,i,s;const A=Lg(e);if(!A)return;const M=t!=null?t:{};(r=M.renderToMarkup)!=null||(M.renderToMarkup=Fl),(n=M.renderToMathML)!=null||(M.renderToMathML=zm),(i=M.renderToSpeakableText)!=null||(M.renderToSpeakableText=$m),(s=M.serializeToLatex)!=null||(M.serializeToLatex=Zm),Fg(A,M)}var Ug={mathlive:"0.98.5"}}}]);
|
|
|
}()); |