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

1353 lines
2.1 MiB

This file contains invisible Unicode characters!

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

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

!(function(){var T1=Object.defineProperty,k1=Object.defineProperties;var M1=Object.getOwnPropertyDescriptors;var jg=Object.getOwnPropertySymbols;var Lv=Object.prototype.hasOwnProperty,_v=Object.prototype.propertyIsEnumerable;var S0=(Jn,kt,ae)=>kt in Jn?T1(Jn,kt,{enumerable:!0,configurable:!0,writable:!0,value:ae}):Jn[kt]=ae,wf=(Jn,kt)=>{for(var ae in kt||(kt={}))Lv.call(kt,ae)&&S0(Jn,ae,kt[ae]);if(jg)for(var ae of jg(kt))_v.call(kt,ae)&&S0(Jn,ae,kt[ae]);return Jn},F0=(Jn,kt)=>k1(Jn,M1(kt));var Nv=(Jn,kt)=>{var ae={};for(var x in Jn)Lv.call(Jn,x)&&kt.indexOf(x)<0&&(ae[x]=Jn[x]);if(Jn!=null&&jg)for(var x of jg(Jn))kt.indexOf(x)<0&&_v.call(Jn,x)&&(ae[x]=Jn[x]);return ae};var Tl=(Jn,kt,ae)=>S0(Jn,typeof kt!="symbol"?kt+"":kt,ae);(self.webpackChunk=self.webpackChunk||[]).push([[342],{27812:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return he}});var x=ae(54476),dt=ae(59301),Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},Je=Ie,ze=ae(7657),Le=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=dt.forwardRef(Le),he=Ue},89489:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return he}});var x=ae(54476),dt=ae(59301),Ie={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"},Je=Ie,ze=ae(7657),Le=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=dt.forwardRef(Le),he=Ue},59477:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return he}});var x=ae(54476),dt=ae(59301),Ie={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"},Je=Ie,ze=ae(7657),Le=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=dt.forwardRef(Le),he=Ue},40001:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return he}});var x=ae(54476),dt=ae(59301),Ie={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"},Je=Ie,ze=ae(7657),Le=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=dt.forwardRef(Le),he=Ue},26227:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return he}});var x=ae(54476),dt=ae(59301),Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Je=Ie,ze=ae(7657),Le=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=dt.forwardRef(Le),he=Ue},49198:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return he}});var x=ae(54476),dt=ae(59301),Ie={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"},Je=Ie,ze=ae(7657),Le=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=dt.forwardRef(Le),he=Ue},87169:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return he}});var x=ae(54476),dt=ae(59301),Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Je=Ie,ze=ae(7657),Le=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=dt.forwardRef(Le),he=Ue},73331:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return he}});var x=ae(54476),dt=ae(59301),Ie={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"},Je=Ie,ze=ae(7657),Le=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=dt.forwardRef(Le),he=Ue},15277:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return he}});var x=ae(54476),dt=ae(59301),Ie={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"},Je=Ie,ze=ae(7657),Le=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=dt.forwardRef(Le),he=Ue},52671:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return he}});var x=ae(54476),dt=ae(59301),Ie={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"},Je=Ie,ze=ae(7657),Le=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=dt.forwardRef(Le),he=Ue},8657:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return he}});var x=ae(54476),dt=ae(59301),Ie={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"},Je=Ie,ze=ae(7657),Le=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=dt.forwardRef(Le),he=Ue},56082:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return he}});var x=ae(54476),dt=ae(59301),Ie={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"},Je=Ie,ze=ae(7657),Le=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=dt.forwardRef(Le),he=Ue},33853:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return he}});var x=ae(54476),dt=ae(59301),Ie={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"},Je=Ie,ze=ae(7657),Le=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=dt.forwardRef(Le),he=Ue},15075:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return he}});var x=ae(54476),dt=ae(59301),Ie={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"},Je=Ie,ze=ae(7657),Le=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=dt.forwardRef(Le),he=Ue},43531:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return he}});var x=ae(54476),dt=ae(59301),Ie={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"},Je=Ie,ze=ae(7657),Le=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=dt.forwardRef(Le),he=Ue},61485:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return he}});var x=ae(54476),dt=ae(59301),Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Je=Ie,ze=ae(7657),Le=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=dt.forwardRef(Le),he=Ue},47472:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return he}});var x=ae(54476),dt=ae(59301),Ie={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"},Je=Ie,ze=ae(7657),Le=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=dt.forwardRef(Le),he=Ue},95869:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return he}});var x=ae(54476),dt=ae(59301),Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z"}}]},name:"solution",theme:"outlined"},Je=Ie,ze=ae(7657),Le=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=dt.forwardRef(Le),he=Ue},87395:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return he}});var x=ae(54476),dt=ae(59301),Ie={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"},Je=Ie,ze=ae(7657),Le=function(oe,Oe){return dt.createElement(ze.Z,(0,x.Z)({},oe,{ref:Oe,icon:Je}))},Ue=dt.forwardRef(Le),he=Ue},11965:function(){"use strict"},67977:function(){"use strict"},43701:function(Jn,kt){"use strict";kt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},91989:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Jn={},kt="5.0",ae={},x=null,dt=!1,Ie=!1,Je=null,ze=!1,Le=null,Ue=null,he=0;he<arguments.length;he++){var xe=arguments[he];if(xe!==null)switch(typeof xe){case"number":kt=xe.toFixed(1);break;case"string":xe.match(new RegExp("^[0-9]\\.[0-9]+$"))?kt=xe:Je=xe;break;case"object":typeof xe.is3D!="undefined"?x=xe:ae=xe;break;case"boolean":dt=xe,Ie=!0;break}}x===null&&(x={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ae.material_id!==void 0&&!Ie&&(dt=!0)),Je!==null&&ae.id===void 0&&(ae.id=Je);var oe="",Oe="",ve=!1,Me=null,Se=null,Te=null,we=!1,Ce=null,Ee=null,ke=null,Ke=null,Qe=null;ae.height!==void 0&&(ae.height=Math.round(ae.height)),ae.width!==void 0&&(ae.width=Math.round(ae.width));var je=function(tt){return parseFloat(tt)>4?parseFloat(tt):5};Jn.setHTML5Codebase=function(tt,Ot){Ue=tt,ut(tt,Ot)},Jn.setJavaCodebase=Jn.setJavaCodebaseVersion=Jn.isCompiledInstalled=Jn.setPreCompiledScriptPath=Jn.setPreCompiledResourcePath=function(){},Jn.setHTML5CodebaseVersion=function(tt,Ot){var Rt=parseFloat(tt);if(Rt!==NaN&&Rt<5){console.log("The GeoGebra HTML5 codebase version "+Rt+" is deprecated. Using version latest instead.");return}Le=tt,De(tt,Ot)},Jn.getHTML5CodebaseVersion=function(){return Se},Jn.getParameters=function(){return ae},Jn.setFontsCSSURL=function(tt){Ke=tt},Jn.setGiacJSURL=function(tt){},Jn.setJNLPFile=function(tt){oe=tt},Jn.setJNLPBaseDir=function(tt){},Jn.inject=function(){function tt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ot="auto",Rt=ae.id,fn,Tt=!1,mn=0;mn<arguments.length;mn++){var Dt=arguments[mn];typeof Dt=="string"?(Dt=Dt.toLowerCase(),Dt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ot=Dt:Rt=arguments[mn]):typeof Dt=="boolean"?Tt=Dt:Dt instanceof HTMLElement&&(fn=Dt)}En();function En(){if(!ze){setTimeout(En,200);return}Ot=Bt(Ot);var rn=fn||document.getElementById(Rt);if(!rn){console.log("possibly bug on ajax loading? ");return}if(Jn.removeExistingApplet(rn,!1),ae.width===void 0&&rn.clientWidth&&(ae.width=rn.clientWidth),ae.height===void 0&&rn.clientHeight&&(ae.height=rn.clientHeight),!(ae.width&&ae.height)&&Ot==="html5"&&(delete ae.width,delete ae.height),Me=Ot,Ot==="screenshot")_e(rn,ae);else{var de=!1;ae.hasOwnProperty("playButton")&&ae.playButton||ae.hasOwnProperty("clickToLoad")&&ae.clickToLoad?de=!0:ae.hasOwnProperty("playButtonAutoDecide")&&ae.playButtonAutoDecide&&(de=(!qe()||tt())&&Ve()),de?(Me="screenshot",Nt(rn,ae,Tt,Ot)):ht(rn,ae,Tt)}}};function qe(){try{return window.self!==window.top}catch(tt){return!0}}function Ve(){return ae.hasOwnProperty("screenshotGenerator")&&ae.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Jn.getViews=function(){return x},Jn.isJavaInstalled=function(){return!1};var ct=function(tt){var Ot=function(mn){var Dt=JSON.parse(mn),En=function(pe){return pe.type=="G"||pe.type=="E"},rn=Dt.elements?Dt.elements.filter(En)[0]:Dt;if(!rn||!rn.url){Rt();return}ae.fileName=rn.url,ot(rn.settings||{}),x.is3D=!0;var de="https://www.geogebra.org/images/";Jn.setPreviewImage(Ce||rn.previewUrl,de+"GeoGebra_loading.png",de+"applet_play.png"),tt()},Rt=function(){ae.onError&&ae.onError(),$t("Error: Fetching material (id "+ae.material_id+") failed.",ae)},fn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Tt="/materials/"+ae.material_id+"?scope=basic";pt("https://"+fn+"/api/proxy.php?path="+encodeURIComponent(Tt),Ot,Rt)};function ot(tt){var Ot=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Rt){tt[Rt]=!!tt[Rt]}),Ot.forEach(function(Rt){ae[Rt]===void 0&&tt[Rt]!==void 0&&(ae[Rt]=tt[Rt])}),ae.showToolBarHelp===void 0&&(ae.showToolBarHelp=ae.showToolBar)}function pt(tt,Ot,Rt){var fn=new XMLHttpRequest;fn.open("GET",tt),fn.onload=function(){Ot(fn.responseText)},fn.onerror=Rt,fn.send()}Jn.isHTML5Installed=function(){return!0},Jn.getLoadedAppletType=function(){return Me},Jn.setPreviewImage=function(tt,Ot,Rt){Ce=tt,Ee=Ot,ke=Rt},Jn.removeExistingApplet=function(tt,Ot){var Rt;typeof tt=="string"&&(tt=document.getElementById(tt)),Me=null;var fn=null;for(Rt=0;Rt<tt.childNodes.length;Rt++){var Tt=tt.childNodes[Rt],mn=Tt.className;mn==="applet_screenshot"?Ot?(Tt.style.display="block",Me="screenshot"):Tt.style.display="none":mn!=="applet_scaler prerender"&&(tt.removeChild(Tt),fn=mn&&mn.indexOf("appletParameters")!=-1?Tt.id:null,Rt--)}var Dt=ae.id!==void 0?ae.id:fn,En=window[Dt];En&&typeof En.getBase64=="function"&&(En.remove(),window[Dt]=null)},Jn.refreshHitPoints=function(){if(je(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var tt=Jn.getAppletObject();return tt&&typeof tt.recalculateEnvironments=="function"?(tt.recalculateEnvironments(),!0):!1},Jn.startAnimation=function(){var tt=Jn.getAppletObject();return tt&&typeof tt.startAnimation=="function"?(tt.startAnimation(),!0):!1},Jn.stopAnimation=function(){var tt=Jn.getAppletObject();return tt&&typeof tt.stopAnimation=="function"?(tt.stopAnimation(),!0):!1},Jn.getAppletObject=function(){var tt=ae.id!==void 0?ae.id:"ggbApplet";return window[tt]},Jn.resize=function(){};var bt=function(tt,Ot,Rt){var fn=document.createElement("param");fn.setAttribute("name",Ot),fn.setAttribute("value",Rt),tt.appendChild(fn)},He=function(tt){return tt&&tt!=="false"},ht=function(tt,Ot,Rt){je(Se)<=4.2&&(Rt=!0);var fn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Se||ggbHTML5LoadedCodebaseIsWebSimple&&!we)&&(fn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Tt=document.createElement("div");Tt.classList.add("appletParameters","notranslate");var mn=Ot.width,Dt=Ot.height;if(Ot.disableAutoScale=Ot.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ot.disableAutoScale,Ot.width!==void 0)if(je(Se)<=4.4)He(Ot.showToolBar)&&(Ot.height-=7),He(Ot.showAlgebraInput)&&(Ot.height-=37),Ot.width<605&&He(Ot.showToolBar)&&(Ot.width=605,mn=605);else{var En=100;(He(Ot.showToolBar)||He(Ot.showMenuBar))&&(Ot.hasOwnProperty("customToolBar")&&(Ot.customToolbar=Ot.customToolBar),En=He(Ot.showMenuBar)?245:155),mn<En&&(Ot.width=En,mn=En)}Tt.style.border="none",Tt.style.display="inline-block";for(var rn in Ot)Ot.hasOwnProperty(rn)&&rn!=="appletOnLoad"&&Tt.setAttribute("data-param-"+rn,Ot[rn]);Ke&&Tt.setAttribute("data-param-fontscssurl",Ke),Jn.resize=function(){GGBAppletUtils.responsiveResize(tt,Ot)},window.addEventListener("resize",function(Lt){Jn.resize()});var de=typeof Ot.appletOnLoad=="function"?Ot.appletOnLoad:function(){};if(!Rt&&Ot.width!==void 0){Ot.hasOwnProperty("showSplash")||Tt.setAttribute("data-param-showSplash","false");var pe=tt.querySelector(".applet_scaler.prerender"),ie=pe!==null;if(ie)var ee=pe.querySelector(".ggb_preview");else{var ee=at(mn,Dt,Ot.borderColor,!1);pe=document.createElement("div"),pe.className="applet_scaler",pe.style.position="relative",pe.style.display="block",pe.style.width=mn+"px",pe.style.height=Dt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(pe,"66%"),je(Se)>=5?(Ot.appletOnLoad=function(Lt){var jt=tt.querySelector(".ggb_preview");jt&&jt.parentNode.removeChild(jt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(pe),window.GGBT_wsf_view&&$(window).trigger("resize"),de(Lt)},ie||pe.appendChild(ee)):Tt.appendChild(ee),pe.appendChild(Tt),ie||tt.appendChild(pe),setTimeout(function(){Jn.resize()},1)}else{var se=document.createElement("div");se.className="applet_scaler",se.style.position="relative",se.style.display="block",se.appendChild(Tt),tt.appendChild(se),Ot.appletOnLoad=function(Lt){Jn.resize(),de(Lt)}}function le(Lt,jt){jt&&typeof jt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Lt,jt.appletOnLoad):renderGGBElement(Lt),$t("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",jt)}function Be(Lt,jt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Lt,params:jt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ct){le(Ct.article,Ct.params)}),html5AppletsToProcess=null)},je(Se)<5&&(Lt.className+=" geogebraweb")):le(Lt,jt)}if(fn){scriptLoadStarted=!0;for(var We=0;We<Tt.childNodes.length;We++){var st=Tt.childNodes[We].tagName;st==="TABLE"&&(Tt.removeChild(Tt.childNodes[We]),We--)}if(ggbHTML5LoadedScript!==null){var mt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');mt!=null&&mt.parentNode.removeChild(mt)}var gt=document.createElement("script"),Et=function(){Be(Tt,Ot)};gt.src=Oe+Te,ggbHTML5LoadedCodebaseIsWebSimple=we,ggbHTML5LoadedCodebaseVersion=Se,ggbHTML5LoadedScript=gt.src,$t("GeoGebra HTML5 codebase loaded: '"+Oe+"'.",Ot),!Ue&&(!Le||Le=="5.0")?(we?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Et()):Oe.requirejs?__webpack_require__.e(4469).then(function(){var Lt=[__webpack_require__(84469)];Et.apply(null,Lt)}.bind(this)).catch(__webpack_require__.oe):(gt.onload=Et,tt.appendChild(gt))}else Be(Tt,Ot);Ot.height=Dt,Ot.width=mn},_e=function(tt,Ot,Rt){var fn=at(Ot.width,Ot.height,Ot.borderColor,Rt),Tt=document.createElement("div");Tt.style.position="relative",Tt.style.display="block",Tt.style.width=Ot.width+"px",Tt.style.height=Ot.height+"px",Tt.className="applet_screenshot applet_scaler"+(Rt?" applet_screenshot_play":""),Tt.appendChild(fn);var mn=GGBAppletUtils.getScale(Ot,tt,Rt);Rt?(tt.appendChild(it()),window.GGBT_wsf_view||(tt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Tt,"66%"),tt.appendChild(Tt),mn!==1&&!isNaN(mn)&&(GGBAppletUtils.scaleElement(Tt,mn),Tt.style.width=Ot.width+"px",Tt.style.height=Ot.height+"px",Tt.parentNode.style.width=Ot.width*mn+"px",Tt.parentNode.style.height=Ot.height*mn+"px"),Jn.resize=function(){Re(tt,fn,Tt,Rt)},window.addEventListener("resize",function(Dt){Jn.resize()}),Jn.resize()};function Re(tt,Ot,Rt,fn){if(tt.contains(Ot)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(tt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(tt)}var Tt=GGBAppletUtils.getScale(ae,tt,fn);Rt.parentNode!==null&&(!isNaN(Tt)&&Tt!==1?(GGBAppletUtils.scaleElement(Rt,Tt),Rt.parentNode.style.width=ae.width*Tt+"px",Rt.parentNode.style.height=ae.height*Tt+"px"):(GGBAppletUtils.scaleElement(Rt,1),Rt.parentNode.style.width=ae.width+"px",Rt.parentNode.style.height=ae.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(tt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Jn.onExitFullscreen=function(tt,Ot){Ot.appendChild(tt)};var Nt=function(tt,Ot,Rt,fn){_e(tt,Ot,!0);for(var Tt=function(){var En=[];for(Dt=0;Dt<tt.childNodes.length;Dt++)En.push(tt.childNodes[Dt]);if(window.GGBT_wsf_view){var rn=window.GGBT_wsf_view.renderFullScreen(tt,Ot.id),de=document.getElementById("fullscreencontainer"),pe=jQuery(tt).find(".fullscreencontent");pe.length>0?(rn.remove(),pe.attr("id","fullscreencontent").show(),jQuery(de).append(pe),window.dispatchEvent(new Event("resize"))):ht(rn,Ot,!1),window.GGBT_wsf_view.launchFullScreen(de)}else Me=fn,ht(tt,Ot,!1);if(!window.GGBT_wsf_view)for(Dt=0;Dt<En.length;Dt++)tt.removeChild(En[Dt])},mn=tt.getElementsByClassName("ggb_preview_play"),Dt=0;Dt<mn.length;Dt++)mn[Dt].addEventListener("click",Tt,!1),mn[Dt].addEventListener("ontouchstart",Tt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(tt),Ve()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},it=function(){var tt=document.createElement("div");if(tt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ot='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Rt=document.createElement("style");Rt.styleSheet?Rt.styleSheet.cssText=Ot:Rt.appendChild(document.createTextNode(Ot)),document.getElementsByTagName("head")[0].appendChild(Rt)}return tt},at=function(tt,Ot,Rt,fn){var Tt=document.createElement("div");Tt.className="ggb_preview",Tt.style.position="absolute",Tt.style.zIndex="90",Tt.style.width=tt-2+"px",Tt.style.height=Ot-2+"px",Tt.style.top="0px",Tt.style.left="0px",Tt.style.overflow="hidden",Tt.style.backgroundColor="white";var mn="lightgrey";Rt!==void 0&&(Rt==="none"?mn="transparent":mn=Rt),Tt.style.border="1px solid "+mn;var Dt=document.createElement("img");if(Dt.style.position="relative",Dt.style.zIndex="1000",Dt.style.top="-1px",Dt.style.left="-1px",Ce!==null&&Dt.setAttribute("src",Ce),Dt.style.opacity=.7,Ee!==null){var En,rn,de;if(!fn){En=document.createElement("img"),En.style.position="absolute",En.style.zIndex="1001",En.style.opacity=1,Dt.style.opacity=.3,rn=360,rn>tt/4*3&&(rn=tt/4*3),de=rn/5.8,En.setAttribute("src",Ee),En.setAttribute("width",rn),En.setAttribute("height",de);var pe=(tt-rn)/2,ie=(Ot-de)/2;En.style.left=pe+"px",En.style.top=ie+"px",Tt.appendChild(En)}}return Tt.appendChild(Dt),Tt},Bt=function(tt){return tt=tt.toLowerCase(),tt==="html5"||tt==="screenshot"?tt:"html5"},Ze=["web","webSimple","web3d","tablet","tablet3d","phone"],De=function(tt,Ot){if(Se=tt,Ot){ut(Se,!0);return}var Rt=!dt;if(Rt){var fn=je(Se);!isNaN(fn)&&fn<4.4&&(Rt=!1)}var Tt,mn;window.location.protocol.substr(0,4)==="http"?Tt=window.location.protocol:Tt="http:";var Dt=Se.indexOf("//");Dt>0?mn=Se:Dt===0?mn=Tt+Se:mn="https://www.geogebra.org/apps/5.2.814.0/";for(var En in Ze)if(Se.slice(Ze[En].length*-1)===Ze[En]||Se.slice((Ze[En].length+1)*-1)===Ze[En]+"/"){ut(mn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Rt&&!x.is3D&&!x.AV&&!x.SV&&!x.CV&&!x.EV2&&!x.CP&&!x.PC&&!x.DA&&!x.FI&&!x.PV&&!He(ae.showToolBar)&&!He(ae.showMenuBar)&&!He(ae.showAlgebraInput)&&!He(ae.enableRightClick)&&(!ae.appName||ae.appName=="classic")?mn+="webSimple/":mn+="web3d/",ut(mn,!1)},ut=function(tt,Ot){if(tt.requirejs){Oe=tt;return}tt.slice(-1)!=="/"&&(tt+="/"),Oe=tt,Ot===null&&(Ot=tt.indexOf("http")===-1),ve=Ot,Te="web.nocache.js",we=!1;var Rt=Oe.split("/");Rt.length>1&&(!Ot&&Rt[Rt.length-2]==="webSimple"?(Te="webSimple.nocache.js",we=!0):Ze.indexOf(Rt[Rt.length-2])>=0&&(Te=Rt[Rt.length-2]+".nocache.js")),Rt=tt.split("/"),Se=Rt[Rt.length-3],Se.substr(0,4)==="test"?Se=Se.substr(4,1)+"."+Se.substr(5,1):(Se.substr(0,3)==="war"||Se.substr(0,4)==="beta")&&(Se="5.0");var fn=parseFloat(Se);fn!==NaN&&fn<5&&tt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+fn+" is deprecated. Using version latest instead."),De("5.0",Ot))},$t=function(tt,Ot){window.console&&window.console.log&&(!Ot||typeof Ot.showLogging=="undefined"||Ot.showLogging&&Ot.showLogging!=="false")&&console.log(tt)};ae.material_id!==void 0?ct(zt):zt();function zt(){var tt=kt;Le!==null?tt=Le:parseFloat(tt)<5&&(tt="5.0"),De(tt,!1),Ue!==null&&ut(Ue,ve),ze=!0}return Jn},GGBAppletUtils=function(){"use strict";function Jn(){return window.GGBT_wsf_edit!==void 0}function kt(ze,Le){Le!=1?(ze.style.transformOrigin="0% 0% 0px",ze.style.webkitTransformOrigin="0% 0% 0px",ze.style.transform="scale("+Le+","+Le+")",ze.style.webkitTransform="scale("+Le+","+Le+")",ze.style.maxWidth="initial",ze.querySelector(".ggb_preview")!==null&&(ze.querySelector(".ggb_preview").style.maxWidth="initial"),ze.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ze.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ze.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ze.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ze.style.transform="none",ze.style.webkitTransform="none")}function ae(ze,Le,Ue,he,xe,oe){var Oe=null;if(oe!=null&&oe!="")for(var ve=ze.parentNode;ve!=null;)if((" "+ve.className+" ").indexOf(" "+oe+" ")>-1){Oe=ve;break}else ve=ve.parentNode;var Me=0,Se=0,Te=0,we=0,Ce=0,Ee=0,ke=0;if(Oe)Me=Oe.offsetWidth,Se=Math.max(he?Oe.offsetWidth:0,Oe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Me=Math.min(window.innerWidth,document.documentElement.clientWidth),Se=Math.min(window.innerHeight,document.documentElement.clientHeight),Te=Me):(Me=window.innerWidth,Se=window.innerHeight,Te=window.innerWidth),ze){var Ke=ze.getBoundingClientRect();Ke.left>0&&Ke.left<=Me&&(xe===void 0||!xe)&&(document.dir==="rtl"?(Ce=Me-Ke.width-Ke.left,Ee=Te<=480?10:30):(Ee=Ke.left,Ce=Te<=480?10:30),we=Ee+Ce)}if(ze&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Qe=ze.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(we=40,ke=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(we=0,ke=40)}}return ze&&((Ue===void 0||!Ue)&&Le>0&&Le+we<Me?Me=Le:Me-=we,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ue===void 0||!Ue)&&(Se-=ke)),{width:Me,height:Se}}function x(ze,Le,Ue,he,xe){if(ze.isScreenshoGenerator)return 1;var oe=he!==void 0&&he,Oe=ze.noScaleMargin!=null&&ze.noScaleMargin,ve=function(Qe){return Qe&&Qe!=="false"},Me=ve(ze.autoHeight),Se=ae(Le,ze.width,Ue,Me,oe&&window.GGBT_wsf_view||Oe,xe),Te=parseInt(Se.width),we=ze.width,Ce=ze.height;if(we===void 0){var Ee=Le.querySelector(".appletParameters");Ee&&(we=Ee.offsetWidth,Ce=Ee.offsetHeight)}var ke=Te/we,Ke=oe?1:Se.height/Ce;return Ue!==void 0&&!Ue&&(ke=Math.min(1,ke),Ke=Math.min(1,Ke)),Math.min(ke,Ke)}function dt(ze,Le,Ue){var he=1,xe,oe=!1;if(ze.hasOwnProperty("allowUpscale")&&(oe=ze.allowUpscale),ze.hasOwnProperty("scale")&&(he=parseFloat(ze.scale),(isNaN(he)||he===null||he===0)&&(he=1),he>1&&(oe=!0)),Le&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(oe=!0),!(ze.hasOwnProperty("disableAutoScale")&&ze.disableAutoScale))xe=x(ze,Le,oe,Ue,ze.scaleContainerClass);else return he;return oe&&(!ze.hasOwnProperty("scale")||he===1)?xe:Math.min(he,xe)}function Ie(ze){var Le=Math.min(window.innerWidth,document.documentElement.clientWidth),Ue=Math.min(window.innerHeight,document.documentElement.clientHeight),he=ze.getBoundingClientRect(),xe=(Le-he.width)/2,oe=(Ue-he.height)/2;oe<0&&(oe=0),ze.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(xe<40?ze.style.left="40px":ze.style.left=xe+"px",ze.style.top=oe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(oe<40?ze.style.top="40px":ze.style.top=oe+"px",ze.style.left=xe+"px")}function Je(ze,Le){var Ue=ze.querySelector(".appletParameters");if(Ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Le.id!==Ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ze)}if(Ue.parentElement&&/fullscreen/.test(Ue.parentElement.className))return;var he=dt(Le,ze);Jn()&&Ue.setAttribute("data-param-scale",he);for(var xe=null,oe=0;oe<ze.childNodes.length;oe++)if(ze.childNodes[oe].className!==void 0&&ze.childNodes[oe].className.match(/^applet_scaler/)){xe=ze.childNodes[oe];break}if(xe!==null&&xe.querySelector(".noscale")!==null)return;var Oe=Le.id!==void 0?Le.id:"ggbApplet",ve=window[Oe];(ve==null||!ve.recalculateEnvironments)&&xe!==null&&!xe.className.match(/fullscreen/)&&(xe.parentNode.style.transform="",!isNaN(he)&&he!==1?(xe.parentNode.style.width=Le.width*he+"px",xe.parentNode.style.height=Le.height*he+"px",kt(xe,he)):(kt(xe,1),xe.parentNode.style.width=Le.width+"px",xe.parentNode.style.height=Le.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ie(ze),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ue).parents(".content-added-content"))}}return{responsiveResize:Je,isFlexibleWorksheetEditor:Jn,positionCenter:Ie,getScale:dt,scaleElement:kt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Jn=n.location.search;return Jn.indexOf(J)!=-1||Jn.indexOf(K)!=-1}function q(Jn,kt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Jn){var kt=s[L].bindings;s[L].bindings=function(){for(var ae=kt?kt():{},x=Jn[webModule.__softPermutationId],dt=O;dt<x.length;dt++){var Ie=x[dt];ae[Ie[O]]=Ie[P]}return ae}};var t;function u(){return v(),t}function v(){if(!t){var Jn=o.createElement(Q);if(Jn.id=L,Jn.style.cssText=R+S,Jn.tabIndex=-1,o.body.appendChild(Jn),t=Jn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var kt=document.compatMode==U?V:W;t.write(kt+X),t.close()}}}function w(Jn){function kt(x){function dt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ie=dt();if(Ie){x();return}function Je(){if(!Ie){if(!dt())return;Ie=!0,x(),o.removeEventListener&&o.removeEventListener(Z,Je,!1),ze&&clearInterval(ze)}}o.addEventListener&&o.addEventListener(Z,Je,!1);var ze=setInterval(function(){Je()},$)}function ae(x){var dt=u(),Ie=dt.body,Je=dt.createElement(_);Je.language=ab,Je.crossOrigin=W,Je.src=x,webModule.__errFn&&(Je.onerror=function(){webModule.__errFn(L,new Error(bb+x))}),Ie.appendChild(Je)}kt(function(){ae(Jn)})}webModule.__startLoadingFragment=function(Jn){return C(Jn)},webModule.__installRunAsyncCode=function(Jn){var kt=u(),ae=kt.body,x=kt.createElement(_);x.language=ab,x.text=Jn,ae.appendChild(x),ae.removeChild(x)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Jn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Jn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Jn){var kt=c[Jn];return kt==null?null:kt},r=d,webModule.__errFn=e}function B(){function Jn(ze){var Le=ze.lastIndexOf(rb);Le==-1&&(Le=ze.length);var Ue=ze.indexOf(sb);Ue==-1&&(Ue=ze.length);var he=ze.lastIndexOf(tb,Math.min(Ue,Le));return he>=O?ze.substring(O,he+P):W}function kt(ze){if(!ze.match(/^\w+:\/\//)){var Le=o.createElement(ub);Le.src=ze+vb,ze=Jn(Le.src)}return ze}function ae(){var ze=__gwt_getMetaProperty(wb);return ze!=null?ze:W}function x(){for(var ze=o.getElementsByTagName(_),Le=O;Le<ze.length;++Le)if(ze[Le].src.indexOf(xb)!=-1)return Jn(ze[Le].src);return W}function dt(){var ze=o.getElementsByTagName(yb);return ze.length>O?ze[ze.length-P].href:W}function Ie(){var ze=o.location;return ze.href==ze.protocol+zb+ze.host+ze.pathname+ze.search+ze.hash}var Je=ae();return Je==W&&(Je=x()),Je==W&&(Je=dt()),Je==W&&Ie()&&(Je=Jn(o.location.href)),Je=kt(Je),Je}function C(Jn){return Jn.match(/^\//)||Jn.match(/^[a-zA-Z]+:\/\//)?Jn:webModule.__moduleBase+Jn}function D(){var Jn=[],kt=O,ae=[],x=[];function dt(ze){var Le=x[ze](),Ue=ae[ze];if(Le in Ue)return Le;var he=[];for(var xe in Ue)he[Ue[xe]]=xe;throw r&&r(ze,he,Le),null}if(__gwt_isKnownPropertyValue=function(ze,Le){return Le in ae[ze]},webModule.__getPropMap=function(){var ze={};for(var Le in ae)ae.hasOwnProperty(Le)&&(ze[Le]=dt(Le));return ze},webModule.__computePropValue=dt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ie;try{Ie=Cb;var Je=Ie.indexOf(Db);Je!=-1&&(kt=parseInt(Ie.substring(Je+P),$),Ie=Ie.substring(O,Je))}catch(ze){}return webModule.__softPermutationId=kt,C(Ie+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},35976:function(Jn,kt,ae){"use strict";ae.d(kt,{Ax:function(){return Je},Ds:function(){return ze},KI:function(){return Ue},SI:function(){return Ie},f1:function(){return dt}});var x=ae(21600);function dt(he){let xe=!0;if(he.length>0){for(let oe=0;oe<he.length;oe++)if(he[oe].compile_success==0||!he[oe].compile_success){xe=!1;break}}else xe=!1;return xe}function Ie(he,xe=""){let oe=[];for(let Oe=0;Oe<he.length;Oe++){let ve=he[Oe],Me=xe?`${xe}/${ve.name}`:`${ve.name}`;oe.push({title:ve.name,type:ve.type,isLeaf:ve.type!=="tree",key:Me})}return oe}function Je(he,xe,oe){for(let Oe=0;Oe<he.length;Oe++){let ve=he[Oe];if(ve.key===xe){ve.children=oe;break}ve.children&&Je(ve.children,xe,oe)}return he}function ze(he,xe,oe){let Oe;return function(){let ve=this,Me=arguments,Se=function(){Oe=null,oe||he.apply(ve,Me)},Te=oe&&!Oe;clearTimeout(Oe),Oe=setTimeout(Se,xe),Te&&he.apply(ve,Me)}}const Le=!0,Ue=x.Z.API_SERVER},97783:function(Jn,kt,ae){"use strict";ae.d(kt,{ij:function(){return ke},_s:function(){return Ee},Uf:function(){return Ce},ZP:function(){return Qe}});var x=ae(59301),dt={flex_box_center:"flex_box_center___swvFl",flex_space_between:"flex_space_between___AqPFV",flex_box_vertical_center:"flex_box_vertical_center___XWInJ",flex_box_center_end:"flex_box_center_end___GB61t",flex_box_column:"flex_box_column___dJnz1",analysis:"analysis___xyV_c",title:"title___DQ3VK",itemWrap:"itemWrap___vFE5r",item:"item___NjeOt",list:"list___BbMrm",wrap:"wrap___UQTTb",img:"img___tNvUo",tips:"tips___Eu4wH",footer:"footer___ZbR9W",noData:"noData___mLlw0"},Ie=ae(92310),Je=ae.n(Ie),ze=ae(42441),Le=ae(25399),Ue=ae(458),he=ae(29787),xe=ae(77740),oe=ae(21600),Oe=Object.defineProperty,ve=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Te=(je,qe,Ve)=>qe in je?Oe(je,qe,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):je[qe]=Ve,we=(je,qe)=>{for(var Ve in qe||(qe={}))Me.call(qe,Ve)&&Te(je,Ve,qe[Ve]);if(ve)for(var Ve of ve(qe))Se.call(qe,Ve)&&Te(je,Ve,qe[Ve]);return je};const Ce=(je={})=>{var qe,Ve,ct,ot;let pt=(qe=je==null?void 0:je.emotion)==null?void 0:qe.map(_e=>we({value:_e==null?void 0:_e.rate},_e)),bt=(Ve=je==null?void 0:je.focus)==null?void 0:Ve.map(_e=>we({value:_e==null?void 0:_e.rate},_e)),He=(ct=je==null?void 0:je.action)==null?void 0:ct.map(_e=>we({value:_e==null?void 0:_e.rate},_e)),ht=(ot=je==null?void 0:je.intention)==null?void 0:ot.map(_e=>we({value:_e==null?void 0:_e.rate},_e));return[{title:"\u8868\u60C5\u5360\u6BD4",color:["#f7ca2e","#4ccf71","#3791ee","#f9ac95","#4f74ee","#f0e999"],data:pt||[]},{title:"\u4E13\u6CE8\u5EA6\u5360\u6BD4",color:["#4f74ee","#f9ac95","#9cb5fe","#eaa170","#3791ee","#a39bed"],data:bt||[]},{title:"\u884C\u4E3A\u5360\u6BD4\u60C5\u51B5",color:["#5eca9c","#a39bed","#f68238","#f0e999","#eaa170","#f9ac95"],data:He||[]},{title:"\u610F\u56FE\u5360\u6BD4\u60C5\u51B5",color:["#eaa170","#739fcb","#f0e999","#f9ac95","#4f74ee","#5eca9c"],data:ht||[]}]},Ee=({className:je,dataSource:qe=[],col:Ve=4,right:ct,bottom:ot=23,precision:pt=0,wrapWidth:bt=1200})=>{const He=(_e="",Re,Nt="--")=>_e?(_e==null?void 0:_e.length)>Re?(_e==null?void 0:_e.slice(0,Re-1))+"...":_e:Nt,ht=Math.floor((bt-(Ve-1)*ct)/Ve);return x.createElement("div",{className:Je()(dt.list,je)},!!(qe!=null&&qe.length)&&(qe==null?void 0:qe.map((_e,Re)=>{const{cover_pic:Nt,created_at:it,emotion:at,action:Bt,intention:Ze,focus:De}=_e;return x.createElement("div",{key:Re,className:dt.wrap,style:{width:ht,marginRight:(1+Re)%Ve===0?0:ct+pt,marginBottom:ot}},x.createElement("div",{className:dt.img},x.createElement("img",{src:`${oe.Z.API_SERVER}${Nt}`}),x.createElement("div",{className:dt.tips},x.createElement("div",null,x.createElement("i",{className:"iconfont icon-paisheshijian mr5 font14"})," \u62CD\u6444\u65F6\u95F4"),x.createElement("span",null,it))),x.createElement("div",{className:dt.footer},x.createElement("ul",null,x.createElement("li",null,x.createElement("i",{className:"iconfont icon-biaoqing"}),x.createElement("span",null,"\u8868\u60C5\uFF1A",x.createElement(Le.Z,{title:at},x.createElement("span",{className:"c-grey-333"},He(at,4))))),x.createElement("li",null,x.createElement("i",{className:"iconfont icon-hangwei"}),x.createElement("span",null,"\u884C\u4E3A\uFF1A",x.createElement(Le.Z,{title:Bt},x.createElement("span",{className:"c-grey-333"},He(Bt,4)))))),x.createElement("ul",null,x.createElement("li",null,x.createElement("i",{className:"iconfont icon-yitu"}),x.createElement("span",null,"\u610F\u56FE\uFF1A",x.createElement(Le.Z,{title:Ze},x.createElement("span",{className:"c-grey-333"},He(Ze,4))))),x.createElement("li",null,x.createElement("i",{className:"iconfont icon-zhuangtai"}),x.createElement("span",null,"\u4E13\u6CE8\u5EA6\uFF1A",x.createElement(Le.Z,{title:De},x.createElement("span",{className:"c-grey-333"},He(De,3))))))))})))},ke=({className:je,style:qe,title:Ve,hideBar:ct=!1,children:ot,customText:pt="",noDataText:bt="",emptyData:He=[],loading:ht,actionAnalysis:_e})=>{var Re,Nt;const it=((Re=He==null?void 0:He[0])==null?void 0:Re.every(Bt=>{var Ze;return!((Ze=Bt==null?void 0:Bt.data)!=null&&Ze.length)}))&&!((Nt=He==null?void 0:He[1])!=null&&Nt.length)||!_e,at=_e?bt:pt;return x.createElement(Ue.Z,{loading:ht,active:!0},it&&x.createElement("div",{className:Je()(dt.noData,je),style:qe},!!Ve&&x.createElement("div",{className:dt.title},!ct&&x.createElement("b",null),x.createElement("span",null,Ve)),x.createElement("div",{className:dt.itemWrap},x.createElement(xe.Z,{customText:at}))),!it&&ot)};var Qe=({className:je,style:qe,data:Ve=[],title:ct,hideBar:ot=!1,loading:pt=!1})=>x.createElement("div",{className:Je()(dt.analysis,je),style:qe},!!ct&&x.createElement("div",{className:dt.title},!ot&&x.createElement("b",null),x.createElement("span",null,ct)),x.createElement(he.Z,{spinning:pt},x.createElement("div",{className:dt.itemWrap},Ve==null?void 0:Ve.map((bt,He)=>x.createElement("div",{className:dt.item,key:He},x.createElement(ze.Z,{option:{tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c}%"},title:{left:"center",bottom:15,text:bt==null?void 0:bt.title},legend:{top:10,right:10,orient:"vertical",show:!0,align:"left",icon:"circle",itemWidth:10,itemHeight:10,formatter:function(ht){for(let _e in bt==null?void 0:bt.data)if(ht==(bt==null?void 0:bt.data[_e].name))return ht+" "+(bt==null?void 0:bt.data[_e].value)+"%"},textStyle:{color:"#767676",fontSize:12}},color:bt==null?void 0:bt.color,series:[{type:"pie",radius:["20%","35%"],center:["20%","40%"],avoidLabelOverlap:!1,label:{show:!1},labelLine:{show:!1},data:bt==null?void 0:bt.data}]},style:{height:145}}))))))},2122:function(Jn,kt,ae){"use strict";var x=ae(86204),dt=ae.n(x),Ie=Object.defineProperty,Je=(he,xe,oe)=>xe in he?Ie(he,xe,{enumerable:!0,configurable:!0,writable:!0,value:oe}):he[xe]=oe,ze=(he,xe,oe)=>Je(he,typeof xe!="symbol"?xe+"":xe,oe),Le=(he,xe,oe)=>new Promise((Oe,ve)=>{var Me=we=>{try{Te(oe.next(we))}catch(Ce){ve(Ce)}},Se=we=>{try{Te(oe.throw(we))}catch(Ce){ve(Ce)}},Te=we=>we.done?Oe(we.value):Promise.resolve(we.value).then(Me,Se);Te((oe=oe.apply(he,xe)).next())});class Ue extends x.EventEmitter{constructor(xe,oe){super(),ze(this,"url"),ze(this,"body"),ze(this,"fullContent",""),ze(this,"controller",null),ze(this,"buffer",""),this.url=xe,this.body=oe}startStream(){return Le(this,null,function*(){this.controller=new AbortController;const{signal:xe}=this.controller;try{const oe=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:xe});if(!oe.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${oe.status}`);const Oe=oe.headers.get("content-type");if(!Oe)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(Oe.includes("application/json")){const Se=yield oe.json();this.emit("error",Se);return}if(!Oe.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const ve=oe.body.getReader(),Me=new TextDecoder("utf-8");for(;;){const{done:Se,value:Te}=yield ve.read();if(Se)break;const we=Me.decode(Te,{stream:!0});this.buffer+=we;const Ce=this.buffer.split(`
`);this.buffer=Ce.pop()||"";for(const Ee of Ce)if(Ee.startsWith("data:")){const ke=Ee.slice(5).trim();if(ke==="[DONE]")break;try{const Ke=JSON.parse(ke);Ke.data&&this.handleData(Ke.data)}catch(Ke){this.buffer=Ee+`
`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",Ke)}}}this.emit("done",this.fullContent)}catch(oe){oe.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",oe.message)}})}handleData(xe){xe.content&&(this.fullContent+=xe.content,this.emit("data",{chunk:xe,full:this.fullContent}))}cancelRequest(){var xe;(xe=this.controller)==null||xe.abort()}}kt.Z=Ue},99709:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return Te}});var x=ae(59301),dt={flex_box_center:"flex_box_center___A3pzf",flex_space_between:"flex_space_between___JBoa5",flex_box_vertical_center:"flex_box_vertical_center___MJuIO",flex_box_center_end:"flex_box_center_end___OcjUA",flex_box_column:"flex_box_column___zSH4A",list:"list___KhJas",middle:"middle___IjlYi",row:"row___GGtIx",title:"title___o_xqf",size:"size___OVRoL",download:"download___ZLcIH",preview:"preview___gi0kI",annotation:"annotation___KVSwj"},Ie=ae(92310),Je=ae.n(Ie),ze=ae(17379),Le=ae(55018),Ue=ae(92232),he=ae(21600),xe=ae(82186),oe=ae(99287),Oe=ae(52985),ve=ae(6767),Me=(we,Ce,Ee)=>new Promise((ke,Ke)=>{var Qe=Ve=>{try{qe(Ee.next(Ve))}catch(ct){Ke(ct)}},je=Ve=>{try{qe(Ee.throw(Ve))}catch(ct){Ke(ct)}},qe=Ve=>Ve.done?ke(Ve.value):Promise.resolve(Ve.value).then(Qe,je);qe((Ee=Ee.apply(we,Ce)).next())});const Se=({className:we,style:Ce,dataSource:Ee=[],authority:ke=!1,callback:Ke,showDimensions:Qe=!0,classroomList:je})=>{var qe;const[Ve,ct]=(0,x.useState)({content:"",type:""}),[ot,pt]=(0,x.useState)({}),[bt,He]=(0,x.useState)(!1),[ht,_e]=(0,x.useState)({title:"",visible:!1,src:"",snapshotData:{}}),Re=(0,x.useRef)(),Nt=Ze=>Me(void 0,null,function*(){if(pt(Ze),Ze.file_type==="txt"){const De=yield(0,xe.ZP)(Ze.url,{method:"get",headers:{"Content-Type":"application/xml"}});Re.current=De}ct({type:Ze.file_type,content:he.Z.API_SERVER+Ze.url})}),it=Ze=>{var De;_e({visible:!0,src:he.Z.API_SERVER+Ze.url,id:Ze.id,title:Ze.title,snapshotData:(De=Ze==null?void 0:Ze.subitem)==null?void 0:De.settings})},at=Ze=>Me(void 0,null,function*(){var De;ct({type:Ze.file_type,content:he.Z.API_SERVER+((De=Ze==null?void 0:Ze.subitem)==null?void 0:De.url)})}),Bt=()=>{Ke(),_e({visible:!1})};return Ee!=null&&Ee.length?x.createElement(x.Fragment,null,x.createElement("div",{className:Je()(dt.list,we),style:Ce},Ee.map((Ze,De)=>{var ut,$t,zt;return x.createElement("div",{key:De,className:dt.row},x.createElement("div",{className:dt.title,onClick:()=>Nt(Ze)},x.createElement("i",{className:"iconfont icon-fujian1"}),x.createElement("span",{title:Ze.title},Ze.title)),x.createElement("div",{className:dt.size},Ze.filesize),x.createElement("div",{className:dt.download,onClick:()=>{var tt,Ot;if((0,oe.Rm)()&&!((tt=je.AssistantObject.normal)!=null&&tt.can_download)){ve.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}(0,Ue.Nd)("",`${he.Z.API_SERVER}${(Ot=Ze.url)==null?void 0:Ot.replace("disposition=inline","")}`)}},x.createElement("i",{className:"iconfont icon-xiazai4"}),"\u4E0B\u8F7D"),!["other","download"].includes(Ze==null?void 0:Ze.file_type)&&x.createElement("div",{className:dt.preview,onClick:()=>Nt(Ze)},x.createElement("i",{className:"iconfont icon-yulan"}),"\u9884\u89C8"),["image"].includes(Ze==null?void 0:Ze.file_type)&&Qe&&(ke?x.createElement("div",{className:dt.annotation,onClick:()=>it(Ze)},x.createElement("i",{className:"iconfont icon-pizhu"}),(ut=Ze.subitem)!=null&&ut.id?"\u4FEE\u6539\u6279\u6CE8":"\u6279\u6CE8"):(($t=Ze.subitem)==null?void 0:$t.id)&&x.createElement("div",{className:dt.annotation,onClick:()=>at(Ze)},x.createElement("i",{className:"iconfont icon-chakanlaoshipizhu1"}),"\u67E5\u770B\u8001\u5E08\u6279\u6CE8")),["image"].includes(Ze==null?void 0:Ze.file_type)&&((zt=Ze.subitem)==null?void 0:zt.id)&&x.createElement("div",{className:dt.download,style:{marginLeft:20},onClick:()=>{var tt,Ot;(0,Ue.Nd)("",`${he.Z.API_SERVER}${(Ot=(tt=Ze==null?void 0:Ze.subitem)==null?void 0:tt.url)==null?void 0:Ot.replace("disposition=inline","")}`)}},x.createElement("i",{className:"iconfont icon-xiazai4"}),"\u4E0B\u8F7D\u6279\u6CE8\u6587\u4EF6"),["office"].includes(Ze==null?void 0:Ze.file_type)&&(0,oe.eB)()&&["xlsx","docx","pptx"].includes(Ze==null?void 0:Ze.file_sub)&&Qe&&x.createElement("div",{className:dt.annotation,onClick:()=>{He(!0),Nt(Ze)}},x.createElement("i",{className:"iconfont icon-pizhu"}),Ze.is_edit?"\u4FEE\u6539\u6279\u6CE8":"\u6279\u6CE8"),Ze.is_edit&&(0,oe.dE)()&&Qe&&x.createElement("div",{className:dt.annotation,onClick:()=>{Nt(Ze)}},x.createElement("i",{className:"iconfont icon-sousuo7"}),"\u67E5\u770B\u8001\u5E08\u6279\u6CE8"))})),x.createElement(ze.Z,{close:!0,data:Ve==null?void 0:Ve.content,type:Ve==null?void 0:Ve.type,hasMask:!0,disabledDownload:(0,oe.Rm)()&&!((qe=je.AssistantObject.normal)!=null&&qe.can_download),editOffice:bt?"edit":"view",monacoEditor:{value:Re.current,language:"txt",onChange:()=>{},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onImgDimensions:ke&&Qe&&Ve.type==="image"?()=>it(ot):null,onClose:()=>{Ke(),He(!1),ct({content:"",type:""})}}),x.createElement(Le.Z,{onOk:Bt,onClose:()=>_e({visible:!1}),data:ht,showFullTools:!0})):null};var Te=(0,Oe.connect)(({classroomList:we})=>({classroomList:we}))(Se)},55018:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return Oe}});var x=ae(59301),dt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ie=ae(92310),Je=ae.n(Ie),ze=ae(29787),Le=ae(2859),Ue=ae(82186),he=ae(92232),xe=(ve,Me,Se)=>new Promise((Te,we)=>{var Ce=Ke=>{try{ke(Se.next(Ke))}catch(Qe){we(Qe)}},Ee=Ke=>{try{ke(Se.throw(Ke))}catch(Qe){we(Qe)}},ke=Ke=>Ke.done?Te(Ke.value):Promise.resolve(Ke.value).then(Ce,Ee);ke((Se=Se.apply(ve,Me)).next())}),Oe=({data:ve,className:Me,fullWidth:Se,style:Te={},onClose:we,onOk:Ce,showFullTools:Ee,noAssociationId:ke})=>{const Ke=(0,x.useRef)(null),Qe=(0,x.useRef)(null),je=(0,x.useRef)(null),qe=(0,x.useRef)(null),[Ve,ct]=(0,x.useState)(!1),[ot,pt]=(0,x.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,x.useEffect)(()=>(je.current||(je.current=document.createElement("style"),document.head.appendChild(je.current)),ve!=null&&ve.visible?(document.body.setAttribute("data-custom","y-hidden"),je.current.innerHTML=" html { overflow-y: hidden; }",ve!=null&&ve.src&&bt()):(document.body.removeAttribute("data-custom"),je.current&&(document.head.removeChild(je.current),je.current=null)),()=>{document.body.removeAttribute("data-custom"),je.current&&(document.head.removeChild(je.current),je.current=null)}),[ve==null?void 0:ve.visible]);const bt=()=>xe(void 0,null,function*(){ct(!0),pt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Re=yield(0,he.ZJ)(ve==null?void 0:ve.src);Ke.current.src="",Ke.current.src=Re,Ke.current.onload=function(){_e()},ct(!1),pt("")}),He=Re=>xe(void 0,null,function*(){ct(!0),pt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Nt=yield(0,Ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ve.title,file:Re.dataUrl}});Nt!=null&&Nt.id&&!ke?(yield(0,Ue.ZP)(`/api/attachments/${ve.id}/add_subitem.json`,{method:"post",body:{subitem_id:Nt==null?void 0:Nt.id,settings:JSON.stringify(Re.state)}})).status===0&&Ce():Nt!=null&&Nt.id&&Ce(Nt),ct(!1),pt("")}),ht=()=>{const Re=document.querySelector('a[href="https://markerjs.com/"]');Re&&Re.parentNode&&(Re.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(it=>{const at=document.querySelector(it.name);at&&at.setAttribute("title",it.title)})},_e=()=>{Qe.current=new Le.hP(Ke.current),Qe.current.targetRoot=qe.current,Qe.current.addEventListener("render",He),Qe.current.addEventListener("beforeclose",we),Ee&&(Qe.current.availableMarkerTypes=Qe.current.ALL_MARKER_TYPES,Qe.current.uiStyleSettings.redoButtonVisible=!0,Qe.current.uiStyleSettings.notesButtonVisible=!0,Qe.current.uiStyleSettings.zoomButtonVisible=!0,Qe.current.uiStyleSettings.zoomOutButtonVisible=!0,Qe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Qe.current.uiStyleSettings,Qe.current.show(),ve!=null&&ve.snapshotData&&Qe.current.restoreState(ve.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ht()},300)};return x.createElement(x.Fragment,null,(ve==null?void 0:ve.visible)&&x.createElement(ze.Z,{spinning:Ve,tip:ot,style:{position:"absolute",width:"100vw"}},x.createElement("div",{ref:qe,className:Je()(dt.imageDimensions,Me,Se?dt.fullWidth:""),style:Te},x.createElement("img",{className:dt.img,ref:Ke}))))}},69104:function(Jn,kt,ae){"use strict";var x=ae(59301),dt=ae(77019),Ie=ae(5269),Je=ae(31691),ze=ae(7939),Le=ae(77314),Ue=ae(43701),he=ae(48136),xe=ae(59301);const oe=(0,x.forwardRef)(({callback:Oe,showSaveButton:ve,value:Me=""},Se)=>{const Te=(0,x.useRef)(),we=[{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 "}]}]}],Ce=[{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}`}]}]}],Ee=Qe=>{Te.current.setValue(Te.current.getValue()+" "+Qe.value+" ")},ke=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:xe.createElement(dt.Z,{className:Ue.Z.lists,gutter:[10,10]},we.map((Qe,je)=>xe.createElement(Ie.Z,{flex:"110px",className:Ue.Z.item},xe.createElement("div",null,xe.createElement(Le.Z,{value:`$$${Qe.value}$$`}),Qe.name),xe.createElement("div",{className:Ue.Z.children},Qe.children.map((qe,Ve)=>xe.createElement("div",{key:Ve},xe.createElement("h1",null,qe.name),xe.createElement(dt.Z,{gutter:[10,10]},qe.data.map((ct,ot)=>xe.createElement(Ie.Z,{key:ot,onClick:()=>Ee(ct),className:Ue.Z.diamond},xe.createElement(Le.Z,{value:"`$$"+ct.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:xe.createElement(dt.Z,{className:Ue.Z.lists,gutter:[10,10]},Ce.map((Qe,je)=>xe.createElement(Ie.Z,{flex:"110px",className:Ue.Z.item},xe.createElement("div",null,xe.createElement(Le.Z,{value:"`$$"+Qe.value+"$$`"}),Qe.name),xe.createElement("div",{className:Ue.Z.children},Qe.children.map((qe,Ve)=>xe.createElement("div",{key:Ve},qe.name&&xe.createElement("h1",null,qe.name),xe.createElement(dt.Z,{gutter:[10,10]},qe.data.map((ct,ot)=>xe.createElement(Ie.Z,{key:ot,onClick:()=>Ee(ct),className:Ue.Z.diamond},xe.createElement(Le.Z,{value:"`$$"+ct.value+"$$`"}))))))))))}],Ke=()=>{var Qe=document.createElement("div");Qe.innerHTML=Te.current.getValue();var je=Qe.innerText;return Oe&&Oe(je),je};return(0,x.useImperativeHandle)(Se,()=>({getData:Ke})),xe.createElement("div",{className:Ue.Z.mathWrap},xe.createElement(Je.default,{defaultActiveKey:"1",items:ke}),xe.createElement("math-field",{locale:"zh_cn",className:Ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Te,style:{width:800,marginTop:30,fontSize:18}},Me||""),ve&&xe.createElement("div",{className:Ue.Z.button},xe.createElement(ze.ZP,{size:"large",onClick:Ke,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});kt.Z=oe},77740:function(Jn,kt,ae){"use strict";var x=ae(59301),dt=ae(93314),Ie=ae(7939),Je=Object.defineProperty,ze=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,oe=(Se,Te,we)=>Te in Se?Je(Se,Te,{enumerable:!0,configurable:!0,writable:!0,value:we}):Se[Te]=we,Oe=(Se,Te)=>{for(var we in Te||(Te={}))he.call(Te,we)&&oe(Se,we,Te[we]);if(Ue)for(var we of Ue(Te))xe.call(Te,we)&&oe(Se,we,Te[we]);return Se},ve=(Se,Te)=>ze(Se,Le(Te));const Me=({img:Se,buttonProps:Te={},styles:we={},customText:Ce,ButtonText:Ee,ButtonClick:ke,Buttonclass:Ke,ButtonTwo:Qe,imgStyles:je,loading:qe=!1,className:Ve=""})=>x.createElement("section",{className:`tc animated fadeIn ${Ve}`,style:Oe({color:"#999",margin:"100px auto",visibility:qe?"hidden":"visible"},we)},x.createElement("img",{src:Se||dt,style:ve(Oe({},je),{pointerEvents:"none",userSelect:"none"})}),x.createElement("p",{className:"mt20 font14"},Ce||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),Ee&&x.createElement(Ie.ZP,Oe({className:Ke,onClick:ke},Te),Ee),Qe&&Qe);kt.Z=Me},17379:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return Ke}});var x=ae(59301),dt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},Ie=ae(7939),Je=ae(70557),ze=ae(79802),Le=ae(25399),Ue=ae(92232),he=ae(87935),xe=ae(77740),oe=ae(21600),Oe=ae(59716),ve=ae(59301),Me=Object.defineProperty,Se=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,Ce=(Qe,je,qe)=>je in Qe?Me(Qe,je,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Qe[je]=qe,Ee=(Qe,je)=>{for(var qe in je||(je={}))Te.call(je,qe)&&Ce(Qe,qe,je[qe]);if(Se)for(var qe of Se(je))we.call(je,qe)&&Ce(Qe,qe,je[qe]);return Qe},ke=(Qe,je,qe)=>new Promise((Ve,ct)=>{var ot=He=>{try{bt(qe.next(He))}catch(ht){ct(ht)}},pt=He=>{try{bt(qe.throw(He))}catch(ht){ct(ht)}},bt=He=>He.done?Ve(He.value):Promise.resolve(He.value).then(ot,pt);bt((qe=qe.apply(Qe,je)).next())}),Ke=({editOffice:Qe="view",data:je,issaver:qe,onSaver:Ve,theme:ct,type:ot,filename:pt,monacoEditor:bt,className:He,style:ht,close:_e,onClose:Re,hasMask:Nt,disabledDownload:it,onImgDimensions:at,showNodata:Bt,recordInfo:Ze})=>{const[De,ut]=(0,x.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[$t,zt]=(0,x.useState)(""),[tt,Ot]=(0,x.useState)(),Rt=window.ENV==="build"?"/react/build":"",fn=location.host.startsWith("localhost")?oe.Z.PROXY_SERVER:oe.Z.API_SERVER,mn=10*(1024*1024),Dt=(0,x.useRef)();je!=null&&je.startsWith("/api")&&ot!=="txt"&&(je=oe.Z.API_SERVER+je);const En=se=>se.substring(se.lastIndexOf("/")+1).split(".").pop();pt&&bt&&(bt.filename=pt),(0,x.useEffect)(()=>{var se,le;const Be=(le=(se=document.cookie)==null?void 0:se.replace(/\s/g,""))==null?void 0:le.split(";");Be==null||Be.map(We=>{let st=We.split("=");st[0]==="_educoder_session"&&zt(st[1])})},[]),(0,x.useEffect)(()=>{ot==="office"&&(je.indexOf("bigfilescdn.")>-1||je.indexOf("bigfiles1")>-1?Ot({url:je,fileType:En(je),model:je.indexOf("model=edit")?"edit":"view"}):je.indexOf("coze")>-1?Ot({url:je,fileType:"doc",model:"view"}):de())},[ot,je]);function rn(se){return ke(this,null,function*(){se.data.type==="pdfdata"&&(Ve(se.data.data),window.removeEventListener("message",rn,!1)),console.log("mess---:",se.data)})}const de=()=>ke(void 0,null,function*(){console.log("data:",je);let se=je;je.startsWith("http")||(se=location.origin+se);let le=new URL(se).pathname.split("/").pop();const Be=yield(0,he.gJ)({attachment_id:le});Be.url=fn+Be.url,Ot(Be)}),pe=()=>{if(je.startsWith("http")||je.startsWith("blob:")){ie();return}(0,Ue.Sv)(pt||"educoder",je,pt)},ie=()=>{Ze&&(0,Oe.fc)({id:Ze==null?void 0:Ze.id,watch_type:1,course_id:Ze==null?void 0:Ze.course_id}),(0,Ue.Nd)(pt||"educoder",decodeURIComponent(je))};(0,x.useEffect)(()=>(window.addEventListener("message",ee),()=>{window.removeEventListener("message",ee)}),[]);const ee=se=>{var le;((le=se==null?void 0:se.data)==null?void 0:le.type)==="closePop"&&Re()};return ve.createElement("div",{style:Ee({},ht||{}),className:`${Nt&&dt.bgBlack} ${ot?dt.wrp:"hide"}`},!!ot&&_e&&ve.createElement("div",{id:"closePop",className:dt.close,ref:Dt},!!at&&ve.createElement(Le.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Dt.current},ve.createElement("span",{onClick:()=>{Re(),at()}},ve.createElement("i",{className:"icon-yulanpizhu"}))),!it&&window.parent===window&&ve.createElement(Le.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Dt.current},ve.createElement("span",{onClick:ie},ve.createElement("i",{className:"icon-quxiaozhiding"}))),qe&&ve.createElement(Le.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Dt.current},ve.createElement("span",{className:"",onClick:()=>{const se=document.getElementById("pdfiframe");window.addEventListener("message",rn,!1),setTimeout(()=>{se.contentWindow.postMessage("getData","*")},300)}},ve.createElement("i",{className:"icon-baocun"}))),ve.createElement(Le.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Dt.current},ve.createElement("span",{className:"",onClick:()=>{Re()}},ve.createElement("i",{className:"icon-guanbi1"})))),ve.createElement("div",{className:`${dt[He]} ${He} ${dt.monaco} ${ot==="txt"?"show":"hide"}`},ot==="txt"&&ve.createElement(ve.Fragment,null,ve.createElement(ze.ZP,Ee({},bt)))),ot==="audio"&&ve.createElement("audio",{src:`${(je==null?void 0:je.indexOf("http://"))>-1||(je==null?void 0:je.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${je}`,autoPlay:!0}),ot==="video"&&ve.createElement(ve.Fragment,null,(je==null?void 0:je.indexOf("http"))>-1?ve.createElement("video",{controls:!0,src:`${je}`,autoPlay:!0}):ve.createElement("video",{controls:!0,src:`data:video/mp4;base64,${je}`,autoPlay:!0})),ot==="office"&&tt&&ve.createElement("iframe",{src:`${Rt}/office.html?key=${tt.key}&url=${btoa(tt.url)}&callbackUrl=${fn+(tt.callbackUrl||"")}&fileType=${tt.fileType}&title=${tt.title||""}&model=${Qe}&officeServer=${oe.Z.ONLYOFFICE}&disabledDownload=${!!it}`}),ot==="html"&&ve.createElement("iframe",{src:je+"&disposition=inline"}),ot==="pdf"&&ve.createElement("iframe",{id:"pdfiframe",src:`${Rt}/js/pdf/index.html?filename=${pt||"educoder.pdf"}&url=${encodeURIComponent(je)}&disabledDownload=${!!it}&model=${Qe}`}),ot==="image"&&ve.createElement("img",{src:`${(je==null?void 0:je.indexOf("http://"))>-1||(je==null?void 0:je.indexOf("https://"))>-1?"":"data:image/png;base64,"}${je}`}),(ot==="other"||ot==="download")&&ve.createElement(ve.Fragment,null,Bt?ve.createElement(xe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ve.createElement(Ie.ZP,{icon:ve.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:pe,disabled:it},"\u4E0B\u8F7D")}):ve.createElement(Ie.ZP,{type:"primary",size:"middle",onClick:pe,disabled:it},ve.createElement(Je.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),ot==="flowChart"&&ve.createElement("div",{className:"embed"},ve.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${je||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},77314:function(Jn,kt,ae){"use strict";ae.d(kt,{z:function(){return bt},Z:function(){return He}});var x=ae(59301),dt=ae(24541),Ie=ae(69421),Je=ae(64018),ze=ae(16471),Le=ae(21600),Ue=ae(92232),he=ae(15342),xe=ae(44104),oe=ae(7939),Oe=ae(1012),ve=ae(17379),Me=ae(59301),Te=({html:ht})=>{const _e=(0,x.useRef)(null),Re=(0,x.useRef)(null),Nt=`.markdown-body p {
margin: 0 0 16px 0 !important;
line-height: 28px;
white-space: pre-wrap;
}
ol,
ul,
li {
list-style-type: none
}
ol,
ul,
dl {
margin-bottom: 0px;
}
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #333;
overflow: hidden;
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
word-break: break-word;
font-size: 16px;
line-height: 1.6;
white-space: normal;
word-wrap: break-word;
position: relative;
}
.markdown-body ul>li {
list-style-type: disc;
}
.markdown-body ol>li {
list-style-type: decimal;
}
.markdown-body a {
background: transparent;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body h1 {
font-size: 2em;
margin: 0.67em 0;
}
.markdown-body img {
border: 0;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.markdown-body pre {
overflow: auto;
}
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
font-size: 1em;
}
.markdown-body input {
color: inherit;
font: inherit;
margin: 0;
}
.markdown-body html input[disabled] {
cursor: default;
}
.markdown-body input {
line-height: normal;
}
.markdown-body input[type="checkbox"] {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body input {
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
.markdown-body a {
color: #4183c4;
text-decoration: none;
}
.markdown-body a:hover,
.markdown-body a:active {
text-decoration: underline;
}
.markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #ddd;
}
.markdown-body hr:before {
display: table;
content: "";
}
.markdown-body hr:after {
display: table;
clear: both;
content: "";
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.1;
}
.markdown-body h1 {
font-size: 30px;
}
.markdown-body h2 {
font-size: 21px;
}
.markdown-body h3 {
font-size: 16px;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
}
.markdown-body blockquote {
margin: 0;
}
.markdown-body ul,
.markdown-body ol {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
ul.linenums,
ol.linenums {
padding: 16px 0 0 56px !important;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ol ol,
.markdown-body ul ol {
list-style-type: lower-roman;
}
.markdown-body ul ul ol,
.markdown-body ul ol ol,
.markdown-body ol ul ol,
.markdown-body ol ol ol {
list-style-type: lower-alpha;
}
.markdown-body dd {
margin-left: 0;
}
.markdown-body code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 12px;
}
.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.markdown-body .octicon {
font: normal normal 16px octicons-anchor;
line-height: 1;
display: inline-block;
text-decoration: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.markdown-body .octicon-link:before {
content: '\f05c';
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body .anchor {
position: absolute;
top: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
display: none;
color: #000;
vertical-align: middle;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
padding-left: 8px;
margin-left: -30px;
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
display: inline-block;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
.markdown-body h1 .anchor {
line-height: 1;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
.markdown-body h2 .anchor {
line-height: 1;
}
.markdown-body h3 {
font-size: 1.5em;
line-height: 1.43;
}
.markdown-body h3 .anchor {
line-height: 1.2;
}
.markdown-body h4 {
font-size: 1.25em;
}
.markdown-body h4 .anchor {
line-height: 1.2;
}
.markdown-body h5 {
font-size: 1em;
}
.markdown-body h5 .anchor {
line-height: 1.1;
}
.markdown-body h6 {
font-size: 1em;
color: #777;
}
.markdown-body h6 .anchor {
line-height: 1.1;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote {
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
.markdown-body table th {
font-weight: bold;
text-align: revert;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body code {
padding: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.markdown-body code:has(.katex) {
background-color: transparent;
}
.markdown-body code:before,
.markdown-body code:after {
letter-spacing: -0.2em;
content: "\\00a0";
}
.markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code {
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after {
content: normal;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .pl-c {
color: #969896;
}
.markdown-body .pl-c1,
.markdown-body .pl-mdh,
.markdown-body .pl-mm,
.markdown-body .pl-mp,
.markdown-body .pl-mr,
.markdown-body .pl-s1 .pl-v,
.markdown-body .pl-s3,
.markdown-body .pl-sc,
.markdown-body .pl-sv {
color: #0086b3;
}
.markdown-body .pl-e,
.markdown-body .pl-en {
color: #795da3;
}
.markdown-body .pl-s1 .pl-s2,
.markdown-body .pl-smi,
.markdown-body .pl-smp,
.markdown-body .pl-stj,
.markdown-body .pl-vo,
.markdown-body .pl-vpf {
color: #333;
}
.markdown-body .pl-ent {
color: #63a35c;
}
.markdown-body .pl-k,
.markdown-body .pl-s,
.markdown-body .pl-st {
color: #a71d5d;
}
.markdown-body .pl-pds,
.markdown-body .pl-s1,
.markdown-body .pl-s1 .pl-pse .pl-s2,
.markdown-body .pl-sr,
.markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sra,
.markdown-body .pl-sr .pl-sre,
.markdown-body .pl-src {
color: #df5000;
}
.markdown-body .pl-mo,
.markdown-body .pl-v {
color: #1d3e81;
}
.markdown-body .pl-id {
color: #b52a1d;
}
.markdown-body .pl-ii {
background-color: #b52a1d;
color: #f8f8f8;
}
.markdown-body .pl-sr .pl-cce {
color: #63a35c;
font-weight: bold;
}
.markdown-body .pl-ml {
color: #693a17;
}
.markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms {
color: #1d3e81;
font-weight: bold;
}
.markdown-body .pl-mq {
color: #008080;
}
.markdown-body .pl-mi {
color: #333;
font-style: italic;
}
.markdown-body .pl-mb {
color: #333;
font-weight: bold;
}
.markdown-body .pl-md,
.markdown-body .pl-mdhf {
background-color: #ffecec;
color: #bd2c00;
}
.markdown-body .pl-mdht,
.markdown-body .pl-mi1 {
background-color: #eaffea;
color: #55a532;
}
.markdown-body .pl-mdr {
color: #795da3;
font-weight: bold;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .task-list-item {
list-style-type: none;
}
.markdown-body .task-list-item+.task-list-item {
margin-top: 3px;
}
.markdown-body .task-list-item input {
float: left;
margin: 0.3em 0 0.25em -1.6em;
vertical-align: middle;
}
.markdown-body :checked+.radio-label {
z-index: 1;
position: relative;
border-color: #4183c4;
}
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln {
color: #000
}
/* plain text */
@media screen {
.str {
color: #080
}
/* string content */
.kwd {
color: #008
}
/* a keyword */
.com {
color: #800
}
/* a comment */
.typ {
color: #606
}
/* a type name */
.lit {
color: #066
}
/* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun,
.opn,
.clo {
color: #660
}
.tag {
color: #008
}
/* a markup tag name */
.atn {
color: #606
}
/* a markup attribute name */
.atv {
color: #080
}
/* a markup attribute value */
.dec,
.var {
color: #606
}
/* a declaration; a variable name */
.fun {
color: red
}
/* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print,
projection {
.str {
color: #060
}
.kwd {
color: #006;
font-weight: bold
}
.com {
color: #600;
font-style: italic
}
.typ {
color: #404;
font-weight: bold
}
.lit {
color: #044
}
.pun,
.opn,
.clo {
color: #440
}
.tag {
color: #006;
font-weight: bold
}
.atn {
color: #404
}
.atv {
color: #060
}
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
padding: 2px;
/* border: 1px solid #888 */
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0
}
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: none
}
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
background: #eee
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}`;return(0,x.useEffect)(()=>{const it=_e.current.attachShadow({mode:"open"});Re.current=document.createElement("div"),Re.current.className="markdown-body",Re.current.innerHTML=ht,it.appendChild(Re.current);const at=document.createElement("style");return at.textContent=Nt,it.appendChild(at),()=>{it.innerHTML=""}},[]),(0,x.useEffect)(()=>{Re.current&&(Re.current.innerHTML=ht)},[ht]),Me.createElement("div",{ref:_e})};function we(ht){const _e=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],Re=new RegExp(`\\b(${_e.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Nt=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return ht.replace(Re,"").replace(Nt,"").trim()}var Ce={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},Ee=Object.defineProperty,ke=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,je=(ht,_e,Re)=>_e in ht?Ee(ht,_e,{enumerable:!0,configurable:!0,writable:!0,value:Re}):ht[_e]=Re,qe=(ht,_e)=>{for(var Re in _e||(_e={}))Ke.call(_e,Re)&&je(ht,Re,_e[Re]);if(ke)for(var Re of ke(_e))Qe.call(_e,Re)&&je(ht,Re,_e[Re]);return ht};const Ve="@\u2581\u2581@",ct="@\u2581@",ot=/<pre[^>]*>/g;function pt(ht){let _e=document.createElement("div");return _e.innerHTML=ht,_e.childNodes.length===0?"":_e.childNodes[0].nodeValue}const bt=(ht,_e)=>{ht=ht||"";const Re=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Nt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,it=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,at=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return _e?ht.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Re,(Bt,Ze,De,ut,$t,zt,tt)=>{const Ot=Ze||ut||zt,Rt=De||$t||tt||"?";return Le.Z.API_SERVER+"/api/attachments/"+Ot+Rt+"&t="+(0,Ue.Jn)(Ot,Date.now())+(Bt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ht=ht.replace(at,(Bt,Ze,De,ut,$t,zt,tt)=>{const Ot=Ze||ut||zt,Rt=De||$t||tt||"?";return Le.Z.API_SERVER+"/attachments/download/"+Ot+Rt+"&t="+(0,Ue.Jn)(Ot,Date.now())+(Bt.indexOf(")")>-1?")":"&")}).replace(Re,(Bt,Ze,De,ut,$t,zt,tt)=>{const Ot=Ze||ut||zt,Rt=De||$t||tt||"?";return Le.Z.API_SERVER+"/api/attachments/"+Ot+Rt+"&t="+(0,Ue.Jn)(Ot,Date.now())+(Bt.indexOf(")")>-1?")":"&")}).replace(Nt,(Bt,Ze,De,ut,$t)=>{const zt=Ze||ut,tt=De||$t||"";return'"'+Le.Z.API_SERVER+"/api/attachments/"+zt+tt+zt+tt+"&t="+(0,Ue.Jn)(zt,Date.now())}).replace(it,(Bt,Ze,De,ut,$t)=>{const zt=Ze||ut,tt=De||$t||"";return"("+Le.Z.API_SERVER+"/files/uploads/"+zt+tt+zt+tt+"&t="+(0,Ue.Jn)(zt,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),ht)};var He=({value:ht="",edit:_e=!1,className:Re,showTextOnly:Nt,showLines:it,style:at={},stylesPrev:Bt={},highlightKeywords:Ze,showProgramFill:De,isProgramFill:ut,disabledFill:$t=!1,programFillValue:zt,openEditor:tt=()=>{},onFillChange:Ot=Tt=>{},onFillBlur:Rt=()=>{},onFillFocus:fn=()=>{}})=>{let Tt=we(String(ht||""));const mn=(0,x.useRef)(),Dt=(0,x.useRef)(),[En,rn]=(0,x.useState)(""),[de,pe]=(0,x.useState)("office"),[ie,ee]=(0,x.useState)([]),se=(0,x.useRef)("a"+(0,Oe.Z)()),le={},Be=en=>/<style[\s\S]*?>/i.test(en||""),We=(en,zn,Fn)=>{const Ut=document.createElement(en===ct?"input":"textarea");Ut.style.width="100%",Ut.style.height=en===ct?"40px":"151px",Ut.rows=5,Ut.spellcheck=!1,Ut.name="edu-program-fill",Ut.placeholder="\u8BF7\u8F93\u5165",Ut.dataset.id=zn;const an=Object.keys(le).length;return le[an]=Ut,`<span class="edu-program-fill-wrap ${en===ct?"":"show"}" style="width:${en===ct?"600px":"100%"}" title=${Fn||""}><span>${Ut.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function st(en){return en=en.replace(/!\[.*?\]\(.*?\)/g,""),en=en.replace(/\[.*?\]\(.*?\)/g,""),en=en.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),en=en.replace(/<embed.*?>/g,""),en=en.replace(/<img.*?>/g,""),en=en.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),en=en.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),en=en.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),en=en.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),en}const mt=en=>!Nt&&Be(Tt)?en:en.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(zn,Fn){let Ut=Fn.replace(/(\n|\r)/g,"").split("}"),an=[];return Ut.map(_n=>{_n!=""&&an.push(`.${se.current} ${_n}`)}),`<style>${an.join("}")}</style>`}),gt=(0,x.useMemo)(()=>{(0,Ie.Iy)();try{const Ut=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,an=/\"\/api\/attachments\/|\"\/attachments\/download\//g,_n=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Vn=/\(\/attachments\/download\//g;Tt=Tt.replace(Vn,"("+Le.Z.API_SERVER+"/attachments/download/").replace(Ut,"("+Le.Z.API_SERVER+"/api/attachments/").replace(an,'"'+Le.Z.API_SERVER+"/api/attachments/").replace(_n,'"'+Le.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),mn.current.style.display="none"}catch(Ut){}if(De){let Ut=-1;return Tt=Tt.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(an,_n,Vn){var It;return++Ut,We(an,Ut,(It=zt==null?void 0:zt[Ut])==null?void 0:It.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${mt(Tt||"")}</pre>`}let en=mt(Tt);en=(0,Ie.ZP)(en);const zn=(0,Ie.ez)();Tt.match(/\[TOC\]/)&&(en=en.replace("<p>[TOC]</p>",(0,Ie.Qv)()),(0,Ie.Iy)()),en=en.replace(/(__special_katext_id_\d+__)/g,(Ut,an)=>{const{type:_n,expression:Vn}=zn[an];return(0,he.renderToString)(pt(Vn)||"",{displayMode:_n==="block",throwOnError:!1,output:"html"})}),en=en.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Ie.AL)();const Fn=document.createElement("div");if(Fn.innerHTML=en,Nt)return Fn.innerText;if(Ze){const Ut=Ze.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Ct(Fn,Ut),Fn.innerHTML}return setTimeout(()=>Zt(),500),Fn.innerHTML},[Tt,Ze]);(0,x.useEffect)(()=>{lt.current&&lt.current.querySelectorAll(["input","textarea"]).forEach(zn=>{zn.oninput=Et,zn.onblur=Lt,zn.onfocus=jt})},[ie]),(0,x.useEffect)(()=>{var en,zn,Fn,Ut,an;if(zt!=null&&zt.length)try{const _n=lt.current.querySelectorAll(".edu-program-fill-score"),Vn=lt.current.querySelectorAll('[name="edu-program-fill"]');for(const[It,Wt]of Vn.entries())Wt.value=((en=zt==null?void 0:zt[It])==null?void 0:en.value)||"",((zn=zt==null?void 0:zt[It])==null?void 0:zn.type)==="warning"?Wt.className="program-fill-warning":((Fn=zt==null?void 0:zt[It])==null?void 0:Fn.type)==="success"?Wt.className="program-fill-success":Wt.className="";for(const[It,Wt]of _n.entries())Wt.innerHTML=(Ut=zt==null?void 0:zt[It])!=null&&Ut.score?`${(an=zt==null?void 0:zt[It])==null?void 0:an.score}\u5206`:"";ee(zt)}catch(_n){console.log(_n,"error")}},[zt]);const Et=en=>{ie[en.target.dataset.id]=ie[en.target.dataset.id]||{},ie[en.target.dataset.id].value=en.target.value,ee([...ie]),Ot(ie,en.target.dataset.id)},Lt=en=>{ie[en.target.dataset.id]=ie[en.target.dataset.id]||{},ie[en.target.dataset.id].value=en.target.value,ee([...ie]),Rt(ie,en.target.dataset.id)},jt=en=>{ie[en.target.dataset.id]=ie[en.target.dataset.id]||{},ie[en.target.dataset.id].value=en.target.value,ee([...ie]),fn(ie,en.target.dataset.id)};function Ct(en,zn){return en.childNodes.forEach(Fn=>{var Ut;if(Fn.childNodes.length>0)Ct(Fn,zn);else if(Fn.nodeName!=="IMG")if(Fn.innerHTML)Fn.innerHTML=(Ut=Fn.innerHTML)==null?void 0:Ut.replace(new RegExp(zn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const an=document.createElement("span");an.innerHTML=Fn.textContent.replace(new RegExp(zn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Fn.replaceWith(an)}})}const lt=(0,x.useRef)();Ie.jb.WebkitLineClamp=it,it&&(at=qe(qe({},at),Ie.jb));function Vt(en){let zn=en.target;if(zn.tagName.toUpperCase()==="A"){let Fn=zn.getAttribute("href");if(Fn.indexOf("office")>-1)en.preventDefault(),rn(Fn),pe("office");else if(Fn.indexOf("application/pdf")>-1)en.preventDefault(),rn(Fn),pe("pdf");else if(Fn.indexOf("text/html")>-1)en.preventDefault(),rn(Fn),pe("html");else if(Fn.startsWith("#")){en.preventDefault();let Ut=document.getElementById(Fn.replace("#",""));Ut&&Ut.scrollIntoView(!0)}}}const Zt=()=>{var en;const zn=(en=lt.current)==null?void 0:en.querySelectorAll("video");zn==null||zn.forEach(Fn=>{if(Fn.oncontextmenu=()=>!1,Fn.src.indexOf(".m3u8")>-1&&!Fn.canPlayType("application/vnd.apple.mpegurl")){if(ze.ZP.isSupported()){var Ut=new ze.ZP;Ut.loadSource(Fn.src),Ut.attachMedia(Fn)}}})};(0,x.useEffect)(()=>{if(lt.current&&gt&&gt.match(ot)&&window.PR.prettyPrint(),lt.current)return lt.current.addEventListener("click",Vt),()=>{var en;(en=lt.current)==null||en.removeEventListener("click",Vt),(0,Ie.AL)(),(0,Ie.Iy)()}},[gt,lt.current,Vt]);const gn=en=>{en.target.nodeName==="IMG"&&en.target.className.indexOf("draw-flowchart")>-1?(mn.current.style.zIndex=1,mn.current.style.display="flex",mn.current.style.width=en.target.clientWidth+"px",mn.current.style.height=en.target.clientHeight+"px",mn.current.style.top=en.target.offsetTop+"px",mn.current.style.left=en.target.offsetLeft+"px",en.target.id&&(Dt.current=en.target.id)):mn.current.style.display="none"},sn=()=>{mn.current.style.display="none"};return(0,x.useEffect)(()=>{var en;const zn=Fn=>{Fn.preventDefault(),Fn.clipboardData.setData("text",window.getSelection().toString())};return(en=lt.current)==null||en.addEventListener("copy",zn),()=>{var Fn;(Fn=lt.current)==null||Fn.removeEventListener("copy",zn)}},[lt.current]),x.createElement("div",{style:{position:"relative"},onMouseLeave:sn},Nt&&x.createElement("div",{ref:lt,className:`${Ce.mdBody} `},gt),!Nt&&!Be(gt)&&x.createElement("div",{ref:lt,style:qe({},at),onMouseOver:gn,className:`${Re||""} ${$t?"disabled-fill":""} markdown-body ${Ce.mdBody} ${se.current}`,dangerouslySetInnerHTML:{__html:gt}}),!Nt&&Be(gt)&&x.createElement(Te,{html:gt}),x.createElement("div",{ref:mn,className:`${Ce.button} ${_e?"":Ce.previewFlowChart}`},x.createElement(xe.Z,null,x.createElement(oe.ZP,{onClick:()=>{_e?tt(Dt.current):(rn(Dt.current),pe("flowChart"))}},_e?"\u7F16\u8F91":"\u9884\u89C8"))),x.createElement(ve.Z,{close:!0,data:En,type:En!=null&&En.length?de:"",style:qe({},Bt),onClose:()=>rn("")}))}},1779:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return ht}});var x=ae(59301),dt=ae(52985),Ie=ae(62957),Je=ae(28284),ze=ae(6767),Le=ae(29787),Ue=ae(18287),he=ae(77019),xe=ae(5269),oe=ae(25399),Oe=ae(37568),ve={currentPrimary:"currentPrimary___NPWiR",currentDelete:"currentDelete___UEfhf",DirectoryTree:"DirectoryTree___xPxCY",EditDom:"EditDom___seNxC"},Me=ae(20562),Se=ae(7286),Te=ae(77740),we=ae(68914),Ce=Object.defineProperty,Ee=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,qe=(_e,Re,Nt)=>Re in _e?Ce(_e,Re,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):_e[Re]=Nt,Ve=(_e,Re)=>{for(var Nt in Re||(Re={}))Qe.call(Re,Nt)&&qe(_e,Nt,Re[Nt]);if(Ke)for(var Nt of Ke(Re))je.call(Re,Nt)&&qe(_e,Nt,Re[Nt]);return _e},ct=(_e,Re)=>Ee(_e,ke(Re)),ot=(_e,Re)=>{var Nt={};for(var it in _e)Qe.call(_e,it)&&Re.indexOf(it)<0&&(Nt[it]=_e[it]);if(_e!=null&&Ke)for(var it of Ke(_e))Re.indexOf(it)<0&&je.call(_e,it)&&(Nt[it]=_e[it]);return Nt},pt=(_e,Re,Nt)=>new Promise((it,at)=>{var Bt=ut=>{try{De(Nt.next(ut))}catch($t){at($t)}},Ze=ut=>{try{De(Nt.throw(ut))}catch($t){at($t)}},De=ut=>ut.done?it(ut.value):Promise.resolve(ut.value).then(Bt,Ze);De((Nt=Nt.apply(_e,Re)).next())});const bt=(_e=[])=>_e==null?void 0:_e.map(Re=>ct(Ve({},Re),{title:(Re==null?void 0:Re.value)||"",key:Re==null?void 0:Re.id,isLeaf:!0})),He=_e=>{var Re=_e,{user:Nt,children:it,isShowComponent:at=!0,ModalProps:Bt={},onDataSelect:Ze}=Re,De=ot(Re,["user","children","isShowComponent","ModalProps","onDataSelect"]);const[ut,$t]=Ie.default.useModal(),[zt]=Je.default.useForm(),[tt,Ot]=(0,x.useState)([]),[Rt,fn]=(0,x.useState)(!1),[Tt,mn]=(0,x.useState)(!1),[,Dt,En,rn]=(0,Me.U)(Se.qE,{page:1,limit:9999}),[,,de]=(0,Me.U)(Se.V8,{}),[,,pe]=(0,Me.U)(Se.B$,{}),[,,ie]=(0,Me.U)(Se.DH,{}),[,,ee]=(0,Me.U)(Se.bJ,{}),se=()=>{fn(!1),zt.resetFields(),mn(!1)},le=We=>pt(void 0,null,function*(){const{node:st,dragNode:mt,event:gt}=We,Et=We.node.pos.split("-"),Lt=We.dropPosition-Number(Et[Et.length-1]);if(Lt==0){ze.ZP.warning("\u65E0\u6CD5\u79FB\u52A8\u5230\u5185\u90E8\u4F4D\u7F6E");return}if(Lt==1&&(mt==null?void 0:mt.item_index)==(st==null?void 0:st.item_index)+1){ze.ZP.warning("\u672A\u79FB\u52A8\u4F4D\u7F6E");return}const jt=yield ee({id:mt==null?void 0:mt.key,position:Lt==-1?1:(mt==null?void 0:mt.item_index)>(st==null?void 0:st.item_index)?(st==null?void 0:st.item_index)+1:st==null?void 0:st.item_index});(jt==null?void 0:jt.status)===0&&(ze.ZP.success("\u79FB\u52A8\u6210\u529F"),En({},!0))}),Be=We=>pt(void 0,null,function*(){let st={};Tt?st=yield pe(Ve({},We)):st=yield ie(Ve({},We)),(st==null?void 0:st.status)==0&&(ze.ZP.success((st==null?void 0:st.message)||(Tt?"\u6DFB\u52A0\u6210\u529F":"\u66F4\u65B0\u6210\u529F")),En({},!0),se())});return(0,x.useEffect)(()=>{Bt!=null&&Bt.open&&En({},!0)},[Bt==null?void 0:Bt.open]),(0,x.useEffect)(()=>{var We;Ot(bt((We=rn==null?void 0:rn.data)==null?void 0:We.list))},[rn]),at?x.createElement(x.Fragment,null,$t,it,x.createElement(Ie.default,Ve({},Ve({title:"\u5E38\u7528\u8BC4\u8BED",width:640,centered:!0,footer:null,bodyStyle:{padding:"10px 5px 25px"}},Bt)),x.createElement(Le.Z,{spinning:Dt},(tt==null?void 0:tt.length)>0?x.createElement(x.Fragment,null,x.createElement(Ue.default.DirectoryTree,{height:500,className:ve.DirectoryTree,multiple:!0,draggable:{icon:!1},defaultExpandAll:!0,switcherIcon:!1,showIcon:!1,onSelect:Ze,treeData:tt,onDrop:le,titleRender:We=>x.createElement(x.Fragment,null,x.createElement("span",{className:"multi_ellipsis1",style:{flex:1,marginRight:"32px"}},We==null?void 0:We.title),x.createElement("div",{className:`${ve.EditDom}`},x.createElement(he.Z,{wrap:!1,align:"middle",gutter:16},x.createElement(xe.Z,null,x.createElement(oe.Z,{title:"\u957F\u6309\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F"},x.createElement("i",{className:`iconfont icon-tuodong1 font12 ${ve.currentPrimary}`}))),x.createElement(xe.Z,null,x.createElement(oe.Z,{title:"\u7F16\u8F91"},x.createElement("i",{className:`iconfont icon-bianji11 font12 ${ve.currentPrimary}`,onClick:st=>{st.stopPropagation(),zt.setFieldsValue(Ve({},We)),fn(!0)}}))),x.createElement(xe.Z,null,x.createElement(oe.Z,{title:"\u5220\u9664"},x.createElement("i",{className:`iconfont icon-shanchu14 font12 ${ve.currentDelete}`,onClick:st=>{st.stopPropagation(),ut.confirm({icon:null,title:"\u5220\u9664\u5E38\u7528\u8BC4\u8BED",centered:!0,content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u5E38\u7528\u8BC4\u8BED\u5417\uFF1F",onOk:()=>pt(void 0,null,function*(){const mt=yield de({id:We==null?void 0:We.key});(mt==null?void 0:mt.status)==0&&(ze.ZP.success((mt==null?void 0:mt.message)||"\u5220\u9664\u6210\u529F"),En({},!0))})})}}))))))}),x.createElement(we.op,{className:"ml20 mt20",icon:x.createElement("i",{className:"iconfont icon-xiaojiahao"}),style:{borderRadius:"4px"},onClick:()=>{mn(!0),fn(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED")):x.createElement(Te.Z,{styles:{margin:"30px auto"},customText:x.createElement("span",null,"\u6682\u65E0\u5E38\u7528\u8BC4\u8BED\uFF0C\u4F60\u53EF\u4EE5",x.createElement("a",{onClick:()=>{mn(!0),fn(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED"))}))),x.createElement(Ie.default,{title:Tt?"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED":"\u7F16\u8F91\u5E38\u7528\u8BC4\u8BED",open:Rt,okText:Tt?"\u6DFB\u52A0":"\u786E\u5B9A",onCancel:()=>{se()},onOk:()=>{zt.submit()}},x.createElement(Je.default,{form:zt,onFinish:Be},Tt&&x.createElement("span",{className:"font14",style:{color:"#191919"}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED\uFF0C\u53EF\u4EE5\u5E2E\u52A9\u4F60\u63D0\u9AD8\u8BC4\u9605\u4F5C\u4E1A\u7684\u6548\u7387"),x.createElement(Je.default.Item,{hidden:!0,name:"id"}),x.createElement(Je.default.Item,{className:"mt10",name:"value"},x.createElement(Oe.default.TextArea,{placeholder:"\u8F93\u5165\u5E38\u7528\u8BC4\u8BED\u3002\u4F8B\u5982\uFF1A\u4F60\u7684\u7F16\u7A0B\u4F5C\u4E1A\u6574\u4F53\u8868\u73B0\u826F\u597D\uFF0C\u4F46\u4ECD\u6709\u4E00\u4E9B\u5C0F\u7684\u6539\u8FDB\u7A7A\u95F4\u3002",autoSize:{minRows:8,maxRows:9},maxLength:100,showCount:!0}))))):null};var ht=(0,dt.connect)(({loading:_e,user:Re})=>({user:Re,loading:_e.effects}))(He)},70618:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return Je}});var x=ae(59301),dt=ae(82033),Ie=ae(75786),Je=()=>{const[ze,Le]=(0,x.useState)(""),[Ue,he]=(0,x.useState)(0);let[xe,oe]=(0,x.useState)(),[Oe,ve]=(0,x.useState)();const[Me,Se]=(0,x.useState)(!1),Te=(0,x.useRef)("");(0,x.useEffect)(()=>dt.Z.subscribe("preview-image",ot=>{Le(ot),console.log(qe.current)}),[]),(0,x.useEffect)(()=>(document.addEventListener("keydown",we),()=>{document.removeEventListener("keydown",we)}),[]),(0,x.useEffect)(()=>{Te.current=ze},[ze]);function we(ct){console.log("e====",ct),ct.keyCode==27&&Te.current&&Ce()}function Ce(){document.body.style.overflow="auto",oe(void 0),ve(void 0),he(0),Le("")}function Ee(){he(Ue+90)}function ke(){xe=qe.current.width*1.1,Oe=qe.current.height*1.1,ve(Oe),oe(xe)}function Ke(){xe=qe.current.width/1.1,Oe=qe.current.height/1.1,ve(Oe),oe(xe)}const Qe=(0,x.useRef)(),je=(0,x.useRef)(),qe=(0,x.useRef)(),Ve=ct=>{(ct.nativeEvent.target===Qe.current||ct.nativeEvent.target===je.current)&&Ce()};return x.createElement(x.Fragment,null,ze?x.createElement("div",null,x.createElement("div",{className:"preview-wrp-group",ref:je},x.createElement(Ie.Z,{className:"image-preview",src:ze,style:{display:"none"},preview:{visible:!0,src:ze,onVisibleChange:ct=>{Le("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},1191:function(Jn,kt,ae){"use strict";ae.d(kt,{h:function(){return Qe}});var x=ae(59301),dt=ae(82326),Ie=ae(28284),Je=ae(7939),ze=ae(89780),Le=ae.n(ze),Ue=ae(11965),he=ae(67977),xe=Object.defineProperty,oe=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Te=(je,qe,Ve)=>qe in je?xe(je,qe,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):je[qe]=Ve,we=(je,qe)=>{for(var Ve in qe||(qe={}))Me.call(qe,Ve)&&Te(je,Ve,qe[Ve]);if(ve)for(var Ve of ve(qe))Se.call(qe,Ve)&&Te(je,Ve,qe[Ve]);return je},Ce=(je,qe)=>oe(je,Oe(qe));const Ee=dt.default.Option,ke={labelCol:{span:4},wrapperCol:{span:20}},Ke={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};kt.Z=({callback:je,onCancel:qe})=>{const[Ve,ct]=(0,x.useState)("python");function ot(bt){ct(Ke[bt][1])}function pt(bt){je(bt)}return x.createElement(Ie.default,Ce(we({},ke),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:pt,style:{width:500}}),x.createElement(Ie.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},x.createElement(dt.default,{getPopupContainer:bt=>bt.parentNode,onChange:ot},Object.keys(Ke).map(bt=>x.createElement(Ee,{key:bt,value:bt},Ke[bt][0])))),x.createElement(Ie.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},x.createElement(Qe,{mode:Ve})),x.createElement("div",{className:"flex-container flex-end"},x.createElement(Je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),x.createElement(Je.ZP,{type:"ghost",onClick:qe},"\u53D6\u6D88")))};function Qe({value:je,onChange:qe,mode:Ve,options:ct={}}){const ot=(0,x.useRef)(),[pt,bt]=(0,x.useState)();return(0,x.useEffect)(()=>{if(pt){let He=function(ht){const _e=ht.getValue();qe&&qe(_e)};return pt.on("change",He),()=>{pt.off("change",He)}}},[pt,qe]),(0,x.useEffect)(()=>{pt&&pt.setOption("mode",Ve)},[pt,Ve]),(0,x.useEffect)(()=>{pt&&(je!==pt.getValue()||je==="")&&setTimeout(()=>{pt.setValue(je||"")},300)},[pt,je]),(0,x.useEffect)(()=>{if(ot.current&&!pt){const He=Le().fromTextArea(ot.current,we({mode:Ve,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ct));bt(He)}},[ot.current,pt]),x.createElement("div",{className:"my-codemirror-container"},x.createElement("textarea",{ref:ot}))}},62734:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return lr}});var x=ae(59301),dt=ae(52985),Ie=ae(89780),Je=ae.n(Ie),ze=ae(76374),Le=ae(11965),Ue=ae(6313),he=ae(25717),xe=ae(99498),oe=ae(25419),Oe=ae(67549),ve=ae(77314),Me=({value:$n="",className:Br,showTextOnly:Sr,showLines:kr,style:gi={}})=>{const Ai=(0,x.useMemo)(()=>"",[$n]);return x.createElement(x.Fragment,null,x.createElement("div",{dangerouslySetInnerHTML:{__html:Ai}}))},Se=Object.defineProperty,Te=Object.defineProperties,we=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Ke=($n,Br,Sr)=>Br in $n?Se($n,Br,{enumerable:!0,configurable:!0,writable:!0,value:Sr}):$n[Br]=Sr,Qe=($n,Br)=>{for(var Sr in Br||(Br={}))Ee.call(Br,Sr)&&Ke($n,Sr,Br[Sr]);if(Ce)for(var Sr of Ce(Br))ke.call(Br,Sr)&&Ke($n,Sr,Br[Sr]);return $n},je=($n,Br)=>Te($n,we(Br));let qe=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Ve({onActionCallback:$n,title:Br,icon:Sr,actionName:kr,className:gi="",children:Ai}){function di(){$n(kr)}return x.createElement("a",{title:Br,className:gi,onClick:di},x.createElement("i",{className:`${Sr}`}),Ai)}var ct=({watch:$n,showNullButton:Br,showNullProgramButton:Sr,onActionCallback:kr,fullScreen:gi,insertTemp:Ai,hidetoolBar:di,extraUse:Ti})=>{const Ei=[...qe,{title:`${$n?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${$n?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return x.createElement("ul",{className:"markdown-toolbar-container"},!di&&Ei.map((no,zi)=>x.createElement("li",{key:zi},no.actionName?x.createElement(Ve,je(Qe({},no),{onActionCallback:kr})):x.createElement("span",{className:"v-line"}))),Br?x.createElement("li",null,x.createElement(Ve,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:kr},x.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Sr?x.createElement(x.Fragment,null,x.createElement("li",null,x.createElement(Ve,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:kr},x.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),x.createElement("li",null,x.createElement(Ve,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:kr},x.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Ai&&x.createElement("li",null,x.createElement(Ve,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ai}`,onActionCallback:kr},x.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Ti&&x.createElement("li",null,Ti),x.createElement("li",{className:"btn-full-screen"},x.createElement(Ve,{icon:`${gi?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:gi?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:kr})))},ot=ae(76624),pt=ae(28284),bt=ae(37568),He=ae(7939),ht=Object.defineProperty,_e=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,Bt=($n,Br,Sr)=>Br in $n?ht($n,Br,{enumerable:!0,configurable:!0,writable:!0,value:Sr}):$n[Br]=Sr,Ze=($n,Br)=>{for(var Sr in Br||(Br={}))it.call(Br,Sr)&&Bt($n,Sr,Br[Sr]);if(Nt)for(var Sr of Nt(Br))at.call(Br,Sr)&&Bt($n,Sr,Br[Sr]);return $n},De=($n,Br)=>_e($n,Re(Br));const ut={labelCol:{span:4},wrapperCol:{span:20}};var $t=({callback:$n,onCancel:Br})=>{function Sr(kr){$n(kr)}return x.createElement(pt.default,De(Ze({},ut),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Sr,style:{width:500}}),x.createElement(pt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},x.createElement(bt.default,null)),x.createElement(pt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},x.createElement(bt.default,null)),x.createElement("div",{className:"flex-container flex-end"},x.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),x.createElement(He.ZP,{type:"ghost",onClick:Br},"\u53D6\u6D88")))},zt=ae(1191),tt=ae(62784),Ot=ae(62957),Rt=ae(77019),fn=ae(55018),Tt=ae(59301),mn=({callback:$n,onCancel:Br})=>{const Sr=document.createElement("canvas"),kr=Sr.getContext("2d");Sr.width=1e3,Sr.height=800,kr.fillStyle="#ffffff",kr.fillRect(0,0,Sr.width,Sr.height);const gi=Sr.toDataURL("image/png");return Tt.createElement(Ot.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Tt.createElement(Rt.Z,{style:{height:"100vh"}},Tt.createElement(fn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:gi,visible:!0,title:String(Date.now())},onOk:Ai=>{$n({src:Ai.url})},onClose:Br})))},Dt=ae(36207),En=ae(5269),rn=ae(6767),de={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},pe=ae(59301),ee=(0,x.forwardRef)(({onCancel:$n,editImgId:Br,callback:Sr},kr)=>{let gi=(0,x.useRef)(),Ai=(0,x.useRef)(),di=(0,x.useRef)(),Ti=(0,x.useRef)(!1);const Ei=(0,x.useRef)(!1);console.log("ref:",kr);const[no,zi]=(0,x.useState)(0),[fr,Ur]=(0,x.useState)("100vh");return(0,x.useEffect)(()=>{zi(1)},[]),(0,x.useImperativeHandle)(kr,()=>({setHeight:Ur})),pe.createElement("div",{ref:Ei,className:"body-overflow-initial"},pe.createElement(Dt.Z,{width:"100vw",height:fr,footer:null,closable:!0,placement:"bottom",open:!!no,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${de.drawerWrap}`,onClose:()=>{window.saveDrawData(vi=>{Sr({src:`/api/attachments/${vi}`,id:vi})})},title:pe.createElement(Rt.Z,{align:"middle"},pe.createElement(En.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),pe.createElement(En.Z,{onClick:()=>{Ur(fr==="60px"?"100vh":"60px")}},pe.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),pe.createElement(En.Z,{onClick:()=>{window.saveDrawData(vi=>{if(vi===null){rn.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}rn.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Sr({src:`/api/attachments/${vi}`,id:vi,disabledClose:!0})})}},pe.createElement(He.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},pe.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${Br||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Ai})))}),se=ae(21600),le=ae(47889),Be=ae(4875);const We=le.ZP.Group,st={margin:"0 8px"};var mt=({callback:$n,onCancel:Br})=>{function Sr(kr){$n(kr)}return x.createElement(pt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Sr},x.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},x.createElement("span",{style:st},"\u5355\u5143\u683C\u6570\uFF1A"),x.createElement("span",{style:st},"\u884C\u6570"),x.createElement(pt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},x.createElement(Be.Z,null)),x.createElement("span",{style:st},"\u5217\u6570"),x.createElement(pt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},x.createElement(Be.Z,null))),x.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},x.createElement("span",{style:st},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),x.createElement(pt.default.Item,{name:"align"},x.createElement(We,null,x.createElement(le.ZP,{value:"default"},x.createElement("i",{className:"fa fa-align-justify"})),x.createElement(le.ZP,{value:"left"},x.createElement("i",{className:"fa fa-align-left"})),x.createElement(le.ZP,{value:"center"},x.createElement("i",{className:"fa fa-align-center"})),x.createElement(le.ZP,{value:"right"},x.createElement("i",{className:"fa fa-align-right"}))))),x.createElement("div",{className:"flex-container flex-end"},x.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),x.createElement(He.ZP,{type:"ghost",onClick:Br},"\u53D6\u6D88")))},gt=ae(58755),Et=ae(91989),Lt=ae.n(Et),Ct=(0,x.forwardRef)(({use3d:$n,width:Br,height:Sr,callback:kr,showSaveButton:gi},Ai)=>{const di=(0,x.useRef)(),Ti=(0,x.useRef)(),[Ei,no]=(0,x.useState)(!1),zi=(0,x.useRef)({id:di,appName:"graphing",width:Br||1e3,height:Sr||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,x.useEffect)(()=>{Ti.current=new(Lt())(zi.current,!0),window.onload=function(){Ti.current.inject("applet_container")}},[]);const fr=()=>{var Ur=window.ggbApplet.getPNGBase64(1,!0,72);return kr&&kr(Ur),Ur};return(0,x.useEffect)(()=>{zi.current.appName=Ei?"3D":"graphing",Ti.current.inject("applet_container")},[Ei]),(0,x.useEffect)(()=>{no($n)},[$n]),(0,x.useImperativeHandle)(Ai,()=>({getImgData:fr})),x.createElement(x.Fragment,null,x.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:di}),x.createElement(Rt.Z,{align:"middle"},x.createElement(En.Z,{flex:1},x.createElement(gt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Ei,onChange:Ur=>no(Ur)})),x.createElement(En.Z,null,x.createElement(He.ZP,{size:"large",onClick:fr,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),lt=ae(69104);const Vt="link",Zt="upload-image",gn="add-flowchart",sn="draw-image",en="add-flowchart",zn="code-block",Fn="add-table",Ut="------------",an={default:Ut,left:`:${Ut}`,center:`:${Ut}:`,right:`${Ut}:`};var _n=ae(38869),Vn=ae(92232);function It(){}let Wt=0;const on=1e4,vn="\u2581",Yn="@\u2581\u2581@",Lr="@\u2581@",ri=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,zr=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function Ir($n){return/^\d+$/.test($n)?`${$n}px`:$n}const vr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Qn={[vr+"-B"]:"bold",[vr+"-I"]:"italic"},qn={[Vt]:"\u6DFB\u52A0\u94FE\u63A5",[zn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Zt]:"\u6DFB\u52A0\u56FE\u7247",[sn]:"\u6DFB\u52A0\u753B\u56FE",[gn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Fn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var lr=({defaultValue:$n="",onChange:Br,width:Sr="100%",height:kr=400,miniToolbar:gi=!1,isFocus:Ai=!1,watch:di,insertTemp:Ti,mode:Ei="markdown",id:no="markdown-editor-id",showResizeBar:zi=!1,noStorage:fr=!1,showNullButton:Ur=!1,showNullProgramButton:vi=!1,hidetoolBar:Gt=!1,fullScreen:un=!1,onBlur:wn,onCMBeforeChange:Mt,onFullScreen:dn,className:Kt="",disablePaste:pn=!1,disabled:Nn=!1,disabledFill:Pr=!1,placeholder:Yr="",values:ci="",extraUse:or,onAddBlank:cr})=>{const[sr,ti]=(0,x.useState)(null),[nr,Rn]=(0,x.useState)($n),[Ar,Bi]=(0,x.useState)(di),[Zn,yn]=(0,x.useState)(un),[Wn,rr]=(0,x.useState)(""),[pr,Kr]=(0,x.useState)(0),[Fi,fi]=(0,x.useState)(kr),[_i,hi]=(0,x.useState)(!1),[bi,wi]=(0,x.useState)(0),[Yi,pi]=(0,x.useState)(0),yi=(0,x.useRef)(),Ji=(0,x.useRef)(),io=(0,x.useRef)(),ji=(0,x.useRef)(),So=(0,x.useRef)(),ki=(0,x.useRef)(),ko=(0,dt.useDispatch)();(0,x.useEffect)(()=>{const $r=window.scrollY||window.pageYOffset;Rn(ci),sr==null||sr.setValue(ci),window.scrollTo(0,$r)},[ci]),(0,x.useEffect)(()=>{dn==null||dn(Zn)},[Zn]),(0,x.useEffect)(()=>{if(yi.current){let $r=function(yr,qr){var Ao;if(pn){qr.preventDefault();return}const Jo=qr.clipboardData;if(Jo){const _o=Jo.types.toString(),pa=Jo.items;if(_o==="Files"||Jo.types.indexOf("Files")>-1){if(qr.preventDefault(),Ei=="stex")return;try{let No=pa[1];((Ao=pa[0])==null?void 0:Ao.kind)==="file"&&(No=pa[0]);const qo=No.getAsFile(),Ro=qo.name.split(".").pop();(0,tt.I)(qo,oa=>{var da,Ka,_s;oa.id?((da=qo==null?void 0:qo.type)==null?void 0:da.indexOf("image"))>-1?oi.replaceSelection(`<img width="100%" src="/api/attachments/${oa.id}?type=${oa.content_type})" alt="" />`):((Ka=qo==null?void 0:qo.type)==null?void 0:Ka.indexOf("video"))>-1?oi.replaceSelection(`<video width="100%" controls src="/api/attachments/${oa.id}"></video>`):((_s=qo==null?void 0:qo.type)==null?void 0:_s.indexOf("pdf"))>-1?oi.replaceSelection(`<a href="/api/attachments/${oa.id}?type=${qo.type}&disposition=inline" target="_blank">${qo.name}</a>`):zr.includes(Ro)?oi.replaceSelection(`<a href="/api/attachments/${oa.id}?type=office&disposition=inline" target="_blank">${qo.name}</a>`):oi.replaceSelection(`[${qo.name}](/api/attachments/${oa.id}?type=${oa.content_type})`):(oa==null?void 0:oa.status)===401&&(document.location.href="/user/login")})}catch(No){rn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const oi=Je().fromTextArea(yi.current,{mode:Ei,lineNumbers:!gi,lineWrapping:!0,value:$n,autoCloseTags:!0,autoCloseBrackets:!0});return oi.on("keyup",function(yr,qr){qr.keyCode===8&&(yr.getValue()==""?oi.setOption("placeholder",Yr):oi.setOption("placeholder",null))}),oi.on("keydown",function(yr,qr){if(qr.keyCode===8){var Ao=Xo(yr);Ao&&qr.preventDefault()}}),Ai&&oi.focus(),oi.on("paste",$r),Nn&&oi.on("beforeChange",function(yr,qr){(qr.origin==="paste"||qr.origin==="+input")&&qr.cancel()}),ti(oi),()=>{oi.off("paste",$r)}}},[]);const co=(0,x.useCallback)(()=>{if(Ji.current)try{}catch($r){console.log($r,"---- to set md editor body height")}},[Fi,Ji,Zn]);(0,x.useEffect)(()=>{function $r(){let oi=new ze.Z(yr=>{for(let qr of yr)(qr.target.offsetHeight>0||qr.target.offsetWidth>0)&&(co(),sr.setSize("100%","100%"),sr.refresh())});return oi.observe(yi.current.parentElement),oi}if(sr){const oi=$r();return()=>{var yr,qr;(yr=yi.current)!=null&&yr.parentElement&&oi.unobserve((qr=yi.current)==null?void 0:qr.parentElement)}}},[sr,co]),(0,x.useEffect)(()=>{if(sr){let $r=[];for(const[oi,yr]of Object.entries(Qn)){let qr={[oi]:()=>{wo(yr)}};$r.push(qr),sr.addKeyMap(qr)}return()=>{for(let oi of $r)sr.removeKeyMap(oi)}}},[sr]),(0,x.useEffect)(()=>{un!==Zn&&yn(un)},[un]),(0,_n.Z)(()=>{if(!fr&&pr>0){let $r=new Date().getTime(),oi=window.sessionStorage.getItem(no);$r>=pr+on&&(!oi||oi!==nr)&&(window.sessionStorage.setItem(no,nr),hi(!0))}},on),(0,x.useEffect)(()=>{Bi(di)},[sr,di]),(0,x.useEffect)(()=>{sr&&Ai&&sr.focus()},[sr,Ai]),(0,x.useEffect)(()=>{if(Ar&&sr){let $r=function(yr){let qr=yr.target;if(ji.current){let Ao=qr.scrollTop/qr.scrollHeight;ji.current.scrollTop=ji.current.scrollHeight*Ao}};const oi=sr.getScrollerElement();return oi.addEventListener("scroll",$r),()=>{oi.removeEventListener("scroll",$r)}}},[sr,Ar]),(0,x.useEffect)(()=>{if(sr&&Mt){let $r=function(oi,yr){Mt(oi,yr)};return sr.on("beforeChange",$r),()=>{sr.off("beforeChange",$r)}}},[sr,Mt]),(0,x.useEffect)(()=>{if(sr&&wn){let $r=function(){wn(sr.getValue())};return sr.on("blur",$r),()=>{sr.off("blur",$r)}}},[sr,wn]);function Xo($r,oi){var yr=$r.getDoc(),qr=yr.getCursor(),Ao=yr.getLine(qr.line),Jo=Ao.charAt(qr.ch-1),_o=Ao.lastIndexOf("@\u2581@",qr.ch),pa=Ao.lastIndexOf("@\u2581\u2581@",qr.ch),No=_o>pa?_o:pa,qo=_o>pa?3:4;if(Yn.indexOf(Jo)===-1)return null;if(console.log("change1:",oi,$r,Ao,qr,No,_o,pa,Jo),No>=0&&qr.ch-No<5){var Ro=No+qo;return yr.replaceRange("",{line:qr.line,ch:No},{line:qr.line,ch:Ro}),{line:qr.line,ch:Ro}}return null}(0,x.useEffect)(()=>{if(sr){let $r=function(oi,yr){const qr=oi.getValue();Rn(qr),Kr(new Date().getTime()),oi.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Br&&(vi?Br(qr,Jr(qr)):Br(qr))};return sr.on("change",$r),()=>{sr.off("change",$r)}}},[sr,Br]),(0,x.useEffect)(()=>{if(sr)if($n==null)sr.setValue(""),Rn("");else{const $r=window.scrollY||window.pageYOffset;$n!==sr.getValue()&&(sr.setValue($n),Rn($n),sr.setCursor(Nn?1:sr.lineCount(),0),window.scrollTo(0,$r))}},[sr,$n]);const wo=(0,x.useCallback)($r=>{const oi=sr.getCursor(),yr=sr.getSelection();let qr=yr.split(`
`);switch($r){case"bold":return sr.replaceSelection("**"+yr+"**"),yr===""&&sr.setCursor(oi.line,oi.ch+2),sr.focus();case"italic":return sr.replaceSelection("*"+yr+"*"),yr===""&&sr.setCursor(oi.line,oi.ch+1),sr.focus();case"code":return sr.replaceSelection("`"+yr+"`"),yr===""&&sr.setCursor(oi.line,oi.ch+1),sr.focus();case"inline-latex":return(0,Vn.Ye)(ko)?void 0:(rr("inline-latex"),sr.focus());case"latex":return sr.replaceSelection("```latex\n"+yr+"\n```"),sr.setCursor(oi.line+1,yr.length+1),sr.focus();case"line-break":return sr.replaceSelection(`<br/>
`),sr.focus();case"list-ul":return yr===""?sr.replaceSelection("- "+yr):sr.replaceSelection(qr.map(Ao=>Ao===""?"":`- ${Ao}`).join(`
`)),sr.focus();case"list-ol":return yr===""?sr.replaceSelection("1. "+yr):sr.replaceSelection(qr.map((Ao,Jo)=>Ao===""?"":`${Jo+1}. ${Ao}`).join(`
`)),sr.focus();case"add-null-ch":cr==null||cr();return;case"add-signal":return yr===""&&sr.setCursor(oi.line,oi.ch),sr.replaceSelection(Lr),sr.focus();case"add-multiple":return yr===""&&sr.setCursor(oi.line,oi.ch),sr.replaceSelection(Yn),sr.focus();case"inster-template-1":return yr===""&&sr.setCursor(oi.line,oi.ch),sr.replaceSelection(ri),sr.focus();case"eraser":return sr.setValue(""),sr.focus();case"trigger-watch":return Bi(!Ar),sr.focus();case"trigger-full-screen":return yn(!Zn),sr.focus();case Vt:rr(Vt);return;case zn:rr(zn);return;case Zt:rr(Zt);return;case sn:rr(sn);return;case"maths-latex":if((0,Vn.Ye)(ko))return;rr("maths-latex");return;case gn:So.current="",sessionStorage.removeItem("file_id"),rr(gn);return;case Fn:rr(Fn);return;default:throw new Error}},[sr,Ar,Zn]),eo=(0,x.useCallback)(($r,oi)=>{var yr,qr,Ao,Jo,_o,pa;$r!=null&&$r.disabledClose||rr("");const{src:No,alt:qo,id:Ro}=$r||{};switch(Wn){case Vt:const{title:js,link:as}=$r;return sr.replaceSelection(`[${js}](${as})`),sr.focus();case zn:const{language:fs,content:Mo}=$r;return sr.replaceSelection(["```"+fs,Mo,"```"].join(`
`)),sr.focus();case"maths-latex":for(var oa=atob($r),da=new Uint8Array(oa.length),Ka=0;Ka<oa.length;Ka++)da[Ka]=oa.charCodeAt(Ka);var _s=new Blob([da],{type:"image/png"});(0,tt.I)(_s,yl=>{yl.id?sr.replaceSelection(`![,](/api/attachments/${yl.id}?type=${yl.content_type})`):(yl==null?void 0:yl.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,Vn.Ye)(ko))return;sr.replaceSelection("`$$"+$r+"$$`");break;case en:if(!Ro)return;sr.getValue().indexOf(No)===-1?sr.replaceSelection(`<center><img id="${Ro}" width="80%" src="${No}" class="draw-flowchart" alt="${qo||""}" /></center>`):document.getElementById(Ro).src=se.Z.API_SERVER+No+"?t="+Date.now();break;case Zt:case sn:const go=oi,Fa=(Ao=(qr=(yr=go==null?void 0:go.name)==null?void 0:yr.split("."))==null?void 0:qr.pop)==null?void 0:Ao.call(qr);return((Jo=go==null?void 0:go.type)==null?void 0:Jo.indexOf("image"))>-1||!(go!=null&&go.type)?go!=null&&go.align||go!=null&&go.width?sr.replaceSelection(`<p style="text-align:${go.align||"initial"}"><img width="${go.width?go.width+"%":"initial"}" src="${No}" alt="${qo||""}" /></p>`):sr.replaceSelection(`<img width="100%" src="${No}" alt="${qo||""}" />`):((_o=go==null?void 0:go.type)==null?void 0:_o.indexOf("video"))>-1?sr.replaceSelection(`<video width="100%" controls src="${No}"></video>`):((pa=go==null?void 0:go.type)==null?void 0:pa.indexOf("pdf"))>-1?sr.replaceSelection(`<a href="${No}?type=${go.type}&disposition=inline" target="_blank">${go.name}</a>`):zr.includes(Fa)?sr.replaceSelection(`<a href="${No}?type=office&disposition=inline" target="_blank">${go.name}</a>`):sr.replaceSelection(`[${go.name}](${No})`),sr.focus();case Fn:const{row:gs,col:nl,align:rl}=$r;let il=`
`;for(let yl=0;yl<gs;yl++){let su=[],ol=[];for(let jl=0;jl<nl;jl++)yl===1&&ol.push(an[rl]),su.push(" ");yl===1&&(il+=`| ${ol.join(" | ")} |
`),il+=`| ${su.join(nl===1?"":" | ")} |
`}return sr.replaceSelection(il+`
`),sr.focus();default:throw new Error}},[sr,Wn]),bo=(0,x.useMemo)(()=>{switch(Wn){case Vt:return x.createElement($t,{callback:eo,onCancel:Go});case zn:return x.createElement(zt.Z,{callback:eo,onCancel:Go});case Zt:return x.createElement(tt.Z,{callback:eo,onCancel:Go});case gn:return x.createElement(ee,{editImgId:So.current,callback:eo,onCancel:Go});case Fn:return x.createElement(mt,{callback:eo,onCancel:Go});case"maths-latex":return x.createElement(Ct,{showSaveButton:!0,callback:eo});case"inline-latex":return x.createElement(lt.Z,{showSaveButton:!0,callback:eo});default:return null}},[Wn]);function Go(){rr("")}(0,x.useEffect)(()=>{if(io.current){let $r=function(_o){Ao=!0,Jo=_o.pageY},oi=function(){Ao=!1},yr=function(_o){if(Ao){let pa=_o.pageY-Jo;pa<0&&(pa=0),pa>300&&(pa=300);let No=kr+pa+"px";fi(No)}},qr=io.current,Ao=!1,Jo=0;return qr.addEventListener("mousedown",$r),document.addEventListener("mousemove",yr),document.addEventListener("mouseup",oi),()=>{qr.removeEventListener("mousedown",$r),document.removeEventListener("mousemove",yr),document.removeEventListener("mouseup",oi)}}},[sr,io]),(0,x.useEffect)(()=>{fi(kr)},[kr]);const Tn=Ir(Sr),Lo=Ir(Fi),Gi={width:Tn,height:Lo},jr=(0,x.useMemo)(()=>{if(pr){let $r=new Date(pr),oi=$r.getHours(),yr=$r.getMinutes(),qr=$r.getSeconds();return oi=oi<10?"0"+oi:oi,yr=yr<10?"0"+yr:yr,qr=qr<10?"0"+qr:qr,`${oi}:${yr}:${qr}`}return 0},[pr]),Jr=$r=>{const oi=[];if(vi){let yr=-1;$r=$r.replace(/(@▁▁@|@▁@)/g,function(qr,Ao,Jo){oi.push({multiLine:qr!==Lr})})}return oi};function ni(){window.sessionStorage.removeItem(no),hi(!1),Kr(0)}function Wr(){hi(!1),Kr(0),sr.setValue(window.sessionStorage.getItem(no))}(0,x.useEffect)(()=>{qn[Wn]&&Wn!==sn&&Wn!==gn&&setTimeout(()=>{const $r=document.getElementsByClassName("markdown-popup-form")[0],oi=window.innerWidth/2-$r.offsetWidth/2,yr=window.innerHeight/2-$r.offsetHeight/2;wi(oi),pi(yr)},0)},[Wn]);const Ui=$r=>{$r.preventDefault();const oi=$r.clientX-bi,yr=$r.clientY-Yi;document.body.onmousemove=qr=>{let Ao=qr.clientX-oi,Jo=qr.clientY-yr;const _o=document.getElementsByClassName("markdown-popup-form")[0],pa=window.innerWidth-_o.offsetWidth,No=window.innerHeight-_o.offsetHeight;Ao=Math.max(0,Math.min(Ao,pa)),Jo=Math.max(0,Math.min(Jo,No)),to(qr.clientX,qr.clientY,oi,yr)&&(wi(Ao),pi(Jo))},document.body.onmouseup=function(){document.body.onmousemove=null}},to=($r,oi,yr,qr)=>{const Ao=document.body.clientHeight,Jo=document.body.clientWidth;return $r<20&&yr>$r||$r>Jo-20&&yr<$r||oi<20&&qr>oi||oi>Ao-20&&qr<oi?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return x.createElement(x.Fragment,null,x.createElement("div",{className:"markdown-editor-wrapper",ref:Ji},x.createElement("div",{className:`markdown-editor-container ${Kt} ${Ar?"on-preview":""} ${gi?"mini":""} ${Zn?"full-screen":""}`,style:Gi},x.createElement(ct,{insertTemp:Ti,watch:Ar,fullScreen:Zn,showNullButton:Ur,showNullProgramButton:vi,onActionCallback:wo,hidetoolBar:Gt,extraUse:or}),x.createElement("div",{className:"markdown-editor-body"},x.createElement("div",{className:"codemirror-container"},x.createElement("textarea",{ref:yi,placeholder:Yr})),Ar?x.createElement("div",{ref:ji,className:"preview-container"},Ei==="stex"&&x.createElement(Me,{value:nr}),Ei!=="stex"&&x.createElement(ve.Z,{edit:!0,disabledFill:Pr,showProgramFill:vi,value:nr,openEditor:$r=>{var oi;So.current=$r,(oi=ki.current)==null||oi.setHeight("100vh"),setTimeout(()=>{rr("add-flowchart")},150)}})):null))),zi?x.createElement("a",{ref:io,className:"editor-resize"}):null,Wn===sn&&x.createElement(mn,{callback:eo,onCancel:Go}),Wn===gn&&x.createElement(ee,{ref:ki,editImgId:So.current,callback:eo,onCancel:Go}),x.createElement(ot.Z,null,qn[Wn]&&Wn!==sn&&Wn!==gn?x.createElement(Ot.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:bi,top:Yi},title:x.createElement("div",{style:{cursor:"move"},onMouseDown:Ui},qn[Wn]),open:!0,onCancel:Go,footer:null,destroyOnClose:!0,width:Wn===gn?"1200px":null,height:Wn===gn?"80vh":null,className:"markdown-popup-form"},bo):null))}},62784:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return qe},I:function(){return ct}});var x=ae(28284),dt=ae(6767),Ie=ae(37568),Je=ae(44104),ze=ae(4875),Le=ae(47889),Ue=ae(7939),he=ae(35976),xe=ae(59301),oe=ae(59301),Oe=Object.defineProperty,ve=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,Ce=(ot,pt,bt)=>pt in ot?Oe(ot,pt,{enumerable:!0,configurable:!0,writable:!0,value:bt}):ot[pt]=bt,Ee=(ot,pt)=>{for(var bt in pt||(pt={}))Te.call(pt,bt)&&Ce(ot,bt,pt[bt]);if(Se)for(var bt of Se(pt))we.call(pt,bt)&&Ce(ot,bt,pt[bt]);return ot},ke=(ot,pt)=>ve(ot,Me(pt));const{useForm:Ke}=x.default,Qe={width:280,marginRight:10},je={labelCol:{span:5},wrapperCol:{span:19}};var qe=({callback:ot,onCancel:pt})=>{const[bt]=Ke();let He=(0,xe.useRef)();function ht(Nt){He.current.width=bt.getFieldValue("width"),He.current.align=bt.getFieldValue("align"),ot(Nt,He.current)}function _e(Nt,it){if(Nt.status===-1){dt.ZP.error(Nt.message);return}bt.setFieldsValue({src:`/api/attachments/${Nt.id}`,type:it.type})}function Re(Nt){let it=Nt.target.files[0];He.current=it,ct(it,_e)}return oe.createElement(x.default,ke(Ee({form:bt},je),{className:"upload-image-panel",onFinish:ht,style:{width:470,overflow:"hidden"}}),oe.createElement(x.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},oe.createElement("div",{className:"flex-container"},oe.createElement(x.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},oe.createElement(Ie.default,{style:Qe})),oe.createElement(Ve,{onFileChange:Re}))),oe.createElement(x.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},oe.createElement(Ie.default,{style:{width:264}})),oe.createElement(x.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},oe.createElement(Je.Z,null,oe.createElement(x.default.Item,{name:"width",style:{margin:0}},oe.createElement(ze.Z,{style:{width:264}})),oe.createElement("span",{className:"ml8"},"%"))),oe.createElement(x.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},oe.createElement(Le.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),oe.createElement("aside",null,oe.createElement(x.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},oe.createElement(Ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(Ue.ZP,{type:"default",onClick:pt},"\u53D6\u6D88"))))};function Ve({onFileChange:ot}){return oe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",oe.createElement("input",{type:"file",onChange:ot}))}function ct(ot,pt){if(!ot)throw new String("\u6CA1\u6709\u6587\u4EF6");let bt=new FormData;bt.append("editormd-image-file",ot),bt.append("file_param_name","editormd-image-file"),bt.append("byxhr","true");var He=new window.XMLHttpRequest;He.withCredentials=!0,He.addEventListener("load",function(ht){pt(JSON.parse(ht.target.responseText),ot)},!1),He.addEventListener("error",function(ht){console.error(ht)},!1),He.open("POST",`${he.KI}/api/attachments.json`),He.send(bt)}},76624:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return Ie}});var x=ae(59301),dt=ae(4676);class Ie extends x.Component{constructor(ze){super(ze);const Le=window.document;this.node=Le.createElement("div"),Le.body.appendChild(this.node)}render(){const{children:ze}=this.props;return(0,dt.createPortal)(ze,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},79802:function(Jn,kt,ae){"use strict";ae.d(kt,{SV:function(){return mn},ZP:function(){return Tt}});var x=ae(59301),dt=ae(76374);const Ie={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Je={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},ze={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std",content:["using namespace std"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},Le={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},Ue={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
`)}]};var he=ae(53184),xe=ae.n(he),oe=(Dt,En,rn)=>new Promise((de,pe)=>{var ie=le=>{try{se(rn.next(le))}catch(Be){pe(Be)}},ee=le=>{try{se(rn.throw(le))}catch(Be){pe(Be)}},se=le=>le.done?de(le.value):Promise.resolve(le.value).then(ie,ee);se((rn=rn.apply(Dt,En)).next())});const Oe={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},ve=(Dt,En,rn,de)=>{const pe=En.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:rn.lineNumber,endColumn:rn.column});return Array.from(new Set(pe.match(/\b\w{2,}\b/g)||[])).map(ee=>({label:ee,kind:Dt.languages.CompletionItemKind.Text,insertText:ee,range:de}))},Me=(Dt,En,rn,de)=>{Dt.languages.registerCompletionItemProvider(En,{provideCompletionItems(pe,ie){const ee=pe.getWordUntilPosition(ie),se={startLineNumber:ie.lineNumber,endLineNumber:ie.lineNumber,startColumn:ee.startColumn,endColumn:ee.endColumn},le=pe.getLineContent(ie.lineNumber).substring(ee.startColumn-2,ee.endColumn);return{suggestions:[...ve(Dt,pe,ie,se),...rn.map(We=>({label:We,kind:Dt.languages.CompletionItemKind.Keyword,documentation:We,insertText:We,insertTextRules:Dt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se})),...de.map(We=>({label:We.label,kind:Dt.languages.CompletionItemKind.Snippet,documentation:We.content,insertText:le.startsWith("#")?We.content.replace(/#/,""):We.content,insertTextRules:Dt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se}))]}}})};var Se=Dt=>{Oe.languages.forEach(En=>{Dt.languages.registerDocumentFormattingEditProvider(En,{provideDocumentFormattingEdits(rn){return oe(this,null,function*(){const de=xe()(rn.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:rn.getFullModelRange(),text:de}]})}})}),Me(Dt,"java",Je.keywords,Je.quickKey),Me(Dt,"cpp",ze.keywords,ze.quickKey),Me(Dt,"c",Ie.keywords,[]),Me(Dt,"python",Le.keywords,Le.quickKey),Me(Dt,"scala",Ue.keywords,Ue.quickKey)};const Te="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var we=Object.defineProperty,Ce=(Dt,En,rn)=>En in Dt?we(Dt,En,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Dt[En]=rn,Ee=(Dt,En,rn)=>Ce(Dt,typeof En!="symbol"?En+"":En,rn);const ke=class Ov{constructor(En,rn,de){this.placeholder=En,this.editor=rn,this.monaco=de,rn.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Ov.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};Ee(ke,"ID","editor.widget.placeholderHint");var Qe=ke,je=ae(96236),qe=ae(6767),Ve=ae(25399),ct=ae(89392),ot=ae(82033),pt=ae(56102),bt=Object.defineProperty,He=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,it=(Dt,En,rn)=>En in Dt?bt(Dt,En,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Dt[En]=rn,at=(Dt,En)=>{for(var rn in En||(En={}))Re.call(En,rn)&&it(Dt,rn,En[rn]);if(_e)for(var rn of _e(En))Nt.call(En,rn)&&it(Dt,rn,En[rn]);return Dt},Bt=(Dt,En)=>He(Dt,ht(En)),Ze=(Dt,En)=>{var rn={};for(var de in Dt)Re.call(Dt,de)&&En.indexOf(de)<0&&(rn[de]=Dt[de]);if(Dt!=null&&_e)for(var de of _e(Dt))En.indexOf(de)<0&&Nt.call(Dt,de)&&(rn[de]=Dt[de]);return rn},De=(Dt,En,rn)=>new Promise((de,pe)=>{var ie=le=>{try{se(rn.next(le))}catch(Be){pe(Be)}},ee=le=>{try{se(rn.throw(le))}catch(Be){pe(Be)}},se=le=>le.done?de(le.value):Promise.resolve(le.value).then(ie,ee);se((rn=rn.apply(Dt,En)).next())});function ut(Dt){return/^\d+$/.test(Dt)?`${Dt}px`:Dt}function $t(){}let zt=!1;const tt={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Ot(Dt=[]){let En=Dt;if(Array.isArray(Dt)){for(let rn=0;rn<Dt.length;rn++){let de=tt[Dt[rn]];if(de)return de}return En[0]}return tt[En]||En}let Rt=null;const fn=()=>De(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Dt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Dt)}});var Tt=Dt=>{var En=Dt,{width:rn="100%",height:de="100%",value:pe,language:ie="javascript",style:ee={},options:se={},overrideServices:le={},theme:Be="vs-dark",onEditBlur:We,isCopy:st=!1,onSave:mt,autoHeight:gt=!1,forbidCopy:Et=!1,forbidCopyTips:Lt,onChange:jt=$t,editorDidMount:Ct=$t,onFocus:lt=$t,onBreakPoint:Vt=$t,breakPointValue:Zt=[],filename:gn="educoder.txt",errorLine:sn,errorContent:en="",highlightLine:zn,openBreakPoint:Fn=!1,placeholder:Ut="",showMiniMap:an=!0}=En,_n=Ze(En,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Vn=(0,x.useRef)(),It=(0,x.useRef)({}),Wt=(0,x.useRef)(),on=(0,x.useRef)(),vn=(0,x.useRef)([]),Yn=(0,x.useRef)(!1),Lr=(0,x.useRef)(),ri=(0,x.useRef)(),zr=(0,x.useRef)(!1),[Ir,tr]=(0,x.useState)(!1);function vr(){let fr;return Vn.current&&(fr=new dt.Z(Ur=>{for(let vi of Ur)(vi.target.offsetHeight>0||vi.target.offsetWidth>0)&&It.current.instance.layout()}),fr.observe(Vn.current)),fr}function Qn(){qe.ZP.warning({content:decodeURIComponent(Lt||Te),key:"monaco-editor-tip"})}const qn=()=>{let fr=It.current.instance;if(pe!=null&&fr&&Ir){const Ur=fr.getModel();Ur&&pe!==Ur.getValue()&&(zt=!0,Ur.setValue(pe),fr.layout(),zt=!1)}};(0,x.useEffect)(()=>{const fr=ot.Z.subscribe("formatDocument",Ur=>{var vi;let Gt=It.current.instance;(vi=Gt==null?void 0:Gt.getAction)==null||vi.call(Gt,"editor.action.formatDocument").run()});return window.updateMonacoValue=Ur=>{jt(Ur)},fr},[]),(0,x.useEffect)(()=>{var fr;let Ur=It.current.instance;on.current&&clearTimeout(on.current),on.current=setTimeout(()=>{qn()},500),pe&&(pe!=null&&pe.length)&&((fr=Ur==null?void 0:Ur.updateOptions)==null||fr.call(Ur,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(pe.split(/\r\n|\r|\n/g).length))+3,5)}))},[pe,Ir,It.current]),(0,x.useEffect)(()=>{if(sn&&It.current&&It.current.instance){let Ur=It.current.instance;Ur.changeViewZones(function(vi){var Gt=document.createElement("div");Gt.style.padding="10px 20px",Gt.style.width="calc(100% - 20px)",Gt.className="my-error-line-wrp",Gt.innerHTML=en,vi.addZone({afterLineNumber:sn||11,heightInLines:3,domNode:Gt})});var fr={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Ur.addOverlayWidget(fr),Ur.revealPositionInCenter({lineNumber:20,column:1})}},[sn,It.current,Ir]);const lr=(fr="",Ur)=>{if(!fr||fr.trim()==="")return!0;const Gt=It.current.instance.getModel().getLineTokens(Ur);let un=!1;for(let wn=0;wn<2;wn++)Gt.getStandardTokenType(wn)===1&&(un=!0);return un};(0,x.useEffect)(()=>{var fr;const Ur=(fr=It.current)==null?void 0:fr.instance;if(Ur&&Ir&&Et){const vi=Ur.onDidBlurEditorWidget(()=>{zr.current=!1}),Gt=Ur.onDidFocusEditorText(()=>{zr.current=!0});return()=>{vi.dispose(),Gt.dispose()}}},[It.current,Ir,Et]),(0,x.useEffect)(()=>{var fr;if((fr=It.current)!=null&&fr.instance&&Ir&&Fn){let Ur=It.current.instance,vi=Ur.getModel();if(!vi)return;(()=>{var or;let cr=[],sr=[];const ti=vi.getAllDecorations();for(let Rn of ti)Rn.options.className==="highlighted-line"&&(cr.push((or=Rn==null?void 0:Rn.range)==null?void 0:or.startLineNumber),sr.push(Rn==null?void 0:Rn.id));if(zn===cr[0])return;vi.deltaDecorations(sr,[]);const nr=vi.getLineCount();zn&&zn<=nr&&(Ur.deltaDecorations([],[{range:new Rt.Range(zn,1,zn,vi.getLineMaxColumn(zn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Ur.revealLineInCenter(zn))})();const un=(or=!1)=>{var cr;let sr=[],ti=[];const nr=vi.getAllDecorations();for(let Rn of nr)Rn.options.linesDecorationsClassName==="breakpoints-select"&&(sr.push((cr=Rn==null?void 0:Rn.range)==null?void 0:cr.startLineNumber),ti.push(Rn==null?void 0:Rn.id));if(or)return{lines:sr,ids:ti};Vt(sr)},wn=or=>De(void 0,null,function*(){let cr={range:new Rt.Range(or,1,or,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield vi.deltaDecorations([],[cr]),un()}),Mt=or=>De(void 0,null,function*(){let cr=[];const sr=Ur.getLineDecorations(or);for(let ti of sr)ti.options.linesDecorationsClassName==="breakpoints-select"&&cr.push(ti.id);yield vi.deltaDecorations(cr,[]),un()}),dn=or=>{let cr=Ur.getLineDecorations(or);for(let sr of cr)if(sr.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ct.isEqual)(Zt,un(!0).lines)){vi.deltaDecorations(un(!0).ids,[]);const or=Zt.map(cr=>({range:new Rt.Range(cr,1,cr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));vi.deltaDecorations([],or)}const Kt=Ur.onDidChangeModelContent(or=>{let cr=Ur.getPosition();if(cr){let sr=cr.lineNumber;clearTimeout(ri.current),ri.current=setTimeout(()=>{lr(vi.getLineContent(sr),sr)?Mt(sr):dn(sr)?(Mt(sr),wn(sr)):un()},100)}}),pn=Ur.onMouseDown(or=>{var cr,sr,ti;if(or.target.detail&&((ti=(sr=(cr=or.target)==null?void 0:cr.element)==null?void 0:sr.className)!=null&&ti.includes("line-numbers"))){let nr=or.target.position.lineNumber;if(lr(vi.getLineContent(nr),nr))return;dn(nr)?Mt(nr):wn(nr)}}),Nn=or=>{let cr={range:new Rt.Range(or,1,or,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};vn.current=Ur.deltaDecorations(vn.current,[cr])},Pr=()=>{vn.current=Ur.deltaDecorations(vn.current,[])},Yr=Ur.onMouseMove(or=>{var cr,sr,ti;if(Pr(),or.target.detail&&((ti=(sr=(cr=or.target)==null?void 0:cr.element)==null?void 0:sr.className)!=null&&ti.includes("line-numbers"))){let nr=or.target.position.lineNumber;if(lr(vi.getLineContent(nr),nr))return;Nn(nr)}}),ci=Ur.onMouseLeave(()=>{Pr()});return()=>{Kt.dispose(),pn.dispose(),Yr.dispose(),ci.dispose()}}},[It.current,Ir,Zt,zn,Fn,ie]),(0,x.useEffect)(()=>{var fr;(fr=It.current)!=null&&fr.instance&&Fn&&It.current.instance.setPosition({lineNumber:0,column:0})},[zn]);function $n(){let fr=It.current.instance;if(fr){const Ur=fr.getSelection(),vi=It.current.pastePos||{},Gt=new Rt.Range(vi.startLineNumber||Ur.endLineNumber,vi.startColumn||Ur.endColumn,vi.endLineNumber||Ur.endLineNumber,vi.endColumn||Ur.endColumn);setTimeout(()=>{fr.executeEdits("",[{range:Gt,text:""}])},300)}}function Br(fr){(window.navigator.platform.match("Mac")?fr.metaKey:fr.ctrlKey)&&fr.keyCode==83&&(fr.preventDefault(),mt())}const Sr=()=>{if(gt&&It.current.instance){const fr=It.current.instance.getContentHeight();no(fr<de?de:fr)}else no(de)};function kr(fr){var Ur=document.createEvent("MouseEvents");Ur.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),fr.dispatchEvent(Ur)}const gi=fr=>{if(!zr.current)return;const{keyCode:Ur,ctrlKey:vi,metaKey:Gt,target:un,type:wn}=fr;return(wn==="paste"||(Ur===67||Ur===86)&&(Gt||vi))&&un.nodeName==="TEXTAREA"&&(Qn(),fr.preventDefault()),!1};function Ai(fr,Ur){var vi=window.URL||window.webkitURL||window,Gt=new Blob([Ur]),un=document.createElementNS("http://www.w3.org/1999/xhtml","a");un.href=vi.createObjectURL(Gt),un.download=fr,kr(un)}(0,x.useEffect)(()=>{Sr()},[Sr]),(0,x.useEffect)(()=>{Vn.current&&!Ir&&Promise.all([ae.e(8909),ae.e(8845)]).then(ae.bind(ae,71448)).then(fr=>{try{Rt=fr,It.current.instance=Rt.editor.create(Vn.current,{value:pe,language:Ot(ie),theme:Be,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:an||!1}},le);const Ur=It.current.instance;let un=[...je.BH._menuItems].find(Kt=>Kt[0]._debugName=="EditorContext")[1],wn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Mt=(Kt,pn)=>{var Nn,Pr;let Yr=Kt._first;do pn.includes((Pr=(Nn=Yr.element)==null?void 0:Nn.command)==null?void 0:Pr.id)&&Kt._remove(Yr);while(Yr=Yr.next)};if(Ct(Ur,Rt),setTimeout(()=>{Sr(),It.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Ai(gn||"educoder.txt",Ur.getValue())}})},500),It.current.subscription=Ur.onDidChangeModelContent(Kt=>{Yn.current?clearTimeout(Lr.current):(Sr(),jt(Ur.getValue(),Kt)),Lr.current=setTimeout(()=>{Yn.current=!1},500)}),window.Monaco||Se(Rt,Ot(ie)),Et&&(Mt(un,wn),Vn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",gi),window.removeEventListener("paste",gi),window.addEventListener("keydown",gi),window.addEventListener("paste",gi)),window.Monaco=Rt,We&&Ur.onDidBlurEditorWidget(()=>{We(Ur.getValue())}),lt&&Ur.onDidFocusEditorText(()=>{Et&&fn(),lt(Ur.getValue())}),Et){fn();try{Ur.onDidPaste(Kt=>{const pn=Ur.getSelection(),Nn=It.current.pastePos||{},Pr=new Rt.Range(Nn.startLineNumber||pn.endLineNumber,Nn.startColumn||pn.endColumn,Nn.endLineNumber||pn.endLineNumber,Nn.endColumn||pn.endColumn);Ur.executeEdits("",[{range:Kt.range,text:""}])})}catch(Kt){}}let dn=vr();return Ut&&typeof Ut=="string"&&new Qe(Ut,Ur,Rt),tr(!0),()=>{const Kt=It.current.instance;Kt.dispose();const pn=Kt.getModel();pn&&pn.dispose(),It.current.subscription&&It.current.subscription.dispose(),dn.unobserve(Vn.current)}}catch(Ur){}})},[]),(0,x.useEffect)(()=>{if(It.current.instance&&Ir)return document.addEventListener("keydown",Br,!1),()=>{document.removeEventListener("keydown",Br)}},[mt,Ir]),(0,x.useEffect)(()=>{let fr=It.current.instance;if(fr&&Ir){let Ur=Ot(ie);Rt.editor.setModelLanguage(fr.getModel(),Ur)}},[ie,Ir]),(0,x.useEffect)(()=>{It.current.instance&&Ir&&Rt.editor.setTheme(Be)},[Be,Ir]),(0,x.useEffect)(()=>{let fr=It.current.instance;Wt.current=se,fr&&Ir&&(fr.updateOptions(at({},se)),setTimeout(()=>{fr.getModel().updateOptions(at({},se))},200))},[JSON.stringify(se),Ir]),(0,x.useEffect)(()=>{let fr=It.current.instance;fr&&Ir&&fr.layout()},[rn,de,Ir]);const[di,Ti]=(0,x.useState)(ut(rn)),[Ei,no]=(0,x.useState)(ut(de)),zi=Bt(at({},ee),{width:di,height:Ei,position:"relative"});return x.createElement("div",{className:"my-monaco-editor",ref:Vn,style:zi,onFocus:()=>{Et&&fn()}},st&&x.createElement(pt.CopyToClipboard,{text:pe,onCopy:()=>qe.ZP.success("\u590D\u5236\u6210\u529F")},x.createElement(Ve.Z,{title:"\u590D\u5236\u4EE3\u7801"},x.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},x.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function mn({width:Dt="100%",height:En="100%",original:rn,modified:de,language:pe,options:ie={}}){const ee=(0,x.useRef)(),[se,le]=(0,x.useState)(null);function Be(gt){let Et;return ee.current&&(Et=new dt.Z(Lt=>{for(let jt of Lt)(jt.target.offsetHeight>0||jt.target.offsetWidth>0)&&gt.layout()}),Et.observe(ee.current)),Et}(0,x.useEffect)(()=>(ee.current&&Promise.all([ae.e(8909),ae.e(9404)]).then(ae.bind(ae,2550)).then(gt=>{Rt=gt;const Et=Rt.editor.createDiffEditor(ee.current,Bt(at({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ie),{wordWrap:!0}));le(Et);let Lt=Be(Et);return()=>{Et.dispose();const jt=Et.getModel();jt&&jt.dispose(),Lt.unobserve(ee.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,x.useEffect)(()=>{se&&se.setModel({original:Rt.editor.createModel(rn,pe),modified:Rt.editor.createModel(de,pe)})},[rn,de,pe,se]);const We=ut(Dt),st=ut(En),mt={width:We,height:st};return x.createElement("div",{className:"my-diff-editor",ref:ee,style:mt})}},48289:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return Oe}});var x={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},dt=ae(29787),Ie=ae(25399),Je=ae(89787),ze=ae(92310),Le=ae.n(ze),Ue=ae(92232),he=ae(77740),xe=ae(59301),Oe=({className:ve,dataSource:Me=[],col:Se=4,right:Te,bottom:we=23,precision:Ce=0,wrapWidth:Ee=1200,trackEventItems:ke,loading:Ke,onRemove:Qe=()=>{},isCurrent:je=!0,showProgress:qe=!1,showAlias:Ve=!1,category:ct,hiddenClick:ot})=>{const pt=Math.floor((Ee-(Se-1)*Te)/Se),bt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png",ptclass:"sprite-70",swclass:"sprite-68"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png",ptclass:"sprite-60",swclass:"sprite-65"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png",ptclass:"sprite-58",swclass:"sprite-63"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png",ptclass:"sprite-62",swclass:"sprite-67"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png",ptclass:"sprite-61",swclass:"sprite-66"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png",ptclass:"sprite-59",swclass:"sprite-64"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png",ptclass:"sprite-71",swclass:"sprite-69"}];return xe.createElement(dt.Z,{spinning:Ke},xe.createElement("div",{className:Le()(x.list,ve)},!!(Me!=null&&Me.length)&&(Me==null?void 0:Me.map((He,ht)=>{var _e,Re,Nt,it,at,Bt,Ze,De,ut,$t,zt,tt,Ot;const{name:Rt,id:fn,identifier:Tt,featured:mn,school_name:Dt,image_url:En,excellent:rn,is_plan:de}=He;return xe.createElement("div",{key:fn,className:je&&qe?x.wrapisCurrent:x.wrap,style:{width:pt,marginRight:(1+ht)%Se===0?0:Te+Ce,marginBottom:we}},xe.createElement("a",{className:x.li,onClick:pe=>{pe.preventDefault(),pe.stopPropagation(),ke&&(0,Ue.L9)([ke]),(0,Ue.xg)(`/paths/${Tt}`)}},xe.createElement("div",{className:x.img},xe.createElement("img",{className:x.cover,src:`${En}`}),(_e=He==null?void 0:He.subject_tags)==null?void 0:_e.map((pe,ie)=>{var ee,se;if(ie===0){const Be=(ee=bt.find(We=>We.name==pe))==null?void 0:ee.swclass;return xe.createElement("span",{className:`sprite ${Be} ${x.sign}`,style:{left:"-4px"}})}const le=(se=bt.find(Be=>Be.name==pe))==null?void 0:se.ptclass;return xe.createElement("span",{className:`sprite ${le} ${x.sign}`,style:{left:`${48+52*(ie-1)+2*ie}px`}})}),xe.createElement("div",{className:x.tagsDom},xe.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(He==null?void 0:He.excellent)&&xe.createElement("div",{className:x.bq},"\u5F00\u653E\u8BFE\u7A0B"),((Re=He==null?void 0:He.custom_tags)==null?void 0:Re.length)>0&&xe.createElement(Ie.Z,{title:(at=(it=He==null?void 0:He.custom_tags)==null?void 0:it[((Nt=He==null?void 0:He.custom_tags)==null?void 0:Nt.length)-1])==null?void 0:at.tag_name},xe.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},xe.createElement("span",{className:"multi-llipsis1e text-10px"},(De=(Ze=He==null?void 0:He.custom_tags)==null?void 0:Ze[((Bt=He==null?void 0:He.custom_tags)==null?void 0:Bt.length)-1])==null?void 0:De.tag_name))))),ct=="hide"&&(He==null?void 0:He.studying)&&je&&xe.createElement("div",{className:`${x.movebq} user-path-items`,onClick:pe=>{pe.stopPropagation(),Qe(He)}},xe.createElement("i",{className:"iconfont icon-yichu1 font12"}),xe.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(ct)&&je&&xe.createElement("div",{className:`${x.hiddenbq} user-path-items`,onClick:pe=>{pe.stopPropagation(),ot(He)}},xe.createElement("i",{className:`iconfont ${ct=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),xe.createElement("span",null,ct=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),xe.createElement("div",{className:x.name},xe.createElement(Ie.Z,{title:Ve&&(He!=null&&He.excellent_alias_name)?xe.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Rt}`,xe.createElement("br",null),xe.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${He==null?void 0:He.excellent_alias_name}`)):Rt},xe.createElement("span",{className:x.e},Ve&&(He==null?void 0:He.excellent_alias_name)||Rt))),je&&qe&&((ut=He==null?void 0:He.progress)==null?void 0:ut.all_score)!=0&&xe.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},xe.createElement(Je.Z,{strokeColor:"#44d7b6",gap:"small",percent:((($t=He==null?void 0:He.progress)==null?void 0:$t.my_score)/((zt=He==null?void 0:He.progress)==null?void 0:zt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(tt=He==null?void 0:He.progress)==null?void 0:tt.my_score,"/",(Ot=He==null?void 0:He.progress)==null?void 0:Ot.all_score),(!je||!qe)&&xe.createElement(Ie.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Dt}`},xe.createElement("div",{className:x.unit},xe.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Dt)),(!je||!qe)&&xe.createElement("div",{className:x.tags},xe.createElement("div",null,xe.createElement(Ie.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},xe.createElement("span",null,xe.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),xe.createElement("span",null,He.stages_count))),xe.createElement(Ie.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},xe.createElement("span",null,xe.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),xe.createElement("span",null,He.members_count)))))))})),!Me.length&&xe.createElement(he.Z,null)))}},68914:function(Jn,kt,ae){"use strict";ae.d(kt,{jL:function(){return Je},w9:function(){return De},QD:function(){return Zt},cQ:function(){return ht.Z},op:function(){return Et},O5:function(){return vr},_b:function(){return Ut},t7:function(){return Ce},Gi:function(){return Rt},YG:function(){return tt},qp:function(){return oe},vr:function(){return en},qE:function(){return Ct},Je:function(){return Ke},wb:function(){return He},cq:function(){return rn},tp:function(){return Me}});var x=ae(59301),dt={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},Je=({dataSource:Qn=[],img:qn,imgWidth:lr=346,title:$n,sunTitle:Br,bannerExtraContent:Sr})=>x.createElement("div",{className:dt.banner},x.createElement("div",{className:dt.content},x.createElement("aside",null,x.createElement("p",null,x.createElement("b",null,$n),x.createElement("span",null,Br)),Qn.length>0&&x.createElement("div",{className:dt.btns},Qn.map((kr,gi)=>x.createElement("div",{key:gi,onClick:kr.click},kr.name,kr.sign?x.createElement("span",{className:"sprite sprite-33"}):null))),Sr),qn&&x.createElement("img",{style:{marginTop:33,marginRight:38},src:qn,width:lr}))),ze={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Le=ae(92310),Ue=ae.n(Le),he=ae(89392),oe=({dataSource:Qn=[],value:qn,onChange:lr,onTitleChange:$n,className:Br,title:Sr,titleWidth:kr=41,style:gi={},fontColor:Ai="#6A7283",showCount:di})=>{const[Ti,Ei]=(0,x.useState)(1),[no,zi]=(0,x.useState)(!1),fr=(0,x.useRef)(null),Ur=(0,x.useRef)(null);return(0,x.useEffect)(()=>{var vi;Qn.length!==0&&(((vi=fr==null?void 0:fr.current)==null?void 0:vi.clientHeight)>97?Ei(1):Ei(0)),Qn.length===0&&Ei(0),zi(!1)},[Qn]),x.createElement("div",{className:Ue()(ze.row,Br,"fadeIn","animated"),style:gi},x.createElement("div",{onClick:(0,he.throttle)(()=>$n==null?void 0:$n(),2e3),style:{width:kr,marginTop:no?12:4},className:`${ze.title} ${$n?"current":""}`},Sr),x.createElement("div",{className:no?`${ze.tagsWrap} ${ze.tagsBorderWrap}`:ze.tagsWrap},x.createElement("div",{className:ze.bar,ref:Ur,style:Ti>0?{height:Ti===1?97:"auto",overflow:Ti===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},x.createElement("div",{className:ze.tag,ref:fr},Qn==null?void 0:Qn.map(vi=>x.createElement("span",{onClick:()=>lr(vi.id),key:vi.id,style:{color:Ai},className:qn===vi.id?ze.active:""},x.createElement("span",{title:vi.name,className:ze.name},vi.name),!!di&&x.createElement("span",{className:ze.num},vi.count))))),!!Ti&&x.createElement(x.Fragment,null,Ti===1?x.createElement("div",{onClick:()=>{var vi;Ei(2),((vi=fr==null?void 0:fr.current)==null?void 0:vi.clientHeight)>245?zi(!0):zi(!1)},className:ze.action},"\u5C55\u5F00",x.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):x.createElement("div",{onClick:()=>{Ur.current.scrollTop=0,Ei(1),zi(!1)},className:ze.action},"\u6536\u8D77",x.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Oe={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Me=({dataSource:Qn=[],value:qn,onChange:lr,className:$n,style:Br={}})=>x.createElement("div",{style:Br,className:Ue()(Oe.tabs,$n)},Qn.map(Sr=>x.createElement("span",{onClick:()=>lr(Sr.id),className:qn===Sr.id?Oe.active:"",key:Sr.id},Sr.name))),Se={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},Te=ae(37568),Ce=({dataSource:Qn=[],value:qn="",onChange:lr,onInputChange:$n=()=>{},className:Br,style:Sr={},placeholder:kr,allowClear:gi=!1})=>{var Ai;const[di,Ti]=(0,x.useState)(""),[Ei,no]=(0,x.useState)("");(0,x.useEffect)(()=>{var Ur;let vi=qn;(Ur=JSON.stringify(qn))!=null&&Ur.includes("{")&&(Ti(qn.id),vi=qn.value||"");try{no(decodeURIComponent(vi||""))}catch(Gt){no(decodeURIComponent(vi||""))}},[qn]);const zi=()=>{lr(encodeURIComponent(Ei),di||null)},fr=Ur=>{Ur!==di&&(Ti(Ur),lr(encodeURIComponent(Ei),Ur))};return x.createElement("div",{className:Ue()(Se.input,Br),style:Sr},!!Qn.length&&x.createElement("div",{className:Se.dropdown},x.createElement("div",{className:Se.text},(Ai=Qn.find(Ur=>Ur.id===di))==null?void 0:Ai.name,x.createElement("i",{className:"iconfont icon-zhankai4"}),x.createElement("b",{className:Se.b1}),x.createElement("b",{className:Se.b2})),x.createElement("div",{className:Se.menu},Qn.map((Ur,vi)=>x.createElement("div",{key:vi,onClick:()=>fr(Ur.id)},Ur.name)))),x.createElement(Te.default,{onPressEnter:zi,value:Ei,onChange:Ur=>{no(Ur.target.value),$n(encodeURIComponent(Ur.target.value),di||null)},placeholder:kr,variant:"borderless",allowClear:gi,onClear:()=>lr("",di||null)}),x.createElement("i",{onClick:zi,className:"iconfont icon-sousuo9 font14 current"}))},Ee={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},Ke=({value:Qn,onChange:qn,className:lr,total:$n,pageSize:Br,style:Sr={}})=>{const kr=Qn<2,gi=Qn>=Math.ceil($n/Br);return $n<=Br?x.createElement(x.Fragment,null):x.createElement("div",{className:Ue()(Ee.quickPager,lr),style:Sr},x.createElement("div",{onClick:()=>{kr||qn(Qn-1,"prev")},className:kr?Ee.disabled:""},"\u4E0A\u4E00\u9875"),x.createElement("div",{onClick:()=>{gi||qn(Qn+1,"next")},className:gi?Ee.disabled:""},"\u4E0B\u4E00\u9875"))},Qe={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},je=ae(29787),qe=ae(25399),Ve=ae(63139),ct=ae(21600),ot=ae(92232),pt=ae(77740),He=({className:Qn,dataSource:qn=[],col:lr=4,right:$n,bottom:Br=23,precision:Sr=0,wrapWidth:kr=1200,trackEventItems:gi,loading:Ai})=>{const di=Math.floor((kr-(lr-1)*$n)/lr);return x.createElement(je.Z,{spinning:Ai},x.createElement("div",{className:Ue()(Qe.list,Qn)},!!qn.length&&qn.map((Ti,Ei)=>{const{name:no,id:zi,identifier:fr,power:Ur,cover_image_id:vi,pic:Gt}=Ti;return x.createElement("div",{className:Qe.wrap,key:zi,style:{width:di,marginRight:(1+Ei)%lr===0?0:$n+Sr,marginBottom:Br}},x.createElement("a",{target:"_blank",href:`/shixuns/${fr}/challenges`,className:Qe.li,onClick:un=>{un.preventDefault(),gi&&(0,ot.L9)([gi]),Ur&&(0,ot.xg)(`/shixuns/${fr}/challenges`)}},x.createElement("div",{className:Qe.img},x.createElement("img",{className:Qe.cover,src:`${Gt}`}),Ti.is_jupyter&&x.createElement("span",{className:`sprite sprite-43 ${Qe.sign}`}),Ti.is_jupyter_lab&&x.createElement("span",{className:`sprite sprite-42 ${Qe.sign}`}),Ti.is_unity_3d&&x.createElement("span",{className:`sprite sprite-44 ${Qe.sign}`})),x.createElement("div",{className:Qe.name},x.createElement(qe.Z,{title:no||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},x.createElement("span",{className:Qe.e},no||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),x.createElement("div",{className:Qe.tags},x.createElement(qe.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},x.createElement("span",null,x.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),x.createElement("span",null,Ti.challenges_count))),!!Ti.myshixuns_count&&x.createElement(qe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},x.createElement("span",null,x.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),x.createElement("span",null,Ti.myshixuns_count))),x.createElement(qe.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},x.createElement("span",null,x.createElement("span",null,Ti.level))),x.createElement("div",{className:Qe.rate},x.createElement(Ve.Z,{allowHalf:!0,disabled:!0,defaultValue:Ti.score_info}),x.createElement("span",null,"\xA0",Ti.score_info?`${Ti.score_info}\u5206`:"5\u5206")))),!Ur&&x.createElement("div",{className:Qe.lockWrap},x.createElement("img",{src:`${ct.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),x.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!qn.length&&x.createElement(pt.Z,null)))},ht=ae(48289),_e={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Re=ae(62957),Nt=ae(96599),it="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",at=ae(59301),Bt=(Qn,qn,lr)=>new Promise(($n,Br)=>{var Sr=Ai=>{try{gi(lr.next(Ai))}catch(di){Br(di)}},kr=Ai=>{try{gi(lr.throw(Ai))}catch(di){Br(di)}},gi=Ai=>Ai.done?$n(Ai.value):Promise.resolve(Ai.value).then(Sr,kr);gi((lr=lr.apply(Qn,qn)).next())}),De=({className:Qn,dataSource:qn=[],col:lr=4,right:$n,bottom:Br=23,precision:Sr=0,wrapWidth:kr=1200,trackEventItems:gi,loading:Ai,category:di,hiddenClick:Ti,handleVery:Ei=()=>!0,isCurrent:no})=>{const[zi,fr]=Re.default.useModal(),Ur=Math.floor((kr-(lr-1)*$n)/lr),vi=Gt=>Bt(void 0,null,function*(){zi.confirm({title:"\u7F6E\u9876",width:500,content:at.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",at.createElement("span",{className:"c-blue"},"\u201C",Gt.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return at.createElement(je.Z,{spinning:Ai},fr,at.createElement("div",{className:Ue()(_e.list,Qn)},!!qn.length&&qn.map((Gt,un)=>{const{subject_identifier:wn,id:Mt,identifier:dn,power:Kt}=Gt,pn=Gt.is_public!=0&&Gt.is_public;return at.createElement("div",{className:_e.wrap,key:Mt,style:{width:Ur,marginRight:(1+un)%lr===0?0:$n+Sr,marginBottom:Br}},Gt.homepage_show&&at.createElement("div",{className:_e.btnsTop},at.createElement(Nt.default,{color:"red"},"\u7F6E\u9876")),at.createElement("a",{className:_e.li,onClick:Nn=>{Nn.preventDefault(),Ei(Gt==null?void 0:Gt.first_category_url)&&(gi&&(0,ot.L9)([gi]),(0,ot.xg)(Gt.first_category_url))}},at.createElement("div",{className:_e.top},at.createElement(qe.Z,{title:Gt.name},at.createElement("div",{className:_e.name},Gt.name)),at.createElement("img",{className:_e.img,src:ct.Z.IMG_SERVER+"/images/"+Gt.avatar_url}),at.createElement("div",{className:_e.text,title:Gt.creator},Gt.creator),wn&&at.createElement("div",{className:_e.btns},at.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),at.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),pn&&at.createElement("div",{className:_e.sign},"\u516C\u5F00"),no&&at.createElement("div",{className:_e.hidden,onClick:Nn=>{Nn.stopPropagation(),Ti(Gt)}},at.createElement("i",{className:`iconfont ${di=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),di=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),at.createElement("div",{className:_e.bottom},Gt.visits>0&&at.createElement(qe.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},at.createElement("span",null,at.createElement("i",{className:"iconfont icon-liulanyan"}),at.createElement("span",null,Gt.visits))),Gt.course_members_count>0&&at.createElement(qe.Z,{title:"\u6210\u5458",placement:"bottom"},at.createElement("span",null,at.createElement("i",{className:"iconfont icon-chengyuan"}),Gt.course_members_count)),Gt.tasks_count>0&&at.createElement(qe.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},at.createElement("span",null,at.createElement("i",{className:"iconfont icon-zuoye"}),Gt.tasks_count)),Gt.is_end?at.createElement("div",{style:{color:"#6B758B"}}):at.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Gt.is_accessible&&at.createElement("div",{className:_e.lockWrap},at.createElement("img",{src:`${ct.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),at.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!qn.length&&at.createElement(pt.Z,null)))},ut={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},$t=ae(52985),tt=({dataSource:Qn=[],value:qn,onChange:lr,className:$n,style:Br={},tabBarExtraContent:Sr})=>x.createElement("div",{className:Ue()(ut.tabs,$n),style:Br},x.createElement("div",{className:ut.tabsWrap},Qn.map((kr,gi)=>!(kr!=null&&kr.hide)&&x.createElement("aside",{className:ut.tab,onClick:()=>{lr(kr.id),kr.link&&$t.history.push(kr.link)},key:gi},x.createElement("div",{className:qn===kr.id?ut.active:""},kr.name),(kr==null?void 0:kr.resetCount)==null&&(kr==null?void 0:kr.total)!==void 0&&x.createElement("span",null,"\uFF08",kr==null?void 0:kr.total,"\uFF09"),(kr==null?void 0:kr.resetCount)!==void 0&&(kr==null?void 0:kr.total)!==void 0&&x.createElement(qe.Z,{title:(kr==null?void 0:kr.tip)!=null?kr==null?void 0:kr.tip:""},x.createElement("span",{style:{color:"#9096A3"}},"\uFF08",x.createElement("span",{style:{color:"#000"}},kr==null?void 0:kr.resetCount),"/",x.createElement("span",null,kr==null?void 0:kr.total),"\uFF09"))))),x.createElement("div",{className:ut.tabBar},Sr)),Rt=({className:Qn,style:qn={},children:lr})=>x.createElement("div",{className:Ue()(Qn),style:qn},lr),fn={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Tt=ae(75727),mn=ae(93041);const Dt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var rn=({sortValue:Qn,dropValue:qn,className:lr,onSort:$n,onDrop:Br,dataSource:Sr=Dt})=>{var kr;return x.createElement("div",{className:Ue()(fn.orderWrap,lr)},x.createElement(Tt.Z,{dropdownRender:()=>x.createElement(mn.default,null,Sr.map((gi,Ai)=>x.createElement(mn.default.Item,{key:Ai,onClick:()=>Br(gi.id)},gi.name)))},x.createElement("span",{className:fn.orderTextWrap},(kr=Sr.find(gi=>qn===gi.id))==null?void 0:kr.name)),x.createElement("span",{className:fn.orderIconWrap},x.createElement("span",{className:fn.orderAsc},x.createElement("i",{className:Qn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${fn.cursorPointer} ${fn.active}`:`iconfont icon-sanjiaoxing-up font12 ${fn.cursorPointer}`,onClick:()=>$n(Qn==="asc"?"desc":"asc")})),x.createElement("span",{className:fn.orderDesc},x.createElement("i",{className:Qn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${fn.cursorPointer} ${fn.active}`:`iconfont icon-sanjiaoxing-down font12 ${fn.cursorPointer}`,onClick:()=>$n(Qn==="asc"?"desc":"asc")}))))},de={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},pe=ae(7939),ie=Object.defineProperty,ee=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,Be=(Qn,qn,lr)=>qn in Qn?ie(Qn,qn,{enumerable:!0,configurable:!0,writable:!0,value:lr}):Qn[qn]=lr,We=(Qn,qn)=>{for(var lr in qn||(qn={}))se.call(qn,lr)&&Be(Qn,lr,qn[lr]);if(ee)for(var lr of ee(qn))le.call(qn,lr)&&Be(Qn,lr,qn[lr]);return Qn},st=(Qn,qn)=>{var lr={};for(var $n in Qn)se.call(Qn,$n)&&qn.indexOf($n)<0&&(lr[$n]=Qn[$n]);if(Qn!=null&&ee)for(var $n of ee(Qn))qn.indexOf($n)<0&&le.call(Qn,$n)&&(lr[$n]=Qn[$n]);return lr},mt=(Qn,qn,lr)=>new Promise(($n,Br)=>{var Sr=Ai=>{try{gi(lr.next(Ai))}catch(di){Br(di)}},kr=Ai=>{try{gi(lr.throw(Ai))}catch(di){Br(di)}},gi=Ai=>Ai.done?$n(Ai.value):Promise.resolve(Ai.value).then(Sr,kr);gi((lr=lr.apply(Qn,qn)).next())}),Et=Qn=>{var qn=Qn,{className:lr,style:$n,children:Br,loading:Sr=!1,openLoading:kr,onClick:gi=()=>{},size:Ai="middle",shape:di="round"}=qn,Ti=st(qn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Ei,no]=(0,x.useState)(!1);return x.createElement(pe.ZP,We({onClick:(0,he.throttle)(zi=>mt(void 0,null,function*(){kr&&no(!0);try{yield gi(zi)}catch(fr){console.log("error",fr)}kr&&no(!1)}),2e3,{leading:!0,trailing:!1}),className:Ue()(de.btn,de[`${Ai}-${di}`],lr),style:$n,size:Ai,shape:di,loading:Ei||Sr},Ti),Br)},Lt={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Ct=({className:Qn,style:qn,children:lr=null,onClick:$n,title:Br})=>x.createElement("div",{className:Ue()(Lt.head,Qn),style:qn},x.createElement("span",{className:"primary-hover",onClick:$n},x.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),x.createElement("b",{title:Br},Br),x.createElement("div",{className:Lt.node},lr)),lt={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Zt=({confirmShow:Qn=!0,confirmTitle:qn,confirmClick:lr,cancelShow:$n=!0,cancelTitle:Br,cancelClick:Sr,className:kr,style:gi,confirmLoading:Ai=!1})=>x.createElement("div",{className:Ue()(lt.btns,kr),style:gi},Qn&&x.createElement(pe.ZP,{loading:Ai,onClick:lr,type:"primary",className:lt.confirm},qn),$n&&x.createElement(pe.ZP,{onClick:Sr,className:lt.cancel},Br)),gn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},en=({className:Qn,style:qn={},LeftContent:lr,children:$n,RightContent:Br})=>x.createElement("div",{className:Ue()(gn.fixedBottom,Qn),style:qn},x.createElement("div",{className:gn.wrap},x.createElement("div",{className:gn.left},lr),x.createElement("div",{className:gn.center},$n),x.createElement("div",{className:gn.right},Br))),zn={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Ut=({className:Qn,style:qn={},dataSource:lr=[]})=>x.createElement("div",{className:Ue()(zn.crumbs,Qn),style:qn},lr.map(($n,Br)=>Br<lr.length-1?x.createElement(x.Fragment,{key:Br},$n.path||$n.onClick?x.createElement("span",{className:zn.hover,onClick:$n!=null&&$n.onClick?$n.onClick:()=>$t.history.push($n.path)},$n.name):x.createElement("span",null,$n.name),x.createElement("span",null,"\xA0",">","\xA0")):x.createElement("span",{key:Br,style:{color:"#5F6368"}},$n.name))),an=ae(11938),_n=Object.defineProperty,Vn=Object.defineProperties,It=Object.getOwnPropertyDescriptors,Wt=Object.getOwnPropertySymbols,on=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable,Yn=(Qn,qn,lr)=>qn in Qn?_n(Qn,qn,{enumerable:!0,configurable:!0,writable:!0,value:lr}):Qn[qn]=lr,Lr=(Qn,qn)=>{for(var lr in qn||(qn={}))on.call(qn,lr)&&Yn(Qn,lr,qn[lr]);if(Wt)for(var lr of Wt(qn))vn.call(qn,lr)&&Yn(Qn,lr,qn[lr]);return Qn},ri=(Qn,qn)=>Vn(Qn,It(qn)),zr=(Qn,qn)=>{var lr={};for(var $n in Qn)on.call(Qn,$n)&&qn.indexOf($n)<0&&(lr[$n]=Qn[$n]);if(Qn!=null&&Wt)for(var $n of Wt(Qn))qn.indexOf($n)<0&&vn.call(Qn,$n)&&(lr[$n]=Qn[$n]);return lr};const{Countdown:Ir}=an.default;var vr=Qn=>{var qn=Qn,{onChange:lr}=qn,$n=zr(qn,["onChange"]);const[Br,Sr]=(0,x.useState)(null);(0,x.useEffect)(()=>{typeof Br=="number"&&Br>=0&&lr(Br)},[Br]);const kr=gi=>{const Ai=Math.floor(gi/1e3);Sr(Ai)};return x.createElement(Ir,ri(Lr({},$n),{onChange:kr}))}},38869:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return dt}});var x=ae(59301);function dt(Ie,Je){const ze=(0,x.useRef)();(0,x.useEffect)(()=>{ze.current=Ie}),(0,x.useEffect)(()=>{function Le(){ze.current()}if(Je!==null){let Ue=setInterval(Le,Je);return()=>clearInterval(Ue)}},[Je])}},49325:function(Jn,kt,ae){"use strict";ae.r(kt),ae.d(kt,{default:function(){return ti}});var x=ae(59301),dt=ae(66649),Ie=ae.n(dt),Je=ae(86129),ze=ae.n(Je),Le=ae(82186),Ue=ae(52985),he=ae(62957),xe=ae(6767),oe=ae(458),Oe=ae(91882),ve=ae(77019),Me=ae(5269),Se=ae(7939),Te=ae(25399),we=ae(37285),Ce=ae(37568),Ee=ae(70858),ke=ae(82326),Ke=ae(31709),Qe=ae(27812),je=ae(95869),qe=ae(87169),Ve=ae(26227),ct=ae(21600),ot=ae(99287),pt=ae(92232),bt=ae(42441),He={flex_box_center:"flex_box_center___KJUhi",flex_space_between:"flex_space_between____N4uH",flex_box_vertical_center:"flex_box_vertical_center___yOdsz",flex_box_center_end:"flex_box_center_end___seJB9",flex_box_column:"flex_box_column___ihHC5",title:"title___JSmnB",score:"score___ERcuI",export:"export___pgR1H",title1_right:"title1_right___MdWJo",userPic:"userPic___UeG3e",userInfo:"userInfo___TNu6l",listItem:"listItem___wdbM_",rightInfo:"rightInfo___Swqk5",shixunTitle:"shixunTitle___L2Tc4",shixunWrp:"shixunWrp___ZoaTc",footerBar:"footerBar___QW5rq",footerBarStatic:"footerBarStatic___CRq8b",exitComment:"exitComment___u4Rqt",nextComment:"nextComment___lvaID",modal:"modal___g3B3L",footer:"footer___eJCnt",pingjia:"pingjia___X_ooM",pj_close:"pj_close___PHP4h",pj_save:"pj_save___COfQy",fa:"fa____jywp"},ht={normal:{opacity:.8,shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",color:"#2e65ad"}};const _e=({shixunHomeworks:nr,data:Rn,globalSetting:Ar,loading:Bi,dispatch:Zn})=>{var yn;const{shixunWorkReport:Wn}=nr;let rr=((yn=Rn==null?void 0:Rn.efficiency_list)==null?void 0:yn.length)-parseInt(Rn==null?void 0:Rn.myself_eff[0]);const pr=()=>({title:{text:"\u5B66\u4E60\u6548\u7387",subtext:"\u5B66\u4E60\u6548\u7387=log(\u5B9E\u8BAD\u603B\u5F97\u5206/\u5B9E\u8BAD\u603B\u8017\u65F6)"},backgroundColor:"#fff",color:["#dd4444","#fec42c","#80F1BE"],grid:{left:"3%",right:"9%",bottom:"3%",containLabel:!0},tooltip:{showDelay:0,formatter:function(Fi){return Fi.name===Wn.username?"\u59D3\u540D\uFF1A"+Wn.username+"<br/>\u5B66\u53F7\uFF1A "+Wn.user_id+"<br/>\u6548\u7387\uFF1A"+(Rn==null?void 0:Rn.myself_eff[1]):Fi.name+":"+Fi.value+" "},axisPointer:{show:!0,type:"cross",lineStyle:{type:"dashed",width:1}}},xAxis:[{type:"value",name:"\u5B66\u751F\u4F4D\u7F6E",nameTextStyle:{color:"#000",fontSize:12},scale:!0,axisLabel:{formatter:""},axisTick:{show:!1},splitLine:{show:!1}}],yAxis:[{type:"value",name:" ",nameGap:20,nameTextStyle:{color:"#000",fontSize:12},scale:!0,axisLabel:{formatter:"{value}"},splitLine:{show:!1}}],series:[{name:"",type:"scatter",data:Rn==null?void 0:Rn.efficiency_list,itemStyle:{normal:{color:"#2e65ad"}},markArea:{silent:!0,itemStyle:{normal:{color:"transparent",borderWidth:1,borderType:"dashed"}},data:[[{name:"\u5B66\u4E60\u6548\u7387\u5206\u5E03\u533A\u95F4",xAxis:"min",yAxis:"min"},{xAxis:"max",yAxis:"max"}]]},markPoint:{data:[{name:Wn.username,xAxis:rr,yAxis:Rn==null?void 0:Rn.myself_eff[1],value:Rn==null?void 0:Rn.myself_eff[1]}],itemStyle:{normal:{color:"#c23531"}}},markLine:{lineStyle:{normal:{type:"solid",color:"#ff6800"}},data:[{type:"average",name:"\u4E2D\u4F4D\u503C"}]}}]}),Kr=()=>({title:{text:"\u80FD\u529B\u503C",subtext:"\u80FD\u529B\u503C\uFF08\u5B9E\u8BAD\u83B7\u5F97\u7ECF\u9A8C\u503C/\u5B9E\u8BAD\u8BC4\u6D4B\u6B21\u6570\uFF09"},backgroundColor:"#fff",color:["#dd4444","#fec42c","#80F1BE"],grid:{x:"10%",x2:150,y:"18%",y2:"10%"},tooltip:{padding:10,backgroundColor:"#222",borderColor:"#777",borderWidth:1,formatter:function(Fi){var fi=Fi.value;if(Fi.name===Wn.username)return"\u59D3\u540D\uFF1A"+Wn.username+"<br/>\u5B66\u53F7\uFF1A "+Wn.user_id+"<br/>\u5F97\u5206\uFF1A"+(Rn==null?void 0:Rn.myself_object[1])}},xAxis:{type:"value",name:"log(\u5B9E\u8BAD\u7684\u603B\u65F6\u95F4)",nameGap:16,nameTextStyle:{color:"#000",fontSize:14},splitLine:{show:!1},axisLine:{lineStyle:{color:"#000"}}},yAxis:{type:"value",name:" ",nameLocation:"end",nameGap:20,nameTextStyle:{color:"#000",fontSize:12},axisLine:{lineStyle:{color:"#000"}},splitLine:{show:!1}},series:[{name:"\u80FD\u529B",type:"scatter",itemStyle:ht,data:Rn==null?void 0:Rn.consume_list,symbolSize:function(Fi){return Math.round(Fi[2])},markPoint:{data:[{name:Wn.username,xAxis:Rn==null?void 0:Rn.myself_object[0],yAxis:Rn==null?void 0:Rn.myself_object[1],value:Rn==null?void 0:Rn.myself_object[1]}],itemStyle:{normal:{color:"#c23531"}}}}]});return x.createElement(x.Fragment,null,x.createElement("aside",{className:"ml60 pr30"},x.createElement(ve.Z,null,x.createElement(Me.Z,{flex:"800px"},x.createElement(bt.Z,{style:{width:750,height:580},option:pr()})),x.createElement(Me.Z,{flex:"1"},x.createElement("aside",{className:He.rightInfo},x.createElement("ul",null,x.createElement("li",null,x.createElement("span",null,"\u59D3\u540D")," ",x.createElement("span",{className:"ml30"},Wn.username)),x.createElement("li",null,x.createElement("span",null,"\u5B66\u53F7")," ",x.createElement("span",{className:"ml30"},Wn.student_id||"--")),x.createElement("li",null,x.createElement("span",null,"\u5B66\u4E60\u6548\u7387")," ",x.createElement("span",{className:"ml30 c-orange"},Rn==null?void 0:Rn.myself_eff[1])),x.createElement("li",null,x.createElement("span",null,"\u5F53\u524D\u6392\u540D")," ",x.createElement("span",{className:"ml30 c-orange"},Rn==null?void 0:Rn.myself_eff[0]))),x.createElement("p",null,"1\u4E2A\u5C0F\u5706\u70B9\u4EE3\u88681\u4E2A\u5B66\u751F\u7684\u5B66\u4E60\u6548\u7387",x.createElement("br",null),"\u7EA2\u8272\u6C34\u6EF4\u8868\u793A\u5F53\u524D\u5B66\u751F\u7684\u5B66\u4E60\u6548\u7387\u503C",x.createElement("br",null),"\u5C0F\u5706\u70B9\u8D8A\u9AD8\uFF0C\u5B66\u4E60\u6548\u7387\u8D8A\u9AD8",x.createElement("br",null),"\u6A59\u8272\u6A2A\u5411\u7BAD\u5934\uFF1A\u4E2D\u4F4D\u503C\uFF0C\u8868\u793A\u6574\u4E2A\u8BFE\u5802\u5B66\u751F\u8868\u73B0\u7684\u5E73\u5747\u503C"))))),x.createElement("aside",{className:"ml60 pr30"},x.createElement(ve.Z,null,x.createElement(Me.Z,{flex:"800px"},x.createElement(bt.Z,{style:{width:750,height:580},option:Kr()})),x.createElement(Me.Z,{flex:"1"},x.createElement("aside",{className:He.rightInfo},x.createElement("ul",null,x.createElement("li",null,x.createElement("span",null,"\u59D3\u540D")," ",x.createElement("span",{className:"ml30"},Wn.username)),x.createElement("li",null,x.createElement("span",null,"\u5B66\u53F7")," ",x.createElement("span",{className:"ml30"},Wn.student_id||"--")),x.createElement("li",null,x.createElement("span",null,"\u80FD\u529B")," ",x.createElement("span",{className:"ml30 c-orange"},Rn==null?void 0:Rn.myself_object[1]))),x.createElement("p",null,"1\u4E2A\u5C0F\u5706\u70B9\u4EE3\u88681\u4E2A\u5B66\u751F\u7684\u80FD\u529B\u503C",x.createElement("br",null),"\u7EA2\u8272\u6C34\u6EF4\u8868\u793A\u5F53\u524D\u5B66\u751F\u7684\u80FD\u529B\u503C",x.createElement("br",null),"\u5C0F\u5706\u5708\u8D8A\u5927\uFF0C\u8BC4\u6D4B\u6B21\u6570\u8D8A\u5C11",x.createElement("br",null)))))))};var Re=(0,Ue.connect)(({shixunHomeworks:nr,loading:Rn,globalSetting:Ar})=>({shixunHomeworks:nr,globalSetting:Ar,loading:Rn.effects}))(_e),Nt=ae(79802),it=ae(4875),at=({defaultValue:nr,onBlur:Rn,max:Ar,className:Bi="game-score",style:Zn,disabled:yn=!1})=>{const[Wn,rr]=(0,x.useState)(nr);(0,x.useEffect)(()=>{rr(nr)},[nr]);function pr(Fi){rr(Fi)}function Kr(){Wn!==nr&&Rn(Wn>Ar?Ar:Wn)}return x.createElement(it.Z,{max:Ar,min:0,className:Bi,style:Zn,value:Wn,disabled:yn,onChange:pr,onBlur:Kr})},Bt=ae(62734),Ze={md:"md___TEmcT"},De=ae(59301),ut=Object.defineProperty,$t=Object.defineProperties,zt=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,Rt=Object.prototype.propertyIsEnumerable,fn=(nr,Rn,Ar)=>Rn in nr?ut(nr,Rn,{enumerable:!0,configurable:!0,writable:!0,value:Ar}):nr[Rn]=Ar,Tt=(nr,Rn)=>{for(var Ar in Rn||(Rn={}))Ot.call(Rn,Ar)&&fn(nr,Ar,Rn[Ar]);if(tt)for(var Ar of tt(Rn))Rt.call(Rn,Ar)&&fn(nr,Ar,Rn[Ar]);return nr},mn=(nr,Rn)=>$t(nr,zt(Rn));const Dt=ke.default.Option,En={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,enableSplitViewResizing:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1};var rn=(nr=>(nr[nr.SET_PATH=0]="SET_PATH",nr[nr.GET_PASSED_CONTENT=1]="GET_PASSED_CONTENT",nr))(rn||{});function de(nr,Rn){switch(Rn.type){case 0:return mn(Tt({},nr),{selectedPath:Rn.payload});case 1:return mn(Tt({},nr),{passedContent:Rn.payload});default:throw new Error}}var pe=({path:nr,game_id:Rn,onPathChange:Ar,autoHeight:Bi,diff_code_count:Zn,data:yn,game_codes_cn:Wn})=>{var rr,pr,Kr,Fi;const fi=nr.split("\uFF1B").filter(yi=>!!yi),[_i,hi]=(0,x.useReducer)(de,{selectedPath:fi[0],passedContent:{language:"python",content:""}}),{selectedPath:bi,passedContent:wi}=_i;function Yi(yi){hi({type:0,payload:yi})}const pi={\u6700\u540E\u901A\u5173\u4EE3\u7801:"\u901A\u8FC7\u4E86\u672C\u9898\uFF0C\u5728\u4F5C\u4E1A\u65F6\u95F4\u5185\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u7684\u901A\u5173\u4EE3\u7801",\u6700\u65B0\u4EE3\u7801:"\u672A\u901A\u8FC7\u672C\u9898\uFF0C\u5C55\u793A\u6700\u65B0\u7F16\u5199\u7684\u4EE3\u7801\u8BE6\u60C5",\u622A\u6B62\u540E\u901A\u5173\u4EE3\u7801:"\u5728\u4F5C\u4E1A\u65F6\u95F4\u7ED3\u675F\u540E\u901A\u5173\u8BE5\u9898\u7684\u4EE3\u7801\u8BE6\u60C5"};return De.createElement(De.Fragment,null,De.createElement("h2",null," ",De.createElement("span",null,Wn,De.createElement(Te.Z,{title:De.createElement("div",null,De.createElement("div",null,"\u4EE3\u7801\u5C55\u793A\u89C4\u5219\uFF1A"),De.createElement("div",null,"1.\u5C55\u793A\u5B66\u5458\u5728\u4F5C\u4E1A\u622A\u6B62\u524D\u5F97\u5206\u6700\u9AD8\u7684\u4EE3\u7801\u7248\u672C\u3002"),De.createElement("div",null," 2.\u82E5\u6709\u591A\u4E2A\u6700\u9AD8\u5206\u7248\u672C\uFF0C\u5C55\u793A\u63D0\u4EA4\u65F6\u95F4\u6700\u665A\u7684\u7248\u672C\u3002"),De.createElement("div",null," 3.\u4F5C\u4E1A\u622A\u6B62\u540E\u63D0\u4EA4\u7684\u4EE3\u7801\u5C06\u4E0D\u4E88\u5C55\u793A\u3002"))},De.createElement("i",{style:{marginLeft:10,color:"#3061D0",fontSize:16},className:"iconfont icon-tishixiaowenhao"}))),Zn&&De.createElement("span",{style:{marginLeft:"50px"}},"\u4EE3\u7801\u4FEE\u6539\u884C\u6570 ",Zn),De.createElement("span",null,De.createElement(ke.default,{style:{width:200},value:bi,onChange:Yi}," ",fi.map(yi=>De.createElement(Dt,{key:yi,value:yi},yi))," "))," "),(bi==null?void 0:bi.split(".")[1])==="md"&&De.createElement(Bt.Z,{height:300,autoHeight:Bi,defaultValue:((pr=(rr=yn==null?void 0:yn.filter(yi=>yi.path===bi))==null?void 0:rr[0])==null?void 0:pr.content)||"",className:Ze.md}),(bi==null?void 0:bi.split(".")[1])!=="md"&&De.createElement(Nt.ZP,{height:300,language:wi.language,value:((Fi=(Kr=yn==null?void 0:yn.filter(yi=>yi.path===bi))==null?void 0:Kr[0])==null?void 0:Fi.content)||"",autoHeight:Bi,theme:"default",isCopy:!0,options:En}))},ie=ae(30467),ee=ae(96249),se=ae.n(ee),le=Object.defineProperty,Be=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,mt=(nr,Rn,Ar)=>Rn in nr?le(nr,Rn,{enumerable:!0,configurable:!0,writable:!0,value:Ar}):nr[Rn]=Ar,gt=(nr,Rn)=>{for(var Ar in Rn||(Rn={}))We.call(Rn,Ar)&&mt(nr,Ar,Rn[Ar]);if(Be)for(var Ar of Be(Rn))st.call(Rn,Ar)&&mt(nr,Ar,Rn[Ar]);return nr};const Et=nr=>React.createElement("svg",gt({className:"scai_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},nr),React.createElement("path",{d:"M512 327.68c245.76 0 445.44 153.6 445.44 348.16C957.44 870.4 757.76 1024 512 1024c-245.76-5.12-445.44-153.6-445.44-348.16 0-194.56 199.68-348.16 445.44-348.16z",fill:"#DBDCFF"}),React.createElement("path",{d:"M645.12 947.2c117.76-10.24 158.72-143.36 163.84-266.24 0-128-128-174.08-291.84-174.08-163.84 0-291.84 46.08-291.84 174.08 0 112.64 35.84 240.64 143.36 261.12 30.72 5.12 261.12 10.24 276.48 5.12z",fill:"#111ACC"}),React.createElement("path",{d:"M404.48 686.08c15.36 0 25.6 10.24 25.6 25.6v61.44c0 15.36-10.24 25.6-25.6 25.6-15.36 0-25.6-10.24-25.6-25.6v-61.44c-5.12-10.24 10.24-25.6 25.6-25.6zm220.16 0c15.36 0 25.6 10.24 25.6 25.6v61.44c0 15.36-10.24 25.6-25.6 25.6-15.36 0-25.6-10.24-25.6-25.6v-61.44c0-10.24 10.24-25.6 25.6-25.6z",fill:"#FFF"}),React.createElement("path",{d:"M916.48 527.36c56.32 0 107.52 71.68 107.52 153.6 0 87.04-61.44 153.6-117.76 153.6 0 0 51.2-76.8 51.2-158.72s-40.96-148.48-40.96-148.48zm-808.96 5.12-5.12 5.12c-10.24 20.48-35.84 76.8-35.84 138.24 0 76.8 35.84 138.24 51.2 158.72C61.44 834.56 0 768 0 680.96c0-81.92 51.2-148.48 107.52-148.48z",fill:"#8187FF"}),React.createElement("path",{d:"M512 0c20.48 0 30.72 15.36 30.72 30.72v220.16c0 20.48-15.36 30.72-30.72 30.72s-30.72-10.24-30.72-30.72V30.72C481.28 15.36 496.64 0 512 0z",fill:"#701CDC"}),React.createElement("path",{d:"M384 46.08c20.48 0 30.72 15.36 30.72 30.72v133.12c0 20.48-15.36 30.72-30.72 30.72s-35.84-15.36-35.84-30.72V76.8c0-20.48 15.36-30.72 35.84-30.72z",fill:"#371CDC"}),React.createElement("path",{d:"M645.12 46.08c20.48 0 30.72 15.36 30.72 30.72v133.12c0 20.48-15.36 30.72-30.72 30.72s-30.72-15.36-30.72-30.72V76.8c0-20.48 15.36-30.72 30.72-30.72z",fill:"#AB2FF0"}),React.createElement("path",{d:"M250.88 87.04c20.48 0 30.72 15.36 30.72 30.72v46.08c0 20.48-15.36 30.72-30.72 30.72s-35.84-10.24-35.84-30.72v-40.96c0-20.48 15.36-35.84 35.84-35.84z",fill:"#6D57F2"}),React.createElement("path",{d:"M778.24 87.04c20.48 0 30.72 15.36 30.72 30.72v46.08c0 20.48-15.36 30.72-30.72 30.72s-30.72-15.36-30.72-30.72v-40.96c0-20.48 15.36-35.84 30.72-35.84z",fill:"#C86FFA"}));var Lt="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik01MTIgMzI3LjY4YzI0NS43NiAwIDQ0NS40NCAxNTMuNiA0NDUuNDQgMzQ4LjE2Qzk1Ny40NCA4NzAuNCA3NTcuNzYgMTAyNCA1MTIgMTAyNGMtMjQ1Ljc2LTUuMTItNDQ1LjQ0LTE1My42LTQ0NS40NC0zNDguMTYgMC0xOTQuNTYgMTk5LjY4LTM0OC4xNiA0NDUuNDQtMzQ4LjE2eiIgZmlsbD0iI0RCRENGRiIvPjxwYXRoIGQ9Ik02NDUuMTIgOTQ3LjJjMTE3Ljc2LTEwLjI0IDE1OC43Mi0xNDMuMzYgMTYzLjg0LTI2Ni4yNCAwLTEyOC0xMjgtMTc0LjA4LTI5MS44NC0xNzQuMDgtMTYzLjg0IDAtMjkxLjg0IDQ2LjA4LTI5MS44NCAxNzQuMDggMCAxMTIuNjQgMzUuODQgMjQwLjY0IDE0My4zNiAyNjEuMTIgMzAuNzIgNS4xMiAyNjEuMTIgMTAuMjQgMjc2LjQ4IDUuMTJ6IiBmaWxsPSIjMTExQUNDIi8+PHBhdGggZD0iTTQwNC40OCA2ODYuMDhjMTUuMzYgMCAyNS42IDEwLjI0IDI1LjYgMjUuNnY2MS40NGMwIDE1LjM2LTEwLjI0IDI1LjYtMjUuNiAyNS42LTE1LjM2IDAtMjUuNi0xMC4yNC0yNS42LTI1LjZ2LTYxLjQ0Yy01LjEyLTEwLjI0IDEwLjI0LTI1LjYgMjUuNi0yNS42em0yMjAuMTYgMGMxNS4zNiAwIDI1LjYgMTAuMjQgMjUuNiAyNS42djYxLjQ0YzAgMTUuMzYtMTAuMjQgMjUuNi0yNS42IDI1LjYtMTUuMzYgMC0yNS42LTEwLjI0LTI1LjYtMjUuNnYtNjEuNDRjMC0xMC4yNCAxMC4yNC0yNS42IDI1LjYtMjUuNnoiIGZpbGw9IiNGRkYiLz48cGF0aCBkPSJNOTE2LjQ4IDUyNy4zNmM1Ni4zMiAwIDEwNy41MiA3MS42OCAxMDcuNTIgMTUzLjYgMCA4Ny4wNC02MS40NCAxNTMuNi0xMTcuNzYgMTUzLjYgMCAwIDUxLjItNzYuOCA1MS4yLTE1OC43MnMtNDAuOTYtMTQ4LjQ4LTQwLjk2LTE0OC40OHptLTgwOC45NiA1LjEyLTUuMTIgNS4xMmMtMTAuMjQgMjAuNDgtMzUuODQgNzYuOC0zNS44NCAxMzguMjQgMCA3Ni44IDM1Ljg0IDEzOC4yNCA1MS4yIDE1OC43MkM2MS40NCA4MzQuNTYgMCA3NjggMCA2ODAuOTZjMC04MS45MiA1MS4yLTE0OC40OCAxMDcuNTItMTQ4LjQ4eiIgZmlsbD0iIzgxODdGRiIvPjxwYXRoIGQ9Ik01MTIgMGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjIyMC4xNmMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zMC43Mi0xMC4yNC0zMC43Mi0zMC43MlYzMC43MkM0ODEuMjggMTUuMzYgNDk2LjY0IDAgNTEyIDB6IiBmaWxsPSIjNzAxQ0RDIi8+PHBhdGggZD0iTTM4NCA0Ni4wOGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjEzMy4xMmMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zNS44NC0xNS4zNi0zNS44NC0zMC43MlY3Ni44YzAtMjAuNDggMTUuMzYtMzAuNzIgMzUuODQtMzAuNzJ6IiBmaWxsPSIjMzcxQ0RDIi8+PHBhdGggZD0iTTY0NS4xMiA0Ni4wOGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjEzMy4xMmMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zMC43Mi0xNS4zNi0zMC43Mi0zMC43MlY3Ni44YzAtMjAuNDggMTUuMzYtMzAuNzIgMzAuNzItMzAuNzJ6IiBmaWxsPSIjQUIyRkYwIi8+PHBhdGggZD0iTTI1MC44OCA4Ny4wNGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjQ2LjA4YzAgMjAuNDgtMTUuMzYgMzAuNzItMzAuNzIgMzAuNzJzLTM1Ljg0LTEwLjI0LTM1Ljg0LTMwLjcydi00MC45NmMwLTIwLjQ4IDE1LjM2LTM1Ljg0IDM1Ljg0LTM1Ljg0eiIgZmlsbD0iIzZENTdGMiIvPjxwYXRoIGQ9Ik03NzguMjQgODcuMDRjMjAuNDggMCAzMC43MiAxNS4zNiAzMC43MiAzMC43MnY0Ni4wOGMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zMC43Mi0xNS4zNi0zMC43Mi0zMC43MnYtNDAuOTZjMC0yMC40OCAxNS4zNi0zNS44NCAzMC43Mi0zNS44NHoiIGZpbGw9IiNDODZGRkEiLz48L3N2Zz4=",jt=ae(2122),Ct=ae(77314),lt=ae(70618),Vt=ae(82033),Zt=ae(99709),gn=ae(77740);const sn=({shixunHomeworks:nr,classroomList:Rn,items:Ar,dispatch:Bi})=>{var Zn;const{shixunWorkReport:yn}=nr,Wn=(0,x.useRef)(null),[rr,pr]=(0,x.useState)(!1),[Kr,Fi]=(0,x.useState)(!1);(0,x.useEffect)(()=>{if(Wn.current)return Wn.current.addEventListener("mousedown",fi),()=>{var _i;(_i=Wn.current)==null||_i.removeEventListener("mousedown",fi)}},[Wn.current]),(0,x.useEffect)(()=>{setTimeout(()=>{Wn.current&&Wn.current.clientHeight>=500&&pr(!0)},500)},[(Zn=yn==null?void 0:yn.student_work_test_result_info)==null?void 0:Zn.content,Wn.current]);function fi(_i){const hi=(Yi,pi)=>{if(Yi.localName===pi)return Yi;for(let yi=0,Ji=Yi;Ji=Ji.parentNode;yi++){if(Ji.localName===pi)return Ji;if(Ji==document.documentElement)return!1}},bi=_i.target,wi=hi(bi,"a");if(console.log([wi],wi==null?void 0:wi.href,44),!(wi!=null&&wi.href)&&bi.tagName.toUpperCase()==="IMG"){let Yi=bi.src||bi.getAttribute("src");Yi&&Yi.indexOf("/images/avatars/User")===-1&&(_i.stopPropagation(),_i.preventDefault(),Vt.Z.publish("preview-image",Yi))}}return x.createElement("div",null,(yn==null?void 0:yn.is_open_submit_test_result)&&x.createElement(x.Fragment,null,x.createElement(lt.Z,null),x.createElement("strong",{className:"c-black font14"},"\u5B9E\u9A8C\u7ED3\u679C"),Ar?x.createElement("div",{style:{marginTop:10},className:""},x.createElement("div",{className:"py-20px px-36px",style:{background:"#F6F7F9"}},x.createElement("div",{ref:Wn,style:{maxHeight:!Kr&&"500px",overflow:"hidden"}},x.createElement(Ct.Z,{value:Ar==null?void 0:Ar.content})),rr&&x.createElement("div",{className:"w-full current",onClick:()=>{Fi(!Kr)}},x.createElement(we.Z,{variant:"dashed",style:{borderColor:"#3061D0",marginBottom:"0px"},dashed:!0},x.createElement("span",{style:{color:"#3061D0"}},Kr?"\u6536\u8D77":"\u5C55\u5F00")))),x.createElement(Zt.Z,{className:"px-36px",showDimensions:!1,dataSource:Ar==null?void 0:Ar.test_result_files,callback:()=>{}})):x.createElement(gn.Z,{customText:"\u5B66\u751F\u672A\u63D0\u4EA4\u5B9E\u9A8C\u7ED3\u679C"})))};var en=(0,Ue.connect)(({shixunHomeworks:nr,loading:Rn,globalSetting:Ar,classroomList:Bi})=>({shixunHomeworks:nr,globalSetting:Ar,loading:Rn.effects,classroomList:Bi}))(sn),zn=Object.defineProperty,Fn=Object.defineProperties,Ut=Object.getOwnPropertyDescriptors,an=Object.getOwnPropertySymbols,_n=Object.prototype.hasOwnProperty,Vn=Object.prototype.propertyIsEnumerable,It=(nr,Rn,Ar)=>Rn in nr?zn(nr,Rn,{enumerable:!0,configurable:!0,writable:!0,value:Ar}):nr[Rn]=Ar,Wt=(nr,Rn)=>{for(var Ar in Rn||(Rn={}))_n.call(Rn,Ar)&&It(nr,Ar,Rn[Ar]);if(an)for(var Ar of an(Rn))Vn.call(Rn,Ar)&&It(nr,Ar,Rn[Ar]);return nr},on=(nr,Rn)=>Fn(nr,Ut(Rn)),vn=(nr,Rn,Ar)=>new Promise((Bi,Zn)=>{var yn=pr=>{try{rr(Ar.next(pr))}catch(Kr){Zn(Kr)}},Wn=pr=>{try{rr(Ar.throw(pr))}catch(Kr){Zn(Kr)}},rr=pr=>pr.done?Bi(pr.value):Promise.resolve(pr.value).then(yn,Wn);rr((Ar=Ar.apply(nr,Rn)).next())});const Yn=({shixunHomeworks:nr,autoHeight:Rn,classroomList:Ar,dispatch:Bi})=>{var Zn,yn,Wn,rr,pr,Kr,Fi,fi;const{shixunWorkReport:_i}=nr,{stage_list:hi,work_id:bi,ai_code_evaluation_promote:wi}=_i,[Yi,pi]=(0,x.useState)(!1),[yi,Ji]=(0,x.useState)(!0),[io,ji]=(0,x.useState)({left:0,top:0,bottom:0,right:0}),So=(0,x.useRef)(null),[ki,ko]=(0,x.useState)(!1),[co,Xo]=(0,x.useState)(""),wo=(0,x.useRef)(null),eo=(yr,qr)=>{var Ao;const{clientWidth:Jo,clientHeight:_o}=window.document.documentElement,pa=(Ao=So.current)==null?void 0:Ao.getBoundingClientRect();pa&&ji({left:-pa.left+qr.x,right:Jo-(pa.right-qr.x),top:-pa.top+qr.y,bottom:_o-(pa.bottom-qr.y)})},bo=(0,Ue.useParams)(),Go=(0,ot.GJ)(),Tn={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};(0,x.useEffect)(()=>{console.log(bo)},[]);const Lo=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"position",width:"100px"},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"output_detail",render:(yr,qr,Ao)=>x.createElement("div",null,yr,qr.is_work_end_evaluate&&x.createElement(pt.vA,{status:5}))},{title:"\u8BC4\u6D4B\u8017\u65F6(S)",dataIndex:"ts_time",width:"130px"},{title:"\u5185\u5B58\u6D88\u8017(MB)",width:"150px",dataIndex:"ts_mem"},{title:"\u8BC4\u6D4B\u65F6\u95F4",width:"170px",dataIndex:"created_at",render:yr=>Ie()(yr).format("YYYY-MM-DD HH:mm")},{title:"\u64CD\u4F5C",width:"80px",dataIndex:"query_index",render:(yr,qr)=>x.createElement("span",{className:"c-blue current",onClick:()=>vn(void 0,null,function*(){var Ao,Jo;const _o=yield(0,ie.Lk)(qr.game_identifier,{path:(Jo=(Ao=qr.path)==null?void 0:Ao.replace(/\/g,";"))==null?void 0:Jo.split(";")[0],query_index:qr.query_index,homework_common_id:bo.categoryId});(_o==null?void 0:_o.status)===0&&(ko(_o),pi(!0))})},qr.query_index?"\u67E5\u770B\u4EE3\u7801":"")}],Gi=[{title:"\u8C03\u5206\u7528\u6237",dataIndex:["user","name"],width:350,render:(yr,qr)=>{var Ao;return x.createElement("span",null,x.createElement("img",{width:30,height:30,style:{borderRadius:"50%",marginRight:"10px"},src:ct.Z.IMG_SERVER+"/images/"+((Ao=qr==null?void 0:qr.user)==null?void 0:Ao.image_url)}),yr)}},{title:"\u8C03\u5206\u524D",dataIndex:"old_score",width:270,render:yr=>x.createElement("span",null,"\u4FEE\u6B63\u524D\u5206\u6570\uFF1A",yr,"\u5206")},{title:"\u8C03\u5206\u540E",dataIndex:"score",width:270,render:yr=>x.createElement("span",null,"\u4FEE\u6B63\u540E\u5206\u6570\uFF1A",yr,"\u5206")},{title:"\u8C03\u5206\u65F6\u95F4",dataIndex:"created_at",align:"right",render:yr=>x.createElement("span",null,"\u4FEE\u6B63\u65F6\u95F4\uFF1A",yr?Ie()(yr).format("YYYY-MM-DD HH:mm"):"--")}];function jr(yr,qr){return vn(this,null,function*(){const{challenge_id:Ao}=hi[yr],Jo=yield Bi({type:"shixunHomeworks/changeScore",payload:{categoryId:bo.homeworkId,type:"report",score:qr,challenge_id:Ao}});yield Bi({type:"shixunHomeworks/getShixunWorkReport",payload:Wt({},bo)}),Jo.status===0&&xe.ZP.success("\u64CD\u4F5C\u6210\u529F")})}function Jr(yr,qr){return(0,Le.U2)(`student_works/${bi}/rep_passed_content.json`,{path:qr,game_id:yr})}const[ni,Wr]=(0,x.useState)((Zn=_i==null?void 0:_i.shixun_detail)==null?void 0:Zn.map(yr=>on(Wt({},yr),{commentEdit:!1}))),Ui=yr=>yr.replace(/\\\(([\s\S]*?)\\\)/g,"<mathx data-text='$1'>$$$$$1$$$$</mathx>").replace(/\\\[([\s\S]*?)\\\]/g,"<mathx data-text='$1'>$$$$$1$$$$</mathx>").replace(/`(\$\$.*?\$\$)`/g,"<mathx data-text='$1'>$$$$$1$$$$</mathx>").replace(/_{2,}/g,"`$&`"),[to,$r]=(0,x.useState)(!1),oi=(yr,qr)=>vn(void 0,null,function*(){var Ao,Jo;$r(!0),wo.current=new jt.Z(ct.Z.API_SERVER+"/api/stream/intelligent_imports/chat_messages.json",{response_mode:"streaming",model:"qwen-plus-latest",scene_awareness:!1,thinking_enabled:!1,image_generator:!1,file_ids:[],history:[],prompt:wi,shixun_id:_i==null?void 0:_i.myshixun_identifier,game_id:yr==null?void 0:yr.id,source:"shixun",is_chat:!1,type:9,description:yr==null?void 0:yr.challenge_description,query:(Jo=(Ao=yr==null?void 0:yr.game_codes)==null?void 0:Ao[0])==null?void 0:Jo.content,homework_common_id:bo.categoryId}),yield new Promise((_o,pa)=>{wo.current.on("data",No=>{const qo=[...ni];qo[qr].comment=Ui(No==null?void 0:No.full),Wr(qo)}),wo.current.on("done",()=>vn(void 0,null,function*(){var No;$r(!1);const qo=[...ni],Ro=yield(0,Le.ZP)(`/api/student_works/${bo==null?void 0:bo.homeworkId}/challenge_comment`,{method:"put",body:{challenge_id:yr==null?void 0:yr.challenge_id,comment:qo[qr].comment}});if((Ro==null?void 0:Ro.status)==0){xe.ZP.success("\u8BC4\u4EF7\u6210\u529F");const oa=[...ni];oa[qr].comment_updated_at=(No=Ro==null?void 0:Ro.data)==null?void 0:No.comment_updated_at,Wr(oa)}})),wo.current.startStream()})});return x.createElement(x.Fragment,null,ni==null?void 0:ni.map(function(yr,qr){var Ao,Jo,_o,pa;return x.createElement("div",{key:qr},x.createElement("aside",{className:"pl30 pr30",key:qr},x.createElement("div",{className:`${He.shixunTitle} mt10`},x.createElement("div",null,x.createElement("span",{className:"fa fa-code "}),x.createElement("strong",{className:"c-black"},"\u7B2C",qr+1,"\u5173 ",x.createElement(Ue.Link,{className:"c-black",target:"_blank",to:`/tasks/${bo.coursesId}/${bo.categoryId}/${yr.game_identifier}`},yr.subject))),Go?x.createElement("span",null,"\u8C03\u5206\uFF1A",x.createElement(at,{className:"game-score",max:hi[qr].game_score_full,defaultValue:hi[qr].game_score,disabled:!((Ao=hi==null?void 0:hi[qr])!=null&&Ao.checked)&&((Jo=hi==null?void 0:hi[qr])==null?void 0:Jo.is_show),onBlur:No=>{var qo;if((0,ot.Rm)()&&!((qo=Ar.AssistantObject.practice)!=null&&qo.can_appraise)){xe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}jr(qr,No)}})):null),x.createElement("div",{className:"font16 mt10"},yr.st===0&&(yr.path?typeof(yr==null?void 0:yr.game_codes_cn)=="string"?x.createElement("aside",{className:He.shixunWrp},x.createElement(pe,{game_codes_cn:yr==null?void 0:yr.game_codes_cn,autoHeight:Rn,path:yr.path,game_id:yr.id,data:yr.game_codes,diff_code_count:yr.diff_code_count,onPathChange:Jr})):x.createElement("div",{className:"font14",style:{border:"1px solid #d9d9d9",padding:"6px 10px"}}," \u63D0\u793A\uFF1A\u7EAF\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u7684\u5B9E\u8BAD\u4E0D\u5C55\u793A\u901A\u5173\u4EE3\u7801\uFF0C\u5982\u9700\u67E5\u770B\u5B66\u751F\u4EE3\u7801\u8BF7\u524D\u5F80\u4F5C\u4E1A\u5217\u8868\u5BFC\u51FA\u5B9E\u9A8C\u6587\u4EF6\u3002"):"\u76EE\u524D\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u3001Vscode\u7F16\u8F91\u5668\u3001\u7406\u8BBA\u9898\u6A21\u5F0F\u7684\u5B9E\u9A8C\uFF0C\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u6B64\u529F\u80FD"),yr.st===1&&(yr.complete_status===0?"\u672C\u5173\u6682\u672A\u901A\u8FC7\uFF0C\u65E0\u901A\u5173\u4EE3\u7801":"\u76EE\u524D\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u3001Vscode\u7F16\u8F91\u5668\u3001\u7406\u8BBA\u9898\u6A21\u5F0F\u7684\u5B9E\u9A8C\uFF0C\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u6B64\u529F\u80FD")),x.createElement("aside",{className:"mt10 font16"},(_o=yr.outputs)!=null&&_o.length?x.createElement(Ee.default,{columns:Lo,pagination:{hideOnSinglePage:!0},dataSource:yr.outputs.map(No=>Wt(Wt({},yr),No))}):"\u672C\u5173\u65E0\u8BC4\u6D4B\u8BB0\u5F55"),x.createElement(en,{items:yr==null?void 0:yr.student_work_test_result_info}),x.createElement("aside",{className:"mt10"},x.createElement("div",null,x.createElement("div",{style:{display:"flex",alignItems:"center"}},x.createElement("strong",{className:"c-black font14"},"\u4EE3\u7801\u8BC4\u4EF7"),!(yr!=null&&yr.commentEdit)&&!(0,ot.dE)()&&(yr!=null&&yr.comment?x.createElement(x.Fragment,null,x.createElement("div",{style:{color:"#666666",fontSize:"12px",marginLeft:"auto"}},"\u6700\u65B0\u8BC4\u4EF7\u65F6\u95F4\uFF1A",yr!=null&&yr.comment_updated_at?Ie()(yr==null?void 0:yr.comment_updated_at).format("YYYY-MM-DD HH:mm:ss"):"--"),x.createElement("div",{style:{color:"#3061D0",fontSize:"14px",marginLeft:"40px",cursor:"pointer"},onClick:()=>vn(this,null,function*(){to?xe.ZP.warning("\u6B63\u5728\u751F\u6210\u8BC4\u8BBA\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002"):he.default.confirm({title:"\u63D0\u793A",content:"\u786E\u8BA4\u662F\u5426\u91CD\u65B0\u751F\u6210\u8BC4\u8BBA\uFF1F",okText:"\u786E\u8BA4",icon:null,cancelText:"\u53D6\u6D88",onOk:()=>vn(this,null,function*(){oi(yr,qr)})})})},x.createElement("i",{className:"iconfont icon-zhongxinshengcheng1 mr8 font14"}),"\u91CD\u65B0\u751F\u6210")):x.createElement("div",{style:{color:"#3061D0",fontSize:"14px",marginLeft:"auto",cursor:"pointer"},onClick:()=>vn(this,null,function*(){to?xe.ZP.warning("\u6B63\u5728\u751F\u6210\u8BC4\u8BBA\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002"):oi(yr,qr)})},x.createElement("img",{src:Lt,className:"mr8"}),"\u4E00\u952EAI\u751F\u6210")),!(yr!=null&&yr.commentEdit)&&!(0,ot.dE)()&&x.createElement("div",{style:{color:"#3061D0",fontSize:"14px",marginLeft:"20px",cursor:"pointer"},onClick:()=>{const No=[...ni];No[qr].commentEdit=!0,Wr(No),Xo(yr==null?void 0:yr.comment)}},x.createElement("i",{className:"iconfont icon-bianji-moren mr8 font14"}),"\u7F16\u8F91"),(yr==null?void 0:yr.commentEdit)&&x.createElement(x.Fragment,null,x.createElement("div",{className:He.pj_close,onClick:()=>{const No=[...ni];No[qr].commentEdit=!1,Wr(No)}},"\u53D6\u6D88"),x.createElement("div",{className:He.pj_save,onClick:()=>vn(this,null,function*(){var No;const qo=yield(0,Le.ZP)(`/api/student_works/${bo==null?void 0:bo.homeworkId}/challenge_comment`,{method:"put",body:{challenge_id:yr==null?void 0:yr.challenge_id,comment:co}});if((qo==null?void 0:qo.status)==0){xe.ZP.success("\u8BC4\u4EF7\u6210\u529F");const Ro=[...ni];Ro[qr].commentEdit=!1,Ro[qr].comment=co,Ro[qr].comment_updated_at=(No=qo==null?void 0:qo.data)==null?void 0:No.comment_updated_at,Wr(Ro)}})},"\u4FDD\u5B58"))),!(yr!=null&&yr.commentEdit)&&x.createElement("div",{className:He.pingjia},yr!=null&&yr.comment?x.createElement(Ct.Z,{value:yr==null?void 0:yr.comment,style:{fontSize:"14px"}}):"\u6682\u65E0\u8BC4\u4EF7~"),(yr==null?void 0:yr.commentEdit)&&x.createElement(Ce.default.TextArea,{defaultValue:co,style:{borderRadius:"5px",marginTop:"10px"},rows:5,onChange:No=>Xo(No.target.value)}))),x.createElement("aside",{className:"mt10 font16"},((pa=yr==null?void 0:yr.adjust_review_score_list)==null?void 0:pa.length)>0&&(0,ot.GJ)()&&x.createElement("div",null,x.createElement("strong",{className:"c-black font14"},"\u8C03\u5206\u8BB0\u5F55"),x.createElement(Ee.default,{columns:Gi,pagination:{hideOnSinglePage:!0},dataSource:yr.adjust_review_score_list,showHeader:!1})))))}),x.createElement(he.default,{open:Yi,width:900,okText:"\u5173\u95ED",cancelButtonProps:{style:{display:"none"}},onOk:()=>{ko({}),pi(!1)},onCancel:()=>{ko({}),pi(!1)},title:x.createElement("div",{style:{width:"100%",cursor:"move"},onMouseOver:()=>{yi&&Ji(!1)},onMouseOut:()=>{Ji(!0)},onFocus:()=>{},onBlur:()=>{}},"\u4EE3\u7801\u5185\u5BB9"),modalRender:yr=>x.createElement(se(),{disabled:yi,bounds:io,nodeRef:So,onStart:(qr,Ao)=>eo(qr,Ao)},x.createElement("div",{ref:So},yr))},x.createElement("div",{style:{background:"#F6F7F9",padding:"30px 20px",marginBottom:20}},x.createElement("div",{style:{display:"flex",alignItems:"center"}},((yn=ki==null?void 0:ki.data)==null?void 0:yn.output_detail)==="\u8BC4\u6D4B\u901A\u8FC7"?x.createElement("i",{style:{color:"#0B9953",fontSize:18,marginRight:10},className:"iconfont icon-duigou1"}):x.createElement("i",{style:{color:"#E21010",fontSize:18,marginRight:10},className:"iconfont icon-jinggao1"}),x.createElement("div",{style:{color:((Wn=ki==null?void 0:ki.data)==null?void 0:Wn.output_detail)==="\u8BC4\u6D4B\u901A\u8FC7"?"#0B9953":"#E21010",fontSize:16,fontWeight:600}},(rr=ki==null?void 0:ki.data)==null?void 0:rr.output_detail)),x.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginTop:20}},x.createElement("div",null,x.createElement("span",{style:{color:"#6A7283"}},"\u8BC4\u6D4B\u65F6\u95F4"),x.createElement("span",{style:{marginLeft:8,color:"#232B40"}},Ie()((pr=ki==null?void 0:ki.data)==null?void 0:pr.created_at).format("YYYY-MM-DD HH:mm:ss"))),x.createElement("div",null,x.createElement("span",{style:{color:"#6A7283"}},"\u7528\u65F6"),x.createElement("span",{style:{marginLeft:8,color:"#232B40"}},(Kr=ki==null?void 0:ki.data)==null?void 0:Kr.ts_time,"s")),x.createElement("div",null,x.createElement("span",{style:{color:"#6A7283"}},"\u5185\u5B58"),x.createElement("span",{style:{marginLeft:8,color:"#232B40"}},(Fi=ki==null?void 0:ki.data)==null?void 0:Fi.ts_mem,"mb")),x.createElement("div",null,x.createElement("span",{style:{color:"#6A7283"}},"\u7528\u4F8B\u901A\u8FC7\u7387"),x.createElement("span",{style:{marginLeft:8,color:"#232B40"}},((fi=ki==null?void 0:ki.data)==null?void 0:fi.test_set_passed_rate)*100,"%")))),x.createElement(Nt.ZP,{height:500,autoHeight:Rn,language:"python",theme:"default",isCopy:!0,value:decodeURIComponent(escape(window.atob((ki==null?void 0:ki.content)||""))),options:Tn})))};var Lr=(0,Ue.connect)(({shixunHomeworks:nr,loading:Rn,globalSetting:Ar,classroomList:Bi})=>({shixunHomeworks:nr,globalSetting:Ar,loading:Rn.effects,classroomList:Bi}))(Yn),ri=ae(28284),zr={greyText:"greyText___nOpNq",info:"info___nBB3c",label:"label___P6my8",blackContent:"blackContent___O4HnS",orangeContent:"orangeContent___JBF44",inputLabel:"inputLabel___B2GAs",tableTitle:"tableTitle___IqAxM",scoreTable:"scoreTable___RJvpU"},Ir=ae(1779),tr=ae(59301),vr=Object.defineProperty,Qn=Object.getOwnPropertySymbols,qn=Object.prototype.hasOwnProperty,lr=Object.prototype.propertyIsEnumerable,$n=(nr,Rn,Ar)=>Rn in nr?vr(nr,Rn,{enumerable:!0,configurable:!0,writable:!0,value:Ar}):nr[Rn]=Ar,Br=(nr,Rn)=>{for(var Ar in Rn||(Rn={}))qn.call(Rn,Ar)&&$n(nr,Ar,Rn[Ar]);if(Qn)for(var Ar of Qn(Rn))lr.call(Rn,Ar)&&$n(nr,Ar,Rn[Ar]);return nr},Sr=(nr,Rn,Ar)=>new Promise((Bi,Zn)=>{var yn=pr=>{try{rr(Ar.next(pr))}catch(Kr){Zn(Kr)}},Wn=pr=>{try{rr(Ar.throw(pr))}catch(Kr){Zn(Kr)}},rr=pr=>pr.done?Bi(pr.value):Promise.resolve(pr.value).then(yn,Wn);rr((Ar=Ar.apply(nr,Rn)).next())});const kr=({shixunHomeworks:nr,dispatch:Rn,classroomList:Ar})=>{const{shixunWorkReport:Bi}=nr,Zn=(0,Ue.useParams)(),[yn,Wn]=(0,x.useState)(!1),[rr]=ri.default.useForm(),[pr,Kr]=he.default.useModal(),[Fi,fi]=(0,x.useState)(!1),[_i,hi]=(0,x.useState)(!1),bi=[{label:"\u5FC5\u505A",value:"required",color:"#1B8565"},{label:"\u9009\u505A",value:"optional",color:"#1E96F4"},{label:"\u4E0D\u505A",value:"hidden",color:"#5F6368"}];(0,x.useEffect)(()=>{var pi,yi,Ji,io;nr.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4"&&rr.setFieldsValue({comment:(yi=(pi=nr.actionTabs.selectArrs)==null?void 0:pi.data)==null?void 0:yi.work_comment,hidden_comment:(io=(Ji=nr.actionTabs.selectArrs)==null?void 0:Ji.data)==null?void 0:io.work_comment_hidden})},[nr.actionTabs.key]);const wi=()=>Sr(void 0,null,function*(){const pi=rr.getFieldsValue();(yield(0,Le.ZP)(`/api/student_works/${Zn.homeworkId}/shixun_work_comment.json`,{method:"post",body:{hidden_comment:pi.hidden_comment,comment:pi.comment}})).status===0&&(xe.ZP.success("\u8BC4\u9605\u6210\u529F"),rr.resetFields(),Rn({type:"shixunHomeworks/setActionTabs",payload:{}}),Rn({type:"shixunHomeworks/getShixunWorkReport",payload:Br({},Zn)}))}),Yi=[{title:"\u5173\u5361",dataIndex:"name",render:(pi,yi,Ji)=>Ji+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(pi,yi,Ji)=>tr.createElement("div",null,pi,yi.complete_status===4&&tr.createElement(pt.vA,{status:yi.complete_status}))},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"open_time"},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time"},{title:"\u5173\u5361\u8981\u6C42",dataIndex:"checked",render:pi=>{var yi,Ji;return tr.createElement("span",{style:{color:(yi=bi==null?void 0:bi.find(io=>(io==null?void 0:io.value)==pi))==null?void 0:yi.color}},(Ji=bi==null?void 0:bi.find(io=>(io==null?void 0:io.value)==pi))==null?void 0:Ji.label)}},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",align:"center"},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"time_consuming"},{title:"\u662F\u5426\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",align:"center",render:pi=>pi?"\u662F":"\u5426"},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",align:"center",render:(pi,yi)=>tr.createElement("div",null,tr.createElement("span",{style:{color:parseFloat(yi.game_score_full)!==parseFloat(pi)?"#E30000":"#53C41B"}},pi),"/",yi.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",align:"center",fixed:"right",render:(pi,yi)=>(0,ot.GJ)()?tr.createElement(at,{max:yi.game_score_full,defaultValue:parseFloat(pi),onBlur:Ji=>Sr(void 0,null,function*(){var io,ji;if((0,ot.Rm)()&&!((io=Ar.AssistantObject.practice)!=null&&io.can_appraise)){xe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const So=yield Rn({type:"shixunHomeworks/changeScore",payload:{categoryId:Zn.homeworkId,type:"report",score:Ji,challenge_id:yi.challenge_id}});(ji=nr==null?void 0:nr.actionTabs)==null||ji.fn(),yield Rn({type:"shixunHomeworks/getShixunWorkReport",payload:Br({},Zn)}),So.status===0&&xe.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):pi}];return tr.createElement(tr.Fragment,null,Kr,tr.createElement(he.default,{centered:!0,width:1080,title:"\u70B9\u8BC4\u4F5C\u4E1A",open:nr.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Sr(void 0,null,function*(){var pi;if((0,ot.Rm)()&&!((pi=Ar.AssistantObject.practice)!=null&&pi.can_appraise)){xe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const yi=rr.getFieldsValue();JSON.stringify(yi)==="{}"||yi.hidden_comment===""&&yi.comment===""?Wn(!0):wi()}),onCancel:()=>{Rn({type:"shixunHomeworks/setActionTabs",payload:{}})}},tr.createElement(ve.Z,{justify:"space-between",className:zr.info},tr.createElement(Me.Z,null,tr.createElement("span",{className:`${zr.label} ${zr.greyText}`},"\u59D3\u540D"),tr.createElement("span",{className:zr.blackContent},Bi==null?void 0:Bi.username)),tr.createElement(Me.Z,null,tr.createElement("span",{className:`${zr.label} ${zr.greyText}`},"\u5B66\u53F7"),tr.createElement("span",{className:zr.blackContent},(Bi==null?void 0:Bi.student_id)||"--")),tr.createElement(Me.Z,null,tr.createElement("span",{className:`${zr.label} ${zr.greyText}`},"\u73ED\u7EA7"),tr.createElement("span",{className:zr.blackContent},(Bi==null?void 0:Bi.group_name)||"--")),tr.createElement(Me.Z,null,tr.createElement("span",{className:`${zr.label} ${zr.greyText}`},"\u5173\u5361\u5F97\u5206"),tr.createElement("span",{className:zr.orangeContent},(Bi==null?void 0:Bi.challenge_score)||"--")),tr.createElement(Me.Z,null,tr.createElement("span",{className:`${zr.label} ${zr.greyText}`},"\u6548\u7387\u5206"),tr.createElement("span",{className:zr.orangeContent},(Bi==null?void 0:Bi.eff_score)||"--")),tr.createElement(Me.Z,null,tr.createElement("span",{className:`${zr.label} ${zr.greyText}`},"\u8865\u4EA4\u6263\u5206"),tr.createElement("span",{className:zr.orangeContent},(Bi==null?void 0:Bi.late_penalty)||"--")),tr.createElement(Me.Z,null,tr.createElement("span",{className:`${zr.label} ${zr.greyText}`},"\u6700\u7EC8\u6210\u7EE9"),tr.createElement("span",{className:zr.orangeContent},(Bi==null?void 0:Bi.work_score)||"--"))),tr.createElement(ri.default,{form:rr,onChange:()=>{yn&&Wn(!1)}},tr.createElement(ve.Z,{wrap:!1,align:"middle",justify:"space-between"},tr.createElement(Me.Z,null,tr.createElement("div",{className:`${zr.inputLabel} ${zr.greyText}`},"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),tr.createElement(Me.Z,null,tr.createElement(Ir.Z,{isShowComponent:(0,ot.G5)(),ModalProps:{open:Fi,onCancel:()=>{fi(!1)}},onDataSelect:(pi,yi)=>Sr(void 0,[pi,yi],function*(Ji,{node:io}){const ji=()=>{rr.setFieldsValue({comment:io==null?void 0:io.value}),fi(!1)};if(rr.getFieldValue("comment")){pr.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5E38\u7528\u8BC4\u8BED\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u4F7F\u7528\uFF1F",okText:"\u4F7F\u7528",onOk:ji});return}ji()})},tr.createElement(Se.ZP,{style:{padding:0,height:"auto"},icon:tr.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:pi=>{fi(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),tr.createElement(ri.default.Item,{name:"comment"},tr.createElement(Ce.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3})),tr.createElement(ve.Z,{wrap:!1,align:"middle",justify:"space-between"},tr.createElement(Me.Z,null,tr.createElement("div",{className:`${zr.inputLabel} ${zr.greyText}`},"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),tr.createElement(Me.Z,null,tr.createElement(Ir.Z,{isShowComponent:(0,ot.G5)(),ModalProps:{open:_i,onCancel:()=>{hi(!1)}},onDataSelect:(pi,yi)=>Sr(void 0,[pi,yi],function*(Ji,{node:io}){const ji=()=>{rr.setFieldsValue({hidden_comment:io==null?void 0:io.value}),hi(!1)};if(rr.getFieldValue("hidden_comment")){pr.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5E38\u7528\u8BC4\u8BED\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u4F7F\u7528\uFF1F",okText:"\u4F7F\u7528",onOk:ji});return}ji()})},tr.createElement(Se.ZP,{style:{padding:0,height:"auto"},icon:tr.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:pi=>{hi(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),tr.createElement(ri.default.Item,{name:"hidden_comment"},tr.createElement(Ce.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3}))),yn&&tr.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A"),tr.createElement("div",{className:zr.tableTitle},"\u5173\u5361\u6210\u7EE9"),tr.createElement(Ee.default,{className:zr.scoreTable,dataSource:Bi.stage_list,rowKey:"challenge_id",pagination:!1,columns:Yi,scroll:{x:"max-content"}})))};var gi=(0,Ue.connect)(({shixunHomeworks:nr,classroomList:Rn})=>({shixunHomeworks:nr,classroomList:Rn}))(kr),Ai=ae(11785),di=ae(67741),Ti=ae(44164),Ei=ae.n(Ti),no={wrap:"wrap___LZOi9",line:"line___oju0L"},zi=ae(97783),Ur=({detailData:nr})=>{var Rn;return x.createElement("div",{className:no.wrap},x.createElement(zi.ij,{hideBar:!0,actionAnalysis:!0,loading:!1,emptyData:[(0,zi.Uf)(nr),(nr==null?void 0:nr.photos)||[]],title:"\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",noDataText:"\u8BE5\u5B66\u751F\u65E0\u5B66\u4E60\u884C\u4E3A\u5206\u6790\u6570\u636E"},x.createElement(zi.ZP,{hideBar:!0,title:"\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",data:(0,zi.Uf)(nr)}),!!((Rn=nr==null?void 0:nr.photos)!=null&&Rn.length)&&x.createElement(x.Fragment,null,x.createElement("div",{className:no.line}),x.createElement(zi._s,{dataSource:nr==null?void 0:nr.photos,right:21,col:4,wrapWidth:1140}))))},vi=ae(3995),Gt=ae(59301),un=Object.defineProperty,wn=Object.defineProperties,Mt=Object.getOwnPropertyDescriptors,dn=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,Nn=(nr,Rn,Ar)=>Rn in nr?un(nr,Rn,{enumerable:!0,configurable:!0,writable:!0,value:Ar}):nr[Rn]=Ar,Pr=(nr,Rn)=>{for(var Ar in Rn||(Rn={}))Kt.call(Rn,Ar)&&Nn(nr,Ar,Rn[Ar]);if(dn)for(var Ar of dn(Rn))pn.call(Rn,Ar)&&Nn(nr,Ar,Rn[Ar]);return nr},Yr=(nr,Rn)=>wn(nr,Mt(Rn)),ci=(nr,Rn)=>{var Ar={};for(var Bi in nr)Kt.call(nr,Bi)&&Rn.indexOf(Bi)<0&&(Ar[Bi]=nr[Bi]);if(nr!=null&&dn)for(var Bi of dn(nr))Rn.indexOf(Bi)<0&&pn.call(nr,Bi)&&(Ar[Bi]=nr[Bi]);return Ar},or=(nr,Rn,Ar)=>new Promise((Bi,Zn)=>{var yn=pr=>{try{rr(Ar.next(pr))}catch(Kr){Zn(Kr)}},Wn=pr=>{try{rr(Ar.throw(pr))}catch(Kr){Zn(Kr)}},rr=pr=>pr.done?Bi(pr.value):Promise.resolve(pr.value).then(yn,Wn);rr((Ar=Ar.apply(nr,Rn)).next())});function cr(nr){const Rn=(Zn,yn)=>{if(Zn.localName===yn)return Zn;for(let Wn=0,rr=Zn;rr=rr.parentNode;Wn++){if(rr.localName===yn)return rr;if(rr==document.documentElement)return!1}},Ar=nr.target,Bi=Rn(Ar,"a");if(console.log([Bi],Bi==null?void 0:Bi.href,44),!(Bi!=null&&Bi.href)&&Ar.tagName.toUpperCase()==="IMG"){let Zn=Ar.src||Ar.getAttribute("src");Zn&&Zn.indexOf("/images/avatars/User")===-1&&(nr.stopPropagation(),nr.preventDefault(),Vt.Z.publish("preview-image",Zn))}}const sr=nr=>{var Rn=nr,{shixunHomeworks:Ar,classroomList:Bi,globalSetting:Zn,loading:yn,user:Wn,dispatch:rr}=Rn,pr=ci(Rn,["shixunHomeworks","classroomList","globalSetting","loading","user","dispatch"]),Kr,Fi,fi,_i;const[hi,bi]=(0,x.useState)(Pr({},(0,Ue.useParams)())),wi=(0,Ue.useParams)(),[Yi,pi]=(0,x.useState)({page:1,page_size:10}),yi=(0,Ue.useLocation)(),[]=(0,x.useState)([]),[Ji,io]=(0,x.useState)(),ji=(0,x.useRef)(),So=(0,x.useRef)(),[ki,ko]=(0,x.useState)(!1),[co,Xo]=(0,x.useState)(!0),[wo,eo]=(0,x.useState)(!1),[bo,Go]=(0,x.useState)(!1),{shixunWorkReport:Tn}=Ar,[Lo,Gi]=(0,x.useState)(),[jr,Jr]=(0,x.useState)([]),[ni,Wr]=(0,x.useState)(),[Ui,to]=(0,x.useState)("all"),$r=(0,ot.GJ)(),[oi,yr]=(0,x.useState)(new(ze())),[qr,Ao]=(0,x.useState)(0),[Jo,_o]=(0,x.useState)(!1),[pa,No]=(0,x.useState)(!1),[qo,Ro]=(0,x.useState)(!1),[oa,da]=(0,x.useState)(""),[Ka,_s]=(0,x.useState)(!1),[js,as]=(0,x.useState)(!0),[fs,Mo]=(0,x.useState)(0),go=(0,x.useRef)(JSON.parse(sessionStorage.all_student_works_params||"{}")),Fa=(0,x.useRef)(),[gs,nl]=(0,x.useState)(!1),[rl,il]=(0,x.useState)(!1),yl=(0,x.useRef)(null),su={required:{tag:"\u5FC5\u505A",color:"#1B8565"},optional:{tag:"\u9009\u505A",color:"#1E96F4"},hidden:{tag:"\u4E0D\u505A",color:"#5F6368"}},ol=()=>or(void 0,null,function*(){(Wn.userInfo.is_teacher||Wn.userInfo.admin)&&(_s(!0),as(!1))});(0,x.useEffect)(()=>{var Hi;(0,ot.Rm)()&&Bi.AssistantObject.practice&&!((Hi=Bi.AssistantObject.practice)!=null&&Hi.can_view)&&Ue.history.replace("/403")},[(Kr=Bi.AssistantObject.practice)==null?void 0:Kr.can_view]),(0,x.useEffect)(()=>{ol(),console.log("\u6253\u5370\u7684------",Tn),Fa.current=Tn==null?void 0:Tn.next_student_work_id,da(Tn.repeat_minus_score)},[Tn,Wn]),(0,x.useEffect)(()=>{console.log("\u89E6\u53D1\u8FD9",Tn.work_score),Mo(Tn.work_score)},[Tn.work_score,oa]),(0,x.useEffect)(()=>(rr({type:"globalSetting/footerToggle",payload:!1}),()=>{rr({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,x.useEffect)(()=>{if(yl.current)return yl.current.addEventListener("mousedown",cr),()=>{var Hi;(Hi=yl.current)==null||Hi.removeEventListener("mousedown",cr)}},[yl.current]),(0,x.useEffect)(()=>{setTimeout(()=>{yl.current&&yl.current.clientHeight>=500&&il(!0)},500)},[(Fi=Tn==null?void 0:Tn.student_work_test_result_info)==null?void 0:Fi.content,yl.current]),(0,x.useEffect)(()=>{var Hi;if(Tn){let Vo=[];(Hi=Tn==null?void 0:Tn.target_test_sets)==null||Hi.map((Ma,Hl)=>{var ks;(ks=Ma==null?void 0:Ma.targets)==null||ks.map((zl,pl)=>{var eA;zl.name=Ma==null?void 0:Ma.name,zl.total_target_score=Ma==null?void 0:Ma.total_target_score,zl.actual_target_score=Ma==null?void 0:Ma.actual_target_score,zl.rowSpan=pl===0?(eA=Ma==null?void 0:Ma.targets)==null?void 0:eA.length:0,zl.order=Hl+1,Vo.push(zl)})}),Gi(Vo),(0,ot.Rm)()&&rr({type:"classroomList/getAssistantPermissions",payload:{course_id:hi.coursesId}})}},[Tn]),(0,x.useEffect)(()=>{Ar.actionTabs.key==="\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"&&(Tn==null?void 0:Tn.students_count)>0&&!co&&setTimeout(()=>{Ea("all")},800)},[Tn==null?void 0:Tn.homework_common_id,co]),(0,x.useEffect)(()=>{bi(Pr({},wi))},[yi.pathname]);const jl=()=>{document.body.scrollIntoView()},Lu=Hi=>{Yi.page=Hi,pi(Pr({},Yi)),Xl(Yi,Ui)},Xl=(Hi,Vo)=>or(void 0,null,function*(){eo(!0);const Ma=yield(0,Le.ZP)(`/api/student_works/${hi==null?void 0:hi.homeworkId}/adjust_review_score_histories.json`,{method:"get",params:Yr(Pr({},Hi),{challenge_id:Vo=="all"?null:Vo})});(Ma==null?void 0:Ma.status)===0&&(Jr(Ma==null?void 0:Ma.list),Wr(Ma==null?void 0:Ma.count)),eo(!1)});function wl(){return or(this,null,function*(){go.current=JSON.parse(sessionStorage.all_student_works_params||"{}")})}const ec=()=>{document.querySelectorAll("canvas").forEach(Hi=>{(!Hi.clientWidth||!Hi.clientHeight)&&Hi.remove()})},_c=()=>{ji.current.offsetHeight>62e3?Go(!1):Go(!0)},ma=Hi=>or(void 0,null,function*(){const Vo=yield(0,di.t1)({homeworkId:Hi||hi.homeworkId});io(Vo==null?void 0:Vo.data)}),Ea=Hi=>or(void 0,null,function*(){var Vo,Ma,Hl,ks;nl(!0);let zl=0,pl;pl=he.default.info({width:460,title:Gt.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A,",Gt.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:Gt.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",Gt.createElement("span",{className:"c-blue"},zl+1),"/",Hi!=="all"?1:Tn==null?void 0:Tn.students_count,Gt.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"),maskClosable:!1,className:He.modal,onOk:()=>{}});const eA={margin:[0,0],filename:`${Tn!=null&&Tn.student_id&&(Tn==null?void 0:Tn.student_id)!="--"?Tn==null?void 0:Tn.student_id:""}${Tn.username}.pdf`,html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}},Bc=oi.folder(Tn==null?void 0:Tn.shixun_name);function tc(ss){return or(this,null,function*(){yield ma(ss||Fa.current);const ns=yield rr({type:"shixunHomeworks/getShixunWorkReport",payload:Pr({homeworkId:ss||Fa.current},go.current||{})});Fa.current=ns==null?void 0:ns.next_student_work_id,jl(),zl++,setTimeout(()=>or(this,null,function*(){var KA,tA,Qs,Sl;ec();const zc=Bc.folder(`${ns==null?void 0:ns.group_name}`).folder(`${ns!=null&&ns.student_id&&(ns==null?void 0:ns.student_id)!="--"?ns.student_id+"+":""}${ns==null?void 0:ns.username}`),ml=document.querySelector("#export-all").children;let _u=Ei()();for(let Ws=0;Ws<ml.length;Ws++)yield _u.set(eA).from(ml[Ws]).toContainer().toCanvas().toPdf().get("pdf").then(Gs=>or(this,null,function*(){Ws<ml.length-1&&(yield Gs.addPage())}));if(zc.file(`${ns!=null&&ns.student_id&&(ns==null?void 0:ns.student_id)!="--"?ns.student_id+"+":""}${ns==null?void 0:ns.username}.pdf`,_u.output("blob")),((KA=ns==null?void 0:ns.shixun_detail)==null?void 0:KA.length)>0&&((Qs=(tA=ns==null?void 0:ns.shixun_detail)==null?void 0:tA.filter(Ws=>{var Gs;return((Gs=Ws==null?void 0:Ws.game_codes)==null?void 0:Gs.length)>0}))==null?void 0:Qs.length)>0){const Ws=zc.folder("\u4EE3\u7801\u6587\u4EF6");(Sl=ns==null?void 0:ns.shixun_detail)==null||Sl.map((Gs,lu)=>{var NA,$A;if(((NA=Gs==null?void 0:Gs.game_codes)==null?void 0:NA.length)>0){const uu=Ws.folder(`\u7B2C${lu+1}\u5173-${Gs.subject}-${Gs.id}`);($A=Gs==null?void 0:Gs.game_codes)==null||$A.map(hu=>{uu.file(`${hu.filename}.txt`,hu==null?void 0:hu.content)})}})}pl.update({content:Gt.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",Gt.createElement("span",{className:"c-blue"},zl),"/",ns==null?void 0:ns.students_count,Gt.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3")}),zl==(ns==null?void 0:ns.students_count)?(pl.destroy(),ha()):tc()}),2200)})}if(Hi!=="all"||(Tn==null?void 0:Tn.students_count)<2){ec(),jl();const ss=So.current.children;let ns=Ei()();const tA=Bc.folder(`${Tn==null?void 0:Tn.group_name}`).folder(`${Tn!=null&&Tn.student_id&&(Tn==null?void 0:Tn.student_id)!="--"?(Tn==null?void 0:Tn.student_id)+"+":""}${Tn==null?void 0:Tn.username}`);for(let Qs=0;Qs<ss.length;Qs++)yield ns.set(eA).from(ss[Qs]).toContainer().toCanvas().toPdf().get("pdf").then(Sl=>or(void 0,null,function*(){Qs<ss.length-1&&(yield Sl.addPage())}));if(ko(!1),tA.file(`${Tn!=null&&Tn.student_id&&(Tn==null?void 0:Tn.student_id)!="--"?(Tn==null?void 0:Tn.student_id)+"+":""}${Tn.username}.pdf`,ns.output("blob"),{base64:!1}),((Vo=Tn==null?void 0:Tn.shixun_detail)==null?void 0:Vo.length)>0&&((Hl=(Ma=Tn==null?void 0:Tn.shixun_detail)==null?void 0:Ma.filter(Qs=>{var Sl;return((Sl=Qs==null?void 0:Qs.game_codes)==null?void 0:Sl.length)>0}))==null?void 0:Hl.length)>0){const Qs=tA.folder("\u4EE3\u7801\u6587\u4EF6");(ks=Tn==null?void 0:Tn.shixun_detail)==null||ks.map((Sl,Hc)=>{var zc,ml;if(((zc=Sl==null?void 0:Sl.game_codes)==null?void 0:zc.length)>0){const _u=Qs.folder(`\u7B2C${Hc+1}\u5173-${Sl.subject}-${Sl.id}`);(ml=Sl==null?void 0:Sl.game_codes)==null||ml.map(Ws=>{_u.file(`${Ws.filename}.txt`,Ws==null?void 0:Ws.content)})}})}pl.destroy(),ha();return}else tc(Tn==null?void 0:Tn.first_student_work_id)}),ha=()=>{oi.generateAsync({type:"blob"}).then(function(Hi){console.log(Tn,"shixunWorkReport");const Vo=document.createElement("a");Vo.href=window.URL.createObjectURL(Hi),Vo.download=(Tn==null?void 0:Tn.shixun_name)+".zip",document.body.appendChild(Vo);const Ma=document.createEvent("MouseEvents");Ma.initEvent("click",!1,!1),Vo.dispatchEvent(Ma),document.body.removeChild(Vo),yr(new(ze()))}),Go(!1)};(0,x.useEffect)(()=>{wa()},[hi.homeworkId]);const wa=()=>or(void 0,null,function*(){Xo(!0),yield rr({type:"shixunHomeworks/getShixunWorkReport",payload:Pr(Pr({},hi),go.current||{})}),ma(),(0,ot.GJ)()&&wl(),Xo(!1)}),Ja=[{title:"\u5173\u5361",width:50,dataIndex:"name",render:(Hi,Vo,Ma)=>Ma+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(Hi,Vo,Ma)=>Gt.createElement("div",null,Hi,Vo.complete_status===4&&Gt.createElement(pt.vA,{status:Vo.complete_status}))},{title:"\u5F00\u542F\u65F6\u95F4",dataIndex:"open_time"},{title:"\u4EE3\u7801\u4FEE\u6539\u884C\u6570",dataIndex:"diff_code_count",render:(Hi,Vo,Ma)=>Hi||"- -"},{title:"\u5173\u5361\u8981\u6C42",dataIndex:"status",render:Hi=>{var Vo,Ma;return Gt.createElement("span",{style:{color:(Vo=su[Hi])==null?void 0:Vo.color}},(Ma=su[Hi])==null?void 0:Ma.tag)}},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count"},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time"},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"time_consuming"},{title:"\u662F\u5426\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",render:Hi=>Hi?"\u662F":"\u5426"},{title:"\u7ECF\u9A8C\u503C",dataIndex:"experience",render:(Hi,Vo)=>Gt.createElement("div",null,Gt.createElement("span",{style:{color:parseFloat(Vo.myself_experience)!==parseFloat(Hi)?"red":"green"}},Vo.myself_experience),"/",Hi)},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",render:(Hi,Vo)=>Gt.createElement("div",null,Gt.createElement("span",{style:{color:parseFloat(Vo.game_score_full)!==parseFloat(Hi)?"red":"green"}},Hi),"/",Vo.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",render:(Hi,Vo)=>$r?Gt.createElement(at,{style:{width:80},max:Vo.game_score_full,defaultValue:parseFloat(Hi),onBlur:Ma=>or(void 0,null,function*(){var Hl;if((0,ot.Rm)()&&!((Hl=Bi.AssistantObject.practice)!=null&&Hl.can_appraise)){xe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const ks=yield rr({type:"shixunHomeworks/changeScore",payload:{categoryId:hi.homeworkId,type:"report",score:Ma,challenge_id:Vo.challenge_id}});Xl({page:1,page_size:10},"all"),yield rr({type:"shixunHomeworks/getShixunWorkReport",payload:Pr(Pr({},hi),go.current||{})}),ks.status===0&&xe.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):Hi}];let Ga=[{title:"\u5173\u5361",dataIndex:"order",key:"order",render:(Hi,Vo,Ma)=>({children:Hi,props:{rowSpan:Vo.rowSpan}})},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",render:(Hi,Vo,Ma)=>({children:Hi,props:{rowSpan:Vo.rowSpan}})},{title:"\u6307\u6807\u540D\u79F0",dataIndex:"target_name",key:"target_name"},{title:"\u6307\u6807\u9884\u671F\u7ED3\u679C",dataIndex:"output",key:"output"},{title:"\u6307\u6807\u5B9E\u9645\u7ED3\u679C",dataIndex:"actual_output",key:"actual_output"},{title:"\u6307\u6807\u5F97\u5206",dataIndex:"test_score",key:"test_score",render:(Hi,Vo,Ma)=>Gt.createElement("div",null,Gt.createElement("span",{style:{color:parseFloat(Vo.actual_test_score)!==parseFloat(Hi)?"red":"green"}},Vo.actual_test_score),"/",Hi)},{title:"\u6307\u6807\u603B\u5206",render:(Hi,Vo,Ma)=>({children:Gt.createElement("div",null,Gt.createElement("span",{style:{color:parseFloat(Vo.actual_target_score)!==parseFloat(Hi)?"red":"green"}},Vo.actual_target_score),"/",Hi),props:{rowSpan:Vo.rowSpan}}),dataIndex:"total_target_score",key:"total_target_score"}];const $a=[{title:"\u5173\u5361",dataIndex:"challenge_num",width:220},{title:"\u8C03\u5206\u7528\u6237",dataIndex:["user","name"]},{title:"\u8C03\u5206\u524D",dataIndex:"old_score"},{title:"\u8C03\u5206\u540E",dataIndex:"score"},{title:"\u8C03\u5206\u65F6\u95F4",dataIndex:"created_at",render:Hi=>Gt.createElement("span",null,Hi?Ie()(Hi).format("YYYY-MM-DD HH:mm"):"--")}],Ql=Hi=>{rr({type:"shixunHomeworks/setActionTabs",payload:{key:"",type:2}}),setTimeout(()=>{Hi==="next"?Ue.history.push(`/classrooms/${hi.coursesId}/shixun_homework/${hi.categoryId}/${Tn==null?void 0:Tn.next_student_work_id}/comment`):Ue.history.push(`/classrooms/${hi.coursesId}/shixun_homework/${hi.categoryId}/${Tn==null?void 0:Tn.pre_student_work_id}/comment`)},200)},fu=Hi=>{da(""),Hi.target.value&&(console.log("\u8FDB\u6765",Tn),Hi.target.value=Hi.target.value>Tn.repeat_setting_score?Tn.repeat_setting_score:Hi.target.value,da(Hi.target.value))},kl=()=>or(void 0,null,function*(){const Hi=yield(0,Le.ZP)(`/api/student_works/${Tn==null?void 0:Tn.work_id}/update_repeat_score`,{method:"put",body:{score:oa}});yield rr({type:"shixunHomeworks/getShixunWorkReport",payload:Pr(Pr({},hi),go.current||{})}),Hi.status===0&&xe.ZP.info("\u64CD\u4F5C\u6210\u529F")});return Gt.createElement("section",{className:"bg-fafafa",style:{position:"sticky",top:0}},Gt.createElement("div",{className:"edu-container mt10",style:{paddingBottom:100}},Gt.createElement(oe.Z,{loading:yn["shixunHomeworks/getShixunWorkReport"],active:!0,avatar:{size:40},paragraph:{rows:5}},Gt.createElement("div",{className:"edu-container"},Tn.course_id&&Gt.createElement("section",{className:"animated fadeIn"},Gt.createElement("aside",{className:""},Tn.category&&Gt.createElement(Oe.Z,{separator:">"},Gt.createElement(Oe.Z.Item,null,Gt.createElement(Ue.Link,{to:`/classrooms/${Tn.course_id}/shixun_homework`},Tn.course_name)),Gt.createElement(Oe.Z.Item,null,Gt.createElement(Ue.Link,{to:`/classrooms/${Tn.course_id}/shixun_homework/${Tn.category.main?"":Tn.category.category_id}`},Tn.category.category_name)),Gt.createElement(Oe.Z.Item,null,Gt.createElement(Ue.Link,{to:`/classrooms/${Tn.course_id}/shixun_homework/${Tn.homework_common_id}/detail${(0,ot.dE)()?"?tabs=1":""}`},"\u4F5C\u4E1A\u8BE6\u60C5")),Gt.createElement(Oe.Z.Item,null,Tn.username))),Gt.createElement("aside",{className:[He.title1,"mt20"].join(" ")},Gt.createElement(ve.Z,{align:"middle"},Gt.createElement(Me.Z,{flex:1},Gt.createElement(Ue.Link,{to:`/classrooms/${Tn.course_id}/shixun_homework/${Tn.homework_common_id}/detail`},Gt.createElement(Qe.Z,{className:"font16 c-black"})),Gt.createElement("strong",{className:"font20 ml5"},Tn==null?void 0:Tn.homework_name),Gt.createElement(pt.VV,{temporary:!0,status:Tn.homework_status})),Gt.createElement(Me.Z,{className:He.title1_right},Tn.view_tpi&&Gt.createElement(Se.ZP,{onClick:()=>{var Hi,Vo;(0,pt.xg)(`/tasks/${Tn==null?void 0:Tn.course_id}/${Tn==null?void 0:Tn.homework_common_id}/${(Vo=(Hi=Tn==null?void 0:Tn.shixun_detail)==null?void 0:Hi[0])==null?void 0:Vo.game_identifier}`)}},Gt.createElement("span",{className:"iconfont icon-yijiandianping mr5"}),"\u67E5\u770B\u5B66\u5458\u5B9E\u8BAD"),(0,ot.GJ)()&&Tn.homework_end===!1&&!!Tn.myshixun_id&&Gt.createElement(Se.ZP,{className:"ml10",onClick:()=>or(void 0,null,function*(){yield rr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6253\u56DE\u91CD\u505A",selectArrs:{myshixun_identifier:Tn.myshixun_identifier},homework_common_id:wi.categoryId}})})},Gt.createElement("span",{className:"iconfont icon-dahuizhongzuo3x mr5"}),"\u6253\u56DE\u91CD\u505A"),Gt.createElement(Se.ZP,{className:"ml10",onClick:()=>{var Hi,Vo;if(!(!(Tn!=null&&Tn.is_old_data_for_time)&&(Tn==null?void 0:Tn.user_id)!==((Hi=Wn==null?void 0:Wn.userInfo)==null?void 0:Hi.user_id)&&(0,pt.Ye)(rr))){if((0,ot.Rm)()&&!((Vo=Bi.AssistantObject.practice)!=null&&Vo.can_download)){xe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ea("")}},loading:ki},Gt.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"),(0,ot.GJ)()&&(Tn==null?void 0:Tn.students_count)>1&&Gt.createElement(Se.ZP,{className:"ml10",onClick:()=>{var Hi;if(!(!(Tn!=null&&Tn.is_old_data_for_time)&&(0,pt.Ye)(rr))){if((0,ot.Rm)()&&!((Hi=Bi.AssistantObject.practice)!=null&&Hi.can_download)){xe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}he.default.confirm({title:"\u9009\u62E9\u5BFC\u51FA\u65B9\u5F0F",closable:!0,icon:null,centered:!0,okText:Gt.createElement(Te.Z,{title:"\u5BFC\u51FA\u65F6\u4E0D\u80FD\u9000\u51FA\u6216\u5173\u95ED\u5BFC\u51FA\u9875\u9762\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u5176\u4ED6\u64CD\u4F5C"},"\u524D\u7AEF\u5BFC\u51FA"),cancelText:Gt.createElement(Te.Z,{title:"\u751F\u6210\u5BFC\u51FA\u4EFB\u52A1\u540E\u53EF\u5173\u95ED\u9875\u9762\uFF0C\u540E\u53F0\u5BFC\u51FA\u6210\u529F\u540E\u5728\u5386\u53F2\u5BFC\u51FA\u9875\u9762\u81EA\u884C\u4E0B\u8F7D\uFF0C\u4E0D\u5F71\u54CD\u5176\u4ED6\u64CD\u4F5C"},"\u540E\u53F0\u5BFC\u51FA"),onOk:()=>{Ea("all")},onCancel:()=>{},cancelButtonProps:{onClick:()=>{(0,vi.jj)({categoryId:hi.categoryId,coursesId:hi.coursesId},"shixun_report")}}})}}},Gt.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5168\u90E8\u5B66\u751F\u5B9E\u8BAD\u62A5\u544A"))))),Gt.createElement("aside",{className:"mt30 relative"})),Gt.createElement("aside",{className:"edu-container bg-white",ref:ji},Gt.createElement("div",{id:"export-all",ref:So},Gt.createElement("div",{id:"export-all-1"},Gt.createElement("div",{className:He.title},Gt.createElement("h1",null,"\u603B\u4F53\u8BC4\u4EF7"),Gt.createElement("div",null,(0,ot.GJ)()&&Gt.createElement(Se.ZP,{className:"mr20",type:"primary",onClick:()=>{rr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:Tn.user_id,data:Pr({},Tn)},fn:()=>Xl({page:1,page_size:10},"all")}})}},Gt.createElement(je.Z,null),Tn.has_shixun_work_comment?"\u66F4\u6539\u70B9\u8BC4":"\u70B9\u8BC4\u4F5C\u4E1A"))),Gt.createElement(we.Z,{style:{marginTop:0}}),Gt.createElement(ve.Z,{className:"pl30 pr30"},Gt.createElement(Me.Z,null,Gt.createElement("img",{className:He.userPic,src:`${ct.Z.IMG_SERVER}/images/${Tn.image_url}`,alt:Tn.username})),Gt.createElement(Me.Z,null,Gt.createElement("span",{className:"font16 ml40"},Tn.username),Gt.createElement(pt.vA,{status:Tn.compelete_status}),Gt.createElement("ul",{className:He.userInfo},Gt.createElement("li",null,"\u5B66\u53F7\uFF1A",Tn.student_id||"--"),Gt.createElement("li",null,"\u5206\u73ED\uFF1A",Tn.group_name||"--"),Gt.createElement("br",null),Gt.createElement("li",null,"\u622A\u6B62\u524D\u5B8C\u6210\u5173\u5361\uFF1A",Gt.createElement("span",{className:"c-red"},Tn.complete_count),"/",Gt.createElement("span",{className:"c-red"},Tn.checked_challenge_count)),Gt.createElement("li",null,"\u6700\u65B0\u5B8C\u6210\u5173\u5361\uFF1A",Gt.createElement("span",{className:"c-red"},Tn.current_complete_count||"-"),"/",Gt.createElement("span",{className:"c-red"},Tn.checked_challenge_count)),Gt.createElement("li",null,"\u5B8C\u6210\u6548\u7387\uFF1A",Tn&&Tn.efficiency===null?"--":Tn&&Tn.efficiency),Gt.createElement("li",null,"\u8BFE\u5802\u6700\u9AD8\u5B8C\u6210\u6548\u7387\uFF1A",Tn&&Tn.max_efficiency===null?"--":Tn&&Tn.max_efficiency))),Gt.createElement("ul",{className:[He.listItem,"mt10"].join(" ")},Gt.createElement("li",null,Gt.createElement("strong",null,"\u901A\u5173\u65F6\u95F4"),Gt.createElement("div",{className:"c-light-black mt20"},Tn&&Tn.passed_time===null||Tn&&Tn.passed_time==="--"?"--":Ie()(Tn&&Tn.passed_time).format("YYYY-MM-DD HH:mm"))),Gt.createElement("li",null,Gt.createElement("strong",null,"\u8BA1\u65F6\u89C4\u5219",Gt.createElement("i",{onClick:Hi=>{Hi.stopPropagation(),Hi.preventDefault(),_o(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),Gt.createElement("div",{className:"c-light-black mt20"},Tn==null?void 0:Tn.human_training_time_rules)),Gt.createElement("li",null,Gt.createElement("strong",null,"\u5B9E\u8BAD\u603B\u8017\u65F6",Gt.createElement("i",{onClick:Hi=>{Hi.stopPropagation(),Hi.preventDefault(),No(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),Gt.createElement("div",{className:"c-light-black mt20"},Tn.time_consuming)),Gt.createElement("li",null,Gt.createElement("strong",null,"\u8BC4\u6D4B\u6B21\u6570"),Gt.createElement("div",{className:"mt20"},Tn.evaluate_count)),(Tn==null?void 0:Tn.eff_score_full)&&Gt.createElement(Gt.Fragment,null,Gt.createElement("li",null,Gt.createElement("strong",null,"\u5173\u5361\u5F97\u5206"),Gt.createElement("div",{className:"mt20"},Gt.createElement("span",{className:"c-orange"},Tn.challenge_score),"/",Gt.createElement("span",{className:"c-light-black"},Tn.challenge_score_full))),Gt.createElement("li",null,Gt.createElement("strong",null,"\u6548\u7387\u5206"),Gt.createElement("div",{className:"mt20"},Gt.createElement("span",{className:"c-orange"},Tn.eff_score),"/",Gt.createElement("span",{className:"c-light-black"},Tn.eff_score_full)))),(Tn==null?void 0:Tn.have_repeat)&&(Tn==null?void 0:Tn.repeat_minus_score)!==0&&Gt.createElement("li",{style:{position:"relative"}},Gt.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},Gt.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),Gt.createElement("div",{style:{position:"absolute",fontSize:"10px",color:"white",left:"57px",width:"46px",bottom:"72px"}},Tn!=null&&Tn.review_rate?Gt.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0",cursor:"pointer"},onClick:()=>{if(Tn!=null&&Tn.review_id&&Ka)localStorage.setItem("studentDetial",window.location.pathname),Ue.history.push({pathname:`/classrooms/:coursesId/shixun_homework/${hi.categoryId}/review_detail/${Tn==null?void 0:Tn.review_id}`});else return}},Tn.review_rate.toFixed(1),"%"):Gt.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0"}},"- -"))),Ka?Gt.createElement("div",{className:"mt20"},Gt.createElement(Ce.default,{style:{width:"45px",height:"22px"},value:oa,onChange:Hi=>{fu(Hi)},onBlur:kl,disabled:js})," / ",Tn==null?void 0:Tn.repeat_setting_score):Gt.createElement("div",{className:"mt20"},Tn==null?void 0:Tn.repeat_minus_score," / ",Tn==null?void 0:Tn.repeat_setting_score)),console.log("sssssssssssssssssssssss",Tn==null?void 0:Tn.have_repeat,Tn==null?void 0:Tn.repeat_minus_score),(Tn==null?void 0:Tn.have_repeat)&&(Tn==null?void 0:Tn.repeat_minus_score)===0&&Gt.createElement("li",null,Gt.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),Gt.createElement("div",{className:"mt20"}," - -")),!(Tn!=null&&Tn.have_repeat)&&Gt.createElement("li",null,Gt.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),Gt.createElement("div",{className:"mt20"}," - -")),Gt.createElement("li",null,Gt.createElement("strong",null,"\u8865\u4EA4\u6263\u5206"),Gt.createElement("div",{className:"mt20"},Gt.createElement("span",null,Tn.late_penalty||"- -"))),Tn.extra_score>0&&Gt.createElement("li",null,Gt.createElement("strong",null,"\u9644\u52A0\u5F97\u5206"),Gt.createElement("div",{className:"mt20"},Gt.createElement("span",null,Tn.extra_score||"- -"))),Gt.createElement("li",null,Gt.createElement("strong",null,"\u6700\u7EC8\u6210\u7EE9"),Gt.createElement("div",{className:"mt20"},Gt.createElement("span",{className:"c-orange"},fs),"/",Gt.createElement("span",{className:"c-light-black"},Tn.all_work_score))),Gt.createElement("li",null,Gt.createElement("strong",null,"\u603B\u8BC4"),Gt.createElement("div",{className:"mt20"},Gt.createElement("span",{className:"c-orange"},Tn.overall_appraisal))))),Gt.createElement(we.Z,{style:{margin:0}}),(Tn.work_comment_hidden||Tn.work_comment)&&Gt.createElement("div",null,Gt.createElement(ve.Z,{align:"middle"},Gt.createElement(Me.Z,{flex:1},Gt.createElement("h1",{className:He.title},"\u70B9\u8BC4\u5185\u5BB9")),Gt.createElement(Me.Z,{className:"pr30"},(0,ot.GJ)()&&Gt.createElement(Se.ZP,{onClick:()=>or(void 0,null,function*(){he.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:Gt.createElement(qe.Z,null),content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",onOk(){return or(this,null,function*(){(yield(0,di.gZ)({comment_id:Tn.comment_id,homeworkId:hi.homeworkId})).status===0&&(xe.ZP.success("\u5220\u9664\u6210\u529F"),rr({type:"shixunHomeworks/getShixunWorkReport",payload:Pr(Pr({},hi),go.current||{})}))})}})})},Gt.createElement(Ve.Z,null),"\u5220\u9664"))),Gt.createElement(we.Z,{style:{margin:0}}),Tn.work_comment&&Gt.createElement("aside",{className:"pl30 pr30 mt20"},Gt.createElement("span",{className:"c-light-black font12"},"# \u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),Gt.createElement("br",null),Gt.createElement(Ct.Z,{value:Tn.work_comment})),Tn.work_comment_hidden&&Gt.createElement("aside",{className:"pl30 pr30 mt20"},Gt.createElement("span",{className:"c-light-black font12"},"# \u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),Gt.createElement("br",null),Gt.createElement(Ct.Z,{value:Tn.work_comment_hidden}))),(Tn==null?void 0:Tn.action_analysis)&&Gt.createElement(Ur,{detailData:Tn}),Gt.createElement("div",{className:He.score},Gt.createElement("h1",{className:He.title},"\u9636\u6BB5\u6210\u7EE9"),(Tn==null?void 0:Tn.adjust_review_score_count)>0&&(0,ot.GJ)()&&Gt.createElement("div",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{Ro(!0),Xl({page:1,page_size:10},"all")}},"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55\uFF08",Tn==null?void 0:Tn.adjust_review_score_count,"\u6B21\uFF09")),Gt.createElement("aside",{className:"pl30 pr30"},Gt.createElement(Ee.default,{dataSource:Tn.stage_list,rowKey:Hi=>Hi==null?void 0:Hi.challenge_id,pagination:!1,columns:Ja})),((fi=Tn==null?void 0:Tn.target_test_sets)==null?void 0:fi.length)>0&&Gt.createElement("div",null,Gt.createElement("h1",{className:He.title},"\u6307\u6807\u6210\u7EE9"),Gt.createElement("aside",{className:"pl30 pr30"},Gt.createElement(Ee.default,{dataSource:Lo,rowKey:Hi=>Hi==null?void 0:Hi.challenge_id,pagination:!1,bordered:!0,columns:Ga}))),(Tn==null?void 0:Tn.work_description)&&Gt.createElement(Gt.Fragment,null,Gt.createElement("h1",{className:He.title},"\u4E2A\u4EBA\u603B\u7ED3"),Gt.createElement("aside",{className:"pl30 pr30"},Gt.createElement(Ct.Z,{value:Tn==null?void 0:Tn.work_description}))),Gt.createElement("h1",{className:He.title},"\u56FE\u5F62\u7EDF\u8BA1"),Gt.createElement(Re,{data:Ji}),(Tn==null?void 0:Tn.is_open_submit_test_result)&&Gt.createElement(Gt.Fragment,null),Gt.createElement("h1",{className:He.title},"\u5B9E\u8BAD\u8BE6\u60C5")),Gt.createElement(Lr,{autoHeight:bo}))),(0,ot.GJ)()&&Gt.createElement("aside",{className:`${He.footerBar} ${ki?He.footerBarStatic:""}`},Gt.createElement("aside",{className:"edu-container"},Gt.createElement(ve.Z,{align:"middle"},Gt.createElement(Me.Z,{flex:"1"},Gt.createElement(Ue.Link,{className:He.exitComment,to:`/classrooms/${hi.coursesId}/shixun_homework/${hi.categoryId}/detail`},"\u8FD4\u56DE\u5217\u8868")),Gt.createElement(Me.Z,{flex:"1",className:"tr"},Gt.createElement(Se.ZP,{type:"default",disabled:!(Tn!=null&&Tn.pre_student_work_id),onClick:()=>Ql()},"\u4E0A\u4E00\u4E2A"),Gt.createElement(Se.ZP,{type:"default",style:{marginLeft:"20px",marginRight:"20px"},disabled:!(Tn!=null&&Tn.next_student_work_id),onClick:()=>Ql("next")},"\u4E0B\u4E00\u4E2A"),(0,ot.GJ)()&&Gt.createElement(Se.ZP,{type:"primary",onClick:()=>or(void 0,null,function*(){rr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:Tn.user_id,data:Pr({},Tn)},fn:()=>Xl({page:1,page_size:10},"all")}})})},"\u70B9\u8BC4\u4F5C\u4E1A"))))))),Gt.createElement(gi,null),Gt.createElement(Ai.Z,null),Gt.createElement(he.default,{open:Jo,width:860,centered:!0,onCancel:()=>{_o(!1)},title:"\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",footer:null},Gt.createElement("div",{style:{color:"#333333",fontWeight:400}},Gt.createElement("span",{style:{fontWeight:500}},"1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"),Gt.createElement("br",null),Gt.createElement("span",null,"\u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),Gt.createElement("br",null),Gt.createElement("span",null," \u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u82E5\u5B66\u751F\u5173\u95ED/\u9000\u51FA\u7B54\u9898\u9875\u9762\uFF0C\u5219\u8BA1\u65F6\u6682\u505C\uFF0C\u518D\u6B21\u8FDB\u5165\u7B54\u9898\u9875\u9762\u65F6\u5F00\u59CB\u7D2F\u8BA1\u8BA1\u65F6\u76F4\u81F3\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),Gt.createElement("span",{style:{color:"#FA6400",display:"flex",height:34,alignItems:"center"}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "),Gt.createElement("span",null,"a\u3001\u5B66\u751F\u8FDB\u5165\u5173\u5361\u770B\u5B8C\u9898\u540E\uFF0C\u9000\u51FA\u7B54\u9898\u9875\u9762\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u590D\u5236\u8FDB\u5E73\u53F0\u7B54\u9898\u9875\u9762\u8FDB\u884C\u8BC4\u6D4B\uFF0C\u65E0\u6CD5\u8BC4\u4F30\u5B66\u751F\u7684\u5B66\u4E60\u548C\u601D\u8003\u65F6\u95F4\u3002")),Gt.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},Gt.createElement("span",{style:{fontWeight:500}},"2\u3001\u5173\u5361\u603B\u8017\u65F6"),Gt.createElement("br",null),Gt.createElement("span",{style:{}},"\u5B66\u751F\u7B2C\u4E00\u6B21\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\u3002 "),Gt.createElement("br",null),Gt.createElement("span",null," \u53E6\uFF0C\u5373\u4F7F\u5173\u5361\u95EF\u5173\u8FC7\u7A0B\u4E2D\uFF0C\u5B66\u751F\u9000\u51FA/\u5173\u95ED\u7B54\u9898\u9875\u9762\uFF0C\u4E5F\u5C06\u6301\u7EED\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u901A\u8FC7\u3002"),Gt.createElement("span",{style:{color:"#FA6400",display:"flex",height:44,paddingTop:10}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "),Gt.createElement("span",null,"a\u3001\u5B66\u751F\u4ECE\u5176\u4ED6\u540C\u5B66\u5904\u770B\u5230\u9898\u76EE\u540E\uFF0C\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\uFF0C\u5C06\u5DF2\u5B8C\u6210\u7684\u4EE3\u7801\u590D\u5236\u81F3\u5E73\u53F0\u8FDB\u884C\u8BC4\u6D4B\uFF1B"),Gt.createElement("br",null),Gt.createElement("span",null,"b\u3001\u5B66\u751F\u7B2C\u4E00\u6B21\u6253\u5F00\u5173\u5361\u540E\uFF0C\u56E0\u4E3A\u67D0\u79CD\u539F\u56E0\u79BB\u5F00\u9875\u9762\uFF0C\u65F6\u9694\u591A\u65E5\u624D\u518D\u6B21\u8FDB\u5165\u5E73\u53F0\u95EF\u5173\uFF0C\u5C31\u4F1A\u5BFC\u81F4\u5B66\u751F\u5173\u5361\u603B\u8017\u65F6\u8FC7\u957F\uFF1B")),Gt.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},Gt.createElement("span",{style:{fontWeight:500}},"3\u3001\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),Gt.createElement("br",null),Gt.createElement("span",{style:{}},"\u4ECE\u8001\u5E08\u53D1\u5E03\u7684\u5B9E\u8BAD\u4F5C\u4E1A\u5F00\u59CB\u65F6\u95F4\uFF0C\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5B9E\u8BAD\u901A\u5173\uFF08\u5305\u62EC\u8FDF\u4EA4\u901A\u5173\uFF09\uFF0C\u7ED3\u675F\u8BA1\u65F6\u3002\u5982\u679C\u5B66\u751F\u672A\u901A\u5173\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u8001\u5E08\u8BBE\u7F6E\u7684\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\uFF0C\u5982\u679C\u8001\u5E08\u5F00\u542F\u4E86\u8865\u4EA4\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u3002")),Gt.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},Gt.createElement("span",{style:{fontWeight:500}},"\u89C4\u5219\u76EE\u7684"),Gt.createElement("br",null),Gt.createElement("span",{style:{}},"\u9F13\u52B1\u5B66\u751F\u5728\u5B9E\u8BAD\u4F5C\u4E1A\u53D1\u5E03\u7684\u7B2C\u4E00\u65F6\u95F4\uFF0C\u7ACB\u5373\u767B\u5F55\u5E73\u53F0\u5B8C\u6210\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u901A\u5173\u3002"))),Gt.createElement(he.default,{open:pa,title:"\u5B9E\u8BAD\u603B\u8017\u65F6\u8BF4\u660E",centered:!0,footer:null,onCancel:()=>{No(!1)},width:600},Gt.createElement("div",{style:{fontWeight:400,color:"#333333"}},Gt.createElement("div",null,"1\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",Gt.createElement("span",{style:{color:"#145DFF"}},"\u9875\u9762\u505C\u7559\u65F6\u957F"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5FC5\u505A\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"),Gt.createElement("div",{style:{margin:"20px 0px"}},"2\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",Gt.createElement("span",{style:{color:"#145DFF"}},"\u5173\u5361\u603B\u8017\u65F6"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5FC5\u505A\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"),Gt.createElement("div",null,"3\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",Gt.createElement("span",{style:{color:"#145DFF"}},"\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u5B9E\u8BAD\u53D1\u5E03\u65F6\u95F4\u81F3\u5B9E\u8BAD\u901A\u5173\u65F6\u95F4\uFF0C\u5F53\u5B66\u751F\u672A\u901A\u5173\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u5B9E\u8BAD\u53D1\u5E03\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\u3002"))),Gt.createElement(he.default,{open:qo,title:"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55",centered:!0,footer:null,onCancel:()=>{to("all"),Ro(!1)},destroyOnClose:!0,width:900},Gt.createElement("div",{style:{fontWeight:400,color:"#333333"}},Gt.createElement("div",null,Gt.createElement("span",null,"\u5173\u5361\uFF1A"),Gt.createElement(ke.default,{style:{width:300},value:Ui,placeholder:"\u8BF7\u9009\u62E9\u5173\u5361",defaultValue:"all",onChange:Hi=>or(void 0,null,function*(){to(Hi),Xl({page:1,page_size:10},Hi)})},Gt.createElement(ke.default.Option,{value:"all"}," \u5168\u90E8 "),(_i=Tn==null?void 0:Tn.stage_list)==null?void 0:_i.map((Hi,Vo)=>Gt.createElement(ke.default.Option,{key:Vo,value:Hi==null?void 0:Hi.challenge_id},"\u7B2C",(0,pt.EM)(Vo+1),"\u5173")))),Gt.createElement("div",{className:"mt20"},Gt.createElement(Ee.default,{dataSource:jr,rowKey:Hi=>Hi==null?void 0:Hi.id,pagination:!1,columns:$a,loading:wo})),Gt.createElement("div",{className:He.footer},Gt.createElement("div",null,Gt.createElement("span",{style:{color:"#656F87"}},"\u5171",Gt.createElement("span",{className:"c-light-primary"},ni),"\u6761\u6570\u636E")),Gt.createElement(Ke.Z,{defaultCurrent:1,defaultPageSize:10,current:(Yi==null?void 0:Yi.page)||1,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,total:ni,onChange:Lu})))))};var ti=(0,Ue.connect)(({shixunHomeworks:nr,classroomList:Rn,loading:Ar,globalSetting:Bi,user:Zn})=>({shixunHomeworks:nr,classroomList:Rn,globalSetting:Bi,loading:Ar.effects,user:Zn}))(sr)},11785:function(Jn,kt,ae){"use strict";var x=ae(62957),dt=ae(6767),Ie=ae(82186),Je=ae(52985),ze=ae(99287),Le=ae(59301),Ue=(xe,oe,Oe)=>new Promise((ve,Me)=>{var Se=Ce=>{try{we(Oe.next(Ce))}catch(Ee){Me(Ee)}},Te=Ce=>{try{we(Oe.throw(Ce))}catch(Ee){Me(Ee)}},we=Ce=>Ce.done?ve(Ce.value):Promise.resolve(Ce.value).then(Se,Te);we((Oe=Oe.apply(xe,oe)).next())});const he=({shixunHomeworks:xe,classroomList:oe,dispatch:Oe})=>{const ve=(0,Je.useParams)();return Le.createElement(x.default,{centered:!0,title:"\u63D0\u793A",open:xe.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Ue(void 0,null,function*(){var Me,Se,Te,we;if((0,ze.Rm)()&&!((Me=oe.AssistantObject.practice)!=null&&Me.can_redo)){dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const Ce=yield(0,Ie.ZP)(`/api/myshixuns/${xe.actionTabs.selectArrs.myshixun_identifier}/reset_my_game.json`,{method:"GET",params:{course_id:ve.coursesId,homework_common_id:xe.actionTabs.homework_common_id}});if(Ce.shixun_identifier){dt.ZP.success("\u64CD\u4F5C\u6210\u529F"),Oe({type:"shixunHomeworks/setActionTabs",payload:{}});const Ee=(Te=(Se=Ce==null?void 0:Ce.new_works)==null?void 0:Se.find(ke=>`${ke.homework_common_id}`===ve.categoryId))==null?void 0:Te.id;if((0,ze.Rm)()&&!((we=oe.AssistantObject.practice)!=null&&we.can_view))return;Je.history.replace(`/classrooms/${ve.coursesId}/shixun_homework/${ve.categoryId}/${Ee}/comment`)}}),onCancel:()=>{Oe({type:"shixunHomeworks/setActionTabs",payload:{}})}},Le.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),Le.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))};kt.Z=(0,Je.connect)(({shixunHomeworks:xe,classroomList:oe})=>({shixunHomeworks:xe,classroomList:oe}))(he)},3995:function(Jn,kt,ae){"use strict";ae.d(kt,{AD:function(){return Re},BA:function(){return ie},D9:function(){return ut},Hp:function(){return qe},IM:function(){return zt},Iy:function(){return ct},KM:function(){return pe},KU:function(){return fn},MJ:function(){return Ve},Ne:function(){return $t},ON:function(){return mn},Uj:function(){return rn},VY:function(){return Rt},YO:function(){return En},YX:function(){return Dt},Zn:function(){return Te},_g:function(){return Ke},_k:function(){return Ze},c6:function(){return ht},cr:function(){return we},eV:function(){return _e},fi:function(){return Ce},gh:function(){return bt},hS:function(){return tt},iA:function(){return Ee},j6:function(){return Qe},je:function(){return at},jj:function(){return je},kS:function(){return Tt},lS:function(){return Bt},o6:function(){return He},pO:function(){return de},rQ:function(){return Nt},sA:function(){return pt},xm:function(){return De},xo:function(){return Ot},y8:function(){return it},yd:function(){return ke}});var x=ae(30467),dt=ae(52985),Ie=ae(92232),Je=ae(6767),ze=ae(21600),Le=Object.defineProperty,Ue=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,oe=(ee,se,le)=>se in ee?Le(ee,se,{enumerable:!0,configurable:!0,writable:!0,value:le}):ee[se]=le,Oe=(ee,se)=>{for(var le in se||(se={}))he.call(se,le)&&oe(ee,le,se[le]);if(Ue)for(var le of Ue(se))xe.call(se,le)&&oe(ee,le,se[le]);return ee},ve=(ee,se,le)=>new Promise((Be,We)=>{var st=Et=>{try{gt(le.next(Et))}catch(Lt){We(Lt)}},mt=Et=>{try{gt(le.throw(Et))}catch(Lt){We(Lt)}},gt=Et=>Et.done?Be(Et.value):Promise.resolve(Et.value).then(st,mt);gt((le=le.apply(ee,se)).next())});const Me=()=>{(0,dt.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},Se=()=>{(0,dt.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},Te=ee=>ve(void 0,null,function*(){Me(),(yield(0,x.YR)(Oe({},ee))).status===0&&(yield(0,Ie.QH)("",(0,Ie.NY)({url:ze.Z.API_SERVER+`/api/courses/${ee.coursesId}/export_couser_info.json`,query:ee}))),Se()}),we=ee=>ve(void 0,null,function*(){const se=yield(0,x.yS)(Oe({},ee));if(se.status===0)Je.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/course_member_act_score`);else{if(se.status===-2)return se;se.status===-3&&((0,dt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/course_member_act_score`))}}),Ce=ee=>ve(void 0,null,function*(){const se=yield(0,x.W0)(Oe({},ee));if(se.status===0)Je.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/course_total_score`);else{if(se.status===-4)return se;se.status===-3&&((0,dt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/course_total_score`))}}),Ee=ee=>ve(void 0,null,function*(){const se=yield(0,x.Nl)(Oe({},ee));if(se.status===0)Je.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/course_total_exercise_and_other`);else{if(se.status===-4)return se;se.status===-3&&((0,dt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/course_total_exercise_and_other`))}}),ke=ee=>ve(void 0,null,function*(){const se=yield(0,x.IU)(Oe({},ee));if(se.status===0)Je.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/export_star_user`);else{if(se.status===-4)return se;se.status===-3&&((0,dt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/export_star_user`))}}),Ke=ee=>ve(void 0,null,function*(){const se=yield(0,x.td)(Oe({},ee));if(se.status===0)Je.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/course_total_exercise_and_other`);else{if(se.status===-2)return se;if(se.status===-3)(0,dt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/course_total_exercise_and_other`);else if(se.status===-4)return se}}),Qe=ee=>ve(void 0,null,function*(){const se=yield(0,x.QX)(Oe({},ee));if(se.status===0)Je.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/course_total_homework`);else{if(se.status===-4)return se;se.status===-3&&((0,dt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/course_total_homework`))}}),je=(ee,se)=>ve(void 0,null,function*(){const le=yield(0,x.o_)(Oe({},ee));le.status===0?(Je.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"),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/${se}`)):le.status===-3&&((0,dt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/${se}`))}),qe=(ee,se)=>ve(void 0,null,function*(){const le=yield(0,x.ZL)(Oe({},ee));le.status===0?(Je.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"),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/${se}`)):le.status===-3&&((0,dt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/${se}`))}),Ve=(ee,se)=>ve(void 0,null,function*(){const le=yield(0,x.vV)(Oe({},ee));le.status===0?(Je.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"),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/${se}`)):le.status===-3&&((0,dt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/${se}`))}),ct=(ee,se)=>ve(void 0,null,function*(){const le=yield(0,x.aP)(Oe({},ee));le.status===0?(Je.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/${se}`)):le.status===-3&&((0,dt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/${se}`))}),ot=ee=>ve(void 0,null,function*(){Me(),(yield exportCourseWorkListAppendix(Oe({},ee))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${ee.categoryId}/works_list.zip`,query:ee}))),Se()}),pt=ee=>ve(void 0,null,function*(){Me(),yield(0,Ie.FH)("",ze.Z.API_SERVER+`/api/polls/${ee.categoryId}/commit_result.xlsx`),Se()}),bt=ee=>ve(void 0,null,function*(){yield(0,Ie.FH)("",(0,Ie.NY)({url:ze.Z.API_SERVER+`/api/courses/${ee.coursesId}/attendances/export_xlsx_data.xlsx`,query:ee}))}),He=ee=>ve(void 0,null,function*(){yield(0,Ie.FH)("",(0,Ie.NY)({url:ze.Z.API_SERVER+`/api/courses/${ee.coursesId}/video_study_statics.xlsx`,query:ee}))}),ht=ee=>ve(void 0,null,function*(){yield(0,Ie.FH)("",(0,Ie.NY)({url:ze.Z.API_SERVER+`/api/courses/${ee.coursesId}/export_video_study.xlsx`,query:ee}))}),_e=ee=>ve(void 0,null,function*(){yield(0,Ie.FH)("",(0,Ie.NY)({url:ze.Z.API_SERVER+`/api/courses/${ee.coursesId}/export_course_students_info.xlsx`,query:ee}))}),Re=ee=>ve(void 0,null,function*(){yield(0,Ie.FH)("",(0,Ie.NY)({url:ze.Z.API_SERVER+"/api/school_manages/students.xlsx",query:ee}))}),Nt=ee=>ve(void 0,null,function*(){yield(0,Ie.FH)("",(0,Ie.NY)({url:ze.Z.API_SERVER+"/api/item_banks/export.xlsx",query:ee}))}),it=ee=>ve(void 0,null,function*(){yield(0,Ie.FH)("",(0,Ie.NY)({url:ze.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:ee}))}),at=ee=>ve(void 0,null,function*(){const se=yield(0,x.Uy)(Oe({},ee));se.status===0?(Je.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/exercise_score,export_exercise_users`)):se.status===-3&&((0,dt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/exercise_score,export_exercise_users`))}),Bt=ee=>ve(void 0,null,function*(){const se=yield(0,x.tg)(Oe({},ee));se.status===0?(Je.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/exercise_score,export_exercise_report`)):se.status===-3&&((0,dt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),dt.history.push(`/classrooms/${ee.coursesId}/exportlist/exercise_score,export_exercise_report`))}),Ze=ee=>ve(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,Ie.FH)("",(0,Ie.NY)({url:ze.Z.API_SERVER+`/api/export_records/${ee.id}.xlsx`,query:ee}))}),De=ee=>ve(void 0,null,function*(){yield(0,Ie.FH)("",(0,Ie.NY)({url:ze.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:ee}))}),ut=ee=>ve(void 0,null,function*(){yield(0,Ie.FH)("",(0,Ie.NY)({url:ze.Z.API_SERVER+`/api/courses/${ee==null?void 0:ee.coursesId}/${ee.menuKey}_statistic.xlsx?${ee.checkedList.map(se=>`course_group_id[]=${se}`).join("&")}`,query:ee}))}),$t=ee=>ve(void 0,null,function*(){yield(0,Ie.FH)("",(0,Ie.NY)({url:ze.Z.API_SERVER+`/api/ec_years/${ee==null?void 0:ee.ec_year_id}/ec_training_objectives.xlsx`,query:ee}))}),zt=ee=>ve(void 0,null,function*(){yield(0,Ie.FH)(ee==null?void 0:ee.name,(0,Ie.NY)({url:ze.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:ee}))}),tt=ee=>ve(void 0,null,function*(){yield(0,Ie.FH)("",(0,Ie.NY)({url:ze.Z.API_SERVER+`/api/ec_years/${ee==null?void 0:ee.ec_year_id}/ec_courses.xlsx`,query:ee}))}),Ot=ee=>ve(void 0,null,function*(){yield(0,Ie.FH)("",(0,Ie.NY)({url:ze.Z.API_SERVER+`/api/ec_years/${ee==null?void 0:ee.ec_year_id}/ec_graduation_requirements.xlsx`,query:ee}))}),Rt=ee=>ve(void 0,null,function*(){yield(0,Ie.FH)("",(0,Ie.NY)({url:ze.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:ee}))}),fn=ee=>ve(void 0,null,function*(){yield(0,Ie.FH)("",(0,Ie.NY)({url:ze.Z.API_SERVER+`/api/exercises/${ee.categoryId}/rank_list.xlsx`,query:ee}))}),Tt=ee=>ve(void 0,null,function*(){yield(0,Ie.FH)("",(0,Ie.NY)({url:ze.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:ee}))}),mn=ee=>ve(void 0,null,function*(){yield(0,Ie.FH)("",(0,Ie.NY)({url:ze.Z.API_SERVER+`/api/examination_banks/${ee.id}.json`,query:ee}))}),Dt=ee=>ve(void 0,null,function*(){yield(0,Ie.FH)("",(0,Ie.NY)({url:ze.Z.API_SERVER+`/api/exercises/${ee.categoryId}.json`,query:ee}))}),En=ee=>ve(void 0,null,function*(){yield(0,Ie.FH)("",(0,Ie.NY)({url:ze.Z.API_SERVER+`/api/polls/${ee==null?void 0:ee.id}/commit_result.json`,query:ee}))}),rn=ee=>ve(void 0,null,function*(){yield(0,Ie.FH)("",(0,Ie.NY)({url:ze.Z.API_SERVER+"/api/paths/get_task_pass.json",query:ee}))}),de=(ee,se)=>ve(void 0,null,function*(){yield(0,Ie.FH)(se||"",(0,Ie.NY)({url:ze.Z.API_SERVER+`/api/exercises/${ee==null?void 0:ee.exercise_id}/consult_exercise.json`,query:ee}))}),pe=ee=>ve(void 0,null,function*(){yield(0,Ie.FH)("",(0,Ie.NY)({url:ze.Z.API_SERVER+`/api/competitions/${ee==null?void 0:ee.identifier}/competition_commit_records/member_works.xlsx`,query:ee}))}),ie=ee=>ve(void 0,null,function*(){yield(0,Ie.FH)("",(0,Ie.NY)({url:ze.Z.API_SERVER+`/api/courses/${ee==null?void 0:ee.coursesId}/group_homeworks/import_group_template.xlsx`,query:ee}))})},20562:function(Jn,kt,ae){"use strict";ae.d(kt,{U:function(){return xe}});var x=ae(59301),dt=Object.defineProperty,Ie=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Le=(oe,Oe,ve)=>Oe in oe?dt(oe,Oe,{enumerable:!0,configurable:!0,writable:!0,value:ve}):oe[Oe]=ve,Ue=(oe,Oe)=>{for(var ve in Oe||(Oe={}))Je.call(Oe,ve)&&Le(oe,ve,Oe[ve]);if(Ie)for(var ve of Ie(Oe))ze.call(Oe,ve)&&Le(oe,ve,Oe[ve]);return oe},he=(oe,Oe,ve)=>new Promise((Me,Se)=>{var Te=Ee=>{try{Ce(ve.next(Ee))}catch(ke){Se(ke)}},we=Ee=>{try{Ce(ve.throw(Ee))}catch(ke){Se(ke)}},Ce=Ee=>Ee.done?Me(Ee.value):Promise.resolve(Ee.value).then(Te,we);Ce((ve=ve.apply(oe,Oe)).next())});function xe(oe,Oe){const[ve,Me]=(0,x.useState)(Oe),[Se,Te]=(0,x.useState)(!1),[we,Ce]=(0,x.useState)();return[ve,Se,(ke,Ke=!1)=>he(this,null,function*(){const Qe=Ke?Oe:Ue(Ue({},ve),ke);Te(!0),Me(Qe);const je=yield oe(Qe);return Te(!1),Ce(je),je}),we,Ce]}},69421:function(Jn,kt,ae){"use strict";ae.d(kt,{AL:function(){return Qe},Iy:function(){return Oe},Qv:function(){return Se},ez:function(){return Ke},jb:function(){return ve}});var x=ae(32834),dt=ae.n(x),Ie=ae(11690),Je=ae.n(Ie);let ze=1;function Le(ot,pt){const bt=ot.match(/^(\s+)(?:```)/);if(bt===null)return pt;const He=bt[1];return pt.split(`
`).map(ht=>{const _e=ht.match(/^\s+/);if(_e===null)return ht;const[Re]=_e;return Re.length>=He.length?ht.slice(He.length):ht}).join(`
`)}let Ue=[],he=["<ul>"];const xe=new(dt()).Renderer,oe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Oe(){Ue.length=0,he=["<ul>"]}const ve={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Me(ot,pt,bt,He){if(pt>=ot.length||ot[pt].level<=bt)return pt;var ht=ot[pt];He.push("<li><a href='#"+ze+ht.anchor+"'>"+ht.text+"</a>"),pt++;var _e=[];return pt=Me(ot,pt,ht.level,_e),_e.length>0&&(He.push("<ul>"),_e.forEach(function(Re){He.push(Re)}),He.push("</ul>")),He.push("</li>"),pt=Me(ot,pt,bt,He),pt}function Se(){return Me(Ue,0,0,he),he.push("</ul>"),he.join("")}const Te={heading(ot){const pt=oe.exec(ot);if(ze+=1,pt)return{type:"heading",raw:pt[0],depth:pt[1].length,text:pt[2]}},fences(ot){const pt=this.rules.block.fences.exec(ot);if(pt){const bt=pt[0];let He=Le(bt,pt[3]||"");const ht=pt[2]?pt[2].trim():pt[2];if(["latex","katex","math"].indexOf(ht)>=0){const _e=Ee(),Re=He;He=_e,ke[_e]={type:"block",expression:Re}}return{type:"code",raw:bt,lang:ht,text:He}}}},we=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Ce=0;const Ee=()=>`__special_katext_id_${Ce++}__`;let ke={};function Ke(){return ke}function Qe(){Ce=0,ke={}}function je(ot){return ot=ot.replace(we,(pt,bt)=>{const He=Ee();return ke[He]={type:"inline",expression:bt},He}),ot}const qe=xe.listitem;xe.listitem=function(ot){return qe(je(ot))};const Ve=xe.paragraph;xe.paragraph=function(ot){return Ve(je(ot))};const ct=xe.tablecell;xe.tablecell=function(ot,pt){return ct(je(ot),pt)},xe.code=function(ot,pt,bt){const He=(pt||"").match(/\S*/)[0];return He?["latex","katex","math"].indexOf(He)>=0?`<p class='editormd-tex'>${ot}</p>`:`<pre class="prettyprint linenums"><code class="language-${pt}">${bt?ot:(0,Ie.escape)(ot,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(bt?ot:(0,Ie.escape)(ot,!0))+"</code></pre>"},xe.heading=function(ot,pt,bt){let He=this.options.headerPrefix+bt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ue.push({anchor:He,level:pt,text:ot}),"<h"+pt+' id="'+ze+He+'">'+ot+"</h"+pt+">"},dt().setOptions({silent:!0,gfm:!0,pedantic:!1}),dt().use({tokenizer:Te,renderer:xe}),kt.ZP=dt()},9981:function(Jn,kt){"use strict";const ae=function(){const x=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let dt=1;dt<arguments.length;dt++){const Ie=dt<0||arguments.length<=dt?void 0:arguments[dt];Ie&&Object.keys(Ie).forEach(Je=>{const ze=Ie[Je];ze!==void 0&&(x[Je]=ze)})}return x};kt.Z=ae},86013:function(Jn,kt,ae){"use strict";var x=ae(59301),dt=ae(19248);const Ie=Je=>{let ze;return typeof Je=="object"&&(Je!=null&&Je.clearIcon)?ze=Je:Je&&(ze={clearIcon:x.createElement(dt.Z,null)}),ze};kt.Z=Ie},97224:function(Jn,kt,ae){"use strict";ae.d(kt,{F:function(){return x}});function x(Ie){return Ie!=null&&Ie===Ie.window}const dt=Ie=>{var Je,ze;if(typeof window=="undefined")return 0;let Le=0;return x(Ie)?Le=Ie.pageYOffset:Ie instanceof Document?Le=Ie.documentElement.scrollTop:(Ie instanceof HTMLElement||Ie)&&(Le=Ie.scrollTop),Ie&&!x(Ie)&&typeof Le!="number"&&(Le=(ze=((Je=Ie.ownerDocument)!==null&&Je!==void 0?Je:Ie).documentElement)===null||ze===void 0?void 0:ze.scrollTop),Le};kt.Z=dt},83010:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return Je}});var x=ae(16089);function dt(ze,Le,Ue,he){const xe=Ue-Le;return ze/=he/2,ze<1?xe/2*ze*ze*ze+Le:xe/2*((ze-=2)*ze*ze+2)+Le}var Ie=ae(97224);function Je(ze){let Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Ue=()=>window,callback:he,duration:xe=450}=Le,oe=Ue(),Oe=(0,Ie.Z)(oe),ve=Date.now(),Me=()=>{const Te=Date.now()-ve,we=dt(Te>xe?xe:Te,Oe,ze,xe);(0,Ie.F)(oe)?oe.scrollTo(window.pageXOffset,we):oe instanceof Document||oe.constructor.name==="HTMLDocument"?oe.documentElement.scrollTop=we:oe.scrollTop=we,Te<xe?(0,x.Z)(Me):typeof he=="function"&&he()};(0,x.Z)(Me)}},91882:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return it}});var x=ae(59301),dt=ae(92310),Ie=ae.n(dt),Je=ae(11592),ze=ae(26112),Le=ae(22703),Ue=ae(48755),he=ae(84105),xe=ae(19563);const oe=at=>{let{children:Bt}=at;const{getPrefixCls:Ze}=x.useContext(Ue.E_),De=Ze("breadcrumb");return x.createElement("li",{className:`${De}-separator`,"aria-hidden":"true"},Bt===""?Bt:Bt||"/")};oe.__ANT_BREADCRUMB_SEPARATOR=!0;var Oe=oe,ve=function(at,Bt){var Ze={};for(var De in at)Object.prototype.hasOwnProperty.call(at,De)&&Bt.indexOf(De)<0&&(Ze[De]=at[De]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,De=Object.getOwnPropertySymbols(at);ut<De.length;ut++)Bt.indexOf(De[ut])<0&&Object.prototype.propertyIsEnumerable.call(at,De[ut])&&(Ze[De[ut]]=at[De[ut]]);return Ze};function Me(at,Bt){if(at.title===void 0||at.title===null)return null;const Ze=Object.keys(Bt).join("|");return typeof at.title=="object"?at.title:String(at.title).replace(new RegExp(`:(${Ze})`,"g"),(De,ut)=>Bt[ut]||De)}function Se(at,Bt,Ze,De){if(Ze==null)return null;const{className:ut,onClick:$t}=Bt,zt=ve(Bt,["className","onClick"]),tt=Object.assign(Object.assign({},(0,ze.Z)(zt,{data:!0,aria:!0})),{onClick:$t});return De!==void 0?x.createElement("a",Object.assign({},tt,{className:Ie()(`${at}-link`,ut),href:De}),Ze):x.createElement("span",Object.assign({},tt,{className:Ie()(`${at}-link`,ut)}),Ze)}function Te(at,Bt){return(De,ut,$t,zt,tt)=>{if(Bt)return Bt(De,ut,$t,zt);const Ot=Me(De,ut);return Se(at,De,Ot,tt)}}var we=function(at,Bt){var Ze={};for(var De in at)Object.prototype.hasOwnProperty.call(at,De)&&Bt.indexOf(De)<0&&(Ze[De]=at[De]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,De=Object.getOwnPropertySymbols(at);ut<De.length;ut++)Bt.indexOf(De[ut])<0&&Object.prototype.propertyIsEnumerable.call(at,De[ut])&&(Ze[De[ut]]=at[De[ut]]);return Ze};const Ce=at=>{const{prefixCls:Bt,separator:Ze="/",children:De,menu:ut,overlay:$t,dropdownProps:zt,href:tt}=at,Rt=(fn=>{if(ut||$t){const Tt=Object.assign({},zt);if(ut){const mn=ut||{},{items:Dt}=mn,En=we(mn,["items"]);Tt.menu=Object.assign(Object.assign({},En),{items:Dt==null?void 0:Dt.map((rn,de)=>{var{key:pe,title:ie,label:ee,path:se}=rn,le=we(rn,["key","title","label","path"]);let Be=ee!=null?ee:ie;return se&&(Be=x.createElement("a",{href:`${tt}${se}`},Be)),Object.assign(Object.assign({},le),{key:pe!=null?pe:de,label:Be})})})}else $t&&(Tt.overlay=$t);return x.createElement(xe.Z,Object.assign({placement:"bottom"},Tt),x.createElement("span",{className:`${Bt}-overlay-link`},fn,x.createElement(he.Z,null)))}return fn})(De);return Rt!=null?x.createElement(x.Fragment,null,x.createElement("li",null,Rt),Ze&&x.createElement(Oe,null,Ze)):null},Ee=at=>{const{prefixCls:Bt,children:Ze,href:De}=at,ut=we(at,["prefixCls","children","href"]),{getPrefixCls:$t}=x.useContext(Ue.E_),zt=$t("breadcrumb",Bt);return x.createElement(Ce,Object.assign({},ut,{prefixCls:zt}),Se(zt,ut,Ze,De))};Ee.__ANT_BREADCRUMB_ITEM=!0;var ke=Ee,Ke=ae(36237),Qe=ae(63356),je=ae(16931),qe=ae(51636);const Ve=at=>{const{componentCls:Bt,iconCls:Ze,calc:De}=at;return{[Bt]:Object.assign(Object.assign({},(0,Qe.Wf)(at)),{color:at.itemColor,fontSize:at.fontSize,[Ze]:{fontSize:at.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:at.linkColor,transition:`color ${at.motionDurationMid}`,padding:`0 ${(0,Ke.unit)(at.paddingXXS)}`,borderRadius:at.borderRadiusSM,height:at.fontHeight,display:"inline-block",marginInline:De(at.marginXXS).mul(-1).equal(),"&:hover":{color:at.linkHoverColor,backgroundColor:at.colorBgTextHover}},(0,Qe.Qy)(at)),"li:last-child":{color:at.lastItemColor},[`${Bt}-separator`]:{marginInline:at.separatorMargin,color:at.separatorColor},[`${Bt}-link`]:{[`
> ${Ze} + span,
> ${Ze} + a
`]:{marginInlineStart:at.marginXXS}},[`${Bt}-overlay-link`]:{borderRadius:at.borderRadiusSM,height:at.fontHeight,display:"inline-block",padding:`0 ${(0,Ke.unit)(at.paddingXXS)}`,marginInline:De(at.marginXXS).mul(-1).equal(),[`> ${Ze}`]:{marginInlineStart:at.marginXXS,fontSize:at.fontSizeIcon},"&:hover":{color:at.linkHoverColor,backgroundColor:at.colorBgTextHover,a:{color:at.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${at.componentCls}-rtl`]:{direction:"rtl"}})}},ct=at=>({itemColor:at.colorTextDescription,lastItemColor:at.colorText,iconFontSize:at.fontSize,linkColor:at.colorTextDescription,linkHoverColor:at.colorText,separatorColor:at.colorTextDescription,separatorMargin:at.marginXS});var ot=(0,je.I$)("Breadcrumb",at=>{const Bt=(0,qe.mergeToken)(at,{});return Ve(Bt)},ct),pt=function(at,Bt){var Ze={};for(var De in at)Object.prototype.hasOwnProperty.call(at,De)&&Bt.indexOf(De)<0&&(Ze[De]=at[De]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,De=Object.getOwnPropertySymbols(at);ut<De.length;ut++)Bt.indexOf(De[ut])<0&&Object.prototype.propertyIsEnumerable.call(at,De[ut])&&(Ze[De[ut]]=at[De[ut]]);return Ze};function bt(at){const{breadcrumbName:Bt,children:Ze}=at,De=pt(at,["breadcrumbName","children"]),ut=Object.assign({title:Bt},De);return Ze&&(ut.menu={items:Ze.map($t=>{var{breadcrumbName:zt}=$t,tt=pt($t,["breadcrumbName"]);return Object.assign(Object.assign({},tt),{title:zt})})}),ut}function He(at,Bt){return(0,x.useMemo)(()=>at||(Bt?Bt.map(bt):null),[at,Bt])}var ht=function(at,Bt){var Ze={};for(var De in at)Object.prototype.hasOwnProperty.call(at,De)&&Bt.indexOf(De)<0&&(Ze[De]=at[De]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,De=Object.getOwnPropertySymbols(at);ut<De.length;ut++)Bt.indexOf(De[ut])<0&&Object.prototype.propertyIsEnumerable.call(at,De[ut])&&(Ze[De[ut]]=at[De[ut]]);return Ze};const _e=(at,Bt)=>{if(Bt===void 0)return Bt;let Ze=(Bt||"").replace(/^\//,"");return Object.keys(at).forEach(De=>{Ze=Ze.replace(`:${De}`,at[De])}),Ze},Re=at=>{const{prefixCls:Bt,separator:Ze="/",style:De,className:ut,rootClassName:$t,routes:zt,items:tt,children:Ot,itemRender:Rt,params:fn={}}=at,Tt=ht(at,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:mn,direction:Dt,breadcrumb:En}=x.useContext(Ue.E_);let rn;const de=mn("breadcrumb",Bt),[pe,ie,ee]=ot(de),se=He(tt,zt),le=Te(de,Rt);if(se&&se.length>0){const st=[],mt=tt||zt;rn=se.map((gt,Et)=>{const{path:Lt,key:jt,type:Ct,menu:lt,overlay:Vt,onClick:Zt,className:gn,separator:sn,dropdownProps:en}=gt,zn=_e(fn,Lt);zn!==void 0&&st.push(zn);const Fn=jt!=null?jt:Et;if(Ct==="separator")return x.createElement(Oe,{key:Fn},sn);const Ut={},an=Et===se.length-1;lt?Ut.menu=lt:Vt&&(Ut.overlay=Vt);let{href:_n}=gt;return st.length&&zn!==void 0&&(_n=`#/${st.join("/")}`),x.createElement(Ce,Object.assign({key:Fn},Ut,(0,ze.Z)(gt,{data:!0,aria:!0}),{className:gn,dropdownProps:en,href:_n,separator:an?"":Ze,onClick:Zt,prefixCls:de}),le(gt,fn,mt,st,_n))})}else if(Ot){const st=(0,Je.Z)(Ot).length;rn=(0,Je.Z)(Ot).map((mt,gt)=>{if(!mt)return mt;const Et=gt===st-1;return(0,Le.Tm)(mt,{separator:Et?"":Ze,key:gt})})}const Be=Ie()(de,En==null?void 0:En.className,{[`${de}-rtl`]:Dt==="rtl"},ut,$t,ie,ee),We=Object.assign(Object.assign({},En==null?void 0:En.style),De);return pe(x.createElement("nav",Object.assign({className:Be,style:We},Tt),x.createElement("ol",null,rn)))};Re.Item=ke,Re.Separator=Oe;var Nt=Re,it=Nt},62673:function(Jn,kt,ae){"use strict";ae.d(kt,{default:function(){return ot}});var x=ae(59301),dt=ae(92310),Ie=ae.n(dt),Je=ae(16632),ze=ae(8654),Le=ae(12919),Ue=ae(63872),he=ae(48755),xe=ae(2171),oe=ae(83397),Oe=ae(56553),Me=x.createContext(null),Se=ae(36170),Te=ae(74632),we=function(pt,bt){var He={};for(var ht in pt)Object.prototype.hasOwnProperty.call(pt,ht)&&bt.indexOf(ht)<0&&(He[ht]=pt[ht]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,ht=Object.getOwnPropertySymbols(pt);_e<ht.length;_e++)bt.indexOf(ht[_e])<0&&Object.prototype.propertyIsEnumerable.call(pt,ht[_e])&&(He[ht[_e]]=pt[ht[_e]]);return He};const Ce=(pt,bt)=>{var He;const{prefixCls:ht,className:_e,rootClassName:Re,children:Nt,indeterminate:it=!1,style:at,onMouseEnter:Bt,onMouseLeave:Ze,skipGroup:De=!1,disabled:ut}=pt,$t=we(pt,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:zt,direction:tt,checkbox:Ot}=x.useContext(he.E_),Rt=x.useContext(Me),{isFormItemInput:fn}=x.useContext(Oe.aM),Tt=x.useContext(xe.Z),mn=(He=(Rt==null?void 0:Rt.disabled)||ut)!==null&&He!==void 0?He:Tt,Dt=x.useRef($t.value),En=x.useRef(null),rn=(0,ze.sQ)(bt,En);x.useEffect(()=>{Rt==null||Rt.registerValue($t.value)},[]),x.useEffect(()=>{if(!De)return $t.value!==Dt.current&&(Rt==null||Rt.cancelValue(Dt.current),Rt==null||Rt.registerValue($t.value),Dt.current=$t.value),()=>Rt==null?void 0:Rt.cancelValue($t.value)},[$t.value]),x.useEffect(()=>{var gt;!((gt=En.current)===null||gt===void 0)&&gt.input&&(En.current.input.indeterminate=it)},[it]);const de=zt("checkbox",ht),pe=(0,oe.Z)(de),[ie,ee,se]=(0,Se.ZP)(de,pe),le=Object.assign({},$t);Rt&&!De&&(le.onChange=function(){$t.onChange&&$t.onChange.apply($t,arguments),Rt.toggleOption&&Rt.toggleOption({label:Nt,value:$t.value})},le.name=Rt.name,le.checked=Rt.value.includes($t.value));const Be=Ie()(`${de}-wrapper`,{[`${de}-rtl`]:tt==="rtl",[`${de}-wrapper-checked`]:le.checked,[`${de}-wrapper-disabled`]:mn,[`${de}-wrapper-in-form-item`]:fn},Ot==null?void 0:Ot.className,_e,Re,se,pe,ee),We=Ie()({[`${de}-indeterminate`]:it},Ue.A,ee),[st,mt]=(0,Te.Z)(le.onClick);return ie(x.createElement(Le.Z,{component:"Checkbox",disabled:mn},x.createElement("label",{className:Be,style:Object.assign(Object.assign({},Ot==null?void 0:Ot.style),at),onMouseEnter:Bt,onMouseLeave:Ze,onClick:st},x.createElement(Je.Z,Object.assign({},le,{onClick:mt,prefixCls:de,className:We,disabled:mn,ref:rn})),Nt!==void 0&&x.createElement("span",{className:`${de}-label`},Nt))))};var ke=x.forwardRef(Ce),Ke=ae(94480),Qe=ae(2738),je=function(pt,bt){var He={};for(var ht in pt)Object.prototype.hasOwnProperty.call(pt,ht)&&bt.indexOf(ht)<0&&(He[ht]=pt[ht]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,ht=Object.getOwnPropertySymbols(pt);_e<ht.length;_e++)bt.indexOf(ht[_e])<0&&Object.prototype.propertyIsEnumerable.call(pt,ht[_e])&&(He[ht[_e]]=pt[ht[_e]]);return He},Ve=x.forwardRef((pt,bt)=>{const{defaultValue:He,children:ht,options:_e=[],prefixCls:Re,className:Nt,rootClassName:it,style:at,onChange:Bt}=pt,Ze=je(pt,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:De,direction:ut}=x.useContext(he.E_),[$t,zt]=x.useState(Ze.value||He||[]),[tt,Ot]=x.useState([]);x.useEffect(()=>{"value"in Ze&&zt(Ze.value||[])},[Ze.value]);const Rt=x.useMemo(()=>_e.map(We=>typeof We=="string"||typeof We=="number"?{label:We,value:We}:We),[_e]),fn=We=>{Ot(st=>st.filter(mt=>mt!==We))},Tt=We=>{Ot(st=>[].concat((0,Ke.Z)(st),[We]))},mn=We=>{const st=$t.indexOf(We.value),mt=(0,Ke.Z)($t);st===-1?mt.push(We.value):mt.splice(st,1),"value"in Ze||zt(mt),Bt==null||Bt(mt.filter(gt=>tt.includes(gt)).sort((gt,Et)=>{const Lt=Rt.findIndex(Ct=>Ct.value===gt),jt=Rt.findIndex(Ct=>Ct.value===Et);return Lt-jt}))},Dt=De("checkbox",Re),En=`${Dt}-group`,rn=(0,oe.Z)(Dt),[de,pe,ie]=(0,Se.ZP)(Dt,rn),ee=(0,Qe.Z)(Ze,["value","disabled"]),se=_e.length?Rt.map(We=>x.createElement(ke,{prefixCls:Dt,key:We.value.toString(),disabled:"disabled"in We?We.disabled:Ze.disabled,value:We.value,checked:$t.includes(We.value),onChange:We.onChange,className:`${En}-item`,style:We.style,title:We.title,id:We.id,required:We.required},We.label)):ht,le={toggleOption:mn,value:$t,disabled:Ze.disabled,name:Ze.name,registerValue:Tt,cancelValue:fn},Be=Ie()(En,{[`${En}-rtl`]:ut==="rtl"},Nt,it,ie,rn,pe);return de(x.createElement("div",Object.assign({className:Be,style:at},ee,{ref:bt}),x.createElement(Me.Provider,{value:le},se)))});const ct=ke;ct.Group=Ve,ct.__ANT_CHECKBOX=!0;var ot=ct},36170:function(Jn,kt,ae){"use strict";ae.d(kt,{C2:function(){return Le}});var x=ae(36237),dt=ae(63356),Ie=ae(51636),Je=ae(16931);const ze=Ue=>{const{checkboxCls:he}=Ue,xe=`${he}-wrapper`;return[{[`${he}-group`]:Object.assign(Object.assign({},(0,dt.Wf)(Ue)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ue.marginXS,[`> ${Ue.antCls}-row`]:{flex:1}}),[xe]:Object.assign(Object.assign({},(0,dt.Wf)(Ue)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${xe}`]:{marginInlineStart:0},[`&${xe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[he]:Object.assign(Object.assign({},(0,dt.Wf)(Ue)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ue.borderRadiusSM,alignSelf:"center",[`${he}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${he}-inner`]:Object.assign({},(0,dt.oN)(Ue))},[`${he}-inner`]:{boxSizing:"border-box",display:"block",width:Ue.checkboxSize,height:Ue.checkboxSize,direction:"ltr",backgroundColor:Ue.colorBgContainer,border:`${(0,x.unit)(Ue.lineWidth)} ${Ue.lineType} ${Ue.colorBorder}`,borderRadius:Ue.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ue.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:Ue.calc(Ue.checkboxSize).div(14).mul(5).equal(),height:Ue.calc(Ue.checkboxSize).div(14).mul(8).equal(),border:`${(0,x.unit)(Ue.lineWidthBold)} solid ${Ue.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ue.motionDurationFast} ${Ue.motionEaseInBack}, opacity ${Ue.motionDurationFast}`}},"& + span":{paddingInlineStart:Ue.paddingXS,paddingInlineEnd:Ue.paddingXS}})},{[`
${xe}:not(${xe}-disabled),
${he}:not(${he}-disabled)
`]:{[`&:hover ${he}-inner`]:{borderColor:Ue.colorPrimary}},[`${xe}:not(${xe}-disabled)`]:{[`&:hover ${he}-checked:not(${he}-disabled) ${he}-inner`]:{backgroundColor:Ue.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${he}-checked:not(${he}-disabled):after`]:{borderColor:Ue.colorPrimaryHover}}},{[`${he}-checked`]:{[`${he}-inner`]:{backgroundColor:Ue.colorPrimary,borderColor:Ue.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ue.motionDurationMid} ${Ue.motionEaseOutBack} ${Ue.motionDurationFast}`}}},[`
${xe}-checked:not(${xe}-disabled),
${he}-checked:not(${he}-disabled)
`]:{[`&:hover ${he}-inner`]:{backgroundColor:Ue.colorPrimaryHover,borderColor:"transparent"}}},{[he]:{"&-indeterminate":{[`${he}-inner`]:{backgroundColor:`${Ue.colorBgContainer} !important`,borderColor:`${Ue.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:Ue.calc(Ue.fontSizeLG).div(2).equal(),height:Ue.calc(Ue.fontSizeLG).div(2).equal(),backgroundColor:Ue.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${he}-inner`]:{backgroundColor:`${Ue.colorBgContainer} !important`,borderColor:`${Ue.colorPrimary} !important`}}}},{[`${xe}-disabled`]:{cursor:"not-allowed"},[`${he}-disabled`]:{[`&, ${he}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${he}-inner`]:{background:Ue.colorBgContainerDisabled,borderColor:Ue.colorBorder,"&:after":{borderColor:Ue.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ue.colorTextDisabled},[`&${he}-indeterminate ${he}-inner::after`]:{background:Ue.colorTextDisabled}}}]};function Le(Ue,he){const xe=(0,Ie.mergeToken)(he,{checkboxCls:`.${Ue}`,checkboxSize:he.controlInteractiveSize});return[ze(xe)]}kt.ZP=(0,Je.I$)("Checkbox",(Ue,he)=>{let{prefixCls:xe}=he;return[Le(xe,Ue)]})},38406:function(Jn,kt,ae){"use strict";var x=ae(59301),dt=ae(48755),Ie=ae(584);const Je=ze=>{const{componentName:Le}=ze,{getPrefixCls:Ue}=(0,x.useContext)(dt.E_),he=Ue("empty");switch(Le){case"Table":case"List":return x.createElement(Ie.Z,{image:Ie.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return x.createElement(Ie.Z,{image:Ie.Z.PRESENTED_IMAGE_SIMPLE,className:`${he}-small`});case"Table.filter":return null;default:return x.createElement(Ie.Z,null)}};kt.Z=Je},37285:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return Se}});var x=ae(59301),dt=ae(92310),Ie=ae.n(dt),Je=ae(48755),ze=ae(36237),Le=ae(63356),Ue=ae(16931),he=ae(51636);const xe=Te=>{const{componentCls:we,sizePaddingEdgeHorizontal:Ce,colorSplit:Ee,lineWidth:ke,textPaddingInline:Ke,orientationMargin:Qe,verticalMarginInline:je}=Te;return{[we]:Object.assign(Object.assign({},(0,Le.Wf)(Te)),{borderBlockStart:`${(0,ze.unit)(ke)} solid ${Ee}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:je,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,ze.unit)(ke)} solid ${Ee}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,ze.unit)(Te.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${we}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,ze.unit)(Te.dividerHorizontalWithTextGutterMargin)} 0`,color:Te.colorTextHeading,fontWeight:500,fontSize:Te.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${Ee}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,ze.unit)(ke)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${we}-with-text-start`]:{"&::before":{width:`calc(${Qe} * 100%)`},"&::after":{width:`calc(100% - ${Qe} * 100%)`}},[`&-horizontal${we}-with-text-end`]:{"&::before":{width:`calc(100% - ${Qe} * 100%)`},"&::after":{width:`calc(${Qe} * 100%)`}},[`${we}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:Ke},"&-dashed":{background:"none",borderColor:Ee,borderStyle:"dashed",borderWidth:`${(0,ze.unit)(ke)} 0 0`},[`&-horizontal${we}-with-text${we}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${we}-dashed`]:{borderInlineStartWidth:ke,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:Ee,borderStyle:"dotted",borderWidth:`${(0,ze.unit)(ke)} 0 0`},[`&-horizontal${we}-with-text${we}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${we}-dotted`]:{borderInlineStartWidth:ke,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${we}-with-text`]:{color:Te.colorText,fontWeight:"normal",fontSize:Te.fontSize},[`&-horizontal${we}-with-text-start${we}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${we}-inner-text`]:{paddingInlineStart:Ce}},[`&-horizontal${we}-with-text-end${we}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${we}-inner-text`]:{paddingInlineEnd:Ce}}})}},oe=Te=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Te.marginXS});var Oe=(0,Ue.I$)("Divider",Te=>{const we=(0,he.mergeToken)(Te,{dividerHorizontalWithTextGutterMargin:Te.margin,dividerHorizontalGutterMargin:Te.marginLG,sizePaddingEdgeHorizontal:0});return[xe(we)]},oe,{unitless:{orientationMargin:!0}}),ve=function(Te,we){var Ce={};for(var Ee in Te)Object.prototype.hasOwnProperty.call(Te,Ee)&&we.indexOf(Ee)<0&&(Ce[Ee]=Te[Ee]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Ee=Object.getOwnPropertySymbols(Te);ke<Ee.length;ke++)we.indexOf(Ee[ke])<0&&Object.prototype.propertyIsEnumerable.call(Te,Ee[ke])&&(Ce[Ee[ke]]=Te[Ee[ke]]);return Ce},Se=Te=>{const{getPrefixCls:we,direction:Ce,className:Ee,style:ke}=(0,Je.dj)("divider"),{prefixCls:Ke,type:Qe="horizontal",orientation:je="center",orientationMargin:qe,className:Ve,rootClassName:ct,children:ot,dashed:pt,variant:bt="solid",plain:He,style:ht}=Te,_e=ve(Te,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),Re=we("divider",Ke),[Nt,it,at]=Oe(Re),Bt=!!ot,Ze=x.useMemo(()=>je==="left"?Ce==="rtl"?"end":"start":je==="right"?Ce==="rtl"?"start":"end":je,[Ce,je]),De=Ze==="start"&&qe!=null,ut=Ze==="end"&&qe!=null,$t=Ie()(Re,Ee,it,at,`${Re}-${Qe}`,{[`${Re}-with-text`]:Bt,[`${Re}-with-text-${Ze}`]:Bt,[`${Re}-dashed`]:!!pt,[`${Re}-${bt}`]:bt!=="solid",[`${Re}-plain`]:!!He,[`${Re}-rtl`]:Ce==="rtl",[`${Re}-no-default-orientation-margin-start`]:De,[`${Re}-no-default-orientation-margin-end`]:ut},Ve,ct),zt=x.useMemo(()=>typeof qe=="number"?qe:/^\d+$/.test(qe)?Number(qe):qe,[qe]),tt={marginInlineStart:De?zt:void 0,marginInlineEnd:ut?zt:void 0};return Nt(x.createElement("div",Object.assign({className:$t,style:Object.assign(Object.assign({},ke),ht)},_e,{role:"separator"}),ot&&Qe!=="vertical"&&x.createElement("span",{className:`${Re}-inner-text`,style:tt},ot)))}},36207:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return st}});var x=ae(59301),dt=ae(92310),Ie=ae.n(dt),Je=ae(33885),ze=ae(42978),Le=ae(43403),Ue=ae(34280),he=x.createContext(null),xe=x.createContext({}),oe=he,Oe=ae(20068),ve=ae(54476),Me=ae(77900),Se=ae(10228),Te=ae(26112),we=ae(75931),Ce=ae(8654),Ee=["prefixCls","className","containerRef"],ke=function(gt){var Et=gt.prefixCls,Lt=gt.className,jt=gt.containerRef,Ct=(0,we.Z)(gt,Ee),lt=x.useContext(xe),Vt=lt.panel,Zt=(0,Ce.x1)(Vt,jt);return x.createElement("div",(0,ve.Z)({className:Ie()("".concat(Et,"-content"),Lt),role:"dialog",ref:Zt},(0,Te.Z)(gt,{aria:!0}),{"aria-modal":"true"},Ct))},Ke=ke,Qe=ae(48736);function je(mt){return typeof mt=="string"&&String(Number(mt))===mt?((0,Qe.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(mt)):mt}function qe(mt){warning(!("wrapperClassName"in mt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!mt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ve={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ct(mt,gt){var Et,Lt,jt,Ct=mt.prefixCls,lt=mt.open,Vt=mt.placement,Zt=mt.inline,gn=mt.push,sn=mt.forceRender,en=mt.autoFocus,zn=mt.keyboard,Fn=mt.classNames,Ut=mt.rootClassName,an=mt.rootStyle,_n=mt.zIndex,Vn=mt.className,It=mt.id,Wt=mt.style,on=mt.motion,vn=mt.width,Yn=mt.height,Lr=mt.children,ri=mt.mask,zr=mt.maskClosable,Ir=mt.maskMotion,tr=mt.maskClassName,vr=mt.maskStyle,Qn=mt.afterOpenChange,qn=mt.onClose,lr=mt.onMouseEnter,$n=mt.onMouseOver,Br=mt.onMouseLeave,Sr=mt.onClick,kr=mt.onKeyDown,gi=mt.onKeyUp,Ai=mt.styles,di=mt.drawerRender,Ti=x.useRef(),Ei=x.useRef(),no=x.useRef();x.useImperativeHandle(gt,function(){return Ti.current});var zi=function(cr){var sr=cr.keyCode,ti=cr.shiftKey;switch(sr){case Se.Z.TAB:{if(sr===Se.Z.TAB){if(!ti&&document.activeElement===no.current){var nr;(nr=Ei.current)===null||nr===void 0||nr.focus({preventScroll:!0})}else if(ti&&document.activeElement===Ei.current){var Rn;(Rn=no.current)===null||Rn===void 0||Rn.focus({preventScroll:!0})}}break}case Se.Z.ESC:{qn&&zn&&(cr.stopPropagation(),qn(cr));break}}};x.useEffect(function(){if(lt&&en){var or;(or=Ti.current)===null||or===void 0||or.focus({preventScroll:!0})}},[lt]);var fr=x.useState(!1),Ur=(0,ze.Z)(fr,2),vi=Ur[0],Gt=Ur[1],un=x.useContext(oe),wn;typeof gn=="boolean"?wn=gn?{}:{distance:0}:wn=gn||{};var Mt=(Et=(Lt=(jt=wn)===null||jt===void 0?void 0:jt.distance)!==null&&Lt!==void 0?Lt:un==null?void 0:un.pushDistance)!==null&&Et!==void 0?Et:180,dn=x.useMemo(function(){return{pushDistance:Mt,push:function(){Gt(!0)},pull:function(){Gt(!1)}}},[Mt]);x.useEffect(function(){if(lt){var or;un==null||(or=un.push)===null||or===void 0||or.call(un)}else{var cr;un==null||(cr=un.pull)===null||cr===void 0||cr.call(un)}},[lt]),x.useEffect(function(){return function(){var or;un==null||(or=un.pull)===null||or===void 0||or.call(un)}},[]);var Kt=ri&&x.createElement(Me.default,(0,ve.Z)({key:"mask"},Ir,{visible:lt}),function(or,cr){var sr=or.className,ti=or.style;return x.createElement("div",{className:Ie()("".concat(Ct,"-mask"),sr,Fn==null?void 0:Fn.mask,tr),style:(0,Je.Z)((0,Je.Z)((0,Je.Z)({},ti),vr),Ai==null?void 0:Ai.mask),onClick:zr&&lt?qn:void 0,ref:cr})}),pn=typeof on=="function"?on(Vt):on,Nn={};if(vi&&Mt)switch(Vt){case"top":Nn.transform="translateY(".concat(Mt,"px)");break;case"bottom":Nn.transform="translateY(".concat(-Mt,"px)");break;case"left":Nn.transform="translateX(".concat(Mt,"px)");break;default:Nn.transform="translateX(".concat(-Mt,"px)");break}Vt==="left"||Vt==="right"?Nn.width=je(vn):Nn.height=je(Yn);var Pr={onMouseEnter:lr,onMouseOver:$n,onMouseLeave:Br,onClick:Sr,onKeyDown:kr,onKeyUp:gi},Yr=x.createElement(Me.default,(0,ve.Z)({key:"panel"},pn,{visible:lt,forceRender:sn,onVisibleChanged:function(cr){Qn==null||Qn(cr)},removeOnLeave:!1,leavedClassName:"".concat(Ct,"-content-wrapper-hidden")}),function(or,cr){var sr=or.className,ti=or.style,nr=x.createElement(Ke,(0,ve.Z)({id:It,containerRef:cr,prefixCls:Ct,className:Ie()(Vn,Fn==null?void 0:Fn.content),style:(0,Je.Z)((0,Je.Z)({},Wt),Ai==null?void 0:Ai.content)},(0,Te.Z)(mt,{aria:!0}),Pr),Lr);return x.createElement("div",(0,ve.Z)({className:Ie()("".concat(Ct,"-content-wrapper"),Fn==null?void 0:Fn.wrapper,sr),style:(0,Je.Z)((0,Je.Z)((0,Je.Z)({},Nn),ti),Ai==null?void 0:Ai.wrapper)},(0,Te.Z)(mt,{data:!0})),di?di(nr):nr)}),ci=(0,Je.Z)({},an);return _n&&(ci.zIndex=_n),x.createElement(oe.Provider,{value:dn},x.createElement("div",{className:Ie()(Ct,"".concat(Ct,"-").concat(Vt),Ut,(0,Oe.Z)((0,Oe.Z)({},"".concat(Ct,"-open"),lt),"".concat(Ct,"-inline"),Zt)),style:ci,tabIndex:-1,ref:Ti,onKeyDown:zi},Kt,x.createElement("div",{tabIndex:0,ref:Ei,style:Ve,"aria-hidden":"true","data-sentinel":"start"}),Yr,x.createElement("div",{tabIndex:0,ref:no,style:Ve,"aria-hidden":"true","data-sentinel":"end"})))}var ot=x.forwardRef(ct),pt=ot,bt=function(gt){var Et=gt.open,Lt=Et===void 0?!1:Et,jt=gt.prefixCls,Ct=jt===void 0?"rc-drawer":jt,lt=gt.placement,Vt=lt===void 0?"right":lt,Zt=gt.autoFocus,gn=Zt===void 0?!0:Zt,sn=gt.keyboard,en=sn===void 0?!0:sn,zn=gt.width,Fn=zn===void 0?378:zn,Ut=gt.mask,an=Ut===void 0?!0:Ut,_n=gt.maskClosable,Vn=_n===void 0?!0:_n,It=gt.getContainer,Wt=gt.forceRender,on=gt.afterOpenChange,vn=gt.destroyOnClose,Yn=gt.onMouseEnter,Lr=gt.onMouseOver,ri=gt.onMouseLeave,zr=gt.onClick,Ir=gt.onKeyDown,tr=gt.onKeyUp,vr=gt.panelRef,Qn=x.useState(!1),qn=(0,ze.Z)(Qn,2),lr=qn[0],$n=qn[1],Br=x.useState(!1),Sr=(0,ze.Z)(Br,2),kr=Sr[0],gi=Sr[1];(0,Ue.Z)(function(){gi(!0)},[]);var Ai=kr?Lt:!1,di=x.useRef(),Ti=x.useRef();(0,Ue.Z)(function(){Ai&&(Ti.current=document.activeElement)},[Ai]);var Ei=function(vi){var Gt;if($n(vi),on==null||on(vi),!vi&&Ti.current&&!((Gt=di.current)!==null&&Gt!==void 0&&Gt.contains(Ti.current))){var un;(un=Ti.current)===null||un===void 0||un.focus({preventScroll:!0})}},no=x.useMemo(function(){return{panel:vr}},[vr]);if(!Wt&&!lr&&!Ai&&vn)return null;var zi={onMouseEnter:Yn,onMouseOver:Lr,onMouseLeave:ri,onClick:zr,onKeyDown:Ir,onKeyUp:tr},fr=(0,Je.Z)((0,Je.Z)({},gt),{},{open:Ai,prefixCls:Ct,placement:Vt,autoFocus:gn,keyboard:en,width:Fn,mask:an,maskClosable:Vn,inline:It===!1,afterOpenChange:Ei,ref:di},zi);return x.createElement(xe.Provider,{value:no},x.createElement(Le.Z,{open:Ai||Wt||lr,autoDestroy:!1,getContainer:It,autoLock:an&&(Ai||lr)},x.createElement(pt,fr)))},He=bt,ht=He,_e=ae(62487),Re=ae(75030),Nt=ae(86641),it=ae(55743),at=ae(48755),Bt=ae(91190),Ze=ae(78776),De=ae(458),$t=mt=>{var gt,Et;const{prefixCls:Lt,title:jt,footer:Ct,extra:lt,loading:Vt,onClose:Zt,headerStyle:gn,bodyStyle:sn,footerStyle:en,children:zn,classNames:Fn,styles:Ut}=mt,an=(0,at.dj)("drawer"),_n=x.useCallback(vn=>x.createElement("button",{type:"button",onClick:Zt,"aria-label":"Close",className:`${Lt}-close`},vn),[Zt]),[Vn,It]=(0,Ze.Z)((0,Ze.w)(mt),(0,Ze.w)(an),{closable:!0,closeIconRender:_n}),Wt=x.useMemo(()=>{var vn,Yn;return!jt&&!Vn?null:x.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(vn=an.styles)===null||vn===void 0?void 0:vn.header),gn),Ut==null?void 0:Ut.header),className:Ie()(`${Lt}-header`,{[`${Lt}-header-close-only`]:Vn&&!jt&&!lt},(Yn=an.classNames)===null||Yn===void 0?void 0:Yn.header,Fn==null?void 0:Fn.header)},x.createElement("div",{className:`${Lt}-header-title`},It,jt&&x.createElement("div",{className:`${Lt}-title`},jt)),lt&&x.createElement("div",{className:`${Lt}-extra`},lt))},[Vn,It,lt,gn,Lt,jt]),on=x.useMemo(()=>{var vn,Yn;if(!Ct)return null;const Lr=`${Lt}-footer`;return x.createElement("div",{className:Ie()(Lr,(vn=an.classNames)===null||vn===void 0?void 0:vn.footer,Fn==null?void 0:Fn.footer),style:Object.assign(Object.assign(Object.assign({},(Yn=an.styles)===null||Yn===void 0?void 0:Yn.footer),en),Ut==null?void 0:Ut.footer)},Ct)},[Ct,en,Lt]);return x.createElement(x.Fragment,null,Wt,x.createElement("div",{className:Ie()(`${Lt}-body`,Fn==null?void 0:Fn.body,(gt=an.classNames)===null||gt===void 0?void 0:gt.body),style:Object.assign(Object.assign(Object.assign({},(Et=an.styles)===null||Et===void 0?void 0:Et.body),sn),Ut==null?void 0:Ut.body)},Vt?x.createElement(De.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${Lt}-body-skeleton`}):zn),on)},zt=ae(36237),tt=ae(63356),Ot=ae(16931),Rt=ae(51636);const fn=mt=>{const gt="100%";return{left:`translateX(-${gt})`,right:`translateX(${gt})`,top:`translateY(-${gt})`,bottom:`translateY(${gt})`}[mt]},Tt=(mt,gt)=>({"&-enter, &-appear":Object.assign(Object.assign({},mt),{"&-active":gt}),"&-leave":Object.assign(Object.assign({},gt),{"&-active":mt})}),mn=(mt,gt)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${gt}`}}},Tt({opacity:mt},{opacity:1})),Dt=(mt,gt)=>[mn(.7,gt),Tt({transform:fn(mt)},{transform:"none"})];var rn=mt=>{const{componentCls:gt,motionDurationSlow:Et}=mt;return{[gt]:{[`${gt}-mask-motion`]:mn(0,Et),[`${gt}-panel-motion`]:["left","right","top","bottom"].reduce((Lt,jt)=>Object.assign(Object.assign({},Lt),{[`&-${jt}`]:Dt(jt,Et)}),{})}}};const de=mt=>{const{borderRadiusSM:gt,componentCls:Et,zIndexPopup:Lt,colorBgMask:jt,colorBgElevated:Ct,motionDurationSlow:lt,motionDurationMid:Vt,paddingXS:Zt,padding:gn,paddingLG:sn,fontSizeLG:en,lineHeightLG:zn,lineWidth:Fn,lineType:Ut,colorSplit:an,marginXS:_n,colorIcon:Vn,colorIconHover:It,colorBgTextHover:Wt,colorBgTextActive:on,colorText:vn,fontWeightStrong:Yn,footerPaddingBlock:Lr,footerPaddingInline:ri,calc:zr}=mt,Ir=`${Et}-content-wrapper`;return{[Et]:{position:"fixed",inset:0,zIndex:Lt,pointerEvents:"none",color:vn,"&-pure":{position:"relative",background:Ct,display:"flex",flexDirection:"column",[`&${Et}-left`]:{boxShadow:mt.boxShadowDrawerLeft},[`&${Et}-right`]:{boxShadow:mt.boxShadowDrawerRight},[`&${Et}-top`]:{boxShadow:mt.boxShadowDrawerUp},[`&${Et}-bottom`]:{boxShadow:mt.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Et}-mask`]:{position:"absolute",inset:0,zIndex:Lt,background:jt,pointerEvents:"auto"},[Ir]:{position:"absolute",zIndex:Lt,maxWidth:"100vw",transition:`all ${lt}`,"&-hidden":{display:"none"}},[`&-left > ${Ir}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:mt.boxShadowDrawerLeft},[`&-right > ${Ir}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:mt.boxShadowDrawerRight},[`&-top > ${Ir}`]:{top:0,insetInline:0,boxShadow:mt.boxShadowDrawerUp},[`&-bottom > ${Ir}`]:{bottom:0,insetInline:0,boxShadow:mt.boxShadowDrawerDown},[`${Et}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Ct,pointerEvents:"auto"},[`${Et}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,zt.unit)(gn)} ${(0,zt.unit)(sn)}`,fontSize:en,lineHeight:zn,borderBottom:`${(0,zt.unit)(Fn)} ${Ut} ${an}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Et}-extra`]:{flex:"none"},[`${Et}-close`]:Object.assign({display:"inline-flex",width:zr(en).add(Zt).equal(),height:zr(en).add(Zt).equal(),borderRadius:gt,justifyContent:"center",alignItems:"center",marginInlineEnd:_n,color:Vn,fontWeight:Yn,fontSize:en,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Vt}`,textRendering:"auto","&:hover":{color:It,backgroundColor:Wt,textDecoration:"none"},"&:active":{backgroundColor:on}},(0,tt.Qy)(mt)),[`${Et}-title`]:{flex:1,margin:0,fontWeight:mt.fontWeightStrong,fontSize:en,lineHeight:zn},[`${Et}-body`]:{flex:1,minWidth:0,minHeight:0,padding:sn,overflow:"auto",[`${Et}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${Et}-footer`]:{flexShrink:0,padding:`${(0,zt.unit)(Lr)} ${(0,zt.unit)(ri)}`,borderTop:`${(0,zt.unit)(Fn)} ${Ut} ${an}`},"&-rtl":{direction:"rtl"}}}},pe=mt=>({zIndexPopup:mt.zIndexPopupBase,footerPaddingBlock:mt.paddingXS,footerPaddingInline:mt.padding});var ie=(0,Ot.I$)("Drawer",mt=>{const gt=(0,Rt.mergeToken)(mt,{});return[de(gt),rn(gt)]},pe),ee=function(mt,gt){var Et={};for(var Lt in mt)Object.prototype.hasOwnProperty.call(mt,Lt)&&gt.indexOf(Lt)<0&&(Et[Lt]=mt[Lt]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var jt=0,Lt=Object.getOwnPropertySymbols(mt);jt<Lt.length;jt++)gt.indexOf(Lt[jt])<0&&Object.prototype.propertyIsEnumerable.call(mt,Lt[jt])&&(Et[Lt[jt]]=mt[Lt[jt]]);return Et};const se=null,le={distance:180},Be=mt=>{var gt;const{rootClassName:Et,width:Lt,height:jt,size:Ct="default",mask:lt=!0,push:Vt=le,open:Zt,afterOpenChange:gn,onClose:sn,prefixCls:en,getContainer:zn,style:Fn,className:Ut,visible:an,afterVisibleChange:_n,maskStyle:Vn,drawerStyle:It,contentWrapperStyle:Wt}=mt,on=ee(mt,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:vn,getPrefixCls:Yn,direction:Lr,className:ri,style:zr,classNames:Ir,styles:tr}=(0,at.dj)("drawer"),vr=Yn("drawer",en),[Qn,qn,lr]=ie(vr),$n=zn===void 0&&vn?()=>vn(document.body):zn,Br=Ie()({"no-mask":!lt,[`${vr}-rtl`]:Lr==="rtl"},Et,qn,lr),Sr=x.useMemo(()=>Lt!=null?Lt:Ct==="large"?736:378,[Lt,Ct]),kr=x.useMemo(()=>jt!=null?jt:Ct==="large"?736:378,[jt,Ct]),gi={motionName:(0,Nt.m)(vr,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Ai=fr=>({motionName:(0,Nt.m)(vr,`panel-motion-${fr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),di=(0,Bt.H)(),[Ti,Ei]=(0,Re.Cn)("Drawer",on.zIndex),{classNames:no={},styles:zi={}}=on;return Qn(x.createElement(_e.Z,{form:!0,space:!0},x.createElement(it.Z.Provider,{value:Ei},x.createElement(ht,Object.assign({prefixCls:vr,onClose:sn,maskMotion:gi,motion:Ai},on,{classNames:{mask:Ie()(no.mask,Ir.mask),content:Ie()(no.content,Ir.content),wrapper:Ie()(no.wrapper,Ir.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},zi.mask),Vn),tr.mask),content:Object.assign(Object.assign(Object.assign({},zi.content),It),tr.content),wrapper:Object.assign(Object.assign(Object.assign({},zi.wrapper),Wt),tr.wrapper)},open:Zt!=null?Zt:an,mask:lt,push:Vt,width:Sr,height:kr,style:Object.assign(Object.assign({},zr),Fn),className:Ie()(ri,Ut),rootClassName:Br,getContainer:$n,afterOpenChange:gn!=null?gn:_n,panelRef:di,zIndex:Ti}),x.createElement($t,Object.assign({prefixCls:vr},on,{onClose:sn}))))))},We=mt=>{const{prefixCls:gt,style:Et,className:Lt,placement:jt="right"}=mt,Ct=ee(mt,["prefixCls","style","className","placement"]),{getPrefixCls:lt}=x.useContext(at.E_),Vt=lt("drawer",gt),[Zt,gn,sn]=ie(Vt),en=Ie()(Vt,`${Vt}-pure`,`${Vt}-${jt}`,gn,sn,Lt);return Zt(x.createElement("div",{className:en,style:Et},x.createElement($t,Object.assign({prefixCls:Vt},Ct))))};Be._InternalPanelDoNotUseOrYouWillBeFired=We;var st=Be},19563:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return zt}});var x=ae(59301),dt=ae(33853),Ie=ae(38819),Je=ae(92310),ze=ae.n(Je),Le=ae(96478),Ue=ae(6089),he=ae(18929),xe=ae(2738),oe=ae(75030),ve=tt=>typeof tt!="object"&&typeof tt!="function"||tt===null,Me=ae(52838),Se=ae(45915),Te=ae(22703),we=ae(32383),Ce=ae(55743),Ee=ae(48755),ke=ae(83397),Ke=ae(93041),Qe=ae(78857),je=ae(57700),qe=ae(36237),Ve=ae(63356),ct=ae(46e3),ot=ae(93873),pt=ae(34925),bt=ae(37645),He=ae(36305),ht=ae(16931),_e=ae(51636),Nt=tt=>{const{componentCls:Ot,menuCls:Rt,colorError:fn,colorTextLightSolid:Tt}=tt,mn=`${Rt}-item`;return{[`${Ot}, ${Ot}-menu-submenu`]:{[`${Rt} ${mn}`]:{[`&${mn}-danger:not(${mn}-disabled)`]:{color:fn,"&:hover":{color:Tt,backgroundColor:fn}}}}}};const it=tt=>{const{componentCls:Ot,menuCls:Rt,zIndexPopup:fn,dropdownArrowDistance:Tt,sizePopupArrow:mn,antCls:Dt,iconCls:En,motionDurationMid:rn,paddingBlock:de,fontSize:pe,dropdownEdgeChildPadding:ie,colorTextDisabled:ee,fontSizeIcon:se,controlPaddingHorizontal:le,colorBgElevated:Be}=tt;return[{[Ot]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:fn,display:"block","&::before":{position:"absolute",insetBlock:tt.calc(mn).div(2).sub(Tt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${Dt}-btn`]:{[`& > ${En}-down, & > ${Dt}-btn-icon > ${En}-down`]:{fontSize:se}},[`${Ot}-wrap`]:{position:"relative",[`${Dt}-btn > ${En}-down`]:{fontSize:se},[`${En}-down::before`]:{transition:`transform ${rn}`}},[`${Ot}-wrap-open`]:{[`${En}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Dt}-slide-down-enter${Dt}-slide-down-enter-active${Ot}-placement-bottomLeft,
&${Dt}-slide-down-appear${Dt}-slide-down-appear-active${Ot}-placement-bottomLeft,
&${Dt}-slide-down-enter${Dt}-slide-down-enter-active${Ot}-placement-bottom,
&${Dt}-slide-down-appear${Dt}-slide-down-appear-active${Ot}-placement-bottom,
&${Dt}-slide-down-enter${Dt}-slide-down-enter-active${Ot}-placement-bottomRight,
&${Dt}-slide-down-appear${Dt}-slide-down-appear-active${Ot}-placement-bottomRight`]:{animationName:ct.fJ},[`&${Dt}-slide-up-enter${Dt}-slide-up-enter-active${Ot}-placement-topLeft,
&${Dt}-slide-up-appear${Dt}-slide-up-appear-active${Ot}-placement-topLeft,
&${Dt}-slide-up-enter${Dt}-slide-up-enter-active${Ot}-placement-top,
&${Dt}-slide-up-appear${Dt}-slide-up-appear-active${Ot}-placement-top,
&${Dt}-slide-up-enter${Dt}-slide-up-enter-active${Ot}-placement-topRight,
&${Dt}-slide-up-appear${Dt}-slide-up-appear-active${Ot}-placement-topRight`]:{animationName:ct.Qt},[`&${Dt}-slide-down-leave${Dt}-slide-down-leave-active${Ot}-placement-bottomLeft,
&${Dt}-slide-down-leave${Dt}-slide-down-leave-active${Ot}-placement-bottom,
&${Dt}-slide-down-leave${Dt}-slide-down-leave-active${Ot}-placement-bottomRight`]:{animationName:ct.Uw},[`&${Dt}-slide-up-leave${Dt}-slide-up-leave-active${Ot}-placement-topLeft,
&${Dt}-slide-up-leave${Dt}-slide-up-leave-active${Ot}-placement-top,
&${Dt}-slide-up-leave${Dt}-slide-up-leave-active${Ot}-placement-topRight`]:{animationName:ct.ly}}},(0,bt.ZP)(tt,Be,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Ot} ${Rt}`]:{position:"relative",margin:0},[`${Rt}-submenu-popup`]:{position:"absolute",zIndex:fn,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ot}, ${Ot}-menu-submenu`]:Object.assign(Object.assign({},(0,Ve.Wf)(tt)),{[Rt]:Object.assign(Object.assign({padding:ie,listStyleType:"none",backgroundColor:Be,backgroundClip:"padding-box",borderRadius:tt.borderRadiusLG,outline:"none",boxShadow:tt.boxShadowSecondary},(0,Ve.Qy)(tt)),{"&:empty":{padding:0,boxShadow:"none"},[`${Rt}-item-group-title`]:{padding:`${(0,qe.unit)(de)} ${(0,qe.unit)(le)}`,color:tt.colorTextDescription,transition:`all ${rn}`},[`${Rt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Rt}-item-icon`]:{minWidth:pe,marginInlineEnd:tt.marginXS,fontSize:tt.fontSizeSM},[`${Rt}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${rn}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${Rt}-item-extra`]:{paddingInlineStart:tt.padding,marginInlineStart:"auto",fontSize:tt.fontSizeSM,color:tt.colorTextDescription}},[`${Rt}-item, ${Rt}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,qe.unit)(de)} ${(0,qe.unit)(le)}`,color:tt.colorText,fontWeight:"normal",fontSize:pe,lineHeight:tt.lineHeight,cursor:"pointer",transition:`all ${rn}`,borderRadius:tt.borderRadiusSM,"&:hover, &-active":{backgroundColor:tt.controlItemBgHover}},(0,Ve.Qy)(tt)),{"&-selected":{color:tt.colorPrimary,backgroundColor:tt.controlItemBgActive,"&:hover, &-active":{backgroundColor:tt.controlItemBgActiveHover}},"&-disabled":{color:ee,cursor:"not-allowed","&:hover":{color:ee,backgroundColor:Be,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,qe.unit)(tt.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:tt.colorSplit},[`${Ot}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:tt.paddingXS,[`${Ot}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:tt.colorTextDescription,fontSize:se,fontStyle:"normal"}}}),[`${Rt}-item-group-list`]:{margin:`0 ${(0,qe.unit)(tt.marginXS)}`,padding:0,listStyle:"none"},[`${Rt}-submenu-title`]:{paddingInlineEnd:tt.calc(le).add(tt.fontSizeSM).equal()},[`${Rt}-submenu-vertical`]:{position:"relative"},[`${Rt}-submenu${Rt}-submenu-disabled ${Ot}-menu-submenu-title`]:{[`&, ${Ot}-menu-submenu-arrow-icon`]:{color:ee,backgroundColor:Be,cursor:"not-allowed"}},[`${Rt}-submenu-selected ${Ot}-menu-submenu-title`]:{color:tt.colorPrimary}})})},[(0,ct.oN)(tt,"slide-up"),(0,ct.oN)(tt,"slide-down"),(0,ot.Fm)(tt,"move-up"),(0,ot.Fm)(tt,"move-down"),(0,pt._y)(tt,"zoom-big")]]},at=tt=>Object.assign(Object.assign({zIndexPopup:tt.zIndexPopupBase+50,paddingBlock:(tt.controlHeight-tt.fontSize*tt.lineHeight)/2},(0,bt.wZ)({contentRadius:tt.borderRadiusLG,limitVerticalRadius:!0})),(0,He.w)(tt));var Bt=(0,ht.I$)("Dropdown",tt=>{const{marginXXS:Ot,sizePopupArrow:Rt,paddingXXS:fn,componentCls:Tt}=tt,mn=(0,_e.mergeToken)(tt,{menuCls:`${Tt}-menu`,dropdownArrowDistance:tt.calc(Rt).div(2).add(Ot).equal(),dropdownEdgeChildPadding:fn});return[it(mn),Nt(mn)]},at,{resetStyle:!1});const Ze=null,De=tt=>{var Ot;const{menu:Rt,arrow:fn,prefixCls:Tt,children:mn,trigger:Dt,disabled:En,dropdownRender:rn,getPopupContainer:de,overlayClassName:pe,rootClassName:ie,overlayStyle:ee,open:se,onOpenChange:le,visible:Be,onVisibleChange:We,mouseEnterDelay:st=.15,mouseLeaveDelay:mt=.1,autoAdjustOverflow:gt=!0,placement:Et="",overlay:Lt,transitionName:jt}=tt,{getPopupContainer:Ct,getPrefixCls:lt,direction:Vt,dropdown:Zt}=x.useContext(Ee.E_),gn=(0,we.ln)("Dropdown"),sn=x.useMemo(()=>{const $n=lt();return jt!==void 0?jt:Et.includes("top")?`${$n}-slide-down`:`${$n}-slide-up`},[lt,Et,jt]),en=x.useMemo(()=>Et?Et.includes("Center")?Et.slice(0,Et.indexOf("Center")):Et:Vt==="rtl"?"bottomRight":"bottomLeft",[Et,Vt]),zn=lt("dropdown",Tt),Fn=(0,ke.Z)(zn),[Ut,an,_n]=Bt(zn,Fn),[,Vn]=(0,je.ZP)(),It=x.Children.only(ve(mn)?x.createElement("span",null,mn):mn),Wt=(0,Te.Tm)(It,{className:ze()(`${zn}-trigger`,{[`${zn}-rtl`]:Vt==="rtl"},It.props.className),disabled:(Ot=It.props.disabled)!==null&&Ot!==void 0?Ot:En}),on=En?[]:Dt,vn=!!(on!=null&&on.includes("contextMenu")),[Yn,Lr]=(0,he.Z)(!1,{value:se!=null?se:Be}),ri=(0,Ue.Z)($n=>{le==null||le($n,{source:"trigger"}),We==null||We($n),Lr($n)}),zr=ze()(pe,ie,an,_n,Fn,Zt==null?void 0:Zt.className,{[`${zn}-rtl`]:Vt==="rtl"}),Ir=(0,Me.Z)({arrowPointAtCenter:typeof fn=="object"&&fn.pointAtCenter,autoAdjustOverflow:gt,offset:Vn.marginXXS,arrowWidth:fn?Vn.sizePopupArrow:0,borderRadius:Vn.borderRadius}),tr=x.useCallback(()=>{Rt!=null&&Rt.selectable&&(Rt!=null&&Rt.multiple)||(le==null||le(!1,{source:"menu"}),Lr(!1))},[Rt==null?void 0:Rt.selectable,Rt==null?void 0:Rt.multiple]),vr=()=>{let $n;return Rt!=null&&Rt.items?$n=x.createElement(Ke.default,Object.assign({},Rt)):typeof Lt=="function"?$n=Lt():$n=Lt,rn&&($n=rn($n)),$n=x.Children.only(typeof $n=="string"?x.createElement("span",null,$n):$n),x.createElement(Qe.J,{prefixCls:`${zn}-menu`,rootClassName:ze()(_n,Fn),expandIcon:x.createElement("span",{className:`${zn}-menu-submenu-arrow`},Vt==="rtl"?x.createElement(dt.Z,{className:`${zn}-menu-submenu-arrow-icon`}):x.createElement(Ie.Z,{className:`${zn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:tr,validator:Br=>{let{mode:Sr}=Br}},$n)},[Qn,qn]=(0,oe.Cn)("Dropdown",ee==null?void 0:ee.zIndex);let lr=x.createElement(Le.Z,Object.assign({alignPoint:vn},(0,xe.Z)(tt,["rootClassName"]),{mouseEnterDelay:st,mouseLeaveDelay:mt,visible:Yn,builtinPlacements:Ir,arrow:!!fn,overlayClassName:zr,prefixCls:zn,getPopupContainer:de||Ct,transitionName:sn,trigger:on,overlay:vr,placement:en,onVisibleChange:ri,overlayStyle:Object.assign(Object.assign(Object.assign({},Zt==null?void 0:Zt.style),ee),{zIndex:Qn})}),Wt);return Qn&&(lr=x.createElement(Ce.Z.Provider,{value:qn},lr)),Ut(lr)},ut=(0,Se.Z)(De,"align",void 0,"dropdown",tt=>tt),$t=tt=>x.createElement(ut,Object.assign({},tt),x.createElement("span",null));De._InternalPanelDoNotUseOrYouWillBeFired=$t;var zt=De},75727:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return Se}});var x=ae(19563),dt=ae(59301),Ie=ae(18785),Je=ae(92310),ze=ae.n(Je),Le=ae(7939),Ue=ae(48755),he=ae(44104),xe=ae(70045),oe=function(Te,we){var Ce={};for(var Ee in Te)Object.prototype.hasOwnProperty.call(Te,Ee)&&we.indexOf(Ee)<0&&(Ce[Ee]=Te[Ee]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Ee=Object.getOwnPropertySymbols(Te);ke<Ee.length;ke++)we.indexOf(Ee[ke])<0&&Object.prototype.propertyIsEnumerable.call(Te,Ee[ke])&&(Ce[Ee[ke]]=Te[Ee[ke]]);return Ce};const Oe=Te=>{const{getPopupContainer:we,getPrefixCls:Ce,direction:Ee}=dt.useContext(Ue.E_),{prefixCls:ke,type:Ke="default",danger:Qe,disabled:je,loading:qe,onClick:Ve,htmlType:ct,children:ot,className:pt,menu:bt,arrow:He,autoFocus:ht,overlay:_e,trigger:Re,align:Nt,open:it,onOpenChange:at,placement:Bt,getPopupContainer:Ze,href:De,icon:ut=dt.createElement(Ie.Z,null),title:$t,buttonsRender:zt=st=>st,mouseEnterDelay:tt,mouseLeaveDelay:Ot,overlayClassName:Rt,overlayStyle:fn,destroyPopupOnHide:Tt,dropdownRender:mn}=Te,Dt=oe(Te,["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"]),En=Ce("dropdown",ke),rn=`${En}-button`,de={menu:bt,arrow:He,autoFocus:ht,align:Nt,disabled:je,trigger:je?[]:Re,onOpenChange:at,getPopupContainer:Ze||we,mouseEnterDelay:tt,mouseLeaveDelay:Ot,overlayClassName:Rt,overlayStyle:fn,destroyPopupOnHide:Tt,dropdownRender:mn},{compactSize:pe,compactItemClassnames:ie}=(0,xe.ri)(En,Ee),ee=ze()(rn,ie,pt);"overlay"in Te&&(de.overlay=_e),"open"in Te&&(de.open=it),"placement"in Te?de.placement=Bt:de.placement=Ee==="rtl"?"bottomLeft":"bottomRight";const se=dt.createElement(Le.ZP,{type:Ke,danger:Qe,disabled:je,loading:qe,onClick:Ve,htmlType:ct,href:De,title:$t},ot),le=dt.createElement(Le.ZP,{type:Ke,danger:Qe,icon:ut}),[Be,We]=zt([se,le]);return dt.createElement(he.Z.Compact,Object.assign({className:ee,size:pe,block:!0},Dt),Be,dt.createElement(x.Z,Object.assign({},de),We))};Oe.__ANT_BUTTON=!0;var ve=Oe;const Me=x.Z;Me.Button=ve;var Se=Me},584:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return Ke}});var x=ae(59301),dt=ae(92310),Ie=ae.n(dt),Je=ae(9017),ze=ae(17835),Le=ae(57700),he=()=>{const[,Qe]=(0,Le.ZP)(),[je]=(0,Je.Z)("Empty"),Ve=new ze.FastColor(Qe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return x.createElement("svg",{style:Ve,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},x.createElement("title",null,(je==null?void 0:je.description)||"Empty"),x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(24 31.67)"},x.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),x.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"}),x.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)"}),x.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"}),x.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"})),x.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"}),x.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},x.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),x.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},oe=()=>{const[,Qe]=(0,Le.ZP)(),[je]=(0,Je.Z)("Empty"),{colorFill:qe,colorFillTertiary:Ve,colorFillQuaternary:ct,colorBgContainer:ot}=Qe,{borderColor:pt,shadowColor:bt,contentColor:He}=(0,x.useMemo)(()=>({borderColor:new ze.FastColor(qe).onBackground(ot).toHexString(),shadowColor:new ze.FastColor(Ve).onBackground(ot).toHexString(),contentColor:new ze.FastColor(ct).onBackground(ot).toHexString()}),[qe,Ve,ct,ot]);return x.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},x.createElement("title",null,(je==null?void 0:je.description)||"Empty"),x.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},x.createElement("ellipse",{fill:bt,cx:"32",cy:"33",rx:"32",ry:"7"}),x.createElement("g",{fillRule:"nonzero",stroke:pt},x.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"}),x.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:He}))))},Oe=ae(16931),ve=ae(51636);const Me=Qe=>{const{componentCls:je,margin:qe,marginXS:Ve,marginXL:ct,fontSize:ot,lineHeight:pt}=Qe;return{[je]:{marginInline:Ve,fontSize:ot,lineHeight:pt,textAlign:"center",[`${je}-image`]:{height:Qe.emptyImgHeight,marginBottom:Ve,opacity:Qe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${je}-description`]:{color:Qe.colorTextDescription},[`${je}-footer`]:{marginTop:qe},"&-normal":{marginBlock:ct,color:Qe.colorTextDescription,[`${je}-description`]:{color:Qe.colorTextDescription},[`${je}-image`]:{height:Qe.emptyImgHeightMD}},"&-small":{marginBlock:Ve,color:Qe.colorTextDescription,[`${je}-image`]:{height:Qe.emptyImgHeightSM}}}}};var Se=(0,Oe.I$)("Empty",Qe=>{const{componentCls:je,controlHeightLG:qe,calc:Ve}=Qe,ct=(0,ve.mergeToken)(Qe,{emptyImgCls:`${je}-img`,emptyImgHeight:Ve(qe).mul(2.5).equal(),emptyImgHeightMD:qe,emptyImgHeightSM:Ve(qe).mul(.875).equal()});return[Me(ct)]}),Te=ae(48755),we=function(Qe,je){var qe={};for(var Ve in Qe)Object.prototype.hasOwnProperty.call(Qe,Ve)&&je.indexOf(Ve)<0&&(qe[Ve]=Qe[Ve]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Ve=Object.getOwnPropertySymbols(Qe);ct<Ve.length;ct++)je.indexOf(Ve[ct])<0&&Object.prototype.propertyIsEnumerable.call(Qe,Ve[ct])&&(qe[Ve[ct]]=Qe[Ve[ct]]);return qe};const Ce=x.createElement(he,null),Ee=x.createElement(oe,null),ke=Qe=>{const{className:je,rootClassName:qe,prefixCls:Ve,image:ct=Ce,description:ot,children:pt,imageStyle:bt,style:He,classNames:ht,styles:_e}=Qe,Re=we(Qe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Nt,direction:it,className:at,style:Bt,classNames:Ze,styles:De}=(0,Te.dj)("empty"),ut=Nt("empty",Ve),[$t,zt,tt]=Se(ut),[Ot]=(0,Je.Z)("Empty"),Rt=typeof ot!="undefined"?ot:Ot==null?void 0:Ot.description,fn=typeof Rt=="string"?Rt:"empty";let Tt=null;return typeof ct=="string"?Tt=x.createElement("img",{alt:fn,src:ct}):Tt=ct,$t(x.createElement("div",Object.assign({className:Ie()(zt,tt,ut,at,{[`${ut}-normal`]:ct===Ee,[`${ut}-rtl`]:it==="rtl"},je,qe,Ze.root,ht==null?void 0:ht.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},De.root),Bt),_e==null?void 0:_e.root),He)},Re),x.createElement("div",{className:Ie()(`${ut}-image`,Ze.image,ht==null?void 0:ht.image),style:Object.assign(Object.assign(Object.assign({},bt),De.image),_e==null?void 0:_e.image)},Tt),Rt&&x.createElement("div",{className:Ie()(`${ut}-description`,Ze.description,ht==null?void 0:ht.description),style:Object.assign(Object.assign({},De.description),_e==null?void 0:_e.description)},Rt),pt&&x.createElement("div",{className:Ie()(`${ut}-footer`,Ze.footer,ht==null?void 0:ht.footer),style:Object.assign(Object.assign({},De.footer),_e==null?void 0:_e.footer)},pt)))};ke.PRESENTED_IMAGE_DEFAULT=Ce,ke.PRESENTED_IMAGE_SIMPLE=Ee;var Ke=ke},28284:function(Jn,kt,ae){"use strict";ae.d(kt,{default:function(){return wn}});var x=ae(56553),dt=ae(94480),Ie=ae(59301),Je=ae(92310),ze=ae.n(Je),Le=ae(77900),Ue=ae(86641),he=ae(83397);function xe(Mt){const[dn,Kt]=Ie.useState(Mt);return Ie.useEffect(()=>{const pn=setTimeout(()=>{Kt(Mt)},Mt.length?0:10);return()=>{clearTimeout(pn)}},[Mt]),dn}var oe=ae(36237),Oe=ae(63356),ve=ae(34925),Me=ae(34961),Se=ae(51636),Te=ae(16931),Ce=Mt=>{const{componentCls:dn}=Mt,Kt=`${dn}-show-help`,pn=`${dn}-show-help-item`;return{[Kt]:{transition:`opacity ${Mt.motionDurationFast} ${Mt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[pn]:{overflow:"hidden",transition:`height ${Mt.motionDurationFast} ${Mt.motionEaseInOut},
opacity ${Mt.motionDurationFast} ${Mt.motionEaseInOut},
transform ${Mt.motionDurationFast} ${Mt.motionEaseInOut} !important`,[`&${pn}-appear, &${pn}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${pn}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Ee=Mt=>({legend:{display:"block",width:"100%",marginBottom:Mt.marginLG,padding:0,color:Mt.colorTextDescription,fontSize:Mt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,oe.unit)(Mt.lineWidth)} ${Mt.lineType} ${Mt.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,oe.unit)(Mt.controlOutlineWidth)} ${Mt.controlOutline}`},output:{display:"block",paddingTop:15,color:Mt.colorText,fontSize:Mt.fontSize,lineHeight:Mt.lineHeight}}),ke=(Mt,dn)=>{const{formItemCls:Kt}=Mt;return{[Kt]:{[`${Kt}-label > label`]:{height:dn},[`${Kt}-control-input`]:{minHeight:dn}}}},Ke=Mt=>{const{componentCls:dn}=Mt;return{[Mt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Oe.Wf)(Mt)),Ee(Mt)),{[`${dn}-text`]:{display:"inline-block",paddingInlineEnd:Mt.paddingSM},"&-small":Object.assign({},ke(Mt,Mt.controlHeightSM)),"&-large":Object.assign({},ke(Mt,Mt.controlHeightLG))})}},Qe=Mt=>{const{formItemCls:dn,iconCls:Kt,rootPrefixCls:pn,antCls:Nn,labelRequiredMarkColor:Pr,labelColor:Yr,labelFontSize:ci,labelHeight:or,labelColonMarginInlineStart:cr,labelColonMarginInlineEnd:sr,itemMarginBottom:ti}=Mt;return{[dn]:Object.assign(Object.assign({},(0,Oe.Wf)(Mt)),{marginBottom:ti,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${Nn}-row`]:{display:"none"},"&-has-warning":{[`${dn}-split`]:{color:Mt.colorError}},"&-has-error":{[`${dn}-split`]:{color:Mt.colorWarning}},[`${dn}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Mt.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:or,color:Yr,fontSize:ci,[`> ${Kt}`]:{fontSize:Mt.fontSize,verticalAlign:"top"},[`&${dn}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Mt.marginXXS,color:Pr,fontSize:Mt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${dn}-required-mark-hidden, &${dn}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${dn}-optional`]:{display:"inline-block",marginInlineStart:Mt.marginXXS,color:Mt.colorTextDescription,[`&${dn}-required-mark-hidden`]:{display:"none"}},[`${dn}-tooltip`]:{color:Mt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Mt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:cr,marginInlineEnd:sr},[`&${dn}-no-colon::after`]:{content:'"\\a0"'}}},[`${dn}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${pn}-col-'"]):not([class*="' ${pn}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Mt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[dn]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:Mt.colorTextDescription,fontSize:Mt.fontSize,lineHeight:Mt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Mt.controlHeightSM,transition:`color ${Mt.motionDurationMid} ${Mt.motionEaseOut}`},"&-explain":{"&-error":{color:Mt.colorError},"&-warning":{color:Mt.colorWarning}}},[`&-with-help ${dn}-explain`]:{height:"auto",opacity:1},[`${dn}-feedback-icon`]:{fontSize:Mt.fontSize,textAlign:"center",visibility:"visible",animationName:ve.kr,animationDuration:Mt.motionDurationMid,animationTimingFunction:Mt.motionEaseOutBack,pointerEvents:"none","&-success":{color:Mt.colorSuccess},"&-error":{color:Mt.colorError},"&-warning":{color:Mt.colorWarning},"&-validating":{color:Mt.colorPrimary}}})}},je=(Mt,dn)=>{const{formItemCls:Kt}=Mt;return{[`${dn}-horizontal`]:{[`${Kt}-label`]:{flexGrow:0},[`${Kt}-control`]:{flex:"1 1 0",minWidth:0},[`${Kt}-label[class$='-24'], ${Kt}-label[class*='-24 ']`]:{[`& + ${Kt}-control`]:{minWidth:"unset"}}}}},qe=Mt=>{const{componentCls:dn,formItemCls:Kt,inlineItemMarginBottom:pn}=Mt;return{[`${dn}-inline`]:{display:"flex",flexWrap:"wrap",[Kt]:{flex:"none",marginInlineEnd:Mt.margin,marginBottom:pn,"&-row":{flexWrap:"nowrap"},[`> ${Kt}-label,
> ${Kt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Kt}-label`]:{flex:"none"},[`${dn}-text`]:{display:"inline-block"},[`${Kt}-has-feedback`]:{display:"inline-block"}}}}},Ve=Mt=>({padding:Mt.verticalLabelPadding,margin:Mt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),ct=Mt=>{const{componentCls:dn,formItemCls:Kt,rootPrefixCls:pn}=Mt;return{[`${Kt} ${Kt}-label`]:Ve(Mt),[`${dn}:not(${dn}-inline)`]:{[Kt]:{flexWrap:"wrap",[`${Kt}-label, ${Kt}-control`]:{[`&:not([class*=" ${pn}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},ot=Mt=>{const{componentCls:dn,formItemCls:Kt,antCls:pn}=Mt;return{[`${dn}-vertical`]:{[`${Kt}:not(${Kt}-horizontal)`]:{[`${Kt}-row`]:{flexDirection:"column"},[`${Kt}-label > label`]:{height:"auto"},[`${Kt}-control`]:{width:"100%"},[`${Kt}-label,
${pn}-col-24${Kt}-label,
${pn}-col-xl-24${Kt}-label`]:Ve(Mt)}},[`@media (max-width: ${(0,oe.unit)(Mt.screenXSMax)})`]:[ct(Mt),{[dn]:{[`${Kt}:not(${Kt}-horizontal)`]:{[`${pn}-col-xs-24${Kt}-label`]:Ve(Mt)}}}],[`@media (max-width: ${(0,oe.unit)(Mt.screenSMMax)})`]:{[dn]:{[`${Kt}:not(${Kt}-horizontal)`]:{[`${pn}-col-sm-24${Kt}-label`]:Ve(Mt)}}},[`@media (max-width: ${(0,oe.unit)(Mt.screenMDMax)})`]:{[dn]:{[`${Kt}:not(${Kt}-horizontal)`]:{[`${pn}-col-md-24${Kt}-label`]:Ve(Mt)}}},[`@media (max-width: ${(0,oe.unit)(Mt.screenLGMax)})`]:{[dn]:{[`${Kt}:not(${Kt}-horizontal)`]:{[`${pn}-col-lg-24${Kt}-label`]:Ve(Mt)}}}}},pt=Mt=>{const{formItemCls:dn,antCls:Kt}=Mt;return{[`${dn}-vertical`]:{[`${dn}-row`]:{flexDirection:"column"},[`${dn}-label > label`]:{height:"auto"},[`${dn}-control`]:{width:"100%"}},[`${dn}-vertical ${dn}-label,
${Kt}-col-24${dn}-label,
${Kt}-col-xl-24${dn}-label`]:Ve(Mt),[`@media (max-width: ${(0,oe.unit)(Mt.screenXSMax)})`]:[ct(Mt),{[dn]:{[`${Kt}-col-xs-24${dn}-label`]:Ve(Mt)}}],[`@media (max-width: ${(0,oe.unit)(Mt.screenSMMax)})`]:{[dn]:{[`${Kt}-col-sm-24${dn}-label`]:Ve(Mt)}},[`@media (max-width: ${(0,oe.unit)(Mt.screenMDMax)})`]:{[dn]:{[`${Kt}-col-md-24${dn}-label`]:Ve(Mt)}},[`@media (max-width: ${(0,oe.unit)(Mt.screenLGMax)})`]:{[dn]:{[`${Kt}-col-lg-24${dn}-label`]:Ve(Mt)}}}},bt=Mt=>({labelRequiredMarkColor:Mt.colorError,labelColor:Mt.colorTextHeading,labelFontSize:Mt.fontSize,labelHeight:Mt.controlHeight,labelColonMarginInlineStart:Mt.marginXXS/2,labelColonMarginInlineEnd:Mt.marginXS,itemMarginBottom:Mt.marginLG,verticalLabelPadding:`0 0 ${Mt.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),He=(Mt,dn)=>(0,Se.mergeToken)(Mt,{formItemCls:`${Mt.componentCls}-item`,rootPrefixCls:dn});var ht=(0,Te.I$)("Form",(Mt,dn)=>{let{rootPrefixCls:Kt}=dn;const pn=He(Mt,Kt);return[Ke(pn),Qe(pn),Ce(pn),je(pn,pn.componentCls),je(pn,pn.formItemCls),qe(pn),ot(pn),pt(pn),(0,Me.Z)(pn),ve.kr]},bt,{order:-1e3});const _e=[];function Re(Mt,dn,Kt){let pn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Mt=="string"?Mt:`${dn}-${pn}`,error:Mt,errorStatus:Kt}}var it=Mt=>{let{help:dn,helpStatus:Kt,errors:pn=_e,warnings:Nn=_e,className:Pr,fieldId:Yr,onVisibleChanged:ci}=Mt;const{prefixCls:or}=Ie.useContext(x.Rk),cr=`${or}-item-explain`,sr=(0,he.Z)(or),[ti,nr,Rn]=ht(or,sr),Ar=Ie.useMemo(()=>(0,Ue.Z)(or),[or]),Bi=xe(pn),Zn=xe(Nn),yn=Ie.useMemo(()=>dn!=null?[Re(dn,"help",Kt)]:[].concat((0,dt.Z)(Bi.map((pr,Kr)=>Re(pr,"error","error",Kr))),(0,dt.Z)(Zn.map((pr,Kr)=>Re(pr,"warning","warning",Kr)))),[dn,Kt,Bi,Zn]),Wn=Ie.useMemo(()=>{const pr={};return yn.forEach(Kr=>{let{key:Fi}=Kr;pr[Fi]=(pr[Fi]||0)+1}),yn.map((Kr,Fi)=>Object.assign(Object.assign({},Kr),{key:pr[Kr.key]>1?`${Kr.key}-fallback-${Fi}`:Kr.key}))},[yn]),rr={};return Yr&&(rr.id=`${Yr}_help`),ti(Ie.createElement(Le.default,{motionDeadline:Ar.motionDeadline,motionName:`${or}-show-help`,visible:!!Wn.length,onVisibleChanged:ci},pr=>{const{className:Kr,style:Fi}=pr;return Ie.createElement("div",Object.assign({},rr,{className:ze()(cr,Kr,Rn,sr,Pr,nr),style:Fi}),Ie.createElement(Le.CSSMotionList,Object.assign({keys:Wn},(0,Ue.Z)(or),{motionName:`${or}-show-help-item`,component:!1}),fi=>{const{key:_i,error:hi,errorStatus:bi,className:wi,style:Yi}=fi;return Ie.createElement("div",{key:_i,className:ze()(wi,{[`${cr}-${bi}`]:bi}),style:Yi},hi)}))}))},at=ae(55372),Bt=ae(48755),Ze=ae(2171),De=ae(31756),ut=ae(23069),$t=ae(76846),zt=ae(16722);const tt=["parentNode"],Ot="form_item";function Rt(Mt){return Mt===void 0||Mt===!1?[]:Array.isArray(Mt)?Mt:[Mt]}function fn(Mt,dn){if(!Mt.length)return;const Kt=Mt.join("_");return dn?`${dn}_${Kt}`:tt.includes(Kt)?`${Ot}_${Kt}`:Kt}function Tt(Mt,dn,Kt,pn,Nn,Pr){let Yr=pn;return Pr!==void 0?Yr=Pr:Kt.validating?Yr="validating":Mt.length?Yr="error":dn.length?Yr="warning":(Kt.touched||Nn&&Kt.validated)&&(Yr="success"),Yr}var mn=function(Mt,dn){var Kt={};for(var pn in Mt)Object.prototype.hasOwnProperty.call(Mt,pn)&&dn.indexOf(pn)<0&&(Kt[pn]=Mt[pn]);if(Mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,pn=Object.getOwnPropertySymbols(Mt);Nn<pn.length;Nn++)dn.indexOf(pn[Nn])<0&&Object.prototype.propertyIsEnumerable.call(Mt,pn[Nn])&&(Kt[pn[Nn]]=Mt[pn[Nn]]);return Kt};function Dt(Mt){return Rt(Mt).join("_")}function En(Mt,dn){const Kt=dn.getFieldInstance(Mt),pn=(0,$t.bn)(Kt);if(pn)return pn;const Nn=fn(Rt(Mt),dn.__INTERNAL__.name);if(Nn)return document.getElementById(Nn)}function rn(Mt){const[dn]=(0,at.useForm)(),Kt=Ie.useRef({}),pn=Ie.useMemo(()=>Mt!=null?Mt:Object.assign(Object.assign({},dn),{__INTERNAL__:{itemRef:Nn=>Pr=>{const Yr=Dt(Nn);Pr?Kt.current[Yr]=Pr:delete Kt.current[Yr]}},scrollToField:function(Nn){let Pr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:Yr}=Pr,ci=mn(Pr,["focus"]),or=En(Nn,pn);or&&((0,zt.Z)(or,Object.assign({scrollMode:"if-needed",block:"nearest"},ci)),Yr&&pn.focusField(Nn))},focusField:Nn=>{var Pr,Yr;const ci=pn.getFieldInstance(Nn);typeof(ci==null?void 0:ci.focus)=="function"?ci.focus():(Yr=(Pr=En(Nn,pn))===null||Pr===void 0?void 0:Pr.focus)===null||Yr===void 0||Yr.call(Pr)},getFieldInstance:Nn=>{const Pr=Dt(Nn);return Kt.current[Pr]}}),[Mt,dn]);return[pn]}var de=ae(98350),pe=function(Mt,dn){var Kt={};for(var pn in Mt)Object.prototype.hasOwnProperty.call(Mt,pn)&&dn.indexOf(pn)<0&&(Kt[pn]=Mt[pn]);if(Mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,pn=Object.getOwnPropertySymbols(Mt);Nn<pn.length;Nn++)dn.indexOf(pn[Nn])<0&&Object.prototype.propertyIsEnumerable.call(Mt,pn[Nn])&&(Kt[pn[Nn]]=Mt[pn[Nn]]);return Kt};const ie=(Mt,dn)=>{const Kt=Ie.useContext(Ze.Z),{getPrefixCls:pn,direction:Nn,requiredMark:Pr,colon:Yr,scrollToFirstError:ci,className:or,style:cr}=(0,Bt.dj)("form"),{prefixCls:sr,className:ti,rootClassName:nr,size:Rn,disabled:Ar=Kt,form:Bi,colon:Zn,labelAlign:yn,labelWrap:Wn,labelCol:rr,wrapperCol:pr,hideRequiredMark:Kr,layout:Fi="horizontal",scrollToFirstError:fi,requiredMark:_i,onFinishFailed:hi,name:bi,style:wi,feedbackIcons:Yi,variant:pi}=Mt,yi=pe(Mt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),Ji=(0,De.Z)(Rn),io=Ie.useContext(de.Z),ji=Ie.useMemo(()=>_i!==void 0?_i:Kr?!1:Pr!==void 0?Pr:!0,[Kr,_i,Pr]),So=Zn!=null?Zn:Yr,ki=pn("form",sr),ko=(0,he.Z)(ki),[co,Xo,wo]=ht(ki,ko),eo=ze()(ki,`${ki}-${Fi}`,{[`${ki}-hide-required-mark`]:ji===!1,[`${ki}-rtl`]:Nn==="rtl",[`${ki}-${Ji}`]:Ji},wo,ko,Xo,or,ti,nr),[bo]=rn(Bi),{__INTERNAL__:Go}=bo;Go.name=bi;const Tn=Ie.useMemo(()=>({name:bi,labelAlign:yn,labelCol:rr,labelWrap:Wn,wrapperCol:pr,vertical:Fi==="vertical",colon:So,requiredMark:ji,itemRef:Go.itemRef,form:bo,feedbackIcons:Yi}),[bi,yn,rr,pr,Fi,So,ji,bo,Yi]),Lo=Ie.useRef(null);Ie.useImperativeHandle(dn,()=>{var Jr;return Object.assign(Object.assign({},bo),{nativeElement:(Jr=Lo.current)===null||Jr===void 0?void 0:Jr.nativeElement})});const Gi=(Jr,ni)=>{if(Jr){let Wr={block:"nearest"};typeof Jr=="object"&&(Wr=Object.assign(Object.assign({},Wr),Jr)),bo.scrollToField(ni,Wr)}},jr=Jr=>{if(hi==null||hi(Jr),Jr.errorFields.length){const ni=Jr.errorFields[0].name;if(fi!==void 0){Gi(fi,ni);return}ci!==void 0&&Gi(ci,ni)}};return co(Ie.createElement(x.pg.Provider,{value:pi},Ie.createElement(Ze.n,{disabled:Ar},Ie.createElement(ut.Z.Provider,{value:Ji},Ie.createElement(x.RV,{validateMessages:io},Ie.createElement(x.q3.Provider,{value:Tn},Ie.createElement(at.default,Object.assign({id:bi},yi,{name:bi,onFinishFailed:jr,form:bo,ref:Lo,style:Object.assign(Object.assign({},cr),wi),className:eo}))))))))};var se=Ie.forwardRef(ie),le=ae(41799),Be=ae(8654),We=ae(22703),st=ae(32383),mt=ae(11592);function gt(Mt){if(typeof Mt=="function")return Mt;const dn=(0,mt.Z)(Mt);return dn.length<=1?dn[0]:dn}const Et=()=>{const{status:Mt,errors:dn=[],warnings:Kt=[]}=Ie.useContext(x.aM);return{status:Mt,errors:dn,warnings:Kt}};Et.Context=x.aM;var Lt=Et,jt=ae(16089);function Ct(Mt){const[dn,Kt]=Ie.useState(Mt),pn=Ie.useRef(null),Nn=Ie.useRef([]),Pr=Ie.useRef(!1);Ie.useEffect(()=>(Pr.current=!1,()=>{Pr.current=!0,jt.Z.cancel(pn.current),pn.current=null}),[]);function Yr(ci){Pr.current||(pn.current===null&&(Nn.current=[],pn.current=(0,jt.Z)(()=>{pn.current=null,Kt(or=>{let cr=or;return Nn.current.forEach(sr=>{cr=sr(cr)}),cr})})),Nn.current.push(ci))}return[dn,Yr]}function lt(){const{itemRef:Mt}=Ie.useContext(x.q3),dn=Ie.useRef({});function Kt(pn,Nn){const Pr=Nn&&typeof Nn=="object"&&(0,Be.C4)(Nn),Yr=pn.join("_");return(dn.current.name!==Yr||dn.current.originRef!==Pr)&&(dn.current.name=Yr,dn.current.originRef=Pr,dn.current.ref=(0,Be.sQ)(Mt(pn),Pr)),dn.current.ref}return Kt}var Vt=ae(29194),Zt=ae(34280),gn=ae(2738),sn=ae(65970),en=ae(70425),zn=ae(5472);const Fn=Mt=>{const{formItemCls:dn}=Mt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${dn}-control`]:{display:"flex"}}}};var Ut=(0,Te.bk)(["Form","item-item"],(Mt,dn)=>{let{rootPrefixCls:Kt}=dn;const pn=He(Mt,Kt);return[Fn(pn)]}),an=function(Mt,dn){var Kt={};for(var pn in Mt)Object.prototype.hasOwnProperty.call(Mt,pn)&&dn.indexOf(pn)<0&&(Kt[pn]=Mt[pn]);if(Mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,pn=Object.getOwnPropertySymbols(Mt);Nn<pn.length;Nn++)dn.indexOf(pn[Nn])<0&&Object.prototype.propertyIsEnumerable.call(Mt,pn[Nn])&&(Kt[pn[Nn]]=Mt[pn[Nn]]);return Kt};const _n=24;var It=Mt=>{const{prefixCls:dn,status:Kt,labelCol:pn,wrapperCol:Nn,children:Pr,errors:Yr,warnings:ci,_internalItemRender:or,extra:cr,help:sr,fieldId:ti,marginBottom:nr,onErrorVisibleChanged:Rn,label:Ar}=Mt,Bi=`${dn}-item`,Zn=Ie.useContext(x.q3),yn=Ie.useMemo(()=>{let yi=Object.assign({},Nn||Zn.wrapperCol||{});return Ar===null&&!pn&&!Nn&&Zn.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(io=>{const ji=io?[io]:[],So=(0,en.U2)(Zn.labelCol,ji),ki=typeof So=="object"?So:{},ko=(0,en.U2)(yi,ji),co=typeof ko=="object"?ko:{};"span"in ki&&!("offset"in co)&&ki.span<_n&&(yi=(0,en.t8)(yi,[].concat(ji,["offset"]),ki.span))}),yi},[Nn,Zn]),Wn=ze()(`${Bi}-control`,yn.className),rr=Ie.useMemo(()=>{const{labelCol:yi,wrapperCol:Ji}=Zn;return an(Zn,["labelCol","wrapperCol"])},[Zn]),pr=Ie.useRef(null),[Kr,Fi]=Ie.useState(0);(0,Zt.Z)(()=>{cr&&pr.current?Fi(pr.current.clientHeight):Fi(0)},[cr]);const fi=Ie.createElement("div",{className:`${Bi}-control-input`},Ie.createElement("div",{className:`${Bi}-control-input-content`},Pr)),_i=Ie.useMemo(()=>({prefixCls:dn,status:Kt}),[dn,Kt]),hi=nr!==null||Yr.length||ci.length?Ie.createElement(x.Rk.Provider,{value:_i},Ie.createElement(it,{fieldId:ti,errors:Yr,warnings:ci,help:sr,helpStatus:Kt,className:`${Bi}-explain-connected`,onVisibleChanged:Rn})):null,bi={};ti&&(bi.id=`${ti}_extra`);const wi=cr?Ie.createElement("div",Object.assign({},bi,{className:`${Bi}-extra`,ref:pr}),cr):null,Yi=hi||wi?Ie.createElement("div",{className:`${Bi}-additional`,style:nr?{minHeight:nr+Kr}:{}},hi,wi):null,pi=or&&or.mark==="pro_table_render"&&or.render?or.render(Mt,{input:fi,errorList:hi,extra:wi}):Ie.createElement(Ie.Fragment,null,fi,Yi);return Ie.createElement(x.q3.Provider,{value:rr},Ie.createElement(zn.Z,Object.assign({},yn,{className:Wn}),pi),Ie.createElement(Ut,{prefixCls:dn}))},Wt=ae(61485),on=ae(9017),vn=ae(85981),Yn=ae(25399),Lr=function(Mt,dn){var Kt={};for(var pn in Mt)Object.prototype.hasOwnProperty.call(Mt,pn)&&dn.indexOf(pn)<0&&(Kt[pn]=Mt[pn]);if(Mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,pn=Object.getOwnPropertySymbols(Mt);Nn<pn.length;Nn++)dn.indexOf(pn[Nn])<0&&Object.prototype.propertyIsEnumerable.call(Mt,pn[Nn])&&(Kt[pn[Nn]]=Mt[pn[Nn]]);return Kt};function ri(Mt){return Mt?typeof Mt=="object"&&!Ie.isValidElement(Mt)?Mt:{title:Mt}:null}var Ir=Mt=>{let{prefixCls:dn,label:Kt,htmlFor:pn,labelCol:Nn,labelAlign:Pr,colon:Yr,required:ci,requiredMark:or,tooltip:cr,vertical:sr}=Mt;var ti;const[nr]=(0,on.Z)("Form"),{labelAlign:Rn,labelCol:Ar,labelWrap:Bi,colon:Zn}=Ie.useContext(x.q3);if(!Kt)return null;const yn=Nn||Ar||{},Wn=Pr||Rn,rr=`${dn}-item-label`,pr=ze()(rr,Wn==="left"&&`${rr}-left`,yn.className,{[`${rr}-wrap`]:!!Bi});let Kr=Kt;const Fi=Yr===!0||Zn!==!1&&Yr!==!1;Fi&&!sr&&typeof Kt=="string"&&Kt.trim()&&(Kr=Kt.replace(/[:|]\s*$/,""));const _i=ri(cr);if(_i){const{icon:yi=Ie.createElement(Wt.Z,null)}=_i,Ji=Lr(_i,["icon"]),io=Ie.createElement(Yn.Z,Object.assign({},Ji),Ie.cloneElement(yi,{className:`${dn}-item-tooltip`,title:"",onClick:ji=>{ji.preventDefault()},tabIndex:null}));Kr=Ie.createElement(Ie.Fragment,null,Kr,io)}const hi=or==="optional",bi=typeof or=="function",wi=or===!1;bi?Kr=or(Kr,{required:!!ci}):hi&&!ci&&(Kr=Ie.createElement(Ie.Fragment,null,Kr,Ie.createElement("span",{className:`${dn}-item-optional`,title:""},(nr==null?void 0:nr.optional)||((ti=vn.Z.Form)===null||ti===void 0?void 0:ti.optional))));let Yi;wi?Yi="hidden":(hi||bi)&&(Yi="optional");const pi=ze()({[`${dn}-item-required`]:ci,[`${dn}-item-required-mark-${Yi}`]:Yi,[`${dn}-item-no-colon`]:!Fi});return Ie.createElement(zn.Z,Object.assign({},yn,{className:pr}),Ie.createElement("label",{htmlFor:pn,className:pi,title:typeof Kt=="string"?Kt:""},Kr))},tr=ae(29679),vr=ae(19248),Qn=ae(96512),qn=ae(58617);const lr={success:tr.Z,warning:Qn.Z,error:vr.Z,validating:qn.Z};function $n(Mt){let{children:dn,errors:Kt,warnings:pn,hasFeedback:Nn,validateStatus:Pr,prefixCls:Yr,meta:ci,noStyle:or}=Mt;const cr=`${Yr}-item`,{feedbackIcons:sr}=Ie.useContext(x.q3),ti=Tt(Kt,pn,ci,null,!!Nn,Pr),{isFormItemInput:nr,status:Rn,hasFeedback:Ar,feedbackIcon:Bi}=Ie.useContext(x.aM),Zn=Ie.useMemo(()=>{var yn;let Wn;if(Nn){const pr=Nn!==!0&&Nn.icons||sr,Kr=ti&&((yn=pr==null?void 0:pr({status:ti,errors:Kt,warnings:pn}))===null||yn===void 0?void 0:yn[ti]),Fi=ti&&lr[ti];Wn=Kr!==!1&&Fi?Ie.createElement("span",{className:ze()(`${cr}-feedback-icon`,`${cr}-feedback-icon-${ti}`)},Kr||Ie.createElement(Fi,null)):null}const rr={status:ti||"",errors:Kt,warnings:pn,hasFeedback:!!Nn,feedbackIcon:Wn,isFormItemInput:!0};return or&&(rr.status=(ti!=null?ti:Rn)||"",rr.isFormItemInput=nr,rr.hasFeedback=!!(Nn!=null?Nn:Ar),rr.feedbackIcon=Nn!==void 0?rr.feedbackIcon:Bi),rr},[ti,Nn,or,nr,Rn]);return Ie.createElement(x.aM.Provider,{value:Zn},dn)}var Br=function(Mt,dn){var Kt={};for(var pn in Mt)Object.prototype.hasOwnProperty.call(Mt,pn)&&dn.indexOf(pn)<0&&(Kt[pn]=Mt[pn]);if(Mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,pn=Object.getOwnPropertySymbols(Mt);Nn<pn.length;Nn++)dn.indexOf(pn[Nn])<0&&Object.prototype.propertyIsEnumerable.call(Mt,pn[Nn])&&(Kt[pn[Nn]]=Mt[pn[Nn]]);return Kt};function Sr(Mt){const{prefixCls:dn,className:Kt,rootClassName:pn,style:Nn,help:Pr,errors:Yr,warnings:ci,validateStatus:or,meta:cr,hasFeedback:sr,hidden:ti,children:nr,fieldId:Rn,required:Ar,isRequired:Bi,onSubItemMetaChange:Zn,layout:yn}=Mt,Wn=Br(Mt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),rr=`${dn}-item`,{requiredMark:pr,vertical:Kr}=Ie.useContext(x.q3),Fi=Kr||yn==="vertical",fi=Ie.useRef(null),_i=xe(Yr),hi=xe(ci),bi=Pr!=null,wi=!!(bi||Yr.length||ci.length),Yi=!!fi.current&&(0,Vt.Z)(fi.current),[pi,yi]=Ie.useState(null);(0,Zt.Z)(()=>{if(wi&&fi.current){const ki=getComputedStyle(fi.current);yi(parseInt(ki.marginBottom,10))}},[wi,Yi]);const Ji=ki=>{ki||yi(null)},ji=function(){let ki=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ko=ki?_i:cr.errors,co=ki?hi:cr.warnings;return Tt(ko,co,cr,"",!!sr,or)}(),So=ze()(rr,Kt,pn,{[`${rr}-with-help`]:bi||_i.length||hi.length,[`${rr}-has-feedback`]:ji&&sr,[`${rr}-has-success`]:ji==="success",[`${rr}-has-warning`]:ji==="warning",[`${rr}-has-error`]:ji==="error",[`${rr}-is-validating`]:ji==="validating",[`${rr}-hidden`]:ti,[`${rr}-${yn}`]:yn});return Ie.createElement("div",{className:So,style:Nn,ref:fi},Ie.createElement(sn.Z,Object.assign({className:`${rr}-row`},(0,gn.Z)(Wn,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),Ie.createElement(Ir,Object.assign({htmlFor:Rn},Mt,{requiredMark:pr,required:Ar!=null?Ar:Bi,prefixCls:dn,vertical:Fi})),Ie.createElement(It,Object.assign({},Mt,cr,{errors:_i,warnings:hi,prefixCls:dn,status:ji,help:Pr,marginBottom:pi,onErrorVisibleChanged:Ji}),Ie.createElement(x.qI.Provider,{value:Zn},Ie.createElement($n,{prefixCls:dn,meta:cr,errors:cr.errors,warnings:cr.warnings,hasFeedback:sr,validateStatus:ji},nr)))),!!pi&&Ie.createElement("div",{className:`${rr}-margin-offset`,style:{marginBottom:-pi}}))}const kr="__SPLIT__",gi=null;function Ai(Mt,dn){const Kt=Object.keys(Mt),pn=Object.keys(dn);return Kt.length===pn.length&&Kt.every(Nn=>{const Pr=Mt[Nn],Yr=dn[Nn];return Pr===Yr||typeof Pr=="function"||typeof Yr=="function"})}const di=Ie.memo(Mt=>{let{children:dn}=Mt;return dn},(Mt,dn)=>Ai(Mt.control,dn.control)&&Mt.update===dn.update&&Mt.childProps.length===dn.childProps.length&&Mt.childProps.every((Kt,pn)=>Kt===dn.childProps[pn]));function Ti(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Ei(Mt){const{name:dn,noStyle:Kt,className:pn,dependencies:Nn,prefixCls:Pr,shouldUpdate:Yr,rules:ci,children:or,required:cr,label:sr,messageVariables:ti,trigger:nr="onChange",validateTrigger:Rn,hidden:Ar,help:Bi,layout:Zn}=Mt,{getPrefixCls:yn}=Ie.useContext(Bt.E_),{name:Wn}=Ie.useContext(x.q3),rr=gt(or),pr=typeof rr=="function",Kr=Ie.useContext(x.qI),{validateTrigger:Fi}=Ie.useContext(at.FieldContext),fi=Rn!==void 0?Rn:Fi,_i=dn!=null,hi=yn("form",Pr),bi=(0,he.Z)(hi),[wi,Yi,pi]=ht(hi,bi),yi=(0,st.ln)("Form.Item"),Ji=Ie.useContext(at.ListContext),io=Ie.useRef(null),[ji,So]=Ct({}),[ki,ko]=(0,le.Z)(()=>Ti()),co=Lo=>{const Gi=Ji==null?void 0:Ji.getKey(Lo.name);if(ko(Lo.destroy?Ti():Lo,!0),Kt&&Bi!==!1&&Kr){let jr=Lo.name;if(Lo.destroy)jr=io.current||jr;else if(Gi!==void 0){const[Jr,ni]=Gi;jr=[Jr].concat((0,dt.Z)(ni)),io.current=jr}Kr(Lo,jr)}},Xo=(Lo,Gi)=>{So(jr=>{const Jr=Object.assign({},jr),Wr=[].concat((0,dt.Z)(Lo.name.slice(0,-1)),(0,dt.Z)(Gi)).join(kr);return Lo.destroy?delete Jr[Wr]:Jr[Wr]=Lo,Jr})},[wo,eo]=Ie.useMemo(()=>{const Lo=(0,dt.Z)(ki.errors),Gi=(0,dt.Z)(ki.warnings);return Object.values(ji).forEach(jr=>{Lo.push.apply(Lo,(0,dt.Z)(jr.errors||[])),Gi.push.apply(Gi,(0,dt.Z)(jr.warnings||[]))}),[Lo,Gi]},[ji,ki.errors,ki.warnings]),bo=lt();function Go(Lo,Gi,jr){return Kt&&!Ar?Ie.createElement($n,{prefixCls:hi,hasFeedback:Mt.hasFeedback,validateStatus:Mt.validateStatus,meta:ki,errors:wo,warnings:eo,noStyle:!0},Lo):Ie.createElement(Sr,Object.assign({key:"row"},Mt,{className:ze()(pn,pi,bi,Yi),prefixCls:hi,fieldId:Gi,isRequired:jr,errors:wo,warnings:eo,meta:ki,onSubItemMetaChange:Xo,layout:Zn}),Lo)}if(!_i&&!pr&&!Nn)return wi(Go(rr));let Tn={};return typeof sr=="string"?Tn.label=sr:dn&&(Tn.label=String(dn)),ti&&(Tn=Object.assign(Object.assign({},Tn),ti)),wi(Ie.createElement(at.Field,Object.assign({},Mt,{messageVariables:Tn,trigger:nr,validateTrigger:fi,onMetaChange:co}),(Lo,Gi,jr)=>{const Jr=Rt(dn).length&&Gi?Gi.name:[],ni=fn(Jr,Wn),Wr=cr!==void 0?cr:!!(ci!=null&&ci.some($r=>{if($r&&typeof $r=="object"&&$r.required&&!$r.warningOnly)return!0;if(typeof $r=="function"){const oi=$r(jr);return(oi==null?void 0:oi.required)&&!(oi!=null&&oi.warningOnly)}return!1})),Ui=Object.assign({},Lo);let to=null;if(Array.isArray(rr)&&_i)to=rr;else if(!(pr&&(!(Yr||Nn)||_i))){if(!(Nn&&!pr&&!_i))if(Ie.isValidElement(rr)){const $r=Object.assign(Object.assign({},rr.props),Ui);if($r.id||($r.id=ni),Bi||wo.length>0||eo.length>0||Mt.extra){const qr=[];(Bi||wo.length>0)&&qr.push(`${ni}_help`),Mt.extra&&qr.push(`${ni}_extra`),$r["aria-describedby"]=qr.join(" ")}wo.length>0&&($r["aria-invalid"]="true"),Wr&&($r["aria-required"]="true"),(0,Be.Yr)(rr)&&($r.ref=bo(Jr,rr)),new Set([].concat((0,dt.Z)(Rt(nr)),(0,dt.Z)(Rt(fi)))).forEach(qr=>{$r[qr]=function(){for(var Ao,Jo,_o,pa,No,qo=arguments.length,Ro=new Array(qo),oa=0;oa<qo;oa++)Ro[oa]=arguments[oa];(_o=Ui[qr])===null||_o===void 0||(Ao=_o).call.apply(Ao,[Ui].concat(Ro)),(No=(pa=rr.props)[qr])===null||No===void 0||(Jo=No).call.apply(Jo,[pa].concat(Ro))}});const yr=[$r["aria-required"],$r["aria-invalid"],$r["aria-describedby"]];to=Ie.createElement(di,{control:Ui,update:rr,childProps:yr},(0,We.Tm)(rr,$r))}else pr&&(Yr||Nn)&&!_i?to=rr(jr):to=rr}return Go(to,ni,Wr)}))}const no=Ei;no.useStatus=Lt;var zi=no,fr=function(Mt,dn){var Kt={};for(var pn in Mt)Object.prototype.hasOwnProperty.call(Mt,pn)&&dn.indexOf(pn)<0&&(Kt[pn]=Mt[pn]);if(Mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,pn=Object.getOwnPropertySymbols(Mt);Nn<pn.length;Nn++)dn.indexOf(pn[Nn])<0&&Object.prototype.propertyIsEnumerable.call(Mt,pn[Nn])&&(Kt[pn[Nn]]=Mt[pn[Nn]]);return Kt},vi=Mt=>{var{prefixCls:dn,children:Kt}=Mt,pn=fr(Mt,["prefixCls","children"]);const{getPrefixCls:Nn}=Ie.useContext(Bt.E_),Pr=Nn("form",dn),Yr=Ie.useMemo(()=>({prefixCls:Pr,status:"error"}),[Pr]);return Ie.createElement(at.List,Object.assign({},pn),(ci,or,cr)=>Ie.createElement(x.Rk.Provider,{value:Yr},Kt(ci.map(sr=>Object.assign(Object.assign({},sr),{fieldKey:sr.key})),or,{errors:cr.errors,warnings:cr.warnings})))};function Gt(){const{form:Mt}=Ie.useContext(x.q3);return Mt}const un=se;un.Item=zi,un.List=vi,un.ErrorList=it,un.useForm=rn,un.useFormInstance=Gt,un.useWatch=at.useWatch,un.Provider=x.RV,un.create=()=>{};var wn=un},75786:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return Bi}});var x=ae(59301),dt=ae(15277),Ie=ae(92310),Je=ae.n(Ie),ze=ae(54476),Le=ae(33885),Ue=ae(20068),he=ae(42978),xe=ae(76190),oe=ae(75931),Oe=/margin|padding|width|height|max|min|offset/,ve={left:!0,top:!0},Me={cssFloat:1,styleFloat:1,float:1};function Se(Zn){return Zn.nodeType===1?Zn.ownerDocument.defaultView.getComputedStyle(Zn,null):{}}function Te(Zn,yn,Wn){if(yn=yn.toLowerCase(),Wn==="auto"){if(yn==="height")return Zn.offsetHeight;if(yn==="width")return Zn.offsetWidth}return yn in ve||(ve[yn]=Oe.test(yn)),ve[yn]?parseFloat(Wn)||0:Wn}function we(Zn,yn){var Wn=arguments.length,rr=Se(Zn);return yn=Me[yn]?"cssFloat"in Zn.style?"cssFloat":"styleFloat":yn,Wn===1?rr:Te(Zn,yn,rr[yn]||Zn.style[yn])}function Ce(Zn,yn,Wn){var rr=arguments.length;if(yn=Me[yn]?"cssFloat"in Zn.style?"cssFloat":"styleFloat":yn,rr===3)return typeof Wn=="number"&&Oe.test(yn)&&(Wn="".concat(Wn,"px")),Zn.style[yn]=Wn,Wn;for(var pr in yn)yn.hasOwnProperty(pr)&&Ce(Zn,pr,yn[pr]);return Se(Zn)}function Ee(Zn){return Zn===document.body?document.documentElement.clientWidth:Zn.offsetWidth}function ke(Zn){return Zn===document.body?window.innerHeight||document.documentElement.clientHeight:Zn.offsetHeight}function Ke(){var Zn=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),yn=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Zn,height:yn}}function Qe(){var Zn=document.documentElement.clientWidth,yn=window.innerHeight||document.documentElement.clientHeight;return{width:Zn,height:yn}}function je(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function qe(Zn){var yn=Zn.getBoundingClientRect(),Wn=document.documentElement;return{left:yn.left+(window.pageXOffset||Wn.scrollLeft)-(Wn.clientLeft||document.body.clientLeft||0),top:yn.top+(window.pageYOffset||Wn.scrollTop)-(Wn.clientTop||document.body.clientTop||0)}}var Ve=ae(18929),ct=ae(55311),ot=ae(8224),pt=ae(10228),bt=ae(43403),He=ae(77900),ht=x.createContext(null),_e=function(yn){var Wn=yn.visible,rr=yn.maskTransitionName,pr=yn.getContainer,Kr=yn.prefixCls,Fi=yn.rootClassName,fi=yn.icons,_i=yn.countRender,hi=yn.showSwitch,bi=yn.showProgress,wi=yn.current,Yi=yn.transform,pi=yn.count,yi=yn.scale,Ji=yn.minScale,io=yn.maxScale,ji=yn.closeIcon,So=yn.onActive,ki=yn.onClose,ko=yn.onZoomIn,co=yn.onZoomOut,Xo=yn.onRotateRight,wo=yn.onRotateLeft,eo=yn.onFlipX,bo=yn.onFlipY,Go=yn.onReset,Tn=yn.toolbarRender,Lo=yn.zIndex,Gi=yn.image,jr=(0,x.useContext)(ht),Jr=fi.rotateLeft,ni=fi.rotateRight,Wr=fi.zoomIn,Ui=fi.zoomOut,to=fi.close,$r=fi.left,oi=fi.right,yr=fi.flipX,qr=fi.flipY,Ao="".concat(Kr,"-operations-operation");x.useEffect(function(){var as=function(Mo){Mo.keyCode===pt.Z.ESC&&ki()};return Wn&&window.addEventListener("keydown",as),function(){window.removeEventListener("keydown",as)}},[Wn]);var Jo=function(fs,Mo){fs.preventDefault(),fs.stopPropagation(),So(Mo)},_o=x.useCallback(function(as){var fs=as.type,Mo=as.disabled,go=as.onClick,Fa=as.icon;return x.createElement("div",{key:fs,className:Je()(Ao,"".concat(Kr,"-operations-operation-").concat(fs),(0,Ue.Z)({},"".concat(Kr,"-operations-operation-disabled"),!!Mo)),onClick:go},Fa)},[Ao,Kr]),pa=hi?_o({icon:$r,onClick:function(fs){return Jo(fs,-1)},type:"prev",disabled:wi===0}):void 0,No=hi?_o({icon:oi,onClick:function(fs){return Jo(fs,1)},type:"next",disabled:wi===pi-1}):void 0,qo=_o({icon:qr,onClick:bo,type:"flipY"}),Ro=_o({icon:yr,onClick:eo,type:"flipX"}),oa=_o({icon:Jr,onClick:wo,type:"rotateLeft"}),da=_o({icon:ni,onClick:Xo,type:"rotateRight"}),Ka=_o({icon:Ui,onClick:co,type:"zoomOut",disabled:yi<=Ji}),_s=_o({icon:Wr,onClick:ko,type:"zoomIn",disabled:yi===io}),js=x.createElement("div",{className:"".concat(Kr,"-operations")},qo,Ro,oa,da,Ka,_s);return x.createElement(He.default,{visible:Wn,motionName:rr},function(as){var fs=as.className,Mo=as.style;return x.createElement(bt.Z,{open:!0,getContainer:pr!=null?pr:document.body},x.createElement("div",{className:Je()("".concat(Kr,"-operations-wrapper"),fs,Fi),style:(0,Le.Z)((0,Le.Z)({},Mo),{},{zIndex:Lo})},ji===null?null:x.createElement("button",{className:"".concat(Kr,"-close"),onClick:ki},ji||to),hi&&x.createElement(x.Fragment,null,x.createElement("div",{className:Je()("".concat(Kr,"-switch-left"),(0,Ue.Z)({},"".concat(Kr,"-switch-left-disabled"),wi===0)),onClick:function(Fa){return Jo(Fa,-1)}},$r),x.createElement("div",{className:Je()("".concat(Kr,"-switch-right"),(0,Ue.Z)({},"".concat(Kr,"-switch-right-disabled"),wi===pi-1)),onClick:function(Fa){return Jo(Fa,1)}},oi)),x.createElement("div",{className:"".concat(Kr,"-footer")},bi&&x.createElement("div",{className:"".concat(Kr,"-progress")},_i?_i(wi+1,pi):"".concat(wi+1," / ").concat(pi)),Tn?Tn(js,(0,Le.Z)((0,Le.Z)({icons:{prevIcon:pa,nextIcon:No,flipYIcon:qo,flipXIcon:Ro,rotateLeftIcon:oa,rotateRightIcon:da,zoomOutIcon:Ka,zoomInIcon:_s},actions:{onActive:So,onFlipY:bo,onFlipX:eo,onRotateLeft:wo,onRotateRight:Xo,onZoomOut:co,onZoomIn:ko,onReset:Go,onClose:ki},transform:Yi},jr?{current:wi,total:pi}:{}),{},{image:Gi})):js)))})},Re=_e,Nt=ae(13697),it=ae(16089),at={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Bt(Zn,yn,Wn,rr){var pr=(0,x.useRef)(null),Kr=(0,x.useRef)([]),Fi=(0,x.useState)(at),fi=(0,he.Z)(Fi,2),_i=fi[0],hi=fi[1],bi=function(yi){hi(at),(0,Nt.Z)(at,_i)||rr==null||rr({transform:at,action:yi})},wi=function(yi,Ji){pr.current===null&&(Kr.current=[],pr.current=(0,it.Z)(function(){hi(function(io){var ji=io;return Kr.current.forEach(function(So){ji=(0,Le.Z)((0,Le.Z)({},ji),So)}),pr.current=null,rr==null||rr({transform:ji,action:Ji}),ji})})),Kr.current.push((0,Le.Z)((0,Le.Z)({},_i),yi))},Yi=function(yi,Ji,io,ji,So){var ki=Zn.current,ko=ki.width,co=ki.height,Xo=ki.offsetWidth,wo=ki.offsetHeight,eo=ki.offsetLeft,bo=ki.offsetTop,Go=yi,Tn=_i.scale*yi;Tn>Wn?(Tn=Wn,Go=Wn/_i.scale):Tn<yn&&(Tn=So?Tn:yn,Go=Tn/_i.scale);var Lo=io!=null?io:innerWidth/2,Gi=ji!=null?ji:innerHeight/2,jr=Go-1,Jr=jr*ko*.5,ni=jr*co*.5,Wr=jr*(Lo-_i.x-eo),Ui=jr*(Gi-_i.y-bo),to=_i.x-(Wr-Jr),$r=_i.y-(Ui-ni);if(yi<1&&Tn===1){var oi=Xo*Tn,yr=wo*Tn,qr=Qe(),Ao=qr.width,Jo=qr.height;oi<=Ao&&yr<=Jo&&(to=0,$r=0)}wi({x:to,y:$r,scale:Tn},Ji)};return{transform:_i,resetTransform:bi,updateTransform:wi,dispatchZoomChange:Yi}}var Ze=ae(48736);function De(Zn,yn,Wn,rr){var pr=yn+Wn,Kr=(Wn-rr)/2;if(Wn>rr){if(yn>0)return(0,Ue.Z)({},Zn,Kr);if(yn<0&&pr<rr)return(0,Ue.Z)({},Zn,-Kr)}else if(yn<0||pr>rr)return(0,Ue.Z)({},Zn,yn<0?Kr:-Kr);return{}}function ut(Zn,yn,Wn,rr){var pr=Qe(),Kr=pr.width,Fi=pr.height,fi=null;return Zn<=Kr&&yn<=Fi?fi={x:0,y:0}:(Zn>Kr||yn>Fi)&&(fi=(0,Le.Z)((0,Le.Z)({},De("x",Wn,Zn,Kr)),De("y",rr,yn,Fi))),fi}var $t=1,zt=1;function tt(Zn,yn,Wn,rr,pr,Kr,Fi){var fi=pr.rotate,_i=pr.scale,hi=pr.x,bi=pr.y,wi=(0,x.useState)(!1),Yi=(0,he.Z)(wi,2),pi=Yi[0],yi=Yi[1],Ji=(0,x.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),io=function(co){!yn||co.button!==0||(co.preventDefault(),co.stopPropagation(),Ji.current={diffX:co.pageX-hi,diffY:co.pageY-bi,transformX:hi,transformY:bi},yi(!0))},ji=function(co){Wn&&pi&&Kr({x:co.pageX-Ji.current.diffX,y:co.pageY-Ji.current.diffY},"move")},So=function(){if(Wn&&pi){yi(!1);var co=Ji.current,Xo=co.transformX,wo=co.transformY,eo=hi!==Xo&&bi!==wo;if(!eo)return;var bo=Zn.current.offsetWidth*_i,Go=Zn.current.offsetHeight*_i,Tn=Zn.current.getBoundingClientRect(),Lo=Tn.left,Gi=Tn.top,jr=fi%180!==0,Jr=ut(jr?Go:bo,jr?bo:Go,Lo,Gi);Jr&&Kr((0,Le.Z)({},Jr),"dragRebound")}},ki=function(co){if(!(!Wn||co.deltaY==0)){var Xo=Math.abs(co.deltaY/100),wo=Math.min(Xo,zt),eo=$t+wo*rr;co.deltaY>0&&(eo=$t/eo),Fi(eo,"wheel",co.clientX,co.clientY)}};return(0,x.useEffect)(function(){var ko,co,Xo,wo;if(yn){Xo=(0,ot.Z)(window,"mouseup",So,!1),wo=(0,ot.Z)(window,"mousemove",ji,!1);try{window.top!==window.self&&(ko=(0,ot.Z)(window.top,"mouseup",So,!1),co=(0,ot.Z)(window.top,"mousemove",ji,!1))}catch(eo){(0,Ze.Kp)(!1,"[rc-image] ".concat(eo))}}return function(){var eo,bo,Go,Tn;(eo=Xo)===null||eo===void 0||eo.remove(),(bo=wo)===null||bo===void 0||bo.remove(),(Go=ko)===null||Go===void 0||Go.remove(),(Tn=co)===null||Tn===void 0||Tn.remove()}},[Wn,pi,hi,bi,fi,yn]),{isMoving:pi,onMouseDown:io,onMouseMove:ji,onMouseUp:So,onWheel:ki}}function Ot(Zn){return new Promise(function(yn){if(!Zn){yn(!1);return}var Wn=document.createElement("img");Wn.onerror=function(){return yn(!1)},Wn.onload=function(){return yn(!0)},Wn.src=Zn})}function Rt(Zn){var yn=Zn.src,Wn=Zn.isCustomPlaceholder,rr=Zn.fallback,pr=(0,x.useState)(Wn?"loading":"normal"),Kr=(0,he.Z)(pr,2),Fi=Kr[0],fi=Kr[1],_i=(0,x.useRef)(!1),hi=Fi==="error";(0,x.useEffect)(function(){var pi=!0;return Ot(yn).then(function(yi){!yi&&pi&&fi("error")}),function(){pi=!1}},[yn]),(0,x.useEffect)(function(){Wn&&!_i.current?fi("loading"):hi&&fi("normal")},[yn]);var bi=function(){fi("normal")},wi=function(yi){_i.current=!1,Fi==="loading"&&yi!==null&&yi!==void 0&&yi.complete&&(yi.naturalWidth||yi.naturalHeight)&&(_i.current=!0,bi())},Yi=hi&&rr?{src:rr}:{onLoad:bi,src:yn};return[wi,Yi,Fi]}function fn(Zn,yn){var Wn=Zn.x-yn.x,rr=Zn.y-yn.y;return Math.hypot(Wn,rr)}function Tt(Zn,yn,Wn,rr){var pr=fn(Zn,Wn),Kr=fn(yn,rr);if(pr===0&&Kr===0)return[Zn.x,Zn.y];var Fi=pr/(pr+Kr),fi=Zn.x+Fi*(yn.x-Zn.x),_i=Zn.y+Fi*(yn.y-Zn.y);return[fi,_i]}function mn(Zn,yn,Wn,rr,pr,Kr,Fi){var fi=pr.rotate,_i=pr.scale,hi=pr.x,bi=pr.y,wi=(0,x.useState)(!1),Yi=(0,he.Z)(wi,2),pi=Yi[0],yi=Yi[1],Ji=(0,x.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),io=function(co){Ji.current=(0,Le.Z)((0,Le.Z)({},Ji.current),co)},ji=function(co){if(yn){co.stopPropagation(),yi(!0);var Xo=co.touches,wo=Xo===void 0?[]:Xo;wo.length>1?io({point1:{x:wo[0].clientX,y:wo[0].clientY},point2:{x:wo[1].clientX,y:wo[1].clientY},eventType:"touchZoom"}):io({point1:{x:wo[0].clientX-hi,y:wo[0].clientY-bi},eventType:"move"})}},So=function(co){var Xo=co.touches,wo=Xo===void 0?[]:Xo,eo=Ji.current,bo=eo.point1,Go=eo.point2,Tn=eo.eventType;if(wo.length>1&&Tn==="touchZoom"){var Lo={x:wo[0].clientX,y:wo[0].clientY},Gi={x:wo[1].clientX,y:wo[1].clientY},jr=Tt(bo,Go,Lo,Gi),Jr=(0,he.Z)(jr,2),ni=Jr[0],Wr=Jr[1],Ui=fn(Lo,Gi)/fn(bo,Go);Fi(Ui,"touchZoom",ni,Wr,!0),io({point1:Lo,point2:Gi,eventType:"touchZoom"})}else Tn==="move"&&(Kr({x:wo[0].clientX-bo.x,y:wo[0].clientY-bo.y},"move"),io({eventType:"move"}))},ki=function(){if(Wn){if(pi&&yi(!1),io({eventType:"none"}),rr>_i)return Kr({x:0,y:0,scale:rr},"touchZoom");var co=Zn.current.offsetWidth*_i,Xo=Zn.current.offsetHeight*_i,wo=Zn.current.getBoundingClientRect(),eo=wo.left,bo=wo.top,Go=fi%180!==0,Tn=ut(Go?Xo:co,Go?co:Xo,eo,bo);Tn&&Kr((0,Le.Z)({},Tn),"dragRebound")}};return(0,x.useEffect)(function(){var ko;return Wn&&yn&&(ko=(0,ot.Z)(window,"touchmove",function(co){return co.preventDefault()},{passive:!1})),function(){var co;(co=ko)===null||co===void 0||co.remove()}},[Wn,yn]),{isTouching:pi,onTouchStart:ji,onTouchMove:So,onTouchEnd:ki}}var Dt=["fallback","src","imgRef"],En=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],rn=function(yn){var Wn=yn.fallback,rr=yn.src,pr=yn.imgRef,Kr=(0,oe.Z)(yn,Dt),Fi=Rt({src:rr,fallback:Wn}),fi=(0,he.Z)(Fi,2),_i=fi[0],hi=fi[1];return x.createElement("img",(0,ze.Z)({ref:function(wi){pr.current=wi,_i(wi)}},Kr,hi))},de=function(yn){var Wn=yn.prefixCls,rr=yn.src,pr=yn.alt,Kr=yn.imageInfo,Fi=yn.fallback,fi=yn.movable,_i=fi===void 0?!0:fi,hi=yn.onClose,bi=yn.visible,wi=yn.icons,Yi=wi===void 0?{}:wi,pi=yn.rootClassName,yi=yn.closeIcon,Ji=yn.getContainer,io=yn.current,ji=io===void 0?0:io,So=yn.count,ki=So===void 0?1:So,ko=yn.countRender,co=yn.scaleStep,Xo=co===void 0?.5:co,wo=yn.minScale,eo=wo===void 0?1:wo,bo=yn.maxScale,Go=bo===void 0?50:bo,Tn=yn.transitionName,Lo=Tn===void 0?"zoom":Tn,Gi=yn.maskTransitionName,jr=Gi===void 0?"fade":Gi,Jr=yn.imageRender,ni=yn.imgCommonProps,Wr=yn.toolbarRender,Ui=yn.onTransform,to=yn.onChange,$r=(0,oe.Z)(yn,En),oi=(0,x.useRef)(),yr=(0,x.useContext)(ht),qr=yr&&ki>1,Ao=yr&&ki>=1,Jo=(0,x.useState)(!0),_o=(0,he.Z)(Jo,2),pa=_o[0],No=_o[1],qo=Bt(oi,eo,Go,Ui),Ro=qo.transform,oa=qo.resetTransform,da=qo.updateTransform,Ka=qo.dispatchZoomChange,_s=tt(oi,_i,bi,Xo,Ro,da,Ka),js=_s.isMoving,as=_s.onMouseDown,fs=_s.onWheel,Mo=mn(oi,_i,bi,eo,Ro,da,Ka),go=Mo.isTouching,Fa=Mo.onTouchStart,gs=Mo.onTouchMove,nl=Mo.onTouchEnd,rl=Ro.rotate,il=Ro.scale,yl=Je()((0,Ue.Z)({},"".concat(Wn,"-moving"),js));(0,x.useEffect)(function(){pa||No(!0)},[pa]);var su=function(){oa("close")},ol=function(){Ka($t+Xo,"zoomIn")},jl=function(){Ka($t/($t+Xo),"zoomOut")},Lu=function(){da({rotate:rl+90},"rotateRight")},Xl=function(){da({rotate:rl-90},"rotateLeft")},wl=function(){da({flipX:!Ro.flipX},"flipX")},ec=function(){da({flipY:!Ro.flipY},"flipY")},_c=function(){oa("reset")},ma=function($a){var Ql=ji+$a;!Number.isInteger(Ql)||Ql<0||Ql>ki-1||(No(!1),oa($a<0?"prev":"next"),to==null||to(Ql,ji))},Ea=function($a){!bi||!qr||($a.keyCode===pt.Z.LEFT?ma(-1):$a.keyCode===pt.Z.RIGHT&&ma(1))},ha=function($a){bi&&(il!==1?da({x:0,y:0,scale:1},"doubleClick"):Ka($t+Xo,"doubleClick",$a.clientX,$a.clientY))};(0,x.useEffect)(function(){var Ga=(0,ot.Z)(window,"keydown",Ea,!1);return function(){Ga.remove()}},[bi,qr,ji]);var wa=x.createElement(rn,(0,ze.Z)({},ni,{width:yn.width,height:yn.height,imgRef:oi,className:"".concat(Wn,"-img"),alt:pr,style:{transform:"translate3d(".concat(Ro.x,"px, ").concat(Ro.y,"px, 0) scale3d(").concat(Ro.flipX?"-":"").concat(il,", ").concat(Ro.flipY?"-":"").concat(il,", 1) rotate(").concat(rl,"deg)"),transitionDuration:(!pa||go)&&"0s"},fallback:Fi,src:rr,onWheel:fs,onMouseDown:as,onDoubleClick:ha,onTouchStart:Fa,onTouchMove:gs,onTouchEnd:nl,onTouchCancel:nl})),Ja=(0,Le.Z)({url:rr,alt:pr},Kr);return x.createElement(x.Fragment,null,x.createElement(ct.Z,(0,ze.Z)({transitionName:Lo,maskTransitionName:jr,closable:!1,keyboard:!0,prefixCls:Wn,onClose:hi,visible:bi,classNames:{wrapper:yl},rootClassName:pi,getContainer:Ji},$r,{afterClose:su}),x.createElement("div",{className:"".concat(Wn,"-img-wrapper")},Jr?Jr(wa,(0,Le.Z)({transform:Ro,image:Ja},yr?{current:ji}:{})):wa)),x.createElement(Re,{visible:bi,transform:Ro,maskTransitionName:jr,closeIcon:yi,getContainer:Ji,prefixCls:Wn,rootClassName:pi,icons:Yi,countRender:ko,showSwitch:qr,showProgress:Ao,current:ji,count:ki,scale:il,minScale:eo,maxScale:Go,toolbarRender:Wr,onActive:ma,onZoomIn:ol,onZoomOut:jl,onRotateRight:Lu,onRotateLeft:Xl,onFlipX:wl,onFlipY:ec,onClose:hi,onReset:_c,zIndex:$r.zIndex!==void 0?$r.zIndex+1:void 0,image:Ja}))},pe=de,ie=ae(94480),ee=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function se(Zn){var yn=x.useState({}),Wn=(0,he.Z)(yn,2),rr=Wn[0],pr=Wn[1],Kr=x.useCallback(function(fi,_i){return pr(function(hi){return(0,Le.Z)((0,Le.Z)({},hi),{},(0,Ue.Z)({},fi,_i))}),function(){pr(function(hi){var bi=(0,Le.Z)({},hi);return delete bi[fi],bi})}},[]),Fi=x.useMemo(function(){return Zn?Zn.map(function(fi){if(typeof fi=="string")return{data:{src:fi}};var _i={};return Object.keys(fi).forEach(function(hi){["src"].concat((0,ie.Z)(ee)).includes(hi)&&(_i[hi]=fi[hi])}),{data:_i}}):Object.keys(rr).reduce(function(fi,_i){var hi=rr[_i],bi=hi.canPreview,wi=hi.data;return bi&&fi.push({data:wi,id:_i}),fi},[])},[Zn,rr]);return[Fi,Kr,!!Zn]}var le=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Be=["src"],We=function(yn){var Wn,rr=yn.previewPrefixCls,pr=rr===void 0?"rc-image-preview":rr,Kr=yn.children,Fi=yn.icons,fi=Fi===void 0?{}:Fi,_i=yn.items,hi=yn.preview,bi=yn.fallback,wi=(0,xe.Z)(hi)==="object"?hi:{},Yi=wi.visible,pi=wi.onVisibleChange,yi=wi.getContainer,Ji=wi.current,io=wi.movable,ji=wi.minScale,So=wi.maxScale,ki=wi.countRender,ko=wi.closeIcon,co=wi.onChange,Xo=wi.onTransform,wo=wi.toolbarRender,eo=wi.imageRender,bo=(0,oe.Z)(wi,le),Go=se(_i),Tn=(0,he.Z)(Go,3),Lo=Tn[0],Gi=Tn[1],jr=Tn[2],Jr=(0,Ve.Z)(0,{value:Ji}),ni=(0,he.Z)(Jr,2),Wr=ni[0],Ui=ni[1],to=(0,x.useState)(!1),$r=(0,he.Z)(to,2),oi=$r[0],yr=$r[1],qr=((Wn=Lo[Wr])===null||Wn===void 0?void 0:Wn.data)||{},Ao=qr.src,Jo=(0,oe.Z)(qr,Be),_o=(0,Ve.Z)(!!Yi,{value:Yi,onChange:function(go,Fa){pi==null||pi(go,Fa,Wr)}}),pa=(0,he.Z)(_o,2),No=pa[0],qo=pa[1],Ro=(0,x.useState)(null),oa=(0,he.Z)(Ro,2),da=oa[0],Ka=oa[1],_s=x.useCallback(function(Mo,go,Fa,gs){var nl=jr?Lo.findIndex(function(rl){return rl.data.src===go}):Lo.findIndex(function(rl){return rl.id===Mo});Ui(nl<0?0:nl),qo(!0),Ka({x:Fa,y:gs}),yr(!0)},[Lo,jr]);x.useEffect(function(){No?oi||Ui(0):yr(!1)},[No]);var js=function(go,Fa){Ui(go),co==null||co(go,Fa)},as=function(){qo(!1),Ka(null)},fs=x.useMemo(function(){return{register:Gi,onPreview:_s}},[Gi,_s]);return x.createElement(ht.Provider,{value:fs},Kr,x.createElement(pe,(0,ze.Z)({"aria-hidden":!No,movable:io,visible:No,prefixCls:pr,closeIcon:ko,onClose:as,mousePosition:da,imgCommonProps:Jo,src:Ao,fallback:bi,icons:fi,minScale:ji,maxScale:So,getContainer:yi,current:Wr,count:Lo.length,countRender:ki,onTransform:Xo,toolbarRender:wo,imageRender:eo,onChange:js},bo)))},st=We,mt=0;function gt(Zn,yn){var Wn=x.useState(function(){return mt+=1,String(mt)}),rr=(0,he.Z)(Wn,1),pr=rr[0],Kr=x.useContext(ht),Fi={data:yn,canPreview:Zn};return x.useEffect(function(){if(Kr)return Kr.register(pr,Fi)},[]),x.useEffect(function(){Kr&&Kr.register(pr,Fi)},[Zn,yn]),pr}var Et=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Lt=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],jt=function(yn){var Wn=yn.src,rr=yn.alt,pr=yn.onPreviewClose,Kr=yn.prefixCls,Fi=Kr===void 0?"rc-image":Kr,fi=yn.previewPrefixCls,_i=fi===void 0?"".concat(Fi,"-preview"):fi,hi=yn.placeholder,bi=yn.fallback,wi=yn.width,Yi=yn.height,pi=yn.style,yi=yn.preview,Ji=yi===void 0?!0:yi,io=yn.className,ji=yn.onClick,So=yn.onError,ki=yn.wrapperClassName,ko=yn.wrapperStyle,co=yn.rootClassName,Xo=(0,oe.Z)(yn,Et),wo=hi&&hi!==!0,eo=(0,xe.Z)(Ji)==="object"?Ji:{},bo=eo.src,Go=eo.visible,Tn=Go===void 0?void 0:Go,Lo=eo.onVisibleChange,Gi=Lo===void 0?pr:Lo,jr=eo.getContainer,Jr=jr===void 0?void 0:jr,ni=eo.mask,Wr=eo.maskClassName,Ui=eo.movable,to=eo.icons,$r=eo.scaleStep,oi=eo.minScale,yr=eo.maxScale,qr=eo.imageRender,Ao=eo.toolbarRender,Jo=(0,oe.Z)(eo,Lt),_o=bo!=null?bo:Wn,pa=(0,Ve.Z)(!!Tn,{value:Tn,onChange:Gi}),No=(0,he.Z)(pa,2),qo=No[0],Ro=No[1],oa=Rt({src:Wn,isCustomPlaceholder:wo,fallback:bi}),da=(0,he.Z)(oa,3),Ka=da[0],_s=da[1],js=da[2],as=(0,x.useState)(null),fs=(0,he.Z)(as,2),Mo=fs[0],go=fs[1],Fa=(0,x.useContext)(ht),gs=!!Ji,nl=function(){Ro(!1),go(null)},rl=Je()(Fi,ki,co,(0,Ue.Z)({},"".concat(Fi,"-error"),js==="error")),il=(0,x.useMemo)(function(){var jl={};return ee.forEach(function(Lu){yn[Lu]!==void 0&&(jl[Lu]=yn[Lu])}),jl},ee.map(function(jl){return yn[jl]})),yl=(0,x.useMemo)(function(){return(0,Le.Z)((0,Le.Z)({},il),{},{src:_o})},[_o,il]),su=gt(gs,yl),ol=function(Lu){var Xl=qe(Lu.target),wl=Xl.left,ec=Xl.top;Fa?Fa.onPreview(su,_o,wl,ec):(go({x:wl,y:ec}),Ro(!0)),ji==null||ji(Lu)};return x.createElement(x.Fragment,null,x.createElement("div",(0,ze.Z)({},Xo,{className:rl,onClick:gs?ol:ji,style:(0,Le.Z)({width:wi,height:Yi},ko)}),x.createElement("img",(0,ze.Z)({},il,{className:Je()("".concat(Fi,"-img"),(0,Ue.Z)({},"".concat(Fi,"-img-placeholder"),hi===!0),io),style:(0,Le.Z)({height:Yi},pi),ref:Ka},_s,{width:wi,height:Yi,onError:So})),js==="loading"&&x.createElement("div",{"aria-hidden":"true",className:"".concat(Fi,"-placeholder")},hi),ni&&gs&&x.createElement("div",{className:Je()("".concat(Fi,"-mask"),Wr),style:{display:(pi==null?void 0:pi.display)==="none"?"none":void 0}},ni)),!Fa&&gs&&x.createElement(pe,(0,ze.Z)({"aria-hidden":!qo,visible:qo,prefixCls:_i,onClose:nl,mousePosition:Mo,src:_o,alt:rr,imageInfo:{width:wi,height:Yi},fallback:bi,getContainer:Jr,icons:to,movable:Ui,scaleStep:$r,minScale:oi,maxScale:yr,rootClassName:co,imageRender:qr,imgCommonProps:il,toolbarRender:Ao},Jo)))};jt.PreviewGroup=st;var Ct=jt,lt=Ct,Vt=ae(75030),Zt=ae(86641),gn=ae(48755),sn=ae(83397),en=ae(9017),zn=ae(99267),Fn=ae(33853),Ut=ae(38819),an={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},_n=an,Vn=ae(7657),It=function(yn,Wn){return x.createElement(Vn.Z,(0,ze.Z)({},yn,{ref:Wn,icon:_n}))},Wt=x.forwardRef(It),on=Wt,vn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},Yn=vn,Lr=function(yn,Wn){return x.createElement(Vn.Z,(0,ze.Z)({},yn,{ref:Wn,icon:Yn}))},ri=x.forwardRef(Lr),zr=ri,Ir={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},tr=Ir,vr=function(yn,Wn){return x.createElement(Vn.Z,(0,ze.Z)({},yn,{ref:Wn,icon:tr}))},Qn=x.forwardRef(vr),qn=Qn,lr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},$n=lr,Br=function(yn,Wn){return x.createElement(Vn.Z,(0,ze.Z)({},yn,{ref:Wn,icon:$n}))},Sr=x.forwardRef(Br),kr=Sr,gi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},Ai=gi,di=function(yn,Wn){return x.createElement(Vn.Z,(0,ze.Z)({},yn,{ref:Wn,icon:Ai}))},Ti=x.forwardRef(di),Ei=Ti,no=ae(36237),zi=ae(17835),fr=ae(64427),Ur=ae(63356),vi=ae(34925),Gt=ae(99495),un=ae(16931),wn=ae(51636);const Mt=Zn=>({position:Zn||"absolute",inset:0}),dn=Zn=>{const{iconCls:yn,motionDurationSlow:Wn,paddingXXS:rr,marginXXS:pr,prefixCls:Kr,colorTextLightSolid:Fi}=Zn;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:Fi,background:new zi.FastColor("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${Wn}`,[`.${Kr}-mask-info`]:Object.assign(Object.assign({},Ur.vS),{padding:`0 ${(0,no.unit)(rr)}`,[yn]:{marginInlineEnd:pr,svg:{verticalAlign:"baseline"}}})}},Kt=Zn=>{const{previewCls:yn,modalMaskBg:Wn,paddingSM:rr,marginXL:pr,margin:Kr,paddingLG:Fi,previewOperationColorDisabled:fi,previewOperationHoverColor:_i,motionDurationSlow:hi,iconCls:bi,colorTextLightSolid:wi}=Zn,Yi=new zi.FastColor(Wn).setA(.1),pi=Yi.clone().setA(.2);return{[`${yn}-footer`]:{position:"fixed",bottom:pr,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:Zn.previewOperationColor,transform:"translateX(-50%)"},[`${yn}-progress`]:{marginBottom:Kr},[`${yn}-close`]:{position:"fixed",top:pr,right:{_skip_check_:!0,value:pr},display:"flex",color:wi,backgroundColor:Yi.toRgbString(),borderRadius:"50%",padding:rr,outline:0,border:0,cursor:"pointer",transition:`all ${hi}`,"&:hover":{backgroundColor:pi.toRgbString()},[`& > ${bi}`]:{fontSize:Zn.previewOperationSize}},[`${yn}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,no.unit)(Fi)}`,backgroundColor:Yi.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:rr,padding:rr,cursor:"pointer",transition:`all ${hi}`,userSelect:"none",[`&:not(${yn}-operations-operation-disabled):hover > ${bi}`]:{color:_i},"&-disabled":{color:fi,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${bi}`]:{fontSize:Zn.previewOperationSize}}}}},pn=Zn=>{const{modalMaskBg:yn,iconCls:Wn,previewOperationColorDisabled:rr,previewCls:pr,zIndexPopup:Kr,motionDurationSlow:Fi}=Zn,fi=new zi.FastColor(yn).setA(.1),_i=fi.clone().setA(.2);return{[`${pr}-switch-left, ${pr}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Zn.calc(Kr).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:Zn.imagePreviewSwitchSize,height:Zn.imagePreviewSwitchSize,marginTop:Zn.calc(Zn.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:Zn.previewOperationColor,background:fi.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${Fi}`,userSelect:"none","&:hover":{background:_i.toRgbString()},"&-disabled":{"&, &:hover":{color:rr,background:"transparent",cursor:"not-allowed",[`> ${Wn}`]:{cursor:"not-allowed"}}},[`> ${Wn}`]:{fontSize:Zn.previewOperationSize}},[`${pr}-switch-left`]:{insetInlineStart:Zn.marginSM},[`${pr}-switch-right`]:{insetInlineEnd:Zn.marginSM}}},Nn=Zn=>{const{motionEaseOut:yn,previewCls:Wn,motionDurationSlow:rr,componentCls:pr}=Zn;return[{[`${pr}-preview-root`]:{[Wn]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${Wn}-body`]:Object.assign(Object.assign({},Mt()),{overflow:"hidden"}),[`${Wn}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${rr} ${yn} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Mt()),{transition:`transform ${rr} ${yn} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${Wn}-moving`]:{[`${Wn}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${pr}-preview-root`]:{[`${Wn}-wrap`]:{zIndex:Zn.zIndexPopup}}},{[`${pr}-preview-operations-wrapper`]:{position:"fixed",zIndex:Zn.calc(Zn.zIndexPopup).add(1).equal()},"&":[Kt(Zn),pn(Zn)]}]},Pr=Zn=>{const{componentCls:yn}=Zn;return{[yn]:{position:"relative",display:"inline-block",[`${yn}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${yn}-img-placeholder`]:{backgroundColor:Zn.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${yn}-mask`]:Object.assign({},dn(Zn)),[`${yn}-mask:hover`]:{opacity:1},[`${yn}-placeholder`]:Object.assign({},Mt())}}},Yr=Zn=>{const{previewCls:yn}=Zn;return{[`${yn}-root`]:(0,vi._y)(Zn,"zoom"),"&":(0,Gt.J$)(Zn,!0)}},ci=Zn=>({zIndexPopup:Zn.zIndexPopupBase+80,previewOperationColor:new zi.FastColor(Zn.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new zi.FastColor(Zn.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new zi.FastColor(Zn.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:Zn.fontSizeIcon*1.5});var or=(0,un.I$)("Image",Zn=>{const yn=`${Zn.componentCls}-preview`,Wn=(0,wn.mergeToken)(Zn,{previewCls:yn,modalMaskBg:new zi.FastColor("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:Zn.controlHeightLG});return[Pr(Wn),Nn(Wn),(0,fr.QA)((0,wn.mergeToken)(Wn,{componentCls:yn})),Yr(Wn)]},ci),cr=function(Zn,yn){var Wn={};for(var rr in Zn)Object.prototype.hasOwnProperty.call(Zn,rr)&&yn.indexOf(rr)<0&&(Wn[rr]=Zn[rr]);if(Zn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pr=0,rr=Object.getOwnPropertySymbols(Zn);pr<rr.length;pr++)yn.indexOf(rr[pr])<0&&Object.prototype.propertyIsEnumerable.call(Zn,rr[pr])&&(Wn[rr[pr]]=Zn[rr[pr]]);return Wn};const sr={rotateLeft:x.createElement(on,null),rotateRight:x.createElement(zr,null),zoomIn:x.createElement(kr,null),zoomOut:x.createElement(Ei,null),close:x.createElement(zn.Z,null),left:x.createElement(Fn.Z,null),right:x.createElement(Ut.Z,null),flipX:x.createElement(qn,null),flipY:x.createElement(qn,{rotate:90})};var nr=Zn=>{var{previewPrefixCls:yn,preview:Wn}=Zn,rr=cr(Zn,["previewPrefixCls","preview"]);const{getPrefixCls:pr}=x.useContext(gn.E_),Kr=pr("image",yn),Fi=`${Kr}-preview`,fi=pr(),_i=(0,sn.Z)(Kr),[hi,bi,wi]=or(Kr,_i),[Yi]=(0,Vt.Cn)("ImagePreview",typeof Wn=="object"?Wn.zIndex:void 0),pi=x.useMemo(()=>{var yi;if(Wn===!1)return Wn;const Ji=typeof Wn=="object"?Wn:{},io=Je()(bi,wi,_i,(yi=Ji.rootClassName)!==null&&yi!==void 0?yi:"");return Object.assign(Object.assign({},Ji),{transitionName:(0,Zt.m)(fi,"zoom",Ji.transitionName),maskTransitionName:(0,Zt.m)(fi,"fade",Ji.maskTransitionName),rootClassName:io,zIndex:Yi})},[Wn]);return hi(x.createElement(lt.PreviewGroup,Object.assign({preview:pi,previewPrefixCls:Fi,icons:sr},rr)))},Rn=function(Zn,yn){var Wn={};for(var rr in Zn)Object.prototype.hasOwnProperty.call(Zn,rr)&&yn.indexOf(rr)<0&&(Wn[rr]=Zn[rr]);if(Zn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pr=0,rr=Object.getOwnPropertySymbols(Zn);pr<rr.length;pr++)yn.indexOf(rr[pr])<0&&Object.prototype.propertyIsEnumerable.call(Zn,rr[pr])&&(Wn[rr[pr]]=Zn[rr[pr]]);return Wn};const Ar=Zn=>{const{prefixCls:yn,preview:Wn,className:rr,rootClassName:pr,style:Kr}=Zn,Fi=Rn(Zn,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:fi,getPopupContainer:_i,className:hi,style:bi,preview:wi}=(0,gn.dj)("image"),[Yi]=(0,en.Z)("Image"),pi=fi("image",yn),yi=fi(),Ji=(0,sn.Z)(pi),[io,ji,So]=or(pi,Ji),ki=Je()(pr,ji,So,Ji),ko=Je()(rr,ji,hi),[co]=(0,Vt.Cn)("ImagePreview",typeof Wn=="object"?Wn.zIndex:void 0),Xo=x.useMemo(()=>{if(Wn===!1)return Wn;const eo=typeof Wn=="object"?Wn:{},{getContainer:bo,closeIcon:Go,rootClassName:Tn}=eo,Lo=Rn(eo,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:x.createElement("div",{className:`${pi}-mask-info`},x.createElement(dt.Z,null),Yi==null?void 0:Yi.preview),icons:sr},Lo),{rootClassName:Je()(ki,Tn),getContainer:bo!=null?bo:_i,transitionName:(0,Zt.m)(yi,"zoom",eo.transitionName),maskTransitionName:(0,Zt.m)(yi,"fade",eo.maskTransitionName),zIndex:co,closeIcon:Go!=null?Go:wi==null?void 0:wi.closeIcon})},[Wn,Yi,wi==null?void 0:wi.closeIcon]),wo=Object.assign(Object.assign({},bi),Kr);return io(x.createElement(lt,Object.assign({prefixCls:pi,preview:Xo,rootClassName:ki,className:ko,style:wo},Fi)))};Ar.PreviewGroup=nr;var Bi=Ar},4875:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return Vn}});var x=ae(59301),dt=ae(84105),Ie=ae(87395),Je=ae(92310),ze=ae.n(Je),Le=ae(54476),Ue=ae(20068),he=ae(76190),xe=ae(42978),oe=ae(75931),Oe=ae(67732),ve=ae(83652);function Me(){return typeof BigInt=="function"}function Se(It){return!It&&It!==0&&!Number.isNaN(It)||!String(It).trim()}function Te(It){var Wt=It.trim(),on=Wt.startsWith("-");on&&(Wt=Wt.slice(1)),Wt=Wt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Wt.startsWith(".")&&(Wt="0".concat(Wt));var vn=Wt||"0",Yn=vn.split("."),Lr=Yn[0]||"0",ri=Yn[1]||"0";Lr==="0"&&ri==="0"&&(on=!1);var zr=on?"-":"";return{negative:on,negativeStr:zr,trimStr:vn,integerStr:Lr,decimalStr:ri,fullStr:"".concat(zr).concat(vn)}}function we(It){var Wt=String(It);return!Number.isNaN(Number(Wt))&&Wt.includes("e")}function Ce(It){var Wt=String(It);if(we(It)){var on=Number(Wt.slice(Wt.indexOf("e-")+2)),vn=Wt.match(/\.(\d+)/);return vn!=null&&vn[1]&&(on+=vn[1].length),on}return Wt.includes(".")&&ke(Wt)?Wt.length-Wt.indexOf(".")-1:0}function Ee(It){var Wt=String(It);if(we(It)){if(It>Number.MAX_SAFE_INTEGER)return String(Me()?BigInt(It).toString():Number.MAX_SAFE_INTEGER);if(It<Number.MIN_SAFE_INTEGER)return String(Me()?BigInt(It).toString():Number.MIN_SAFE_INTEGER);Wt=It.toFixed(Ce(Wt))}return Te(Wt).fullStr}function ke(It){return typeof It=="number"?!Number.isNaN(It):It?/^\s*-?\d+(\.\d+)?\s*$/.test(It)||/^\s*-?\d+\.\s*$/.test(It)||/^\s*-?\.\d+\s*$/.test(It):!1}var Ke=function(){function It(Wt){if((0,Oe.Z)(this,It),(0,Ue.Z)(this,"origin",""),(0,Ue.Z)(this,"negative",void 0),(0,Ue.Z)(this,"integer",void 0),(0,Ue.Z)(this,"decimal",void 0),(0,Ue.Z)(this,"decimalLen",void 0),(0,Ue.Z)(this,"empty",void 0),(0,Ue.Z)(this,"nan",void 0),Se(Wt)){this.empty=!0;return}if(this.origin=String(Wt),Wt==="-"||Number.isNaN(Wt)){this.nan=!0;return}var on=Wt;if(we(on)&&(on=Number(on)),on=typeof on=="string"?on:Ee(on),ke(on)){var vn=Te(on);this.negative=vn.negative;var Yn=vn.trimStr.split(".");this.integer=BigInt(Yn[0]);var Lr=Yn[1]||"0";this.decimal=BigInt(Lr),this.decimalLen=Lr.length}else this.nan=!0}return(0,ve.Z)(It,[{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(on){var vn="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(on,"0"));return BigInt(vn)}},{key:"negate",value:function(){var on=new It(this.toString());return on.negative=!on.negative,on}},{key:"cal",value:function(on,vn,Yn){var Lr=Math.max(this.getDecimalStr().length,on.getDecimalStr().length),ri=this.alignDecimal(Lr),zr=on.alignDecimal(Lr),Ir=vn(ri,zr).toString(),tr=Yn(Lr),vr=Te(Ir),Qn=vr.negativeStr,qn=vr.trimStr,lr="".concat(Qn).concat(qn.padStart(tr+1,"0"));return new It("".concat(lr.slice(0,-tr),".").concat(lr.slice(-tr)))}},{key:"add",value:function(on){if(this.isInvalidate())return new It(on);var vn=new It(on);return vn.isInvalidate()?this:this.cal(vn,function(Yn,Lr){return Yn+Lr},function(Yn){return Yn})}},{key:"multi",value:function(on){var vn=new It(on);return this.isInvalidate()||vn.isInvalidate()?new It(NaN):this.cal(vn,function(Yn,Lr){return Yn*Lr},function(Yn){return Yn*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(on){return this.toString()===(on==null?void 0:on.toString())}},{key:"lessEquals",value:function(on){return this.add(on.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var on=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return on?this.isInvalidate()?"":Te("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),It}(),Qe=function(){function It(Wt){if((0,Oe.Z)(this,It),(0,Ue.Z)(this,"origin",""),(0,Ue.Z)(this,"number",void 0),(0,Ue.Z)(this,"empty",void 0),Se(Wt)){this.empty=!0;return}this.origin=String(Wt),this.number=Number(Wt)}return(0,ve.Z)(It,[{key:"negate",value:function(){return new It(-this.toNumber())}},{key:"add",value:function(on){if(this.isInvalidate())return new It(on);var vn=Number(on);if(Number.isNaN(vn))return this;var Yn=this.number+vn;if(Yn>Number.MAX_SAFE_INTEGER)return new It(Number.MAX_SAFE_INTEGER);if(Yn<Number.MIN_SAFE_INTEGER)return new It(Number.MIN_SAFE_INTEGER);var Lr=Math.max(Ce(this.number),Ce(vn));return new It(Yn.toFixed(Lr))}},{key:"multi",value:function(on){var vn=Number(on);if(this.isInvalidate()||Number.isNaN(vn))return new It(NaN);var Yn=this.number*vn;if(Yn>Number.MAX_SAFE_INTEGER)return new It(Number.MAX_SAFE_INTEGER);if(Yn<Number.MIN_SAFE_INTEGER)return new It(Number.MIN_SAFE_INTEGER);var Lr=Math.max(Ce(this.number),Ce(vn));return new It(Yn.toFixed(Lr))}},{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(on){return this.toNumber()===(on==null?void 0:on.toNumber())}},{key:"lessEquals",value:function(on){return this.add(on.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var on=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return on?this.isInvalidate()?"":Ee(this.number):this.origin}}]),It}();function je(It){return Me()?new Ke(It):new Qe(It)}function qe(It,Wt,on){var vn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(It==="")return"";var Yn=Te(It),Lr=Yn.negativeStr,ri=Yn.integerStr,zr=Yn.decimalStr,Ir="".concat(Wt).concat(zr),tr="".concat(Lr).concat(ri);if(on>=0){var vr=Number(zr[on]);if(vr>=5&&!vn){var Qn=je(It).add("".concat(Lr,"0.").concat("0".repeat(on)).concat(10-vr));return qe(Qn.toString(),Wt,on,vn)}return on===0?tr:"".concat(tr).concat(Wt).concat(zr.padEnd(on,"0").slice(0,on))}return Ir===".0"?tr:"".concat(tr).concat(Ir)}var Ve=je,ct=ae(36901),ot=ae(34280);function pt(It,Wt){return typeof Proxy!="undefined"&&It?new Proxy(It,{get:function(vn,Yn){if(Wt[Yn])return Wt[Yn];var Lr=vn[Yn];return typeof Lr=="function"?Lr.bind(vn):Lr}}):It}var bt=ae(8654),He=ae(48736);function ht(It,Wt){var on=(0,x.useRef)(null);function vn(){try{var Lr=It.selectionStart,ri=It.selectionEnd,zr=It.value,Ir=zr.substring(0,Lr),tr=zr.substring(ri);on.current={start:Lr,end:ri,value:zr,beforeTxt:Ir,afterTxt:tr}}catch(vr){}}function Yn(){if(It&&on.current&&Wt)try{var Lr=It.value,ri=on.current,zr=ri.beforeTxt,Ir=ri.afterTxt,tr=ri.start,vr=Lr.length;if(Lr.startsWith(zr))vr=zr.length;else if(Lr.endsWith(Ir))vr=Lr.length-on.current.afterTxt.length;else{var Qn=zr[tr-1],qn=Lr.indexOf(Qn,tr-1);qn!==-1&&(vr=qn+1)}It.setSelectionRange(vr,vr)}catch(lr){(0,He.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(lr.message))}}return[vn,Yn]}var _e=ae(49658),Re=function(){var Wt=(0,x.useState)(!1),on=(0,xe.Z)(Wt,2),vn=on[0],Yn=on[1];return(0,ot.Z)(function(){Yn((0,_e.Z)())},[]),vn},Nt=Re,it=ae(16089),at=200,Bt=600;function Ze(It){var Wt=It.prefixCls,on=It.upNode,vn=It.downNode,Yn=It.upDisabled,Lr=It.downDisabled,ri=It.onStep,zr=x.useRef(),Ir=x.useRef([]),tr=x.useRef();tr.current=ri;var vr=function(){clearTimeout(zr.current)},Qn=function(Ai,di){Ai.preventDefault(),vr(),tr.current(di);function Ti(){tr.current(di),zr.current=setTimeout(Ti,at)}zr.current=setTimeout(Ti,Bt)};x.useEffect(function(){return function(){vr(),Ir.current.forEach(function(gi){return it.Z.cancel(gi)})}},[]);var qn=Nt();if(qn)return null;var lr="".concat(Wt,"-handler"),$n=ze()(lr,"".concat(lr,"-up"),(0,Ue.Z)({},"".concat(lr,"-up-disabled"),Yn)),Br=ze()(lr,"".concat(lr,"-down"),(0,Ue.Z)({},"".concat(lr,"-down-disabled"),Lr)),Sr=function(){return Ir.current.push((0,it.Z)(vr))},kr={unselectable:"on",role:"button",onMouseUp:Sr,onMouseLeave:Sr};return x.createElement("div",{className:"".concat(lr,"-wrap")},x.createElement("span",(0,Le.Z)({},kr,{onMouseDown:function(Ai){Qn(Ai,!0)},"aria-label":"Increase Value","aria-disabled":Yn,className:$n}),on||x.createElement("span",{unselectable:"on",className:"".concat(Wt,"-handler-up-inner")})),x.createElement("span",(0,Le.Z)({},kr,{onMouseDown:function(Ai){Qn(Ai,!1)},"aria-label":"Decrease Value","aria-disabled":Lr,className:Br}),vn||x.createElement("span",{unselectable:"on",className:"".concat(Wt,"-handler-down-inner")})))}function De(It){var Wt=typeof It=="number"?Ee(It):Te(It).fullStr,on=Wt.includes(".");return on?Te(Wt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:It+"0"}var ut=ae(30292),$t=function(){var It=(0,x.useRef)(0),Wt=function(){it.Z.cancel(It.current)};return(0,x.useEffect)(function(){return Wt},[]),function(on){Wt(),It.current=(0,it.Z)(function(){on()})}},zt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],tt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Ot=function(Wt,on){return Wt||on.isEmpty()?on.toString():on.toNumber()},Rt=function(Wt){var on=Ve(Wt);return on.isInvalidate()?null:on},fn=x.forwardRef(function(It,Wt){var on=It.prefixCls,vn=It.className,Yn=It.style,Lr=It.min,ri=It.max,zr=It.step,Ir=zr===void 0?1:zr,tr=It.defaultValue,vr=It.value,Qn=It.disabled,qn=It.readOnly,lr=It.upHandler,$n=It.downHandler,Br=It.keyboard,Sr=It.changeOnWheel,kr=Sr===void 0?!1:Sr,gi=It.controls,Ai=gi===void 0?!0:gi,di=It.classNames,Ti=It.stringMode,Ei=It.parser,no=It.formatter,zi=It.precision,fr=It.decimalSeparator,Ur=It.onChange,vi=It.onInput,Gt=It.onPressEnter,un=It.onStep,wn=It.changeOnBlur,Mt=wn===void 0?!0:wn,dn=It.domRef,Kt=(0,oe.Z)(It,zt),pn="".concat(on,"-input"),Nn=x.useRef(null),Pr=x.useState(!1),Yr=(0,xe.Z)(Pr,2),ci=Yr[0],or=Yr[1],cr=x.useRef(!1),sr=x.useRef(!1),ti=x.useRef(!1),nr=x.useState(function(){return Ve(vr!=null?vr:tr)}),Rn=(0,xe.Z)(nr,2),Ar=Rn[0],Bi=Rn[1];function Zn(ni){vr===void 0&&Bi(ni)}var yn=x.useCallback(function(ni,Wr){if(!Wr)return zi>=0?zi:Math.max(Ce(ni),Ce(Ir))},[zi,Ir]),Wn=x.useCallback(function(ni){var Wr=String(ni);if(Ei)return Ei(Wr);var Ui=Wr;return fr&&(Ui=Ui.replace(fr,".")),Ui.replace(/[^\w.-]+/g,"")},[Ei,fr]),rr=x.useRef(""),pr=x.useCallback(function(ni,Wr){if(no)return no(ni,{userTyping:Wr,input:String(rr.current)});var Ui=typeof ni=="number"?Ee(ni):ni;if(!Wr){var to=yn(Ui,Wr);if(ke(Ui)&&(fr||to>=0)){var $r=fr||".";Ui=qe(Ui,$r,to)}}return Ui},[no,yn,fr]),Kr=x.useState(function(){var ni=tr!=null?tr:vr;return Ar.isInvalidate()&&["string","number"].includes((0,he.Z)(ni))?Number.isNaN(ni)?"":ni:pr(Ar.toString(),!1)}),Fi=(0,xe.Z)(Kr,2),fi=Fi[0],_i=Fi[1];rr.current=fi;function hi(ni,Wr){_i(pr(ni.isInvalidate()?ni.toString(!1):ni.toString(!Wr),Wr))}var bi=x.useMemo(function(){return Rt(ri)},[ri,zi]),wi=x.useMemo(function(){return Rt(Lr)},[Lr,zi]),Yi=x.useMemo(function(){return!bi||!Ar||Ar.isInvalidate()?!1:bi.lessEquals(Ar)},[bi,Ar]),pi=x.useMemo(function(){return!wi||!Ar||Ar.isInvalidate()?!1:Ar.lessEquals(wi)},[wi,Ar]),yi=ht(Nn.current,ci),Ji=(0,xe.Z)(yi,2),io=Ji[0],ji=Ji[1],So=function(Wr){return bi&&!Wr.lessEquals(bi)?bi:wi&&!wi.lessEquals(Wr)?wi:null},ki=function(Wr){return!So(Wr)},ko=function(Wr,Ui){var to=Wr,$r=ki(to)||to.isEmpty();if(!to.isEmpty()&&!Ui&&(to=So(to)||to,$r=!0),!qn&&!Qn&&$r){var oi=to.toString(),yr=yn(oi,Ui);return yr>=0&&(to=Ve(qe(oi,".",yr)),ki(to)||(to=Ve(qe(oi,".",yr,!0)))),to.equals(Ar)||(Zn(to),Ur==null||Ur(to.isEmpty()?null:Ot(Ti,to)),vr===void 0&&hi(to,Ui)),to}return Ar},co=$t(),Xo=function ni(Wr){if(io(),rr.current=Wr,_i(Wr),!sr.current){var Ui=Wn(Wr),to=Ve(Ui);to.isNaN()||ko(to,!0)}vi==null||vi(Wr),co(function(){var $r=Wr;Ei||($r=Wr.replace(/。/g,".")),$r!==Wr&&ni($r)})},wo=function(){sr.current=!0},eo=function(){sr.current=!1,Xo(Nn.current.value)},bo=function(Wr){Xo(Wr.target.value)},Go=function(Wr){var Ui;if(!(Wr&&Yi||!Wr&&pi)){cr.current=!1;var to=Ve(ti.current?De(Ir):Ir);Wr||(to=to.negate());var $r=(Ar||Ve(0)).add(to.toString()),oi=ko($r,!1);un==null||un(Ot(Ti,oi),{offset:ti.current?De(Ir):Ir,type:Wr?"up":"down"}),(Ui=Nn.current)===null||Ui===void 0||Ui.focus()}},Tn=function(Wr){var Ui=Ve(Wn(fi)),to;Ui.isNaN()?to=ko(Ar,Wr):to=ko(Ui,Wr),vr!==void 0?hi(Ar,!1):to.isNaN()||hi(to,!1)},Lo=function(){cr.current=!0},Gi=function(Wr){var Ui=Wr.key,to=Wr.shiftKey;cr.current=!0,ti.current=to,Ui==="Enter"&&(sr.current||(cr.current=!1),Tn(!1),Gt==null||Gt(Wr)),Br!==!1&&!sr.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ui)&&(Go(Ui==="Up"||Ui==="ArrowUp"),Wr.preventDefault())},jr=function(){cr.current=!1,ti.current=!1};x.useEffect(function(){if(kr&&ci){var ni=function(to){Go(to.deltaY<0),to.preventDefault()},Wr=Nn.current;if(Wr)return Wr.addEventListener("wheel",ni,{passive:!1}),function(){return Wr.removeEventListener("wheel",ni)}}});var Jr=function(){Mt&&Tn(!1),or(!1),cr.current=!1};return(0,ot.o)(function(){Ar.isInvalidate()||hi(Ar,!1)},[zi,no]),(0,ot.o)(function(){var ni=Ve(vr);Bi(ni);var Wr=Ve(Wn(fi));(!ni.equals(Wr)||!cr.current||no)&&hi(ni,cr.current)},[vr]),(0,ot.o)(function(){no&&ji()},[fi]),x.createElement("div",{ref:dn,className:ze()(on,vn,(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},"".concat(on,"-focused"),ci),"".concat(on,"-disabled"),Qn),"".concat(on,"-readonly"),qn),"".concat(on,"-not-a-number"),Ar.isNaN()),"".concat(on,"-out-of-range"),!Ar.isInvalidate()&&!ki(Ar))),style:Yn,onFocus:function(){or(!0)},onBlur:Jr,onKeyDown:Gi,onKeyUp:jr,onCompositionStart:wo,onCompositionEnd:eo,onBeforeInput:Lo},Ai&&x.createElement(Ze,{prefixCls:on,upNode:lr,downNode:$n,upDisabled:Yi,downDisabled:pi,onStep:Go}),x.createElement("div",{className:"".concat(pn,"-wrap")},x.createElement("input",(0,Le.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Lr,"aria-valuemax":ri,"aria-valuenow":Ar.isInvalidate()?null:Ar.toString(),step:Ir},Kt,{ref:(0,bt.sQ)(Nn,Wt),className:pn,value:fi,onChange:bo,disabled:Qn,readOnly:qn}))))}),Tt=x.forwardRef(function(It,Wt){var on=It.disabled,vn=It.style,Yn=It.prefixCls,Lr=Yn===void 0?"rc-input-number":Yn,ri=It.value,zr=It.prefix,Ir=It.suffix,tr=It.addonBefore,vr=It.addonAfter,Qn=It.className,qn=It.classNames,lr=(0,oe.Z)(It,tt),$n=x.useRef(null),Br=x.useRef(null),Sr=x.useRef(null),kr=function(Ai){Sr.current&&(0,ut.nH)(Sr.current,Ai)};return x.useImperativeHandle(Wt,function(){return pt(Sr.current,{focus:kr,nativeElement:$n.current.nativeElement||Br.current})}),x.createElement(ct.BaseInput,{className:Qn,triggerFocus:kr,prefixCls:Lr,value:ri,disabled:on,style:vn,prefix:zr,suffix:Ir,addonAfter:vr,addonBefore:tr,classNames:qn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:$n},x.createElement(fn,(0,Le.Z)({prefixCls:Lr,disabled:on,ref:Sr,domRef:Br,className:qn==null?void 0:qn.input},lr)))}),mn=Tt,Dt=mn,En=ae(62487),rn=ae(82855),de=ae(48755),pe=ae(60840),ie=ae(2171),ee=ae(83397),se=ae(31756),le=ae(56553),Be=ae(24971),We=ae(70045),st=ae(36237),mt=ae(53075),gt=ae(64910),Et=ae(39082),Lt=ae(63356),jt=ae(56119),Ct=ae(16931),lt=ae(51636),Vt=ae(17835);const Zt=It=>{var Wt;const on=(Wt=It.handleVisible)!==null&&Wt!==void 0?Wt:"auto",vn=It.controlHeightSM-It.lineWidth*2;return Object.assign(Object.assign({},(0,gt.T)(It)),{controlWidth:90,handleWidth:vn,handleFontSize:It.fontSize/2,handleVisible:on,handleActiveBg:It.colorFillAlter,handleBg:It.colorBgContainer,filledHandleBg:new Vt.FastColor(It.colorFillSecondary).onBackground(It.colorBgContainer).toHexString(),handleHoverColor:It.colorPrimary,handleBorderColor:It.colorBorder,handleOpacity:on===!0?1:0,handleVisibleWidth:on===!0?vn:0})},gn=(It,Wt)=>{let{componentCls:on,borderRadiusSM:vn,borderRadiusLG:Yn}=It;const Lr=Wt==="lg"?Yn:vn;return{[`&-${Wt}`]:{[`${on}-handler-wrap`]:{borderStartEndRadius:Lr,borderEndEndRadius:Lr},[`${on}-handler-up`]:{borderStartEndRadius:Lr},[`${on}-handler-down`]:{borderEndEndRadius:Lr}}}},sn=It=>{const{componentCls:Wt,lineWidth:on,lineType:vn,borderRadius:Yn,inputFontSizeSM:Lr,inputFontSizeLG:ri,controlHeightLG:zr,controlHeightSM:Ir,colorError:tr,paddingInlineSM:vr,paddingBlockSM:Qn,paddingBlockLG:qn,paddingInlineLG:lr,colorTextDescription:$n,motionDurationMid:Br,handleHoverColor:Sr,handleOpacity:kr,paddingInline:gi,paddingBlock:Ai,handleBg:di,handleActiveBg:Ti,colorTextDisabled:Ei,borderRadiusSM:no,borderRadiusLG:zi,controlWidth:fr,handleBorderColor:Ur,filledHandleBg:vi,lineHeightLG:Gt,calc:un}=It;return[{[Wt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Lt.Wf)(It)),(0,mt.ik)(It)),{display:"inline-block",width:fr,margin:0,padding:0,borderRadius:Yn}),(0,Et.qG)(It,{[`${Wt}-handler-wrap`]:{background:di,[`${Wt}-handler-down`]:{borderBlockStart:`${(0,st.unit)(on)} ${vn} ${Ur}`}}})),(0,Et.H8)(It,{[`${Wt}-handler-wrap`]:{background:vi,[`${Wt}-handler-down`]:{borderBlockStart:`${(0,st.unit)(on)} ${vn} ${Ur}`}},"&:focus-within":{[`${Wt}-handler-wrap`]:{background:di}}})),(0,Et.vc)(It,{[`${Wt}-handler-wrap`]:{background:di,[`${Wt}-handler-down`]:{borderBlockStart:`${(0,st.unit)(on)} ${vn} ${Ur}`}}})),(0,Et.Mu)(It)),{"&-rtl":{direction:"rtl",[`${Wt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:ri,lineHeight:Gt,borderRadius:zi,[`input${Wt}-input`]:{height:un(zr).sub(un(on).mul(2)).equal(),padding:`${(0,st.unit)(qn)} ${(0,st.unit)(lr)}`}},"&-sm":{padding:0,fontSize:Lr,borderRadius:no,[`input${Wt}-input`]:{height:un(Ir).sub(un(on).mul(2)).equal(),padding:`${(0,st.unit)(Qn)} ${(0,st.unit)(vr)}`}},"&-out-of-range":{[`${Wt}-input-wrap`]:{input:{color:tr}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Lt.Wf)(It)),(0,mt.s7)(It)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Wt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Wt}-group-addon`]:{borderRadius:zi,fontSize:It.fontSizeLG}},"&-sm":{[`${Wt}-group-addon`]:{borderRadius:no}}},(0,Et.ir)(It)),(0,Et.S5)(It)),{[`&:not(${Wt}-compact-first-item):not(${Wt}-compact-last-item)${Wt}-compact-item`]:{[`${Wt}, ${Wt}-group-addon`]:{borderRadius:0}},[`&:not(${Wt}-compact-last-item)${Wt}-compact-first-item`]:{[`${Wt}, ${Wt}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Wt}-compact-first-item)${Wt}-compact-last-item`]:{[`${Wt}, ${Wt}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Wt}-input`]:{cursor:"not-allowed"},[Wt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Lt.Wf)(It)),{width:"100%",padding:`${(0,st.unit)(Ai)} ${(0,st.unit)(gi)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Yn,outline:0,transition:`all ${Br} linear`,appearance:"textfield",fontSize:"inherit"}),(0,mt.nz)(It.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${Wt}-handler-wrap, &-focused ${Wt}-handler-wrap`]:{width:It.handleWidth,opacity:1}})},{[Wt]:Object.assign(Object.assign(Object.assign({[`${Wt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:It.handleVisibleWidth,opacity:kr,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Yn,borderEndEndRadius:Yn,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${Br}`,overflow:"hidden",[`${Wt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${Wt}-handler-up-inner,
${Wt}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:It.handleFontSize}}},[`${Wt}-handler`]:{height:"50%",overflow:"hidden",color:$n,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,st.unit)(on)} ${vn} ${Ur}`,transition:`all ${Br} linear`,"&:active":{background:Ti},"&:hover":{height:"60%",[`
${Wt}-handler-up-inner,
${Wt}-handler-down-inner
`]:{color:Sr}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Lt.Ro)()),{color:$n,transition:`all ${Br} linear`,userSelect:"none"})},[`${Wt}-handler-up`]:{borderStartEndRadius:Yn},[`${Wt}-handler-down`]:{borderEndEndRadius:Yn}},gn(It,"lg")),gn(It,"sm")),{"&-disabled, &-readonly":{[`${Wt}-handler-wrap`]:{display:"none"},[`${Wt}-input`]:{color:"inherit"}},[`
${Wt}-handler-up-disabled,
${Wt}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${Wt}-handler-up-disabled:hover &-handler-up-inner,
${Wt}-handler-down-disabled:hover &-handler-down-inner
`]:{color:Ei}})}]},en=It=>{const{componentCls:Wt,paddingBlock:on,paddingInline:vn,inputAffixPadding:Yn,controlWidth:Lr,borderRadiusLG:ri,borderRadiusSM:zr,paddingInlineLG:Ir,paddingInlineSM:tr,paddingBlockLG:vr,paddingBlockSM:Qn,motionDurationMid:qn}=It;return{[`${Wt}-affix-wrapper`]:Object.assign(Object.assign({[`input${Wt}-input`]:{padding:`${(0,st.unit)(on)} 0`}},(0,mt.ik)(It)),{position:"relative",display:"inline-flex",alignItems:"center",width:Lr,padding:0,paddingInlineStart:vn,"&-lg":{borderRadius:ri,paddingInlineStart:Ir,[`input${Wt}-input`]:{padding:`${(0,st.unit)(vr)} 0`}},"&-sm":{borderRadius:zr,paddingInlineStart:tr,[`input${Wt}-input`]:{padding:`${(0,st.unit)(Qn)} 0`}},[`&:not(${Wt}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Wt}-disabled`]:{background:"transparent"},[`> div${Wt}`]:{width:"100%",border:"none",outline:"none",[`&${Wt}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Wt}-handler-wrap`]:{zIndex:2},[Wt]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Yn},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:vn,marginInlineStart:Yn,transition:`margin ${qn}`}},[`&:hover ${Wt}-handler-wrap, &-focused ${Wt}-handler-wrap`]:{width:It.handleWidth,opacity:1},[`&:not(${Wt}-affix-wrapper-without-controls):hover ${Wt}-suffix`]:{marginInlineEnd:It.calc(It.handleWidth).add(vn).equal()}})}};var zn=(0,Ct.I$)("InputNumber",It=>{const Wt=(0,lt.mergeToken)(It,(0,gt.e)(It));return[sn(Wt),en(Wt),(0,jt.c)(Wt)]},Zt,{unitless:{handleOpacity:!0}}),Fn=function(It,Wt){var on={};for(var vn in It)Object.prototype.hasOwnProperty.call(It,vn)&&Wt.indexOf(vn)<0&&(on[vn]=It[vn]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yn=0,vn=Object.getOwnPropertySymbols(It);Yn<vn.length;Yn++)Wt.indexOf(vn[Yn])<0&&Object.prototype.propertyIsEnumerable.call(It,vn[Yn])&&(on[vn[Yn]]=It[vn[Yn]]);return on};const Ut=x.forwardRef((It,Wt)=>{const{getPrefixCls:on,direction:vn}=x.useContext(de.E_),Yn=x.useRef(null);x.useImperativeHandle(Wt,()=>Yn.current);const{className:Lr,rootClassName:ri,size:zr,disabled:Ir,prefixCls:tr,addonBefore:vr,addonAfter:Qn,prefix:qn,suffix:lr,bordered:$n,readOnly:Br,status:Sr,controls:kr,variant:gi}=It,Ai=Fn(It,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),di=on("input-number",tr),Ti=(0,ee.Z)(di),[Ei,no,zi]=zn(di,Ti),{compactSize:fr,compactItemClassnames:Ur}=(0,We.ri)(di,vn);let vi=x.createElement(Ie.Z,{className:`${di}-handler-up-inner`}),Gt=x.createElement(dt.Z,{className:`${di}-handler-down-inner`});const un=typeof kr=="boolean"?kr:void 0;typeof kr=="object"&&(vi=typeof kr.upIcon=="undefined"?vi:x.createElement("span",{className:`${di}-handler-up-inner`},kr.upIcon),Gt=typeof kr.downIcon=="undefined"?Gt:x.createElement("span",{className:`${di}-handler-down-inner`},kr.downIcon));const{hasFeedback:wn,status:Mt,isFormItemInput:dn,feedbackIcon:Kt}=x.useContext(le.aM),pn=(0,rn.F)(Mt,Sr),Nn=(0,se.Z)(Rn=>{var Ar;return(Ar=zr!=null?zr:fr)!==null&&Ar!==void 0?Ar:Rn}),Pr=x.useContext(ie.Z),Yr=Ir!=null?Ir:Pr,[ci,or]=(0,Be.Z)("inputNumber",gi,$n),cr=wn&&x.createElement(x.Fragment,null,Kt),sr=ze()({[`${di}-lg`]:Nn==="large",[`${di}-sm`]:Nn==="small",[`${di}-rtl`]:vn==="rtl",[`${di}-in-form-item`]:dn},no),ti=`${di}-group`,nr=x.createElement(Dt,Object.assign({ref:Yn,disabled:Yr,className:ze()(zi,Ti,Lr,ri,Ur),upHandler:vi,downHandler:Gt,prefixCls:di,readOnly:Br,controls:un,prefix:qn,suffix:cr||lr,addonBefore:vr&&x.createElement(En.Z,{form:!0,space:!0},vr),addonAfter:Qn&&x.createElement(En.Z,{form:!0,space:!0},Qn),classNames:{input:sr,variant:ze()({[`${di}-${ci}`]:or},(0,rn.Z)(di,pn,wn)),affixWrapper:ze()({[`${di}-affix-wrapper-sm`]:Nn==="small",[`${di}-affix-wrapper-lg`]:Nn==="large",[`${di}-affix-wrapper-rtl`]:vn==="rtl",[`${di}-affix-wrapper-without-controls`]:kr===!1||Yr},no),wrapper:ze()({[`${ti}-rtl`]:vn==="rtl"},no),groupWrapper:ze()({[`${di}-group-wrapper-sm`]:Nn==="small",[`${di}-group-wrapper-lg`]:Nn==="large",[`${di}-group-wrapper-rtl`]:vn==="rtl",[`${di}-group-wrapper-${ci}`]:or},(0,rn.Z)(`${di}-group-wrapper`,pn,wn),no)}},Ai));return Ei(nr)}),an=Ut,_n=It=>x.createElement(pe.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},x.createElement(Ut,Object.assign({},It)));an._InternalPanelDoNotUseOrYouWillBeFired=_n;var Vn=an},49397:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return Qe}});var x=ae(59301),dt=ae(92310),Ie=ae.n(dt),Je=ae(36901),ze=ae(8654),Le=ae(62487),Ue=ae(86013),he=ae(82855),xe=ae(48755),oe=ae(2171),Oe=ae(83397),ve=ae(31756),Me=ae(56553),Se=ae(24971),Te=ae(70045),we=ae(23826),Ce=ae(53075);function Ee(je){return!!(je.prefix||je.suffix||je.allowClear||je.showCount)}var ke=function(je,qe){var Ve={};for(var ct in je)Object.prototype.hasOwnProperty.call(je,ct)&&qe.indexOf(ct)<0&&(Ve[ct]=je[ct]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,ct=Object.getOwnPropertySymbols(je);ot<ct.length;ot++)qe.indexOf(ct[ot])<0&&Object.prototype.propertyIsEnumerable.call(je,ct[ot])&&(Ve[ct[ot]]=je[ct[ot]]);return Ve},Qe=(0,x.forwardRef)((je,qe)=>{const{prefixCls:Ve,bordered:ct=!0,status:ot,size:pt,disabled:bt,onBlur:He,onFocus:ht,suffix:_e,allowClear:Re,addonAfter:Nt,addonBefore:it,className:at,style:Bt,styles:Ze,rootClassName:De,onChange:ut,classNames:$t,variant:zt}=je,tt=ke(je,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Ot,direction:Rt,allowClear:fn,autoComplete:Tt,className:mn,style:Dt,classNames:En,styles:rn}=(0,xe.dj)("input"),de=Ot("input",Ve),pe=(0,x.useRef)(null),ie=(0,Oe.Z)(de),[ee,se,le]=(0,Ce.TI)(de,De),[Be]=(0,Ce.ZP)(de,ie),{compactSize:We,compactItemClassnames:st}=(0,Te.ri)(de,Rt),mt=(0,ve.Z)(Vn=>{var It;return(It=pt!=null?pt:We)!==null&&It!==void 0?It:Vn}),gt=x.useContext(oe.Z),Et=bt!=null?bt:gt,{status:Lt,hasFeedback:jt,feedbackIcon:Ct}=(0,x.useContext)(Me.aM),lt=(0,he.F)(Lt,ot),Vt=Ee(je)||!!jt,Zt=(0,x.useRef)(Vt),gn=(0,we.Z)(pe,!0),sn=Vn=>{gn(),He==null||He(Vn)},en=Vn=>{gn(),ht==null||ht(Vn)},zn=Vn=>{gn(),ut==null||ut(Vn)},Fn=(jt||_e)&&x.createElement(x.Fragment,null,_e,jt&&Ct),Ut=(0,Ue.Z)(Re!=null?Re:fn),[an,_n]=(0,Se.Z)("input",zt,ct);return ee(Be(x.createElement(Je.default,Object.assign({ref:(0,ze.sQ)(qe,pe),prefixCls:de,autoComplete:Tt},tt,{disabled:Et,onBlur:sn,onFocus:en,style:Object.assign(Object.assign({},Dt),Bt),styles:Object.assign(Object.assign({},rn),Ze),suffix:Fn,allowClear:Ut,className:Ie()(at,De,le,ie,st,mn),onChange:zn,addonBefore:it&&x.createElement(Le.Z,{form:!0,space:!0},it),addonAfter:Nt&&x.createElement(Le.Z,{form:!0,space:!0},Nt),classNames:Object.assign(Object.assign(Object.assign({},$t),En),{input:Ie()({[`${de}-sm`]:mt==="small",[`${de}-lg`]:mt==="large",[`${de}-rtl`]:Rt==="rtl"},$t==null?void 0:$t.input,En.input,se),variant:Ie()({[`${de}-${an}`]:_n},(0,he.Z)(de,lt)),affixWrapper:Ie()({[`${de}-affix-wrapper-sm`]:mt==="small",[`${de}-affix-wrapper-lg`]:mt==="large",[`${de}-affix-wrapper-rtl`]:Rt==="rtl"},se),wrapper:Ie()({[`${de}-group-rtl`]:Rt==="rtl"},se),groupWrapper:Ie()({[`${de}-group-wrapper-sm`]:mt==="small",[`${de}-group-wrapper-lg`]:mt==="large",[`${de}-group-wrapper-rtl`]:Rt==="rtl",[`${de}-group-wrapper-${an}`]:_n},(0,he.Z)(`${de}-group-wrapper`,lt,jt),se)})}))))})},79809:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return qe}});var x=ae(59301),dt=ae(92310),Ie=ae.n(dt),Je=ae(22711),ze=ae(86013),Le=ae(82855),Ue=ae(48755),he=ae(2171),xe=ae(83397),oe=ae(31756),Oe=ae(56553),ve=ae(24971),Me=ae(70045),Se=ae(30292),Te=ae(53075),we=ae(16931),Ce=ae(51636),Ee=ae(64910);const ke=Ve=>{const{componentCls:ct,paddingLG:ot}=Ve,pt=`${ct}-textarea`;return{[`textarea${ct}`]:{maxWidth:"100%",height:"auto",minHeight:Ve.controlHeight,lineHeight:Ve.lineHeight,verticalAlign:"bottom",transition:`all ${Ve.motionDurationSlow}`,resize:"vertical",[`&${ct}-mouse-active`]:{transition:`all ${Ve.motionDurationSlow}, height 0s, width 0s`}},[`${ct}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[pt]:{position:"relative","&-show-count":{[`> ${ct}`]:{height:"100%"},[`${ct}-data-count`]:{position:"absolute",bottom:Ve.calc(Ve.fontSize).mul(Ve.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Ve.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${ct},
&-affix-wrapper${pt}-has-feedback ${ct}
`]:{paddingInlineEnd:ot},[`&-affix-wrapper${ct}-affix-wrapper`]:{padding:0,[`> textarea${ct}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Ve.calc(Ve.controlHeight).sub(Ve.calc(Ve.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${ct}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${ct}-clear-icon`]:{position:"absolute",insetInlineEnd:Ve.paddingInline,insetBlockStart:Ve.paddingXS},[`${pt}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ve.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${ct}-affix-wrapper-sm`]:{[`${ct}-suffix`]:{[`${ct}-clear-icon`]:{insetInlineEnd:Ve.paddingInlineSM}}}}}};var Ke=(0,we.I$)(["Input","TextArea"],Ve=>{const ct=(0,Ce.mergeToken)(Ve,(0,Ee.e)(Ve));return[ke(ct)]},Ee.T,{resetFont:!1}),Qe=function(Ve,ct){var ot={};for(var pt in Ve)Object.prototype.hasOwnProperty.call(Ve,pt)&&ct.indexOf(pt)<0&&(ot[pt]=Ve[pt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,pt=Object.getOwnPropertySymbols(Ve);bt<pt.length;bt++)ct.indexOf(pt[bt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,pt[bt])&&(ot[pt[bt]]=Ve[pt[bt]]);return ot},qe=(0,x.forwardRef)((Ve,ct)=>{var ot;const{prefixCls:pt,bordered:bt=!0,size:He,disabled:ht,status:_e,allowClear:Re,classNames:Nt,rootClassName:it,className:at,style:Bt,styles:Ze,variant:De,showCount:ut,onMouseDown:$t,onResize:zt}=Ve,tt=Qe(Ve,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Ot,direction:Rt,allowClear:fn,autoComplete:Tt,className:mn,style:Dt,classNames:En,styles:rn}=(0,Ue.dj)("textArea"),de=x.useContext(he.Z),pe=ht!=null?ht:de,{status:ie,hasFeedback:ee,feedbackIcon:se}=x.useContext(Oe.aM),le=(0,Le.F)(ie,_e),Be=x.useRef(null);x.useImperativeHandle(ct,()=>{var _n;return{resizableTextArea:(_n=Be.current)===null||_n===void 0?void 0:_n.resizableTextArea,focus:Vn=>{var It,Wt;(0,Se.nH)((Wt=(It=Be.current)===null||It===void 0?void 0:It.resizableTextArea)===null||Wt===void 0?void 0:Wt.textArea,Vn)},blur:()=>{var Vn;return(Vn=Be.current)===null||Vn===void 0?void 0:Vn.blur()}}});const We=Ot("input",pt),st=(0,xe.Z)(We),[mt,gt,Et]=(0,Te.TI)(We,it),[Lt]=Ke(We,st),{compactSize:jt,compactItemClassnames:Ct}=(0,Me.ri)(We,Rt),lt=(0,oe.Z)(_n=>{var Vn;return(Vn=He!=null?He:jt)!==null&&Vn!==void 0?Vn:_n}),[Vt,Zt]=(0,ve.Z)("textArea",De,bt),gn=(0,ze.Z)(Re!=null?Re:fn),[sn,en]=x.useState(!1),[zn,Fn]=x.useState(!1),Ut=_n=>{en(!0),$t==null||$t(_n);const Vn=()=>{en(!1),document.removeEventListener("mouseup",Vn)};document.addEventListener("mouseup",Vn)},an=_n=>{var Vn,It;if(zt==null||zt(_n),sn&&typeof getComputedStyle=="function"){const Wt=(It=(Vn=Be.current)===null||Vn===void 0?void 0:Vn.nativeElement)===null||It===void 0?void 0:It.querySelector("textarea");Wt&&getComputedStyle(Wt).resize==="both"&&Fn(!0)}};return mt(Lt(x.createElement(Je.default,Object.assign({autoComplete:Tt},tt,{style:Object.assign(Object.assign({},Dt),Bt),styles:Object.assign(Object.assign({},rn),Ze),disabled:pe,allowClear:gn,className:Ie()(Et,st,at,it,Ct,mn,zn&&`${We}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Nt),En),{textarea:Ie()({[`${We}-sm`]:lt==="small",[`${We}-lg`]:lt==="large"},gt,Nt==null?void 0:Nt.textarea,En.textarea,sn&&`${We}-mouse-active`),variant:Ie()({[`${We}-${Vt}`]:Zt},(0,Le.Z)(We,le)),affixWrapper:Ie()(`${We}-textarea-affix-wrapper`,{[`${We}-affix-wrapper-rtl`]:Rt==="rtl",[`${We}-affix-wrapper-sm`]:lt==="small",[`${We}-affix-wrapper-lg`]:lt==="large",[`${We}-textarea-show-count`]:ut||((ot=Ve.count)===null||ot===void 0?void 0:ot.show)},gt)}),prefixCls:We,suffix:ee&&x.createElement("span",{className:`${We}-textarea-suffix`},se),showCount:ut,ref:Be,onResize:an,onMouseDown:Ut}))))})},23826:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return dt}});var x=ae(59301);function dt(Ie,Je){const ze=(0,x.useRef)([]),Le=()=>{ze.current.push(setTimeout(()=>{var Ue,he,xe,oe;!((Ue=Ie.current)===null||Ue===void 0)&&Ue.input&&((he=Ie.current)===null||he===void 0?void 0:he.input.getAttribute("type"))==="password"&&(!((xe=Ie.current)===null||xe===void 0)&&xe.input.hasAttribute("value"))&&((oe=Ie.current)===null||oe===void 0||oe.input.removeAttribute("value"))}))};return(0,x.useEffect)(()=>(Je&&Le(),()=>ze.current.forEach(Ue=>{Ue&&clearTimeout(Ue)})),[]),Le}},37568:function(Jn,kt,ae){"use strict";ae.d(kt,{default:function(){return En}});var x=ae(59301),dt=ae(92310),Ie=ae.n(dt),Je=ae(48755),ze=ae(56553),Le=ae(53075),he=rn=>{const{getPrefixCls:de,direction:pe}=(0,x.useContext)(Je.E_),{prefixCls:ie,className:ee}=rn,se=de("input-group",ie),le=de("input"),[Be,We,st]=(0,Le.ZP)(le),mt=Ie()(se,st,{[`${se}-lg`]:rn.size==="large",[`${se}-sm`]:rn.size==="small",[`${se}-compact`]:rn.compact,[`${se}-rtl`]:pe==="rtl"},We,ee),gt=(0,x.useContext)(ze.aM),Et=(0,x.useMemo)(()=>Object.assign(Object.assign({},gt),{isFormItemInput:!1}),[gt]);return Be(x.createElement("span",{className:mt,style:rn.style,onMouseEnter:rn.onMouseEnter,onMouseLeave:rn.onMouseLeave,onFocus:rn.onFocus,onBlur:rn.onBlur},x.createElement(ze.aM.Provider,{value:Et},rn.children)))},xe=ae(49397),oe=ae(94480),Oe=ae(6089),ve=ae(26112),Me=ae(82855),Se=ae(31756),Te=ae(16931),we=ae(51636),Ce=ae(64910);const Ee=rn=>{const{componentCls:de,paddingXS:pe}=rn;return{[de]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:pe,"&-rtl":{direction:"rtl"},[`${de}-input`]:{textAlign:"center",paddingInline:rn.paddingXXS},[`&${de}-sm ${de}-input`]:{paddingInline:rn.calc(rn.paddingXXS).div(2).equal()},[`&${de}-lg ${de}-input`]:{paddingInline:rn.paddingXS}}}};var ke=(0,Te.I$)(["Input","OTP"],rn=>{const de=(0,we.mergeToken)(rn,(0,Ce.e)(rn));return[Ee(de)]},Ce.T),Ke=ae(16089),Qe=function(rn,de){var pe={};for(var ie in rn)Object.prototype.hasOwnProperty.call(rn,ie)&&de.indexOf(ie)<0&&(pe[ie]=rn[ie]);if(rn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,ie=Object.getOwnPropertySymbols(rn);ee<ie.length;ee++)de.indexOf(ie[ee])<0&&Object.prototype.propertyIsEnumerable.call(rn,ie[ee])&&(pe[ie[ee]]=rn[ie[ee]]);return pe},qe=x.forwardRef((rn,de)=>{const{value:pe,onChange:ie,onActiveChange:ee,index:se,mask:le}=rn,Be=Qe(rn,["value","onChange","onActiveChange","index","mask"]),We=pe&&typeof le=="string"?le:pe,st=jt=>{ie(se,jt.target.value)},mt=x.useRef(null);x.useImperativeHandle(de,()=>mt.current);const gt=()=>{(0,Ke.Z)(()=>{var jt;const Ct=(jt=mt.current)===null||jt===void 0?void 0:jt.input;document.activeElement===Ct&&Ct&&Ct.select()})},Et=jt=>{const{key:Ct,ctrlKey:lt,metaKey:Vt}=jt;Ct==="ArrowLeft"?ee(se-1):Ct==="ArrowRight"?ee(se+1):Ct==="z"&&(lt||Vt)&&jt.preventDefault(),gt()},Lt=jt=>{jt.key==="Backspace"&&!pe&&ee(se-1),gt()};return x.createElement(xe.Z,Object.assign({type:le===!0?"password":"text"},Be,{ref:mt,value:We,onInput:st,onFocus:gt,onKeyDown:Et,onKeyUp:Lt,onMouseDown:gt,onMouseUp:gt}))}),Ve=function(rn,de){var pe={};for(var ie in rn)Object.prototype.hasOwnProperty.call(rn,ie)&&de.indexOf(ie)<0&&(pe[ie]=rn[ie]);if(rn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,ie=Object.getOwnPropertySymbols(rn);ee<ie.length;ee++)de.indexOf(ie[ee])<0&&Object.prototype.propertyIsEnumerable.call(rn,ie[ee])&&(pe[ie[ee]]=rn[ie[ee]]);return pe};function ct(rn){return(rn||"").split("")}const ot=rn=>{const{index:de,prefixCls:pe,separator:ie}=rn,ee=typeof ie=="function"?ie(de):ie;return ee?x.createElement("span",{className:`${pe}-separator`},ee):null};var bt=x.forwardRef((rn,de)=>{const{prefixCls:pe,length:ie=6,size:ee,defaultValue:se,value:le,onChange:Be,formatter:We,separator:st,variant:mt,disabled:gt,status:Et,autoFocus:Lt,mask:jt,type:Ct,onInput:lt,inputMode:Vt}=rn,Zt=Ve(rn,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:gn,direction:sn}=x.useContext(Je.E_),en=gn("otp",pe),zn=(0,ve.Z)(Zt,{aria:!0,data:!0,attr:!0}),[Fn,Ut,an]=ke(en),_n=(0,Se.Z)(qn=>ee!=null?ee:qn),Vn=x.useContext(ze.aM),It=(0,Me.F)(Vn.status,Et),Wt=x.useMemo(()=>Object.assign(Object.assign({},Vn),{status:It,hasFeedback:!1,feedbackIcon:null}),[Vn,It]),on=x.useRef(null),vn=x.useRef({});x.useImperativeHandle(de,()=>({focus:()=>{var qn;(qn=vn.current[0])===null||qn===void 0||qn.focus()},blur:()=>{var qn;for(let lr=0;lr<ie;lr+=1)(qn=vn.current[lr])===null||qn===void 0||qn.blur()},nativeElement:on.current}));const Yn=qn=>We?We(qn):qn,[Lr,ri]=x.useState(()=>ct(Yn(se||"")));x.useEffect(()=>{le!==void 0&&ri(ct(le))},[le]);const zr=(0,Oe.Z)(qn=>{ri(qn),lt&&lt(qn),Be&&qn.length===ie&&qn.every(lr=>lr)&&qn.some((lr,$n)=>Lr[$n]!==lr)&&Be(qn.join(""))}),Ir=(0,Oe.Z)((qn,lr)=>{let $n=(0,oe.Z)(Lr);for(let Sr=0;Sr<qn;Sr+=1)$n[Sr]||($n[Sr]="");lr.length<=1?$n[qn]=lr:$n=$n.slice(0,qn).concat(ct(lr)),$n=$n.slice(0,ie);for(let Sr=$n.length-1;Sr>=0&&!$n[Sr];Sr-=1)$n.pop();const Br=Yn($n.map(Sr=>Sr||" ").join(""));return $n=ct(Br).map((Sr,kr)=>Sr===" "&&!$n[kr]?$n[kr]:Sr),$n}),tr=(qn,lr)=>{var $n;const Br=Ir(qn,lr),Sr=Math.min(qn+lr.length,ie-1);Sr!==qn&&Br[qn]!==void 0&&(($n=vn.current[Sr])===null||$n===void 0||$n.focus()),zr(Br)},vr=qn=>{var lr;(lr=vn.current[qn])===null||lr===void 0||lr.focus()},Qn={variant:mt,disabled:gt,status:It,mask:jt,type:Ct,inputMode:Vt};return Fn(x.createElement("div",Object.assign({},zn,{ref:on,className:Ie()(en,{[`${en}-sm`]:_n==="small",[`${en}-lg`]:_n==="large",[`${en}-rtl`]:sn==="rtl"},an,Ut)}),x.createElement(ze.aM.Provider,{value:Wt},Array.from({length:ie}).map((qn,lr)=>{const $n=`otp-${lr}`,Br=Lr[lr]||"";return x.createElement(x.Fragment,{key:$n},x.createElement(qe,Object.assign({ref:Sr=>{vn.current[lr]=Sr},index:lr,size:_n,htmlSize:1,className:`${en}-input`,onChange:tr,value:Br,onActiveChange:vr,autoFocus:lr===0&&Lt},Qn)),lr<ie-1&&x.createElement(ot,{separator:st,index:lr,prefixCls:en}))}))))}),He=ae(73331),ht=ae(15277),_e=ae(2738),Re=ae(8654),Nt=ae(2171),it=ae(23826),at=function(rn,de){var pe={};for(var ie in rn)Object.prototype.hasOwnProperty.call(rn,ie)&&de.indexOf(ie)<0&&(pe[ie]=rn[ie]);if(rn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,ie=Object.getOwnPropertySymbols(rn);ee<ie.length;ee++)de.indexOf(ie[ee])<0&&Object.prototype.propertyIsEnumerable.call(rn,ie[ee])&&(pe[ie[ee]]=rn[ie[ee]]);return pe};const Bt=rn=>rn?x.createElement(ht.Z,null):x.createElement(He.Z,null),Ze={click:"onClick",hover:"onMouseOver"};var ut=x.forwardRef((rn,de)=>{const{disabled:pe,action:ie="click",visibilityToggle:ee=!0,iconRender:se=Bt}=rn,le=x.useContext(Nt.Z),Be=pe!=null?pe:le,We=typeof ee=="object"&&ee.visible!==void 0,[st,mt]=(0,x.useState)(()=>We?ee.visible:!1),gt=(0,x.useRef)(null);x.useEffect(()=>{We&&mt(ee.visible)},[We,ee]);const Et=(0,it.Z)(gt),Lt=()=>{var _n;if(Be)return;st&&Et();const Vn=!st;mt(Vn),typeof ee=="object"&&((_n=ee.onVisibleChange)===null||_n===void 0||_n.call(ee,Vn))},jt=_n=>{const Vn=Ze[ie]||"",It=se(st),Wt={[Vn]:Lt,className:`${_n}-icon`,key:"passwordIcon",onMouseDown:on=>{on.preventDefault()},onMouseUp:on=>{on.preventDefault()}};return x.cloneElement(x.isValidElement(It)?It:x.createElement("span",null,It),Wt)},{className:Ct,prefixCls:lt,inputPrefixCls:Vt,size:Zt}=rn,gn=at(rn,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:sn}=x.useContext(Je.E_),en=sn("input",Vt),zn=sn("input-password",lt),Fn=ee&&jt(zn),Ut=Ie()(zn,Ct,{[`${zn}-${Zt}`]:!!Zt}),an=Object.assign(Object.assign({},(0,_e.Z)(gn,["suffix","iconRender","visibilityToggle"])),{type:st?"text":"password",className:Ut,prefixCls:en,suffix:Fn});return Zt&&(an.size=Zt),x.createElement(xe.Z,Object.assign({ref:(0,Re.sQ)(de,gt)},an))}),$t=ae(47472),zt=ae(22703),tt=ae(7939),Ot=ae(70045),Rt=function(rn,de){var pe={};for(var ie in rn)Object.prototype.hasOwnProperty.call(rn,ie)&&de.indexOf(ie)<0&&(pe[ie]=rn[ie]);if(rn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,ie=Object.getOwnPropertySymbols(rn);ee<ie.length;ee++)de.indexOf(ie[ee])<0&&Object.prototype.propertyIsEnumerable.call(rn,ie[ee])&&(pe[ie[ee]]=rn[ie[ee]]);return pe},Tt=x.forwardRef((rn,de)=>{const{prefixCls:pe,inputPrefixCls:ie,className:ee,size:se,suffix:le,enterButton:Be=!1,addonAfter:We,loading:st,disabled:mt,onSearch:gt,onChange:Et,onCompositionStart:Lt,onCompositionEnd:jt}=rn,Ct=Rt(rn,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:lt,direction:Vt}=x.useContext(Je.E_),Zt=x.useRef(!1),gn=lt("input-search",pe),sn=lt("input",ie),{compactSize:en}=(0,Ot.ri)(gn,Vt),zn=(0,Se.Z)(tr=>{var vr;return(vr=se!=null?se:en)!==null&&vr!==void 0?vr:tr}),Fn=x.useRef(null),Ut=tr=>{tr!=null&&tr.target&&tr.type==="click"&&gt&&gt(tr.target.value,tr,{source:"clear"}),Et==null||Et(tr)},an=tr=>{var vr;document.activeElement===((vr=Fn.current)===null||vr===void 0?void 0:vr.input)&&tr.preventDefault()},_n=tr=>{var vr,Qn;gt&&gt((Qn=(vr=Fn.current)===null||vr===void 0?void 0:vr.input)===null||Qn===void 0?void 0:Qn.value,tr,{source:"input"})},Vn=tr=>{Zt.current||st||_n(tr)},It=typeof Be=="boolean"?x.createElement($t.Z,null):null,Wt=`${gn}-button`;let on;const vn=Be||{},Yn=vn.type&&vn.type.__ANT_BUTTON===!0;Yn||vn.type==="button"?on=(0,zt.Tm)(vn,Object.assign({onMouseDown:an,onClick:tr=>{var vr,Qn;(Qn=(vr=vn==null?void 0:vn.props)===null||vr===void 0?void 0:vr.onClick)===null||Qn===void 0||Qn.call(vr,tr),_n(tr)},key:"enterButton"},Yn?{className:Wt,size:zn}:{})):on=x.createElement(tt.ZP,{className:Wt,type:Be?"primary":void 0,size:zn,disabled:mt,key:"enterButton",onMouseDown:an,onClick:_n,loading:st,icon:It},Be),We&&(on=[on,(0,zt.Tm)(We,{key:"addonAfter"})]);const Lr=Ie()(gn,{[`${gn}-rtl`]:Vt==="rtl",[`${gn}-${zn}`]:!!zn,[`${gn}-with-button`]:!!Be},ee),ri=Object.assign(Object.assign({},Ct),{className:Lr,prefixCls:sn,type:"search"}),zr=tr=>{Zt.current=!0,Lt==null||Lt(tr)},Ir=tr=>{Zt.current=!1,jt==null||jt(tr)};return x.createElement(xe.Z,Object.assign({ref:(0,Re.sQ)(Fn,de),onPressEnter:Vn},ri,{size:zn,onCompositionStart:zr,onCompositionEnd:Ir,addonAfter:on,suffix:le,onChange:Ut,disabled:mt}))}),mn=ae(79809);const Dt=xe.Z;Dt.Group=he,Dt.Search=Tt,Dt.TextArea=mn.Z,Dt.Password=ut,Dt.OTP=bt;var En=Dt},24303:function(Jn,kt,ae){"use strict";ae.d(kt,{D:function(){return Ve},Z:function(){return pt}});var x=ae(59301),dt=ae(54476),Ie={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"},Je=Ie,ze=ae(7657),Le=function(He,ht){return x.createElement(ze.Z,(0,dt.Z)({},He,{ref:ht,icon:Je}))},Ue=x.forwardRef(Le),he=Ue,xe=ae(33853),oe=ae(38819),Oe=ae(92310),ve=ae.n(Oe),Me=ae(2738),Se=ae(48755),Te=ae(6989),we=ae(36237),Ce=ae(48923),Ee=ae(16931);const ke=bt=>{const{componentCls:He,siderBg:ht,motionDurationMid:_e,motionDurationSlow:Re,antCls:Nt,triggerHeight:it,triggerColor:at,triggerBg:Bt,headerHeight:Ze,zeroTriggerWidth:De,zeroTriggerHeight:ut,borderRadiusLG:$t,lightSiderBg:zt,lightTriggerColor:tt,lightTriggerBg:Ot,bodyBg:Rt}=bt;return{[He]:{position:"relative",minWidth:0,background:ht,transition:`all ${_e}, background 0s`,"&-has-trigger":{paddingBottom:it},"&-right":{order:1},[`${He}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Nt}-menu${Nt}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${He}-children`]:{overflow:"hidden"},[`${He}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:it,color:at,lineHeight:(0,we.unit)(it),textAlign:"center",background:Bt,cursor:"pointer",transition:`all ${_e}`},[`${He}-zero-width-trigger`]:{position:"absolute",top:Ze,insetInlineEnd:bt.calc(De).mul(-1).equal(),zIndex:1,width:De,height:ut,color:at,fontSize:bt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ht,borderRadius:`0 ${(0,we.unit)($t)} ${(0,we.unit)($t)} 0`,cursor:"pointer",transition:`background ${Re} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Re}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:bt.calc(De).mul(-1).equal(),borderRadius:`${(0,we.unit)($t)} 0 0 ${(0,we.unit)($t)}`}},"&-light":{background:zt,[`${He}-trigger`]:{color:tt,background:Ot},[`${He}-zero-width-trigger`]:{color:tt,background:Ot,border:`1px solid ${Rt}`,borderInlineStart:0}}}}};var Ke=(0,Ee.I$)(["Layout","Sider"],bt=>[ke(bt)],Ce.eh,{deprecatedTokens:Ce.jn}),Qe=function(bt,He){var ht={};for(var _e in bt)Object.prototype.hasOwnProperty.call(bt,_e)&&He.indexOf(_e)<0&&(ht[_e]=bt[_e]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,_e=Object.getOwnPropertySymbols(bt);Re<_e.length;Re++)He.indexOf(_e[Re])<0&&Object.prototype.propertyIsEnumerable.call(bt,_e[Re])&&(ht[_e[Re]]=bt[_e[Re]]);return ht};const je={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},qe=bt=>!Number.isNaN(Number.parseFloat(bt))&&isFinite(bt),Ve=x.createContext({}),ct=(()=>{let bt=0;return function(){let He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return bt+=1,`${He}${bt}`}})();var pt=x.forwardRef((bt,He)=>{const{prefixCls:ht,className:_e,trigger:Re,children:Nt,defaultCollapsed:it=!1,theme:at="dark",style:Bt={},collapsible:Ze=!1,reverseArrow:De=!1,width:ut=200,collapsedWidth:$t=80,zeroWidthTriggerStyle:zt,breakpoint:tt,onCollapse:Ot,onBreakpoint:Rt}=bt,fn=Qe(bt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Tt}=(0,x.useContext)(Te.V),[mn,Dt]=(0,x.useState)("collapsed"in bt?bt.collapsed:it),[En,rn]=(0,x.useState)(!1);(0,x.useEffect)(()=>{"collapsed"in bt&&Dt(bt.collapsed)},[bt.collapsed]);const de=(zn,Fn)=>{"collapsed"in bt||Dt(zn),Ot==null||Ot(zn,Fn)},{getPrefixCls:pe,direction:ie}=(0,x.useContext)(Se.E_),ee=pe("layout-sider",ht),[se,le,Be]=Ke(ee),We=(0,x.useRef)(null);We.current=zn=>{rn(zn.matches),Rt==null||Rt(zn.matches),mn!==zn.matches&&de(zn.matches,"responsive")},(0,x.useEffect)(()=>{function zn(Ut){return We.current(Ut)}let Fn;if(typeof window!="undefined"){const{matchMedia:Ut}=window;if(Ut&&tt&&tt in je){Fn=Ut(`screen and (max-width: ${je[tt]})`);try{Fn.addEventListener("change",zn)}catch(an){Fn.addListener(zn)}zn(Fn)}}return()=>{try{Fn==null||Fn.removeEventListener("change",zn)}catch(Ut){Fn==null||Fn.removeListener(zn)}}},[tt]),(0,x.useEffect)(()=>{const zn=ct("ant-sider-");return Tt.addSider(zn),()=>Tt.removeSider(zn)},[]);const st=()=>{de(!mn,"clickTrigger")},mt=(0,Me.Z)(fn,["collapsed"]),gt=mn?$t:ut,Et=qe(gt)?`${gt}px`:String(gt),Lt=parseFloat(String($t||0))===0?x.createElement("span",{onClick:st,className:ve()(`${ee}-zero-width-trigger`,`${ee}-zero-width-trigger-${De?"right":"left"}`),style:zt},Re||x.createElement(he,null)):null,jt=ie==="rtl"==!De,Vt={expanded:jt?x.createElement(oe.Z,null):x.createElement(xe.Z,null),collapsed:jt?x.createElement(xe.Z,null):x.createElement(oe.Z,null)}[mn?"collapsed":"expanded"],Zt=Re!==null?Lt||x.createElement("div",{className:`${ee}-trigger`,onClick:st,style:{width:Et}},Re||Vt):null,gn=Object.assign(Object.assign({},Bt),{flex:`0 0 ${Et}`,maxWidth:Et,minWidth:Et,width:Et}),sn=ve()(ee,`${ee}-${at}`,{[`${ee}-collapsed`]:!!mn,[`${ee}-has-trigger`]:Ze&&Re!==null&&!Lt,[`${ee}-below`]:!!En,[`${ee}-zero-width`]:parseFloat(Et)===0},_e,le,Be),en=x.useMemo(()=>({siderCollapsed:mn}),[mn]);return se(x.createElement(Ve.Provider,{value:en},x.createElement("aside",Object.assign({className:sn},mt,{style:gn,ref:He}),x.createElement("div",{className:`${ee}-children`},Nt),Ze||En&&Lt?Zt:null)))})},6989:function(Jn,kt,ae){"use strict";ae.d(kt,{V:function(){return dt}});var x=ae(59301);const dt=x.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(Jn,kt,ae){"use strict";ae.d(kt,{eh:function(){return Je},jn:function(){return ze}});var x=ae(36237),dt=ae(16931);const Ie=Le=>{const{antCls:Ue,componentCls:he,colorText:xe,footerBg:oe,headerHeight:Oe,headerPadding:ve,headerColor:Me,footerPadding:Se,fontSize:Te,bodyBg:we,headerBg:Ce}=Le;return{[he]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:we,"&, *":{boxSizing:"border-box"},[`&${he}-has-sider`]:{flexDirection:"row",[`> ${he}, > ${he}-content`]:{width:0}},[`${he}-header, &${he}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${he}-header`]:{height:Oe,padding:ve,color:Me,lineHeight:(0,x.unit)(Oe),background:Ce,[`${Ue}-menu`]:{lineHeight:"inherit"}},[`${he}-footer`]:{padding:Se,color:xe,fontSize:Te,background:oe},[`${he}-content`]:{flex:"auto",color:xe,minHeight:0}}},Je=Le=>{const{colorBgLayout:Ue,controlHeight:he,controlHeightLG:xe,colorText:oe,controlHeightSM:Oe,marginXXS:ve,colorTextLightSolid:Me,colorBgContainer:Se}=Le,Te=xe*1.25;return{colorBgHeader:"#001529",colorBgBody:Ue,colorBgTrigger:"#002140",bodyBg:Ue,headerBg:"#001529",headerHeight:he*2,headerPadding:`0 ${Te}px`,headerColor:oe,footerPadding:`${Oe}px ${Te}px`,footerBg:Ue,siderBg:"#001529",triggerHeight:xe+ve*2,triggerBg:"#002140",triggerColor:Me,zeroTriggerWidth:xe,zeroTriggerHeight:xe,lightSiderBg:Se,lightTriggerBg:Se,lightTriggerColor:oe}},ze=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];kt.ZP=(0,dt.I$)("Layout",Le=>[Ie(Le)],Je,{deprecatedTokens:ze})},78857:function(Jn,kt,ae){"use strict";ae.d(kt,{J:function(){return Le}});var x=ae(59301),dt=ae(8654),Ie=ae(62487),Je=function(Ue,he){var xe={};for(var oe in Ue)Object.prototype.hasOwnProperty.call(Ue,oe)&&he.indexOf(oe)<0&&(xe[oe]=Ue[oe]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,oe=Object.getOwnPropertySymbols(Ue);Oe<oe.length;Oe++)he.indexOf(oe[Oe])<0&&Object.prototype.propertyIsEnumerable.call(Ue,oe[Oe])&&(xe[oe[Oe]]=Ue[oe[Oe]]);return xe};const ze=x.createContext(null),Le=x.forwardRef((Ue,he)=>{const{children:xe}=Ue,oe=Je(Ue,["children"]),Oe=x.useContext(ze),ve=x.useMemo(()=>Object.assign(Object.assign({},Oe),oe),[Oe,oe.prefixCls,oe.mode,oe.selectable,oe.rootClassName]),Me=(0,dt.t4)(xe),Se=(0,dt.x1)(he,Me?(0,dt.C4)(xe):null);return x.createElement(ze.Provider,{value:ve},x.createElement(Ie.Z,{space:!0},Me?x.cloneElement(xe,{ref:Se}):xe))});kt.Z=ze},93041:function(Jn,kt,ae){"use strict";ae.d(kt,{default:function(){return se}});var x=ae(59301),dt=ae(28321),Ie=ae(24303),Je=ae(18785),ze=ae(92310),Le=ae.n(ze),Ue=ae(6089),he=ae(2738),xe=ae(86641),oe=ae(22703),Oe=ae(48755),ve=ae(83397),Se=(0,x.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Te=function(le,Be){var We={};for(var st in le)Object.prototype.hasOwnProperty.call(le,st)&&Be.indexOf(st)<0&&(We[st]=le[st]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,st=Object.getOwnPropertySymbols(le);mt<st.length;mt++)Be.indexOf(st[mt])<0&&Object.prototype.propertyIsEnumerable.call(le,st[mt])&&(We[st[mt]]=le[st[mt]]);return We},Ce=le=>{const{prefixCls:Be,className:We,dashed:st}=le,mt=Te(le,["prefixCls","className","dashed"]),{getPrefixCls:gt}=x.useContext(Oe.E_),Et=gt("menu",Be),Lt=Le()({[`${Et}-item-divider-dashed`]:!!st},We);return x.createElement(dt.iz,Object.assign({className:Lt},mt))},Ee=ae(11592),ke=ae(25399),Qe=le=>{var Be;const{className:We,children:st,icon:mt,title:gt,danger:Et,extra:Lt}=le,{prefixCls:jt,firstLevel:Ct,direction:lt,disableMenuItemTitleTooltip:Vt,inlineCollapsed:Zt}=x.useContext(Se),gn=an=>{const _n=st==null?void 0:st[0],Vn=x.createElement("span",{className:Le()(`${jt}-title-content`,{[`${jt}-title-content-with-extra`]:!!Lt||Lt===0})},st);return(!mt||x.isValidElement(st)&&st.type==="span")&&st&&an&&Ct&&typeof _n=="string"?x.createElement("div",{className:`${jt}-inline-collapsed-noicon`},_n.charAt(0)):Vn},{siderCollapsed:sn}=x.useContext(Ie.D);let en=gt;typeof gt=="undefined"?en=Ct?st:"":gt===!1&&(en="");const zn={title:en};!sn&&!Zt&&(zn.title=null,zn.open=!1);const Fn=(0,Ee.Z)(st).length;let Ut=x.createElement(dt.ck,Object.assign({},(0,he.Z)(le,["title","icon","danger"]),{className:Le()({[`${jt}-item-danger`]:Et,[`${jt}-item-only-child`]:(mt?Fn+1:Fn)===1},We),title:typeof gt=="string"?gt:void 0}),(0,oe.Tm)(mt,{className:Le()(x.isValidElement(mt)?(Be=mt.props)===null||Be===void 0?void 0:Be.className:"",`${jt}-item-icon`)}),gn(Zt));return Vt||(Ut=x.createElement(ke.Z,Object.assign({},zn,{placement:lt==="rtl"?"left":"right",classNames:{root:`${jt}-inline-collapsed-tooltip`}}),Ut)),Ut},je=ae(78857),qe=ae(36237),Ve=ae(17835),ct=ae(63356),ot=ae(34961),pt=ae(46e3),bt=ae(34925),He=ae(16931),ht=ae(51636),Re=le=>{const{componentCls:Be,motionDurationSlow:We,horizontalLineHeight:st,colorSplit:mt,lineWidth:gt,lineType:Et,itemPaddingInline:Lt}=le;return{[`${Be}-horizontal`]:{lineHeight:st,border:0,borderBottom:`${(0,qe.unit)(gt)} ${Et} ${mt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Be}-item, ${Be}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Lt},[`> ${Be}-item:hover,
> ${Be}-item-active,
> ${Be}-submenu ${Be}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Be}-item, ${Be}-submenu-title`]:{transition:[`border-color ${We}`,`background ${We}`].join(",")},[`${Be}-submenu-arrow`]:{display:"none"}}}},it=le=>{let{componentCls:Be,menuArrowOffset:We,calc:st}=le;return{[`${Be}-rtl`]:{direction:"rtl"},[`${Be}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Be}-rtl${Be}-vertical,
${Be}-submenu-rtl ${Be}-vertical`]:{[`${Be}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,qe.unit)(st(We).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,qe.unit)(We)})`}}}}};const at=le=>Object.assign({},(0,ct.oN)(le));var Ze=(le,Be)=>{const{componentCls:We,itemColor:st,itemSelectedColor:mt,subMenuItemSelectedColor:gt,groupTitleColor:Et,itemBg:Lt,subMenuItemBg:jt,itemSelectedBg:Ct,activeBarHeight:lt,activeBarWidth:Vt,activeBarBorderWidth:Zt,motionDurationSlow:gn,motionEaseInOut:sn,motionEaseOut:en,itemPaddingInline:zn,motionDurationMid:Fn,itemHoverColor:Ut,lineType:an,colorSplit:_n,itemDisabledColor:Vn,dangerItemColor:It,dangerItemHoverColor:Wt,dangerItemSelectedColor:on,dangerItemActiveBg:vn,dangerItemSelectedBg:Yn,popupBg:Lr,itemHoverBg:ri,itemActiveBg:zr,menuSubMenuBg:Ir,horizontalItemSelectedColor:tr,horizontalItemSelectedBg:vr,horizontalItemBorderRadius:Qn,horizontalItemHoverBg:qn}=le;return{[`${We}-${Be}, ${We}-${Be} > ${We}`]:{color:st,background:Lt,[`&${We}-root:focus-visible`]:Object.assign({},at(le)),[`${We}-item`]:{"&-group-title, &-extra":{color:Et}},[`${We}-submenu-selected > ${We}-submenu-title`]:{color:gt},[`${We}-item, ${We}-submenu-title`]:{color:st,[`&:not(${We}-item-disabled):focus-visible`]:Object.assign({},at(le))},[`${We}-item-disabled, ${We}-submenu-disabled`]:{color:`${Vn} !important`},[`${We}-item:not(${We}-item-selected):not(${We}-submenu-selected)`]:{[`&:hover, > ${We}-submenu-title:hover`]:{color:Ut}},[`&:not(${We}-horizontal)`]:{[`${We}-item:not(${We}-item-selected)`]:{"&:hover":{backgroundColor:ri},"&:active":{backgroundColor:zr}},[`${We}-submenu-title`]:{"&:hover":{backgroundColor:ri},"&:active":{backgroundColor:zr}}},[`${We}-item-danger`]:{color:It,[`&${We}-item:hover`]:{[`&:not(${We}-item-selected):not(${We}-submenu-selected)`]:{color:Wt}},[`&${We}-item:active`]:{background:vn}},[`${We}-item a`]:{"&, &:hover":{color:"inherit"}},[`${We}-item-selected`]:{color:mt,[`&${We}-item-danger`]:{color:on},"a, a:hover":{color:"inherit"}},[`& ${We}-item-selected`]:{backgroundColor:Ct,[`&${We}-item-danger`]:{backgroundColor:Yn}},[`&${We}-submenu > ${We}`]:{backgroundColor:Ir},[`&${We}-popup > ${We}`]:{backgroundColor:Lr},[`&${We}-submenu-popup > ${We}`]:{backgroundColor:Lr},[`&${We}-horizontal`]:Object.assign(Object.assign({},Be==="dark"?{borderBottom:0}:{}),{[`> ${We}-item, > ${We}-submenu`]:{top:Zt,marginTop:le.calc(Zt).mul(-1).equal(),marginBottom:0,borderRadius:Qn,"&::after":{position:"absolute",insetInline:zn,bottom:0,borderBottom:`${(0,qe.unit)(lt)} solid transparent`,transition:`border-color ${gn} ${sn}`,content:'""'},"&:hover, &-active, &-open":{background:qn,"&::after":{borderBottomWidth:lt,borderBottomColor:tr}},"&-selected":{color:tr,backgroundColor:vr,"&:hover":{backgroundColor:vr},"&::after":{borderBottomWidth:lt,borderBottomColor:tr}}}}),[`&${We}-root`]:{[`&${We}-inline, &${We}-vertical`]:{borderInlineEnd:`${(0,qe.unit)(Zt)} ${an} ${_n}`}},[`&${We}-inline`]:{[`${We}-sub${We}-inline`]:{background:jt},[`${We}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,qe.unit)(Vt)} solid ${mt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Fn} ${en}`,`opacity ${Fn} ${en}`].join(","),content:'""'},[`&${We}-item-danger`]:{"&::after":{borderInlineEndColor:on}}},[`${We}-selected, ${We}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Fn} ${sn}`,`opacity ${Fn} ${sn}`].join(",")}}}}}};const De=le=>{const{componentCls:Be,itemHeight:We,itemMarginInline:st,padding:mt,menuArrowSize:gt,marginXS:Et,itemMarginBlock:Lt,itemWidth:jt,itemPaddingInline:Ct}=le,lt=le.calc(gt).add(mt).add(Et).equal();return{[`${Be}-item`]:{position:"relative",overflow:"hidden"},[`${Be}-item, ${Be}-submenu-title`]:{height:We,lineHeight:(0,qe.unit)(We),paddingInline:Ct,overflow:"hidden",textOverflow:"ellipsis",marginInline:st,marginBlock:Lt,width:jt},[`> ${Be}-item,
> ${Be}-submenu > ${Be}-submenu-title`]:{height:We,lineHeight:(0,qe.unit)(We)},[`${Be}-item-group-list ${Be}-submenu-title,
${Be}-submenu-title`]:{paddingInlineEnd:lt}}};var $t=le=>{const{componentCls:Be,iconCls:We,itemHeight:st,colorTextLightSolid:mt,dropdownWidth:gt,controlHeightLG:Et,motionEaseOut:Lt,paddingXL:jt,itemMarginInline:Ct,fontSizeLG:lt,motionDurationFast:Vt,motionDurationSlow:Zt,paddingXS:gn,boxShadowSecondary:sn,collapsedWidth:en,collapsedIconSize:zn}=le,Fn={height:st,lineHeight:(0,qe.unit)(st),listStylePosition:"inside",listStyleType:"disc"};return[{[Be]:{"&-inline, &-vertical":Object.assign({[`&${Be}-root`]:{boxShadow:"none"}},De(le))},[`${Be}-submenu-popup`]:{[`${Be}-vertical`]:Object.assign(Object.assign({},De(le)),{boxShadow:sn})}},{[`${Be}-submenu-popup ${Be}-vertical${Be}-sub`]:{minWidth:gt,maxHeight:`calc(100vh - ${(0,qe.unit)(le.calc(Et).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Be}-inline`]:{width:"100%",[`&${Be}-root`]:{[`${Be}-item, ${Be}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Zt}`,`background ${Zt}`,`padding ${Vt} ${Lt}`].join(","),[`> ${Be}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Be}-sub${Be}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Be}-submenu > ${Be}-submenu-title`]:Fn,[`& ${Be}-item-group-title`]:{paddingInlineStart:jt}},[`${Be}-item`]:Fn}},{[`${Be}-inline-collapsed`]:{width:en,[`&${Be}-root`]:{[`${Be}-item, ${Be}-submenu ${Be}-submenu-title`]:{[`> ${Be}-inline-collapsed-noicon`]:{fontSize:lt,textAlign:"center"}}},[`> ${Be}-item,
> ${Be}-item-group > ${Be}-item-group-list > ${Be}-item,
> ${Be}-item-group > ${Be}-item-group-list > ${Be}-submenu > ${Be}-submenu-title,
> ${Be}-submenu > ${Be}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,qe.unit)(le.calc(zn).div(2).equal())} - ${(0,qe.unit)(Ct)})`,textOverflow:"clip",[`
${Be}-submenu-arrow,
${Be}-submenu-expand-icon
`]:{opacity:0},[`${Be}-item-icon, ${We}`]:{margin:0,fontSize:zn,lineHeight:(0,qe.unit)(st),"+ span":{display:"inline-block",opacity:0}}},[`${Be}-item-icon, ${We}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Be}-item-icon, ${We}`]:{display:"none"},"a, a:hover":{color:mt}},[`${Be}-item-group-title`]:Object.assign(Object.assign({},ct.vS),{paddingInline:gn})}}]};const zt=le=>{const{componentCls:Be,motionDurationSlow:We,motionDurationMid:st,motionEaseInOut:mt,motionEaseOut:gt,iconCls:Et,iconSize:Lt,iconMarginInlineEnd:jt}=le;return{[`${Be}-item, ${Be}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${We}`,`background ${We}`,`padding calc(${We} + 0.1s) ${mt}`].join(","),[`${Be}-item-icon, ${Et}`]:{minWidth:Lt,fontSize:Lt,transition:[`font-size ${st} ${gt}`,`margin ${We} ${mt}`,`color ${We}`].join(","),"+ span":{marginInlineStart:jt,opacity:1,transition:[`opacity ${We} ${mt}`,`margin ${We}`,`color ${We}`].join(",")}},[`${Be}-item-icon`]:Object.assign({},(0,ct.Ro)()),[`&${Be}-item-only-child`]:{[`> ${Et}, > ${Be}-item-icon`]:{marginInlineEnd:0}}},[`${Be}-item-disabled, ${Be}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${Be}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},tt=le=>{const{componentCls:Be,motionDurationSlow:We,motionEaseInOut:st,borderRadius:mt,menuArrowSize:gt,menuArrowOffset:Et}=le;return{[`${Be}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:le.margin,width:gt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${We} ${st}, opacity ${We}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:le.calc(gt).mul(.6).equal(),height:le.calc(gt).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:mt,transition:[`background ${We} ${st}`,`transform ${We} ${st}`,`top ${We} ${st}`,`color ${We} ${st}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,qe.unit)(le.calc(Et).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,qe.unit)(Et)})`}}}}},Ot=le=>{const{antCls:Be,componentCls:We,fontSize:st,motionDurationSlow:mt,motionDurationMid:gt,motionEaseInOut:Et,paddingXS:Lt,padding:jt,colorSplit:Ct,lineWidth:lt,zIndexPopup:Vt,borderRadiusLG:Zt,subMenuItemBorderRadius:gn,menuArrowSize:sn,menuArrowOffset:en,lineType:zn,groupTitleLineHeight:Fn,groupTitleFontSize:Ut}=le;return[{"":{[We]:Object.assign(Object.assign({},(0,ct.dF)()),{"&-hidden":{display:"none"}})},[`${We}-submenu-hidden`]:{display:"none"}},{[We]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ct.Wf)(le)),(0,ct.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:st,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${mt} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${We}-item`]:{flex:"none"}},[`${We}-item, ${We}-submenu, ${We}-submenu-title`]:{borderRadius:le.itemBorderRadius},[`${We}-item-group-title`]:{padding:`${(0,qe.unit)(Lt)} ${(0,qe.unit)(jt)}`,fontSize:Ut,lineHeight:Fn,transition:`all ${mt}`},[`&-horizontal ${We}-submenu`]:{transition:[`border-color ${mt} ${Et}`,`background ${mt} ${Et}`].join(",")},[`${We}-submenu, ${We}-submenu-inline`]:{transition:[`border-color ${mt} ${Et}`,`background ${mt} ${Et}`,`padding ${gt} ${Et}`].join(",")},[`${We}-submenu ${We}-sub`]:{cursor:"initial",transition:[`background ${mt} ${Et}`,`padding ${mt} ${Et}`].join(",")},[`${We}-title-content`]:{transition:`color ${mt}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${Be}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${We}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:le.padding}},[`${We}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${We}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ct,borderStyle:zn,borderWidth:0,borderTopWidth:lt,marginBlock:lt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),zt(le)),{[`${We}-item-group`]:{[`${We}-item-group-list`]:{margin:0,padding:0,[`${We}-item, ${We}-submenu-title`]:{paddingInline:`${(0,qe.unit)(le.calc(st).mul(2).equal())} ${(0,qe.unit)(jt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Vt,borderRadius:Zt,boxShadow:"none",transformOrigin:"0 0",[`&${We}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${We}`]:Object.assign(Object.assign(Object.assign({borderRadius:Zt},zt(le)),tt(le)),{[`${We}-item, ${We}-submenu > ${We}-submenu-title`]:{borderRadius:gn},[`${We}-submenu-title::after`]:{transition:`transform ${mt} ${Et}`}})},"\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:le.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:le.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:le.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:le.paddingXS}}}),tt(le)),{[`&-inline-collapsed ${We}-submenu-arrow,
&-inline ${We}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,qe.unit)(en)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,qe.unit)(le.calc(en).mul(-1).equal())})`}},[`${We}-submenu-open${We}-submenu-inline > ${We}-submenu-title > ${We}-submenu-arrow`]:{transform:`translateY(${(0,qe.unit)(le.calc(sn).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,qe.unit)(le.calc(en).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,qe.unit)(en)})`}}})},{[`${Be}-layout-header`]:{[We]:{lineHeight:"inherit"}}}]},Rt=le=>{var Be,We,st;const{colorPrimary:mt,colorError:gt,colorTextDisabled:Et,colorErrorBg:Lt,colorText:jt,colorTextDescription:Ct,colorBgContainer:lt,colorFillAlter:Vt,colorFillContent:Zt,lineWidth:gn,lineWidthBold:sn,controlItemBgActive:en,colorBgTextHover:zn,controlHeightLG:Fn,lineHeight:Ut,colorBgElevated:an,marginXXS:_n,padding:Vn,fontSize:It,controlHeightSM:Wt,fontSizeLG:on,colorTextLightSolid:vn,colorErrorHover:Yn}=le,Lr=(Be=le.activeBarWidth)!==null&&Be!==void 0?Be:0,ri=(We=le.activeBarBorderWidth)!==null&&We!==void 0?We:gn,zr=(st=le.itemMarginInline)!==null&&st!==void 0?st:le.marginXXS,Ir=new Ve.FastColor(vn).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:le.zIndexPopupBase+50,radiusItem:le.borderRadiusLG,itemBorderRadius:le.borderRadiusLG,radiusSubMenuItem:le.borderRadiusSM,subMenuItemBorderRadius:le.borderRadiusSM,colorItemText:jt,itemColor:jt,colorItemTextHover:jt,itemHoverColor:jt,colorItemTextHoverHorizontal:mt,horizontalItemHoverColor:mt,colorGroupTitle:Ct,groupTitleColor:Ct,colorItemTextSelected:mt,itemSelectedColor:mt,subMenuItemSelectedColor:mt,colorItemTextSelectedHorizontal:mt,horizontalItemSelectedColor:mt,colorItemBg:lt,itemBg:lt,colorItemBgHover:zn,itemHoverBg:zn,colorItemBgActive:Zt,itemActiveBg:en,colorSubItemBg:Vt,subMenuItemBg:Vt,colorItemBgSelected:en,itemSelectedBg:en,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:Lr,colorActiveBarHeight:sn,activeBarHeight:sn,colorActiveBarBorderSize:gn,activeBarBorderWidth:ri,colorItemTextDisabled:Et,itemDisabledColor:Et,colorDangerItemText:gt,dangerItemColor:gt,colorDangerItemTextHover:gt,dangerItemHoverColor:gt,colorDangerItemTextSelected:gt,dangerItemSelectedColor:gt,colorDangerItemBgActive:Lt,dangerItemActiveBg:Lt,colorDangerItemBgSelected:Lt,dangerItemSelectedBg:Lt,itemMarginInline:zr,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Fn,groupTitleLineHeight:Ut,collapsedWidth:Fn*2,popupBg:an,itemMarginBlock:_n,itemPaddingInline:Vn,horizontalLineHeight:`${Fn*1.15}px`,iconSize:It,iconMarginInlineEnd:Wt-It,collapsedIconSize:on,groupTitleFontSize:It,darkItemDisabledColor:new Ve.FastColor(vn).setA(.25).toRgbString(),darkItemColor:Ir,darkDangerItemColor:gt,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:vn,darkItemSelectedBg:mt,darkDangerItemSelectedBg:gt,darkItemHoverBg:"transparent",darkGroupTitleColor:Ir,darkItemHoverColor:vn,darkDangerItemHoverColor:Yn,darkDangerItemSelectedColor:vn,darkDangerItemActiveBg:gt,itemWidth:Lr?`calc(100% + ${ri}px)`:`calc(100% - ${zr*2}px)`}};var fn=function(le){let Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le,We=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,He.I$)("Menu",mt=>{const{colorBgElevated:gt,controlHeightLG:Et,fontSize:Lt,darkItemColor:jt,darkDangerItemColor:Ct,darkItemBg:lt,darkSubMenuItemBg:Vt,darkItemSelectedColor:Zt,darkItemSelectedBg:gn,darkDangerItemSelectedBg:sn,darkItemHoverBg:en,darkGroupTitleColor:zn,darkItemHoverColor:Fn,darkItemDisabledColor:Ut,darkDangerItemHoverColor:an,darkDangerItemSelectedColor:_n,darkDangerItemActiveBg:Vn,popupBg:It,darkPopupBg:Wt}=mt,on=mt.calc(Lt).div(7).mul(5).equal(),vn=(0,ht.mergeToken)(mt,{menuArrowSize:on,menuHorizontalHeight:mt.calc(Et).mul(1.15).equal(),menuArrowOffset:mt.calc(on).mul(.25).equal(),menuSubMenuBg:gt,calc:mt.calc,popupBg:It}),Yn=(0,ht.mergeToken)(vn,{itemColor:jt,itemHoverColor:Fn,groupTitleColor:zn,itemSelectedColor:Zt,subMenuItemSelectedColor:Zt,itemBg:lt,popupBg:Wt,subMenuItemBg:Vt,itemActiveBg:"transparent",itemSelectedBg:gn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:en,itemDisabledColor:Ut,dangerItemColor:Ct,dangerItemHoverColor:an,dangerItemSelectedColor:_n,dangerItemActiveBg:Vn,dangerItemSelectedBg:sn,menuSubMenuBg:Vt,horizontalItemSelectedColor:Zt,horizontalItemSelectedBg:gn});return[Ot(vn),Re(vn),$t(vn),Ze(vn,"light"),Ze(Yn,"dark"),it(vn),(0,ot.Z)(vn),(0,pt.oN)(vn,"slide-up"),(0,pt.oN)(vn,"slide-down"),(0,bt._y)(vn,"zoom-big")]},Rt,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:We,unitless:{groupTitleLineHeight:!0}})(le,Be)},Tt=ae(75030),Dt=le=>{var Be;const{popupClassName:We,icon:st,title:mt,theme:gt}=le,Et=x.useContext(Se),{prefixCls:Lt,inlineCollapsed:jt,theme:Ct}=Et,lt=(0,dt.Xl)();let Vt;if(!st)Vt=jt&&!lt.length&&mt&&typeof mt=="string"?x.createElement("div",{className:`${Lt}-inline-collapsed-noicon`},mt.charAt(0)):x.createElement("span",{className:`${Lt}-title-content`},mt);else{const sn=x.isValidElement(mt)&&mt.type==="span";Vt=x.createElement(x.Fragment,null,(0,oe.Tm)(st,{className:Le()(x.isValidElement(st)?(Be=st.props)===null||Be===void 0?void 0:Be.className:"",`${Lt}-item-icon`)}),sn?mt:x.createElement("span",{className:`${Lt}-title-content`},mt))}const Zt=x.useMemo(()=>Object.assign(Object.assign({},Et),{firstLevel:!1}),[Et]),[gn]=(0,Tt.Cn)("Menu");return x.createElement(Se.Provider,{value:Zt},x.createElement(dt.Wd,Object.assign({},(0,he.Z)(le,["icon"]),{title:Vt,popupClassName:Le()(Lt,We,`${Lt}-${gt||Ct}`),popupStyle:Object.assign({zIndex:gn},le.popupStyle)})))},En=function(le,Be){var We={};for(var st in le)Object.prototype.hasOwnProperty.call(le,st)&&Be.indexOf(st)<0&&(We[st]=le[st]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,st=Object.getOwnPropertySymbols(le);mt<st.length;mt++)Be.indexOf(st[mt])<0&&Object.prototype.propertyIsEnumerable.call(le,st[mt])&&(We[st[mt]]=le[st[mt]]);return We};function rn(le){return le===null||le===!1}const de={item:Qe,submenu:Dt,divider:Ce};var ie=(0,x.forwardRef)((le,Be)=>{var We;const st=x.useContext(je.Z),mt=st||{},{getPrefixCls:gt,getPopupContainer:Et,direction:Lt,menu:jt}=x.useContext(Oe.E_),Ct=gt(),{prefixCls:lt,className:Vt,style:Zt,theme:gn="light",expandIcon:sn,_internalDisableMenuItemTitleTooltip:en,inlineCollapsed:zn,siderCollapsed:Fn,rootClassName:Ut,mode:an,selectable:_n,onClick:Vn,overflowedIndicatorPopupClassName:It}=le,Wt=En(le,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),on=(0,he.Z)(Wt,["collapsedWidth"]);(We=mt.validator)===null||We===void 0||We.call(mt,{mode:an});const vn=(0,Ue.Z)(function(){var Sr;Vn==null||Vn.apply(void 0,arguments),(Sr=mt.onClick)===null||Sr===void 0||Sr.call(mt)}),Yn=mt.mode||an,Lr=_n!=null?_n:mt.selectable,ri=zn!=null?zn:Fn,zr={horizontal:{motionName:`${Ct}-slide-up`},inline:(0,xe.Z)(Ct),other:{motionName:`${Ct}-zoom-big`}},Ir=gt("menu",lt||mt.prefixCls),tr=(0,ve.Z)(Ir),[vr,Qn,qn]=fn(Ir,tr,!st),lr=Le()(`${Ir}-${gn}`,jt==null?void 0:jt.className,Vt),$n=x.useMemo(()=>{var Sr,kr;if(typeof sn=="function"||rn(sn))return sn||null;if(typeof mt.expandIcon=="function"||rn(mt.expandIcon))return mt.expandIcon||null;if(typeof(jt==null?void 0:jt.expandIcon)=="function"||rn(jt==null?void 0:jt.expandIcon))return(jt==null?void 0:jt.expandIcon)||null;const gi=(Sr=sn!=null?sn:mt==null?void 0:mt.expandIcon)!==null&&Sr!==void 0?Sr:jt==null?void 0:jt.expandIcon;return(0,oe.Tm)(gi,{className:Le()(`${Ir}-submenu-expand-icon`,x.isValidElement(gi)?(kr=gi.props)===null||kr===void 0?void 0:kr.className:void 0)})},[sn,mt==null?void 0:mt.expandIcon,jt==null?void 0:jt.expandIcon,Ir]),Br=x.useMemo(()=>({prefixCls:Ir,inlineCollapsed:ri||!1,direction:Lt,firstLevel:!0,theme:gn,mode:Yn,disableMenuItemTitleTooltip:en}),[Ir,ri,Lt,en,gn]);return vr(x.createElement(je.Z.Provider,{value:null},x.createElement(Se.Provider,{value:Br},x.createElement(dt.ZP,Object.assign({getPopupContainer:Et,overflowedIndicator:x.createElement(Je.Z,null),overflowedIndicatorPopupClassName:Le()(Ir,`${Ir}-${gn}`,It),mode:Yn,selectable:Lr,onClick:vn},on,{inlineCollapsed:ri,style:Object.assign(Object.assign({},jt==null?void 0:jt.style),Zt),className:lr,prefixCls:Ir,direction:Lt,defaultMotions:zr,expandIcon:$n,ref:Be,rootClassName:Le()(Ut,Qn,mt.rootClassName,qn,tr),_internalComponents:de})))))});const ee=(0,x.forwardRef)((le,Be)=>{const We=(0,x.useRef)(null),st=x.useContext(Ie.D);return(0,x.useImperativeHandle)(Be,()=>({menu:We.current,focus:mt=>{var gt;(gt=We.current)===null||gt===void 0||gt.focus(mt)}})),x.createElement(ie,Object.assign({ref:We},le,st))});ee.Item=Qe,ee.SubMenu=Dt,ee.Divider=Ce,ee.ItemGroup=dt.BW;var se=ee},31709:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return jt}});var x=ae(59301),dt=ae(54476),Ie={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"},Je=Ie,ze=ae(7657),Le=function(lt,Vt){return x.createElement(ze.Z,(0,dt.Z)({},lt,{ref:Vt,icon:Je}))},Ue=x.forwardRef(Le),he=Ue,xe=ae(49198),oe=ae(33853),Oe=ae(38819),ve=ae(92310),Me=ae.n(ve),Se=ae(20068),Te=ae(76190),we=ae(33885),Ce=ae(42978),Ee=ae(18929),ke=ae(10228),Ke=ae(26112),Qe=ae(48736),je=ae(17119),qe=[10,20,50,100],Ve=function(lt){var Vt=lt.pageSizeOptions,Zt=Vt===void 0?qe:Vt,gn=lt.locale,sn=lt.changeSize,en=lt.pageSize,zn=lt.goButton,Fn=lt.quickGo,Ut=lt.rootPrefixCls,an=lt.disabled,_n=lt.buildOptionText,Vn=lt.showSizeChanger,It=lt.sizeChangerRender,Wt=x.useState(""),on=(0,Ce.Z)(Wt,2),vn=on[0],Yn=on[1],Lr=function(){return!vn||Number.isNaN(vn)?void 0:Number(vn)},ri=typeof _n=="function"?_n:function(Br){return"".concat(Br," ").concat(gn.items_per_page)},zr=function(Sr){Yn(Sr.target.value)},Ir=function(Sr){zn||vn===""||(Yn(""),!(Sr.relatedTarget&&(Sr.relatedTarget.className.indexOf("".concat(Ut,"-item-link"))>=0||Sr.relatedTarget.className.indexOf("".concat(Ut,"-item"))>=0))&&(Fn==null||Fn(Lr())))},tr=function(Sr){vn!==""&&(Sr.keyCode===ke.Z.ENTER||Sr.type==="click")&&(Yn(""),Fn==null||Fn(Lr()))},vr=function(){return Zt.some(function(Sr){return Sr.toString()===en.toString()})?Zt:Zt.concat([en]).sort(function(Sr,kr){var gi=Number.isNaN(Number(Sr))?0:Number(Sr),Ai=Number.isNaN(Number(kr))?0:Number(kr);return gi-Ai})},Qn="".concat(Ut,"-options");if(!Vn&&!Fn)return null;var qn=null,lr=null,$n=null;return Vn&&It&&(qn=It({disabled:an,size:en,onSizeChange:function(Sr){sn==null||sn(Number(Sr))},"aria-label":gn.page_size,className:"".concat(Qn,"-size-changer"),options:vr().map(function(Br){return{label:ri(Br),value:Br}})})),Fn&&(zn&&($n=typeof zn=="boolean"?x.createElement("button",{type:"button",onClick:tr,onKeyUp:tr,disabled:an,className:"".concat(Qn,"-quick-jumper-button")},gn.jump_to_confirm):x.createElement("span",{onClick:tr,onKeyUp:tr},zn)),lr=x.createElement("div",{className:"".concat(Qn,"-quick-jumper")},gn.jump_to,x.createElement("input",{disabled:an,type:"text",value:vn,onChange:zr,onKeyUp:tr,onBlur:Ir,"aria-label":gn.page}),gn.page,$n)),x.createElement("li",{className:Qn},qn,lr)},ct=Ve,ot=function(lt){var Vt=lt.rootPrefixCls,Zt=lt.page,gn=lt.active,sn=lt.className,en=lt.showTitle,zn=lt.onClick,Fn=lt.onKeyPress,Ut=lt.itemRender,an="".concat(Vt,"-item"),_n=Me()(an,"".concat(an,"-").concat(Zt),(0,Se.Z)((0,Se.Z)({},"".concat(an,"-active"),gn),"".concat(an,"-disabled"),!Zt),sn),Vn=function(){zn(Zt)},It=function(vn){Fn(vn,zn,Zt)},Wt=Ut(Zt,"page",x.createElement("a",{rel:"nofollow"},Zt));return Wt?x.createElement("li",{title:en?String(Zt):null,className:_n,onClick:Vn,onKeyDown:It,tabIndex:0},Wt):null},pt=ot,bt=function(lt,Vt,Zt){return Zt};function He(){}function ht(Ct){var lt=Number(Ct);return typeof lt=="number"&&!Number.isNaN(lt)&&isFinite(lt)&&Math.floor(lt)===lt}function _e(Ct,lt,Vt){var Zt=typeof Ct=="undefined"?lt:Ct;return Math.floor((Vt-1)/Zt)+1}var Re=function(lt){var Vt=lt.prefixCls,Zt=Vt===void 0?"rc-pagination":Vt,gn=lt.selectPrefixCls,sn=gn===void 0?"rc-select":gn,en=lt.className,zn=lt.current,Fn=lt.defaultCurrent,Ut=Fn===void 0?1:Fn,an=lt.total,_n=an===void 0?0:an,Vn=lt.pageSize,It=lt.defaultPageSize,Wt=It===void 0?10:It,on=lt.onChange,vn=on===void 0?He:on,Yn=lt.hideOnSinglePage,Lr=lt.align,ri=lt.showPrevNextJumpers,zr=ri===void 0?!0:ri,Ir=lt.showQuickJumper,tr=lt.showLessItems,vr=lt.showTitle,Qn=vr===void 0?!0:vr,qn=lt.onShowSizeChange,lr=qn===void 0?He:qn,$n=lt.locale,Br=$n===void 0?je.Z:$n,Sr=lt.style,kr=lt.totalBoundaryShowSizeChanger,gi=kr===void 0?50:kr,Ai=lt.disabled,di=lt.simple,Ti=lt.showTotal,Ei=lt.showSizeChanger,no=Ei===void 0?_n>gi:Ei,zi=lt.sizeChangerRender,fr=lt.pageSizeOptions,Ur=lt.itemRender,vi=Ur===void 0?bt:Ur,Gt=lt.jumpPrevIcon,un=lt.jumpNextIcon,wn=lt.prevIcon,Mt=lt.nextIcon,dn=x.useRef(null),Kt=(0,Ee.Z)(10,{value:Vn,defaultValue:Wt}),pn=(0,Ce.Z)(Kt,2),Nn=pn[0],Pr=pn[1],Yr=(0,Ee.Z)(1,{value:zn,defaultValue:Ut,postState:function(go){return Math.max(1,Math.min(go,_e(void 0,Nn,_n)))}}),ci=(0,Ce.Z)(Yr,2),or=ci[0],cr=ci[1],sr=x.useState(or),ti=(0,Ce.Z)(sr,2),nr=ti[0],Rn=ti[1];(0,x.useEffect)(function(){Rn(or)},[or]);var Ar=vn!==He,Bi="current"in lt,Zn=Math.max(1,or-(tr?3:5)),yn=Math.min(_e(void 0,Nn,_n),or+(tr?3:5));function Wn(Mo,go){var Fa=Mo||x.createElement("button",{type:"button","aria-label":go,className:"".concat(Zt,"-item-link")});return typeof Mo=="function"&&(Fa=x.createElement(Mo,(0,we.Z)({},lt))),Fa}function rr(Mo){var go=Mo.target.value,Fa=_e(void 0,Nn,_n),gs;return go===""?gs=go:Number.isNaN(Number(go))?gs=nr:go>=Fa?gs=Fa:gs=Number(go),gs}function pr(Mo){return ht(Mo)&&Mo!==or&&ht(_n)&&_n>0}var Kr=_n>Nn?Ir:!1;function Fi(Mo){(Mo.keyCode===ke.Z.UP||Mo.keyCode===ke.Z.DOWN)&&Mo.preventDefault()}function fi(Mo){var go=rr(Mo);switch(go!==nr&&Rn(go),Mo.keyCode){case ke.Z.ENTER:bi(go);break;case ke.Z.UP:bi(go-1);break;case ke.Z.DOWN:bi(go+1);break;default:break}}function _i(Mo){bi(rr(Mo))}function hi(Mo){var go=_e(Mo,Nn,_n),Fa=or>go&&go!==0?go:or;Pr(Mo),Rn(Fa),lr==null||lr(or,Mo),cr(Fa),vn==null||vn(Fa,Mo)}function bi(Mo){if(pr(Mo)&&!Ai){var go=_e(void 0,Nn,_n),Fa=Mo;return Mo>go?Fa=go:Mo<1&&(Fa=1),Fa!==nr&&Rn(Fa),cr(Fa),vn==null||vn(Fa,Nn),Fa}return or}var wi=or>1,Yi=or<_e(void 0,Nn,_n);function pi(){wi&&bi(or-1)}function yi(){Yi&&bi(or+1)}function Ji(){bi(Zn)}function io(){bi(yn)}function ji(Mo,go){if(Mo.key==="Enter"||Mo.charCode===ke.Z.ENTER||Mo.keyCode===ke.Z.ENTER){for(var Fa=arguments.length,gs=new Array(Fa>2?Fa-2:0),nl=2;nl<Fa;nl++)gs[nl-2]=arguments[nl];go.apply(void 0,gs)}}function So(Mo){ji(Mo,pi)}function ki(Mo){ji(Mo,yi)}function ko(Mo){ji(Mo,Ji)}function co(Mo){ji(Mo,io)}function Xo(Mo){var go=vi(Mo,"prev",Wn(wn,"prev page"));return x.isValidElement(go)?x.cloneElement(go,{disabled:!wi}):go}function wo(Mo){var go=vi(Mo,"next",Wn(Mt,"next page"));return x.isValidElement(go)?x.cloneElement(go,{disabled:!Yi}):go}function eo(Mo){(Mo.type==="click"||Mo.keyCode===ke.Z.ENTER)&&bi(nr)}var bo=null,Go=(0,Ke.Z)(lt,{aria:!0,data:!0}),Tn=Ti&&x.createElement("li",{className:"".concat(Zt,"-total-text")},Ti(_n,[_n===0?0:(or-1)*Nn+1,or*Nn>_n?_n:or*Nn])),Lo=null,Gi=_e(void 0,Nn,_n);if(Yn&&_n<=Nn)return null;var jr=[],Jr={rootPrefixCls:Zt,onClick:bi,onKeyPress:ji,showTitle:Qn,itemRender:vi,page:-1},ni=or-1>0?or-1:0,Wr=or+1<Gi?or+1:Gi,Ui=Ir&&Ir.goButton,to=(0,Te.Z)(di)==="object"?di.readOnly:!di,$r=Ui,oi=null;di&&(Ui&&(typeof Ui=="boolean"?$r=x.createElement("button",{type:"button",onClick:eo,onKeyUp:eo},Br.jump_to_confirm):$r=x.createElement("span",{onClick:eo,onKeyUp:eo},Ui),$r=x.createElement("li",{title:Qn?"".concat(Br.jump_to).concat(or,"/").concat(Gi):null,className:"".concat(Zt,"-simple-pager")},$r)),oi=x.createElement("li",{title:Qn?"".concat(or,"/").concat(Gi):null,className:"".concat(Zt,"-simple-pager")},to?nr:x.createElement("input",{type:"text","aria-label":Br.jump_to,value:nr,disabled:Ai,onKeyDown:Fi,onKeyUp:fi,onChange:fi,onBlur:_i,size:3}),x.createElement("span",{className:"".concat(Zt,"-slash")},"/"),Gi));var yr=tr?1:2;if(Gi<=3+yr*2){Gi||jr.push(x.createElement(pt,(0,dt.Z)({},Jr,{key:"noPager",page:1,className:"".concat(Zt,"-item-disabled")})));for(var qr=1;qr<=Gi;qr+=1)jr.push(x.createElement(pt,(0,dt.Z)({},Jr,{key:qr,page:qr,active:or===qr})))}else{var Ao=tr?Br.prev_3:Br.prev_5,Jo=tr?Br.next_3:Br.next_5,_o=vi(Zn,"jump-prev",Wn(Gt,"prev page")),pa=vi(yn,"jump-next",Wn(un,"next page"));zr&&(bo=_o?x.createElement("li",{title:Qn?Ao:null,key:"prev",onClick:Ji,tabIndex:0,onKeyDown:ko,className:Me()("".concat(Zt,"-jump-prev"),(0,Se.Z)({},"".concat(Zt,"-jump-prev-custom-icon"),!!Gt))},_o):null,Lo=pa?x.createElement("li",{title:Qn?Jo:null,key:"next",onClick:io,tabIndex:0,onKeyDown:co,className:Me()("".concat(Zt,"-jump-next"),(0,Se.Z)({},"".concat(Zt,"-jump-next-custom-icon"),!!un))},pa):null);var No=Math.max(1,or-yr),qo=Math.min(or+yr,Gi);or-1<=yr&&(qo=1+yr*2),Gi-or<=yr&&(No=Gi-yr*2);for(var Ro=No;Ro<=qo;Ro+=1)jr.push(x.createElement(pt,(0,dt.Z)({},Jr,{key:Ro,page:Ro,active:or===Ro})));if(or-1>=yr*2&&or!==3&&(jr[0]=x.cloneElement(jr[0],{className:Me()("".concat(Zt,"-item-after-jump-prev"),jr[0].props.className)}),jr.unshift(bo)),Gi-or>=yr*2&&or!==Gi-2){var oa=jr[jr.length-1];jr[jr.length-1]=x.cloneElement(oa,{className:Me()("".concat(Zt,"-item-before-jump-next"),oa.props.className)}),jr.push(Lo)}No!==1&&jr.unshift(x.createElement(pt,(0,dt.Z)({},Jr,{key:1,page:1}))),qo!==Gi&&jr.push(x.createElement(pt,(0,dt.Z)({},Jr,{key:Gi,page:Gi})))}var da=Xo(ni);if(da){var Ka=!wi||!Gi;da=x.createElement("li",{title:Qn?Br.prev_page:null,onClick:pi,tabIndex:Ka?null:0,onKeyDown:So,className:Me()("".concat(Zt,"-prev"),(0,Se.Z)({},"".concat(Zt,"-disabled"),Ka)),"aria-disabled":Ka},da)}var _s=wo(Wr);if(_s){var js,as;di?(js=!Yi,as=wi?0:null):(js=!Yi||!Gi,as=js?null:0),_s=x.createElement("li",{title:Qn?Br.next_page:null,onClick:yi,tabIndex:as,onKeyDown:ki,className:Me()("".concat(Zt,"-next"),(0,Se.Z)({},"".concat(Zt,"-disabled"),js)),"aria-disabled":js},_s)}var fs=Me()(Zt,en,(0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)({},"".concat(Zt,"-start"),Lr==="start"),"".concat(Zt,"-center"),Lr==="center"),"".concat(Zt,"-end"),Lr==="end"),"".concat(Zt,"-simple"),di),"".concat(Zt,"-disabled"),Ai));return x.createElement("ul",(0,dt.Z)({className:fs,style:Sr,ref:dn},Go),Tn,da,di?oi:jr,_s,x.createElement(ct,{locale:Br,rootPrefixCls:Zt,disabled:Ai,selectPrefixCls:sn,changeSize:hi,pageSize:Nn,pageSizeOptions:fr,quickGo:Kr?bi:null,goButton:$r,showSizeChanger:no,sizeChangerRender:zi}))},Nt=Re,it=ae(61852),at=ae(48755),Bt=ae(31756),Ze=ae(13783),De=ae(9017),ut=ae(82326),$t=ae(57700),zt=ae(36237),tt=ae(53075),Ot=ae(64910),Rt=ae(39082),fn=ae(63356),Tt=ae(51636),mn=ae(16931);const Dt=Ct=>{const{componentCls:lt}=Ct;return{[`${lt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${lt}-item-link`]:{color:Ct.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${lt}-item-link`]:{color:Ct.colorTextDisabled,cursor:"not-allowed"}}},[`&${lt}-disabled`]:{cursor:"not-allowed",[`${lt}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ct.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ct.colorBorder,backgroundColor:Ct.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ct.itemActiveBgDisabled},a:{color:Ct.itemActiveColorDisabled}}},[`${lt}-item-link`]:{color:Ct.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${lt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${lt}-simple-pager`]:{color:Ct.colorTextDisabled},[`${lt}-jump-prev, ${lt}-jump-next`]:{[`${lt}-item-link-icon`]:{opacity:0},[`${lt}-item-ellipsis`]:{opacity:1}}},[`&${lt}-simple`]:{[`${lt}-prev, ${lt}-next`]:{[`&${lt}-disabled ${lt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},En=Ct=>{const{componentCls:lt}=Ct;return{[`&${lt}-mini ${lt}-total-text, &${lt}-mini ${lt}-simple-pager`]:{height:Ct.itemSizeSM,lineHeight:(0,zt.unit)(Ct.itemSizeSM)},[`&${lt}-mini ${lt}-item`]:{minWidth:Ct.itemSizeSM,height:Ct.itemSizeSM,margin:0,lineHeight:(0,zt.unit)(Ct.calc(Ct.itemSizeSM).sub(2).equal())},[`&${lt}-mini ${lt}-prev, &${lt}-mini ${lt}-next`]:{minWidth:Ct.itemSizeSM,height:Ct.itemSizeSM,margin:0,lineHeight:(0,zt.unit)(Ct.itemSizeSM)},[`&${lt}-mini:not(${lt}-disabled)`]:{[`${lt}-prev, ${lt}-next`]:{[`&:hover ${lt}-item-link`]:{backgroundColor:Ct.colorBgTextHover},[`&:active ${lt}-item-link`]:{backgroundColor:Ct.colorBgTextActive},[`&${lt}-disabled:hover ${lt}-item-link`]:{backgroundColor:"transparent"}}},[`
&${lt}-mini ${lt}-prev ${lt}-item-link,
&${lt}-mini ${lt}-next ${lt}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ct.itemSizeSM,lineHeight:(0,zt.unit)(Ct.itemSizeSM)}},[`&${lt}-mini ${lt}-jump-prev, &${lt}-mini ${lt}-jump-next`]:{height:Ct.itemSizeSM,marginInlineEnd:0,lineHeight:(0,zt.unit)(Ct.itemSizeSM)},[`&${lt}-mini ${lt}-options`]:{marginInlineStart:Ct.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Ct.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Ct.itemSizeSM,lineHeight:(0,zt.unit)(Ct.itemSizeSM),input:Object.assign(Object.assign({},(0,tt.x0)(Ct)),{width:Ct.paginationMiniQuickJumperInputWidth,height:Ct.controlHeightSM})}}}},rn=Ct=>{const{componentCls:lt}=Ct;return{[`
&${lt}-simple ${lt}-prev,
&${lt}-simple ${lt}-next
`]:{height:Ct.itemSizeSM,lineHeight:(0,zt.unit)(Ct.itemSizeSM),verticalAlign:"top",[`${lt}-item-link`]:{height:Ct.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ct.colorBgTextHover},"&:active":{backgroundColor:Ct.colorBgTextActive},"&::after":{height:Ct.itemSizeSM,lineHeight:(0,zt.unit)(Ct.itemSizeSM)}}},[`&${lt}-simple ${lt}-simple-pager`]:{display:"inline-block",height:Ct.itemSizeSM,marginInlineEnd:Ct.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,zt.unit)(Ct.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:Ct.itemInputBg,border:`${(0,zt.unit)(Ct.lineWidth)} ${Ct.lineType} ${Ct.colorBorder}`,borderRadius:Ct.borderRadius,outline:"none",transition:`border-color ${Ct.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ct.colorPrimary},"&:focus":{borderColor:Ct.colorPrimaryHover,boxShadow:`${(0,zt.unit)(Ct.inputOutlineOffset)} 0 ${(0,zt.unit)(Ct.controlOutlineWidth)} ${Ct.controlOutline}`},"&[disabled]":{color:Ct.colorTextDisabled,backgroundColor:Ct.colorBgContainerDisabled,borderColor:Ct.colorBorder,cursor:"not-allowed"}}}}},de=Ct=>{const{componentCls:lt}=Ct;return{[`${lt}-jump-prev, ${lt}-jump-next`]:{outline:0,[`${lt}-item-container`]:{position:"relative",[`${lt}-item-link-icon`]:{color:Ct.colorPrimary,fontSize:Ct.fontSizeSM,opacity:0,transition:`all ${Ct.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${lt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ct.colorTextDisabled,letterSpacing:Ct.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ct.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ct.motionDurationMid}`}},"&:hover":{[`${lt}-item-link-icon`]:{opacity:1},[`${lt}-item-ellipsis`]:{opacity:0}}},[`
${lt}-prev,
${lt}-jump-prev,
${lt}-jump-next
`]:{marginInlineEnd:Ct.marginXS},[`
${lt}-prev,
${lt}-next,
${lt}-jump-prev,
${lt}-jump-next
`]:{display:"inline-block",minWidth:Ct.itemSize,height:Ct.itemSize,color:Ct.colorText,fontFamily:Ct.fontFamily,lineHeight:(0,zt.unit)(Ct.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ct.borderRadius,cursor:"pointer",transition:`all ${Ct.motionDurationMid}`},[`${lt}-prev, ${lt}-next`]:{outline:0,button:{color:Ct.colorText,cursor:"pointer",userSelect:"none"},[`${lt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ct.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,zt.unit)(Ct.lineWidth)} ${Ct.lineType} transparent`,borderRadius:Ct.borderRadius,outline:"none",transition:`all ${Ct.motionDurationMid}`},[`&:hover ${lt}-item-link`]:{backgroundColor:Ct.colorBgTextHover},[`&:active ${lt}-item-link`]:{backgroundColor:Ct.colorBgTextActive},[`&${lt}-disabled:hover`]:{[`${lt}-item-link`]:{backgroundColor:"transparent"}}},[`${lt}-slash`]:{marginInlineEnd:Ct.paginationSlashMarginInlineEnd,marginInlineStart:Ct.paginationSlashMarginInlineStart},[`${lt}-options`]:{display:"inline-block",marginInlineStart:Ct.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ct.controlHeight,marginInlineStart:Ct.marginXS,lineHeight:(0,zt.unit)(Ct.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,tt.ik)(Ct)),(0,Rt.$U)(Ct,{borderColor:Ct.colorBorder,hoverBorderColor:Ct.colorPrimaryHover,activeBorderColor:Ct.colorPrimary,activeShadow:Ct.activeShadow})),{"&[disabled]":Object.assign({},(0,Rt.Xy)(Ct)),width:Ct.calc(Ct.controlHeightLG).mul(1.25).equal(),height:Ct.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ct.marginXS,marginInlineEnd:Ct.marginXS})}}}},pe=Ct=>{const{componentCls:lt}=Ct;return{[`${lt}-item`]:{display:"inline-block",minWidth:Ct.itemSize,height:Ct.itemSize,marginInlineEnd:Ct.marginXS,fontFamily:Ct.fontFamily,lineHeight:(0,zt.unit)(Ct.calc(Ct.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:Ct.itemBg,border:`${(0,zt.unit)(Ct.lineWidth)} ${Ct.lineType} transparent`,borderRadius:Ct.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,zt.unit)(Ct.paginationItemPaddingInline)}`,color:Ct.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${lt}-item-active)`]:{"&:hover":{transition:`all ${Ct.motionDurationMid}`,backgroundColor:Ct.colorBgTextHover},"&:active":{backgroundColor:Ct.colorBgTextActive}},"&-active":{fontWeight:Ct.fontWeightStrong,backgroundColor:Ct.itemActiveBg,borderColor:Ct.colorPrimary,a:{color:Ct.colorPrimary},"&:hover":{borderColor:Ct.colorPrimaryHover},"&:hover a":{color:Ct.colorPrimaryHover}}}}},ie=Ct=>{const{componentCls:lt}=Ct;return{[lt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,fn.Wf)(Ct)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${lt}-total-text`]:{display:"inline-block",height:Ct.itemSize,marginInlineEnd:Ct.marginXS,lineHeight:(0,zt.unit)(Ct.calc(Ct.itemSize).sub(2).equal()),verticalAlign:"middle"}}),pe(Ct)),de(Ct)),rn(Ct)),En(Ct)),Dt(Ct)),{[`@media only screen and (max-width: ${Ct.screenLG}px)`]:{[`${lt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ct.screenSM}px)`]:{[`${lt}-options`]:{display:"none"}}}),[`&${Ct.componentCls}-rtl`]:{direction:"rtl"}}},ee=Ct=>{const{componentCls:lt}=Ct;return{[`${lt}:not(${lt}-disabled)`]:{[`${lt}-item`]:Object.assign({},(0,fn.Qy)(Ct)),[`${lt}-jump-prev, ${lt}-jump-next`]:{"&:focus-visible":Object.assign({[`${lt}-item-link-icon`]:{opacity:1},[`${lt}-item-ellipsis`]:{opacity:0}},(0,fn.oN)(Ct))},[`${lt}-prev, ${lt}-next`]:{[`&:focus-visible ${lt}-item-link`]:Object.assign({},(0,fn.oN)(Ct))}}}},se=Ct=>Object.assign({itemBg:Ct.colorBgContainer,itemSize:Ct.controlHeight,itemSizeSM:Ct.controlHeightSM,itemActiveBg:Ct.colorBgContainer,itemLinkBg:Ct.colorBgContainer,itemActiveColorDisabled:Ct.colorTextDisabled,itemActiveBgDisabled:Ct.controlItemBgActiveDisabled,itemInputBg:Ct.colorBgContainer,miniOptionsSizeChangerTop:0},(0,Ot.T)(Ct)),le=Ct=>(0,Tt.mergeToken)(Ct,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ct.calc(Ct.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:Ct.calc(Ct.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:Ct.calc(Ct.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:Ct.calc(Ct.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:Ct.marginSM,paginationSlashMarginInlineEnd:Ct.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Ot.e)(Ct));var Be=(0,mn.I$)("Pagination",Ct=>{const lt=le(Ct);return[ie(lt),ee(lt)]},se);const We=Ct=>{const{componentCls:lt}=Ct;return{[`${lt}${lt}-bordered${lt}-disabled:not(${lt}-mini)`]:{"&, &:hover":{[`${lt}-item-link`]:{borderColor:Ct.colorBorder}},"&:focus-visible":{[`${lt}-item-link`]:{borderColor:Ct.colorBorder}},[`${lt}-item, ${lt}-item-link`]:{backgroundColor:Ct.colorBgContainerDisabled,borderColor:Ct.colorBorder,[`&:hover:not(${lt}-item-active)`]:{backgroundColor:Ct.colorBgContainerDisabled,borderColor:Ct.colorBorder,a:{color:Ct.colorTextDisabled}},[`&${lt}-item-active`]:{backgroundColor:Ct.itemActiveBgDisabled}},[`${lt}-prev, ${lt}-next`]:{"&:hover button":{backgroundColor:Ct.colorBgContainerDisabled,borderColor:Ct.colorBorder,color:Ct.colorTextDisabled},[`${lt}-item-link`]:{backgroundColor:Ct.colorBgContainerDisabled,borderColor:Ct.colorBorder}}},[`${lt}${lt}-bordered:not(${lt}-mini)`]:{[`${lt}-prev, ${lt}-next`]:{"&:hover button":{borderColor:Ct.colorPrimaryHover,backgroundColor:Ct.itemBg},[`${lt}-item-link`]:{backgroundColor:Ct.itemLinkBg,borderColor:Ct.colorBorder},[`&:hover ${lt}-item-link`]:{borderColor:Ct.colorPrimary,backgroundColor:Ct.itemBg,color:Ct.colorPrimary},[`&${lt}-disabled`]:{[`${lt}-item-link`]:{borderColor:Ct.colorBorder,color:Ct.colorTextDisabled}}},[`${lt}-item`]:{backgroundColor:Ct.itemBg,border:`${(0,zt.unit)(Ct.lineWidth)} ${Ct.lineType} ${Ct.colorBorder}`,[`&:hover:not(${lt}-item-active)`]:{borderColor:Ct.colorPrimary,backgroundColor:Ct.itemBg,a:{color:Ct.colorPrimary}},"&-active":{borderColor:Ct.colorPrimary}}}}};var st=(0,mn.bk)(["Pagination","bordered"],Ct=>{const lt=le(Ct);return[We(lt)]},se);function mt(Ct){return(0,x.useMemo)(()=>typeof Ct=="boolean"?[Ct,{}]:Ct&&typeof Ct=="object"?[!0,Ct]:[void 0,void 0],[Ct])}var gt=function(Ct,lt){var Vt={};for(var Zt in Ct)Object.prototype.hasOwnProperty.call(Ct,Zt)&&lt.indexOf(Zt)<0&&(Vt[Zt]=Ct[Zt]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gn=0,Zt=Object.getOwnPropertySymbols(Ct);gn<Zt.length;gn++)lt.indexOf(Zt[gn])<0&&Object.prototype.propertyIsEnumerable.call(Ct,Zt[gn])&&(Vt[Zt[gn]]=Ct[Zt[gn]]);return Vt},Lt=Ct=>{const{align:lt,prefixCls:Vt,selectPrefixCls:Zt,className:gn,rootClassName:sn,style:en,size:zn,locale:Fn,responsive:Ut,showSizeChanger:an,selectComponentClass:_n,pageSizeOptions:Vn}=Ct,It=gt(Ct,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:Wt}=(0,Ze.Z)(Ut),[,on]=(0,$t.ZP)(),{getPrefixCls:vn,direction:Yn,showSizeChanger:Lr,className:ri,style:zr}=(0,at.dj)("pagination"),Ir=vn("pagination",Vt),[tr,vr,Qn]=Be(Ir),qn=(0,Bt.Z)(zn),lr=qn==="small"||!!(Wt&&!qn&&Ut),[$n]=(0,De.Z)("Pagination",it.Z),Br=Object.assign(Object.assign({},$n),Fn),[Sr,kr]=mt(an),[gi,Ai]=mt(Lr),di=Sr!=null?Sr:gi,Ti=kr!=null?kr:Ai,Ei=_n||ut.default,no=x.useMemo(()=>Vn?Vn.map(un=>Number(un)):void 0,[Vn]),zi=un=>{var wn;const{disabled:Mt,size:dn,onSizeChange:Kt,"aria-label":pn,className:Nn,options:Pr}=un,{className:Yr,onChange:ci}=Ti||{},or=(wn=Pr.find(cr=>String(cr.value)===String(dn)))===null||wn===void 0?void 0:wn.value;return x.createElement(Ei,Object.assign({disabled:Mt,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:cr=>cr.parentNode,"aria-label":pn,options:Pr},Ti,{value:or,onChange:(cr,sr)=>{Kt==null||Kt(cr),ci==null||ci(cr,sr)},size:lr?"small":"middle",className:Me()(Nn,Yr)}))},fr=x.useMemo(()=>{const un=x.createElement("span",{className:`${Ir}-item-ellipsis`},"\u2022\u2022\u2022"),wn=x.createElement("button",{className:`${Ir}-item-link`,type:"button",tabIndex:-1},Yn==="rtl"?x.createElement(Oe.Z,null):x.createElement(oe.Z,null)),Mt=x.createElement("button",{className:`${Ir}-item-link`,type:"button",tabIndex:-1},Yn==="rtl"?x.createElement(oe.Z,null):x.createElement(Oe.Z,null)),dn=x.createElement("a",{className:`${Ir}-item-link`},x.createElement("div",{className:`${Ir}-item-container`},Yn==="rtl"?x.createElement(xe.Z,{className:`${Ir}-item-link-icon`}):x.createElement(he,{className:`${Ir}-item-link-icon`}),un)),Kt=x.createElement("a",{className:`${Ir}-item-link`},x.createElement("div",{className:`${Ir}-item-container`},Yn==="rtl"?x.createElement(he,{className:`${Ir}-item-link-icon`}):x.createElement(xe.Z,{className:`${Ir}-item-link-icon`}),un));return{prevIcon:wn,nextIcon:Mt,jumpPrevIcon:dn,jumpNextIcon:Kt}},[Yn,Ir]),Ur=vn("select",Zt),vi=Me()({[`${Ir}-${lt}`]:!!lt,[`${Ir}-mini`]:lr,[`${Ir}-rtl`]:Yn==="rtl",[`${Ir}-bordered`]:on.wireframe},ri,gn,sn,vr,Qn),Gt=Object.assign(Object.assign({},zr),en);return tr(x.createElement(x.Fragment,null,on.wireframe&&x.createElement(st,{prefixCls:Ir}),x.createElement(Nt,Object.assign({},fr,It,{style:Gt,prefixCls:Ir,selectPrefixCls:Ur,className:vi,locale:Br,pageSizeOptions:no,showSizeChanger:di,sizeChangerRender:zi}))))},jt=Lt},89787:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return Fn}});var x=ae(59301),dt=ae(17835),Ie=ae(29679),Je=ae(40001),ze=ae(19248),Le=ae(99267),Ue=ae(92310),he=ae.n(Ue),xe=ae(2738),oe=ae(48755),Oe=ae(54476),ve=ae(33885),Me=ae(75931),Se={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Te=function(){var an=(0,x.useRef)([]),_n=(0,x.useRef)(null);return(0,x.useEffect)(function(){var Vn=Date.now(),It=!1;an.current.forEach(function(Wt){if(Wt){It=!0;var on=Wt.style;on.transitionDuration=".3s, .3s, .3s, .06s",_n.current&&Vn-_n.current<100&&(on.transitionDuration="0s, 0s")}}),It&&(_n.current=Date.now())}),an.current},we=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Ce=function(an){var _n=(0,ve.Z)((0,ve.Z)({},Se),an),Vn=_n.className,It=_n.percent,Wt=_n.prefixCls,on=_n.strokeColor,vn=_n.strokeLinecap,Yn=_n.strokeWidth,Lr=_n.style,ri=_n.trailColor,zr=_n.trailWidth,Ir=_n.transition,tr=(0,Me.Z)(_n,we);delete tr.gapPosition;var vr=Array.isArray(It)?It:[It],Qn=Array.isArray(on)?on:[on],qn=Te(),lr=Yn/2,$n=100-Yn/2,Br="M ".concat(vn==="round"?lr:0,",").concat(lr,`
L `).concat(vn==="round"?$n:100,",").concat(lr),Sr="0 0 100 ".concat(Yn),kr=0;return x.createElement("svg",(0,Oe.Z)({className:he()("".concat(Wt,"-line"),Vn),viewBox:Sr,preserveAspectRatio:"none",style:Lr},tr),x.createElement("path",{className:"".concat(Wt,"-line-trail"),d:Br,strokeLinecap:vn,stroke:ri,strokeWidth:zr||Yn,fillOpacity:"0"}),vr.map(function(gi,Ai){var di=1;switch(vn){case"round":di=1-Yn/100;break;case"square":di=1-Yn/2/100;break;default:di=1;break}var Ti={strokeDasharray:"".concat(gi*di,"px, 100px"),strokeDashoffset:"-".concat(kr,"px"),transition:Ir||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ei=Qn[Ai]||Qn[Qn.length-1];return kr+=gi,x.createElement("path",{key:Ai,className:"".concat(Wt,"-line-path"),d:Br,strokeLinecap:vn,stroke:Ei,strokeWidth:Yn,fillOpacity:"0",ref:function(zi){qn[Ai]=zi},style:Ti})}))},Ee=Ce,ke=ae(76190),Ke=ae(42978),Qe=ae(47273),je=0,qe=(0,Qe.Z)();function Ve(){var Ut;return qe?(Ut=je,je+=1):Ut="TEST_OR_SSR",Ut}var ct=function(Ut){var an=x.useState(),_n=(0,Ke.Z)(an,2),Vn=_n[0],It=_n[1];return x.useEffect(function(){It("rc_progress_".concat(Ve()))},[]),Ut||Vn},ot=function(an){var _n=an.bg,Vn=an.children;return x.createElement("div",{style:{width:"100%",height:"100%",background:_n}},Vn)};function pt(Ut,an){return Object.keys(Ut).map(function(_n){var Vn=parseFloat(_n),It="".concat(Math.floor(Vn*an),"%");return"".concat(Ut[_n]," ").concat(It)})}var bt=x.forwardRef(function(Ut,an){var _n=Ut.prefixCls,Vn=Ut.color,It=Ut.gradientId,Wt=Ut.radius,on=Ut.style,vn=Ut.ptg,Yn=Ut.strokeLinecap,Lr=Ut.strokeWidth,ri=Ut.size,zr=Ut.gapDegree,Ir=Vn&&(0,ke.Z)(Vn)==="object",tr=Ir?"#FFF":void 0,vr=ri/2,Qn=x.createElement("circle",{className:"".concat(_n,"-circle-path"),r:Wt,cx:vr,cy:vr,stroke:tr,strokeLinecap:Yn,strokeWidth:Lr,opacity:vn===0?0:1,style:on,ref:an});if(!Ir)return Qn;var qn="".concat(It,"-conic"),lr=zr?"".concat(180+zr/2,"deg"):"0deg",$n=pt(Vn,(360-zr)/360),Br=pt(Vn,1),Sr="conic-gradient(from ".concat(lr,", ").concat($n.join(", "),")"),kr="linear-gradient(to ".concat(zr?"bottom":"top",", ").concat(Br.join(", "),")");return x.createElement(x.Fragment,null,x.createElement("mask",{id:qn},Qn),x.createElement("foreignObject",{x:0,y:0,width:ri,height:ri,mask:"url(#".concat(qn,")")},x.createElement(ot,{bg:kr},x.createElement(ot,{bg:Sr}))))}),He=bt,ht=100,_e=function(an,_n,Vn,It,Wt,on,vn,Yn,Lr,ri){var zr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Ir=Vn/100*360*((360-on)/360),tr=on===0?0:{bottom:0,top:180,left:90,right:-90}[vn],vr=(100-It)/100*_n;Lr==="round"&&It!==100&&(vr+=ri/2,vr>=_n&&(vr=_n-.01));var Qn=ht/2;return{stroke:typeof Yn=="string"?Yn:void 0,strokeDasharray:"".concat(_n,"px ").concat(an),strokeDashoffset:vr+zr,transform:"rotate(".concat(Wt+Ir+tr,"deg)"),transformOrigin:"".concat(Qn,"px ").concat(Qn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Re=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Nt(Ut){var an=Ut!=null?Ut:[];return Array.isArray(an)?an:[an]}var it=function(an){var _n=(0,ve.Z)((0,ve.Z)({},Se),an),Vn=_n.id,It=_n.prefixCls,Wt=_n.steps,on=_n.strokeWidth,vn=_n.trailWidth,Yn=_n.gapDegree,Lr=Yn===void 0?0:Yn,ri=_n.gapPosition,zr=_n.trailColor,Ir=_n.strokeLinecap,tr=_n.style,vr=_n.className,Qn=_n.strokeColor,qn=_n.percent,lr=(0,Me.Z)(_n,Re),$n=ht/2,Br=ct(Vn),Sr="".concat(Br,"-gradient"),kr=$n-on/2,gi=Math.PI*2*kr,Ai=Lr>0?90+Lr/2:-90,di=gi*((360-Lr)/360),Ti=(0,ke.Z)(Wt)==="object"?Wt:{count:Wt,gap:2},Ei=Ti.count,no=Ti.gap,zi=Nt(qn),fr=Nt(Qn),Ur=fr.find(function(Kt){return Kt&&(0,ke.Z)(Kt)==="object"}),vi=Ur&&(0,ke.Z)(Ur)==="object",Gt=vi?"butt":Ir,un=_e(gi,di,0,100,Ai,Lr,ri,zr,Gt,on),wn=Te(),Mt=function(){var pn=0;return zi.map(function(Nn,Pr){var Yr=fr[Pr]||fr[fr.length-1],ci=_e(gi,di,pn,Nn,Ai,Lr,ri,Yr,Gt,on);return pn+=Nn,x.createElement(He,{key:Pr,color:Yr,ptg:Nn,radius:kr,prefixCls:It,gradientId:Sr,style:ci,strokeLinecap:Gt,strokeWidth:on,gapDegree:Lr,ref:function(cr){wn[Pr]=cr},size:ht})}).reverse()},dn=function(){var pn=Math.round(Ei*(zi[0]/100)),Nn=100/Ei,Pr=0;return new Array(Ei).fill(null).map(function(Yr,ci){var or=ci<=pn-1?fr[0]:zr,cr=or&&(0,ke.Z)(or)==="object"?"url(#".concat(Sr,")"):void 0,sr=_e(gi,di,Pr,Nn,Ai,Lr,ri,or,"butt",on,no);return Pr+=(di-sr.strokeDashoffset+no)*100/di,x.createElement("circle",{key:ci,className:"".concat(It,"-circle-path"),r:kr,cx:$n,cy:$n,stroke:cr,strokeWidth:on,opacity:1,style:sr,ref:function(nr){wn[ci]=nr}})})};return x.createElement("svg",(0,Oe.Z)({className:he()("".concat(It,"-circle"),vr),viewBox:"0 0 ".concat(ht," ").concat(ht),style:tr,id:Vn,role:"presentation"},lr),!Ei&&x.createElement("circle",{className:"".concat(It,"-circle-trail"),r:kr,cx:$n,cy:$n,stroke:zr,strokeLinecap:Gt,strokeWidth:vn||on,style:un}),Ei?dn():Mt())},at=it,Bt={Line:Ee,Circle:at},Ze=ae(25399),De=ae(68361);function ut(Ut){return!Ut||Ut<0?0:Ut>100?100:Ut}function $t(Ut){let{success:an,successPercent:_n}=Ut,Vn=_n;return an&&"progress"in an&&(Vn=an.progress),an&&"percent"in an&&(Vn=an.percent),Vn}const zt=Ut=>{let{percent:an,success:_n,successPercent:Vn}=Ut;const It=ut($t({success:_n,successPercent:Vn}));return[It,ut(ut(an)-It)]},tt=Ut=>{let{success:an={},strokeColor:_n}=Ut;const{strokeColor:Vn}=an;return[Vn||De.presetPrimaryColors.green,_n||null]},Ot=(Ut,an,_n)=>{var Vn,It,Wt,on;let vn=-1,Yn=-1;if(an==="step"){const Lr=_n.steps,ri=_n.strokeWidth;typeof Ut=="string"||typeof Ut=="undefined"?(vn=Ut==="small"?2:14,Yn=ri!=null?ri:8):typeof Ut=="number"?[vn,Yn]=[Ut,Ut]:[vn=14,Yn=8]=Array.isArray(Ut)?Ut:[Ut.width,Ut.height],vn*=Lr}else if(an==="line"){const Lr=_n==null?void 0:_n.strokeWidth;typeof Ut=="string"||typeof Ut=="undefined"?Yn=Lr||(Ut==="small"?6:8):typeof Ut=="number"?[vn,Yn]=[Ut,Ut]:[vn=-1,Yn=8]=Array.isArray(Ut)?Ut:[Ut.width,Ut.height]}else(an==="circle"||an==="dashboard")&&(typeof Ut=="string"||typeof Ut=="undefined"?[vn,Yn]=Ut==="small"?[60,60]:[120,120]:typeof Ut=="number"?[vn,Yn]=[Ut,Ut]:Array.isArray(Ut)&&(vn=(It=(Vn=Ut[0])!==null&&Vn!==void 0?Vn:Ut[1])!==null&&It!==void 0?It:120,Yn=(on=(Wt=Ut[0])!==null&&Wt!==void 0?Wt:Ut[1])!==null&&on!==void 0?on:120));return[vn,Yn]},Rt=3,fn=Ut=>Rt/Ut*100;var mn=Ut=>{const{prefixCls:an,trailColor:_n=null,strokeLinecap:Vn="round",gapPosition:It,gapDegree:Wt,width:on=120,type:vn,children:Yn,success:Lr,size:ri=on,steps:zr}=Ut,[Ir,tr]=Ot(ri,"circle");let{strokeWidth:vr}=Ut;vr===void 0&&(vr=Math.max(fn(Ir),6));const Qn={width:Ir,height:tr,fontSize:Ir*.15+6},qn=x.useMemo(()=>{if(Wt||Wt===0)return Wt;if(vn==="dashboard")return 75},[Wt,vn]),lr=zt(Ut),$n=It||vn==="dashboard"&&"bottom"||void 0,Br=Object.prototype.toString.call(Ut.strokeColor)==="[object Object]",Sr=tt({success:Lr,strokeColor:Ut.strokeColor}),kr=he()(`${an}-inner`,{[`${an}-circle-gradient`]:Br}),gi=x.createElement(at,{steps:zr,percent:zr?lr[1]:lr,strokeWidth:vr,trailWidth:vr,strokeColor:zr?Sr[1]:Sr,strokeLinecap:Vn,trailColor:_n,prefixCls:an,gapDegree:qn,gapPosition:$n}),Ai=Ir<=20,di=x.createElement("div",{className:kr,style:Qn},gi,!Ai&&Yn);return Ai?x.createElement(Ze.Z,{title:Yn},di):di},Dt=ae(36237),En=ae(63356),rn=ae(16931),de=ae(51636);const pe="--progress-line-stroke-color",ie="--progress-percent",ee=Ut=>{const an=Ut?"100%":"-100%";return new Dt.Keyframes(`antProgress${Ut?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${an}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${an}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},se=Ut=>{const{componentCls:an,iconCls:_n}=Ut;return{[an]:Object.assign(Object.assign({},(0,En.Wf)(Ut)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Ut.fontSize},[`${an}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${an}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Ut.remainingColor,borderRadius:Ut.lineBorderRadius},[`${an}-inner:not(${an}-circle-gradient)`]:{[`${an}-circle-path`]:{stroke:Ut.defaultColor}},[`${an}-success-bg, ${an}-bg`]:{position:"relative",background:Ut.defaultColor,borderRadius:Ut.lineBorderRadius,transition:`all ${Ut.motionDurationSlow} ${Ut.motionEaseInOutCirc}`},[`${an}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${an}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Ut.marginXXS}},[`${an}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${pe})`]},height:"100%",width:`calc(1 / var(${ie}) * 100%)`,display:"block"},[`&${an}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${an}-text-inner`]:{color:Ut.colorWhite,[`&${an}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${an}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Ut.colorSuccess},[`${an}-text`]:{display:"inline-block",marginInlineStart:Ut.marginXS,color:Ut.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[_n]:{fontSize:Ut.fontSize},[`&${an}-text-outer`]:{width:"max-content"},[`&${an}-text-outer${an}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Ut.marginXS}},[`${an}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,Dt.unit)(Ut.paddingXXS)}`,[`&${an}-text-start`]:{justifyContent:"start"},[`&${an}-text-end`]:{justifyContent:"end"}},[`&${an}-status-active`]:{[`${an}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Ut.colorBgContainer,borderRadius:Ut.lineBorderRadius,opacity:0,animationName:ee(),animationDuration:Ut.progressActiveMotionDuration,animationTimingFunction:Ut.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${an}-rtl${an}-status-active`]:{[`${an}-bg::before`]:{animationName:ee(!0)}},[`&${an}-status-exception`]:{[`${an}-bg`]:{backgroundColor:Ut.colorError},[`${an}-text`]:{color:Ut.colorError}},[`&${an}-status-exception ${an}-inner:not(${an}-circle-gradient)`]:{[`${an}-circle-path`]:{stroke:Ut.colorError}},[`&${an}-status-success`]:{[`${an}-bg`]:{backgroundColor:Ut.colorSuccess},[`${an}-text`]:{color:Ut.colorSuccess}},[`&${an}-status-success ${an}-inner:not(${an}-circle-gradient)`]:{[`${an}-circle-path`]:{stroke:Ut.colorSuccess}}})}},le=Ut=>{const{componentCls:an,iconCls:_n}=Ut;return{[an]:{[`${an}-circle-trail`]:{stroke:Ut.remainingColor},[`&${an}-circle ${an}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${an}-circle ${an}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Ut.circleTextColor,fontSize:Ut.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[_n]:{fontSize:Ut.circleIconFontSize}},[`${an}-circle&-status-exception`]:{[`${an}-text`]:{color:Ut.colorError}},[`${an}-circle&-status-success`]:{[`${an}-text`]:{color:Ut.colorSuccess}}},[`${an}-inline-circle`]:{lineHeight:1,[`${an}-inner`]:{verticalAlign:"bottom"}}}},Be=Ut=>{const{componentCls:an}=Ut;return{[an]:{[`${an}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Ut.progressStepMinWidth,marginInlineEnd:Ut.progressStepMarginInlineEnd,backgroundColor:Ut.remainingColor,transition:`all ${Ut.motionDurationSlow}`,"&-active":{backgroundColor:Ut.defaultColor}}}}}},We=Ut=>{const{componentCls:an,iconCls:_n}=Ut;return{[an]:{[`${an}-small&-line, ${an}-small&-line ${an}-text ${_n}`]:{fontSize:Ut.fontSizeSM}}}},st=Ut=>({circleTextColor:Ut.colorText,defaultColor:Ut.colorInfo,remainingColor:Ut.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Ut.fontSize/Ut.fontSizeSM}em`});var mt=(0,rn.I$)("Progress",Ut=>{const an=Ut.calc(Ut.marginXXS).div(2).equal(),_n=(0,de.mergeToken)(Ut,{progressStepMarginInlineEnd:an,progressStepMinWidth:an,progressActiveMotionDuration:"2.4s"});return[se(_n),le(_n),Be(_n),We(_n)]},st),gt=function(Ut,an){var _n={};for(var Vn in Ut)Object.prototype.hasOwnProperty.call(Ut,Vn)&&an.indexOf(Vn)<0&&(_n[Vn]=Ut[Vn]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,Vn=Object.getOwnPropertySymbols(Ut);It<Vn.length;It++)an.indexOf(Vn[It])<0&&Object.prototype.propertyIsEnumerable.call(Ut,Vn[It])&&(_n[Vn[It]]=Ut[Vn[It]]);return _n};const Et=Ut=>{let an=[];return Object.keys(Ut).forEach(_n=>{const Vn=parseFloat(_n.replace(/%/g,""));Number.isNaN(Vn)||an.push({key:Vn,value:Ut[_n]})}),an=an.sort((_n,Vn)=>_n.key-Vn.key),an.map(_n=>{let{key:Vn,value:It}=_n;return`${It} ${Vn}%`}).join(", ")},Lt=(Ut,an)=>{const{from:_n=De.presetPrimaryColors.blue,to:Vn=De.presetPrimaryColors.blue,direction:It=an==="rtl"?"to left":"to right"}=Ut,Wt=gt(Ut,["from","to","direction"]);if(Object.keys(Wt).length!==0){const vn=Et(Wt),Yn=`linear-gradient(${It}, ${vn})`;return{background:Yn,[pe]:Yn}}const on=`linear-gradient(${It}, ${_n}, ${Vn})`;return{background:on,[pe]:on}};var Ct=Ut=>{const{prefixCls:an,direction:_n,percent:Vn,size:It,strokeWidth:Wt,strokeColor:on,strokeLinecap:vn="round",children:Yn,trailColor:Lr=null,percentPosition:ri,success:zr}=Ut,{align:Ir,type:tr}=ri,vr=on&&typeof on!="string"?Lt(on,_n):{[pe]:on,background:on},Qn=vn==="square"||vn==="butt"?0:void 0,qn=It!=null?It:[-1,Wt||(It==="small"?6:8)],[lr,$n]=Ot(qn,"line",{strokeWidth:Wt}),Br={backgroundColor:Lr||void 0,borderRadius:Qn},Sr=Object.assign(Object.assign({width:`${ut(Vn)}%`,height:$n,borderRadius:Qn},vr),{[ie]:ut(Vn)/100}),kr=$t(Ut),gi={width:`${ut(kr)}%`,height:$n,borderRadius:Qn,backgroundColor:zr==null?void 0:zr.strokeColor},Ai={width:lr<0?"100%":lr},di=x.createElement("div",{className:`${an}-inner`,style:Br},x.createElement("div",{className:he()(`${an}-bg`,`${an}-bg-${tr}`),style:Sr},tr==="inner"&&Yn),kr!==void 0&&x.createElement("div",{className:`${an}-success-bg`,style:gi})),Ti=tr==="outer"&&Ir==="start",Ei=tr==="outer"&&Ir==="end";return tr==="outer"&&Ir==="center"?x.createElement("div",{className:`${an}-layout-bottom`},di,Yn):x.createElement("div",{className:`${an}-outer`,style:Ai},Ti&&Yn,di,Ei&&Yn)},Vt=Ut=>{const{size:an,steps:_n,rounding:Vn=Math.round,percent:It=0,strokeWidth:Wt=8,strokeColor:on,trailColor:vn=null,prefixCls:Yn,children:Lr}=Ut,ri=Vn(_n*(It/100)),zr=an==="small"?2:14,Ir=an!=null?an:[zr,Wt],[tr,vr]=Ot(Ir,"step",{steps:_n,strokeWidth:Wt}),Qn=tr/_n,qn=Array.from({length:_n});for(let lr=0;lr<_n;lr++){const $n=Array.isArray(on)?on[lr]:on;qn[lr]=x.createElement("div",{key:lr,className:he()(`${Yn}-steps-item`,{[`${Yn}-steps-item-active`]:lr<=ri-1}),style:{backgroundColor:lr<=ri-1?$n:vn,width:Qn,height:vr}})}return x.createElement("div",{className:`${Yn}-steps-outer`},qn,Lr)},Zt=function(Ut,an){var _n={};for(var Vn in Ut)Object.prototype.hasOwnProperty.call(Ut,Vn)&&an.indexOf(Vn)<0&&(_n[Vn]=Ut[Vn]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,Vn=Object.getOwnPropertySymbols(Ut);It<Vn.length;It++)an.indexOf(Vn[It])<0&&Object.prototype.propertyIsEnumerable.call(Ut,Vn[It])&&(_n[Vn[It]]=Ut[Vn[It]]);return _n};const gn=null,sn=["normal","exception","active","success"];var zn=x.forwardRef((Ut,an)=>{const{prefixCls:_n,className:Vn,rootClassName:It,steps:Wt,strokeColor:on,percent:vn=0,size:Yn="default",showInfo:Lr=!0,type:ri="line",status:zr,format:Ir,style:tr,percentPosition:vr={}}=Ut,Qn=Zt(Ut,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:qn="end",type:lr="outer"}=vr,$n=Array.isArray(on)?on[0]:on,Br=typeof on=="string"||Array.isArray(on)?on:void 0,Sr=x.useMemo(()=>{if($n){const Mt=typeof $n=="string"?$n:Object.values($n)[0];return new dt.FastColor(Mt).isLight()}return!1},[on]),kr=x.useMemo(()=>{var Mt,dn;const Kt=$t(Ut);return parseInt(Kt!==void 0?(Mt=Kt!=null?Kt:0)===null||Mt===void 0?void 0:Mt.toString():(dn=vn!=null?vn:0)===null||dn===void 0?void 0:dn.toString(),10)},[vn,Ut.success,Ut.successPercent]),gi=x.useMemo(()=>!sn.includes(zr)&&kr>=100?"success":zr||"normal",[zr,kr]),{getPrefixCls:Ai,direction:di,progress:Ti}=x.useContext(oe.E_),Ei=Ai("progress",_n),[no,zi,fr]=mt(Ei),Ur=ri==="line",vi=Ur&&!Wt,Gt=x.useMemo(()=>{if(!Lr)return null;const Mt=$t(Ut);let dn;const Kt=Ir||(Nn=>`${Nn}%`),pn=Ur&&Sr&&lr==="inner";return lr==="inner"||Ir||gi!=="exception"&&gi!=="success"?dn=Kt(ut(vn),ut(Mt)):gi==="exception"?dn=Ur?x.createElement(ze.Z,null):x.createElement(Le.Z,null):gi==="success"&&(dn=Ur?x.createElement(Ie.Z,null):x.createElement(Je.Z,null)),x.createElement("span",{className:he()(`${Ei}-text`,{[`${Ei}-text-bright`]:pn,[`${Ei}-text-${qn}`]:vi,[`${Ei}-text-${lr}`]:vi}),title:typeof dn=="string"?dn:void 0},dn)},[Lr,vn,kr,gi,ri,Ei,Ir]);let un;ri==="line"?un=Wt?x.createElement(Vt,Object.assign({},Ut,{strokeColor:Br,prefixCls:Ei,steps:typeof Wt=="object"?Wt.count:Wt}),Gt):x.createElement(Ct,Object.assign({},Ut,{strokeColor:$n,prefixCls:Ei,direction:di,percentPosition:{align:qn,type:lr}}),Gt):(ri==="circle"||ri==="dashboard")&&(un=x.createElement(mn,Object.assign({},Ut,{strokeColor:$n,prefixCls:Ei,progressStatus:gi}),Gt));const wn=he()(Ei,`${Ei}-status-${gi}`,{[`${Ei}-${ri==="dashboard"&&"circle"||ri}`]:ri!=="line",[`${Ei}-inline-circle`]:ri==="circle"&&Ot(Yn,"circle")[0]<=20,[`${Ei}-line`]:vi,[`${Ei}-line-align-${qn}`]:vi,[`${Ei}-line-position-${lr}`]:vi,[`${Ei}-steps`]:Wt,[`${Ei}-show-info`]:Lr,[`${Ei}-${Yn}`]:typeof Yn=="string",[`${Ei}-rtl`]:di==="rtl"},Ti==null?void 0:Ti.className,Vn,It,zi,fr);return no(x.createElement("div",Object.assign({ref:an,style:Object.assign(Object.assign({},Ti==null?void 0:Ti.style),tr),className:wn,role:"progressbar","aria-valuenow":kr,"aria-valuemin":0,"aria-valuemax":100},(0,xe.Z)(Qn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),un))}),Fn=zn},63139:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return zt}});var x=ae(59301),dt=ae(54476),Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Je=Ie,ze=ae(7657),Le=function(Ot,Rt){return x.createElement(ze.Z,(0,dt.Z)({},Ot,{ref:Rt,icon:Je}))},Ue=x.forwardRef(Le),he=Ue,xe=ae(92310),oe=ae.n(xe),Oe=ae(20068),ve=ae(42978),Me=ae(75931),Se=ae(18929),Te=ae(10228),we=ae(26112);function Ce(tt,Ot){var Rt=tt.disabled,fn=tt.prefixCls,Tt=tt.character,mn=tt.characterRender,Dt=tt.index,En=tt.count,rn=tt.value,de=tt.allowHalf,pe=tt.focused,ie=tt.onHover,ee=tt.onClick,se=function(Lt){ie(Lt,Dt)},le=function(Lt){ee(Lt,Dt)},Be=function(Lt){Lt.keyCode===Te.Z.ENTER&&ee(Lt,Dt)},We=Dt+1,st=new Set([fn]);rn===0&&Dt===0&&pe?st.add("".concat(fn,"-focused")):de&&rn+.5>=We&&rn<We?(st.add("".concat(fn,"-half")),st.add("".concat(fn,"-active")),pe&&st.add("".concat(fn,"-focused"))):(We<=rn?st.add("".concat(fn,"-full")):st.add("".concat(fn,"-zero")),We===rn&&pe&&st.add("".concat(fn,"-focused")));var mt=typeof Tt=="function"?Tt(tt):Tt,gt=x.createElement("li",{className:oe()(Array.from(st)),ref:Ot},x.createElement("div",{onClick:Rt?null:le,onKeyDown:Rt?null:Be,onMouseMove:Rt?null:se,role:"radio","aria-checked":rn>Dt?"true":"false","aria-posinset":Dt+1,"aria-setsize":En,tabIndex:Rt?-1:0},x.createElement("div",{className:"".concat(fn,"-first")},mt),x.createElement("div",{className:"".concat(fn,"-second")},mt)));return mn&&(gt=mn(gt,tt)),gt}var Ee=x.forwardRef(Ce);function ke(){var tt=x.useRef({});function Ot(fn){return tt.current[fn]}function Rt(fn){return function(Tt){tt.current[fn]=Tt}}return[Ot,Rt]}function Ke(tt){var Ot=tt.pageXOffset,Rt="scrollLeft";if(typeof Ot!="number"){var fn=tt.document;Ot=fn.documentElement[Rt],typeof Ot!="number"&&(Ot=fn.body[Rt])}return Ot}function Qe(tt){var Ot,Rt,fn=tt.ownerDocument,Tt=fn.body,mn=fn&&fn.documentElement,Dt=tt.getBoundingClientRect();return Ot=Dt.left,Rt=Dt.top,Ot-=mn.clientLeft||Tt.clientLeft||0,Rt-=mn.clientTop||Tt.clientTop||0,{left:Ot,top:Rt}}function je(tt){var Ot=Qe(tt),Rt=tt.ownerDocument,fn=Rt.defaultView||Rt.parentWindow;return Ot.left+=Ke(fn),Ot.left}var qe=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ve(tt,Ot){var Rt=tt.prefixCls,fn=Rt===void 0?"rc-rate":Rt,Tt=tt.className,mn=tt.defaultValue,Dt=tt.value,En=tt.count,rn=En===void 0?5:En,de=tt.allowHalf,pe=de===void 0?!1:de,ie=tt.allowClear,ee=ie===void 0?!0:ie,se=tt.keyboard,le=se===void 0?!0:se,Be=tt.character,We=Be===void 0?"\u2605":Be,st=tt.characterRender,mt=tt.disabled,gt=tt.direction,Et=gt===void 0?"ltr":gt,Lt=tt.tabIndex,jt=Lt===void 0?0:Lt,Ct=tt.autoFocus,lt=tt.onHoverChange,Vt=tt.onChange,Zt=tt.onFocus,gn=tt.onBlur,sn=tt.onKeyDown,en=tt.onMouseLeave,zn=(0,Me.Z)(tt,qe),Fn=ke(),Ut=(0,ve.Z)(Fn,2),an=Ut[0],_n=Ut[1],Vn=x.useRef(null),It=function(){if(!mt){var Gt;(Gt=Vn.current)===null||Gt===void 0||Gt.focus()}};x.useImperativeHandle(Ot,function(){return{focus:It,blur:function(){if(!mt){var Gt;(Gt=Vn.current)===null||Gt===void 0||Gt.blur()}}}});var Wt=(0,Se.Z)(mn||0,{value:Dt}),on=(0,ve.Z)(Wt,2),vn=on[0],Yn=on[1],Lr=(0,Se.Z)(null),ri=(0,ve.Z)(Lr,2),zr=ri[0],Ir=ri[1],tr=function(Gt,un){var wn=Et==="rtl",Mt=Gt+1;if(pe){var dn=an(Gt),Kt=je(dn),pn=dn.clientWidth;(wn&&un-Kt>pn/2||!wn&&un-Kt<pn/2)&&(Mt-=.5)}return Mt},vr=function(Gt){Yn(Gt),Vt==null||Vt(Gt)},Qn=x.useState(!1),qn=(0,ve.Z)(Qn,2),lr=qn[0],$n=qn[1],Br=function(){$n(!0),Zt==null||Zt()},Sr=function(){$n(!1),gn==null||gn()},kr=x.useState(null),gi=(0,ve.Z)(kr,2),Ai=gi[0],di=gi[1],Ti=function(Gt,un){var wn=tr(un,Gt.pageX);wn!==zr&&(di(wn),Ir(null)),lt==null||lt(wn)},Ei=function(Gt){mt||(di(null),Ir(null),lt==null||lt(void 0)),Gt&&(en==null||en(Gt))},no=function(Gt,un){var wn=tr(un,Gt.pageX),Mt=!1;ee&&(Mt=wn===vn),Ei(),vr(Mt?0:wn),Ir(Mt?wn:null)},zi=function(Gt){var un=Gt.keyCode,wn=Et==="rtl",Mt=pe?.5:1;le&&(un===Te.Z.RIGHT&&vn<rn&&!wn?(vr(vn+Mt),Gt.preventDefault()):un===Te.Z.LEFT&&vn>0&&!wn||un===Te.Z.RIGHT&&vn>0&&wn?(vr(vn-Mt),Gt.preventDefault()):un===Te.Z.LEFT&&vn<rn&&wn&&(vr(vn+Mt),Gt.preventDefault())),sn==null||sn(Gt)};x.useEffect(function(){Ct&&!mt&&It()},[]);var fr=new Array(rn).fill(0).map(function(vi,Gt){return x.createElement(Ee,{ref:_n(Gt),index:Gt,count:rn,disabled:mt,prefixCls:"".concat(fn,"-star"),allowHalf:pe,value:Ai===null?vn:Ai,onClick:no,onHover:Ti,key:vi||Gt,character:We,characterRender:st,focused:lr})}),Ur=oe()(fn,Tt,(0,Oe.Z)((0,Oe.Z)({},"".concat(fn,"-disabled"),mt),"".concat(fn,"-rtl"),Et==="rtl"));return x.createElement("ul",(0,dt.Z)({className:Ur,onMouseLeave:Ei,tabIndex:mt?-1:jt,onFocus:mt?null:Br,onBlur:mt?null:Sr,onKeyDown:mt?null:zi,ref:Vn},(0,we.Z)(zn,{aria:!0,data:!0,attr:!0})),fr)}var ct=x.forwardRef(Ve),ot=ct,pt=ae(48755),bt=ae(25399),He=ae(36237),ht=ae(63356),_e=ae(16931),Re=ae(51636);const Nt=tt=>{const{componentCls:Ot}=tt;return{[`${Ot}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:tt.marginXS},"> div":{transition:`all ${tt.motionDurationMid}, outline 0s`,"&:hover":{transform:tt.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,He.unit)(tt.lineWidth)} dashed ${tt.starColor}`,transform:tt.starHoverScale}},"&-first, &-second":{color:tt.starBg,transition:`all ${tt.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Ot}-star-first, &-half ${Ot}-star-second`]:{opacity:1},[`&-half ${Ot}-star-first, &-full ${Ot}-star-second`]:{color:"inherit"}}}},it=tt=>({[`&-rtl${tt.componentCls}`]:{direction:"rtl"}}),at=tt=>{const{componentCls:Ot}=tt;return{[Ot]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ht.Wf)(tt)),{display:"inline-block",margin:0,padding:0,color:tt.starColor,fontSize:tt.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${Ot} ${Ot}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Nt(tt)),it(tt))}},Bt=tt=>({starColor:tt.yellow6,starSize:tt.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:tt.colorFillContent});var Ze=(0,_e.I$)("Rate",tt=>{const Ot=(0,Re.mergeToken)(tt,{});return[at(Ot)]},Bt),De=ae(2171),ut=function(tt,Ot){var Rt={};for(var fn in tt)Object.prototype.hasOwnProperty.call(tt,fn)&&Ot.indexOf(fn)<0&&(Rt[fn]=tt[fn]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,fn=Object.getOwnPropertySymbols(tt);Tt<fn.length;Tt++)Ot.indexOf(fn[Tt])<0&&Object.prototype.propertyIsEnumerable.call(tt,fn[Tt])&&(Rt[fn[Tt]]=tt[fn[Tt]]);return Rt},zt=x.forwardRef((tt,Ot)=>{const{prefixCls:Rt,className:fn,rootClassName:Tt,style:mn,tooltips:Dt,character:En=x.createElement(he,null),disabled:rn}=tt,de=ut(tt,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),pe=(Lt,jt)=>{let{index:Ct}=jt;return Dt?x.createElement(bt.Z,{title:Dt[Ct]},Lt):Lt},{getPrefixCls:ie,direction:ee,rate:se}=x.useContext(pt.E_),le=ie("rate",Rt),[Be,We,st]=Ze(le),mt=Object.assign(Object.assign({},se==null?void 0:se.style),mn),gt=x.useContext(De.Z),Et=rn!=null?rn:gt;return Be(x.createElement(ot,Object.assign({ref:Ot,character:En,characterRender:pe,disabled:Et},de,{className:oe()(fn,Tt,We,st,se==null?void 0:se.className),style:mt,prefixCls:le,direction:ee})))})},82326:function(Jn,kt,ae){"use strict";var x=ae(59301),dt=ae(92310),Ie=ae.n(dt),Je=ae(37463),ze=ae(2738),Le=ae(75030),Ue=ae(86641),he=ae(45915),xe=ae(82855),oe=ae(48755),Oe=ae(38406),ve=ae(2171),Me=ae(83397),Se=ae(31756),Te=ae(56553),we=ae(24971),Ce=ae(70045),Ee=ae(57700),ke=ae(1722),Ke=ae(90376),Qe=ae(68525),je=ae(90005),qe=function(bt,He){var ht={};for(var _e in bt)Object.prototype.hasOwnProperty.call(bt,_e)&&He.indexOf(_e)<0&&(ht[_e]=bt[_e]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,_e=Object.getOwnPropertySymbols(bt);Re<_e.length;Re++)He.indexOf(_e[Re])<0&&Object.prototype.propertyIsEnumerable.call(bt,_e[Re])&&(ht[_e[Re]]=bt[_e[Re]]);return ht};const Ve="SECRET_COMBOBOX_MODE_DO_NOT_USE",ct=(bt,He)=>{var ht;const{prefixCls:_e,bordered:Re,className:Nt,rootClassName:it,getPopupContainer:at,popupClassName:Bt,dropdownClassName:Ze,listHeight:De=256,placement:ut,listItemHeight:$t,size:zt,disabled:tt,notFoundContent:Ot,status:Rt,builtinPlacements:fn,dropdownMatchSelectWidth:Tt,popupMatchSelectWidth:mn,direction:Dt,style:En,allowClear:rn,variant:de,dropdownStyle:pe,transitionName:ie,tagRender:ee,maxCount:se,prefix:le}=bt,Be=qe(bt,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:We,getPrefixCls:st,renderEmpty:mt,direction:gt,virtual:Et,popupMatchSelectWidth:Lt,popupOverflow:jt}=x.useContext(oe.E_),Ct=(0,oe.dj)("select"),[,lt]=(0,Ee.ZP)(),Vt=$t!=null?$t:lt==null?void 0:lt.controlHeight,Zt=st("select",_e),gn=st(),sn=Dt!=null?Dt:gt,{compactSize:en,compactItemClassnames:zn}=(0,Ce.ri)(Zt,sn),[Fn,Ut]=(0,we.Z)("select",de,Re),an=(0,Me.Z)(Zt),[_n,Vn,It]=(0,Ke.Z)(Zt,an),Wt=x.useMemo(()=>{const{mode:zi}=bt;if(zi!=="combobox")return zi===Ve?"combobox":zi},[bt.mode]),on=Wt==="multiple"||Wt==="tags",vn=(0,je.Z)(bt.suffixIcon,bt.showArrow),Yn=(ht=mn!=null?mn:Tt)!==null&&ht!==void 0?ht:Lt,{status:Lr,hasFeedback:ri,isFormItemInput:zr,feedbackIcon:Ir}=x.useContext(Te.aM),tr=(0,xe.F)(Lr,Rt);let vr;Ot!==void 0?vr=Ot:Wt==="combobox"?vr=null:vr=(mt==null?void 0:mt("Select"))||x.createElement(Oe.Z,{componentName:"Select"});const{suffixIcon:Qn,itemIcon:qn,removeIcon:lr,clearIcon:$n}=(0,Qe.Z)(Object.assign(Object.assign({},Be),{multiple:on,hasFeedback:ri,feedbackIcon:Ir,showSuffixIcon:vn,prefixCls:Zt,componentName:"Select"})),Br=rn===!0?{clearIcon:$n}:rn,Sr=(0,ze.Z)(Be,["suffixIcon","itemIcon"]),kr=Ie()(Bt||Ze,{[`${Zt}-dropdown-${sn}`]:sn==="rtl"},it,It,an,Vn),gi=(0,Se.Z)(zi=>{var fr;return(fr=zt!=null?zt:en)!==null&&fr!==void 0?fr:zi}),Ai=x.useContext(ve.Z),di=tt!=null?tt:Ai,Ti=Ie()({[`${Zt}-lg`]:gi==="large",[`${Zt}-sm`]:gi==="small",[`${Zt}-rtl`]:sn==="rtl",[`${Zt}-${Fn}`]:Ut,[`${Zt}-in-form-item`]:zr},(0,xe.Z)(Zt,tr,ri),zn,Ct.className,Nt,it,It,an,Vn),Ei=x.useMemo(()=>ut!==void 0?ut:sn==="rtl"?"bottomRight":"bottomLeft",[ut,sn]),[no]=(0,Le.Cn)("SelectLike",pe==null?void 0:pe.zIndex);return _n(x.createElement(Je.ZP,Object.assign({ref:He,virtual:Et,showSearch:Ct.showSearch},Sr,{style:Object.assign(Object.assign({},Ct.style),En),dropdownMatchSelectWidth:Yn,transitionName:(0,Ue.m)(gn,"slide-up",ie),builtinPlacements:(0,ke.Z)(fn,jt),listHeight:De,listItemHeight:Vt,mode:Wt,prefixCls:Zt,placement:Ei,direction:sn,prefix:le,suffixIcon:Qn,menuItemSelectedIcon:qn,removeIcon:lr,allowClear:Br,notFoundContent:vr,className:Ti,getPopupContainer:at||We,dropdownClassName:kr,disabled:di,dropdownStyle:Object.assign(Object.assign({},pe),{zIndex:no}),maxCount:on?se:void 0,tagRender:on?ee:void 0})))},ot=x.forwardRef(ct),pt=(0,he.Z)(ot,"dropdownAlign");ot.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ve,ot.Option=Je.Wx,ot.OptGroup=Je.Xo,ot._InternalPanelDoNotUseOrYouWillBeFired=pt,kt.default=ot},1722:function(Jn,kt){"use strict";const ae=dt=>{const Je={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:dt==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Je),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Je),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Je),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Je),{points:["br","tr"],offset:[0,-4]})}};function x(dt,Ie){return dt||ae(Ie)}kt.Z=x},90376:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return _e}});var x=ae(63356),dt=ae(56119),Ie=ae(16931),Je=ae(51636),ze=ae(46e3),Le=ae(93873);const Ue=Re=>{const{optionHeight:Nt,optionFontSize:it,optionLineHeight:at,optionPadding:Bt}=Re;return{position:"relative",display:"block",minHeight:Nt,padding:Bt,color:Re.colorText,fontWeight:"normal",fontSize:it,lineHeight:at,boxSizing:"border-box"}};var xe=Re=>{const{antCls:Nt,componentCls:it}=Re,at=`${it}-item`,Bt=`&${Nt}-slide-up-enter${Nt}-slide-up-enter-active`,Ze=`&${Nt}-slide-up-appear${Nt}-slide-up-appear-active`,De=`&${Nt}-slide-up-leave${Nt}-slide-up-leave-active`,ut=`${it}-dropdown-placement-`,$t=`${at}-option-selected`;return[{[`${it}-dropdown`]:Object.assign(Object.assign({},(0,x.Wf)(Re)),{position:"absolute",top:-9999,zIndex:Re.zIndexPopup,boxSizing:"border-box",padding:Re.paddingXXS,overflow:"hidden",fontSize:Re.fontSize,fontVariant:"initial",backgroundColor:Re.colorBgElevated,borderRadius:Re.borderRadiusLG,outline:"none",boxShadow:Re.boxShadowSecondary,[`
${Bt}${ut}bottomLeft,
${Ze}${ut}bottomLeft
`]:{animationName:ze.fJ},[`
${Bt}${ut}topLeft,
${Ze}${ut}topLeft,
${Bt}${ut}topRight,
${Ze}${ut}topRight
`]:{animationName:ze.Qt},[`${De}${ut}bottomLeft`]:{animationName:ze.Uw},[`
${De}${ut}topLeft,
${De}${ut}topRight
`]:{animationName:ze.ly},"&-hidden":{display:"none"},[at]:Object.assign(Object.assign({},Ue(Re)),{cursor:"pointer",transition:`background ${Re.motionDurationSlow} ease`,borderRadius:Re.borderRadiusSM,"&-group":{color:Re.colorTextDescription,fontSize:Re.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},x.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${at}-option-disabled)`]:{backgroundColor:Re.optionActiveBg},[`&-selected:not(${at}-option-disabled)`]:{color:Re.optionSelectedColor,fontWeight:Re.optionSelectedFontWeight,backgroundColor:Re.optionSelectedBg,[`${at}-option-state`]:{color:Re.colorPrimary}},"&-disabled":{[`&${at}-option-selected`]:{backgroundColor:Re.colorBgContainerDisabled},color:Re.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Re.calc(Re.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Ue(Re)),{color:Re.colorTextDisabled})}),[`${$t}:has(+ ${$t})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${$t}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,ze.oN)(Re,"slide-up"),(0,ze.oN)(Re,"slide-down"),(0,Le.Fm)(Re,"move-up"),(0,Le.Fm)(Re,"move-down")]},oe=ae(26743),Oe=ae(36237);function ve(Re,Nt){const{componentCls:it,inputPaddingHorizontalBase:at,borderRadius:Bt}=Re,Ze=Re.calc(Re.controlHeight).sub(Re.calc(Re.lineWidth).mul(2)).equal(),De=Nt?`${it}-${Nt}`:"";return{[`${it}-single${De}`]:{fontSize:Re.fontSize,height:Re.controlHeight,[`${it}-selector`]:Object.assign(Object.assign({},(0,x.Wf)(Re,!0)),{display:"flex",borderRadius:Bt,flex:"1 1 auto",[`${it}-selection-wrap:after`]:{lineHeight:(0,Oe.unit)(Ze)},[`${it}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${it}-selection-item,
${it}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:(0,Oe.unit)(Ze),transition:`all ${Re.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${it}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${it}-selection-item:empty:after`,`${it}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${it}-show-arrow ${it}-selection-item,
&${it}-show-arrow ${it}-selection-search,
&${it}-show-arrow ${it}-selection-placeholder
`]:{paddingInlineEnd:Re.showArrowPaddingInlineEnd},[`&${it}-open ${it}-selection-item`]:{color:Re.colorTextPlaceholder},[`&:not(${it}-customize-input)`]:{[`${it}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,Oe.unit)(at)}`,[`${it}-selection-search-input`]:{height:Ze,fontSize:Re.fontSize},"&:after":{lineHeight:(0,Oe.unit)(Ze)}}},[`&${it}-customize-input`]:{[`${it}-selector`]:{"&:after":{display:"none"},[`${it}-selection-search`]:{position:"static",width:"100%"},[`${it}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Oe.unit)(at)}`,"&:after":{display:"none"}}}}}}}function Me(Re){const{componentCls:Nt}=Re,it=Re.calc(Re.controlPaddingHorizontalSM).sub(Re.lineWidth).equal();return[ve(Re),ve((0,Je.mergeToken)(Re,{controlHeight:Re.controlHeightSM,borderRadius:Re.borderRadiusSM}),"sm"),{[`${Nt}-single${Nt}-sm`]:{[`&:not(${Nt}-customize-input)`]:{[`${Nt}-selector`]:{padding:`0 ${(0,Oe.unit)(it)}`},[`&${Nt}-show-arrow ${Nt}-selection-search`]:{insetInlineEnd:Re.calc(it).add(Re.calc(Re.fontSize).mul(1.5)).equal()},[`
&${Nt}-show-arrow ${Nt}-selection-item,
&${Nt}-show-arrow ${Nt}-selection-placeholder
`]:{paddingInlineEnd:Re.calc(Re.fontSize).mul(1.5).equal()}}}},ve((0,Je.mergeToken)(Re,{controlHeight:Re.singleItemHeightLG,fontSize:Re.fontSizeLG,borderRadius:Re.borderRadiusLG}),"lg")]}const Se=Re=>{const{fontSize:Nt,lineHeight:it,lineWidth:at,controlHeight:Bt,controlHeightSM:Ze,controlHeightLG:De,paddingXXS:ut,controlPaddingHorizontal:$t,zIndexPopupBase:zt,colorText:tt,fontWeightStrong:Ot,controlItemBgActive:Rt,controlItemBgHover:fn,colorBgContainer:Tt,colorFillSecondary:mn,colorBgContainerDisabled:Dt,colorTextDisabled:En,colorPrimaryHover:rn,colorPrimary:de,controlOutline:pe}=Re,ie=ut*2,ee=at*2,se=Math.min(Bt-ie,Bt-ee),le=Math.min(Ze-ie,Ze-ee),Be=Math.min(De-ie,De-ee);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(ut/2),zIndexPopup:zt+50,optionSelectedColor:tt,optionSelectedFontWeight:Ot,optionSelectedBg:Rt,optionActiveBg:fn,optionPadding:`${(Bt-Nt*it)/2}px ${$t}px`,optionFontSize:Nt,optionLineHeight:it,optionHeight:Bt,selectorBg:Tt,clearBg:Tt,singleItemHeightLG:De,multipleItemBg:mn,multipleItemBorderColor:"transparent",multipleItemHeight:se,multipleItemHeightSM:le,multipleItemHeightLG:Be,multipleSelectorBgDisabled:Dt,multipleItemColorDisabled:En,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(Re.fontSize*1.25),hoverBorderColor:rn,activeBorderColor:de,activeOutlineColor:pe,selectAffixPadding:ut}},Te=(Re,Nt)=>{const{componentCls:it,antCls:at,controlOutlineWidth:Bt}=Re;return{[`&:not(${it}-customize-input) ${it}-selector`]:{border:`${(0,Oe.unit)(Re.lineWidth)} ${Re.lineType} ${Nt.borderColor}`,background:Re.selectorBg},[`&:not(${it}-disabled):not(${it}-customize-input):not(${at}-pagination-size-changer)`]:{[`&:hover ${it}-selector`]:{borderColor:Nt.hoverBorderHover},[`${it}-focused& ${it}-selector`]:{borderColor:Nt.activeBorderColor,boxShadow:`0 0 0 ${(0,Oe.unit)(Bt)} ${Nt.activeOutlineColor}`,outline:0},[`${it}-prefix`]:{color:Nt.color}}}},we=(Re,Nt)=>({[`&${Re.componentCls}-status-${Nt.status}`]:Object.assign({},Te(Re,Nt))}),Ce=Re=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Te(Re,{borderColor:Re.colorBorder,hoverBorderHover:Re.hoverBorderColor,activeBorderColor:Re.activeBorderColor,activeOutlineColor:Re.activeOutlineColor,color:Re.colorText})),we(Re,{status:"error",borderColor:Re.colorError,hoverBorderHover:Re.colorErrorHover,activeBorderColor:Re.colorError,activeOutlineColor:Re.colorErrorOutline,color:Re.colorError})),we(Re,{status:"warning",borderColor:Re.colorWarning,hoverBorderHover:Re.colorWarningHover,activeBorderColor:Re.colorWarning,activeOutlineColor:Re.colorWarningOutline,color:Re.colorWarning})),{[`&${Re.componentCls}-disabled`]:{[`&:not(${Re.componentCls}-customize-input) ${Re.componentCls}-selector`]:{background:Re.colorBgContainerDisabled,color:Re.colorTextDisabled}},[`&${Re.componentCls}-multiple ${Re.componentCls}-selection-item`]:{background:Re.multipleItemBg,border:`${(0,Oe.unit)(Re.lineWidth)} ${Re.lineType} ${Re.multipleItemBorderColor}`}})}),Ee=(Re,Nt)=>{const{componentCls:it,antCls:at}=Re;return{[`&:not(${it}-customize-input) ${it}-selector`]:{background:Nt.bg,border:`${(0,Oe.unit)(Re.lineWidth)} ${Re.lineType} transparent`,color:Nt.color},[`&:not(${it}-disabled):not(${it}-customize-input):not(${at}-pagination-size-changer)`]:{[`&:hover ${it}-selector`]:{background:Nt.hoverBg},[`${it}-focused& ${it}-selector`]:{background:Re.selectorBg,borderColor:Nt.activeBorderColor,outline:0}}}},ke=(Re,Nt)=>({[`&${Re.componentCls}-status-${Nt.status}`]:Object.assign({},Ee(Re,Nt))}),Ke=Re=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Ee(Re,{bg:Re.colorFillTertiary,hoverBg:Re.colorFillSecondary,activeBorderColor:Re.activeBorderColor,color:Re.colorText})),ke(Re,{status:"error",bg:Re.colorErrorBg,hoverBg:Re.colorErrorBgHover,activeBorderColor:Re.colorError,color:Re.colorError})),ke(Re,{status:"warning",bg:Re.colorWarningBg,hoverBg:Re.colorWarningBgHover,activeBorderColor:Re.colorWarning,color:Re.colorWarning})),{[`&${Re.componentCls}-disabled`]:{[`&:not(${Re.componentCls}-customize-input) ${Re.componentCls}-selector`]:{borderColor:Re.colorBorder,background:Re.colorBgContainerDisabled,color:Re.colorTextDisabled}},[`&${Re.componentCls}-multiple ${Re.componentCls}-selection-item`]:{background:Re.colorBgContainer,border:`${(0,Oe.unit)(Re.lineWidth)} ${Re.lineType} ${Re.colorSplit}`}})}),Qe=Re=>({"&-borderless":{[`${Re.componentCls}-selector`]:{background:"transparent",border:`${(0,Oe.unit)(Re.lineWidth)} ${Re.lineType} transparent`},[`&${Re.componentCls}-disabled`]:{[`&:not(${Re.componentCls}-customize-input) ${Re.componentCls}-selector`]:{color:Re.colorTextDisabled}},[`&${Re.componentCls}-multiple ${Re.componentCls}-selection-item`]:{background:Re.multipleItemBg,border:`${(0,Oe.unit)(Re.lineWidth)} ${Re.lineType} ${Re.multipleItemBorderColor}`},[`&${Re.componentCls}-status-error`]:{[`${Re.componentCls}-prefix, ${Re.componentCls}-selection-item`]:{color:Re.colorError}},[`&${Re.componentCls}-status-warning`]:{[`${Re.componentCls}-prefix, ${Re.componentCls}-selection-item`]:{color:Re.colorWarning}}}}),je=(Re,Nt)=>{const{componentCls:it,antCls:at}=Re;return{[`&:not(${it}-customize-input) ${it}-selector`]:{borderWidth:`0 0 ${(0,Oe.unit)(Re.lineWidth)} 0`,borderStyle:`none none ${Re.lineType} none`,borderColor:Nt.borderColor,background:Re.selectorBg,borderRadius:0},[`&:not(${it}-disabled):not(${it}-customize-input):not(${at}-pagination-size-changer)`]:{[`&:hover ${it}-selector`]:{borderColor:Nt.hoverBorderHover},[`${it}-focused& ${it}-selector`]:{borderColor:Nt.activeBorderColor,outline:0},[`${it}-prefix`]:{color:Nt.color}}}},qe=(Re,Nt)=>({[`&${Re.componentCls}-status-${Nt.status}`]:Object.assign({},je(Re,Nt))}),Ve=Re=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},je(Re,{borderColor:Re.colorBorder,hoverBorderHover:Re.hoverBorderColor,activeBorderColor:Re.activeBorderColor,activeOutlineColor:Re.activeOutlineColor,color:Re.colorText})),qe(Re,{status:"error",borderColor:Re.colorError,hoverBorderHover:Re.colorErrorHover,activeBorderColor:Re.colorError,activeOutlineColor:Re.colorErrorOutline,color:Re.colorError})),qe(Re,{status:"warning",borderColor:Re.colorWarning,hoverBorderHover:Re.colorWarningHover,activeBorderColor:Re.colorWarning,activeOutlineColor:Re.colorWarningOutline,color:Re.colorWarning})),{[`&${Re.componentCls}-disabled`]:{[`&:not(${Re.componentCls}-customize-input) ${Re.componentCls}-selector`]:{color:Re.colorTextDisabled}},[`&${Re.componentCls}-multiple ${Re.componentCls}-selection-item`]:{background:Re.multipleItemBg,border:`${(0,Oe.unit)(Re.lineWidth)} ${Re.lineType} ${Re.multipleItemBorderColor}`}})});var ot=Re=>({[Re.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Ce(Re)),Ke(Re)),Qe(Re)),Ve(Re))});const pt=Re=>{const{componentCls:Nt}=Re;return{position:"relative",transition:`all ${Re.motionDurationMid} ${Re.motionEaseInOut}`,input:{cursor:"pointer"},[`${Nt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Nt}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},bt=Re=>{const{componentCls:Nt}=Re;return{[`${Nt}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},He=Re=>{const{antCls:Nt,componentCls:it,inputPaddingHorizontalBase:at,iconCls:Bt}=Re;return{[it]:Object.assign(Object.assign({},(0,x.Wf)(Re)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${it}-customize-input) ${it}-selector`]:Object.assign(Object.assign({},pt(Re)),bt(Re)),[`${it}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},x.vS),{[`> ${Nt}-typography`]:{display:"inline"}}),[`${it}-selection-placeholder`]:Object.assign(Object.assign({},x.vS),{flex:1,color:Re.colorTextPlaceholder,pointerEvents:"none"}),[`${it}-arrow`]:Object.assign(Object.assign({},(0,x.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:at,height:Re.fontSizeIcon,marginTop:Re.calc(Re.fontSizeIcon).mul(-1).div(2).equal(),color:Re.colorTextQuaternary,fontSize:Re.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${Re.motionDurationSlow} ease`,[Bt]:{verticalAlign:"top",transition:`transform ${Re.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${it}-suffix)`]:{pointerEvents:"auto"}},[`${it}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${it}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${it}-prefix`]:{flex:"none",marginInlineEnd:Re.selectAffixPadding},[`${it}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:at,zIndex:1,display:"inline-block",width:Re.fontSizeIcon,height:Re.fontSizeIcon,marginTop:Re.calc(Re.fontSizeIcon).mul(-1).div(2).equal(),color:Re.colorTextQuaternary,fontSize:Re.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${Re.motionDurationMid} ease, opacity ${Re.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Re.colorTextTertiary}},[`&:hover ${it}-clear`]:{opacity:1,background:Re.colorBgBase,borderRadius:"50%"}}),[`${it}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${it}-has-feedback`]:{[`${it}-clear`]:{insetInlineEnd:Re.calc(at).add(Re.fontSize).add(Re.paddingXS).equal()}}}}}},ht=Re=>{const{componentCls:Nt}=Re;return[{[Nt]:{[`&${Nt}-in-form-item`]:{width:"100%"}}},He(Re),Me(Re),(0,oe.ZP)(Re),xe(Re),{[`${Nt}-rtl`]:{direction:"rtl"}},(0,dt.c)(Re,{borderElCls:`${Nt}-selector`,focusElCls:`${Nt}-focused`})]};var _e=(0,Ie.I$)("Select",(Re,Nt)=>{let{rootPrefixCls:it}=Nt;const at=(0,Je.mergeToken)(Re,{rootPrefixCls:it,inputPaddingHorizontalBase:Re.calc(Re.paddingSM).sub(1).equal(),multipleSelectItemHeight:Re.multipleItemHeight,selectHeight:Re.controlHeight});return[ht(at),ot(at)]},Se,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(Jn,kt,ae){"use strict";ae.d(kt,{_z:function(){return Le},gp:function(){return Je}});var x=ae(36237),dt=ae(63356),Ie=ae(51636);const Je=oe=>{const{multipleSelectItemHeight:Oe,paddingXXS:ve,lineWidth:Me,INTERNAL_FIXED_ITEM_MARGIN:Se}=oe,Te=oe.max(oe.calc(ve).sub(Me).equal(),0),we=oe.max(oe.calc(Te).sub(Se).equal(),0);return{basePadding:Te,containerPadding:we,itemHeight:(0,x.unit)(Oe),itemLineHeight:(0,x.unit)(oe.calc(Oe).sub(oe.calc(oe.lineWidth).mul(2)).equal())}},ze=oe=>{const{multipleSelectItemHeight:Oe,selectHeight:ve,lineWidth:Me}=oe;return oe.calc(ve).sub(Oe).div(2).sub(Me).equal()},Le=oe=>{const{componentCls:Oe,iconCls:ve,borderRadiusSM:Me,motionDurationSlow:Se,paddingXS:Te,multipleItemColorDisabled:we,multipleItemBorderColorDisabled:Ce,colorIcon:Ee,colorIconHover:ke,INTERNAL_FIXED_ITEM_MARGIN:Ke}=oe;return{[`${Oe}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${Oe}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Ke,borderRadius:Me,cursor:"default",transition:`font-size ${Se}, line-height ${Se}, height ${Se}`,marginInlineEnd:oe.calc(Ke).mul(2).equal(),paddingInlineStart:Te,paddingInlineEnd:oe.calc(Te).div(2).equal(),[`${Oe}-disabled&`]:{color:we,borderColor:Ce,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:oe.calc(Te).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,dt.Ro)()),{display:"inline-flex",alignItems:"center",color:Ee,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${ve}`]:{verticalAlign:"-0.2em"},"&:hover":{color:ke}})}}}},Ue=(oe,Oe)=>{const{componentCls:ve,INTERNAL_FIXED_ITEM_MARGIN:Me}=oe,Se=`${ve}-selection-overflow`,Te=oe.multipleSelectItemHeight,we=ze(oe),Ce=Oe?`${ve}-${Oe}`:"",Ee=Je(oe);return{[`${ve}-multiple${Ce}`]:Object.assign(Object.assign({},Le(oe)),{[`${ve}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:Ee.basePadding,paddingBlock:Ee.containerPadding,borderRadius:oe.borderRadius,[`${ve}-disabled&`]:{background:oe.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,x.unit)(Me)} 0`,lineHeight:(0,x.unit)(Te),visibility:"hidden",content:'"\\a0"'}},[`${ve}-selection-item`]:{height:Ee.itemHeight,lineHeight:(0,x.unit)(Ee.itemLineHeight)},[`${ve}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,x.unit)(Te),marginBlock:Me}},[`${ve}-prefix`]:{marginInlineStart:oe.calc(oe.inputPaddingHorizontalBase).sub(Ee.basePadding).equal()},[`${Se}-item + ${Se}-item,
${ve}-prefix + ${ve}-selection-wrap
`]:{[`${ve}-selection-search`]:{marginInlineStart:0},[`${ve}-selection-placeholder`]:{insetInlineStart:0}},[`${Se}-item-suffix`]:{minHeight:Ee.itemHeight,marginBlock:Me},[`${ve}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:oe.calc(oe.inputPaddingHorizontalBase).sub(we).equal(),"\n &-input,\n &-mirror\n ":{height:Te,fontFamily:oe.fontFamily,lineHeight:(0,x.unit)(Te),transition:`all ${oe.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${ve}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:oe.calc(oe.inputPaddingHorizontalBase).sub(Ee.basePadding).equal(),insetInlineEnd:oe.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${oe.motionDurationSlow}`}})}};function he(oe,Oe){const{componentCls:ve}=oe,Me=Oe?`${ve}-${Oe}`:"",Se={[`${ve}-multiple${Me}`]:{fontSize:oe.fontSize,[`${ve}-selector`]:{[`${ve}-show-search&`]:{cursor:"text"}},[`
&${ve}-show-arrow ${ve}-selector,
&${ve}-allow-clear ${ve}-selector
`]:{paddingInlineEnd:oe.calc(oe.fontSizeIcon).add(oe.controlPaddingHorizontal).equal()}}};return[Ue(oe,Oe),Se]}const xe=oe=>{const{componentCls:Oe}=oe,ve=(0,Ie.mergeToken)(oe,{selectHeight:oe.controlHeightSM,multipleSelectItemHeight:oe.multipleItemHeightSM,borderRadius:oe.borderRadiusSM,borderRadiusSM:oe.borderRadiusXS}),Me=(0,Ie.mergeToken)(oe,{fontSize:oe.fontSizeLG,selectHeight:oe.controlHeightLG,multipleSelectItemHeight:oe.multipleItemHeightLG,borderRadius:oe.borderRadiusLG,borderRadiusSM:oe.borderRadius});return[he(oe),he(ve,"sm"),{[`${Oe}-multiple${Oe}-sm`]:{[`${Oe}-selection-placeholder`]:{insetInline:oe.calc(oe.controlPaddingHorizontalSM).sub(oe.lineWidth).equal()},[`${Oe}-selection-search`]:{marginInlineStart:2}}},he(Me,"lg")]};kt.ZP=xe},68525:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return he}});var x=ae(59301),dt=ae(40001),Ie=ae(19248),Je=ae(99267),ze=ae(84105),Le=ae(58617),Ue=ae(47472);function he(xe){let{suffixIcon:oe,clearIcon:Oe,menuItemSelectedIcon:ve,removeIcon:Me,loading:Se,multiple:Te,hasFeedback:we,prefixCls:Ce,showSuffixIcon:Ee,feedbackIcon:ke,showArrow:Ke,componentName:Qe}=xe;const je=Oe!=null?Oe:x.createElement(Ie.Z,null),qe=pt=>oe===null&&!we&&!Ke?null:x.createElement(x.Fragment,null,Ee!==!1&&pt,we&&ke);let Ve=null;if(oe!==void 0)Ve=qe(oe);else if(Se)Ve=qe(x.createElement(Le.Z,{spin:!0}));else{const pt=`${Ce}-suffix`;Ve=bt=>{let{open:He,showSearch:ht}=bt;return qe(He&&ht?x.createElement(Ue.Z,{className:pt}):x.createElement(ze.Z,{className:pt}))}}let ct=null;ve!==void 0?ct=ve:Te?ct=x.createElement(dt.Z,null):ct=null;let ot=null;return Me!==void 0?ot=Me:ot=x.createElement(Je.Z,null),{clearIcon:je,suffixIcon:Ve,itemIcon:ct,removeIcon:ot}}},90005:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return x}});function x(dt,Ie){return Ie!==void 0?Ie:dt!==null}},11938:function(Jn,kt,ae){"use strict";ae.d(kt,{default:function(){return bt}});var x=ae(59301),dt=ae(40192),Ie=ae(22703),Je=ae(92310),ze=ae.n(Je),Le=ae(26112),Ue=ae(48755),he=ae(458),oe=He=>{const{value:ht,formatter:_e,precision:Re,decimalSeparator:Nt,groupSeparator:it="",prefixCls:at}=He;let Bt;if(typeof _e=="function")Bt=_e(ht);else{const Ze=String(ht),De=Ze.match(/^(-?)(\d*)(\.(\d+))?$/);if(!De||Ze==="-")Bt=Ze;else{const ut=De[1];let $t=De[2]||"0",zt=De[4]||"";$t=$t.replace(/\B(?=(\d{3})+(?!\d))/g,it),typeof Re=="number"&&(zt=zt.padEnd(Re,"0").slice(0,Re>0?Re:0)),zt&&(zt=`${Nt}${zt}`),Bt=[x.createElement("span",{key:"int",className:`${at}-content-value-int`},ut,$t),zt&&x.createElement("span",{key:"decimal",className:`${at}-content-value-decimal`},zt)]}}return x.createElement("span",{className:`${at}-content-value`},Bt)},Oe=ae(63356),ve=ae(16931),Me=ae(51636);const Se=He=>{const{componentCls:ht,marginXXS:_e,padding:Re,colorTextDescription:Nt,titleFontSize:it,colorTextHeading:at,contentFontSize:Bt,fontFamily:Ze}=He;return{[ht]:Object.assign(Object.assign({},(0,Oe.Wf)(He)),{[`${ht}-title`]:{marginBottom:_e,color:Nt,fontSize:it},[`${ht}-skeleton`]:{paddingTop:Re},[`${ht}-content`]:{color:at,fontSize:Bt,fontFamily:Ze,[`${ht}-content-value`]:{display:"inline-block",direction:"ltr"},[`${ht}-content-prefix, ${ht}-content-suffix`]:{display:"inline-block"},[`${ht}-content-prefix`]:{marginInlineEnd:_e},[`${ht}-content-suffix`]:{marginInlineStart:_e}}})}},Te=He=>{const{fontSizeHeading3:ht,fontSize:_e}=He;return{titleFontSize:_e,contentFontSize:ht}};var we=(0,ve.I$)("Statistic",He=>{const ht=(0,Me.mergeToken)(He,{});return[Se(ht)]},Te),Ce=function(He,ht){var _e={};for(var Re in He)Object.prototype.hasOwnProperty.call(He,Re)&&ht.indexOf(Re)<0&&(_e[Re]=He[Re]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,Re=Object.getOwnPropertySymbols(He);Nt<Re.length;Nt++)ht.indexOf(Re[Nt])<0&&Object.prototype.propertyIsEnumerable.call(He,Re[Nt])&&(_e[Re[Nt]]=He[Re[Nt]]);return _e},ke=He=>{const{prefixCls:ht,className:_e,rootClassName:Re,style:Nt,valueStyle:it,value:at=0,title:Bt,valueRender:Ze,prefix:De,suffix:ut,loading:$t=!1,formatter:zt,precision:tt,decimalSeparator:Ot=".",groupSeparator:Rt=",",onMouseEnter:fn,onMouseLeave:Tt}=He,mn=Ce(He,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:Dt,direction:En,className:rn,style:de}=(0,Ue.dj)("statistic"),pe=Dt("statistic",ht),[ie,ee,se]=we(pe),le=x.createElement(oe,{decimalSeparator:Ot,groupSeparator:Rt,prefixCls:pe,formatter:zt,precision:tt,value:at}),Be=ze()(pe,{[`${pe}-rtl`]:En==="rtl"},rn,_e,Re,ee,se),We=(0,Le.Z)(mn,{aria:!0,data:!0});return ie(x.createElement("div",Object.assign({},We,{className:Be,style:Object.assign(Object.assign({},de),Nt),onMouseEnter:fn,onMouseLeave:Tt}),Bt&&x.createElement("div",{className:`${pe}-title`},Bt),x.createElement(he.Z,{paragraph:!1,loading:$t,className:`${pe}-skeleton`},x.createElement("div",{style:it,className:`${pe}-content`},De&&x.createElement("span",{className:`${pe}-content-prefix`},De),Ze?Ze(le):le,ut&&x.createElement("span",{className:`${pe}-content-suffix`},ut)))))};const Ke=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function Qe(He,ht){let _e=He;const Re=/\[[^\]]*]/g,Nt=(ht.match(Re)||[]).map(Ze=>Ze.slice(1,-1)),it=ht.replace(Re,"[]"),at=Ke.reduce((Ze,De)=>{let[ut,$t]=De;if(Ze.includes(ut)){const zt=Math.floor(_e/$t);return _e-=zt*$t,Ze.replace(new RegExp(`${ut}+`,"g"),tt=>{const Ot=tt.length;return zt.toString().padStart(Ot,"0")})}return Ze},it);let Bt=0;return at.replace(Re,()=>{const Ze=Nt[Bt];return Bt+=1,Ze})}function je(He,ht){const{format:_e=""}=ht,Re=new Date(He).getTime(),Nt=Date.now(),it=Math.max(Re-Nt,0);return Qe(it,_e)}var qe=function(He,ht){var _e={};for(var Re in He)Object.prototype.hasOwnProperty.call(He,Re)&&ht.indexOf(Re)<0&&(_e[Re]=He[Re]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,Re=Object.getOwnPropertySymbols(He);Nt<Re.length;Nt++)ht.indexOf(Re[Nt])<0&&Object.prototype.propertyIsEnumerable.call(He,Re[Nt])&&(_e[Re[Nt]]=He[Re[Nt]]);return _e};const Ve=1e3/30;function ct(He){return new Date(He).getTime()}const ot=He=>{const{value:ht,format:_e="HH:mm:ss",onChange:Re,onFinish:Nt}=He,it=qe(He,["value","format","onChange","onFinish"]),at=(0,dt.Z)(),Bt=x.useRef(null),Ze=()=>{Nt==null||Nt(),Bt.current&&(clearInterval(Bt.current),Bt.current=null)},De=()=>{const zt=ct(ht);zt>=Date.now()&&(Bt.current=setInterval(()=>{at(),Re==null||Re(zt-Date.now()),zt<Date.now()&&Ze()},Ve))};x.useEffect(()=>(De(),()=>{Bt.current&&(clearInterval(Bt.current),Bt.current=null)}),[ht]);const ut=(zt,tt)=>je(zt,Object.assign(Object.assign({},tt),{format:_e})),$t=zt=>(0,Ie.Tm)(zt,{title:void 0});return x.createElement(ke,Object.assign({},it,{value:ht,valueRender:$t,formatter:ut}))};var pt=x.memo(ot);ke.Countdown=pt;var bt=ke},58755:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return Nt}});var x=ae(59301),dt=ae(58617),Ie=ae(92310),Je=ae.n(Ie),ze=ae(54476),Le=ae(20068),Ue=ae(42978),he=ae(75931),xe=ae(18929),oe=ae(10228),Oe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ve=x.forwardRef(function(it,at){var Bt,Ze=it.prefixCls,De=Ze===void 0?"rc-switch":Ze,ut=it.className,$t=it.checked,zt=it.defaultChecked,tt=it.disabled,Ot=it.loadingIcon,Rt=it.checkedChildren,fn=it.unCheckedChildren,Tt=it.onClick,mn=it.onChange,Dt=it.onKeyDown,En=(0,he.Z)(it,Oe),rn=(0,xe.Z)(!1,{value:$t,defaultValue:zt}),de=(0,Ue.Z)(rn,2),pe=de[0],ie=de[1];function ee(We,st){var mt=pe;return tt||(mt=We,ie(mt),mn==null||mn(mt,st)),mt}function se(We){We.which===oe.Z.LEFT?ee(!1,We):We.which===oe.Z.RIGHT&&ee(!0,We),Dt==null||Dt(We)}function le(We){var st=ee(!pe,We);Tt==null||Tt(st,We)}var Be=Je()(De,ut,(Bt={},(0,Le.Z)(Bt,"".concat(De,"-checked"),pe),(0,Le.Z)(Bt,"".concat(De,"-disabled"),tt),Bt));return x.createElement("button",(0,ze.Z)({},En,{type:"button",role:"switch","aria-checked":pe,disabled:tt,className:Be,ref:at,onKeyDown:se,onClick:le}),Ot,x.createElement("span",{className:"".concat(De,"-inner")},x.createElement("span",{className:"".concat(De,"-inner-checked")},Rt),x.createElement("span",{className:"".concat(De,"-inner-unchecked")},fn)))});ve.displayName="Switch";var Me=ve,Se=ae(12919),Te=ae(48755),we=ae(2171),Ce=ae(31756),Ee=ae(36237),ke=ae(17835),Ke=ae(63356),Qe=ae(16931),je=ae(51636);const qe=it=>{const{componentCls:at,trackHeightSM:Bt,trackPadding:Ze,trackMinWidthSM:De,innerMinMarginSM:ut,innerMaxMarginSM:$t,handleSizeSM:zt,calc:tt}=it,Ot=`${at}-inner`,Rt=(0,Ee.unit)(tt(zt).add(tt(Ze).mul(2)).equal()),fn=(0,Ee.unit)(tt($t).mul(2).equal());return{[at]:{[`&${at}-small`]:{minWidth:De,height:Bt,lineHeight:(0,Ee.unit)(Bt),[`${at}-inner`]:{paddingInlineStart:$t,paddingInlineEnd:ut,[`${Ot}-checked, ${Ot}-unchecked`]:{minHeight:Bt},[`${Ot}-checked`]:{marginInlineStart:`calc(-100% + ${Rt} - ${fn})`,marginInlineEnd:`calc(100% - ${Rt} + ${fn})`},[`${Ot}-unchecked`]:{marginTop:tt(Bt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${at}-handle`]:{width:zt,height:zt},[`${at}-loading-icon`]:{top:tt(tt(zt).sub(it.switchLoadingIconSize)).div(2).equal(),fontSize:it.switchLoadingIconSize},[`&${at}-checked`]:{[`${at}-inner`]:{paddingInlineStart:ut,paddingInlineEnd:$t,[`${Ot}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ot}-unchecked`]:{marginInlineStart:`calc(100% - ${Rt} + ${fn})`,marginInlineEnd:`calc(-100% + ${Rt} - ${fn})`}},[`${at}-handle`]:{insetInlineStart:`calc(100% - ${(0,Ee.unit)(tt(zt).add(Ze).equal())})`}},[`&:not(${at}-disabled):active`]:{[`&:not(${at}-checked) ${Ot}`]:{[`${Ot}-unchecked`]:{marginInlineStart:tt(it.marginXXS).div(2).equal(),marginInlineEnd:tt(it.marginXXS).mul(-1).div(2).equal()}},[`&${at}-checked ${Ot}`]:{[`${Ot}-checked`]:{marginInlineStart:tt(it.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:tt(it.marginXXS).div(2).equal()}}}}}}},Ve=it=>{const{componentCls:at,handleSize:Bt,calc:Ze}=it;return{[at]:{[`${at}-loading-icon${it.iconCls}`]:{position:"relative",top:Ze(Ze(Bt).sub(it.fontSize)).div(2).equal(),color:it.switchLoadingIconColor,verticalAlign:"top"},[`&${at}-checked ${at}-loading-icon`]:{color:it.switchColor}}}},ct=it=>{const{componentCls:at,trackPadding:Bt,handleBg:Ze,handleShadow:De,handleSize:ut,calc:$t}=it,zt=`${at}-handle`;return{[at]:{[zt]:{position:"absolute",top:Bt,insetInlineStart:Bt,width:ut,height:ut,transition:`all ${it.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Ze,borderRadius:$t(ut).div(2).equal(),boxShadow:De,transition:`all ${it.switchDuration} ease-in-out`,content:'""'}},[`&${at}-checked ${zt}`]:{insetInlineStart:`calc(100% - ${(0,Ee.unit)($t(ut).add(Bt).equal())})`},[`&:not(${at}-disabled):active`]:{[`${zt}::before`]:{insetInlineEnd:it.switchHandleActiveInset,insetInlineStart:0},[`&${at}-checked ${zt}::before`]:{insetInlineEnd:0,insetInlineStart:it.switchHandleActiveInset}}}}},ot=it=>{const{componentCls:at,trackHeight:Bt,trackPadding:Ze,innerMinMargin:De,innerMaxMargin:ut,handleSize:$t,calc:zt}=it,tt=`${at}-inner`,Ot=(0,Ee.unit)(zt($t).add(zt(Ze).mul(2)).equal()),Rt=(0,Ee.unit)(zt(ut).mul(2).equal());return{[at]:{[tt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:ut,paddingInlineEnd:De,transition:`padding-inline-start ${it.switchDuration} ease-in-out, padding-inline-end ${it.switchDuration} ease-in-out`,[`${tt}-checked, ${tt}-unchecked`]:{display:"block",color:it.colorTextLightSolid,fontSize:it.fontSizeSM,transition:`margin-inline-start ${it.switchDuration} ease-in-out, margin-inline-end ${it.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Bt},[`${tt}-checked`]:{marginInlineStart:`calc(-100% + ${Ot} - ${Rt})`,marginInlineEnd:`calc(100% - ${Ot} + ${Rt})`},[`${tt}-unchecked`]:{marginTop:zt(Bt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${at}-checked ${tt}`]:{paddingInlineStart:De,paddingInlineEnd:ut,[`${tt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${tt}-unchecked`]:{marginInlineStart:`calc(100% - ${Ot} + ${Rt})`,marginInlineEnd:`calc(-100% + ${Ot} - ${Rt})`}},[`&:not(${at}-disabled):active`]:{[`&:not(${at}-checked) ${tt}`]:{[`${tt}-unchecked`]:{marginInlineStart:zt(Ze).mul(2).equal(),marginInlineEnd:zt(Ze).mul(-1).mul(2).equal()}},[`&${at}-checked ${tt}`]:{[`${tt}-checked`]:{marginInlineStart:zt(Ze).mul(-1).mul(2).equal(),marginInlineEnd:zt(Ze).mul(2).equal()}}}}}},pt=it=>{const{componentCls:at,trackHeight:Bt,trackMinWidth:Ze}=it;return{[at]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ke.Wf)(it)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ze,height:Bt,lineHeight:(0,Ee.unit)(Bt),verticalAlign:"middle",background:it.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${it.motionDurationMid}`,userSelect:"none",[`&:hover:not(${at}-disabled)`]:{background:it.colorTextTertiary}}),(0,Ke.Qy)(it)),{[`&${at}-checked`]:{background:it.switchColor,[`&:hover:not(${at}-disabled)`]:{background:it.colorPrimaryHover}},[`&${at}-loading, &${at}-disabled`]:{cursor:"not-allowed",opacity:it.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${at}-rtl`]:{direction:"rtl"}})}},bt=it=>{const{fontSize:at,lineHeight:Bt,controlHeight:Ze,colorWhite:De}=it,ut=at*Bt,$t=Ze/2,zt=2,tt=ut-zt*2,Ot=$t-zt*2;return{trackHeight:ut,trackHeightSM:$t,trackMinWidth:tt*2+zt*4,trackMinWidthSM:Ot*2+zt*2,trackPadding:zt,handleBg:De,handleSize:tt,handleSizeSM:Ot,handleShadow:`0 2px 4px 0 ${new ke.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:tt/2,innerMaxMargin:tt+zt+zt*2,innerMinMarginSM:Ot/2,innerMaxMarginSM:Ot+zt+zt*2}};var He=(0,Qe.I$)("Switch",it=>{const at=(0,je.mergeToken)(it,{switchDuration:it.motionDurationMid,switchColor:it.colorPrimary,switchDisabledOpacity:it.opacityLoading,switchLoadingIconSize:it.calc(it.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${it.opacityLoading})`,switchHandleActiveInset:"-30%"});return[pt(at),ot(at),ct(at),Ve(at),qe(at)]},bt),ht=function(it,at){var Bt={};for(var Ze in it)Object.prototype.hasOwnProperty.call(it,Ze)&&at.indexOf(Ze)<0&&(Bt[Ze]=it[Ze]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,Ze=Object.getOwnPropertySymbols(it);De<Ze.length;De++)at.indexOf(Ze[De])<0&&Object.prototype.propertyIsEnumerable.call(it,Ze[De])&&(Bt[Ze[De]]=it[Ze[De]]);return Bt};const Re=x.forwardRef((it,at)=>{const{prefixCls:Bt,size:Ze,disabled:De,loading:ut,className:$t,rootClassName:zt,style:tt,checked:Ot,value:Rt,defaultChecked:fn,defaultValue:Tt,onChange:mn}=it,Dt=ht(it,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[En,rn]=(0,xe.Z)(!1,{value:Ot!=null?Ot:Rt,defaultValue:fn!=null?fn:Tt}),{getPrefixCls:de,direction:pe,switch:ie}=x.useContext(Te.E_),ee=x.useContext(we.Z),se=(De!=null?De:ee)||ut,le=de("switch",Bt),Be=x.createElement("div",{className:`${le}-handle`},ut&&x.createElement(dt.Z,{className:`${le}-loading-icon`})),[We,st,mt]=He(le),gt=(0,Ce.Z)(Ze),Et=Je()(ie==null?void 0:ie.className,{[`${le}-small`]:gt==="small",[`${le}-loading`]:ut,[`${le}-rtl`]:pe==="rtl"},$t,zt,st,mt),Lt=Object.assign(Object.assign({},ie==null?void 0:ie.style),tt),jt=function(){rn(arguments.length<=0?void 0:arguments[0]),mn==null||mn.apply(void 0,arguments)};return We(x.createElement(Se.Z,{component:"Switch"},x.createElement(Me,Object.assign({},Dt,{checked:En,onChange:jt,prefixCls:le,className:Et,style:Lt,disabled:se,ref:at,loadingIcon:Be}))))});Re.__ANT_SWITCH=!0;var Nt=Re},70858:function(Jn,kt,ae){"use strict";ae.d(kt,{default:function(){return hp}});var x=ae(59301),dt={},Ie="rc-table-internal-hook",Je=ae(42978),ze=ae(6089),Le=ae(34280),Ue=ae(13697),he=ae(4676);function xe(wt){var yt=x.createContext(void 0),Xt=function(Sn){var kn=Sn.value,ar=Sn.children,er=x.useRef(kn);er.current=kn;var br=x.useState(function(){return{getValue:function(){return er.current},listeners:new Set}}),hr=(0,Je.Z)(br,1),li=hr[0];return(0,Le.Z)(function(){(0,he.unstable_batchedUpdates)(function(){li.listeners.forEach(function(Qr){Qr(kn)})})},[kn]),x.createElement(yt.Provider,{value:li},ar)};return{Context:yt,Provider:Xt,defaultValue:wt}}function oe(wt,yt){var Xt=(0,ze.Z)(typeof yt=="function"?yt:function(Qr){if(yt===void 0)return Qr;if(!Array.isArray(yt))return Qr[yt];var Hr={};return yt.forEach(function(Or){Hr[Or]=Qr[Or]}),Hr}),cn=x.useContext(wt==null?void 0:wt.Context),Sn=cn||{},kn=Sn.listeners,ar=Sn.getValue,er=x.useRef();er.current=Xt(cn?ar():wt==null?void 0:wt.defaultValue);var br=x.useState({}),hr=(0,Je.Z)(br,2),li=hr[1];return(0,Le.Z)(function(){if(!cn)return;function Qr(Hr){var Or=Xt(Hr);(0,Ue.Z)(er.current,Or,!0)||li({})}return kn.add(Qr),function(){kn.delete(Qr)}},[cn]),er.current}var Oe=ae(54476),ve=ae(8654);function Me(){var wt=x.createContext(null);function yt(){return x.useContext(wt)}function Xt(Sn,kn){var ar=(0,ve.Yr)(Sn),er=function(hr,li){var Qr=ar?{ref:li}:{},Hr=x.useRef(0),Or=x.useRef(hr),_r=yt();return _r!==null?x.createElement(Sn,(0,Oe.Z)({},hr,Qr)):((!kn||kn(Or.current,hr))&&(Hr.current+=1),Or.current=hr,x.createElement(wt.Provider,{value:Hr.current},x.createElement(Sn,(0,Oe.Z)({},hr,Qr))))};return ar?x.forwardRef(er):er}function cn(Sn,kn){var ar=(0,ve.Yr)(Sn),er=function(hr,li){var Qr=ar?{ref:li}:{};return yt(),x.createElement(Sn,(0,Oe.Z)({},hr,Qr))};return ar?x.memo(x.forwardRef(er),kn):x.memo(er,kn)}return{makeImmutable:Xt,responseImmutable:cn,useImmutableMark:yt}}var Se=Me(),Te=Se.makeImmutable,we=Se.responseImmutable,Ce=Se.useImmutableMark,Ee=Me(),ke=Ee.makeImmutable,Ke=Ee.responseImmutable,Qe=Ee.useImmutableMark,je=xe(),qe=je;function Ve(wt,yt){var Xt=React.useRef(0);Xt.current+=1;var cn=React.useRef(wt),Sn=[];Object.keys(wt||{}).map(function(ar){var er;(wt==null?void 0:wt[ar])!==((er=cn.current)===null||er===void 0?void 0:er[ar])&&Sn.push(ar)}),cn.current=wt;var kn=React.useRef([]);return Sn.length&&(kn.current=Sn),React.useDebugValue(Xt.current),React.useDebugValue(kn.current.join(", ")),yt&&console.log("".concat(yt,":"),Xt.current,kn.current),Xt.current}var ct=null,ot=null,pt=ae(76190),bt=ae(33885),He=ae(20068),ht=ae(92310),_e=ae.n(ht),Re=ae(80547),Nt=ae(97938),it=ae(48736),at=x.createContext({renderWithProps:!1}),Bt=at,Ze="RC_TABLE_KEY";function De(wt){return wt==null?[]:Array.isArray(wt)?wt:[wt]}function ut(wt){var yt=[],Xt={};return wt.forEach(function(cn){for(var Sn=cn||{},kn=Sn.key,ar=Sn.dataIndex,er=kn||De(ar).join("-")||Ze;Xt[er];)er="".concat(er,"_next");Xt[er]=!0,yt.push(er)}),yt}function $t(wt){return wt!=null}function zt(wt){return typeof wt=="number"&&!Number.isNaN(wt)}function tt(wt){return wt&&(0,pt.Z)(wt)==="object"&&!Array.isArray(wt)&&!x.isValidElement(wt)}function Ot(wt,yt,Xt,cn,Sn,kn){var ar=x.useContext(Bt),er=Qe(),br=(0,Re.Z)(function(){if($t(cn))return[cn];var hr=yt==null||yt===""?[]:Array.isArray(yt)?yt:[yt],li=(0,Nt.Z)(wt,hr),Qr=li,Hr=void 0;if(Sn){var Or=Sn(li,wt,Xt);tt(Or)?(Qr=Or.children,Hr=Or.props,ar.renderWithProps=!0):Qr=Or}return[Qr,Hr]},[er,wt,cn,yt,Sn,Xt],function(hr,li){if(kn){var Qr=(0,Je.Z)(hr,2),Hr=Qr[1],Or=(0,Je.Z)(li,2),_r=Or[1];return kn(_r,Hr)}return ar.renderWithProps?!0:!(0,Ue.Z)(hr,li,!0)});return br}function Rt(wt,yt,Xt,cn){var Sn=wt+yt-1;return wt<=cn&&Sn>=Xt}function fn(wt,yt){return oe(qe,function(Xt){var cn=Rt(wt,yt||1,Xt.hoverStartRow,Xt.hoverEndRow);return[cn,Xt.onHover]})}var Tt=ae(70425),mn=function(yt){var Xt=yt.ellipsis,cn=yt.rowType,Sn=yt.children,kn,ar=Xt===!0?{showTitle:!0}:Xt;return ar&&(ar.showTitle||cn==="header")&&(typeof Sn=="string"||typeof Sn=="number"?kn=Sn.toString():x.isValidElement(Sn)&&typeof Sn.props.children=="string"&&(kn=Sn.props.children)),kn};function Dt(wt){var yt,Xt,cn,Sn,kn,ar,er,br,hr=wt.component,li=wt.children,Qr=wt.ellipsis,Hr=wt.scope,Or=wt.prefixCls,_r=wt.className,Zi=wt.align,Ci=wt.record,qi=wt.render,so=wt.dataIndex,Xi=wt.renderIndex,ho=wt.shouldCellUpdate,Bo=wt.index,jo=wt.rowType,Po=wt.colSpan,Ia=wt.rowSpan,aa=wt.fixLeft,ta=wt.fixRight,zo=wt.firstFixLeft,Qo=wt.lastFixLeft,Ho=wt.firstFixRight,vo=wt.lastFixRight,fo=wt.appendNode,To=wt.additionalProps,Zo=To===void 0?{}:To,na=wt.isSticky,Co="".concat(Or,"-cell"),Xa=oe(qe,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Ha=Xa.supportSticky,Ml=Xa.allColumnsFixedLeft,Fl=Xa.rowHoverable,ll=Ot(Ci,so,Xi,li,qi,ho),lo=(0,Je.Z)(ll,2),ql=lo[0],ls=lo[1],rs={},al=typeof aa=="number"&&Ha,mu=typeof ta=="number"&&Ha;al&&(rs.position="sticky",rs.left=aa),mu&&(rs.position="sticky",rs.right=ta);var ra=(yt=(Xt=(cn=ls==null?void 0:ls.colSpan)!==null&&cn!==void 0?cn:Zo.colSpan)!==null&&Xt!==void 0?Xt:Po)!==null&&yt!==void 0?yt:1,ba=(Sn=(kn=(ar=ls==null?void 0:ls.rowSpan)!==null&&ar!==void 0?ar:Zo.rowSpan)!==null&&kn!==void 0?kn:Ia)!==null&&Sn!==void 0?Sn:1,Wo=fn(Bo,ba),Oo=(0,Je.Z)(Wo,2),hs=Oo[0],Ss=Oo[1],Vs=(0,Tt.zX)(function(qs){var Xs;Ci&&Ss(Bo,Bo+ba-1),Zo==null||(Xs=Zo.onMouseEnter)===null||Xs===void 0||Xs.call(Zo,qs)}),zs=(0,Tt.zX)(function(qs){var Xs;Ci&&Ss(-1,-1),Zo==null||(Xs=Zo.onMouseLeave)===null||Xs===void 0||Xs.call(Zo,qs)});if(ra===0||ba===0)return null;var ul=(er=Zo.title)!==null&&er!==void 0?er:mn({rowType:jo,ellipsis:Qr,children:ql}),vu=_e()(Co,_r,(br={},(0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)(br,"".concat(Co,"-fix-left"),al&&Ha),"".concat(Co,"-fix-left-first"),zo&&Ha),"".concat(Co,"-fix-left-last"),Qo&&Ha),"".concat(Co,"-fix-left-all"),Qo&&Ml&&Ha),"".concat(Co,"-fix-right"),mu&&Ha),"".concat(Co,"-fix-right-first"),Ho&&Ha),"".concat(Co,"-fix-right-last"),vo&&Ha),"".concat(Co,"-ellipsis"),Qr),"".concat(Co,"-with-append"),fo),"".concat(Co,"-fix-sticky"),(al||mu)&&na&&Ha),(0,He.Z)(br,"".concat(Co,"-row-hover"),!ls&&hs)),Zo.className,ls==null?void 0:ls.className),sa={};Zi&&(sa.textAlign=Zi);var ea=(0,bt.Z)((0,bt.Z)((0,bt.Z)((0,bt.Z)({},ls==null?void 0:ls.style),rs),sa),Zo.style),xs=ql;return(0,pt.Z)(xs)==="object"&&!Array.isArray(xs)&&!x.isValidElement(xs)&&(xs=null),Qr&&(Qo||Ho)&&(xs=x.createElement("span",{className:"".concat(Co,"-content")},xs)),x.createElement(hr,(0,Oe.Z)({},ls,Zo,{className:vu,style:ea,title:ul,scope:Hr,onMouseEnter:Fl?Vs:void 0,onMouseLeave:Fl?zs:void 0,colSpan:ra!==1?ra:null,rowSpan:ba!==1?ba:null}),fo,xs)}var En=x.memo(Dt);function rn(wt,yt,Xt,cn,Sn){var kn=Xt[wt]||{},ar=Xt[yt]||{},er,br;kn.fixed==="left"?er=cn.left[Sn==="rtl"?yt:wt]:ar.fixed==="right"&&(br=cn.right[Sn==="rtl"?wt:yt]);var hr=!1,li=!1,Qr=!1,Hr=!1,Or=Xt[yt+1],_r=Xt[wt-1],Zi=Or&&!Or.fixed||_r&&!_r.fixed||Xt.every(function(ho){return ho.fixed==="left"});if(Sn==="rtl"){if(er!==void 0){var Ci=_r&&_r.fixed==="left";Hr=!Ci&&Zi}else if(br!==void 0){var qi=Or&&Or.fixed==="right";Qr=!qi&&Zi}}else if(er!==void 0){var so=Or&&Or.fixed==="left";hr=!so&&Zi}else if(br!==void 0){var Xi=_r&&_r.fixed==="right";li=!Xi&&Zi}return{fixLeft:er,fixRight:br,lastFixLeft:hr,firstFixRight:li,lastFixRight:Qr,firstFixLeft:Hr,isSticky:cn.isSticky}}var de=x.createContext({}),pe=de;function ie(wt){var yt=wt.className,Xt=wt.index,cn=wt.children,Sn=wt.colSpan,kn=Sn===void 0?1:Sn,ar=wt.rowSpan,er=wt.align,br=oe(qe,["prefixCls","direction"]),hr=br.prefixCls,li=br.direction,Qr=x.useContext(pe),Hr=Qr.scrollColumnIndex,Or=Qr.stickyOffsets,_r=Qr.flattenColumns,Zi=Xt+kn-1,Ci=Zi+1===Hr?kn+1:kn,qi=rn(Xt,Xt+Ci-1,_r,Or,li);return x.createElement(En,(0,Oe.Z)({className:yt,index:Xt,component:"td",prefixCls:hr,record:null,dataIndex:null,align:er,colSpan:Ci,rowSpan:ar,render:function(){return cn}},qi))}var ee=ae(75931),se=["children"];function le(wt){var yt=wt.children,Xt=(0,ee.Z)(wt,se);return x.createElement("tr",Xt,yt)}function Be(wt){var yt=wt.children;return yt}Be.Row=le,Be.Cell=ie;var We=Be;function st(wt){var yt=wt.children,Xt=wt.stickyOffsets,cn=wt.flattenColumns,Sn=oe(qe,"prefixCls"),kn=cn.length-1,ar=cn[kn],er=x.useMemo(function(){return{stickyOffsets:Xt,flattenColumns:cn,scrollColumnIndex:ar!=null&&ar.scrollbar?kn:null}},[ar,cn,kn,Xt]);return x.createElement(pe.Provider,{value:er},x.createElement("tfoot",{className:"".concat(Sn,"-summary")},yt))}var mt=Ke(st),gt=We,Et=ae(29301),Lt=ae(24514),jt=ae(75152),Ct=ae(26112);function lt(wt,yt,Xt,cn,Sn,kn,ar){wt.push({record:yt,indent:Xt,index:ar});var er=kn(yt),br=Sn==null?void 0:Sn.has(er);if(yt&&Array.isArray(yt[cn])&&br)for(var hr=0;hr<yt[cn].length;hr+=1)lt(wt,yt[cn][hr],Xt+1,cn,Sn,kn,hr)}function Vt(wt,yt,Xt,cn){var Sn=x.useMemo(function(){if(Xt!=null&&Xt.size){for(var kn=[],ar=0;ar<(wt==null?void 0:wt.length);ar+=1){var er=wt[ar];lt(kn,er,0,yt,Xt,cn,ar)}return kn}return wt==null?void 0:wt.map(function(br,hr){return{record:br,indent:0,index:hr}})},[wt,yt,Xt,cn]);return Sn}function Zt(wt,yt,Xt,cn){var Sn=oe(qe,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),kn=Sn.flattenColumns,ar=Sn.expandableType,er=Sn.expandedKeys,br=Sn.childrenColumnName,hr=Sn.onTriggerExpand,li=Sn.rowExpandable,Qr=Sn.onRow,Hr=Sn.expandRowByClick,Or=Sn.rowClassName,_r=ar==="nest",Zi=ar==="row"&&(!li||li(wt)),Ci=Zi||_r,qi=er&&er.has(yt),so=br&&wt&&wt[br],Xi=(0,Tt.zX)(hr),ho=Qr==null?void 0:Qr(wt,Xt),Bo=ho==null?void 0:ho.onClick,jo=function(ta){Hr&&Ci&&hr(wt,ta);for(var zo=arguments.length,Qo=new Array(zo>1?zo-1:0),Ho=1;Ho<zo;Ho++)Qo[Ho-1]=arguments[Ho];Bo==null||Bo.apply(void 0,[ta].concat(Qo))},Po;typeof Or=="string"?Po=Or:typeof Or=="function"&&(Po=Or(wt,Xt,cn));var Ia=ut(kn);return(0,bt.Z)((0,bt.Z)({},Sn),{},{columnsKey:Ia,nestExpandable:_r,expanded:qi,hasNestChildren:so,record:wt,onTriggerExpand:Xi,rowSupportExpand:Zi,expandable:Ci,rowProps:(0,bt.Z)((0,bt.Z)({},ho),{},{className:_e()(Po,ho==null?void 0:ho.className),onClick:jo})})}function gn(wt){var yt=wt.prefixCls,Xt=wt.children,cn=wt.component,Sn=wt.cellComponent,kn=wt.className,ar=wt.expanded,er=wt.colSpan,br=wt.isEmpty,hr=oe(qe,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),li=hr.scrollbarSize,Qr=hr.fixHeader,Hr=hr.fixColumn,Or=hr.componentWidth,_r=hr.horizonScroll,Zi=Xt;return(br?_r&&Or:Hr)&&(Zi=x.createElement("div",{style:{width:Or-(Qr&&!br?li:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(yt,"-expanded-row-fixed")},Zi)),x.createElement(cn,{className:kn,style:{display:ar?null:"none"}},x.createElement(En,{component:Sn,prefixCls:yt,colSpan:er},Zi))}var sn=gn;function en(wt){var yt=wt.prefixCls,Xt=wt.record,cn=wt.onExpand,Sn=wt.expanded,kn=wt.expandable,ar="".concat(yt,"-row-expand-icon");if(!kn)return x.createElement("span",{className:_e()(ar,"".concat(yt,"-row-spaced"))});var er=function(hr){cn(Xt,hr),hr.stopPropagation()};return x.createElement("span",{className:_e()(ar,(0,He.Z)((0,He.Z)({},"".concat(yt,"-row-expanded"),Sn),"".concat(yt,"-row-collapsed"),!Sn)),onClick:er})}function zn(wt,yt,Xt){var cn=[];function Sn(kn){(kn||[]).forEach(function(ar,er){cn.push(yt(ar,er)),Sn(ar[Xt])})}return Sn(wt),cn}function Fn(wt,yt,Xt,cn){return typeof wt=="string"?wt:typeof wt=="function"?wt(yt,Xt,cn):""}function Ut(wt,yt,Xt,cn,Sn){var kn=wt.record,ar=wt.prefixCls,er=wt.columnsKey,br=wt.fixedInfoList,hr=wt.expandIconColumnIndex,li=wt.nestExpandable,Qr=wt.indentSize,Hr=wt.expandIcon,Or=wt.expanded,_r=wt.hasNestChildren,Zi=wt.onTriggerExpand,Ci=er[Xt],qi=br[Xt],so;Xt===(hr||0)&&li&&(so=x.createElement(x.Fragment,null,x.createElement("span",{style:{paddingLeft:"".concat(Qr*cn,"px")},className:"".concat(ar,"-row-indent indent-level-").concat(cn)}),Hr({prefixCls:ar,expanded:Or,expandable:_r,record:kn,onExpand:Zi})));var Xi;return yt.onCell&&(Xi=yt.onCell(kn,Sn)),{key:Ci,fixedInfo:qi,appendCellNode:so,additionalCellProps:Xi||{}}}function an(wt){var yt=wt.className,Xt=wt.style,cn=wt.record,Sn=wt.index,kn=wt.renderIndex,ar=wt.rowKey,er=wt.indent,br=er===void 0?0:er,hr=wt.rowComponent,li=wt.cellComponent,Qr=wt.scopeCellComponent,Hr=Zt(cn,ar,Sn,br),Or=Hr.prefixCls,_r=Hr.flattenColumns,Zi=Hr.expandedRowClassName,Ci=Hr.expandedRowRender,qi=Hr.rowProps,so=Hr.expanded,Xi=Hr.rowSupportExpand,ho=x.useRef(!1);ho.current||(ho.current=so);var Bo=Fn(Zi,cn,Sn,br),jo=x.createElement(hr,(0,Oe.Z)({},qi,{"data-row-key":ar,className:_e()(yt,"".concat(Or,"-row"),"".concat(Or,"-row-level-").concat(br),qi==null?void 0:qi.className,(0,He.Z)({},Bo,br>=1)),style:(0,bt.Z)((0,bt.Z)({},Xt),qi==null?void 0:qi.style)}),_r.map(function(aa,ta){var zo=aa.render,Qo=aa.dataIndex,Ho=aa.className,vo=Ut(Hr,aa,ta,br,Sn),fo=vo.key,To=vo.fixedInfo,Zo=vo.appendCellNode,na=vo.additionalCellProps;return x.createElement(En,(0,Oe.Z)({className:Ho,ellipsis:aa.ellipsis,align:aa.align,scope:aa.rowScope,component:aa.rowScope?Qr:li,prefixCls:Or,key:fo,record:cn,index:Sn,renderIndex:kn,dataIndex:Qo,render:zo,shouldCellUpdate:aa.shouldCellUpdate},To,{appendNode:Zo,additionalProps:na}))})),Po;if(Xi&&(ho.current||so)){var Ia=Ci(cn,Sn,br+1,so);Po=x.createElement(sn,{expanded:so,className:_e()("".concat(Or,"-expanded-row"),"".concat(Or,"-expanded-row-level-").concat(br+1),Bo),prefixCls:Or,component:hr,cellComponent:li,colSpan:_r.length,isEmpty:!1},Ia)}return x.createElement(x.Fragment,null,jo,Po)}var _n=Ke(an);function Vn(wt){var yt=wt.columnKey,Xt=wt.onColumnResize,cn=x.useRef();return(0,Le.Z)(function(){cn.current&&Xt(yt,cn.current.offsetWidth)},[]),x.createElement(Et.Z,{data:yt},x.createElement("td",{ref:cn,style:{padding:0,border:0,height:0}},x.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var It=ae(29194);function Wt(wt){var yt=wt.prefixCls,Xt=wt.columnsKey,cn=wt.onColumnResize,Sn=x.useRef(null);return x.createElement("tr",{"aria-hidden":"true",className:"".concat(yt,"-measure-row"),style:{height:0,fontSize:0},ref:Sn},x.createElement(Et.Z.Collection,{onBatchResize:function(ar){(0,It.Z)(Sn.current)&&ar.forEach(function(er){var br=er.data,hr=er.size;cn(br,hr.offsetWidth)})}},Xt.map(function(kn){return x.createElement(Vn,{key:kn,columnKey:kn,onColumnResize:cn})})))}function on(wt){var yt=wt.data,Xt=wt.measureColumnWidth,cn=oe(qe,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Sn=cn.prefixCls,kn=cn.getComponent,ar=cn.onColumnResize,er=cn.flattenColumns,br=cn.getRowKey,hr=cn.expandedKeys,li=cn.childrenColumnName,Qr=cn.emptyNode,Hr=Vt(yt,li,hr,br),Or=x.useRef({renderWithProps:!1}),_r=kn(["body","wrapper"],"tbody"),Zi=kn(["body","row"],"tr"),Ci=kn(["body","cell"],"td"),qi=kn(["body","cell"],"th"),so;yt.length?so=Hr.map(function(ho,Bo){var jo=ho.record,Po=ho.indent,Ia=ho.index,aa=br(jo,Bo);return x.createElement(_n,{key:aa,rowKey:aa,record:jo,index:Bo,renderIndex:Ia,rowComponent:Zi,cellComponent:Ci,scopeCellComponent:qi,indent:Po})}):so=x.createElement(sn,{expanded:!0,className:"".concat(Sn,"-placeholder"),prefixCls:Sn,component:Zi,cellComponent:Ci,colSpan:er.length,isEmpty:!0},Qr);var Xi=ut(er);return x.createElement(Bt.Provider,{value:Or.current},x.createElement(_r,{className:"".concat(Sn,"-tbody")},Xt&&x.createElement(Wt,{prefixCls:Sn,columnsKey:Xi,onColumnResize:ar}),so))}var vn=Ke(on),Yn=["expandable"],Lr="RC_TABLE_INTERNAL_COL_DEFINE";function ri(wt){var yt=wt.expandable,Xt=(0,ee.Z)(wt,Yn),cn;return"expandable"in wt?cn=(0,bt.Z)((0,bt.Z)({},Xt),yt):cn=Xt,cn.showExpandColumn===!1&&(cn.expandIconColumnIndex=-1),cn}var zr=["columnType"];function Ir(wt){for(var yt=wt.colWidths,Xt=wt.columns,cn=wt.columCount,Sn=oe(qe,["tableLayout"]),kn=Sn.tableLayout,ar=[],er=cn||Xt.length,br=!1,hr=er-1;hr>=0;hr-=1){var li=yt[hr],Qr=Xt&&Xt[hr],Hr=void 0,Or=void 0;if(Qr&&(Hr=Qr[Lr],kn==="auto"&&(Or=Qr.minWidth)),li||Or||Hr||br){var _r=Hr||{},Zi=_r.columnType,Ci=(0,ee.Z)(_r,zr);ar.unshift(x.createElement("col",(0,Oe.Z)({key:hr,style:{width:li,minWidth:Or}},Ci))),br=!0}}return x.createElement("colgroup",null,ar)}var tr=Ir,vr=ae(94480),Qn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function qn(wt,yt){return(0,x.useMemo)(function(){for(var Xt=[],cn=0;cn<yt;cn+=1){var Sn=wt[cn];if(Sn!==void 0)Xt[cn]=Sn;else return null}return Xt},[wt.join("_"),yt])}var lr=x.forwardRef(function(wt,yt){var Xt=wt.className,cn=wt.noData,Sn=wt.columns,kn=wt.flattenColumns,ar=wt.colWidths,er=wt.columCount,br=wt.stickyOffsets,hr=wt.direction,li=wt.fixHeader,Qr=wt.stickyTopOffset,Hr=wt.stickyBottomOffset,Or=wt.stickyClassName,_r=wt.onScroll,Zi=wt.maxContentScroll,Ci=wt.children,qi=(0,ee.Z)(wt,Qn),so=oe(qe,["prefixCls","scrollbarSize","isSticky","getComponent"]),Xi=so.prefixCls,ho=so.scrollbarSize,Bo=so.isSticky,jo=so.getComponent,Po=jo(["header","table"],"table"),Ia=Bo&&!li?0:ho,aa=x.useRef(null),ta=x.useCallback(function(na){(0,ve.mH)(yt,na),(0,ve.mH)(aa,na)},[]);x.useEffect(function(){var na;function Co(Xa){var Ha=Xa,Ml=Ha.currentTarget,Fl=Ha.deltaX;Fl&&(_r({currentTarget:Ml,scrollLeft:Ml.scrollLeft+Fl}),Xa.preventDefault())}return(na=aa.current)===null||na===void 0||na.addEventListener("wheel",Co,{passive:!1}),function(){var Xa;(Xa=aa.current)===null||Xa===void 0||Xa.removeEventListener("wheel",Co)}},[]);var zo=x.useMemo(function(){return kn.every(function(na){return na.width})},[kn]),Qo=kn[kn.length-1],Ho={fixed:Qo?Qo.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Xi,"-cell-scrollbar")}}},vo=(0,x.useMemo)(function(){return Ia?[].concat((0,vr.Z)(Sn),[Ho]):Sn},[Ia,Sn]),fo=(0,x.useMemo)(function(){return Ia?[].concat((0,vr.Z)(kn),[Ho]):kn},[Ia,kn]),To=(0,x.useMemo)(function(){var na=br.right,Co=br.left;return(0,bt.Z)((0,bt.Z)({},br),{},{left:hr==="rtl"?[].concat((0,vr.Z)(Co.map(function(Xa){return Xa+Ia})),[0]):Co,right:hr==="rtl"?na:[].concat((0,vr.Z)(na.map(function(Xa){return Xa+Ia})),[0]),isSticky:Bo})},[Ia,br,Bo]),Zo=qn(ar,er);return x.createElement("div",{style:(0,bt.Z)({overflow:"hidden"},Bo?{top:Qr,bottom:Hr}:{}),ref:ta,className:_e()(Xt,(0,He.Z)({},Or,!!Or))},x.createElement(Po,{style:{tableLayout:"fixed",visibility:cn||Zo?null:"hidden"}},(!cn||!Zi||zo)&&x.createElement(tr,{colWidths:Zo?[].concat((0,vr.Z)(Zo),[Ia]):[],columCount:er+1,columns:fo}),Ci((0,bt.Z)((0,bt.Z)({},qi),{},{stickyOffsets:To,columns:vo,flattenColumns:fo}))))}),$n=x.memo(lr),Br=function(yt){var Xt=yt.cells,cn=yt.stickyOffsets,Sn=yt.flattenColumns,kn=yt.rowComponent,ar=yt.cellComponent,er=yt.onHeaderRow,br=yt.index,hr=oe(qe,["prefixCls","direction"]),li=hr.prefixCls,Qr=hr.direction,Hr;er&&(Hr=er(Xt.map(function(_r){return _r.column}),br));var Or=ut(Xt.map(function(_r){return _r.column}));return x.createElement(kn,Hr,Xt.map(function(_r,Zi){var Ci=_r.column,qi=rn(_r.colStart,_r.colEnd,Sn,cn,Qr),so;return Ci&&Ci.onHeaderCell&&(so=_r.column.onHeaderCell(Ci)),x.createElement(En,(0,Oe.Z)({},_r,{scope:Ci.title?_r.colSpan>1?"colgroup":"col":null,ellipsis:Ci.ellipsis,align:Ci.align,component:ar,prefixCls:li,key:Or[Zi]},qi,{additionalProps:so,rowType:"header"}))}))},Sr=Br;function kr(wt){var yt=[];function Xt(ar,er){var br=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;yt[br]=yt[br]||[];var hr=er,li=ar.filter(Boolean).map(function(Qr){var Hr={key:Qr.key,className:Qr.className||"",children:Qr.title,column:Qr,colStart:hr},Or=1,_r=Qr.children;return _r&&_r.length>0&&(Or=Xt(_r,hr,br+1).reduce(function(Zi,Ci){return Zi+Ci},0),Hr.hasSubColumns=!0),"colSpan"in Qr&&(Or=Qr.colSpan),"rowSpan"in Qr&&(Hr.rowSpan=Qr.rowSpan),Hr.colSpan=Or,Hr.colEnd=Hr.colStart+Or-1,yt[br].push(Hr),hr+=Or,Or});return li}Xt(wt,0);for(var cn=yt.length,Sn=function(er){yt[er].forEach(function(br){!("rowSpan"in br)&&!br.hasSubColumns&&(br.rowSpan=cn-er)})},kn=0;kn<cn;kn+=1)Sn(kn);return yt}var gi=function(yt){var Xt=yt.stickyOffsets,cn=yt.columns,Sn=yt.flattenColumns,kn=yt.onHeaderRow,ar=oe(qe,["prefixCls","getComponent"]),er=ar.prefixCls,br=ar.getComponent,hr=x.useMemo(function(){return kr(cn)},[cn]),li=br(["header","wrapper"],"thead"),Qr=br(["header","row"],"tr"),Hr=br(["header","cell"],"th");return x.createElement(li,{className:"".concat(er,"-thead")},hr.map(function(Or,_r){var Zi=x.createElement(Sr,{key:_r,flattenColumns:Sn,cells:Or,stickyOffsets:Xt,rowComponent:Qr,cellComponent:Hr,onHeaderRow:kn,index:_r});return Zi}))},Ai=Ke(gi),di=ae(11592);function Ti(wt){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof yt=="number"?yt:yt.endsWith("%")?wt*parseFloat(yt)/100:null}function Ei(wt,yt,Xt){return x.useMemo(function(){if(yt&&yt>0){var cn=0,Sn=0;wt.forEach(function(Hr){var Or=Ti(yt,Hr.width);Or?cn+=Or:Sn+=1});var kn=Math.max(yt,Xt),ar=Math.max(kn-cn,Sn),er=Sn,br=ar/Sn,hr=0,li=wt.map(function(Hr){var Or=(0,bt.Z)({},Hr),_r=Ti(yt,Or.width);if(_r)Or.width=_r;else{var Zi=Math.floor(br);Or.width=er===1?ar:Zi,ar-=Zi,er-=1}return hr+=Or.width,Or});if(hr<kn){var Qr=kn/hr;ar=kn,li.forEach(function(Hr,Or){var _r=Math.floor(Hr.width*Qr);Hr.width=Or===li.length-1?ar:_r,ar-=_r})}return[li,Math.max(hr,kn)]}return[wt,yt]},[wt,yt,Xt])}var no=["children"],zi=["fixed"];function fr(wt){return(0,di.Z)(wt).filter(function(yt){return x.isValidElement(yt)}).map(function(yt){var Xt=yt.key,cn=yt.props,Sn=cn.children,kn=(0,ee.Z)(cn,no),ar=(0,bt.Z)({key:Xt},kn);return Sn&&(ar.children=fr(Sn)),ar})}function Ur(wt){return wt.filter(function(yt){return yt&&(0,pt.Z)(yt)==="object"&&!yt.hidden}).map(function(yt){var Xt=yt.children;return Xt&&Xt.length>0?(0,bt.Z)((0,bt.Z)({},yt),{},{children:Ur(Xt)}):yt})}function vi(wt){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return wt.filter(function(Xt){return Xt&&(0,pt.Z)(Xt)==="object"}).reduce(function(Xt,cn,Sn){var kn=cn.fixed,ar=kn===!0?"left":kn,er="".concat(yt,"-").concat(Sn),br=cn.children;return br&&br.length>0?[].concat((0,vr.Z)(Xt),(0,vr.Z)(vi(br,er).map(function(hr){return(0,bt.Z)({fixed:ar},hr)}))):[].concat((0,vr.Z)(Xt),[(0,bt.Z)((0,bt.Z)({key:er},cn),{},{fixed:ar})])},[])}function Gt(wt){return wt.map(function(yt){var Xt=yt.fixed,cn=(0,ee.Z)(yt,zi),Sn=Xt;return Xt==="left"?Sn="right":Xt==="right"&&(Sn="left"),(0,bt.Z)({fixed:Sn},cn)})}function un(wt,yt){var Xt=wt.prefixCls,cn=wt.columns,Sn=wt.children,kn=wt.expandable,ar=wt.expandedKeys,er=wt.columnTitle,br=wt.getRowKey,hr=wt.onTriggerExpand,li=wt.expandIcon,Qr=wt.rowExpandable,Hr=wt.expandIconColumnIndex,Or=wt.direction,_r=wt.expandRowByClick,Zi=wt.columnWidth,Ci=wt.fixed,qi=wt.scrollWidth,so=wt.clientWidth,Xi=x.useMemo(function(){var Qo=cn||fr(Sn)||[];return Ur(Qo.slice())},[cn,Sn]),ho=x.useMemo(function(){if(kn){var Qo=Xi.slice();if(!Qo.includes(dt)){var Ho=Hr||0;Ho>=0&&(Ho||Ci==="left"||!Ci)&&Qo.splice(Ho,0,dt),Ci==="right"&&Qo.splice(Xi.length,0,dt)}var vo=Qo.indexOf(dt);Qo=Qo.filter(function(na,Co){return na!==dt||Co===vo});var fo=Xi[vo],To;Ci?To=Ci:To=fo?fo.fixed:null;var Zo=(0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)({},Lr,{className:"".concat(Xt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",er),"fixed",To),"className","".concat(Xt,"-row-expand-icon-cell")),"width",Zi),"render",function(Co,Xa,Ha){var Ml=br(Xa,Ha),Fl=ar.has(Ml),ll=Qr?Qr(Xa):!0,lo=li({prefixCls:Xt,expanded:Fl,expandable:ll,record:Xa,onExpand:hr});return _r?x.createElement("span",{onClick:function(ls){return ls.stopPropagation()}},lo):lo});return Qo.map(function(na){return na===dt?Zo:na})}return Xi.filter(function(na){return na!==dt})},[kn,Xi,br,ar,li,Or]),Bo=x.useMemo(function(){var Qo=ho;return yt&&(Qo=yt(Qo)),Qo.length||(Qo=[{render:function(){return null}}]),Qo},[yt,ho,Or]),jo=x.useMemo(function(){return Or==="rtl"?Gt(vi(Bo)):vi(Bo)},[Bo,Or,qi]),Po=x.useMemo(function(){for(var Qo=-1,Ho=jo.length-1;Ho>=0;Ho-=1){var vo=jo[Ho].fixed;if(vo==="left"||vo===!0){Qo=Ho;break}}if(Qo>=0)for(var fo=0;fo<=Qo;fo+=1){var To=jo[fo].fixed;if(To!=="left"&&To!==!0)return!0}var Zo=jo.findIndex(function(Xa){var Ha=Xa.fixed;return Ha==="right"});if(Zo>=0)for(var na=Zo;na<jo.length;na+=1){var Co=jo[na].fixed;if(Co!=="right")return!0}return!1},[jo]),Ia=Ei(jo,qi,so),aa=(0,Je.Z)(Ia,2),ta=aa[0],zo=aa[1];return[Bo,ta,zo,Po]}var wn=un;function Mt(wt,yt,Xt){var cn=ri(wt),Sn=cn.expandIcon,kn=cn.expandedRowKeys,ar=cn.defaultExpandedRowKeys,er=cn.defaultExpandAllRows,br=cn.expandedRowRender,hr=cn.onExpand,li=cn.onExpandedRowsChange,Qr=cn.childrenColumnName,Hr=Sn||en,Or=Qr||"children",_r=x.useMemo(function(){return br?"row":wt.expandable&&wt.internalHooks===Ie&&wt.expandable.__PARENT_RENDER_ICON__||yt.some(function(Bo){return Bo&&(0,pt.Z)(Bo)==="object"&&Bo[Or]})?"nest":!1},[!!br,yt]),Zi=x.useState(function(){return ar||(er?zn(yt,Xt,Or):[])}),Ci=(0,Je.Z)(Zi,2),qi=Ci[0],so=Ci[1],Xi=x.useMemo(function(){return new Set(kn||qi||[])},[kn,qi]),ho=x.useCallback(function(Bo){var jo=Xt(Bo,yt.indexOf(Bo)),Po,Ia=Xi.has(jo);Ia?(Xi.delete(jo),Po=(0,vr.Z)(Xi)):Po=[].concat((0,vr.Z)(Xi),[jo]),so(Po),hr&&hr(!Ia,Bo),li&&li(Po)},[Xt,Xi,yt,hr,li]);return[cn,_r,Xi,Hr,Or,ho]}function dn(wt,yt,Xt){var cn=wt.map(function(Sn,kn){return rn(kn,kn,wt,yt,Xt)});return(0,Re.Z)(function(){return cn},[cn],function(Sn,kn){return!(0,Ue.Z)(Sn,kn)})}function Kt(wt){var yt=(0,x.useRef)(wt),Xt=(0,x.useState)({}),cn=(0,Je.Z)(Xt,2),Sn=cn[1],kn=(0,x.useRef)(null),ar=(0,x.useRef)([]);function er(br){ar.current.push(br);var hr=Promise.resolve();kn.current=hr,hr.then(function(){if(kn.current===hr){var li=ar.current,Qr=yt.current;ar.current=[],li.forEach(function(Hr){yt.current=Hr(yt.current)}),kn.current=null,Qr!==yt.current&&Sn({})}})}return(0,x.useEffect)(function(){return function(){kn.current=null}},[]),[yt.current,er]}function pn(wt){var yt=(0,x.useRef)(wt||null),Xt=(0,x.useRef)();function cn(){window.clearTimeout(Xt.current)}function Sn(ar){yt.current=ar,cn(),Xt.current=window.setTimeout(function(){yt.current=null,Xt.current=void 0},100)}function kn(){return yt.current}return(0,x.useEffect)(function(){return cn},[]),[Sn,kn]}function Nn(){var wt=x.useState(-1),yt=(0,Je.Z)(wt,2),Xt=yt[0],cn=yt[1],Sn=x.useState(-1),kn=(0,Je.Z)(Sn,2),ar=kn[0],er=kn[1],br=x.useCallback(function(hr,li){cn(hr),er(li)},[]);return[Xt,ar,br]}var Pr=ae(47273),Yr=(0,Pr.Z)()?window:null;function ci(wt,yt){var Xt=(0,pt.Z)(wt)==="object"?wt:{},cn=Xt.offsetHeader,Sn=cn===void 0?0:cn,kn=Xt.offsetSummary,ar=kn===void 0?0:kn,er=Xt.offsetScroll,br=er===void 0?0:er,hr=Xt.getContainer,li=hr===void 0?function(){return Yr}:hr,Qr=li()||Yr,Hr=!!wt;return x.useMemo(function(){return{isSticky:Hr,stickyClassName:Hr?"".concat(yt,"-sticky-holder"):"",offsetHeader:Sn,offsetSummary:ar,offsetScroll:br,container:Qr}},[Hr,br,Sn,ar,yt,Qr])}function or(wt,yt,Xt){var cn=(0,x.useMemo)(function(){var Sn=yt.length,kn=function(hr,li,Qr){for(var Hr=[],Or=0,_r=hr;_r!==li;_r+=Qr)Hr.push(Or),yt[_r].fixed&&(Or+=wt[_r]||0);return Hr},ar=kn(0,Sn,1),er=kn(Sn-1,-1,-1).reverse();return Xt==="rtl"?{left:er,right:ar}:{left:ar,right:er}},[wt,yt,Xt]);return cn}var cr=or;function sr(wt){var yt=wt.className,Xt=wt.children;return x.createElement("div",{className:yt},Xt)}var ti=sr,nr=ae(8224),Rn=ae(16089),Ar=ae(76846);function Bi(wt){var yt=(0,Ar.bn)(wt),Xt=yt.getBoundingClientRect(),cn=document.documentElement;return{left:Xt.left+(window.pageXOffset||cn.scrollLeft)-(cn.clientLeft||document.body.clientLeft||0),top:Xt.top+(window.pageYOffset||cn.scrollTop)-(cn.clientTop||document.body.clientTop||0)}}var Zn=function(yt,Xt){var cn,Sn,kn=yt.scrollBodyRef,ar=yt.onScroll,er=yt.offsetScroll,br=yt.container,hr=yt.direction,li=oe(qe,"prefixCls"),Qr=((cn=kn.current)===null||cn===void 0?void 0:cn.scrollWidth)||0,Hr=((Sn=kn.current)===null||Sn===void 0?void 0:Sn.clientWidth)||0,Or=Qr&&Hr*(Hr/Qr),_r=x.useRef(),Zi=Kt({scrollLeft:0,isHiddenScrollBar:!0}),Ci=(0,Je.Z)(Zi,2),qi=Ci[0],so=Ci[1],Xi=x.useRef({delta:0,x:0}),ho=x.useState(!1),Bo=(0,Je.Z)(ho,2),jo=Bo[0],Po=Bo[1],Ia=x.useRef(null);x.useEffect(function(){return function(){Rn.Z.cancel(Ia.current)}},[]);var aa=function(){Po(!1)},ta=function(fo){fo.persist(),Xi.current.delta=fo.pageX-qi.scrollLeft,Xi.current.x=0,Po(!0),fo.preventDefault()},zo=function(fo){var To,Zo=fo||((To=window)===null||To===void 0?void 0:To.event),na=Zo.buttons;if(!jo||na===0){jo&&Po(!1);return}var Co=Xi.current.x+fo.pageX-Xi.current.x-Xi.current.delta,Xa=hr==="rtl";Co=Math.max(Xa?Or-Hr:0,Math.min(Xa?0:Hr-Or,Co));var Ha=!Xa||Math.abs(Co)+Math.abs(Or)<Hr;Ha&&(ar({scrollLeft:Co/Hr*(Qr+2)}),Xi.current.x=fo.pageX)},Qo=function(){Rn.Z.cancel(Ia.current),Ia.current=(0,Rn.Z)(function(){if(kn.current){var fo=Bi(kn.current).top,To=fo+kn.current.offsetHeight,Zo=br===window?document.documentElement.scrollTop+window.innerHeight:Bi(br).top+br.clientHeight;To-(0,jt.Z)()<=Zo||fo>=Zo-er?so(function(na){return(0,bt.Z)((0,bt.Z)({},na),{},{isHiddenScrollBar:!0})}):so(function(na){return(0,bt.Z)((0,bt.Z)({},na),{},{isHiddenScrollBar:!1})})}})},Ho=function(fo){so(function(To){return(0,bt.Z)((0,bt.Z)({},To),{},{scrollLeft:fo/Qr*Hr||0})})};return x.useImperativeHandle(Xt,function(){return{setScrollLeft:Ho,checkScrollBarVisible:Qo}}),x.useEffect(function(){var vo=(0,nr.Z)(document.body,"mouseup",aa,!1),fo=(0,nr.Z)(document.body,"mousemove",zo,!1);return Qo(),function(){vo.remove(),fo.remove()}},[Or,jo]),x.useEffect(function(){if(kn.current){for(var vo=[],fo=(0,Ar.bn)(kn.current);fo;)vo.push(fo),fo=fo.parentElement;return vo.forEach(function(To){return To.addEventListener("scroll",Qo,!1)}),window.addEventListener("resize",Qo,!1),window.addEventListener("scroll",Qo,!1),br.addEventListener("scroll",Qo,!1),function(){vo.forEach(function(To){return To.removeEventListener("scroll",Qo)}),window.removeEventListener("resize",Qo),window.removeEventListener("scroll",Qo),br.removeEventListener("scroll",Qo)}}},[br]),x.useEffect(function(){qi.isHiddenScrollBar||so(function(vo){var fo=kn.current;return fo?(0,bt.Z)((0,bt.Z)({},vo),{},{scrollLeft:fo.scrollLeft/fo.scrollWidth*fo.clientWidth}):vo})},[qi.isHiddenScrollBar]),Qr<=Hr||!Or||qi.isHiddenScrollBar?null:x.createElement("div",{style:{height:(0,jt.Z)(),width:Hr,bottom:er},className:"".concat(li,"-sticky-scroll")},x.createElement("div",{onMouseDown:ta,ref:_r,className:_e()("".concat(li,"-sticky-scroll-bar"),(0,He.Z)({},"".concat(li,"-sticky-scroll-bar-active"),jo)),style:{width:"".concat(Or,"px"),transform:"translate3d(".concat(qi.scrollLeft,"px, 0, 0)")}}))},yn=x.forwardRef(Zn);function Wn(wt){return null}var rr=Wn;function pr(wt){return null}var Kr=pr,Fi="rc-table",fi=[],_i={};function hi(){return"No Data"}function bi(wt,yt){var Xt=(0,bt.Z)({rowKey:"key",prefixCls:Fi,emptyText:hi},wt),cn=Xt.prefixCls,Sn=Xt.className,kn=Xt.rowClassName,ar=Xt.style,er=Xt.data,br=Xt.rowKey,hr=Xt.scroll,li=Xt.tableLayout,Qr=Xt.direction,Hr=Xt.title,Or=Xt.footer,_r=Xt.summary,Zi=Xt.caption,Ci=Xt.id,qi=Xt.showHeader,so=Xt.components,Xi=Xt.emptyText,ho=Xt.onRow,Bo=Xt.onHeaderRow,jo=Xt.onScroll,Po=Xt.internalHooks,Ia=Xt.transformColumns,aa=Xt.internalRefs,ta=Xt.tailor,zo=Xt.getContainerWidth,Qo=Xt.sticky,Ho=Xt.rowHoverable,vo=Ho===void 0?!0:Ho,fo=er||fi,To=!!fo.length,Zo=Po===Ie,na=x.useCallback(function(ms,Ls){return(0,Nt.Z)(so,ms)||Ls},[so]),Co=x.useMemo(function(){return typeof br=="function"?br:function(ms){var Ls=ms&&ms[br];return Ls}},[br]),Xa=na(["body"]),Ha=Nn(),Ml=(0,Je.Z)(Ha,3),Fl=Ml[0],ll=Ml[1],lo=Ml[2],ql=Mt(Xt,fo,Co),ls=(0,Je.Z)(ql,6),rs=ls[0],al=ls[1],mu=ls[2],ra=ls[3],ba=ls[4],Wo=ls[5],Oo=hr==null?void 0:hr.x,hs=x.useState(0),Ss=(0,Je.Z)(hs,2),Vs=Ss[0],zs=Ss[1],ul=wn((0,bt.Z)((0,bt.Z)((0,bt.Z)({},Xt),rs),{},{expandable:!!rs.expandedRowRender,columnTitle:rs.columnTitle,expandedKeys:mu,getRowKey:Co,onTriggerExpand:Wo,expandIcon:ra,expandIconColumnIndex:rs.expandIconColumnIndex,direction:Qr,scrollWidth:Zo&&ta&&typeof Oo=="number"?Oo:null,clientWidth:Vs}),Zo?Ia:null),vu=(0,Je.Z)(ul,4),sa=vu[0],ea=vu[1],xs=vu[2],qs=vu[3],Xs=xs!=null?xs:Oo,yu=x.useMemo(function(){return{columns:sa,flattenColumns:ea}},[sa,ea]),Ul=x.useRef(),sc=x.useRef(),Il=x.useRef(),vs=x.useRef();x.useImperativeHandle(yt,function(){return{nativeElement:Ul.current,scrollTo:function(Ls){var bu;if(Il.current instanceof HTMLElement){var Qu=Ls.index,Hu=Ls.top,Ad=Ls.key;if(zt(Hu)){var XA;(XA=Il.current)===null||XA===void 0||XA.scrollTo({top:Hu})}else{var MA,dd=Ad!=null?Ad:Co(fo[Qu]);(MA=Il.current.querySelector('[data-row-key="'.concat(dd,'"]')))===null||MA===void 0||MA.scrollIntoView()}}else(bu=Il.current)!==null&&bu!==void 0&&bu.scrollTo&&Il.current.scrollTo(Ls)}}});var cl=x.useRef(),Al=x.useState(!1),gu=(0,Je.Z)(Al,2),Rl=gu[0],ys=gu[1],bl=x.useState(!1),Fs=(0,Je.Z)(bl,2),Cl=Fs[0],eu=Fs[1],Pu=x.useState(new Map),Tu=(0,Je.Z)(Pu,2),Wc=Tu[0],dl=Tu[1],_d=ut(ea),Uu=_d.map(function(ms){return Wc.get(ms)}),Gu=x.useMemo(function(){return Uu},[Uu.join("_")]),Ru=cr(Gu,ea,Qr),Vu=hr&&$t(hr.y),fl=hr&&$t(Xs)||!!rs.fixed,mc=fl&&ea.some(function(ms){var Ls=ms.fixed;return Ls}),bA=x.useRef(),Dc=ci(Qo,cn),Gc=Dc.isSticky,Jd=Dc.offsetHeader,qd=Dc.offsetSummary,Is=Dc.offsetScroll,ld=Dc.stickyClassName,Ef=Dc.container,za=x.useMemo(function(){return _r==null?void 0:_r(fo)},[_r,fo]),ps=(Vu||Gc)&&x.isValidElement(za)&&za.type===We&&za.props.fixed,$l,cu,Bu;Vu&&(cu={overflowY:To?"scroll":"auto",maxHeight:hr.y}),fl&&($l={overflowX:"auto"},Vu||(cu={overflowY:"hidden"}),Bu={width:Xs===!0?"auto":Xs,minWidth:"100%"});var Eu=x.useCallback(function(ms,Ls){dl(function(bu){if(bu.get(ms)!==Ls){var Qu=new Map(bu);return Qu.set(ms,Ls),Qu}return bu})},[]),Xu=pn(null),ju=(0,Je.Z)(Xu,2),ZA=ju[0],Sf=ju[1];function WA(ms,Ls){Ls&&(typeof Ls=="function"?Ls(ms):Ls.scrollLeft!==ms&&(Ls.scrollLeft=ms,Ls.scrollLeft!==ms&&setTimeout(function(){Ls.scrollLeft=ms},0)))}var GA=(0,ze.Z)(function(ms){var Ls=ms.currentTarget,bu=ms.scrollLeft,Qu=Qr==="rtl",Hu=typeof bu=="number"?bu:Ls.scrollLeft,Ad=Ls||_i;if(!Sf()||Sf()===Ad){var XA;ZA(Ad),WA(Hu,sc.current),WA(Hu,Il.current),WA(Hu,cl.current),WA(Hu,(XA=bA.current)===null||XA===void 0?void 0:XA.setScrollLeft)}var MA=Ls||sc.current;if(MA){var dd=Zo&&ta&&typeof Xs=="number"?Xs:MA.scrollWidth,YA=MA.clientWidth;if(dd===YA){ys(!1),eu(!1);return}Qu?(ys(-Hu<dd-YA),eu(-Hu>0)):(ys(Hu>0),eu(Hu<dd-YA))}}),wu=(0,ze.Z)(function(ms){GA(ms),jo==null||jo(ms)}),Pc=function(){if(fl&&Il.current){var Ls;GA({currentTarget:(0,Ar.bn)(Il.current),scrollLeft:(Ls=Il.current)===null||Ls===void 0?void 0:Ls.scrollLeft})}else ys(!1),eu(!1)},ef=function(Ls){var bu,Qu=Ls.width;(bu=bA.current)===null||bu===void 0||bu.checkScrollBarVisible();var Hu=Ul.current?Ul.current.offsetWidth:Qu;Zo&&zo&&Ul.current&&(Hu=zo(Ul.current,Hu)||Hu),Hu!==Vs&&(Pc(),zs(Hu))},Ff=x.useRef(!1);x.useEffect(function(){Ff.current&&Pc()},[fl,er,sa.length]),x.useEffect(function(){Ff.current=!0},[]);var tf=x.useState(0),If=(0,Je.Z)(tf,2),VA=If[0],rh=If[1],pp=x.useState(!0),ih=(0,Je.Z)(pp,2),nf=ih[0],mp=ih[1];(0,Le.Z)(function(){(!ta||!Zo)&&(Il.current instanceof Element?rh((0,jt.o)(Il.current).width):rh((0,jt.o)(vs.current).width)),mp((0,Lt.G)("position","sticky"))},[]),x.useEffect(function(){Zo&&aa&&(aa.body.current=Il.current)});var gp=x.useCallback(function(ms){return x.createElement(x.Fragment,null,x.createElement(Ai,ms),ps==="top"&&x.createElement(mt,ms,za))},[ps,za]),rf=x.useCallback(function(ms){return x.createElement(mt,ms,za)},[za]),Lf=na(["table"],"table"),Nd=x.useMemo(function(){return li||(mc?Xs==="max-content"?"auto":"fixed":Vu||Gc||ea.some(function(ms){var Ls=ms.ellipsis;return Ls})?"fixed":"auto")},[Vu,mc,ea,li,Gc]),_f,Od={colWidths:Gu,columCount:ea.length,stickyOffsets:Ru,onHeaderRow:Bo,fixHeader:Vu,scroll:hr},of=x.useMemo(function(){return To?null:typeof Xi=="function"?Xi():Xi},[To,Xi]),CA=x.createElement(vn,{data:fo,measureColumnWidth:Vu||fl||Gc}),oh=x.createElement(tr,{colWidths:ea.map(function(ms){var Ls=ms.width;return Ls}),columns:ea}),ah=Zi!=null?x.createElement("caption",{className:"".concat(cn,"-caption")},Zi):void 0,Mh=(0,Ct.Z)(Xt,{data:!0}),ud=(0,Ct.Z)(Xt,{aria:!0});if(Vu||Gc){var xA;typeof Xa=="function"?(xA=Xa(fo,{scrollbarSize:VA,ref:Il,onScroll:GA}),Od.colWidths=ea.map(function(ms,Ls){var bu=ms.width,Qu=Ls===ea.length-1?bu-VA:bu;return typeof Qu=="number"&&!Number.isNaN(Qu)?Qu:0})):xA=x.createElement("div",{style:(0,bt.Z)((0,bt.Z)({},$l),cu),onScroll:wu,ref:Il,className:_e()("".concat(cn,"-body"))},x.createElement(Lf,(0,Oe.Z)({style:(0,bt.Z)((0,bt.Z)({},Bu),{},{tableLayout:Nd})},ud),ah,oh,CA,!ps&&za&&x.createElement(mt,{stickyOffsets:Ru,flattenColumns:ea},za)));var BA=(0,bt.Z)((0,bt.Z)((0,bt.Z)({noData:!fo.length,maxContentScroll:fl&&Xs==="max-content"},Od),yu),{},{direction:Qr,stickyClassName:ld,onScroll:GA});_f=x.createElement(x.Fragment,null,qi!==!1&&x.createElement($n,(0,Oe.Z)({},BA,{stickyTopOffset:Jd,className:"".concat(cn,"-header"),ref:sc}),gp),xA,ps&&ps!=="top"&&x.createElement($n,(0,Oe.Z)({},BA,{stickyBottomOffset:qd,className:"".concat(cn,"-summary"),ref:cl}),rf),Gc&&Il.current&&Il.current instanceof Element&&x.createElement(yn,{ref:bA,offsetScroll:Is,scrollBodyRef:Il,onScroll:GA,container:Ef,direction:Qr}))}else _f=x.createElement("div",{style:(0,bt.Z)((0,bt.Z)({},$l),cu),className:_e()("".concat(cn,"-content")),onScroll:GA,ref:Il},x.createElement(Lf,(0,Oe.Z)({style:(0,bt.Z)((0,bt.Z)({},Bu),{},{tableLayout:Nd})},ud),ah,oh,qi!==!1&&x.createElement(Ai,(0,Oe.Z)({},Od,yu)),CA,za&&x.createElement(mt,{stickyOffsets:Ru,flattenColumns:ea},za)));var Dd=x.createElement("div",(0,Oe.Z)({className:_e()(cn,Sn,(0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)({},"".concat(cn,"-rtl"),Qr==="rtl"),"".concat(cn,"-ping-left"),Rl),"".concat(cn,"-ping-right"),Cl),"".concat(cn,"-layout-fixed"),li==="fixed"),"".concat(cn,"-fixed-header"),Vu),"".concat(cn,"-fixed-column"),mc),"".concat(cn,"-fixed-column-gapped"),mc&&qs),"".concat(cn,"-scroll-horizontal"),fl),"".concat(cn,"-has-fix-left"),ea[0]&&ea[0].fixed),"".concat(cn,"-has-fix-right"),ea[ea.length-1]&&ea[ea.length-1].fixed==="right")),style:ar,id:Ci,ref:Ul},Mh),Hr&&x.createElement(ti,{className:"".concat(cn,"-title")},Hr(fo)),x.createElement("div",{ref:vs,className:"".concat(cn,"-container")},_f),Or&&x.createElement(ti,{className:"".concat(cn,"-footer")},Or(fo)));fl&&(Dd=x.createElement(Et.Z,{onResize:ef},Dd));var cd=dn(ea,Ru,Qr),Uh=x.useMemo(function(){return{scrollX:Xs,prefixCls:cn,getComponent:na,scrollbarSize:VA,direction:Qr,fixedInfoList:cd,isSticky:Gc,supportSticky:nf,componentWidth:Vs,fixHeader:Vu,fixColumn:mc,horizonScroll:fl,tableLayout:Nd,rowClassName:kn,expandedRowClassName:rs.expandedRowClassName,expandIcon:ra,expandableType:al,expandRowByClick:rs.expandRowByClick,expandedRowRender:rs.expandedRowRender,onTriggerExpand:Wo,expandIconColumnIndex:rs.expandIconColumnIndex,indentSize:rs.indentSize,allColumnsFixedLeft:ea.every(function(ms){return ms.fixed==="left"}),emptyNode:of,columns:sa,flattenColumns:ea,onColumnResize:Eu,hoverStartRow:Fl,hoverEndRow:ll,onHover:lo,rowExpandable:rs.rowExpandable,onRow:ho,getRowKey:Co,expandedKeys:mu,childrenColumnName:ba,rowHoverable:vo}},[Xs,cn,na,VA,Qr,cd,Gc,nf,Vs,Vu,mc,fl,Nd,kn,rs.expandedRowClassName,ra,al,rs.expandRowByClick,rs.expandedRowRender,Wo,rs.expandIconColumnIndex,rs.indentSize,of,sa,ea,Eu,Fl,ll,lo,rs.rowExpandable,ho,Co,mu,ba,vo]);return x.createElement(qe.Provider,{value:Uh},Dd)}var wi=x.forwardRef(bi);function Yi(wt){return ke(wi,wt)}var pi=Yi();pi.EXPAND_COLUMN=dt,pi.INTERNAL_HOOKS=Ie,pi.Column=rr,pi.ColumnGroup=Kr,pi.Summary=gt;var yi=pi,Ji=ae(48911),io=xe(null),ji=xe(null);function So(wt,yt,Xt){var cn=yt||1;return Xt[wt+cn]-(Xt[wt]||0)}function ki(wt){var yt=wt.rowInfo,Xt=wt.column,cn=wt.colIndex,Sn=wt.indent,kn=wt.index,ar=wt.component,er=wt.renderIndex,br=wt.record,hr=wt.style,li=wt.className,Qr=wt.inverse,Hr=wt.getHeight,Or=Xt.render,_r=Xt.dataIndex,Zi=Xt.className,Ci=Xt.width,qi=oe(ji,["columnsOffset"]),so=qi.columnsOffset,Xi=Ut(yt,Xt,cn,Sn,kn),ho=Xi.key,Bo=Xi.fixedInfo,jo=Xi.appendCellNode,Po=Xi.additionalCellProps,Ia=Po.style,aa=Po.colSpan,ta=aa===void 0?1:aa,zo=Po.rowSpan,Qo=zo===void 0?1:zo,Ho=cn-1,vo=So(Ho,ta,so),fo=ta>1?Ci-vo:0,To=(0,bt.Z)((0,bt.Z)((0,bt.Z)({},Ia),hr),{},{flex:"0 0 ".concat(vo,"px"),width:"".concat(vo,"px"),marginRight:fo,pointerEvents:"auto"}),Zo=x.useMemo(function(){return Qr?Qo<=1:ta===0||Qo===0||Qo>1},[Qo,ta,Qr]);Zo?To.visibility="hidden":Qr&&(To.height=Hr==null?void 0:Hr(Qo));var na=Zo?function(){return null}:Or,Co={};return(Qo===0||ta===0)&&(Co.rowSpan=1,Co.colSpan=1),x.createElement(En,(0,Oe.Z)({className:_e()(Zi,li),ellipsis:Xt.ellipsis,align:Xt.align,scope:Xt.rowScope,component:ar,prefixCls:yt.prefixCls,key:ho,record:br,index:kn,renderIndex:er,dataIndex:_r,render:na,shouldCellUpdate:Xt.shouldCellUpdate},Bo,{appendNode:jo,additionalProps:(0,bt.Z)((0,bt.Z)({},Po),{},{style:To},Co)}))}var ko=ki,co=["data","index","className","rowKey","style","extra","getHeight"],Xo=x.forwardRef(function(wt,yt){var Xt=wt.data,cn=wt.index,Sn=wt.className,kn=wt.rowKey,ar=wt.style,er=wt.extra,br=wt.getHeight,hr=(0,ee.Z)(wt,co),li=Xt.record,Qr=Xt.indent,Hr=Xt.index,Or=oe(qe,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),_r=Or.scrollX,Zi=Or.flattenColumns,Ci=Or.prefixCls,qi=Or.fixColumn,so=Or.componentWidth,Xi=oe(io,["getComponent"]),ho=Xi.getComponent,Bo=Zt(li,kn,cn,Qr),jo=ho(["body","row"],"div"),Po=ho(["body","cell"],"div"),Ia=Bo.rowSupportExpand,aa=Bo.expanded,ta=Bo.rowProps,zo=Bo.expandedRowRender,Qo=Bo.expandedRowClassName,Ho;if(Ia&&aa){var vo=zo(li,cn,Qr+1,aa),fo=Fn(Qo,li,cn,Qr),To={};qi&&(To={style:(0,He.Z)({},"--virtual-width","".concat(so,"px"))});var Zo="".concat(Ci,"-expanded-row-cell");Ho=x.createElement(jo,{className:_e()("".concat(Ci,"-expanded-row"),"".concat(Ci,"-expanded-row-level-").concat(Qr+1),fo)},x.createElement(En,{component:Po,prefixCls:Ci,className:_e()(Zo,(0,He.Z)({},"".concat(Zo,"-fixed"),qi)),additionalProps:To},vo))}var na=(0,bt.Z)((0,bt.Z)({},ar),{},{width:_r});er&&(na.position="absolute",na.pointerEvents="none");var Co=x.createElement(jo,(0,Oe.Z)({},ta,hr,{"data-row-key":kn,ref:Ia?null:yt,className:_e()(Sn,"".concat(Ci,"-row"),ta==null?void 0:ta.className,(0,He.Z)({},"".concat(Ci,"-row-extra"),er)),style:(0,bt.Z)((0,bt.Z)({},na),ta==null?void 0:ta.style)}),Zi.map(function(Xa,Ha){return x.createElement(ko,{key:Ha,component:Po,rowInfo:Bo,column:Xa,colIndex:Ha,indent:Qr,index:cn,renderIndex:Hr,record:li,inverse:er,getHeight:br})}));return Ia?x.createElement("div",{ref:yt},Co,Ho):Co}),wo=Ke(Xo),eo=wo,bo=x.forwardRef(function(wt,yt){var Xt=wt.data,cn=wt.onScroll,Sn=oe(qe,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),kn=Sn.flattenColumns,ar=Sn.onColumnResize,er=Sn.getRowKey,br=Sn.expandedKeys,hr=Sn.prefixCls,li=Sn.childrenColumnName,Qr=Sn.scrollX,Hr=Sn.direction,Or=oe(io),_r=Or.sticky,Zi=Or.scrollY,Ci=Or.listItemHeight,qi=Or.getComponent,so=Or.onScroll,Xi=x.useRef(),ho=Vt(Xt,li,br,er),Bo=x.useMemo(function(){var Ho=0;return kn.map(function(vo){var fo=vo.width,To=vo.key;return Ho+=fo,[To,fo,Ho]})},[kn]),jo=x.useMemo(function(){return Bo.map(function(Ho){return Ho[2]})},[Bo]);x.useEffect(function(){Bo.forEach(function(Ho){var vo=(0,Je.Z)(Ho,2),fo=vo[0],To=vo[1];ar(fo,To)})},[Bo]),x.useImperativeHandle(yt,function(){var Ho,vo={scrollTo:function(To){var Zo;(Zo=Xi.current)===null||Zo===void 0||Zo.scrollTo(To)},nativeElement:(Ho=Xi.current)===null||Ho===void 0?void 0:Ho.nativeElement};return Object.defineProperty(vo,"scrollLeft",{get:function(){var To;return((To=Xi.current)===null||To===void 0?void 0:To.getScrollInfo().x)||0},set:function(To){var Zo;(Zo=Xi.current)===null||Zo===void 0||Zo.scrollTo({left:To})}}),vo});var Po=function(vo,fo){var To,Zo=(To=ho[fo])===null||To===void 0?void 0:To.record,na=vo.onCell;if(na){var Co,Xa=na(Zo,fo);return(Co=Xa==null?void 0:Xa.rowSpan)!==null&&Co!==void 0?Co:1}return 1},Ia=function(vo){var fo=vo.start,To=vo.end,Zo=vo.getSize,na=vo.offsetY;if(To<0)return null;for(var Co=kn.filter(function(ra){return Po(ra,fo)===0}),Xa=fo,Ha=function(ba){if(Co=Co.filter(function(Wo){return Po(Wo,ba)===0}),!Co.length)return Xa=ba,1},Ml=fo;Ml>=0&&!Ha(Ml);Ml-=1);for(var Fl=kn.filter(function(ra){return Po(ra,To)!==1}),ll=To,lo=function(ba){if(Fl=Fl.filter(function(Wo){return Po(Wo,ba)!==1}),!Fl.length)return ll=Math.max(ba-1,To),1},ql=To;ql<ho.length&&!lo(ql);ql+=1);for(var ls=[],rs=function(ba){var Wo=ho[ba];if(!Wo)return 1;kn.some(function(Oo){return Po(Oo,ba)>1})&&ls.push(ba)},al=Xa;al<=ll;al+=1)rs(al);var mu=ls.map(function(ra){var ba=ho[ra],Wo=er(ba.record,ra),Oo=function(Vs){var zs=ra+Vs-1,ul=er(ho[zs].record,zs),vu=Zo(Wo,ul);return vu.bottom-vu.top},hs=Zo(Wo);return x.createElement(eo,{key:ra,data:ba,rowKey:Wo,index:ra,style:{top:-na+hs.top},extra:!0,getHeight:Oo})});return mu},aa=x.useMemo(function(){return{columnsOffset:jo}},[jo]),ta="".concat(hr,"-tbody"),zo=qi(["body","wrapper"]),Qo={};return _r&&(Qo.position="sticky",Qo.bottom=0,(0,pt.Z)(_r)==="object"&&_r.offsetScroll&&(Qo.bottom=_r.offsetScroll)),x.createElement(ji.Provider,{value:aa},x.createElement(Ji.Z,{fullHeight:!1,ref:Xi,prefixCls:"".concat(ta,"-virtual"),styles:{horizontalScrollBar:Qo},className:ta,height:Zi,itemHeight:Ci||24,data:ho,itemKey:function(vo){return er(vo.record)},component:zo,scrollWidth:Qr,direction:Hr,onVirtualScroll:function(vo){var fo,To=vo.x;cn({currentTarget:(fo=Xi.current)===null||fo===void 0?void 0:fo.nativeElement,scrollLeft:To})},onScroll:so,extraRender:Ia},function(Ho,vo,fo){var To=er(Ho.record,vo);return x.createElement(eo,{data:Ho,rowKey:To,index:vo,style:fo.style})}))}),Go=Ke(bo),Tn=Go,Lo=function(yt,Xt){var cn=Xt.ref,Sn=Xt.onScroll;return x.createElement(Tn,{ref:cn,data:yt,onScroll:Sn})};function Gi(wt,yt){var Xt=wt.data,cn=wt.columns,Sn=wt.scroll,kn=wt.sticky,ar=wt.prefixCls,er=ar===void 0?Fi:ar,br=wt.className,hr=wt.listItemHeight,li=wt.components,Qr=wt.onScroll,Hr=Sn||{},Or=Hr.x,_r=Hr.y;typeof Or!="number"&&(Or=1),typeof _r!="number"&&(_r=500);var Zi=(0,Tt.zX)(function(so,Xi){return(0,Nt.Z)(li,so)||Xi}),Ci=(0,Tt.zX)(Qr),qi=x.useMemo(function(){return{sticky:kn,scrollY:_r,listItemHeight:hr,getComponent:Zi,onScroll:Ci}},[kn,_r,hr,Zi,Ci]);return x.createElement(io.Provider,{value:qi},x.createElement(yi,(0,Oe.Z)({},wt,{className:_e()(br,"".concat(er,"-virtual")),scroll:(0,bt.Z)((0,bt.Z)({},Sn),{},{x:Or}),components:(0,bt.Z)((0,bt.Z)({},li),{},{body:Xt!=null&&Xt.length?Lo:void 0}),columns:cn,internalHooks:Ie,tailor:!0,ref:yt})))}var jr=x.forwardRef(Gi);function Jr(wt){return ke(jr,wt)}var ni=Jr(),Wr=null,to=wt=>null,oi=wt=>null,yr=ae(84105),qr=ae(82661),Ao=ae(34643),Jo=ae(34061),_o=ae(18929);function pa(wt){const[yt,Xt]=(0,x.useState)(null);return[(0,x.useCallback)((kn,ar,er)=>{const br=yt!=null?yt:kn,hr=Math.min(br||0,kn),li=Math.max(br||0,kn),Qr=ar.slice(hr,li+1).map(_r=>wt(_r)),Hr=Qr.some(_r=>!er.has(_r)),Or=[];return Qr.forEach(_r=>{Hr?(er.has(_r)||Or.push(_r),er.add(_r)):(er.delete(_r),Or.push(_r))}),Xt(Hr?li:null),Or},[yt]),kn=>{Xt(kn)}]}var No=ae(32383),qo=ae(62673),Ro=ae(75727),oa=ae(47889);const da={},Ka="SELECT_ALL",_s="SELECT_INVERT",js="SELECT_NONE",as=[],fs=(wt,yt)=>{let Xt=[];return(yt||[]).forEach(cn=>{Xt.push(cn),cn&&typeof cn=="object"&&wt in cn&&(Xt=[].concat((0,vr.Z)(Xt),(0,vr.Z)(fs(wt,cn[wt]))))}),Xt};var go=(wt,yt)=>{const{preserveSelectedRowKeys:Xt,selectedRowKeys:cn,defaultSelectedRowKeys:Sn,getCheckboxProps:kn,onChange:ar,onSelect:er,onSelectAll:br,onSelectInvert:hr,onSelectNone:li,onSelectMultiple:Qr,columnWidth:Hr,type:Or,selections:_r,fixed:Zi,renderCell:Ci,hideSelectAll:qi,checkStrictly:so=!0}=yt||{},{prefixCls:Xi,data:ho,pageData:Bo,getRecordByKey:jo,getRowKey:Po,expandType:Ia,childrenColumnName:aa,locale:ta,getPopupContainer:zo}=wt,Qo=(0,No.ln)("Table"),[Ho,vo]=pa(ra=>ra),[fo,To]=(0,_o.Z)(cn||Sn||as,{value:cn}),Zo=x.useRef(new Map),na=(0,x.useCallback)(ra=>{if(Xt){const ba=new Map;ra.forEach(Wo=>{let Oo=jo(Wo);!Oo&&Zo.current.has(Wo)&&(Oo=Zo.current.get(Wo)),ba.set(Wo,Oo)}),Zo.current=ba}},[jo,Xt]);x.useEffect(()=>{na(fo)},[fo]);const Co=(0,x.useMemo)(()=>fs(aa,Bo),[aa,Bo]),{keyEntities:Xa}=(0,x.useMemo)(()=>{if(so)return{keyEntities:null};let ra=ho;if(Xt){const ba=new Set(Co.map((Oo,hs)=>Po(Oo,hs))),Wo=Array.from(Zo.current).reduce((Oo,hs)=>{let[Ss,Vs]=hs;return ba.has(Ss)?Oo:Oo.concat(Vs)},[]);ra=[].concat((0,vr.Z)(ra),(0,vr.Z)(Wo))}return(0,Jo.I8)(ra,{externalGetKey:Po,childrenPropName:aa})},[ho,Po,so,aa,Xt,Co]),Ha=(0,x.useMemo)(()=>{const ra=new Map;return Co.forEach((ba,Wo)=>{const Oo=Po(ba,Wo),hs=(kn?kn(ba):null)||{};ra.set(Oo,hs)}),ra},[Co,Po,kn]),Ml=(0,x.useCallback)(ra=>{const ba=Po(ra);let Wo;return Ha.has(ba)?Wo=Ha.get(Po(ra)):Wo=kn?kn(ra):void 0,!!(Wo!=null&&Wo.disabled)},[Ha,Po]),[Fl,ll]=(0,x.useMemo)(()=>{if(so)return[fo||[],[]];const{checkedKeys:ra,halfCheckedKeys:ba}=(0,Ao.S)(fo,!0,Xa,Ml);return[ra||[],ba]},[fo,so,Xa,Ml]),lo=(0,x.useMemo)(()=>{const ra=Or==="radio"?Fl.slice(0,1):Fl;return new Set(ra)},[Fl,Or]),ql=(0,x.useMemo)(()=>Or==="radio"?new Set:new Set(ll),[ll,Or]);x.useEffect(()=>{yt||To(as)},[!!yt]);const ls=(0,x.useCallback)((ra,ba)=>{let Wo,Oo;na(ra),Xt?(Wo=ra,Oo=ra.map(hs=>Zo.current.get(hs))):(Wo=[],Oo=[],ra.forEach(hs=>{const Ss=jo(hs);Ss!==void 0&&(Wo.push(hs),Oo.push(Ss))})),To(Wo),ar==null||ar(Wo,Oo,{type:ba})},[To,jo,ar,Xt]),rs=(0,x.useCallback)((ra,ba,Wo,Oo)=>{if(er){const hs=Wo.map(Ss=>jo(Ss));er(jo(ra),ba,hs,Oo)}ls(Wo,"single")},[er,jo,ls]),al=(0,x.useMemo)(()=>!_r||qi?null:(_r===!0?[Ka,_s,js]:_r).map(ba=>ba===Ka?{key:"all",text:ta.selectionAll,onSelect(){ls(ho.map((Wo,Oo)=>Po(Wo,Oo)).filter(Wo=>{const Oo=Ha.get(Wo);return!(Oo!=null&&Oo.disabled)||lo.has(Wo)}),"all")}}:ba===_s?{key:"invert",text:ta.selectInvert,onSelect(){const Wo=new Set(lo);Bo.forEach((hs,Ss)=>{const Vs=Po(hs,Ss),zs=Ha.get(Vs);zs!=null&&zs.disabled||(Wo.has(Vs)?Wo.delete(Vs):Wo.add(Vs))});const Oo=Array.from(Wo);hr&&(Qo.deprecated(!1,"onSelectInvert","onChange"),hr(Oo)),ls(Oo,"invert")}}:ba===js?{key:"none",text:ta.selectNone,onSelect(){li==null||li(),ls(Array.from(lo).filter(Wo=>{const Oo=Ha.get(Wo);return Oo==null?void 0:Oo.disabled}),"none")}}:ba).map(ba=>Object.assign(Object.assign({},ba),{onSelect:function(){for(var Wo,Oo,hs=arguments.length,Ss=new Array(hs),Vs=0;Vs<hs;Vs++)Ss[Vs]=arguments[Vs];(Oo=ba.onSelect)===null||Oo===void 0||(Wo=Oo).call.apply(Wo,[ba].concat(Ss)),vo(null)}})),[_r,lo,Bo,Po,hr,ls]);return[(0,x.useCallback)(ra=>{var ba;if(!yt)return ra.filter(vs=>vs!==da);let Wo=(0,vr.Z)(ra);const Oo=new Set(lo),hs=Co.map(Po).filter(vs=>!Ha.get(vs).disabled),Ss=hs.every(vs=>Oo.has(vs)),Vs=hs.some(vs=>Oo.has(vs)),zs=()=>{const vs=[];Ss?hs.forEach(Al=>{Oo.delete(Al),vs.push(Al)}):hs.forEach(Al=>{Oo.has(Al)||(Oo.add(Al),vs.push(Al))});const cl=Array.from(Oo);br==null||br(!Ss,cl.map(Al=>jo(Al)),vs.map(Al=>jo(Al))),ls(cl,"all"),vo(null)};let ul,vu;if(Or!=="radio"){let vs;if(al){const ys={getPopupContainer:zo,items:al.map((bl,Fs)=>{const{key:Cl,text:eu,onSelect:Pu}=bl;return{key:Cl!=null?Cl:Fs,onClick:()=>{Pu==null||Pu(hs)},label:eu}})};vs=x.createElement("div",{className:`${Xi}-selection-extra`},x.createElement(Ro.Z,{menu:ys,getPopupContainer:zo},x.createElement("span",null,x.createElement(yr.Z,null))))}const cl=Co.map((ys,bl)=>{const Fs=Po(ys,bl),Cl=Ha.get(Fs)||{};return Object.assign({checked:Oo.has(Fs)},Cl)}).filter(ys=>{let{disabled:bl}=ys;return bl}),Al=!!cl.length&&cl.length===Co.length,gu=Al&&cl.every(ys=>{let{checked:bl}=ys;return bl}),Rl=Al&&cl.some(ys=>{let{checked:bl}=ys;return bl});vu=x.createElement(qo.default,{checked:Al?gu:!!Co.length&&Ss,indeterminate:Al?!gu&&Rl:!Ss&&Vs,onChange:zs,disabled:Co.length===0||Al,"aria-label":vs?"Custom selection":"Select all",skipGroup:!0}),ul=!qi&&x.createElement("div",{className:`${Xi}-selection`},vu,vs)}let sa;Or==="radio"?sa=(vs,cl,Al)=>{const gu=Po(cl,Al),Rl=Oo.has(gu),ys=Ha.get(gu);return{node:x.createElement(oa.ZP,Object.assign({},ys,{checked:Rl,onClick:bl=>{var Fs;bl.stopPropagation(),(Fs=ys==null?void 0:ys.onClick)===null||Fs===void 0||Fs.call(ys,bl)},onChange:bl=>{var Fs;Oo.has(gu)||rs(gu,!0,[gu],bl.nativeEvent),(Fs=ys==null?void 0:ys.onChange)===null||Fs===void 0||Fs.call(ys,bl)}})),checked:Rl}}:sa=(vs,cl,Al)=>{var gu;const Rl=Po(cl,Al),ys=Oo.has(Rl),bl=ql.has(Rl),Fs=Ha.get(Rl);let Cl;return Ia==="nest"?Cl=bl:Cl=(gu=Fs==null?void 0:Fs.indeterminate)!==null&&gu!==void 0?gu:bl,{node:x.createElement(qo.default,Object.assign({},Fs,{indeterminate:Cl,checked:ys,skipGroup:!0,onClick:eu=>{var Pu;eu.stopPropagation(),(Pu=Fs==null?void 0:Fs.onClick)===null||Pu===void 0||Pu.call(Fs,eu)},onChange:eu=>{var Pu;const{nativeEvent:Tu}=eu,{shiftKey:Wc}=Tu,dl=hs.findIndex(Uu=>Uu===Rl),_d=Fl.some(Uu=>hs.includes(Uu));if(Wc&&so&&_d){const Uu=Ho(dl,hs,Oo),Gu=Array.from(Oo);Qr==null||Qr(!ys,Gu.map(Ru=>jo(Ru)),Uu.map(Ru=>jo(Ru))),ls(Gu,"multiple")}else{const Uu=Fl;if(so){const Gu=ys?(0,qr._5)(Uu,Rl):(0,qr.L0)(Uu,Rl);rs(Rl,!ys,Gu,Tu)}else{const Gu=(0,Ao.S)([].concat((0,vr.Z)(Uu),[Rl]),!0,Xa,Ml),{checkedKeys:Ru,halfCheckedKeys:Vu}=Gu;let fl=Ru;if(ys){const mc=new Set(Ru);mc.delete(Rl),fl=(0,Ao.S)(Array.from(mc),{checked:!1,halfCheckedKeys:Vu},Xa,Ml).checkedKeys}rs(Rl,!ys,fl,Tu)}}vo(ys?null:dl),(Pu=Fs==null?void 0:Fs.onChange)===null||Pu===void 0||Pu.call(Fs,eu)}})),checked:ys}};const ea=(vs,cl,Al)=>{const{node:gu,checked:Rl}=sa(vs,cl,Al);return Ci?Ci(Rl,cl,Al,gu):gu};if(!Wo.includes(da))if(Wo.findIndex(vs=>{var cl;return((cl=vs[Lr])===null||cl===void 0?void 0:cl.columnType)==="EXPAND_COLUMN"})===0){const[vs,...cl]=Wo;Wo=[vs,da].concat((0,vr.Z)(cl))}else Wo=[da].concat((0,vr.Z)(Wo));const xs=Wo.indexOf(da);Wo=Wo.filter((vs,cl)=>vs!==da||cl===xs);const qs=Wo[xs-1],Xs=Wo[xs+1];let yu=Zi;yu===void 0&&((Xs==null?void 0:Xs.fixed)!==void 0?yu=Xs.fixed:(qs==null?void 0:qs.fixed)!==void 0&&(yu=qs.fixed)),yu&&qs&&((ba=qs[Lr])===null||ba===void 0?void 0:ba.columnType)==="EXPAND_COLUMN"&&qs.fixed===void 0&&(qs.fixed=yu);const Ul=_e()(`${Xi}-selection-col`,{[`${Xi}-selection-col-with-dropdown`]:_r&&Or==="checkbox"}),sc=()=>yt!=null&&yt.columnTitle?typeof yt.columnTitle=="function"?yt.columnTitle(vu):yt.columnTitle:ul,Il={fixed:yu,width:Hr,className:`${Xi}-selection-column`,title:sc(),render:ea,onCell:yt.onCell,[Lr]:{className:Ul}};return Wo.map(vs=>vs===da?Il:vs)},[Po,Co,yt,Fl,lo,ql,Hr,al,Ia,Ha,Qr,rs,Ml]),lo]},Fa=ae(2738);function gs(wt,yt){return wt._antProxy=wt._antProxy||{},Object.keys(yt).forEach(Xt=>{if(!(Xt in wt._antProxy)){const cn=wt[Xt];wt._antProxy[Xt]=cn,wt[Xt]=yt[Xt]}}),wt}function nl(wt,yt){return(0,x.useImperativeHandle)(wt,()=>{const Xt=yt(),{nativeElement:cn}=Xt;return typeof Proxy!="undefined"?new Proxy(cn,{get(Sn,kn){return Xt[kn]?Xt[kn]:Reflect.get(Sn,kn)}}):gs(cn,Xt)})}var rl=ae(83010),il=ae(48755),yl=ae(38406),su=ae(83397),ol=ae(31756),jl=ae(13783),Lu=ae(85981),Xl=ae(31709),wl=ae(29787),ec=ae(57700);function _c(wt){return yt=>{const{prefixCls:Xt,onExpand:cn,record:Sn,expanded:kn,expandable:ar}=yt,er=`${Xt}-row-expand-icon`;return x.createElement("button",{type:"button",onClick:br=>{cn(Sn,br),br.stopPropagation()},className:_e()(er,{[`${er}-spaced`]:!ar,[`${er}-expanded`]:ar&&kn,[`${er}-collapsed`]:ar&&!kn}),"aria-label":kn?wt.collapse:wt.expand,"aria-expanded":kn})}}var ma=_c;function Ea(wt){return(Xt,cn)=>{const Sn=Xt.querySelector(`.${wt}-container`);let kn=cn;if(Sn){const ar=getComputedStyle(Sn),er=parseInt(ar.borderLeftWidth,10),br=parseInt(ar.borderRightWidth,10);kn=cn-er-br}return kn}}const ha=(wt,yt)=>"key"in wt&&wt.key!==void 0&&wt.key!==null?wt.key:wt.dataIndex?Array.isArray(wt.dataIndex)?wt.dataIndex.join("."):wt.dataIndex:yt;function wa(wt,yt){return yt?`${yt}-${wt}`:`${wt}`}const Ja=(wt,yt)=>typeof wt=="function"?wt(yt):wt,Ga=(wt,yt)=>{const Xt=Ja(wt,yt);return Object.prototype.toString.call(Xt)==="[object Object]"?"":Xt};var $a={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"},Ql=$a,fu=ae(7657),kl=function(yt,Xt){return x.createElement(fu.Z,(0,Oe.Z)({},yt,{ref:Xt,icon:Ql}))},Hi=x.forwardRef(kl),Vo=Hi,Ma=ae(9981),Hl=ae(40192);function ks(wt){const yt=x.useRef(wt),Xt=(0,Hl.Z)();return[()=>yt.current,cn=>{yt.current=cn,Xt()}]}var zl=ae(7939),pl=ae(584),eA=ae(93041),Bc=ae(78857),tc=ae(18287),ss=ae(47472),ns=ae(49397),tA=wt=>{const{value:yt,filterSearch:Xt,tablePrefixCls:cn,locale:Sn,onChange:kn}=wt;return Xt?x.createElement("div",{className:`${cn}-filter-dropdown-search`},x.createElement(ns.Z,{prefix:x.createElement(ss.Z,null),placeholder:Sn.filterSearchPlaceholder,onChange:kn,value:yt,htmlSize:1,className:`${cn}-filter-dropdown-search-input`})):null},Qs=ae(10228);const Sl=wt=>{const{keyCode:yt}=wt;yt===Qs.Z.ENTER&&wt.stopPropagation()};var zc=x.forwardRef((wt,yt)=>x.createElement("div",{className:wt.className,onClick:Xt=>Xt.stopPropagation(),onKeyDown:Sl,ref:yt},wt.children));function ml(wt){let yt=[];return(wt||[]).forEach(Xt=>{let{value:cn,children:Sn}=Xt;yt.push(cn),Sn&&(yt=[].concat((0,vr.Z)(yt),(0,vr.Z)(ml(Sn))))}),yt}function _u(wt){return wt.some(yt=>{let{children:Xt}=yt;return Xt})}function Ws(wt,yt){return typeof yt=="string"||typeof yt=="number"?yt==null?void 0:yt.toString().toLowerCase().includes(wt.trim().toLowerCase()):!1}function Gs(wt){let{filters:yt,prefixCls:Xt,filteredKeys:cn,filterMultiple:Sn,searchValue:kn,filterSearch:ar}=wt;return yt.map((er,br)=>{const hr=String(er.value);if(er.children)return{key:hr||br,label:er.text,popupClassName:`${Xt}-dropdown-submenu`,children:Gs({filters:er.children,prefixCls:Xt,filteredKeys:cn,filterMultiple:Sn,searchValue:kn,filterSearch:ar})};const li=Sn?qo.default:oa.ZP,Qr={key:er.value!==void 0?hr:br,label:x.createElement(x.Fragment,null,x.createElement(li,{checked:cn.includes(hr)}),x.createElement("span",null,er.text))};return kn.trim()?typeof ar=="function"?ar(kn,er)?Qr:null:Ws(kn,er.text)?Qr:null:Qr})}function lu(wt){return wt||[]}var $A=wt=>{var yt,Xt,cn,Sn;const{tablePrefixCls:kn,prefixCls:ar,column:er,dropdownPrefixCls:br,columnKey:hr,filterOnClose:li,filterMultiple:Qr,filterMode:Hr="menu",filterSearch:Or=!1,filterState:_r,triggerFilter:Zi,locale:Ci,children:qi,getPopupContainer:so,rootClassName:Xi}=wt,{filterResetToDefaultFilteredValue:ho,defaultFilteredValue:Bo,filterDropdownProps:jo={},filterDropdownOpen:Po,filterDropdownVisible:Ia,onFilterDropdownVisibleChange:aa,onFilterDropdownOpenChange:ta}=er,[zo,Qo]=x.useState(!1),Ho=!!(_r&&(!((yt=_r.filteredKeys)===null||yt===void 0)&&yt.length||_r.forceFiltered)),vo=sa=>{var ea;Qo(sa),(ea=jo.onOpenChange)===null||ea===void 0||ea.call(jo,sa),ta==null||ta(sa),aa==null||aa(sa)},fo=(Sn=(cn=(Xt=jo.open)!==null&&Xt!==void 0?Xt:Po)!==null&&cn!==void 0?cn:Ia)!==null&&Sn!==void 0?Sn:zo,To=_r==null?void 0:_r.filteredKeys,[Zo,na]=ks(lu(To)),Co=sa=>{let{selectedKeys:ea}=sa;na(ea)},Xa=(sa,ea)=>{let{node:xs,checked:qs}=ea;Co(Qr?{selectedKeys:sa}:{selectedKeys:qs&&xs.key?[xs.key]:[]})};x.useEffect(()=>{zo&&Co({selectedKeys:lu(To)})},[To]);const[Ha,Ml]=x.useState([]),Fl=sa=>{Ml(sa)},[ll,lo]=x.useState(""),ql=sa=>{const{value:ea}=sa.target;lo(ea)};x.useEffect(()=>{zo||lo("")},[zo]);const ls=sa=>{const ea=sa!=null&&sa.length?sa:null;if(ea===null&&(!_r||!_r.filteredKeys)||(0,Ue.Z)(ea,_r==null?void 0:_r.filteredKeys,!0))return null;Zi({column:er,key:hr,filteredKeys:ea})},rs=()=>{vo(!1),ls(Zo())},al=function(){let{confirm:sa,closeDropdown:ea}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};sa&&ls([]),ea&&vo(!1),lo(""),na(ho?(Bo||[]).map(xs=>String(xs)):[])},mu=function(){let{closeDropdown:sa}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};sa&&vo(!1),ls(Zo())},ra=(sa,ea)=>{ea.source==="trigger"&&(sa&&To!==void 0&&na(lu(To)),vo(sa),!sa&&!er.filterDropdown&&li&&rs())},ba=_e()({[`${br}-menu-without-submenu`]:!_u(er.filters||[])}),Wo=sa=>{if(sa.target.checked){const ea=ml(er==null?void 0:er.filters).map(xs=>String(xs));na(ea)}else na([])},Oo=sa=>{let{filters:ea}=sa;return(ea||[]).map((xs,qs)=>{const Xs=String(xs.value),yu={title:xs.text,key:xs.value!==void 0?Xs:String(qs)};return xs.children&&(yu.children=Oo({filters:xs.children})),yu})},hs=sa=>{var ea;return Object.assign(Object.assign({},sa),{text:sa.title,value:sa.key,children:((ea=sa.children)===null||ea===void 0?void 0:ea.map(xs=>hs(xs)))||[]})};let Ss;const{direction:Vs,renderEmpty:zs}=x.useContext(il.E_);if(typeof er.filterDropdown=="function")Ss=er.filterDropdown({prefixCls:`${br}-custom`,setSelectedKeys:sa=>Co({selectedKeys:sa}),selectedKeys:Zo(),confirm:mu,clearFilters:al,filters:er.filters,visible:fo,close:()=>{vo(!1)}});else if(er.filterDropdown)Ss=er.filterDropdown;else{const sa=Zo()||[],ea=()=>{var qs,Xs;const yu=(qs=zs==null?void 0:zs("Table.filter"))!==null&&qs!==void 0?qs:x.createElement(pl.Z,{image:pl.Z.PRESENTED_IMAGE_SIMPLE,description:Ci.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((er.filters||[]).length===0)return yu;if(Hr==="tree")return x.createElement(x.Fragment,null,x.createElement(tA,{filterSearch:Or,value:ll,onChange:ql,tablePrefixCls:kn,locale:Ci}),x.createElement("div",{className:`${kn}-filter-dropdown-tree`},Qr?x.createElement(qo.default,{checked:sa.length===ml(er.filters).length,indeterminate:sa.length>0&&sa.length<ml(er.filters).length,className:`${kn}-filter-dropdown-checkall`,onChange:Wo},(Xs=Ci==null?void 0:Ci.filterCheckall)!==null&&Xs!==void 0?Xs:Ci==null?void 0:Ci.filterCheckAll):null,x.createElement(tc.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Qr,checkStrictly:!Qr,className:`${br}-menu`,onCheck:Xa,checkedKeys:sa,selectedKeys:sa,showIcon:!1,treeData:Oo({filters:er.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:ll.trim()?Il=>typeof Or=="function"?Or(ll,hs(Il)):Ws(ll,Il.title):void 0})));const Ul=Gs({filters:er.filters||[],filterSearch:Or,prefixCls:ar,filteredKeys:Zo(),filterMultiple:Qr,searchValue:ll}),sc=Ul.every(Il=>Il===null);return x.createElement(x.Fragment,null,x.createElement(tA,{filterSearch:Or,value:ll,onChange:ql,tablePrefixCls:kn,locale:Ci}),sc?yu:x.createElement(eA.default,{selectable:!0,multiple:Qr,prefixCls:`${br}-menu`,className:ba,onSelect:Co,onDeselect:Co,selectedKeys:sa,getPopupContainer:so,openKeys:Ha,onOpenChange:Fl,items:Ul}))},xs=()=>ho?(0,Ue.Z)((Bo||[]).map(qs=>String(qs)),sa,!0):sa.length===0;Ss=x.createElement(x.Fragment,null,ea(),x.createElement("div",{className:`${ar}-dropdown-btns`},x.createElement(zl.ZP,{type:"link",size:"small",disabled:xs(),onClick:()=>al()},Ci.filterReset),x.createElement(zl.ZP,{type:"primary",size:"small",onClick:rs},Ci.filterConfirm)))}er.filterDropdown&&(Ss=x.createElement(Bc.J,{selectable:void 0},Ss)),Ss=x.createElement(zc,{className:`${ar}-dropdown`},Ss);const ul=()=>{let sa;return typeof er.filterIcon=="function"?sa=er.filterIcon(Ho):er.filterIcon?sa=er.filterIcon:sa=x.createElement(Vo,null),x.createElement("span",{role:"button",tabIndex:-1,className:_e()(`${ar}-trigger`,{active:Ho}),onClick:ea=>{ea.stopPropagation()}},sa)},vu=(0,Ma.Z)({trigger:["click"],placement:Vs==="rtl"?"bottomLeft":"bottomRight",children:ul(),getPopupContainer:so},Object.assign(Object.assign({},jo),{rootClassName:_e()(Xi,jo.rootClassName),open:fo,onOpenChange:ra,dropdownRender:()=>typeof(jo==null?void 0:jo.dropdownRender)=="function"?jo.dropdownRender(Ss):Ss}));return x.createElement("div",{className:`${ar}-column`},x.createElement("span",{className:`${kn}-column-title`},qi),x.createElement(Ro.Z,Object.assign({},vu)))};const uu=(wt,yt,Xt)=>{let cn=[];return(wt||[]).forEach((Sn,kn)=>{var ar;const er=wa(kn,Xt);if(Sn.filters||"filterDropdown"in Sn||"onFilter"in Sn)if("filteredValue"in Sn){let br=Sn.filteredValue;"filterDropdown"in Sn||(br=(ar=br==null?void 0:br.map(String))!==null&&ar!==void 0?ar:br),cn.push({column:Sn,key:ha(Sn,er),filteredKeys:br,forceFiltered:Sn.filtered})}else cn.push({column:Sn,key:ha(Sn,er),filteredKeys:yt&&Sn.defaultFilteredValue?Sn.defaultFilteredValue:void 0,forceFiltered:Sn.filtered});"children"in Sn&&(cn=[].concat((0,vr.Z)(cn),(0,vr.Z)(uu(Sn.children,yt,er))))}),cn};function hu(wt,yt,Xt,cn,Sn,kn,ar,er,br){return Xt.map((hr,li)=>{const Qr=wa(li,er),{filterOnClose:Hr=!0,filterMultiple:Or=!0,filterMode:_r,filterSearch:Zi}=hr;let Ci=hr;if(Ci.filters||Ci.filterDropdown){const qi=ha(Ci,Qr),so=cn.find(Xi=>{let{key:ho}=Xi;return qi===ho});Ci=Object.assign(Object.assign({},Ci),{title:Xi=>x.createElement($A,{tablePrefixCls:wt,prefixCls:`${wt}-filter`,dropdownPrefixCls:yt,column:Ci,columnKey:qi,filterState:so,filterOnClose:Hr,filterMultiple:Or,filterMode:_r,filterSearch:Zi,triggerFilter:kn,locale:Sn,getPopupContainer:ar,rootClassName:br},Ja(hr.title,Xi))})}return"children"in Ci&&(Ci=Object.assign(Object.assign({},Ci),{children:hu(wt,yt,Ci.children,cn,Sn,kn,ar,Qr,br)})),Ci})}const Oa=wt=>{const yt={};return wt.forEach(Xt=>{let{key:cn,filteredKeys:Sn,column:kn}=Xt;const ar=cn,{filters:er,filterDropdown:br}=kn;if(br)yt[ar]=Sn||null;else if(Array.isArray(Sn)){const hr=ml(er);yt[ar]=hr.filter(li=>Sn.includes(String(li)))}else yt[ar]=null}),yt},Ua=(wt,yt,Xt)=>yt.reduce((Sn,kn)=>{const{column:{onFilter:ar,filters:er},filteredKeys:br}=kn;return ar&&br&&br.length?Sn.map(hr=>Object.assign({},hr)).filter(hr=>br.some(li=>{const Qr=ml(er),Hr=Qr.findIndex(_r=>String(_r)===String(li)),Or=Hr!==-1?Qr[Hr]:li;return hr[Xt]&&(hr[Xt]=Ua(hr[Xt],yt,Xt)),ar(Or,hr)})):Sn},wt),Ms=wt=>wt.flatMap(yt=>"children"in yt?[yt].concat((0,vr.Z)(Ms(yt.children||[]))):[yt]);var Yl=wt=>{const{prefixCls:yt,dropdownPrefixCls:Xt,mergedColumns:cn,onFilterChange:Sn,getPopupContainer:kn,locale:ar,rootClassName:er}=wt,br=(0,No.ln)("Table"),hr=x.useMemo(()=>Ms(cn||[]),[cn]),[li,Qr]=x.useState(()=>uu(hr,!0)),Hr=x.useMemo(()=>{const Ci=uu(hr,!1);if(Ci.length===0)return Ci;let qi=!0,so=!0;if(Ci.forEach(Xi=>{let{filteredKeys:ho}=Xi;ho!==void 0?qi=!1:so=!1}),qi){const Xi=(hr||[]).map((ho,Bo)=>ha(ho,wa(Bo)));return li.filter(ho=>{let{key:Bo}=ho;return Xi.includes(Bo)}).map(ho=>{const Bo=hr[Xi.findIndex(jo=>jo===ho.key)];return Object.assign(Object.assign({},ho),{column:Object.assign(Object.assign({},ho.column),Bo),forceFiltered:Bo.filtered})})}return Ci},[hr,li]),Or=x.useMemo(()=>Oa(Hr),[Hr]),_r=Ci=>{const qi=Hr.filter(so=>{let{key:Xi}=so;return Xi!==Ci.key});qi.push(Ci),Qr(qi),Sn(Oa(qi),qi)};return[Ci=>hu(yt,Xt,Ci,Hr,ar,_r,kn,void 0,er),Hr,Or]},Kc=(wt,yt,Xt)=>{const cn=x.useRef({});function Sn(kn){var ar;if(!cn.current||cn.current.data!==wt||cn.current.childrenColumnName!==yt||cn.current.getRowKey!==Xt){let br=function(hr){hr.forEach((li,Qr)=>{const Hr=Xt(li,Qr);er.set(Hr,li),li&&typeof li=="object"&&yt in li&&br(li[yt]||[])})};const er=new Map;br(wt),cn.current={data:wt,childrenColumnName:yt,kvMap:er,getRowKey:Xt}}return(ar=cn.current.kvMap)===null||ar===void 0?void 0:ar.get(kn)}return[Sn]},hc=function(wt,yt){var Xt={};for(var cn in wt)Object.prototype.hasOwnProperty.call(wt,cn)&&yt.indexOf(cn)<0&&(Xt[cn]=wt[cn]);if(wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Sn=0,cn=Object.getOwnPropertySymbols(wt);Sn<cn.length;Sn++)yt.indexOf(cn[Sn])<0&&Object.prototype.propertyIsEnumerable.call(wt,cn[Sn])&&(Xt[cn[Sn]]=wt[cn[Sn]]);return Xt};const fA=10;function Jl(wt,yt){const Xt={current:wt.current,pageSize:wt.pageSize};return Object.keys(yt&&typeof yt=="object"?yt:{}).forEach(Sn=>{const kn=wt[Sn];typeof kn!="function"&&(Xt[Sn]=kn)}),Xt}function pc(wt,yt,Xt){const cn=Xt&&typeof Xt=="object"?Xt:{},{total:Sn=0}=cn,kn=hc(cn,["total"]),[ar,er]=(0,x.useState)(()=>({current:"defaultCurrent"in kn?kn.defaultCurrent:1,pageSize:"defaultPageSize"in kn?kn.defaultPageSize:fA})),br=(0,Ma.Z)(ar,kn,{total:Sn>0?Sn:wt}),hr=Math.ceil((Sn||wt)/br.pageSize);br.current>hr&&(br.current=hr||1);const li=(Hr,Or)=>{er({current:Hr!=null?Hr:1,pageSize:Or||br.pageSize})},Qr=(Hr,Or)=>{var _r;Xt&&((_r=Xt.onChange)===null||_r===void 0||_r.call(Xt,Hr,Or)),li(Hr,Or),yt(Hr,Or||(br==null?void 0:br.pageSize))};return Xt===!1?[{},()=>{}]:[Object.assign(Object.assign({},br),{onChange:Qr}),li]}var nA=pc,rA=ae(89489),Ed=ae(59477),Jf=ae(25399);const nd="ascend",OA="descend",hA=wt=>typeof wt.sorter=="object"&&typeof wt.sorter.multiple=="number"?wt.sorter.multiple:!1,Nu=wt=>typeof wt=="function"?wt:wt&&typeof wt=="object"&&wt.compare?wt.compare:!1,DA=(wt,yt)=>yt?wt[wt.indexOf(yt)+1]:wt[0],iA=(wt,yt,Xt)=>{let cn=[];const Sn=(kn,ar)=>{cn.push({column:kn,key:ha(kn,ar),multiplePriority:hA(kn),sortOrder:kn.sortOrder})};return(wt||[]).forEach((kn,ar)=>{const er=wa(ar,Xt);kn.children?("sortOrder"in kn&&Sn(kn,er),cn=[].concat((0,vr.Z)(cn),(0,vr.Z)(iA(kn.children,yt,er)))):kn.sorter&&("sortOrder"in kn?Sn(kn,er):yt&&kn.defaultSortOrder&&cn.push({column:kn,key:ha(kn,er),multiplePriority:hA(kn),sortOrder:kn.defaultSortOrder}))}),cn},Sd=(wt,yt,Xt,cn,Sn,kn,ar,er)=>(yt||[]).map((hr,li)=>{const Qr=wa(li,er);let Hr=hr;if(Hr.sorter){const Or=Hr.sortDirections||Sn,_r=Hr.showSorterTooltip===void 0?ar:Hr.showSorterTooltip,Zi=ha(Hr,Qr),Ci=Xt.find(aa=>{let{key:ta}=aa;return ta===Zi}),qi=Ci?Ci.sortOrder:null,so=DA(Or,qi);let Xi;if(hr.sortIcon)Xi=hr.sortIcon({sortOrder:qi});else{const aa=Or.includes(nd)&&x.createElement(Ed.Z,{className:_e()(`${wt}-column-sorter-up`,{active:qi===nd})}),ta=Or.includes(OA)&&x.createElement(rA.Z,{className:_e()(`${wt}-column-sorter-down`,{active:qi===OA})});Xi=x.createElement("span",{className:_e()(`${wt}-column-sorter`,{[`${wt}-column-sorter-full`]:!!(aa&&ta)})},x.createElement("span",{className:`${wt}-column-sorter-inner`,"aria-hidden":"true"},aa,ta))}const{cancelSort:ho,triggerAsc:Bo,triggerDesc:jo}=kn||{};let Po=ho;so===OA?Po=jo:so===nd&&(Po=Bo);const Ia=typeof _r=="object"?Object.assign({title:Po},_r):{title:Po};Hr=Object.assign(Object.assign({},Hr),{className:_e()(Hr.className,{[`${wt}-column-sort`]:qi}),title:aa=>{const ta=`${wt}-column-sorters`,zo=x.createElement("span",{className:`${wt}-column-title`},Ja(hr.title,aa)),Qo=x.createElement("div",{className:ta},zo,Xi);return _r?typeof _r!="boolean"&&(_r==null?void 0:_r.target)==="sorter-icon"?x.createElement("div",{className:`${ta} ${wt}-column-sorters-tooltip-target-sorter`},zo,x.createElement(Jf.Z,Object.assign({},Ia),Xi)):x.createElement(Jf.Z,Object.assign({},Ia),Qo):Qo},onHeaderCell:aa=>{var ta;const zo=((ta=hr.onHeaderCell)===null||ta===void 0?void 0:ta.call(hr,aa))||{},Qo=zo.onClick,Ho=zo.onKeyDown;zo.onClick=To=>{cn({column:hr,key:Zi,sortOrder:so,multiplePriority:hA(hr)}),Qo==null||Qo(To)},zo.onKeyDown=To=>{To.keyCode===Qs.Z.ENTER&&(cn({column:hr,key:Zi,sortOrder:so,multiplePriority:hA(hr)}),Ho==null||Ho(To))};const vo=Ga(hr.title,{}),fo=vo==null?void 0:vo.toString();return qi&&(zo["aria-sort"]=qi==="ascend"?"ascending":"descending"),zo["aria-label"]=fo||"",zo.className=_e()(zo.className,`${wt}-column-has-sorters`),zo.tabIndex=0,hr.ellipsis&&(zo.title=(vo!=null?vo:"").toString()),zo}})}return"children"in Hr&&(Hr=Object.assign(Object.assign({},Hr),{children:Sd(wt,Hr.children,Xt,cn,Sn,kn,ar,Qr)})),Hr}),qf=wt=>{const{column:yt,sortOrder:Xt}=wt;return{column:yt,order:Xt,field:yt.dataIndex,columnKey:yt.key}},Ns=wt=>{const yt=wt.filter(Xt=>{let{sortOrder:cn}=Xt;return cn}).map(qf);if(yt.length===0&&wt.length){const Xt=wt.length-1;return Object.assign(Object.assign({},qf(wt[Xt])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return yt.length<=1?yt[0]||{}:yt},Wu=(wt,yt,Xt)=>{const cn=yt.slice().sort((ar,er)=>er.multiplePriority-ar.multiplePriority),Sn=wt.slice(),kn=cn.filter(ar=>{let{column:{sorter:er},sortOrder:br}=ar;return Nu(er)&&br});return kn.length?Sn.sort((ar,er)=>{for(let br=0;br<kn.length;br+=1){const hr=kn[br],{column:{sorter:li},sortOrder:Qr}=hr,Hr=Nu(li);if(Hr&&Qr){const Or=Hr(ar,er,Qr);if(Or!==0)return Qr===nd?Or:-Or}}return 0}).map(ar=>{const er=ar[Xt];return er?Object.assign(Object.assign({},ar),{[Xt]:Wu(er,yt,Xt)}):ar}):Sn};var Ph=wt=>{const{prefixCls:yt,mergedColumns:Xt,sortDirections:cn,tableLocale:Sn,showSorterTooltip:kn,onSorterChange:ar}=wt,[er,br]=x.useState(iA(Xt,!0)),hr=(Zi,Ci)=>{const qi=[];return Zi.forEach((so,Xi)=>{const ho=wa(Xi,Ci);if(qi.push(ha(so,ho)),Array.isArray(so.children)){const Bo=hr(so.children,ho);qi.push.apply(qi,(0,vr.Z)(Bo))}}),qi},li=x.useMemo(()=>{let Zi=!0;const Ci=iA(Xt,!1);if(!Ci.length){const ho=hr(Xt);return er.filter(Bo=>{let{key:jo}=Bo;return ho.includes(jo)})}const qi=[];function so(ho){Zi?qi.push(ho):qi.push(Object.assign(Object.assign({},ho),{sortOrder:null}))}let Xi=null;return Ci.forEach(ho=>{Xi===null?(so(ho),ho.sortOrder&&(ho.multiplePriority===!1?Zi=!1:Xi=!0)):(Xi&&ho.multiplePriority!==!1||(Zi=!1),so(ho))}),qi},[Xt,er]),Qr=x.useMemo(()=>{var Zi,Ci;const qi=li.map(so=>{let{column:Xi,sortOrder:ho}=so;return{column:Xi,order:ho}});return{sortColumns:qi,sortColumn:(Zi=qi[0])===null||Zi===void 0?void 0:Zi.column,sortOrder:(Ci=qi[0])===null||Ci===void 0?void 0:Ci.order}},[li]),Hr=Zi=>{let Ci;Zi.multiplePriority===!1||!li.length||li[0].multiplePriority===!1?Ci=[Zi]:Ci=[].concat((0,vr.Z)(li.filter(qi=>{let{key:so}=qi;return so!==Zi.key})),[Zi]),br(Ci),ar(Ns(Ci),Ci)};return[Zi=>Sd(yt,Zi,li,Hr,cn,Sn,kn),li,Qr,()=>Ns(li)]};const $c=(wt,yt)=>wt.map(cn=>{const Sn=Object.assign({},cn);return Sn.title=Ja(cn.title,yt),"children"in Sn&&(Sn.children=$c(Sn.children,yt)),Sn});var Fd=wt=>[x.useCallback(Xt=>$c(Xt,wt),[wt])],bf=Yi((wt,yt)=>{const{_renderTimes:Xt}=wt,{_renderTimes:cn}=yt;return Xt!==cn}),Zc=Jr((wt,yt)=>{const{_renderTimes:Xt}=wt,{_renderTimes:cn}=yt;return Xt!==cn}),va=ae(36237),Kl=ae(17835),Nc=ae(63356),rd=ae(16931),PA=ae(51636),TA=wt=>{const{componentCls:yt,lineWidth:Xt,lineType:cn,tableBorderColor:Sn,tableHeaderBg:kn,tablePaddingVertical:ar,tablePaddingHorizontal:er,calc:br}=wt,hr=`${(0,va.unit)(Xt)} ${cn} ${Sn}`,li=(Qr,Hr,Or)=>({[`&${yt}-${Qr}`]:{[`> ${yt}-container`]:{[`> ${yt}-content, > ${yt}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${yt}-expanded-row-fixed`]:{margin:`${(0,va.unit)(br(Hr).mul(-1).equal())}
${(0,va.unit)(br(br(Or).add(Xt)).mul(-1).equal())}`}}}}}});return{[`${yt}-wrapper`]:{[`${yt}${yt}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${yt}-title`]:{border:hr,borderBottom:0},[`> ${yt}-container`]:{borderInlineStart:hr,borderTop:hr,[`
> ${yt}-content,
> ${yt}-header,
> ${yt}-body,
> ${yt}-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:hr},"> thead":{"> tr:not(:last-child) > th":{borderBottom:hr},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${yt}-cell-fix-right-first::after`]:{borderInlineEnd:hr}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${yt}-expanded-row-fixed`]:{margin:`${(0,va.unit)(br(ar).mul(-1).equal())} ${(0,va.unit)(br(br(er).add(Xt)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:Xt,bottom:0,borderInlineEnd:hr,content:'""'}}}}}},[`&${yt}-scroll-horizontal`]:{[`> ${yt}-container > ${yt}-body`]:{"> table > tbody":{[`
> tr${yt}-expanded-row,
> tr${yt}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},li("middle",wt.tablePaddingVerticalMiddle,wt.tablePaddingHorizontalMiddle)),li("small",wt.tablePaddingVerticalSmall,wt.tablePaddingHorizontalSmall)),{[`> ${yt}-footer`]:{border:hr,borderTop:0}}),[`${yt}-cell`]:{[`${yt}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,va.unit)(Xt)} 0 ${(0,va.unit)(Xt)} ${kn}`}},[`${yt}-bordered ${yt}-cell-scrollbar`]:{borderInlineEnd:hr}}}},Oc=wt=>{const{componentCls:yt}=wt;return{[`${yt}-wrapper`]:{[`${yt}-cell-ellipsis`]:Object.assign(Object.assign({},Nc.vS),{wordBreak:"keep-all",[`
&${yt}-cell-fix-left-last,
&${yt}-cell-fix-right-first
`]:{overflow:"visible",[`${yt}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${yt}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},$p=wt=>{const{componentCls:yt}=wt;return{[`${yt}-wrapper`]:{[`${yt}-tbody > tr${yt}-placeholder`]:{textAlign:"center",color:wt.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:wt.colorBgContainer}}}}},Ec=wt=>{const{componentCls:yt,antCls:Xt,motionDurationSlow:cn,lineWidth:Sn,paddingXS:kn,lineType:ar,tableBorderColor:er,tableExpandIconBg:br,tableExpandColumnWidth:hr,borderRadius:li,tablePaddingVertical:Qr,tablePaddingHorizontal:Hr,tableExpandedRowBg:Or,paddingXXS:_r,expandIconMarginTop:Zi,expandIconSize:Ci,expandIconHalfInner:qi,expandIconScale:so,calc:Xi}=wt,ho=`${(0,va.unit)(Sn)} ${ar} ${er}`,Bo=Xi(_r).sub(Sn).equal();return{[`${yt}-wrapper`]:{[`${yt}-expand-icon-col`]:{width:hr},[`${yt}-row-expand-icon-cell`]:{textAlign:"center",[`${yt}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${yt}-row-indent`]:{height:1,float:"left"},[`${yt}-row-expand-icon`]:Object.assign(Object.assign({},(0,Nc.Nd)(wt)),{position:"relative",float:"left",width:Ci,height:Ci,color:"inherit",lineHeight:(0,va.unit)(Ci),background:br,border:ho,borderRadius:li,transform:`scale(${so})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${cn} ease-out`,content:'""'},"&::before":{top:qi,insetInlineEnd:Bo,insetInlineStart:Bo,height:Sn},"&::after":{top:Bo,bottom:Bo,insetInlineStart:qi,width:Sn,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"}}),[`${yt}-row-indent + ${yt}-row-expand-icon`]:{marginTop:Zi,marginInlineEnd:kn},[`tr${yt}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Or}},[`${Xt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${yt}-expanded-row-fixed`]:{position:"relative",margin:`${(0,va.unit)(Xi(Qr).mul(-1).equal())} ${(0,va.unit)(Xi(Hr).mul(-1).equal())}`,padding:`${(0,va.unit)(Qr)} ${(0,va.unit)(Hr)}`}}}},Hs=wt=>{const{componentCls:yt,antCls:Xt,iconCls:cn,tableFilterDropdownWidth:Sn,tableFilterDropdownSearchWidth:kn,paddingXXS:ar,paddingXS:er,colorText:br,lineWidth:hr,lineType:li,tableBorderColor:Qr,headerIconColor:Hr,fontSizeSM:Or,tablePaddingHorizontal:_r,borderRadius:Zi,motionDurationSlow:Ci,colorTextDescription:qi,colorPrimary:so,tableHeaderFilterActiveBg:Xi,colorTextDisabled:ho,tableFilterDropdownBg:Bo,tableFilterDropdownHeight:jo,controlItemBgHover:Po,controlItemBgActive:Ia,boxShadowSecondary:aa,filterDropdownMenuBg:ta,calc:zo}=wt,Qo=`${Xt}-dropdown`,Ho=`${yt}-filter-dropdown`,vo=`${Xt}-tree`,fo=`${(0,va.unit)(hr)} ${li} ${Qr}`;return[{[`${yt}-wrapper`]:{[`${yt}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${yt}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:zo(ar).mul(-1).equal(),marginInline:`${(0,va.unit)(ar)} ${(0,va.unit)(zo(_r).div(2).mul(-1).equal())}`,padding:`0 ${(0,va.unit)(ar)}`,color:Hr,fontSize:Or,borderRadius:Zi,cursor:"pointer",transition:`all ${Ci}`,"&:hover":{color:qi,background:Xi},"&.active":{color:so}}}},{[`${Xt}-dropdown`]:{[Ho]:Object.assign(Object.assign({},(0,Nc.Wf)(wt)),{minWidth:Sn,backgroundColor:Bo,borderRadius:Zi,boxShadow:aa,overflow:"hidden",[`${Qo}-menu`]:{maxHeight:jo,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:ta,"&:empty::after":{display:"block",padding:`${(0,va.unit)(er)} 0`,color:ho,fontSize:Or,textAlign:"center",content:'"Not Found"'}},[`${Ho}-tree`]:{paddingBlock:`${(0,va.unit)(er)} 0`,paddingInline:er,[vo]:{padding:0},[`${vo}-treenode ${vo}-node-content-wrapper:hover`]:{backgroundColor:Po},[`${vo}-treenode-checkbox-checked ${vo}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Ia}}},[`${Ho}-search`]:{padding:er,borderBottom:fo,"&-input":{input:{minWidth:kn},[cn]:{color:ho}}},[`${Ho}-checkall`]:{width:"100%",marginBottom:ar,marginInlineStart:ar},[`${Ho}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,va.unit)(zo(er).sub(hr).equal())} ${(0,va.unit)(er)}`,overflow:"hidden",borderTop:fo}})}},{[`${Xt}-dropdown ${Ho}, ${Ho}-submenu`]:{[`${Xt}-checkbox-wrapper + span`]:{paddingInlineStart:er,color:br},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},od=wt=>{const{componentCls:yt,lineWidth:Xt,colorSplit:cn,motionDurationSlow:Sn,zIndexTableFixed:kn,tableBg:ar,zIndexTableSticky:er,calc:br}=wt,hr=cn;return{[`${yt}-wrapper`]:{[`
${yt}-cell-fix-left,
${yt}-cell-fix-right
`]:{position:"sticky !important",zIndex:kn,background:ar},[`
${yt}-cell-fix-left-first::after,
${yt}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:br(Xt).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${Sn}`,content:'""',pointerEvents:"none"},[`${yt}-cell-fix-left-all::after`]:{display:"none"},[`
${yt}-cell-fix-right-first::after,
${yt}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:br(Xt).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Sn}`,content:'""',pointerEvents:"none"},[`${yt}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:br(er).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${Sn}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${yt}-ping-left`]:{[`&:not(${yt}-has-fix-left) ${yt}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${hr}`},[`
${yt}-cell-fix-left-first::after,
${yt}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${hr}`},[`${yt}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${yt}-ping-right`]:{[`&:not(${yt}-has-fix-right) ${yt}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${hr}`},[`
${yt}-cell-fix-right-first::after,
${yt}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${hr}`}},[`${yt}-fixed-column-gapped`]:{[`
${yt}-cell-fix-left-first::after,
${yt}-cell-fix-left-last::after,
${yt}-cell-fix-right-first::after,
${yt}-cell-fix-right-last::after
`]:{boxShadow:"none"}}}}},vA=wt=>{const{componentCls:yt,antCls:Xt,margin:cn}=wt;return{[`${yt}-wrapper`]:{[`${yt}-pagination${Xt}-pagination`]:{margin:`${(0,va.unit)(cn)} 0`},[`${yt}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:wt.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},xf=wt=>{const{componentCls:yt,tableRadius:Xt}=wt;return{[`${yt}-wrapper`]:{[yt]:{[`${yt}-title, ${yt}-header`]:{borderRadius:`${(0,va.unit)(Xt)} ${(0,va.unit)(Xt)} 0 0`},[`${yt}-title + ${yt}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${yt}-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:Xt,borderStartEndRadius:Xt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Xt},"> *:last-child":{borderStartEndRadius:Xt}}},"&-footer":{borderRadius:`0 0 ${(0,va.unit)(Xt)} ${(0,va.unit)(Xt)}`}}}}},kh=wt=>{const{componentCls:yt}=wt;return{[`${yt}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${yt}-pagination-left`]:{justifyContent:"flex-end"},[`${yt}-pagination-right`]:{justifyContent:"flex-start"},[`${yt}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${yt}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${yt}-row-indent`]:{float:"right"}}}}},ic=wt=>{const{componentCls:yt,antCls:Xt,iconCls:cn,fontSizeIcon:Sn,padding:kn,paddingXS:ar,headerIconColor:er,headerIconHoverColor:br,tableSelectionColumnWidth:hr,tableSelectedRowBg:li,tableSelectedRowHoverBg:Qr,tableRowHoverBg:Hr,tablePaddingHorizontal:Or,calc:_r}=wt;return{[`${yt}-wrapper`]:{[`${yt}-selection-col`]:{width:hr,[`&${yt}-selection-col-with-dropdown`]:{width:_r(hr).add(Sn).add(_r(kn).div(4)).equal()}},[`${yt}-bordered ${yt}-selection-col`]:{width:_r(hr).add(_r(ar).mul(2)).equal(),[`&${yt}-selection-col-with-dropdown`]:{width:_r(hr).add(Sn).add(_r(kn).div(4)).add(_r(ar).mul(2)).equal()}},[`
table tr th${yt}-selection-column,
table tr td${yt}-selection-column,
${yt}-selection-column
`]:{paddingInlineEnd:wt.paddingXS,paddingInlineStart:wt.paddingXS,textAlign:"center",[`${Xt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${yt}-selection-column${yt}-cell-fix-left`]:{zIndex:_r(wt.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${yt}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${yt}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${yt}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${wt.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,va.unit)(_r(Or).div(4).equal()),[cn]:{color:er,fontSize:Sn,verticalAlign:"baseline","&:hover":{color:br}}},[`${yt}-tbody`]:{[`${yt}-row`]:{[`&${yt}-row-selected`]:{[`> ${yt}-cell`]:{background:li,"&-row-hover":{background:Qr}}},[`> ${yt}-cell-row-hover`]:{background:Hr}}}}}},up=wt=>{const{componentCls:yt,tableExpandColumnWidth:Xt,calc:cn}=wt,Sn=(kn,ar,er,br)=>({[`${yt}${yt}-${kn}`]:{fontSize:br,[`
${yt}-title,
${yt}-footer,
${yt}-cell,
${yt}-thead > tr > th,
${yt}-tbody > tr > th,
${yt}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${(0,va.unit)(ar)} ${(0,va.unit)(er)}`},[`${yt}-filter-trigger`]:{marginInlineEnd:(0,va.unit)(cn(er).div(2).mul(-1).equal())},[`${yt}-expanded-row-fixed`]:{margin:`${(0,va.unit)(cn(ar).mul(-1).equal())} ${(0,va.unit)(cn(er).mul(-1).equal())}`},[`${yt}-tbody`]:{[`${yt}-wrapper:only-child ${yt}`]:{marginBlock:(0,va.unit)(cn(ar).mul(-1).equal()),marginInline:`${(0,va.unit)(cn(Xt).sub(er).equal())} ${(0,va.unit)(cn(er).mul(-1).equal())}`}},[`${yt}-selection-extra`]:{paddingInlineStart:(0,va.unit)(cn(er).div(4).equal())}}});return{[`${yt}-wrapper`]:Object.assign(Object.assign({},Sn("middle",wt.tablePaddingVerticalMiddle,wt.tablePaddingHorizontalMiddle,wt.tableFontSizeMiddle)),Sn("small",wt.tablePaddingVerticalSmall,wt.tablePaddingHorizontalSmall,wt.tableFontSizeSmall))}},Vd=wt=>{const{componentCls:yt,marginXXS:Xt,fontSizeIcon:cn,headerIconColor:Sn,headerIconHoverColor:kn}=wt;return{[`${yt}-wrapper`]:{[`${yt}-thead th${yt}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${wt.motionDurationSlow}, left 0s`,"&:hover":{background:wt.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:wt.colorPrimary},[`
&${yt}-cell-fix-left:hover,
&${yt}-cell-fix-right:hover
`]:{background:wt.tableFixedHeaderSortActiveBg}},[`${yt}-thead th${yt}-column-sort`]:{background:wt.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${yt}-column-sort`]:{background:wt.tableBodySortBg},[`${yt}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${yt}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${yt}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${yt}-column-sorter`]:{marginInlineStart:Xt,color:Sn,fontSize:0,transition:`color ${wt.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:cn,"&.active":{color:wt.colorPrimary}},[`${yt}-column-sorter-up + ${yt}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${yt}-column-sorters:hover ${yt}-column-sorter`]:{color:kn}}}},Xd=wt=>{const{componentCls:yt,opacityLoading:Xt,tableScrollThumbBg:cn,tableScrollThumbBgHover:Sn,tableScrollThumbSize:kn,tableScrollBg:ar,zIndexTableSticky:er,stickyScrollBarBorderRadius:br,lineWidth:hr,lineType:li,tableBorderColor:Qr}=wt,Hr=`${(0,va.unit)(hr)} ${li} ${Qr}`;return{[`${yt}-wrapper`]:{[`${yt}-sticky`]:{"&-holder":{position:"sticky",zIndex:er,background:wt.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,va.unit)(kn)} !important`,zIndex:er,display:"flex",alignItems:"center",background:ar,borderTop:Hr,opacity:Xt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:kn,backgroundColor:cn,borderRadius:br,transition:`all ${wt.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Sn}}}}}}},oc=wt=>{const{componentCls:yt,lineWidth:Xt,tableBorderColor:cn,calc:Sn}=wt,kn=`${(0,va.unit)(Xt)} ${wt.lineType} ${cn}`;return{[`${yt}-wrapper`]:{[`${yt}-summary`]:{position:"relative",zIndex:wt.zIndexTableFixed,background:wt.tableBg,"> tr":{"> th, > td":{borderBottom:kn}}},[`div${yt}-summary`]:{boxShadow:`0 ${(0,va.unit)(Sn(Xt).mul(-1).equal())} 0 ${cn}`}}}},ac=wt=>{const{componentCls:yt,motionDurationMid:Xt,lineWidth:cn,lineType:Sn,tableBorderColor:kn,calc:ar}=wt,er=`${(0,va.unit)(cn)} ${Sn} ${kn}`,br=`${yt}-expanded-row-cell`;return{[`${yt}-wrapper`]:{[`${yt}-tbody-virtual`]:{[`${yt}-tbody-virtual-holder-inner`]:{[`
& > ${yt}-row,
& > div:not(${yt}-row) > ${yt}-row
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${yt}-cell`]:{borderBottom:er,transition:`background ${Xt}`},[`${yt}-expanded-row`]:{[`${br}${br}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,va.unit)(cn)})`,borderInlineEnd:"none"}}},[`${yt}-bordered`]:{[`${yt}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:er,position:"absolute"},[`${yt}-cell`]:{borderInlineEnd:er,[`&${yt}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:ar(cn).mul(-1).equal(),borderInlineStart:er}}},[`&${yt}-virtual`]:{[`${yt}-placeholder ${yt}-cell`]:{borderInlineEnd:er,borderBottom:er}}}}}};const Du=wt=>{const{componentCls:yt,fontWeightStrong:Xt,tablePaddingVertical:cn,tablePaddingHorizontal:Sn,tableExpandColumnWidth:kn,lineWidth:ar,lineType:er,tableBorderColor:br,tableFontSize:hr,tableBg:li,tableRadius:Qr,tableHeaderTextColor:Hr,motionDurationMid:Or,tableHeaderBg:_r,tableHeaderCellSplitColor:Zi,tableFooterTextColor:Ci,tableFooterBg:qi,calc:so}=wt,Xi=`${(0,va.unit)(ar)} ${er} ${br}`;return{[`${yt}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Nc.dF)()),{[yt]:Object.assign(Object.assign({},(0,Nc.Wf)(wt)),{fontSize:hr,background:li,borderRadius:`${(0,va.unit)(Qr)} ${(0,va.unit)(Qr)} 0 0`,scrollbarColor:`${wt.tableScrollThumbBg} ${wt.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,va.unit)(Qr)} ${(0,va.unit)(Qr)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${yt}-cell,
${yt}-thead > tr > th,
${yt}-tbody > tr > th,
${yt}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${(0,va.unit)(cn)} ${(0,va.unit)(Sn)}`,overflowWrap:"break-word"},[`${yt}-title`]:{padding:`${(0,va.unit)(cn)} ${(0,va.unit)(Sn)}`},[`${yt}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Hr,fontWeight:Xt,textAlign:"start",background:_r,borderBottom:Xi,transition:`background ${Or} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${yt}-selection-column):not(${yt}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Zi,transform:"translateY(-50%)",transition:`background-color ${Or}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${yt}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Or}, border-color ${Or}`,borderBottom:Xi,[`
> ${yt}-wrapper:only-child,
> ${yt}-expanded-row-fixed > ${yt}-wrapper:only-child
`]:{[yt]:{marginBlock:(0,va.unit)(so(cn).mul(-1).equal()),marginInline:`${(0,va.unit)(so(kn).sub(Sn).equal())}
${(0,va.unit)(so(Sn).mul(-1).equal())}`,[`${yt}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Hr,fontWeight:Xt,textAlign:"start",background:_r,borderBottom:Xi,transition:`background ${Or} ease`}}},[`${yt}-footer`]:{padding:`${(0,va.unit)(cn)} ${(0,va.unit)(Sn)}`,color:Ci,background:qi}})}},sd=wt=>{const{colorFillAlter:yt,colorBgContainer:Xt,colorTextHeading:cn,colorFillSecondary:Sn,colorFillContent:kn,controlItemBgActive:ar,controlItemBgActiveHover:er,padding:br,paddingSM:hr,paddingXS:li,colorBorderSecondary:Qr,borderRadiusLG:Hr,controlHeight:Or,colorTextPlaceholder:_r,fontSize:Zi,fontSizeSM:Ci,lineHeight:qi,lineWidth:so,colorIcon:Xi,colorIconHover:ho,opacityLoading:Bo,controlInteractiveSize:jo}=wt,Po=new Kl.FastColor(Sn).onBackground(Xt).toHexString(),Ia=new Kl.FastColor(kn).onBackground(Xt).toHexString(),aa=new Kl.FastColor(yt).onBackground(Xt).toHexString(),ta=new Kl.FastColor(Xi),zo=new Kl.FastColor(ho),Qo=jo/2-so,Ho=Qo*2+so*3;return{headerBg:aa,headerColor:cn,headerSortActiveBg:Po,headerSortHoverBg:Ia,bodySortBg:aa,rowHoverBg:aa,rowSelectedBg:ar,rowSelectedHoverBg:er,rowExpandedBg:yt,cellPaddingBlock:br,cellPaddingInline:br,cellPaddingBlockMD:hr,cellPaddingInlineMD:li,cellPaddingBlockSM:li,cellPaddingInlineSM:li,borderColor:Qr,headerBorderRadius:Hr,footerBg:aa,footerColor:cn,cellFontSize:Zi,cellFontSizeMD:Zi,cellFontSizeSM:Zi,headerSplitColor:Qr,fixedHeaderSortActiveBg:Po,headerFilterHoverBg:kn,filterDropdownMenuBg:Xt,filterDropdownBg:Xt,expandIconBg:Xt,selectionColumnWidth:Or,stickyScrollBarBg:_r,stickyScrollBarBorderRadius:100,expandIconMarginTop:(Zi*qi-so*3)/2-Math.ceil((Ci*1.4-so*3)/2),headerIconColor:ta.clone().setA(ta.a*Bo).toRgbString(),headerIconHoverColor:zo.clone().setA(zo.a*Bo).toRgbString(),expandIconHalfInner:Qo,expandIconSize:Ho,expandIconScale:jo/Ho}},Yd=2;var Bf=(0,rd.I$)("Table",wt=>{const{colorTextHeading:yt,colorSplit:Xt,colorBgContainer:cn,controlInteractiveSize:Sn,headerBg:kn,headerColor:ar,headerSortActiveBg:er,headerSortHoverBg:br,bodySortBg:hr,rowHoverBg:li,rowSelectedBg:Qr,rowSelectedHoverBg:Hr,rowExpandedBg:Or,cellPaddingBlock:_r,cellPaddingInline:Zi,cellPaddingBlockMD:Ci,cellPaddingInlineMD:qi,cellPaddingBlockSM:so,cellPaddingInlineSM:Xi,borderColor:ho,footerBg:Bo,footerColor:jo,headerBorderRadius:Po,cellFontSize:Ia,cellFontSizeMD:aa,cellFontSizeSM:ta,headerSplitColor:zo,fixedHeaderSortActiveBg:Qo,headerFilterHoverBg:Ho,filterDropdownBg:vo,expandIconBg:fo,selectionColumnWidth:To,stickyScrollBarBg:Zo,calc:na}=wt,Co=(0,PA.mergeToken)(wt,{tableFontSize:Ia,tableBg:cn,tableRadius:Po,tablePaddingVertical:_r,tablePaddingHorizontal:Zi,tablePaddingVerticalMiddle:Ci,tablePaddingHorizontalMiddle:qi,tablePaddingVerticalSmall:so,tablePaddingHorizontalSmall:Xi,tableBorderColor:ho,tableHeaderTextColor:ar,tableHeaderBg:kn,tableFooterTextColor:jo,tableFooterBg:Bo,tableHeaderCellSplitColor:zo,tableHeaderSortBg:er,tableHeaderSortHoverBg:br,tableBodySortBg:hr,tableFixedHeaderSortActiveBg:Qo,tableHeaderFilterActiveBg:Ho,tableFilterDropdownBg:vo,tableRowHoverBg:li,tableSelectedRowBg:Qr,tableSelectedRowHoverBg:Hr,zIndexTableFixed:Yd,zIndexTableSticky:na(Yd).add(1).equal({unit:!1}),tableFontSizeMiddle:aa,tableFontSizeSmall:ta,tableSelectionColumnWidth:To,tableExpandIconBg:fo,tableExpandColumnWidth:na(Sn).add(na(wt.padding).mul(2)).equal(),tableExpandedRowBg:Or,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Zo,tableScrollThumbBgHover:yt,tableScrollBg:Xt});return[Du(Co),vA(Co),oc(Co),Vd(Co),Hs(Co),TA(Co),xf(Co),Ec(Co),oc(Co),$p(Co),ic(Co),od(Co),Xd(Co),Oc(Co),up(Co),kh(Co),ac(Co)]},sd,{unitless:{expandIconScale:!0}});const Ap=[],dp=(wt,yt)=>{var Xt,cn;const{prefixCls:Sn,className:kn,rootClassName:ar,style:er,size:br,bordered:hr,dropdownPrefixCls:li,dataSource:Qr,pagination:Hr,rowSelection:Or,rowKey:_r="key",rowClassName:Zi,columns:Ci,children:qi,childrenColumnName:so,onChange:Xi,getPopupContainer:ho,loading:Bo,expandIcon:jo,expandable:Po,expandedRowRender:Ia,expandIconColumnIndex:aa,indentSize:ta,scroll:zo,sortDirections:Qo,locale:Ho,showSorterTooltip:vo={target:"full-header"},virtual:fo}=wt,To=(0,No.ln)("Table"),Zo=x.useMemo(()=>Ci||fr(qi),[Ci,qi]),na=x.useMemo(()=>Zo.some(za=>za.responsive),[Zo]),Co=(0,jl.Z)(na),Xa=x.useMemo(()=>{const za=new Set(Object.keys(Co).filter(ps=>Co[ps]));return Zo.filter(ps=>!ps.responsive||ps.responsive.some($l=>za.has($l)))},[Zo,Co]),Ha=(0,Fa.Z)(wt,["className","style","columns"]),{locale:Ml=Lu.Z,direction:Fl,table:ll,renderEmpty:lo,getPrefixCls:ql,getPopupContainer:ls}=x.useContext(il.E_),rs=(0,ol.Z)(br),al=Object.assign(Object.assign({},Ml.Table),Ho),mu=Qr||Ap,ra=ql("table",Sn),ba=ql("dropdown",li),[,Wo]=(0,ec.ZP)(),Oo=(0,su.Z)(ra),[hs,Ss,Vs]=Bf(ra,Oo),zs=Object.assign(Object.assign({childrenColumnName:so,expandIconColumnIndex:aa},Po),{expandIcon:(Xt=Po==null?void 0:Po.expandIcon)!==null&&Xt!==void 0?Xt:(cn=ll==null?void 0:ll.expandable)===null||cn===void 0?void 0:cn.expandIcon}),{childrenColumnName:ul="children"}=zs,vu=x.useMemo(()=>mu.some(za=>za==null?void 0:za[ul])?"nest":Ia||Po!=null&&Po.expandedRowRender?"row":null,[mu]),sa={body:x.useRef(null)},ea=Ea(ra),xs=x.useRef(null),qs=x.useRef(null);nl(yt,()=>Object.assign(Object.assign({},qs.current),{nativeElement:xs.current}));const Xs=x.useMemo(()=>typeof _r=="function"?_r:za=>za==null?void 0:za[_r],[_r]),[yu]=Kc(mu,ul,Xs),Ul={},sc=function(za,ps){let $l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var cu,Bu,Eu,Xu;const ju=Object.assign(Object.assign({},Ul),za);$l&&((cu=Ul.resetPagination)===null||cu===void 0||cu.call(Ul),!((Bu=ju.pagination)===null||Bu===void 0)&&Bu.current&&(ju.pagination.current=1),Hr&&((Eu=Hr.onChange)===null||Eu===void 0||Eu.call(Hr,1,(Xu=ju.pagination)===null||Xu===void 0?void 0:Xu.pageSize))),zo&&zo.scrollToFirstRowOnChange!==!1&&sa.body.current&&(0,rl.Z)(0,{getContainer:()=>sa.body.current}),Xi==null||Xi(ju.pagination,ju.filters,ju.sorter,{currentDataSource:Ua(Wu(mu,ju.sorterStates,ul),ju.filterStates,ul),action:ps})},Il=(za,ps)=>{sc({sorter:za,sorterStates:ps},"sort",!1)},[vs,cl,Al,gu]=Ph({prefixCls:ra,mergedColumns:Xa,onSorterChange:Il,sortDirections:Qo||["ascend","descend"],tableLocale:al,showSorterTooltip:vo}),Rl=x.useMemo(()=>Wu(mu,cl,ul),[mu,cl]);Ul.sorter=gu(),Ul.sorterStates=cl;const ys=(za,ps)=>{sc({filters:za,filterStates:ps},"filter",!0)},[bl,Fs,Cl]=Yl({prefixCls:ra,locale:al,dropdownPrefixCls:ba,mergedColumns:Xa,onFilterChange:ys,getPopupContainer:ho||ls,rootClassName:_e()(ar,Oo)}),eu=Ua(Rl,Fs,ul);Ul.filters=Cl,Ul.filterStates=Fs;const Pu=x.useMemo(()=>{const za={};return Object.keys(Cl).forEach(ps=>{Cl[ps]!==null&&(za[ps]=Cl[ps])}),Object.assign(Object.assign({},Al),{filters:za})},[Al,Cl]),[Tu]=Fd(Pu),Wc=(za,ps)=>{sc({pagination:Object.assign(Object.assign({},Ul.pagination),{current:za,pageSize:ps})},"paginate")},[dl,_d]=nA(eu.length,Wc,Hr);Ul.pagination=Hr===!1?{}:Jl(dl,Hr),Ul.resetPagination=_d;const Uu=x.useMemo(()=>{if(Hr===!1||!dl.pageSize)return eu;const{current:za=1,total:ps,pageSize:$l=fA}=dl;return eu.length<ps?eu.length>$l?eu.slice((za-1)*$l,za*$l):eu:eu.slice((za-1)*$l,za*$l)},[!!Hr,eu,dl==null?void 0:dl.current,dl==null?void 0:dl.pageSize,dl==null?void 0:dl.total]),[Gu,Ru]=go({prefixCls:ra,data:eu,pageData:Uu,getRowKey:Xs,getRecordByKey:yu,expandType:vu,childrenColumnName:ul,locale:al,getPopupContainer:ho||ls},Or),Vu=(za,ps,$l)=>{let cu;return typeof Zi=="function"?cu=_e()(Zi(za,ps,$l)):cu=_e()(Zi),_e()({[`${ra}-row-selected`]:Ru.has(Xs(za,ps))},cu)};zs.__PARENT_RENDER_ICON__=zs.expandIcon,zs.expandIcon=zs.expandIcon||jo||ma(al),vu==="nest"&&zs.expandIconColumnIndex===void 0?zs.expandIconColumnIndex=Or?1:0:zs.expandIconColumnIndex>0&&Or&&(zs.expandIconColumnIndex-=1),typeof zs.indentSize!="number"&&(zs.indentSize=typeof ta=="number"?ta:15);const fl=x.useCallback(za=>Tu(Gu(bl(vs(za)))),[vs,bl,Gu]);let mc,bA;if(Hr!==!1&&(dl!=null&&dl.total)){let za;dl.size?za=dl.size:za=rs==="small"||rs==="middle"?"small":void 0;const ps=Bu=>x.createElement(Xl.Z,Object.assign({},dl,{className:_e()(`${ra}-pagination ${ra}-pagination-${Bu}`,dl.className),size:za})),$l=Fl==="rtl"?"left":"right",{position:cu}=dl;if(cu!==null&&Array.isArray(cu)){const Bu=cu.find(ju=>ju.includes("top")),Eu=cu.find(ju=>ju.includes("bottom")),Xu=cu.every(ju=>`${ju}`=="none");!Bu&&!Eu&&!Xu&&(bA=ps($l)),Bu&&(mc=ps(Bu.toLowerCase().replace("top",""))),Eu&&(bA=ps(Eu.toLowerCase().replace("bottom","")))}else bA=ps($l)}let Dc;typeof Bo=="boolean"?Dc={spinning:Bo}:typeof Bo=="object"&&(Dc=Object.assign({spinning:!0},Bo));const Gc=_e()(Vs,Oo,`${ra}-wrapper`,ll==null?void 0:ll.className,{[`${ra}-wrapper-rtl`]:Fl==="rtl"},kn,ar,Ss),Jd=Object.assign(Object.assign({},ll==null?void 0:ll.style),er),qd=typeof(Ho==null?void 0:Ho.emptyText)!="undefined"?Ho.emptyText:(lo==null?void 0:lo("Table"))||x.createElement(yl.Z,{componentName:"Table"}),Is=fo?Zc:bf,ld={},Ef=x.useMemo(()=>{const{fontSize:za,lineHeight:ps,lineWidth:$l,padding:cu,paddingXS:Bu,paddingSM:Eu}=Wo,Xu=Math.floor(za*ps);switch(rs){case"middle":return Eu*2+Xu+$l;case"small":return Bu*2+Xu+$l;default:return cu*2+Xu+$l}},[Wo,rs]);return fo&&(ld.listItemHeight=Ef),hs(x.createElement("div",{ref:xs,className:Gc,style:Jd},x.createElement(wl.Z,Object.assign({spinning:!1},Dc),mc,x.createElement(Is,Object.assign({},ld,Ha,{ref:qs,columns:Xa,direction:Fl,expandable:zs,prefixCls:ra,className:_e()({[`${ra}-middle`]:rs==="middle",[`${ra}-small`]:rs==="small",[`${ra}-bordered`]:hr,[`${ra}-empty`]:mu.length===0},Vs,Oo,Ss),data:Uu,rowKey:Xs,rowClassName:Vu,emptyText:qd,internalHooks:Ie,internalRefs:sa,transformColumns:fl,getContainerWidth:ea})),bA)))};var fp=x.forwardRef(dp);const nh=(wt,yt)=>{const Xt=x.useRef(0);return Xt.current+=1,x.createElement(fp,Object.assign({},wt,{ref:yt,_renderTimes:Xt.current}))},wA=x.forwardRef(nh);wA.SELECTION_COLUMN=da,wA.EXPAND_COLUMN=dt,wA.SELECTION_ALL=Ka,wA.SELECTION_INVERT=_s,wA.SELECTION_NONE=js,wA.Column=to,wA.ColumnGroup=oi,wA.Summary=gt;var Ld=wA,hp=Ld},96599:function(Jn,kt,ae){"use strict";ae.d(kt,{default:function(){return _e}});var x=ae(59301),dt=ae(92310),Ie=ae.n(dt),Je=ae(2738),ze=ae(29509),Le=ae(78776),Ue=ae(22703),he=ae(12919),xe=ae(48755),oe=ae(36237),Oe=ae(17835),ve=ae(63356),Me=ae(51636),Se=ae(16931);const Te=Re=>{const{paddingXXS:Nt,lineWidth:it,tagPaddingHorizontal:at,componentCls:Bt,calc:Ze}=Re,De=Ze(at).sub(it).equal(),ut=Ze(Nt).sub(it).equal();return{[Bt]:Object.assign(Object.assign({},(0,ve.Wf)(Re)),{display:"inline-block",height:"auto",marginInlineEnd:Re.marginXS,paddingInline:De,fontSize:Re.tagFontSize,lineHeight:Re.tagLineHeight,whiteSpace:"nowrap",background:Re.defaultBg,border:`${(0,oe.unit)(Re.lineWidth)} ${Re.lineType} ${Re.colorBorder}`,borderRadius:Re.borderRadiusSM,opacity:1,transition:`all ${Re.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Bt}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:Re.defaultColor},[`${Bt}-close-icon`]:{marginInlineStart:ut,fontSize:Re.tagIconSize,color:Re.colorTextDescription,cursor:"pointer",transition:`all ${Re.motionDurationMid}`,"&:hover":{color:Re.colorTextHeading}},[`&${Bt}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${Re.iconCls}-close, ${Re.iconCls}-close:hover`]:{color:Re.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Bt}-checkable-checked):hover`]:{color:Re.colorPrimary,backgroundColor:Re.colorFillSecondary},"&:active, &-checked":{color:Re.colorTextLightSolid},"&-checked":{backgroundColor:Re.colorPrimary,"&:hover":{backgroundColor:Re.colorPrimaryHover}},"&:active":{backgroundColor:Re.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${Re.iconCls} + span, > span + ${Re.iconCls}`]:{marginInlineStart:De}}),[`${Bt}-borderless`]:{borderColor:"transparent",background:Re.tagBorderlessBg}}},we=Re=>{const{lineWidth:Nt,fontSizeIcon:it,calc:at}=Re,Bt=Re.fontSizeSM;return(0,Me.mergeToken)(Re,{tagFontSize:Bt,tagLineHeight:(0,oe.unit)(at(Re.lineHeightSM).mul(Bt).equal()),tagIconSize:at(it).sub(at(Nt).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:Re.defaultBg})},Ce=Re=>({defaultBg:new Oe.FastColor(Re.colorFillQuaternary).onBackground(Re.colorBgContainer).toHexString(),defaultColor:Re.colorText});var Ee=(0,Se.I$)("Tag",Re=>{const Nt=we(Re);return Te(Nt)},Ce),ke=function(Re,Nt){var it={};for(var at in Re)Object.prototype.hasOwnProperty.call(Re,at)&&Nt.indexOf(at)<0&&(it[at]=Re[at]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,at=Object.getOwnPropertySymbols(Re);Bt<at.length;Bt++)Nt.indexOf(at[Bt])<0&&Object.prototype.propertyIsEnumerable.call(Re,at[Bt])&&(it[at[Bt]]=Re[at[Bt]]);return it},Qe=x.forwardRef((Re,Nt)=>{const{prefixCls:it,style:at,className:Bt,checked:Ze,onChange:De,onClick:ut}=Re,$t=ke(Re,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:zt,tag:tt}=x.useContext(xe.E_),Ot=En=>{De==null||De(!Ze),ut==null||ut(En)},Rt=zt("tag",it),[fn,Tt,mn]=Ee(Rt),Dt=Ie()(Rt,`${Rt}-checkable`,{[`${Rt}-checkable-checked`]:Ze},tt==null?void 0:tt.className,Bt,Tt,mn);return fn(x.createElement("span",Object.assign({},$t,{ref:Nt,style:Object.assign(Object.assign({},at),tt==null?void 0:tt.style),className:Dt,onClick:Ot})))}),je=ae(93427);const qe=Re=>(0,je.Z)(Re,(Nt,it)=>{let{textColor:at,lightBorderColor:Bt,lightColor:Ze,darkColor:De}=it;return{[`${Re.componentCls}${Re.componentCls}-${Nt}`]:{color:at,background:Ze,borderColor:Bt,"&-inverse":{color:Re.colorTextLightSolid,background:De,borderColor:De},[`&${Re.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Ve=(0,Se.bk)(["Tag","preset"],Re=>{const Nt=we(Re);return qe(Nt)},Ce);function ct(Re){return typeof Re!="string"?Re:Re.charAt(0).toUpperCase()+Re.slice(1)}const ot=(Re,Nt,it)=>{const at=ct(it);return{[`${Re.componentCls}${Re.componentCls}-${Nt}`]:{color:Re[`color${it}`],background:Re[`color${at}Bg`],borderColor:Re[`color${at}Border`],[`&${Re.componentCls}-borderless`]:{borderColor:"transparent"}}}};var pt=(0,Se.bk)(["Tag","status"],Re=>{const Nt=we(Re);return[ot(Nt,"success","Success"),ot(Nt,"processing","Info"),ot(Nt,"error","Error"),ot(Nt,"warning","Warning")]},Ce),bt=function(Re,Nt){var it={};for(var at in Re)Object.prototype.hasOwnProperty.call(Re,at)&&Nt.indexOf(at)<0&&(it[at]=Re[at]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,at=Object.getOwnPropertySymbols(Re);Bt<at.length;Bt++)Nt.indexOf(at[Bt])<0&&Object.prototype.propertyIsEnumerable.call(Re,at[Bt])&&(it[at[Bt]]=Re[at[Bt]]);return it};const ht=x.forwardRef((Re,Nt)=>{const{prefixCls:it,className:at,rootClassName:Bt,style:Ze,children:De,icon:ut,color:$t,onClose:zt,bordered:tt=!0,visible:Ot}=Re,Rt=bt(Re,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:fn,direction:Tt,tag:mn}=x.useContext(xe.E_),[Dt,En]=x.useState(!0),rn=(0,Je.Z)(Rt,["closeIcon","closable"]);x.useEffect(()=>{Ot!==void 0&&En(Ot)},[Ot]);const de=(0,ze.o2)($t),pe=(0,ze.yT)($t),ie=de||pe,ee=Object.assign(Object.assign({backgroundColor:$t&&!ie?$t:void 0},mn==null?void 0:mn.style),Ze),se=fn("tag",it),[le,Be,We]=Ee(se),st=Ie()(se,mn==null?void 0:mn.className,{[`${se}-${$t}`]:ie,[`${se}-has-color`]:$t&&!ie,[`${se}-hidden`]:!Dt,[`${se}-rtl`]:Tt==="rtl",[`${se}-borderless`]:!tt},at,Bt,Be,We),mt=lt=>{lt.stopPropagation(),zt==null||zt(lt),!lt.defaultPrevented&&En(!1)},[,gt]=(0,Le.Z)((0,Le.w)(Re),(0,Le.w)(mn),{closable:!1,closeIconRender:lt=>{const Vt=x.createElement("span",{className:`${se}-close-icon`,onClick:mt},lt);return(0,Ue.wm)(lt,Vt,Zt=>({onClick:gn=>{var sn;(sn=Zt==null?void 0:Zt.onClick)===null||sn===void 0||sn.call(Zt,gn),mt(gn)},className:Ie()(Zt==null?void 0:Zt.className,`${se}-close-icon`)}))}}),Et=typeof Rt.onClick=="function"||De&&De.type==="a",Lt=ut||null,jt=Lt?x.createElement(x.Fragment,null,Lt,De&&x.createElement("span",null,De)):De,Ct=x.createElement("span",Object.assign({},rn,{ref:Nt,className:st,style:ee}),jt,gt,de&&x.createElement(Ve,{key:"preset",prefixCls:se}),pe&&x.createElement(pt,{key:"status",prefixCls:se}));return le(Et?x.createElement(he.Z,{component:"Tag"},Ct):Ct)});ht.CheckableTag=Qe;var _e=ht},18287:function(Jn,kt,ae){"use strict";ae.d(kt,{default:function(){return zt}});var x=ae(3741),dt=ae(94480),Ie=ae(59301),Je=ae(52671),ze=ae(8657),Le=ae(54476),Ue={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"},he=Ue,xe=ae(7657),oe=function(Ot,Rt){return Ie.createElement(xe.Z,(0,Le.Z)({},Ot,{ref:Rt,icon:he}))},Oe=Ie.forwardRef(oe),ve=Oe,Me=ae(92310),Se=ae.n(Me),Te=ae(82661),we=ae(34061),Ce=ae(48755),Ee=ae(56082),ke=ae(86641),Ke=ae(57700),Qe=ae(12425);const je=4;function qe(tt){const{dropPosition:Ot,dropLevelOffset:Rt,prefixCls:fn,indent:Tt,direction:mn="ltr"}=tt,Dt=mn==="ltr"?"left":"right",En=mn==="ltr"?"right":"left",rn={[Dt]:-Rt*Tt+je,[En]:0};switch(Ot){case-1:rn.top=-3;break;case 1:rn.bottom=-3;break;default:rn.bottom=-3,rn[Dt]=Tt+je;break}return Ie.createElement("div",{style:rn,className:`${fn}-drop-indicator`})}var Ve=qe,ct=ae(85278),pt=Ie.forwardRef((tt,Ot)=>{var Rt;const{getPrefixCls:fn,direction:Tt,virtual:mn,tree:Dt}=Ie.useContext(Ce.E_),{prefixCls:En,className:rn,showIcon:de=!1,showLine:pe,switcherIcon:ie,switcherLoadingIcon:ee,blockNode:se=!1,children:le,checkable:Be=!1,selectable:We=!0,draggable:st,motion:mt,style:gt}=tt,Et=fn("tree",En),Lt=fn(),jt=mt!=null?mt:Object.assign(Object.assign({},(0,ke.Z)(Lt)),{motionAppear:!1}),Ct=Object.assign(Object.assign({},tt),{checkable:Be,selectable:We,showIcon:de,motion:jt,blockNode:se,showLine:!!pe,dropIndicatorRender:Ve}),[lt,Vt,Zt]=(0,Qe.ZP)(Et),[,gn]=(0,Ke.ZP)(),sn=gn.paddingXS/2+(((Rt=gn.Tree)===null||Rt===void 0?void 0:Rt.titleHeight)||gn.controlHeightSM),en=Ie.useMemo(()=>{if(!st)return!1;let Fn={};switch(typeof st){case"function":Fn.nodeDraggable=st;break;case"object":Fn=Object.assign({},st);break;default:break}return Fn.icon!==!1&&(Fn.icon=Fn.icon||Ie.createElement(Ee.Z,null)),Fn},[st]),zn=Fn=>Ie.createElement(ct.Z,{prefixCls:Et,switcherIcon:ie,switcherLoadingIcon:ee,treeNodeProps:Fn,showLine:pe});return lt(Ie.createElement(x.ZP,Object.assign({itemHeight:sn,ref:Ot,virtual:mn},Ct,{style:Object.assign(Object.assign({},Dt==null?void 0:Dt.style),gt),prefixCls:Et,className:Se()({[`${Et}-icon-hide`]:!de,[`${Et}-block-node`]:se,[`${Et}-unselectable`]:!We,[`${Et}-rtl`]:Tt==="rtl"},Dt==null?void 0:Dt.className,rn,Vt,Zt),direction:Tt,checkable:Be&&Ie.createElement("span",{className:`${Et}-checkbox-inner`}),selectable:We,switcherIcon:zn,draggable:en}),le))});const bt=0,He=1,ht=2;function _e(tt,Ot,Rt){const{key:fn,children:Tt}=Rt;function mn(Dt){const En=Dt[fn],rn=Dt[Tt];Ot(En,Dt)!==!1&&_e(rn||[],Ot,Rt)}tt.forEach(mn)}function Re(tt){let{treeData:Ot,expandedKeys:Rt,startKey:fn,endKey:Tt,fieldNames:mn}=tt;const Dt=[];let En=bt;if(fn&&fn===Tt)return[fn];if(!fn||!Tt)return[];function rn(de){return de===fn||de===Tt}return _e(Ot,de=>{if(En===ht)return!1;if(rn(de)){if(Dt.push(de),En===bt)En=He;else if(En===He)return En=ht,!1}else En===He&&Dt.push(de);return Rt.includes(de)},(0,we.w$)(mn)),Dt}function Nt(tt,Ot,Rt){const fn=(0,dt.Z)(Ot),Tt=[];return _e(tt,(mn,Dt)=>{const En=fn.indexOf(mn);return En!==-1&&(Tt.push(Dt),fn.splice(En,1)),!!fn.length},(0,we.w$)(Rt)),Tt}var it=function(tt,Ot){var Rt={};for(var fn in tt)Object.prototype.hasOwnProperty.call(tt,fn)&&Ot.indexOf(fn)<0&&(Rt[fn]=tt[fn]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,fn=Object.getOwnPropertySymbols(tt);Tt<fn.length;Tt++)Ot.indexOf(fn[Tt])<0&&Object.prototype.propertyIsEnumerable.call(tt,fn[Tt])&&(Rt[fn[Tt]]=tt[fn[Tt]]);return Rt};function at(tt){const{isLeaf:Ot,expanded:Rt}=tt;return Ot?Ie.createElement(Je.Z,null):Rt?Ie.createElement(ze.Z,null):Ie.createElement(ve,null)}function Bt(tt){let{treeData:Ot,children:Rt}=tt;return Ot||(0,we.zn)(Rt)}const Ze=(tt,Ot)=>{var{defaultExpandAll:Rt,defaultExpandParent:fn,defaultExpandedKeys:Tt}=tt,mn=it(tt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Dt=Ie.useRef(null),En=Ie.useRef(null),rn=()=>{const{keyEntities:lt}=(0,we.I8)(Bt(mn));let Vt;return Rt?Vt=Object.keys(lt):fn?Vt=(0,Te.r7)(mn.expandedKeys||Tt||[],lt):Vt=mn.expandedKeys||Tt||[],Vt},[de,pe]=Ie.useState(mn.selectedKeys||mn.defaultSelectedKeys||[]),[ie,ee]=Ie.useState(()=>rn());Ie.useEffect(()=>{"selectedKeys"in mn&&pe(mn.selectedKeys)},[mn.selectedKeys]),Ie.useEffect(()=>{"expandedKeys"in mn&&ee(mn.expandedKeys)},[mn.expandedKeys]);const se=(lt,Vt)=>{var Zt;return"expandedKeys"in mn||ee(lt),(Zt=mn.onExpand)===null||Zt===void 0?void 0:Zt.call(mn,lt,Vt)},le=(lt,Vt)=>{var Zt;const{multiple:gn,fieldNames:sn}=mn,{node:en,nativeEvent:zn}=Vt,{key:Fn=""}=en,Ut=Bt(mn),an=Object.assign(Object.assign({},Vt),{selected:!0}),_n=(zn==null?void 0:zn.ctrlKey)||(zn==null?void 0:zn.metaKey),Vn=zn==null?void 0:zn.shiftKey;let It;gn&&_n?(It=lt,Dt.current=Fn,En.current=It,an.selectedNodes=Nt(Ut,It,sn)):gn&&Vn?(It=Array.from(new Set([].concat((0,dt.Z)(En.current||[]),(0,dt.Z)(Re({treeData:Ut,expandedKeys:ie,startKey:Fn,endKey:Dt.current,fieldNames:sn}))))),an.selectedNodes=Nt(Ut,It,sn)):(It=[Fn],Dt.current=Fn,En.current=It,an.selectedNodes=Nt(Ut,It,sn)),(Zt=mn.onSelect)===null||Zt===void 0||Zt.call(mn,It,an),"selectedKeys"in mn||pe(It)},{getPrefixCls:Be,direction:We}=Ie.useContext(Ce.E_),{prefixCls:st,className:mt,showIcon:gt=!0,expandAction:Et="click"}=mn,Lt=it(mn,["prefixCls","className","showIcon","expandAction"]),jt=Be("tree",st),Ct=Se()(`${jt}-directory`,{[`${jt}-directory-rtl`]:We==="rtl"},mt);return Ie.createElement(pt,Object.assign({icon:at,ref:Ot,blockNode:!0},Lt,{showIcon:gt,expandAction:Et,prefixCls:jt,className:Ct,expandedKeys:ie,selectedKeys:de,onSelect:le,onExpand:se}))};var ut=Ie.forwardRef(Ze);const $t=pt;$t.DirectoryTree=ut,$t.TreeNode=x.OF;var zt=$t},12425:function(Jn,kt,ae){"use strict";ae.d(kt,{ZP:function(){return Te},Yk:function(){return ve},TM:function(){return Me}});var x=ae(36237),dt=ae(36170),Ie=ae(63356),Je=ae(34961),ze=ae(51636),Le=ae(16931);const Ue=we=>{let{treeCls:Ce,treeNodeCls:Ee,directoryNodeSelectedBg:ke,directoryNodeSelectedColor:Ke,motionDurationMid:Qe,borderRadius:je,controlItemBgHover:qe}=we;return{[`${Ce}${Ce}-directory ${Ee}`]:{[`${Ce}-node-content-wrapper`]:{position:"static",[`> *:not(${Ce}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${Qe}`,content:'""',borderRadius:je},"&:hover:before":{background:qe}},[`${Ce}-switcher, ${Ce}-checkbox, ${Ce}-draggable-icon`]:{zIndex:1},"&-selected":{[`${Ce}-switcher, ${Ce}-draggable-icon`]:{color:Ke},[`${Ce}-node-content-wrapper`]:{color:Ke,background:"transparent","&:before, &:hover:before":{background:ke}}}}}},he=new x.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),xe=(we,Ce)=>({[`.${we}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Ce.motionDurationSlow}`}}}),oe=(we,Ce)=>({[`.${we}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Ce.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,x.unit)(Ce.lineWidthBold)} solid ${Ce.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Oe=(we,Ce)=>{const{treeCls:Ee,treeNodeCls:ke,treeNodePadding:Ke,titleHeight:Qe,indentSize:je,nodeSelectedBg:qe,nodeHoverBg:Ve,colorTextQuaternary:ct,controlItemBgActiveDisabled:ot}=Ce;return{[Ee]:Object.assign(Object.assign({},(0,Ie.Wf)(Ce)),{background:Ce.colorBgContainer,borderRadius:Ce.borderRadius,transition:`background-color ${Ce.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${Ee}-rtl ${Ee}-switcher_close ${Ee}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${Ee}-active-focused)`]:Object.assign({},(0,Ie.oN)(Ce)),[`${Ee}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Ee}-block-node`]:{[`${Ee}-list-holder-inner`]:{alignItems:"stretch",[`${Ee}-node-content-wrapper`]:{flex:"auto"},[`${ke}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${Ce.colorPrimary}`,opacity:0,animationName:he,animationDuration:Ce.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:Ce.borderRadius}}},[ke]:{display:"flex",alignItems:"flex-start",marginBottom:Ke,lineHeight:(0,x.unit)(Qe),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:Ke},[`&-disabled ${Ee}-node-content-wrapper`]:{color:Ce.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${Ee}-checkbox-disabled + ${Ee}-node-selected,&${ke}-disabled${ke}-selected ${Ee}-node-content-wrapper`]:{backgroundColor:ot},[`${Ee}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${ke}-disabled)`]:{[`${Ee}-node-content-wrapper`]:{"&:hover":{color:Ce.nodeHoverColor}}},[`&-active ${Ee}-node-content-wrapper`]:{background:Ce.controlItemBgHover},[`&:not(${ke}-disabled).filter-node ${Ee}-title`]:{color:Ce.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${Ee}-draggable-icon`]:{flexShrink:0,width:Qe,textAlign:"center",visibility:"visible",color:ct},[`&${ke}-disabled ${Ee}-draggable-icon`]:{visibility:"hidden"}}},[`${Ee}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:je}},[`${Ee}-draggable-icon`]:{visibility:"hidden"},[`${Ee}-switcher, ${Ee}-checkbox`]:{marginInlineEnd:Ce.calc(Ce.calc(Qe).sub(Ce.controlInteractiveSize)).div(2).equal()},[`${Ee}-switcher`]:Object.assign(Object.assign({},xe(we,Ce)),{position:"relative",flex:"none",alignSelf:"stretch",width:Qe,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${Ce.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:Qe,height:Qe,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:Ce.borderRadius,transition:`all ${Ce.motionDurationSlow}`},[`&:not(${Ee}-switcher-noop):hover:before`]:{backgroundColor:Ce.colorBgTextHover},[`&_close ${Ee}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:Ce.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Ce.calc(Qe).div(2).equal(),bottom:Ce.calc(Ke).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${Ce.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Ce.calc(Ce.calc(Qe).div(2).equal()).mul(.8).equal(),height:Ce.calc(Qe).div(2).equal(),borderBottom:`1px solid ${Ce.colorBorder}`,content:'""'}}}),[`${Ee}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:Qe,paddingBlock:0,paddingInline:Ce.paddingXS,background:"transparent",borderRadius:Ce.borderRadius,cursor:"pointer",transition:`all ${Ce.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},oe(we,Ce)),{"&:hover":{backgroundColor:Ve},[`&${Ee}-node-selected`]:{color:Ce.nodeSelectedColor,backgroundColor:qe},[`${Ee}-iconEle`]:{display:"inline-block",width:Qe,height:Qe,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${Ee}-unselectable ${Ee}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${ke}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${Ce.colorPrimary}`},"&-show-line":{[`${Ee}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Ce.calc(Qe).div(2).equal(),bottom:Ce.calc(Ke).mul(-1).equal(),borderInlineEnd:`1px solid ${Ce.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${Ee}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ke}-leaf-last ${Ee}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,x.unit)(Ce.calc(Qe).div(2).equal())} !important`}})}},ve=function(we,Ce){let Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const ke=`.${we}`,Ke=`${ke}-treenode`,Qe=Ce.calc(Ce.paddingXS).div(2).equal(),je=(0,ze.mergeToken)(Ce,{treeCls:ke,treeNodeCls:Ke,treeNodePadding:Qe});return[Oe(we,je),Ee&&Ue(je)].filter(Boolean)},Me=we=>{const{controlHeightSM:Ce,controlItemBgHover:Ee,controlItemBgActive:ke}=we,Ke=Ce;return{titleHeight:Ke,indentSize:Ke,nodeHoverBg:Ee,nodeHoverColor:we.colorText,nodeSelectedBg:ke,nodeSelectedColor:we.colorText}},Se=we=>{const{colorTextLightSolid:Ce,colorPrimary:Ee}=we;return Object.assign(Object.assign({},Me(we)),{directoryNodeSelectedColor:Ce,directoryNodeSelectedBg:Ee})};var Te=(0,Le.I$)("Tree",(we,Ce)=>{let{prefixCls:Ee}=Ce;return[{[we.componentCls]:(0,dt.C2)(`${Ee}-checkbox`,we)},ve(Ee,we),(0,Je.Z)(we)]},Se)},85278:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return Ce}});var x=ae(59301),dt=ae(54476),Ie={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"},Je=Ie,ze=ae(7657),Le=function(ke,Ke){return x.createElement(ze.Z,(0,dt.Z)({},ke,{ref:Ke,icon:Je}))},Ue=x.forwardRef(Le),he=Ue,xe=ae(52671),oe=ae(58617),Oe=ae(15075),ve=ae(43531),Me=ae(92310),Se=ae.n(Me),Te=ae(22703),Ce=Ee=>{const{prefixCls:ke,switcherIcon:Ke,treeNodeProps:Qe,showLine:je,switcherLoadingIcon:qe}=Ee,{isLeaf:Ve,expanded:ct,loading:ot}=Qe;if(ot)return x.isValidElement(qe)?qe:x.createElement(oe.Z,{className:`${ke}-switcher-loading-icon`});let pt;if(je&&typeof je=="object"&&(pt=je.showLeafIcon),Ve){if(!je)return null;if(typeof pt!="boolean"&&pt){const ht=typeof pt=="function"?pt(Qe):pt,_e=`${ke}-switcher-line-custom-icon`;return x.isValidElement(ht)?(0,Te.Tm)(ht,{className:Se()(ht.props.className||"",_e)}):ht}return pt?x.createElement(xe.Z,{className:`${ke}-switcher-line-icon`}):x.createElement("span",{className:`${ke}-switcher-leaf-line`})}const bt=`${ke}-switcher-icon`,He=typeof Ke=="function"?Ke(Qe):Ke;return x.isValidElement(He)?(0,Te.Tm)(He,{className:Se()(He.props.className||"",bt)}):He!==void 0?He:je?ct?x.createElement(Oe.Z,{className:`${ke}-switcher-line-icon`}):x.createElement(ve.Z,{className:`${ke}-switcher-line-icon`}):x.createElement(he,{className:bt})}},86251:function(Jn,kt){"use strict";kt.byteLength=Ue,kt.toByteArray=xe,kt.fromByteArray=ve;for(var ae=[],x=[],dt=typeof Uint8Array!="undefined"?Uint8Array:Array,Ie="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Je=0,ze=Ie.length;Je<ze;++Je)ae[Je]=Ie[Je],x[Ie.charCodeAt(Je)]=Je;x[45]=62,x[95]=63;function Le(Me){var Se=Me.length;if(Se%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Te=Me.indexOf("=");Te===-1&&(Te=Se);var we=Te===Se?0:4-Te%4;return[Te,we]}function Ue(Me){var Se=Le(Me),Te=Se[0],we=Se[1];return(Te+we)*3/4-we}function he(Me,Se,Te){return(Se+Te)*3/4-Te}function xe(Me){var Se,Te=Le(Me),we=Te[0],Ce=Te[1],Ee=new dt(he(Me,we,Ce)),ke=0,Ke=Ce>0?we-4:we,Qe;for(Qe=0;Qe<Ke;Qe+=4)Se=x[Me.charCodeAt(Qe)]<<18|x[Me.charCodeAt(Qe+1)]<<12|x[Me.charCodeAt(Qe+2)]<<6|x[Me.charCodeAt(Qe+3)],Ee[ke++]=Se>>16&255,Ee[ke++]=Se>>8&255,Ee[ke++]=Se&255;return Ce===2&&(Se=x[Me.charCodeAt(Qe)]<<2|x[Me.charCodeAt(Qe+1)]>>4,Ee[ke++]=Se&255),Ce===1&&(Se=x[Me.charCodeAt(Qe)]<<10|x[Me.charCodeAt(Qe+1)]<<4|x[Me.charCodeAt(Qe+2)]>>2,Ee[ke++]=Se>>8&255,Ee[ke++]=Se&255),Ee}function oe(Me){return ae[Me>>18&63]+ae[Me>>12&63]+ae[Me>>6&63]+ae[Me&63]}function Oe(Me,Se,Te){for(var we,Ce=[],Ee=Se;Ee<Te;Ee+=3)we=(Me[Ee]<<16&16711680)+(Me[Ee+1]<<8&65280)+(Me[Ee+2]&255),Ce.push(oe(we));return Ce.join("")}function ve(Me){for(var Se,Te=Me.length,we=Te%3,Ce=[],Ee=16383,ke=0,Ke=Te-we;ke<Ke;ke+=Ee)Ce.push(Oe(Me,ke,ke+Ee>Ke?Ke:ke+Ee));return we===1?(Se=Me[Te-1],Ce.push(ae[Se>>2]+ae[Se<<4&63]+"==")):we===2&&(Se=(Me[Te-2]<<8)+Me[Te-1],Ce.push(ae[Se>>10]+ae[Se>>4&63]+ae[Se<<2&63]+"=")),Ce.join("")}},19208:function(Jn,kt,ae){"use strict";var x;var dt=ae(86251),Ie=ae(67467),Je=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;kt.lW=he,x=ke,kt.h2=50;var ze=2147483647;x=ze,he.TYPED_ARRAY_SUPPORT=Le(),!he.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 Le(){try{var ie=new Uint8Array(1),ee={foo:function(){return 42}};return Object.setPrototypeOf(ee,Uint8Array.prototype),Object.setPrototypeOf(ie,ee),ie.foo()===42}catch(se){return!1}}Object.defineProperty(he.prototype,"parent",{enumerable:!0,get:function(){if(he.isBuffer(this))return this.buffer}}),Object.defineProperty(he.prototype,"offset",{enumerable:!0,get:function(){if(he.isBuffer(this))return this.byteOffset}});function Ue(ie){if(ie>ze)throw new RangeError('The value "'+ie+'" is invalid for option "size"');var ee=new Uint8Array(ie);return Object.setPrototypeOf(ee,he.prototype),ee}function he(ie,ee,se){if(typeof ie=="number"){if(typeof ee=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ve(ie)}return xe(ie,ee,se)}he.poolSize=8192;function xe(ie,ee,se){if(typeof ie=="string")return Me(ie,ee);if(ArrayBuffer.isView(ie))return Te(ie);if(ie==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ie);if(rn(ie,ArrayBuffer)||ie&&rn(ie.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(rn(ie,SharedArrayBuffer)||ie&&rn(ie.buffer,SharedArrayBuffer)))return we(ie,ee,se);if(typeof ie=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var le=ie.valueOf&&ie.valueOf();if(le!=null&&le!==ie)return he.from(le,ee,se);var Be=Ce(ie);if(Be)return Be;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof ie[Symbol.toPrimitive]=="function")return he.from(ie[Symbol.toPrimitive]("string"),ee,se);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ie)}he.from=function(ie,ee,se){return xe(ie,ee,se)},Object.setPrototypeOf(he.prototype,Uint8Array.prototype),Object.setPrototypeOf(he,Uint8Array);function oe(ie){if(typeof ie!="number")throw new TypeError('"size" argument must be of type number');if(ie<0)throw new RangeError('The value "'+ie+'" is invalid for option "size"')}function Oe(ie,ee,se){return oe(ie),ie<=0?Ue(ie):ee!==void 0?typeof se=="string"?Ue(ie).fill(ee,se):Ue(ie).fill(ee):Ue(ie)}he.alloc=function(ie,ee,se){return Oe(ie,ee,se)};function ve(ie){return oe(ie),Ue(ie<0?0:Ee(ie)|0)}he.allocUnsafe=function(ie){return ve(ie)},he.allocUnsafeSlow=function(ie){return ve(ie)};function Me(ie,ee){if((typeof ee!="string"||ee==="")&&(ee="utf8"),!he.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee);var se=Ke(ie,ee)|0,le=Ue(se),Be=le.write(ie,ee);return Be!==se&&(le=le.slice(0,Be)),le}function Se(ie){for(var ee=ie.length<0?0:Ee(ie.length)|0,se=Ue(ee),le=0;le<ee;le+=1)se[le]=ie[le]&255;return se}function Te(ie){if(rn(ie,Uint8Array)){var ee=new Uint8Array(ie);return we(ee.buffer,ee.byteOffset,ee.byteLength)}return Se(ie)}function we(ie,ee,se){if(ee<0||ie.byteLength<ee)throw new RangeError('"offset" is outside of buffer bounds');if(ie.byteLength<ee+(se||0))throw new RangeError('"length" is outside of buffer bounds');var le;return ee===void 0&&se===void 0?le=new Uint8Array(ie):se===void 0?le=new Uint8Array(ie,ee):le=new Uint8Array(ie,ee,se),Object.setPrototypeOf(le,he.prototype),le}function Ce(ie){if(he.isBuffer(ie)){var ee=Ee(ie.length)|0,se=Ue(ee);return se.length===0||ie.copy(se,0,0,ee),se}if(ie.length!==void 0)return typeof ie.length!="number"||de(ie.length)?Ue(0):Se(ie);if(ie.type==="Buffer"&&Array.isArray(ie.data))return Se(ie.data)}function Ee(ie){if(ie>=ze)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ze.toString(16)+" bytes");return ie|0}function ke(ie){return+ie!=ie&&(ie=0),he.alloc(+ie)}he.isBuffer=function(ee){return ee!=null&&ee._isBuffer===!0&&ee!==he.prototype},he.compare=function(ee,se){if(rn(ee,Uint8Array)&&(ee=he.from(ee,ee.offset,ee.byteLength)),rn(se,Uint8Array)&&(se=he.from(se,se.offset,se.byteLength)),!he.isBuffer(ee)||!he.isBuffer(se))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ee===se)return 0;for(var le=ee.length,Be=se.length,We=0,st=Math.min(le,Be);We<st;++We)if(ee[We]!==se[We]){le=ee[We],Be=se[We];break}return le<Be?-1:Be<le?1:0},he.isEncoding=function(ee){switch(String(ee).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}},he.concat=function(ee,se){if(!Array.isArray(ee))throw new TypeError('"list" argument must be an Array of Buffers');if(ee.length===0)return he.alloc(0);var le;if(se===void 0)for(se=0,le=0;le<ee.length;++le)se+=ee[le].length;var Be=he.allocUnsafe(se),We=0;for(le=0;le<ee.length;++le){var st=ee[le];if(rn(st,Uint8Array))We+st.length>Be.length?he.from(st).copy(Be,We):Uint8Array.prototype.set.call(Be,st,We);else if(he.isBuffer(st))st.copy(Be,We);else throw new TypeError('"list" argument must be an Array of Buffers');We+=st.length}return Be};function Ke(ie,ee){if(he.isBuffer(ie))return ie.length;if(ArrayBuffer.isView(ie)||rn(ie,ArrayBuffer))return ie.byteLength;if(typeof ie!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ie);var se=ie.length,le=arguments.length>2&&arguments[2]===!0;if(!le&&se===0)return 0;for(var Be=!1;;)switch(ee){case"ascii":case"latin1":case"binary":return se;case"utf8":case"utf-8":return fn(ie).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se*2;case"hex":return se>>>1;case"base64":return Dt(ie).length;default:if(Be)return le?-1:fn(ie).length;ee=(""+ee).toLowerCase(),Be=!0}}he.byteLength=Ke;function Qe(ie,ee,se){var le=!1;if((ee===void 0||ee<0)&&(ee=0),ee>this.length||((se===void 0||se>this.length)&&(se=this.length),se<=0)||(se>>>=0,ee>>>=0,se<=ee))return"";for(ie||(ie="utf8");;)switch(ie){case"hex":return Bt(this,ee,se);case"utf8":case"utf-8":return _e(this,ee,se);case"ascii":return it(this,ee,se);case"latin1":case"binary":return at(this,ee,se);case"base64":return ht(this,ee,se);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,ee,se);default:if(le)throw new TypeError("Unknown encoding: "+ie);ie=(ie+"").toLowerCase(),le=!0}}he.prototype._isBuffer=!0;function je(ie,ee,se){var le=ie[ee];ie[ee]=ie[se],ie[se]=le}he.prototype.swap16=function(){var ee=this.length;if(ee%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var se=0;se<ee;se+=2)je(this,se,se+1);return this},he.prototype.swap32=function(){var ee=this.length;if(ee%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var se=0;se<ee;se+=4)je(this,se,se+3),je(this,se+1,se+2);return this},he.prototype.swap64=function(){var ee=this.length;if(ee%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var se=0;se<ee;se+=8)je(this,se,se+7),je(this,se+1,se+6),je(this,se+2,se+5),je(this,se+3,se+4);return this},he.prototype.toString=function(){var ee=this.length;return ee===0?"":arguments.length===0?_e(this,0,ee):Qe.apply(this,arguments)},he.prototype.toLocaleString=he.prototype.toString,he.prototype.equals=function(ee){if(!he.isBuffer(ee))throw new TypeError("Argument must be a Buffer");return this===ee?!0:he.compare(this,ee)===0},he.prototype.inspect=function(){var ee="",se=kt.h2;return ee=this.toString("hex",0,se).replace(/(.{2})/g,"$1 ").trim(),this.length>se&&(ee+=" ... "),"<Buffer "+ee+">"},Je&&(he.prototype[Je]=he.prototype.inspect),he.prototype.compare=function(ee,se,le,Be,We){if(rn(ee,Uint8Array)&&(ee=he.from(ee,ee.offset,ee.byteLength)),!he.isBuffer(ee))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ee);if(se===void 0&&(se=0),le===void 0&&(le=ee?ee.length:0),Be===void 0&&(Be=0),We===void 0&&(We=this.length),se<0||le>ee.length||Be<0||We>this.length)throw new RangeError("out of range index");if(Be>=We&&se>=le)return 0;if(Be>=We)return-1;if(se>=le)return 1;if(se>>>=0,le>>>=0,Be>>>=0,We>>>=0,this===ee)return 0;for(var st=We-Be,mt=le-se,gt=Math.min(st,mt),Et=this.slice(Be,We),Lt=ee.slice(se,le),jt=0;jt<gt;++jt)if(Et[jt]!==Lt[jt]){st=Et[jt],mt=Lt[jt];break}return st<mt?-1:mt<st?1:0};function qe(ie,ee,se,le,Be){if(ie.length===0)return-1;if(typeof se=="string"?(le=se,se=0):se>2147483647?se=2147483647:se<-2147483648&&(se=-2147483648),se=+se,de(se)&&(se=Be?0:ie.length-1),se<0&&(se=ie.length+se),se>=ie.length){if(Be)return-1;se=ie.length-1}else if(se<0)if(Be)se=0;else return-1;if(typeof ee=="string"&&(ee=he.from(ee,le)),he.isBuffer(ee))return ee.length===0?-1:Ve(ie,ee,se,le,Be);if(typeof ee=="number")return ee=ee&255,typeof Uint8Array.prototype.indexOf=="function"?Be?Uint8Array.prototype.indexOf.call(ie,ee,se):Uint8Array.prototype.lastIndexOf.call(ie,ee,se):Ve(ie,[ee],se,le,Be);throw new TypeError("val must be string, number or Buffer")}function Ve(ie,ee,se,le,Be){var We=1,st=ie.length,mt=ee.length;if(le!==void 0&&(le=String(le).toLowerCase(),le==="ucs2"||le==="ucs-2"||le==="utf16le"||le==="utf-16le")){if(ie.length<2||ee.length<2)return-1;We=2,st/=2,mt/=2,se/=2}function gt(lt,Vt){return We===1?lt[Vt]:lt.readUInt16BE(Vt*We)}var Et;if(Be){var Lt=-1;for(Et=se;Et<st;Et++)if(gt(ie,Et)===gt(ee,Lt===-1?0:Et-Lt)){if(Lt===-1&&(Lt=Et),Et-Lt+1===mt)return Lt*We}else Lt!==-1&&(Et-=Et-Lt),Lt=-1}else for(se+mt>st&&(se=st-mt),Et=se;Et>=0;Et--){for(var jt=!0,Ct=0;Ct<mt;Ct++)if(gt(ie,Et+Ct)!==gt(ee,Ct)){jt=!1;break}if(jt)return Et}return-1}he.prototype.includes=function(ee,se,le){return this.indexOf(ee,se,le)!==-1},he.prototype.indexOf=function(ee,se,le){return qe(this,ee,se,le,!0)},he.prototype.lastIndexOf=function(ee,se,le){return qe(this,ee,se,le,!1)};function ct(ie,ee,se,le){se=Number(se)||0;var Be=ie.length-se;le?(le=Number(le),le>Be&&(le=Be)):le=Be;var We=ee.length;le>We/2&&(le=We/2);for(var st=0;st<le;++st){var mt=parseInt(ee.substr(st*2,2),16);if(de(mt))return st;ie[se+st]=mt}return st}function ot(ie,ee,se,le){return En(fn(ee,ie.length-se),ie,se,le)}function pt(ie,ee,se,le){return En(Tt(ee),ie,se,le)}function bt(ie,ee,se,le){return En(Dt(ee),ie,se,le)}function He(ie,ee,se,le){return En(mn(ee,ie.length-se),ie,se,le)}he.prototype.write=function(ee,se,le,Be){if(se===void 0)Be="utf8",le=this.length,se=0;else if(le===void 0&&typeof se=="string")Be=se,le=this.length,se=0;else if(isFinite(se))se=se>>>0,isFinite(le)?(le=le>>>0,Be===void 0&&(Be="utf8")):(Be=le,le=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var We=this.length-se;if((le===void 0||le>We)&&(le=We),ee.length>0&&(le<0||se<0)||se>this.length)throw new RangeError("Attempt to write outside buffer bounds");Be||(Be="utf8");for(var st=!1;;)switch(Be){case"hex":return ct(this,ee,se,le);case"utf8":case"utf-8":return ot(this,ee,se,le);case"ascii":case"latin1":case"binary":return pt(this,ee,se,le);case"base64":return bt(this,ee,se,le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return He(this,ee,se,le);default:if(st)throw new TypeError("Unknown encoding: "+Be);Be=(""+Be).toLowerCase(),st=!0}},he.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ht(ie,ee,se){return ee===0&&se===ie.length?dt.fromByteArray(ie):dt.fromByteArray(ie.slice(ee,se))}function _e(ie,ee,se){se=Math.min(ie.length,se);for(var le=[],Be=ee;Be<se;){var We=ie[Be],st=null,mt=We>239?4:We>223?3:We>191?2:1;if(Be+mt<=se){var gt,Et,Lt,jt;switch(mt){case 1:We<128&&(st=We);break;case 2:gt=ie[Be+1],(gt&192)===128&&(jt=(We&31)<<6|gt&63,jt>127&&(st=jt));break;case 3:gt=ie[Be+1],Et=ie[Be+2],(gt&192)===128&&(Et&192)===128&&(jt=(We&15)<<12|(gt&63)<<6|Et&63,jt>2047&&(jt<55296||jt>57343)&&(st=jt));break;case 4:gt=ie[Be+1],Et=ie[Be+2],Lt=ie[Be+3],(gt&192)===128&&(Et&192)===128&&(Lt&192)===128&&(jt=(We&15)<<18|(gt&63)<<12|(Et&63)<<6|Lt&63,jt>65535&&jt<1114112&&(st=jt))}}st===null?(st=65533,mt=1):st>65535&&(st-=65536,le.push(st>>>10&1023|55296),st=56320|st&1023),le.push(st),Be+=mt}return Nt(le)}var Re=4096;function Nt(ie){var ee=ie.length;if(ee<=Re)return String.fromCharCode.apply(String,ie);for(var se="",le=0;le<ee;)se+=String.fromCharCode.apply(String,ie.slice(le,le+=Re));return se}function it(ie,ee,se){var le="";se=Math.min(ie.length,se);for(var Be=ee;Be<se;++Be)le+=String.fromCharCode(ie[Be]&127);return le}function at(ie,ee,se){var le="";se=Math.min(ie.length,se);for(var Be=ee;Be<se;++Be)le+=String.fromCharCode(ie[Be]);return le}function Bt(ie,ee,se){var le=ie.length;(!ee||ee<0)&&(ee=0),(!se||se<0||se>le)&&(se=le);for(var Be="",We=ee;We<se;++We)Be+=pe[ie[We]];return Be}function Ze(ie,ee,se){for(var le=ie.slice(ee,se),Be="",We=0;We<le.length-1;We+=2)Be+=String.fromCharCode(le[We]+le[We+1]*256);return Be}he.prototype.slice=function(ee,se){var le=this.length;ee=~~ee,se=se===void 0?le:~~se,ee<0?(ee+=le,ee<0&&(ee=0)):ee>le&&(ee=le),se<0?(se+=le,se<0&&(se=0)):se>le&&(se=le),se<ee&&(se=ee);var Be=this.subarray(ee,se);return Object.setPrototypeOf(Be,he.prototype),Be};function De(ie,ee,se){if(ie%1!==0||ie<0)throw new RangeError("offset is not uint");if(ie+ee>se)throw new RangeError("Trying to access beyond buffer length")}he.prototype.readUintLE=he.prototype.readUIntLE=function(ee,se,le){ee=ee>>>0,se=se>>>0,le||De(ee,se,this.length);for(var Be=this[ee],We=1,st=0;++st<se&&(We*=256);)Be+=this[ee+st]*We;return Be},he.prototype.readUintBE=he.prototype.readUIntBE=function(ee,se,le){ee=ee>>>0,se=se>>>0,le||De(ee,se,this.length);for(var Be=this[ee+--se],We=1;se>0&&(We*=256);)Be+=this[ee+--se]*We;return Be},he.prototype.readUint8=he.prototype.readUInt8=function(ee,se){return ee=ee>>>0,se||De(ee,1,this.length),this[ee]},he.prototype.readUint16LE=he.prototype.readUInt16LE=function(ee,se){return ee=ee>>>0,se||De(ee,2,this.length),this[ee]|this[ee+1]<<8},he.prototype.readUint16BE=he.prototype.readUInt16BE=function(ee,se){return ee=ee>>>0,se||De(ee,2,this.length),this[ee]<<8|this[ee+1]},he.prototype.readUint32LE=he.prototype.readUInt32LE=function(ee,se){return ee=ee>>>0,se||De(ee,4,this.length),(this[ee]|this[ee+1]<<8|this[ee+2]<<16)+this[ee+3]*16777216},he.prototype.readUint32BE=he.prototype.readUInt32BE=function(ee,se){return ee=ee>>>0,se||De(ee,4,this.length),this[ee]*16777216+(this[ee+1]<<16|this[ee+2]<<8|this[ee+3])},he.prototype.readIntLE=function(ee,se,le){ee=ee>>>0,se=se>>>0,le||De(ee,se,this.length);for(var Be=this[ee],We=1,st=0;++st<se&&(We*=256);)Be+=this[ee+st]*We;return We*=128,Be>=We&&(Be-=Math.pow(2,8*se)),Be},he.prototype.readIntBE=function(ee,se,le){ee=ee>>>0,se=se>>>0,le||De(ee,se,this.length);for(var Be=se,We=1,st=this[ee+--Be];Be>0&&(We*=256);)st+=this[ee+--Be]*We;return We*=128,st>=We&&(st-=Math.pow(2,8*se)),st},he.prototype.readInt8=function(ee,se){return ee=ee>>>0,se||De(ee,1,this.length),this[ee]&128?(255-this[ee]+1)*-1:this[ee]},he.prototype.readInt16LE=function(ee,se){ee=ee>>>0,se||De(ee,2,this.length);var le=this[ee]|this[ee+1]<<8;return le&32768?le|4294901760:le},he.prototype.readInt16BE=function(ee,se){ee=ee>>>0,se||De(ee,2,this.length);var le=this[ee+1]|this[ee]<<8;return le&32768?le|4294901760:le},he.prototype.readInt32LE=function(ee,se){return ee=ee>>>0,se||De(ee,4,this.length),this[ee]|this[ee+1]<<8|this[ee+2]<<16|this[ee+3]<<24},he.prototype.readInt32BE=function(ee,se){return ee=ee>>>0,se||De(ee,4,this.length),this[ee]<<24|this[ee+1]<<16|this[ee+2]<<8|this[ee+3]},he.prototype.readFloatLE=function(ee,se){return ee=ee>>>0,se||De(ee,4,this.length),Ie.read(this,ee,!0,23,4)},he.prototype.readFloatBE=function(ee,se){return ee=ee>>>0,se||De(ee,4,this.length),Ie.read(this,ee,!1,23,4)},he.prototype.readDoubleLE=function(ee,se){return ee=ee>>>0,se||De(ee,8,this.length),Ie.read(this,ee,!0,52,8)},he.prototype.readDoubleBE=function(ee,se){return ee=ee>>>0,se||De(ee,8,this.length),Ie.read(this,ee,!1,52,8)};function ut(ie,ee,se,le,Be,We){if(!he.isBuffer(ie))throw new TypeError('"buffer" argument must be a Buffer instance');if(ee>Be||ee<We)throw new RangeError('"value" argument is out of bounds');if(se+le>ie.length)throw new RangeError("Index out of range")}he.prototype.writeUintLE=he.prototype.writeUIntLE=function(ee,se,le,Be){if(ee=+ee,se=se>>>0,le=le>>>0,!Be){var We=Math.pow(2,8*le)-1;ut(this,ee,se,le,We,0)}var st=1,mt=0;for(this[se]=ee&255;++mt<le&&(st*=256);)this[se+mt]=ee/st&255;return se+le},he.prototype.writeUintBE=he.prototype.writeUIntBE=function(ee,se,le,Be){if(ee=+ee,se=se>>>0,le=le>>>0,!Be){var We=Math.pow(2,8*le)-1;ut(this,ee,se,le,We,0)}var st=le-1,mt=1;for(this[se+st]=ee&255;--st>=0&&(mt*=256);)this[se+st]=ee/mt&255;return se+le},he.prototype.writeUint8=he.prototype.writeUInt8=function(ee,se,le){return ee=+ee,se=se>>>0,le||ut(this,ee,se,1,255,0),this[se]=ee&255,se+1},he.prototype.writeUint16LE=he.prototype.writeUInt16LE=function(ee,se,le){return ee=+ee,se=se>>>0,le||ut(this,ee,se,2,65535,0),this[se]=ee&255,this[se+1]=ee>>>8,se+2},he.prototype.writeUint16BE=he.prototype.writeUInt16BE=function(ee,se,le){return ee=+ee,se=se>>>0,le||ut(this,ee,se,2,65535,0),this[se]=ee>>>8,this[se+1]=ee&255,se+2},he.prototype.writeUint32LE=he.prototype.writeUInt32LE=function(ee,se,le){return ee=+ee,se=se>>>0,le||ut(this,ee,se,4,4294967295,0),this[se+3]=ee>>>24,this[se+2]=ee>>>16,this[se+1]=ee>>>8,this[se]=ee&255,se+4},he.prototype.writeUint32BE=he.prototype.writeUInt32BE=function(ee,se,le){return ee=+ee,se=se>>>0,le||ut(this,ee,se,4,4294967295,0),this[se]=ee>>>24,this[se+1]=ee>>>16,this[se+2]=ee>>>8,this[se+3]=ee&255,se+4},he.prototype.writeIntLE=function(ee,se,le,Be){if(ee=+ee,se=se>>>0,!Be){var We=Math.pow(2,8*le-1);ut(this,ee,se,le,We-1,-We)}var st=0,mt=1,gt=0;for(this[se]=ee&255;++st<le&&(mt*=256);)ee<0&&gt===0&&this[se+st-1]!==0&&(gt=1),this[se+st]=(ee/mt>>0)-gt&255;return se+le},he.prototype.writeIntBE=function(ee,se,le,Be){if(ee=+ee,se=se>>>0,!Be){var We=Math.pow(2,8*le-1);ut(this,ee,se,le,We-1,-We)}var st=le-1,mt=1,gt=0;for(this[se+st]=ee&255;--st>=0&&(mt*=256);)ee<0&&gt===0&&this[se+st+1]!==0&&(gt=1),this[se+st]=(ee/mt>>0)-gt&255;return se+le},he.prototype.writeInt8=function(ee,se,le){return ee=+ee,se=se>>>0,le||ut(this,ee,se,1,127,-128),ee<0&&(ee=255+ee+1),this[se]=ee&255,se+1},he.prototype.writeInt16LE=function(ee,se,le){return ee=+ee,se=se>>>0,le||ut(this,ee,se,2,32767,-32768),this[se]=ee&255,this[se+1]=ee>>>8,se+2},he.prototype.writeInt16BE=function(ee,se,le){return ee=+ee,se=se>>>0,le||ut(this,ee,se,2,32767,-32768),this[se]=ee>>>8,this[se+1]=ee&255,se+2},he.prototype.writeInt32LE=function(ee,se,le){return ee=+ee,se=se>>>0,le||ut(this,ee,se,4,2147483647,-2147483648),this[se]=ee&255,this[se+1]=ee>>>8,this[se+2]=ee>>>16,this[se+3]=ee>>>24,se+4},he.prototype.writeInt32BE=function(ee,se,le){return ee=+ee,se=se>>>0,le||ut(this,ee,se,4,2147483647,-2147483648),ee<0&&(ee=4294967295+ee+1),this[se]=ee>>>24,this[se+1]=ee>>>16,this[se+2]=ee>>>8,this[se+3]=ee&255,se+4};function $t(ie,ee,se,le,Be,We){if(se+le>ie.length)throw new RangeError("Index out of range");if(se<0)throw new RangeError("Index out of range")}function zt(ie,ee,se,le,Be){return ee=+ee,se=se>>>0,Be||$t(ie,ee,se,4,34028234663852886e22,-34028234663852886e22),Ie.write(ie,ee,se,le,23,4),se+4}he.prototype.writeFloatLE=function(ee,se,le){return zt(this,ee,se,!0,le)},he.prototype.writeFloatBE=function(ee,se,le){return zt(this,ee,se,!1,le)};function tt(ie,ee,se,le,Be){return ee=+ee,se=se>>>0,Be||$t(ie,ee,se,8,17976931348623157e292,-17976931348623157e292),Ie.write(ie,ee,se,le,52,8),se+8}he.prototype.writeDoubleLE=function(ee,se,le){return tt(this,ee,se,!0,le)},he.prototype.writeDoubleBE=function(ee,se,le){return tt(this,ee,se,!1,le)},he.prototype.copy=function(ee,se,le,Be){if(!he.isBuffer(ee))throw new TypeError("argument should be a Buffer");if(le||(le=0),!Be&&Be!==0&&(Be=this.length),se>=ee.length&&(se=ee.length),se||(se=0),Be>0&&Be<le&&(Be=le),Be===le||ee.length===0||this.length===0)return 0;if(se<0)throw new RangeError("targetStart out of bounds");if(le<0||le>=this.length)throw new RangeError("Index out of range");if(Be<0)throw new RangeError("sourceEnd out of bounds");Be>this.length&&(Be=this.length),ee.length-se<Be-le&&(Be=ee.length-se+le);var We=Be-le;return this===ee&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(se,le,Be):Uint8Array.prototype.set.call(ee,this.subarray(le,Be),se),We},he.prototype.fill=function(ee,se,le,Be){if(typeof ee=="string"){if(typeof se=="string"?(Be=se,se=0,le=this.length):typeof le=="string"&&(Be=le,le=this.length),Be!==void 0&&typeof Be!="string")throw new TypeError("encoding must be a string");if(typeof Be=="string"&&!he.isEncoding(Be))throw new TypeError("Unknown encoding: "+Be);if(ee.length===1){var We=ee.charCodeAt(0);(Be==="utf8"&&We<128||Be==="latin1")&&(ee=We)}}else typeof ee=="number"?ee=ee&255:typeof ee=="boolean"&&(ee=Number(ee));if(se<0||this.length<se||this.length<le)throw new RangeError("Out of range index");if(le<=se)return this;se=se>>>0,le=le===void 0?this.length:le>>>0,ee||(ee=0);var st;if(typeof ee=="number")for(st=se;st<le;++st)this[st]=ee;else{var mt=he.isBuffer(ee)?ee:he.from(ee,Be),gt=mt.length;if(gt===0)throw new TypeError('The value "'+ee+'" is invalid for argument "value"');for(st=0;st<le-se;++st)this[st+se]=mt[st%gt]}return this};var Ot=/[^+/0-9A-Za-z-_]/g;function Rt(ie){if(ie=ie.split("=")[0],ie=ie.trim().replace(Ot,""),ie.length<2)return"";for(;ie.length%4!==0;)ie=ie+"=";return ie}function fn(ie,ee){ee=ee||1/0;for(var se,le=ie.length,Be=null,We=[],st=0;st<le;++st){if(se=ie.charCodeAt(st),se>55295&&se<57344){if(!Be){if(se>56319){(ee-=3)>-1&&We.push(239,191,189);continue}else if(st+1===le){(ee-=3)>-1&&We.push(239,191,189);continue}Be=se;continue}if(se<56320){(ee-=3)>-1&&We.push(239,191,189),Be=se;continue}se=(Be-55296<<10|se-56320)+65536}else Be&&(ee-=3)>-1&&We.push(239,191,189);if(Be=null,se<128){if((ee-=1)<0)break;We.push(se)}else if(se<2048){if((ee-=2)<0)break;We.push(se>>6|192,se&63|128)}else if(se<65536){if((ee-=3)<0)break;We.push(se>>12|224,se>>6&63|128,se&63|128)}else if(se<1114112){if((ee-=4)<0)break;We.push(se>>18|240,se>>12&63|128,se>>6&63|128,se&63|128)}else throw new Error("Invalid code point")}return We}function Tt(ie){for(var ee=[],se=0;se<ie.length;++se)ee.push(ie.charCodeAt(se)&255);return ee}function mn(ie,ee){for(var se,le,Be,We=[],st=0;st<ie.length&&!((ee-=2)<0);++st)se=ie.charCodeAt(st),le=se>>8,Be=se%256,We.push(Be),We.push(le);return We}function Dt(ie){return dt.toByteArray(Rt(ie))}function En(ie,ee,se,le){for(var Be=0;Be<le&&!(Be+se>=ee.length||Be>=ie.length);++Be)ee[Be+se]=ie[Be];return Be}function rn(ie,ee){return ie instanceof ee||ie!=null&&ie.constructor!=null&&ie.constructor.name!=null&&ie.constructor.name===ee.name}function de(ie){return ie!==ie}var pe=function(){for(var ie="0123456789abcdef",ee=new Array(256),se=0;se<16;++se)for(var le=se*16,Be=0;Be<16;++Be)ee[le+Be]=ie[se]+ie[Be];return ee}()},14625:function(Jn){function kt(x){var dt,Ie,Je="";if(typeof x=="string"||typeof x=="number")Je+=x;else if(typeof x=="object")if(Array.isArray(x)){var ze=x.length;for(dt=0;dt<ze;dt++)x[dt]&&(Ie=kt(x[dt]))&&(Je&&(Je+=" "),Je+=Ie)}else for(Ie in x)x[Ie]&&(Je&&(Je+=" "),Je+=Ie);return Je}function ae(){for(var x,dt,Ie=0,Je="",ze=arguments.length;Ie<ze;Ie++)(x=arguments[Ie])&&(dt=kt(x))&&(Je&&(Je+=" "),Je+=dt);return Je}Jn.exports=ae,Jn.exports.clsx=ae},99498:function(Jn,kt,ae){(function(x){x(ae(89780))})(function(x){x.defineOption("placeholder","",function(he,xe,oe){var Oe=oe&&oe!=x.Init;if(xe&&!Oe)he.on("blur",ze),he.on("change",Le),he.on("swapDoc",Le),x.on(he.getInputField(),"compositionupdate",he.state.placeholderCompose=function(){Je(he)}),Le(he);else if(!xe&&Oe){he.off("blur",ze),he.off("change",Le),he.off("swapDoc",Le),x.off(he.getInputField(),"compositionupdate",he.state.placeholderCompose),dt(he);var ve=he.getWrapperElement();ve.className=ve.className.replace(" CodeMirror-empty","")}xe&&!he.hasFocus()&&ze(he)});function dt(he){he.state.placeholder&&(he.state.placeholder.parentNode.removeChild(he.state.placeholder),he.state.placeholder=null)}function Ie(he){dt(he);var xe=he.state.placeholder=document.createElement("pre");xe.style.cssText="height: 0; overflow: visible",xe.style.direction=he.getOption("direction"),xe.className="CodeMirror-placeholder CodeMirror-line-like";var oe=he.getOption("placeholder");typeof oe=="string"&&(oe=document.createTextNode(oe)),xe.appendChild(oe),he.display.lineSpace.insertBefore(xe,he.display.lineSpace.firstChild)}function Je(he){setTimeout(function(){var xe=!1,oe=he.getInputField();oe.nodeName=="TEXTAREA"?xe=!oe.value:he.lineCount()==1&&(xe=!/[^\u200b]/.test(oe.querySelector(".CodeMirror-line").textContent)),xe?Ie(he):dt(he)},20)}function ze(he){Ue(he)&&Ie(he)}function Le(he){var xe=he.getWrapperElement(),oe=Ue(he);xe.className=xe.className.replace(" CodeMirror-empty","")+(oe?" CodeMirror-empty":""),oe?Ie(he):dt(he)}function Ue(he){return he.lineCount()===1&&he.getLine(0)===""}})},25717:function(Jn,kt,ae){(function(x){x(ae(89780))})(function(x){var dt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Ie=x.Pos;x.defineOption("autoCloseBrackets",!1,function(Te,we,Ce){Ce&&Ce!=x.Init&&(Te.removeKeyMap(ze),Te.state.closeBrackets=null),we&&(Le(Je(we,"pairs")),Te.state.closeBrackets=we,Te.addKeyMap(ze))});function Je(Te,we){return we=="pairs"&&typeof Te=="string"?Te:typeof Te=="object"&&Te[we]!=null?Te[we]:dt[we]}var ze={Backspace:xe,Enter:oe};function Le(Te){for(var we=0;we<Te.length;we++){var Ce=Te.charAt(we),Ee="'"+Ce+"'";ze[Ee]||(ze[Ee]=Ue(Ce))}}Le(dt.pairs+"`");function Ue(Te){return function(we){return ve(we,Te)}}function he(Te){var we=Te.state.closeBrackets;if(!we||we.override)return we;var Ce=Te.getModeAt(Te.getCursor());return Ce.closeBrackets||we}function xe(Te){var we=he(Te);if(!we||Te.getOption("disableInput"))return x.Pass;for(var Ce=Je(we,"pairs"),Ee=Te.listSelections(),ke=0;ke<Ee.length;ke++){if(!Ee[ke].empty())return x.Pass;var Ke=Me(Te,Ee[ke].head);if(!Ke||Ce.indexOf(Ke)%2!=0)return x.Pass}for(var ke=Ee.length-1;ke>=0;ke--){var Qe=Ee[ke].head;Te.replaceRange("",Ie(Qe.line,Qe.ch-1),Ie(Qe.line,Qe.ch+1),"+delete")}}function oe(Te){var we=he(Te),Ce=we&&Je(we,"explode");if(!Ce||Te.getOption("disableInput"))return x.Pass;for(var Ee=Te.listSelections(),ke=0;ke<Ee.length;ke++){if(!Ee[ke].empty())return x.Pass;var Ke=Me(Te,Ee[ke].head);if(!Ke||Ce.indexOf(Ke)%2!=0)return x.Pass}Te.operation(function(){var Qe=Te.lineSeparator()||`
`;Te.replaceSelection(Qe+Qe,null),Te.execCommand("goCharLeft"),Ee=Te.listSelections();for(var je=0;je<Ee.length;je++){var qe=Ee[je].head.line;Te.indentLine(qe,null,!0),Te.indentLine(qe+1,null,!0)}})}function Oe(Te){var we=x.cmpPos(Te.anchor,Te.head)>0;return{anchor:new Ie(Te.anchor.line,Te.anchor.ch+(we?-1:1)),head:new Ie(Te.head.line,Te.head.ch+(we?1:-1))}}function ve(Te,we){var Ce=he(Te);if(!Ce||Te.getOption("disableInput"))return x.Pass;var Ee=Je(Ce,"pairs"),ke=Ee.indexOf(we);if(ke==-1)return x.Pass;for(var Ke=Je(Ce,"closeBefore"),Qe=Je(Ce,"triples"),je=Ee.charAt(ke+1)==we,qe=Te.listSelections(),Ve=ke%2==0,ct,ot=0;ot<qe.length;ot++){var pt=qe[ot],bt=pt.head,He,ht=Te.getRange(bt,Ie(bt.line,bt.ch+1));if(Ve&&!pt.empty())He="surround";else if((je||!Ve)&&ht==we)je&&Se(Te,bt)?He="both":Qe.indexOf(we)>=0&&Te.getRange(bt,Ie(bt.line,bt.ch+3))==we+we+we?He="skipThree":He="skip";else if(je&&bt.ch>1&&Qe.indexOf(we)>=0&&Te.getRange(Ie(bt.line,bt.ch-2),bt)==we+we){if(bt.ch>2&&/\bstring/.test(Te.getTokenTypeAt(Ie(bt.line,bt.ch-2))))return x.Pass;He="addFour"}else if(je){var _e=bt.ch==0?" ":Te.getRange(Ie(bt.line,bt.ch-1),bt);if(!x.isWordChar(ht)&&_e!=we&&!x.isWordChar(_e))He="both";else return x.Pass}else if(Ve&&(ht.length===0||/\s/.test(ht)||Ke.indexOf(ht)>-1))He="both";else return x.Pass;if(!ct)ct=He;else if(ct!=He)return x.Pass}var Re=ke%2?Ee.charAt(ke-1):we,Nt=ke%2?we:Ee.charAt(ke+1);Te.operation(function(){if(ct=="skip")Te.execCommand("goCharRight");else if(ct=="skipThree")for(var it=0;it<3;it++)Te.execCommand("goCharRight");else if(ct=="surround"){for(var at=Te.getSelections(),it=0;it<at.length;it++)at[it]=Re+at[it]+Nt;Te.replaceSelections(at,"around"),at=Te.listSelections().slice();for(var it=0;it<at.length;it++)at[it]=Oe(at[it]);Te.setSelections(at)}else ct=="both"?(Te.replaceSelection(Re+Nt,null),Te.triggerElectric(Re+Nt),Te.execCommand("goCharLeft")):ct=="addFour"&&(Te.replaceSelection(Re+Re+Re+Re,"before"),Te.execCommand("goCharRight"))})}function Me(Te,we){var Ce=Te.getRange(Ie(we.line,we.ch-1),Ie(we.line,we.ch+1));return Ce.length==2?Ce:null}function Se(Te,we){var Ce=Te.getTokenAt(Ie(we.line,we.ch+1));return/\bstring/.test(Ce.type)&&Ce.start==we.ch&&(we.ch==0||!/\bstring/.test(Te.getTokenTypeAt(we)))}})},6313:function(Jn,kt,ae){(function(x){x(ae(89780),ae(32855))})(function(x){x.defineOption("autoCloseTags",!1,function(xe,oe,Oe){if(Oe!=x.Init&&Oe&&xe.removeKeyMap("autoCloseTags"),!!oe){var ve={name:"autoCloseTags"};(typeof oe!="object"||oe.whenClosing!==!1)&&(ve["'/'"]=function(Me){return Le(Me)}),(typeof oe!="object"||oe.whenOpening!==!1)&&(ve["'>'"]=function(Me){return Je(Me)}),xe.addKeyMap(ve)}});var dt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Ie=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Je(xe){if(xe.getOption("disableInput"))return x.Pass;for(var oe=xe.listSelections(),Oe=[],ve=xe.getOption("autoCloseTags"),Me=0;Me<oe.length;Me++){if(!oe[Me].empty())return x.Pass;var Se=oe[Me].head,Te=xe.getTokenAt(Se),we=x.innerMode(xe.getMode(),Te.state),Ce=we.state,Ee=we.mode.xmlCurrentTag&&we.mode.xmlCurrentTag(Ce),ke=Ee&&Ee.name;if(!ke)return x.Pass;var Ke=we.mode.configuration=="html",Qe=typeof ve=="object"&&ve.dontCloseTags||Ke&&dt,je=typeof ve=="object"&&ve.indentTags||Ke&&Ie;Te.end>Se.ch&&(ke=ke.slice(0,ke.length-Te.end+Se.ch));var qe=ke.toLowerCase();if(!ke||Te.type=="string"&&(Te.end!=Se.ch||!/[\"\']/.test(Te.string.charAt(Te.string.length-1))||Te.string.length==1)||Te.type=="tag"&&Ee.close||Te.string.indexOf("/")==Se.ch-Te.start-1||Qe&&Ue(Qe,qe)>-1||he(xe,we.mode.xmlCurrentContext&&we.mode.xmlCurrentContext(Ce)||[],ke,Se,!0))return x.Pass;var Ve=typeof ve=="object"&&ve.emptyTags;if(Ve&&Ue(Ve,ke)>-1){Oe[Me]={text:"/>",newPos:x.Pos(Se.line,Se.ch+2)};continue}var ct=je&&Ue(je,qe)>-1;Oe[Me]={indent:ct,text:">"+(ct?`
`:"")+"</"+ke+">",newPos:ct?x.Pos(Se.line+1,0):x.Pos(Se.line,Se.ch+1)}}for(var ot=typeof ve=="object"&&ve.dontIndentOnAutoClose,Me=oe.length-1;Me>=0;Me--){var pt=Oe[Me];xe.replaceRange(pt.text,oe[Me].head,oe[Me].anchor,"+insert");var bt=xe.listSelections().slice(0);bt[Me]={head:pt.newPos,anchor:pt.newPos},xe.setSelections(bt),!ot&&pt.indent&&(xe.indentLine(pt.newPos.line,null,!0),xe.indentLine(pt.newPos.line+1,null,!0))}}function ze(xe,oe){for(var Oe=xe.listSelections(),ve=[],Me=oe?"/":"</",Se=xe.getOption("autoCloseTags"),Te=typeof Se=="object"&&Se.dontIndentOnSlash,we=0;we<Oe.length;we++){if(!Oe[we].empty())return x.Pass;var Ce=Oe[we].head,Ee=xe.getTokenAt(Ce),ke=x.innerMode(xe.getMode(),Ee.state),Ke=ke.state;if(oe&&(Ee.type=="string"||Ee.string.charAt(0)!="<"||Ee.start!=Ce.ch-1))return x.Pass;var Qe,je=ke.mode.name!="xml"&&xe.getMode().name=="htmlmixed";if(je&&ke.mode.name=="javascript")Qe=Me+"script";else if(je&&ke.mode.name=="css")Qe=Me+"style";else{var qe=ke.mode.xmlCurrentContext&&ke.mode.xmlCurrentContext(Ke);if(!qe||qe.length&&he(xe,qe,qe[qe.length-1],Ce))return x.Pass;Qe=Me+qe[qe.length-1]}xe.getLine(Ce.line).charAt(Ee.end)!=">"&&(Qe+=">"),ve[we]=Qe}if(xe.replaceSelections(ve),Oe=xe.listSelections(),!Te)for(var we=0;we<Oe.length;we++)(we==Oe.length-1||Oe[we].head.line<Oe[we+1].head.line)&&xe.indentLine(Oe[we].head.line)}function Le(xe){return xe.getOption("disableInput")?x.Pass:ze(xe,!0)}x.commands.closeTag=function(xe){return ze(xe)};function Ue(xe,oe){if(xe.indexOf)return xe.indexOf(oe);for(var Oe=0,ve=xe.length;Oe<ve;++Oe)if(xe[Oe]==oe)return Oe;return-1}function he(xe,oe,Oe,ve,Me){if(!x.scanForClosingTag)return!1;var Se=Math.min(xe.lastLine()+1,ve.line+500),Te=x.scanForClosingTag(xe,ve,null,Se);if(!Te||Te.tag!=Oe)return!1;for(var we=Me?1:0,Ce=oe.length-1;Ce>=0&&oe[Ce]==Oe;Ce--)++we;ve=Te.to;for(var Ce=1;Ce<we;Ce++){var Ee=x.scanForClosingTag(xe,ve,null,Se);if(!Ee||Ee.tag!=Oe)return!1;ve=Ee.to}return!0}})},32855:function(Jn,kt,ae){(function(x){x(ae(89780))})(function(x){"use strict";var dt=x.Pos;function Ie(Ce,Ee){return Ce.line-Ee.line||Ce.ch-Ee.ch}var Je="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ze=Je+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Le=new RegExp("<(/?)(["+Je+"]["+ze+"]*)","g");function Ue(Ce,Ee,ke,Ke){this.line=Ee,this.ch=ke,this.cm=Ce,this.text=Ce.getLine(Ee),this.min=Ke?Math.max(Ke.from,Ce.firstLine()):Ce.firstLine(),this.max=Ke?Math.min(Ke.to-1,Ce.lastLine()):Ce.lastLine()}function he(Ce,Ee){var ke=Ce.cm.getTokenTypeAt(dt(Ce.line,Ee));return ke&&/\btag\b/.test(ke)}function xe(Ce){if(!(Ce.line>=Ce.max))return Ce.ch=0,Ce.text=Ce.cm.getLine(++Ce.line),!0}function oe(Ce){if(!(Ce.line<=Ce.min))return Ce.text=Ce.cm.getLine(--Ce.line),Ce.ch=Ce.text.length,!0}function Oe(Ce){for(;;){var Ee=Ce.text.indexOf(">",Ce.ch);if(Ee==-1){if(xe(Ce))continue;return}if(!he(Ce,Ee+1)){Ce.ch=Ee+1;continue}var ke=Ce.text.lastIndexOf("/",Ee),Ke=ke>-1&&!/\S/.test(Ce.text.slice(ke+1,Ee));return Ce.ch=Ee+1,Ke?"selfClose":"regular"}}function ve(Ce){for(;;){var Ee=Ce.ch?Ce.text.lastIndexOf("<",Ce.ch-1):-1;if(Ee==-1){if(oe(Ce))continue;return}if(!he(Ce,Ee+1)){Ce.ch=Ee;continue}Le.lastIndex=Ee,Ce.ch=Ee;var ke=Le.exec(Ce.text);if(ke&&ke.index==Ee)return ke}}function Me(Ce){for(;;){Le.lastIndex=Ce.ch;var Ee=Le.exec(Ce.text);if(!Ee){if(xe(Ce))continue;return}if(!he(Ce,Ee.index+1)){Ce.ch=Ee.index+1;continue}return Ce.ch=Ee.index+Ee[0].length,Ee}}function Se(Ce){for(;;){var Ee=Ce.ch?Ce.text.lastIndexOf(">",Ce.ch-1):-1;if(Ee==-1){if(oe(Ce))continue;return}if(!he(Ce,Ee+1)){Ce.ch=Ee;continue}var ke=Ce.text.lastIndexOf("/",Ee),Ke=ke>-1&&!/\S/.test(Ce.text.slice(ke+1,Ee));return Ce.ch=Ee+1,Ke?"selfClose":"regular"}}function Te(Ce,Ee){for(var ke=[];;){var Ke=Me(Ce),Qe,je=Ce.line,qe=Ce.ch-(Ke?Ke[0].length:0);if(!Ke||!(Qe=Oe(Ce)))return;if(Qe!="selfClose")if(Ke[1]){for(var Ve=ke.length-1;Ve>=0;--Ve)if(ke[Ve]==Ke[2]){ke.length=Ve;break}if(Ve<0&&(!Ee||Ee==Ke[2]))return{tag:Ke[2],from:dt(je,qe),to:dt(Ce.line,Ce.ch)}}else ke.push(Ke[2])}}function we(Ce,Ee){for(var ke=[];;){var Ke=Se(Ce);if(!Ke)return;if(Ke=="selfClose"){ve(Ce);continue}var Qe=Ce.line,je=Ce.ch,qe=ve(Ce);if(!qe)return;if(qe[1])ke.push(qe[2]);else{for(var Ve=ke.length-1;Ve>=0;--Ve)if(ke[Ve]==qe[2]){ke.length=Ve;break}if(Ve<0&&(!Ee||Ee==qe[2]))return{tag:qe[2],from:dt(Ce.line,Ce.ch),to:dt(Qe,je)}}}}x.registerHelper("fold","xml",function(Ce,Ee){for(var ke=new Ue(Ce,Ee.line,0);;){var Ke=Me(ke);if(!Ke||ke.line!=Ee.line)return;var Qe=Oe(ke);if(!Qe)return;if(!Ke[1]&&Qe!="selfClose"){var je=dt(ke.line,ke.ch),qe=Te(ke,Ke[2]);return qe&&Ie(qe.from,je)>0?{from:je,to:qe.from}:null}}}),x.findMatchingTag=function(Ce,Ee,ke){var Ke=new Ue(Ce,Ee.line,Ee.ch,ke);if(!(Ke.text.indexOf(">")==-1&&Ke.text.indexOf("<")==-1)){var Qe=Oe(Ke),je=Qe&&dt(Ke.line,Ke.ch),qe=Qe&&ve(Ke);if(!(!Qe||!qe||Ie(Ke,Ee)>0)){var Ve={from:dt(Ke.line,Ke.ch),to:je,tag:qe[2]};return Qe=="selfClose"?{open:Ve,close:null,at:"open"}:qe[1]?{open:we(Ke,qe[2]),close:Ve,at:"close"}:(Ke=new Ue(Ce,je.line,je.ch,ke),{open:Ve,close:Te(Ke,qe[2]),at:"open"})}}},x.findEnclosingTag=function(Ce,Ee,ke,Ke){for(var Qe=new Ue(Ce,Ee.line,Ee.ch,ke);;){var je=we(Qe,Ke);if(!je)break;var qe=new Ue(Ce,Ee.line,Ee.ch,ke),Ve=Te(qe,je.tag);if(Ve)return{open:je,close:Ve}}},x.scanForClosingTag=function(Ce,Ee,ke,Ke){var Qe=new Ue(Ce,Ee.line,Ee.ch,Ke?{from:0,to:Ke}:null);return Te(Qe,ke)}})},89780:function(Jn){(function(kt,ae){Jn.exports=ae()})(this,function(){"use strict";var kt=navigator.userAgent,ae=navigator.platform,x=/gecko\/\d/i.test(kt),dt=/MSIE \d/.test(kt),Ie=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(kt),Je=/Edge\/(\d+)/.exec(kt),ze=dt||Ie||Je,Le=ze&&(dt?document.documentMode||6:+(Je||Ie)[1]),Ue=!Je&&/WebKit\//.test(kt),he=Ue&&/Qt\/\d+\.\d+/.test(kt),xe=!Je&&/Chrome\//.test(kt),oe=/Opera\//.test(kt),Oe=/Apple Computer/.test(navigator.vendor),ve=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(kt),Me=/PhantomJS/.test(kt),Se=!Je&&/AppleWebKit/.test(kt)&&/Mobile\/\w+/.test(kt),Te=/Android/.test(kt),we=Se||Te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(kt),Ce=Se||/Mac/.test(ae),Ee=/\bCrOS\b/.test(kt),ke=/win/i.test(ae),Ke=oe&&kt.match(/Version\/(\d*\.\d*)/);Ke&&(Ke=Number(Ke[1])),Ke&&Ke>=15&&(oe=!1,Ue=!0);var Qe=Ce&&(he||oe&&(Ke==null||Ke<12.11)),je=x||ze&&Le>=9;function qe(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Ve=function(a,b){var ne=a.className,te=qe(b).exec(ne);if(te){var ue=ne.slice(te.index+te[0].length);a.className=ne.slice(0,te.index)+(ue?te[1]+ue:"")}};function ct(a){for(var b=a.childNodes.length;b>0;--b)a.removeChild(a.firstChild);return a}function ot(a,b){return ct(a).appendChild(b)}function pt(a,b,ne,te){var ue=document.createElement(a);if(ne&&(ue.className=ne),te&&(ue.style.cssText=te),typeof b=="string")ue.appendChild(document.createTextNode(b));else if(b)for(var Ne=0;Ne<b.length;++Ne)ue.appendChild(b[Ne]);return ue}function bt(a,b,ne,te){var ue=pt(a,b,ne,te);return ue.setAttribute("role","presentation"),ue}var He;document.createRange?He=function(a,b,ne,te){var ue=document.createRange();return ue.setEnd(te||a,ne),ue.setStart(a,b),ue}:He=function(a,b,ne){var te=document.body.createTextRange();try{te.moveToElementText(a.parentNode)}catch(ue){return te}return te.collapse(!0),te.moveEnd("character",ne),te.moveStart("character",b),te};function ht(a,b){if(b.nodeType==3&&(b=b.parentNode),a.contains)return a.contains(b);do if(b.nodeType==11&&(b=b.host),b==a)return!0;while(b=b.parentNode)}function _e(){var a;try{a=document.activeElement}catch(b){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function Re(a,b){var ne=a.className;qe(b).test(ne)||(a.className+=(ne?" ":"")+b)}function Nt(a,b){for(var ne=a.split(" "),te=0;te<ne.length;te++)ne[te]&&!qe(ne[te]).test(b)&&(b+=" "+ne[te]);return b}var it=function(a){a.select()};Se?it=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:ze&&(it=function(a){try{a.select()}catch(b){}});function at(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,b)}}function Bt(a,b,ne){b||(b={});for(var te in a)a.hasOwnProperty(te)&&(ne!==!1||!b.hasOwnProperty(te))&&(b[te]=a[te]);return b}function Ze(a,b,ne,te,ue){b==null&&(b=a.search(/[^\s\u00a0]/),b==-1&&(b=a.length));for(var Ne=te||0,et=ue||0;;){var vt=a.indexOf(" ",Ne);if(vt<0||vt>=b)return et+(b-Ne);et+=vt-Ne,et+=ne-et%ne,Ne=vt+1}}var De=function(){this.id=null,this.f=null,this.time=0,this.handler=at(this.onTimeout,this)};De.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},De.prototype.set=function(a,b){this.f=b;var ne=+new Date+a;(!this.id||ne<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=ne)};function ut(a,b){for(var ne=0;ne<a.length;++ne)if(a[ne]==b)return ne;return-1}var $t=50,zt={toString:function(){return"CodeMirror.Pass"}},tt={scroll:!1},Ot={origin:"*mouse"},Rt={origin:"+move"};function fn(a,b,ne){for(var te=0,ue=0;;){var Ne=a.indexOf(" ",te);Ne==-1&&(Ne=a.length);var et=Ne-te;if(Ne==a.length||ue+et>=b)return te+Math.min(et,b-ue);if(ue+=Ne-te,ue+=ne-ue%ne,te=Ne+1,ue>=b)return te}}var Tt=[""];function mn(a){for(;Tt.length<=a;)Tt.push(Dt(Tt)+" ");return Tt[a]}function Dt(a){return a[a.length-1]}function En(a,b){for(var ne=[],te=0;te<a.length;te++)ne[te]=b(a[te],te);return ne}function rn(a,b,ne){for(var te=0,ue=ne(b);te<a.length&&ne(a[te])<=ue;)te++;a.splice(te,0,b)}function de(){}function pe(a,b){var ne;return Object.create?ne=Object.create(a):(de.prototype=a,ne=new de),b&&Bt(b,ne),ne}var ie=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ee(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||ie.test(a))}function se(a,b){return b?b.source.indexOf("\\w")>-1&&ee(a)?!0:b.test(a):ee(a)}function le(a){for(var b in a)if(a.hasOwnProperty(b)&&a[b])return!1;return!0}var Be=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function We(a){return a.charCodeAt(0)>=768&&Be.test(a)}function st(a,b,ne){for(;(ne<0?b>0:b<a.length)&&We(a.charAt(b));)b+=ne;return b}function mt(a,b,ne){for(var te=b>ne?-1:1;;){if(b==ne)return b;var ue=(b+ne)/2,Ne=te<0?Math.ceil(ue):Math.floor(ue);if(Ne==b)return a(Ne)?b:ne;a(Ne)?ne=Ne:b=Ne+te}}function gt(a,b,ne,te){if(!a)return te(b,ne,"ltr",0);for(var ue=!1,Ne=0;Ne<a.length;++Ne){var et=a[Ne];(et.from<ne&&et.to>b||b==ne&&et.to==b)&&(te(Math.max(et.from,b),Math.min(et.to,ne),et.level==1?"rtl":"ltr",Ne),ue=!0)}ue||te(b,ne,"ltr")}var Et=null;function Lt(a,b,ne){var te;Et=null;for(var ue=0;ue<a.length;++ue){var Ne=a[ue];if(Ne.from<b&&Ne.to>b)return ue;Ne.to==b&&(Ne.from!=Ne.to&&ne=="before"?te=ue:Et=ue),Ne.from==b&&(Ne.from!=Ne.to&&ne!="before"?te=ue:Et=ue)}return te!=null?te:Et}var jt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",b="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ne(_t){return _t<=247?a.charAt(_t):1424<=_t&&_t<=1524?"R":1536<=_t&&_t<=1785?b.charAt(_t-1536):1774<=_t&&_t<=2220?"r":8192<=_t&&_t<=8203?"w":_t==8204?"b":"L"}var te=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ue=/[stwN]/,Ne=/[LRr]/,et=/[Lb1n]/,vt=/[1n]/;function St(_t,Ln,Hn){this.level=_t,this.from=Ln,this.to=Hn}return function(_t,Ln){var Hn=Ln=="ltr"?"L":"R";if(_t.length==0||Ln=="ltr"&&!te.test(_t))return!1;for(var Tr=_t.length,Er=[],xi=0;xi<Tr;++xi)Er.push(ne(_t.charCodeAt(xi)));for(var Ki=0,uo=Hn;Ki<Tr;++Ki){var Fo=Er[Ki];Fo=="m"?Er[Ki]=uo:uo=Fo}for(var Ko=0,Io=Hn;Ko<Tr;++Ko){var ua=Er[Ko];ua=="1"&&Io=="r"?Er[Ko]="n":Ne.test(ua)&&(Io=ua,ua=="r"&&(Er[Ko]="R"))}for(var Da=1,Ca=Er[0];Da<Tr-1;++Da){var Ra=Er[Da];Ra=="+"&&Ca=="1"&&Er[Da+1]=="1"?Er[Da]="1":Ra==","&&Ca==Er[Da+1]&&(Ca=="1"||Ca=="n")&&(Er[Da]=Ca),Ca=Ra}for(var _l=0;_l<Tr;++_l){var zu=Er[_l];if(zu==",")Er[_l]="N";else if(zu=="%"){var tu=void 0;for(tu=_l+1;tu<Tr&&Er[tu]=="%";++tu);for(var gc=_l&&Er[_l-1]=="!"||tu<Tr&&Er[tu]=="1"?"1":"N",Yu=_l;Yu<tu;++Yu)Er[Yu]=gc;_l=tu-1}}for(var ku=0,vc=Hn;ku<Tr;++ku){var lc=Er[ku];vc=="L"&&lc=="1"?Er[ku]="L":Ne.test(lc)&&(vc=lc)}for(var Eo=0;Eo<Tr;++Eo)if(ue.test(Er[Eo])){var Gl=void 0;for(Gl=Eo+1;Gl<Tr&&ue.test(Er[Gl]);++Gl);for(var nu=(Eo?Er[Eo-1]:Hn)=="L",ru=(Gl<Tr?Er[Gl]:Hn)=="L",Of=nu==ru?nu?"L":"R":Hn,Ks=Eo;Ks<Gl;++Ks)Er[Ks]=Of;Eo=Gl-1}for(var Bs=[],oA,uc=0;uc<Tr;)if(et.test(Er[uc])){var dh=uc;for(++uc;uc<Tr&&et.test(Er[uc]);++uc);Bs.push(new St(0,dh,uc))}else{var Pa=uc,SA=Bs.length,hl=Ln=="rtl"?1:0;for(++uc;uc<Tr&&Er[uc]!="L";++uc);for(var cc=Pa;cc<uc;)if(vt.test(Er[cc])){Pa<cc&&(Bs.splice(SA,0,new St(1,Pa,cc)),SA+=hl);var kd=cc;for(++cc;cc<uc&&vt.test(Er[cc]);++cc);Bs.splice(SA,0,new St(2,kd,cc)),SA+=hl,Pa=cc}else++cc;Pa<uc&&Bs.splice(SA,0,new St(1,Pa,uc))}return Ln=="ltr"&&(Bs[0].level==1&&(oA=_t.match(/^\s+/))&&(Bs[0].from=oA[0].length,Bs.unshift(new St(0,0,oA[0].length))),Dt(Bs).level==1&&(oA=_t.match(/\s+$/))&&(Dt(Bs).to-=oA[0].length,Bs.push(new St(0,Tr-oA[0].length,Tr)))),Ln=="rtl"?Bs.reverse():Bs}}();function Ct(a,b){var ne=a.order;return ne==null&&(ne=a.order=jt(a.text,b)),ne}var lt=[],Vt=function(a,b,ne){if(a.addEventListener)a.addEventListener(b,ne,!1);else if(a.attachEvent)a.attachEvent("on"+b,ne);else{var te=a._handlers||(a._handlers={});te[b]=(te[b]||lt).concat(ne)}};function Zt(a,b){return a._handlers&&a._handlers[b]||lt}function gn(a,b,ne){if(a.removeEventListener)a.removeEventListener(b,ne,!1);else if(a.detachEvent)a.detachEvent("on"+b,ne);else{var te=a._handlers,ue=te&&te[b];if(ue){var Ne=ut(ue,ne);Ne>-1&&(te[b]=ue.slice(0,Ne).concat(ue.slice(Ne+1)))}}}function sn(a,b){var ne=Zt(a,b);if(ne.length)for(var te=Array.prototype.slice.call(arguments,2),ue=0;ue<ne.length;++ue)ne[ue].apply(null,te)}function en(a,b,ne){return typeof b=="string"&&(b={type:b,preventDefault:function(){this.defaultPrevented=!0}}),sn(a,ne||b.type,a,b),Vn(b)||b.codemirrorIgnore}function zn(a){var b=a._handlers&&a._handlers.cursorActivity;if(b)for(var ne=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),te=0;te<b.length;++te)ut(ne,b[te])==-1&&ne.push(b[te])}function Fn(a,b){return Zt(a,b).length>0}function Ut(a){a.prototype.on=function(b,ne){Vt(this,b,ne)},a.prototype.off=function(b,ne){gn(this,b,ne)}}function an(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function _n(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Vn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function It(a){an(a),_n(a)}function Wt(a){return a.target||a.srcElement}function on(a){var b=a.which;return b==null&&(a.button&1?b=1:a.button&2?b=3:a.button&4&&(b=2)),Ce&&a.ctrlKey&&b==1&&(b=3),b}var vn=function(){if(ze&&Le<9)return!1;var a=pt("div");return"draggable"in a||"dragDrop"in a}(),Yn;function Lr(a){if(Yn==null){var b=pt("span","\u200B");ot(a,pt("span",[b,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Yn=b.offsetWidth<=1&&b.offsetHeight>2&&!(ze&&Le<8))}var ne=Yn?pt("span","\u200B"):pt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ne.setAttribute("cm-text",""),ne}var ri;function zr(a){if(ri!=null)return ri;var b=ot(a,document.createTextNode("A\u062EA")),ne=He(b,0,1).getBoundingClientRect(),te=He(b,1,2).getBoundingClientRect();return ct(a),!ne||ne.left==ne.right?!1:ri=te.right-ne.right<3}var Ir=`
b`.split(/\n/).length!=3?function(a){for(var b=0,ne=[],te=a.length;b<=te;){var ue=a.indexOf(`
`,b);ue==-1&&(ue=a.length);var Ne=a.slice(b,a.charAt(ue-1)=="\r"?ue-1:ue),et=Ne.indexOf("\r");et!=-1?(ne.push(Ne.slice(0,et)),b+=et+1):(ne.push(Ne),b=ue+1)}return ne}:function(a){return a.split(/\r\n?|\n/)},tr=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(b){return!1}}:function(a){var b;try{b=a.ownerDocument.selection.createRange()}catch(ne){}return!b||b.parentElement()!=a?!1:b.compareEndPoints("StartToEnd",b)!=0},vr=function(){var a=pt("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Qn=null;function qn(a){if(Qn!=null)return Qn;var b=ot(a,pt("span","x")),ne=b.getBoundingClientRect(),te=He(b,0,1).getBoundingClientRect();return Qn=Math.abs(ne.left-te.left)>1}var lr={},$n={};function Br(a,b){arguments.length>2&&(b.dependencies=Array.prototype.slice.call(arguments,2)),lr[a]=b}function Sr(a,b){$n[a]=b}function kr(a){if(typeof a=="string"&&$n.hasOwnProperty(a))a=$n[a];else if(a&&typeof a.name=="string"&&$n.hasOwnProperty(a.name)){var b=$n[a.name];typeof b=="string"&&(b={name:b}),a=pe(b,a),a.name=b.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return kr("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return kr("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function gi(a,b){b=kr(b);var ne=lr[b.name];if(!ne)return gi(a,"text/plain");var te=ne(a,b);if(Ai.hasOwnProperty(b.name)){var ue=Ai[b.name];for(var Ne in ue)ue.hasOwnProperty(Ne)&&(te.hasOwnProperty(Ne)&&(te["_"+Ne]=te[Ne]),te[Ne]=ue[Ne])}if(te.name=b.name,b.helperType&&(te.helperType=b.helperType),b.modeProps)for(var et in b.modeProps)te[et]=b.modeProps[et];return te}var Ai={};function di(a,b){var ne=Ai.hasOwnProperty(a)?Ai[a]:Ai[a]={};Bt(b,ne)}function Ti(a,b){if(b===!0)return b;if(a.copyState)return a.copyState(b);var ne={};for(var te in b){var ue=b[te];ue instanceof Array&&(ue=ue.concat([])),ne[te]=ue}return ne}function Ei(a,b){for(var ne;a.innerMode&&(ne=a.innerMode(b),!(!ne||ne.mode==a));)b=ne.state,a=ne.mode;return ne||{mode:a,state:b}}function no(a,b,ne){return a.startState?a.startState(b,ne):!0}var zi=function(a,b,ne){this.pos=this.start=0,this.string=a,this.tabSize=b||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ne};zi.prototype.eol=function(){return this.pos>=this.string.length},zi.prototype.sol=function(){return this.pos==this.lineStart},zi.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},zi.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},zi.prototype.eat=function(a){var b=this.string.charAt(this.pos),ne;if(typeof a=="string"?ne=b==a:ne=b&&(a.test?a.test(b):a(b)),ne)return++this.pos,b},zi.prototype.eatWhile=function(a){for(var b=this.pos;this.eat(a););return this.pos>b},zi.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},zi.prototype.skipToEnd=function(){this.pos=this.string.length},zi.prototype.skipTo=function(a){var b=this.string.indexOf(a,this.pos);if(b>-1)return this.pos=b,!0},zi.prototype.backUp=function(a){this.pos-=a},zi.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ze(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ze(this.string,this.lineStart,this.tabSize):0)},zi.prototype.indentation=function(){return Ze(this.string,null,this.tabSize)-(this.lineStart?Ze(this.string,this.lineStart,this.tabSize):0)},zi.prototype.match=function(a,b,ne){if(typeof a=="string"){var te=function(et){return ne?et.toLowerCase():et},ue=this.string.substr(this.pos,a.length);if(te(ue)==te(a))return b!==!1&&(this.pos+=a.length),!0}else{var Ne=this.string.slice(this.pos).match(a);return Ne&&Ne.index>0?null:(Ne&&b!==!1&&(this.pos+=Ne[0].length),Ne)}},zi.prototype.current=function(){return this.string.slice(this.start,this.pos)},zi.prototype.hideFirstChars=function(a,b){this.lineStart+=a;try{return b()}finally{this.lineStart-=a}},zi.prototype.lookAhead=function(a){var b=this.lineOracle;return b&&b.lookAhead(a)},zi.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function fr(a,b){if(b-=a.first,b<0||b>=a.size)throw new Error("There is no line "+(b+a.first)+" in the document.");for(var ne=a;!ne.lines;)for(var te=0;;++te){var ue=ne.children[te],Ne=ue.chunkSize();if(b<Ne){ne=ue;break}b-=Ne}return ne.lines[b]}function Ur(a,b,ne){var te=[],ue=b.line;return a.iter(b.line,ne.line+1,function(Ne){var et=Ne.text;ue==ne.line&&(et=et.slice(0,ne.ch)),ue==b.line&&(et=et.slice(b.ch)),te.push(et),++ue}),te}function vi(a,b,ne){var te=[];return a.iter(b,ne,function(ue){te.push(ue.text)}),te}function Gt(a,b){var ne=b-a.height;if(ne)for(var te=a;te;te=te.parent)te.height+=ne}function un(a){if(a.parent==null)return null;for(var b=a.parent,ne=ut(b.lines,a),te=b.parent;te;b=te,te=te.parent)for(var ue=0;te.children[ue]!=b;++ue)ne+=te.children[ue].chunkSize();return ne+b.first}function wn(a,b){var ne=a.first;e:do{for(var te=0;te<a.children.length;++te){var ue=a.children[te],Ne=ue.height;if(b<Ne){a=ue;continue e}b-=Ne,ne+=ue.chunkSize()}return ne}while(!a.lines);for(var et=0;et<a.lines.length;++et){var vt=a.lines[et],St=vt.height;if(b<St)break;b-=St}return ne+et}function Mt(a,b){return b>=a.first&&b<a.first+a.size}function dn(a,b){return String(a.lineNumberFormatter(b+a.firstLineNumber))}function Kt(a,b,ne){if(ne===void 0&&(ne=null),!(this instanceof Kt))return new Kt(a,b,ne);this.line=a,this.ch=b,this.sticky=ne}function pn(a,b){return a.line-b.line||a.ch-b.ch}function Nn(a,b){return a.sticky==b.sticky&&pn(a,b)==0}function Pr(a){return Kt(a.line,a.ch)}function Yr(a,b){return pn(a,b)<0?b:a}function ci(a,b){return pn(a,b)<0?a:b}function or(a,b){return Math.max(a.first,Math.min(b,a.first+a.size-1))}function cr(a,b){if(b.line<a.first)return Kt(a.first,0);var ne=a.first+a.size-1;return b.line>ne?Kt(ne,fr(a,ne).text.length):sr(b,fr(a,b.line).text.length)}function sr(a,b){var ne=a.ch;return ne==null||ne>b?Kt(a.line,b):ne<0?Kt(a.line,0):a}function ti(a,b){for(var ne=[],te=0;te<b.length;te++)ne[te]=cr(a,b[te]);return ne}var nr=function(a,b){this.state=a,this.lookAhead=b},Rn=function(a,b,ne,te){this.state=b,this.doc=a,this.line=ne,this.maxLookAhead=te||0,this.baseTokens=null,this.baseTokenPos=1};Rn.prototype.lookAhead=function(a){var b=this.doc.getLine(this.line+a);return b!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),b},Rn.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var b=this.baseTokens[this.baseTokenPos+1];return{type:b&&b.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},Rn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Rn.fromSaved=function(a,b,ne){return b instanceof nr?new Rn(a,Ti(a.mode,b.state),ne,b.lookAhead):new Rn(a,Ti(a.mode,b),ne)},Rn.prototype.save=function(a){var b=a!==!1?Ti(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new nr(b,this.maxLookAhead):b};function Ar(a,b,ne,te){var ue=[a.state.modeGen],Ne={};fi(a,b.text,a.doc.mode,ne,function(_t,Ln){return ue.push(_t,Ln)},Ne,te);for(var et=ne.state,vt=function(_t){ne.baseTokens=ue;var Ln=a.state.overlays[_t],Hn=1,Tr=0;ne.state=!0,fi(a,b.text,Ln.mode,ne,function(Er,xi){for(var Ki=Hn;Tr<Er;){var uo=ue[Hn];uo>Er&&ue.splice(Hn,1,Er,ue[Hn+1],uo),Hn+=2,Tr=Math.min(Er,uo)}if(xi)if(Ln.opaque)ue.splice(Ki,Hn-Ki,Er,"overlay "+xi),Hn=Ki+2;else for(;Ki<Hn;Ki+=2){var Fo=ue[Ki+1];ue[Ki+1]=(Fo?Fo+" ":"")+"overlay "+xi}},Ne),ne.state=et,ne.baseTokens=null,ne.baseTokenPos=1},St=0;St<a.state.overlays.length;++St)vt(St);return{styles:ue,classes:Ne.bgClass||Ne.textClass?Ne:null}}function Bi(a,b,ne){if(!b.styles||b.styles[0]!=a.state.modeGen){var te=Zn(a,un(b)),ue=b.text.length>a.options.maxHighlightLength&&Ti(a.doc.mode,te.state),Ne=Ar(a,b,te);ue&&(te.state=ue),b.stateAfter=te.save(!ue),b.styles=Ne.styles,Ne.classes?b.styleClasses=Ne.classes:b.styleClasses&&(b.styleClasses=null),ne===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return b.styles}function Zn(a,b,ne){var te=a.doc,ue=a.display;if(!te.mode.startState)return new Rn(te,!0,b);var Ne=_i(a,b,ne),et=Ne>te.first&&fr(te,Ne-1).stateAfter,vt=et?Rn.fromSaved(te,et,Ne):new Rn(te,no(te.mode),Ne);return te.iter(Ne,b,function(St){yn(a,St.text,vt);var _t=vt.line;St.stateAfter=_t==b-1||_t%5==0||_t>=ue.viewFrom&&_t<ue.viewTo?vt.save():null,vt.nextLine()}),ne&&(te.modeFrontier=vt.line),vt}function yn(a,b,ne,te){var ue=a.doc.mode,Ne=new zi(b,a.options.tabSize,ne);for(Ne.start=Ne.pos=te||0,b==""&&Wn(ue,ne.state);!Ne.eol();)rr(ue,Ne,ne.state),Ne.start=Ne.pos}function Wn(a,b){if(a.blankLine)return a.blankLine(b);if(a.innerMode){var ne=Ei(a,b);if(ne.mode.blankLine)return ne.mode.blankLine(ne.state)}}function rr(a,b,ne,te){for(var ue=0;ue<10;ue++){te&&(te[0]=Ei(a,ne).mode);var Ne=a.token(b,ne);if(b.pos>b.start)return Ne}throw new Error("Mode "+a.name+" failed to advance stream.")}var pr=function(a,b,ne){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=b||null,this.state=ne};function Kr(a,b,ne,te){var ue=a.doc,Ne=ue.mode,et;b=cr(ue,b);var vt=fr(ue,b.line),St=Zn(a,b.line,ne),_t=new zi(vt.text,a.options.tabSize,St),Ln;for(te&&(Ln=[]);(te||_t.pos<b.ch)&&!_t.eol();)_t.start=_t.pos,et=rr(Ne,_t,St.state),te&&Ln.push(new pr(_t,et,Ti(ue.mode,St.state)));return te?Ln:new pr(_t,et,St.state)}function Fi(a,b){if(a)for(;;){var ne=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ne)break;a=a.slice(0,ne.index)+a.slice(ne.index+ne[0].length);var te=ne[1]?"bgClass":"textClass";b[te]==null?b[te]=ne[2]:new RegExp("(?:^|\\s)"+ne[2]+"(?:$|\\s)").test(b[te])||(b[te]+=" "+ne[2])}return a}function fi(a,b,ne,te,ue,Ne,et){var vt=ne.flattenSpans;vt==null&&(vt=a.options.flattenSpans);var St=0,_t=null,Ln=new zi(b,a.options.tabSize,te),Hn,Tr=a.options.addModeClass&&[null];for(b==""&&Fi(Wn(ne,te.state),Ne);!Ln.eol();){if(Ln.pos>a.options.maxHighlightLength?(vt=!1,et&&yn(a,b,te,Ln.pos),Ln.pos=b.length,Hn=null):Hn=Fi(rr(ne,Ln,te.state,Tr),Ne),Tr){var Er=Tr[0].name;Er&&(Hn="m-"+(Hn?Er+" "+Hn:Er))}if(!vt||_t!=Hn){for(;St<Ln.start;)St=Math.min(Ln.start,St+5e3),ue(St,_t);_t=Hn}Ln.start=Ln.pos}for(;St<Ln.pos;){var xi=Math.min(Ln.pos,St+5e3);ue(xi,_t),St=xi}}function _i(a,b,ne){for(var te,ue,Ne=a.doc,et=ne?-1:b-(a.doc.mode.innerMode?1e3:100),vt=b;vt>et;--vt){if(vt<=Ne.first)return Ne.first;var St=fr(Ne,vt-1),_t=St.stateAfter;if(_t&&(!ne||vt+(_t instanceof nr?_t.lookAhead:0)<=Ne.modeFrontier))return vt;var Ln=Ze(St.text,null,a.options.tabSize);(ue==null||te>Ln)&&(ue=vt-1,te=Ln)}return ue}function hi(a,b){if(a.modeFrontier=Math.min(a.modeFrontier,b),!(a.highlightFrontier<b-10)){for(var ne=a.first,te=b-1;te>ne;te--){var ue=fr(a,te).stateAfter;if(ue&&(!(ue instanceof nr)||te+ue.lookAhead<b)){ne=te+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,ne)}}var bi=!1,wi=!1;function Yi(){bi=!0}function pi(){wi=!0}function yi(a,b,ne){this.marker=a,this.from=b,this.to=ne}function Ji(a,b){if(a)for(var ne=0;ne<a.length;++ne){var te=a[ne];if(te.marker==b)return te}}function io(a,b){for(var ne,te=0;te<a.length;++te)a[te]!=b&&(ne||(ne=[])).push(a[te]);return ne}function ji(a,b){a.markedSpans=a.markedSpans?a.markedSpans.concat([b]):[b],b.marker.attachLine(a)}function So(a,b,ne){var te;if(a)for(var ue=0;ue<a.length;++ue){var Ne=a[ue],et=Ne.marker,vt=Ne.from==null||(et.inclusiveLeft?Ne.from<=b:Ne.from<b);if(vt||Ne.from==b&&et.type=="bookmark"&&(!ne||!Ne.marker.insertLeft)){var St=Ne.to==null||(et.inclusiveRight?Ne.to>=b:Ne.to>b);(te||(te=[])).push(new yi(et,Ne.from,St?null:Ne.to))}}return te}function ki(a,b,ne){var te;if(a)for(var ue=0;ue<a.length;++ue){var Ne=a[ue],et=Ne.marker,vt=Ne.to==null||(et.inclusiveRight?Ne.to>=b:Ne.to>b);if(vt||Ne.from==b&&et.type=="bookmark"&&(!ne||Ne.marker.insertLeft)){var St=Ne.from==null||(et.inclusiveLeft?Ne.from<=b:Ne.from<b);(te||(te=[])).push(new yi(et,St?null:Ne.from-b,Ne.to==null?null:Ne.to-b))}}return te}function ko(a,b){if(b.full)return null;var ne=Mt(a,b.from.line)&&fr(a,b.from.line).markedSpans,te=Mt(a,b.to.line)&&fr(a,b.to.line).markedSpans;if(!ne&&!te)return null;var ue=b.from.ch,Ne=b.to.ch,et=pn(b.from,b.to)==0,vt=So(ne,ue,et),St=ki(te,Ne,et),_t=b.text.length==1,Ln=Dt(b.text).length+(_t?ue:0);if(vt)for(var Hn=0;Hn<vt.length;++Hn){var Tr=vt[Hn];if(Tr.to==null){var Er=Ji(St,Tr.marker);Er?_t&&(Tr.to=Er.to==null?null:Er.to+Ln):Tr.to=ue}}if(St)for(var xi=0;xi<St.length;++xi){var Ki=St[xi];if(Ki.to!=null&&(Ki.to+=Ln),Ki.from==null){var uo=Ji(vt,Ki.marker);uo||(Ki.from=Ln,_t&&(vt||(vt=[])).push(Ki))}else Ki.from+=Ln,_t&&(vt||(vt=[])).push(Ki)}vt&&(vt=co(vt)),St&&St!=vt&&(St=co(St));var Fo=[vt];if(!_t){var Ko=b.text.length-2,Io;if(Ko>0&&vt)for(var ua=0;ua<vt.length;++ua)vt[ua].to==null&&(Io||(Io=[])).push(new yi(vt[ua].marker,null,null));for(var Da=0;Da<Ko;++Da)Fo.push(Io);Fo.push(St)}return Fo}function co(a){for(var b=0;b<a.length;++b){var ne=a[b];ne.from!=null&&ne.from==ne.to&&ne.marker.clearWhenEmpty!==!1&&a.splice(b--,1)}return a.length?a:null}function Xo(a,b,ne){var te=null;if(a.iter(b.line,ne.line+1,function(Er){if(Er.markedSpans)for(var xi=0;xi<Er.markedSpans.length;++xi){var Ki=Er.markedSpans[xi].marker;Ki.readOnly&&(!te||ut(te,Ki)==-1)&&(te||(te=[])).push(Ki)}}),!te)return null;for(var ue=[{from:b,to:ne}],Ne=0;Ne<te.length;++Ne)for(var et=te[Ne],vt=et.find(0),St=0;St<ue.length;++St){var _t=ue[St];if(!(pn(_t.to,vt.from)<0||pn(_t.from,vt.to)>0)){var Ln=[St,1],Hn=pn(_t.from,vt.from),Tr=pn(_t.to,vt.to);(Hn<0||!et.inclusiveLeft&&!Hn)&&Ln.push({from:_t.from,to:vt.from}),(Tr>0||!et.inclusiveRight&&!Tr)&&Ln.push({from:vt.to,to:_t.to}),ue.splice.apply(ue,Ln),St+=Ln.length-3}}return ue}function wo(a){var b=a.markedSpans;if(b){for(var ne=0;ne<b.length;++ne)b[ne].marker.detachLine(a);a.markedSpans=null}}function eo(a,b){if(b){for(var ne=0;ne<b.length;++ne)b[ne].marker.attachLine(a);a.markedSpans=b}}function bo(a){return a.inclusiveLeft?-1:0}function Go(a){return a.inclusiveRight?1:0}function Tn(a,b){var ne=a.lines.length-b.lines.length;if(ne!=0)return ne;var te=a.find(),ue=b.find(),Ne=pn(te.from,ue.from)||bo(a)-bo(b);if(Ne)return-Ne;var et=pn(te.to,ue.to)||Go(a)-Go(b);return et||b.id-a.id}function Lo(a,b){var ne=wi&&a.markedSpans,te;if(ne)for(var ue=void 0,Ne=0;Ne<ne.length;++Ne)ue=ne[Ne],ue.marker.collapsed&&(b?ue.from:ue.to)==null&&(!te||Tn(te,ue.marker)<0)&&(te=ue.marker);return te}function Gi(a){return Lo(a,!0)}function jr(a){return Lo(a,!1)}function Jr(a,b){var ne=wi&&a.markedSpans,te;if(ne)for(var ue=0;ue<ne.length;++ue){var Ne=ne[ue];Ne.marker.collapsed&&(Ne.from==null||Ne.from<b)&&(Ne.to==null||Ne.to>b)&&(!te||Tn(te,Ne.marker)<0)&&(te=Ne.marker)}return te}function ni(a,b,ne,te,ue){var Ne=fr(a,b),et=wi&&Ne.markedSpans;if(et)for(var vt=0;vt<et.length;++vt){var St=et[vt];if(St.marker.collapsed){var _t=St.marker.find(0),Ln=pn(_t.from,ne)||bo(St.marker)-bo(ue),Hn=pn(_t.to,te)||Go(St.marker)-Go(ue);if(!(Ln>=0&&Hn<=0||Ln<=0&&Hn>=0)&&(Ln<=0&&(St.marker.inclusiveRight&&ue.inclusiveLeft?pn(_t.to,ne)>=0:pn(_t.to,ne)>0)||Ln>=0&&(St.marker.inclusiveRight&&ue.inclusiveLeft?pn(_t.from,te)<=0:pn(_t.from,te)<0)))return!0}}}function Wr(a){for(var b;b=Gi(a);)a=b.find(-1,!0).line;return a}function Ui(a){for(var b;b=jr(a);)a=b.find(1,!0).line;return a}function to(a){for(var b,ne;b=jr(a);)a=b.find(1,!0).line,(ne||(ne=[])).push(a);return ne}function $r(a,b){var ne=fr(a,b),te=Wr(ne);return ne==te?b:un(te)}function oi(a,b){if(b>a.lastLine())return b;var ne=fr(a,b),te;if(!yr(a,ne))return b;for(;te=jr(ne);)ne=te.find(1,!0).line;return un(ne)+1}function yr(a,b){var ne=wi&&b.markedSpans;if(ne){for(var te=void 0,ue=0;ue<ne.length;++ue)if(te=ne[ue],!!te.marker.collapsed){if(te.from==null)return!0;if(!te.marker.widgetNode&&te.from==0&&te.marker.inclusiveLeft&&qr(a,b,te))return!0}}}function qr(a,b,ne){if(ne.to==null){var te=ne.marker.find(1,!0);return qr(a,te.line,Ji(te.line.markedSpans,ne.marker))}if(ne.marker.inclusiveRight&&ne.to==b.text.length)return!0;for(var ue=void 0,Ne=0;Ne<b.markedSpans.length;++Ne)if(ue=b.markedSpans[Ne],ue.marker.collapsed&&!ue.marker.widgetNode&&ue.from==ne.to&&(ue.to==null||ue.to!=ne.from)&&(ue.marker.inclusiveLeft||ne.marker.inclusiveRight)&&qr(a,b,ue))return!0}function Ao(a){a=Wr(a);for(var b=0,ne=a.parent,te=0;te<ne.lines.length;++te){var ue=ne.lines[te];if(ue==a)break;b+=ue.height}for(var Ne=ne.parent;Ne;ne=Ne,Ne=ne.parent)for(var et=0;et<Ne.children.length;++et){var vt=Ne.children[et];if(vt==ne)break;b+=vt.height}return b}function Jo(a){if(a.height==0)return 0;for(var b=a.text.length,ne,te=a;ne=Gi(te);){var ue=ne.find(0,!0);te=ue.from.line,b+=ue.from.ch-ue.to.ch}for(te=a;ne=jr(te);){var Ne=ne.find(0,!0);b-=te.text.length-Ne.from.ch,te=Ne.to.line,b+=te.text.length-Ne.to.ch}return b}function _o(a){var b=a.display,ne=a.doc;b.maxLine=fr(ne,ne.first),b.maxLineLength=Jo(b.maxLine),b.maxLineChanged=!0,ne.iter(function(te){var ue=Jo(te);ue>b.maxLineLength&&(b.maxLineLength=ue,b.maxLine=te)})}var pa=function(a,b,ne){this.text=a,eo(this,b),this.height=ne?ne(this):1};pa.prototype.lineNo=function(){return un(this)},Ut(pa);function No(a,b,ne,te){a.text=b,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),wo(a),eo(a,ne);var ue=te?te(a):1;ue!=a.height&&Gt(a,ue)}function qo(a){a.parent=null,wo(a)}var Ro={},oa={};function da(a,b){if(!a||/^\s*$/.test(a))return null;var ne=b.addModeClass?oa:Ro;return ne[a]||(ne[a]=a.replace(/\S+/g,"cm-$&"))}function Ka(a,b){var ne=bt("span",null,null,Ue?"padding-right: .1px":null),te={pre:bt("pre",[ne],"CodeMirror-line"),content:ne,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};b.measure={};for(var ue=0;ue<=(b.rest?b.rest.length:0);ue++){var Ne=ue?b.rest[ue-1]:b.line,et=void 0;te.pos=0,te.addToken=js,zr(a.display.measure)&&(et=Ct(Ne,a.doc.direction))&&(te.addToken=fs(te.addToken,et)),te.map=[];var vt=b!=a.display.externalMeasured&&un(Ne);go(Ne,te,Bi(a,Ne,vt)),Ne.styleClasses&&(Ne.styleClasses.bgClass&&(te.bgClass=Nt(Ne.styleClasses.bgClass,te.bgClass||"")),Ne.styleClasses.textClass&&(te.textClass=Nt(Ne.styleClasses.textClass,te.textClass||""))),te.map.length==0&&te.map.push(0,0,te.content.appendChild(Lr(a.display.measure))),ue==0?(b.measure.map=te.map,b.measure.cache={}):((b.measure.maps||(b.measure.maps=[])).push(te.map),(b.measure.caches||(b.measure.caches=[])).push({}))}if(Ue){var St=te.content.lastChild;(/\bcm-tab\b/.test(St.className)||St.querySelector&&St.querySelector(".cm-tab"))&&(te.content.className="cm-tab-wrap-hack")}return sn(a,"renderLine",a,b.line,te.pre),te.pre.className&&(te.textClass=Nt(te.pre.className,te.textClass||"")),te}function _s(a){var b=pt("span","\u2022","cm-invalidchar");return b.title="\\u"+a.charCodeAt(0).toString(16),b.setAttribute("aria-label",b.title),b}function js(a,b,ne,te,ue,Ne,et){if(b){var vt=a.splitSpaces?as(b,a.trailingSpace):b,St=a.cm.state.specialChars,_t=!1,Ln;if(!St.test(b))a.col+=b.length,Ln=document.createTextNode(vt),a.map.push(a.pos,a.pos+b.length,Ln),ze&&Le<9&&(_t=!0),a.pos+=b.length;else{Ln=document.createDocumentFragment();for(var Hn=0;;){St.lastIndex=Hn;var Tr=St.exec(b),Er=Tr?Tr.index-Hn:b.length-Hn;if(Er){var xi=document.createTextNode(vt.slice(Hn,Hn+Er));ze&&Le<9?Ln.appendChild(pt("span",[xi])):Ln.appendChild(xi),a.map.push(a.pos,a.pos+Er,xi),a.col+=Er,a.pos+=Er}if(!Tr)break;Hn+=Er+1;var Ki=void 0;if(Tr[0]==" "){var uo=a.cm.options.tabSize,Fo=uo-a.col%uo;Ki=Ln.appendChild(pt("span",mn(Fo),"cm-tab")),Ki.setAttribute("role","presentation"),Ki.setAttribute("cm-text"," "),a.col+=Fo}else Tr[0]=="\r"||Tr[0]==`
`?(Ki=Ln.appendChild(pt("span",Tr[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ki.setAttribute("cm-text",Tr[0]),a.col+=1):(Ki=a.cm.options.specialCharPlaceholder(Tr[0]),Ki.setAttribute("cm-text",Tr[0]),ze&&Le<9?Ln.appendChild(pt("span",[Ki])):Ln.appendChild(Ki),a.col+=1);a.map.push(a.pos,a.pos+1,Ki),a.pos++}}if(a.trailingSpace=vt.charCodeAt(b.length-1)==32,ne||te||ue||_t||Ne||et){var Ko=ne||"";te&&(Ko+=te),ue&&(Ko+=ue);var Io=pt("span",[Ln],Ko,Ne);if(et)for(var ua in et)et.hasOwnProperty(ua)&&ua!="style"&&ua!="class"&&Io.setAttribute(ua,et[ua]);return a.content.appendChild(Io)}a.content.appendChild(Ln)}}function as(a,b){if(a.length>1&&!/ /.test(a))return a;for(var ne=b,te="",ue=0;ue<a.length;ue++){var Ne=a.charAt(ue);Ne==" "&&ne&&(ue==a.length-1||a.charCodeAt(ue+1)==32)&&(Ne="\xA0"),te+=Ne,ne=Ne==" "}return te}function fs(a,b){return function(ne,te,ue,Ne,et,vt,St){ue=ue?ue+" cm-force-border":"cm-force-border";for(var _t=ne.pos,Ln=_t+te.length;;){for(var Hn=void 0,Tr=0;Tr<b.length&&(Hn=b[Tr],!(Hn.to>_t&&Hn.from<=_t));Tr++);if(Hn.to>=Ln)return a(ne,te,ue,Ne,et,vt,St);a(ne,te.slice(0,Hn.to-_t),ue,Ne,null,vt,St),Ne=null,te=te.slice(Hn.to-_t),_t=Hn.to}}}function Mo(a,b,ne,te){var ue=!te&&ne.widgetNode;ue&&a.map.push(a.pos,a.pos+b,ue),!te&&a.cm.display.input.needsContentAttribute&&(ue||(ue=a.content.appendChild(document.createElement("span"))),ue.setAttribute("cm-marker",ne.id)),ue&&(a.cm.display.input.setUneditable(ue),a.content.appendChild(ue)),a.pos+=b,a.trailingSpace=!1}function go(a,b,ne){var te=a.markedSpans,ue=a.text,Ne=0;if(!te){for(var et=1;et<ne.length;et+=2)b.addToken(b,ue.slice(Ne,Ne=ne[et]),da(ne[et+1],b.cm.options));return}for(var vt=ue.length,St=0,_t=1,Ln="",Hn,Tr,Er=0,xi,Ki,uo,Fo,Ko;;){if(Er==St){xi=Ki=uo=Tr="",Ko=null,Fo=null,Er=1/0;for(var Io=[],ua=void 0,Da=0;Da<te.length;++Da){var Ca=te[Da],Ra=Ca.marker;if(Ra.type=="bookmark"&&Ca.from==St&&Ra.widgetNode)Io.push(Ra);else if(Ca.from<=St&&(Ca.to==null||Ca.to>St||Ra.collapsed&&Ca.to==St&&Ca.from==St)){if(Ca.to!=null&&Ca.to!=St&&Er>Ca.to&&(Er=Ca.to,Ki=""),Ra.className&&(xi+=" "+Ra.className),Ra.css&&(Tr=(Tr?Tr+";":"")+Ra.css),Ra.startStyle&&Ca.from==St&&(uo+=" "+Ra.startStyle),Ra.endStyle&&Ca.to==Er&&(ua||(ua=[])).push(Ra.endStyle,Ca.to),Ra.title&&((Ko||(Ko={})).title=Ra.title),Ra.attributes)for(var _l in Ra.attributes)(Ko||(Ko={}))[_l]=Ra.attributes[_l];Ra.collapsed&&(!Fo||Tn(Fo.marker,Ra)<0)&&(Fo=Ca)}else Ca.from>St&&Er>Ca.from&&(Er=Ca.from)}if(ua)for(var zu=0;zu<ua.length;zu+=2)ua[zu+1]==Er&&(Ki+=" "+ua[zu]);if(!Fo||Fo.from==St)for(var tu=0;tu<Io.length;++tu)Mo(b,0,Io[tu]);if(Fo&&(Fo.from||0)==St){if(Mo(b,(Fo.to==null?vt+1:Fo.to)-St,Fo.marker,Fo.from==null),Fo.to==null)return;Fo.to==St&&(Fo=!1)}}if(St>=vt)break;for(var gc=Math.min(vt,Er);;){if(Ln){var Yu=St+Ln.length;if(!Fo){var ku=Yu>gc?Ln.slice(0,gc-St):Ln;b.addToken(b,ku,Hn?Hn+xi:xi,uo,St+ku.length==Er?Ki:"",Tr,Ko)}if(Yu>=gc){Ln=Ln.slice(gc-St),St=gc;break}St=Yu,uo=""}Ln=ue.slice(Ne,Ne=ne[_t++]),Hn=da(ne[_t++],b.cm.options)}}}function Fa(a,b,ne){this.line=b,this.rest=to(b),this.size=this.rest?un(Dt(this.rest))-ne+1:1,this.node=this.text=null,this.hidden=yr(a,b)}function gs(a,b,ne){for(var te=[],ue,Ne=b;Ne<ne;Ne=ue){var et=new Fa(a.doc,fr(a.doc,Ne),Ne);ue=Ne+et.size,te.push(et)}return te}var nl=null;function rl(a){nl?nl.ops.push(a):a.ownsGroup=nl={ops:[a],delayedCallbacks:[]}}function il(a){var b=a.delayedCallbacks,ne=0;do{for(;ne<b.length;ne++)b[ne].call(null);for(var te=0;te<a.ops.length;te++){var ue=a.ops[te];if(ue.cursorActivityHandlers)for(;ue.cursorActivityCalled<ue.cursorActivityHandlers.length;)ue.cursorActivityHandlers[ue.cursorActivityCalled++].call(null,ue.cm)}}while(ne<b.length)}function yl(a,b){var ne=a.ownsGroup;if(ne)try{il(ne)}finally{nl=null,b(ne)}}var su=null;function ol(a,b){var ne=Zt(a,b);if(ne.length){var te=Array.prototype.slice.call(arguments,2),ue;nl?ue=nl.delayedCallbacks:su?ue=su:(ue=su=[],setTimeout(jl,0));for(var Ne=function(vt){ue.push(function(){return ne[vt].apply(null,te)})},et=0;et<ne.length;++et)Ne(et)}}function jl(){var a=su;su=null;for(var b=0;b<a.length;++b)a[b]()}function Lu(a,b,ne,te){for(var ue=0;ue<b.changes.length;ue++){var Ne=b.changes[ue];Ne=="text"?_c(a,b):Ne=="gutter"?Ea(a,b,ne,te):Ne=="class"?ma(a,b):Ne=="widget"&&ha(a,b,te)}b.changes=null}function Xl(a){return a.node==a.text&&(a.node=pt("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),ze&&Le<8&&(a.node.style.zIndex=2)),a.node}function wl(a,b){var ne=b.bgClass?b.bgClass+" "+(b.line.bgClass||""):b.line.bgClass;if(ne&&(ne+=" CodeMirror-linebackground"),b.background)ne?b.background.className=ne:(b.background.parentNode.removeChild(b.background),b.background=null);else if(ne){var te=Xl(b);b.background=te.insertBefore(pt("div",null,ne),te.firstChild),a.display.input.setUneditable(b.background)}}function ec(a,b){var ne=a.display.externalMeasured;return ne&&ne.line==b.line?(a.display.externalMeasured=null,b.measure=ne.measure,ne.built):Ka(a,b)}function _c(a,b){var ne=b.text.className,te=ec(a,b);b.text==b.node&&(b.node=te.pre),b.text.parentNode.replaceChild(te.pre,b.text),b.text=te.pre,te.bgClass!=b.bgClass||te.textClass!=b.textClass?(b.bgClass=te.bgClass,b.textClass=te.textClass,ma(a,b)):ne&&(b.text.className=ne)}function ma(a,b){wl(a,b),b.line.wrapClass?Xl(b).className=b.line.wrapClass:b.node!=b.text&&(b.node.className="");var ne=b.textClass?b.textClass+" "+(b.line.textClass||""):b.line.textClass;b.text.className=ne||""}function Ea(a,b,ne,te){if(b.gutter&&(b.node.removeChild(b.gutter),b.gutter=null),b.gutterBackground&&(b.node.removeChild(b.gutterBackground),b.gutterBackground=null),b.line.gutterClass){var ue=Xl(b);b.gutterBackground=pt("div",null,"CodeMirror-gutter-background "+b.line.gutterClass,"left: "+(a.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px; width: "+te.gutterTotalWidth+"px"),a.display.input.setUneditable(b.gutterBackground),ue.insertBefore(b.gutterBackground,b.text)}var Ne=b.line.gutterMarkers;if(a.options.lineNumbers||Ne){var et=Xl(b),vt=b.gutter=pt("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px");if(a.display.input.setUneditable(vt),et.insertBefore(vt,b.text),b.line.gutterClass&&(vt.className+=" "+b.line.gutterClass),a.options.lineNumbers&&(!Ne||!Ne["CodeMirror-linenumbers"])&&(b.lineNumber=vt.appendChild(pt("div",dn(a.options,ne),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+te.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),Ne)for(var St=0;St<a.display.gutterSpecs.length;++St){var _t=a.display.gutterSpecs[St].className,Ln=Ne.hasOwnProperty(_t)&&Ne[_t];Ln&&vt.appendChild(pt("div",[Ln],"CodeMirror-gutter-elt","left: "+te.gutterLeft[_t]+"px; width: "+te.gutterWidth[_t]+"px"))}}}function ha(a,b,ne){b.alignable&&(b.alignable=null);for(var te=qe("CodeMirror-linewidget"),ue=b.node.firstChild,Ne=void 0;ue;ue=Ne)Ne=ue.nextSibling,te.test(ue.className)&&b.node.removeChild(ue);Ja(a,b,ne)}function wa(a,b,ne,te){var ue=ec(a,b);return b.text=b.node=ue.pre,ue.bgClass&&(b.bgClass=ue.bgClass),ue.textClass&&(b.textClass=ue.textClass),ma(a,b),Ea(a,b,ne,te),Ja(a,b,te),b.node}function Ja(a,b,ne){if(Ga(a,b.line,b,ne,!0),b.rest)for(var te=0;te<b.rest.length;te++)Ga(a,b.rest[te],b,ne,!1)}function Ga(a,b,ne,te,ue){if(b.widgets)for(var Ne=Xl(ne),et=0,vt=b.widgets;et<vt.length;++et){var St=vt[et],_t=pt("div",[St.node],"CodeMirror-linewidget"+(St.className?" "+St.className:""));St.handleMouseEvents||_t.setAttribute("cm-ignore-events","true"),$a(St,_t,ne,te),a.display.input.setUneditable(_t),ue&&St.above?Ne.insertBefore(_t,ne.gutter||ne.text):Ne.appendChild(_t),ol(St,"redraw")}}function $a(a,b,ne,te){if(a.noHScroll){(ne.alignable||(ne.alignable=[])).push(b);var ue=te.wrapperWidth;b.style.left=te.fixedPos+"px",a.coverGutter||(ue-=te.gutterTotalWidth,b.style.paddingLeft=te.gutterTotalWidth+"px"),b.style.width=ue+"px"}a.coverGutter&&(b.style.zIndex=5,b.style.position="relative",a.noHScroll||(b.style.marginLeft=-te.gutterTotalWidth+"px"))}function Ql(a){if(a.height!=null)return a.height;var b=a.doc.cm;if(!b)return 0;if(!ht(document.body,a.node)){var ne="position: relative;";a.coverGutter&&(ne+="margin-left: -"+b.display.gutters.offsetWidth+"px;"),a.noHScroll&&(ne+="width: "+b.display.wrapper.clientWidth+"px;"),ot(b.display.measure,pt("div",[a.node],null,ne))}return a.height=a.node.parentNode.offsetHeight}function fu(a,b){for(var ne=Wt(b);ne!=a.wrapper;ne=ne.parentNode)if(!ne||ne.nodeType==1&&ne.getAttribute("cm-ignore-events")=="true"||ne.parentNode==a.sizer&&ne!=a.mover)return!0}function kl(a){return a.lineSpace.offsetTop}function Hi(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Vo(a){if(a.cachedPaddingH)return a.cachedPaddingH;var b=ot(a.measure,pt("pre","x","CodeMirror-line-like")),ne=window.getComputedStyle?window.getComputedStyle(b):b.currentStyle,te={left:parseInt(ne.paddingLeft),right:parseInt(ne.paddingRight)};return!isNaN(te.left)&&!isNaN(te.right)&&(a.cachedPaddingH=te),te}function Ma(a){return $t-a.display.nativeBarWidth}function Hl(a){return a.display.scroller.clientWidth-Ma(a)-a.display.barWidth}function ks(a){return a.display.scroller.clientHeight-Ma(a)-a.display.barHeight}function zl(a,b,ne){var te=a.options.lineWrapping,ue=te&&Hl(a);if(!b.measure.heights||te&&b.measure.width!=ue){var Ne=b.measure.heights=[];if(te){b.measure.width=ue;for(var et=b.text.firstChild.getClientRects(),vt=0;vt<et.length-1;vt++){var St=et[vt],_t=et[vt+1];Math.abs(St.bottom-_t.bottom)>2&&Ne.push((St.bottom+_t.top)/2-ne.top)}}Ne.push(ne.bottom-ne.top)}}function pl(a,b,ne){if(a.line==b)return{map:a.measure.map,cache:a.measure.cache};for(var te=0;te<a.rest.length;te++)if(a.rest[te]==b)return{map:a.measure.maps[te],cache:a.measure.caches[te]};for(var ue=0;ue<a.rest.length;ue++)if(un(a.rest[ue])>ne)return{map:a.measure.maps[ue],cache:a.measure.caches[ue],before:!0}}function eA(a,b){b=Wr(b);var ne=un(b),te=a.display.externalMeasured=new Fa(a.doc,b,ne);te.lineN=ne;var ue=te.built=Ka(a,te);return te.text=ue.pre,ot(a.display.lineMeasure,ue.pre),te}function Bc(a,b,ne,te){return ns(a,ss(a,b),ne,te)}function tc(a,b){if(b>=a.display.viewFrom&&b<a.display.viewTo)return a.display.view[hA(a,b)];var ne=a.display.externalMeasured;if(ne&&b>=ne.lineN&&b<ne.lineN+ne.size)return ne}function ss(a,b){var ne=un(b),te=tc(a,ne);te&&!te.text?te=null:te&&te.changes&&(Lu(a,te,ne,rA(a)),a.curOp.forceUpdate=!0),te||(te=eA(a,b));var ue=pl(te,b,ne);return{line:b,view:te,rect:null,map:ue.map,cache:ue.cache,before:ue.before,hasHeights:!1}}function ns(a,b,ne,te,ue){b.before&&(ne=-1);var Ne=ne+(te||""),et;return b.cache.hasOwnProperty(Ne)?et=b.cache[Ne]:(b.rect||(b.rect=b.view.text.getBoundingClientRect()),b.hasHeights||(zl(a,b.view,b.rect),b.hasHeights=!0),et=Sl(a,b,ne,te),et.bogus||(b.cache[Ne]=et)),{left:et.left,right:et.right,top:ue?et.rtop:et.top,bottom:ue?et.rbottom:et.bottom}}var KA={left:0,right:0,top:0,bottom:0};function tA(a,b,ne){for(var te,ue,Ne,et,vt,St,_t=0;_t<a.length;_t+=3)if(vt=a[_t],St=a[_t+1],b<vt?(ue=0,Ne=1,et="left"):b<St?(ue=b-vt,Ne=ue+1):(_t==a.length-3||b==St&&a[_t+3]>b)&&(Ne=St-vt,ue=Ne-1,b>=St&&(et="right")),ue!=null){if(te=a[_t+2],vt==St&&ne==(te.insertLeft?"left":"right")&&(et=ne),ne=="left"&&ue==0)for(;_t&&a[_t-2]==a[_t-3]&&a[_t-1].insertLeft;)te=a[(_t-=3)+2],et="left";if(ne=="right"&&ue==St-vt)for(;_t<a.length-3&&a[_t+3]==a[_t+4]&&!a[_t+5].insertLeft;)te=a[(_t+=3)+2],et="right";break}return{node:te,start:ue,end:Ne,collapse:et,coverStart:vt,coverEnd:St}}function Qs(a,b){var ne=KA;if(b=="left")for(var te=0;te<a.length&&(ne=a[te]).left==ne.right;te++);else for(var ue=a.length-1;ue>=0&&(ne=a[ue]).left==ne.right;ue--);return ne}function Sl(a,b,ne,te){var ue=tA(b.map,ne,te),Ne=ue.node,et=ue.start,vt=ue.end,St=ue.collapse,_t;if(Ne.nodeType==3){for(var Ln=0;Ln<4;Ln++){for(;et&&We(b.line.text.charAt(ue.coverStart+et));)--et;for(;ue.coverStart+vt<ue.coverEnd&&We(b.line.text.charAt(ue.coverStart+vt));)++vt;if(ze&&Le<9&&et==0&&vt==ue.coverEnd-ue.coverStart?_t=Ne.parentNode.getBoundingClientRect():_t=Qs(He(Ne,et,vt).getClientRects(),te),_t.left||_t.right||et==0)break;vt=et,et=et-1,St="right"}ze&&Le<11&&(_t=Hc(a.display.measure,_t))}else{et>0&&(St=te="right");var Hn;a.options.lineWrapping&&(Hn=Ne.getClientRects()).length>1?_t=Hn[te=="right"?Hn.length-1:0]:_t=Ne.getBoundingClientRect()}if(ze&&Le<9&&!et&&(!_t||!_t.left&&!_t.right)){var Tr=Ne.parentNode.getClientRects()[0];Tr?_t={left:Tr.left,right:Tr.left+nA(a.display),top:Tr.top,bottom:Tr.bottom}:_t=KA}for(var Er=_t.top-b.rect.top,xi=_t.bottom-b.rect.top,Ki=(Er+xi)/2,uo=b.view.measure.heights,Fo=0;Fo<uo.length-1&&!(Ki<uo[Fo]);Fo++);var Ko=Fo?uo[Fo-1]:0,Io=uo[Fo],ua={left:(St=="right"?_t.right:_t.left)-b.rect.left,right:(St=="left"?_t.left:_t.right)-b.rect.left,top:Ko,bottom:Io};return!_t.left&&!_t.right&&(ua.bogus=!0),a.options.singleCursorHeightPerLine||(ua.rtop=Er,ua.rbottom=xi),ua}function Hc(a,b){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!qn(a))return b;var ne=screen.logicalXDPI/screen.deviceXDPI,te=screen.logicalYDPI/screen.deviceYDPI;return{left:b.left*ne,right:b.right*ne,top:b.top*te,bottom:b.bottom*te}}function zc(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var b=0;b<a.rest.length;b++)a.measure.caches[b]={}}function ml(a){a.display.externalMeasure=null,ct(a.display.lineMeasure);for(var b=0;b<a.display.view.length;b++)zc(a.display.view[b])}function _u(a){ml(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function Ws(){return xe&&Te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Gs(){return xe&&Te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function lu(a){var b=0;if(a.widgets)for(var ne=0;ne<a.widgets.length;++ne)a.widgets[ne].above&&(b+=Ql(a.widgets[ne]));return b}function NA(a,b,ne,te,ue){if(!ue){var Ne=lu(b);ne.top+=Ne,ne.bottom+=Ne}if(te=="line")return ne;te||(te="local");var et=Ao(b);if(te=="local"?et+=kl(a.display):et-=a.display.viewOffset,te=="page"||te=="window"){var vt=a.display.lineSpace.getBoundingClientRect();et+=vt.top+(te=="window"?0:Gs());var St=vt.left+(te=="window"?0:Ws());ne.left+=St,ne.right+=St}return ne.top+=et,ne.bottom+=et,ne}function $A(a,b,ne){if(ne=="div")return b;var te=b.left,ue=b.top;if(ne=="page")te-=Ws(),ue-=Gs();else if(ne=="local"||!ne){var Ne=a.display.sizer.getBoundingClientRect();te+=Ne.left,ue+=Ne.top}var et=a.display.lineSpace.getBoundingClientRect();return{left:te-et.left,top:ue-et.top}}function uu(a,b,ne,te,ue){return te||(te=fr(a.doc,b.line)),NA(a,te,Bc(a,te,b.ch,ue),ne)}function hu(a,b,ne,te,ue,Ne){te=te||fr(a.doc,b.line),ue||(ue=ss(a,te));function et(xi,Ki){var uo=ns(a,ue,xi,Ki?"right":"left",Ne);return Ki?uo.left=uo.right:uo.right=uo.left,NA(a,te,uo,ne)}var vt=Ct(te,a.doc.direction),St=b.ch,_t=b.sticky;if(St>=te.text.length?(St=te.text.length,_t="before"):St<=0&&(St=0,_t="after"),!vt)return et(_t=="before"?St-1:St,_t=="before");function Ln(xi,Ki,uo){var Fo=vt[Ki],Ko=Fo.level==1;return et(uo?xi-1:xi,Ko!=uo)}var Hn=Lt(vt,St,_t),Tr=Et,Er=Ln(St,Hn,_t=="before");return Tr!=null&&(Er.other=Ln(St,Tr,_t!="before")),Er}function Oa(a,b){var ne=0;b=cr(a.doc,b),a.options.lineWrapping||(ne=nA(a.display)*b.ch);var te=fr(a.doc,b.line),ue=Ao(te)+kl(a.display);return{left:ne,right:ne,top:ue,bottom:ue+te.height}}function Ua(a,b,ne,te,ue){var Ne=Kt(a,b,ne);return Ne.xRel=ue,te&&(Ne.outside=te),Ne}function Ms(a,b,ne){var te=a.doc;if(ne+=a.display.viewOffset,ne<0)return Ua(te.first,0,null,-1,-1);var ue=wn(te,ne),Ne=te.first+te.size-1;if(ue>Ne)return Ua(te.first+te.size-1,fr(te,Ne).text.length,null,1,1);b<0&&(b=0);for(var et=fr(te,ue);;){var vt=Kc(a,et,ue,b,ne),St=Jr(et,vt.ch+(vt.xRel>0||vt.outside>0?1:0));if(!St)return vt;var _t=St.find(1);if(_t.line==ue)return _t;et=fr(te,ue=_t.line)}}function nc(a,b,ne,te){te-=lu(b);var ue=b.text.length,Ne=mt(function(et){return ns(a,ne,et-1).bottom<=te},ue,0);return ue=mt(function(et){return ns(a,ne,et).top>te},Ne,ue),{begin:Ne,end:ue}}function Yl(a,b,ne,te){ne||(ne=ss(a,b));var ue=NA(a,b,ns(a,ne,te),"line").top;return nc(a,b,ne,ue)}function pu(a,b,ne,te){return a.bottom<=ne?!1:a.top>ne?!0:(te?a.left:a.right)>b}function Kc(a,b,ne,te,ue){ue-=Ao(b);var Ne=ss(a,b),et=lu(b),vt=0,St=b.text.length,_t=!0,Ln=Ct(b,a.doc.direction);if(Ln){var Hn=(a.options.lineWrapping?fA:hc)(a,b,ne,Ne,Ln,te,ue);_t=Hn.level!=1,vt=_t?Hn.from:Hn.to-1,St=_t?Hn.to:Hn.from-1}var Tr=null,Er=null,xi=mt(function(Da){var Ca=ns(a,Ne,Da);return Ca.top+=et,Ca.bottom+=et,pu(Ca,te,ue,!1)?(Ca.top<=ue&&Ca.left<=te&&(Tr=Da,Er=Ca),!0):!1},vt,St),Ki,uo,Fo=!1;if(Er){var Ko=te-Er.left<Er.right-te,Io=Ko==_t;xi=Tr+(Io?0:1),uo=Io?"after":"before",Ki=Ko?Er.left:Er.right}else{!_t&&(xi==St||xi==vt)&&xi++,uo=xi==0?"after":xi==b.text.length?"before":ns(a,Ne,xi-(_t?1:0)).bottom+et<=ue==_t?"after":"before";var ua=hu(a,Kt(ne,xi,uo),"line",b,Ne);Ki=ua.left,Fo=ue<ua.top?-1:ue>=ua.bottom?1:0}return xi=st(b.text,xi,1),Ua(ne,xi,uo,Fo,te-Ki)}function hc(a,b,ne,te,ue,Ne,et){var vt=mt(function(Hn){var Tr=ue[Hn],Er=Tr.level!=1;return pu(hu(a,Kt(ne,Er?Tr.to:Tr.from,Er?"before":"after"),"line",b,te),Ne,et,!0)},0,ue.length-1),St=ue[vt];if(vt>0){var _t=St.level!=1,Ln=hu(a,Kt(ne,_t?St.from:St.to,_t?"after":"before"),"line",b,te);pu(Ln,Ne,et,!0)&&Ln.top>et&&(St=ue[vt-1])}return St}function fA(a,b,ne,te,ue,Ne,et){var vt=nc(a,b,te,et),St=vt.begin,_t=vt.end;/\s/.test(b.text.charAt(_t-1))&&_t--;for(var Ln=null,Hn=null,Tr=0;Tr<ue.length;Tr++){var Er=ue[Tr];if(!(Er.from>=_t||Er.to<=St)){var xi=Er.level!=1,Ki=ns(a,te,xi?Math.min(_t,Er.to)-1:Math.max(St,Er.from)).right,uo=Ki<Ne?Ne-Ki+1e9:Ki-Ne;(!Ln||Hn>uo)&&(Ln=Er,Hn=uo)}}return Ln||(Ln=ue[ue.length-1]),Ln.from<St&&(Ln={from:St,to:Ln.to,level:Ln.level}),Ln.to>_t&&(Ln={from:Ln.from,to:_t,level:Ln.level}),Ln}var Jl;function pc(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Jl==null){Jl=pt("pre",null,"CodeMirror-line-like");for(var b=0;b<49;++b)Jl.appendChild(document.createTextNode("x")),Jl.appendChild(pt("br"));Jl.appendChild(document.createTextNode("x"))}ot(a.measure,Jl);var ne=Jl.offsetHeight/50;return ne>3&&(a.cachedTextHeight=ne),ct(a.measure),ne||1}function nA(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var b=pt("span","xxxxxxxxxx"),ne=pt("pre",[b],"CodeMirror-line-like");ot(a.measure,ne);var te=b.getBoundingClientRect(),ue=(te.right-te.left)/10;return ue>2&&(a.cachedCharWidth=ue),ue||10}function rA(a){for(var b=a.display,ne={},te={},ue=b.gutters.clientLeft,Ne=b.gutters.firstChild,et=0;Ne;Ne=Ne.nextSibling,++et){var vt=a.display.gutterSpecs[et].className;ne[vt]=Ne.offsetLeft+Ne.clientLeft+ue,te[vt]=Ne.clientWidth}return{fixedPos:Ed(b),gutterTotalWidth:b.gutters.offsetWidth,gutterLeft:ne,gutterWidth:te,wrapperWidth:b.wrapper.clientWidth}}function Ed(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Jf(a){var b=pc(a.display),ne=a.options.lineWrapping,te=ne&&Math.max(5,a.display.scroller.clientWidth/nA(a.display)-3);return function(ue){if(yr(a.doc,ue))return 0;var Ne=0;if(ue.widgets)for(var et=0;et<ue.widgets.length;et++)ue.widgets[et].height&&(Ne+=ue.widgets[et].height);return ne?Ne+(Math.ceil(ue.text.length/te)||1)*b:Ne+b}}function nd(a){var b=a.doc,ne=Jf(a);b.iter(function(te){var ue=ne(te);ue!=te.height&&Gt(te,ue)})}function OA(a,b,ne,te){var ue=a.display;if(!ne&&Wt(b).getAttribute("cm-not-content")=="true")return null;var Ne,et,vt=ue.lineSpace.getBoundingClientRect();try{Ne=b.clientX-vt.left,et=b.clientY-vt.top}catch(Hn){return null}var St=Ms(a,Ne,et),_t;if(te&&St.xRel>0&&(_t=fr(a.doc,St.line).text).length==St.ch){var Ln=Ze(_t,_t.length,a.options.tabSize)-_t.length;St=Kt(St.line,Math.max(0,Math.round((Ne-Vo(a.display).left)/nA(a.display))-Ln))}return St}function hA(a,b){if(b>=a.display.viewTo||(b-=a.display.viewFrom,b<0))return null;for(var ne=a.display.view,te=0;te<ne.length;te++)if(b-=ne[te].size,b<0)return te}function Nu(a,b,ne,te){b==null&&(b=a.doc.first),ne==null&&(ne=a.doc.first+a.doc.size),te||(te=0);var ue=a.display;if(te&&ne<ue.viewTo&&(ue.updateLineNumbers==null||ue.updateLineNumbers>b)&&(ue.updateLineNumbers=b),a.curOp.viewChanged=!0,b>=ue.viewTo)wi&&$r(a.doc,b)<ue.viewTo&&iA(a);else if(ne<=ue.viewFrom)wi&&oi(a.doc,ne+te)>ue.viewFrom?iA(a):(ue.viewFrom+=te,ue.viewTo+=te);else if(b<=ue.viewFrom&&ne>=ue.viewTo)iA(a);else if(b<=ue.viewFrom){var Ne=Sd(a,ne,ne+te,1);Ne?(ue.view=ue.view.slice(Ne.index),ue.viewFrom=Ne.lineN,ue.viewTo+=te):iA(a)}else if(ne>=ue.viewTo){var et=Sd(a,b,b,-1);et?(ue.view=ue.view.slice(0,et.index),ue.viewTo=et.lineN):iA(a)}else{var vt=Sd(a,b,b,-1),St=Sd(a,ne,ne+te,1);vt&&St?(ue.view=ue.view.slice(0,vt.index).concat(gs(a,vt.lineN,St.lineN)).concat(ue.view.slice(St.index)),ue.viewTo+=te):iA(a)}var _t=ue.externalMeasured;_t&&(ne<_t.lineN?_t.lineN+=te:b<_t.lineN+_t.size&&(ue.externalMeasured=null))}function DA(a,b,ne){a.curOp.viewChanged=!0;var te=a.display,ue=a.display.externalMeasured;if(ue&&b>=ue.lineN&&b<ue.lineN+ue.size&&(te.externalMeasured=null),!(b<te.viewFrom||b>=te.viewTo)){var Ne=te.view[hA(a,b)];if(Ne.node!=null){var et=Ne.changes||(Ne.changes=[]);ut(et,ne)==-1&&et.push(ne)}}}function iA(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Sd(a,b,ne,te){var ue=hA(a,b),Ne,et=a.display.view;if(!wi||ne==a.doc.first+a.doc.size)return{index:ue,lineN:ne};for(var vt=a.display.viewFrom,St=0;St<ue;St++)vt+=et[St].size;if(vt!=b){if(te>0){if(ue==et.length-1)return null;Ne=vt+et[ue].size-b,ue++}else Ne=vt-b;b+=Ne,ne+=Ne}for(;$r(a.doc,ne)!=ne;){if(ue==(te<0?0:et.length-1))return null;ne+=te*et[ue-(te<0?1:0)].size,ue+=te}return{index:ue,lineN:ne}}function qf(a,b,ne){var te=a.display,ue=te.view;ue.length==0||b>=te.viewTo||ne<=te.viewFrom?(te.view=gs(a,b,ne),te.viewFrom=b):(te.viewFrom>b?te.view=gs(a,b,te.viewFrom).concat(te.view):te.viewFrom<b&&(te.view=te.view.slice(hA(a,b))),te.viewFrom=b,te.viewTo<ne?te.view=te.view.concat(gs(a,te.viewTo,ne)):te.viewTo>ne&&(te.view=te.view.slice(0,hA(a,ne)))),te.viewTo=ne}function Ns(a){for(var b=a.display.view,ne=0,te=0;te<b.length;te++){var ue=b[te];!ue.hidden&&(!ue.node||ue.changes)&&++ne}return ne}function Wu(a){a.display.input.showSelection(a.display.input.prepareSelection())}function pA(a,b){b===void 0&&(b=!0);for(var ne=a.doc,te={},ue=te.cursors=document.createDocumentFragment(),Ne=te.selection=document.createDocumentFragment(),et=0;et<ne.sel.ranges.length;et++)if(!(!b&&et==ne.sel.primIndex)){var vt=ne.sel.ranges[et];if(!(vt.from().line>=a.display.viewTo||vt.to().line<a.display.viewFrom)){var St=vt.empty();(St||a.options.showCursorWhenSelecting)&&Ph(a,vt.head,ue),St||Th(a,vt,Ne)}}return te}function Ph(a,b,ne){var te=hu(a,b,"div",null,null,!a.options.singleCursorHeightPerLine),ue=ne.appendChild(pt("div","\xA0","CodeMirror-cursor"));if(ue.style.left=te.left+"px",ue.style.top=te.top+"px",ue.style.height=Math.max(0,te.bottom-te.top)*a.options.cursorHeight+"px",te.other){var Ne=ne.appendChild(pt("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Ne.style.display="",Ne.style.left=te.other.left+"px",Ne.style.top=te.other.top+"px",Ne.style.height=(te.other.bottom-te.other.top)*.85+"px"}}function $c(a,b){return a.top-b.top||a.left-b.left}function Th(a,b,ne){var te=a.display,ue=a.doc,Ne=document.createDocumentFragment(),et=Vo(a.display),vt=et.left,St=Math.max(te.sizerWidth,Hl(a)-te.sizer.offsetLeft)-et.right,_t=ue.direction=="ltr";function Ln(Io,ua,Da,Ca){ua<0&&(ua=0),ua=Math.round(ua),Ca=Math.round(Ca),Ne.appendChild(pt("div",null,"CodeMirror-selected","position: absolute; left: "+Io+`px;
top: `+ua+"px; width: "+(Da==null?St-Io:Da)+`px;
height: `+(Ca-ua)+"px"))}function Hn(Io,ua,Da){var Ca=fr(ue,Io),Ra=Ca.text.length,_l,zu;function tu(ku,vc){return uu(a,Kt(Io,ku),"div",Ca,vc)}function gc(ku,vc,lc){var Eo=Yl(a,Ca,null,ku),Gl=vc=="ltr"==(lc=="after")?"left":"right",nu=lc=="after"?Eo.begin:Eo.end-(/\s/.test(Ca.text.charAt(Eo.end-1))?2:1);return tu(nu,Gl)[Gl]}var Yu=Ct(Ca,ue.direction);return gt(Yu,ua||0,Da==null?Ra:Da,function(ku,vc,lc,Eo){var Gl=lc=="ltr",nu=tu(ku,Gl?"left":"right"),ru=tu(vc-1,Gl?"right":"left"),Of=ua==null&&ku==0,Ks=Da==null&&vc==Ra,Bs=Eo==0,oA=!Yu||Eo==Yu.length-1;if(ru.top-nu.top<=3){var uc=(_t?Of:Ks)&&Bs,dh=(_t?Ks:Of)&&oA,Pa=uc?vt:(Gl?nu:ru).left,SA=dh?St:(Gl?ru:nu).right;Ln(Pa,nu.top,SA-Pa,nu.bottom)}else{var hl,cc,kd,Df;Gl?(hl=_t&&Of&&Bs?vt:nu.left,cc=_t?St:gc(ku,lc,"before"),kd=_t?vt:gc(vc,lc,"after"),Df=_t&&Ks&&oA?St:ru.right):(hl=_t?gc(ku,lc,"before"):vt,cc=!_t&&Of&&Bs?St:nu.right,kd=!_t&&Ks&&oA?vt:ru.left,Df=_t?gc(vc,lc,"after"):St),Ln(hl,nu.top,cc-hl,nu.bottom),nu.bottom<ru.top&&Ln(vt,nu.bottom,null,ru.top),Ln(kd,ru.top,Df-kd,ru.bottom)}(!_l||$c(nu,_l)<0)&&(_l=nu),$c(ru,_l)<0&&(_l=ru),(!zu||$c(nu,zu)<0)&&(zu=nu),$c(ru,zu)<0&&(zu=ru)}),{start:_l,end:zu}}var Tr=b.from(),Er=b.to();if(Tr.line==Er.line)Hn(Tr.line,Tr.ch,Er.ch);else{var xi=fr(ue,Tr.line),Ki=fr(ue,Er.line),uo=Wr(xi)==Wr(Ki),Fo=Hn(Tr.line,Tr.ch,uo?xi.text.length+1:null).end,Ko=Hn(Er.line,uo?0:null,Er.ch).start;uo&&(Fo.top<Ko.top-2?(Ln(Fo.right,Fo.top,null,Fo.bottom),Ln(vt,Ko.top,Ko.left,Ko.bottom)):Ln(Fo.right,Fo.top,Ko.left-Fo.right,Fo.bottom)),Fo.bottom<Ko.top&&Ln(vt,Fo.bottom,null,Ko.top)}ne.appendChild(Ne)}function Fd(a){if(a.state.focused){var b=a.display;clearInterval(b.blinker);var ne=!0;b.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?b.blinker=setInterval(function(){a.hasFocus()||Zc(a),b.cursorDiv.style.visibility=(ne=!ne)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(b.cursorDiv.style.visibility="hidden")}}function eh(a){a.state.focused||(a.display.input.focus(),Cf(a))}function bf(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Zc(a))},100)}function Cf(a,b){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(sn(a,"focus",a,b),a.state.focused=!0,Re(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Ue&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Fd(a))}function Zc(a,b){a.state.delayingBlurEvent||(a.state.focused&&(sn(a,"blur",a,b),a.state.focused=!1,Ve(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function va(a){for(var b=a.display,ne=b.lineDiv.offsetTop,te=0;te<b.view.length;te++){var ue=b.view[te],Ne=a.options.lineWrapping,et=void 0,vt=0;if(!ue.hidden){if(ze&&Le<8){var St=ue.node.offsetTop+ue.node.offsetHeight;et=St-ne,ne=St}else{var _t=ue.node.getBoundingClientRect();et=_t.bottom-_t.top,!Ne&&ue.text.firstChild&&(vt=ue.text.firstChild.getBoundingClientRect().right-_t.left-1)}var Ln=ue.line.height-et;if((Ln>.005||Ln<-.005)&&(Gt(ue.line,et),Kl(ue.line),ue.rest))for(var Hn=0;Hn<ue.rest.length;Hn++)Kl(ue.rest[Hn]);if(vt>a.display.sizerWidth){var Tr=Math.ceil(vt/nA(a.display));Tr>a.display.maxLineLength&&(a.display.maxLineLength=Tr,a.display.maxLine=ue.line,a.display.maxLineChanged=!0)}}}}function Kl(a){if(a.widgets)for(var b=0;b<a.widgets.length;++b){var ne=a.widgets[b],te=ne.node.parentNode;te&&(ne.height=te.offsetHeight)}}function Nc(a,b,ne){var te=ne&&ne.top!=null?Math.max(0,ne.top):a.scroller.scrollTop;te=Math.floor(te-kl(a));var ue=ne&&ne.bottom!=null?ne.bottom:te+a.wrapper.clientHeight,Ne=wn(b,te),et=wn(b,ue);if(ne&&ne.ensure){var vt=ne.ensure.from.line,St=ne.ensure.to.line;vt<Ne?(Ne=vt,et=wn(b,Ao(fr(b,vt))+a.wrapper.clientHeight)):Math.min(St,b.lastLine())>=et&&(Ne=wn(b,Ao(fr(b,St))-a.wrapper.clientHeight),et=St)}return{from:Ne,to:Math.max(et,Ne+1)}}function rd(a,b){if(!en(a,"scrollCursorIntoView")){var ne=a.display,te=ne.sizer.getBoundingClientRect(),ue=null;if(b.top+te.top<0?ue=!0:b.bottom+te.top>(window.innerHeight||document.documentElement.clientHeight)&&(ue=!1),ue!=null&&!Me){var Ne=pt("div","\u200B",null,`position: absolute;
top: `+(b.top-ne.viewOffset-kl(a.display))+`px;
height: `+(b.bottom-b.top+Ma(a)+ne.barHeight)+`px;
left: `+b.left+"px; width: "+Math.max(2,b.right-b.left)+"px;");a.display.lineSpace.appendChild(Ne),Ne.scrollIntoView(ue),a.display.lineSpace.removeChild(Ne)}}}function PA(a,b,ne,te){te==null&&(te=0);var ue;!a.options.lineWrapping&&b==ne&&(b=b.ch?Kt(b.line,b.sticky=="before"?b.ch-1:b.ch,"after"):b,ne=b.sticky=="before"?Kt(b.line,b.ch+1,"before"):b);for(var Ne=0;Ne<5;Ne++){var et=!1,vt=hu(a,b),St=!ne||ne==b?vt:hu(a,ne);ue={left:Math.min(vt.left,St.left),top:Math.min(vt.top,St.top)-te,right:Math.max(vt.left,St.left),bottom:Math.max(vt.bottom,St.bottom)+te};var _t=TA(a,ue),Ln=a.doc.scrollTop,Hn=a.doc.scrollLeft;if(_t.scrollTop!=null&&(rc(a,_t.scrollTop),Math.abs(a.doc.scrollTop-Ln)>1&&(et=!0)),_t.scrollLeft!=null&&(gA(a,_t.scrollLeft),Math.abs(a.doc.scrollLeft-Hn)>1&&(et=!0)),!et)break}return ue}function Kp(a,b){var ne=TA(a,b);ne.scrollTop!=null&&rc(a,ne.scrollTop),ne.scrollLeft!=null&&gA(a,ne.scrollLeft)}function TA(a,b){var ne=a.display,te=pc(a.display);b.top<0&&(b.top=0);var ue=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:ne.scroller.scrollTop,Ne=ks(a),et={};b.bottom-b.top>Ne&&(b.bottom=b.top+Ne);var vt=a.doc.height+Hi(ne),St=b.top<te,_t=b.bottom>vt-te;if(b.top<ue)et.scrollTop=St?0:b.top;else if(b.bottom>ue+Ne){var Ln=Math.min(b.top,(_t?vt:b.bottom)-Ne);Ln!=ue&&(et.scrollTop=Ln)}var Hn=a.options.fixedGutter?0:ne.gutters.offsetWidth,Tr=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:ne.scroller.scrollLeft-Hn,Er=Hl(a)-ne.gutters.offsetWidth,xi=b.right-b.left>Er;return xi&&(b.right=b.left+Er),b.left<10?et.scrollLeft=0:b.left<Tr?et.scrollLeft=Math.max(0,b.left+Hn-(xi?0:10)):b.right>Er+Tr-3&&(et.scrollLeft=b.right+(xi?0:10)-Er),et}function th(a,b){b!=null&&(mA(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+b)}function Oc(a){mA(a);var b=a.getCursor();a.curOp.scrollToPos={from:b,to:b,margin:a.options.cursorScrollMargin}}function id(a,b,ne){(b!=null||ne!=null)&&mA(a),b!=null&&(a.curOp.scrollLeft=b),ne!=null&&(a.curOp.scrollTop=ne)}function $p(a,b){mA(a),a.curOp.scrollToPos=b}function mA(a){var b=a.curOp.scrollToPos;if(b){a.curOp.scrollToPos=null;var ne=Oa(a,b.from),te=Oa(a,b.to);Ec(a,ne,te,b.margin)}}function Ec(a,b,ne,te){var ue=TA(a,{left:Math.min(b.left,ne.left),top:Math.min(b.top,ne.top)-te,right:Math.max(b.right,ne.right),bottom:Math.max(b.bottom,ne.bottom)+te});id(a,ue.scrollLeft,ue.scrollTop)}function rc(a,b){Math.abs(a.doc.scrollTop-b)<2||(x||Ld(a,{top:b}),Hs(a,b,!0),x&&Ld(a),sd(a,100))}function Hs(a,b,ne){b=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,b)),!(a.display.scroller.scrollTop==b&&!ne)&&(a.doc.scrollTop=b,a.display.scrollbars.setScrollTop(b),a.display.scroller.scrollTop!=b&&(a.display.scroller.scrollTop=b))}function gA(a,b,ne,te){b=Math.max(0,Math.min(b,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((ne?b==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-b)<2)&&!te)&&(a.doc.scrollLeft=b,Xt(a),a.display.scroller.scrollLeft!=b&&(a.display.scroller.scrollLeft=b),a.display.scrollbars.setScrollLeft(b))}function od(a){var b=a.display,ne=b.gutters.offsetWidth,te=Math.round(a.doc.height+Hi(a.display));return{clientHeight:b.scroller.clientHeight,viewHeight:b.wrapper.clientHeight,scrollWidth:b.scroller.scrollWidth,clientWidth:b.scroller.clientWidth,viewWidth:b.wrapper.clientWidth,barLeft:a.options.fixedGutter?ne:0,docHeight:te,scrollHeight:te+Ma(a)+b.barHeight,nativeBarWidth:b.nativeBarWidth,gutterWidth:ne}}var ad=function(a,b,ne){this.cm=ne;var te=this.vert=pt("div",[pt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ue=this.horiz=pt("div",[pt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");te.tabIndex=ue.tabIndex=-1,a(te),a(ue),Vt(te,"scroll",function(){te.clientHeight&&b(te.scrollTop,"vertical")}),Vt(ue,"scroll",function(){ue.clientWidth&&b(ue.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ze&&Le<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ad.prototype.update=function(a){var b=a.scrollWidth>a.clientWidth+1,ne=a.scrollHeight>a.clientHeight+1,te=a.nativeBarWidth;if(ne){this.vert.style.display="block",this.vert.style.bottom=b?te+"px":"0";var ue=a.viewHeight-(b?te:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+ue)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(b){this.horiz.style.display="block",this.horiz.style.right=ne?te+"px":"0",this.horiz.style.left=a.barLeft+"px";var Ne=a.viewWidth-a.barLeft-(ne?te:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+Ne)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(te==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ne?te:0,bottom:b?te:0}},ad.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ad.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ad.prototype.zeroWidthHack=function(){var a=Ce&&!ve?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new De,this.disableVert=new De},ad.prototype.enableZeroWidthBar=function(a,b,ne){a.style.pointerEvents="auto";function te(){var ue=a.getBoundingClientRect(),Ne=ne=="vert"?document.elementFromPoint(ue.right-1,(ue.top+ue.bottom)/2):document.elementFromPoint((ue.right+ue.left)/2,ue.bottom-1);Ne!=a?a.style.pointerEvents="none":b.set(1e3,te)}b.set(1e3,te)},ad.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var vA=function(){};vA.prototype.update=function(){return{bottom:0,right:0}},vA.prototype.setScrollLeft=function(){},vA.prototype.setScrollTop=function(){},vA.prototype.clear=function(){};function kA(a,b){b||(b=od(a));var ne=a.display.barWidth,te=a.display.barHeight;xf(a,b);for(var ue=0;ue<4&&ne!=a.display.barWidth||te!=a.display.barHeight;ue++)ne!=a.display.barWidth&&a.options.lineWrapping&&va(a),xf(a,od(a)),ne=a.display.barWidth,te=a.display.barHeight}function xf(a,b){var ne=a.display,te=ne.scrollbars.update(b);ne.sizer.style.paddingRight=(ne.barWidth=te.right)+"px",ne.sizer.style.paddingBottom=(ne.barHeight=te.bottom)+"px",ne.heightForcer.style.borderBottom=te.bottom+"px solid transparent",te.right&&te.bottom?(ne.scrollbarFiller.style.display="block",ne.scrollbarFiller.style.height=te.bottom+"px",ne.scrollbarFiller.style.width=te.right+"px"):ne.scrollbarFiller.style.display="",te.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(ne.gutterFiller.style.display="block",ne.gutterFiller.style.height=te.bottom+"px",ne.gutterFiller.style.width=b.gutterWidth+"px"):ne.gutterFiller.style.display=""}var Id={native:ad,null:vA};function kh(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Ve(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Id[a.options.scrollbarStyle](function(b){a.display.wrapper.insertBefore(b,a.display.scrollbarFiller),Vt(b,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),b.setAttribute("cm-not-content","true")},function(b,ne){ne=="horizontal"?gA(a,b):rc(a,b)},a),a.display.scrollbars.addClass&&Re(a.display.wrapper,a.display.scrollbars.addClass)}var Zp=0;function ic(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Zp},rl(a.curOp)}function yA(a){var b=a.curOp;b&&yl(b,function(ne){for(var te=0;te<ne.ops.length;te++)ne.ops[te].cm.curOp=null;up(ne)})}function up(a){for(var b=a.ops,ne=0;ne<b.length;ne++)Wp(b[ne]);for(var te=0;te<b.length;te++)Vd(b[te]);for(var ue=0;ue<b.length;ue++)cp(b[ue]);for(var Ne=0;Ne<b.length;Ne++)Xd(b[Ne]);for(var et=0;et<b.length;et++)Gp(b[et])}function Wp(a){var b=a.cm,ne=b.display;Ap(b),a.updateMaxLine&&_o(b),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<ne.viewFrom||a.scrollToPos.to.line>=ne.viewTo)||ne.maxLineChanged&&b.options.lineWrapping,a.update=a.mustUpdate&&new Bf(b,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Vd(a){a.updatedDisplay=a.mustUpdate&&nh(a.cm,a.update)}function cp(a){var b=a.cm,ne=b.display;a.updatedDisplay&&va(b),a.barMeasure=od(b),ne.maxLineChanged&&!b.options.lineWrapping&&(a.adjustWidthTo=Bc(b,ne.maxLine,ne.maxLine.text.length).left+3,b.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(ne.scroller.clientWidth,ne.sizer.offsetLeft+a.adjustWidthTo+Ma(b)+b.display.barWidth),a.maxScrollLeft=Math.max(0,ne.sizer.offsetLeft+a.adjustWidthTo-Hl(b))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=ne.input.prepareSelection())}function Xd(a){var b=a.cm;a.adjustWidthTo!=null&&(b.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<b.doc.scrollLeft&&gA(b,Math.min(b.display.scroller.scrollLeft,a.maxScrollLeft),!0),b.display.maxLineChanged=!1);var ne=a.focus&&a.focus==_e();a.preparedSelection&&b.display.input.showSelection(a.preparedSelection,ne),(a.updatedDisplay||a.startHeight!=b.doc.height)&&kA(b,a.barMeasure),a.updatedDisplay&&yt(b,a.barMeasure),a.selectionChanged&&Fd(b),b.state.focused&&a.updateInput&&b.display.input.reset(a.typing),ne&&eh(a.cm)}function Gp(a){var b=a.cm,ne=b.display,te=b.doc;if(a.updatedDisplay&&wA(b,a.update),ne.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(ne.wheelStartX=ne.wheelStartY=null),a.scrollTop!=null&&Hs(b,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&gA(b,a.scrollLeft,!0,!0),a.scrollToPos){var ue=PA(b,cr(te,a.scrollToPos.from),cr(te,a.scrollToPos.to),a.scrollToPos.margin);rd(b,ue)}var Ne=a.maybeHiddenMarkers,et=a.maybeUnhiddenMarkers;if(Ne)for(var vt=0;vt<Ne.length;++vt)Ne[vt].lines.length||sn(Ne[vt],"hide");if(et)for(var St=0;St<et.length;++St)et[St].lines.length&&sn(et[St],"unhide");ne.wrapper.offsetHeight&&(te.scrollTop=b.display.scroller.scrollTop),a.changeObjs&&sn(b,"changes",b,a.changeObjs),a.update&&a.update.finish()}function oc(a,b){if(a.curOp)return b();ic(a);try{return b()}finally{yA(a)}}function Ou(a,b){return function(){if(a.curOp)return b.apply(a,arguments);ic(a);try{return b.apply(a,arguments)}finally{yA(a)}}}function ac(a){return function(){if(this.curOp)return a.apply(this,arguments);ic(this);try{return a.apply(this,arguments)}finally{yA(this)}}}function Du(a){return function(){var b=this.cm;if(!b||b.curOp)return a.apply(this,arguments);ic(b);try{return a.apply(this,arguments)}finally{yA(b)}}}function sd(a,b){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(b,at(Yd,a))}function Yd(a){var b=a.doc;if(!(b.highlightFrontier>=a.display.viewTo)){var ne=+new Date+a.options.workTime,te=Zn(a,b.highlightFrontier),ue=[];b.iter(te.line,Math.min(b.first+b.size,a.display.viewTo+500),function(Ne){if(te.line>=a.display.viewFrom){var et=Ne.styles,vt=Ne.text.length>a.options.maxHighlightLength?Ti(b.mode,te.state):null,St=Ar(a,Ne,te,!0);vt&&(te.state=vt),Ne.styles=St.styles;var _t=Ne.styleClasses,Ln=St.classes;Ln?Ne.styleClasses=Ln:_t&&(Ne.styleClasses=null);for(var Hn=!et||et.length!=Ne.styles.length||_t!=Ln&&(!_t||!Ln||_t.bgClass!=Ln.bgClass||_t.textClass!=Ln.textClass),Tr=0;!Hn&&Tr<et.length;++Tr)Hn=et[Tr]!=Ne.styles[Tr];Hn&&ue.push(te.line),Ne.stateAfter=te.save(),te.nextLine()}else Ne.text.length<=a.options.maxHighlightLength&&yn(a,Ne.text,te),Ne.stateAfter=te.line%5==0?te.save():null,te.nextLine();if(+new Date>ne)return sd(a,a.options.workDelay),!0}),b.highlightFrontier=te.line,b.modeFrontier=Math.max(b.modeFrontier,te.line),ue.length&&oc(a,function(){for(var Ne=0;Ne<ue.length;Ne++)DA(a,ue[Ne],"text")})}}var Bf=function(a,b,ne){var te=a.display;this.viewport=b,this.visible=Nc(te,a.doc,b),this.editorIsHidden=!te.wrapper.offsetWidth,this.wrapperHeight=te.wrapper.clientHeight,this.wrapperWidth=te.wrapper.clientWidth,this.oldDisplayWidth=Hl(a),this.force=ne,this.dims=rA(a),this.events=[]};Bf.prototype.signal=function(a,b){Fn(a,b)&&this.events.push(arguments)},Bf.prototype.finish=function(){for(var a=0;a<this.events.length;a++)sn.apply(null,this.events[a])};function Ap(a){var b=a.display;!b.scrollbarsClipped&&b.scroller.offsetWidth&&(b.nativeBarWidth=b.scroller.offsetWidth-b.scroller.clientWidth,b.heightForcer.style.height=Ma(a)+"px",b.sizer.style.marginBottom=-b.nativeBarWidth+"px",b.sizer.style.borderRightWidth=Ma(a)+"px",b.scrollbarsClipped=!0)}function dp(a){if(a.hasFocus())return null;var b=_e();if(!b||!ht(a.display.lineDiv,b))return null;var ne={activeElt:b};if(window.getSelection){var te=window.getSelection();te.anchorNode&&te.extend&&ht(a.display.lineDiv,te.anchorNode)&&(ne.anchorNode=te.anchorNode,ne.anchorOffset=te.anchorOffset,ne.focusNode=te.focusNode,ne.focusOffset=te.focusOffset)}return ne}function fp(a){if(!(!a||!a.activeElt||a.activeElt==_e())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&ht(document.body,a.anchorNode)&&ht(document.body,a.focusNode))){var b=window.getSelection(),ne=document.createRange();ne.setEnd(a.anchorNode,a.anchorOffset),ne.collapse(!1),b.removeAllRanges(),b.addRange(ne),b.extend(a.focusNode,a.focusOffset)}}function nh(a,b){var ne=a.display,te=a.doc;if(b.editorIsHidden)return iA(a),!1;if(!b.force&&b.visible.from>=ne.viewFrom&&b.visible.to<=ne.viewTo&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo)&&ne.renderedView==ne.view&&Ns(a)==0)return!1;cn(a)&&(iA(a),b.dims=rA(a));var ue=te.first+te.size,Ne=Math.max(b.visible.from-a.options.viewportMargin,te.first),et=Math.min(ue,b.visible.to+a.options.viewportMargin);ne.viewFrom<Ne&&Ne-ne.viewFrom<20&&(Ne=Math.max(te.first,ne.viewFrom)),ne.viewTo>et&&ne.viewTo-et<20&&(et=Math.min(ue,ne.viewTo)),wi&&(Ne=$r(a.doc,Ne),et=oi(a.doc,et));var vt=Ne!=ne.viewFrom||et!=ne.viewTo||ne.lastWrapHeight!=b.wrapperHeight||ne.lastWrapWidth!=b.wrapperWidth;qf(a,Ne,et),ne.viewOffset=Ao(fr(a.doc,ne.viewFrom)),a.display.mover.style.top=ne.viewOffset+"px";var St=Ns(a);if(!vt&&St==0&&!b.force&&ne.renderedView==ne.view&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo))return!1;var _t=dp(a);return St>4&&(ne.lineDiv.style.display="none"),hp(a,ne.updateLineNumbers,b.dims),St>4&&(ne.lineDiv.style.display=""),ne.renderedView=ne.view,fp(_t),ct(ne.cursorDiv),ct(ne.selectionDiv),ne.gutters.style.height=ne.sizer.style.minHeight=0,vt&&(ne.lastWrapHeight=b.wrapperHeight,ne.lastWrapWidth=b.wrapperWidth,sd(a,400)),ne.updateLineNumbers=null,!0}function wA(a,b){for(var ne=b.viewport,te=!0;;te=!1){if(!te||!a.options.lineWrapping||b.oldDisplayWidth==Hl(a)){if(ne&&ne.top!=null&&(ne={top:Math.min(a.doc.height+Hi(a.display)-ks(a),ne.top)}),b.visible=Nc(a.display,a.doc,ne),b.visible.from>=a.display.viewFrom&&b.visible.to<=a.display.viewTo)break}else te&&(b.visible=Nc(a.display,a.doc,ne));if(!nh(a,b))break;va(a);var ue=od(a);Wu(a),kA(a,ue),yt(a,ue),b.force=!1}b.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(b.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function Ld(a,b){var ne=new Bf(a,b);if(nh(a,ne)){va(a),wA(a,ne);var te=od(a);Wu(a),kA(a,te),yt(a,te),ne.finish()}}function hp(a,b,ne){var te=a.display,ue=a.options.lineNumbers,Ne=te.lineDiv,et=Ne.firstChild;function vt(xi){var Ki=xi.nextSibling;return Ue&&Ce&&a.display.currentWheelTarget==xi?xi.style.display="none":xi.parentNode.removeChild(xi),Ki}for(var St=te.view,_t=te.viewFrom,Ln=0;Ln<St.length;Ln++){var Hn=St[Ln];if(!Hn.hidden)if(!Hn.node||Hn.node.parentNode!=Ne){var Tr=wa(a,Hn,_t,ne);Ne.insertBefore(Tr,et)}else{for(;et!=Hn.node;)et=vt(et);var Er=ue&&b!=null&&b<=_t&&Hn.lineNumber;Hn.changes&&(ut(Hn.changes,"gutter")>-1&&(Er=!1),Lu(a,Hn,_t,ne)),Er&&(ct(Hn.lineNumber),Hn.lineNumber.appendChild(document.createTextNode(dn(a.options,_t)))),et=Hn.node.nextSibling}_t+=Hn.size}for(;et;)et=vt(et)}function wt(a){var b=a.gutters.offsetWidth;a.sizer.style.marginLeft=b+"px"}function yt(a,b){a.display.sizer.style.minHeight=b.docHeight+"px",a.display.heightForcer.style.top=b.docHeight+"px",a.display.gutters.style.height=b.docHeight+a.display.barHeight+Ma(a)+"px"}function Xt(a){var b=a.display,ne=b.view;if(!(!b.alignWidgets&&(!b.gutters.firstChild||!a.options.fixedGutter))){for(var te=Ed(b)-b.scroller.scrollLeft+a.doc.scrollLeft,ue=b.gutters.offsetWidth,Ne=te+"px",et=0;et<ne.length;et++)if(!ne[et].hidden){a.options.fixedGutter&&(ne[et].gutter&&(ne[et].gutter.style.left=Ne),ne[et].gutterBackground&&(ne[et].gutterBackground.style.left=Ne));var vt=ne[et].alignable;if(vt)for(var St=0;St<vt.length;St++)vt[St].style.left=Ne}a.options.fixedGutter&&(b.gutters.style.left=te+ue+"px")}}function cn(a){if(!a.options.lineNumbers)return!1;var b=a.doc,ne=dn(a.options,b.first+b.size-1),te=a.display;if(ne.length!=te.lineNumChars){var ue=te.measure.appendChild(pt("div",[pt("div",ne)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Ne=ue.firstChild.offsetWidth,et=ue.offsetWidth-Ne;return te.lineGutter.style.width="",te.lineNumInnerWidth=Math.max(Ne,te.lineGutter.offsetWidth-et)+1,te.lineNumWidth=te.lineNumInnerWidth+et,te.lineNumChars=te.lineNumInnerWidth?ne.length:-1,te.lineGutter.style.width=te.lineNumWidth+"px",wt(a.display),!0}return!1}function Sn(a,b){for(var ne=[],te=!1,ue=0;ue<a.length;ue++){var Ne=a[ue],et=null;if(typeof Ne!="string"&&(et=Ne.style,Ne=Ne.className),Ne=="CodeMirror-linenumbers")if(b)te=!0;else continue;ne.push({className:Ne,style:et})}return b&&!te&&ne.push({className:"CodeMirror-linenumbers",style:null}),ne}function kn(a){var b=a.gutters,ne=a.gutterSpecs;ct(b),a.lineGutter=null;for(var te=0;te<ne.length;++te){var ue=ne[te],Ne=ue.className,et=ue.style,vt=b.appendChild(pt("div",null,"CodeMirror-gutter "+Ne));et&&(vt.style.cssText=et),Ne=="CodeMirror-linenumbers"&&(a.lineGutter=vt,vt.style.width=(a.lineNumWidth||1)+"px")}b.style.display=ne.length?"":"none",wt(a)}function ar(a){kn(a.display),Nu(a),Xt(a)}function er(a,b,ne,te){var ue=this;this.input=ne,ue.scrollbarFiller=pt("div",null,"CodeMirror-scrollbar-filler"),ue.scrollbarFiller.setAttribute("cm-not-content","true"),ue.gutterFiller=pt("div",null,"CodeMirror-gutter-filler"),ue.gutterFiller.setAttribute("cm-not-content","true"),ue.lineDiv=bt("div",null,"CodeMirror-code"),ue.selectionDiv=pt("div",null,null,"position: relative; z-index: 1"),ue.cursorDiv=pt("div",null,"CodeMirror-cursors"),ue.measure=pt("div",null,"CodeMirror-measure"),ue.lineMeasure=pt("div",null,"CodeMirror-measure"),ue.lineSpace=bt("div",[ue.measure,ue.lineMeasure,ue.selectionDiv,ue.cursorDiv,ue.lineDiv],null,"position: relative; outline: none");var Ne=bt("div",[ue.lineSpace],"CodeMirror-lines");ue.mover=pt("div",[Ne],null,"position: relative"),ue.sizer=pt("div",[ue.mover],"CodeMirror-sizer"),ue.sizerWidth=null,ue.heightForcer=pt("div",null,null,"position: absolute; height: "+$t+"px; width: 1px;"),ue.gutters=pt("div",null,"CodeMirror-gutters"),ue.lineGutter=null,ue.scroller=pt("div",[ue.sizer,ue.heightForcer,ue.gutters],"CodeMirror-scroll"),ue.scroller.setAttribute("tabIndex","-1"),ue.wrapper=pt("div",[ue.scrollbarFiller,ue.gutterFiller,ue.scroller],"CodeMirror"),ze&&Le<8&&(ue.gutters.style.zIndex=-1,ue.scroller.style.paddingRight=0),!Ue&&!(x&&we)&&(ue.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(ue.wrapper):a(ue.wrapper)),ue.viewFrom=ue.viewTo=b.first,ue.reportedViewFrom=ue.reportedViewTo=b.first,ue.view=[],ue.renderedView=null,ue.externalMeasured=null,ue.viewOffset=0,ue.lastWrapHeight=ue.lastWrapWidth=0,ue.updateLineNumbers=null,ue.nativeBarWidth=ue.barHeight=ue.barWidth=0,ue.scrollbarsClipped=!1,ue.lineNumWidth=ue.lineNumInnerWidth=ue.lineNumChars=null,ue.alignWidgets=!1,ue.cachedCharWidth=ue.cachedTextHeight=ue.cachedPaddingH=null,ue.maxLine=null,ue.maxLineLength=0,ue.maxLineChanged=!1,ue.wheelDX=ue.wheelDY=ue.wheelStartX=ue.wheelStartY=null,ue.shift=!1,ue.selForContextMenu=null,ue.activeTouch=null,ue.gutterSpecs=Sn(te.gutters,te.lineNumbers),kn(ue),ne.init(ue)}var br=0,hr=null;ze?hr=-.53:x?hr=15:xe?hr=-.7:Oe&&(hr=-1/3);function li(a){var b=a.wheelDeltaX,ne=a.wheelDeltaY;return b==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(b=a.detail),ne==null&&a.detail&&a.axis==a.VERTICAL_AXIS?ne=a.detail:ne==null&&(ne=a.wheelDelta),{x:b,y:ne}}function Qr(a){var b=li(a);return b.x*=hr,b.y*=hr,b}function Hr(a,b){var ne=li(b),te=ne.x,ue=ne.y,Ne=a.display,et=Ne.scroller,vt=et.scrollWidth>et.clientWidth,St=et.scrollHeight>et.clientHeight;if(te&&vt||ue&&St){if(ue&&Ce&&Ue){e:for(var _t=b.target,Ln=Ne.view;_t!=et;_t=_t.parentNode)for(var Hn=0;Hn<Ln.length;Hn++)if(Ln[Hn].node==_t){a.display.currentWheelTarget=_t;break e}}if(te&&!x&&!oe&&hr!=null){ue&&St&&rc(a,Math.max(0,et.scrollTop+ue*hr)),gA(a,Math.max(0,et.scrollLeft+te*hr)),(!ue||ue&&St)&&an(b),Ne.wheelStartX=null;return}if(ue&&hr!=null){var Tr=ue*hr,Er=a.doc.scrollTop,xi=Er+Ne.wrapper.clientHeight;Tr<0?Er=Math.max(0,Er+Tr-50):xi=Math.min(a.doc.height,xi+Tr+50),Ld(a,{top:Er,bottom:xi})}br<20&&(Ne.wheelStartX==null?(Ne.wheelStartX=et.scrollLeft,Ne.wheelStartY=et.scrollTop,Ne.wheelDX=te,Ne.wheelDY=ue,setTimeout(function(){if(Ne.wheelStartX!=null){var Ki=et.scrollLeft-Ne.wheelStartX,uo=et.scrollTop-Ne.wheelStartY,Fo=uo&&Ne.wheelDY&&uo/Ne.wheelDY||Ki&&Ne.wheelDX&&Ki/Ne.wheelDX;Ne.wheelStartX=Ne.wheelStartY=null,Fo&&(hr=(hr*br+Fo)/(br+1),++br)}},200)):(Ne.wheelDX+=te,Ne.wheelDY+=ue))}}var Or=function(a,b){this.ranges=a,this.primIndex=b};Or.prototype.primary=function(){return this.ranges[this.primIndex]},Or.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var b=0;b<this.ranges.length;b++){var ne=this.ranges[b],te=a.ranges[b];if(!Nn(ne.anchor,te.anchor)||!Nn(ne.head,te.head))return!1}return!0},Or.prototype.deepCopy=function(){for(var a=[],b=0;b<this.ranges.length;b++)a[b]=new _r(Pr(this.ranges[b].anchor),Pr(this.ranges[b].head));return new Or(a,this.primIndex)},Or.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Or.prototype.contains=function(a,b){b||(b=a);for(var ne=0;ne<this.ranges.length;ne++){var te=this.ranges[ne];if(pn(b,te.from())>=0&&pn(a,te.to())<=0)return ne}return-1};var _r=function(a,b){this.anchor=a,this.head=b};_r.prototype.from=function(){return ci(this.anchor,this.head)},_r.prototype.to=function(){return Yr(this.anchor,this.head)},_r.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Zi(a,b,ne){var te=a&&a.options.selectionsMayTouch,ue=b[ne];b.sort(function(Tr,Er){return pn(Tr.from(),Er.from())}),ne=ut(b,ue);for(var Ne=1;Ne<b.length;Ne++){var et=b[Ne],vt=b[Ne-1],St=pn(vt.to(),et.from());if(te&&!et.empty()?St>0:St>=0){var _t=ci(vt.from(),et.from()),Ln=Yr(vt.to(),et.to()),Hn=vt.empty()?et.from()==et.head:vt.from()==vt.head;Ne<=ne&&--ne,b.splice(--Ne,2,new _r(Hn?Ln:_t,Hn?_t:Ln))}}return new Or(b,ne)}function Ci(a,b){return new Or([new _r(a,b||a)],0)}function qi(a){return a.text?Kt(a.from.line+a.text.length-1,Dt(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function so(a,b){if(pn(a,b.from)<0)return a;if(pn(a,b.to)<=0)return qi(b);var ne=a.line+b.text.length-(b.to.line-b.from.line)-1,te=a.ch;return a.line==b.to.line&&(te+=qi(b).ch-b.to.ch),Kt(ne,te)}function Xi(a,b){for(var ne=[],te=0;te<a.sel.ranges.length;te++){var ue=a.sel.ranges[te];ne.push(new _r(so(ue.anchor,b),so(ue.head,b)))}return Zi(a.cm,ne,a.sel.primIndex)}function ho(a,b,ne){return a.line==b.line?Kt(ne.line,a.ch-b.ch+ne.ch):Kt(ne.line+(a.line-b.line),a.ch)}function Bo(a,b,ne){for(var te=[],ue=Kt(a.first,0),Ne=ue,et=0;et<b.length;et++){var vt=b[et],St=ho(vt.from,ue,Ne),_t=ho(qi(vt),ue,Ne);if(ue=vt.to,Ne=_t,ne=="around"){var Ln=a.sel.ranges[et],Hn=pn(Ln.head,Ln.anchor)<0;te[et]=new _r(Hn?_t:St,Hn?St:_t)}else te[et]=new _r(St,St)}return new Or(te,a.sel.primIndex)}function jo(a){a.doc.mode=gi(a.options,a.doc.modeOption),Po(a)}function Po(a){a.doc.iter(function(b){b.stateAfter&&(b.stateAfter=null),b.styles&&(b.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,sd(a,100),a.state.modeGen++,a.curOp&&Nu(a)}function Ia(a,b){return b.from.ch==0&&b.to.ch==0&&Dt(b.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function aa(a,b,ne,te){function ue(Ko){return ne?ne[Ko]:null}function Ne(Ko,Io,ua){No(Ko,Io,ua,te),ol(Ko,"change",Ko,b)}function et(Ko,Io){for(var ua=[],Da=Ko;Da<Io;++Da)ua.push(new pa(_t[Da],ue(Da),te));return ua}var vt=b.from,St=b.to,_t=b.text,Ln=fr(a,vt.line),Hn=fr(a,St.line),Tr=Dt(_t),Er=ue(_t.length-1),xi=St.line-vt.line;if(b.full)a.insert(0,et(0,_t.length)),a.remove(_t.length,a.size-_t.length);else if(Ia(a,b)){var Ki=et(0,_t.length-1);Ne(Hn,Hn.text,Er),xi&&a.remove(vt.line,xi),Ki.length&&a.insert(vt.line,Ki)}else if(Ln==Hn)if(_t.length==1)Ne(Ln,Ln.text.slice(0,vt.ch)+Tr+Ln.text.slice(St.ch),Er);else{var uo=et(1,_t.length-1);uo.push(new pa(Tr+Ln.text.slice(St.ch),Er,te)),Ne(Ln,Ln.text.slice(0,vt.ch)+_t[0],ue(0)),a.insert(vt.line+1,uo)}else if(_t.length==1)Ne(Ln,Ln.text.slice(0,vt.ch)+_t[0]+Hn.text.slice(St.ch),ue(0)),a.remove(vt.line+1,xi);else{Ne(Ln,Ln.text.slice(0,vt.ch)+_t[0],ue(0)),Ne(Hn,Tr+Hn.text.slice(St.ch),Er);var Fo=et(1,_t.length-1);xi>1&&a.remove(vt.line+1,xi-1),a.insert(vt.line+1,Fo)}ol(a,"change",a,b)}function ta(a,b,ne){function te(ue,Ne,et){if(ue.linked)for(var vt=0;vt<ue.linked.length;++vt){var St=ue.linked[vt];if(St.doc!=Ne){var _t=et&&St.sharedHist;ne&&!_t||(b(St.doc,_t),te(St.doc,ue,_t))}}}te(a,null,!0)}function zo(a,b){if(b.cm)throw new Error("This document is already in use.");a.doc=b,b.cm=a,nd(a),jo(a),Qo(a),a.options.lineWrapping||_o(a),a.options.mode=b.modeOption,Nu(a)}function Qo(a){(a.doc.direction=="rtl"?Re:Ve)(a.display.lineDiv,"CodeMirror-rtl")}function Ho(a){oc(a,function(){Qo(a),Nu(a)})}function vo(a){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=a||1}function fo(a,b){var ne={from:Pr(b.from),to:qi(b),text:Ur(a,b.from,b.to)};return Ml(a,ne,b.from.line,b.to.line+1),ta(a,function(te){return Ml(te,ne,b.from.line,b.to.line+1)},!0),ne}function To(a){for(;a.length;){var b=Dt(a);if(b.ranges)a.pop();else break}}function Zo(a,b){if(b)return To(a.done),Dt(a.done);if(a.done.length&&!Dt(a.done).ranges)return Dt(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),Dt(a.done)}function na(a,b,ne,te){var ue=a.history;ue.undone.length=0;var Ne=+new Date,et,vt;if((ue.lastOp==te||ue.lastOrigin==b.origin&&b.origin&&(b.origin.charAt(0)=="+"&&ue.lastModTime>Ne-(a.cm?a.cm.options.historyEventDelay:500)||b.origin.charAt(0)=="*"))&&(et=Zo(ue,ue.lastOp==te)))vt=Dt(et.changes),pn(b.from,b.to)==0&&pn(b.from,vt.to)==0?vt.to=qi(b):et.changes.push(fo(a,b));else{var St=Dt(ue.done);for((!St||!St.ranges)&&Ha(a.sel,ue.done),et={changes:[fo(a,b)],generation:ue.generation},ue.done.push(et);ue.done.length>ue.undoDepth;)ue.done.shift(),ue.done[0].ranges||ue.done.shift()}ue.done.push(ne),ue.generation=++ue.maxGeneration,ue.lastModTime=ue.lastSelTime=Ne,ue.lastOp=ue.lastSelOp=te,ue.lastOrigin=ue.lastSelOrigin=b.origin,vt||sn(a,"historyAdded")}function Co(a,b,ne,te){var ue=b.charAt(0);return ue=="*"||ue=="+"&&ne.ranges.length==te.ranges.length&&ne.somethingSelected()==te.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function Xa(a,b,ne,te){var ue=a.history,Ne=te&&te.origin;ne==ue.lastSelOp||Ne&&ue.lastSelOrigin==Ne&&(ue.lastModTime==ue.lastSelTime&&ue.lastOrigin==Ne||Co(a,Ne,Dt(ue.done),b))?ue.done[ue.done.length-1]=b:Ha(b,ue.done),ue.lastSelTime=+new Date,ue.lastSelOrigin=Ne,ue.lastSelOp=ne,te&&te.clearRedo!==!1&&To(ue.undone)}function Ha(a,b){var ne=Dt(b);ne&&ne.ranges&&ne.equals(a)||b.push(a)}function Ml(a,b,ne,te){var ue=b["spans_"+a.id],Ne=0;a.iter(Math.max(a.first,ne),Math.min(a.first+a.size,te),function(et){et.markedSpans&&((ue||(ue=b["spans_"+a.id]={}))[Ne]=et.markedSpans),++Ne})}function Fl(a){if(!a)return null;for(var b,ne=0;ne<a.length;++ne)a[ne].marker.explicitlyCleared?b||(b=a.slice(0,ne)):b&&b.push(a[ne]);return b?b.length?b:null:a}function ll(a,b){var ne=b["spans_"+a.id];if(!ne)return null;for(var te=[],ue=0;ue<b.text.length;++ue)te.push(Fl(ne[ue]));return te}function lo(a,b){var ne=ll(a,b),te=ko(a,b);if(!ne)return te;if(!te)return ne;for(var ue=0;ue<ne.length;++ue){var Ne=ne[ue],et=te[ue];if(Ne&&et)e:for(var vt=0;vt<et.length;++vt){for(var St=et[vt],_t=0;_t<Ne.length;++_t)if(Ne[_t].marker==St.marker)continue e;Ne.push(St)}else et&&(ne[ue]=et)}return ne}function ql(a,b,ne){for(var te=[],ue=0;ue<a.length;++ue){var Ne=a[ue];if(Ne.ranges){te.push(ne?Or.prototype.deepCopy.call(Ne):Ne);continue}var et=Ne.changes,vt=[];te.push({changes:vt});for(var St=0;St<et.length;++St){var _t=et[St],Ln=void 0;if(vt.push({from:_t.from,to:_t.to,text:_t.text}),b)for(var Hn in _t)(Ln=Hn.match(/^spans_(\d+)$/))&&ut(b,Number(Ln[1]))>-1&&(Dt(vt)[Hn]=_t[Hn],delete _t[Hn])}}return te}function ls(a,b,ne,te){if(te){var ue=a.anchor;if(ne){var Ne=pn(b,ue)<0;Ne!=pn(ne,ue)<0?(ue=b,b=ne):Ne!=pn(b,ne)<0&&(b=ne)}return new _r(ue,b)}else return new _r(ne||b,b)}function rs(a,b,ne,te,ue){ue==null&&(ue=a.cm&&(a.cm.display.shift||a.extend)),Oo(a,new Or([ls(a.sel.primary(),b,ne,ue)],0),te)}function al(a,b,ne){for(var te=[],ue=a.cm&&(a.cm.display.shift||a.extend),Ne=0;Ne<a.sel.ranges.length;Ne++)te[Ne]=ls(a.sel.ranges[Ne],b[Ne],null,ue);var et=Zi(a.cm,te,a.sel.primIndex);Oo(a,et,ne)}function mu(a,b,ne,te){var ue=a.sel.ranges.slice(0);ue[b]=ne,Oo(a,Zi(a.cm,ue,a.sel.primIndex),te)}function ra(a,b,ne,te){Oo(a,Ci(b,ne),te)}function ba(a,b,ne){var te={ranges:b.ranges,update:function(ue){this.ranges=[];for(var Ne=0;Ne<ue.length;Ne++)this.ranges[Ne]=new _r(cr(a,ue[Ne].anchor),cr(a,ue[Ne].head))},origin:ne&&ne.origin};return sn(a,"beforeSelectionChange",a,te),a.cm&&sn(a.cm,"beforeSelectionChange",a.cm,te),te.ranges!=b.ranges?Zi(a.cm,te.ranges,te.ranges.length-1):b}function Wo(a,b,ne){var te=a.history.done,ue=Dt(te);ue&&ue.ranges?(te[te.length-1]=b,hs(a,b,ne)):Oo(a,b,ne)}function Oo(a,b,ne){hs(a,b,ne),Xa(a,a.sel,a.cm?a.cm.curOp.id:NaN,ne)}function hs(a,b,ne){(Fn(a,"beforeSelectionChange")||a.cm&&Fn(a.cm,"beforeSelectionChange"))&&(b=ba(a,b,ne));var te=ne&&ne.bias||(pn(b.primary().head,a.sel.primary().head)<0?-1:1);Ss(a,zs(a,b,te,!0)),!(ne&&ne.scroll===!1)&&a.cm&&Oc(a.cm)}function Ss(a,b){b.equals(a.sel)||(a.sel=b,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,zn(a.cm)),ol(a,"cursorActivity",a))}function Vs(a){Ss(a,zs(a,a.sel,null,!1))}function zs(a,b,ne,te){for(var ue,Ne=0;Ne<b.ranges.length;Ne++){var et=b.ranges[Ne],vt=b.ranges.length==a.sel.ranges.length&&a.sel.ranges[Ne],St=vu(a,et.anchor,vt&&vt.anchor,ne,te),_t=vu(a,et.head,vt&&vt.head,ne,te);(ue||St!=et.anchor||_t!=et.head)&&(ue||(ue=b.ranges.slice(0,Ne)),ue[Ne]=new _r(St,_t))}return ue?Zi(a.cm,ue,b.primIndex):b}function ul(a,b,ne,te,ue){var Ne=fr(a,b.line);if(Ne.markedSpans)for(var et=0;et<Ne.markedSpans.length;++et){var vt=Ne.markedSpans[et],St=vt.marker,_t="selectLeft"in St?!St.selectLeft:St.inclusiveLeft,Ln="selectRight"in St?!St.selectRight:St.inclusiveRight;if((vt.from==null||(_t?vt.from<=b.ch:vt.from<b.ch))&&(vt.to==null||(Ln?vt.to>=b.ch:vt.to>b.ch))){if(ue&&(sn(St,"beforeCursorEnter"),St.explicitlyCleared))if(Ne.markedSpans){--et;continue}else break;if(!St.atomic)continue;if(ne){var Hn=St.find(te<0?1:-1),Tr=void 0;if((te<0?Ln:_t)&&(Hn=sa(a,Hn,-te,Hn&&Hn.line==b.line?Ne:null)),Hn&&Hn.line==b.line&&(Tr=pn(Hn,ne))&&(te<0?Tr<0:Tr>0))return ul(a,Hn,b,te,ue)}var Er=St.find(te<0?-1:1);return(te<0?_t:Ln)&&(Er=sa(a,Er,te,Er.line==b.line?Ne:null)),Er?ul(a,Er,b,te,ue):null}}return b}function vu(a,b,ne,te,ue){var Ne=te||1,et=ul(a,b,ne,Ne,ue)||!ue&&ul(a,b,ne,Ne,!0)||ul(a,b,ne,-Ne,ue)||!ue&&ul(a,b,ne,-Ne,!0);return et||(a.cantEdit=!0,Kt(a.first,0))}function sa(a,b,ne,te){return ne<0&&b.ch==0?b.line>a.first?cr(a,Kt(b.line-1)):null:ne>0&&b.ch==(te||fr(a,b.line)).text.length?b.line<a.first+a.size-1?Kt(b.line+1,0):null:new Kt(b.line,b.ch+ne)}function ea(a){a.setSelection(Kt(a.firstLine(),0),Kt(a.lastLine()),tt)}function xs(a,b,ne){var te={canceled:!1,from:b.from,to:b.to,text:b.text,origin:b.origin,cancel:function(){return te.canceled=!0}};return ne&&(te.update=function(ue,Ne,et,vt){ue&&(te.from=cr(a,ue)),Ne&&(te.to=cr(a,Ne)),et&&(te.text=et),vt!==void 0&&(te.origin=vt)}),sn(a,"beforeChange",a,te),a.cm&&sn(a.cm,"beforeChange",a.cm,te),te.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:te.from,to:te.to,text:te.text,origin:te.origin}}function qs(a,b,ne){if(a.cm){if(!a.cm.curOp)return Ou(a.cm,qs)(a,b,ne);if(a.cm.state.suppressEdits)return}if(!((Fn(a,"beforeChange")||a.cm&&Fn(a.cm,"beforeChange"))&&(b=xs(a,b,!0),!b))){var te=bi&&!ne&&Xo(a,b.from,b.to);if(te)for(var ue=te.length-1;ue>=0;--ue)Xs(a,{from:te[ue].from,to:te[ue].to,text:ue?[""]:b.text,origin:b.origin});else Xs(a,b)}}function Xs(a,b){if(!(b.text.length==1&&b.text[0]==""&&pn(b.from,b.to)==0)){var ne=Xi(a,b);na(a,b,ne,a.cm?a.cm.curOp.id:NaN),sc(a,b,ne,ko(a,b));var te=[];ta(a,function(ue,Ne){!Ne&&ut(te,ue.history)==-1&&(gu(ue.history,b),te.push(ue.history)),sc(ue,b,null,ko(ue,b))})}}function yu(a,b,ne){var te=a.cm&&a.cm.state.suppressEdits;if(!(te&&!ne)){for(var ue=a.history,Ne,et=a.sel,vt=b=="undo"?ue.done:ue.undone,St=b=="undo"?ue.undone:ue.done,_t=0;_t<vt.length&&(Ne=vt[_t],!(ne?Ne.ranges&&!Ne.equals(a.sel):!Ne.ranges));_t++);if(_t!=vt.length){for(ue.lastOrigin=ue.lastSelOrigin=null;;)if(Ne=vt.pop(),Ne.ranges){if(Ha(Ne,St),ne&&!Ne.equals(a.sel)){Oo(a,Ne,{clearRedo:!1});return}et=Ne}else if(te){vt.push(Ne);return}else break;var Ln=[];Ha(et,St),St.push({changes:Ln,generation:ue.generation}),ue.generation=Ne.generation||++ue.maxGeneration;for(var Hn=Fn(a,"beforeChange")||a.cm&&Fn(a.cm,"beforeChange"),Tr=function(Ki){var uo=Ne.changes[Ki];if(uo.origin=b,Hn&&!xs(a,uo,!1))return vt.length=0,{};Ln.push(fo(a,uo));var Fo=Ki?Xi(a,uo):Dt(vt);sc(a,uo,Fo,lo(a,uo)),!Ki&&a.cm&&a.cm.scrollIntoView({from:uo.from,to:qi(uo)});var Ko=[];ta(a,function(Io,ua){!ua&&ut(Ko,Io.history)==-1&&(gu(Io.history,uo),Ko.push(Io.history)),sc(Io,uo,null,lo(Io,uo))})},Er=Ne.changes.length-1;Er>=0;--Er){var xi=Tr(Er);if(xi)return xi.v}}}}function Ul(a,b){if(b!=0&&(a.first+=b,a.sel=new Or(En(a.sel.ranges,function(ue){return new _r(Kt(ue.anchor.line+b,ue.anchor.ch),Kt(ue.head.line+b,ue.head.ch))}),a.sel.primIndex),a.cm)){Nu(a.cm,a.first,a.first-b,b);for(var ne=a.cm.display,te=ne.viewFrom;te<ne.viewTo;te++)DA(a.cm,te,"gutter")}}function sc(a,b,ne,te){if(a.cm&&!a.cm.curOp)return Ou(a.cm,sc)(a,b,ne,te);if(b.to.line<a.first){Ul(a,b.text.length-1-(b.to.line-b.from.line));return}if(!(b.from.line>a.lastLine())){if(b.from.line<a.first){var ue=b.text.length-1-(a.first-b.from.line);Ul(a,ue),b={from:Kt(a.first,0),to:Kt(b.to.line+ue,b.to.ch),text:[Dt(b.text)],origin:b.origin}}var Ne=a.lastLine();b.to.line>Ne&&(b={from:b.from,to:Kt(Ne,fr(a,Ne).text.length),text:[b.text[0]],origin:b.origin}),b.removed=Ur(a,b.from,b.to),ne||(ne=Xi(a,b)),a.cm?Il(a.cm,b,te):aa(a,b,te),hs(a,ne,tt),a.cantEdit&&vu(a,Kt(a.firstLine(),0))&&(a.cantEdit=!1)}}function Il(a,b,ne){var te=a.doc,ue=a.display,Ne=b.from,et=b.to,vt=!1,St=Ne.line;a.options.lineWrapping||(St=un(Wr(fr(te,Ne.line))),te.iter(St,et.line+1,function(Er){if(Er==ue.maxLine)return vt=!0,!0})),te.sel.contains(b.from,b.to)>-1&&zn(a),aa(te,b,ne,Jf(a)),a.options.lineWrapping||(te.iter(St,Ne.line+b.text.length,function(Er){var xi=Jo(Er);xi>ue.maxLineLength&&(ue.maxLine=Er,ue.maxLineLength=xi,ue.maxLineChanged=!0,vt=!1)}),vt&&(a.curOp.updateMaxLine=!0)),hi(te,Ne.line),sd(a,400);var _t=b.text.length-(et.line-Ne.line)-1;b.full?Nu(a):Ne.line==et.line&&b.text.length==1&&!Ia(a.doc,b)?DA(a,Ne.line,"text"):Nu(a,Ne.line,et.line+1,_t);var Ln=Fn(a,"changes"),Hn=Fn(a,"change");if(Hn||Ln){var Tr={from:Ne,to:et,text:b.text,removed:b.removed,origin:b.origin};Hn&&ol(a,"change",a,Tr),Ln&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Tr)}a.display.selForContextMenu=null}function vs(a,b,ne,te,ue){var Ne;te||(te=ne),pn(te,ne)<0&&(Ne=[te,ne],ne=Ne[0],te=Ne[1]),typeof b=="string"&&(b=a.splitLines(b)),qs(a,{from:ne,to:te,text:b,origin:ue})}function cl(a,b,ne,te){ne<a.line?a.line+=te:b<a.line&&(a.line=b,a.ch=0)}function Al(a,b,ne,te){for(var ue=0;ue<a.length;++ue){var Ne=a[ue],et=!0;if(Ne.ranges){Ne.copied||(Ne=a[ue]=Ne.deepCopy(),Ne.copied=!0);for(var vt=0;vt<Ne.ranges.length;vt++)cl(Ne.ranges[vt].anchor,b,ne,te),cl(Ne.ranges[vt].head,b,ne,te);continue}for(var St=0;St<Ne.changes.length;++St){var _t=Ne.changes[St];if(ne<_t.from.line)_t.from=Kt(_t.from.line+te,_t.from.ch),_t.to=Kt(_t.to.line+te,_t.to.ch);else if(b<=_t.to.line){et=!1;break}}et||(a.splice(0,ue+1),ue=0)}}function gu(a,b){var ne=b.from.line,te=b.to.line,ue=b.text.length-(te-ne)-1;Al(a.done,ne,te,ue),Al(a.undone,ne,te,ue)}function Rl(a,b,ne,te){var ue=b,Ne=b;return typeof b=="number"?Ne=fr(a,or(a,b)):ue=un(b),ue==null?null:(te(Ne,ue)&&a.cm&&DA(a.cm,ue,ne),Ne)}function ys(a){this.lines=a,this.parent=null;for(var b=0,ne=0;ne<a.length;++ne)a[ne].parent=this,b+=a[ne].height;this.height=b}ys.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,b){for(var ne=a,te=a+b;ne<te;++ne){var ue=this.lines[ne];this.height-=ue.height,qo(ue),ol(ue,"delete")}this.lines.splice(a,b)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,b,ne){this.height+=ne,this.lines=this.lines.slice(0,a).concat(b).concat(this.lines.slice(a));for(var te=0;te<b.length;++te)b[te].parent=this},iterN:function(a,b,ne){for(var te=a+b;a<te;++a)if(ne(this.lines[a]))return!0}};function bl(a){this.children=a;for(var b=0,ne=0,te=0;te<a.length;++te){var ue=a[te];b+=ue.chunkSize(),ne+=ue.height,ue.parent=this}this.size=b,this.height=ne,this.parent=null}bl.prototype={chunkSize:function(){return this.size},removeInner:function(a,b){this.size-=b;for(var ne=0;ne<this.children.length;++ne){var te=this.children[ne],ue=te.chunkSize();if(a<ue){var Ne=Math.min(b,ue-a),et=te.height;if(te.removeInner(a,Ne),this.height-=et-te.height,ue==Ne&&(this.children.splice(ne--,1),te.parent=null),(b-=Ne)==0)break;a=0}else a-=ue}if(this.size-b<25&&(this.children.length>1||!(this.children[0]instanceof ys))){var vt=[];this.collapse(vt),this.children=[new ys(vt)],this.children[0].parent=this}},collapse:function(a){for(var b=0;b<this.children.length;++b)this.children[b].collapse(a)},insertInner:function(a,b,ne){this.size+=b.length,this.height+=ne;for(var te=0;te<this.children.length;++te){var ue=this.children[te],Ne=ue.chunkSize();if(a<=Ne){if(ue.insertInner(a,b,ne),ue.lines&&ue.lines.length>50){for(var et=ue.lines.length%25+25,vt=et;vt<ue.lines.length;){var St=new ys(ue.lines.slice(vt,vt+=25));ue.height-=St.height,this.children.splice(++te,0,St),St.parent=this}ue.lines=ue.lines.slice(0,et),this.maybeSpill()}break}a-=Ne}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var b=a.children.splice(a.children.length-5,5),ne=new bl(b);if(a.parent){a.size-=ne.size,a.height-=ne.height;var ue=ut(a.parent.children,a);a.parent.children.splice(ue+1,0,ne)}else{var te=new bl(a.children);te.parent=a,a.children=[te,ne],a=te}ne.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,b,ne){for(var te=0;te<this.children.length;++te){var ue=this.children[te],Ne=ue.chunkSize();if(a<Ne){var et=Math.min(b,Ne-a);if(ue.iterN(a,et,ne))return!0;if((b-=et)==0)break;a=0}else a-=Ne}}};var Fs=function(a,b,ne){if(ne)for(var te in ne)ne.hasOwnProperty(te)&&(this[te]=ne[te]);this.doc=a,this.node=b};Fs.prototype.clear=function(){var a=this.doc.cm,b=this.line.widgets,ne=this.line,te=un(ne);if(!(te==null||!b)){for(var ue=0;ue<b.length;++ue)b[ue]==this&&b.splice(ue--,1);b.length||(ne.widgets=null);var Ne=Ql(this);Gt(ne,Math.max(0,ne.height-Ne)),a&&(oc(a,function(){Cl(a,ne,-Ne),DA(a,te,"widget")}),ol(a,"lineWidgetCleared",a,this,te))}},Fs.prototype.changed=function(){var a=this,b=this.height,ne=this.doc.cm,te=this.line;this.height=null;var ue=Ql(this)-b;ue&&(yr(this.doc,te)||Gt(te,te.height+ue),ne&&oc(ne,function(){ne.curOp.forceUpdate=!0,Cl(ne,te,ue),ol(ne,"lineWidgetChanged",ne,a,un(te))}))},Ut(Fs);function Cl(a,b,ne){Ao(b)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&th(a,ne)}function eu(a,b,ne,te){var ue=new Fs(a,ne,te),Ne=a.cm;return Ne&&ue.noHScroll&&(Ne.display.alignWidgets=!0),Rl(a,b,"widget",function(et){var vt=et.widgets||(et.widgets=[]);if(ue.insertAt==null?vt.push(ue):vt.splice(Math.min(vt.length-1,Math.max(0,ue.insertAt)),0,ue),ue.line=et,Ne&&!yr(a,et)){var St=Ao(et)<a.scrollTop;Gt(et,et.height+Ql(ue)),St&&th(Ne,ue.height),Ne.curOp.forceUpdate=!0}return!0}),Ne&&ol(Ne,"lineWidgetAdded",Ne,ue,typeof b=="number"?b:un(b)),ue}var Pu=0,Tu=function(a,b){this.lines=[],this.type=b,this.doc=a,this.id=++Pu};Tu.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,b=a&&!a.curOp;if(b&&ic(a),Fn(this,"clear")){var ne=this.find();ne&&ol(this,"clear",ne.from,ne.to)}for(var te=null,ue=null,Ne=0;Ne<this.lines.length;++Ne){var et=this.lines[Ne],vt=Ji(et.markedSpans,this);a&&!this.collapsed?DA(a,un(et),"text"):a&&(vt.to!=null&&(ue=un(et)),vt.from!=null&&(te=un(et))),et.markedSpans=io(et.markedSpans,vt),vt.from==null&&this.collapsed&&!yr(this.doc,et)&&a&&Gt(et,pc(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var St=0;St<this.lines.length;++St){var _t=Wr(this.lines[St]),Ln=Jo(_t);Ln>a.display.maxLineLength&&(a.display.maxLine=_t,a.display.maxLineLength=Ln,a.display.maxLineChanged=!0)}te!=null&&a&&this.collapsed&&Nu(a,te,ue+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Vs(a.doc)),a&&ol(a,"markerCleared",a,this,te,ue),b&&yA(a),this.parent&&this.parent.clear()}},Tu.prototype.find=function(a,b){a==null&&this.type=="bookmark"&&(a=1);for(var ne,te,ue=0;ue<this.lines.length;++ue){var Ne=this.lines[ue],et=Ji(Ne.markedSpans,this);if(et.from!=null&&(ne=Kt(b?Ne:un(Ne),et.from),a==-1))return ne;if(et.to!=null&&(te=Kt(b?Ne:un(Ne),et.to),a==1))return te}return ne&&{from:ne,to:te}},Tu.prototype.changed=function(){var a=this,b=this.find(-1,!0),ne=this,te=this.doc.cm;!b||!te||oc(te,function(){var ue=b.line,Ne=un(b.line),et=tc(te,Ne);if(et&&(zc(et),te.curOp.selectionChanged=te.curOp.forceUpdate=!0),te.curOp.updateMaxLine=!0,!yr(ne.doc,ue)&&ne.height!=null){var vt=ne.height;ne.height=null;var St=Ql(ne)-vt;St&&Gt(ue,ue.height+St)}ol(te,"markerChanged",te,a)})},Tu.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(!b.maybeHiddenMarkers||ut(b.maybeHiddenMarkers,this)==-1)&&(b.maybeUnhiddenMarkers||(b.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},Tu.prototype.detachLine=function(a){if(this.lines.splice(ut(this.lines,a),1),!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(b.maybeHiddenMarkers||(b.maybeHiddenMarkers=[])).push(this)}},Ut(Tu);function Wc(a,b,ne,te,ue){if(te&&te.shared)return _d(a,b,ne,te,ue);if(a.cm&&!a.cm.curOp)return Ou(a.cm,Wc)(a,b,ne,te,ue);var Ne=new Tu(a,ue),et=pn(b,ne);if(te&&Bt(te,Ne,!1),et>0||et==0&&Ne.clearWhenEmpty!==!1)return Ne;if(Ne.replacedWith&&(Ne.collapsed=!0,Ne.widgetNode=bt("span",[Ne.replacedWith],"CodeMirror-widget"),te.handleMouseEvents||Ne.widgetNode.setAttribute("cm-ignore-events","true"),te.insertLeft&&(Ne.widgetNode.insertLeft=!0)),Ne.collapsed){if(ni(a,b.line,b,ne,Ne)||b.line!=ne.line&&ni(a,ne.line,b,ne,Ne))throw new Error("Inserting collapsed marker partially overlapping an existing one");pi()}Ne.addToHistory&&na(a,{from:b,to:ne,origin:"markText"},a.sel,NaN);var vt=b.line,St=a.cm,_t;if(a.iter(vt,ne.line+1,function(Hn){St&&Ne.collapsed&&!St.options.lineWrapping&&Wr(Hn)==St.display.maxLine&&(_t=!0),Ne.collapsed&&vt!=b.line&&Gt(Hn,0),ji(Hn,new yi(Ne,vt==b.line?b.ch:null,vt==ne.line?ne.ch:null)),++vt}),Ne.collapsed&&a.iter(b.line,ne.line+1,function(Hn){yr(a,Hn)&&Gt(Hn,0)}),Ne.clearOnEnter&&Vt(Ne,"beforeCursorEnter",function(){return Ne.clear()}),Ne.readOnly&&(Yi(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),Ne.collapsed&&(Ne.id=++Pu,Ne.atomic=!0),St){if(_t&&(St.curOp.updateMaxLine=!0),Ne.collapsed)Nu(St,b.line,ne.line+1);else if(Ne.className||Ne.startStyle||Ne.endStyle||Ne.css||Ne.attributes||Ne.title)for(var Ln=b.line;Ln<=ne.line;Ln++)DA(St,Ln,"text");Ne.atomic&&Vs(St.doc),ol(St,"markerAdded",St,Ne)}return Ne}var dl=function(a,b){this.markers=a,this.primary=b;for(var ne=0;ne<a.length;++ne)a[ne].parent=this};dl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();ol(this,"clear")}},dl.prototype.find=function(a,b){return this.primary.find(a,b)},Ut(dl);function _d(a,b,ne,te,ue){te=Bt(te),te.shared=!1;var Ne=[Wc(a,b,ne,te,ue)],et=Ne[0],vt=te.widgetNode;return ta(a,function(St){vt&&(te.widgetNode=vt.cloneNode(!0)),Ne.push(Wc(St,cr(St,b),cr(St,ne),te,ue));for(var _t=0;_t<St.linked.length;++_t)if(St.linked[_t].isParent)return;et=Dt(Ne)}),new dl(Ne,et)}function Uu(a){return a.findMarks(Kt(a.first,0),a.clipPos(Kt(a.lastLine())),function(b){return b.parent})}function Gu(a,b){for(var ne=0;ne<b.length;ne++){var te=b[ne],ue=te.find(),Ne=a.clipPos(ue.from),et=a.clipPos(ue.to);if(pn(Ne,et)){var vt=Wc(a,Ne,et,te.primary,te.primary.type);te.markers.push(vt),vt.parent=te}}}function Ru(a){for(var b=function(te){var ue=a[te],Ne=[ue.primary.doc];ta(ue.primary.doc,function(St){return Ne.push(St)});for(var et=0;et<ue.markers.length;et++){var vt=ue.markers[et];ut(Ne,vt.doc)==-1&&(vt.parent=null,ue.markers.splice(et--,1))}},ne=0;ne<a.length;ne++)b(ne)}var Vu=0,fl=function(a,b,ne,te,ue){if(!(this instanceof fl))return new fl(a,b,ne,te,ue);ne==null&&(ne=0),bl.call(this,[new ys([new pa("",null)])]),this.first=ne,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ne;var Ne=Kt(ne,0);this.sel=Ci(Ne),this.history=new vo(null),this.id=++Vu,this.modeOption=b,this.lineSep=te,this.direction=ue=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),aa(this,{from:Ne,to:Ne,text:a}),Oo(this,Ci(Ne),tt)};fl.prototype=pe(bl.prototype,{constructor:fl,iter:function(a,b,ne){ne?this.iterN(a-this.first,b-a,ne):this.iterN(this.first,this.first+this.size,a)},insert:function(a,b){for(var ne=0,te=0;te<b.length;++te)ne+=b[te].height;this.insertInner(a-this.first,b,ne)},remove:function(a,b){this.removeInner(a-this.first,b)},getValue:function(a){var b=vi(this,this.first,this.first+this.size);return a===!1?b:b.join(a||this.lineSeparator())},setValue:Du(function(a){var b=Kt(this.first,0),ne=this.first+this.size-1;qs(this,{from:b,to:Kt(ne,fr(this,ne).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&id(this.cm,0,0),Oo(this,Ci(b),tt)}),replaceRange:function(a,b,ne,te){b=cr(this,b),ne=ne?cr(this,ne):b,vs(this,a,b,ne,te)},getRange:function(a,b,ne){var te=Ur(this,cr(this,a),cr(this,b));return ne===!1?te:te.join(ne||this.lineSeparator())},getLine:function(a){var b=this.getLineHandle(a);return b&&b.text},getLineHandle:function(a){if(Mt(this,a))return fr(this,a)},getLineNumber:function(a){return un(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=fr(this,a)),Wr(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return cr(this,a)},getCursor:function(a){var b=this.sel.primary(),ne;return a==null||a=="head"?ne=b.head:a=="anchor"?ne=b.anchor:a=="end"||a=="to"||a===!1?ne=b.to():ne=b.from(),ne},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Du(function(a,b,ne){ra(this,cr(this,typeof a=="number"?Kt(a,b||0):a),null,ne)}),setSelection:Du(function(a,b,ne){ra(this,cr(this,a),cr(this,b||a),ne)}),extendSelection:Du(function(a,b,ne){rs(this,cr(this,a),b&&cr(this,b),ne)}),extendSelections:Du(function(a,b){al(this,ti(this,a),b)}),extendSelectionsBy:Du(function(a,b){var ne=En(this.sel.ranges,a);al(this,ti(this,ne),b)}),setSelections:Du(function(a,b,ne){if(a.length){for(var te=[],ue=0;ue<a.length;ue++)te[ue]=new _r(cr(this,a[ue].anchor),cr(this,a[ue].head));b==null&&(b=Math.min(a.length-1,this.sel.primIndex)),Oo(this,Zi(this.cm,te,b),ne)}}),addSelection:Du(function(a,b,ne){var te=this.sel.ranges.slice(0);te.push(new _r(cr(this,a),cr(this,b||a))),Oo(this,Zi(this.cm,te,te.length-1),ne)}),getSelection:function(a){for(var b=this.sel.ranges,ne,te=0;te<b.length;te++){var ue=Ur(this,b[te].from(),b[te].to());ne=ne?ne.concat(ue):ue}return a===!1?ne:ne.join(a||this.lineSeparator())},getSelections:function(a){for(var b=[],ne=this.sel.ranges,te=0;te<ne.length;te++){var ue=Ur(this,ne[te].from(),ne[te].to());a!==!1&&(ue=ue.join(a||this.lineSeparator())),b[te]=ue}return b},replaceSelection:function(a,b,ne){for(var te=[],ue=0;ue<this.sel.ranges.length;ue++)te[ue]=a;this.replaceSelections(te,b,ne||"+input")},replaceSelections:Du(function(a,b,ne){for(var te=[],ue=this.sel,Ne=0;Ne<ue.ranges.length;Ne++){var et=ue.ranges[Ne];te[Ne]={from:et.from(),to:et.to(),text:this.splitLines(a[Ne]),origin:ne}}for(var vt=b&&b!="end"&&Bo(this,te,b),St=te.length-1;St>=0;St--)qs(this,te[St]);vt?Wo(this,vt):this.cm&&Oc(this.cm)}),undo:Du(function(){yu(this,"undo")}),redo:Du(function(){yu(this,"redo")}),undoSelection:Du(function(){yu(this,"undo",!0)}),redoSelection:Du(function(){yu(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,b=0,ne=0,te=0;te<a.done.length;te++)a.done[te].ranges||++b;for(var ue=0;ue<a.undone.length;ue++)a.undone[ue].ranges||++ne;return{undo:b,redo:ne}},clearHistory:function(){var a=this;this.history=new vo(this.history.maxGeneration),ta(this,function(b){return b.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:ql(this.history.done),undone:ql(this.history.undone)}},setHistory:function(a){var b=this.history=new vo(this.history.maxGeneration);b.done=ql(a.done.slice(0),null,!0),b.undone=ql(a.undone.slice(0),null,!0)},setGutterMarker:Du(function(a,b,ne){return Rl(this,a,"gutter",function(te){var ue=te.gutterMarkers||(te.gutterMarkers={});return ue[b]=ne,!ne&&le(ue)&&(te.gutterMarkers=null),!0})}),clearGutter:Du(function(a){var b=this;this.iter(function(ne){ne.gutterMarkers&&ne.gutterMarkers[a]&&Rl(b,ne,"gutter",function(){return ne.gutterMarkers[a]=null,le(ne.gutterMarkers)&&(ne.gutterMarkers=null),!0})})}),lineInfo:function(a){var b;if(typeof a=="number"){if(!Mt(this,a)||(b=a,a=fr(this,a),!a))return null}else if(b=un(a),b==null)return null;return{line:b,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:Du(function(a,b,ne){return Rl(this,a,b=="gutter"?"gutter":"class",function(te){var ue=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass";if(!te[ue])te[ue]=ne;else{if(qe(ne).test(te[ue]))return!1;te[ue]+=" "+ne}return!0})}),removeLineClass:Du(function(a,b,ne){return Rl(this,a,b=="gutter"?"gutter":"class",function(te){var ue=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass",Ne=te[ue];if(Ne)if(ne==null)te[ue]=null;else{var et=Ne.match(qe(ne));if(!et)return!1;var vt=et.index+et[0].length;te[ue]=Ne.slice(0,et.index)+(!et.index||vt==Ne.length?"":" ")+Ne.slice(vt)||null}else return!1;return!0})}),addLineWidget:Du(function(a,b,ne){return eu(this,a,b,ne)}),removeLineWidget:function(a){a.clear()},markText:function(a,b,ne){return Wc(this,cr(this,a),cr(this,b),ne,ne&&ne.type||"range")},setBookmark:function(a,b){var ne={replacedWith:b&&(b.nodeType==null?b.widget:b),insertLeft:b&&b.insertLeft,clearWhenEmpty:!1,shared:b&&b.shared,handleMouseEvents:b&&b.handleMouseEvents};return a=cr(this,a),Wc(this,a,a,ne,"bookmark")},findMarksAt:function(a){a=cr(this,a);var b=[],ne=fr(this,a.line).markedSpans;if(ne)for(var te=0;te<ne.length;++te){var ue=ne[te];(ue.from==null||ue.from<=a.ch)&&(ue.to==null||ue.to>=a.ch)&&b.push(ue.marker.parent||ue.marker)}return b},findMarks:function(a,b,ne){a=cr(this,a),b=cr(this,b);var te=[],ue=a.line;return this.iter(a.line,b.line+1,function(Ne){var et=Ne.markedSpans;if(et)for(var vt=0;vt<et.length;vt++){var St=et[vt];!(St.to!=null&&ue==a.line&&a.ch>=St.to||St.from==null&&ue!=a.line||St.from!=null&&ue==b.line&&St.from>=b.ch)&&(!ne||ne(St.marker))&&te.push(St.marker.parent||St.marker)}++ue}),te},getAllMarks:function(){var a=[];return this.iter(function(b){var ne=b.markedSpans;if(ne)for(var te=0;te<ne.length;++te)ne[te].from!=null&&a.push(ne[te].marker)}),a},posFromIndex:function(a){var b,ne=this.first,te=this.lineSeparator().length;return this.iter(function(ue){var Ne=ue.text.length+te;if(Ne>a)return b=a,!0;a-=Ne,++ne}),cr(this,Kt(ne,b))},indexFromPos:function(a){a=cr(this,a);var b=a.ch;if(a.line<this.first||a.ch<0)return 0;var ne=this.lineSeparator().length;return this.iter(this.first,a.line,function(te){b+=te.text.length+ne}),b},copy:function(a){var b=new fl(vi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return b.scrollTop=this.scrollTop,b.scrollLeft=this.scrollLeft,b.sel=this.sel,b.extend=!1,a&&(b.history.undoDepth=this.history.undoDepth,b.setHistory(this.getHistory())),b},linkedDoc:function(a){a||(a={});var b=this.first,ne=this.first+this.size;a.from!=null&&a.from>b&&(b=a.from),a.to!=null&&a.to<ne&&(ne=a.to);var te=new fl(vi(this,b,ne),a.mode||this.modeOption,b,this.lineSep,this.direction);return a.sharedHist&&(te.history=this.history),(this.linked||(this.linked=[])).push({doc:te,sharedHist:a.sharedHist}),te.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],Gu(te,Uu(this)),te},unlinkDoc:function(a){if(a instanceof Zl&&(a=a.doc),this.linked)for(var b=0;b<this.linked.length;++b){var ne=this.linked[b];if(ne.doc==a){this.linked.splice(b,1),a.unlinkDoc(this),Ru(Uu(this));break}}if(a.history==this.history){var te=[a.id];ta(a,function(ue){return te.push(ue.id)},!0),a.history=new vo(null),a.history.done=ql(this.history.done,te),a.history.undone=ql(this.history.undone,te)}},iterLinkedDocs:function(a){ta(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):Ir(a)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Du(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(b){return b.order=null}),this.cm&&Ho(this.cm))})}),fl.prototype.eachLine=fl.prototype.iter;var mc=0;function bA(a){var b=this;if(Jd(b),!(en(b,a)||fu(b.display,a))){an(a),ze&&(mc=+new Date);var ne=OA(b,a,!0),te=a.dataTransfer.files;if(!(!ne||b.isReadOnly()))if(te&&te.length&&window.FileReader&&window.File)for(var ue=te.length,Ne=Array(ue),et=0,vt=function(){++et==ue&&Ou(b,function(){ne=cr(b.doc,ne);var Er={from:ne,to:ne,text:b.doc.splitLines(Ne.filter(function(xi){return xi!=null}).join(b.doc.lineSeparator())),origin:"paste"};qs(b.doc,Er),Wo(b.doc,Ci(cr(b.doc,ne),cr(b.doc,qi(Er))))})()},St=function(Er,xi){if(b.options.allowDropFileTypes&&ut(b.options.allowDropFileTypes,Er.type)==-1){vt();return}var Ki=new FileReader;Ki.onerror=function(){return vt()},Ki.onload=function(){var uo=Ki.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(uo)){vt();return}Ne[xi]=uo,vt()},Ki.readAsText(Er)},_t=0;_t<te.length;_t++)St(te[_t],_t);else{if(b.state.draggingText&&b.doc.sel.contains(ne)>-1){b.state.draggingText(a),setTimeout(function(){return b.display.input.focus()},20);return}try{var Ln=a.dataTransfer.getData("Text");if(Ln){var Hn;if(b.state.draggingText&&!b.state.draggingText.copy&&(Hn=b.listSelections()),hs(b.doc,Ci(ne,ne)),Hn)for(var Tr=0;Tr<Hn.length;++Tr)vs(b.doc,"",Hn[Tr].anchor,Hn[Tr].head,"drag");b.replaceSelection(Ln,"around","paste"),b.display.input.focus()}}catch(Er){}}}}function Dc(a,b){if(ze&&(!a.state.draggingText||+new Date-mc<100)){It(b);return}if(!(en(a,b)||fu(a.display,b))&&(b.dataTransfer.setData("Text",a.getSelection()),b.dataTransfer.effectAllowed="copyMove",b.dataTransfer.setDragImage&&!Oe)){var ne=pt("img",null,null,"position: fixed; left: 0; top: 0;");ne.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",oe&&(ne.width=ne.height=1,a.display.wrapper.appendChild(ne),ne._top=ne.offsetTop),b.dataTransfer.setDragImage(ne,0,0),oe&&ne.parentNode.removeChild(ne)}}function Gc(a,b){var ne=OA(a,b);if(ne){var te=document.createDocumentFragment();Ph(a,ne,te),a.display.dragCursor||(a.display.dragCursor=pt("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),ot(a.display.dragCursor,te)}}function Jd(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function qd(a){if(document.getElementsByClassName){for(var b=document.getElementsByClassName("CodeMirror"),ne=[],te=0;te<b.length;te++){var ue=b[te].CodeMirror;ue&&ne.push(ue)}ne.length&&ne[0].operation(function(){for(var Ne=0;Ne<ne.length;Ne++)a(ne[Ne])})}}var Is=!1;function ld(){Is||(Ef(),Is=!0)}function Ef(){var a;Vt(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,qd(za)},100))}),Vt(window,"blur",function(){return qd(Zc)})}function za(a){var b=a.display;b.cachedCharWidth=b.cachedTextHeight=b.cachedPaddingH=null,b.scrollbarsClipped=!1,a.setSize()}for(var ps={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},$l=0;$l<10;$l++)ps[$l+48]=ps[$l+96]=String($l);for(var cu=65;cu<=90;cu++)ps[cu]=String.fromCharCode(cu);for(var Bu=1;Bu<=12;Bu++)ps[Bu+111]=ps[Bu+63235]="F"+Bu;var Eu={};Eu.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Eu.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Eu.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Eu.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Eu.default=Ce?Eu.macDefault:Eu.pcDefault;function Xu(a){var b=a.split(/-(?!$)/);a=b[b.length-1];for(var ne,te,ue,Ne,et=0;et<b.length-1;et++){var vt=b[et];if(/^(cmd|meta|m)$/i.test(vt))Ne=!0;else if(/^a(lt)?$/i.test(vt))ne=!0;else if(/^(c|ctrl|control)$/i.test(vt))te=!0;else if(/^s(hift)?$/i.test(vt))ue=!0;else throw new Error("Unrecognized modifier name: "+vt)}return ne&&(a="Alt-"+a),te&&(a="Ctrl-"+a),Ne&&(a="Cmd-"+a),ue&&(a="Shift-"+a),a}function ju(a){var b={};for(var ne in a)if(a.hasOwnProperty(ne)){var te=a[ne];if(/^(name|fallthrough|(de|at)tach)$/.test(ne))continue;if(te=="..."){delete a[ne];continue}for(var ue=En(ne.split(" "),Xu),Ne=0;Ne<ue.length;Ne++){var et=void 0,vt=void 0;Ne==ue.length-1?(vt=ue.join(" "),et=te):(vt=ue.slice(0,Ne+1).join(" "),et="...");var St=b[vt];if(!St)b[vt]=et;else if(St!=et)throw new Error("Inconsistent bindings for "+vt)}delete a[ne]}for(var _t in b)a[_t]=b[_t];return a}function ZA(a,b,ne,te){b=wu(b);var ue=b.call?b.call(a,te):b[a];if(ue===!1)return"nothing";if(ue==="...")return"multi";if(ue!=null&&ne(ue))return"handled";if(b.fallthrough){if(Object.prototype.toString.call(b.fallthrough)!="[object Array]")return ZA(a,b.fallthrough,ne,te);for(var Ne=0;Ne<b.fallthrough.length;Ne++){var et=ZA(a,b.fallthrough[Ne],ne,te);if(et)return et}}}function Sf(a){var b=typeof a=="string"?a:ps[a.keyCode];return b=="Ctrl"||b=="Alt"||b=="Shift"||b=="Mod"}function WA(a,b,ne){var te=a;return b.altKey&&te!="Alt"&&(a="Alt-"+a),(Qe?b.metaKey:b.ctrlKey)&&te!="Ctrl"&&(a="Ctrl-"+a),(Qe?b.ctrlKey:b.metaKey)&&te!="Mod"&&(a="Cmd-"+a),!ne&&b.shiftKey&&te!="Shift"&&(a="Shift-"+a),a}function GA(a,b){if(oe&&a.keyCode==34&&a.char)return!1;var ne=ps[a.keyCode];return ne==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(ne=a.code),WA(ne,a,b))}function wu(a){return typeof a=="string"?Eu[a]:a}function Pc(a,b){for(var ne=a.doc.sel.ranges,te=[],ue=0;ue<ne.length;ue++){for(var Ne=b(ne[ue]);te.length&&pn(Ne.from,Dt(te).to)<=0;){var et=te.pop();if(pn(et.from,Ne.from)<0){Ne.from=et.from;break}}te.push(Ne)}oc(a,function(){for(var vt=te.length-1;vt>=0;vt--)vs(a.doc,"",te[vt].from,te[vt].to,"+delete");Oc(a)})}function ef(a,b,ne){var te=st(a.text,b+ne,ne);return te<0||te>a.text.length?null:te}function Ff(a,b,ne){var te=ef(a,b.ch,ne);return te==null?null:new Kt(b.line,te,ne<0?"after":"before")}function tf(a,b,ne,te,ue){if(a){b.doc.direction=="rtl"&&(ue=-ue);var Ne=Ct(ne,b.doc.direction);if(Ne){var et=ue<0?Dt(Ne):Ne[0],vt=ue<0==(et.level==1),St=vt?"after":"before",_t;if(et.level>0||b.doc.direction=="rtl"){var Ln=ss(b,ne);_t=ue<0?ne.text.length-1:0;var Hn=ns(b,Ln,_t).top;_t=mt(function(Tr){return ns(b,Ln,Tr).top==Hn},ue<0==(et.level==1)?et.from:et.to-1,_t),St=="before"&&(_t=ef(ne,_t,1))}else _t=ue<0?et.to:et.from;return new Kt(te,_t,St)}}return new Kt(te,ue<0?ne.text.length:0,ue<0?"before":"after")}function If(a,b,ne,te){var ue=Ct(b,a.doc.direction);if(!ue)return Ff(b,ne,te);ne.ch>=b.text.length?(ne.ch=b.text.length,ne.sticky="before"):ne.ch<=0&&(ne.ch=0,ne.sticky="after");var Ne=Lt(ue,ne.ch,ne.sticky),et=ue[Ne];if(a.doc.direction=="ltr"&&et.level%2==0&&(te>0?et.to>ne.ch:et.from<ne.ch))return Ff(b,ne,te);var vt=function(Fo,Ko){return ef(b,Fo instanceof Kt?Fo.ch:Fo,Ko)},St,_t=function(Fo){return a.options.lineWrapping?(St=St||ss(a,b),Yl(a,b,St,Fo)):{begin:0,end:b.text.length}},Ln=_t(ne.sticky=="before"?vt(ne,-1):ne.ch);if(a.doc.direction=="rtl"||et.level==1){var Hn=et.level==1==te<0,Tr=vt(ne,Hn?1:-1);if(Tr!=null&&(Hn?Tr<=et.to&&Tr<=Ln.end:Tr>=et.from&&Tr>=Ln.begin)){var Er=Hn?"before":"after";return new Kt(ne.line,Tr,Er)}}var xi=function(Fo,Ko,Io){for(var ua=function(_l,zu){return zu?new Kt(ne.line,vt(_l,1),"before"):new Kt(ne.line,_l,"after")};Fo>=0&&Fo<ue.length;Fo+=Ko){var Da=ue[Fo],Ca=Ko>0==(Da.level!=1),Ra=Ca?Io.begin:vt(Io.end,-1);if(Da.from<=Ra&&Ra<Da.to||(Ra=Ca?Da.from:vt(Da.to,-1),Io.begin<=Ra&&Ra<Io.end))return ua(Ra,Ca)}},Ki=xi(Ne+te,te,Ln);if(Ki)return Ki;var uo=te>0?Ln.end:vt(Ln.begin,-1);return uo!=null&&!(te>0&&uo==b.text.length)&&(Ki=xi(te>0?0:ue.length-1,te,_t(uo)),Ki)?Ki:null}var VA={selectAll:ea,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),tt)},killLine:function(a){return Pc(a,function(b){if(b.empty()){var ne=fr(a.doc,b.head.line).text.length;return b.head.ch==ne&&b.head.line<a.lastLine()?{from:b.head,to:Kt(b.head.line+1,0)}:{from:b.head,to:Kt(b.head.line,ne)}}else return{from:b.from(),to:b.to()}})},deleteLine:function(a){return Pc(a,function(b){return{from:Kt(b.from().line,0),to:cr(a.doc,Kt(b.to().line+1,0))}})},delLineLeft:function(a){return Pc(a,function(b){return{from:Kt(b.from().line,0),to:b.from()}})},delWrappedLineLeft:function(a){return Pc(a,function(b){var ne=a.charCoords(b.head,"div").top+5,te=a.coordsChar({left:0,top:ne},"div");return{from:te,to:b.from()}})},delWrappedLineRight:function(a){return Pc(a,function(b){var ne=a.charCoords(b.head,"div").top+5,te=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:ne},"div");return{from:b.from(),to:te}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(Kt(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Kt(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(b){return rh(a,b.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(b){return ih(a,b.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(b){return pp(a,b.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(b){var ne=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:ne},"div")},Rt)},goLineLeft:function(a){return a.extendSelectionsBy(function(b){var ne=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:0,top:ne},"div")},Rt)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(b){var ne=a.cursorCoords(b.head,"div").top+5,te=a.coordsChar({left:0,top:ne},"div");return te.ch<a.getLine(te.line).search(/\S/)?ih(a,b.head):te},Rt)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var b=[],ne=a.listSelections(),te=a.options.tabSize,ue=0;ue<ne.length;ue++){var Ne=ne[ue].from(),et=Ze(a.getLine(Ne.line),Ne.ch,te);b.push(mn(te-et%te))}a.replaceSelections(b)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return oc(a,function(){for(var b=a.listSelections(),ne=[],te=0;te<b.length;te++)if(b[te].empty()){var ue=b[te].head,Ne=fr(a.doc,ue.line).text;if(Ne){if(ue.ch==Ne.length&&(ue=new Kt(ue.line,ue.ch-1)),ue.ch>0)ue=new Kt(ue.line,ue.ch+1),a.replaceRange(Ne.charAt(ue.ch-1)+Ne.charAt(ue.ch-2),Kt(ue.line,ue.ch-2),ue,"+transpose");else if(ue.line>a.doc.first){var et=fr(a.doc,ue.line-1).text;et&&(ue=new Kt(ue.line,1),a.replaceRange(Ne.charAt(0)+a.doc.lineSeparator()+et.charAt(et.length-1),Kt(ue.line-1,et.length-1),ue,"+transpose"))}}ne.push(new _r(ue,ue))}a.setSelections(ne)})},newlineAndIndent:function(a){return oc(a,function(){for(var b=a.listSelections(),ne=b.length-1;ne>=0;ne--)a.replaceRange(a.doc.lineSeparator(),b[ne].anchor,b[ne].head,"+input");b=a.listSelections();for(var te=0;te<b.length;te++)a.indentLine(b[te].from().line,null,!0);Oc(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function rh(a,b){var ne=fr(a.doc,b),te=Wr(ne);return te!=ne&&(b=un(te)),tf(!0,a,te,b,1)}function pp(a,b){var ne=fr(a.doc,b),te=Ui(ne);return te!=ne&&(b=un(te)),tf(!0,a,ne,b,-1)}function ih(a,b){var ne=rh(a,b.line),te=fr(a.doc,ne.line),ue=Ct(te,a.doc.direction);if(!ue||ue[0].level==0){var Ne=Math.max(ne.ch,te.text.search(/\S/)),et=b.line==ne.line&&b.ch<=Ne&&b.ch;return Kt(ne.line,et?0:Ne,ne.sticky)}return ne}function nf(a,b,ne){if(typeof b=="string"&&(b=VA[b],!b))return!1;a.display.input.ensurePolled();var te=a.display.shift,ue=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ne&&(a.display.shift=!1),ue=b(a)!=zt}finally{a.display.shift=te,a.state.suppressEdits=!1}return ue}function mp(a,b,ne){for(var te=0;te<a.state.keyMaps.length;te++){var ue=ZA(b,a.state.keyMaps[te],ne,a);if(ue)return ue}return a.options.extraKeys&&ZA(b,a.options.extraKeys,ne,a)||ZA(b,a.options.keyMap,ne,a)}var gp=new De;function rf(a,b,ne,te){var ue=a.state.keySeq;if(ue){if(Sf(b))return"handled";if(/\'$/.test(b)?a.state.keySeq=null:gp.set(50,function(){a.state.keySeq==ue&&(a.state.keySeq=null,a.display.input.reset())}),Lf(a,ue+" "+b,ne,te))return!0}return Lf(a,b,ne,te)}function Lf(a,b,ne,te){var ue=mp(a,b,te);return ue=="multi"&&(a.state.keySeq=b),ue=="handled"&&ol(a,"keyHandled",a,b,ne),(ue=="handled"||ue=="multi")&&(an(ne),Fd(a)),!!ue}function Nd(a,b){var ne=GA(b,!0);return ne?b.shiftKey&&!a.state.keySeq?rf(a,"Shift-"+ne,b,function(te){return nf(a,te,!0)})||rf(a,ne,b,function(te){if(typeof te=="string"?/^go[A-Z]/.test(te):te.motion)return nf(a,te)}):rf(a,ne,b,function(te){return nf(a,te)}):!1}function _f(a,b,ne){return rf(a,"'"+ne+"'",b,function(te){return nf(a,te,!0)})}var Od=null;function of(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&(b.curOp.focus=_e(),!en(b,a))){ze&&Le<11&&a.keyCode==27&&(a.returnValue=!1);var ne=a.keyCode;b.display.shift=ne==16||a.shiftKey;var te=Nd(b,a);oe&&(Od=te?ne:null,!te&&ne==88&&!vr&&(Ce?a.metaKey:a.ctrlKey)&&b.replaceSelection("",null,"cut")),x&&!Ce&&!te&&ne==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),ne==18&&!/\bCodeMirror-crosshair\b/.test(b.display.lineDiv.className)&&CA(b)}}function CA(a){var b=a.display.lineDiv;Re(b,"CodeMirror-crosshair");function ne(te){(te.keyCode==18||!te.altKey)&&(Ve(b,"CodeMirror-crosshair"),gn(document,"keyup",ne),gn(document,"mouseover",ne))}Vt(document,"keyup",ne),Vt(document,"mouseover",ne)}function oh(a){a.keyCode==16&&(this.doc.sel.shift=!1),en(this,a)}function ah(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&!(fu(b.display,a)||en(b,a)||a.ctrlKey&&!a.altKey||Ce&&a.metaKey)){var ne=a.keyCode,te=a.charCode;if(oe&&ne==Od){Od=null,an(a);return}if(!(oe&&(!a.which||a.which<10)&&Nd(b,a))){var ue=String.fromCharCode(te==null?ne:te);ue!="\b"&&(_f(b,a,ue)||b.display.input.onKeyPress(a))}}}var Mh=400,ud=function(a,b,ne){this.time=a,this.pos=b,this.button=ne};ud.prototype.compare=function(a,b,ne){return this.time+Mh>a&&pn(b,this.pos)==0&&ne==this.button};var xA,BA;function Dd(a,b){var ne=+new Date;return BA&&BA.compare(ne,a,b)?(xA=BA=null,"triple"):xA&&xA.compare(ne,a,b)?(BA=new ud(ne,a,b),xA=null,"double"):(xA=new ud(ne,a,b),BA=null,"single")}function cd(a){var b=this,ne=b.display;if(!(en(b,a)||ne.activeTouch&&ne.input.supportsTouch())){if(ne.input.ensurePolled(),ne.shift=a.shiftKey,fu(ne,a)){Ue||(ne.scroller.draggable=!1,setTimeout(function(){return ne.scroller.draggable=!0},100));return}if(!MA(b,a)){var te=OA(b,a),ue=on(a),Ne=te?Dd(te,ue):"single";window.focus(),ue==1&&b.state.selectingText&&b.state.selectingText(a),!(te&&Uh(b,ue,te,Ne,a))&&(ue==1?te?Ls(b,te,Ne,a):Wt(a)==ne.scroller&&an(a):ue==2?(te&&rs(b.doc,te),setTimeout(function(){return ne.input.focus()},20)):ue==3&&(je?b.display.input.onContextMenu(a):bf(b)))}}}function Uh(a,b,ne,te,ue){var Ne="Click";return te=="double"?Ne="Double"+Ne:te=="triple"&&(Ne="Triple"+Ne),Ne=(b==1?"Left":b==2?"Middle":"Right")+Ne,rf(a,WA(Ne,ue),ue,function(et){if(typeof et=="string"&&(et=VA[et]),!et)return!1;var vt=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),vt=et(a,ne)!=zt}finally{a.state.suppressEdits=!1}return vt})}function ms(a,b,ne){var te=a.getOption("configureMouse"),ue=te?te(a,b,ne):{};if(ue.unit==null){var Ne=Ee?ne.shiftKey&&ne.metaKey:ne.altKey;ue.unit=Ne?"rectangle":b=="single"?"char":b=="double"?"word":"line"}return(ue.extend==null||a.doc.extend)&&(ue.extend=a.doc.extend||ne.shiftKey),ue.addNew==null&&(ue.addNew=Ce?ne.metaKey:ne.ctrlKey),ue.moveOnDrag==null&&(ue.moveOnDrag=!(Ce?ne.altKey:ne.ctrlKey)),ue}function Ls(a,b,ne,te){ze?setTimeout(at(eh,a),0):a.curOp.focus=_e();var ue=ms(a,ne,te),Ne=a.doc.sel,et;a.options.dragDrop&&vn&&!a.isReadOnly()&&ne=="single"&&(et=Ne.contains(b))>-1&&(pn((et=Ne.ranges[et]).from(),b)<0||b.xRel>0)&&(pn(et.to(),b)>0||b.xRel<0)?bu(a,te,b,ue):Hu(a,te,b,ue)}function bu(a,b,ne,te){var ue=a.display,Ne=!1,et=Ou(a,function(_t){Ue&&(ue.scroller.draggable=!1),a.state.draggingText=!1,gn(ue.wrapper.ownerDocument,"mouseup",et),gn(ue.wrapper.ownerDocument,"mousemove",vt),gn(ue.scroller,"dragstart",St),gn(ue.scroller,"drop",et),Ne||(an(_t),te.addNew||rs(a.doc,ne,null,null,te.extend),Ue&&!Oe||ze&&Le==9?setTimeout(function(){ue.wrapper.ownerDocument.body.focus({preventScroll:!0}),ue.input.focus()},20):ue.input.focus())}),vt=function(_t){Ne=Ne||Math.abs(b.clientX-_t.clientX)+Math.abs(b.clientY-_t.clientY)>=10},St=function(){return Ne=!0};Ue&&(ue.scroller.draggable=!0),a.state.draggingText=et,et.copy=!te.moveOnDrag,ue.scroller.dragDrop&&ue.scroller.dragDrop(),Vt(ue.wrapper.ownerDocument,"mouseup",et),Vt(ue.wrapper.ownerDocument,"mousemove",vt),Vt(ue.scroller,"dragstart",St),Vt(ue.scroller,"drop",et),bf(a),setTimeout(function(){return ue.input.focus()},20)}function Qu(a,b,ne){if(ne=="char")return new _r(b,b);if(ne=="word")return a.findWordAt(b);if(ne=="line")return new _r(Kt(b.line,0),cr(a.doc,Kt(b.line+1,0)));var te=ne(a,b);return new _r(te.from,te.to)}function Hu(a,b,ne,te){var ue=a.display,Ne=a.doc;an(b);var et,vt,St=Ne.sel,_t=St.ranges;if(te.addNew&&!te.extend?(vt=Ne.sel.contains(ne),vt>-1?et=_t[vt]:et=new _r(ne,ne)):(et=Ne.sel.primary(),vt=Ne.sel.primIndex),te.unit=="rectangle")te.addNew||(et=new _r(ne,ne)),ne=OA(a,b,!0,!0),vt=-1;else{var Ln=Qu(a,ne,te.unit);te.extend?et=ls(et,Ln.anchor,Ln.head,te.extend):et=Ln}te.addNew?vt==-1?(vt=_t.length,Oo(Ne,Zi(a,_t.concat([et]),vt),{scroll:!1,origin:"*mouse"})):_t.length>1&&_t[vt].empty()&&te.unit=="char"&&!te.extend?(Oo(Ne,Zi(a,_t.slice(0,vt).concat(_t.slice(vt+1)),0),{scroll:!1,origin:"*mouse"}),St=Ne.sel):mu(Ne,vt,et,Ot):(vt=0,Oo(Ne,new Or([et],0),Ot),St=Ne.sel);var Hn=ne;function Tr(Io){if(pn(Hn,Io)!=0)if(Hn=Io,te.unit=="rectangle"){for(var ua=[],Da=a.options.tabSize,Ca=Ze(fr(Ne,ne.line).text,ne.ch,Da),Ra=Ze(fr(Ne,Io.line).text,Io.ch,Da),_l=Math.min(Ca,Ra),zu=Math.max(Ca,Ra),tu=Math.min(ne.line,Io.line),gc=Math.min(a.lastLine(),Math.max(ne.line,Io.line));tu<=gc;tu++){var Yu=fr(Ne,tu).text,ku=fn(Yu,_l,Da);_l==zu?ua.push(new _r(Kt(tu,ku),Kt(tu,ku))):Yu.length>ku&&ua.push(new _r(Kt(tu,ku),Kt(tu,fn(Yu,zu,Da))))}ua.length||ua.push(new _r(ne,ne)),Oo(Ne,Zi(a,St.ranges.slice(0,vt).concat(ua),vt),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Io)}else{var vc=et,lc=Qu(a,Io,te.unit),Eo=vc.anchor,Gl;pn(lc.anchor,Eo)>0?(Gl=lc.head,Eo=ci(vc.from(),lc.anchor)):(Gl=lc.anchor,Eo=Yr(vc.to(),lc.head));var nu=St.ranges.slice(0);nu[vt]=Ad(a,new _r(cr(Ne,Eo),Gl)),Oo(Ne,Zi(a,nu,vt),Ot)}}var Er=ue.wrapper.getBoundingClientRect(),xi=0;function Ki(Io){var ua=++xi,Da=OA(a,Io,!0,te.unit=="rectangle");if(Da)if(pn(Da,Hn)!=0){a.curOp.focus=_e(),Tr(Da);var Ca=Nc(ue,Ne);(Da.line>=Ca.to||Da.line<Ca.from)&&setTimeout(Ou(a,function(){xi==ua&&Ki(Io)}),150)}else{var Ra=Io.clientY<Er.top?-20:Io.clientY>Er.bottom?20:0;Ra&&setTimeout(Ou(a,function(){xi==ua&&(ue.scroller.scrollTop+=Ra,Ki(Io))}),50)}}function uo(Io){a.state.selectingText=!1,xi=1/0,Io&&(an(Io),ue.input.focus()),gn(ue.wrapper.ownerDocument,"mousemove",Fo),gn(ue.wrapper.ownerDocument,"mouseup",Ko),Ne.history.lastSelOrigin=null}var Fo=Ou(a,function(Io){Io.buttons===0||!on(Io)?uo(Io):Ki(Io)}),Ko=Ou(a,uo);a.state.selectingText=Ko,Vt(ue.wrapper.ownerDocument,"mousemove",Fo),Vt(ue.wrapper.ownerDocument,"mouseup",Ko)}function Ad(a,b){var ne=b.anchor,te=b.head,ue=fr(a.doc,ne.line);if(pn(ne,te)==0&&ne.sticky==te.sticky)return b;var Ne=Ct(ue);if(!Ne)return b;var et=Lt(Ne,ne.ch,ne.sticky),vt=Ne[et];if(vt.from!=ne.ch&&vt.to!=ne.ch)return b;var St=et+(vt.from==ne.ch==(vt.level!=1)?0:1);if(St==0||St==Ne.length)return b;var _t;if(te.line!=ne.line)_t=(te.line-ne.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Ln=Lt(Ne,te.ch,te.sticky),Hn=Ln-et||(te.ch-ne.ch)*(vt.level==1?-1:1);Ln==St-1||Ln==St?_t=Hn<0:_t=Hn>0}var Tr=Ne[St+(_t?-1:0)],Er=_t==(Tr.level==1),xi=Er?Tr.from:Tr.to,Ki=Er?"after":"before";return ne.ch==xi&&ne.sticky==Ki?b:new _r(new Kt(ne.line,xi,Ki),te)}function XA(a,b,ne,te){var ue,Ne;if(b.touches)ue=b.touches[0].clientX,Ne=b.touches[0].clientY;else try{ue=b.clientX,Ne=b.clientY}catch(Tr){return!1}if(ue>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;te&&an(b);var et=a.display,vt=et.lineDiv.getBoundingClientRect();if(Ne>vt.bottom||!Fn(a,ne))return Vn(b);Ne-=vt.top-et.viewOffset;for(var St=0;St<a.display.gutterSpecs.length;++St){var _t=et.gutters.childNodes[St];if(_t&&_t.getBoundingClientRect().right>=ue){var Ln=wn(a.doc,Ne),Hn=a.display.gutterSpecs[St];return sn(a,ne,a,Ln,Hn.className,b),Vn(b)}}}function MA(a,b){return XA(a,b,"gutterClick",!0)}function dd(a,b){fu(a.display,b)||YA(a,b)||en(a,b,"contextmenu")||je||a.display.input.onContextMenu(b)}function YA(a,b){return Fn(a,"gutterContextMenu")?XA(a,b,"gutterContextMenu",!1):!1}function Rh(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),_u(a)}var fd={toString:function(){return"CodeMirror.Init"}},Vp={},jh={};function mm(a){var b=a.optionHandlers;function ne(te,ue,Ne,et){a.defaults[te]=ue,Ne&&(b[te]=et?function(vt,St,_t){_t!=fd&&Ne(vt,St,_t)}:Ne)}a.defineOption=ne,a.Init=fd,ne("value","",function(te,ue){return te.setValue(ue)},!0),ne("mode",null,function(te,ue){te.doc.modeOption=ue,jo(te)},!0),ne("indentUnit",2,jo,!0),ne("indentWithTabs",!1),ne("smartIndent",!0),ne("tabSize",4,function(te){Po(te),_u(te),Nu(te)},!0),ne("lineSeparator",null,function(te,ue){if(te.doc.lineSep=ue,!!ue){var Ne=[],et=te.doc.first;te.doc.iter(function(St){for(var _t=0;;){var Ln=St.text.indexOf(ue,_t);if(Ln==-1)break;_t=Ln+ue.length,Ne.push(Kt(et,Ln))}et++});for(var vt=Ne.length-1;vt>=0;vt--)vs(te.doc,ue,Ne[vt],Kt(Ne[vt].line,Ne[vt].ch+ue.length))}}),ne("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(te,ue,Ne){te.state.specialChars=new RegExp(ue.source+(ue.test(" ")?"":"| "),"g"),Ne!=fd&&te.refresh()}),ne("specialCharPlaceholder",_s,function(te){return te.refresh()},!0),ne("electricChars",!0),ne("inputStyle",we?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ne("spellcheck",!1,function(te,ue){return te.getInputField().spellcheck=ue},!0),ne("autocorrect",!1,function(te,ue){return te.getInputField().autocorrect=ue},!0),ne("autocapitalize",!1,function(te,ue){return te.getInputField().autocapitalize=ue},!0),ne("rtlMoveVisually",!ke),ne("wholeLineUpdateBefore",!0),ne("theme","default",function(te){Rh(te),ar(te)},!0),ne("keyMap","default",function(te,ue,Ne){var et=wu(ue),vt=Ne!=fd&&wu(Ne);vt&&vt.detach&&vt.detach(te,et),et.attach&&et.attach(te,vt||null)}),ne("extraKeys",null),ne("configureMouse",null),ne("lineWrapping",!1,Xp,!0),ne("gutters",[],function(te,ue){te.display.gutterSpecs=Sn(ue,te.options.lineNumbers),ar(te)},!0),ne("fixedGutter",!0,function(te,ue){te.display.gutters.style.left=ue?Ed(te.display)+"px":"0",te.refresh()},!0),ne("coverGutterNextToScrollbar",!1,function(te){return kA(te)},!0),ne("scrollbarStyle","native",function(te){kh(te),kA(te),te.display.scrollbars.setScrollTop(te.doc.scrollTop),te.display.scrollbars.setScrollLeft(te.doc.scrollLeft)},!0),ne("lineNumbers",!1,function(te,ue){te.display.gutterSpecs=Sn(te.options.gutters,ue),ar(te)},!0),ne("firstLineNumber",1,ar,!0),ne("lineNumberFormatter",function(te){return te},ar,!0),ne("showCursorWhenSelecting",!1,Wu,!0),ne("resetSelectionOnContextMenu",!0),ne("lineWiseCopyCut",!0),ne("pasteLinesPerSelection",!0),ne("selectionsMayTouch",!1),ne("readOnly",!1,function(te,ue){ue=="nocursor"&&(Zc(te),te.display.input.blur()),te.display.input.readOnlyChanged(ue)}),ne("screenReaderLabel",null,function(te,ue){ue=ue===""?null:ue,te.display.input.screenReaderLabelChanged(ue)}),ne("disableInput",!1,function(te,ue){ue||te.display.input.reset()},!0),ne("dragDrop",!0,gm),ne("allowDropFileTypes",null),ne("cursorBlinkRate",530),ne("cursorScrollMargin",0),ne("cursorHeight",1,Wu,!0),ne("singleCursorHeightPerLine",!0,Wu,!0),ne("workTime",100),ne("workDelay",100),ne("flattenSpans",!0,Po,!0),ne("addModeClass",!1,Po,!0),ne("pollInterval",100),ne("undoDepth",200,function(te,ue){return te.doc.history.undoDepth=ue}),ne("historyEventDelay",1250),ne("viewportMargin",10,function(te){return te.refresh()},!0),ne("maxHighlightLength",1e4,Po,!0),ne("moveInputWithCursor",!0,function(te,ue){ue||te.display.input.resetPosition()}),ne("tabindex",null,function(te,ue){return te.display.input.getField().tabIndex=ue||""}),ne("autofocus",null),ne("direction","ltr",function(te,ue){return te.doc.setDirection(ue)},!0),ne("phrases",null)}function gm(a,b,ne){var te=ne&&ne!=fd;if(!b!=!te){var ue=a.display.dragFunctions,Ne=b?Vt:gn;Ne(a.display.scroller,"dragstart",ue.start),Ne(a.display.scroller,"dragenter",ue.enter),Ne(a.display.scroller,"dragover",ue.over),Ne(a.display.scroller,"dragleave",ue.leave),Ne(a.display.scroller,"drop",ue.drop)}}function Xp(a){a.options.lineWrapping?(Re(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Ve(a.display.wrapper,"CodeMirror-wrap"),_o(a)),nd(a),Nu(a),_u(a),setTimeout(function(){return kA(a)},100)}function Zl(a,b){var ne=this;if(!(this instanceof Zl))return new Zl(a,b);this.options=b=b?Bt(b):{},Bt(Vp,b,!1);var te=b.value;typeof te=="string"?te=new fl(te,b.mode,null,b.lineSeparator,b.direction):b.mode&&(te.modeOption=b.mode),this.doc=te;var ue=new Zl.inputStyles[b.inputStyle](this),Ne=this.display=new er(a,te,ue,b);Ne.wrapper.CodeMirror=this,Rh(this),b.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),kh(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new De,keySeq:null,specialChars:null},b.autofocus&&!we&&Ne.input.focus(),ze&&Le<11&&setTimeout(function(){return ne.display.input.reset(!0)},20),Yp(this),ld(),ic(this),this.curOp.forceUpdate=!0,zo(this,te),b.autofocus&&!we||this.hasFocus()?setTimeout(function(){ne.hasFocus()&&!ne.state.focused&&Cf(ne)},20):Zc(this);for(var et in jh)jh.hasOwnProperty(et)&&jh[et](this,b[et],fd);cn(this),b.finishInit&&b.finishInit(this);for(var vt=0;vt<Qh.length;++vt)Qh[vt](this);yA(this),Ue&&b.lineWrapping&&getComputedStyle(Ne.lineDiv).textRendering=="optimizelegibility"&&(Ne.lineDiv.style.textRendering="auto")}Zl.defaults=Vp,Zl.optionHandlers=jh;function Yp(a){var b=a.display;Vt(b.scroller,"mousedown",Ou(a,cd)),ze&&Le<11?Vt(b.scroller,"dblclick",Ou(a,function(St){if(!en(a,St)){var _t=OA(a,St);if(!(!_t||MA(a,St)||fu(a.display,St))){an(St);var Ln=a.findWordAt(_t);rs(a.doc,Ln.anchor,Ln.head)}}})):Vt(b.scroller,"dblclick",function(St){return en(a,St)||an(St)}),Vt(b.scroller,"contextmenu",function(St){return dd(a,St)}),Vt(b.input.getField(),"contextmenu",function(St){b.scroller.contains(St.target)||dd(a,St)});var ne,te={end:0};function ue(){b.activeTouch&&(ne=setTimeout(function(){return b.activeTouch=null},1e3),te=b.activeTouch,te.end=+new Date)}function Ne(St){if(St.touches.length!=1)return!1;var _t=St.touches[0];return _t.radiusX<=1&&_t.radiusY<=1}function et(St,_t){if(_t.left==null)return!0;var Ln=_t.left-St.left,Hn=_t.top-St.top;return Ln*Ln+Hn*Hn>20*20}Vt(b.scroller,"touchstart",function(St){if(!en(a,St)&&!Ne(St)&&!MA(a,St)){b.input.ensurePolled(),clearTimeout(ne);var _t=+new Date;b.activeTouch={start:_t,moved:!1,prev:_t-te.end<=300?te:null},St.touches.length==1&&(b.activeTouch.left=St.touches[0].pageX,b.activeTouch.top=St.touches[0].pageY)}}),Vt(b.scroller,"touchmove",function(){b.activeTouch&&(b.activeTouch.moved=!0)}),Vt(b.scroller,"touchend",function(St){var _t=b.activeTouch;if(_t&&!fu(b,St)&&_t.left!=null&&!_t.moved&&new Date-_t.start<300){var Ln=a.coordsChar(b.activeTouch,"page"),Hn;!_t.prev||et(_t,_t.prev)?Hn=new _r(Ln,Ln):!_t.prev.prev||et(_t,_t.prev.prev)?Hn=a.findWordAt(Ln):Hn=new _r(Kt(Ln.line,0),cr(a.doc,Kt(Ln.line+1,0))),a.setSelection(Hn.anchor,Hn.head),a.focus(),an(St)}ue()}),Vt(b.scroller,"touchcancel",ue),Vt(b.scroller,"scroll",function(){b.scroller.clientHeight&&(rc(a,b.scroller.scrollTop),gA(a,b.scroller.scrollLeft,!0),sn(a,"scroll",a))}),Vt(b.scroller,"mousewheel",function(St){return Hr(a,St)}),Vt(b.scroller,"DOMMouseScroll",function(St){return Hr(a,St)}),Vt(b.wrapper,"scroll",function(){return b.wrapper.scrollTop=b.wrapper.scrollLeft=0}),b.dragFunctions={enter:function(St){en(a,St)||It(St)},over:function(St){en(a,St)||(Gc(a,St),It(St))},start:function(St){return Dc(a,St)},drop:Ou(a,bA),leave:function(St){en(a,St)||Jd(a)}};var vt=b.input.getField();Vt(vt,"keyup",function(St){return oh.call(a,St)}),Vt(vt,"keydown",Ou(a,of)),Vt(vt,"keypress",Ou(a,ah)),Vt(vt,"focus",function(St){return Cf(a,St)}),Vt(vt,"blur",function(St){return Zc(a,St)})}var Qh=[];Zl.defineInitHook=function(a){return Qh.push(a)};function af(a,b,ne,te){var ue=a.doc,Ne;ne==null&&(ne="add"),ne=="smart"&&(ue.mode.indent?Ne=Zn(a,b).state:ne="prev");var et=a.options.tabSize,vt=fr(ue,b),St=Ze(vt.text,null,et);vt.stateAfter&&(vt.stateAfter=null);var _t=vt.text.match(/^\s*/)[0],Ln;if(!te&&!/\S/.test(vt.text))Ln=0,ne="not";else if(ne=="smart"&&(Ln=ue.mode.indent(Ne,vt.text.slice(_t.length),vt.text),Ln==zt||Ln>150)){if(!te)return;ne="prev"}ne=="prev"?b>ue.first?Ln=Ze(fr(ue,b-1).text,null,et):Ln=0:ne=="add"?Ln=St+a.options.indentUnit:ne=="subtract"?Ln=St-a.options.indentUnit:typeof ne=="number"&&(Ln=St+ne),Ln=Math.max(0,Ln);var Hn="",Tr=0;if(a.options.indentWithTabs)for(var Er=Math.floor(Ln/et);Er;--Er)Tr+=et,Hn+=" ";if(Tr<Ln&&(Hn+=mn(Ln-Tr)),Hn!=_t)return vs(ue,Hn,Kt(b,0),Kt(b,_t.length),"+input"),vt.stateAfter=null,!0;for(var xi=0;xi<ue.sel.ranges.length;xi++){var Ki=ue.sel.ranges[xi];if(Ki.head.line==b&&Ki.head.ch<_t.length){var uo=Kt(b,_t.length);mu(ue,xi,new _r(uo,uo));break}}}var EA=null;function sh(a){EA=a}function lh(a,b,ne,te,ue){var Ne=a.doc;a.display.shift=!1,te||(te=Ne.sel);var et=+new Date-200,vt=ue=="paste"||a.state.pasteIncoming>et,St=Ir(b),_t=null;if(vt&&te.ranges.length>1)if(EA&&EA.text.join(`
`)==b){if(te.ranges.length%EA.text.length==0){_t=[];for(var Ln=0;Ln<EA.text.length;Ln++)_t.push(Ne.splitLines(EA.text[Ln]))}}else St.length==te.ranges.length&&a.options.pasteLinesPerSelection&&(_t=En(St,function(Fo){return[Fo]}));for(var Hn=a.curOp.updateInput,Tr=te.ranges.length-1;Tr>=0;Tr--){var Er=te.ranges[Tr],xi=Er.from(),Ki=Er.to();Er.empty()&&(ne&&ne>0?xi=Kt(xi.line,xi.ch-ne):a.state.overwrite&&!vt?Ki=Kt(Ki.line,Math.min(fr(Ne,Ki.line).text.length,Ki.ch+Dt(St).length)):vt&&EA&&EA.lineWise&&EA.text.join(`
`)==St.join(`
`)&&(xi=Ki=Kt(xi.line,0)));var uo={from:xi,to:Ki,text:_t?_t[Tr%_t.length]:St,origin:ue||(vt?"paste":a.state.cutIncoming>et?"cut":"+input")};qs(a.doc,uo),ol(a,"inputRead",a,uo)}b&&!vt&&uh(a,b),Oc(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Hn),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Nf(a,b){var ne=a.clipboardData&&a.clipboardData.getData("Text");if(ne)return a.preventDefault(),!b.isReadOnly()&&!b.options.disableInput&&oc(b,function(){return lh(b,ne,0,null,"paste")}),!0}function uh(a,b){if(!(!a.options.electricChars||!a.options.smartIndent))for(var ne=a.doc.sel,te=ne.ranges.length-1;te>=0;te--){var ue=ne.ranges[te];if(!(ue.head.ch>100||te&&ne.ranges[te-1].head.line==ue.head.line)){var Ne=a.getModeAt(ue.head),et=!1;if(Ne.electricChars){for(var vt=0;vt<Ne.electricChars.length;vt++)if(b.indexOf(Ne.electricChars.charAt(vt))>-1){et=af(a,ue.head.line,"smart");break}}else Ne.electricInput&&Ne.electricInput.test(fr(a.doc,ue.head.line).text.slice(0,ue.head.ch))&&(et=af(a,ue.head.line,"smart"));et&&ol(a,"electricInput",a,ue.head.line)}}}function vp(a){for(var b=[],ne=[],te=0;te<a.doc.sel.ranges.length;te++){var ue=a.doc.sel.ranges[te].head.line,Ne={anchor:Kt(ue,0),head:Kt(ue+1,0)};ne.push(Ne),b.push(a.getRange(Ne.anchor,Ne.head))}return{text:b,ranges:ne}}function yp(a,b,ne,te){a.setAttribute("autocorrect",ne?"":"off"),a.setAttribute("autocapitalize",te?"":"off"),a.setAttribute("spellcheck",!!b)}function vm(){var a=pt("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),b=pt("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ue?a.style.width="1000px":a.setAttribute("wrap","off"),Se&&(a.style.border="1px solid black"),yp(a),b}function wp(a){var b=a.optionHandlers,ne=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(te,ue){var Ne=this.options,et=Ne[te];Ne[te]==ue&&te!="mode"||(Ne[te]=ue,b.hasOwnProperty(te)&&Ou(this,b[te])(this,ue,et),sn(this,"optionChange",this,te))},getOption:function(te){return this.options[te]},getDoc:function(){return this.doc},addKeyMap:function(te,ue){this.state.keyMaps[ue?"push":"unshift"](wu(te))},removeKeyMap:function(te){for(var ue=this.state.keyMaps,Ne=0;Ne<ue.length;++Ne)if(ue[Ne]==te||ue[Ne].name==te)return ue.splice(Ne,1),!0},addOverlay:ac(function(te,ue){var Ne=te.token?te:a.getMode(this.options,te);if(Ne.startState)throw new Error("Overlays may not be stateful.");rn(this.state.overlays,{mode:Ne,modeSpec:te,opaque:ue&&ue.opaque,priority:ue&&ue.priority||0},function(et){return et.priority}),this.state.modeGen++,Nu(this)}),removeOverlay:ac(function(te){for(var ue=this.state.overlays,Ne=0;Ne<ue.length;++Ne){var et=ue[Ne].modeSpec;if(et==te||typeof te=="string"&&et.name==te){ue.splice(Ne,1),this.state.modeGen++,Nu(this);return}}}),indentLine:ac(function(te,ue,Ne){typeof ue!="string"&&typeof ue!="number"&&(ue==null?ue=this.options.smartIndent?"smart":"prev":ue=ue?"add":"subtract"),Mt(this.doc,te)&&af(this,te,ue,Ne)}),indentSelection:ac(function(te){for(var ue=this.doc.sel.ranges,Ne=-1,et=0;et<ue.length;et++){var vt=ue[et];if(vt.empty())vt.head.line>Ne&&(af(this,vt.head.line,te,!0),Ne=vt.head.line,et==this.doc.sel.primIndex&&Oc(this));else{var St=vt.from(),_t=vt.to(),Ln=Math.max(Ne,St.line);Ne=Math.min(this.lastLine(),_t.line-(_t.ch?0:1))+1;for(var Hn=Ln;Hn<Ne;++Hn)af(this,Hn,te);var Tr=this.doc.sel.ranges;St.ch==0&&ue.length==Tr.length&&Tr[et].from().ch>0&&mu(this.doc,et,new _r(St,Tr[et].to()),tt)}}}),getTokenAt:function(te,ue){return Kr(this,te,ue)},getLineTokens:function(te,ue){return Kr(this,Kt(te),ue,!0)},getTokenTypeAt:function(te){te=cr(this.doc,te);var ue=Bi(this,fr(this.doc,te.line)),Ne=0,et=(ue.length-1)/2,vt=te.ch,St;if(vt==0)St=ue[2];else for(;;){var _t=Ne+et>>1;if((_t?ue[_t*2-1]:0)>=vt)et=_t;else if(ue[_t*2+1]<vt)Ne=_t+1;else{St=ue[_t*2+2];break}}var Ln=St?St.indexOf("overlay "):-1;return Ln<0?St:Ln==0?null:St.slice(0,Ln-1)},getModeAt:function(te){var ue=this.doc.mode;return ue.innerMode?a.innerMode(ue,this.getTokenAt(te).state).mode:ue},getHelper:function(te,ue){return this.getHelpers(te,ue)[0]},getHelpers:function(te,ue){var Ne=[];if(!ne.hasOwnProperty(ue))return Ne;var et=ne[ue],vt=this.getModeAt(te);if(typeof vt[ue]=="string")et[vt[ue]]&&Ne.push(et[vt[ue]]);else if(vt[ue])for(var St=0;St<vt[ue].length;St++){var _t=et[vt[ue][St]];_t&&Ne.push(_t)}else vt.helperType&&et[vt.helperType]?Ne.push(et[vt.helperType]):et[vt.name]&&Ne.push(et[vt.name]);for(var Ln=0;Ln<et._global.length;Ln++){var Hn=et._global[Ln];Hn.pred(vt,this)&&ut(Ne,Hn.val)==-1&&Ne.push(Hn.val)}return Ne},getStateAfter:function(te,ue){var Ne=this.doc;return te=or(Ne,te==null?Ne.first+Ne.size-1:te),Zn(this,te+1,ue).state},cursorCoords:function(te,ue){var Ne,et=this.doc.sel.primary();return te==null?Ne=et.head:typeof te=="object"?Ne=cr(this.doc,te):Ne=te?et.from():et.to(),hu(this,Ne,ue||"page")},charCoords:function(te,ue){return uu(this,cr(this.doc,te),ue||"page")},coordsChar:function(te,ue){return te=$A(this,te,ue||"page"),Ms(this,te.left,te.top)},lineAtHeight:function(te,ue){return te=$A(this,{top:te,left:0},ue||"page").top,wn(this.doc,te+this.display.viewOffset)},heightAtLine:function(te,ue,Ne){var et=!1,vt;if(typeof te=="number"){var St=this.doc.first+this.doc.size-1;te<this.doc.first?te=this.doc.first:te>St&&(te=St,et=!0),vt=fr(this.doc,te)}else vt=te;return NA(this,vt,{top:0,left:0},ue||"page",Ne||et).top+(et?this.doc.height-Ao(vt):0)},defaultTextHeight:function(){return pc(this.display)},defaultCharWidth:function(){return nA(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(te,ue,Ne,et,vt){var St=this.display;te=hu(this,cr(this.doc,te));var _t=te.bottom,Ln=te.left;if(ue.style.position="absolute",ue.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ue),St.sizer.appendChild(ue),et=="over")_t=te.top;else if(et=="above"||et=="near"){var Hn=Math.max(St.wrapper.clientHeight,this.doc.height),Tr=Math.max(St.sizer.clientWidth,St.lineSpace.clientWidth);(et=="above"||te.bottom+ue.offsetHeight>Hn)&&te.top>ue.offsetHeight?_t=te.top-ue.offsetHeight:te.bottom+ue.offsetHeight<=Hn&&(_t=te.bottom),Ln+ue.offsetWidth>Tr&&(Ln=Tr-ue.offsetWidth)}ue.style.top=_t+"px",ue.style.left=ue.style.right="",vt=="right"?(Ln=St.sizer.clientWidth-ue.offsetWidth,ue.style.right="0px"):(vt=="left"?Ln=0:vt=="middle"&&(Ln=(St.sizer.clientWidth-ue.offsetWidth)/2),ue.style.left=Ln+"px"),Ne&&Kp(this,{left:Ln,top:_t,right:Ln+ue.offsetWidth,bottom:_t+ue.offsetHeight})},triggerOnKeyDown:ac(of),triggerOnKeyPress:ac(ah),triggerOnKeyUp:oh,triggerOnMouseDown:ac(cd),execCommand:function(te){if(VA.hasOwnProperty(te))return VA[te].call(null,this)},triggerElectric:ac(function(te){uh(this,te)}),findPosH:function(te,ue,Ne,et){var vt=1;ue<0&&(vt=-1,ue=-ue);for(var St=cr(this.doc,te),_t=0;_t<ue&&(St=ch(this.doc,St,vt,Ne,et),!St.hitSide);++_t);return St},moveH:ac(function(te,ue){var Ne=this;this.extendSelectionsBy(function(et){return Ne.display.shift||Ne.doc.extend||et.empty()?ch(Ne.doc,et.head,te,ue,Ne.options.rtlMoveVisually):te<0?et.from():et.to()},Rt)}),deleteH:ac(function(te,ue){var Ne=this.doc.sel,et=this.doc;Ne.somethingSelected()?et.replaceSelection("",null,"+delete"):Pc(this,function(vt){var St=ch(et,vt.head,te,ue,!1);return te<0?{from:St,to:vt.head}:{from:vt.head,to:St}})}),findPosV:function(te,ue,Ne,et){var vt=1,St=et;ue<0&&(vt=-1,ue=-ue);for(var _t=cr(this.doc,te),Ln=0;Ln<ue;++Ln){var Hn=hu(this,_t,"div");if(St==null?St=Hn.left:Hn.left=St,_t=Jp(this,Hn,vt,Ne),_t.hitSide)break}return _t},moveV:ac(function(te,ue){var Ne=this,et=this.doc,vt=[],St=!this.display.shift&&!et.extend&&et.sel.somethingSelected();if(et.extendSelectionsBy(function(Ln){if(St)return te<0?Ln.from():Ln.to();var Hn=hu(Ne,Ln.head,"div");Ln.goalColumn!=null&&(Hn.left=Ln.goalColumn),vt.push(Hn.left);var Tr=Jp(Ne,Hn,te,ue);return ue=="page"&&Ln==et.sel.primary()&&th(Ne,uu(Ne,Tr,"div").top-Hn.top),Tr},Rt),vt.length)for(var _t=0;_t<et.sel.ranges.length;_t++)et.sel.ranges[_t].goalColumn=vt[_t]}),findWordAt:function(te){var ue=this.doc,Ne=fr(ue,te.line).text,et=te.ch,vt=te.ch;if(Ne){var St=this.getHelper(te,"wordChars");(te.sticky=="before"||vt==Ne.length)&&et?--et:++vt;for(var _t=Ne.charAt(et),Ln=se(_t,St)?function(Hn){return se(Hn,St)}:/\s/.test(_t)?function(Hn){return/\s/.test(Hn)}:function(Hn){return!/\s/.test(Hn)&&!se(Hn)};et>0&&Ln(Ne.charAt(et-1));)--et;for(;vt<Ne.length&&Ln(Ne.charAt(vt));)++vt}return new _r(Kt(te.line,et),Kt(te.line,vt))},toggleOverwrite:function(te){te!=null&&te==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Re(this.display.cursorDiv,"CodeMirror-overwrite"):Ve(this.display.cursorDiv,"CodeMirror-overwrite"),sn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==_e()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ac(function(te,ue){id(this,te,ue)}),getScrollInfo:function(){var te=this.display.scroller;return{left:te.scrollLeft,top:te.scrollTop,height:te.scrollHeight-Ma(this)-this.display.barHeight,width:te.scrollWidth-Ma(this)-this.display.barWidth,clientHeight:ks(this),clientWidth:Hl(this)}},scrollIntoView:ac(function(te,ue){te==null?(te={from:this.doc.sel.primary().head,to:null},ue==null&&(ue=this.options.cursorScrollMargin)):typeof te=="number"?te={from:Kt(te,0),to:null}:te.from==null&&(te={from:te,to:null}),te.to||(te.to=te.from),te.margin=ue||0,te.from.line!=null?$p(this,te):Ec(this,te.from,te.to,te.margin)}),setSize:ac(function(te,ue){var Ne=this,et=function(St){return typeof St=="number"||/^\d+$/.test(String(St))?St+"px":St};te!=null&&(this.display.wrapper.style.width=et(te)),ue!=null&&(this.display.wrapper.style.height=et(ue)),this.options.lineWrapping&&ml(this);var vt=this.display.viewFrom;this.doc.iter(vt,this.display.viewTo,function(St){if(St.widgets){for(var _t=0;_t<St.widgets.length;_t++)if(St.widgets[_t].noHScroll){DA(Ne,vt,"widget");break}}++vt}),this.curOp.forceUpdate=!0,sn(this,"refresh",this)}),operation:function(te){return oc(this,te)},startOperation:function(){return ic(this)},endOperation:function(){return yA(this)},refresh:ac(function(){var te=this.display.cachedTextHeight;Nu(this),this.curOp.forceUpdate=!0,_u(this),id(this,this.doc.scrollLeft,this.doc.scrollTop),wt(this.display),(te==null||Math.abs(te-pc(this.display))>.5||this.options.lineWrapping)&&nd(this),sn(this,"refresh",this)}),swapDoc:ac(function(te){var ue=this.doc;return ue.cm=null,this.state.selectingText&&this.state.selectingText(),zo(this,te),_u(this),this.display.input.reset(),id(this,te.scrollLeft,te.scrollTop),this.curOp.forceScroll=!0,ol(this,"swapDoc",this,ue),ue}),phrase:function(te){var ue=this.options.phrases;return ue&&Object.prototype.hasOwnProperty.call(ue,te)?ue[te]:te},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ut(a),a.registerHelper=function(te,ue,Ne){ne.hasOwnProperty(te)||(ne[te]=a[te]={_global:[]}),ne[te][ue]=Ne},a.registerGlobalHelper=function(te,ue,Ne,et){a.registerHelper(te,ue,et),ne[te]._global.push({pred:Ne,val:et})}}function ch(a,b,ne,te,ue){var Ne=b,et=ne,vt=fr(a,b.line),St=ue&&a.direction=="rtl"?-ne:ne;function _t(){var Ko=b.line+St;return Ko<a.first||Ko>=a.first+a.size?!1:(b=new Kt(Ko,b.ch,b.sticky),vt=fr(a,Ko))}function Ln(Ko){var Io;if(te=="codepoint"){var ua=vt.text.charCodeAt(b.ch+(te>0?0:-1));isNaN(ua)?Io=null:Io=new Kt(b.line,Math.max(0,Math.min(vt.text.length,b.ch+ne*(ua>=55296&&ua<56320?2:1))),-ne)}else ue?Io=If(a.cm,vt,b,ne):Io=Ff(vt,b,ne);if(Io==null)if(!Ko&&_t())b=tf(ue,a.cm,vt,b.line,St);else return!1;else b=Io;return!0}if(te=="char"||te=="codepoint")Ln();else if(te=="column")Ln(!0);else if(te=="word"||te=="group")for(var Hn=null,Tr=te=="group",Er=a.cm&&a.cm.getHelper(b,"wordChars"),xi=!0;!(ne<0&&!Ln(!xi));xi=!1){var Ki=vt.text.charAt(b.ch)||`
`,uo=se(Ki,Er)?"w":Tr&&Ki==`
`?"n":!Tr||/\s/.test(Ki)?null:"p";if(Tr&&!xi&&!uo&&(uo="s"),Hn&&Hn!=uo){ne<0&&(ne=1,Ln(),b.sticky="after");break}if(uo&&(Hn=uo),ne>0&&!Ln(!xi))break}var Fo=vu(a,b,Ne,et,!0);return Nn(Ne,Fo)&&(Fo.hitSide=!0),Fo}function Jp(a,b,ne,te){var ue=a.doc,Ne=b.left,et;if(te=="page"){var vt=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),St=Math.max(vt-.5*pc(a.display),3);et=(ne>0?b.bottom:b.top)+ne*St}else te=="line"&&(et=ne>0?b.bottom+3:b.top-3);for(var _t;_t=Ms(a,Ne,et),!!_t.outside;){if(ne<0?et<=0:et>=ue.height){_t.hitSide=!0;break}et+=ne*5}return _t}var xl=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new De,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};xl.prototype.init=function(a){var b=this,ne=this,te=ne.cm,ue=ne.div=a.lineDiv;yp(ue,te.options.spellcheck,te.options.autocorrect,te.options.autocapitalize);function Ne(vt){for(var St=vt.target;St;St=St.parentNode){if(St==ue)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(St.className))break}return!1}Vt(ue,"paste",function(vt){!Ne(vt)||en(te,vt)||Nf(vt,te)||Le<=11&&setTimeout(Ou(te,function(){return b.updateFromDOM()}),20)}),Vt(ue,"compositionstart",function(vt){b.composing={data:vt.data,done:!1}}),Vt(ue,"compositionupdate",function(vt){b.composing||(b.composing={data:vt.data,done:!1})}),Vt(ue,"compositionend",function(vt){b.composing&&(vt.data!=b.composing.data&&b.readFromDOMSoon(),b.composing.done=!0)}),Vt(ue,"touchstart",function(){return ne.forceCompositionEnd()}),Vt(ue,"input",function(){b.composing||b.readFromDOMSoon()});function et(vt){if(!(!Ne(vt)||en(te,vt))){if(te.somethingSelected())sh({lineWise:!1,text:te.getSelections()}),vt.type=="cut"&&te.replaceSelection("",null,"cut");else if(te.options.lineWiseCopyCut){var St=vp(te);sh({lineWise:!0,text:St.text}),vt.type=="cut"&&te.operation(function(){te.setSelections(St.ranges,0,tt),te.replaceSelection("",null,"cut")})}else return;if(vt.clipboardData){vt.clipboardData.clearData();var _t=EA.text.join(`
`);if(vt.clipboardData.setData("Text",_t),vt.clipboardData.getData("Text")==_t){vt.preventDefault();return}}var Ln=vm(),Hn=Ln.firstChild;te.display.lineSpace.insertBefore(Ln,te.display.lineSpace.firstChild),Hn.value=EA.text.join(`
`);var Tr=document.activeElement;it(Hn),setTimeout(function(){te.display.lineSpace.removeChild(Ln),Tr.focus(),Tr==ue&&ne.showPrimarySelection()},50)}}Vt(ue,"copy",et),Vt(ue,"cut",et)},xl.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},xl.prototype.prepareSelection=function(){var a=pA(this.cm,!1);return a.focus=document.activeElement==this.div,a},xl.prototype.showSelection=function(a,b){!a||!this.cm.display.view.length||((a.focus||b)&&this.showPrimarySelection(),this.showMultipleSelections(a))},xl.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},xl.prototype.showPrimarySelection=function(){var a=this.getSelection(),b=this.cm,ne=b.doc.sel.primary(),te=ne.from(),ue=ne.to();if(b.display.viewTo==b.display.viewFrom||te.line>=b.display.viewTo||ue.line<b.display.viewFrom){a.removeAllRanges();return}var Ne=JA(b,a.anchorNode,a.anchorOffset),et=JA(b,a.focusNode,a.focusOffset);if(!(Ne&&!Ne.bad&&et&&!et.bad&&pn(ci(Ne,et),te)==0&&pn(Yr(Ne,et),ue)==0)){var vt=b.display.view,St=te.line>=b.display.viewFrom&&Pd(b,te)||{node:vt[0].measure.map[2],offset:0},_t=ue.line<b.display.viewTo&&Pd(b,ue);if(!_t){var Ln=vt[vt.length-1].measure,Hn=Ln.maps?Ln.maps[Ln.maps.length-1]:Ln.map;_t={node:Hn[Hn.length-1],offset:Hn[Hn.length-2]-Hn[Hn.length-3]}}if(!St||!_t){a.removeAllRanges();return}var Tr=a.rangeCount&&a.getRangeAt(0),Er;try{Er=He(St.node,St.offset,_t.offset,_t.node)}catch(xi){}Er&&(!x&&b.state.focused?(a.collapse(St.node,St.offset),Er.collapsed||(a.removeAllRanges(),a.addRange(Er))):(a.removeAllRanges(),a.addRange(Er)),Tr&&a.anchorNode==null?a.addRange(Tr):x&&this.startGracePeriod()),this.rememberSelection()}},xl.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},xl.prototype.showMultipleSelections=function(a){ot(this.cm.display.cursorDiv,a.cursors),ot(this.cm.display.selectionDiv,a.selection)},xl.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},xl.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var b=a.getRangeAt(0).commonAncestorContainer;return ht(this.div,b)},xl.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},xl.prototype.blur=function(){this.div.blur()},xl.prototype.getField=function(){return this.div},xl.prototype.supportsTouch=function(){return!0},xl.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():oc(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function b(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,b))}this.polling.set(this.cm.options.pollInterval,b)},xl.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},xl.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),b=this.cm;if(Te&&xe&&this.cm.display.gutterSpecs.length&&ym(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ne=JA(b,a.anchorNode,a.anchorOffset),te=JA(b,a.focusNode,a.focusOffset);ne&&te&&oc(b,function(){Oo(b.doc,Ci(ne,te),tt),(ne.bad||te.bad)&&(b.curOp.selectionChanged=!0)})}}},xl.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,b=a.display,ne=a.doc.sel.primary(),te=ne.from(),ue=ne.to();if(te.ch==0&&te.line>a.firstLine()&&(te=Kt(te.line-1,fr(a.doc,te.line-1).length)),ue.ch==fr(a.doc,ue.line).text.length&&ue.line<a.lastLine()&&(ue=Kt(ue.line+1,0)),te.line<b.viewFrom||ue.line>b.viewTo-1)return!1;var Ne,et,vt;te.line==b.viewFrom||(Ne=hA(a,te.line))==0?(et=un(b.view[0].line),vt=b.view[0].node):(et=un(b.view[Ne].line),vt=b.view[Ne-1].node.nextSibling);var St=hA(a,ue.line),_t,Ln;if(St==b.view.length-1?(_t=b.viewTo-1,Ln=b.lineDiv.lastChild):(_t=un(b.view[St+1].line)-1,Ln=b.view[St+1].node.previousSibling),!vt)return!1;for(var Hn=a.doc.splitLines(Td(a,vt,Ln,et,_t)),Tr=Ur(a.doc,Kt(et,0),Kt(_t,fr(a.doc,_t).text.length));Hn.length>1&&Tr.length>1;)if(Dt(Hn)==Dt(Tr))Hn.pop(),Tr.pop(),_t--;else if(Hn[0]==Tr[0])Hn.shift(),Tr.shift(),et++;else break;for(var Er=0,xi=0,Ki=Hn[0],uo=Tr[0],Fo=Math.min(Ki.length,uo.length);Er<Fo&&Ki.charCodeAt(Er)==uo.charCodeAt(Er);)++Er;for(var Ko=Dt(Hn),Io=Dt(Tr),ua=Math.min(Ko.length-(Hn.length==1?Er:0),Io.length-(Tr.length==1?Er:0));xi<ua&&Ko.charCodeAt(Ko.length-xi-1)==Io.charCodeAt(Io.length-xi-1);)++xi;if(Hn.length==1&&Tr.length==1&&et==te.line)for(;Er&&Er>te.ch&&Ko.charCodeAt(Ko.length-xi-1)==Io.charCodeAt(Io.length-xi-1);)Er--,xi++;Hn[Hn.length-1]=Ko.slice(0,Ko.length-xi).replace(/^\u200b+/,""),Hn[0]=Hn[0].slice(Er).replace(/\u200b+$/,"");var Da=Kt(et,Er),Ca=Kt(_t,Tr.length?Dt(Tr).length-xi:0);if(Hn.length>1||Hn[0]||pn(Da,Ca))return vs(a.doc,Hn,Da,Ca,"+input"),!0},xl.prototype.ensurePolled=function(){this.forceCompositionEnd()},xl.prototype.reset=function(){this.forceCompositionEnd()},xl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},xl.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},xl.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&oc(this.cm,function(){return Nu(a.cm)})},xl.prototype.setUneditable=function(a){a.contentEditable="false"},xl.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Ou(this.cm,lh)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},xl.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},xl.prototype.onContextMenu=function(){},xl.prototype.resetPosition=function(){},xl.prototype.needsContentAttribute=!0;function Pd(a,b){var ne=tc(a,b.line);if(!ne||ne.hidden)return null;var te=fr(a.doc,b.line),ue=pl(ne,te,b.line),Ne=Ct(te,a.doc.direction),et="left";if(Ne){var vt=Lt(Ne,b.ch);et=vt%2?"right":"left"}var St=tA(ue.map,b.ch,et);return St.offset=St.collapse=="right"?St.end:St.start,St}function ym(a){for(var b=a;b;b=b.parentNode)if(/CodeMirror-gutter-wrapper/.test(b.className))return!0;return!1}function Wl(a,b){return b&&(a.bad=!0),a}function Td(a,b,ne,te,ue){var Ne="",et=!1,vt=a.doc.lineSeparator(),St=!1;function _t(Er){return function(xi){return xi.id==Er}}function Ln(){et&&(Ne+=vt,St&&(Ne+=vt),et=St=!1)}function Hn(Er){Er&&(Ln(),Ne+=Er)}function Tr(Er){if(Er.nodeType==1){var xi=Er.getAttribute("cm-text");if(xi){Hn(xi);return}var Ki=Er.getAttribute("cm-marker"),uo;if(Ki){var Fo=a.findMarks(Kt(te,0),Kt(ue+1,0),_t(+Ki));Fo.length&&(uo=Fo[0].find(0))&&Hn(Ur(a.doc,uo.from,uo.to).join(vt));return}if(Er.getAttribute("contenteditable")=="false")return;var Ko=/^(pre|div|p|li|table|br)$/i.test(Er.nodeName);if(!/^br$/i.test(Er.nodeName)&&Er.textContent.length==0)return;Ko&&Ln();for(var Io=0;Io<Er.childNodes.length;Io++)Tr(Er.childNodes[Io]);/^(pre|p)$/i.test(Er.nodeName)&&(St=!0),Ko&&(et=!0)}else Er.nodeType==3&&Hn(Er.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Tr(b),b!=ne;)b=b.nextSibling,St=!1;return Ne}function JA(a,b,ne){var te;if(b==a.display.lineDiv){if(te=a.display.lineDiv.childNodes[ne],!te)return Wl(a.clipPos(Kt(a.display.viewTo-1)),!0);b=null,ne=0}else for(te=b;;te=te.parentNode){if(!te||te==a.display.lineDiv)return null;if(te.parentNode&&te.parentNode==a.display.lineDiv)break}for(var ue=0;ue<a.display.view.length;ue++){var Ne=a.display.view[ue];if(Ne.node==te)return hd(Ne,b,ne)}}function hd(a,b,ne){var te=a.text.firstChild,ue=!1;if(!b||!ht(te,b))return Wl(Kt(un(a.line),0),!0);if(b==te&&(ue=!0,b=te.childNodes[ne],ne=0,!b)){var Ne=a.rest?Dt(a.rest):a.line;return Wl(Kt(un(Ne),Ne.text.length),ue)}var et=b.nodeType==3?b:null,vt=b;for(!et&&b.childNodes.length==1&&b.firstChild.nodeType==3&&(et=b.firstChild,ne&&(ne=et.nodeValue.length));vt.parentNode!=te;)vt=vt.parentNode;var St=a.measure,_t=St.maps;function Ln(uo,Fo,Ko){for(var Io=-1;Io<(_t?_t.length:0);Io++)for(var ua=Io<0?St.map:_t[Io],Da=0;Da<ua.length;Da+=3){var Ca=ua[Da+2];if(Ca==uo||Ca==Fo){var Ra=un(Io<0?a.line:a.rest[Io]),_l=ua[Da]+Ko;return(Ko<0||Ca!=uo)&&(_l=ua[Da+(Ko?1:0)]),Kt(Ra,_l)}}}var Hn=Ln(et,vt,ne);if(Hn)return Wl(Hn,ue);for(var Tr=vt.nextSibling,Er=et?et.nodeValue.length-ne:0;Tr;Tr=Tr.nextSibling){if(Hn=Ln(Tr,Tr.firstChild,0),Hn)return Wl(Kt(Hn.line,Hn.ch-Er),ue);Er+=Tr.textContent.length}for(var xi=vt.previousSibling,Ki=ne;xi;xi=xi.previousSibling){if(Hn=Ln(xi,xi.firstChild,-1),Hn)return Wl(Kt(Hn.line,Hn.ch+Ki),ue);Ki+=xi.textContent.length}}var Ll=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new De,this.hasSelection=!1,this.composing=null};Ll.prototype.init=function(a){var b=this,ne=this,te=this.cm;this.createField(a);var ue=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),Se&&(ue.style.width="0px"),Vt(ue,"input",function(){ze&&Le>=9&&b.hasSelection&&(b.hasSelection=null),ne.poll()}),Vt(ue,"paste",function(et){en(te,et)||Nf(et,te)||(te.state.pasteIncoming=+new Date,ne.fastPoll())});function Ne(et){if(!en(te,et)){if(te.somethingSelected())sh({lineWise:!1,text:te.getSelections()});else if(te.options.lineWiseCopyCut){var vt=vp(te);sh({lineWise:!0,text:vt.text}),et.type=="cut"?te.setSelections(vt.ranges,null,tt):(ne.prevInput="",ue.value=vt.text.join(`
`),it(ue))}else return;et.type=="cut"&&(te.state.cutIncoming=+new Date)}}Vt(ue,"cut",Ne),Vt(ue,"copy",Ne),Vt(a.scroller,"paste",function(et){if(!(fu(a,et)||en(te,et))){if(!ue.dispatchEvent){te.state.pasteIncoming=+new Date,ne.focus();return}var vt=new Event("paste");vt.clipboardData=et.clipboardData,ue.dispatchEvent(vt)}}),Vt(a.lineSpace,"selectstart",function(et){fu(a,et)||an(et)}),Vt(ue,"compositionstart",function(){var et=te.getCursor("from");ne.composing&&ne.composing.range.clear(),ne.composing={start:et,range:te.markText(et,te.getCursor("to"),{className:"CodeMirror-composing"})}}),Vt(ue,"compositionend",function(){ne.composing&&(ne.poll(),ne.composing.range.clear(),ne.composing=null)})},Ll.prototype.createField=function(a){this.wrapper=vm(),this.textarea=this.wrapper.firstChild},Ll.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Ll.prototype.prepareSelection=function(){var a=this.cm,b=a.display,ne=a.doc,te=pA(a);if(a.options.moveInputWithCursor){var ue=hu(a,ne.sel.primary().head,"div"),Ne=b.wrapper.getBoundingClientRect(),et=b.lineDiv.getBoundingClientRect();te.teTop=Math.max(0,Math.min(b.wrapper.clientHeight-10,ue.top+et.top-Ne.top)),te.teLeft=Math.max(0,Math.min(b.wrapper.clientWidth-10,ue.left+et.left-Ne.left))}return te},Ll.prototype.showSelection=function(a){var b=this.cm,ne=b.display;ot(ne.cursorDiv,a.cursors),ot(ne.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Ll.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var b=this.cm;if(b.somethingSelected()){this.prevInput="";var ne=b.getSelection();this.textarea.value=ne,b.state.focused&&it(this.textarea),ze&&Le>=9&&(this.hasSelection=ne)}else a||(this.prevInput=this.textarea.value="",ze&&Le>=9&&(this.hasSelection=null))}},Ll.prototype.getField=function(){return this.textarea},Ll.prototype.supportsTouch=function(){return!1},Ll.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!we||_e()!=this.textarea))try{this.textarea.focus()}catch(a){}},Ll.prototype.blur=function(){this.textarea.blur()},Ll.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ll.prototype.receivedFocus=function(){this.slowPoll()},Ll.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Ll.prototype.fastPoll=function(){var a=!1,b=this;b.pollingFast=!0;function ne(){var te=b.poll();!te&&!a?(a=!0,b.polling.set(60,ne)):(b.pollingFast=!1,b.slowPoll())}b.polling.set(20,ne)},Ll.prototype.poll=function(){var a=this,b=this.cm,ne=this.textarea,te=this.prevInput;if(this.contextMenuPending||!b.state.focused||tr(ne)&&!te&&!this.composing||b.isReadOnly()||b.options.disableInput||b.state.keySeq)return!1;var ue=ne.value;if(ue==te&&!b.somethingSelected())return!1;if(ze&&Le>=9&&this.hasSelection===ue||Ce&&/[\uf700-\uf7ff]/.test(ue))return b.display.input.reset(),!1;if(b.doc.sel==b.display.selForContextMenu){var Ne=ue.charCodeAt(0);if(Ne==8203&&!te&&(te="\u200B"),Ne==8666)return this.reset(),this.cm.execCommand("undo")}for(var et=0,vt=Math.min(te.length,ue.length);et<vt&&te.charCodeAt(et)==ue.charCodeAt(et);)++et;return oc(b,function(){lh(b,ue.slice(et),te.length-et,null,a.composing?"*compose":null),ue.length>1e3||ue.indexOf(`
`)>-1?ne.value=a.prevInput="":a.prevInput=ue,a.composing&&(a.composing.range.clear(),a.composing.range=b.markText(a.composing.start,b.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ll.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ll.prototype.onKeyPress=function(){ze&&Le>=9&&(this.hasSelection=null),this.fastPoll()},Ll.prototype.onContextMenu=function(a){var b=this,ne=b.cm,te=ne.display,ue=b.textarea;b.contextMenuPending&&b.contextMenuPending();var Ne=OA(ne,a),et=te.scroller.scrollTop;if(!Ne||oe)return;var vt=ne.options.resetSelectionOnContextMenu;vt&&ne.doc.sel.contains(Ne)==-1&&Ou(ne,Oo)(ne.doc,Ci(Ne),tt);var St=ue.style.cssText,_t=b.wrapper.style.cssText,Ln=b.wrapper.offsetParent.getBoundingClientRect();b.wrapper.style.cssText="position: static",ue.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-Ln.top-5)+"px; left: "+(a.clientX-Ln.left-5)+`px;
z-index: 1000; background: `+(ze?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Hn;Ue&&(Hn=window.scrollY),te.input.focus(),Ue&&window.scrollTo(null,Hn),te.input.reset(),ne.somethingSelected()||(ue.value=b.prevInput=" "),b.contextMenuPending=Er,te.selForContextMenu=ne.doc.sel,clearTimeout(te.detectingSelectAll);function Tr(){if(ue.selectionStart!=null){var Ki=ne.somethingSelected(),uo="\u200B"+(Ki?ue.value:"");ue.value="\u21DA",ue.value=uo,b.prevInput=Ki?"":"\u200B",ue.selectionStart=1,ue.selectionEnd=uo.length,te.selForContextMenu=ne.doc.sel}}function Er(){if(b.contextMenuPending==Er&&(b.contextMenuPending=!1,b.wrapper.style.cssText=_t,ue.style.cssText=St,ze&&Le<9&&te.scrollbars.setScrollTop(te.scroller.scrollTop=et),ue.selectionStart!=null)){(!ze||ze&&Le<9)&&Tr();var Ki=0,uo=function(){te.selForContextMenu==ne.doc.sel&&ue.selectionStart==0&&ue.selectionEnd>0&&b.prevInput=="\u200B"?Ou(ne,ea)(ne):Ki++<10?te.detectingSelectAll=setTimeout(uo,500):(te.selForContextMenu=null,te.input.reset())};te.detectingSelectAll=setTimeout(uo,200)}}if(ze&&Le>=9&&Tr(),je){It(a);var xi=function(){gn(window,"mouseup",xi),setTimeout(Er,20)};Vt(window,"mouseup",xi)}else setTimeout(Er,50)},Ll.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Ll.prototype.setUneditable=function(){},Ll.prototype.needsContentAttribute=!1;function Ah(a,b){if(b=b?Bt(b):{},b.value=a.value,!b.tabindex&&a.tabIndex&&(b.tabindex=a.tabIndex),!b.placeholder&&a.placeholder&&(b.placeholder=a.placeholder),b.autofocus==null){var ne=_e();b.autofocus=ne==a||a.getAttribute("autofocus")!=null&&ne==document.body}function te(){a.value=vt.getValue()}var ue;if(a.form&&(Vt(a.form,"submit",te),!b.leaveSubmitMethodAlone)){var Ne=a.form;ue=Ne.submit;try{var et=Ne.submit=function(){te(),Ne.submit=ue,Ne.submit(),Ne.submit=et}}catch(St){}}b.finishInit=function(St){St.save=te,St.getTextArea=function(){return a},St.toTextArea=function(){St.toTextArea=isNaN,te(),a.parentNode.removeChild(St.getWrapperElement()),a.style.display="",a.form&&(gn(a.form,"submit",te),!b.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=ue))}},a.style.display="none";var vt=Zl(function(St){return a.parentNode.insertBefore(St,a.nextSibling)},b);return vt}function pd(a){a.off=gn,a.on=Vt,a.wheelEventPixels=Qr,a.Doc=fl,a.splitLines=Ir,a.countColumn=Ze,a.findColumn=fn,a.isWordChar=ee,a.Pass=zt,a.signal=sn,a.Line=pa,a.changeEnd=qi,a.scrollbarModel=Id,a.Pos=Kt,a.cmpPos=pn,a.modes=lr,a.mimeModes=$n,a.resolveMode=kr,a.getMode=gi,a.modeExtensions=Ai,a.extendMode=di,a.copyState=Ti,a.startState=no,a.innerMode=Ei,a.commands=VA,a.keyMap=Eu,a.keyName=GA,a.isModifierKey=Sf,a.lookupKey=ZA,a.normalizeKeyMap=ju,a.StringStream=zi,a.SharedTextMarker=dl,a.TextMarker=Tu,a.LineWidget=Fs,a.e_preventDefault=an,a.e_stopPropagation=_n,a.e_stop=It,a.addClass=Re,a.contains=ht,a.rmClass=Ve,a.keyNames=ps}mm(Zl),wp(Zl);var qp="iter insert remove copy getEditor constructor".split(" ");for(var Hh in fl.prototype)fl.prototype.hasOwnProperty(Hh)&&ut(qp,Hh)<0&&(Zl.prototype[Hh]=function(a){return function(){return a.apply(this.doc,arguments)}}(fl.prototype[Hh]));return Ut(fl),Zl.inputStyles={textarea:Ll,contenteditable:xl},Zl.defineMode=function(a){!Zl.defaults.mode&&a!="null"&&(Zl.defaults.mode=a),Br.apply(this,arguments)},Zl.defineMIME=Sr,Zl.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Zl.defineMIME("text/plain","null"),Zl.defineExtension=function(a,b){Zl.prototype[a]=b},Zl.defineDocExtension=function(a,b){fl.prototype[a]=b},Zl.fromTextArea=Ah,pd(Zl),Zl.version="5.58.2",Zl})},25419:function(Jn,kt,ae){(function(x){x(ae(89780),ae(15525),ae(98101))})(function(x){"use strict";x.defineMode("markdown",function(dt,Ie){var Je=x.getMode(dt,"text/html"),ze=Je.name=="null";function Le(Ze){if(x.findModeByName){var De=x.findModeByName(Ze);De&&(Ze=De.mime||De.mimes[0])}var ut=x.getMode(dt,Ze);return ut.name=="null"?null:ut}Ie.highlightFormatting===void 0&&(Ie.highlightFormatting=!1),Ie.maxBlockquoteDepth===void 0&&(Ie.maxBlockquoteDepth=0),Ie.taskLists===void 0&&(Ie.taskLists=!1),Ie.strikethrough===void 0&&(Ie.strikethrough=!1),Ie.emoji===void 0&&(Ie.emoji=!1),Ie.fencedCodeBlockHighlighting===void 0&&(Ie.fencedCodeBlockHighlighting=!0),Ie.fencedCodeBlockDefaultMode===void 0&&(Ie.fencedCodeBlockDefaultMode="text/plain"),Ie.xml===void 0&&(Ie.xml=!0),Ie.tokenTypeOverrides===void 0&&(Ie.tokenTypeOverrides={});var Ue={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var he in Ue)Ue.hasOwnProperty(he)&&Ie.tokenTypeOverrides[he]&&(Ue[he]=Ie.tokenTypeOverrides[he]);var xe=/^([*\-_])(?:\s*\1){2,}\s*$/,oe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Oe=/^\[(x| )\](?=\s)/i,ve=Ie.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Me=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Se=/^[^#!\[\]*_\\<>` "'(~:]+/,Te=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,we=/^\s*\[[^\]]+?\]:.*$/,Ce=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,Ee=" ";function ke(Ze,De,ut){return De.f=De.inline=ut,ut(Ze,De)}function Ke(Ze,De,ut){return De.f=De.block=ut,ut(Ze,De)}function Qe(Ze){return!Ze||!/\S/.test(Ze.string)}function je(Ze){if(Ze.linkTitle=!1,Ze.linkHref=!1,Ze.linkText=!1,Ze.em=!1,Ze.strong=!1,Ze.strikethrough=!1,Ze.quote=0,Ze.indentedCode=!1,Ze.f==Ve){var De=ze;if(!De){var ut=x.innerMode(Je,Ze.htmlState);De=ut.mode.name=="xml"&&ut.state.tagStart===null&&!ut.state.context&&ut.state.tokenize.isInText}De&&(Ze.f=bt,Ze.block=qe,Ze.htmlState=null)}return Ze.trailingSpace=0,Ze.trailingSpaceNewLine=!1,Ze.prevLine=Ze.thisLine,Ze.thisLine={stream:null},null}function qe(Ze,De){var ut=Ze.column()===De.indentation,$t=Qe(De.prevLine.stream),zt=De.indentedCode,tt=De.prevLine.hr,Ot=De.list!==!1,Rt=(De.listStack[De.listStack.length-1]||0)+3;De.indentedCode=!1;var fn=De.indentation;if(De.indentationDiff===null&&(De.indentationDiff=De.indentation,Ot)){for(De.list=null;fn<De.listStack[De.listStack.length-1];)De.listStack.pop(),De.listStack.length?De.indentation=De.listStack[De.listStack.length-1]:De.list=!1;De.list!==!1&&(De.indentationDiff=fn-De.listStack[De.listStack.length-1])}var Tt=!$t&&!tt&&!De.prevLine.header&&(!Ot||!zt)&&!De.prevLine.fencedCodeEnd,mn=(De.list===!1||tt||$t)&&De.indentation<=Rt&&Ze.match(xe),Dt=null;if(De.indentationDiff>=4&&(zt||De.prevLine.fencedCodeEnd||De.prevLine.header||$t))return Ze.skipToEnd(),De.indentedCode=!0,Ue.code;if(Ze.eatSpace())return null;if(ut&&De.indentation<=Rt&&(Dt=Ze.match(ve))&&Dt[1].length<=6)return De.quote=0,De.header=Dt[1].length,De.thisLine.header=!0,Ie.highlightFormatting&&(De.formatting="header"),De.f=De.inline,ot(De);if(De.indentation<=Rt&&Ze.eat(">"))return De.quote=ut?1:De.quote+1,Ie.highlightFormatting&&(De.formatting="quote"),Ze.eatSpace(),ot(De);if(!mn&&!De.setext&&ut&&De.indentation<=Rt&&(Dt=Ze.match(oe))){var En=Dt[1]?"ol":"ul";return De.indentation=fn+Ze.current().length,De.list=!0,De.quote=0,De.listStack.push(De.indentation),De.em=!1,De.strong=!1,De.code=!1,De.strikethrough=!1,Ie.taskLists&&Ze.match(Oe,!1)&&(De.taskList=!0),De.f=De.inline,Ie.highlightFormatting&&(De.formatting=["list","list-"+En]),ot(De)}else{if(ut&&De.indentation<=Rt&&(Dt=Ze.match(Te,!0)))return De.quote=0,De.fencedEndRE=new RegExp(Dt[1]+"+ *$"),De.localMode=Ie.fencedCodeBlockHighlighting&&Le(Dt[2]||Ie.fencedCodeBlockDefaultMode),De.localMode&&(De.localState=x.startState(De.localMode)),De.f=De.block=ct,Ie.highlightFormatting&&(De.formatting="code-block"),De.code=-1,ot(De);if(De.setext||(!Tt||!Ot)&&!De.quote&&De.list===!1&&!De.code&&!mn&&!we.test(Ze.string)&&(Dt=Ze.lookAhead(1))&&(Dt=Dt.match(Me)))return De.setext?(De.header=De.setext,De.setext=0,Ze.skipToEnd(),Ie.highlightFormatting&&(De.formatting="header")):(De.header=Dt[0].charAt(0)=="="?1:2,De.setext=De.header),De.thisLine.header=!0,De.f=De.inline,ot(De);if(mn)return Ze.skipToEnd(),De.hr=!0,De.thisLine.hr=!0,Ue.hr;if(Ze.peek()==="[")return ke(Ze,De,Nt)}return ke(Ze,De,De.inline)}function Ve(Ze,De){var ut=Je.token(Ze,De.htmlState);if(!ze){var $t=x.innerMode(Je,De.htmlState);($t.mode.name=="xml"&&$t.state.tagStart===null&&!$t.state.context&&$t.state.tokenize.isInText||De.md_inside&&Ze.current().indexOf(">")>-1)&&(De.f=bt,De.block=qe,De.htmlState=null)}return ut}function ct(Ze,De){var ut=De.listStack[De.listStack.length-1]||0,$t=De.indentation<ut,zt=ut+3;if(De.fencedEndRE&&De.indentation<=zt&&($t||Ze.match(De.fencedEndRE))){Ie.highlightFormatting&&(De.formatting="code-block");var tt;return $t||(tt=ot(De)),De.localMode=De.localState=null,De.block=qe,De.f=bt,De.fencedEndRE=null,De.code=0,De.thisLine.fencedCodeEnd=!0,$t?Ke(Ze,De,De.block):tt}else return De.localMode?De.localMode.token(Ze,De.localState):(Ze.skipToEnd(),Ue.code)}function ot(Ze){var De=[];if(Ze.formatting){De.push(Ue.formatting),typeof Ze.formatting=="string"&&(Ze.formatting=[Ze.formatting]);for(var ut=0;ut<Ze.formatting.length;ut++)De.push(Ue.formatting+"-"+Ze.formatting[ut]),Ze.formatting[ut]==="header"&&De.push(Ue.formatting+"-"+Ze.formatting[ut]+"-"+Ze.header),Ze.formatting[ut]==="quote"&&(!Ie.maxBlockquoteDepth||Ie.maxBlockquoteDepth>=Ze.quote?De.push(Ue.formatting+"-"+Ze.formatting[ut]+"-"+Ze.quote):De.push("error"))}if(Ze.taskOpen)return De.push("meta"),De.length?De.join(" "):null;if(Ze.taskClosed)return De.push("property"),De.length?De.join(" "):null;if(Ze.linkHref?De.push(Ue.linkHref,"url"):(Ze.strong&&De.push(Ue.strong),Ze.em&&De.push(Ue.em),Ze.strikethrough&&De.push(Ue.strikethrough),Ze.emoji&&De.push(Ue.emoji),Ze.linkText&&De.push(Ue.linkText),Ze.code&&De.push(Ue.code),Ze.image&&De.push(Ue.image),Ze.imageAltText&&De.push(Ue.imageAltText,"link"),Ze.imageMarker&&De.push(Ue.imageMarker)),Ze.header&&De.push(Ue.header,Ue.header+"-"+Ze.header),Ze.quote&&(De.push(Ue.quote),!Ie.maxBlockquoteDepth||Ie.maxBlockquoteDepth>=Ze.quote?De.push(Ue.quote+"-"+Ze.quote):De.push(Ue.quote+"-"+Ie.maxBlockquoteDepth)),Ze.list!==!1){var $t=(Ze.listStack.length-1)%3;$t?$t===1?De.push(Ue.list2):De.push(Ue.list3):De.push(Ue.list1)}return Ze.trailingSpaceNewLine?De.push("trailing-space-new-line"):Ze.trailingSpace&&De.push("trailing-space-"+(Ze.trailingSpace%2?"a":"b")),De.length?De.join(" "):null}function pt(Ze,De){if(Ze.match(Se,!0))return ot(De)}function bt(Ze,De){var ut=De.text(Ze,De);if(typeof ut!="undefined")return ut;if(De.list)return De.list=null,ot(De);if(De.taskList){var $t=Ze.match(Oe,!0)[1]===" ";return $t?De.taskOpen=!0:De.taskClosed=!0,Ie.highlightFormatting&&(De.formatting="task"),De.taskList=!1,ot(De)}if(De.taskOpen=!1,De.taskClosed=!1,De.header&&Ze.match(/^#+$/,!0))return Ie.highlightFormatting&&(De.formatting="header"),ot(De);var zt=Ze.next();if(De.linkTitle){De.linkTitle=!1;var tt=zt;zt==="("&&(tt=")"),tt=(tt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ot="^\\s*(?:[^"+tt+"\\\\]+|\\\\\\\\|\\\\.)"+tt;if(Ze.match(new RegExp(Ot),!0))return Ue.linkHref}if(zt==="`"){var Rt=De.formatting;Ie.highlightFormatting&&(De.formatting="code"),Ze.eatWhile("`");var fn=Ze.current().length;if(De.code==0&&(!De.quote||fn==1))return De.code=fn,ot(De);if(fn==De.code){var Tt=ot(De);return De.code=0,Tt}else return De.formatting=Rt,ot(De)}else if(De.code)return ot(De);if(zt==="\\"&&(Ze.next(),Ie.highlightFormatting)){var mn=ot(De),Dt=Ue.formatting+"-escape";return mn?mn+" "+Dt:Dt}if(zt==="!"&&Ze.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return De.imageMarker=!0,De.image=!0,Ie.highlightFormatting&&(De.formatting="image"),ot(De);if(zt==="["&&De.imageMarker&&Ze.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return De.imageMarker=!1,De.imageAltText=!0,Ie.highlightFormatting&&(De.formatting="image"),ot(De);if(zt==="]"&&De.imageAltText){Ie.highlightFormatting&&(De.formatting="image");var mn=ot(De);return De.imageAltText=!1,De.image=!1,De.inline=De.f=ht,mn}if(zt==="["&&!De.image)return De.linkText&&Ze.match(/^.*?\]/)||(De.linkText=!0,Ie.highlightFormatting&&(De.formatting="link")),ot(De);if(zt==="]"&&De.linkText){Ie.highlightFormatting&&(De.formatting="link");var mn=ot(De);return De.linkText=!1,De.inline=De.f=Ze.match(/\(.*?\)| ?\[.*?\]/,!1)?ht:bt,mn}if(zt==="<"&&Ze.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){De.f=De.inline=He,Ie.highlightFormatting&&(De.formatting="link");var mn=ot(De);return mn?mn+=" ":mn="",mn+Ue.linkInline}if(zt==="<"&&Ze.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){De.f=De.inline=He,Ie.highlightFormatting&&(De.formatting="link");var mn=ot(De);return mn?mn+=" ":mn="",mn+Ue.linkEmail}if(Ie.xml&&zt==="<"&&Ze.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var En=Ze.string.indexOf(">",Ze.pos);if(En!=-1){var rn=Ze.string.substring(Ze.start,En);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(rn)&&(De.md_inside=!0)}return Ze.backUp(1),De.htmlState=x.startState(Je),Ke(Ze,De,Ve)}if(Ie.xml&&zt==="<"&&Ze.match(/^\/\w*?>/))return De.md_inside=!1,"tag";if(zt==="*"||zt==="_"){for(var de=1,pe=Ze.pos==1?" ":Ze.string.charAt(Ze.pos-2);de<3&&Ze.eat(zt);)de++;var ie=Ze.peek()||" ",ee=!/\s/.test(ie)&&(!Ce.test(ie)||/\s/.test(pe)||Ce.test(pe)),se=!/\s/.test(pe)&&(!Ce.test(pe)||/\s/.test(ie)||Ce.test(ie)),le=null,Be=null;if(de%2&&(!De.em&&ee&&(zt==="*"||!se||Ce.test(pe))?le=!0:De.em==zt&&se&&(zt==="*"||!ee||Ce.test(ie))&&(le=!1)),de>1&&(!De.strong&&ee&&(zt==="*"||!se||Ce.test(pe))?Be=!0:De.strong==zt&&se&&(zt==="*"||!ee||Ce.test(ie))&&(Be=!1)),Be!=null||le!=null){Ie.highlightFormatting&&(De.formatting=le==null?"strong":Be==null?"em":"strong em"),le===!0&&(De.em=zt),Be===!0&&(De.strong=zt);var Tt=ot(De);return le===!1&&(De.em=!1),Be===!1&&(De.strong=!1),Tt}}else if(zt===" "&&(Ze.eat("*")||Ze.eat("_"))){if(Ze.peek()===" ")return ot(De);Ze.backUp(1)}if(Ie.strikethrough){if(zt==="~"&&Ze.eatWhile(zt)){if(De.strikethrough){Ie.highlightFormatting&&(De.formatting="strikethrough");var Tt=ot(De);return De.strikethrough=!1,Tt}else if(Ze.match(/^[^\s]/,!1))return De.strikethrough=!0,Ie.highlightFormatting&&(De.formatting="strikethrough"),ot(De)}else if(zt===" "&&Ze.match(/^~~/,!0)){if(Ze.peek()===" ")return ot(De);Ze.backUp(2)}}if(Ie.emoji&&zt===":"&&Ze.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){De.emoji=!0,Ie.highlightFormatting&&(De.formatting="emoji");var We=ot(De);return De.emoji=!1,We}return zt===" "&&(Ze.match(/^ +$/,!1)?De.trailingSpace++:De.trailingSpace&&(De.trailingSpaceNewLine=!0)),ot(De)}function He(Ze,De){var ut=Ze.next();if(ut===">"){De.f=De.inline=bt,Ie.highlightFormatting&&(De.formatting="link");var $t=ot(De);return $t?$t+=" ":$t="",$t+Ue.linkInline}return Ze.match(/^[^>]+/,!0),Ue.linkInline}function ht(Ze,De){if(Ze.eatSpace())return null;var ut=Ze.next();return ut==="("||ut==="["?(De.f=De.inline=Re(ut==="("?")":"]"),Ie.highlightFormatting&&(De.formatting="link-string"),De.linkHref=!0,ot(De)):"error"}var _e={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Re(Ze){return function(De,ut){var $t=De.next();if($t===Ze){ut.f=ut.inline=bt,Ie.highlightFormatting&&(ut.formatting="link-string");var zt=ot(ut);return ut.linkHref=!1,zt}return De.match(_e[Ze]),ut.linkHref=!0,ot(ut)}}function Nt(Ze,De){return Ze.match(/^([^\]\\]|\\.)*\]:/,!1)?(De.f=it,Ze.next(),Ie.highlightFormatting&&(De.formatting="link"),De.linkText=!0,ot(De)):ke(Ze,De,bt)}function it(Ze,De){if(Ze.match(/^\]:/,!0)){De.f=De.inline=at,Ie.highlightFormatting&&(De.formatting="link");var ut=ot(De);return De.linkText=!1,ut}return Ze.match(/^([^\]\\]|\\.)+/,!0),Ue.linkText}function at(Ze,De){return Ze.eatSpace()?null:(Ze.match(/^[^\s]+/,!0),Ze.peek()===void 0?De.linkTitle=!0:Ze.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),De.f=De.inline=bt,Ue.linkHref+" url")}var Bt={startState:function(){return{f:qe,prevLine:{stream:null},thisLine:{stream:null},block:qe,htmlState:null,indentation:0,inline:bt,text:pt,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Ze){return{f:Ze.f,prevLine:Ze.prevLine,thisLine:Ze.thisLine,block:Ze.block,htmlState:Ze.htmlState&&x.copyState(Je,Ze.htmlState),indentation:Ze.indentation,localMode:Ze.localMode,localState:Ze.localMode?x.copyState(Ze.localMode,Ze.localState):null,inline:Ze.inline,text:Ze.text,formatting:!1,linkText:Ze.linkText,linkTitle:Ze.linkTitle,linkHref:Ze.linkHref,code:Ze.code,em:Ze.em,strong:Ze.strong,strikethrough:Ze.strikethrough,emoji:Ze.emoji,header:Ze.header,setext:Ze.setext,hr:Ze.hr,taskList:Ze.taskList,list:Ze.list,listStack:Ze.listStack.slice(0),quote:Ze.quote,indentedCode:Ze.indentedCode,trailingSpace:Ze.trailingSpace,trailingSpaceNewLine:Ze.trailingSpaceNewLine,md_inside:Ze.md_inside,fencedEndRE:Ze.fencedEndRE}},token:function(Ze,De){if(De.formatting=!1,Ze!=De.thisLine.stream){if(De.header=0,De.hr=!1,Ze.match(/^\s*$/,!0))return je(De),null;if(De.prevLine=De.thisLine,De.thisLine={stream:Ze},De.taskList=!1,De.trailingSpace=0,De.trailingSpaceNewLine=!1,!De.localState&&(De.f=De.block,De.f!=Ve)){var ut=Ze.match(/^\s*/,!0)[0].replace(/\t/g,Ee).length;if(De.indentation=ut,De.indentationDiff=null,ut>0)return null}}return De.f(Ze,De)},innerMode:function(Ze){return Ze.block==Ve?{state:Ze.htmlState,mode:Je}:Ze.localState?{state:Ze.localState,mode:Ze.localMode}:{state:Ze,mode:Bt}},indent:function(Ze,De,ut){return Ze.block==Ve&&Je.indent?Je.indent(Ze.htmlState,De,ut):Ze.localState&&Ze.localMode.indent?Ze.localMode.indent(Ze.localState,De,ut):x.Pass},blankLine:je,getType:ot,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Bt},"xml"),x.defineMIME("text/markdown","markdown"),x.defineMIME("text/x-markdown","markdown")})},98101:function(Jn,kt,ae){(function(x){x(ae(89780))})(function(x){"use strict";x.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var dt=0;dt<x.modeInfo.length;dt++){var Ie=x.modeInfo[dt];Ie.mimes&&(Ie.mime=Ie.mimes[0])}x.findModeByMIME=function(Je){Je=Je.toLowerCase();for(var ze=0;ze<x.modeInfo.length;ze++){var Le=x.modeInfo[ze];if(Le.mime==Je)return Le;if(Le.mimes){for(var Ue=0;Ue<Le.mimes.length;Ue++)if(Le.mimes[Ue]==Je)return Le}}if(/\+xml$/.test(Je))return x.findModeByMIME("application/xml");if(/\+json$/.test(Je))return x.findModeByMIME("application/json")},x.findModeByExtension=function(Je){Je=Je.toLowerCase();for(var ze=0;ze<x.modeInfo.length;ze++){var Le=x.modeInfo[ze];if(Le.ext){for(var Ue=0;Ue<Le.ext.length;Ue++)if(Le.ext[Ue]==Je)return Le}}},x.findModeByFileName=function(Je){for(var ze=0;ze<x.modeInfo.length;ze++){var Le=x.modeInfo[ze];if(Le.file&&Le.file.test(Je))return Le}var Ue=Je.lastIndexOf("."),he=Ue>-1&&Je.substring(Ue+1,Je.length);if(he)return x.findModeByExtension(he)},x.findModeByName=function(Je){Je=Je.toLowerCase();for(var ze=0;ze<x.modeInfo.length;ze++){var Le=x.modeInfo[ze];if(Le.name.toLowerCase()==Je)return Le;if(Le.alias){for(var Ue=0;Ue<Le.alias.length;Ue++)if(Le.alias[Ue].toLowerCase()==Je)return Le}}}})},67549:function(Jn,kt,ae){(function(x){x(ae(89780))})(function(x){"use strict";x.defineMode("stex",function(dt,Ie){"use strict";function Je(Se,Te){Se.cmdState.push(Te)}function ze(Se){return Se.cmdState.length>0?Se.cmdState[Se.cmdState.length-1]:null}function Le(Se){var Te=Se.cmdState.pop();Te&&Te.closeBracket()}function Ue(Se){for(var Te=Se.cmdState,we=Te.length-1;we>=0;we--){var Ce=Te[we];if(Ce.name!="DEFAULT")return Ce}return{styleIdentifier:function(){return null}}}function he(Se,Te,we){return function(){this.name=Se,this.bracketNo=0,this.style=Te,this.styles=we,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var xe={};xe.importmodule=he("importmodule","tag",["string","builtin"]),xe.documentclass=he("documentclass","tag",["","atom"]),xe.usepackage=he("usepackage","tag",["atom"]),xe.begin=he("begin","tag",["atom"]),xe.end=he("end","tag",["atom"]),xe.label=he("label","tag",["atom"]),xe.ref=he("ref","tag",["atom"]),xe.eqref=he("eqref","tag",["atom"]),xe.cite=he("cite","tag",["atom"]),xe.bibitem=he("bibitem","tag",["atom"]),xe.Bibitem=he("Bibitem","tag",["atom"]),xe.RBibitem=he("RBibitem","tag",["atom"]),xe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function oe(Se,Te){Se.f=Te}function Oe(Se,Te){var we;if(Se.match(/^\\[a-zA-Z@]+/)){var Ce=Se.current().slice(1);return we=xe.hasOwnProperty(Ce)?xe[Ce]:xe.DEFAULT,we=new we,Je(Te,we),oe(Te,Me),we.style}if(Se.match(/^\\[$&%#{}_]/)||Se.match(/^\\[,;!\/\\]/))return"tag";if(Se.match("\\["))return oe(Te,function(ke,Ke){return ve(ke,Ke,"\\]")}),"keyword";if(Se.match("\\("))return oe(Te,function(ke,Ke){return ve(ke,Ke,"\\)")}),"keyword";if(Se.match("$$"))return oe(Te,function(ke,Ke){return ve(ke,Ke,"$$")}),"keyword";if(Se.match("$"))return oe(Te,function(ke,Ke){return ve(ke,Ke,"$")}),"keyword";var Ee=Se.next();if(Ee=="%")return Se.skipToEnd(),"comment";if(Ee=="}"||Ee=="]"){if(we=ze(Te),we)we.closeBracket(Ee),oe(Te,Me);else return"error";return"bracket"}else return Ee=="{"||Ee=="["?(we=xe.DEFAULT,we=new we,Je(Te,we),"bracket"):/\d/.test(Ee)?(Se.eatWhile(/[\w.%]/),"atom"):(Se.eatWhile(/[\w\-_]/),we=Ue(Te),we.name=="begin"&&(we.argument=Se.current()),we.styleIdentifier())}function ve(Se,Te,we){if(Se.eatSpace())return null;if(we&&Se.match(we))return oe(Te,Oe),"keyword";if(Se.match(/^\\[a-zA-Z@]+/))return"tag";if(Se.match(/^[a-zA-Z]+/))return"variable-2";if(Se.match(/^\\[$&%#{}_]/)||Se.match(/^\\[,;!\/]/)||Se.match(/^[\^_&]/))return"tag";if(Se.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Se.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Ce=Se.next();return Ce=="{"||Ce=="}"||Ce=="["||Ce=="]"||Ce=="("||Ce==")"?"bracket":Ce=="%"?(Se.skipToEnd(),"comment"):"error"}function Me(Se,Te){var we=Se.peek(),Ce;return we=="{"||we=="["?(Ce=ze(Te),Ce.openBracket(we),Se.eat(we),oe(Te,Oe),"bracket"):/[ \t\r]/.test(we)?(Se.eat(we),null):(oe(Te,Oe),Le(Te),Oe(Se,Te))}return{startState:function(){var Se=Ie.inMathMode?function(Te,we){return ve(Te,we)}:Oe;return{cmdState:[],f:Se}},copyState:function(Se){return{cmdState:Se.cmdState.slice(),f:Se.f}},token:function(Se,Te){return Te.f(Se,Te)},blankLine:function(Se){Se.f=Oe,Se.cmdState.length=0},lineComment:"%"}}),x.defineMIME("text/x-stex","stex"),x.defineMIME("text/x-latex","stex")})},15525:function(Jn,kt,ae){(function(x){x(ae(89780))})(function(x){"use strict";var dt={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},Ie={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};x.defineMode("xml",function(Je,ze){var Le=Je.indentUnit,Ue={},he=ze.htmlMode?dt:Ie;for(var xe in he)Ue[xe]=he[xe];for(var xe in ze)Ue[xe]=ze[xe];var oe,Oe;function ve(He,ht){function _e(it){return ht.tokenize=it,it(He,ht)}var Re=He.next();if(Re=="<")return He.eat("!")?He.eat("[")?He.match("CDATA[")?_e(Te("atom","]]>")):null:He.match("--")?_e(Te("comment","-->")):He.match("DOCTYPE",!0,!0)?(He.eatWhile(/[\w\._\-]/),_e(we(1))):null:He.eat("?")?(He.eatWhile(/[\w\._\-]/),ht.tokenize=Te("meta","?>"),"meta"):(oe=He.eat("/")?"closeTag":"openTag",ht.tokenize=Me,"tag bracket");if(Re=="&"){var Nt;return He.eat("#")?He.eat("x")?Nt=He.eatWhile(/[a-fA-F\d]/)&&He.eat(";"):Nt=He.eatWhile(/[\d]/)&&He.eat(";"):Nt=He.eatWhile(/[\w\.\-:]/)&&He.eat(";"),Nt?"atom":"error"}else return He.eatWhile(/[^&<]/),null}ve.isInText=!0;function Me(He,ht){var _e=He.next();if(_e==">"||_e=="/"&&He.eat(">"))return ht.tokenize=ve,oe=_e==">"?"endTag":"selfcloseTag","tag bracket";if(_e=="=")return oe="equals",null;if(_e=="<"){ht.tokenize=ve,ht.state=Ke,ht.tagName=ht.tagStart=null;var Re=ht.tokenize(He,ht);return Re?Re+" tag error":"tag error"}else return/[\'\"]/.test(_e)?(ht.tokenize=Se(_e),ht.stringStartCol=He.column(),ht.tokenize(He,ht)):(He.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Se(He){var ht=function(_e,Re){for(;!_e.eol();)if(_e.next()==He){Re.tokenize=Me;break}return"string"};return ht.isInAttribute=!0,ht}function Te(He,ht){return function(_e,Re){for(;!_e.eol();){if(_e.match(ht)){Re.tokenize=ve;break}_e.next()}return He}}function we(He){return function(ht,_e){for(var Re;(Re=ht.next())!=null;){if(Re=="<")return _e.tokenize=we(He+1),_e.tokenize(ht,_e);if(Re==">")if(He==1){_e.tokenize=ve;break}else return _e.tokenize=we(He-1),_e.tokenize(ht,_e)}return"meta"}}function Ce(He,ht,_e){this.prev=He.context,this.tagName=ht,this.indent=He.indented,this.startOfLine=_e,(Ue.doNotIndent.hasOwnProperty(ht)||He.context&&He.context.noIndent)&&(this.noIndent=!0)}function Ee(He){He.context&&(He.context=He.context.prev)}function ke(He,ht){for(var _e;;){if(!He.context||(_e=He.context.tagName,!Ue.contextGrabbers.hasOwnProperty(_e)||!Ue.contextGrabbers[_e].hasOwnProperty(ht)))return;Ee(He)}}function Ke(He,ht,_e){return He=="openTag"?(_e.tagStart=ht.column(),Qe):He=="closeTag"?je:Ke}function Qe(He,ht,_e){return He=="word"?(_e.tagName=ht.current(),Oe="tag",ct):Ue.allowMissingTagName&&He=="endTag"?(Oe="tag bracket",ct(He,ht,_e)):(Oe="error",Qe)}function je(He,ht,_e){if(He=="word"){var Re=ht.current();return _e.context&&_e.context.tagName!=Re&&Ue.implicitlyClosed.hasOwnProperty(_e.context.tagName)&&Ee(_e),_e.context&&_e.context.tagName==Re||Ue.matchClosing===!1?(Oe="tag",qe):(Oe="tag error",Ve)}else return Ue.allowMissingTagName&&He=="endTag"?(Oe="tag bracket",qe(He,ht,_e)):(Oe="error",Ve)}function qe(He,ht,_e){return He!="endTag"?(Oe="error",qe):(Ee(_e),Ke)}function Ve(He,ht,_e){return Oe="error",qe(He,ht,_e)}function ct(He,ht,_e){if(He=="word")return Oe="attribute",ot;if(He=="endTag"||He=="selfcloseTag"){var Re=_e.tagName,Nt=_e.tagStart;return _e.tagName=_e.tagStart=null,He=="selfcloseTag"||Ue.autoSelfClosers.hasOwnProperty(Re)?ke(_e,Re):(ke(_e,Re),_e.context=new Ce(_e,Re,Nt==_e.indented)),Ke}return Oe="error",ct}function ot(He,ht,_e){return He=="equals"?pt:(Ue.allowMissing||(Oe="error"),ct(He,ht,_e))}function pt(He,ht,_e){return He=="string"?bt:He=="word"&&Ue.allowUnquoted?(Oe="string",ct):(Oe="error",ct(He,ht,_e))}function bt(He,ht,_e){return He=="string"?bt:ct(He,ht,_e)}return{startState:function(He){var ht={tokenize:ve,state:Ke,indented:He||0,tagName:null,tagStart:null,context:null};return He!=null&&(ht.baseIndent=He),ht},token:function(He,ht){if(!ht.tagName&&He.sol()&&(ht.indented=He.indentation()),He.eatSpace())return null;oe=null;var _e=ht.tokenize(He,ht);return(_e||oe)&&_e!="comment"&&(Oe=null,ht.state=ht.state(oe||_e,He,ht),Oe&&(_e=Oe=="error"?_e+" error":Oe)),_e},indent:function(He,ht,_e){var Re=He.context;if(He.tokenize.isInAttribute)return He.tagStart==He.indented?He.stringStartCol+1:He.indented+Le;if(Re&&Re.noIndent)return x.Pass;if(He.tokenize!=Me&&He.tokenize!=ve)return _e?_e.match(/^(\s*)/)[0].length:0;if(He.tagName)return Ue.multilineTagIndentPastTag!==!1?He.tagStart+He.tagName.length+2:He.tagStart+Le*(Ue.multilineTagIndentFactor||1);if(Ue.alignCDATA&&/<!\[CDATA\[/.test(ht))return 0;var Nt=ht&&/^<(\/)?([\w_:\.-]*)/.exec(ht);if(Nt&&Nt[1])for(;Re;)if(Re.tagName==Nt[2]){Re=Re.prev;break}else if(Ue.implicitlyClosed.hasOwnProperty(Re.tagName))Re=Re.prev;else break;else if(Nt)for(;Re;){var it=Ue.contextGrabbers[Re.tagName];if(it&&it.hasOwnProperty(Nt[2]))Re=Re.prev;else break}for(;Re&&Re.prev&&!Re.startOfLine;)Re=Re.prev;return Re?Re.indent+Le:He.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ue.htmlMode?"html":"xml",helperType:Ue.htmlMode?"html":"xml",skipAttribute:function(He){He.state==pt&&(He.state=ct)},xmlCurrentTag:function(He){return He.tagName?{name:He.tagName,close:He.type=="closeTag"}:null},xmlCurrentContext:function(He){for(var ht=[],_e=He.context;_e;_e=_e.prev)_e.tagName&&ht.push(_e.tagName);return ht.reverse()}}}),x.defineMIME("text/xml","xml"),x.defineMIME("application/xml","xml"),x.mimeModes.hasOwnProperty("text/html")||x.defineMIME("text/html",{name:"xml",htmlMode:!0})})},97774:function(Jn,kt,ae){"use strict";Object.defineProperty(kt,"__esModule",{value:!0}),kt.default=void 0;var x=Object.assign||function(we){for(var Ce=1;Ce<arguments.length;Ce++){var Ee=arguments[Ce];for(var ke in Ee)Object.prototype.hasOwnProperty.call(Ee,ke)&&(we[ke]=Ee[ke])}return we},dt=function(){function we(Ce,Ee){for(var ke=0;ke<Ee.length;ke++){var Ke=Ee[ke];Ke.enumerable=Ke.enumerable||!1,Ke.configurable=!0,"value"in Ke&&(Ke.writable=!0),Object.defineProperty(Ce,Ke.key,Ke)}}return function(Ce,Ee,ke){return Ee&&we(Ce.prototype,Ee),ke&&we(Ce,ke),Ce}}(),Ie=ae(59301),Je=Oe(Ie),ze=ae(12708),Le=Oe(ze),Ue=ae(53291),he=Oe(Ue),xe=ae(47242),oe=ae(65429);function Oe(we){return we&&we.__esModule?we:{default:we}}function ve(we,Ce){if(!(we instanceof Ce))throw new TypeError("Cannot call a class as a function")}function Me(we,Ce){if(!we)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ce&&(typeof Ce=="object"||typeof Ce=="function")?Ce:we}function Se(we,Ce){if(typeof Ce!="function"&&Ce!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ce);we.prototype=Object.create(Ce&&Ce.prototype,{constructor:{value:we,enumerable:!1,writable:!0,configurable:!0}}),Ce&&(Object.setPrototypeOf?Object.setPrototypeOf(we,Ce):we.__proto__=Ce)}var Te=function(we){Se(Ce,we);function Ce(Ee){ve(this,Ce);var ke=Me(this,(Ce.__proto__||Object.getPrototypeOf(Ce)).call(this,Ee));return ke.getEchartsInstance=function(){return ke.echartsLib.getInstanceByDom(ke.echartsElement)||ke.echartsLib.init(ke.echartsElement,ke.props.theme,ke.props.opts)},ke.dispose=function(){if(ke.echartsElement){try{(0,xe.clear)(ke.echartsElement)}catch(Ke){console.warn(Ke)}ke.echartsLib.dispose(ke.echartsElement)}},ke.rerender=function(){var Ke=ke.props,Qe=Ke.onEvents,je=Ke.onChartReady,qe=ke.renderEchartDom();ke.bindEvents(qe,Qe||{}),typeof je=="function"&&ke.props.onChartReady(qe),ke.echartsElement&&(0,xe.bind)(ke.echartsElement,function(){try{qe.resize()}catch(Ve){console.warn(Ve)}})},ke.bindEvents=function(Ke,Qe){var je=function(ct,ot){typeof ct=="string"&&typeof ot=="function"&&Ke.on(ct,function(pt){ot(pt,Ke)})};for(var qe in Qe)Object.prototype.hasOwnProperty.call(Qe,qe)&&je(qe,Qe[qe])},ke.renderEchartDom=function(){var Ke=ke.getEchartsInstance();return Ke.setOption(ke.props.option,ke.props.notMerge||!1,ke.props.lazyUpdate||!1),ke.props.showLoading?Ke.showLoading(ke.props.loadingOption||null):Ke.hideLoading(),Ke},ke.echartsLib=Ee.echarts,ke.echartsElement=null,ke}return dt(Ce,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(ke){if(!(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption(ke,this.props))){if(!(0,he.default)(ke.theme,this.props.theme)||!(0,he.default)(ke.opts,this.props.opts)||!(0,he.default)(ke.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var Ke=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if(!(0,he.default)((0,oe.pick)(this.props,Ke),(0,oe.pick)(ke,Ke))){var Qe=this.renderEchartDom();if(!(0,he.default)(ke.style,this.props.style)||!(0,he.default)(ke.className,this.props.className))try{Qe.resize()}catch(je){console.warn(je)}}}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var ke=this,Ke=this.props,Qe=Ke.style,je=Ke.className,qe=x({height:300},Qe);return Je.default.createElement("div",{ref:function(ct){ke.echartsElement=ct},style:qe,className:"echarts-for-react "+je})}}]),Ce}(Ie.Component);kt.default=Te,Te.propTypes={option:Le.default.object.isRequired,echarts:Le.default.object,notMerge:Le.default.bool,lazyUpdate:Le.default.bool,style:Le.default.object,className:Le.default.string,theme:Le.default.oneOfType([Le.default.string,Le.default.object]),onChartReady:Le.default.func,showLoading:Le.default.bool,loadingOption:Le.default.object,onEvents:Le.default.object,opts:Le.default.shape({devicePixelRatio:Le.default.number,renderer:Le.default.oneOf(["canvas","svg"]),width:Le.default.oneOfType([Le.default.number,Le.default.oneOf([null,void 0,"auto"])]),height:Le.default.oneOfType([Le.default.number,Le.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:Le.default.func},Te.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},42441:function(Jn,kt,ae){"use strict";var x;x={value:!0},kt.Z=void 0;var dt=ae(76411),Ie=Le(dt),Je=ae(97774),ze=Le(Je);function Le(Oe){return Oe&&Oe.__esModule?Oe:{default:Oe}}function Ue(Oe,ve){if(!(Oe instanceof ve))throw new TypeError("Cannot call a class as a function")}function he(Oe,ve){if(!Oe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve&&(typeof ve=="object"||typeof ve=="function")?ve:Oe}function xe(Oe,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ve);Oe.prototype=Object.create(ve&&ve.prototype,{constructor:{value:Oe,enumerable:!1,writable:!0,configurable:!0}}),ve&&(Object.setPrototypeOf?Object.setPrototypeOf(Oe,ve):Oe.__proto__=ve)}var oe=function(Oe){xe(ve,Oe);function ve(Me){Ue(this,ve);var Se=he(this,(ve.__proto__||Object.getPrototypeOf(ve)).call(this,Me));return Se.echartsLib=Ie.default,Se}return ve}(ze.default);kt.Z=oe},65429:function(Jn,kt){"use strict";Object.defineProperty(kt,"__esModule",{value:!0});var ae=kt.pick=function(dt,Ie){var Je={};return Ie.forEach(function(ze){Je[ze]=dt[ze]}),Je}},86204:function(Jn){"use strict";var kt=typeof Reflect=="object"?Reflect:null,ae=kt&&typeof kt.apply=="function"?kt.apply:function(Ke,Qe,je){return Function.prototype.apply.call(Ke,Qe,je)},x;kt&&typeof kt.ownKeys=="function"?x=kt.ownKeys:Object.getOwnPropertySymbols?x=function(Ke){return Object.getOwnPropertyNames(Ke).concat(Object.getOwnPropertySymbols(Ke))}:x=function(Ke){return Object.getOwnPropertyNames(Ke)};function dt(ke){console&&console.warn&&console.warn(ke)}var Ie=Number.isNaN||function(Ke){return Ke!==Ke};function Je(){Je.init.call(this)}Jn.exports=Je,Jn.exports.once=we,Je.EventEmitter=Je,Je.prototype._events=void 0,Je.prototype._eventsCount=0,Je.prototype._maxListeners=void 0;var ze=10;function Le(ke){if(typeof ke!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ke)}Object.defineProperty(Je,"defaultMaxListeners",{enumerable:!0,get:function(){return ze},set:function(ke){if(typeof ke!="number"||ke<0||Ie(ke))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ke+".");ze=ke}}),Je.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Je.prototype.setMaxListeners=function(Ke){if(typeof Ke!="number"||Ke<0||Ie(Ke))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Ke+".");return this._maxListeners=Ke,this};function Ue(ke){return ke._maxListeners===void 0?Je.defaultMaxListeners:ke._maxListeners}Je.prototype.getMaxListeners=function(){return Ue(this)},Je.prototype.emit=function(Ke){for(var Qe=[],je=1;je<arguments.length;je++)Qe.push(arguments[je]);var qe=Ke==="error",Ve=this._events;if(Ve!==void 0)qe=qe&&Ve.error===void 0;else if(!qe)return!1;if(qe){var ct;if(Qe.length>0&&(ct=Qe[0]),ct instanceof Error)throw ct;var ot=new Error("Unhandled error."+(ct?" ("+ct.message+")":""));throw ot.context=ct,ot}var pt=Ve[Ke];if(pt===void 0)return!1;if(typeof pt=="function")ae(pt,this,Qe);else for(var bt=pt.length,He=Me(pt,bt),je=0;je<bt;++je)ae(He[je],this,Qe);return!0};function he(ke,Ke,Qe,je){var qe,Ve,ct;if(Le(Qe),Ve=ke._events,Ve===void 0?(Ve=ke._events=Object.create(null),ke._eventsCount=0):(Ve.newListener!==void 0&&(ke.emit("newListener",Ke,Qe.listener?Qe.listener:Qe),Ve=ke._events),ct=Ve[Ke]),ct===void 0)ct=Ve[Ke]=Qe,++ke._eventsCount;else if(typeof ct=="function"?ct=Ve[Ke]=je?[Qe,ct]:[ct,Qe]:je?ct.unshift(Qe):ct.push(Qe),qe=Ue(ke),qe>0&&ct.length>qe&&!ct.warned){ct.warned=!0;var ot=new Error("Possible EventEmitter memory leak detected. "+ct.length+" "+String(Ke)+" listeners added. Use emitter.setMaxListeners() to increase limit");ot.name="MaxListenersExceededWarning",ot.emitter=ke,ot.type=Ke,ot.count=ct.length,dt(ot)}return ke}Je.prototype.addListener=function(Ke,Qe){return he(this,Ke,Qe,!1)},Je.prototype.on=Je.prototype.addListener,Je.prototype.prependListener=function(Ke,Qe){return he(this,Ke,Qe,!0)};function xe(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function oe(ke,Ke,Qe){var je={fired:!1,wrapFn:void 0,target:ke,type:Ke,listener:Qe},qe=xe.bind(je);return qe.listener=Qe,je.wrapFn=qe,qe}Je.prototype.once=function(Ke,Qe){return Le(Qe),this.on(Ke,oe(this,Ke,Qe)),this},Je.prototype.prependOnceListener=function(Ke,Qe){return Le(Qe),this.prependListener(Ke,oe(this,Ke,Qe)),this},Je.prototype.removeListener=function(Ke,Qe){var je,qe,Ve,ct,ot;if(Le(Qe),qe=this._events,qe===void 0)return this;if(je=qe[Ke],je===void 0)return this;if(je===Qe||je.listener===Qe)--this._eventsCount===0?this._events=Object.create(null):(delete qe[Ke],qe.removeListener&&this.emit("removeListener",Ke,je.listener||Qe));else if(typeof je!="function"){for(Ve=-1,ct=je.length-1;ct>=0;ct--)if(je[ct]===Qe||je[ct].listener===Qe){ot=je[ct].listener,Ve=ct;break}if(Ve<0)return this;Ve===0?je.shift():Se(je,Ve),je.length===1&&(qe[Ke]=je[0]),qe.removeListener!==void 0&&this.emit("removeListener",Ke,ot||Qe)}return this},Je.prototype.off=Je.prototype.removeListener,Je.prototype.removeAllListeners=function(Ke){var Qe,je,qe;if(je=this._events,je===void 0)return this;if(je.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):je[Ke]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete je[Ke]),this;if(arguments.length===0){var Ve=Object.keys(je),ct;for(qe=0;qe<Ve.length;++qe)ct=Ve[qe],ct!=="removeListener"&&this.removeAllListeners(ct);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Qe=je[Ke],typeof Qe=="function")this.removeListener(Ke,Qe);else if(Qe!==void 0)for(qe=Qe.length-1;qe>=0;qe--)this.removeListener(Ke,Qe[qe]);return this};function Oe(ke,Ke,Qe){var je=ke._events;if(je===void 0)return[];var qe=je[Ke];return qe===void 0?[]:typeof qe=="function"?Qe?[qe.listener||qe]:[qe]:Qe?Te(qe):Me(qe,qe.length)}Je.prototype.listeners=function(Ke){return Oe(this,Ke,!0)},Je.prototype.rawListeners=function(Ke){return Oe(this,Ke,!1)},Je.listenerCount=function(ke,Ke){return typeof ke.listenerCount=="function"?ke.listenerCount(Ke):ve.call(ke,Ke)},Je.prototype.listenerCount=ve;function ve(ke){var Ke=this._events;if(Ke!==void 0){var Qe=Ke[ke];if(typeof Qe=="function")return 1;if(Qe!==void 0)return Qe.length}return 0}Je.prototype.eventNames=function(){return this._eventsCount>0?x(this._events):[]};function Me(ke,Ke){for(var Qe=new Array(Ke),je=0;je<Ke;++je)Qe[je]=ke[je];return Qe}function Se(ke,Ke){for(;Ke+1<ke.length;Ke++)ke[Ke]=ke[Ke+1];ke.pop()}function Te(ke){for(var Ke=new Array(ke.length),Qe=0;Qe<Ke.length;++Qe)Ke[Qe]=ke[Qe].listener||ke[Qe];return Ke}function we(ke,Ke){return new Promise(function(Qe,je){function qe(ct){ke.removeListener(Ke,Ve),je(ct)}function Ve(){typeof ke.removeListener=="function"&&ke.removeListener("error",qe),Qe([].slice.call(arguments))}Ee(ke,Ke,Ve,{once:!0}),Ke!=="error"&&Ce(ke,qe,{once:!0})})}function Ce(ke,Ke,Qe){typeof ke.on=="function"&&Ee(ke,"error",Ke,Qe)}function Ee(ke,Ke,Qe,je){if(typeof ke.on=="function")je.once?ke.once(Ke,Qe):ke.on(Ke,Qe);else if(typeof ke.addEventListener=="function")ke.addEventListener(Ke,function qe(Ve){je.once&&ke.removeEventListener(Ke,qe),Qe(Ve)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof ke)}},53291:function(Jn){"use strict";var kt=Array.isArray,ae=Object.keys,x=Object.prototype.hasOwnProperty;Jn.exports=function dt(Ie,Je){if(Ie===Je)return!0;if(Ie&&Je&&typeof Ie=="object"&&typeof Je=="object"){var ze=kt(Ie),Le=kt(Je),Ue,he,xe;if(ze&&Le){if(he=Ie.length,he!=Je.length)return!1;for(Ue=he;Ue--!==0;)if(!dt(Ie[Ue],Je[Ue]))return!1;return!0}if(ze!=Le)return!1;var oe=Ie instanceof Date,Oe=Je instanceof Date;if(oe!=Oe)return!1;if(oe&&Oe)return Ie.getTime()==Je.getTime();var ve=Ie instanceof RegExp,Me=Je instanceof RegExp;if(ve!=Me)return!1;if(ve&&Me)return Ie.toString()==Je.toString();var Se=ae(Ie);if(he=Se.length,he!==ae(Je).length)return!1;for(Ue=he;Ue--!==0;)if(!x.call(Je,Se[Ue]))return!1;for(Ue=he;Ue--!==0;)if(xe=Se[Ue],!dt(Ie[xe],Je[xe]))return!1;return!0}return Ie!==Ie&&Je!==Je}},64270:function(Jn){(function(kt,ae){Jn.exports=ae()})(this,function(){"use strict";var kt=function(ge,Ae){return kt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(be,ye){be.__proto__=ye}||function(be,ye){for(var nt in ye)Object.prototype.hasOwnProperty.call(ye,nt)&&(be[nt]=ye[nt])},kt(ge,Ae)};function ae(ge,Ae){if(typeof Ae!="function"&&Ae!==null)throw new TypeError("Class extends value "+String(Ae)+" is not a constructor or null");kt(ge,Ae);function be(){this.constructor=ge}ge.prototype=Ae===null?Object.create(Ae):(be.prototype=Ae.prototype,new be)}var x=function(){return x=Object.assign||function(Ae){for(var be,ye=1,nt=arguments.length;ye<nt;ye++){be=arguments[ye];for(var Ft in be)Object.prototype.hasOwnProperty.call(be,Ft)&&(Ae[Ft]=be[Ft])}return Ae},x.apply(this,arguments)};function dt(ge,Ae,be,ye){function nt(Ft){return Ft instanceof be?Ft:new be(function(Yt){Yt(Ft)})}return new(be||(be=Promise))(function(Ft,Yt){function Bn(Dr){try{xr(ye.next(Dr))}catch(Zr){Yt(Zr)}}function xn(Dr){try{xr(ye.throw(Dr))}catch(Zr){Yt(Zr)}}function xr(Dr){Dr.done?Ft(Dr.value):nt(Dr.value).then(Bn,xn)}xr((ye=ye.apply(ge,Ae||[])).next())})}function Ie(ge,Ae){var be={label:0,sent:function(){if(Ft[0]&1)throw Ft[1];return Ft[1]},trys:[],ops:[]},ye,nt,Ft,Yt;return Yt={next:Bn(0),throw:Bn(1),return:Bn(2)},typeof Symbol=="function"&&(Yt[Symbol.iterator]=function(){return this}),Yt;function Bn(xr){return function(Dr){return xn([xr,Dr])}}function xn(xr){if(ye)throw new TypeError("Generator is already executing.");for(;be;)try{if(ye=1,nt&&(Ft=xr[0]&2?nt.return:xr[0]?nt.throw||((Ft=nt.return)&&Ft.call(nt),0):nt.next)&&!(Ft=Ft.call(nt,xr[1])).done)return Ft;switch(nt=0,Ft&&(xr=[xr[0]&2,Ft.value]),xr[0]){case 0:case 1:Ft=xr;break;case 4:return be.label++,{value:xr[1],done:!1};case 5:be.label++,nt=xr[1],xr=[0];continue;case 7:xr=be.ops.pop(),be.trys.pop();continue;default:if(Ft=be.trys,!(Ft=Ft.length>0&&Ft[Ft.length-1])&&(xr[0]===6||xr[0]===2)){be=0;continue}if(xr[0]===3&&(!Ft||xr[1]>Ft[0]&&xr[1]<Ft[3])){be.label=xr[1];break}if(xr[0]===6&&be.label<Ft[1]){be.label=Ft[1],Ft=xr;break}if(Ft&&be.label<Ft[2]){be.label=Ft[2],be.ops.push(xr);break}Ft[2]&&be.ops.pop(),be.trys.pop();continue}xr=Ae.call(ge,be)}catch(Dr){xr=[6,Dr],nt=0}finally{ye=Ft=0}if(xr[0]&5)throw xr[1];return{value:xr[0]?xr[1]:void 0,done:!0}}}function Je(ge,Ae,be){if(be||arguments.length===2)for(var ye=0,nt=Ae.length,Ft;ye<nt;ye++)(Ft||!(ye in Ae))&&(Ft||(Ft=Array.prototype.slice.call(Ae,0,ye)),Ft[ye]=Ae[ye]);return ge.concat(Ft||Ae)}for(var ze=function(){function ge(Ae,be,ye,nt){this.left=Ae,this.top=be,this.width=ye,this.height=nt}return ge.prototype.add=function(Ae,be,ye,nt){return new ge(this.left+Ae,this.top+be,this.width+ye,this.height+nt)},ge.fromClientRect=function(Ae,be){return new ge(be.left+Ae.windowBounds.left,be.top+Ae.windowBounds.top,be.width,be.height)},ge.fromDOMRectList=function(Ae,be){var ye=Array.from(be).find(function(nt){return nt.width!==0});return ye?new ge(ye.left+Ae.windowBounds.left,ye.top+Ae.windowBounds.top,ye.width,ye.height):ge.EMPTY},ge.EMPTY=new ge(0,0,0,0),ge}(),Le=function(ge,Ae){return ze.fromClientRect(ge,Ae.getBoundingClientRect())},Ue=function(ge){var Ae=ge.body,be=ge.documentElement;if(!Ae||!be)throw new Error("Unable to get document size");var ye=Math.max(Math.max(Ae.scrollWidth,be.scrollWidth),Math.max(Ae.offsetWidth,be.offsetWidth),Math.max(Ae.clientWidth,be.clientWidth)),nt=Math.max(Math.max(Ae.scrollHeight,be.scrollHeight),Math.max(Ae.offsetHeight,be.offsetHeight),Math.max(Ae.clientHeight,be.clientHeight));return new ze(0,0,ye,nt)},he=function(ge){for(var Ae=[],be=0,ye=ge.length;be<ye;){var nt=ge.charCodeAt(be++);if(nt>=55296&&nt<=56319&&be<ye){var Ft=ge.charCodeAt(be++);(Ft&64512)===56320?Ae.push(((nt&1023)<<10)+(Ft&1023)+65536):(Ae.push(nt),be--)}else Ae.push(nt)}return Ae},xe=function(){for(var ge=[],Ae=0;Ae<arguments.length;Ae++)ge[Ae]=arguments[Ae];if(String.fromCodePoint)return String.fromCodePoint.apply(String,ge);var be=ge.length;if(!be)return"";for(var ye=[],nt=-1,Ft="";++nt<be;){var Yt=ge[nt];Yt<=65535?ye.push(Yt):(Yt-=65536,ye.push((Yt>>10)+55296,Yt%1024+56320)),(nt+1===be||ye.length>16384)&&(Ft+=String.fromCharCode.apply(String,ye),ye.length=0)}return Ft},oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Oe=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),ve=0;ve<oe.length;ve++)Oe[oe.charCodeAt(ve)]=ve;for(var Me="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Se=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Te=0;Te<Me.length;Te++)Se[Me.charCodeAt(Te)]=Te;for(var we=function(ge){var Ae=ge.length*.75,be=ge.length,ye,nt=0,Ft,Yt,Bn,xn;ge[ge.length-1]==="="&&(Ae--,ge[ge.length-2]==="="&&Ae--);var xr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Ae):new Array(Ae),Dr=Array.isArray(xr)?xr:new Uint8Array(xr);for(ye=0;ye<be;ye+=4)Ft=Se[ge.charCodeAt(ye)],Yt=Se[ge.charCodeAt(ye+1)],Bn=Se[ge.charCodeAt(ye+2)],xn=Se[ge.charCodeAt(ye+3)],Dr[nt++]=Ft<<2|Yt>>4,Dr[nt++]=(Yt&15)<<4|Bn>>2,Dr[nt++]=(Bn&3)<<6|xn&63;return xr},Ce=function(ge){for(var Ae=ge.length,be=[],ye=0;ye<Ae;ye+=2)be.push(ge[ye+1]<<8|ge[ye]);return be},Ee=function(ge){for(var Ae=ge.length,be=[],ye=0;ye<Ae;ye+=4)be.push(ge[ye+3]<<24|ge[ye+2]<<16|ge[ye+1]<<8|ge[ye]);return be},ke=5,Ke=11,Qe=2,je=Ke-ke,qe=65536>>ke,Ve=1<<ke,ct=Ve-1,ot=1024>>ke,pt=qe+ot,bt=pt,He=32,ht=bt+He,_e=65536>>Ke,Re=1<<je,Nt=Re-1,it=function(ge,Ae,be){return ge.slice?ge.slice(Ae,be):new Uint16Array(Array.prototype.slice.call(ge,Ae,be))},at=function(ge,Ae,be){return ge.slice?ge.slice(Ae,be):new Uint32Array(Array.prototype.slice.call(ge,Ae,be))},Bt=function(ge,Ae){var be=we(ge),ye=Array.isArray(be)?Ee(be):new Uint32Array(be),nt=Array.isArray(be)?Ce(be):new Uint16Array(be),Ft=24,Yt=it(nt,Ft/2,ye[4]/2),Bn=ye[5]===2?it(nt,(Ft+ye[4])/2):at(ye,Math.ceil((Ft+ye[4])/4));return new Ze(ye[0],ye[1],ye[2],ye[3],Yt,Bn)},Ze=function(){function ge(Ae,be,ye,nt,Ft,Yt){this.initialValue=Ae,this.errorValue=be,this.highStart=ye,this.highValueIndex=nt,this.index=Ft,this.data=Yt}return ge.prototype.get=function(Ae){var be;if(Ae>=0){if(Ae<55296||Ae>56319&&Ae<=65535)return be=this.index[Ae>>ke],be=(be<<Qe)+(Ae&ct),this.data[be];if(Ae<=65535)return be=this.index[qe+(Ae-55296>>ke)],be=(be<<Qe)+(Ae&ct),this.data[be];if(Ae<this.highStart)return be=ht-_e+(Ae>>Ke),be=this.index[be],be+=Ae>>ke&Nt,be=this.index[be],be=(be<<Qe)+(Ae&ct),this.data[be];if(Ae<=1114111)return this.data[this.highValueIndex]}return this.errorValue},ge}(),De="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ut=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),$t=0;$t<De.length;$t++)ut[De.charCodeAt($t)]=$t;var zt="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==",tt=50,Ot=1,Rt=2,fn=3,Tt=4,mn=5,Dt=7,En=8,rn=9,de=10,pe=11,ie=12,ee=13,se=14,le=15,Be=16,We=17,st=18,mt=19,gt=20,Et=21,Lt=22,jt=23,Ct=24,lt=25,Vt=26,Zt=27,gn=28,sn=29,en=30,zn=31,Fn=32,Ut=33,an=34,_n=35,Vn=36,It=37,Wt=38,on=39,vn=40,Yn=41,Lr=42,ri=43,zr=[9001,65288],Ir="!",tr="\xD7",vr="\xF7",Qn=Bt(zt),qn=[en,Vn],lr=[Ot,Rt,fn,mn],$n=[de,En],Br=[Zt,Vt],Sr=lr.concat($n),kr=[Wt,on,vn,an,_n],gi=[le,ee],Ai=function(ge,Ae){Ae===void 0&&(Ae="strict");var be=[],ye=[],nt=[];return ge.forEach(function(Ft,Yt){var Bn=Qn.get(Ft);if(Bn>tt?(nt.push(!0),Bn-=tt):nt.push(!1),["normal","auto","loose"].indexOf(Ae)!==-1&&[8208,8211,12316,12448].indexOf(Ft)!==-1)return ye.push(Yt),be.push(Be);if(Bn===Tt||Bn===pe){if(Yt===0)return ye.push(Yt),be.push(en);var xn=be[Yt-1];return Sr.indexOf(xn)===-1?(ye.push(ye[Yt-1]),be.push(xn)):(ye.push(Yt),be.push(en))}if(ye.push(Yt),Bn===zn)return be.push(Ae==="strict"?Et:It);if(Bn===Lr||Bn===sn)return be.push(en);if(Bn===ri)return Ft>=131072&&Ft<=196605||Ft>=196608&&Ft<=262141?be.push(It):be.push(en);be.push(Bn)}),[ye,be,nt]},di=function(ge,Ae,be,ye){var nt=ye[be];if(Array.isArray(ge)?ge.indexOf(nt)!==-1:ge===nt)for(var Ft=be;Ft<=ye.length;){Ft++;var Yt=ye[Ft];if(Yt===Ae)return!0;if(Yt!==de)break}if(nt===de)for(var Ft=be;Ft>0;){Ft--;var Bn=ye[Ft];if(Array.isArray(ge)?ge.indexOf(Bn)!==-1:ge===Bn)for(var xn=be;xn<=ye.length;){xn++;var Yt=ye[xn];if(Yt===Ae)return!0;if(Yt!==de)break}if(Bn!==de)break}return!1},Ti=function(ge,Ae){for(var be=ge;be>=0;){var ye=Ae[be];if(ye===de)be--;else return ye}return 0},Ei=function(ge,Ae,be,ye,nt){if(be[ye]===0)return tr;var Ft=ye-1;if(Array.isArray(nt)&&nt[Ft]===!0)return tr;var Yt=Ft-1,Bn=Ft+1,xn=Ae[Ft],xr=Yt>=0?Ae[Yt]:0,Dr=Ae[Bn];if(xn===Rt&&Dr===fn)return tr;if(lr.indexOf(xn)!==-1)return Ir;if(lr.indexOf(Dr)!==-1||$n.indexOf(Dr)!==-1)return tr;if(Ti(Ft,Ae)===En)return vr;if(Qn.get(ge[Ft])===pe||(xn===Fn||xn===Ut)&&Qn.get(ge[Bn])===pe||xn===Dt||Dr===Dt||xn===rn||[de,ee,le].indexOf(xn)===-1&&Dr===rn||[We,st,mt,Ct,gn].indexOf(Dr)!==-1||Ti(Ft,Ae)===Lt||di(jt,Lt,Ft,Ae)||di([We,st],Et,Ft,Ae)||di(ie,ie,Ft,Ae))return tr;if(xn===de)return vr;if(xn===jt||Dr===jt)return tr;if(Dr===Be||xn===Be)return vr;if([ee,le,Et].indexOf(Dr)!==-1||xn===se||xr===Vn&&gi.indexOf(xn)!==-1||xn===gn&&Dr===Vn||Dr===gt||qn.indexOf(Dr)!==-1&&xn===lt||qn.indexOf(xn)!==-1&&Dr===lt||xn===Zt&&[It,Fn,Ut].indexOf(Dr)!==-1||[It,Fn,Ut].indexOf(xn)!==-1&&Dr===Vt||qn.indexOf(xn)!==-1&&Br.indexOf(Dr)!==-1||Br.indexOf(xn)!==-1&&qn.indexOf(Dr)!==-1||[Zt,Vt].indexOf(xn)!==-1&&(Dr===lt||[Lt,le].indexOf(Dr)!==-1&&Ae[Bn+1]===lt)||[Lt,le].indexOf(xn)!==-1&&Dr===lt||xn===lt&&[lt,gn,Ct].indexOf(Dr)!==-1)return tr;if([lt,gn,Ct,We,st].indexOf(Dr)!==-1)for(var Zr=Ft;Zr>=0;){var Pi=Ae[Zr];if(Pi===lt)return tr;if([gn,Ct].indexOf(Pi)!==-1)Zr--;else break}if([Zt,Vt].indexOf(Dr)!==-1)for(var Zr=[We,st].indexOf(xn)!==-1?Yt:Ft;Zr>=0;){var Pi=Ae[Zr];if(Pi===lt)return tr;if([gn,Ct].indexOf(Pi)!==-1)Zr--;else break}if(Wt===xn&&[Wt,on,an,_n].indexOf(Dr)!==-1||[on,an].indexOf(xn)!==-1&&[on,vn].indexOf(Dr)!==-1||[vn,_n].indexOf(xn)!==-1&&Dr===vn||kr.indexOf(xn)!==-1&&[gt,Vt].indexOf(Dr)!==-1||kr.indexOf(Dr)!==-1&&xn===Zt||qn.indexOf(xn)!==-1&&qn.indexOf(Dr)!==-1||xn===Ct&&qn.indexOf(Dr)!==-1||qn.concat(lt).indexOf(xn)!==-1&&Dr===Lt&&zr.indexOf(ge[Bn])===-1||qn.concat(lt).indexOf(Dr)!==-1&&xn===st)return tr;if(xn===Yn&&Dr===Yn){for(var fa=be[Ft],po=1;fa>0&&(fa--,Ae[fa]===Yn);)po++;if(po%2!==0)return tr}return xn===Fn&&Dr===Ut?tr:vr},no=function(ge,Ae){Ae||(Ae={lineBreak:"normal",wordBreak:"normal"});var be=Ai(ge,Ae.lineBreak),ye=be[0],nt=be[1],Ft=be[2];(Ae.wordBreak==="break-all"||Ae.wordBreak==="break-word")&&(nt=nt.map(function(Bn){return[lt,en,Lr].indexOf(Bn)!==-1?It:Bn}));var Yt=Ae.wordBreak==="keep-all"?Ft.map(function(Bn,xn){return Bn&&ge[xn]>=19968&&ge[xn]<=40959}):void 0;return[ye,nt,Yt]},zi=function(){function ge(Ae,be,ye,nt){this.codePoints=Ae,this.required=be===Ir,this.start=ye,this.end=nt}return ge.prototype.slice=function(){return xe.apply(void 0,this.codePoints.slice(this.start,this.end))},ge}(),fr=function(ge,Ae){var be=he(ge),ye=no(be,Ae),nt=ye[0],Ft=ye[1],Yt=ye[2],Bn=be.length,xn=0,xr=0;return{next:function(){if(xr>=Bn)return{done:!0,value:null};for(var Dr=tr;xr<Bn&&(Dr=Ei(be,Ft,nt,++xr,Yt))===tr;);if(Dr!==tr||xr===Bn){var Zr=new zi(be,Dr,xn,xr);return xn=xr,{value:Zr,done:!1}}return{done:!0,value:null}}}},Ur=1,vi=2,Gt=4,un=8,wn=10,Mt=47,dn=92,Kt=9,pn=32,Nn=34,Pr=61,Yr=35,ci=36,or=37,cr=39,sr=40,ti=41,nr=95,Rn=45,Ar=33,Bi=60,Zn=62,yn=64,Wn=91,rr=93,pr=61,Kr=123,Fi=63,fi=125,_i=124,hi=126,bi=128,wi=65533,Yi=42,pi=43,yi=44,Ji=58,io=59,ji=46,So=0,ki=8,ko=11,co=14,Xo=31,wo=127,eo=-1,bo=48,Go=97,Tn=101,Lo=102,Gi=117,jr=122,Jr=65,ni=69,Wr=70,Ui=85,to=90,$r=function(ge){return ge>=bo&&ge<=57},oi=function(ge){return ge>=55296&&ge<=57343},yr=function(ge){return $r(ge)||ge>=Jr&&ge<=Wr||ge>=Go&&ge<=Lo},qr=function(ge){return ge>=Go&&ge<=jr},Ao=function(ge){return ge>=Jr&&ge<=to},Jo=function(ge){return qr(ge)||Ao(ge)},_o=function(ge){return ge>=bi},pa=function(ge){return ge===wn||ge===Kt||ge===pn},No=function(ge){return Jo(ge)||_o(ge)||ge===nr},qo=function(ge){return No(ge)||$r(ge)||ge===Rn},Ro=function(ge){return ge>=So&&ge<=ki||ge===ko||ge>=co&&ge<=Xo||ge===wo},oa=function(ge,Ae){return ge!==dn?!1:Ae!==wn},da=function(ge,Ae,be){return ge===Rn?No(Ae)||oa(Ae,be):No(ge)?!0:!!(ge===dn&&oa(ge,Ae))},Ka=function(ge,Ae,be){return ge===pi||ge===Rn?$r(Ae)?!0:Ae===ji&&$r(be):$r(ge===ji?Ae:ge)},_s=function(ge){var Ae=0,be=1;(ge[Ae]===pi||ge[Ae]===Rn)&&(ge[Ae]===Rn&&(be=-1),Ae++);for(var ye=[];$r(ge[Ae]);)ye.push(ge[Ae++]);var nt=ye.length?parseInt(xe.apply(void 0,ye),10):0;ge[Ae]===ji&&Ae++;for(var Ft=[];$r(ge[Ae]);)Ft.push(ge[Ae++]);var Yt=Ft.length,Bn=Yt?parseInt(xe.apply(void 0,Ft),10):0;(ge[Ae]===ni||ge[Ae]===Tn)&&Ae++;var xn=1;(ge[Ae]===pi||ge[Ae]===Rn)&&(ge[Ae]===Rn&&(xn=-1),Ae++);for(var xr=[];$r(ge[Ae]);)xr.push(ge[Ae++]);var Dr=xr.length?parseInt(xe.apply(void 0,xr),10):0;return be*(nt+Bn*Math.pow(10,-Yt))*Math.pow(10,xn*Dr)},js={type:2},as={type:3},fs={type:4},Mo={type:13},go={type:8},Fa={type:21},gs={type:9},nl={type:10},rl={type:11},il={type:12},yl={type:14},su={type:23},ol={type:1},jl={type:25},Lu={type:24},Xl={type:26},wl={type:27},ec={type:28},_c={type:29},ma={type:31},Ea={type:32},ha=function(){function ge(){this._value=[]}return ge.prototype.write=function(Ae){this._value=this._value.concat(he(Ae))},ge.prototype.read=function(){for(var Ae=[],be=this.consumeToken();be!==Ea;)Ae.push(be),be=this.consumeToken();return Ae},ge.prototype.consumeToken=function(){var Ae=this.consumeCodePoint();switch(Ae){case Nn:return this.consumeStringToken(Nn);case Yr:var be=this.peekCodePoint(0),ye=this.peekCodePoint(1),nt=this.peekCodePoint(2);if(qo(be)||oa(ye,nt)){var Ft=da(be,ye,nt)?vi:Ur,Yt=this.consumeName();return{type:5,value:Yt,flags:Ft}}break;case ci:if(this.peekCodePoint(0)===Pr)return this.consumeCodePoint(),Mo;break;case cr:return this.consumeStringToken(cr);case sr:return js;case ti:return as;case Yi:if(this.peekCodePoint(0)===Pr)return this.consumeCodePoint(),yl;break;case pi:if(Ka(Ae,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(Ae),this.consumeNumericToken();break;case yi:return fs;case Rn:var Bn=Ae,xn=this.peekCodePoint(0),xr=this.peekCodePoint(1);if(Ka(Bn,xn,xr))return this.reconsumeCodePoint(Ae),this.consumeNumericToken();if(da(Bn,xn,xr))return this.reconsumeCodePoint(Ae),this.consumeIdentLikeToken();if(xn===Rn&&xr===Zn)return this.consumeCodePoint(),this.consumeCodePoint(),Lu;break;case ji:if(Ka(Ae,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(Ae),this.consumeNumericToken();break;case Mt:if(this.peekCodePoint(0)===Yi)for(this.consumeCodePoint();;){var Dr=this.consumeCodePoint();if(Dr===Yi&&(Dr=this.consumeCodePoint(),Dr===Mt))return this.consumeToken();if(Dr===eo)return this.consumeToken()}break;case Ji:return Xl;case io:return wl;case Bi:if(this.peekCodePoint(0)===Ar&&this.peekCodePoint(1)===Rn&&this.peekCodePoint(2)===Rn)return this.consumeCodePoint(),this.consumeCodePoint(),jl;break;case yn:var Zr=this.peekCodePoint(0),Pi=this.peekCodePoint(1),fa=this.peekCodePoint(2);if(da(Zr,Pi,fa)){var Yt=this.consumeName();return{type:7,value:Yt}}break;case Wn:return ec;case dn:if(oa(Ae,this.peekCodePoint(0)))return this.reconsumeCodePoint(Ae),this.consumeIdentLikeToken();break;case rr:return _c;case pr:if(this.peekCodePoint(0)===Pr)return this.consumeCodePoint(),go;break;case Kr:return rl;case fi:return il;case Gi:case Ui:var po=this.peekCodePoint(0),$o=this.peekCodePoint(1);return po===pi&&(yr($o)||$o===Fi)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(Ae),this.consumeIdentLikeToken();case _i:if(this.peekCodePoint(0)===Pr)return this.consumeCodePoint(),gs;if(this.peekCodePoint(0)===_i)return this.consumeCodePoint(),Fa;break;case hi:if(this.peekCodePoint(0)===Pr)return this.consumeCodePoint(),nl;break;case eo:return Ea}return pa(Ae)?(this.consumeWhiteSpace(),ma):$r(Ae)?(this.reconsumeCodePoint(Ae),this.consumeNumericToken()):No(Ae)?(this.reconsumeCodePoint(Ae),this.consumeIdentLikeToken()):{type:6,value:xe(Ae)}},ge.prototype.consumeCodePoint=function(){var Ae=this._value.shift();return typeof Ae=="undefined"?-1:Ae},ge.prototype.reconsumeCodePoint=function(Ae){this._value.unshift(Ae)},ge.prototype.peekCodePoint=function(Ae){return Ae>=this._value.length?-1:this._value[Ae]},ge.prototype.consumeUnicodeRangeToken=function(){for(var Ae=[],be=this.consumeCodePoint();yr(be)&&Ae.length<6;)Ae.push(be),be=this.consumeCodePoint();for(var ye=!1;be===Fi&&Ae.length<6;)Ae.push(be),be=this.consumeCodePoint(),ye=!0;if(ye){var nt=parseInt(xe.apply(void 0,Ae.map(function(xn){return xn===Fi?bo:xn})),16),Ft=parseInt(xe.apply(void 0,Ae.map(function(xn){return xn===Fi?Wr:xn})),16);return{type:30,start:nt,end:Ft}}var Yt=parseInt(xe.apply(void 0,Ae),16);if(this.peekCodePoint(0)===Rn&&yr(this.peekCodePoint(1))){this.consumeCodePoint(),be=this.consumeCodePoint();for(var Bn=[];yr(be)&&Bn.length<6;)Bn.push(be),be=this.consumeCodePoint();var Ft=parseInt(xe.apply(void 0,Bn),16);return{type:30,start:Yt,end:Ft}}else return{type:30,start:Yt,end:Yt}},ge.prototype.consumeIdentLikeToken=function(){var Ae=this.consumeName();return Ae.toLowerCase()==="url"&&this.peekCodePoint(0)===sr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===sr?(this.consumeCodePoint(),{type:19,value:Ae}):{type:20,value:Ae}},ge.prototype.consumeUrlToken=function(){var Ae=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===eo)return{type:22,value:""};var be=this.peekCodePoint(0);if(be===cr||be===Nn){var ye=this.consumeStringToken(this.consumeCodePoint());return ye.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===eo||this.peekCodePoint(0)===ti)?(this.consumeCodePoint(),{type:22,value:ye.value}):(this.consumeBadUrlRemnants(),su)}for(;;){var nt=this.consumeCodePoint();if(nt===eo||nt===ti)return{type:22,value:xe.apply(void 0,Ae)};if(pa(nt))return this.consumeWhiteSpace(),this.peekCodePoint(0)===eo||this.peekCodePoint(0)===ti?(this.consumeCodePoint(),{type:22,value:xe.apply(void 0,Ae)}):(this.consumeBadUrlRemnants(),su);if(nt===Nn||nt===cr||nt===sr||Ro(nt))return this.consumeBadUrlRemnants(),su;if(nt===dn)if(oa(nt,this.peekCodePoint(0)))Ae.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),su;else Ae.push(nt)}},ge.prototype.consumeWhiteSpace=function(){for(;pa(this.peekCodePoint(0));)this.consumeCodePoint()},ge.prototype.consumeBadUrlRemnants=function(){for(;;){var Ae=this.consumeCodePoint();if(Ae===ti||Ae===eo)return;oa(Ae,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},ge.prototype.consumeStringSlice=function(Ae){for(var be=5e4,ye="";Ae>0;){var nt=Math.min(be,Ae);ye+=xe.apply(void 0,this._value.splice(0,nt)),Ae-=nt}return this._value.shift(),ye},ge.prototype.consumeStringToken=function(Ae){var be="",ye=0;do{var nt=this._value[ye];if(nt===eo||nt===void 0||nt===Ae)return be+=this.consumeStringSlice(ye),{type:0,value:be};if(nt===wn)return this._value.splice(0,ye),ol;if(nt===dn){var Ft=this._value[ye+1];Ft!==eo&&Ft!==void 0&&(Ft===wn?(be+=this.consumeStringSlice(ye),ye=-1,this._value.shift()):oa(nt,Ft)&&(be+=this.consumeStringSlice(ye),be+=xe(this.consumeEscapedCodePoint()),ye=-1))}ye++}while(!0)},ge.prototype.consumeNumber=function(){var Ae=[],be=Gt,ye=this.peekCodePoint(0);for((ye===pi||ye===Rn)&&Ae.push(this.consumeCodePoint());$r(this.peekCodePoint(0));)Ae.push(this.consumeCodePoint());ye=this.peekCodePoint(0);var nt=this.peekCodePoint(1);if(ye===ji&&$r(nt))for(Ae.push(this.consumeCodePoint(),this.consumeCodePoint()),be=un;$r(this.peekCodePoint(0));)Ae.push(this.consumeCodePoint());ye=this.peekCodePoint(0),nt=this.peekCodePoint(1);var Ft=this.peekCodePoint(2);if((ye===ni||ye===Tn)&&((nt===pi||nt===Rn)&&$r(Ft)||$r(nt)))for(Ae.push(this.consumeCodePoint(),this.consumeCodePoint()),be=un;$r(this.peekCodePoint(0));)Ae.push(this.consumeCodePoint());return[_s(Ae),be]},ge.prototype.consumeNumericToken=function(){var Ae=this.consumeNumber(),be=Ae[0],ye=Ae[1],nt=this.peekCodePoint(0),Ft=this.peekCodePoint(1),Yt=this.peekCodePoint(2);if(da(nt,Ft,Yt)){var Bn=this.consumeName();return{type:15,number:be,flags:ye,unit:Bn}}return nt===or?(this.consumeCodePoint(),{type:16,number:be,flags:ye}):{type:17,number:be,flags:ye}},ge.prototype.consumeEscapedCodePoint=function(){var Ae=this.consumeCodePoint();if(yr(Ae)){for(var be=xe(Ae);yr(this.peekCodePoint(0))&&be.length<6;)be+=xe(this.consumeCodePoint());pa(this.peekCodePoint(0))&&this.consumeCodePoint();var ye=parseInt(be,16);return ye===0||oi(ye)||ye>1114111?wi:ye}return Ae===eo?wi:Ae},ge.prototype.consumeName=function(){for(var Ae="";;){var be=this.consumeCodePoint();if(qo(be))Ae+=xe(be);else if(oa(be,this.peekCodePoint(0)))Ae+=xe(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(be),Ae}},ge}(),wa=function(){function ge(Ae){this._tokens=Ae}return ge.create=function(Ae){var be=new ha;return be.write(Ae),new ge(be.read())},ge.parseValue=function(Ae){return ge.create(Ae).parseComponentValue()},ge.parseValues=function(Ae){return ge.create(Ae).parseComponentValues()},ge.prototype.parseComponentValue=function(){for(var Ae=this.consumeToken();Ae.type===31;)Ae=this.consumeToken();if(Ae.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(Ae);var be=this.consumeComponentValue();do Ae=this.consumeToken();while(Ae.type===31);if(Ae.type===32)return be;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},ge.prototype.parseComponentValues=function(){for(var Ae=[];;){var be=this.consumeComponentValue();if(be.type===32)return Ae;Ae.push(be),Ae.push()}},ge.prototype.consumeComponentValue=function(){var Ae=this.consumeToken();switch(Ae.type){case 11:case 28:case 2:return this.consumeSimpleBlock(Ae.type);case 19:return this.consumeFunction(Ae)}return Ae},ge.prototype.consumeSimpleBlock=function(Ae){for(var be={type:Ae,values:[]},ye=this.consumeToken();;){if(ye.type===32||Ma(ye,Ae))return be;this.reconsumeToken(ye),be.values.push(this.consumeComponentValue()),ye=this.consumeToken()}},ge.prototype.consumeFunction=function(Ae){for(var be={name:Ae.value,values:[],type:18};;){var ye=this.consumeToken();if(ye.type===32||ye.type===3)return be;this.reconsumeToken(ye),be.values.push(this.consumeComponentValue())}},ge.prototype.consumeToken=function(){var Ae=this._tokens.shift();return typeof Ae=="undefined"?Ea:Ae},ge.prototype.reconsumeToken=function(Ae){this._tokens.unshift(Ae)},ge}(),Ja=function(ge){return ge.type===15},Ga=function(ge){return ge.type===17},$a=function(ge){return ge.type===20},Ql=function(ge){return ge.type===0},fu=function(ge,Ae){return $a(ge)&&ge.value===Ae},kl=function(ge){return ge.type!==31},Hi=function(ge){return ge.type!==31&&ge.type!==4},Vo=function(ge){var Ae=[],be=[];return ge.forEach(function(ye){if(ye.type===4){if(be.length===0)throw new Error("Error parsing function args, zero tokens for arg");Ae.push(be),be=[];return}ye.type!==31&&be.push(ye)}),be.length&&Ae.push(be),Ae},Ma=function(ge,Ae){return Ae===11&&ge.type===12||Ae===28&&ge.type===29?!0:Ae===2&&ge.type===3},Hl=function(ge){return ge.type===17||ge.type===15},ks=function(ge){return ge.type===16||Hl(ge)},zl=function(ge){return ge.length>1?[ge[0],ge[1]]:[ge[0]]},pl={type:17,number:0,flags:Gt},eA={type:16,number:50,flags:Gt},Bc={type:16,number:100,flags:Gt},tc=function(ge,Ae,be){var ye=ge[0],nt=ge[1];return[ss(ye,Ae),ss(typeof nt!="undefined"?nt:ye,be)]},ss=function(ge,Ae){if(ge.type===16)return ge.number/100*Ae;if(Ja(ge))switch(ge.unit){case"rem":case"em":return 16*ge.number;case"px":default:return ge.number}return ge.number},ns="deg",KA="grad",tA="rad",Qs="turn",Sl={name:"angle",parse:function(ge,Ae){if(Ae.type===15)switch(Ae.unit){case ns:return Math.PI*Ae.number/180;case KA:return Math.PI/200*Ae.number;case tA:return Ae.number;case Qs:return Math.PI*2*Ae.number}throw new Error("Unsupported angle type")}},Hc=function(ge){return ge.type===15&&(ge.unit===ns||ge.unit===KA||ge.unit===tA||ge.unit===Qs)},zc=function(ge){var Ae=ge.filter($a).map(function(be){return be.value}).join(" ");switch(Ae){case"to bottom right":case"to right bottom":case"left top":case"top left":return[pl,pl];case"to top":case"bottom":return ml(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[pl,Bc];case"to right":case"left":return ml(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Bc,Bc];case"to bottom":case"top":return ml(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Bc,pl];case"to left":case"right":return ml(270)}return 0},ml=function(ge){return Math.PI*ge/180},_u={name:"color",parse:function(ge,Ae){if(Ae.type===18){var be=Oa[Ae.name];if(typeof be=="undefined")throw new Error('Attempting to parse an unsupported color function "'+Ae.name+'"');return be(ge,Ae.values)}if(Ae.type===5){if(Ae.value.length===3){var ye=Ae.value.substring(0,1),nt=Ae.value.substring(1,2),Ft=Ae.value.substring(2,3);return lu(parseInt(ye+ye,16),parseInt(nt+nt,16),parseInt(Ft+Ft,16),1)}if(Ae.value.length===4){var ye=Ae.value.substring(0,1),nt=Ae.value.substring(1,2),Ft=Ae.value.substring(2,3),Yt=Ae.value.substring(3,4);return lu(parseInt(ye+ye,16),parseInt(nt+nt,16),parseInt(Ft+Ft,16),parseInt(Yt+Yt,16)/255)}if(Ae.value.length===6){var ye=Ae.value.substring(0,2),nt=Ae.value.substring(2,4),Ft=Ae.value.substring(4,6);return lu(parseInt(ye,16),parseInt(nt,16),parseInt(Ft,16),1)}if(Ae.value.length===8){var ye=Ae.value.substring(0,2),nt=Ae.value.substring(2,4),Ft=Ae.value.substring(4,6),Yt=Ae.value.substring(6,8);return lu(parseInt(ye,16),parseInt(nt,16),parseInt(Ft,16),parseInt(Yt,16)/255)}}if(Ae.type===20){var Bn=Ms[Ae.value.toUpperCase()];if(typeof Bn!="undefined")return Bn}return Ms.TRANSPARENT}},Ws=function(ge){return(255&ge)===0},Gs=function(ge){var Ae=255&ge,be=255&ge>>8,ye=255&ge>>16,nt=255&ge>>24;return Ae<255?"rgba("+nt+","+ye+","+be+","+Ae/255+")":"rgb("+nt+","+ye+","+be+")"},lu=function(ge,Ae,be,ye){return(ge<<24|Ae<<16|be<<8|Math.round(ye*255)<<0)>>>0},NA=function(ge,Ae){if(ge.type===17)return ge.number;if(ge.type===16){var be=Ae===3?1:255;return Ae===3?ge.number/100*be:Math.round(ge.number/100*be)}return 0},$A=function(ge,Ae){var be=Ae.filter(Hi);if(be.length===3){var ye=be.map(NA),nt=ye[0],Ft=ye[1],Yt=ye[2];return lu(nt,Ft,Yt,1)}if(be.length===4){var Bn=be.map(NA),nt=Bn[0],Ft=Bn[1],Yt=Bn[2],xn=Bn[3];return lu(nt,Ft,Yt,xn)}return 0};function uu(ge,Ae,be){return be<0&&(be+=1),be>=1&&(be-=1),be<1/6?(Ae-ge)*be*6+ge:be<1/2?Ae:be<2/3?(Ae-ge)*6*(2/3-be)+ge:ge}var hu=function(ge,Ae){var be=Ae.filter(Hi),ye=be[0],nt=be[1],Ft=be[2],Yt=be[3],Bn=(ye.type===17?ml(ye.number):Sl.parse(ge,ye))/(Math.PI*2),xn=ks(nt)?nt.number/100:0,xr=ks(Ft)?Ft.number/100:0,Dr=typeof Yt!="undefined"&&ks(Yt)?ss(Yt,1):1;if(xn===0)return lu(xr*255,xr*255,xr*255,1);var Zr=xr<=.5?xr*(xn+1):xr+xn-xr*xn,Pi=xr*2-Zr,fa=uu(Pi,Zr,Bn+1/3),po=uu(Pi,Zr,Bn),$o=uu(Pi,Zr,Bn-1/3);return lu(fa*255,po*255,$o*255,Dr)},Oa={hsl:hu,hsla:hu,rgb:$A,rgba:$A},Ua=function(ge,Ae){return _u.parse(ge,wa.create(Ae).parseComponentValue())},Ms={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},nc={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(ge,Ae){return Ae.map(function(be){if($a(be))switch(be.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Yl={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},pu=function(ge,Ae){var be=_u.parse(ge,Ae[0]),ye=Ae[1];return ye&&ks(ye)?{color:be,stop:ye}:{color:be,stop:null}},Kc=function(ge,Ae){var be=ge[0],ye=ge[ge.length-1];be.stop===null&&(be.stop=pl),ye.stop===null&&(ye.stop=Bc);for(var nt=[],Ft=0,Yt=0;Yt<ge.length;Yt++){var Bn=ge[Yt].stop;if(Bn!==null){var xn=ss(Bn,Ae);xn>Ft?nt.push(xn):nt.push(Ft),Ft=xn}else nt.push(null)}for(var xr=null,Yt=0;Yt<nt.length;Yt++){var Dr=nt[Yt];if(Dr===null)xr===null&&(xr=Yt);else if(xr!==null){for(var Zr=Yt-xr,Pi=nt[xr-1],fa=(Dr-Pi)/(Zr+1),po=1;po<=Zr;po++)nt[xr+po-1]=fa*po;xr=null}}return ge.map(function($o,As){var ya=$o.color;return{color:ya,stop:Math.max(Math.min(1,nt[As]/Ae),0)}})},hc=function(ge,Ae,be){var ye=Ae/2,nt=be/2,Ft=ss(ge[0],Ae)-ye,Yt=nt-ss(ge[1],be);return(Math.atan2(Yt,Ft)+Math.PI*2)%(Math.PI*2)},fA=function(ge,Ae,be){var ye=typeof ge=="number"?ge:hc(ge,Ae,be),nt=Math.abs(Ae*Math.sin(ye))+Math.abs(be*Math.cos(ye)),Ft=Ae/2,Yt=be/2,Bn=nt/2,xn=Math.sin(ye-Math.PI/2)*Bn,xr=Math.cos(ye-Math.PI/2)*Bn;return[nt,Ft-xr,Ft+xr,Yt-xn,Yt+xn]},Jl=function(ge,Ae){return Math.sqrt(ge*ge+Ae*Ae)},pc=function(ge,Ae,be,ye,nt){var Ft=[[0,0],[0,Ae],[ge,0],[ge,Ae]];return Ft.reduce(function(Yt,Bn){var xn=Bn[0],xr=Bn[1],Dr=Jl(be-xn,ye-xr);return(nt?Dr<Yt.optimumDistance:Dr>Yt.optimumDistance)?{optimumCorner:Bn,optimumDistance:Dr}:Yt},{optimumDistance:nt?1/0:-1/0,optimumCorner:null}).optimumCorner},nA=function(ge,Ae,be,ye,nt){var Ft=0,Yt=0;switch(ge.size){case 0:ge.shape===0?Ft=Yt=Math.min(Math.abs(Ae),Math.abs(Ae-ye),Math.abs(be),Math.abs(be-nt)):ge.shape===1&&(Ft=Math.min(Math.abs(Ae),Math.abs(Ae-ye)),Yt=Math.min(Math.abs(be),Math.abs(be-nt)));break;case 2:if(ge.shape===0)Ft=Yt=Math.min(Jl(Ae,be),Jl(Ae,be-nt),Jl(Ae-ye,be),Jl(Ae-ye,be-nt));else if(ge.shape===1){var Bn=Math.min(Math.abs(be),Math.abs(be-nt))/Math.min(Math.abs(Ae),Math.abs(Ae-ye)),xn=pc(ye,nt,Ae,be,!0),xr=xn[0],Dr=xn[1];Ft=Jl(xr-Ae,(Dr-be)/Bn),Yt=Bn*Ft}break;case 1:ge.shape===0?Ft=Yt=Math.max(Math.abs(Ae),Math.abs(Ae-ye),Math.abs(be),Math.abs(be-nt)):ge.shape===1&&(Ft=Math.max(Math.abs(Ae),Math.abs(Ae-ye)),Yt=Math.max(Math.abs(be),Math.abs(be-nt)));break;case 3:if(ge.shape===0)Ft=Yt=Math.max(Jl(Ae,be),Jl(Ae,be-nt),Jl(Ae-ye,be),Jl(Ae-ye,be-nt));else if(ge.shape===1){var Bn=Math.max(Math.abs(be),Math.abs(be-nt))/Math.max(Math.abs(Ae),Math.abs(Ae-ye)),Zr=pc(ye,nt,Ae,be,!1),xr=Zr[0],Dr=Zr[1];Ft=Jl(xr-Ae,(Dr-be)/Bn),Yt=Bn*Ft}break}return Array.isArray(ge.size)&&(Ft=ss(ge.size[0],ye),Yt=ge.size.length===2?ss(ge.size[1],nt):Ft),[Ft,Yt]},rA=function(ge,Ae){var be=ml(180),ye=[];return Vo(Ae).forEach(function(nt,Ft){if(Ft===0){var Yt=nt[0];if(Yt.type===20&&Yt.value==="to"){be=zc(nt);return}else if(Hc(Yt)){be=Sl.parse(ge,Yt);return}}var Bn=pu(ge,nt);ye.push(Bn)}),{angle:be,stops:ye,type:1}},Ed=function(ge,Ae){var be=ml(180),ye=[];return Vo(Ae).forEach(function(nt,Ft){if(Ft===0){var Yt=nt[0];if(Yt.type===20&&["top","left","right","bottom"].indexOf(Yt.value)!==-1){be=zc(nt);return}else if(Hc(Yt)){be=(Sl.parse(ge,Yt)+ml(270))%ml(360);return}}var Bn=pu(ge,nt);ye.push(Bn)}),{angle:be,stops:ye,type:1}},Jf=function(ge,Ae){var be=ml(180),ye=[],nt=1,Ft=0,Yt=3,Bn=[];return Vo(Ae).forEach(function(xn,xr){var Dr=xn[0];if(xr===0){if($a(Dr)&&Dr.value==="linear"){nt=1;return}else if($a(Dr)&&Dr.value==="radial"){nt=2;return}}if(Dr.type===18){if(Dr.name==="from"){var Zr=_u.parse(ge,Dr.values[0]);ye.push({stop:pl,color:Zr})}else if(Dr.name==="to"){var Zr=_u.parse(ge,Dr.values[0]);ye.push({stop:Bc,color:Zr})}else if(Dr.name==="color-stop"){var Pi=Dr.values.filter(Hi);if(Pi.length===2){var Zr=_u.parse(ge,Pi[1]),fa=Pi[0];Ga(fa)&&ye.push({stop:{type:16,number:fa.number*100,flags:fa.flags},color:Zr})}}}}),nt===1?{angle:(be+ml(180))%ml(360),stops:ye,type:nt}:{size:Yt,shape:Ft,stops:ye,position:Bn,type:nt}},nd="closest-side",OA="farthest-side",hA="closest-corner",Nu="farthest-corner",DA="circle",iA="ellipse",Sd="cover",qf="contain",Ns=function(ge,Ae){var be=0,ye=3,nt=[],Ft=[];return Vo(Ae).forEach(function(Yt,Bn){var xn=!0;if(Bn===0){var xr=!1;xn=Yt.reduce(function(Zr,Pi){if(xr)if($a(Pi))switch(Pi.value){case"center":return Ft.push(eA),Zr;case"top":case"left":return Ft.push(pl),Zr;case"right":case"bottom":return Ft.push(Bc),Zr}else(ks(Pi)||Hl(Pi))&&Ft.push(Pi);else if($a(Pi))switch(Pi.value){case DA:return be=0,!1;case iA:return be=1,!1;case"at":return xr=!0,!1;case nd:return ye=0,!1;case Sd:case OA:return ye=1,!1;case qf:case hA:return ye=2,!1;case Nu:return ye=3,!1}else if(Hl(Pi)||ks(Pi))return Array.isArray(ye)||(ye=[]),ye.push(Pi),!1;return Zr},xn)}if(xn){var Dr=pu(ge,Yt);nt.push(Dr)}}),{size:ye,shape:be,stops:nt,position:Ft,type:2}},Wu=function(ge,Ae){var be=0,ye=3,nt=[],Ft=[];return Vo(Ae).forEach(function(Yt,Bn){var xn=!0;if(Bn===0?xn=Yt.reduce(function(Dr,Zr){if($a(Zr))switch(Zr.value){case"center":return Ft.push(eA),!1;case"top":case"left":return Ft.push(pl),!1;case"right":case"bottom":return Ft.push(Bc),!1}else if(ks(Zr)||Hl(Zr))return Ft.push(Zr),!1;return Dr},xn):Bn===1&&(xn=Yt.reduce(function(Dr,Zr){if($a(Zr))switch(Zr.value){case DA:return be=0,!1;case iA:return be=1,!1;case qf:case nd:return ye=0,!1;case OA:return ye=1,!1;case hA:return ye=2,!1;case Sd:case Nu:return ye=3,!1}else if(Hl(Zr)||ks(Zr))return Array.isArray(ye)||(ye=[]),ye.push(Zr),!1;return Dr},xn)),xn){var xr=pu(ge,Yt);nt.push(xr)}}),{size:ye,shape:be,stops:nt,position:Ft,type:2}},pA=function(ge){return ge.type===1},Ph=function(ge){return ge.type===2},$c={name:"image",parse:function(ge,Ae){if(Ae.type===22){var be={url:Ae.value,type:0};return ge.cache.addImage(Ae.value),be}if(Ae.type===18){var ye=Fd[Ae.name];if(typeof ye=="undefined")throw new Error('Attempting to parse an unsupported image function "'+Ae.name+'"');return ye(ge,Ae.values)}throw new Error("Unsupported image type "+Ae.type)}};function Th(ge){return!(ge.type===20&&ge.value==="none")&&(ge.type!==18||!!Fd[ge.name])}var Fd={"linear-gradient":rA,"-moz-linear-gradient":Ed,"-ms-linear-gradient":Ed,"-o-linear-gradient":Ed,"-webkit-linear-gradient":Ed,"radial-gradient":Ns,"-moz-radial-gradient":Wu,"-ms-radial-gradient":Wu,"-o-radial-gradient":Wu,"-webkit-radial-gradient":Wu,"-webkit-gradient":Jf},eh={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(ge,Ae){if(Ae.length===0)return[];var be=Ae[0];return be.type===20&&be.value==="none"?[]:Ae.filter(function(ye){return Hi(ye)&&Th(ye)}).map(function(ye){return $c.parse(ge,ye)})}},bf={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(ge,Ae){return Ae.map(function(be){if($a(be))switch(be.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Cf={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(ge,Ae){return Vo(Ae).map(function(be){return be.filter(ks)}).map(zl)}},Zc={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(ge,Ae){return Vo(Ae).map(function(be){return be.filter($a).map(function(ye){return ye.value}).join(" ")}).map(va)}},va=function(ge){switch(ge){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}},Kl;(function(ge){ge.AUTO="auto",ge.CONTAIN="contain",ge.COVER="cover"})(Kl||(Kl={}));var Nc={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(ge,Ae){return Vo(Ae).map(function(be){return be.filter(rd)})}},rd=function(ge){return $a(ge)||ks(ge)},PA=function(ge){return{name:"border-"+ge+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Kp=PA("top"),TA=PA("right"),th=PA("bottom"),Oc=PA("left"),id=function(ge){return{name:"border-radius-"+ge,initialValue:"0 0",prefix:!1,type:1,parse:function(Ae,be){return zl(be.filter(ks))}}},$p=id("top-left"),mA=id("top-right"),Ec=id("bottom-right"),rc=id("bottom-left"),Hs=function(ge){return{name:"border-"+ge+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(Ae,be){switch(be){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},gA=Hs("top"),od=Hs("right"),ad=Hs("bottom"),vA=Hs("left"),kA=function(ge){return{name:"border-"+ge+"-width",initialValue:"0",type:0,prefix:!1,parse:function(Ae,be){return Ja(be)?be.number:0}}},xf=kA("top"),Id=kA("right"),kh=kA("bottom"),Zp=kA("left"),ic={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},yA={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(ge,Ae){switch(Ae){case"rtl":return 1;case"ltr":default:return 0}}},up={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(ge,Ae){return Ae.filter($a).reduce(function(be,ye){return be|Wp(ye.value)},0)}},Wp=function(ge){switch(ge){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},Vd={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(ge,Ae){switch(Ae){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},cp={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(ge,Ae){return Ae.type===20&&Ae.value==="normal"?0:Ae.type===17||Ae.type===15?Ae.number:0}},Xd;(function(ge){ge.NORMAL="normal",ge.STRICT="strict"})(Xd||(Xd={}));var Gp={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(ge,Ae){switch(Ae){case"strict":return Xd.STRICT;case"normal":default:return Xd.NORMAL}}},oc={name:"line-height",initialValue:"normal",prefix:!1,type:4},Ou=function(ge,Ae){return $a(ge)&&ge.value==="normal"?1.2*Ae:ge.type===17?Ae*ge.number:ks(ge)?ss(ge,Ae):Ae},ac={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(ge,Ae){return Ae.type===20&&Ae.value==="none"?null:$c.parse(ge,Ae)}},Du={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(ge,Ae){switch(Ae){case"inside":return 0;case"outside":default:return 1}}},sd={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(ge,Ae){switch(Ae){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}}},Yd=function(ge){return{name:"margin-"+ge,initialValue:"0",prefix:!1,type:4}},Bf=Yd("top"),Ap=Yd("right"),dp=Yd("bottom"),fp=Yd("left"),nh={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(ge,Ae){return Ae.filter($a).map(function(be){switch(be.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},wA={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(ge,Ae){switch(Ae){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ld=function(ge){return{name:"padding-"+ge,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},hp=Ld("top"),wt=Ld("right"),yt=Ld("bottom"),Xt=Ld("left"),cn={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(ge,Ae){switch(Ae){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Sn={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(ge,Ae){switch(Ae){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},kn={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(ge,Ae){return Ae.length===1&&fu(Ae[0],"none")?[]:Vo(Ae).map(function(be){for(var ye={color:Ms.TRANSPARENT,offsetX:pl,offsetY:pl,blur:pl},nt=0,Ft=0;Ft<be.length;Ft++){var Yt=be[Ft];Hl(Yt)?(nt===0?ye.offsetX=Yt:nt===1?ye.offsetY=Yt:ye.blur=Yt,nt++):ye.color=_u.parse(ge,Yt)}return ye})}},ar={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(ge,Ae){switch(Ae){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},er={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(ge,Ae){if(Ae.type===20&&Ae.value==="none")return null;if(Ae.type===18){var be=li[Ae.name];if(typeof be=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+Ae.name+'"');return be(Ae.values)}return null}},br=function(ge){var Ae=ge.filter(function(be){return be.type===17}).map(function(be){return be.number});return Ae.length===6?Ae:null},hr=function(ge){var Ae=ge.filter(function(xn){return xn.type===17}).map(function(xn){return xn.number}),be=Ae[0],ye=Ae[1];Ae[2],Ae[3];var nt=Ae[4],Ft=Ae[5];Ae[6],Ae[7],Ae[8],Ae[9],Ae[10],Ae[11];var Yt=Ae[12],Bn=Ae[13];return Ae[14],Ae[15],Ae.length===16?[be,ye,nt,Ft,Yt,Bn]:null},li={matrix:br,matrix3d:hr},Qr={type:16,number:50,flags:Gt},Hr=[Qr,Qr],Or={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(ge,Ae){var be=Ae.filter(ks);return be.length!==2?Hr:[be[0],be[1]]}},_r={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(ge,Ae){switch(Ae){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Zi;(function(ge){ge.NORMAL="normal",ge.BREAK_ALL="break-all",ge.KEEP_ALL="keep-all"})(Zi||(Zi={}));for(var Ci={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(ge,Ae){switch(Ae){case"break-all":return Zi.BREAK_ALL;case"keep-all":return Zi.KEEP_ALL;case"normal":default:return Zi.NORMAL}}},qi={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(ge,Ae){if(Ae.type===20)return{auto:!0,order:0};if(Ga(Ae))return{auto:!1,order:Ae.number};throw new Error("Invalid z-index number parsed")}},so={name:"time",parse:function(ge,Ae){if(Ae.type===15)switch(Ae.unit.toLowerCase()){case"s":return 1e3*Ae.number;case"ms":return Ae.number}throw new Error("Unsupported time type")}},Xi={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(ge,Ae){return Ga(Ae)?Ae.number:1}},ho={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Bo={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(ge,Ae){return Ae.filter($a).map(function(be){switch(be.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(be){return be!==0})}},jo={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(ge,Ae){var be=[],ye=[];return Ae.forEach(function(nt){switch(nt.type){case 20:case 0:be.push(nt.value);break;case 17:be.push(nt.number.toString());break;case 4:ye.push(be.join(" ")),be.length=0;break}}),be.length&&ye.push(be.join(" ")),ye.map(function(nt){return nt.indexOf(" ")===-1?nt:"'"+nt+"'"})}},Po={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Ia={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(ge,Ae){if(Ga(Ae))return Ae.number;if($a(Ae))switch(Ae.value){case"bold":return 700;case"normal":default:return 400}return 400}},aa={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(ge,Ae){return Ae.filter($a).map(function(be){return be.value})}},ta={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(ge,Ae){switch(Ae){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},zo=function(ge,Ae){return(ge&Ae)!==0},Qo={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(ge,Ae){if(Ae.length===0)return[];var be=Ae[0];return be.type===20&&be.value==="none"?[]:Ae}},Ho={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(ge,Ae){if(Ae.length===0)return null;var be=Ae[0];if(be.type===20&&be.value==="none")return null;for(var ye=[],nt=Ae.filter(kl),Ft=0;Ft<nt.length;Ft++){var Yt=nt[Ft],Bn=nt[Ft+1];if(Yt.type===20){var xn=Bn&&Ga(Bn)?Bn.number:1;ye.push({counter:Yt.value,increment:xn})}}return ye}},vo={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(ge,Ae){if(Ae.length===0)return[];for(var be=[],ye=Ae.filter(kl),nt=0;nt<ye.length;nt++){var Ft=ye[nt],Yt=ye[nt+1];if($a(Ft)&&Ft.value!=="none"){var Bn=Yt&&Ga(Yt)?Yt.number:0;be.push({counter:Ft.value,reset:Bn})}}return be}},fo={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(ge,Ae){return Ae.filter(Ja).map(function(be){return so.parse(ge,be)})}},To={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(ge,Ae){if(Ae.length===0)return null;var be=Ae[0];if(be.type===20&&be.value==="none")return null;var ye=[],nt=Ae.filter(Ql);if(nt.length%2!==0)return null;for(var Ft=0;Ft<nt.length;Ft+=2){var Yt=nt[Ft].value,Bn=nt[Ft+1].value;ye.push({open:Yt,close:Bn})}return ye}},Zo=function(ge,Ae,be){if(!ge)return"";var ye=ge[Math.min(Ae,ge.length-1)];return ye?be?ye.open:ye.close:""},na={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(ge,Ae){return Ae.length===1&&fu(Ae[0],"none")?[]:Vo(Ae).map(function(be){for(var ye={color:255,offsetX:pl,offsetY:pl,blur:pl,spread:pl,inset:!1},nt=0,Ft=0;Ft<be.length;Ft++){var Yt=be[Ft];fu(Yt,"inset")?ye.inset=!0:Hl(Yt)?(nt===0?ye.offsetX=Yt:nt===1?ye.offsetY=Yt:nt===2?ye.blur=Yt:ye.spread=Yt,nt++):ye.color=_u.parse(ge,Yt)}return ye})}},Co={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(ge,Ae){var be=[0,1,2],ye=[];return Ae.filter($a).forEach(function(nt){switch(nt.value){case"stroke":ye.push(1);break;case"fill":ye.push(0);break;case"markers":ye.push(2);break}}),be.forEach(function(nt){ye.indexOf(nt)===-1&&ye.push(nt)}),ye}},Xa={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Ha={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(ge,Ae){return Ja(Ae)?Ae.number:0}},Ml=function(){function ge(Ae,be){var ye,nt;this.animationDuration=lo(Ae,fo,be.animationDuration),this.backgroundClip=lo(Ae,nc,be.backgroundClip),this.backgroundColor=lo(Ae,Yl,be.backgroundColor),this.backgroundImage=lo(Ae,eh,be.backgroundImage),this.backgroundOrigin=lo(Ae,bf,be.backgroundOrigin),this.backgroundPosition=lo(Ae,Cf,be.backgroundPosition),this.backgroundRepeat=lo(Ae,Zc,be.backgroundRepeat),this.backgroundSize=lo(Ae,Nc,be.backgroundSize),this.borderTopColor=lo(Ae,Kp,be.borderTopColor),this.borderRightColor=lo(Ae,TA,be.borderRightColor),this.borderBottomColor=lo(Ae,th,be.borderBottomColor),this.borderLeftColor=lo(Ae,Oc,be.borderLeftColor),this.borderTopLeftRadius=lo(Ae,$p,be.borderTopLeftRadius),this.borderTopRightRadius=lo(Ae,mA,be.borderTopRightRadius),this.borderBottomRightRadius=lo(Ae,Ec,be.borderBottomRightRadius),this.borderBottomLeftRadius=lo(Ae,rc,be.borderBottomLeftRadius),this.borderTopStyle=lo(Ae,gA,be.borderTopStyle),this.borderRightStyle=lo(Ae,od,be.borderRightStyle),this.borderBottomStyle=lo(Ae,ad,be.borderBottomStyle),this.borderLeftStyle=lo(Ae,vA,be.borderLeftStyle),this.borderTopWidth=lo(Ae,xf,be.borderTopWidth),this.borderRightWidth=lo(Ae,Id,be.borderRightWidth),this.borderBottomWidth=lo(Ae,kh,be.borderBottomWidth),this.borderLeftWidth=lo(Ae,Zp,be.borderLeftWidth),this.boxShadow=lo(Ae,na,be.boxShadow),this.color=lo(Ae,ic,be.color),this.direction=lo(Ae,yA,be.direction),this.display=lo(Ae,up,be.display),this.float=lo(Ae,Vd,be.cssFloat),this.fontFamily=lo(Ae,jo,be.fontFamily),this.fontSize=lo(Ae,Po,be.fontSize),this.fontStyle=lo(Ae,ta,be.fontStyle),this.fontVariant=lo(Ae,aa,be.fontVariant),this.fontWeight=lo(Ae,Ia,be.fontWeight),this.letterSpacing=lo(Ae,cp,be.letterSpacing),this.lineBreak=lo(Ae,Gp,be.lineBreak),this.lineHeight=lo(Ae,oc,be.lineHeight),this.listStyleImage=lo(Ae,ac,be.listStyleImage),this.listStylePosition=lo(Ae,Du,be.listStylePosition),this.listStyleType=lo(Ae,sd,be.listStyleType),this.marginTop=lo(Ae,Bf,be.marginTop),this.marginRight=lo(Ae,Ap,be.marginRight),this.marginBottom=lo(Ae,dp,be.marginBottom),this.marginLeft=lo(Ae,fp,be.marginLeft),this.opacity=lo(Ae,Xi,be.opacity);var Ft=lo(Ae,nh,be.overflow);this.overflowX=Ft[0],this.overflowY=Ft[Ft.length>1?1:0],this.overflowWrap=lo(Ae,wA,be.overflowWrap),this.paddingTop=lo(Ae,hp,be.paddingTop),this.paddingRight=lo(Ae,wt,be.paddingRight),this.paddingBottom=lo(Ae,yt,be.paddingBottom),this.paddingLeft=lo(Ae,Xt,be.paddingLeft),this.paintOrder=lo(Ae,Co,be.paintOrder),this.position=lo(Ae,Sn,be.position),this.textAlign=lo(Ae,cn,be.textAlign),this.textDecorationColor=lo(Ae,ho,(ye=be.textDecorationColor)!==null&&ye!==void 0?ye:be.color),this.textDecorationLine=lo(Ae,Bo,(nt=be.textDecorationLine)!==null&&nt!==void 0?nt:be.textDecoration),this.textShadow=lo(Ae,kn,be.textShadow),this.textTransform=lo(Ae,ar,be.textTransform),this.transform=lo(Ae,er,be.transform),this.transformOrigin=lo(Ae,Or,be.transformOrigin),this.visibility=lo(Ae,_r,be.visibility),this.webkitTextStrokeColor=lo(Ae,Xa,be.webkitTextStrokeColor),this.webkitTextStrokeWidth=lo(Ae,Ha,be.webkitTextStrokeWidth),this.wordBreak=lo(Ae,Ci,be.wordBreak),this.zIndex=lo(Ae,qi,be.zIndex)}return ge.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},ge.prototype.isTransparent=function(){return Ws(this.backgroundColor)},ge.prototype.isTransformed=function(){return this.transform!==null},ge.prototype.isPositioned=function(){return this.position!==0},ge.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},ge.prototype.isFloating=function(){return this.float!==0},ge.prototype.isInlineLevel=function(){return zo(this.display,4)||zo(this.display,33554432)||zo(this.display,268435456)||zo(this.display,536870912)||zo(this.display,67108864)||zo(this.display,134217728)},ge}(),Fl=function(){function ge(Ae,be){this.content=lo(Ae,Qo,be.content),this.quotes=lo(Ae,To,be.quotes)}return ge}(),ll=function(){function ge(Ae,be){this.counterIncrement=lo(Ae,Ho,be.counterIncrement),this.counterReset=lo(Ae,vo,be.counterReset)}return ge}(),lo=function(ge,Ae,be){var ye=new ha,nt=be!==null&&typeof be!="undefined"?be.toString():Ae.initialValue;ye.write(nt);var Ft=new wa(ye.read());switch(Ae.type){case 2:var Yt=Ft.parseComponentValue();return Ae.parse(ge,$a(Yt)?Yt.value:Ae.initialValue);case 0:return Ae.parse(ge,Ft.parseComponentValue());case 1:return Ae.parse(ge,Ft.parseComponentValues());case 4:return Ft.parseComponentValue();case 3:switch(Ae.format){case"angle":return Sl.parse(ge,Ft.parseComponentValue());case"color":return _u.parse(ge,Ft.parseComponentValue());case"image":return $c.parse(ge,Ft.parseComponentValue());case"length":var Bn=Ft.parseComponentValue();return Hl(Bn)?Bn:pl;case"length-percentage":var xn=Ft.parseComponentValue();return ks(xn)?xn:pl;case"time":return so.parse(ge,Ft.parseComponentValue())}break}},ql="data-html2canvas-debug",ls=function(ge){var Ae=ge.getAttribute(ql);switch(Ae){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},rs=function(ge,Ae){var be=ls(ge);return be===1||Ae===be},al=function(){function ge(Ae,be){if(this.context=Ae,this.textNodes=[],this.elements=[],this.flags=0,rs(be,3))debugger;this.styles=new Ml(Ae,window.getComputedStyle(be,null)),Rh(be)&&(this.styles.animationDuration.some(function(ye){return ye>0})&&(be.style.animationDuration="0s"),this.styles.transform!==null&&(be.style.transform="none")),this.bounds=Le(this.context,be),rs(be,4)&&(this.flags|=16)}return ge}(),mu="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",ra="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ba=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Wo=0;Wo<ra.length;Wo++)ba[ra.charCodeAt(Wo)]=Wo;for(var Oo=function(ge){var Ae=ge.length*.75,be=ge.length,ye,nt=0,Ft,Yt,Bn,xn;ge[ge.length-1]==="="&&(Ae--,ge[ge.length-2]==="="&&Ae--);var xr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Ae):new Array(Ae),Dr=Array.isArray(xr)?xr:new Uint8Array(xr);for(ye=0;ye<be;ye+=4)Ft=ba[ge.charCodeAt(ye)],Yt=ba[ge.charCodeAt(ye+1)],Bn=ba[ge.charCodeAt(ye+2)],xn=ba[ge.charCodeAt(ye+3)],Dr[nt++]=Ft<<2|Yt>>4,Dr[nt++]=(Yt&15)<<4|Bn>>2,Dr[nt++]=(Bn&3)<<6|xn&63;return xr},hs=function(ge){for(var Ae=ge.length,be=[],ye=0;ye<Ae;ye+=2)be.push(ge[ye+1]<<8|ge[ye]);return be},Ss=function(ge){for(var Ae=ge.length,be=[],ye=0;ye<Ae;ye+=4)be.push(ge[ye+3]<<24|ge[ye+2]<<16|ge[ye+1]<<8|ge[ye]);return be},Vs=5,zs=11,ul=2,vu=zs-Vs,sa=65536>>Vs,ea=1<<Vs,xs=ea-1,qs=1024>>Vs,Xs=sa+qs,yu=Xs,Ul=32,sc=yu+Ul,Il=65536>>zs,vs=1<<vu,cl=vs-1,Al=function(ge,Ae,be){return ge.slice?ge.slice(Ae,be):new Uint16Array(Array.prototype.slice.call(ge,Ae,be))},gu=function(ge,Ae,be){return ge.slice?ge.slice(Ae,be):new Uint32Array(Array.prototype.slice.call(ge,Ae,be))},Rl=function(ge,Ae){var be=Oo(ge),ye=Array.isArray(be)?Ss(be):new Uint32Array(be),nt=Array.isArray(be)?hs(be):new Uint16Array(be),Ft=24,Yt=Al(nt,Ft/2,ye[4]/2),Bn=ye[5]===2?Al(nt,(Ft+ye[4])/2):gu(ye,Math.ceil((Ft+ye[4])/4));return new ys(ye[0],ye[1],ye[2],ye[3],Yt,Bn)},ys=function(){function ge(Ae,be,ye,nt,Ft,Yt){this.initialValue=Ae,this.errorValue=be,this.highStart=ye,this.highValueIndex=nt,this.index=Ft,this.data=Yt}return ge.prototype.get=function(Ae){var be;if(Ae>=0){if(Ae<55296||Ae>56319&&Ae<=65535)return be=this.index[Ae>>Vs],be=(be<<ul)+(Ae&xs),this.data[be];if(Ae<=65535)return be=this.index[sa+(Ae-55296>>Vs)],be=(be<<ul)+(Ae&xs),this.data[be];if(Ae<this.highStart)return be=sc-Il+(Ae>>zs),be=this.index[be],be+=Ae>>Vs&cl,be=this.index[be],be=(be<<ul)+(Ae&xs),this.data[be];if(Ae<=1114111)return this.data[this.highValueIndex]}return this.errorValue},ge}(),bl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fs=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Cl=0;Cl<bl.length;Cl++)Fs[bl.charCodeAt(Cl)]=Cl;var eu=1,Pu=2,Tu=3,Wc=4,dl=5,_d=7,Uu=8,Gu=9,Ru=10,Vu=11,fl=12,mc=13,bA=14,Dc=15,Gc=function(ge){for(var Ae=[],be=0,ye=ge.length;be<ye;){var nt=ge.charCodeAt(be++);if(nt>=55296&&nt<=56319&&be<ye){var Ft=ge.charCodeAt(be++);(Ft&64512)===56320?Ae.push(((nt&1023)<<10)+(Ft&1023)+65536):(Ae.push(nt),be--)}else Ae.push(nt)}return Ae},Jd=function(){for(var ge=[],Ae=0;Ae<arguments.length;Ae++)ge[Ae]=arguments[Ae];if(String.fromCodePoint)return String.fromCodePoint.apply(String,ge);var be=ge.length;if(!be)return"";for(var ye=[],nt=-1,Ft="";++nt<be;){var Yt=ge[nt];Yt<=65535?ye.push(Yt):(Yt-=65536,ye.push((Yt>>10)+55296,Yt%1024+56320)),(nt+1===be||ye.length>16384)&&(Ft+=String.fromCharCode.apply(String,ye),ye.length=0)}return Ft},qd=Rl(mu),Is="\xD7",ld="\xF7",Ef=function(ge){return qd.get(ge)},za=function(ge,Ae,be){var ye=be-2,nt=Ae[ye],Ft=Ae[be-1],Yt=Ae[be];if(Ft===Pu&&Yt===Tu)return Is;if(Ft===Pu||Ft===Tu||Ft===Wc||Yt===Pu||Yt===Tu||Yt===Wc)return ld;if(Ft===Uu&&[Uu,Gu,Vu,fl].indexOf(Yt)!==-1||(Ft===Vu||Ft===Gu)&&(Yt===Gu||Yt===Ru)||(Ft===fl||Ft===Ru)&&Yt===Ru||Yt===mc||Yt===dl||Yt===_d||Ft===eu)return Is;if(Ft===mc&&Yt===bA){for(;nt===dl;)nt=Ae[--ye];if(nt===bA)return Is}if(Ft===Dc&&Yt===Dc){for(var Bn=0;nt===Dc;)Bn++,nt=Ae[--ye];if(Bn%2===0)return Is}return ld},ps=function(ge){var Ae=Gc(ge),be=Ae.length,ye=0,nt=0,Ft=Ae.map(Ef);return{next:function(){if(ye>=be)return{done:!0,value:null};for(var Yt=Is;ye<be&&(Yt=za(Ae,Ft,++ye))===Is;);if(Yt!==Is||ye===be){var Bn=Jd.apply(null,Ae.slice(nt,ye));return nt=ye,{value:Bn,done:!1}}return{done:!0,value:null}}}},$l=function(ge){for(var Ae=ps(ge),be=[],ye;!(ye=Ae.next()).done;)ye.value&&be.push(ye.value.slice());return be},cu=function(ge){var Ae=123;if(ge.createRange){var be=ge.createRange();if(be.getBoundingClientRect){var ye=ge.createElement("boundtest");ye.style.height=Ae+"px",ye.style.display="block",ge.body.appendChild(ye),be.selectNode(ye);var nt=be.getBoundingClientRect(),Ft=Math.round(nt.height);if(ge.body.removeChild(ye),Ft===Ae)return!0}}return!1},Bu=function(ge){var Ae=ge.createElement("boundtest");Ae.style.width="50px",Ae.style.display="block",Ae.style.fontSize="12px",Ae.style.letterSpacing="0px",Ae.style.wordSpacing="0px",ge.body.appendChild(Ae);var be=ge.createRange();Ae.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var ye=Ae.firstChild,nt=he(ye.data).map(function(xn){return xe(xn)}),Ft=0,Yt={},Bn=nt.every(function(xn,xr){be.setStart(ye,Ft),be.setEnd(ye,Ft+xn.length);var Dr=be.getBoundingClientRect();Ft+=xn.length;var Zr=Dr.x>Yt.x||Dr.y>Yt.y;return Yt=Dr,xr===0?!0:Zr});return ge.body.removeChild(Ae),Bn},Eu=function(){return typeof new Image().crossOrigin!="undefined"},Xu=function(){return typeof new XMLHttpRequest().responseType=="string"},ju=function(ge){var Ae=new Image,be=ge.createElement("canvas"),ye=be.getContext("2d");if(!ye)return!1;Ae.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{ye.drawImage(Ae,0,0),be.toDataURL()}catch(nt){return!1}return!0},ZA=function(ge){return ge[0]===0&&ge[1]===255&&ge[2]===0&&ge[3]===255},Sf=function(ge){var Ae=ge.createElement("canvas"),be=100;Ae.width=be,Ae.height=be;var ye=Ae.getContext("2d");if(!ye)return Promise.reject(!1);ye.fillStyle="rgb(0, 255, 0)",ye.fillRect(0,0,be,be);var nt=new Image,Ft=Ae.toDataURL();nt.src=Ft;var Yt=WA(be,be,0,0,nt);return ye.fillStyle="red",ye.fillRect(0,0,be,be),GA(Yt).then(function(Bn){ye.drawImage(Bn,0,0);var xn=ye.getImageData(0,0,be,be).data;ye.fillStyle="red",ye.fillRect(0,0,be,be);var xr=ge.createElement("div");return xr.style.backgroundImage="url("+Ft+")",xr.style.height=be+"px",ZA(xn)?GA(WA(be,be,0,0,xr)):Promise.reject(!1)}).then(function(Bn){return ye.drawImage(Bn,0,0),ZA(ye.getImageData(0,0,be,be).data)}).catch(function(){return!1})},WA=function(ge,Ae,be,ye,nt){var Ft="http://www.w3.org/2000/svg",Yt=document.createElementNS(Ft,"svg"),Bn=document.createElementNS(Ft,"foreignObject");return Yt.setAttributeNS(null,"width",ge.toString()),Yt.setAttributeNS(null,"height",Ae.toString()),Bn.setAttributeNS(null,"width","100%"),Bn.setAttributeNS(null,"height","100%"),Bn.setAttributeNS(null,"x",be.toString()),Bn.setAttributeNS(null,"y",ye.toString()),Bn.setAttributeNS(null,"externalResourcesRequired","true"),Yt.appendChild(Bn),Bn.appendChild(nt),Yt},GA=function(ge){return new Promise(function(Ae,be){var ye=new Image;ye.onload=function(){return Ae(ye)},ye.onerror=be,ye.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(ge))})},wu={get SUPPORT_RANGE_BOUNDS(){var ge=cu(document);return Object.defineProperty(wu,"SUPPORT_RANGE_BOUNDS",{value:ge}),ge},get SUPPORT_WORD_BREAKING(){var ge=wu.SUPPORT_RANGE_BOUNDS&&Bu(document);return Object.defineProperty(wu,"SUPPORT_WORD_BREAKING",{value:ge}),ge},get SUPPORT_SVG_DRAWING(){var ge=ju(document);return Object.defineProperty(wu,"SUPPORT_SVG_DRAWING",{value:ge}),ge},get SUPPORT_FOREIGNOBJECT_DRAWING(){var ge=typeof Array.from=="function"&&typeof window.fetch=="function"?Sf(document):Promise.resolve(!1);return Object.defineProperty(wu,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:ge}),ge},get SUPPORT_CORS_IMAGES(){var ge=Eu();return Object.defineProperty(wu,"SUPPORT_CORS_IMAGES",{value:ge}),ge},get SUPPORT_RESPONSE_TYPE(){var ge=Xu();return Object.defineProperty(wu,"SUPPORT_RESPONSE_TYPE",{value:ge}),ge},get SUPPORT_CORS_XHR(){var ge="withCredentials"in new XMLHttpRequest;return Object.defineProperty(wu,"SUPPORT_CORS_XHR",{value:ge}),ge},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var ge=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(wu,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:ge}),ge}},Pc=function(){function ge(Ae,be){this.text=Ae,this.bounds=be}return ge}(),ef=function(ge,Ae,be,ye){var nt=rh(Ae,be),Ft=[],Yt=0;return nt.forEach(function(Bn){if(be.textDecorationLine.length||Bn.trim().length>0)if(wu.SUPPORT_RANGE_BOUNDS){var xn=tf(ye,Yt,Bn.length).getClientRects();if(xn.length>1){var xr=If(Bn),Dr=0;xr.forEach(function(Pi){Ft.push(new Pc(Pi,ze.fromDOMRectList(ge,tf(ye,Dr+Yt,Pi.length).getClientRects()))),Dr+=Pi.length})}else Ft.push(new Pc(Bn,ze.fromDOMRectList(ge,xn)))}else{var Zr=ye.splitText(Bn.length);Ft.push(new Pc(Bn,Ff(ge,ye))),ye=Zr}else wu.SUPPORT_RANGE_BOUNDS||(ye=ye.splitText(Bn.length));Yt+=Bn.length}),Ft},Ff=function(ge,Ae){var be=Ae.ownerDocument;if(be){var ye=be.createElement("html2canvaswrapper");ye.appendChild(Ae.cloneNode(!0));var nt=Ae.parentNode;if(nt){nt.replaceChild(ye,Ae);var Ft=Le(ge,ye);return ye.firstChild&&nt.replaceChild(ye.firstChild,ye),Ft}}return ze.EMPTY},tf=function(ge,Ae,be){var ye=ge.ownerDocument;if(!ye)throw new Error("Node has no owner document");var nt=ye.createRange();return nt.setStart(ge,Ae),nt.setEnd(ge,Ae+be),nt},If=function(ge){if(wu.SUPPORT_NATIVE_TEXT_SEGMENTATION){var Ae=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(Ae.segment(ge)).map(function(be){return be.segment})}return $l(ge)},VA=function(ge,Ae){if(wu.SUPPORT_NATIVE_TEXT_SEGMENTATION){var be=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(be.segment(ge)).map(function(ye){return ye.segment})}return ih(ge,Ae)},rh=function(ge,Ae){return Ae.letterSpacing!==0?If(ge):VA(ge,Ae)},pp=[32,160,4961,65792,65793,4153,4241],ih=function(ge,Ae){for(var be=fr(ge,{lineBreak:Ae.lineBreak,wordBreak:Ae.overflowWrap==="break-word"?"break-word":Ae.wordBreak}),ye=[],nt,Ft=function(){if(nt.value){var Yt=nt.value.slice(),Bn=he(Yt),xn="";Bn.forEach(function(xr){pp.indexOf(xr)===-1?xn+=xe(xr):(xn.length&&ye.push(xn),ye.push(xe(xr)),xn="")}),xn.length&&ye.push(xn)}};!(nt=be.next()).done;)Ft();return ye},nf=function(){function ge(Ae,be,ye){this.text=mp(be.data,ye.textTransform),this.textBounds=ef(Ae,this.text,ye,be)}return ge}(),mp=function(ge,Ae){switch(Ae){case 1:return ge.toLowerCase();case 3:return ge.replace(gp,rf);case 2:return ge.toUpperCase();default:return ge}},gp=/(^|\s|:|-|\(|\))([a-z])/g,rf=function(ge,Ae,be){return ge.length>0?Ae+be.toUpperCase():ge},Lf=function(ge){ae(Ae,ge);function Ae(be,ye){var nt=ge.call(this,be,ye)||this;return nt.src=ye.currentSrc||ye.src,nt.intrinsicWidth=ye.naturalWidth,nt.intrinsicHeight=ye.naturalHeight,nt.context.cache.addImage(nt.src),nt}return Ae}(al),Nd=function(ge){ae(Ae,ge);function Ae(be,ye){var nt=ge.call(this,be,ye)||this;return nt.canvas=ye,nt.intrinsicWidth=ye.width,nt.intrinsicHeight=ye.height,nt}return Ae}(al),_f=function(ge){ae(Ae,ge);function Ae(be,ye){var nt=ge.call(this,be,ye)||this,Ft=new XMLSerializer,Yt=Le(be,ye);return ye.setAttribute("width",Yt.width+"px"),ye.setAttribute("height",Yt.height+"px"),nt.svg="data:image/svg+xml,"+encodeURIComponent(Ft.serializeToString(ye)),nt.intrinsicWidth=ye.width.baseVal.value,nt.intrinsicHeight=ye.height.baseVal.value,nt.context.cache.addImage(nt.svg),nt}return Ae}(al),Od=function(ge){ae(Ae,ge);function Ae(be,ye){var nt=ge.call(this,be,ye)||this;return nt.value=ye.value,nt}return Ae}(al),of=function(ge){ae(Ae,ge);function Ae(be,ye){var nt=ge.call(this,be,ye)||this;return nt.start=ye.start,nt.reversed=typeof ye.reversed=="boolean"&&ye.reversed===!0,nt}return Ae}(al),CA=[{type:15,flags:0,unit:"px",number:3}],oh=[{type:16,flags:0,number:50}],ah=function(ge){return ge.width>ge.height?new ze(ge.left+(ge.width-ge.height)/2,ge.top,ge.height,ge.height):ge.width<ge.height?new ze(ge.left,ge.top+(ge.height-ge.width)/2,ge.width,ge.width):ge},Mh=function(ge){var Ae=ge.type===BA?new Array(ge.value.length+1).join("\u2022"):ge.value;return Ae.length===0?ge.placeholder||"":Ae},ud="checkbox",xA="radio",BA="password",Dd=707406591,cd=function(ge){ae(Ae,ge);function Ae(be,ye){var nt=ge.call(this,be,ye)||this;switch(nt.type=ye.type.toLowerCase(),nt.checked=ye.checked,nt.value=Mh(ye),(nt.type===ud||nt.type===xA)&&(nt.styles.backgroundColor=3739148031,nt.styles.borderTopColor=nt.styles.borderRightColor=nt.styles.borderBottomColor=nt.styles.borderLeftColor=2779096575,nt.styles.borderTopWidth=nt.styles.borderRightWidth=nt.styles.borderBottomWidth=nt.styles.borderLeftWidth=1,nt.styles.borderTopStyle=nt.styles.borderRightStyle=nt.styles.borderBottomStyle=nt.styles.borderLeftStyle=1,nt.styles.backgroundClip=[0],nt.styles.backgroundOrigin=[0],nt.bounds=ah(nt.bounds)),nt.type){case ud:nt.styles.borderTopRightRadius=nt.styles.borderTopLeftRadius=nt.styles.borderBottomRightRadius=nt.styles.borderBottomLeftRadius=CA;break;case xA:nt.styles.borderTopRightRadius=nt.styles.borderTopLeftRadius=nt.styles.borderBottomRightRadius=nt.styles.borderBottomLeftRadius=oh;break}return nt}return Ae}(al),Uh=function(ge){ae(Ae,ge);function Ae(be,ye){var nt=ge.call(this,be,ye)||this,Ft=ye.options[ye.selectedIndex||0];return nt.value=Ft&&Ft.text||"",nt}return Ae}(al),ms=function(ge){ae(Ae,ge);function Ae(be,ye){var nt=ge.call(this,be,ye)||this;return nt.value=ye.value,nt}return Ae}(al),Ls=function(ge){ae(Ae,ge);function Ae(be,ye){var nt=ge.call(this,be,ye)||this;nt.src=ye.src,nt.width=parseInt(ye.width,10)||0,nt.height=parseInt(ye.height,10)||0,nt.backgroundColor=nt.styles.backgroundColor;try{if(ye.contentWindow&&ye.contentWindow.document&&ye.contentWindow.document.documentElement){nt.tree=Ad(be,ye.contentWindow.document.documentElement);var Ft=ye.contentWindow.document.documentElement?Ua(be,getComputedStyle(ye.contentWindow.document.documentElement).backgroundColor):Ms.TRANSPARENT,Yt=ye.contentWindow.document.body?Ua(be,getComputedStyle(ye.contentWindow.document.body).backgroundColor):Ms.TRANSPARENT;nt.backgroundColor=Ws(Ft)?Ws(Yt)?nt.styles.backgroundColor:Yt:Ft}}catch(Bn){}return nt}return Ae}(al),bu=["OL","UL","MENU"],Qu=function(ge,Ae,be,ye){for(var nt=Ae.firstChild,Ft=void 0;nt;nt=Ft)if(Ft=nt.nextSibling,dd(nt)&&nt.data.trim().length>0)be.textNodes.push(new nf(ge,nt,be.styles));else if(YA(nt))if(vp(nt)&&nt.assignedNodes)nt.assignedNodes().forEach(function(Bn){return Qu(ge,Bn,be,ye)});else{var Yt=Hu(ge,nt);Yt.styles.isVisible()&&(XA(nt,Yt,ye)?Yt.flags|=4:MA(Yt.styles)&&(Yt.flags|=2),bu.indexOf(nt.tagName)!==-1&&(Yt.flags|=8),be.elements.push(Yt),nt.slot,nt.shadowRoot?Qu(ge,nt.shadowRoot,Yt,ye):!Nf(nt)&&!Xp(nt)&&!uh(nt)&&Qu(ge,nt,Yt,ye))}},Hu=function(ge,Ae){return af(Ae)?new Lf(ge,Ae):Yp(Ae)?new Nd(ge,Ae):Xp(Ae)?new _f(ge,Ae):Vp(Ae)?new Od(ge,Ae):jh(Ae)?new of(ge,Ae):mm(Ae)?new cd(ge,Ae):uh(Ae)?new Uh(ge,Ae):Nf(Ae)?new ms(ge,Ae):EA(Ae)?new Ls(ge,Ae):new al(ge,Ae)},Ad=function(ge,Ae){var be=Hu(ge,Ae);return be.flags|=4,Qu(ge,Ae,be,be),be},XA=function(ge,Ae,be){return Ae.styles.isPositionedWithZIndex()||Ae.styles.opacity<1||Ae.styles.isTransformed()||Zl(ge)&&be.styles.isTransparent()},MA=function(ge){return ge.isPositioned()||ge.isFloating()},dd=function(ge){return ge.nodeType===Node.TEXT_NODE},YA=function(ge){return ge.nodeType===Node.ELEMENT_NODE},Rh=function(ge){return YA(ge)&&typeof ge.style!="undefined"&&!fd(ge)},fd=function(ge){return typeof ge.className=="object"},Vp=function(ge){return ge.tagName==="LI"},jh=function(ge){return ge.tagName==="OL"},mm=function(ge){return ge.tagName==="INPUT"},gm=function(ge){return ge.tagName==="HTML"},Xp=function(ge){return ge.tagName==="svg"},Zl=function(ge){return ge.tagName==="BODY"},Yp=function(ge){return ge.tagName==="CANVAS"},Qh=function(ge){return ge.tagName==="VIDEO"},af=function(ge){return ge.tagName==="IMG"},EA=function(ge){return ge.tagName==="IFRAME"},sh=function(ge){return ge.tagName==="STYLE"},lh=function(ge){return ge.tagName==="SCRIPT"},Nf=function(ge){return ge.tagName==="TEXTAREA"},uh=function(ge){return ge.tagName==="SELECT"},vp=function(ge){return ge.tagName==="SLOT"},yp=function(ge){return ge.tagName.indexOf("-")>0},vm=function(){function ge(){this.counters={}}return ge.prototype.getCounterValue=function(Ae){var be=this.counters[Ae];return be&&be.length?be[be.length-1]:1},ge.prototype.getCounterValues=function(Ae){var be=this.counters[Ae];return be||[]},ge.prototype.pop=function(Ae){var be=this;Ae.forEach(function(ye){return be.counters[ye].pop()})},ge.prototype.parse=function(Ae){var be=this,ye=Ae.counterIncrement,nt=Ae.counterReset,Ft=!0;ye!==null&&ye.forEach(function(Bn){var xn=be.counters[Bn.counter];xn&&Bn.increment!==0&&(Ft=!1,xn.length||xn.push(1),xn[Math.max(0,xn.length-1)]+=Bn.increment)});var Yt=[];return Ft&&nt.forEach(function(Bn){var xn=be.counters[Bn.counter];Yt.push(Bn.counter),xn||(xn=be.counters[Bn.counter]=[]),xn.push(Bn.reset)}),Yt},ge}(),wp={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"]},ch={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"]},Jp={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"]},xl={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"]},Pd=function(ge,Ae,be,ye,nt,Ft){return ge<Ae||ge>be?ne(ge,nt,Ft.length>0):ye.integers.reduce(function(Yt,Bn,xn){for(;ge>=Bn;)ge-=Bn,Yt+=ye.values[xn];return Yt},"")+Ft},ym=function(ge,Ae,be,ye){var nt="";do be||ge--,nt=ye(ge)+nt,ge/=Ae;while(ge*Ae>=Ae);return nt},Wl=function(ge,Ae,be,ye,nt){var Ft=be-Ae+1;return(ge<0?"-":"")+(ym(Math.abs(ge),Ft,ye,function(Yt){return xe(Math.floor(Yt%Ft)+Ae)})+nt)},Td=function(ge,Ae,be){be===void 0&&(be=". ");var ye=Ae.length;return ym(Math.abs(ge),ye,!1,function(nt){return Ae[Math.floor(nt%ye)]})+be},JA=1,hd=2,Ll=4,Ah=8,pd=function(ge,Ae,be,ye,nt,Ft){if(ge<-9999||ge>9999)return ne(ge,4,nt.length>0);var Yt=Math.abs(ge),Bn=nt;if(Yt===0)return Ae[0]+Bn;for(var xn=0;Yt>0&&xn<=4;xn++){var xr=Yt%10;xr===0&&zo(Ft,JA)&&Bn!==""?Bn=Ae[xr]+Bn:xr>1||xr===1&&xn===0||xr===1&&xn===1&&zo(Ft,hd)||xr===1&&xn===1&&zo(Ft,Ll)&&ge>100||xr===1&&xn>1&&zo(Ft,Ah)?Bn=Ae[xr]+(xn>0?be[xn-1]:"")+Bn:xr===1&&xn>0&&(Bn=be[xn-1]+Bn),Yt=Math.floor(Yt/10)}return(ge<0?ye:"")+Bn},qp="\u5341\u767E\u5343\u842C",Hh="\u62FE\u4F70\u4EDF\u842C",a="\u30DE\u30A4\u30CA\u30B9",b="\uB9C8\uC774\uB108\uC2A4",ne=function(ge,Ae,be){var ye=be?". ":"",nt=be?"\u3001":"",Ft=be?", ":"",Yt=be?" ":"";switch(Ae){case 0:return"\u2022"+Yt;case 1:return"\u25E6"+Yt;case 2:return"\u25FE"+Yt;case 5:var Bn=Wl(ge,48,57,!0,ye);return Bn.length<4?"0"+Bn:Bn;case 4:return Td(ge,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",nt);case 6:return Pd(ge,1,3999,wp,3,ye).toLowerCase();case 7:return Pd(ge,1,3999,wp,3,ye);case 8:return Wl(ge,945,969,!1,ye);case 9:return Wl(ge,97,122,!1,ye);case 10:return Wl(ge,65,90,!1,ye);case 11:return Wl(ge,1632,1641,!0,ye);case 12:case 49:return Pd(ge,1,9999,ch,3,ye);case 35:return Pd(ge,1,9999,ch,3,ye).toLowerCase();case 13:return Wl(ge,2534,2543,!0,ye);case 14:case 30:return Wl(ge,6112,6121,!0,ye);case 15:return Td(ge,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",nt);case 16:return Td(ge,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",nt);case 17:case 48:return pd(ge,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",qp,"\u8CA0",nt,hd|Ll|Ah);case 47:return pd(ge,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Hh,"\u8CA0",nt,JA|hd|Ll|Ah);case 42:return pd(ge,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",qp,"\u8D1F",nt,hd|Ll|Ah);case 41:return pd(ge,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Hh,"\u8D1F",nt,JA|hd|Ll|Ah);case 26:return pd(ge,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",a,nt,0);case 25:return pd(ge,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",a,nt,JA|hd|Ll);case 31:return pd(ge,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",b,Ft,JA|hd|Ll);case 33:return pd(ge,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",b,Ft,0);case 32:return pd(ge,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",b,Ft,JA|hd|Ll);case 18:return Wl(ge,2406,2415,!0,ye);case 20:return Pd(ge,1,19999,xl,3,ye);case 21:return Wl(ge,2790,2799,!0,ye);case 22:return Wl(ge,2662,2671,!0,ye);case 22:return Pd(ge,1,10999,Jp,3,ye);case 23:return Td(ge,"\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 Td(ge,"\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 Wl(ge,3302,3311,!0,ye);case 28:return Td(ge,"\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",nt);case 29:return Td(ge,"\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",nt);case 34:return Wl(ge,3792,3801,!0,ye);case 37:return Wl(ge,6160,6169,!0,ye);case 38:return Wl(ge,4160,4169,!0,ye);case 39:return Wl(ge,2918,2927,!0,ye);case 40:return Wl(ge,1776,1785,!0,ye);case 43:return Wl(ge,3046,3055,!0,ye);case 44:return Wl(ge,3174,3183,!0,ye);case 45:return Wl(ge,3664,3673,!0,ye);case 46:return Wl(ge,3872,3881,!0,ye);case 3:default:return Wl(ge,48,57,!0,ye)}},te="data-html2canvas-ignore",ue=function(){function ge(Ae,be,ye){if(this.context=Ae,this.options=ye,this.scrolledElements=[],this.referenceElement=be,this.counters=new vm,this.quoteDepth=0,!be.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(be.ownerDocument.documentElement,!1)}return ge.prototype.toIFrame=function(Ae,be){var ye=this,nt=et(Ae,be);if(!nt.contentWindow)return Promise.reject("Unable to find iframe window");var Ft=Ae.defaultView.pageXOffset,Yt=Ae.defaultView.pageYOffset,Bn=nt.contentWindow,xn=Bn.document,xr=_t(nt).then(function(){return dt(ye,void 0,void 0,function(){var Dr,Zr;return Ie(this,function(Pi){switch(Pi.label){case 0:return this.scrolledElements.forEach(xi),Bn&&(Bn.scrollTo(be.left,be.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(Bn.scrollY!==be.top||Bn.scrollX!==be.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(Bn.scrollX-be.left,Bn.scrollY-be.top,0,0))),Dr=this.options.onclone,Zr=this.clonedReferenceElement,typeof Zr=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:xn.fonts&&xn.fonts.ready?[4,xn.fonts.ready]:[3,2];case 1:Pi.sent(),Pi.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,St(xn)]:[3,4];case 3:Pi.sent(),Pi.label=4;case 4:return typeof Dr=="function"?[2,Promise.resolve().then(function(){return Dr(xn,Zr)}).then(function(){return nt})]:[2,nt]}})})});return xn.open(),xn.write(Tr(document.doctype)+"<html></html>"),Er(this.referenceElement.ownerDocument,Ft,Yt),xn.replaceChild(xn.adoptNode(this.documentElement),xn.documentElement),xn.close(),xr},ge.prototype.createElementClone=function(Ae){if(rs(Ae,2))debugger;if(Yp(Ae))return this.createCanvasClone(Ae);if(Qh(Ae))return this.createVideoClone(Ae);if(sh(Ae))return this.createStyleClone(Ae);var be=Ae.cloneNode(!1);return af(be)&&(af(Ae)&&Ae.currentSrc&&Ae.currentSrc!==Ae.src&&(be.src=Ae.currentSrc,be.srcset=""),be.loading==="lazy"&&(be.loading="eager")),yp(be)?this.createCustomElementClone(be):be},ge.prototype.createCustomElementClone=function(Ae){var be=document.createElement("html2canvascustomelement");return Hn(Ae.style,be),be},ge.prototype.createStyleClone=function(Ae){try{var be=Ae.sheet;if(be&&be.cssRules){var ye=[].slice.call(be.cssRules,0).reduce(function(Ft,Yt){return Yt&&typeof Yt.cssText=="string"?Ft+Yt.cssText:Ft},""),nt=Ae.cloneNode(!1);return nt.textContent=ye,nt}}catch(Ft){if(this.context.logger.error("Unable to access cssRules property",Ft),Ft.name!=="SecurityError")throw Ft}return Ae.cloneNode(!1)},ge.prototype.createCanvasClone=function(Ae){var be;if(this.options.inlineImages&&Ae.ownerDocument){var ye=Ae.ownerDocument.createElement("img");try{return ye.src=Ae.toDataURL(),ye}catch(xr){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",Ae)}}var nt=Ae.cloneNode(!1);try{nt.width=Ae.width,nt.height=Ae.height;var Ft=Ae.getContext("2d"),Yt=nt.getContext("2d");if(Yt)if(!this.options.allowTaint&&Ft)Yt.putImageData(Ft.getImageData(0,0,Ae.width,Ae.height),0,0);else{var Bn=(be=Ae.getContext("webgl2"))!==null&&be!==void 0?be:Ae.getContext("webgl");if(Bn){var xn=Bn.getContextAttributes();(xn==null?void 0:xn.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",Ae)}Yt.drawImage(Ae,0,0)}return nt}catch(xr){this.context.logger.info("Unable to clone canvas as it is tainted",Ae)}return nt},ge.prototype.createVideoClone=function(Ae){var be=Ae.ownerDocument.createElement("canvas");be.width=Ae.offsetWidth,be.height=Ae.offsetHeight;var ye=be.getContext("2d");try{return ye&&(ye.drawImage(Ae,0,0,be.width,be.height),this.options.allowTaint||ye.getImageData(0,0,be.width,be.height)),be}catch(Ft){this.context.logger.info("Unable to clone video as it is tainted",Ae)}var nt=Ae.ownerDocument.createElement("canvas");return nt.width=Ae.offsetWidth,nt.height=Ae.offsetHeight,nt},ge.prototype.appendChildNode=function(Ae,be,ye){(!YA(be)||!lh(be)&&!be.hasAttribute(te)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(be)))&&(!this.options.copyStyles||!YA(be)||!sh(be))&&Ae.appendChild(this.cloneNode(be,ye))},ge.prototype.cloneChildNodes=function(Ae,be,ye){for(var nt=this,Ft=Ae.shadowRoot?Ae.shadowRoot.firstChild:Ae.firstChild;Ft;Ft=Ft.nextSibling)if(YA(Ft)&&vp(Ft)&&typeof Ft.assignedNodes=="function"){var Yt=Ft.assignedNodes();Yt.length&&Yt.forEach(function(Bn){return nt.appendChildNode(be,Bn,ye)})}else this.appendChildNode(be,Ft,ye)},ge.prototype.cloneNode=function(Ae,be){if(dd(Ae))return document.createTextNode(Ae.data);if(!Ae.ownerDocument)return Ae.cloneNode(!1);var ye=Ae.ownerDocument.defaultView;if(ye&&YA(Ae)&&(Rh(Ae)||fd(Ae))){var nt=this.createElementClone(Ae);nt.style.transitionProperty="none";var Ft=ye.getComputedStyle(Ae),Yt=ye.getComputedStyle(Ae,":before"),Bn=ye.getComputedStyle(Ae,":after");this.referenceElement===Ae&&Rh(nt)&&(this.clonedReferenceElement=nt),Zl(nt)&&ua(nt);var xn=this.counters.parse(new ll(this.context,Ft)),xr=this.resolvePseudoContent(Ae,nt,Yt,Ne.BEFORE);yp(Ae)&&(be=!0),Qh(Ae)||this.cloneChildNodes(Ae,nt,be),xr&&nt.insertBefore(xr,nt.firstChild);var Dr=this.resolvePseudoContent(Ae,nt,Bn,Ne.AFTER);return Dr&&nt.appendChild(Dr),this.counters.pop(xn),(Ft&&(this.options.copyStyles||fd(Ae))&&!EA(Ae)||be)&&Hn(Ft,nt),(Ae.scrollTop!==0||Ae.scrollLeft!==0)&&this.scrolledElements.push([nt,Ae.scrollLeft,Ae.scrollTop]),(Nf(Ae)||uh(Ae))&&(Nf(nt)||uh(nt))&&(nt.value=Ae.value),nt}return Ae.cloneNode(!1)},ge.prototype.resolvePseudoContent=function(Ae,be,ye,nt){var Ft=this;if(ye){var Yt=ye.content,Bn=be.ownerDocument;if(!(!Bn||!Yt||Yt==="none"||Yt==="-moz-alt-content"||ye.display==="none")){this.counters.parse(new ll(this.context,ye));var xn=new Fl(this.context,ye),xr=Bn.createElement("html2canvaspseudoelement");Hn(ye,xr),xn.content.forEach(function(Zr){if(Zr.type===0)xr.appendChild(Bn.createTextNode(Zr.value));else if(Zr.type===22){var Pi=Bn.createElement("img");Pi.src=Zr.value,Pi.style.opacity="1",xr.appendChild(Pi)}else if(Zr.type===18){if(Zr.name==="attr"){var fa=Zr.values.filter($a);fa.length&&xr.appendChild(Bn.createTextNode(Ae.getAttribute(fa[0].value)||""))}else if(Zr.name==="counter"){var po=Zr.values.filter(Hi),$o=po[0],As=po[1];if($o&&$a($o)){var ya=Ft.counters.getCounterValue($o.value),ga=As&&$a(As)?sd.parse(Ft.context,As.value):3;xr.appendChild(Bn.createTextNode(ne(ya,ga,!1)))}}else if(Zr.name==="counters"){var qa=Zr.values.filter(Hi),$o=qa[0],bs=qa[1],As=qa[2];if($o&&$a($o)){var Za=Ft.counters.getCounterValues($o.value),ia=As&&$a(As)?sd.parse(Ft.context,As.value):3,Ys=bs&&bs.type===0?bs.value:"",Os=Za.map(function(IA){return ne(IA,ia,!1)}).join(Ys);xr.appendChild(Bn.createTextNode(Os))}}}else if(Zr.type===20)switch(Zr.value){case"open-quote":xr.appendChild(Bn.createTextNode(Zo(xn.quotes,Ft.quoteDepth++,!0)));break;case"close-quote":xr.appendChild(Bn.createTextNode(Zo(xn.quotes,--Ft.quoteDepth,!1)));break;default:xr.appendChild(Bn.createTextNode(Zr.value))}}),xr.className=Fo+" "+Ko;var Dr=nt===Ne.BEFORE?" "+Fo:" "+Ko;return fd(be)?be.className.baseValue+=Dr:be.className+=Dr,xr}}},ge.destroy=function(Ae){return Ae.parentNode?(Ae.parentNode.removeChild(Ae),!0):!1},ge}(),Ne;(function(ge){ge[ge.BEFORE=0]="BEFORE",ge[ge.AFTER=1]="AFTER"})(Ne||(Ne={}));var et=function(ge,Ae){var be=ge.createElement("iframe");return be.className="html2canvas-container",be.style.visibility="hidden",be.style.position="fixed",be.style.left="-10000px",be.style.top="0px",be.style.border="0",be.width=Ae.width.toString(),be.height=Ae.height.toString(),be.scrolling="no",be.setAttribute(te,"true"),ge.body.appendChild(be),be},vt=function(ge){return new Promise(function(Ae){if(ge.complete){Ae();return}if(!ge.src){Ae();return}ge.onload=Ae,ge.onerror=Ae})},St=function(ge){return Promise.all([].slice.call(ge.images,0).map(vt))},_t=function(ge){return new Promise(function(Ae,be){var ye=ge.contentWindow;if(!ye)return be("No window assigned for iframe");var nt=ye.document;ye.onload=ge.onload=function(){ye.onload=ge.onload=null;var Ft=setInterval(function(){nt.body.childNodes.length>0&&nt.readyState==="complete"&&(clearInterval(Ft),Ae(ge))},50)}})},Ln=["all","d","content"],Hn=function(ge,Ae){for(var be=ge.length-1;be>=0;be--){var ye=ge.item(be);Ln.indexOf(ye)===-1&&Ae.style.setProperty(ye,ge.getPropertyValue(ye))}return Ae},Tr=function(ge){var Ae="";return ge&&(Ae+="<!DOCTYPE ",ge.name&&(Ae+=ge.name),ge.internalSubset&&(Ae+=ge.internalSubset),ge.publicId&&(Ae+='"'+ge.publicId+'"'),ge.systemId&&(Ae+='"'+ge.systemId+'"'),Ae+=">"),Ae},Er=function(ge,Ae,be){ge&&ge.defaultView&&(Ae!==ge.defaultView.pageXOffset||be!==ge.defaultView.pageYOffset)&&ge.defaultView.scrollTo(Ae,be)},xi=function(ge){var Ae=ge[0],be=ge[1],ye=ge[2];Ae.scrollLeft=be,Ae.scrollTop=ye},Ki=":before",uo=":after",Fo="___html2canvas___pseudoelement_before",Ko="___html2canvas___pseudoelement_after",Io=`{
content: "" !important;
display: none !important;
}`,ua=function(ge){Da(ge,"."+Fo+Ki+Io+`
.`+Ko+uo+Io)},Da=function(ge,Ae){var be=ge.ownerDocument;if(be){var ye=be.createElement("style");ye.textContent=Ae,ge.appendChild(ye)}},Ca=function(){function ge(){}return ge.getOrigin=function(Ae){var be=ge._link;return be?(be.href=Ae,be.href=be.href,be.protocol+be.hostname+be.port):"about:blank"},ge.isSameOrigin=function(Ae){return ge.getOrigin(Ae)===ge._origin},ge.setContext=function(Ae){ge._link=Ae.document.createElement("a"),ge._origin=ge.getOrigin(Ae.location.href)},ge._origin="about:blank",ge}(),Ra=function(){function ge(Ae,be){this.context=Ae,this._options=be,this._cache={}}return ge.prototype.addImage=function(Ae){var be=Promise.resolve();return this.has(Ae)||(vc(Ae)||gc(Ae))&&(this._cache[Ae]=this.loadImage(Ae)).catch(function(){}),be},ge.prototype.match=function(Ae){return this._cache[Ae]},ge.prototype.loadImage=function(Ae){return dt(this,void 0,void 0,function(){var be,ye,nt,Ft,Yt=this;return Ie(this,function(Bn){switch(Bn.label){case 0:return be=Ca.isSameOrigin(Ae),ye=!Yu(Ae)&&this._options.useCORS===!0&&wu.SUPPORT_CORS_IMAGES&&!be,nt=!Yu(Ae)&&!be&&!vc(Ae)&&typeof this._options.proxy=="string"&&wu.SUPPORT_CORS_XHR&&!ye,!be&&this._options.allowTaint===!1&&!Yu(Ae)&&!vc(Ae)&&!nt&&!ye?[2]:(Ft=Ae,nt?[4,this.proxy(Ft)]:[3,2]);case 1:Ft=Bn.sent(),Bn.label=2;case 2:return this.context.logger.debug("Added image "+Ae.substring(0,256)),[4,new Promise(function(xn,xr){var Dr=new Image;Dr.onload=function(){return xn(Dr)},Dr.onerror=xr,(ku(Ft)||ye)&&(Dr.crossOrigin="anonymous"),Dr.src=Ft,Dr.complete===!0&&setTimeout(function(){return xn(Dr)},500),Yt._options.imageTimeout>0&&setTimeout(function(){return xr("Timed out ("+Yt._options.imageTimeout+"ms) loading image")},Yt._options.imageTimeout)})];case 3:return[2,Bn.sent()]}})})},ge.prototype.has=function(Ae){return typeof this._cache[Ae]!="undefined"},ge.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},ge.prototype.proxy=function(Ae){var be=this,ye=this._options.proxy;if(!ye)throw new Error("No proxy defined");var nt=Ae.substring(0,256);return new Promise(function(Ft,Yt){var Bn=wu.SUPPORT_RESPONSE_TYPE?"blob":"text",xn=new XMLHttpRequest;xn.onload=function(){if(xn.status===200)if(Bn==="text")Ft(xn.response);else{var Zr=new FileReader;Zr.addEventListener("load",function(){return Ft(Zr.result)},!1),Zr.addEventListener("error",function(Pi){return Yt(Pi)},!1),Zr.readAsDataURL(xn.response)}else Yt("Failed to proxy resource "+nt+" with status code "+xn.status)},xn.onerror=Yt;var xr=ye.indexOf("?")>-1?"&":"?";if(xn.open("GET",""+ye+xr+"url="+encodeURIComponent(Ae)+"&responseType="+Bn),Bn!=="text"&&xn instanceof XMLHttpRequest&&(xn.responseType=Bn),be._options.imageTimeout){var Dr=be._options.imageTimeout;xn.timeout=Dr,xn.ontimeout=function(){return Yt("Timed out ("+Dr+"ms) proxying "+nt)}}xn.send()})},ge}(),_l=/^data:image\/svg\+xml/i,zu=/^data:image\/.*;base64,/i,tu=/^data:image\/.*/i,gc=function(ge){return wu.SUPPORT_SVG_DRAWING||!lc(ge)},Yu=function(ge){return tu.test(ge)},ku=function(ge){return zu.test(ge)},vc=function(ge){return ge.substr(0,4)==="blob"},lc=function(ge){return ge.substr(-3).toLowerCase()==="svg"||_l.test(ge)},Eo=function(){function ge(Ae,be){this.type=0,this.x=Ae,this.y=be}return ge.prototype.add=function(Ae,be){return new ge(this.x+Ae,this.y+be)},ge}(),Gl=function(ge,Ae,be){return new Eo(ge.x+(Ae.x-ge.x)*be,ge.y+(Ae.y-ge.y)*be)},nu=function(){function ge(Ae,be,ye,nt){this.type=1,this.start=Ae,this.startControl=be,this.endControl=ye,this.end=nt}return ge.prototype.subdivide=function(Ae,be){var ye=Gl(this.start,this.startControl,Ae),nt=Gl(this.startControl,this.endControl,Ae),Ft=Gl(this.endControl,this.end,Ae),Yt=Gl(ye,nt,Ae),Bn=Gl(nt,Ft,Ae),xn=Gl(Yt,Bn,Ae);return be?new ge(this.start,ye,Yt,xn):new ge(xn,Bn,Ft,this.end)},ge.prototype.add=function(Ae,be){return new ge(this.start.add(Ae,be),this.startControl.add(Ae,be),this.endControl.add(Ae,be),this.end.add(Ae,be))},ge.prototype.reverse=function(){return new ge(this.end,this.endControl,this.startControl,this.start)},ge}(),ru=function(ge){return ge.type===1},Of=function(){function ge(Ae){var be=Ae.styles,ye=Ae.bounds,nt=tc(be.borderTopLeftRadius,ye.width,ye.height),Ft=nt[0],Yt=nt[1],Bn=tc(be.borderTopRightRadius,ye.width,ye.height),xn=Bn[0],xr=Bn[1],Dr=tc(be.borderBottomRightRadius,ye.width,ye.height),Zr=Dr[0],Pi=Dr[1],fa=tc(be.borderBottomLeftRadius,ye.width,ye.height),po=fa[0],$o=fa[1],As=[];As.push((Ft+xn)/ye.width),As.push((po+Zr)/ye.width),As.push((Yt+$o)/ye.height),As.push((xr+Pi)/ye.height);var ya=Math.max.apply(Math,As);ya>1&&(Ft/=ya,Yt/=ya,xn/=ya,xr/=ya,Zr/=ya,Pi/=ya,po/=ya,$o/=ya);var ga=ye.width-xn,qa=ye.height-Pi,bs=ye.width-Zr,Za=ye.height-$o,ia=be.borderTopWidth,Ys=be.borderRightWidth,Os=be.borderBottomWidth,es=be.borderLeftWidth,Uo=ss(be.paddingTop,Ae.bounds.width),IA=ss(be.paddingRight,Ae.bounds.width),RA=ss(be.paddingBottom,Ae.bounds.width),Vl=ss(be.paddingLeft,Ae.bounds.width);this.topLeftBorderDoubleOuterBox=Ft>0||Yt>0?Bs(ye.left+es/3,ye.top+ia/3,Ft-es/3,Yt-ia/3,Ks.TOP_LEFT):new Eo(ye.left+es/3,ye.top+ia/3),this.topRightBorderDoubleOuterBox=Ft>0||Yt>0?Bs(ye.left+ga,ye.top+ia/3,xn-Ys/3,xr-ia/3,Ks.TOP_RIGHT):new Eo(ye.left+ye.width-Ys/3,ye.top+ia/3),this.bottomRightBorderDoubleOuterBox=Zr>0||Pi>0?Bs(ye.left+bs,ye.top+qa,Zr-Ys/3,Pi-Os/3,Ks.BOTTOM_RIGHT):new Eo(ye.left+ye.width-Ys/3,ye.top+ye.height-Os/3),this.bottomLeftBorderDoubleOuterBox=po>0||$o>0?Bs(ye.left+es/3,ye.top+Za,po-es/3,$o-Os/3,Ks.BOTTOM_LEFT):new Eo(ye.left+es/3,ye.top+ye.height-Os/3),this.topLeftBorderDoubleInnerBox=Ft>0||Yt>0?Bs(ye.left+es*2/3,ye.top+ia*2/3,Ft-es*2/3,Yt-ia*2/3,Ks.TOP_LEFT):new Eo(ye.left+es*2/3,ye.top+ia*2/3),this.topRightBorderDoubleInnerBox=Ft>0||Yt>0?Bs(ye.left+ga,ye.top+ia*2/3,xn-Ys*2/3,xr-ia*2/3,Ks.TOP_RIGHT):new Eo(ye.left+ye.width-Ys*2/3,ye.top+ia*2/3),this.bottomRightBorderDoubleInnerBox=Zr>0||Pi>0?Bs(ye.left+bs,ye.top+qa,Zr-Ys*2/3,Pi-Os*2/3,Ks.BOTTOM_RIGHT):new Eo(ye.left+ye.width-Ys*2/3,ye.top+ye.height-Os*2/3),this.bottomLeftBorderDoubleInnerBox=po>0||$o>0?Bs(ye.left+es*2/3,ye.top+Za,po-es*2/3,$o-Os*2/3,Ks.BOTTOM_LEFT):new Eo(ye.left+es*2/3,ye.top+ye.height-Os*2/3),this.topLeftBorderStroke=Ft>0||Yt>0?Bs(ye.left+es/2,ye.top+ia/2,Ft-es/2,Yt-ia/2,Ks.TOP_LEFT):new Eo(ye.left+es/2,ye.top+ia/2),this.topRightBorderStroke=Ft>0||Yt>0?Bs(ye.left+ga,ye.top+ia/2,xn-Ys/2,xr-ia/2,Ks.TOP_RIGHT):new Eo(ye.left+ye.width-Ys/2,ye.top+ia/2),this.bottomRightBorderStroke=Zr>0||Pi>0?Bs(ye.left+bs,ye.top+qa,Zr-Ys/2,Pi-Os/2,Ks.BOTTOM_RIGHT):new Eo(ye.left+ye.width-Ys/2,ye.top+ye.height-Os/2),this.bottomLeftBorderStroke=po>0||$o>0?Bs(ye.left+es/2,ye.top+Za,po-es/2,$o-Os/2,Ks.BOTTOM_LEFT):new Eo(ye.left+es/2,ye.top+ye.height-Os/2),this.topLeftBorderBox=Ft>0||Yt>0?Bs(ye.left,ye.top,Ft,Yt,Ks.TOP_LEFT):new Eo(ye.left,ye.top),this.topRightBorderBox=xn>0||xr>0?Bs(ye.left+ga,ye.top,xn,xr,Ks.TOP_RIGHT):new Eo(ye.left+ye.width,ye.top),this.bottomRightBorderBox=Zr>0||Pi>0?Bs(ye.left+bs,ye.top+qa,Zr,Pi,Ks.BOTTOM_RIGHT):new Eo(ye.left+ye.width,ye.top+ye.height),this.bottomLeftBorderBox=po>0||$o>0?Bs(ye.left,ye.top+Za,po,$o,Ks.BOTTOM_LEFT):new Eo(ye.left,ye.top+ye.height),this.topLeftPaddingBox=Ft>0||Yt>0?Bs(ye.left+es,ye.top+ia,Math.max(0,Ft-es),Math.max(0,Yt-ia),Ks.TOP_LEFT):new Eo(ye.left+es,ye.top+ia),this.topRightPaddingBox=xn>0||xr>0?Bs(ye.left+Math.min(ga,ye.width-Ys),ye.top+ia,ga>ye.width+Ys?0:Math.max(0,xn-Ys),Math.max(0,xr-ia),Ks.TOP_RIGHT):new Eo(ye.left+ye.width-Ys,ye.top+ia),this.bottomRightPaddingBox=Zr>0||Pi>0?Bs(ye.left+Math.min(bs,ye.width-es),ye.top+Math.min(qa,ye.height-Os),Math.max(0,Zr-Ys),Math.max(0,Pi-Os),Ks.BOTTOM_RIGHT):new Eo(ye.left+ye.width-Ys,ye.top+ye.height-Os),this.bottomLeftPaddingBox=po>0||$o>0?Bs(ye.left+es,ye.top+Math.min(Za,ye.height-Os),Math.max(0,po-es),Math.max(0,$o-Os),Ks.BOTTOM_LEFT):new Eo(ye.left+es,ye.top+ye.height-Os),this.topLeftContentBox=Ft>0||Yt>0?Bs(ye.left+es+Vl,ye.top+ia+Uo,Math.max(0,Ft-(es+Vl)),Math.max(0,Yt-(ia+Uo)),Ks.TOP_LEFT):new Eo(ye.left+es+Vl,ye.top+ia+Uo),this.topRightContentBox=xn>0||xr>0?Bs(ye.left+Math.min(ga,ye.width+es+Vl),ye.top+ia+Uo,ga>ye.width+es+Vl?0:xn-es+Vl,xr-(ia+Uo),Ks.TOP_RIGHT):new Eo(ye.left+ye.width-(Ys+IA),ye.top+ia+Uo),this.bottomRightContentBox=Zr>0||Pi>0?Bs(ye.left+Math.min(bs,ye.width-(es+Vl)),ye.top+Math.min(qa,ye.height+ia+Uo),Math.max(0,Zr-(Ys+IA)),Pi-(Os+RA),Ks.BOTTOM_RIGHT):new Eo(ye.left+ye.width-(Ys+IA),ye.top+ye.height-(Os+RA)),this.bottomLeftContentBox=po>0||$o>0?Bs(ye.left+es+Vl,ye.top+Za,Math.max(0,po-(es+Vl)),$o-(Os+RA),Ks.BOTTOM_LEFT):new Eo(ye.left+es+Vl,ye.top+ye.height-(Os+RA))}return ge}(),Ks;(function(ge){ge[ge.TOP_LEFT=0]="TOP_LEFT",ge[ge.TOP_RIGHT=1]="TOP_RIGHT",ge[ge.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",ge[ge.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Ks||(Ks={}));var Bs=function(ge,Ae,be,ye,nt){var Ft=4*((Math.sqrt(2)-1)/3),Yt=be*Ft,Bn=ye*Ft,xn=ge+be,xr=Ae+ye;switch(nt){case Ks.TOP_LEFT:return new nu(new Eo(ge,xr),new Eo(ge,xr-Bn),new Eo(xn-Yt,Ae),new Eo(xn,Ae));case Ks.TOP_RIGHT:return new nu(new Eo(ge,Ae),new Eo(ge+Yt,Ae),new Eo(xn,xr-Bn),new Eo(xn,xr));case Ks.BOTTOM_RIGHT:return new nu(new Eo(xn,Ae),new Eo(xn,Ae+Bn),new Eo(ge+Yt,xr),new Eo(ge,xr));case Ks.BOTTOM_LEFT:default:return new nu(new Eo(xn,xr),new Eo(xn-Yt,xr),new Eo(ge,Ae+Bn),new Eo(ge,Ae))}},oA=function(ge){return[ge.topLeftBorderBox,ge.topRightBorderBox,ge.bottomRightBorderBox,ge.bottomLeftBorderBox]},uc=function(ge){return[ge.topLeftContentBox,ge.topRightContentBox,ge.bottomRightContentBox,ge.bottomLeftContentBox]},dh=function(ge){return[ge.topLeftPaddingBox,ge.topRightPaddingBox,ge.bottomRightPaddingBox,ge.bottomLeftPaddingBox]},Pa=function(){function ge(Ae,be,ye){this.offsetX=Ae,this.offsetY=be,this.matrix=ye,this.type=0,this.target=6}return ge}(),SA=function(){function ge(Ae,be){this.path=Ae,this.target=be,this.type=1}return ge}(),hl=function(){function ge(Ae){this.opacity=Ae,this.type=2,this.target=6}return ge}(),cc=function(ge){return ge.type===0},kd=function(ge){return ge.type===1},Df=function(ge){return ge.type===2},Pf=function(ge,Ae){return ge.length===Ae.length?ge.some(function(be,ye){return be===Ae[ye]}):!1},Jm=function(ge,Ae,be,ye,nt){return ge.map(function(Ft,Yt){switch(Yt){case 0:return Ft.add(Ae,be);case 1:return Ft.add(Ae+ye,be);case 2:return Ft.add(Ae+ye,be+nt);case 3:return Ft.add(Ae,be+nt)}return Ft})},bp=function(){function ge(Ae){this.element=Ae,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return ge}(),wm=function(){function ge(Ae,be){if(this.container=Ae,this.parent=be,this.effects=[],this.curves=new Of(this.container),this.container.styles.opacity<1&&this.effects.push(new hl(this.container.styles.opacity)),this.container.styles.transform!==null){var ye=this.container.bounds.left+this.container.styles.transformOrigin[0].number,nt=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Ft=this.container.styles.transform;this.effects.push(new Pa(ye,nt,Ft))}if(this.container.styles.overflowX!==0){var Yt=oA(this.curves),Bn=dh(this.curves);Pf(Yt,Bn)?this.effects.push(new SA(Yt,6)):(this.effects.push(new SA(Yt,2)),this.effects.push(new SA(Bn,4)))}}return ge.prototype.getEffects=function(Ae){for(var be=[2,3].indexOf(this.container.styles.position)===-1,ye=this.parent,nt=this.effects.slice(0);ye;){var Ft=ye.effects.filter(function(xn){return!kd(xn)});if(be||ye.container.styles.position!==0||!ye.parent){if(nt.unshift.apply(nt,Ft),be=[2,3].indexOf(ye.container.styles.position)===-1,ye.container.styles.overflowX!==0){var Yt=oA(ye.curves),Bn=dh(ye.curves);Pf(Yt,Bn)||nt.unshift(new SA(Bn,6))}}else nt.unshift.apply(nt,Ft);ye=ye.parent}return nt.filter(function(xn){return zo(xn.target,Ae)})},ge}(),Cp=function(ge,Ae,be,ye){ge.container.elements.forEach(function(nt){var Ft=zo(nt.flags,4),Yt=zo(nt.flags,2),Bn=new wm(nt,ge);zo(nt.styles.display,2048)&&ye.push(Bn);var xn=zo(nt.flags,8)?[]:ye;if(Ft||Yt){var xr=Ft||nt.styles.isPositioned()?be:Ae,Dr=new bp(Bn);if(nt.styles.isPositioned()||nt.styles.opacity<1||nt.styles.isTransformed()){var Zr=nt.styles.zIndex.order;if(Zr<0){var Pi=0;xr.negativeZIndex.some(function(po,$o){return Zr>po.element.container.styles.zIndex.order?(Pi=$o,!1):Pi>0}),xr.negativeZIndex.splice(Pi,0,Dr)}else if(Zr>0){var fa=0;xr.positiveZIndex.some(function(po,$o){return Zr>=po.element.container.styles.zIndex.order?(fa=$o+1,!1):fa>0}),xr.positiveZIndex.splice(fa,0,Dr)}else xr.zeroOrAutoZIndexOrTransformedOrOpacity.push(Dr)}else nt.styles.isFloating()?xr.nonPositionedFloats.push(Dr):xr.nonPositionedInlineLevel.push(Dr);Cp(Bn,Dr,Ft?Dr:be,xn)}else nt.styles.isInlineLevel()?Ae.inlineLevel.push(Bn):Ae.nonInlineLevel.push(Bn),Cp(Bn,Ae,be,xn);zo(nt.flags,8)&&xp(nt,xn)})},xp=function(ge,Ae){for(var be=ge instanceof of?ge.start:1,ye=ge instanceof of?ge.reversed:!1,nt=0;nt<Ae.length;nt++){var Ft=Ae[nt];Ft.container instanceof Od&&typeof Ft.container.value=="number"&&Ft.container.value!==0&&(be=Ft.container.value),Ft.listValue=ne(be,Ft.container.styles.listStyleType,!0),be+=ye?-1:1}},Vc=function(ge){var Ae=new wm(ge,null),be=new bp(Ae),ye=[];return Cp(Ae,be,be,ye),xp(Ae.container,ye),be},Tc=function(ge,Ae){switch(Ae){case 0:return UA(ge.topLeftBorderBox,ge.topLeftPaddingBox,ge.topRightBorderBox,ge.topRightPaddingBox);case 1:return UA(ge.topRightBorderBox,ge.topRightPaddingBox,ge.bottomRightBorderBox,ge.bottomRightPaddingBox);case 2:return UA(ge.bottomRightBorderBox,ge.bottomRightPaddingBox,ge.bottomLeftBorderBox,ge.bottomLeftPaddingBox);case 3:default:return UA(ge.bottomLeftBorderBox,ge.bottomLeftPaddingBox,ge.topLeftBorderBox,ge.topLeftPaddingBox)}},Xc=function(ge,Ae){switch(Ae){case 0:return UA(ge.topLeftBorderBox,ge.topLeftBorderDoubleOuterBox,ge.topRightBorderBox,ge.topRightBorderDoubleOuterBox);case 1:return UA(ge.topRightBorderBox,ge.topRightBorderDoubleOuterBox,ge.bottomRightBorderBox,ge.bottomRightBorderDoubleOuterBox);case 2:return UA(ge.bottomRightBorderBox,ge.bottomRightBorderDoubleOuterBox,ge.bottomLeftBorderBox,ge.bottomLeftBorderDoubleOuterBox);case 3:default:return UA(ge.bottomLeftBorderBox,ge.bottomLeftBorderDoubleOuterBox,ge.topLeftBorderBox,ge.topLeftBorderDoubleOuterBox)}},Yc=function(ge,Ae){switch(Ae){case 0:return UA(ge.topLeftBorderDoubleInnerBox,ge.topLeftPaddingBox,ge.topRightBorderDoubleInnerBox,ge.topRightPaddingBox);case 1:return UA(ge.topRightBorderDoubleInnerBox,ge.topRightPaddingBox,ge.bottomRightBorderDoubleInnerBox,ge.bottomRightPaddingBox);case 2:return UA(ge.bottomRightBorderDoubleInnerBox,ge.bottomRightPaddingBox,ge.bottomLeftBorderDoubleInnerBox,ge.bottomLeftPaddingBox);case 3:default:return UA(ge.bottomLeftBorderDoubleInnerBox,ge.bottomLeftPaddingBox,ge.topLeftBorderDoubleInnerBox,ge.topLeftPaddingBox)}},qm=function(ge,Ae){switch(Ae){case 0:return em(ge.topLeftBorderStroke,ge.topRightBorderStroke);case 1:return em(ge.topRightBorderStroke,ge.bottomRightBorderStroke);case 2:return em(ge.bottomRightBorderStroke,ge.bottomLeftBorderStroke);case 3:default:return em(ge.bottomLeftBorderStroke,ge.topLeftBorderStroke)}},em=function(ge,Ae){var be=[];return ru(ge)?be.push(ge.subdivide(.5,!1)):be.push(ge),ru(Ae)?be.push(Ae.subdivide(.5,!0)):be.push(Ae),be},UA=function(ge,Ae,be,ye){var nt=[];return ru(ge)?nt.push(ge.subdivide(.5,!1)):nt.push(ge),ru(be)?nt.push(be.subdivide(.5,!0)):nt.push(be),ru(ye)?nt.push(ye.subdivide(.5,!0).reverse()):nt.push(ye),ru(Ae)?nt.push(Ae.subdivide(.5,!1).reverse()):nt.push(Ae),nt},eg=function(ge){var Ae=ge.bounds,be=ge.styles;return Ae.add(be.borderLeftWidth,be.borderTopWidth,-(be.borderRightWidth+be.borderLeftWidth),-(be.borderTopWidth+be.borderBottomWidth))},tm=function(ge){var Ae=ge.styles,be=ge.bounds,ye=ss(Ae.paddingLeft,be.width),nt=ss(Ae.paddingRight,be.width),Ft=ss(Ae.paddingTop,be.width),Yt=ss(Ae.paddingBottom,be.width);return be.add(ye+Ae.borderLeftWidth,Ft+Ae.borderTopWidth,-(Ae.borderRightWidth+Ae.borderLeftWidth+ye+nt),-(Ae.borderTopWidth+Ae.borderBottomWidth+Ft+Yt))},bm=function(ge,Ae){return ge===0?Ae.bounds:ge===2?tm(Ae):eg(Ae)},Qg=function(ge,Ae){return ge===0?Ae.bounds:ge===2?tm(Ae):eg(Ae)},Md=function(ge,Ae,be){var ye=bm(md(ge.styles.backgroundOrigin,Ae),ge),nt=Qg(md(ge.styles.backgroundClip,Ae),ge),Ft=zh(md(ge.styles.backgroundSize,Ae),be,ye),Yt=Ft[0],Bn=Ft[1],xn=tc(md(ge.styles.backgroundPosition,Ae),ye.width-Yt,ye.height-Bn),xr=tg(md(ge.styles.backgroundRepeat,Ae),xn,Ft,ye,nt),Dr=Math.round(ye.left+xn[0]),Zr=Math.round(ye.top+xn[1]);return[xr,Dr,Zr,Yt,Bn]},Tf=function(ge){return $a(ge)&&ge.value===Kl.AUTO},Bp=function(ge){return typeof ge=="number"},zh=function(ge,Ae,be){var ye=Ae[0],nt=Ae[1],Ft=Ae[2],Yt=ge[0],Bn=ge[1];if(!Yt)return[0,0];if(ks(Yt)&&Bn&&ks(Bn))return[ss(Yt,be.width),ss(Bn,be.height)];var xn=Bp(Ft);if($a(Yt)&&(Yt.value===Kl.CONTAIN||Yt.value===Kl.COVER)){if(Bp(Ft)){var xr=be.width/be.height;return xr<Ft!=(Yt.value===Kl.COVER)?[be.width,be.width/Ft]:[be.height*Ft,be.height]}return[be.width,be.height]}var Dr=Bp(ye),Zr=Bp(nt),Pi=Dr||Zr;if(Tf(Yt)&&(!Bn||Tf(Bn))){if(Dr&&Zr)return[ye,nt];if(!xn&&!Pi)return[be.width,be.height];if(Pi&&xn){var fa=Dr?ye:nt*Ft,po=Zr?nt:ye/Ft;return[fa,po]}var $o=Dr?ye:be.width,As=Zr?nt:be.height;return[$o,As]}if(xn){var ya=0,ga=0;return ks(Yt)?ya=ss(Yt,be.width):ks(Bn)&&(ga=ss(Bn,be.height)),Tf(Yt)?ya=ga*Ft:(!Bn||Tf(Bn))&&(ga=ya/Ft),[ya,ga]}var qa=null,bs=null;if(ks(Yt)?qa=ss(Yt,be.width):Bn&&ks(Bn)&&(bs=ss(Bn,be.height)),qa!==null&&(!Bn||Tf(Bn))&&(bs=Dr&&Zr?qa/ye*nt:be.height),bs!==null&&Tf(Yt)&&(qa=Dr&&Zr?bs/nt*ye:be.width),qa!==null&&bs!==null)return[qa,bs];throw new Error("Unable to calculate background-size for element")},md=function(ge,Ae){var be=ge[Ae];return typeof be=="undefined"?ge[0]:be},tg=function(ge,Ae,be,ye,nt){var Ft=Ae[0],Yt=Ae[1],Bn=be[0],xn=be[1];switch(ge){case 2:return[new Eo(Math.round(ye.left),Math.round(ye.top+Yt)),new Eo(Math.round(ye.left+ye.width),Math.round(ye.top+Yt)),new Eo(Math.round(ye.left+ye.width),Math.round(xn+ye.top+Yt)),new Eo(Math.round(ye.left),Math.round(xn+ye.top+Yt))];case 3:return[new Eo(Math.round(ye.left+Ft),Math.round(ye.top)),new Eo(Math.round(ye.left+Ft+Bn),Math.round(ye.top)),new Eo(Math.round(ye.left+Ft+Bn),Math.round(ye.height+ye.top)),new Eo(Math.round(ye.left+Ft),Math.round(ye.height+ye.top))];case 1:return[new Eo(Math.round(ye.left+Ft),Math.round(ye.top+Yt)),new Eo(Math.round(ye.left+Ft+Bn),Math.round(ye.top+Yt)),new Eo(Math.round(ye.left+Ft+Bn),Math.round(ye.top+Yt+xn)),new Eo(Math.round(ye.left+Ft),Math.round(ye.top+Yt+xn))];default:return[new Eo(Math.round(nt.left),Math.round(nt.top)),new Eo(Math.round(nt.left+nt.width),Math.round(nt.top)),new Eo(Math.round(nt.left+nt.width),Math.round(nt.height+nt.top)),new Eo(Math.round(nt.left),Math.round(nt.height+nt.top))]}},Ep="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Cm="Hidden Text",kf=function(){function ge(Ae){this._data={},this._document=Ae}return ge.prototype.parseMetrics=function(Ae,be){var ye=this._document.createElement("div"),nt=this._document.createElement("img"),Ft=this._document.createElement("span"),Yt=this._document.body;ye.style.visibility="hidden",ye.style.fontFamily=Ae,ye.style.fontSize=be,ye.style.margin="0",ye.style.padding="0",ye.style.whiteSpace="nowrap",Yt.appendChild(ye),nt.src=Ep,nt.width=1,nt.height=1,nt.style.margin="0",nt.style.padding="0",nt.style.verticalAlign="baseline",Ft.style.fontFamily=Ae,Ft.style.fontSize=be,Ft.style.margin="0",Ft.style.padding="0",Ft.appendChild(this._document.createTextNode(Cm)),ye.appendChild(Ft),ye.appendChild(nt);var Bn=nt.offsetTop-Ft.offsetTop+2;ye.removeChild(Ft),ye.appendChild(this._document.createTextNode(Cm)),ye.style.lineHeight="normal",nt.style.verticalAlign="super";var xn=nt.offsetTop-ye.offsetTop+2;return Yt.removeChild(ye),{baseline:Bn,middle:xn}},ge.prototype.getMetrics=function(Ae,be){var ye=Ae+" "+be;return typeof this._data[ye]=="undefined"&&(this._data[ye]=this.parseMetrics(Ae,be)),this._data[ye]},ge}(),Mf=function(){function ge(Ae,be){this.context=Ae,this.options=be}return ge}(),La=1e4,Ku=function(ge){ae(Ae,ge);function Ae(be,ye){var nt=ge.call(this,be,ye)||this;return nt._activeEffects=[],nt.canvas=ye.canvas?ye.canvas:document.createElement("canvas"),nt.ctx=nt.canvas.getContext("2d"),ye.canvas||(nt.canvas.width=Math.floor(ye.width*ye.scale),nt.canvas.height=Math.floor(ye.height*ye.scale),nt.canvas.style.width=ye.width+"px",nt.canvas.style.height=ye.height+"px"),nt.fontMetrics=new kf(document),nt.ctx.scale(nt.options.scale,nt.options.scale),nt.ctx.translate(-ye.x,-ye.y),nt.ctx.textBaseline="bottom",nt._activeEffects=[],nt.context.logger.debug("Canvas renderer initialized ("+ye.width+"x"+ye.height+") with scale "+ye.scale),nt}return Ae.prototype.applyEffects=function(be){for(var ye=this;this._activeEffects.length;)this.popEffect();be.forEach(function(nt){return ye.applyEffect(nt)})},Ae.prototype.applyEffect=function(be){this.ctx.save(),Df(be)&&(this.ctx.globalAlpha=be.opacity),cc(be)&&(this.ctx.translate(be.offsetX,be.offsetY),this.ctx.transform(be.matrix[0],be.matrix[1],be.matrix[2],be.matrix[3],be.matrix[4],be.matrix[5]),this.ctx.translate(-be.offsetX,-be.offsetY)),kd(be)&&(this.path(be.path),this.ctx.clip()),this._activeEffects.push(be)},Ae.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},Ae.prototype.renderStack=function(be){return dt(this,void 0,void 0,function(){var ye;return Ie(this,function(nt){switch(nt.label){case 0:return ye=be.element.container.styles,ye.isVisible()?[4,this.renderStackContent(be)]:[3,2];case 1:nt.sent(),nt.label=2;case 2:return[2]}})})},Ae.prototype.renderNode=function(be){return dt(this,void 0,void 0,function(){return Ie(this,function(ye){switch(ye.label){case 0:if(zo(be.container.flags,16))debugger;return be.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(be)]:[3,3];case 1:return ye.sent(),[4,this.renderNodeContent(be)];case 2:ye.sent(),ye.label=3;case 3:return[2]}})})},Ae.prototype.renderTextWithLetterSpacing=function(be,ye,nt){var Ft=this;if(ye===0)this.ctx.fillText(be.text,be.bounds.left,be.bounds.top+nt);else{var Yt=If(be.text);Yt.reduce(function(Bn,xn){return Ft.ctx.fillText(xn,Bn,be.bounds.top+nt),Bn+Ft.ctx.measureText(xn).width},be.bounds.left)}},Ae.prototype.createFontStyle=function(be){var ye=be.fontVariant.filter(function(Yt){return Yt==="normal"||Yt==="small-caps"}).join(""),nt=Uf(be.fontFamily).join(", "),Ft=Ja(be.fontSize)?""+be.fontSize.number+be.fontSize.unit:be.fontSize.number+"px";return[[be.fontStyle,ye,be.fontWeight,Ft,nt].join(" "),nt,Ft]},Ae.prototype.renderTextNode=function(be,ye){return dt(this,void 0,void 0,function(){var nt,Ft,Yt,Bn,xn,xr,Dr,Zr,Pi=this;return Ie(this,function(fa){return nt=this.createFontStyle(ye),Ft=nt[0],Yt=nt[1],Bn=nt[2],this.ctx.font=Ft,this.ctx.direction=ye.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",xn=this.fontMetrics.getMetrics(Yt,Bn),xr=xn.baseline,Dr=xn.middle,Zr=ye.paintOrder,be.textBounds.forEach(function(po){Zr.forEach(function($o){switch($o){case 0:Pi.ctx.fillStyle=Gs(ye.color),Pi.renderTextWithLetterSpacing(po,ye.letterSpacing,xr);var As=ye.textShadow;As.length&&po.text.trim().length&&(As.slice(0).reverse().forEach(function(ya){Pi.ctx.shadowColor=Gs(ya.color),Pi.ctx.shadowOffsetX=ya.offsetX.number*Pi.options.scale,Pi.ctx.shadowOffsetY=ya.offsetY.number*Pi.options.scale,Pi.ctx.shadowBlur=ya.blur.number,Pi.renderTextWithLetterSpacing(po,ye.letterSpacing,xr)}),Pi.ctx.shadowColor="",Pi.ctx.shadowOffsetX=0,Pi.ctx.shadowOffsetY=0,Pi.ctx.shadowBlur=0),ye.textDecorationLine.length&&(Pi.ctx.fillStyle=Gs(ye.textDecorationColor||ye.color),ye.textDecorationLine.forEach(function(ya){switch(ya){case 1:Pi.ctx.fillRect(po.bounds.left,Math.round(po.bounds.top+xr),po.bounds.width,1);break;case 2:Pi.ctx.fillRect(po.bounds.left,Math.round(po.bounds.top),po.bounds.width,1);break;case 3:Pi.ctx.fillRect(po.bounds.left,Math.ceil(po.bounds.top+Dr),po.bounds.width,1);break}}));break;case 1:ye.webkitTextStrokeWidth&&po.text.trim().length&&(Pi.ctx.strokeStyle=Gs(ye.webkitTextStrokeColor),Pi.ctx.lineWidth=ye.webkitTextStrokeWidth,Pi.ctx.lineJoin=window.chrome?"miter":"round",Pi.ctx.strokeText(po.text,po.bounds.left,po.bounds.top+xr)),Pi.ctx.strokeStyle="",Pi.ctx.lineWidth=0,Pi.ctx.lineJoin="miter";break}})}),[2]})})},Ae.prototype.renderReplacedElement=function(be,ye,nt){if(nt&&be.intrinsicWidth>0&&be.intrinsicHeight>0){var Ft=tm(be),Yt=dh(ye);this.path(Yt),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(nt,0,0,be.intrinsicWidth,be.intrinsicHeight,Ft.left,Ft.top,Ft.width,Ft.height),this.ctx.restore()}},Ae.prototype.renderNodeContent=function(be){return dt(this,void 0,void 0,function(){var ye,nt,Ft,Yt,Bn,xn,ga,ga,xr,Dr,Zr,Pi,bs,fa,po,Za,$o,As,ya,ga,qa,bs,Za;return Ie(this,function(ia){switch(ia.label){case 0:this.applyEffects(be.getEffects(4)),ye=be.container,nt=be.curves,Ft=ye.styles,Yt=0,Bn=ye.textNodes,ia.label=1;case 1:return Yt<Bn.length?(xn=Bn[Yt],[4,this.renderTextNode(xn,Ft)]):[3,4];case 2:ia.sent(),ia.label=3;case 3:return Yt++,[3,1];case 4:if(!(ye instanceof Lf))return[3,8];ia.label=5;case 5:return ia.trys.push([5,7,,8]),[4,this.context.cache.match(ye.src)];case 6:return ga=ia.sent(),this.renderReplacedElement(ye,nt,ga),[3,8];case 7:return ia.sent(),this.context.logger.error("Error loading image "+ye.src),[3,8];case 8:if(ye instanceof Nd&&this.renderReplacedElement(ye,nt,ye.canvas),!(ye instanceof _f))return[3,12];ia.label=9;case 9:return ia.trys.push([9,11,,12]),[4,this.context.cache.match(ye.svg)];case 10:return ga=ia.sent(),this.renderReplacedElement(ye,nt,ga),[3,12];case 11:return ia.sent(),this.context.logger.error("Error loading svg "+ye.svg.substring(0,255)),[3,12];case 12:return ye instanceof Ls&&ye.tree?(xr=new Ae(this.context,{scale:this.options.scale,backgroundColor:ye.backgroundColor,x:0,y:0,width:ye.width,height:ye.height}),[4,xr.render(ye.tree)]):[3,14];case 13:Dr=ia.sent(),ye.width&&ye.height&&this.ctx.drawImage(Dr,0,0,ye.width,ye.height,ye.bounds.left,ye.bounds.top,ye.bounds.width,ye.bounds.height),ia.label=14;case 14:if(ye instanceof cd&&(Zr=Math.min(ye.bounds.width,ye.bounds.height),ye.type===ud?ye.checked&&(this.ctx.save(),this.path([new Eo(ye.bounds.left+Zr*.39363,ye.bounds.top+Zr*.79),new Eo(ye.bounds.left+Zr*.16,ye.bounds.top+Zr*.5549),new Eo(ye.bounds.left+Zr*.27347,ye.bounds.top+Zr*.44071),new Eo(ye.bounds.left+Zr*.39694,ye.bounds.top+Zr*.5649),new Eo(ye.bounds.left+Zr*.72983,ye.bounds.top+Zr*.23),new Eo(ye.bounds.left+Zr*.84,ye.bounds.top+Zr*.34085),new Eo(ye.bounds.left+Zr*.39363,ye.bounds.top+Zr*.79)]),this.ctx.fillStyle=Gs(Dd),this.ctx.fill(),this.ctx.restore()):ye.type===xA&&ye.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(ye.bounds.left+Zr/2,ye.bounds.top+Zr/2,Zr/4,0,Math.PI*2,!0),this.ctx.fillStyle=Gs(Dd),this.ctx.fill(),this.ctx.restore())),xm(ye)&&ye.value.length){switch(Pi=this.createFontStyle(Ft),bs=Pi[0],fa=Pi[1],po=this.fontMetrics.getMetrics(bs,fa).baseline,this.ctx.font=bs,this.ctx.fillStyle=Gs(Ft.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Kh(ye.styles.textAlign),Za=tm(ye),$o=0,ye.styles.textAlign){case 1:$o+=Za.width/2;break;case 2:$o+=Za.width;break}As=Za.add($o,0,0,-Za.height/2+1),this.ctx.save(),this.path([new Eo(Za.left,Za.top),new Eo(Za.left+Za.width,Za.top),new Eo(Za.left+Za.width,Za.top+Za.height),new Eo(Za.left,Za.top+Za.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Pc(ye.value,As),Ft.letterSpacing,po),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!zo(ye.styles.display,2048))return[3,20];if(ye.styles.listStyleImage===null)return[3,19];if(ya=ye.styles.listStyleImage,ya.type!==0)return[3,18];ga=void 0,qa=ya.url,ia.label=15;case 15:return ia.trys.push([15,17,,18]),[4,this.context.cache.match(qa)];case 16:return ga=ia.sent(),this.ctx.drawImage(ga,ye.bounds.left-(ga.width+10),ye.bounds.top),[3,18];case 17:return ia.sent(),this.context.logger.error("Error loading list-style-image "+qa),[3,18];case 18:return[3,20];case 19:be.listValue&&ye.styles.listStyleType!==-1&&(bs=this.createFontStyle(Ft)[0],this.ctx.font=bs,this.ctx.fillStyle=Gs(Ft.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Za=new ze(ye.bounds.left,ye.bounds.top+ss(ye.styles.paddingTop,ye.bounds.width),ye.bounds.width,Ou(Ft.lineHeight,Ft.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Pc(be.listValue,Za),Ft.letterSpacing,Ou(Ft.lineHeight,Ft.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),ia.label=20;case 20:return[2]}})})},Ae.prototype.renderStackContent=function(be){return dt(this,void 0,void 0,function(){var ye,nt,ya,Ft,Yt,ya,Bn,xn,ya,xr,Dr,ya,Zr,Pi,ya,fa,po,ya,$o,As,ya;return Ie(this,function(ga){switch(ga.label){case 0:if(zo(be.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(be.element)];case 1:ga.sent(),ye=0,nt=be.negativeZIndex,ga.label=2;case 2:return ye<nt.length?(ya=nt[ye],[4,this.renderStack(ya)]):[3,5];case 3:ga.sent(),ga.label=4;case 4:return ye++,[3,2];case 5:return[4,this.renderNodeContent(be.element)];case 6:ga.sent(),Ft=0,Yt=be.nonInlineLevel,ga.label=7;case 7:return Ft<Yt.length?(ya=Yt[Ft],[4,this.renderNode(ya)]):[3,10];case 8:ga.sent(),ga.label=9;case 9:return Ft++,[3,7];case 10:Bn=0,xn=be.nonPositionedFloats,ga.label=11;case 11:return Bn<xn.length?(ya=xn[Bn],[4,this.renderStack(ya)]):[3,14];case 12:ga.sent(),ga.label=13;case 13:return Bn++,[3,11];case 14:xr=0,Dr=be.nonPositionedInlineLevel,ga.label=15;case 15:return xr<Dr.length?(ya=Dr[xr],[4,this.renderStack(ya)]):[3,18];case 16:ga.sent(),ga.label=17;case 17:return xr++,[3,15];case 18:Zr=0,Pi=be.inlineLevel,ga.label=19;case 19:return Zr<Pi.length?(ya=Pi[Zr],[4,this.renderNode(ya)]):[3,22];case 20:ga.sent(),ga.label=21;case 21:return Zr++,[3,19];case 22:fa=0,po=be.zeroOrAutoZIndexOrTransformedOrOpacity,ga.label=23;case 23:return fa<po.length?(ya=po[fa],[4,this.renderStack(ya)]):[3,26];case 24:ga.sent(),ga.label=25;case 25:return fa++,[3,23];case 26:$o=0,As=be.positiveZIndex,ga.label=27;case 27:return $o<As.length?(ya=As[$o],[4,this.renderStack(ya)]):[3,30];case 28:ga.sent(),ga.label=29;case 29:return $o++,[3,27];case 30:return[2]}})})},Ae.prototype.mask=function(be){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(be.slice(0).reverse()),this.ctx.closePath()},Ae.prototype.path=function(be){this.ctx.beginPath(),this.formatPath(be),this.ctx.closePath()},Ae.prototype.formatPath=function(be){var ye=this;be.forEach(function(nt,Ft){var Yt=ru(nt)?nt.start:nt;Ft===0?ye.ctx.moveTo(Yt.x,Yt.y):ye.ctx.lineTo(Yt.x,Yt.y),ru(nt)&&ye.ctx.bezierCurveTo(nt.startControl.x,nt.startControl.y,nt.endControl.x,nt.endControl.y,nt.end.x,nt.end.y)})},Ae.prototype.renderRepeat=function(be,ye,nt,Ft){this.path(be),this.ctx.fillStyle=ye,this.ctx.translate(nt,Ft),this.ctx.fill(),this.ctx.translate(-nt,-Ft)},Ae.prototype.resizeImage=function(be,ye,nt){var Ft;if(be.width===ye&&be.height===nt)return be;var Yt=(Ft=this.canvas.ownerDocument)!==null&&Ft!==void 0?Ft:document,Bn=Yt.createElement("canvas");Bn.width=Math.max(1,ye),Bn.height=Math.max(1,nt);var xn=Bn.getContext("2d");return xn.drawImage(be,0,0,be.width,be.height,0,0,ye,nt),Bn},Ae.prototype.renderBackgroundImage=function(be){return dt(this,void 0,void 0,function(){var ye,nt,Ft,Yt,Bn,xn;return Ie(this,function(xr){switch(xr.label){case 0:ye=be.styles.backgroundImage.length-1,nt=function(Dr){var Zr,Pi,fa,Uo,Jc,aA,Vl,Sc,Os,po,Uo,Jc,aA,Vl,Sc,$o,As,ya,ga,qa,bs,Za,ia,Ys,Os,es,Uo,IA,RA,Vl,Sc,sf,Jc,aA,hh,qA,lf,ph,Rf,Rd,jf,uf;return Ie(this,function($h){switch($h.label){case 0:if(Dr.type!==0)return[3,5];Zr=void 0,Pi=Dr.url,$h.label=1;case 1:return $h.trys.push([1,3,,4]),[4,Ft.context.cache.match(Pi)];case 2:return Zr=$h.sent(),[3,4];case 3:return $h.sent(),Ft.context.logger.error("Error loading background-image "+Pi),[3,4];case 4:return Zr&&(fa=Md(be,ye,[Zr.width,Zr.height,Zr.width/Zr.height]),Uo=fa[0],Jc=fa[1],aA=fa[2],Vl=fa[3],Sc=fa[4],Os=Ft.ctx.createPattern(Ft.resizeImage(Zr,Vl,Sc),"repeat"),Ft.renderRepeat(Uo,Os,Jc,aA)),[3,6];case 5:pA(Dr)?(po=Md(be,ye,[null,null,null]),Uo=po[0],Jc=po[1],aA=po[2],Vl=po[3],Sc=po[4],$o=fA(Dr.angle,Vl,Sc),As=$o[0],ya=$o[1],ga=$o[2],qa=$o[3],bs=$o[4],Za=document.createElement("canvas"),Za.width=Vl,Za.height=Sc,ia=Za.getContext("2d"),Ys=ia.createLinearGradient(ya,qa,ga,bs),Kc(Dr.stops,As).forEach(function(Qf){return Ys.addColorStop(Qf.stop,Gs(Qf.color))}),ia.fillStyle=Ys,ia.fillRect(0,0,Vl,Sc),Vl>0&&Sc>0&&(Os=Ft.ctx.createPattern(Za,"repeat"),Ft.renderRepeat(Uo,Os,Jc,aA))):Ph(Dr)&&(es=Md(be,ye,[null,null,null]),Uo=es[0],IA=es[1],RA=es[2],Vl=es[3],Sc=es[4],sf=Dr.position.length===0?[eA]:Dr.position,Jc=ss(sf[0],Vl),aA=ss(sf[sf.length-1],Sc),hh=nA(Dr,Jc,aA,Vl,Sc),qA=hh[0],lf=hh[1],qA>0&&lf>0&&(ph=Ft.ctx.createRadialGradient(IA+Jc,RA+aA,0,IA+Jc,RA+aA,qA),Kc(Dr.stops,qA*2).forEach(function(Qf){return ph.addColorStop(Qf.stop,Gs(Qf.color))}),Ft.path(Uo),Ft.ctx.fillStyle=ph,qA!==lf?(Rf=be.bounds.left+.5*be.bounds.width,Rd=be.bounds.top+.5*be.bounds.height,jf=lf/qA,uf=1/jf,Ft.ctx.save(),Ft.ctx.translate(Rf,Rd),Ft.ctx.transform(1,0,0,jf,0,0),Ft.ctx.translate(-Rf,-Rd),Ft.ctx.fillRect(IA,uf*(RA-Rd)+Rd,Vl,Sc*uf),Ft.ctx.restore()):Ft.ctx.fill())),$h.label=6;case 6:return ye--,[2]}})},Ft=this,Yt=0,Bn=be.styles.backgroundImage.slice(0).reverse(),xr.label=1;case 1:return Yt<Bn.length?(xn=Bn[Yt],[5,nt(xn)]):[3,4];case 2:xr.sent(),xr.label=3;case 3:return Yt++,[3,1];case 4:return[2]}})})},Ae.prototype.renderSolidBorder=function(be,ye,nt){return dt(this,void 0,void 0,function(){return Ie(this,function(Ft){return this.path(Tc(nt,ye)),this.ctx.fillStyle=Gs(be),this.ctx.fill(),[2]})})},Ae.prototype.renderDoubleBorder=function(be,ye,nt,Ft){return dt(this,void 0,void 0,function(){var Yt,Bn;return Ie(this,function(xn){switch(xn.label){case 0:return ye<3?[4,this.renderSolidBorder(be,nt,Ft)]:[3,2];case 1:return xn.sent(),[2];case 2:return Yt=Xc(Ft,nt),this.path(Yt),this.ctx.fillStyle=Gs(be),this.ctx.fill(),Bn=Yc(Ft,nt),this.path(Bn),this.ctx.fill(),[2]}})})},Ae.prototype.renderNodeBackgroundAndBorders=function(be){return dt(this,void 0,void 0,function(){var ye,nt,Ft,Yt,Bn,xn,xr,Dr,Zr=this;return Ie(this,function(Pi){switch(Pi.label){case 0:return this.applyEffects(be.getEffects(2)),ye=be.container.styles,nt=!Ws(ye.backgroundColor)||ye.backgroundImage.length,Ft=[{style:ye.borderTopStyle,color:ye.borderTopColor,width:ye.borderTopWidth},{style:ye.borderRightStyle,color:ye.borderRightColor,width:ye.borderRightWidth},{style:ye.borderBottomStyle,color:ye.borderBottomColor,width:ye.borderBottomWidth},{style:ye.borderLeftStyle,color:ye.borderLeftColor,width:ye.borderLeftWidth}],Yt=fh(md(ye.backgroundClip,0),be.curves),nt||ye.boxShadow.length?(this.ctx.save(),this.path(Yt),this.ctx.clip(),Ws(ye.backgroundColor)||(this.ctx.fillStyle=Gs(ye.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(be.container)]):[3,2];case 1:Pi.sent(),this.ctx.restore(),ye.boxShadow.slice(0).reverse().forEach(function(fa){Zr.ctx.save();var po=oA(be.curves),$o=fa.inset?0:La,As=Jm(po,-$o+(fa.inset?1:-1)*fa.spread.number,(fa.inset?1:-1)*fa.spread.number,fa.spread.number*(fa.inset?-2:2),fa.spread.number*(fa.inset?-2:2));fa.inset?(Zr.path(po),Zr.ctx.clip(),Zr.mask(As)):(Zr.mask(po),Zr.ctx.clip(),Zr.path(As)),Zr.ctx.shadowOffsetX=fa.offsetX.number+$o,Zr.ctx.shadowOffsetY=fa.offsetY.number,Zr.ctx.shadowColor=Gs(fa.color),Zr.ctx.shadowBlur=fa.blur.number,Zr.ctx.fillStyle=fa.inset?Gs(fa.color):"rgba(0,0,0,1)",Zr.ctx.fill(),Zr.ctx.restore()}),Pi.label=2;case 2:Bn=0,xn=0,xr=Ft,Pi.label=3;case 3:return xn<xr.length?(Dr=xr[xn],Dr.style!==0&&!Ws(Dr.color)&&Dr.width>0?Dr.style!==2?[3,5]:[4,this.renderDashedDottedBorder(Dr.color,Dr.width,Bn,be.curves,2)]:[3,11]):[3,13];case 4:return Pi.sent(),[3,11];case 5:return Dr.style!==3?[3,7]:[4,this.renderDashedDottedBorder(Dr.color,Dr.width,Bn,be.curves,3)];case 6:return Pi.sent(),[3,11];case 7:return Dr.style!==4?[3,9]:[4,this.renderDoubleBorder(Dr.color,Dr.width,Bn,be.curves)];case 8:return Pi.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Dr.color,Bn,be.curves)];case 10:Pi.sent(),Pi.label=11;case 11:Bn++,Pi.label=12;case 12:return xn++,[3,3];case 13:return[2]}})})},Ae.prototype.renderDashedDottedBorder=function(be,ye,nt,Ft,Yt){return dt(this,void 0,void 0,function(){var Bn,xn,xr,Dr,Zr,Pi,fa,po,$o,As,ya,ga,qa,bs,Za,ia,Za,ia;return Ie(this,function(Ys){return this.ctx.save(),Bn=qm(Ft,nt),xn=Tc(Ft,nt),Yt===2&&(this.path(xn),this.ctx.clip()),ru(xn[0])?(xr=xn[0].start.x,Dr=xn[0].start.y):(xr=xn[0].x,Dr=xn[0].y),ru(xn[1])?(Zr=xn[1].end.x,Pi=xn[1].end.y):(Zr=xn[1].x,Pi=xn[1].y),nt===0||nt===2?fa=Math.abs(xr-Zr):fa=Math.abs(Dr-Pi),this.ctx.beginPath(),Yt===3?this.formatPath(Bn):this.formatPath(xn.slice(0,2)),po=ye<3?ye*3:ye*2,$o=ye<3?ye*2:ye,Yt===3&&(po=ye,$o=ye),As=!0,fa<=po*2?As=!1:fa<=po*2+$o?(ya=fa/(2*po+$o),po*=ya,$o*=ya):(ga=Math.floor((fa+$o)/(po+$o)),qa=(fa-ga*po)/(ga-1),bs=(fa-(ga+1)*po)/ga,$o=bs<=0||Math.abs($o-qa)<Math.abs($o-bs)?qa:bs),As&&(Yt===3?this.ctx.setLineDash([0,po+$o]):this.ctx.setLineDash([po,$o])),Yt===3?(this.ctx.lineCap="round",this.ctx.lineWidth=ye):this.ctx.lineWidth=ye*2+1.1,this.ctx.strokeStyle=Gs(be),this.ctx.stroke(),this.ctx.setLineDash([]),Yt===2&&(ru(xn[0])&&(Za=xn[3],ia=xn[0],this.ctx.beginPath(),this.formatPath([new Eo(Za.end.x,Za.end.y),new Eo(ia.start.x,ia.start.y)]),this.ctx.stroke()),ru(xn[1])&&(Za=xn[1],ia=xn[2],this.ctx.beginPath(),this.formatPath([new Eo(Za.end.x,Za.end.y),new Eo(ia.start.x,ia.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},Ae.prototype.render=function(be){return dt(this,void 0,void 0,function(){var ye;return Ie(this,function(nt){switch(nt.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Gs(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),ye=Vc(be),[4,this.renderStack(ye)];case 1:return nt.sent(),this.applyEffects([]),[2,this.canvas]}})})},Ae}(Mf),xm=function(ge){return ge instanceof ms||ge instanceof Uh?!0:ge instanceof cd&&ge.type!==xA&&ge.type!==ud},fh=function(ge,Ae){switch(ge){case 0:return oA(Ae);case 2:return uc(Ae);case 1:default:return dh(Ae)}},Kh=function(ge){switch(ge){case 1:return"center";case 2:return"right";case 0:default:return"left"}},ws=["-apple-system","system-ui"],Uf=function(ge){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?ge.filter(function(Ae){return ws.indexOf(Ae)===-1}):ge},FA=function(ge){ae(Ae,ge);function Ae(be,ye){var nt=ge.call(this,be,ye)||this;return nt.canvas=ye.canvas?ye.canvas:document.createElement("canvas"),nt.ctx=nt.canvas.getContext("2d"),nt.options=ye,nt.canvas.width=Math.floor(ye.width*ye.scale),nt.canvas.height=Math.floor(ye.height*ye.scale),nt.canvas.style.width=ye.width+"px",nt.canvas.style.height=ye.height+"px",nt.ctx.scale(nt.options.scale,nt.options.scale),nt.ctx.translate(-ye.x,-ye.y),nt.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+ye.width+"x"+ye.height+" at "+ye.x+","+ye.y+") with scale "+ye.scale),nt}return Ae.prototype.render=function(be){return dt(this,void 0,void 0,function(){var ye,nt;return Ie(this,function(Ft){switch(Ft.label){case 0:return ye=WA(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,be),[4,ng(ye)];case 1:return nt=Ft.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Gs(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(nt,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},Ae}(Mf),ng=function(ge){return new Promise(function(Ae,be){var ye=new Image;ye.onload=function(){Ae(ye)},ye.onerror=be,ye.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(ge))})},Ud=function(){function ge(Ae){var be=Ae.id,ye=Ae.enabled;this.id=be,this.enabled=ye,this.start=Date.now()}return ge.prototype.debug=function(){for(var Ae=[],be=0;be<arguments.length;be++)Ae[be]=arguments[be];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Je([this.id,this.getTime()+"ms"],Ae)):this.info.apply(this,Ae))},ge.prototype.getTime=function(){return Date.now()-this.start},ge.prototype.info=function(){for(var Ae=[],be=0;be<arguments.length;be++)Ae[be]=arguments[be];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Je([this.id,this.getTime()+"ms"],Ae))},ge.prototype.warn=function(){for(var Ae=[],be=0;be<arguments.length;be++)Ae[be]=arguments[be];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Je([this.id,this.getTime()+"ms"],Ae)):this.info.apply(this,Ae))},ge.prototype.error=function(){for(var Ae=[],be=0;be<arguments.length;be++)Ae[be]=arguments[be];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Je([this.id,this.getTime()+"ms"],Ae)):this.info.apply(this,Ae))},ge.instances={},ge}(),Hg=function(){function ge(Ae,be){var ye;this.windowBounds=be,this.instanceName="#"+ge.instanceCount++,this.logger=new Ud({id:this.instanceName,enabled:Ae.logging}),this.cache=(ye=Ae.cache)!==null&&ye!==void 0?ye:new Ra(this,Ae)}return ge.instanceCount=1,ge}(),zg=function(ge,Ae){return Ae===void 0&&(Ae={}),Kg(ge,Ae)};typeof window!="undefined"&&Ca.setContext(window);var Kg=function(ge,Ae){return dt(void 0,void 0,void 0,function(){var be,ye,nt,Ft,Yt,Bn,xn,xr,Dr,Zr,Pi,fa,po,$o,As,ya,ga,qa,bs,Za,Ys,ia,Ys,Os,es,Uo,IA,RA,Vl,Sc,sf,Jc,aA,hh,qA,lf,ph,Rf,Rd,jf;return Ie(this,function(uf){switch(uf.label){case 0:if(!ge||typeof ge!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(be=ge.ownerDocument,!be)throw new Error("Element is not attached to a Document");if(ye=be.defaultView,!ye)throw new Error("Document is not attached to a Window");return nt={allowTaint:(Os=Ae.allowTaint)!==null&&Os!==void 0?Os:!1,imageTimeout:(es=Ae.imageTimeout)!==null&&es!==void 0?es:15e3,proxy:Ae.proxy,useCORS:(Uo=Ae.useCORS)!==null&&Uo!==void 0?Uo:!1},Ft=x({logging:(IA=Ae.logging)!==null&&IA!==void 0?IA:!0,cache:Ae.cache},nt),Yt={windowWidth:(RA=Ae.windowWidth)!==null&&RA!==void 0?RA:ye.innerWidth,windowHeight:(Vl=Ae.windowHeight)!==null&&Vl!==void 0?Vl:ye.innerHeight,scrollX:(Sc=Ae.scrollX)!==null&&Sc!==void 0?Sc:ye.pageXOffset,scrollY:(sf=Ae.scrollY)!==null&&sf!==void 0?sf:ye.pageYOffset},Bn=new ze(Yt.scrollX,Yt.scrollY,Yt.windowWidth,Yt.windowHeight),xn=new Hg(Ft,Bn),xr=(Jc=Ae.foreignObjectRendering)!==null&&Jc!==void 0?Jc:!1,Dr={allowTaint:(aA=Ae.allowTaint)!==null&&aA!==void 0?aA:!1,onclone:Ae.onclone,ignoreElements:Ae.ignoreElements,inlineImages:xr,copyStyles:xr},xn.logger.debug("Starting document clone with size "+Bn.width+"x"+Bn.height+" scrolled to "+-Bn.left+","+-Bn.top),Zr=new ue(xn,ge,Dr),Pi=Zr.clonedReferenceElement,Pi?[4,Zr.toIFrame(be,Bn)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return fa=uf.sent(),po=Zl(Pi)||gm(Pi)?Ue(Pi.ownerDocument):Le(xn,Pi),$o=po.width,As=po.height,ya=po.left,ga=po.top,qa=Ju(xn,Pi,Ae.backgroundColor),bs={canvas:Ae.canvas,backgroundColor:qa,scale:(qA=(hh=Ae.scale)!==null&&hh!==void 0?hh:ye.devicePixelRatio)!==null&&qA!==void 0?qA:1,x:((lf=Ae.x)!==null&&lf!==void 0?lf:0)+ya,y:((ph=Ae.y)!==null&&ph!==void 0?ph:0)+ga,width:(Rf=Ae.width)!==null&&Rf!==void 0?Rf:Math.ceil($o),height:(Rd=Ae.height)!==null&&Rd!==void 0?Rd:Math.ceil(As)},xr?(xn.logger.debug("Document cloned, using foreign object rendering"),Ys=new FA(xn,bs),[4,Ys.render(Pi)]):[3,3];case 2:return Za=uf.sent(),[3,5];case 3:return xn.logger.debug("Document cloned, element located at "+ya+","+ga+" with size "+$o+"x"+As+" using computed rendering"),xn.logger.debug("Starting DOM parsing"),ia=Ad(xn,Pi),qa===ia.styles.backgroundColor&&(ia.styles.backgroundColor=Ms.TRANSPARENT),xn.logger.debug("Starting renderer for element at "+bs.x+","+bs.y+" with size "+bs.width+"x"+bs.height),Ys=new Ku(xn,bs),[4,Ys.render(ia)];case 4:Za=uf.sent(),uf.label=5;case 5:return(!((jf=Ae.removeContainer)!==null&&jf!==void 0)||jf)&&(ue.destroy(fa)||xn.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),xn.logger.debug("Finished rendering"),[2,Za]}})})},Ju=function(ge,Ae,be){var ye=Ae.ownerDocument,nt=ye.documentElement?Ua(ge,getComputedStyle(ye.documentElement).backgroundColor):Ms.TRANSPARENT,Ft=ye.body?Ua(ge,getComputedStyle(ye.body).backgroundColor):Ms.TRANSPARENT,Yt=typeof be=="string"?Ua(ge,be):be===null?Ms.TRANSPARENT:4294967295;return Ae===ye.documentElement?Ws(nt)?Ws(Ft)?Yt:Ft:nt:Yt};return zg})},44164:function(Jn,kt,ae){var x=ae(97671);(function(Ie,Je){Jn.exports=Je(ae(53307),ae(64270))})(self,function(dt,Ie){return function(){var Je={"./src/plugin/hyperlinks.js":function(he,xe,oe){"use strict";oe.r(xe);var Oe=oe("./node_modules/core-js/modules/web.dom-collections.for-each.js"),ve=oe.n(Oe),Me=oe("./node_modules/core-js/modules/es.string.link.js"),Se=oe.n(Me),Te=oe("./src/worker.js"),we=oe("./src/utils.js"),Ce=[],Ee={toContainer:Te.default.prototype.toContainer,toPdf:Te.default.prototype.toPdf};Te.default.prototype.toContainer=function(){return Ee.toContainer.call(this).then(function(){if(this.opt.enableLinks){var Qe=this.prop.container,je=Qe.querySelectorAll("a"),qe=(0,we.unitConvert)(Qe.getBoundingClientRect(),this.prop.pageSize.k);Ce=[],Array.prototype.forEach.call(je,function(Ve){for(var ct=Ve.getClientRects(),ot=0;ot<ct.length;ot++){var pt=(0,we.unitConvert)(ct[ot],this.prop.pageSize.k);pt.left-=qe.left,pt.top-=qe.top;var bt=Math.floor(pt.top/this.prop.pageSize.inner.height)+1,He=this.opt.margin[0]+pt.top%this.prop.pageSize.inner.height,ht=this.opt.margin[1]+pt.left;Ce.push({page:bt,top:He,left:ht,clientRect:pt,link:Ve})}},this)}})},Te.default.prototype.toPdf=function(){return Ee.toPdf.call(this).then(function(){if(this.opt.enableLinks){Ce.forEach(function(je){this.prop.pdf.setPage(je.page),this.prop.pdf.link(je.left,je.top,je.clientRect.width,je.clientRect.height,{url:je.link.href})},this);var Qe=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(Qe)}})}},"./src/plugin/jspdf-plugin.js":function(he,xe,oe){"use strict";oe.r(xe);var Oe=oe("./node_modules/core-js/modules/es.symbol.js"),ve=oe.n(Oe),Me=oe("./node_modules/core-js/modules/es.symbol.description.js"),Se=oe.n(Me),Te=oe("./node_modules/core-js/modules/es.object.to-string.js"),we=oe.n(Te),Ce=oe("./node_modules/core-js/modules/es.symbol.iterator.js"),Ee=oe.n(Ce),ke=oe("./node_modules/core-js/modules/es.array.iterator.js"),Ke=oe.n(ke),Qe=oe("./node_modules/core-js/modules/es.string.iterator.js"),je=oe.n(Qe),qe=oe("./node_modules/core-js/modules/web.dom-collections.iterator.js"),Ve=oe.n(qe),ct=oe("jspdf"),ot=oe.n(ct);function pt(bt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pt=function(ht){return typeof ht}:pt=function(ht){return ht&&typeof Symbol=="function"&&ht.constructor===Symbol&&ht!==Symbol.prototype?"symbol":typeof ht},pt(bt)}ct.jsPDF.getPageSize=function(bt,He,ht){if(pt(bt)==="object"){var _e=bt;bt=_e.orientation,He=_e.unit||He,ht=_e.format||ht}He=He||"mm",ht=ht||"a4",bt=(""+(bt||"P")).toLowerCase();var Re=(""+ht).toLowerCase(),Nt={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(He){case"pt":var it=1;break;case"mm":var it=72/25.4;break;case"cm":var it=72/2.54;break;case"in":var it=72;break;case"px":var it=72/96;break;case"pc":var it=12;break;case"em":var it=12;break;case"ex":var it=6;break;default:throw"Invalid unit: "+He}if(Nt.hasOwnProperty(Re))var at=Nt[Re][1]/it,Bt=Nt[Re][0]/it;else try{var at=ht[1],Bt=ht[0]}catch(ut){throw new Error("Invalid format: "+ht)}if(bt==="p"||bt==="portrait"){if(bt="p",Bt>at){var Ze=Bt;Bt=at,at=Ze}}else if(bt==="l"||bt==="landscape"){if(bt="l",at>Bt){var Ze=Bt;Bt=at,at=Ze}}else throw"Invalid orientation: "+bt;var De={width:Bt,height:at,unit:He,k:it};return De},xe.default=ct.jsPDF},"./src/plugin/pagebreaks.js":function(he,xe,oe){"use strict";oe.r(xe);var Oe=oe("./node_modules/core-js/modules/es.array.concat.js"),ve=oe.n(Oe),Me=oe("./node_modules/core-js/modules/es.array.slice.js"),Se=oe.n(Me),Te=oe("./node_modules/core-js/modules/es.array.join.js"),we=oe.n(Te),Ce=oe("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Ee=oe.n(Ce),ke=oe("./node_modules/core-js/modules/es.object.keys.js"),Ke=oe.n(ke),Qe=oe("./src/worker.js"),je=oe("./src/utils.js"),qe={toContainer:Qe.default.prototype.toContainer};Qe.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},Qe.default.prototype.toContainer=function(){return qe.toContainer.call(this).then(function(){var ot=this.prop.container,pt=this.prop.pageSize.inner.px.height,bt=[].concat(this.opt.pagebreak.mode),He={avoidAll:bt.indexOf("avoid-all")!==-1,css:bt.indexOf("css")!==-1,legacy:bt.indexOf("legacy")!==-1},ht={},_e=this;["before","after","avoid"].forEach(function(it){var at=He.avoidAll&&it==="avoid";ht[it]=at?[]:[].concat(_e.opt.pagebreak[it]||[]),ht[it].length>0&&(ht[it]=Array.prototype.slice.call(ot.querySelectorAll(ht[it].join(", "))))});var Re=ot.querySelectorAll(".html2pdf__page-break");Re=Array.prototype.slice.call(Re);var Nt=ot.querySelectorAll("*");Array.prototype.forEach.call(Nt,function(at){var Bt={before:!1,after:He.legacy&&Re.indexOf(at)!==-1,avoid:He.avoidAll};if(He.css){var Ze=window.getComputedStyle(at),De=["always","page","left","right"],ut=["avoid","avoid-page"];Bt={before:Bt.before||De.indexOf(Ze.breakBefore||Ze.pageBreakBefore)!==-1,after:Bt.after||De.indexOf(Ze.breakAfter||Ze.pageBreakAfter)!==-1,avoid:Bt.avoid||ut.indexOf(Ze.breakInside||Ze.pageBreakInside)!==-1}}Object.keys(Bt).forEach(function(fn){Bt[fn]=Bt[fn]||ht[fn].indexOf(at)!==-1});var $t=at.getBoundingClientRect();if(Bt.avoid&&!Bt.before){var zt=Math.floor($t.top/pt),tt=Math.floor($t.bottom/pt),Ot=Math.abs($t.bottom-$t.top)/pt;tt!==zt&&Ot<=1&&(Bt.before=!0)}if(Bt.before){var Rt=(0,je.createElement)("div",{style:{display:"block",height:pt-$t.top%pt+"px"}});at.parentNode.insertBefore(Rt,at)}if(Bt.after){var Rt=(0,je.createElement)("div",{style:{display:"block",height:pt-$t.bottom%pt+"px"}});at.parentNode.insertBefore(Rt,at.nextSibling)}})})}},"./src/utils.js":function(he,xe,oe){"use strict";oe.r(xe),oe.d(xe,{objType:function(){return bt},createElement:function(){return He},cloneNode:function(){return ht},unitConvert:function(){return _e},toPx:function(){return Re}});var Oe=oe("./node_modules/core-js/modules/es.number.constructor.js"),ve=oe.n(Oe),Me=oe("./node_modules/core-js/modules/es.symbol.js"),Se=oe.n(Me),Te=oe("./node_modules/core-js/modules/es.symbol.description.js"),we=oe.n(Te),Ce=oe("./node_modules/core-js/modules/es.object.to-string.js"),Ee=oe.n(Ce),ke=oe("./node_modules/core-js/modules/es.symbol.iterator.js"),Ke=oe.n(ke),Qe=oe("./node_modules/core-js/modules/es.array.iterator.js"),je=oe.n(Qe),qe=oe("./node_modules/core-js/modules/es.string.iterator.js"),Ve=oe.n(qe),ct=oe("./node_modules/core-js/modules/web.dom-collections.iterator.js"),ot=oe.n(ct);function pt(Nt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pt=function(at){return typeof at}:pt=function(at){return at&&typeof Symbol=="function"&&at.constructor===Symbol&&at!==Symbol.prototype?"symbol":typeof at},pt(Nt)}var bt=function(it){var at=pt(it);return at==="undefined"?"undefined":at==="string"||it instanceof String?"string":at==="number"||it instanceof Number?"number":at==="function"||it instanceof Function?"function":it&&it.constructor===Array?"array":it&&it.nodeType===1?"element":at==="object"?"object":"unknown"},He=function(it,at){var Bt=document.createElement(it);if(at.className&&(Bt.className=at.className),at.innerHTML){Bt.innerHTML=at.innerHTML;for(var Ze=Bt.getElementsByTagName("script"),De=Ze.length;De-- >0;null)Ze[De].parentNode.removeChild(Ze[De])}for(var ut in at.style)Bt.style[ut]=at.style[ut];return Bt},ht=function Nt(it,at){for(var Bt=it.nodeType===3?document.createTextNode(it.nodeValue):it.cloneNode(!1),Ze=it.firstChild;Ze;Ze=Ze.nextSibling)(at===!0||Ze.nodeType!==1||Ze.nodeName!=="SCRIPT")&&Bt.appendChild(Nt(Ze,at));return it.nodeType===1&&(it.nodeName==="CANVAS"?(Bt.width=it.width,Bt.height=it.height,Bt.getContext("2d").drawImage(it,0,0)):(it.nodeName==="TEXTAREA"||it.nodeName==="SELECT")&&(Bt.value=it.value),Bt.addEventListener("load",function(){Bt.scrollTop=it.scrollTop,Bt.scrollLeft=it.scrollLeft},!0)),Bt},_e=function(it,at){if(bt(it)==="number")return it*72/96/at;var Bt={};for(var Ze in it)Bt[Ze]=it[Ze]*72/96/at;return Bt},Re=function(it,at){return Math.floor(it*at/72*96)}},"./src/worker.js":function(he,xe,oe){"use strict";oe.r(xe);var Oe=oe("./node_modules/core-js/modules/es.object.assign.js"),ve=oe.n(Oe),Me=oe("./node_modules/core-js/modules/es.array.map.js"),Se=oe.n(Me),Te=oe("./node_modules/core-js/modules/es.object.keys.js"),we=oe.n(Te),Ce=oe("./node_modules/core-js/modules/es.array.concat.js"),Ee=oe.n(Ce),ke=oe("./node_modules/core-js/modules/es.object.to-string.js"),Ke=oe.n(ke),Qe=oe("./node_modules/core-js/modules/es.regexp.to-string.js"),je=oe.n(Qe),qe=oe("./node_modules/core-js/modules/es.function.name.js"),Ve=oe.n(qe),ct=oe("./node_modules/core-js/modules/web.dom-collections.for-each.js"),ot=oe.n(ct),pt=oe("jspdf"),bt=oe.n(pt),He=oe("html2canvas"),ht=oe.n(He),_e=oe("./src/utils.js"),Re=oe("./node_modules/es6-promise/dist/es6-promise.js"),Nt=oe.n(Re),it=Nt().Promise,at=function Bt(Ze){var De=Object.assign(Bt.convert(it.resolve()),JSON.parse(JSON.stringify(Bt.template))),ut=Bt.convert(it.resolve(),De);return ut=ut.setProgress(1,Bt,1,[Bt]),ut=ut.set(Ze),ut};at.prototype=Object.create(it.prototype),at.prototype.constructor=at,at.convert=function(Ze,De){return Ze.__proto__=De||at.prototype,Ze},at.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:{}}},at.prototype.from=function(Ze,De){function ut($t){switch((0,_e.objType)($t)){case"string":return"string";case"element":return $t.nodeName.toLowerCase&&$t.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(De=De||ut(Ze),De){case"string":return this.set({src:(0,_e.createElement)("div",{innerHTML:Ze})});case"element":return this.set({src:Ze});case"canvas":return this.set({canvas:Ze});case"img":return this.set({img:Ze});default:return this.error("Unknown source type.")}})},at.prototype.to=function(Ze){switch(Ze){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.")}},at.prototype.toContainer=function(){var Ze=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(Ze).then(function(){var ut={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},$t={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};ut.opacity=0;var zt=(0,_e.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,_e.createElement)("div",{className:"html2pdf__overlay",style:ut}),this.prop.container=(0,_e.createElement)("div",{className:"html2pdf__container",style:$t}),this.prop.container.appendChild(zt),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},at.prototype.toCanvas=function(){var Ze=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Ze).then(function(){var ut=Object.assign({},this.opt.html2canvas);return delete ut.onrendered,He(this.prop.container,ut)}).then(function(ut){var $t=this.opt.html2canvas.onrendered||function(){};$t(ut),this.prop.canvas=ut,document.body.removeChild(this.prop.overlay)})},at.prototype.toImg=function(){var Ze=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(Ze).then(function(){var ut=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=ut})},at.prototype.toPdf=function(){var Ze=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(Ze).then(function(){var ut=this.prop.canvas,$t=this.opt,zt=ut.height,tt=Math.floor(ut.width*this.prop.pageSize.inner.ratio),Ot=Math.ceil(zt/tt),Rt=this.prop.pageSize.inner.height,fn=document.createElement("canvas"),Tt=fn.getContext("2d");fn.width=ut.width,fn.height=tt,this.prop.pdf=this.prop.pdf||new pt.jsPDF($t.jsPDF);for(var mn=0;mn<Ot;mn++){mn===Ot-1&&zt%tt!==0&&(fn.height=zt%tt,Rt=fn.height*this.prop.pageSize.inner.width/fn.width);var Dt=fn.width,En=fn.height;Tt.fillStyle="white",Tt.fillRect(0,0,Dt,En),Tt.drawImage(ut,0,mn*tt,Dt,En,0,0,Dt,En),mn&&this.prop.pdf.addPage();var rn=fn.toDataURL("image/"+$t.image.type,$t.image.quality);this.prop.pdf.addImage(rn,$t.image.type,$t.margin[1],$t.margin[0],this.prop.pageSize.inner.width,Rt)}})},at.prototype.output=function(Ze,De,ut){return ut=ut||"pdf",ut.toLowerCase()==="img"||ut.toLowerCase()==="image"?this.outputImg(Ze,De):this.outputPdf(Ze,De)},at.prototype.outputPdf=function(Ze,De){var ut=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(ut).then(function(){return this.prop.pdf.output(Ze,De)})},at.prototype.outputImg=function(Ze,De){var ut=[function(){return this.prop.img||this.toImg()}];return this.thenList(ut).then(function(){switch(Ze){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 "'+Ze+'" is not supported.'}})},at.prototype.save=function(Ze){var De=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(De).set(Ze?{filename:Ze}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},at.prototype.set=function(Ze){if((0,_e.objType)(Ze)!=="object")return this;var De=Object.keys(Ze||{}).map(function(ut){switch(ut){case"margin":return this.setMargin.bind(this,Ze.margin);case"jsPDF":return function(){return this.opt.jsPDF=Ze.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,Ze.pageSize);default:return ut in at.template.prop?function(){this.prop[ut]=Ze[ut]}:function(){this.opt[ut]=Ze[ut]}}},this);return this.then(function(){return this.thenList(De)})},at.prototype.get=function(Ze,De){return this.then(function(){var $t=Ze in at.template.prop?this.prop[Ze]:this.opt[Ze];return De?De($t):$t})},at.prototype.setMargin=function(Ze){return this.then(function(){switch((0,_e.objType)(Ze)){case"number":Ze=[Ze,Ze,Ze,Ze];case"array":if(Ze.length===2&&(Ze=[Ze[0],Ze[1],Ze[0],Ze[1]]),Ze.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=Ze}).then(this.setPageSize)},at.prototype.setPageSize=function(Ze){return this.then(function(){Ze=Ze||pt.jsPDF.getPageSize(this.opt.jsPDF),Ze.hasOwnProperty("inner")||(Ze.inner={width:Ze.width-this.opt.margin[1]-this.opt.margin[3],height:Ze.height-this.opt.margin[0]-this.opt.margin[2]},Ze.inner.px={width:(0,_e.toPx)(Ze.inner.width,Ze.k),height:(0,_e.toPx)(Ze.inner.height,Ze.k)},Ze.inner.ratio=Ze.inner.height/Ze.inner.width),this.prop.pageSize=Ze})},at.prototype.setProgress=function(Ze,De,ut,$t){return Ze!=null&&(this.progress.val=Ze),De!=null&&(this.progress.state=De),ut!=null&&(this.progress.n=ut),$t!=null&&(this.progress.stack=$t),this.progress.ratio=this.progress.val/this.progress.state,this},at.prototype.updateProgress=function(Ze,De,ut,$t){return this.setProgress(Ze?this.progress.val+Ze:null,De||null,ut?this.progress.n+ut:null,$t?this.progress.stack.concat($t):null)},at.prototype.then=function(Ze,De){var ut=this;return this.thenCore(Ze,De,function(zt,tt){return ut.updateProgress(null,null,1,[zt]),it.prototype.then.call(this,function(Rt){return ut.updateProgress(null,zt),Rt}).then(zt,tt).then(function(Rt){return ut.updateProgress(1),Rt})})},at.prototype.thenCore=function(Ze,De,ut){ut=ut||it.prototype.then;var $t=this;Ze&&(Ze=Ze.bind($t)),De&&(De=De.bind($t));var zt=it.toString().indexOf("[native code]")!==-1&&it.name==="Promise",tt=zt?$t:at.convert(Object.assign({},$t),it.prototype),Ot=ut.call(tt,Ze,De);return at.convert(Ot,$t.__proto__)},at.prototype.thenExternal=function(Ze,De){return it.prototype.then.call(this,Ze,De)},at.prototype.thenList=function(Ze){var De=this;return Ze.forEach(function($t){De=De.thenCore($t)}),De},at.prototype.catch=function(Bt){Bt&&(Bt=Bt.bind(this));var Ze=it.prototype.catch.call(this,Bt);return at.convert(Ze,this)},at.prototype.catchExternal=function(Ze){return it.prototype.catch.call(this,Ze)},at.prototype.error=function(Ze){return this.then(function(){throw new Error(Ze)})},at.prototype.using=at.prototype.set,at.prototype.saveAs=at.prototype.save,at.prototype.export=at.prototype.output,at.prototype.run=at.prototype.then,xe.default=at},"./node_modules/core-js/internals/a-function.js":function(he){he.exports=function(xe){if(typeof xe!="function")throw TypeError(String(xe)+" is not a function");return xe}},"./node_modules/core-js/internals/a-possible-prototype.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/is-object.js");he.exports=function(ve){if(!Oe(ve)&&ve!==null)throw TypeError("Can't set "+String(ve)+" as a prototype");return ve}},"./node_modules/core-js/internals/add-to-unscopables.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/well-known-symbol.js"),ve=oe("./node_modules/core-js/internals/object-create.js"),Me=oe("./node_modules/core-js/internals/object-define-property.js"),Se=Oe("unscopables"),Te=Array.prototype;Te[Se]==null&&Me.f(Te,Se,{configurable:!0,value:ve(null)}),he.exports=function(we){Te[Se][we]=!0}},"./node_modules/core-js/internals/an-object.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/is-object.js");he.exports=function(ve){if(!Oe(ve))throw TypeError(String(ve)+" is not an object");return ve}},"./node_modules/core-js/internals/array-for-each.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/array-iteration.js").forEach,ve=oe("./node_modules/core-js/internals/array-method-is-strict.js"),Me=ve("forEach");he.exports=Me?[].forEach:function(Te){return Oe(this,Te,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/to-indexed-object.js"),ve=oe("./node_modules/core-js/internals/to-length.js"),Me=oe("./node_modules/core-js/internals/to-absolute-index.js"),Se=function(Te){return function(we,Ce,Ee){var ke=Oe(we),Ke=ve(ke.length),Qe=Me(Ee,Ke),je;if(Te&&Ce!=Ce){for(;Ke>Qe;)if(je=ke[Qe++],je!=je)return!0}else for(;Ke>Qe;Qe++)if((Te||Qe in ke)&&ke[Qe]===Ce)return Te||Qe||0;return!Te&&-1}};he.exports={includes:Se(!0),indexOf:Se(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/function-bind-context.js"),ve=oe("./node_modules/core-js/internals/indexed-object.js"),Me=oe("./node_modules/core-js/internals/to-object.js"),Se=oe("./node_modules/core-js/internals/to-length.js"),Te=oe("./node_modules/core-js/internals/array-species-create.js"),we=[].push,Ce=function(Ee){var ke=Ee==1,Ke=Ee==2,Qe=Ee==3,je=Ee==4,qe=Ee==6,Ve=Ee==7,ct=Ee==5||qe;return function(ot,pt,bt,He){for(var ht=Me(ot),_e=ve(ht),Re=Oe(pt,bt,3),Nt=Se(_e.length),it=0,at=He||Te,Bt=ke?at(ot,Nt):Ke||Ve?at(ot,0):void 0,Ze,De;Nt>it;it++)if((ct||it in _e)&&(Ze=_e[it],De=Re(Ze,it,ht),Ee))if(ke)Bt[it]=De;else if(De)switch(Ee){case 3:return!0;case 5:return Ze;case 6:return it;case 2:we.call(Bt,Ze)}else switch(Ee){case 4:return!1;case 7:we.call(Bt,Ze)}return qe?-1:Qe||je?je:Bt}};he.exports={forEach:Ce(0),map:Ce(1),filter:Ce(2),some:Ce(3),every:Ce(4),find:Ce(5),findIndex:Ce(6),filterReject:Ce(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/fails.js"),ve=oe("./node_modules/core-js/internals/well-known-symbol.js"),Me=oe("./node_modules/core-js/internals/engine-v8-version.js"),Se=ve("species");he.exports=function(Te){return Me>=51||!Oe(function(){var we=[],Ce=we.constructor={};return Ce[Se]=function(){return{foo:1}},we[Te](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/fails.js");he.exports=function(ve,Me){var Se=[][ve];return!!Se&&Oe(function(){Se.call(null,Me||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/is-object.js"),ve=oe("./node_modules/core-js/internals/is-array.js"),Me=oe("./node_modules/core-js/internals/well-known-symbol.js"),Se=Me("species");he.exports=function(Te){var we;return ve(Te)&&(we=Te.constructor,typeof we=="function"&&(we===Array||ve(we.prototype))?we=void 0:Oe(we)&&(we=we[Se],we===null&&(we=void 0))),we===void 0?Array:we}},"./node_modules/core-js/internals/array-species-create.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/array-species-constructor.js");he.exports=function(ve,Me){return new(Oe(ve))(Me===0?0:Me)}},"./node_modules/core-js/internals/classof-raw.js":function(he){var xe={}.toString;he.exports=function(oe){return xe.call(oe).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/to-string-tag-support.js"),ve=oe("./node_modules/core-js/internals/classof-raw.js"),Me=oe("./node_modules/core-js/internals/well-known-symbol.js"),Se=Me("toStringTag"),Te=ve(function(){return arguments}())=="Arguments",we=function(Ce,Ee){try{return Ce[Ee]}catch(ke){}};he.exports=Oe?ve:function(Ce){var Ee,ke,Ke;return Ce===void 0?"Undefined":Ce===null?"Null":typeof(ke=we(Ee=Object(Ce),Se))=="string"?ke:Te?ve(Ee):(Ke=ve(Ee))=="Object"&&typeof Ee.callee=="function"?"Arguments":Ke}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/has.js"),ve=oe("./node_modules/core-js/internals/own-keys.js"),Me=oe("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),Se=oe("./node_modules/core-js/internals/object-define-property.js");he.exports=function(Te,we){for(var Ce=ve(we),Ee=Se.f,ke=Me.f,Ke=0;Ke<Ce.length;Ke++){var Qe=Ce[Ke];Oe(Te,Qe)||Ee(Te,Qe,ke(we,Qe))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/fails.js");he.exports=!Oe(function(){function ve(){}return ve.prototype.constructor=null,Object.getPrototypeOf(new ve)!==ve.prototype})},"./node_modules/core-js/internals/create-html.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/require-object-coercible.js"),ve=oe("./node_modules/core-js/internals/to-string.js"),Me=/"/g;he.exports=function(Se,Te,we,Ce){var Ee=ve(Oe(Se)),ke="<"+Te;return we!==""&&(ke+=" "+we+'="'+ve(Ce).replace(Me,"&quot;")+'"'),ke+">"+Ee+"</"+Te+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,ve=oe("./node_modules/core-js/internals/object-create.js"),Me=oe("./node_modules/core-js/internals/create-property-descriptor.js"),Se=oe("./node_modules/core-js/internals/set-to-string-tag.js"),Te=oe("./node_modules/core-js/internals/iterators.js"),we=function(){return this};he.exports=function(Ce,Ee,ke){var Ke=Ee+" Iterator";return Ce.prototype=ve(Oe,{next:Me(1,ke)}),Se(Ce,Ke,!1,!0),Te[Ke]=we,Ce}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/descriptors.js"),ve=oe("./node_modules/core-js/internals/object-define-property.js"),Me=oe("./node_modules/core-js/internals/create-property-descriptor.js");he.exports=Oe?function(Se,Te,we){return ve.f(Se,Te,Me(1,we))}:function(Se,Te,we){return Se[Te]=we,Se}},"./node_modules/core-js/internals/create-property-descriptor.js":function(he){he.exports=function(xe,oe){return{enumerable:!(xe&1),configurable:!(xe&2),writable:!(xe&4),value:oe}}},"./node_modules/core-js/internals/create-property.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/to-property-key.js"),ve=oe("./node_modules/core-js/internals/object-define-property.js"),Me=oe("./node_modules/core-js/internals/create-property-descriptor.js");he.exports=function(Se,Te,we){var Ce=Oe(Te);Ce in Se?ve.f(Se,Ce,Me(0,we)):Se[Ce]=we}},"./node_modules/core-js/internals/define-iterator.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/create-iterator-constructor.js"),Me=oe("./node_modules/core-js/internals/object-get-prototype-of.js"),Se=oe("./node_modules/core-js/internals/object-set-prototype-of.js"),Te=oe("./node_modules/core-js/internals/set-to-string-tag.js"),we=oe("./node_modules/core-js/internals/create-non-enumerable-property.js"),Ce=oe("./node_modules/core-js/internals/redefine.js"),Ee=oe("./node_modules/core-js/internals/well-known-symbol.js"),ke=oe("./node_modules/core-js/internals/is-pure.js"),Ke=oe("./node_modules/core-js/internals/iterators.js"),Qe=oe("./node_modules/core-js/internals/iterators-core.js"),je=Qe.IteratorPrototype,qe=Qe.BUGGY_SAFARI_ITERATORS,Ve=Ee("iterator"),ct="keys",ot="values",pt="entries",bt=function(){return this};he.exports=function(He,ht,_e,Re,Nt,it,at){ve(_e,ht,Re);var Bt=function(Tt){if(Tt===Nt&&zt)return zt;if(!qe&&Tt in ut)return ut[Tt];switch(Tt){case ct:return function(){return new _e(this,Tt)};case ot:return function(){return new _e(this,Tt)};case pt:return function(){return new _e(this,Tt)}}return function(){return new _e(this)}},Ze=ht+" Iterator",De=!1,ut=He.prototype,$t=ut[Ve]||ut["@@iterator"]||Nt&&ut[Nt],zt=!qe&&$t||Bt(Nt),tt=ht=="Array"&&ut.entries||$t,Ot,Rt,fn;if(tt&&(Ot=Me(tt.call(new He)),je!==Object.prototype&&Ot.next&&(!ke&&Me(Ot)!==je&&(Se?Se(Ot,je):typeof Ot[Ve]!="function"&&we(Ot,Ve,bt)),Te(Ot,Ze,!0,!0),ke&&(Ke[Ze]=bt))),Nt==ot&&$t&&$t.name!==ot&&(De=!0,zt=function(){return $t.call(this)}),(!ke||at)&&ut[Ve]!==zt&&we(ut,Ve,zt),Ke[ht]=zt,Nt)if(Rt={values:Bt(ot),keys:it?zt:Bt(ct),entries:Bt(pt)},at)for(fn in Rt)(qe||De||!(fn in ut))&&Ce(ut,fn,Rt[fn]);else Oe({target:ht,proto:!0,forced:qe||De},Rt);return Rt}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/path.js"),ve=oe("./node_modules/core-js/internals/has.js"),Me=oe("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Se=oe("./node_modules/core-js/internals/object-define-property.js").f;he.exports=function(Te){var we=Oe.Symbol||(Oe.Symbol={});ve(we,Te)||Se(we,Te,{value:Me.f(Te)})}},"./node_modules/core-js/internals/descriptors.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/fails.js");he.exports=!Oe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/is-object.js"),Me=Oe.document,Se=ve(Me)&&ve(Me.createElement);he.exports=function(Te){return Se?Me.createElement(Te):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(he){he.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(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/get-built-in.js");he.exports=Oe("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/engine-user-agent.js"),Me=Oe.process,Se=Oe.Deno,Te=Me&&Me.versions||Se&&Se.version,we=Te&&Te.v8,Ce,Ee;we?(Ce=we.split("."),Ee=Ce[0]<4?1:Ce[0]+Ce[1]):ve&&(Ce=ve.match(/Edge\/(\d+)/),(!Ce||Ce[1]>=74)&&(Ce=ve.match(/Chrome\/(\d+)/),Ce&&(Ee=Ce[1]))),he.exports=Ee&&+Ee},"./node_modules/core-js/internals/enum-bug-keys.js":function(he){he.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,Me=oe("./node_modules/core-js/internals/create-non-enumerable-property.js"),Se=oe("./node_modules/core-js/internals/redefine.js"),Te=oe("./node_modules/core-js/internals/set-global.js"),we=oe("./node_modules/core-js/internals/copy-constructor-properties.js"),Ce=oe("./node_modules/core-js/internals/is-forced.js");he.exports=function(Ee,ke){var Ke=Ee.target,Qe=Ee.global,je=Ee.stat,qe,Ve,ct,ot,pt,bt;if(Qe?Ve=Oe:je?Ve=Oe[Ke]||Te(Ke,{}):Ve=(Oe[Ke]||{}).prototype,Ve)for(ct in ke){if(pt=ke[ct],Ee.noTargetGet?(bt=ve(Ve,ct),ot=bt&&bt.value):ot=Ve[ct],qe=Ce(Qe?ct:Ke+(je?".":"#")+ct,Ee.forced),!qe&&ot!==void 0){if(typeof pt==typeof ot)continue;we(pt,ot)}(Ee.sham||ot&&ot.sham)&&Me(pt,"sham",!0),Se(Ve,ct,pt,Ee)}}},"./node_modules/core-js/internals/fails.js":function(he){he.exports=function(xe){try{return!!xe()}catch(oe){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/a-function.js");he.exports=function(ve,Me,Se){if(Oe(ve),Me===void 0)return ve;switch(Se){case 0:return function(){return ve.call(Me)};case 1:return function(Te){return ve.call(Me,Te)};case 2:return function(Te,we){return ve.call(Me,Te,we)};case 3:return function(Te,we,Ce){return ve.call(Me,Te,we,Ce)}}return function(){return ve.apply(Me,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=function(Me){return typeof Me=="function"?Me:void 0};he.exports=function(Me,Se){return arguments.length<2?ve(Oe[Me]):Oe[Me]&&Oe[Me][Se]}},"./node_modules/core-js/internals/global.js":function(he){var xe=function(oe){return oe&&oe.Math==Math&&oe};he.exports=xe(typeof globalThis=="object"&&globalThis)||xe(typeof window=="object"&&window)||xe(typeof self=="object"&&self)||xe(typeof ae.g=="object"&&ae.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/to-object.js"),ve={}.hasOwnProperty;he.exports=Object.hasOwn||function(Se,Te){return ve.call(Oe(Se),Te)}},"./node_modules/core-js/internals/hidden-keys.js":function(he){he.exports={}},"./node_modules/core-js/internals/html.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/get-built-in.js");he.exports=Oe("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/descriptors.js"),ve=oe("./node_modules/core-js/internals/fails.js"),Me=oe("./node_modules/core-js/internals/document-create-element.js");he.exports=!Oe&&!ve(function(){return Object.defineProperty(Me("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/fails.js"),ve=oe("./node_modules/core-js/internals/classof-raw.js"),Me="".split;he.exports=Oe(function(){return!Object("z").propertyIsEnumerable(0)})?function(Se){return ve(Se)=="String"?Me.call(Se,""):Object(Se)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/is-object.js"),ve=oe("./node_modules/core-js/internals/object-set-prototype-of.js");he.exports=function(Me,Se,Te){var we,Ce;return ve&&typeof(we=Se.constructor)=="function"&&we!==Te&&Oe(Ce=we.prototype)&&Ce!==Te.prototype&&ve(Me,Ce),Me}},"./node_modules/core-js/internals/inspect-source.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/shared-store.js"),ve=Function.toString;typeof Oe.inspectSource!="function"&&(Oe.inspectSource=function(Me){return ve.call(Me)}),he.exports=Oe.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/native-weak-map.js"),ve=oe("./node_modules/core-js/internals/global.js"),Me=oe("./node_modules/core-js/internals/is-object.js"),Se=oe("./node_modules/core-js/internals/create-non-enumerable-property.js"),Te=oe("./node_modules/core-js/internals/has.js"),we=oe("./node_modules/core-js/internals/shared-store.js"),Ce=oe("./node_modules/core-js/internals/shared-key.js"),Ee=oe("./node_modules/core-js/internals/hidden-keys.js"),ke="Object already initialized",Ke=ve.WeakMap,Qe,je,qe,Ve=function(_e){return qe(_e)?je(_e):Qe(_e,{})},ct=function(_e){return function(Re){var Nt;if(!Me(Re)||(Nt=je(Re)).type!==_e)throw TypeError("Incompatible receiver, "+_e+" required");return Nt}};if(Oe||we.state){var ot=we.state||(we.state=new Ke),pt=ot.get,bt=ot.has,He=ot.set;Qe=function(_e,Re){if(bt.call(ot,_e))throw new TypeError(ke);return Re.facade=_e,He.call(ot,_e,Re),Re},je=function(_e){return pt.call(ot,_e)||{}},qe=function(_e){return bt.call(ot,_e)}}else{var ht=Ce("state");Ee[ht]=!0,Qe=function(_e,Re){if(Te(_e,ht))throw new TypeError(ke);return Re.facade=_e,Se(_e,ht,Re),Re},je=function(_e){return Te(_e,ht)?_e[ht]:{}},qe=function(_e){return Te(_e,ht)}}he.exports={set:Qe,get:je,has:qe,enforce:Ve,getterFor:ct}},"./node_modules/core-js/internals/is-array.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/classof-raw.js");he.exports=Array.isArray||function(Me){return Oe(Me)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/fails.js"),ve=/#|\.prototype\./,Me=function(Ee,ke){var Ke=Te[Se(Ee)];return Ke==Ce?!0:Ke==we?!1:typeof ke=="function"?Oe(ke):!!ke},Se=Me.normalize=function(Ee){return String(Ee).replace(ve,".").toLowerCase()},Te=Me.data={},we=Me.NATIVE="N",Ce=Me.POLYFILL="P";he.exports=Me},"./node_modules/core-js/internals/is-object.js":function(he){he.exports=function(xe){return typeof xe=="object"?xe!==null:typeof xe=="function"}},"./node_modules/core-js/internals/is-pure.js":function(he){he.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/get-built-in.js"),ve=oe("./node_modules/core-js/internals/use-symbol-as-uid.js");he.exports=ve?function(Me){return typeof Me=="symbol"}:function(Me){var Se=Oe("Symbol");return typeof Se=="function"&&Object(Me)instanceof Se}},"./node_modules/core-js/internals/iterators-core.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/fails.js"),ve=oe("./node_modules/core-js/internals/object-get-prototype-of.js"),Me=oe("./node_modules/core-js/internals/create-non-enumerable-property.js"),Se=oe("./node_modules/core-js/internals/has.js"),Te=oe("./node_modules/core-js/internals/well-known-symbol.js"),we=oe("./node_modules/core-js/internals/is-pure.js"),Ce=Te("iterator"),Ee=!1,ke=function(){return this},Ke,Qe,je;[].keys&&(je=[].keys(),"next"in je?(Qe=ve(ve(je)),Qe!==Object.prototype&&(Ke=Qe)):Ee=!0);var qe=Ke==null||Oe(function(){var Ve={};return Ke[Ce].call(Ve)!==Ve});qe&&(Ke={}),(!we||qe)&&!Se(Ke,Ce)&&Me(Ke,Ce,ke),he.exports={IteratorPrototype:Ke,BUGGY_SAFARI_ITERATORS:Ee}},"./node_modules/core-js/internals/iterators.js":function(he){he.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/engine-v8-version.js"),ve=oe("./node_modules/core-js/internals/fails.js");he.exports=!!Object.getOwnPropertySymbols&&!ve(function(){var Me=Symbol();return!String(Me)||!(Object(Me)instanceof Symbol)||!Symbol.sham&&Oe&&Oe<41})},"./node_modules/core-js/internals/native-weak-map.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/inspect-source.js"),Me=Oe.WeakMap;he.exports=typeof Me=="function"&&/native code/.test(ve(Me))},"./node_modules/core-js/internals/object-assign.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/descriptors.js"),ve=oe("./node_modules/core-js/internals/fails.js"),Me=oe("./node_modules/core-js/internals/object-keys.js"),Se=oe("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Te=oe("./node_modules/core-js/internals/object-property-is-enumerable.js"),we=oe("./node_modules/core-js/internals/to-object.js"),Ce=oe("./node_modules/core-js/internals/indexed-object.js"),Ee=Object.assign,ke=Object.defineProperty;he.exports=!Ee||ve(function(){if(Oe&&Ee({b:1},Ee(ke({},"a",{enumerable:!0,get:function(){ke(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var Ke={},Qe={},je=Symbol(),qe="abcdefghijklmnopqrst";return Ke[je]=7,qe.split("").forEach(function(Ve){Qe[Ve]=Ve}),Ee({},Ke)[je]!=7||Me(Ee({},Qe)).join("")!=qe})?function(Qe,je){for(var qe=we(Qe),Ve=arguments.length,ct=1,ot=Se.f,pt=Te.f;Ve>ct;)for(var bt=Ce(arguments[ct++]),He=ot?Me(bt).concat(ot(bt)):Me(bt),ht=He.length,_e=0,Re;ht>_e;)Re=He[_e++],(!Oe||pt.call(bt,Re))&&(qe[Re]=bt[Re]);return qe}:Ee},"./node_modules/core-js/internals/object-create.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/an-object.js"),ve=oe("./node_modules/core-js/internals/object-define-properties.js"),Me=oe("./node_modules/core-js/internals/enum-bug-keys.js"),Se=oe("./node_modules/core-js/internals/hidden-keys.js"),Te=oe("./node_modules/core-js/internals/html.js"),we=oe("./node_modules/core-js/internals/document-create-element.js"),Ce=oe("./node_modules/core-js/internals/shared-key.js"),Ee=">",ke="<",Ke="prototype",Qe="script",je=Ce("IE_PROTO"),qe=function(){},Ve=function(He){return ke+Qe+Ee+He+ke+"/"+Qe+Ee},ct=function(He){He.write(Ve("")),He.close();var ht=He.parentWindow.Object;return He=null,ht},ot=function(){var He=we("iframe"),ht="java"+Qe+":",_e;if(He.style)return He.style.display="none",Te.appendChild(He),He.src=String(ht),_e=He.contentWindow.document,_e.open(),_e.write(Ve("document.F=Object")),_e.close(),_e.F},pt,bt=function(){try{pt=new ActiveXObject("htmlfile")}catch(ht){}bt=document.domain&&pt?ct(pt):ot()||ct(pt);for(var He=Me.length;He--;)delete bt[Ke][Me[He]];return bt()};Se[je]=!0,he.exports=Object.create||function(ht,_e){var Re;return ht!==null?(qe[Ke]=Oe(ht),Re=new qe,qe[Ke]=null,Re[je]=ht):Re=bt(),_e===void 0?Re:ve(Re,_e)}},"./node_modules/core-js/internals/object-define-properties.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/descriptors.js"),ve=oe("./node_modules/core-js/internals/object-define-property.js"),Me=oe("./node_modules/core-js/internals/an-object.js"),Se=oe("./node_modules/core-js/internals/object-keys.js");he.exports=Oe?Object.defineProperties:function(we,Ce){Me(we);for(var Ee=Se(Ce),ke=Ee.length,Ke=0,Qe;ke>Ke;)ve.f(we,Qe=Ee[Ke++],Ce[Qe]);return we}},"./node_modules/core-js/internals/object-define-property.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/descriptors.js"),ve=oe("./node_modules/core-js/internals/ie8-dom-define.js"),Me=oe("./node_modules/core-js/internals/an-object.js"),Se=oe("./node_modules/core-js/internals/to-property-key.js"),Te=Object.defineProperty;xe.f=Oe?Te:function(Ce,Ee,ke){if(Me(Ce),Ee=Se(Ee),Me(ke),ve)try{return Te(Ce,Ee,ke)}catch(Ke){}if("get"in ke||"set"in ke)throw TypeError("Accessors not supported");return"value"in ke&&(Ce[Ee]=ke.value),Ce}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/descriptors.js"),ve=oe("./node_modules/core-js/internals/object-property-is-enumerable.js"),Me=oe("./node_modules/core-js/internals/create-property-descriptor.js"),Se=oe("./node_modules/core-js/internals/to-indexed-object.js"),Te=oe("./node_modules/core-js/internals/to-property-key.js"),we=oe("./node_modules/core-js/internals/has.js"),Ce=oe("./node_modules/core-js/internals/ie8-dom-define.js"),Ee=Object.getOwnPropertyDescriptor;xe.f=Oe?Ee:function(Ke,Qe){if(Ke=Se(Ke),Qe=Te(Qe),Ce)try{return Ee(Ke,Qe)}catch(je){}if(we(Ke,Qe))return Me(!ve.f.call(Ke,Qe),Ke[Qe])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/to-indexed-object.js"),ve=oe("./node_modules/core-js/internals/object-get-own-property-names.js").f,Me={}.toString,Se=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Te=function(we){try{return ve(we)}catch(Ce){return Se.slice()}};he.exports.f=function(Ce){return Se&&Me.call(Ce)=="[object Window]"?Te(Ce):ve(Oe(Ce))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/object-keys-internal.js"),ve=oe("./node_modules/core-js/internals/enum-bug-keys.js"),Me=ve.concat("length","prototype");xe.f=Object.getOwnPropertyNames||function(Te){return Oe(Te,Me)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(he,xe){xe.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/has.js"),ve=oe("./node_modules/core-js/internals/to-object.js"),Me=oe("./node_modules/core-js/internals/shared-key.js"),Se=oe("./node_modules/core-js/internals/correct-prototype-getter.js"),Te=Me("IE_PROTO"),we=Object.prototype;he.exports=Se?Object.getPrototypeOf:function(Ce){return Ce=ve(Ce),Oe(Ce,Te)?Ce[Te]:typeof Ce.constructor=="function"&&Ce instanceof Ce.constructor?Ce.constructor.prototype:Ce instanceof Object?we:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/has.js"),ve=oe("./node_modules/core-js/internals/to-indexed-object.js"),Me=oe("./node_modules/core-js/internals/array-includes.js").indexOf,Se=oe("./node_modules/core-js/internals/hidden-keys.js");he.exports=function(Te,we){var Ce=ve(Te),Ee=0,ke=[],Ke;for(Ke in Ce)!Oe(Se,Ke)&&Oe(Ce,Ke)&&ke.push(Ke);for(;we.length>Ee;)Oe(Ce,Ke=we[Ee++])&&(~Me(ke,Ke)||ke.push(Ke));return ke}},"./node_modules/core-js/internals/object-keys.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/object-keys-internal.js"),ve=oe("./node_modules/core-js/internals/enum-bug-keys.js");he.exports=Object.keys||function(Se){return Oe(Se,ve)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(he,xe){"use strict";var oe={}.propertyIsEnumerable,Oe=Object.getOwnPropertyDescriptor,ve=Oe&&!oe.call({1:2},1);xe.f=ve?function(Se){var Te=Oe(this,Se);return!!Te&&Te.enumerable}:oe},"./node_modules/core-js/internals/object-set-prototype-of.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/an-object.js"),ve=oe("./node_modules/core-js/internals/a-possible-prototype.js");he.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var Me=!1,Se={},Te;try{Te=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,Te.call(Se,[]),Me=Se instanceof Array}catch(we){}return function(Ce,Ee){return Oe(Ce),ve(Ee),Me?Te.call(Ce,Ee):Ce.__proto__=Ee,Ce}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/to-string-tag-support.js"),ve=oe("./node_modules/core-js/internals/classof.js");he.exports=Oe?{}.toString:function(){return"[object "+ve(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/is-object.js");he.exports=function(ve,Me){var Se,Te;if(Me==="string"&&typeof(Se=ve.toString)=="function"&&!Oe(Te=Se.call(ve))||typeof(Se=ve.valueOf)=="function"&&!Oe(Te=Se.call(ve))||Me!=="string"&&typeof(Se=ve.toString)=="function"&&!Oe(Te=Se.call(ve)))return Te;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/get-built-in.js"),ve=oe("./node_modules/core-js/internals/object-get-own-property-names.js"),Me=oe("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Se=oe("./node_modules/core-js/internals/an-object.js");he.exports=Oe("Reflect","ownKeys")||function(we){var Ce=ve.f(Se(we)),Ee=Me.f;return Ee?Ce.concat(Ee(we)):Ce}},"./node_modules/core-js/internals/path.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/global.js");he.exports=Oe},"./node_modules/core-js/internals/redefine.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/create-non-enumerable-property.js"),Me=oe("./node_modules/core-js/internals/has.js"),Se=oe("./node_modules/core-js/internals/set-global.js"),Te=oe("./node_modules/core-js/internals/inspect-source.js"),we=oe("./node_modules/core-js/internals/internal-state.js"),Ce=we.get,Ee=we.enforce,ke=String(String).split("String");(he.exports=function(Ke,Qe,je,qe){var Ve=qe?!!qe.unsafe:!1,ct=qe?!!qe.enumerable:!1,ot=qe?!!qe.noTargetGet:!1,pt;if(typeof je=="function"&&(typeof Qe=="string"&&!Me(je,"name")&&ve(je,"name",Qe),pt=Ee(je),pt.source||(pt.source=ke.join(typeof Qe=="string"?Qe:""))),Ke===Oe){ct?Ke[Qe]=je:Se(Qe,je);return}else Ve?!ot&&Ke[Qe]&&(ct=!0):delete Ke[Qe];ct?Ke[Qe]=je:ve(Ke,Qe,je)})(Function.prototype,"toString",function(){return typeof this=="function"&&Ce(this).source||Te(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/an-object.js");he.exports=function(){var ve=Oe(this),Me="";return ve.global&&(Me+="g"),ve.ignoreCase&&(Me+="i"),ve.multiline&&(Me+="m"),ve.dotAll&&(Me+="s"),ve.unicode&&(Me+="u"),ve.sticky&&(Me+="y"),Me}},"./node_modules/core-js/internals/require-object-coercible.js":function(he){he.exports=function(xe){if(xe==null)throw TypeError("Can't call method on "+xe);return xe}},"./node_modules/core-js/internals/set-global.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/global.js");he.exports=function(ve,Me){try{Object.defineProperty(Oe,ve,{value:Me,configurable:!0,writable:!0})}catch(Se){Oe[ve]=Me}return Me}},"./node_modules/core-js/internals/set-to-string-tag.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/object-define-property.js").f,ve=oe("./node_modules/core-js/internals/has.js"),Me=oe("./node_modules/core-js/internals/well-known-symbol.js"),Se=Me("toStringTag");he.exports=function(Te,we,Ce){Te&&!ve(Te=Ce?Te:Te.prototype,Se)&&Oe(Te,Se,{configurable:!0,value:we})}},"./node_modules/core-js/internals/shared-key.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/shared.js"),ve=oe("./node_modules/core-js/internals/uid.js"),Me=Oe("keys");he.exports=function(Se){return Me[Se]||(Me[Se]=ve(Se))}},"./node_modules/core-js/internals/shared-store.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/set-global.js"),Me="__core-js_shared__",Se=Oe[Me]||ve(Me,{});he.exports=Se},"./node_modules/core-js/internals/shared.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/is-pure.js"),ve=oe("./node_modules/core-js/internals/shared-store.js");(he.exports=function(Me,Se){return ve[Me]||(ve[Me]=Se!==void 0?Se:{})})("versions",[]).push({version:"3.16.0",mode:Oe?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/fails.js");he.exports=function(ve){return Oe(function(){var Me=""[ve]('"');return Me!==Me.toLowerCase()||Me.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/to-integer.js"),ve=oe("./node_modules/core-js/internals/to-string.js"),Me=oe("./node_modules/core-js/internals/require-object-coercible.js"),Se=function(Te){return function(we,Ce){var Ee=ve(Me(we)),ke=Oe(Ce),Ke=Ee.length,Qe,je;return ke<0||ke>=Ke?Te?"":void 0:(Qe=Ee.charCodeAt(ke),Qe<55296||Qe>56319||ke+1===Ke||(je=Ee.charCodeAt(ke+1))<56320||je>57343?Te?Ee.charAt(ke):Qe:Te?Ee.slice(ke,ke+2):(Qe-55296<<10)+(je-56320)+65536)}};he.exports={codeAt:Se(!1),charAt:Se(!0)}},"./node_modules/core-js/internals/string-trim.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/require-object-coercible.js"),ve=oe("./node_modules/core-js/internals/to-string.js"),Me=oe("./node_modules/core-js/internals/whitespaces.js"),Se="["+Me+"]",Te=RegExp("^"+Se+Se+"*"),we=RegExp(Se+Se+"*$"),Ce=function(Ee){return function(ke){var Ke=ve(Oe(ke));return Ee&1&&(Ke=Ke.replace(Te,"")),Ee&2&&(Ke=Ke.replace(we,"")),Ke}};he.exports={start:Ce(1),end:Ce(2),trim:Ce(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/to-integer.js"),ve=Math.max,Me=Math.min;he.exports=function(Se,Te){var we=Oe(Se);return we<0?ve(we+Te,0):Me(we,Te)}},"./node_modules/core-js/internals/to-indexed-object.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/indexed-object.js"),ve=oe("./node_modules/core-js/internals/require-object-coercible.js");he.exports=function(Me){return Oe(ve(Me))}},"./node_modules/core-js/internals/to-integer.js":function(he){var xe=Math.ceil,oe=Math.floor;he.exports=function(Oe){return isNaN(Oe=+Oe)?0:(Oe>0?oe:xe)(Oe)}},"./node_modules/core-js/internals/to-length.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/to-integer.js"),ve=Math.min;he.exports=function(Me){return Me>0?ve(Oe(Me),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/require-object-coercible.js");he.exports=function(ve){return Object(Oe(ve))}},"./node_modules/core-js/internals/to-primitive.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/is-object.js"),ve=oe("./node_modules/core-js/internals/is-symbol.js"),Me=oe("./node_modules/core-js/internals/ordinary-to-primitive.js"),Se=oe("./node_modules/core-js/internals/well-known-symbol.js"),Te=Se("toPrimitive");he.exports=function(we,Ce){if(!Oe(we)||ve(we))return we;var Ee=we[Te],ke;if(Ee!==void 0){if(Ce===void 0&&(Ce="default"),ke=Ee.call(we,Ce),!Oe(ke)||ve(ke))return ke;throw TypeError("Can't convert object to primitive value")}return Ce===void 0&&(Ce="number"),Me(we,Ce)}},"./node_modules/core-js/internals/to-property-key.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/to-primitive.js"),ve=oe("./node_modules/core-js/internals/is-symbol.js");he.exports=function(Me){var Se=Oe(Me,"string");return ve(Se)?Se:String(Se)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/well-known-symbol.js"),ve=Oe("toStringTag"),Me={};Me[ve]="z",he.exports=String(Me)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/is-symbol.js");he.exports=function(ve){if(Oe(ve))throw TypeError("Cannot convert a Symbol value to a string");return String(ve)}},"./node_modules/core-js/internals/uid.js":function(he){var xe=0,oe=Math.random();he.exports=function(Oe){return"Symbol("+String(Oe===void 0?"":Oe)+")_"+(++xe+oe).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/native-symbol.js");he.exports=Oe&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/well-known-symbol.js");xe.f=Oe},"./node_modules/core-js/internals/well-known-symbol.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/shared.js"),Me=oe("./node_modules/core-js/internals/has.js"),Se=oe("./node_modules/core-js/internals/uid.js"),Te=oe("./node_modules/core-js/internals/native-symbol.js"),we=oe("./node_modules/core-js/internals/use-symbol-as-uid.js"),Ce=ve("wks"),Ee=Oe.Symbol,ke=we?Ee:Ee&&Ee.withoutSetter||Se;he.exports=function(Ke){return(!Me(Ce,Ke)||!(Te||typeof Ce[Ke]=="string"))&&(Te&&Me(Ee,Ke)?Ce[Ke]=Ee[Ke]:Ce[Ke]=ke("Symbol."+Ke)),Ce[Ke]}},"./node_modules/core-js/internals/whitespaces.js":function(he){he.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(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/fails.js"),Me=oe("./node_modules/core-js/internals/is-array.js"),Se=oe("./node_modules/core-js/internals/is-object.js"),Te=oe("./node_modules/core-js/internals/to-object.js"),we=oe("./node_modules/core-js/internals/to-length.js"),Ce=oe("./node_modules/core-js/internals/create-property.js"),Ee=oe("./node_modules/core-js/internals/array-species-create.js"),ke=oe("./node_modules/core-js/internals/array-method-has-species-support.js"),Ke=oe("./node_modules/core-js/internals/well-known-symbol.js"),Qe=oe("./node_modules/core-js/internals/engine-v8-version.js"),je=Ke("isConcatSpreadable"),qe=9007199254740991,Ve="Maximum allowed index exceeded",ct=Qe>=51||!ve(function(){var He=[];return He[je]=!1,He.concat()[0]!==He}),ot=ke("concat"),pt=function(He){if(!Se(He))return!1;var ht=He[je];return ht!==void 0?!!ht:Me(He)},bt=!ct||!ot;Oe({target:"Array",proto:!0,forced:bt},{concat:function(ht){var _e=Te(this),Re=Ee(_e,0),Nt=0,it,at,Bt,Ze,De;for(it=-1,Bt=arguments.length;it<Bt;it++)if(De=it===-1?_e:arguments[it],pt(De)){if(Ze=we(De.length),Nt+Ze>qe)throw TypeError(Ve);for(at=0;at<Ze;at++,Nt++)at in De&&Ce(Re,Nt,De[at])}else{if(Nt>=qe)throw TypeError(Ve);Ce(Re,Nt++,De)}return Re.length=Nt,Re}})},"./node_modules/core-js/modules/es.array.iterator.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/to-indexed-object.js"),ve=oe("./node_modules/core-js/internals/add-to-unscopables.js"),Me=oe("./node_modules/core-js/internals/iterators.js"),Se=oe("./node_modules/core-js/internals/internal-state.js"),Te=oe("./node_modules/core-js/internals/define-iterator.js"),we="Array Iterator",Ce=Se.set,Ee=Se.getterFor(we);he.exports=Te(Array,"Array",function(ke,Ke){Ce(this,{type:we,target:Oe(ke),index:0,kind:Ke})},function(){var ke=Ee(this),Ke=ke.target,Qe=ke.kind,je=ke.index++;return!Ke||je>=Ke.length?(ke.target=void 0,{value:void 0,done:!0}):Qe=="keys"?{value:je,done:!1}:Qe=="values"?{value:Ke[je],done:!1}:{value:[je,Ke[je]],done:!1}},"values"),Me.Arguments=Me.Array,ve("keys"),ve("values"),ve("entries")},"./node_modules/core-js/modules/es.array.join.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/indexed-object.js"),Me=oe("./node_modules/core-js/internals/to-indexed-object.js"),Se=oe("./node_modules/core-js/internals/array-method-is-strict.js"),Te=[].join,we=ve!=Object,Ce=Se("join",",");Oe({target:"Array",proto:!0,forced:we||!Ce},{join:function(ke){return Te.call(Me(this),ke===void 0?",":ke)}})},"./node_modules/core-js/modules/es.array.map.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/array-iteration.js").map,Me=oe("./node_modules/core-js/internals/array-method-has-species-support.js"),Se=Me("map");Oe({target:"Array",proto:!0,forced:!Se},{map:function(we){return ve(this,we,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/is-object.js"),Me=oe("./node_modules/core-js/internals/is-array.js"),Se=oe("./node_modules/core-js/internals/to-absolute-index.js"),Te=oe("./node_modules/core-js/internals/to-length.js"),we=oe("./node_modules/core-js/internals/to-indexed-object.js"),Ce=oe("./node_modules/core-js/internals/create-property.js"),Ee=oe("./node_modules/core-js/internals/well-known-symbol.js"),ke=oe("./node_modules/core-js/internals/array-method-has-species-support.js"),Ke=ke("slice"),Qe=Ee("species"),je=[].slice,qe=Math.max;Oe({target:"Array",proto:!0,forced:!Ke},{slice:function(ct,ot){var pt=we(this),bt=Te(pt.length),He=Se(ct,bt),ht=Se(ot===void 0?bt:ot,bt),_e,Re,Nt;if(Me(pt)&&(_e=pt.constructor,typeof _e=="function"&&(_e===Array||Me(_e.prototype))?_e=void 0:ve(_e)&&(_e=_e[Qe],_e===null&&(_e=void 0)),_e===Array||_e===void 0))return je.call(pt,He,ht);for(Re=new(_e===void 0?Array:_e)(qe(ht-He,0)),Nt=0;He<ht;He++,Nt++)He in pt&&Ce(Re,Nt,pt[He]);return Re.length=Nt,Re}})},"./node_modules/core-js/modules/es.function.name.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/descriptors.js"),ve=oe("./node_modules/core-js/internals/object-define-property.js").f,Me=Function.prototype,Se=Me.toString,Te=/^\s*function ([^ (]*)/,we="name";Oe&&!(we in Me)&&ve(Me,we,{configurable:!0,get:function(){try{return Se.call(this).match(Te)[1]}catch(Ce){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/descriptors.js"),ve=oe("./node_modules/core-js/internals/global.js"),Me=oe("./node_modules/core-js/internals/is-forced.js"),Se=oe("./node_modules/core-js/internals/redefine.js"),Te=oe("./node_modules/core-js/internals/has.js"),we=oe("./node_modules/core-js/internals/classof-raw.js"),Ce=oe("./node_modules/core-js/internals/inherit-if-required.js"),Ee=oe("./node_modules/core-js/internals/is-symbol.js"),ke=oe("./node_modules/core-js/internals/to-primitive.js"),Ke=oe("./node_modules/core-js/internals/fails.js"),Qe=oe("./node_modules/core-js/internals/object-create.js"),je=oe("./node_modules/core-js/internals/object-get-own-property-names.js").f,qe=oe("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,Ve=oe("./node_modules/core-js/internals/object-define-property.js").f,ct=oe("./node_modules/core-js/internals/string-trim.js").trim,ot="Number",pt=ve[ot],bt=pt.prototype,He=we(Qe(bt))==ot,ht=function(at){if(Ee(at))throw TypeError("Cannot convert a Symbol value to a number");var Bt=ke(at,"number"),Ze,De,ut,$t,zt,tt,Ot,Rt;if(typeof Bt=="string"&&Bt.length>2){if(Bt=ct(Bt),Ze=Bt.charCodeAt(0),Ze===43||Ze===45){if(De=Bt.charCodeAt(2),De===88||De===120)return NaN}else if(Ze===48){switch(Bt.charCodeAt(1)){case 66:case 98:ut=2,$t=49;break;case 79:case 111:ut=8,$t=55;break;default:return+Bt}for(zt=Bt.slice(2),tt=zt.length,Ot=0;Ot<tt;Ot++)if(Rt=zt.charCodeAt(Ot),Rt<48||Rt>$t)return NaN;return parseInt(zt,ut)}}return+Bt};if(Me(ot,!pt(" 0o1")||!pt("0b1")||pt("+0x1"))){for(var _e=function(Bt){var Ze=arguments.length<1?0:Bt,De=this;return De instanceof _e&&(He?Ke(function(){bt.valueOf.call(De)}):we(De)!=ot)?Ce(new pt(ht(Ze)),De,_e):ht(Ze)},Re=Oe?je(pt):"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(","),Nt=0,it;Re.length>Nt;Nt++)Te(pt,it=Re[Nt])&&!Te(_e,it)&&Ve(_e,it,qe(pt,it));_e.prototype=bt,bt.constructor=_e,Se(ve,ot,_e)}},"./node_modules/core-js/modules/es.object.assign.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/object-assign.js");Oe({target:"Object",stat:!0,forced:Object.assign!==ve},{assign:ve})},"./node_modules/core-js/modules/es.object.keys.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/to-object.js"),Me=oe("./node_modules/core-js/internals/object-keys.js"),Se=oe("./node_modules/core-js/internals/fails.js"),Te=Se(function(){Me(1)});Oe({target:"Object",stat:!0,forced:Te},{keys:function(Ce){return Me(ve(Ce))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/to-string-tag-support.js"),ve=oe("./node_modules/core-js/internals/redefine.js"),Me=oe("./node_modules/core-js/internals/object-to-string.js");Oe||ve(Object.prototype,"toString",Me,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/redefine.js"),ve=oe("./node_modules/core-js/internals/an-object.js"),Me=oe("./node_modules/core-js/internals/to-string.js"),Se=oe("./node_modules/core-js/internals/fails.js"),Te=oe("./node_modules/core-js/internals/regexp-flags.js"),we="toString",Ce=RegExp.prototype,Ee=Ce[we],ke=Se(function(){return Ee.call({source:"a",flags:"b"})!="/a/b"}),Ke=Ee.name!=we;(ke||Ke)&&Oe(RegExp.prototype,we,function(){var je=ve(this),qe=Me(je.source),Ve=je.flags,ct=Me(Ve===void 0&&je instanceof RegExp&&!("flags"in Ce)?Te.call(je):Ve);return"/"+qe+"/"+ct},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/string-multibyte.js").charAt,ve=oe("./node_modules/core-js/internals/to-string.js"),Me=oe("./node_modules/core-js/internals/internal-state.js"),Se=oe("./node_modules/core-js/internals/define-iterator.js"),Te="String Iterator",we=Me.set,Ce=Me.getterFor(Te);Se(String,"String",function(Ee){we(this,{type:Te,string:ve(Ee),index:0})},function(){var ke=Ce(this),Ke=ke.string,Qe=ke.index,je;return Qe>=Ke.length?{value:void 0,done:!0}:(je=Oe(Ke,Qe),ke.index+=je.length,{value:je,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/create-html.js"),Me=oe("./node_modules/core-js/internals/string-html-forced.js");Oe({target:"String",proto:!0,forced:Me("link")},{link:function(Te){return ve(this,"a","href",Te)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/descriptors.js"),Me=oe("./node_modules/core-js/internals/global.js"),Se=oe("./node_modules/core-js/internals/has.js"),Te=oe("./node_modules/core-js/internals/is-object.js"),we=oe("./node_modules/core-js/internals/object-define-property.js").f,Ce=oe("./node_modules/core-js/internals/copy-constructor-properties.js"),Ee=Me.Symbol;if(ve&&typeof Ee=="function"&&(!("description"in Ee.prototype)||Ee().description!==void 0)){var ke={},Ke=function(){var ot=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),pt=this instanceof Ke?new Ee(ot):ot===void 0?Ee():Ee(ot);return ot===""&&(ke[pt]=!0),pt};Ce(Ke,Ee);var Qe=Ke.prototype=Ee.prototype;Qe.constructor=Ke;var je=Qe.toString,qe=String(Ee("test"))=="Symbol(test)",Ve=/^Symbol\((.*)\)[^)]+$/;we(Qe,"description",{configurable:!0,get:function(){var ot=Te(this)?this.valueOf():this,pt=je.call(ot);if(Se(ke,ot))return"";var bt=qe?pt.slice(7,-1):pt.replace(Ve,"$1");return bt===""?void 0:bt}}),Oe({global:!0,forced:!0},{Symbol:Ke})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/define-well-known-symbol.js");Oe("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(he,xe,oe){"use strict";var Oe=oe("./node_modules/core-js/internals/export.js"),ve=oe("./node_modules/core-js/internals/global.js"),Me=oe("./node_modules/core-js/internals/get-built-in.js"),Se=oe("./node_modules/core-js/internals/is-pure.js"),Te=oe("./node_modules/core-js/internals/descriptors.js"),we=oe("./node_modules/core-js/internals/native-symbol.js"),Ce=oe("./node_modules/core-js/internals/fails.js"),Ee=oe("./node_modules/core-js/internals/has.js"),ke=oe("./node_modules/core-js/internals/is-array.js"),Ke=oe("./node_modules/core-js/internals/is-object.js"),Qe=oe("./node_modules/core-js/internals/is-symbol.js"),je=oe("./node_modules/core-js/internals/an-object.js"),qe=oe("./node_modules/core-js/internals/to-object.js"),Ve=oe("./node_modules/core-js/internals/to-indexed-object.js"),ct=oe("./node_modules/core-js/internals/to-property-key.js"),ot=oe("./node_modules/core-js/internals/to-string.js"),pt=oe("./node_modules/core-js/internals/create-property-descriptor.js"),bt=oe("./node_modules/core-js/internals/object-create.js"),He=oe("./node_modules/core-js/internals/object-keys.js"),ht=oe("./node_modules/core-js/internals/object-get-own-property-names.js"),_e=oe("./node_modules/core-js/internals/object-get-own-property-names-external.js"),Re=oe("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Nt=oe("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),it=oe("./node_modules/core-js/internals/object-define-property.js"),at=oe("./node_modules/core-js/internals/object-property-is-enumerable.js"),Bt=oe("./node_modules/core-js/internals/create-non-enumerable-property.js"),Ze=oe("./node_modules/core-js/internals/redefine.js"),De=oe("./node_modules/core-js/internals/shared.js"),ut=oe("./node_modules/core-js/internals/shared-key.js"),$t=oe("./node_modules/core-js/internals/hidden-keys.js"),zt=oe("./node_modules/core-js/internals/uid.js"),tt=oe("./node_modules/core-js/internals/well-known-symbol.js"),Ot=oe("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Rt=oe("./node_modules/core-js/internals/define-well-known-symbol.js"),fn=oe("./node_modules/core-js/internals/set-to-string-tag.js"),Tt=oe("./node_modules/core-js/internals/internal-state.js"),mn=oe("./node_modules/core-js/internals/array-iteration.js").forEach,Dt=ut("hidden"),En="Symbol",rn="prototype",de=tt("toPrimitive"),pe=Tt.set,ie=Tt.getterFor(En),ee=Object[rn],se=ve.Symbol,le=Me("JSON","stringify"),Be=Nt.f,We=it.f,st=_e.f,mt=at.f,gt=De("symbols"),Et=De("op-symbols"),Lt=De("string-to-symbol-registry"),jt=De("symbol-to-string-registry"),Ct=De("wks"),lt=ve.QObject,Vt=!lt||!lt[rn]||!lt[rn].findChild,Zt=Te&&Ce(function(){return bt(We({},"a",{get:function(){return We(this,"a",{value:7}).a}})).a!=7})?function(It,Wt,on){var vn=Be(ee,Wt);vn&&delete ee[Wt],We(It,Wt,on),vn&&It!==ee&&We(ee,Wt,vn)}:We,gn=function(It,Wt){var on=gt[It]=bt(se[rn]);return pe(on,{type:En,tag:It,description:Wt}),Te||(on.description=Wt),on},sn=function(Wt,on,vn){Wt===ee&&sn(Et,on,vn),je(Wt);var Yn=ct(on);return je(vn),Ee(gt,Yn)?(vn.enumerable?(Ee(Wt,Dt)&&Wt[Dt][Yn]&&(Wt[Dt][Yn]=!1),vn=bt(vn,{enumerable:pt(0,!1)})):(Ee(Wt,Dt)||We(Wt,Dt,pt(1,{})),Wt[Dt][Yn]=!0),Zt(Wt,Yn,vn)):We(Wt,Yn,vn)},en=function(Wt,on){je(Wt);var vn=Ve(on),Yn=He(vn).concat(_n(vn));return mn(Yn,function(Lr){(!Te||Fn.call(vn,Lr))&&sn(Wt,Lr,vn[Lr])}),Wt},zn=function(Wt,on){return on===void 0?bt(Wt):en(bt(Wt),on)},Fn=function(Wt){var on=ct(Wt),vn=mt.call(this,on);return this===ee&&Ee(gt,on)&&!Ee(Et,on)?!1:vn||!Ee(this,on)||!Ee(gt,on)||Ee(this,Dt)&&this[Dt][on]?vn:!0},Ut=function(Wt,on){var vn=Ve(Wt),Yn=ct(on);if(!(vn===ee&&Ee(gt,Yn)&&!Ee(Et,Yn))){var Lr=Be(vn,Yn);return Lr&&Ee(gt,Yn)&&!(Ee(vn,Dt)&&vn[Dt][Yn])&&(Lr.enumerable=!0),Lr}},an=function(Wt){var on=st(Ve(Wt)),vn=[];return mn(on,function(Yn){!Ee(gt,Yn)&&!Ee($t,Yn)&&vn.push(Yn)}),vn},_n=function(Wt){var on=Wt===ee,vn=st(on?Et:Ve(Wt)),Yn=[];return mn(vn,function(Lr){Ee(gt,Lr)&&(!on||Ee(ee,Lr))&&Yn.push(gt[Lr])}),Yn};if(we||(se=function(){if(this instanceof se)throw TypeError("Symbol is not a constructor");var Wt=!arguments.length||arguments[0]===void 0?void 0:ot(arguments[0]),on=zt(Wt),vn=function(Yn){this===ee&&vn.call(Et,Yn),Ee(this,Dt)&&Ee(this[Dt],on)&&(this[Dt][on]=!1),Zt(this,on,pt(1,Yn))};return Te&&Vt&&Zt(ee,on,{configurable:!0,set:vn}),gn(on,Wt)},Ze(se[rn],"toString",function(){return ie(this).tag}),Ze(se,"withoutSetter",function(It){return gn(zt(It),It)}),at.f=Fn,it.f=sn,Nt.f=Ut,ht.f=_e.f=an,Re.f=_n,Ot.f=function(It){return gn(tt(It),It)},Te&&(We(se[rn],"description",{configurable:!0,get:function(){return ie(this).description}}),Se||Ze(ee,"propertyIsEnumerable",Fn,{unsafe:!0}))),Oe({global:!0,wrap:!0,forced:!we,sham:!we},{Symbol:se}),mn(He(Ct),function(It){Rt(It)}),Oe({target:En,stat:!0,forced:!we},{for:function(It){var Wt=ot(It);if(Ee(Lt,Wt))return Lt[Wt];var on=se(Wt);return Lt[Wt]=on,jt[on]=Wt,on},keyFor:function(Wt){if(!Qe(Wt))throw TypeError(Wt+" is not a symbol");if(Ee(jt,Wt))return jt[Wt]},useSetter:function(){Vt=!0},useSimple:function(){Vt=!1}}),Oe({target:"Object",stat:!0,forced:!we,sham:!Te},{create:zn,defineProperty:sn,defineProperties:en,getOwnPropertyDescriptor:Ut}),Oe({target:"Object",stat:!0,forced:!we},{getOwnPropertyNames:an,getOwnPropertySymbols:_n}),Oe({target:"Object",stat:!0,forced:Ce(function(){Re.f(1)})},{getOwnPropertySymbols:function(Wt){return Re.f(qe(Wt))}}),le){var Vn=!we||Ce(function(){var It=se();return le([It])!="[null]"||le({a:It})!="{}"||le(Object(It))!="{}"});Oe({target:"JSON",stat:!0,forced:Vn},{stringify:function(Wt,on,vn){for(var Yn=[Wt],Lr=1,ri;arguments.length>Lr;)Yn.push(arguments[Lr++]);if(ri=on,!(!Ke(on)&&Wt===void 0||Qe(Wt)))return ke(on)||(on=function(zr,Ir){if(typeof ri=="function"&&(Ir=ri.call(this,zr,Ir)),!Qe(Ir))return Ir}),Yn[1]=on,le.apply(null,Yn)}})}se[rn][de]||Bt(se[rn],de,se[rn].valueOf),fn(se,En),$t[Dt]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/dom-iterables.js"),Me=oe("./node_modules/core-js/internals/array-for-each.js"),Se=oe("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var Te in ve){var we=Oe[Te],Ce=we&&we.prototype;if(Ce&&Ce.forEach!==Me)try{Se(Ce,"forEach",Me)}catch(Ee){Ce.forEach=Me}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(he,xe,oe){var Oe=oe("./node_modules/core-js/internals/global.js"),ve=oe("./node_modules/core-js/internals/dom-iterables.js"),Me=oe("./node_modules/core-js/modules/es.array.iterator.js"),Se=oe("./node_modules/core-js/internals/create-non-enumerable-property.js"),Te=oe("./node_modules/core-js/internals/well-known-symbol.js"),we=Te("iterator"),Ce=Te("toStringTag"),Ee=Me.values;for(var ke in ve){var Ke=Oe[ke],Qe=Ke&&Ke.prototype;if(Qe){if(Qe[we]!==Ee)try{Se(Qe,we,Ee)}catch(qe){Qe[we]=Ee}if(Qe[Ce]||Se(Qe,Ce,ke),ve[ke]){for(var je in Me)if(Qe[je]!==Me[je])try{Se(Qe,je,Me[je])}catch(qe){Qe[je]=Me[je]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(he){(function(xe,oe){he.exports=oe()})(this,function(){"use strict";function xe(lt){var Vt=typeof lt;return lt!==null&&(Vt==="object"||Vt==="function")}function oe(lt){return typeof lt=="function"}var Oe=void 0;Array.isArray?Oe=Array.isArray:Oe=function(lt){return Object.prototype.toString.call(lt)==="[object Array]"};var ve=Oe,Me=0,Se=void 0,Te=void 0,we=function(Vt,Zt){He[Me]=Vt,He[Me+1]=Zt,Me+=2,Me===2&&(Te?Te(ht):Re())};function Ce(lt){Te=lt}function Ee(lt){we=lt}var ke=typeof window!="undefined"?window:void 0,Ke=ke||{},Qe=Ke.MutationObserver||Ke.WebKitMutationObserver,je=typeof self=="undefined"&&typeof x!="undefined"&&{}.toString.call(x)==="[object process]",qe=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function Ve(){return function(){return x.nextTick(ht)}}function ct(){return typeof Se!="undefined"?function(){Se(ht)}:bt()}function ot(){var lt=0,Vt=new Qe(ht),Zt=document.createTextNode("");return Vt.observe(Zt,{characterData:!0}),function(){Zt.data=lt=++lt%2}}function pt(){var lt=new MessageChannel;return lt.port1.onmessage=ht,function(){return lt.port2.postMessage(0)}}function bt(){var lt=setTimeout;return function(){return lt(ht,1)}}var He=new Array(1e3);function ht(){for(var lt=0;lt<Me;lt+=2){var Vt=He[lt],Zt=He[lt+1];Vt(Zt),He[lt]=void 0,He[lt+1]=void 0}Me=0}function _e(){try{var lt=Function("return this")().require("vertx");return Se=lt.runOnLoop||lt.runOnContext,ct()}catch(Vt){return bt()}}var Re=void 0;je?Re=Ve():Qe?Re=ot():qe?Re=pt():ke===void 0?Re=_e():Re=bt();function Nt(lt,Vt){var Zt=this,gn=new this.constructor(Bt);gn[at]===void 0&&le(gn);var sn=Zt._state;if(sn){var en=arguments[sn-1];we(function(){return pe(sn,gn,en,Zt._result)})}else rn(Zt,gn,lt,Vt);return gn}function it(lt){var Vt=this;if(lt&&typeof lt=="object"&&lt.constructor===Vt)return lt;var Zt=new Vt(Bt);return Tt(Zt,lt),Zt}var at=Math.random().toString(36).substring(2);function Bt(){}var Ze=void 0,De=1,ut=2;function $t(){return new TypeError("You cannot resolve a promise with itself")}function zt(){return new TypeError("A promises callback cannot return that same promise.")}function tt(lt,Vt,Zt,gn){try{lt.call(Vt,Zt,gn)}catch(sn){return sn}}function Ot(lt,Vt,Zt){we(function(gn){var sn=!1,en=tt(Zt,Vt,function(zn){sn||(sn=!0,Vt!==zn?Tt(gn,zn):Dt(gn,zn))},function(zn){sn||(sn=!0,En(gn,zn))},"Settle: "+(gn._label||" unknown promise"));!sn&&en&&(sn=!0,En(gn,en))},lt)}function Rt(lt,Vt){Vt._state===De?Dt(lt,Vt._result):Vt._state===ut?En(lt,Vt._result):rn(Vt,void 0,function(Zt){return Tt(lt,Zt)},function(Zt){return En(lt,Zt)})}function fn(lt,Vt,Zt){Vt.constructor===lt.constructor&&Zt===Nt&&Vt.constructor.resolve===it?Rt(lt,Vt):Zt===void 0?Dt(lt,Vt):oe(Zt)?Ot(lt,Vt,Zt):Dt(lt,Vt)}function Tt(lt,Vt){if(lt===Vt)En(lt,$t());else if(xe(Vt)){var Zt=void 0;try{Zt=Vt.then}catch(gn){En(lt,gn);return}fn(lt,Vt,Zt)}else Dt(lt,Vt)}function mn(lt){lt._onerror&&lt._onerror(lt._result),de(lt)}function Dt(lt,Vt){lt._state===Ze&&(lt._result=Vt,lt._state=De,lt._subscribers.length!==0&&we(de,lt))}function En(lt,Vt){lt._state===Ze&&(lt._state=ut,lt._result=Vt,we(mn,lt))}function rn(lt,Vt,Zt,gn){var sn=lt._subscribers,en=sn.length;lt._onerror=null,sn[en]=Vt,sn[en+De]=Zt,sn[en+ut]=gn,en===0&&lt._state&&we(de,lt)}function de(lt){var Vt=lt._subscribers,Zt=lt._state;if(Vt.length!==0){for(var gn=void 0,sn=void 0,en=lt._result,zn=0;zn<Vt.length;zn+=3)gn=Vt[zn],sn=Vt[zn+Zt],gn?pe(Zt,gn,sn,en):sn(en);lt._subscribers.length=0}}function pe(lt,Vt,Zt,gn){var sn=oe(Zt),en=void 0,zn=void 0,Fn=!0;if(sn){try{en=Zt(gn)}catch(Ut){Fn=!1,zn=Ut}if(Vt===en){En(Vt,zt());return}}else en=gn;Vt._state!==Ze||(sn&&Fn?Tt(Vt,en):Fn===!1?En(Vt,zn):lt===De?Dt(Vt,en):lt===ut&&En(Vt,en))}function ie(lt,Vt){try{Vt(function(gn){Tt(lt,gn)},function(gn){En(lt,gn)})}catch(Zt){En(lt,Zt)}}var ee=0;function se(){return ee++}function le(lt){lt[at]=ee++,lt._state=void 0,lt._result=void 0,lt._subscribers=[]}function Be(){return new Error("Array Methods must be provided an Array")}var We=function(){function lt(Vt,Zt){this._instanceConstructor=Vt,this.promise=new Vt(Bt),this.promise[at]||le(this.promise),ve(Zt)?(this.length=Zt.length,this._remaining=Zt.length,this._result=new Array(this.length),this.length===0?Dt(this.promise,this._result):(this.length=this.length||0,this._enumerate(Zt),this._remaining===0&&Dt(this.promise,this._result))):En(this.promise,Be())}return lt.prototype._enumerate=function(Zt){for(var gn=0;this._state===Ze&&gn<Zt.length;gn++)this._eachEntry(Zt[gn],gn)},lt.prototype._eachEntry=function(Zt,gn){var sn=this._instanceConstructor,en=sn.resolve;if(en===it){var zn=void 0,Fn=void 0,Ut=!1;try{zn=Zt.then}catch(_n){Ut=!0,Fn=_n}if(zn===Nt&&Zt._state!==Ze)this._settledAt(Zt._state,gn,Zt._result);else if(typeof zn!="function")this._remaining--,this._result[gn]=Zt;else if(sn===jt){var an=new sn(Bt);Ut?En(an,Fn):fn(an,Zt,zn),this._willSettleAt(an,gn)}else this._willSettleAt(new sn(function(_n){return _n(Zt)}),gn)}else this._willSettleAt(en(Zt),gn)},lt.prototype._settledAt=function(Zt,gn,sn){var en=this.promise;en._state===Ze&&(this._remaining--,Zt===ut?En(en,sn):this._result[gn]=sn),this._remaining===0&&Dt(en,this._result)},lt.prototype._willSettleAt=function(Zt,gn){var sn=this;rn(Zt,void 0,function(en){return sn._settledAt(De,gn,en)},function(en){return sn._settledAt(ut,gn,en)})},lt}();function st(lt){return new We(this,lt).promise}function mt(lt){var Vt=this;return ve(lt)?new Vt(function(Zt,gn){for(var sn=lt.length,en=0;en<sn;en++)Vt.resolve(lt[en]).then(Zt,gn)}):new Vt(function(Zt,gn){return gn(new TypeError("You must pass an array to race."))})}function gt(lt){var Vt=this,Zt=new Vt(Bt);return En(Zt,lt),Zt}function Et(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Lt(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var jt=function(){function lt(Vt){this[at]=se(),this._result=this._state=void 0,this._subscribers=[],Bt!==Vt&&(typeof Vt!="function"&&Et(),this instanceof lt?ie(this,Vt):Lt())}return lt.prototype.catch=function(Zt){return this.then(null,Zt)},lt.prototype.finally=function(Zt){var gn=this,sn=gn.constructor;return oe(Zt)?gn.then(function(en){return sn.resolve(Zt()).then(function(){return en})},function(en){return sn.resolve(Zt()).then(function(){throw en})}):gn.then(Zt,Zt)},lt}();jt.prototype.then=Nt,jt.all=st,jt.race=mt,jt.resolve=it,jt.reject=gt,jt._setScheduler=Ce,jt._setAsap=Ee,jt._asap=we;function Ct(){var lt=void 0;if(typeof ae.g!="undefined")lt=ae.g;else if(typeof self!="undefined")lt=self;else try{lt=Function("return this")()}catch(gn){throw new Error("polyfill failed because global object is unavailable in this environment")}var Vt=lt.Promise;if(Vt){var Zt=null;try{Zt=Object.prototype.toString.call(Vt.resolve())}catch(gn){}if(Zt==="[object Promise]"&&!Vt.cast)return}lt.Promise=jt}return jt.polyfill=Ct,jt.Promise=jt,jt})},html2canvas:function(he){"use strict";he.exports=Ie},jspdf:function(he){"use strict";he.exports=dt}},ze={};function Le(he){var xe=ze[he];if(xe!==void 0)return xe.exports;var oe=ze[he]={exports:{}};return Je[he].call(oe.exports,oe,oe.exports,Le),oe.exports}(function(){Le.n=function(he){var xe=he&&he.__esModule?function(){return he.default}:function(){return he};return Le.d(xe,{a:xe}),xe}})(),function(){Le.d=function(he,xe){for(var oe in xe)Le.o(xe,oe)&&!Le.o(he,oe)&&Object.defineProperty(he,oe,{enumerable:!0,get:xe[oe]})}}(),function(){Le.o=function(he,xe){return Object.prototype.hasOwnProperty.call(he,xe)}}(),function(){Le.r=function(he){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(he,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(he,"__esModule",{value:!0})}}();var Ue={};return function(){"use strict";Le.r(Ue);var he=Le("./src/worker.js"),xe=Le("./src/plugin/jspdf-plugin.js"),oe=Le("./src/plugin/pagebreaks.js"),Oe=Le("./src/plugin/hyperlinks.js"),ve=function Me(Se,Te){var we=new Me.Worker(Te);return Se?we.from(Se).save():we};ve.Worker=he.default,Ue.default=ve}(),Ue=Ue.default,Ue}()})},67467:function(Jn,kt){kt.read=function(ae,x,dt,Ie,Je){var ze,Le,Ue=Je*8-Ie-1,he=(1<<Ue)-1,xe=he>>1,oe=-7,Oe=dt?Je-1:0,ve=dt?-1:1,Me=ae[x+Oe];for(Oe+=ve,ze=Me&(1<<-oe)-1,Me>>=-oe,oe+=Ue;oe>0;ze=ze*256+ae[x+Oe],Oe+=ve,oe-=8);for(Le=ze&(1<<-oe)-1,ze>>=-oe,oe+=Ie;oe>0;Le=Le*256+ae[x+Oe],Oe+=ve,oe-=8);if(ze===0)ze=1-xe;else{if(ze===he)return Le?NaN:(Me?-1:1)*(1/0);Le=Le+Math.pow(2,Ie),ze=ze-xe}return(Me?-1:1)*Le*Math.pow(2,ze-Ie)},kt.write=function(ae,x,dt,Ie,Je,ze){var Le,Ue,he,xe=ze*8-Je-1,oe=(1<<xe)-1,Oe=oe>>1,ve=Je===23?Math.pow(2,-24)-Math.pow(2,-77):0,Me=Ie?0:ze-1,Se=Ie?1:-1,Te=x<0||x===0&&1/x<0?1:0;for(x=Math.abs(x),isNaN(x)||x===1/0?(Ue=isNaN(x)?1:0,Le=oe):(Le=Math.floor(Math.log(x)/Math.LN2),x*(he=Math.pow(2,-Le))<1&&(Le--,he*=2),Le+Oe>=1?x+=ve/he:x+=ve*Math.pow(2,1-Oe),x*he>=2&&(Le++,he/=2),Le+Oe>=oe?(Ue=0,Le=oe):Le+Oe>=1?(Ue=(x*he-1)*Math.pow(2,Je),Le=Le+Oe):(Ue=x*Math.pow(2,Oe-1)*Math.pow(2,Je),Le=0));Je>=8;ae[dt+Me]=Ue&255,Me+=Se,Ue/=256,Je-=8);for(Le=Le<<Je|Ue,xe+=Je;xe>0;ae[dt+Me]=Le&255,Me+=Se,Le/=256,xe-=8);ae[dt+Me-Se]|=Te*128}},53307:function(Jn,kt,ae){"use strict";ae.r(kt),ae.d(kt,{AcroForm:function(){return RA},AcroFormAppearance:function(){return Uo},AcroFormButton:function(){return qa},AcroFormCheckBox:function(){return Ys},AcroFormChoiceField:function(){return $o},AcroFormComboBox:function(){return ya},AcroFormEditBox:function(){return ga},AcroFormListBox:function(){return As},AcroFormPasswordField:function(){return es},AcroFormPushButton:function(){return bs},AcroFormRadioButton:function(){return Za},AcroFormTextField:function(){return Os},GState:function(){return Ep},ShadingPattern:function(){return kf},TilingPattern:function(){return Mf},default:function(){return La},jsPDF:function(){return La}});var x=ae(76190),dt={},Ie=function(y,z,E,re,ce){var fe=new Worker(dt[z]||(dt[z]=URL.createObjectURL(new Blob([y+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return fe.onmessage=function($e){var Pe=$e.data,Ge=Pe.$e$;if(Ge){var Ye=new Error(Ge[0]);Ye.code=Ge[1],Ye.stack=Ge[2],ce(Ye,null)}else ce(null,Pe)},fe.postMessage(E,re),fe},Je=Uint8Array,ze=Uint16Array,Le=Int32Array,Ue=new Je([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]),he=new Je([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]),xe=new Je([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),oe=function(y,z){for(var E=new ze(31),re=0;re<31;++re)E[re]=z+=1<<y[re-1];for(var ce=new Le(E[30]),re=1;re<30;++re)for(var fe=E[re];fe<E[re+1];++fe)ce[fe]=fe-E[re]<<5|re;return{b:E,r:ce}},Oe=oe(Ue,2),ve=Oe.b,Me=Oe.r;ve[28]=258,Me[258]=28;for(var Se=oe(he,0),Te=Se.b,we=Se.r,Ce=new ze(32768),Ee=0;Ee<32768;++Ee){var ke=(Ee&43690)>>1|(Ee&21845)<<1;ke=(ke&52428)>>2|(ke&13107)<<2,ke=(ke&61680)>>4|(ke&3855)<<4,Ce[Ee]=((ke&65280)>>8|(ke&255)<<8)>>1}for(var Ke=function(y,z,E){for(var re=y.length,ce=0,fe=new ze(z);ce<re;++ce)y[ce]&&++fe[y[ce]-1];var $e=new ze(z);for(ce=1;ce<z;++ce)$e[ce]=$e[ce-1]+fe[ce-1]<<1;var Pe;if(E){Pe=new ze(1<<z);var Ge=15-z;for(ce=0;ce<re;++ce)if(y[ce])for(var Ye=ce<<4|y[ce],ft=z-y[ce],Pt=$e[y[ce]-1]++<<ft,Jt=Pt|(1<<ft)-1;Pt<=Jt;++Pt)Pe[Ce[Pt]>>Ge]=Ye}else for(Pe=new ze(re),ce=0;ce<re;++ce)y[ce]&&(Pe[ce]=Ce[$e[y[ce]-1]++]>>15-y[ce]);return Pe},Qe=new Je(288),Ee=0;Ee<144;++Ee)Qe[Ee]=8;for(var Ee=144;Ee<256;++Ee)Qe[Ee]=9;for(var Ee=256;Ee<280;++Ee)Qe[Ee]=7;for(var Ee=280;Ee<288;++Ee)Qe[Ee]=8;for(var je=new Je(32),Ee=0;Ee<32;++Ee)je[Ee]=5;var qe=Ke(Qe,9,0),Ve=null,ct=Ke(je,5,0),ot=null,pt=function(y){for(var z=y[0],E=1;E<y.length;++E)y[E]>z&&(z=y[E]);return z},bt=function(y,z,E){var re=z/8|0;return(y[re]|y[re+1]<<8)>>(z&7)&E},He=function(y,z){var E=z/8|0;return(y[E]|y[E+1]<<8|y[E+2]<<16)>>(z&7)},ht=function(y){return(y+7)/8|0},_e=function(y,z,E){return(z==null||z<0)&&(z=0),(E==null||E>y.length)&&(E=y.length),new Je(y.subarray(z,E))},Re={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},Nt=["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"],it=function(y,z,E){var re=new Error(z||Nt[y]);if(re.code=y,Error.captureStackTrace&&Error.captureStackTrace(re,it),!E)throw re;return re},at=function(y,z,E,re){var ce=y.length,fe=re?re.length:0;if(!ce||z.f&&!z.l)return E||new Je(0);var $e=!E,Pe=$e||z.i!=2,Ge=z.i;$e&&(E=new Je(ce*3));var Ye=function(xo){var ca=E.length;if(xo>ca){var la=new Je(Math.max(ca*2,xo));la.set(E),E=la}},ft=z.f||0,Pt=z.p||0,Jt=z.b||0,At=z.l,In=z.d,Cn=z.m,On=z.n,An=ce*8;do{if(!At){ft=bt(y,Pt,1);var wr=bt(y,Pt+1,3);if(Pt+=3,wr)if(wr==1)At=Ve,In=ot,Cn=9,On=5;else if(wr==2){var Ri=bt(y,Pt,31)+257,Ii=bt(y,Pt+10,15)+4,Nr=Ri+bt(y,Pt+5,31)+1;Pt+=14;for(var Xn=new Je(Nr),Vr=new Je(19),ln=0;ln<Ii;++ln)Vr[xe[ln]]=bt(y,Pt+ln*3,7);Pt+=Ii*3;for(var Dn=pt(Vr),gr=(1<<Dn)-1,dr=Ke(Vr,Dn,1),ln=0;ln<Nr;){var mi=dr[bt(y,Pt,gr)];Pt+=mi&15;var ur=mi>>4;if(ur<16)Xn[ln++]=ur;else{var Si=0,Ni=0;for(ur==16?(Ni=3+bt(y,Pt,3),Pt+=2,Si=Xn[ln-1]):ur==17?(Ni=3+bt(y,Pt,7),Pt+=3):ur==18&&(Ni=11+bt(y,Pt,127),Pt+=7);Ni--;)Xn[ln++]=Si}}var ai=Xn.subarray(0,Ri),Di=Xn.subarray(Ri);Cn=pt(ai),On=pt(Di),At=Ke(ai,Cn,1),In=Ke(Di,On,1)}else it(1);else{var ur=ht(Pt)+4,Gn=y[ur-4]|y[ur-3]<<8,ui=ur+Gn;if(ui>ce){Ge&&it(0);break}Pe&&Ye(Jt+Gn),E.set(y.subarray(ur,ui),Jt),z.b=Jt+=Gn,z.p=Pt=ui*8,z.f=ft;continue}if(Pt>An){Ge&&it(0);break}}Pe&&Ye(Jt+131072);for(var Do=(1<<Cn)-1,ro=(1<<On)-1,nn=Pt;;nn=Pt){var Si=At[He(y,Pt)&Do],Kn=Si>>4;if(Pt+=Si&15,Pt>An){Ge&&it(0);break}if(Si||it(2),Kn<256)E[Jt++]=Kn;else if(Kn==256){nn=Pt,At=null;break}else{var ir=Kn-254;if(Kn>264){var ln=Kn-257,Cr=Ue[ln];ir=bt(y,Pt,(1<<Cr)-1)+ve[ln],Pt+=Cr}var Rr=In[He(y,Pt)&ro],ei=Rr>>4;Rr||it(3),Pt+=Rr&15;var Di=Te[ei];if(ei>3){var Cr=he[ei];Di+=He(y,Pt)&(1<<Cr)-1,Pt+=Cr}if(Pt>An){Ge&&it(0);break}Pe&&Ye(Jt+131072);var Li=Jt+ir;if(Jt<Di){var Oi=fe-Di,Vi=Math.min(Di,Li);for(Oi+Jt<0&&it(3);Jt<Vi;++Jt)E[Jt]=re[Oi+Jt]}for(;Jt<Li;++Jt)E[Jt]=E[Jt-Di]}}z.l=At,z.p=nn,z.b=Jt,z.f=ft,At&&(ft=1,z.m=Cn,z.d=In,z.n=On)}while(!ft);return Jt!=E.length&&$e?_e(E,0,Jt):E.subarray(0,Jt)},Bt=function(y,z,E){E<<=z&7;var re=z/8|0;y[re]|=E,y[re+1]|=E>>8},Ze=function(y,z,E){E<<=z&7;var re=z/8|0;y[re]|=E,y[re+1]|=E>>8,y[re+2]|=E>>16},De=function(y,z){for(var E=[],re=0;re<y.length;++re)y[re]&&E.push({s:re,f:y[re]});var ce=E.length,fe=E.slice();if(!ce)return{t:fn,l:0};if(ce==1){var $e=new Je(E[0].s+1);return $e[E[0].s]=1,{t:$e,l:1}}E.sort(function(ui,Ri){return ui.f-Ri.f}),E.push({s:-1,f:25001});var Pe=E[0],Ge=E[1],Ye=0,ft=1,Pt=2;for(E[0]={s:-1,f:Pe.f+Ge.f,l:Pe,r:Ge};ft!=ce-1;)Pe=E[E[Ye].f<E[Pt].f?Ye++:Pt++],Ge=E[Ye!=ft&&E[Ye].f<E[Pt].f?Ye++:Pt++],E[ft++]={s:-1,f:Pe.f+Ge.f,l:Pe,r:Ge};for(var Jt=fe[0].s,re=1;re<ce;++re)fe[re].s>Jt&&(Jt=fe[re].s);var At=new ze(Jt+1),In=ut(E[ft-1],At,0);if(In>z){var re=0,Cn=0,On=In-z,An=1<<On;for(fe.sort(function(Ri,Ii){return At[Ii.s]-At[Ri.s]||Ri.f-Ii.f});re<ce;++re){var wr=fe[re].s;if(At[wr]>z)Cn+=An-(1<<In-At[wr]),At[wr]=z;else break}for(Cn>>=On;Cn>0;){var ur=fe[re].s;At[ur]<z?Cn-=1<<z-At[ur]++-1:++re}for(;re>=0&&Cn;--re){var Gn=fe[re].s;At[Gn]==z&&(--At[Gn],++Cn)}In=z}return{t:new Je(At),l:In}},ut=function(y,z,E){return y.s==-1?Math.max(ut(y.l,z,E+1),ut(y.r,z,E+1)):z[y.s]=E},$t=function(y){for(var z=y.length;z&&!y[--z];);for(var E=new ze(++z),re=0,ce=y[0],fe=1,$e=function(Ge){E[re++]=Ge},Pe=1;Pe<=z;++Pe)if(y[Pe]==ce&&Pe!=z)++fe;else{if(!ce&&fe>2){for(;fe>138;fe-=138)$e(32754);fe>2&&($e(fe>10?fe-11<<5|28690:fe-3<<5|12305),fe=0)}else if(fe>3){for($e(ce),--fe;fe>6;fe-=6)$e(8304);fe>2&&($e(fe-3<<5|8208),fe=0)}for(;fe--;)$e(ce);fe=1,ce=y[Pe]}return{c:E.subarray(0,re),n:z}},zt=function(y,z){for(var E=0,re=0;re<z.length;++re)E+=y[re]*z[re];return E},tt=function(y,z,E){var re=E.length,ce=ht(z+2);y[ce]=re&255,y[ce+1]=re>>8,y[ce+2]=y[ce]^255,y[ce+3]=y[ce+1]^255;for(var fe=0;fe<re;++fe)y[ce+fe+4]=E[fe];return(ce+4+re)*8},Ot=function(y,z,E,re,ce,fe,$e,Pe,Ge,Ye,ft){Bt(z,ft++,E),++ce[256];for(var Pt=De(ce,15),Jt=Pt.t,At=Pt.l,In=De(fe,15),Cn=In.t,On=In.l,An=$t(Jt),wr=An.c,ur=An.n,Gn=$t(Cn),ui=Gn.c,Ri=Gn.n,Ii=new ze(19),Nr=0;Nr<wr.length;++Nr)++Ii[wr[Nr]&31];for(var Nr=0;Nr<ui.length;++Nr)++Ii[ui[Nr]&31];for(var Xn=De(Ii,7),Vr=Xn.t,ln=Xn.l,Dn=19;Dn>4&&!Vr[xe[Dn-1]];--Dn);var gr=Ye+5<<3,dr=zt(ce,Qe)+zt(fe,je)+$e,mi=zt(ce,Jt)+zt(fe,Cn)+$e+14+3*Dn+zt(Ii,Vr)+2*Ii[16]+3*Ii[17]+7*Ii[18];if(Ge>=0&&gr<=dr&&gr<=mi)return tt(z,ft,y.subarray(Ge,Ge+Ye));var Si,Ni,ai,Di;if(Bt(z,ft,1+(mi<dr)),ft+=2,mi<dr){Si=Ke(Jt,At,0),Ni=Jt,ai=Ke(Cn,On,0),Di=Cn;var Do=Ke(Vr,ln,0);Bt(z,ft,ur-257),Bt(z,ft+5,Ri-1),Bt(z,ft+10,Dn-4),ft+=14;for(var Nr=0;Nr<Dn;++Nr)Bt(z,ft+3*Nr,Vr[xe[Nr]]);ft+=3*Dn;for(var ro=[wr,ui],nn=0;nn<2;++nn)for(var Kn=ro[nn],Nr=0;Nr<Kn.length;++Nr){var ir=Kn[Nr]&31;Bt(z,ft,Do[ir]),ft+=Vr[ir],ir>15&&(Bt(z,ft,Kn[Nr]>>5&127),ft+=Kn[Nr]>>12)}}else Si=qe,Ni=Qe,ai=ct,Di=je;for(var Nr=0;Nr<Pe;++Nr){var Cr=re[Nr];if(Cr>255){var ir=Cr>>18&31;Ze(z,ft,Si[ir+257]),ft+=Ni[ir+257],ir>7&&(Bt(z,ft,Cr>>23&31),ft+=Ue[ir]);var Rr=Cr&31;Ze(z,ft,ai[Rr]),ft+=Di[Rr],Rr>3&&(Ze(z,ft,Cr>>5&8191),ft+=he[Rr])}else Ze(z,ft,Si[Cr]),ft+=Ni[Cr]}return Ze(z,ft,Si[256]),ft+Ni[256]},Rt=new Le([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),fn=new Je(0),Tt=function(y,z,E,re,ce,fe){var $e=fe.z||y.length,Pe=new Je(re+$e+5*(1+Math.ceil($e/7e3))+ce),Ge=Pe.subarray(re,Pe.length-ce),Ye=fe.l,ft=(fe.r||0)&7;if(z){ft&&(Ge[0]=fe.r>>3);for(var Pt=Rt[z-1],Jt=Pt>>13,At=Pt&8191,In=(1<<E)-1,Cn=fe.p||new ze(32768),On=fe.h||new ze(In+1),An=Math.ceil(E/3),wr=2*An,ur=function(Wa){return(y[Wa]^y[Wa+1]<<An^y[Wa+2]<<wr)&In},Gn=new Le(25e3),ui=new ze(288),Ri=new ze(32),Ii=0,Nr=0,Xn=fe.i||0,Vr=0,ln=fe.w||0,Dn=0;Xn+2<$e;++Xn){var gr=ur(Xn),dr=Xn&32767,mi=On[gr];if(Cn[dr]=mi,On[gr]=dr,ln<=Xn){var Si=$e-Xn;if((Ii>7e3||Vr>24576)&&(Si>423||!Ye)){ft=Ot(y,Ge,0,Gn,ui,Ri,Nr,Vr,Dn,Xn-Dn,ft),Vr=Ii=Nr=0,Dn=Xn;for(var Ni=0;Ni<286;++Ni)ui[Ni]=0;for(var Ni=0;Ni<30;++Ni)Ri[Ni]=0}var ai=2,Di=0,Do=At,ro=dr-mi&32767;if(Si>2&&gr==ur(Xn-ro))for(var nn=Math.min(Jt,Si)-1,Kn=Math.min(32767,Xn),ir=Math.min(258,Si);ro<=Kn&&--Do&&dr!=mi;){if(y[Xn+ai]==y[Xn+ai-ro]){for(var Cr=0;Cr<ir&&y[Xn+Cr]==y[Xn+Cr-ro];++Cr);if(Cr>ai){if(ai=Cr,Di=ro,Cr>nn)break;for(var Rr=Math.min(ro,Cr-2),ei=0,Ni=0;Ni<Rr;++Ni){var Li=Xn-ro+Ni&32767,Oi=Cn[Li],Vi=Li-Oi&32767;Vi>ei&&(ei=Vi,mi=Li)}}}dr=mi,mi=Cn[dr],ro+=dr-mi&32767}if(Di){Gn[Vr++]=268435456|Me[ai]<<18|we[Di];var xo=Me[ai]&31,ca=we[Di]&31;Nr+=Ue[xo]+he[ca],++ui[257+xo],++Ri[ca],ln=Xn+ai,++Ii}else Gn[Vr++]=y[Xn],++ui[y[Xn]]}}for(Xn=Math.max(Xn,ln);Xn<$e;++Xn)Gn[Vr++]=y[Xn],++ui[y[Xn]];ft=Ot(y,Ge,Ye,Gn,ui,Ri,Nr,Vr,Dn,Xn-Dn,ft),Ye||(fe.r=ft&7|Ge[ft/8|0]<<3,ft-=7,fe.h=On,fe.p=Cn,fe.i=Xn,fe.w=ln)}else{for(var Xn=fe.w||0;Xn<$e+Ye;Xn+=65535){var la=Xn+65535;la>=$e&&(Ge[ft/8|0]=Ye,la=$e),ft=tt(Ge,ft+1,y.subarray(Xn,la))}fe.i=$e}return _e(Pe,0,re+ht(ft)+ce)},mn=null,Dt=function(){var y=-1;return{p:function(z){for(var E=y,re=0;re<z.length;++re)E=mn[E&255^z[re]]^E>>>8;y=E},d:function(){return~y}}},En=function(){var y=1,z=0;return{p:function(E){for(var re=y,ce=z,fe=E.length|0,$e=0;$e!=fe;){for(var Pe=Math.min($e+2655,fe);$e<Pe;++$e)ce+=re+=E[$e];re=(re&65535)+15*(re>>16),ce=(ce&65535)+15*(ce>>16)}y=re,z=ce},d:function(){return y%=65521,z%=65521,(y&255)<<24|(y&65280)<<8|(z&255)<<8|z>>8}}},rn=function(y,z,E,re,ce){if(!ce&&(ce={l:1},z.dictionary)){var fe=z.dictionary.subarray(-32768),$e=new Je(fe.length+y.length);$e.set(fe),$e.set(y,fe.length),y=$e,ce.w=fe.length}return Tt(y,z.level==null?6:z.level,z.mem==null?ce.l?Math.ceil(Math.max(8,Math.min(13,Math.log(y.length)))*1.5):20:12+z.mem,E,re,ce)},de=function(y,z){var E={};for(var re in y)E[re]=y[re];for(var re in z)E[re]=z[re];return E},pe=function(y,z,E){for(var re=y(),ce=y.toString(),fe=ce.slice(ce.indexOf("[")+1,ce.lastIndexOf("]")).replace(/\s+/g,"").split(","),$e=0;$e<re.length;++$e){var Pe=re[$e],Ge=fe[$e];if(typeof Pe=="function"){z+=";"+Ge+"=";var Ye=Pe.toString();if(Pe.prototype)if(Ye.indexOf("[native code]")!=-1){var ft=Ye.indexOf(" ",8)+1;z+=Ye.slice(ft,Ye.indexOf("(",ft))}else{z+=Ye;for(var Pt in Pe.prototype)z+=";"+Ge+".prototype."+Pt+"="+Pe.prototype[Pt].toString()}else z+=Ye}else E[Ge]=Pe}return z},ie=null,ee=function(y){var z=[];for(var E in y)y[E].buffer&&z.push((y[E]=new y[E].constructor(y[E])).buffer);return z},se=function(y,z,E,re){if(!ie[E]){for(var ce="",fe={},$e=y.length-1,Pe=0;Pe<$e;++Pe)ce=pe(y[Pe],ce,fe);ie[E]={c:pe(y[$e],ce,fe),e:fe}}var Ge=de({},ie[E].e);return Ie(ie[E].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+z.toString()+"}",E,Ge,ee(Ge),re)},le=function(){return[Je,ze,Le,Ue,he,xe,ve,Te,Ve,ot,Ce,Nt,Ke,pt,bt,He,ht,_e,it,at,zr,Et,Lt]},Be=function(){return[Je,ze,Le,Ue,he,xe,Me,we,qe,Qe,ct,je,Ce,Rt,fn,Ke,Bt,Ze,De,ut,$t,zt,tt,Ot,ht,_e,Tt,rn,vn,Et]},We=function(){return[en,Ut,sn,Dt,mn]},st=function(){return[zn,Fn]},mt=function(){return[an,sn,En]},gt=function(){return[_n]},Et=function(y){return postMessage(y,[y.buffer])},Lt=function(y){return y&&{out:y.size&&new Je(y.size),dictionary:y.dictionary}},jt=function(y,z,E,re,ce,fe){var $e=se(E,re,ce,function(Pe,Ge){$e.terminate(),fe(Pe,Ge)});return $e.postMessage([y,z],z.consume?[y.buffer]:[]),function(){$e.terminate()}},Ct=function(y){return y.ondata=function(z,E){return postMessage([z,E],[z.buffer])},function(z){z.data.length?(y.push(z.data[0],z.data[1]),postMessage([z.data[0].length])):y.flush()}},lt=function(y,z,E,re,ce,fe,$e){var Pe,Ge=se(y,re,ce,function(Ye,ft){Ye?(Ge.terminate(),z.ondata.call(z,Ye)):Array.isArray(ft)?ft.length==1?(z.queuedSize-=ft[0],z.ondrain&&z.ondrain(ft[0])):(ft[1]&&Ge.terminate(),z.ondata.call(z,Ye,ft[0],ft[1])):$e(ft)});Ge.postMessage(E),z.queuedSize=0,z.push=function(Ye,ft){z.ondata||it(5),Pe&&z.ondata(it(4,0,1),null,!!ft),z.queuedSize+=Ye.length,Ge.postMessage([Ye,Pe=ft],[Ye.buffer])},z.terminate=function(){Ge.terminate()},fe&&(z.flush=function(){Ge.postMessage([])})},Vt=function(y,z){return y[z]|y[z+1]<<8},Zt=function(y,z){return(y[z]|y[z+1]<<8|y[z+2]<<16|y[z+3]<<24)>>>0},gn=function(y,z){return Zt(y,z)+Zt(y,z+4)*4294967296},sn=function(y,z,E){for(;E;++z)y[z]=E,E>>>=8},en=function(y,z){var E=z.filename;if(y[0]=31,y[1]=139,y[2]=8,y[8]=z.level<2?4:z.level==9?2:0,y[9]=3,z.mtime!=0&&sn(y,4,Math.floor(new Date(z.mtime||Date.now())/1e3)),E){y[3]=8;for(var re=0;re<=E.length;++re)y[re+10]=E.charCodeAt(re)}},zn=function(y){(y[0]!=31||y[1]!=139||y[2]!=8)&&it(6,"invalid gzip data");var z=y[3],E=10;z&4&&(E+=(y[10]|y[11]<<8)+2);for(var re=(z>>3&1)+(z>>4&1);re>0;re-=!y[E++]);return E+(z&2)},Fn=function(y){var z=y.length;return(y[z-4]|y[z-3]<<8|y[z-2]<<16|y[z-1]<<24)>>>0},Ut=function(y){return 10+(y.filename?y.filename.length+1:0)},an=function(y,z){var E=z.level,re=E==0?0:E<6?1:E==9?3:2;if(y[0]=120,y[1]=re<<6|(z.dictionary&&32),y[1]|=31-(y[0]<<8|y[1])%31,z.dictionary){var ce=En();ce.p(z.dictionary),sn(y,2,ce.d())}},_n=function(y,z){return((y[0]&15)!=8||y[0]>>4>7||(y[0]<<8|y[1])%31)&&it(6,"invalid zlib data"),(y[1]>>5&1)==+!z&&it(6,"invalid zlib data: "+(y[1]&32?"need":"unexpected")+" dictionary"),(y[1]>>3&4)+2};function Vn(y,z){return typeof y=="function"&&(z=y,y={}),this.ondata=z,y}var It=null,Wt=null;function on(y,z,E){return E||(E=z,z={}),typeof E!="function"&&it(7),jt(y,z,[Be],function(re){return Et(vn(re.data[0],re.data[1]))},0,E)}function vn(y,z){return rn(y,z||{},0,0)}var Yn=null,Lr=null;function ri(y,z,E){return E||(E=z,z={}),typeof E!="function"&&it(7),jt(y,z,[le],function(re){return Et(zr(re.data[0],Lt(re.data[1])))},1,E)}function zr(y,z){return at(y,{i:2},z&&z.out,z&&z.dictionary)}var Ir=null,tr=null;function vr(y,z,E){return E||(E=z,z={}),typeof E!="function"&&it(7),jt(y,z,[Be,We,function(){return[Qn]}],function(re){return Et(Qn(re.data[0],re.data[1]))},2,E)}function Qn(y,z){z||(z={});var E=Dt(),re=y.length;E.p(y);var ce=rn(y,z,Ut(z),8),fe=ce.length;return en(ce,z),sn(ce,fe-8,E.d()),sn(ce,fe-4,re),ce}var qn=null,lr=null;function $n(y,z,E){return E||(E=z,z={}),typeof E!="function"&&it(7),jt(y,z,[le,st,function(){return[Br]}],function(re){return Et(Br(re.data[0],re.data[1]))},3,E)}function Br(y,z){var E=zn(y);return E+8>y.length&&it(6,"invalid gzip data"),at(y.subarray(E,-8),{i:2},z&&z.out||new Je(Fn(y)),z&&z.dictionary)}var Sr=null,kr=null;function gi(y,z,E){return E||(E=z,z={}),typeof E!="function"&&it(7),jt(y,z,[Be,mt,function(){return[Ai]}],function(re){return Et(Ai(re.data[0],re.data[1]))},4,E)}function Ai(y,z){z||(z={});var E=En();E.p(y);var re=rn(y,z,z.dictionary?6:2,4);return an(re,z),sn(re,re.length-4,E.d()),re}var di=null,Ti=null;function Ei(y,z,E){return E||(E=z,z={}),typeof E!="function"&&it(7),jt(y,z,[le,gt,function(){return[no]}],function(re){return Et(no(re.data[0],Lt(re.data[1])))},5,E)}function no(y,z){return at(y.subarray(_n(y,z&&z.dictionary),-4),{i:2},z&&z.out,z&&z.dictionary)}var zi=null,fr=null;function Ur(y,z,E){return E||(E=z,z={}),typeof E!="function"&&it(7),y[0]==31&&y[1]==139&&y[2]==8?$n(y,z,E):(y[0]&15)!=8||y[0]>>4>7||(y[0]<<8|y[1])%31?ri(y,z,E):Ei(y,z,E)}function vi(y,z){return y[0]==31&&y[1]==139&&y[2]==8?Br(y,z):(y[0]&15)!=8||y[0]>>4>7||(y[0]<<8|y[1])%31?zr(y,z):no(y,z)}var Gt=function(y,z,E,re){for(var ce in y){var fe=y[ce],$e=z+ce,Pe=re;Array.isArray(fe)&&(Pe=de(re,fe[1]),fe=fe[0]),fe instanceof Je?E[$e]=[fe,Pe]:(E[$e+="/"]=[new Je(0),Pe],Gt(fe,$e,E,re))}},un=typeof TextEncoder!="undefined"&&new TextEncoder,wn=typeof TextDecoder!="undefined"&&new TextDecoder,Mt=0;try{wn.decode(fn,{stream:!0}),Mt=1}catch(y){}var dn=function(y){for(var z="",E=0;;){var re=y[E++],ce=(re>127)+(re>223)+(re>239);if(E+ce>y.length)return{s:z,r:_e(y,E-1)};ce?ce==3?(re=((re&15)<<18|(y[E++]&63)<<12|(y[E++]&63)<<6|y[E++]&63)-65536,z+=String.fromCharCode(55296|re>>10,56320|re&1023)):ce&1?z+=String.fromCharCode((re&31)<<6|y[E++]&63):z+=String.fromCharCode((re&15)<<12|(y[E++]&63)<<6|y[E++]&63):z+=String.fromCharCode(re)}},Kt=null,pn=null;function Nn(y,z){if(z){for(var E=new Je(y.length),re=0;re<y.length;++re)E[re]=y.charCodeAt(re);return E}if(un)return un.encode(y);for(var ce=y.length,fe=new Je(y.length+(y.length>>1)),$e=0,Pe=function(ft){fe[$e++]=ft},re=0;re<ce;++re){if($e+5>fe.length){var Ge=new Je($e+8+(ce-re<<1));Ge.set(fe),fe=Ge}var Ye=y.charCodeAt(re);Ye<128||z?Pe(Ye):Ye<2048?(Pe(192|Ye>>6),Pe(128|Ye&63)):Ye>55295&&Ye<57344?(Ye=65536+(Ye&1047552)|y.charCodeAt(++re)&1023,Pe(240|Ye>>18),Pe(128|Ye>>12&63),Pe(128|Ye>>6&63),Pe(128|Ye&63)):(Pe(224|Ye>>12),Pe(128|Ye>>6&63),Pe(128|Ye&63))}return _e(fe,0,$e)}function Pr(y,z){if(z){for(var E="",re=0;re<y.length;re+=16384)E+=String.fromCharCode.apply(null,y.subarray(re,re+16384));return E}else{if(wn)return wn.decode(y);var ce=dn(y),fe=ce.s,E=ce.r;return E.length&&it(8),fe}}var Yr=function(y){return y==1?3:y<6?2:y==9?1:0},ci=function(y,z){return z+30+Vt(y,z+26)+Vt(y,z+28)},or=function(y,z,E){var re=Vt(y,z+28),ce=Pr(y.subarray(z+46,z+46+re),!(Vt(y,z+8)&2048)),fe=z+46+re,$e=Zt(y,z+20),Pe=E&&$e==4294967295?cr(y,fe):[$e,Zt(y,z+24),Zt(y,z+42)],Ge=Pe[0],Ye=Pe[1],ft=Pe[2];return[Vt(y,z+10),Ge,Ye,ce,fe+Vt(y,z+30)+Vt(y,z+32),ft]},cr=function(y,z){for(;Vt(y,z)!=1;z+=4+Vt(y,z+2));return[gn(y,z+12),gn(y,z+4),gn(y,z+20)]},sr=function(y){var z=0;if(y)for(var E in y){var re=y[E].length;re>65535&&it(9),z+=re+4}return z},ti=function(y,z,E,re,ce,fe,$e,Pe){var Ge=re.length,Ye=E.extra,ft=Pe&&Pe.length,Pt=sr(Ye);sn(y,z,$e!=null?33639248:67324752),z+=4,$e!=null&&(y[z++]=20,y[z++]=E.os),y[z]=20,z+=2,y[z++]=E.flag<<1|(fe<0&&8),y[z++]=ce&&8,y[z++]=E.compression&255,y[z++]=E.compression>>8;var Jt=new Date(E.mtime==null?Date.now():E.mtime),At=Jt.getFullYear()-1980;if((At<0||At>119)&&it(10),sn(y,z,At<<25|Jt.getMonth()+1<<21|Jt.getDate()<<16|Jt.getHours()<<11|Jt.getMinutes()<<5|Jt.getSeconds()>>1),z+=4,fe!=-1&&(sn(y,z,E.crc),sn(y,z+4,fe<0?-fe-2:fe),sn(y,z+8,E.size)),sn(y,z+12,Ge),sn(y,z+14,Pt),z+=16,$e!=null&&(sn(y,z,ft),sn(y,z+6,E.attrs),sn(y,z+10,$e),z+=14),y.set(re,z),z+=Ge,Pt)for(var In in Ye){var Cn=Ye[In],On=Cn.length;sn(y,z,+In),sn(y,z+2,On),y.set(Cn,z+4),z+=4+On}return ft&&(y.set(Pe,z),z+=ft),z},nr=function(y,z,E,re,ce){sn(y,z,101010256),sn(y,z+8,E),sn(y,z+10,E),sn(y,z+12,re),sn(y,z+16,ce)},Rn=null,Ar=null,Bi=null,Zn=null;function yn(y,z,E){E||(E=z,z={}),typeof E!="function"&&it(7);var re={};Gt(y,"",re,z);var ce=Object.keys(re),fe=ce.length,$e=0,Pe=0,Ge=fe,Ye=new Array(fe),ft=[],Pt=function(){for(var On=0;On<ft.length;++On)ft[On]()},Jt=function(On,An){fi(function(){E(On,An)})};fi(function(){Jt=E});var At=function(){var On=new Je(Pe+22),An=$e,wr=Pe-$e;Pe=0;for(var ur=0;ur<Ge;++ur){var Gn=Ye[ur];try{var ui=Gn.c.length;ti(On,Pe,Gn,Gn.f,Gn.u,ui);var Ri=30+Gn.f.length+sr(Gn.extra),Ii=Pe+Ri;On.set(Gn.c,Ii),ti(On,$e,Gn,Gn.f,Gn.u,ui,Pe,Gn.m),$e+=16+Ri+(Gn.m?Gn.m.length:0),Pe=Ii+ui}catch(Nr){return Jt(Nr,null)}}nr(On,$e,Ye.length,wr,An),Jt(null,On)};fe||At();for(var In=function(On){var An=ce[On],wr=re[An],ur=wr[0],Gn=wr[1],ui=Dt(),Ri=ur.length;ui.p(ur);var Ii=Nn(An),Nr=Ii.length,Xn=Gn.comment,Vr=Xn&&Nn(Xn),ln=Vr&&Vr.length,Dn=sr(Gn.extra),gr=Gn.level==0?0:8,dr=function(mi,Si){if(mi)Pt(),Jt(mi,null);else{var Ni=Si.length;Ye[On]=de(Gn,{size:Ri,crc:ui.d(),c:Si,f:Ii,m:Vr,u:Nr!=An.length||Vr&&Xn.length!=ln,compression:gr}),$e+=30+Nr+Dn+Ni,Pe+=76+2*(Nr+Dn)+(ln||0)+Ni,--fe||At()}};if(Nr>65535&&dr(it(11,0,1),null),!gr)dr(null,ur);else if(Ri<16e4)try{dr(null,vn(ur,Gn))}catch(mi){dr(mi,null)}else ft.push(on(ur,Gn,dr))},Cn=0;Cn<Ge;++Cn)In(Cn);return Pt}function Wn(y,z){z||(z={});var E={},re=[];Gt(y,"",E,z);var ce=0,fe=0;for(var $e in E){var Pe=E[$e],Ge=Pe[0],Ye=Pe[1],ft=Ye.level==0?0:8,Pt=Nn($e),Jt=Pt.length,At=Ye.comment,In=At&&Nn(At),Cn=In&&In.length,On=sr(Ye.extra);Jt>65535&&it(11);var An=ft?vn(Ge,Ye):Ge,wr=An.length,ur=Dt();ur.p(Ge),re.push(de(Ye,{size:Ge.length,crc:ur.d(),c:An,f:Pt,m:In,u:Jt!=$e.length||In&&At.length!=Cn,o:ce,compression:ft})),ce+=30+Jt+On+wr,fe+=76+2*(Jt+On)+(Cn||0)+wr}for(var Gn=new Je(fe+22),ui=ce,Ri=fe-ce,Ii=0;Ii<re.length;++Ii){var Pt=re[Ii];ti(Gn,Pt.o,Pt,Pt.f,Pt.u,Pt.c.length);var Nr=30+Pt.f.length+sr(Pt.extra);Gn.set(Pt.c,Pt.o+Nr),ti(Gn,ce,Pt,Pt.f,Pt.u,Pt.c.length,Pt.o,Pt.m),ce+=16+Nr+(Pt.m?Pt.m.length:0)}return nr(Gn,ce,re.length,Ri,ui),Gn}var rr=null,pr=null,Kr=null,Fi=null,fi=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(y){y()};function _i(y,z,E){E||(E=z,z={}),typeof E!="function"&&it(7);var re=[],ce=function(){for(var On=0;On<re.length;++On)re[On]()},fe={},$e=function(On,An){fi(function(){E(On,An)})};fi(function(){$e=E});for(var Pe=y.length-22;Zt(y,Pe)!=101010256;--Pe)if(!Pe||y.length-Pe>65558)return $e(it(13,0,1),null),ce;var Ge=Vt(y,Pe+8);if(Ge){var Ye=Ge,ft=Zt(y,Pe+16),Pt=ft==4294967295||Ye==65535;if(Pt){var Jt=Zt(y,Pe-12);Pt=Zt(y,Jt)==101075792,Pt&&(Ye=Ge=Zt(y,Jt+32),ft=Zt(y,Jt+48))}for(var At=z&&z.filter,In=function(On){var An=or(y,ft,Pt),wr=An[0],ur=An[1],Gn=An[2],ui=An[3],Ri=An[4],Ii=An[5],Nr=ci(y,Ii);ft=Ri;var Xn=function(ln,Dn){ln?(ce(),$e(ln,null)):(Dn&&(fe[ui]=Dn),--Ge||$e(null,fe))};if(!At||At({name:ui,size:ur,originalSize:Gn,compression:wr}))if(!wr)Xn(null,_e(y,Nr,Nr+ur));else if(wr==8){var Vr=y.subarray(Nr,Nr+ur);if(Gn<524288||ur>.8*Gn)try{Xn(null,zr(Vr,{out:new Je(Gn)}))}catch(ln){Xn(ln,null)}else re.push(ri(Vr,{size:Gn},Xn))}else Xn(it(14,"unknown compression type "+wr,1),null);else Xn(null,null)},Cn=0;Cn<Ye;++Cn)In(Cn)}else $e(null,{});return ce}function hi(y,z){for(var E={},re=y.length-22;Zt(y,re)!=101010256;--re)(!re||y.length-re>65558)&&it(13);var ce=Vt(y,re+8);if(!ce)return{};var fe=Zt(y,re+16),$e=fe==4294967295||ce==65535;if($e){var Pe=Zt(y,re-12);$e=Zt(y,Pe)==101075792,$e&&(ce=Zt(y,Pe+32),fe=Zt(y,Pe+48))}for(var Ge=z&&z.filter,Ye=0;Ye<ce;++Ye){var ft=or(y,fe,$e),Pt=ft[0],Jt=ft[1],At=ft[2],In=ft[3],Cn=ft[4],On=ft[5],An=ci(y,On);fe=Cn,(!Ge||Ge({name:In,size:Jt,originalSize:At,compression:Pt}))&&(Pt?Pt==8?E[In]=zr(y.subarray(An,An+Jt),{out:new Je(At)}):it(14,"unknown compression type "+Pt):E[In]=_e(y,An,An+Jt))}return E}var bi=ae(42978);function wi(y,z="utf8"){return new TextDecoder(z).decode(y)}const Yi=new TextEncoder;function pi(y){return Yi.encode(y)}const yi=1024*8,Ji=(()=>{const y=new Uint8Array(4),z=new Uint32Array(y.buffer);return!((z[0]=1)&y[0])})(),io={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class ji{constructor(z=yi,E={}){Tl(this,"buffer");Tl(this,"byteLength");Tl(this,"byteOffset");Tl(this,"length");Tl(this,"offset");Tl(this,"lastWrittenByte");Tl(this,"littleEndian");Tl(this,"_data");Tl(this,"_mark");Tl(this,"_marks");let re=!1;typeof z=="number"?z=new ArrayBuffer(z):(re=!0,this.lastWrittenByte=z.byteLength);const ce=E.offset?E.offset>>>0:0,fe=z.byteLength-ce;let $e=ce;(ArrayBuffer.isView(z)||z instanceof ji)&&(z.byteLength!==z.buffer.byteLength&&($e=z.byteOffset+ce),z=z.buffer),re?this.lastWrittenByte=fe:this.lastWrittenByte=0,this.buffer=z,this.length=fe,this.byteLength=fe,this.byteOffset=$e,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,$e,fe),this._mark=0,this._marks=[]}available(z=1){return this.offset+z<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(z=1){return this.offset+=z,this}back(z=1){return this.offset-=z,this}seek(z){return this.offset=z,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const z=this._marks.pop();if(z===void 0)throw new Error("Mark stack empty");return this.seek(z),this}rewind(){return this.offset=0,this}ensureAvailable(z=1){if(!this.available(z)){const re=(this.offset+z)*2,ce=new Uint8Array(re);ce.set(new Uint8Array(this.buffer)),this.buffer=ce.buffer,this.length=re,this.byteLength=re,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(z=1){return this.readArray(z,"uint8")}readArray(z,E){const re=io[E].BYTES_PER_ELEMENT*z,ce=this.byteOffset+this.offset,fe=this.buffer.slice(ce,ce+re);if(this.littleEndian===Ji&&E!=="uint8"&&E!=="int8"){const Pe=new Uint8Array(this.buffer.slice(ce,ce+re));Pe.reverse();const Ge=new io[E](Pe.buffer);return this.offset+=re,Ge.reverse(),Ge}const $e=new io[E](fe);return this.offset+=re,$e}readInt16(){const z=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,z}readUint16(){const z=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,z}readInt32(){const z=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,z}readUint32(){const z=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,z}readFloat32(){const z=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,z}readFloat64(){const z=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,z}readBigInt64(){const z=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,z}readBigUint64(){const z=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,z}readChar(){return String.fromCharCode(this.readInt8())}readChars(z=1){let E="";for(let re=0;re<z;re++)E+=this.readChar();return E}readUtf8(z=1){return wi(this.readBytes(z))}decodeText(z=1,E="utf8"){return wi(this.readBytes(z),E)}writeBoolean(z){return this.writeUint8(z?255:0),this}writeInt8(z){return this.ensureAvailable(1),this._data.setInt8(this.offset++,z),this._updateLastWrittenByte(),this}writeUint8(z){return this.ensureAvailable(1),this._data.setUint8(this.offset++,z),this._updateLastWrittenByte(),this}writeByte(z){return this.writeUint8(z)}writeBytes(z){this.ensureAvailable(z.length);for(let E=0;E<z.length;E++)this._data.setUint8(this.offset++,z[E]);return this._updateLastWrittenByte(),this}writeInt16(z){return this.ensureAvailable(2),this._data.setInt16(this.offset,z,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(z){return this.ensureAvailable(2),this._data.setUint16(this.offset,z,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(z){return this.ensureAvailable(4),this._data.setInt32(this.offset,z,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(z){return this.ensureAvailable(4),this._data.setUint32(this.offset,z,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(z){return this.ensureAvailable(4),this._data.setFloat32(this.offset,z,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(z){return this.ensureAvailable(8),this._data.setFloat64(this.offset,z,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(z){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,z,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(z){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,z,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(z){return this.writeUint8(z.charCodeAt(0))}writeChars(z){for(let E=0;E<z.length;E++)this.writeUint8(z.charCodeAt(E));return this}writeUtf8(z){return this.writeBytes(pi(z))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}const So=4,ki=0,ko=1,co=2;function Xo(y){let z=y.length;for(;--z>=0;)y[z]=0}const wo=0,eo=1,bo=2,Go=3,Tn=258,Lo=29,Gi=256,jr=Gi+1+Lo,Jr=30,ni=19,Wr=2*jr+1,Ui=15,to=16,$r=7,oi=256,yr=16,qr=17,Ao=18,Jo=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),_o=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),pa=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),No=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),qo=512,Ro=new Array((jr+2)*2);Xo(Ro);const oa=new Array(Jr*2);Xo(oa);const da=new Array(qo);Xo(da);const Ka=new Array(Tn-Go+1);Xo(Ka);const _s=new Array(Lo);Xo(_s);const js=new Array(Jr);Xo(js);function as(y,z,E,re,ce){this.static_tree=y,this.extra_bits=z,this.extra_base=E,this.elems=re,this.max_length=ce,this.has_stree=y&&y.length}let fs,Mo,go;function Fa(y,z){this.dyn_tree=y,this.max_code=0,this.stat_desc=z}const gs=y=>y<256?da[y]:da[256+(y>>>7)],nl=(y,z)=>{y.pending_buf[y.pending++]=z&255,y.pending_buf[y.pending++]=z>>>8&255},rl=(y,z,E)=>{y.bi_valid>to-E?(y.bi_buf|=z<<y.bi_valid&65535,nl(y,y.bi_buf),y.bi_buf=z>>to-y.bi_valid,y.bi_valid+=E-to):(y.bi_buf|=z<<y.bi_valid&65535,y.bi_valid+=E)},il=(y,z,E)=>{rl(y,E[z*2],E[z*2+1])},yl=(y,z)=>{let E=0;do E|=y&1,y>>>=1,E<<=1;while(--z>0);return E>>>1},su=y=>{y.bi_valid===16?(nl(y,y.bi_buf),y.bi_buf=0,y.bi_valid=0):y.bi_valid>=8&&(y.pending_buf[y.pending++]=y.bi_buf&255,y.bi_buf>>=8,y.bi_valid-=8)},ol=(y,z)=>{const E=z.dyn_tree,re=z.max_code,ce=z.stat_desc.static_tree,fe=z.stat_desc.has_stree,$e=z.stat_desc.extra_bits,Pe=z.stat_desc.extra_base,Ge=z.stat_desc.max_length;let Ye,ft,Pt,Jt,At,In,Cn=0;for(Jt=0;Jt<=Ui;Jt++)y.bl_count[Jt]=0;for(E[y.heap[y.heap_max]*2+1]=0,Ye=y.heap_max+1;Ye<Wr;Ye++)ft=y.heap[Ye],Jt=E[E[ft*2+1]*2+1]+1,Jt>Ge&&(Jt=Ge,Cn++),E[ft*2+1]=Jt,!(ft>re)&&(y.bl_count[Jt]++,At=0,ft>=Pe&&(At=$e[ft-Pe]),In=E[ft*2],y.opt_len+=In*(Jt+At),fe&&(y.static_len+=In*(ce[ft*2+1]+At)));if(Cn!==0){do{for(Jt=Ge-1;y.bl_count[Jt]===0;)Jt--;y.bl_count[Jt]--,y.bl_count[Jt+1]+=2,y.bl_count[Ge]--,Cn-=2}while(Cn>0);for(Jt=Ge;Jt!==0;Jt--)for(ft=y.bl_count[Jt];ft!==0;)Pt=y.heap[--Ye],!(Pt>re)&&(E[Pt*2+1]!==Jt&&(y.opt_len+=(Jt-E[Pt*2+1])*E[Pt*2],E[Pt*2+1]=Jt),ft--)}},jl=(y,z,E)=>{const re=new Array(Ui+1);let ce=0,fe,$e;for(fe=1;fe<=Ui;fe++)ce=ce+E[fe-1]<<1,re[fe]=ce;for($e=0;$e<=z;$e++){let Pe=y[$e*2+1];Pe!==0&&(y[$e*2]=yl(re[Pe]++,Pe))}},Lu=()=>{let y,z,E,re,ce;const fe=new Array(Ui+1);for(E=0,re=0;re<Lo-1;re++)for(_s[re]=E,y=0;y<1<<Jo[re];y++)Ka[E++]=re;for(Ka[E-1]=re,ce=0,re=0;re<16;re++)for(js[re]=ce,y=0;y<1<<_o[re];y++)da[ce++]=re;for(ce>>=7;re<Jr;re++)for(js[re]=ce<<7,y=0;y<1<<_o[re]-7;y++)da[256+ce++]=re;for(z=0;z<=Ui;z++)fe[z]=0;for(y=0;y<=143;)Ro[y*2+1]=8,y++,fe[8]++;for(;y<=255;)Ro[y*2+1]=9,y++,fe[9]++;for(;y<=279;)Ro[y*2+1]=7,y++,fe[7]++;for(;y<=287;)Ro[y*2+1]=8,y++,fe[8]++;for(jl(Ro,jr+1,fe),y=0;y<Jr;y++)oa[y*2+1]=5,oa[y*2]=yl(y,5);fs=new as(Ro,Jo,Gi+1,jr,Ui),Mo=new as(oa,_o,0,Jr,Ui),go=new as(new Array(0),pa,0,ni,$r)},Xl=y=>{let z;for(z=0;z<jr;z++)y.dyn_ltree[z*2]=0;for(z=0;z<Jr;z++)y.dyn_dtree[z*2]=0;for(z=0;z<ni;z++)y.bl_tree[z*2]=0;y.dyn_ltree[oi*2]=1,y.opt_len=y.static_len=0,y.sym_next=y.matches=0},wl=y=>{y.bi_valid>8?nl(y,y.bi_buf):y.bi_valid>0&&(y.pending_buf[y.pending++]=y.bi_buf),y.bi_buf=0,y.bi_valid=0},ec=(y,z,E,re)=>{const ce=z*2,fe=E*2;return y[ce]<y[fe]||y[ce]===y[fe]&&re[z]<=re[E]},_c=(y,z,E)=>{const re=y.heap[E];let ce=E<<1;for(;ce<=y.heap_len&&(ce<y.heap_len&&ec(z,y.heap[ce+1],y.heap[ce],y.depth)&&ce++,!ec(z,re,y.heap[ce],y.depth));)y.heap[E]=y.heap[ce],E=ce,ce<<=1;y.heap[E]=re},ma=(y,z,E)=>{let re,ce,fe=0,$e,Pe;if(y.sym_next!==0)do re=y.pending_buf[y.sym_buf+fe++]&255,re+=(y.pending_buf[y.sym_buf+fe++]&255)<<8,ce=y.pending_buf[y.sym_buf+fe++],re===0?il(y,ce,z):($e=Ka[ce],il(y,$e+Gi+1,z),Pe=Jo[$e],Pe!==0&&(ce-=_s[$e],rl(y,ce,Pe)),re--,$e=gs(re),il(y,$e,E),Pe=_o[$e],Pe!==0&&(re-=js[$e],rl(y,re,Pe)));while(fe<y.sym_next);il(y,oi,z)},Ea=(y,z)=>{const E=z.dyn_tree,re=z.stat_desc.static_tree,ce=z.stat_desc.has_stree,fe=z.stat_desc.elems;let $e,Pe,Ge=-1,Ye;for(y.heap_len=0,y.heap_max=Wr,$e=0;$e<fe;$e++)E[$e*2]!==0?(y.heap[++y.heap_len]=Ge=$e,y.depth[$e]=0):E[$e*2+1]=0;for(;y.heap_len<2;)Ye=y.heap[++y.heap_len]=Ge<2?++Ge:0,E[Ye*2]=1,y.depth[Ye]=0,y.opt_len--,ce&&(y.static_len-=re[Ye*2+1]);for(z.max_code=Ge,$e=y.heap_len>>1;$e>=1;$e--)_c(y,E,$e);Ye=fe;do $e=y.heap[1],y.heap[1]=y.heap[y.heap_len--],_c(y,E,1),Pe=y.heap[1],y.heap[--y.heap_max]=$e,y.heap[--y.heap_max]=Pe,E[Ye*2]=E[$e*2]+E[Pe*2],y.depth[Ye]=(y.depth[$e]>=y.depth[Pe]?y.depth[$e]:y.depth[Pe])+1,E[$e*2+1]=E[Pe*2+1]=Ye,y.heap[1]=Ye++,_c(y,E,1);while(y.heap_len>=2);y.heap[--y.heap_max]=y.heap[1],ol(y,z),jl(E,Ge,y.bl_count)},ha=(y,z,E)=>{let re,ce=-1,fe,$e=z[0*2+1],Pe=0,Ge=7,Ye=4;for($e===0&&(Ge=138,Ye=3),z[(E+1)*2+1]=65535,re=0;re<=E;re++)fe=$e,$e=z[(re+1)*2+1],!(++Pe<Ge&&fe===$e)&&(Pe<Ye?y.bl_tree[fe*2]+=Pe:fe!==0?(fe!==ce&&y.bl_tree[fe*2]++,y.bl_tree[yr*2]++):Pe<=10?y.bl_tree[qr*2]++:y.bl_tree[Ao*2]++,Pe=0,ce=fe,$e===0?(Ge=138,Ye=3):fe===$e?(Ge=6,Ye=3):(Ge=7,Ye=4))},wa=(y,z,E)=>{let re,ce=-1,fe,$e=z[0*2+1],Pe=0,Ge=7,Ye=4;for($e===0&&(Ge=138,Ye=3),re=0;re<=E;re++)if(fe=$e,$e=z[(re+1)*2+1],!(++Pe<Ge&&fe===$e)){if(Pe<Ye)do il(y,fe,y.bl_tree);while(--Pe!==0);else fe!==0?(fe!==ce&&(il(y,fe,y.bl_tree),Pe--),il(y,yr,y.bl_tree),rl(y,Pe-3,2)):Pe<=10?(il(y,qr,y.bl_tree),rl(y,Pe-3,3)):(il(y,Ao,y.bl_tree),rl(y,Pe-11,7));Pe=0,ce=fe,$e===0?(Ge=138,Ye=3):fe===$e?(Ge=6,Ye=3):(Ge=7,Ye=4)}},Ja=y=>{let z;for(ha(y,y.dyn_ltree,y.l_desc.max_code),ha(y,y.dyn_dtree,y.d_desc.max_code),Ea(y,y.bl_desc),z=ni-1;z>=3&&y.bl_tree[No[z]*2+1]===0;z--);return y.opt_len+=3*(z+1)+5+5+4,z},Ga=(y,z,E,re)=>{let ce;for(rl(y,z-257,5),rl(y,E-1,5),rl(y,re-4,4),ce=0;ce<re;ce++)rl(y,y.bl_tree[No[ce]*2+1],3);wa(y,y.dyn_ltree,z-1),wa(y,y.dyn_dtree,E-1)},$a=y=>{let z=4093624447,E;for(E=0;E<=31;E++,z>>>=1)if(z&1&&y.dyn_ltree[E*2]!==0)return ki;if(y.dyn_ltree[9*2]!==0||y.dyn_ltree[10*2]!==0||y.dyn_ltree[13*2]!==0)return ko;for(E=32;E<Gi;E++)if(y.dyn_ltree[E*2]!==0)return ko;return ki};let Ql=!1;const fu=y=>{Ql||(Lu(),Ql=!0),y.l_desc=new Fa(y.dyn_ltree,fs),y.d_desc=new Fa(y.dyn_dtree,Mo),y.bl_desc=new Fa(y.bl_tree,go),y.bi_buf=0,y.bi_valid=0,Xl(y)},kl=(y,z,E,re)=>{rl(y,(wo<<1)+(re?1:0),3),wl(y),nl(y,E),nl(y,~E),E&&y.pending_buf.set(y.window.subarray(z,z+E),y.pending),y.pending+=E},Hi=y=>{rl(y,eo<<1,3),il(y,oi,Ro),su(y)},Vo=(y,z,E,re)=>{let ce,fe,$e=0;y.level>0?(y.strm.data_type===co&&(y.strm.data_type=$a(y)),Ea(y,y.l_desc),Ea(y,y.d_desc),$e=Ja(y),ce=y.opt_len+3+7>>>3,fe=y.static_len+3+7>>>3,fe<=ce&&(ce=fe)):ce=fe=E+5,E+4<=ce&&z!==-1?kl(y,z,E,re):y.strategy===So||fe===ce?(rl(y,(eo<<1)+(re?1:0),3),ma(y,Ro,oa)):(rl(y,(bo<<1)+(re?1:0),3),Ga(y,y.l_desc.max_code+1,y.d_desc.max_code+1,$e+1),ma(y,y.dyn_ltree,y.dyn_dtree)),Xl(y),re&&wl(y)},Ma=(y,z,E)=>(y.pending_buf[y.sym_buf+y.sym_next++]=z,y.pending_buf[y.sym_buf+y.sym_next++]=z>>8,y.pending_buf[y.sym_buf+y.sym_next++]=E,z===0?y.dyn_ltree[E*2]++:(y.matches++,z--,y.dyn_ltree[(Ka[E]+Gi+1)*2]++,y.dyn_dtree[gs(z)*2]++),y.sym_next===y.sym_end);var Hl=fu,ks=kl,zl=Vo,pl=Ma,eA=Hi,Bc={_tr_init:Hl,_tr_stored_block:ks,_tr_flush_block:zl,_tr_tally:pl,_tr_align:eA},ss=(y,z,E,re)=>{let ce=y&65535|0,fe=y>>>16&65535|0,$e=0;for(;E!==0;){$e=E>2e3?2e3:E,E-=$e;do ce=ce+z[re++]|0,fe=fe+ce|0;while(--$e);ce%=65521,fe%=65521}return ce|fe<<16|0};const ns=()=>{let y,z=[];for(var E=0;E<256;E++){y=E;for(var re=0;re<8;re++)y=y&1?3988292384^y>>>1:y>>>1;z[E]=y}return z},KA=new Uint32Array(ns());var Qs=(y,z,E,re)=>{const ce=KA,fe=re+E;y^=-1;for(let $e=re;$e<fe;$e++)y=y>>>8^ce[(y^z[$e])&255];return y^-1},Sl={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"},Hc={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:zc,_tr_stored_block:ml,_tr_flush_block:_u,_tr_tally:Ws,_tr_align:Gs}=Bc,{Z_NO_FLUSH:lu,Z_PARTIAL_FLUSH:NA,Z_FULL_FLUSH:$A,Z_FINISH:uu,Z_BLOCK:hu,Z_OK:Oa,Z_STREAM_END:Ua,Z_STREAM_ERROR:Ms,Z_DATA_ERROR:nc,Z_BUF_ERROR:Yl,Z_DEFAULT_COMPRESSION:pu,Z_FILTERED:Kc,Z_HUFFMAN_ONLY:hc,Z_RLE:fA,Z_FIXED:Jl,Z_DEFAULT_STRATEGY:pc,Z_UNKNOWN:nA,Z_DEFLATED:rA}=Hc,Ed=9,Jf=15,nd=8,Nu=256+1+29,DA=30,iA=19,Sd=2*Nu+1,qf=15,Ns=3,Wu=258,pA=Wu+Ns+1,Ph=32,$c=42,Th=57,Fd=69,eh=73,bf=91,Cf=103,Zc=113,va=666,Kl=1,Nc=2,rd=3,PA=4,Kp=3,TA=(y,z)=>(y.msg=Sl[z],z),th=y=>y*2-(y>4?9:0),Oc=y=>{let z=y.length;for(;--z>=0;)y[z]=0},id=y=>{let z,E,re,ce=y.w_size;z=y.hash_size,re=z;do E=y.head[--re],y.head[re]=E>=ce?E-ce:0;while(--z);z=ce,re=z;do E=y.prev[--re],y.prev[re]=E>=ce?E-ce:0;while(--z)};let mA=(y,z,E)=>(z<<y.hash_shift^E)&y.hash_mask;const Ec=y=>{const z=y.state;let E=z.pending;E>y.avail_out&&(E=y.avail_out),E!==0&&(y.output.set(z.pending_buf.subarray(z.pending_out,z.pending_out+E),y.next_out),y.next_out+=E,z.pending_out+=E,y.total_out+=E,y.avail_out-=E,z.pending-=E,z.pending===0&&(z.pending_out=0))},rc=(y,z)=>{_u(y,y.block_start>=0?y.block_start:-1,y.strstart-y.block_start,z),y.block_start=y.strstart,Ec(y.strm)},Hs=(y,z)=>{y.pending_buf[y.pending++]=z},gA=(y,z)=>{y.pending_buf[y.pending++]=z>>>8&255,y.pending_buf[y.pending++]=z&255},od=(y,z,E,re)=>{let ce=y.avail_in;return ce>re&&(ce=re),ce===0?0:(y.avail_in-=ce,z.set(y.input.subarray(y.next_in,y.next_in+ce),E),y.state.wrap===1?y.adler=ss(y.adler,z,ce,E):y.state.wrap===2&&(y.adler=Qs(y.adler,z,ce,E)),y.next_in+=ce,y.total_in+=ce,ce)},ad=(y,z)=>{let E=y.max_chain_length,re=y.strstart,ce,fe,$e=y.prev_length,Pe=y.nice_match;const Ge=y.strstart>y.w_size-pA?y.strstart-(y.w_size-pA):0,Ye=y.window,ft=y.w_mask,Pt=y.prev,Jt=y.strstart+Wu;let At=Ye[re+$e-1],In=Ye[re+$e];y.prev_length>=y.good_match&&(E>>=2),Pe>y.lookahead&&(Pe=y.lookahead);do if(ce=z,!(Ye[ce+$e]!==In||Ye[ce+$e-1]!==At||Ye[ce]!==Ye[re]||Ye[++ce]!==Ye[re+1])){re+=2,ce++;do;while(Ye[++re]===Ye[++ce]&&Ye[++re]===Ye[++ce]&&Ye[++re]===Ye[++ce]&&Ye[++re]===Ye[++ce]&&Ye[++re]===Ye[++ce]&&Ye[++re]===Ye[++ce]&&Ye[++re]===Ye[++ce]&&Ye[++re]===Ye[++ce]&&re<Jt);if(fe=Wu-(Jt-re),re=Jt-Wu,fe>$e){if(y.match_start=z,$e=fe,fe>=Pe)break;At=Ye[re+$e-1],In=Ye[re+$e]}}while((z=Pt[z&ft])>Ge&&--E!==0);return $e<=y.lookahead?$e:y.lookahead},vA=y=>{const z=y.w_size;let E,re,ce;do{if(re=y.window_size-y.lookahead-y.strstart,y.strstart>=z+(z-pA)&&(y.window.set(y.window.subarray(z,z+z-re),0),y.match_start-=z,y.strstart-=z,y.block_start-=z,y.insert>y.strstart&&(y.insert=y.strstart),id(y),re+=z),y.strm.avail_in===0)break;if(E=od(y.strm,y.window,y.strstart+y.lookahead,re),y.lookahead+=E,y.lookahead+y.insert>=Ns)for(ce=y.strstart-y.insert,y.ins_h=y.window[ce],y.ins_h=mA(y,y.ins_h,y.window[ce+1]);y.insert&&(y.ins_h=mA(y,y.ins_h,y.window[ce+Ns-1]),y.prev[ce&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=ce,ce++,y.insert--,!(y.lookahead+y.insert<Ns)););}while(y.lookahead<pA&&y.strm.avail_in!==0)},kA=(y,z)=>{let E=y.pending_buf_size-5>y.w_size?y.w_size:y.pending_buf_size-5,re,ce,fe,$e=0,Pe=y.strm.avail_in;do{if(re=65535,fe=y.bi_valid+42>>3,y.strm.avail_out<fe||(fe=y.strm.avail_out-fe,ce=y.strstart-y.block_start,re>ce+y.strm.avail_in&&(re=ce+y.strm.avail_in),re>fe&&(re=fe),re<E&&(re===0&&z!==uu||z===lu||re!==ce+y.strm.avail_in)))break;$e=z===uu&&re===ce+y.strm.avail_in?1:0,ml(y,0,0,$e),y.pending_buf[y.pending-4]=re,y.pending_buf[y.pending-3]=re>>8,y.pending_buf[y.pending-2]=~re,y.pending_buf[y.pending-1]=~re>>8,Ec(y.strm),ce&&(ce>re&&(ce=re),y.strm.output.set(y.window.subarray(y.block_start,y.block_start+ce),y.strm.next_out),y.strm.next_out+=ce,y.strm.avail_out-=ce,y.strm.total_out+=ce,y.block_start+=ce,re-=ce),re&&(od(y.strm,y.strm.output,y.strm.next_out,re),y.strm.next_out+=re,y.strm.avail_out-=re,y.strm.total_out+=re)}while($e===0);return Pe-=y.strm.avail_in,Pe&&(Pe>=y.w_size?(y.matches=2,y.window.set(y.strm.input.subarray(y.strm.next_in-y.w_size,y.strm.next_in),0),y.strstart=y.w_size,y.insert=y.strstart):(y.window_size-y.strstart<=Pe&&(y.strstart-=y.w_size,y.window.set(y.window.subarray(y.w_size,y.w_size+y.strstart),0),y.matches<2&&y.matches++,y.insert>y.strstart&&(y.insert=y.strstart)),y.window.set(y.strm.input.subarray(y.strm.next_in-Pe,y.strm.next_in),y.strstart),y.strstart+=Pe,y.insert+=Pe>y.w_size-y.insert?y.w_size-y.insert:Pe),y.block_start=y.strstart),y.high_water<y.strstart&&(y.high_water=y.strstart),$e?PA:z!==lu&&z!==uu&&y.strm.avail_in===0&&y.strstart===y.block_start?Nc:(fe=y.window_size-y.strstart,y.strm.avail_in>fe&&y.block_start>=y.w_size&&(y.block_start-=y.w_size,y.strstart-=y.w_size,y.window.set(y.window.subarray(y.w_size,y.w_size+y.strstart),0),y.matches<2&&y.matches++,fe+=y.w_size,y.insert>y.strstart&&(y.insert=y.strstart)),fe>y.strm.avail_in&&(fe=y.strm.avail_in),fe&&(od(y.strm,y.window,y.strstart,fe),y.strstart+=fe,y.insert+=fe>y.w_size-y.insert?y.w_size-y.insert:fe),y.high_water<y.strstart&&(y.high_water=y.strstart),fe=y.bi_valid+42>>3,fe=y.pending_buf_size-fe>65535?65535:y.pending_buf_size-fe,E=fe>y.w_size?y.w_size:fe,ce=y.strstart-y.block_start,(ce>=E||(ce||z===uu)&&z!==lu&&y.strm.avail_in===0&&ce<=fe)&&(re=ce>fe?fe:ce,$e=z===uu&&y.strm.avail_in===0&&re===ce?1:0,ml(y,y.block_start,re,$e),y.block_start+=re,Ec(y.strm)),$e?rd:Kl)},xf=(y,z)=>{let E,re;for(;;){if(y.lookahead<pA){if(vA(y),y.lookahead<pA&&z===lu)return Kl;if(y.lookahead===0)break}if(E=0,y.lookahead>=Ns&&(y.ins_h=mA(y,y.ins_h,y.window[y.strstart+Ns-1]),E=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart),E!==0&&y.strstart-E<=y.w_size-pA&&(y.match_length=ad(y,E)),y.match_length>=Ns)if(re=Ws(y,y.strstart-y.match_start,y.match_length-Ns),y.lookahead-=y.match_length,y.match_length<=y.max_lazy_match&&y.lookahead>=Ns){y.match_length--;do y.strstart++,y.ins_h=mA(y,y.ins_h,y.window[y.strstart+Ns-1]),E=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart;while(--y.match_length!==0);y.strstart++}else y.strstart+=y.match_length,y.match_length=0,y.ins_h=y.window[y.strstart],y.ins_h=mA(y,y.ins_h,y.window[y.strstart+1]);else re=Ws(y,0,y.window[y.strstart]),y.lookahead--,y.strstart++;if(re&&(rc(y,!1),y.strm.avail_out===0))return Kl}return y.insert=y.strstart<Ns-1?y.strstart:Ns-1,z===uu?(rc(y,!0),y.strm.avail_out===0?rd:PA):y.sym_next&&(rc(y,!1),y.strm.avail_out===0)?Kl:Nc},Id=(y,z)=>{let E,re,ce;for(;;){if(y.lookahead<pA){if(vA(y),y.lookahead<pA&&z===lu)return Kl;if(y.lookahead===0)break}if(E=0,y.lookahead>=Ns&&(y.ins_h=mA(y,y.ins_h,y.window[y.strstart+Ns-1]),E=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart),y.prev_length=y.match_length,y.prev_match=y.match_start,y.match_length=Ns-1,E!==0&&y.prev_length<y.max_lazy_match&&y.strstart-E<=y.w_size-pA&&(y.match_length=ad(y,E),y.match_length<=5&&(y.strategy===Kc||y.match_length===Ns&&y.strstart-y.match_start>4096)&&(y.match_length=Ns-1)),y.prev_length>=Ns&&y.match_length<=y.prev_length){ce=y.strstart+y.lookahead-Ns,re=Ws(y,y.strstart-1-y.prev_match,y.prev_length-Ns),y.lookahead-=y.prev_length-1,y.prev_length-=2;do++y.strstart<=ce&&(y.ins_h=mA(y,y.ins_h,y.window[y.strstart+Ns-1]),E=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart);while(--y.prev_length!==0);if(y.match_available=0,y.match_length=Ns-1,y.strstart++,re&&(rc(y,!1),y.strm.avail_out===0))return Kl}else if(y.match_available){if(re=Ws(y,0,y.window[y.strstart-1]),re&&rc(y,!1),y.strstart++,y.lookahead--,y.strm.avail_out===0)return Kl}else y.match_available=1,y.strstart++,y.lookahead--}return y.match_available&&(re=Ws(y,0,y.window[y.strstart-1]),y.match_available=0),y.insert=y.strstart<Ns-1?y.strstart:Ns-1,z===uu?(rc(y,!0),y.strm.avail_out===0?rd:PA):y.sym_next&&(rc(y,!1),y.strm.avail_out===0)?Kl:Nc},kh=(y,z)=>{let E,re,ce,fe;const $e=y.window;for(;;){if(y.lookahead<=Wu){if(vA(y),y.lookahead<=Wu&&z===lu)return Kl;if(y.lookahead===0)break}if(y.match_length=0,y.lookahead>=Ns&&y.strstart>0&&(ce=y.strstart-1,re=$e[ce],re===$e[++ce]&&re===$e[++ce]&&re===$e[++ce])){fe=y.strstart+Wu;do;while(re===$e[++ce]&&re===$e[++ce]&&re===$e[++ce]&&re===$e[++ce]&&re===$e[++ce]&&re===$e[++ce]&&re===$e[++ce]&&re===$e[++ce]&&ce<fe);y.match_length=Wu-(fe-ce),y.match_length>y.lookahead&&(y.match_length=y.lookahead)}if(y.match_length>=Ns?(E=Ws(y,1,y.match_length-Ns),y.lookahead-=y.match_length,y.strstart+=y.match_length,y.match_length=0):(E=Ws(y,0,y.window[y.strstart]),y.lookahead--,y.strstart++),E&&(rc(y,!1),y.strm.avail_out===0))return Kl}return y.insert=0,z===uu?(rc(y,!0),y.strm.avail_out===0?rd:PA):y.sym_next&&(rc(y,!1),y.strm.avail_out===0)?Kl:Nc},Zp=(y,z)=>{let E;for(;;){if(y.lookahead===0&&(vA(y),y.lookahead===0)){if(z===lu)return Kl;break}if(y.match_length=0,E=Ws(y,0,y.window[y.strstart]),y.lookahead--,y.strstart++,E&&(rc(y,!1),y.strm.avail_out===0))return Kl}return y.insert=0,z===uu?(rc(y,!0),y.strm.avail_out===0?rd:PA):y.sym_next&&(rc(y,!1),y.strm.avail_out===0)?Kl:Nc};function ic(y,z,E,re,ce){this.good_length=y,this.max_lazy=z,this.nice_length=E,this.max_chain=re,this.func=ce}const yA=[new ic(0,0,0,0,kA),new ic(4,4,8,4,xf),new ic(4,5,16,8,xf),new ic(4,6,32,32,xf),new ic(4,4,16,16,Id),new ic(8,16,32,32,Id),new ic(8,16,128,128,Id),new ic(8,32,128,256,Id),new ic(32,128,258,1024,Id),new ic(32,258,258,4096,Id)],up=y=>{y.window_size=2*y.w_size,Oc(y.head),y.max_lazy_match=yA[y.level].max_lazy,y.good_match=yA[y.level].good_length,y.nice_match=yA[y.level].nice_length,y.max_chain_length=yA[y.level].max_chain,y.strstart=0,y.block_start=0,y.lookahead=0,y.insert=0,y.match_length=y.prev_length=Ns-1,y.match_available=0,y.ins_h=0};function Wp(){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=rA,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(Sd*2),this.dyn_dtree=new Uint16Array((2*DA+1)*2),this.bl_tree=new Uint16Array((2*iA+1)*2),Oc(this.dyn_ltree),Oc(this.dyn_dtree),Oc(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(qf+1),this.heap=new Uint16Array(2*Nu+1),Oc(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Nu+1),Oc(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Vd=y=>{if(!y)return 1;const z=y.state;return!z||z.strm!==y||z.status!==$c&&z.status!==Th&&z.status!==Fd&&z.status!==eh&&z.status!==bf&&z.status!==Cf&&z.status!==Zc&&z.status!==va?1:0},cp=y=>{if(Vd(y))return TA(y,Ms);y.total_in=y.total_out=0,y.data_type=nA;const z=y.state;return z.pending=0,z.pending_out=0,z.wrap<0&&(z.wrap=-z.wrap),z.status=z.wrap===2?Th:z.wrap?$c:Zc,y.adler=z.wrap===2?0:1,z.last_flush=-2,zc(z),Oa},Xd=y=>{const z=cp(y);return z===Oa&&up(y.state),z},Gp=(y,z)=>Vd(y)||y.state.wrap!==2?Ms:(y.state.gzhead=z,Oa),oc=(y,z,E,re,ce,fe)=>{if(!y)return Ms;let $e=1;if(z===pu&&(z=6),re<0?($e=0,re=-re):re>15&&($e=2,re-=16),ce<1||ce>Ed||E!==rA||re<8||re>15||z<0||z>9||fe<0||fe>Jl||re===8&&$e!==1)return TA(y,Ms);re===8&&(re=9);const Pe=new Wp;return y.state=Pe,Pe.strm=y,Pe.status=$c,Pe.wrap=$e,Pe.gzhead=null,Pe.w_bits=re,Pe.w_size=1<<Pe.w_bits,Pe.w_mask=Pe.w_size-1,Pe.hash_bits=ce+7,Pe.hash_size=1<<Pe.hash_bits,Pe.hash_mask=Pe.hash_size-1,Pe.hash_shift=~~((Pe.hash_bits+Ns-1)/Ns),Pe.window=new Uint8Array(Pe.w_size*2),Pe.head=new Uint16Array(Pe.hash_size),Pe.prev=new Uint16Array(Pe.w_size),Pe.lit_bufsize=1<<ce+6,Pe.pending_buf_size=Pe.lit_bufsize*4,Pe.pending_buf=new Uint8Array(Pe.pending_buf_size),Pe.sym_buf=Pe.lit_bufsize,Pe.sym_end=(Pe.lit_bufsize-1)*3,Pe.level=z,Pe.strategy=fe,Pe.method=E,Xd(y)},Ou=(y,z)=>oc(y,z,rA,Jf,nd,pc),ac=(y,z)=>{if(Vd(y)||z>hu||z<0)return y?TA(y,Ms):Ms;const E=y.state;if(!y.output||y.avail_in!==0&&!y.input||E.status===va&&z!==uu)return TA(y,y.avail_out===0?Yl:Ms);const re=E.last_flush;if(E.last_flush=z,E.pending!==0){if(Ec(y),y.avail_out===0)return E.last_flush=-1,Oa}else if(y.avail_in===0&&th(z)<=th(re)&&z!==uu)return TA(y,Yl);if(E.status===va&&y.avail_in!==0)return TA(y,Yl);if(E.status===$c&&E.wrap===0&&(E.status=Zc),E.status===$c){let ce=rA+(E.w_bits-8<<4)<<8,fe=-1;if(E.strategy>=hc||E.level<2?fe=0:E.level<6?fe=1:E.level===6?fe=2:fe=3,ce|=fe<<6,E.strstart!==0&&(ce|=Ph),ce+=31-ce%31,gA(E,ce),E.strstart!==0&&(gA(E,y.adler>>>16),gA(E,y.adler&65535)),y.adler=1,E.status=Zc,Ec(y),E.pending!==0)return E.last_flush=-1,Oa}if(E.status===Th){if(y.adler=0,Hs(E,31),Hs(E,139),Hs(E,8),E.gzhead)Hs(E,(E.gzhead.text?1:0)+(E.gzhead.hcrc?2:0)+(E.gzhead.extra?4:0)+(E.gzhead.name?8:0)+(E.gzhead.comment?16:0)),Hs(E,E.gzhead.time&255),Hs(E,E.gzhead.time>>8&255),Hs(E,E.gzhead.time>>16&255),Hs(E,E.gzhead.time>>24&255),Hs(E,E.level===9?2:E.strategy>=hc||E.level<2?4:0),Hs(E,E.gzhead.os&255),E.gzhead.extra&&E.gzhead.extra.length&&(Hs(E,E.gzhead.extra.length&255),Hs(E,E.gzhead.extra.length>>8&255)),E.gzhead.hcrc&&(y.adler=Qs(y.adler,E.pending_buf,E.pending,0)),E.gzindex=0,E.status=Fd;else if(Hs(E,0),Hs(E,0),Hs(E,0),Hs(E,0),Hs(E,0),Hs(E,E.level===9?2:E.strategy>=hc||E.level<2?4:0),Hs(E,Kp),E.status=Zc,Ec(y),E.pending!==0)return E.last_flush=-1,Oa}if(E.status===Fd){if(E.gzhead.extra){let ce=E.pending,fe=(E.gzhead.extra.length&65535)-E.gzindex;for(;E.pending+fe>E.pending_buf_size;){let Pe=E.pending_buf_size-E.pending;if(E.pending_buf.set(E.gzhead.extra.subarray(E.gzindex,E.gzindex+Pe),E.pending),E.pending=E.pending_buf_size,E.gzhead.hcrc&&E.pending>ce&&(y.adler=Qs(y.adler,E.pending_buf,E.pending-ce,ce)),E.gzindex+=Pe,Ec(y),E.pending!==0)return E.last_flush=-1,Oa;ce=0,fe-=Pe}let $e=new Uint8Array(E.gzhead.extra);E.pending_buf.set($e.subarray(E.gzindex,E.gzindex+fe),E.pending),E.pending+=fe,E.gzhead.hcrc&&E.pending>ce&&(y.adler=Qs(y.adler,E.pending_buf,E.pending-ce,ce)),E.gzindex=0}E.status=eh}if(E.status===eh){if(E.gzhead.name){let ce=E.pending,fe;do{if(E.pending===E.pending_buf_size){if(E.gzhead.hcrc&&E.pending>ce&&(y.adler=Qs(y.adler,E.pending_buf,E.pending-ce,ce)),Ec(y),E.pending!==0)return E.last_flush=-1,Oa;ce=0}E.gzindex<E.gzhead.name.length?fe=E.gzhead.name.charCodeAt(E.gzindex++)&255:fe=0,Hs(E,fe)}while(fe!==0);E.gzhead.hcrc&&E.pending>ce&&(y.adler=Qs(y.adler,E.pending_buf,E.pending-ce,ce)),E.gzindex=0}E.status=bf}if(E.status===bf){if(E.gzhead.comment){let ce=E.pending,fe;do{if(E.pending===E.pending_buf_size){if(E.gzhead.hcrc&&E.pending>ce&&(y.adler=Qs(y.adler,E.pending_buf,E.pending-ce,ce)),Ec(y),E.pending!==0)return E.last_flush=-1,Oa;ce=0}E.gzindex<E.gzhead.comment.length?fe=E.gzhead.comment.charCodeAt(E.gzindex++)&255:fe=0,Hs(E,fe)}while(fe!==0);E.gzhead.hcrc&&E.pending>ce&&(y.adler=Qs(y.adler,E.pending_buf,E.pending-ce,ce))}E.status=Cf}if(E.status===Cf){if(E.gzhead.hcrc){if(E.pending+2>E.pending_buf_size&&(Ec(y),E.pending!==0))return E.last_flush=-1,Oa;Hs(E,y.adler&255),Hs(E,y.adler>>8&255),y.adler=0}if(E.status=Zc,Ec(y),E.pending!==0)return E.last_flush=-1,Oa}if(y.avail_in!==0||E.lookahead!==0||z!==lu&&E.status!==va){let ce=E.level===0?kA(E,z):E.strategy===hc?Zp(E,z):E.strategy===fA?kh(E,z):yA[E.level].func(E,z);if((ce===rd||ce===PA)&&(E.status=va),ce===Kl||ce===rd)return y.avail_out===0&&(E.last_flush=-1),Oa;if(ce===Nc&&(z===NA?Gs(E):z!==hu&&(ml(E,0,0,!1),z===$A&&(Oc(E.head),E.lookahead===0&&(E.strstart=0,E.block_start=0,E.insert=0))),Ec(y),y.avail_out===0))return E.last_flush=-1,Oa}return z!==uu?Oa:E.wrap<=0?Ua:(E.wrap===2?(Hs(E,y.adler&255),Hs(E,y.adler>>8&255),Hs(E,y.adler>>16&255),Hs(E,y.adler>>24&255),Hs(E,y.total_in&255),Hs(E,y.total_in>>8&255),Hs(E,y.total_in>>16&255),Hs(E,y.total_in>>24&255)):(gA(E,y.adler>>>16),gA(E,y.adler&65535)),Ec(y),E.wrap>0&&(E.wrap=-E.wrap),E.pending!==0?Oa:Ua)},Du=y=>{if(Vd(y))return Ms;const z=y.state.status;return y.state=null,z===Zc?TA(y,nc):Oa},sd=(y,z)=>{let E=z.length;if(Vd(y))return Ms;const re=y.state,ce=re.wrap;if(ce===2||ce===1&&re.status!==$c||re.lookahead)return Ms;if(ce===1&&(y.adler=ss(y.adler,z,E,0)),re.wrap=0,E>=re.w_size){ce===0&&(Oc(re.head),re.strstart=0,re.block_start=0,re.insert=0);let Ge=new Uint8Array(re.w_size);Ge.set(z.subarray(E-re.w_size,E),0),z=Ge,E=re.w_size}const fe=y.avail_in,$e=y.next_in,Pe=y.input;for(y.avail_in=E,y.next_in=0,y.input=z,vA(re);re.lookahead>=Ns;){let Ge=re.strstart,Ye=re.lookahead-(Ns-1);do re.ins_h=mA(re,re.ins_h,re.window[Ge+Ns-1]),re.prev[Ge&re.w_mask]=re.head[re.ins_h],re.head[re.ins_h]=Ge,Ge++;while(--Ye);re.strstart=Ge,re.lookahead=Ns-1,vA(re)}return re.strstart+=re.lookahead,re.block_start=re.strstart,re.insert=re.lookahead,re.lookahead=0,re.match_length=re.prev_length=Ns-1,re.match_available=0,y.next_in=$e,y.input=Pe,y.avail_in=fe,re.wrap=ce,Oa};var Yd=Ou,Bf=oc,Ap=Xd,dp=cp,fp=Gp,nh=ac,wA=Du,Ld=sd,hp="pako deflate (from Nodeca project)",wt={deflateInit:Yd,deflateInit2:Bf,deflateReset:Ap,deflateResetKeep:dp,deflateSetHeader:fp,deflate:nh,deflateEnd:wA,deflateSetDictionary:Ld,deflateInfo:hp};const yt=(y,z)=>Object.prototype.hasOwnProperty.call(y,z);var Xt=function(y){const z=Array.prototype.slice.call(arguments,1);for(;z.length;){const E=z.shift();if(E){if(typeof E!="object")throw new TypeError(E+"must be non-object");for(const re in E)yt(E,re)&&(y[re]=E[re])}}return y},cn=y=>{let z=0;for(let re=0,ce=y.length;re<ce;re++)z+=y[re].length;const E=new Uint8Array(z);for(let re=0,ce=0,fe=y.length;re<fe;re++){let $e=y[re];E.set($e,ce),ce+=$e.length}return E},Sn={assign:Xt,flattenChunks:cn};let kn=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(y){kn=!1}const ar=new Uint8Array(256);for(let y=0;y<256;y++)ar[y]=y>=252?6:y>=248?5:y>=240?4:y>=224?3:y>=192?2:1;ar[254]=ar[254]=1;var er=y=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(y);let z,E,re,ce,fe,$e=y.length,Pe=0;for(ce=0;ce<$e;ce++)E=y.charCodeAt(ce),(E&64512)===55296&&ce+1<$e&&(re=y.charCodeAt(ce+1),(re&64512)===56320&&(E=65536+(E-55296<<10)+(re-56320),ce++)),Pe+=E<128?1:E<2048?2:E<65536?3:4;for(z=new Uint8Array(Pe),fe=0,ce=0;fe<Pe;ce++)E=y.charCodeAt(ce),(E&64512)===55296&&ce+1<$e&&(re=y.charCodeAt(ce+1),(re&64512)===56320&&(E=65536+(E-55296<<10)+(re-56320),ce++)),E<128?z[fe++]=E:E<2048?(z[fe++]=192|E>>>6,z[fe++]=128|E&63):E<65536?(z[fe++]=224|E>>>12,z[fe++]=128|E>>>6&63,z[fe++]=128|E&63):(z[fe++]=240|E>>>18,z[fe++]=128|E>>>12&63,z[fe++]=128|E>>>6&63,z[fe++]=128|E&63);return z};const br=(y,z)=>{if(z<65534&&y.subarray&&kn)return String.fromCharCode.apply(null,y.length===z?y:y.subarray(0,z));let E="";for(let re=0;re<z;re++)E+=String.fromCharCode(y[re]);return E};var hr=(y,z)=>{const E=z||y.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(y.subarray(0,z));let re,ce;const fe=new Array(E*2);for(ce=0,re=0;re<E;){let $e=y[re++];if($e<128){fe[ce++]=$e;continue}let Pe=ar[$e];if(Pe>4){fe[ce++]=65533,re+=Pe-1;continue}for($e&=Pe===2?31:Pe===3?15:7;Pe>1&&re<E;)$e=$e<<6|y[re++]&63,Pe--;if(Pe>1){fe[ce++]=65533;continue}$e<65536?fe[ce++]=$e:($e-=65536,fe[ce++]=55296|$e>>10&1023,fe[ce++]=56320|$e&1023)}return br(fe,ce)},li=(y,z)=>{z=z||y.length,z>y.length&&(z=y.length);let E=z-1;for(;E>=0&&(y[E]&192)===128;)E--;return E<0||E===0?z:E+ar[y[E]]>z?E:z},Qr={string2buf:er,buf2string:hr,utf8border:li};function Hr(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Or=Hr;const _r=Object.prototype.toString,{Z_NO_FLUSH:Zi,Z_SYNC_FLUSH:Ci,Z_FULL_FLUSH:qi,Z_FINISH:so,Z_OK:Xi,Z_STREAM_END:ho,Z_DEFAULT_COMPRESSION:Bo,Z_DEFAULT_STRATEGY:jo,Z_DEFLATED:Po}=Hc;function Ia(y){this.options=Sn.assign({level:Bo,method:Po,chunkSize:16384,windowBits:15,memLevel:8,strategy:jo},y||{});let z=this.options;z.raw&&z.windowBits>0?z.windowBits=-z.windowBits:z.gzip&&z.windowBits>0&&z.windowBits<16&&(z.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Or,this.strm.avail_out=0;let E=wt.deflateInit2(this.strm,z.level,z.method,z.windowBits,z.memLevel,z.strategy);if(E!==Xi)throw new Error(Sl[E]);if(z.header&&wt.deflateSetHeader(this.strm,z.header),z.dictionary){let re;if(typeof z.dictionary=="string"?re=Qr.string2buf(z.dictionary):_r.call(z.dictionary)==="[object ArrayBuffer]"?re=new Uint8Array(z.dictionary):re=z.dictionary,E=wt.deflateSetDictionary(this.strm,re),E!==Xi)throw new Error(Sl[E]);this._dict_set=!0}}Ia.prototype.push=function(y,z){const E=this.strm,re=this.options.chunkSize;let ce,fe;if(this.ended)return!1;for(z===~~z?fe=z:fe=z===!0?so:Zi,typeof y=="string"?E.input=Qr.string2buf(y):_r.call(y)==="[object ArrayBuffer]"?E.input=new Uint8Array(y):E.input=y,E.next_in=0,E.avail_in=E.input.length;;){if(E.avail_out===0&&(E.output=new Uint8Array(re),E.next_out=0,E.avail_out=re),(fe===Ci||fe===qi)&&E.avail_out<=6){this.onData(E.output.subarray(0,E.next_out)),E.avail_out=0;continue}if(ce=wt.deflate(E,fe),ce===ho)return E.next_out>0&&this.onData(E.output.subarray(0,E.next_out)),ce=wt.deflateEnd(this.strm),this.onEnd(ce),this.ended=!0,ce===Xi;if(E.avail_out===0){this.onData(E.output);continue}if(fe>0&&E.next_out>0){this.onData(E.output.subarray(0,E.next_out)),E.avail_out=0;continue}if(E.avail_in===0)break}return!0},Ia.prototype.onData=function(y){this.chunks.push(y)},Ia.prototype.onEnd=function(y){y===Xi&&(this.result=Sn.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg};function aa(y,z){const E=new Ia(z);if(E.push(y,!0),E.err)throw E.msg||Sl[E.err];return E.result}function ta(y,z){return z=z||{},z.raw=!0,aa(y,z)}function zo(y,z){return z=z||{},z.gzip=!0,aa(y,z)}var Qo=Ia,Ho=aa,vo=ta,fo=zo,To=Hc,Zo={Deflate:Qo,deflate:Ho,deflateRaw:vo,gzip:fo,constants:To};const na=16209,Co=16191;var Xa=function(z,E){let re,ce,fe,$e,Pe,Ge,Ye,ft,Pt,Jt,At,In,Cn,On,An,wr,ur,Gn,ui,Ri,Ii,Nr,Xn,Vr;const ln=z.state;re=z.next_in,Xn=z.input,ce=re+(z.avail_in-5),fe=z.next_out,Vr=z.output,$e=fe-(E-z.avail_out),Pe=fe+(z.avail_out-257),Ge=ln.dmax,Ye=ln.wsize,ft=ln.whave,Pt=ln.wnext,Jt=ln.window,At=ln.hold,In=ln.bits,Cn=ln.lencode,On=ln.distcode,An=(1<<ln.lenbits)-1,wr=(1<<ln.distbits)-1;e:do{In<15&&(At+=Xn[re++]<<In,In+=8,At+=Xn[re++]<<In,In+=8),ur=Cn[At&An];t:for(;;){if(Gn=ur>>>24,At>>>=Gn,In-=Gn,Gn=ur>>>16&255,Gn===0)Vr[fe++]=ur&65535;else if(Gn&16){ui=ur&65535,Gn&=15,Gn&&(In<Gn&&(At+=Xn[re++]<<In,In+=8),ui+=At&(1<<Gn)-1,At>>>=Gn,In-=Gn),In<15&&(At+=Xn[re++]<<In,In+=8,At+=Xn[re++]<<In,In+=8),ur=On[At&wr];n:for(;;){if(Gn=ur>>>24,At>>>=Gn,In-=Gn,Gn=ur>>>16&255,Gn&16){if(Ri=ur&65535,Gn&=15,In<Gn&&(At+=Xn[re++]<<In,In+=8,In<Gn&&(At+=Xn[re++]<<In,In+=8)),Ri+=At&(1<<Gn)-1,Ri>Ge){z.msg="invalid distance too far back",ln.mode=na;break e}if(At>>>=Gn,In-=Gn,Gn=fe-$e,Ri>Gn){if(Gn=Ri-Gn,Gn>ft&&ln.sane){z.msg="invalid distance too far back",ln.mode=na;break e}if(Ii=0,Nr=Jt,Pt===0){if(Ii+=Ye-Gn,Gn<ui){ui-=Gn;do Vr[fe++]=Jt[Ii++];while(--Gn);Ii=fe-Ri,Nr=Vr}}else if(Pt<Gn){if(Ii+=Ye+Pt-Gn,Gn-=Pt,Gn<ui){ui-=Gn;do Vr[fe++]=Jt[Ii++];while(--Gn);if(Ii=0,Pt<ui){Gn=Pt,ui-=Gn;do Vr[fe++]=Jt[Ii++];while(--Gn);Ii=fe-Ri,Nr=Vr}}}else if(Ii+=Pt-Gn,Gn<ui){ui-=Gn;do Vr[fe++]=Jt[Ii++];while(--Gn);Ii=fe-Ri,Nr=Vr}for(;ui>2;)Vr[fe++]=Nr[Ii++],Vr[fe++]=Nr[Ii++],Vr[fe++]=Nr[Ii++],ui-=3;ui&&(Vr[fe++]=Nr[Ii++],ui>1&&(Vr[fe++]=Nr[Ii++]))}else{Ii=fe-Ri;do Vr[fe++]=Vr[Ii++],Vr[fe++]=Vr[Ii++],Vr[fe++]=Vr[Ii++],ui-=3;while(ui>2);ui&&(Vr[fe++]=Vr[Ii++],ui>1&&(Vr[fe++]=Vr[Ii++]))}}else if(Gn&64){z.msg="invalid distance code",ln.mode=na;break e}else{ur=On[(ur&65535)+(At&(1<<Gn)-1)];continue n}break}}else if(Gn&64)if(Gn&32){ln.mode=Co;break e}else{z.msg="invalid literal/length code",ln.mode=na;break e}else{ur=Cn[(ur&65535)+(At&(1<<Gn)-1)];continue t}break}}while(re<ce&&fe<Pe);ui=In>>3,re-=ui,In-=ui<<3,At&=(1<<In)-1,z.next_in=re,z.next_out=fe,z.avail_in=re<ce?5+(ce-re):5-(re-ce),z.avail_out=fe<Pe?257+(Pe-fe):257-(fe-Pe),ln.hold=At,ln.bits=In};const Ha=15,Ml=852,Fl=592,ll=0,lo=1,ql=2,ls=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),rs=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),al=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),mu=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var ba=(y,z,E,re,ce,fe,$e,Pe)=>{const Ge=Pe.bits;let Ye=0,ft=0,Pt=0,Jt=0,At=0,In=0,Cn=0,On=0,An=0,wr=0,ur,Gn,ui,Ri,Ii,Nr=null,Xn;const Vr=new Uint16Array(Ha+1),ln=new Uint16Array(Ha+1);let Dn=null,gr,dr,mi;for(Ye=0;Ye<=Ha;Ye++)Vr[Ye]=0;for(ft=0;ft<re;ft++)Vr[z[E+ft]]++;for(At=Ge,Jt=Ha;Jt>=1&&Vr[Jt]===0;Jt--);if(At>Jt&&(At=Jt),Jt===0)return ce[fe++]=1<<24|64<<16|0,ce[fe++]=1<<24|64<<16|0,Pe.bits=1,0;for(Pt=1;Pt<Jt&&Vr[Pt]===0;Pt++);for(At<Pt&&(At=Pt),On=1,Ye=1;Ye<=Ha;Ye++)if(On<<=1,On-=Vr[Ye],On<0)return-1;if(On>0&&(y===ll||Jt!==1))return-1;for(ln[1]=0,Ye=1;Ye<Ha;Ye++)ln[Ye+1]=ln[Ye]+Vr[Ye];for(ft=0;ft<re;ft++)z[E+ft]!==0&&($e[ln[z[E+ft]]++]=ft);if(y===ll?(Nr=Dn=$e,Xn=20):y===lo?(Nr=ls,Dn=rs,Xn=257):(Nr=al,Dn=mu,Xn=0),wr=0,ft=0,Ye=Pt,Ii=fe,In=At,Cn=0,ui=-1,An=1<<At,Ri=An-1,y===lo&&An>Ml||y===ql&&An>Fl)return 1;for(;;){gr=Ye-Cn,$e[ft]+1<Xn?(dr=0,mi=$e[ft]):$e[ft]>=Xn?(dr=Dn[$e[ft]-Xn],mi=Nr[$e[ft]-Xn]):(dr=96,mi=0),ur=1<<Ye-Cn,Gn=1<<In,Pt=Gn;do Gn-=ur,ce[Ii+(wr>>Cn)+Gn]=gr<<24|dr<<16|mi|0;while(Gn!==0);for(ur=1<<Ye-1;wr&ur;)ur>>=1;if(ur!==0?(wr&=ur-1,wr+=ur):wr=0,ft++,--Vr[Ye]===0){if(Ye===Jt)break;Ye=z[E+$e[ft]]}if(Ye>At&&(wr&Ri)!==ui){for(Cn===0&&(Cn=At),Ii+=Pt,In=Ye-Cn,On=1<<In;In+Cn<Jt&&(On-=Vr[In+Cn],!(On<=0));)In++,On<<=1;if(An+=1<<In,y===lo&&An>Ml||y===ql&&An>Fl)return 1;ui=wr&Ri,ce[ui]=At<<24|In<<16|Ii-fe|0}}return wr!==0&&(ce[Ii+wr]=Ye-Cn<<24|64<<16|0),Pe.bits=At,0};const Wo=0,Oo=1,hs=2,{Z_FINISH:Ss,Z_BLOCK:Vs,Z_TREES:zs,Z_OK:ul,Z_STREAM_END:vu,Z_NEED_DICT:sa,Z_STREAM_ERROR:ea,Z_DATA_ERROR:xs,Z_MEM_ERROR:qs,Z_BUF_ERROR:Xs,Z_DEFLATED:yu}=Hc,Ul=16180,sc=16181,Il=16182,vs=16183,cl=16184,Al=16185,gu=16186,Rl=16187,ys=16188,bl=16189,Fs=16190,Cl=16191,eu=16192,Pu=16193,Tu=16194,Wc=16195,dl=16196,_d=16197,Uu=16198,Gu=16199,Ru=16200,Vu=16201,fl=16202,mc=16203,bA=16204,Dc=16205,Gc=16206,Jd=16207,qd=16208,Is=16209,ld=16210,Ef=16211,za=852,ps=592,cu=15,Bu=y=>(y>>>24&255)+(y>>>8&65280)+((y&65280)<<8)+((y&255)<<24);function Eu(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Xu=y=>{if(!y)return 1;const z=y.state;return!z||z.strm!==y||z.mode<Ul||z.mode>Ef?1:0},ju=y=>{if(Xu(y))return ea;const z=y.state;return y.total_in=y.total_out=z.total=0,y.msg="",z.wrap&&(y.adler=z.wrap&1),z.mode=Ul,z.last=0,z.havedict=0,z.flags=-1,z.dmax=32768,z.head=null,z.hold=0,z.bits=0,z.lencode=z.lendyn=new Int32Array(za),z.distcode=z.distdyn=new Int32Array(ps),z.sane=1,z.back=-1,ul},ZA=y=>{if(Xu(y))return ea;const z=y.state;return z.wsize=0,z.whave=0,z.wnext=0,ju(y)},Sf=(y,z)=>{let E;if(Xu(y))return ea;const re=y.state;return z<0?(E=0,z=-z):(E=(z>>4)+5,z<48&&(z&=15)),z&&(z<8||z>15)?ea:(re.window!==null&&re.wbits!==z&&(re.window=null),re.wrap=E,re.wbits=z,ZA(y))},WA=(y,z)=>{if(!y)return ea;const E=new Eu;y.state=E,E.strm=y,E.window=null,E.mode=Ul;const re=Sf(y,z);return re!==ul&&(y.state=null),re},GA=y=>WA(y,cu);let wu=!0,Pc,ef;const Ff=y=>{if(wu){Pc=new Int32Array(512),ef=new Int32Array(32);let z=0;for(;z<144;)y.lens[z++]=8;for(;z<256;)y.lens[z++]=9;for(;z<280;)y.lens[z++]=7;for(;z<288;)y.lens[z++]=8;for(ba(Oo,y.lens,0,288,Pc,0,y.work,{bits:9}),z=0;z<32;)y.lens[z++]=5;ba(hs,y.lens,0,32,ef,0,y.work,{bits:5}),wu=!1}y.lencode=Pc,y.lenbits=9,y.distcode=ef,y.distbits=5},tf=(y,z,E,re)=>{let ce;const fe=y.state;return fe.window===null&&(fe.wsize=1<<fe.wbits,fe.wnext=0,fe.whave=0,fe.window=new Uint8Array(fe.wsize)),re>=fe.wsize?(fe.window.set(z.subarray(E-fe.wsize,E),0),fe.wnext=0,fe.whave=fe.wsize):(ce=fe.wsize-fe.wnext,ce>re&&(ce=re),fe.window.set(z.subarray(E-re,E-re+ce),fe.wnext),re-=ce,re?(fe.window.set(z.subarray(E-re,E),0),fe.wnext=re,fe.whave=fe.wsize):(fe.wnext+=ce,fe.wnext===fe.wsize&&(fe.wnext=0),fe.whave<fe.wsize&&(fe.whave+=ce))),0},If=(y,z)=>{let E,re,ce,fe,$e,Pe,Ge,Ye,ft,Pt,Jt,At,In,Cn,On=0,An,wr,ur,Gn,ui,Ri,Ii,Nr;const Xn=new Uint8Array(4);let Vr,ln;const Dn=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Xu(y)||!y.output||!y.input&&y.avail_in!==0)return ea;E=y.state,E.mode===Cl&&(E.mode=eu),$e=y.next_out,ce=y.output,Ge=y.avail_out,fe=y.next_in,re=y.input,Pe=y.avail_in,Ye=E.hold,ft=E.bits,Pt=Pe,Jt=Ge,Nr=ul;e:for(;;)switch(E.mode){case Ul:if(E.wrap===0){E.mode=eu;break}for(;ft<16;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}if(E.wrap&2&&Ye===35615){E.wbits===0&&(E.wbits=15),E.check=0,Xn[0]=Ye&255,Xn[1]=Ye>>>8&255,E.check=Qs(E.check,Xn,2,0),Ye=0,ft=0,E.mode=sc;break}if(E.head&&(E.head.done=!1),!(E.wrap&1)||(((Ye&255)<<8)+(Ye>>8))%31){y.msg="incorrect header check",E.mode=Is;break}if((Ye&15)!==yu){y.msg="unknown compression method",E.mode=Is;break}if(Ye>>>=4,ft-=4,Ii=(Ye&15)+8,E.wbits===0&&(E.wbits=Ii),Ii>15||Ii>E.wbits){y.msg="invalid window size",E.mode=Is;break}E.dmax=1<<E.wbits,E.flags=0,y.adler=E.check=1,E.mode=Ye&512?bl:Cl,Ye=0,ft=0;break;case sc:for(;ft<16;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}if(E.flags=Ye,(E.flags&255)!==yu){y.msg="unknown compression method",E.mode=Is;break}if(E.flags&57344){y.msg="unknown header flags set",E.mode=Is;break}E.head&&(E.head.text=Ye>>8&1),E.flags&512&&E.wrap&4&&(Xn[0]=Ye&255,Xn[1]=Ye>>>8&255,E.check=Qs(E.check,Xn,2,0)),Ye=0,ft=0,E.mode=Il;case Il:for(;ft<32;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}E.head&&(E.head.time=Ye),E.flags&512&&E.wrap&4&&(Xn[0]=Ye&255,Xn[1]=Ye>>>8&255,Xn[2]=Ye>>>16&255,Xn[3]=Ye>>>24&255,E.check=Qs(E.check,Xn,4,0)),Ye=0,ft=0,E.mode=vs;case vs:for(;ft<16;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}E.head&&(E.head.xflags=Ye&255,E.head.os=Ye>>8),E.flags&512&&E.wrap&4&&(Xn[0]=Ye&255,Xn[1]=Ye>>>8&255,E.check=Qs(E.check,Xn,2,0)),Ye=0,ft=0,E.mode=cl;case cl:if(E.flags&1024){for(;ft<16;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}E.length=Ye,E.head&&(E.head.extra_len=Ye),E.flags&512&&E.wrap&4&&(Xn[0]=Ye&255,Xn[1]=Ye>>>8&255,E.check=Qs(E.check,Xn,2,0)),Ye=0,ft=0}else E.head&&(E.head.extra=null);E.mode=Al;case Al:if(E.flags&1024&&(At=E.length,At>Pe&&(At=Pe),At&&(E.head&&(Ii=E.head.extra_len-E.length,E.head.extra||(E.head.extra=new Uint8Array(E.head.extra_len)),E.head.extra.set(re.subarray(fe,fe+At),Ii)),E.flags&512&&E.wrap&4&&(E.check=Qs(E.check,re,At,fe)),Pe-=At,fe+=At,E.length-=At),E.length))break e;E.length=0,E.mode=gu;case gu:if(E.flags&2048){if(Pe===0)break e;At=0;do Ii=re[fe+At++],E.head&&Ii&&E.length<65536&&(E.head.name+=String.fromCharCode(Ii));while(Ii&&At<Pe);if(E.flags&512&&E.wrap&4&&(E.check=Qs(E.check,re,At,fe)),Pe-=At,fe+=At,Ii)break e}else E.head&&(E.head.name=null);E.length=0,E.mode=Rl;case Rl:if(E.flags&4096){if(Pe===0)break e;At=0;do Ii=re[fe+At++],E.head&&Ii&&E.length<65536&&(E.head.comment+=String.fromCharCode(Ii));while(Ii&&At<Pe);if(E.flags&512&&E.wrap&4&&(E.check=Qs(E.check,re,At,fe)),Pe-=At,fe+=At,Ii)break e}else E.head&&(E.head.comment=null);E.mode=ys;case ys:if(E.flags&512){for(;ft<16;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}if(E.wrap&4&&Ye!==(E.check&65535)){y.msg="header crc mismatch",E.mode=Is;break}Ye=0,ft=0}E.head&&(E.head.hcrc=E.flags>>9&1,E.head.done=!0),y.adler=E.check=0,E.mode=Cl;break;case bl:for(;ft<32;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}y.adler=E.check=Bu(Ye),Ye=0,ft=0,E.mode=Fs;case Fs:if(E.havedict===0)return y.next_out=$e,y.avail_out=Ge,y.next_in=fe,y.avail_in=Pe,E.hold=Ye,E.bits=ft,sa;y.adler=E.check=1,E.mode=Cl;case Cl:if(z===Vs||z===zs)break e;case eu:if(E.last){Ye>>>=ft&7,ft-=ft&7,E.mode=Gc;break}for(;ft<3;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}switch(E.last=Ye&1,Ye>>>=1,ft-=1,Ye&3){case 0:E.mode=Pu;break;case 1:if(Ff(E),E.mode=Gu,z===zs){Ye>>>=2,ft-=2;break e}break;case 2:E.mode=dl;break;case 3:y.msg="invalid block type",E.mode=Is}Ye>>>=2,ft-=2;break;case Pu:for(Ye>>>=ft&7,ft-=ft&7;ft<32;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}if((Ye&65535)!==(Ye>>>16^65535)){y.msg="invalid stored block lengths",E.mode=Is;break}if(E.length=Ye&65535,Ye=0,ft=0,E.mode=Tu,z===zs)break e;case Tu:E.mode=Wc;case Wc:if(At=E.length,At){if(At>Pe&&(At=Pe),At>Ge&&(At=Ge),At===0)break e;ce.set(re.subarray(fe,fe+At),$e),Pe-=At,fe+=At,Ge-=At,$e+=At,E.length-=At;break}E.mode=Cl;break;case dl:for(;ft<14;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}if(E.nlen=(Ye&31)+257,Ye>>>=5,ft-=5,E.ndist=(Ye&31)+1,Ye>>>=5,ft-=5,E.ncode=(Ye&15)+4,Ye>>>=4,ft-=4,E.nlen>286||E.ndist>30){y.msg="too many length or distance symbols",E.mode=Is;break}E.have=0,E.mode=_d;case _d:for(;E.have<E.ncode;){for(;ft<3;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}E.lens[Dn[E.have++]]=Ye&7,Ye>>>=3,ft-=3}for(;E.have<19;)E.lens[Dn[E.have++]]=0;if(E.lencode=E.lendyn,E.lenbits=7,Vr={bits:E.lenbits},Nr=ba(Wo,E.lens,0,19,E.lencode,0,E.work,Vr),E.lenbits=Vr.bits,Nr){y.msg="invalid code lengths set",E.mode=Is;break}E.have=0,E.mode=Uu;case Uu:for(;E.have<E.nlen+E.ndist;){for(;On=E.lencode[Ye&(1<<E.lenbits)-1],An=On>>>24,wr=On>>>16&255,ur=On&65535,!(An<=ft);){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}if(ur<16)Ye>>>=An,ft-=An,E.lens[E.have++]=ur;else{if(ur===16){for(ln=An+2;ft<ln;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}if(Ye>>>=An,ft-=An,E.have===0){y.msg="invalid bit length repeat",E.mode=Is;break}Ii=E.lens[E.have-1],At=3+(Ye&3),Ye>>>=2,ft-=2}else if(ur===17){for(ln=An+3;ft<ln;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}Ye>>>=An,ft-=An,Ii=0,At=3+(Ye&7),Ye>>>=3,ft-=3}else{for(ln=An+7;ft<ln;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}Ye>>>=An,ft-=An,Ii=0,At=11+(Ye&127),Ye>>>=7,ft-=7}if(E.have+At>E.nlen+E.ndist){y.msg="invalid bit length repeat",E.mode=Is;break}for(;At--;)E.lens[E.have++]=Ii}}if(E.mode===Is)break;if(E.lens[256]===0){y.msg="invalid code -- missing end-of-block",E.mode=Is;break}if(E.lenbits=9,Vr={bits:E.lenbits},Nr=ba(Oo,E.lens,0,E.nlen,E.lencode,0,E.work,Vr),E.lenbits=Vr.bits,Nr){y.msg="invalid literal/lengths set",E.mode=Is;break}if(E.distbits=6,E.distcode=E.distdyn,Vr={bits:E.distbits},Nr=ba(hs,E.lens,E.nlen,E.ndist,E.distcode,0,E.work,Vr),E.distbits=Vr.bits,Nr){y.msg="invalid distances set",E.mode=Is;break}if(E.mode=Gu,z===zs)break e;case Gu:E.mode=Ru;case Ru:if(Pe>=6&&Ge>=258){y.next_out=$e,y.avail_out=Ge,y.next_in=fe,y.avail_in=Pe,E.hold=Ye,E.bits=ft,Xa(y,Jt),$e=y.next_out,ce=y.output,Ge=y.avail_out,fe=y.next_in,re=y.input,Pe=y.avail_in,Ye=E.hold,ft=E.bits,E.mode===Cl&&(E.back=-1);break}for(E.back=0;On=E.lencode[Ye&(1<<E.lenbits)-1],An=On>>>24,wr=On>>>16&255,ur=On&65535,!(An<=ft);){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}if(wr&&!(wr&240)){for(Gn=An,ui=wr,Ri=ur;On=E.lencode[Ri+((Ye&(1<<Gn+ui)-1)>>Gn)],An=On>>>24,wr=On>>>16&255,ur=On&65535,!(Gn+An<=ft);){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}Ye>>>=Gn,ft-=Gn,E.back+=Gn}if(Ye>>>=An,ft-=An,E.back+=An,E.length=ur,wr===0){E.mode=Dc;break}if(wr&32){E.back=-1,E.mode=Cl;break}if(wr&64){y.msg="invalid literal/length code",E.mode=Is;break}E.extra=wr&15,E.mode=Vu;case Vu:if(E.extra){for(ln=E.extra;ft<ln;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}E.length+=Ye&(1<<E.extra)-1,Ye>>>=E.extra,ft-=E.extra,E.back+=E.extra}E.was=E.length,E.mode=fl;case fl:for(;On=E.distcode[Ye&(1<<E.distbits)-1],An=On>>>24,wr=On>>>16&255,ur=On&65535,!(An<=ft);){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}if(!(wr&240)){for(Gn=An,ui=wr,Ri=ur;On=E.distcode[Ri+((Ye&(1<<Gn+ui)-1)>>Gn)],An=On>>>24,wr=On>>>16&255,ur=On&65535,!(Gn+An<=ft);){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}Ye>>>=Gn,ft-=Gn,E.back+=Gn}if(Ye>>>=An,ft-=An,E.back+=An,wr&64){y.msg="invalid distance code",E.mode=Is;break}E.offset=ur,E.extra=wr&15,E.mode=mc;case mc:if(E.extra){for(ln=E.extra;ft<ln;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}E.offset+=Ye&(1<<E.extra)-1,Ye>>>=E.extra,ft-=E.extra,E.back+=E.extra}if(E.offset>E.dmax){y.msg="invalid distance too far back",E.mode=Is;break}E.mode=bA;case bA:if(Ge===0)break e;if(At=Jt-Ge,E.offset>At){if(At=E.offset-At,At>E.whave&&E.sane){y.msg="invalid distance too far back",E.mode=Is;break}At>E.wnext?(At-=E.wnext,In=E.wsize-At):In=E.wnext-At,At>E.length&&(At=E.length),Cn=E.window}else Cn=ce,In=$e-E.offset,At=E.length;At>Ge&&(At=Ge),Ge-=At,E.length-=At;do ce[$e++]=Cn[In++];while(--At);E.length===0&&(E.mode=Ru);break;case Dc:if(Ge===0)break e;ce[$e++]=E.length,Ge--,E.mode=Ru;break;case Gc:if(E.wrap){for(;ft<32;){if(Pe===0)break e;Pe--,Ye|=re[fe++]<<ft,ft+=8}if(Jt-=Ge,y.total_out+=Jt,E.total+=Jt,E.wrap&4&&Jt&&(y.adler=E.check=E.flags?Qs(E.check,ce,Jt,$e-Jt):ss(E.check,ce,Jt,$e-Jt)),Jt=Ge,E.wrap&4&&(E.flags?Ye:Bu(Ye))!==E.check){y.msg="incorrect data check",E.mode=Is;break}Ye=0,ft=0}E.mode=Jd;case Jd:if(E.wrap&&E.flags){for(;ft<32;){if(Pe===0)break e;Pe--,Ye+=re[fe++]<<ft,ft+=8}if(E.wrap&4&&Ye!==(E.total&4294967295)){y.msg="incorrect length check",E.mode=Is;break}Ye=0,ft=0}E.mode=qd;case qd:Nr=vu;break e;case Is:Nr=xs;break e;case ld:return qs;case Ef:default:return ea}return y.next_out=$e,y.avail_out=Ge,y.next_in=fe,y.avail_in=Pe,E.hold=Ye,E.bits=ft,(E.wsize||Jt!==y.avail_out&&E.mode<Is&&(E.mode<Gc||z!==Ss))&&tf(y,y.output,y.next_out,Jt-y.avail_out),Pt-=y.avail_in,Jt-=y.avail_out,y.total_in+=Pt,y.total_out+=Jt,E.total+=Jt,E.wrap&4&&Jt&&(y.adler=E.check=E.flags?Qs(E.check,ce,Jt,y.next_out-Jt):ss(E.check,ce,Jt,y.next_out-Jt)),y.data_type=E.bits+(E.last?64:0)+(E.mode===Cl?128:0)+(E.mode===Gu||E.mode===Tu?256:0),(Pt===0&&Jt===0||z===Ss)&&Nr===ul&&(Nr=Xs),Nr},VA=y=>{if(Xu(y))return ea;let z=y.state;return z.window&&(z.window=null),y.state=null,ul},rh=(y,z)=>{if(Xu(y))return ea;const E=y.state;return E.wrap&2?(E.head=z,z.done=!1,ul):ea},pp=(y,z)=>{const E=z.length;let re,ce,fe;return Xu(y)||(re=y.state,re.wrap!==0&&re.mode!==Fs)?ea:re.mode===Fs&&(ce=1,ce=ss(ce,z,E,0),ce!==re.check)?xs:(fe=tf(y,z,E,E),fe?(re.mode=ld,qs):(re.havedict=1,ul))};var ih=ZA,nf=Sf,mp=ju,gp=GA,rf=WA,Lf=If,Nd=VA,_f=rh,Od=pp,of="pako inflate (from Nodeca project)",CA={inflateReset:ih,inflateReset2:nf,inflateResetKeep:mp,inflateInit:gp,inflateInit2:rf,inflate:Lf,inflateEnd:Nd,inflateGetHeader:_f,inflateSetDictionary:Od,inflateInfo:of};function oh(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var ah=oh;const Mh=Object.prototype.toString,{Z_NO_FLUSH:ud,Z_FINISH:xA,Z_OK:BA,Z_STREAM_END:Dd,Z_NEED_DICT:cd,Z_STREAM_ERROR:Uh,Z_DATA_ERROR:ms,Z_MEM_ERROR:Ls}=Hc;function bu(y){this.options=Sn.assign({chunkSize:1024*64,windowBits:15,to:""},y||{});const z=this.options;z.raw&&z.windowBits>=0&&z.windowBits<16&&(z.windowBits=-z.windowBits,z.windowBits===0&&(z.windowBits=-15)),z.windowBits>=0&&z.windowBits<16&&!(y&&y.windowBits)&&(z.windowBits+=32),z.windowBits>15&&z.windowBits<48&&(z.windowBits&15||(z.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Or,this.strm.avail_out=0;let E=CA.inflateInit2(this.strm,z.windowBits);if(E!==BA)throw new Error(Sl[E]);if(this.header=new ah,CA.inflateGetHeader(this.strm,this.header),z.dictionary&&(typeof z.dictionary=="string"?z.dictionary=Qr.string2buf(z.dictionary):Mh.call(z.dictionary)==="[object ArrayBuffer]"&&(z.dictionary=new Uint8Array(z.dictionary)),z.raw&&(E=CA.inflateSetDictionary(this.strm,z.dictionary),E!==BA)))throw new Error(Sl[E])}bu.prototype.push=function(y,z){const E=this.strm,re=this.options.chunkSize,ce=this.options.dictionary;let fe,$e,Pe;if(this.ended)return!1;for(z===~~z?$e=z:$e=z===!0?xA:ud,Mh.call(y)==="[object ArrayBuffer]"?E.input=new Uint8Array(y):E.input=y,E.next_in=0,E.avail_in=E.input.length;;){for(E.avail_out===0&&(E.output=new Uint8Array(re),E.next_out=0,E.avail_out=re),fe=CA.inflate(E,$e),fe===cd&&ce&&(fe=CA.inflateSetDictionary(E,ce),fe===BA?fe=CA.inflate(E,$e):fe===ms&&(fe=cd));E.avail_in>0&&fe===Dd&&E.state.wrap>0&&y[E.next_in]!==0;)CA.inflateReset(E),fe=CA.inflate(E,$e);switch(fe){case Uh:case ms:case cd:case Ls:return this.onEnd(fe),this.ended=!0,!1}if(Pe=E.avail_out,E.next_out&&(E.avail_out===0||fe===Dd))if(this.options.to==="string"){let Ge=Qr.utf8border(E.output,E.next_out),Ye=E.next_out-Ge,ft=Qr.buf2string(E.output,Ge);E.next_out=Ye,E.avail_out=re-Ye,Ye&&E.output.set(E.output.subarray(Ge,Ge+Ye),0),this.onData(ft)}else this.onData(E.output.length===E.next_out?E.output:E.output.subarray(0,E.next_out));if(!(fe===BA&&Pe===0)){if(fe===Dd)return fe=CA.inflateEnd(this.strm),this.onEnd(fe),this.ended=!0,!0;if(E.avail_in===0)break}}return!0},bu.prototype.onData=function(y){this.chunks.push(y)},bu.prototype.onEnd=function(y){y===BA&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Sn.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg};function Qu(y,z){const E=new bu(z);if(E.push(y),E.err)throw E.msg||Sl[E.err];return E.result}function Hu(y,z){return z=z||{},z.raw=!0,Qu(y,z)}var Ad=bu,XA=Qu,MA=Hu,dd=Qu,YA=Hc,Rh={Inflate:Ad,inflate:XA,inflateRaw:MA,ungzip:dd,constants:YA};const{Deflate:fd,deflate:Vp,deflateRaw:jh,gzip:mm}=Zo,{Inflate:gm,inflate:Xp,inflateRaw:Zl,ungzip:Yp}=Rh;var Qh=fd,af=Vp,EA=jh,sh=mm,lh=gm,Nf=Xp,uh=Zl,vp=Yp,yp=Hc,vm={Deflate:Qh,deflate:af,deflateRaw:EA,gzip:sh,Inflate:lh,inflate:Nf,inflateRaw:uh,ungzip:vp,constants:yp};const wp=[];for(let y=0;y<256;y++){let z=y;for(let E=0;E<8;E++)z&1?z=3988292384^z>>>1:z=z>>>1;wp[y]=z}const ch=4294967295;function Jp(y,z,E){let re=y;for(let ce=0;ce<E;ce++)re=wp[(re^z[ce])&255]^re>>>8;return re}function xl(y,z){return(Jp(ch,y,z)^ch)>>>0}function Pd(y,z,E){const re=y.readUint32(),ce=xl(new Uint8Array(y.buffer,y.byteOffset+y.offset-z-4,z),z);if(ce!==re)throw new Error(`CRC mismatch for chunk ${E}. Expected ${re}, found ${ce}`)}function ym(y,z){y.writeUint32(xl(new Uint8Array(y.buffer,y.byteOffset+y.offset-z,z),z))}function Wl(y,z,E){for(let re=0;re<E;re++)z[re]=y[re]}function Td(y,z,E,re){let ce=0;for(;ce<re;ce++)z[ce]=y[ce];for(;ce<E;ce++)z[ce]=y[ce]+z[ce-re]&255}function JA(y,z,E,re){let ce=0;if(E.length===0)for(;ce<re;ce++)z[ce]=y[ce];else for(;ce<re;ce++)z[ce]=y[ce]+E[ce]&255}function hd(y,z,E,re,ce){let fe=0;if(E.length===0){for(;fe<ce;fe++)z[fe]=y[fe];for(;fe<re;fe++)z[fe]=y[fe]+(z[fe-ce]>>1)&255}else{for(;fe<ce;fe++)z[fe]=y[fe]+(E[fe]>>1)&255;for(;fe<re;fe++)z[fe]=y[fe]+(z[fe-ce]+E[fe]>>1)&255}}function Ll(y,z,E,re,ce){let fe=0;if(E.length===0){for(;fe<ce;fe++)z[fe]=y[fe];for(;fe<re;fe++)z[fe]=y[fe]+z[fe-ce]&255}else{for(;fe<ce;fe++)z[fe]=y[fe]+E[fe]&255;for(;fe<re;fe++)z[fe]=y[fe]+Ah(z[fe-ce],E[fe],E[fe-ce])&255}}function Ah(y,z,E){const re=y+z-E,ce=Math.abs(re-y),fe=Math.abs(re-z),$e=Math.abs(re-E);return ce<=fe&&ce<=$e?y:fe<=$e?z:E}function pd(y,z,E,re,ce,fe){switch(y){case 0:Wl(z,E,ce);break;case 1:Td(z,E,ce,fe);break;case 2:JA(z,E,re,ce);break;case 3:hd(z,E,re,ce,fe);break;case 4:Ll(z,E,re,ce,fe);break;default:throw new Error(`Unsupported filter: ${y}`)}}const qp=new Uint16Array([255]),a=new Uint8Array(qp.buffer)[0]===255;function b(y){const{data:z,width:E,height:re,channels:ce,depth:fe}=y,$e=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],Pe=Math.ceil(fe/8)*ce,Ge=new Uint8Array(re*E*Pe);let Ye=0;for(let ft=0;ft<7;ft++){const Pt=$e[ft],Jt=Math.ceil((E-Pt.x)/Pt.xStep),At=Math.ceil((re-Pt.y)/Pt.yStep);if(Jt<=0||At<=0)continue;const In=Jt*Pe,Cn=new Uint8Array(In);for(let On=0;On<At;On++){const An=z[Ye++],wr=z.subarray(Ye,Ye+In);Ye+=In;const ur=new Uint8Array(In);pd(An,wr,ur,Cn,In,Pe),Cn.set(ur);for(let Gn=0;Gn<Jt;Gn++){const ui=Pt.x+Gn*Pt.xStep,Ri=Pt.y+On*Pt.yStep;if(!(ui>=E||Ri>=re))for(let Ii=0;Ii<Pe;Ii++)Ge[(Ri*E+ui)*Pe+Ii]=ur[Gn*Pe+Ii]}}}if(fe===16){const ft=new Uint16Array(Ge.buffer);if(a)for(let Pt=0;Pt<ft.length;Pt++)ft[Pt]=ne(ft[Pt]);return ft}else return Ge}function ne(y){return(y&255)<<8|y>>8&255}const te=new Uint16Array([255]),Ne=new Uint8Array(te.buffer)[0]===255,et=new Uint8Array(0);function vt(y){const{data:z,width:E,height:re,channels:ce,depth:fe}=y,$e=Math.ceil(fe/8)*ce,Pe=Math.ceil(fe/8*ce*E),Ge=new Uint8Array(re*Pe);let Ye=et,ft=0,Pt,Jt;for(let At=0;At<re;At++){switch(Pt=z.subarray(ft+1,ft+1+Pe),Jt=Ge.subarray(At*Pe,(At+1)*Pe),z[ft]){case 0:Wl(Pt,Jt,Pe);break;case 1:Td(Pt,Jt,Pe,$e);break;case 2:JA(Pt,Jt,Ye,Pe);break;case 3:hd(Pt,Jt,Ye,Pe,$e);break;case 4:Ll(Pt,Jt,Ye,Pe,$e);break;default:throw new Error(`Unsupported filter: ${z[ft]}`)}Ye=Jt,ft+=Pe+1}if(fe===16){const At=new Uint16Array(Ge.buffer);if(Ne)for(let In=0;In<At.length;In++)At[In]=St(At[In]);return At}else return Ge}function St(y){return(y&255)<<8|y>>8&255}const _t=Uint8Array.of(137,80,78,71,13,10,26,10);function Ln(y){y.writeBytes(_t)}function Hn(y){if(!Tr(y.readBytes(_t.length)))throw new Error("wrong PNG signature")}function Tr(y){if(y.length<_t.length)return!1;for(let z=0;z<_t.length;z++)if(y[z]!==_t[z])return!1;return!0}const Er="tEXt",xi=0,Ki=new TextDecoder("latin1");function uo(y){if(Ko(y),y.length===0||y.length>79)throw new Error("keyword length must be between 1 and 79")}const Fo=/^[\u0000-\u00FF]*$/;function Ko(y){if(!Fo.test(y))throw new Error("invalid latin1 text")}function Io(y,z,E){const re=Da(z);y[re]=Ca(z,E-re.length-1)}function ua(y,z,E){uo(z),Ko(E);const re=z.length+1+E.length;y.writeUint32(re),y.writeChars(Er),y.writeChars(z),y.writeByte(xi),y.writeChars(E),writeCrc(y,re+4)}function Da(y){for(y.mark();y.readByte()!==xi;);const z=y.offset;y.reset();const E=Ki.decode(y.readBytes(z-y.offset-1));return y.skip(1),uo(E),E}function Ca(y,z){return Ki.decode(y.readBytes(z))}const Ra={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},_l={UNKNOWN:-1,DEFLATE:0},zu={UNKNOWN:-1,ADAPTIVE:0},tu={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},gc={NONE:0,BACKGROUND:1,PREVIOUS:2},Yu={SOURCE:0,OVER:1};class ku extends ji{constructor(E,re={}){super(E);Tl(this,"_checkCrc");Tl(this,"_inflator");Tl(this,"_png");Tl(this,"_apng");Tl(this,"_end");Tl(this,"_hasPalette");Tl(this,"_palette");Tl(this,"_hasTransparency");Tl(this,"_transparency");Tl(this,"_compressionMethod");Tl(this,"_filterMethod");Tl(this,"_interlaceMethod");Tl(this,"_colorType");Tl(this,"_isAnimated");Tl(this,"_numberOfFrames");Tl(this,"_numberOfPlays");Tl(this,"_frames");Tl(this,"_writingDataChunks");const{checkCrc:ce=!1}=re;this._checkCrc=ce,this._inflator=new lh,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=_l.UNKNOWN,this._filterMethod=zu.UNKNOWN,this._interlaceMethod=tu.UNKNOWN,this._colorType=Ra.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Hn(this);!this._end;){const E=this.readUint32(),re=this.readChars(4);this.decodeChunk(E,re)}return this.decodeImage(),this._png}decodeApng(){for(Hn(this);!this._end;){const E=this.readUint32(),re=this.readChars(4);this.decodeApngChunk(E,re)}return this.decodeApngImage(),this._apng}decodeChunk(E,re){const ce=this.offset;switch(re){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(E);break;case"IDAT":this.decodeIDAT(E);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(E);break;case"iCCP":this.decodeiCCP(E);break;case Er:Io(this._png.text,this,E);break;case"pHYs":this.decodepHYs();break;default:this.skip(E);break}if(this.offset-ce!==E)throw new Error(`Length mismatch while decoding chunk ${re}`);this._checkCrc?Pd(this,E+4,re):this.skip(4)}decodeApngChunk(E,re){const ce=this.offset;switch(re!=="fdAT"&&re!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),re){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(E);break;default:this.decodeChunk(E,re),this.offset=ce+E;break}if(this.offset-ce!==E)throw new Error(`Length mismatch while decoding chunk ${re}`);this._checkCrc?Pd(this,E+4,re):this.skip(4)}decodeIHDR(){const E=this._png;E.width=this.readUint32(),E.height=this.readUint32(),E.depth=vc(this.readUint8());const re=this.readUint8();this._colorType=re;let ce;switch(re){case Ra.GREYSCALE:ce=1;break;case Ra.TRUECOLOUR:ce=3;break;case Ra.INDEXED_COLOUR:ce=1;break;case Ra.GREYSCALE_ALPHA:ce=2;break;case Ra.TRUECOLOUR_ALPHA:ce=4;break;case Ra.UNKNOWN:default:throw new Error(`Unknown color type: ${re}`)}if(this._png.channels=ce,this._compressionMethod=this.readUint8(),this._compressionMethod!==_l.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const E={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(E)}decodePLTE(E){if(E%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${E}`);const re=E/3;this._hasPalette=!0;const ce=[];this._palette=ce;for(let fe=0;fe<re;fe++)ce.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(E){this._writingDataChunks=!0;const re=E,ce=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,ce,re)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(E)}decodeFDAT(E){this._writingDataChunks=!0;let re=E,ce=this.offset+this.byteOffset;if(ce+=4,re-=4,this._inflator.push(new Uint8Array(this.buffer,ce,re)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(E)}decodetRNS(E){switch(this._colorType){case Ra.GREYSCALE:case Ra.TRUECOLOUR:{if(E%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${E}`);if(E/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${E/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(E/2);for(let re=0;re<E/2;re++)this._transparency[re]=this.readUint16();break}case Ra.INDEXED_COLOUR:{if(E>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${E} vs ${this._palette.length})`);let re=0;for(;re<E;re++){const ce=this.readByte();this._palette[re].push(ce)}for(;re<this._palette.length;re++)this._palette[re].push(255);break}case Ra.UNKNOWN:case Ra.GREYSCALE_ALPHA:case Ra.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(E){const re=Da(this),ce=this.readUint8();if(ce!==_l.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${ce}`);const fe=this.readBytes(E-re.length-2);this._png.iccEmbeddedProfile={name:re,profile:Nf(fe)}}decodepHYs(){const E=this.readUint32(),re=this.readUint32(),ce=this.readByte();this._png.resolution={x:E,y:re,unit:ce}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let E=0;E<this._numberOfFrames;E++){const re={sequenceNumber:this._frames[E].sequenceNumber,delayNumber:this._frames[E].delayNumber,delayDenominator:this._frames[E].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},ce=this._frames.at(E);if(ce){if(ce.data=vt({data:ce.data,width:ce.width,height:ce.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),E===0||ce.xOffset===0&&ce.yOffset===0&&ce.width===this._png.width&&ce.height===this._png.height)re.data=ce.data;else{const fe=this._apng.frames.at(E-1);this.disposeFrame(ce,fe,re),this.addFrameDataToCanvas(re,ce)}this._apng.frames.push(re)}}return this._apng}disposeFrame(E,re,ce){switch(E.disposeOp){case gc.NONE:break;case gc.BACKGROUND:for(let fe=0;fe<this._png.height;fe++)for(let $e=0;$e<this._png.width;$e++){const Pe=(fe*E.width+$e)*this._png.channels;for(let Ge=0;Ge<this._png.channels;Ge++)ce.data[Pe+Ge]=0}break;case gc.PREVIOUS:ce.data.set(re.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(E,re){const ce=1<<this._png.depth,fe=($e,Pe)=>{const Ge=(($e+re.yOffset)*this._png.width+re.xOffset+Pe)*this._png.channels,Ye=($e*re.width+Pe)*this._png.channels;return{index:Ge,frameIndex:Ye}};switch(re.blendOp){case Yu.SOURCE:for(let $e=0;$e<re.height;$e++)for(let Pe=0;Pe<re.width;Pe++){const{index:Ge,frameIndex:Ye}=fe($e,Pe);for(let ft=0;ft<this._png.channels;ft++)E.data[Ge+ft]=re.data[Ye+ft]}break;case Yu.OVER:for(let $e=0;$e<re.height;$e++)for(let Pe=0;Pe<re.width;Pe++){const{index:Ge,frameIndex:Ye}=fe($e,Pe);for(let ft=0;ft<this._png.channels;ft++){const Pt=re.data[Ye+this._png.channels-1]/ce,Jt=ft%(this._png.channels-1)===0?1:re.data[Ye+ft],At=Math.floor(Pt*Jt+(1-Pt)*E.data[Ge+ft]);E.data[Ge+ft]+=At}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var re;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const E=this._isAnimated?((re=this._frames)==null?void 0:re.at(0)).data:this._inflator.result;if(this._filterMethod!==zu.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===tu.NO_INTERLACE)this._png.data=vt({data:E,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===tu.ADAM7)this._png.data=b({data:E,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const E=this._inflator.result,re=this._frames.at(-1);re?re.data=E:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:gc.NONE,blendOp:Yu.SOURCE,data:E}),this._inflator=new lh,this._writingDataChunks=!1}}function vc(y){if(y!==1&&y!==2&&y!==4&&y!==8&&y!==16)throw new Error(`invalid bit depth: ${y}`);return y}const lc={level:3};class Eo extends null{constructor(E,re={}){var ce;super();Tl(this,"_png");Tl(this,"_zlibOptions");Tl(this,"_colorType");Tl(this,"_interlaceMethod");this._colorType=ColorType.UNKNOWN,this._zlibOptions=wf(wf({},lc),re.zlib),this._png=this._checkData(E),this._interlaceMethod=(ce=re.interlace==="Adam7"?InterlaceMethod.ADAM7:InterlaceMethod.NO_INTERLACE)!=null?ce:InterlaceMethod.NO_INTERLACE,this.setBigEndian()}encode(){if(writeSignature(this),this.encodeIHDR(),this._png.palette&&(this.encodePLTE(),this._png.palette[0].length===4&&this.encodeTRNS()),this.encodeData(),this._png.text)for(const[E,re]of Object.entries(this._png.text))encodetEXt(this,E,re);return this.encodeIEND(),this.toArray()}encodeIHDR(){this.writeUint32(13),this.writeChars("IHDR"),this.writeUint32(this._png.width),this.writeUint32(this._png.height),this.writeByte(this._png.depth),this.writeByte(this._colorType),this.writeByte(CompressionMethod.DEFLATE),this.writeByte(FilterMethod.ADAPTIVE),this.writeByte(this._interlaceMethod),writeCrc(this,17)}encodeIEND(){this.writeUint32(0),this.writeChars("IEND"),writeCrc(this,4)}encodePLTE(){var re;const E=((re=this._png.palette)==null?void 0:re.length)*3;this.writeUint32(E),this.writeChars("PLTE");for(const ce of this._png.palette)this.writeByte(ce[0]),this.writeByte(ce[1]),this.writeByte(ce[2]);writeCrc(this,4+E)}encodeTRNS(){const E=this._png.palette.filter(re=>re.at(-1)!==255);this.writeUint32(E.length),this.writeChars("tRNS");for(const re of E)this.writeByte(re.at(-1));writeCrc(this,4+E.length)}encodeIDAT(E){this.writeUint32(E.length),this.writeChars("IDAT"),this.writeBytes(E),writeCrc(this,E.length+4)}encodeData(){const{width:E,height:re,channels:ce,depth:fe,data:$e}=this._png,Pe=fe<=8?Math.ceil(E*fe/8)*ce:Math.ceil(E*fe/8*ce/2),Ge=new IOBuffer().setBigEndian();let Ye=0;if(this._interlaceMethod===InterlaceMethod.NO_INTERLACE)for(let Jt=0;Jt<re;Jt++)Ge.writeByte(0),fe===16?Ye=Ks($e,Ge,Pe,Ye):Ye=ru($e,Ge,Pe,Ye);else this._interlaceMethod===InterlaceMethod.ADAM7&&(Ye=Of(this._png,$e,Ge,Ye));const ft=Ge.toArray(),Pt=deflate(ft,this._zlibOptions);this.encodeIDAT(Pt)}_checkData(E){const{colorType:re,channels:ce,depth:fe}=nu(E,E.palette),$e={width:Gl(E.width,"width"),height:Gl(E.height,"height"),channels:ce,data:E.data,depth:fe,text:E.text,palette:E.palette};this._colorType=re;const Pe=fe<8?Math.ceil($e.width*fe/8)*$e.height*ce:$e.width*$e.height*ce;if($e.data.length!==Pe)throw new RangeError(`wrong data size. Found ${$e.data.length}, expected ${Pe}`);return $e}}function Gl(y,z){if(Number.isInteger(y)&&y>0)return y;throw new TypeError(`${z} must be a positive integer`)}function nu(y,z){const{channels:E=4,depth:re=8}=y;if(E!==4&&E!==3&&E!==2&&E!==1)throw new RangeError(`unsupported number of channels: ${E}`);const ce={channels:E,depth:re,colorType:ColorType.UNKNOWN};switch(E){case 4:ce.colorType=ColorType.TRUECOLOUR_ALPHA;break;case 3:ce.colorType=ColorType.TRUECOLOUR;break;case 1:z?ce.colorType=ColorType.INDEXED_COLOUR:ce.colorType=ColorType.GREYSCALE;break;case 2:ce.colorType=ColorType.GREYSCALE_ALPHA;break;default:throw new Error("unsupported number of channels")}return ce}function ru(y,z,E,re){for(let ce=0;ce<E;ce++)z.writeByte(y[re++]);return re}function Of(y,z,E,re){const ce=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],{width:fe,height:$e,channels:Pe,depth:Ge}=y;let Ye=0;Ge===16?Ye=Pe*Ge/8/2:Ye=Pe*Ge/8;for(let ft=0;ft<7;ft++){const Pt=ce[ft],Jt=Math.floor((fe-Pt.x+Pt.xStep-1)/Pt.xStep),At=Math.floor(($e-Pt.y+Pt.yStep-1)/Pt.yStep);if(Jt<=0||At<=0)continue;const In=Jt*Ye;for(let Cn=0;Cn<At;Cn++){const On=Pt.y+Cn*Pt.yStep,An=Ge<=8?new Uint8Array(In):new Uint16Array(In);let wr=0;for(let ur=0;ur<Jt;ur++){const Gn=Pt.x+ur*Pt.xStep;if(Gn<fe&&On<$e){const ui=(On*fe+Gn)*Ye;for(let Ri=0;Ri<Ye;Ri++)An[wr++]=z[ui+Ri]}}if(E.writeByte(0),Ge===8)E.writeBytes(An);else if(Ge===16)for(const ur of An)E.writeByte(ur>>8&255),E.writeByte(ur&255)}}return re}function Ks(y,z,E,re){for(let ce=0;ce<E;ce++)z.writeUint16(y[re++]);return re}var Bs;(function(y){y[y.UNKNOWN=0]="UNKNOWN",y[y.METRE=1]="METRE"})(Bs||(Bs={}));function oA(y,z){return new ku(y,z).decode()}function uc(y,z){return new PngEncoder(y,z).encode()}function dh(y,z){return new PngDecoder(y,z).decodeApng()}var Pa=function(){return typeof window!="undefined"?window:typeof ae.g!="undefined"?ae.g:typeof self!="undefined"?self:this}();function SA(){Pa.console&&typeof Pa.console.log=="function"&&Pa.console.log.apply(Pa.console,arguments)}var hl={log:SA,warn:function(y){Pa.console&&(typeof Pa.console.warn=="function"?Pa.console.warn.apply(Pa.console,arguments):SA.call(null,arguments))},error:function(y){Pa.console&&(typeof Pa.console.error=="function"?Pa.console.error.apply(Pa.console,arguments):SA(y))}};function cc(y,z,E){var re=new XMLHttpRequest;re.open("GET",y),re.responseType="blob",re.onload=function(){Pf(re.response,z,E)},re.onerror=function(){hl.error("could not download file")},re.send()}function kd(y){var z=new XMLHttpRequest;z.open("HEAD",y,!1);try{z.send()}catch(E){}return z.status>=200&&z.status<=299}function Df(y){try{y.dispatchEvent(new MouseEvent("click"))}catch(E){var z=document.createEvent("MouseEvents");z.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),y.dispatchEvent(z)}}var Pf=Pa.saveAs||((typeof window=="undefined"?"undefined":(0,x.Z)(window))!=="object"||window!==Pa?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(y,z,E){var re=Pa.URL||Pa.webkitURL,ce=document.createElement("a");z=z||y.name||"download",ce.download=z,ce.rel="noopener",typeof y=="string"?(ce.href=y,ce.origin!==location.origin?kd(ce.href)?cc(y,z,E):Df(ce,ce.target="_blank"):Df(ce)):(ce.href=re.createObjectURL(y),setTimeout(function(){re.revokeObjectURL(ce.href)},4e4),setTimeout(function(){Df(ce)},0))}:"msSaveOrOpenBlob"in navigator?function(y,z,E){if(z=z||y.name||"download",typeof y=="string")if(kd(y))cc(y,z,E);else{var re=document.createElement("a");re.href=y,re.target="_blank",setTimeout(function(){Df(re)})}else navigator.msSaveOrOpenBlob(function(ce,fe){return fe===void 0?fe={autoBom:!1}:(0,x.Z)(fe)!=="object"&&(hl.warn("Deprecated: Expected third argument to be a object"),fe={autoBom:!fe}),fe.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ce.type)?new Blob(["\uFEFF",ce],{type:ce.type}):ce}(y,E),z)}:function(y,z,E,re){if((re=re||open("","_blank"))&&(re.document.title=re.document.body.innerText="downloading..."),typeof y=="string")return cc(y,z,E);var ce=y.type==="application/octet-stream",fe=/constructor/i.test(Pa.HTMLElement)||Pa.safari,$e=/CriOS\/[\d]+/.test(navigator.userAgent);if(($e||ce&&fe)&&(typeof FileReader=="undefined"?"undefined":(0,x.Z)(FileReader))==="object"){var Pe=new FileReader;Pe.onloadend=function(){var ft=Pe.result;ft=$e?ft:ft.replace(/^data:[^;]*;/,"data:attachment/file;"),re?re.location.href=ft:location=ft,re=null},Pe.readAsDataURL(y)}else{var Ge=Pa.URL||Pa.webkitURL,Ye=Ge.createObjectURL(y);re?re.location=Ye:location.href=Ye,re=null,setTimeout(function(){Ge.revokeObjectURL(Ye)},4e4)}});function Jm(y){var z;y=y||"",this.ok=!1,y.charAt(0)=="#"&&(y=y.substr(1,6)),y={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"}[y=(y=y.replace(/ /g,"")).toLowerCase()]||y;for(var E=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(Pe){return[parseInt(Pe[1]),parseInt(Pe[2]),parseInt(Pe[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(Pe){return[parseInt(Pe[1],16),parseInt(Pe[2],16),parseInt(Pe[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(Pe){return[parseInt(Pe[1]+Pe[1],16),parseInt(Pe[2]+Pe[2],16),parseInt(Pe[3]+Pe[3],16)]}}],re=0;re<E.length;re++){var ce=E[re].re,fe=E[re].process,$e=ce.exec(y);$e&&(z=fe($e),this.r=z[0],this.g=z[1],this.b=z[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 Pe=this.r.toString(16),Ge=this.g.toString(16),Ye=this.b.toString(16);return Pe.length==1&&(Pe="0"+Pe),Ge.length==1&&(Ge="0"+Ge),Ye.length==1&&(Ye="0"+Ye),"#"+Pe+Ge+Ye}}var bp=Pa.atob.bind(Pa),wm=Pa.btoa.bind(Pa);function Cp(y,z){var E=y[0],re=y[1],ce=y[2],fe=y[3];E=Vc(E,re,ce,fe,z[0],7,-680876936),fe=Vc(fe,E,re,ce,z[1],12,-389564586),ce=Vc(ce,fe,E,re,z[2],17,606105819),re=Vc(re,ce,fe,E,z[3],22,-1044525330),E=Vc(E,re,ce,fe,z[4],7,-176418897),fe=Vc(fe,E,re,ce,z[5],12,1200080426),ce=Vc(ce,fe,E,re,z[6],17,-1473231341),re=Vc(re,ce,fe,E,z[7],22,-45705983),E=Vc(E,re,ce,fe,z[8],7,1770035416),fe=Vc(fe,E,re,ce,z[9],12,-1958414417),ce=Vc(ce,fe,E,re,z[10],17,-42063),re=Vc(re,ce,fe,E,z[11],22,-1990404162),E=Vc(E,re,ce,fe,z[12],7,1804603682),fe=Vc(fe,E,re,ce,z[13],12,-40341101),ce=Vc(ce,fe,E,re,z[14],17,-1502002290),E=Tc(E,re=Vc(re,ce,fe,E,z[15],22,1236535329),ce,fe,z[1],5,-165796510),fe=Tc(fe,E,re,ce,z[6],9,-1069501632),ce=Tc(ce,fe,E,re,z[11],14,643717713),re=Tc(re,ce,fe,E,z[0],20,-373897302),E=Tc(E,re,ce,fe,z[5],5,-701558691),fe=Tc(fe,E,re,ce,z[10],9,38016083),ce=Tc(ce,fe,E,re,z[15],14,-660478335),re=Tc(re,ce,fe,E,z[4],20,-405537848),E=Tc(E,re,ce,fe,z[9],5,568446438),fe=Tc(fe,E,re,ce,z[14],9,-1019803690),ce=Tc(ce,fe,E,re,z[3],14,-187363961),re=Tc(re,ce,fe,E,z[8],20,1163531501),E=Tc(E,re,ce,fe,z[13],5,-1444681467),fe=Tc(fe,E,re,ce,z[2],9,-51403784),ce=Tc(ce,fe,E,re,z[7],14,1735328473),E=Xc(E,re=Tc(re,ce,fe,E,z[12],20,-1926607734),ce,fe,z[5],4,-378558),fe=Xc(fe,E,re,ce,z[8],11,-2022574463),ce=Xc(ce,fe,E,re,z[11],16,1839030562),re=Xc(re,ce,fe,E,z[14],23,-35309556),E=Xc(E,re,ce,fe,z[1],4,-1530992060),fe=Xc(fe,E,re,ce,z[4],11,1272893353),ce=Xc(ce,fe,E,re,z[7],16,-155497632),re=Xc(re,ce,fe,E,z[10],23,-1094730640),E=Xc(E,re,ce,fe,z[13],4,681279174),fe=Xc(fe,E,re,ce,z[0],11,-358537222),ce=Xc(ce,fe,E,re,z[3],16,-722521979),re=Xc(re,ce,fe,E,z[6],23,76029189),E=Xc(E,re,ce,fe,z[9],4,-640364487),fe=Xc(fe,E,re,ce,z[12],11,-421815835),ce=Xc(ce,fe,E,re,z[15],16,530742520),E=Yc(E,re=Xc(re,ce,fe,E,z[2],23,-995338651),ce,fe,z[0],6,-198630844),fe=Yc(fe,E,re,ce,z[7],10,1126891415),ce=Yc(ce,fe,E,re,z[14],15,-1416354905),re=Yc(re,ce,fe,E,z[5],21,-57434055),E=Yc(E,re,ce,fe,z[12],6,1700485571),fe=Yc(fe,E,re,ce,z[3],10,-1894986606),ce=Yc(ce,fe,E,re,z[10],15,-1051523),re=Yc(re,ce,fe,E,z[1],21,-2054922799),E=Yc(E,re,ce,fe,z[8],6,1873313359),fe=Yc(fe,E,re,ce,z[15],10,-30611744),ce=Yc(ce,fe,E,re,z[6],15,-1560198380),re=Yc(re,ce,fe,E,z[13],21,1309151649),E=Yc(E,re,ce,fe,z[4],6,-145523070),fe=Yc(fe,E,re,ce,z[11],10,-1120210379),ce=Yc(ce,fe,E,re,z[2],15,718787259),re=Yc(re,ce,fe,E,z[9],21,-343485551),y[0]=Md(E,y[0]),y[1]=Md(re,y[1]),y[2]=Md(ce,y[2]),y[3]=Md(fe,y[3])}function xp(y,z,E,re,ce,fe){return z=Md(Md(z,y),Md(re,fe)),Md(z<<ce|z>>>32-ce,E)}function Vc(y,z,E,re,ce,fe,$e){return xp(z&E|~z&re,y,z,ce,fe,$e)}function Tc(y,z,E,re,ce,fe,$e){return xp(z&re|E&~re,y,z,ce,fe,$e)}function Xc(y,z,E,re,ce,fe,$e){return xp(z^E^re,y,z,ce,fe,$e)}function Yc(y,z,E,re,ce,fe,$e){return xp(E^(z|~re),y,z,ce,fe,$e)}function qm(y){var z,E=y.length,re=[1732584193,-271733879,-1732584194,271733878];for(z=64;z<=y.length;z+=64)Cp(re,em(y.substring(z-64,z)));y=y.substring(z-64);var ce=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(z=0;z<y.length;z++)ce[z>>2]|=y.charCodeAt(z)<<(z%4<<3);if(ce[z>>2]|=128<<(z%4<<3),z>55)for(Cp(re,ce),z=0;z<16;z++)ce[z]=0;return ce[14]=8*E,Cp(re,ce),re}function em(y){var z,E=[];for(z=0;z<64;z+=4)E[z>>2]=y.charCodeAt(z)+(y.charCodeAt(z+1)<<8)+(y.charCodeAt(z+2)<<16)+(y.charCodeAt(z+3)<<24);return E}var UA="0123456789abcdef".split("");function eg(y){for(var z="",E=0;E<4;E++)z+=UA[y>>8*E+4&15]+UA[y>>8*E&15];return z}function tm(y){return String.fromCharCode(255&y,(65280&y)>>8,(16711680&y)>>16,(4278190080&y)>>24)}function bm(y){return qm(y).map(tm).join("")}var Qg=function(y){for(var z=0;z<y.length;z++)y[z]=eg(y[z]);return y.join("")}(qm("hello"))!="5d41402abc4b2a76b9719d911017c592";function Md(y,z){if(Qg){var E=(65535&y)+(65535&z);return(y>>16)+(z>>16)+(E>>16)<<16|65535&E}return y+z&4294967295}function Tf(y,z){var E,re,ce,fe;if(y!==E){for(var $e=(ce=y,fe=1+(256/y.length|0),new Array(fe+1).join(ce)),Pe=[],Ge=0;Ge<256;Ge++)Pe[Ge]=Ge;var Ye=0;for(Ge=0;Ge<256;Ge++){var ft=Pe[Ge];Ye=(Ye+ft+$e.charCodeAt(Ge))%256,Pe[Ge]=Pe[Ye],Pe[Ye]=ft}E=y,re=Pe}else Pe=re;var Pt=z.length,Jt=0,At=0,In="";for(Ge=0;Ge<Pt;Ge++)At=(At+(ft=Pe[Jt=(Jt+1)%256]))%256,Pe[Jt]=Pe[At],Pe[At]=ft,$e=Pe[(Pe[Jt]+Pe[At])%256],In+=String.fromCharCode(z.charCodeAt(Ge)^$e);return In}var Bp={print:4,modify:8,copy:16,"annot-forms":32};function zh(y,z,E,re){this.v=1,this.r=2;var ce=192;y.forEach(function(Pe){if(Bp.perm!==void 0)throw new Error("Invalid permission: "+Pe);ce+=Bp[Pe]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var fe=(z+this.padding).substr(0,32),$e=(E+this.padding).substr(0,32);this.O=this.processOwnerPassword(fe,$e),this.P=-(1+(255^ce)),this.encryptionKey=bm(fe+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(re)).substr(0,5),this.U=Tf(this.encryptionKey,this.padding)}function md(y){if(/[^\u0000-\u00ff]/.test(y))throw new Error("Invalid PDF Name Object: "+y+", Only accept ASCII characters.");for(var z="",E=y.length,re=0;re<E;re++){var ce=y.charCodeAt(re);z+=ce<33||ce===35||ce===37||ce===40||ce===41||ce===47||ce===60||ce===62||ce===91||ce===93||ce===123||ce===125||ce>126?"#"+("0"+ce.toString(16)).slice(-2):y[re]}return z}function tg(y){if((0,x.Z)(y)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var z={};this.subscribe=function(E,re,ce){if(ce=ce||!1,typeof E!="string"||typeof re!="function"||typeof ce!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");z.hasOwnProperty(E)||(z[E]={});var fe=Math.random().toString(35);return z[E][fe]=[re,!!ce],fe},this.unsubscribe=function(E){for(var re in z)if(z[re][E])return delete z[re][E],Object.keys(z[re]).length===0&&delete z[re],!0;return!1},this.publish=function(E){if(z.hasOwnProperty(E)){var re=Array.prototype.slice.call(arguments,1),ce=[];for(var fe in z[E]){var $e=z[E][fe];try{$e[0].apply(y,re)}catch(Pe){Pa.console&&hl.error("jsPDF PubSub Error",Pe.message,Pe)}$e[1]&&ce.push(fe)}ce.length&&ce.forEach(this.unsubscribe)}},this.getTopics=function(){return z}}function Ep(y){if(!(this instanceof Ep))return new Ep(y);var z="opacity,stroke-opacity".split(",");for(var E in y)y.hasOwnProperty(E)&&z.indexOf(E)>=0&&(this[E]=y[E]);this.id="",this.objectNumber=-1}function Cm(y,z){this.gState=y,this.matrix=z,this.id="",this.objectNumber=-1}function kf(y,z,E,re,ce){if(!(this instanceof kf))return new kf(y,z,E,re,ce);this.type=y==="axial"?2:3,this.coords=z,this.colors=E,Cm.call(this,re,ce)}function Mf(y,z,E,re,ce){if(!(this instanceof Mf))return new Mf(y,z,E,re,ce);this.boundingBox=y,this.xStep=z,this.yStep=E,this.stream="",this.cloneIndex=0,Cm.call(this,re,ce)}function La(y){var z,E=typeof arguments[0]=="string"?arguments[0]:"p",re=arguments[1],ce=arguments[2],fe=arguments[3],$e=[],Pe=1,Ge=16,Ye="S",ft=null;(0,x.Z)(y=y||{})==="object"&&(E=y.orientation,re=y.unit||re,ce=y.format||ce,fe=y.compress||y.compressPdf||fe,(ft=y.encryption||null)!==null&&(ft.userPassword=ft.userPassword||"",ft.ownerPassword=ft.ownerPassword||"",ft.userPermissions=ft.userPermissions||[]),Pe=typeof y.userUnit=="number"?Math.abs(y.userUnit):1,y.precision!==void 0&&(z=y.precision),y.floatPrecision!==void 0&&(Ge=y.floatPrecision),Ye=y.defaultPathOperation||"S"),$e=y.filters||(fe===!0?["FlateEncode"]:$e),re=re||"mm",E=(""+(E||"P")).toLowerCase();var Pt=y.putOnlyUsedFonts||!1,Jt={},At={internal:{},__private__:{}};At.__private__.PubSub=tg;var In="1.3",Cn=At.__private__.getPdfVersion=function(){return In};At.__private__.setPdfVersion=function(Xe){In=Xe};var On={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]};At.__private__.getPageFormats=function(){return On};var An=At.__private__.getPageFormat=function(Xe){return On[Xe]};ce=ce||"a4";var wr="compat",ur="advanced",Gn=wr;function ui(){this.saveGraphicsState(),Pn(new cs(Us,0,0,-Us,0,Pp()*Us).toString()+" cm"),this.setFontSize(this.getFontSize()/Us),Ye="n",Gn=ur}function Ri(){this.restoreGraphicsState(),Ye="S",Gn=wr}var Ii=At.__private__.combineFontStyleAndFontWeight=function(Xe,Qt){if(Xe=="bold"&&Qt=="normal"||Xe=="bold"&&Qt==400||Xe=="normal"&&Qt=="italic"||Xe=="bold"&&Qt=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return Qt&&(Xe=Qt==400||Qt==="normal"?Xe==="italic"?"italic":"normal":Qt!=700&&Qt!=="bold"||Xe!=="normal"?(Qt==700?"bold":Qt)+""+Xe:"bold"),Xe};At.advancedAPI=function(Xe){var Qt=Gn===wr;return Qt&&ui.call(this),typeof Xe!="function"||(Xe(this),Qt&&Ri.call(this)),this},At.compatAPI=function(Xe){var Qt=Gn===ur;return Qt&&Ri.call(this),typeof Xe!="function"||(Xe(this),Qt&&ui.call(this)),this},At.isAdvancedAPI=function(){return Gn===ur};var Nr,Xn=function(Xe){if(Gn!==ur)throw new Error(Xe+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Vr=At.roundToPrecision=At.__private__.roundToPrecision=function(Xe,Qt){var jn=z||Qt;if(isNaN(Xe)||isNaN(jn))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Xe.toFixed(jn).replace(/0+$/,"")};Nr=At.hpf=At.__private__.hpf=typeof Ge=="number"?function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.hpf");return Vr(Xe,Ge)}:Ge==="smart"?function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.hpf");return Vr(Xe,Xe>-1&&Xe<1?16:5)}:function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.hpf");return Vr(Xe,16)};var ln=At.f2=At.__private__.f2=function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.f2");return Vr(Xe,2)},Dn=At.__private__.f3=function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.f3");return Vr(Xe,3)},gr=At.scale=At.__private__.scale=function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.scale");return Gn===wr?Xe*Us:Gn===ur?Xe:void 0},dr=function(Xe){return gr(function(Qt){return Gn===wr?Pp()-Qt:Gn===ur?Qt:void 0}(Xe))};At.__private__.setPrecision=At.setPrecision=function(Xe){typeof parseInt(Xe,10)=="number"&&(z=parseInt(Xe,10))};var mi,Si="00000000000000000000000000000000",Ni=At.__private__.getFileId=function(){return Si},ai=At.__private__.setFileId=function(Xe){return Si=Xe!==void 0&&/^[a-fA-F0-9]{32}$/.test(Xe)?Xe.toUpperCase():Si.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),ft!==null&&(kc=new zh(ft.userPermissions,ft.userPassword,ft.ownerPassword,Si)),Si};At.setFileId=function(Xe){return ai(Xe),this},At.getFileId=function(){return Ni()};var Di=At.__private__.convertDateToPDFDate=function(Xe){var Qt=Xe.getTimezoneOffset(),jn=Qt<0?"+":"-",mr=Math.floor(Math.abs(Qt/60)),Gr=Math.abs(Qt%60),$i=[jn,ir(mr),"'",ir(Gr),"'"].join("");return["D:",Xe.getFullYear(),ir(Xe.getMonth()+1),ir(Xe.getDate()),ir(Xe.getHours()),ir(Xe.getMinutes()),ir(Xe.getSeconds()),$i].join("")},Do=At.__private__.convertPDFDateToDate=function(Xe){var Qt=parseInt(Xe.substr(2,4),10),jn=parseInt(Xe.substr(6,2),10)-1,mr=parseInt(Xe.substr(8,2),10),Gr=parseInt(Xe.substr(10,2),10),$i=parseInt(Xe.substr(12,2),10),oo=parseInt(Xe.substr(14,2),10);return new Date(Qt,jn,mr,Gr,$i,oo,0)},ro=At.__private__.setCreationDate=function(Xe){var Qt;if(Xe===void 0&&(Xe=new Date),Xe instanceof Date)Qt=Di(Xe);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(Xe))throw new Error("Invalid argument passed to jsPDF.setCreationDate");Qt=Xe}return mi=Qt},nn=At.__private__.getCreationDate=function(Xe){var Qt=mi;return Xe==="jsDate"&&(Qt=Do(mi)),Qt};At.setCreationDate=function(Xe){return ro(Xe),this},At.getCreationDate=function(Xe){return nn(Xe)};var Kn,ir=At.__private__.padd2=function(Xe){return("0"+parseInt(Xe)).slice(-2)},Cr=At.__private__.padd2Hex=function(Xe){return("00"+(Xe=Xe.toString())).substr(Xe.length)},Rr=0,ei=[],Li=[],Oi=0,Vi=[],xo=[],ca=!1,la=Li;At.__private__.setCustomOutputDestination=function(Xe){ca=!0,la=Xe};var Wa=function(Xe){ca||(la=Xe)};At.__private__.resetCustomOutputDestination=function(){ca=!1,la=Li};var Pn=At.__private__.out=function(Xe){return Xe=Xe.toString(),Oi+=Xe.length+1,la.push(Xe),la},Aa=At.__private__.write=function(Xe){return Pn(arguments.length===1?Xe.toString():Array.prototype.join.call(arguments," "))},Js=At.__private__.getArrayBuffer=function(Xe){for(var Qt=Xe.length,jn=new ArrayBuffer(Qt),mr=new Uint8Array(jn);Qt--;)mr[Qt]=Xe.charCodeAt(Qt);return jn},is=[["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]];At.__private__.getStandardFonts=function(){return is};var mo=y.fontSize||16;At.__private__.setFontSize=At.setFontSize=function(Xe){return mo=Gn===ur?Xe/Us:Xe,this};var os,Ba=At.__private__.getFontSize=At.getFontSize=function(){return Gn===wr?mo:mo*Us},ts=y.R2L||!1;At.__private__.setR2L=At.setR2L=function(Xe){return ts=Xe,this},At.__private__.getR2L=At.getR2L=function(){return ts};var Va,iu=At.__private__.setZoomMode=function(Xe){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(Xe))os=Xe;else if(isNaN(Xe)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(Xe)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+Xe+'" is not recognized.');os=Xe}else os=parseInt(Xe,10)};At.__private__.getZoomMode=function(){return os};var gl,Ds=At.__private__.setPageMode=function(Xe){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(Xe)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+Xe+'" is not recognized.');Va=Xe};At.__private__.getPageMode=function(){return Va};var Bl=At.__private__.setLayoutMode=function(Xe){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(Xe)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+Xe+'" is not recognized.');gl=Xe};At.__private__.getLayoutMode=function(){return gl},At.__private__.setDisplayMode=At.setDisplayMode=function(Xe,Qt,jn){return iu(Xe),Bl(Qt),Ds(jn),this};var vl={title:"",subject:"",author:"",keywords:"",creator:""};At.__private__.getDocumentProperty=function(Xe){if(Object.keys(vl).indexOf(Xe)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return vl[Xe]},At.__private__.getDocumentProperties=function(){return vl},At.__private__.setDocumentProperties=At.setProperties=At.setDocumentProperties=function(Xe){for(var Qt in vl)vl.hasOwnProperty(Qt)&&Xe[Qt]&&(vl[Qt]=Xe[Qt]);return this},At.__private__.setDocumentProperty=function(Xe,Qt){if(Object.keys(vl).indexOf(Xe)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return vl[Xe]=Qt};var Ta,Us,Qa,yc,Ol,el={},tl={},$u=[],Ya={},Su={},ds={},Ps={},Zu=null,sl=0,us=[],ou=new tg(At),Sp=y.hotfixes||[],LA={},mh={},zf=[],cs=function Xe(Qt,jn,mr,Gr,$i,oo){if(!(this instanceof Xe))return new Xe(Qt,jn,mr,Gr,$i,oo);isNaN(Qt)&&(Qt=1),isNaN(jn)&&(jn=0),isNaN(mr)&&(mr=0),isNaN(Gr)&&(Gr=1),isNaN($i)&&($i=0),isNaN(oo)&&(oo=0),this._matrix=[Qt,jn,mr,Gr,$i,oo]};Object.defineProperty(cs.prototype,"sx",{get:function(){return this._matrix[0]},set:function(Xe){this._matrix[0]=Xe}}),Object.defineProperty(cs.prototype,"shy",{get:function(){return this._matrix[1]},set:function(Xe){this._matrix[1]=Xe}}),Object.defineProperty(cs.prototype,"shx",{get:function(){return this._matrix[2]},set:function(Xe){this._matrix[2]=Xe}}),Object.defineProperty(cs.prototype,"sy",{get:function(){return this._matrix[3]},set:function(Xe){this._matrix[3]=Xe}}),Object.defineProperty(cs.prototype,"tx",{get:function(){return this._matrix[4]},set:function(Xe){this._matrix[4]=Xe}}),Object.defineProperty(cs.prototype,"ty",{get:function(){return this._matrix[5]},set:function(Xe){this._matrix[5]=Xe}}),Object.defineProperty(cs.prototype,"a",{get:function(){return this._matrix[0]},set:function(Xe){this._matrix[0]=Xe}}),Object.defineProperty(cs.prototype,"b",{get:function(){return this._matrix[1]},set:function(Xe){this._matrix[1]=Xe}}),Object.defineProperty(cs.prototype,"c",{get:function(){return this._matrix[2]},set:function(Xe){this._matrix[2]=Xe}}),Object.defineProperty(cs.prototype,"d",{get:function(){return this._matrix[3]},set:function(Xe){this._matrix[3]=Xe}}),Object.defineProperty(cs.prototype,"e",{get:function(){return this._matrix[4]},set:function(Xe){this._matrix[4]=Xe}}),Object.defineProperty(cs.prototype,"f",{get:function(){return this._matrix[5]},set:function(Xe){this._matrix[5]=Xe}}),Object.defineProperty(cs.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(cs.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(cs.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(cs.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),cs.prototype.join=function(Xe){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Nr).join(Xe)},cs.prototype.multiply=function(Xe){var Qt=Xe.sx*this.sx+Xe.shy*this.shx,jn=Xe.sx*this.shy+Xe.shy*this.sy,mr=Xe.shx*this.sx+Xe.sy*this.shx,Gr=Xe.shx*this.shy+Xe.sy*this.sy,$i=Xe.tx*this.sx+Xe.ty*this.shx+this.tx,oo=Xe.tx*this.shy+Xe.ty*this.sy+this.ty;return new cs(Qt,jn,mr,Gr,$i,oo)},cs.prototype.decompose=function(){var Xe=this.sx,Qt=this.shy,jn=this.shx,mr=this.sy,Gr=this.tx,$i=this.ty,oo=Math.sqrt(Xe*Xe+Qt*Qt),Sa=(Xe/=oo)*jn+(Qt/=oo)*mr;jn-=Xe*Sa,mr-=Qt*Sa;var ka=Math.sqrt(jn*jn+mr*mr);return Sa/=ka,Xe*(mr/=ka)<Qt*(jn/=ka)&&(Xe=-Xe,Qt=-Qt,Sa=-Sa,oo=-oo),{scale:new cs(oo,0,0,ka,0,0),translate:new cs(1,0,0,1,Gr,$i),rotate:new cs(Xe,Qt,-Qt,Xe,0,0),skew:new cs(1,0,Sa,1,0,0)}},cs.prototype.toString=function(Xe){return this.join(" ")},cs.prototype.inversed=function(){var Xe=this.sx,Qt=this.shy,jn=this.shx,mr=this.sy,Gr=this.tx,$i=this.ty,oo=1/(Xe*mr-Qt*jn),Sa=mr*oo,ka=-Qt*oo,Cs=-jn*oo,Rs=Xe*oo;return new cs(Sa,ka,Cs,Rs,-Sa*Gr-Cs*$i,-ka*Gr-Rs*$i)},cs.prototype.applyToPoint=function(Xe){var Qt=Xe.x*this.sx+Xe.y*this.shx+this.tx,jn=Xe.x*this.shy+Xe.y*this.sy+this.ty;return new xh(Qt,jn)},cs.prototype.applyToRectangle=function(Xe){var Qt=this.applyToPoint(Xe),jn=this.applyToPoint(new xh(Xe.x+Xe.w,Xe.y+Xe.h));return new Om(Qt.x,Qt.y,jn.x-Qt.x,jn.y-Qt.y)},cs.prototype.clone=function(){var Xe=this.sx,Qt=this.shy,jn=this.shx,mr=this.sy,Gr=this.tx,$i=this.ty;return new cs(Xe,Qt,jn,mr,Gr,$i)},At.Matrix=cs;var gh=At.matrixMult=function(Xe,Qt){return Qt.multiply(Xe)},vh=new cs(1,0,0,1,0,0);At.unitMatrix=At.identityMatrix=vh;var jd=function(Xe,Qt){if(!Su[Xe]){var jn=(Qt instanceof kf?"Sh":"P")+(Object.keys(Ya).length+1).toString(10);Qt.id=jn,Su[Xe]=jn,Ya[jn]=Qt,ou.publish("addPattern",Qt)}};At.ShadingPattern=kf,At.TilingPattern=Mf,At.addShadingPattern=function(Xe,Qt){return Xn("addShadingPattern()"),jd(Xe,Qt),this},At.beginTilingPattern=function(Xe){Xn("beginTilingPattern()"),Dm(Xe.boundingBox[0],Xe.boundingBox[1],Xe.boundingBox[2]-Xe.boundingBox[0],Xe.boundingBox[3]-Xe.boundingBox[1],Xe.matrix)},At.endTilingPattern=function(Xe,Qt){Xn("endTilingPattern()"),Qt.stream=xo[Kn].join(`
`),jd(Xe,Qt),ou.publish("endTilingPattern",Qt),zf.pop().restore()};var Qd,Ac=At.__private__.newObject=function(){var Xe=qc();return sA(Xe,!0),Xe},qc=At.__private__.newObjectDeferred=function(){return Rr++,ei[Rr]=function(){return Oi},Rr},sA=function(Xe,Qt){return Qt=typeof Qt=="boolean"&&Qt,ei[Xe]=Oi,Qt&&Pn(Xe+" 0 obj"),Xe},Fp=At.__private__.newAdditionalObject=function(){var Xe={objId:qc(),content:""};return Vi.push(Xe),Xe},Wh=qc(),df=qc(),Kf=At.__private__.decodeColorString=function(Xe){var Qt=Xe.split(" ");if(Qt.length!==2||Qt[1]!=="g"&&Qt[1]!=="G")Qt.length!==5||Qt[4]!=="k"&&Qt[4]!=="K"||(Qt=[(1-Qt[0])*(1-Qt[3]),(1-Qt[1])*(1-Qt[3]),(1-Qt[2])*(1-Qt[3]),"r"]);else{var jn=parseFloat(Qt[0]);Qt=[jn,jn,jn,"r"]}for(var mr="#",Gr=0;Gr<3;Gr++)mr+=("0"+Math.floor(255*parseFloat(Qt[Gr])).toString(16)).slice(-2);return mr},ff=At.__private__.encodeColorString=function(Xe){var Qt;typeof Xe=="string"&&(Xe={ch1:Xe});var jn=Xe.ch1,mr=Xe.ch2,Gr=Xe.ch3,$i=Xe.ch4,oo=Xe.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof jn=="string"&&jn.charAt(0)!=="#"){var Sa=new Jm(jn);if(Sa.ok)jn=Sa.toHex();else if(!/^\d*\.?\d*$/.test(jn))throw new Error('Invalid color "'+jn+'" passed to jsPDF.encodeColorString.')}if(typeof jn=="string"&&/^#[0-9A-Fa-f]{3}$/.test(jn)&&(jn="#"+jn[1]+jn[1]+jn[2]+jn[2]+jn[3]+jn[3]),typeof jn=="string"&&/^#[0-9A-Fa-f]{6}$/.test(jn)){var ka=parseInt(jn.substr(1),16);jn=ka>>16&255,mr=ka>>8&255,Gr=255&ka}if(mr===void 0||$i===void 0&&jn===mr&&mr===Gr)Qt=typeof jn=="string"?jn+" "+oo[0]:Xe.precision===2?ln(jn/255)+" "+oo[0]:Dn(jn/255)+" "+oo[0];else if($i===void 0||(0,x.Z)($i)==="object"){if($i&&!isNaN($i.a)&&$i.a===0)return["1.","1.","1.",oo[1]].join(" ");Qt=typeof jn=="string"?[jn,mr,Gr,oo[1]].join(" "):Xe.precision===2?[ln(jn/255),ln(mr/255),ln(Gr/255),oo[1]].join(" "):[Dn(jn/255),Dn(mr/255),Dn(Gr/255),oo[1]].join(" ")}else Qt=typeof jn=="string"?[jn,mr,Gr,$i,oo[2]].join(" "):Xe.precision===2?[ln(jn),ln(mr),ln(Gr),ln($i),oo[2]].join(" "):[Dn(jn),Dn(mr),Dn(Gr),Dn($i),oo[2]].join(" ");return Qt},hf=At.__private__.getFilters=function(){return $e},Hd=At.__private__.putStream=function(Xe){var Qt=(Xe=Xe||{}).data||"",jn=Xe.filters||hf(),mr=Xe.alreadyAppliedFilters||[],Gr=Xe.addLength1||!1,$i=Qt.length,oo=Xe.objectId,Sa=function(Mc){return Mc};if(ft!==null&&oo===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");ft!==null&&(Sa=kc.encryptor(oo,0));var ka={};jn===!0&&(jn=["FlateEncode"]);var Cs=Xe.additionalKeyValues||[],Rs=(ka=La.API.processDataByFilters!==void 0?La.API.processDataByFilters(Qt,jn):{data:Qt,reverseChain:[]}).reverseChain+(Array.isArray(mr)?mr.join(" "):mr.toString());if(ka.data.length!==0&&(Cs.push({key:"Length",value:ka.data.length}),Gr===!0&&Cs.push({key:"Length1",value:$i})),Rs.length!=0)if(Rs.split("/").length-1==1)Cs.push({key:"Filter",value:Rs});else{Cs.push({key:"Filter",value:"["+Rs+"]"});for(var Dl=0;Dl<Cs.length;Dl+=1)if(Cs[Dl].key==="DecodeParms"){for(var qu=[],Ic=0;Ic<ka.reverseChain.split("/").length-1;Ic+=1)qu.push("null");qu.push(Cs[Dl].value),Cs[Dl].value="["+qu.join(" ")+"]"}}Pn("<<");for(var Fu=0;Fu<Cs.length;Fu++)Pn("/"+Cs[Fu].key+" "+Cs[Fu].value);Pn(">>"),ka.data.length!==0&&(Pn("stream"),Pn(Sa(ka.data)),Pn("endstream"))},Ip=At.__private__.putPage=function(Xe){var Qt=Xe.number,jn=Xe.data,mr=Xe.objId,Gr=Xe.contentsObjId;sA(mr,!0),Pn("<</Type /Page"),Pn("/Parent "+Xe.rootDictionaryObjId+" 0 R"),Pn("/Resources "+Xe.resourceDictionaryObjId+" 0 R"),Pn("/MediaBox ["+parseFloat(Nr(Xe.mediaBox.bottomLeftX))+" "+parseFloat(Nr(Xe.mediaBox.bottomLeftY))+" "+Nr(Xe.mediaBox.topRightX)+" "+Nr(Xe.mediaBox.topRightY)+"]"),Xe.cropBox!==null&&Pn("/CropBox ["+Nr(Xe.cropBox.bottomLeftX)+" "+Nr(Xe.cropBox.bottomLeftY)+" "+Nr(Xe.cropBox.topRightX)+" "+Nr(Xe.cropBox.topRightY)+"]"),Xe.bleedBox!==null&&Pn("/BleedBox ["+Nr(Xe.bleedBox.bottomLeftX)+" "+Nr(Xe.bleedBox.bottomLeftY)+" "+Nr(Xe.bleedBox.topRightX)+" "+Nr(Xe.bleedBox.topRightY)+"]"),Xe.trimBox!==null&&Pn("/TrimBox ["+Nr(Xe.trimBox.bottomLeftX)+" "+Nr(Xe.trimBox.bottomLeftY)+" "+Nr(Xe.trimBox.topRightX)+" "+Nr(Xe.trimBox.topRightY)+"]"),Xe.artBox!==null&&Pn("/ArtBox ["+Nr(Xe.artBox.bottomLeftX)+" "+Nr(Xe.artBox.bottomLeftY)+" "+Nr(Xe.artBox.topRightX)+" "+Nr(Xe.artBox.topRightY)+"]"),typeof Xe.userUnit=="number"&&Xe.userUnit!==1&&Pn("/UserUnit "+Xe.userUnit),ou.publish("putPage",{objId:mr,pageContext:us[Qt],pageNumber:Qt,page:jn}),Pn("/Contents "+Gr+" 0 R"),Pn(">>"),Pn("endobj");var $i=jn.join(`
`);return Gn===ur&&($i+=`
Q`),sA(Gr,!0),Hd({data:$i,filters:hf(),objectId:Gr}),Pn("endobj"),mr},$f=At.__private__.putPages=function(){var Xe,Qt,jn=[];for(Xe=1;Xe<=sl;Xe++)us[Xe].objId=qc(),us[Xe].contentsObjId=qc();for(Xe=1;Xe<=sl;Xe++)jn.push(Ip({number:Xe,data:xo[Xe],objId:us[Xe].objId,contentsObjId:us[Xe].contentsObjId,mediaBox:us[Xe].mediaBox,cropBox:us[Xe].cropBox,bleedBox:us[Xe].bleedBox,trimBox:us[Xe].trimBox,artBox:us[Xe].artBox,userUnit:us[Xe].userUnit,rootDictionaryObjId:Wh,resourceDictionaryObjId:df}));sA(Wh,!0),Pn("<</Type /Pages");var mr="/Kids [";for(Qt=0;Qt<sl;Qt++)mr+=jn[Qt]+" 0 R ";Pn(mr+"]"),Pn("/Count "+sl),Pn(">>"),Pn("endobj"),ou.publish("postPutPages")},Lp=function(Xe){ou.publish("putFont",{font:Xe,out:Pn,newObject:Ac,putStream:Hd}),Xe.isAlreadyPutted!==!0&&(Xe.objectNumber=Ac(),Pn("<<"),Pn("/Type /Font"),Pn("/BaseFont /"+md(Xe.postScriptName)),Pn("/Subtype /Type1"),typeof Xe.encoding=="string"&&Pn("/Encoding /"+Xe.encoding),Pn("/FirstChar 32"),Pn("/LastChar 255"),Pn(">>"),Pn("endobj"))},rm=function(Xe){Xe.objectNumber=Ac();var Qt=[];Qt.push({key:"Type",value:"/XObject"}),Qt.push({key:"Subtype",value:"/Form"}),Qt.push({key:"BBox",value:"["+[Nr(Xe.x),Nr(Xe.y),Nr(Xe.x+Xe.width),Nr(Xe.y+Xe.height)].join(" ")+"]"}),Qt.push({key:"Matrix",value:"["+Xe.matrix.toString()+"]"});var jn=Xe.pages[1].join(`
`);Hd({data:jn,additionalKeyValues:Qt,objectId:Xe.objectNumber}),Pn("endobj")},im=function(Xe,Qt){Qt||(Qt=21);var jn=Ac(),mr=function(oo,Sa){var ka,Cs=[],Rs=1/(Sa-1);for(ka=0;ka<1;ka+=Rs)Cs.push(ka);if(Cs.push(1),oo[0].offset!=0){var Dl={offset:0,color:oo[0].color};oo.unshift(Dl)}if(oo[oo.length-1].offset!=1){var qu={offset:1,color:oo[oo.length-1].color};oo.push(qu)}for(var Ic="",Fu=0,Mc=0;Mc<Cs.length;Mc++){for(ka=Cs[Mc];ka>oo[Fu+1].offset;)Fu++;var Lc=oo[Fu].offset,lA=(ka-Lc)/(oo[Fu+1].offset-Lc),Sh=oo[Fu].color,mf=oo[Fu+1].color;Ic+=Cr(Math.round((1-lA)*Sh[0]+lA*mf[0]).toString(16))+Cr(Math.round((1-lA)*Sh[1]+lA*mf[1]).toString(16))+Cr(Math.round((1-lA)*Sh[2]+lA*mf[2]).toString(16))}return Ic.trim()}(Xe.colors,Qt),Gr=[];Gr.push({key:"FunctionType",value:"0"}),Gr.push({key:"Domain",value:"[0.0 1.0]"}),Gr.push({key:"Size",value:"["+Qt+"]"}),Gr.push({key:"BitsPerSample",value:"8"}),Gr.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Gr.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Hd({data:mr,additionalKeyValues:Gr,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:jn}),Pn("endobj"),Xe.objectNumber=Ac(),Pn("<< /ShadingType "+Xe.type),Pn("/ColorSpace /DeviceRGB");var $i="/Coords ["+Nr(parseFloat(Xe.coords[0]))+" "+Nr(parseFloat(Xe.coords[1]))+" ";Xe.type===2?$i+=Nr(parseFloat(Xe.coords[2]))+" "+Nr(parseFloat(Xe.coords[3])):$i+=Nr(parseFloat(Xe.coords[2]))+" "+Nr(parseFloat(Xe.coords[3]))+" "+Nr(parseFloat(Xe.coords[4]))+" "+Nr(parseFloat(Xe.coords[5])),Pn($i+="]"),Xe.matrix&&Pn("/Matrix ["+Xe.matrix.toString()+"]"),Pn("/Function "+jn+" 0 R"),Pn("/Extend [true true]"),Pn(">>"),Pn("endobj")},om=function(Xe,Qt){var jn=qc(),mr=Ac();Qt.push({resourcesOid:jn,objectOid:mr}),Xe.objectNumber=mr;var Gr=[];Gr.push({key:"Type",value:"/Pattern"}),Gr.push({key:"PatternType",value:"1"}),Gr.push({key:"PaintType",value:"1"}),Gr.push({key:"TilingType",value:"1"}),Gr.push({key:"BBox",value:"["+Xe.boundingBox.map(Nr).join(" ")+"]"}),Gr.push({key:"XStep",value:Nr(Xe.xStep)}),Gr.push({key:"YStep",value:Nr(Xe.yStep)}),Gr.push({key:"Resources",value:jn+" 0 R"}),Xe.matrix&&Gr.push({key:"Matrix",value:"["+Xe.matrix.toString()+"]"}),Hd({data:Xe.stream,additionalKeyValues:Gr,objectId:Xe.objectNumber}),Pn("endobj")},Gg=function(Xe){for(var Qt in Xe.objectNumber=Ac(),Pn("<<"),Xe)switch(Qt){case"opacity":Pn("/ca "+ln(Xe[Qt]));break;case"stroke-opacity":Pn("/CA "+ln(Xe[Qt]))}Pn(">>"),Pn("endobj")},Bm=function(Xe){sA(Xe.resourcesOid,!0),Pn("<<"),Pn("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var Qt in Pn("/Font <<"),el)el.hasOwnProperty(Qt)&&(Pt===!1||Pt===!0&&Jt.hasOwnProperty(Qt))&&Pn("/"+Qt+" "+el[Qt].objectNumber+" 0 R");Pn(">>")}(),function(){if(Object.keys(Ya).length>0){for(var Qt in Pn("/Shading <<"),Ya)Ya.hasOwnProperty(Qt)&&Ya[Qt]instanceof kf&&Ya[Qt].objectNumber>=0&&Pn("/"+Qt+" "+Ya[Qt].objectNumber+" 0 R");ou.publish("putShadingPatternDict"),Pn(">>")}}(),function(Qt){if(Object.keys(Ya).length>0){for(var jn in Pn("/Pattern <<"),Ya)Ya.hasOwnProperty(jn)&&Ya[jn]instanceof At.TilingPattern&&Ya[jn].objectNumber>=0&&Ya[jn].objectNumber<Qt&&Pn("/"+jn+" "+Ya[jn].objectNumber+" 0 R");ou.publish("putTilingPatternDict"),Pn(">>")}}(Xe.objectOid),function(){if(Object.keys(ds).length>0){var Qt;for(Qt in Pn("/ExtGState <<"),ds)ds.hasOwnProperty(Qt)&&ds[Qt].objectNumber>=0&&Pn("/"+Qt+" "+ds[Qt].objectNumber+" 0 R");ou.publish("putGStateDict"),Pn(">>")}}(),function(){for(var Qt in Pn("/XObject <<"),LA)LA.hasOwnProperty(Qt)&&LA[Qt].objectNumber>=0&&Pn("/"+Qt+" "+LA[Qt].objectNumber+" 0 R");ou.publish("putXobjectDict"),Pn(">>")}(),Pn(">>"),Pn("endobj")},ig=function(Xe){tl[Xe.fontName]=tl[Xe.fontName]||{},tl[Xe.fontName][Xe.fontStyle]=Xe.id},og=function(Xe,Qt,jn,mr,Gr){var $i={id:"F"+(Object.keys(el).length+1).toString(10),postScriptName:Xe,fontName:Qt,fontStyle:jn,encoding:mr,isStandardFont:Gr||!1,metadata:{}};return ou.publish("addFont",{font:$i,instance:this}),el[$i.id]=$i,ig($i),$i.id},zd=At.__private__.pdfEscape=At.pdfEscape=function(Xe,Qt){return function(jn,mr){var Gr,$i,oo,Sa,ka,Cs,Rs,Dl,qu;if(oo=(mr=mr||{}).sourceEncoding||"Unicode",ka=mr.outputEncoding,(mr.autoencode||ka)&&el[Ta].metadata&&el[Ta].metadata[oo]&&el[Ta].metadata[oo].encoding&&(Sa=el[Ta].metadata[oo].encoding,!ka&&el[Ta].encoding&&(ka=el[Ta].encoding),!ka&&Sa.codePages&&(ka=Sa.codePages[0]),typeof ka=="string"&&(ka=Sa[ka]),ka)){for(Rs=!1,Cs=[],Gr=0,$i=jn.length;Gr<$i;Gr++)(Dl=ka[jn.charCodeAt(Gr)])?Cs.push(String.fromCharCode(Dl)):Cs.push(jn[Gr]),Cs[Gr].charCodeAt(0)>>8&&(Rs=!0);jn=Cs.join("")}for(Gr=jn.length;Rs===void 0&&Gr!==0;)jn.charCodeAt(Gr-1)>>8&&(Rs=!0),Gr--;if(!Rs)return jn;for(Cs=mr.noBOM?[]:[254,255],Gr=0,$i=jn.length;Gr<$i;Gr++){if((qu=(Dl=jn.charCodeAt(Gr))>>8)>>8)throw new Error("Character at position "+Gr+" of string '"+jn+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Cs.push(qu),Cs.push(Dl-(qu<<8))}return String.fromCharCode.apply(void 0,Cs)}(Xe,Qt).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Em=At.__private__.beginPage=function(Xe){xo[++sl]=[],us[sl]={objId:0,contentsObjId:0,userUnit:Number(Pe),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(Xe[0]),topRightY:Number(Xe[1])}},sg(sl),Wa(xo[Kn])},ag=function(Xe,Qt){var jn,mr,Gr;switch(E=Qt||E,typeof Xe=="string"&&(jn=An(Xe.toLowerCase()),Array.isArray(jn)&&(mr=jn[0],Gr=jn[1])),Array.isArray(Xe)&&(mr=Xe[0]*Us,Gr=Xe[1]*Us),isNaN(mr)&&(mr=ce[0],Gr=ce[1]),(mr>14400||Gr>14400)&&(hl.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),mr=Math.min(14400,mr),Gr=Math.min(14400,Gr)),ce=[mr,Gr],E.substr(0,1)){case"l":Gr>mr&&(ce=[Gr,mr]);break;case"p":mr>Gr&&(ce=[Gr,mr])}Em(ce),Es(Im),Pn(um),_m!==0&&Pn(_m+" J"),Nm!==0&&Pn(Nm+" j"),ou.publish("addPage",{pageNumber:sl})},Sm=function(Xe){Xe>0&&Xe<=sl&&(xo.splice(Xe,1),us.splice(Xe,1),sl--,Kn>sl&&(Kn=sl),this.setPage(Kn))},sg=function(Xe){Xe>0&&Xe<=sl&&(Kn=Xe)},lg=At.__private__.getNumberOfPages=At.getNumberOfPages=function(){return xo.length-1},ug=function(Xe,Qt,jn){var mr,Gr=void 0;return jn=jn||{},Xe=Xe!==void 0?Xe:el[Ta].fontName,Qt=Qt!==void 0?Qt:el[Ta].fontStyle,mr=Xe.toLowerCase(),tl[mr]!==void 0&&tl[mr][Qt]!==void 0?Gr=tl[mr][Qt]:tl[Xe]!==void 0&&tl[Xe][Qt]!==void 0?Gr=tl[Xe][Qt]:jn.disableWarning===!1&&hl.warn("Unable to look up font label for font '"+Xe+"', '"+Qt+"'. Refer to getFontList() for available fonts."),Gr||jn.noFallback||(Gr=tl.times[Qt])==null&&(Gr=tl.times.normal),Gr},Zf=At.__private__.putInfo=function(){var Xe=Ac(),Qt=function(mr){return mr};for(var jn in ft!==null&&(Qt=kc.encryptor(Xe,0)),Pn("<<"),Pn("/Producer ("+zd(Qt("jsPDF "+La.version))+")"),vl)vl.hasOwnProperty(jn)&&vl[jn]&&Pn("/"+jn.substr(0,1).toUpperCase()+jn.substr(1)+" ("+zd(Qt(vl[jn]))+")");Pn("/CreationDate ("+zd(Qt(mi))+")"),Pn(">>"),Pn("endobj")},am=At.__private__.putCatalog=function(Xe){var Qt=(Xe=Xe||{}).rootDictionaryObjId||Wh;switch(Ac(),Pn("<<"),Pn("/Type /Catalog"),Pn("/Pages "+Qt+" 0 R"),os||(os="fullwidth"),os){case"fullwidth":Pn("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Pn("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Pn("/OpenAction [3 0 R /Fit]");break;case"original":Pn("/OpenAction [3 0 R /XYZ null null 1]");break;default:var jn=""+os;jn.substr(jn.length-1)==="%"&&(os=parseInt(os)/100),typeof os=="number"&&Pn("/OpenAction [3 0 R /XYZ null null "+ln(os)+"]")}switch(gl||(gl="continuous"),gl){case"continuous":Pn("/PageLayout /OneColumn");break;case"single":Pn("/PageLayout /SinglePage");break;case"two":case"twoleft":Pn("/PageLayout /TwoColumnLeft");break;case"tworight":Pn("/PageLayout /TwoColumnRight")}Va&&Pn("/PageMode /"+Va),ou.publish("putCatalog"),Pn(">>"),Pn("endobj")},Vg=At.__private__.putTrailer=function(){Pn("trailer"),Pn("<<"),Pn("/Size "+(Rr+1)),Pn("/Root "+Rr+" 0 R"),Pn("/Info "+(Rr-1)+" 0 R"),ft!==null&&Pn("/Encrypt "+kc.oid+" 0 R"),Pn("/ID [ <"+Si+"> <"+Si+"> ]"),Pn(">>")},Fc=At.__private__.putHeader=function(){Pn("%PDF-"+In),Pn("%\xBA\xDF\xAC\xE0")},cg=At.__private__.putXRef=function(){var Xe="0000000000";Pn("xref"),Pn("0 "+(Rr+1)),Pn("0000000000 65535 f ");for(var Qt=1;Qt<=Rr;Qt++)typeof ei[Qt]=="function"?Pn((Xe+ei[Qt]()).slice(-10)+" 00000 n "):ei[Qt]!==void 0?Pn((Xe+ei[Qt]).slice(-10)+" 00000 n "):Pn("0000000000 00000 n ")},Wf=At.__private__.buildDocument=function(){var Xe;Rr=0,Oi=0,Li=[],ei=[],Vi=[],Wh=qc(),df=qc(),Wa(Li),ou.publish("buildDocument"),Fc(),$f(),function(){ou.publish("putAdditionalObjects");for(var jn=0;jn<Vi.length;jn++){var mr=Vi[jn];sA(mr.objId,!0),Pn(mr.content),Pn("endobj")}ou.publish("postPutAdditionalObjects")}(),Xe=[],function(){for(var jn in el)el.hasOwnProperty(jn)&&(Pt===!1||Pt===!0&&Jt.hasOwnProperty(jn))&&Lp(el[jn])}(),function(){var jn;for(jn in ds)ds.hasOwnProperty(jn)&&Gg(ds[jn])}(),function(){for(var jn in LA)LA.hasOwnProperty(jn)&&rm(LA[jn])}(),function(jn){var mr;for(mr in Ya)Ya.hasOwnProperty(mr)&&(Ya[mr]instanceof kf?im(Ya[mr]):Ya[mr]instanceof Mf&&om(Ya[mr],jn))}(Xe),ou.publish("putResources"),Xe.forEach(Bm),Bm({resourcesOid:df,objectOid:Number.MAX_SAFE_INTEGER}),ou.publish("postPutResources"),ft!==null&&(kc.oid=Ac(),Pn("<<"),Pn("/Filter /Standard"),Pn("/V "+kc.v),Pn("/R "+kc.r),Pn("/U <"+kc.toHexString(kc.U)+">"),Pn("/O <"+kc.toHexString(kc.O)+">"),Pn("/P "+kc.P),Pn(">>"),Pn("endobj")),Zf(),am();var Qt=Oi;return cg(),Vg(),Pn("startxref"),Pn(""+Qt),Pn("%%EOF"),Wa(xo[Kn]),Li.join(`
`)},sm=At.__private__.getBlob=function(Xe){return new Blob([Js(Xe)],{type:"application/pdf"})},Ag=At.output=At.__private__.output=(Qd=function(Xe,Qt){switch(typeof(Qt=Qt||{})=="string"?Qt={filename:Qt}:Qt.filename=Qt.filename||"generated.pdf",Xe){case void 0:return Wf();case"save":At.save(Qt.filename);break;case"arraybuffer":return Js(Wf());case"blob":return sm(Wf());case"bloburi":case"bloburl":if(Pa.URL!==void 0&&typeof Pa.URL.createObjectURL=="function")return Pa.URL&&Pa.URL.createObjectURL(sm(Wf()))||void 0;hl.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var jn="",mr=Wf();try{jn=wm(mr)}catch(Ic){jn=wm(unescape(encodeURIComponent(mr)))}return"data:application/pdf;filename="+Qt.filename+";base64,"+jn;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Pa)==="[object Window]"){var Gr="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",$i=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';Qt.pdfObjectUrl&&(Gr=Qt.pdfObjectUrl,$i="");var oo='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Gr+'"'+$i+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(Qt)+");<\/script></body></html>",Sa=Pa.open();return Sa!==null&&Sa.document.write(oo),Sa}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Pa)==="[object Window]"){var ka='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(Qt.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+Qt.filename+'" width="500px" height="400px" /></body></html>',Cs=Pa.open();if(Cs!==null){Cs.document.write(ka);var Rs=this;Cs.document.documentElement.querySelector("#pdfViewer").onload=function(){Cs.document.title=Qt.filename,Cs.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Rs.output("bloburl"))}}return Cs}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Pa)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Dl='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",Qt)+'"></iframe></body></html>',qu=Pa.open();if(qu!==null&&(qu.document.write(Dl),qu.document.title=Qt.filename),qu||typeof safari=="undefined")return qu;break;case"datauri":case"dataurl":return Pa.document.location.href=this.output("datauristring",Qt);default:return null}},Qd.foo=function(){try{return Qd.apply(this,arguments)}catch(jn){var Xe=jn.stack||"";~Xe.indexOf(" at ")&&(Xe=Xe.split(" at ")[1]);var Qt="Error in function "+Xe.split(`
`)[0].split("<")[0]+": "+jn.message;if(!Pa.console)throw new Error(Qt);Pa.console.error(Qt,jn),Pa.alert&&alert(Qt)}},Qd.foo.bar=Qd,Qd.foo),Kd=function(Xe){return Array.isArray(Sp)===!0&&Sp.indexOf(Xe)>-1};switch(re){case"pt":Us=1;break;case"mm":Us=72/25.4;break;case"cm":Us=72/2.54;break;case"in":Us=72;break;case"px":Us=Kd("px_scaling")==1?.75:96/72;break;case"pc":case"em":Us=12;break;case"ex":Us=6;break;default:if(typeof re!="number")throw new Error("Invalid unit: "+re);Us=re}var kc=null;ro(),ai();var yh=At.__private__.getPageInfo=At.getPageInfo=function(Xe){if(isNaN(Xe)||Xe%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:us[Xe].objId,pageNumber:Xe,pageContext:us[Xe]}},dg=At.__private__.getPageInfoByObjId=function(Xe){if(isNaN(Xe)||Xe%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var Qt in us)if(us[Qt].objId===Xe)break;return yh(Qt)},Xg=At.__private__.getCurrentPageInfo=At.getCurrentPageInfo=function(){return{objId:us[Kn].objId,pageNumber:Kn,pageContext:us[Kn]}};At.addPage=function(){return ag.apply(this,arguments),this},At.setPage=function(){return sg.apply(this,arguments),Wa.call(this,xo[Kn]),this},At.insertPage=function(Xe){return this.addPage(),this.movePage(Kn,Xe),this},At.movePage=function(Xe,Qt){var jn,mr;if(Xe>Qt){jn=xo[Xe],mr=us[Xe];for(var Gr=Xe;Gr>Qt;Gr--)xo[Gr]=xo[Gr-1],us[Gr]=us[Gr-1];xo[Qt]=jn,us[Qt]=mr,this.setPage(Qt)}else if(Xe<Qt){jn=xo[Xe],mr=us[Xe];for(var $i=Xe;$i<Qt;$i++)xo[$i]=xo[$i+1],us[$i]=us[$i+1];xo[Qt]=jn,us[Qt]=mr,this.setPage(Qt)}return this},At.deletePage=function(){return Sm.apply(this,arguments),this},At.__private__.text=At.text=function(Xe,Qt,jn,mr,Gr){var $i,oo,Sa,ka,Cs,Rs,Dl,qu,Ic,Fu=(mr=mr||{}).scope||this;if(typeof Xe=="number"&&typeof Qt=="number"&&(typeof jn=="string"||Array.isArray(jn))){var Mc=jn;jn=Qt,Qt=Xe,Xe=Mc}if(arguments[3]instanceof cs==0?(Sa=arguments[4],ka=arguments[5],(0,x.Z)(Dl=arguments[3])==="object"&&Dl!==null||(typeof Sa=="string"&&(ka=Sa,Sa=null),typeof Dl=="string"&&(ka=Dl,Dl=null),typeof Dl=="number"&&(Sa=Dl,Dl=null),mr={flags:Dl,angle:Sa,align:ka})):(Xn("The transform parameter of text() with a Matrix value"),Ic=Gr),isNaN(Qt)||isNaN(jn)||Xe==null)throw new Error("Invalid arguments passed to jsPDF.text");if(Xe.length===0)return Fu;var Lc,lA="",Sh=typeof mr.lineHeightFactor=="number"?mr.lineHeightFactor:Np,mf=Fu.internal.scaleFactor;function Fh(au){return au=au.split(" ").join(Array(mr.TabLen||9).join(" ")),zd(au,Dl)}function Tm(au){for(var Cu,bc=au.concat(),Uc=[],_h=bc.length;_h--;)typeof(Cu=bc.shift())=="string"?Uc.push(Cu):Array.isArray(au)&&(Cu.length===1||Cu[1]===void 0&&Cu[2]===void 0)?Uc.push(Cu[0]):Uc.push([Cu[0],Cu[1],Cu[2]]);return Uc}function Am(au,Cu){var bc;if(typeof au=="string")bc=Cu(au)[0];else if(Array.isArray(au)){for(var Uc,_h,$m=au.concat(),hm=[],xg=$m.length;xg--;)typeof(Uc=$m.shift())=="string"?hm.push(Cu(Uc)[0]):Array.isArray(Uc)&&typeof Uc[0]=="string"&&(_h=Cu(Uc[0],Uc[1],Uc[2]),hm.push([_h[0],_h[1],_h[2]]));bc=hm}return bc}var Gh=!1,Tp=!0;if(typeof Xe=="string")Gh=!0;else if(Array.isArray(Xe)){var kp=Xe.concat();oo=[];for(var Vh,uA=kp.length;uA--;)(typeof(Vh=kp.shift())!="string"||Array.isArray(Vh)&&typeof Vh[0]!="string")&&(Tp=!1);Gh=Tp}if(Gh===!1)throw new Error('Type of text must be string or Array. "'+Xe+'" is not recognized.');typeof Xe=="string"&&(Xe=Xe.match(/[\r?\n]/)?Xe.split(/\r\n|\r|\n/g):[Xe]);var Mp=mo/Fu.internal.scaleFactor,Up=Mp*(Sh-1);switch(mr.baseline){case"bottom":jn-=Up;break;case"top":jn+=Mp-Up;break;case"hanging":jn+=Mp-2*Up;break;case"middle":jn+=Mp/2-Up}if((Rs=mr.maxWidth||0)>0&&(typeof Xe=="string"?Xe=Fu.splitTextToSize(Xe,Rs):Object.prototype.toString.call(Xe)==="[object Array]"&&(Xe=Xe.reduce(function(au,Cu){return au.concat(Fu.splitTextToSize(Cu,Rs))},[]))),$i={text:Xe,x:Qt,y:jn,options:mr,mutex:{pdfEscape:zd,activeFontKey:Ta,fonts:el,activeFontSize:mo}},ou.publish("preProcessText",$i),Xe=$i.text,Sa=(mr=$i.options).angle,Ic instanceof cs==0&&Sa&&typeof Sa=="number"){Sa*=Math.PI/180,mr.rotationDirection===0&&(Sa=-Sa),Gn===ur&&(Sa=-Sa);var km=Math.cos(Sa),Mm=Math.sin(Sa);Ic=new cs(km,Mm,-Mm,km,0,0)}else Sa&&Sa instanceof cs&&(Ic=Sa);Gn!==ur||Ic||(Ic=vh),(Cs=mr.charSpace||Ch)!==void 0&&(lA+=Nr(gr(Cs))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(qu=mr.horizontalScale)!==void 0&&(lA+=Nr(100*qu)+` Tz
`),mr.lang;var jA=-1,Ih=mr.renderingMode!==void 0?mr.renderingMode:mr.stroke,dm=Fu.internal.getCurrentPageInfo().pageContext;switch(Ih){case 0:case!1:case"fill":jA=0;break;case 1:case!0:case"stroke":jA=1;break;case 2:case"fillThenStroke":jA=2;break;case 3:case"invisible":jA=3;break;case 4:case"fillAndAddForClipping":jA=4;break;case 5:case"strokeAndAddPathForClipping":jA=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":jA=6;break;case 7:case"addToPathForClipping":jA=7}var bg=dm.usedRenderingMode!==void 0?dm.usedRenderingMode:-1;jA!==-1?lA+=jA+` Tr
`:bg!==-1&&(lA+=`0 Tr
`),jA!==-1&&(dm.usedRenderingMode=jA),ka=mr.align||"left";var $d,Rp=mo*Sh,Um=Fu.internal.pageSize.getWidth(),Rm=el[Ta];Cs=mr.charSpace||Ch,Rs=mr.maxWidth||0,Dl=Object.assign({autoencode:!0,noBOM:!0},mr.flags);var Xh=[],jp=function(au){return Fu.getStringUnitWidth(au,{font:Rm,charSpace:Cs,fontSize:mo,doKerning:!1})*mo/mf};if(Object.prototype.toString.call(Xe)==="[object Array]"){var gd;oo=Tm(Xe),ka!=="left"&&($d=oo.map(jp));var vd,Yh=0;if(ka==="right"){Qt-=$d[0],Xe=[],uA=oo.length;for(var Lh=0;Lh<uA;Lh++)Lh===0?(vd=wh(Qt),gd=bh(jn)):(vd=gr(Yh-$d[Lh]),gd=-Rp),Xe.push([oo[Lh],vd,gd]),Yh=$d[Lh]}else if(ka==="center"){Qt-=$d[0]/2,Xe=[],uA=oo.length;for(var Jh=0;Jh<uA;Jh++)Jh===0?(vd=wh(Qt),gd=bh(jn)):(vd=gr((Yh-$d[Jh])/2),gd=-Rp),Xe.push([oo[Jh],vd,gd]),Yh=$d[Jh]}else if(ka==="left"){Xe=[],uA=oo.length;for(var jm=0;jm<uA;jm++)Xe.push(oo[jm])}else if(ka==="justify"&&Rm.encoding==="Identity-H"){Xe=[],uA=oo.length,Rs=Rs!==0?Rs:Um;for(var fm=0,wc=0;wc<uA;wc++)if(gd=wc===0?bh(jn):-Rp,vd=wc===0?wh(Qt):fm,wc<uA-1){var Cg=gr((Rs-$d[wc])/(oo[wc].split(" ").length-1)),Vf=oo[wc].split(" ");Xe.push([Vf[0]+" ",vd,gd]),fm=0;for(var Xf=1;Xf<Vf.length;Xf++){var Qm=(jp(Vf[Xf-1]+" "+Vf[Xf])-jp(Vf[Xf]))*mf+Cg;Xf==Vf.length-1?Xe.push([Vf[Xf],Qm,0]):Xe.push([Vf[Xf]+" ",Qm,0]),fm-=Qm}}else Xe.push([oo[wc],vd,gd]);Xe.push(["",fm,0])}else{if(ka!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(Xe=[],uA=oo.length,Rs=Rs!==0?Rs:Um,wc=0;wc<uA;wc++){gd=wc===0?bh(jn):-Rp,vd=wc===0?wh(Qt):0;var Hm=oo[wc].split(" ").length-1,zm=Hm>0?(Rs-$d[wc])/Hm:0;wc<uA-1?Xh.push(Nr(gr(zm))):Xh.push(0),Xe.push([oo[wc],vd,gd])}}}(typeof mr.R2L=="boolean"?mr.R2L:ts)===!0&&(Xe=Am(Xe,function(au,Cu,bc){return[au.split("").reverse().join(""),Cu,bc]})),$i={text:Xe,x:Qt,y:jn,options:mr,mutex:{pdfEscape:zd,activeFontKey:Ta,fonts:el,activeFontSize:mo}},ou.publish("postProcessText",$i),Xe=$i.text,Lc=$i.mutex.isHex||!1;var Km=el[Ta].encoding;Km!=="WinAnsiEncoding"&&Km!=="StandardEncoding"||(Xe=Am(Xe,function(au,Cu,bc){return[Fh(au),Cu,bc]})),oo=Tm(Xe),Xe=[];for(var qh,ep,tp,Qp=Array.isArray(oo[0])?1:0,np="",Hp=function(au,Cu,bc){var Uc="";return bc instanceof cs?(bc=typeof mr.angle=="number"?gh(bc,new cs(1,0,0,1,au,Cu)):gh(new cs(1,0,0,1,au,Cu),bc),Gn===ur&&(bc=gh(new cs(1,0,0,-1,0,0),bc)),Uc=bc.join(" ")+` Tm
`):Uc=Nr(au)+" "+Nr(Cu)+` Td
`,Uc},Zd=0;Zd<oo.length;Zd++){switch(np="",Qp){case 1:tp=(Lc?"<":"(")+oo[Zd][0]+(Lc?">":")"),qh=parseFloat(oo[Zd][1]),ep=parseFloat(oo[Zd][2]);break;case 0:tp=(Lc?"<":"(")+oo[Zd]+(Lc?">":")"),qh=wh(Qt),ep=bh(jn)}Xh!==void 0&&Xh[Zd]!==void 0&&(np=Xh[Zd]+` Tw
`),Zd===0?Xe.push(np+Hp(qh,ep,Ic)+tp):Qp===0?Xe.push(np+tp):Qp===1&&Xe.push(np+Hp(qh,ep,Ic)+tp)}Xe=Qp===0?Xe.join(` Tj
T* `):Xe.join(` Tj
`),Xe+=` Tj
`;var Yf=`BT
/`;return Yf+=Ta+" "+mo+` Tf
`,Yf+=Nr(mo*Sh)+` TL
`,Yf+=Op+`
`,Yf+=lA,Yf+=Xe,Pn(Yf+="ET"),Jt[Ta]=!0,Fu};var Yg=At.__private__.clip=At.clip=function(Xe){return Pn(Xe==="evenodd"?"W*":"W"),this};At.clipEvenOdd=function(){return Yg("evenodd")},At.__private__.discardPath=At.discardPath=function(){return Pn("n"),this};var Gf=At.__private__.isValidStyle=function(Xe){var Qt=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(Xe)!==-1&&(Qt=!0),Qt};At.__private__.setDefaultPathOperation=At.setDefaultPathOperation=function(Xe){return Gf(Xe)&&(Ye=Xe),this};var fg=At.__private__.getStyle=At.getStyle=function(Xe){var Qt=Ye;switch(Xe){case"D":case"S":Qt="S";break;case"F":Qt="f";break;case"FD":case"DF":Qt="B";break;case"f":case"f*":case"B":case"B*":Qt=Xe}return Qt},hg=At.close=function(){return Pn("h"),this};At.stroke=function(){return Pn("S"),this},At.fill=function(Xe){return lm("f",Xe),this},At.fillEvenOdd=function(Xe){return lm("f*",Xe),this},At.fillStroke=function(Xe){return lm("B",Xe),this},At.fillStrokeEvenOdd=function(Xe){return lm("B*",Xe),this};var lm=function(Xe,Qt){(0,x.Z)(Qt)==="object"?qg(Qt,Xe):Pn(Xe)},_p=function(Xe){Xe===null||Gn===ur&&Xe===void 0||(Xe=fg(Xe),Pn(Xe))};function Jg(Xe,Qt,jn,mr,Gr){var $i=new Mf(Qt||this.boundingBox,jn||this.xStep,mr||this.yStep,this.gState,Gr||this.matrix);$i.stream=this.stream;var oo=Xe+"$$"+this.cloneIndex+++"$$";return jd(oo,$i),$i}var qg=function(Xe,Qt){var jn=Su[Xe.key],mr=Ya[jn];if(mr instanceof kf)Pn("q"),Pn(e0(Qt)),mr.gState&&At.setGState(mr.gState),Pn(Xe.matrix.toString()+" cm"),Pn("/"+jn+" sh"),Pn("Q");else if(mr instanceof Mf){var Gr=new cs(1,0,0,-1,0,Pp());Xe.matrix&&(Gr=Gr.multiply(Xe.matrix||vh),jn=Jg.call(mr,Xe.key,Xe.boundingBox,Xe.xStep,Xe.yStep,Gr).id),Pn("q"),Pn("/Pattern cs"),Pn("/"+jn+" scn"),mr.gState&&At.setGState(mr.gState),Pn(Qt),Pn("Q")}},e0=function(Xe){switch(Xe){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Fm=At.moveTo=function(Xe,Qt){return Pn(Nr(gr(Xe))+" "+Nr(dr(Qt))+" m"),this},pg=At.lineTo=function(Xe,Qt){return Pn(Nr(gr(Xe))+" "+Nr(dr(Qt))+" l"),this},pf=At.curveTo=function(Xe,Qt,jn,mr,Gr,$i){return Pn([Nr(gr(Xe)),Nr(dr(Qt)),Nr(gr(jn)),Nr(dr(mr)),Nr(gr(Gr)),Nr(dr($i)),"c"].join(" ")),this};At.__private__.line=At.line=function(Xe,Qt,jn,mr,Gr){if(isNaN(Xe)||isNaN(Qt)||isNaN(jn)||isNaN(mr)||!Gf(Gr))throw new Error("Invalid arguments passed to jsPDF.line");return Gn===wr?this.lines([[jn-Xe,mr-Qt]],Xe,Qt,[1,1],Gr||"S"):this.lines([[jn-Xe,mr-Qt]],Xe,Qt,[1,1]).stroke()},At.__private__.lines=At.lines=function(Xe,Qt,jn,mr,Gr,$i){var oo,Sa,ka,Cs,Rs,Dl,qu,Ic,Fu,Mc,Lc,lA;if(typeof Xe=="number"&&(lA=jn,jn=Qt,Qt=Xe,Xe=lA),mr=mr||[1,1],$i=$i||!1,isNaN(Qt)||isNaN(jn)||!Array.isArray(Xe)||!Array.isArray(mr)||!Gf(Gr)||typeof $i!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Fm(Qt,jn),oo=mr[0],Sa=mr[1],Cs=Xe.length,Mc=Qt,Lc=jn,ka=0;ka<Cs;ka++)(Rs=Xe[ka]).length===2?(Mc=Rs[0]*oo+Mc,Lc=Rs[1]*Sa+Lc,pg(Mc,Lc)):(Dl=Rs[0]*oo+Mc,qu=Rs[1]*Sa+Lc,Ic=Rs[2]*oo+Mc,Fu=Rs[3]*Sa+Lc,Mc=Rs[4]*oo+Mc,Lc=Rs[5]*Sa+Lc,pf(Dl,qu,Ic,Fu,Mc,Lc));return $i&&hg(),_p(Gr),this},At.path=function(Xe){for(var Qt=0;Qt<Xe.length;Qt++){var jn=Xe[Qt],mr=jn.c;switch(jn.op){case"m":Fm(mr[0],mr[1]);break;case"l":pg(mr[0],mr[1]);break;case"c":pf.apply(this,mr);break;case"h":hg()}}return this},At.__private__.rect=At.rect=function(Xe,Qt,jn,mr,Gr){if(isNaN(Xe)||isNaN(Qt)||isNaN(jn)||isNaN(mr)||!Gf(Gr))throw new Error("Invalid arguments passed to jsPDF.rect");return Gn===wr&&(mr=-mr),Pn([Nr(gr(Xe)),Nr(dr(Qt)),Nr(gr(jn)),Nr(gr(mr)),"re"].join(" ")),_p(Gr),this},At.__private__.triangle=At.triangle=function(Xe,Qt,jn,mr,Gr,$i,oo){if(isNaN(Xe)||isNaN(Qt)||isNaN(jn)||isNaN(mr)||isNaN(Gr)||isNaN($i)||!Gf(oo))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[jn-Xe,mr-Qt],[Gr-jn,$i-mr],[Xe-Gr,Qt-$i]],Xe,Qt,[1,1],oo,!0),this},At.__private__.roundedRect=At.roundedRect=function(Xe,Qt,jn,mr,Gr,$i,oo){if(isNaN(Xe)||isNaN(Qt)||isNaN(jn)||isNaN(mr)||isNaN(Gr)||isNaN($i)||!Gf(oo))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Sa=4/3*(Math.SQRT2-1);return Gr=Math.min(Gr,.5*jn),$i=Math.min($i,.5*mr),this.lines([[jn-2*Gr,0],[Gr*Sa,0,Gr,$i-$i*Sa,Gr,$i],[0,mr-2*$i],[0,$i*Sa,-Gr*Sa,$i,-Gr,$i],[2*Gr-jn,0],[-Gr*Sa,0,-Gr,-$i*Sa,-Gr,-$i],[0,2*$i-mr],[0,-$i*Sa,Gr*Sa,-$i,Gr,-$i]],Xe+Gr,Qt,[1,1],oo,!0),this},At.__private__.ellipse=At.ellipse=function(Xe,Qt,jn,mr,Gr){if(isNaN(Xe)||isNaN(Qt)||isNaN(jn)||isNaN(mr)||!Gf(Gr))throw new Error("Invalid arguments passed to jsPDF.ellipse");var $i=4/3*(Math.SQRT2-1)*jn,oo=4/3*(Math.SQRT2-1)*mr;return Fm(Xe+jn,Qt),pf(Xe+jn,Qt-oo,Xe+$i,Qt-mr,Xe,Qt-mr),pf(Xe-$i,Qt-mr,Xe-jn,Qt-oo,Xe-jn,Qt),pf(Xe-jn,Qt+oo,Xe-$i,Qt+mr,Xe,Qt+mr),pf(Xe+$i,Qt+mr,Xe+jn,Qt+oo,Xe+jn,Qt),_p(Gr),this},At.__private__.circle=At.circle=function(Xe,Qt,jn,mr){if(isNaN(Xe)||isNaN(Qt)||isNaN(jn)||!Gf(mr))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(Xe,Qt,jn,jn,mr)},At.setFont=function(Xe,Qt,jn){return jn&&(Qt=Ii(Qt,jn)),Ta=ug(Xe,Qt,{disableWarning:!1}),this};var t0=At.__private__.getFont=At.getFont=function(){return el[ug.apply(At,arguments)]};At.__private__.getFontList=At.getFontList=function(){var Xe,Qt,jn={};for(Xe in tl)if(tl.hasOwnProperty(Xe))for(Qt in jn[Xe]=[],tl[Xe])tl[Xe].hasOwnProperty(Qt)&&jn[Xe].push(Qt);return jn},At.addFont=function(Xe,Qt,jn,mr,Gr){var $i=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&$i.indexOf(arguments[3])!==-1?Gr=arguments[3]:arguments[3]&&$i.indexOf(arguments[3])==-1&&(jn=Ii(jn,mr)),og.call(this,Xe,Qt,jn,Gr=Gr||"Identity-H")};var Np,Im=y.lineWidth||.200025,n0=At.__private__.getLineWidth=At.getLineWidth=function(){return Im},Es=At.__private__.setLineWidth=At.setLineWidth=function(Xe){return Im=Xe,Pn(Nr(gr(Xe))+" w"),this};At.__private__.setLineDash=La.API.setLineDash=La.API.setLineDashPattern=function(Xe,Qt){if(Xe=Xe||[],Qt=Qt||0,isNaN(Qt)||!Array.isArray(Xe))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return Xe=Xe.map(function(jn){return Nr(gr(jn))}).join(" "),Qt=Nr(gr(Qt)),Pn("["+Xe+"] "+Qt+" d"),this};var r0=At.__private__.getLineHeight=At.getLineHeight=function(){return mo*Np};At.__private__.getLineHeight=At.getLineHeight=function(){return mo*Np};var i0=At.__private__.setLineHeightFactor=At.setLineHeightFactor=function(Xe){return typeof(Xe=Xe||1.15)=="number"&&(Np=Xe),this},o0=At.__private__.getLineHeightFactor=At.getLineHeightFactor=function(){return Np};i0(y.lineHeight);var wh=At.__private__.getHorizontalCoordinate=function(Xe){return gr(Xe)},bh=At.__private__.getVerticalCoordinate=function(Xe){return Gn===ur?Xe:us[Kn].mediaBox.topRightY-us[Kn].mediaBox.bottomLeftY-gr(Xe)},a0=At.__private__.getHorizontalCoordinateString=At.getHorizontalCoordinateString=function(Xe){return Nr(wh(Xe))},s0=At.__private__.getVerticalCoordinateString=At.getVerticalCoordinateString=function(Xe){return Nr(bh(Xe))},um=y.strokeColor||"0 G";At.__private__.getStrokeColor=At.getDrawColor=function(){return Kf(um)},At.__private__.setStrokeColor=At.setDrawColor=function(Xe,Qt,jn,mr){return um=ff({ch1:Xe,ch2:Qt,ch3:jn,ch4:mr,pdfColorType:"draw",precision:2}),Pn(um),this};var Lm=y.fillColor||"0 g";At.__private__.getFillColor=At.getFillColor=function(){return Kf(Lm)},At.__private__.setFillColor=At.setFillColor=function(Xe,Qt,jn,mr){return Lm=ff({ch1:Xe,ch2:Qt,ch3:jn,ch4:mr,pdfColorType:"fill",precision:2}),Pn(Lm),this};var Op=y.textColor||"0 g",l0=At.__private__.getTextColor=At.getTextColor=function(){return Kf(Op)};At.__private__.setTextColor=At.setTextColor=function(Xe,Qt,jn,mr){return Op=ff({ch1:Xe,ch2:Qt,ch3:jn,ch4:mr,pdfColorType:"text",precision:3}),this};var Ch=y.charSpace,u0=At.__private__.getCharSpace=At.getCharSpace=function(){return parseFloat(Ch||0)};At.__private__.setCharSpace=At.setCharSpace=function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ch=Xe,this};var _m=0;At.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},At.__private__.setLineCap=At.setLineCap=function(Xe){var Qt=At.CapJoinStyles[Xe];if(Qt===void 0)throw new Error("Line cap style of '"+Xe+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return _m=Qt,Pn(Qt+" J"),this};var Nm=0;At.__private__.setLineJoin=At.setLineJoin=function(Xe){var Qt=At.CapJoinStyles[Xe];if(Qt===void 0)throw new Error("Line join style of '"+Xe+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Nm=Qt,Pn(Qt+" j"),this},At.__private__.setLineMiterLimit=At.__private__.setMiterLimit=At.setLineMiterLimit=At.setMiterLimit=function(Xe){if(Xe=Xe||0,isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Pn(Nr(gr(Xe))+" M"),this},At.GState=Ep,At.setGState=function(Xe){(Xe=typeof Xe=="string"?ds[Ps[Xe]]:mg(null,Xe)).equals(Zu)||(Pn("/"+Xe.id+" gs"),Zu=Xe)};var mg=function(Xe,Qt){if(!Xe||!Ps[Xe]){var jn=!1;for(var mr in ds)if(ds.hasOwnProperty(mr)&&ds[mr].equals(Qt)){jn=!0;break}if(jn)Qt=ds[mr];else{var Gr="GS"+(Object.keys(ds).length+1).toString(10);ds[Gr]=Qt,Qt.id=Gr}return Xe&&(Ps[Xe]=Qt.id),ou.publish("addGState",Qt),Qt}};At.addGState=function(Xe,Qt){return mg(Xe,Qt),this},At.saveGraphicsState=function(){return Pn("q"),$u.push({key:Ta,size:mo,color:Op}),this},At.restoreGraphicsState=function(){Pn("Q");var Xe=$u.pop();return Ta=Xe.key,mo=Xe.size,Op=Xe.color,Zu=null,this},At.setCurrentTransformationMatrix=function(Xe){return Pn(Xe.toString()+" cm"),this},At.comment=function(Xe){return Pn("#"+Xe),this};var xh=function(Xe,Qt){var jn=Xe||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return jn},set:function($i){isNaN($i)||(jn=parseFloat($i))}});var mr=Qt||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return mr},set:function($i){isNaN($i)||(mr=parseFloat($i))}});var Gr="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Gr},set:function($i){Gr=$i.toString()}}),this},Om=function(Xe,Qt,jn,mr){xh.call(this,Xe,Qt),this.type="rect";var Gr=jn||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Gr},set:function(oo){isNaN(oo)||(Gr=parseFloat(oo))}});var $i=mr||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return $i},set:function(oo){isNaN(oo)||($i=parseFloat(oo))}}),this},cm=function(){this.page=sl,this.currentPage=Kn,this.pages=xo.slice(0),this.pagesContext=us.slice(0),this.x=Qa,this.y=yc,this.matrix=Ol,this.width=Pm(Kn),this.height=vg(Kn),this.outputDestination=la,this.id="",this.objectNumber=-1};cm.prototype.restore=function(){sl=this.page,Kn=this.currentPage,us=this.pagesContext,xo=this.pages,Qa=this.x,yc=this.y,Ol=this.matrix,gg(Kn,this.width),Bh(Kn,this.height),la=this.outputDestination};var Dm=function(Xe,Qt,jn,mr,Gr){zf.push(new cm),sl=Kn=0,xo=[],Qa=Xe,yc=Qt,Ol=Gr,Em([jn,mr])};for(var Dp in At.beginFormObject=function(Xe,Qt,jn,mr,Gr){return Dm(Xe,Qt,jn,mr,Gr),this},At.endFormObject=function(Xe){return function(Qt){if(mh[Qt])zf.pop().restore();else{var jn=new cm,mr="Xo"+(Object.keys(LA).length+1).toString(10);jn.id=mr,mh[Qt]=mr,LA[mr]=jn,ou.publish("addFormObject",jn),zf.pop().restore()}}(Xe),this},At.doFormObject=function(Xe,Qt){var jn=LA[mh[Xe]];return Pn("q"),Pn(Qt.toString()+" cm"),Pn("/"+jn.id+" Do"),Pn("Q"),this},At.getFormObject=function(Xe){var Qt=LA[mh[Xe]];return{x:Qt.x,y:Qt.y,width:Qt.width,height:Qt.height,matrix:Qt.matrix}},At.save=function(Xe,Qt){return Xe=Xe||"generated.pdf",(Qt=Qt||{}).returnPromise=Qt.returnPromise||!1,Qt.returnPromise===!1?(Pf(sm(Wf()),Xe),typeof Pf.unload=="function"&&Pa.setTimeout&&setTimeout(Pf.unload,911),this):new Promise(function(jn,mr){try{var Gr=Pf(sm(Wf()),Xe);typeof Pf.unload=="function"&&Pa.setTimeout&&setTimeout(Pf.unload,911),jn(Gr)}catch($i){mr($i.message)}})},La.API)La.API.hasOwnProperty(Dp)&&(Dp==="events"&&La.API.events.length?function(Xe,Qt){var jn,mr,Gr;for(Gr=Qt.length-1;Gr!==-1;Gr--)jn=Qt[Gr][0],mr=Qt[Gr][1],Xe.subscribe.apply(Xe,[jn].concat(typeof mr=="function"?[mr]:mr))}(ou,La.API.events):At[Dp]=La.API[Dp]);function Pm(Xe){return us[Xe].mediaBox.topRightX-us[Xe].mediaBox.bottomLeftX}function gg(Xe,Qt){us[Xe].mediaBox.topRightX=Qt+us[Xe].mediaBox.bottomLeftX}function vg(Xe){return us[Xe].mediaBox.topRightY-us[Xe].mediaBox.bottomLeftY}function Bh(Xe,Qt){us[Xe].mediaBox.topRightY=Qt+us[Xe].mediaBox.bottomLeftY}var Eh=At.getPageWidth=function(Xe){return Pm(Xe=Xe||Kn)/Us},yg=At.setPageWidth=function(Xe,Qt){gg(Xe,Qt*Us)},Pp=At.getPageHeight=function(Xe){return vg(Xe=Xe||Kn)/Us},wg=At.setPageHeight=function(Xe,Qt){Bh(Xe,Qt*Us)};return At.internal={pdfEscape:zd,getStyle:fg,getFont:t0,getFontSize:Ba,getCharSpace:u0,getTextColor:l0,getLineHeight:r0,getLineHeightFactor:o0,getLineWidth:n0,write:Aa,getHorizontalCoordinate:wh,getVerticalCoordinate:bh,getCoordinateString:a0,getVerticalCoordinateString:s0,collections:{},newObject:Ac,newAdditionalObject:Fp,newObjectDeferred:qc,newObjectDeferredBegin:sA,getFilters:hf,putStream:Hd,events:ou,scaleFactor:Us,pageSize:{getWidth:function(){return Eh(Kn)},setWidth:function(Xe){yg(Kn,Xe)},getHeight:function(){return Pp(Kn)},setHeight:function(Xe){wg(Kn,Xe)}},encryptionOptions:ft,encryption:kc,getEncryptor:function(Xe){return ft!==null?kc.encryptor(Xe,0):function(Qt){return Qt}},output:Ag,getNumberOfPages:lg,get pages(){return xo},out:Pn,f2:ln,f3:Dn,getPageInfo:yh,getPageInfoByObjId:dg,getCurrentPageInfo:Xg,getPDFVersion:Cn,Point:xh,Rectangle:Om,Matrix:cs,hasHotfix:Kd},Object.defineProperty(At.internal.pageSize,"width",{get:function(){return Eh(Kn)},set:function(Xe){yg(Kn,Xe)},enumerable:!0,configurable:!0}),Object.defineProperty(At.internal.pageSize,"height",{get:function(){return Pp(Kn)},set:function(Xe){wg(Kn,Xe)},enumerable:!0,configurable:!0}),function(Xe){for(var Qt=0,jn=is.length;Qt<jn;Qt++){var mr=og.call(this,Xe[Qt][0],Xe[Qt][1],Xe[Qt][2],is[Qt][3],!0);Pt===!1&&(Jt[mr]=!0);var Gr=Xe[Qt][0].split("-");ig({id:mr,fontName:Gr[0],fontStyle:Gr[1]||""})}ou.publish("addFonts",{fonts:el,dictionary:tl})}.call(At,is),Ta="F1",ag(ce,E),ou.publish("initialized"),At}zh.prototype.lsbFirstWord=function(y){return String.fromCharCode(255&y,y>>8&255,y>>16&255,y>>24&255)},zh.prototype.toHexString=function(y){return y.split("").map(function(z){return("0"+(255&z.charCodeAt(0)).toString(16)).slice(-2)}).join("")},zh.prototype.hexToBytes=function(y){for(var z=[],E=0;E<y.length;E+=2)z.push(String.fromCharCode(parseInt(y.substr(E,2),16)));return z.join("")},zh.prototype.processOwnerPassword=function(y,z){return Tf(bm(z).substr(0,5),y)},zh.prototype.encryptor=function(y,z){var E=bm(this.encryptionKey+String.fromCharCode(255&y,y>>8&255,y>>16&255,255&z,z>>8&255)).substr(0,10);return function(re){return Tf(E,re)}},Ep.prototype.equals=function(y){var z,E="id,objectNumber,equals";if(!y||(0,x.Z)(y)!==(0,x.Z)(this))return!1;var re=0;for(z in this)if(!(E.indexOf(z)>=0)){if(this.hasOwnProperty(z)&&!y.hasOwnProperty(z)||this[z]!==y[z])return!1;re++}for(z in y)y.hasOwnProperty(z)&&E.indexOf(z)<0&&re--;return re===0},La.API={events:[]},La.version="3.0.4";var Ku=La.API,xm=1,fh=function(y){return y.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Kh=function(y){return y.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ws=function(y){return y.toFixed(2)},Uf=function(y){return y.toFixed(5)};Ku.__acroform__={};var FA=function(y,z){y.prototype=Object.create(z.prototype),y.prototype.constructor=y},ng=function(y){return y*xm},Ud=function(y){var z=new Pi,E=Uo.internal.getHeight(y)||0,re=Uo.internal.getWidth(y)||0;return z.BBox=[0,0,Number(ws(re)),Number(ws(E))],z},Hg=Ku.__acroform__.setBit=function(y,z){if(y=y||0,z=z||0,isNaN(y)||isNaN(z))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return y|1<<z},zg=Ku.__acroform__.clearBit=function(y,z){if(y=y||0,z=z||0,isNaN(y)||isNaN(z))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return y&~(1<<z)},Kg=Ku.__acroform__.getBit=function(y,z){if(isNaN(y)||isNaN(z))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return y&1<<z?1:0},Ju=Ku.__acroform__.getBitForPdf=function(y,z){if(isNaN(y)||isNaN(z))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Kg(y,z-1)},ge=Ku.__acroform__.setBitForPdf=function(y,z){if(isNaN(y)||isNaN(z))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Hg(y,z-1)},Ae=Ku.__acroform__.clearBitForPdf=function(y,z){if(isNaN(y)||isNaN(z))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return zg(y,z-1)},be=Ku.__acroform__.calculateCoordinates=function(y,z){var E=z.internal.getHorizontalCoordinate,re=z.internal.getVerticalCoordinate,ce=y[0],fe=y[1],$e=y[2],Pe=y[3],Ge={};return Ge.lowerLeft_X=E(ce)||0,Ge.lowerLeft_Y=re(fe+Pe)||0,Ge.upperRight_X=E(ce+$e)||0,Ge.upperRight_Y=re(fe)||0,[Number(ws(Ge.lowerLeft_X)),Number(ws(Ge.lowerLeft_Y)),Number(ws(Ge.upperRight_X)),Number(ws(Ge.upperRight_Y))]},ye=function(y){if(y.appearanceStreamContent)return y.appearanceStreamContent;if(y.V||y.DV){var z=[],E=y._V||y.DV,re=nt(y,E),ce=y.scope.internal.getFont(y.fontName,y.fontStyle).id;z.push("/Tx BMC"),z.push("q"),z.push("BT"),z.push(y.scope.__private__.encodeColorString(y.color)),z.push("/"+ce+" "+ws(re.fontSize)+" Tf"),z.push("1 0 0 1 0 0 Tm"),z.push(re.text),z.push("ET"),z.push("Q"),z.push("EMC");var fe=Ud(y);return fe.scope=y.scope,fe.stream=z.join(`
`),fe}},nt=function(y,z){var E=y.fontSize===0?y.maxFontSize:y.fontSize,re={text:"",fontSize:""},ce=(z=(z=z.substr(0,1)=="("?z.substr(1):z).substr(z.length-1)==")"?z.substr(0,z.length-1):z).split(" ");ce=y.multiline?ce.map(function(ln){return ln.split(`
`)}):ce.map(function(ln){return[ln]});var fe=E,$e=Uo.internal.getHeight(y)||0;$e=$e<0?-$e:$e;var Pe=Uo.internal.getWidth(y)||0;Pe=Pe<0?-Pe:Pe;var Ge=function(ln,Dn,gr){if(ln+1<ce.length){var dr=Dn+" "+ce[ln+1][0];return Ft(dr,y,gr).width<=Pe-4}return!1};fe++;e:for(;fe>0;){z="",fe--;var Ye,ft,Pt=Ft("3",y,fe).height,Jt=y.multiline?$e-fe:($e-Pt)/2,At=Jt+=2,In=0,Cn=0,On=0;if(fe<=0){z=`(...) Tj
`,z+="% Width of Text: "+Ft(z,y,fe=12).width+", FieldWidth:"+Pe+`
`;break}for(var An="",wr=0,ur=0;ur<ce.length;ur++)if(ce.hasOwnProperty(ur)){var Gn=!1;if(ce[ur].length!==1&&On!==ce[ur].length-1){if((Pt+2)*(wr+2)+2>$e)continue e;An+=ce[ur][On],Gn=!0,Cn=ur,ur--}else{An=(An+=ce[ur][On]+" ").substr(An.length-1)==" "?An.substr(0,An.length-1):An;var ui=parseInt(ur),Ri=Ge(ui,An,fe),Ii=ur>=ce.length-1;if(Ri&&!Ii){An+=" ",On=0;continue}if(Ri||Ii){if(Ii)Cn=ui;else if(y.multiline&&(Pt+2)*(wr+2)+2>$e)continue e}else{if(!y.multiline||(Pt+2)*(wr+2)+2>$e)continue e;Cn=ui}}for(var Nr="",Xn=In;Xn<=Cn;Xn++){var Vr=ce[Xn];if(y.multiline){if(Xn===Cn){Nr+=Vr[On]+" ",On=(On+1)%Vr.length;continue}if(Xn===In){Nr+=Vr[Vr.length-1]+" ";continue}}Nr+=Vr[0]+" "}switch(Nr=Nr.substr(Nr.length-1)==" "?Nr.substr(0,Nr.length-1):Nr,ft=Ft(Nr,y,fe).width,y.textAlign){case"right":Ye=Pe-ft-2;break;case"center":Ye=(Pe-ft)/2;break;default:Ye=2}z+=ws(Ye)+" "+ws(At)+` Td
`,z+="("+fh(Nr)+`) Tj
`,z+=-ws(Ye)+` 0 Td
`,At=-(fe+2),ft=0,In=Gn?Cn:Cn+1,wr++,An=""}break}return re.text=z,re.fontSize=fe,re},Ft=function(y,z,E){var re=z.scope.internal.getFont(z.fontName,z.fontStyle),ce=z.scope.getStringUnitWidth(y,{font:re,fontSize:parseFloat(E),charSpace:0})*parseFloat(E);return{height:z.scope.getStringUnitWidth("3",{font:re,fontSize:parseFloat(E),charSpace:0})*parseFloat(E)*1.5,width:ce}},Yt={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Bn=function(y,z){var E={type:"reference",object:y};z.internal.getPageInfo(y.page).pageContext.annotations.find(function(re){return re.type===E.type&&re.object===E.object})===void 0&&z.internal.getPageInfo(y.page).pageContext.annotations.push(E)},xn=function(y,z){if(z.scope=y,y.internal!==void 0&&(y.internal.acroformPlugin===void 0||y.internal.acroformPlugin.isInitialized===!1)){if(po.FieldNum=0,y.internal.acroformPlugin=JSON.parse(JSON.stringify(Yt)),y.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");xm=y.internal.scaleFactor,y.internal.acroformPlugin.acroFormDictionaryRoot=new fa,y.internal.acroformPlugin.acroFormDictionaryRoot.scope=y,y.internal.acroformPlugin.acroFormDictionaryRoot._eventID=y.internal.events.subscribe("postPutResources",function(){(function(E){E.internal.events.unsubscribe(E.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete E.internal.acroformPlugin.acroFormDictionaryRoot._eventID,E.internal.acroformPlugin.printedOut=!0})(y)}),y.internal.events.subscribe("buildDocument",function(){(function(E){E.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var re=E.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var ce in re)if(re.hasOwnProperty(ce)){var fe=re[ce];fe.objId=void 0,fe.hasAnnotation&&Bn(fe,E)}})(y)}),y.internal.events.subscribe("putCatalog",function(){(function(E){if(E.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");E.internal.write("/AcroForm "+E.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(y)}),y.internal.events.subscribe("postPutPages",function(E){(function(re,ce){var fe=!re;for(var $e in re||(ce.internal.newObjectDeferredBegin(ce.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),ce.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),re=re||ce.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(re.hasOwnProperty($e)){var Pe=re[$e],Ge=[],Ye=Pe.Rect;if(Pe.Rect&&(Pe.Rect=be(Pe.Rect,ce)),ce.internal.newObjectDeferredBegin(Pe.objId,!0),Pe.DA=Uo.createDefaultAppearanceStream(Pe),(0,x.Z)(Pe)==="object"&&typeof Pe.getKeyValueListForStream=="function"&&(Ge=Pe.getKeyValueListForStream()),Pe.Rect=Ye,Pe.hasAppearanceStream&&!Pe.appearanceStreamContent){var ft=ye(Pe);Ge.push({key:"AP",value:"<</N "+ft+">>"}),ce.internal.acroformPlugin.xForms.push(ft)}if(Pe.appearanceStreamContent){var Pt="";for(var Jt in Pe.appearanceStreamContent)if(Pe.appearanceStreamContent.hasOwnProperty(Jt)){var At=Pe.appearanceStreamContent[Jt];if(Pt+="/"+Jt+" ",Pt+="<<",Object.keys(At).length>=1||Array.isArray(At)){for(var $e in At)if(At.hasOwnProperty($e)){var In=At[$e];typeof In=="function"&&(In=In.call(ce,Pe)),Pt+="/"+$e+" "+In+" ",ce.internal.acroformPlugin.xForms.indexOf(In)>=0||ce.internal.acroformPlugin.xForms.push(In)}}else typeof(In=At)=="function"&&(In=In.call(ce,Pe)),Pt+="/"+$e+" "+In,ce.internal.acroformPlugin.xForms.indexOf(In)>=0||ce.internal.acroformPlugin.xForms.push(In);Pt+=">>"}Ge.push({key:"AP",value:`<<
`+Pt+">>"})}ce.internal.putStream({additionalKeyValues:Ge,objectId:Pe.objId}),ce.internal.out("endobj")}fe&&function(Cn,On){for(var An in Cn)if(Cn.hasOwnProperty(An)){var wr=An,ur=Cn[An];On.internal.newObjectDeferredBegin(ur.objId,!0),(0,x.Z)(ur)==="object"&&typeof ur.putStream=="function"&&ur.putStream(),delete Cn[wr]}}(ce.internal.acroformPlugin.xForms,ce)})(E,y)}),y.internal.acroformPlugin.isInitialized=!0}},xr=Ku.__acroform__.arrayToPdfArray=function(y,z,E){var re=function($e){return $e};if(Array.isArray(y)){for(var ce="[",fe=0;fe<y.length;fe++)switch(fe!==0&&(ce+=" "),(0,x.Z)(y[fe])){case"boolean":case"number":case"object":ce+=y[fe].toString();break;case"string":y[fe].substr(0,1)!=="/"?(z!==void 0&&E&&(re=E.internal.getEncryptor(z)),ce+="("+fh(re(y[fe].toString()))+")"):ce+=y[fe].toString()}return ce+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Dr=function(y,z,E){var re=function(ce){return ce};return z!==void 0&&E&&(re=E.internal.getEncryptor(z)),(y=y||"").toString(),"("+fh(re(y))+")"},Zr=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(y){this._objId=y}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Zr.prototype.toString=function(){return this.objId+" 0 R"},Zr.prototype.putStream=function(){var y=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:y,objectId:this.objId}),this.scope.internal.out("endobj")},Zr.prototype.getKeyValueListForStream=function(){var y=[],z=Object.getOwnPropertyNames(this).filter(function(fe){return fe!="content"&&fe!="appearanceStreamContent"&&fe!="scope"&&fe!="objId"&&fe.substring(0,1)!="_"});for(var E in z)if(Object.getOwnPropertyDescriptor(this,z[E]).configurable===!1){var re=z[E],ce=this[re];ce&&(Array.isArray(ce)?y.push({key:re,value:xr(ce,this.objId,this.scope)}):ce instanceof Zr?(ce.scope=this.scope,y.push({key:re,value:ce.objId+" 0 R"})):typeof ce!="function"&&y.push({key:re,value:ce}))}return y};var Pi=function(){Zr.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 y,z=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return z},set:function(E){z=E}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(E){y=E.trim()},get:function(){return y||null}})};FA(Pi,Zr);var fa=function(){Zr.call(this);var y,z=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return z.length>0?z:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return z}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(y){var E=function(re){return re};return this.scope&&(E=this.scope.internal.getEncryptor(this.objId)),"("+fh(E(y))+")"}},set:function(E){y=E}})};FA(fa,Zr);var po=function y(){Zr.call(this);var z=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return z},set:function(An){if(isNaN(An))throw new Error('Invalid value "'+An+'" for attribute F supplied.');z=An}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Ju(z,3)},set:function(An){An?this.F=ge(z,3):this.F=Ae(z,3)}});var E=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return E},set:function(An){if(isNaN(An))throw new Error('Invalid value "'+An+'" for attribute Ff supplied.');E=An}});var re=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(re.length!==0)return re},set:function(An){re=An!==void 0?An:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!re||isNaN(re[0])?0:re[0]},set:function(An){re[0]=An}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!re||isNaN(re[1])?0:re[1]},set:function(An){re[1]=An}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!re||isNaN(re[2])?0:re[2]},set:function(An){re[2]=An}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!re||isNaN(re[3])?0:re[3]},set:function(An){re[3]=An}});var ce="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return ce},set:function(An){switch(An){case"/Btn":case"/Tx":case"/Ch":case"/Sig":ce=An;break;default:throw new Error('Invalid value "'+An+'" for attribute FT supplied.')}}});var fe=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!fe||fe.length<1){if(this instanceof ia)return;fe="FieldObject"+y.FieldNum++}var An=function(wr){return wr};return this.scope&&(An=this.scope.internal.getEncryptor(this.objId)),"("+fh(An(fe))+")"},set:function(An){fe=An.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return fe},set:function(An){fe=An}});var $e="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return $e},set:function(An){$e=An}});var Pe="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return Pe},set:function(An){Pe=An}});var Ge=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return Ge},set:function(An){Ge=An}});var Ye=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return Ye===void 0?50/xm:Ye},set:function(An){Ye=An}});var ft="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return ft},set:function(An){ft=An}});var Pt="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Pt||this instanceof ia||this instanceof Os))return Dr(Pt,this.objId,this.scope)},set:function(An){An=An.toString(),Pt=An}});var Jt=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Jt)return this instanceof qa==0?Dr(Jt,this.objId,this.scope):Jt},set:function(An){An=An.toString(),Jt=this instanceof qa==0?An.substr(0,1)==="("?Kh(An.substr(1,An.length-2)):Kh(An):An}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof qa==1?Kh(Jt.substr(1,Jt.length-1)):Jt},set:function(An){An=An.toString(),Jt=this instanceof qa==1?"/"+An:An}});var At=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(At)return At},set:function(An){this.V=An}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(At)return this instanceof qa==0?Dr(At,this.objId,this.scope):At},set:function(An){An=An.toString(),At=this instanceof qa==0?An.substr(0,1)==="("?Kh(An.substr(1,An.length-2)):Kh(An):An}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof qa==1?Kh(At.substr(1,At.length-1)):At},set:function(An){An=An.toString(),At=this instanceof qa==1?"/"+An:An}}),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 In,Cn=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return Cn},set:function(An){An=!!An,Cn=An}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(In)return In},set:function(An){In=An}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Ju(this.Ff,1)},set:function(An){An?this.Ff=ge(this.Ff,1):this.Ff=Ae(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Ju(this.Ff,2)},set:function(An){An?this.Ff=ge(this.Ff,2):this.Ff=Ae(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Ju(this.Ff,3)},set:function(An){An?this.Ff=ge(this.Ff,3):this.Ff=Ae(this.Ff,3)}});var On=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(On!==null)return On},set:function(An){if([0,1,2].indexOf(An)===-1)throw new Error('Invalid value "'+An+'" for attribute Q supplied.');On=An}}),Object.defineProperty(this,"textAlign",{get:function(){var An;switch(On){case 0:default:An="left";break;case 1:An="center";break;case 2:An="right"}return An},configurable:!0,enumerable:!0,set:function(An){switch(An){case"right":case 2:On=2;break;case"center":case 1:On=1;break;default:On=0}}})};FA(po,Zr);var $o=function(){po.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var y=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return y},set:function(E){y=E}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return y},set:function(E){y=E}});var z=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return xr(z,this.objId,this.scope)},set:function(E){var re,ce;ce=[],typeof(re=E)=="string"&&(ce=function(fe,$e,Pe){Pe||(Pe=1);for(var Ge,Ye=[];Ge=$e.exec(fe);)Ye.push(Ge[Pe]);return Ye}(re,/\((.*?)\)/g)),z=ce}}),this.getOptions=function(){return z},this.setOptions=function(E){z=E,this.sort&&z.sort()},this.addOption=function(E){E=(E=E||"").toString(),z.push(E),this.sort&&z.sort()},this.removeOption=function(E,re){for(re=re||!1,E=(E=E||"").toString();z.indexOf(E)!==-1&&(z.splice(z.indexOf(E),1),re!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Ju(this.Ff,18)},set:function(E){E?this.Ff=ge(this.Ff,18):this.Ff=Ae(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Ju(this.Ff,19)},set:function(E){this.combo===!0&&(E?this.Ff=ge(this.Ff,19):this.Ff=Ae(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Ju(this.Ff,20)},set:function(E){E?(this.Ff=ge(this.Ff,20),z.sort()):this.Ff=Ae(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ju(this.Ff,22)},set:function(E){E?this.Ff=ge(this.Ff,22):this.Ff=Ae(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ju(this.Ff,23)},set:function(E){E?this.Ff=ge(this.Ff,23):this.Ff=Ae(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Ju(this.Ff,27)},set:function(E){E?this.Ff=ge(this.Ff,27):this.Ff=Ae(this.Ff,27)}}),this.hasAppearanceStream=!1};FA($o,po);var As=function(){$o.call(this),this.fontName="helvetica",this.combo=!1};FA(As,$o);var ya=function(){As.call(this),this.combo=!0};FA(ya,As);var ga=function(){ya.call(this),this.edit=!0};FA(ga,ya);var qa=function(){po.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Ju(this.Ff,15)},set:function(E){E?this.Ff=ge(this.Ff,15):this.Ff=Ae(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Ju(this.Ff,16)},set:function(E){E?this.Ff=ge(this.Ff,16):this.Ff=Ae(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Ju(this.Ff,17)},set:function(E){E?this.Ff=ge(this.Ff,17):this.Ff=Ae(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Ju(this.Ff,26)},set:function(E){E?this.Ff=ge(this.Ff,26):this.Ff=Ae(this.Ff,26)}});var y,z={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var E=function(fe){return fe};if(this.scope&&(E=this.scope.internal.getEncryptor(this.objId)),Object.keys(z).length!==0){var re,ce=[];for(re in ce.push("<<"),z)ce.push("/"+re+" ("+fh(E(z[re]))+")");return ce.push(">>"),ce.join(`
`)}},set:function(E){(0,x.Z)(E)==="object"&&(z=E)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return z.CA||""},set:function(E){typeof E=="string"&&(z.CA=E)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return y},set:function(E){y=E}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return y.substr(1,y.length-1)},set:function(E){y="/"+E}})};FA(qa,po);var bs=function(){qa.call(this),this.pushButton=!0};FA(bs,qa);var Za=function(){qa.call(this),this.radio=!0,this.pushButton=!1;var y=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return y},set:function(z){y=z!==void 0?z:[]}})};FA(Za,qa);var ia=function(){var y,z;po.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return y},set:function(ce){y=ce}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return z},set:function(ce){z=ce}});var E,re={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var ce=function(Pe){return Pe};this.scope&&(ce=this.scope.internal.getEncryptor(this.objId));var fe,$e=[];for(fe in $e.push("<<"),re)$e.push("/"+fe+" ("+fh(ce(re[fe]))+")");return $e.push(">>"),$e.join(`
`)},set:function(ce){(0,x.Z)(ce)==="object"&&(re=ce)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return re.CA||""},set:function(ce){typeof ce=="string"&&(re.CA=ce)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return E},set:function(ce){E=ce}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return E.substr(1,E.length-1)},set:function(ce){E="/"+ce}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Uo.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};FA(ia,po),Za.prototype.setAppearance=function(y){if(!("createAppearanceStream"in y)||!("getCA"in y))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var z in this.Kids)if(this.Kids.hasOwnProperty(z)){var E=this.Kids[z];E.appearanceStreamContent=y.createAppearanceStream(E.optionName),E.caption=y.getCA()}},Za.prototype.createOption=function(y){var z=new ia;return z.Parent=this,z.optionName=y,this.Kids.push(z),IA.call(this.scope,z),z};var Ys=function(){qa.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Uo.CheckBox.createAppearanceStream()};FA(Ys,qa);var Os=function(){po.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Ju(this.Ff,13)},set:function(z){z?this.Ff=ge(this.Ff,13):this.Ff=Ae(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ju(this.Ff,21)},set:function(z){z?this.Ff=ge(this.Ff,21):this.Ff=Ae(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ju(this.Ff,23)},set:function(z){z?this.Ff=ge(this.Ff,23):this.Ff=Ae(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Ju(this.Ff,24)},set:function(z){z?this.Ff=ge(this.Ff,24):this.Ff=Ae(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Ju(this.Ff,25)},set:function(z){z?this.Ff=ge(this.Ff,25):this.Ff=Ae(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Ju(this.Ff,26)},set:function(z){z?this.Ff=ge(this.Ff,26):this.Ff=Ae(this.Ff,26)}});var y=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return y},set:function(z){y=z}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return y},set:function(z){Number.isInteger(z)&&(y=z)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};FA(Os,po);var es=function(){Os.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Ju(this.Ff,14)},set:function(y){y?this.Ff=ge(this.Ff,14):this.Ff=Ae(this.Ff,14)}}),this.password=!0};FA(es,Os);var Uo={CheckBox:{createAppearanceStream:function(){return{N:{On:Uo.CheckBox.YesNormal},D:{On:Uo.CheckBox.YesPushDown,Off:Uo.CheckBox.OffPushDown}}},YesPushDown:function(y){var z=Ud(y);z.scope=y.scope;var E=[],re=y.scope.internal.getFont(y.fontName,y.fontStyle).id,ce=y.scope.__private__.encodeColorString(y.color),fe=nt(y,y.caption);return E.push("0.749023 g"),E.push("0 0 "+ws(Uo.internal.getWidth(y))+" "+ws(Uo.internal.getHeight(y))+" re"),E.push("f"),E.push("BMC"),E.push("q"),E.push("0 0 1 rg"),E.push("/"+re+" "+ws(fe.fontSize)+" Tf "+ce),E.push("BT"),E.push(fe.text),E.push("ET"),E.push("Q"),E.push("EMC"),z.stream=E.join(`
`),z},YesNormal:function(y){var z=Ud(y);z.scope=y.scope;var E=y.scope.internal.getFont(y.fontName,y.fontStyle).id,re=y.scope.__private__.encodeColorString(y.color),ce=[],fe=Uo.internal.getHeight(y),$e=Uo.internal.getWidth(y),Pe=nt(y,y.caption);return ce.push("1 g"),ce.push("0 0 "+ws($e)+" "+ws(fe)+" re"),ce.push("f"),ce.push("q"),ce.push("0 0 1 rg"),ce.push("0 0 "+ws($e-1)+" "+ws(fe-1)+" re"),ce.push("W"),ce.push("n"),ce.push("0 g"),ce.push("BT"),ce.push("/"+E+" "+ws(Pe.fontSize)+" Tf "+re),ce.push(Pe.text),ce.push("ET"),ce.push("Q"),z.stream=ce.join(`
`),z},OffPushDown:function(y){var z=Ud(y);z.scope=y.scope;var E=[];return E.push("0.749023 g"),E.push("0 0 "+ws(Uo.internal.getWidth(y))+" "+ws(Uo.internal.getHeight(y))+" re"),E.push("f"),z.stream=E.join(`
`),z}},RadioButton:{Circle:{createAppearanceStream:function(y){var z={D:{Off:Uo.RadioButton.Circle.OffPushDown},N:{}};return z.N[y]=Uo.RadioButton.Circle.YesNormal,z.D[y]=Uo.RadioButton.Circle.YesPushDown,z},getCA:function(){return"l"},YesNormal:function(y){var z=Ud(y);z.scope=y.scope;var E=[],re=Uo.internal.getWidth(y)<=Uo.internal.getHeight(y)?Uo.internal.getWidth(y)/4:Uo.internal.getHeight(y)/4;re=Number((.9*re).toFixed(5));var ce=Uo.internal.Bezier_C,fe=Number((re*ce).toFixed(5));return E.push("q"),E.push("1 0 0 1 "+Uf(Uo.internal.getWidth(y)/2)+" "+Uf(Uo.internal.getHeight(y)/2)+" cm"),E.push(re+" 0 m"),E.push(re+" "+fe+" "+fe+" "+re+" 0 "+re+" c"),E.push("-"+fe+" "+re+" -"+re+" "+fe+" -"+re+" 0 c"),E.push("-"+re+" -"+fe+" -"+fe+" -"+re+" 0 -"+re+" c"),E.push(fe+" -"+re+" "+re+" -"+fe+" "+re+" 0 c"),E.push("f"),E.push("Q"),z.stream=E.join(`
`),z},YesPushDown:function(y){var z=Ud(y);z.scope=y.scope;var E=[],re=Uo.internal.getWidth(y)<=Uo.internal.getHeight(y)?Uo.internal.getWidth(y)/4:Uo.internal.getHeight(y)/4;re=Number((.9*re).toFixed(5));var ce=Number((2*re).toFixed(5)),fe=Number((ce*Uo.internal.Bezier_C).toFixed(5)),$e=Number((re*Uo.internal.Bezier_C).toFixed(5));return E.push("0.749023 g"),E.push("q"),E.push("1 0 0 1 "+Uf(Uo.internal.getWidth(y)/2)+" "+Uf(Uo.internal.getHeight(y)/2)+" cm"),E.push(ce+" 0 m"),E.push(ce+" "+fe+" "+fe+" "+ce+" 0 "+ce+" c"),E.push("-"+fe+" "+ce+" -"+ce+" "+fe+" -"+ce+" 0 c"),E.push("-"+ce+" -"+fe+" -"+fe+" -"+ce+" 0 -"+ce+" c"),E.push(fe+" -"+ce+" "+ce+" -"+fe+" "+ce+" 0 c"),E.push("f"),E.push("Q"),E.push("0 g"),E.push("q"),E.push("1 0 0 1 "+Uf(Uo.internal.getWidth(y)/2)+" "+Uf(Uo.internal.getHeight(y)/2)+" cm"),E.push(re+" 0 m"),E.push(re+" "+$e+" "+$e+" "+re+" 0 "+re+" c"),E.push("-"+$e+" "+re+" -"+re+" "+$e+" -"+re+" 0 c"),E.push("-"+re+" -"+$e+" -"+$e+" -"+re+" 0 -"+re+" c"),E.push($e+" -"+re+" "+re+" -"+$e+" "+re+" 0 c"),E.push("f"),E.push("Q"),z.stream=E.join(`
`),z},OffPushDown:function(y){var z=Ud(y);z.scope=y.scope;var E=[],re=Uo.internal.getWidth(y)<=Uo.internal.getHeight(y)?Uo.internal.getWidth(y)/4:Uo.internal.getHeight(y)/4;re=Number((.9*re).toFixed(5));var ce=Number((2*re).toFixed(5)),fe=Number((ce*Uo.internal.Bezier_C).toFixed(5));return E.push("0.749023 g"),E.push("q"),E.push("1 0 0 1 "+Uf(Uo.internal.getWidth(y)/2)+" "+Uf(Uo.internal.getHeight(y)/2)+" cm"),E.push(ce+" 0 m"),E.push(ce+" "+fe+" "+fe+" "+ce+" 0 "+ce+" c"),E.push("-"+fe+" "+ce+" -"+ce+" "+fe+" -"+ce+" 0 c"),E.push("-"+ce+" -"+fe+" -"+fe+" -"+ce+" 0 -"+ce+" c"),E.push(fe+" -"+ce+" "+ce+" -"+fe+" "+ce+" 0 c"),E.push("f"),E.push("Q"),z.stream=E.join(`
`),z}},Cross:{createAppearanceStream:function(y){var z={D:{Off:Uo.RadioButton.Cross.OffPushDown},N:{}};return z.N[y]=Uo.RadioButton.Cross.YesNormal,z.D[y]=Uo.RadioButton.Cross.YesPushDown,z},getCA:function(){return"8"},YesNormal:function(y){var z=Ud(y);z.scope=y.scope;var E=[],re=Uo.internal.calculateCross(y);return E.push("q"),E.push("1 1 "+ws(Uo.internal.getWidth(y)-2)+" "+ws(Uo.internal.getHeight(y)-2)+" re"),E.push("W"),E.push("n"),E.push(ws(re.x1.x)+" "+ws(re.x1.y)+" m"),E.push(ws(re.x2.x)+" "+ws(re.x2.y)+" l"),E.push(ws(re.x4.x)+" "+ws(re.x4.y)+" m"),E.push(ws(re.x3.x)+" "+ws(re.x3.y)+" l"),E.push("s"),E.push("Q"),z.stream=E.join(`
`),z},YesPushDown:function(y){var z=Ud(y);z.scope=y.scope;var E=Uo.internal.calculateCross(y),re=[];return re.push("0.749023 g"),re.push("0 0 "+ws(Uo.internal.getWidth(y))+" "+ws(Uo.internal.getHeight(y))+" re"),re.push("f"),re.push("q"),re.push("1 1 "+ws(Uo.internal.getWidth(y)-2)+" "+ws(Uo.internal.getHeight(y)-2)+" re"),re.push("W"),re.push("n"),re.push(ws(E.x1.x)+" "+ws(E.x1.y)+" m"),re.push(ws(E.x2.x)+" "+ws(E.x2.y)+" l"),re.push(ws(E.x4.x)+" "+ws(E.x4.y)+" m"),re.push(ws(E.x3.x)+" "+ws(E.x3.y)+" l"),re.push("s"),re.push("Q"),z.stream=re.join(`
`),z},OffPushDown:function(y){var z=Ud(y);z.scope=y.scope;var E=[];return E.push("0.749023 g"),E.push("0 0 "+ws(Uo.internal.getWidth(y))+" "+ws(Uo.internal.getHeight(y))+" re"),E.push("f"),z.stream=E.join(`
`),z}}},createDefaultAppearanceStream:function(y){var z=y.scope.internal.getFont(y.fontName,y.fontStyle).id,E=y.scope.__private__.encodeColorString(y.color);return"/"+z+" "+y.fontSize+" Tf "+E}};Uo.internal={Bezier_C:.551915024494,calculateCross:function(y){var z=Uo.internal.getWidth(y),E=Uo.internal.getHeight(y),re=Math.min(z,E);return{x1:{x:(z-re)/2,y:(E-re)/2+re},x2:{x:(z-re)/2+re,y:(E-re)/2},x3:{x:(z-re)/2,y:(E-re)/2},x4:{x:(z-re)/2+re,y:(E-re)/2+re}}}},Uo.internal.getWidth=function(y){var z=0;return(0,x.Z)(y)==="object"&&(z=ng(y.Rect[2])),z},Uo.internal.getHeight=function(y){var z=0;return(0,x.Z)(y)==="object"&&(z=ng(y.Rect[3])),z};var IA=Ku.addField=function(y){if(xn(this,y),!(y instanceof po))throw new Error("Invalid argument passed to jsPDF.addField.");var z;return(z=y).scope.internal.acroformPlugin.printedOut&&(z.scope.internal.acroformPlugin.printedOut=!1,z.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),z.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(z),y.page=y.scope.internal.getCurrentPageInfo().pageNumber,this};Ku.AcroFormChoiceField=$o,Ku.AcroFormListBox=As,Ku.AcroFormComboBox=ya,Ku.AcroFormEditBox=ga,Ku.AcroFormButton=qa,Ku.AcroFormPushButton=bs,Ku.AcroFormRadioButton=Za,Ku.AcroFormCheckBox=Ys,Ku.AcroFormTextField=Os,Ku.AcroFormPasswordField=es,Ku.AcroFormAppearance=Uo,Ku.AcroForm={ChoiceField:$o,ListBox:As,ComboBox:ya,EditBox:ga,Button:qa,PushButton:bs,RadioButton:Za,CheckBox:Ys,TextField:Os,PasswordField:es,Appearance:Uo},La.AcroForm={ChoiceField:$o,ListBox:As,ComboBox:ya,EditBox:ga,Button:qa,PushButton:bs,RadioButton:Za,CheckBox:Ys,TextField:Os,PasswordField:es,Appearance:Uo};var RA=La.AcroForm;function Vl(y){return y.reduce(function(z,E,re){return z[E]=re,z},{})}(function(y){var z="addImage_";y.__addimage__={};var E="UNKNOWN",re={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]]},ce=y.__addimage__.getImageFileTypeByImageData=function(ln,Dn){var gr,dr,mi,Si,Ni,ai=E;if((Dn=Dn||E)==="RGBA"||ln.data!==void 0&&ln.data instanceof Uint8ClampedArray&&"height"in ln&&"width"in ln)return"RGBA";if(Ri(ln))for(Ni in re)for(mi=re[Ni],gr=0;gr<mi.length;gr+=1){for(Si=!0,dr=0;dr<mi[gr].length;dr+=1)if(mi[gr][dr]!==void 0&&mi[gr][dr]!==ln[dr]){Si=!1;break}if(Si===!0){ai=Ni;break}}else for(Ni in re)for(mi=re[Ni],gr=0;gr<mi.length;gr+=1){for(Si=!0,dr=0;dr<mi[gr].length;dr+=1)if(mi[gr][dr]!==void 0&&mi[gr][dr]!==ln.charCodeAt(dr)){Si=!1;break}if(Si===!0){ai=Ni;break}}return ai===E&&Dn!==E&&(ai=Dn),ai},fe=function ln(Dn){for(var gr=this.internal.write,dr=this.internal.putStream,mi=(0,this.internal.getFilters)();mi.indexOf("FlateEncode")!==-1;)mi.splice(mi.indexOf("FlateEncode"),1);Dn.objectId=this.internal.newObject();var Si=[];if(Si.push({key:"Type",value:"/XObject"}),Si.push({key:"Subtype",value:"/Image"}),Si.push({key:"Width",value:Dn.width}),Si.push({key:"Height",value:Dn.height}),Dn.colorSpace===An.INDEXED?Si.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Dn.palette.length/3-1)+" "+("sMask"in Dn&&Dn.sMask!==void 0?Dn.objectId+2:Dn.objectId+1)+" 0 R]"}):(Si.push({key:"ColorSpace",value:"/"+Dn.colorSpace}),Dn.colorSpace===An.DEVICE_CMYK&&Si.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Si.push({key:"BitsPerComponent",value:Dn.bitsPerComponent}),"decodeParameters"in Dn&&Dn.decodeParameters!==void 0&&Si.push({key:"DecodeParms",value:"<<"+Dn.decodeParameters+">>"}),"transparency"in Dn&&Array.isArray(Dn.transparency)&&Dn.transparency.length>0){for(var Ni="",ai=0,Di=Dn.transparency.length;ai<Di;ai++)Ni+=Dn.transparency[ai]+" "+Dn.transparency[ai]+" ";Si.push({key:"Mask",value:"["+Ni+"]"})}Dn.sMask!==void 0&&Si.push({key:"SMask",value:Dn.objectId+1+" 0 R"});var Do=Dn.filter!==void 0?["/"+Dn.filter]:void 0;if(dr({data:Dn.data,additionalKeyValues:Si,alreadyAppliedFilters:Do,objectId:Dn.objectId}),gr("endobj"),"sMask"in Dn&&Dn.sMask!==void 0){var ro,nn=(ro=Dn.sMaskBitsPerComponent)!==null&&ro!==void 0?ro:Dn.bitsPerComponent,Kn={width:Dn.width,height:Dn.height,colorSpace:"DeviceGray",bitsPerComponent:nn,data:Dn.sMask};"filter"in Dn&&(Kn.decodeParameters="/Predictor ".concat(Dn.predictor," /Colors 1 /BitsPerComponent ").concat(nn," /Columns ").concat(Dn.width),Kn.filter=Dn.filter),ln.call(this,Kn)}if(Dn.colorSpace===An.INDEXED){var ir=this.internal.newObject();dr({data:Nr(new Uint8Array(Dn.palette)),objectId:ir}),gr("endobj")}},$e=function(){var ln=this.internal.collections[z+"images"];for(var Dn in ln)fe.call(this,ln[Dn])},Pe=function(){var ln,Dn=this.internal.collections[z+"images"],gr=this.internal.write;for(var dr in Dn)gr("/I"+(ln=Dn[dr]).index,ln.objectId,"0","R")},Ge=function(){this.internal.collections[z+"images"]||(this.internal.collections[z+"images"]={},this.internal.events.subscribe("putResources",$e),this.internal.events.subscribe("putXobjectDict",Pe))},Ye=function(){var ln=this.internal.collections[z+"images"];return Ge.call(this),ln},ft=function(){return Object.keys(this.internal.collections[z+"images"]).length},Pt=function(ln){return typeof y["process"+ln.toUpperCase()]=="function"},Jt=function(ln){return(0,x.Z)(ln)==="object"&&ln.nodeType===1},At=function(ln,Dn){if(ln.nodeName==="IMG"&&ln.hasAttribute("src")){var gr=""+ln.getAttribute("src");if(gr.indexOf("data:image/")===0)return bp(unescape(gr).split("base64,").pop());var dr=y.loadFile(gr,!0);if(dr!==void 0)return dr}if(ln.nodeName==="CANVAS"){if(ln.width===0||ln.height===0)throw new Error("Given canvas must have data. Canvas width: "+ln.width+", height: "+ln.height);var mi;switch(Dn){case"PNG":mi="image/png";break;case"WEBP":mi="image/webp";break;default:mi="image/jpeg"}return bp(ln.toDataURL(mi,1).split("base64,").pop())}},In=function(ln){var Dn=this.internal.collections[z+"images"];if(Dn){for(var gr in Dn)if(ln===Dn[gr].alias)return Dn[gr]}},Cn=function(ln,Dn,gr){return ln||Dn||(ln=-96,Dn=-96),ln<0&&(ln=-1*gr.width*72/ln/this.internal.scaleFactor),Dn<0&&(Dn=-1*gr.height*72/Dn/this.internal.scaleFactor),ln===0&&(ln=Dn*gr.width/gr.height),Dn===0&&(Dn=ln*gr.height/gr.width),[ln,Dn]},On=function(ln,Dn,gr,dr,mi,Si){var Ni=Cn.call(this,gr,dr,mi),ai=this.internal.getCoordinateString,Di=this.internal.getVerticalCoordinateString,Do=Ye.call(this);if(gr=Ni[0],dr=Ni[1],Do[mi.index]=mi,Si){Si*=Math.PI/180;var ro=Math.cos(Si),nn=Math.sin(Si),Kn=function(Cr){return Cr.toFixed(4)},ir=[Kn(ro),Kn(nn),Kn(-1*nn),Kn(ro),0,0,"cm"]}this.internal.write("q"),Si?(this.internal.write([1,"0","0",1,ai(ln),Di(Dn+dr),"cm"].join(" ")),this.internal.write(ir.join(" ")),this.internal.write([ai(gr),"0","0",ai(dr),"0","0","cm"].join(" "))):this.internal.write([ai(gr),"0","0",ai(dr),ai(ln),Di(Dn+dr),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+mi.index+" Do"),this.internal.write("Q")},An=y.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"};y.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 wr=y.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},ur=y.__addimage__.sHashCode=function(ln){var Dn,gr,dr=0;if(typeof ln=="string")for(gr=ln.length,Dn=0;Dn<gr;Dn++)dr=(dr<<5)-dr+ln.charCodeAt(Dn),dr|=0;else if(Ri(ln))for(gr=ln.byteLength/2,Dn=0;Dn<gr;Dn++)dr=(dr<<5)-dr+ln[Dn],dr|=0;return dr},Gn=y.__addimage__.validateStringAsBase64=function(ln){(ln=ln||"").toString().trim();var Dn=!0;return ln.length===0&&(Dn=!1),ln.length%4!=0&&(Dn=!1),/^[A-Za-z0-9+/]+$/.test(ln.substr(0,ln.length-2))===!1&&(Dn=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(ln.substr(-2))===!1&&(Dn=!1),Dn},ui=y.__addimage__.extractImageFromDataUrl=function(ln){if(ln==null||!(ln=ln.trim()).startsWith("data:"))return null;var Dn=ln.indexOf(",");return Dn<0?null:ln.substring(0,Dn).trim().endsWith("base64")?ln.substring(Dn+1):null};y.__addimage__.isArrayBuffer=function(ln){return ln instanceof ArrayBuffer};var Ri=y.__addimage__.isArrayBufferView=function(ln){return ln instanceof Int8Array||ln instanceof Uint8Array||ln instanceof Uint8ClampedArray||ln instanceof Int16Array||ln instanceof Uint16Array||ln instanceof Int32Array||ln instanceof Uint32Array||ln instanceof Float32Array||ln instanceof Float64Array},Ii=y.__addimage__.binaryStringToUint8Array=function(ln){for(var Dn=ln.length,gr=new Uint8Array(Dn),dr=0;dr<Dn;dr++)gr[dr]=ln.charCodeAt(dr);return gr},Nr=y.__addimage__.arrayBufferToBinaryString=function(ln){for(var Dn="",gr=Ri(ln)?ln:new Uint8Array(ln),dr=0;dr<gr.length;dr+=8192)Dn+=String.fromCharCode.apply(null,gr.subarray(dr,dr+8192));return Dn};y.addImage=function(){var ln,Dn,gr,dr,mi,Si,Ni,ai,Di;if(typeof arguments[1]=="number"?(Dn=E,gr=arguments[1],dr=arguments[2],mi=arguments[3],Si=arguments[4],Ni=arguments[5],ai=arguments[6],Di=arguments[7]):(Dn=arguments[1],gr=arguments[2],dr=arguments[3],mi=arguments[4],Si=arguments[5],Ni=arguments[6],ai=arguments[7],Di=arguments[8]),(0,x.Z)(ln=arguments[0])==="object"&&!Jt(ln)&&"imageData"in ln){var Do=ln;ln=Do.imageData,Dn=Do.format||Dn||E,gr=Do.x||gr||0,dr=Do.y||dr||0,mi=Do.w||Do.width||mi,Si=Do.h||Do.height||Si,Ni=Do.alias||Ni,ai=Do.compression||ai,Di=Do.rotation||Do.angle||Di}var ro=this.internal.getFilters();if(ai===void 0&&ro.indexOf("FlateEncode")!==-1&&(ai="SLOW"),isNaN(gr)||isNaN(dr))throw new Error("Invalid coordinates passed to jsPDF.addImage");Ge.call(this);var nn=Xn.call(this,ln,Dn,Ni,ai);return On.call(this,gr,dr,mi,Si,nn,Di),this};var Xn=function(ln,Dn,gr,dr){var mi,Si,Ni;if(typeof ln=="string"&&ce(ln)===E){ln=unescape(ln);var ai=Vr(ln,!1);(ai!==""||(ai=y.loadFile(ln,!0))!==void 0)&&(ln=ai)}if(Jt(ln)&&(ln=At(ln,Dn)),Dn=ce(ln,Dn),!Pt(Dn))throw new Error("addImage does not support files of type '"+Dn+"', please ensure that a plugin for '"+Dn+"' support is added.");if(((Ni=gr)==null||Ni.length===0)&&(gr=function(Di){return typeof Di=="string"||Ri(Di)?ur(Di):Ri(Di.data)?ur(Di.data):null}(ln)),(mi=In.call(this,gr))||(ln instanceof Uint8Array||Dn==="RGBA"||(Si=ln,ln=Ii(ln)),mi=this["process"+Dn.toUpperCase()](ln,ft.call(this),gr,function(Di){return Di&&typeof Di=="string"&&(Di=Di.toUpperCase()),Di in y.image_compression?Di:wr.NONE}(dr),Si)),!mi)throw new Error("An unknown error occurred whilst processing the image.");return mi},Vr=y.__addimage__.convertBase64ToBinaryString=function(ln,Dn){Dn=typeof Dn!="boolean"||Dn;var gr,dr="";if(typeof ln=="string"){var mi;gr=(mi=ui(ln))!==null&&mi!==void 0?mi:ln;try{dr=bp(gr)}catch(Si){if(Dn)throw Gn(gr)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Si.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return dr};y.getImageProperties=function(ln){var Dn,gr,dr="";if(Jt(ln)&&(ln=At(ln)),typeof ln=="string"&&ce(ln)===E&&((dr=Vr(ln,!1))===""&&(dr=y.loadFile(ln)||""),ln=dr),gr=ce(ln),!Pt(gr))throw new Error("addImage does not support files of type '"+gr+"', please ensure that a plugin for '"+gr+"' support is added.");if(ln instanceof Uint8Array||(ln=Ii(ln)),!(Dn=this["process"+gr.toUpperCase()](ln)))throw new Error("An unknown error occurred whilst processing the image");return Dn.fileType=gr,Dn}})(La.API),function(y){var z=function(E){if(E!==void 0&&E!="")return!0};La.API.events.push(["addPage",function(E){this.internal.getPageInfo(E.pageNumber).pageContext.annotations=[]}]),y.events.push(["putPage",function(E){for(var re,ce,fe,$e=this.internal.getCoordinateString,Pe=this.internal.getVerticalCoordinateString,Ge=this.internal.getPageInfoByObjId(E.objId),Ye=E.pageContext.annotations,ft=!1,Pt=0;Pt<Ye.length&&!ft;Pt++)switch((re=Ye[Pt]).type){case"link":(z(re.options.url)||z(re.options.pageNumber))&&(ft=!0);break;case"reference":case"text":case"freetext":ft=!0}if(ft!=0){this.internal.write("/Annots [");for(var Jt=0;Jt<Ye.length;Jt++){re=Ye[Jt];var At=this.internal.pdfEscape,In=this.internal.getEncryptor(E.objId);switch(re.type){case"reference":this.internal.write(" "+re.object.objId+" 0 R ");break;case"text":var Cn=this.internal.newAdditionalObject(),On=this.internal.newAdditionalObject(),An=this.internal.getEncryptor(Cn.objId),wr=re.title||"Note";fe="<</Type /Annot /Subtype /Text "+(ce="/Rect ["+$e(re.bounds.x)+" "+Pe(re.bounds.y+re.bounds.h)+" "+$e(re.bounds.x+re.bounds.w)+" "+Pe(re.bounds.y)+"] ")+"/Contents ("+At(An(re.contents))+")",fe+=" /Popup "+On.objId+" 0 R",fe+=" /P "+Ge.objId+" 0 R",fe+=" /T ("+At(An(wr))+") >>",Cn.content=fe;var ur=Cn.objId+" 0 R";fe="<</Type /Annot /Subtype /Popup "+(ce="/Rect ["+$e(re.bounds.x+30)+" "+Pe(re.bounds.y+re.bounds.h)+" "+$e(re.bounds.x+re.bounds.w+30)+" "+Pe(re.bounds.y)+"] ")+" /Parent "+ur,re.open&&(fe+=" /Open true"),fe+=" >>",On.content=fe,this.internal.write(Cn.objId,"0 R",On.objId,"0 R");break;case"freetext":ce="/Rect ["+$e(re.bounds.x)+" "+Pe(re.bounds.y)+" "+$e(re.bounds.x+re.bounds.w)+" "+Pe(re.bounds.y+re.bounds.h)+"] ";var Gn=re.color||"#000000";fe="<</Type /Annot /Subtype /FreeText "+ce+"/Contents ("+At(In(re.contents))+")",fe+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+Gn+")",fe+=" /Border [0 0 0]",fe+=" >>",this.internal.write(fe);break;case"link":if(re.options.name){var ui=this.annotations._nameMap[re.options.name];re.options.pageNumber=ui.page,re.options.top=ui.y}else re.options.top||(re.options.top=0);if(ce="/Rect ["+re.finalBounds.x+" "+re.finalBounds.y+" "+re.finalBounds.w+" "+re.finalBounds.h+"] ",fe="",re.options.url)fe="<</Type /Annot /Subtype /Link "+ce+"/Border [0 0 0] /A <</S /URI /URI ("+At(In(re.options.url))+") >>";else if(re.options.pageNumber)switch(fe="<</Type /Annot /Subtype /Link "+ce+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(re.options.pageNumber).objId+" 0 R",re.options.magFactor=re.options.magFactor||"XYZ",re.options.magFactor){case"Fit":fe+=" /Fit]";break;case"FitH":fe+=" /FitH "+re.options.top+"]";break;case"FitV":re.options.left=re.options.left||0,fe+=" /FitV "+re.options.left+"]";break;default:var Ri=Pe(re.options.top);re.options.left=re.options.left||0,re.options.zoom===void 0&&(re.options.zoom=0),fe+=" /XYZ "+re.options.left+" "+Ri+" "+re.options.zoom+"]"}fe!=""&&(fe+=" >>",this.internal.write(fe))}}this.internal.write("]")}}]),y.createAnnotation=function(E){var re=this.internal.getCurrentPageInfo();switch(E.type){case"link":this.link(E.bounds.x,E.bounds.y,E.bounds.w,E.bounds.h,E);break;case"text":case"freetext":re.pageContext.annotations.push(E)}},y.link=function(E,re,ce,fe,$e){var Pe=this.internal.getCurrentPageInfo(),Ge=this.internal.getCoordinateString,Ye=this.internal.getVerticalCoordinateString;Pe.pageContext.annotations.push({finalBounds:{x:Ge(E),y:Ye(re),w:Ge(E+ce),h:Ye(re+fe)},options:$e,type:"link"})},y.textWithLink=function(E,re,ce,fe){var $e,Pe,Ge=this.getTextWidth(E),Ye=this.internal.getLineHeight()/this.internal.scaleFactor;if(fe.maxWidth!==void 0){Pe=fe.maxWidth;var ft=this.splitTextToSize(E,Pe).length;$e=Math.ceil(Ye*ft)}else Pe=Ge,$e=Ye;return this.text(E,re,ce,fe),ce+=.2*Ye,fe.align==="center"&&(re-=Ge/2),fe.align==="right"&&(re-=Ge),this.link(re,ce-Ye,Pe,$e,fe),Ge},y.getTextWidth=function(E){var re=this.internal.getFontSize();return this.getStringUnitWidth(E)*re/this.internal.scaleFactor}}(La.API),function(y){var z={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]},E={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}},re={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},ce=[1570,1571,1573,1575];y.__arabicParser__={};var fe=y.__arabicParser__.isInArabicSubstitutionA=function(Cn){return z[Cn.charCodeAt(0)]!==void 0},$e=y.__arabicParser__.isArabicLetter=function(Cn){return typeof Cn=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(Cn)},Pe=y.__arabicParser__.isArabicEndLetter=function(Cn){return $e(Cn)&&fe(Cn)&&z[Cn.charCodeAt(0)].length<=2},Ge=y.__arabicParser__.isArabicAlfLetter=function(Cn){return $e(Cn)&&ce.indexOf(Cn.charCodeAt(0))>=0};y.__arabicParser__.arabicLetterHasIsolatedForm=function(Cn){return $e(Cn)&&fe(Cn)&&z[Cn.charCodeAt(0)].length>=1};var Ye=y.__arabicParser__.arabicLetterHasFinalForm=function(Cn){return $e(Cn)&&fe(Cn)&&z[Cn.charCodeAt(0)].length>=2};y.__arabicParser__.arabicLetterHasInitialForm=function(Cn){return $e(Cn)&&fe(Cn)&&z[Cn.charCodeAt(0)].length>=3};var ft=y.__arabicParser__.arabicLetterHasMedialForm=function(Cn){return $e(Cn)&&fe(Cn)&&z[Cn.charCodeAt(0)].length==4},Pt=y.__arabicParser__.resolveLigatures=function(Cn){var On=0,An=E,wr="",ur=0;for(On=0;On<Cn.length;On+=1)An[Cn.charCodeAt(On)]!==void 0?(ur++,typeof(An=An[Cn.charCodeAt(On)])=="number"&&(wr+=String.fromCharCode(An),An=E,ur=0),On===Cn.length-1&&(An=E,wr+=Cn.charAt(On-(ur-1)),On-=ur-1,ur=0)):(An=E,wr+=Cn.charAt(On-ur),On-=ur,ur=0);return wr};y.__arabicParser__.isArabicDiacritic=function(Cn){return Cn!==void 0&&re[Cn.charCodeAt(0)]!==void 0};var Jt=y.__arabicParser__.getCorrectForm=function(Cn,On,An){return $e(Cn)?fe(Cn)===!1?-1:!Ye(Cn)||!$e(On)&&!$e(An)||!$e(An)&&Pe(On)||Pe(Cn)&&!$e(On)||Pe(Cn)&&Ge(On)||Pe(Cn)&&Pe(On)?0:ft(Cn)&&$e(On)&&!Pe(On)&&$e(An)&&Ye(An)?3:Pe(Cn)||!$e(An)?1:2:-1},At=function(Cn){var On=0,An=0,wr=0,ur="",Gn="",ui="",Ri=(Cn=Cn||"").split("\\s+"),Ii=[];for(On=0;On<Ri.length;On+=1){for(Ii.push(""),An=0;An<Ri[On].length;An+=1)ur=Ri[On][An],Gn=Ri[On][An-1],ui=Ri[On][An+1],$e(ur)?(wr=Jt(ur,Gn,ui),Ii[On]+=wr!==-1?String.fromCharCode(z[ur.charCodeAt(0)][wr]):ur):Ii[On]+=ur;Ii[On]=Pt(Ii[On])}return Ii.join(" ")},In=y.__arabicParser__.processArabic=y.processArabic=function(){var Cn,On=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,An=[];if(Array.isArray(On)){var wr=0;for(An=[],wr=0;wr<On.length;wr+=1)Array.isArray(On[wr])?An.push([At(On[wr][0]),On[wr][1],On[wr][2]]):An.push([At(On[wr])]);Cn=An}else Cn=At(On);return typeof arguments[0]=="string"?Cn:(arguments[0].text=Cn,arguments[0])};y.events.push(["preProcessText",In])}(La.API),La.API.autoPrint=function(y){var z;return(y=y||{}).variant=y.variant||"non-conform",y.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){z=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 "+z+" 0 R")})),this},function(y){var z=function(){var E=void 0;Object.defineProperty(this,"pdf",{get:function(){return E},set:function(Pe){E=Pe}});var re=150;Object.defineProperty(this,"width",{get:function(){return re},set:function(Pe){re=isNaN(Pe)||Number.isInteger(Pe)===!1||Pe<0?150:Pe,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=re+1)}});var ce=300;Object.defineProperty(this,"height",{get:function(){return ce},set:function(Pe){ce=isNaN(Pe)||Number.isInteger(Pe)===!1||Pe<0?300:Pe,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=ce+1)}});var fe=[];Object.defineProperty(this,"childNodes",{get:function(){return fe},set:function(Pe){fe=Pe}});var $e={};Object.defineProperty(this,"style",{get:function(){return $e},set:function(Pe){$e=Pe}}),Object.defineProperty(this,"parentNode",{})};z.prototype.getContext=function(E,re){var ce;if((E=E||"2d")!=="2d")return null;for(ce in re)this.pdf.context2d.hasOwnProperty(ce)&&(this.pdf.context2d[ce]=re[ce]);return this.pdf.context2d._canvas=this,this.pdf.context2d},z.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},y.events.push(["initialized",function(){this.canvas=new z,this.canvas.pdf=this}])}(La.API),function(y){var z={left:0,top:0,bottom:0,right:0},E=!1,re=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({},z),this.internal.__cell__.margins.width=this.getPageWidth(),ce.call(this))},ce=function(){this.internal.__cell__.lastCell=new fe,this.internal.__cell__.pages=1},fe=function(){var Ge=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Ge},set:function(Cn){Ge=Cn}});var Ye=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Ye},set:function(Cn){Ye=Cn}});var ft=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return ft},set:function(Cn){ft=Cn}});var Pt=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return Pt},set:function(Cn){Pt=Cn}});var Jt=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Jt},set:function(Cn){Jt=Cn}});var At=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return At},set:function(Cn){At=Cn}});var In=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return In},set:function(Cn){In=Cn}}),this};fe.prototype.clone=function(){return new fe(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},fe.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},y.setHeaderFunction=function(Ge){return re.call(this),this.internal.__cell__.headerFunction=typeof Ge=="function"?Ge:void 0,this},y.getTextDimensions=function(Ge,Ye){re.call(this);var ft=(Ye=Ye||{}).fontSize||this.getFontSize(),Pt=Ye.font||this.getFont(),Jt=Ye.scaleFactor||this.internal.scaleFactor,At=0,In=0,Cn=0,On=this;if(!Array.isArray(Ge)&&typeof Ge!="string"){if(typeof Ge!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");Ge=String(Ge)}var An=Ye.maxWidth;An>0?typeof Ge=="string"?Ge=this.splitTextToSize(Ge,An):Object.prototype.toString.call(Ge)==="[object Array]"&&(Ge=Ge.reduce(function(ur,Gn){return ur.concat(On.splitTextToSize(Gn,An))},[])):Ge=Array.isArray(Ge)?Ge:[Ge];for(var wr=0;wr<Ge.length;wr++)At<(Cn=this.getStringUnitWidth(Ge[wr],{font:Pt})*ft)&&(At=Cn);return At!==0&&(In=Ge.length),{w:At/=Jt,h:Math.max((In*ft*this.getLineHeightFactor()-ft*(this.getLineHeightFactor()-1))/Jt,0)}},y.cellAddPage=function(){re.call(this),this.addPage();var Ge=this.internal.__cell__.margins||z;return this.internal.__cell__.lastCell=new fe(Ge.left,Ge.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var $e=y.cell=function(){var Ge;Ge=arguments[0]instanceof fe?arguments[0]:new fe(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),re.call(this);var Ye=this.internal.__cell__.lastCell,ft=this.internal.__cell__.padding,Pt=this.internal.__cell__.margins||z,Jt=this.internal.__cell__.tableHeaderRow,At=this.internal.__cell__.printHeaders;return Ye.lineNumber!==void 0&&(Ye.lineNumber===Ge.lineNumber?(Ge.x=(Ye.x||0)+(Ye.width||0),Ge.y=Ye.y||0):Ye.y+Ye.height+Ge.height+Pt.bottom>this.getPageHeight()?(this.cellAddPage(),Ge.y=Pt.top,At&&Jt&&(this.printHeaderRow(Ge.lineNumber,!0),Ge.y+=Jt[0].height)):Ge.y=Ye.y+Ye.height||Ge.y),Ge.text[0]!==void 0&&(this.rect(Ge.x,Ge.y,Ge.width,Ge.height,E===!0?"FD":void 0),Ge.align==="right"?this.text(Ge.text,Ge.x+Ge.width-ft,Ge.y+ft,{align:"right",baseline:"top"}):Ge.align==="center"?this.text(Ge.text,Ge.x+Ge.width/2,Ge.y+ft,{align:"center",baseline:"top",maxWidth:Ge.width-ft-ft}):this.text(Ge.text,Ge.x+ft,Ge.y+ft,{align:"left",baseline:"top",maxWidth:Ge.width-ft-ft})),this.internal.__cell__.lastCell=Ge,this};y.table=function(Ge,Ye,ft,Pt,Jt){if(re.call(this),!ft)throw new Error("No data for PDF table.");var At,In,Cn,On,An=[],wr=[],ur=[],Gn={},ui={},Ri=[],Ii=[],Nr=(Jt=Jt||{}).autoSize||!1,Xn=Jt.printHeaders!==!1,Vr=Jt.css&&Jt.css["font-size"]!==void 0?16*Jt.css["font-size"]:Jt.fontSize||12,ln=Jt.margins||Object.assign({width:this.getPageWidth()},z),Dn=typeof Jt.padding=="number"?Jt.padding:3,gr=Jt.headerBackgroundColor||"#c8c8c8",dr=Jt.headerTextColor||"#000";if(ce.call(this),this.internal.__cell__.printHeaders=Xn,this.internal.__cell__.margins=ln,this.internal.__cell__.table_font_size=Vr,this.internal.__cell__.padding=Dn,this.internal.__cell__.headerBackgroundColor=gr,this.internal.__cell__.headerTextColor=dr,this.setFontSize(Vr),Pt==null)wr=An=Object.keys(ft[0]),ur=An.map(function(){return"left"});else if(Array.isArray(Pt)&&(0,x.Z)(Pt[0])==="object")for(An=Pt.map(function(Do){return Do.name}),wr=Pt.map(function(Do){return Do.prompt||Do.name||""}),ur=Pt.map(function(Do){return Do.align||"left"}),At=0;At<Pt.length;At+=1)ui[Pt[At].name]=.7499990551181103*Pt[At].width;else Array.isArray(Pt)&&typeof Pt[0]=="string"&&(wr=An=Pt,ur=An.map(function(){return"left"}));if(Nr||Array.isArray(Pt)&&typeof Pt[0]=="string")for(At=0;At<An.length;At+=1){for(Gn[On=An[At]]=ft.map(function(Do){return Do[On]}),this.setFont(void 0,"bold"),Ri.push(this.getTextDimensions(wr[At],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),In=Gn[On],this.setFont(void 0,"normal"),Cn=0;Cn<In.length;Cn+=1)Ri.push(this.getTextDimensions(In[Cn],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);ui[On]=Math.max.apply(null,Ri)+Dn+Dn,Ri=[]}if(Xn){var mi={};for(At=0;At<An.length;At+=1)mi[An[At]]={},mi[An[At]].text=wr[At],mi[An[At]].align=ur[At];var Si=Pe.call(this,mi,ui);Ii=An.map(function(Do){return new fe(Ge,Ye,ui[Do],Si,mi[Do].text,void 0,mi[Do].align)}),this.setTableHeaderRow(Ii),this.printHeaderRow(1,!1)}var Ni=Pt.reduce(function(Do,ro){return Do[ro.name]=ro.align,Do},{});for(At=0;At<ft.length;At+=1){"rowStart"in Jt&&Jt.rowStart instanceof Function&&Jt.rowStart({row:At,data:ft[At]},this);var ai=Pe.call(this,ft[At],ui);for(Cn=0;Cn<An.length;Cn+=1){var Di=ft[At][An[Cn]];"cellStart"in Jt&&Jt.cellStart instanceof Function&&Jt.cellStart({row:At,col:Cn,data:Di},this),$e.call(this,new fe(Ge,Ye,ui[An[Cn]],ai,Di,At+2,Ni[An[Cn]]))}}return this.internal.__cell__.table_x=Ge,this.internal.__cell__.table_y=Ye,this};var Pe=function(Ge,Ye){var ft=this.internal.__cell__.padding,Pt=this.internal.__cell__.table_font_size,Jt=this.internal.scaleFactor;return Object.keys(Ge).map(function(At){var In=Ge[At];return this.splitTextToSize(In.hasOwnProperty("text")?In.text:In,Ye[At]-ft-ft)},this).map(function(At){return this.getLineHeightFactor()*At.length*Pt/Jt+ft+ft},this).reduce(function(At,In){return Math.max(At,In)},0)};y.setTableHeaderRow=function(Ge){re.call(this),this.internal.__cell__.tableHeaderRow=Ge},y.printHeaderRow=function(Ge,Ye){if(re.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var ft;if(E=!0,typeof this.internal.__cell__.headerFunction=="function"){var Pt=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new fe(Pt[0],Pt[1],Pt[2],Pt[3],void 0,-1)}this.setFont(void 0,"bold");for(var Jt=[],At=0;At<this.internal.__cell__.tableHeaderRow.length;At+=1){ft=this.internal.__cell__.tableHeaderRow[At].clone(),Ye&&(ft.y=this.internal.__cell__.margins.top||0,Jt.push(ft)),ft.lineNumber=Ge;var In=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),$e.call(this,ft),this.setTextColor(In)}Jt.length>0&&this.setTableHeaderRow(Jt),this.setFont(void 0,"normal"),E=!1}}(La.API);var Sc={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},sf=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Jc=Vl(sf),aA=[100,200,300,400,500,600,700,800,900],hh=Vl(aA);function qA(y){var z=y.family.replace(/"|'/g,"").toLowerCase(),E=function(fe){return Sc[fe=fe||"normal"]?fe:"normal"}(y.style),re=function(fe){return fe?typeof fe=="number"?fe>=100&&fe<=900&&fe%100==0?fe:400:/^\d00$/.test(fe)?parseInt(fe):fe==="bold"?700:400:400}(y.weight),ce=function(fe){return typeof Jc[fe=fe||"normal"]=="number"?fe:"normal"}(y.stretch);return{family:z,style:E,weight:re,stretch:ce,src:y.src||[],ref:y.ref||{name:z,style:[ce,E,re].join(" ")}}}function lf(y,z,E,re){var ce;for(ce=E;ce>=0&&ce<z.length;ce+=re)if(y[z[ce]])return y[z[ce]];for(ce=E;ce>=0&&ce<z.length;ce-=re)if(y[z[ce]])return y[z[ce]]}var ph={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Rf={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Rd(y){return[y.stretch,y.style,y.weight,y.family].join(" ")}function jf(y){return y.trimLeft()}function uf(y,z){for(var E=0;E<y.length;){if(y.charAt(E)===z)return[y.substring(0,E),y.substring(E+1)];E+=1}return null}function $h(y){var z=y.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return z===null?null:[z[0],y.substring(z[0].length)]}var Qf,I0,L0,nm,rg,_0,N0,O0,$g=["times"];function D0(y,z,E,re,ce){var fe=4,$e=T0;switch(ce){case La.API.image_compression.FAST:fe=1,$e=P0;break;case La.API.image_compression.MEDIUM:fe=6,$e=k0;break;case La.API.image_compression.SLOW:fe=9,$e=M0}y=function(Ge,Ye,ft,Pt){for(var Jt,At=Ge.length/Ye,In=new Uint8Array(Ge.length+At),Cn=[Dv,P0,T0,k0,M0],On=0;On<At;On+=1){var An=On*Ye,wr=Ge.subarray(An,An+Ye);if(Pt)In.set(Pt(wr,ft,Jt),An+On);else{for(var ur=Cn.length,Gn=[],ui=0;ui<ur;ui+=1)Gn[ui]=Cn[ui](wr,ft,Jt);var Ri=Tv(Gn.concat());In.set(Gn[Ri],An+On)}Jt=wr}return In}(y,z,Math.ceil(E*re/8),$e);var Pe=Ai(y,{level:fe});return La.API.__addimage__.arrayBufferToBinaryString(Pe)}function Dv(y){var z=Array.apply([],y);return z.unshift(0),z}function P0(y,z){var E=y.length,re=[];re[0]=1;for(var ce=0;ce<E;ce+=1){var fe=y[ce-z]||0;re[ce+1]=y[ce]-fe+256&255}return re}function T0(y,z,E){var re=y.length,ce=[];ce[0]=2;for(var fe=0;fe<re;fe+=1){var $e=E&&E[fe]||0;ce[fe+1]=y[fe]-$e+256&255}return ce}function k0(y,z,E){var re=y.length,ce=[];ce[0]=3;for(var fe=0;fe<re;fe+=1){var $e=y[fe-z]||0,Pe=E&&E[fe]||0;ce[fe+1]=y[fe]+256-($e+Pe>>>1)&255}return ce}function M0(y,z,E){var re=y.length,ce=[];ce[0]=4;for(var fe=0;fe<re;fe+=1){var $e=Pv(y[fe-z]||0,E&&E[fe]||0,E&&E[fe-z]||0);ce[fe+1]=y[fe]-$e+256&255}return ce}function Pv(y,z,E){if(y===z&&z===E)return y;var re=Math.abs(z-E),ce=Math.abs(y-E),fe=Math.abs(y+z-E-E);return re<=ce&&re<=fe?y:ce<=fe?z:E}function Tv(y){var z=y.map(function(E){return E.reduce(function(re,ce){return re+Math.abs(ce)},0)});return z.indexOf(Math.min.apply(null,z))}function Zg(y,z,E){var re=z*E,ce=Math.floor(re/8),fe=16-(re-8*ce+E),$e=(1<<E)-1;return R0(y,ce)>>fe&$e}function U0(y,z,E,re){var ce=E*re,fe=Math.floor(ce/8),$e=16-(ce-8*fe+re),Pe=(1<<re)-1,Ge=(z&Pe)<<$e;(function(Ye,ft,Pt){if(ft+1<Ye.byteLength)Ye.setUint16(ft,Pt,!1);else{var Jt=Pt>>8&255;Ye.setUint8(ft,Jt)}})(y,fe,R0(y,fe)&~(Pe<<$e)&65535|Ge)}function R0(y,z){return z+1<y.byteLength?y.getUint16(z,!1):y.getUint8(z)<<8}function kv(y){var z=0;if(y[z++]!==71||y[z++]!==73||y[z++]!==70||y[z++]!==56||(y[z++]+1&253)!=56||y[z++]!==97)throw new Error("Invalid GIF 87a/89a header.");var E=y[z++]|y[z++]<<8,re=y[z++]|y[z++]<<8,ce=y[z++],fe=ce>>7,$e=1<<1+(7&ce);y[z++],y[z++];var Pe=null,Ge=null;fe&&(Pe=z,Ge=$e,z+=3*$e);var Ye=!0,ft=[],Pt=0,Jt=null,At=0,In=null;for(this.width=E,this.height=re;Ye&&z<y.length;)switch(y[z++]){case 33:switch(y[z++]){case 255:if(y[z]!==11||y[z+1]==78&&y[z+2]==69&&y[z+3]==84&&y[z+4]==83&&y[z+5]==67&&y[z+6]==65&&y[z+7]==80&&y[z+8]==69&&y[z+9]==50&&y[z+10]==46&&y[z+11]==48&&y[z+12]==3&&y[z+13]==1&&y[z+16]==0)z+=14,In=y[z++]|y[z++]<<8,z++;else for(z+=12;;){if(!((ln=y[z++])>=0))throw Error("Invalid block size");if(ln===0)break;z+=ln}break;case 249:if(y[z++]!==4||y[z+4]!==0)throw new Error("Invalid graphics extension block.");var Cn=y[z++];Pt=y[z++]|y[z++]<<8,Jt=y[z++],1&Cn||(Jt=null),At=Cn>>2&7,z++;break;case 254:for(;;){if(!((ln=y[z++])>=0))throw Error("Invalid block size");if(ln===0)break;z+=ln}break;default:throw new Error("Unknown graphic control label: 0x"+y[z-1].toString(16))}break;case 44:var On=y[z++]|y[z++]<<8,An=y[z++]|y[z++]<<8,wr=y[z++]|y[z++]<<8,ur=y[z++]|y[z++]<<8,Gn=y[z++],ui=Gn>>6&1,Ri=1<<1+(7&Gn),Ii=Pe,Nr=Ge,Xn=!1;Gn>>7&&(Xn=!0,Ii=z,Nr=Ri,z+=3*Ri);var Vr=z;for(z++;;){var ln;if(!((ln=y[z++])>=0))throw Error("Invalid block size");if(ln===0)break;z+=ln}ft.push({x:On,y:An,width:wr,height:ur,has_local_palette:Xn,palette_offset:Ii,palette_size:Nr,data_offset:Vr,data_length:z-Vr,transparent_index:Jt,interlaced:!!ui,delay:Pt,disposal:At});break;case 59:Ye=!1;break;default:throw new Error("Unknown gif block: 0x"+y[z-1].toString(16))}this.numFrames=function(){return ft.length},this.loopCount=function(){return In},this.frameInfo=function(Dn){if(Dn<0||Dn>=ft.length)throw new Error("Frame index out of range.");return ft[Dn]},this.decodeAndBlitFrameBGRA=function(Dn,gr){var dr=this.frameInfo(Dn),mi=dr.width*dr.height,Si=new Uint8Array(mi);j0(y,dr.data_offset,Si,mi);var Ni=dr.palette_offset,ai=dr.transparent_index;ai===null&&(ai=256);var Di=dr.width,Do=E-Di,ro=Di,nn=4*(dr.y*E+dr.x),Kn=4*((dr.y+dr.height)*E+dr.x),ir=nn,Cr=4*Do;dr.interlaced===!0&&(Cr+=4*E*7);for(var Rr=8,ei=0,Li=Si.length;ei<Li;++ei){var Oi=Si[ei];if(ro===0&&(ro=Di,(ir+=Cr)>=Kn&&(Cr=4*Do+4*E*(Rr-1),ir=nn+(Di+Do)*(Rr<<1),Rr>>=1)),Oi===ai)ir+=4;else{var Vi=y[Ni+3*Oi],xo=y[Ni+3*Oi+1],ca=y[Ni+3*Oi+2];gr[ir++]=ca,gr[ir++]=xo,gr[ir++]=Vi,gr[ir++]=255}--ro}},this.decodeAndBlitFrameRGBA=function(Dn,gr){var dr=this.frameInfo(Dn),mi=dr.width*dr.height,Si=new Uint8Array(mi);j0(y,dr.data_offset,Si,mi);var Ni=dr.palette_offset,ai=dr.transparent_index;ai===null&&(ai=256);var Di=dr.width,Do=E-Di,ro=Di,nn=4*(dr.y*E+dr.x),Kn=4*((dr.y+dr.height)*E+dr.x),ir=nn,Cr=4*Do;dr.interlaced===!0&&(Cr+=4*E*7);for(var Rr=8,ei=0,Li=Si.length;ei<Li;++ei){var Oi=Si[ei];if(ro===0&&(ro=Di,(ir+=Cr)>=Kn&&(Cr=4*Do+4*E*(Rr-1),ir=nn+(Di+Do)*(Rr<<1),Rr>>=1)),Oi===ai)ir+=4;else{var Vi=y[Ni+3*Oi],xo=y[Ni+3*Oi+1],ca=y[Ni+3*Oi+2];gr[ir++]=Vi,gr[ir++]=xo,gr[ir++]=ca,gr[ir++]=255}--ro}}}function j0(y,z,E,re){for(var ce=y[z++],fe=1<<ce,$e=fe+1,Pe=$e+1,Ge=ce+1,Ye=(1<<Ge)-1,ft=0,Pt=0,Jt=0,At=y[z++],In=new Int32Array(4096),Cn=null;;){for(;ft<16&&At!==0;)Pt|=y[z++]<<ft,ft+=8,At===1?At=y[z++]:--At;if(ft<Ge)break;var On=Pt&Ye;if(Pt>>=Ge,ft-=Ge,On!==fe){if(On===$e)break;for(var An=On<Pe?On:Cn,wr=0,ur=An;ur>fe;)ur=In[ur]>>8,++wr;var Gn=ur;if(Jt+wr+(An!==On?1:0)>re)return void hl.log("Warning, gif stream longer than expected.");E[Jt++]=Gn;var ui=Jt+=wr;for(An!==On&&(E[Jt++]=Gn),ur=An;wr--;)ur=In[ur],E[--ui]=255&ur,ur>>=8;Cn!==null&&Pe<4096&&(In[Pe++]=Cn<<8|Gn,Pe>=Ye+1&&Ge<12&&(++Ge,Ye=Ye<<1|1)),Cn=On}else Pe=$e+1,Ye=(1<<(Ge=ce+1))-1,Cn=null}return Jt!==re&&hl.log("Warning, gif stream shorter than expected."),E}function Wg(y){var z,E,re,ce,fe,$e=Math.floor,Pe=new Array(64),Ge=new Array(64),Ye=new Array(64),ft=new Array(64),Pt=new Array(65535),Jt=new Array(65535),At=new Array(64),In=new Array(64),Cn=[],On=0,An=7,wr=new Array(64),ur=new Array(64),Gn=new Array(64),ui=new Array(256),Ri=new Array(2048),Ii=[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],Nr=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Xn=[0,1,2,3,4,5,6,7,8,9,10,11],Vr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],ln=[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],Dn=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],gr=[0,1,2,3,4,5,6,7,8,9,10,11],dr=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],mi=[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 Si(nn,Kn){for(var ir=0,Cr=0,Rr=new Array,ei=1;ei<=16;ei++){for(var Li=1;Li<=nn[ei];Li++)Rr[Kn[Cr]]=[],Rr[Kn[Cr]][0]=ir,Rr[Kn[Cr]][1]=ei,Cr++,ir++;ir*=2}return Rr}function Ni(nn){for(var Kn=nn[0],ir=nn[1]-1;ir>=0;)Kn&1<<ir&&(On|=1<<An),ir--,--An<0&&(On==255?(ai(255),ai(0)):ai(On),An=7,On=0)}function ai(nn){Cn.push(nn)}function Di(nn){ai(nn>>8&255),ai(255&nn)}function Do(nn,Kn,ir,Cr,Rr){for(var ei,Li=Rr[0],Oi=Rr[240],Vi=function(mo,os){var Ba,ts,Va,iu,gl,Ds,Bl,vl,Ta,Us,Qa=0;for(Ta=0;Ta<8;++Ta){Ba=mo[Qa],ts=mo[Qa+1],Va=mo[Qa+2],iu=mo[Qa+3],gl=mo[Qa+4],Ds=mo[Qa+5],Bl=mo[Qa+6];var yc=Ba+(vl=mo[Qa+7]),Ol=Ba-vl,el=ts+Bl,tl=ts-Bl,$u=Va+Ds,Ya=Va-Ds,Su=iu+gl,ds=iu-gl,Ps=yc+Su,Zu=yc-Su,sl=el+$u,us=el-$u;mo[Qa]=Ps+sl,mo[Qa+4]=Ps-sl;var ou=.707106781*(us+Zu);mo[Qa+2]=Zu+ou,mo[Qa+6]=Zu-ou;var Sp=.382683433*((Ps=ds+Ya)-(us=tl+Ol)),LA=.5411961*Ps+Sp,mh=1.306562965*us+Sp,zf=.707106781*(sl=Ya+tl),cs=Ol+zf,gh=Ol-zf;mo[Qa+5]=gh+LA,mo[Qa+3]=gh-LA,mo[Qa+1]=cs+mh,mo[Qa+7]=cs-mh,Qa+=8}for(Qa=0,Ta=0;Ta<8;++Ta){Ba=mo[Qa],ts=mo[Qa+8],Va=mo[Qa+16],iu=mo[Qa+24],gl=mo[Qa+32],Ds=mo[Qa+40],Bl=mo[Qa+48];var vh=Ba+(vl=mo[Qa+56]),jd=Ba-vl,Qd=ts+Bl,Ac=ts-Bl,qc=Va+Ds,sA=Va-Ds,Fp=iu+gl,Wh=iu-gl,df=vh+Fp,Kf=vh-Fp,ff=Qd+qc,hf=Qd-qc;mo[Qa]=df+ff,mo[Qa+32]=df-ff;var Hd=.707106781*(hf+Kf);mo[Qa+16]=Kf+Hd,mo[Qa+48]=Kf-Hd;var Ip=.382683433*((df=Wh+sA)-(hf=Ac+jd)),$f=.5411961*df+Ip,Lp=1.306562965*hf+Ip,rm=.707106781*(ff=sA+Ac),im=jd+rm,om=jd-rm;mo[Qa+40]=om+$f,mo[Qa+24]=om-$f,mo[Qa+8]=im+Lp,mo[Qa+56]=im-Lp,Qa++}for(Ta=0;Ta<64;++Ta)Us=mo[Ta]*os[Ta],At[Ta]=Us>0?Us+.5|0:Us-.5|0;return At}(nn,Kn),xo=0;xo<64;++xo)In[Ii[xo]]=Vi[xo];var ca=In[0]-ir;ir=In[0],ca==0?Ni(Cr[0]):(Ni(Cr[Jt[ei=32767+ca]]),Ni(Pt[ei]));for(var la=63;la>0&&In[la]==0;)la--;if(la==0)return Ni(Li),ir;for(var Wa,Pn=1;Pn<=la;){for(var Aa=Pn;In[Pn]==0&&Pn<=la;)++Pn;var Js=Pn-Aa;if(Js>=16){Wa=Js>>4;for(var is=1;is<=Wa;++is)Ni(Oi);Js&=15}ei=32767+In[Pn],Ni(Rr[(Js<<4)+Jt[ei]]),Ni(Pt[ei]),Pn++}return la!=63&&Ni(Li),ir}function ro(nn){nn=Math.min(Math.max(nn,1),100),fe!=nn&&(function(Kn){for(var ir=[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],Cr=0;Cr<64;Cr++){var Rr=$e((ir[Cr]*Kn+50)/100);Rr=Math.min(Math.max(Rr,1),255),Pe[Ii[Cr]]=Rr}for(var ei=[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],Li=0;Li<64;Li++){var Oi=$e((ei[Li]*Kn+50)/100);Oi=Math.min(Math.max(Oi,1),255),Ge[Ii[Li]]=Oi}for(var Vi=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],xo=0,ca=0;ca<8;ca++)for(var la=0;la<8;la++)Ye[xo]=1/(Pe[Ii[xo]]*Vi[ca]*Vi[la]*8),ft[xo]=1/(Ge[Ii[xo]]*Vi[ca]*Vi[la]*8),xo++}(nn<50?Math.floor(5e3/nn):Math.floor(200-2*nn)),fe=nn)}this.encode=function(nn,Kn){Kn&&ro(Kn),Cn=new Array,On=0,An=7,Di(65496),Di(65504),Di(16),ai(74),ai(70),ai(73),ai(70),ai(0),ai(1),ai(1),ai(0),Di(1),Di(1),ai(0),ai(0),function(){Di(65499),Di(132),ai(0);for(var ts=0;ts<64;ts++)ai(Pe[ts]);ai(1);for(var Va=0;Va<64;Va++)ai(Ge[Va])}(),function(ts,Va){Di(65472),Di(17),ai(8),Di(Va),Di(ts),ai(3),ai(1),ai(17),ai(0),ai(2),ai(17),ai(1),ai(3),ai(17),ai(1)}(nn.width,nn.height),function(){Di(65476),Di(418),ai(0);for(var ts=0;ts<16;ts++)ai(Nr[ts+1]);for(var Va=0;Va<=11;Va++)ai(Xn[Va]);ai(16);for(var iu=0;iu<16;iu++)ai(Vr[iu+1]);for(var gl=0;gl<=161;gl++)ai(ln[gl]);ai(1);for(var Ds=0;Ds<16;Ds++)ai(Dn[Ds+1]);for(var Bl=0;Bl<=11;Bl++)ai(gr[Bl]);ai(17);for(var vl=0;vl<16;vl++)ai(dr[vl+1]);for(var Ta=0;Ta<=161;Ta++)ai(mi[Ta])}(),Di(65498),Di(12),ai(3),ai(1),ai(0),ai(2),ai(17),ai(3),ai(17),ai(0),ai(63),ai(0);var ir=0,Cr=0,Rr=0;On=0,An=7,this.encode.displayName="_encode_";for(var ei,Li,Oi,Vi,xo,ca,la,Wa,Pn,Aa=nn.data,Js=nn.width,is=nn.height,mo=4*Js,os=0;os<is;){for(ei=0;ei<mo;){for(xo=mo*os+ei,la=-1,Wa=0,Pn=0;Pn<64;Pn++)ca=xo+(Wa=Pn>>3)*mo+(la=4*(7&Pn)),os+Wa>=is&&(ca-=mo*(os+1+Wa-is)),ei+la>=mo&&(ca-=ei+la-mo+4),Li=Aa[ca++],Oi=Aa[ca++],Vi=Aa[ca++],wr[Pn]=(Ri[Li]+Ri[Oi+256|0]+Ri[Vi+512|0]>>16)-128,ur[Pn]=(Ri[Li+768|0]+Ri[Oi+1024|0]+Ri[Vi+1280|0]>>16)-128,Gn[Pn]=(Ri[Li+1280|0]+Ri[Oi+1536|0]+Ri[Vi+1792|0]>>16)-128;ir=Do(wr,Ye,ir,z,re),Cr=Do(ur,ft,Cr,E,ce),Rr=Do(Gn,ft,Rr,E,ce),ei+=32}os+=8}if(An>=0){var Ba=[];Ba[1]=An+1,Ba[0]=(1<<An+1)-1,Ni(Ba)}return Di(65497),new Uint8Array(Cn)},y=y||50,function(){for(var nn=String.fromCharCode,Kn=0;Kn<256;Kn++)ui[Kn]=nn(Kn)}(),z=Si(Nr,Xn),E=Si(Dn,gr),re=Si(Vr,ln),ce=Si(dr,mi),function(){for(var nn=1,Kn=2,ir=1;ir<=15;ir++){for(var Cr=nn;Cr<Kn;Cr++)Jt[32767+Cr]=ir,Pt[32767+Cr]=[],Pt[32767+Cr][1]=ir,Pt[32767+Cr][0]=Cr;for(var Rr=-(Kn-1);Rr<=-nn;Rr++)Jt[32767+Rr]=ir,Pt[32767+Rr]=[],Pt[32767+Rr][1]=ir,Pt[32767+Rr][0]=Kn-1+Rr;nn<<=1,Kn<<=1}}(),function(){for(var nn=0;nn<256;nn++)Ri[nn]=19595*nn,Ri[nn+256|0]=38470*nn,Ri[nn+512|0]=7471*nn+32768,Ri[nn+768|0]=-11059*nn,Ri[nn+1024|0]=-21709*nn,Ri[nn+1280|0]=32768*nn+8421375,Ri[nn+1536|0]=-27439*nn,Ri[nn+1792|0]=-5329*nn}(),ro(y)}function cf(y,z){if(this.pos=0,this.buffer=y,this.datav=new DataView(y.buffer),this.is_with_alpha=!!z,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 Q0(y){function z(Xn){if(!Xn)throw Error("assert :P")}function E(Xn,Vr,ln){for(var Dn=0;4>Dn;Dn++)if(Xn[Vr+Dn]!=ln.charCodeAt(Dn))return!0;return!1}function re(Xn,Vr,ln,Dn,gr){for(var dr=0;dr<gr;dr++)Xn[Vr+dr]=ln[Dn+dr]}function ce(Xn,Vr,ln,Dn){for(var gr=0;gr<Dn;gr++)Xn[Vr+gr]=ln}function fe(Xn){return new Int32Array(Xn)}function $e(Xn,Vr){for(var ln=[],Dn=0;Dn<Xn;Dn++)ln.push(new Vr);return ln}function Pe(Xn,Vr){var ln=[];return function Dn(gr,dr,mi){for(var Si=mi[dr],Ni=0;Ni<Si&&(gr.push(mi.length>dr+1?[]:new Vr),!(mi.length<dr+1));Ni++)Dn(gr[Ni],dr+1,mi)}(ln,0,Xn),ln}var Ge=function(){var Xn=this;function Vr(me,Fe){for(var rt=1<<Fe-1>>>0;me&rt;)rt>>>=1;return rt?(me&rt-1)+rt:me}function ln(me,Fe,rt,xt,Ht){z(!(xt%rt));do me[Fe+(xt-=rt)]=Ht;while(0<xt)}function Dn(me,Fe,rt,xt,Ht){if(z(2328>=Ht),512>=Ht)var qt=fe(512);else if((qt=fe(Ht))==null)return 0;return function(tn,hn,bn,Mn,Fr,si){var Un,Mr,Xr=hn,Mi=1<<bn,ii=fe(16),Qi=fe(16);for(z(Fr!=0),z(Mn!=null),z(tn!=null),z(0<bn),Mr=0;Mr<Fr;++Mr){if(15<Mn[Mr])return 0;++ii[Mn[Mr]]}if(ii[0]==Fr)return 0;for(Qi[1]=0,Un=1;15>Un;++Un){if(ii[Un]>1<<Un)return 0;Qi[Un+1]=Qi[Un]+ii[Un]}for(Mr=0;Mr<Fr;++Mr)Un=Mn[Mr],0<Mn[Mr]&&(si[Qi[Un]++]=Mr);if(Qi[15]==1)return(Mn=new gr).g=0,Mn.value=si[0],ln(tn,Xr,1,Mi,Mn),Mi;var Wi,yo=-1,ao=Mi-1,ja=0,xa=1,$s=1,_a=1<<bn;for(Mr=0,Un=1,Fr=2;Un<=bn;++Un,Fr<<=1){if(xa+=$s<<=1,0>($s-=ii[Un]))return 0;for(;0<ii[Un];--ii[Un])(Mn=new gr).g=Un,Mn.value=si[Mr++],ln(tn,Xr+ja,Fr,_a,Mn),ja=Vr(ja,Un)}for(Un=bn+1,Fr=2;15>=Un;++Un,Fr<<=1){if(xa+=$s<<=1,0>($s-=ii[Un]))return 0;for(;0<ii[Un];--ii[Un]){if(Mn=new gr,(ja&ao)!=yo){for(Xr+=_a,Wi=1<<(yo=Un)-bn;15>yo&&!(0>=(Wi-=ii[yo]));)++yo,Wi<<=1;Mi+=_a=1<<(Wi=yo-bn),tn[hn+(yo=ja&ao)].g=Wi+bn,tn[hn+yo].value=Xr-hn-yo}Mn.g=Un-bn,Mn.value=si[Mr++],ln(tn,Xr+(ja>>bn),Fr,_a,Mn),ja=Vr(ja,Un)}}return xa!=2*Qi[15]-1?0:Mi}(me,Fe,rt,xt,Ht,qt)}function gr(){this.value=this.g=0}function dr(){this.value=this.g=0}function mi(){this.G=$e(5,gr),this.H=fe(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=$e(jp,dr)}function Si(me,Fe,rt,xt){z(me!=null),z(Fe!=null),z(2147483648>xt),me.Ca=254,me.I=0,me.b=-8,me.Ka=0,me.oa=Fe,me.pa=rt,me.Jd=Fe,me.Yc=rt+xt,me.Zc=4<=xt?rt+xt-4+1:rt,Li(me)}function Ni(me,Fe){for(var rt=0;0<Fe--;)rt|=Vi(me,128)<<Fe;return rt}function ai(me,Fe){var rt=Ni(me,Fe);return Oi(me)?-rt:rt}function Di(me,Fe,rt,xt){var Ht,qt=0;for(z(me!=null),z(Fe!=null),z(4294967288>xt),me.Sb=xt,me.Ra=0,me.u=0,me.h=0,4<xt&&(xt=4),Ht=0;Ht<xt;++Ht)qt+=Fe[rt+Ht]<<8*Ht;me.Ra=qt,me.bb=xt,me.oa=Fe,me.pa=rt}function Do(me){for(;8<=me.u&&me.bb<me.Sb;)me.Ra>>>=8,me.Ra+=me.oa[me.pa+me.bb]<<Yh-8>>>0,++me.bb,me.u-=8;Cr(me)&&(me.h=1,me.u=0)}function ro(me,Fe){if(z(0<=Fe),!me.h&&Fe<=vd){var rt=ir(me)&gd[Fe];return me.u+=Fe,Do(me),rt}return me.h=1,me.u=0}function nn(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Kn(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function ir(me){return me.Ra>>>(me.u&Yh-1)>>>0}function Cr(me){return z(me.bb<=me.Sb),me.h||me.bb==me.Sb&&me.u>Yh}function Rr(me,Fe){me.u=Fe,me.h=Cr(me)}function ei(me){me.u>=Lh&&(z(me.u>=Lh),Do(me))}function Li(me){z(me!=null&&me.oa!=null),me.pa<me.Zc?(me.I=(me.oa[me.pa++]|me.I<<8)>>>0,me.b+=8):(z(me!=null&&me.oa!=null),me.pa<me.Yc?(me.b+=8,me.I=me.oa[me.pa++]|me.I<<8):me.Ka?me.b=0:(me.I<<=8,me.b+=8,me.Ka=1))}function Oi(me){return Ni(me,1)}function Vi(me,Fe){var rt=me.Ca;0>me.b&&Li(me);var xt=me.b,Ht=rt*Fe>>>8,qt=(me.I>>>xt>Ht)+0;for(qt?(rt-=Ht,me.I-=Ht+1<<xt>>>0):rt=Ht+1,xt=rt,Ht=0;256<=xt;)Ht+=8,xt>>=8;return xt=7^Ht+Jh[xt],me.b-=xt,me.Ca=(rt<<xt)-1,qt}function xo(me,Fe,rt){me[Fe+0]=rt>>24&255,me[Fe+1]=rt>>16&255,me[Fe+2]=rt>>8&255,me[Fe+3]=255&rt}function ca(me,Fe){return me[Fe+0]|me[Fe+1]<<8}function la(me,Fe){return ca(me,Fe)|me[Fe+2]<<16}function Wa(me,Fe){return ca(me,Fe)|ca(me,Fe+2)<<16}function Pn(me,Fe){var rt=1<<Fe;return z(me!=null),z(0<Fe),me.X=fe(rt),me.X==null?0:(me.Mb=32-Fe,me.Xa=Fe,1)}function Aa(me,Fe){z(me!=null),z(Fe!=null),z(me.Xa==Fe.Xa),re(Fe.X,0,me.X,0,1<<Fe.Xa)}function Js(){this.X=[],this.Xa=this.Mb=0}function is(me,Fe,rt,xt){z(rt!=null),z(xt!=null);var Ht=rt[0],qt=xt[0];return Ht==0&&(Ht=(me*qt+Fe/2)/Fe),qt==0&&(qt=(Fe*Ht+me/2)/me),0>=Ht||0>=qt?0:(rt[0]=Ht,xt[0]=qt,1)}function mo(me,Fe){return me+(1<<Fe)-1>>>Fe}function os(me,Fe){return((4278255360&me)+(4278255360&Fe)>>>0&4278255360)+((16711935&me)+(16711935&Fe)>>>0&16711935)>>>0}function Ba(me,Fe){Xn[Fe]=function(rt,xt,Ht,qt,tn,hn,bn){var Mn;for(Mn=0;Mn<tn;++Mn){var Fr=Xn[me](hn[bn+Mn-1],Ht,qt+Mn);hn[bn+Mn]=os(rt[xt+Mn],Fr)}}}function ts(){this.ud=this.hd=this.jd=0}function Va(me,Fe){return((4278124286&(me^Fe))>>>1)+(me&Fe)>>>0}function iu(me){return 0<=me&&256>me?me:0>me?0:255<me?255:void 0}function gl(me,Fe){return iu(me+(me-Fe+.5>>1))}function Ds(me,Fe,rt){return Math.abs(Fe-rt)-Math.abs(me-rt)}function Bl(me,Fe,rt,xt,Ht,qt,tn){for(xt=qt[tn-1],rt=0;rt<Ht;++rt)qt[tn+rt]=xt=os(me[Fe+rt],xt)}function vl(me,Fe,rt,xt,Ht){var qt;for(qt=0;qt<rt;++qt){var tn=me[Fe+qt],hn=tn>>8&255,bn=16711935&(bn=(bn=16711935&tn)+((hn<<16)+hn));xt[Ht+qt]=(4278255360&tn)+bn>>>0}}function Ta(me,Fe){Fe.jd=255&me,Fe.hd=me>>8&255,Fe.ud=me>>16&255}function Us(me,Fe,rt,xt,Ht,qt){var tn;for(tn=0;tn<xt;++tn){var hn=Fe[rt+tn],bn=hn>>>8,Mn=hn,Fr=255&(Fr=(Fr=hn>>>16)+((me.jd<<24>>24)*(bn<<24>>24)>>>5));Mn=255&(Mn=(Mn+=(me.hd<<24>>24)*(bn<<24>>24)>>>5)+((me.ud<<24>>24)*(Fr<<24>>24)>>>5)),Ht[qt+tn]=(4278255360&hn)+(Fr<<16)+Mn}}function Qa(me,Fe,rt,xt,Ht){Xn[Fe]=function(qt,tn,hn,bn,Mn,Fr,si,Un,Mr){for(bn=si;bn<Un;++bn)for(si=0;si<Mr;++si)Mn[Fr++]=Ht(hn[xt(qt[tn++])])},Xn[me]=function(qt,tn,hn,bn,Mn,Fr,si){var Un=8>>qt.b,Mr=qt.Ea,Xr=qt.K[0],Mi=qt.w;if(8>Un)for(qt=(1<<qt.b)-1,Mi=(1<<Un)-1;tn<hn;++tn){var ii,Qi=0;for(ii=0;ii<Mr;++ii)ii&qt||(Qi=xt(bn[Mn++])),Fr[si++]=Ht(Xr[Qi&Mi]),Qi>>=Un}else Xn["VP8LMapColor"+rt](bn,Mn,Xr,Mi,Fr,si,tn,hn,Mr)}}function yc(me,Fe,rt,xt,Ht){for(rt=Fe+rt;Fe<rt;){var qt=me[Fe++];xt[Ht++]=qt>>16&255,xt[Ht++]=qt>>8&255,xt[Ht++]=255&qt}}function Ol(me,Fe,rt,xt,Ht){for(rt=Fe+rt;Fe<rt;){var qt=me[Fe++];xt[Ht++]=qt>>16&255,xt[Ht++]=qt>>8&255,xt[Ht++]=255&qt,xt[Ht++]=qt>>24&255}}function el(me,Fe,rt,xt,Ht){for(rt=Fe+rt;Fe<rt;){var qt=(tn=me[Fe++])>>16&240|tn>>12&15,tn=240&tn|tn>>28&15;xt[Ht++]=qt,xt[Ht++]=tn}}function tl(me,Fe,rt,xt,Ht){for(rt=Fe+rt;Fe<rt;){var qt=(tn=me[Fe++])>>16&248|tn>>13&7,tn=tn>>5&224|tn>>3&31;xt[Ht++]=qt,xt[Ht++]=tn}}function $u(me,Fe,rt,xt,Ht){for(rt=Fe+rt;Fe<rt;){var qt=me[Fe++];xt[Ht++]=255&qt,xt[Ht++]=qt>>8&255,xt[Ht++]=qt>>16&255}}function Ya(me,Fe,rt,xt,Ht,qt){if(qt==0)for(rt=Fe+rt;Fe<rt;)xo(xt,((qt=me[Fe++])[0]>>24|qt[1]>>8&65280|qt[2]<<8&16711680|qt[3]<<24)>>>0),Ht+=32;else re(xt,Ht,me,Fe,rt)}function Su(me,Fe){Xn[Fe][0]=Xn[me+"0"],Xn[Fe][1]=Xn[me+"1"],Xn[Fe][2]=Xn[me+"2"],Xn[Fe][3]=Xn[me+"3"],Xn[Fe][4]=Xn[me+"4"],Xn[Fe][5]=Xn[me+"5"],Xn[Fe][6]=Xn[me+"6"],Xn[Fe][7]=Xn[me+"7"],Xn[Fe][8]=Xn[me+"8"],Xn[Fe][9]=Xn[me+"9"],Xn[Fe][10]=Xn[me+"10"],Xn[Fe][11]=Xn[me+"11"],Xn[Fe][12]=Xn[me+"12"],Xn[Fe][13]=Xn[me+"13"],Xn[Fe][14]=Xn[me+"0"],Xn[Fe][15]=Xn[me+"0"]}function ds(me){return me==d0||me==f0||me==Lg||me==h0}function Ps(){this.eb=[],this.size=this.A=this.fb=0}function Zu(){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 sl(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Ps,this.f.kb=new Zu,this.sd=null}function us(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ou(){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 Sp(me){return alert("todo:WebPSamplerProcessPlane"),me.T}function LA(me,Fe){var rt=me.T,xt=Fe.ba.f.RGBA,Ht=xt.eb,qt=xt.fb+me.ka*xt.A,tn=Gd[Fe.ba.S],hn=me.y,bn=me.O,Mn=me.f,Fr=me.N,si=me.ea,Un=me.W,Mr=Fe.cc,Xr=Fe.dc,Mi=Fe.Mc,ii=Fe.Nc,Qi=me.ka,Wi=me.ka+me.T,yo=me.U,ao=yo+1>>1;for(Qi==0?tn(hn,bn,null,null,Mn,Fr,si,Un,Mn,Fr,si,Un,Ht,qt,null,null,yo):(tn(Fe.ec,Fe.fc,hn,bn,Mr,Xr,Mi,ii,Mn,Fr,si,Un,Ht,qt-xt.A,Ht,qt,yo),++rt);Qi+2<Wi;Qi+=2)Mr=Mn,Xr=Fr,Mi=si,ii=Un,Fr+=me.Rc,Un+=me.Rc,qt+=2*xt.A,tn(hn,(bn+=2*me.fa)-me.fa,hn,bn,Mr,Xr,Mi,ii,Mn,Fr,si,Un,Ht,qt-xt.A,Ht,qt,yo);return bn+=me.fa,me.j+Wi<me.o?(re(Fe.ec,Fe.fc,hn,bn,yo),re(Fe.cc,Fe.dc,Mn,Fr,ao),re(Fe.Mc,Fe.Nc,si,Un,ao),rt--):1&Wi||tn(hn,bn,null,null,Mn,Fr,si,Un,Mn,Fr,si,Un,Ht,qt+xt.A,null,null,yo),rt}function mh(me,Fe,rt){var xt=me.F,Ht=[me.J];if(xt!=null){var qt=me.U,tn=Fe.ba.S,hn=tn==Ig||tn==Lg;Fe=Fe.ba.f.RGBA;var bn=[0],Mn=me.ka;bn[0]=me.T,me.Kb&&(Mn==0?--bn[0]:(--Mn,Ht[0]-=me.width),me.j+me.ka+me.T==me.o&&(bn[0]=me.o-me.j-Mn));var Fr=Fe.eb;Mn=Fe.fb+Mn*Fe.A,me=J0(xt,Ht[0],me.width,qt,bn,Fr,Mn+(hn?0:3),Fe.A),z(rt==bn),me&&ds(tn)&&Zm(Fr,Mn,hn,qt,bn,Fe.A)}return 0}function zf(me){var Fe=me.ma,rt=Fe.ba.S,xt=11>rt,Ht=rt==Sg||rt==Fg||rt==Ig||rt==A0||rt==12||ds(rt);if(Fe.memory=null,Fe.Ib=null,Fe.Jb=null,Fe.Nd=null,!Um(Fe.Oa,me,Ht?11:12))return 0;if(Ht&&ds(rt)&&Tm(),me.da)alert("todo:use_scaling");else{if(xt){if(Fe.Ib=Sp,me.Kb){if(rt=me.U+1>>1,Fe.memory=fe(me.U+2*rt),Fe.memory==null)return 0;Fe.ec=Fe.memory,Fe.fc=0,Fe.cc=Fe.ec,Fe.dc=Fe.fc+me.U,Fe.Mc=Fe.cc,Fe.Nc=Fe.dc+rt,Fe.Ib=LA,Tm()}}else alert("todo:EmitYUV");Ht&&(Fe.Jb=mh,xt&&mf())}if(xt&&!pv){for(me=0;256>me;++me)m1[me]=89858*(me-128)+Ng>>_g,y1[me]=-22014*(me-128)+Ng,v1[me]=-45773*(me-128),g1[me]=113618*(me-128)+Ng>>_g;for(me=Gm;me<g0;++me)Fe=76283*(me-16)+Ng>>_g,w1[me-Gm]=Zf(Fe,255),b1[me-Gm]=Zf(Fe+8>>4,15);pv=1}return 1}function cs(me){var Fe=me.ma,rt=me.U,xt=me.T;return z(!(1&me.ka)),0>=rt||0>=xt?0:(rt=Fe.Ib(me,Fe),Fe.Jb!=null&&Fe.Jb(me,Fe,rt),Fe.Dc+=rt,1)}function gh(me){me.ma.memory=null}function vh(me,Fe,rt,xt){return ro(me,8)!=47?0:(Fe[0]=ro(me,14)+1,rt[0]=ro(me,14)+1,xt[0]=ro(me,1),ro(me,3)!=0?0:!me.h)}function jd(me,Fe){if(4>me)return me+1;var rt=me-2>>1;return(2+(1&me)<<rt)+ro(Fe,rt)+1}function Qd(me,Fe){return 120<Fe?Fe-120:1<=(rt=((rt=n1[Fe-1])>>4)*me+(8-(15&rt)))?rt:1;var rt}function Ac(me,Fe,rt){var xt=ir(rt),Ht=me[Fe+=255&xt].g-8;return 0<Ht&&(Rr(rt,rt.u+8),xt=ir(rt),Fe+=me[Fe].value,Fe+=xt&(1<<Ht)-1),Rr(rt,rt.u+me[Fe].g),me[Fe].value}function qc(me,Fe,rt){return rt.g+=me.g,rt.value+=me.value<<Fe>>>0,z(8>=rt.g),me.g}function sA(me,Fe,rt){var xt=me.xc;return z((Fe=xt==0?0:me.vc[me.md*(rt>>xt)+(Fe>>xt)])<me.Wb),me.Ya[Fe]}function Fp(me,Fe,rt,xt){var Ht=me.ab,qt=me.c*Fe,tn=me.C;Fe=tn+Fe;var hn=rt,bn=xt;for(xt=me.Ta,rt=me.Ua;0<Ht--;){var Mn=me.gc[Ht],Fr=tn,si=Fe,Un=hn,Mr=bn,Xr=(bn=xt,hn=rt,Mn.Ea);switch(z(Fr<si),z(si<=Mn.nc),Mn.hc){case 2:wc(Un,Mr,(si-Fr)*Xr,bn,hn);break;case 0:var Mi=Fr,ii=si,Qi=bn,Wi=hn,yo=(_a=Mn).Ea;Mi==0&&(jm(Un,Mr,null,null,1,Qi,Wi),Bl(Un,Mr+1,0,0,yo-1,Qi,Wi+1),Mr+=yo,Wi+=yo,++Mi);for(var ao=1<<_a.b,ja=ao-1,xa=mo(yo,_a.b),$s=_a.K,_a=_a.w+(Mi>>_a.b)*xa;Mi<ii;){var El=$s,Rc=_a,Zs=1;for(fm(Un,Mr,Qi,Wi-yo,1,Qi,Wi);Zs<yo;){var Na=(Zs&~ja)+ao;Na>yo&&(Na=yo),(0,Hm[El[Rc++]>>8&15])(Un,Mr+ +Zs,Qi,Wi+Zs-yo,Na-Zs,Qi,Wi+Zs),Zs=Na}Mr+=yo,Wi+=yo,++Mi&ja||(_a+=xa)}si!=Mn.nc&&re(bn,hn-Xr,bn,hn+(si-Fr-1)*Xr,Xr);break;case 1:for(Xr=Un,ii=Mr,yo=(Un=Mn.Ea)-(Wi=Un&~(Qi=(Mr=1<<Mn.b)-1)),Mi=mo(Un,Mn.b),ao=Mn.K,Mn=Mn.w+(Fr>>Mn.b)*Mi;Fr<si;){for(ja=ao,xa=Mn,$s=new ts,_a=ii+Wi,El=ii+Un;ii<_a;)Ta(ja[xa++],$s),zm($s,Xr,ii,Mr,bn,hn),ii+=Mr,hn+=Mr;ii<El&&(Ta(ja[xa++],$s),zm($s,Xr,ii,yo,bn,hn),ii+=yo,hn+=yo),++Fr&Qi||(Mn+=Mi)}break;case 3:if(Un==bn&&Mr==hn&&0<Mn.b){for(ii=bn,Un=Xr=hn+(si-Fr)*Xr-(Wi=(si-Fr)*mo(Mn.Ea,Mn.b)),Mr=bn,Qi=hn,Mi=[],Wi=(yo=Wi)-1;0<=Wi;--Wi)Mi[Wi]=Mr[Qi+Wi];for(Wi=yo-1;0<=Wi;--Wi)ii[Un+Wi]=Mi[Wi];Cg(Mn,Fr,si,bn,Xr,bn,hn)}else Cg(Mn,Fr,si,Un,Mr,bn,hn)}hn=xt,bn=rt}bn!=rt&&re(xt,rt,hn,bn,qt)}function Wh(me,Fe){var rt=me.V,xt=me.Ba+me.c*me.C,Ht=Fe-me.C;if(z(Fe<=me.l.o),z(16>=Ht),0<Ht){var qt=me.l,tn=me.Ta,hn=me.Ua,bn=qt.width;if(Fp(me,Ht,rt,xt),Ht=hn=[hn],z((rt=me.C)<(xt=Fe)),z(qt.v<qt.va),xt>qt.o&&(xt=qt.o),rt<qt.j){var Mn=qt.j-rt;rt=qt.j,Ht[0]+=Mn*bn}if(rt>=xt?rt=0:(Ht[0]+=4*qt.v,qt.ka=rt-qt.j,qt.U=qt.va-qt.v,qt.T=xt-rt,rt=1),rt){if(hn=hn[0],11>(rt=me.ca).S){var Fr=rt.f.RGBA,si=(xt=rt.S,Ht=qt.U,qt=qt.T,Mn=Fr.eb,Fr.A),Un=qt;for(Fr=Fr.fb+me.Ma*Fr.A;0<Un--;){var Mr=tn,Xr=hn,Mi=Ht,ii=Mn,Qi=Fr;switch(xt){case Eg:Km(Mr,Xr,Mi,ii,Qi);break;case Sg:qh(Mr,Xr,Mi,ii,Qi);break;case d0:qh(Mr,Xr,Mi,ii,Qi),Zm(ii,Qi,0,Mi,1,0);break;case ov:Qp(Mr,Xr,Mi,ii,Qi);break;case Fg:Ya(Mr,Xr,Mi,ii,Qi,1);break;case f0:Ya(Mr,Xr,Mi,ii,Qi,1),Zm(ii,Qi,0,Mi,1,0);break;case Ig:Ya(Mr,Xr,Mi,ii,Qi,0);break;case Lg:Ya(Mr,Xr,Mi,ii,Qi,0),Zm(ii,Qi,1,Mi,1,0);break;case A0:ep(Mr,Xr,Mi,ii,Qi);break;case h0:ep(Mr,Xr,Mi,ii,Qi),Y0(ii,Qi,Mi,1,0);break;case av:tp(Mr,Xr,Mi,ii,Qi);break;default:z(0)}hn+=bn,Fr+=si}me.Ma+=qt}else alert("todo:EmitRescaledRowsYUVA");z(me.Ma<=rt.height)}}me.C=Fe,z(me.C<=me.i)}function df(me){var Fe;if(0<me.ua)return 0;for(Fe=0;Fe<me.Wb;++Fe){var rt=me.Ya[Fe].G,xt=me.Ya[Fe].H;if(0<rt[1][xt[1]+0].g||0<rt[2][xt[2]+0].g||0<rt[3][xt[3]+0].g)return 0}return 1}function Kf(me,Fe,rt,xt,Ht,qt){if(me.Z!=0){var tn=me.qd,hn=me.rd;for(z(ip[me.Z]!=null);Fe<rt;++Fe)ip[me.Z](tn,hn,xt,Ht,xt,Ht,qt),tn=xt,hn=Ht,Ht+=qt;me.qd=tn,me.rd=hn}}function ff(me,Fe){var rt=me.l.ma,xt=rt.Z==0||rt.Z==1?me.l.j:me.C;if(xt=me.C<xt?xt:me.C,z(Fe<=me.l.o),Fe>xt){var Ht=me.l.width,qt=rt.ca,tn=rt.tb+Ht*xt,hn=me.V,bn=me.Ba+me.c*xt,Mn=me.gc;z(me.ab==1),z(Mn[0].hc==3),Xf(Mn[0],xt,Fe,hn,bn,qt,tn),Kf(rt,xt,Fe,qt,tn,Ht)}me.C=me.Ma=Fe}function hf(me,Fe,rt,xt,Ht,qt,tn){var hn=me.$/xt,bn=me.$%xt,Mn=me.m,Fr=me.s,si=rt+me.$,Un=si;Ht=rt+xt*Ht;var Mr=rt+xt*qt,Xr=280+Fr.ua,Mi=me.Pb?hn:16777216,ii=0<Fr.ua?Fr.Wa:null,Qi=Fr.wc,Wi=si<Mr?sA(Fr,bn,hn):null;z(me.C<qt),z(Mr<=Ht);var yo=!1;e:for(;;){for(;yo||si<Mr;){var ao=0;if(hn>=Mi){var ja=si-rt;z((Mi=me).Pb),Mi.wd=Mi.m,Mi.xd=ja,0<Mi.s.ua&&Aa(Mi.s.Wa,Mi.s.vb),Mi=hn+i1}if(bn&Qi||(Wi=sA(Fr,bn,hn)),z(Wi!=null),Wi.Qb&&(Fe[si]=Wi.qb,yo=!0),!yo)if(ei(Mn),Wi.jc){ao=Mn,ja=Fe;var xa=si,$s=Wi.pd[ir(ao)&jp-1];z(Wi.jc),256>$s.g?(Rr(ao,ao.u+$s.g),ja[xa]=$s.value,ao=0):(Rr(ao,ao.u+$s.g-256),z(256<=$s.value),ao=$s.value),ao==0&&(yo=!0)}else ao=Ac(Wi.G[0],Wi.H[0],Mn);if(Mn.h)break;if(yo||256>ao){if(!yo)if(Wi.nd)Fe[si]=(Wi.qb|ao<<8)>>>0;else{if(ei(Mn),yo=Ac(Wi.G[1],Wi.H[1],Mn),ei(Mn),ja=Ac(Wi.G[2],Wi.H[2],Mn),xa=Ac(Wi.G[3],Wi.H[3],Mn),Mn.h)break;Fe[si]=(xa<<24|yo<<16|ao<<8|ja)>>>0}if(yo=!1,++si,++bn>=xt&&(bn=0,++hn,tn!=null&&hn<=qt&&!(hn%16)&&tn(me,hn),ii!=null))for(;Un<si;)ao=Fe[Un++],ii.X[(506832829*ao&4294967295)>>>ii.Mb]=ao}else if(280>ao){if(ao=jd(ao-256,Mn),ja=Ac(Wi.G[4],Wi.H[4],Mn),ei(Mn),ja=Qd(xt,ja=jd(ja,Mn)),Mn.h)break;if(si-rt<ja||Ht-si<ao)break e;for(xa=0;xa<ao;++xa)Fe[si+xa]=Fe[si+xa-ja];for(si+=ao,bn+=ao;bn>=xt;)bn-=xt,++hn,tn!=null&&hn<=qt&&!(hn%16)&&tn(me,hn);if(z(si<=Ht),bn&Qi&&(Wi=sA(Fr,bn,hn)),ii!=null)for(;Un<si;)ao=Fe[Un++],ii.X[(506832829*ao&4294967295)>>>ii.Mb]=ao}else{if(!(ao<Xr))break e;for(yo=ao-280,z(ii!=null);Un<si;)ao=Fe[Un++],ii.X[(506832829*ao&4294967295)>>>ii.Mb]=ao;ao=si,z(!(yo>>>(ja=ii).Xa)),Fe[ao]=ja.X[yo],yo=!0}yo||z(Mn.h==Cr(Mn))}if(me.Pb&&Mn.h&&si<Ht)z(me.m.h),me.a=5,me.m=me.wd,me.$=me.xd,0<me.s.ua&&Aa(me.s.vb,me.s.Wa);else{if(Mn.h)break e;tn!=null&&tn(me,hn>qt?qt:hn),me.a=0,me.$=si-rt}return 1}return me.a=3,0}function Hd(me){z(me!=null),me.vc=null,me.yc=null,me.Ya=null;var Fe=me.Wa;Fe!=null&&(Fe.X=null),me.vb=null,z(me!=null)}function Ip(){var me=new Cs;return me==null?null:(me.a=0,me.xb=uv,Su("Predictor","VP8LPredictors"),Su("Predictor","VP8LPredictors_C"),Su("PredictorAdd","VP8LPredictorsAdd"),Su("PredictorAdd","VP8LPredictorsAdd_C"),wc=vl,zm=Us,Km=yc,qh=Ol,ep=el,tp=tl,Qp=$u,Xn.VP8LMapColor32b=Vf,Xn.VP8LMapColor8b=Qm,me)}function $f(me,Fe,rt,xt,Ht){var qt=1,tn=[me],hn=[Fe],bn=xt.m,Mn=xt.s,Fr=null,si=0;e:for(;;){if(rt)for(;qt&&ro(bn,1);){var Un=tn,Mr=hn,Xr=xt,Mi=1,ii=Xr.m,Qi=Xr.gc[Xr.ab],Wi=ro(ii,2);if(Xr.Oc&1<<Wi)qt=0;else{switch(Xr.Oc|=1<<Wi,Qi.hc=Wi,Qi.Ea=Un[0],Qi.nc=Mr[0],Qi.K=[null],++Xr.ab,z(4>=Xr.ab),Wi){case 0:case 1:Qi.b=ro(ii,3)+2,Mi=$f(mo(Qi.Ea,Qi.b),mo(Qi.nc,Qi.b),0,Xr,Qi.K),Qi.K=Qi.K[0];break;case 3:var yo,ao=ro(ii,8)+1,ja=16<ao?0:4<ao?1:2<ao?2:3;if(Un[0]=mo(Qi.Ea,ja),Qi.b=ja,yo=Mi=$f(ao,1,0,Xr,Qi.K)){var xa,$s=ao,_a=Qi,El=1<<(8>>_a.b),Rc=fe(El);if(Rc==null)yo=0;else{var Zs=_a.K[0],Na=_a.w;for(Rc[0]=_a.K[0][0],xa=1;xa<1*$s;++xa)Rc[xa]=os(Zs[Na+xa],Rc[xa-1]);for(;xa<4*El;++xa)Rc[xa]=0;_a.K[0]=null,_a.K[0]=Rc,yo=1}}Mi=yo;break;case 2:break;default:z(0)}qt=Mi}}if(tn=tn[0],hn=hn[0],qt&&ro(bn,1)&&!(qt=1<=(si=ro(bn,4))&&11>=si)){xt.a=3;break e}var Yo;if(Yo=qt)t:{var Cc,Ts,Nl,Mu=xt,cA=tn,QA=hn,dc=si,_A=rt,HA=Mu.m,jc=Mu.s,Pl=[null],Au=1,fc=0,du=r1[dc];n:for(;;){if(_A&&ro(HA,1)){var AA=ro(HA,3)+2,vf=mo(cA,AA),xc=mo(QA,AA),ed=vf*xc;if(!$f(vf,xc,0,Mu,Pl))break n;for(Pl=Pl[0],jc.xc=AA,Cc=0;Cc<ed;++Cc){var xu=Pl[Cc]>>8&65535;Pl[Cc]=xu,xu>=Au&&(Au=xu+1)}}if(HA.h)break n;for(Ts=0;5>Ts;++Ts){var Qc=sv[Ts];!Ts&&0<dc&&(Qc+=1<<dc),fc<Qc&&(fc=Qc)}var wd=$e(Au*du,gr),zA=Au,bd=$e(zA,mi);if(bd==null)var Cd=null;else z(65536>=zA),Cd=bd;var td=fe(fc);if(Cd==null||td==null||wd==null){Mu.a=1;break n}var xd=wd;for(Cc=Nl=0;Cc<Au;++Cc){var Iu=Cd[Cc],Bd=Iu.G,yf=Iu.H,zp=0,Oh=1,dA=0;for(Ts=0;5>Ts;++Ts){Qc=sv[Ts],Bd[Ts]=xd,yf[Ts]=Nl,!Ts&&0<dc&&(Qc+=1<<dc);i:{var Dg,v0=Qc,Pg=Mu,Vm=td,B1=xd,E1=Nl,y0=0,op=Pg.m,S1=ro(op,1);if(ce(Vm,0,0,v0),S1){var F1=ro(op,1)+1,I1=ro(op,1),vv=ro(op,I1==0?1:8);Vm[vv]=1,F1==2&&(Vm[vv=ro(op,8)]=1);var Tg=1}else{var yv=fe(19),wv=ro(op,4)+4;if(19<wv){Pg.a=3;var kg=0;break i}for(Dg=0;Dg<wv;++Dg)yv[t1[Dg]]=ro(op,3);var w0=void 0,Xm=void 0,bv=Pg,L1=yv,Mg=v0,Cv=Vm,b0=0,ap=bv.m,xv=8,Bv=$e(128,gr);r:for(;Dn(Bv,0,7,L1,19);){if(ro(ap,1)){var _1=2+2*ro(ap,3);if((w0=2+ro(ap,_1))>Mg)break r}else w0=Mg;for(Xm=0;Xm<Mg&&w0--;){ei(ap);var Ev=Bv[0+(127&ir(ap))];Rr(ap,ap.u+Ev.g);var pm=Ev.value;if(16>pm)Cv[Xm++]=pm,pm!=0&&(xv=pm);else{var N1=pm==16,Sv=pm-16,O1=qv[Sv],Fv=ro(ap,Jv[Sv])+O1;if(Xm+Fv>Mg)break r;for(var D1=N1?xv:0;0<Fv--;)Cv[Xm++]=D1}}b0=1;break r}b0||(bv.a=3),Tg=b0}(Tg=Tg&&!op.h)&&(y0=Dn(B1,E1,8,Vm,v0)),Tg&&y0!=0?kg=y0:(Pg.a=3,kg=0)}if(kg==0)break n;if(Oh&&e1[Ts]==1&&(Oh=xd[Nl].g==0),zp+=xd[Nl].g,Nl+=kg,3>=Ts){var Ym,C0=td[0];for(Ym=1;Ym<Qc;++Ym)td[Ym]>C0&&(C0=td[Ym]);dA+=C0}}if(Iu.nd=Oh,Iu.Qb=0,Oh&&(Iu.qb=(Bd[3][yf[3]+0].value<<24|Bd[1][yf[1]+0].value<<16|Bd[2][yf[2]+0].value)>>>0,zp==0&&256>Bd[0][yf[0]+0].value&&(Iu.Qb=1,Iu.qb+=Bd[0][yf[0]+0].value<<8)),Iu.jc=!Iu.Qb&&6>dA,Iu.jc){var Ug,Dh=Iu;for(Ug=0;Ug<jp;++Ug){var sp=Ug,lp=Dh.pd[sp],Rg=Dh.G[0][Dh.H[0]+sp];256<=Rg.value?(lp.g=Rg.g+256,lp.value=Rg.value):(lp.g=0,lp.value=0,sp>>=qc(Rg,8,lp),sp>>=qc(Dh.G[1][Dh.H[1]+sp],16,lp),sp>>=qc(Dh.G[2][Dh.H[2]+sp],0,lp),qc(Dh.G[3][Dh.H[3]+sp],24,lp))}}}jc.vc=Pl,jc.Wb=Au,jc.Ya=Cd,jc.yc=wd,Yo=1;break t}Yo=0}if(!(qt=Yo)){xt.a=3;break e}if(0<si){if(Mn.ua=1<<si,!Pn(Mn.Wa,si)){xt.a=1,qt=0;break e}}else Mn.ua=0;var x0=xt,Iv=tn,P1=hn,B0=x0.s,E0=B0.xc;if(x0.c=Iv,x0.i=P1,B0.md=mo(Iv,E0),B0.wc=E0==0?-1:(1<<E0)-1,rt){xt.xb=A1;break e}if((Fr=fe(tn*hn))==null){xt.a=1,qt=0;break e}qt=(qt=hf(xt,Fr,0,tn,hn,hn,null))&&!bn.h;break e}return qt?(Ht!=null?Ht[0]=Fr:(z(Fr==null),z(rt)),xt.$=0,rt||Hd(Mn)):Hd(Mn),qt}function Lp(me,Fe){var rt=me.c*me.i,xt=rt+Fe+16*Fe;return z(me.c<=Fe),me.V=fe(xt),me.V==null?(me.Ta=null,me.Ua=0,me.a=1,0):(me.Ta=me.V,me.Ua=me.Ba+rt+Fe,1)}function rm(me,Fe){var rt=me.C,xt=Fe-rt,Ht=me.V,qt=me.Ba+me.c*rt;for(z(Fe<=me.l.o);0<xt;){var tn=16<xt?16:xt,hn=me.l.ma,bn=me.l.width,Mn=bn*tn,Fr=hn.ca,si=hn.tb+bn*rt,Un=me.Ta,Mr=me.Ua;Fp(me,tn,Ht,qt),q0(Un,Mr,Fr,si,Mn),Kf(hn,rt,rt+tn,Fr,si,bn),xt-=tn,Ht+=tn*me.c,rt+=tn}z(rt==Fe),me.C=me.Ma=Fe}function im(){this.ub=this.yd=this.td=this.Rb=0}function om(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Gg(){this.Fb=this.Bb=this.Cb=0,this.Zb=fe(4),this.Lb=fe(4)}function Bm(){this.Yb=function(){var me=[];return function Fe(rt,xt,Ht){for(var qt=Ht[xt],tn=0;tn<qt&&(rt.push(Ht.length>xt+1?[]:0),!(Ht.length<xt+1));tn++)Fe(rt[tn],xt+1,Ht)}(me,0,[3,11]),me}()}function ig(){this.jb=fe(3),this.Wc=Pe([4,8],Bm),this.Xc=Pe([4,17],Bm)}function og(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new fe(4),this.od=new fe(4)}function zd(){this.ld=this.La=this.dd=this.tc=0}function Em(){this.Na=this.la=0}function ag(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Sm(){this.ad=fe(384),this.Za=0,this.Ob=fe(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function sg(){this.uc=this.M=this.Nb=0,this.wa=Array(new zd),this.Y=0,this.ya=Array(new Sm),this.aa=0,this.l=new am}function lg(){this.y=fe(16),this.f=fe(8),this.ea=fe(8)}function ug(){this.cb=this.a=0,this.sc="",this.m=new nn,this.Od=new im,this.Kc=new om,this.ed=new og,this.Qa=new Gg,this.Ic=this.$c=this.Aa=0,this.D=new sg,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=$e(8,nn),this.ia=0,this.pb=$e(4,ag),this.Pa=new ig,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new lg),this.Hd=0,this.rb=Array(new Em),this.sb=0,this.wa=Array(new zd),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 Sm),this.L=this.aa=0,this.gd=Pe([4,2],zd),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 Zf(me,Fe){return 0>me?0:me>Fe?Fe:me}function am(){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 Vg(){var me=new ug;return me!=null&&(me.a=0,me.sc="OK",me.cb=0,me.Xb=0,Wm||(Wm=sm)),me}function Fc(me,Fe,rt){return me.a==0&&(me.a=Fe,me.sc=rt,me.cb=0),0}function cg(me,Fe,rt){return 3<=rt&&me[Fe+0]==157&&me[Fe+1]==1&&me[Fe+2]==42}function Wf(me,Fe){if(me==null)return 0;if(me.a=0,me.sc="OK",Fe==null)return Fc(me,2,"null VP8Io passed to VP8GetHeaders()");var rt=Fe.data,xt=Fe.w,Ht=Fe.ha;if(4>Ht)return Fc(me,7,"Truncated header.");var qt=rt[xt+0]|rt[xt+1]<<8|rt[xt+2]<<16,tn=me.Od;if(tn.Rb=!(1&qt),tn.td=qt>>1&7,tn.yd=qt>>4&1,tn.ub=qt>>5,3<tn.td)return Fc(me,3,"Incorrect keyframe parameters.");if(!tn.yd)return Fc(me,4,"Frame not displayable.");xt+=3,Ht-=3;var hn=me.Kc;if(tn.Rb){if(7>Ht)return Fc(me,7,"cannot parse picture header");if(!cg(rt,xt,Ht))return Fc(me,3,"Bad code word");hn.c=16383&(rt[xt+4]<<8|rt[xt+3]),hn.Td=rt[xt+4]>>6,hn.i=16383&(rt[xt+6]<<8|rt[xt+5]),hn.Ud=rt[xt+6]>>6,xt+=7,Ht-=7,me.za=hn.c+15>>4,me.Ub=hn.i+15>>4,Fe.width=hn.c,Fe.height=hn.i,Fe.Da=0,Fe.j=0,Fe.v=0,Fe.va=Fe.width,Fe.o=Fe.height,Fe.da=0,Fe.ib=Fe.width,Fe.hb=Fe.height,Fe.U=Fe.width,Fe.T=Fe.height,ce((qt=me.Pa).jb,0,255,qt.jb.length),z((qt=me.Qa)!=null),qt.Cb=0,qt.Bb=0,qt.Fb=1,ce(qt.Zb,0,0,qt.Zb.length),ce(qt.Lb,0,0,qt.Lb)}if(tn.ub>Ht)return Fc(me,7,"bad partition length");Si(qt=me.m,rt,xt,tn.ub),xt+=tn.ub,Ht-=tn.ub,tn.Rb&&(hn.Ld=Oi(qt),hn.Kd=Oi(qt)),hn=me.Qa;var bn,Mn=me.Pa;if(z(qt!=null),z(hn!=null),hn.Cb=Oi(qt),hn.Cb){if(hn.Bb=Oi(qt),Oi(qt)){for(hn.Fb=Oi(qt),bn=0;4>bn;++bn)hn.Zb[bn]=Oi(qt)?ai(qt,7):0;for(bn=0;4>bn;++bn)hn.Lb[bn]=Oi(qt)?ai(qt,6):0}if(hn.Bb)for(bn=0;3>bn;++bn)Mn.jb[bn]=Oi(qt)?Ni(qt,8):255}else hn.Bb=0;if(qt.Ka)return Fc(me,3,"cannot parse segment header");if((hn=me.ed).zd=Oi(qt),hn.Tb=Ni(qt,6),hn.wb=Ni(qt,3),hn.Pc=Oi(qt),hn.Pc&&Oi(qt)){for(Mn=0;4>Mn;++Mn)Oi(qt)&&(hn.vd[Mn]=ai(qt,6));for(Mn=0;4>Mn;++Mn)Oi(qt)&&(hn.od[Mn]=ai(qt,6))}if(me.L=hn.Tb==0?0:hn.zd?1:2,qt.Ka)return Fc(me,3,"cannot parse filter header");var Fr=Ht;if(Ht=bn=xt,xt=bn+Fr,hn=Fr,me.Xb=(1<<Ni(me.m,2))-1,Fr<3*(Mn=me.Xb))rt=7;else{for(bn+=3*Mn,hn-=3*Mn,Fr=0;Fr<Mn;++Fr){var si=rt[Ht+0]|rt[Ht+1]<<8|rt[Ht+2]<<16;si>hn&&(si=hn),Si(me.Jc[+Fr],rt,bn,si),bn+=si,hn-=si,Ht+=3}Si(me.Jc[+Mn],rt,bn,hn),rt=bn<xt?0:5}if(rt!=0)return Fc(me,rt,"cannot parse partitions");for(rt=Ni(bn=me.m,7),Ht=Oi(bn)?ai(bn,4):0,xt=Oi(bn)?ai(bn,4):0,hn=Oi(bn)?ai(bn,4):0,Mn=Oi(bn)?ai(bn,4):0,bn=Oi(bn)?ai(bn,4):0,Fr=me.Qa,si=0;4>si;++si){if(Fr.Cb){var Un=Fr.Zb[si];Fr.Fb||(Un+=rt)}else{if(0<si){me.pb[si]=me.pb[0];continue}Un=rt}var Mr=me.pb[si];Mr.Sc[0]=p0[Zf(Un+Ht,127)],Mr.Sc[1]=m0[Zf(Un+0,127)],Mr.Eb[0]=2*p0[Zf(Un+xt,127)],Mr.Eb[1]=101581*m0[Zf(Un+hn,127)]>>16,8>Mr.Eb[1]&&(Mr.Eb[1]=8),Mr.Qc[0]=p0[Zf(Un+Mn,117)],Mr.Qc[1]=m0[Zf(Un+bn,127)],Mr.lc=Un+bn}if(!tn.Rb)return Fc(me,4,"Not a key frame.");for(Oi(qt),tn=me.Pa,rt=0;4>rt;++rt){for(Ht=0;8>Ht;++Ht)for(xt=0;3>xt;++xt)for(hn=0;11>hn;++hn)Mn=Vi(qt,u1[rt][Ht][xt][hn])?Ni(qt,8):s1[rt][Ht][xt][hn],tn.Wc[rt][Ht].Yb[xt][hn]=Mn;for(Ht=0;17>Ht;++Ht)tn.Xc[rt][Ht]=tn.Wc[rt][c1[Ht]]}return me.kc=Oi(qt),me.kc&&(me.Bd=Ni(qt,8)),me.cb=1}function sm(me,Fe,rt,xt,Ht,qt,tn){var hn=Fe[Ht].Yb[rt];for(rt=0;16>Ht;++Ht){if(!Vi(me,hn[rt+0]))return Ht;for(;!Vi(me,hn[rt+1]);)if(hn=Fe[++Ht].Yb[0],rt=0,Ht==16)return 16;var bn=Fe[Ht+1].Yb;if(Vi(me,hn[rt+2])){var Mn=me,Fr=0;if(Vi(Mn,(Un=hn)[(si=rt)+3]))if(Vi(Mn,Un[si+6])){for(hn=0,si=2*(Fr=Vi(Mn,Un[si+8]))+(Un=Vi(Mn,Un[si+9+Fr])),Fr=0,Un=o1[si];Un[hn];++hn)Fr+=Fr+Vi(Mn,Un[hn]);Fr+=3+(8<<si)}else Vi(Mn,Un[si+7])?(Fr=7+2*Vi(Mn,165),Fr+=Vi(Mn,145)):Fr=5+Vi(Mn,159);else Fr=Vi(Mn,Un[si+4])?3+Vi(Mn,Un[si+5]):2;hn=bn[2]}else Fr=1,hn=bn[1];bn=tn+a1[Ht],0>(Mn=me).b&&Li(Mn);var si,Un=Mn.b,Mr=(si=Mn.Ca>>1)-(Mn.I>>Un)>>31;--Mn.b,Mn.Ca+=Mr,Mn.Ca|=1,Mn.I-=(si+1&Mr)<<Un,qt[bn]=((Fr^Mr)-Mr)*xt[(0<Ht)+0]}return 16}function Ag(me){var Fe=me.rb[me.sb-1];Fe.la=0,Fe.Na=0,ce(me.zc,0,0,me.zc.length),me.ja=0}function Kd(me,Fe,rt,xt,Ht){Ht=me[Fe+rt+32*xt]+(Ht>>3),me[Fe+rt+32*xt]=-256&Ht?0>Ht?0:255:Ht}function kc(me,Fe,rt,xt,Ht,qt){Kd(me,Fe,0,rt,xt+Ht),Kd(me,Fe,1,rt,xt+qt),Kd(me,Fe,2,rt,xt-qt),Kd(me,Fe,3,rt,xt-Ht)}function yh(me){return(20091*me>>16)+me}function dg(me,Fe,rt,xt){var Ht,qt=0,tn=fe(16);for(Ht=0;4>Ht;++Ht){var hn=me[Fe+0]+me[Fe+8],bn=me[Fe+0]-me[Fe+8],Mn=(35468*me[Fe+4]>>16)-yh(me[Fe+12]),Fr=yh(me[Fe+4])+(35468*me[Fe+12]>>16);tn[qt+0]=hn+Fr,tn[qt+1]=bn+Mn,tn[qt+2]=bn-Mn,tn[qt+3]=hn-Fr,qt+=4,Fe++}for(Ht=qt=0;4>Ht;++Ht)hn=(me=tn[qt+0]+4)+tn[qt+8],bn=me-tn[qt+8],Mn=(35468*tn[qt+4]>>16)-yh(tn[qt+12]),Kd(rt,xt,0,0,hn+(Fr=yh(tn[qt+4])+(35468*tn[qt+12]>>16))),Kd(rt,xt,1,0,bn+Mn),Kd(rt,xt,2,0,bn-Mn),Kd(rt,xt,3,0,hn-Fr),qt++,xt+=32}function Xg(me,Fe,rt,xt){var Ht=me[Fe+0]+4,qt=35468*me[Fe+4]>>16,tn=yh(me[Fe+4]),hn=35468*me[Fe+1]>>16;kc(rt,xt,0,Ht+tn,me=yh(me[Fe+1]),hn),kc(rt,xt,1,Ht+qt,me,hn),kc(rt,xt,2,Ht-qt,me,hn),kc(rt,xt,3,Ht-tn,me,hn)}function Yg(me,Fe,rt,xt,Ht){dg(me,Fe,rt,xt),Ht&&dg(me,Fe+16,rt,xt+4)}function Gf(me,Fe,rt,xt){Hp(me,Fe+0,rt,xt,1),Hp(me,Fe+32,rt,xt+128,1)}function fg(me,Fe,rt,xt){var Ht;for(me=me[Fe+0]+4,Ht=0;4>Ht;++Ht)for(Fe=0;4>Fe;++Fe)Kd(rt,xt,Fe,Ht,me)}function hg(me,Fe,rt,xt){me[Fe+0]&&au(me,Fe+0,rt,xt),me[Fe+16]&&au(me,Fe+16,rt,xt+4),me[Fe+32]&&au(me,Fe+32,rt,xt+128),me[Fe+48]&&au(me,Fe+48,rt,xt+128+4)}function lm(me,Fe,rt,xt){var Ht,qt=fe(16);for(Ht=0;4>Ht;++Ht){var tn=me[Fe+0+Ht]+me[Fe+12+Ht],hn=me[Fe+4+Ht]+me[Fe+8+Ht],bn=me[Fe+4+Ht]-me[Fe+8+Ht],Mn=me[Fe+0+Ht]-me[Fe+12+Ht];qt[0+Ht]=tn+hn,qt[8+Ht]=tn-hn,qt[4+Ht]=Mn+bn,qt[12+Ht]=Mn-bn}for(Ht=0;4>Ht;++Ht)tn=(me=qt[0+4*Ht]+3)+qt[3+4*Ht],hn=qt[1+4*Ht]+qt[2+4*Ht],bn=qt[1+4*Ht]-qt[2+4*Ht],Mn=me-qt[3+4*Ht],rt[xt+0]=tn+hn>>3,rt[xt+16]=Mn+bn>>3,rt[xt+32]=tn-hn>>3,rt[xt+48]=Mn-bn>>3,xt+=64}function _p(me,Fe,rt){var xt,Ht=Fe-32,qt=yd,tn=255-me[Ht-1];for(xt=0;xt<rt;++xt){var hn,bn=qt,Mn=tn+me[Fe-1];for(hn=0;hn<rt;++hn)me[Fe+hn]=bn[Mn+me[Ht+hn]];Fe+=32}}function Jg(me,Fe){_p(me,Fe,4)}function qg(me,Fe){_p(me,Fe,8)}function e0(me,Fe){_p(me,Fe,16)}function Fm(me,Fe){var rt;for(rt=0;16>rt;++rt)re(me,Fe+32*rt,me,Fe-32,16)}function pg(me,Fe){var rt;for(rt=16;0<rt;--rt)ce(me,Fe,me[Fe-1],16),Fe+=32}function pf(me,Fe,rt){var xt;for(xt=0;16>xt;++xt)ce(Fe,rt+32*xt,me,16)}function t0(me,Fe){var rt,xt=16;for(rt=0;16>rt;++rt)xt+=me[Fe-1+32*rt]+me[Fe+rt-32];pf(xt>>5,me,Fe)}function Np(me,Fe){var rt,xt=8;for(rt=0;16>rt;++rt)xt+=me[Fe-1+32*rt];pf(xt>>4,me,Fe)}function Im(me,Fe){var rt,xt=8;for(rt=0;16>rt;++rt)xt+=me[Fe+rt-32];pf(xt>>4,me,Fe)}function n0(me,Fe){pf(128,me,Fe)}function Es(me,Fe,rt){return me+2*Fe+rt+2>>2}function r0(me,Fe){var rt,xt=Fe-32;for(xt=new Uint8Array([Es(me[xt-1],me[xt+0],me[xt+1]),Es(me[xt+0],me[xt+1],me[xt+2]),Es(me[xt+1],me[xt+2],me[xt+3]),Es(me[xt+2],me[xt+3],me[xt+4])]),rt=0;4>rt;++rt)re(me,Fe+32*rt,xt,0,xt.length)}function i0(me,Fe){var rt=me[Fe-1],xt=me[Fe-1+32],Ht=me[Fe-1+64],qt=me[Fe-1+96];xo(me,Fe+0,16843009*Es(me[Fe-1-32],rt,xt)),xo(me,Fe+32,16843009*Es(rt,xt,Ht)),xo(me,Fe+64,16843009*Es(xt,Ht,qt)),xo(me,Fe+96,16843009*Es(Ht,qt,qt))}function o0(me,Fe){var rt,xt=4;for(rt=0;4>rt;++rt)xt+=me[Fe+rt-32]+me[Fe-1+32*rt];for(xt>>=3,rt=0;4>rt;++rt)ce(me,Fe+32*rt,xt,4)}function wh(me,Fe){var rt=me[Fe-1+0],xt=me[Fe-1+32],Ht=me[Fe-1+64],qt=me[Fe-1-32],tn=me[Fe+0-32],hn=me[Fe+1-32],bn=me[Fe+2-32],Mn=me[Fe+3-32];me[Fe+0+96]=Es(xt,Ht,me[Fe-1+96]),me[Fe+1+96]=me[Fe+0+64]=Es(rt,xt,Ht),me[Fe+2+96]=me[Fe+1+64]=me[Fe+0+32]=Es(qt,rt,xt),me[Fe+3+96]=me[Fe+2+64]=me[Fe+1+32]=me[Fe+0+0]=Es(tn,qt,rt),me[Fe+3+64]=me[Fe+2+32]=me[Fe+1+0]=Es(hn,tn,qt),me[Fe+3+32]=me[Fe+2+0]=Es(bn,hn,tn),me[Fe+3+0]=Es(Mn,bn,hn)}function bh(me,Fe){var rt=me[Fe+1-32],xt=me[Fe+2-32],Ht=me[Fe+3-32],qt=me[Fe+4-32],tn=me[Fe+5-32],hn=me[Fe+6-32],bn=me[Fe+7-32];me[Fe+0+0]=Es(me[Fe+0-32],rt,xt),me[Fe+1+0]=me[Fe+0+32]=Es(rt,xt,Ht),me[Fe+2+0]=me[Fe+1+32]=me[Fe+0+64]=Es(xt,Ht,qt),me[Fe+3+0]=me[Fe+2+32]=me[Fe+1+64]=me[Fe+0+96]=Es(Ht,qt,tn),me[Fe+3+32]=me[Fe+2+64]=me[Fe+1+96]=Es(qt,tn,hn),me[Fe+3+64]=me[Fe+2+96]=Es(tn,hn,bn),me[Fe+3+96]=Es(hn,bn,bn)}function a0(me,Fe){var rt=me[Fe-1+0],xt=me[Fe-1+32],Ht=me[Fe-1+64],qt=me[Fe-1-32],tn=me[Fe+0-32],hn=me[Fe+1-32],bn=me[Fe+2-32],Mn=me[Fe+3-32];me[Fe+0+0]=me[Fe+1+64]=qt+tn+1>>1,me[Fe+1+0]=me[Fe+2+64]=tn+hn+1>>1,me[Fe+2+0]=me[Fe+3+64]=hn+bn+1>>1,me[Fe+3+0]=bn+Mn+1>>1,me[Fe+0+96]=Es(Ht,xt,rt),me[Fe+0+64]=Es(xt,rt,qt),me[Fe+0+32]=me[Fe+1+96]=Es(rt,qt,tn),me[Fe+1+32]=me[Fe+2+96]=Es(qt,tn,hn),me[Fe+2+32]=me[Fe+3+96]=Es(tn,hn,bn),me[Fe+3+32]=Es(hn,bn,Mn)}function s0(me,Fe){var rt=me[Fe+0-32],xt=me[Fe+1-32],Ht=me[Fe+2-32],qt=me[Fe+3-32],tn=me[Fe+4-32],hn=me[Fe+5-32],bn=me[Fe+6-32],Mn=me[Fe+7-32];me[Fe+0+0]=rt+xt+1>>1,me[Fe+1+0]=me[Fe+0+64]=xt+Ht+1>>1,me[Fe+2+0]=me[Fe+1+64]=Ht+qt+1>>1,me[Fe+3+0]=me[Fe+2+64]=qt+tn+1>>1,me[Fe+0+32]=Es(rt,xt,Ht),me[Fe+1+32]=me[Fe+0+96]=Es(xt,Ht,qt),me[Fe+2+32]=me[Fe+1+96]=Es(Ht,qt,tn),me[Fe+3+32]=me[Fe+2+96]=Es(qt,tn,hn),me[Fe+3+64]=Es(tn,hn,bn),me[Fe+3+96]=Es(hn,bn,Mn)}function um(me,Fe){var rt=me[Fe-1+0],xt=me[Fe-1+32],Ht=me[Fe-1+64],qt=me[Fe-1+96];me[Fe+0+0]=rt+xt+1>>1,me[Fe+2+0]=me[Fe+0+32]=xt+Ht+1>>1,me[Fe+2+32]=me[Fe+0+64]=Ht+qt+1>>1,me[Fe+1+0]=Es(rt,xt,Ht),me[Fe+3+0]=me[Fe+1+32]=Es(xt,Ht,qt),me[Fe+3+32]=me[Fe+1+64]=Es(Ht,qt,qt),me[Fe+3+64]=me[Fe+2+64]=me[Fe+0+96]=me[Fe+1+96]=me[Fe+2+96]=me[Fe+3+96]=qt}function Lm(me,Fe){var rt=me[Fe-1+0],xt=me[Fe-1+32],Ht=me[Fe-1+64],qt=me[Fe-1+96],tn=me[Fe-1-32],hn=me[Fe+0-32],bn=me[Fe+1-32],Mn=me[Fe+2-32];me[Fe+0+0]=me[Fe+2+32]=rt+tn+1>>1,me[Fe+0+32]=me[Fe+2+64]=xt+rt+1>>1,me[Fe+0+64]=me[Fe+2+96]=Ht+xt+1>>1,me[Fe+0+96]=qt+Ht+1>>1,me[Fe+3+0]=Es(hn,bn,Mn),me[Fe+2+0]=Es(tn,hn,bn),me[Fe+1+0]=me[Fe+3+32]=Es(rt,tn,hn),me[Fe+1+32]=me[Fe+3+64]=Es(xt,rt,tn),me[Fe+1+64]=me[Fe+3+96]=Es(Ht,xt,rt),me[Fe+1+96]=Es(qt,Ht,xt)}function Op(me,Fe){var rt;for(rt=0;8>rt;++rt)re(me,Fe+32*rt,me,Fe-32,8)}function l0(me,Fe){var rt;for(rt=0;8>rt;++rt)ce(me,Fe,me[Fe-1],8),Fe+=32}function Ch(me,Fe,rt){var xt;for(xt=0;8>xt;++xt)ce(Fe,rt+32*xt,me,8)}function u0(me,Fe){var rt,xt=8;for(rt=0;8>rt;++rt)xt+=me[Fe+rt-32]+me[Fe-1+32*rt];Ch(xt>>4,me,Fe)}function _m(me,Fe){var rt,xt=4;for(rt=0;8>rt;++rt)xt+=me[Fe+rt-32];Ch(xt>>3,me,Fe)}function Nm(me,Fe){var rt,xt=4;for(rt=0;8>rt;++rt)xt+=me[Fe-1+32*rt];Ch(xt>>3,me,Fe)}function mg(me,Fe){Ch(128,me,Fe)}function xh(me,Fe,rt){var xt=me[Fe-rt],Ht=me[Fe+0],qt=3*(Ht-xt)+c0[1020+me[Fe-2*rt]-me[Fe+rt]],tn=Bg[112+(qt+4>>3)];me[Fe-rt]=yd[255+xt+Bg[112+(qt+3>>3)]],me[Fe+0]=yd[255+Ht-tn]}function Om(me,Fe,rt,xt){var Ht=me[Fe+0],qt=me[Fe+rt];return Wd[255+me[Fe-2*rt]-me[Fe-rt]]>xt||Wd[255+qt-Ht]>xt}function cm(me,Fe,rt,xt){return 4*Wd[255+me[Fe-rt]-me[Fe+0]]+Wd[255+me[Fe-2*rt]-me[Fe+rt]]<=xt}function Dm(me,Fe,rt,xt,Ht){var qt=me[Fe-3*rt],tn=me[Fe-2*rt],hn=me[Fe-rt],bn=me[Fe+0],Mn=me[Fe+rt],Fr=me[Fe+2*rt],si=me[Fe+3*rt];return 4*Wd[255+hn-bn]+Wd[255+tn-Mn]>xt?0:Wd[255+me[Fe-4*rt]-qt]<=Ht&&Wd[255+qt-tn]<=Ht&&Wd[255+tn-hn]<=Ht&&Wd[255+si-Fr]<=Ht&&Wd[255+Fr-Mn]<=Ht&&Wd[255+Mn-bn]<=Ht}function Dp(me,Fe,rt,xt){var Ht=2*xt+1;for(xt=0;16>xt;++xt)cm(me,Fe+xt,rt,Ht)&&xh(me,Fe+xt,rt)}function Pm(me,Fe,rt,xt){var Ht=2*xt+1;for(xt=0;16>xt;++xt)cm(me,Fe+xt*rt,1,Ht)&&xh(me,Fe+xt*rt,1)}function gg(me,Fe,rt,xt){var Ht;for(Ht=3;0<Ht;--Ht)Dp(me,Fe+=4*rt,rt,xt)}function vg(me,Fe,rt,xt){var Ht;for(Ht=3;0<Ht;--Ht)Pm(me,Fe+=4,rt,xt)}function Bh(me,Fe,rt,xt,Ht,qt,tn,hn){for(qt=2*qt+1;0<Ht--;){if(Dm(me,Fe,rt,qt,tn))if(Om(me,Fe,rt,hn))xh(me,Fe,rt);else{var bn=me,Mn=Fe,Fr=rt,si=bn[Mn-2*Fr],Un=bn[Mn-Fr],Mr=bn[Mn+0],Xr=bn[Mn+Fr],Mi=bn[Mn+2*Fr],ii=27*(Wi=c0[1020+3*(Mr-Un)+c0[1020+si-Xr]])+63>>7,Qi=18*Wi+63>>7,Wi=9*Wi+63>>7;bn[Mn-3*Fr]=yd[255+bn[Mn-3*Fr]+Wi],bn[Mn-2*Fr]=yd[255+si+Qi],bn[Mn-Fr]=yd[255+Un+ii],bn[Mn+0]=yd[255+Mr-ii],bn[Mn+Fr]=yd[255+Xr-Qi],bn[Mn+2*Fr]=yd[255+Mi-Wi]}Fe+=xt}}function Eh(me,Fe,rt,xt,Ht,qt,tn,hn){for(qt=2*qt+1;0<Ht--;){if(Dm(me,Fe,rt,qt,tn))if(Om(me,Fe,rt,hn))xh(me,Fe,rt);else{var bn=me,Mn=Fe,Fr=rt,si=bn[Mn-Fr],Un=bn[Mn+0],Mr=bn[Mn+Fr],Xr=Bg[112+(4+(Mi=3*(Un-si))>>3)],Mi=Bg[112+(Mi+3>>3)],ii=Xr+1>>1;bn[Mn-2*Fr]=yd[255+bn[Mn-2*Fr]+ii],bn[Mn-Fr]=yd[255+si+Mi],bn[Mn+0]=yd[255+Un-Xr],bn[Mn+Fr]=yd[255+Mr-ii]}Fe+=xt}}function yg(me,Fe,rt,xt,Ht,qt){Bh(me,Fe,rt,1,16,xt,Ht,qt)}function Pp(me,Fe,rt,xt,Ht,qt){Bh(me,Fe,1,rt,16,xt,Ht,qt)}function wg(me,Fe,rt,xt,Ht,qt){var tn;for(tn=3;0<tn;--tn)Eh(me,Fe+=4*rt,rt,1,16,xt,Ht,qt)}function Xe(me,Fe,rt,xt,Ht,qt){var tn;for(tn=3;0<tn;--tn)Eh(me,Fe+=4,1,rt,16,xt,Ht,qt)}function Qt(me,Fe,rt,xt,Ht,qt,tn,hn){Bh(me,Fe,Ht,1,8,qt,tn,hn),Bh(rt,xt,Ht,1,8,qt,tn,hn)}function jn(me,Fe,rt,xt,Ht,qt,tn,hn){Bh(me,Fe,1,Ht,8,qt,tn,hn),Bh(rt,xt,1,Ht,8,qt,tn,hn)}function mr(me,Fe,rt,xt,Ht,qt,tn,hn){Eh(me,Fe+4*Ht,Ht,1,8,qt,tn,hn),Eh(rt,xt+4*Ht,Ht,1,8,qt,tn,hn)}function Gr(me,Fe,rt,xt,Ht,qt,tn,hn){Eh(me,Fe+4,1,Ht,8,qt,tn,hn),Eh(rt,xt+4,1,Ht,8,qt,tn,hn)}function $i(){this.ba=new sl,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ou,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function oo(){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 Sa(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ka(){this.ua=0,this.Wa=new Js,this.vb=new Js,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new mi,this.yc=new gr}function Cs(){this.xb=this.a=0,this.l=new am,this.ca=new sl,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Kn,this.Pb=0,this.wd=new Kn,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ka,this.ab=0,this.gc=$e(4,Sa),this.Oc=0}function Rs(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new am,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Dl(me,Fe,rt,xt,Ht,qt,tn){for(me=me==null?0:me[Fe+0],Fe=0;Fe<tn;++Fe)Ht[qt+Fe]=me+rt[xt+Fe]&255,me=Ht[qt+Fe]}function qu(me,Fe,rt,xt,Ht,qt,tn){var hn;if(me==null)Dl(null,null,rt,xt,Ht,qt,tn);else for(hn=0;hn<tn;++hn)Ht[qt+hn]=me[Fe+hn]+rt[xt+hn]&255}function Ic(me,Fe,rt,xt,Ht,qt,tn){if(me==null)Dl(null,null,rt,xt,Ht,qt,tn);else{var hn,bn=me[Fe+0],Mn=bn,Fr=bn;for(hn=0;hn<tn;++hn)Mn=Fr+(bn=me[Fe+hn])-Mn,Fr=rt[xt+hn]+(-256&Mn?0>Mn?0:255:Mn)&255,Mn=bn,Ht[qt+hn]=Fr}}function Fu(me,Fe,rt,xt){var Ht=Fe.width,qt=Fe.o;if(z(me!=null&&Fe!=null),0>rt||0>=xt||rt+xt>qt)return null;if(!me.Cc){if(me.ga==null){var tn;if(me.ga=new Rs,(tn=me.ga==null)||(tn=Fe.width*Fe.o,z(me.Gb.length==0),me.Gb=fe(tn),me.Uc=0,me.Gb==null?tn=0:(me.mb=me.Gb,me.nb=me.Uc,me.rc=null,tn=1),tn=!tn),!tn){tn=me.ga;var hn=me.Fa,bn=me.P,Mn=me.qc,Fr=me.mb,si=me.nb,Un=bn+1,Mr=Mn-1,Xr=tn.l;if(z(hn!=null&&Fr!=null&&Fe!=null),ip[0]=null,ip[1]=Dl,ip[2]=qu,ip[3]=Ic,tn.ca=Fr,tn.tb=si,tn.c=Fe.width,tn.i=Fe.height,z(0<tn.c&&0<tn.i),1>=Mn)Fe=0;else if(tn.$a=3&hn[bn+0],tn.Z=hn[bn+0]>>2&3,tn.Lc=hn[bn+0]>>4&3,bn=hn[bn+0]>>6&3,0>tn.$a||1<tn.$a||4<=tn.Z||1<tn.Lc||bn)Fe=0;else if(Xr.put=cs,Xr.ac=zf,Xr.bc=gh,Xr.ma=tn,Xr.width=Fe.width,Xr.height=Fe.height,Xr.Da=Fe.Da,Xr.v=Fe.v,Xr.va=Fe.va,Xr.j=Fe.j,Xr.o=Fe.o,tn.$a)e:{z(tn.$a==1),Fe=Ip();t:for(;;){if(Fe==null){Fe=0;break e}if(z(tn!=null),tn.mc=Fe,Fe.c=tn.c,Fe.i=tn.i,Fe.l=tn.l,Fe.l.ma=tn,Fe.l.width=tn.c,Fe.l.height=tn.i,Fe.a=0,Di(Fe.m,hn,Un,Mr),!$f(tn.c,tn.i,1,Fe,null)||(Fe.ab==1&&Fe.gc[0].hc==3&&df(Fe.s)?(tn.ic=1,hn=Fe.c*Fe.i,Fe.Ta=null,Fe.Ua=0,Fe.V=fe(hn),Fe.Ba=0,Fe.V==null?(Fe.a=1,Fe=0):Fe=1):(tn.ic=0,Fe=Lp(Fe,tn.c)),!Fe))break t;Fe=1;break e}tn.mc=null,Fe=0}else Fe=Mr>=tn.c*tn.i;tn=!Fe}if(tn)return null;me.ga.Lc!=1?me.Ga=0:xt=qt-rt}z(me.ga!=null),z(rt+xt<=qt);e:{if(Fe=(hn=me.ga).c,qt=hn.l.o,hn.$a==0){if(Un=me.rc,Mr=me.Vc,Xr=me.Fa,bn=me.P+1+rt*Fe,Mn=me.mb,Fr=me.nb+rt*Fe,z(bn<=me.P+me.qc),hn.Z!=0)for(z(ip[hn.Z]!=null),tn=0;tn<xt;++tn)ip[hn.Z](Un,Mr,Xr,bn,Mn,Fr,Fe),Un=Mn,Mr=Fr,Fr+=Fe,bn+=Fe;else for(tn=0;tn<xt;++tn)re(Mn,Fr,Xr,bn,Fe),Un=Mn,Mr=Fr,Fr+=Fe,bn+=Fe;me.rc=Un,me.Vc=Mr}else{if(z(hn.mc!=null),Fe=rt+xt,z((tn=hn.mc)!=null),z(Fe<=tn.i),tn.C>=Fe)Fe=1;else if(hn.ic||mf(),hn.ic){hn=tn.V,Un=tn.Ba,Mr=tn.c;var Mi=tn.i,ii=(Xr=1,bn=tn.$/Mr,Mn=tn.$%Mr,Fr=tn.m,si=tn.s,tn.$),Qi=Mr*Mi,Wi=Mr*Fe,yo=si.wc,ao=ii<Wi?sA(si,Mn,bn):null;z(ii<=Qi),z(Fe<=Mi),z(df(si));t:for(;;){for(;!Fr.h&&ii<Wi;){if(Mn&yo||(ao=sA(si,Mn,bn)),z(ao!=null),ei(Fr),256>(Mi=Ac(ao.G[0],ao.H[0],Fr)))hn[Un+ii]=Mi,++ii,++Mn>=Mr&&(Mn=0,++bn<=Fe&&!(bn%16)&&ff(tn,bn));else{if(!(280>Mi)){Xr=0;break t}Mi=jd(Mi-256,Fr);var ja,xa=Ac(ao.G[4],ao.H[4],Fr);if(ei(Fr),!(ii>=(xa=Qd(Mr,xa=jd(xa,Fr)))&&Qi-ii>=Mi)){Xr=0;break t}for(ja=0;ja<Mi;++ja)hn[Un+ii+ja]=hn[Un+ii+ja-xa];for(ii+=Mi,Mn+=Mi;Mn>=Mr;)Mn-=Mr,++bn<=Fe&&!(bn%16)&&ff(tn,bn);ii<Wi&&Mn&yo&&(ao=sA(si,Mn,bn))}z(Fr.h==Cr(Fr))}ff(tn,bn>Fe?Fe:bn);break t}!Xr||Fr.h&&ii<Qi?(Xr=0,tn.a=Fr.h?5:3):tn.$=ii,Fe=Xr}else Fe=hf(tn,tn.V,tn.Ba,tn.c,tn.i,Fe,rm);if(!Fe){xt=0;break e}}rt+xt>=qt&&(me.Cc=1),xt=1}if(!xt)return null;if(me.Cc&&((xt=me.ga)!=null&&(xt.mc=null),me.ga=null,0<me.Ga))return alert("todo:WebPDequantizeLevels"),null}return me.nb+rt*Ht}function Mc(me,Fe,rt,xt,Ht,qt){for(;0<Ht--;){var tn,hn=me,bn=Fe+(rt?1:0),Mn=me,Fr=Fe+(rt?0:3);for(tn=0;tn<xt;++tn){var si=Mn[Fr+4*tn];si!=255&&(si*=32897,hn[bn+4*tn+0]=hn[bn+4*tn+0]*si>>23,hn[bn+4*tn+1]=hn[bn+4*tn+1]*si>>23,hn[bn+4*tn+2]=hn[bn+4*tn+2]*si>>23)}Fe+=qt}}function Lc(me,Fe,rt,xt,Ht){for(;0<xt--;){var qt;for(qt=0;qt<rt;++qt){var tn=me[Fe+2*qt+0],hn=15&(Mn=me[Fe+2*qt+1]),bn=4369*hn,Mn=(240&Mn|Mn>>4)*bn>>16;me[Fe+2*qt+0]=(240&tn|tn>>4)*bn>>16&240|(15&tn|tn<<4)*bn>>16>>4&15,me[Fe+2*qt+1]=240&Mn|hn}Fe+=Ht}}function lA(me,Fe,rt,xt,Ht,qt,tn,hn){var bn,Mn,Fr=255;for(Mn=0;Mn<Ht;++Mn){for(bn=0;bn<xt;++bn){var si=me[Fe+bn];qt[tn+4*bn]=si,Fr&=si}Fe+=rt,tn+=hn}return Fr!=255}function Sh(me,Fe,rt,xt,Ht){var qt;for(qt=0;qt<Ht;++qt)rt[xt+qt]=me[Fe+qt]>>8}function mf(){Zm=Mc,Y0=Lc,J0=lA,q0=Sh}function Fh(me,Fe,rt){Xn[me]=function(xt,Ht,qt,tn,hn,bn,Mn,Fr,si,Un,Mr,Xr,Mi,ii,Qi,Wi,yo){var ao,ja=yo-1>>1,xa=hn[bn+0]|Mn[Fr+0]<<16,$s=si[Un+0]|Mr[Xr+0]<<16;z(xt!=null);var _a=3*xa+$s+131074>>2;for(Fe(xt[Ht+0],255&_a,_a>>16,Mi,ii),qt!=null&&(_a=3*$s+xa+131074>>2,Fe(qt[tn+0],255&_a,_a>>16,Qi,Wi)),ao=1;ao<=ja;++ao){var El=hn[bn+ao]|Mn[Fr+ao]<<16,Rc=si[Un+ao]|Mr[Xr+ao]<<16,Zs=xa+El+$s+Rc+524296,Na=Zs+2*(El+$s)>>3;_a=Na+xa>>1,xa=(Zs=Zs+2*(xa+Rc)>>3)+El>>1,Fe(xt[Ht+2*ao-1],255&_a,_a>>16,Mi,ii+(2*ao-1)*rt),Fe(xt[Ht+2*ao-0],255&xa,xa>>16,Mi,ii+(2*ao-0)*rt),qt!=null&&(_a=Zs+$s>>1,xa=Na+Rc>>1,Fe(qt[tn+2*ao-1],255&_a,_a>>16,Qi,Wi+(2*ao-1)*rt),Fe(qt[tn+2*ao+0],255&xa,xa>>16,Qi,Wi+(2*ao+0)*rt)),xa=El,$s=Rc}1&yo||(_a=3*xa+$s+131074>>2,Fe(xt[Ht+yo-1],255&_a,_a>>16,Mi,ii+(yo-1)*rt),qt!=null&&(_a=3*$s+xa+131074>>2,Fe(qt[tn+yo-1],255&_a,_a>>16,Qi,Wi+(yo-1)*rt)))}}function Tm(){Gd[Eg]=d1,Gd[Sg]=cv,Gd[ov]=f1,Gd[Fg]=Av,Gd[Ig]=dv,Gd[A0]=fv,Gd[av]=h1,Gd[d0]=cv,Gd[f0]=Av,Gd[Lg]=dv,Gd[h0]=fv}function Am(me){return me&~p1?0>me?0:255:me>>hv}function Gh(me,Fe){return Am((19077*me>>8)+(26149*Fe>>8)-14234)}function Tp(me,Fe,rt){return Am((19077*me>>8)-(6419*Fe>>8)-(13320*rt>>8)+8708)}function kp(me,Fe){return Am((19077*me>>8)+(33050*Fe>>8)-17685)}function Vh(me,Fe,rt,xt,Ht){xt[Ht+0]=Gh(me,rt),xt[Ht+1]=Tp(me,Fe,rt),xt[Ht+2]=kp(me,Fe)}function uA(me,Fe,rt,xt,Ht){xt[Ht+0]=kp(me,Fe),xt[Ht+1]=Tp(me,Fe,rt),xt[Ht+2]=Gh(me,rt)}function Mp(me,Fe,rt,xt,Ht){var qt=Tp(me,Fe,rt);Fe=qt<<3&224|kp(me,Fe)>>3,xt[Ht+0]=248&Gh(me,rt)|qt>>5,xt[Ht+1]=Fe}function Up(me,Fe,rt,xt,Ht){var qt=240&kp(me,Fe)|15;xt[Ht+0]=240&Gh(me,rt)|Tp(me,Fe,rt)>>4,xt[Ht+1]=qt}function km(me,Fe,rt,xt,Ht){xt[Ht+0]=255,Vh(me,Fe,rt,xt,Ht+1)}function Mm(me,Fe,rt,xt,Ht){uA(me,Fe,rt,xt,Ht),xt[Ht+3]=255}function jA(me,Fe,rt,xt,Ht){Vh(me,Fe,rt,xt,Ht),xt[Ht+3]=255}function Ih(me,Fe,rt){Xn[me]=function(xt,Ht,qt,tn,hn,bn,Mn,Fr,si){for(var Un=Fr+(-2&si)*rt;Fr!=Un;)Fe(xt[Ht+0],qt[tn+0],hn[bn+0],Mn,Fr),Fe(xt[Ht+1],qt[tn+0],hn[bn+0],Mn,Fr+rt),Ht+=2,++tn,++bn,Fr+=2*rt;1&si&&Fe(xt[Ht+0],qt[tn+0],hn[bn+0],Mn,Fr)}}function dm(me,Fe,rt){return rt==0?me==0?Fe==0?6:5:Fe==0?4:0:rt}function bg(me,Fe,rt,xt,Ht){switch(me>>>30){case 3:Hp(Fe,rt,xt,Ht,0);break;case 2:Zd(Fe,rt,xt,Ht);break;case 1:au(Fe,rt,xt,Ht)}}function $d(me,Fe){var rt,xt,Ht=Fe.M,qt=Fe.Nb,tn=me.oc,hn=me.pc+40,bn=me.oc,Mn=me.pc+584,Fr=me.oc,si=me.pc+600;for(rt=0;16>rt;++rt)tn[hn+32*rt-1]=129;for(rt=0;8>rt;++rt)bn[Mn+32*rt-1]=129,Fr[si+32*rt-1]=129;for(0<Ht?tn[hn-1-32]=bn[Mn-1-32]=Fr[si-1-32]=129:(ce(tn,hn-32-1,127,21),ce(bn,Mn-32-1,127,9),ce(Fr,si-32-1,127,9)),xt=0;xt<me.za;++xt){var Un=Fe.ya[Fe.aa+xt];if(0<xt){for(rt=-1;16>rt;++rt)re(tn,hn+32*rt-4,tn,hn+32*rt+12,4);for(rt=-1;8>rt;++rt)re(bn,Mn+32*rt-4,bn,Mn+32*rt+4,4),re(Fr,si+32*rt-4,Fr,si+32*rt+4,4)}var Mr=me.Gd,Xr=me.Hd+xt,Mi=Un.ad,ii=Un.Hc;if(0<Ht&&(re(tn,hn-32,Mr[Xr].y,0,16),re(bn,Mn-32,Mr[Xr].f,0,8),re(Fr,si-32,Mr[Xr].ea,0,8)),Un.Za){var Qi=tn,Wi=hn-32+16;for(0<Ht&&(xt>=me.za-1?ce(Qi,Wi,Mr[Xr].y[15],4):re(Qi,Wi,Mr[Xr+1].y,0,4)),rt=0;4>rt;rt++)Qi[Wi+128+rt]=Qi[Wi+256+rt]=Qi[Wi+384+rt]=Qi[Wi+0+rt];for(rt=0;16>rt;++rt,ii<<=2)Qi=tn,Wi=hn+mv[rt],gf[Un.Ob[rt]](Qi,Wi),bg(ii,Mi,16*+rt,Qi,Wi)}else if(Qi=dm(xt,Ht,Un.Ob[0]),rp[Qi](tn,hn),ii!=0)for(rt=0;16>rt;++rt,ii<<=2)bg(ii,Mi,16*+rt,tn,hn+mv[rt]);for(rt=Un.Gc,Qi=dm(xt,Ht,Un.Dd),Nh[Qi](bn,Mn),Nh[Qi](Fr,si),ii=Mi,Qi=bn,Wi=Mn,255&(Un=0|rt)&&(170&Un?Yf(ii,256,Qi,Wi):Cu(ii,256,Qi,Wi)),Un=Fr,ii=si,255&(rt>>=8)&&(170&rt?Yf(Mi,320,Un,ii):Cu(Mi,320,Un,ii)),Ht<me.Ub-1&&(re(Mr[Xr].y,0,tn,hn+480,16),re(Mr[Xr].f,0,bn,Mn+224,8),re(Mr[Xr].ea,0,Fr,si+224,8)),rt=8*qt*me.B,Mr=me.sa,Xr=me.ta+16*xt+16*qt*me.R,Mi=me.qa,Un=me.ra+8*xt+rt,ii=me.Ha,Qi=me.Ia+8*xt+rt,rt=0;16>rt;++rt)re(Mr,Xr+rt*me.R,tn,hn+32*rt,16);for(rt=0;8>rt;++rt)re(Mi,Un+rt*me.B,bn,Mn+32*rt,8),re(ii,Qi+rt*me.B,Fr,si+32*rt,8)}}function Rp(me,Fe,rt,xt,Ht,qt,tn,hn,bn){var Mn=[0],Fr=[0],si=0,Un=bn!=null?bn.kd:0,Mr=bn!=null?bn:new oo;if(me==null||12>rt)return 7;Mr.data=me,Mr.w=Fe,Mr.ha=rt,Fe=[Fe],rt=[rt],Mr.gb=[Mr.gb];e:{var Xr=Fe,Mi=rt,ii=Mr.gb;if(z(me!=null),z(Mi!=null),z(ii!=null),ii[0]=0,12<=Mi[0]&&!E(me,Xr[0],"RIFF")){if(E(me,Xr[0]+8,"WEBP")){ii=3;break e}var Qi=Wa(me,Xr[0]+4);if(12>Qi||4294967286<Qi){ii=3;break e}if(Un&&Qi>Mi[0]-8){ii=7;break e}ii[0]=Qi,Xr[0]+=12,Mi[0]-=12}ii=0}if(ii!=0)return ii;for(Qi=0<Mr.gb[0],rt=rt[0];;){e:{var Wi=me;Mi=Fe,ii=rt;var yo=Mn,ao=Fr,ja=Xr=[0];if((_a=si=[si])[0]=0,8>ii[0])ii=7;else{if(!E(Wi,Mi[0],"VP8X")){if(Wa(Wi,Mi[0]+4)!=10){ii=3;break e}if(18>ii[0]){ii=7;break e}var xa=Wa(Wi,Mi[0]+8),$s=1+la(Wi,Mi[0]+12);if(2147483648<=$s*(Wi=1+la(Wi,Mi[0]+15))){ii=3;break e}ja!=null&&(ja[0]=xa),yo!=null&&(yo[0]=$s),ao!=null&&(ao[0]=Wi),Mi[0]+=18,ii[0]-=18,_a[0]=1}ii=0}}if(si=si[0],Xr=Xr[0],ii!=0)return ii;if(Mi=!!(2&Xr),!Qi&&si)return 3;if(qt!=null&&(qt[0]=!!(16&Xr)),tn!=null&&(tn[0]=Mi),hn!=null&&(hn[0]=0),tn=Mn[0],Xr=Fr[0],si&&Mi&&bn==null){ii=0;break}if(4>rt){ii=7;break}if(Qi&&si||!Qi&&!si&&!E(me,Fe[0],"ALPH")){rt=[rt],Mr.na=[Mr.na],Mr.P=[Mr.P],Mr.Sa=[Mr.Sa];e:{xa=me,ii=Fe,Qi=rt;var _a=Mr.gb;yo=Mr.na,ao=Mr.P,ja=Mr.Sa,$s=22,z(xa!=null),z(Qi!=null),Wi=ii[0];var El=Qi[0];for(z(yo!=null),z(ja!=null),yo[0]=null,ao[0]=null,ja[0]=0;;){if(ii[0]=Wi,Qi[0]=El,8>El){ii=7;break e}var Rc=Wa(xa,Wi+4);if(4294967286<Rc){ii=3;break e}var Zs=8+Rc+1&-2;if($s+=Zs,0<_a&&$s>_a){ii=3;break e}if(!E(xa,Wi,"VP8 ")||!E(xa,Wi,"VP8L")){ii=0;break e}if(El[0]<Zs){ii=7;break e}E(xa,Wi,"ALPH")||(yo[0]=xa,ao[0]=Wi+8,ja[0]=Rc),Wi+=Zs,El-=Zs}}if(rt=rt[0],Mr.na=Mr.na[0],Mr.P=Mr.P[0],Mr.Sa=Mr.Sa[0],ii!=0)break}rt=[rt],Mr.Ja=[Mr.Ja],Mr.xa=[Mr.xa];e:if(_a=me,ii=Fe,Qi=rt,yo=Mr.gb[0],ao=Mr.Ja,ja=Mr.xa,xa=ii[0],Wi=!E(_a,xa,"VP8 "),$s=!E(_a,xa,"VP8L"),z(_a!=null),z(Qi!=null),z(ao!=null),z(ja!=null),8>Qi[0])ii=7;else{if(Wi||$s){if(_a=Wa(_a,xa+4),12<=yo&&_a>yo-12){ii=3;break e}if(Un&&_a>Qi[0]-8){ii=7;break e}ao[0]=_a,ii[0]+=8,Qi[0]-=8,ja[0]=$s}else ja[0]=5<=Qi[0]&&_a[xa+0]==47&&!(_a[xa+4]>>5),ao[0]=Qi[0];ii=0}if(rt=rt[0],Mr.Ja=Mr.Ja[0],Mr.xa=Mr.xa[0],Fe=Fe[0],ii!=0)break;if(4294967286<Mr.Ja)return 3;if(hn==null||Mi||(hn[0]=Mr.xa?2:1),tn=[tn],Xr=[Xr],Mr.xa){if(5>rt){ii=7;break}hn=tn,Un=Xr,Mi=qt,me==null||5>rt?me=0:5<=rt&&me[Fe+0]==47&&!(me[Fe+4]>>5)?(Qi=[0],_a=[0],yo=[0],Di(ao=new Kn,me,Fe,rt),vh(ao,Qi,_a,yo)?(hn!=null&&(hn[0]=Qi[0]),Un!=null&&(Un[0]=_a[0]),Mi!=null&&(Mi[0]=yo[0]),me=1):me=0):me=0}else{if(10>rt){ii=7;break}hn=Xr,me==null||10>rt||!cg(me,Fe+3,rt-3)?me=0:(Un=me[Fe+0]|me[Fe+1]<<8|me[Fe+2]<<16,Mi=16383&(me[Fe+7]<<8|me[Fe+6]),me=16383&(me[Fe+9]<<8|me[Fe+8]),1&Un||3<(Un>>1&7)||!(Un>>4&1)||Un>>5>=Mr.Ja||!Mi||!me?me=0:(tn&&(tn[0]=Mi),hn&&(hn[0]=me),me=1))}if(!me||(tn=tn[0],Xr=Xr[0],si&&(Mn[0]!=tn||Fr[0]!=Xr)))return 3;bn!=null&&(bn[0]=Mr,bn.offset=Fe-bn.w,z(4294967286>Fe-bn.w),z(bn.offset==bn.ha-rt));break}return ii==0||ii==7&&si&&bn==null?(qt!=null&&(qt[0]|=Mr.na!=null&&0<Mr.na.length),xt!=null&&(xt[0]=tn),Ht!=null&&(Ht[0]=Xr),0):ii}function Um(me,Fe,rt){var xt=Fe.width,Ht=Fe.height,qt=0,tn=0,hn=xt,bn=Ht;if(Fe.Da=me!=null&&0<me.Da,Fe.Da&&(hn=me.cd,bn=me.bd,qt=me.v,tn=me.j,11>rt||(qt&=-2,tn&=-2),0>qt||0>tn||0>=hn||0>=bn||qt+hn>xt||tn+bn>Ht))return 0;if(Fe.v=qt,Fe.j=tn,Fe.va=qt+hn,Fe.o=tn+bn,Fe.U=hn,Fe.T=bn,Fe.da=me!=null&&0<me.da,Fe.da){if(!is(hn,bn,rt=[me.ib],qt=[me.hb]))return 0;Fe.ib=rt[0],Fe.hb=qt[0]}return Fe.ob=me!=null&&me.ob,Fe.Kb=me==null||!me.Sd,Fe.da&&(Fe.ob=Fe.ib<3*xt/4&&Fe.hb<3*Ht/4,Fe.Kb=0),1}function Rm(me){if(me==null)return 2;if(11>me.S){var Fe=me.f.RGBA;Fe.fb+=(me.height-1)*Fe.A,Fe.A=-Fe.A}else Fe=me.f.kb,me=me.height,Fe.O+=(me-1)*Fe.fa,Fe.fa=-Fe.fa,Fe.N+=(me-1>>1)*Fe.Ab,Fe.Ab=-Fe.Ab,Fe.W+=(me-1>>1)*Fe.Db,Fe.Db=-Fe.Db,Fe.F!=null&&(Fe.J+=(me-1)*Fe.lb,Fe.lb=-Fe.lb);return 0}function Xh(me,Fe,rt,xt){if(xt==null||0>=me||0>=Fe)return 2;if(rt!=null){if(rt.Da){var Ht=rt.cd,qt=rt.bd,tn=-2&rt.v,hn=-2&rt.j;if(0>tn||0>hn||0>=Ht||0>=qt||tn+Ht>me||hn+qt>Fe)return 2;me=Ht,Fe=qt}if(rt.da){if(!is(me,Fe,Ht=[rt.ib],qt=[rt.hb]))return 2;me=Ht[0],Fe=qt[0]}}xt.width=me,xt.height=Fe;e:{var bn=xt.width,Mn=xt.height;if(me=xt.S,0>=bn||0>=Mn||!(me>=Eg&&13>me))me=2;else{if(0>=xt.Rd&&xt.sd==null){tn=qt=Ht=Fe=0;var Fr=(hn=bn*gv[me])*Mn;if(11>me||(qt=(Mn+1)/2*(Fe=(bn+1)/2),me==12&&(tn=(Ht=bn)*Mn)),(Mn=fe(Fr+2*qt+tn))==null){me=1;break e}xt.sd=Mn,11>me?((bn=xt.f.RGBA).eb=Mn,bn.fb=0,bn.A=hn,bn.size=Fr):((bn=xt.f.kb).y=Mn,bn.O=0,bn.fa=hn,bn.Fd=Fr,bn.f=Mn,bn.N=0+Fr,bn.Ab=Fe,bn.Cd=qt,bn.ea=Mn,bn.W=0+Fr+qt,bn.Db=Fe,bn.Ed=qt,me==12&&(bn.F=Mn,bn.J=0+Fr+2*qt),bn.Tc=tn,bn.lb=Ht)}if(Fe=1,Ht=xt.S,qt=xt.width,tn=xt.height,Ht>=Eg&&13>Ht)if(11>Ht)me=xt.f.RGBA,Fe&=(hn=Math.abs(me.A))*(tn-1)+qt<=me.size,Fe&=hn>=qt*gv[Ht],Fe&=me.eb!=null;else{me=xt.f.kb,hn=(qt+1)/2,Fr=(tn+1)/2,bn=Math.abs(me.fa),Mn=Math.abs(me.Ab);var si=Math.abs(me.Db),Un=Math.abs(me.lb),Mr=Un*(tn-1)+qt;Fe&=bn*(tn-1)+qt<=me.Fd,Fe&=Mn*(Fr-1)+hn<=me.Cd,Fe=(Fe&=si*(Fr-1)+hn<=me.Ed)&bn>=qt&Mn>=hn&si>=hn,Fe&=me.y!=null,Fe&=me.f!=null,Fe&=me.ea!=null,Ht==12&&(Fe&=Un>=qt,Fe&=Mr<=me.Tc,Fe&=me.F!=null)}else Fe=0;me=Fe?0:2}}return me!=0||rt!=null&&rt.fd&&(me=Rm(xt)),me}var jp=64,gd=[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],vd=24,Yh=32,Lh=8,Jh=[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];Ba("Predictor0","PredictorAdd0"),Xn.Predictor0=function(){return 4278190080},Xn.Predictor1=function(me){return me},Xn.Predictor2=function(me,Fe,rt){return Fe[rt+0]},Xn.Predictor3=function(me,Fe,rt){return Fe[rt+1]},Xn.Predictor4=function(me,Fe,rt){return Fe[rt-1]},Xn.Predictor5=function(me,Fe,rt){return Va(Va(me,Fe[rt+1]),Fe[rt+0])},Xn.Predictor6=function(me,Fe,rt){return Va(me,Fe[rt-1])},Xn.Predictor7=function(me,Fe,rt){return Va(me,Fe[rt+0])},Xn.Predictor8=function(me,Fe,rt){return Va(Fe[rt-1],Fe[rt+0])},Xn.Predictor9=function(me,Fe,rt){return Va(Fe[rt+0],Fe[rt+1])},Xn.Predictor10=function(me,Fe,rt){return Va(Va(me,Fe[rt-1]),Va(Fe[rt+0],Fe[rt+1]))},Xn.Predictor11=function(me,Fe,rt){var xt=Fe[rt+0];return 0>=Ds(xt>>24&255,me>>24&255,(Fe=Fe[rt-1])>>24&255)+Ds(xt>>16&255,me>>16&255,Fe>>16&255)+Ds(xt>>8&255,me>>8&255,Fe>>8&255)+Ds(255&xt,255&me,255&Fe)?xt:me},Xn.Predictor12=function(me,Fe,rt){var xt=Fe[rt+0];return(iu((me>>24&255)+(xt>>24&255)-((Fe=Fe[rt-1])>>24&255))<<24|iu((me>>16&255)+(xt>>16&255)-(Fe>>16&255))<<16|iu((me>>8&255)+(xt>>8&255)-(Fe>>8&255))<<8|iu((255&me)+(255&xt)-(255&Fe)))>>>0},Xn.Predictor13=function(me,Fe,rt){var xt=Fe[rt-1];return(gl((me=Va(me,Fe[rt+0]))>>24&255,xt>>24&255)<<24|gl(me>>16&255,xt>>16&255)<<16|gl(me>>8&255,xt>>8&255)<<8|gl(255&me,255&xt))>>>0};var jm=Xn.PredictorAdd0;Xn.PredictorAdd1=Bl,Ba("Predictor2","PredictorAdd2"),Ba("Predictor3","PredictorAdd3"),Ba("Predictor4","PredictorAdd4"),Ba("Predictor5","PredictorAdd5"),Ba("Predictor6","PredictorAdd6"),Ba("Predictor7","PredictorAdd7"),Ba("Predictor8","PredictorAdd8"),Ba("Predictor9","PredictorAdd9"),Ba("Predictor10","PredictorAdd10"),Ba("Predictor11","PredictorAdd11"),Ba("Predictor12","PredictorAdd12"),Ba("Predictor13","PredictorAdd13");var fm=Xn.PredictorAdd2;Qa("ColorIndexInverseTransform","MapARGB","32b",function(me){return me>>8&255},function(me){return me}),Qa("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(me){return me},function(me){return me>>8&255});var wc,Cg=Xn.ColorIndexInverseTransform,Vf=Xn.MapARGB,Xf=Xn.VP8LColorIndexInverseTransformAlpha,Qm=Xn.MapAlpha,Hm=Xn.VP8LPredictorsAdd=[];Hm.length=16,(Xn.VP8LPredictors=[]).length=16,(Xn.VP8LPredictorsAdd_C=[]).length=16,(Xn.VP8LPredictors_C=[]).length=16;var zm,Km,qh,ep,tp,Qp,np,Hp,Zd,Yf,au,Cu,bc,Uc,_h,$m,hm,xg,$0,Z0,W0,G0,V0,X0,Zm,Y0,J0,q0,ev=fe(511),tv=fe(2041),nv=fe(225),rv=fe(767),iv=0,c0=tv,Bg=nv,yd=rv,Wd=ev,Eg=0,Sg=1,ov=2,Fg=3,Ig=4,A0=5,av=6,d0=7,f0=8,Lg=9,h0=10,Jv=[2,3,7],qv=[3,3,11],sv=[280,256,256,256,40],e1=[0,1,1,1,0],t1=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],n1=[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],r1=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],i1=8,p0=[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],m0=[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],Wm=null,o1=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],a1=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],lv=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],s1=[[[[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]]]],l1=[[[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]]],u1=[[[[255,255,255,255,255,255,255,255,255,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]]]],c1=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],rp=[],gf=[],Nh=[],A1=1,uv=2,ip=[],Gd=[];Fh("UpsampleRgbLinePair",Vh,3),Fh("UpsampleBgrLinePair",uA,3),Fh("UpsampleRgbaLinePair",jA,4),Fh("UpsampleBgraLinePair",Mm,4),Fh("UpsampleArgbLinePair",km,4),Fh("UpsampleRgba4444LinePair",Up,2),Fh("UpsampleRgb565LinePair",Mp,2);var d1=Xn.UpsampleRgbLinePair,f1=Xn.UpsampleBgrLinePair,cv=Xn.UpsampleRgbaLinePair,Av=Xn.UpsampleBgraLinePair,dv=Xn.UpsampleArgbLinePair,fv=Xn.UpsampleRgba4444LinePair,h1=Xn.UpsampleRgb565LinePair,_g=16,Ng=1<<_g-1,Gm=-227,g0=482,hv=6,p1=(256<<hv)-1,pv=0,m1=fe(256),g1=fe(256),v1=fe(256),y1=fe(256),w1=fe(g0-Gm),b1=fe(g0-Gm);Ih("YuvToRgbRow",Vh,3),Ih("YuvToBgrRow",uA,3),Ih("YuvToRgbaRow",jA,4),Ih("YuvToBgraRow",Mm,4),Ih("YuvToArgbRow",km,4),Ih("YuvToRgba4444Row",Up,2),Ih("YuvToRgb565Row",Mp,2);var mv=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Og=[0,2,8],C1=[8,7,6,4,4,2,2,2,1,1,1,1],x1=1;this.WebPDecodeRGBA=function(me,Fe,rt,xt,Ht){var qt=Sg,tn=new $i,hn=new sl;tn.ba=hn,hn.S=qt,hn.width=[hn.width],hn.height=[hn.height];var bn=hn.width,Mn=hn.height,Fr=new us;if(Fr==null||me==null)var si=2;else z(Fr!=null),si=Rp(me,Fe,rt,Fr.width,Fr.height,Fr.Pd,Fr.Qd,Fr.format,null);if(si!=0?bn=0:(bn!=null&&(bn[0]=Fr.width[0]),Mn!=null&&(Mn[0]=Fr.height[0]),bn=1),bn){hn.width=hn.width[0],hn.height=hn.height[0],xt!=null&&(xt[0]=hn.width),Ht!=null&&(Ht[0]=hn.height);e:{if(xt=new am,(Ht=new oo).data=me,Ht.w=Fe,Ht.ha=rt,Ht.kd=1,Fe=[0],z(Ht!=null),((me=Rp(Ht.data,Ht.w,Ht.ha,null,null,null,Fe,null,Ht))==0||me==7)&&Fe[0]&&(me=4),(Fe=me)==0){if(z(tn!=null),xt.data=Ht.data,xt.w=Ht.w+Ht.offset,xt.ha=Ht.ha-Ht.offset,xt.put=cs,xt.ac=zf,xt.bc=gh,xt.ma=tn,Ht.xa){if((me=Ip())==null){tn=1;break e}if(function(Un,Mr){var Xr=[0],Mi=[0],ii=[0];t:for(;;){if(Un==null)return 0;if(Mr==null)return Un.a=2,0;if(Un.l=Mr,Un.a=0,Di(Un.m,Mr.data,Mr.w,Mr.ha),!vh(Un.m,Xr,Mi,ii)){Un.a=3;break t}if(Un.xb=uv,Mr.width=Xr[0],Mr.height=Mi[0],!$f(Xr[0],Mi[0],1,Un,null))break t;return 1}return z(Un.a!=0),0}(me,xt)){if(xt=(Fe=Xh(xt.width,xt.height,tn.Oa,tn.ba))==0){t:{xt=me;n:for(;;){if(xt==null){xt=0;break t}if(z(xt.s.yc!=null),z(xt.s.Ya!=null),z(0<xt.s.Wb),z((rt=xt.l)!=null),z((Ht=rt.ma)!=null),xt.xb!=0){if(xt.ca=Ht.ba,xt.tb=Ht.tb,z(xt.ca!=null),!Um(Ht.Oa,rt,Fg)){xt.a=2;break n}if(!Lp(xt,rt.width)||rt.da)break n;if((rt.da||ds(xt.ca.S))&&mf(),11>xt.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),xt.ca.f.kb.F!=null&&mf()),xt.Pb&&0<xt.s.ua&&xt.s.vb.X==null&&!Pn(xt.s.vb,xt.s.Wa.Xa)){xt.a=1;break n}xt.xb=0}if(!hf(xt,xt.V,xt.Ba,xt.c,xt.i,rt.o,Wh))break n;Ht.Dc=xt.Ma,xt=1;break t}z(xt.a!=0),xt=0}xt=!xt}xt&&(Fe=me.a)}else Fe=me.a}else{if((me=new Vg)==null){tn=1;break e}if(me.Fa=Ht.na,me.P=Ht.P,me.qc=Ht.Sa,Wf(me,xt)){if((Fe=Xh(xt.width,xt.height,tn.Oa,tn.ba))==0){if(me.Aa=0,rt=tn.Oa,z((Ht=me)!=null),rt!=null){if(0<(bn=0>(bn=rt.Md)?0:100<bn?255:255*bn/100)){for(Mn=Fr=0;4>Mn;++Mn)12>(si=Ht.pb[Mn]).lc&&(si.ia=bn*C1[0>si.lc?0:si.lc]>>3),Fr|=si.ia;Fr&&(alert("todo:VP8InitRandom"),Ht.ia=1)}Ht.Ga=rt.Id,100<Ht.Ga?Ht.Ga=100:0>Ht.Ga&&(Ht.Ga=0)}(function(Un,Mr){if(Un==null)return 0;if(Mr==null)return Fc(Un,2,"NULL VP8Io parameter in VP8Decode().");if(!Un.cb&&!Wf(Un,Mr))return 0;if(z(Un.cb),Mr.ac==null||Mr.ac(Mr)){Mr.ob&&(Un.L=0);var Xr=Og[Un.L];if(Un.L==2?(Un.yb=0,Un.zb=0):(Un.yb=Mr.v-Xr>>4,Un.zb=Mr.j-Xr>>4,0>Un.yb&&(Un.yb=0),0>Un.zb&&(Un.zb=0)),Un.Va=Mr.o+15+Xr>>4,Un.Hb=Mr.va+15+Xr>>4,Un.Hb>Un.za&&(Un.Hb=Un.za),Un.Va>Un.Ub&&(Un.Va=Un.Ub),0<Un.L){var Mi=Un.ed;for(Xr=0;4>Xr;++Xr){var ii;if(Un.Qa.Cb){var Qi=Un.Qa.Lb[Xr];Un.Qa.Fb||(Qi+=Mi.Tb)}else Qi=Mi.Tb;for(ii=0;1>=ii;++ii){var Wi=Un.gd[Xr][ii],yo=Qi;if(Mi.Pc&&(yo+=Mi.vd[0],ii&&(yo+=Mi.od[0])),0<(yo=0>yo?0:63<yo?63:yo)){var ao=yo;0<Mi.wb&&(ao=4<Mi.wb?ao>>2:ao>>1)>9-Mi.wb&&(ao=9-Mi.wb),1>ao&&(ao=1),Wi.dd=ao,Wi.tc=2*yo+ao,Wi.ld=40<=yo?2:15<=yo?1:0}else Wi.tc=0;Wi.La=ii}}}Xr=0}else Fc(Un,6,"Frame setup failed"),Xr=Un.a;if(Xr=Xr==0){if(Xr){Un.$c=0,0<Un.Aa||(Un.Ic=x1);t:{Xr=Un.Ic,Mi=4*(ao=Un.za);var ja=32*ao,xa=ao+1,$s=0<Un.L?ao*(0<Un.Aa?2:1):0,_a=(Un.Aa==2?2:1)*ao;if((Wi=Mi+832+(ii=3*(16*Xr+Og[Un.L])/2*ja)+(Qi=Un.Fa!=null&&0<Un.Fa.length?Un.Kc.c*Un.Kc.i:0))!=Wi)Xr=0;else{if(Wi>Un.Vb){if(Un.Vb=0,Un.Ec=fe(Wi),Un.Fc=0,Un.Ec==null){Xr=Fc(Un,1,"no memory during frame initialization.");break t}Un.Vb=Wi}Wi=Un.Ec,yo=Un.Fc,Un.Ac=Wi,Un.Bc=yo,yo+=Mi,Un.Gd=$e(ja,lg),Un.Hd=0,Un.rb=$e(xa+1,Em),Un.sb=1,Un.wa=$s?$e($s,zd):null,Un.Y=0,Un.D.Nb=0,Un.D.wa=Un.wa,Un.D.Y=Un.Y,0<Un.Aa&&(Un.D.Y+=ao),z(!0),Un.oc=Wi,Un.pc=yo,yo+=832,Un.ya=$e(_a,Sm),Un.aa=0,Un.D.ya=Un.ya,Un.D.aa=Un.aa,Un.Aa==2&&(Un.D.aa+=ao),Un.R=16*ao,Un.B=8*ao,ao=(ja=Og[Un.L])*Un.R,ja=ja/2*Un.B,Un.sa=Wi,Un.ta=yo+ao,Un.qa=Un.sa,Un.ra=Un.ta+16*Xr*Un.R+ja,Un.Ha=Un.qa,Un.Ia=Un.ra+8*Xr*Un.B+ja,Un.$c=0,yo+=ii,Un.mb=Qi?Wi:null,Un.nb=Qi?yo:null,z(yo+Qi<=Un.Fc+Un.Vb),Ag(Un),ce(Un.Ac,Un.Bc,0,Mi),Xr=1}}if(Xr){if(Mr.ka=0,Mr.y=Un.sa,Mr.O=Un.ta,Mr.f=Un.qa,Mr.N=Un.ra,Mr.ea=Un.Ha,Mr.Vd=Un.Ia,Mr.fa=Un.R,Mr.Rc=Un.B,Mr.F=null,Mr.J=0,!iv){for(Xr=-255;255>=Xr;++Xr)ev[255+Xr]=0>Xr?-Xr:Xr;for(Xr=-1020;1020>=Xr;++Xr)tv[1020+Xr]=-128>Xr?-128:127<Xr?127:Xr;for(Xr=-112;112>=Xr;++Xr)nv[112+Xr]=-16>Xr?-16:15<Xr?15:Xr;for(Xr=-255;510>=Xr;++Xr)rv[255+Xr]=0>Xr?0:255<Xr?255:Xr;iv=1}np=lm,Hp=Yg,Yf=Gf,au=fg,Cu=hg,Zd=Xg,bc=yg,Uc=Pp,_h=Qt,$m=jn,hm=wg,xg=Xe,$0=mr,Z0=Gr,W0=Dp,G0=Pm,V0=gg,X0=vg,gf[0]=o0,gf[1]=Jg,gf[2]=r0,gf[3]=i0,gf[4]=wh,gf[5]=a0,gf[6]=bh,gf[7]=s0,gf[8]=Lm,gf[9]=um,rp[0]=t0,rp[1]=e0,rp[2]=Fm,rp[3]=pg,rp[4]=Np,rp[5]=Im,rp[6]=n0,Nh[0]=u0,Nh[1]=qg,Nh[2]=Op,Nh[3]=l0,Nh[4]=Nm,Nh[5]=_m,Nh[6]=mg,Xr=1}else Xr=0}Xr&&(Xr=function(El,Rc){for(El.M=0;El.M<El.Va;++El.M){var Zs,Na=El.Jc[El.M&El.Xb],Yo=El.m,Cc=El;for(Zs=0;Zs<Cc.za;++Zs){var Ts=Yo,Nl=Cc,Mu=Nl.Ac,cA=Nl.Bc+4*Zs,QA=Nl.zc,dc=Nl.ya[Nl.aa+Zs];if(Nl.Qa.Bb?dc.$b=Vi(Ts,Nl.Pa.jb[0])?2+Vi(Ts,Nl.Pa.jb[2]):Vi(Ts,Nl.Pa.jb[1]):dc.$b=0,Nl.kc&&(dc.Ad=Vi(Ts,Nl.Bd)),dc.Za=!Vi(Ts,145)+0,dc.Za){var _A=dc.Ob,HA=0;for(Nl=0;4>Nl;++Nl){var jc,Pl=QA[0+Nl];for(jc=0;4>jc;++jc){Pl=l1[Mu[cA+jc]][Pl];for(var Au=lv[Vi(Ts,Pl[0])];0<Au;)Au=lv[2*Au+Vi(Ts,Pl[Au])];Pl=-Au,Mu[cA+jc]=Pl}re(_A,HA,Mu,cA,4),HA+=4,QA[0+Nl]=Pl}}else Pl=Vi(Ts,156)?Vi(Ts,128)?1:3:Vi(Ts,163)?2:0,dc.Ob[0]=Pl,ce(Mu,cA,Pl,4),ce(QA,0,Pl,4);dc.Dd=Vi(Ts,142)?Vi(Ts,114)?Vi(Ts,183)?1:3:2:0}if(Cc.m.Ka)return Fc(El,7,"Premature end-of-partition0 encountered.");for(;El.ja<El.za;++El.ja){if(Cc=Na,Ts=(Yo=El).rb[Yo.sb-1],Mu=Yo.rb[Yo.sb+Yo.ja],Zs=Yo.ya[Yo.aa+Yo.ja],cA=Yo.kc?Zs.Ad:0)Ts.la=Mu.la=0,Zs.Za||(Ts.Na=Mu.Na=0),Zs.Hc=0,Zs.Gc=0,Zs.ia=0;else{var fc,du;if(Ts=Mu,Mu=Cc,cA=Yo.Pa.Xc,QA=Yo.ya[Yo.aa+Yo.ja],dc=Yo.pb[QA.$b],Nl=QA.ad,_A=0,HA=Yo.rb[Yo.sb-1],Pl=jc=0,ce(Nl,_A,0,384),QA.Za)var AA=0,vf=cA[3];else{Au=fe(16);var xc=Ts.Na+HA.Na;if(xc=Wm(Mu,cA[1],xc,dc.Eb,0,Au,0),Ts.Na=HA.Na=(0<xc)+0,1<xc)np(Au,0,Nl,_A);else{var ed=Au[0]+3>>3;for(Au=0;256>Au;Au+=16)Nl[_A+Au]=ed}AA=1,vf=cA[0]}var xu=15&Ts.la,Qc=15&HA.la;for(Au=0;4>Au;++Au){var wd=1&Qc;for(ed=du=0;4>ed;++ed)xu=xu>>1|(wd=(xc=Wm(Mu,vf,xc=wd+(1&xu),dc.Sc,AA,Nl,_A))>AA)<<7,du=du<<2|(3<xc?3:1<xc?2:Nl[_A+0]!=0),_A+=16;xu>>=4,Qc=Qc>>1|wd<<7,jc=(jc<<8|du)>>>0}for(vf=xu,AA=Qc>>4,fc=0;4>fc;fc+=2){for(du=0,xu=Ts.la>>4+fc,Qc=HA.la>>4+fc,Au=0;2>Au;++Au){for(wd=1&Qc,ed=0;2>ed;++ed)xc=wd+(1&xu),xu=xu>>1|(wd=0<(xc=Wm(Mu,cA[2],xc,dc.Qc,0,Nl,_A)))<<3,du=du<<2|(3<xc?3:1<xc?2:Nl[_A+0]!=0),_A+=16;xu>>=2,Qc=Qc>>1|wd<<5}Pl|=du<<4*fc,vf|=xu<<4<<fc,AA|=(240&Qc)<<fc}Ts.la=vf,HA.la=AA,QA.Hc=jc,QA.Gc=Pl,QA.ia=43690&Pl?0:dc.ia,cA=!(jc|Pl)}if(0<Yo.L&&(Yo.wa[Yo.Y+Yo.ja]=Yo.gd[Zs.$b][Zs.Za],Yo.wa[Yo.Y+Yo.ja].La|=!cA),Cc.Ka)return Fc(El,7,"Premature end-of-file encountered.")}if(Ag(El),Yo=Rc,Cc=1,Zs=(Na=El).D,Ts=0<Na.L&&Na.M>=Na.zb&&Na.M<=Na.Va,Na.Aa==0)t:{if(Zs.M=Na.M,Zs.uc=Ts,$d(Na,Zs),Cc=1,Zs=(du=Na.D).Nb,Ts=(Pl=Og[Na.L])*Na.R,Mu=Pl/2*Na.B,Au=16*Zs*Na.R,ed=8*Zs*Na.B,cA=Na.sa,QA=Na.ta-Ts+Au,dc=Na.qa,Nl=Na.ra-Mu+ed,_A=Na.Ha,HA=Na.Ia-Mu+ed,Qc=(xu=du.M)==0,jc=xu>=Na.Va-1,Na.Aa==2&&$d(Na,du),du.uc)for(wd=(xc=Na).D.M,z(xc.D.uc),du=xc.yb;du<xc.Hb;++du){AA=du,vf=wd;var zA=(bd=(dA=xc).D).Nb;fc=dA.R;var bd=bd.wa[bd.Y+AA],Cd=dA.sa,td=dA.ta+16*zA*fc+16*AA,xd=bd.dd,Iu=bd.tc;if(Iu!=0)if(z(3<=Iu),dA.L==1)0<AA&&G0(Cd,td,fc,Iu+4),bd.La&&X0(Cd,td,fc,Iu),0<vf&&W0(Cd,td,fc,Iu+4),bd.La&&V0(Cd,td,fc,Iu);else{var Bd=dA.B,yf=dA.qa,zp=dA.ra+8*zA*Bd+8*AA,Oh=dA.Ha,dA=dA.Ia+8*zA*Bd+8*AA;zA=bd.ld,0<AA&&(Uc(Cd,td,fc,Iu+4,xd,zA),$m(yf,zp,Oh,dA,Bd,Iu+4,xd,zA)),bd.La&&(xg(Cd,td,fc,Iu,xd,zA),Z0(yf,zp,Oh,dA,Bd,Iu,xd,zA)),0<vf&&(bc(Cd,td,fc,Iu+4,xd,zA),_h(yf,zp,Oh,dA,Bd,Iu+4,xd,zA)),bd.La&&(hm(Cd,td,fc,Iu,xd,zA),$0(yf,zp,Oh,dA,Bd,Iu,xd,zA))}}if(Na.ia&&alert("todo:DitherRow"),Yo.put!=null){if(du=16*xu,xu=16*(xu+1),Qc?(Yo.y=Na.sa,Yo.O=Na.ta+Au,Yo.f=Na.qa,Yo.N=Na.ra+ed,Yo.ea=Na.Ha,Yo.W=Na.Ia+ed):(du-=Pl,Yo.y=cA,Yo.O=QA,Yo.f=dc,Yo.N=Nl,Yo.ea=_A,Yo.W=HA),jc||(xu-=Pl),xu>Yo.o&&(xu=Yo.o),Yo.F=null,Yo.J=null,Na.Fa!=null&&0<Na.Fa.length&&du<xu&&(Yo.J=Fu(Na,Yo,du,xu-du),Yo.F=Na.mb,Yo.F==null&&Yo.F.length==0)){Cc=Fc(Na,3,"Could not decode alpha data.");break t}du<Yo.j&&(Pl=Yo.j-du,du=Yo.j,z(!(1&Pl)),Yo.O+=Na.R*Pl,Yo.N+=Na.B*(Pl>>1),Yo.W+=Na.B*(Pl>>1),Yo.F!=null&&(Yo.J+=Yo.width*Pl)),du<xu&&(Yo.O+=Yo.v,Yo.N+=Yo.v>>1,Yo.W+=Yo.v>>1,Yo.F!=null&&(Yo.J+=Yo.v),Yo.ka=du-Yo.j,Yo.U=Yo.va-Yo.v,Yo.T=xu-du,Cc=Yo.put(Yo))}Zs+1!=Na.Ic||jc||(re(Na.sa,Na.ta-Ts,cA,QA+16*Na.R,Ts),re(Na.qa,Na.ra-Mu,dc,Nl+8*Na.B,Mu),re(Na.Ha,Na.Ia-Mu,_A,HA+8*Na.B,Mu))}if(!Cc)return Fc(El,6,"Output aborted.")}return 1}(Un,Mr)),Mr.bc!=null&&Mr.bc(Mr),Xr&=1}return Xr?(Un.cb=0,Xr):0})(me,xt)||(Fe=me.a)}}else Fe=me.a}Fe==0&&tn.Oa!=null&&tn.Oa.fd&&(Fe=Rm(tn.ba))}tn=Fe}qt=tn!=0?null:11>qt?hn.f.RGBA.eb:hn.f.kb.y}else qt=null;return qt};var gv=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function Ye(Xn,Vr){for(var ln="",Dn=0;Dn<4;Dn++)ln+=String.fromCharCode(Xn[Vr++]);return ln}function ft(Xn,Vr){return Xn[Vr+0]|Xn[Vr+1]<<8}function Pt(Xn,Vr){return(Xn[Vr+0]|Xn[Vr+1]<<8|Xn[Vr+2]<<16)>>>0}function Jt(Xn,Vr){return(Xn[Vr+0]|Xn[Vr+1]<<8|Xn[Vr+2]<<16|Xn[Vr+3]<<24)>>>0}new Ge;var At=[0],In=[0],Cn=[],On=new Ge,An=y,wr=function(Xn,Vr){var ln={},Dn=0,gr=!1,dr=0,mi=0;if(ln.frames=[],!function(nn,Kn){for(var ir=0;ir<4;ir++)if(nn[Kn+ir]!="RIFF".charCodeAt(ir))return!0;return!1}(Xn,Vr)){for(Jt(Xn,Vr+=4),Vr+=8;Vr<Xn.length;){var Si=Ye(Xn,Vr),Ni=Jt(Xn,Vr+=4);Vr+=4;var ai=Ni+(1&Ni);switch(Si){case"VP8 ":case"VP8L":ln.frames[Dn]===void 0&&(ln.frames[Dn]={}),(ro=ln.frames[Dn]).src_off=gr?mi:Vr-8,ro.src_size=dr+Ni+8,Dn++,gr&&(gr=!1,dr=0,mi=0);break;case"VP8X":(ro=ln.header={}).feature_flags=Xn[Vr];var Di=Vr+4;ro.canvas_width=1+Pt(Xn,Di),Di+=3,ro.canvas_height=1+Pt(Xn,Di),Di+=3;break;case"ALPH":gr=!0,dr=ai+8,mi=Vr-8;break;case"ANIM":(ro=ln.header).bgcolor=Jt(Xn,Vr),Di=Vr+4,ro.loop_count=ft(Xn,Di),Di+=2;break;case"ANMF":var Do,ro;(ro=ln.frames[Dn]={}).offset_x=2*Pt(Xn,Vr),Vr+=3,ro.offset_y=2*Pt(Xn,Vr),Vr+=3,ro.width=1+Pt(Xn,Vr),Vr+=3,ro.height=1+Pt(Xn,Vr),Vr+=3,ro.duration=Pt(Xn,Vr),Vr+=3,Do=Xn[Vr++],ro.dispose=1&Do,ro.blend=Do>>1&1}Si!="ANMF"&&(Vr+=ai)}return ln}}(An,0);wr.response=An,wr.rgbaoutput=!0,wr.dataurl=!1;var ur=wr.header?wr.header:null,Gn=wr.frames?wr.frames:null;if(ur){ur.loop_counter=ur.loop_count,At=[ur.canvas_height],In=[ur.canvas_width];for(var ui=0;ui<Gn.length&&Gn[ui].blend!=0;ui++);}var Ri=Gn[0],Ii=On.WebPDecodeRGBA(An,Ri.src_off,Ri.src_size,In,At);Ri.rgba=Ii,Ri.imgwidth=In[0],Ri.imgheight=At[0];for(var Nr=0;Nr<In[0]*At[0]*4;Nr++)Cn[Nr]=Ii[Nr];return this.width=In,this.height=At,this.data=Cn,this}(function(y){var z,E,re,ce,fe,$e,Pe,Ge,Ye,ft=function(nn){return nn=nn||{},this.isStrokeTransparent=nn.isStrokeTransparent||!1,this.strokeOpacity=nn.strokeOpacity||1,this.strokeStyle=nn.strokeStyle||"#000000",this.fillStyle=nn.fillStyle||"#000000",this.isFillTransparent=nn.isFillTransparent||!1,this.fillOpacity=nn.fillOpacity||1,this.font=nn.font||"10px sans-serif",this.textBaseline=nn.textBaseline||"alphabetic",this.textAlign=nn.textAlign||"left",this.lineWidth=nn.lineWidth||1,this.lineJoin=nn.lineJoin||"miter",this.lineCap=nn.lineCap||"butt",this.path=nn.path||[],this.transform=nn.transform!==void 0?nn.transform.clone():new Ge,this.globalCompositeOperation=nn.globalCompositeOperation||"normal",this.globalAlpha=nn.globalAlpha||1,this.clip_path=nn.clip_path||[],this.currentPoint=nn.currentPoint||new $e,this.miterLimit=nn.miterLimit||10,this.lastPoint=nn.lastPoint||new $e,this.lineDashOffset=nn.lineDashOffset||0,this.lineDash=nn.lineDash||[],this.margin=nn.margin||[0,0,0,0],this.prevPageLastElemOffset=nn.prevPageLastElemOffset||0,this.ignoreClearRect=typeof nn.ignoreClearRect!="boolean"||nn.ignoreClearRect,this};y.events.push(["initialized",function(){this.context2d=new Pt(this),z=this.internal.f2,E=this.internal.getCoordinateString,re=this.internal.getVerticalCoordinateString,ce=this.internal.getHorizontalCoordinate,fe=this.internal.getVerticalCoordinate,$e=this.internal.Point,Pe=this.internal.Rectangle,Ge=this.internal.Matrix,Ye=new ft}]);var Pt=function(nn){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var Kn=nn;Object.defineProperty(this,"pdf",{get:function(){return Kn}});var ir=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return ir},set:function(Pn){ir=!!Pn}});var Cr=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Cr},set:function(Pn){Cr=!!Pn}});var Rr=0;Object.defineProperty(this,"posX",{get:function(){return Rr},set:function(Pn){isNaN(Pn)||(Rr=Pn)}});var ei=0;Object.defineProperty(this,"posY",{get:function(){return ei},set:function(Pn){isNaN(Pn)||(ei=Pn)}}),Object.defineProperty(this,"margin",{get:function(){return Ye.margin},set:function(Pn){var Aa;typeof Pn=="number"?Aa=[Pn,Pn,Pn,Pn]:((Aa=new Array(4))[0]=Pn[0],Aa[1]=Pn.length>=2?Pn[1]:Aa[0],Aa[2]=Pn.length>=3?Pn[2]:Aa[0],Aa[3]=Pn.length>=4?Pn[3]:Aa[1]),Ye.margin=Aa}});var Li=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Li},set:function(Pn){Li=Pn}});var Oi=0;Object.defineProperty(this,"lastBreak",{get:function(){return Oi},set:function(Pn){Oi=Pn}});var Vi=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Vi},set:function(Pn){Vi=Pn}}),Object.defineProperty(this,"ctx",{get:function(){return Ye},set:function(Pn){Pn instanceof ft&&(Ye=Pn)}}),Object.defineProperty(this,"path",{get:function(){return Ye.path},set:function(Pn){Ye.path=Pn}});var xo=[];Object.defineProperty(this,"ctxStack",{get:function(){return xo},set:function(Pn){xo=Pn}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Pn){var Aa;Aa=Jt(Pn),this.ctx.fillStyle=Aa.style,this.ctx.isFillTransparent=Aa.a===0,this.ctx.fillOpacity=Aa.a,this.pdf.setFillColor(Aa.r,Aa.g,Aa.b,{a:Aa.a}),this.pdf.setTextColor(Aa.r,Aa.g,Aa.b,{a:Aa.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Pn){var Aa=Jt(Pn);this.ctx.strokeStyle=Aa.style,this.ctx.isStrokeTransparent=Aa.a===0,this.ctx.strokeOpacity=Aa.a,Aa.a===0?this.pdf.setDrawColor(255,255,255):(Aa.a,this.pdf.setDrawColor(Aa.r,Aa.g,Aa.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Pn){["butt","round","square"].indexOf(Pn)!==-1&&(this.ctx.lineCap=Pn,this.pdf.setLineCap(Pn))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Pn){isNaN(Pn)||(this.ctx.lineWidth=Pn,this.pdf.setLineWidth(Pn))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Pn){["bevel","round","miter"].indexOf(Pn)!==-1&&(this.ctx.lineJoin=Pn,this.pdf.setLineJoin(Pn))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Pn){isNaN(Pn)||(this.ctx.miterLimit=Pn,this.pdf.setMiterLimit(Pn))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Pn){this.ctx.textBaseline=Pn}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Pn){["right","end","center","left","start"].indexOf(Pn)!==-1&&(this.ctx.textAlign=Pn)}});var ca=null,la=null,Wa=null;Object.defineProperty(this,"fontFaces",{get:function(){return Wa},set:function(Pn){ca=null,la=null,Wa=Pn}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Pn){var Aa;if(this.ctx.font=Pn,(Aa=/^\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-z0-9]+?)\s*$/i.exec(Pn))!==null){var Js=Aa[1];Aa[2];var is=Aa[3],mo=Aa[4];Aa[5];var os=Aa[6],Ba=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(mo)[2];mo=Math.floor(Ba==="px"?parseFloat(mo)*this.pdf.internal.scaleFactor:Ba==="em"?parseFloat(mo)*this.pdf.getFontSize():parseFloat(mo)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(mo);var ts=function(Qa){var yc,Ol,el=[],tl=Qa.trim();if(tl==="")return $g;if(tl in Rf)return[Rf[tl]];for(;tl!=="";){switch(Ol=null,yc=(tl=jf(tl)).charAt(0)){case'"':case"'":Ol=uf(tl.substring(1),yc);break;default:Ol=$h(tl)}if(Ol===null||(el.push(Ol[0]),(tl=jf(Ol[1]))!==""&&tl.charAt(0)!==","))return $g;tl=tl.replace(/^,/,"")}return el}(os);if(this.fontFaces){var Va=function(Qa,yc){var Ol=Qa.getFontList(),el=JSON.stringify(Ol);if(ca===null||la!==el){var tl=function($u){var Ya=[];return Object.keys($u).forEach(function(Su){$u[Su].forEach(function(ds){var Ps=null;switch(ds){case"bold":Ps={family:Su,weight:"bold"};break;case"italic":Ps={family:Su,style:"italic"};break;case"bolditalic":Ps={family:Su,weight:"bold",style:"italic"};break;case"":case"normal":Ps={family:Su}}Ps!==null&&(Ps.ref={name:Su,style:ds},Ya.push(Ps))})}),Ya}(Ol);ca=function($u){for(var Ya={},Su=0;Su<$u.length;++Su){var ds=qA($u[Su]),Ps=ds.family,Zu=ds.stretch,sl=ds.style,us=ds.weight;Ya[Ps]=Ya[Ps]||{},Ya[Ps][Zu]=Ya[Ps][Zu]||{},Ya[Ps][Zu][sl]=Ya[Ps][Zu][sl]||{},Ya[Ps][Zu][sl][us]=ds}return Ya}(tl.concat(yc)),la=el}return ca}(this.pdf,this.fontFaces),iu=ts.map(function(Qa){return{family:Qa,stretch:"normal",weight:is,style:Js}}),gl=function(Qa,yc,Ol){for(var el=(Ol=Ol||{}).defaultFontFamily||"times",tl=Object.assign({},ph,Ol.genericFontFamilies||{}),$u=null,Ya=null,Su=0;Su<yc.length;++Su)if(tl[($u=qA(yc[Su])).family]&&($u.family=tl[$u.family]),Qa.hasOwnProperty($u.family)){Ya=Qa[$u.family];break}if(!(Ya=Ya||Qa[el]))throw new Error("Could not find a font-family for the rule '"+Rd($u)+"' and default family '"+el+"'.");if(Ya=function(ds,Ps){if(Ps[ds])return Ps[ds];var Zu=Jc[ds],sl=Zu<=Jc.normal?-1:1,us=lf(Ps,sf,Zu,sl);if(!us)throw new Error("Could not find a matching font-stretch value for "+ds);return us}($u.stretch,Ya),Ya=function(ds,Ps){if(Ps[ds])return Ps[ds];for(var Zu=Sc[ds],sl=0;sl<Zu.length;++sl)if(Ps[Zu[sl]])return Ps[Zu[sl]];throw new Error("Could not find a matching font-style for "+ds)}($u.style,Ya),!(Ya=function(ds,Ps){if(Ps[ds])return Ps[ds];if(ds===400&&Ps[500])return Ps[500];if(ds===500&&Ps[400])return Ps[400];var Zu=hh[ds],sl=lf(Ps,aA,Zu,ds<400?-1:1);if(!sl)throw new Error("Could not find a matching font-weight for value "+ds);return sl}($u.weight,Ya)))throw new Error("Failed to resolve a font for the rule '"+Rd($u)+"'.");return Ya}(Va,iu);this.pdf.setFont(gl.ref.name,gl.ref.style)}else{var Ds="";(is==="bold"||parseInt(is,10)>=700||Js==="bold")&&(Ds="bold"),Js==="italic"&&(Ds+="italic"),Ds.length===0&&(Ds="normal");for(var Bl="",vl={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"},Ta=0;Ta<ts.length;Ta++){if(this.pdf.internal.getFont(ts[Ta],Ds,{noFallback:!0,disableWarning:!0})!==void 0){Bl=ts[Ta];break}if(Ds==="bolditalic"&&this.pdf.internal.getFont(ts[Ta],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Bl=ts[Ta],Ds="bold";else if(this.pdf.internal.getFont(ts[Ta],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Bl=ts[Ta],Ds="normal";break}}if(Bl===""){for(var Us=0;Us<ts.length;Us++)if(vl[ts[Us]]){Bl=vl[ts[Us]];break}}Bl=Bl===""?"Times":Bl,this.pdf.setFont(Bl,Ds)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Pn){this.ctx.globalCompositeOperation=Pn}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Pn){this.ctx.globalAlpha=Pn}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Pn){this.ctx.lineDashOffset=Pn,ro.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Pn){this.ctx.lineDash=Pn,ro.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Pn){this.ctx.ignoreClearRect=!!Pn}})};Pt.prototype.setLineDash=function(nn){this.lineDash=nn},Pt.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Pt.prototype.fill=function(){Gn.call(this,"fill",!1)},Pt.prototype.stroke=function(){Gn.call(this,"stroke",!1)},Pt.prototype.beginPath=function(){this.path=[{type:"begin"}]},Pt.prototype.moveTo=function(nn,Kn){if(isNaN(nn)||isNaN(Kn))throw hl.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var ir=this.ctx.transform.applyToPoint(new $e(nn,Kn));this.path.push({type:"mt",x:ir.x,y:ir.y}),this.ctx.lastPoint=new $e(nn,Kn)},Pt.prototype.closePath=function(){var nn=new $e(0,0),Kn=0;for(Kn=this.path.length-1;Kn!==-1;Kn--)if(this.path[Kn].type==="begin"&&(0,x.Z)(this.path[Kn+1])==="object"&&typeof this.path[Kn+1].x=="number"){nn=new $e(this.path[Kn+1].x,this.path[Kn+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new $e(nn.x,nn.y)},Pt.prototype.lineTo=function(nn,Kn){if(isNaN(nn)||isNaN(Kn))throw hl.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var ir=this.ctx.transform.applyToPoint(new $e(nn,Kn));this.path.push({type:"lt",x:ir.x,y:ir.y}),this.ctx.lastPoint=new $e(ir.x,ir.y)},Pt.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),Gn.call(this,null,!0)},Pt.prototype.quadraticCurveTo=function(nn,Kn,ir,Cr){if(isNaN(ir)||isNaN(Cr)||isNaN(nn)||isNaN(Kn))throw hl.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Rr=this.ctx.transform.applyToPoint(new $e(ir,Cr)),ei=this.ctx.transform.applyToPoint(new $e(nn,Kn));this.path.push({type:"qct",x1:ei.x,y1:ei.y,x:Rr.x,y:Rr.y}),this.ctx.lastPoint=new $e(Rr.x,Rr.y)},Pt.prototype.bezierCurveTo=function(nn,Kn,ir,Cr,Rr,ei){if(isNaN(Rr)||isNaN(ei)||isNaN(nn)||isNaN(Kn)||isNaN(ir)||isNaN(Cr))throw hl.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Li=this.ctx.transform.applyToPoint(new $e(Rr,ei)),Oi=this.ctx.transform.applyToPoint(new $e(nn,Kn)),Vi=this.ctx.transform.applyToPoint(new $e(ir,Cr));this.path.push({type:"bct",x1:Oi.x,y1:Oi.y,x2:Vi.x,y2:Vi.y,x:Li.x,y:Li.y}),this.ctx.lastPoint=new $e(Li.x,Li.y)},Pt.prototype.arc=function(nn,Kn,ir,Cr,Rr,ei){if(isNaN(nn)||isNaN(Kn)||isNaN(ir)||isNaN(Cr)||isNaN(Rr))throw hl.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ei=!!ei,!this.ctx.transform.isIdentity){var Li=this.ctx.transform.applyToPoint(new $e(nn,Kn));nn=Li.x,Kn=Li.y;var Oi=this.ctx.transform.applyToPoint(new $e(0,ir)),Vi=this.ctx.transform.applyToPoint(new $e(0,0));ir=Math.sqrt(Math.pow(Oi.x-Vi.x,2)+Math.pow(Oi.y-Vi.y,2))}Math.abs(Rr-Cr)>=2*Math.PI&&(Cr=0,Rr=2*Math.PI),this.path.push({type:"arc",x:nn,y:Kn,radius:ir,startAngle:Cr,endAngle:Rr,counterclockwise:ei})},Pt.prototype.arcTo=function(nn,Kn,ir,Cr,Rr){throw new Error("arcTo not implemented.")},Pt.prototype.rect=function(nn,Kn,ir,Cr){if(isNaN(nn)||isNaN(Kn)||isNaN(ir)||isNaN(Cr))throw hl.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(nn,Kn),this.lineTo(nn+ir,Kn),this.lineTo(nn+ir,Kn+Cr),this.lineTo(nn,Kn+Cr),this.lineTo(nn,Kn),this.lineTo(nn+ir,Kn),this.lineTo(nn,Kn)},Pt.prototype.fillRect=function(nn,Kn,ir,Cr){if(isNaN(nn)||isNaN(Kn)||isNaN(ir)||isNaN(Cr))throw hl.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!At.call(this)){var Rr={};this.lineCap!=="butt"&&(Rr.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Rr.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(nn,Kn,ir,Cr),this.fill(),Rr.hasOwnProperty("lineCap")&&(this.lineCap=Rr.lineCap),Rr.hasOwnProperty("lineJoin")&&(this.lineJoin=Rr.lineJoin)}},Pt.prototype.strokeRect=function(nn,Kn,ir,Cr){if(isNaN(nn)||isNaN(Kn)||isNaN(ir)||isNaN(Cr))throw hl.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");In.call(this)||(this.beginPath(),this.rect(nn,Kn,ir,Cr),this.stroke())},Pt.prototype.clearRect=function(nn,Kn,ir,Cr){if(isNaN(nn)||isNaN(Kn)||isNaN(ir)||isNaN(Cr))throw hl.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(nn,Kn,ir,Cr))},Pt.prototype.save=function(nn){nn=typeof nn!="boolean"||nn;for(var Kn=this.pdf.internal.getCurrentPageInfo().pageNumber,ir=0;ir<this.pdf.internal.getNumberOfPages();ir++)this.pdf.setPage(ir+1),this.pdf.internal.out("q");if(this.pdf.setPage(Kn),nn){this.ctx.fontSize=this.pdf.internal.getFontSize();var Cr=new ft(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Cr}},Pt.prototype.restore=function(nn){nn=typeof nn!="boolean"||nn;for(var Kn=this.pdf.internal.getCurrentPageInfo().pageNumber,ir=0;ir<this.pdf.internal.getNumberOfPages();ir++)this.pdf.setPage(ir+1),this.pdf.internal.out("Q");this.pdf.setPage(Kn),nn&&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)},Pt.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Jt=function(nn){var Kn,ir,Cr,Rr;if(nn.isCanvasGradient===!0&&(nn=nn.getColor()),!nn)return{r:0,g:0,b:0,a:0,style:nn};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(nn))Kn=0,ir=0,Cr=0,Rr=0;else{var ei=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(nn);if(ei!==null)Kn=parseInt(ei[1]),ir=parseInt(ei[2]),Cr=parseInt(ei[3]),Rr=1;else if((ei=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(nn))!==null)Kn=parseInt(ei[1]),ir=parseInt(ei[2]),Cr=parseInt(ei[3]),Rr=parseFloat(ei[4]);else{if(Rr=1,typeof nn=="string"&&nn.charAt(0)!=="#"){var Li=new Jm(nn);nn=Li.ok?Li.toHex():"#000000"}nn.length===4?(Kn=nn.substring(1,2),Kn+=Kn,ir=nn.substring(2,3),ir+=ir,Cr=nn.substring(3,4),Cr+=Cr):(Kn=nn.substring(1,3),ir=nn.substring(3,5),Cr=nn.substring(5,7)),Kn=parseInt(Kn,16),ir=parseInt(ir,16),Cr=parseInt(Cr,16)}}return{r:Kn,g:ir,b:Cr,a:Rr,style:nn}},At=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},In=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Pt.prototype.fillText=function(nn,Kn,ir,Cr){if(isNaN(Kn)||isNaN(ir)||typeof nn!="string")throw hl.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Cr=isNaN(Cr)?void 0:Cr,!At.call(this)){var Rr=ai(this.ctx.transform.rotation),ei=this.ctx.transform.scaleX;Dn.call(this,{text:nn,x:Kn,y:ir,scale:ei,angle:Rr,align:this.textAlign,maxWidth:Cr})}},Pt.prototype.strokeText=function(nn,Kn,ir,Cr){if(isNaN(Kn)||isNaN(ir)||typeof nn!="string")throw hl.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!In.call(this)){Cr=isNaN(Cr)?void 0:Cr;var Rr=ai(this.ctx.transform.rotation),ei=this.ctx.transform.scaleX;Dn.call(this,{text:nn,x:Kn,y:ir,scale:ei,renderingMode:"stroke",angle:Rr,align:this.textAlign,maxWidth:Cr})}},Pt.prototype.measureText=function(nn){if(typeof nn!="string")throw hl.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Kn=this.pdf,ir=this.pdf.internal.scaleFactor,Cr=Kn.internal.getFontSize(),Rr=Kn.getStringUnitWidth(nn)*Cr/Kn.internal.scaleFactor;return new function(ei){var Li=(ei=ei||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Li}}),this}({width:Rr*=Math.round(96*ir/72*1e4)/1e4})},Pt.prototype.scale=function(nn,Kn){if(isNaN(nn)||isNaN(Kn))throw hl.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var ir=new Ge(nn,0,0,Kn,0,0);this.ctx.transform=this.ctx.transform.multiply(ir)},Pt.prototype.rotate=function(nn){if(isNaN(nn))throw hl.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Kn=new Ge(Math.cos(nn),Math.sin(nn),-Math.sin(nn),Math.cos(nn),0,0);this.ctx.transform=this.ctx.transform.multiply(Kn)},Pt.prototype.translate=function(nn,Kn){if(isNaN(nn)||isNaN(Kn))throw hl.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var ir=new Ge(1,0,0,1,nn,Kn);this.ctx.transform=this.ctx.transform.multiply(ir)},Pt.prototype.transform=function(nn,Kn,ir,Cr,Rr,ei){if(isNaN(nn)||isNaN(Kn)||isNaN(ir)||isNaN(Cr)||isNaN(Rr)||isNaN(ei))throw hl.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Li=new Ge(nn,Kn,ir,Cr,Rr,ei);this.ctx.transform=this.ctx.transform.multiply(Li)},Pt.prototype.setTransform=function(nn,Kn,ir,Cr,Rr,ei){nn=isNaN(nn)?1:nn,Kn=isNaN(Kn)?0:Kn,ir=isNaN(ir)?0:ir,Cr=isNaN(Cr)?1:Cr,Rr=isNaN(Rr)?0:Rr,ei=isNaN(ei)?0:ei,this.ctx.transform=new Ge(nn,Kn,ir,Cr,Rr,ei)};var Cn=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Pt.prototype.drawImage=function(nn,Kn,ir,Cr,Rr,ei,Li,Oi,Vi){var xo=this.pdf.getImageProperties(nn),ca=1,la=1,Wa=1,Pn=1;Cr!==void 0&&Oi!==void 0&&(Wa=Oi/Cr,Pn=Vi/Rr,ca=xo.width/Cr*Oi/Cr,la=xo.height/Rr*Vi/Rr),ei===void 0&&(ei=Kn,Li=ir,Kn=0,ir=0),Cr!==void 0&&Oi===void 0&&(Oi=Cr,Vi=Rr),Cr===void 0&&Oi===void 0&&(Oi=xo.width,Vi=xo.height);var Aa=this.ctx.transform.decompose(),Js=ai(Aa.rotate.shx),is=new Ge,mo=(is=(is=(is=is.multiply(Aa.translate)).multiply(Aa.skew)).multiply(Aa.scale)).applyToRectangle(new Pe(ei-Kn*Wa,Li-ir*Pn,Cr*ca,Rr*la));if(this.autoPaging){for(var os,Ba=On.call(this,mo),ts=[],Va=0;Va<Ba.length;Va+=1)ts.indexOf(Ba[Va])===-1&&ts.push(Ba[Va]);ur(ts);for(var iu=ts[0],gl=ts[ts.length-1],Ds=iu;Ds<gl+1;Ds++){this.pdf.setPage(Ds);var Bl=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],vl=Ds===1?this.posY+this.margin[0]:this.margin[0],Ta=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Us=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Qa=Ds===1?0:Ta+(Ds-2)*Us;if(this.ctx.clip_path.length!==0){var yc=this.path;os=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=wr(os,this.posX+this.margin[3],-Qa+vl+this.ctx.prevPageLastElemOffset),ui.call(this,"fill",!0),this.path=yc}var Ol=JSON.parse(JSON.stringify(mo));Ol=wr([Ol],this.posX+this.margin[3],-Qa+vl+this.ctx.prevPageLastElemOffset)[0];var el=(Ds>iu||Ds<gl)&&Cn.call(this);el&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Bl,Us,null).clip().discardPath()),this.pdf.addImage(nn,"JPEG",Ol.x,Ol.y,Ol.w,Ol.h,null,null,Js),el&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(nn,"JPEG",mo.x,mo.y,mo.w,mo.h,null,null,Js)};var On=function(nn,Kn,ir){var Cr=[];Kn=Kn||this.pdf.internal.pageSize.width,ir=ir||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Rr=this.posY+this.ctx.prevPageLastElemOffset;switch(nn.type){default:case"mt":case"lt":Cr.push(Math.floor((nn.y+Rr)/ir)+1);break;case"arc":Cr.push(Math.floor((nn.y+Rr-nn.radius)/ir)+1),Cr.push(Math.floor((nn.y+Rr+nn.radius)/ir)+1);break;case"qct":var ei=Di(this.ctx.lastPoint.x,this.ctx.lastPoint.y,nn.x1,nn.y1,nn.x,nn.y);Cr.push(Math.floor((ei.y+Rr)/ir)+1),Cr.push(Math.floor((ei.y+ei.h+Rr)/ir)+1);break;case"bct":var Li=Do(this.ctx.lastPoint.x,this.ctx.lastPoint.y,nn.x1,nn.y1,nn.x2,nn.y2,nn.x,nn.y);Cr.push(Math.floor((Li.y+Rr)/ir)+1),Cr.push(Math.floor((Li.y+Li.h+Rr)/ir)+1);break;case"rect":Cr.push(Math.floor((nn.y+Rr)/ir)+1),Cr.push(Math.floor((nn.y+nn.h+Rr)/ir)+1)}for(var Oi=0;Oi<Cr.length;Oi+=1)for(;this.pdf.internal.getNumberOfPages()<Cr[Oi];)An.call(this);return Cr},An=function(){var nn=this.fillStyle,Kn=this.strokeStyle,ir=this.font,Cr=this.lineCap,Rr=this.lineWidth,ei=this.lineJoin;this.pdf.addPage(),this.fillStyle=nn,this.strokeStyle=Kn,this.font=ir,this.lineCap=Cr,this.lineWidth=Rr,this.lineJoin=ei},wr=function(nn,Kn,ir){for(var Cr=0;Cr<nn.length;Cr++)switch(nn[Cr].type){case"bct":nn[Cr].x2+=Kn,nn[Cr].y2+=ir;case"qct":nn[Cr].x1+=Kn,nn[Cr].y1+=ir;default:nn[Cr].x+=Kn,nn[Cr].y+=ir}return nn},ur=function(nn){return nn.sort(function(Kn,ir){return Kn-ir})},Gn=function(nn,Kn){var ir=this.fillStyle,Cr=this.strokeStyle,Rr=this.lineCap,ei=this.lineWidth,Li=Math.abs(ei*this.ctx.transform.scaleX),Oi=this.lineJoin;if(this.autoPaging){for(var Vi,xo,ca=JSON.parse(JSON.stringify(this.path)),la=JSON.parse(JSON.stringify(this.path)),Wa=[],Pn=0;Pn<la.length;Pn++)if(la[Pn].x!==void 0)for(var Aa=On.call(this,la[Pn]),Js=0;Js<Aa.length;Js+=1)Wa.indexOf(Aa[Js])===-1&&Wa.push(Aa[Js]);for(var is=0;is<Wa.length;is++)for(;this.pdf.internal.getNumberOfPages()<Wa[is];)An.call(this);ur(Wa);for(var mo=Wa[0],os=Wa[Wa.length-1],Ba=mo;Ba<os+1;Ba++){this.pdf.setPage(Ba),this.fillStyle=ir,this.strokeStyle=Cr,this.lineCap=Rr,this.lineWidth=Li,this.lineJoin=Oi;var ts=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Va=Ba===1?this.posY+this.margin[0]:this.margin[0],iu=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],gl=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ds=Ba===1?0:iu+(Ba-2)*gl;if(this.ctx.clip_path.length!==0){var Bl=this.path;Vi=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=wr(Vi,this.posX+this.margin[3],-Ds+Va+this.ctx.prevPageLastElemOffset),ui.call(this,nn,!0),this.path=Bl}if(xo=JSON.parse(JSON.stringify(ca)),this.path=wr(xo,this.posX+this.margin[3],-Ds+Va+this.ctx.prevPageLastElemOffset),Kn===!1||Ba===0){var vl=(Ba>mo||Ba<os)&&Cn.call(this);vl&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ts,gl,null).clip().discardPath()),ui.call(this,nn,Kn),vl&&this.pdf.restoreGraphicsState()}this.lineWidth=ei}this.path=ca}else this.lineWidth=Li,ui.call(this,nn,Kn),this.lineWidth=ei},ui=function(nn,Kn){if((nn!=="stroke"||Kn||!In.call(this))&&(nn==="stroke"||Kn||!At.call(this))){for(var ir,Cr,Rr=[],ei=this.path,Li=0;Li<ei.length;Li++){var Oi=ei[Li];switch(Oi.type){case"begin":Rr.push({begin:!0});break;case"close":Rr.push({close:!0});break;case"mt":Rr.push({start:Oi,deltas:[],abs:[]});break;case"lt":var Vi=Rr.length;if(ei[Li-1]&&!isNaN(ei[Li-1].x)&&(ir=[Oi.x-ei[Li-1].x,Oi.y-ei[Li-1].y],Vi>0)){for(;Vi>=0;Vi--)if(Rr[Vi-1].close!==!0&&Rr[Vi-1].begin!==!0){Rr[Vi-1].deltas.push(ir),Rr[Vi-1].abs.push(Oi);break}}break;case"bct":ir=[Oi.x1-ei[Li-1].x,Oi.y1-ei[Li-1].y,Oi.x2-ei[Li-1].x,Oi.y2-ei[Li-1].y,Oi.x-ei[Li-1].x,Oi.y-ei[Li-1].y],Rr[Rr.length-1].deltas.push(ir);break;case"qct":var xo=ei[Li-1].x+2/3*(Oi.x1-ei[Li-1].x),ca=ei[Li-1].y+2/3*(Oi.y1-ei[Li-1].y),la=Oi.x+2/3*(Oi.x1-Oi.x),Wa=Oi.y+2/3*(Oi.y1-Oi.y),Pn=Oi.x,Aa=Oi.y;ir=[xo-ei[Li-1].x,ca-ei[Li-1].y,la-ei[Li-1].x,Wa-ei[Li-1].y,Pn-ei[Li-1].x,Aa-ei[Li-1].y],Rr[Rr.length-1].deltas.push(ir);break;case"arc":Rr.push({deltas:[],abs:[],arc:!0}),Array.isArray(Rr[Rr.length-1].abs)&&Rr[Rr.length-1].abs.push(Oi)}}Cr=Kn?null:nn==="stroke"?"stroke":"fill";for(var Js=!1,is=0;is<Rr.length;is++)if(Rr[is].arc)for(var mo=Rr[is].abs,os=0;os<mo.length;os++){var Ba=mo[os];Ba.type==="arc"?Nr.call(this,Ba.x,Ba.y,Ba.radius,Ba.startAngle,Ba.endAngle,Ba.counterclockwise,void 0,Kn,!Js):gr.call(this,Ba.x,Ba.y),Js=!0}else if(Rr[is].close===!0)this.pdf.internal.out("h"),Js=!1;else if(Rr[is].begin!==!0){var ts=Rr[is].start.x,Va=Rr[is].start.y;dr.call(this,Rr[is].deltas,ts,Va),Js=!0}Cr&&Xn.call(this,Cr),Kn&&Vr.call(this)}},Ri=function(nn){var Kn=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,ir=Kn*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return nn-ir;case"top":return nn+Kn-ir;case"hanging":return nn+Kn-2*ir;case"middle":return nn+Kn/2-ir;default:return nn}},Ii=function(nn){return nn+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Pt.prototype.createLinearGradient=function(){var nn=function(){};return nn.colorStops=[],nn.addColorStop=function(Kn,ir){this.colorStops.push([Kn,ir])},nn.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},nn.isCanvasGradient=!0,nn},Pt.prototype.createPattern=function(){return this.createLinearGradient()},Pt.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Nr=function(nn,Kn,ir,Cr,Rr,ei,Li,Oi,Vi){for(var xo=Si.call(this,ir,Cr,Rr,ei),ca=0;ca<xo.length;ca++){var la=xo[ca];ca===0&&(Vi?ln.call(this,la.x1+nn,la.y1+Kn):gr.call(this,la.x1+nn,la.y1+Kn)),mi.call(this,nn,Kn,la.x2,la.y2,la.x3,la.y3,la.x4,la.y4)}Oi?Vr.call(this):Xn.call(this,Li)},Xn=function(nn){switch(nn){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Vr=function(){this.pdf.clip(),this.pdf.discardPath()},ln=function(nn,Kn){this.pdf.internal.out(E(nn)+" "+re(Kn)+" m")},Dn=function(nn){var Kn;switch(nn.align){case"right":case"end":Kn="right";break;case"center":Kn="center";break;default:Kn="left"}var ir,Cr,Rr,ei=this.pdf.getTextDimensions(nn.text),Li=Ri.call(this,nn.y),Oi=Ii.call(this,Li)-ei.h,Vi=this.ctx.transform.applyToPoint(new $e(nn.x,Li));if(this.autoPaging){var xo=this.ctx.transform.decompose(),ca=new Ge;ca=(ca=(ca=ca.multiply(xo.translate)).multiply(xo.skew)).multiply(xo.scale);for(var la=this.ctx.transform.applyToRectangle(new Pe(nn.x,Li,ei.w,ei.h)),Wa=ca.applyToRectangle(new Pe(nn.x,Oi,ei.w,ei.h)),Pn=On.call(this,Wa),Aa=[],Js=0;Js<Pn.length;Js+=1)Aa.indexOf(Pn[Js])===-1&&Aa.push(Pn[Js]);ur(Aa);for(var is=Aa[0],mo=Aa[Aa.length-1],os=is;os<mo+1;os++){this.pdf.setPage(os);var Ba=os===1?this.posY+this.margin[0]:this.margin[0],ts=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Va=this.pdf.internal.pageSize.height-this.margin[2],iu=Va-this.margin[0],gl=this.pdf.internal.pageSize.width-this.margin[1],Ds=gl-this.margin[3],Bl=os===1?0:ts+(os-2)*iu;if(this.ctx.clip_path.length!==0){var vl=this.path;ir=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=wr(ir,this.posX+this.margin[3],-1*Bl+Ba),ui.call(this,"fill",!0),this.path=vl}var Ta=wr([JSON.parse(JSON.stringify(Wa))],this.posX+this.margin[3],-Bl+Ba+this.ctx.prevPageLastElemOffset)[0];nn.scale>=.01&&(Cr=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Cr*nn.scale),Rr=this.lineWidth,this.lineWidth=Rr*nn.scale);var Us=this.autoPaging!=="text";if(Us||Ta.y+Ta.h<=Va){if(Us||Ta.y>=Ba&&Ta.x<=gl){var Qa=Us?nn.text:this.pdf.splitTextToSize(nn.text,nn.maxWidth||gl-Ta.x)[0],yc=wr([JSON.parse(JSON.stringify(la))],this.posX+this.margin[3],-Bl+Ba+this.ctx.prevPageLastElemOffset)[0],Ol=Us&&(os>is||os<mo)&&Cn.call(this);Ol&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ds,iu,null).clip().discardPath()),this.pdf.text(Qa,yc.x,yc.y,{angle:nn.angle,align:Kn,renderingMode:nn.renderingMode}),Ol&&this.pdf.restoreGraphicsState()}}else Ta.y<Va&&(this.ctx.prevPageLastElemOffset+=Va-Ta.y);nn.scale>=.01&&(this.pdf.setFontSize(Cr),this.lineWidth=Rr)}}else nn.scale>=.01&&(Cr=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Cr*nn.scale),Rr=this.lineWidth,this.lineWidth=Rr*nn.scale),this.pdf.text(nn.text,Vi.x+this.posX,Vi.y+this.posY,{angle:nn.angle,align:Kn,renderingMode:nn.renderingMode,maxWidth:nn.maxWidth}),nn.scale>=.01&&(this.pdf.setFontSize(Cr),this.lineWidth=Rr)},gr=function(nn,Kn,ir,Cr){ir=ir||0,Cr=Cr||0,this.pdf.internal.out(E(nn+ir)+" "+re(Kn+Cr)+" l")},dr=function(nn,Kn,ir){return this.pdf.lines(nn,Kn,ir,null,null)},mi=function(nn,Kn,ir,Cr,Rr,ei,Li,Oi){this.pdf.internal.out([z(ce(ir+nn)),z(fe(Cr+Kn)),z(ce(Rr+nn)),z(fe(ei+Kn)),z(ce(Li+nn)),z(fe(Oi+Kn)),"c"].join(" "))},Si=function(nn,Kn,ir,Cr){for(var Rr=2*Math.PI,ei=Math.PI/2;Kn>ir;)Kn-=Rr;var Li=Math.abs(ir-Kn);Li<Rr&&Cr&&(Li=Rr-Li);for(var Oi=[],Vi=Cr?-1:1,xo=Kn;Li>1e-5;){var ca=xo+Vi*Math.min(Li,ei);Oi.push(Ni.call(this,nn,xo,ca)),Li-=Math.abs(ca-xo),xo=ca}return Oi},Ni=function(nn,Kn,ir){var Cr=(ir-Kn)/2,Rr=nn*Math.cos(Cr),ei=nn*Math.sin(Cr),Li=Rr,Oi=-ei,Vi=Li*Li+Oi*Oi,xo=Vi+Li*Rr+Oi*ei,ca=4/3*(Math.sqrt(2*Vi*xo)-xo)/(Li*ei-Oi*Rr),la=Li-ca*Oi,Wa=Oi+ca*Li,Pn=la,Aa=-Wa,Js=Cr+Kn,is=Math.cos(Js),mo=Math.sin(Js);return{x1:nn*Math.cos(Kn),y1:nn*Math.sin(Kn),x2:la*is-Wa*mo,y2:la*mo+Wa*is,x3:Pn*is-Aa*mo,y3:Pn*mo+Aa*is,x4:nn*Math.cos(ir),y4:nn*Math.sin(ir)}},ai=function(nn){return 180*nn/Math.PI},Di=function(nn,Kn,ir,Cr,Rr,ei){var Li=nn+.5*(ir-nn),Oi=Kn+.5*(Cr-Kn),Vi=Rr+.5*(ir-Rr),xo=ei+.5*(Cr-ei),ca=Math.min(nn,Rr,Li,Vi),la=Math.max(nn,Rr,Li,Vi),Wa=Math.min(Kn,ei,Oi,xo),Pn=Math.max(Kn,ei,Oi,xo);return new Pe(ca,Wa,la-ca,Pn-Wa)},Do=function(nn,Kn,ir,Cr,Rr,ei,Li,Oi){var Vi,xo,ca,la,Wa,Pn,Aa,Js,is,mo,os,Ba,ts,Va,iu=ir-nn,gl=Cr-Kn,Ds=Rr-ir,Bl=ei-Cr,vl=Li-Rr,Ta=Oi-ei;for(xo=0;xo<41;xo++)is=(Aa=(ca=nn+(Vi=xo/40)*iu)+Vi*((Wa=ir+Vi*Ds)-ca))+Vi*(Wa+Vi*(Rr+Vi*vl-Wa)-Aa),mo=(Js=(la=Kn+Vi*gl)+Vi*((Pn=Cr+Vi*Bl)-la))+Vi*(Pn+Vi*(ei+Vi*Ta-Pn)-Js),xo==0?(os=is,Ba=mo,ts=is,Va=mo):(os=Math.min(os,is),Ba=Math.min(Ba,mo),ts=Math.max(ts,is),Va=Math.max(Va,mo));return new Pe(Math.round(os),Math.round(Ba),Math.round(ts-os),Math.round(Va-Ba))},ro=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var nn,Kn,ir=(nn=this.ctx.lineDash,Kn=this.ctx.lineDashOffset,JSON.stringify({lineDash:nn,lineDashOffset:Kn}));this.prevLineDash!==ir&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=ir)}}})(La.API),function(y){var z=function($e){var Pe,Ge,Ye,ft,Pt,Jt,At,In,Cn,On;for(/[^\x00-\xFF]/.test($e),Ge=[],Ye=0,ft=($e+=Pe="\0\0\0\0".slice($e.length%4||4)).length;ft>Ye;Ye+=4)(Pt=($e.charCodeAt(Ye)<<24)+($e.charCodeAt(Ye+1)<<16)+($e.charCodeAt(Ye+2)<<8)+$e.charCodeAt(Ye+3))!==0?(Jt=(Pt=((Pt=((Pt=((Pt=(Pt-(On=Pt%85))/85)-(Cn=Pt%85))/85)-(In=Pt%85))/85)-(At=Pt%85))/85)%85,Ge.push(Jt+33,At+33,In+33,Cn+33,On+33)):Ge.push(122);return function(An,wr){for(var ur=wr;ur>0;ur--)An.pop()}(Ge,Pe.length),String.fromCharCode.apply(String,Ge)+"~>"},E=function($e){var Pe,Ge,Ye,ft,Pt,Jt=String,At="length",In=255,Cn="charCodeAt",On="slice",An="replace";for($e[On](-2),$e=$e[On](0,-2)[An](/\s/g,"")[An]("z","!!!!!"),Ye=[],ft=0,Pt=($e+=Pe="uuuuu"[On]($e[At]%5||5))[At];Pt>ft;ft+=5)Ge=52200625*($e[Cn](ft)-33)+614125*($e[Cn](ft+1)-33)+7225*($e[Cn](ft+2)-33)+85*($e[Cn](ft+3)-33)+($e[Cn](ft+4)-33),Ye.push(In&Ge>>24,In&Ge>>16,In&Ge>>8,In&Ge);return function(wr,ur){for(var Gn=ur;Gn>0;Gn--)wr.pop()}(Ye,Pe[At]),Jt.fromCharCode.apply(Jt,Ye)},re=function($e){return $e.split("").map(function(Pe){return("0"+Pe.charCodeAt().toString(16)).slice(-2)}).join("")+">"},ce=function($e){var Pe=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(($e=$e.replace(/\s/g,"")).indexOf(">")!==-1&&($e=$e.substr(0,$e.indexOf(">"))),$e.length%2&&($e+="0"),Pe.test($e)===!1)return"";for(var Ge="",Ye=0;Ye<$e.length;Ye+=2)Ge+=String.fromCharCode("0x"+($e[Ye]+$e[Ye+1]));return Ge},fe=function($e){for(var Pe=new Uint8Array($e.length),Ge=$e.length;Ge--;)Pe[Ge]=$e.charCodeAt(Ge);return(Pe=Ai(Pe)).reduce(function(Ye,ft){return Ye+String.fromCharCode(ft)},"")};y.processDataByFilters=function($e,Pe){var Ge=0,Ye=$e||"",ft=[];for(typeof(Pe=Pe||[])=="string"&&(Pe=[Pe]),Ge=0;Ge<Pe.length;Ge+=1)switch(Pe[Ge]){case"ASCII85Decode":case"/ASCII85Decode":Ye=E(Ye),ft.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":Ye=z(Ye),ft.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":Ye=ce(Ye),ft.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":Ye=re(Ye),ft.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":Ye=fe(Ye),ft.push("/FlateDecode");break;default:throw new Error('The filter: "'+Pe[Ge]+'" is not implemented')}return{data:Ye,reverseChain:ft.reverse().join(" ")}}}(La.API),function(y){y.loadFile=function(z,E,re){return function(ce,fe,$e){fe=fe!==!1,$e=typeof $e=="function"?$e:function(){};var Pe=void 0;try{Pe=function(Ge,Ye,ft){var Pt=new XMLHttpRequest,Jt=0,At=function(In){var Cn=In.length,On=[],An=String.fromCharCode;for(Jt=0;Jt<Cn;Jt+=1)On.push(An(255&In.charCodeAt(Jt)));return On.join("")};if(Pt.open("GET",Ge,!Ye),Pt.overrideMimeType("text/plain; charset=x-user-defined"),Ye===!1&&(Pt.onload=function(){Pt.status===200?ft(At(this.responseText)):ft(void 0)}),Pt.send(null),Ye&&Pt.status===200)return At(Pt.responseText)}(ce,fe,$e)}catch(Ge){}return Pe}(z,E,re)},y.loadImageFile=y.loadFile}(La.API),function(y){function z(){return(Pa.html2canvas?Promise.resolve(Pa.html2canvas):Promise.resolve().then(ae.t.bind(ae,64270,23))).catch(function(Pe){return Promise.reject(new Error("Could not load html2canvas: "+Pe))}).then(function(Pe){return Pe.default?Pe.default:Pe})}function E(){return(Pa.DOMPurify?Promise.resolve(Pa.DOMPurify):ae.e(5911).then(ae.bind(ae,85911))).catch(function(Pe){return Promise.reject(new Error("Could not load dompurify: "+Pe))}).then(function(Pe){return Pe.default?Pe.default:Pe})}var re=function(Pe){var Ge=(0,x.Z)(Pe);return Ge==="undefined"?"undefined":Ge==="string"||Pe instanceof String?"string":Ge==="number"||Pe instanceof Number?"number":Ge==="function"||Pe instanceof Function?"function":Pe&&Pe.constructor===Array?"array":Pe&&Pe.nodeType===1?"element":Ge==="object"?"object":"unknown"},ce=function(Pe,Ge){var Ye=document.createElement(Pe);for(var ft in Ge.className&&(Ye.className=Ge.className),Ge.innerHTML&&Ge.dompurify&&(Ye.innerHTML=Ge.dompurify.sanitize(Ge.innerHTML)),Ge.style)Ye.style[ft]=Ge.style[ft];return Ye},fe=function Pe(Ge,Ye){for(var ft=Ge.nodeType===3?document.createTextNode(Ge.nodeValue):Ge.cloneNode(!1),Pt=Ge.firstChild;Pt;Pt=Pt.nextSibling)Ye!==!0&&Pt.nodeType===1&&Pt.nodeName==="SCRIPT"||ft.appendChild(Pe(Pt,Ye));return Ge.nodeType===1&&(Ge.nodeName==="CANVAS"?(ft.width=Ge.width,ft.height=Ge.height,ft.getContext("2d").drawImage(Ge,0,0)):Ge.nodeName!=="TEXTAREA"&&Ge.nodeName!=="SELECT"||(ft.value=Ge.value),ft.addEventListener("load",function(){ft.scrollTop=Ge.scrollTop,ft.scrollLeft=Ge.scrollLeft},!0)),ft},$e=function Pe(Ge){var Ye=Object.assign(Pe.convert(Promise.resolve()),JSON.parse(JSON.stringify(Pe.template))),ft=Pe.convert(Promise.resolve(),Ye);return(ft=ft.setProgress(1,Pe,1,[Pe])).set(Ge)};($e.prototype=Object.create(Promise.prototype)).constructor=$e,$e.convert=function(Pe,Ge){return Pe.__proto__=Ge||$e.prototype,Pe},$e.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"}},$e.prototype.from=function(Pe,Ge){return this.then(function(){switch(Ge=Ge||function(Ye){switch(re(Ye)){case"string":return"string";case"element":return Ye.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(Pe),Ge){case"string":return this.then(E).then(function(Ye){return this.set({src:ce("div",{innerHTML:Pe,dompurify:Ye})})});case"element":return this.set({src:Pe});case"canvas":return this.set({canvas:Pe});case"img":return this.set({img:Pe});default:return this.error("Unknown source type.")}})},$e.prototype.to=function(Pe){switch(Pe){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},$e.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 Pe={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},Ge=fe(this.prop.src,this.opt.html2canvas.javascriptEnabled);Ge.tagName==="BODY"&&(Pe.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=ce("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=ce("div",{className:"html2pdf__container",style:Pe}),this.prop.container.appendChild(Ge),this.prop.container.firstChild.appendChild(ce("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"})},$e.prototype.toCanvas=function(){var Pe=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Pe).then(z).then(function(Ge){var Ye=Object.assign({},this.opt.html2canvas);return delete Ye.onrendered,Ge(this.prop.container,Ye)}).then(function(Ge){(this.opt.html2canvas.onrendered||function(){})(Ge),this.prop.canvas=Ge,document.body.removeChild(this.prop.overlay)})},$e.prototype.toContext2d=function(){var Pe=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Pe).then(z).then(function(Ge){var Ye=this.opt.jsPDF,ft=this.opt.fontFaces,Pt=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,Jt=Object.assign({async:!0,allowTaint:!0,scale:Pt,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 Jt.onrendered,Ye.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,Ye.context2d.posX=this.opt.x,Ye.context2d.posY=this.opt.y,Ye.context2d.margin=this.opt.margin,Ye.context2d.fontFaces=ft,ft)for(var At=0;At<ft.length;++At){var In=ft[At],Cn=In.src.find(function(On){return On.format==="truetype"});Cn&&Ye.addFont(Cn.url,In.ref.name,In.ref.style)}return Jt.windowHeight=Jt.windowHeight||0,Jt.windowHeight=Jt.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Jt.windowHeight,Ye.context2d.save(!0),Ge(this.prop.container,Jt)}).then(function(Ge){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(Ge),this.prop.canvas=Ge,document.body.removeChild(this.prop.overlay)})},$e.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var Pe=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Pe})},$e.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},$e.prototype.output=function(Pe,Ge,Ye){return(Ye=Ye||"pdf").toLowerCase()==="img"||Ye.toLowerCase()==="image"?this.outputImg(Pe,Ge):this.outputPdf(Pe,Ge)},$e.prototype.outputPdf=function(Pe,Ge){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(Pe,Ge)})},$e.prototype.outputImg=function(Pe){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(Pe){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+Pe+'" is not supported.'}})},$e.prototype.save=function(Pe){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(Pe?{filename:Pe}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},$e.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},$e.prototype.set=function(Pe){if(re(Pe)!=="object")return this;var Ge=Object.keys(Pe||{}).map(function(Ye){if(Ye in $e.template.prop)return function(){this.prop[Ye]=Pe[Ye]};switch(Ye){case"margin":return this.setMargin.bind(this,Pe.margin);case"jsPDF":return function(){return this.opt.jsPDF=Pe.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,Pe.pageSize);default:return function(){this.opt[Ye]=Pe[Ye]}}},this);return this.then(function(){return this.thenList(Ge)})},$e.prototype.get=function(Pe,Ge){return this.then(function(){var Ye=Pe in $e.template.prop?this.prop[Pe]:this.opt[Pe];return Ge?Ge(Ye):Ye})},$e.prototype.setMargin=function(Pe){return this.then(function(){switch(re(Pe)){case"number":Pe=[Pe,Pe,Pe,Pe];case"array":if(Pe.length===2&&(Pe=[Pe[0],Pe[1],Pe[0],Pe[1]]),Pe.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=Pe}).then(this.setPageSize)},$e.prototype.setPageSize=function(Pe){function Ge(Ye,ft){return Math.floor(Ye*ft/72*96)}return this.then(function(){(Pe=Pe||La.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(Pe.inner={width:Pe.width-this.opt.margin[1]-this.opt.margin[3],height:Pe.height-this.opt.margin[0]-this.opt.margin[2]},Pe.inner.px={width:Ge(Pe.inner.width,Pe.k),height:Ge(Pe.inner.height,Pe.k)},Pe.inner.ratio=Pe.inner.height/Pe.inner.width),this.prop.pageSize=Pe})},$e.prototype.setProgress=function(Pe,Ge,Ye,ft){return Pe!=null&&(this.progress.val=Pe),Ge!=null&&(this.progress.state=Ge),Ye!=null&&(this.progress.n=Ye),ft!=null&&(this.progress.stack=ft),this.progress.ratio=this.progress.val/this.progress.state,this},$e.prototype.updateProgress=function(Pe,Ge,Ye,ft){return this.setProgress(Pe?this.progress.val+Pe:null,Ge||null,Ye?this.progress.n+Ye:null,ft?this.progress.stack.concat(ft):null)},$e.prototype.then=function(Pe,Ge){var Ye=this;return this.thenCore(Pe,Ge,function(ft,Pt){return Ye.updateProgress(null,null,1,[ft]),Promise.prototype.then.call(this,function(Jt){return Ye.updateProgress(null,ft),Jt}).then(ft,Pt).then(function(Jt){return Ye.updateProgress(1),Jt})})},$e.prototype.thenCore=function(Pe,Ge,Ye){Ye=Ye||Promise.prototype.then;var ft=this;Pe&&(Pe=Pe.bind(ft)),Ge&&(Ge=Ge.bind(ft));var Pt=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?ft:$e.convert(Object.assign({},ft),Promise.prototype),Jt=Ye.call(Pt,Pe,Ge);return $e.convert(Jt,ft.__proto__)},$e.prototype.thenExternal=function(Pe,Ge){return Promise.prototype.then.call(this,Pe,Ge)},$e.prototype.thenList=function(Pe){var Ge=this;return Pe.forEach(function(Ye){Ge=Ge.thenCore(Ye)}),Ge},$e.prototype.catch=function(Pe){Pe&&(Pe=Pe.bind(this));var Ge=Promise.prototype.catch.call(this,Pe);return $e.convert(Ge,this)},$e.prototype.catchExternal=function(Pe){return Promise.prototype.catch.call(this,Pe)},$e.prototype.error=function(Pe){return this.then(function(){throw new Error(Pe)})},$e.prototype.using=$e.prototype.set,$e.prototype.saveAs=$e.prototype.save,$e.prototype.export=$e.prototype.output,$e.prototype.run=$e.prototype.then,La.getPageSize=function(Pe,Ge,Ye){if((0,x.Z)(Pe)==="object"){var ft=Pe;Pe=ft.orientation,Ge=ft.unit||Ge,Ye=ft.format||Ye}Ge=Ge||"mm",Ye=Ye||"a4",Pe=(""+(Pe||"P")).toLowerCase();var Pt,Jt=(""+Ye).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(Ge){case"pt":Pt=1;break;case"mm":Pt=72/25.4;break;case"cm":Pt=72/2.54;break;case"in":Pt=72;break;case"px":Pt=.75;break;case"pc":case"em":Pt=12;break;case"ex":Pt=6;break;default:throw"Invalid unit: "+Ge}var In,Cn=0,On=0;if(At.hasOwnProperty(Jt))Cn=At[Jt][1]/Pt,On=At[Jt][0]/Pt;else try{Cn=Ye[1],On=Ye[0]}catch(An){throw new Error("Invalid format: "+Ye)}if(Pe==="p"||Pe==="portrait")Pe="p",On>Cn&&(In=On,On=Cn,Cn=In);else{if(Pe!=="l"&&Pe!=="landscape")throw"Invalid orientation: "+Pe;Pe="l",Cn>On&&(In=On,On=Cn,Cn=In)}return{width:On,height:Cn,unit:Ge,k:Pt,orientation:Pe}},y.html=function(Pe,Ge){(Ge=Ge||{}).callback=Ge.callback||function(){},Ge.html2canvas=Ge.html2canvas||{},Ge.html2canvas.canvas=Ge.html2canvas.canvas||this.canvas,Ge.jsPDF=Ge.jsPDF||this,Ge.fontFaces=Ge.fontFaces?Ge.fontFaces.map(qA):null;var Ye=new $e(Ge);return Ge.worker?Ye:Ye.from(Pe).doCallback()}}(La.API),La.API.addJS=function(y){return L0=y,this.internal.events.subscribe("postPutResources",function(){Qf=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Qf+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),I0=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+L0+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Qf!==void 0&&I0!==void 0&&this.internal.out("/Names <</JavaScript "+Qf+" 0 R>>")}),this},function(y){var z;y.events.push(["postPutResources",function(){var E=this,re=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var ce=E.outline.render().split(/\r\n/),fe=0;fe<ce.length;fe++){var $e=ce[fe],Pe=re.exec($e);if(Pe!=null){var Ge=Pe[1];E.internal.newObjectDeferredBegin(Ge,!1)}E.internal.write($e)}if(this.outline.createNamedDestinations){var Ye=this.internal.pages.length,ft=[];for(fe=0;fe<Ye;fe++){var Pt=E.internal.newObject();ft.push(Pt);var Jt=E.internal.getPageInfo(fe+1);E.internal.write("<< /D["+Jt.objId+" 0 R /XYZ null null null]>> endobj")}var At=E.internal.newObject();for(E.internal.write("<< /Names [ "),fe=0;fe<ft.length;fe++)E.internal.write("(page_"+(fe+1)+")"+ft[fe]+" 0 R");E.internal.write(" ] >>","endobj"),z=E.internal.newObject(),E.internal.write("<< /Dests "+At+" 0 R"),E.internal.write(">>","endobj")}}]),y.events.push(["putCatalog",function(){var E=this;E.outline.root.children.length>0&&(E.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&E.internal.write("/Names "+z+" 0 R"))}]),y.events.push(["initialized",function(){var E=this;E.outline={createNamedDestinations:!1,root:{children:[]}},E.outline.add=function(re,ce,fe){var $e={title:ce,options:fe,children:[]};return re==null&&(re=this.root),re.children.push($e),$e},E.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=E,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},E.outline.genIds_r=function(re){re.id=E.internal.newObjectDeferred();for(var ce=0;ce<re.children.length;ce++)this.genIds_r(re.children[ce])},E.outline.renderRoot=function(re){this.objStart(re),this.line("/Type /Outlines"),re.children.length>0&&(this.line("/First "+this.makeRef(re.children[0])),this.line("/Last "+this.makeRef(re.children[re.children.length-1]))),this.line("/Count "+this.count_r({count:0},re)),this.objEnd()},E.outline.renderItems=function(re){for(var ce=this.ctx.pdf.internal.getVerticalCoordinateString,fe=0;fe<re.children.length;fe++){var $e=re.children[fe];this.objStart($e),this.line("/Title "+this.makeString($e.title)),this.line("/Parent "+this.makeRef(re)),fe>0&&this.line("/Prev "+this.makeRef(re.children[fe-1])),fe<re.children.length-1&&this.line("/Next "+this.makeRef(re.children[fe+1])),$e.children.length>0&&(this.line("/First "+this.makeRef($e.children[0])),this.line("/Last "+this.makeRef($e.children[$e.children.length-1])));var Pe=this.count=this.count_r({count:0},$e);if(Pe>0&&this.line("/Count "+Pe),$e.options&&$e.options.pageNumber){var Ge=E.internal.getPageInfo($e.options.pageNumber);this.line("/Dest ["+Ge.objId+" 0 R /XYZ 0 "+ce(0)+" 0]")}this.objEnd()}for(var Ye=0;Ye<re.children.length;Ye++)this.renderItems(re.children[Ye])},E.outline.line=function(re){this.ctx.val+=re+`\r
`},E.outline.makeRef=function(re){return re.id+" 0 R"},E.outline.makeString=function(re){return"("+E.internal.pdfEscape(re)+")"},E.outline.objStart=function(re){this.ctx.val+=`\r
`+re.id+` 0 obj\r
<<\r
`},E.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},E.outline.count_r=function(re,ce){for(var fe=0;fe<ce.children.length;fe++)re.count++,this.count_r(re,ce.children[fe]);return re.count}}])}(La.API),function(y){var z=[192,193,194,195,196,197,198,199];y.processJPEG=function(E,re,ce,fe,$e,Pe){var Ge,Ye=this.decode.DCT_DECODE,ft=null;if(typeof E=="string"||this.__addimage__.isArrayBuffer(E)||this.__addimage__.isArrayBufferView(E)){switch(E=$e||E,E=this.__addimage__.isArrayBuffer(E)?new Uint8Array(E):E,Ge=function(Pt){for(var Jt,At=256*Pt.charCodeAt(4)+Pt.charCodeAt(5),In=Pt.length,Cn={width:0,height:0,numcomponents:1},On=4;On<In;On+=2){if(On+=At,z.indexOf(Pt.charCodeAt(On+1))!==-1){Jt=256*Pt.charCodeAt(On+5)+Pt.charCodeAt(On+6),Cn={width:256*Pt.charCodeAt(On+7)+Pt.charCodeAt(On+8),height:Jt,numcomponents:Pt.charCodeAt(On+9)};break}At=256*Pt.charCodeAt(On+2)+Pt.charCodeAt(On+3)}return Cn}(E=this.__addimage__.isArrayBufferView(E)?this.__addimage__.arrayBufferToBinaryString(E):E),Ge.numcomponents){case 1:Pe=this.color_spaces.DEVICE_GRAY;break;case 4:Pe=this.color_spaces.DEVICE_CMYK;break;case 3:Pe=this.color_spaces.DEVICE_RGB}ft={data:E,width:Ge.width,height:Ge.height,colorSpace:Pe,bitsPerComponent:8,filter:Ye,index:re,alias:ce}}return ft}}(La.API),La.API.processPNG=function(y,z,E,re){if(this.__addimage__.isArrayBuffer(y)&&(y=new Uint8Array(y)),this.__addimage__.isArrayBufferView(y)){var ce,fe=oA(y,{checkCrc:!0}),$e=fe.width,Pe=fe.height,Ge=fe.channels,Ye=fe.palette,ft=fe.depth;ce=Ye&&Ge===1?function(Nr){for(var Xn=Nr.width,Vr=Nr.height,ln=Nr.data,Dn=Nr.palette,gr=Nr.depth,dr=!1,mi=[],Si=[],Ni=void 0,ai=!1,Di=0,Do=0;Do<Dn.length;Do++){var ro=(0,bi.Z)(Dn[Do],4),nn=ro[0],Kn=ro[1],ir=ro[2],Cr=ro[3];mi.push(nn,Kn,ir),Cr!=null&&(Cr===0?(Di++,Si.length<1&&Si.push(Do)):Cr<255&&(ai=!0))}if(ai||Di>1){dr=!0,Si=void 0;var Rr=Xn*Vr;Ni=new Uint8Array(Rr);for(var ei=new DataView(ln.buffer),Li=0;Li<Rr;Li++){var Oi=Zg(ei,Li,gr),Vi=(0,bi.Z)(Dn[Oi],4)[3];Ni[Li]=Vi}}else Di===0&&(Si=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:dr?8:void 0,colorBytes:ln,alphaBytes:Ni,needSMask:dr,palette:mi,mask:Si}}(fe):Ge===2||Ge===4?function(Nr){for(var Xn=Nr.data,Vr=Nr.width,ln=Nr.height,Dn=Nr.channels,gr=Nr.depth,dr=Dn===2?"DeviceGray":"DeviceRGB",mi=Dn-1,Si=Vr*ln,Ni=mi,ai=Si*Ni,Di=1*Si,Do=Math.ceil(ai*gr/8),ro=Math.ceil(Di*gr/8),nn=new Uint8Array(Do),Kn=new Uint8Array(ro),ir=new DataView(Xn.buffer),Cr=new DataView(nn.buffer),Rr=new DataView(Kn.buffer),ei=!1,Li=0;Li<Si;Li++){for(var Oi=Li*Dn,Vi=0;Vi<Ni;Vi++)U0(Cr,Zg(ir,Oi+Vi,gr),Li*Ni+Vi,gr);var xo=Zg(ir,Oi+Ni,gr);xo<(1<<gr)-1&&(ei=!0),U0(Rr,xo,1*Li,gr)}return{colorSpace:dr,colorsPerPixel:mi,sMaskBitsPerComponent:ei?gr:void 0,colorBytes:nn,alphaBytes:Kn,needSMask:ei}}(fe):function(Nr){var Xn=Nr.data,Vr=Nr.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:Vr,colorsPerPixel:Vr==="DeviceGray"?1:3,colorBytes:Xn instanceof Uint16Array?function(ln){for(var Dn=ln.length,gr=new Uint8Array(2*Dn),dr=new DataView(gr.buffer,gr.byteOffset,gr.byteLength),mi=0;mi<Dn;mi++)dr.setUint16(2*mi,ln[mi],!1);return gr}(Xn):Xn,needSMask:!1}}(fe);var Pt,Jt,At,In=ce,Cn=In.colorSpace,On=In.colorsPerPixel,An=In.sMaskBitsPerComponent,wr=In.colorBytes,ur=In.alphaBytes,Gn=In.needSMask,ui=In.palette,Ri=In.mask,Ii=null;return re!==La.API.image_compression.NONE&&typeof Ai=="function"?(Ii=function(Nr){var Xn;switch(Nr){case La.API.image_compression.FAST:Xn=11;break;case La.API.image_compression.MEDIUM:Xn=13;break;case La.API.image_compression.SLOW:Xn=14;break;default:Xn=12}return Xn}(re),Pt=this.decode.FLATE_DECODE,Jt="/Predictor ".concat(Ii," /Colors ").concat(On," /BitsPerComponent ").concat(ft," /Columns ").concat($e),y=D0(wr,Math.ceil($e*On*ft/8),On,ft,re),Gn&&(At=D0(ur,Math.ceil($e*An/8),1,An,re))):(Pt=void 0,Jt=void 0,y=wr,Gn&&(At=ur)),(this.__addimage__.isArrayBuffer(y)||this.__addimage__.isArrayBufferView(y))&&(y=this.__addimage__.arrayBufferToBinaryString(y)),(At&&this.__addimage__.isArrayBuffer(At)||this.__addimage__.isArrayBufferView(At))&&(At=this.__addimage__.arrayBufferToBinaryString(At)),{alias:E,data:y,index:z,filter:Pt,decodeParameters:Jt,transparency:Ri,palette:ui,sMask:At,predictor:Ii,width:$e,height:Pe,bitsPerComponent:ft,sMaskBitsPerComponent:An,colorSpace:Cn}}},function(y){y.processGIF89A=function(z,E,re,ce){var fe=new kv(z),$e=fe.width,Pe=fe.height,Ge=[];fe.decodeAndBlitFrameRGBA(0,Ge);var Ye={data:Ge,width:$e,height:Pe},ft=new Wg(100).encode(Ye,100);return y.processJPEG.call(this,ft,E,re,ce)},y.processGIF87A=y.processGIF89A}(La.API),cf.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 y=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(y);for(var z=0;z<y;z++){var E=this.datav.getUint8(this.pos++,!0),re=this.datav.getUint8(this.pos++,!0),ce=this.datav.getUint8(this.pos++,!0),fe=this.datav.getUint8(this.pos++,!0);this.palette[z]={red:ce,green:re,blue:E,quad:fe}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},cf.prototype.parseBGR=function(){this.pos=this.offset;try{var y="bit"+this.bitPP,z=this.width*this.height*4;this.data=new Uint8Array(z),this[y]()}catch(E){hl.log("bit decode error:"+E)}},cf.prototype.bit1=function(){var y,z=Math.ceil(this.width/8),E=z%4;for(y=this.height-1;y>=0;y--){for(var re=this.bottom_up?y:this.height-1-y,ce=0;ce<z;ce++)for(var fe=this.datav.getUint8(this.pos++,!0),$e=re*this.width*4+8*ce*4,Pe=0;Pe<8&&8*ce+Pe<this.width;Pe++){var Ge=this.palette[fe>>7-Pe&1];this.data[$e+4*Pe]=Ge.blue,this.data[$e+4*Pe+1]=Ge.green,this.data[$e+4*Pe+2]=Ge.red,this.data[$e+4*Pe+3]=255}E!==0&&(this.pos+=4-E)}},cf.prototype.bit4=function(){for(var y=Math.ceil(this.width/2),z=y%4,E=this.height-1;E>=0;E--){for(var re=this.bottom_up?E:this.height-1-E,ce=0;ce<y;ce++){var fe=this.datav.getUint8(this.pos++,!0),$e=re*this.width*4+2*ce*4,Pe=fe>>4,Ge=15&fe,Ye=this.palette[Pe];if(this.data[$e]=Ye.blue,this.data[$e+1]=Ye.green,this.data[$e+2]=Ye.red,this.data[$e+3]=255,2*ce+1>=this.width)break;Ye=this.palette[Ge],this.data[$e+4]=Ye.blue,this.data[$e+4+1]=Ye.green,this.data[$e+4+2]=Ye.red,this.data[$e+4+3]=255}z!==0&&(this.pos+=4-z)}},cf.prototype.bit8=function(){for(var y=this.width%4,z=this.height-1;z>=0;z--){for(var E=this.bottom_up?z:this.height-1-z,re=0;re<this.width;re++){var ce=this.datav.getUint8(this.pos++,!0),fe=E*this.width*4+4*re;if(ce<this.palette.length){var $e=this.palette[ce];this.data[fe]=$e.red,this.data[fe+1]=$e.green,this.data[fe+2]=$e.blue,this.data[fe+3]=255}else this.data[fe]=255,this.data[fe+1]=255,this.data[fe+2]=255,this.data[fe+3]=255}y!==0&&(this.pos+=4-y)}},cf.prototype.bit15=function(){for(var y=this.width%3,z=parseInt("11111",2),E=this.height-1;E>=0;E--){for(var re=this.bottom_up?E:this.height-1-E,ce=0;ce<this.width;ce++){var fe=this.datav.getUint16(this.pos,!0);this.pos+=2;var $e=(fe&z)/z*255|0,Pe=(fe>>5&z)/z*255|0,Ge=(fe>>10&z)/z*255|0,Ye=fe>>15?255:0,ft=re*this.width*4+4*ce;this.data[ft]=Ge,this.data[ft+1]=Pe,this.data[ft+2]=$e,this.data[ft+3]=Ye}this.pos+=y}},cf.prototype.bit16=function(){for(var y=this.width%3,z=parseInt("11111",2),E=parseInt("111111",2),re=this.height-1;re>=0;re--){for(var ce=this.bottom_up?re:this.height-1-re,fe=0;fe<this.width;fe++){var $e=this.datav.getUint16(this.pos,!0);this.pos+=2;var Pe=($e&z)/z*255|0,Ge=($e>>5&E)/E*255|0,Ye=($e>>11)/z*255|0,ft=ce*this.width*4+4*fe;this.data[ft]=Ye,this.data[ft+1]=Ge,this.data[ft+2]=Pe,this.data[ft+3]=255}this.pos+=y}},cf.prototype.bit24=function(){for(var y=this.height-1;y>=0;y--){for(var z=this.bottom_up?y:this.height-1-y,E=0;E<this.width;E++){var re=this.datav.getUint8(this.pos++,!0),ce=this.datav.getUint8(this.pos++,!0),fe=this.datav.getUint8(this.pos++,!0),$e=z*this.width*4+4*E;this.data[$e]=fe,this.data[$e+1]=ce,this.data[$e+2]=re,this.data[$e+3]=255}this.pos+=this.width%4}},cf.prototype.bit32=function(){for(var y=this.height-1;y>=0;y--)for(var z=this.bottom_up?y:this.height-1-y,E=0;E<this.width;E++){var re=this.datav.getUint8(this.pos++,!0),ce=this.datav.getUint8(this.pos++,!0),fe=this.datav.getUint8(this.pos++,!0),$e=this.datav.getUint8(this.pos++,!0),Pe=z*this.width*4+4*E;this.data[Pe]=fe,this.data[Pe+1]=ce,this.data[Pe+2]=re,this.data[Pe+3]=$e}},cf.prototype.getData=function(){return this.data},function(y){y.processBMP=function(z,E,re,ce){var fe=new cf(z,!1),$e=fe.width,Pe=fe.height,Ge={data:fe.getData(),width:$e,height:Pe},Ye=new Wg(100).encode(Ge,100);return y.processJPEG.call(this,Ye,E,re,ce)}}(La.API),Q0.prototype.getData=function(){return this.data},function(y){y.processWEBP=function(z,E,re,ce){var fe=new Q0(z),$e=fe.width,Pe=fe.height,Ge={data:fe.getData(),width:$e,height:Pe},Ye=new Wg(100).encode(Ge,100);return y.processJPEG.call(this,Ye,E,re,ce)}}(La.API),La.API.processRGBA=function(y,z,E){for(var re=y.data,ce=re.length,fe=new Uint8Array(ce/4*3),$e=new Uint8Array(ce/4),Pe=0,Ge=0,Ye=0;Ye<ce;Ye+=4){var ft=re[Ye],Pt=re[Ye+1],Jt=re[Ye+2],At=re[Ye+3];fe[Pe++]=ft,fe[Pe++]=Pt,fe[Pe++]=Jt,$e[Ge++]=At}var In=this.__addimage__.arrayBufferToBinaryString(fe);return{alpha:this.__addimage__.arrayBufferToBinaryString($e),data:In,index:z,alias:E,colorSpace:"DeviceRGB",bitsPerComponent:8,width:y.width,height:y.height}},La.API.setLanguage=function(y){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"}[y]!==void 0&&(this.internal.languageSettings.languageCode=y,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},nm=La.API,rg=nm.getCharWidthsArray=function(y,z){var E,re,ce=(z=z||{}).font||this.internal.getFont(),fe=z.fontSize||this.internal.getFontSize(),$e=z.charSpace||this.internal.getCharSpace(),Pe=z.widths?z.widths:ce.metadata.Unicode.widths,Ge=Pe.fof?Pe.fof:1,Ye=z.kerning?z.kerning:ce.metadata.Unicode.kerning,ft=Ye.fof?Ye.fof:1,Pt=z.doKerning!==!1,Jt=0,At=y.length,In=0,Cn=Pe[0]||Ge,On=[];for(E=0;E<At;E++)re=y.charCodeAt(E),typeof ce.metadata.widthOfString=="function"?On.push((ce.metadata.widthOfGlyph(ce.metadata.characterToGlyph(re))+$e*(1e3/fe)||0)/1e3):(Jt=Pt&&(0,x.Z)(Ye[re])==="object"&&!isNaN(parseInt(Ye[re][In],10))?Ye[re][In]/ft:0,On.push((Pe[re]||Cn)/Ge+Jt)),In=re;return On},_0=nm.getStringUnitWidth=function(y,z){var E=(z=z||{}).fontSize||this.internal.getFontSize(),re=z.font||this.internal.getFont(),ce=z.charSpace||this.internal.getCharSpace();return nm.processArabic&&(y=nm.processArabic(y)),typeof re.metadata.widthOfString=="function"?re.metadata.widthOfString(y,E,ce)/E:rg.apply(this,arguments).reduce(function(fe,$e){return fe+$e},0)},N0=function(y,z,E,re){for(var ce=[],fe=0,$e=y.length,Pe=0;fe!==$e&&Pe+z[fe]<E;)Pe+=z[fe],fe++;ce.push(y.slice(0,fe));var Ge=fe;for(Pe=0;fe!==$e;)Pe+z[fe]>re&&(ce.push(y.slice(Ge,fe)),Pe=0,Ge=fe),Pe+=z[fe],fe++;return Ge!==fe&&ce.push(y.slice(Ge,fe)),ce},O0=function(y,z,E){E||(E={});var re,ce,fe,$e,Pe,Ge,Ye,ft=[],Pt=[ft],Jt=E.textIndent||0,At=0,In=0,Cn=y.split(" "),On=rg.apply(this,[" ",E])[0];if(Ge=E.lineIndent===-1?Cn[0].length+2:E.lineIndent||0){var An=Array(Ge).join(" "),wr=[];Cn.map(function(Gn){(Gn=Gn.split(/\s*\n/)).length>1?wr=wr.concat(Gn.map(function(ui,Ri){return(Ri&&ui.length?`
`:"")+ui})):wr.push(Gn[0])}),Cn=wr,Ge=_0.apply(this,[An,E])}for(fe=0,$e=Cn.length;fe<$e;fe++){var ur=0;if(re=Cn[fe],Ge&&re[0]==`
`&&(re=re.substr(1),ur=1),Jt+At+(In=(ce=rg.apply(this,[re,E])).reduce(function(Gn,ui){return Gn+ui},0))>z||ur){if(In>z){for(Pe=N0.apply(this,[re,ce,z-(Jt+At),z]),ft.push(Pe.shift()),ft=[Pe.pop()];Pe.length;)Pt.push([Pe.shift()]);In=ce.slice(re.length-(ft[0]?ft[0].length:0)).reduce(function(Gn,ui){return Gn+ui},0)}else ft=[re];Pt.push(ft),Jt=In+Ge,At=On}else ft.push(re),Jt+=At+In,At=On}return Ye=Ge?function(Gn,ui){return(ui?An:"")+Gn.join(" ")}:function(Gn){return Gn.join(" ")},Pt.map(Ye)},nm.splitTextToSize=function(y,z,E){var re,ce=(E=E||{}).fontSize||this.internal.getFontSize(),fe=function(ft){if(ft.widths&&ft.kerning)return{widths:ft.widths,kerning:ft.kerning};var Pt=this.internal.getFont(ft.fontName,ft.fontStyle),Jt="Unicode";return Pt.metadata[Jt]?{widths:Pt.metadata[Jt].widths||{0:1},kerning:Pt.metadata[Jt].kerning||{}}:{font:Pt.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,E);re=Array.isArray(y)?y:String(y).split(/\r?\n/);var $e=1*this.internal.scaleFactor*z/ce;fe.textIndent=E.textIndent?1*E.textIndent*this.internal.scaleFactor/ce:0,fe.lineIndent=E.lineIndent;var Pe,Ge,Ye=[];for(Pe=0,Ge=re.length;Pe<Ge;Pe++)Ye=Ye.concat(O0.apply(this,[re[Pe],$e,fe]));return Ye},function(y){y.__fontmetrics__=y.__fontmetrics__||{};for(var z="0123456789abcdef",E="klmnopqrstuvwxyz",re={},ce={},fe=0;fe<16;fe++)re[E[fe]]=z[fe],ce[z[fe]]=E[fe];var $e=function(Jt){return"0x"+parseInt(Jt,10).toString(16)},Pe=y.__fontmetrics__.compress=function(Jt){var At,In,Cn,On,An=["{"];for(var wr in Jt){if(At=Jt[wr],isNaN(parseInt(wr,10))?In="'"+wr+"'":(wr=parseInt(wr,10),In=(In=$e(wr).slice(2)).slice(0,-1)+ce[In.slice(-1)]),typeof At=="number")At<0?(Cn=$e(At).slice(3),On="-"):(Cn=$e(At).slice(2),On=""),Cn=On+Cn.slice(0,-1)+ce[Cn.slice(-1)];else{if((0,x.Z)(At)!=="object")throw new Error("Don't know what to do with value type "+(0,x.Z)(At)+".");Cn=Pe(At)}An.push(In+Cn)}return An.push("}"),An.join("")},Ge=y.__fontmetrics__.uncompress=function(Jt){if(typeof Jt!="string")throw new Error("Invalid argument passed to uncompress.");for(var At,In,Cn,On,An={},wr=1,ur=An,Gn=[],ui="",Ri="",Ii=Jt.length-1,Nr=1;Nr<Ii;Nr+=1)(On=Jt[Nr])=="'"?At?(Cn=At.join(""),At=void 0):At=[]:At?At.push(On):On=="{"?(Gn.push([ur,Cn]),ur={},Cn=void 0):On=="}"?((In=Gn.pop())[0][In[1]]=ur,Cn=void 0,ur=In[0]):On=="-"?wr=-1:Cn===void 0?re.hasOwnProperty(On)?(ui+=re[On],Cn=parseInt(ui,16)*wr,wr=1,ui=""):ui+=On:re.hasOwnProperty(On)?(Ri+=re[On],ur[Cn]=parseInt(Ri,16)*wr,wr=1,Cn=void 0,Ri=""):Ri+=On;return An},Ye={codePages:["WinAnsiEncoding"],WinAnsiEncoding:Ge("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},ft={Unicode:{Courier:Ye,"Courier-Bold":Ye,"Courier-BoldOblique":Ye,"Courier-Oblique":Ye,Helvetica:Ye,"Helvetica-Bold":Ye,"Helvetica-BoldOblique":Ye,"Helvetica-Oblique":Ye,"Times-Roman":Ye,"Times-Bold":Ye,"Times-BoldItalic":Ye,"Times-Italic":Ye}},Pt={Unicode:{"Courier-Oblique":Ge("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":Ge("{'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":Ge("{'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:Ge("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":Ge("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":Ge("{'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:Ge("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:Ge("{'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":Ge("{'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:Ge("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":Ge("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":Ge("{'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":Ge("{'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":Ge("{'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}}}")}};y.events.push(["addFont",function(Jt){var At=Jt.font,In=Pt.Unicode[At.postScriptName];In&&(At.metadata.Unicode={},At.metadata.Unicode.widths=In.widths,At.metadata.Unicode.kerning=In.kerning);var Cn=ft.Unicode[At.postScriptName];Cn&&(At.metadata.Unicode.encoding=Cn,At.encoding=Cn.codePages[0])}])}(La.API),function(y){var z=function(E){for(var re=E.length,ce=new Uint8Array(re),fe=0;fe<re;fe++)ce[fe]=E.charCodeAt(fe);return ce};y.API.events.push(["addFont",function(E){var re=void 0,ce=E.font,fe=E.instance;if(!ce.isStandardFont){if(fe===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+ce.postScriptName+"').");if(typeof(re=fe.existsFileInVFS(ce.postScriptName)===!1?fe.loadFile(ce.postScriptName):fe.getFileFromVFS(ce.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+ce.postScriptName+"').");(function($e,Pe){Pe=/^\x00\x01\x00\x00/.test(Pe)?z(Pe):z(bp(Pe)),$e.metadata=y.API.TTFFont.open(Pe),$e.metadata.Unicode=$e.metadata.Unicode||{encoding:{},kerning:{},widths:[]},$e.metadata.glyIdsUsed=[0]})(ce,re)}}])}(La),La.API.addSvgAsImage=function(y,z,E,re,ce,fe,$e,Pe){if(isNaN(z)||isNaN(E))throw hl.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(re)||isNaN(ce))throw hl.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var Ge=document.createElement("canvas");Ge.width=re,Ge.height=ce;var Ye=Ge.getContext("2d");Ye.fillStyle="#fff",Ye.fillRect(0,0,Ge.width,Ge.height);var ft={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Pt=this;return(Pa.canvg?Promise.resolve(Pa.canvg):ae.e(3754).then(ae.bind(ae,63754))).catch(function(Jt){return Promise.reject(new Error("Could not load canvg: "+Jt))}).then(function(Jt){return Jt.default?Jt.default:Jt}).then(function(Jt){return Jt.fromString(Ye,y,ft)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(Jt){return Jt.render(ft)}).then(function(){Pt.addImage(Ge.toDataURL("image/jpeg",1),z,E,re,ce,$e,Pe)})},La.API.putTotalPages=function(y){var z,E=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(z=new RegExp(y,"g"),E=this.internal.getNumberOfPages()):(z=new RegExp(this.pdfEscape16(y,this.internal.getFont()),"g"),E=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var re=1;re<=this.internal.getNumberOfPages();re++)for(var ce=0;ce<this.internal.pages[re].length;ce++)this.internal.pages[re][ce]=this.internal.pages[re][ce].replace(z,E);return this},La.API.viewerPreferences=function(y,z){var E;y=y||{},z=z||!1;var re,ce,fe,$e={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}},Pe=Object.keys($e),Ge=[],Ye=0,ft=0,Pt=0;function Jt(In,Cn){var On,An=!1;for(On=0;On<In.length;On+=1)In[On]===Cn&&(An=!0);return An}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify($e)),this.internal.viewerpreferences.isSubscribed=!1),E=this.internal.viewerpreferences.configuration,y==="reset"||z===!0){var At=Pe.length;for(Pt=0;Pt<At;Pt+=1)E[Pe[Pt]].value=E[Pe[Pt]].defaultValue,E[Pe[Pt]].explicitSet=!1}if((0,x.Z)(y)==="object"){for(ce in y)if(fe=y[ce],Jt(Pe,ce)&&fe!==void 0){if(E[ce].type==="boolean"&&typeof fe=="boolean")E[ce].value=fe;else if(E[ce].type==="name"&&Jt(E[ce].valueSet,fe))E[ce].value=fe;else if(E[ce].type==="integer"&&Number.isInteger(fe))E[ce].value=fe;else if(E[ce].type==="array"){for(Ye=0;Ye<fe.length;Ye+=1)if(re=!0,fe[Ye].length===1&&typeof fe[Ye][0]=="number")Ge.push(String(fe[Ye]-1));else if(fe[Ye].length>1){for(ft=0;ft<fe[Ye].length;ft+=1)typeof fe[Ye][ft]!="number"&&(re=!1);re===!0&&Ge.push([fe[Ye][0]-1,fe[Ye][1]-1].join(" "))}E[ce].value="["+Ge.join(" ")+"]"}else E[ce].value=E[ce].defaultValue;E[ce].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var In,Cn=[];for(In in E)E[In].explicitSet===!0&&(E[In].type==="name"?Cn.push("/"+In+" /"+E[In].value):Cn.push("/"+In+" "+E[In].value));Cn.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+Cn.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=E,this},function(y){var z=function(){var re='<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>',ce=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),fe=unescape(encodeURIComponent(re)),$e=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),Pe=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),Ge=unescape(encodeURIComponent("</x:xmpmeta>")),Ye=fe.length+$e.length+Pe.length+ce.length+Ge.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Ye+" >>"),this.internal.write("stream"),this.internal.write(ce+fe+$e+Pe+Ge),this.internal.write("endstream"),this.internal.write("endobj")},E=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};y.addMetadata=function(re,ce){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:re,namespaceuri:ce||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",E),this.internal.events.subscribe("postPutResources",z)),this}}(La.API),function(y){var z=y.API,E=z.pdfEscape16=function(fe,$e){for(var Pe,Ge=$e.metadata.Unicode.widths,Ye=["","0","00","000","0000"],ft=[""],Pt=0,Jt=fe.length;Pt<Jt;++Pt){if(Pe=$e.metadata.characterToGlyph(fe.charCodeAt(Pt)),$e.metadata.glyIdsUsed.push(Pe),$e.metadata.toUnicode[Pe]=fe.charCodeAt(Pt),Ge.indexOf(Pe)==-1&&(Ge.push(Pe),Ge.push([parseInt($e.metadata.widthOfGlyph(Pe),10)])),Pe=="0")return ft.join("");Pe=Pe.toString(16),ft.push(Ye[4-Pe.length],Pe)}return ft.join("")},re=function(fe){var $e,Pe,Ge,Ye,ft,Pt,Jt;for(ft=`/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`,Ge=[],Pt=0,Jt=(Pe=Object.keys(fe).sort(function(At,In){return At-In})).length;Pt<Jt;Pt++)$e=Pe[Pt],Ge.length>=100&&(ft+=`
`+Ge.length+` beginbfchar
`+Ge.join(`
`)+`
endbfchar`,Ge=[]),fe[$e]!==void 0&&fe[$e]!==null&&typeof fe[$e].toString=="function"&&(Ye=("0000"+fe[$e].toString(16)).slice(-4),$e=("0000"+(+$e).toString(16)).slice(-4),Ge.push("<"+$e+"><"+Ye+">"));return Ge.length&&(ft+=`
`+Ge.length+` beginbfchar
`+Ge.join(`
`)+`
endbfchar
`),ft+`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};z.events.push(["putFont",function(fe){(function($e){var Pe=$e.font,Ge=$e.out,Ye=$e.newObject,ft=$e.putStream;if(Pe.metadata instanceof y.API.TTFFont&&Pe.encoding==="Identity-H"){for(var Pt=Pe.metadata.Unicode.widths,Jt=Pe.metadata.subset.encode(Pe.metadata.glyIdsUsed,1),At="",In=0;In<Jt.length;In++)At+=String.fromCharCode(Jt[In]);var Cn=Ye();ft({data:At,addLength1:!0,objectId:Cn}),Ge("endobj");var On=Ye();ft({data:re(Pe.metadata.toUnicode),addLength1:!0,objectId:On}),Ge("endobj");var An=Ye();Ge("<<"),Ge("/Type /FontDescriptor"),Ge("/FontName /"+md(Pe.fontName)),Ge("/FontFile2 "+Cn+" 0 R"),Ge("/FontBBox "+y.API.PDFObject.convert(Pe.metadata.bbox)),Ge("/Flags "+Pe.metadata.flags),Ge("/StemV "+Pe.metadata.stemV),Ge("/ItalicAngle "+Pe.metadata.italicAngle),Ge("/Ascent "+Pe.metadata.ascender),Ge("/Descent "+Pe.metadata.decender),Ge("/CapHeight "+Pe.metadata.capHeight),Ge(">>"),Ge("endobj");var wr=Ye();Ge("<<"),Ge("/Type /Font"),Ge("/BaseFont /"+md(Pe.fontName)),Ge("/FontDescriptor "+An+" 0 R"),Ge("/W "+y.API.PDFObject.convert(Pt)),Ge("/CIDToGIDMap /Identity"),Ge("/DW 1000"),Ge("/Subtype /CIDFontType2"),Ge("/CIDSystemInfo"),Ge("<<"),Ge("/Supplement 0"),Ge("/Registry (Adobe)"),Ge("/Ordering ("+Pe.encoding+")"),Ge(">>"),Ge(">>"),Ge("endobj"),Pe.objectNumber=Ye(),Ge("<<"),Ge("/Type /Font"),Ge("/Subtype /Type0"),Ge("/ToUnicode "+On+" 0 R"),Ge("/BaseFont /"+md(Pe.fontName)),Ge("/Encoding /"+Pe.encoding),Ge("/DescendantFonts ["+wr+" 0 R]"),Ge(">>"),Ge("endobj"),Pe.isAlreadyPutted=!0}})(fe)}]),z.events.push(["putFont",function(fe){(function($e){var Pe=$e.font,Ge=$e.out,Ye=$e.newObject,ft=$e.putStream;if(Pe.metadata instanceof y.API.TTFFont&&Pe.encoding==="WinAnsiEncoding"){for(var Pt=Pe.metadata.rawData,Jt="",At=0;At<Pt.length;At++)Jt+=String.fromCharCode(Pt[At]);var In=Ye();ft({data:Jt,addLength1:!0,objectId:In}),Ge("endobj");var Cn=Ye();ft({data:re(Pe.metadata.toUnicode),addLength1:!0,objectId:Cn}),Ge("endobj");var On=Ye();Ge("<<"),Ge("/Descent "+Pe.metadata.decender),Ge("/CapHeight "+Pe.metadata.capHeight),Ge("/StemV "+Pe.metadata.stemV),Ge("/Type /FontDescriptor"),Ge("/FontFile2 "+In+" 0 R"),Ge("/Flags 96"),Ge("/FontBBox "+y.API.PDFObject.convert(Pe.metadata.bbox)),Ge("/FontName /"+md(Pe.fontName)),Ge("/ItalicAngle "+Pe.metadata.italicAngle),Ge("/Ascent "+Pe.metadata.ascender),Ge(">>"),Ge("endobj"),Pe.objectNumber=Ye();for(var An=0;An<Pe.metadata.hmtx.widths.length;An++)Pe.metadata.hmtx.widths[An]=parseInt(Pe.metadata.hmtx.widths[An]*(1e3/Pe.metadata.head.unitsPerEm));Ge("<</Subtype/TrueType/Type/Font/ToUnicode "+Cn+" 0 R/BaseFont/"+md(Pe.fontName)+"/FontDescriptor "+On+" 0 R/Encoding/"+Pe.encoding+" /FirstChar 29 /LastChar 255 /Widths "+y.API.PDFObject.convert(Pe.metadata.hmtx.widths)+">>"),Ge("endobj"),Pe.isAlreadyPutted=!0}})(fe)}]);var ce=function(fe){var $e,Pe=fe.text||"",Ge=fe.x,Ye=fe.y,ft=fe.options||{},Pt=fe.mutex||{},Jt=Pt.pdfEscape,At=Pt.activeFontKey,In=Pt.fonts,Cn=At,On="",An=0,wr="",ur=In[Cn].encoding;if(In[Cn].encoding!=="Identity-H")return{text:Pe,x:Ge,y:Ye,options:ft,mutex:Pt};for(wr=Pe,Cn=At,Array.isArray(Pe)&&(wr=Pe[0]),An=0;An<wr.length;An+=1)In[Cn].metadata.hasOwnProperty("cmap")&&($e=In[Cn].metadata.cmap.unicode.codeMap[wr[An].charCodeAt(0)]),$e||wr[An].charCodeAt(0)<256&&In[Cn].metadata.hasOwnProperty("Unicode")?On+=wr[An]:On+="";var Gn="";return parseInt(Cn.slice(1))<14||ur==="WinAnsiEncoding"?Gn=Jt(On,Cn).split("").map(function(ui){return ui.charCodeAt(0).toString(16)}).join(""):ur==="Identity-H"&&(Gn=E(On,In[Cn])),Pt.isHex=!0,{text:Gn,x:Ge,y:Ye,options:ft,mutex:Pt}};z.events.push(["postProcessText",function(fe){var $e=fe.text||"",Pe=[],Ge={text:$e,x:fe.x,y:fe.y,options:fe.options,mutex:fe.mutex};if(Array.isArray($e)){var Ye=0;for(Ye=0;Ye<$e.length;Ye+=1)Array.isArray($e[Ye])&&$e[Ye].length===3?Pe.push([ce(Object.assign({},Ge,{text:$e[Ye][0]})).text,$e[Ye][1],$e[Ye][2]]):Pe.push(ce(Object.assign({},Ge,{text:$e[Ye]})).text);fe.text=Pe}else fe.text=ce(Object.assign({},Ge,{text:$e})).text}])}(La),function(y){var z=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};y.existsFileInVFS=function(E){return z.call(this),this.internal.vFS[E]!==void 0},y.addFileToVFS=function(E,re){return z.call(this),this.internal.vFS[E]=re,this},y.getFileFromVFS=function(E){return z.call(this),this.internal.vFS[E]!==void 0?this.internal.vFS[E]:null}}(La.API),function(y){y.__bidiEngine__=y.prototype.__bidiEngine__=function(re){var ce,fe,$e,Pe,Ge,Ye,ft,Pt=z,Jt=[[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]],At=[[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]],In={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},Cn={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},On=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],An=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)$/),wr=!1,ur=0;this.__bidiEngine__={};var Gn=function(ln){var Dn=ln.charCodeAt(),gr=Dn>>8,dr=Cn[gr];return dr!==void 0?Pt[256*dr+(255&Dn)]:gr===252||gr===253?"AL":An.test(gr)?"L":gr===8?"R":"N"},ui=function(ln){for(var Dn,gr=0;gr<ln.length;gr++){if((Dn=Gn(ln.charAt(gr)))==="L")return!1;if(Dn==="R")return!0}return!1},Ri=function(ln,Dn,gr,dr){var mi,Si,Ni,ai,Di=Dn[dr];switch(Di){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":wr=!1;break;case"N":case"AN":break;case"EN":wr&&(Di="AN");break;case"AL":wr=!0,Di="R";break;case"WS":case"BN":Di="N";break;case"CS":dr<1||dr+1>=Dn.length||(mi=gr[dr-1])!=="EN"&&mi!=="AN"||(Si=Dn[dr+1])!=="EN"&&Si!=="AN"?Di="N":wr&&(Si="AN"),Di=Si===mi?Si:"N";break;case"ES":Di=(mi=dr>0?gr[dr-1]:"B")==="EN"&&dr+1<Dn.length&&Dn[dr+1]==="EN"?"EN":"N";break;case"ET":if(dr>0&&gr[dr-1]==="EN"){Di="EN";break}if(wr){Di="N";break}for(Ni=dr+1,ai=Dn.length;Ni<ai&&Dn[Ni]==="ET";)Ni++;Di=Ni<ai&&Dn[Ni]==="EN"?"EN":"N";break;case"NSM":if($e&&!Pe){for(ai=Dn.length,Ni=dr+1;Ni<ai&&Dn[Ni]==="NSM";)Ni++;if(Ni<ai){var Do=ln[dr],ro=Do>=1425&&Do<=2303||Do===64286;if(mi=Dn[Ni],ro&&(mi==="R"||mi==="AL")){Di="R";break}}}Di=dr<1||(mi=Dn[dr-1])==="B"?"N":gr[dr-1];break;case"B":wr=!1,ce=!0,Di=ur;break;case"S":fe=!0,Di="N"}return Di},Ii=function(ln,Dn,gr){var dr=ln.split("");return gr&&Nr(dr,gr,{hiLevel:ur}),dr.reverse(),Dn&&Dn.reverse(),dr.join("")},Nr=function(ln,Dn,gr){var dr,mi,Si,Ni,ai,Di=-1,Do=ln.length,ro=0,nn=[],Kn=ur?At:Jt,ir=[];for(wr=!1,ce=!1,fe=!1,mi=0;mi<Do;mi++)ir[mi]=Gn(ln[mi]);for(Si=0;Si<Do;Si++){if(ai=ro,nn[Si]=Ri(ln,ir,nn,Si),dr=240&(ro=Kn[ai][In[nn[Si]]]),ro&=15,Dn[Si]=Ni=Kn[ro][5],dr>0)if(dr===16){for(mi=Di;mi<Si;mi++)Dn[mi]=1;Di=-1}else Di=-1;if(Kn[ro][6])Di===-1&&(Di=Si);else if(Di>-1){for(mi=Di;mi<Si;mi++)Dn[mi]=Ni;Di=-1}ir[Si]==="B"&&(Dn[Si]=0),gr.hiLevel|=Ni}fe&&function(Cr,Rr,ei){for(var Li=0;Li<ei;Li++)if(Cr[Li]==="S"){Rr[Li]=ur;for(var Oi=Li-1;Oi>=0&&Cr[Oi]==="WS";Oi--)Rr[Oi]=ur}}(ir,Dn,Do)},Xn=function(ln,Dn,gr,dr,mi){if(!(mi.hiLevel<ln)){if(ln===1&&ur===1&&!ce)return Dn.reverse(),void(gr&&gr.reverse());for(var Si,Ni,ai,Di,Do=Dn.length,ro=0;ro<Do;){if(dr[ro]>=ln){for(ai=ro+1;ai<Do&&dr[ai]>=ln;)ai++;for(Di=ro,Ni=ai-1;Di<Ni;Di++,Ni--)Si=Dn[Di],Dn[Di]=Dn[Ni],Dn[Ni]=Si,gr&&(Si=gr[Di],gr[Di]=gr[Ni],gr[Ni]=Si);ro=ai}ro++}}},Vr=function(ln,Dn,gr){var dr=ln.split(""),mi={hiLevel:ur};return gr||(gr=[]),Nr(dr,gr,mi),function(Si,Ni,ai){if(ai.hiLevel!==0&&ft)for(var Di,Do=0;Do<Si.length;Do++)Ni[Do]===1&&(Di=On.indexOf(Si[Do]))>=0&&(Si[Do]=On[Di+1])}(dr,gr,mi),Xn(2,dr,Dn,gr,mi),Xn(1,dr,Dn,gr,mi),dr.join("")};return this.__bidiEngine__.doBidiReorder=function(ln,Dn,gr){if(function(mi,Si){if(Si)for(var Ni=0;Ni<mi.length;Ni++)Si[Ni]=Ni;Pe===void 0&&(Pe=ui(mi)),Ye===void 0&&(Ye=ui(mi))}(ln,Dn),$e||!Ge||Ye)if($e&&Ge&&Pe^Ye)ur=Pe?1:0,ln=Ii(ln,Dn,gr);else if(!$e&&Ge&&Ye)ur=Pe?1:0,ln=Vr(ln,Dn,gr),ln=Ii(ln,Dn);else if(!$e||Pe||Ge||Ye){if($e&&!Ge&&Pe^Ye)ln=Ii(ln,Dn),Pe?(ur=0,ln=Vr(ln,Dn,gr)):(ur=1,ln=Vr(ln,Dn,gr),ln=Ii(ln,Dn));else if($e&&Pe&&!Ge&&Ye)ur=1,ln=Vr(ln,Dn,gr),ln=Ii(ln,Dn);else if(!$e&&!Ge&&Pe^Ye){var dr=ft;Pe?(ur=1,ln=Vr(ln,Dn,gr),ur=0,ft=!1,ln=Vr(ln,Dn,gr),ft=dr):(ur=0,ln=Vr(ln,Dn,gr),ln=Ii(ln,Dn),ur=1,ft=!1,ln=Vr(ln,Dn,gr),ft=dr,ln=Ii(ln,Dn))}}else ur=0,ln=Vr(ln,Dn,gr);else ur=Pe?1:0,ln=Vr(ln,Dn,gr);return ln},this.__bidiEngine__.setOptions=function(ln){ln&&($e=ln.isInputVisual,Ge=ln.isOutputVisual,Pe=ln.isInputRtl,Ye=ln.isOutputRtl,ft=ln.isSymmetricSwapping)},this.__bidiEngine__.setOptions(re),this.__bidiEngine__};var z=["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"],E=new y.__bidiEngine__({isInputVisual:!0});y.API.events.push(["postProcessText",function(re){var ce=re.text;re.x,re.y;var fe=re.options||{};re.mutex,fe.lang;var $e=[];if(fe.isInputVisual=typeof fe.isInputVisual!="boolean"||fe.isInputVisual,E.setOptions(fe),Object.prototype.toString.call(ce)==="[object Array]"){var Pe=0;for($e=[],Pe=0;Pe<ce.length;Pe+=1)Object.prototype.toString.call(ce[Pe])==="[object Array]"?$e.push([E.doBidiReorder(ce[Pe][0]),ce[Pe][1],ce[Pe][2]]):$e.push([E.doBidiReorder(ce[Pe])]);re.text=$e}else re.text=E.doBidiReorder(ce);E.setOptions({isInputVisual:!0})}])}(La),La.API.TTFFont=function(){function y(z){var E;if(this.rawData=z,E=this.contents=new Zh(z),this.contents.pos=4,E.readString(4)==="ttcf")throw new Error("TTCF not supported.");E.pos=0,this.parse(),this.subset=new Yv(this),this.registerTTF()}return y.open=function(z){return new y(z)},y.prototype.parse=function(){return this.directory=new Mv(this.contents),this.head=new Rv(this),this.name=new Kv(this),this.cmap=new z0(this),this.toUnicode={},this.hhea=new jv(this),this.maxp=new $v(this),this.hmtx=new Zv(this),this.post=new Hv(this),this.os2=new Qv(this),this.loca=new Xv(this),this.glyf=new Wv(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]},y.prototype.registerTTF=function(){var z,E,re,ce,fe;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var $e,Pe,Ge,Ye;for(Ye=[],$e=0,Pe=(Ge=this.bbox).length;$e<Pe;$e++)z=Ge[$e],Ye.push(Math.round(z*this.scaleFactor));return Ye}.call(this),this.stemV=0,this.post.exists?(re=255&(ce=this.post.italic_angle),32768&(E=ce>>16)&&(E=-(1+(65535^E))),this.italicAngle=+(E+"."+re)):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=(fe=this.familyClass)===1||fe===2||fe===3||fe===4||fe===5||fe===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")},y.prototype.characterToGlyph=function(z){var E;return((E=this.cmap.unicode)!=null?E.codeMap[z]:void 0)||0},y.prototype.widthOfGlyph=function(z){var E;return E=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(z).advance*E},y.prototype.widthOfString=function(z,E,re){var ce,fe,$e,Pe;for($e=0,fe=0,Pe=(z=""+z).length;0<=Pe?fe<Pe:fe>Pe;fe=0<=Pe?++fe:--fe)ce=z.charCodeAt(fe),$e+=this.widthOfGlyph(this.characterToGlyph(ce))+re*(1e3/E)||0;return $e*(E/1e3)},y.prototype.lineHeight=function(z,E){var re;return E==null&&(E=!1),re=E?this.lineGap:0,(this.ascender+re-this.decender)/1e3*z},y}();var Af,Zh=function(){function y(z){this.data=z!=null?z:[],this.pos=0,this.length=this.data.length}return y.prototype.readByte=function(){return this.data[this.pos++]},y.prototype.writeByte=function(z){return this.data[this.pos++]=z},y.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},y.prototype.writeUInt32=function(z){return this.writeByte(z>>>24&255),this.writeByte(z>>16&255),this.writeByte(z>>8&255),this.writeByte(255&z)},y.prototype.readInt32=function(){var z;return(z=this.readUInt32())>=2147483648?z-4294967296:z},y.prototype.writeInt32=function(z){return z<0&&(z+=4294967296),this.writeUInt32(z)},y.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},y.prototype.writeUInt16=function(z){return this.writeByte(z>>8&255),this.writeByte(255&z)},y.prototype.readInt16=function(){var z;return(z=this.readUInt16())>=32768?z-65536:z},y.prototype.writeInt16=function(z){return z<0&&(z+=65536),this.writeUInt16(z)},y.prototype.readString=function(z){var E,re;for(re=[],E=0;0<=z?E<z:E>z;E=0<=z?++E:--E)re[E]=String.fromCharCode(this.readByte());return re.join("")},y.prototype.writeString=function(z){var E,re,ce;for(ce=[],E=0,re=z.length;0<=re?E<re:E>re;E=0<=re?++E:--E)ce.push(this.writeByte(z.charCodeAt(E)));return ce},y.prototype.readShort=function(){return this.readInt16()},y.prototype.writeShort=function(z){return this.writeInt16(z)},y.prototype.readLongLong=function(){var z,E,re,ce,fe,$e,Pe,Ge;return z=this.readByte(),E=this.readByte(),re=this.readByte(),ce=this.readByte(),fe=this.readByte(),$e=this.readByte(),Pe=this.readByte(),Ge=this.readByte(),128&z?-1*(72057594037927940*(255^z)+281474976710656*(255^E)+1099511627776*(255^re)+4294967296*(255^ce)+16777216*(255^fe)+65536*(255^$e)+256*(255^Pe)+(255^Ge)+1):72057594037927940*z+281474976710656*E+1099511627776*re+4294967296*ce+16777216*fe+65536*$e+256*Pe+Ge},y.prototype.writeLongLong=function(z){var E,re;return E=Math.floor(z/4294967296),re=4294967295&z,this.writeByte(E>>24&255),this.writeByte(E>>16&255),this.writeByte(E>>8&255),this.writeByte(255&E),this.writeByte(re>>24&255),this.writeByte(re>>16&255),this.writeByte(re>>8&255),this.writeByte(255&re)},y.prototype.readInt=function(){return this.readInt32()},y.prototype.writeInt=function(z){return this.writeInt32(z)},y.prototype.read=function(z){var E,re;for(E=[],re=0;0<=z?re<z:re>z;re=0<=z?++re:--re)E.push(this.readByte());return E},y.prototype.write=function(z){var E,re,ce,fe;for(fe=[],re=0,ce=z.length;re<ce;re++)E=z[re],fe.push(this.writeByte(E));return fe},y}(),Mv=function(){var y;function z(E){var re,ce,fe;for(this.scalarType=E.readInt(),this.tableCount=E.readShort(),this.searchRange=E.readShort(),this.entrySelector=E.readShort(),this.rangeShift=E.readShort(),this.tables={},ce=0,fe=this.tableCount;0<=fe?ce<fe:ce>fe;ce=0<=fe?++ce:--ce)re={tag:E.readString(4),checksum:E.readInt(),offset:E.readInt(),length:E.readInt()},this.tables[re.tag]=re}return z.prototype.encode=function(E){var re,ce,fe,$e,Pe,Ge,Ye,ft,Pt,Jt,At,In,Cn;for(Cn in At=Object.keys(E).length,Ge=Math.log(2),Pt=16*Math.floor(Math.log(At)/Ge),$e=Math.floor(Pt/Ge),ft=16*At-Pt,(ce=new Zh).writeInt(this.scalarType),ce.writeShort(At),ce.writeShort(Pt),ce.writeShort($e),ce.writeShort(ft),fe=16*At,Ye=ce.pos+fe,Pe=null,In=[],E)for(Jt=E[Cn],ce.writeString(Cn),ce.writeInt(y(Jt)),ce.writeInt(Ye),ce.writeInt(Jt.length),In=In.concat(Jt),Cn==="head"&&(Pe=Ye),Ye+=Jt.length;Ye%4;)In.push(0),Ye++;return ce.write(In),re=2981146554-y(ce.data),ce.pos=Pe+8,ce.writeUInt32(re),ce.data},y=function(E){var re,ce,fe,$e;for(E=K0.call(E);E.length%4;)E.push(0);for(fe=new Zh(E),ce=0,re=0,$e=E.length;re<$e;re=re+=4)ce+=fe.readUInt32();return 4294967295&ce},z}(),Uv={}.hasOwnProperty,Hf=function(y,z){for(var E in z)Uv.call(z,E)&&(y[E]=z[E]);function re(){this.constructor=y}return re.prototype=z.prototype,y.prototype=new re,y.__super__=z.prototype,y};Af=function(){function y(z){var E;this.file=z,E=this.file.directory.tables[this.tag],this.exists=!!E,E&&(this.offset=E.offset,this.length=E.length,this.parse(this.file.contents))}return y.prototype.parse=function(){},y.prototype.encode=function(){},y.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},y}();var Rv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Hf(y,Af),y.prototype.tag="head",y.prototype.parse=function(z){return z.pos=this.offset,this.version=z.readInt(),this.revision=z.readInt(),this.checkSumAdjustment=z.readInt(),this.magicNumber=z.readInt(),this.flags=z.readShort(),this.unitsPerEm=z.readShort(),this.created=z.readLongLong(),this.modified=z.readLongLong(),this.xMin=z.readShort(),this.yMin=z.readShort(),this.xMax=z.readShort(),this.yMax=z.readShort(),this.macStyle=z.readShort(),this.lowestRecPPEM=z.readShort(),this.fontDirectionHint=z.readShort(),this.indexToLocFormat=z.readShort(),this.glyphDataFormat=z.readShort()},y.prototype.encode=function(z){var E;return(E=new Zh).writeInt(this.version),E.writeInt(this.revision),E.writeInt(this.checkSumAdjustment),E.writeInt(this.magicNumber),E.writeShort(this.flags),E.writeShort(this.unitsPerEm),E.writeLongLong(this.created),E.writeLongLong(this.modified),E.writeShort(this.xMin),E.writeShort(this.yMin),E.writeShort(this.xMax),E.writeShort(this.yMax),E.writeShort(this.macStyle),E.writeShort(this.lowestRecPPEM),E.writeShort(this.fontDirectionHint),E.writeShort(z),E.writeShort(this.glyphDataFormat),E.data},y}(),H0=function(){function y(z,E){var re,ce,fe,$e,Pe,Ge,Ye,ft,Pt,Jt,At,In,Cn,On,An,wr,ur;switch(this.platformID=z.readUInt16(),this.encodingID=z.readShort(),this.offset=E+z.readInt(),Pt=z.pos,z.pos=this.offset,this.format=z.readUInt16(),this.length=z.readUInt16(),this.language=z.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(Ge=0;Ge<256;++Ge)this.codeMap[Ge]=z.readByte();break;case 4:for(At=z.readUInt16(),Jt=At/2,z.pos+=6,fe=function(){var Gn,ui;for(ui=[],Ge=Gn=0;0<=Jt?Gn<Jt:Gn>Jt;Ge=0<=Jt?++Gn:--Gn)ui.push(z.readUInt16());return ui}(),z.pos+=2,Cn=function(){var Gn,ui;for(ui=[],Ge=Gn=0;0<=Jt?Gn<Jt:Gn>Jt;Ge=0<=Jt?++Gn:--Gn)ui.push(z.readUInt16());return ui}(),Ye=function(){var Gn,ui;for(ui=[],Ge=Gn=0;0<=Jt?Gn<Jt:Gn>Jt;Ge=0<=Jt?++Gn:--Gn)ui.push(z.readUInt16());return ui}(),ft=function(){var Gn,ui;for(ui=[],Ge=Gn=0;0<=Jt?Gn<Jt:Gn>Jt;Ge=0<=Jt?++Gn:--Gn)ui.push(z.readUInt16());return ui}(),ce=(this.length-z.pos+this.offset)/2,Pe=function(){var Gn,ui;for(ui=[],Ge=Gn=0;0<=ce?Gn<ce:Gn>ce;Ge=0<=ce?++Gn:--Gn)ui.push(z.readUInt16());return ui}(),Ge=An=0,ur=fe.length;An<ur;Ge=++An)for(On=fe[Ge],re=wr=In=Cn[Ge];In<=On?wr<=On:wr>=On;re=In<=On?++wr:--wr)ft[Ge]===0?$e=re+Ye[Ge]:($e=Pe[ft[Ge]/2+(re-In)-(Jt-Ge)]||0)!==0&&($e+=Ye[Ge]),this.codeMap[re]=65535&$e}z.pos=Pt}return y.encode=function(z,E){var re,ce,fe,$e,Pe,Ge,Ye,ft,Pt,Jt,At,In,Cn,On,An,wr,ur,Gn,ui,Ri,Ii,Nr,Xn,Vr,ln,Dn,gr,dr,mi,Si,Ni,ai,Di,Do,ro,nn,Kn,ir,Cr,Rr,ei,Li,Oi,Vi,xo,ca;switch(dr=new Zh,$e=Object.keys(z).sort(function(la,Wa){return la-Wa}),E){case"macroman":for(Cn=0,On=function(){var la=[];for(In=0;In<256;++In)la.push(0);return la}(),wr={0:0},fe={},mi=0,Di=$e.length;mi<Di;mi++)wr[Oi=z[ce=$e[mi]]]==null&&(wr[Oi]=++Cn),fe[ce]={old:z[ce],new:wr[z[ce]]},On[ce]=wr[z[ce]];return dr.writeUInt16(1),dr.writeUInt16(0),dr.writeUInt32(12),dr.writeUInt16(0),dr.writeUInt16(262),dr.writeUInt16(0),dr.write(On),{charMap:fe,subtable:dr.data,maxGlyphID:Cn+1};case"unicode":for(Dn=[],Pt=[],ur=0,wr={},re={},An=Ye=null,Si=0,Do=$e.length;Si<Do;Si++)wr[ui=z[ce=$e[Si]]]==null&&(wr[ui]=++ur),re[ce]={old:ui,new:wr[ui]},Pe=wr[ui]-ce,An!=null&&Pe===Ye||(An&&Pt.push(An),Dn.push(ce),Ye=Pe),An=ce;for(An&&Pt.push(An),Pt.push(65535),Dn.push(65535),Vr=2*(Xn=Dn.length),Nr=2*Math.pow(Math.log(Xn)/Math.LN2,2),Jt=Math.log(Nr/2)/Math.LN2,Ii=2*Xn-Nr,Ge=[],Ri=[],At=[],In=Ni=0,ro=Dn.length;Ni<ro;In=++Ni){if(ln=Dn[In],ft=Pt[In],ln===65535){Ge.push(0),Ri.push(0);break}if(ln-(gr=re[ln].new)>=32768)for(Ge.push(0),Ri.push(2*(At.length+Xn-In)),ce=ai=ln;ln<=ft?ai<=ft:ai>=ft;ce=ln<=ft?++ai:--ai)At.push(re[ce].new);else Ge.push(gr-ln),Ri.push(0)}for(dr.writeUInt16(3),dr.writeUInt16(1),dr.writeUInt32(12),dr.writeUInt16(4),dr.writeUInt16(16+8*Xn+2*At.length),dr.writeUInt16(0),dr.writeUInt16(Vr),dr.writeUInt16(Nr),dr.writeUInt16(Jt),dr.writeUInt16(Ii),ei=0,nn=Pt.length;ei<nn;ei++)ce=Pt[ei],dr.writeUInt16(ce);for(dr.writeUInt16(0),Li=0,Kn=Dn.length;Li<Kn;Li++)ce=Dn[Li],dr.writeUInt16(ce);for(Vi=0,ir=Ge.length;Vi<ir;Vi++)Pe=Ge[Vi],dr.writeUInt16(Pe);for(xo=0,Cr=Ri.length;xo<Cr;xo++)Gn=Ri[xo],dr.writeUInt16(Gn);for(ca=0,Rr=At.length;ca<Rr;ca++)Cn=At[ca],dr.writeUInt16(Cn);return{charMap:re,subtable:dr.data,maxGlyphID:ur+1}}},y}(),z0=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Hf(y,Af),y.prototype.tag="cmap",y.prototype.parse=function(z){var E,re,ce;for(z.pos=this.offset,this.version=z.readUInt16(),ce=z.readUInt16(),this.tables=[],this.unicode=null,re=0;0<=ce?re<ce:re>ce;re=0<=ce?++re:--re)E=new H0(z,this.offset),this.tables.push(E),E.isUnicode&&this.unicode==null&&(this.unicode=E);return!0},y.encode=function(z,E){var re,ce;return E==null&&(E="macroman"),re=H0.encode(z,E),(ce=new Zh).writeUInt16(0),ce.writeUInt16(1),re.table=ce.data.concat(re.subtable),re},y}(),jv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Hf(y,Af),y.prototype.tag="hhea",y.prototype.parse=function(z){return z.pos=this.offset,this.version=z.readInt(),this.ascender=z.readShort(),this.decender=z.readShort(),this.lineGap=z.readShort(),this.advanceWidthMax=z.readShort(),this.minLeftSideBearing=z.readShort(),this.minRightSideBearing=z.readShort(),this.xMaxExtent=z.readShort(),this.caretSlopeRise=z.readShort(),this.caretSlopeRun=z.readShort(),this.caretOffset=z.readShort(),z.pos+=8,this.metricDataFormat=z.readShort(),this.numberOfMetrics=z.readUInt16()},y}(),Qv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Hf(y,Af),y.prototype.tag="OS/2",y.prototype.parse=function(z){if(z.pos=this.offset,this.version=z.readUInt16(),this.averageCharWidth=z.readShort(),this.weightClass=z.readUInt16(),this.widthClass=z.readUInt16(),this.type=z.readShort(),this.ySubscriptXSize=z.readShort(),this.ySubscriptYSize=z.readShort(),this.ySubscriptXOffset=z.readShort(),this.ySubscriptYOffset=z.readShort(),this.ySuperscriptXSize=z.readShort(),this.ySuperscriptYSize=z.readShort(),this.ySuperscriptXOffset=z.readShort(),this.ySuperscriptYOffset=z.readShort(),this.yStrikeoutSize=z.readShort(),this.yStrikeoutPosition=z.readShort(),this.familyClass=z.readShort(),this.panose=function(){var E,re;for(re=[],E=0;E<10;++E)re.push(z.readByte());return re}(),this.charRange=function(){var E,re;for(re=[],E=0;E<4;++E)re.push(z.readInt());return re}(),this.vendorID=z.readString(4),this.selection=z.readShort(),this.firstCharIndex=z.readShort(),this.lastCharIndex=z.readShort(),this.version>0&&(this.ascent=z.readShort(),this.descent=z.readShort(),this.lineGap=z.readShort(),this.winAscent=z.readShort(),this.winDescent=z.readShort(),this.codePageRange=function(){var E,re;for(re=[],E=0;E<2;E=++E)re.push(z.readInt());return re}(),this.version>1))return this.xHeight=z.readShort(),this.capHeight=z.readShort(),this.defaultChar=z.readShort(),this.breakChar=z.readShort(),this.maxContext=z.readShort()},y}(),Hv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Hf(y,Af),y.prototype.tag="post",y.prototype.parse=function(z){var E,re,ce;switch(z.pos=this.offset,this.format=z.readInt(),this.italicAngle=z.readInt(),this.underlinePosition=z.readShort(),this.underlineThickness=z.readShort(),this.isFixedPitch=z.readInt(),this.minMemType42=z.readInt(),this.maxMemType42=z.readInt(),this.minMemType1=z.readInt(),this.maxMemType1=z.readInt(),this.format){case 65536:case 196608:break;case 131072:var fe;for(re=z.readUInt16(),this.glyphNameIndex=[],fe=0;0<=re?fe<re:fe>re;fe=0<=re?++fe:--fe)this.glyphNameIndex.push(z.readUInt16());for(this.names=[],ce=[];z.pos<this.offset+this.length;)E=z.readByte(),ce.push(this.names.push(z.readString(E)));return ce;case 151552:return re=z.readUInt16(),this.offsets=z.read(re);case 262144:return this.map=function(){var $e,Pe,Ge;for(Ge=[],fe=$e=0,Pe=this.file.maxp.numGlyphs;0<=Pe?$e<Pe:$e>Pe;fe=0<=Pe?++$e:--$e)Ge.push(z.readUInt32());return Ge}.call(this)}},y}(),zv=function(y,z){this.raw=y,this.length=y.length,this.platformID=z.platformID,this.encodingID=z.encodingID,this.languageID=z.languageID},Kv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Hf(y,Af),y.prototype.tag="name",y.prototype.parse=function(z){var E,re,ce,fe,$e,Pe,Ge,Ye,ft,Pt,Jt;for(z.pos=this.offset,z.readShort(),E=z.readShort(),Pe=z.readShort(),re=[],fe=0;0<=E?fe<E:fe>E;fe=0<=E?++fe:--fe)re.push({platformID:z.readShort(),encodingID:z.readShort(),languageID:z.readShort(),nameID:z.readShort(),length:z.readShort(),offset:this.offset+Pe+z.readShort()});for(Ge={},fe=ft=0,Pt=re.length;ft<Pt;fe=++ft)ce=re[fe],z.pos=ce.offset,Ye=z.readString(ce.length),$e=new zv(Ye,ce),Ge[Jt=ce.nameID]==null&&(Ge[Jt]=[]),Ge[ce.nameID].push($e);this.strings=Ge,this.copyright=Ge[0],this.fontFamily=Ge[1],this.fontSubfamily=Ge[2],this.uniqueSubfamily=Ge[3],this.fontName=Ge[4],this.version=Ge[5];try{this.postscriptName=Ge[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(At){this.postscriptName=Ge[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=Ge[7],this.manufacturer=Ge[8],this.designer=Ge[9],this.description=Ge[10],this.vendorUrl=Ge[11],this.designerUrl=Ge[12],this.license=Ge[13],this.licenseUrl=Ge[14],this.preferredFamily=Ge[15],this.preferredSubfamily=Ge[17],this.compatibleFull=Ge[18],this.sampleText=Ge[19]},y}(),$v=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Hf(y,Af),y.prototype.tag="maxp",y.prototype.parse=function(z){return z.pos=this.offset,this.version=z.readInt(),this.numGlyphs=z.readUInt16(),this.maxPoints=z.readUInt16(),this.maxContours=z.readUInt16(),this.maxCompositePoints=z.readUInt16(),this.maxComponentContours=z.readUInt16(),this.maxZones=z.readUInt16(),this.maxTwilightPoints=z.readUInt16(),this.maxStorage=z.readUInt16(),this.maxFunctionDefs=z.readUInt16(),this.maxInstructionDefs=z.readUInt16(),this.maxStackElements=z.readUInt16(),this.maxSizeOfInstructions=z.readUInt16(),this.maxComponentElements=z.readUInt16(),this.maxComponentDepth=z.readUInt16()},y}(),Zv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Hf(y,Af),y.prototype.tag="hmtx",y.prototype.parse=function(z){var E,re,ce,fe,$e,Pe,Ge;for(z.pos=this.offset,this.metrics=[],E=0,Pe=this.file.hhea.numberOfMetrics;0<=Pe?E<Pe:E>Pe;E=0<=Pe?++E:--E)this.metrics.push({advance:z.readUInt16(),lsb:z.readInt16()});for(ce=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Ye,ft;for(ft=[],E=Ye=0;0<=ce?Ye<ce:Ye>ce;E=0<=ce?++Ye:--Ye)ft.push(z.readInt16());return ft}(),this.widths=function(){var Ye,ft,Pt,Jt;for(Jt=[],Ye=0,ft=(Pt=this.metrics).length;Ye<ft;Ye++)fe=Pt[Ye],Jt.push(fe.advance);return Jt}.call(this),re=this.widths[this.widths.length-1],Ge=[],E=$e=0;0<=ce?$e<ce:$e>ce;E=0<=ce?++$e:--$e)Ge.push(this.widths.push(re));return Ge},y.prototype.forGlyph=function(z){return z in this.metrics?this.metrics[z]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[z-this.metrics.length]}},y}(),K0=[].slice,Wv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Hf(y,Af),y.prototype.tag="glyf",y.prototype.parse=function(){return this.cache={}},y.prototype.glyphFor=function(z){var E,re,ce,fe,$e,Pe,Ge,Ye,ft,Pt;return z in this.cache?this.cache[z]:(fe=this.file.loca,E=this.file.contents,re=fe.indexOf(z),(ce=fe.lengthOf(z))===0?this.cache[z]=null:(E.pos=this.offset+re,$e=(Pe=new Zh(E.read(ce))).readShort(),Ye=Pe.readShort(),Pt=Pe.readShort(),Ge=Pe.readShort(),ft=Pe.readShort(),this.cache[z]=$e===-1?new Vv(Pe,Ye,Pt,Ge,ft):new Gv(Pe,$e,Ye,Pt,Ge,ft),this.cache[z]))},y.prototype.encode=function(z,E,re){var ce,fe,$e,Pe,Ge;for($e=[],fe=[],Pe=0,Ge=E.length;Pe<Ge;Pe++)ce=z[E[Pe]],fe.push($e.length),ce&&($e=$e.concat(ce.encode(re)));return fe.push($e.length),{table:$e,offsets:fe}},y}(),Gv=function(){function y(z,E,re,ce,fe,$e){this.raw=z,this.numberOfContours=E,this.xMin=re,this.yMin=ce,this.xMax=fe,this.yMax=$e,this.compound=!1}return y.prototype.encode=function(){return this.raw.data},y}(),Vv=function(){function y(z,E,re,ce,fe){var $e,Pe;for(this.raw=z,this.xMin=E,this.yMin=re,this.xMax=ce,this.yMax=fe,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],$e=this.raw;Pe=$e.readShort(),this.glyphOffsets.push($e.pos),this.glyphIDs.push($e.readUInt16()),32&Pe;)$e.pos+=1&Pe?4:2,128&Pe?$e.pos+=8:64&Pe?$e.pos+=4:8&Pe&&($e.pos+=2)}return y.prototype.encode=function(){var z,E,re;for(E=new Zh(K0.call(this.raw.data)),z=0,re=this.glyphIDs.length;z<re;++z)E.pos=this.glyphOffsets[z];return E.data},y}(),Xv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Hf(y,Af),y.prototype.tag="loca",y.prototype.parse=function(z){var E,re;return z.pos=this.offset,E=this.file.head.indexToLocFormat,this.offsets=E===0?function(){var ce,fe;for(fe=[],re=0,ce=this.length;re<ce;re+=2)fe.push(2*z.readUInt16());return fe}.call(this):function(){var ce,fe;for(fe=[],re=0,ce=this.length;re<ce;re+=4)fe.push(z.readUInt32());return fe}.call(this)},y.prototype.indexOf=function(z){return this.offsets[z]},y.prototype.lengthOf=function(z){return this.offsets[z+1]-this.offsets[z]},y.prototype.encode=function(z,E){for(var re=new Uint32Array(this.offsets.length),ce=0,fe=0,$e=0;$e<re.length;++$e)if(re[$e]=ce,fe<E.length&&E[fe]==$e){++fe,re[$e]=ce;var Pe=this.offsets[$e],Ge=this.offsets[$e+1]-Pe;Ge>0&&(ce+=Ge)}for(var Ye=new Array(4*re.length),ft=0;ft<re.length;++ft)Ye[4*ft+3]=255&re[ft],Ye[4*ft+2]=(65280&re[ft])>>8,Ye[4*ft+1]=(16711680&re[ft])>>16,Ye[4*ft]=(4278190080&re[ft])>>24;return Ye},y}(),Yv=function(){function y(z){this.font=z,this.subset={},this.unicodes={},this.next=33}return y.prototype.generateCmap=function(){var z,E,re,ce,fe;for(E in ce=this.font.cmap.tables[0].codeMap,z={},fe=this.subset)re=fe[E],z[E]=ce[re];return z},y.prototype.glyphsFor=function(z){var E,re,ce,fe,$e,Pe,Ge;for(ce={},$e=0,Pe=z.length;$e<Pe;$e++)ce[fe=z[$e]]=this.font.glyf.glyphFor(fe);for(fe in E=[],ce)(re=ce[fe])!=null&&re.compound&&E.push.apply(E,re.glyphIDs);if(E.length>0)for(fe in Ge=this.glyphsFor(E))re=Ge[fe],ce[fe]=re;return ce},y.prototype.encode=function(z,E){var re,ce,fe,$e,Pe,Ge,Ye,ft,Pt,Jt,At,In,Cn,On,An;for(ce in re=z0.encode(this.generateCmap(),"unicode"),$e=this.glyphsFor(z),At={0:0},An=re.charMap)At[(Ge=An[ce]).old]=Ge.new;for(In in Jt=re.maxGlyphID,$e)In in At||(At[In]=Jt++);return ft=function(wr){var ur,Gn;for(ur in Gn={},wr)Gn[wr[ur]]=ur;return Gn}(At),Pt=Object.keys(ft).sort(function(wr,ur){return wr-ur}),Cn=function(){var wr,ur,Gn;for(Gn=[],wr=0,ur=Pt.length;wr<ur;wr++)Pe=Pt[wr],Gn.push(ft[Pe]);return Gn}(),fe=this.font.glyf.encode($e,Cn,At),Ye=this.font.loca.encode(fe.offsets,Cn),On={cmap:this.font.cmap.raw(),glyf:fe.table,loca:Ye,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(E)},this.font.os2.exists&&(On["OS/2"]=this.font.os2.raw()),this.font.directory.encode(On)},y}();La.API.PDFObject=function(){var y;function z(){}return y=function(E,re){return(Array(re+1).join("0")+E).slice(-re)},z.convert=function(E){var re,ce,fe,$e;if(Array.isArray(E))return"["+function(){var Pe,Ge,Ye;for(Ye=[],Pe=0,Ge=E.length;Pe<Ge;Pe++)re=E[Pe],Ye.push(z.convert(re));return Ye}().join(" ")+"]";if(typeof E=="string")return"/"+E;if(E!=null&&E.isString)return"("+E+")";if(E instanceof Date)return"(D:"+y(E.getUTCFullYear(),4)+y(E.getUTCMonth(),2)+y(E.getUTCDate(),2)+y(E.getUTCHours(),2)+y(E.getUTCMinutes(),2)+y(E.getUTCSeconds(),2)+"Z)";if({}.toString.call(E)==="[object Object]"){for(ce in fe=["<<"],E)$e=E[ce],fe.push("/"+ce+" "+z.convert($e));return fe.push(">>"),fe.join(`
`)}return""+E},z}()},86129:function(Jn,kt,ae){var x=ae(19208).lW,dt=ae(97671);(function(Ie){Jn.exports=Ie()})(function(){return function Ie(Je,ze,Le){function Ue(oe,Oe){if(!ze[oe]){if(!Je[oe]){var ve=void 0;if(!Oe&&ve)return require(oe,!0);if(he)return he(oe,!0);var Me=new Error("Cannot find module '"+oe+"'");throw Me.code="MODULE_NOT_FOUND",Me}var Se=ze[oe]={exports:{}};Je[oe][0].call(Se.exports,function(Te){var we=Je[oe][1][Te];return Ue(we||Te)},Se,Se.exports,Ie,Je,ze,Le)}return ze[oe].exports}for(var he=void 0,xe=0;xe<Le.length;xe++)Ue(Le[xe]);return Ue}({1:[function(Ie,Je,ze){"use strict";var Le=Ie("./utils"),Ue=Ie("./support"),he="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";ze.encode=function(xe){for(var oe,Oe,ve,Me,Se,Te,we,Ce=[],Ee=0,ke=xe.length,Ke=ke,Qe=Le.getTypeOf(xe)!=="string";Ee<xe.length;)Ke=ke-Ee,ve=Qe?(oe=xe[Ee++],Oe=Ee<ke?xe[Ee++]:0,Ee<ke?xe[Ee++]:0):(oe=xe.charCodeAt(Ee++),Oe=Ee<ke?xe.charCodeAt(Ee++):0,Ee<ke?xe.charCodeAt(Ee++):0),Me=oe>>2,Se=(3&oe)<<4|Oe>>4,Te=1<Ke?(15&Oe)<<2|ve>>6:64,we=2<Ke?63&ve:64,Ce.push(he.charAt(Me)+he.charAt(Se)+he.charAt(Te)+he.charAt(we));return Ce.join("")},ze.decode=function(xe){var oe,Oe,ve,Me,Se,Te,we=0,Ce=0,Ee="data:";if(xe.substr(0,Ee.length)===Ee)throw new Error("Invalid base64 input, it looks like a data url.");var ke,Ke=3*(xe=xe.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(xe.charAt(xe.length-1)===he.charAt(64)&&Ke--,xe.charAt(xe.length-2)===he.charAt(64)&&Ke--,Ke%1!=0)throw new Error("Invalid base64 input, bad content length.");for(ke=Ue.uint8array?new Uint8Array(0|Ke):new Array(0|Ke);we<xe.length;)oe=he.indexOf(xe.charAt(we++))<<2|(Me=he.indexOf(xe.charAt(we++)))>>4,Oe=(15&Me)<<4|(Se=he.indexOf(xe.charAt(we++)))>>2,ve=(3&Se)<<6|(Te=he.indexOf(xe.charAt(we++))),ke[Ce++]=oe,Se!==64&&(ke[Ce++]=Oe),Te!==64&&(ke[Ce++]=ve);return ke}},{"./support":30,"./utils":32}],2:[function(Ie,Je,ze){"use strict";var Le=Ie("./external"),Ue=Ie("./stream/DataWorker"),he=Ie("./stream/Crc32Probe"),xe=Ie("./stream/DataLengthProbe");function oe(Oe,ve,Me,Se,Te){this.compressedSize=Oe,this.uncompressedSize=ve,this.crc32=Me,this.compression=Se,this.compressedContent=Te}oe.prototype={getContentWorker:function(){var Oe=new Ue(Le.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new xe("data_length")),ve=this;return Oe.on("end",function(){if(this.streamInfo.data_length!==ve.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),Oe},getCompressedWorker:function(){return new Ue(Le.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},oe.createWorkerFrom=function(Oe,ve,Me){return Oe.pipe(new he).pipe(new xe("uncompressedSize")).pipe(ve.compressWorker(Me)).pipe(new xe("compressedSize")).withStreamInfo("compression",ve)},Je.exports=oe},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(Ie,Je,ze){"use strict";var Le=Ie("./stream/GenericWorker");ze.STORE={magic:"\0\0",compressWorker:function(){return new Le("STORE compression")},uncompressWorker:function(){return new Le("STORE decompression")}},ze.DEFLATE=Ie("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(Ie,Je,ze){"use strict";var Le=Ie("./utils"),Ue=function(){for(var he,xe=[],oe=0;oe<256;oe++){he=oe;for(var Oe=0;Oe<8;Oe++)he=1&he?3988292384^he>>>1:he>>>1;xe[oe]=he}return xe}();Je.exports=function(he,xe){return he!==void 0&&he.length?Le.getTypeOf(he)!=="string"?function(oe,Oe,ve,Me){var Se=Ue,Te=Me+ve;oe^=-1;for(var we=Me;we<Te;we++)oe=oe>>>8^Se[255&(oe^Oe[we])];return-1^oe}(0|xe,he,he.length,0):function(oe,Oe,ve,Me){var Se=Ue,Te=Me+ve;oe^=-1;for(var we=Me;we<Te;we++)oe=oe>>>8^Se[255&(oe^Oe.charCodeAt(we))];return-1^oe}(0|xe,he,he.length,0):0}},{"./utils":32}],5:[function(Ie,Je,ze){"use strict";ze.base64=!1,ze.binary=!1,ze.dir=!1,ze.createFolders=!0,ze.date=null,ze.compression=null,ze.compressionOptions=null,ze.comment=null,ze.unixPermissions=null,ze.dosPermissions=null},{}],6:[function(Ie,Je,ze){"use strict";var Le=null;Le=typeof Promise!="undefined"?Promise:Ie("lie"),Je.exports={Promise:Le}},{lie:37}],7:[function(Ie,Je,ze){"use strict";var Le=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",Ue=Ie("pako"),he=Ie("./utils"),xe=Ie("./stream/GenericWorker"),oe=Le?"uint8array":"array";function Oe(ve,Me){xe.call(this,"FlateWorker/"+ve),this._pako=null,this._pakoAction=ve,this._pakoOptions=Me,this.meta={}}ze.magic="\b\0",he.inherits(Oe,xe),Oe.prototype.processChunk=function(ve){this.meta=ve.meta,this._pako===null&&this._createPako(),this._pako.push(he.transformTo(oe,ve.data),!1)},Oe.prototype.flush=function(){xe.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},Oe.prototype.cleanUp=function(){xe.prototype.cleanUp.call(this),this._pako=null},Oe.prototype._createPako=function(){this._pako=new Ue[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var ve=this;this._pako.onData=function(Me){ve.push({data:Me,meta:ve.meta})}},ze.compressWorker=function(ve){return new Oe("Deflate",ve)},ze.uncompressWorker=function(){return new Oe("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(Ie,Je,ze){"use strict";function Le(Se,Te){var we,Ce="";for(we=0;we<Te;we++)Ce+=String.fromCharCode(255&Se),Se>>>=8;return Ce}function Ue(Se,Te,we,Ce,Ee,ke){var Ke,Qe,je=Se.file,qe=Se.compression,Ve=ke!==oe.utf8encode,ct=he.transformTo("string",ke(je.name)),ot=he.transformTo("string",oe.utf8encode(je.name)),pt=je.comment,bt=he.transformTo("string",ke(pt)),He=he.transformTo("string",oe.utf8encode(pt)),ht=ot.length!==je.name.length,_e=He.length!==pt.length,Re="",Nt="",it="",at=je.dir,Bt=je.date,Ze={crc32:0,compressedSize:0,uncompressedSize:0};Te&&!we||(Ze.crc32=Se.crc32,Ze.compressedSize=Se.compressedSize,Ze.uncompressedSize=Se.uncompressedSize);var De=0;Te&&(De|=8),Ve||!ht&&!_e||(De|=2048);var ut=0,$t=0;at&&(ut|=16),Ee==="UNIX"?($t=798,ut|=function(tt,Ot){var Rt=tt;return tt||(Rt=Ot?16893:33204),(65535&Rt)<<16}(je.unixPermissions,at)):($t=20,ut|=function(tt){return 63&(tt||0)}(je.dosPermissions)),Ke=Bt.getUTCHours(),Ke<<=6,Ke|=Bt.getUTCMinutes(),Ke<<=5,Ke|=Bt.getUTCSeconds()/2,Qe=Bt.getUTCFullYear()-1980,Qe<<=4,Qe|=Bt.getUTCMonth()+1,Qe<<=5,Qe|=Bt.getUTCDate(),ht&&(Nt=Le(1,1)+Le(Oe(ct),4)+ot,Re+="up"+Le(Nt.length,2)+Nt),_e&&(it=Le(1,1)+Le(Oe(bt),4)+He,Re+="uc"+Le(it.length,2)+it);var zt="";return zt+=`
\0`,zt+=Le(De,2),zt+=qe.magic,zt+=Le(Ke,2),zt+=Le(Qe,2),zt+=Le(Ze.crc32,4),zt+=Le(Ze.compressedSize,4),zt+=Le(Ze.uncompressedSize,4),zt+=Le(ct.length,2),zt+=Le(Re.length,2),{fileRecord:ve.LOCAL_FILE_HEADER+zt+ct+Re,dirRecord:ve.CENTRAL_FILE_HEADER+Le($t,2)+zt+Le(bt.length,2)+"\0\0\0\0"+Le(ut,4)+Le(Ce,4)+ct+Re+bt}}var he=Ie("../utils"),xe=Ie("../stream/GenericWorker"),oe=Ie("../utf8"),Oe=Ie("../crc32"),ve=Ie("../signature");function Me(Se,Te,we,Ce){xe.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=Te,this.zipPlatform=we,this.encodeFileName=Ce,this.streamFiles=Se,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}he.inherits(Me,xe),Me.prototype.push=function(Se){var Te=Se.meta.percent||0,we=this.entriesCount,Ce=this._sources.length;this.accumulate?this.contentBuffer.push(Se):(this.bytesWritten+=Se.data.length,xe.prototype.push.call(this,{data:Se.data,meta:{currentFile:this.currentFile,percent:we?(Te+100*(we-Ce-1))/we:100}}))},Me.prototype.openedSource=function(Se){this.currentSourceOffset=this.bytesWritten,this.currentFile=Se.file.name;var Te=this.streamFiles&&!Se.file.dir;if(Te){var we=Ue(Se,Te,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:we.fileRecord,meta:{percent:0}})}else this.accumulate=!0},Me.prototype.closedSource=function(Se){this.accumulate=!1;var Te=this.streamFiles&&!Se.file.dir,we=Ue(Se,Te,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(we.dirRecord),Te)this.push({data:function(Ce){return ve.DATA_DESCRIPTOR+Le(Ce.crc32,4)+Le(Ce.compressedSize,4)+Le(Ce.uncompressedSize,4)}(Se),meta:{percent:100}});else for(this.push({data:we.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},Me.prototype.flush=function(){for(var Se=this.bytesWritten,Te=0;Te<this.dirRecords.length;Te++)this.push({data:this.dirRecords[Te],meta:{percent:100}});var we=this.bytesWritten-Se,Ce=function(Ee,ke,Ke,Qe,je){var qe=he.transformTo("string",je(Qe));return ve.CENTRAL_DIRECTORY_END+"\0\0\0\0"+Le(Ee,2)+Le(Ee,2)+Le(ke,4)+Le(Ke,4)+Le(qe.length,2)+qe}(this.dirRecords.length,we,Se,this.zipComment,this.encodeFileName);this.push({data:Ce,meta:{percent:100}})},Me.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},Me.prototype.registerPrevious=function(Se){this._sources.push(Se);var Te=this;return Se.on("data",function(we){Te.processChunk(we)}),Se.on("end",function(){Te.closedSource(Te.previous.streamInfo),Te._sources.length?Te.prepareNextSource():Te.end()}),Se.on("error",function(we){Te.error(we)}),this},Me.prototype.resume=function(){return!!xe.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},Me.prototype.error=function(Se){var Te=this._sources;if(!xe.prototype.error.call(this,Se))return!1;for(var we=0;we<Te.length;we++)try{Te[we].error(Se)}catch(Ce){}return!0},Me.prototype.lock=function(){xe.prototype.lock.call(this);for(var Se=this._sources,Te=0;Te<Se.length;Te++)Se[Te].lock()},Je.exports=Me},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(Ie,Je,ze){"use strict";var Le=Ie("../compressions"),Ue=Ie("./ZipFileWorker");ze.generateWorker=function(he,xe,oe){var Oe=new Ue(xe.streamFiles,oe,xe.platform,xe.encodeFileName),ve=0;try{he.forEach(function(Me,Se){ve++;var Te=function(ke,Ke){var Qe=ke||Ke,je=Le[Qe];if(!je)throw new Error(Qe+" is not a valid compression method !");return je}(Se.options.compression,xe.compression),we=Se.options.compressionOptions||xe.compressionOptions||{},Ce=Se.dir,Ee=Se.date;Se._compressWorker(Te,we).withStreamInfo("file",{name:Me,dir:Ce,date:Ee,comment:Se.comment||"",unixPermissions:Se.unixPermissions,dosPermissions:Se.dosPermissions}).pipe(Oe)}),Oe.entriesCount=ve}catch(Me){Oe.error(Me)}return Oe}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(Ie,Je,ze){"use strict";function Le(){if(!(this instanceof Le))return new Le;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 Ue=new Le;for(var he in this)typeof this[he]!="function"&&(Ue[he]=this[he]);return Ue}}(Le.prototype=Ie("./object")).loadAsync=Ie("./load"),Le.support=Ie("./support"),Le.defaults=Ie("./defaults"),Le.version="3.10.1",Le.loadAsync=function(Ue,he){return new Le().loadAsync(Ue,he)},Le.external=Ie("./external"),Je.exports=Le},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(Ie,Je,ze){"use strict";var Le=Ie("./utils"),Ue=Ie("./external"),he=Ie("./utf8"),xe=Ie("./zipEntries"),oe=Ie("./stream/Crc32Probe"),Oe=Ie("./nodejsUtils");function ve(Me){return new Ue.Promise(function(Se,Te){var we=Me.decompressed.getContentWorker().pipe(new oe);we.on("error",function(Ce){Te(Ce)}).on("end",function(){we.streamInfo.crc32!==Me.decompressed.crc32?Te(new Error("Corrupted zip : CRC32 mismatch")):Se()}).resume()})}Je.exports=function(Me,Se){var Te=this;return Se=Le.extend(Se||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:he.utf8decode}),Oe.isNode&&Oe.isStream(Me)?Ue.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):Le.prepareContent("the loaded zip file",Me,!0,Se.optimizedBinaryString,Se.base64).then(function(we){var Ce=new xe(Se);return Ce.load(we),Ce}).then(function(we){var Ce=[Ue.Promise.resolve(we)],Ee=we.files;if(Se.checkCRC32)for(var ke=0;ke<Ee.length;ke++)Ce.push(ve(Ee[ke]));return Ue.Promise.all(Ce)}).then(function(we){for(var Ce=we.shift(),Ee=Ce.files,ke=0;ke<Ee.length;ke++){var Ke=Ee[ke],Qe=Ke.fileNameStr,je=Le.resolve(Ke.fileNameStr);Te.file(je,Ke.decompressed,{binary:!0,optimizedBinaryString:!0,date:Ke.date,dir:Ke.dir,comment:Ke.fileCommentStr.length?Ke.fileCommentStr:null,unixPermissions:Ke.unixPermissions,dosPermissions:Ke.dosPermissions,createFolders:Se.createFolders}),Ke.dir||(Te.file(je).unsafeOriginalName=Qe)}return Ce.zipComment.length&&(Te.comment=Ce.zipComment),Te})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(Ie,Je,ze){"use strict";var Le=Ie("../utils"),Ue=Ie("../stream/GenericWorker");function he(xe,oe){Ue.call(this,"Nodejs stream input adapter for "+xe),this._upstreamEnded=!1,this._bindStream(oe)}Le.inherits(he,Ue),he.prototype._bindStream=function(xe){var oe=this;(this._stream=xe).pause(),xe.on("data",function(Oe){oe.push({data:Oe,meta:{percent:0}})}).on("error",function(Oe){oe.isPaused?this.generatedError=Oe:oe.error(Oe)}).on("end",function(){oe.isPaused?oe._upstreamEnded=!0:oe.end()})},he.prototype.pause=function(){return!!Ue.prototype.pause.call(this)&&(this._stream.pause(),!0)},he.prototype.resume=function(){return!!Ue.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},Je.exports=he},{"../stream/GenericWorker":28,"../utils":32}],13:[function(Ie,Je,ze){"use strict";var Le=Ie("readable-stream").Readable;function Ue(he,xe,oe){Le.call(this,xe),this._helper=he;var Oe=this;he.on("data",function(ve,Me){Oe.push(ve)||Oe._helper.pause(),oe&&oe(Me)}).on("error",function(ve){Oe.emit("error",ve)}).on("end",function(){Oe.push(null)})}Ie("../utils").inherits(Ue,Le),Ue.prototype._read=function(){this._helper.resume()},Je.exports=Ue},{"../utils":32,"readable-stream":16}],14:[function(Ie,Je,ze){"use strict";Je.exports={isNode:typeof x!="undefined",newBufferFrom:function(Le,Ue){if(x.from&&x.from!==Uint8Array.from)return x.from(Le,Ue);if(typeof Le=="number")throw new Error('The "data" argument must not be a number');return new x(Le,Ue)},allocBuffer:function(Le){if(x.alloc)return x.alloc(Le);var Ue=new x(Le);return Ue.fill(0),Ue},isBuffer:function(Le){return x.isBuffer(Le)},isStream:function(Le){return Le&&typeof Le.on=="function"&&typeof Le.pause=="function"&&typeof Le.resume=="function"}}},{}],15:[function(Ie,Je,ze){"use strict";function Le(je,qe,Ve){var ct,ot=he.getTypeOf(qe),pt=he.extend(Ve||{},Oe);pt.date=pt.date||new Date,pt.compression!==null&&(pt.compression=pt.compression.toUpperCase()),typeof pt.unixPermissions=="string"&&(pt.unixPermissions=parseInt(pt.unixPermissions,8)),pt.unixPermissions&&16384&pt.unixPermissions&&(pt.dir=!0),pt.dosPermissions&&16&pt.dosPermissions&&(pt.dir=!0),pt.dir&&(je=Ee(je)),pt.createFolders&&(ct=Ce(je))&&ke.call(this,ct,!0);var bt=ot==="string"&&pt.binary===!1&&pt.base64===!1;Ve&&Ve.binary!==void 0||(pt.binary=!bt),(qe instanceof ve&&qe.uncompressedSize===0||pt.dir||!qe||qe.length===0)&&(pt.base64=!1,pt.binary=!0,qe="",pt.compression="STORE",ot="string");var He=null;He=qe instanceof ve||qe instanceof xe?qe:Te.isNode&&Te.isStream(qe)?new we(je,qe):he.prepareContent(je,qe,pt.binary,pt.optimizedBinaryString,pt.base64);var ht=new Me(je,He,pt);this.files[je]=ht}var Ue=Ie("./utf8"),he=Ie("./utils"),xe=Ie("./stream/GenericWorker"),oe=Ie("./stream/StreamHelper"),Oe=Ie("./defaults"),ve=Ie("./compressedObject"),Me=Ie("./zipObject"),Se=Ie("./generate"),Te=Ie("./nodejsUtils"),we=Ie("./nodejs/NodejsStreamInputAdapter"),Ce=function(je){je.slice(-1)==="/"&&(je=je.substring(0,je.length-1));var qe=je.lastIndexOf("/");return 0<qe?je.substring(0,qe):""},Ee=function(je){return je.slice(-1)!=="/"&&(je+="/"),je},ke=function(je,qe){return qe=qe!==void 0?qe:Oe.createFolders,je=Ee(je),this.files[je]||Le.call(this,je,null,{dir:!0,createFolders:qe}),this.files[je]};function Ke(je){return Object.prototype.toString.call(je)==="[object RegExp]"}var Qe={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(je){var qe,Ve,ct;for(qe in this.files)ct=this.files[qe],(Ve=qe.slice(this.root.length,qe.length))&&qe.slice(0,this.root.length)===this.root&&je(Ve,ct)},filter:function(je){var qe=[];return this.forEach(function(Ve,ct){je(Ve,ct)&&qe.push(ct)}),qe},file:function(je,qe,Ve){if(arguments.length!==1)return je=this.root+je,Le.call(this,je,qe,Ve),this;if(Ke(je)){var ct=je;return this.filter(function(pt,bt){return!bt.dir&&ct.test(pt)})}var ot=this.files[this.root+je];return ot&&!ot.dir?ot:null},folder:function(je){if(!je)return this;if(Ke(je))return this.filter(function(ot,pt){return pt.dir&&je.test(ot)});var qe=this.root+je,Ve=ke.call(this,qe),ct=this.clone();return ct.root=Ve.name,ct},remove:function(je){je=this.root+je;var qe=this.files[je];if(qe||(je.slice(-1)!=="/"&&(je+="/"),qe=this.files[je]),qe&&!qe.dir)delete this.files[je];else for(var Ve=this.filter(function(ot,pt){return pt.name.slice(0,je.length)===je}),ct=0;ct<Ve.length;ct++)delete this.files[Ve[ct].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(je){var qe,Ve={};try{if((Ve=he.extend(je||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Ue.utf8encode})).type=Ve.type.toLowerCase(),Ve.compression=Ve.compression.toUpperCase(),Ve.type==="binarystring"&&(Ve.type="string"),!Ve.type)throw new Error("No output type specified.");he.checkSupport(Ve.type),Ve.platform!=="darwin"&&Ve.platform!=="freebsd"&&Ve.platform!=="linux"&&Ve.platform!=="sunos"||(Ve.platform="UNIX"),Ve.platform==="win32"&&(Ve.platform="DOS");var ct=Ve.comment||this.comment||"";qe=Se.generateWorker(this,Ve,ct)}catch(ot){(qe=new xe("error")).error(ot)}return new oe(qe,Ve.type||"string",Ve.mimeType)},generateAsync:function(je,qe){return this.generateInternalStream(je).accumulate(qe)},generateNodeStream:function(je,qe){return(je=je||{}).type||(je.type="nodebuffer"),this.generateInternalStream(je).toNodejsStream(qe)}};Je.exports=Qe},{"./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(Ie,Je,ze){"use strict";Je.exports=Ie("stream")},{stream:void 0}],17:[function(Ie,Je,ze){"use strict";var Le=Ie("./DataReader");function Ue(he){Le.call(this,he);for(var xe=0;xe<this.data.length;xe++)he[xe]=255&he[xe]}Ie("../utils").inherits(Ue,Le),Ue.prototype.byteAt=function(he){return this.data[this.zero+he]},Ue.prototype.lastIndexOfSignature=function(he){for(var xe=he.charCodeAt(0),oe=he.charCodeAt(1),Oe=he.charCodeAt(2),ve=he.charCodeAt(3),Me=this.length-4;0<=Me;--Me)if(this.data[Me]===xe&&this.data[Me+1]===oe&&this.data[Me+2]===Oe&&this.data[Me+3]===ve)return Me-this.zero;return-1},Ue.prototype.readAndCheckSignature=function(he){var xe=he.charCodeAt(0),oe=he.charCodeAt(1),Oe=he.charCodeAt(2),ve=he.charCodeAt(3),Me=this.readData(4);return xe===Me[0]&&oe===Me[1]&&Oe===Me[2]&&ve===Me[3]},Ue.prototype.readData=function(he){if(this.checkOffset(he),he===0)return[];var xe=this.data.slice(this.zero+this.index,this.zero+this.index+he);return this.index+=he,xe},Je.exports=Ue},{"../utils":32,"./DataReader":18}],18:[function(Ie,Je,ze){"use strict";var Le=Ie("../utils");function Ue(he){this.data=he,this.length=he.length,this.index=0,this.zero=0}Ue.prototype={checkOffset:function(he){this.checkIndex(this.index+he)},checkIndex:function(he){if(this.length<this.zero+he||he<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+he+"). Corrupted zip ?")},setIndex:function(he){this.checkIndex(he),this.index=he},skip:function(he){this.setIndex(this.index+he)},byteAt:function(){},readInt:function(he){var xe,oe=0;for(this.checkOffset(he),xe=this.index+he-1;xe>=this.index;xe--)oe=(oe<<8)+this.byteAt(xe);return this.index+=he,oe},readString:function(he){return Le.transformTo("string",this.readData(he))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var he=this.readInt(4);return new Date(Date.UTC(1980+(he>>25&127),(he>>21&15)-1,he>>16&31,he>>11&31,he>>5&63,(31&he)<<1))}},Je.exports=Ue},{"../utils":32}],19:[function(Ie,Je,ze){"use strict";var Le=Ie("./Uint8ArrayReader");function Ue(he){Le.call(this,he)}Ie("../utils").inherits(Ue,Le),Ue.prototype.readData=function(he){this.checkOffset(he);var xe=this.data.slice(this.zero+this.index,this.zero+this.index+he);return this.index+=he,xe},Je.exports=Ue},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(Ie,Je,ze){"use strict";var Le=Ie("./DataReader");function Ue(he){Le.call(this,he)}Ie("../utils").inherits(Ue,Le),Ue.prototype.byteAt=function(he){return this.data.charCodeAt(this.zero+he)},Ue.prototype.lastIndexOfSignature=function(he){return this.data.lastIndexOf(he)-this.zero},Ue.prototype.readAndCheckSignature=function(he){return he===this.readData(4)},Ue.prototype.readData=function(he){this.checkOffset(he);var xe=this.data.slice(this.zero+this.index,this.zero+this.index+he);return this.index+=he,xe},Je.exports=Ue},{"../utils":32,"./DataReader":18}],21:[function(Ie,Je,ze){"use strict";var Le=Ie("./ArrayReader");function Ue(he){Le.call(this,he)}Ie("../utils").inherits(Ue,Le),Ue.prototype.readData=function(he){if(this.checkOffset(he),he===0)return new Uint8Array(0);var xe=this.data.subarray(this.zero+this.index,this.zero+this.index+he);return this.index+=he,xe},Je.exports=Ue},{"../utils":32,"./ArrayReader":17}],22:[function(Ie,Je,ze){"use strict";var Le=Ie("../utils"),Ue=Ie("../support"),he=Ie("./ArrayReader"),xe=Ie("./StringReader"),oe=Ie("./NodeBufferReader"),Oe=Ie("./Uint8ArrayReader");Je.exports=function(ve){var Me=Le.getTypeOf(ve);return Le.checkSupport(Me),Me!=="string"||Ue.uint8array?Me==="nodebuffer"?new oe(ve):Ue.uint8array?new Oe(Le.transformTo("uint8array",ve)):new he(Le.transformTo("array",ve)):new xe(ve)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(Ie,Je,ze){"use strict";ze.LOCAL_FILE_HEADER="PK",ze.CENTRAL_FILE_HEADER="PK",ze.CENTRAL_DIRECTORY_END="PK",ze.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",ze.ZIP64_CENTRAL_DIRECTORY_END="PK",ze.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(Ie,Je,ze){"use strict";var Le=Ie("./GenericWorker"),Ue=Ie("../utils");function he(xe){Le.call(this,"ConvertWorker to "+xe),this.destType=xe}Ue.inherits(he,Le),he.prototype.processChunk=function(xe){this.push({data:Ue.transformTo(this.destType,xe.data),meta:xe.meta})},Je.exports=he},{"../utils":32,"./GenericWorker":28}],25:[function(Ie,Je,ze){"use strict";var Le=Ie("./GenericWorker"),Ue=Ie("../crc32");function he(){Le.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}Ie("../utils").inherits(he,Le),he.prototype.processChunk=function(xe){this.streamInfo.crc32=Ue(xe.data,this.streamInfo.crc32||0),this.push(xe)},Je.exports=he},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(Ie,Je,ze){"use strict";var Le=Ie("../utils"),Ue=Ie("./GenericWorker");function he(xe){Ue.call(this,"DataLengthProbe for "+xe),this.propName=xe,this.withStreamInfo(xe,0)}Le.inherits(he,Ue),he.prototype.processChunk=function(xe){if(xe){var oe=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=oe+xe.data.length}Ue.prototype.processChunk.call(this,xe)},Je.exports=he},{"../utils":32,"./GenericWorker":28}],27:[function(Ie,Je,ze){"use strict";var Le=Ie("../utils"),Ue=Ie("./GenericWorker");function he(xe){Ue.call(this,"DataWorker");var oe=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,xe.then(function(Oe){oe.dataIsReady=!0,oe.data=Oe,oe.max=Oe&&Oe.length||0,oe.type=Le.getTypeOf(Oe),oe.isPaused||oe._tickAndRepeat()},function(Oe){oe.error(Oe)})}Le.inherits(he,Ue),he.prototype.cleanUp=function(){Ue.prototype.cleanUp.call(this),this.data=null},he.prototype.resume=function(){return!!Ue.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Le.delay(this._tickAndRepeat,[],this)),!0)},he.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(Le.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},he.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var xe=null,oe=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":xe=this.data.substring(this.index,oe);break;case"uint8array":xe=this.data.subarray(this.index,oe);break;case"array":case"nodebuffer":xe=this.data.slice(this.index,oe)}return this.index=oe,this.push({data:xe,meta:{percent:this.max?this.index/this.max*100:0}})},Je.exports=he},{"../utils":32,"./GenericWorker":28}],28:[function(Ie,Je,ze){"use strict";function Le(Ue){this.name=Ue||"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}Le.prototype={push:function(Ue){this.emit("data",Ue)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(Ue){this.emit("error",Ue)}return!0},error:function(Ue){return!this.isFinished&&(this.isPaused?this.generatedError=Ue:(this.isFinished=!0,this.emit("error",Ue),this.previous&&this.previous.error(Ue),this.cleanUp()),!0)},on:function(Ue,he){return this._listeners[Ue].push(he),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(Ue,he){if(this._listeners[Ue])for(var xe=0;xe<this._listeners[Ue].length;xe++)this._listeners[Ue][xe].call(this,he)},pipe:function(Ue){return Ue.registerPrevious(this)},registerPrevious:function(Ue){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=Ue.streamInfo,this.mergeStreamInfo(),this.previous=Ue;var he=this;return Ue.on("data",function(xe){he.processChunk(xe)}),Ue.on("end",function(){he.end()}),Ue.on("error",function(xe){he.error(xe)}),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 Ue=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),Ue=!0),this.previous&&this.previous.resume(),!Ue},flush:function(){},processChunk:function(Ue){this.push(Ue)},withStreamInfo:function(Ue,he){return this.extraStreamInfo[Ue]=he,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var Ue in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,Ue)&&(this.streamInfo[Ue]=this.extraStreamInfo[Ue])},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 Ue="Worker "+this.name;return this.previous?this.previous+" -> "+Ue:Ue}},Je.exports=Le},{}],29:[function(Ie,Je,ze){"use strict";var Le=Ie("../utils"),Ue=Ie("./ConvertWorker"),he=Ie("./GenericWorker"),xe=Ie("../base64"),oe=Ie("../support"),Oe=Ie("../external"),ve=null;if(oe.nodestream)try{ve=Ie("../nodejs/NodejsStreamOutputAdapter")}catch(Te){}function Me(Te,we){return new Oe.Promise(function(Ce,Ee){var ke=[],Ke=Te._internalType,Qe=Te._outputType,je=Te._mimeType;Te.on("data",function(qe,Ve){ke.push(qe),we&&we(Ve)}).on("error",function(qe){ke=[],Ee(qe)}).on("end",function(){try{var qe=function(Ve,ct,ot){switch(Ve){case"blob":return Le.newBlob(Le.transformTo("arraybuffer",ct),ot);case"base64":return xe.encode(ct);default:return Le.transformTo(Ve,ct)}}(Qe,function(Ve,ct){var ot,pt=0,bt=null,He=0;for(ot=0;ot<ct.length;ot++)He+=ct[ot].length;switch(Ve){case"string":return ct.join("");case"array":return Array.prototype.concat.apply([],ct);case"uint8array":for(bt=new Uint8Array(He),ot=0;ot<ct.length;ot++)bt.set(ct[ot],pt),pt+=ct[ot].length;return bt;case"nodebuffer":return x.concat(ct);default:throw new Error("concat : unsupported type '"+Ve+"'")}}(Ke,ke),je);Ce(qe)}catch(Ve){Ee(Ve)}ke=[]}).resume()})}function Se(Te,we,Ce){var Ee=we;switch(we){case"blob":case"arraybuffer":Ee="uint8array";break;case"base64":Ee="string"}try{this._internalType=Ee,this._outputType=we,this._mimeType=Ce,Le.checkSupport(Ee),this._worker=Te.pipe(new Ue(Ee)),Te.lock()}catch(ke){this._worker=new he("error"),this._worker.error(ke)}}Se.prototype={accumulate:function(Te){return Me(this,Te)},on:function(Te,we){var Ce=this;return Te==="data"?this._worker.on(Te,function(Ee){we.call(Ce,Ee.data,Ee.meta)}):this._worker.on(Te,function(){Le.delay(we,arguments,Ce)}),this},resume:function(){return Le.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(Te){if(Le.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new ve(this,{objectMode:this._outputType!=="nodebuffer"},Te)}},Je.exports=Se},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(Ie,Je,ze){"use strict";if(ze.base64=!0,ze.array=!0,ze.string=!0,ze.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",ze.nodebuffer=typeof x!="undefined",ze.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")ze.blob=!1;else{var Le=new ArrayBuffer(0);try{ze.blob=new Blob([Le],{type:"application/zip"}).size===0}catch(he){try{var Ue=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);Ue.append(Le),ze.blob=Ue.getBlob("application/zip").size===0}catch(xe){ze.blob=!1}}}try{ze.nodestream=!!Ie("readable-stream").Readable}catch(he){ze.nodestream=!1}},{"readable-stream":16}],31:[function(Ie,Je,ze){"use strict";for(var Le=Ie("./utils"),Ue=Ie("./support"),he=Ie("./nodejsUtils"),xe=Ie("./stream/GenericWorker"),oe=new Array(256),Oe=0;Oe<256;Oe++)oe[Oe]=252<=Oe?6:248<=Oe?5:240<=Oe?4:224<=Oe?3:192<=Oe?2:1;oe[254]=oe[254]=1;function ve(){xe.call(this,"utf-8 decode"),this.leftOver=null}function Me(){xe.call(this,"utf-8 encode")}ze.utf8encode=function(Se){return Ue.nodebuffer?he.newBufferFrom(Se,"utf-8"):function(Te){var we,Ce,Ee,ke,Ke,Qe=Te.length,je=0;for(ke=0;ke<Qe;ke++)(64512&(Ce=Te.charCodeAt(ke)))==55296&&ke+1<Qe&&(64512&(Ee=Te.charCodeAt(ke+1)))==56320&&(Ce=65536+(Ce-55296<<10)+(Ee-56320),ke++),je+=Ce<128?1:Ce<2048?2:Ce<65536?3:4;for(we=Ue.uint8array?new Uint8Array(je):new Array(je),ke=Ke=0;Ke<je;ke++)(64512&(Ce=Te.charCodeAt(ke)))==55296&&ke+1<Qe&&(64512&(Ee=Te.charCodeAt(ke+1)))==56320&&(Ce=65536+(Ce-55296<<10)+(Ee-56320),ke++),Ce<128?we[Ke++]=Ce:(Ce<2048?we[Ke++]=192|Ce>>>6:(Ce<65536?we[Ke++]=224|Ce>>>12:(we[Ke++]=240|Ce>>>18,we[Ke++]=128|Ce>>>12&63),we[Ke++]=128|Ce>>>6&63),we[Ke++]=128|63&Ce);return we}(Se)},ze.utf8decode=function(Se){return Ue.nodebuffer?Le.transformTo("nodebuffer",Se).toString("utf-8"):function(Te){var we,Ce,Ee,ke,Ke=Te.length,Qe=new Array(2*Ke);for(we=Ce=0;we<Ke;)if((Ee=Te[we++])<128)Qe[Ce++]=Ee;else if(4<(ke=oe[Ee]))Qe[Ce++]=65533,we+=ke-1;else{for(Ee&=ke===2?31:ke===3?15:7;1<ke&&we<Ke;)Ee=Ee<<6|63&Te[we++],ke--;1<ke?Qe[Ce++]=65533:Ee<65536?Qe[Ce++]=Ee:(Ee-=65536,Qe[Ce++]=55296|Ee>>10&1023,Qe[Ce++]=56320|1023&Ee)}return Qe.length!==Ce&&(Qe.subarray?Qe=Qe.subarray(0,Ce):Qe.length=Ce),Le.applyFromCharCode(Qe)}(Se=Le.transformTo(Ue.uint8array?"uint8array":"array",Se))},Le.inherits(ve,xe),ve.prototype.processChunk=function(Se){var Te=Le.transformTo(Ue.uint8array?"uint8array":"array",Se.data);if(this.leftOver&&this.leftOver.length){if(Ue.uint8array){var we=Te;(Te=new Uint8Array(we.length+this.leftOver.length)).set(this.leftOver,0),Te.set(we,this.leftOver.length)}else Te=this.leftOver.concat(Te);this.leftOver=null}var Ce=function(ke,Ke){var Qe;for((Ke=Ke||ke.length)>ke.length&&(Ke=ke.length),Qe=Ke-1;0<=Qe&&(192&ke[Qe])==128;)Qe--;return Qe<0||Qe===0?Ke:Qe+oe[ke[Qe]]>Ke?Qe:Ke}(Te),Ee=Te;Ce!==Te.length&&(Ue.uint8array?(Ee=Te.subarray(0,Ce),this.leftOver=Te.subarray(Ce,Te.length)):(Ee=Te.slice(0,Ce),this.leftOver=Te.slice(Ce,Te.length))),this.push({data:ze.utf8decode(Ee),meta:Se.meta})},ve.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:ze.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},ze.Utf8DecodeWorker=ve,Le.inherits(Me,xe),Me.prototype.processChunk=function(Se){this.push({data:ze.utf8encode(Se.data),meta:Se.meta})},ze.Utf8EncodeWorker=Me},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(Ie,Je,ze){"use strict";var Le=Ie("./support"),Ue=Ie("./base64"),he=Ie("./nodejsUtils"),xe=Ie("./external");function oe(we){return we}function Oe(we,Ce){for(var Ee=0;Ee<we.length;++Ee)Ce[Ee]=255&we.charCodeAt(Ee);return Ce}Ie("setimmediate"),ze.newBlob=function(we,Ce){ze.checkSupport("blob");try{return new Blob([we],{type:Ce})}catch(ke){try{var Ee=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return Ee.append(we),Ee.getBlob(Ce)}catch(Ke){throw new Error("Bug : can't construct the Blob.")}}};var ve={stringifyByChunk:function(we,Ce,Ee){var ke=[],Ke=0,Qe=we.length;if(Qe<=Ee)return String.fromCharCode.apply(null,we);for(;Ke<Qe;)Ce==="array"||Ce==="nodebuffer"?ke.push(String.fromCharCode.apply(null,we.slice(Ke,Math.min(Ke+Ee,Qe)))):ke.push(String.fromCharCode.apply(null,we.subarray(Ke,Math.min(Ke+Ee,Qe)))),Ke+=Ee;return ke.join("")},stringifyByChar:function(we){for(var Ce="",Ee=0;Ee<we.length;Ee++)Ce+=String.fromCharCode(we[Ee]);return Ce},applyCanBeUsed:{uint8array:function(){try{return Le.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(we){return!1}}(),nodebuffer:function(){try{return Le.nodebuffer&&String.fromCharCode.apply(null,he.allocBuffer(1)).length===1}catch(we){return!1}}()}};function Me(we){var Ce=65536,Ee=ze.getTypeOf(we),ke=!0;if(Ee==="uint8array"?ke=ve.applyCanBeUsed.uint8array:Ee==="nodebuffer"&&(ke=ve.applyCanBeUsed.nodebuffer),ke)for(;1<Ce;)try{return ve.stringifyByChunk(we,Ee,Ce)}catch(Ke){Ce=Math.floor(Ce/2)}return ve.stringifyByChar(we)}function Se(we,Ce){for(var Ee=0;Ee<we.length;Ee++)Ce[Ee]=we[Ee];return Ce}ze.applyFromCharCode=Me;var Te={};Te.string={string:oe,array:function(we){return Oe(we,new Array(we.length))},arraybuffer:function(we){return Te.string.uint8array(we).buffer},uint8array:function(we){return Oe(we,new Uint8Array(we.length))},nodebuffer:function(we){return Oe(we,he.allocBuffer(we.length))}},Te.array={string:Me,array:oe,arraybuffer:function(we){return new Uint8Array(we).buffer},uint8array:function(we){return new Uint8Array(we)},nodebuffer:function(we){return he.newBufferFrom(we)}},Te.arraybuffer={string:function(we){return Me(new Uint8Array(we))},array:function(we){return Se(new Uint8Array(we),new Array(we.byteLength))},arraybuffer:oe,uint8array:function(we){return new Uint8Array(we)},nodebuffer:function(we){return he.newBufferFrom(new Uint8Array(we))}},Te.uint8array={string:Me,array:function(we){return Se(we,new Array(we.length))},arraybuffer:function(we){return we.buffer},uint8array:oe,nodebuffer:function(we){return he.newBufferFrom(we)}},Te.nodebuffer={string:Me,array:function(we){return Se(we,new Array(we.length))},arraybuffer:function(we){return Te.nodebuffer.uint8array(we).buffer},uint8array:function(we){return Se(we,new Uint8Array(we.length))},nodebuffer:oe},ze.transformTo=function(we,Ce){if(Ce=Ce||"",!we)return Ce;ze.checkSupport(we);var Ee=ze.getTypeOf(Ce);return Te[Ee][we](Ce)},ze.resolve=function(we){for(var Ce=we.split("/"),Ee=[],ke=0;ke<Ce.length;ke++){var Ke=Ce[ke];Ke==="."||Ke===""&&ke!==0&&ke!==Ce.length-1||(Ke===".."?Ee.pop():Ee.push(Ke))}return Ee.join("/")},ze.getTypeOf=function(we){return typeof we=="string"?"string":Object.prototype.toString.call(we)==="[object Array]"?"array":Le.nodebuffer&&he.isBuffer(we)?"nodebuffer":Le.uint8array&&we instanceof Uint8Array?"uint8array":Le.arraybuffer&&we instanceof ArrayBuffer?"arraybuffer":void 0},ze.checkSupport=function(we){if(!Le[we.toLowerCase()])throw new Error(we+" is not supported by this platform")},ze.MAX_VALUE_16BITS=65535,ze.MAX_VALUE_32BITS=-1,ze.pretty=function(we){var Ce,Ee,ke="";for(Ee=0;Ee<(we||"").length;Ee++)ke+="\\x"+((Ce=we.charCodeAt(Ee))<16?"0":"")+Ce.toString(16).toUpperCase();return ke},ze.delay=function(we,Ce,Ee){setImmediate(function(){we.apply(Ee||null,Ce||[])})},ze.inherits=function(we,Ce){function Ee(){}Ee.prototype=Ce.prototype,we.prototype=new Ee},ze.extend=function(){var we,Ce,Ee={};for(we=0;we<arguments.length;we++)for(Ce in arguments[we])Object.prototype.hasOwnProperty.call(arguments[we],Ce)&&Ee[Ce]===void 0&&(Ee[Ce]=arguments[we][Ce]);return Ee},ze.prepareContent=function(we,Ce,Ee,ke,Ke){return xe.Promise.resolve(Ce).then(function(Qe){return Le.blob&&(Qe instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(Qe))!==-1)&&typeof FileReader!="undefined"?new xe.Promise(function(je,qe){var Ve=new FileReader;Ve.onload=function(ct){je(ct.target.result)},Ve.onerror=function(ct){qe(ct.target.error)},Ve.readAsArrayBuffer(Qe)}):Qe}).then(function(Qe){var je=ze.getTypeOf(Qe);return je?(je==="arraybuffer"?Qe=ze.transformTo("uint8array",Qe):je==="string"&&(Ke?Qe=Ue.decode(Qe):Ee&&ke!==!0&&(Qe=function(qe){return Oe(qe,Le.uint8array?new Uint8Array(qe.length):new Array(qe.length))}(Qe))),Qe):xe.Promise.reject(new Error("Can't read the data of '"+we+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(Ie,Je,ze){"use strict";var Le=Ie("./reader/readerFor"),Ue=Ie("./utils"),he=Ie("./signature"),xe=Ie("./zipEntry"),oe=Ie("./support");function Oe(ve){this.files=[],this.loadOptions=ve}Oe.prototype={checkSignature:function(ve){if(!this.reader.readAndCheckSignature(ve)){this.reader.index-=4;var Me=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+Ue.pretty(Me)+", expected "+Ue.pretty(ve)+")")}},isSignature:function(ve,Me){var Se=this.reader.index;this.reader.setIndex(ve);var Te=this.reader.readString(4)===Me;return this.reader.setIndex(Se),Te},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 ve=this.reader.readData(this.zipCommentLength),Me=oe.uint8array?"uint8array":"array",Se=Ue.transformTo(Me,ve);this.zipComment=this.loadOptions.decodeFileName(Se)},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 ve,Me,Se,Te=this.zip64EndOfCentralSize-44;0<Te;)ve=this.reader.readInt(2),Me=this.reader.readInt(4),Se=this.reader.readData(Me),this.zip64ExtensibleData[ve]={id:ve,length:Me,value:Se}},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 ve,Me;for(ve=0;ve<this.files.length;ve++)Me=this.files[ve],this.reader.setIndex(Me.localHeaderOffset),this.checkSignature(he.LOCAL_FILE_HEADER),Me.readLocalPart(this.reader),Me.handleUTF8(),Me.processAttributes()},readCentralDir:function(){var ve;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(he.CENTRAL_FILE_HEADER);)(ve=new xe({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(ve);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 ve=this.reader.lastIndexOfSignature(he.CENTRAL_DIRECTORY_END);if(ve<0)throw this.isSignature(0,he.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(ve);var Me=ve;if(this.checkSignature(he.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===Ue.MAX_VALUE_16BITS||this.diskWithCentralDirStart===Ue.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===Ue.MAX_VALUE_16BITS||this.centralDirRecords===Ue.MAX_VALUE_16BITS||this.centralDirSize===Ue.MAX_VALUE_32BITS||this.centralDirOffset===Ue.MAX_VALUE_32BITS){if(this.zip64=!0,(ve=this.reader.lastIndexOfSignature(he.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(ve),this.checkSignature(he.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,he.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(he.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(he.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var Se=this.centralDirOffset+this.centralDirSize;this.zip64&&(Se+=20,Se+=12+this.zip64EndOfCentralSize);var Te=Me-Se;if(0<Te)this.isSignature(Me,he.CENTRAL_FILE_HEADER)||(this.reader.zero=Te);else if(Te<0)throw new Error("Corrupted zip: missing "+Math.abs(Te)+" bytes.")},prepareReader:function(ve){this.reader=Le(ve)},load:function(ve){this.prepareReader(ve),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},Je.exports=Oe},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(Ie,Je,ze){"use strict";var Le=Ie("./reader/readerFor"),Ue=Ie("./utils"),he=Ie("./compressedObject"),xe=Ie("./crc32"),oe=Ie("./utf8"),Oe=Ie("./compressions"),ve=Ie("./support");function Me(Se,Te){this.options=Se,this.loadOptions=Te}Me.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(Se){var Te,we;if(Se.skip(22),this.fileNameLength=Se.readInt(2),we=Se.readInt(2),this.fileName=Se.readData(this.fileNameLength),Se.skip(we),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((Te=function(Ce){for(var Ee in Oe)if(Object.prototype.hasOwnProperty.call(Oe,Ee)&&Oe[Ee].magic===Ce)return Oe[Ee];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+Ue.pretty(this.compressionMethod)+" unknown (inner file : "+Ue.transformTo("string",this.fileName)+")");this.decompressed=new he(this.compressedSize,this.uncompressedSize,this.crc32,Te,Se.readData(this.compressedSize))},readCentralPart:function(Se){this.versionMadeBy=Se.readInt(2),Se.skip(2),this.bitFlag=Se.readInt(2),this.compressionMethod=Se.readString(2),this.date=Se.readDate(),this.crc32=Se.readInt(4),this.compressedSize=Se.readInt(4),this.uncompressedSize=Se.readInt(4);var Te=Se.readInt(2);if(this.extraFieldsLength=Se.readInt(2),this.fileCommentLength=Se.readInt(2),this.diskNumberStart=Se.readInt(2),this.internalFileAttributes=Se.readInt(2),this.externalFileAttributes=Se.readInt(4),this.localHeaderOffset=Se.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");Se.skip(Te),this.readExtraFields(Se),this.parseZIP64ExtraField(Se),this.fileComment=Se.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var Se=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),Se==0&&(this.dosPermissions=63&this.externalFileAttributes),Se==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var Se=Le(this.extraFields[1].value);this.uncompressedSize===Ue.MAX_VALUE_32BITS&&(this.uncompressedSize=Se.readInt(8)),this.compressedSize===Ue.MAX_VALUE_32BITS&&(this.compressedSize=Se.readInt(8)),this.localHeaderOffset===Ue.MAX_VALUE_32BITS&&(this.localHeaderOffset=Se.readInt(8)),this.diskNumberStart===Ue.MAX_VALUE_32BITS&&(this.diskNumberStart=Se.readInt(4))}},readExtraFields:function(Se){var Te,we,Ce,Ee=Se.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});Se.index+4<Ee;)Te=Se.readInt(2),we=Se.readInt(2),Ce=Se.readData(we),this.extraFields[Te]={id:Te,length:we,value:Ce};Se.setIndex(Ee)},handleUTF8:function(){var Se=ve.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=oe.utf8decode(this.fileName),this.fileCommentStr=oe.utf8decode(this.fileComment);else{var Te=this.findExtraFieldUnicodePath();if(Te!==null)this.fileNameStr=Te;else{var we=Ue.transformTo(Se,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(we)}var Ce=this.findExtraFieldUnicodeComment();if(Ce!==null)this.fileCommentStr=Ce;else{var Ee=Ue.transformTo(Se,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(Ee)}}},findExtraFieldUnicodePath:function(){var Se=this.extraFields[28789];if(Se){var Te=Le(Se.value);return Te.readInt(1)!==1||xe(this.fileName)!==Te.readInt(4)?null:oe.utf8decode(Te.readData(Se.length-5))}return null},findExtraFieldUnicodeComment:function(){var Se=this.extraFields[25461];if(Se){var Te=Le(Se.value);return Te.readInt(1)!==1||xe(this.fileComment)!==Te.readInt(4)?null:oe.utf8decode(Te.readData(Se.length-5))}return null}},Je.exports=Me},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(Ie,Je,ze){"use strict";function Le(Te,we,Ce){this.name=Te,this.dir=Ce.dir,this.date=Ce.date,this.comment=Ce.comment,this.unixPermissions=Ce.unixPermissions,this.dosPermissions=Ce.dosPermissions,this._data=we,this._dataBinary=Ce.binary,this.options={compression:Ce.compression,compressionOptions:Ce.compressionOptions}}var Ue=Ie("./stream/StreamHelper"),he=Ie("./stream/DataWorker"),xe=Ie("./utf8"),oe=Ie("./compressedObject"),Oe=Ie("./stream/GenericWorker");Le.prototype={internalStream:function(Te){var we=null,Ce="string";try{if(!Te)throw new Error("No output type specified.");var Ee=(Ce=Te.toLowerCase())==="string"||Ce==="text";Ce!=="binarystring"&&Ce!=="text"||(Ce="string"),we=this._decompressWorker();var ke=!this._dataBinary;ke&&!Ee&&(we=we.pipe(new xe.Utf8EncodeWorker)),!ke&&Ee&&(we=we.pipe(new xe.Utf8DecodeWorker))}catch(Ke){(we=new Oe("error")).error(Ke)}return new Ue(we,Ce,"")},async:function(Te,we){return this.internalStream(Te).accumulate(we)},nodeStream:function(Te,we){return this.internalStream(Te||"nodebuffer").toNodejsStream(we)},_compressWorker:function(Te,we){if(this._data instanceof oe&&this._data.compression.magic===Te.magic)return this._data.getCompressedWorker();var Ce=this._decompressWorker();return this._dataBinary||(Ce=Ce.pipe(new xe.Utf8EncodeWorker)),oe.createWorkerFrom(Ce,Te,we)},_decompressWorker:function(){return this._data instanceof oe?this._data.getContentWorker():this._data instanceof Oe?this._data:new he(this._data)}};for(var ve=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],Me=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},Se=0;Se<ve.length;Se++)Le.prototype[ve[Se]]=Me;Je.exports=Le},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(Ie,Je,ze){(function(Le){"use strict";var Ue,he,xe=Le.MutationObserver||Le.WebKitMutationObserver;if(xe){var oe=0,Oe=new xe(Te),ve=Le.document.createTextNode("");Oe.observe(ve,{characterData:!0}),Ue=function(){ve.data=oe=++oe%2}}else if(Le.setImmediate||Le.MessageChannel===void 0)Ue="document"in Le&&"onreadystatechange"in Le.document.createElement("script")?function(){var we=Le.document.createElement("script");we.onreadystatechange=function(){Te(),we.onreadystatechange=null,we.parentNode.removeChild(we),we=null},Le.document.documentElement.appendChild(we)}:function(){setTimeout(Te,0)};else{var Me=new Le.MessageChannel;Me.port1.onmessage=Te,Ue=function(){Me.port2.postMessage(0)}}var Se=[];function Te(){var we,Ce;he=!0;for(var Ee=Se.length;Ee;){for(Ce=Se,Se=[],we=-1;++we<Ee;)Ce[we]();Ee=Se.length}he=!1}Je.exports=function(we){Se.push(we)!==1||he||Ue()}}).call(this,typeof ae.g!="undefined"?ae.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(Ie,Je,ze){"use strict";var Le=Ie("immediate");function Ue(){}var he={},xe=["REJECTED"],oe=["FULFILLED"],Oe=["PENDING"];function ve(Ee){if(typeof Ee!="function")throw new TypeError("resolver must be a function");this.state=Oe,this.queue=[],this.outcome=void 0,Ee!==Ue&&we(this,Ee)}function Me(Ee,ke,Ke){this.promise=Ee,typeof ke=="function"&&(this.onFulfilled=ke,this.callFulfilled=this.otherCallFulfilled),typeof Ke=="function"&&(this.onRejected=Ke,this.callRejected=this.otherCallRejected)}function Se(Ee,ke,Ke){Le(function(){var Qe;try{Qe=ke(Ke)}catch(je){return he.reject(Ee,je)}Qe===Ee?he.reject(Ee,new TypeError("Cannot resolve promise with itself")):he.resolve(Ee,Qe)})}function Te(Ee){var ke=Ee&&Ee.then;if(Ee&&(typeof Ee=="object"||typeof Ee=="function")&&typeof ke=="function")return function(){ke.apply(Ee,arguments)}}function we(Ee,ke){var Ke=!1;function Qe(Ve){Ke||(Ke=!0,he.reject(Ee,Ve))}function je(Ve){Ke||(Ke=!0,he.resolve(Ee,Ve))}var qe=Ce(function(){ke(je,Qe)});qe.status==="error"&&Qe(qe.value)}function Ce(Ee,ke){var Ke={};try{Ke.value=Ee(ke),Ke.status="success"}catch(Qe){Ke.status="error",Ke.value=Qe}return Ke}(Je.exports=ve).prototype.finally=function(Ee){if(typeof Ee!="function")return this;var ke=this.constructor;return this.then(function(Ke){return ke.resolve(Ee()).then(function(){return Ke})},function(Ke){return ke.resolve(Ee()).then(function(){throw Ke})})},ve.prototype.catch=function(Ee){return this.then(null,Ee)},ve.prototype.then=function(Ee,ke){if(typeof Ee!="function"&&this.state===oe||typeof ke!="function"&&this.state===xe)return this;var Ke=new this.constructor(Ue);return this.state!==Oe?Se(Ke,this.state===oe?Ee:ke,this.outcome):this.queue.push(new Me(Ke,Ee,ke)),Ke},Me.prototype.callFulfilled=function(Ee){he.resolve(this.promise,Ee)},Me.prototype.otherCallFulfilled=function(Ee){Se(this.promise,this.onFulfilled,Ee)},Me.prototype.callRejected=function(Ee){he.reject(this.promise,Ee)},Me.prototype.otherCallRejected=function(Ee){Se(this.promise,this.onRejected,Ee)},he.resolve=function(Ee,ke){var Ke=Ce(Te,ke);if(Ke.status==="error")return he.reject(Ee,Ke.value);var Qe=Ke.value;if(Qe)we(Ee,Qe);else{Ee.state=oe,Ee.outcome=ke;for(var je=-1,qe=Ee.queue.length;++je<qe;)Ee.queue[je].callFulfilled(ke)}return Ee},he.reject=function(Ee,ke){Ee.state=xe,Ee.outcome=ke;for(var Ke=-1,Qe=Ee.queue.length;++Ke<Qe;)Ee.queue[Ke].callRejected(ke);return Ee},ve.resolve=function(Ee){return Ee instanceof this?Ee:he.resolve(new this(Ue),Ee)},ve.reject=function(Ee){var ke=new this(Ue);return he.reject(ke,Ee)},ve.all=function(Ee){var ke=this;if(Object.prototype.toString.call(Ee)!=="[object Array]")return this.reject(new TypeError("must be an array"));var Ke=Ee.length,Qe=!1;if(!Ke)return this.resolve([]);for(var je=new Array(Ke),qe=0,Ve=-1,ct=new this(Ue);++Ve<Ke;)ot(Ee[Ve],Ve);return ct;function ot(pt,bt){ke.resolve(pt).then(function(He){je[bt]=He,++qe!==Ke||Qe||(Qe=!0,he.resolve(ct,je))},function(He){Qe||(Qe=!0,he.reject(ct,He))})}},ve.race=function(Ee){var ke=this;if(Object.prototype.toString.call(Ee)!=="[object Array]")return this.reject(new TypeError("must be an array"));var Ke=Ee.length,Qe=!1;if(!Ke)return this.resolve([]);for(var je=-1,qe=new this(Ue);++je<Ke;)Ve=Ee[je],ke.resolve(Ve).then(function(ct){Qe||(Qe=!0,he.resolve(qe,ct))},function(ct){Qe||(Qe=!0,he.reject(qe,ct))});var Ve;return qe}},{immediate:36}],38:[function(Ie,Je,ze){"use strict";var Le={};(0,Ie("./lib/utils/common").assign)(Le,Ie("./lib/deflate"),Ie("./lib/inflate"),Ie("./lib/zlib/constants")),Je.exports=Le},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(Ie,Je,ze){"use strict";var Le=Ie("./zlib/deflate"),Ue=Ie("./utils/common"),he=Ie("./utils/strings"),xe=Ie("./zlib/messages"),oe=Ie("./zlib/zstream"),Oe=Object.prototype.toString,ve=0,Me=-1,Se=0,Te=8;function we(Ee){if(!(this instanceof we))return new we(Ee);this.options=Ue.assign({level:Me,method:Te,chunkSize:16384,windowBits:15,memLevel:8,strategy:Se,to:""},Ee||{});var ke=this.options;ke.raw&&0<ke.windowBits?ke.windowBits=-ke.windowBits:ke.gzip&&0<ke.windowBits&&ke.windowBits<16&&(ke.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new oe,this.strm.avail_out=0;var Ke=Le.deflateInit2(this.strm,ke.level,ke.method,ke.windowBits,ke.memLevel,ke.strategy);if(Ke!==ve)throw new Error(xe[Ke]);if(ke.header&&Le.deflateSetHeader(this.strm,ke.header),ke.dictionary){var Qe;if(Qe=typeof ke.dictionary=="string"?he.string2buf(ke.dictionary):Oe.call(ke.dictionary)==="[object ArrayBuffer]"?new Uint8Array(ke.dictionary):ke.dictionary,(Ke=Le.deflateSetDictionary(this.strm,Qe))!==ve)throw new Error(xe[Ke]);this._dict_set=!0}}function Ce(Ee,ke){var Ke=new we(ke);if(Ke.push(Ee,!0),Ke.err)throw Ke.msg||xe[Ke.err];return Ke.result}we.prototype.push=function(Ee,ke){var Ke,Qe,je=this.strm,qe=this.options.chunkSize;if(this.ended)return!1;Qe=ke===~~ke?ke:ke===!0?4:0,typeof Ee=="string"?je.input=he.string2buf(Ee):Oe.call(Ee)==="[object ArrayBuffer]"?je.input=new Uint8Array(Ee):je.input=Ee,je.next_in=0,je.avail_in=je.input.length;do{if(je.avail_out===0&&(je.output=new Ue.Buf8(qe),je.next_out=0,je.avail_out=qe),(Ke=Le.deflate(je,Qe))!==1&&Ke!==ve)return this.onEnd(Ke),!(this.ended=!0);je.avail_out!==0&&(je.avail_in!==0||Qe!==4&&Qe!==2)||(this.options.to==="string"?this.onData(he.buf2binstring(Ue.shrinkBuf(je.output,je.next_out))):this.onData(Ue.shrinkBuf(je.output,je.next_out)))}while((0<je.avail_in||je.avail_out===0)&&Ke!==1);return Qe===4?(Ke=Le.deflateEnd(this.strm),this.onEnd(Ke),this.ended=!0,Ke===ve):Qe!==2||(this.onEnd(ve),!(je.avail_out=0))},we.prototype.onData=function(Ee){this.chunks.push(Ee)},we.prototype.onEnd=function(Ee){Ee===ve&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ue.flattenChunks(this.chunks)),this.chunks=[],this.err=Ee,this.msg=this.strm.msg},ze.Deflate=we,ze.deflate=Ce,ze.deflateRaw=function(Ee,ke){return(ke=ke||{}).raw=!0,Ce(Ee,ke)},ze.gzip=function(Ee,ke){return(ke=ke||{}).gzip=!0,Ce(Ee,ke)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(Ie,Je,ze){"use strict";var Le=Ie("./zlib/inflate"),Ue=Ie("./utils/common"),he=Ie("./utils/strings"),xe=Ie("./zlib/constants"),oe=Ie("./zlib/messages"),Oe=Ie("./zlib/zstream"),ve=Ie("./zlib/gzheader"),Me=Object.prototype.toString;function Se(we){if(!(this instanceof Se))return new Se(we);this.options=Ue.assign({chunkSize:16384,windowBits:0,to:""},we||{});var Ce=this.options;Ce.raw&&0<=Ce.windowBits&&Ce.windowBits<16&&(Ce.windowBits=-Ce.windowBits,Ce.windowBits===0&&(Ce.windowBits=-15)),!(0<=Ce.windowBits&&Ce.windowBits<16)||we&&we.windowBits||(Ce.windowBits+=32),15<Ce.windowBits&&Ce.windowBits<48&&!(15&Ce.windowBits)&&(Ce.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Oe,this.strm.avail_out=0;var Ee=Le.inflateInit2(this.strm,Ce.windowBits);if(Ee!==xe.Z_OK)throw new Error(oe[Ee]);this.header=new ve,Le.inflateGetHeader(this.strm,this.header)}function Te(we,Ce){var Ee=new Se(Ce);if(Ee.push(we,!0),Ee.err)throw Ee.msg||oe[Ee.err];return Ee.result}Se.prototype.push=function(we,Ce){var Ee,ke,Ke,Qe,je,qe,Ve=this.strm,ct=this.options.chunkSize,ot=this.options.dictionary,pt=!1;if(this.ended)return!1;ke=Ce===~~Ce?Ce:Ce===!0?xe.Z_FINISH:xe.Z_NO_FLUSH,typeof we=="string"?Ve.input=he.binstring2buf(we):Me.call(we)==="[object ArrayBuffer]"?Ve.input=new Uint8Array(we):Ve.input=we,Ve.next_in=0,Ve.avail_in=Ve.input.length;do{if(Ve.avail_out===0&&(Ve.output=new Ue.Buf8(ct),Ve.next_out=0,Ve.avail_out=ct),(Ee=Le.inflate(Ve,xe.Z_NO_FLUSH))===xe.Z_NEED_DICT&&ot&&(qe=typeof ot=="string"?he.string2buf(ot):Me.call(ot)==="[object ArrayBuffer]"?new Uint8Array(ot):ot,Ee=Le.inflateSetDictionary(this.strm,qe)),Ee===xe.Z_BUF_ERROR&&pt===!0&&(Ee=xe.Z_OK,pt=!1),Ee!==xe.Z_STREAM_END&&Ee!==xe.Z_OK)return this.onEnd(Ee),!(this.ended=!0);Ve.next_out&&(Ve.avail_out!==0&&Ee!==xe.Z_STREAM_END&&(Ve.avail_in!==0||ke!==xe.Z_FINISH&&ke!==xe.Z_SYNC_FLUSH)||(this.options.to==="string"?(Ke=he.utf8border(Ve.output,Ve.next_out),Qe=Ve.next_out-Ke,je=he.buf2string(Ve.output,Ke),Ve.next_out=Qe,Ve.avail_out=ct-Qe,Qe&&Ue.arraySet(Ve.output,Ve.output,Ke,Qe,0),this.onData(je)):this.onData(Ue.shrinkBuf(Ve.output,Ve.next_out)))),Ve.avail_in===0&&Ve.avail_out===0&&(pt=!0)}while((0<Ve.avail_in||Ve.avail_out===0)&&Ee!==xe.Z_STREAM_END);return Ee===xe.Z_STREAM_END&&(ke=xe.Z_FINISH),ke===xe.Z_FINISH?(Ee=Le.inflateEnd(this.strm),this.onEnd(Ee),this.ended=!0,Ee===xe.Z_OK):ke!==xe.Z_SYNC_FLUSH||(this.onEnd(xe.Z_OK),!(Ve.avail_out=0))},Se.prototype.onData=function(we){this.chunks.push(we)},Se.prototype.onEnd=function(we){we===xe.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ue.flattenChunks(this.chunks)),this.chunks=[],this.err=we,this.msg=this.strm.msg},ze.Inflate=Se,ze.inflate=Te,ze.inflateRaw=function(we,Ce){return(Ce=Ce||{}).raw=!0,Te(we,Ce)},ze.ungzip=Te},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(Ie,Je,ze){"use strict";var Le=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";ze.assign=function(xe){for(var oe=Array.prototype.slice.call(arguments,1);oe.length;){var Oe=oe.shift();if(Oe){if(typeof Oe!="object")throw new TypeError(Oe+"must be non-object");for(var ve in Oe)Oe.hasOwnProperty(ve)&&(xe[ve]=Oe[ve])}}return xe},ze.shrinkBuf=function(xe,oe){return xe.length===oe?xe:xe.subarray?xe.subarray(0,oe):(xe.length=oe,xe)};var Ue={arraySet:function(xe,oe,Oe,ve,Me){if(oe.subarray&&xe.subarray)xe.set(oe.subarray(Oe,Oe+ve),Me);else for(var Se=0;Se<ve;Se++)xe[Me+Se]=oe[Oe+Se]},flattenChunks:function(xe){var oe,Oe,ve,Me,Se,Te;for(oe=ve=0,Oe=xe.length;oe<Oe;oe++)ve+=xe[oe].length;for(Te=new Uint8Array(ve),oe=Me=0,Oe=xe.length;oe<Oe;oe++)Se=xe[oe],Te.set(Se,Me),Me+=Se.length;return Te}},he={arraySet:function(xe,oe,Oe,ve,Me){for(var Se=0;Se<ve;Se++)xe[Me+Se]=oe[Oe+Se]},flattenChunks:function(xe){return[].concat.apply([],xe)}};ze.setTyped=function(xe){xe?(ze.Buf8=Uint8Array,ze.Buf16=Uint16Array,ze.Buf32=Int32Array,ze.assign(ze,Ue)):(ze.Buf8=Array,ze.Buf16=Array,ze.Buf32=Array,ze.assign(ze,he))},ze.setTyped(Le)},{}],42:[function(Ie,Je,ze){"use strict";var Le=Ie("./common"),Ue=!0,he=!0;try{String.fromCharCode.apply(null,[0])}catch(ve){Ue=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(ve){he=!1}for(var xe=new Le.Buf8(256),oe=0;oe<256;oe++)xe[oe]=252<=oe?6:248<=oe?5:240<=oe?4:224<=oe?3:192<=oe?2:1;function Oe(ve,Me){if(Me<65537&&(ve.subarray&&he||!ve.subarray&&Ue))return String.fromCharCode.apply(null,Le.shrinkBuf(ve,Me));for(var Se="",Te=0;Te<Me;Te++)Se+=String.fromCharCode(ve[Te]);return Se}xe[254]=xe[254]=1,ze.string2buf=function(ve){var Me,Se,Te,we,Ce,Ee=ve.length,ke=0;for(we=0;we<Ee;we++)(64512&(Se=ve.charCodeAt(we)))==55296&&we+1<Ee&&(64512&(Te=ve.charCodeAt(we+1)))==56320&&(Se=65536+(Se-55296<<10)+(Te-56320),we++),ke+=Se<128?1:Se<2048?2:Se<65536?3:4;for(Me=new Le.Buf8(ke),we=Ce=0;Ce<ke;we++)(64512&(Se=ve.charCodeAt(we)))==55296&&we+1<Ee&&(64512&(Te=ve.charCodeAt(we+1)))==56320&&(Se=65536+(Se-55296<<10)+(Te-56320),we++),Se<128?Me[Ce++]=Se:(Se<2048?Me[Ce++]=192|Se>>>6:(Se<65536?Me[Ce++]=224|Se>>>12:(Me[Ce++]=240|Se>>>18,Me[Ce++]=128|Se>>>12&63),Me[Ce++]=128|Se>>>6&63),Me[Ce++]=128|63&Se);return Me},ze.buf2binstring=function(ve){return Oe(ve,ve.length)},ze.binstring2buf=function(ve){for(var Me=new Le.Buf8(ve.length),Se=0,Te=Me.length;Se<Te;Se++)Me[Se]=ve.charCodeAt(Se);return Me},ze.buf2string=function(ve,Me){var Se,Te,we,Ce,Ee=Me||ve.length,ke=new Array(2*Ee);for(Se=Te=0;Se<Ee;)if((we=ve[Se++])<128)ke[Te++]=we;else if(4<(Ce=xe[we]))ke[Te++]=65533,Se+=Ce-1;else{for(we&=Ce===2?31:Ce===3?15:7;1<Ce&&Se<Ee;)we=we<<6|63&ve[Se++],Ce--;1<Ce?ke[Te++]=65533:we<65536?ke[Te++]=we:(we-=65536,ke[Te++]=55296|we>>10&1023,ke[Te++]=56320|1023&we)}return Oe(ke,Te)},ze.utf8border=function(ve,Me){var Se;for((Me=Me||ve.length)>ve.length&&(Me=ve.length),Se=Me-1;0<=Se&&(192&ve[Se])==128;)Se--;return Se<0||Se===0?Me:Se+xe[ve[Se]]>Me?Se:Me}},{"./common":41}],43:[function(Ie,Je,ze){"use strict";Je.exports=function(Le,Ue,he,xe){for(var oe=65535&Le|0,Oe=Le>>>16&65535|0,ve=0;he!==0;){for(he-=ve=2e3<he?2e3:he;Oe=Oe+(oe=oe+Ue[xe++]|0)|0,--ve;);oe%=65521,Oe%=65521}return oe|Oe<<16|0}},{}],44:[function(Ie,Je,ze){"use strict";Je.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(Ie,Je,ze){"use strict";var Le=function(){for(var Ue,he=[],xe=0;xe<256;xe++){Ue=xe;for(var oe=0;oe<8;oe++)Ue=1&Ue?3988292384^Ue>>>1:Ue>>>1;he[xe]=Ue}return he}();Je.exports=function(Ue,he,xe,oe){var Oe=Le,ve=oe+xe;Ue^=-1;for(var Me=oe;Me<ve;Me++)Ue=Ue>>>8^Oe[255&(Ue^he[Me])];return-1^Ue}},{}],46:[function(Ie,Je,ze){"use strict";var Le,Ue=Ie("../utils/common"),he=Ie("./trees"),xe=Ie("./adler32"),oe=Ie("./crc32"),Oe=Ie("./messages"),ve=0,Me=4,Se=0,Te=-2,we=-1,Ce=4,Ee=2,ke=8,Ke=9,Qe=286,je=30,qe=19,Ve=2*Qe+1,ct=15,ot=3,pt=258,bt=pt+ot+1,He=42,ht=113,_e=1,Re=2,Nt=3,it=4;function at(de,pe){return de.msg=Oe[pe],pe}function Bt(de){return(de<<1)-(4<de?9:0)}function Ze(de){for(var pe=de.length;0<=--pe;)de[pe]=0}function De(de){var pe=de.state,ie=pe.pending;ie>de.avail_out&&(ie=de.avail_out),ie!==0&&(Ue.arraySet(de.output,pe.pending_buf,pe.pending_out,ie,de.next_out),de.next_out+=ie,pe.pending_out+=ie,de.total_out+=ie,de.avail_out-=ie,pe.pending-=ie,pe.pending===0&&(pe.pending_out=0))}function ut(de,pe){he._tr_flush_block(de,0<=de.block_start?de.block_start:-1,de.strstart-de.block_start,pe),de.block_start=de.strstart,De(de.strm)}function $t(de,pe){de.pending_buf[de.pending++]=pe}function zt(de,pe){de.pending_buf[de.pending++]=pe>>>8&255,de.pending_buf[de.pending++]=255&pe}function tt(de,pe){var ie,ee,se=de.max_chain_length,le=de.strstart,Be=de.prev_length,We=de.nice_match,st=de.strstart>de.w_size-bt?de.strstart-(de.w_size-bt):0,mt=de.window,gt=de.w_mask,Et=de.prev,Lt=de.strstart+pt,jt=mt[le+Be-1],Ct=mt[le+Be];de.prev_length>=de.good_match&&(se>>=2),We>de.lookahead&&(We=de.lookahead);do if(mt[(ie=pe)+Be]===Ct&&mt[ie+Be-1]===jt&&mt[ie]===mt[le]&&mt[++ie]===mt[le+1]){le+=2,ie++;do;while(mt[++le]===mt[++ie]&&mt[++le]===mt[++ie]&&mt[++le]===mt[++ie]&&mt[++le]===mt[++ie]&&mt[++le]===mt[++ie]&&mt[++le]===mt[++ie]&&mt[++le]===mt[++ie]&&mt[++le]===mt[++ie]&&le<Lt);if(ee=pt-(Lt-le),le=Lt-pt,Be<ee){if(de.match_start=pe,We<=(Be=ee))break;jt=mt[le+Be-1],Ct=mt[le+Be]}}while((pe=Et[pe&gt])>st&&--se!=0);return Be<=de.lookahead?Be:de.lookahead}function Ot(de){var pe,ie,ee,se,le,Be,We,st,mt,gt,Et=de.w_size;do{if(se=de.window_size-de.lookahead-de.strstart,de.strstart>=Et+(Et-bt)){for(Ue.arraySet(de.window,de.window,Et,Et,0),de.match_start-=Et,de.strstart-=Et,de.block_start-=Et,pe=ie=de.hash_size;ee=de.head[--pe],de.head[pe]=Et<=ee?ee-Et:0,--ie;);for(pe=ie=Et;ee=de.prev[--pe],de.prev[pe]=Et<=ee?ee-Et:0,--ie;);se+=Et}if(de.strm.avail_in===0)break;if(Be=de.strm,We=de.window,st=de.strstart+de.lookahead,mt=se,gt=void 0,gt=Be.avail_in,mt<gt&&(gt=mt),ie=gt===0?0:(Be.avail_in-=gt,Ue.arraySet(We,Be.input,Be.next_in,gt,st),Be.state.wrap===1?Be.adler=xe(Be.adler,We,gt,st):Be.state.wrap===2&&(Be.adler=oe(Be.adler,We,gt,st)),Be.next_in+=gt,Be.total_in+=gt,gt),de.lookahead+=ie,de.lookahead+de.insert>=ot)for(le=de.strstart-de.insert,de.ins_h=de.window[le],de.ins_h=(de.ins_h<<de.hash_shift^de.window[le+1])&de.hash_mask;de.insert&&(de.ins_h=(de.ins_h<<de.hash_shift^de.window[le+ot-1])&de.hash_mask,de.prev[le&de.w_mask]=de.head[de.ins_h],de.head[de.ins_h]=le,le++,de.insert--,!(de.lookahead+de.insert<ot)););}while(de.lookahead<bt&&de.strm.avail_in!==0)}function Rt(de,pe){for(var ie,ee;;){if(de.lookahead<bt){if(Ot(de),de.lookahead<bt&&pe===ve)return _e;if(de.lookahead===0)break}if(ie=0,de.lookahead>=ot&&(de.ins_h=(de.ins_h<<de.hash_shift^de.window[de.strstart+ot-1])&de.hash_mask,ie=de.prev[de.strstart&de.w_mask]=de.head[de.ins_h],de.head[de.ins_h]=de.strstart),ie!==0&&de.strstart-ie<=de.w_size-bt&&(de.match_length=tt(de,ie)),de.match_length>=ot)if(ee=he._tr_tally(de,de.strstart-de.match_start,de.match_length-ot),de.lookahead-=de.match_length,de.match_length<=de.max_lazy_match&&de.lookahead>=ot){for(de.match_length--;de.strstart++,de.ins_h=(de.ins_h<<de.hash_shift^de.window[de.strstart+ot-1])&de.hash_mask,ie=de.prev[de.strstart&de.w_mask]=de.head[de.ins_h],de.head[de.ins_h]=de.strstart,--de.match_length!=0;);de.strstart++}else de.strstart+=de.match_length,de.match_length=0,de.ins_h=de.window[de.strstart],de.ins_h=(de.ins_h<<de.hash_shift^de.window[de.strstart+1])&de.hash_mask;else ee=he._tr_tally(de,0,de.window[de.strstart]),de.lookahead--,de.strstart++;if(ee&&(ut(de,!1),de.strm.avail_out===0))return _e}return de.insert=de.strstart<ot-1?de.strstart:ot-1,pe===Me?(ut(de,!0),de.strm.avail_out===0?Nt:it):de.last_lit&&(ut(de,!1),de.strm.avail_out===0)?_e:Re}function fn(de,pe){for(var ie,ee,se;;){if(de.lookahead<bt){if(Ot(de),de.lookahead<bt&&pe===ve)return _e;if(de.lookahead===0)break}if(ie=0,de.lookahead>=ot&&(de.ins_h=(de.ins_h<<de.hash_shift^de.window[de.strstart+ot-1])&de.hash_mask,ie=de.prev[de.strstart&de.w_mask]=de.head[de.ins_h],de.head[de.ins_h]=de.strstart),de.prev_length=de.match_length,de.prev_match=de.match_start,de.match_length=ot-1,ie!==0&&de.prev_length<de.max_lazy_match&&de.strstart-ie<=de.w_size-bt&&(de.match_length=tt(de,ie),de.match_length<=5&&(de.strategy===1||de.match_length===ot&&4096<de.strstart-de.match_start)&&(de.match_length=ot-1)),de.prev_length>=ot&&de.match_length<=de.prev_length){for(se=de.strstart+de.lookahead-ot,ee=he._tr_tally(de,de.strstart-1-de.prev_match,de.prev_length-ot),de.lookahead-=de.prev_length-1,de.prev_length-=2;++de.strstart<=se&&(de.ins_h=(de.ins_h<<de.hash_shift^de.window[de.strstart+ot-1])&de.hash_mask,ie=de.prev[de.strstart&de.w_mask]=de.head[de.ins_h],de.head[de.ins_h]=de.strstart),--de.prev_length!=0;);if(de.match_available=0,de.match_length=ot-1,de.strstart++,ee&&(ut(de,!1),de.strm.avail_out===0))return _e}else if(de.match_available){if((ee=he._tr_tally(de,0,de.window[de.strstart-1]))&&ut(de,!1),de.strstart++,de.lookahead--,de.strm.avail_out===0)return _e}else de.match_available=1,de.strstart++,de.lookahead--}return de.match_available&&(ee=he._tr_tally(de,0,de.window[de.strstart-1]),de.match_available=0),de.insert=de.strstart<ot-1?de.strstart:ot-1,pe===Me?(ut(de,!0),de.strm.avail_out===0?Nt:it):de.last_lit&&(ut(de,!1),de.strm.avail_out===0)?_e:Re}function Tt(de,pe,ie,ee,se){this.good_length=de,this.max_lazy=pe,this.nice_length=ie,this.max_chain=ee,this.func=se}function mn(){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=ke,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 Ue.Buf16(2*Ve),this.dyn_dtree=new Ue.Buf16(2*(2*je+1)),this.bl_tree=new Ue.Buf16(2*(2*qe+1)),Ze(this.dyn_ltree),Ze(this.dyn_dtree),Ze(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Ue.Buf16(ct+1),this.heap=new Ue.Buf16(2*Qe+1),Ze(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Ue.Buf16(2*Qe+1),Ze(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 Dt(de){var pe;return de&&de.state?(de.total_in=de.total_out=0,de.data_type=Ee,(pe=de.state).pending=0,pe.pending_out=0,pe.wrap<0&&(pe.wrap=-pe.wrap),pe.status=pe.wrap?He:ht,de.adler=pe.wrap===2?0:1,pe.last_flush=ve,he._tr_init(pe),Se):at(de,Te)}function En(de){var pe=Dt(de);return pe===Se&&function(ie){ie.window_size=2*ie.w_size,Ze(ie.head),ie.max_lazy_match=Le[ie.level].max_lazy,ie.good_match=Le[ie.level].good_length,ie.nice_match=Le[ie.level].nice_length,ie.max_chain_length=Le[ie.level].max_chain,ie.strstart=0,ie.block_start=0,ie.lookahead=0,ie.insert=0,ie.match_length=ie.prev_length=ot-1,ie.match_available=0,ie.ins_h=0}(de.state),pe}function rn(de,pe,ie,ee,se,le){if(!de)return Te;var Be=1;if(pe===we&&(pe=6),ee<0?(Be=0,ee=-ee):15<ee&&(Be=2,ee-=16),se<1||Ke<se||ie!==ke||ee<8||15<ee||pe<0||9<pe||le<0||Ce<le)return at(de,Te);ee===8&&(ee=9);var We=new mn;return(de.state=We).strm=de,We.wrap=Be,We.gzhead=null,We.w_bits=ee,We.w_size=1<<We.w_bits,We.w_mask=We.w_size-1,We.hash_bits=se+7,We.hash_size=1<<We.hash_bits,We.hash_mask=We.hash_size-1,We.hash_shift=~~((We.hash_bits+ot-1)/ot),We.window=new Ue.Buf8(2*We.w_size),We.head=new Ue.Buf16(We.hash_size),We.prev=new Ue.Buf16(We.w_size),We.lit_bufsize=1<<se+6,We.pending_buf_size=4*We.lit_bufsize,We.pending_buf=new Ue.Buf8(We.pending_buf_size),We.d_buf=1*We.lit_bufsize,We.l_buf=3*We.lit_bufsize,We.level=pe,We.strategy=le,We.method=ie,En(de)}Le=[new Tt(0,0,0,0,function(de,pe){var ie=65535;for(ie>de.pending_buf_size-5&&(ie=de.pending_buf_size-5);;){if(de.lookahead<=1){if(Ot(de),de.lookahead===0&&pe===ve)return _e;if(de.lookahead===0)break}de.strstart+=de.lookahead,de.lookahead=0;var ee=de.block_start+ie;if((de.strstart===0||de.strstart>=ee)&&(de.lookahead=de.strstart-ee,de.strstart=ee,ut(de,!1),de.strm.avail_out===0)||de.strstart-de.block_start>=de.w_size-bt&&(ut(de,!1),de.strm.avail_out===0))return _e}return de.insert=0,pe===Me?(ut(de,!0),de.strm.avail_out===0?Nt:it):(de.strstart>de.block_start&&(ut(de,!1),de.strm.avail_out),_e)}),new Tt(4,4,8,4,Rt),new Tt(4,5,16,8,Rt),new Tt(4,6,32,32,Rt),new Tt(4,4,16,16,fn),new Tt(8,16,32,32,fn),new Tt(8,16,128,128,fn),new Tt(8,32,128,256,fn),new Tt(32,128,258,1024,fn),new Tt(32,258,258,4096,fn)],ze.deflateInit=function(de,pe){return rn(de,pe,ke,15,8,0)},ze.deflateInit2=rn,ze.deflateReset=En,ze.deflateResetKeep=Dt,ze.deflateSetHeader=function(de,pe){return de&&de.state?de.state.wrap!==2?Te:(de.state.gzhead=pe,Se):Te},ze.deflate=function(de,pe){var ie,ee,se,le;if(!de||!de.state||5<pe||pe<0)return de?at(de,Te):Te;if(ee=de.state,!de.output||!de.input&&de.avail_in!==0||ee.status===666&&pe!==Me)return at(de,de.avail_out===0?-5:Te);if(ee.strm=de,ie=ee.last_flush,ee.last_flush=pe,ee.status===He)if(ee.wrap===2)de.adler=0,$t(ee,31),$t(ee,139),$t(ee,8),ee.gzhead?($t(ee,(ee.gzhead.text?1:0)+(ee.gzhead.hcrc?2:0)+(ee.gzhead.extra?4:0)+(ee.gzhead.name?8:0)+(ee.gzhead.comment?16:0)),$t(ee,255&ee.gzhead.time),$t(ee,ee.gzhead.time>>8&255),$t(ee,ee.gzhead.time>>16&255),$t(ee,ee.gzhead.time>>24&255),$t(ee,ee.level===9?2:2<=ee.strategy||ee.level<2?4:0),$t(ee,255&ee.gzhead.os),ee.gzhead.extra&&ee.gzhead.extra.length&&($t(ee,255&ee.gzhead.extra.length),$t(ee,ee.gzhead.extra.length>>8&255)),ee.gzhead.hcrc&&(de.adler=oe(de.adler,ee.pending_buf,ee.pending,0)),ee.gzindex=0,ee.status=69):($t(ee,0),$t(ee,0),$t(ee,0),$t(ee,0),$t(ee,0),$t(ee,ee.level===9?2:2<=ee.strategy||ee.level<2?4:0),$t(ee,3),ee.status=ht);else{var Be=ke+(ee.w_bits-8<<4)<<8;Be|=(2<=ee.strategy||ee.level<2?0:ee.level<6?1:ee.level===6?2:3)<<6,ee.strstart!==0&&(Be|=32),Be+=31-Be%31,ee.status=ht,zt(ee,Be),ee.strstart!==0&&(zt(ee,de.adler>>>16),zt(ee,65535&de.adler)),de.adler=1}if(ee.status===69)if(ee.gzhead.extra){for(se=ee.pending;ee.gzindex<(65535&ee.gzhead.extra.length)&&(ee.pending!==ee.pending_buf_size||(ee.gzhead.hcrc&&ee.pending>se&&(de.adler=oe(de.adler,ee.pending_buf,ee.pending-se,se)),De(de),se=ee.pending,ee.pending!==ee.pending_buf_size));)$t(ee,255&ee.gzhead.extra[ee.gzindex]),ee.gzindex++;ee.gzhead.hcrc&&ee.pending>se&&(de.adler=oe(de.adler,ee.pending_buf,ee.pending-se,se)),ee.gzindex===ee.gzhead.extra.length&&(ee.gzindex=0,ee.status=73)}else ee.status=73;if(ee.status===73)if(ee.gzhead.name){se=ee.pending;do{if(ee.pending===ee.pending_buf_size&&(ee.gzhead.hcrc&&ee.pending>se&&(de.adler=oe(de.adler,ee.pending_buf,ee.pending-se,se)),De(de),se=ee.pending,ee.pending===ee.pending_buf_size)){le=1;break}le=ee.gzindex<ee.gzhead.name.length?255&ee.gzhead.name.charCodeAt(ee.gzindex++):0,$t(ee,le)}while(le!==0);ee.gzhead.hcrc&&ee.pending>se&&(de.adler=oe(de.adler,ee.pending_buf,ee.pending-se,se)),le===0&&(ee.gzindex=0,ee.status=91)}else ee.status=91;if(ee.status===91)if(ee.gzhead.comment){se=ee.pending;do{if(ee.pending===ee.pending_buf_size&&(ee.gzhead.hcrc&&ee.pending>se&&(de.adler=oe(de.adler,ee.pending_buf,ee.pending-se,se)),De(de),se=ee.pending,ee.pending===ee.pending_buf_size)){le=1;break}le=ee.gzindex<ee.gzhead.comment.length?255&ee.gzhead.comment.charCodeAt(ee.gzindex++):0,$t(ee,le)}while(le!==0);ee.gzhead.hcrc&&ee.pending>se&&(de.adler=oe(de.adler,ee.pending_buf,ee.pending-se,se)),le===0&&(ee.status=103)}else ee.status=103;if(ee.status===103&&(ee.gzhead.hcrc?(ee.pending+2>ee.pending_buf_size&&De(de),ee.pending+2<=ee.pending_buf_size&&($t(ee,255&de.adler),$t(ee,de.adler>>8&255),de.adler=0,ee.status=ht)):ee.status=ht),ee.pending!==0){if(De(de),de.avail_out===0)return ee.last_flush=-1,Se}else if(de.avail_in===0&&Bt(pe)<=Bt(ie)&&pe!==Me)return at(de,-5);if(ee.status===666&&de.avail_in!==0)return at(de,-5);if(de.avail_in!==0||ee.lookahead!==0||pe!==ve&&ee.status!==666){var We=ee.strategy===2?function(st,mt){for(var gt;;){if(st.lookahead===0&&(Ot(st),st.lookahead===0)){if(mt===ve)return _e;break}if(st.match_length=0,gt=he._tr_tally(st,0,st.window[st.strstart]),st.lookahead--,st.strstart++,gt&&(ut(st,!1),st.strm.avail_out===0))return _e}return st.insert=0,mt===Me?(ut(st,!0),st.strm.avail_out===0?Nt:it):st.last_lit&&(ut(st,!1),st.strm.avail_out===0)?_e:Re}(ee,pe):ee.strategy===3?function(st,mt){for(var gt,Et,Lt,jt,Ct=st.window;;){if(st.lookahead<=pt){if(Ot(st),st.lookahead<=pt&&mt===ve)return _e;if(st.lookahead===0)break}if(st.match_length=0,st.lookahead>=ot&&0<st.strstart&&(Et=Ct[Lt=st.strstart-1])===Ct[++Lt]&&Et===Ct[++Lt]&&Et===Ct[++Lt]){jt=st.strstart+pt;do;while(Et===Ct[++Lt]&&Et===Ct[++Lt]&&Et===Ct[++Lt]&&Et===Ct[++Lt]&&Et===Ct[++Lt]&&Et===Ct[++Lt]&&Et===Ct[++Lt]&&Et===Ct[++Lt]&&Lt<jt);st.match_length=pt-(jt-Lt),st.match_length>st.lookahead&&(st.match_length=st.lookahead)}if(st.match_length>=ot?(gt=he._tr_tally(st,1,st.match_length-ot),st.lookahead-=st.match_length,st.strstart+=st.match_length,st.match_length=0):(gt=he._tr_tally(st,0,st.window[st.strstart]),st.lookahead--,st.strstart++),gt&&(ut(st,!1),st.strm.avail_out===0))return _e}return st.insert=0,mt===Me?(ut(st,!0),st.strm.avail_out===0?Nt:it):st.last_lit&&(ut(st,!1),st.strm.avail_out===0)?_e:Re}(ee,pe):Le[ee.level].func(ee,pe);if(We!==Nt&&We!==it||(ee.status=666),We===_e||We===Nt)return de.avail_out===0&&(ee.last_flush=-1),Se;if(We===Re&&(pe===1?he._tr_align(ee):pe!==5&&(he._tr_stored_block(ee,0,0,!1),pe===3&&(Ze(ee.head),ee.lookahead===0&&(ee.strstart=0,ee.block_start=0,ee.insert=0))),De(de),de.avail_out===0))return ee.last_flush=-1,Se}return pe!==Me?Se:ee.wrap<=0?1:(ee.wrap===2?($t(ee,255&de.adler),$t(ee,de.adler>>8&255),$t(ee,de.adler>>16&255),$t(ee,de.adler>>24&255),$t(ee,255&de.total_in),$t(ee,de.total_in>>8&255),$t(ee,de.total_in>>16&255),$t(ee,de.total_in>>24&255)):(zt(ee,de.adler>>>16),zt(ee,65535&de.adler)),De(de),0<ee.wrap&&(ee.wrap=-ee.wrap),ee.pending!==0?Se:1)},ze.deflateEnd=function(de){var pe;return de&&de.state?(pe=de.state.status)!==He&&pe!==69&&pe!==73&&pe!==91&&pe!==103&&pe!==ht&&pe!==666?at(de,Te):(de.state=null,pe===ht?at(de,-3):Se):Te},ze.deflateSetDictionary=function(de,pe){var ie,ee,se,le,Be,We,st,mt,gt=pe.length;if(!de||!de.state||(le=(ie=de.state).wrap)===2||le===1&&ie.status!==He||ie.lookahead)return Te;for(le===1&&(de.adler=xe(de.adler,pe,gt,0)),ie.wrap=0,gt>=ie.w_size&&(le===0&&(Ze(ie.head),ie.strstart=0,ie.block_start=0,ie.insert=0),mt=new Ue.Buf8(ie.w_size),Ue.arraySet(mt,pe,gt-ie.w_size,ie.w_size,0),pe=mt,gt=ie.w_size),Be=de.avail_in,We=de.next_in,st=de.input,de.avail_in=gt,de.next_in=0,de.input=pe,Ot(ie);ie.lookahead>=ot;){for(ee=ie.strstart,se=ie.lookahead-(ot-1);ie.ins_h=(ie.ins_h<<ie.hash_shift^ie.window[ee+ot-1])&ie.hash_mask,ie.prev[ee&ie.w_mask]=ie.head[ie.ins_h],ie.head[ie.ins_h]=ee,ee++,--se;);ie.strstart=ee,ie.lookahead=ot-1,Ot(ie)}return ie.strstart+=ie.lookahead,ie.block_start=ie.strstart,ie.insert=ie.lookahead,ie.lookahead=0,ie.match_length=ie.prev_length=ot-1,ie.match_available=0,de.next_in=We,de.input=st,de.avail_in=Be,ie.wrap=le,Se},ze.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(Ie,Je,ze){"use strict";Je.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(Ie,Je,ze){"use strict";Je.exports=function(Le,Ue){var he,xe,oe,Oe,ve,Me,Se,Te,we,Ce,Ee,ke,Ke,Qe,je,qe,Ve,ct,ot,pt,bt,He,ht,_e,Re;he=Le.state,xe=Le.next_in,_e=Le.input,oe=xe+(Le.avail_in-5),Oe=Le.next_out,Re=Le.output,ve=Oe-(Ue-Le.avail_out),Me=Oe+(Le.avail_out-257),Se=he.dmax,Te=he.wsize,we=he.whave,Ce=he.wnext,Ee=he.window,ke=he.hold,Ke=he.bits,Qe=he.lencode,je=he.distcode,qe=(1<<he.lenbits)-1,Ve=(1<<he.distbits)-1;e:do{Ke<15&&(ke+=_e[xe++]<<Ke,Ke+=8,ke+=_e[xe++]<<Ke,Ke+=8),ct=Qe[ke&qe];t:for(;;){if(ke>>>=ot=ct>>>24,Ke-=ot,(ot=ct>>>16&255)===0)Re[Oe++]=65535&ct;else{if(!(16&ot)){if(!(64&ot)){ct=Qe[(65535&ct)+(ke&(1<<ot)-1)];continue t}if(32&ot){he.mode=12;break e}Le.msg="invalid literal/length code",he.mode=30;break e}pt=65535&ct,(ot&=15)&&(Ke<ot&&(ke+=_e[xe++]<<Ke,Ke+=8),pt+=ke&(1<<ot)-1,ke>>>=ot,Ke-=ot),Ke<15&&(ke+=_e[xe++]<<Ke,Ke+=8,ke+=_e[xe++]<<Ke,Ke+=8),ct=je[ke&Ve];n:for(;;){if(ke>>>=ot=ct>>>24,Ke-=ot,!(16&(ot=ct>>>16&255))){if(!(64&ot)){ct=je[(65535&ct)+(ke&(1<<ot)-1)];continue n}Le.msg="invalid distance code",he.mode=30;break e}if(bt=65535&ct,Ke<(ot&=15)&&(ke+=_e[xe++]<<Ke,(Ke+=8)<ot&&(ke+=_e[xe++]<<Ke,Ke+=8)),Se<(bt+=ke&(1<<ot)-1)){Le.msg="invalid distance too far back",he.mode=30;break e}if(ke>>>=ot,Ke-=ot,(ot=Oe-ve)<bt){if(we<(ot=bt-ot)&&he.sane){Le.msg="invalid distance too far back",he.mode=30;break e}if(ht=Ee,(He=0)===Ce){if(He+=Te-ot,ot<pt){for(pt-=ot;Re[Oe++]=Ee[He++],--ot;);He=Oe-bt,ht=Re}}else if(Ce<ot){if(He+=Te+Ce-ot,(ot-=Ce)<pt){for(pt-=ot;Re[Oe++]=Ee[He++],--ot;);if(He=0,Ce<pt){for(pt-=ot=Ce;Re[Oe++]=Ee[He++],--ot;);He=Oe-bt,ht=Re}}}else if(He+=Ce-ot,ot<pt){for(pt-=ot;Re[Oe++]=Ee[He++],--ot;);He=Oe-bt,ht=Re}for(;2<pt;)Re[Oe++]=ht[He++],Re[Oe++]=ht[He++],Re[Oe++]=ht[He++],pt-=3;pt&&(Re[Oe++]=ht[He++],1<pt&&(Re[Oe++]=ht[He++]))}else{for(He=Oe-bt;Re[Oe++]=Re[He++],Re[Oe++]=Re[He++],Re[Oe++]=Re[He++],2<(pt-=3););pt&&(Re[Oe++]=Re[He++],1<pt&&(Re[Oe++]=Re[He++]))}break}}break}}while(xe<oe&&Oe<Me);xe-=pt=Ke>>3,ke&=(1<<(Ke-=pt<<3))-1,Le.next_in=xe,Le.next_out=Oe,Le.avail_in=xe<oe?oe-xe+5:5-(xe-oe),Le.avail_out=Oe<Me?Me-Oe+257:257-(Oe-Me),he.hold=ke,he.bits=Ke}},{}],49:[function(Ie,Je,ze){"use strict";var Le=Ie("../utils/common"),Ue=Ie("./adler32"),he=Ie("./crc32"),xe=Ie("./inffast"),oe=Ie("./inftrees"),Oe=1,ve=2,Me=0,Se=-2,Te=1,we=852,Ce=592;function Ee(He){return(He>>>24&255)+(He>>>8&65280)+((65280&He)<<8)+((255&He)<<24)}function ke(){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 Le.Buf16(320),this.work=new Le.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ke(He){var ht;return He&&He.state?(ht=He.state,He.total_in=He.total_out=ht.total=0,He.msg="",ht.wrap&&(He.adler=1&ht.wrap),ht.mode=Te,ht.last=0,ht.havedict=0,ht.dmax=32768,ht.head=null,ht.hold=0,ht.bits=0,ht.lencode=ht.lendyn=new Le.Buf32(we),ht.distcode=ht.distdyn=new Le.Buf32(Ce),ht.sane=1,ht.back=-1,Me):Se}function Qe(He){var ht;return He&&He.state?((ht=He.state).wsize=0,ht.whave=0,ht.wnext=0,Ke(He)):Se}function je(He,ht){var _e,Re;return He&&He.state?(Re=He.state,ht<0?(_e=0,ht=-ht):(_e=1+(ht>>4),ht<48&&(ht&=15)),ht&&(ht<8||15<ht)?Se:(Re.window!==null&&Re.wbits!==ht&&(Re.window=null),Re.wrap=_e,Re.wbits=ht,Qe(He))):Se}function qe(He,ht){var _e,Re;return He?(Re=new ke,(He.state=Re).window=null,(_e=je(He,ht))!==Me&&(He.state=null),_e):Se}var Ve,ct,ot=!0;function pt(He){if(ot){var ht;for(Ve=new Le.Buf32(512),ct=new Le.Buf32(32),ht=0;ht<144;)He.lens[ht++]=8;for(;ht<256;)He.lens[ht++]=9;for(;ht<280;)He.lens[ht++]=7;for(;ht<288;)He.lens[ht++]=8;for(oe(Oe,He.lens,0,288,Ve,0,He.work,{bits:9}),ht=0;ht<32;)He.lens[ht++]=5;oe(ve,He.lens,0,32,ct,0,He.work,{bits:5}),ot=!1}He.lencode=Ve,He.lenbits=9,He.distcode=ct,He.distbits=5}function bt(He,ht,_e,Re){var Nt,it=He.state;return it.window===null&&(it.wsize=1<<it.wbits,it.wnext=0,it.whave=0,it.window=new Le.Buf8(it.wsize)),Re>=it.wsize?(Le.arraySet(it.window,ht,_e-it.wsize,it.wsize,0),it.wnext=0,it.whave=it.wsize):(Re<(Nt=it.wsize-it.wnext)&&(Nt=Re),Le.arraySet(it.window,ht,_e-Re,Nt,it.wnext),(Re-=Nt)?(Le.arraySet(it.window,ht,_e-Re,Re,0),it.wnext=Re,it.whave=it.wsize):(it.wnext+=Nt,it.wnext===it.wsize&&(it.wnext=0),it.whave<it.wsize&&(it.whave+=Nt))),0}ze.inflateReset=Qe,ze.inflateReset2=je,ze.inflateResetKeep=Ke,ze.inflateInit=function(He){return qe(He,15)},ze.inflateInit2=qe,ze.inflate=function(He,ht){var _e,Re,Nt,it,at,Bt,Ze,De,ut,$t,zt,tt,Ot,Rt,fn,Tt,mn,Dt,En,rn,de,pe,ie,ee,se=0,le=new Le.Buf8(4),Be=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!He||!He.state||!He.output||!He.input&&He.avail_in!==0)return Se;(_e=He.state).mode===12&&(_e.mode=13),at=He.next_out,Nt=He.output,Ze=He.avail_out,it=He.next_in,Re=He.input,Bt=He.avail_in,De=_e.hold,ut=_e.bits,$t=Bt,zt=Ze,pe=Me;e:for(;;)switch(_e.mode){case Te:if(_e.wrap===0){_e.mode=13;break}for(;ut<16;){if(Bt===0)break e;Bt--,De+=Re[it++]<<ut,ut+=8}if(2&_e.wrap&&De===35615){le[_e.check=0]=255&De,le[1]=De>>>8&255,_e.check=he(_e.check,le,2,0),ut=De=0,_e.mode=2;break}if(_e.flags=0,_e.head&&(_e.head.done=!1),!(1&_e.wrap)||(((255&De)<<8)+(De>>8))%31){He.msg="incorrect header check",_e.mode=30;break}if((15&De)!=8){He.msg="unknown compression method",_e.mode=30;break}if(ut-=4,de=8+(15&(De>>>=4)),_e.wbits===0)_e.wbits=de;else if(de>_e.wbits){He.msg="invalid window size",_e.mode=30;break}_e.dmax=1<<de,He.adler=_e.check=1,_e.mode=512&De?10:12,ut=De=0;break;case 2:for(;ut<16;){if(Bt===0)break e;Bt--,De+=Re[it++]<<ut,ut+=8}if(_e.flags=De,(255&_e.flags)!=8){He.msg="unknown compression method",_e.mode=30;break}if(57344&_e.flags){He.msg="unknown header flags set",_e.mode=30;break}_e.head&&(_e.head.text=De>>8&1),512&_e.flags&&(le[0]=255&De,le[1]=De>>>8&255,_e.check=he(_e.check,le,2,0)),ut=De=0,_e.mode=3;case 3:for(;ut<32;){if(Bt===0)break e;Bt--,De+=Re[it++]<<ut,ut+=8}_e.head&&(_e.head.time=De),512&_e.flags&&(le[0]=255&De,le[1]=De>>>8&255,le[2]=De>>>16&255,le[3]=De>>>24&255,_e.check=he(_e.check,le,4,0)),ut=De=0,_e.mode=4;case 4:for(;ut<16;){if(Bt===0)break e;Bt--,De+=Re[it++]<<ut,ut+=8}_e.head&&(_e.head.xflags=255&De,_e.head.os=De>>8),512&_e.flags&&(le[0]=255&De,le[1]=De>>>8&255,_e.check=he(_e.check,le,2,0)),ut=De=0,_e.mode=5;case 5:if(1024&_e.flags){for(;ut<16;){if(Bt===0)break e;Bt--,De+=Re[it++]<<ut,ut+=8}_e.length=De,_e.head&&(_e.head.extra_len=De),512&_e.flags&&(le[0]=255&De,le[1]=De>>>8&255,_e.check=he(_e.check,le,2,0)),ut=De=0}else _e.head&&(_e.head.extra=null);_e.mode=6;case 6:if(1024&_e.flags&&(Bt<(tt=_e.length)&&(tt=Bt),tt&&(_e.head&&(de=_e.head.extra_len-_e.length,_e.head.extra||(_e.head.extra=new Array(_e.head.extra_len)),Le.arraySet(_e.head.extra,Re,it,tt,de)),512&_e.flags&&(_e.check=he(_e.check,Re,tt,it)),Bt-=tt,it+=tt,_e.length-=tt),_e.length))break e;_e.length=0,_e.mode=7;case 7:if(2048&_e.flags){if(Bt===0)break e;for(tt=0;de=Re[it+tt++],_e.head&&de&&_e.length<65536&&(_e.head.name+=String.fromCharCode(de)),de&&tt<Bt;);if(512&_e.flags&&(_e.check=he(_e.check,Re,tt,it)),Bt-=tt,it+=tt,de)break e}else _e.head&&(_e.head.name=null);_e.length=0,_e.mode=8;case 8:if(4096&_e.flags){if(Bt===0)break e;for(tt=0;de=Re[it+tt++],_e.head&&de&&_e.length<65536&&(_e.head.comment+=String.fromCharCode(de)),de&&tt<Bt;);if(512&_e.flags&&(_e.check=he(_e.check,Re,tt,it)),Bt-=tt,it+=tt,de)break e}else _e.head&&(_e.head.comment=null);_e.mode=9;case 9:if(512&_e.flags){for(;ut<16;){if(Bt===0)break e;Bt--,De+=Re[it++]<<ut,ut+=8}if(De!==(65535&_e.check)){He.msg="header crc mismatch",_e.mode=30;break}ut=De=0}_e.head&&(_e.head.hcrc=_e.flags>>9&1,_e.head.done=!0),He.adler=_e.check=0,_e.mode=12;break;case 10:for(;ut<32;){if(Bt===0)break e;Bt--,De+=Re[it++]<<ut,ut+=8}He.adler=_e.check=Ee(De),ut=De=0,_e.mode=11;case 11:if(_e.havedict===0)return He.next_out=at,He.avail_out=Ze,He.next_in=it,He.avail_in=Bt,_e.hold=De,_e.bits=ut,2;He.adler=_e.check=1,_e.mode=12;case 12:if(ht===5||ht===6)break e;case 13:if(_e.last){De>>>=7&ut,ut-=7&ut,_e.mode=27;break}for(;ut<3;){if(Bt===0)break e;Bt--,De+=Re[it++]<<ut,ut+=8}switch(_e.last=1&De,ut-=1,3&(De>>>=1)){case 0:_e.mode=14;break;case 1:if(pt(_e),_e.mode=20,ht!==6)break;De>>>=2,ut-=2;break e;case 2:_e.mode=17;break;case 3:He.msg="invalid block type",_e.mode=30}De>>>=2,ut-=2;break;case 14:for(De>>>=7&ut,ut-=7&ut;ut<32;){if(Bt===0)break e;Bt--,De+=Re[it++]<<ut,ut+=8}if((65535&De)!=(De>>>16^65535)){He.msg="invalid stored block lengths",_e.mode=30;break}if(_e.length=65535&De,ut=De=0,_e.mode=15,ht===6)break e;case 15:_e.mode=16;case 16:if(tt=_e.length){if(Bt<tt&&(tt=Bt),Ze<tt&&(tt=Ze),tt===0)break e;Le.arraySet(Nt,Re,it,tt,at),Bt-=tt,it+=tt,Ze-=tt,at+=tt,_e.length-=tt;break}_e.mode=12;break;case 17:for(;ut<14;){if(Bt===0)break e;Bt--,De+=Re[it++]<<ut,ut+=8}if(_e.nlen=257+(31&De),De>>>=5,ut-=5,_e.ndist=1+(31&De),De>>>=5,ut-=5,_e.ncode=4+(15&De),De>>>=4,ut-=4,286<_e.nlen||30<_e.ndist){He.msg="too many length or distance symbols",_e.mode=30;break}_e.have=0,_e.mode=18;case 18:for(;_e.have<_e.ncode;){for(;ut<3;){if(Bt===0)break e;Bt--,De+=Re[it++]<<ut,ut+=8}_e.lens[Be[_e.have++]]=7&De,De>>>=3,ut-=3}for(;_e.have<19;)_e.lens[Be[_e.have++]]=0;if(_e.lencode=_e.lendyn,_e.lenbits=7,ie={bits:_e.lenbits},pe=oe(0,_e.lens,0,19,_e.lencode,0,_e.work,ie),_e.lenbits=ie.bits,pe){He.msg="invalid code lengths set",_e.mode=30;break}_e.have=0,_e.mode=19;case 19:for(;_e.have<_e.nlen+_e.ndist;){for(;Tt=(se=_e.lencode[De&(1<<_e.lenbits)-1])>>>16&255,mn=65535&se,!((fn=se>>>24)<=ut);){if(Bt===0)break e;Bt--,De+=Re[it++]<<ut,ut+=8}if(mn<16)De>>>=fn,ut-=fn,_e.lens[_e.have++]=mn;else{if(mn===16){for(ee=fn+2;ut<ee;){if(Bt===0)break e;Bt--,De+=Re[it++]<<ut,ut+=8}if(De>>>=fn,ut-=fn,_e.have===0){He.msg="invalid bit length repeat",_e.mode=30;break}de=_e.lens[_e.have-1],tt=3+(3&De),De>>>=2,ut-=2}else if(mn===17){for(ee=fn+3;ut<ee;){if(Bt===0)break e;Bt--,De+=Re[it++]<<ut,ut+=8}ut-=fn,de=0,tt=3+(7&(De>>>=fn)),De>>>=3,ut-=3}else{for(ee=fn+7;ut<ee;){if(Bt===0)break e;Bt--,De+=Re[it++]<<ut,ut+=8}ut-=fn,de=0,tt=11+(127&(De>>>=fn)),De>>>=7,ut-=7}if(_e.have+tt>_e.nlen+_e.ndist){He.msg="invalid bit length repeat",_e.mode=30;break}for(;tt--;)_e.lens[_e.have++]=de}}if(_e.mode===30)break;if(_e.lens[256]===0){He.msg="invalid code -- missing end-of-block",_e.mode=30;break}if(_e.lenbits=9,ie={bits:_e.lenbits},pe=oe(Oe,_e.lens,0,_e.nlen,_e.lencode,0,_e.work,ie),_e.lenbits=ie.bits,pe){He.msg="invalid literal/lengths set",_e.mode=30;break}if(_e.distbits=6,_e.distcode=_e.distdyn,ie={bits:_e.distbits},pe=oe(ve,_e.lens,_e.nlen,_e.ndist,_e.distcode,0,_e.work,ie),_e.distbits=ie.bits,pe){He.msg="invalid distances set",_e.mode=30;break}if(_e.mode=20,ht===6)break e;case 20:_e.mode=21;case 21:if(6<=Bt&&258<=Ze){He.next_out=at,He.avail_out=Ze,He.next_in=it,He.avail_in=Bt,_e.hold=De,_e.bits=ut,xe(He,zt),at=He.next_out,Nt=He.output,Ze=He.avail_out,it=He.next_in,Re=He.input,Bt=He.avail_in,De=_e.hold,ut=_e.bits,_e.mode===12&&(_e.back=-1);break}for(_e.back=0;Tt=(se=_e.lencode[De&(1<<_e.lenbits)-1])>>>16&255,mn=65535&se,!((fn=se>>>24)<=ut);){if(Bt===0)break e;Bt--,De+=Re[it++]<<ut,ut+=8}if(Tt&&!(240&Tt)){for(Dt=fn,En=Tt,rn=mn;Tt=(se=_e.lencode[rn+((De&(1<<Dt+En)-1)>>Dt)])>>>16&255,mn=65535&se,!(Dt+(fn=se>>>24)<=ut);){if(Bt===0)break e;Bt--,De+=Re[it++]<<ut,ut+=8}De>>>=Dt,ut-=Dt,_e.back+=Dt}if(De>>>=fn,ut-=fn,_e.back+=fn,_e.length=mn,Tt===0){_e.mode=26;break}if(32&Tt){_e.back=-1,_e.mode=12;break}if(64&Tt){He.msg="invalid literal/length code",_e.mode=30;break}_e.extra=15&Tt,_e.mode=22;case 22:if(_e.extra){for(ee=_e.extra;ut<ee;){if(Bt===0)break e;Bt--,De+=Re[it++]<<ut,ut+=8}_e.length+=De&(1<<_e.extra)-1,De>>>=_e.extra,ut-=_e.extra,_e.back+=_e.extra}_e.was=_e.length,_e.mode=23;case 23:for(;Tt=(se=_e.distcode[De&(1<<_e.distbits)-1])>>>16&255,mn=65535&se,!((fn=se>>>24)<=ut);){if(Bt===0)break e;Bt--,De+=Re[it++]<<ut,ut+=8}if(!(240&Tt)){for(Dt=fn,En=Tt,rn=mn;Tt=(se=_e.distcode[rn+((De&(1<<Dt+En)-1)>>Dt)])>>>16&255,mn=65535&se,!(Dt+(fn=se>>>24)<=ut);){if(Bt===0)break e;Bt--,De+=Re[it++]<<ut,ut+=8}De>>>=Dt,ut-=Dt,_e.back+=Dt}if(De>>>=fn,ut-=fn,_e.back+=fn,64&Tt){He.msg="invalid distance code",_e.mode=30;break}_e.offset=mn,_e.extra=15&Tt,_e.mode=24;case 24:if(_e.extra){for(ee=_e.extra;ut<ee;){if(Bt===0)break e;Bt--,De+=Re[it++]<<ut,ut+=8}_e.offset+=De&(1<<_e.extra)-1,De>>>=_e.extra,ut-=_e.extra,_e.back+=_e.extra}if(_e.offset>_e.dmax){He.msg="invalid distance too far back",_e.mode=30;break}_e.mode=25;case 25:if(Ze===0)break e;if(tt=zt-Ze,_e.offset>tt){if((tt=_e.offset-tt)>_e.whave&&_e.sane){He.msg="invalid distance too far back",_e.mode=30;break}Ot=tt>_e.wnext?(tt-=_e.wnext,_e.wsize-tt):_e.wnext-tt,tt>_e.length&&(tt=_e.length),Rt=_e.window}else Rt=Nt,Ot=at-_e.offset,tt=_e.length;for(Ze<tt&&(tt=Ze),Ze-=tt,_e.length-=tt;Nt[at++]=Rt[Ot++],--tt;);_e.length===0&&(_e.mode=21);break;case 26:if(Ze===0)break e;Nt[at++]=_e.length,Ze--,_e.mode=21;break;case 27:if(_e.wrap){for(;ut<32;){if(Bt===0)break e;Bt--,De|=Re[it++]<<ut,ut+=8}if(zt-=Ze,He.total_out+=zt,_e.total+=zt,zt&&(He.adler=_e.check=_e.flags?he(_e.check,Nt,zt,at-zt):Ue(_e.check,Nt,zt,at-zt)),zt=Ze,(_e.flags?De:Ee(De))!==_e.check){He.msg="incorrect data check",_e.mode=30;break}ut=De=0}_e.mode=28;case 28:if(_e.wrap&&_e.flags){for(;ut<32;){if(Bt===0)break e;Bt--,De+=Re[it++]<<ut,ut+=8}if(De!==(4294967295&_e.total)){He.msg="incorrect length check",_e.mode=30;break}ut=De=0}_e.mode=29;case 29:pe=1;break e;case 30:pe=-3;break e;case 31:return-4;case 32:default:return Se}return He.next_out=at,He.avail_out=Ze,He.next_in=it,He.avail_in=Bt,_e.hold=De,_e.bits=ut,(_e.wsize||zt!==He.avail_out&&_e.mode<30&&(_e.mode<27||ht!==4))&&bt(He,He.output,He.next_out,zt-He.avail_out)?(_e.mode=31,-4):($t-=He.avail_in,zt-=He.avail_out,He.total_in+=$t,He.total_out+=zt,_e.total+=zt,_e.wrap&&zt&&(He.adler=_e.check=_e.flags?he(_e.check,Nt,zt,He.next_out-zt):Ue(_e.check,Nt,zt,He.next_out-zt)),He.data_type=_e.bits+(_e.last?64:0)+(_e.mode===12?128:0)+(_e.mode===20||_e.mode===15?256:0),($t==0&&zt===0||ht===4)&&pe===Me&&(pe=-5),pe)},ze.inflateEnd=function(He){if(!He||!He.state)return Se;var ht=He.state;return ht.window&&(ht.window=null),He.state=null,Me},ze.inflateGetHeader=function(He,ht){var _e;return He&&He.state&&2&(_e=He.state).wrap?((_e.head=ht).done=!1,Me):Se},ze.inflateSetDictionary=function(He,ht){var _e,Re=ht.length;return He&&He.state?(_e=He.state).wrap!==0&&_e.mode!==11?Se:_e.mode===11&&Ue(1,ht,Re,0)!==_e.check?-3:bt(He,ht,Re,Re)?(_e.mode=31,-4):(_e.havedict=1,Me):Se},ze.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(Ie,Je,ze){"use strict";var Le=Ie("../utils/common"),Ue=[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],he=[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],xe=[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],oe=[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];Je.exports=function(Oe,ve,Me,Se,Te,we,Ce,Ee){var ke,Ke,Qe,je,qe,Ve,ct,ot,pt,bt=Ee.bits,He=0,ht=0,_e=0,Re=0,Nt=0,it=0,at=0,Bt=0,Ze=0,De=0,ut=null,$t=0,zt=new Le.Buf16(16),tt=new Le.Buf16(16),Ot=null,Rt=0;for(He=0;He<=15;He++)zt[He]=0;for(ht=0;ht<Se;ht++)zt[ve[Me+ht]]++;for(Nt=bt,Re=15;1<=Re&&zt[Re]===0;Re--);if(Re<Nt&&(Nt=Re),Re===0)return Te[we++]=20971520,Te[we++]=20971520,Ee.bits=1,0;for(_e=1;_e<Re&&zt[_e]===0;_e++);for(Nt<_e&&(Nt=_e),He=Bt=1;He<=15;He++)if(Bt<<=1,(Bt-=zt[He])<0)return-1;if(0<Bt&&(Oe===0||Re!==1))return-1;for(tt[1]=0,He=1;He<15;He++)tt[He+1]=tt[He]+zt[He];for(ht=0;ht<Se;ht++)ve[Me+ht]!==0&&(Ce[tt[ve[Me+ht]]++]=ht);if(Ve=Oe===0?(ut=Ot=Ce,19):Oe===1?(ut=Ue,$t-=257,Ot=he,Rt-=257,256):(ut=xe,Ot=oe,-1),He=_e,qe=we,at=ht=De=0,Qe=-1,je=(Ze=1<<(it=Nt))-1,Oe===1&&852<Ze||Oe===2&&592<Ze)return 1;for(;;){for(ct=He-at,pt=Ce[ht]<Ve?(ot=0,Ce[ht]):Ce[ht]>Ve?(ot=Ot[Rt+Ce[ht]],ut[$t+Ce[ht]]):(ot=96,0),ke=1<<He-at,_e=Ke=1<<it;Te[qe+(De>>at)+(Ke-=ke)]=ct<<24|ot<<16|pt|0,Ke!==0;);for(ke=1<<He-1;De&ke;)ke>>=1;if(ke!==0?(De&=ke-1,De+=ke):De=0,ht++,--zt[He]==0){if(He===Re)break;He=ve[Me+Ce[ht]]}if(Nt<He&&(De&je)!==Qe){for(at===0&&(at=Nt),qe+=_e,Bt=1<<(it=He-at);it+at<Re&&!((Bt-=zt[it+at])<=0);)it++,Bt<<=1;if(Ze+=1<<it,Oe===1&&852<Ze||Oe===2&&592<Ze)return 1;Te[Qe=De&je]=Nt<<24|it<<16|qe-we|0}}return De!==0&&(Te[qe+De]=He-at<<24|64<<16|0),Ee.bits=Nt,0}},{"../utils/common":41}],51:[function(Ie,Je,ze){"use strict";Je.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(Ie,Je,ze){"use strict";var Le=Ie("../utils/common"),Ue=0,he=1;function xe(se){for(var le=se.length;0<=--le;)se[le]=0}var oe=0,Oe=29,ve=256,Me=ve+1+Oe,Se=30,Te=19,we=2*Me+1,Ce=15,Ee=16,ke=7,Ke=256,Qe=16,je=17,qe=18,Ve=[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],ct=[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],ot=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],pt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],bt=new Array(2*(Me+2));xe(bt);var He=new Array(2*Se);xe(He);var ht=new Array(512);xe(ht);var _e=new Array(256);xe(_e);var Re=new Array(Oe);xe(Re);var Nt,it,at,Bt=new Array(Se);function Ze(se,le,Be,We,st){this.static_tree=se,this.extra_bits=le,this.extra_base=Be,this.elems=We,this.max_length=st,this.has_stree=se&&se.length}function De(se,le){this.dyn_tree=se,this.max_code=0,this.stat_desc=le}function ut(se){return se<256?ht[se]:ht[256+(se>>>7)]}function $t(se,le){se.pending_buf[se.pending++]=255&le,se.pending_buf[se.pending++]=le>>>8&255}function zt(se,le,Be){se.bi_valid>Ee-Be?(se.bi_buf|=le<<se.bi_valid&65535,$t(se,se.bi_buf),se.bi_buf=le>>Ee-se.bi_valid,se.bi_valid+=Be-Ee):(se.bi_buf|=le<<se.bi_valid&65535,se.bi_valid+=Be)}function tt(se,le,Be){zt(se,Be[2*le],Be[2*le+1])}function Ot(se,le){for(var Be=0;Be|=1&se,se>>>=1,Be<<=1,0<--le;);return Be>>>1}function Rt(se,le,Be){var We,st,mt=new Array(Ce+1),gt=0;for(We=1;We<=Ce;We++)mt[We]=gt=gt+Be[We-1]<<1;for(st=0;st<=le;st++){var Et=se[2*st+1];Et!==0&&(se[2*st]=Ot(mt[Et]++,Et))}}function fn(se){var le;for(le=0;le<Me;le++)se.dyn_ltree[2*le]=0;for(le=0;le<Se;le++)se.dyn_dtree[2*le]=0;for(le=0;le<Te;le++)se.bl_tree[2*le]=0;se.dyn_ltree[2*Ke]=1,se.opt_len=se.static_len=0,se.last_lit=se.matches=0}function Tt(se){8<se.bi_valid?$t(se,se.bi_buf):0<se.bi_valid&&(se.pending_buf[se.pending++]=se.bi_buf),se.bi_buf=0,se.bi_valid=0}function mn(se,le,Be,We){var st=2*le,mt=2*Be;return se[st]<se[mt]||se[st]===se[mt]&&We[le]<=We[Be]}function Dt(se,le,Be){for(var We=se.heap[Be],st=Be<<1;st<=se.heap_len&&(st<se.heap_len&&mn(le,se.heap[st+1],se.heap[st],se.depth)&&st++,!mn(le,We,se.heap[st],se.depth));)se.heap[Be]=se.heap[st],Be=st,st<<=1;se.heap[Be]=We}function En(se,le,Be){var We,st,mt,gt,Et=0;if(se.last_lit!==0)for(;We=se.pending_buf[se.d_buf+2*Et]<<8|se.pending_buf[se.d_buf+2*Et+1],st=se.pending_buf[se.l_buf+Et],Et++,We===0?tt(se,st,le):(tt(se,(mt=_e[st])+ve+1,le),(gt=Ve[mt])!==0&&zt(se,st-=Re[mt],gt),tt(se,mt=ut(--We),Be),(gt=ct[mt])!==0&&zt(se,We-=Bt[mt],gt)),Et<se.last_lit;);tt(se,Ke,le)}function rn(se,le){var Be,We,st,mt=le.dyn_tree,gt=le.stat_desc.static_tree,Et=le.stat_desc.has_stree,Lt=le.stat_desc.elems,jt=-1;for(se.heap_len=0,se.heap_max=we,Be=0;Be<Lt;Be++)mt[2*Be]!==0?(se.heap[++se.heap_len]=jt=Be,se.depth[Be]=0):mt[2*Be+1]=0;for(;se.heap_len<2;)mt[2*(st=se.heap[++se.heap_len]=jt<2?++jt:0)]=1,se.depth[st]=0,se.opt_len--,Et&&(se.static_len-=gt[2*st+1]);for(le.max_code=jt,Be=se.heap_len>>1;1<=Be;Be--)Dt(se,mt,Be);for(st=Lt;Be=se.heap[1],se.heap[1]=se.heap[se.heap_len--],Dt(se,mt,1),We=se.heap[1],se.heap[--se.heap_max]=Be,se.heap[--se.heap_max]=We,mt[2*st]=mt[2*Be]+mt[2*We],se.depth[st]=(se.depth[Be]>=se.depth[We]?se.depth[Be]:se.depth[We])+1,mt[2*Be+1]=mt[2*We+1]=st,se.heap[1]=st++,Dt(se,mt,1),2<=se.heap_len;);se.heap[--se.heap_max]=se.heap[1],function(Ct,lt){var Vt,Zt,gn,sn,en,zn,Fn=lt.dyn_tree,Ut=lt.max_code,an=lt.stat_desc.static_tree,_n=lt.stat_desc.has_stree,Vn=lt.stat_desc.extra_bits,It=lt.stat_desc.extra_base,Wt=lt.stat_desc.max_length,on=0;for(sn=0;sn<=Ce;sn++)Ct.bl_count[sn]=0;for(Fn[2*Ct.heap[Ct.heap_max]+1]=0,Vt=Ct.heap_max+1;Vt<we;Vt++)Wt<(sn=Fn[2*Fn[2*(Zt=Ct.heap[Vt])+1]+1]+1)&&(sn=Wt,on++),Fn[2*Zt+1]=sn,Ut<Zt||(Ct.bl_count[sn]++,en=0,It<=Zt&&(en=Vn[Zt-It]),zn=Fn[2*Zt],Ct.opt_len+=zn*(sn+en),_n&&(Ct.static_len+=zn*(an[2*Zt+1]+en)));if(on!==0){do{for(sn=Wt-1;Ct.bl_count[sn]===0;)sn--;Ct.bl_count[sn]--,Ct.bl_count[sn+1]+=2,Ct.bl_count[Wt]--,on-=2}while(0<on);for(sn=Wt;sn!==0;sn--)for(Zt=Ct.bl_count[sn];Zt!==0;)Ut<(gn=Ct.heap[--Vt])||(Fn[2*gn+1]!==sn&&(Ct.opt_len+=(sn-Fn[2*gn+1])*Fn[2*gn],Fn[2*gn+1]=sn),Zt--)}}(se,le),Rt(mt,jt,se.bl_count)}function de(se,le,Be){var We,st,mt=-1,gt=le[1],Et=0,Lt=7,jt=4;for(gt===0&&(Lt=138,jt=3),le[2*(Be+1)+1]=65535,We=0;We<=Be;We++)st=gt,gt=le[2*(We+1)+1],++Et<Lt&&st===gt||(Et<jt?se.bl_tree[2*st]+=Et:st!==0?(st!==mt&&se.bl_tree[2*st]++,se.bl_tree[2*Qe]++):Et<=10?se.bl_tree[2*je]++:se.bl_tree[2*qe]++,mt=st,jt=(Et=0)===gt?(Lt=138,3):st===gt?(Lt=6,3):(Lt=7,4))}function pe(se,le,Be){var We,st,mt=-1,gt=le[1],Et=0,Lt=7,jt=4;for(gt===0&&(Lt=138,jt=3),We=0;We<=Be;We++)if(st=gt,gt=le[2*(We+1)+1],!(++Et<Lt&&st===gt)){if(Et<jt)for(;tt(se,st,se.bl_tree),--Et!=0;);else st!==0?(st!==mt&&(tt(se,st,se.bl_tree),Et--),tt(se,Qe,se.bl_tree),zt(se,Et-3,2)):Et<=10?(tt(se,je,se.bl_tree),zt(se,Et-3,3)):(tt(se,qe,se.bl_tree),zt(se,Et-11,7));mt=st,jt=(Et=0)===gt?(Lt=138,3):st===gt?(Lt=6,3):(Lt=7,4)}}xe(Bt);var ie=!1;function ee(se,le,Be,We){zt(se,(oe<<1)+(We?1:0),3),function(st,mt,gt,Et){Tt(st),Et&&($t(st,gt),$t(st,~gt)),Le.arraySet(st.pending_buf,st.window,mt,gt,st.pending),st.pending+=gt}(se,le,Be,!0)}ze._tr_init=function(se){ie||(function(){var le,Be,We,st,mt,gt=new Array(Ce+1);for(st=We=0;st<Oe-1;st++)for(Re[st]=We,le=0;le<1<<Ve[st];le++)_e[We++]=st;for(_e[We-1]=st,st=mt=0;st<16;st++)for(Bt[st]=mt,le=0;le<1<<ct[st];le++)ht[mt++]=st;for(mt>>=7;st<Se;st++)for(Bt[st]=mt<<7,le=0;le<1<<ct[st]-7;le++)ht[256+mt++]=st;for(Be=0;Be<=Ce;Be++)gt[Be]=0;for(le=0;le<=143;)bt[2*le+1]=8,le++,gt[8]++;for(;le<=255;)bt[2*le+1]=9,le++,gt[9]++;for(;le<=279;)bt[2*le+1]=7,le++,gt[7]++;for(;le<=287;)bt[2*le+1]=8,le++,gt[8]++;for(Rt(bt,Me+1,gt),le=0;le<Se;le++)He[2*le+1]=5,He[2*le]=Ot(le,5);Nt=new Ze(bt,Ve,ve+1,Me,Ce),it=new Ze(He,ct,0,Se,Ce),at=new Ze(new Array(0),ot,0,Te,ke)}(),ie=!0),se.l_desc=new De(se.dyn_ltree,Nt),se.d_desc=new De(se.dyn_dtree,it),se.bl_desc=new De(se.bl_tree,at),se.bi_buf=0,se.bi_valid=0,fn(se)},ze._tr_stored_block=ee,ze._tr_flush_block=function(se,le,Be,We){var st,mt,gt=0;0<se.level?(se.strm.data_type===2&&(se.strm.data_type=function(Et){var Lt,jt=4093624447;for(Lt=0;Lt<=31;Lt++,jt>>>=1)if(1&jt&&Et.dyn_ltree[2*Lt]!==0)return Ue;if(Et.dyn_ltree[18]!==0||Et.dyn_ltree[20]!==0||Et.dyn_ltree[26]!==0)return he;for(Lt=32;Lt<ve;Lt++)if(Et.dyn_ltree[2*Lt]!==0)return he;return Ue}(se)),rn(se,se.l_desc),rn(se,se.d_desc),gt=function(Et){var Lt;for(de(Et,Et.dyn_ltree,Et.l_desc.max_code),de(Et,Et.dyn_dtree,Et.d_desc.max_code),rn(Et,Et.bl_desc),Lt=Te-1;3<=Lt&&Et.bl_tree[2*pt[Lt]+1]===0;Lt--);return Et.opt_len+=3*(Lt+1)+5+5+4,Lt}(se),st=se.opt_len+3+7>>>3,(mt=se.static_len+3+7>>>3)<=st&&(st=mt)):st=mt=Be+5,Be+4<=st&&le!==-1?ee(se,le,Be,We):se.strategy===4||mt===st?(zt(se,2+(We?1:0),3),En(se,bt,He)):(zt(se,4+(We?1:0),3),function(Et,Lt,jt,Ct){var lt;for(zt(Et,Lt-257,5),zt(Et,jt-1,5),zt(Et,Ct-4,4),lt=0;lt<Ct;lt++)zt(Et,Et.bl_tree[2*pt[lt]+1],3);pe(Et,Et.dyn_ltree,Lt-1),pe(Et,Et.dyn_dtree,jt-1)}(se,se.l_desc.max_code+1,se.d_desc.max_code+1,gt+1),En(se,se.dyn_ltree,se.dyn_dtree)),fn(se),We&&Tt(se)},ze._tr_tally=function(se,le,Be){return se.pending_buf[se.d_buf+2*se.last_lit]=le>>>8&255,se.pending_buf[se.d_buf+2*se.last_lit+1]=255&le,se.pending_buf[se.l_buf+se.last_lit]=255&Be,se.last_lit++,le===0?se.dyn_ltree[2*Be]++:(se.matches++,le--,se.dyn_ltree[2*(_e[Be]+ve+1)]++,se.dyn_dtree[2*ut(le)]++),se.last_lit===se.lit_bufsize-1},ze._tr_align=function(se){zt(se,2,3),tt(se,Ke,bt),function(le){le.bi_valid===16?($t(le,le.bi_buf),le.bi_buf=0,le.bi_valid=0):8<=le.bi_valid&&(le.pending_buf[le.pending++]=255&le.bi_buf,le.bi_buf>>=8,le.bi_valid-=8)}(se)}},{"../utils/common":41}],53:[function(Ie,Je,ze){"use strict";Je.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(Ie,Je,ze){(function(Le){(function(Ue,he){"use strict";if(!Ue.setImmediate){var xe,oe,Oe,ve,Me=1,Se={},Te=!1,we=Ue.document,Ce=Object.getPrototypeOf&&Object.getPrototypeOf(Ue);Ce=Ce&&Ce.setTimeout?Ce:Ue,xe={}.toString.call(Ue.process)==="[object process]"?function(Qe){dt.nextTick(function(){ke(Qe)})}:function(){if(Ue.postMessage&&!Ue.importScripts){var Qe=!0,je=Ue.onmessage;return Ue.onmessage=function(){Qe=!1},Ue.postMessage("","*"),Ue.onmessage=je,Qe}}()?(ve="setImmediate$"+Math.random()+"$",Ue.addEventListener?Ue.addEventListener("message",Ke,!1):Ue.attachEvent("onmessage",Ke),function(Qe){Ue.postMessage(ve+Qe,"*")}):Ue.MessageChannel?((Oe=new MessageChannel).port1.onmessage=function(Qe){ke(Qe.data)},function(Qe){Oe.port2.postMessage(Qe)}):we&&"onreadystatechange"in we.createElement("script")?(oe=we.documentElement,function(Qe){var je=we.createElement("script");je.onreadystatechange=function(){ke(Qe),je.onreadystatechange=null,oe.removeChild(je),je=null},oe.appendChild(je)}):function(Qe){setTimeout(ke,0,Qe)},Ce.setImmediate=function(Qe){typeof Qe!="function"&&(Qe=new Function(""+Qe));for(var je=new Array(arguments.length-1),qe=0;qe<je.length;qe++)je[qe]=arguments[qe+1];var Ve={callback:Qe,args:je};return Se[Me]=Ve,xe(Me),Me++},Ce.clearImmediate=Ee}function Ee(Qe){delete Se[Qe]}function ke(Qe){if(Te)setTimeout(ke,0,Qe);else{var je=Se[Qe];if(je){Te=!0;try{(function(qe){var Ve=qe.callback,ct=qe.args;switch(ct.length){case 0:Ve();break;case 1:Ve(ct[0]);break;case 2:Ve(ct[0],ct[1]);break;case 3:Ve(ct[0],ct[1],ct[2]);break;default:Ve.apply(he,ct)}})(je)}finally{Ee(Qe),Te=!1}}}}function Ke(Qe){Qe.source===Ue&&typeof Qe.data=="string"&&Qe.data.indexOf(ve)===0&&ke(+Qe.data.slice(ve.length))}})(typeof self=="undefined"?Le===void 0?this:Le:self)}).call(this,typeof ae.g!="undefined"?ae.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})},2859:function(Jn,kt,ae){"use strict";ae.d(kt,{hP:function(){return rn}});var x=function(de,pe){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,ee){ie.__proto__=ee}||function(ie,ee){for(var se in ee)Object.prototype.hasOwnProperty.call(ee,se)&&(ie[se]=ee[se])})(de,pe)};function dt(de,pe){function ie(){this.constructor=de}x(de,pe),de.prototype=pe===null?Object.create(pe):(ie.prototype=pe.prototype,new ie)}function Ie(de,pe,ie,ee){return new(ie||(ie=Promise))(function(se,le){function Be(mt){try{st(ee.next(mt))}catch(gt){le(gt)}}function We(mt){try{st(ee.throw(mt))}catch(gt){le(gt)}}function st(mt){var gt;mt.done?se(mt.value):(gt=mt.value,gt instanceof ie?gt:new ie(function(Et){Et(gt)})).then(Be,We)}st((ee=ee.apply(de,pe||[])).next())})}function Je(de,pe){var ie,ee,se,le,Be={label:0,sent:function(){if(1&se[0])throw se[1];return se[1]},trys:[],ops:[]};return le={next:We(0),throw:We(1),return:We(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function We(st){return function(mt){return function(gt){if(ie)throw new TypeError("Generator is already executing.");for(;Be;)try{if(ie=1,ee&&(se=2&gt[0]?ee.return:gt[0]?ee.throw||((se=ee.return)&&se.call(ee),0):ee.next)&&!(se=se.call(ee,gt[1])).done)return se;switch(ee=0,se&&(gt=[2&gt[0],se.value]),gt[0]){case 0:case 1:se=gt;break;case 4:return Be.label++,{value:gt[1],done:!1};case 5:Be.label++,ee=gt[1],gt=[0];continue;case 7:gt=Be.ops.pop(),Be.trys.pop();continue;default:if(se=Be.trys,!((se=se.length>0&&se[se.length-1])||gt[0]!==6&&gt[0]!==2)){Be=0;continue}if(gt[0]===3&&(!se||gt[1]>se[0]&&gt[1]<se[3])){Be.label=gt[1];break}if(gt[0]===6&&Be.label<se[1]){Be.label=se[1],se=gt;break}if(se&&Be.label<se[2]){Be.label=se[2],Be.ops.push(gt);break}se[2]&&Be.ops.pop(),Be.trys.pop();continue}gt=pe.call(de,Be)}catch(Et){gt=[6,Et],ee=0}finally{ie=se=0}if(5&gt[0])throw gt[1];return{value:gt[0]?gt[1]:void 0,done:!0}}([st,mt])}}}function ze(){for(var de=0,pe=0,ie=arguments.length;pe<ie;pe++)de+=arguments[pe].length;var ee=Array(de),se=0;for(pe=0;pe<ie;pe++)for(var le=arguments[pe],Be=0,We=le.length;Be<We;Be++,se++)ee[se]=le[Be];return ee}var Le=function(){function de(){}return de.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},de.setAttributes=function(pe,ie){for(var ee=0,se=ie;ee<se.length;ee++){var le=se[ee],Be=le[0],We=le[1];pe.setAttribute(Be,We)}},de.createRect=function(pe,ie,ee){var se=document.createElementNS("http://www.w3.org/2000/svg","rect");return se.setAttribute("width",pe.toString()),se.setAttribute("height",ie.toString()),ee&&de.setAttributes(se,ee),se},de.createLine=function(pe,ie,ee,se,le){var Be=document.createElementNS("http://www.w3.org/2000/svg","line");return Be.setAttribute("x1",pe.toString()),Be.setAttribute("y1",ie.toString()),Be.setAttribute("x2",ee.toString()),Be.setAttribute("y2",se.toString()),le&&de.setAttributes(Be,le),Be},de.createPolygon=function(pe,ie){var ee=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ee.setAttribute("points",pe),ie&&de.setAttributes(ee,ie),ee},de.createCircle=function(pe,ie){var ee=document.createElementNS("http://www.w3.org/2000/svg","circle");return ee.setAttribute("cx",(pe/2).toString()),ee.setAttribute("cy",(pe/2).toString()),ee.setAttribute("r",pe.toString()),ie&&de.setAttributes(ee,ie),ee},de.createEllipse=function(pe,ie,ee){var se=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return se.setAttribute("cx",(pe/2).toString()),se.setAttribute("cy",(ie/2).toString()),se.setAttribute("rx",(pe/2).toString()),se.setAttribute("ry",(ie/2).toString()),ee&&de.setAttributes(se,ee),se},de.createGroup=function(pe){var ie=document.createElementNS("http://www.w3.org/2000/svg","g");return pe&&de.setAttributes(ie,pe),ie},de.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},de.createMarker=function(pe,ie,ee,se,le,Be,We){var st=document.createElementNS("http://www.w3.org/2000/svg","marker");return de.setAttributes(st,[["id",pe],["orient",ie],["markerWidth",ee.toString()],["markerHeight",se.toString()],["refX",le.toString()],["refY",Be.toString()]]),st.appendChild(We),st},de.createText=function(pe){var ie=document.createElementNS("http://www.w3.org/2000/svg","text");return ie.setAttribute("x","0"),ie.setAttribute("y","0"),pe&&de.setAttributes(ie,pe),ie},de.createTSpan=function(pe,ie){var ee=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ee.textContent=pe,ie&&de.setAttributes(ee,ie),ee},de.createImage=function(pe){var ie=document.createElementNS("http://www.w3.org/2000/svg","image");return pe&&de.setAttributes(ie,pe),ie},de.createPoint=function(pe,ie){var ee=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ee.x=pe,ee.y=ie,ee},de.createPath=function(pe,ie){var ee=document.createElementNS("http://www.w3.org/2000/svg","path");return ee.setAttribute("d",pe),ie&&de.setAttributes(ee,ie),ee},de}(),Ue=function(){function de(){}return de.addKey=function(pe){de.key=pe},Object.defineProperty(de,"isLicensed",{get:function(){return!!de.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(de.key)},enumerable:!1,configurable:!0}),de}(),he=function(){function de(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return de.prototype.rasterize=function(pe,ie,ee){var se=this;return new Promise(function(le){var Be=ee!==void 0?ee:document.createElement("canvas");pe===null&&(se.markersOnly=!0,se.naturalSize=!1);var We=document.createElementNS("http://www.w3.org/2000/svg","svg");We.setAttribute("xmlns","http://www.w3.org/2000/svg"),We.setAttribute("width",ie.width.baseVal.valueAsString),We.setAttribute("height",ie.height.baseVal.valueAsString),We.setAttribute("viewBox","0 0 "+ie.viewBox.baseVal.width.toString()+" "+ie.viewBox.baseVal.height.toString()),We.innerHTML=ie.innerHTML,se.naturalSize===!0?(We.width.baseVal.value=pe.naturalWidth,We.height.baseVal.value=pe.naturalHeight):se.width!==void 0&&se.height!==void 0&&(We.width.baseVal.value=se.width,We.height.baseVal.value=se.height),Be.width=We.width.baseVal.value,Be.height=We.height.baseVal.value;var st=We.outerHTML,mt=Be.getContext("2d");se.markersOnly!==!0&&mt.drawImage(pe,0,0,Be.width,Be.height);var gt=window.URL,Et=new Image(Be.width,Be.height);Et.setAttribute("crossOrigin","anonymous");var Lt=new Blob([st],{type:"image/svg+xml"}),jt=gt.createObjectURL(Lt);Et.onload=function(){mt.drawImage(Et,0,0),gt.revokeObjectURL(jt);var Ct=Be.toDataURL(se.imageType,se.imageQuality);le(Ct)},Et.src=jt})},de}(),xe=function(){},oe=function(){function de(pe){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+pe+"_"}return Object.defineProperty(de.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),de.prototype.addClass=function(pe){return this.styleSheet===void 0&&this.addStyleSheet(),pe.name=""+this.classNamePrefix+pe.localName,this.classes.push(pe),this.styleSheet.sheet.insertRule("."+pe.name+" {"+pe.style+"}",this.styleSheet.sheet.cssRules.length),pe},de.prototype.addRule=function(pe){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(pe),this.styleSheet.sheet.insertRule(pe.selector+" {"+pe.style+"}",this.styleSheet.sheet.cssRules.length)},de.prototype.addStyleSheet=function(){var pe;this.styleSheet=document.createElement("style"),((pe=this.styleSheetRoot)!==null&&pe!==void 0?pe:document.head).appendChild(this.styleSheet),this.addRule(new Oe("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Oe("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Oe("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new ve("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new ve("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},de.prototype.removeStyleSheet=function(){var pe;this.styleSheet&&(((pe=this.styleSheetRoot)!==null&&pe!==void 0?pe:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},de}(),Oe=function(de,pe){this.selector=de,this.style=pe},ve=function(de,pe){this.localName=de,this.style=pe},Me=function(){function de(pe,ie,ee,se,le){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=pe,this.displayMode=ie,this.markerItems=ee,this.uiStyleSettings=se,this.styles=le,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return de.prototype.show=function(pe){var ie=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=pe,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var ee=document.createElement("div");ee.className=this.toolbarBlockStyleClass.name,ee.style.whiteSpace="nowrap",this.uiContainer.appendChild(ee),this.addActionButton(ee,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(ee,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(ee,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(ee,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(ee,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(ee,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(ee,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(ee,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(le){var Be=document.createElement("div");Be.className=""+ie.toolbarButtonStyleClass.name,Be.setAttribute("data-type-name",le.typeName),Be.innerHTML=le.icon,Be.addEventListener("click",function(){ie.markerToolbarButtonClicked(Be,le)}),ie.buttons.push(Be),ie.markerButtons.push(Be)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var se=document.createElement("div");se.className=this.toolbarBlockStyleClass.name,se.style.whiteSpace="nowrap",se.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(se),this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},de.prototype.addButtonClickListener=function(pe){this.buttonClickListeners.push(pe)},de.prototype.removeButtonClickListener=function(pe){this.buttonClickListeners.indexOf(pe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(pe),1)},de.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},de.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var pe=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ie=0;ie<this.markerButtons.length;ie++)ie<pe||ie===pe&&this.markerButtons.length-1===pe?this.markerButtonBlock.appendChild(this.markerButtons[ie]):(ie===pe&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ie]))}},de.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},de.prototype.resetButtonStyles=function(){var pe=this;this.buttons.forEach(function(ie){ie.className=ie.className.replace(pe.uiStyleSettings.toolbarButtonStyleColorsClassName?pe.uiStyleSettings.toolbarButtonStyleColorsClassName:pe.toolbarButtonStyleColorsClass.name,"").trim(),ie.className=ie.className.replace(pe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?pe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:pe.toolbarActiveButtonStyleColorsClass.name,"").trim(),ie.className+=" "+(pe.uiStyleSettings.toolbarButtonStyleColorsClassName?pe.uiStyleSettings.toolbarButtonStyleColorsClassName:pe.toolbarButtonStyleColorsClass.name)})},de.prototype.addActionButton=function(pe,ie,ee){var se=this,le=document.createElement("div");switch(le.className=""+this.toolbarButtonStyleClass.name,le.innerHTML=ie,le.setAttribute("data-action",ee),le.addEventListener("click",function(){se.actionToolbarButtonClicked(le,ee)}),ee){case"select":le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":le.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":le.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":le.style.fill=this.uiStyleSettings.closeButtonColor}pe.appendChild(le),this.buttons.push(le)},de.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ve("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new ve("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ve("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ve("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new ve("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var pe=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ve("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*pe)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*pe)+`px;
padding: `+pe+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ve("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ve("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Oe("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new Oe("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},de.prototype.markerToolbarButtonClicked=function(pe,ie){this.setActiveButton(pe),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ee){return ee("marker",ie)}),this.markerButtonOverflowBlock.style.display="none"},de.prototype.actionToolbarButtonClicked=function(pe,ie){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ee){return ee("action",ie)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},de.prototype.setActiveButton=function(pe){this.resetButtonStyles(),pe.className=pe.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),pe.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},de.prototype.setActiveMarkerButton=function(pe){var ie=this.markerButtons.find(function(ee){return ee.getAttribute("data-type-name")===pe});ie&&this.setActiveButton(ie)},de.prototype.setCurrentMarker=function(pe){var ie=this;this.currentMarker=pe,this.buttons.filter(function(ee){return/delete|notes/.test(ee.getAttribute("data-action"))}).forEach(function(ee){ie.currentMarker===void 0?(ee.style.fillOpacity="0.4",ee.style.pointerEvents="none"):(ee.style.fillOpacity="1",ee.style.pointerEvents="all")})},de}(),Se=function(){function de(pe,ie,ee,se){this.panels=[],this.panelButtons=[],this.markerjsContainer=pe,this.displayMode=ie,this.uiStyleSettings=ee,this.styles=se,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return de.prototype.addStyles=function(){var pe;this.toolboxStyleClass=this.styles.addClass(new ve("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new ve("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var ie=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ve("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ve("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ve("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new ve("toolbox-panel-row_colors",`
background-color: `+((pe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&pe!==void 0?pe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ve("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*ie)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*ie)+`px;
padding: `+ie+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ve("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ve("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new Oe("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Oe("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},de.prototype.show=function(pe){var ie;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=pe,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ie=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ie!==void 0?ie:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},de.prototype.setPanelButtons=function(pe){var ie,ee,se=this;this.panels=pe,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ie=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ie!==void 0?ie:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(le){var Be;le.uiStyleSettings=se.uiStyleSettings;var We=document.createElement("div");We.className=se.toolboxButtonStyleClass.name+" "+((Be=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Be!==void 0?Be:se.toolboxButtonStyleColorsClass.name),We.innerHTML=le.icon,We.title=le.title,We.addEventListener("click",function(){se.panelButtonClick(le)}),se.panelButtons.push(We),se.buttonRow.appendChild(We)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},de.prototype.panelButtonClick=function(pe){var ie=this,ee=-1;if(pe!==this.activePanel){ee=this.panels.indexOf(pe),this.panelRow.innerHTML="";var se=pe.getUi();se.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(se),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=pe}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ie.displayMode==="inline"?ie.panelRow.style.display="none":ie.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(le,Be){var We,st;le.className=ie.toolboxButtonStyleClass.name+" "+(Be===ee?""+((We=ie.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&We!==void 0?We:ie.toolboxActiveButtonStyleColorsClass.name):""+((st=ie.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&st!==void 0?st:ie.toolboxButtonStyleColorsClass.name))})},de}(),Te=function(de,pe){this.title=de,this.icon=pe},we=function(de){function pe(ie,ee,se,le){var Be=de.call(this,ie,le||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return Be.colors=[],Be.addTransparent=!1,Be.colorBoxes=[],Be.colors=ee,Be.currentColor=se,Be.setCurrentColor=Be.setCurrentColor.bind(Be),Be.getColorBox=Be.getColorBox.bind(Be),Be}return dt(pe,de),pe.prototype.getUi=function(){var ie=this,ee=document.createElement("div");return ee.style.overflow="hidden",ee.style.whiteSpace="nowrap",this.colors.forEach(function(se){var le=ie.getColorBox(se);ee.appendChild(le),ie.colorBoxes.push(le)}),ee},pe.prototype.getColorBox=function(ie){var ee=this,se=this.uiStyleSettings.toolbarHeight/4,le=this.uiStyleSettings.toolbarHeight-se,Be=document.createElement("div");Be.style.display="inline-block",Be.style.boxSizing="content-box",Be.style.width=le-2+"px",Be.style.height=le-2+"px",Be.style.padding="1px",Be.style.marginRight="2px",Be.style.marginBottom="2px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.borderRadius=(le+2)/2+"px",Be.style.borderColor=ie===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){ee.setCurrentColor(ie,Be)});var We=document.createElement("div");return We.style.display="inline-block",We.style.width=le-2+"px",We.style.height=le-2+"px",We.style.backgroundColor=ie,We.style.borderRadius=le/2+"px",ie==="transparent"&&(We.style.fill=this.uiStyleSettings.toolboxAccentColor,We.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),Be.appendChild(We),Be},pe.prototype.setCurrentColor=function(ie,ee){var se=this;this.currentColor=ie,this.colorBoxes.forEach(function(le){le.style.borderColor=le===ee?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ie)},pe}(Te),Ce=function(){function de(pe,ie,ee){this._state="new",this._isSelected=!1,this._container=pe,this._overlayContainer=ie,this.globalSettings=ee,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(de.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),de.prototype.ownsTarget=function(pe){return!1},Object.defineProperty(de.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),de.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},de.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},de.prototype.pointerDown=function(pe,ie){},de.prototype.dblClick=function(pe,ie){},de.prototype.manipulate=function(pe){},de.prototype.pointerUp=function(pe){this.stateChanged()},de.prototype.dispose=function(){},de.prototype.addMarkerVisualToContainer=function(pe){this.container.childNodes.length>0?this.container.insertBefore(pe,this.container.childNodes[0]):this.container.appendChild(pe)},de.prototype.getState=function(){return{typeName:de.typeName,state:this.state,notes:this.notes}},de.prototype.restoreState=function(pe){this._state=pe.state,this.notes=pe.notes},de.prototype.scale=function(pe,ie){},de.prototype.colorChanged=function(pe){this.onColorChanged&&this.onColorChanged(pe),this.stateChanged()},de.prototype.fillColorChanged=function(pe){this.onFillColorChanged&&this.onFillColorChanged(pe),this.stateChanged()},de.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var pe=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),pe.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(pe)&&this.onStateChanged(this)}},de.typeName="MarkerBase",de}(),Ee=function(){function de(){this.findGripByVisual=this.findGripByVisual.bind(this)}return de.prototype.findGripByVisual=function(pe){return this.topLeft.ownsTarget(pe)?this.topLeft:this.topCenter.ownsTarget(pe)?this.topCenter:this.topRight.ownsTarget(pe)?this.topRight:this.centerLeft.ownsTarget(pe)?this.centerLeft:this.centerRight.ownsTarget(pe)?this.centerRight:this.bottomLeft.ownsTarget(pe)?this.bottomLeft:this.bottomCenter.ownsTarget(pe)?this.bottomCenter:this.bottomRight.ownsTarget(pe)?this.bottomRight:void 0},de}(),ke=function(){function de(){this.GRIP_SIZE=10,this.visual=Le.createGroup(),this.visual.appendChild(Le.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Le.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return de.prototype.ownsTarget=function(pe){return pe===this.visual||pe===this.visual.childNodes[0]||pe===this.visual.childNodes[1]},de}(),Ke=function(){function de(){}return de.toITransformMatrix=function(pe){return{a:pe.a,b:pe.b,c:pe.c,d:pe.d,e:pe.e,f:pe.f}},de.toSVGMatrix=function(pe,ie){return pe.a=ie.a,pe.b=ie.b,pe.c=ie.c,pe.d=ie.d,pe.e=ie.e,pe.f=ie.f,pe},de}(),Qe=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.left=0,le.top=0,le.width=0,le.height=0,le.defaultSize={x:50,y:20},le.offsetX=0,le.offsetY=0,le.rotationAngle=0,le.CB_DISTANCE=10,le._suppressMarkerCreateEvent=!1,le.container.transform.baseVal.appendItem(Le.createTransform()),le.setupControlBox(),le}return dt(pe,de),Object.defineProperty(pe.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"visual",{get:function(){return this._visual},set:function(ie){this._visual=ie;var ee=Le.createTransform();this._visual.transform.baseVal.appendItem(ee)},enumerable:!1,configurable:!0}),pe.prototype.ownsTarget=function(ie){return!!de.prototype.ownsTarget.call(this,ie)||!!(this.controlGrips.findGripByVisual(ie)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ie))},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.state==="new"&&(this.left=ie.x,this.top=ie.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var se=this.unrotatePoint(ie);if(this.manipulationStartX=se.x,this.manipulationStartY=se.y,this.offsetX=se.x-this.left,this.offsetY=se.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ee),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ee)){this.activeGrip=this.rotatorGrip;var le=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=le.x-this.width/2,this.top=le.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Be=this.container.transform.baseVal.getItem(0);Be.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Be,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},pe.prototype.pointerUp=function(ie){var ee=this.state;de.prototype.pointerUp.call(this,ie),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ie),this._state="select",ee==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},pe.prototype.moveVisual=function(ie){this.visual.style.transform="translate("+ie.x+"px, "+ie.y+"px)"},pe.prototype.manipulate=function(ie){var ee=this.unrotatePoint(ie);this.state==="creating"?this.resize(ie):this.state==="move"?(this.left=this.manipulationStartLeft+(ee.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ee.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ee):this.state==="rotate"&&this.rotate(ie)},pe.prototype.resize=function(ie){var ee=this.manipulationStartLeft,se=this.manipulationStartWidth,le=this.manipulationStartTop,Be=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ee=this.manipulationStartLeft+ie.x-this.manipulationStartX,se=this.manipulationStartWidth+this.manipulationStartLeft-ee;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:se=this.manipulationStartWidth+ie.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:le=this.manipulationStartTop+ie.y-this.manipulationStartY,Be=this.manipulationStartHeight+this.manipulationStartTop-le;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Be=this.manipulationStartHeight+ie.y-this.manipulationStartY}se>=0?(this.left=ee,this.width=se):(this.left=ee+se,this.width=-se),Be>=0?(this.top=le,this.height=Be):(this.top=le+Be,this.height=-Be),this.setSize()},pe.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},pe.prototype.rotate=function(ie){if(Math.abs(ie.x-this.centerX)>.1){var ee=Math.sign(ie.x-this.centerX);this.rotationAngle=180*Math.atan((ie.y-this.centerY)/(ie.x-this.centerX))/Math.PI+90*ee,this.applyRotation()}},pe.prototype.applyRotation=function(){var ie=this.container.transform.baseVal.getItem(0);ie.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ie,0)},pe.prototype.rotatePoint=function(ie){if(this.rotationAngle===0)return ie;var ee=this.container.getCTM(),se=Le.createPoint(ie.x,ie.y);return{x:(se=se.matrixTransform(ee)).x,y:se.y}},pe.prototype.unrotatePoint=function(ie){if(this.rotationAngle===0)return ie;var ee=this.container.getCTM();ee=ee.inverse();var se=Le.createPoint(ie.x,ie.y);return{x:(se=se.matrixTransform(ee)).x,y:se.y}},pe.prototype.select=function(){de.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},pe.prototype.deselect=function(){de.prototype.deselect.call(this),this.controlBox.style.display="none"},pe.prototype.setupControlBox=function(){this.controlBox=Le.createGroup();var ie=Le.createTransform();ie.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ie),this.container.appendChild(this.controlBox),this.controlRect=Le.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=Le.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Ee,this.addControlGrips(),this.controlBox.style.display="none"},pe.prototype.adjustControlBox=function(){var ie=this.controlBox.transform.baseVal.getItem(0);ie.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ie,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},pe.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},pe.prototype.createGrip=function(){var ie=new ke;return ie.visual.transform.baseVal.appendItem(Le.createTransform()),this.controlBox.appendChild(ie.visual),ie},pe.prototype.positionGrips=function(){var ie=this.controlGrips.topLeft.GRIP_SIZE,ee=-ie/2,se=ee,le=(this.width+this.CB_DISTANCE)/2-ie/2,Be=(this.height+this.CB_DISTANCE)/2-ie/2,We=this.height+this.CB_DISTANCE-ie/2,st=this.width+this.CB_DISTANCE-ie/2;this.positionGrip(this.controlGrips.topLeft.visual,ee,se),this.positionGrip(this.controlGrips.topCenter.visual,le,se),this.positionGrip(this.controlGrips.topRight.visual,st,se),this.positionGrip(this.controlGrips.centerLeft.visual,ee,Be),this.positionGrip(this.controlGrips.centerRight.visual,st,Be),this.positionGrip(this.controlGrips.bottomLeft.visual,ee,We),this.positionGrip(this.controlGrips.bottomCenter.visual,le,We),this.positionGrip(this.controlGrips.bottomRight.visual,st,We),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,le,se-3*this.CB_DISTANCE)},pe.prototype.positionGrip=function(ie,ee,se){var le=ie.transform.baseVal.getItem(0);le.setTranslate(ee,se),ie.transform.baseVal.replaceItem(le,0)},pe.prototype.hideControlBox=function(){this.controlBox.style.display="none"},pe.prototype.showControlBox=function(){this.controlBox.style.display=""},pe.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Ke.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ke.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},de.prototype.getState.call(this))},pe.prototype.restoreState=function(ie){de.prototype.restoreState.call(this,ie);var ee=ie;this.left=ee.left,this.top=ee.top,this.width=ee.width,this.height=ee.height,this.rotationAngle=ee.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Ke.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ee.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ke.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ee.containerTransformMatrix))},pe.prototype.scale=function(ie,ee){de.prototype.scale.call(this,ie,ee);var se=this.rotatePoint({x:this.left,y:this.top}),le=this.unrotatePoint({x:se.x*ie,y:se.y*ee});this.left=le.x,this.top=le.y,this.width=this.width*ie,this.height=this.height*ee,this.adjustControlBox()},pe}(Ce),je=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le}return dt(pe,de),pe.prototype.ownsTarget=function(ie){return!(!de.prototype.ownsTarget.call(this,ie)&&ie!==this.visual)},pe.prototype.createVisual=function(){this.visual=Le.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.state==="new"&&(this.createVisual(),this.moveVisual(ie),this._state="creating")},pe.prototype.manipulate=function(ie){de.prototype.manipulate.call(this,ie)},pe.prototype.resize=function(ie){de.prototype.resize.call(this,ie),this.setSize()},pe.prototype.setSize=function(){de.prototype.setSize.call(this),Le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},pe.prototype.pointerUp=function(ie){de.prototype.pointerUp.call(this,ie),this.setSize()},pe.prototype.setStrokeColor=function(ie){this.strokeColor=ie,this.visual&&Le.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ie),this.stateChanged()},pe.prototype.setFillColor=function(ie){this.fillColor=ie,this.visual&&Le.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},pe.prototype.setStrokeWidth=function(ie){this.strokeWidth=ie,this.visual&&Le.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},pe.prototype.setStrokeDasharray=function(ie){this.strokeDasharray=ie,this.visual&&Le.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},pe.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},de.prototype.getState.call(this))},pe.prototype.restoreState=function(ie){var ee=ie;this.fillColor=ee.fillColor,this.strokeColor=ee.strokeColor,this.strokeWidth=ee.strokeWidth,this.strokeDasharray=ee.strokeDasharray,this.opacity=ee.opacity,this.createVisual(),de.prototype.restoreState.call(this,ie),this.setSize()},pe.prototype.scale=function(ie,ee){de.prototype.scale.call(this,ie,ee),this.setSize()},pe.title="Rectangle marker",pe}(Qe),qe=function(de){function pe(ie,ee,se,le){var Be=de.call(this,ie,le||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Be.widths=[],Be.widthBoxes=[],Be.widths=ee,Be.currentWidth=se,Be.setCurrentWidth=Be.setCurrentWidth.bind(Be),Be}return dt(pe,de),pe.prototype.getUi=function(){var ie=this,ee=document.createElement("div");return ee.style.display="flex",ee.style.overflow="hidden",ee.style.flexGrow="2",this.widths.forEach(function(se){var le=document.createElement("div");le.style.display="flex",le.style.flexGrow="2",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=se===ie.currentWidth?ie.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ie.setCurrentWidth(se,le)}),ee.appendChild(le);var Be=document.createElement("div");Be.innerText=se.toString(),Be.style.marginRight="5px",le.appendChild(Be);var We=document.createElement("div");We.style.minHeight="20px",We.style.flexGrow="2",We.style.display="flex",We.style.alignItems="center";var st=document.createElement("hr");st.style.minWidth="20px",st.style.border="0px",st.style.borderTop=se+"px solid "+ie.uiStyleSettings.toolboxColor,st.style.flexGrow="2",We.appendChild(st),le.appendChild(We),ie.widthBoxes.push(le)}),ee},pe.prototype.setCurrentWidth=function(ie,ee){var se=this;this.currentWidth=ie,this.widthBoxes.forEach(function(le){le.style.borderColor=le===ee?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},pe}(Te),Ve=function(de){function pe(ie,ee,se,le){var Be=de.call(this,ie,le||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return Be.styles=[],Be.styleBoxes=[],Be.styles=ee,Be.currentStyle=se,Be.setCurrentStyle=Be.setCurrentStyle.bind(Be),Be}return dt(pe,de),pe.prototype.getUi=function(){var ie=this,ee=document.createElement("div");return ee.style.display="flex",ee.style.overflow="hidden",ee.style.flexGrow="2",this.styles.forEach(function(se){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ie.styles.length-5+"%",le.style.borderColor=se===ie.currentStyle?ie.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ie.setCurrentStyle(se,le)}),ee.appendChild(le);var Be=document.createElement("div");Be.style.minHeight="20px",Be.style.flexGrow="2",Be.style.overflow="hidden";var We=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ie.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(se!==""?'stroke-dasharray="'+se+'"':"")+` />
</svg>`;Be.innerHTML=We,le.appendChild(Be),ie.styleBoxes.push(le)}),ee},pe.prototype.setCurrentStyle=function(ie,ee){var se=this;this.currentStyle=ie,this.styleBoxes.forEach(function(le){le.style.borderColor=le===ee?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},pe}(Te),ct=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.strokeColor=se.defaultColor,le.strokeWidth=se.defaultStrokeWidth,le.strokeDasharray=se.defaultStrokeDasharray,le.strokePanel=new we("Line color",se.defaultColorSet,se.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new qe("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ve("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return dt(pe,de),Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=de.prototype.getState.call(this);return ie.typeName=pe.typeName,ie},pe.typeName="FrameMarker",pe.title="Frame marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',pe}(je),ot=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},pt=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.x1=0,le.y1=0,le.x2=0,le.y2=0,le.defaultLength=50,le.manipulationStartX=0,le.manipulationStartY=0,le.manipulationStartX1=0,le.manipulationStartY1=0,le.manipulationStartX2=0,le.manipulationStartY2=0,le.setupControlBox(),le}return dt(pe,de),pe.prototype.ownsTarget=function(ie){return!!de.prototype.ownsTarget.call(this,ie)||!(!this.grip1.ownsTarget(ie)&&!this.grip2.ownsTarget(ie))},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.manipulationStartX=ie.x,this.manipulationStartY=ie.y,this.state==="new"&&(this.x1=ie.x,this.y1=ie.y,this.x2=ie.x,this.y2=ie.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(ee)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ee)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},pe.prototype.pointerUp=function(ie){var ee=this.state;de.prototype.pointerUp.call(this,ie),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(ie),this._state="select",ee==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},pe.prototype.adjustVisual=function(){},pe.prototype.manipulate=function(ie){this.state==="creating"?this.resize(ie):this.state==="move"?(this.x1=this.manipulationStartX1+ie.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ie.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ie.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ie.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ie)},pe.prototype.resize=function(ie){switch(this.activeGrip){case this.grip1:this.x1=ie.x,this.y1=ie.y;break;case this.grip2:case void 0:this.x2=ie.x,this.y2=ie.y}this.adjustVisual(),this.adjustControlBox()},pe.prototype.select=function(){de.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},pe.prototype.deselect=function(){de.prototype.deselect.call(this),this.controlBox.style.display="none"},pe.prototype.setupControlBox=function(){this.controlBox=Le.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},pe.prototype.adjustControlBox=function(){this.positionGrips()},pe.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},pe.prototype.createGrip=function(){var ie=new ke;return ie.visual.transform.baseVal.appendItem(Le.createTransform()),this.controlBox.appendChild(ie.visual),ie},pe.prototype.positionGrips=function(){var ie=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ie/2,this.y1-ie/2),this.positionGrip(this.grip2.visual,this.x2-ie/2,this.y2-ie/2)},pe.prototype.positionGrip=function(ie,ee,se){var le=ie.transform.baseVal.getItem(0);le.setTranslate(ee,se),ie.transform.baseVal.replaceItem(le,0)},pe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},de.prototype.getState.call(this))},pe.prototype.restoreState=function(ie){de.prototype.restoreState.call(this,ie);var ee=ie;this.x1=ee.x1,this.y1=ee.y1,this.x2=ee.x2,this.y2=ee.y2},pe.prototype.scale=function(ie,ee){de.prototype.scale.call(this,ie,ee),this.x1=this.x1*ie,this.y1=this.y1*ee,this.x2=this.x2*ie,this.y2=this.y2*ee,this.adjustVisual(),this.adjustControlBox()},pe}(Ce),bt=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.strokeColor=se.defaultColor,le.strokeWidth=se.defaultStrokeWidth,le.strokeDasharray=se.defaultStrokeDasharray,le.strokePanel=new we("Line color",se.defaultColorSet,se.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new qe("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ve("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return dt(pe,de),pe.prototype.ownsTarget=function(ie){return!(!de.prototype.ownsTarget.call(this,ie)&&ie!==this.visual&&ie!==this.selectorLine&&ie!==this.visibleLine)},pe.prototype.createVisual=function(){this.visual=Le.createGroup(),this.selectorLine=Le.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Le.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},pe.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Le.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Le.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Le.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},pe.prototype.setStrokeColor=function(ie){this.strokeColor=ie,this.adjustVisual(),this.colorChanged(ie)},pe.prototype.setStrokeWidth=function(ie){this.strokeWidth=ie,this.adjustVisual()},pe.prototype.setStrokeDasharray=function(ie){this.strokeDasharray=ie,this.adjustVisual(),this.stateChanged()},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},de.prototype.getState.call(this));return ie.typeName=pe.typeName,ie},pe.prototype.restoreState=function(ie){de.prototype.restoreState.call(this,ie);var ee=ie;this.strokeColor=ee.strokeColor,this.strokeWidth=ee.strokeWidth,this.strokeDasharray=ee.strokeDasharray,this.createVisual(),this.adjustVisual()},pe.typeName="LineMarker",pe.title="Line marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',pe}(pt),He=function(de){function pe(ie,ee,se,le){var Be=de.call(this,ie,le||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return Be.fonts=[],Be.fontBoxes=[],Be.fonts=ee,Be.currentFont=se,Be.setCurrentFont=Be.setCurrentFont.bind(Be),Be}return dt(pe,de),pe.prototype.getUi=function(){var ie=this,ee=document.createElement("div");return ee.style.overflow="hidden",ee.style.flexGrow="2",this.fonts.forEach(function(se){var le=document.createElement("div");le.style.display="inline-block",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ie.fonts.length-5+"%",le.style.borderColor=se===ie.currentFont?ie.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ie.setCurrentFont(se,le)}),ee.appendChild(le);var Be=document.createElement("div");Be.style.display="flex",Be.style.minHeight="20px",Be.style.flexGrow="2",Be.style.fontFamily=se,Be.style.overflow="hidden";var We=document.createElement("div");We.style.whiteSpace="nowrap",We.style.overflow="hidden",We.style.textOverflow="ellipsis",We.innerHTML="The quick brown fox jumps over the lazy dog",Be.appendChild(We),le.appendChild(Be),ie.fontBoxes.push(le)}),ee},pe.prototype.setCurrentFont=function(ie,ee){var se=this;this.currentFont=ie,this.fontBoxes.forEach(function(le){le.style.borderColor=le===ee?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},pe}(Te),ht=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.color="transparent",le.padding=5,le.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",le.text=le.DEFAULT_TEXT,le.isMoved=!1,le.color=se.defaultColor,le.fontFamily=se.defaultFontFamily,le.defaultSize={x:100,y:30},le.setColor=le.setColor.bind(le),le.setFont=le.setFont.bind(le),le.renderText=le.renderText.bind(le),le.sizeText=le.sizeText.bind(le),le.textEditDivClicked=le.textEditDivClicked.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.setSize=le.setSize.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.colorPanel=new we("Color",se.defaultColorSet,se.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.fontFamilyPanel=new He("Font",se.defaultFontFamilies,se.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le}return dt(pe,de),pe.prototype.ownsTarget=function(ie){if(de.prototype.ownsTarget.call(this,ie)||ie===this.visual||ie===this.textElement||ie===this.bgRectangle)return!0;var ee=!1;return this.textElement.childNodes.forEach(function(se){se===ie&&(ee=!0)}),ee},pe.prototype.createVisual=function(){this.visual=Le.createGroup(),this.bgRectangle=Le.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Le.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Le.createTransform()),this.textElement.transform.baseVal.appendItem(Le.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.isMoved=!1,this.pointerDownPoint=ie,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ie),this._state="creating")},pe.prototype.renderText=function(){var ie=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(ee){ie.textElement.appendChild(Le.createTSpan(ee.trim()===""?" ":ee.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},pe.prototype.getTextScale=function(){var ie=this.textElement.getBBox(),ee=1;if(ie.width>0&&ie.height>0){var se=(1*this.width-this.width*this.padding*2/100)/ie.width,le=(1*this.height-this.height*this.padding*2/100)/ie.height;ee=Math.min(se,le)}return ee},pe.prototype.getTextPosition=function(ie){var ee=this.textElement.getBBox(),se=0,le=0;return ee.width>0&&ee.height>0&&(se=(this.width-ee.width*ie)/2,le=this.height/2-ee.height*ie/2),{x:se,y:le}},pe.prototype.sizeText=function(){var ie=this.textElement.getBBox(),ee=this.getTextScale(),se=this.getTextPosition(ee);se.y-=ie.y*ee,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+se.x+"px, "+se.y+"px) scale("+ee+", "+ee+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(se.x,se.y),this.textElement.transform.baseVal.getItem(1).setScale(ee,ee))},pe.prototype.manipulate=function(ie){de.prototype.manipulate.call(this,ie),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ie.x-this.pointerDownPoint.x)>5||Math.abs(ie.y-this.pointerDownPoint.y)>5)},pe.prototype.resize=function(ie){de.prototype.resize.call(this,ie),this.isMoved=!0,this.setSize(),this.sizeText()},pe.prototype.setSize=function(){de.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Le.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},pe.prototype.pointerUp=function(ie){var ee=this.state;ee==="creating"&&(this._suppressMarkerCreateEvent=!0),de.prototype.pointerUp.call(this,ie),this.setSize(),(ee==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},pe.prototype.showTextEditor=function(){var ie=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(ee){ee.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ee=Number.parseFloat(ie.textEditor.style.fontSize);ie.textEditor.clientWidth>=Number.parseInt(ie.textEditor.style.maxWidth)&&ee>.9;)ee-=.1,ie.textEditor.style.fontSize=Math.max(ee,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ee){ee.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ee){if(ee.clipboardData){var se=ee.clipboardData.getData("text"),le=window.getSelection();if(!le.rangeCount)return!1;le.deleteFromDocument(),le.getRangeAt(0).insertNode(document.createTextNode(se)),ee.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ie.textEditDivClicked(ie.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},pe.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ie=this.getTextScale(),ee=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),se=this.textElement.getBBox(),le={x:se.width*ie,y:se.height*ie};ee.x-=le.x/2,ee.y-=le.y/2,this.textEditor.style.top=ee.y+"px",this.textEditor.style.left=ee.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ee.x+"px",this.textEditor.style.fontSize=Math.max(16*ie,12)+"px",this.textElement.style.display="none"}},pe.prototype.textEditDivClicked=function(ie){this.text=ie.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},pe.prototype.select=function(){de.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},pe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),de.prototype.deselect.call(this)},pe.prototype.dblClick=function(ie,ee){de.prototype.dblClick.call(this,ie,ee),this.showTextEditor()},pe.prototype.setColor=function(ie){this.textElement&&Le.setAttributes(this.textElement,[["fill",ie]]),this.color=ie,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ie)},pe.prototype.setFont=function(ie){this.textElement&&Le.setAttributes(this.textElement,[["font-family",ie]]),this.fontFamily=ie,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},pe.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},pe.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},de.prototype.getState.call(this));return ie.typeName=pe.typeName,ie},pe.prototype.restoreState=function(ie){var ee=ie;this.color=ee.color,this.fontFamily=ee.fontFamily,this.padding=ee.padding,this.text=ee.text,this.createVisual(),de.prototype.restoreState.call(this,ie),this.setSize()},pe.prototype.scale=function(ie,ee){de.prototype.scale.call(this,ie,ee),this.setSize(),this.sizeText(),this.positionTextEditor()},pe.typeName="TextMarker",pe.title="Text marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',pe}(Qe),_e=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.color="transparent",le.lineWidth=3,le.drawing=!1,le.pixelRatio=1,le.color=se.defaultColor,le.lineWidth=se.defaultStrokeWidth,le.pixelRatio=se.freehandPixelRatio,le.setColor=le.setColor.bind(le),le.addCanvas=le.addCanvas.bind(le),le.finishCreation=le.finishCreation.bind(le),le.setLineWidth=le.setLineWidth.bind(le),le.colorPanel=new we("Color",se.defaultColorSet,se.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.lineWidthPanel=new qe("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),le.lineWidthPanel.onWidthChanged=le.setLineWidth,le}return dt(pe,de),pe.prototype.ownsTarget=function(ie){return!(!de.prototype.ownsTarget.call(this,ie)&&ie!==this.visual&&ie!==this.drawingImage)},pe.prototype.createVisual=function(){this.visual=Le.createGroup(),this.drawingImage=Le.createImage(),this.visual.appendChild(this.drawingImage);var ie=Le.createTransform();this.visual.transform.baseVal.appendItem(ie),this.addMarkerVisualToContainer(this.visual)},pe.prototype.pointerDown=function(ie,ee){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(ie.x,ie.y),this.drawing=!0):de.prototype.pointerDown.call(this,ie,ee)},pe.prototype.manipulate=function(ie){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ie.x,ie.y),this.canvasContext.stroke()):de.prototype.manipulate.call(this,ie)},pe.prototype.resize=function(ie){de.prototype.resize.call(this,ie),Le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Le.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},pe.prototype.pointerUp=function(ie){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):de.prototype.pointerUp.call(this,ie)},pe.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},pe.prototype.select=function(){this.state==="creating"&&this.finishCreation(),de.prototype.select.call(this)},pe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),de.prototype.deselect.call(this)},pe.prototype.finishCreation=function(){for(var ie=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ee=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],se=ee[0],le=ee[1],Be=ee[2],We=ee[3],st=!1,mt=0;mt<this.canvasElement.height;mt++)for(var gt=0;gt<this.canvasElement.width;gt++)ie.data[mt*this.canvasElement.width*4+4*gt+3]>0&&(st=!0,mt<le&&(le=mt),gt<se&&(se=gt),mt>We&&(We=mt),gt>Be&&(Be=gt));if(st){this.left=se/this.pixelRatio,this.top=le/this.pixelRatio,this.width=(Be-se)/this.pixelRatio,this.height=(We-le)/this.pixelRatio;var Et=document.createElement("canvas");Et.width=Be-se,Et.height=We-le,Et.getContext("2d").putImageData(this.canvasContext.getImageData(se,le,Be-se,We-le),0,0),this.drawingImgUrl=Et.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},pe.prototype.setDrawingImage=function(){Le.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Le.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},pe.prototype.setColor=function(ie){this.color=ie,this.colorChanged(ie)},pe.prototype.setLineWidth=function(ie){this.lineWidth=ie},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=Object.assign({drawingImgUrl:this.drawingImgUrl},de.prototype.getState.call(this));return ie.typeName=pe.typeName,ie},pe.prototype.restoreState=function(ie){this.createVisual(),de.prototype.restoreState.call(this,ie),this.drawingImgUrl=ie.drawingImgUrl,this.setDrawingImage()},pe.prototype.scale=function(ie,ee){de.prototype.scale.call(this,ie,ee),this.setDrawingImage()},pe.typeName="FreehandMarker",pe.title="Freehand marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',pe}(Qe),Re=function(de){function pe(ie,ee,se){var le=de.call(this,ie,se||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return le.typeBoxes=[],le.currentType=ee,le.setCurrentType=le.setCurrentType.bind(le),le}return dt(pe,de),pe.prototype.getUi=function(){var ie=this,ee=document.createElement("div");ee.style.display="flex",ee.style.overflow="hidden",ee.style.flexGrow="2";for(var se=function(We){var st="both";switch(We){case 0:st="both";break;case 1:st="start";break;case 2:st="end";break;case 3:st="none"}var mt=document.createElement("div");if(mt.style.display="flex",mt.style.flexGrow="2",mt.style.alignItems="center",mt.style.justifyContent="space-between",mt.style.padding="5px",mt.style.borderWidth="2px",mt.style.borderStyle="solid",mt.style.borderColor=st===le.currentType?le.uiStyleSettings.toolboxAccentColor:"transparent",mt.addEventListener("click",function(){ie.setCurrentType(st,mt)}),ee.appendChild(mt),st==="both"||st==="start"){var gt=document.createElement("div");gt.style.display="flex",gt.style.alignItems="center",gt.style.minHeight="20px",gt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,gt.style.marginLeft="5px",mt.appendChild(gt)}var Et=document.createElement("div");Et.style.display="flex",Et.style.alignItems="center",Et.style.minHeight="20px",Et.style.flexGrow="2";var Lt=document.createElement("hr");if(Lt.style.minWidth="20px",Lt.style.border="0px",Lt.style.borderTop="3px solid "+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee"),Lt.style.flexGrow="2",Et.appendChild(Lt),mt.appendChild(Et),st==="both"||st==="end"){var jt=document.createElement("div");jt.style.display="flex",jt.style.alignItems="center",jt.style.minHeight="20px",jt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,jt.style.marginRight="5px",mt.appendChild(jt)}le.typeBoxes.push(mt)},le=this,Be=0;Be<4;Be++)se(Be);return ee},pe.prototype.setCurrentType=function(ie,ee){var se=this;this.currentType=ie,this.typeBoxes.forEach(function(le){le.style.borderColor=le===ee?se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},pe}(Te),Nt=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.arrowType="end",le.arrowBaseHeight=10,le.arrowBaseWidth=10,le.getArrowPoints=le.getArrowPoints.bind(le),le.setArrowType=le.setArrowType.bind(le),le.arrowTypePanel=new Re("Arrow type","end"),le.arrowTypePanel.onArrowTypeChanged=le.setArrowType,le}return dt(pe,de),pe.prototype.ownsTarget=function(ie){return!(!de.prototype.ownsTarget.call(this,ie)&&ie!==this.arrow1&&ie!==this.arrow2)},pe.prototype.getArrowPoints=function(ie,ee){var se=this.arrowBaseWidth+2*this.strokeWidth,le=this.arrowBaseHeight+2*this.strokeWidth;return ie-se/2+","+(ee+le/2)+" "+ie+","+(ee-le/2)+" "+(ie+se/2)+","+(ee+le/2)},pe.prototype.createTips=function(){this.arrow1=Le.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Le.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Le.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Le.createTransform()),this.visual.appendChild(this.arrow2)},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.state==="creating"&&this.createTips()},pe.prototype.adjustVisual=function(){if(de.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Le.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Le.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ie=0;Math.abs(this.x1-this.x2)>.1&&(ie=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var ee=this.arrow1.transform.baseVal.getItem(0);ee.setRotate(ie,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ee,0);var se=this.arrow2.transform.baseVal.getItem(0);se.setRotate(ie+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(se,0)}},pe.prototype.setArrowType=function(ie){this.arrowType=ie,this.adjustVisual(),this.stateChanged()},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=Object.assign({arrowType:this.arrowType},de.prototype.getState.call(this));return ie.typeName=pe.typeName,ie},pe.prototype.restoreState=function(ie){de.prototype.restoreState.call(this,ie);var ee=ie;this.arrowType=ee.arrowType,this.createTips(),this.adjustVisual()},pe.typeName="ArrowMarker",pe.title="Arrow marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',pe}(bt),it=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.fillColor=se.defaultFillColor,le.strokeWidth=0,le.fillPanel=new we("Color",se.defaultColorSet,se.defaultFillColor),le.fillPanel.onColorChanged=le.setFillColor,le}return dt(pe,de),Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=de.prototype.getState.call(this);return ie.typeName=pe.typeName,ie},pe.typeName="CoverMarker",pe.title="Cover marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',pe}(je),at=function(de){function pe(ie,ee,se,le){var Be=de.call(this,ie,le||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return Be.opacities=[],Be.opacityBoxes=[],Be.opacities=ee,Be.currentOpacity=se,Be.setCurrentOpacity=Be.setCurrentOpacity.bind(Be),Be}return dt(pe,de),pe.prototype.getUi=function(){var ie=this,ee=document.createElement("div");return ee.style.display="flex",ee.style.overflow="hidden",ee.style.flexGrow="2",ee.style.justifyContent="space-between",this.opacities.forEach(function(se){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="center",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=se===ie.currentOpacity?ie.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ie.setCurrentOpacity(se,le)}),ee.appendChild(le);var Be=document.createElement("div");Be.innerText=100*se+"%",le.appendChild(Be),ie.opacityBoxes.push(le)}),ee},pe.prototype.setCurrentOpacity=function(ie,ee){var se=this;this.currentOpacity=ie,this.opacityBoxes.forEach(function(le){le.style.borderColor=le===ee?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},pe}(Te),Bt=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.setOpacity=le.setOpacity.bind(le),le.fillColor=se.defaultHighlightColor,le.strokeWidth=0,le.opacity=se.defaultHighlightOpacity,le.fillPanel=new we("Color",se.defaultColorSet,le.fillColor),le.fillPanel.onColorChanged=le.setFillColor,le.opacityPanel=new at("Opacity",se.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return dt(pe,de),pe.prototype.setOpacity=function(ie){this.opacity=ie,this.visual&&Le.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=de.prototype.getState.call(this);return ie.typeName=pe.typeName,ie},pe.typeName="HighlightMarker",pe.title="Highlight marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',pe}(it),Ze='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',De='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',ut=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.bgColor="transparent",le.tipPosition={x:0,y:0},le.tipBase1Position={x:0,y:0},le.tipBase2Position={x:0,y:0},le.tipMoving=!1,le.color=se.defaultStrokeColor,le.bgColor=se.defaultFillColor,le.fontFamily=se.defaultFontFamily,le.defaultSize={x:100,y:30},le.setBgColor=le.setBgColor.bind(le),le.getTipPoints=le.getTipPoints.bind(le),le.positionTip=le.positionTip.bind(le),le.setTipPoints=le.setTipPoints.bind(le),le.colorPanel=new we("Text color",se.defaultColorSet,le.color,Ze),le.colorPanel.onColorChanged=le.setColor,le.bgColorPanel=new we("Fill color",se.defaultColorSet,le.bgColor,De),le.bgColorPanel.onColorChanged=le.setBgColor,le.fontFamilyPanel=new He("Font",se.defaultFontFamilies,se.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.tipGrip=new ke,le.tipGrip.visual.transform.baseVal.appendItem(Le.createTransform()),le.controlBox.appendChild(le.tipGrip.visual),le}return dt(pe,de),pe.prototype.ownsTarget=function(ie){return de.prototype.ownsTarget.call(this,ie)||this.tipGrip.ownsTarget(ie)||this.tip===ie},pe.prototype.createTip=function(){Le.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Le.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},pe.prototype.pointerDown=function(ie,ee){this.state==="new"&&de.prototype.pointerDown.call(this,ie,ee),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ee)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):de.prototype.pointerDown.call(this,ie,ee)},pe.prototype.pointerUp=function(ie){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,de.prototype.pointerUp.call(this,ie);else{var ee=this.state==="creating";de.prototype.pointerUp.call(this,ie),this.setTipPoints(ee),this.positionTip()}},pe.prototype.manipulate=function(ie){if(this.tipMoving){var ee=this.unrotatePoint(ie);this.tipPosition={x:ee.x-this.manipulationStartLeft,y:ee.y-this.manipulationStartTop},this.positionTip()}else de.prototype.manipulate.call(this,ie)},pe.prototype.setBgColor=function(ie){this.bgRectangle&&this.tip&&(Le.setAttributes(this.bgRectangle,[["fill",ie]]),Le.setAttributes(this.tip,[["fill",ie]])),this.bgColor=ie,this.fillColorChanged(ie)},pe.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},pe.prototype.setTipPoints=function(ie){ie===void 0&&(ie=!1);var ee=Math.min(this.height/2,15),se=this.height/5;ie&&(this.tipPosition={x:ee+se/2,y:this.height+20});var le=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?le<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(se=this.width/5,ee=Math.min(this.width/2,15),this.tipBase1Position={x:ee,y:0},this.tipBase2Position={x:ee+se,y:0}):(this.tipBase1Position={x:0,y:ee},this.tipBase2Position={x:0,y:ee+se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?le<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(se=this.width/5,ee=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ee-se,y:0},this.tipBase2Position={x:this.width-ee,y:0}):(this.tipBase1Position={x:this.width,y:ee},this.tipBase2Position={x:this.width,y:ee+se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?le<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(se=this.width/5,ee=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ee-se,y:this.height},this.tipBase2Position={x:this.width-ee,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ee-se},this.tipBase2Position={x:this.width,y:this.height-ee}):le<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(se=this.width/5,ee=Math.min(this.width/2,15),this.tipBase1Position={x:ee,y:this.height},this.tipBase2Position={x:ee+se,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ee},this.tipBase2Position={x:0,y:this.height-ee-se})},pe.prototype.resize=function(ie){de.prototype.resize.call(this,ie),this.positionTip()},pe.prototype.positionTip=function(){Le.setAttributes(this.tip,[["points",this.getTipPoints()]]);var ie=this.tipGrip.visual.transform.baseVal.getItem(0);ie.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(ie,0)},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),pe.prototype.select=function(){this.positionTip(),de.prototype.select.call(this)},pe.prototype.getState=function(){var ie=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},de.prototype.getState.call(this));return ie.typeName=pe.typeName,ie},pe.prototype.restoreState=function(ie){var ee=ie;this.bgColor=ee.bgColor,this.tipPosition=ee.tipPosition,de.prototype.restoreState.call(this,ie),this.createTip(),this.setTipPoints()},pe.prototype.scale=function(ie,ee){de.prototype.scale.call(this,ie,ee),this.tipPosition={x:this.tipPosition.x*ie,y:this.tipPosition.y*ee},this.positionTip()},pe.typeName="CalloutMarker",pe.title="Callout marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',pe}(ht),$t=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.strokeColor=se.defaultColor,le.strokeWidth=se.defaultStrokeWidth,le.strokeDasharray=se.defaultStrokeDasharray,le.fillColor=se.defaultFillColor,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.setOpacity=le.setOpacity.bind(le),le.createVisual=le.createVisual.bind(le),le.strokePanel=new we("Line color",ze(se.defaultColorSet,["transparent"]),se.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new we("Fill color",ze(se.defaultColorSet,["transparent"]),le.fillColor,De),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new qe("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ve("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.opacityPanel=new at("Opacity",se.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return dt(pe,de),pe.prototype.ownsTarget=function(ie){return!(!de.prototype.ownsTarget.call(this,ie)&&ie!==this.visual)},pe.prototype.createVisual=function(){this.visual=Le.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.state==="new"&&(this.createVisual(),this.moveVisual(ie),this._state="creating")},pe.prototype.manipulate=function(ie){de.prototype.manipulate.call(this,ie)},pe.prototype.resize=function(ie){de.prototype.resize.call(this,ie),this.setSize()},pe.prototype.setSize=function(){de.prototype.setSize.call(this),Le.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},pe.prototype.pointerUp=function(ie){de.prototype.pointerUp.call(this,ie),this.setSize()},pe.prototype.setStrokeColor=function(ie){this.strokeColor=ie,this.visual&&Le.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ie),this.stateChanged()},pe.prototype.setFillColor=function(ie){this.fillColor=ie,this.visual&&Le.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ie),this.stateChanged()},pe.prototype.setStrokeWidth=function(ie){this.strokeWidth=ie,this.visual&&Le.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},pe.prototype.setStrokeDasharray=function(ie){this.strokeDasharray=ie,this.visual&&Le.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},pe.prototype.setOpacity=function(ie){this.opacity=ie,this.visual&&Le.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},de.prototype.getState.call(this));return ie.typeName=pe.typeName,ie},pe.prototype.restoreState=function(ie){var ee=ie;this.fillColor=ee.fillColor,this.strokeColor=ee.strokeColor,this.strokeWidth=ee.strokeWidth,this.strokeDasharray=ee.strokeDasharray,this.opacity=ee.opacity,this.createVisual(),de.prototype.restoreState.call(this,ie),this.setSize()},pe.prototype.scale=function(ie,ee){de.prototype.scale.call(this,ie,ee),this.setSize()},pe.typeName="EllipseMarker",pe.title="Ellipse marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',pe}(Qe),zt=function(de){function pe(ie,ee,se){return de.call(this,ie,ee,se)||this}return dt(pe,de),Object.defineProperty(pe.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),pe.prototype.ownsTarget=function(ie){return!(!de.prototype.ownsTarget.call(this,ie)&&ie!==this.tip1&&ie!==this.tip2)},pe.prototype.createTips=function(){this.tip1=Le.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(Le.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Le.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(Le.createTransform()),this.visual.appendChild(this.tip2)},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.state==="creating"&&this.createTips()},pe.prototype.adjustVisual=function(){if(de.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Le.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Le.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var ie=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ee=this.tip1.transform.baseVal.getItem(0);ee.setRotate(ie,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ee,0);var se=this.tip2.transform.baseVal.getItem(0);se.setRotate(ie+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(se,0)}},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=de.prototype.getState.call(this);return ie.typeName=pe.typeName,ie},pe.prototype.restoreState=function(ie){de.prototype.restoreState.call(this,ie),this.createTips(),this.adjustVisual()},pe.typeName="MeasurementMarker",pe.title="Measurement marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',pe}(bt),tt=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.strokePanel.colors=se.defaultColorSet,le.fillColor="transparent",le}return dt(pe,de),Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=de.prototype.getState.call(this);return ie.typeName=pe.typeName,ie},pe.typeName="EllipseFrameMarker",pe.title="Ellipse frame marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',pe}($t),Ot=function(){function de(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(de.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),de.prototype.addUndoStep=function(pe){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(pe)||(this.undoStack.push(pe),JSON.stringify(this.lastRedoStep)!==JSON.stringify(pe)&&this.redoStack.splice(0,this.redoStack.length))},de.prototype.replaceLastUndoStep=function(pe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=pe)},de.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},de.prototype.undo=function(){if(this.undoStack.length>1){var pe=this.undoStack.pop();return pe!==void 0&&this.redoStack.push(pe),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},de.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},de}(),Rt=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.curveX=0,le.curveY=0,le.manipulationStartCurveX=0,le.manipulationStartCurveY=0,le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.positionGrips=le.positionGrips.bind(le),le.addControlGrips=le.addControlGrips.bind(le),le.adjustVisual=le.adjustVisual.bind(le),le.setupControlBox=le.setupControlBox.bind(le),le.resize=le.resize.bind(le),le.strokeColor=se.defaultColor,le.strokeWidth=se.defaultStrokeWidth,le.strokeDasharray=se.defaultStrokeDasharray,le.strokePanel=new we("Line color",se.defaultColorSet,se.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new qe("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ve("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return dt(pe,de),pe.prototype.ownsTarget=function(ie){return!(!de.prototype.ownsTarget.call(this,ie)&&ie!==this.visual&&ie!==this.selectorCurve&&ie!==this.visibleCurve&&!this.curveGrip.ownsTarget(ie))},pe.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},pe.prototype.createVisual=function(){this.visual=Le.createGroup(),this.selectorCurve=Le.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Le.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ie.x,this.curveY=ie.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ee)&&(this.activeGrip=this.curveGrip,this._state="resize")},pe.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Le.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Le.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Le.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},pe.prototype.setupControlBox=function(){de.prototype.setupControlBox.call(this),this.curveControlLine1=Le.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Le.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},pe.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,de.prototype.addControlGrips.call(this)},pe.prototype.positionGrips=function(){de.prototype.positionGrips.call(this);var ie=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ie/2,this.curveY-ie/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},pe.prototype.manipulate=function(ie){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ie.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ie.y-this.manipulationStartY),de.prototype.manipulate.call(this,ie)},pe.prototype.resize=function(ie){this.activeGrip===this.curveGrip&&(this.curveX=ie.x,this.curveY=ie.y),de.prototype.resize.call(this,ie),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},pe.prototype.setStrokeColor=function(ie){this.strokeColor=ie,this.adjustVisual(),this.colorChanged(ie)},pe.prototype.setStrokeWidth=function(ie){this.strokeWidth=ie,this.adjustVisual()},pe.prototype.setStrokeDasharray=function(ie){this.strokeDasharray=ie,this.adjustVisual()},pe.prototype.scale=function(ie,ee){this.curveX=this.curveX*ie,this.curveY=this.curveY*ee,de.prototype.scale.call(this,ie,ee)},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},de.prototype.getState.call(this));return ie.typeName=pe.typeName,ie},pe.prototype.restoreState=function(ie){de.prototype.restoreState.call(this,ie);var ee=ie;this.strokeColor=ee.strokeColor,this.strokeWidth=ee.strokeWidth,this.strokeDasharray=ee.strokeDasharray,this.curveX=ee.curveX,this.curveY=ee.curveY,this.createVisual(),this.adjustVisual()},pe.typeName="CurveMarker",pe.title="Curve marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',pe}(pt),fn=function(de){function pe(ie,ee,se){var le=de.call(this,ie,ee,se)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.textColor="transparent",le.fontSize="1rem",le.isMoved=!1,le.captionText="Caption",le.PADDING=5,le.captionBoxWidth=0,le.captionBoxHeight=0,le.strokeColor=se.defaultColor,le.strokeWidth=se.defaultStrokeWidth,le.strokeDasharray=se.defaultStrokeDasharray,le.fillColor=se.defaultFillColor,le.textColor=se.defaultStrokeColor,le.fontFamily=se.defaultFontFamily,le.fontSize=se.defaultCaptionFontSize,le.captionText=se.defaultCaptionText,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le.sizeCaption=le.sizeCaption.bind(le),le.setCaptionText=le.setCaptionText.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.finishTextEditing=le.finishTextEditing.bind(le),le.setFont=le.setFont.bind(le),le.setTextColor=le.setTextColor.bind(le),le.strokePanel=new we("Line color",ze(se.defaultColorSet,["transparent"]),le.strokeColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new we("Fill color",ze(se.defaultColorSet,["transparent"]),le.fillColor,De),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new qe("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ve("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.fontFamilyPanel=new He("Font",se.defaultFontFamilies,se.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.textColorPanel=new we("Text color",se.defaultColorSet,le.textColor,Ze),le.textColorPanel.onColorChanged=le.setTextColor,le}return dt(pe,de),pe.prototype.ownsTarget=function(ie){return!(!de.prototype.ownsTarget.call(this,ie)&&ie!==this.visual&&ie!==this.frame&&ie!==this.captionBg&&ie!==this.captionElement)},pe.prototype.createVisual=function(){this.visual=Le.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Le.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Le.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=Le.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},pe.prototype.setCaptionText=function(ie){this.captionText=ie,this.captionElement.textContent=this.captionText,this.sizeCaption()},pe.prototype.pointerDown=function(ie,ee){de.prototype.pointerDown.call(this,ie,ee),this.isMoved=!1,this.pointerDownPoint=ie,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ie),this._state="creating")},pe.prototype.manipulate=function(ie){de.prototype.manipulate.call(this,ie),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ie.x-this.pointerDownPoint.x)>5||Math.abs(ie.y-this.pointerDownPoint.y)>5)},pe.prototype.resize=function(ie){de.prototype.resize.call(this,ie),this.setSize()},pe.prototype.sizeCaption=function(){var ie=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ie.width+2*this.PADDING,this.captionBoxHeight=ie.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Le.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),Le.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},pe.prototype.showTextEditor=function(){var ie=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(ee){ee.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ee){ee.key==="Enter"&&ie.finishTextEditing(ie.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ee){ee.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ie.finishTextEditing(ie.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ie.finishTextEditing(ie.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},pe.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},pe.prototype.finishTextEditing=function(ie){this.setCaptionText(ie.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},pe.prototype.setFont=function(ie){this.captionElement&&Le.setAttributes(this.captionElement,[["font-family",ie]]),this.fontFamily=ie,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},pe.prototype.setTextColor=function(ie){this.captionElement&&Le.setAttributes(this.captionElement,[["fill",ie]]),this.textColor=ie,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},pe.prototype.setSize=function(){de.prototype.setSize.call(this),Le.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},pe.prototype.pointerUp=function(ie){de.prototype.pointerUp.call(this,ie),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},pe.prototype.dblClick=function(ie,ee){de.prototype.dblClick.call(this,ie,ee),this.showTextEditor()},pe.prototype.setStrokeColor=function(ie){this.strokeColor=ie,this.frame&&Le.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ie),this.stateChanged()},pe.prototype.setFillColor=function(ie){this.fillColor=ie,this.captionBg&&Le.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ie),this.stateChanged()},pe.prototype.setStrokeWidth=function(ie){this.strokeWidth=ie,this.frame&&Le.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},pe.prototype.setStrokeDasharray=function(ie){this.strokeDasharray=ie,this.frame&&Le.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(pe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),pe.prototype.getState=function(){var ie=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},de.prototype.getState.call(this));return ie.typeName=this.typeName,ie},pe.prototype.restoreState=function(ie){var ee=ie;this.fillColor=ee.fillColor,this.strokeColor=ee.strokeColor,this.strokeWidth=ee.strokeWidth,this.strokeDasharray=ee.strokeDasharray,this.textColor=ee.textColor,this.fontFamily=ee.fontFamily,this.captionText=ee.captionText,this.fontSize=ee.fontSize,this.createVisual(),de.prototype.restoreState.call(this,ie),this.setSize()},pe.prototype.scale=function(ie,ee){de.prototype.scale.call(this,ie,ee),this.setSize()},pe.typeName="CaptionFrameMarker",pe.title="Caption frame marker",pe.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',pe}(Qe),Tt=function(){function de(pe,ie){ie===void 0&&(ie=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=pe,this.cancelable=ie}return Object.defineProperty(de.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),de.prototype.preventDefault=function(){this._defaultPrevented=!0},de}(),mn=function(de){function pe(ie,ee,se){var le=de.call(this,ie,!1)||this;return le.dataUrl=ee,le.state=se,le}return dt(pe,de),pe}(Tt),Dt=function(de){function pe(ie,ee,se){se===void 0&&(se=!1);var le=de.call(this,ie,se)||this;return le.marker=ee,le}return dt(pe,de),pe}(Tt),En=function(){function de(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return de.prototype.addEventListener=function(pe,ie){this[pe].push(ie)},de.prototype.removeEventListener=function(pe,ie){var ee=this[pe].indexOf(ie);ee>-1&&this[pe].splice(ee,1)},de}(),rn=function(){function de(pe){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new ot,this._isOpen=!1,this.undoRedoManager=new Ot,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new En,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=de.instanceCounter++,this.styles=new oe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=pe,this.targetRoot=document.body,this.width=pe.clientWidth,this.height=pe.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(de.prototype,"ALL_MARKER_TYPES",{get:function(){return[ct,_e,Nt,ht,tt,$t,Bt,ut,zt,it,bt,Rt,fn]},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ct,_e,Nt,ht,$t,Bt,ut]},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ct,_e,Nt,ht,Bt]},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(pe){var ie=this;this._availableMarkerTypes.splice(0),pe.forEach(function(ee){if(typeof ee=="string"){var se=ie.ALL_MARKER_TYPES.find(function(le){return le.typeName===ee});se!==void 0&&ie._availableMarkerTypes.push(se)}else ie._availableMarkerTypes.push(ee)})},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(pe){this._zoomLevel=pe,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),de.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ue.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},de.prototype.show=function(){var pe=this;this.styles.styleSheetRoot===void 0&&xe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=xe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ie){return ie(new Tt(pe))})},de.prototype.render=function(){return Ie(this,void 0,void 0,function(){var pe;return Je(this,function(ie){switch(ie.label){case 0:return this.setCurrentMarker(),(pe=new he).naturalSize=this.renderAtNaturalSize,pe.imageType=this.renderImageType,pe.imageQuality=this.renderImageQuality,pe.markersOnly=this.renderMarkersOnly,pe.width=this.renderWidth,pe.height=this.renderHeight,[4,pe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ie.sent(),[4,pe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ie.sent()]}})})},de.prototype.close=function(pe){var ie=this;if(pe===void 0&&(pe=!1),this.isOpen){var ee=!1;pe||this.eventListeners.beforeclose.forEach(function(se){var le=new Tt(ie,!0);se(le),le.defaultPrevented&&(ee=!0)}),ee||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(se){return se(new Tt(ie))}),this.detachEvents(),this._isOpen=!1)}},de.prototype.addMarkersToToolbar=function(){for(var pe,ie=[],ee=0;ee<arguments.length;ee++)ie[ee]=arguments[ee];(pe=this._availableMarkerTypes).push.apply(pe,ie)},de.prototype.addRenderEventListener=function(pe){this.addEventListener("render",function(ie){pe(ie.dataUrl,ie.state)})},de.prototype.removeRenderEventListener=function(pe){},de.prototype.addCloseEventListener=function(pe){this.addEventListener("close",function(){pe()})},de.prototype.removeCloseEventListener=function(pe){},de.prototype.setupResizeObserver=function(){var pe=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){pe.resize(pe.target.clientWidth,pe.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return pe.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},de.prototype.onPopupTargetResize=function(){var pe=1*this.target.clientWidth/this.target.clientHeight,ie=this.editorCanvas.clientWidth/pe>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*pe:this.editorCanvas.clientWidth,ee=ie<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/pe;this.resize(ie,ee)},de.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},de.prototype.resize=function(pe,ie){this._isResizing=!0;var ee=pe/this.imageWidth,se=ie/this.imageHeight;this.imageWidth=Math.round(pe),this.imageHeight=Math.round(ie),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(ee,se),this._isResizing=!1},de.prototype.scaleMarkers=function(pe,ie){var ee,se=this;this._currentMarker&&this._currentMarker instanceof ht?this._currentMarker.scale(pe,ie):(ee=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(le){le!==se._currentMarker&&le.scale(pe,ie)}),ee!==void 0&&this.setCurrentMarker(ee)},de.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},de.prototype.setTopLeft=function(){var pe=this.editingTarget.getBoundingClientRect(),ie=this.editorCanvas.getBoundingClientRect();this.left=pe.left-ie.left,this.top=pe.top-ie.top},de.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},de.prototype.addDefs=function(){for(var pe,ie=[],ee=0;ee<arguments.length;ee++)ie[ee]=arguments[ee];this.defs=Le.createDefs(),this.addDefsToImage(),(pe=this.defs).append.apply(pe,ie)},de.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},de.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},de.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},de.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},de.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},de.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},de.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},de.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var pe=document.createElement("a");pe.href="https://markerjs.com/",pe.target="_blank",pe.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',pe.title="Powered by marker.js",pe.style.display="grid",pe.style.alignItems="center",pe.style.justifyItems="center",pe.style.padding="3px",pe.style.width="20px",pe.style.height="20px",this.logoUI.appendChild(pe),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},de.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},de.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},de.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},de.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var pe=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=pe+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Me(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new Se(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},de.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},de.prototype.removeMarker=function(pe){this.markerImage.removeChild(pe.container),this.markers.indexOf(pe)>-1&&this.markers.splice(this.markers.indexOf(pe),1),pe.dispose()},de.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},de.prototype.toolbarButtonClicked=function(pe,ie){if(pe==="marker"&&ie!==void 0)this.createNewMarker(ie);else if(pe==="action")switch(ie){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},de.prototype.deleteSelectedMarker=function(){var pe=this;if(this._currentMarker!==void 0){var ie=!1;if(this.eventListeners.markerbeforedelete.forEach(function(se){var le=new Dt(pe,pe._currentMarker,!0);se(le),le.defaultPrevented&&(ie=!0)}),!ie){var ee=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(se){return se(new Dt(pe,ee))})}}},de.prototype.clear=function(){var pe=this,ie=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Be){var We=new Dt(pe,void 0,!0);Be(We),We.defaultPrevented&&(ie=!0)}),!ie)){this.setCurrentMarker();for(var ee=function(Be){var We=se.markers[Be];se.setCurrentMarker(se.markers[Be]),se._currentMarker.dispose(),se.markerImage.removeChild(se._currentMarker.container),se.markers.splice(se.markers.indexOf(se._currentMarker),1),se.eventListeners.markerdelete.forEach(function(st){return st(new Dt(pe,We))})},se=this,le=this.markers.length-1;le>=0;le--)ee(le);this.addUndoStep()}},Object.defineProperty(de.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),de.prototype.showNotesEditor=function(){var pe;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(pe=this._currentMarker.notes)!==null&&pe!==void 0?pe:"",this.overlayContainer.appendChild(this.notesArea))},de.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},de.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},de.prototype.addUndoStep=function(){var pe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ie=this.getState(),ee=this.undoRedoManager.getLastUndoStep();if(!ee||ee.width===ie.width&&ee.height===ie.height){var se=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ie),se<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(le){return le(new Tt(pe))})}else this.undoRedoManager.replaceLastUndoStep(ie),this.eventListeners.statechange.forEach(function(le){return le(new Tt(pe))})}},de.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},de.prototype.undoStep=function(){var pe=this,ie=this.undoRedoManager.undo();ie!==void 0&&(this.restoreState(ie),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ee){return ee(new Tt(pe))}))},de.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},de.prototype.redoStep=function(){var pe=this,ie=this.undoRedoManager.redo();ie!==void 0&&(this.restoreState(ie),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ee){return ee(new Tt(pe))}))},de.prototype.stepZoom=function(){var pe=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=pe<this.zoomSteps.length-1?this.zoomSteps[pe+1]:this.zoomSteps[0]},de.prototype.panTo=function(pe){this.contentDiv.scrollBy({left:this.prevPanPoint.x-pe.x,top:this.prevPanPoint.y-pe.y}),this.prevPanPoint=pe},de.prototype.startRenderAndClose=function(){return Ie(this,void 0,void 0,function(){var pe,ie,ee=this;return Je(this,function(se){switch(se.label){case 0:return[4,this.render()];case 1:return pe=se.sent(),ie=this.getState(),this.eventListeners.render.forEach(function(le){return le(new mn(ee,pe,ie))}),this.close(!0),[2]}})})},de.prototype.getState=function(pe){pe===!0&&this.setCurrentMarker();var ie={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(ee){return ie.markers.push(ee.getState())}),ie},de.prototype.restoreState=function(pe){var ie=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);pe.markers.forEach(function(ee){var se=ie._availableMarkerTypes.find(function(Be){return Be.typeName===ee.typeName});if(se!==void 0){var le=ie.addNewMarker(se);le.restoreState(ee),ie.markers.push(le)}}),pe.width&&pe.height&&(pe.width!==this.imageWidth||pe.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/pe.width,this.imageHeight/pe.height),this.eventListeners.restorestate.forEach(function(ee){return ee(new Tt(ie))})},de.prototype.addNewMarker=function(pe){var ie=Le.createGroup();return this.markerImage.appendChild(ie),new pe(ie,this.overlayContainer,this.settings)},de.prototype.createNewMarker=function(pe){var ie,ee=this;(ie=typeof pe=="string"?this._availableMarkerTypes.find(function(se){return se.typeName===pe}):pe)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ie),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(ie.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(se){return se(new Dt(ee,ee._currentMarker))}))},de.prototype.markerCreated=function(pe){var ie=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(pe),this.setCurrentMarker(pe),pe instanceof _e&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(_e):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ee){return ee(new Dt(ie,ie._currentMarker))})},de.prototype.colorChanged=function(pe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=pe,this.settings.defaultStrokeColor=pe)},de.prototype.fillColorChanged=function(pe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=pe)},de.prototype.markerStateChanged=function(pe){var ie=this;this.eventListeners.markerchange.forEach(function(ee){return ee(new Dt(ie,pe))})},de.prototype.setCurrentMarker=function(pe){var ie=this;this._currentMarker!==pe&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(ee){return ee(new Dt(ie,ie._currentMarker))})),this._currentMarker=pe,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(ee){return ee(new Dt(ie,ie._currentMarker))}))},de.prototype.onPointerDown=function(pe){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||pe.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ie=this.markers.find(function(ee){return ee.ownsTarget(pe.target)});ie!==void 0?(this.setCurrentMarker(ie),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(pe.clientX,pe.clientY),pe.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:pe.clientX,y:pe.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(pe.clientX,pe.clientY))},de.prototype.onDblClick=function(pe){if(this._isFocused||this.focus(),this.mode==="select"){var ie=this.markers.find(function(ee){return ee.ownsTarget(pe.target)});ie!==void 0&&ie!==this._currentMarker&&this.setCurrentMarker(ie),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(pe.clientX,pe.clientY),pe.target):this.setCurrentMarker()}},de.prototype.onPointerMove=function(pe){this.touchPoints!==1&&pe.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||pe.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(pe.clientX,pe.clientY)):this.zoomLevel>1&&this.panTo({x:pe.clientX,y:pe.clientY}))},de.prototype.onPointerUp=function(pe){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(pe.clientX,pe.clientY)),this.isDragging=!1,this.addUndoStep()},de.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},de.prototype.onKeyUp=function(pe){this._currentMarker===void 0||this.notesArea!==void 0||pe.key!=="Delete"&&pe.key!=="Backspace"||this.deleteSelectedMarker()},de.prototype.clientToLocalCoordinates=function(pe,ie){var ee=this.markerImage.getBoundingClientRect();return{x:(pe-ee.left)/this.zoomLevel,y:(ie-ee.top)/this.zoomLevel}},de.prototype.onWindowResize=function(){this.positionUI()},de.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var pe=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=pe+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},de.prototype.addLicenseKey=function(pe){Ue.addKey(pe)},de.prototype.addEventListener=function(pe,ie){this.eventListeners.addEventListener(pe,ie)},de.prototype.removeEventListener=function(pe,ie){this.eventListeners.removeEventListener(pe,ie)},de.prototype.renderState=function(pe){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(pe),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(de.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),de.prototype.focus=function(){var pe=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ie){return ie(new Tt(pe))}))},de.prototype.blur=function(){var pe=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ie){return ie(new Tt(pe))}))},de.instanceCounter=0,de}()},6551:function(Jn,kt,ae){"use strict";ae.d(kt,{ZP:function(){return Ue}});var x=ae(42978),dt=ae(59301),Ie=ae(47273),Je=0,ze=(0,Ie.Z)();function Le(){var he;return ze?(he=Je,Je+=1):he="TEST_OR_SSR",he}function Ue(he){var xe=dt.useState(),oe=(0,x.Z)(xe,2),Oe=oe[0],ve=oe[1];return dt.useEffect(function(){ve("rc_select_".concat(Le()))},[]),he||Oe}},37463:function(Jn,kt,ae){"use strict";ae.d(kt,{Ac:function(){return en},Xo:function(){return Fn},Wx:function(){return an},ZP:function(){return Gt},lk:function(){return Ke}});var x=ae(54476),dt=ae(94480),Ie=ae(20068),Je=ae(33885),ze=ae(42978),Le=ae(75931),Ue=ae(76190),he=ae(18929),xe=ae(48736),oe=ae(59301),Oe=ae(92310),ve=ae.n(Oe),Me=ae(34280),Se=ae(49658),Te=ae(8654),we=function(wn){var Mt=wn.className,dn=wn.customizeIcon,Kt=wn.customizeIconProps,pn=wn.children,Nn=wn.onMouseDown,Pr=wn.onClick,Yr=typeof dn=="function"?dn(Kt):dn;return oe.createElement("span",{className:Mt,onMouseDown:function(or){or.preventDefault(),Nn==null||Nn(or)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Pr,"aria-hidden":!0},Yr!==void 0?Yr:oe.createElement("span",{className:ve()(Mt.split(/\s+/).map(function(ci){return"".concat(ci,"-icon")}))},pn))},Ce=we,Ee=function(wn,Mt,dn,Kt,pn){var Nn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Pr=arguments.length>6?arguments[6]:void 0,Yr=arguments.length>7?arguments[7]:void 0,ci=oe.useMemo(function(){if((0,Ue.Z)(Kt)==="object")return Kt.clearIcon;if(pn)return pn},[Kt,pn]),or=oe.useMemo(function(){return!!(!Nn&&Kt&&(dn.length||Pr)&&!(Yr==="combobox"&&Pr===""))},[Kt,Nn,dn.length,Pr,Yr]);return{allowClear:or,clearIcon:oe.createElement(Ce,{className:"".concat(wn,"-clear"),onMouseDown:Mt,customizeIcon:ci},"\xD7")}},ke=oe.createContext(null);function Ke(){return oe.useContext(ke)}function Qe(){var un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,wn=oe.useState(!1),Mt=(0,ze.Z)(wn,2),dn=Mt[0],Kt=Mt[1],pn=oe.useRef(null),Nn=function(){window.clearTimeout(pn.current)};oe.useEffect(function(){return Nn},[]);var Pr=function(ci,or){Nn(),pn.current=window.setTimeout(function(){Kt(ci),or&&or()},un)};return[dn,Pr,Nn]}function je(){var un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,wn=oe.useRef(null),Mt=oe.useRef(null);oe.useEffect(function(){return function(){window.clearTimeout(Mt.current)}},[]);function dn(Kt){(Kt||wn.current===null)&&(wn.current=Kt),window.clearTimeout(Mt.current),Mt.current=window.setTimeout(function(){wn.current=null},un)}return[function(){return wn.current},dn]}function qe(un,wn,Mt,dn){var Kt=oe.useRef(null);Kt.current={open:wn,triggerOpen:Mt,customizedTrigger:dn},oe.useEffect(function(){function pn(Nn){var Pr;if(!((Pr=Kt.current)!==null&&Pr!==void 0&&Pr.customizedTrigger)){var Yr=Nn.target;Yr.shadowRoot&&Nn.composed&&(Yr=Nn.composedPath()[0]||Yr),Kt.current.open&&un().filter(function(ci){return ci}).every(function(ci){return!ci.contains(Yr)&&ci!==Yr})&&Kt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",pn),function(){return window.removeEventListener("mousedown",pn)}},[])}var Ve=ae(10228);function ct(un){return un&&![Ve.Z.ESC,Ve.Z.SHIFT,Ve.Z.BACKSPACE,Ve.Z.TAB,Ve.Z.WIN_KEY,Ve.Z.ALT,Ve.Z.META,Ve.Z.WIN_KEY_RIGHT,Ve.Z.CTRL,Ve.Z.SEMICOLON,Ve.Z.EQUALS,Ve.Z.CAPS_LOCK,Ve.Z.CONTEXT_MENU,Ve.Z.F1,Ve.Z.F2,Ve.Z.F3,Ve.Z.F4,Ve.Z.F5,Ve.Z.F6,Ve.Z.F7,Ve.Z.F8,Ve.Z.F9,Ve.Z.F10,Ve.Z.F11,Ve.Z.F12].includes(un)}var ot=ae(26112),pt=ae(83836);function bt(un,wn,Mt){var dn=(0,Je.Z)((0,Je.Z)({},un),Mt?wn:{});return Object.keys(wn).forEach(function(Kt){var pn=wn[Kt];typeof pn=="function"&&(dn[Kt]=function(){for(var Nn,Pr=arguments.length,Yr=new Array(Pr),ci=0;ci<Pr;ci++)Yr[ci]=arguments[ci];return pn.apply(void 0,Yr),(Nn=un[Kt])===null||Nn===void 0?void 0:Nn.call.apply(Nn,[un].concat(Yr))})}),dn}var He=bt,ht=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],_e=function(wn,Mt){var dn=wn.prefixCls,Kt=wn.id,pn=wn.inputElement,Nn=wn.autoFocus,Pr=wn.autoComplete,Yr=wn.editable,ci=wn.activeDescendantId,or=wn.value,cr=wn.open,sr=wn.attrs,ti=(0,Le.Z)(wn,ht),nr=pn||oe.createElement("input",null),Rn=nr,Ar=Rn.ref,Bi=Rn.props;return(0,xe.Kp)(!("maxLength"in nr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),nr=oe.cloneElement(nr,(0,Je.Z)((0,Je.Z)((0,Je.Z)({type:"search"},He(ti,Bi,!0)),{},{id:Kt,ref:(0,Te.sQ)(Mt,Ar),autoComplete:Pr||"off",autoFocus:Nn,className:ve()("".concat(dn,"-selection-search-input"),Bi==null?void 0:Bi.className),role:"combobox","aria-expanded":cr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Kt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Kt,"_list"),"aria-activedescendant":cr?ci:void 0},sr),{},{value:Yr?or:"",readOnly:!Yr,unselectable:Yr?null:"on",style:(0,Je.Z)((0,Je.Z)({},Bi.style),{},{opacity:Yr?null:0})})),nr},Re=oe.forwardRef(_e),Nt=Re;function it(un){return Array.isArray(un)?un:un!==void 0?[un]:[]}var at=typeof window!="undefined"&&window.document&&window.document.documentElement,Bt=at;function Ze(un){return un!=null}function De(un){return!un&&un!==0}function ut(un){return["string","number"].includes((0,Ue.Z)(un))}function $t(un){var wn=void 0;return un&&(ut(un.title)?wn=un.title.toString():ut(un.label)&&(wn=un.label.toString())),wn}function zt(un,wn){Bt?oe.useLayoutEffect(un,wn):oe.useEffect(un,wn)}function tt(un){var wn;return(wn=un.key)!==null&&wn!==void 0?wn:un.value}var Ot=function(wn){wn.preventDefault(),wn.stopPropagation()},Rt=function(wn){var Mt=wn.id,dn=wn.prefixCls,Kt=wn.values,pn=wn.open,Nn=wn.searchValue,Pr=wn.autoClearSearchValue,Yr=wn.inputRef,ci=wn.placeholder,or=wn.disabled,cr=wn.mode,sr=wn.showSearch,ti=wn.autoFocus,nr=wn.autoComplete,Rn=wn.activeDescendantId,Ar=wn.tabIndex,Bi=wn.removeIcon,Zn=wn.maxTagCount,yn=wn.maxTagTextLength,Wn=wn.maxTagPlaceholder,rr=Wn===void 0?function(ni){return"+ ".concat(ni.length," ...")}:Wn,pr=wn.tagRender,Kr=wn.onToggleOpen,Fi=wn.onRemove,fi=wn.onInputChange,_i=wn.onInputPaste,hi=wn.onInputKeyDown,bi=wn.onInputMouseDown,wi=wn.onInputCompositionStart,Yi=wn.onInputCompositionEnd,pi=wn.onInputBlur,yi=oe.useRef(null),Ji=(0,oe.useState)(0),io=(0,ze.Z)(Ji,2),ji=io[0],So=io[1],ki=(0,oe.useState)(!1),ko=(0,ze.Z)(ki,2),co=ko[0],Xo=ko[1],wo="".concat(dn,"-selection"),eo=pn||cr==="multiple"&&Pr===!1||cr==="tags"?Nn:"",bo=cr==="tags"||cr==="multiple"&&Pr===!1||sr&&(pn||co);zt(function(){So(yi.current.scrollWidth)},[eo]);var Go=function(Wr,Ui,to,$r,oi){return oe.createElement("span",{title:$t(Wr),className:ve()("".concat(wo,"-item"),(0,Ie.Z)({},"".concat(wo,"-item-disabled"),to))},oe.createElement("span",{className:"".concat(wo,"-item-content")},Ui),$r&&oe.createElement(Ce,{className:"".concat(wo,"-item-remove"),onMouseDown:Ot,onClick:oi,customizeIcon:Bi},"\xD7"))},Tn=function(Wr,Ui,to,$r,oi,yr){var qr=function(Jo){Ot(Jo),Kr(!pn)};return oe.createElement("span",{onMouseDown:qr},pr({label:Ui,value:Wr,disabled:to,closable:$r,onClose:oi,isMaxTag:!!yr}))},Lo=function(Wr){var Ui=Wr.disabled,to=Wr.label,$r=Wr.value,oi=!or&&!Ui,yr=to;if(typeof yn=="number"&&(typeof to=="string"||typeof to=="number")){var qr=String(yr);qr.length>yn&&(yr="".concat(qr.slice(0,yn),"..."))}var Ao=function(_o){_o&&_o.stopPropagation(),Fi(Wr)};return typeof pr=="function"?Tn($r,yr,Ui,oi,Ao):Go(Wr,yr,Ui,oi,Ao)},Gi=function(Wr){if(!Kt.length)return null;var Ui=typeof rr=="function"?rr(Wr):rr;return typeof pr=="function"?Tn(void 0,Ui,!1,!1,void 0,!0):Go({title:Ui},Ui,!1)},jr=oe.createElement("div",{className:"".concat(wo,"-search"),style:{width:ji},onFocus:function(){Xo(!0)},onBlur:function(){Xo(!1)}},oe.createElement(Nt,{ref:Yr,open:pn,prefixCls:dn,id:Mt,inputElement:null,disabled:or,autoFocus:ti,autoComplete:nr,editable:bo,activeDescendantId:Rn,value:eo,onKeyDown:hi,onMouseDown:bi,onChange:fi,onPaste:_i,onCompositionStart:wi,onCompositionEnd:Yi,onBlur:pi,tabIndex:Ar,attrs:(0,ot.Z)(wn,!0)}),oe.createElement("span",{ref:yi,className:"".concat(wo,"-search-mirror"),"aria-hidden":!0},eo,"\xA0")),Jr=oe.createElement(pt.Z,{prefixCls:"".concat(wo,"-overflow"),data:Kt,renderItem:Lo,renderRest:Gi,suffix:jr,itemKey:tt,maxCount:Zn});return oe.createElement("span",{className:"".concat(wo,"-wrap")},Jr,!Kt.length&&!eo&&oe.createElement("span",{className:"".concat(wo,"-placeholder")},ci))},fn=Rt,Tt=function(wn){var Mt=wn.inputElement,dn=wn.prefixCls,Kt=wn.id,pn=wn.inputRef,Nn=wn.disabled,Pr=wn.autoFocus,Yr=wn.autoComplete,ci=wn.activeDescendantId,or=wn.mode,cr=wn.open,sr=wn.values,ti=wn.placeholder,nr=wn.tabIndex,Rn=wn.showSearch,Ar=wn.searchValue,Bi=wn.activeValue,Zn=wn.maxLength,yn=wn.onInputKeyDown,Wn=wn.onInputMouseDown,rr=wn.onInputChange,pr=wn.onInputPaste,Kr=wn.onInputCompositionStart,Fi=wn.onInputCompositionEnd,fi=wn.onInputBlur,_i=wn.title,hi=oe.useState(!1),bi=(0,ze.Z)(hi,2),wi=bi[0],Yi=bi[1],pi=or==="combobox",yi=pi||Rn,Ji=sr[0],io=Ar||"";pi&&Bi&&!wi&&(io=Bi),oe.useEffect(function(){pi&&Yi(!1)},[pi,Bi]);var ji=or!=="combobox"&&!cr&&!Rn?!1:!!io,So=_i===void 0?$t(Ji):_i,ki=oe.useMemo(function(){return Ji?null:oe.createElement("span",{className:"".concat(dn,"-selection-placeholder"),style:ji?{visibility:"hidden"}:void 0},ti)},[Ji,ji,ti,dn]);return oe.createElement("span",{className:"".concat(dn,"-selection-wrap")},oe.createElement("span",{className:"".concat(dn,"-selection-search")},oe.createElement(Nt,{ref:pn,prefixCls:dn,id:Kt,open:cr,inputElement:Mt,disabled:Nn,autoFocus:Pr,autoComplete:Yr,editable:yi,activeDescendantId:ci,value:io,onKeyDown:yn,onMouseDown:Wn,onChange:function(co){Yi(!0),rr(co)},onPaste:pr,onCompositionStart:Kr,onCompositionEnd:Fi,onBlur:fi,tabIndex:nr,attrs:(0,ot.Z)(wn,!0),maxLength:pi?Zn:void 0})),!pi&&Ji?oe.createElement("span",{className:"".concat(dn,"-selection-item"),title:So,style:ji?{visibility:"hidden"}:void 0},Ji.label):null,ki)},mn=Tt,Dt=function(wn,Mt){var dn=(0,oe.useRef)(null),Kt=(0,oe.useRef)(!1),pn=wn.prefixCls,Nn=wn.open,Pr=wn.mode,Yr=wn.showSearch,ci=wn.tokenWithEnter,or=wn.disabled,cr=wn.prefix,sr=wn.autoClearSearchValue,ti=wn.onSearch,nr=wn.onSearchSubmit,Rn=wn.onToggleOpen,Ar=wn.onInputKeyDown,Bi=wn.onInputBlur,Zn=wn.domRef;oe.useImperativeHandle(Mt,function(){return{focus:function(So){dn.current.focus(So)},blur:function(){dn.current.blur()}}});var yn=je(0),Wn=(0,ze.Z)(yn,2),rr=Wn[0],pr=Wn[1],Kr=function(So){var ki=So.which,ko=dn.current instanceof HTMLTextAreaElement;!ko&&Nn&&(ki===Ve.Z.UP||ki===Ve.Z.DOWN)&&So.preventDefault(),Ar&&Ar(So),ki===Ve.Z.ENTER&&Pr==="tags"&&!Kt.current&&!Nn&&(nr==null||nr(So.target.value)),!(ko&&!Nn&&~[Ve.Z.UP,Ve.Z.DOWN,Ve.Z.LEFT,Ve.Z.RIGHT].indexOf(ki))&&ct(ki)&&Rn(!0)},Fi=function(){pr(!0)},fi=(0,oe.useRef)(null),_i=function(So){ti(So,!0,Kt.current)!==!1&&Rn(!0)},hi=function(){Kt.current=!0},bi=function(So){Kt.current=!1,Pr!=="combobox"&&_i(So.target.value)},wi=function(So){var ki=So.target.value;if(ci&&fi.current&&/[\r\n]/.test(fi.current)){var ko=fi.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");ki=ki.replace(ko,fi.current)}fi.current=null,_i(ki)},Yi=function(So){var ki=So.clipboardData,ko=ki==null?void 0:ki.getData("text");fi.current=ko||""},pi=function(So){var ki=So.target;if(ki!==dn.current){var ko=document.body.style.msTouchAction!==void 0;ko?setTimeout(function(){dn.current.focus()}):dn.current.focus()}},yi=function(So){var ki=rr();So.target!==dn.current&&!ki&&!(Pr==="combobox"&&or)&&So.preventDefault(),(Pr!=="combobox"&&(!Yr||!ki)||!Nn)&&(Nn&&sr!==!1&&ti("",!0,!1),Rn())},Ji={inputRef:dn,onInputKeyDown:Kr,onInputMouseDown:Fi,onInputChange:wi,onInputPaste:Yi,onInputCompositionStart:hi,onInputCompositionEnd:bi,onInputBlur:Bi},io=Pr==="multiple"||Pr==="tags"?oe.createElement(fn,(0,x.Z)({},wn,Ji)):oe.createElement(mn,(0,x.Z)({},wn,Ji));return oe.createElement("div",{ref:Zn,className:"".concat(pn,"-selector"),onClick:pi,onMouseDown:yi},cr&&oe.createElement("div",{className:"".concat(pn,"-prefix")},cr),io)},En=oe.forwardRef(Dt),rn=En,de=ae(65030),pe=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ie=function(wn){var Mt=wn===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Mt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Mt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Mt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Mt,adjustY:1},htmlRegion:"scroll"}}},ee=function(wn,Mt){var dn=wn.prefixCls,Kt=wn.disabled,pn=wn.visible,Nn=wn.children,Pr=wn.popupElement,Yr=wn.animation,ci=wn.transitionName,or=wn.dropdownStyle,cr=wn.dropdownClassName,sr=wn.direction,ti=sr===void 0?"ltr":sr,nr=wn.placement,Rn=wn.builtinPlacements,Ar=wn.dropdownMatchSelectWidth,Bi=wn.dropdownRender,Zn=wn.dropdownAlign,yn=wn.getPopupContainer,Wn=wn.empty,rr=wn.getTriggerDOMNode,pr=wn.onPopupVisibleChange,Kr=wn.onPopupMouseEnter,Fi=(0,Le.Z)(wn,pe),fi="".concat(dn,"-dropdown"),_i=Pr;Bi&&(_i=Bi(Pr));var hi=oe.useMemo(function(){return Rn||ie(Ar)},[Rn,Ar]),bi=Yr?"".concat(fi,"-").concat(Yr):ci,wi=typeof Ar=="number",Yi=oe.useMemo(function(){return wi?null:Ar===!1?"minWidth":"width"},[Ar,wi]),pi=or;wi&&(pi=(0,Je.Z)((0,Je.Z)({},pi),{},{width:Ar}));var yi=oe.useRef(null);return oe.useImperativeHandle(Mt,function(){return{getPopupElement:function(){var io;return(io=yi.current)===null||io===void 0?void 0:io.popupElement}}}),oe.createElement(de.Z,(0,x.Z)({},Fi,{showAction:pr?["click"]:[],hideAction:pr?["click"]:[],popupPlacement:nr||(ti==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:hi,prefixCls:fi,popupTransitionName:bi,popup:oe.createElement("div",{onMouseEnter:Kr},_i),ref:yi,stretch:Yi,popupAlign:Zn,popupVisible:pn,getPopupContainer:yn,popupClassName:ve()(cr,(0,Ie.Z)({},"".concat(fi,"-empty"),Wn)),popupStyle:pi,getTriggerDOMNode:rr,onPopupVisibleChange:pr}),Nn)},se=oe.forwardRef(ee),le=se,Be=ae(66712);function We(un,wn){var Mt=un.key,dn;return"value"in un&&(dn=un.value),Mt!=null?Mt:dn!==void 0?dn:"rc-index-key-".concat(wn)}function st(un){return typeof un!="undefined"&&!Number.isNaN(un)}function mt(un,wn){var Mt=un||{},dn=Mt.label,Kt=Mt.value,pn=Mt.options,Nn=Mt.groupLabel,Pr=dn||(wn?"children":"label");return{label:Pr,value:Kt||"value",options:pn||"options",groupLabel:Nn||Pr}}function gt(un){var wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Mt=wn.fieldNames,dn=wn.childrenAsData,Kt=[],pn=mt(Mt,!1),Nn=pn.label,Pr=pn.value,Yr=pn.options,ci=pn.groupLabel;function or(cr,sr){Array.isArray(cr)&&cr.forEach(function(ti){if(sr||!(Yr in ti)){var nr=ti[Pr];Kt.push({key:We(ti,Kt.length),groupOption:sr,data:ti,label:ti[Nn],value:nr})}else{var Rn=ti[ci];Rn===void 0&&dn&&(Rn=ti.label),Kt.push({key:We(ti,Kt.length),group:!0,data:ti,label:Rn}),or(ti[Yr],!0)}})}return or(un,!1),Kt}function Et(un){var wn=(0,Je.Z)({},un);return"props"in wn||Object.defineProperty(wn,"props",{get:function(){return(0,xe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),wn}}),wn}var Lt=function(wn,Mt,dn){if(!Mt||!Mt.length)return null;var Kt=!1,pn=function Pr(Yr,ci){var or=(0,Be.Z)(ci),cr=or[0],sr=or.slice(1);if(!cr)return[Yr];var ti=Yr.split(cr);return Kt=Kt||ti.length>1,ti.reduce(function(nr,Rn){return[].concat((0,dt.Z)(nr),(0,dt.Z)(Pr(Rn,sr)))},[]).filter(Boolean)},Nn=pn(wn,Mt);return Kt?typeof dn!="undefined"?Nn.slice(0,dn):Nn:null},jt=oe.createContext(null),Ct=jt;function lt(un){var wn=un.visible,Mt=un.values;if(!wn)return null;var dn=50;return oe.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Mt.slice(0,dn).map(function(Kt){var pn=Kt.label,Nn=Kt.value;return["number","string"].includes((0,Ue.Z)(pn))?pn:Nn}).join(", ")),Mt.length>dn?", ...":null)}var Vt=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Zt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],gn=function(wn){return wn==="tags"||wn==="multiple"},sn=oe.forwardRef(function(un,wn){var Mt,dn=un.id,Kt=un.prefixCls,pn=un.className,Nn=un.showSearch,Pr=un.tagRender,Yr=un.direction,ci=un.omitDomProps,or=un.displayValues,cr=un.onDisplayValuesChange,sr=un.emptyOptions,ti=un.notFoundContent,nr=ti===void 0?"Not Found":ti,Rn=un.onClear,Ar=un.mode,Bi=un.disabled,Zn=un.loading,yn=un.getInputElement,Wn=un.getRawInputElement,rr=un.open,pr=un.defaultOpen,Kr=un.onDropdownVisibleChange,Fi=un.activeValue,fi=un.onActiveValueChange,_i=un.activeDescendantId,hi=un.searchValue,bi=un.autoClearSearchValue,wi=un.onSearch,Yi=un.onSearchSplit,pi=un.tokenSeparators,yi=un.allowClear,Ji=un.prefix,io=un.suffixIcon,ji=un.clearIcon,So=un.OptionList,ki=un.animation,ko=un.transitionName,co=un.dropdownStyle,Xo=un.dropdownClassName,wo=un.dropdownMatchSelectWidth,eo=un.dropdownRender,bo=un.dropdownAlign,Go=un.placement,Tn=un.builtinPlacements,Lo=un.getPopupContainer,Gi=un.showAction,jr=Gi===void 0?[]:Gi,Jr=un.onFocus,ni=un.onBlur,Wr=un.onKeyUp,Ui=un.onKeyDown,to=un.onMouseDown,$r=(0,Le.Z)(un,Vt),oi=gn(Ar),yr=(Nn!==void 0?Nn:oi)||Ar==="combobox",qr=(0,Je.Z)({},$r);Zt.forEach(function(Oa){delete qr[Oa]}),ci==null||ci.forEach(function(Oa){delete qr[Oa]});var Ao=oe.useState(!1),Jo=(0,ze.Z)(Ao,2),_o=Jo[0],pa=Jo[1];oe.useEffect(function(){pa((0,Se.Z)())},[]);var No=oe.useRef(null),qo=oe.useRef(null),Ro=oe.useRef(null),oa=oe.useRef(null),da=oe.useRef(null),Ka=oe.useRef(!1),_s=Qe(),js=(0,ze.Z)(_s,3),as=js[0],fs=js[1],Mo=js[2];oe.useImperativeHandle(wn,function(){var Oa,Ua;return{focus:(Oa=oa.current)===null||Oa===void 0?void 0:Oa.focus,blur:(Ua=oa.current)===null||Ua===void 0?void 0:Ua.blur,scrollTo:function(nc){var Yl;return(Yl=da.current)===null||Yl===void 0?void 0:Yl.scrollTo(nc)},nativeElement:No.current||qo.current}});var go=oe.useMemo(function(){var Oa;if(Ar!=="combobox")return hi;var Ua=(Oa=or[0])===null||Oa===void 0?void 0:Oa.value;return typeof Ua=="string"||typeof Ua=="number"?String(Ua):""},[hi,Ar,or]),Fa=Ar==="combobox"&&typeof yn=="function"&&yn()||null,gs=typeof Wn=="function"&&Wn(),nl=(0,Te.x1)(qo,gs==null||(Mt=gs.props)===null||Mt===void 0?void 0:Mt.ref),rl=oe.useState(!1),il=(0,ze.Z)(rl,2),yl=il[0],su=il[1];(0,Me.Z)(function(){su(!0)},[]);var ol=(0,he.Z)(!1,{defaultValue:pr,value:rr}),jl=(0,ze.Z)(ol,2),Lu=jl[0],Xl=jl[1],wl=yl?Lu:!1,ec=!nr&&sr;(Bi||ec&&wl&&Ar==="combobox")&&(wl=!1);var _c=ec?!1:wl,ma=oe.useCallback(function(Oa){var Ua=Oa!==void 0?Oa:!wl;Bi||(Xl(Ua),wl!==Ua&&(Kr==null||Kr(Ua)))},[Bi,wl,Xl,Kr]),Ea=oe.useMemo(function(){return(pi||[]).some(function(Oa){return[`
`,`\r
`].includes(Oa)})},[pi]),ha=oe.useContext(Ct)||{},wa=ha.maxCount,Ja=ha.rawValues,Ga=function(Ua,Ms,nc){if(!(oi&&st(wa)&&(Ja==null?void 0:Ja.size)>=wa)){var Yl=!0,pu=Ua;fi==null||fi(null);var Kc=Lt(Ua,pi,st(wa)?wa-Ja.size:void 0),hc=nc?null:Kc;return Ar!=="combobox"&&hc&&(pu="",Yi==null||Yi(hc),ma(!1),Yl=!1),wi&&go!==pu&&wi(pu,{source:Ms?"typing":"effect"}),Yl}},$a=function(Ua){!Ua||!Ua.trim()||wi(Ua,{source:"submit"})};oe.useEffect(function(){!wl&&!oi&&Ar!=="combobox"&&Ga("",!1,!1)},[wl]),oe.useEffect(function(){Lu&&Bi&&Xl(!1),Bi&&!Ka.current&&fs(!1)},[Bi]);var Ql=je(),fu=(0,ze.Z)(Ql,2),kl=fu[0],Hi=fu[1],Vo=oe.useRef(!1),Ma=function(Ua){var Ms=kl(),nc=Ua.key,Yl=nc==="Enter";if(Yl&&(Ar!=="combobox"&&Ua.preventDefault(),wl||ma(!0)),Hi(!!go),nc==="Backspace"&&!Ms&&oi&&!go&&or.length){for(var pu=(0,dt.Z)(or),Kc=null,hc=pu.length-1;hc>=0;hc-=1){var fA=pu[hc];if(!fA.disabled){pu.splice(hc,1),Kc=fA;break}}Kc&&cr(pu,{type:"remove",values:[Kc]})}for(var Jl=arguments.length,pc=new Array(Jl>1?Jl-1:0),nA=1;nA<Jl;nA++)pc[nA-1]=arguments[nA];if(wl&&(!Yl||!Vo.current)){var rA;Yl&&(Vo.current=!0),(rA=da.current)===null||rA===void 0||rA.onKeyDown.apply(rA,[Ua].concat(pc))}Ui==null||Ui.apply(void 0,[Ua].concat(pc))},Hl=function(Ua){for(var Ms=arguments.length,nc=new Array(Ms>1?Ms-1:0),Yl=1;Yl<Ms;Yl++)nc[Yl-1]=arguments[Yl];if(wl){var pu;(pu=da.current)===null||pu===void 0||pu.onKeyUp.apply(pu,[Ua].concat(nc))}Ua.key==="Enter"&&(Vo.current=!1),Wr==null||Wr.apply(void 0,[Ua].concat(nc))},ks=function(Ua){var Ms=or.filter(function(nc){return nc!==Ua});cr(Ms,{type:"remove",values:[Ua]})},zl=function(){Vo.current=!1},pl=oe.useRef(!1),eA=function(){fs(!0),Bi||(Jr&&!pl.current&&Jr.apply(void 0,arguments),jr.includes("focus")&&ma(!0)),pl.current=!0},Bc=function(){Ka.current=!0,fs(!1,function(){pl.current=!1,Ka.current=!1,ma(!1)}),!Bi&&(go&&(Ar==="tags"?wi(go,{source:"submit"}):Ar==="multiple"&&wi("",{source:"blur"})),ni&&ni.apply(void 0,arguments))},tc=[];oe.useEffect(function(){return function(){tc.forEach(function(Oa){return clearTimeout(Oa)}),tc.splice(0,tc.length)}},[]);var ss=function(Ua){var Ms,nc=Ua.target,Yl=(Ms=Ro.current)===null||Ms===void 0?void 0:Ms.getPopupElement();if(Yl&&Yl.contains(nc)){var pu=setTimeout(function(){var Jl=tc.indexOf(pu);if(Jl!==-1&&tc.splice(Jl,1),Mo(),!_o&&!Yl.contains(document.activeElement)){var pc;(pc=oa.current)===null||pc===void 0||pc.focus()}});tc.push(pu)}for(var Kc=arguments.length,hc=new Array(Kc>1?Kc-1:0),fA=1;fA<Kc;fA++)hc[fA-1]=arguments[fA];to==null||to.apply(void 0,[Ua].concat(hc))},ns=oe.useState({}),KA=(0,ze.Z)(ns,2),tA=KA[1];function Qs(){tA({})}var Sl;gs&&(Sl=function(Ua){ma(Ua)}),qe(function(){var Oa;return[No.current,(Oa=Ro.current)===null||Oa===void 0?void 0:Oa.getPopupElement()]},_c,ma,!!gs);var Hc=oe.useMemo(function(){return(0,Je.Z)((0,Je.Z)({},un),{},{notFoundContent:nr,open:wl,triggerOpen:_c,id:dn,showSearch:yr,multiple:oi,toggleOpen:ma})},[un,nr,_c,wl,dn,yr,oi,ma]),zc=!!io||Zn,ml;zc&&(ml=oe.createElement(Ce,{className:ve()("".concat(Kt,"-arrow"),(0,Ie.Z)({},"".concat(Kt,"-arrow-loading"),Zn)),customizeIcon:io,customizeIconProps:{loading:Zn,searchValue:go,open:wl,focused:as,showSearch:yr}}));var _u=function(){var Ua;Rn==null||Rn(),(Ua=oa.current)===null||Ua===void 0||Ua.focus(),cr([],{type:"clear",values:or}),Ga("",!1,!1)},Ws=Ee(Kt,_u,or,yi,ji,Bi,go,Ar),Gs=Ws.allowClear,lu=Ws.clearIcon,NA=oe.createElement(So,{ref:da}),$A=ve()(Kt,pn,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(Kt,"-focused"),as),"".concat(Kt,"-multiple"),oi),"".concat(Kt,"-single"),!oi),"".concat(Kt,"-allow-clear"),yi),"".concat(Kt,"-show-arrow"),zc),"".concat(Kt,"-disabled"),Bi),"".concat(Kt,"-loading"),Zn),"".concat(Kt,"-open"),wl),"".concat(Kt,"-customize-input"),Fa),"".concat(Kt,"-show-search"),yr)),uu=oe.createElement(le,{ref:Ro,disabled:Bi,prefixCls:Kt,visible:_c,popupElement:NA,animation:ki,transitionName:ko,dropdownStyle:co,dropdownClassName:Xo,direction:Yr,dropdownMatchSelectWidth:wo,dropdownRender:eo,dropdownAlign:bo,placement:Go,builtinPlacements:Tn,getPopupContainer:Lo,empty:sr,getTriggerDOMNode:function(Ua){return qo.current||Ua},onPopupVisibleChange:Sl,onPopupMouseEnter:Qs},gs?oe.cloneElement(gs,{ref:nl}):oe.createElement(rn,(0,x.Z)({},un,{domRef:qo,prefixCls:Kt,inputElement:Fa,ref:oa,id:dn,prefix:Ji,showSearch:yr,autoClearSearchValue:bi,mode:Ar,activeDescendantId:_i,tagRender:Pr,values:or,open:wl,onToggleOpen:ma,activeValue:Fi,searchValue:go,onSearch:Ga,onSearchSubmit:$a,onRemove:ks,tokenWithEnter:Ea,onInputBlur:zl}))),hu;return gs?hu=uu:hu=oe.createElement("div",(0,x.Z)({className:$A},qr,{ref:No,onMouseDown:ss,onKeyDown:Ma,onKeyUp:Hl,onFocus:eA,onBlur:Bc}),oe.createElement(lt,{visible:as&&!wl,values:or}),uu,ml,Gs&&lu),oe.createElement(ke.Provider,{value:Hc},hu)}),en=sn,zn=function(){return null};zn.isSelectOptGroup=!0;var Fn=zn,Ut=function(){return null};Ut.isSelectOption=!0;var an=Ut,_n=ae(80547),Vn=ae(2738),It=ae(48911);function Wt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var on=["disabled","title","children","style","className"];function vn(un){return typeof un=="string"||typeof un=="number"}var Yn=function(wn,Mt){var dn=Ke(),Kt=dn.prefixCls,pn=dn.id,Nn=dn.open,Pr=dn.multiple,Yr=dn.mode,ci=dn.searchValue,or=dn.toggleOpen,cr=dn.notFoundContent,sr=dn.onPopupScroll,ti=oe.useContext(Ct),nr=ti.maxCount,Rn=ti.flattenOptions,Ar=ti.onActiveValue,Bi=ti.defaultActiveFirstOption,Zn=ti.onSelect,yn=ti.menuItemSelectedIcon,Wn=ti.rawValues,rr=ti.fieldNames,pr=ti.virtual,Kr=ti.direction,Fi=ti.listHeight,fi=ti.listItemHeight,_i=ti.optionRender,hi="".concat(Kt,"-item"),bi=(0,_n.Z)(function(){return Rn},[Nn,Rn],function(Gi,jr){return jr[0]&&Gi[1]!==jr[1]}),wi=oe.useRef(null),Yi=oe.useMemo(function(){return Pr&&st(nr)&&(Wn==null?void 0:Wn.size)>=nr},[Pr,nr,Wn==null?void 0:Wn.size]),pi=function(jr){jr.preventDefault()},yi=function(jr){var Jr;(Jr=wi.current)===null||Jr===void 0||Jr.scrollTo(typeof jr=="number"?{index:jr}:jr)},Ji=oe.useCallback(function(Gi){return Yr==="combobox"?!1:Wn.has(Gi)},[Yr,(0,dt.Z)(Wn).toString(),Wn.size]),io=function(jr){for(var Jr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ni=bi.length,Wr=0;Wr<ni;Wr+=1){var Ui=(jr+Wr*Jr+ni)%ni,to=bi[Ui]||{},$r=to.group,oi=to.data;if(!$r&&!(oi!=null&&oi.disabled)&&(Ji(oi.value)||!Yi))return Ui}return-1},ji=oe.useState(function(){return io(0)}),So=(0,ze.Z)(ji,2),ki=So[0],ko=So[1],co=function(jr){var Jr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ko(jr);var ni={source:Jr?"keyboard":"mouse"},Wr=bi[jr];if(!Wr){Ar(null,-1,ni);return}Ar(Wr.value,jr,ni)};(0,oe.useEffect)(function(){co(Bi!==!1?io(0):-1)},[bi.length,ci]);var Xo=oe.useCallback(function(Gi){return Yr==="combobox"?String(Gi).toLowerCase()===ci.toLowerCase():Wn.has(Gi)},[Yr,ci,(0,dt.Z)(Wn).toString(),Wn.size]);(0,oe.useEffect)(function(){var Gi=setTimeout(function(){if(!Pr&&Nn&&Wn.size===1){var Jr=Array.from(Wn)[0],ni=bi.findIndex(function(Wr){var Ui=Wr.data;return ci?String(Ui.value).startsWith(ci):Ui.value===Jr});ni!==-1&&(co(ni),yi(ni))}});if(Nn){var jr;(jr=wi.current)===null||jr===void 0||jr.scrollTo(void 0)}return function(){return clearTimeout(Gi)}},[Nn,ci]);var wo=function(jr){jr!==void 0&&Zn(jr,{selected:!Wn.has(jr)}),Pr||or(!1)};if(oe.useImperativeHandle(Mt,function(){return{onKeyDown:function(jr){var Jr=jr.which,ni=jr.ctrlKey;switch(Jr){case Ve.Z.N:case Ve.Z.P:case Ve.Z.UP:case Ve.Z.DOWN:{var Wr=0;if(Jr===Ve.Z.UP?Wr=-1:Jr===Ve.Z.DOWN?Wr=1:Wt()&&ni&&(Jr===Ve.Z.N?Wr=1:Jr===Ve.Z.P&&(Wr=-1)),Wr!==0){var Ui=io(ki+Wr,Wr);yi(Ui),co(Ui,!0)}break}case Ve.Z.TAB:case Ve.Z.ENTER:{var to,$r=bi[ki];$r&&!($r!=null&&(to=$r.data)!==null&&to!==void 0&&to.disabled)&&!Yi?wo($r.value):wo(void 0),Nn&&jr.preventDefault();break}case Ve.Z.ESC:or(!1),Nn&&jr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(jr){yi(jr)}}}),bi.length===0)return oe.createElement("div",{role:"listbox",id:"".concat(pn,"_list"),className:"".concat(hi,"-empty"),onMouseDown:pi},cr);var eo=Object.keys(rr).map(function(Gi){return rr[Gi]}),bo=function(jr){return jr.label};function Go(Gi,jr){var Jr=Gi.group;return{role:Jr?"presentation":"option",id:"".concat(pn,"_list_").concat(jr)}}var Tn=function(jr){var Jr=bi[jr];if(!Jr)return null;var ni=Jr.data||{},Wr=ni.value,Ui=Jr.group,to=(0,ot.Z)(ni,!0),$r=bo(Jr);return Jr?oe.createElement("div",(0,x.Z)({"aria-label":typeof $r=="string"&&!Ui?$r:null},to,{key:jr},Go(Jr,jr),{"aria-selected":Xo(Wr)}),Wr):null},Lo={role:"listbox",id:"".concat(pn,"_list")};return oe.createElement(oe.Fragment,null,pr&&oe.createElement("div",(0,x.Z)({},Lo,{style:{height:0,width:0,overflow:"hidden"}}),Tn(ki-1),Tn(ki),Tn(ki+1)),oe.createElement(It.Z,{itemKey:"key",ref:wi,data:bi,height:Fi,itemHeight:fi,fullHeight:!1,onMouseDown:pi,onScroll:sr,virtual:pr,direction:Kr,innerProps:pr?null:Lo},function(Gi,jr){var Jr=Gi.group,ni=Gi.groupOption,Wr=Gi.data,Ui=Gi.label,to=Gi.value,$r=Wr.key;if(Jr){var oi,yr=(oi=Wr.title)!==null&&oi!==void 0?oi:vn(Ui)?Ui.toString():void 0;return oe.createElement("div",{className:ve()(hi,"".concat(hi,"-group"),Wr.className),title:yr},Ui!==void 0?Ui:$r)}var qr=Wr.disabled,Ao=Wr.title,Jo=Wr.children,_o=Wr.style,pa=Wr.className,No=(0,Le.Z)(Wr,on),qo=(0,Vn.Z)(No,eo),Ro=Ji(to),oa=qr||!Ro&&Yi,da="".concat(hi,"-option"),Ka=ve()(hi,da,pa,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(da,"-grouped"),ni),"".concat(da,"-active"),ki===jr&&!oa),"".concat(da,"-disabled"),oa),"".concat(da,"-selected"),Ro)),_s=bo(Gi),js=!yn||typeof yn=="function"||Ro,as=typeof _s=="number"?_s:_s||to,fs=vn(as)?as.toString():void 0;return Ao!==void 0&&(fs=Ao),oe.createElement("div",(0,x.Z)({},(0,ot.Z)(qo),pr?{}:Go(Gi,jr),{"aria-selected":Xo(to),className:Ka,title:fs,onMouseMove:function(){ki===jr||oa||co(jr)},onClick:function(){oa||wo(to)},style:_o}),oe.createElement("div",{className:"".concat(da,"-content")},typeof _i=="function"?_i(Gi,{index:jr}):as),oe.isValidElement(yn)||Ro,js&&oe.createElement(Ce,{className:"".concat(hi,"-option-state"),customizeIcon:yn,customizeIconProps:{value:to,disabled:oa,isSelected:Ro}},Ro?"\u2713":null))}))},Lr=oe.forwardRef(Yn),ri=Lr,zr=function(un,wn){var Mt=oe.useRef({values:new Map,options:new Map}),dn=oe.useMemo(function(){var pn=Mt.current,Nn=pn.values,Pr=pn.options,Yr=un.map(function(cr){if(cr.label===void 0){var sr;return(0,Je.Z)((0,Je.Z)({},cr),{},{label:(sr=Nn.get(cr.value))===null||sr===void 0?void 0:sr.label})}return cr}),ci=new Map,or=new Map;return Yr.forEach(function(cr){ci.set(cr.value,cr),or.set(cr.value,wn.get(cr.value)||Pr.get(cr.value))}),Mt.current.values=ci,Mt.current.options=or,Yr},[un,wn]),Kt=oe.useCallback(function(pn){return wn.get(pn)||Mt.current.options.get(pn)},[wn]);return[dn,Kt]};function Ir(un,wn){return it(un).join("").toUpperCase().includes(wn)}var tr=function(un,wn,Mt,dn,Kt){return oe.useMemo(function(){if(!Mt||dn===!1)return un;var pn=wn.options,Nn=wn.label,Pr=wn.value,Yr=[],ci=typeof dn=="function",or=Mt.toUpperCase(),cr=ci?dn:function(ti,nr){return Kt?Ir(nr[Kt],or):nr[pn]?Ir(nr[Nn!=="children"?Nn:"label"],or):Ir(nr[Pr],or)},sr=ci?function(ti){return Et(ti)}:function(ti){return ti};return un.forEach(function(ti){if(ti[pn]){var nr=cr(Mt,sr(ti));if(nr)Yr.push(ti);else{var Rn=ti[pn].filter(function(Ar){return cr(Mt,sr(Ar))});Rn.length&&Yr.push((0,Je.Z)((0,Je.Z)({},ti),{},(0,Ie.Z)({},pn,Rn)))}return}cr(Mt,sr(ti))&&Yr.push(ti)}),Yr},[un,dn,Kt,Mt,wn])},vr=ae(6551),Qn=ae(11592),qn=["children","value"],lr=["children"];function $n(un){var wn=un,Mt=wn.key,dn=wn.props,Kt=dn.children,pn=dn.value,Nn=(0,Le.Z)(dn,qn);return(0,Je.Z)({key:Mt,value:pn!==void 0?pn:Mt,children:Kt},Nn)}function Br(un){var wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Qn.Z)(un).map(function(Mt,dn){if(!oe.isValidElement(Mt)||!Mt.type)return null;var Kt=Mt,pn=Kt.type.isSelectOptGroup,Nn=Kt.key,Pr=Kt.props,Yr=Pr.children,ci=(0,Le.Z)(Pr,lr);return wn||!pn?$n(Mt):(0,Je.Z)((0,Je.Z)({key:"__RC_SELECT_GRP__".concat(Nn===null?dn:Nn,"__"),label:Nn},ci),{},{options:Br(Yr)})}).filter(function(Mt){return Mt})}var Sr=function(wn,Mt,dn,Kt,pn){return oe.useMemo(function(){var Nn=wn,Pr=!wn;Pr&&(Nn=Br(Mt));var Yr=new Map,ci=new Map,or=function(ti,nr,Rn){Rn&&typeof Rn=="string"&&ti.set(nr[Rn],nr)},cr=function sr(ti){for(var nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Rn=0;Rn<ti.length;Rn+=1){var Ar=ti[Rn];!Ar[dn.options]||nr?(Yr.set(Ar[dn.value],Ar),or(ci,Ar,dn.label),or(ci,Ar,Kt),or(ci,Ar,pn)):sr(Ar[dn.options],!0)}};return cr(Nn),{options:Nn,valueOptions:Yr,labelOptions:ci}},[wn,Mt,dn,Kt,pn])},kr=Sr;function gi(un){var wn=oe.useRef();wn.current=un;var Mt=oe.useCallback(function(){return wn.current.apply(wn,arguments)},[]);return Mt}function Ai(un){var wn=un.mode,Mt=un.options,dn=un.children,Kt=un.backfill,pn=un.allowClear,Nn=un.placeholder,Pr=un.getInputElement,Yr=un.showSearch,ci=un.onSearch,or=un.defaultOpen,cr=un.autoFocus,sr=un.labelInValue,ti=un.value,nr=un.inputValue,Rn=un.optionLabelProp,Ar=isMultiple(wn),Bi=Yr!==void 0?Yr:Ar||wn==="combobox",Zn=Mt||convertChildrenToData(dn);if(warning(wn!=="tags"||Zn.every(function(pr){return!pr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),wn==="tags"||wn==="combobox"){var yn=Zn.some(function(pr){return pr.options?pr.options.some(function(Kr){return typeof("value"in Kr?Kr.value:Kr.key)=="number"}):typeof("value"in pr?pr.value:pr.key)=="number"});warning(!yn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(wn!=="combobox"||!Rn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(wn==="combobox"||!Kt,"`backfill` only works with `combobox` mode."),warning(wn==="combobox"||!Pr,"`getInputElement` only work with `combobox` mode."),noteOnce(wn!=="combobox"||!Pr||!pn||!Nn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ci&&!Bi&&wn!=="combobox"&&wn!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!or||cr,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ti!=null){var Wn=toArray(ti);warning(!sr||Wn.every(function(pr){return _typeof(pr)==="object"&&("key"in pr||"value"in pr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Ar||Array.isArray(ti),"`value` should be array when `mode` is `multiple` or `tags`")}if(dn){var rr=null;toNodeArray(dn).some(function(pr){if(!React.isValidElement(pr)||!pr.type)return!1;var Kr=pr,Fi=Kr.type;if(Fi.isSelectOption)return!1;if(Fi.isSelectOptGroup){var fi=toNodeArray(pr.props.children).every(function(_i){return!React.isValidElement(_i)||!pr.type||_i.type.isSelectOption?!0:(rr=_i.type,!1)});return!fi}return rr=Fi,!0}),rr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(rr.displayName||rr.name||rr,"`.")),warning(nr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function di(un,wn){if(un){var Mt=function dn(Kt){for(var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Nn=0;Nn<Kt.length;Nn++){var Pr=Kt[Nn];if(Pr[wn==null?void 0:wn.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!pn&&Array.isArray(Pr[wn==null?void 0:wn.options])&&dn(Pr[wn==null?void 0:wn.options],!0))break}};Mt(un)}}var Ti=null,Ei=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],no=["inputValue"];function zi(un){return!un||(0,Ue.Z)(un)!=="object"}var fr=oe.forwardRef(function(un,wn){var Mt=un.id,dn=un.mode,Kt=un.prefixCls,pn=Kt===void 0?"rc-select":Kt,Nn=un.backfill,Pr=un.fieldNames,Yr=un.inputValue,ci=un.searchValue,or=un.onSearch,cr=un.autoClearSearchValue,sr=cr===void 0?!0:cr,ti=un.onSelect,nr=un.onDeselect,Rn=un.dropdownMatchSelectWidth,Ar=Rn===void 0?!0:Rn,Bi=un.filterOption,Zn=un.filterSort,yn=un.optionFilterProp,Wn=un.optionLabelProp,rr=un.options,pr=un.optionRender,Kr=un.children,Fi=un.defaultActiveFirstOption,fi=un.menuItemSelectedIcon,_i=un.virtual,hi=un.direction,bi=un.listHeight,wi=bi===void 0?200:bi,Yi=un.listItemHeight,pi=Yi===void 0?20:Yi,yi=un.labelRender,Ji=un.value,io=un.defaultValue,ji=un.labelInValue,So=un.onChange,ki=un.maxCount,ko=(0,Le.Z)(un,Ei),co=(0,vr.ZP)(Mt),Xo=gn(dn),wo=!!(!rr&&Kr),eo=oe.useMemo(function(){return Bi===void 0&&dn==="combobox"?!1:Bi},[Bi,dn]),bo=oe.useMemo(function(){return mt(Pr,wo)},[JSON.stringify(Pr),wo]),Go=(0,he.Z)("",{value:ci!==void 0?ci:Yr,postState:function(Ea){return Ea||""}}),Tn=(0,ze.Z)(Go,2),Lo=Tn[0],Gi=Tn[1],jr=kr(rr,Kr,bo,yn,Wn),Jr=jr.valueOptions,ni=jr.labelOptions,Wr=jr.options,Ui=oe.useCallback(function(ma){var Ea=it(ma);return Ea.map(function(ha){var wa,Ja,Ga,$a,Ql;if(zi(ha))wa=ha;else{var fu;Ga=ha.key,Ja=ha.label,wa=(fu=ha.value)!==null&&fu!==void 0?fu:Ga}var kl=Jr.get(wa);if(kl){var Hi;if(Ja===void 0&&(Ja=kl==null?void 0:kl[Wn||bo.label]),Ga===void 0&&(Ga=(Hi=kl==null?void 0:kl.key)!==null&&Hi!==void 0?Hi:wa),$a=kl==null?void 0:kl.disabled,Ql=kl==null?void 0:kl.title,0)var Vo}return{label:Ja,value:wa,key:Ga,disabled:$a,title:Ql}})},[bo,Wn,Jr]),to=(0,he.Z)(io,{value:Ji}),$r=(0,ze.Z)(to,2),oi=$r[0],yr=$r[1],qr=oe.useMemo(function(){var ma,Ea=Xo&&oi===null?[]:oi,ha=Ui(Ea);return dn==="combobox"&&De((ma=ha[0])===null||ma===void 0?void 0:ma.value)?[]:ha},[oi,Ui,dn,Xo]),Ao=zr(qr,Jr),Jo=(0,ze.Z)(Ao,2),_o=Jo[0],pa=Jo[1],No=oe.useMemo(function(){if(!dn&&_o.length===1){var ma=_o[0];if(ma.value===null&&(ma.label===null||ma.label===void 0))return[]}return _o.map(function(Ea){var ha;return(0,Je.Z)((0,Je.Z)({},Ea),{},{label:(ha=typeof yi=="function"?yi(Ea):Ea.label)!==null&&ha!==void 0?ha:Ea.value})})},[dn,_o,yi]),qo=oe.useMemo(function(){return new Set(_o.map(function(ma){return ma.value}))},[_o]);oe.useEffect(function(){if(dn==="combobox"){var ma,Ea=(ma=_o[0])===null||ma===void 0?void 0:ma.value;Gi(Ze(Ea)?String(Ea):"")}},[_o]);var Ro=gi(function(ma,Ea){var ha=Ea!=null?Ea:ma;return(0,Ie.Z)((0,Ie.Z)({},bo.value,ma),bo.label,ha)}),oa=oe.useMemo(function(){if(dn!=="tags")return Wr;var ma=(0,dt.Z)(Wr),Ea=function(wa){return Jr.has(wa)};return(0,dt.Z)(_o).sort(function(ha,wa){return ha.value<wa.value?-1:1}).forEach(function(ha){var wa=ha.value;Ea(wa)||ma.push(Ro(wa,ha.label))}),ma},[Ro,Wr,Jr,_o,dn]),da=tr(oa,bo,Lo,eo,yn),Ka=oe.useMemo(function(){return dn!=="tags"||!Lo||da.some(function(ma){return ma[yn||"value"]===Lo})||da.some(function(ma){return ma[bo.value]===Lo})?da:[Ro(Lo)].concat((0,dt.Z)(da))},[Ro,yn,dn,da,Lo,bo]),_s=function ma(Ea){var ha=(0,dt.Z)(Ea).sort(function(wa,Ja){return Zn(wa,Ja,{searchValue:Lo})});return ha.map(function(wa){return Array.isArray(wa.options)?(0,Je.Z)((0,Je.Z)({},wa),{},{options:wa.options.length>0?ma(wa.options):wa.options}):wa})},js=oe.useMemo(function(){return Zn?_s(Ka):Ka},[Ka,Zn,Lo]),as=oe.useMemo(function(){return gt(js,{fieldNames:bo,childrenAsData:wo})},[js,bo,wo]),fs=function(Ea){var ha=Ui(Ea);if(yr(ha),So&&(ha.length!==_o.length||ha.some(function(Ga,$a){var Ql;return((Ql=_o[$a])===null||Ql===void 0?void 0:Ql.value)!==(Ga==null?void 0:Ga.value)}))){var wa=ji?ha:ha.map(function(Ga){return Ga.value}),Ja=ha.map(function(Ga){return Et(pa(Ga.value))});So(Xo?wa:wa[0],Xo?Ja:Ja[0])}},Mo=oe.useState(null),go=(0,ze.Z)(Mo,2),Fa=go[0],gs=go[1],nl=oe.useState(0),rl=(0,ze.Z)(nl,2),il=rl[0],yl=rl[1],su=Fi!==void 0?Fi:dn!=="combobox",ol=oe.useCallback(function(ma,Ea){var ha=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},wa=ha.source,Ja=wa===void 0?"keyboard":wa;yl(Ea),Nn&&dn==="combobox"&&ma!==null&&Ja==="keyboard"&&gs(String(ma))},[Nn,dn]),jl=function(Ea,ha,wa){var Ja=function(){var ks,zl=pa(Ea);return[ji?{label:zl==null?void 0:zl[bo.label],value:Ea,key:(ks=zl==null?void 0:zl.key)!==null&&ks!==void 0?ks:Ea}:Ea,Et(zl)]};if(ha&&ti){var Ga=Ja(),$a=(0,ze.Z)(Ga,2),Ql=$a[0],fu=$a[1];ti(Ql,fu)}else if(!ha&&nr&&wa!=="clear"){var kl=Ja(),Hi=(0,ze.Z)(kl,2),Vo=Hi[0],Ma=Hi[1];nr(Vo,Ma)}},Lu=gi(function(ma,Ea){var ha,wa=Xo?Ea.selected:!0;wa?ha=Xo?[].concat((0,dt.Z)(_o),[ma]):[ma]:ha=_o.filter(function(Ja){return Ja.value!==ma}),fs(ha),jl(ma,wa),dn==="combobox"?gs(""):(!gn||sr)&&(Gi(""),gs(""))}),Xl=function(Ea,ha){fs(Ea);var wa=ha.type,Ja=ha.values;(wa==="remove"||wa==="clear")&&Ja.forEach(function(Ga){jl(Ga.value,!1,wa)})},wl=function(Ea,ha){if(Gi(Ea),gs(null),ha.source==="submit"){var wa=(Ea||"").trim();if(wa){var Ja=Array.from(new Set([].concat((0,dt.Z)(qo),[wa])));fs(Ja),jl(wa,!0),Gi("")}return}ha.source!=="blur"&&(dn==="combobox"&&fs(Ea),or==null||or(Ea))},ec=function(Ea){var ha=Ea;dn!=="tags"&&(ha=Ea.map(function(Ja){var Ga=ni.get(Ja);return Ga==null?void 0:Ga.value}).filter(function(Ja){return Ja!==void 0}));var wa=Array.from(new Set([].concat((0,dt.Z)(qo),(0,dt.Z)(ha))));fs(wa),wa.forEach(function(Ja){jl(Ja,!0)})},_c=oe.useMemo(function(){var ma=_i!==!1&&Ar!==!1;return(0,Je.Z)((0,Je.Z)({},jr),{},{flattenOptions:as,onActiveValue:ol,defaultActiveFirstOption:su,onSelect:Lu,menuItemSelectedIcon:fi,rawValues:qo,fieldNames:bo,virtual:ma,direction:hi,listHeight:wi,listItemHeight:pi,childrenAsData:wo,maxCount:ki,optionRender:pr})},[ki,jr,as,ol,su,Lu,fi,qo,bo,_i,Ar,hi,wi,pi,wo,pr]);return oe.createElement(Ct.Provider,{value:_c},oe.createElement(en,(0,x.Z)({},ko,{id:co,prefixCls:pn,ref:wn,omitDomProps:no,mode:dn,displayValues:No,onDisplayValuesChange:Xl,direction:hi,searchValue:Lo,onSearch:wl,autoClearSearchValue:sr,onSearchSplit:ec,dropdownMatchSelectWidth:Ar,OptionList:ri,emptyOptions:!as.length,activeValue:Fa,activeDescendantId:"".concat(co,"_list_").concat(il)})))}),Ur=fr;Ur.Option=an,Ur.OptGroup=Fn;var vi=Ur,Gt=vi},22711:function(Jn,kt,ae){"use strict";ae.r(kt),ae.d(kt,{ResizableTextArea:function(){return He},default:function(){return Nt}});var x=ae(54476),dt=ae(20068),Ie=ae(33885),Je=ae(94480),ze=ae(42978),Le=ae(75931),Ue=ae(92310),he=ae.n(Ue),xe=ae(36901),oe=ae(66003),Oe=ae(30292),ve=ae(18929),Me=ae(59301),Se=ae(76190),Te=ae(29301),we=ae(34280),Ce=ae(16089),Ee=`
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;
`,ke=["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"],Ke={},Qe;function je(it){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Bt=it.getAttribute("id")||it.getAttribute("data-reactid")||it.getAttribute("name");if(at&&Ke[Bt])return Ke[Bt];var Ze=window.getComputedStyle(it),De=Ze.getPropertyValue("box-sizing")||Ze.getPropertyValue("-moz-box-sizing")||Ze.getPropertyValue("-webkit-box-sizing"),ut=parseFloat(Ze.getPropertyValue("padding-bottom"))+parseFloat(Ze.getPropertyValue("padding-top")),$t=parseFloat(Ze.getPropertyValue("border-bottom-width"))+parseFloat(Ze.getPropertyValue("border-top-width")),zt=ke.map(function(Ot){return"".concat(Ot,":").concat(Ze.getPropertyValue(Ot))}).join(";"),tt={sizingStyle:zt,paddingSize:ut,borderSize:$t,boxSizing:De};return at&&Bt&&(Ke[Bt]=tt),tt}function qe(it){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Bt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Qe||(Qe=document.createElement("textarea"),Qe.setAttribute("tab-index","-1"),Qe.setAttribute("aria-hidden","true"),Qe.setAttribute("name","hiddenTextarea"),document.body.appendChild(Qe)),it.getAttribute("wrap")?Qe.setAttribute("wrap",it.getAttribute("wrap")):Qe.removeAttribute("wrap");var De=je(it,at),ut=De.paddingSize,$t=De.borderSize,zt=De.boxSizing,tt=De.sizingStyle;Qe.setAttribute("style","".concat(tt,";").concat(Ee)),Qe.value=it.value||it.placeholder||"";var Ot=void 0,Rt=void 0,fn,Tt=Qe.scrollHeight;if(zt==="border-box"?Tt+=$t:zt==="content-box"&&(Tt-=ut),Bt!==null||Ze!==null){Qe.value=" ";var mn=Qe.scrollHeight-ut;Bt!==null&&(Ot=mn*Bt,zt==="border-box"&&(Ot=Ot+ut+$t),Tt=Math.max(Ot,Tt)),Ze!==null&&(Rt=mn*Ze,zt==="border-box"&&(Rt=Rt+ut+$t),fn=Tt>Rt?"":"hidden",Tt=Math.min(Rt,Tt))}var Dt={height:Tt,overflowY:fn,resize:"none"};return Ot&&(Dt.minHeight=Ot),Rt&&(Dt.maxHeight=Rt),Dt}var Ve=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ct=0,ot=1,pt=2,bt=Me.forwardRef(function(it,at){var Bt=it,Ze=Bt.prefixCls,De=Bt.defaultValue,ut=Bt.value,$t=Bt.autoSize,zt=Bt.onResize,tt=Bt.className,Ot=Bt.style,Rt=Bt.disabled,fn=Bt.onChange,Tt=Bt.onInternalAutoSize,mn=(0,Le.Z)(Bt,Ve),Dt=(0,ve.Z)(De,{value:ut,postState:function(an){return an!=null?an:""}}),En=(0,ze.Z)(Dt,2),rn=En[0],de=En[1],pe=function(an){de(an.target.value),fn==null||fn(an)},ie=Me.useRef();Me.useImperativeHandle(at,function(){return{textArea:ie.current}});var ee=Me.useMemo(function(){return $t&&(0,Se.Z)($t)==="object"?[$t.minRows,$t.maxRows]:[]},[$t]),se=(0,ze.Z)(ee,2),le=se[0],Be=se[1],We=!!$t,st=function(){try{if(document.activeElement===ie.current){var an=ie.current,_n=an.selectionStart,Vn=an.selectionEnd,It=an.scrollTop;ie.current.setSelectionRange(_n,Vn),ie.current.scrollTop=It}}catch(Wt){}},mt=Me.useState(pt),gt=(0,ze.Z)(mt,2),Et=gt[0],Lt=gt[1],jt=Me.useState(),Ct=(0,ze.Z)(jt,2),lt=Ct[0],Vt=Ct[1],Zt=function(){Lt(ct)};(0,we.Z)(function(){We&&Zt()},[ut,le,Be,We]),(0,we.Z)(function(){if(Et===ct)Lt(ot);else if(Et===ot){var Ut=qe(ie.current,!1,le,Be);Lt(pt),Vt(Ut)}else st()},[Et]);var gn=Me.useRef(),sn=function(){Ce.Z.cancel(gn.current)},en=function(an){Et===pt&&(zt==null||zt(an),$t&&(sn(),gn.current=(0,Ce.Z)(function(){Zt()})))};Me.useEffect(function(){return sn},[]);var zn=We?lt:null,Fn=(0,Ie.Z)((0,Ie.Z)({},Ot),zn);return(Et===ct||Et===ot)&&(Fn.overflowY="hidden",Fn.overflowX="hidden"),Me.createElement(Te.Z,{onResize:en,disabled:!($t||zt)},Me.createElement("textarea",(0,x.Z)({},mn,{ref:ie,style:Fn,className:he()(Ze,tt,(0,dt.Z)({},"".concat(Ze,"-disabled"),Rt)),disabled:Rt,value:rn,onChange:pe})))}),He=bt,ht=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],_e=Me.forwardRef(function(it,at){var Bt,Ze=it.defaultValue,De=it.value,ut=it.onFocus,$t=it.onBlur,zt=it.onChange,tt=it.allowClear,Ot=it.maxLength,Rt=it.onCompositionStart,fn=it.onCompositionEnd,Tt=it.suffix,mn=it.prefixCls,Dt=mn===void 0?"rc-textarea":mn,En=it.showCount,rn=it.count,de=it.className,pe=it.style,ie=it.disabled,ee=it.hidden,se=it.classNames,le=it.styles,Be=it.onResize,We=it.onClear,st=it.onPressEnter,mt=it.readOnly,gt=it.autoSize,Et=it.onKeyDown,Lt=(0,Le.Z)(it,ht),jt=(0,ve.Z)(Ze,{value:De,defaultValue:Ze}),Ct=(0,ze.Z)(jt,2),lt=Ct[0],Vt=Ct[1],Zt=lt==null?"":String(lt),gn=Me.useState(!1),sn=(0,ze.Z)(gn,2),en=sn[0],zn=sn[1],Fn=Me.useRef(!1),Ut=Me.useState(null),an=(0,ze.Z)(Ut,2),_n=an[0],Vn=an[1],It=(0,Me.useRef)(null),Wt=(0,Me.useRef)(null),on=function(){var Ur;return(Ur=Wt.current)===null||Ur===void 0?void 0:Ur.textArea},vn=function(){on().focus()};(0,Me.useImperativeHandle)(at,function(){var fr;return{resizableTextArea:Wt.current,focus:vn,blur:function(){on().blur()},nativeElement:((fr=It.current)===null||fr===void 0?void 0:fr.nativeElement)||on()}}),(0,Me.useEffect)(function(){zn(function(fr){return!ie&&fr})},[ie]);var Yn=Me.useState(null),Lr=(0,ze.Z)(Yn,2),ri=Lr[0],zr=Lr[1];Me.useEffect(function(){if(ri){var fr;(fr=on()).setSelectionRange.apply(fr,(0,Je.Z)(ri))}},[ri]);var Ir=(0,oe.Z)(rn,En),tr=(Bt=Ir.max)!==null&&Bt!==void 0?Bt:Ot,vr=Number(tr)>0,Qn=Ir.strategy(Zt),qn=!!tr&&Qn>tr,lr=function(Ur,vi){var Gt=vi;!Fn.current&&Ir.exceedFormatter&&Ir.max&&Ir.strategy(vi)>Ir.max&&(Gt=Ir.exceedFormatter(vi,{max:Ir.max}),vi!==Gt&&zr([on().selectionStart||0,on().selectionEnd||0])),Vt(Gt),(0,Oe.rJ)(Ur.currentTarget,Ur,zt,Gt)},$n=function(Ur){Fn.current=!0,Rt==null||Rt(Ur)},Br=function(Ur){Fn.current=!1,lr(Ur,Ur.currentTarget.value),fn==null||fn(Ur)},Sr=function(Ur){lr(Ur,Ur.target.value)},kr=function(Ur){Ur.key==="Enter"&&st&&st(Ur),Et==null||Et(Ur)},gi=function(Ur){zn(!0),ut==null||ut(Ur)},Ai=function(Ur){zn(!1),$t==null||$t(Ur)},di=function(Ur){Vt(""),vn(),(0,Oe.rJ)(on(),Ur,zt)},Ti=Tt,Ei;Ir.show&&(Ir.showFormatter?Ei=Ir.showFormatter({value:Zt,count:Qn,maxLength:tr}):Ei="".concat(Qn).concat(vr?" / ".concat(tr):""),Ti=Me.createElement(Me.Fragment,null,Ti,Me.createElement("span",{className:he()("".concat(Dt,"-data-count"),se==null?void 0:se.count),style:le==null?void 0:le.count},Ei)));var no=function(Ur){var vi;Be==null||Be(Ur),(vi=on())!==null&&vi!==void 0&&vi.style.height&&Vn(!0)},zi=!gt&&!En&&!tt;return Me.createElement(xe.BaseInput,{ref:It,value:Zt,allowClear:tt,handleReset:di,suffix:Ti,prefixCls:Dt,classNames:(0,Ie.Z)((0,Ie.Z)({},se),{},{affixWrapper:he()(se==null?void 0:se.affixWrapper,(0,dt.Z)((0,dt.Z)({},"".concat(Dt,"-show-count"),En),"".concat(Dt,"-textarea-allow-clear"),tt))}),disabled:ie,focused:en,className:he()(de,qn&&"".concat(Dt,"-out-of-range")),style:(0,Ie.Z)((0,Ie.Z)({},pe),_n&&!zi?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ei=="string"?Ei:void 0}},hidden:ee,readOnly:mt,onClear:We},Me.createElement(He,(0,x.Z)({},Lt,{autoSize:gt,maxLength:Ot,onKeyDown:kr,onChange:Sr,onFocus:gi,onBlur:Ai,onCompositionStart:$n,onCompositionEnd:Br,className:he()(se==null?void 0:se.textarea),style:(0,Ie.Z)((0,Ie.Z)({},le==null?void 0:le.textarea),{},{resize:pe==null?void 0:pe.resize}),disabled:ie,prefixCls:Dt,onResize:no,ref:Wt,readOnly:mt})))}),Re=_e,Nt=Re},639:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return Ke}});var x=ae(54476),dt=ae(20068),Ie=ae(33885),Je=ae(42978),ze=ae(75931),Le=ae(59301),Ue=ae(92310),he=ae.n(Ue),xe=ae(26112),oe=ae(30699),Oe=function(je){for(var qe=je.prefixCls,Ve=je.level,ct=je.isStart,ot=je.isEnd,pt="".concat(qe,"-indent-unit"),bt=[],He=0;He<Ve;He+=1)bt.push(Le.createElement("span",{key:He,className:he()(pt,(0,dt.Z)((0,dt.Z)({},"".concat(pt,"-start"),ct[He]),"".concat(pt,"-end"),ot[He]))}));return Le.createElement("span",{"aria-hidden":"true",className:"".concat(qe,"-indent")},bt)},ve=Le.memo(Oe),Me=ae(65065),Se=ae(34061),Te=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],we="open",Ce="close",Ee="---",ke=function(je){var qe,Ve,ct,ot=je.eventKey,pt=je.className,bt=je.style,He=je.dragOver,ht=je.dragOverGapTop,_e=je.dragOverGapBottom,Re=je.isLeaf,Nt=je.isStart,it=je.isEnd,at=je.expanded,Bt=je.selected,Ze=je.checked,De=je.halfChecked,ut=je.loading,$t=je.domRef,zt=je.active,tt=je.data,Ot=je.onMouseMove,Rt=je.selectable,fn=(0,ze.Z)(je,Te),Tt=Le.useContext(oe.k),mn=Le.useContext(oe.y),Dt=Le.useRef(null),En=Le.useState(!1),rn=(0,Je.Z)(En,2),de=rn[0],pe=rn[1],ie=!!(Tt.disabled||je.disabled||(qe=mn.nodeDisabled)!==null&&qe!==void 0&&qe.call(mn,tt)),ee=Le.useMemo(function(){return!Tt.checkable||je.checkable===!1?!1:Tt.checkable},[Tt.checkable,je.checkable]),se=function(Qn){ie||Tt.onNodeSelect(Qn,(0,Se.F)(je))},le=function(Qn){ie||!ee||je.disableCheckbox||Tt.onNodeCheck(Qn,(0,Se.F)(je),!Ze)},Be=Le.useMemo(function(){return typeof Rt=="boolean"?Rt:Tt.selectable},[Rt,Tt.selectable]),We=function(Qn){Tt.onNodeClick(Qn,(0,Se.F)(je)),Be?se(Qn):le(Qn)},st=function(Qn){Tt.onNodeDoubleClick(Qn,(0,Se.F)(je))},mt=function(Qn){Tt.onNodeMouseEnter(Qn,(0,Se.F)(je))},gt=function(Qn){Tt.onNodeMouseLeave(Qn,(0,Se.F)(je))},Et=function(Qn){Tt.onNodeContextMenu(Qn,(0,Se.F)(je))},Lt=Le.useMemo(function(){return!!(Tt.draggable&&(!Tt.draggable.nodeDraggable||Tt.draggable.nodeDraggable(tt)))},[Tt.draggable,tt]),jt=function(Qn){Qn.stopPropagation(),pe(!0),Tt.onNodeDragStart(Qn,je);try{Qn.dataTransfer.setData("text/plain","")}catch(qn){}},Ct=function(Qn){Qn.preventDefault(),Qn.stopPropagation(),Tt.onNodeDragEnter(Qn,je)},lt=function(Qn){Qn.preventDefault(),Qn.stopPropagation(),Tt.onNodeDragOver(Qn,je)},Vt=function(Qn){Qn.stopPropagation(),Tt.onNodeDragLeave(Qn,je)},Zt=function(Qn){Qn.stopPropagation(),pe(!1),Tt.onNodeDragEnd(Qn,je)},gn=function(Qn){Qn.preventDefault(),Qn.stopPropagation(),pe(!1),Tt.onNodeDrop(Qn,je)},sn=function(Qn){ut||Tt.onNodeExpand(Qn,(0,Se.F)(je))},en=Le.useMemo(function(){var vr=(0,Me.Z)(Tt.keyEntities,ot)||{},Qn=vr.children;return!!(Qn||[]).length},[Tt.keyEntities,ot]),zn=Le.useMemo(function(){return Re===!1?!1:Re||!Tt.loadData&&!en||Tt.loadData&&je.loaded&&!en},[Re,Tt.loadData,en,je.loaded]);Le.useEffect(function(){ut||typeof Tt.loadData=="function"&&at&&!zn&&!je.loaded&&Tt.onNodeLoad((0,Se.F)(je))},[ut,Tt.loadData,Tt.onNodeLoad,at,zn,je]);var Fn=Le.useMemo(function(){var vr;return(vr=Tt.draggable)!==null&&vr!==void 0&&vr.icon?Le.createElement("span",{className:"".concat(Tt.prefixCls,"-draggable-icon")},Tt.draggable.icon):null},[Tt.draggable]),Ut=function(Qn){var qn=je.switcherIcon||Tt.switcherIcon;return typeof qn=="function"?qn((0,Ie.Z)((0,Ie.Z)({},je),{},{isLeaf:Qn})):qn},an=function(){if(zn){var Qn=Ut(!0);return Qn!==!1?Le.createElement("span",{className:he()("".concat(Tt.prefixCls,"-switcher"),"".concat(Tt.prefixCls,"-switcher-noop"))},Qn):null}var qn=Ut(!1);return qn!==!1?Le.createElement("span",{onClick:sn,className:he()("".concat(Tt.prefixCls,"-switcher"),"".concat(Tt.prefixCls,"-switcher_").concat(at?we:Ce))},qn):null},_n=Le.useMemo(function(){if(!ee)return null;var vr=typeof ee!="boolean"?ee:null;return Le.createElement("span",{className:he()("".concat(Tt.prefixCls,"-checkbox"),(0,dt.Z)((0,dt.Z)((0,dt.Z)({},"".concat(Tt.prefixCls,"-checkbox-checked"),Ze),"".concat(Tt.prefixCls,"-checkbox-indeterminate"),!Ze&&De),"".concat(Tt.prefixCls,"-checkbox-disabled"),ie||je.disableCheckbox)),onClick:le,role:"checkbox","aria-checked":De?"mixed":Ze,"aria-disabled":ie||je.disableCheckbox,"aria-label":"Select ".concat(typeof je.title=="string"?je.title:"tree node")},vr)},[ee,Ze,De,ie,je.disableCheckbox,je.title]),Vn=Le.useMemo(function(){return zn?null:at?we:Ce},[zn,at]),It=Le.useMemo(function(){return Le.createElement("span",{className:he()("".concat(Tt.prefixCls,"-iconEle"),"".concat(Tt.prefixCls,"-icon__").concat(Vn||"docu"),(0,dt.Z)({},"".concat(Tt.prefixCls,"-icon_loading"),ut))})},[Tt.prefixCls,Vn,ut]),Wt=Le.useMemo(function(){var vr=!!Tt.draggable,Qn=!je.disabled&&vr&&Tt.dragOverNodeKey===ot;return Qn?Tt.dropIndicatorRender({dropPosition:Tt.dropPosition,dropLevelOffset:Tt.dropLevelOffset,indent:Tt.indent,prefixCls:Tt.prefixCls,direction:Tt.direction}):null},[Tt.dropPosition,Tt.dropLevelOffset,Tt.indent,Tt.prefixCls,Tt.direction,Tt.draggable,Tt.dragOverNodeKey,Tt.dropIndicatorRender]),on=Le.useMemo(function(){var vr=je.title,Qn=vr===void 0?Ee:vr,qn="".concat(Tt.prefixCls,"-node-content-wrapper"),lr;if(Tt.showIcon){var $n=je.icon||Tt.icon;lr=$n?Le.createElement("span",{className:he()("".concat(Tt.prefixCls,"-iconEle"),"".concat(Tt.prefixCls,"-icon__customize"))},typeof $n=="function"?$n(je):$n):It}else Tt.loadData&&ut&&(lr=It);var Br;return typeof Qn=="function"?Br=Qn(tt):Tt.titleRender?Br=Tt.titleRender(tt):Br=Qn,Le.createElement("span",{ref:Dt,title:typeof Qn=="string"?Qn:"",className:he()(qn,"".concat(qn,"-").concat(Vn||"normal"),(0,dt.Z)({},"".concat(Tt.prefixCls,"-node-selected"),!ie&&(Bt||de))),onMouseEnter:mt,onMouseLeave:gt,onContextMenu:Et,onClick:We,onDoubleClick:st},lr,Le.createElement("span",{className:"".concat(Tt.prefixCls,"-title")},Br),Wt)},[Tt.prefixCls,Tt.showIcon,je,Tt.icon,It,Tt.titleRender,tt,Vn,mt,gt,Et,We,st]),vn=(0,xe.Z)(fn,{aria:!0,data:!0}),Yn=(0,Me.Z)(Tt.keyEntities,ot)||{},Lr=Yn.level,ri=it[it.length-1],zr=!ie&&Lt,Ir=Tt.draggingNodeKey===ot,tr=Rt!==void 0?{"aria-selected":!!Rt}:void 0;return Le.createElement("div",(0,x.Z)({ref:$t,role:"treeitem","aria-expanded":Re?void 0:at,className:he()(pt,"".concat(Tt.prefixCls,"-treenode"),(ct={},(0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)(ct,"".concat(Tt.prefixCls,"-treenode-disabled"),ie),"".concat(Tt.prefixCls,"-treenode-switcher-").concat(at?"open":"close"),!Re),"".concat(Tt.prefixCls,"-treenode-checkbox-checked"),Ze),"".concat(Tt.prefixCls,"-treenode-checkbox-indeterminate"),De),"".concat(Tt.prefixCls,"-treenode-selected"),Bt),"".concat(Tt.prefixCls,"-treenode-loading"),ut),"".concat(Tt.prefixCls,"-treenode-active"),zt),"".concat(Tt.prefixCls,"-treenode-leaf-last"),ri),"".concat(Tt.prefixCls,"-treenode-draggable"),Lt),"dragging",Ir),(0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)(ct,"drop-target",Tt.dropTargetKey===ot),"drop-container",Tt.dropContainerKey===ot),"drag-over",!ie&&He),"drag-over-gap-top",!ie&&ht),"drag-over-gap-bottom",!ie&&_e),"filter-node",(Ve=Tt.filterTreeNode)===null||Ve===void 0?void 0:Ve.call(Tt,(0,Se.F)(je))),"".concat(Tt.prefixCls,"-treenode-leaf"),zn))),style:bt,draggable:zr,onDragStart:zr?jt:void 0,onDragEnter:Lt?Ct:void 0,onDragOver:Lt?lt:void 0,onDragLeave:Lt?Vt:void 0,onDrop:Lt?gn:void 0,onDragEnd:Lt?Zt:void 0,onMouseMove:Ot},tr,vn),Le.createElement(ve,{prefixCls:Tt.prefixCls,level:Lr,isStart:Nt,isEnd:it}),Fn,an(),_n,on)};ke.isTreeNode=1;var Ke=ke},30699:function(Jn,kt,ae){"use strict";ae.d(kt,{k:function(){return dt},y:function(){return Ie}});var x=ae(59301),dt=x.createContext(null),Ie=x.createContext({})},3741:function(Jn,kt,ae){"use strict";ae.d(kt,{OF:function(){return ot.Z},y6:function(){return Ce.y},ZP:function(){return ie}});var x=ae(54476),dt=ae(76190),Ie=ae(33885),Je=ae(94480),ze=ae(67732),Le=ae(83652),Ue=ae(31226),he=ae(42403),xe=ae(158),oe=ae(20068),Oe=ae(92310),ve=ae.n(Oe),Me=ae(10228),Se=ae(26112),Te=ae(48736),we=ae(59301),Ce=ae(30699),Ee=function(se){var le=se.dropPosition,Be=se.dropLevelOffset,We=se.indent,st={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(le){case-1:st.top=0,st.left=-Be*We;break;case 1:st.bottom=0,st.left=-Be*We;break;case 0:st.bottom=0,st.left=We;break}return we.createElement("div",{style:st})},ke=Ee;function Ke(ee){if(ee==null)throw new TypeError("Cannot destructure "+ee)}var Qe=ae(42978),je=ae(75931),qe=ae(34280),Ve=ae(48911),ct=ae(77900),ot=ae(639);function pt(ee,se){var le=we.useState(!1),Be=(0,Qe.Z)(le,2),We=Be[0],st=Be[1];(0,qe.Z)(function(){if(We)return ee(),function(){se()}},[We]),(0,qe.Z)(function(){return st(!0),function(){st(!1)}},[])}var bt=pt,He=ae(34061),ht=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],_e=we.forwardRef(function(ee,se){var le=ee.className,Be=ee.style,We=ee.motion,st=ee.motionNodes,mt=ee.motionType,gt=ee.onMotionStart,Et=ee.onMotionEnd,Lt=ee.active,jt=ee.treeNodeRequiredProps,Ct=(0,je.Z)(ee,ht),lt=we.useState(!0),Vt=(0,Qe.Z)(lt,2),Zt=Vt[0],gn=Vt[1],sn=we.useContext(Ce.k),en=sn.prefixCls,zn=st&&mt!=="hide";(0,qe.Z)(function(){st&&zn!==Zt&&gn(zn)},[st]);var Fn=function(){st&&gt()},Ut=we.useRef(!1),an=function(){st&&!Ut.current&&(Ut.current=!0,Et())};bt(Fn,an);var _n=function(It){zn===It&&an()};return st?we.createElement(ct.default,(0,x.Z)({ref:se,visible:Zt},We,{motionAppear:mt==="show",onVisibleChanged:_n}),function(Vn,It){var Wt=Vn.className,on=Vn.style;return we.createElement("div",{ref:It,className:ve()("".concat(en,"-treenode-motion"),Wt),style:on},st.map(function(vn){var Yn=Object.assign({},(Ke(vn.data),vn.data)),Lr=vn.title,ri=vn.key,zr=vn.isStart,Ir=vn.isEnd;delete Yn.children;var tr=(0,He.H8)(ri,jt);return we.createElement(ot.Z,(0,x.Z)({},Yn,tr,{title:Lr,active:Lt,data:vn.data,key:ri,isStart:zr,isEnd:Ir}))}))}):we.createElement(ot.Z,(0,x.Z)({domRef:se,className:le,style:Be},Ct,{active:Lt}))}),Re=_e;function Nt(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],le=ee.length,Be=se.length;if(Math.abs(le-Be)!==1)return{add:!1,key:null};function We(st,mt){var gt=new Map;st.forEach(function(Lt){gt.set(Lt,!0)});var Et=mt.filter(function(Lt){return!gt.has(Lt)});return Et.length===1?Et[0]:null}return le<Be?{add:!0,key:We(ee,se)}:{add:!1,key:We(se,ee)}}function it(ee,se,le){var Be=ee.findIndex(function(gt){return gt.key===le}),We=ee[Be+1],st=se.findIndex(function(gt){return gt.key===le});if(We){var mt=se.findIndex(function(gt){return gt.key===We.key});return se.slice(st+1,mt)}return se.slice(st+1)}var at=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Bt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ze=function(){},De="RC_TREE_MOTION_".concat(Math.random()),ut={key:De},$t={key:De,level:0,index:0,pos:"0",node:ut,nodes:[ut]},zt={parent:null,children:[],pos:$t.pos,data:ut,title:null,key:De,isStart:[],isEnd:[]};function tt(ee,se,le,Be){return se===!1||!le?ee:ee.slice(0,Math.ceil(le/Be)+1)}function Ot(ee){var se=ee.key,le=ee.pos;return(0,He.km)(se,le)}function Rt(ee){for(var se=String(ee.data.key),le=ee;le.parent;)le=le.parent,se="".concat(le.data.key," > ").concat(se);return se}var fn=we.forwardRef(function(ee,se){var le=ee.prefixCls,Be=ee.data,We=ee.selectable,st=ee.checkable,mt=ee.expandedKeys,gt=ee.selectedKeys,Et=ee.checkedKeys,Lt=ee.loadedKeys,jt=ee.loadingKeys,Ct=ee.halfCheckedKeys,lt=ee.keyEntities,Vt=ee.disabled,Zt=ee.dragging,gn=ee.dragOverNodeKey,sn=ee.dropPosition,en=ee.motion,zn=ee.height,Fn=ee.itemHeight,Ut=ee.virtual,an=ee.scrollWidth,_n=ee.focusable,Vn=ee.activeItem,It=ee.focused,Wt=ee.tabIndex,on=ee.onKeyDown,vn=ee.onFocus,Yn=ee.onBlur,Lr=ee.onActiveChange,ri=ee.onListChangeStart,zr=ee.onListChangeEnd,Ir=(0,je.Z)(ee,at),tr=we.useRef(null),vr=we.useRef(null);we.useImperativeHandle(se,function(){return{scrollTo:function(Pr){tr.current.scrollTo(Pr)},getIndentWidth:function(){return vr.current.offsetWidth}}});var Qn=we.useState(mt),qn=(0,Qe.Z)(Qn,2),lr=qn[0],$n=qn[1],Br=we.useState(Be),Sr=(0,Qe.Z)(Br,2),kr=Sr[0],gi=Sr[1],Ai=we.useState(Be),di=(0,Qe.Z)(Ai,2),Ti=di[0],Ei=di[1],no=we.useState([]),zi=(0,Qe.Z)(no,2),fr=zi[0],Ur=zi[1],vi=we.useState(null),Gt=(0,Qe.Z)(vi,2),un=Gt[0],wn=Gt[1],Mt=we.useRef(Be);Mt.current=Be;function dn(){var Nn=Mt.current;gi(Nn),Ei(Nn),Ur([]),wn(null),zr()}(0,qe.Z)(function(){$n(mt);var Nn=Nt(lr,mt);if(Nn.key!==null)if(Nn.add){var Pr=kr.findIndex(function(ti){var nr=ti.key;return nr===Nn.key}),Yr=tt(it(kr,Be,Nn.key),Ut,zn,Fn),ci=kr.slice();ci.splice(Pr+1,0,zt),Ei(ci),Ur(Yr),wn("show")}else{var or=Be.findIndex(function(ti){var nr=ti.key;return nr===Nn.key}),cr=tt(it(Be,kr,Nn.key),Ut,zn,Fn),sr=Be.slice();sr.splice(or+1,0,zt),Ei(sr),Ur(cr),wn("hide")}else kr!==Be&&(gi(Be),Ei(Be))},[mt,Be]),we.useEffect(function(){Zt||dn()},[Zt]);var Kt=en?Ti:Be,pn={expandedKeys:mt,selectedKeys:gt,loadedKeys:Lt,loadingKeys:jt,checkedKeys:Et,halfCheckedKeys:Ct,dragOverNodeKey:gn,dropPosition:sn,keyEntities:lt};return we.createElement(we.Fragment,null,It&&Vn&&we.createElement("span",{style:Bt,"aria-live":"assertive"},Rt(Vn)),we.createElement("div",null,we.createElement("input",{style:Bt,disabled:_n===!1||Vt,tabIndex:_n!==!1?Wt:null,onKeyDown:on,onFocus:vn,onBlur:Yn,value:"",onChange:Ze,"aria-label":"for screen reader"})),we.createElement("div",{className:"".concat(le,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},we.createElement("div",{className:"".concat(le,"-indent")},we.createElement("div",{ref:vr,className:"".concat(le,"-indent-unit")}))),we.createElement(Ve.Z,(0,x.Z)({},Ir,{data:Kt,itemKey:Ot,height:zn,fullHeight:!1,virtual:Ut,itemHeight:Fn,scrollWidth:an,prefixCls:"".concat(le,"-list"),ref:tr,role:"tree",onVisibleChange:function(Pr){Pr.every(function(Yr){return Ot(Yr)!==De})&&dn()}}),function(Nn){var Pr=Nn.pos,Yr=Object.assign({},(Ke(Nn.data),Nn.data)),ci=Nn.title,or=Nn.key,cr=Nn.isStart,sr=Nn.isEnd,ti=(0,He.km)(or,Pr);delete Yr.key,delete Yr.children;var nr=(0,He.H8)(ti,pn);return we.createElement(Re,(0,x.Z)({},Yr,nr,{title:ci,active:!!Vn&&or===Vn.key,pos:Pr,data:Nn.data,isStart:cr,isEnd:sr,motion:en,motionNodes:or===De?fr:null,motionType:un,onMotionStart:ri,onMotionEnd:dn,treeNodeRequiredProps:pn,onMouseMove:function(){Lr(null)}}))}))}),Tt=fn,mn=ae(82661),Dt=ae(34643),En=ae(65065),rn=10,de=function(ee){(0,he.Z)(le,ee);var se=(0,xe.Z)(le);function le(){var Be;(0,ze.Z)(this,le);for(var We=arguments.length,st=new Array(We),mt=0;mt<We;mt++)st[mt]=arguments[mt];return Be=se.call.apply(se,[this].concat(st)),(0,oe.Z)((0,Ue.Z)(Be),"destroyed",!1),(0,oe.Z)((0,Ue.Z)(Be),"delayedDragEnterLogic",void 0),(0,oe.Z)((0,Ue.Z)(Be),"loadingRetryTimes",{}),(0,oe.Z)((0,Ue.Z)(Be),"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,He.w$)()}),(0,oe.Z)((0,Ue.Z)(Be),"dragStartMousePosition",null),(0,oe.Z)((0,Ue.Z)(Be),"dragNodeProps",null),(0,oe.Z)((0,Ue.Z)(Be),"currentMouseOverDroppableNodeKey",null),(0,oe.Z)((0,Ue.Z)(Be),"listRef",we.createRef()),(0,oe.Z)((0,Ue.Z)(Be),"onNodeDragStart",function(gt,Et){var Lt=Be.state,jt=Lt.expandedKeys,Ct=Lt.keyEntities,lt=Be.props.onDragStart,Vt=Et.eventKey;Be.dragNodeProps=Et,Be.dragStartMousePosition={x:gt.clientX,y:gt.clientY};var Zt=(0,mn._5)(jt,Vt);Be.setState({draggingNodeKey:Vt,dragChildrenKeys:(0,mn.wA)(Vt,Ct),indent:Be.listRef.current.getIndentWidth()}),Be.setExpandedKeys(Zt),window.addEventListener("dragend",Be.onWindowDragEnd),lt==null||lt({event:gt,node:(0,He.F)(Et)})}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeDragEnter",function(gt,Et){var Lt=Be.state,jt=Lt.expandedKeys,Ct=Lt.keyEntities,lt=Lt.dragChildrenKeys,Vt=Lt.flattenNodes,Zt=Lt.indent,gn=Be.props,sn=gn.onDragEnter,en=gn.onExpand,zn=gn.allowDrop,Fn=gn.direction,Ut=Et.pos,an=Et.eventKey;if(Be.currentMouseOverDroppableNodeKey!==an&&(Be.currentMouseOverDroppableNodeKey=an),!Be.dragNodeProps){Be.resetDragState();return}var _n=(0,mn.OM)(gt,Be.dragNodeProps,Et,Zt,Be.dragStartMousePosition,zn,Vt,Ct,jt,Fn),Vn=_n.dropPosition,It=_n.dropLevelOffset,Wt=_n.dropTargetKey,on=_n.dropContainerKey,vn=_n.dropTargetPos,Yn=_n.dropAllowed,Lr=_n.dragOverNodeKey;if(lt.includes(Wt)||!Yn){Be.resetDragState();return}if(Be.delayedDragEnterLogic||(Be.delayedDragEnterLogic={}),Object.keys(Be.delayedDragEnterLogic).forEach(function(ri){clearTimeout(Be.delayedDragEnterLogic[ri])}),Be.dragNodeProps.eventKey!==Et.eventKey&&(gt.persist(),Be.delayedDragEnterLogic[Ut]=window.setTimeout(function(){if(Be.state.draggingNodeKey!==null){var ri=(0,Je.Z)(jt),zr=(0,En.Z)(Ct,Et.eventKey);zr&&(zr.children||[]).length&&(ri=(0,mn.L0)(jt,Et.eventKey)),Be.props.hasOwnProperty("expandedKeys")||Be.setExpandedKeys(ri),en==null||en(ri,{node:(0,He.F)(Et),expanded:!0,nativeEvent:gt.nativeEvent})}},800)),Be.dragNodeProps.eventKey===Wt&&It===0){Be.resetDragState();return}Be.setState({dragOverNodeKey:Lr,dropPosition:Vn,dropLevelOffset:It,dropTargetKey:Wt,dropContainerKey:on,dropTargetPos:vn,dropAllowed:Yn}),sn==null||sn({event:gt,node:(0,He.F)(Et),expandedKeys:jt})}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeDragOver",function(gt,Et){var Lt=Be.state,jt=Lt.dragChildrenKeys,Ct=Lt.flattenNodes,lt=Lt.keyEntities,Vt=Lt.expandedKeys,Zt=Lt.indent,gn=Be.props,sn=gn.onDragOver,en=gn.allowDrop,zn=gn.direction;if(Be.dragNodeProps){var Fn=(0,mn.OM)(gt,Be.dragNodeProps,Et,Zt,Be.dragStartMousePosition,en,Ct,lt,Vt,zn),Ut=Fn.dropPosition,an=Fn.dropLevelOffset,_n=Fn.dropTargetKey,Vn=Fn.dropContainerKey,It=Fn.dropTargetPos,Wt=Fn.dropAllowed,on=Fn.dragOverNodeKey;jt.includes(_n)||!Wt||(Be.dragNodeProps.eventKey===_n&&an===0?Be.state.dropPosition===null&&Be.state.dropLevelOffset===null&&Be.state.dropTargetKey===null&&Be.state.dropContainerKey===null&&Be.state.dropTargetPos===null&&Be.state.dropAllowed===!1&&Be.state.dragOverNodeKey===null||Be.resetDragState():Ut===Be.state.dropPosition&&an===Be.state.dropLevelOffset&&_n===Be.state.dropTargetKey&&Vn===Be.state.dropContainerKey&&It===Be.state.dropTargetPos&&Wt===Be.state.dropAllowed&&on===Be.state.dragOverNodeKey||Be.setState({dropPosition:Ut,dropLevelOffset:an,dropTargetKey:_n,dropContainerKey:Vn,dropTargetPos:It,dropAllowed:Wt,dragOverNodeKey:on}),sn==null||sn({event:gt,node:(0,He.F)(Et)}))}}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeDragLeave",function(gt,Et){Be.currentMouseOverDroppableNodeKey===Et.eventKey&&!gt.currentTarget.contains(gt.relatedTarget)&&(Be.resetDragState(),Be.currentMouseOverDroppableNodeKey=null);var Lt=Be.props.onDragLeave;Lt==null||Lt({event:gt,node:(0,He.F)(Et)})}),(0,oe.Z)((0,Ue.Z)(Be),"onWindowDragEnd",function(gt){Be.onNodeDragEnd(gt,null,!0),window.removeEventListener("dragend",Be.onWindowDragEnd)}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeDragEnd",function(gt,Et){var Lt=Be.props.onDragEnd;Be.setState({dragOverNodeKey:null}),Be.cleanDragState(),Lt==null||Lt({event:gt,node:(0,He.F)(Et)}),Be.dragNodeProps=null,window.removeEventListener("dragend",Be.onWindowDragEnd)}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeDrop",function(gt,Et){var Lt,jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ct=Be.state,lt=Ct.dragChildrenKeys,Vt=Ct.dropPosition,Zt=Ct.dropTargetKey,gn=Ct.dropTargetPos,sn=Ct.dropAllowed;if(sn){var en=Be.props.onDrop;if(Be.setState({dragOverNodeKey:null}),Be.cleanDragState(),Zt!==null){var zn=(0,Ie.Z)((0,Ie.Z)({},(0,He.H8)(Zt,Be.getTreeNodeRequiredProps())),{},{active:((Lt=Be.getActiveItem())===null||Lt===void 0?void 0:Lt.key)===Zt,data:(0,En.Z)(Be.state.keyEntities,Zt).node}),Fn=lt.includes(Zt);(0,Te.ZP)(!Fn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ut=(0,mn.yx)(gn),an={event:gt,node:(0,He.F)(zn),dragNode:Be.dragNodeProps?(0,He.F)(Be.dragNodeProps):null,dragNodesKeys:[Be.dragNodeProps.eventKey].concat(lt),dropToGap:Vt!==0,dropPosition:Vt+Number(Ut[Ut.length-1])};jt||en==null||en(an),Be.dragNodeProps=null}}}),(0,oe.Z)((0,Ue.Z)(Be),"cleanDragState",function(){var gt=Be.state.draggingNodeKey;gt!==null&&Be.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Be.dragStartMousePosition=null,Be.currentMouseOverDroppableNodeKey=null}),(0,oe.Z)((0,Ue.Z)(Be),"triggerExpandActionExpand",function(gt,Et){var Lt=Be.state,jt=Lt.expandedKeys,Ct=Lt.flattenNodes,lt=Et.expanded,Vt=Et.key,Zt=Et.isLeaf;if(!(Zt||gt.shiftKey||gt.metaKey||gt.ctrlKey)){var gn=Ct.filter(function(en){return en.key===Vt})[0],sn=(0,He.F)((0,Ie.Z)((0,Ie.Z)({},(0,He.H8)(Vt,Be.getTreeNodeRequiredProps())),{},{data:gn.data}));Be.setExpandedKeys(lt?(0,mn._5)(jt,Vt):(0,mn.L0)(jt,Vt)),Be.onNodeExpand(gt,sn)}}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeClick",function(gt,Et){var Lt=Be.props,jt=Lt.onClick,Ct=Lt.expandAction;Ct==="click"&&Be.triggerExpandActionExpand(gt,Et),jt==null||jt(gt,Et)}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeDoubleClick",function(gt,Et){var Lt=Be.props,jt=Lt.onDoubleClick,Ct=Lt.expandAction;Ct==="doubleClick"&&Be.triggerExpandActionExpand(gt,Et),jt==null||jt(gt,Et)}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeSelect",function(gt,Et){var Lt=Be.state.selectedKeys,jt=Be.state,Ct=jt.keyEntities,lt=jt.fieldNames,Vt=Be.props,Zt=Vt.onSelect,gn=Vt.multiple,sn=Et.selected,en=Et[lt.key],zn=!sn;zn?gn?Lt=(0,mn.L0)(Lt,en):Lt=[en]:Lt=(0,mn._5)(Lt,en);var Fn=Lt.map(function(Ut){var an=(0,En.Z)(Ct,Ut);return an?an.node:null}).filter(Boolean);Be.setUncontrolledState({selectedKeys:Lt}),Zt==null||Zt(Lt,{event:"select",selected:zn,node:Et,selectedNodes:Fn,nativeEvent:gt.nativeEvent})}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeCheck",function(gt,Et,Lt){var jt=Be.state,Ct=jt.keyEntities,lt=jt.checkedKeys,Vt=jt.halfCheckedKeys,Zt=Be.props,gn=Zt.checkStrictly,sn=Zt.onCheck,en=Et.key,zn,Fn={event:"check",node:Et,checked:Lt,nativeEvent:gt.nativeEvent};if(gn){var Ut=Lt?(0,mn.L0)(lt,en):(0,mn._5)(lt,en),an=(0,mn._5)(Vt,en);zn={checked:Ut,halfChecked:an},Fn.checkedNodes=Ut.map(function(vn){return(0,En.Z)(Ct,vn)}).filter(Boolean).map(function(vn){return vn.node}),Be.setUncontrolledState({checkedKeys:Ut})}else{var _n=(0,Dt.S)([].concat((0,Je.Z)(lt),[en]),!0,Ct),Vn=_n.checkedKeys,It=_n.halfCheckedKeys;if(!Lt){var Wt=new Set(Vn);Wt.delete(en);var on=(0,Dt.S)(Array.from(Wt),{checked:!1,halfCheckedKeys:It},Ct);Vn=on.checkedKeys,It=on.halfCheckedKeys}zn=Vn,Fn.checkedNodes=[],Fn.checkedNodesPositions=[],Fn.halfCheckedKeys=It,Vn.forEach(function(vn){var Yn=(0,En.Z)(Ct,vn);if(Yn){var Lr=Yn.node,ri=Yn.pos;Fn.checkedNodes.push(Lr),Fn.checkedNodesPositions.push({node:Lr,pos:ri})}}),Be.setUncontrolledState({checkedKeys:Vn},!1,{halfCheckedKeys:It})}sn==null||sn(zn,Fn)}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeLoad",function(gt){var Et,Lt=gt.key,jt=Be.state.keyEntities,Ct=(0,En.Z)(jt,Lt);if(!(Ct!=null&&(Et=Ct.children)!==null&&Et!==void 0&&Et.length)){var lt=new Promise(function(Vt,Zt){Be.setState(function(gn){var sn=gn.loadedKeys,en=sn===void 0?[]:sn,zn=gn.loadingKeys,Fn=zn===void 0?[]:zn,Ut=Be.props,an=Ut.loadData,_n=Ut.onLoad;if(!an||en.includes(Lt)||Fn.includes(Lt))return null;var Vn=an(gt);return Vn.then(function(){var It=Be.state.loadedKeys,Wt=(0,mn.L0)(It,Lt);_n==null||_n(Wt,{event:"load",node:gt}),Be.setUncontrolledState({loadedKeys:Wt}),Be.setState(function(on){return{loadingKeys:(0,mn._5)(on.loadingKeys,Lt)}}),Vt()}).catch(function(It){if(Be.setState(function(on){return{loadingKeys:(0,mn._5)(on.loadingKeys,Lt)}}),Be.loadingRetryTimes[Lt]=(Be.loadingRetryTimes[Lt]||0)+1,Be.loadingRetryTimes[Lt]>=rn){var Wt=Be.state.loadedKeys;(0,Te.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Be.setUncontrolledState({loadedKeys:(0,mn.L0)(Wt,Lt)}),Vt()}Zt(It)}),{loadingKeys:(0,mn.L0)(Fn,Lt)}})});return lt.catch(function(){}),lt}}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeMouseEnter",function(gt,Et){var Lt=Be.props.onMouseEnter;Lt==null||Lt({event:gt,node:Et})}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeMouseLeave",function(gt,Et){var Lt=Be.props.onMouseLeave;Lt==null||Lt({event:gt,node:Et})}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeContextMenu",function(gt,Et){var Lt=Be.props.onRightClick;Lt&&(gt.preventDefault(),Lt({event:gt,node:Et}))}),(0,oe.Z)((0,Ue.Z)(Be),"onFocus",function(){var gt=Be.props.onFocus;Be.setState({focused:!0});for(var Et=arguments.length,Lt=new Array(Et),jt=0;jt<Et;jt++)Lt[jt]=arguments[jt];gt==null||gt.apply(void 0,Lt)}),(0,oe.Z)((0,Ue.Z)(Be),"onBlur",function(){var gt=Be.props.onBlur;Be.setState({focused:!1}),Be.onActiveChange(null);for(var Et=arguments.length,Lt=new Array(Et),jt=0;jt<Et;jt++)Lt[jt]=arguments[jt];gt==null||gt.apply(void 0,Lt)}),(0,oe.Z)((0,Ue.Z)(Be),"getTreeNodeRequiredProps",function(){var gt=Be.state,Et=gt.expandedKeys,Lt=gt.selectedKeys,jt=gt.loadedKeys,Ct=gt.loadingKeys,lt=gt.checkedKeys,Vt=gt.halfCheckedKeys,Zt=gt.dragOverNodeKey,gn=gt.dropPosition,sn=gt.keyEntities;return{expandedKeys:Et||[],selectedKeys:Lt||[],loadedKeys:jt||[],loadingKeys:Ct||[],checkedKeys:lt||[],halfCheckedKeys:Vt||[],dragOverNodeKey:Zt,dropPosition:gn,keyEntities:sn}}),(0,oe.Z)((0,Ue.Z)(Be),"setExpandedKeys",function(gt){var Et=Be.state,Lt=Et.treeData,jt=Et.fieldNames,Ct=(0,He.oH)(Lt,gt,jt);Be.setUncontrolledState({expandedKeys:gt,flattenNodes:Ct},!0)}),(0,oe.Z)((0,Ue.Z)(Be),"onNodeExpand",function(gt,Et){var Lt=Be.state.expandedKeys,jt=Be.state,Ct=jt.listChanging,lt=jt.fieldNames,Vt=Be.props,Zt=Vt.onExpand,gn=Vt.loadData,sn=Et.expanded,en=Et[lt.key];if(!Ct){var zn=Lt.includes(en),Fn=!sn;if((0,Te.ZP)(sn&&zn||!sn&&!zn,"Expand state not sync with index check"),Lt=Fn?(0,mn.L0)(Lt,en):(0,mn._5)(Lt,en),Be.setExpandedKeys(Lt),Zt==null||Zt(Lt,{node:Et,expanded:Fn,nativeEvent:gt.nativeEvent}),Fn&&gn){var Ut=Be.onNodeLoad(Et);Ut&&Ut.then(function(){var an=(0,He.oH)(Be.state.treeData,Lt,lt);Be.setUncontrolledState({flattenNodes:an})}).catch(function(){var an=Be.state.expandedKeys,_n=(0,mn._5)(an,en);Be.setExpandedKeys(_n)})}}}),(0,oe.Z)((0,Ue.Z)(Be),"onListChangeStart",function(){Be.setUncontrolledState({listChanging:!0})}),(0,oe.Z)((0,Ue.Z)(Be),"onListChangeEnd",function(){setTimeout(function(){Be.setUncontrolledState({listChanging:!1})})}),(0,oe.Z)((0,Ue.Z)(Be),"onActiveChange",function(gt){var Et=Be.state.activeKey,Lt=Be.props,jt=Lt.onActiveChange,Ct=Lt.itemScrollOffset,lt=Ct===void 0?0:Ct;Et!==gt&&(Be.setState({activeKey:gt}),gt!==null&&Be.scrollTo({key:gt,offset:lt}),jt==null||jt(gt))}),(0,oe.Z)((0,Ue.Z)(Be),"getActiveItem",function(){var gt=Be.state,Et=gt.activeKey,Lt=gt.flattenNodes;return Et===null?null:Lt.find(function(jt){var Ct=jt.key;return Ct===Et})||null}),(0,oe.Z)((0,Ue.Z)(Be),"offsetActiveKey",function(gt){var Et=Be.state,Lt=Et.flattenNodes,jt=Et.activeKey,Ct=Lt.findIndex(function(Zt){var gn=Zt.key;return gn===jt});Ct===-1&&gt<0&&(Ct=Lt.length),Ct=(Ct+gt+Lt.length)%Lt.length;var lt=Lt[Ct];if(lt){var Vt=lt.key;Be.onActiveChange(Vt)}else Be.onActiveChange(null)}),(0,oe.Z)((0,Ue.Z)(Be),"onKeyDown",function(gt){var Et=Be.state,Lt=Et.activeKey,jt=Et.expandedKeys,Ct=Et.checkedKeys,lt=Et.fieldNames,Vt=Be.props,Zt=Vt.onKeyDown,gn=Vt.checkable,sn=Vt.selectable;switch(gt.which){case Me.Z.UP:{Be.offsetActiveKey(-1),gt.preventDefault();break}case Me.Z.DOWN:{Be.offsetActiveKey(1),gt.preventDefault();break}}var en=Be.getActiveItem();if(en&&en.data){var zn=Be.getTreeNodeRequiredProps(),Fn=en.data.isLeaf===!1||!!(en.data[lt.children]||[]).length,Ut=(0,He.F)((0,Ie.Z)((0,Ie.Z)({},(0,He.H8)(Lt,zn)),{},{data:en.data,active:!0}));switch(gt.which){case Me.Z.LEFT:{Fn&&jt.includes(Lt)?Be.onNodeExpand({},Ut):en.parent&&Be.onActiveChange(en.parent.key),gt.preventDefault();break}case Me.Z.RIGHT:{Fn&&!jt.includes(Lt)?Be.onNodeExpand({},Ut):en.children&&en.children.length&&Be.onActiveChange(en.children[0].key),gt.preventDefault();break}case Me.Z.ENTER:case Me.Z.SPACE:{gn&&!Ut.disabled&&Ut.checkable!==!1&&!Ut.disableCheckbox?Be.onNodeCheck({},Ut,!Ct.includes(Lt)):!gn&&sn&&!Ut.disabled&&Ut.selectable!==!1&&Be.onNodeSelect({},Ut);break}}}Zt==null||Zt(gt)}),(0,oe.Z)((0,Ue.Z)(Be),"setUncontrolledState",function(gt){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Be.destroyed){var jt=!1,Ct=!0,lt={};Object.keys(gt).forEach(function(Vt){if(Be.props.hasOwnProperty(Vt)){Ct=!1;return}jt=!0,lt[Vt]=gt[Vt]}),jt&&(!Et||Ct)&&Be.setState((0,Ie.Z)((0,Ie.Z)({},lt),Lt))}}),(0,oe.Z)((0,Ue.Z)(Be),"scrollTo",function(gt){Be.listRef.current.scrollTo(gt)}),Be}return(0,Le.Z)(le,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var We=this.props,st=We.activeKey,mt=We.itemScrollOffset,gt=mt===void 0?0:mt;st!==void 0&&st!==this.state.activeKey&&(this.setState({activeKey:st}),st!==null&&this.scrollTo({key:st,offset:gt}))}},{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 We=this.state,st=We.focused,mt=We.flattenNodes,gt=We.keyEntities,Et=We.draggingNodeKey,Lt=We.activeKey,jt=We.dropLevelOffset,Ct=We.dropContainerKey,lt=We.dropTargetKey,Vt=We.dropPosition,Zt=We.dragOverNodeKey,gn=We.indent,sn=this.props,en=sn.prefixCls,zn=sn.className,Fn=sn.style,Ut=sn.showLine,an=sn.focusable,_n=sn.tabIndex,Vn=_n===void 0?0:_n,It=sn.selectable,Wt=sn.showIcon,on=sn.icon,vn=sn.switcherIcon,Yn=sn.draggable,Lr=sn.checkable,ri=sn.checkStrictly,zr=sn.disabled,Ir=sn.motion,tr=sn.loadData,vr=sn.filterTreeNode,Qn=sn.height,qn=sn.itemHeight,lr=sn.scrollWidth,$n=sn.virtual,Br=sn.titleRender,Sr=sn.dropIndicatorRender,kr=sn.onContextMenu,gi=sn.onScroll,Ai=sn.direction,di=sn.rootClassName,Ti=sn.rootStyle,Ei=(0,Se.Z)(this.props,{aria:!0,data:!0}),no;Yn&&((0,dt.Z)(Yn)==="object"?no=Yn:typeof Yn=="function"?no={nodeDraggable:Yn}:no={});var zi={prefixCls:en,selectable:It,showIcon:Wt,icon:on,switcherIcon:vn,draggable:no,draggingNodeKey:Et,checkable:Lr,checkStrictly:ri,disabled:zr,keyEntities:gt,dropLevelOffset:jt,dropContainerKey:Ct,dropTargetKey:lt,dropPosition:Vt,dragOverNodeKey:Zt,indent:gn,direction:Ai,dropIndicatorRender:Sr,loadData:tr,filterTreeNode:vr,titleRender:Br,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return we.createElement(Ce.k.Provider,{value:zi},we.createElement("div",{className:ve()(en,zn,di,(0,oe.Z)((0,oe.Z)((0,oe.Z)({},"".concat(en,"-show-line"),Ut),"".concat(en,"-focused"),st),"".concat(en,"-active-focused"),Lt!==null)),style:Ti},we.createElement(Tt,(0,x.Z)({ref:this.listRef,prefixCls:en,style:Fn,data:mt,disabled:zr,selectable:It,checkable:!!Lr,motion:Ir,dragging:Et!==null,height:Qn,itemHeight:qn,virtual:$n,focusable:an,focused:st,tabIndex:Vn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:kr,onScroll:gi,scrollWidth:lr},this.getTreeNodeRequiredProps(),Ei))))}}],[{key:"getDerivedStateFromProps",value:function(We,st){var mt=st.prevProps,gt={prevProps:We};function Et(Vn){return!mt&&We.hasOwnProperty(Vn)||mt&&mt[Vn]!==We[Vn]}var Lt,jt=st.fieldNames;if(Et("fieldNames")&&(jt=(0,He.w$)(We.fieldNames),gt.fieldNames=jt),Et("treeData")?Lt=We.treeData:Et("children")&&((0,Te.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Lt=(0,He.zn)(We.children)),Lt){gt.treeData=Lt;var Ct=(0,He.I8)(Lt,{fieldNames:jt});gt.keyEntities=(0,Ie.Z)((0,oe.Z)({},De,$t),Ct.keyEntities)}var lt=gt.keyEntities||st.keyEntities;if(Et("expandedKeys")||mt&&Et("autoExpandParent"))gt.expandedKeys=We.autoExpandParent||!mt&&We.defaultExpandParent?(0,mn.r7)(We.expandedKeys,lt):We.expandedKeys;else if(!mt&&We.defaultExpandAll){var Vt=(0,Ie.Z)({},lt);delete Vt[De];var Zt=[];Object.keys(Vt).forEach(function(Vn){var It=Vt[Vn];It.children&&It.children.length&&Zt.push(It.key)}),gt.expandedKeys=Zt}else!mt&&We.defaultExpandedKeys&&(gt.expandedKeys=We.autoExpandParent||We.defaultExpandParent?(0,mn.r7)(We.defaultExpandedKeys,lt):We.defaultExpandedKeys);if(gt.expandedKeys||delete gt.expandedKeys,Lt||gt.expandedKeys){var gn=(0,He.oH)(Lt||st.treeData,gt.expandedKeys||st.expandedKeys,jt);gt.flattenNodes=gn}if(We.selectable&&(Et("selectedKeys")?gt.selectedKeys=(0,mn.BT)(We.selectedKeys,We):!mt&&We.defaultSelectedKeys&&(gt.selectedKeys=(0,mn.BT)(We.defaultSelectedKeys,We))),We.checkable){var sn;if(Et("checkedKeys")?sn=(0,mn.E6)(We.checkedKeys)||{}:!mt&&We.defaultCheckedKeys?sn=(0,mn.E6)(We.defaultCheckedKeys)||{}:Lt&&(sn=(0,mn.E6)(We.checkedKeys)||{checkedKeys:st.checkedKeys,halfCheckedKeys:st.halfCheckedKeys}),sn){var en=sn,zn=en.checkedKeys,Fn=zn===void 0?[]:zn,Ut=en.halfCheckedKeys,an=Ut===void 0?[]:Ut;if(!We.checkStrictly){var _n=(0,Dt.S)(Fn,!0,lt);Fn=_n.checkedKeys,an=_n.halfCheckedKeys}gt.checkedKeys=Fn,gt.halfCheckedKeys=an}}return Et("loadedKeys")&&(gt.loadedKeys=We.loadedKeys),gt}}]),le}(we.Component);(0,oe.Z)(de,"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:ke,allowDrop:function(){return!0},expandAction:!1}),(0,oe.Z)(de,"TreeNode",ot.Z);var pe=de,ie=pe},82661:function(Jn,kt,ae){"use strict";ae.d(kt,{BT:function(){return we},E6:function(){return ke},L0:function(){return oe},OM:function(){return Te},_5:function(){return xe},r7:function(){return Ke},wA:function(){return ve},yx:function(){return Oe}});var x=ae(94480),dt=ae(76190),Ie=ae(48736),Je=ae(59301),ze=ae(639),Le=ae(65065),Ue=ae(34061),he=null;function xe(Qe,je){if(!Qe)return[];var qe=Qe.slice(),Ve=qe.indexOf(je);return Ve>=0&&qe.splice(Ve,1),qe}function oe(Qe,je){var qe=(Qe||[]).slice();return qe.indexOf(je)===-1&&qe.push(je),qe}function Oe(Qe){return Qe.split("-")}function ve(Qe,je){var qe=[],Ve=(0,Le.Z)(je,Qe);function ct(){var ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ot.forEach(function(pt){var bt=pt.key,He=pt.children;qe.push(bt),ct(He)})}return ct(Ve.children),qe}function Me(Qe){if(Qe.parent){var je=Oe(Qe.pos);return Number(je[je.length-1])===Qe.parent.children.length-1}return!1}function Se(Qe){var je=Oe(Qe.pos);return Number(je[je.length-1])===0}function Te(Qe,je,qe,Ve,ct,ot,pt,bt,He,ht){var _e,Re=Qe.clientX,Nt=Qe.clientY,it=Qe.target.getBoundingClientRect(),at=it.top,Bt=it.height,Ze=(ht==="rtl"?-1:1)*(((ct==null?void 0:ct.x)||0)-Re),De=(Ze-12)/Ve,ut=He.filter(function(ie){var ee;return(ee=bt[ie])===null||ee===void 0||(ee=ee.children)===null||ee===void 0?void 0:ee.length}),$t=(0,Le.Z)(bt,qe.eventKey);if(Nt<at+Bt/2){var zt=pt.findIndex(function(ie){return ie.key===$t.key}),tt=zt<=0?0:zt-1,Ot=pt[tt].key;$t=(0,Le.Z)(bt,Ot)}var Rt=$t.key,fn=$t,Tt=$t.key,mn=0,Dt=0;if(!ut.includes(Rt))for(var En=0;En<De&&Me($t);En+=1)$t=$t.parent,Dt+=1;var rn=je.data,de=$t.node,pe=!0;return Se($t)&&$t.level===0&&Nt<at+Bt/2&&ot({dragNode:rn,dropNode:de,dropPosition:-1})&&$t.key===qe.eventKey?mn=-1:(fn.children||[]).length&&ut.includes(Tt)?ot({dragNode:rn,dropNode:de,dropPosition:0})?mn=0:pe=!1:Dt===0?De>-1.5?ot({dragNode:rn,dropNode:de,dropPosition:1})?mn=1:pe=!1:ot({dragNode:rn,dropNode:de,dropPosition:0})?mn=0:ot({dragNode:rn,dropNode:de,dropPosition:1})?mn=1:pe=!1:ot({dragNode:rn,dropNode:de,dropPosition:1})?mn=1:pe=!1,{dropPosition:mn,dropLevelOffset:Dt,dropTargetKey:$t.key,dropTargetPos:$t.pos,dragOverNodeKey:Tt,dropContainerKey:mn===0?null:((_e=$t.parent)===null||_e===void 0?void 0:_e.key)||null,dropAllowed:pe}}function we(Qe,je){if(Qe){var qe=je.multiple;return qe?Qe.slice():Qe.length?[Qe[0]]:Qe}}var Ce=function(je){return je};function Ee(Qe,je){if(!Qe)return[];var qe=je||{},Ve=qe.processProps,ct=Ve===void 0?Ce:Ve,ot=Array.isArray(Qe)?Qe:[Qe];return ot.map(function(pt){var bt=pt.children,He=_objectWithoutProperties(pt,he),ht=Ee(bt,je);return React.createElement(TreeNode,_extends({key:He.key},ct(He)),ht)})}function ke(Qe){if(!Qe)return null;var je;if(Array.isArray(Qe))je={checkedKeys:Qe,halfCheckedKeys:void 0};else if((0,dt.Z)(Qe)==="object")je={checkedKeys:Qe.checked||void 0,halfCheckedKeys:Qe.halfChecked||void 0};else return(0,Ie.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return je}function Ke(Qe,je){var qe=new Set;function Ve(ct){if(!qe.has(ct)){var ot=(0,Le.Z)(je,ct);if(ot){qe.add(ct);var pt=ot.parent,bt=ot.node;bt.disabled||pt&&Ve(pt.key)}}}return(Qe||[]).forEach(function(ct){Ve(ct)}),(0,x.Z)(qe)}},34643:function(Jn,kt,ae){"use strict";ae.d(kt,{S:function(){return Ue}});var x=ae(48736),dt=ae(65065);function Ie(he,xe){var oe=new Set;return he.forEach(function(Oe){xe.has(Oe)||oe.add(Oe)}),oe}function Je(he){var xe=he||{},oe=xe.disabled,Oe=xe.disableCheckbox,ve=xe.checkable;return!!(oe||Oe)||ve===!1}function ze(he,xe,oe,Oe){for(var ve=new Set(he),Me=new Set,Se=0;Se<=oe;Se+=1){var Te=xe.get(Se)||new Set;Te.forEach(function(ke){var Ke=ke.key,Qe=ke.node,je=ke.children,qe=je===void 0?[]:je;ve.has(Ke)&&!Oe(Qe)&&qe.filter(function(Ve){return!Oe(Ve.node)}).forEach(function(Ve){ve.add(Ve.key)})})}for(var we=new Set,Ce=oe;Ce>=0;Ce-=1){var Ee=xe.get(Ce)||new Set;Ee.forEach(function(ke){var Ke=ke.parent,Qe=ke.node;if(!(Oe(Qe)||!ke.parent||we.has(ke.parent.key))){if(Oe(ke.parent.node)){we.add(Ke.key);return}var je=!0,qe=!1;(Ke.children||[]).filter(function(Ve){return!Oe(Ve.node)}).forEach(function(Ve){var ct=Ve.key,ot=ve.has(ct);je&&!ot&&(je=!1),!qe&&(ot||Me.has(ct))&&(qe=!0)}),je&&ve.add(Ke.key),qe&&Me.add(Ke.key),we.add(Ke.key)}})}return{checkedKeys:Array.from(ve),halfCheckedKeys:Array.from(Ie(Me,ve))}}function Le(he,xe,oe,Oe,ve){for(var Me=new Set(he),Se=new Set(xe),Te=0;Te<=Oe;Te+=1){var we=oe.get(Te)||new Set;we.forEach(function(Ke){var Qe=Ke.key,je=Ke.node,qe=Ke.children,Ve=qe===void 0?[]:qe;!Me.has(Qe)&&!Se.has(Qe)&&!ve(je)&&Ve.filter(function(ct){return!ve(ct.node)}).forEach(function(ct){Me.delete(ct.key)})})}Se=new Set;for(var Ce=new Set,Ee=Oe;Ee>=0;Ee-=1){var ke=oe.get(Ee)||new Set;ke.forEach(function(Ke){var Qe=Ke.parent,je=Ke.node;if(!(ve(je)||!Ke.parent||Ce.has(Ke.parent.key))){if(ve(Ke.parent.node)){Ce.add(Qe.key);return}var qe=!0,Ve=!1;(Qe.children||[]).filter(function(ct){return!ve(ct.node)}).forEach(function(ct){var ot=ct.key,pt=Me.has(ot);qe&&!pt&&(qe=!1),!Ve&&(pt||Se.has(ot))&&(Ve=!0)}),qe||Me.delete(Qe.key),Ve&&Se.add(Qe.key),Ce.add(Qe.key)}})}return{checkedKeys:Array.from(Me),halfCheckedKeys:Array.from(Ie(Se,Me))}}function Ue(he,xe,oe,Oe){var ve=[],Me;Oe?Me=Oe:Me=Je;var Se=new Set(he.filter(function(Ee){var ke=!!(0,dt.Z)(oe,Ee);return ke||ve.push(Ee),ke})),Te=new Map,we=0;Object.keys(oe).forEach(function(Ee){var ke=oe[Ee],Ke=ke.level,Qe=Te.get(Ke);Qe||(Qe=new Set,Te.set(Ke,Qe)),Qe.add(ke),we=Math.max(we,Ke)}),(0,x.ZP)(!ve.length,"Tree missing follow keys: ".concat(ve.slice(0,100).map(function(Ee){return"'".concat(Ee,"'")}).join(", ")));var Ce;return xe===!0?Ce=ze(Se,Te,we,Me):Ce=Le(Se,xe.halfCheckedKeys,Te,we,Me),Ce}},65065:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return x}});function x(dt,Ie){return dt[Ie]}},34061:function(Jn,kt,ae){"use strict";ae.d(kt,{F:function(){return Ke},H8:function(){return ke},I8:function(){return Ee},km:function(){return ve},oH:function(){return we},w$:function(){return Me},zn:function(){return Te}});var x=ae(76190),dt=ae(94480),Ie=ae(33885),Je=ae(75931),ze=ae(11592),Le=ae(2738),Ue=ae(48736),he=ae(65065),xe=["children"];function oe(Qe,je){return"".concat(Qe,"-").concat(je)}function Oe(Qe){return Qe&&Qe.type&&Qe.type.isTreeNode}function ve(Qe,je){return Qe!=null?Qe:je}function Me(Qe){var je=Qe||{},qe=je.title,Ve=je._title,ct=je.key,ot=je.children,pt=qe||"title";return{title:pt,_title:Ve||[pt],key:ct||"key",children:ot||"children"}}function Se(Qe,je){var qe=new Map;function Ve(ct){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ct||[]).forEach(function(pt){var bt=pt[je.key],He=pt[je.children];warning(bt!=null,"Tree node must have a certain key: [".concat(ot).concat(bt,"]"));var ht=String(bt);warning(!qe.has(ht)||bt===null||bt===void 0,"Same 'key' exist in the Tree: ".concat(ht)),qe.set(ht,!0),Ve(He,"".concat(ot).concat(ht," > "))})}Ve(Qe)}function Te(Qe){function je(qe){var Ve=(0,ze.Z)(qe);return Ve.map(function(ct){if(!Oe(ct))return(0,Ue.ZP)(!ct,"Tree/TreeNode can only accept TreeNode as children."),null;var ot=ct.key,pt=ct.props,bt=pt.children,He=(0,Je.Z)(pt,xe),ht=(0,Ie.Z)({key:ot},He),_e=je(bt);return _e.length&&(ht.children=_e),ht}).filter(function(ct){return ct})}return je(Qe)}function we(Qe,je,qe){var Ve=Me(qe),ct=Ve._title,ot=Ve.key,pt=Ve.children,bt=new Set(je===!0?[]:je),He=[];function ht(_e){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return _e.map(function(Nt,it){for(var at=oe(Re?Re.pos:"0",it),Bt=ve(Nt[ot],at),Ze,De=0;De<ct.length;De+=1){var ut=ct[De];if(Nt[ut]!==void 0){Ze=Nt[ut];break}}var $t=Object.assign((0,Le.Z)(Nt,[].concat((0,dt.Z)(ct),[ot,pt])),{title:Ze,key:Bt,parent:Re,pos:at,children:null,data:Nt,isStart:[].concat((0,dt.Z)(Re?Re.isStart:[]),[it===0]),isEnd:[].concat((0,dt.Z)(Re?Re.isEnd:[]),[it===_e.length-1])});return He.push($t),je===!0||bt.has(Bt)?$t.children=ht(Nt[pt]||[],$t):$t.children=[],$t})}return ht(Qe),He}function Ce(Qe,je,qe){var Ve={};(0,x.Z)(qe)==="object"?Ve=qe:Ve={externalGetKey:qe},Ve=Ve||{};var ct=Ve,ot=ct.childrenPropName,pt=ct.externalGetKey,bt=ct.fieldNames,He=Me(bt),ht=He.key,_e=He.children,Re=ot||_e,Nt;pt?typeof pt=="string"?Nt=function(Bt){return Bt[pt]}:typeof pt=="function"&&(Nt=function(Bt){return pt(Bt)}):Nt=function(Bt,Ze){return ve(Bt[ht],Ze)};function it(at,Bt,Ze,De){var ut=at?at[Re]:Qe,$t=at?oe(Ze.pos,Bt):"0",zt=at?[].concat((0,dt.Z)(De),[at]):[];if(at){var tt=Nt(at,$t),Ot={node:at,index:Bt,pos:$t,key:tt,parentPos:Ze.node?Ze.pos:null,level:Ze.level+1,nodes:zt};je(Ot)}ut&&ut.forEach(function(Rt,fn){it(Rt,fn,{node:at,pos:$t,level:Ze?Ze.level+1:-1},zt)})}it(null)}function Ee(Qe){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qe=je.initWrapper,Ve=je.processEntity,ct=je.onProcessFinished,ot=je.externalGetKey,pt=je.childrenPropName,bt=je.fieldNames,He=arguments.length>2?arguments[2]:void 0,ht=ot||He,_e={},Re={},Nt={posEntities:_e,keyEntities:Re};return qe&&(Nt=qe(Nt)||Nt),Ce(Qe,function(it){var at=it.node,Bt=it.index,Ze=it.pos,De=it.key,ut=it.parentPos,$t=it.level,zt=it.nodes,tt={node:at,nodes:zt,index:Bt,key:De,pos:Ze,level:$t},Ot=ve(De,Ze);_e[Ze]=tt,Re[Ot]=tt,tt.parent=_e[ut],tt.parent&&(tt.parent.children=tt.parent.children||[],tt.parent.children.push(tt)),Ve&&Ve(tt,Nt)},{externalGetKey:ht,childrenPropName:pt,fieldNames:bt}),ct&&ct(Nt),Nt}function ke(Qe,je){var qe=je.expandedKeys,Ve=je.selectedKeys,ct=je.loadedKeys,ot=je.loadingKeys,pt=je.checkedKeys,bt=je.halfCheckedKeys,He=je.dragOverNodeKey,ht=je.dropPosition,_e=je.keyEntities,Re=(0,he.Z)(_e,Qe),Nt={eventKey:Qe,expanded:qe.indexOf(Qe)!==-1,selected:Ve.indexOf(Qe)!==-1,loaded:ct.indexOf(Qe)!==-1,loading:ot.indexOf(Qe)!==-1,checked:pt.indexOf(Qe)!==-1,halfChecked:bt.indexOf(Qe)!==-1,pos:String(Re?Re.pos:""),dragOver:He===Qe&&ht===0,dragOverGapTop:He===Qe&&ht===-1,dragOverGapBottom:He===Qe&&ht===1};return Nt}function Ke(Qe){var je=Qe.data,qe=Qe.expanded,Ve=Qe.selected,ct=Qe.checked,ot=Qe.loaded,pt=Qe.loading,bt=Qe.halfChecked,He=Qe.dragOver,ht=Qe.dragOverGapTop,_e=Qe.dragOverGapBottom,Re=Qe.pos,Nt=Qe.active,it=Qe.eventKey,at=(0,Ie.Z)((0,Ie.Z)({},je),{},{expanded:qe,selected:Ve,checked:ct,loaded:ot,loading:pt,halfChecked:bt,dragOver:He,dragOverGapTop:ht,dragOverGapBottom:_e,pos:Re,active:Nt,key:it});return"props"in at||Object.defineProperty(at,"props",{get:function(){return(0,Ue.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Qe}}),at}},8224:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return dt}});var x=ae(4676);function dt(Ie,Je,ze,Le){var Ue=x.unstable_batchedUpdates?function(xe){x.unstable_batchedUpdates(ze,xe)}:ze;return Ie!=null&&Ie.addEventListener&&Ie.addEventListener(Je,Ue,Le),{remove:function(){Ie!=null&&Ie.removeEventListener&&Ie.removeEventListener(Je,Ue,Le)}}}},24514:function(Jn,kt,ae){"use strict";ae.d(kt,{G:function(){return Je}});var x=ae(47273),dt=function(Le){if((0,x.Z)()&&window.document.documentElement){var Ue=Array.isArray(Le)?Le:[Le],he=window.document.documentElement;return Ue.some(function(xe){return xe in he.style})}return!1},Ie=function(Le,Ue){if(!dt(Le))return!1;var he=document.createElement("div"),xe=he.style[Le];return he.style[Le]=Ue,he.style[Le]!==xe};function Je(ze,Le){return!Array.isArray(ze)&&Le!==void 0?Ie(ze,Le):dt(ze)}},48911:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return rn}});var x=ae(54476),dt=ae(76190),Ie=ae(33885),Je=ae(20068),ze=ae(42978),Le=ae(75931),Ue=ae(92310),he=ae.n(Ue),xe=ae(29301),oe=ae(70425),Oe=ae(34280),ve=ae(59301),Me=ae(4676),Se=ve.forwardRef(function(de,pe){var ie=de.height,ee=de.offsetY,se=de.offsetX,le=de.children,Be=de.prefixCls,We=de.onInnerResize,st=de.innerProps,mt=de.rtl,gt=de.extra,Et={},Lt={display:"flex",flexDirection:"column"};return ee!==void 0&&(Et={height:ie,position:"relative",overflow:"hidden"},Lt=(0,Ie.Z)((0,Ie.Z)({},Lt),{},(0,Je.Z)((0,Je.Z)((0,Je.Z)((0,Je.Z)((0,Je.Z)({transform:"translateY(".concat(ee,"px)")},mt?"marginRight":"marginLeft",-se),"position","absolute"),"left",0),"right",0),"top",0))),ve.createElement("div",{style:Et},ve.createElement(xe.Z,{onResize:function(Ct){var lt=Ct.offsetHeight;lt&&We&&We()}},ve.createElement("div",(0,x.Z)({style:Lt,className:he()((0,Je.Z)({},"".concat(Be,"-holder-inner"),Be)),ref:pe},st),le,gt)))});Se.displayName="Filler";var Te=Se;function we(de){var pe=de.children,ie=de.setRef,ee=ve.useCallback(function(se){ie(se)},[]);return ve.cloneElement(pe,{ref:ee})}function Ce(de,pe,ie,ee,se,le,Be,We){var st=We.getKey;return de.slice(pe,ie+1).map(function(mt,gt){var Et=pe+gt,Lt=Be(mt,Et,{style:{width:ee},offsetX:se}),jt=st(mt);return ve.createElement(we,{key:jt,setRef:function(lt){return le(mt,lt)}},Lt)})}function Ee(de,pe,ie,ee){var se=ie-de,le=pe-ie,Be=Math.min(se,le)*2;if(ee<=Be){var We=Math.floor(ee/2);return ee%2?ie+We+1:ie-We}return se>le?ie-(ee-le):ie+(ee-se)}function ke(de,pe,ie){var ee=de.length,se=pe.length,le,Be;if(ee===0&&se===0)return null;ee<se?(le=de,Be=pe):(le=pe,Be=de);var We={__EMPTY_ITEM__:!0};function st(Ct){return Ct!==void 0?ie(Ct):We}for(var mt=null,gt=Math.abs(ee-se)!==1,Et=0;Et<Be.length;Et+=1){var Lt=st(le[Et]),jt=st(Be[Et]);if(Lt!==jt){mt=Et,gt=gt||Lt!==st(Be[Et+1]);break}}return mt===null?null:{index:mt,multiple:gt}}function Ke(de,pe,ie){var ee=ve.useState(de),se=(0,ze.Z)(ee,2),le=se[0],Be=se[1],We=ve.useState(null),st=(0,ze.Z)(We,2),mt=st[0],gt=st[1];return ve.useEffect(function(){var Et=ke(le||[],de||[],pe);(Et==null?void 0:Et.index)!==void 0&&(ie==null||ie(Et.index),gt(de[Et.index])),Be(de)},[de]),[mt]}var Qe=ae(16089),je=(typeof navigator=="undefined"?"undefined":(0,dt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),qe=je,Ve=function(de,pe,ie,ee){var se=(0,ve.useRef)(!1),le=(0,ve.useRef)(null);function Be(){clearTimeout(le.current),se.current=!0,le.current=setTimeout(function(){se.current=!1},50)}var We=(0,ve.useRef)({top:de,bottom:pe,left:ie,right:ee});return We.current.top=de,We.current.bottom=pe,We.current.left=ie,We.current.right=ee,function(st,mt){var gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Et=st?mt<0&&We.current.left||mt>0&&We.current.right:mt<0&&We.current.top||mt>0&&We.current.bottom;return gt&&Et?(clearTimeout(le.current),se.current=!1):(!Et||se.current)&&Be(),!se.current&&Et}};function ct(de,pe,ie,ee,se,le,Be){var We=(0,ve.useRef)(0),st=(0,ve.useRef)(null),mt=(0,ve.useRef)(null),gt=(0,ve.useRef)(!1),Et=Ve(pe,ie,ee,se);function Lt(gn,sn){if(Qe.Z.cancel(st.current),!Et(!1,sn)){var en=gn;if(!en._virtualHandled)en._virtualHandled=!0;else return;We.current+=sn,mt.current=sn,qe||en.preventDefault(),st.current=(0,Qe.Z)(function(){var zn=gt.current?10:1;Be(We.current*zn,!1),We.current=0})}}function jt(gn,sn){Be(sn,!0),qe||gn.preventDefault()}var Ct=(0,ve.useRef)(null),lt=(0,ve.useRef)(null);function Vt(gn){if(de){Qe.Z.cancel(lt.current),lt.current=(0,Qe.Z)(function(){Ct.current=null},2);var sn=gn.deltaX,en=gn.deltaY,zn=gn.shiftKey,Fn=sn,Ut=en;(Ct.current==="sx"||!Ct.current&&zn&&en&&!sn)&&(Fn=en,Ut=0,Ct.current="sx");var an=Math.abs(Fn),_n=Math.abs(Ut);Ct.current===null&&(Ct.current=le&&an>_n?"x":"y"),Ct.current==="y"?Lt(gn,Ut):jt(gn,Fn)}}function Zt(gn){de&&(gt.current=gn.detail===mt.current)}return[Vt,Zt]}function ot(de,pe,ie,ee){var se=ve.useMemo(function(){return[new Map,[]]},[de,ie.id,ee]),le=(0,ze.Z)(se,2),Be=le[0],We=le[1],st=function(gt){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gt,Lt=Be.get(gt),jt=Be.get(Et);if(Lt===void 0||jt===void 0)for(var Ct=de.length,lt=We.length;lt<Ct;lt+=1){var Vt,Zt=de[lt],gn=pe(Zt);Be.set(gn,lt);var sn=(Vt=ie.get(gn))!==null&&Vt!==void 0?Vt:ee;if(We[lt]=(We[lt-1]||0)+sn,gn===gt&&(Lt=lt),gn===Et&&(jt=lt),Lt!==void 0&&jt!==void 0)break}return{top:We[Lt-1]||0,bottom:We[jt]}};return st}var pt=ae(67732),bt=ae(83652),He=function(){function de(){(0,pt.Z)(this,de),(0,Je.Z)(this,"maps",void 0),(0,Je.Z)(this,"id",0),(0,Je.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,bt.Z)(de,[{key:"set",value:function(ie,ee){this.diffRecords.set(ie,this.maps[ie]),this.maps[ie]=ee,this.id+=1}},{key:"get",value:function(ie){return this.maps[ie]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),de}(),ht=He;function _e(de){var pe=parseFloat(de);return isNaN(pe)?0:pe}function Re(de,pe,ie){var ee=ve.useState(0),se=(0,ze.Z)(ee,2),le=se[0],Be=se[1],We=(0,ve.useRef)(new Map),st=(0,ve.useRef)(new ht),mt=(0,ve.useRef)(0);function gt(){mt.current+=1}function Et(){var jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;gt();var Ct=function(){var Zt=!1;We.current.forEach(function(gn,sn){if(gn&&gn.offsetParent){var en=gn.offsetHeight,zn=getComputedStyle(gn),Fn=zn.marginTop,Ut=zn.marginBottom,an=_e(Fn),_n=_e(Ut),Vn=en+an+_n;st.current.get(sn)!==Vn&&(st.current.set(sn,Vn),Zt=!0)}}),Zt&&Be(function(gn){return gn+1})};if(jt)Ct();else{mt.current+=1;var lt=mt.current;Promise.resolve().then(function(){lt===mt.current&&Ct()})}}function Lt(jt,Ct){var lt=de(jt),Vt=We.current.get(lt);Ct?(We.current.set(lt,Ct),Et()):We.current.delete(lt),!Vt!=!Ct&&(Ct?pe==null||pe(jt):ie==null||ie(jt))}return(0,ve.useEffect)(function(){return gt},[]),[Lt,Et,st.current,le]}var Nt=14/15;function it(de,pe,ie){var ee=(0,ve.useRef)(!1),se=(0,ve.useRef)(0),le=(0,ve.useRef)(0),Be=(0,ve.useRef)(null),We=(0,ve.useRef)(null),st,mt=function(jt){if(ee.current){var Ct=Math.ceil(jt.touches[0].pageX),lt=Math.ceil(jt.touches[0].pageY),Vt=se.current-Ct,Zt=le.current-lt,gn=Math.abs(Vt)>Math.abs(Zt);gn?se.current=Ct:le.current=lt;var sn=ie(gn,gn?Vt:Zt,!1,jt);sn&&jt.preventDefault(),clearInterval(We.current),sn&&(We.current=setInterval(function(){gn?Vt*=Nt:Zt*=Nt;var en=Math.floor(gn?Vt:Zt);(!ie(gn,en,!0)||Math.abs(en)<=.1)&&clearInterval(We.current)},16))}},gt=function(){ee.current=!1,st()},Et=function(jt){st(),jt.touches.length===1&&!ee.current&&(ee.current=!0,se.current=Math.ceil(jt.touches[0].pageX),le.current=Math.ceil(jt.touches[0].pageY),Be.current=jt.target,Be.current.addEventListener("touchmove",mt,{passive:!1}),Be.current.addEventListener("touchend",gt,{passive:!0}))};st=function(){Be.current&&(Be.current.removeEventListener("touchmove",mt),Be.current.removeEventListener("touchend",gt))},(0,Oe.Z)(function(){return de&&pe.current.addEventListener("touchstart",Et,{passive:!0}),function(){var Lt;(Lt=pe.current)===null||Lt===void 0||Lt.removeEventListener("touchstart",Et),st(),clearInterval(We.current)}},[de])}function at(de){return Math.floor(Math.pow(de,.5))}function Bt(de,pe){var ie="touches"in de?de.touches[0]:de;return ie[pe?"pageX":"pageY"]-window[pe?"scrollX":"scrollY"]}function Ze(de,pe,ie){ve.useEffect(function(){var ee=pe.current;if(de&&ee){var se=!1,le,Be,We=function(){Qe.Z.cancel(le)},st=function Lt(){We(),le=(0,Qe.Z)(function(){ie(Be),Lt()})},mt=function(){se=!1,We()},gt=function(jt){if(!(jt.target.draggable||jt.button!==0)){var Ct=jt;Ct._virtualHandled||(Ct._virtualHandled=!0,se=!0)}},Et=function(jt){if(se){var Ct=Bt(jt,!1),lt=ee.getBoundingClientRect(),Vt=lt.top,Zt=lt.bottom;if(Ct<=Vt){var gn=Vt-Ct;Be=-at(gn),st()}else if(Ct>=Zt){var sn=Ct-Zt;Be=at(sn),st()}else We()}};return ee.addEventListener("mousedown",gt),ee.ownerDocument.addEventListener("mouseup",mt),ee.ownerDocument.addEventListener("mousemove",Et),ee.ownerDocument.addEventListener("dragend",mt),function(){ee.removeEventListener("mousedown",gt),ee.ownerDocument.removeEventListener("mouseup",mt),ee.ownerDocument.removeEventListener("mousemove",Et),ee.ownerDocument.removeEventListener("dragend",mt),We()}}},[de])}var De=10;function ut(de,pe,ie,ee,se,le,Be,We){var st=ve.useRef(),mt=ve.useState(null),gt=(0,ze.Z)(mt,2),Et=gt[0],Lt=gt[1];return(0,Oe.Z)(function(){if(Et&&Et.times<De){if(!de.current){Lt(function(Ir){return(0,Ie.Z)({},Ir)});return}le();var jt=Et.targetAlign,Ct=Et.originAlign,lt=Et.index,Vt=Et.offset,Zt=de.current.clientHeight,gn=!1,sn=jt,en=null;if(Zt){for(var zn=jt||Ct,Fn=0,Ut=0,an=0,_n=Math.min(pe.length-1,lt),Vn=0;Vn<=_n;Vn+=1){var It=se(pe[Vn]);Ut=Fn;var Wt=ie.get(It);an=Ut+(Wt===void 0?ee:Wt),Fn=an}for(var on=zn==="top"?Vt:Zt-Vt,vn=_n;vn>=0;vn-=1){var Yn=se(pe[vn]),Lr=ie.get(Yn);if(Lr===void 0){gn=!0;break}if(on-=Lr,on<=0)break}switch(zn){case"top":en=Ut-Vt;break;case"bottom":en=an-Zt+Vt;break;default:{var ri=de.current.scrollTop,zr=ri+Zt;Ut<ri?sn="top":an>zr&&(sn="bottom")}}en!==null&&Be(en),en!==Et.lastTop&&(gn=!0)}gn&&Lt((0,Ie.Z)((0,Ie.Z)({},Et),{},{times:Et.times+1,targetAlign:sn,lastTop:en}))}},[Et,de.current]),function(jt){if(jt==null){We();return}if(Qe.Z.cancel(st.current),typeof jt=="number")Be(jt);else if(jt&&(0,dt.Z)(jt)==="object"){var Ct,lt=jt.align;"index"in jt?Ct=jt.index:Ct=pe.findIndex(function(gn){return se(gn)===jt.key});var Vt=jt.offset,Zt=Vt===void 0?0:Vt;Lt({times:0,index:Ct,offset:Zt,originAlign:lt})}}}var $t=ve.forwardRef(function(de,pe){var ie=de.prefixCls,ee=de.rtl,se=de.scrollOffset,le=de.scrollRange,Be=de.onStartMove,We=de.onStopMove,st=de.onScroll,mt=de.horizontal,gt=de.spinSize,Et=de.containerSize,Lt=de.style,jt=de.thumbStyle,Ct=de.showScrollBar,lt=ve.useState(!1),Vt=(0,ze.Z)(lt,2),Zt=Vt[0],gn=Vt[1],sn=ve.useState(null),en=(0,ze.Z)(sn,2),zn=en[0],Fn=en[1],Ut=ve.useState(null),an=(0,ze.Z)(Ut,2),_n=an[0],Vn=an[1],It=!ee,Wt=ve.useRef(),on=ve.useRef(),vn=ve.useState(Ct),Yn=(0,ze.Z)(vn,2),Lr=Yn[0],ri=Yn[1],zr=ve.useRef(),Ir=function(){Ct===!0||Ct===!1||(clearTimeout(zr.current),ri(!0),zr.current=setTimeout(function(){ri(!1)},3e3))},tr=le-Et||0,vr=Et-gt||0,Qn=ve.useMemo(function(){if(se===0||tr===0)return 0;var di=se/tr;return di*vr},[se,tr,vr]),qn=function(Ti){Ti.stopPropagation(),Ti.preventDefault()},lr=ve.useRef({top:Qn,dragging:Zt,pageY:zn,startTop:_n});lr.current={top:Qn,dragging:Zt,pageY:zn,startTop:_n};var $n=function(Ti){gn(!0),Fn(Bt(Ti,mt)),Vn(lr.current.top),Be(),Ti.stopPropagation(),Ti.preventDefault()};ve.useEffect(function(){var di=function(zi){zi.preventDefault()},Ti=Wt.current,Ei=on.current;return Ti.addEventListener("touchstart",di,{passive:!1}),Ei.addEventListener("touchstart",$n,{passive:!1}),function(){Ti.removeEventListener("touchstart",di),Ei.removeEventListener("touchstart",$n)}},[]);var Br=ve.useRef();Br.current=tr;var Sr=ve.useRef();Sr.current=vr,ve.useEffect(function(){if(Zt){var di,Ti=function(zi){var fr=lr.current,Ur=fr.dragging,vi=fr.pageY,Gt=fr.startTop;Qe.Z.cancel(di);var un=Wt.current.getBoundingClientRect(),wn=Et/(mt?un.width:un.height);if(Ur){var Mt=(Bt(zi,mt)-vi)*wn,dn=Gt;!It&&mt?dn-=Mt:dn+=Mt;var Kt=Br.current,pn=Sr.current,Nn=pn?dn/pn:0,Pr=Math.ceil(Nn*Kt);Pr=Math.max(Pr,0),Pr=Math.min(Pr,Kt),di=(0,Qe.Z)(function(){st(Pr,mt)})}},Ei=function(){gn(!1),We()};return window.addEventListener("mousemove",Ti,{passive:!0}),window.addEventListener("touchmove",Ti,{passive:!0}),window.addEventListener("mouseup",Ei,{passive:!0}),window.addEventListener("touchend",Ei,{passive:!0}),function(){window.removeEventListener("mousemove",Ti),window.removeEventListener("touchmove",Ti),window.removeEventListener("mouseup",Ei),window.removeEventListener("touchend",Ei),Qe.Z.cancel(di)}}},[Zt]),ve.useEffect(function(){return Ir(),function(){clearTimeout(zr.current)}},[se]),ve.useImperativeHandle(pe,function(){return{delayHidden:Ir}});var kr="".concat(ie,"-scrollbar"),gi={position:"absolute",visibility:Lr?null:"hidden"},Ai={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return mt?(Object.assign(gi,{height:8,left:0,right:0,bottom:0}),Object.assign(Ai,(0,Je.Z)({height:"100%",width:gt},It?"left":"right",Qn))):(Object.assign(gi,(0,Je.Z)({width:8,top:0,bottom:0},It?"right":"left",0)),Object.assign(Ai,{width:"100%",height:gt,top:Qn})),ve.createElement("div",{ref:Wt,className:he()(kr,(0,Je.Z)((0,Je.Z)((0,Je.Z)({},"".concat(kr,"-horizontal"),mt),"".concat(kr,"-vertical"),!mt),"".concat(kr,"-visible"),Lr)),style:(0,Ie.Z)((0,Ie.Z)({},gi),Lt),onMouseDown:qn,onMouseMove:Ir},ve.createElement("div",{ref:on,className:he()("".concat(kr,"-thumb"),(0,Je.Z)({},"".concat(kr,"-thumb-moving"),Zt)),style:(0,Ie.Z)((0,Ie.Z)({},Ai),jt),onMouseDown:$n}))}),zt=$t,tt=20;function Ot(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ie=de/pe*de;return isNaN(ie)&&(ie=0),ie=Math.max(ie,tt),Math.floor(ie)}var Rt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],fn=[],Tt={overflowY:"auto",overflowAnchor:"none"};function mn(de,pe){var ie=de.prefixCls,ee=ie===void 0?"rc-virtual-list":ie,se=de.className,le=de.height,Be=de.itemHeight,We=de.fullHeight,st=We===void 0?!0:We,mt=de.style,gt=de.data,Et=de.children,Lt=de.itemKey,jt=de.virtual,Ct=de.direction,lt=de.scrollWidth,Vt=de.component,Zt=Vt===void 0?"div":Vt,gn=de.onScroll,sn=de.onVirtualScroll,en=de.onVisibleChange,zn=de.innerProps,Fn=de.extraRender,Ut=de.styles,an=de.showScrollBar,_n=an===void 0?"optional":an,Vn=(0,Le.Z)(de,Rt),It=ve.useCallback(function(jr){return typeof Lt=="function"?Lt(jr):jr==null?void 0:jr[Lt]},[Lt]),Wt=Re(It,null,null),on=(0,ze.Z)(Wt,4),vn=on[0],Yn=on[1],Lr=on[2],ri=on[3],zr=!!(jt!==!1&&le&&Be),Ir=ve.useMemo(function(){return Object.values(Lr.maps).reduce(function(jr,Jr){return jr+Jr},0)},[Lr.id,Lr.maps]),tr=zr&&gt&&(Math.max(Be*gt.length,Ir)>le||!!lt),vr=Ct==="rtl",Qn=he()(ee,(0,Je.Z)({},"".concat(ee,"-rtl"),vr),se),qn=gt||fn,lr=(0,ve.useRef)(),$n=(0,ve.useRef)(),Br=(0,ve.useRef)(),Sr=(0,ve.useState)(0),kr=(0,ze.Z)(Sr,2),gi=kr[0],Ai=kr[1],di=(0,ve.useState)(0),Ti=(0,ze.Z)(di,2),Ei=Ti[0],no=Ti[1],zi=(0,ve.useState)(!1),fr=(0,ze.Z)(zi,2),Ur=fr[0],vi=fr[1],Gt=function(){vi(!0)},un=function(){vi(!1)},wn={getKey:It};function Mt(jr){Ai(function(Jr){var ni;typeof jr=="function"?ni=jr(Jr):ni=jr;var Wr=Fi(ni);return lr.current.scrollTop=Wr,Wr})}var dn=(0,ve.useRef)({start:0,end:qn.length}),Kt=(0,ve.useRef)(),pn=Ke(qn,It),Nn=(0,ze.Z)(pn,1),Pr=Nn[0];Kt.current=Pr;var Yr=ve.useMemo(function(){if(!zr)return{scrollHeight:void 0,start:0,end:qn.length-1,offset:void 0};if(!tr){var jr;return{scrollHeight:((jr=$n.current)===null||jr===void 0?void 0:jr.offsetHeight)||0,start:0,end:qn.length-1,offset:void 0}}for(var Jr=0,ni,Wr,Ui,to=qn.length,$r=0;$r<to;$r+=1){var oi=qn[$r],yr=It(oi),qr=Lr.get(yr),Ao=Jr+(qr===void 0?Be:qr);Ao>=gi&&ni===void 0&&(ni=$r,Wr=Jr),Ao>gi+le&&Ui===void 0&&(Ui=$r),Jr=Ao}return ni===void 0&&(ni=0,Wr=0,Ui=Math.ceil(le/Be)),Ui===void 0&&(Ui=qn.length-1),Ui=Math.min(Ui+1,qn.length-1),{scrollHeight:Jr,start:ni,end:Ui,offset:Wr}},[tr,zr,gi,qn,ri,le]),ci=Yr.scrollHeight,or=Yr.start,cr=Yr.end,sr=Yr.offset;dn.current.start=or,dn.current.end=cr,ve.useLayoutEffect(function(){var jr=Lr.getRecord();if(jr.size===1){var Jr=Array.from(jr.keys())[0],ni=jr.get(Jr),Wr=qn[or];if(Wr&&ni===void 0){var Ui=It(Wr);if(Ui===Jr){var to=Lr.get(Jr),$r=to-Be;Mt(function(oi){return oi+$r})}}}Lr.resetRecord()},[ci]);var ti=ve.useState({width:0,height:le}),nr=(0,ze.Z)(ti,2),Rn=nr[0],Ar=nr[1],Bi=function(Jr){Ar({width:Jr.offsetWidth,height:Jr.offsetHeight})},Zn=(0,ve.useRef)(),yn=(0,ve.useRef)(),Wn=ve.useMemo(function(){return Ot(Rn.width,lt)},[Rn.width,lt]),rr=ve.useMemo(function(){return Ot(Rn.height,ci)},[Rn.height,ci]),pr=ci-le,Kr=(0,ve.useRef)(pr);Kr.current=pr;function Fi(jr){var Jr=jr;return Number.isNaN(Kr.current)||(Jr=Math.min(Jr,Kr.current)),Jr=Math.max(Jr,0),Jr}var fi=gi<=0,_i=gi>=pr,hi=Ei<=0,bi=Ei>=lt,wi=Ve(fi,_i,hi,bi),Yi=function(){return{x:vr?-Ei:Ei,y:gi}},pi=(0,ve.useRef)(Yi()),yi=(0,oe.zX)(function(jr){if(sn){var Jr=(0,Ie.Z)((0,Ie.Z)({},Yi()),jr);(pi.current.x!==Jr.x||pi.current.y!==Jr.y)&&(sn(Jr),pi.current=Jr)}});function Ji(jr,Jr){var ni=jr;Jr?((0,Me.flushSync)(function(){no(ni)}),yi()):Mt(ni)}function io(jr){var Jr=jr.currentTarget.scrollTop;Jr!==gi&&Mt(Jr),gn==null||gn(jr),yi()}var ji=function(Jr){var ni=Jr,Wr=lt?lt-Rn.width:0;return ni=Math.max(ni,0),ni=Math.min(ni,Wr),ni},So=(0,oe.zX)(function(jr,Jr){Jr?((0,Me.flushSync)(function(){no(function(ni){var Wr=ni+(vr?-jr:jr);return ji(Wr)})}),yi()):Mt(function(ni){var Wr=ni+jr;return Wr})}),ki=ct(zr,fi,_i,hi,bi,!!lt,So),ko=(0,ze.Z)(ki,2),co=ko[0],Xo=ko[1];it(zr,lr,function(jr,Jr,ni,Wr){var Ui=Wr;return wi(jr,Jr,ni)?!1:!Ui||!Ui._virtualHandled?(Ui&&(Ui._virtualHandled=!0),co({preventDefault:function(){},deltaX:jr?Jr:0,deltaY:jr?0:Jr}),!0):!1}),Ze(tr,lr,function(jr){Mt(function(Jr){return Jr+jr})}),(0,Oe.Z)(function(){function jr(ni){var Wr=fi&&ni.detail<0,Ui=_i&&ni.detail>0;zr&&!Wr&&!Ui&&ni.preventDefault()}var Jr=lr.current;return Jr.addEventListener("wheel",co,{passive:!1}),Jr.addEventListener("DOMMouseScroll",Xo,{passive:!0}),Jr.addEventListener("MozMousePixelScroll",jr,{passive:!1}),function(){Jr.removeEventListener("wheel",co),Jr.removeEventListener("DOMMouseScroll",Xo),Jr.removeEventListener("MozMousePixelScroll",jr)}},[zr,fi,_i]),(0,Oe.Z)(function(){if(lt){var jr=ji(Ei);no(jr),yi({x:jr})}},[Rn.width,lt]);var wo=function(){var Jr,ni;(Jr=Zn.current)===null||Jr===void 0||Jr.delayHidden(),(ni=yn.current)===null||ni===void 0||ni.delayHidden()},eo=ut(lr,qn,Lr,Be,It,function(){return Yn(!0)},Mt,wo);ve.useImperativeHandle(pe,function(){return{nativeElement:Br.current,getScrollInfo:Yi,scrollTo:function(Jr){function ni(Wr){return Wr&&(0,dt.Z)(Wr)==="object"&&("left"in Wr||"top"in Wr)}ni(Jr)?(Jr.left!==void 0&&no(ji(Jr.left)),eo(Jr.top)):eo(Jr)}}}),(0,Oe.Z)(function(){if(en){var jr=qn.slice(or,cr+1);en(jr,qn)}},[or,cr,qn]);var bo=ot(qn,It,Lr,Be),Go=Fn==null?void 0:Fn({start:or,end:cr,virtual:tr,offsetX:Ei,offsetY:sr,rtl:vr,getSize:bo}),Tn=Ce(qn,or,cr,lt,Ei,vn,Et,wn),Lo=null;le&&(Lo=(0,Ie.Z)((0,Je.Z)({},st?"height":"maxHeight",le),Tt),zr&&(Lo.overflowY="hidden",lt&&(Lo.overflowX="hidden"),Ur&&(Lo.pointerEvents="none")));var Gi={};return vr&&(Gi.dir="rtl"),ve.createElement("div",(0,x.Z)({ref:Br,style:(0,Ie.Z)((0,Ie.Z)({},mt),{},{position:"relative"}),className:Qn},Gi,Vn),ve.createElement(xe.Z,{onResize:Bi},ve.createElement(Zt,{className:"".concat(ee,"-holder"),style:Lo,ref:lr,onScroll:io,onMouseEnter:wo},ve.createElement(Te,{prefixCls:ee,height:ci,offsetX:Ei,offsetY:sr,scrollWidth:lt,onInnerResize:Yn,ref:$n,innerProps:zn,rtl:vr,extra:Go},Tn))),tr&&ci>le&&ve.createElement(zt,{ref:Zn,prefixCls:ee,scrollOffset:gi,scrollRange:ci,rtl:vr,onScroll:Ji,onStartMove:Gt,onStopMove:un,spinSize:rr,containerSize:Rn.height,style:Ut==null?void 0:Ut.verticalScrollBar,thumbStyle:Ut==null?void 0:Ut.verticalScrollBarThumb,showScrollBar:_n}),tr&&lt>Rn.width&&ve.createElement(zt,{ref:yn,prefixCls:ee,scrollOffset:Ei,scrollRange:lt,rtl:vr,onScroll:Ji,onStartMove:Gt,onStopMove:un,spinSize:Wn,containerSize:Rn.width,horizontal:!0,style:Ut==null?void 0:Ut.horizontalScrollBar,thumbStyle:Ut==null?void 0:Ut.horizontalScrollBarThumb,showScrollBar:_n}))}var Dt=ve.forwardRef(mn);Dt.displayName="List";var En=Dt,rn=En},51353:function(Jn,kt,ae){"use strict";Object.defineProperty(kt,"__esModule",{value:!0}),Object.defineProperty(kt,"DraggableCore",{enumerable:!0,get:function(){return he.default}}),kt.default=void 0;var x=Oe(ae(59301)),dt=oe(ae(12708)),Ie=oe(ae(4676)),Je=ae(14625),ze=ae(77026),Le=ae(22013),Ue=ae(80217),he=oe(ae(68555)),xe=oe(ae(97510));function oe(Ce){return Ce&&Ce.__esModule?Ce:{default:Ce}}function Oe(Ce,Ee){if(typeof WeakMap=="function")var ke=new WeakMap,Ke=new WeakMap;return(Oe=function(Qe,je){if(!je&&Qe&&Qe.__esModule)return Qe;var qe,Ve,ct={__proto__:null,default:Qe};if(Qe===null||typeof Qe!="object"&&typeof Qe!="function")return ct;if(qe=je?Ke:ke){if(qe.has(Qe))return qe.get(Qe);qe.set(Qe,ct)}for(const ot in Qe)ot!=="default"&&{}.hasOwnProperty.call(Qe,ot)&&((Ve=(qe=Object.defineProperty)&&Object.getOwnPropertyDescriptor(Qe,ot))&&(Ve.get||Ve.set)?qe(ct,ot,Ve):ct[ot]=Qe[ot]);return ct})(Ce,Ee)}function ve(){return ve=Object.assign?Object.assign.bind():function(Ce){for(var Ee=1;Ee<arguments.length;Ee++){var ke=arguments[Ee];for(var Ke in ke)({}).hasOwnProperty.call(ke,Ke)&&(Ce[Ke]=ke[Ke])}return Ce},ve.apply(null,arguments)}function Me(Ce,Ee,ke){return(Ee=Se(Ee))in Ce?Object.defineProperty(Ce,Ee,{value:ke,enumerable:!0,configurable:!0,writable:!0}):Ce[Ee]=ke,Ce}function Se(Ce){var Ee=Te(Ce,"string");return typeof Ee=="symbol"?Ee:Ee+""}function Te(Ce,Ee){if(typeof Ce!="object"||!Ce)return Ce;var ke=Ce[Symbol.toPrimitive];if(ke!==void 0){var Ke=ke.call(Ce,Ee||"default");if(typeof Ke!="object")return Ke;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ee==="string"?String:Number)(Ce)}class we extends x.Component{static getDerivedStateFromProps(Ee,ke){let{position:Ke}=Ee,{prevPropsPosition:Qe}=ke;return Ke&&(!Qe||Ke.x!==Qe.x||Ke.y!==Qe.y)?((0,xe.default)("Draggable: getDerivedStateFromProps %j",{position:Ke,prevPropsPosition:Qe}),{x:Ke.x,y:Ke.y,prevPropsPosition:wf({},Ke)}):null}constructor(Ee){super(Ee),Me(this,"onDragStart",(ke,Ke)=>{if((0,xe.default)("Draggable: onDragStart: %j",Ke),this.props.onStart(ke,(0,Le.createDraggableData)(this,Ke))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),Me(this,"onDrag",(ke,Ke)=>{if(!this.state.dragging)return!1;(0,xe.default)("Draggable: onDrag: %j",Ke);const Qe=(0,Le.createDraggableData)(this,Ke),je={x:Qe.x,y:Qe.y,slackX:0,slackY:0};if(this.props.bounds){const{x:Ve,y:ct}=je;je.x+=this.state.slackX,je.y+=this.state.slackY;const[ot,pt]=(0,Le.getBoundPosition)(this,je.x,je.y);je.x=ot,je.y=pt,je.slackX=this.state.slackX+(Ve-je.x),je.slackY=this.state.slackY+(ct-je.y),Qe.x=je.x,Qe.y=je.y,Qe.deltaX=je.x-this.state.x,Qe.deltaY=je.y-this.state.y}if(this.props.onDrag(ke,Qe)===!1)return!1;this.setState(je)}),Me(this,"onDragStop",(ke,Ke)=>{if(!this.state.dragging||this.props.onStop(ke,(0,Le.createDraggableData)(this,Ke))===!1)return!1;(0,xe.default)("Draggable: onDragStop: %j",Ke);const je={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:Ve,y:ct}=this.props.position;je.x=Ve,je.y=ct}this.setState(je)}),this.state={dragging:!1,dragged:!1,x:Ee.position?Ee.position.x:Ee.defaultPosition.x,y:Ee.position?Ee.position.y:Ee.defaultPosition.y,prevPropsPosition:wf({},Ee.position),slackX:0,slackY:0,isElementSVG:!1},Ee.position&&!(Ee.onDrag||Ee.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var Ee,ke,Ke;return(Ke=(ke=(Ee=this.props)==null?void 0:Ee.nodeRef)==null?void 0:ke.current)!=null?Ke:Ie.default.findDOMNode(this)}render(){const Bt=this.props,{axis:Ee,bounds:ke,children:Ke,defaultPosition:Qe,defaultClassName:je,defaultClassNameDragging:qe,defaultClassNameDragged:Ve,position:ct,positionOffset:ot,scale:pt}=Bt,bt=Nv(Bt,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let He={},ht=null;const Re=!!!ct||this.state.dragging,Nt=ct||Qe,it={x:(0,Le.canDragX)(this)&&Re?this.state.x:Nt.x,y:(0,Le.canDragY)(this)&&Re?this.state.y:Nt.y};this.state.isElementSVG?ht=(0,ze.createSVGTransform)(it,ot):He=(0,ze.createCSSTransform)(it,ot);const at=(0,Je.clsx)(Ke.props.className||"",je,{[qe]:this.state.dragging,[Ve]:this.state.dragged});return x.createElement(he.default,ve({},bt,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),x.cloneElement(x.Children.only(Ke),{className:at,style:wf(wf({},Ke.props.style),He),transform:ht}))}}kt.default=we,Me(we,"displayName","Draggable"),Me(we,"propTypes",F0(wf({},he.default.propTypes),{axis:dt.default.oneOf(["both","x","y","none"]),bounds:dt.default.oneOfType([dt.default.shape({left:dt.default.number,right:dt.default.number,top:dt.default.number,bottom:dt.default.number}),dt.default.string,dt.default.oneOf([!1])]),defaultClassName:dt.default.string,defaultClassNameDragging:dt.default.string,defaultClassNameDragged:dt.default.string,defaultPosition:dt.default.shape({x:dt.default.number,y:dt.default.number}),positionOffset:dt.default.shape({x:dt.default.oneOfType([dt.default.number,dt.default.string]),y:dt.default.oneOfType([dt.default.number,dt.default.string])}),position:dt.default.shape({x:dt.default.number,y:dt.default.number}),className:Ue.dontSetMe,style:Ue.dontSetMe,transform:Ue.dontSetMe})),Me(we,"defaultProps",F0(wf({},he.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},68555:function(Jn,kt,ae){"use strict";Object.defineProperty(kt,"__esModule",{value:!0}),kt.default=void 0;var x=xe(ae(59301)),dt=he(ae(12708)),Ie=he(ae(4676)),Je=ae(77026),ze=ae(22013),Le=ae(80217),Ue=he(ae(97510));function he(we){return we&&we.__esModule?we:{default:we}}function xe(we,Ce){if(typeof WeakMap=="function")var Ee=new WeakMap,ke=new WeakMap;return(xe=function(Ke,Qe){if(!Qe&&Ke&&Ke.__esModule)return Ke;var je,qe,Ve={__proto__:null,default:Ke};if(Ke===null||typeof Ke!="object"&&typeof Ke!="function")return Ve;if(je=Qe?ke:Ee){if(je.has(Ke))return je.get(Ke);je.set(Ke,Ve)}for(const ct in Ke)ct!=="default"&&{}.hasOwnProperty.call(Ke,ct)&&((qe=(je=Object.defineProperty)&&Object.getOwnPropertyDescriptor(Ke,ct))&&(qe.get||qe.set)?je(Ve,ct,qe):Ve[ct]=Ke[ct]);return Ve})(we,Ce)}function oe(we,Ce,Ee){return(Ce=Oe(Ce))in we?Object.defineProperty(we,Ce,{value:Ee,enumerable:!0,configurable:!0,writable:!0}):we[Ce]=Ee,we}function Oe(we){var Ce=ve(we,"string");return typeof Ce=="symbol"?Ce:Ce+""}function ve(we,Ce){if(typeof we!="object"||!we)return we;var Ee=we[Symbol.toPrimitive];if(Ee!==void 0){var ke=Ee.call(we,Ce||"default");if(typeof ke!="object")return ke;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ce==="string"?String:Number)(we)}const Me={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let Se=Me.mouse;class Te extends x.Component{constructor(){super(...arguments),oe(this,"dragging",!1),oe(this,"lastX",NaN),oe(this,"lastY",NaN),oe(this,"touchIdentifier",null),oe(this,"mounted",!1),oe(this,"handleDragStart",Ce=>{if(this.props.onMouseDown(Ce),!this.props.allowAnyClick&&typeof Ce.button=="number"&&Ce.button!==0)return!1;const Ee=this.findDOMNode();if(!Ee||!Ee.ownerDocument||!Ee.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:ke}=Ee;if(this.props.disabled||!(Ce.target instanceof ke.defaultView.Node)||this.props.handle&&!(0,Je.matchesSelectorAndParentsTo)(Ce.target,this.props.handle,Ee)||this.props.cancel&&(0,Je.matchesSelectorAndParentsTo)(Ce.target,this.props.cancel,Ee))return;Ce.type==="touchstart"&&!this.props.allowMobileScroll&&Ce.preventDefault();const Ke=(0,Je.getTouchIdentifier)(Ce);this.touchIdentifier=Ke;const Qe=(0,ze.getControlPosition)(Ce,Ke,this);if(Qe==null)return;const{x:je,y:qe}=Qe,Ve=(0,ze.createCoreData)(this,je,qe);(0,Ue.default)("DraggableCore: handleDragStart: %j",Ve),(0,Ue.default)("calling",this.props.onStart),!(this.props.onStart(Ce,Ve)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,Je.addUserSelectStyles)(ke),this.dragging=!0,this.lastX=je,this.lastY=qe,(0,Je.addEvent)(ke,Se.move,this.handleDrag),(0,Je.addEvent)(ke,Se.stop,this.handleDragStop))}),oe(this,"handleDrag",Ce=>{const Ee=(0,ze.getControlPosition)(Ce,this.touchIdentifier,this);if(Ee==null)return;let{x:ke,y:Ke}=Ee;if(Array.isArray(this.props.grid)){let qe=ke-this.lastX,Ve=Ke-this.lastY;if([qe,Ve]=(0,ze.snapToGrid)(this.props.grid,qe,Ve),!qe&&!Ve)return;ke=this.lastX+qe,Ke=this.lastY+Ve}const Qe=(0,ze.createCoreData)(this,ke,Ke);if((0,Ue.default)("DraggableCore: handleDrag: %j",Qe),this.props.onDrag(Ce,Qe)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(qe){const Ve=document.createEvent("MouseEvents");Ve.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(Ve)}return}this.lastX=ke,this.lastY=Ke}),oe(this,"handleDragStop",Ce=>{if(!this.dragging)return;const Ee=(0,ze.getControlPosition)(Ce,this.touchIdentifier,this);if(Ee==null)return;let{x:ke,y:Ke}=Ee;if(Array.isArray(this.props.grid)){let Ve=ke-this.lastX||0,ct=Ke-this.lastY||0;[Ve,ct]=(0,ze.snapToGrid)(this.props.grid,Ve,ct),ke=this.lastX+Ve,Ke=this.lastY+ct}const Qe=(0,ze.createCoreData)(this,ke,Ke);if(this.props.onStop(Ce,Qe)===!1||this.mounted===!1)return!1;const qe=this.findDOMNode();qe&&this.props.enableUserSelectHack&&(0,Je.scheduleRemoveUserSelectStyles)(qe.ownerDocument),(0,Ue.default)("DraggableCore: handleDragStop: %j",Qe),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,qe&&((0,Ue.default)("DraggableCore: Removing handlers"),(0,Je.removeEvent)(qe.ownerDocument,Se.move,this.handleDrag),(0,Je.removeEvent)(qe.ownerDocument,Se.stop,this.handleDragStop))}),oe(this,"onMouseDown",Ce=>(Se=Me.mouse,this.handleDragStart(Ce))),oe(this,"onMouseUp",Ce=>(Se=Me.mouse,this.handleDragStop(Ce))),oe(this,"onTouchStart",Ce=>(Se=Me.touch,this.handleDragStart(Ce))),oe(this,"onTouchEnd",Ce=>(Se=Me.touch,this.handleDragStop(Ce)))}componentDidMount(){this.mounted=!0;const Ce=this.findDOMNode();Ce&&(0,Je.addEvent)(Ce,Me.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const Ce=this.findDOMNode();if(Ce){const{ownerDocument:Ee}=Ce;(0,Je.removeEvent)(Ee,Me.mouse.move,this.handleDrag),(0,Je.removeEvent)(Ee,Me.touch.move,this.handleDrag),(0,Je.removeEvent)(Ee,Me.mouse.stop,this.handleDragStop),(0,Je.removeEvent)(Ee,Me.touch.stop,this.handleDragStop),(0,Je.removeEvent)(Ce,Me.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Je.scheduleRemoveUserSelectStyles)(Ee)}}findDOMNode(){var Ce,Ee,ke;return(Ce=this.props)!=null&&Ce.nodeRef?(ke=(Ee=this.props)==null?void 0:Ee.nodeRef)==null?void 0:ke.current:Ie.default.findDOMNode(this)}render(){return x.cloneElement(x.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}kt.default=Te,oe(Te,"displayName","DraggableCore"),oe(Te,"propTypes",{allowAnyClick:dt.default.bool,allowMobileScroll:dt.default.bool,children:dt.default.node.isRequired,disabled:dt.default.bool,enableUserSelectHack:dt.default.bool,offsetParent:function(we,Ce){if(we[Ce]&&we[Ce].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:dt.default.arrayOf(dt.default.number),handle:dt.default.string,cancel:dt.default.string,nodeRef:dt.default.object,onStart:dt.default.func,onDrag:dt.default.func,onStop:dt.default.func,onMouseDown:dt.default.func,scale:dt.default.number,className:Le.dontSetMe,style:Le.dontSetMe,transform:Le.dontSetMe}),oe(Te,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},96249:function(Jn,kt,ae){"use strict";const{default:x,DraggableCore:dt}=ae(51353);Jn.exports=x,Jn.exports.default=x,Jn.exports.DraggableCore=dt},77026:function(Jn,kt,ae){"use strict";Object.defineProperty(kt,"__esModule",{value:!0}),kt.addClassName=je,kt.addEvent=Ue,kt.addUserSelectStyles=ke,kt.createCSSTransform=Se,kt.createSVGTransform=Te,kt.getTouch=Ce,kt.getTouchIdentifier=Ee,kt.getTranslation=we,kt.innerHeight=Oe,kt.innerWidth=ve,kt.matchesSelector=ze,kt.matchesSelectorAndParentsTo=Le,kt.offsetXYFromParent=Me,kt.outerHeight=xe,kt.outerWidth=oe,kt.removeClassName=qe,kt.removeEvent=he,kt.scheduleRemoveUserSelectStyles=Ke;var x=ae(80217),dt=Ie(ae(76172));function Ie(Ve,ct){if(typeof WeakMap=="function")var ot=new WeakMap,pt=new WeakMap;return(Ie=function(bt,He){if(!He&&bt&&bt.__esModule)return bt;var ht,_e,Re={__proto__:null,default:bt};if(bt===null||typeof bt!="object"&&typeof bt!="function")return Re;if(ht=He?pt:ot){if(ht.has(bt))return ht.get(bt);ht.set(bt,Re)}for(const Nt in bt)Nt!=="default"&&{}.hasOwnProperty.call(bt,Nt)&&((_e=(ht=Object.defineProperty)&&Object.getOwnPropertyDescriptor(bt,Nt))&&(_e.get||_e.set)?ht(Re,Nt,_e):Re[Nt]=bt[Nt]);return Re})(Ve,ct)}let Je="";function ze(Ve,ct){return Je||(Je=(0,x.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(ot){return(0,x.isFunction)(Ve[ot])})),(0,x.isFunction)(Ve[Je])?Ve[Je](ct):!1}function Le(Ve,ct,ot){let pt=Ve;do{if(ze(pt,ct))return!0;if(pt===ot)return!1;pt=pt.parentNode}while(pt);return!1}function Ue(Ve,ct,ot,pt){if(!Ve)return;const bt=wf({capture:!0},pt);Ve.addEventListener?Ve.addEventListener(ct,ot,bt):Ve.attachEvent?Ve.attachEvent("on"+ct,ot):Ve["on"+ct]=ot}function he(Ve,ct,ot,pt){if(!Ve)return;const bt=wf({capture:!0},pt);Ve.removeEventListener?Ve.removeEventListener(ct,ot,bt):Ve.detachEvent?Ve.detachEvent("on"+ct,ot):Ve["on"+ct]=null}function xe(Ve){let ct=Ve.clientHeight;const ot=Ve.ownerDocument.defaultView.getComputedStyle(Ve);return ct+=(0,x.int)(ot.borderTopWidth),ct+=(0,x.int)(ot.borderBottomWidth),ct}function oe(Ve){let ct=Ve.clientWidth;const ot=Ve.ownerDocument.defaultView.getComputedStyle(Ve);return ct+=(0,x.int)(ot.borderLeftWidth),ct+=(0,x.int)(ot.borderRightWidth),ct}function Oe(Ve){let ct=Ve.clientHeight;const ot=Ve.ownerDocument.defaultView.getComputedStyle(Ve);return ct-=(0,x.int)(ot.paddingTop),ct-=(0,x.int)(ot.paddingBottom),ct}function ve(Ve){let ct=Ve.clientWidth;const ot=Ve.ownerDocument.defaultView.getComputedStyle(Ve);return ct-=(0,x.int)(ot.paddingLeft),ct-=(0,x.int)(ot.paddingRight),ct}function Me(Ve,ct,ot){const bt=ct===ct.ownerDocument.body?{left:0,top:0}:ct.getBoundingClientRect(),He=(Ve.clientX+ct.scrollLeft-bt.left)/ot,ht=(Ve.clientY+ct.scrollTop-bt.top)/ot;return{x:He,y:ht}}function Se(Ve,ct){const ot=we(Ve,ct,"px");return{[(0,dt.browserPrefixToKey)("transform",dt.default)]:ot}}function Te(Ve,ct){return we(Ve,ct,"")}function we(Ve,ct,ot){let{x:pt,y:bt}=Ve,He=`translate(${pt}${ot},${bt}${ot})`;if(ct){const ht=`${typeof ct.x=="string"?ct.x:ct.x+ot}`,_e=`${typeof ct.y=="string"?ct.y:ct.y+ot}`;He=`translate(${ht}, ${_e})`+He}return He}function Ce(Ve,ct){return Ve.targetTouches&&(0,x.findInArray)(Ve.targetTouches,ot=>ct===ot.identifier)||Ve.changedTouches&&(0,x.findInArray)(Ve.changedTouches,ot=>ct===ot.identifier)}function Ee(Ve){if(Ve.targetTouches&&Ve.targetTouches[0])return Ve.targetTouches[0].identifier;if(Ve.changedTouches&&Ve.changedTouches[0])return Ve.changedTouches[0].identifier}function ke(Ve){if(!Ve)return;let ct=Ve.getElementById("react-draggable-style-el");ct||(ct=Ve.createElement("style"),ct.type="text/css",ct.id="react-draggable-style-el",ct.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
`,ct.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
`,Ve.getElementsByTagName("head")[0].appendChild(ct)),Ve.body&&je(Ve.body,"react-draggable-transparent-selection")}function Ke(Ve){window.requestAnimationFrame?window.requestAnimationFrame(()=>{Qe(Ve)}):Qe(Ve)}function Qe(Ve){if(Ve)try{if(Ve.body&&qe(Ve.body,"react-draggable-transparent-selection"),Ve.selection)Ve.selection.empty();else{const ct=(Ve.defaultView||window).getSelection();ct&&ct.type!=="Caret"&&ct.removeAllRanges()}}catch(ct){}}function je(Ve,ct){Ve.classList?Ve.classList.add(ct):Ve.className.match(new RegExp(`(?:^|\\s)${ct}(?!\\S)`))||(Ve.className+=` ${ct}`)}function qe(Ve,ct){Ve.classList?Ve.classList.remove(ct):Ve.className=Ve.className.replace(new RegExp(`(?:^|\\s)${ct}(?!\\S)`,"g"),"")}},76172:function(Jn,kt){"use strict";Object.defineProperty(kt,"__esModule",{value:!0}),kt.browserPrefixToKey=dt,kt.browserPrefixToStyle=Ie,kt.default=void 0,kt.getPrefix=x;const ae=["Moz","Webkit","O","ms"];function x(){var he,xe;let Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const Ue=(xe=(he=window.document)==null?void 0:he.documentElement)==null?void 0:xe.style;if(!Ue||Le in Ue)return"";for(let oe=0;oe<ae.length;oe++)if(dt(Le,ae[oe])in Ue)return ae[oe];return""}function dt(Le,Ue){return Ue?`${Ue}${Je(Le)}`:Le}function Ie(Le,Ue){return Ue?`-${Ue.toLowerCase()}-${Le}`:Le}function Je(Le){let Ue="",he=!0;for(let xe=0;xe<Le.length;xe++)he?(Ue+=Le[xe].toUpperCase(),he=!1):Le[xe]==="-"?he=!0:Ue+=Le[xe];return Ue}var ze=kt.default=x()},97510:function(Jn,kt){"use strict";Object.defineProperty(kt,"__esModule",{value:!0}),kt.default=ae;function ae(){}},22013:function(Jn,kt,ae){"use strict";Object.defineProperty(kt,"__esModule",{value:!0}),kt.canDragX=ze,kt.canDragY=Le,kt.createCoreData=he,kt.createDraggableData=xe,kt.getBoundPosition=Ie,kt.getControlPosition=Ue,kt.snapToGrid=Je;var x=ae(80217),dt=ae(77026);function Ie(ve,Me,Se){if(!ve.props.bounds)return[Me,Se];let{bounds:Te}=ve.props;Te=typeof Te=="string"?Te:oe(Te);const we=Oe(ve);if(typeof Te=="string"){const{ownerDocument:Ce}=we,Ee=Ce.defaultView;let ke;if(Te==="parent"?ke=we.parentNode:ke=we.getRootNode().querySelector(Te),!(ke instanceof Ee.HTMLElement))throw new Error('Bounds selector "'+Te+'" could not find an element.');const Ke=ke,Qe=Ee.getComputedStyle(we),je=Ee.getComputedStyle(Ke);Te={left:-we.offsetLeft+(0,x.int)(je.paddingLeft)+(0,x.int)(Qe.marginLeft),top:-we.offsetTop+(0,x.int)(je.paddingTop)+(0,x.int)(Qe.marginTop),right:(0,dt.innerWidth)(Ke)-(0,dt.outerWidth)(we)-we.offsetLeft+(0,x.int)(je.paddingRight)-(0,x.int)(Qe.marginRight),bottom:(0,dt.innerHeight)(Ke)-(0,dt.outerHeight)(we)-we.offsetTop+(0,x.int)(je.paddingBottom)-(0,x.int)(Qe.marginBottom)}}return(0,x.isNum)(Te.right)&&(Me=Math.min(Me,Te.right)),(0,x.isNum)(Te.bottom)&&(Se=Math.min(Se,Te.bottom)),(0,x.isNum)(Te.left)&&(Me=Math.max(Me,Te.left)),(0,x.isNum)(Te.top)&&(Se=Math.max(Se,Te.top)),[Me,Se]}function Je(ve,Me,Se){const Te=Math.round(Me/ve[0])*ve[0],we=Math.round(Se/ve[1])*ve[1];return[Te,we]}function ze(ve){return ve.props.axis==="both"||ve.props.axis==="x"}function Le(ve){return ve.props.axis==="both"||ve.props.axis==="y"}function Ue(ve,Me,Se){const Te=typeof Me=="number"?(0,dt.getTouch)(ve,Me):null;if(typeof Me=="number"&&!Te)return null;const we=Oe(Se),Ce=Se.props.offsetParent||we.offsetParent||we.ownerDocument.body;return(0,dt.offsetXYFromParent)(Te||ve,Ce,Se.props.scale)}function he(ve,Me,Se){const Te=!(0,x.isNum)(ve.lastX),we=Oe(ve);return Te?{node:we,deltaX:0,deltaY:0,lastX:Me,lastY:Se,x:Me,y:Se}:{node:we,deltaX:Me-ve.lastX,deltaY:Se-ve.lastY,lastX:ve.lastX,lastY:ve.lastY,x:Me,y:Se}}function xe(ve,Me){const Se=ve.props.scale;return{node:Me.node,x:ve.state.x+Me.deltaX/Se,y:ve.state.y+Me.deltaY/Se,deltaX:Me.deltaX/Se,deltaY:Me.deltaY/Se,lastX:ve.state.x,lastY:ve.state.y}}function oe(ve){return{left:ve.left,top:ve.top,right:ve.right,bottom:ve.bottom}}function Oe(ve){const Me=ve.findDOMNode();if(!Me)throw new Error("<DraggableCore>: Unmounted during event!");return Me}},80217:function(Jn,kt){"use strict";Object.defineProperty(kt,"__esModule",{value:!0}),kt.dontSetMe=Je,kt.findInArray=ae,kt.int=Ie,kt.isFunction=x,kt.isNum=dt;function ae(ze,Le){for(let Ue=0,he=ze.length;Ue<he;Ue++)if(Le.apply(Le,[ze[Ue],Ue,ze]))return ze[Ue]}function x(ze){return typeof ze=="function"||Object.prototype.toString.call(ze)==="[object Function]"}function dt(ze){return typeof ze=="number"&&!isNaN(ze)}function Ie(ze){return parseInt(ze,10)}function Je(ze,Le,Ue){if(ze[Le])return new Error(`Invalid prop ${Le} passed to ${Ue} - do not set this, set it on the child.`)}},27774:function(Jn,kt){"use strict";Object.defineProperty(kt,"__esModule",{value:!0}),kt.SizeSensorId=kt.SensorTabIndex=kt.SensorClassName=void 0;var ae="size-sensor-id";kt.SizeSensorId=ae;var x="size-sensor-object";kt.SensorClassName=x;var dt="-1";kt.SensorTabIndex=dt},79301:function(Jn,kt){"use strict";Object.defineProperty(kt,"__esModule",{value:!0}),kt.default=void 0;var ae=function(dt){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,Je=null;return function(){for(var ze=this,Le=arguments.length,Ue=new Array(Le),he=0;he<Le;he++)Ue[he]=arguments[he];clearTimeout(Je),Je=setTimeout(function(){dt.apply(ze,Ue)},Ie)}};kt.default=ae},79789:function(Jn,kt){"use strict";Object.defineProperty(kt,"__esModule",{value:!0}),kt.default=void 0;var ae=1,x=function(){return"".concat(ae++)};kt.default=x},47242:function(Jn,kt,ae){"use strict";Object.defineProperty(kt,"__esModule",{value:!0}),kt.ver=kt.clear=kt.bind=void 0;var x=ae(95270),dt=function(Le,Ue){var he=(0,x.getSensor)(Le);return he.bind(Ue),function(){he.unbind(Ue)}};kt.bind=dt;var Ie=function(Le){var Ue=(0,x.getSensor)(Le);(0,x.removeSensor)(Ue)};kt.clear=Ie;var Je="1.0.2";kt.ver=Je},95270:function(Jn,kt,ae){"use strict";Object.defineProperty(kt,"__esModule",{value:!0}),kt.removeSensor=kt.getSensor=kt.Sensors=void 0;var x=Je(ae(79789)),dt=ae(57829),Ie=ae(27774);function Je(xe){return xe&&xe.__esModule?xe:{default:xe}}var ze={};kt.Sensors=ze;function Le(xe){xe&&ze[xe]&&delete ze[xe]}var Ue=function(oe){var Oe=oe.getAttribute(Ie.SizeSensorId);if(Oe&&ze[Oe])return ze[Oe];var ve=(0,x.default)();oe.setAttribute(Ie.SizeSensorId,ve);var Me=(0,dt.createSensor)(oe,function(){return Le(ve)});return ze[ve]=Me,Me};kt.getSensor=Ue;var he=function(oe){var Oe=oe.element.getAttribute(Ie.SizeSensorId);oe.destroy(),Le(Oe)};kt.removeSensor=he},57829:function(Jn,kt,ae){"use strict";Object.defineProperty(kt,"__esModule",{value:!0}),kt.createSensor=void 0;var x=ae(20953),dt=ae(55202),Ie=typeof ResizeObserver!="undefined"?dt.createSensor:x.createSensor;kt.createSensor=Ie},20953:function(Jn,kt,ae){"use strict";Object.defineProperty(kt,"__esModule",{value:!0}),kt.createSensor=void 0;var x=Ie(ae(79301)),dt=ae(27774);function Ie(ze){return ze&&ze.__esModule?ze:{default:ze}}var Je=function(Le,Ue){var he=void 0,xe=[],oe=function(){getComputedStyle(Le).position==="static"&&(Le.style.position="relative");var we=document.createElement("object");return we.onload=function(){we.contentDocument.defaultView.addEventListener("resize",Oe),Oe()},we.style.display="block",we.style.position="absolute",we.style.top="0",we.style.left="0",we.style.height="100%",we.style.width="100%",we.style.overflow="hidden",we.style.pointerEvents="none",we.style.zIndex="-1",we.style.opacity="0",we.setAttribute("class",dt.SensorClassName),we.setAttribute("tabindex",dt.SensorTabIndex),we.type="text/html",Le.appendChild(we),we.data="about:blank",we},Oe=(0,x.default)(function(){xe.forEach(function(Te){Te(Le)})}),ve=function(we){he||(he=oe()),xe.indexOf(we)===-1&&xe.push(we)},Me=function(){he&&he.parentNode&&(he.contentDocument&&he.contentDocument.defaultView.removeEventListener("resize",Oe),he.parentNode.removeChild(he),Le.removeAttribute(dt.SizeSensorId),he=void 0,xe=[],Ue&&Ue())},Se=function(we){var Ce=xe.indexOf(we);Ce!==-1&&xe.splice(Ce,1),xe.length===0&&he&&Me()};return{element:Le,bind:ve,destroy:Me,unbind:Se}};kt.createSensor=Je},55202:function(Jn,kt,ae){"use strict";Object.defineProperty(kt,"__esModule",{value:!0}),kt.createSensor=void 0;var x=ae(27774),dt=Ie(ae(79301));function Ie(ze){return ze&&ze.__esModule?ze:{default:ze}}var Je=function(Le,Ue){var he=void 0,xe=[],oe=(0,dt.default)(function(){xe.forEach(function(Te){Te(Le)})}),Oe=function(){var we=new ResizeObserver(oe);return we.observe(Le),oe(),we},ve=function(we){he||(he=Oe()),xe.indexOf(we)===-1&&xe.push(we)},Me=function(){he.disconnect(),xe=[],he=void 0,Le.removeAttribute(x.SizeSensorId),Ue&&Ue()},Se=function(we){var Ce=xe.indexOf(we);Ce!==-1&&xe.splice(Ce,1),xe.length===0&&he&&Me()};return{element:Le,bind:ve,destroy:Me,unbind:Se}};kt.createSensor=Je},93314:function(Jn){"use strict";Jn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16722:function(Jn,kt,ae){"use strict";ae.d(kt,{Z:function(){return he}});const x=xe=>typeof xe=="object"&&xe!=null&&xe.nodeType===1,dt=(xe,oe)=>(!oe||xe!=="hidden")&&xe!=="visible"&&xe!=="clip",Ie=(xe,oe)=>{if(xe.clientHeight<xe.scrollHeight||xe.clientWidth<xe.scrollWidth){const Oe=getComputedStyle(xe,null);return dt(Oe.overflowY,oe)||dt(Oe.overflowX,oe)||(ve=>{const Me=(Se=>{if(!Se.ownerDocument||!Se.ownerDocument.defaultView)return null;try{return Se.ownerDocument.defaultView.frameElement}catch(Te){return null}})(ve);return!!Me&&(Me.clientHeight<ve.scrollHeight||Me.clientWidth<ve.scrollWidth)})(xe)}return!1},Je=(xe,oe,Oe,ve,Me,Se,Te,we)=>Se<xe&&Te>oe||Se>xe&&Te<oe?0:Se<=xe&&we<=Oe||Te>=oe&&we>=Oe?Se-xe-ve:Te>oe&&we<Oe||Se<xe&&we>Oe?Te-oe+Me:0,ze=xe=>{const oe=xe.parentElement;return oe==null?xe.getRootNode().host||null:oe},Le=(xe,oe)=>{var Oe,ve,Me,Se;if(typeof document=="undefined")return[];const{scrollMode:Te,block:we,inline:Ce,boundary:Ee,skipOverflowHiddenElements:ke}=oe,Ke=typeof Ee=="function"?Ee:zt=>zt!==Ee;if(!x(xe))throw new TypeError("Invalid target");const Qe=document.scrollingElement||document.documentElement,je=[];let qe=xe;for(;x(qe)&&Ke(qe);){if(qe=ze(qe),qe===Qe){je.push(qe);break}qe!=null&&qe===document.body&&Ie(qe)&&!Ie(document.documentElement)||qe!=null&&Ie(qe,ke)&&je.push(qe)}const Ve=(ve=(Oe=window.visualViewport)==null?void 0:Oe.width)!=null?ve:innerWidth,ct=(Se=(Me=window.visualViewport)==null?void 0:Me.height)!=null?Se:innerHeight,{scrollX:ot,scrollY:pt}=window,{height:bt,width:He,top:ht,right:_e,bottom:Re,left:Nt}=xe.getBoundingClientRect(),{top:it,right:at,bottom:Bt,left:Ze}=(zt=>{const tt=window.getComputedStyle(zt);return{top:parseFloat(tt.scrollMarginTop)||0,right:parseFloat(tt.scrollMarginRight)||0,bottom:parseFloat(tt.scrollMarginBottom)||0,left:parseFloat(tt.scrollMarginLeft)||0}})(xe);let De=we==="start"||we==="nearest"?ht-it:we==="end"?Re+Bt:ht+bt/2-it+Bt,ut=Ce==="center"?Nt+He/2-Ze+at:Ce==="end"?_e+at:Nt-Ze;const $t=[];for(let zt=0;zt<je.length;zt++){const tt=je[zt],{height:Ot,width:Rt,top:fn,right:Tt,bottom:mn,left:Dt}=tt.getBoundingClientRect();if(Te==="if-needed"&&ht>=0&&Nt>=0&&Re<=ct&&_e<=Ve&&(tt===Qe&&!Ie(tt)||ht>=fn&&Re<=mn&&Nt>=Dt&&_e<=Tt))return $t;const En=getComputedStyle(tt),rn=parseInt(En.borderLeftWidth,10),de=parseInt(En.borderTopWidth,10),pe=parseInt(En.borderRightWidth,10),ie=parseInt(En.borderBottomWidth,10);let ee=0,se=0;const le="offsetWidth"in tt?tt.offsetWidth-tt.clientWidth-rn-pe:0,Be="offsetHeight"in tt?tt.offsetHeight-tt.clientHeight-de-ie:0,We="offsetWidth"in tt?tt.offsetWidth===0?0:Rt/tt.offsetWidth:0,st="offsetHeight"in tt?tt.offsetHeight===0?0:Ot/tt.offsetHeight:0;if(Qe===tt)ee=we==="start"?De:we==="end"?De-ct:we==="nearest"?Je(pt,pt+ct,ct,de,ie,pt+De,pt+De+bt,bt):De-ct/2,se=Ce==="start"?ut:Ce==="center"?ut-Ve/2:Ce==="end"?ut-Ve:Je(ot,ot+Ve,Ve,rn,pe,ot+ut,ot+ut+He,He),ee=Math.max(0,ee+pt),se=Math.max(0,se+ot);else{ee=we==="start"?De-fn-de:we==="end"?De-mn+ie+Be:we==="nearest"?Je(fn,mn,Ot,de,ie+Be,De,De+bt,bt):De-(fn+Ot/2)+Be/2,se=Ce==="start"?ut-Dt-rn:Ce==="center"?ut-(Dt+Rt/2)+le/2:Ce==="end"?ut-Tt+pe+le:Je(Dt,Tt,Rt,rn,pe+le,ut,ut+He,He);const{scrollLeft:mt,scrollTop:gt}=tt;ee=st===0?0:Math.max(0,Math.min(gt+ee/st,tt.scrollHeight-Ot/st+Be)),se=We===0?0:Math.max(0,Math.min(mt+se/We,tt.scrollWidth-Rt/We+le)),De+=gt-ee,ut+=mt-se}$t.push({el:tt,top:ee,left:se})}return $t},Ue=xe=>xe===!1?{block:"end",inline:"nearest"}:(oe=>oe===Object(oe)&&Object.keys(oe).length!==0)(xe)?xe:{block:"start",inline:"nearest"};function he(xe,oe){if(!xe.isConnected||!(Me=>{let Se=Me;for(;Se&&Se.parentNode;){if(Se.parentNode===document)return!0;Se=Se.parentNode instanceof ShadowRoot?Se.parentNode.host:Se.parentNode}return!1})(xe))return;const Oe=(Me=>{const Se=window.getComputedStyle(Me);return{top:parseFloat(Se.scrollMarginTop)||0,right:parseFloat(Se.scrollMarginRight)||0,bottom:parseFloat(Se.scrollMarginBottom)||0,left:parseFloat(Se.scrollMarginLeft)||0}})(xe);if((Me=>typeof Me=="object"&&typeof Me.behavior=="function")(oe))return oe.behavior(Le(xe,oe));const ve=typeof oe=="boolean"||oe==null?void 0:oe.behavior;for(const{el:Me,top:Se,left:Te}of Le(xe,Ue(oe))){const we=Se-Oe.top+Oe.bottom,Ce=Te-Oe.left+Oe.right;Me.scroll({top:we,left:Ce,behavior:ve})}}}}]);
}());